e */
  .popup-hover-bridge:not(.popup-hover-bridge--visible) {
    display: none;
  }

  .popup-hover-bridge {
    position: fixed;
    z-index: calc(var(--sl-z-index-dropdown) - 1);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    clip-path: polygon(
      var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),
      var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0),
      var(--hover-bridge-bottom-right-x, 0) var(--hover-bridge-bottom-right-y, 0),
      var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
    );
  }
`,Do=At`
  :host {
    box-sizing: border-box;
  }

  :host *,
  :host *::before,
  :host *::after {
    box-sizing: inherit;
  }

  [hidden] {
    display: none !important;
  }
`,Ao=Object.defineProperty,$o=Object.defineProperties,Po=Object.getOwnPropertyDescriptor,No=Object.getOwnPropertyDescriptors,Lo=Object.getOwnPropertySymbols,Ho=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,Bo=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Wo=(e,t,o)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Go=(e,t)=>{for(var o in t||(t={}))Ho.call(t,o)&&Wo(e,o,t[o]);if(Lo)for(var o of Lo(t))Fo.call(t,o)&&Wo(e,o,t[o]);return e},Uo=(e,t)=>$o(e,No(t)),Vo=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Po(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Ao(t,o,c),c},jo=(e,t,o)=>{if(!t.has(e))throw TypeError("Cannot "+o)},Zo=function(e,t){this[0]=e,this[1]=t};const qo=e=>(t,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},Yo={attribute:!0,type:String,converter:Zt,reflect:!1,hasChanged:qt},Ko=(e=Yo,t,o)=>{const{kind:r,metadata:n}=o;let c=globalThis.litPropertyMetadata.get(n);if(void 0===c&&globalThis.litPropertyMetadata.set(n,c=new Map),c.set(o.name,e),"accessor"===r){const{name:r}=o;return{set(o){const n=t.get.call(this);t.set.call(this,o),this.requestUpdate(r,n,e)},init(t){return void 0!==t&&this.P(r,void 0,e),t}}}if("setter"===r){const{name:r}=o;return function(o){const n=this[r];t.call(this,o),this.requestUpdate(r,n,e)}}throw Error("Unsupported decorator location: "+r)};function Xo(e){return(t,o)=>"object"==typeof o?Ko(e,t,o):((e,t,o)=>{const r=t.hasOwnProperty(o);return t.constructor.createProperty(o,r?{...e,wrapped:!0}:e),r?Object.getOwnPropertyDescriptor(t,o):void 0})(e,t,o)}function Qo(e){return Xo({...e,state:!0,attribute:!1})}function Jo(e){return(t,o)=>{const r="function"==typeof t?t:t[o];Object.assign(r,e)}}const er=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,o),o);function tr(e,t){return(o,r,n)=>{const c=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof r?o:n??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return er(o,r,{get(){let o=e.call(this);return void 0===o&&(o=c(this),(null!==o||this.hasUpdated)&&t.call(this,o)),o}})}return er(o,r,{get(){return c(this)}})}}var or,rr=class extends lit_element_r{constructor(){super(),((e,t,o)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,o)})(this,or,!1),this.initialReflectedProperties=new Map,Object.entries(this.constructor.dependencies).forEach((([e,t])=>{this.constructor.define(e,t)}))}emit(e,t){const o=new CustomEvent(e,Go({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(o),o}static define(e,t=this,o={}){const r=customElements.get(e);if(!r){try{customElements.define(e,t,o)}catch(r){customElements.define(e,class extends t{},o)}return}let n=" (unknown version)",c=n;"version"in t&&t.version&&(n=" v"+t.version),"version"in r&&r.version&&(c=" v"+r.version)}attributeChangedCallback(e,t,o){var r,n,c;jo(r=this,n=or,"read from private field"),(c?c.call(r):n.get(r))||(this.constructor.elementProperties.forEach(((e,t)=>{e.reflect&&null!=this[t]&&this.initialReflectedProperties.set(t,this[t])})),((e,t,o,r)=>{jo(e,t,"write to private field"),r?r.call(e,o):t.set(e,o)})(this,or,!0)),super.attributeChangedCallback(e,t,o)}willUpdate(e){super.willUpdate(e),this.initialReflectedProperties.forEach(((t,o)=>{e.has(o)&&null==this[o]&&(this[o]=t)}))}};or=new WeakMap,rr.version="2.17.1",rr.dependencies={},Vo([Xo()],rr.prototype,"dir",2),Vo([Xo()],rr.prototype,"lang",2);const ir=Math.min,nr=Math.max,sr=Math.round,ar=Math.floor,lr=e=>({x:e,y:e}),cr={left:"right",right:"left",bottom:"top",top:"bottom"},dr={start:"end",end:"start"};function hr(e,t,o){return nr(e,ir(t,o))}function ur(e,t){return"function"==typeof e?e(t):e}function pr(e){return e.split("-")[0]}function fr(e){return e.split("-")[1]}function mr(e){return"x"===e?"y":"x"}function gr(e){return"y"===e?"height":"width"}function br(e){return["top","bottom"].includes(pr(e))?"y":"x"}function vr(e){return mr(br(e))}function yr(e){return e.replace(/start|end/g,(e=>dr[e]))}function wr(e){return e.replace(/left|right|bottom|top/g,(e=>cr[e]))}function _r(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function xr(e){const{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function Cr(e,t,o){let{reference:r,floating:n}=e;const c=br(t),d=vr(t),h=gr(d),u=pr(t),p="y"===c,m=r.x+r.width/2-n.width/2,g=r.y+r.height/2-n.height/2,v=r[h]/2-n[h]/2;let y;switch(u){case"top":y={x:m,y:r.y-n.height};break;case"bottom":y={x:m,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:g};break;case"left":y={x:r.x-n.width,y:g};break;default:y={x:r.x,y:r.y}}switch(fr(t)){case"start":y[d]-=v*(o&&p?-1:1);break;case"end":y[d]+=v*(o&&p?-1:1)}return y}async function kr(e,t){var o;void 0===t&&(t={});const{x:r,y:n,platform:c,rects:d,elements:h,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:y=0}=ur(t,e),w=_r(y),_=h[v?"floating"===g?"reference":"floating":g],x=xr(await c.getClippingRect({element:null==(o=await(null==c.isElement?void 0:c.isElement(_)))||o?_:_.contextElement||await(null==c.getDocumentElement?void 0:c.getDocumentElement(h.floating)),boundary:p,rootBoundary:m,strategy:u})),C="floating"===g?{x:r,y:n,width:d.floating.width,height:d.floating.height}:d.reference,S=await(null==c.getOffsetParent?void 0:c.getOffsetParent(h.floating)),T=await(null==c.isElement?void 0:c.isElement(S))&&await(null==c.getScale?void 0:c.getScale(S))||{x:1,y:1},E=xr(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:C,offsetParent:S,strategy:u}):C);return{top:(x.top-E.top+w.top)/T.y,bottom:(E.bottom-x.bottom+w.bottom)/T.y,left:(x.left-E.left+w.left)/T.x,right:(E.right-x.right+w.right)/T.x}}function Sr(){return"undefined"!=typeof window}function Rr(e){return Or(e)?(e.nodeName||"").toLowerCase():"#document"}function Tr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Er(e){var t;return null==(t=(Or(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Or(e){return!!Sr()&&(e instanceof Node||e instanceof Tr(e).Node)}function Ir(e){return!!Sr()&&(e instanceof Element||e instanceof Tr(e).Element)}function Mr(e){return!!Sr()&&(e instanceof HTMLElement||e instanceof Tr(e).HTMLElement)}function zr(e){return!(!Sr()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Tr(e).ShadowRoot)}function Dr(e){const{overflow:t,overflowX:o,overflowY:r,display:n}=Hr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(n)}function Ar(e){return["table","td","th"].includes(Rr(e))}function $r(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Pr(e){const t=Nr(),o=Ir(e)?Hr(e):e;return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!t&&!!o.backdropFilter&&"none"!==o.backdropFilter||!t&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((e=>(o.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(o.contain||"").includes(e)))}function Nr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Lr(e){return["html","body","#document"].includes(Rr(e))}function Hr(e){return Tr(e).getComputedStyle(e)}function Fr(e){return Ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Br(e){if("html"===Rr(e))return e;const t=e.assignedSlot||e.parentNode||zr(e)&&e.host||Er(e);return zr(t)?t.host:t}function Wr(e){const t=Br(e);return Lr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mr(t)&&Dr(t)?t:Wr(t)}function Gr(e,t,o){var r;void 0===t&&(t=[]),void 0===o&&(o=!0);const n=Wr(e),c=n===(null==(r=e.ownerDocument)?void 0:r.body),d=Tr(n);if(c){const e=Ur(d);return t.concat(d,d.visualViewport||[],Dr(n)?n:[],e&&o?Gr(e):[])}return t.concat(n,Gr(n,[],o))}function Ur(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vr(e){const t=Hr(e);let o=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=Mr(e),c=n?e.offsetWidth:o,d=n?e.offsetHeight:r,h=sr(o)!==c||sr(r)!==d;return h&&(o=c,r=d),{width:o,height:r,$:h}}function jr(e){return Ir(e)?e:e.contextElement}function Zr(e){const t=jr(e);if(!Mr(t))return lr(1);const o=t.getBoundingClientRect(),{width:r,height:n,$:c}=Vr(t);let d=(c?sr(o.width):o.width)/r,h=(c?sr(o.height):o.height)/n;return d&&Number.isFinite(d)||(d=1),h&&Number.isFinite(h)||(h=1),{x:d,y:h}}const qr=lr(0);function Yr(e){const t=Tr(e);return Nr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:qr}function Kr(e,t,o,r){void 0===t&&(t=!1),void 0===o&&(o=!1);const n=e.getBoundingClientRect(),c=jr(e);let d=lr(1);t&&(r?Ir(r)&&(d=Zr(r)):d=Zr(e));const h=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==Tr(e))&&t}(c,o,r)?Yr(c):lr(0);let u=(n.left+h.x)/d.x,p=(n.top+h.y)/d.y,m=n.width/d.x,g=n.height/d.y;if(c){const e=Tr(c),t=r&&Ir(r)?Tr(r):r;let o=e,n=Ur(o);for(;n&&r&&t!==o;){const e=Zr(n),t=n.getBoundingClientRect(),r=Hr(n),c=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,d=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,p*=e.y,m*=e.x,g*=e.y,u+=c,p+=d,o=Tr(n),n=Ur(o)}}return xr({width:m,height:g,x:u,y:p})}function Xr(e,t){const o=Fr(e).scrollLeft;return t?t.left+o:Kr(Er(e)).left+o}function Qr(e,t,o){void 0===o&&(o=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(o?0:Xr(e,r)),y:r.top+t.scrollTop}}function Jr(e,t,o){let r;if("viewport"===t)r=function(e,t){const o=Tr(e),r=Er(e),n=o.visualViewport;let c=r.clientWidth,d=r.clientHeight,h=0,u=0;if(n){c=n.width,d=n.height;const e=Nr();(!e||e&&"fixed"===t)&&(h=n.offsetLeft,u=n.offsetTop)}return{width:c,height:d,x:h,y:u}}(e,o);else if("document"===t)r=function(e){const t=Er(e),o=Fr(e),r=e.ownerDocument.body,n=nr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),c=nr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let d=-o.scrollLeft+Xr(e);const h=-o.scrollTop;return"rtl"===Hr(r).direction&&(d+=nr(t.clientWidth,r.clientWidth)-n),{width:n,height:c,x:d,y:h}}(Er(e));else if(Ir(t))r=function(e,t){const o=Kr(e,!0,"fixed"===t),r=o.top+e.clientTop,n=o.left+e.clientLeft,c=Mr(e)?Zr(e):lr(1);return{width:e.clientWidth*c.x,height:e.clientHeight*c.y,x:n*c.x,y:r*c.y}}(t,o);else{const o=Yr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return xr(r)}function ei(e,t){const o=Br(e);return!(o===t||!Ir(o)||Lr(o))&&("fixed"===Hr(o).position||ei(o,t))}function ti(e,t,o){const r=Mr(t),n=Er(t),c="fixed"===o,d=Kr(e,!0,c,t);let h={scrollLeft:0,scrollTop:0};const u=lr(0);if(r||!r&&!c)if(("body"!==Rr(t)||Dr(n))&&(h=Fr(t)),r){const e=Kr(t,!0,c,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else n&&(u.x=Xr(n));const p=!n||r||c?lr(0):Qr(n,h);return{x:d.left+h.scrollLeft-u.x-p.x,y:d.top+h.scrollTop-u.y-p.y,width:d.width,height:d.height}}function oi(e){return"static"===Hr(e).position}function ri(e,t){if(!Mr(e)||"fixed"===Hr(e).position)return null;if(t)return t(e);let o=e.offsetParent;return Er(e)===o&&(o=o.ownerDocument.body),o}function ii(e,t){const o=Tr(e);if($r(e))return o;if(!Mr(e)){let t=Br(e);for(;t&&!Lr(t);){if(Ir(t)&&!oi(t))return t;t=Br(t)}return o}let r=ri(e,t);for(;r&&Ar(r)&&oi(r);)r=ri(r,t);return r&&Lr(r)&&oi(r)&&!Pr(r)?o:r||function(e){let t=Br(e);for(;Mr(t)&&!Lr(t);){if(Pr(t))return t;if($r(t))return null;t=Br(t)}return null}(e)||o}const ni={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e;const c="fixed"===n,d=Er(r),h=!!t&&$r(t.floating);if(r===d||h&&c)return o;let u={scrollLeft:0,scrollTop:0},p=lr(1);const m=lr(0),g=Mr(r);if((g||!g&&!c)&&(("body"!==Rr(r)||Dr(d))&&(u=Fr(r)),Mr(r))){const e=Kr(r);p=Zr(r),m.x=e.x+r.clientLeft,m.y=e.y+r.clientTop}const v=!d||g||c?lr(0):Qr(d,u,!0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-u.scrollLeft*p.x+m.x+v.x,y:o.y*p.y-u.scrollTop*p.y+m.y+v.y}},getDocumentElement:Er,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e;const c=[..."clippingAncestors"===o?$r(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let r=Gr(e,[],!1).filter((e=>Ir(e)&&"body"!==Rr(e))),n=null;const c="fixed"===Hr(e).position;let d=c?Br(e):e;for(;Ir(d)&&!Lr(d);){const t=Hr(d),o=Pr(d);o||"fixed"!==t.position||(n=null),(c?!o&&!n:!o&&"static"===t.position&&n&&["absolute","fixed"].includes(n.position)||Dr(d)&&!o&&ei(e,d))?r=r.filter((e=>e!==d)):n=t,d=Br(d)}return t.set(e,r),r}(t,this._c):[].concat(o),r],d=c[0],h=c.reduce(((e,o)=>{const r=Jr(t,o,n);return e.top=nr(r.top,e.top),e.right=ir(r.right,e.right),e.bottom=ir(r.bottom,e.bottom),e.left=nr(r.left,e.left),e}),Jr(t,d,n));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},getOffsetParent:ii,getElementRects:async function(e){const t=this.getOffsetParent||ii,o=this.getDimensions,r=await o(e.floating);return{reference:ti(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:o}=Vr(e);return{width:t,height:o}},getScale:Zr,isElement:Ir,isRTL:function(e){return"rtl"===Hr(e).direction}};function si(e,t,o,r){void 0===r&&(r={});const{ancestorScroll:n=!0,ancestorResize:c=!0,elementResize:d="function"==typeof ResizeObserver,layoutShift:h="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,p=jr(e),m=n||c?[...p?Gr(p):[],...Gr(t)]:[];m.forEach((e=>{n&&e.addEventListener("scroll",o,{passive:!0}),c&&e.addEventListener("resize",o)}));const g=p&&h?function(e,t){let o,r=null;const n=Er(e);function c(){var e;clearTimeout(o),null==(e=r)||e.disconnect(),r=null}return function d(h,u){void 0===h&&(h=!1),void 0===u&&(u=1),c();const{left:p,top:m,width:g,height:v}=e.getBoundingClientRect();if(h||t(),!g||!v)return;const y={rootMargin:-ar(m)+"px "+-ar(n.clientWidth-(p+g))+"px "+-ar(n.clientHeight-(m+v))+"px "+-ar(p)+"px",threshold:nr(0,ir(1,u))||1};let w=!0;function _(e){const t=e[0].intersectionRatio;if(t!==u){if(!w)return d();t?d(!1,t):o=setTimeout((()=>{d(!1,1e-7)}),1e3)}w=!1}try{r=new IntersectionObserver(_,{...y,root:n.ownerDocument})}catch(e){r=new IntersectionObserver(_,y)}r.observe(e)}(!0),c}(p,o):null;let v,y=-1,w=null;d&&(w=new ResizeObserver((e=>{let[r]=e;r&&r.target===p&&w&&(w.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var e;null==(e=w)||e.observe(t)}))),o()})),p&&!u&&w.observe(p),w.observe(t));let _=u?Kr(e):null;return u&&function t(){const r=Kr(e);!_||r.x===_.x&&r.y===_.y&&r.width===_.width&&r.height===_.height||o();_=r,v=requestAnimationFrame(t)}(),o(),()=>{var e;m.forEach((e=>{n&&e.removeEventListener("scroll",o),c&&e.removeEventListener("resize",o)})),null==g||g(),null==(e=w)||e.disconnect(),w=null,u&&cancelAnimationFrame(v)}}const ai=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,r;const{x:n,y:c,placement:d,middlewareData:h}=t,u=await async function(e,t){const{placement:o,platform:r,elements:n}=e,c=await(null==r.isRTL?void 0:r.isRTL(n.floating)),d=pr(o),h=fr(o),u="y"===br(o),p=["left","top"].includes(d)?-1:1,m=c&&u?-1:1,g=ur(t,e);let{mainAxis:v,crossAxis:y,alignmentAxis:w}="number"==typeof g?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return h&&"number"==typeof w&&(y="end"===h?-1*w:w),u?{x:y*m,y:v*p}:{x:v*p,y:y*m}}(t,e);return d===(null==(o=h.offset)?void 0:o.placement)&&null!=(r=h.arrow)&&r.alignmentOffset?{}:{x:n+u.x,y:c+u.y,data:{...u,placement:d}}}}},li=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:r,placement:n}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:h={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...u}=ur(e,t),p={x:o,y:r},m=await kr(t,u),g=br(pr(n)),v=mr(g);let y=p[v],w=p[g];if(c){const e="y"===v?"bottom":"right";y=hr(y+m["y"===v?"top":"left"],y,y-m[e])}if(d){const e="y"===g?"bottom":"right";w=hr(w+m["y"===g?"top":"left"],w,w-m[e])}const _=h.fn({...t,[v]:y,[g]:w});return{..._,data:{x:_.x-o,y:_.y-r,enabled:{[v]:c,[g]:d}}}}}},ci=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,r;const{placement:n,middlewareData:c,rects:d,initialPlacement:h,platform:u,elements:p}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:_=!0,...x}=ur(e,t);if(null!=(o=c.arrow)&&o.alignmentOffset)return{};const C=pr(n),S=br(h),T=pr(h)===h,E=await(null==u.isRTL?void 0:u.isRTL(p.floating)),O=v||(T||!_?[wr(h)]:function(e){const t=wr(e);return[yr(e),t,yr(t)]}(h)),D="none"!==w;!v&&D&&O.push(...function(e,t,o,r){const n=fr(e);let c=function(e,t,o){const r=["left","right"],n=["right","left"],c=["top","bottom"],d=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:r:t?r:n;case"left":case"right":return t?c:d;default:return[]}}(pr(e),"start"===o,r);return n&&(c=c.map((e=>e+"-"+n)),t&&(c=c.concat(c.map(yr)))),c}(h,_,w,E));const A=[h,...O],$=await kr(t,x),P=[];let F=(null==(r=c.flip)?void 0:r.overflows)||[];if(m&&P.push($[C]),g){const e=function(e,t,o){void 0===o&&(o=!1);const r=fr(e),n=vr(e),c=gr(n);let d="x"===n?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[c]>t.floating[c]&&(d=wr(d)),[d,wr(d)]}(n,d,E);P.push($[e[0]],$[e[1]])}if(F=[...F,{placement:n,overflows:P}],!P.every((e=>e<=0))){var B,W;const e=((null==(B=c.flip)?void 0:B.index)||0)+1,t=A[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let o=null==(W=F.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:W.placement;if(!o)switch(y){case"bestFit":{var G;const e=null==(G=F.filter((e=>{if(D){const t=br(e.placement);return t===S||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:G[0];e&&(o=e);break}case"initialPlacement":o=h}if(n!==o)return{reset:{placement:o}}}return{}}}},di=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var o,r;const{placement:n,rects:c,platform:d,elements:h}=t,{apply:u=()=>{},...p}=ur(e,t),m=await kr(t,p),g=pr(n),v=fr(n),y="y"===br(n),{width:w,height:_}=c.floating;let x,C;"top"===g||"bottom"===g?(x=g,C=v===(await(null==d.isRTL?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(C=g,x="end"===v?"top":"bottom");const S=_-m.top-m.bottom,T=w-m.left-m.right,E=ir(_-m[x],S),O=ir(w-m[C],T),D=!t.middlewareData.shift;let A=E,$=O;if(null!=(o=t.middlewareData.shift)&&o.enabled.x&&($=T),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(A=S),D&&!v){const e=nr(m.left,0),t=nr(m.right,0),o=nr(m.top,0),r=nr(m.bottom,0);y?$=w-2*(0!==e||0!==t?e+t:nr(m.left,m.right)):A=_-2*(0!==o||0!==r?o+r:nr(m.top,m.bottom))}await u({...t,availableWidth:$,availableHeight:A});const P=await d.getDimensions(h.floating);return w!==P.width||_!==P.height?{reset:{rects:!0}}:{}}}},hi=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:r,placement:n,rects:c,platform:d,elements:h,middlewareData:u}=t,{element:p,padding:m=0}=ur(e,t)||{};if(null==p)return{};const g=_r(m),v={x:o,y:r},y=vr(n),w=gr(y),_=await d.getDimensions(p),x="y"===y,C=x?"top":"left",S=x?"bottom":"right",T=x?"clientHeight":"clientWidth",E=c.reference[w]+c.reference[y]-v[y]-c.floating[w],O=v[y]-c.reference[y],D=await(null==d.getOffsetParent?void 0:d.getOffsetParent(p));let A=D?D[T]:0;A&&await(null==d.isElement?void 0:d.isElement(D))||(A=h.floating[T]||c.floating[w]);const $=E/2-O/2,P=A/2-_[w]/2-1,F=ir(g[C],P),B=ir(g[S],P),W=F,G=A-_[w]-B,U=A/2-_[w]/2+$,V=hr(W,U,G),j=!u.arrow&&null!=fr(n)&&U!==V&&c.reference[w]/2-(U<W?F:B)-_[w]/2<0,Z=j?U<W?U-W:U-G:0;return{[y]:v[y]+Z,data:{[y]:V,centerOffset:U-V-Z,...j&&{alignmentOffset:Z}},reset:j}}}),ui=(e,t,o)=>{const r=new Map,n={platform:ni,...o},c={...n.platform,_c:r};return(async(e,t,o)=>{const{placement:r="bottom",strategy:n="absolute",middleware:c=[],platform:d}=o,h=c.filter(Boolean),u=await(null==d.isRTL?void 0:d.isRTL(t));let p=await d.getElementRects({reference:e,floating:t,strategy:n}),{x:m,y:g}=Cr(p,r,u),v=r,y={},w=0;for(let o=0;o<h.length;o++){const{name:c,fn:_}=h[o],{x,y:C,data:S,reset:T}=await _({x:m,y:g,initialPlacement:r,placement:v,strategy:n,middlewareData:y,rects:p,platform:d,elements:{reference:e,floating:t}});m=null!=x?x:m,g=null!=C?C:g,y={...y,[c]:{...y[c],...S}},T&&w<=50&&(w++,"object"==typeof T&&(T.placement&&(v=T.placement),T.rects&&(p=!0===T.rects?await d.getElementRects({reference:e,floating:t,strategy:n}):T.rects),({x:m,y:g}=Cr(p,v,u))),o=-1)}return{x:m,y:g,placement:v,strategy:n,middlewareData:y}})(e,t,{...n,platform:c})},pi=1,fi=2,mi=3,gi=4,bi=e=>(...t)=>({_$litDirective$:e,values:t});class directive_i{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const vi=bi(class extends directive_i{constructor(e){if(super(e),e.type!==pi||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}const o=e.element.classList;for(const e of this.st)e in t||(o.remove(e),this.st.delete(e));for(const e in t){const r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(o.add(e),this.st.add(e)):(o.remove(e),this.st.delete(e)))}return _o}});function yi(e){return _i(e)}function wi(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function _i(e){for(let t=e;t;t=wi(t))if(t instanceof Element&&"none"===getComputedStyle(t).display)return null;for(let t=wi(e);t;t=wi(t)){if(!(t instanceof Element))continue;const e=getComputedStyle(t);if("contents"!==e.display){if("static"!==e.position||"none"!==e.filter)return t;if("BODY"===t.tagName)return t}}return null}var xi=class extends rr{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const e=this.anchorEl.getBoundingClientRect(),t=this.popup.getBoundingClientRect();let o=0,r=0,n=0,c=0,d=0,h=0,u=0,p=0;this.placement.includes("top")||this.placement.includes("bottom")?e.top<t.top?(o=e.left,r=e.bottom,n=e.right,c=e.bottom,d=t.left,h=t.top,u=t.right,p=t.top):(o=t.left,r=t.bottom,n=t.right,c=t.bottom,d=e.left,h=e.top,u=e.right,p=e.top):e.left<t.left?(o=e.right,r=e.top,n=t.left,c=t.top,d=e.right,h=e.bottom,u=t.left,p=t.bottom):(o=t.right,r=t.top,n=e.left,c=e.top,d=t.right,h=t.bottom,u=e.left,p=e.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${o}px`),this.style.setProperty("--hover-bridge-top-left-y",`${r}px`),this.style.setProperty("--hover-bridge-top-right-x",`${n}px`),this.style.setProperty("--hover-bridge-top-right-y",`${c}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${d}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${h}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${u}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${p}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(e){super.updated(e),e.has("active")&&(this.active?this.start():this.stop()),e.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const e=this.getRootNode();this.anchorEl=e.getElementById(this.anchor)}else this.anchor instanceof Element||function(e){return null!==e&&"object"==typeof e&&"getBoundingClientRect"in e&&(!("contextElement"in e)||e instanceof Element)}(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.active&&this.start()}start(){this.anchorEl&&(this.cleanup=si(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((e=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>e()))):e()}))}reposition(){if(!this.active||!this.anchorEl)return;const e=[ai({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?e.push(di({apply:({rects:e})=>{const t="width"===this.sync||"both"===this.sync,o="height"===this.sync||"both"===this.sync;this.popup.style.width=t?`${e.reference.width}px`:"",this.popup.style.height=o?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&e.push(ci({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&e.push(li({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?e.push(di({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:t})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${t}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${e}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&e.push(hi({element:this.arrowEl,padding:this.arrowPadding}));const t="absolute"===this.strategy?e=>ni.getOffsetParent(e,yi):ni.getOffsetParent;ui(this.anchorEl,this.popup,{placement:this.placement,middleware:e,strategy:this.strategy,platform:Uo(Go({},ni),{getOffsetParent:t})}).then((({x:e,y:t,middlewareData:o,placement:r})=>{const n=this.matches(":dir(rtl)"),c={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]];if(this.setAttribute("data-current-placement",r),Object.assign(this.popup.style,{left:`${e}px`,top:`${t}px`}),this.arrow){const e=o.arrow.x,t=o.arrow.y;let r="",d="",h="",u="";if("start"===this.arrowPlacement){const o="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";r="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",d=n?o:"",u=n?"":o}else if("end"===this.arrowPlacement){const o="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";d=n?"":o,u=n?o:"",h="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(u="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":"",r="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":""):(u="number"==typeof e?`${e}px`:"",r="number"==typeof t?`${t}px`:"");Object.assign(this.arrowEl.style,{top:r,right:d,bottom:h,left:u,[c]:"calc(var(--arrow-size-diagonal) * -1)"})}})),requestAnimationFrame((()=>this.updateHoverBridge())),this.emit("sl-reposition")}render(){return vo`
      <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>

      <span
        part="hover-bridge"
        class=${vi({"popup-hover-bridge":!0,"popup-hover-bridge--visible":this.hoverBridge&&this.active})}
      ></span>

      <div
        part="popup"
        class=${vi({popup:!0,"popup--active":this.active,"popup--fixed":"fixed"===this.strategy,"popup--has-arrow":this.arrow})}
      >
        <slot></slot>
        ${this.arrow?vo`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
      </div>
    `}};xi.styles=[Do,zo],Vo([tr(".popup")],xi.prototype,"popup",2),Vo([tr(".popup__arrow")],xi.prototype,"arrowEl",2),Vo([Xo()],xi.prototype,"anchor",2),Vo([Xo({type:Boolean,reflect:!0})],xi.prototype,"active",2),Vo([Xo({reflect:!0})],xi.prototype,"placement",2),Vo([Xo({reflect:!0})],xi.prototype,"strategy",2),Vo([Xo({type:Number})],xi.prototype,"distance",2),Vo([Xo({type:Number})],xi.prototype,"skidding",2),Vo([Xo({type:Boolean})],xi.prototype,"arrow",2),Vo([Xo({attribute:"arrow-placement"})],xi.prototype,"arrowPlacement",2),Vo([Xo({attribute:"arrow-padding",type:Number})],xi.prototype,"arrowPadding",2),Vo([Xo({type:Boolean})],xi.prototype,"flip",2),Vo([Xo({attribute:"flip-fallback-placements",converter:{fromAttribute:e=>e.split(" ").map((e=>e.trim())).filter((e=>""!==e)),toAttribute:e=>e.join(" ")}})],xi.prototype,"flipFallbackPlacements",2),Vo([Xo({attribute:"flip-fallback-strategy"})],xi.prototype,"flipFallbackStrategy",2),Vo([Xo({type:Object})],xi.prototype,"flipBoundary",2),Vo([Xo({attribute:"flip-padding",type:Number})],xi.prototype,"flipPadding",2),Vo([Xo({type:Boolean})],xi.prototype,"shift",2),Vo([Xo({type:Object})],xi.prototype,"shiftBoundary",2),Vo([Xo({attribute:"shift-padding",type:Number})],xi.prototype,"shiftPadding",2),Vo([Xo({attribute:"auto-size"})],xi.prototype,"autoSize",2),Vo([Xo()],xi.prototype,"sync",2),Vo([Xo({type:Object})],xi.prototype,"autoSizeBoundary",2),Vo([Xo({attribute:"auto-size-padding",type:Number})],xi.prototype,"autoSizePadding",2),Vo([Xo({attribute:"hover-bridge",type:Boolean})],xi.prototype,"hoverBridge",2);var Ci=new Map,ki=new WeakMap;function Si(e){return null!=e?e:{keyframes:[],options:{duration:0}}}function Ri(e,t){return"rtl"===t.toLowerCase()?{keyframes:e.rtlKeyframes||e.keyframes,options:e.options}:e}function Ti(e,t){Ci.set(e,Si(t))}function Ei(e,t,o){const r=ki.get(e);if(null==r?void 0:r[t])return Ri(r[t],o.dir);const n=Ci.get(t);return n?Ri(n,o.dir):{keyframes:[],options:{duration:0}}}function Oi(e,t){return new Promise((o=>{e.addEventListener(t,(function r(n){n.target===e&&(e.removeEventListener(t,r),o())}))}))}function Ii(e,t,o){return new Promise((r=>{if((null==o?void 0:o.duration)===1/0)throw new Error("Promise-based animations must be finite.");const n=e.animate(t,Uo(Go({},o),{duration:zi()?0:o.duration}));n.addEventListener("cancel",r,{once:!0}),n.addEventListener("finish",r,{once:!0})}))}function Mi(e){return(e=e.toString().toLowerCase()).indexOf("ms")>-1?parseFloat(e):e.indexOf("s")>-1?1e3*parseFloat(e):parseFloat(e)}function zi(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Di(e){return Promise.all(e.getAnimations().map((e=>new Promise((t=>{e.cancel(),requestAnimationFrame(t)})))))}function Ai(e,t){return e.map((e=>Uo(Go({},e),{height:"auto"===e.height?`${t}px`:e.height})))}const $i=new Set,Pi=new Map;let Ni,Li="ltr",Hi="en";const Fi="undefined"!=typeof MutationObserver&&"undefined"!=typeof document&&void 0!==document.documentElement;if(Fi){const e=new MutationObserver(Wi);Li=document.documentElement.dir||"ltr",Hi=document.documentElement.lang||navigator.language,e.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function Bi(...e){e.map((e=>{const t=e.$code.toLowerCase();Pi.has(t)?Pi.set(t,Object.assign(Object.assign({},Pi.get(t)),e)):Pi.set(t,e),Ni||(Ni=e)})),Wi()}function Wi(){Fi&&(Li=document.documentElement.dir||"ltr",Hi=document.documentElement.lang||navigator.language),[...$i.keys()].map((e=>{"function"==typeof e.requestUpdate&&e.requestUpdate()}))}class LocalizeController{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){$i.add(this.host)}hostDisconnected(){$i.delete(this.host)}dir(){return`${this.host.dir||Li}`.toLowerCase()}lang(){return`${this.host.lang||Hi}`.toLowerCase()}getTranslationData(e){var t,o;const r=new Intl.Locale(e.replace(/_/g,"-")),n=null==r?void 0:r.language.toLowerCase(),c=null!==(o=null===(t=null==r?void 0:r.region)||void 0===t?void 0:t.toLowerCase())&&void 0!==o?o:"";return{locale:r,language:n,region:c,primary:Pi.get(`${n}-${c}`),secondary:Pi.get(n)}}exists(e,t){var o;const{primary:r,secondary:n}=this.getTranslationData(null!==(o=t.lang)&&void 0!==o?o:this.lang());return t=Object.assign({includeFallback:!1},t),!!(r&&r[e]||n&&n[e]||t.includeFallback&&Ni&&Ni[e])}term(e,...t){const{primary:o,secondary:r}=this.getTranslationData(this.lang());let n;if(o&&o[e])n=o[e];else if(r&&r[e])n=r[e];else{if(!Ni||!Ni[e])return String(e);n=Ni[e]}return"function"==typeof n?n(...t):n}date(e,t){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),t).format(e)}number(e,t){return e=Number(e),isNaN(e)?"":new Intl.NumberFormat(this.lang(),t).format(e)}relativeTime(e,t,o){return new Intl.RelativeTimeFormat(this.lang(),o).format(e,t)}}var Gi={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(e,t)=>`Go to slide ${e} of ${t}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:e=>0===e?"No options selected":1===e?"1 option selected":`${e} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:e=>`Slide ${e}`,toggleColorFormat:"Toggle color format"};Bi(Gi);var Ui=Gi,Vi=class extends LocalizeController{};function ji(e,t){const o=Go({waitUntilFirstUpdate:!1},t);return(t,r)=>{const{update:n}=t,c=Array.isArray(e)?e:[e];t.update=function(e){c.forEach((t=>{const n=t;if(e.has(n)){const t=e.get(n),c=this[n];t!==c&&(o.waitUntilFirstUpdate&&!this.hasUpdated||this[r](t,c))}})),n.call(this,e)}}}Bi(Ui);var Zi=class extends rr{constructor(){super(),this.localize=new Vi(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&(e.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const e=Mi(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),e)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const e=Mi(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),e)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){var e;null==(e=this.closeWatcher)||e.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(e){return this.trigger.split(" ").includes(e)}async handleOpenChange(){var e,t;if(this.open){if(this.disabled)return;this.emit("sl-show"),"CloseWatcher"in window?(null==(e=this.closeWatcher)||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),await Di(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:o}=Ei(this,"tooltip.show",{dir:this.localize.dir()});await Ii(this.popup.popup,t,o),this.popup.reposition(),this.emit("sl-after-show")}else{this.emit("sl-hide"),null==(t=this.closeWatcher)||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown),await Di(this.body);const{keyframes:e,options:o}=Ei(this,"tooltip.hide",{dir:this.localize.dir()});await Ii(this.popup.popup,e,o),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Oi(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Oi(this,"sl-after-hide")}render(){return vo`
      <sl-popup
        part="base"
        exportparts="
          popup:base__popup,
          arrow:base__arrow
        "
        class=${vi({tooltip:!0,"tooltip--open":this.open})}
        placement=${this.placement}
        distance=${this.distance}
        skidding=${this.skidding}
        strategy=${this.hoist?"fixed":"absolute"}
        flip
        shift
        arrow
        hover-bridge
      >
        ${""}
        <slot slot="anchor" aria-describedby="tooltip"></slot>

        ${""}
        <div part="body" id="tooltip" class="tooltip__body" role="tooltip" aria-live=${this.open?"polite":"off"}>
          <slot name="content">${this.content}</slot>
        </div>
      </sl-popup>
    `}};Zi.styles=[Do,Mo],Zi.dependencies={"sl-popup":xi},Vo([tr("slot:not([name])")],Zi.prototype,"defaultSlot",2),Vo([tr(".tooltip__body")],Zi.prototype,"body",2),Vo([tr("sl-popup")],Zi.prototype,"popup",2),Vo([Xo()],Zi.prototype,"content",2),Vo([Xo()],Zi.prototype,"placement",2),Vo([Xo({type:Boolean,reflect:!0})],Zi.prototype,"disabled",2),Vo([Xo({type:Number})],Zi.prototype,"distance",2),Vo([Xo({type:Boolean,reflect:!0})],Zi.prototype,"open",2),Vo([Xo({type:Number})],Zi.prototype,"skidding",2),Vo([Xo()],Zi.prototype,"trigger",2),Vo([Xo({type:Boolean})],Zi.prototype,"hoist",2),Vo([ji("open",{waitUntilFirstUpdate:!0})],Zi.prototype,"handleOpenChange",1),Vo([ji(["content","distance","hoist","placement","skidding"])],Zi.prototype,"handleOptionsChange",1),Vo([ji("disabled")],Zi.prototype,"handleDisabledChange",1),Ti("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),Ti("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});const qi=new Set(["children","localName","ref","style","className"]),Yi=new WeakMap,Ki=(e,t,o,r,n)=>{const c=n?.[t];void 0===c?(e[t]=o,null==o&&t in HTMLElement.prototype&&e.removeAttribute(t)):o!==r&&((e,t,o)=>{let r=Yi.get(e);void 0===r&&Yi.set(e,r=new Map);let n=r.get(t);void 0!==o?void 0===n?(r.set(t,n={handleEvent:o}),e.addEventListener(t,n)):n.handleEvent=o:void 0!==n&&(r.delete(t),e.removeEventListener(t,n))})(e,c,o)},Xi=({react:e,tagName:t,elementClass:o,events:r,displayName:n})=>{const c=new Set(Object.keys(r??{})),d=e.forwardRef(((n,d)=>{const h=e.useRef(new Map),u=e.useRef(null),p={},m={};for(const[e,t]of Object.entries(n))qi.has(e)?p["className"===e?"class":e]=t:c.has(e)||e in o.prototype?m[e]=t:p[e]=t;return e.useLayoutEffect((()=>{if(null===u.current)return;const e=new Map;for(const t in m)Ki(u.current,t,n[t],h.current.get(t),r),h.current.delete(t),e.set(t,n[t]);for(const[e,t]of h.current)Ki(u.current,e,void 0,t,r);h.current=e})),e.useLayoutEffect((()=>{u.current?.removeAttribute("defer-hydration")}),[]),p.suppressHydrationWarning=!0,e.createElement(t,{...p,ref:e.useCallback((e=>{u.current=e,"function"==typeof d?d(e):null!==d&&(d.current=e)}),[d])})}));return d.displayName=n??o.name,d};Zi.define("sl-tooltip");Xi({tagName:"sl-tooltip",elementClass:Zi,react:p,events:{onSlShow:"sl-show",onSlAfterShow:"sl-after-show",onSlHide:"sl-hide",onSlAfterHide:"sl-after-hide"},displayName:"SlTooltip"});var Qi=At`
  :host {
    display: block;
  }

  .textarea {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    font-family: var(--sl-input-font-family);
    font-weight: var(--sl-input-font-weight);
    line-height: var(--sl-line-height-normal);
    letter-spacing: var(--sl-input-letter-spacing);
    vertical-align: middle;
    transition:
      var(--sl-transition-fast) color,
      var(--sl-transition-fast) border,
      var(--sl-transition-fast) box-shadow,
      var(--sl-transition-fast) background-color;
    cursor: text;
  }

  /* Standard textareas */
  .textarea--standard {
    background-color: var(--sl-input-background-color);
    border: solid var(--sl-input-border-width) var(--sl-input-border-color);
  }

  .textarea--standard:hover:not(.textarea--disabled) {
    background-color: var(--sl-input-background-color-hover);
    border-color: var(--sl-input-border-color-hover);
  }
  .textarea--standard:hover:not(.textarea--disabled) .textarea__control {
    color: var(--sl-input-color-hover);
  }

  .textarea--standard.textarea--focused:not(.textarea--disabled) {
    background-color: var(--sl-input-background-color-focus);
    border-color: var(--sl-input-border-color-focus);
    color: var(--sl-input-color-focus);
    box-shadow: 0 0 0 var(--sl-focus-ring-width) var(--sl-input-focus-ring-color);
  }

  .textarea--standard.textarea--focused:not(.textarea--disabled) .textarea__control {
    color: var(--sl-input-color-focus);
  }

  .textarea--standard.textarea--disabled {
    background-color: var(--sl-input-background-color-disabled);
    border-color: var(--sl-input-border-color-disabled);
    opacity: 0.5;
    cursor: not-allowed;
  }

  .textarea--standard.textarea--disabled .textarea__control {
    color: var(--sl-input-color-disabled);
  }

  .textarea--standard.textarea--disabled .textarea__control::placeholder {
    color: var(--sl-input-placeholder-color-disabled);
  }

  /* Filled textareas */
  .textarea--filled {
    border: none;
    background-color: var(--sl-input-filled-background-color);
    color: var(--sl-input-color);
  }

  .textarea--filled:hover:not(.textarea--disabled) {
    background-color: var(--sl-input-filled-background-color-hover);
  }

  .textarea--filled.textarea--focused:not(.textarea--disabled) {
    background-color: var(--sl-input-filled-background-color-focus);
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .textarea--filled.textarea--disabled {
    background-color: var(--sl-input-filled-background-color-disabled);
    opacity: 0.5;
    cursor: not-allowed;
  }

  .textarea__control {
    flex: 1 1 auto;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.4;
    color: var(--sl-input-color);
    border: none;
    background: none;
    box-shadow: none;
    cursor: inherit;
    -webkit-appearance: none;
  }

  .textarea__control::-webkit-search-decoration,
  .textarea__control::-webkit-search-cancel-button,
  .textarea__control::-webkit-search-results-button,
  .textarea__control::-webkit-search-results-decoration {
    -webkit-appearance: none;
  }

  .textarea__control::placeholder {
    color: var(--sl-input-placeholder-color);
    user-select: none;
    -webkit-user-select: none;
  }

  .textarea__control:focus {
    outline: none;
  }

  /*
   * Size modifiers
   */

  .textarea--small {
    border-radius: var(--sl-input-border-radius-small);
    font-size: var(--sl-input-font-size-small);
  }

  .textarea--small .textarea__control {
    padding: 0.5em var(--sl-input-spacing-small);
  }

  .textarea--medium {
    border-radius: var(--sl-input-border-radius-medium);
    font-size: var(--sl-input-font-size-medium);
  }

  .textarea--medium .textarea__control {
    padding: 0.5em var(--sl-input-spacing-medium);
  }

  .textarea--large {
    border-radius: var(--sl-input-border-radius-large);
    font-size: var(--sl-input-font-size-large);
  }

  .textarea--large .textarea__control {
    padding: 0.5em var(--sl-input-spacing-large);
  }

  /*
   * Resize types
   */

  .textarea--resize-none .textarea__control {
    resize: none;
  }

  .textarea--resize-vertical .textarea__control {
    resize: vertical;
  }

  .textarea--resize-auto .textarea__control {
    height: auto;
    resize: none;
    overflow-y: hidden;
  }
`,Ji=(e="value")=>(t,o)=>{const r=t.constructor,n=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(t,c,d){var h;const u=r.getPropertyOptions(e);if(t===("string"==typeof u.attribute?u.attribute:e)){const t=u.converter||Zt,r=("function"==typeof t?t:null!=(h=null==t?void 0:t.fromAttribute)?h:Zt.fromAttribute)(d,u.type);this[e]!==r&&(this[o]=r)}n.call(this,t,c,d)}},en=At`
  .form-control .form-control__label {
    display: none;
  }

  .form-control .form-control__help-text {
    display: none;
  }

  /* Label */
  .form-control--has-label .form-control__label {
    display: inline-block;
    color: var(--sl-input-label-color);
    margin-bottom: var(--sl-spacing-3x-small);
  }

  .form-control--has-label.form-control--small .form-control__label {
    font-size: var(--sl-input-label-font-size-small);
  }

  .form-control--has-label.form-control--medium .form-control__label {
    font-size: var(--sl-input-label-font-size-medium);
  }

  .form-control--has-label.form-control--large .form-control__label {
    font-size: var(--sl-input-label-font-size-large);
  }

  :host([required]) .form-control--has-label .form-control__label::after {
    content: var(--sl-input-required-content);
    margin-inline-start: var(--sl-input-required-content-offset);
    color: var(--sl-input-required-content-color);
  }

  /* Help text */
  .form-control--has-help-text .form-control__help-text {
    display: block;
    color: var(--sl-input-help-text-color);
    margin-top: var(--sl-spacing-3x-small);
  }

  .form-control--has-help-text.form-control--small .form-control__help-text {
    font-size: var(--sl-input-help-text-font-size-small);
  }

  .form-control--has-help-text.form-control--medium .form-control__help-text {
    font-size: var(--sl-input-help-text-font-size-medium);
  }

  .form-control--has-help-text.form-control--large .form-control__help-text {
    font-size: var(--sl-input-help-text-font-size-large);
  }

  .form-control--has-help-text.form-control--radio-group .form-control__help-text {
    margin-top: var(--sl-spacing-2x-small);
  }
`,tn=new WeakMap,on=new WeakMap,rn=new WeakMap,nn=new WeakSet,sn=new WeakMap,an=class{constructor(e,t){this.handleFormData=e=>{const t=this.options.disabled(this.host),o=this.options.name(this.host),r=this.options.value(this.host),n="sl-button"===this.host.tagName.toLowerCase();this.host.isConnected&&!t&&!n&&"string"==typeof o&&o.length>0&&void 0!==r&&(Array.isArray(r)?r.forEach((t=>{e.formData.append(o,t.toString())})):e.formData.append(o,r.toString()))},this.handleFormSubmit=e=>{var t;const o=this.options.disabled(this.host),r=this.options.reportValidity;this.form&&!this.form.noValidate&&(null==(t=tn.get(this.form))||t.forEach((e=>{this.setUserInteracted(e,!0)}))),!this.form||this.form.noValidate||o||r(this.host)||(e.preventDefault(),e.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),sn.set(this.host,[])},this.handleInteraction=e=>{const t=sn.get(this.host);t.includes(e.type)||t.push(e.type),t.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.checkFormValidity=()=>{if(this.form&&!this.form.noValidate){const e=this.form.querySelectorAll("*");for(const t of e)if("function"==typeof t.checkValidity&&!t.checkValidity())return!1}return!0},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const e=this.form.querySelectorAll("*");for(const t of e)if("function"==typeof t.reportValidity&&!t.reportValidity())return!1}return!0},(this.host=e).addController(this),this.options=Go({form:e=>{const t=e.form;if(t){const o=e.getRootNode().querySelector(`#${t}`);if(o)return o}return e.closest("form")},name:e=>e.name,value:e=>e.value,defaultValue:e=>e.defaultValue,disabled:e=>{var t;return null!=(t=e.disabled)&&t},reportValidity:e=>"function"!=typeof e.reportValidity||e.reportValidity(),checkValidity:e=>"function"!=typeof e.checkValidity||e.checkValidity(),setValue:(e,t)=>e.value=t,assumeInteractionOn:["sl-input"]},t)}hostConnected(){const e=this.options.form(this.host);e&&this.attachForm(e),sn.set(this.host,[]),this.options.assumeInteractionOn.forEach((e=>{this.host.addEventListener(e,this.handleInteraction)}))}hostDisconnected(){this.detachForm(),sn.delete(this.host),this.options.assumeInteractionOn.forEach((e=>{this.host.removeEventListener(e,this.handleInteraction)}))}hostUpdated(){const e=this.options.form(this.host);e||this.detachForm(),e&&this.form!==e&&(this.detachForm(),this.attachForm(e)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(e){e?(this.form=e,tn.has(this.form)?tn.get(this.form).add(this.host):tn.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),on.has(this.form)||(on.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),rn.has(this.form)||(rn.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())):this.form=void 0}detachForm(){if(!this.form)return;const e=tn.get(this.form);e&&(e.delete(this.host),e.size<=0&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),on.has(this.form)&&(this.form.reportValidity=on.get(this.form),on.delete(this.form)),rn.has(this.form)&&(this.form.checkValidity=rn.get(this.form),rn.delete(this.form)),this.form=void 0))}setUserInteracted(e,t){t?nn.add(e):nn.delete(e),e.requestUpdate()}doAction(e,t){if(this.form){const o=document.createElement("button");o.type=e,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",t&&(o.name=t.name,o.value=t.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach((e=>{t.hasAttribute(e)&&o.setAttribute(e,t.getAttribute(e))}))),this.form.append(o),o.click(),o.remove()}}getForm(){var e;return null!=(e=this.form)?e:null}reset(e){this.doAction("reset",e)}submit(e){this.doAction("submit",e)}setValidity(e){const t=this.host,o=Boolean(nn.has(t)),r=Boolean(t.required);t.toggleAttribute("data-required",r),t.toggleAttribute("data-optional",!r),t.toggleAttribute("data-invalid",!e),t.toggleAttribute("data-valid",e),t.toggleAttribute("data-user-invalid",!e&&o),t.toggleAttribute("data-user-valid",e&&o)}updateValidity(){const e=this.host;this.setValidity(e.validity.valid)}emitInvalidEvent(e){const t=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});e||t.preventDefault(),this.host.dispatchEvent(t)||null==e||e.preventDefault()}},ln=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),cn=Object.freeze(Uo(Go({},ln),{valid:!1,valueMissing:!0})),dn=Object.freeze(Uo(Go({},ln),{valid:!1,customError:!0})),hn=class{constructor(e,...t){this.slotNames=[],this.handleSlotChange=e=>{const t=e.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()},(this.host=e).addController(this),this.slotNames=t}hasDefaultSlot(){return[...this.host.childNodes].some((e=>{if(e.nodeType===e.TEXT_NODE&&""!==e.textContent.trim())return!0;if(e.nodeType===e.ELEMENT_NODE){const t=e;if("sl-visually-hidden"===t.tagName.toLowerCase())return!1;if(!t.hasAttribute("slot"))return!0}return!1}))}hasNamedSlot(e){return null!==this.host.querySelector(`:scope > [slot="${e}"]`)}test(e){return"[default]"===e?this.hasDefaultSlot():this.hasNamedSlot(e)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}};const un=e=>e??xo,{I:pn}=Eo,fn=e=>void 0===e.strings,mn=()=>document.createComment(""),gn=(e,t,o)=>{const r=e._$AA.parentNode,n=void 0===t?e._$AB:t._$AA;if(void 0===o){const t=r.insertBefore(mn(),n),c=r.insertBefore(mn(),n);o=new pn(t,c,e,e.options)}else{const t=o._$AB.nextSibling,c=o._$AM,d=c!==e;if(d){let t;o._$AQ?.(e),o._$AM=e,void 0!==o._$AP&&(t=e._$AU)!==c._$AU&&o._$AP(t)}if(t!==n||d){let e=o._$AA;for(;e!==t;){const t=e.nextSibling;r.insertBefore(e,n),e=t}}}return o},bn=(e,t,o=e)=>(e._$AI(t,o),e),vn={},yn=(e,t=vn)=>e._$AH=t,wn=e=>{e._$AP?.(!1,!0);let t=e._$AA;const o=e._$AB.nextSibling;for(;t!==o;){const e=t.nextSibling;t.remove(),t=e}},_n=bi(class extends directive_i{constructor(e){if(super(e),e.type!==mi&&e.type!==pi&&e.type!==gi)throw Error("The `live` directive is not allowed on child or event bindings");if(!fn(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===_o||t===xo)return t;const o=e.element,r=e.name;if(e.type===mi){if(t===o[r])return _o}else if(e.type===gi){if(!!t===o.hasAttribute(r))return _o}else if(e.type===pi&&o.getAttribute(r)===t+"")return _o;return yn(e),t}});var xn=class extends rr{constructor(){super(...arguments),this.formControlController=new an(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new hn(this,"help-text","label"),this.hasFocus=!1,this.title="",this.name="",this.value="",this.size="medium",this.filled=!1,this.label="",this.helpText="",this.placeholder="",this.rows=4,this.resize="vertical",this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.spellcheck=!0,this.defaultValue=""}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.setTextareaHeight())),this.updateComplete.then((()=>{this.setTextareaHeight(),this.resizeObserver.observe(this.input)}))}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){var e;super.disconnectedCallback(),this.input&&(null==(e=this.resizeObserver)||e.unobserve(this.input))}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleChange(){this.value=this.input.value,this.setTextareaHeight(),this.emit("sl-change")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleInput(){this.value=this.input.value,this.emit("sl-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}setTextareaHeight(){"auto"===this.resize?(this.input.style.height="auto",this.input.style.height=`${this.input.scrollHeight}px`):this.input.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}scrollPosition(e){return e?("number"==typeof e.top&&(this.input.scrollTop=e.top),void("number"==typeof e.left&&(this.input.scrollLeft=e.left))):{top:this.input.scrollTop,left:this.input.scrollTop}}setSelectionRange(e,t,o="none"){this.input.setSelectionRange(e,t,o)}setRangeText(e,t,o,r="preserve"){const n=null!=t?t:this.input.selectionStart,c=null!=o?o:this.input.selectionEnd;this.input.setRangeText(e,n,c,r),this.value!==this.input.value&&(this.value=this.input.value,this.setTextareaHeight())}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){const e=this.hasSlotController.test("label"),t=this.hasSlotController.test("help-text"),o=!!this.label||!!e,r=!!this.helpText||!!t;return vo`
      <div
        part="form-control"
        class=${vi({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-label":o,"form-control--has-help-text":r})}
      >
        <label
          part="form-control-label"
          class="form-control__label"
          for="input"
          aria-hidden=${o?"false":"true"}
        >
          <slot name="label">${this.label}</slot>
        </label>

        <div part="form-control-input" class="form-control-input">
          <div
            part="base"
            class=${vi({textarea:!0,"textarea--small":"small"===this.size,"textarea--medium":"medium"===this.size,"textarea--large":"large"===this.size,"textarea--standard":!this.filled,"textarea--filled":this.filled,"textarea--disabled":this.disabled,"textarea--focused":this.hasFocus,"textarea--empty":!this.value,"textarea--resize-none":"none"===this.resize,"textarea--resize-vertical":"vertical"===this.resize,"textarea--resize-auto":"auto"===this.resize})}
          >
            <textarea
              part="textarea"
              id="input"
              class="textarea__control"
              title=${this.title}
              name=${un(this.name)}
              .value=${_n(this.value)}
              ?disabled=${this.disabled}
              ?readonly=${this.readonly}
              ?required=${this.required}
              placeholder=${un(this.placeholder)}
              rows=${un(this.rows)}
              minlength=${un(this.minlength)}
              maxlength=${un(this.maxlength)}
              autocapitalize=${un(this.autocapitalize)}
              autocorrect=${un(this.autocorrect)}
              ?autofocus=${this.autofocus}
              spellcheck=${un(this.spellcheck)}
              enterkeyhint=${un(this.enterkeyhint)}
              inputmode=${un(this.inputmode)}
              aria-describedby="help-text"
              @change=${this.handleChange}
              @input=${this.handleInput}
              @invalid=${this.handleInvalid}
              @focus=${this.handleFocus}
              @blur=${this.handleBlur}
            ></textarea>
          </div>
        </div>

        <div
          part="form-control-help-text"
          id="help-text"
          class="form-control__help-text"
          aria-hidden=${r?"false":"true"}
        >
          <slot name="help-text">${this.helpText}</slot>
        </div>
      </div>
    `}};xn.styles=[Do,en,Qi],Vo([tr(".textarea__control")],xn.prototype,"input",2),Vo([Qo()],xn.prototype,"hasFocus",2),Vo([Xo()],xn.prototype,"title",2),Vo([Xo()],xn.prototype,"name",2),Vo([Xo()],xn.prototype,"value",2),Vo([Xo({reflect:!0})],xn.prototype,"size",2),Vo([Xo({type:Boolean,reflect:!0})],xn.prototype,"filled",2),Vo([Xo()],xn.prototype,"label",2),Vo([Xo({attribute:"help-text"})],xn.prototype,"helpText",2),Vo([Xo()],xn.prototype,"placeholder",2),Vo([Xo({type:Number})],xn.prototype,"rows",2),Vo([Xo()],xn.prototype,"resize",2),Vo([Xo({type:Boolean,reflect:!0})],xn.prototype,"disabled",2),Vo([Xo({type:Boolean,reflect:!0})],xn.prototype,"readonly",2),Vo([Xo({reflect:!0})],xn.prototype,"form",2),Vo([Xo({type:Boolean,reflect:!0})],xn.prototype,"required",2),Vo([Xo({type:Number})],xn.prototype,"minlength",2),Vo([Xo({type:Number})],xn.prototype,"maxlength",2),Vo([Xo()],xn.prototype,"autocapitalize",2),Vo([Xo()],xn.prototype,"autocorrect",2),Vo([Xo()],xn.prototype,"autocomplete",2),Vo([Xo({type:Boolean})],xn.prototype,"autofocus",2),Vo([Xo()],xn.prototype,"enterkeyhint",2),Vo([Xo({type:Boolean,converter:{fromAttribute:e=>!(!e||"false"===e),toAttribute:e=>e?"true":"false"}})],xn.prototype,"spellcheck",2),Vo([Xo()],xn.prototype,"inputmode",2),Vo([Ji()],xn.prototype,"defaultValue",2),Vo([ji("disabled",{waitUntilFirstUpdate:!0})],xn.prototype,"handleDisabledChange",1),Vo([ji("rows",{waitUntilFirstUpdate:!0})],xn.prototype,"handleRowsChange",1),Vo([ji("value",{waitUntilFirstUpdate:!0})],xn.prototype,"handleValueChange",1);xn.define("sl-textarea");Xi({tagName:"sl-textarea",elementClass:xn,react:p,events:{onSlBlur:"sl-blur",onSlChange:"sl-change",onSlFocus:"sl-focus",onSlInput:"sl-input",onSlInvalid:"sl-invalid"},displayName:"SlTextarea"});var Cn=At`
  :host {
    /*
     * These are actually used by tree item, but we define them here so they can more easily be set and all tree items
     * stay consistent.
     */
    --indent-guide-color: var(--sl-color-neutral-200);
    --indent-guide-offset: 0;
    --indent-guide-style: solid;
    --indent-guide-width: 0;
    --indent-size: var(--sl-spacing-large);

    display: block;

    /*
     * Tree item indentation uses the "em" unit to increment its width on each level, so setting the font size to zero
     * here removes the indentation for all the nodes on the first level.
     */
    font-size: 0;
  }
`,kn=At`
  :host {
    display: block;
    outline: 0;
    z-index: 0;
  }

  :host(:focus) {
    outline: none;
  }

  slot:not([name])::slotted(sl-icon) {
    margin-inline-end: var(--sl-spacing-x-small);
  }

  .tree-item {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    color: var(--sl-color-neutral-700);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }

  .tree-item__checkbox {
    pointer-events: none;
  }

  .tree-item__expand-button,
  .tree-item__checkbox,
  .tree-item__label {
    font-family: var(--sl-font-sans);
    font-size: var(--sl-font-size-medium);
    font-weight: var(--sl-font-weight-normal);
    line-height: var(--sl-line-height-dense);
    letter-spacing: var(--sl-letter-spacing-normal);
  }

  .tree-item__checkbox::part(base) {
    display: flex;
    align-items: center;
  }

  .tree-item__indentation {
    display: block;
    width: 1em;
    flex-shrink: 0;
  }

  .tree-item__expand-button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    color: var(--sl-color-neutral-500);
    padding: var(--sl-spacing-x-small);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    cursor: pointer;
  }

  .tree-item__expand-button {
    transition: var(--sl-transition-medium) rotate ease;
  }

  .tree-item--expanded .tree-item__expand-button {
    rotate: 90deg;
  }

  .tree-item--expanded.tree-item--rtl .tree-item__expand-button {
    rotate: -90deg;
  }

  .tree-item--expanded slot[name='expand-icon'],
  .tree-item:not(.tree-item--expanded) slot[name='collapse-icon'] {
    display: none;
  }

  .tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot {
    display: none;
  }

  .tree-item__expand-button--visible {
    cursor: pointer;
  }

  .tree-item__item {
    display: flex;
    align-items: center;
    border-inline-start: solid 3px transparent;
  }

  .tree-item--disabled .tree-item__item {
    opacity: 0.5;
    outline: none;
    cursor: not-allowed;
  }

  :host(:focus-visible) .tree-item__item {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
    z-index: 2;
  }

  :host(:not([aria-disabled='true'])) .tree-item--selected .tree-item__item {
    background-color: var(--sl-color-neutral-100);
    border-inline-start-color: var(--sl-color-primary-600);
  }

  :host(:not([aria-disabled='true'])) .tree-item__expand-button {
    color: var(--sl-color-neutral-600);
  }

  .tree-item__label {
    display: flex;
    align-items: center;
    transition: var(--sl-transition-fast) color;
  }

  .tree-item__children {
    display: block;
    font-size: calc(1em + var(--indent-size, var(--sl-spacing-medium)));
  }

  /* Indentation lines */
  .tree-item__children {
    position: relative;
  }

  .tree-item__children::before {
    content: '';
    position: absolute;
    top: var(--indent-guide-offset);
    bottom: var(--indent-guide-offset);
    left: calc(1em - (var(--indent-guide-width) / 2) - 1px);
    border-inline-end: var(--indent-guide-width) var(--indent-guide-style) var(--indent-guide-color);
    z-index: 1;
  }

  .tree-item--rtl .tree-item__children::before {
    left: auto;
    right: 1em;
  }

  @media (forced-colors: active) {
    :host(:not([aria-disabled='true'])) .tree-item--selected .tree-item__item {
      outline: dashed 1px SelectedItem;
    }
  }
`,Sn=At`
  :host {
    display: inline-block;
  }

  .checkbox {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    font-family: var(--sl-input-font-family);
    font-weight: var(--sl-input-font-weight);
    color: var(--sl-input-label-color);
    vertical-align: middle;
    cursor: pointer;
  }

  .checkbox--small {
    --toggle-size: var(--sl-toggle-size-small);
    font-size: var(--sl-input-font-size-small);
  }

  .checkbox--medium {
    --toggle-size: var(--sl-toggle-size-medium);
    font-size: var(--sl-input-font-size-medium);
  }

  .checkbox--large {
    --toggle-size: var(--sl-toggle-size-large);
    font-size: var(--sl-input-font-size-large);
  }

  .checkbox__control {
    flex: 0 0 auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--toggle-size);
    height: var(--toggle-size);
    border: solid var(--sl-input-border-width) var(--sl-input-border-color);
    border-radius: 2px;
    background-color: var(--sl-input-background-color);
    color: var(--sl-color-neutral-0);
    transition:
      var(--sl-transition-fast) border-color,
      var(--sl-transition-fast) background-color,
      var(--sl-transition-fast) color,
      var(--sl-transition-fast) box-shadow;
  }

  .checkbox__input {
    position: absolute;
    opacity: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
  }

  .checkbox__checked-icon,
  .checkbox__indeterminate-icon {
    display: inline-flex;
    width: var(--toggle-size);
    height: var(--toggle-size);
  }

  /* Hover */
  .checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover {
    border-color: var(--sl-input-border-color-hover);
    background-color: var(--sl-input-background-color-hover);
  }

  /* Focus */
  .checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  /* Checked/indeterminate */
  .checkbox--checked .checkbox__control,
  .checkbox--indeterminate .checkbox__control {
    border-color: var(--sl-color-primary-600);
    background-color: var(--sl-color-primary-600);
  }

  /* Checked/indeterminate + hover */
  .checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,
  .checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover {
    border-color: var(--sl-color-primary-500);
    background-color: var(--sl-color-primary-500);
  }

  /* Checked/indeterminate + focus */
  .checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control,
  .checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  /* Disabled */
  .checkbox--disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .checkbox__label {
    display: inline-block;
    color: var(--sl-input-label-color);
    line-height: var(--toggle-size);
    margin-inline-start: 0.5em;
    user-select: none;
    -webkit-user-select: none;
  }

  :host([required]) .checkbox__label::after {
    content: var(--sl-input-required-content);
    color: var(--sl-input-required-content-color);
    margin-inline-start: var(--sl-input-required-content-offset);
  }
`,Rn="";function Tn(e){Rn=e}var En={name:"default",resolver:e=>function(e=""){if(!Rn){const e=[...document.getElementsByTagName("script")],t=e.find((e=>e.hasAttribute("data-shoelace")));if(t)Tn(t.getAttribute("data-shoelace"));else{const t=e.find((e=>/shoelace(\.min)?\.js($|\?)/.test(e.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(e.src)));let o="";t&&(o=t.getAttribute("src")),Tn(o.split("/").slice(0,-1).join("/"))}}return Rn.replace(/\/$/,"")+(e?`/${e.replace(/^\//,"")}`:"")}(`assets/icons/${e}.svg`)},On={caret:'\n    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n      <polyline points="6 9 12 15 18 9"></polyline>\n    </svg>\n  ',check:'\n    <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">\n        <g stroke="currentColor">\n          <g transform="translate(3.428571, 3.428571)">\n            <path d="M0,5.71428571 L3.42857143,9.14285714"></path>\n            <path d="M9.14285714,0 L3.42857143,9.14285714"></path>\n          </g>\n        </g>\n      </g>\n    </svg>\n  ',"chevron-down":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">\n      <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>\n    </svg>\n  ',"chevron-left":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">\n      <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>\n    </svg>\n  ',"chevron-right":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">\n      <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>\n    </svg>\n  ',copy:'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">\n      <path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>\n    </svg>\n  ',eye:'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">\n      <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>\n      <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>\n    </svg>\n  ',"eye-slash":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">\n      <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>\n      <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>\n      <path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>\n    </svg>\n  ',eyedropper:'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">\n      <path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>\n    </svg>\n  ',"grip-vertical":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">\n      <path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>\n    </svg>\n  ',indeterminate:'\n    <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">\n        <g stroke="currentColor" stroke-width="2">\n          <g transform="translate(2.285714, 6.857143)">\n            <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>\n          </g>\n        </g>\n      </g>\n    </svg>\n  ',"person-fill":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">\n      <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>\n    </svg>\n  ',"play-fill":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">\n      <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>\n    </svg>\n  ',"pause-fill":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">\n      <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>\n    </svg>\n  ',radio:'\n    <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n        <g fill="currentColor">\n          <circle cx="8" cy="8" r="3.42857143"></circle>\n        </g>\n      </g>\n    </svg>\n  ',"star-fill":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">\n      <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>\n    </svg>\n  ',"x-lg":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">\n      <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>\n    </svg>\n  ',"x-circle-fill":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">\n      <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>\n    </svg>\n  '},In=[En,{name:"system",resolver:e=>e in On?`data:image/svg+xml,${encodeURIComponent(On[e])}`:""}],Mn=[];function zn(e){return In.find((t=>t.name===e))}var Dn,An=At`
  :host {
    display: inline-block;
    width: 1em;
    height: 1em;
    box-sizing: content-box !important;
  }

  svg {
    display: block;
    height: 100%;
    width: 100%;
  }
`,$n=Symbol(),Pn=Symbol(),Nn=new Map,Ln=class extends rr{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(e,t){var o;let r;if(null==t?void 0:t.spriteSheet)return this.svg=vo`<svg part="svg">
        <use part="use" href="${e}"></use>
      </svg>`,this.svg;try{if(r=await fetch(e,{mode:"cors"}),!r.ok)return 410===r.status?$n:Pn}catch(e){return Pn}try{const e=document.createElement("div");e.innerHTML=await r.text();const t=e.firstElementChild;if("svg"!==(null==(o=null==t?void 0:t.tagName)?void 0:o.toLowerCase()))return $n;Dn||(Dn=new DOMParser);const n=Dn.parseFromString(t.outerHTML,"text/html").body.querySelector("svg");return n?(n.part.add("svg"),document.adoptNode(n)):$n}catch(e){return $n}}connectedCallback(){var e;super.connectedCallback(),e=this,Mn.push(e)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){var e;super.disconnectedCallback(),e=this,Mn=Mn.filter((t=>t!==e))}getIconSource(){const e=zn(this.library);return this.name&&e?{url:e.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){"string"==typeof this.label&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var e;const{url:t,fromLibrary:o}=this.getIconSource(),r=o?zn(this.library):void 0;if(!t)return void(this.svg=null);let n=Nn.get(t);if(n||(n=this.resolveIcon(t,r),Nn.set(t,n)),!this.initialRender)return;const c=await n;if(c===Pn&&Nn.delete(t),t===this.getIconSource().url)if(((e,t)=>void 0===t?void 0!==e?._$litType$:e?._$litType$===t)(c)){if(this.svg=c,r){await this.updateComplete;const e=this.shadowRoot.querySelector("[part='svg']");"function"==typeof r.mutator&&e&&r.mutator(e)}}else switch(c){case Pn:case $n:this.svg=null,this.emit("sl-error");break;default:this.svg=c.cloneNode(!0),null==(e=null==r?void 0:r.mutator)||e.call(r,this.svg),this.emit("sl-load")}}render(){return this.svg}};Ln.styles=[Do,An],Vo([Qo()],Ln.prototype,"svg",2),Vo([Xo({reflect:!0})],Ln.prototype,"name",2),Vo([Xo()],Ln.prototype,"src",2),Vo([Xo()],Ln.prototype,"label",2),Vo([Xo({reflect:!0})],Ln.prototype,"library",2),Vo([ji("label")],Ln.prototype,"handleLabelChange",1),Vo([ji(["name","src","library"])],Ln.prototype,"setIcon",1);var Hn=class extends rr{constructor(){super(...arguments),this.formControlController=new an(this,{value:e=>e.checked?e.value||"on":void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new hn(this,"help-text"),this.hasFocus=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form="",this.required=!1,this.helpText=""}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit("sl-change")}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleInput(){this.emit("sl-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){const e=this.hasSlotController.test("help-text"),t=!!this.helpText||!!e;return vo`
      <div
        class=${vi({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-help-text":t})}
      >
        <label
          part="base"
          class=${vi({checkbox:!0,"checkbox--checked":this.checked,"checkbox--disabled":this.disabled,"checkbox--focused":this.hasFocus,"checkbox--indeterminate":this.indeterminate,"checkbox--small":"small"===this.size,"checkbox--medium":"medium"===this.size,"checkbox--large":"large"===this.size})}
        >
          <input
            class="checkbox__input"
            type="checkbox"
            title=${this.title}
            name=${this.name}
            value=${un(this.value)}
            .indeterminate=${_n(this.indeterminate)}
            .checked=${_n(this.checked)}
            .disabled=${this.disabled}
            .required=${this.required}
            aria-checked=${this.checked?"true":"false"}
            aria-describedby="help-text"
            @click=${this.handleClick}
            @input=${this.handleInput}
            @invalid=${this.handleInvalid}
            @blur=${this.handleBlur}
            @focus=${this.handleFocus}
          />

          <span
            part="control${this.checked?" control--checked":""}${this.indeterminate?" control--indeterminate":""}"
            class="checkbox__control"
          >
            ${this.checked?vo`
                  <sl-icon part="checked-icon" class="checkbox__checked-icon" library="system" name="check"></sl-icon>
                `:""}
            ${!this.checked&&this.indeterminate?vo`
                  <sl-icon
                    part="indeterminate-icon"
                    class="checkbox__indeterminate-icon"
                    library="system"
                    name="indeterminate"
                  ></sl-icon>
                `:""}
          </span>

          <div part="label" class="checkbox__label">
            <slot></slot>
          </div>
        </label>

        <div
          aria-hidden=${t?"false":"true"}
          class="form-control__help-text"
          id="help-text"
          part="form-control-help-text"
        >
          <slot name="help-text">${this.helpText}</slot>
        </div>
      </div>
    `}};Hn.styles=[Do,en,Sn],Hn.dependencies={"sl-icon":Ln},Vo([tr('input[type="checkbox"]')],Hn.prototype,"input",2),Vo([Qo()],Hn.prototype,"hasFocus",2),Vo([Xo()],Hn.prototype,"title",2),Vo([Xo()],Hn.prototype,"name",2),Vo([Xo()],Hn.prototype,"value",2),Vo([Xo({reflect:!0})],Hn.prototype,"size",2),Vo([Xo({type:Boolean,reflect:!0})],Hn.prototype,"disabled",2),Vo([Xo({type:Boolean,reflect:!0})],Hn.prototype,"checked",2),Vo([Xo({type:Boolean,reflect:!0})],Hn.prototype,"indeterminate",2),Vo([Ji("checked")],Hn.prototype,"defaultChecked",2),Vo([Xo({reflect:!0})],Hn.prototype,"form",2),Vo([Xo({type:Boolean,reflect:!0})],Hn.prototype,"required",2),Vo([Xo({attribute:"help-text"})],Hn.prototype,"helpText",2),Vo([ji("disabled",{waitUntilFirstUpdate:!0})],Hn.prototype,"handleDisabledChange",1),Vo([ji(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],Hn.prototype,"handleStateChange",1);var Fn=At`
  :host {
    --track-width: 2px;
    --track-color: rgb(128 128 128 / 25%);
    --indicator-color: var(--sl-color-primary-600);
    --speed: 2s;

    display: inline-flex;
    width: 1em;
    height: 1em;
    flex: none;
  }

  .spinner {
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
  }

  .spinner__track,
  .spinner__indicator {
    fill: none;
    stroke-width: var(--track-width);
    r: calc(0.5em - var(--track-width) / 2);
    cx: 0.5em;
    cy: 0.5em;
    transform-origin: 50% 50%;
  }

  .spinner__track {
    stroke: var(--track-color);
    transform-origin: 0% 0%;
  }

  .spinner__indicator {
    stroke: var(--indicator-color);
    stroke-linecap: round;
    stroke-dasharray: 150% 75%;
    animation: spin var(--speed) linear infinite;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
      stroke-dasharray: 0.05em, 3em;
    }

    50% {
      transform: rotate(450deg);
      stroke-dasharray: 1.375em, 1.375em;
    }

    100% {
      transform: rotate(1080deg);
      stroke-dasharray: 0.05em, 3em;
    }
  }
`,Bn=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this)}render(){return vo`
      <svg part="base" class="spinner" role="progressbar" aria-label=${this.localize.term("loading")}>
        <circle class="spinner__track"></circle>
        <circle class="spinner__indicator"></circle>
      </svg>
    `}};function Wn(e,t,o){return e?t(e):o?.(e)}Bn.styles=[Do,Fn];var Gn=class _SlTreeItem extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.indeterminate=!1,this.isLeaf=!1,this.loading=!1,this.selectable=!1,this.expanded=!1,this.selected=!1,this.disabled=!1,this.lazy=!1}static isTreeItem(e){return e instanceof Element&&"treeitem"===e.getAttribute("role")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","treeitem"),this.setAttribute("tabindex","-1"),this.isNestedItem()&&(this.slot="children")}firstUpdated(){this.childrenContainer.hidden=!this.expanded,this.childrenContainer.style.height=this.expanded?"auto":"0",this.isLeaf=!this.lazy&&0===this.getChildrenItems().length,this.handleExpandedChange()}async animateCollapse(){this.emit("sl-collapse"),await Di(this.childrenContainer);const{keyframes:e,options:t}=Ei(this,"tree-item.collapse",{dir:this.localize.dir()});await Ii(this.childrenContainer,Ai(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.hidden=!0,this.emit("sl-after-collapse")}isNestedItem(){const e=this.parentElement;return!!e&&_SlTreeItem.isTreeItem(e)}handleChildrenSlotChange(){this.loading=!1,this.isLeaf=!this.lazy&&0===this.getChildrenItems().length}willUpdate(e){e.has("selected")&&!e.has("indeterminate")&&(this.indeterminate=!1)}async animateExpand(){this.emit("sl-expand"),await Di(this.childrenContainer),this.childrenContainer.hidden=!1;const{keyframes:e,options:t}=Ei(this,"tree-item.expand",{dir:this.localize.dir()});await Ii(this.childrenContainer,Ai(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.style.height="auto",this.emit("sl-after-expand")}handleLoadingChange(){this.setAttribute("aria-busy",this.loading?"true":"false"),this.loading||this.animateExpand()}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleExpandedChange(){this.isLeaf?this.removeAttribute("aria-expanded"):this.setAttribute("aria-expanded",this.expanded?"true":"false")}handleExpandAnimation(){this.expanded?this.lazy?(this.loading=!0,this.emit("sl-lazy-load")):this.animateExpand():this.animateCollapse()}handleLazyChange(){this.emit("sl-lazy-change")}getChildrenItems({includeDisabled:e=!0}={}){return this.childrenSlot?[...this.childrenSlot.assignedElements({flatten:!0})].filter((t=>_SlTreeItem.isTreeItem(t)&&(e||!t.disabled))):[]}render(){const e=this.matches(":dir(rtl)"),t=!this.loading&&(!this.isLeaf||this.lazy);return vo`
      <div
        part="base"
        class="${vi({"tree-item":!0,"tree-item--expanded":this.expanded,"tree-item--selected":this.selected,"tree-item--disabled":this.disabled,"tree-item--leaf":this.isLeaf,"tree-item--has-expand-button":t,"tree-item--rtl":"rtl"===this.localize.dir()})}"
      >
        <div
          class="tree-item__item"
          part="
            item
            ${this.disabled?"item--disabled":""}
            ${this.expanded?"item--expanded":""}
            ${this.indeterminate?"item--indeterminate":""}
            ${this.selected?"item--selected":""}
          "
        >
          <div class="tree-item__indentation" part="indentation"></div>

          <div
            part="expand-button"
            class=${vi({"tree-item__expand-button":!0,"tree-item__expand-button--visible":t})}
            aria-hidden="true"
          >
            ${Wn(this.loading,(()=>vo` <sl-spinner part="spinner" exportparts="base:spinner__base"></sl-spinner> `))}
            <slot class="tree-item__expand-icon-slot" name="expand-icon">
              <sl-icon library="system" name=${e?"chevron-left":"chevron-right"}></sl-icon>
            </slot>
            <slot class="tree-item__expand-icon-slot" name="collapse-icon">
              <sl-icon library="system" name=${e?"chevron-left":"chevron-right"}></sl-icon>
            </slot>
          </div>

          ${Wn(this.selectable,(()=>vo`
              <sl-checkbox
                part="checkbox"
                exportparts="
                    base:checkbox__base,
                    control:checkbox__control,
                    control--checked:checkbox__control--checked,
                    control--indeterminate:checkbox__control--indeterminate,
                    checked-icon:checkbox__checked-icon,
                    indeterminate-icon:checkbox__indeterminate-icon,
                    label:checkbox__label
                  "
                class="tree-item__checkbox"
                ?disabled="${this.disabled}"
                ?checked="${_n(this.selected)}"
                ?indeterminate="${this.indeterminate}"
                tabindex="-1"
              ></sl-checkbox>
            `))}

          <slot class="tree-item__label" part="label"></slot>
        </div>

        <div class="tree-item__children" part="children" role="group">
          <slot name="children" @slotchange="${this.handleChildrenSlotChange}"></slot>
        </div>
      </div>
    `}};Gn.styles=[Do,kn],Gn.dependencies={"sl-checkbox":Hn,"sl-icon":Ln,"sl-spinner":Bn},Vo([Qo()],Gn.prototype,"indeterminate",2),Vo([Qo()],Gn.prototype,"isLeaf",2),Vo([Qo()],Gn.prototype,"loading",2),Vo([Qo()],Gn.prototype,"selectable",2),Vo([Xo({type:Boolean,reflect:!0})],Gn.prototype,"expanded",2),Vo([Xo({type:Boolean,reflect:!0})],Gn.prototype,"selected",2),Vo([Xo({type:Boolean,reflect:!0})],Gn.prototype,"disabled",2),Vo([Xo({type:Boolean,reflect:!0})],Gn.prototype,"lazy",2),Vo([tr("slot:not([name])")],Gn.prototype,"defaultSlot",2),Vo([tr("slot[name=children]")],Gn.prototype,"childrenSlot",2),Vo([tr(".tree-item__item")],Gn.prototype,"itemElement",2),Vo([tr(".tree-item__children")],Gn.prototype,"childrenContainer",2),Vo([tr(".tree-item__expand-button slot")],Gn.prototype,"expandButtonSlot",2),Vo([ji("loading",{waitUntilFirstUpdate:!0})],Gn.prototype,"handleLoadingChange",1),Vo([ji("disabled")],Gn.prototype,"handleDisabledChange",1),Vo([ji("selected")],Gn.prototype,"handleSelectedChange",1),Vo([ji("expanded",{waitUntilFirstUpdate:!0})],Gn.prototype,"handleExpandedChange",1),Vo([ji("expanded",{waitUntilFirstUpdate:!0})],Gn.prototype,"handleExpandAnimation",1),Vo([ji("lazy",{waitUntilFirstUpdate:!0})],Gn.prototype,"handleLazyChange",1);var Un=Gn;function Vn(e,t,o){const r=e=>Object.is(e,-0)?0:e;return r(e<t?t:e>o?o:e)}function jn(e,t=!1){function o(e){const t=e.getChildrenItems({includeDisabled:!1});if(t.length){const o=t.every((e=>e.selected)),r=t.every((e=>!e.selected&&!e.indeterminate));e.selected=o,e.indeterminate=!o&&!r}}!function e(r){for(const o of r.getChildrenItems())o.selected=t?r.selected||o.selected:!o.disabled&&r.selected,e(o);t&&o(r)}(e),function e(t){const r=t.parentElement;Un.isTreeItem(r)&&(o(r),e(r))}(e)}Ti("tree-item.expand",{keyframes:[{height:"0",opacity:"0",overflow:"hidden"},{height:"auto",opacity:"1",overflow:"hidden"}],options:{duration:250,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)"}}),Ti("tree-item.collapse",{keyframes:[{height:"auto",opacity:"1",overflow:"hidden"},{height:"0",opacity:"0",overflow:"hidden"}],options:{duration:200,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)"}});var Zn=class extends rr{constructor(){super(),this.selection="single",this.clickTarget=null,this.initTreeItem=e=>{e.selectable="multiple"===this.selection,["expand","collapse"].filter((e=>!!this.querySelector(`[slot="${e}-icon"]`))).forEach((t=>{const o=e.querySelector(`[slot="${t}-icon"]`),r=this.getExpandButtonIcon(t);r&&(null===o?e.append(r):o.hasAttribute("data-default")&&o.replaceWith(r))}))},this.handleTreeChanged=e=>{for(const t of e){const e=[...t.addedNodes].filter(Un.isTreeItem),o=[...t.removedNodes].filter(Un.isTreeItem);e.forEach(this.initTreeItem),this.lastFocusedItem&&o.includes(this.lastFocusedItem)&&(this.lastFocusedItem=null)}},this.handleFocusOut=e=>{const t=e.relatedTarget;t&&this.contains(t)||(this.tabIndex=0)},this.handleFocusIn=e=>{const t=e.target;e.target===this&&this.focusItem(this.lastFocusedItem||this.getAllTreeItems()[0]),Un.isTreeItem(t)&&!t.disabled&&(this.lastFocusedItem&&(this.lastFocusedItem.tabIndex=-1),this.lastFocusedItem=t,this.tabIndex=-1,t.tabIndex=0)},this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("sl-lazy-change",this.handleSlotChange)}async connectedCallback(){super.connectedCallback(),this.setAttribute("role","tree"),this.setAttribute("tabindex","0"),await this.updateComplete,this.mutationObserver=new MutationObserver(this.handleTreeChanged),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),null==(e=this.mutationObserver)||e.disconnect()}getExpandButtonIcon(e){const t=("expand"===e?this.expandedIconSlot:this.collapsedIconSlot).assignedElements({flatten:!0})[0];if(t){const o=t.cloneNode(!0);return[o,...o.querySelectorAll("[id]")].forEach((e=>e.removeAttribute("id"))),o.setAttribute("data-default",""),o.slot=`${e}-icon`,o}return null}selectItem(e){const t=[...this.selectedItems];if("multiple"===this.selection)e.selected=!e.selected,e.lazy&&(e.expanded=!0),jn(e);else if("single"===this.selection||e.isLeaf){const t=this.getAllTreeItems();for(const o of t)o.selected=o===e}else"leaf"===this.selection&&(e.expanded=!e.expanded);const o=this.selectedItems;(t.length!==o.length||o.some((e=>!t.includes(e))))&&Promise.all(o.map((e=>e.updateComplete))).then((()=>{this.emit("sl-selection-change",{detail:{selection:o}})}))}getAllTreeItems(){return[...this.querySelectorAll("sl-tree-item")]}focusItem(e){null==e||e.focus()}handleKeyDown(e){if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Home","End","Enter"," "].includes(e.key))return;if(e.composedPath().some((e=>{var t;return["input","textarea"].includes(null==(t=null==e?void 0:e.tagName)?void 0:t.toLowerCase())})))return;const t=this.getFocusableItems(),o=this.matches(":dir(ltr)"),r=this.matches(":dir(rtl)");if(t.length>0){e.preventDefault();const n=t.findIndex((e=>e.matches(":focus"))),c=t[n],d=e=>{const o=t[Vn(e,0,t.length-1)];this.focusItem(o)},h=e=>{c.expanded=e};"ArrowDown"===e.key?d(n+1):"ArrowUp"===e.key?d(n-1):o&&"ArrowRight"===e.key||r&&"ArrowLeft"===e.key?!c||c.disabled||c.expanded||c.isLeaf&&!c.lazy?d(n+1):h(!0):o&&"ArrowLeft"===e.key||r&&"ArrowRight"===e.key?!c||c.disabled||c.isLeaf||!c.expanded?d(n-1):h(!1):"Home"===e.key?d(0):"End"===e.key?d(t.length-1):"Enter"!==e.key&&" "!==e.key||c.disabled||this.selectItem(c)}}handleClick(e){const t=e.target,o=t.closest("sl-tree-item"),r=e.composedPath().some((e=>{var t;return null==(t=null==e?void 0:e.classList)?void 0:t.contains("tree-item__expand-button")}));o&&!o.disabled&&t===this.clickTarget&&(r?o.expanded=!o.expanded:this.selectItem(o))}handleMouseDown(e){this.clickTarget=e.target}handleSlotChange(){this.getAllTreeItems().forEach(this.initTreeItem)}async handleSelectionChange(){const e="multiple"===this.selection,t=this.getAllTreeItems();this.setAttribute("aria-multiselectable",e?"true":"false");for(const o of t)o.selectable=e;e&&(await this.updateComplete,[...this.querySelectorAll(":scope > sl-tree-item")].forEach((e=>jn(e,!0))))}get selectedItems(){return this.getAllTreeItems().filter((e=>e.selected))}getFocusableItems(){const e=this.getAllTreeItems(),t=new Set;return e.filter((e=>{var o;if(e.disabled)return!1;const r=null==(o=e.parentElement)?void 0:o.closest("[role=treeitem]");return r&&(!r.expanded||r.loading||t.has(r))&&t.add(e),!t.has(e)}))}render(){return vo`
      <div
        part="base"
        class="tree"
        @click=${this.handleClick}
        @keydown=${this.handleKeyDown}
        @mousedown=${this.handleMouseDown}
      >
        <slot @slotchange=${this.handleSlotChange}></slot>
        <span hidden aria-hidden="true"><slot name="expand-icon"></slot></span>
        <span hidden aria-hidden="true"><slot name="collapse-icon"></slot></span>
      </div>
    `}};Zn.styles=[Do,Cn],Vo([tr("slot:not([name])")],Zn.prototype,"defaultSlot",2),Vo([tr("slot[name=expand-icon]")],Zn.prototype,"expandedIconSlot",2),Vo([tr("slot[name=collapse-icon]")],Zn.prototype,"collapsedIconSlot",2),Vo([Xo()],Zn.prototype,"selection",2),Vo([ji("selection")],Zn.prototype,"handleSelectionChange",1);Zn.define("sl-tree");Xi({tagName:"sl-tree",elementClass:Zn,react:p,events:{onSlSelectionChange:"sl-selection-change"},displayName:"SlTree"});Un.define("sl-tree-item");Xi({tagName:"sl-tree-item",elementClass:Un,react:p,events:{onSlExpand:"sl-expand",onSlAfterExpand:"sl-after-expand",onSlCollapse:"sl-collapse",onSlAfterCollapse:"sl-after-collapse",onSlLazyChange:"sl-lazy-change",onSlLazyLoad:"sl-lazy-load"},displayName:"SlTreeItem"});var qn=At`
  :host(:not(:focus-within)) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: none !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    padding: 0 !important;
  }
`,Yn=class extends rr{render(){return vo` <slot></slot> `}};Yn.styles=[Do,qn];Yn.define("sl-visually-hidden");Xi({tagName:"sl-visually-hidden",elementClass:Yn,react:p,events:{},displayName:"SlVisuallyHidden"});Bn.define("sl-spinner");Xi({tagName:"sl-spinner",elementClass:Bn,react:p,events:{},displayName:"SlSpinner"});var Kn=At`
  :host {
    --divider-width: 4px;
    --divider-hit-area: 12px;
    --min: 0%;
    --max: 100%;

    display: grid;
  }

  .start,
  .end {
    overflow: hidden;
  }

  .divider {
    flex: 0 0 var(--divider-width);
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    background-color: var(--sl-color-neutral-200);
    color: var(--sl-color-neutral-900);
    z-index: 1;
  }

  .divider:focus {
    outline: none;
  }

  :host(:not([disabled])) .divider:focus-visible {
    background-color: var(--sl-color-primary-600);
    color: var(--sl-color-neutral-0);
  }

  :host([disabled]) .divider {
    cursor: not-allowed;
  }

  /* Horizontal */
  :host(:not([vertical], [disabled])) .divider {
    cursor: col-resize;
  }

  :host(:not([vertical])) .divider::after {
    display: flex;
    content: '';
    position: absolute;
    height: 100%;
    left: calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);
    width: var(--divider-hit-area);
  }

  /* Vertical */
  :host([vertical]) {
    flex-direction: column;
  }

  :host([vertical]:not([disabled])) .divider {
    cursor: row-resize;
  }

  :host([vertical]) .divider::after {
    content: '';
    position: absolute;
    width: 100%;
    top: calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);
    height: var(--divider-hit-area);
  }

  @media (forced-colors: active) {
    .divider {
      outline: solid 1px transparent;
    }
  }
`;function Xn(e,t){function o(o){const r=e.getBoundingClientRect(),n=e.ownerDocument.defaultView,c=r.left+n.scrollX,d=r.top+n.scrollY,h=o.pageX-c,u=o.pageY-d;(null==t?void 0:t.onMove)&&t.onMove(h,u)}document.addEventListener("pointermove",o,{passive:!0}),document.addEventListener("pointerup",(function e(){document.removeEventListener("pointermove",o),document.removeEventListener("pointerup",e),(null==t?void 0:t.onStop)&&t.onStop()})),(null==t?void 0:t.initialEvent)instanceof PointerEvent&&o(t.initialEvent)}var Qn=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.position=50,this.vertical=!1,this.disabled=!1,this.snapThreshold=12}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((e=>this.handleResize(e))),this.updateComplete.then((()=>this.resizeObserver.observe(this))),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position)}disconnectedCallback(){var e;super.disconnectedCallback(),null==(e=this.resizeObserver)||e.unobserve(this)}detectSize(){const{width:e,height:t}=this.getBoundingClientRect();this.size=this.vertical?t:e}percentageToPixels(e){return this.size*(e/100)}pixelsToPercentage(e){return e/this.size*100}handleDrag(e){const t=this.matches(":dir(rtl)");this.disabled||(e.cancelable&&e.preventDefault(),Xn(this,{onMove:(e,o)=>{let r=this.vertical?o:e;if("end"===this.primary&&(r=this.size-r),this.snap){this.snap.split(" ").forEach((e=>{let o;o=e.endsWith("%")?this.size*(parseFloat(e)/100):parseFloat(e),t&&!this.vertical&&(o=this.size-o),r>=o-this.snapThreshold&&r<=o+this.snapThreshold&&(r=o)}))}this.position=Vn(this.pixelsToPercentage(r),0,100)},initialEvent:e}))}handleKeyDown(e){if(!this.disabled&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=this.position;const o=(e.shiftKey?10:1)*("end"===this.primary?-1:1);e.preventDefault(),("ArrowLeft"===e.key&&!this.vertical||"ArrowUp"===e.key&&this.vertical)&&(t-=o),("ArrowRight"===e.key&&!this.vertical||"ArrowDown"===e.key&&this.vertical)&&(t+=o),"Home"===e.key&&(t="end"===this.primary?100:0),"End"===e.key&&(t="end"===this.primary?0:100),this.position=Vn(t,0,100)}}handleResize(e){const{width:t,height:o}=e[0].contentRect;this.size=this.vertical?o:t,(isNaN(this.cachedPositionInPixels)||this.position===1/0)&&(this.cachedPositionInPixels=Number(this.getAttribute("position-in-pixels")),this.positionInPixels=Number(this.getAttribute("position-in-pixels")),this.position=this.pixelsToPercentage(this.positionInPixels)),this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels))}handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.positionInPixels=this.percentageToPixels(this.position),this.emit("sl-reposition")}handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels)}handleVerticalChange(){this.detectSize()}render(){const e=this.vertical?"gridTemplateRows":"gridTemplateColumns",t=this.vertical?"gridTemplateColumns":"gridTemplateRows",o=this.matches(":dir(rtl)"),r=`\n      clamp(\n        0%,\n        clamp(\n          var(--min),\n          ${this.position}% - var(--divider-width) / 2,\n          var(--max)\n        ),\n        calc(100% - var(--divider-width))\n      )\n    `,n="auto";return"end"===this.primary?o&&!this.vertical?this.style[e]=`${r} var(--divider-width) ${n}`:this.style[e]=`${n} var(--divider-width) ${r}`:o&&!this.vertical?this.style[e]=`${n} var(--divider-width) ${r}`:this.style[e]=`${r} var(--divider-width) ${n}`,this.style[t]="",vo`
      <slot name="start" part="panel start" class="start"></slot>

      <div
        part="divider"
        class="divider"
        tabindex=${un(this.disabled?void 0:"0")}
        role="separator"
        aria-valuenow=${this.position}
        aria-valuemin="0"
        aria-valuemax="100"
        aria-label=${this.localize.term("resize")}
        @keydown=${this.handleKeyDown}
        @mousedown=${this.handleDrag}
        @touchstart=${this.handleDrag}
      >
        <slot name="divider"></slot>
      </div>

      <slot name="end" part="panel end" class="end"></slot>
    `}};Qn.styles=[Do,Kn],Vo([tr(".divider")],Qn.prototype,"divider",2),Vo([Xo({type:Number,reflect:!0})],Qn.prototype,"position",2),Vo([Xo({attribute:"position-in-pixels",type:Number})],Qn.prototype,"positionInPixels",2),Vo([Xo({type:Boolean,reflect:!0})],Qn.prototype,"vertical",2),Vo([Xo({type:Boolean,reflect:!0})],Qn.prototype,"disabled",2),Vo([Xo()],Qn.prototype,"primary",2),Vo([Xo()],Qn.prototype,"snap",2),Vo([Xo({type:Number,attribute:"snap-threshold"})],Qn.prototype,"snapThreshold",2),Vo([ji("position")],Qn.prototype,"handlePositionChange",1),Vo([ji("positionInPixels")],Qn.prototype,"handlePositionInPixelsChange",1),Vo([ji("vertical")],Qn.prototype,"handleVerticalChange",1);Qn.define("sl-split-panel");Xi({tagName:"sl-split-panel",elementClass:Qn,react:p,events:{onSlReposition:"sl-reposition"},displayName:"SlSplitPanel"});var Jn=At`
  :host {
    --border-radius: var(--sl-border-radius-pill);
    --color: var(--sl-color-neutral-200);
    --sheen-color: var(--sl-color-neutral-300);

    display: block;
    position: relative;
  }

  .skeleton {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 1rem;
  }

  .skeleton__indicator {
    flex: 1 1 auto;
    background: var(--color);
    border-radius: var(--border-radius);
  }

  .skeleton--sheen .skeleton__indicator {
    background: linear-gradient(270deg, var(--sheen-color), var(--color), var(--color), var(--sheen-color));
    background-size: 400% 100%;
    animation: sheen 8s ease-in-out infinite;
  }

  .skeleton--pulse .skeleton__indicator {
    animation: pulse 2s ease-in-out 0.5s infinite;
  }

  /* Forced colors mode */
  @media (forced-colors: active) {
    :host {
      --color: GrayText;
    }
  }

  @keyframes sheen {
    0% {
      background-position: 200% 0;
    }
    to {
      background-position: -200% 0;
    }
  }

  @keyframes pulse {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0.4;
    }
    100% {
      opacity: 1;
    }
  }
`,es=class extends rr{constructor(){super(...arguments),this.effect="none"}render(){return vo`
      <div
        part="base"
        class=${vi({skeleton:!0,"skeleton--pulse":"pulse"===this.effect,"skeleton--sheen":"sheen"===this.effect})}
      >
        <div part="indicator" class="skeleton__indicator"></div>
      </div>
    `}};es.styles=[Do,Jn],Vo([Xo()],es.prototype,"effect",2);es.define("sl-skeleton");Xi({tagName:"sl-skeleton",elementClass:es,react:p,events:{},displayName:"SlSkeleton"});var ts=At`
  :host {
    display: inline-block;
  }

  .tab {
    display: inline-flex;
    align-items: center;
    font-family: var(--sl-font-sans);
    font-size: var(--sl-font-size-small);
    font-weight: var(--sl-font-weight-semibold);
    border-radius: var(--sl-border-radius-medium);
    color: var(--sl-color-neutral-600);
    padding: var(--sl-spacing-medium) var(--sl-spacing-large);
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    transition:
      var(--transition-speed) box-shadow,
      var(--transition-speed) color;
  }

  .tab:hover:not(.tab--disabled) {
    color: var(--sl-color-primary-600);
  }

  :host(:focus) {
    outline: transparent;
  }

  :host(:focus-visible):not([disabled]) {
    color: var(--sl-color-primary-600);
  }

  :host(:focus-visible) {
    outline: var(--sl-focus-ring);
    outline-offset: calc(-1 * var(--sl-focus-ring-width) - var(--sl-focus-ring-offset));
  }

  .tab.tab--active:not(.tab--disabled) {
    color: var(--sl-color-primary-600);
  }

  .tab.tab--closable {
    padding-inline-end: var(--sl-spacing-small);
  }

  .tab.tab--disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .tab__close-button {
    font-size: var(--sl-font-size-small);
    margin-inline-start: var(--sl-spacing-small);
  }

  .tab__close-button::part(base) {
    padding: var(--sl-spacing-3x-small);
  }

  @media (forced-colors: active) {
    .tab.tab--active:not(.tab--disabled) {
      outline: solid 1px transparent;
      outline-offset: -3px;
    }
  }
`,os=At`
  :host {
    display: inline-block;
    color: var(--sl-color-neutral-600);
  }

  .icon-button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    border-radius: var(--sl-border-radius-medium);
    font-size: inherit;
    color: inherit;
    padding: var(--sl-spacing-x-small);
    cursor: pointer;
    transition: var(--sl-transition-x-fast) color;
    -webkit-appearance: none;
  }

  .icon-button:hover:not(.icon-button--disabled),
  .icon-button:focus-visible:not(.icon-button--disabled) {
    color: var(--sl-color-primary-600);
  }

  .icon-button:active:not(.icon-button--disabled) {
    color: var(--sl-color-primary-700);
  }

  .icon-button:focus {
    outline: none;
  }

  .icon-button--disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .icon-button:focus-visible {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .icon-button__icon {
    pointer-events: none;
  }
`;const rs=Symbol.for(""),is=e=>{if(e?.r===rs)return e?._$litStatic$},ns=(e,...t)=>({_$litStatic$:t.reduce(((t,o,r)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n            take care to ensure page security.`)})(o)+e[r+1]),e[0]),r:rs}),ss=new Map,as=e=>(t,...o)=>{const r=o.length;let n,c;const d=[],h=[];let u,p=0,m=!1;for(;p<r;){for(u=t[p];p<r&&void 0!==(c=o[p],n=is(c));)u+=n+t[++p],m=!0;p!==r&&h.push(c),d.push(u),p++}if(p===r&&d.push(t[r]),m){const e=d.join("$$lit$$");void 0===(t=ss.get(e))&&(d.raw=d,ss.set(e,t=d)),o=h}return e(t,...o)},ls=as(vo);as(yo),as(wo);var cs=class extends rr{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}render(){const e=!!this.href,t=e?ns`a`:ns`button`;return ls`
      <${t}
        part="base"
        class=${vi({"icon-button":!0,"icon-button--disabled":!e&&this.disabled,"icon-button--focused":this.hasFocus})}
        ?disabled=${un(e?void 0:this.disabled)}
        type=${un(e?void 0:"button")}
        href=${un(e?this.href:void 0)}
        target=${un(e?this.target:void 0)}
        download=${un(e?this.download:void 0)}
        rel=${un(e&&this.target?"noreferrer noopener":void 0)}
        role=${un(e?void 0:"button")}
        aria-disabled=${this.disabled?"true":"false"}
        aria-label="${this.label}"
        tabindex=${this.disabled?"-1":"0"}
        @blur=${this.handleBlur}
        @focus=${this.handleFocus}
        @click=${this.handleClick}
      >
        <sl-icon
          class="icon-button__icon"
          name=${un(this.name)}
          library=${un(this.library)}
          src=${un(this.src)}
          aria-hidden="true"
        ></sl-icon>
      </${t}>
    `}};cs.styles=[Do,os],cs.dependencies={"sl-icon":Ln},Vo([tr(".icon-button")],cs.prototype,"button",2),Vo([Qo()],cs.prototype,"hasFocus",2),Vo([Xo()],cs.prototype,"name",2),Vo([Xo()],cs.prototype,"library",2),Vo([Xo()],cs.prototype,"src",2),Vo([Xo()],cs.prototype,"href",2),Vo([Xo()],cs.prototype,"target",2),Vo([Xo()],cs.prototype,"download",2),Vo([Xo()],cs.prototype,"label",2),Vo([Xo({type:Boolean,reflect:!0})],cs.prototype,"disabled",2);var ds=0,hs=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.attrId=++ds,this.componentId=`sl-tab-${this.attrId}`,this.panel="",this.active=!1,this.closable=!1,this.disabled=!1,this.tabIndex=0}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleCloseClick(e){e.stopPropagation(),this.emit("sl-close")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.disabled&&!this.active?this.tabIndex=-1:this.tabIndex=0}render(){return this.id=this.id.length>0?this.id:this.componentId,vo`
      <div
        part="base"
        class=${vi({tab:!0,"tab--active":this.active,"tab--closable":this.closable,"tab--disabled":this.disabled})}
      >
        <slot></slot>
        ${this.closable?vo`
              <sl-icon-button
                part="close-button"
                exportparts="base:close-button__base"
                name="x-lg"
                library="system"
                label=${this.localize.term("close")}
                class="tab__close-button"
                @click=${this.handleCloseClick}
                tabindex="-1"
              ></sl-icon-button>
            `:""}
      </div>
    `}};hs.styles=[Do,ts],hs.dependencies={"sl-icon-button":cs},Vo([tr(".tab")],hs.prototype,"tab",2),Vo([Xo({reflect:!0})],hs.prototype,"panel",2),Vo([Xo({type:Boolean,reflect:!0})],hs.prototype,"active",2),Vo([Xo({type:Boolean,reflect:!0})],hs.prototype,"closable",2),Vo([Xo({type:Boolean,reflect:!0})],hs.prototype,"disabled",2),Vo([Xo({type:Number,reflect:!0})],hs.prototype,"tabIndex",2),Vo([ji("active")],hs.prototype,"handleActiveChange",1),Vo([ji("disabled")],hs.prototype,"handleDisabledChange",1);hs.define("sl-tab");Xi({tagName:"sl-tab",elementClass:hs,react:p,events:{onSlClose:"sl-close"},displayName:"SlTab"});var us=At`
  :host {
    --padding: 0;

    display: none;
  }

  :host([active]) {
    display: block;
  }

  .tab-panel {
    display: block;
    padding: var(--padding);
  }
`,ps=0,fs=class extends rr{constructor(){super(...arguments),this.attrId=++ps,this.componentId=`sl-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return vo`
      <slot
        part="base"
        class=${vi({"tab-panel":!0,"tab-panel--active":this.active})}
      ></slot>
    `}};fs.styles=[Do,us],Vo([Xo({reflect:!0})],fs.prototype,"name",2),Vo([Xo({type:Boolean,reflect:!0})],fs.prototype,"active",2),Vo([ji("active")],fs.prototype,"handleActiveChange",1);fs.define("sl-tab-panel");Xi({tagName:"sl-tab-panel",elementClass:fs,react:p,events:{},displayName:"SlTabPanel"});var ms=At`
  :host {
    display: inline-block;
  }

  :host([size='small']) {
    --height: var(--sl-toggle-size-small);
    --thumb-size: calc(var(--sl-toggle-size-small) + 4px);
    --width: calc(var(--height) * 2);

    font-size: var(--sl-input-font-size-small);
  }

  :host([size='medium']) {
    --height: var(--sl-toggle-size-medium);
    --thumb-size: calc(var(--sl-toggle-size-medium) + 4px);
    --width: calc(var(--height) * 2);

    font-size: var(--sl-input-font-size-medium);
  }

  :host([size='large']) {
    --height: var(--sl-toggle-size-large);
    --thumb-size: calc(var(--sl-toggle-size-large) + 4px);
    --width: calc(var(--height) * 2);

    font-size: var(--sl-input-font-size-large);
  }

  .switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: var(--sl-input-font-family);
    font-size: inherit;
    font-weight: var(--sl-input-font-weight);
    color: var(--sl-input-label-color);
    vertical-align: middle;
    cursor: pointer;
  }

  .switch__control {
    flex: 0 0 auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--width);
    height: var(--height);
    background-color: var(--sl-color-neutral-400);
    border: solid var(--sl-input-border-width) var(--sl-color-neutral-400);
    border-radius: var(--height);
    transition:
      var(--sl-transition-fast) border-color,
      var(--sl-transition-fast) background-color;
  }

  .switch__control .switch__thumb {
    width: var(--thumb-size);
    height: var(--thumb-size);
    background-color: var(--sl-color-neutral-0);
    border-radius: 50%;
    border: solid var(--sl-input-border-width) var(--sl-color-neutral-400);
    translate: calc((var(--width) - var(--height)) / -2);
    transition:
      var(--sl-transition-fast) translate ease,
      var(--sl-transition-fast) background-color,
      var(--sl-transition-fast) border-color,
      var(--sl-transition-fast) box-shadow;
  }

  .switch__input {
    position: absolute;
    opacity: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
  }

  /* Hover */
  .switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover {
    background-color: var(--sl-color-neutral-400);
    border-color: var(--sl-color-neutral-400);
  }

  .switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover .switch__thumb {
    background-color: var(--sl-color-neutral-0);
    border-color: var(--sl-color-neutral-400);
  }

  /* Focus */
  .switch:not(.switch--checked):not(.switch--disabled) .switch__input:focus-visible ~ .switch__control {
    background-color: var(--sl-color-neutral-400);
    border-color: var(--sl-color-neutral-400);
  }

  .switch:not(.switch--checked):not(.switch--disabled) .switch__input:focus-visible ~ .switch__control .switch__thumb {
    background-color: var(--sl-color-neutral-0);
    border-color: var(--sl-color-primary-600);
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  /* Checked */
  .switch--checked .switch__control {
    background-color: var(--sl-color-primary-600);
    border-color: var(--sl-color-primary-600);
  }

  .switch--checked .switch__control .switch__thumb {
    background-color: var(--sl-color-neutral-0);
    border-color: var(--sl-color-primary-600);
    translate: calc((var(--width) - var(--height)) / 2);
  }

  /* Checked + hover */
  .switch.switch--checked:not(.switch--disabled) .switch__control:hover {
    background-color: var(--sl-color-primary-600);
    border-color: var(--sl-color-primary-600);
  }

  .switch.switch--checked:not(.switch--disabled) .switch__control:hover .switch__thumb {
    background-color: var(--sl-color-neutral-0);
    border-color: var(--sl-color-primary-600);
  }

  /* Checked + focus */
  .switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control {
    background-color: var(--sl-color-primary-600);
    border-color: var(--sl-color-primary-600);
  }

  .switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control .switch__thumb {
    background-color: var(--sl-color-neutral-0);
    border-color: var(--sl-color-primary-600);
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  /* Disabled */
  .switch--disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .switch__label {
    display: inline-block;
    line-height: var(--height);
    margin-inline-start: 0.5em;
    user-select: none;
    -webkit-user-select: none;
  }

  :host([required]) .switch__label::after {
    content: var(--sl-input-required-content);
    color: var(--sl-input-required-content-color);
    margin-inline-start: var(--sl-input-required-content-offset);
  }

  @media (forced-colors: active) {
    .switch.switch--checked:not(.switch--disabled) .switch__control:hover .switch__thumb,
    .switch--checked .switch__control .switch__thumb {
      background-color: ButtonText;
    }
  }
`,gs=class extends rr{constructor(){super(...arguments),this.formControlController=new an(this,{value:e=>e.checked?e.value||"on":void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new hn(this,"help-text"),this.hasFocus=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1,this.helpText=""}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleInput(){this.emit("sl-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleClick(){this.checked=!this.checked,this.emit("sl-change")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleKeyDown(e){"ArrowLeft"===e.key&&(e.preventDefault(),this.checked=!1,this.emit("sl-change"),this.emit("sl-input")),"ArrowRight"===e.key&&(e.preventDefault(),this.checked=!0,this.emit("sl-change"),this.emit("sl-input"))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){const e=this.hasSlotController.test("help-text"),t=!!this.helpText||!!e;return vo`
      <div
        class=${vi({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-help-text":t})}
      >
        <label
          part="base"
          class=${vi({switch:!0,"switch--checked":this.checked,"switch--disabled":this.disabled,"switch--focused":this.hasFocus,"switch--small":"small"===this.size,"switch--medium":"medium"===this.size,"switch--large":"large"===this.size})}
        >
          <input
            class="switch__input"
            type="checkbox"
            title=${this.title}
            name=${this.name}
            value=${un(this.value)}
            .checked=${_n(this.checked)}
            .disabled=${this.disabled}
            .required=${this.required}
            role="switch"
            aria-checked=${this.checked?"true":"false"}
            aria-describedby="help-text"
            @click=${this.handleClick}
            @input=${this.handleInput}
            @invalid=${this.handleInvalid}
            @blur=${this.handleBlur}
            @focus=${this.handleFocus}
            @keydown=${this.handleKeyDown}
          />

          <span part="control" class="switch__control">
            <span part="thumb" class="switch__thumb"></span>
          </span>

          <div part="label" class="switch__label">
            <slot></slot>
          </div>
        </label>

        <div
          aria-hidden=${t?"false":"true"}
          class="form-control__help-text"
          id="help-text"
          part="form-control-help-text"
        >
          <slot name="help-text">${this.helpText}</slot>
        </div>
      </div>
    `}};gs.styles=[Do,en,ms],Vo([tr('input[type="checkbox"]')],gs.prototype,"input",2),Vo([Qo()],gs.prototype,"hasFocus",2),Vo([Xo()],gs.prototype,"title",2),Vo([Xo()],gs.prototype,"name",2),Vo([Xo()],gs.prototype,"value",2),Vo([Xo({reflect:!0})],gs.prototype,"size",2),Vo([Xo({type:Boolean,reflect:!0})],gs.prototype,"disabled",2),Vo([Xo({type:Boolean,reflect:!0})],gs.prototype,"checked",2),Vo([Ji("checked")],gs.prototype,"defaultChecked",2),Vo([Xo({reflect:!0})],gs.prototype,"form",2),Vo([Xo({type:Boolean,reflect:!0})],gs.prototype,"required",2),Vo([Xo({attribute:"help-text"})],gs.prototype,"helpText",2),Vo([ji("checked",{waitUntilFirstUpdate:!0})],gs.prototype,"handleCheckedChange",1),Vo([ji("disabled",{waitUntilFirstUpdate:!0})],gs.prototype,"handleDisabledChange",1);gs.define("sl-switch");Xi({tagName:"sl-switch",elementClass:gs,react:p,events:{onSlBlur:"sl-blur",onSlChange:"sl-change",onSlInput:"sl-input",onSlFocus:"sl-focus",onSlInvalid:"sl-invalid"},displayName:"SlSwitch"});var bs=At`
  :host {
    --indicator-color: var(--sl-color-primary-600);
    --track-color: var(--sl-color-neutral-200);
    --track-width: 2px;

    display: block;
  }

  .tab-group {
    display: flex;
    border-radius: 0;
  }

  .tab-group__tabs {
    display: flex;
    position: relative;
  }

  .tab-group__indicator {
    position: absolute;
    transition:
      var(--sl-transition-fast) translate ease,
      var(--sl-transition-fast) width ease;
  }

  .tab-group--has-scroll-controls .tab-group__nav-container {
    position: relative;
    padding: 0 var(--sl-spacing-x-large);
  }

  .tab-group--has-scroll-controls .tab-group__scroll-button--start--hidden,
  .tab-group--has-scroll-controls .tab-group__scroll-button--end--hidden {
    visibility: hidden;
  }

  .tab-group__body {
    display: block;
    overflow: auto;
  }

  .tab-group__scroll-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--sl-spacing-x-large);
  }

  .tab-group__scroll-button--start {
    left: 0;
  }

  .tab-group__scroll-button--end {
    right: 0;
  }

  .tab-group--rtl .tab-group__scroll-button--start {
    left: auto;
    right: 0;
  }

  .tab-group--rtl .tab-group__scroll-button--end {
    left: 0;
    right: auto;
  }

  /*
   * Top
   */

  .tab-group--top {
    flex-direction: column;
  }

  .tab-group--top .tab-group__nav-container {
    order: 1;
  }

  .tab-group--top .tab-group__nav {
    display: flex;
    overflow-x: auto;

    /* Hide scrollbar in Firefox */
    scrollbar-width: none;
  }

  /* Hide scrollbar in Chrome/Safari */
  .tab-group--top .tab-group__nav::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .tab-group--top .tab-group__tabs {
    flex: 1 1 auto;
    position: relative;
    flex-direction: row;
    border-bottom: solid var(--track-width) var(--track-color);
  }

  .tab-group--top .tab-group__indicator {
    bottom: calc(-1 * var(--track-width));
    border-bottom: solid var(--track-width) var(--indicator-color);
  }

  .tab-group--top .tab-group__body {
    order: 2;
  }

  .tab-group--top ::slotted(sl-tab-panel) {
    --padding: var(--sl-spacing-medium) 0;
  }

  /*
   * Bottom
   */

  .tab-group--bottom {
    flex-direction: column;
  }

  .tab-group--bottom .tab-group__nav-container {
    order: 2;
  }

  .tab-group--bottom .tab-group__nav {
    display: flex;
    overflow-x: auto;

    /* Hide scrollbar in Firefox */
    scrollbar-width: none;
  }

  /* Hide scrollbar in Chrome/Safari */
  .tab-group--bottom .tab-group__nav::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .tab-group--bottom .tab-group__tabs {
    flex: 1 1 auto;
    position: relative;
    flex-direction: row;
    border-top: solid var(--track-width) var(--track-color);
  }

  .tab-group--bottom .tab-group__indicator {
    top: calc(-1 * var(--track-width));
    border-top: solid var(--track-width) var(--indicator-color);
  }

  .tab-group--bottom .tab-group__body {
    order: 1;
  }

  .tab-group--bottom ::slotted(sl-tab-panel) {
    --padding: var(--sl-spacing-medium) 0;
  }

  /*
   * Start
   */

  .tab-group--start {
    flex-direction: row;
  }

  .tab-group--start .tab-group__nav-container {
    order: 1;
  }

  .tab-group--start .tab-group__tabs {
    flex: 0 0 auto;
    flex-direction: column;
    border-inline-end: solid var(--track-width) var(--track-color);
  }

  .tab-group--start .tab-group__indicator {
    right: calc(-1 * var(--track-width));
    border-right: solid var(--track-width) var(--indicator-color);
  }

  .tab-group--start.tab-group--rtl .tab-group__indicator {
    right: auto;
    left: calc(-1 * var(--track-width));
  }

  .tab-group--start .tab-group__body {
    flex: 1 1 auto;
    order: 2;
  }

  .tab-group--start ::slotted(sl-tab-panel) {
    --padding: 0 var(--sl-spacing-medium);
  }

  /*
   * End
   */

  .tab-group--end {
    flex-direction: row;
  }

  .tab-group--end .tab-group__nav-container {
    order: 2;
  }

  .tab-group--end .tab-group__tabs {
    flex: 0 0 auto;
    flex-direction: column;
    border-left: solid var(--track-width) var(--track-color);
  }

  .tab-group--end .tab-group__indicator {
    left: calc(-1 * var(--track-width));
    border-inline-start: solid var(--track-width) var(--indicator-color);
  }

  .tab-group--end.tab-group--rtl .tab-group__indicator {
    right: calc(-1 * var(--track-width));
    left: auto;
  }

  .tab-group--end .tab-group__body {
    flex: 1 1 auto;
    order: 1;
  }

  .tab-group--end ::slotted(sl-tab-panel) {
    --padding: 0 var(--sl-spacing-medium);
  }
`,vs=At`
  :host {
    display: contents;
  }
`,ys=class extends rr{constructor(){super(...arguments),this.observedElements=[],this.disabled=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((e=>{this.emit("sl-resize",{detail:{entries:e}})})),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}handleSlotChange(){this.disabled||this.startObserver()}startObserver(){const e=this.shadowRoot.querySelector("slot");if(null!==e){const t=e.assignedElements({flatten:!0});this.observedElements.forEach((e=>this.resizeObserver.unobserve(e))),this.observedElements=[],t.forEach((e=>{this.resizeObserver.observe(e),this.observedElements.push(e)}))}}stopObserver(){this.resizeObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}render(){return vo` <slot @slotchange=${this.handleSlotChange}></slot> `}};ys.styles=[Do,vs],Vo([Xo({type:Boolean,reflect:!0})],ys.prototype,"disabled",2),Vo([ji("disabled",{waitUntilFirstUpdate:!0})],ys.prototype,"handleDisabledChange",1);var ws=new Set;function _s(e){if(ws.add(e),!document.documentElement.classList.contains("sl-scroll-lock")){const e=function(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}()+function(){const e=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(e)||!e?0:e}();let t=getComputedStyle(document.documentElement).scrollbarGutter;t&&"auto"!==t||(t="stable"),e<2&&(t=""),document.documentElement.style.setProperty("--sl-scroll-lock-gutter",t),document.documentElement.classList.add("sl-scroll-lock"),document.documentElement.style.setProperty("--sl-scroll-lock-size",`${e}px`)}}function xs(e){ws.delete(e),0===ws.size&&(document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size"))}function Cs(e,t,o="vertical",r="smooth"){const n=function(e,t){return{top:Math.round(e.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(e.getBoundingClientRect().left-t.getBoundingClientRect().left)}}(e,t),c=n.top+t.scrollTop,d=n.left+t.scrollLeft,h=t.scrollLeft,u=t.scrollLeft+t.offsetWidth,p=t.scrollTop,m=t.scrollTop+t.offsetHeight;"horizontal"!==o&&"both"!==o||(d<h?t.scrollTo({left:d,behavior:r}):d+e.clientWidth>u&&t.scrollTo({left:d-t.offsetWidth+e.clientWidth,behavior:r})),"vertical"!==o&&"both"!==o||(c<p?t.scrollTo({top:c,behavior:r}):c+e.clientHeight>m&&t.scrollTo({top:c-t.offsetHeight+e.clientHeight,behavior:r}))}var ks=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.tabs=[],this.focusableTabs=[],this.panels=[],this.hasScrollControls=!1,this.shouldHideScrollStartButton=!1,this.shouldHideScrollEndButton=!1,this.placement="top",this.activation="auto",this.noScrollControls=!1,this.fixedScrollControls=!1,this.scrollOffset=1}connectedCallback(){const e=Promise.all([customElements.whenDefined("sl-tab"),customElements.whenDefined("sl-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>{this.repositionIndicator(),this.updateScrollControls()})),this.mutationObserver=new MutationObserver((e=>{e.some((e=>!["aria-labelledby","aria-controls"].includes(e.attributeName)))&&setTimeout((()=>this.setAriaLabels())),e.some((e=>"disabled"===e.attributeName))&&this.syncTabsAndPanels()})),this.updateComplete.then((()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),e.then((()=>{new IntersectionObserver(((e,t)=>{var o;e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(null!=(o=this.getActiveTab())?o:this.tabs[0],{emitEvents:!1}),t.unobserve(e[0].target))})).observe(this.tabGroup)}))}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),null==(e=this.mutationObserver)||e.disconnect(),null==(t=this.resizeObserver)||t.unobserve(this.nav)}getAllTabs(){return this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()}getAllPanels(){return[...this.body.assignedElements()].filter((e=>"sl-tab-panel"===e.tagName.toLowerCase()))}getActiveTab(){return this.tabs.find((e=>e.active))}handleClick(e){const t=e.target.closest("sl-tab");(null==t?void 0:t.closest("sl-tab-group"))===this&&null!==t&&this.setActiveTab(t,{scrollBehavior:"smooth"})}handleKeyDown(e){const t=e.target.closest("sl-tab");if((null==t?void 0:t.closest("sl-tab-group"))===this&&(["Enter"," "].includes(e.key)&&null!==t&&(this.setActiveTab(t,{scrollBehavior:"smooth"}),e.preventDefault()),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key))){const t=this.tabs.find((e=>e.matches(":focus"))),o=this.matches(":dir(rtl)");let r=null;if("sl-tab"===(null==t?void 0:t.tagName.toLowerCase())){if("Home"===e.key)r=this.focusableTabs[0];else if("End"===e.key)r=this.focusableTabs[this.focusableTabs.length-1];else if(["top","bottom"].includes(this.placement)&&e.key===(o?"ArrowRight":"ArrowLeft")||["start","end"].includes(this.placement)&&"ArrowUp"===e.key){const e=this.tabs.findIndex((e=>e===t));r=this.findNextFocusableTab(e,"backward")}else if(["top","bottom"].includes(this.placement)&&e.key===(o?"ArrowLeft":"ArrowRight")||["start","end"].includes(this.placement)&&"ArrowDown"===e.key){const e=this.tabs.findIndex((e=>e===t));r=this.findNextFocusableTab(e,"forward")}if(!r)return;r.tabIndex=0,r.focus({preventScroll:!0}),"auto"===this.activation?this.setActiveTab(r,{scrollBehavior:"smooth"}):this.tabs.forEach((e=>{e.tabIndex=e===r?0:-1})),["top","bottom"].includes(this.placement)&&Cs(r,this.nav,"horizontal"),e.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(e,t){if(t=Go({emitEvents:!0,scrollBehavior:"auto"},t),e!==this.activeTab&&!e.disabled){const o=this.activeTab;this.activeTab=e,this.tabs.forEach((e=>{e.active=e===this.activeTab,e.tabIndex=e===this.activeTab?0:-1})),this.panels.forEach((e=>{var t;return e.active=e.name===(null==(t=this.activeTab)?void 0:t.panel)})),this.syncIndicator(),["top","bottom"].includes(this.placement)&&Cs(this.activeTab,this.nav,"horizontal",t.scrollBehavior),t.emitEvents&&(o&&this.emit("sl-tab-hide",{detail:{name:o.panel}}),this.emit("sl-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach((e=>{const t=this.panels.find((t=>t.name===e.panel));t&&(e.setAttribute("aria-controls",t.getAttribute("id")),t.setAttribute("aria-labelledby",e.getAttribute("id")))}))}repositionIndicator(){const e=this.getActiveTab();if(!e)return;const t=e.clientWidth,o=e.clientHeight,r=this.matches(":dir(rtl)"),n=this.getAllTabs(),c=n.slice(0,n.indexOf(e)).reduce(((e,t)=>({left:e.left+t.clientWidth,top:e.top+t.clientHeight})),{left:0,top:0});switch(this.placement){case"top":case"bottom":this.indicator.style.width=`${t}px`,this.indicator.style.height="auto",this.indicator.style.translate=r?-1*c.left+"px":`${c.left}px`;break;case"start":case"end":this.indicator.style.width="auto",this.indicator.style.height=`${o}px`,this.indicator.style.translate=`0 ${c.top}px`}}syncTabsAndPanels(){this.tabs=this.getAllTabs(),this.focusableTabs=this.tabs.filter((e=>!e.disabled)),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then((()=>this.updateScrollControls()))}findNextFocusableTab(e,t){let o=null;const r="forward"===t?1:-1;let n=e+r;for(;e<this.tabs.length;){if(o=this.tabs[n]||null,null===o){o="forward"===t?this.focusableTabs[0]:this.focusableTabs[this.focusableTabs.length-1];break}if(!o.disabled)break;n+=r}return o}updateScrollButtons(){this.hasScrollControls&&!this.fixedScrollControls&&(this.shouldHideScrollStartButton=this.scrollFromStart()<=this.scrollOffset,this.shouldHideScrollEndButton=this.isScrolledToEnd())}isScrolledToEnd(){return this.scrollFromStart()+this.nav.clientWidth>=this.nav.scrollWidth-this.scrollOffset}scrollFromStart(){return"rtl"===this.localize.dir()?-this.nav.scrollLeft:this.nav.scrollLeft}updateScrollControls(){this.noScrollControls?this.hasScrollControls=!1:this.hasScrollControls=["top","bottom"].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1,this.updateScrollButtons()}syncIndicator(){this.getActiveTab()?(this.indicator.style.display="block",this.repositionIndicator()):this.indicator.style.display="none"}show(e){const t=this.tabs.find((t=>t.panel===e));t&&this.setActiveTab(t,{scrollBehavior:"smooth"})}render(){const e=this.matches(":dir(rtl)");return vo`
      <div
        part="base"
        class=${vi({"tab-group":!0,"tab-group--top":"top"===this.placement,"tab-group--bottom":"bottom"===this.placement,"tab-group--start":"start"===this.placement,"tab-group--end":"end"===this.placement,"tab-group--rtl":"rtl"===this.localize.dir(),"tab-group--has-scroll-controls":this.hasScrollControls})}
        @click=${this.handleClick}
        @keydown=${this.handleKeyDown}
      >
        <div class="tab-group__nav-container" part="nav">
          ${this.hasScrollControls?vo`
                <sl-icon-button
                  part="scroll-button scroll-button--start"
                  exportparts="base:scroll-button__base"
                  class=${vi({"tab-group__scroll-button":!0,"tab-group__scroll-button--start":!0,"tab-group__scroll-button--start--hidden":this.shouldHideScrollStartButton})}
                  name=${e?"chevron-right":"chevron-left"}
                  library="system"
                  tabindex="-1"
                  aria-hidden="true"
                  label=${this.localize.term("scrollToStart")}
                  @click=${this.handleScrollToStart}
                ></sl-icon-button>
              `:""}

          <div class="tab-group__nav" @scrollend=${this.updateScrollButtons}>
            <div part="tabs" class="tab-group__tabs" role="tablist">
              <div part="active-tab-indicator" class="tab-group__indicator"></div>
              <sl-resize-observer @sl-resize=${this.syncIndicator}>
                <slot name="nav" @slotchange=${this.syncTabsAndPanels}></slot>
              </sl-resize-observer>
            </div>
          </div>

          ${this.hasScrollControls?vo`
                <sl-icon-button
                  part="scroll-button scroll-button--end"
                  exportparts="base:scroll-button__base"
                  class=${vi({"tab-group__scroll-button":!0,"tab-group__scroll-button--end":!0,"tab-group__scroll-button--end--hidden":this.shouldHideScrollEndButton})}
                  name=${e?"chevron-left":"chevron-right"}
                  library="system"
                  tabindex="-1"
                  aria-hidden="true"
                  label=${this.localize.term("scrollToEnd")}
                  @click=${this.handleScrollToEnd}
                ></sl-icon-button>
              `:""}
        </div>

        <slot part="body" class="tab-group__body" @slotchange=${this.syncTabsAndPanels}></slot>
      </div>
    `}};ks.styles=[Do,bs],ks.dependencies={"sl-icon-button":cs,"sl-resize-observer":ys},Vo([tr(".tab-group")],ks.prototype,"tabGroup",2),Vo([tr(".tab-group__body")],ks.prototype,"body",2),Vo([tr(".tab-group__nav")],ks.prototype,"nav",2),Vo([tr(".tab-group__indicator")],ks.prototype,"indicator",2),Vo([Qo()],ks.prototype,"hasScrollControls",2),Vo([Qo()],ks.prototype,"shouldHideScrollStartButton",2),Vo([Qo()],ks.prototype,"shouldHideScrollEndButton",2),Vo([Xo()],ks.prototype,"placement",2),Vo([Xo()],ks.prototype,"activation",2),Vo([Xo({attribute:"no-scroll-controls",type:Boolean})],ks.prototype,"noScrollControls",2),Vo([Xo({attribute:"fixed-scroll-controls",type:Boolean})],ks.prototype,"fixedScrollControls",2),Vo([Jo({passive:!0})],ks.prototype,"updateScrollButtons",1),Vo([ji("noScrollControls",{waitUntilFirstUpdate:!0})],ks.prototype,"updateScrollControls",1),Vo([ji("placement",{waitUntilFirstUpdate:!0})],ks.prototype,"syncIndicator",1);ks.define("sl-tab-group");Xi({tagName:"sl-tab-group",elementClass:ks,react:p,events:{onSlTabShow:"sl-tab-show",onSlTabHide:"sl-tab-hide"},displayName:"SlTabGroup"});var Ss=At`
  :host {
    display: inline-block;
  }

  .tag {
    display: flex;
    align-items: center;
    border: solid 1px;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
  }

  .tag__remove::part(base) {
    color: inherit;
    padding: 0;
  }

  /*
   * Variant modifiers
   */

  .tag--primary {
    background-color: var(--sl-color-primary-50);
    border-color: var(--sl-color-primary-200);
    color: var(--sl-color-primary-800);
  }

  .tag--primary:active > sl-icon-button {
    color: var(--sl-color-primary-600);
  }

  .tag--success {
    background-color: var(--sl-color-success-50);
    border-color: var(--sl-color-success-200);
    color: var(--sl-color-success-800);
  }

  .tag--success:active > sl-icon-button {
    color: var(--sl-color-success-600);
  }

  .tag--neutral {
    background-color: var(--sl-color-neutral-50);
    border-color: var(--sl-color-neutral-200);
    color: var(--sl-color-neutral-800);
  }

  .tag--neutral:active > sl-icon-button {
    color: var(--sl-color-neutral-600);
  }

  .tag--warning {
    background-color: var(--sl-color-warning-50);
    border-color: var(--sl-color-warning-200);
    color: var(--sl-color-warning-800);
  }

  .tag--warning:active > sl-icon-button {
    color: var(--sl-color-warning-600);
  }

  .tag--danger {
    background-color: var(--sl-color-danger-50);
    border-color: var(--sl-color-danger-200);
    color: var(--sl-color-danger-800);
  }

  .tag--danger:active > sl-icon-button {
    color: var(--sl-color-danger-600);
  }

  /*
   * Size modifiers
   */

  .tag--small {
    font-size: var(--sl-button-font-size-small);
    height: calc(var(--sl-input-height-small) * 0.8);
    line-height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2);
    border-radius: var(--sl-input-border-radius-small);
    padding: 0 var(--sl-spacing-x-small);
  }

  .tag--medium {
    font-size: var(--sl-button-font-size-medium);
    height: calc(var(--sl-input-height-medium) * 0.8);
    line-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);
    border-radius: var(--sl-input-border-radius-medium);
    padding: 0 var(--sl-spacing-small);
  }

  .tag--large {
    font-size: var(--sl-button-font-size-large);
    height: calc(var(--sl-input-height-large) * 0.8);
    line-height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2);
    border-radius: var(--sl-input-border-radius-large);
    padding: 0 var(--sl-spacing-medium);
  }

  .tag__remove {
    margin-inline-start: var(--sl-spacing-x-small);
  }

  /*
   * Pill modifier
   */

  .tag--pill {
    border-radius: var(--sl-border-radius-pill);
  }
`,Rs=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.variant="neutral",this.size="medium",this.pill=!1,this.removable=!1}handleRemoveClick(){this.emit("sl-remove")}render(){return vo`
      <span
        part="base"
        class=${vi({tag:!0,"tag--primary":"primary"===this.variant,"tag--success":"success"===this.variant,"tag--neutral":"neutral"===this.variant,"tag--warning":"warning"===this.variant,"tag--danger":"danger"===this.variant,"tag--text":"text"===this.variant,"tag--small":"small"===this.size,"tag--medium":"medium"===this.size,"tag--large":"large"===this.size,"tag--pill":this.pill,"tag--removable":this.removable})}
      >
        <slot part="content" class="tag__content"></slot>

        ${this.removable?vo`
              <sl-icon-button
                part="remove-button"
                exportparts="base:remove-button__base"
                name="x-lg"
                library="system"
                label=${this.localize.term("remove")}
                class="tag__remove"
                @click=${this.handleRemoveClick}
                tabindex="-1"
              ></sl-icon-button>
            `:""}
      </span>
    `}};Rs.styles=[Do,Ss],Rs.dependencies={"sl-icon-button":cs},Vo([Xo({reflect:!0})],Rs.prototype,"variant",2),Vo([Xo({reflect:!0})],Rs.prototype,"size",2),Vo([Xo({type:Boolean,reflect:!0})],Rs.prototype,"pill",2),Vo([Xo({type:Boolean})],Rs.prototype,"removable",2);Rs.define("sl-tag");Xi({tagName:"sl-tag",elementClass:Rs,react:p,events:{onSlRemove:"sl-remove"},displayName:"SlTag"});var Ts=At`
  :host {
    --size: 128px;
    --track-width: 4px;
    --track-color: var(--sl-color-neutral-200);
    --indicator-width: var(--track-width);
    --indicator-color: var(--sl-color-primary-600);
    --indicator-transition-duration: 0.35s;

    display: inline-flex;
  }

  .progress-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .progress-ring__image {
    width: var(--size);
    height: var(--size);
    rotate: -90deg;
    transform-origin: 50% 50%;
  }

  .progress-ring__track,
  .progress-ring__indicator {
    --radius: calc(var(--size) / 2 - max(var(--track-width), var(--indicator-width)) * 0.5);
    --circumference: calc(var(--radius) * 2 * 3.141592654);

    fill: none;
    r: var(--radius);
    cx: calc(var(--size) / 2);
    cy: calc(var(--size) / 2);
  }

  .progress-ring__track {
    stroke: var(--track-color);
    stroke-width: var(--track-width);
  }

  .progress-ring__indicator {
    stroke: var(--indicator-color);
    stroke-width: var(--indicator-width);
    stroke-linecap: round;
    transition-property: stroke-dashoffset;
    transition-duration: var(--indicator-transition-duration);
    stroke-dasharray: var(--circumference) var(--circumference);
    stroke-dashoffset: calc(var(--circumference) - var(--percentage) * var(--circumference));
  }

  .progress-ring__label {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
  }
`,Es=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.value=0,this.label=""}updated(e){if(super.updated(e),e.has("value")){const e=parseFloat(getComputedStyle(this.indicator).getPropertyValue("r")),t=2*Math.PI*e,o=t-this.value/100*t;this.indicatorOffset=`${o}px`}}render(){return vo`
      <div
        part="base"
        class="progress-ring"
        role="progressbar"
        aria-label=${this.label.length>0?this.label:this.localize.term("progress")}
        aria-describedby="label"
        aria-valuemin="0"
        aria-valuemax="100"
        aria-valuenow="${this.value}"
        style="--percentage: ${this.value/100}"
      >
        <svg class="progress-ring__image">
          <circle class="progress-ring__track"></circle>
          <circle class="progress-ring__indicator" style="stroke-dashoffset: ${this.indicatorOffset}"></circle>
        </svg>

        <slot id="label" part="label" class="progress-ring__label"></slot>
      </div>
    `}};Es.styles=[Do,Ts],Vo([tr(".progress-ring__indicator")],Es.prototype,"indicator",2),Vo([Qo()],Es.prototype,"indicatorOffset",2),Vo([Xo({type:Number,reflect:!0})],Es.prototype,"value",2),Vo([Xo()],Es.prototype,"label",2);Es.define("sl-progress-ring");Xi({tagName:"sl-progress-ring",elementClass:Es,react:p,events:{},displayName:"SlProgressRing"});var Os=At`
  :host {
    display: inline-block;
    position: relative;
    width: auto;
    cursor: pointer;
  }

  .button {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    border-style: solid;
    border-width: var(--sl-input-border-width);
    font-family: var(--sl-input-font-family);
    font-weight: var(--sl-font-weight-semibold);
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    vertical-align: middle;
    padding: 0;
    transition:
      var(--sl-transition-x-fast) background-color,
      var(--sl-transition-x-fast) color,
      var(--sl-transition-x-fast) border,
      var(--sl-transition-x-fast) box-shadow;
    cursor: inherit;
  }

  .button::-moz-focus-inner {
    border: 0;
  }

  .button:focus {
    outline: none;
  }

  .button:focus-visible {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .button--disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* When disabled, prevent mouse events from bubbling up from children */
  .button--disabled * {
    pointer-events: none;
  }

  .button__prefix,
  .button__suffix {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    pointer-events: none;
  }

  .button__label {
    display: inline-block;
  }

  .button__label::slotted(sl-icon) {
    vertical-align: -2px;
  }

  /*
   * Standard buttons
   */

  /* Default */
  .button--standard.button--default {
    background-color: var(--sl-color-neutral-0);
    border-color: var(--sl-input-border-color);
    color: var(--sl-color-neutral-700);
  }

  .button--standard.button--default:hover:not(.button--disabled) {
    background-color: var(--sl-color-primary-50);
    border-color: var(--sl-color-primary-300);
    color: var(--sl-color-primary-700);
  }

  .button--standard.button--default:active:not(.button--disabled) {
    background-color: var(--sl-color-primary-100);
    border-color: var(--sl-color-primary-400);
    color: var(--sl-color-primary-700);
  }

  /* Primary */
  .button--standard.button--primary {
    background-color: var(--sl-color-primary-600);
    border-color: var(--sl-color-primary-600);
    color: var(--sl-color-neutral-0);
  }

  .button--standard.button--primary:hover:not(.button--disabled) {
    background-color: var(--sl-color-primary-500);
    border-color: var(--sl-color-primary-500);
    color: var(--sl-color-neutral-0);
  }

  .button--standard.button--primary:active:not(.button--disabled) {
    background-color: var(--sl-color-primary-600);
    border-color: var(--sl-color-primary-600);
    color: var(--sl-color-neutral-0);
  }

  /* Success */
  .button--standard.button--success {
    background-color: var(--sl-color-success-600);
    border-color: var(--sl-color-success-600);
    color: var(--sl-color-neutral-0);
  }

  .button--standard.button--success:hover:not(.button--disabled) {
    background-color: var(--sl-color-success-500);
    border-color: var(--sl-color-success-500);
    color: var(--sl-color-neutral-0);
  }

  .button--standard.button--success:active:not(.button--disabled) {
    background-color: var(--sl-color-success-600);
    border-color: var(--sl-color-success-600);
    color: var(--sl-color-neutral-0);
  }

  /* Neutral */
  .button--standard.button--neutral {
    background-color: var(--sl-color-neutral-600);
    border-color: var(--sl-color-neutral-600);
    color: var(--sl-color-neutral-0);
  }

  .button--standard.button--neutral:hover:not(.button--disabled) {
    background-color: var(--sl-color-neutral-500);
    border-color: var(--sl-color-neutral-500);
    color: var(--sl-color-neutral-0);
  }

  .button--standard.button--neutral:active:not(.button--disabled) {
    background-color: var(--sl-color-neutral-600);
    border-color: var(--sl-color-neutral-600);
    color: var(--sl-color-neutral-0);
  }

  /* Warning */
  .button--standard.button--warning {
    background-color: var(--sl-color-warning-600);
    border-color: var(--sl-color-warning-600);
    color: var(--sl-color-neutral-0);
  }
  .button--standard.button--warning:hover:not(.button--disabled) {
    background-color: var(--sl-color-warning-500);
    border-color: var(--sl-color-warning-500);
    color: var(--sl-color-neutral-0);
  }

  .button--standard.button--warning:active:not(.button--disabled) {
    background-color: var(--sl-color-warning-600);
    border-color: var(--sl-color-warning-600);
    color: var(--sl-color-neutral-0);
  }

  /* Danger */
  .button--standard.button--danger {
    background-color: var(--sl-color-danger-600);
    border-color: var(--sl-color-danger-600);
    color: var(--sl-color-neutral-0);
  }

  .button--standard.button--danger:hover:not(.button--disabled) {
    background-color: var(--sl-color-danger-500);
    border-color: var(--sl-color-danger-500);
    color: var(--sl-color-neutral-0);
  }

  .button--standard.button--danger:active:not(.button--disabled) {
    background-color: var(--sl-color-danger-600);
    border-color: var(--sl-color-danger-600);
    color: var(--sl-color-neutral-0);
  }

  /*
   * Outline buttons
   */

  .button--outline {
    background: none;
    border: solid 1px;
  }

  /* Default */
  .button--outline.button--default {
    border-color: var(--sl-input-border-color);
    color: var(--sl-color-neutral-700);
  }

  .button--outline.button--default:hover:not(.button--disabled),
  .button--outline.button--default.button--checked:not(.button--disabled) {
    border-color: var(--sl-color-primary-600);
    background-color: var(--sl-color-primary-600);
    color: var(--sl-color-neutral-0);
  }

  .button--outline.button--default:active:not(.button--disabled) {
    border-color: var(--sl-color-primary-700);
    background-color: var(--sl-color-primary-700);
    color: var(--sl-color-neutral-0);
  }

  /* Primary */
  .button--outline.button--primary {
    border-color: var(--sl-color-primary-600);
    color: var(--sl-color-primary-600);
  }

  .button--outline.button--primary:hover:not(.button--disabled),
  .button--outline.button--primary.button--checked:not(.button--disabled) {
    background-color: var(--sl-color-primary-600);
    color: var(--sl-color-neutral-0);
  }

  .button--outline.button--primary:active:not(.button--disabled) {
    border-color: var(--sl-color-primary-700);
    background-color: var(--sl-color-primary-700);
    color: var(--sl-color-neutral-0);
  }

  /* Success */
  .button--outline.button--success {
    border-color: var(--sl-color-success-600);
    color: var(--sl-color-success-600);
  }

  .button--outline.button--success:hover:not(.button--disabled),
  .button--outline.button--success.button--checked:not(.button--disabled) {
    background-color: var(--sl-color-success-600);
    color: var(--sl-color-neutral-0);
  }

  .button--outline.button--success:active:not(.button--disabled) {
    border-color: var(--sl-color-success-700);
    background-color: var(--sl-color-success-700);
    color: var(--sl-color-neutral-0);
  }

  /* Neutral */
  .button--outline.button--neutral {
    border-color: var(--sl-color-neutral-600);
    color: var(--sl-color-neutral-600);
  }

  .button--outline.button--neutral:hover:not(.button--disabled),
  .button--outline.button--neutral.button--checked:not(.button--disabled) {
    background-color: var(--sl-color-neutral-600);
    color: var(--sl-color-neutral-0);
  }

  .button--outline.button--neutral:active:not(.button--disabled) {
    border-color: var(--sl-color-neutral-700);
    background-color: var(--sl-color-neutral-700);
    color: var(--sl-color-neutral-0);
  }

  /* Warning */
  .button--outline.button--warning {
    border-color: var(--sl-color-warning-600);
    color: var(--sl-color-warning-600);
  }

  .button--outline.button--warning:hover:not(.button--disabled),
  .button--outline.button--warning.button--checked:not(.button--disabled) {
    background-color: var(--sl-color-warning-600);
    color: var(--sl-color-neutral-0);
  }

  .button--outline.button--warning:active:not(.button--disabled) {
    border-color: var(--sl-color-warning-700);
    background-color: var(--sl-color-warning-700);
    color: var(--sl-color-neutral-0);
  }

  /* Danger */
  .button--outline.button--danger {
    border-color: var(--sl-color-danger-600);
    color: var(--sl-color-danger-600);
  }

  .button--outline.button--danger:hover:not(.button--disabled),
  .button--outline.button--danger.button--checked:not(.button--disabled) {
    background-color: var(--sl-color-danger-600);
    color: var(--sl-color-neutral-0);
  }

  .button--outline.button--danger:active:not(.button--disabled) {
    border-color: var(--sl-color-danger-700);
    background-color: var(--sl-color-danger-700);
    color: var(--sl-color-neutral-0);
  }

  @media (forced-colors: active) {
    .button.button--outline.button--checked:not(.button--disabled) {
      outline: solid 2px transparent;
    }
  }

  /*
   * Text buttons
   */

  .button--text {
    background-color: transparent;
    border-color: transparent;
    color: var(--sl-color-primary-600);
  }

  .button--text:hover:not(.button--disabled) {
    background-color: transparent;
    border-color: transparent;
    color: var(--sl-color-primary-500);
  }

  .button--text:focus-visible:not(.button--disabled) {
    background-color: transparent;
    border-color: transparent;
    color: var(--sl-color-primary-500);
  }

  .button--text:active:not(.button--disabled) {
    background-color: transparent;
    border-color: transparent;
    color: var(--sl-color-primary-700);
  }

  /*
   * Size modifiers
   */

  .button--small {
    height: auto;
    min-height: var(--sl-input-height-small);
    font-size: var(--sl-button-font-size-small);
    line-height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2);
    border-radius: var(--sl-input-border-radius-small);
  }

  .button--medium {
    height: auto;
    min-height: var(--sl-input-height-medium);
    font-size: var(--sl-button-font-size-medium);
    line-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);
    border-radius: var(--sl-input-border-radius-medium);
  }

  .button--large {
    height: auto;
    min-height: var(--sl-input-height-large);
    font-size: var(--sl-button-font-size-large);
    line-height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2);
    border-radius: var(--sl-input-border-radius-large);
  }

  /*
   * Pill modifier
   */

  .button--pill.button--small {
    border-radius: var(--sl-input-height-small);
  }

  .button--pill.button--medium {
    border-radius: var(--sl-input-height-medium);
  }

  .button--pill.button--large {
    border-radius: var(--sl-input-height-large);
  }

  /*
   * Circle modifier
   */

  .button--circle {
    padding-left: 0;
    padding-right: 0;
  }

  .button--circle.button--small {
    width: var(--sl-input-height-small);
    border-radius: 50%;
  }

  .button--circle.button--medium {
    width: var(--sl-input-height-medium);
    border-radius: 50%;
  }

  .button--circle.button--large {
    width: var(--sl-input-height-large);
    border-radius: 50%;
  }

  .button--circle .button__prefix,
  .button--circle .button__suffix,
  .button--circle .button__caret {
    display: none;
  }

  /*
   * Caret modifier
   */

  .button--caret .button__suffix {
    display: none;
  }

  .button--caret .button__caret {
    height: auto;
  }

  /*
   * Loading modifier
   */

  .button--loading {
    position: relative;
    cursor: wait;
  }

  .button--loading .button__prefix,
  .button--loading .button__label,
  .button--loading .button__suffix,
  .button--loading .button__caret {
    visibility: hidden;
  }

  .button--loading sl-spinner {
    --indicator-color: currentColor;
    position: absolute;
    font-size: 1em;
    height: 1em;
    width: 1em;
    top: calc(50% - 0.5em);
    left: calc(50% - 0.5em);
  }

  /*
   * Badges
   */

  .button ::slotted(sl-badge) {
    position: absolute;
    top: 0;
    right: 0;
    translate: 50% -50%;
    pointer-events: none;
  }

  .button--rtl ::slotted(sl-badge) {
    right: auto;
    left: 0;
    translate: -50% -50%;
  }

  /*
   * Button spacing
   */

  .button--has-label.button--small .button__label {
    padding: 0 var(--sl-spacing-small);
  }

  .button--has-label.button--medium .button__label {
    padding: 0 var(--sl-spacing-medium);
  }

  .button--has-label.button--large .button__label {
    padding: 0 var(--sl-spacing-large);
  }

  .button--has-prefix.button--small {
    padding-inline-start: var(--sl-spacing-x-small);
  }

  .button--has-prefix.button--small .button__label {
    padding-inline-start: var(--sl-spacing-x-small);
  }

  .button--has-prefix.button--medium {
    padding-inline-start: var(--sl-spacing-small);
  }

  .button--has-prefix.button--medium .button__label {
    padding-inline-start: var(--sl-spacing-small);
  }

  .button--has-prefix.button--large {
    padding-inline-start: var(--sl-spacing-small);
  }

  .button--has-prefix.button--large .button__label {
    padding-inline-start: var(--sl-spacing-small);
  }

  .button--has-suffix.button--small,
  .button--caret.button--small {
    padding-inline-end: var(--sl-spacing-x-small);
  }

  .button--has-suffix.button--small .button__label,
  .button--caret.button--small .button__label {
    padding-inline-end: var(--sl-spacing-x-small);
  }

  .button--has-suffix.button--medium,
  .button--caret.button--medium {
    padding-inline-end: var(--sl-spacing-small);
  }

  .button--has-suffix.button--medium .button__label,
  .button--caret.button--medium .button__label {
    padding-inline-end: var(--sl-spacing-small);
  }

  .button--has-suffix.button--large,
  .button--caret.button--large {
    padding-inline-end: var(--sl-spacing-small);
  }

  .button--has-suffix.button--large .button__label,
  .button--caret.button--large .button__label {
    padding-inline-end: var(--sl-spacing-small);
  }

  /*
   * Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.).
   * This means buttons aren't always direct descendants of the button group, thus we can't target them with the
   * ::slotted selector. To work around this, the button group component does some magic to add these special classes to
   * buttons and we style them here instead.
   */

  :host([data-sl-button-group__button--first]:not([data-sl-button-group__button--last])) .button {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
  }

  :host([data-sl-button-group__button--inner]) .button {
    border-radius: 0;
  }

  :host([data-sl-button-group__button--last]:not([data-sl-button-group__button--first])) .button {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
  }

  /* All except the first */
  :host([data-sl-button-group__button]:not([data-sl-button-group__button--first])) {
    margin-inline-start: calc(-1 * var(--sl-input-border-width));
  }

  /* Add a visual separator between solid buttons */
  :host(
      [data-sl-button-group__button]:not(
          [data-sl-button-group__button--first],
          [data-sl-button-group__button--radio],
          [variant='default']
        ):not(:hover)
    )
    .button:after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    bottom: 0;
    border-left: solid 1px rgb(128 128 128 / 33%);
    mix-blend-mode: multiply;
  }

  /* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */
  :host([data-sl-button-group__button--hover]) {
    z-index: 1;
  }

  /* Focus and checked are always on top */
  :host([data-sl-button-group__button--focus]),
  :host([data-sl-button-group__button][checked]) {
    z-index: 2;
  }
`,Is=At`
  ${Os}

  .button__prefix,
  .button__suffix,
  .button__label {
    display: inline-flex;
    position: relative;
    align-items: center;
  }

  /* We use a hidden input so constraint validation errors work, since they don't appear to show when used with buttons.
    We can't actually hide it, though, otherwise the messages will be suppressed by the browser. */
  .hidden-input {
    all: unset;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    outline: dotted 1px red;
    opacity: 0;
    z-index: -1;
  }
`,Ms=class extends rr{constructor(){super(...arguments),this.hasSlotController=new hn(this,"[default]","prefix","suffix"),this.hasFocus=!1,this.checked=!1,this.disabled=!1,this.size="medium",this.pill=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleClick(e){if(this.disabled)return e.preventDefault(),void e.stopPropagation();this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(e){this.input.focus(e)}blur(){this.input.blur()}render(){return ls`
      <div part="base" role="presentation">
        <button
          part="${"button"+(this.checked?" button--checked":"")}"
          role="radio"
          aria-checked="${this.checked}"
          class=${vi({button:!0,"button--default":!0,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--checked":this.checked,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--outline":!0,"button--pill":this.pill,"button--has-label":this.hasSlotController.test("[default]"),"button--has-prefix":this.hasSlotController.test("prefix"),"button--has-suffix":this.hasSlotController.test("suffix")})}
          aria-disabled=${this.disabled}
          type="button"
          value=${un(this.value)}
          @blur=${this.handleBlur}
          @focus=${this.handleFocus}
          @click=${this.handleClick}
        >
          <slot name="prefix" part="prefix" class="button__prefix"></slot>
          <slot part="label" class="button__label"></slot>
          <slot name="suffix" part="suffix" class="button__suffix"></slot>
        </button>
      </div>
    `}};Ms.styles=[Do,Is],Vo([tr(".button")],Ms.prototype,"input",2),Vo([tr(".hidden-input")],Ms.prototype,"hiddenInput",2),Vo([Qo()],Ms.prototype,"hasFocus",2),Vo([Xo({type:Boolean,reflect:!0})],Ms.prototype,"checked",2),Vo([Xo()],Ms.prototype,"value",2),Vo([Xo({type:Boolean,reflect:!0})],Ms.prototype,"disabled",2),Vo([Xo({reflect:!0})],Ms.prototype,"size",2),Vo([Xo({type:Boolean,reflect:!0})],Ms.prototype,"pill",2),Vo([ji("disabled",{waitUntilFirstUpdate:!0})],Ms.prototype,"handleDisabledChange",1);Ms.define("sl-radio-button");Xi({tagName:"sl-radio-button",elementClass:Ms,react:p,events:{onSlBlur:"sl-blur",onSlFocus:"sl-focus"},displayName:"SlRadioButton"});var zs=At`
  :host {
    display: block;
  }

  .form-control {
    position: relative;
    border: none;
    padding: 0;
    margin: 0;
  }

  .form-control__label {
    padding: 0;
  }

  .radio-group--required .radio-group__label::after {
    content: var(--sl-input-required-content);
    margin-inline-start: var(--sl-input-required-content-offset);
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
`,Ds=At`
  :host {
    display: inline-block;
  }

  .button-group {
    display: flex;
    flex-wrap: nowrap;
  }
`,As=class extends rr{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(e){const t=$s(e.target);null==t||t.toggleAttribute("data-sl-button-group__button--focus",!0)}handleBlur(e){const t=$s(e.target);null==t||t.toggleAttribute("data-sl-button-group__button--focus",!1)}handleMouseOver(e){const t=$s(e.target);null==t||t.toggleAttribute("data-sl-button-group__button--hover",!0)}handleMouseOut(e){const t=$s(e.target);null==t||t.toggleAttribute("data-sl-button-group__button--hover",!1)}handleSlotChange(){const e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach((t=>{const o=e.indexOf(t),r=$s(t);r&&(r.toggleAttribute("data-sl-button-group__button",!0),r.toggleAttribute("data-sl-button-group__button--first",0===o),r.toggleAttribute("data-sl-button-group__button--inner",o>0&&o<e.length-1),r.toggleAttribute("data-sl-button-group__button--last",o===e.length-1),r.toggleAttribute("data-sl-button-group__button--radio","sl-radio-button"===r.tagName.toLowerCase()))}))}render(){return vo`
      <div
        part="base"
        class="button-group"
        role="${this.disableRole?"presentation":"group"}"
        aria-label=${this.label}
        @focusout=${this.handleBlur}
        @focusin=${this.handleFocus}
        @mouseover=${this.handleMouseOver}
        @mouseout=${this.handleMouseOut}
      >
        <slot @slotchange=${this.handleSlotChange}></slot>
      </div>
    `}};function $s(e){var t;const o="sl-button, sl-radio-button";return null!=(t=e.closest(o))?t:e.querySelector(o)}As.styles=[Do,Ds],Vo([tr("slot")],As.prototype,"defaultSlot",2),Vo([Qo()],As.prototype,"disableRole",2),Vo([Xo()],As.prototype,"label",2);var Ps=class extends rr{constructor(){super(...arguments),this.formControlController=new an(this),this.hasSlotController=new hn(this,"help-text","label"),this.customValidityMessage="",this.hasButtonGroup=!1,this.errorMessage="",this.defaultValue="",this.label="",this.helpText="",this.name="option",this.value="",this.size="medium",this.form="",this.required=!1}get validity(){const e=this.required&&!this.value;return""!==this.customValidityMessage?dn:e?cn:ln}get validationMessage(){const e=this.required&&!this.value;return""!==this.customValidityMessage?this.customValidityMessage:e?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sl-radio, sl-radio-button")]}handleRadioClick(e){const t=e.target.closest("sl-radio, sl-radio-button"),o=this.getAllRadios(),r=this.value;t&&!t.disabled&&(this.value=t.value,o.forEach((e=>e.checked=e===t)),this.value!==r&&(this.emit("sl-change"),this.emit("sl-input")))}handleKeyDown(e){var t;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(e.key))return;const o=this.getAllRadios().filter((e=>!e.disabled)),r=null!=(t=o.find((e=>e.checked)))?t:o[0],n=" "===e.key?0:["ArrowUp","ArrowLeft"].includes(e.key)?-1:1,c=this.value;let d=o.indexOf(r)+n;d<0&&(d=o.length-1),d>o.length-1&&(d=0),this.getAllRadios().forEach((e=>{e.checked=!1,this.hasButtonGroup||e.setAttribute("tabindex","-1")})),this.value=o[d].value,o[d].checked=!0,this.hasButtonGroup?o[d].shadowRoot.querySelector("button").focus():(o[d].setAttribute("tabindex","0"),o[d].focus()),this.value!==c&&(this.emit("sl-change"),this.emit("sl-input")),e.preventDefault()}handleLabelClick(){const e=this.getAllRadios(),t=e.find((e=>e.checked))||e[0];t&&t.focus()}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}async syncRadioElements(){var e,t;const o=this.getAllRadios();if(await Promise.all(o.map((async e=>{await e.updateComplete,e.checked=e.value===this.value,e.size=this.size}))),this.hasButtonGroup=o.some((e=>"sl-radio-button"===e.tagName.toLowerCase())),o.length>0&&!o.some((e=>e.checked)))if(this.hasButtonGroup){const t=null==(e=o[0].shadowRoot)?void 0:e.querySelector("button");t&&t.setAttribute("tabindex","0")}else o[0].setAttribute("tabindex","0");if(this.hasButtonGroup){const e=null==(t=this.shadowRoot)?void 0:t.querySelector("sl-button-group");e&&(e.disableRole=!0)}}syncRadios(){customElements.get("sl-radio")&&customElements.get("sl-radio-button")?this.syncRadioElements():(customElements.get("sl-radio")?this.syncRadioElements():customElements.whenDefined("sl-radio").then((()=>this.syncRadios())),customElements.get("sl-radio-button")?this.syncRadioElements():customElements.whenDefined("sl-radio-button").then((()=>this.syncRadios())))}updateCheckedRadio(){this.getAllRadios().forEach((e=>e.checked=e.value===this.value)),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){const e=this.required&&!this.value,t=""!==this.customValidityMessage;return!e&&!t||(this.formControlController.emitInvalidEvent(),!1)}getForm(){return this.formControlController.getForm()}reportValidity(){const e=this.validity.valid;return this.errorMessage=this.customValidityMessage||e?"":this.validationInput.validationMessage,this.formControlController.setValidity(e),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),e||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout((()=>this.validationInput.hidden=!0),1e4)),e}setCustomValidity(e=""){this.customValidityMessage=e,this.errorMessage=e,this.validationInput.setCustomValidity(e),this.formControlController.updateValidity()}render(){const e=this.hasSlotController.test("label"),t=this.hasSlotController.test("help-text"),o=!!this.label||!!e,r=!!this.helpText||!!t,n=vo`
      <slot @slotchange=${this.syncRadios} @click=${this.handleRadioClick} @keydown=${this.handleKeyDown}></slot>
    `;return vo`
      <fieldset
        part="form-control"
        class=${vi({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--radio-group":!0,"form-control--has-label":o,"form-control--has-help-text":r})}
        role="radiogroup"
        aria-labelledby="label"
        aria-describedby="help-text"
        aria-errormessage="error-message"
      >
        <label
          part="form-control-label"
          id="label"
          class="form-control__label"
          aria-hidden=${o?"false":"true"}
          @click=${this.handleLabelClick}
        >
          <slot name="label">${this.label}</slot>
        </label>

        <div part="form-control-input" class="form-control-input">
          <div class="visually-hidden">
            <div id="error-message" aria-live="assertive">${this.errorMessage}</div>
            <label class="radio-group__validation">
              <input
                type="text"
                class="radio-group__validation-input"
                ?required=${this.required}
                tabindex="-1"
                hidden
                @invalid=${this.handleInvalid}
              />
            </label>
          </div>

          ${this.hasButtonGroup?vo`
                <sl-button-group part="button-group" exportparts="base:button-group__base" role="presentation">
                  ${n}
                </sl-button-group>
              `:n}
        </div>

        <div
          part="form-control-help-text"
          id="help-text"
          class="form-control__help-text"
          aria-hidden=${r?"false":"true"}
        >
          <slot name="help-text">${this.helpText}</slot>
        </div>
      </fieldset>
    `}};Ps.styles=[Do,en,zs],Ps.dependencies={"sl-button-group":As},Vo([tr("slot:not([name])")],Ps.prototype,"defaultSlot",2),Vo([tr(".radio-group__validation-input")],Ps.prototype,"validationInput",2),Vo([Qo()],Ps.prototype,"hasButtonGroup",2),Vo([Qo()],Ps.prototype,"errorMessage",2),Vo([Qo()],Ps.prototype,"defaultValue",2),Vo([Xo()],Ps.prototype,"label",2),Vo([Xo({attribute:"help-text"})],Ps.prototype,"helpText",2),Vo([Xo()],Ps.prototype,"name",2),Vo([Xo({reflect:!0})],Ps.prototype,"value",2),Vo([Xo({reflect:!0})],Ps.prototype,"size",2),Vo([Xo({reflect:!0})],Ps.prototype,"form",2),Vo([Xo({type:Boolean,reflect:!0})],Ps.prototype,"required",2),Vo([ji("size",{waitUntilFirstUpdate:!0})],Ps.prototype,"handleSizeChange",1),Vo([ji("value")],Ps.prototype,"handleValueChange",1);Ps.define("sl-radio-group");Xi({tagName:"sl-radio-group",elementClass:Ps,react:p,events:{onSlChange:"sl-change",onSlInput:"sl-input",onSlInvalid:"sl-invalid"},displayName:"SlRadioGroup"});var Ns=At`
  :host {
    --thumb-size: 20px;
    --tooltip-offset: 10px;
    --track-color-active: var(--sl-color-neutral-200);
    --track-color-inactive: var(--sl-color-neutral-200);
    --track-active-offset: 0%;
    --track-height: 6px;

    display: block;
  }

  .range {
    position: relative;
  }

  .range__control {
    --percent: 0%;
    -webkit-appearance: none;
    border-radius: 3px;
    width: 100%;
    height: var(--track-height);
    background: transparent;
    line-height: var(--sl-input-height-medium);
    vertical-align: middle;
    margin: 0;

    background-image: linear-gradient(
      to right,
      var(--track-color-inactive) 0%,
      var(--track-color-inactive) min(var(--percent), var(--track-active-offset)),
      var(--track-color-active) min(var(--percent), var(--track-active-offset)),
      var(--track-color-active) max(var(--percent), var(--track-active-offset)),
      var(--track-color-inactive) max(var(--percent), var(--track-active-offset)),
      var(--track-color-inactive) 100%
    );
  }

  .range--rtl .range__control {
    background-image: linear-gradient(
      to left,
      var(--track-color-inactive) 0%,
      var(--track-color-inactive) min(var(--percent), var(--track-active-offset)),
      var(--track-color-active) min(var(--percent), var(--track-active-offset)),
      var(--track-color-active) max(var(--percent), var(--track-active-offset)),
      var(--track-color-inactive) max(var(--percent), var(--track-active-offset)),
      var(--track-color-inactive) 100%
    );
  }

  /* Webkit */
  .range__control::-webkit-slider-runnable-track {
    width: 100%;
    height: var(--track-height);
    border-radius: 3px;
    border: none;
  }

  .range__control::-webkit-slider-thumb {
    border: none;
    width: var(--thumb-size);
    height: var(--thumb-size);
    border-radius: 50%;
    background-color: var(--sl-color-primary-600);
    border: solid var(--sl-input-border-width) var(--sl-color-primary-600);
    -webkit-appearance: none;
    margin-top: calc(var(--thumb-size) / -2 + var(--track-height) / 2);
    cursor: pointer;
  }

  .range__control:enabled::-webkit-slider-thumb:hover {
    background-color: var(--sl-color-primary-500);
    border-color: var(--sl-color-primary-500);
  }

  .range__control:enabled:focus-visible::-webkit-slider-thumb {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .range__control:enabled::-webkit-slider-thumb:active {
    background-color: var(--sl-color-primary-500);
    border-color: var(--sl-color-primary-500);
    cursor: grabbing;
  }

  /* Firefox */
  .range__control::-moz-focus-outer {
    border: 0;
  }

  .range__control::-moz-range-progress {
    background-color: var(--track-color-active);
    border-radius: 3px;
    height: var(--track-height);
  }

  .range__control::-moz-range-track {
    width: 100%;
    height: var(--track-height);
    background-color: var(--track-color-inactive);
    border-radius: 3px;
    border: none;
  }

  .range__control::-moz-range-thumb {
    border: none;
    height: var(--thumb-size);
    width: var(--thumb-size);
    border-radius: 50%;
    background-color: var(--sl-color-primary-600);
    border-color: var(--sl-color-primary-600);
    transition:
      var(--sl-transition-fast) border-color,
      var(--sl-transition-fast) background-color,
      var(--sl-transition-fast) color,
      var(--sl-transition-fast) box-shadow;
    cursor: pointer;
  }

  .range__control:enabled::-moz-range-thumb:hover {
    background-color: var(--sl-color-primary-500);
    border-color: var(--sl-color-primary-500);
  }

  .range__control:enabled:focus-visible::-moz-range-thumb {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .range__control:enabled::-moz-range-thumb:active {
    background-color: var(--sl-color-primary-500);
    border-color: var(--sl-color-primary-500);
    cursor: grabbing;
  }

  /* States */
  .range__control:focus-visible {
    outline: none;
  }

  .range__control:disabled {
    opacity: 0.5;
  }

  .range__control:disabled::-webkit-slider-thumb {
    cursor: not-allowed;
  }

  .range__control:disabled::-moz-range-thumb {
    cursor: not-allowed;
  }

  /* Tooltip output */
  .range__tooltip {
    position: absolute;
    z-index: var(--sl-z-index-tooltip);
    left: 0;
    border-radius: var(--sl-tooltip-border-radius);
    background-color: var(--sl-tooltip-background-color);
    font-family: var(--sl-tooltip-font-family);
    font-size: var(--sl-tooltip-font-size);
    font-weight: var(--sl-tooltip-font-weight);
    line-height: var(--sl-tooltip-line-height);
    color: var(--sl-tooltip-color);
    opacity: 0;
    padding: var(--sl-tooltip-padding);
    transition: var(--sl-transition-fast) opacity;
    pointer-events: none;
  }

  .range__tooltip:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 50%;
    translate: calc(-1 * var(--sl-tooltip-arrow-size));
  }

  .range--tooltip-visible .range__tooltip {
    opacity: 1;
  }

  /* Tooltip on top */
  .range--tooltip-top .range__tooltip {
    top: calc(-1 * var(--thumb-size) - var(--tooltip-offset));
  }

  .range--tooltip-top .range__tooltip:after {
    border-top: var(--sl-tooltip-arrow-size) solid var(--sl-tooltip-background-color);
    border-left: var(--sl-tooltip-arrow-size) solid transparent;
    border-right: var(--sl-tooltip-arrow-size) solid transparent;
    top: 100%;
  }

  /* Tooltip on bottom */
  .range--tooltip-bottom .range__tooltip {
    bottom: calc(-1 * var(--thumb-size) - var(--tooltip-offset));
  }

  .range--tooltip-bottom .range__tooltip:after {
    border-bottom: var(--sl-tooltip-arrow-size) solid var(--sl-tooltip-background-color);
    border-left: var(--sl-tooltip-arrow-size) solid transparent;
    border-right: var(--sl-tooltip-arrow-size) solid transparent;
    bottom: 100%;
  }

  @media (forced-colors: active) {
    .range__control,
    .range__tooltip {
      border: solid 1px transparent;
    }

    .range__control::-webkit-slider-thumb {
      border: solid 1px transparent;
    }

    .range__control::-moz-range-thumb {
      border: solid 1px transparent;
    }

    .range__tooltip:after {
      display: none;
    }
  }
`,Ls=class extends rr{constructor(){super(...arguments),this.formControlController=new an(this),this.hasSlotController=new hn(this,"help-text","label"),this.localize=new Vi(this),this.hasFocus=!1,this.hasTooltip=!1,this.title="",this.name="",this.value=0,this.label="",this.helpText="",this.disabled=!1,this.min=0,this.max=100,this.step=1,this.tooltip="top",this.tooltipFormatter=e=>e.toString(),this.form="",this.defaultValue=0}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.syncRange())),this.value<this.min&&(this.value=this.min),this.value>this.max&&(this.value=this.max),this.updateComplete.then((()=>{this.syncRange(),this.resizeObserver.observe(this.input)}))}disconnectedCallback(){var e;super.disconnectedCallback(),null==(e=this.resizeObserver)||e.unobserve(this.input)}handleChange(){this.emit("sl-change")}handleInput(){this.value=parseFloat(this.input.value),this.emit("sl-input"),this.syncRange()}handleBlur(){this.hasFocus=!1,this.hasTooltip=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.hasTooltip=!0,this.emit("sl-focus")}handleThumbDragStart(){this.hasTooltip=!0}handleThumbDragEnd(){this.hasTooltip=!1}syncProgress(e){this.input.style.setProperty("--percent",100*e+"%")}syncTooltip(e){if(null!==this.output){const t=this.input.offsetWidth,o=this.output.offsetWidth,r=getComputedStyle(this.input).getPropertyValue("--thumb-size"),n=t*e;if(this.matches(":dir(rtl)")){const c=`${t-n}px + ${e} * ${r}`;this.output.style.translate=`calc((${c} - ${o/2}px - ${r} / 2))`}else{const t=`${n}px - ${e} * ${r}`;this.output.style.translate=`calc(${t} - ${o/2}px + ${r} / 2)`}}}handleValueChange(){this.formControlController.updateValidity(),this.input.value=this.value.toString(),this.value=parseFloat(this.input.value),this.syncRange()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}syncRange(){const e=Math.max(0,(this.value-this.min)/(this.max-this.min));this.syncProgress(e),"none"!==this.tooltip&&this.updateComplete.then((()=>this.syncTooltip(e)))}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}focus(e){this.input.focus(e)}blur(){this.input.blur()}stepUp(){this.input.stepUp(),this.value!==Number(this.input.value)&&(this.value=Number(this.input.value))}stepDown(){this.input.stepDown(),this.value!==Number(this.input.value)&&(this.value=Number(this.input.value))}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){const e=this.hasSlotController.test("label"),t=this.hasSlotController.test("help-text"),o=!!this.label||!!e,r=!!this.helpText||!!t;return vo`
      <div
        part="form-control"
        class=${vi({"form-control":!0,"form-control--medium":!0,"form-control--has-label":o,"form-control--has-help-text":r})}
      >
        <label
          part="form-control-label"
          class="form-control__label"
          for="input"
          aria-hidden=${o?"false":"true"}
        >
          <slot name="label">${this.label}</slot>
        </label>

        <div part="form-control-input" class="form-control-input">
          <div
            part="base"
            class=${vi({range:!0,"range--disabled":this.disabled,"range--focused":this.hasFocus,"range--rtl":"rtl"===this.localize.dir(),"range--tooltip-visible":this.hasTooltip,"range--tooltip-top":"top"===this.tooltip,"range--tooltip-bottom":"bottom"===this.tooltip})}
            @mousedown=${this.handleThumbDragStart}
            @mouseup=${this.handleThumbDragEnd}
            @touchstart=${this.handleThumbDragStart}
            @touchend=${this.handleThumbDragEnd}
          >
            <input
              part="input"
              id="input"
              class="range__control"
              title=${this.title}
              type="range"
              name=${un(this.name)}
              ?disabled=${this.disabled}
              min=${un(this.min)}
              max=${un(this.max)}
              step=${un(this.step)}
              .value=${_n(this.value.toString())}
              aria-describedby="help-text"
              @change=${this.handleChange}
              @focus=${this.handleFocus}
              @input=${this.handleInput}
              @invalid=${this.handleInvalid}
              @blur=${this.handleBlur}
            />
            ${"none"===this.tooltip||this.disabled?"":vo`
                  <output part="tooltip" class="range__tooltip">
                    ${"function"==typeof this.tooltipFormatter?this.tooltipFormatter(this.value):this.value}
                  </output>
                `}
          </div>
        </div>

        <div
          part="form-control-help-text"
          id="help-text"
          class="form-control__help-text"
          aria-hidden=${r?"false":"true"}
        >
          <slot name="help-text">${this.helpText}</slot>
        </div>
      </div>
    `}};Ls.styles=[Do,en,Ns],Vo([tr(".range__control")],Ls.prototype,"input",2),Vo([tr(".range__tooltip")],Ls.prototype,"output",2),Vo([Qo()],Ls.prototype,"hasFocus",2),Vo([Qo()],Ls.prototype,"hasTooltip",2),Vo([Xo()],Ls.prototype,"title",2),Vo([Xo()],Ls.prototype,"name",2),Vo([Xo({type:Number})],Ls.prototype,"value",2),Vo([Xo()],Ls.prototype,"label",2),Vo([Xo({attribute:"help-text"})],Ls.prototype,"helpText",2),Vo([Xo({type:Boolean,reflect:!0})],Ls.prototype,"disabled",2),Vo([Xo({type:Number})],Ls.prototype,"min",2),Vo([Xo({type:Number})],Ls.prototype,"max",2),Vo([Xo({type:Number})],Ls.prototype,"step",2),Vo([Xo()],Ls.prototype,"tooltip",2),Vo([Xo({attribute:!1})],Ls.prototype,"tooltipFormatter",2),Vo([Xo({reflect:!0})],Ls.prototype,"form",2),Vo([Ji()],Ls.prototype,"defaultValue",2),Vo([Jo({passive:!0})],Ls.prototype,"handleThumbDragStart",1),Vo([ji("value",{waitUntilFirstUpdate:!0})],Ls.prototype,"handleValueChange",1),Vo([ji("disabled",{waitUntilFirstUpdate:!0})],Ls.prototype,"handleDisabledChange",1),Vo([ji("hasTooltip",{waitUntilFirstUpdate:!0})],Ls.prototype,"syncRange",1);Ls.define("sl-range");Xi({tagName:"sl-range",elementClass:Ls,react:p,events:{onSlBlur:"sl-blur",onSlChange:"sl-change",onSlFocus:"sl-focus",onSlInput:"sl-input",onSlInvalid:"sl-invalid"},displayName:"SlRange"});var Hs=At`
  :host {
    --symbol-color: var(--sl-color-neutral-300);
    --symbol-color-active: var(--sl-color-amber-500);
    --symbol-size: 1.2rem;
    --symbol-spacing: var(--sl-spacing-3x-small);

    display: inline-flex;
  }

  .rating {
    position: relative;
    display: inline-flex;
    border-radius: var(--sl-border-radius-medium);
    vertical-align: middle;
  }

  .rating:focus {
    outline: none;
  }

  .rating:focus-visible {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .rating__symbols {
    display: inline-flex;
    position: relative;
    font-size: var(--symbol-size);
    line-height: 0;
    color: var(--symbol-color);
    white-space: nowrap;
    cursor: pointer;
  }

  .rating__symbols > * {
    padding: var(--symbol-spacing);
  }

  .rating__symbol--active,
  .rating__partial--filled {
    color: var(--symbol-color-active);
  }

  .rating__partial-symbol-container {
    position: relative;
  }

  .rating__partial--filled {
    position: absolute;
    top: var(--symbol-spacing);
    left: var(--symbol-spacing);
  }

  .rating__symbol {
    transition: var(--sl-transition-fast) scale;
    pointer-events: none;
  }

  .rating__symbol--hover {
    scale: 1.2;
  }

  .rating--disabled .rating__symbols,
  .rating--readonly .rating__symbols {
    cursor: default;
  }

  .rating--disabled .rating__symbol--hover,
  .rating--readonly .rating__symbol--hover {
    scale: none;
  }

  .rating--disabled {
    opacity: 0.5;
  }

  .rating--disabled .rating__symbols {
    cursor: not-allowed;
  }

  /* Forced colors mode */
  @media (forced-colors: active) {
    .rating__symbol--active {
      color: SelectedItem;
    }
  }
`;const Fs="important",Bs=" !"+Fs,Ws=bi(class extends directive_i{constructor(e){if(super(e),e.type!==pi||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,o)=>{const r=e[o];return null==r?t:t+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(e,[t]){const{style:o}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?o.removeProperty(e):o[e]=null);for(const e in t){const r=t[e];if(null!=r){this.ft.add(e);const t="string"==typeof r&&r.endsWith(Bs);e.includes("-")||t?o.setProperty(e,t?r.slice(0,-11):r,t?Fs:""):o[e]=r}}return _o}});class unsafe_html_e extends directive_i{constructor(e){if(super(e),this.it=xo,e.type!==fi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===xo||null==e)return this._t=void 0,this.it=e;if(e===_o)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}unsafe_html_e.directiveName="unsafeHTML",unsafe_html_e.resultType=1;const Gs=bi(unsafe_html_e);var Us=class extends rr{constructor(){super(...arguments),this.hoverValue=0,this.isHovering=!1,this.label="",this.value=0,this.max=5,this.precision=1,this.readonly=!1,this.disabled=!1,this.getSymbol=()=>'<sl-icon name="star-fill" library="system"></sl-icon>'}getValueFromMousePosition(e){return this.getValueFromXCoordinate(e.clientX)}getValueFromTouchPosition(e){return this.getValueFromXCoordinate(e.touches[0].clientX)}getValueFromXCoordinate(e){const t=this.matches(":dir(rtl)"),{left:o,right:r,width:n}=this.rating.getBoundingClientRect();return Vn(t?this.roundToPrecision((r-e)/n*this.max,this.precision):this.roundToPrecision((e-o)/n*this.max,this.precision),0,this.max)}handleClick(e){this.disabled||(this.setValue(this.getValueFromMousePosition(e)),this.emit("sl-change"))}setValue(e){this.disabled||this.readonly||(this.value=e===this.value?0:e,this.isHovering=!1)}handleKeyDown(e){const t=this.matches(":dir(ltr)"),o=this.matches(":dir(rtl)"),r=this.value;if(!this.disabled&&!this.readonly){if("ArrowDown"===e.key||t&&"ArrowLeft"===e.key||o&&"ArrowRight"===e.key){const t=e.shiftKey?1:this.precision;this.value=Math.max(0,this.value-t),e.preventDefault()}if("ArrowUp"===e.key||t&&"ArrowRight"===e.key||o&&"ArrowLeft"===e.key){const t=e.shiftKey?1:this.precision;this.value=Math.min(this.max,this.value+t),e.preventDefault()}"Home"===e.key&&(this.value=0,e.preventDefault()),"End"===e.key&&(this.value=this.max,e.preventDefault()),this.value!==r&&this.emit("sl-change")}}handleMouseEnter(e){this.isHovering=!0,this.hoverValue=this.getValueFromMousePosition(e)}handleMouseMove(e){this.hoverValue=this.getValueFromMousePosition(e)}handleMouseLeave(){this.isHovering=!1}handleTouchStart(e){this.isHovering=!0,this.hoverValue=this.getValueFromTouchPosition(e),e.preventDefault()}handleTouchMove(e){this.hoverValue=this.getValueFromTouchPosition(e)}handleTouchEnd(e){this.isHovering=!1,this.setValue(this.hoverValue),this.emit("sl-change"),e.preventDefault()}roundToPrecision(e,t=.5){const o=1/t;return Math.ceil(e*o)/o}handleHoverValueChange(){this.emit("sl-hover",{detail:{phase:"move",value:this.hoverValue}})}handleIsHoveringChange(){this.emit("sl-hover",{detail:{phase:this.isHovering?"start":"end",value:this.hoverValue}})}focus(e){this.rating.focus(e)}blur(){this.rating.blur()}render(){const e=this.matches(":dir(rtl)"),t=Array.from(Array(this.max).keys());let o=0;return o=this.disabled||this.readonly?this.value:this.isHovering?this.hoverValue:this.value,vo`
      <div
        part="base"
        class=${vi({rating:!0,"rating--readonly":this.readonly,"rating--disabled":this.disabled,"rating--rtl":e})}
        role="slider"
        aria-label=${this.label}
        aria-disabled=${this.disabled?"true":"false"}
        aria-readonly=${this.readonly?"true":"false"}
        aria-valuenow=${this.value}
        aria-valuemin=${0}
        aria-valuemax=${this.max}
        tabindex=${this.disabled?"-1":"0"}
        @click=${this.handleClick}
        @keydown=${this.handleKeyDown}
        @mouseenter=${this.handleMouseEnter}
        @touchstart=${this.handleTouchStart}
        @mouseleave=${this.handleMouseLeave}
        @touchend=${this.handleTouchEnd}
        @mousemove=${this.handleMouseMove}
        @touchmove=${this.handleTouchMove}
      >
        <span class="rating__symbols">
          ${t.map((t=>o>t&&o<t+1?vo`
                <span
                  class=${vi({rating__symbol:!0,"rating__partial-symbol-container":!0,"rating__symbol--hover":this.isHovering&&Math.ceil(o)===t+1})}
                  role="presentation"
                >
                  <div
                    style=${Ws({clipPath:e?`inset(0 ${100*(o-t)}% 0 0)`:`inset(0 0 0 ${100*(o-t)}%)`})}
                  >
                    ${Gs(this.getSymbol(t+1))}
                  </div>
                  <div
                    class="rating__partial--filled"
                    style=${Ws({clipPath:e?`inset(0 0 0 ${100-100*(o-t)}%)`:`inset(0 ${100-100*(o-t)}% 0 0)`})}
                  >
                    ${Gs(this.getSymbol(t+1))}
                  </div>
                </span>
              `:vo`
              <span
                class=${vi({rating__symbol:!0,"rating__symbol--hover":this.isHovering&&Math.ceil(o)===t+1,"rating__symbol--active":o>=t+1})}
                role="presentation"
              >
                ${Gs(this.getSymbol(t+1))}
              </span>
            `))}
        </span>
      </div>
    `}};Us.styles=[Do,Hs],Us.dependencies={"sl-icon":Ln},Vo([tr(".rating")],Us.prototype,"rating",2),Vo([Qo()],Us.prototype,"hoverValue",2),Vo([Qo()],Us.prototype,"isHovering",2),Vo([Xo()],Us.prototype,"label",2),Vo([Xo({type:Number})],Us.prototype,"value",2),Vo([Xo({type:Number})],Us.prototype,"max",2),Vo([Xo({type:Number})],Us.prototype,"precision",2),Vo([Xo({type:Boolean,reflect:!0})],Us.prototype,"readonly",2),Vo([Xo({type:Boolean,reflect:!0})],Us.prototype,"disabled",2),Vo([Xo()],Us.prototype,"getSymbol",2),Vo([Jo({passive:!0})],Us.prototype,"handleTouchMove",1),Vo([ji("hoverValue")],Us.prototype,"handleHoverValueChange",1),Vo([ji("isHovering")],Us.prototype,"handleIsHoveringChange",1);Us.define("sl-rating");Xi({tagName:"sl-rating",elementClass:Us,react:p,events:{onSlChange:"sl-change",onSlHover:"sl-hover"},displayName:"SlRating"});var Vs=[{max:276e4,value:6e4,unit:"minute"},{max:72e6,value:36e5,unit:"hour"},{max:5184e5,value:864e5,unit:"day"},{max:24192e5,value:6048e5,unit:"week"},{max:28512e6,value:2592e6,unit:"month"},{max:1/0,value:31536e6,unit:"year"}],js=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.isoTime="",this.relativeTime="",this.date=new Date,this.format="long",this.numeric="auto",this.sync=!1}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.updateTimeout)}render(){const e=new Date,t=new Date(this.date);if(isNaN(t.getMilliseconds()))return this.relativeTime="",this.isoTime="","";const o=t.getTime()-e.getTime(),{unit:r,value:n}=Vs.find((e=>Math.abs(o)<e.max));if(this.isoTime=t.toISOString(),this.relativeTime=this.localize.relativeTime(Math.round(o/n),r,{numeric:this.numeric,style:this.format}),clearTimeout(this.updateTimeout),this.sync){let e;e=Zs("minute"===r?"second":"hour"===r?"minute":"day"===r?"hour":"day"),this.updateTimeout=window.setTimeout((()=>this.requestUpdate()),e)}return vo` <time datetime=${this.isoTime} title=${this.relativeTime}>${this.relativeTime}</time> `}};function Zs(e){const t={second:1e3,minute:6e4,hour:36e5,day:864e5}[e];return t-Date.now()%t}Vo([Qo()],js.prototype,"isoTime",2),Vo([Qo()],js.prototype,"relativeTime",2),Vo([Xo()],js.prototype,"date",2),Vo([Xo()],js.prototype,"format",2),Vo([Xo()],js.prototype,"numeric",2),Vo([Xo({type:Boolean})],js.prototype,"sync",2);js.define("sl-relative-time");Xi({tagName:"sl-relative-time",elementClass:js,react:p,events:{},displayName:"SlRelativeTime"});ys.define("sl-resize-observer");Xi({tagName:"sl-resize-observer",elementClass:ys,react:p,events:{onSlResize:"sl-resize"},displayName:"SlResizeObserver"});var qs=At`
  :host {
    display: block;
  }

  /** The popup */
  .select {
    flex: 1 1 auto;
    display: inline-flex;
    width: 100%;
    position: relative;
    vertical-align: middle;
  }

  .select::part(popup) {
    z-index: var(--sl-z-index-dropdown);
  }

  .select[data-current-placement^='top']::part(popup) {
    transform-origin: bottom;
  }

  .select[data-current-placement^='bottom']::part(popup) {
    transform-origin: top;
  }

  /* Combobox */
  .select__combobox {
    flex: 1;
    display: flex;
    width: 100%;
    min-width: 0;
    position: relative;
    align-items: center;
    justify-content: start;
    font-family: var(--sl-input-font-family);
    font-weight: var(--sl-input-font-weight);
    letter-spacing: var(--sl-input-letter-spacing);
    vertical-align: middle;
    overflow: hidden;
    cursor: pointer;
    transition:
      var(--sl-transition-fast) color,
      var(--sl-transition-fast) border,
      var(--sl-transition-fast) box-shadow,
      var(--sl-transition-fast) background-color;
  }

  .select__display-input {
    position: relative;
    width: 100%;
    font: inherit;
    border: none;
    background: none;
    color: var(--sl-input-color);
    cursor: inherit;
    overflow: hidden;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
  }

  .select__display-input::placeholder {
    color: var(--sl-input-placeholder-color);
  }

  .select:not(.select--disabled):hover .select__display-input {
    color: var(--sl-input-color-hover);
  }

  .select__display-input:focus {
    outline: none;
  }

  /* Visually hide the display input when multiple is enabled */
  .select--multiple:not(.select--placeholder-visible) .select__display-input {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
  }

  .select__value-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    z-index: -1;
  }

  .select__tags {
    display: flex;
    flex: 1;
    align-items: center;
    flex-wrap: wrap;
    margin-inline-start: var(--sl-spacing-2x-small);
  }

  .select__tags::slotted(sl-tag) {
    cursor: pointer !important;
  }

  .select--disabled .select__tags,
  .select--disabled .select__tags::slotted(sl-tag) {
    cursor: not-allowed !important;
  }

  /* Standard selects */
  .select--standard .select__combobox {
    background-color: var(--sl-input-background-color);
    border: solid var(--sl-input-border-width) var(--sl-input-border-color);
  }

  .select--standard.select--disabled .select__combobox {
    background-color: var(--sl-input-background-color-disabled);
    border-color: var(--sl-input-border-color-disabled);
    color: var(--sl-input-color-disabled);
    opacity: 0.5;
    cursor: not-allowed;
    outline: none;
  }

  .select--standard:not(.select--disabled).select--open .select__combobox,
  .select--standard:not(.select--disabled).select--focused .select__combobox {
    background-color: var(--sl-input-background-color-focus);
    border-color: var(--sl-input-border-color-focus);
    box-shadow: 0 0 0 var(--sl-focus-ring-width) var(--sl-input-focus-ring-color);
  }

  /* Filled selects */
  .select--filled .select__combobox {
    border: none;
    background-color: var(--sl-input-filled-background-color);
    color: var(--sl-input-color);
  }

  .select--filled:hover:not(.select--disabled) .select__combobox {
    background-color: var(--sl-input-filled-background-color-hover);
  }

  .select--filled.select--disabled .select__combobox {
    background-color: var(--sl-input-filled-background-color-disabled);
    opacity: 0.5;
    cursor: not-allowed;
  }

  .select--filled:not(.select--disabled).select--open .select__combobox,
  .select--filled:not(.select--disabled).select--focused .select__combobox {
    background-color: var(--sl-input-filled-background-color-focus);
    outline: var(--sl-focus-ring);
  }

  /* Sizes */
  .select--small .select__combobox {
    border-radius: var(--sl-input-border-radius-small);
    font-size: var(--sl-input-font-size-small);
    min-height: var(--sl-input-height-small);
    padding-block: 0;
    padding-inline: var(--sl-input-spacing-small);
  }

  .select--small .select__clear {
    margin-inline-start: var(--sl-input-spacing-small);
  }

  .select--small .select__prefix::slotted(*) {
    margin-inline-end: var(--sl-input-spacing-small);
  }

  .select--small.select--multiple .select__prefix::slotted(*) {
    margin-inline-start: var(--sl-input-spacing-small);
  }

  .select--small.select--multiple:not(.select--placeholder-visible) .select__combobox {
    padding-block: 2px;
    padding-inline-start: 0;
  }

  .select--small .select__tags {
    gap: 2px;
  }

  .select--medium .select__combobox {
    border-radius: var(--sl-input-border-radius-medium);
    font-size: var(--sl-input-font-size-medium);
    min-height: var(--sl-input-height-medium);
    padding-block: 0;
    padding-inline: var(--sl-input-spacing-medium);
  }

  .select--medium .select__clear {
    margin-inline-start: var(--sl-input-spacing-medium);
  }

  .select--medium .select__prefix::slotted(*) {
    margin-inline-end: var(--sl-input-spacing-medium);
  }

  .select--medium.select--multiple .select__prefix::slotted(*) {
    margin-inline-start: var(--sl-input-spacing-medium);
  }

  .select--medium.select--multiple:not(.select--placeholder-visible) .select__combobox {
    padding-inline-start: 0;
    padding-block: 3px;
  }

  .select--medium .select__tags {
    gap: 3px;
  }

  .select--large .select__combobox {
    border-radius: var(--sl-input-border-radius-large);
    font-size: var(--sl-input-font-size-large);
    min-height: var(--sl-input-height-large);
    padding-block: 0;
    padding-inline: var(--sl-input-spacing-large);
  }

  .select--large .select__clear {
    margin-inline-start: var(--sl-input-spacing-large);
  }

  .select--large .select__prefix::slotted(*) {
    margin-inline-end: var(--sl-input-spacing-large);
  }

  .select--large.select--multiple .select__prefix::slotted(*) {
    margin-inline-start: var(--sl-input-spacing-large);
  }

  .select--large.select--multiple:not(.select--placeholder-visible) .select__combobox {
    padding-inline-start: 0;
    padding-block: 4px;
  }

  .select--large .select__tags {
    gap: 4px;
  }

  /* Pills */
  .select--pill.select--small .select__combobox {
    border-radius: var(--sl-input-height-small);
  }

  .select--pill.select--medium .select__combobox {
    border-radius: var(--sl-input-height-medium);
  }

  .select--pill.select--large .select__combobox {
    border-radius: var(--sl-input-height-large);
  }

  /* Prefix and Suffix */
  .select__prefix,
  .select__suffix {
    flex: 0;
    display: inline-flex;
    align-items: center;
    color: var(--sl-input-placeholder-color);
  }

  .select__suffix::slotted(*) {
    margin-inline-start: var(--sl-spacing-small);
  }

  /* Clear button */
  .select__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: inherit;
    color: var(--sl-input-icon-color);
    border: none;
    background: none;
    padding: 0;
    transition: var(--sl-transition-fast) color;
    cursor: pointer;
  }

  .select__clear:hover {
    color: var(--sl-input-icon-color-hover);
  }

  .select__clear:focus {
    outline: none;
  }

  /* Expand icon */
  .select__expand-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    transition: var(--sl-transition-medium) rotate ease;
    rotate: 0;
    margin-inline-start: var(--sl-spacing-small);
  }

  .select--open .select__expand-icon {
    rotate: -180deg;
  }

  /* Listbox */
  .select__listbox {
    display: block;
    position: relative;
    font-family: var(--sl-font-sans);
    font-size: var(--sl-font-size-medium);
    font-weight: var(--sl-font-weight-normal);
    box-shadow: var(--sl-shadow-large);
    background: var(--sl-panel-background-color);
    border: solid var(--sl-panel-border-width) var(--sl-panel-border-color);
    border-radius: var(--sl-border-radius-medium);
    padding-block: var(--sl-spacing-x-small);
    padding-inline: 0;
    overflow: auto;
    overscroll-behavior: none;

    /* Make sure it adheres to the popup's auto size */
    max-width: var(--auto-size-available-width);
    max-height: var(--auto-size-available-height);
  }

  .select__listbox ::slotted(sl-divider) {
    --spacing: var(--sl-spacing-x-small);
  }

  .select__listbox ::slotted(small) {
    display: block;
    font-size: var(--sl-font-size-small);
    font-weight: var(--sl-font-weight-semibold);
    color: var(--sl-color-neutral-500);
    padding-block: var(--sl-spacing-2x-small);
    padding-inline: var(--sl-spacing-x-large);
  }
`,Ys=class extends rr{constructor(){super(...arguments),this.formControlController=new an(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new hn(this,"help-text","label"),this.localize=new Vi(this),this.typeToSelectString="",this.hasFocus=!1,this.displayLabel="",this.selectedOptions=[],this.name="",this.value="",this.defaultValue="",this.size="medium",this.placeholder="",this.multiple=!1,this.maxOptionsVisible=3,this.disabled=!1,this.clearable=!1,this.open=!1,this.hoist=!1,this.filled=!1,this.pill=!1,this.label="",this.placement="bottom",this.helpText="",this.form="",this.required=!1,this.getTag=e=>vo`
      <sl-tag
        part="tag"
        exportparts="
              base:tag__base,
              content:tag__content,
              remove-button:tag__remove-button,
              remove-button__base:tag__remove-button__base
            "
        ?pill=${this.pill}
        size=${this.size}
        removable
        @sl-remove=${t=>this.handleTagRemove(t,e)}
      >
        ${e.getTextLabel()}
      </sl-tag>
    `,this.handleDocumentFocusIn=e=>{const t=e.composedPath();this&&!t.includes(this)&&this.hide()},this.handleDocumentKeyDown=e=>{const t=e.target,o=null!==t.closest(".select__clear"),r=null!==t.closest("sl-icon-button");if(!o&&!r){if("Escape"===e.key&&this.open&&!this.closeWatcher&&(e.preventDefault(),e.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),"Enter"===e.key||" "===e.key&&""===this.typeToSelectString)return e.preventDefault(),e.stopImmediatePropagation(),this.open?void(this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then((()=>{this.emit("sl-input"),this.emit("sl-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))):void this.show();if(["ArrowUp","ArrowDown","Home","End"].includes(e.key)){const t=this.getAllOptions(),o=t.indexOf(this.currentOption);let r=Math.max(0,o);if(e.preventDefault(),!this.open&&(this.show(),this.currentOption))return;"ArrowDown"===e.key?(r=o+1,r>t.length-1&&(r=0)):"ArrowUp"===e.key?(r=o-1,r<0&&(r=t.length-1)):"Home"===e.key?r=0:"End"===e.key&&(r=t.length-1),this.setCurrentOption(t[r])}if(1===e.key.length||"Backspace"===e.key){const t=this.getAllOptions();if(e.metaKey||e.ctrlKey||e.altKey)return;if(!this.open){if("Backspace"===e.key)return;this.show()}e.stopPropagation(),e.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout((()=>this.typeToSelectString=""),1e3),"Backspace"===e.key?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=e.key.toLowerCase();for(const e of t){if(e.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(e);break}}}}},this.handleDocumentMouseDown=e=>{const t=e.composedPath();this&&!t.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}addOpenListeners(){var e;document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn),"CloseWatcher"in window&&(null==(e=this.closeWatcher)||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.open&&(this.hide(),this.displayInput.focus({preventScroll:!0}))})}removeOpenListeners(){var e;document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn),null==(e=this.closeWatcher)||e.destroy()}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sl-focus")}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(e){const t=e.composedPath().some((e=>e instanceof Element&&"sl-icon-button"===e.tagName.toLowerCase()));this.disabled||t||(e.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(e){"Tab"!==e.key&&(e.stopPropagation(),this.handleDocumentKeyDown(e))}handleClearClick(e){e.stopPropagation(),""!==this.value&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then((()=>{this.emit("sl-clear"),this.emit("sl-input"),this.emit("sl-change")})))}handleClearMouseDown(e){e.stopPropagation(),e.preventDefault()}handleOptionClick(e){const t=e.target.closest("sl-option"),o=this.value;t&&!t.disabled&&(this.multiple?this.toggleOptionSelection(t):this.setSelectedOptions(t),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))),this.value!==o&&this.updateComplete.then((()=>{this.emit("sl-input"),this.emit("sl-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const e=this.getAllOptions(),t=Array.isArray(this.value)?this.value:[this.value],o=[];customElements.get("sl-option")?(e.forEach((e=>o.push(e.value))),this.setSelectedOptions(e.filter((e=>t.includes(e.value))))):customElements.whenDefined("sl-option").then((()=>this.handleDefaultSlotChange()))}handleTagRemove(e,t){e.stopPropagation(),this.disabled||(this.toggleOptionSelection(t,!1),this.updateComplete.then((()=>{this.emit("sl-input"),this.emit("sl-change")})))}getAllOptions(){return[...this.querySelectorAll("sl-option")]}getFirstOption(){return this.querySelector("sl-option")}setCurrentOption(e){this.getAllOptions().forEach((e=>{e.current=!1,e.tabIndex=-1})),e&&(this.currentOption=e,e.current=!0,e.tabIndex=0,e.focus())}setSelectedOptions(e){const t=this.getAllOptions(),o=Array.isArray(e)?e:[e];t.forEach((e=>e.selected=!1)),o.length&&o.forEach((e=>e.selected=!0)),this.selectionChanged()}toggleOptionSelection(e,t){e.selected=!0===t||!1===t?t:!e.selected,this.selectionChanged()}selectionChanged(){var e,t,o,r;this.selectedOptions=this.getAllOptions().filter((e=>e.selected)),this.multiple?(this.value=this.selectedOptions.map((e=>e.value)),this.placeholder&&0===this.value.length?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=null!=(t=null==(e=this.selectedOptions[0])?void 0:e.value)?t:"",this.displayLabel=null!=(r=null==(o=this.selectedOptions[0])?void 0:o.getTextLabel())?r:""),this.updateComplete.then((()=>{this.formControlController.updateValidity()}))}get tags(){return this.selectedOptions.map(((e,t)=>{if(t<this.maxOptionsVisible||this.maxOptionsVisible<=0){const o=this.getTag(e,t);return vo`<div @sl-remove=${t=>this.handleTagRemove(t,e)}>
          ${"string"==typeof o?Gs(o):o}
        </div>`}return t===this.maxOptionsVisible?vo`<sl-tag size=${this.size}>+${this.selectedOptions.length-t}</sl-tag>`:vo``}))}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}handleValueChange(){const e=this.getAllOptions(),t=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(e.filter((e=>t.includes(e.value))))}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sl-show"),this.addOpenListeners(),await Di(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame((()=>{this.setCurrentOption(this.currentOption)}));const{keyframes:e,options:t}=Ei(this,"select.show",{dir:this.localize.dir()});await Ii(this.popup.popup,e,t),this.currentOption&&Cs(this.currentOption,this.listbox,"vertical","auto"),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),await Di(this);const{keyframes:e,options:t}=Ei(this,"select.hide",{dir:this.localize.dir()});await Ii(this.popup.popup,e,t),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sl-after-hide")}}async show(){if(!this.open&&!this.disabled)return this.open=!0,Oi(this,"sl-after-show");this.open=!1}async hide(){if(this.open&&!this.disabled)return this.open=!1,Oi(this,"sl-after-hide");this.open=!1}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.valueInput.reportValidity()}setCustomValidity(e){this.valueInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){this.displayInput.focus(e)}blur(){this.displayInput.blur()}render(){const e=this.hasSlotController.test("label"),t=this.hasSlotController.test("help-text"),o=!!this.label||!!e,r=!!this.helpText||!!t,n=this.clearable&&!this.disabled&&this.value.length>0,c=this.placeholder&&0===this.value.length;return vo`
      <div
        part="form-control"
        class=${vi({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-label":o,"form-control--has-help-text":r})}
      >
        <label
          id="label"
          part="form-control-label"
          class="form-control__label"
          aria-hidden=${o?"false":"true"}
          @click=${this.handleLabelClick}
        >
          <slot name="label">${this.label}</slot>
        </label>

        <div part="form-control-input" class="form-control-input">
          <sl-popup
            class=${vi({select:!0,"select--standard":!0,"select--filled":this.filled,"select--pill":this.pill,"select--open":this.open,"select--disabled":this.disabled,"select--multiple":this.multiple,"select--focused":this.hasFocus,"select--placeholder-visible":c,"select--top":"top"===this.placement,"select--bottom":"bottom"===this.placement,"select--small":"small"===this.size,"select--medium":"medium"===this.size,"select--large":"large"===this.size})}
            placement=${this.placement}
            strategy=${this.hoist?"fixed":"absolute"}
            flip
            shift
            sync="width"
            auto-size="vertical"
            auto-size-padding="10"
          >
            <div
              part="combobox"
              class="select__combobox"
              slot="anchor"
              @keydown=${this.handleComboboxKeyDown}
              @mousedown=${this.handleComboboxMouseDown}
            >
              <slot part="prefix" name="prefix" class="select__prefix"></slot>

              <input
                part="display-input"
                class="select__display-input"
                type="text"
                placeholder=${this.placeholder}
                .disabled=${this.disabled}
                .value=${this.displayLabel}
                autocomplete="off"
                spellcheck="false"
                autocapitalize="off"
                readonly
                aria-controls="listbox"
                aria-expanded=${this.open?"true":"false"}
                aria-haspopup="listbox"
                aria-labelledby="label"
                aria-disabled=${this.disabled?"true":"false"}
                aria-describedby="help-text"
                role="combobox"
                tabindex="0"
                @focus=${this.handleFocus}
                @blur=${this.handleBlur}
              />

              ${this.multiple?vo`<div part="tags" class="select__tags">${this.tags}</div>`:""}

              <input
                class="select__value-input"
                type="text"
                ?disabled=${this.disabled}
                ?required=${this.required}
                .value=${Array.isArray(this.value)?this.value.join(", "):this.value}
                tabindex="-1"
                aria-hidden="true"
                @focus=${()=>this.focus()}
                @invalid=${this.handleInvalid}
              />

              ${n?vo`
                    <button
                      part="clear-button"
                      class="select__clear"
                      type="button"
                      aria-label=${this.localize.term("clearEntry")}
                      @mousedown=${this.handleClearMouseDown}
                      @click=${this.handleClearClick}
                      tabindex="-1"
                    >
                      <slot name="clear-icon">
                        <sl-icon name="x-circle-fill" library="system"></sl-icon>
                      </slot>
                    </button>
                  `:""}

              <slot name="suffix" part="suffix" class="select__suffix"></slot>

              <slot name="expand-icon" part="expand-icon" class="select__expand-icon">
                <sl-icon library="system" name="chevron-down"></sl-icon>
              </slot>
            </div>

            <div
              id="listbox"
              role="listbox"
              aria-expanded=${this.open?"true":"false"}
              aria-multiselectable=${this.multiple?"true":"false"}
              aria-labelledby="label"
              part="listbox"
              class="select__listbox"
              tabindex="-1"
              @mouseup=${this.handleOptionClick}
              @slotchange=${this.handleDefaultSlotChange}
            >
              <slot></slot>
            </div>
          </sl-popup>
        </div>

        <div
          part="form-control-help-text"
          id="help-text"
          class="form-control__help-text"
          aria-hidden=${r?"false":"true"}
        >
          <slot name="help-text">${this.helpText}</slot>
        </div>
      </div>
    `}};Ys.styles=[Do,en,qs],Ys.dependencies={"sl-icon":Ln,"sl-popup":xi,"sl-tag":Rs},Vo([tr(".select")],Ys.prototype,"popup",2),Vo([tr(".select__combobox")],Ys.prototype,"combobox",2),Vo([tr(".select__display-input")],Ys.prototype,"displayInput",2),Vo([tr(".select__value-input")],Ys.prototype,"valueInput",2),Vo([tr(".select__listbox")],Ys.prototype,"listbox",2),Vo([Qo()],Ys.prototype,"hasFocus",2),Vo([Qo()],Ys.prototype,"displayLabel",2),Vo([Qo()],Ys.prototype,"currentOption",2),Vo([Qo()],Ys.prototype,"selectedOptions",2),Vo([Xo()],Ys.prototype,"name",2),Vo([Xo({converter:{fromAttribute:e=>e.split(" "),toAttribute:e=>e.join(" ")}})],Ys.prototype,"value",2),Vo([Ji()],Ys.prototype,"defaultValue",2),Vo([Xo({reflect:!0})],Ys.prototype,"size",2),Vo([Xo()],Ys.prototype,"placeholder",2),Vo([Xo({type:Boolean,reflect:!0})],Ys.prototype,"multiple",2),Vo([Xo({attribute:"max-options-visible",type:Number})],Ys.prototype,"maxOptionsVisible",2),Vo([Xo({type:Boolean,reflect:!0})],Ys.prototype,"disabled",2),Vo([Xo({type:Boolean})],Ys.prototype,"clearable",2),Vo([Xo({type:Boolean,reflect:!0})],Ys.prototype,"open",2),Vo([Xo({type:Boolean})],Ys.prototype,"hoist",2),Vo([Xo({type:Boolean,reflect:!0})],Ys.prototype,"filled",2),Vo([Xo({type:Boolean,reflect:!0})],Ys.prototype,"pill",2),Vo([Xo()],Ys.prototype,"label",2),Vo([Xo({reflect:!0})],Ys.prototype,"placement",2),Vo([Xo({attribute:"help-text"})],Ys.prototype,"helpText",2),Vo([Xo({reflect:!0})],Ys.prototype,"form",2),Vo([Xo({type:Boolean,reflect:!0})],Ys.prototype,"required",2),Vo([Xo()],Ys.prototype,"getTag",2),Vo([ji("disabled",{waitUntilFirstUpdate:!0})],Ys.prototype,"handleDisabledChange",1),Vo([ji("value",{waitUntilFirstUpdate:!0})],Ys.prototype,"handleValueChange",1),Vo([ji("open",{waitUntilFirstUpdate:!0})],Ys.prototype,"handleOpenChange",1),Ti("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Ti("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});Ys.define("sl-select");var Ks=Xi({tagName:"sl-select",elementClass:Ys,react:p,events:{onSlChange:"sl-change",onSlClear:"sl-clear",onSlInput:"sl-input",onSlFocus:"sl-focus",onSlBlur:"sl-blur",onSlShow:"sl-show",onSlAfterShow:"sl-after-show",onSlHide:"sl-hide",onSlAfterHide:"sl-after-hide",onSlInvalid:"sl-invalid"},displayName:"SlSelect"}),Xs=At`
  :host {
    display: contents;
  }
`,Qs=class extends rr{constructor(){super(...arguments),this.attrOldValue=!1,this.charData=!1,this.charDataOldValue=!1,this.childList=!1,this.disabled=!1,this.handleMutation=e=>{this.emit("sl-mutation",{detail:{mutationList:e}})}}connectedCallback(){super.connectedCallback(),this.mutationObserver=new MutationObserver(this.handleMutation),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}startObserver(){const e="string"==typeof this.attr&&this.attr.length>0,t=e&&"*"!==this.attr?this.attr.split(" "):void 0;try{this.mutationObserver.observe(this,{subtree:!0,childList:this.childList,attributes:e,attributeFilter:t,attributeOldValue:this.attrOldValue,characterData:this.charData,characterDataOldValue:this.charDataOldValue})}catch(e){}}stopObserver(){this.mutationObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}handleChange(){this.stopObserver(),this.startObserver()}render(){return vo` <slot></slot> `}};Qs.styles=[Do,Xs],Vo([Xo({reflect:!0})],Qs.prototype,"attr",2),Vo([Xo({attribute:"attr-old-value",type:Boolean,reflect:!0})],Qs.prototype,"attrOldValue",2),Vo([Xo({attribute:"char-data",type:Boolean,reflect:!0})],Qs.prototype,"charData",2),Vo([Xo({attribute:"char-data-old-value",type:Boolean,reflect:!0})],Qs.prototype,"charDataOldValue",2),Vo([Xo({attribute:"child-list",type:Boolean,reflect:!0})],Qs.prototype,"childList",2),Vo([Xo({type:Boolean,reflect:!0})],Qs.prototype,"disabled",2),Vo([ji("disabled")],Qs.prototype,"handleDisabledChange",1),Vo([ji("attr",{waitUntilFirstUpdate:!0}),ji("attr-old-value",{waitUntilFirstUpdate:!0}),ji("char-data",{waitUntilFirstUpdate:!0}),ji("char-data-old-value",{waitUntilFirstUpdate:!0}),ji("childList",{waitUntilFirstUpdate:!0})],Qs.prototype,"handleChange",1);Qs.define("sl-mutation-observer");Xi({tagName:"sl-mutation-observer",elementClass:Qs,react:p,events:{onSlMutation:"sl-mutation"},displayName:"SlMutationObserver"});var Js=At`
  :host {
    display: block;
  }

  .menu-label {
    display: inline-block;
    font-family: var(--sl-font-sans);
    font-size: var(--sl-font-size-small);
    font-weight: var(--sl-font-weight-semibold);
    line-height: var(--sl-line-height-normal);
    letter-spacing: var(--sl-letter-spacing-normal);
    color: var(--sl-color-neutral-500);
    padding: var(--sl-spacing-2x-small) var(--sl-spacing-x-large);
    user-select: none;
    -webkit-user-select: none;
  }
`,ea=class extends rr{render(){return vo` <slot part="base" class="menu-label"></slot> `}};ea.styles=[Do,Js];ea.define("sl-menu-label");Xi({tagName:"sl-menu-label",elementClass:ea,react:p,events:{},displayName:"SlMenuLabel"});var ta=At`
  :host {
    --submenu-offset: -2px;

    display: block;
  }

  :host([inert]) {
    display: none;
  }

  .menu-item {
    position: relative;
    display: flex;
    align-items: stretch;
    font-family: var(--sl-font-sans);
    font-size: var(--sl-font-size-medium);
    font-weight: var(--sl-font-weight-normal);
    line-height: var(--sl-line-height-normal);
    letter-spacing: var(--sl-letter-spacing-normal);
    color: var(--sl-color-neutral-700);
    padding: var(--sl-spacing-2x-small) var(--sl-spacing-2x-small);
    transition: var(--sl-transition-fast) fill;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    cursor: pointer;
  }

  .menu-item.menu-item--disabled {
    outline: none;
    opacity: 0.5;
    cursor: not-allowed;
  }

  .menu-item.menu-item--loading {
    outline: none;
    cursor: wait;
  }

  .menu-item.menu-item--loading *:not(sl-spinner) {
    opacity: 0.5;
  }

  .menu-item--loading sl-spinner {
    --indicator-color: currentColor;
    --track-width: 1px;
    position: absolute;
    font-size: 0.75em;
    top: calc(50% - 0.5em);
    left: 0.65rem;
    opacity: 1;
  }

  .menu-item .menu-item__label {
    flex: 1 1 auto;
    display: inline-block;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .menu-item .menu-item__prefix {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  .menu-item .menu-item__prefix::slotted(*) {
    margin-inline-end: var(--sl-spacing-x-small);
  }

  .menu-item .menu-item__suffix {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  .menu-item .menu-item__suffix::slotted(*) {
    margin-inline-start: var(--sl-spacing-x-small);
  }

  /* Safe triangle */
  .menu-item--submenu-expanded::after {
    content: '';
    position: fixed;
    z-index: calc(var(--sl-z-index-dropdown) - 1);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    clip-path: polygon(
      var(--safe-triangle-cursor-x, 0) var(--safe-triangle-cursor-y, 0),
      var(--safe-triangle-submenu-start-x, 0) var(--safe-triangle-submenu-start-y, 0),
      var(--safe-triangle-submenu-end-x, 0) var(--safe-triangle-submenu-end-y, 0)
    );
  }

  :host(:focus-visible) {
    outline: none;
  }

  :host(:hover:not([aria-disabled='true'], :focus-visible)) .menu-item,
  .menu-item--submenu-expanded {
    background-color: var(--sl-color-neutral-100);
    color: var(--sl-color-neutral-1000);
  }

  :host(:focus-visible) .menu-item {
    outline: none;
    background-color: var(--sl-color-primary-600);
    color: var(--sl-color-neutral-0);
    opacity: 1;
  }

  .menu-item .menu-item__check,
  .menu-item .menu-item__chevron {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    visibility: hidden;
  }

  .menu-item--checked .menu-item__check,
  .menu-item--has-submenu .menu-item__chevron {
    visibility: visible;
  }

  /* Add elevation and z-index to submenus */
  sl-popup::part(popup) {
    box-shadow: var(--sl-shadow-large);
    z-index: var(--sl-z-index-dropdown);
    margin-left: var(--submenu-offset);
  }

  .menu-item--rtl sl-popup::part(popup) {
    margin-left: calc(-1 * var(--submenu-offset));
  }

  @media (forced-colors: active) {
    :host(:hover:not([aria-disabled='true'])) .menu-item,
    :host(:focus-visible) .menu-item {
      outline: dashed 1px SelectedItem;
      outline-offset: -1px;
    }
  }

  ::slotted(sl-menu) {
    max-width: var(--auto-size-available-width) !important;
    max-height: var(--auto-size-available-height) !important;
  }
`;const oa=(e,t)=>{const o=e._$AN;if(void 0===o)return!1;for(const e of o)e._$AO?.(t,!1),oa(e,t);return!0},ra=e=>{let t,o;do{if(void 0===(t=e._$AM))break;o=t._$AN,o.delete(e),e=t}while(0===o?.size)},ia=e=>{for(let t;t=e._$AM;e=t){let o=t._$AN;if(void 0===o)t._$AN=o=new Set;else if(o.has(e))break;o.add(e),la(t)}};function sa(e){void 0!==this._$AN?(ra(this),this._$AM=e,ia(this)):this._$AM=e}function aa(e,t=!1,o=0){const r=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(t)if(Array.isArray(r))for(let e=o;e<r.length;e++)oa(r[e],!1),ra(r[e]);else null!=r&&(oa(r,!1),ra(r));else oa(this,e)}const la=e=>{e.type==fi&&(e._$AP??=aa,e._$AQ??=sa)};class async_directive_f extends directive_i{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),ia(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(oa(this,e),ra(this))}setValue(e){if(fn(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class ref_h{}const ca=new WeakMap,da=bi(class extends async_directive_f{render(e){return xo}update(e,[t]){const o=t!==this.Y;return o&&void 0!==this.Y&&this.rt(void 0),(o||this.lt!==this.ct)&&(this.Y=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),xo}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.Y){const t=this.ht??globalThis;let o=ca.get(t);void 0===o&&(o=new WeakMap,ca.set(t,o)),void 0!==o.get(this.Y)&&this.Y.call(this.ht,void 0),o.set(this.Y,e),void 0!==e&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){return"function"==typeof this.Y?ca.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ha=class{constructor(e,t){this.popupRef=new ref_h,this.enableSubmenuTimer=-1,this.isConnected=!1,this.isPopupConnected=!1,this.skidding=0,this.submenuOpenDelay=100,this.handleMouseMove=e=>{this.host.style.setProperty("--safe-triangle-cursor-x",`${e.clientX}px`),this.host.style.setProperty("--safe-triangle-cursor-y",`${e.clientY}px`)},this.handleMouseOver=()=>{this.hasSlotController.test("submenu")&&this.enableSubmenu()},this.handleKeyDown=e=>{switch(e.key){case"Escape":case"Tab":this.disableSubmenu();break;case"ArrowLeft":e.target!==this.host&&(e.preventDefault(),e.stopPropagation(),this.host.focus(),this.disableSubmenu());break;case"ArrowRight":case"Enter":case" ":this.handleSubmenuEntry(e)}},this.handleClick=e=>{var t;e.target===this.host?(e.preventDefault(),e.stopPropagation()):e.target instanceof Element&&("sl-menu-item"===e.target.tagName||(null==(t=e.target.role)?void 0:t.startsWith("menuitem")))&&this.disableSubmenu()},this.handleFocusOut=e=>{e.relatedTarget&&e.relatedTarget instanceof Element&&this.host.contains(e.relatedTarget)||this.disableSubmenu()},this.handlePopupMouseover=e=>{e.stopPropagation()},this.handlePopupReposition=()=>{const e=this.host.renderRoot.querySelector("slot[name='submenu']"),t=null==e?void 0:e.assignedElements({flatten:!0}).filter((e=>"sl-menu"===e.localName))[0],o=this.host.matches(":dir(rtl)");if(!t)return;const{left:r,top:n,width:c,height:d}=t.getBoundingClientRect();this.host.style.setProperty("--safe-triangle-submenu-start-x",`${o?r+c:r}px`),this.host.style.setProperty("--safe-triangle-submenu-start-y",`${n}px`),this.host.style.setProperty("--safe-triangle-submenu-end-x",`${o?r+c:r}px`),this.host.style.setProperty("--safe-triangle-submenu-end-y",`${n+d}px`)},(this.host=e).addController(this),this.hasSlotController=t}hostConnected(){this.hasSlotController.test("submenu")&&!this.host.disabled&&this.addListeners()}hostDisconnected(){this.removeListeners()}hostUpdated(){this.hasSlotController.test("submenu")&&!this.host.disabled?(this.addListeners(),this.updateSkidding()):this.removeListeners()}addListeners(){this.isConnected||(this.host.addEventListener("mousemove",this.handleMouseMove),this.host.addEventListener("mouseover",this.handleMouseOver),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick),this.host.addEventListener("focusout",this.handleFocusOut),this.isConnected=!0),this.isPopupConnected||this.popupRef.value&&(this.popupRef.value.addEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.addEventListener("sl-reposition",this.handlePopupReposition),this.isPopupConnected=!0)}removeListeners(){this.isConnected&&(this.host.removeEventListener("mousemove",this.handleMouseMove),this.host.removeEventListener("mouseover",this.handleMouseOver),this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick),this.host.removeEventListener("focusout",this.handleFocusOut),this.isConnected=!1),this.isPopupConnected&&this.popupRef.value&&(this.popupRef.value.removeEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.removeEventListener("sl-reposition",this.handlePopupReposition),this.isPopupConnected=!1)}handleSubmenuEntry(e){const t=this.host.renderRoot.querySelector("slot[name='submenu']");if(!t)return;let o=null;for(const e of t.assignedElements())if(o=e.querySelectorAll("sl-menu-item, [role^='menuitem']"),0!==o.length)break;if(o&&0!==o.length){o[0].setAttribute("tabindex","0");for(let e=1;e!==o.length;++e)o[e].setAttribute("tabindex","-1");this.popupRef.value&&(e.preventDefault(),e.stopPropagation(),this.popupRef.value.active?o[0]instanceof HTMLElement&&o[0].focus():(this.enableSubmenu(!1),this.host.updateComplete.then((()=>{o[0]instanceof HTMLElement&&o[0].focus()})),this.host.requestUpdate()))}}setSubmenuState(e){this.popupRef.value&&this.popupRef.value.active!==e&&(this.popupRef.value.active=e,this.host.requestUpdate())}enableSubmenu(e=!0){e?(window.clearTimeout(this.enableSubmenuTimer),this.enableSubmenuTimer=window.setTimeout((()=>{this.setSubmenuState(!0)}),this.submenuOpenDelay)):this.setSubmenuState(!0)}disableSubmenu(){window.clearTimeout(this.enableSubmenuTimer),this.setSubmenuState(!1)}updateSkidding(){var e;if(!(null==(e=this.host.parentElement)?void 0:e.computedStyleMap))return;const t=this.host.parentElement.computedStyleMap(),o=["padding-top","border-top-width","margin-top"].reduce(((e,o)=>{var r;const n=null!=(r=t.get(o))?r:new CSSUnitValue(0,"px");return e-(n instanceof CSSUnitValue?n:new CSSUnitValue(0,"px")).to("px").value}),0);this.skidding=o}isExpanded(){return!!this.popupRef.value&&this.popupRef.value.active}renderSubmenu(){const e=this.host.matches(":dir(rtl)");return this.isConnected?vo`
      <sl-popup
        ${da(this.popupRef)}
        placement=${e?"left-start":"right-start"}
        anchor="anchor"
        flip
        flip-fallback-strategy="best-fit"
        skidding="${this.skidding}"
        strategy="fixed"
        auto-size="vertical"
        auto-size-padding="10"
      >
        <slot name="submenu"></slot>
      </sl-popup>
    `:vo` <slot name="submenu" hidden></slot> `}},ua=class extends rr{constructor(){super(...arguments),this.type="normal",this.checked=!1,this.value="",this.loading=!1,this.disabled=!1,this.hasSlotController=new hn(this,"submenu"),this.submenuController=new ha(this,this.hasSlotController),this.handleHostClick=e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())},this.handleMouseOver=e=>{this.focus(),e.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleHostClick),this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick),this.removeEventListener("mouseover",this.handleMouseOver)}handleDefaultSlotChange(){const e=this.getTextLabel();void 0!==this.cachedTextLabel?e!==this.cachedTextLabel&&(this.cachedTextLabel=e,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1})):this.cachedTextLabel=e}handleCheckedChange(){this.checked&&"checkbox"!==this.type?this.checked=!1:"checkbox"===this.type?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleTypeChange(){"checkbox"===this.type?(this.setAttribute("role","menuitemcheckbox"),this.setAttribute("aria-checked",this.checked?"true":"false")):(this.setAttribute("role","menuitem"),this.removeAttribute("aria-checked"))}getTextLabel(){return function(e){if(!e)return"";const t=e.assignedNodes({flatten:!0});let o="";return[...t].forEach((e=>{e.nodeType===Node.TEXT_NODE&&(o+=e.textContent)})),o}(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){const e=this.matches(":dir(rtl)"),t=this.submenuController.isExpanded();return vo`
      <div
        id="anchor"
        part="base"
        class=${vi({"menu-item":!0,"menu-item--rtl":e,"menu-item--checked":this.checked,"menu-item--disabled":this.disabled,"menu-item--loading":this.loading,"menu-item--has-submenu":this.isSubmenu(),"menu-item--submenu-expanded":t})}
        ?aria-haspopup="${this.isSubmenu()}"
        ?aria-expanded="${!!t}"
      >
        <span part="checked-icon" class="menu-item__check">
          <sl-icon name="check" library="system" aria-hidden="true"></sl-icon>
        </span>

        <slot name="prefix" part="prefix" class="menu-item__prefix"></slot>

        <slot part="label" class="menu-item__label" @slotchange=${this.handleDefaultSlotChange}></slot>

        <slot name="suffix" part="suffix" class="menu-item__suffix"></slot>

        <span part="submenu-icon" class="menu-item__chevron">
          <sl-icon name=${e?"chevron-left":"chevron-right"} library="system" aria-hidden="true"></sl-icon>
        </span>

        ${this.submenuController.renderSubmenu()}
        ${this.loading?vo` <sl-spinner part="spinner" exportparts="base:spinner__base"></sl-spinner> `:""}
      </div>
    `}};ua.styles=[Do,ta],ua.dependencies={"sl-icon":Ln,"sl-popup":xi,"sl-spinner":Bn},Vo([tr("slot:not([name])")],ua.prototype,"defaultSlot",2),Vo([tr(".menu-item")],ua.prototype,"menuItem",2),Vo([Xo()],ua.prototype,"type",2),Vo([Xo({type:Boolean,reflect:!0})],ua.prototype,"checked",2),Vo([Xo()],ua.prototype,"value",2),Vo([Xo({type:Boolean,reflect:!0})],ua.prototype,"loading",2),Vo([Xo({type:Boolean,reflect:!0})],ua.prototype,"disabled",2),Vo([ji("checked")],ua.prototype,"handleCheckedChange",1),Vo([ji("disabled")],ua.prototype,"handleDisabledChange",1),Vo([ji("type")],ua.prototype,"handleTypeChange",1);ua.define("sl-menu-item");Xi({tagName:"sl-menu-item",elementClass:ua,react:p,events:{},displayName:"SlMenuItem"});var pa=At`
  :host {
    display: block;
    user-select: none;
    -webkit-user-select: none;
  }

  :host(:focus) {
    outline: none;
  }

  .option {
    position: relative;
    display: flex;
    align-items: center;
    font-family: var(--sl-font-sans);
    font-size: var(--sl-font-size-medium);
    font-weight: var(--sl-font-weight-normal);
    line-height: var(--sl-line-height-normal);
    letter-spacing: var(--sl-letter-spacing-normal);
    color: var(--sl-color-neutral-700);
    padding: var(--sl-spacing-x-small) var(--sl-spacing-medium) var(--sl-spacing-x-small) var(--sl-spacing-x-small);
    transition: var(--sl-transition-fast) fill;
    cursor: pointer;
  }

  .option--hover:not(.option--current):not(.option--disabled) {
    background-color: var(--sl-color-neutral-100);
    color: var(--sl-color-neutral-1000);
  }

  .option--current,
  .option--current.option--disabled {
    background-color: var(--sl-color-primary-600);
    color: var(--sl-color-neutral-0);
    opacity: 1;
  }

  .option--disabled {
    outline: none;
    opacity: 0.5;
    cursor: not-allowed;
  }

  .option__label {
    flex: 1 1 auto;
    display: inline-block;
    line-height: var(--sl-line-height-dense);
  }

  .option .option__check {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    padding-inline-end: var(--sl-spacing-2x-small);
  }

  .option--selected .option__check {
    visibility: visible;
  }

  .option__prefix,
  .option__suffix {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  .option__prefix::slotted(*) {
    margin-inline-end: var(--sl-spacing-x-small);
  }

  .option__suffix::slotted(*) {
    margin-inline-start: var(--sl-spacing-x-small);
  }

  @media (forced-colors: active) {
    :host(:hover:not([aria-disabled='true'])) .option {
      outline: dashed 1px SelectedItem;
      outline-offset: -1px;
    }
  }
`,fa=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.current=!1,this.selected=!1,this.hasHover=!1,this.value="",this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){const e=this.getTextLabel();void 0!==this.cachedTextLabel?e!==this.cachedTextLabel&&(this.cachedTextLabel=e,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1})):this.cachedTextLabel=e}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){"string"!=typeof this.value&&(this.value=String(this.value)),this.value.includes(" ")&&(this.value=this.value.replace(/ /g,"_"))}getTextLabel(){const e=this.childNodes;let t="";return[...e].forEach((e=>{e.nodeType===Node.ELEMENT_NODE&&(e.hasAttribute("slot")||(t+=e.textContent)),e.nodeType===Node.TEXT_NODE&&(t+=e.textContent)})),t.trim()}render(){return vo`
      <div
        part="base"
        class=${vi({option:!0,"option--current":this.current,"option--disabled":this.disabled,"option--selected":this.selected,"option--hover":this.hasHover})}
        @mouseenter=${this.handleMouseEnter}
        @mouseleave=${this.handleMouseLeave}
      >
        <sl-icon part="checked-icon" class="option__check" name="check" library="system" aria-hidden="true"></sl-icon>
        <slot part="prefix" name="prefix" class="option__prefix"></slot>
        <slot part="label" class="option__label" @slotchange=${this.handleDefaultSlotChange}></slot>
        <slot part="suffix" name="suffix" class="option__suffix"></slot>
      </div>
    `}};fa.styles=[Do,pa],fa.dependencies={"sl-icon":Ln},Vo([tr(".option__label")],fa.prototype,"defaultSlot",2),Vo([Qo()],fa.prototype,"current",2),Vo([Qo()],fa.prototype,"selected",2),Vo([Qo()],fa.prototype,"hasHover",2),Vo([Xo({reflect:!0})],fa.prototype,"value",2),Vo([Xo({type:Boolean,reflect:!0})],fa.prototype,"disabled",2),Vo([ji("disabled")],fa.prototype,"handleDisabledChange",1),Vo([ji("selected")],fa.prototype,"handleSelectedChange",1),Vo([ji("value")],fa.prototype,"handleValueChange",1);fa.define("sl-option");var ma=Xi({tagName:"sl-option",elementClass:fa,react:p,events:{},displayName:"SlOption"});xi.define("sl-popup");Xi({tagName:"sl-popup",elementClass:xi,react:p,events:{onSlReposition:"sl-reposition"},displayName:"SlPopup"});var ga=At`
  :host {
    --height: 1rem;
    --track-color: var(--sl-color-neutral-200);
    --indicator-color: var(--sl-color-primary-600);
    --label-color: var(--sl-color-neutral-0);

    display: block;
  }

  .progress-bar {
    position: relative;
    background-color: var(--track-color);
    height: var(--height);
    border-radius: var(--sl-border-radius-pill);
    box-shadow: inset var(--sl-shadow-small);
    overflow: hidden;
  }

  .progress-bar__indicator {
    height: 100%;
    font-family: var(--sl-font-sans);
    font-size: 12px;
    font-weight: var(--sl-font-weight-normal);
    background-color: var(--indicator-color);
    color: var(--label-color);
    text-align: center;
    line-height: var(--height);
    white-space: nowrap;
    overflow: hidden;
    transition:
      400ms width,
      400ms background-color;
    user-select: none;
    -webkit-user-select: none;
  }

  /* Indeterminate */
  .progress-bar--indeterminate .progress-bar__indicator {
    position: absolute;
    animation: indeterminate 2.5s infinite cubic-bezier(0.37, 0, 0.63, 1);
  }

  .progress-bar--indeterminate.progress-bar--rtl .progress-bar__indicator {
    animation-name: indeterminate-rtl;
  }

  @media (forced-colors: active) {
    .progress-bar {
      outline: solid 1px SelectedItem;
      background-color: var(--sl-color-neutral-0);
    }

    .progress-bar__indicator {
      outline: solid 1px SelectedItem;
      background-color: SelectedItem;
    }
  }

  @keyframes indeterminate {
    0% {
      left: -50%;
      width: 50%;
    }
    75%,
    100% {
      left: 100%;
      width: 50%;
    }
  }

  @keyframes indeterminate-rtl {
    0% {
      right: -50%;
      width: 50%;
    }
    75%,
    100% {
      right: 100%;
      width: 50%;
    }
  }
`,ba=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.value=0,this.indeterminate=!1,this.label=""}render(){return vo`
      <div
        part="base"
        class=${vi({"progress-bar":!0,"progress-bar--indeterminate":this.indeterminate,"progress-bar--rtl":"rtl"===this.localize.dir()})}
        role="progressbar"
        title=${un(this.title)}
        aria-label=${this.label.length>0?this.label:this.localize.term("progress")}
        aria-valuemin="0"
        aria-valuemax="100"
        aria-valuenow=${this.indeterminate?0:this.value}
      >
        <div part="indicator" class="progress-bar__indicator" style=${Ws({width:`${this.value}%`})}>
          ${this.indeterminate?"":vo` <slot part="label" class="progress-bar__label"></slot> `}
        </div>
      </div>
    `}};ba.styles=[Do,ga],Vo([Xo({type:Number,reflect:!0})],ba.prototype,"value",2),Vo([Xo({type:Boolean,reflect:!0})],ba.prototype,"indeterminate",2),Vo([Xo()],ba.prototype,"label",2);ba.define("sl-progress-bar");Xi({tagName:"sl-progress-bar",elementClass:ba,react:p,events:{},displayName:"SlProgressBar"});var va=At`
  :host {
    display: block;
  }

  :host(:focus-visible) {
    outline: 0px;
  }

  .radio {
    display: inline-flex;
    align-items: top;
    font-family: var(--sl-input-font-family);
    font-size: var(--sl-input-font-size-medium);
    font-weight: var(--sl-input-font-weight);
    color: var(--sl-input-label-color);
    vertical-align: middle;
    cursor: pointer;
  }

  .radio--small {
    --toggle-size: var(--sl-toggle-size-small);
    font-size: var(--sl-input-font-size-small);
  }

  .radio--medium {
    --toggle-size: var(--sl-toggle-size-medium);
    font-size: var(--sl-input-font-size-medium);
  }

  .radio--large {
    --toggle-size: var(--sl-toggle-size-large);
    font-size: var(--sl-input-font-size-large);
  }

  .radio__checked-icon {
    display: inline-flex;
    width: var(--toggle-size);
    height: var(--toggle-size);
  }

  .radio__control {
    flex: 0 0 auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--toggle-size);
    height: var(--toggle-size);
    border: solid var(--sl-input-border-width) var(--sl-input-border-color);
    border-radius: 50%;
    background-color: var(--sl-input-background-color);
    color: transparent;
    transition:
      var(--sl-transition-fast) border-color,
      var(--sl-transition-fast) background-color,
      var(--sl-transition-fast) color,
      var(--sl-transition-fast) box-shadow;
  }

  .radio__input {
    position: absolute;
    opacity: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
  }

  /* Hover */
  .radio:not(.radio--checked):not(.radio--disabled) .radio__control:hover {
    border-color: var(--sl-input-border-color-hover);
    background-color: var(--sl-input-background-color-hover);
  }

  /* Checked */
  .radio--checked .radio__control {
    color: var(--sl-color-neutral-0);
    border-color: var(--sl-color-primary-600);
    background-color: var(--sl-color-primary-600);
  }

  /* Checked + hover */
  .radio.radio--checked:not(.radio--disabled) .radio__control:hover {
    border-color: var(--sl-color-primary-500);
    background-color: var(--sl-color-primary-500);
  }

  /* Checked + focus */
  :host(:focus-visible) .radio__control {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  /* Disabled */
  .radio--disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* When the control isn't checked, hide the circle for Windows High Contrast mode a11y */
  .radio:not(.radio--checked) svg circle {
    opacity: 0;
  }

  .radio__label {
    display: inline-block;
    color: var(--sl-input-label-color);
    line-height: var(--toggle-size);
    margin-inline-start: 0.5em;
    user-select: none;
    -webkit-user-select: none;
  }
`,ya=class extends rr{constructor(){super(),this.checked=!1,this.hasFocus=!1,this.size="medium",this.disabled=!1,this.handleBlur=()=>{this.hasFocus=!1,this.emit("sl-blur")},this.handleClick=()=>{this.disabled||(this.checked=!0)},this.handleFocus=()=>{this.hasFocus=!0,this.emit("sl-focus")},this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}connectedCallback(){super.connectedCallback(),this.setInitialAttributes()}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return vo`
      <span
        part="base"
        class=${vi({radio:!0,"radio--checked":this.checked,"radio--disabled":this.disabled,"radio--focused":this.hasFocus,"radio--small":"small"===this.size,"radio--medium":"medium"===this.size,"radio--large":"large"===this.size})}
      >
        <span part="${"control"+(this.checked?" control--checked":"")}" class="radio__control">
          ${this.checked?vo` <sl-icon part="checked-icon" class="radio__checked-icon" library="system" name="radio"></sl-icon> `:""}
        </span>

        <slot part="label" class="radio__label"></slot>
      </span>
    `}};ya.styles=[Do,va],ya.dependencies={"sl-icon":Ln},Vo([Qo()],ya.prototype,"checked",2),Vo([Qo()],ya.prototype,"hasFocus",2),Vo([Xo()],ya.prototype,"value",2),Vo([Xo({reflect:!0})],ya.prototype,"size",2),Vo([Xo({type:Boolean,reflect:!0})],ya.prototype,"disabled",2),Vo([ji("checked")],ya.prototype,"handleCheckedChange",1),Vo([ji("disabled",{waitUntilFirstUpdate:!0})],ya.prototype,"handleDisabledChange",1);ya.define("sl-radio");Xi({tagName:"sl-radio",elementClass:ya,react:p,events:{onSlBlur:"sl-blur",onSlFocus:"sl-focus"},displayName:"SlRadio"});var wa=At`
  :host {
    display: inline-block;
  }
`;let _a=null;class qr_creator_es6_min_H{}qr_creator_es6_min_H.render=function(e,t){_a(e,t)},self.QrCreator=qr_creator_es6_min_H,function(e){function t(t,o,r,n){var c={},d=e(r,o);d.u(t),d.J(),n=n||0;var h=d.h(),u=d.h()+2*n;return c.text=t,c.level=o,c.version=r,c.O=u,c.a=function(e,t){return t-=n,!(0>(e-=n)||e>=h||0>t||t>=h)&&d.a(e,t)},c}function o(e,t,o,r,n,c,d,h,u,p){function m(t,o,r,n,d,h,u){t?(e.lineTo(o+h,r+u),e.arcTo(o,r,n,d,c)):e.lineTo(o,r)}d?e.moveTo(t+c,o):e.moveTo(t,o),m(h,r,o,r,n,-c,0),m(u,r,n,t,n,0,-c),m(p,t,n,t,o,c,0),m(d,t,o,r,o,0,c)}function r(e,t,o,r,n,c,d,h,u,p){function m(t,o,r,n){e.moveTo(t+r,o),e.lineTo(t,o),e.lineTo(t,o+n),e.arcTo(t,o,t+r,o,c)}d&&m(t,o,c,c),h&&m(r,o,-c,c),u&&m(r,n,-c,-c),p&&m(t,n,c,-c)}function n(e,n){e:{var c=n.text,d=n.v,h=n.N,u=n.K,p=n.P;for(h=Math.max(1,h||1),u=Math.min(40,u||40);h<=u;h+=1)try{var m=t(c,d,h,p);break e}catch(e){}m=void 0}if(!m)return null;for(c=e.getContext("2d"),n.background&&(c.fillStyle=n.background,c.fillRect(n.left,n.top,n.size,n.size)),d=m.O,u=n.size/d,c.beginPath(),p=0;p<d;p+=1)for(h=0;h<d;h+=1){var g=c,v=n.left+h*u,y=n.top+p*u,w=p,_=h,x=m.a,C=v+u,S=y+u,T=w-1,E=w+1,O=_-1,D=_+1,A=Math.floor(Math.min(.5,Math.max(0,n.R))*u),$=x(w,_),P=x(T,O),F=x(T,_);T=x(T,D);var B=x(w,D);D=x(E,D),_=x(E,_),E=x(E,O),w=x(w,O),v=Math.round(v),y=Math.round(y),C=Math.round(C),S=Math.round(S),$?o(g,v,y,C,S,A,!F&&!w,!F&&!B,!_&&!B,!_&&!w):r(g,v,y,C,S,A,F&&w&&P,F&&B&&T,_&&B&&D,_&&w&&E)}return function(e,t){var o=t.fill;if("string"==typeof o)e.fillStyle=o;else{var r=o.type,n=o.colorStops;if(o=o.position.map((e=>Math.round(e*t.size))),"linear-gradient"===r)var c=e.createLinearGradient.apply(e,o);else{if("radial-gradient"!==r)throw Error("Unsupported fill");c=e.createRadialGradient.apply(e,o)}n.forEach((([e,t])=>{c.addColorStop(e,t)})),e.fillStyle=c}}(c,n),c.fill(),e}var c={minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:.5,quiet:0};_a=function(e,t){var o={};Object.assign(o,c,e),o.N=o.minVersion,o.K=o.maxVersion,o.v=o.ecLevel,o.left=o.left,o.top=o.top,o.size=o.size,o.fill=o.fill,o.background=o.background,o.text=o.text,o.R=o.radius,o.P=o.quiet,t instanceof HTMLCanvasElement?(t.width===o.size&&t.height===o.size||(t.width=o.size,t.height=o.size),t.getContext("2d").clearRect(0,0,t.width,t.height),n(t,o)):((e=document.createElement("canvas")).width=o.size,e.height=o.size,o=n(e,o),t.appendChild(o))}}(function(){function e(n,d){function h(e,t){for(var o=-1;7>=o;o+=1)if(!(-1>=e+o||g<=e+o))for(var r=-1;7>=r;r+=1)-1>=t+r||g<=t+r||(m[e+o][t+r]=0<=o&&6>=o&&(0==r||6==r)||0<=r&&6>=r&&(0==o||6==o)||2<=o&&4>=o&&2<=r&&4>=r)}function u(e,o){for(var d=g=4*n+17,u=Array(d),w=0;w<d;w+=1){u[w]=Array(d);for(var _=0;_<d;_+=1)u[w][_]=null}for(m=u,h(0,0),h(g-7,0),h(0,g-7),d=r.G(n),u=0;u<d.length;u+=1)for(w=0;w<d.length;w+=1){_=d[u];var x=d[w];if(null==m[_][x])for(var C=-2;2>=C;C+=1)for(var S=-2;2>=S;S+=1)m[_+C][x+S]=-2==C||2==C||-2==S||2==S||0==C&&0==S}for(d=8;d<g-8;d+=1)null==m[d][6]&&(m[d][6]=0==d%2);for(d=8;d<g-8;d+=1)null==m[6][d]&&(m[6][d]=0==d%2);for(d=r.w(p<<3|o),u=0;15>u;u+=1)w=!e&&1==(d>>u&1),m[6>u?u:8>u?u+1:g-15+u][8]=w,m[8][8>u?g-u-1:9>u?15-u:14-u]=w;if(m[g-8][8]=!e,7<=n){for(d=r.A(n),u=0;18>u;u+=1)w=!e&&1==(d>>u&1),m[Math.floor(u/3)][u%3+g-8-3]=w;for(u=0;18>u;u+=1)w=!e&&1==(d>>u&1),m[u%3+g-8-3][Math.floor(u/3)]=w}if(null==v){for(e=c.I(n,p),d=function(){var e=[],t=0,o={B:function(){return e},c:function(t){return 1==(e[Math.floor(t/8)]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)o.m(1==(e>>>t-r-1&1))},f:function(){return t},m:function(o){var r=Math.floor(t/8);e.length<=r&&e.push(0),o&&(e[r]|=128>>>t%8),t+=1}};return o}(),u=0;u<y.length;u+=1)w=y[u],d.put(4,4),d.put(w.b(),r.f(4,n)),w.write(d);for(u=w=0;u<e.length;u+=1)w+=e[u].j;if(d.f()>8*w)throw Error("code length overflow. ("+d.f()+">"+8*w+")");for(d.f()+4<=8*w&&d.put(0,4);0!=d.f()%8;)d.m(!1);for(;!(d.f()>=8*w)&&(d.put(236,8),!(d.f()>=8*w));)d.put(17,8);var T=0;for(w=u=0,_=Array(e.length),x=Array(e.length),C=0;C<e.length;C+=1){var E=e[C].j,O=e[C].o-E;for(u=Math.max(u,E),w=Math.max(w,O),_[C]=Array(E),S=0;S<_[C].length;S+=1)_[C][S]=255&d.B()[S+T];for(T+=E,S=r.C(O),E=t(_[C],S.b()-1).l(S),x[C]=Array(S.b()-1),S=0;S<x[C].length;S+=1)O=S+E.b()-x[C].length,x[C][S]=0<=O?E.c(O):0}for(S=d=0;S<e.length;S+=1)d+=e[S].o;for(d=Array(d),S=T=0;S<u;S+=1)for(C=0;C<e.length;C+=1)S<_[C].length&&(d[T]=_[C][S],T+=1);for(S=0;S<w;S+=1)for(C=0;C<e.length;C+=1)S<x[C].length&&(d[T]=x[C][S],T+=1);v=d}for(e=v,d=-1,u=g-1,w=7,_=0,o=r.F(o),x=g-1;0<x;x-=2)for(6==x&&--x;;){for(C=0;2>C;C+=1)null==m[u][x-C]&&(S=!1,_<e.length&&(S=1==(e[_]>>>w&1)),o(u,x-C)&&(S=!S),m[u][x-C]=S,-1==--w&&(_+=1,w=7));if(0>(u+=d)||g<=u){u-=d,d=-d;break}}}var p=o[d],m=null,g=0,v=null,y=[],w={u:function(t){t=function(t){var o=e.s(t);return{S:function(){return 4},b:function(){return o.length},write:function(e){for(var t=0;t<o.length;t+=1)e.put(o[t],8)}}}(t),y.push(t),v=null},a:function(e,t){if(0>e||g<=e||0>t||g<=t)throw Error(e+","+t);return m[e][t]},h:function(){return g},J:function(){for(var e=0,t=0,o=0;8>o;o+=1){u(!0,o);var n=r.D(w);(0==o||e>n)&&(e=n,t=o)}u(!1,t)}};return w}function t(e,o){if(void 0===e.length)throw Error(e.length+"/"+o);var r=function(){for(var t=0;t<e.length&&0==e[t];)t+=1;for(var r=Array(e.length-t+o),n=0;n<e.length-t;n+=1)r[n]=e[n+t];return r}(),c={c:function(e){return r[e]},b:function(){return r.length},multiply:function(e){for(var o=Array(c.b()+e.b()-1),r=0;r<c.b();r+=1)for(var d=0;d<e.b();d+=1)o[r+d]^=n.i(n.g(c.c(r))+n.g(e.c(d)));return t(o,0)},l:function(e){if(0>c.b()-e.b())return c;for(var o=n.g(c.c(0))-n.g(e.c(0)),r=Array(c.b()),d=0;d<c.b();d+=1)r[d]=c.c(d);for(d=0;d<e.b();d+=1)r[d]^=n.i(n.g(e.c(d))+o);return t(r,0).l(e)}};return c}e.s=function(e){for(var t=[],o=0;o<e.length;o++){var r=e.charCodeAt(o);128>r?t.push(r):2048>r?t.push(192|r>>6,128|63&r):55296>r||57344<=r?t.push(224|r>>12,128|r>>6&63,128|63&r):(o++,r=65536+((1023&r)<<10|1023&e.charCodeAt(o)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t};var o={L:1,M:0,Q:3,H:2},r=function(){function e(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t}var o=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],r={w:function(t){for(var o=t<<10;0<=e(o)-e(1335);)o^=1335<<e(o)-e(1335);return 21522^(t<<10|o)},A:function(t){for(var o=t<<12;0<=e(o)-e(7973);)o^=7973<<e(o)-e(7973);return t<<12|o},G:function(e){return o[e-1]},F:function(e){switch(e){case 0:return function(e,t){return 0==(e+t)%2};case 1:return function(e){return 0==e%2};case 2:return function(e,t){return 0==t%3};case 3:return function(e,t){return 0==(e+t)%3};case 4:return function(e,t){return 0==(Math.floor(e/2)+Math.floor(t/3))%2};case 5:return function(e,t){return 0==e*t%2+e*t%3};case 6:return function(e,t){return 0==(e*t%2+e*t%3)%2};case 7:return function(e,t){return 0==(e*t%3+(e+t)%2)%2};default:throw Error("bad maskPattern:"+e)}},C:function(e){for(var o=t([1],0),r=0;r<e;r+=1)o=o.multiply(t([1,n.i(r)],0));return o},f:function(e,t){if(4!=e||1>t||40<t)throw Error("mode: "+e+"; type: "+t);return 10>t?8:16},D:function(e){for(var t=e.h(),o=0,r=0;r<t;r+=1)for(var n=0;n<t;n+=1){for(var c=0,d=e.a(r,n),h=-1;1>=h;h+=1)if(!(0>r+h||t<=r+h))for(var u=-1;1>=u;u+=1)0>n+u||t<=n+u||(0!=h||0!=u)&&d==e.a(r+h,n+u)&&(c+=1);5<c&&(o+=3+c-5)}for(r=0;r<t-1;r+=1)for(n=0;n<t-1;n+=1)c=0,e.a(r,n)&&(c+=1),e.a(r+1,n)&&(c+=1),e.a(r,n+1)&&(c+=1),e.a(r+1,n+1)&&(c+=1),(0==c||4==c)&&(o+=3);for(r=0;r<t;r+=1)for(n=0;n<t-6;n+=1)e.a(r,n)&&!e.a(r,n+1)&&e.a(r,n+2)&&e.a(r,n+3)&&e.a(r,n+4)&&!e.a(r,n+5)&&e.a(r,n+6)&&(o+=40);for(n=0;n<t;n+=1)for(r=0;r<t-6;r+=1)e.a(r,n)&&!e.a(r+1,n)&&e.a(r+2,n)&&e.a(r+3,n)&&e.a(r+4,n)&&!e.a(r+5,n)&&e.a(r+6,n)&&(o+=40);for(n=c=0;n<t;n+=1)for(r=0;r<t;r+=1)e.a(r,n)&&(c+=1);return o+Math.abs(100*c/t/t-50)/5*10}};return r}(),n=function(){for(var e=Array(256),t=Array(256),o=0;8>o;o+=1)e[o]=1<<o;for(o=8;256>o;o+=1)e[o]=e[o-4]^e[o-5]^e[o-6]^e[o-8];for(o=0;255>o;o+=1)t[e[o]]=o;return{g:function(e){if(1>e)throw Error("glog("+e+")");return t[e]},i:function(t){for(;0>t;)t+=255;for(;256<=t;)t-=255;return e[t]}}}(),c=function(){function e(e,r){switch(r){case o.L:return t[4*(e-1)];case o.M:return t[4*(e-1)+1];case o.Q:return t[4*(e-1)+2];case o.H:return t[4*(e-1)+3]}}var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],r={I:function(t,o){var r=e(t,o);if(void 0===r)throw Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+o);t=r.length/3,o=[];for(var n=0;n<t;n+=1)for(var c=r[3*n],d=r[3*n+1],h=r[3*n+2],u=0;u<c;u+=1){var p=h,m={};m.o=d,m.j=p,o.push(m)}return o}};return r}();return e}());const xa=QrCreator;var Ca=class extends rr{constructor(){super(...arguments),this.value="",this.label="",this.size=128,this.fill="black",this.background="white",this.radius=0,this.errorCorrection="H"}firstUpdated(){this.generate()}generate(){this.hasUpdated&&xa.render({text:this.value,radius:this.radius,ecLevel:this.errorCorrection,fill:this.fill,background:this.background,size:2*this.size},this.canvas)}render(){var e;return vo`
      <canvas
        part="base"
        class="qr-code"
        role="img"
        aria-label=${(null==(e=this.label)?void 0:e.length)>0?this.label:this.value}
        style=${Ws({width:`${this.size}px`,height:`${this.size}px`})}
      ></canvas>
    `}};Ca.styles=[Do,wa],Vo([tr("canvas")],Ca.prototype,"canvas",2),Vo([Xo()],Ca.prototype,"value",2),Vo([Xo()],Ca.prototype,"label",2),Vo([Xo({type:Number})],Ca.prototype,"size",2),Vo([Xo()],Ca.prototype,"fill",2),Vo([Xo()],Ca.prototype,"background",2),Vo([Xo({type:Number})],Ca.prototype,"radius",2),Vo([Xo({attribute:"error-correction"})],Ca.prototype,"errorCorrection",2),Vo([ji(["background","errorCorrection","fill","radius","size","value"])],Ca.prototype,"generate",1);Ca.define("sl-qr-code");Xi({tagName:"sl-qr-code",elementClass:Ca,react:p,events:{},displayName:"SlQrCode"});var ka=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.value=0,this.type="decimal",this.noGrouping=!1,this.currency="USD",this.currencyDisplay="symbol"}render(){return isNaN(this.value)?"":this.localize.number(this.value,{style:this.type,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.noGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits})}};Vo([Xo({type:Number})],ka.prototype,"value",2),Vo([Xo()],ka.prototype,"type",2),Vo([Xo({attribute:"no-grouping",type:Boolean})],ka.prototype,"noGrouping",2),Vo([Xo()],ka.prototype,"currency",2),Vo([Xo({attribute:"currency-display"})],ka.prototype,"currencyDisplay",2),Vo([Xo({attribute:"minimum-integer-digits",type:Number})],ka.prototype,"minimumIntegerDigits",2),Vo([Xo({attribute:"minimum-fraction-digits",type:Number})],ka.prototype,"minimumFractionDigits",2),Vo([Xo({attribute:"maximum-fraction-digits",type:Number})],ka.prototype,"maximumFractionDigits",2),Vo([Xo({attribute:"minimum-significant-digits",type:Number})],ka.prototype,"minimumSignificantDigits",2),Vo([Xo({attribute:"maximum-significant-digits",type:Number})],ka.prototype,"maximumSignificantDigits",2);ka.define("sl-format-number");Xi({tagName:"sl-format-number",elementClass:ka,react:p,events:{},displayName:"SlFormatNumber"});var Sa=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.value=0,this.unit="byte",this.display="short"}render(){if(isNaN(this.value))return"";const e="bit"===this.unit?["","kilo","mega","giga","tera"]:["","kilo","mega","giga","tera","peta"],t=Math.max(0,Math.min(Math.floor(Math.log10(this.value)/3),e.length-1)),o=e[t]+this.unit,r=parseFloat((this.value/Math.pow(1e3,t)).toPrecision(3));return this.localize.number(r,{style:"unit",unit:o,unitDisplay:this.display})}};Vo([Xo({type:Number})],Sa.prototype,"value",2),Vo([Xo()],Sa.prototype,"unit",2),Vo([Xo()],Sa.prototype,"display",2);Sa.define("sl-format-bytes");Xi({tagName:"sl-format-bytes",elementClass:Sa,react:p,events:{},displayName:"SlFormatBytes"});Ln.define("sl-icon");Xi({tagName:"sl-icon",elementClass:Ln,react:p,events:{onSlLoad:"sl-load",onSlError:"sl-error"},displayName:"SlIcon"});var Ra=At`
  :host {
    --divider-width: 2px;
    --handle-size: 2.5rem;

    display: inline-block;
    position: relative;
  }

  .image-comparer {
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
  }

  .image-comparer__before,
  .image-comparer__after {
    display: block;
    pointer-events: none;
  }

  .image-comparer__before::slotted(img),
  .image-comparer__after::slotted(img),
  .image-comparer__before::slotted(svg),
  .image-comparer__after::slotted(svg) {
    display: block;
    max-width: 100% !important;
    height: auto;
  }

  .image-comparer__after {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
  }

  .image-comparer__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    width: var(--divider-width);
    height: 100%;
    background-color: var(--sl-color-neutral-0);
    translate: calc(var(--divider-width) / -2);
    cursor: ew-resize;
  }

  .image-comparer__handle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(50% - (var(--handle-size) / 2));
    width: var(--handle-size);
    height: var(--handle-size);
    background-color: var(--sl-color-neutral-0);
    border-radius: var(--sl-border-radius-circle);
    font-size: calc(var(--handle-size) * 0.5);
    color: var(--sl-color-neutral-700);
    cursor: inherit;
    z-index: 10;
  }

  .image-comparer__handle:focus-visible {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }
`,Ta=class extends rr{constructor(){super(...arguments),this.position=50}handleDrag(e){const{width:t}=this.base.getBoundingClientRect(),o=this.matches(":dir(rtl)");e.preventDefault(),Xn(this.base,{onMove:e=>{this.position=parseFloat(Vn(e/t*100,0,100).toFixed(2)),o&&(this.position=100-this.position)},initialEvent:e})}handleKeyDown(e){const t=this.matches(":dir(ltr)"),o=this.matches(":dir(rtl)");if(["ArrowLeft","ArrowRight","Home","End"].includes(e.key)){const r=e.shiftKey?10:1;let n=this.position;e.preventDefault(),(t&&"ArrowLeft"===e.key||o&&"ArrowRight"===e.key)&&(n-=r),(t&&"ArrowRight"===e.key||o&&"ArrowLeft"===e.key)&&(n+=r),"Home"===e.key&&(n=0),"End"===e.key&&(n=100),n=Vn(n,0,100),this.position=n}}handlePositionChange(){this.emit("sl-change")}render(){const e=this.matches(":dir(rtl)");return vo`
      <div
        part="base"
        id="image-comparer"
        class=${vi({"image-comparer":!0,"image-comparer--rtl":e})}
        @keydown=${this.handleKeyDown}
      >
        <div class="image-comparer__image">
          <div part="before" class="image-comparer__before">
            <slot name="before"></slot>
          </div>

          <div
            part="after"
            class="image-comparer__after"
            style=${Ws({clipPath:e?`inset(0 0 0 ${100-this.position}%)`:`inset(0 ${100-this.position}% 0 0)`})}
          >
            <slot name="after"></slot>
          </div>
        </div>

        <div
          part="divider"
          class="image-comparer__divider"
          style=${Ws({left:e?100-this.position+"%":`${this.position}%`})}
          @mousedown=${this.handleDrag}
          @touchstart=${this.handleDrag}
        >
          <div
            part="handle"
            class="image-comparer__handle"
            role="scrollbar"
            aria-valuenow=${this.position}
            aria-valuemin="0"
            aria-valuemax="100"
            aria-controls="image-comparer"
            tabindex="0"
          >
            <slot name="handle">
              <sl-icon library="system" name="grip-vertical"></sl-icon>
            </slot>
          </div>
        </div>
      </div>
    `}};Ta.styles=[Do,Ra],Ta.scopedElement={"sl-icon":Ln},Vo([tr(".image-comparer")],Ta.prototype,"base",2),Vo([tr(".image-comparer__handle")],Ta.prototype,"handle",2),Vo([Xo({type:Number,reflect:!0})],Ta.prototype,"position",2),Vo([ji("position",{waitUntilFirstUpdate:!0})],Ta.prototype,"handlePositionChange",1);Ta.define("sl-image-comparer");Xi({tagName:"sl-image-comparer",elementClass:Ta,react:p,events:{onSlChange:"sl-change"},displayName:"SlImageComparer"});var Ea=At`
  :host {
    display: block;
  }
`,Oa=new Map;var Ia=class extends rr{constructor(){super(...arguments),this.mode="cors",this.allowScripts=!1}executeScript(e){const t=document.createElement("script");[...e.attributes].forEach((e=>t.setAttribute(e.name,e.value))),t.textContent=e.textContent,e.parentNode.replaceChild(t,e)}async handleSrcChange(){try{const e=this.src,t=await function(e,t="cors"){const o=Oa.get(e);if(void 0!==o)return Promise.resolve(o);const r=fetch(e,{mode:t}).then((async t=>{const o={ok:t.ok,status:t.status,html:await t.text()};return Oa.set(e,o),o}));return Oa.set(e,r),r}(e,this.mode);if(e!==this.src)return;if(!t.ok)return void this.emit("sl-error",{detail:{status:t.status}});this.innerHTML=t.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach((e=>this.executeScript(e))),this.emit("sl-load")}catch(e){this.emit("sl-error",{detail:{status:-1}})}}render(){return vo`<slot></slot>`}};Ia.styles=[Do,Ea],Vo([Xo()],Ia.prototype,"src",2),Vo([Xo()],Ia.prototype,"mode",2),Vo([Xo({attribute:"allow-scripts",type:Boolean})],Ia.prototype,"allowScripts",2),Vo([ji("src")],Ia.prototype,"handleSrcChange",1);Ia.define("sl-include");Xi({tagName:"sl-include",elementClass:Ia,react:p,events:{onSlLoad:"sl-load",onSlError:"sl-error"},displayName:"SlInclude"});cs.define("sl-icon-button");Xi({tagName:"sl-icon-button",elementClass:cs,react:p,events:{onSlBlur:"sl-blur",onSlFocus:"sl-focus"},displayName:"SlIconButton"});var Ma=At`
  :host {
    display: block;
  }

  .input {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: stretch;
    justify-content: start;
    position: relative;
    width: 100%;
    font-family: var(--sl-input-font-family);
    font-weight: var(--sl-input-font-weight);
    letter-spacing: var(--sl-input-letter-spacing);
    vertical-align: middle;
    overflow: hidden;
    cursor: text;
    transition:
      var(--sl-transition-fast) color,
      var(--sl-transition-fast) border,
      var(--sl-transition-fast) box-shadow,
      var(--sl-transition-fast) background-color;
  }

  /* Standard inputs */
  .input--standard {
    background-color: var(--sl-input-background-color);
    border: solid var(--sl-input-border-width) var(--sl-input-border-color);
  }

  .input--standard:hover:not(.input--disabled) {
    background-color: var(--sl-input-background-color-hover);
    border-color: var(--sl-input-border-color-hover);
  }

  .input--standard.input--focused:not(.input--disabled) {
    background-color: var(--sl-input-background-color-focus);
    border-color: var(--sl-input-border-color-focus);
    box-shadow: 0 0 0 var(--sl-focus-ring-width) var(--sl-input-focus-ring-color);
  }

  .input--standard.input--focused:not(.input--disabled) .input__control {
    color: var(--sl-input-color-focus);
  }

  .input--standard.input--disabled {
    background-color: var(--sl-input-background-color-disabled);
    border-color: var(--sl-input-border-color-disabled);
    opacity: 0.5;
    cursor: not-allowed;
  }

  .input--standard.input--disabled .input__control {
    color: var(--sl-input-color-disabled);
  }

  .input--standard.input--disabled .input__control::placeholder {
    color: var(--sl-input-placeholder-color-disabled);
  }

  /* Filled inputs */
  .input--filled {
    border: none;
    background-color: var(--sl-input-filled-background-color);
    color: var(--sl-input-color);
  }

  .input--filled:hover:not(.input--disabled) {
    background-color: var(--sl-input-filled-background-color-hover);
  }

  .input--filled.input--focused:not(.input--disabled) {
    background-color: var(--sl-input-filled-background-color-focus);
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .input--filled.input--disabled {
    background-color: var(--sl-input-filled-background-color-disabled);
    opacity: 0.5;
    cursor: not-allowed;
  }

  .input__control {
    flex: 1 1 auto;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    min-width: 0;
    height: 100%;
    color: var(--sl-input-color);
    border: none;
    background: inherit;
    box-shadow: none;
    padding: 0;
    margin: 0;
    cursor: inherit;
    -webkit-appearance: none;
  }

  .input__control::-webkit-search-decoration,
  .input__control::-webkit-search-cancel-button,
  .input__control::-webkit-search-results-button,
  .input__control::-webkit-search-results-decoration {
    -webkit-appearance: none;
  }

  .input__control:-webkit-autofill,
  .input__control:-webkit-autofill:hover,
  .input__control:-webkit-autofill:focus,
  .input__control:-webkit-autofill:active {
    box-shadow: 0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;
    -webkit-text-fill-color: var(--sl-color-primary-500);
    caret-color: var(--sl-input-color);
  }

  .input--filled .input__control:-webkit-autofill,
  .input--filled .input__control:-webkit-autofill:hover,
  .input--filled .input__control:-webkit-autofill:focus,
  .input--filled .input__control:-webkit-autofill:active {
    box-shadow: 0 0 0 var(--sl-input-height-large) var(--sl-input-filled-background-color) inset !important;
  }

  .input__control::placeholder {
    color: var(--sl-input-placeholder-color);
    user-select: none;
    -webkit-user-select: none;
  }

  .input:hover:not(.input--disabled) .input__control {
    color: var(--sl-input-color-hover);
  }

  .input__control:focus {
    outline: none;
  }

  .input__prefix,
  .input__suffix {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    cursor: default;
  }

  .input__prefix ::slotted(sl-icon),
  .input__suffix ::slotted(sl-icon) {
    color: var(--sl-input-icon-color);
  }

  /*
   * Size modifiers
   */

  .input--small {
    border-radius: var(--sl-input-border-radius-small);
    font-size: var(--sl-input-font-size-small);
    height: var(--sl-input-height-small);
  }

  .input--small .input__control {
    height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2);
    padding: 0 var(--sl-input-spacing-small);
  }

  .input--small .input__clear,
  .input--small .input__password-toggle {
    width: calc(1em + var(--sl-input-spacing-small) * 2);
  }

  .input--small .input__prefix ::slotted(*) {
    margin-inline-start: var(--sl-input-spacing-small);
  }

  .input--small .input__suffix ::slotted(*) {
    margin-inline-end: var(--sl-input-spacing-small);
  }

  .input--medium {
    border-radius: var(--sl-input-border-radius-medium);
    font-size: var(--sl-input-font-size-medium);
    height: var(--sl-input-height-medium);
  }

  .input--medium .input__control {
    height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);
    padding: 0 var(--sl-input-spacing-medium);
  }

  .input--medium .input__clear,
  .input--medium .input__password-toggle {
    width: calc(1em + var(--sl-input-spacing-medium) * 2);
  }

  .input--medium .input__prefix ::slotted(*) {
    margin-inline-start: var(--sl-input-spacing-medium);
  }

  .input--medium .input__suffix ::slotted(*) {
    margin-inline-end: var(--sl-input-spacing-medium);
  }

  .input--large {
    border-radius: var(--sl-input-border-radius-large);
    font-size: var(--sl-input-font-size-large);
    height: var(--sl-input-height-large);
  }

  .input--large .input__control {
    height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2);
    padding: 0 var(--sl-input-spacing-large);
  }

  .input--large .input__clear,
  .input--large .input__password-toggle {
    width: calc(1em + var(--sl-input-spacing-large) * 2);
  }

  .input--large .input__prefix ::slotted(*) {
    margin-inline-start: var(--sl-input-spacing-large);
  }

  .input--large .input__suffix ::slotted(*) {
    margin-inline-end: var(--sl-input-spacing-large);
  }

  /*
   * Pill modifier
   */

  .input--pill.input--small {
    border-radius: var(--sl-input-height-small);
  }

  .input--pill.input--medium {
    border-radius: var(--sl-input-height-medium);
  }

  .input--pill.input--large {
    border-radius: var(--sl-input-height-large);
  }

  /*
   * Clearable + Password Toggle
   */

  .input__clear,
  .input__password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: inherit;
    color: var(--sl-input-icon-color);
    border: none;
    background: none;
    padding: 0;
    transition: var(--sl-transition-fast) color;
    cursor: pointer;
  }

  .input__clear:hover,
  .input__password-toggle:hover {
    color: var(--sl-input-icon-color-hover);
  }

  .input__clear:focus,
  .input__password-toggle:focus {
    outline: none;
  }

  /* Don't show the browser's password toggle in Edge */
  ::-ms-reveal {
    display: none;
  }

  /* Hide the built-in number spinner */
  .input--no-spin-buttons input[type='number']::-webkit-outer-spin-button,
  .input--no-spin-buttons input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    display: none;
  }

  .input--no-spin-buttons input[type='number'] {
    -moz-appearance: textfield;
  }
`,za=class extends rr{constructor(){super(...arguments),this.formControlController=new an(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new hn(this,"help-text","label"),this.localize=new Vi(this),this.hasFocus=!1,this.title="",this.__numberInput=Object.assign(document.createElement("input"),{type:"number"}),this.__dateInput=Object.assign(document.createElement("input"),{type:"date"}),this.type="text",this.name="",this.value="",this.defaultValue="",this.size="medium",this.filled=!1,this.pill=!1,this.label="",this.helpText="",this.clearable=!1,this.disabled=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form="",this.required=!1,this.spellcheck=!0}get valueAsDate(){var e;return this.__dateInput.type=this.type,this.__dateInput.value=this.value,(null==(e=this.input)?void 0:e.valueAsDate)||this.__dateInput.valueAsDate}set valueAsDate(e){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=e,this.value=this.__dateInput.value}get valueAsNumber(){var e;return this.__numberInput.value=this.value,(null==(e=this.input)?void 0:e.valueAsNumber)||this.__numberInput.valueAsNumber}set valueAsNumber(e){this.__numberInput.valueAsNumber=e,this.value=this.__numberInput.value}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleChange(){this.value=this.input.value,this.emit("sl-change")}handleClearClick(e){e.preventDefault(),""!==this.value&&(this.value="",this.emit("sl-clear"),this.emit("sl-input"),this.emit("sl-change")),this.input.focus()}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sl-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleKeyDown(e){const t=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;"Enter"!==e.key||t||setTimeout((()=>{e.defaultPrevented||e.isComposing||this.formControlController.submit()}))}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,t,o="none"){this.input.setSelectionRange(e,t,o)}setRangeText(e,t,o,r="preserve"){const n=null!=t?t:this.input.selectionStart,c=null!=o?o:this.input.selectionEnd;this.input.setRangeText(e,n,c,r),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){const e=this.hasSlotController.test("label"),t=this.hasSlotController.test("help-text"),o=!!this.label||!!e,r=!!this.helpText||!!t,n=this.clearable&&!this.disabled&&!this.readonly&&("number"==typeof this.value||this.value.length>0);return vo`
      <div
        part="form-control"
        class=${vi({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-label":o,"form-control--has-help-text":r})}
      >
        <label
          part="form-control-label"
          class="form-control__label"
          for="input"
          aria-hidden=${o?"false":"true"}
        >
          <slot name="label">${this.label}</slot>
        </label>

        <div part="form-control-input" class="form-control-input">
          <div
            part="base"
            class=${vi({input:!0,"input--small":"small"===this.size,"input--medium":"medium"===this.size,"input--large":"large"===this.size,"input--pill":this.pill,"input--standard":!this.filled,"input--filled":this.filled,"input--disabled":this.disabled,"input--focused":this.hasFocus,"input--empty":!this.value,"input--no-spin-buttons":this.noSpinButtons})}
          >
            <span part="prefix" class="input__prefix">
              <slot name="prefix"></slot>
            </span>

            <input
              part="input"
              id="input"
              class="input__control"
              type=${"password"===this.type&&this.passwordVisible?"text":this.type}
              title=${this.title}
              name=${un(this.name)}
              ?disabled=${this.disabled}
              ?readonly=${this.readonly}
              ?required=${this.required}
              placeholder=${un(this.placeholder)}
              minlength=${un(this.minlength)}
              maxlength=${un(this.maxlength)}
              min=${un(this.min)}
              max=${un(this.max)}
              step=${un(this.step)}
              .value=${_n(this.value)}
              autocapitalize=${un(this.autocapitalize)}
              autocomplete=${un(this.autocomplete)}
              autocorrect=${un(this.autocorrect)}
              ?autofocus=${this.autofocus}
              spellcheck=${this.spellcheck}
              pattern=${un(this.pattern)}
              enterkeyhint=${un(this.enterkeyhint)}
              inputmode=${un(this.inputmode)}
              aria-describedby="help-text"
              @change=${this.handleChange}
              @input=${this.handleInput}
              @invalid=${this.handleInvalid}
              @keydown=${this.handleKeyDown}
              @focus=${this.handleFocus}
              @blur=${this.handleBlur}
            />

            ${n?vo`
                  <button
                    part="clear-button"
                    class="input__clear"
                    type="button"
                    aria-label=${this.localize.term("clearEntry")}
                    @click=${this.handleClearClick}
                    tabindex="-1"
                  >
                    <slot name="clear-icon">
                      <sl-icon name="x-circle-fill" library="system"></sl-icon>
                    </slot>
                  </button>
                `:""}
            ${this.passwordToggle&&!this.disabled?vo`
                  <button
                    part="password-toggle-button"
                    class="input__password-toggle"
                    type="button"
                    aria-label=${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}
                    @click=${this.handlePasswordToggle}
                    tabindex="-1"
                  >
                    ${this.passwordVisible?vo`
                          <slot name="show-password-icon">
                            <sl-icon name="eye-slash" library="system"></sl-icon>
                          </slot>
                        `:vo`
                          <slot name="hide-password-icon">
                            <sl-icon name="eye" library="system"></sl-icon>
                          </slot>
                        `}
                  </button>
                `:""}

            <span part="suffix" class="input__suffix">
              <slot name="suffix"></slot>
            </span>
          </div>
        </div>

        <div
          part="form-control-help-text"
          id="help-text"
          class="form-control__help-text"
          aria-hidden=${r?"false":"true"}
        >
          <slot name="help-text">${this.helpText}</slot>
        </div>
      </div>
    `}};za.styles=[Do,en,Ma],za.dependencies={"sl-icon":Ln},Vo([tr(".input__control")],za.prototype,"input",2),Vo([Qo()],za.prototype,"hasFocus",2),Vo([Xo()],za.prototype,"title",2),Vo([Xo({reflect:!0})],za.prototype,"type",2),Vo([Xo()],za.prototype,"name",2),Vo([Xo()],za.prototype,"value",2),Vo([Ji()],za.prototype,"defaultValue",2),Vo([Xo({reflect:!0})],za.prototype,"size",2),Vo([Xo({type:Boolean,reflect:!0})],za.prototype,"filled",2),Vo([Xo({type:Boolean,reflect:!0})],za.prototype,"pill",2),Vo([Xo()],za.prototype,"label",2),Vo([Xo({attribute:"help-text"})],za.prototype,"helpText",2),Vo([Xo({type:Boolean})],za.prototype,"clearable",2),Vo([Xo({type:Boolean,reflect:!0})],za.prototype,"disabled",2),Vo([Xo()],za.prototype,"placeholder",2),Vo([Xo({type:Boolean,reflect:!0})],za.prototype,"readonly",2),Vo([Xo({attribute:"password-toggle",type:Boolean})],za.prototype,"passwordToggle",2),Vo([Xo({attribute:"password-visible",type:Boolean})],za.prototype,"passwordVisible",2),Vo([Xo({attribute:"no-spin-buttons",type:Boolean})],za.prototype,"noSpinButtons",2),Vo([Xo({reflect:!0})],za.prototype,"form",2),Vo([Xo({type:Boolean,reflect:!0})],za.prototype,"required",2),Vo([Xo()],za.prototype,"pattern",2),Vo([Xo({type:Number})],za.prototype,"minlength",2),Vo([Xo({type:Number})],za.prototype,"maxlength",2),Vo([Xo()],za.prototype,"min",2),Vo([Xo()],za.prototype,"max",2),Vo([Xo()],za.prototype,"step",2),Vo([Xo()],za.prototype,"autocapitalize",2),Vo([Xo()],za.prototype,"autocorrect",2),Vo([Xo()],za.prototype,"autocomplete",2),Vo([Xo({type:Boolean})],za.prototype,"autofocus",2),Vo([Xo()],za.prototype,"enterkeyhint",2),Vo([Xo({type:Boolean,converter:{fromAttribute:e=>!(!e||"false"===e),toAttribute:e=>e?"true":"false"}})],za.prototype,"spellcheck",2),Vo([Xo()],za.prototype,"inputmode",2),Vo([ji("disabled",{waitUntilFirstUpdate:!0})],za.prototype,"handleDisabledChange",1),Vo([ji("step",{waitUntilFirstUpdate:!0})],za.prototype,"handleStepChange",1),Vo([ji("value",{waitUntilFirstUpdate:!0})],za.prototype,"handleValueChange",1);za.define("sl-input");Xi({tagName:"sl-input",elementClass:za,react:p,events:{onSlBlur:"sl-blur",onSlChange:"sl-change",onSlClear:"sl-clear",onSlFocus:"sl-focus",onSlInput:"sl-input",onSlInvalid:"sl-invalid"},displayName:"SlInput"});var Da=At`
  :host {
    display: block;
    position: relative;
    background: var(--sl-panel-background-color);
    border: solid var(--sl-panel-border-width) var(--sl-panel-border-color);
    border-radius: var(--sl-border-radius-medium);
    padding: var(--sl-spacing-x-small) 0;
    overflow: auto;
    overscroll-behavior: none;
  }

  ::slotted(sl-divider) {
    --spacing: var(--sl-spacing-x-small);
  }
`,Aa=class extends rr{connectedCallback(){super.connectedCallback(),this.setAttribute("role","menu")}handleClick(e){const t=["menuitem","menuitemcheckbox"],o=e.composedPath(),r=o.find((e=>{var o;return t.includes((null==(o=null==e?void 0:e.getAttribute)?void 0:o.call(e,"role"))||"")}));if(!r)return;if(o.find((e=>{var t;return"menu"===(null==(t=null==e?void 0:e.getAttribute)?void 0:t.call(e,"role"))}))!==this)return;const n=r;"checkbox"===n.type&&(n.checked=!n.checked),this.emit("sl-select",{detail:{item:n}})}handleKeyDown(e){if("Enter"===e.key||" "===e.key){const t=this.getCurrentItem();e.preventDefault(),e.stopPropagation(),null==t||t.click()}else if(["ArrowDown","ArrowUp","Home","End"].includes(e.key)){const t=this.getAllItems(),o=this.getCurrentItem();let r=o?t.indexOf(o):0;t.length>0&&(e.preventDefault(),e.stopPropagation(),"ArrowDown"===e.key?r++:"ArrowUp"===e.key?r--:"Home"===e.key?r=0:"End"===e.key&&(r=t.length-1),r<0&&(r=t.length-1),r>t.length-1&&(r=0),this.setCurrentItem(t[r]),t[r].focus())}}handleMouseDown(e){const t=e.target;this.isMenuItem(t)&&this.setCurrentItem(t)}handleSlotChange(){const e=this.getAllItems();e.length>0&&this.setCurrentItem(e[0])}isMenuItem(e){var t;return"sl-menu-item"===e.tagName.toLowerCase()||["menuitem","menuitemcheckbox","menuitemradio"].includes(null!=(t=e.getAttribute("role"))?t:"")}getAllItems(){return[...this.defaultSlot.assignedElements({flatten:!0})].filter((e=>!(e.inert||!this.isMenuItem(e))))}getCurrentItem(){return this.getAllItems().find((e=>"0"===e.getAttribute("tabindex")))}setCurrentItem(e){this.getAllItems().forEach((t=>{t.setAttribute("tabindex",t===e?"0":"-1")}))}render(){return vo`
      <slot
        @slotchange=${this.handleSlotChange}
        @click=${this.handleClick}
        @keydown=${this.handleKeyDown}
        @mousedown=${this.handleMouseDown}
      ></slot>
    `}};Aa.styles=[Do,Da],Vo([tr("slot")],Aa.prototype,"defaultSlot",2);Aa.define("sl-menu");Xi({tagName:"sl-menu",elementClass:Aa,react:p,events:{onSlSelect:"sl-select"},displayName:"SlMenu"});var $a=At`
  :host {
    display: inline-block;
  }

  .dropdown::part(popup) {
    z-index: var(--sl-z-index-dropdown);
  }

  .dropdown[data-current-placement^='top']::part(popup) {
    transform-origin: bottom;
  }

  .dropdown[data-current-placement^='bottom']::part(popup) {
    transform-origin: top;
  }

  .dropdown[data-current-placement^='left']::part(popup) {
    transform-origin: right;
  }

  .dropdown[data-current-placement^='right']::part(popup) {
    transform-origin: left;
  }

  .dropdown__trigger {
    display: block;
  }

  .dropdown__panel {
    font-family: var(--sl-font-sans);
    font-size: var(--sl-font-size-medium);
    font-weight: var(--sl-font-weight-normal);
    box-shadow: var(--sl-shadow-large);
    border-radius: var(--sl-border-radius-medium);
    pointer-events: none;
  }

  .dropdown--open .dropdown__panel {
    display: block;
    pointer-events: all;
  }

  /* When users slot a menu, make sure it conforms to the popup's auto-size */
  ::slotted(sl-menu) {
    max-width: var(--auto-size-available-width) !important;
    max-height: var(--auto-size-available-height) !important;
  }
`,Pa=new WeakMap;function Na(e){let t=Pa.get(e);return t||(t=window.getComputedStyle(e,null),Pa.set(e,t)),t}function La(e){const t=e.tagName.toLowerCase(),o=Number(e.getAttribute("tabindex"));if(e.hasAttribute("tabindex")&&(isNaN(o)||o<=-1))return!1;if(e.hasAttribute("disabled"))return!1;if(e.closest("[inert]"))return!1;if("input"===t&&"radio"===e.getAttribute("type")&&!e.hasAttribute("checked"))return!1;if(!function(e){if("function"==typeof e.checkVisibility)return e.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});const t=Na(e);return"hidden"!==t.visibility&&"none"!==t.display}(e))return!1;if(("audio"===t||"video"===t)&&e.hasAttribute("controls"))return!0;if(e.hasAttribute("tabindex"))return!0;if(e.hasAttribute("contenteditable")&&"false"!==e.getAttribute("contenteditable"))return!0;return!!["button","input","select","textarea","a","audio","video","summary","iframe"].includes(t)||function(e){const t=Na(e),{overflowY:o,overflowX:r}=t;return"scroll"===o||"scroll"===r||"auto"===o&&"auto"===r&&(e.scrollHeight>e.clientHeight&&"auto"===o||!(!(e.scrollWidth>e.clientWidth)||"auto"!==r))}(e)}function Ha(e){const t=new WeakMap,o=[];return function r(n){if(n instanceof Element){if(n.hasAttribute("inert")||n.closest("[inert]"))return;if(t.has(n))return;t.set(n,!0),!o.includes(n)&&La(n)&&o.push(n),n instanceof HTMLSlotElement&&function(e,t){var o;return(null==(o=e.getRootNode({composed:!0}))?void 0:o.host)!==t}(n,e)&&n.assignedElements({flatten:!0}).forEach((e=>{r(e)})),null!==n.shadowRoot&&"open"===n.shadowRoot.mode&&r(n.shadowRoot)}for(const e of n.children)r(e)}(e),o.sort(((e,t)=>{const o=Number(e.getAttribute("tabindex"))||0;return(Number(t.getAttribute("tabindex"))||0)-o}))}var Fa=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.open=!1,this.placement="bottom-start",this.disabled=!1,this.stayOpenOnSelect=!1,this.distance=0,this.skidding=0,this.hoist=!1,this.sync=void 0,this.handleKeyDown=e=>{this.open&&"Escape"===e.key&&(e.stopPropagation(),this.hide(),this.focusOnTrigger())},this.handleDocumentKeyDown=e=>{var t;if("Escape"===e.key&&this.open&&!this.closeWatcher)return e.stopPropagation(),this.focusOnTrigger(),void this.hide();if("Tab"===e.key){if(this.open&&"sl-menu-item"===(null==(t=document.activeElement)?void 0:t.tagName.toLowerCase()))return e.preventDefault(),this.hide(),void this.focusOnTrigger();setTimeout((()=>{var e,t,o;const r=(null==(e=this.containingElement)?void 0:e.getRootNode())instanceof ShadowRoot?null==(o=null==(t=document.activeElement)?void 0:t.shadowRoot)?void 0:o.activeElement:document.activeElement;this.containingElement&&(null==r?void 0:r.closest(this.containingElement.tagName.toLowerCase()))===this.containingElement||this.hide()}))}},this.handleDocumentMouseDown=e=>{const t=e.composedPath();this.containingElement&&!t.includes(this.containingElement)&&this.hide()},this.handlePanelSelect=e=>{const t=e.target;this.stayOpenOnSelect||"sl-menu"!==t.tagName.toLowerCase()||(this.hide(),this.focusOnTrigger())}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}focusOnTrigger(){const e=this.trigger.assignedElements({flatten:!0})[0];"function"==typeof(null==e?void 0:e.focus)&&e.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find((e=>"sl-menu"===e.tagName.toLowerCase()))}handleTriggerClick(){this.open?this.hide():(this.show(),this.focusOnTrigger())}async handleTriggerKeyDown(e){if([" ","Enter"].includes(e.key))return e.preventDefault(),void this.handleTriggerClick();const t=this.getMenu();if(t){const o=t.getAllItems(),r=o[0],n=o[o.length-1];["ArrowDown","ArrowUp","Home","End"].includes(e.key)&&(e.preventDefault(),this.open||(this.show(),await this.updateComplete),o.length>0&&this.updateComplete.then((()=>{"ArrowDown"!==e.key&&"Home"!==e.key||(t.setCurrentItem(r),r.focus()),"ArrowUp"!==e.key&&"End"!==e.key||(t.setCurrentItem(n),n.focus())})))}}handleTriggerKeyUp(e){" "===e.key&&e.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}updateAccessibleTrigger(){const e=this.trigger.assignedElements({flatten:!0}).find((e=>function(e){var t,o;const r=Ha(e);return{start:null!=(t=r[0])?t:null,end:null!=(o=r[r.length-1])?o:null}}(e).start));let t;if(e){switch(e.tagName.toLowerCase()){case"sl-button":case"sl-icon-button":t=e.button;break;default:t=e}t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded",this.open?"true":"false")}}async show(){if(!this.open)return this.open=!0,Oi(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Oi(this,"sl-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){var e;this.panel.addEventListener("sl-select",this.handlePanelSelect),"CloseWatcher"in window?(null==(e=this.closeWatcher)||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide(),this.focusOnTrigger()}):this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){var e;this.panel&&(this.panel.removeEventListener("sl-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),null==(e=this.closeWatcher)||e.destroy()}async handleOpenChange(){if(this.disabled)this.open=!1;else if(this.updateAccessibleTrigger(),this.open){this.emit("sl-show"),this.addOpenListeners(),await Di(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:e,options:t}=Ei(this,"dropdown.show",{dir:this.localize.dir()});await Ii(this.popup.popup,e,t),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),await Di(this);const{keyframes:e,options:t}=Ei(this,"dropdown.hide",{dir:this.localize.dir()});await Ii(this.popup.popup,e,t),this.panel.hidden=!0,this.popup.active=!1,this.emit("sl-after-hide")}}render(){return vo`
      <sl-popup
        part="base"
        exportparts="popup:base__popup"
        id="dropdown"
        placement=${this.placement}
        distance=${this.distance}
        skidding=${this.skidding}
        strategy=${this.hoist?"fixed":"absolute"}
        flip
        shift
        auto-size="vertical"
        auto-size-padding="10"
        sync=${un(this.sync?this.sync:void 0)}
        class=${vi({dropdown:!0,"dropdown--open":this.open})}
      >
        <slot
          name="trigger"
          slot="anchor"
          part="trigger"
          class="dropdown__trigger"
          @click=${this.handleTriggerClick}
          @keydown=${this.handleTriggerKeyDown}
          @keyup=${this.handleTriggerKeyUp}
          @slotchange=${this.handleTriggerSlotChange}
        ></slot>

        <div aria-hidden=${this.open?"false":"true"} aria-labelledby="dropdown">
          <slot part="panel" class="dropdown__panel"></slot>
        </div>
      </sl-popup>
    `}};Fa.styles=[Do,$a],Fa.dependencies={"sl-popup":xi},Vo([tr(".dropdown")],Fa.prototype,"popup",2),Vo([tr(".dropdown__trigger")],Fa.prototype,"trigger",2),Vo([tr(".dropdown__panel")],Fa.prototype,"panel",2),Vo([Xo({type:Boolean,reflect:!0})],Fa.prototype,"open",2),Vo([Xo({reflect:!0})],Fa.prototype,"placement",2),Vo([Xo({type:Boolean,reflect:!0})],Fa.prototype,"disabled",2),Vo([Xo({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],Fa.prototype,"stayOpenOnSelect",2),Vo([Xo({attribute:!1})],Fa.prototype,"containingElement",2),Vo([Xo({type:Number})],Fa.prototype,"distance",2),Vo([Xo({type:Number})],Fa.prototype,"skidding",2),Vo([Xo({type:Boolean})],Fa.prototype,"hoist",2),Vo([Xo({reflect:!0})],Fa.prototype,"sync",2),Vo([ji("open",{waitUntilFirstUpdate:!0})],Fa.prototype,"handleOpenChange",1),Ti("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Ti("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var Ba=At`
  :host {
    --grid-width: 280px;
    --grid-height: 200px;
    --grid-handle-size: 16px;
    --slider-height: 15px;
    --slider-handle-size: 17px;
    --swatch-size: 25px;

    display: inline-block;
  }

  .color-picker {
    width: var(--grid-width);
    font-family: var(--sl-font-sans);
    font-size: var(--sl-font-size-medium);
    font-weight: var(--sl-font-weight-normal);
    color: var(--color);
    background-color: var(--sl-panel-background-color);
    border-radius: var(--sl-border-radius-medium);
    user-select: none;
    -webkit-user-select: none;
  }

  .color-picker--inline {
    border: solid var(--sl-panel-border-width) var(--sl-panel-border-color);
  }

  .color-picker--inline:focus-visible {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .color-picker__grid {
    position: relative;
    height: var(--grid-height);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%),
      linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
    border-top-left-radius: var(--sl-border-radius-medium);
    border-top-right-radius: var(--sl-border-radius-medium);
    cursor: crosshair;
    forced-color-adjust: none;
  }

  .color-picker__grid-handle {
    position: absolute;
    width: var(--grid-handle-size);
    height: var(--grid-handle-size);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
    border: solid 2px white;
    margin-top: calc(var(--grid-handle-size) / -2);
    margin-left: calc(var(--grid-handle-size) / -2);
    transition: var(--sl-transition-fast) scale;
  }

  .color-picker__grid-handle--dragging {
    cursor: none;
    scale: 1.5;
  }

  .color-picker__grid-handle:focus-visible {
    outline: var(--sl-focus-ring);
  }

  .color-picker__controls {
    padding: var(--sl-spacing-small);
    display: flex;
    align-items: center;
  }

  .color-picker__sliders {
    flex: 1 1 auto;
  }

  .color-picker__slider {
    position: relative;
    height: var(--slider-height);
    border-radius: var(--sl-border-radius-pill);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
    forced-color-adjust: none;
  }

  .color-picker__slider:not(:last-of-type) {
    margin-bottom: var(--sl-spacing-small);
  }

  .color-picker__slider-handle {
    position: absolute;
    top: calc(50% - var(--slider-handle-size) / 2);
    width: var(--slider-handle-size);
    height: var(--slider-handle-size);
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
    margin-left: calc(var(--slider-handle-size) / -2);
  }

  .color-picker__slider-handle:focus-visible {
    outline: var(--sl-focus-ring);
  }

  .color-picker__hue {
    background-image: linear-gradient(
      to right,
      rgb(255, 0, 0) 0%,
      rgb(255, 255, 0) 17%,
      rgb(0, 255, 0) 33%,
      rgb(0, 255, 255) 50%,
      rgb(0, 0, 255) 67%,
      rgb(255, 0, 255) 83%,
      rgb(255, 0, 0) 100%
    );
  }

  .color-picker__alpha .color-picker__alpha-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
  }

  .color-picker__preview {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: var(--sl-border-radius-circle);
    background: none;
    margin-left: var(--sl-spacing-small);
    cursor: copy;
    forced-color-adjust: none;
  }

  .color-picker__preview:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);

    /* We use a custom property in lieu of currentColor because of https://bugs.webkit.org/show_bug.cgi?id=216780 */
    background-color: var(--preview-color);
  }

  .color-picker__preview:focus-visible {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .color-picker__preview-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: solid 1px rgba(0, 0, 0, 0.125);
  }

  .color-picker__preview-color--copied {
    animation: pulse 0.75s;
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 var(--sl-color-primary-500);
    }
    70% {
      box-shadow: 0 0 0 0.5rem transparent;
    }
    100% {
      box-shadow: 0 0 0 0 transparent;
    }
  }

  .color-picker__user-input {
    display: flex;
    padding: 0 var(--sl-spacing-small) var(--sl-spacing-small) var(--sl-spacing-small);
  }

  .color-picker__user-input sl-input {
    min-width: 0; /* fix input width in Safari */
    flex: 1 1 auto;
  }

  .color-picker__user-input sl-button-group {
    margin-left: var(--sl-spacing-small);
  }

  .color-picker__user-input sl-button {
    min-width: 3.25rem;
    max-width: 3.25rem;
    font-size: 1rem;
  }

  .color-picker__swatches {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-gap: 0.5rem;
    justify-items: center;
    border-top: solid 1px var(--sl-color-neutral-200);
    padding: var(--sl-spacing-small);
    forced-color-adjust: none;
  }

  .color-picker__swatch {
    position: relative;
    width: var(--swatch-size);
    height: var(--swatch-size);
    border-radius: var(--sl-border-radius-small);
  }

  .color-picker__swatch .color-picker__swatch-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: solid 1px rgba(0, 0, 0, 0.125);
    border-radius: inherit;
    cursor: pointer;
  }

  .color-picker__swatch:focus-visible {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .color-picker__transparent-bg {
    background-image: linear-gradient(45deg, var(--sl-color-neutral-300) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, var(--sl-color-neutral-300) 75%),
      linear-gradient(45deg, transparent 75%, var(--sl-color-neutral-300) 75%),
      linear-gradient(45deg, var(--sl-color-neutral-300) 25%, transparent 25%);
    background-size: 10px 10px;
    background-position:
      0 0,
      0 0,
      -5px -5px,
      5px 5px;
  }

  .color-picker--disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .color-picker--disabled .color-picker__grid,
  .color-picker--disabled .color-picker__grid-handle,
  .color-picker--disabled .color-picker__slider,
  .color-picker--disabled .color-picker__slider-handle,
  .color-picker--disabled .color-picker__preview,
  .color-picker--disabled .color-picker__swatch,
  .color-picker--disabled .color-picker__swatch-color {
    pointer-events: none;
  }

  /*
   * Color dropdown
   */

  .color-dropdown::part(panel) {
    max-height: none;
    background-color: var(--sl-panel-background-color);
    border: solid var(--sl-panel-border-width) var(--sl-panel-border-color);
    border-radius: var(--sl-border-radius-medium);
    overflow: visible;
  }

  .color-dropdown__trigger {
    display: inline-block;
    position: relative;
    background-color: transparent;
    border: none;
    cursor: pointer;
    forced-color-adjust: none;
  }

  .color-dropdown__trigger.color-dropdown__trigger--small {
    width: var(--sl-input-height-small);
    height: var(--sl-input-height-small);
    border-radius: var(--sl-border-radius-circle);
  }

  .color-dropdown__trigger.color-dropdown__trigger--medium {
    width: var(--sl-input-height-medium);
    height: var(--sl-input-height-medium);
    border-radius: var(--sl-border-radius-circle);
  }

  .color-dropdown__trigger.color-dropdown__trigger--large {
    width: var(--sl-input-height-large);
    height: var(--sl-input-height-large);
    border-radius: var(--sl-border-radius-circle);
  }

  .color-dropdown__trigger:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: currentColor;
    box-shadow:
      inset 0 0 0 2px var(--sl-input-border-color),
      inset 0 0 0 4px var(--sl-color-neutral-0);
  }

  .color-dropdown__trigger--empty:before {
    background-color: transparent;
  }

  .color-dropdown__trigger:focus-visible {
    outline: none;
  }

  .color-dropdown__trigger:focus-visible:not(.color-dropdown__trigger--disabled) {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .color-dropdown__trigger.color-dropdown__trigger--disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
`,Wa=class extends rr{constructor(){super(...arguments),this.formControlController=new an(this,{assumeInteractionOn:["click"]}),this.hasSlotController=new hn(this,"[default]","prefix","suffix"),this.localize=new Vi(this),this.hasFocus=!1,this.invalid=!1,this.title="",this.variant="default",this.size="medium",this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type="button",this.name="",this.value="",this.href="",this.rel="noreferrer noopener"}get validity(){return this.isButton()?this.button.validity:ln}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(){"submit"===this.type&&this.formControlController.submit(this),"reset"===this.type&&this.formControlController.reset(this)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(e){this.isButton()&&(this.button.setCustomValidity(e),this.formControlController.updateValidity())}render(){const e=this.isLink(),t=e?ns`a`:ns`button`;return ls`
      <${t}
        part="base"
        class=${vi({button:!0,"button--default":"default"===this.variant,"button--primary":"primary"===this.variant,"button--success":"success"===this.variant,"button--neutral":"neutral"===this.variant,"button--warning":"warning"===this.variant,"button--danger":"danger"===this.variant,"button--text":"text"===this.variant,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":"rtl"===this.localize.dir(),"button--has-label":this.hasSlotController.test("[default]"),"button--has-prefix":this.hasSlotController.test("prefix"),"button--has-suffix":this.hasSlotController.test("suffix")})}
        ?disabled=${un(e?void 0:this.disabled)}
        type=${un(e?void 0:this.type)}
        title=${this.title}
        name=${un(e?void 0:this.name)}
        value=${un(e?void 0:this.value)}
        href=${un(e&&!this.disabled?this.href:void 0)}
        target=${un(e?this.target:void 0)}
        download=${un(e?this.download:void 0)}
        rel=${un(e?this.rel:void 0)}
        role=${un(e?void 0:"button")}
        aria-disabled=${this.disabled?"true":"false"}
        tabindex=${this.disabled?"-1":"0"}
        @blur=${this.handleBlur}
        @focus=${this.handleFocus}
        @invalid=${this.isButton()?this.handleInvalid:null}
        @click=${this.handleClick}
      >
        <slot name="prefix" part="prefix" class="button__prefix"></slot>
        <slot part="label" class="button__label"></slot>
        <slot name="suffix" part="suffix" class="button__suffix"></slot>
        ${this.caret?ls` <sl-icon part="caret" class="button__caret" library="system" name="caret"></sl-icon> `:""}
        ${this.loading?ls`<sl-spinner part="spinner"></sl-spinner>`:""}
      </${t}>
    `}};function Ga(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");const o=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Ua(e){return Math.min(1,Math.max(0,e))}function Va(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ja(e){return Number(e)<=1?100*Number(e)+"%":e}function Za(e){return 1===e.length?"0"+e:String(e)}function qa(e,t,o){e=Ga(e,255),t=Ga(t,255),o=Ga(o,255);const r=Math.max(e,t,o),n=Math.min(e,t,o);let c=0,d=0;const h=(r+n)/2;if(r===n)d=0,c=0;else{const u=r-n;switch(d=h>.5?u/(2-r-n):u/(r+n),r){case e:c=(t-o)/u+(t<o?6:0);break;case t:c=(o-e)/u+2;break;case o:c=(e-t)/u+4}c/=6}return{h:c,s:d,l:h}}function Ya(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*o*(t-e):o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function Ka(e,t,o){e=Ga(e,255),t=Ga(t,255),o=Ga(o,255);const r=Math.max(e,t,o),n=Math.min(e,t,o);let c=0;const d=r,h=r-n,u=0===r?0:h/r;if(r===n)c=0;else{switch(r){case e:c=(t-o)/h+(t<o?6:0);break;case t:c=(o-e)/h+2;break;case o:c=(e-t)/h+4}c/=6}return{h:c,s:u,v:d}}function Xa(e,t,o,r){const n=[Za(Math.round(e).toString(16)),Za(Math.round(t).toString(16)),Za(Math.round(o).toString(16))];return r&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function Qa(e,t,o){let r=1-e/255,n=1-t/255,c=1-o/255,d=Math.min(r,n,c);return 1===d?(r=0,n=0,c=0):(r=(r-d)/(1-d)*100,n=(n-d)/(1-d)*100,c=(c-d)/(1-d)*100),d*=100,{c:Math.round(r),m:Math.round(n),y:Math.round(c),k:Math.round(d)}}function Ja(e){return Math.round(255*parseFloat(e)).toString(16)}function el(e){return tl(e)/255}function tl(e){return parseInt(e,16)}Wa.styles=[Do,Os],Wa.dependencies={"sl-icon":Ln,"sl-spinner":Bn},Vo([tr(".button")],Wa.prototype,"button",2),Vo([Qo()],Wa.prototype,"hasFocus",2),Vo([Qo()],Wa.prototype,"invalid",2),Vo([Xo()],Wa.prototype,"title",2),Vo([Xo({reflect:!0})],Wa.prototype,"variant",2),Vo([Xo({reflect:!0})],Wa.prototype,"size",2),Vo([Xo({type:Boolean,reflect:!0})],Wa.prototype,"caret",2),Vo([Xo({type:Boolean,reflect:!0})],Wa.prototype,"disabled",2),Vo([Xo({type:Boolean,reflect:!0})],Wa.prototype,"loading",2),Vo([Xo({type:Boolean,reflect:!0})],Wa.prototype,"outline",2),Vo([Xo({type:Boolean,reflect:!0})],Wa.prototype,"pill",2),Vo([Xo({type:Boolean,reflect:!0})],Wa.prototype,"circle",2),Vo([Xo()],Wa.prototype,"type",2),Vo([Xo()],Wa.prototype,"name",2),Vo([Xo()],Wa.prototype,"value",2),Vo([Xo()],Wa.prototype,"href",2),Vo([Xo()],Wa.prototype,"target",2),Vo([Xo()],Wa.prototype,"rel",2),Vo([Xo()],Wa.prototype,"download",2),Vo([Xo()],Wa.prototype,"form",2),Vo([Xo({attribute:"formaction"})],Wa.prototype,"formAction",2),Vo([Xo({attribute:"formenctype"})],Wa.prototype,"formEnctype",2),Vo([Xo({attribute:"formmethod"})],Wa.prototype,"formMethod",2),Vo([Xo({attribute:"formnovalidate",type:Boolean})],Wa.prototype,"formNoValidate",2),Vo([Xo({attribute:"formtarget"})],Wa.prototype,"formTarget",2),Vo([ji("disabled",{waitUntilFirstUpdate:!0})],Wa.prototype,"handleDisabledChange",1);const ol={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function rl(e){let t={r:0,g:0,b:0},o=1,r=null,n=null,c=null,d=!1,h=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;let t=!1;if(ol[e])e=ol[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};let o=al.rgb.exec(e);if(o)return{r:o[1],g:o[2],b:o[3]};if(o=al.rgba.exec(e),o)return{r:o[1],g:o[2],b:o[3],a:o[4]};if(o=al.hsl.exec(e),o)return{h:o[1],s:o[2],l:o[3]};if(o=al.hsla.exec(e),o)return{h:o[1],s:o[2],l:o[3],a:o[4]};if(o=al.hsv.exec(e),o)return{h:o[1],s:o[2],v:o[3]};if(o=al.hsva.exec(e),o)return{h:o[1],s:o[2],v:o[3],a:o[4]};if(o=al.cmyk.exec(e),o)return{c:o[1],m:o[2],y:o[3],k:o[4]};if(o=al.hex8.exec(e),o)return{r:tl(o[1]),g:tl(o[2]),b:tl(o[3]),a:el(o[4]),format:t?"name":"hex8"};if(o=al.hex6.exec(e),o)return{r:tl(o[1]),g:tl(o[2]),b:tl(o[3]),format:t?"name":"hex"};if(o=al.hex4.exec(e),o)return{r:tl(o[1]+o[1]),g:tl(o[2]+o[2]),b:tl(o[3]+o[3]),a:el(o[4]+o[4]),format:t?"name":"hex8"};if(o=al.hex3.exec(e),o)return{r:tl(o[1]+o[1]),g:tl(o[2]+o[2]),b:tl(o[3]+o[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(ll(e.r)&&ll(e.g)&&ll(e.b)?(t=function(e,t,o){return{r:255*Ga(e,255),g:255*Ga(t,255),b:255*Ga(o,255)}}(e.r,e.g,e.b),d=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):ll(e.h)&&ll(e.s)&&ll(e.v)?(r=ja(e.s),n=ja(e.v),t=function(e,t,o){e=6*Ga(e,360),t=Ga(t,100),o=Ga(o,100);const r=Math.floor(e),n=e-r,c=o*(1-t),d=o*(1-n*t),h=o*(1-(1-n)*t),u=r%6;return{r:255*[o,d,c,c,h,o][u],g:255*[h,o,o,d,c,c][u],b:255*[c,c,h,o,o,d][u]}}(e.h,r,n),d=!0,h="hsv"):ll(e.h)&&ll(e.s)&&ll(e.l)?(r=ja(e.s),c=ja(e.l),t=function(e,t,o){let r,n,c;if(e=Ga(e,360),t=Ga(t,100),o=Ga(o,100),0===t)n=o,c=o,r=o;else{const d=o<.5?o*(1+t):o+t-o*t,h=2*o-d;r=Ya(h,d,e+1/3),n=Ya(h,d,e),c=Ya(h,d,e-1/3)}return{r:255*r,g:255*n,b:255*c}}(e.h,r,c),d=!0,h="hsl"):ll(e.c)&&ll(e.m)&&ll(e.y)&&ll(e.k)&&(t=function(e,t,o,r){const n=r/100;return{r:255*(1-e/100)*(1-n),g:255*(1-t/100)*(1-n),b:255*(1-o/100)*(1-n)}}(e.c,e.m,e.y,e.k),d=!0,h="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=Va(o),{ok:d,format:e.format||h,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:o}}const il="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",nl="[\\s|\\(]+("+il+")[,|\\s]+("+il+")[,|\\s]+("+il+")\\s*\\)?",sl="[\\s|\\(]+("+il+")[,|\\s]+("+il+")[,|\\s]+("+il+")[,|\\s]+("+il+")\\s*\\)?",al={CSS_UNIT:new RegExp(il),rgb:new RegExp("rgb"+nl),rgba:new RegExp("rgba"+sl),hsl:new RegExp("hsl"+nl),hsla:new RegExp("hsla"+sl),hsv:new RegExp("hsv"+nl),hsva:new RegExp("hsva"+sl),cmyk:new RegExp("cmyk"+sl),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ll(e){return"number"==typeof e?!Number.isNaN(e):al.CSS_UNIT.test(e)}class TinyColor{constructor(e="",t={}){if(e instanceof TinyColor)return e;"number"==typeof e&&(e=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(e)),this.originalInput=e;const o=rl(e);this.originalInput=e,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=t.format??o.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3}getLuminance(){const e=this.toRgb();let t,o,r;const n=e.r/255,c=e.g/255,d=e.b/255;return t=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),o=c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4),r=d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4),.2126*t+.7152*o+.0722*r}getAlpha(){return this.a}setAlpha(e){return this.a=Va(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:e}=this.toHsl();return 0===e}toHsv(){const e=Ka(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}}toHsvString(){const e=Ka(this.r,this.g,this.b),t=Math.round(360*e.h),o=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?`hsv(${t}, ${o}%, ${r}%)`:`hsva(${t}, ${o}%, ${r}%, ${this.roundA})`}toHsl(){const e=qa(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}}toHslString(){const e=qa(this.r,this.g,this.b),t=Math.round(360*e.h),o=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?`hsl(${t}, ${o}%, ${r}%)`:`hsla(${t}, ${o}%, ${r}%, ${this.roundA})`}toHex(e=!1){return Xa(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return function(e,t,o,r,n){const c=[Za(Math.round(e).toString(16)),Za(Math.round(t).toString(16)),Za(Math.round(o).toString(16)),Za(Ja(r))];return n&&c[0].startsWith(c[0].charAt(1))&&c[1].startsWith(c[1].charAt(1))&&c[2].startsWith(c[2].charAt(1))&&c[3].startsWith(c[3].charAt(1))?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return 1===this.a?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const e=Math.round(this.r),t=Math.round(this.g),o=Math.round(this.b);return 1===this.a?`rgb(${e}, ${t}, ${o})`:`rgba(${e}, ${t}, ${o}, ${this.roundA})`}toPercentageRgb(){const e=e=>`${Math.round(100*Ga(e,255))}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){const e=e=>Math.round(100*Ga(e,255));return 1===this.a?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toCmyk(){return{...Qa(this.r,this.g,this.b)}}toCmykString(){const{c:e,m:t,y:o,k:r}=Qa(this.r,this.g,this.b);return`cmyk(${e}, ${t}, ${o}, ${r})`}toName(){if(0===this.a)return"transparent";if(this.a<1)return!1;const e="#"+Xa(this.r,this.g,this.b,!1);for(const[t,o]of Object.entries(ol))if(e===o)return t;return!1}toString(e){const t=Boolean(e);e=e??this.format;let o=!1;const r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(o=this.toRgbString()),"prgb"===e&&(o=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(o=this.toHexString()),"hex3"===e&&(o=this.toHexString(!0)),"hex4"===e&&(o=this.toHex8String(!0)),"hex8"===e&&(o=this.toHex8String()),"name"===e&&(o=this.toName()),"hsl"===e&&(o=this.toHslString()),"hsv"===e&&(o=this.toHsvString()),"cmyk"===e&&(o=this.toCmykString()),o||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new TinyColor(this.toString())}lighten(e=10){const t=this.toHsl();return t.l+=e/100,t.l=Ua(t.l),new TinyColor(t)}brighten(e=10){const t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-e/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-e/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-e/100*255))),new TinyColor(t)}darken(e=10){const t=this.toHsl();return t.l-=e/100,t.l=Ua(t.l),new TinyColor(t)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){const t=this.toHsl();return t.s-=e/100,t.s=Ua(t.s),new TinyColor(t)}saturate(e=10){const t=this.toHsl();return t.s+=e/100,t.s=Ua(t.s),new TinyColor(t)}greyscale(){return this.desaturate(100)}spin(e){const t=this.toHsl(),o=(t.h+e)%360;return t.h=o<0?360+o:o,new TinyColor(t)}mix(e,t=50){const o=this.toRgb(),r=new TinyColor(e).toRgb(),n=t/100,c={r:(r.r-o.r)*n+o.r,g:(r.g-o.g)*n+o.g,b:(r.b-o.b)*n+o.b,a:(r.a-o.a)*n+o.a};return new TinyColor(c)}analogous(e=6,t=30){const o=this.toHsl(),r=360/t,n=[this];for(o.h=(o.h-(r*e>>1)+720)%360;--e;)o.h=(o.h+r)%360,n.push(new TinyColor(o));return n}complement(){const e=this.toHsl();return e.h=(e.h+180)%360,new TinyColor(e)}monochromatic(e=6){const t=this.toHsv(),{h:o}=t,{s:r}=t;let{v:n}=t;const c=[],d=1/e;for(;e--;)c.push(new TinyColor({h:o,s:r,v:n})),n=(n+d)%1;return c}splitcomplement(){const e=this.toHsl(),{h:t}=e;return[this,new TinyColor({h:(t+72)%360,s:e.s,l:e.l}),new TinyColor({h:(t+216)%360,s:e.s,l:e.l})]}onBackground(e){const t=this.toRgb(),o=new TinyColor(e).toRgb(),r=t.a+o.a*(1-t.a);return new TinyColor({r:(t.r*t.a+o.r*o.a*(1-t.a))/r,g:(t.g*t.a+o.g*o.a*(1-t.a))/r,b:(t.b*t.a+o.b*o.a*(1-t.a))/r,a:r})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){const t=this.toHsl(),{h:o}=t,r=[this],n=360/e;for(let c=1;c<e;c++)r.push(new TinyColor({h:(o+c*n)%360,s:t.s,l:t.l}));return r}equals(e){const t=new TinyColor(e);return"cmyk"===this.format||"cmyk"===t.format?this.toCmykString()===t.toCmykString():this.toRgbString()===t.toRgbString()}}var cl="EyeDropper"in window,dl=class extends rr{constructor(){super(),this.formControlController=new an(this),this.isSafeValue=!1,this.localize=new Vi(this),this.hasFocus=!1,this.isDraggingGridHandle=!1,this.isEmpty=!1,this.inputValue="",this.hue=0,this.saturation=100,this.brightness=100,this.alpha=100,this.value="",this.defaultValue="",this.label="",this.format="hex",this.inline=!1,this.size="medium",this.noFormatToggle=!1,this.name="",this.disabled=!1,this.hoist=!1,this.opacity=!1,this.uppercase=!1,this.swatches="",this.form="",this.required=!1,this.handleFocusIn=()=>{this.hasFocus=!0,this.emit("sl-focus")},this.handleFocusOut=()=>{this.hasFocus=!1,this.emit("sl-blur")},this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut)}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.input.updateComplete.then((()=>{this.formControlController.updateValidity()}))}handleCopy(){this.input.select(),document.execCommand("copy"),this.previewButton.focus(),this.previewButton.classList.add("color-picker__preview-color--copied"),this.previewButton.addEventListener("animationend",(()=>{this.previewButton.classList.remove("color-picker__preview-color--copied")}))}handleFormatToggle(){const e=["hex","rgb","hsl","hsv"],t=(e.indexOf(this.format)+1)%e.length;this.format=e[t],this.setColor(this.value),this.emit("sl-change"),this.emit("sl-input")}handleAlphaDrag(e){const t=this.shadowRoot.querySelector(".color-picker__slider.color-picker__alpha"),o=t.querySelector(".color-picker__slider-handle"),{width:r}=t.getBoundingClientRect();let n=this.value,c=this.value;o.focus(),e.preventDefault(),Xn(t,{onMove:e=>{this.alpha=Vn(e/r*100,0,100),this.syncValues(),this.value!==c&&(c=this.value,this.emit("sl-input"))},onStop:()=>{this.value!==n&&(n=this.value,this.emit("sl-change"))},initialEvent:e})}handleHueDrag(e){const t=this.shadowRoot.querySelector(".color-picker__slider.color-picker__hue"),o=t.querySelector(".color-picker__slider-handle"),{width:r}=t.getBoundingClientRect();let n=this.value,c=this.value;o.focus(),e.preventDefault(),Xn(t,{onMove:e=>{this.hue=Vn(e/r*360,0,360),this.syncValues(),this.value!==c&&(c=this.value,this.emit("sl-input"))},onStop:()=>{this.value!==n&&(n=this.value,this.emit("sl-change"))},initialEvent:e})}handleGridDrag(e){const t=this.shadowRoot.querySelector(".color-picker__grid"),o=t.querySelector(".color-picker__grid-handle"),{width:r,height:n}=t.getBoundingClientRect();let c=this.value,d=this.value;o.focus(),e.preventDefault(),this.isDraggingGridHandle=!0,Xn(t,{onMove:(e,t)=>{this.saturation=Vn(e/r*100,0,100),this.brightness=Vn(100-t/n*100,0,100),this.syncValues(),this.value!==d&&(d=this.value,this.emit("sl-input"))},onStop:()=>{this.isDraggingGridHandle=!1,this.value!==c&&(c=this.value,this.emit("sl-change"))},initialEvent:e})}handleAlphaKeyDown(e){const t=e.shiftKey?10:1,o=this.value;"ArrowLeft"===e.key&&(e.preventDefault(),this.alpha=Vn(this.alpha-t,0,100),this.syncValues()),"ArrowRight"===e.key&&(e.preventDefault(),this.alpha=Vn(this.alpha+t,0,100),this.syncValues()),"Home"===e.key&&(e.preventDefault(),this.alpha=0,this.syncValues()),"End"===e.key&&(e.preventDefault(),this.alpha=100,this.syncValues()),this.value!==o&&(this.emit("sl-change"),this.emit("sl-input"))}handleHueKeyDown(e){const t=e.shiftKey?10:1,o=this.value;"ArrowLeft"===e.key&&(e.preventDefault(),this.hue=Vn(this.hue-t,0,360),this.syncValues()),"ArrowRight"===e.key&&(e.preventDefault(),this.hue=Vn(this.hue+t,0,360),this.syncValues()),"Home"===e.key&&(e.preventDefault(),this.hue=0,this.syncValues()),"End"===e.key&&(e.preventDefault(),this.hue=360,this.syncValues()),this.value!==o&&(this.emit("sl-change"),this.emit("sl-input"))}handleGridKeyDown(e){const t=e.shiftKey?10:1,o=this.value;"ArrowLeft"===e.key&&(e.preventDefault(),this.saturation=Vn(this.saturation-t,0,100),this.syncValues()),"ArrowRight"===e.key&&(e.preventDefault(),this.saturation=Vn(this.saturation+t,0,100),this.syncValues()),"ArrowUp"===e.key&&(e.preventDefault(),this.brightness=Vn(this.brightness+t,0,100),this.syncValues()),"ArrowDown"===e.key&&(e.preventDefault(),this.brightness=Vn(this.brightness-t,0,100),this.syncValues()),this.value!==o&&(this.emit("sl-change"),this.emit("sl-input"))}handleInputChange(e){const t=e.target,o=this.value;e.stopPropagation(),this.input.value?(this.setColor(t.value),t.value=this.value):this.value="",this.value!==o&&(this.emit("sl-change"),this.emit("sl-input"))}handleInputInput(e){this.formControlController.updateValidity(),e.stopPropagation()}handleInputKeyDown(e){if("Enter"===e.key){const e=this.value;this.input.value?(this.setColor(this.input.value),this.input.value=this.value,this.value!==e&&(this.emit("sl-change"),this.emit("sl-input")),setTimeout((()=>this.input.select()))):this.hue=0}}handleInputInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleTouchMove(e){e.preventDefault()}parseColor(e){const t=new TinyColor(e);if(!t.isValid)return null;const o=t.toHsl(),r={h:o.h,s:100*o.s,l:100*o.l,a:o.a},n=t.toRgb(),c=t.toHexString(),d=t.toHex8String(),h=t.toHsv(),u={h:h.h,s:100*h.s,v:100*h.v,a:h.a};return{hsl:{h:r.h,s:r.s,l:r.l,string:this.setLetterCase(`hsl(${Math.round(r.h)}, ${Math.round(r.s)}%, ${Math.round(r.l)}%)`)},hsla:{h:r.h,s:r.s,l:r.l,a:r.a,string:this.setLetterCase(`hsla(${Math.round(r.h)}, ${Math.round(r.s)}%, ${Math.round(r.l)}%, ${r.a.toFixed(2).toString()})`)},hsv:{h:u.h,s:u.s,v:u.v,string:this.setLetterCase(`hsv(${Math.round(u.h)}, ${Math.round(u.s)}%, ${Math.round(u.v)}%)`)},hsva:{h:u.h,s:u.s,v:u.v,a:u.a,string:this.setLetterCase(`hsva(${Math.round(u.h)}, ${Math.round(u.s)}%, ${Math.round(u.v)}%, ${u.a.toFixed(2).toString()})`)},rgb:{r:n.r,g:n.g,b:n.b,string:this.setLetterCase(`rgb(${Math.round(n.r)}, ${Math.round(n.g)}, ${Math.round(n.b)})`)},rgba:{r:n.r,g:n.g,b:n.b,a:n.a,string:this.setLetterCase(`rgba(${Math.round(n.r)}, ${Math.round(n.g)}, ${Math.round(n.b)}, ${n.a.toFixed(2).toString()})`)},hex:this.setLetterCase(c),hexa:this.setLetterCase(d)}}setColor(e){const t=this.parseColor(e);return null!==t&&(this.hue=t.hsva.h,this.saturation=t.hsva.s,this.brightness=t.hsva.v,this.alpha=this.opacity?100*t.hsva.a:100,this.syncValues(),!0)}setLetterCase(e){return"string"!=typeof e?"":this.uppercase?e.toUpperCase():e.toLowerCase()}async syncValues(){const e=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha/100})`);null!==e&&("hsl"===this.format?this.inputValue=this.opacity?e.hsla.string:e.hsl.string:"rgb"===this.format?this.inputValue=this.opacity?e.rgba.string:e.rgb.string:"hsv"===this.format?this.inputValue=this.opacity?e.hsva.string:e.hsv.string:this.inputValue=this.opacity?e.hexa:e.hex,this.isSafeValue=!0,this.value=this.inputValue,await this.updateComplete,this.isSafeValue=!1)}handleAfterHide(){this.previewButton.classList.remove("color-picker__preview-color--copied")}handleEyeDropper(){if(!cl)return;(new EyeDropper).open().then((e=>{const t=this.value;this.setColor(e.sRGBHex),this.value!==t&&(this.emit("sl-change"),this.emit("sl-input"))})).catch((()=>{}))}selectSwatch(e){const t=this.value;this.disabled||(this.setColor(e),this.value!==t&&(this.emit("sl-change"),this.emit("sl-input")))}getHexString(e,t,o,r=100){const n=new TinyColor(`hsva(${e}, ${t}%, ${o}%, ${r/100})`);return n.isValid?n.toHex8String():""}stopNestedEventPropagation(e){e.stopImmediatePropagation()}handleFormatChange(){this.syncValues()}handleOpacityChange(){this.alpha=100}handleValueChange(e,t){if(this.isEmpty=!t,t||(this.hue=0,this.saturation=0,this.brightness=100,this.alpha=100),!this.isSafeValue){const o=this.parseColor(t);null!==o?(this.inputValue=this.value,this.hue=o.hsva.h,this.saturation=o.hsva.s,this.brightness=o.hsva.v,this.alpha=100*o.hsva.a,this.syncValues()):this.inputValue=null!=e?e:""}}focus(e){this.inline?this.base.focus(e):this.trigger.focus(e)}blur(){var e;const t=this.inline?this.base:this.trigger;this.hasFocus&&(t.focus({preventScroll:!0}),t.blur()),(null==(e=this.dropdown)?void 0:e.open)&&this.dropdown.hide()}getFormattedValue(e="hex"){const t=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha/100})`);if(null===t)return"";switch(e){case"hex":return t.hex;case"hexa":return t.hexa;case"rgb":return t.rgb.string;case"rgba":return t.rgba.string;case"hsl":return t.hsl.string;case"hsla":return t.hsla.string;case"hsv":return t.hsv.string;case"hsva":return t.hsva.string;default:return""}}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.inline||this.validity.valid?this.input.reportValidity():(this.dropdown.show(),this.addEventListener("sl-after-show",(()=>this.input.reportValidity()),{once:!0}),this.disabled||this.formControlController.emitInvalidEvent(),!1)}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){const e=this.saturation,t=100-this.brightness,o=Array.isArray(this.swatches)?this.swatches:this.swatches.split(";").filter((e=>""!==e.trim())),r=vo`
      <div
        part="base"
        class=${vi({"color-picker":!0,"color-picker--inline":this.inline,"color-picker--disabled":this.disabled,"color-picker--focused":this.hasFocus})}
        aria-disabled=${this.disabled?"true":"false"}
        aria-labelledby="label"
        tabindex=${this.inline?"0":"-1"}
      >
        ${this.inline?vo`
              <sl-visually-hidden id="label">
                <slot name="label">${this.label}</slot>
              </sl-visually-hidden>
            `:null}

        <div
          part="grid"
          class="color-picker__grid"
          style=${Ws({backgroundColor:this.getHexString(this.hue,100,100)})}
          @pointerdown=${this.handleGridDrag}
          @touchmove=${this.handleTouchMove}
        >
          <span
            part="grid-handle"
            class=${vi({"color-picker__grid-handle":!0,"color-picker__grid-handle--dragging":this.isDraggingGridHandle})}
            style=${Ws({top:`${t}%`,left:`${e}%`,backgroundColor:this.getHexString(this.hue,this.saturation,this.brightness,this.alpha)})}
            role="application"
            aria-label="HSV"
            tabindex=${un(this.disabled?void 0:"0")}
            @keydown=${this.handleGridKeyDown}
          ></span>
        </div>

        <div class="color-picker__controls">
          <div class="color-picker__sliders">
            <div
              part="slider hue-slider"
              class="color-picker__hue color-picker__slider"
              @pointerdown=${this.handleHueDrag}
              @touchmove=${this.handleTouchMove}
            >
              <span
                part="slider-handle hue-slider-handle"
                class="color-picker__slider-handle"
                style=${Ws({left:(0===this.hue?0:100/(360/this.hue))+"%"})}
                role="slider"
                aria-label="hue"
                aria-orientation="horizontal"
                aria-valuemin="0"
                aria-valuemax="360"
                aria-valuenow=${`${Math.round(this.hue)}`}
                tabindex=${un(this.disabled?void 0:"0")}
                @keydown=${this.handleHueKeyDown}
              ></span>
            </div>

            ${this.opacity?vo`
                  <div
                    part="slider opacity-slider"
                    class="color-picker__alpha color-picker__slider color-picker__transparent-bg"
                    @pointerdown="${this.handleAlphaDrag}"
                    @touchmove=${this.handleTouchMove}
                  >
                    <div
                      class="color-picker__alpha-gradient"
                      style=${Ws({backgroundImage:`linear-gradient(\n                          to right,\n                          ${this.getHexString(this.hue,this.saturation,this.brightness,0)} 0%,\n                          ${this.getHexString(this.hue,this.saturation,this.brightness,100)} 100%\n                        )`})}
                    ></div>
                    <span
                      part="slider-handle opacity-slider-handle"
                      class="color-picker__slider-handle"
                      style=${Ws({left:`${this.alpha}%`})}
                      role="slider"
                      aria-label="alpha"
                      aria-orientation="horizontal"
                      aria-valuemin="0"
                      aria-valuemax="100"
                      aria-valuenow=${Math.round(this.alpha)}
                      tabindex=${un(this.disabled?void 0:"0")}
                      @keydown=${this.handleAlphaKeyDown}
                    ></span>
                  </div>
                `:""}
          </div>

          <button
            type="button"
            part="preview"
            class="color-picker__preview color-picker__transparent-bg"
            aria-label=${this.localize.term("copy")}
            style=${Ws({"--preview-color":this.getHexString(this.hue,this.saturation,this.brightness,this.alpha)})}
            @click=${this.handleCopy}
          ></button>
        </div>

        <div class="color-picker__user-input" aria-live="polite">
          <sl-input
            part="input"
            type="text"
            name=${this.name}
            autocomplete="off"
            autocorrect="off"
            autocapitalize="off"
            spellcheck="false"
            value=${this.isEmpty?"":this.inputValue}
            ?required=${this.required}
            ?disabled=${this.disabled}
            aria-label=${this.localize.term("currentValue")}
            @keydown=${this.handleInputKeyDown}
            @sl-change=${this.handleInputChange}
            @sl-input=${this.handleInputInput}
            @sl-invalid=${this.handleInputInvalid}
            @sl-blur=${this.stopNestedEventPropagation}
            @sl-focus=${this.stopNestedEventPropagation}
          ></sl-input>

          <sl-button-group>
            ${this.noFormatToggle?"":vo`
                  <sl-button
                    part="format-button"
                    aria-label=${this.localize.term("toggleColorFormat")}
                    exportparts="
                      base:format-button__base,
                      prefix:format-button__prefix,
                      label:format-button__label,
                      suffix:format-button__suffix,
                      caret:format-button__caret
                    "
                    @click=${this.handleFormatToggle}
                    @sl-blur=${this.stopNestedEventPropagation}
                    @sl-focus=${this.stopNestedEventPropagation}
                  >
                    ${this.setLetterCase(this.format)}
                  </sl-button>
                `}
            ${cl?vo`
                  <sl-button
                    part="eye-dropper-button"
                    exportparts="
                      base:eye-dropper-button__base,
                      prefix:eye-dropper-button__prefix,
                      label:eye-dropper-button__label,
                      suffix:eye-dropper-button__suffix,
                      caret:eye-dropper-button__caret
                    "
                    @click=${this.handleEyeDropper}
                    @sl-blur=${this.stopNestedEventPropagation}
                    @sl-focus=${this.stopNestedEventPropagation}
                  >
                    <sl-icon
                      library="system"
                      name="eyedropper"
                      label=${this.localize.term("selectAColorFromTheScreen")}
                    ></sl-icon>
                  </sl-button>
                `:""}
          </sl-button-group>
        </div>

        ${o.length>0?vo`
              <div part="swatches" class="color-picker__swatches">
                ${o.map((e=>{const t=this.parseColor(e);return t?vo`
                    <div
                      part="swatch"
                      class="color-picker__swatch color-picker__transparent-bg"
                      tabindex=${un(this.disabled?void 0:"0")}
                      role="button"
                      aria-label=${e}
                      @click=${()=>this.selectSwatch(e)}
                      @keydown=${e=>!this.disabled&&"Enter"===e.key&&this.setColor(t.hexa)}
                    >
                      <div
                        class="color-picker__swatch-color"
                        style=${Ws({backgroundColor:t.hexa})}
                      ></div>
                    </div>
                  `:""}))}
              </div>
            `:""}
      </div>
    `;return this.inline?r:vo`
      <sl-dropdown
        class="color-dropdown"
        aria-disabled=${this.disabled?"true":"false"}
        .containing-element=${this}
        ?disabled=${this.disabled}
        ?hoist=${this.hoist}
        @sl-after-hide=${this.handleAfterHide}
      >
        <button
          part="trigger"
          slot="trigger"
          class=${vi({"color-dropdown__trigger":!0,"color-dropdown__trigger--disabled":this.disabled,"color-dropdown__trigger--small":"small"===this.size,"color-dropdown__trigger--medium":"medium"===this.size,"color-dropdown__trigger--large":"large"===this.size,"color-dropdown__trigger--empty":this.isEmpty,"color-dropdown__trigger--focused":this.hasFocus,"color-picker__transparent-bg":!0})}
          style=${Ws({color:this.getHexString(this.hue,this.saturation,this.brightness,this.alpha)})}
          type="button"
        >
          <sl-visually-hidden>
            <slot name="label">${this.label}</slot>
          </sl-visually-hidden>
        </button>
        ${r}
      </sl-dropdown>
    `}};dl.styles=[Do,Ba],dl.dependencies={"sl-button-group":As,"sl-button":Wa,"sl-dropdown":Fa,"sl-icon":Ln,"sl-input":za,"sl-visually-hidden":Yn},Vo([tr('[part~="base"]')],dl.prototype,"base",2),Vo([tr('[part~="input"]')],dl.prototype,"input",2),Vo([tr(".color-dropdown")],dl.prototype,"dropdown",2),Vo([tr('[part~="preview"]')],dl.prototype,"previewButton",2),Vo([tr('[part~="trigger"]')],dl.prototype,"trigger",2),Vo([Qo()],dl.prototype,"hasFocus",2),Vo([Qo()],dl.prototype,"isDraggingGridHandle",2),Vo([Qo()],dl.prototype,"isEmpty",2),Vo([Qo()],dl.prototype,"inputValue",2),Vo([Qo()],dl.prototype,"hue",2),Vo([Qo()],dl.prototype,"saturation",2),Vo([Qo()],dl.prototype,"brightness",2),Vo([Qo()],dl.prototype,"alpha",2),Vo([Xo()],dl.prototype,"value",2),Vo([Ji()],dl.prototype,"defaultValue",2),Vo([Xo()],dl.prototype,"label",2),Vo([Xo()],dl.prototype,"format",2),Vo([Xo({type:Boolean,reflect:!0})],dl.prototype,"inline",2),Vo([Xo({reflect:!0})],dl.prototype,"size",2),Vo([Xo({attribute:"no-format-toggle",type:Boolean})],dl.prototype,"noFormatToggle",2),Vo([Xo()],dl.prototype,"name",2),Vo([Xo({type:Boolean,reflect:!0})],dl.prototype,"disabled",2),Vo([Xo({type:Boolean})],dl.prototype,"hoist",2),Vo([Xo({type:Boolean})],dl.prototype,"opacity",2),Vo([Xo({type:Boolean})],dl.prototype,"uppercase",2),Vo([Xo()],dl.prototype,"swatches",2),Vo([Xo({reflect:!0})],dl.prototype,"form",2),Vo([Xo({type:Boolean,reflect:!0})],dl.prototype,"required",2),Vo([Jo({passive:!1})],dl.prototype,"handleTouchMove",1),Vo([ji("format",{waitUntilFirstUpdate:!0})],dl.prototype,"handleFormatChange",1),Vo([ji("opacity",{waitUntilFirstUpdate:!0})],dl.prototype,"handleOpacityChange",1),Vo([ji("value")],dl.prototype,"handleValueChange",1);dl.define("sl-color-picker");Xi({tagName:"sl-color-picker",elementClass:dl,react:p,events:{onSlBlur:"sl-blur",onSlChange:"sl-change",onSlFocus:"sl-focus",onSlInput:"sl-input",onSlInvalid:"sl-invalid"},displayName:"SlColorPicker"});var hl=At`
  :host {
    --error-color: var(--sl-color-danger-600);
    --success-color: var(--sl-color-success-600);

    display: inline-block;
  }

  .copy-button__button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    border-radius: var(--sl-border-radius-medium);
    font-size: inherit;
    color: inherit;
    padding: var(--sl-spacing-x-small);
    cursor: pointer;
    transition: var(--sl-transition-x-fast) color;
  }

  .copy-button--success .copy-button__button {
    color: var(--success-color);
  }

  .copy-button--error .copy-button__button {
    color: var(--error-color);
  }

  .copy-button__button:focus-visible {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .copy-button__button[disabled] {
    opacity: 0.5;
    cursor: not-allowed !important;
  }

  slot {
    display: inline-flex;
  }
`,ul=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.isCopying=!1,this.status="rest",this.value="",this.from="",this.disabled=!1,this.copyLabel="",this.successLabel="",this.errorLabel="",this.feedbackDuration=1e3,this.tooltipPlacement="top",this.hoist=!1}async handleCopy(){if(this.disabled||this.isCopying)return;this.isCopying=!0;let e=this.value;if(this.from){const t=this.getRootNode(),o=this.from.includes("."),r=this.from.includes("[")&&this.from.includes("]");let n=this.from,c="";o?[n,c]=this.from.trim().split("."):r&&([n,c]=this.from.trim().replace(/\]$/,"").split("["));const d="getElementById"in t?t.getElementById(n):null;d?e=r?d.getAttribute(c)||"":o?d[c]||"":d.textContent||"":(this.showStatus("error"),this.emit("sl-error"))}if(e)try{await navigator.clipboard.writeText(e),this.showStatus("success"),this.emit("sl-copy",{detail:{value:e}})}catch(e){this.showStatus("error"),this.emit("sl-error")}else this.showStatus("error"),this.emit("sl-error")}async showStatus(e){const t=this.copyLabel||this.localize.term("copy"),o=this.successLabel||this.localize.term("copied"),r=this.errorLabel||this.localize.term("error"),n="success"===e?this.successIcon:this.errorIcon,c=Ei(this,"copy.in",{dir:"ltr"}),d=Ei(this,"copy.out",{dir:"ltr"});this.tooltip.content="success"===e?o:r,await this.copyIcon.animate(d.keyframes,d.options).finished,this.copyIcon.hidden=!0,this.status=e,n.hidden=!1,await n.animate(c.keyframes,c.options).finished,setTimeout((async()=>{await n.animate(d.keyframes,d.options).finished,n.hidden=!0,this.status="rest",this.copyIcon.hidden=!1,await this.copyIcon.animate(c.keyframes,c.options).finished,this.tooltip.content=t,this.isCopying=!1}),this.feedbackDuration)}render(){const e=this.copyLabel||this.localize.term("copy");return vo`
      <sl-tooltip
        class=${vi({"copy-button":!0,"copy-button--success":"success"===this.status,"copy-button--error":"error"===this.status})}
        content=${e}
        placement=${this.tooltipPlacement}
        ?disabled=${this.disabled}
        ?hoist=${this.hoist}
        exportparts="
          base:tooltip__base,
          base__popup:tooltip__base__popup,
          base__arrow:tooltip__base__arrow,
          body:tooltip__body
        "
      >
        <button
          class="copy-button__button"
          part="button"
          type="button"
          ?disabled=${this.disabled}
          @click=${this.handleCopy}
        >
          <slot part="copy-icon" name="copy-icon">
            <sl-icon library="system" name="copy"></sl-icon>
          </slot>
          <slot part="success-icon" name="success-icon" hidden>
            <sl-icon library="system" name="check"></sl-icon>
          </slot>
          <slot part="error-icon" name="error-icon" hidden>
            <sl-icon library="system" name="x-lg"></sl-icon>
          </slot>
        </button>
      </sl-tooltip>
    `}};ul.styles=[Do,hl],ul.dependencies={"sl-icon":Ln,"sl-tooltip":Zi},Vo([tr('slot[name="copy-icon"]')],ul.prototype,"copyIcon",2),Vo([tr('slot[name="success-icon"]')],ul.prototype,"successIcon",2),Vo([tr('slot[name="error-icon"]')],ul.prototype,"errorIcon",2),Vo([tr("sl-tooltip")],ul.prototype,"tooltip",2),Vo([Qo()],ul.prototype,"isCopying",2),Vo([Qo()],ul.prototype,"status",2),Vo([Xo()],ul.prototype,"value",2),Vo([Xo()],ul.prototype,"from",2),Vo([Xo({type:Boolean,reflect:!0})],ul.prototype,"disabled",2),Vo([Xo({attribute:"copy-label"})],ul.prototype,"copyLabel",2),Vo([Xo({attribute:"success-label"})],ul.prototype,"successLabel",2),Vo([Xo({attribute:"error-label"})],ul.prototype,"errorLabel",2),Vo([Xo({attribute:"feedback-duration",type:Number})],ul.prototype,"feedbackDuration",2),Vo([Xo({attribute:"tooltip-placement"})],ul.prototype,"tooltipPlacement",2),Vo([Xo({type:Boolean})],ul.prototype,"hoist",2),Ti("copy.in",{keyframes:[{scale:".25",opacity:".25"},{scale:"1",opacity:"1"}],options:{duration:100}}),Ti("copy.out",{keyframes:[{scale:"1",opacity:"1"},{scale:".25",opacity:"0"}],options:{duration:100}});ul.define("sl-copy-button");Xi({tagName:"sl-copy-button",elementClass:ul,react:p,events:{onSlCopy:"sl-copy",onSlError:"sl-error"},displayName:"SlCopyButton"});var pl=At`
  :host {
    display: block;
  }

  .details {
    border: solid 1px var(--sl-color-neutral-200);
    border-radius: var(--sl-border-radius-medium);
    background-color: var(--sl-color-neutral-0);
    overflow-anchor: none;
  }

  .details--disabled {
    opacity: 0.5;
  }

  .details__header {
    display: flex;
    align-items: center;
    border-radius: inherit;
    padding: var(--sl-spacing-medium);
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
  }

  .details__header::-webkit-details-marker {
    display: none;
  }

  .details__header:focus {
    outline: none;
  }

  .details__header:focus-visible {
    outline: var(--sl-focus-ring);
    outline-offset: calc(1px + var(--sl-focus-ring-offset));
  }

  .details--disabled .details__header {
    cursor: not-allowed;
  }

  .details--disabled .details__header:focus-visible {
    outline: none;
    box-shadow: none;
  }

  .details__summary {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
  }

  .details__summary-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    transition: var(--sl-transition-medium) rotate ease;
  }

  .details--open .details__summary-icon {
    rotate: 90deg;
  }

  .details--open.details--rtl .details__summary-icon {
    rotate: -90deg;
  }

  .details--open slot[name='expand-icon'],
  .details:not(.details--open) slot[name='collapse-icon'] {
    display: none;
  }

  .details__body {
    overflow: hidden;
  }

  .details__content {
    display: block;
    padding: var(--sl-spacing-medium);
  }
`,fl=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.open=!1,this.disabled=!1}firstUpdated(){this.body.style.height=this.open?"auto":"0",this.open&&(this.details.open=!0),this.detailsObserver=new MutationObserver((e=>{for(const t of e)"attributes"===t.type&&"open"===t.attributeName&&(this.details.open?this.show():this.hide())})),this.detailsObserver.observe(this.details,{attributes:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),null==(e=this.detailsObserver)||e.disconnect()}handleSummaryClick(e){e.preventDefault(),this.disabled||(this.open?this.hide():this.show(),this.header.focus())}handleSummaryKeyDown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.open?this.hide():this.show()),"ArrowUp"!==e.key&&"ArrowLeft"!==e.key||(e.preventDefault(),this.hide()),"ArrowDown"!==e.key&&"ArrowRight"!==e.key||(e.preventDefault(),this.show())}async handleOpenChange(){if(this.open){this.details.open=!0;if(this.emit("sl-show",{cancelable:!0}).defaultPrevented)return this.open=!1,void(this.details.open=!1);await Di(this.body);const{keyframes:e,options:t}=Ei(this,"details.show",{dir:this.localize.dir()});await Ii(this.body,Ai(e,this.body.scrollHeight),t),this.body.style.height="auto",this.emit("sl-after-show")}else{if(this.emit("sl-hide",{cancelable:!0}).defaultPrevented)return this.details.open=!0,void(this.open=!0);await Di(this.body);const{keyframes:e,options:t}=Ei(this,"details.hide",{dir:this.localize.dir()});await Ii(this.body,Ai(e,this.body.scrollHeight),t),this.body.style.height="auto",this.details.open=!1,this.emit("sl-after-hide")}}async show(){if(!this.open&&!this.disabled)return this.open=!0,Oi(this,"sl-after-show")}async hide(){if(this.open&&!this.disabled)return this.open=!1,Oi(this,"sl-after-hide")}render(){const e=this.matches(":dir(rtl)");return vo`
      <details
        part="base"
        class=${vi({details:!0,"details--open":this.open,"details--disabled":this.disabled,"details--rtl":e})}
      >
        <summary
          part="header"
          id="header"
          class="details__header"
          role="button"
          aria-expanded=${this.open?"true":"false"}
          aria-controls="content"
          aria-disabled=${this.disabled?"true":"false"}
          tabindex=${this.disabled?"-1":"0"}
          @click=${this.handleSummaryClick}
          @keydown=${this.handleSummaryKeyDown}
        >
          <slot name="summary" part="summary" class="details__summary">${this.summary}</slot>

          <span part="summary-icon" class="details__summary-icon">
            <slot name="expand-icon">
              <sl-icon library="system" name=${e?"chevron-left":"chevron-right"}></sl-icon>
            </slot>
            <slot name="collapse-icon">
              <sl-icon library="system" name=${e?"chevron-left":"chevron-right"}></sl-icon>
            </slot>
          </span>
        </summary>

        <div class="details__body" role="region" aria-labelledby="header">
          <slot part="content" id="content" class="details__content"></slot>
        </div>
      </details>
    `}};fl.styles=[Do,pl],fl.dependencies={"sl-icon":Ln},Vo([tr(".details")],fl.prototype,"details",2),Vo([tr(".details__header")],fl.prototype,"header",2),Vo([tr(".details__body")],fl.prototype,"body",2),Vo([tr(".details__expand-icon-slot")],fl.prototype,"expandIconSlot",2),Vo([Xo({type:Boolean,reflect:!0})],fl.prototype,"open",2),Vo([Xo()],fl.prototype,"summary",2),Vo([Xo({type:Boolean,reflect:!0})],fl.prototype,"disabled",2),Vo([ji("open",{waitUntilFirstUpdate:!0})],fl.prototype,"handleOpenChange",1),Ti("details.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:250,easing:"linear"}}),Ti("details.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:250,easing:"linear"}});fl.define("sl-details");Xi({tagName:"sl-details",elementClass:fl,react:p,events:{onSlShow:"sl-show",onSlAfterShow:"sl-after-show",onSlHide:"sl-hide",onSlAfterHide:"sl-after-hide"},displayName:"SlDetails"});function*ml(e=document.activeElement){var t,o,r,n,c;null!=e&&(yield e,"shadowRoot"in e&&e.shadowRoot&&"closed"!==e.shadowRoot.mode&&(yield*(t=ml(e.shadowRoot.activeElement),r=t[Bo("asyncIterator")],n=!1,c={},null==r?(r=t[Bo("iterator")](),o=e=>c[e]=t=>r[e](t)):(r=r.call(t),o=e=>c[e]=t=>{if(n){if(n=!1,"throw"===e)throw t;return t}return n=!0,{done:!1,value:new Zo(new Promise((o=>{var n=r[e](t);if(!(n instanceof Object))throw TypeError("Object expected");o(n)})),1)}}),c[Bo("iterator")]=()=>c,o("next"),"throw"in r?o("throw"):c.throw=e=>{throw e},"return"in r&&o("return"),c)))}var gl=[],bl=class{constructor(e){this.tabDirection="forward",this.handleFocusIn=()=>{this.isActive()&&this.checkFocus()},this.handleKeyDown=e=>{var t;if("Tab"!==e.key||this.isExternalActivated)return;if(!this.isActive())return;const o=[...ml()].pop();if(this.previousFocus=o,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;e.shiftKey?this.tabDirection="backward":this.tabDirection="forward";const r=Ha(this.element);let n=r.findIndex((e=>e===o));this.previousFocus=this.currentFocus;const c="forward"===this.tabDirection?1:-1;for(;;){n+c>=r.length?n=0:n+c<0?n=r.length-1:n+=c,this.previousFocus=this.currentFocus;const o=r[n];if("backward"===this.tabDirection&&this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;if(o&&this.possiblyHasTabbableChildren(o))return;e.preventDefault(),this.currentFocus=o,null==(t=this.currentFocus)||t.focus({preventScroll:!1});const d=[...ml()];if(d.includes(this.currentFocus)||!d.includes(this.previousFocus))break}setTimeout((()=>this.checkFocus()))},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=e,this.elementsWithTabbableControls=["iframe"]}activate(){gl.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){gl=gl.filter((e=>e!==this.element)),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return gl[gl.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const e=Ha(this.element);if(!this.element.matches(":focus-within")){const t=e[0],o=e[e.length-1],r="forward"===this.tabDirection?t:o;"function"==typeof(null==r?void 0:r.focus)&&(this.currentFocus=r,r.focus({preventScroll:!1}))}}}possiblyHasTabbableChildren(e){return this.elementsWithTabbableControls.includes(e.tagName.toLowerCase())||e.hasAttribute("controls")}},vl=At`
  :host {
    --width: 31rem;
    --header-spacing: var(--sl-spacing-large);
    --body-spacing: var(--sl-spacing-large);
    --footer-spacing: var(--sl-spacing-large);

    display: contents;
  }

  .dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--sl-z-index-dialog);
  }

  .dialog__panel {
    display: flex;
    flex-direction: column;
    z-index: 2;
    width: var(--width);
    max-width: calc(100% - var(--sl-spacing-2x-large));
    max-height: calc(100% - var(--sl-spacing-2x-large));
    background-color: var(--sl-panel-background-color);
    border-radius: var(--sl-border-radius-medium);
    box-shadow: var(--sl-shadow-x-large);
  }

  .dialog__panel:focus {
    outline: none;
  }

  /* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */
  @media screen and (max-width: 420px) {
    .dialog__panel {
      max-height: 80vh;
    }
  }

  .dialog--open .dialog__panel {
    display: flex;
    opacity: 1;
  }

  .dialog__header {
    flex: 0 0 auto;
    display: flex;
  }

  .dialog__title {
    flex: 1 1 auto;
    font: inherit;
    font-size: var(--sl-font-size-large);
    line-height: var(--sl-line-height-dense);
    padding: var(--header-spacing);
    margin: 0;
  }

  .dialog__header-actions {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: var(--sl-spacing-2x-small);
    padding: 0 var(--header-spacing);
  }

  .dialog__header-actions sl-icon-button,
  .dialog__header-actions ::slotted(sl-icon-button) {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    font-size: var(--sl-font-size-medium);
  }

  .dialog__body {
    flex: 1 1 auto;
    display: block;
    padding: var(--body-spacing);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dialog__footer {
    flex: 0 0 auto;
    text-align: right;
    padding: var(--footer-spacing);
  }

  .dialog__footer ::slotted(sl-button:not(:first-of-type)) {
    margin-inline-start: var(--sl-spacing-x-small);
  }

  .dialog:not(.dialog--has-footer) .dialog__footer {
    display: none;
  }

  .dialog__overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--sl-overlay-background-color);
  }

  @media (forced-colors: active) {
    .dialog__panel {
      border: solid 1px var(--sl-color-neutral-0);
    }
  }
`,yl=class extends rr{constructor(){super(...arguments),this.hasSlotController=new hn(this,"footer"),this.localize=new Vi(this),this.modal=new bl(this),this.open=!1,this.label="",this.noHeader=!1,this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.modal.isActive()&&this.open&&(e.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),_s(this))}disconnectedCallback(){var e;super.disconnectedCallback(),this.modal.deactivate(),xs(this),null==(e=this.closeWatcher)||e.destroy()}requestClose(e){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){const e=Ei(this,"dialog.denyClose",{dir:this.localize.dir()});Ii(this.panel,e.keyframes,e.options)}else this.hide()}addOpenListeners(){var e;"CloseWatcher"in window?(null==(e=this.closeWatcher)||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard")):document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){var e;null==(e=this.closeWatcher)||e.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),_s(this);const e=this.querySelector("[autofocus]");e&&e.removeAttribute("autofocus"),await Promise.all([Di(this.dialog),Di(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame((()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(e?e.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),e&&e.setAttribute("autofocus","")}));const t=Ei(this,"dialog.show",{dir:this.localize.dir()}),o=Ei(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([Ii(this.panel,t.keyframes,t.options),Ii(this.overlay,o.keyframes,o.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([Di(this.dialog),Di(this.overlay)]);const e=Ei(this,"dialog.hide",{dir:this.localize.dir()}),t=Ei(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([Ii(this.overlay,t.keyframes,t.options).then((()=>{this.overlay.hidden=!0})),Ii(this.panel,e.keyframes,e.options).then((()=>{this.panel.hidden=!0}))]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,xs(this);const o=this.originalTrigger;"function"==typeof(null==o?void 0:o.focus)&&setTimeout((()=>o.focus())),this.emit("sl-after-hide")}}async show(){if(!this.open)return this.open=!0,Oi(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Oi(this,"sl-after-hide")}render(){return vo`
      <div
        part="base"
        class=${vi({dialog:!0,"dialog--open":this.open,"dialog--has-footer":this.hasSlotController.test("footer")})}
      >
        <div part="overlay" class="dialog__overlay" @click=${()=>this.requestClose("overlay")} tabindex="-1"></div>

        <div
          part="panel"
          class="dialog__panel"
          role="dialog"
          aria-modal="true"
          aria-hidden=${this.open?"false":"true"}
          aria-label=${un(this.noHeader?this.label:void 0)}
          aria-labelledby=${un(this.noHeader?void 0:"title")}
          tabindex="-1"
        >
          ${this.noHeader?"":vo`
                <header part="header" class="dialog__header">
                  <h2 part="title" class="dialog__title" id="title">
                    <slot name="label"> ${this.label.length>0?this.label:String.fromCharCode(65279)} </slot>
                  </h2>
                  <div part="header-actions" class="dialog__header-actions">
                    <slot name="header-actions"></slot>
                    <sl-icon-button
                      part="close-button"
                      exportparts="base:close-button__base"
                      class="dialog__close"
                      name="x-lg"
                      label=${this.localize.term("close")}
                      library="system"
                      @click="${()=>this.requestClose("close-button")}"
                    ></sl-icon-button>
                  </div>
                </header>
              `}
          ${""}
          <div part="body" class="dialog__body" tabindex="-1"><slot></slot></div>

          <footer part="footer" class="dialog__footer">
            <slot name="footer"></slot>
          </footer>
        </div>
      </div>
    `}};yl.styles=[Do,vl],yl.dependencies={"sl-icon-button":cs},Vo([tr(".dialog")],yl.prototype,"dialog",2),Vo([tr(".dialog__panel")],yl.prototype,"panel",2),Vo([tr(".dialog__overlay")],yl.prototype,"overlay",2),Vo([Xo({type:Boolean,reflect:!0})],yl.prototype,"open",2),Vo([Xo({reflect:!0})],yl.prototype,"label",2),Vo([Xo({attribute:"no-header",type:Boolean,reflect:!0})],yl.prototype,"noHeader",2),Vo([ji("open",{waitUntilFirstUpdate:!0})],yl.prototype,"handleOpenChange",1),Ti("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Ti("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),Ti("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),Ti("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),Ti("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});yl.define("sl-dialog");Xi({tagName:"sl-dialog",elementClass:yl,react:p,events:{onSlShow:"sl-show",onSlAfterShow:"sl-after-show",onSlHide:"sl-hide",onSlAfterHide:"sl-after-hide",onSlInitialFocus:"sl-initial-focus",onSlRequestClose:"sl-request-close"},displayName:"SlDialog"});var wl=At`
  :host {
    --size: 25rem;
    --header-spacing: var(--sl-spacing-large);
    --body-spacing: var(--sl-spacing-large);
    --footer-spacing: var(--sl-spacing-large);

    display: contents;
  }

  .drawer {
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
  }

  .drawer--contained {
    position: absolute;
    z-index: initial;
  }

  .drawer--fixed {
    position: fixed;
    z-index: var(--sl-z-index-drawer);
  }

  .drawer__panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    background-color: var(--sl-panel-background-color);
    box-shadow: var(--sl-shadow-x-large);
    overflow: auto;
    pointer-events: all;
  }

  .drawer__panel:focus {
    outline: none;
  }

  .drawer--top .drawer__panel {
    top: 0;
    inset-inline-end: auto;
    bottom: auto;
    inset-inline-start: 0;
    width: 100%;
    height: var(--size);
  }

  .drawer--end .drawer__panel {
    top: 0;
    inset-inline-end: 0;
    bottom: auto;
    inset-inline-start: auto;
    width: var(--size);
    height: 100%;
  }

  .drawer--bottom .drawer__panel {
    top: auto;
    inset-inline-end: auto;
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    height: var(--size);
  }

  .drawer--start .drawer__panel {
    top: 0;
    inset-inline-end: auto;
    bottom: auto;
    inset-inline-start: 0;
    width: var(--size);
    height: 100%;
  }

  .drawer__header {
    display: flex;
  }

  .drawer__title {
    flex: 1 1 auto;
    font: inherit;
    font-size: var(--sl-font-size-large);
    line-height: var(--sl-line-height-dense);
    padding: var(--header-spacing);
    margin: 0;
  }

  .drawer__header-actions {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: var(--sl-spacing-2x-small);
    padding: 0 var(--header-spacing);
  }

  .drawer__header-actions sl-icon-button,
  .drawer__header-actions ::slotted(sl-icon-button) {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    font-size: var(--sl-font-size-medium);
  }

  .drawer__body {
    flex: 1 1 auto;
    display: block;
    padding: var(--body-spacing);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .drawer__footer {
    text-align: right;
    padding: var(--footer-spacing);
  }

  .drawer__footer ::slotted(sl-button:not(:last-of-type)) {
    margin-inline-end: var(--sl-spacing-x-small);
  }

  .drawer:not(.drawer--has-footer) .drawer__footer {
    display: none;
  }

  .drawer__overlay {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--sl-overlay-background-color);
    pointer-events: all;
  }

  .drawer--contained .drawer__overlay {
    display: none;
  }

  @media (forced-colors: active) {
    .drawer__panel {
      border: solid 1px var(--sl-color-neutral-0);
    }
  }
`;function _l(e){return e.charAt(0).toUpperCase()+e.slice(1)}var xl=class extends rr{constructor(){super(...arguments),this.hasSlotController=new hn(this,"footer"),this.localize=new Vi(this),this.modal=new bl(this),this.open=!1,this.label="",this.placement="end",this.contained=!1,this.noHeader=!1,this.handleDocumentKeyDown=e=>{this.contained||"Escape"===e.key&&this.modal.isActive()&&this.open&&(e.stopImmediatePropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),_s(this)))}disconnectedCallback(){var e;super.disconnectedCallback(),xs(this),null==(e=this.closeWatcher)||e.destroy()}requestClose(e){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){const e=Ei(this,"drawer.denyClose",{dir:this.localize.dir()});Ii(this.panel,e.keyframes,e.options)}else this.hide()}addOpenListeners(){var e;"CloseWatcher"in window?(null==(e=this.closeWatcher)||e.destroy(),this.contained||(this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard"))):document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){var e;document.removeEventListener("keydown",this.handleDocumentKeyDown),null==(e=this.closeWatcher)||e.destroy()}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),_s(this));const e=this.querySelector("[autofocus]");e&&e.removeAttribute("autofocus"),await Promise.all([Di(this.drawer),Di(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame((()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(e?e.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),e&&e.setAttribute("autofocus","")}));const t=Ei(this,`drawer.show${_l(this.placement)}`,{dir:this.localize.dir()}),o=Ei(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([Ii(this.panel,t.keyframes,t.options),Ii(this.overlay,o.keyframes,o.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),xs(this)),await Promise.all([Di(this.drawer),Di(this.overlay)]);const e=Ei(this,`drawer.hide${_l(this.placement)}`,{dir:this.localize.dir()}),t=Ei(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([Ii(this.overlay,t.keyframes,t.options).then((()=>{this.overlay.hidden=!0})),Ii(this.panel,e.keyframes,e.options).then((()=>{this.panel.hidden=!0}))]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;const o=this.originalTrigger;"function"==typeof(null==o?void 0:o.focus)&&setTimeout((()=>o.focus())),this.emit("sl-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),_s(this)),this.open&&this.contained&&(this.modal.deactivate(),xs(this))}async show(){if(!this.open)return this.open=!0,Oi(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Oi(this,"sl-after-hide")}render(){return vo`
      <div
        part="base"
        class=${vi({drawer:!0,"drawer--open":this.open,"drawer--top":"top"===this.placement,"drawer--end":"end"===this.placement,"drawer--bottom":"bottom"===this.placement,"drawer--start":"start"===this.placement,"drawer--contained":this.contained,"drawer--fixed":!this.contained,"drawer--rtl":"rtl"===this.localize.dir(),"drawer--has-footer":this.hasSlotController.test("footer")})}
      >
        <div part="overlay" class="drawer__overlay" @click=${()=>this.requestClose("overlay")} tabindex="-1"></div>

        <div
          part="panel"
          class="drawer__panel"
          role="dialog"
          aria-modal="true"
          aria-hidden=${this.open?"false":"true"}
          aria-label=${un(this.noHeader?this.label:void 0)}
          aria-labelledby=${un(this.noHeader?void 0:"title")}
          tabindex="0"
        >
          ${this.noHeader?"":vo`
                <header part="header" class="drawer__header">
                  <h2 part="title" class="drawer__title" id="title">
                    <!-- If there's no label, use an invisible character to prevent the header from collapsing -->
                    <slot name="label"> ${this.label.length>0?this.label:String.fromCharCode(65279)} </slot>
                  </h2>
                  <div part="header-actions" class="drawer__header-actions">
                    <slot name="header-actions"></slot>
                    <sl-icon-button
                      part="close-button"
                      exportparts="base:close-button__base"
                      class="drawer__close"
                      name="x-lg"
                      label=${this.localize.term("close")}
                      library="system"
                      @click=${()=>this.requestClose("close-button")}
                    ></sl-icon-button>
                  </div>
                </header>
              `}

          <slot part="body" class="drawer__body"></slot>

          <footer part="footer" class="drawer__footer">
            <slot name="footer"></slot>
          </footer>
        </div>
      </div>
    `}};xl.styles=[Do,wl],xl.dependencies={"sl-icon-button":cs},Vo([tr(".drawer")],xl.prototype,"drawer",2),Vo([tr(".drawer__panel")],xl.prototype,"panel",2),Vo([tr(".drawer__overlay")],xl.prototype,"overlay",2),Vo([Xo({type:Boolean,reflect:!0})],xl.prototype,"open",2),Vo([Xo({reflect:!0})],xl.prototype,"label",2),Vo([Xo({reflect:!0})],xl.prototype,"placement",2),Vo([Xo({type:Boolean,reflect:!0})],xl.prototype,"contained",2),Vo([Xo({attribute:"no-header",type:Boolean,reflect:!0})],xl.prototype,"noHeader",2),Vo([ji("open",{waitUntilFirstUpdate:!0})],xl.prototype,"handleOpenChange",1),Vo([ji("contained",{waitUntilFirstUpdate:!0})],xl.prototype,"handleNoModalChange",1),Ti("drawer.showTop",{keyframes:[{opacity:0,translate:"0 -100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}}),Ti("drawer.hideTop",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 -100%"}],options:{duration:250,easing:"ease"}}),Ti("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),Ti("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}}),Ti("drawer.showBottom",{keyframes:[{opacity:0,translate:"0 100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}}),Ti("drawer.hideBottom",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 100%"}],options:{duration:250,easing:"ease"}}),Ti("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),Ti("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}}),Ti("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}}),Ti("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),Ti("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});xl.define("sl-drawer");Xi({tagName:"sl-drawer",elementClass:xl,react:p,events:{onSlShow:"sl-show",onSlAfterShow:"sl-after-show",onSlHide:"sl-hide",onSlAfterHide:"sl-after-hide",onSlInitialFocus:"sl-initial-focus",onSlRequestClose:"sl-request-close"},displayName:"SlDrawer"});var Cl=At`
  :host {
    --color: var(--sl-panel-border-color);
    --width: var(--sl-panel-border-width);
    --spacing: var(--sl-spacing-medium);
  }

  :host(:not([vertical])) {
    display: block;
    border-top: solid var(--width) var(--color);
    margin: var(--spacing) 0;
  }

  :host([vertical]) {
    display: inline-block;
    height: 100%;
    border-left: solid var(--width) var(--color);
    margin: 0 var(--spacing);
  }
`,kl=class extends rr{constructor(){super(...arguments),this.vertical=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.vertical?"vertical":"horizontal")}};kl.styles=[Do,Cl],Vo([Xo({type:Boolean,reflect:!0})],kl.prototype,"vertical",2),Vo([ji("vertical")],kl.prototype,"handleVerticalChange",1);kl.define("sl-divider");Xi({tagName:"sl-divider",elementClass:kl,react:p,events:{},displayName:"SlDivider"});Fa.define("sl-dropdown");Xi({tagName:"sl-dropdown",elementClass:Fa,react:p,events:{onSlShow:"sl-show",onSlAfterShow:"sl-after-show",onSlHide:"sl-hide",onSlAfterHide:"sl-after-hide"},displayName:"SlDropdown"});var Sl=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.date=new Date,this.hourFormat="auto"}render(){const e=new Date(this.date),t="auto"===this.hourFormat?void 0:"12"===this.hourFormat;if(!isNaN(e.getMilliseconds()))return vo`
      <time datetime=${e.toISOString()}>
        ${this.localize.date(e,{weekday:this.weekday,era:this.era,year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,timeZoneName:this.timeZoneName,timeZone:this.timeZone,hour12:t})}
      </time>
    `}};Vo([Xo()],Sl.prototype,"date",2),Vo([Xo()],Sl.prototype,"weekday",2),Vo([Xo()],Sl.prototype,"era",2),Vo([Xo()],Sl.prototype,"year",2),Vo([Xo()],Sl.prototype,"month",2),Vo([Xo()],Sl.prototype,"day",2),Vo([Xo()],Sl.prototype,"hour",2),Vo([Xo()],Sl.prototype,"minute",2),Vo([Xo()],Sl.prototype,"second",2),Vo([Xo({attribute:"time-zone-name"})],Sl.prototype,"timeZoneName",2),Vo([Xo({attribute:"time-zone"})],Sl.prototype,"timeZone",2),Vo([Xo({attribute:"hour-format"})],Sl.prototype,"hourFormat",2);Sl.define("sl-format-date");Xi({tagName:"sl-format-date",elementClass:Sl,react:p,events:{},displayName:"SlFormatDate"});Wa.define("sl-button");Xi({tagName:"sl-button",elementClass:Wa,react:p,events:{onSlBlur:"sl-blur",onSlFocus:"sl-focus",onSlInvalid:"sl-invalid"},displayName:"SlButton"});var Rl=At`
  :host {
    display: inline-flex;
  }

  .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-family: var(--sl-font-sans);
    font-size: var(--sl-font-size-small);
    font-weight: var(--sl-font-weight-semibold);
    color: var(--sl-color-neutral-600);
    line-height: var(--sl-line-height-normal);
    white-space: nowrap;
  }

  .breadcrumb-item__label {
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    border-radius: var(--sl-border-radius-medium);
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: var(--sl-transition-fast) --color;
  }

  :host(:not(:last-of-type)) .breadcrumb-item__label {
    color: var(--sl-color-primary-600);
  }

  :host(:not(:last-of-type)) .breadcrumb-item__label:hover {
    color: var(--sl-color-primary-500);
  }

  :host(:not(:last-of-type)) .breadcrumb-item__label:active {
    color: var(--sl-color-primary-600);
  }

  .breadcrumb-item__label:focus {
    outline: none;
  }

  .breadcrumb-item__label:focus-visible {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .breadcrumb-item__prefix,
  .breadcrumb-item__suffix {
    display: none;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  .breadcrumb-item--has-prefix .breadcrumb-item__prefix {
    display: inline-flex;
    margin-inline-end: var(--sl-spacing-x-small);
  }

  .breadcrumb-item--has-suffix .breadcrumb-item__suffix {
    display: inline-flex;
    margin-inline-start: var(--sl-spacing-x-small);
  }

  :host(:last-of-type) .breadcrumb-item__separator {
    display: none;
  }

  .breadcrumb-item__separator {
    display: inline-flex;
    align-items: center;
    margin: 0 var(--sl-spacing-x-small);
    user-select: none;
    -webkit-user-select: none;
  }
`,Tl=class extends rr{constructor(){super(...arguments),this.hasSlotController=new hn(this,"prefix","suffix"),this.renderType="button",this.rel="noreferrer noopener"}setRenderType(){const e=this.defaultSlot.assignedElements({flatten:!0}).filter((e=>"sl-dropdown"===e.tagName.toLowerCase())).length>0;this.href?this.renderType="link":this.renderType=e?"dropdown":"button"}hrefChanged(){this.setRenderType()}handleSlotChange(){this.setRenderType()}render(){return vo`
      <div
        part="base"
        class=${vi({"breadcrumb-item":!0,"breadcrumb-item--has-prefix":this.hasSlotController.test("prefix"),"breadcrumb-item--has-suffix":this.hasSlotController.test("suffix")})}
      >
        <span part="prefix" class="breadcrumb-item__prefix">
          <slot name="prefix"></slot>
        </span>

        ${"link"===this.renderType?vo`
              <a
                part="label"
                class="breadcrumb-item__label breadcrumb-item__label--link"
                href="${this.href}"
                target="${un(this.target?this.target:void 0)}"
                rel=${un(this.target?this.rel:void 0)}
              >
                <slot @slotchange=${this.handleSlotChange}></slot>
              </a>
            `:""}
        ${"button"===this.renderType?vo`
              <button part="label" type="button" class="breadcrumb-item__label breadcrumb-item__label--button">
                <slot @slotchange=${this.handleSlotChange}></slot>
              </button>
            `:""}
        ${"dropdown"===this.renderType?vo`
              <div part="label" class="breadcrumb-item__label breadcrumb-item__label--drop-down">
                <slot @slotchange=${this.handleSlotChange}></slot>
              </div>
            `:""}

        <span part="suffix" class="breadcrumb-item__suffix">
          <slot name="suffix"></slot>
        </span>

        <span part="separator" class="breadcrumb-item__separator" aria-hidden="true">
          <slot name="separator"></slot>
        </span>
      </div>
    `}};Tl.styles=[Do,Rl],Vo([tr("slot:not([name])")],Tl.prototype,"defaultSlot",2),Vo([Qo()],Tl.prototype,"renderType",2),Vo([Xo()],Tl.prototype,"href",2),Vo([Xo()],Tl.prototype,"target",2),Vo([Xo()],Tl.prototype,"rel",2),Vo([ji("href",{waitUntilFirstUpdate:!0})],Tl.prototype,"hrefChanged",1);Tl.define("sl-breadcrumb-item");Xi({tagName:"sl-breadcrumb-item",elementClass:Tl,react:p,events:{},displayName:"SlBreadcrumbItem"});var El=At`
  .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
`,Ol=class extends rr{constructor(){super(...arguments),this.localize=new Vi(this),this.separatorDir=this.localize.dir(),this.label=""}getSeparator(){const e=this.separatorSlot.assignedElements({flatten:!0})[0].cloneNode(!0);return[e,...e.querySelectorAll("[id]")].forEach((e=>e.removeAttribute("id"))),e.setAttribute("data-default",""),e.slot="separator",e}handleSlotChange(){const e=[...this.defaultSlot.assignedElements({flatten:!0})].filter((e=>"sl-breadcrumb-item"===e.tagName.toLowerCase()));e.forEach(((t,o)=>{const r=t.querySelector('[slot="separator"]');null===r?t.append(this.getSeparator()):r.hasAttribute("data-default")&&r.replaceWith(this.getSeparator()),o===e.length-1?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current")}))}render(){return this.separatorDir!==this.localize.dir()&&(this.separatorDir=this.localize.dir(),this.updateComplete.then((()=>this.handleSlotChange()))),vo`
      <nav part="base" class="breadcrumb" aria-label=${this.label}>
        <slot @slotchange=${this.handleSlotChange}></slot>
      </nav>

      <span hidden aria-hidden="true">
        <slot name="separator">
          <sl-icon name=${"rtl"===this.localize.dir()?"chevron-left":"chevron-right"} library="system"></sl-icon>
        </slot>
      </span>
    `}};Ol.styles=[Do,El],Ol.dependencies={"sl-icon":Ln},Vo([tr("slot")],Ol.prototype,"defaultSlot",2),Vo([tr('slot[name="separator"]')],Ol.prototype,"separatorSlot",2),Vo([Xo()],Ol.prototype,"label",2);Ol.define("sl-breadcrumb");Xi({tagName:"sl-breadcrumb",elementClass:Ol,react:p,events:{},displayName:"SlBreadcrumb"});As.define("sl-button-group");Xi({tagName:"sl-button-group",elementClass:As,react:p,events:{},displayName:"SlButtonGroup"});var Il=At`
  :host {
    --border-color: var(--sl-color-neutral-200);
    --border-radius: var(--sl-border-radius-medium);
    --border-width: 1px;
    --padding: var(--sl-spacing-large);

    display: inline-block;
  }

  .card {
    display: flex;
    flex-direction: column;
    background-color: var(--sl-panel-background-color);
    box-shadow: var(--sl-shadow-x-small);
    border: solid var(--border-width) var(--border-color);
    border-radius: var(--border-radius);
  }

  .card__image {
    display: flex;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    margin: calc(-1 * var(--border-width));
    overflow: hidden;
  }

  .card__image::slotted(img) {
    display: block;
    width: 100%;
  }

  .card:not(.card--has-image) .card__image {
    display: none;
  }

  .card__header {
    display: block;
    border-bottom: solid var(--border-width) var(--border-color);
    padding: calc(var(--padding) / 2) var(--padding);
  }

  .card:not(.card--has-header) .card__header {
    display: none;
  }

  .card:not(.card--has-image) .card__header {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
  }

  .card__body {
    display: block;
    padding: var(--padding);
  }

  .card--has-footer .card__footer {
    display: block;
    border-top: solid var(--border-width) var(--border-color);
    padding: var(--padding);
  }

  .card:not(.card--has-footer) .card__footer {
    display: none;
  }
`,Ml=class extends rr{constructor(){super(...arguments),this.hasSlotController=new hn(this,"footer","header","image")}render(){return vo`
      <div
        part="base"
        class=${vi({card:!0,"card--has-footer":this.hasSlotController.test("footer"),"card--has-image":this.hasSlotController.test("image"),"card--has-header":this.hasSlotController.test("header")})}
      >
        <slot name="image" part="image" class="card__image"></slot>
        <slot name="header" part="header" class="card__header"></slot>
        <slot part="body" class="card__body"></slot>
        <slot name="footer" part="footer" class="card__footer"></slot>
      </div>
    `}};Ml.styles=[Do,Il];Ml.define("sl-card");Xi({tagName:"sl-card",elementClass:Ml,react:p,events:{},displayName:"SlCard"});var zl=class{constructor(e,t){this.timerId=0,this.activeInteractions=0,this.paused=!1,this.stopped=!0,this.pause=()=>{this.activeInteractions++||(this.paused=!0,this.host.requestUpdate())},this.resume=()=>{--this.activeInteractions||(this.paused=!1,this.host.requestUpdate())},e.addController(this),this.host=e,this.tickCallback=t}hostConnected(){this.host.addEventListener("mouseenter",this.pause),this.host.addEventListener("mouseleave",this.resume),this.host.addEventListener("focusin",this.pause),this.host.addEventListener("focusout",this.resume),this.host.addEventListener("touchstart",this.pause,{passive:!0}),this.host.addEventListener("touchend",this.resume)}hostDisconnected(){this.stop(),this.host.removeEventListener("mouseenter",this.pause),this.host.removeEventListener("mouseleave",this.resume),this.host.removeEventListener("focusin",this.pause),this.host.removeEventListener("focusout",this.resume),this.host.removeEventListener("touchstart",this.pause),this.host.removeEventListener("touchend",this.resume)}start(e){this.stop(),this.stopped=!1,this.timerId=window.setInterval((()=>{this.paused||this.tickCallback()}),e)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}},Dl=At`
  :host {
    --slide-gap: var(--sl-spacing-medium, 1rem);
    --aspect-ratio: 16 / 9;
    --scroll-hint: 0px;

    display: flex;
  }

  .carousel {
    display: grid;
    grid-template-columns: min-content 1fr min-content;
    grid-template-rows: 1fr min-content;
    grid-template-areas:
      '. slides .'
      '. pagination .';
    gap: var(--sl-spacing-medium);
    align-items: center;
    min-height: 100%;
    min-width: 100%;
    position: relative;
  }

  .carousel__pagination {
    grid-area: pagination;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sl-spacing-small);
  }

  .carousel__slides {
    grid-area: slides;

    display: grid;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-items: center;
    overflow: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    aspect-ratio: calc(var(--aspect-ratio) * var(--slides-per-page));
    border-radius: var(--sl-border-radius-small);

    --slide-size: calc((100% - (var(--slides-per-page) - 1) * var(--slide-gap)) / var(--slides-per-page));
  }

  @media (prefers-reduced-motion) {
    :where(.carousel__slides) {
      scroll-behavior: auto;
    }
  }

  .carousel__slides--horizontal {
    grid-auto-flow: column;
    grid-auto-columns: var(--slide-size);
    grid-auto-rows: 100%;
    column-gap: var(--slide-gap);
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--scroll-hint);
    padding-inline: var(--scroll-hint);
    overflow-y: hidden;
  }

  .carousel__slides--vertical {
    grid-auto-flow: row;
    grid-auto-columns: 100%;
    grid-auto-rows: var(--slide-size);
    row-gap: var(--slide-gap);
    scroll-snap-type: y mandatory;
    scroll-padding-block: var(--scroll-hint);
    padding-block: var(--scroll-hint);
    overflow-x: hidden;
  }

  .carousel__slides--dragging {
  }

  :host([vertical]) ::slotted(sl-carousel-item) {
    height: 100%;
  }

  .carousel__slides::-webkit-scrollbar {
    display: none;
  }

  .carousel__navigation {
    grid-area: navigation;
    display: contents;
    font-size: var(--sl-font-size-x-large);
  }

  .carousel__navigation-button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    border-radius: var(--sl-border-radius-small);
    font-size: inherit;
    color: var(--sl-color-neutral-600);
    padding: var(--sl-spacing-x-small);
    cursor: pointer;
    transition: var(--sl-transition-medium) color;
    appearance: none;
  }

  .carousel__navigation-button--disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .carousel__navigation-button--disabled::part(base) {
    pointer-events: none;
  }

  .carousel__navigation-button--previous {
    grid-column: 1;
    grid-row: 1;
  }

  .carousel__navigation-button--next {
    grid-column: 3;
    grid-row: 1;
  }

  .carousel__pagination-item {
    display: block;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: var(--sl-border-radius-circle);
    width: var(--sl-spacing-small);
    height: var(--sl-spacing-small);
    background-color: var(--sl-color-neutral-300);
    padding: 0;
    margin: 0;
  }

  .carousel__pagination-item--active {
    background-color: var(--sl-color-neutral-700);
    transform: scale(1.2);
  }

  /* Focus styles */
  .carousel__slides:focus-visible,
  .carousel__navigation-button:focus-visible,
  .carousel__pagination-item:focus-visible {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }
`;var Al=class extends rr{constructor(){super(...arguments),this.loop=!1,this.navigation=!1,this.pagination=!1,this.autoplay=!1,this.autoplayInterval=3e3,this.slidesPerPage=1,this.slidesPerMove=1,this.orientation="horizontal",this.mouseDragging=!1,this.activeSlide=0,this.scrolling=!1,this.dragging=!1,this.autoplayController=new zl(this,(()=>this.next())),this.localize=new Vi(this),this.handleMouseDrag=e=>{this.dragging||(this.scrollContainer.style.setProperty("scroll-snap-type","none"),this.dragging=!0),this.scrollContainer.scrollBy({left:-e.movementX,top:-e.movementY,behavior:"instant"})},this.handleMouseDragEnd=()=>{const e=this.scrollContainer;document.removeEventListener("pointermove",this.handleMouseDrag,{capture:!0});const t=e.scrollLeft,o=e.scrollTop;e.style.removeProperty("scroll-snap-type"),e.style.setProperty("overflow","hidden");const r=e.scrollLeft,n=e.scrollTop;e.style.removeProperty("overflow"),e.style.setProperty("scroll-snap-type","none"),e.scrollTo({left:t,top:o,behavior:"instant"}),requestAnimationFrame((async()=>{t===r&&o===n||(e.scrollTo({left:r,top:n,behavior:zi()?"auto":"smooth"}),await Oi(e,"scrollend")),e.style.removeProperty("scroll-snap-type"),this.dragging=!1,this.handleScrollEnd()}))},this.handleSlotChange=e=>{e.some((e=>[...e.addedNodes,...e.removedNodes].some((e=>this.isCarouselItem(e)&&!e.hasAttribute("data-clone")))))&&this.initializeSlides(),this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel"))}disconnectedCallback(){var e;super.disconnectedCallback(),null==(e=this.mutationObserver)||e.disconnect()}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}willUpdate(e){(e.has("slidesPerMove")||e.has("slidesPerPage"))&&(this.slidesPerMove=Math.min(this.slidesPerMove,this.slidesPerPage))}getPageCount(){const e=this.getSlides().length,{slidesPerPage:t,slidesPerMove:o,loop:r}=this,n=r?e/o:(e-t)/o+1;return Math.ceil(n)}getCurrentPage(){return Math.ceil(this.activeSlide/this.slidesPerMove)}canScrollNext(){return this.loop||this.getCurrentPage()<this.getPageCount()-1}canScrollPrev(){return this.loop||this.getCurrentPage()>0}getSlides({excludeClones:e=!0}={}){return[...this.children].filter((t=>this.isCarouselItem(t)&&(!e||!t.hasAttribute("data-clone"))))}handleKeyDown(e){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)){const t=e.target,o=this.matches(":dir(rtl)"),r=null!==t.closest('[part~="pagination-item"]'),n="ArrowDown"===e.key||!o&&"ArrowRight"===e.key||o&&"ArrowLeft"===e.key,c="ArrowUp"===e.key||!o&&"ArrowLeft"===e.key||o&&"ArrowRight"===e.key;e.preventDefault(),c&&this.previous(),n&&this.next(),"Home"===e.key&&this.goToSlide(0),"End"===e.key&&this.goToSlide(this.getSlides().length-1),r&&this.updateComplete.then((()=>{var e;const t=null==(e=this.shadowRoot)?void 0:e.querySelector('[part~="pagination-item--active"]');t&&t.focus()}))}}handleMouseDragStart(e){this.mouseDragging&&0===e.button&&(e.preventDefault(),document.addEventListener("pointermove",this.handleMouseDrag,{capture:!0,passive:!0}),document.addEventListener("pointerup",this.handleMouseDragEnd,{capture:!0,once:!0}))}handleScroll(){this.scrolling=!0}synchronizeSlides(){const e=new IntersectionObserver((t=>{e.disconnect();for(const e of t){const t=e.target;t.toggleAttribute("inert",!e.isIntersecting),t.classList.toggle("--in-view",e.isIntersecting),t.setAttribute("aria-hidden",e.isIntersecting?"false":"true")}const o=t.find((e=>e.isIntersecting));if(o)if(this.loop&&o.target.hasAttribute("data-clone")){const e=Number(o.target.getAttribute("data-clone"));this.goToSlide(e,"instant")}else{const e=this.getSlides().indexOf(o.target);this.activeSlide=Math.ceil(e/this.slidesPerMove)*this.slidesPerMove}}),{root:this.scrollContainer,threshold:.6});this.getSlides({excludeClones:!1}).forEach((t=>{e.observe(t)}))}handleScrollEnd(){this.scrolling&&!this.dragging&&(this.synchronizeSlides(),this.scrolling=!1)}isCarouselItem(e){return e instanceof Element&&"sl-carousel-item"===e.tagName.toLowerCase()}initializeSlides(){this.getSlides({excludeClones:!1}).forEach(((e,t)=>{e.classList.remove("--in-view"),e.classList.remove("--is-active"),e.setAttribute("aria-label",this.localize.term("slideNum",t+1)),e.hasAttribute("data-clone")&&e.remove()})),this.updateSlidesSnap(),this.loop&&this.createClones(),this.synchronizeSlides(),this.goToSlide(this.activeSlide,"auto")}createClones(){const e=this.getSlides(),t=this.slidesPerPage,o=e.slice(-t),r=e.slice(0,t);o.reverse().forEach(((t,o)=>{const r=t.cloneNode(!0);r.setAttribute("data-clone",String(e.length-o-1)),this.prepend(r)})),r.forEach(((e,t)=>{const o=e.cloneNode(!0);o.setAttribute("data-clone",String(t)),this.append(o)}))}handelSlideChange(){const e=this.getSlides();e.forEach(((e,t)=>{e.classList.toggle("--is-active",t===this.activeSlide)})),this.hasUpdated&&this.emit("sl-slide-change",{detail:{index:this.activeSlide,slide:e[this.activeSlide]}})}updateSlidesSnap(){const e=this.getSlides(),t=this.slidesPerMove;e.forEach(((e,o)=>{(o+t)%t==0?e.style.removeProperty("scroll-snap-align"):e.style.setProperty("scroll-snap-align","none")}))}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&this.autoplayController.start(this.autoplayInterval)}previous(e="smooth"){this.goToSlide(this.activeSlide-this.slidesPerMove,e)}next(e="smooth"){this.goToSlide(this.activeSlide+this.slidesPerMove,e)}goToSlide(e,t="smooth"){const{slidesPerPage:o,loop:r}=this,n=this.getSlides(),c=this.getSlides({excludeClones:!1});if(!n.length)return;const d=r?(e+n.length)%n.length:Vn(e,0,n.length-o);this.activeSlide=d;const h=c[Vn(e+(r?o:0)+(this.matches(":dir(rtl)")?o-1:0),0,c.length-1)];this.scrollToSlide(h,zi()?"auto":t)}scrollToSlide(e,t="smooth"){const o=this.scrollContainer,r=o.getBoundingClientRect(),n=e.getBoundingClientRect(),c=n.left-r.left,d=n.top-r.top;o.scrollTo({left:c+o.scrollLeft,top:d+o.scrollTop,behavior:t})}render(){const{slidesPerMove:e,scrolling:t}=this,o=this.getPageCount(),r=this.getCurrentPage(),n=this.canScrollPrev(),c=this.canScrollNext(),d=this.matches(":dir(ltr)");return vo`
      <div part="base" class="carousel">
        <div
          id="scroll-container"
          part="scroll-container"
          class="${vi({carousel__slides:!0,"carousel__slides--horizontal":"horizontal"===this.orientation,"carousel__slides--vertical":"vertical"===this.orientation,"carousel__slides--dragging":this.dragging})}"
          style="--slides-per-page: ${this.slidesPerPage};"
          aria-busy="${t?"true":"false"}"
          aria-atomic="true"
          tabindex="0"
          @keydown=${this.handleKeyDown}
          @mousedown="${this.handleMouseDragStart}"
          @scroll="${this.handleScroll}"
          @scrollend=${this.handleScrollEnd}
        >
          <slot></slot>
        </div>

        ${this.navigation?vo`
              <div part="navigation" class="carousel__navigation">
                <button
                  part="navigation-button navigation-button--previous"
                  class="${vi({"carousel__navigation-button":!0,"carousel__navigation-button--previous":!0,"carousel__navigation-button--disabled":!n})}"
                  aria-label="${this.localize.term("previousSlide")}"
                  aria-controls="scroll-container"
                  aria-disabled="${n?"false":"true"}"
                  @click=${n?()=>this.previous():null}
                >
                  <slot name="previous-icon">
                    <sl-icon library="system" name="${d?"chevron-left":"chevron-right"}"></sl-icon>
                  </slot>
                </button>

                <button
                  part="navigation-button navigation-button--next"
                  class=${vi({"carousel__navigation-button":!0,"carousel__navigation-button--next":!0,"carousel__navigation-button--disabled":!c})}
                  aria-label="${this.localize.term("nextSlide")}"
                  aria-controls="scroll-container"
                  aria-disabled="${c?"false":"true"}"
                  @click=${c?()=>this.next():null}
                >
                  <slot name="next-icon">
                    <sl-icon library="system" name="${d?"chevron-right":"chevron-left"}"></sl-icon>
                  </slot>
                </button>
              </div>
            `:""}
        ${this.pagination?vo`
              <div part="pagination" role="tablist" class="carousel__pagination" aria-controls="scroll-container">
                ${function*(e,t){if(void 0!==e){let o=0;for(const r of e)yield t(r,o++)}}(function*(e,t,o=1){const r=void 0===t?0:e;t??=e;for(let e=r;o>0?e<t:t<e;e+=o)yield e}(o),(t=>{const n=t===r;return vo`
                    <button
                      part="pagination-item ${n?"pagination-item--active":""}"
                      class="${vi({"carousel__pagination-item":!0,"carousel__pagination-item--active":n})}"
                      role="tab"
                      aria-selected="${n?"true":"false"}"
                      aria-label="${this.localize.term("goToSlide",t+1,o)}"
                      tabindex=${n?"0":"-1"}
                      @click=${()=>this.goToSlide(t*e)}
                      @keydown=${this.handleKeyDown}
                    ></button>
                  `}))}
              </div>
            `:""}
      </div>
    `}};Al.styles=[Do,Dl],Al.dependencies={"sl-icon":Ln},Vo([Xo({type:Boolean,reflect:!0})],Al.prototype,"loop",2),Vo([Xo({type:Boolean,reflect:!0})],Al.prototype,"navigation",2),Vo([Xo({type:Boolean,reflect:!0})],Al.prototype,"pagination",2),Vo([Xo({type:Boolean,reflect:!0})],Al.prototype,"autoplay",2),Vo([Xo({type:Number,attribute:"autoplay-interval"})],Al.prototype,"autoplayInterval",2),Vo([Xo({type:Number,attribute:"slides-per-page"})],Al.prototype,"slidesPerPage",2),Vo([Xo({type:Number,attribute:"slides-per-move"})],Al.prototype,"slidesPerMove",2),Vo([Xo()],Al.prototype,"orientation",2),Vo([Xo({type:Boolean,reflect:!0,attribute:"mouse-dragging"})],Al.prototype,"mouseDragging",2),Vo([tr(".carousel__slides")],Al.prototype,"scrollContainer",2),Vo([tr(".carousel__pagination")],Al.prototype,"paginationContainer",2),Vo([Qo()],Al.prototype,"activeSlide",2),Vo([Qo()],Al.prototype,"scrolling",2),Vo([Qo()],Al.prototype,"dragging",2),Vo([Jo({passive:!0})],Al.prototype,"handleScroll",1),Vo([ji("loop",{waitUntilFirstUpdate:!0}),ji("slidesPerPage",{waitUntilFirstUpdate:!0})],Al.prototype,"initializeSlides",1),Vo([ji("activeSlide")],Al.prototype,"handelSlideChange",1),Vo([ji("slidesPerMove")],Al.prototype,"updateSlidesSnap",1),Vo([ji("autoplay")],Al.prototype,"handleAutoplayChange",1);Al.define("sl-carousel");Xi({tagName:"sl-carousel",elementClass:Al,react:p,events:{onSlSlideChange:"sl-slide-change"},displayName:"SlCarousel"});var $l=At`
  :host {
    --aspect-ratio: inherit;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-height: 100%;
    aspect-ratio: var(--aspect-ratio);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  ::slotted(img) {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
`,Pl=class extends rr{connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return vo` <slot></slot> `}};Pl.styles=[Do,$l];Pl.define("sl-carousel-item");Xi({tagName:"sl-carousel-item",elementClass:Pl,react:p,events:{},displayName:"SlCarouselItem"});Hn.define("sl-checkbox");Xi({tagName:"sl-checkbox",elementClass:Hn,react:p,events:{onSlBlur:"sl-blur",onSlChange:"sl-change",onSlFocus:"sl-focus",onSlInput:"sl-input",onSlInvalid:"sl-invalid"},displayName:"SlCheckbox"});var Nl=At`
  :host {
    display: contents;

    /* For better DX, we'll reset the margin here so the base part can inherit it */
    margin: 0;
  }

  .alert {
    position: relative;
    display: flex;
    align-items: stretch;
    background-color: var(--sl-panel-background-color);
    border: solid var(--sl-panel-border-width) var(--sl-panel-border-color);
    border-top-width: calc(var(--sl-panel-border-width) * 3);
    border-radius: var(--sl-border-radius-medium);
    font-family: var(--sl-font-sans);
    font-size: var(--sl-font-size-small);
    font-weight: var(--sl-font-weight-normal);
    line-height: 1.6;
    color: var(--sl-color-neutral-700);
    margin: inherit;
    overflow: hidden;
  }

  .alert:not(.alert--has-icon) .alert__icon,
  .alert:not(.alert--closable) .alert__close-button {
    display: none;
  }

  .alert__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    font-size: var(--sl-font-size-large);
    padding-inline-start: var(--sl-spacing-large);
  }

  .alert--has-countdown {
    border-bottom: none;
  }

  .alert--primary {
    border-top-color: var(--sl-color-primary-600);
  }

  .alert--primary .alert__icon {
    color: var(--sl-color-primary-600);
  }

  .alert--success {
    border-top-color: var(--sl-color-success-600);
  }

  .alert--success .alert__icon {
    color: var(--sl-color-success-600);
  }

  .alert--neutral {
    border-top-color: var(--sl-color-neutral-600);
  }

  .alert--neutral .alert__icon {
    color: var(--sl-color-neutral-600);
  }

  .alert--warning {
    border-top-color: var(--sl-color-warning-600);
  }

  .alert--warning .alert__icon {
    color: var(--sl-color-warning-600);
  }

  .alert--danger {
    border-top-color: var(--sl-color-danger-600);
  }

  .alert--danger .alert__icon {
    color: var(--sl-color-danger-600);
  }

  .alert__message {
    flex: 1 1 auto;
    display: block;
    padding: var(--sl-spacing-large);
    overflow: hidden;
  }

  .alert__close-button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    font-size: var(--sl-font-size-medium);
    padding-inline-end: var(--sl-spacing-medium);
  }

  .alert__countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--sl-panel-border-width) * 3);
    background-color: var(--sl-panel-border-color);
    display: flex;
  }

  .alert__countdown--ltr {
    justify-content: flex-end;
  }

  .alert__countdown .alert__countdown-elapsed {
    height: 100%;
    width: 0;
  }

  .alert--primary .alert__countdown-elapsed {
    background-color: var(--sl-color-primary-600);
  }

  .alert--success .alert__countdown-elapsed {
    background-color: var(--sl-color-success-600);
  }

  .alert--neutral .alert__countdown-elapsed {
    background-color: var(--sl-color-neutral-600);
  }

  .alert--warning .alert__countdown-elapsed {
    background-color: var(--sl-color-warning-600);
  }

  .alert--danger .alert__countdown-elapsed {
    background-color: var(--sl-color-danger-600);
  }

  .alert__timer {
    display: none;
  }
`,Ll=Object.assign(document.createElement("div"),{className:"sl-toast-stack"}),Hl=class extends rr{constructor(){super(...arguments),this.hasSlotController=new hn(this,"icon","suffix"),this.localize=new Vi(this),this.open=!1,this.closable=!1,this.variant="primary",this.duration=1/0,this.remainingTime=this.duration}firstUpdated(){this.base.hidden=!this.open}restartAutoHide(){this.handleCountdownChange(),clearTimeout(this.autoHideTimeout),clearInterval(this.remainingTimeInterval),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.duration),this.remainingTime=this.duration,this.remainingTimeInterval=window.setInterval((()=>{this.remainingTime-=100}),100))}pauseAutoHide(){var e;null==(e=this.countdownAnimation)||e.pause(),clearTimeout(this.autoHideTimeout),clearInterval(this.remainingTimeInterval)}resumeAutoHide(){var e;this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.remainingTime),this.remainingTimeInterval=window.setInterval((()=>{this.remainingTime-=100}),100),null==(e=this.countdownAnimation)||e.play())}handleCountdownChange(){if(this.open&&this.duration<1/0&&this.countdown){const{countdownElement:e}=this,t="100%",o="0";this.countdownAnimation=e.animate([{width:t},{width:o}],{duration:this.duration,easing:"linear"})}}handleCloseClick(){this.hide()}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.duration<1/0&&this.restartAutoHide(),await Di(this.base),this.base.hidden=!1;const{keyframes:e,options:t}=Ei(this,"alert.show",{dir:this.localize.dir()});await Ii(this.base,e,t),this.emit("sl-after-show")}else{this.emit("sl-hide"),clearTimeout(this.autoHideTimeout),clearInterval(this.remainingTimeInterval),await Di(this.base);const{keyframes:e,options:t}=Ei(this,"alert.hide",{dir:this.localize.dir()});await Ii(this.base,e,t),this.base.hidden=!0,this.emit("sl-after-hide")}}handleDurationChange(){this.restartAutoHide()}async show(){if(!this.open)return this.open=!0,Oi(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Oi(this,"sl-after-hide")}async toast(){return new Promise((e=>{this.handleCountdownChange(),null===Ll.parentElement&&document.body.append(Ll),Ll.appendChild(this),requestAnimationFrame((()=>{this.clientWidth,this.show()})),this.addEventListener("sl-after-hide",(()=>{Ll.removeChild(this),e(),null===Ll.querySelector("sl-alert")&&Ll.remove()}),{once:!0})}))}render(){return vo`
      <div
        part="base"
        class=${vi({alert:!0,"alert--open":this.open,"alert--closable":this.closable,"alert--has-countdown":!!this.countdown,"alert--has-icon":this.hasSlotController.test("icon"),"alert--primary":"primary"===this.variant,"alert--success":"success"===this.variant,"alert--neutral":"neutral"===this.variant,"alert--warning":"warning"===this.variant,"alert--danger":"danger"===this.variant})}
        role="alert"
        aria-hidden=${this.open?"false":"true"}
        @mouseenter=${this.pauseAutoHide}
        @mouseleave=${this.resumeAutoHide}
      >
        <div part="icon" class="alert__icon">
          <slot name="icon"></slot>
        </div>

        <div part="message" class="alert__message" aria-live="polite">
          <slot></slot>
        </div>

        ${this.closable?vo`
              <sl-icon-button
                part="close-button"
                exportparts="base:close-button__base"
                class="alert__close-button"
                name="x-lg"
                library="system"
                label=${this.localize.term("close")}
                @click=${this.handleCloseClick}
              ></sl-icon-button>
            `:""}

        <div role="timer" class="alert__timer">${this.remainingTime}</div>

        ${this.countdown?vo`
              <div
                class=${vi({alert__countdown:!0,"alert__countdown--ltr":"ltr"===this.countdown})}
              >
                <div class="alert__countdown-elapsed"></div>
              </div>
            `:""}
      </div>
    `}};Hl.styles=[Do,Nl],Hl.dependencies={"sl-icon-button":cs},Vo([tr('[part~="base"]')],Hl.prototype,"base",2),Vo([tr(".alert__countdown-elapsed")],Hl.prototype,"countdownElement",2),Vo([Xo({type:Boolean,reflect:!0})],Hl.prototype,"open",2),Vo([Xo({type:Boolean,reflect:!0})],Hl.prototype,"closable",2),Vo([Xo({reflect:!0})],Hl.prototype,"variant",2),Vo([Xo({type:Number})],Hl.prototype,"duration",2),Vo([Xo({type:String,reflect:!0})],Hl.prototype,"countdown",2),Vo([Qo()],Hl.prototype,"remainingTime",2),Vo([ji("open",{waitUntilFirstUpdate:!0})],Hl.prototype,"handleOpenChange",1),Vo([ji("duration")],Hl.prototype,"handleDurationChange",1),Ti("alert.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Ti("alert.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});Hl.define("sl-alert");Xi({tagName:"sl-alert",elementClass:Hl,react:p,events:{onSlShow:"sl-show",onSlAfterShow:"sl-after-show",onSlHide:"sl-hide",onSlAfterHide:"sl-after-hide"},displayName:"SlAlert"});var Fl=At`
  :host {
    --control-box-size: 3rem;
    --icon-size: calc(var(--control-box-size) * 0.625);

    display: inline-flex;
    position: relative;
    cursor: pointer;
  }

  img {
    display: block;
    width: 100%;
    height: 100%;
  }

  img[aria-hidden='true'] {
    display: none;
  }

  .animated-image__control-box {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    top: calc(50% - var(--control-box-size) / 2);
    right: calc(50% - var(--control-box-size) / 2);
    width: var(--control-box-size);
    height: var(--control-box-size);
    font-size: var(--icon-size);
    background: none;
    border: solid 2px currentColor;
    background-color: rgb(0 0 0 /50%);
    border-radius: var(--sl-border-radius-circle);
    color: white;
    pointer-events: none;
    transition: var(--sl-transition-fast) opacity;
  }

  :host([play]:hover) .animated-image__control-box {
    opacity: 1;
  }

  :host([play]:not(:hover)) .animated-image__control-box {
    opacity: 0;
  }

  :host([play]) slot[name='play-icon'],
  :host(:not([play])) slot[name='pause-icon'] {
    display: none;
  }
`,Bl=class extends rr{constructor(){super(...arguments),this.isLoaded=!1}handleClick(){this.play=!this.play}handleLoad(){const e=document.createElement("canvas"),{width:t,height:o}=this.animatedImage;e.width=t,e.height=o,e.getContext("2d").drawImage(this.animatedImage,0,0,t,o),this.frozenFrame=e.toDataURL("image/gif"),this.isLoaded||(this.emit("sl-load"),this.isLoaded=!0)}handleError(){this.emit("sl-error")}handlePlayChange(){this.play&&(this.animatedImage.src="",this.animatedImage.src=this.src)}handleSrcChange(){this.isLoaded=!1}render(){return vo`
      <div class="animated-image">
        <img
          class="animated-image__animated"
          src=${this.src}
          alt=${this.alt}
          crossorigin="anonymous"
          aria-hidden=${this.play?"false":"true"}
          @click=${this.handleClick}
          @load=${this.handleLoad}
          @error=${this.handleError}
        />

        ${this.isLoaded?vo`
              <img
                class="animated-image__frozen"
                src=${this.frozenFrame}
                alt=${this.alt}
                aria-hidden=${this.play?"true":"false"}
                @click=${this.handleClick}
              />

              <div part="control-box" class="animated-image__control-box">
                <slot name="play-icon"><sl-icon name="play-fill" library="system"></sl-icon></slot>
                <slot name="pause-icon"><sl-icon name="pause-fill" library="system"></sl-icon></slot>
              </div>
            `:""}
      </div>
    `}};Bl.styles=[Do,Fl],Bl.dependencies={"sl-icon":Ln},Vo([tr(".animated-image__animated")],Bl.prototype,"animatedImage",2),Vo([Qo()],Bl.prototype,"frozenFrame",2),Vo([Qo()],Bl.prototype,"isLoaded",2),Vo([Xo()],Bl.prototype,"src",2),Vo([Xo()],Bl.prototype,"alt",2),Vo([Xo({type:Boolean,reflect:!0})],Bl.prototype,"play",2),Vo([ji("play",{waitUntilFirstUpdate:!0})],Bl.prototype,"handlePlayChange",1),Vo([ji("src")],Bl.prototype,"handleSrcChange",1);Bl.define("sl-animated-image");Xi({tagName:"sl-animated-image",elementClass:Bl,react:p,events:{onSlLoad:"sl-load",onSlError:"sl-error"},displayName:"SlAnimatedImage"});var Wl=At`
  :host {
    display: contents;
  }
`;const Gl=[{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.4,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.43,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.53,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.7,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -15px, 0) scaleY(1.05)"},{offset:.8,"transition-timing-function":"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0) scaleY(0.95)"},{offset:.9,transform:"translate3d(0, -4px, 0) scaleY(1.02)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"}],Ul=[{offset:0,opacity:"1"},{offset:.25,opacity:"0"},{offset:.5,opacity:"1"},{offset:.75,opacity:"0"},{offset:1,opacity:"1"}],Vl=[{offset:0,transform:"translateX(0)"},{offset:.065,transform:"translateX(-6px) rotateY(-9deg)"},{offset:.185,transform:"translateX(5px) rotateY(7deg)"},{offset:.315,transform:"translateX(-3px) rotateY(-5deg)"},{offset:.435,transform:"translateX(2px) rotateY(3deg)"},{offset:.5,transform:"translateX(0)"}],jl=[{offset:0,transform:"scale(1)"},{offset:.14,transform:"scale(1.3)"},{offset:.28,transform:"scale(1)"},{offset:.42,transform:"scale(1.3)"},{offset:.7,transform:"scale(1)"}],Zl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.111,transform:"translate3d(0, 0, 0)"},{offset:.222,transform:"skewX(-12.5deg) skewY(-12.5deg)"},{offset:.33299999999999996,transform:"skewX(6.25deg) skewY(6.25deg)"},{offset:.444,transform:"skewX(-3.125deg) skewY(-3.125deg)"},{offset:.555,transform:"skewX(1.5625deg) skewY(1.5625deg)"},{offset:.6659999999999999,transform:"skewX(-0.78125deg) skewY(-0.78125deg)"},{offset:.777,transform:"skewX(0.390625deg) skewY(0.390625deg)"},{offset:.888,transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],ql=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.5,transform:"scale3d(1.05, 1.05, 1.05)"},{offset:1,transform:"scale3d(1, 1, 1)"}],Yl=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.3,transform:"scale3d(1.25, 0.75, 1)"},{offset:.4,transform:"scale3d(0.75, 1.25, 1)"},{offset:.5,transform:"scale3d(1.15, 0.85, 1)"},{offset:.65,transform:"scale3d(0.95, 1.05, 1)"},{offset:.75,transform:"scale3d(1.05, 0.95, 1)"},{offset:1,transform:"scale3d(1, 1, 1)"}],Kl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Xl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Ql=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(0, -10px, 0)"},{offset:.2,transform:"translate3d(0, 10px, 0)"},{offset:.3,transform:"translate3d(0, -10px, 0)"},{offset:.4,transform:"translate3d(0, 10px, 0)"},{offset:.5,transform:"translate3d(0, -10px, 0)"},{offset:.6,transform:"translate3d(0, 10px, 0)"},{offset:.7,transform:"translate3d(0, -10px, 0)"},{offset:.8,transform:"translate3d(0, 10px, 0)"},{offset:.9,transform:"translate3d(0, -10px, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Jl=[{offset:.2,transform:"rotate3d(0, 0, 1, 15deg)"},{offset:.4,transform:"rotate3d(0, 0, 1, -10deg)"},{offset:.6,transform:"rotate3d(0, 0, 1, 5deg)"},{offset:.8,transform:"rotate3d(0, 0, 1, -5deg)"},{offset:1,transform:"rotate3d(0, 0, 1, 0deg)"}],ec=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.1,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.2,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.3,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.4,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.5,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.6,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.7,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.8,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.9,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:1,transform:"scale3d(1, 1, 1)"}],tc=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.15,transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)"},{offset:.3,transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)"},{offset:.45,transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)"},{offset:.6,transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)"},{offset:.75,transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],oc=[{offset:0,transform:"translateY(-1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],rc=[{offset:0,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],ic=[{offset:0,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],nc=[{offset:0,transform:"translateY(1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],sc=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(700px) scale(0.7)",opacity:"0.7"}],ac=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"}],lc=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"}],cc=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(-700px) scale(0.7)",opacity:"0.7"}],dc=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.2,transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.4,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.4,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"scale3d(1.03, 1.03, 1.03)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.8,transform:"scale3d(0.97, 0.97, 0.97)"},{offset:.8,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,opacity:"1",transform:"scale3d(1, 1, 1)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],hc=[{offset:0,opacity:"0",transform:"translate3d(0, -3000px, 0) scaleY(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, 25px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, -10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, 5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],uc=[{offset:0,opacity:"0",transform:"translate3d(-3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],pc=[{offset:0,opacity:"0",transform:"translate3d(3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(-25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],fc=[{offset:0,opacity:"0",transform:"translate3d(0, 3000px, 0) scaleY(5)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, 10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, -5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],mc=[{offset:.2,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.5,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.55,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:1,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"}],gc=[{offset:.2,transform:"translate3d(0, 10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0) scaleY(3)"}],bc=[{offset:.2,opacity:"1",transform:"translate3d(20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0) scaleX(2)"}],vc=[{offset:.2,opacity:"1",transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0) scaleX(2)"}],yc=[{offset:.2,transform:"translate3d(0, -10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0) scaleY(3)"}],wc=[{offset:0,opacity:"0"},{offset:1,opacity:"1"}],_c=[{offset:0,opacity:"0",transform:"translate3d(-100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],xc=[{offset:0,opacity:"0",transform:"translate3d(100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Cc=[{offset:0,opacity:"0",transform:"translate3d(0, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],kc=[{offset:0,opacity:"0",transform:"translate3d(0, -2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Sc=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Rc=[{offset:0,opacity:"0",transform:"translate3d(-2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Tc=[{offset:0,opacity:"0",transform:"translate3d(100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ec=[{offset:0,opacity:"0",transform:"translate3d(2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Oc=[{offset:0,opacity:"0",transform:"translate3d(-100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ic=[{offset:0,opacity:"0",transform:"translate3d(100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Mc=[{offset:0,opacity:"0",transform:"translate3d(0, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],zc=[{offset:0,opacity:"0",transform:"translate3d(0, 2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Dc=[{offset:0,opacity:"1"},{offset:1,opacity:"0"}],Ac=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, 100%, 0)"}],$c=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, 100%, 0)"}],Pc=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 100%, 0)"}],Nc=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0)"}],Lc=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-100%, 0, 0)"}],Hc=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0)"}],Fc=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0)"}],Bc=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0)"}],Wc=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, -100%, 0)"}],Gc=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, -100%, 0)"}],Uc=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -100%, 0)"}],Vc=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0)"}],jc=[{offset:0,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)",easing:"ease-out"},{offset:.4,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)\n      rotate3d(0, 1, 0, -190deg)",easing:"ease-out"},{offset:.5,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)\n      rotate3d(0, 1, 0, -170deg)",easing:"ease-in"},{offset:.8,transform:"perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0)\n      rotate3d(0, 1, 0, 0deg)",easing:"ease-in"},{offset:1,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)",easing:"ease-in"}],Zc=[{offset:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}],qc=[{offset:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}],Yc=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",opacity:"0"}],Kc=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",opacity:"0"}],Xc=[{offset:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)",opacity:"0"},{offset:.6,transform:"skewX(-20deg)",opacity:"1"},{offset:.8,transform:"skewX(5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Qc=[{offset:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:"0"},{offset:.6,transform:"skewX(20deg)",opacity:"1"},{offset:.8,transform:"skewX(-5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Jc=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(-100%, 0, 0) skewX(-30deg)",opacity:"0"}],ed=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:"0"}],td=[{offset:0,transform:"rotate3d(0, 0, 1, -200deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],od=[{offset:0,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],rd=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],id=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],nd=[{offset:0,transform:"rotate3d(0, 0, 1, -90deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],sd=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 200deg)",opacity:"0"}],ad=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"}],ld=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}],cd=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}],dd=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 90deg)",opacity:"0"}],hd=[{offset:0,transform:"translate3d(0, -100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],ud=[{offset:0,transform:"translate3d(-100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],pd=[{offset:0,transform:"translate3d(100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],fd=[{offset:0,transform:"translate3d(0, 100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],md=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, 100%, 0)"}],gd=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(-100%, 0, 0)"}],bd=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(100%, 0, 0)"}],vd=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, -100%, 0)"}],yd=[{offset:0,easing:"ease-in-out"},{offset:.2,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.4,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:.6,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.8,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:1,transform:"translate3d(0, 700px, 0)",opacity:"0"}],wd=[{offset:0,opacity:"0",transform:"scale(0.1) rotate(30deg)","transform-origin":"center bottom"},{offset:.5,transform:"rotate(-10deg)"},{offset:.7,transform:"rotate(3deg)"},{offset:1,opacity:"1",transform:"scale(1)"}],_d=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],xd=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}],Cd=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:.5,opacity:"1"}],kd=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Sd=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Rd=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Td=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Ed=[{offset:0,opacity:"1"},{offset:.5,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:1,opacity:"0"}],Od=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Id=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(-2000px, 0, 0)"}],Md=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(2000px, 0, 0)"}],zd=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Dd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",easeInSine:"cubic-bezier(0.47, 0, 0.745, 0.715)",easeOutSine:"cubic-bezier(0.39, 0.575, 0.565, 1)",easeInOutSine:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeInQuad:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",easeOutQuad:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",easeInOutQuad:"cubic-bezier(0.455, 0.03, 0.515, 0.955)",easeInCubic:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",easeOutCubic:"cubic-bezier(0.215, 0.61, 0.355, 1)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1)",easeInQuart:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",easeOutQuart:"cubic-bezier(0.165, 0.84, 0.44, 1)",easeInOutQuart:"cubic-bezier(0.77, 0, 0.175, 1)",easeInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",easeOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutQuint:"cubic-bezier(0.86, 0, 0.07, 1)",easeInExpo:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",easeOutExpo:"cubic-bezier(0.19, 1, 0.22, 1)",easeInOutExpo:"cubic-bezier(1, 0, 0, 1)",easeInCirc:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",easeOutCirc:"cubic-bezier(0.075, 0.82, 0.165, 1)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.15, 0.86)",easeInBack:"cubic-bezier(0.6, -0.28, 0.735, 0.045)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",easeInOutBack:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"};var Ad=class extends rr{constructor(){super(...arguments),this.hasStarted=!1,this.name="none",this.play=!1,this.delay=0,this.direction="normal",this.duration=1e3,this.easing="linear",this.endDelay=0,this.fill="auto",this.iterations=1/0,this.iterationStart=0,this.playbackRate=1,this.handleAnimationFinish=()=>{this.play=!1,this.hasStarted=!1,this.emit("sl-finish")},this.handleAnimationCancel=()=>{this.play=!1,this.hasStarted=!1,this.emit("sl-cancel")}}get currentTime(){var e,t;return null!=(t=null==(e=this.animation)?void 0:e.currentTime)?t:0}set currentTime(e){this.animation&&(this.animation.currentTime=e)}connectedCallback(){super.connectedCallback(),this.createAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}handleSlotChange(){this.destroyAnimation(),this.createAnimation()}async createAnimation(){var e,t;const o=null!=(e=Dd[this.easing])?e:this.easing,r=null!=(t=this.keyframes)?t:h[this.name],n=(await this.defaultSlot).assignedElements()[0];return!(!n||!r)&&(this.destroyAnimation(),this.animation=n.animate(r,{delay:this.delay,direction:this.direction,duration:this.duration,easing:o,endDelay:this.endDelay,fill:this.fill,iterationStart:this.iterationStart,iterations:this.iterations}),this.animation.playbackRate=this.playbackRate,this.animation.addEventListener("cancel",this.handleAnimationCancel),this.animation.addEventListener("finish",this.handleAnimationFinish),this.play?(this.hasStarted=!0,this.emit("sl-start")):this.animation.pause(),!0)}destroyAnimation(){this.animation&&(this.animation.cancel(),this.animation.removeEventListener("cancel",this.handleAnimationCancel),this.animation.removeEventListener("finish",this.handleAnimationFinish),this.hasStarted=!1)}handleAnimationChange(){this.hasUpdated&&this.createAnimation()}handlePlayChange(){return!!this.animation&&(this.play&&!this.hasStarted&&(this.hasStarted=!0,this.emit("sl-start")),this.play?this.animation.play():this.animation.pause(),!0)}handlePlaybackRateChange(){this.animation&&(this.animation.playbackRate=this.playbackRate)}cancel(){var e;null==(e=this.animation)||e.cancel()}finish(){var e;null==(e=this.animation)||e.finish()}render(){return vo` <slot @slotchange=${this.handleSlotChange}></slot> `}};Ad.styles=[Do,Wl],Vo([function(e){return(t,o)=>er(t,o,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}("slot")],Ad.prototype,"defaultSlot",2),Vo([Xo()],Ad.prototype,"name",2),Vo([Xo({type:Boolean,reflect:!0})],Ad.prototype,"play",2),Vo([Xo({type:Number})],Ad.prototype,"delay",2),Vo([Xo()],Ad.prototype,"direction",2),Vo([Xo({type:Number})],Ad.prototype,"duration",2),Vo([Xo()],Ad.prototype,"easing",2),Vo([Xo({attribute:"end-delay",type:Number})],Ad.prototype,"endDelay",2),Vo([Xo()],Ad.prototype,"fill",2),Vo([Xo({type:Number})],Ad.prototype,"iterations",2),Vo([Xo({attribute:"iteration-start",type:Number})],Ad.prototype,"iterationStart",2),Vo([Xo({attribute:!1})],Ad.prototype,"keyframes",2),Vo([Xo({attribute:"playback-rate",type:Number})],Ad.prototype,"playbackRate",2),Vo([ji(["name","delay","direction","duration","easing","endDelay","fill","iterations","iterationsStart","keyframes"])],Ad.prototype,"handleAnimationChange",1),Vo([ji("play")],Ad.prototype,"handlePlayChange",1),Vo([ji("playbackRate")],Ad.prototype,"handlePlaybackRateChange",1);Ad.define("sl-animation");Xi({tagName:"sl-animation",elementClass:Ad,react:p,events:{onSlCancel:"sl-cancel",onSlFinish:"sl-finish",onSlStart:"sl-start"},displayName:"SlAnimation"});var $d=At`
  :host {
    display: inline-block;

    --size: 3rem;
  }

  .avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: var(--size);
    height: var(--size);
    background-color: var(--sl-color-neutral-400);
    font-family: var(--sl-font-sans);
    font-size: calc(var(--size) * 0.5);
    font-weight: var(--sl-font-weight-normal);
    color: var(--sl-color-neutral-0);
    user-select: none;
    -webkit-user-select: none;
    vertical-align: middle;
  }

  .avatar--circle,
  .avatar--circle .avatar__image {
    border-radius: var(--sl-border-radius-circle);
  }

  .avatar--rounded,
  .avatar--rounded .avatar__image {
    border-radius: var(--sl-border-radius-medium);
  }

  .avatar--square {
    border-radius: 0;
  }

  .avatar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .avatar__initials {
    line-height: 1;
    text-transform: uppercase;
  }

  .avatar__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
  }
`,Pd=class extends rr{constructor(){super(...arguments),this.hasError=!1,this.image="",this.label="",this.initials="",this.loading="eager",this.shape="circle"}handleImageChange(){this.hasError=!1}handleImageLoadError(){this.hasError=!0,this.emit("sl-error")}render(){const e=vo`
      <img
        part="image"
        class="avatar__image"
        src="${this.image}"
        loading="${this.loading}"
        alt=""
        @error="${this.handleImageLoadError}"
      />
    `;let t=vo``;return t=this.initials?vo`<div part="initials" class="avatar__initials">${this.initials}</div>`:vo`
        <div part="icon" class="avatar__icon" aria-hidden="true">
          <slot name="icon">
            <sl-icon name="person-fill" library="system"></sl-icon>
          </slot>
        </div>
      `,vo`
      <div
        part="base"
        class=${vi({avatar:!0,"avatar--circle":"circle"===this.shape,"avatar--rounded":"rounded"===this.shape,"avatar--square":"square"===this.shape})}
        role="img"
        aria-label=${this.label}
      >
        ${this.image&&!this.hasError?e:t}
      </div>
    `}};Pd.styles=[Do,$d],Pd.dependencies={"sl-icon":Ln},Vo([Qo()],Pd.prototype,"hasError",2),Vo([Xo()],Pd.prototype,"image",2),Vo([Xo()],Pd.prototype,"label",2),Vo([Xo()],Pd.prototype,"initials",2),Vo([Xo()],Pd.prototype,"loading",2),Vo([Xo({reflect:!0})],Pd.prototype,"shape",2),Vo([ji("image")],Pd.prototype,"handleImageChange",1);Pd.define("sl-avatar");Xi({tagName:"sl-avatar",elementClass:Pd,react:p,events:{onSlError:"sl-error"},displayName:"SlAvatar"});var Nd=At`
  :host {
    display: inline-flex;
  }

  .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: max(12px, 0.75em);
    font-weight: var(--sl-font-weight-semibold);
    letter-spacing: var(--sl-letter-spacing-normal);
    line-height: 1;
    border-radius: var(--sl-border-radius-small);
    border: solid 1px var(--sl-color-neutral-0);
    white-space: nowrap;
    padding: 0.35em 0.6em;
    user-select: none;
    -webkit-user-select: none;
    cursor: inherit;
  }

  /* Variant modifiers */
  .badge--primary {
    background-color: var(--sl-color-primary-600);
    color: var(--sl-color-neutral-0);
  }

  .badge--success {
    background-color: var(--sl-color-success-600);
    color: var(--sl-color-neutral-0);
  }

  .badge--neutral {
    background-color: var(--sl-color-neutral-600);
    color: var(--sl-color-neutral-0);
  }

  .badge--warning {
    background-color: var(--sl-color-warning-600);
    color: var(--sl-color-neutral-0);
  }

  .badge--danger {
    background-color: var(--sl-color-danger-600);
    color: var(--sl-color-neutral-0);
  }

  /* Pill modifier */
  .badge--pill {
    border-radius: var(--sl-border-radius-pill);
  }

  /* Pulse modifier */
  .badge--pulse {
    animation: pulse 1.5s infinite;
  }

  .badge--pulse.badge--primary {
    --pulse-color: var(--sl-color-primary-600);
  }

  .badge--pulse.badge--success {
    --pulse-color: var(--sl-color-success-600);
  }

  .badge--pulse.badge--neutral {
    --pulse-color: var(--sl-color-neutral-600);
  }

  .badge--pulse.badge--warning {
    --pulse-color: var(--sl-color-warning-600);
  }

  .badge--pulse.badge--danger {
    --pulse-color: var(--sl-color-danger-600);
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 var(--pulse-color);
    }
    70% {
      box-shadow: 0 0 0 0.5rem transparent;
    }
    100% {
      box-shadow: 0 0 0 0 transparent;
    }
  }
`,Ld=class extends rr{constructor(){super(...arguments),this.variant="primary",this.pill=!1,this.pulse=!1}render(){return vo`
      <span
        part="base"
        class=${vi({badge:!0,"badge--primary":"primary"===this.variant,"badge--success":"success"===this.variant,"badge--neutral":"neutral"===this.variant,"badge--warning":"warning"===this.variant,"badge--danger":"danger"===this.variant,"badge--pill":this.pill,"badge--pulse":this.pulse})}
        role="status"
      >
        <slot></slot>
      </span>
    `}};Ld.styles=[Do,Nd],Vo([Xo({reflect:!0})],Ld.prototype,"variant",2),Vo([Xo({type:Boolean,reflect:!0})],Ld.prototype,"pill",2),Vo([Xo({type:Boolean,reflect:!0})],Ld.prototype,"pulse",2);Ld.define("sl-badge");Xi({tagName:"sl-badge",elementClass:Ld,react:p,events:{},displayName:"SlBadge"});var Hd=(e,t)=>{let o=0;return function(...r){window.clearTimeout(o),o=window.setTimeout((()=>{e.call(this,...r)}),t)}},Fd=(e,t,o)=>{const r=e[t];e[t]=function(...e){r.call(this,...e),o.call(this,r,...e)}};if(!("onscrollend"in window)){const e=new Set,t=new WeakMap,o=t=>{for(const o of t.changedTouches)e.add(o.identifier)},r=t=>{for(const o of t.changedTouches)e.delete(o.identifier)};document.addEventListener("touchstart",o,!0),document.addEventListener("touchend",r,!0),document.addEventListener("touchcancel",r,!0),Fd(EventTarget.prototype,"addEventListener",(function(o,r){if("scrollend"!==r)return;const n=Hd((()=>{e.size?n():this.dispatchEvent(new Event("scrollend"))}),100);o.call(this,"scroll",n,{passive:!0}),t.set(this,n)})),Fd(EventTarget.prototype,"removeEventListener",(function(e,o){if("scrollend"!==o)return;const r=t.get(this);r&&e.call(this,"scroll",r,{passive:!0})}))}var Bd=(e=>(e.ActionPrefix="gitlens.action.",e.AddAuthors="gitlens.addAuthors",e.BrowseRepoAtRevision="gitlens.browseRepoAtRevision",e.BrowseRepoAtRevisionInNewWindow="gitlens.browseRepoAtRevisionInNewWindow",e.BrowseRepoBeforeRevision="gitlens.browseRepoBeforeRevision",e.BrowseRepoBeforeRevisionInNewWindow="gitlens.browseRepoBeforeRevisionInNewWindow",e.ClearFileAnnotations="gitlens.clearFileAnnotations",e.CloseUnchangedFiles="gitlens.closeUnchangedFiles",e.CompareWith="gitlens.compareWith",e.CompareHeadWith="gitlens.compareHeadWith",e.CompareWorkingWith="gitlens.compareWorkingWith",e.ComputingFileAnnotations="gitlens.computingFileAnnotations",e.ConnectRemoteProvider="gitlens.connectRemoteProvider",e.CopyCurrentBranch="gitlens.copyCurrentBranch",e.CopyDeepLinkToBranch="gitlens.copyDeepLinkToBranch",e.CopyDeepLinkToCommit="gitlens.copyDeepLinkToCommit",e.CopyDeepLinkToComparison="gitlens.copyDeepLinkToComparison",e.CopyDeepLinkToFile="gitlens.copyDeepLinkToFile",e.CopyDeepLinkToFileAtRevision="gitlens.copyDeepLinkToFileAtRevision",e.CopyDeepLinkToLines="gitlens.copyDeepLinkToLines",e.CopyDeepLinkToRepo="gitlens.copyDeepLinkToRepo",e.CopyDeepLinkToTag="gitlens.copyDeepLinkToTag",e.CopyDeepLinkToWorkspace="gitlens.copyDeepLinkToWorkspace",e.CopyMessageToClipboard="gitlens.copyMessageToClipboard",e.CopyRemoteBranchesUrl="gitlens.copyRemoteBranchesUrl",e.CopyRemoteBranchUrl="gitlens.copyRemoteBranchUrl",e.CopyRemoteCommitUrl="gitlens.copyRemoteCommitUrl",e.CopyRemoteComparisonUrl="gitlens.copyRemoteComparisonUrl",e.CopyRemoteFileUrl="gitlens.copyRemoteFileUrlToClipboard",e.CopyRemoteFileUrlWithoutRange="gitlens.copyRemoteFileUrlWithoutRange",e.CopyRemoteFileUrlFrom="gitlens.copyRemoteFileUrlFrom",e.CopyRemotePullRequestUrl="gitlens.copyRemotePullRequestUrl",e.CopyRemoteRepositoryUrl="gitlens.copyRemoteRepositoryUrl",e.CopyShaToClipboard="gitlens.copyShaToClipboard",e.CopyRelativePathToClipboard="gitlens.copyRelativePathToClipboard",e.ApplyPatchFromClipboard="gitlens.applyPatchFromClipboard",e.PastePatchFromClipboard="gitlens.pastePatchFromClipboard",e.CopyPatchToClipboard="gitlens.copyPatchToClipboard",e.CopyWorkingChangesToWorktree="gitlens.copyWorkingChangesToWorktree",e.CreatePatch="gitlens.createPatch",e.CreateCloudPatch="gitlens.createCloudPatch",e.CreatePullRequestOnRemote="gitlens.createPullRequestOnRemote",e.DiffDirectory="gitlens.diffDirectory",e.DiffDirectoryWithHead="gitlens.diffDirectoryWithHead",e.DiffFolderWithRevision="gitlens.diffFolderWithRevision",e.DiffFolderWithRevisionFrom="gitlens.diffFolderWithRevisionFrom",e.DiffWith="gitlens.diffWith",e.DiffWithNext="gitlens.diffWithNext",e.DiffWithNextInDiffLeft="gitlens.diffWithNextInDiffLeft",e.DiffWithNextInDiffRight="gitlens.diffWithNextInDiffRight",e.DiffWithPrevious="gitlens.diffWithPrevious",e.DiffWithPreviousInDiffLeft="gitlens.diffWithPreviousInDiffLeft",e.DiffWithPreviousInDiffRight="gitlens.diffWithPreviousInDiffRight",e.DiffLineWithPrevious="gitlens.diffLineWithPrevious",e.DiffWithRevision="gitlens.diffWithRevision",e.DiffWithRevisionFrom="gitlens.diffWithRevisionFrom",e.DiffWithWorking="gitlens.diffWithWorking",e.DiffWithWorkingInDiffLeft="gitlens.diffWithWorkingInDiffLeft",e.DiffWithWorkingInDiffRight="gitlens.diffWithWorkingInDiffRight",e.DiffLineWithWorking="gitlens.diffLineWithWorking",e.DisconnectRemoteProvider="gitlens.disconnectRemoteProvider",e.DisableDebugLogging="gitlens.disableDebugLogging",e.EnableDebugLogging="gitlens.enableDebugLogging",e.DisableRebaseEditor="gitlens.disableRebaseEditor",e.EnableRebaseEditor="gitlens.enableRebaseEditor",e.ExternalDiff="gitlens.externalDiff",e.ExternalDiffAll="gitlens.externalDiffAll",e.FetchRepositories="gitlens.fetchRepositories",e.GenerateCommitMessage="gitlens.generateCommitMessage",e.GetStarted="gitlens.getStarted",e.GKSwitchOrganization="gitlens.gk.switchOrganization",e.InviteToLiveShare="gitlens.inviteToLiveShare",e.OpenBlamePriorToChange="gitlens.openBlamePriorToChange",e.OpenBranchesOnRemote="gitlens.openBranchesOnRemote",e.OpenBranchOnRemote="gitlens.openBranchOnRemote",e.OpenCurrentBranchOnRemote="gitlens.openCurrentBranchOnRemote",e.OpenChangedFiles="gitlens.openChangedFiles",e.OpenCommitOnRemote="gitlens.openCommitOnRemote",e.OpenComparisonOnRemote="gitlens.openComparisonOnRemote",e.OpenFileHistory="gitlens.openFileHistory",e.OpenFileFromRemote="gitlens.openFileFromRemote",e.OpenFileOnRemote="gitlens.openFileOnRemote",e.OpenFileOnRemoteFrom="gitlens.openFileOnRemoteFrom",e.OpenFileAtRevision="gitlens.openFileRevision",e.OpenFileAtRevisionFrom="gitlens.openFileRevisionFrom",e.OpenFolderHistory="gitlens.openFolderHistory",e.OpenOnRemote="gitlens.openOnRemote",e.OpenCloudPatch="gitlens.openCloudPatch",e.OpenPatch="gitlens.openPatch",e.OpenPullRequestOnRemote="gitlens.openPullRequestOnRemote",e.OpenAssociatedPullRequestOnRemote="gitlens.openAssociatedPullRequestOnRemote",e.OpenRepoOnRemote="gitlens.openRepoOnRemote",e.OpenRevisionFile="gitlens.openRevisionFile",e.OpenRevisionFileInDiffLeft="gitlens.openRevisionFileInDiffLeft",e.OpenRevisionFileInDiffRight="gitlens.openRevisionFileInDiffRight",e.OpenWalkthrough="gitlens.openWalkthrough",e.OpenWorkingFile="gitlens.openWorkingFile",e.OpenWorkingFileInDiffLeft="gitlens.openWorkingFileInDiffLeft",e.OpenWorkingFileInDiffRight="gitlens.openWorkingFileInDiffRight",e.PullRepositories="gitlens.pullRepositories",e.PushRepositories="gitlens.pushRepositories",e.GitCommands="gitlens.gitCommands",e.GitCommandsBranch="gitlens.gitCommands.branch",e.GitCommandsBranchCreate="gitlens.gitCommands.branch.create",e.GitCommandsBranchDelete="gitlens.gitCommands.branch.delete",e.GitCommandsBranchPrune="gitlens.gitCommands.branch.prune",e.GitCommandsBranchRename="gitlens.gitCommands.branch.rename",e.GitCommandsCheckout="gitlens.gitCommands.checkout",e.GitCommandsCherryPick="gitlens.gitCommands.cherryPick",e.GitCommandsHistory="gitlens.gitCommands.history",e.GitCommandsMerge="gitlens.gitCommands.merge",e.GitCommandsRebase="gitlens.gitCommands.rebase",e.GitCommandsRemote="gitlens.gitCommands.remote",e.GitCommandsRemoteAdd="gitlens.gitCommands.remote.add",e.GitCommandsRemotePrune="gitlens.gitCommands.remote.prune",e.GitCommandsRemoteRemove="gitlens.gitCommands.remote.remove",e.GitCommandsReset="gitlens.gitCommands.reset",e.GitCommandsRevert="gitlens.gitCommands.revert",e.GitCommandsShow="gitlens.gitCommands.show",e.GitCommandsStash="gitlens.gitCommands.stash",e.GitCommandsStashDrop="gitlens.gitCommands.stash.drop",e.GitCommandsStashList="gitlens.gitCommands.stash.list",e.GitCommandsStashPop="gitlens.gitCommands.stash.pop",e.GitCommandsStashPush="gitlens.gitCommands.stash.push",e.GitCommandsStashRename="gitlens.gitCommands.stash.rename",e.GitCommandsStatus="gitlens.gitCommands.status",e.GitCommandsSwitch="gitlens.gitCommands.switch",e.GitCommandsTag="gitlens.gitCommands.tag",e.GitCommandsTagCreate="gitlens.gitCommands.tag.create",e.GitCommandsTagDelete="gitlens.gitCommands.tag.delete",e.GitCommandsWorktree="gitlens.gitCommands.worktree",e.GitCommandsWorktreeCreate="gitlens.gitCommands.worktree.create",e.GitCommandsWorktreeDelete="gitlens.gitCommands.worktree.delete",e.GitCommandsWorktreeOpen="gitlens.gitCommands.worktree.open",e.OpenOrCreateWorktreeForGHPR="gitlens.ghpr.views.openOrCreateWorktree",e.PlusConnectCloudIntegrations="gitlens.plus.cloudIntegrations.connect",e.PlusHide="gitlens.plus.hide",e.PlusLogin="gitlens.plus.login",e.PlusLogout="gitlens.plus.logout",e.PlusManage="gitlens.plus.manage",e.PlusManageCloudIntegrations="gitlens.plus.cloudIntegrations.manage",e.PlusReactivateProTrial="gitlens.plus.reactivateProTrial",e.PlusResendVerification="gitlens.plus.resendVerification",e.PlusRestore="gitlens.plus.restore",e.PlusShowPlans="gitlens.plus.showPlans",e.PlusSignUp="gitlens.plus.signUp",e.PlusStartPreviewTrial="gitlens.plus.startPreviewTrial",e.PlusUpgrade="gitlens.plus.upgrade",e.PlusValidate="gitlens.plus.validate",e.PlusSimulateSubscription="gitlens.plus.simulateSubscription",e.QuickOpenFileHistory="gitlens.quickOpenFileHistory",e.RefreshLaunchpad="gitlens.launchpad.refresh",e.RefreshGraph="gitlens.graph.refresh",e.RefreshHover="gitlens.refreshHover",e.Reset="gitlens.reset",e.ResetAIKey="gitlens.resetAIKey",e.ResetViewsLayout="gitlens.resetViewsLayout",e.RevealCommitInView="gitlens.revealCommitInView",e.ShareAsCloudPatch="gitlens.shareAsCloudPatch",e.SearchCommits="gitlens.showCommitSearch",e.SearchCommitsInView="gitlens.views.searchAndCompare.searchCommits",e.ShowBranchesView="gitlens.showBranchesView",e.ShowCommitDetailsView="gitlens.showCommitDetailsView",e.ShowCommitInView="gitlens.showCommitInView",e.ShowCommitsInView="gitlens.showCommitsInView",e.ShowCommitsView="gitlens.showCommitsView",e.ShowContributorsView="gitlens.showContributorsView",e.ShowDraftsView="gitlens.showDraftsView",e.ShowFileHistoryView="gitlens.showFileHistoryView",e.ShowGraph="gitlens.showGraph",e.ShowGraphPage="gitlens.showGraphPage",e.ShowGraphView="gitlens.showGraphView",e.ShowHomeView="gitlens.showHomeView",e.ShowAccountView="gitlens.showAccountView",e.ShowInCommitGraph="gitlens.showInCommitGraph",e.ShowInCommitGraphView="gitlens.showInCommitGraphView",e.ShowInDetailsView="gitlens.showInDetailsView",e.ShowInTimeline="gitlens.showInTimeline",e.ShowLastQuickPick="gitlens.showLastQuickPick",e.ShowLaunchpad="gitlens.showLaunchpad",e.ShowLaunchpadView="gitlens.showLaunchpadView",e.ShowLineCommitInView="gitlens.showLineCommitInView",e.ShowLineHistoryView="gitlens.showLineHistoryView",e.OpenOnlyChangedFiles="gitlens.openOnlyChangedFiles",e.ShowPatchDetailsPage="gitlens.showPatchDetailsPage",e.ShowQuickBranchHistory="gitlens.showQuickBranchHistory",e.ShowQuickCommit="gitlens.showQuickCommitDetails",e.ShowQuickCommitFile="gitlens.showQuickCommitFileDetails",e.ShowQuickCurrentBranchHistory="gitlens.showQuickRepoHistory",e.ShowQuickFileHistory="gitlens.showQuickFileHistory",e.ShowQuickRepoStatus="gitlens.showQuickRepoStatus",e.ShowQuickCommitRevision="gitlens.showQuickRevisionDetails",e.ShowQuickCommitRevisionInDiffLeft="gitlens.showQuickRevisionDetailsInDiffLeft",e.ShowQuickCommitRevisionInDiffRight="gitlens.showQuickRevisionDetailsInDiffRight",e.ShowQuickStashList="gitlens.showQuickStashList",e.ShowRemotesView="gitlens.showRemotesView",e.ShowRepositoriesView="gitlens.showRepositoriesView",e.ShowSearchAndCompareView="gitlens.showSearchAndCompareView",e.ShowSettingsPage="gitlens.showSettingsPage",e.ShowSettingsPageAndJumpToFileAnnotations="gitlens.showSettingsPage!file-annotations",e.ShowSettingsPageAndJumpToBranchesView="gitlens.showSettingsPage!branches-view",e.ShowSettingsPageAndJumpToCommitsView="gitlens.showSettingsPage!commits-view",e.ShowSettingsPageAndJumpToContributorsView="gitlens.showSettingsPage!contributors-view",e.ShowSettingsPageAndJumpToFileHistoryView="gitlens.showSettingsPage!file-history-view",e.ShowSettingsPageAndJumpToLineHistoryView="gitlens.showSettingsPage!line-history-view",e.ShowSettingsPageAndJumpToRemotesView="gitlens.showSettingsPage!remotes-view",e.ShowSettingsPageAndJumpToRepositoriesView="gitlens.showSettingsPage!repositories-view",e.ShowSettingsPageAndJumpToSearchAndCompareView="gitlens.showSettingsPage!search-compare-view",e.ShowSettingsPageAndJumpToStashesView="gitlens.showSettingsPage!stashes-view",e.ShowSettingsPageAndJumpToTagsView="gitlens.showSettingsPage!tags-view",e.ShowSettingsPageAndJumpToWorkTreesView="gitlens.showSettingsPage!worktrees-view",e.ShowSettingsPageAndJumpToViews="gitlens.showSettingsPage!views",e.ShowSettingsPageAndJumpToCommitGraph="gitlens.showSettingsPage!commit-graph",e.ShowSettingsPageAndJumpToAutolinks="gitlens.showSettingsPage!autolinks",e.ShowStashesView="gitlens.showStashesView",e.ShowTagsView="gitlens.showTagsView",e.ShowTimelinePage="gitlens.showTimelinePage",e.ShowTimelineView="gitlens.showTimelineView",e.ShowWelcomePage="gitlens.showWelcomePage",e.ShowWorktreesView="gitlens.showWorktreesView",e.ShowWorkspacesView="gitlens.showWorkspacesView",e.StashApply="gitlens.stashApply",e.StashSave="gitlens.stashSave",e.StashSaveFiles="gitlens.stashSaveFiles",e.SwitchAIModel="gitlens.switchAIModel",e.SwitchMode="gitlens.switchMode",e.ToggleCodeLens="gitlens.toggleCodeLens",e.ToggleFileBlame="gitlens.toggleFileBlame",e.ToggleFileBlameInDiffLeft="gitlens.toggleFileBlameInDiffLeft",e.ToggleFileBlameInDiffRight="gitlens.toggleFileBlameInDiffRight",e.ToggleFileChanges="gitlens.toggleFileChanges",e.ToggleFileChangesOnly="gitlens.toggleFileChangesOnly",e.ToggleFileHeatmap="gitlens.toggleFileHeatmap",e.ToggleFileHeatmapInDiffLeft="gitlens.toggleFileHeatmapInDiffLeft",e.ToggleFileHeatmapInDiffRight="gitlens.toggleFileHeatmapInDiffRight",e.ToggleLaunchpadIndicator="gitlens.launchpad.indicator.toggle",e.ToggleGraph="gitlens.toggleGraph",e.ToggleMaximizedGraph="gitlens.toggleMaximizedGraph",e.ToggleLineBlame="gitlens.toggleLineBlame",e.ToggleReviewMode="gitlens.toggleReviewMode",e.ToggleZenMode="gitlens.toggleZenMode",e.ViewsCopy="gitlens.views.copy",e.ViewsCopyAsMarkdown="gitlens.views.copyAsMarkdown",e.ViewsCopyUrl="gitlens.views.copyUrl",e.ViewsOpenDirectoryDiff="gitlens.views.openDirectoryDiff",e.ViewsOpenDirectoryDiffWithWorking="gitlens.views.openDirectoryDiffWithWorking",e.ViewsOpenUrl="gitlens.views.openUrl",e.Deprecated_DiffHeadWith="gitlens.diffHeadWith",e.Deprecated_DiffWorkingWith="gitlens.diffWorkingWith",e.Deprecated_OpenBranchesInRemote="gitlens.openBranchesInRemote",e.Deprecated_OpenBranchInRemote="gitlens.openBranchInRemote",e.Deprecated_OpenCommitInRemote="gitlens.openCommitInRemote",e.Deprecated_OpenFileInRemote="gitlens.openFileInRemote",e.Deprecated_OpenInRemote="gitlens.openInRemote",e.Deprecated_OpenRepoInRemote="gitlens.openRepoInRemote",e.Deprecated_ShowFileHistoryInView="gitlens.showFileHistoryInView",e))(Bd||{});var Wd=(e=>(e.Community="community",e.CommunityWithAccount="community-with-account",e.Pro="pro",e.Teams="teams",e.Enterprise="enterprise",e))(Wd||{}),Gd=(e=>(e[e.VerificationRequired=-1]="VerificationRequired",e[e.Community=0]="Community",e[e.ProPreview=1]="ProPreview",e[e.ProPreviewExpired=2]="ProPreviewExpired",e[e.ProTrial=3]="ProTrial",e[e.ProTrialExpired=4]="ProTrialExpired",e[e.ProTrialReactivationEligible=5]="ProTrialReactivationEligible",e[e.Paid=6]="Paid",e))(Gd||{});const Ud=/(?<literal>\[.*?\])|(?<year>YYYY|YY)|(?<month>M{1,4})|(?<day>Do|DD?)|(?<weekday>d{2,4})|(?<hour>HH?|hh?)|(?<minute>mm?)|(?<second>ss?)|(?<fractionalSecond>SSS)|(?<dayPeriod>A|a)|(?<timeZoneName>ZZ?)/g,Vd=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,jd=[["year",629856e5,31536e6,"yr"],["month",2628e6,2628e6,"mo"],["week",6048e5,6048e5,"wk"],["day",864e5,864e5,"d"],["hour",36e5,36e5,"h"],["minute",6e4,6e4,"m"],["second",1e3,1e3,"s"]];let Zd;const qd=new Map;let Yd,Kd,Xd;const Qd=new Map;function Jd(e,t){const o=("number"==typeof e?e:e.getTime())-(new Date).getTime();for(const[e,r,n,c]of jd){const d=Math.abs(o);if(d>=r||1e3===r){if(t){if(null==Zd&&(null!=Xd?Zd=Xd.resolvedOptions().locale:null!=Kd?Zd=Kd.resolvedOptions().locale:(Xd=new Intl.RelativeTimeFormat(Yd,{localeMatcher:"best fit",numeric:"always",style:"narrow"}),Zd=Xd.resolvedOptions().locale)),"en"===Zd||Zd?.startsWith("en-")){return`${Math.round(d/n)}${c}`}return null==Xd&&(Xd=new Intl.RelativeTimeFormat(Yd,{localeMatcher:"best fit",numeric:"always",style:"narrow"})),Xd.format(Math.round(o/n),e)}return null==Kd&&(Kd=new Intl.RelativeTimeFormat(Yd,{localeMatcher:"best fit",numeric:"auto",style:"long"})),Kd.format(Math.round(o/n),e)}}return""}function eh(e,t,o,r=!0){const n=`${o??""}:${t=t??void 0}`;let c=qd.get(n);if(null==c){const e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};const t=Vd.exec(e);if(null!=t?.groups){const{dateStyle:e,timeStyle:o}=t.groups;return{localeMatcher:"best fit",dateStyle:e||"full",timeStyle:o||void 0}}const o={localeMatcher:"best fit"};for(const{groups:t}of e.matchAll(Ud))if(null!=t)for(const[e,r]of Object.entries(t))if(null!=r)switch(e){case"year":o.year=4===r.length?"numeric":"2-digit";break;case"month":switch(r.length){case 4:o.month="long";break;case 3:o.month="short";break;case 2:o.month="2-digit";break;case 1:o.month="numeric"}break;case"day":o.day="DD"===r?"2-digit":"numeric";break;case"weekday":switch(r.length){case 4:o.weekday="long";break;case 3:o.weekday="short";break;case 2:o.weekday="narrow"}break;case"hour":o.hour=2===r.length?"2-digit":"numeric",o.hour12="hh"===r||"h"===r;break;case"minute":o.minute=2===r.length?"2-digit":"numeric";break;case"second":o.second=2===r.length?"2-digit":"numeric";break;case"fractionalSecond":o.fractionalSecondDigits=3;break;case"dayPeriod":o.dayPeriod="narrow",o.hour12=!0,o.hourCycle="h12";break;case"timeZoneName":o.timeZoneName=2===r.length?"long":"short"}return o}(t);let d;d=null==o?Yd:"system"===o?void 0:[o],c=new Intl.DateTimeFormat(d,e),r&&qd.set(n,c)}if(null==t||Vd.test(t))return c.format(e);function d(e){const t=`${o??""}:time:${e}`;let n=qd.get(t);if(null==n){const c={localeMatcher:"best fit",timeStyle:e};let d;d=null==o?Yd:"system"===o?void 0:[o],n=new Intl.DateTimeFormat(d,c),r&&qd.set(t,n)}return n}const h=c.formatToParts(e);return t.replace(Ud,((t,o,r,n,c,u,p,m,g,v,y,w,_,x,C)=>{if(null!=o)return o.substring(1,o.length-1);for(const[t,o]of Object.entries(C)){if(null==o)continue;const r=h.find((e=>e.type===t));if("Do"===o&&"day"===r?.type)return oh(Number(r.value));if("a"===o&&"dayPeriod"===r?.type){const t=d("short").formatToParts(e).find((e=>"dayPeriod"===e.type));return` ${(t??r)?.value??""}`}return r?.value??""}return""}))}const th=["th","st","nd","rd"];function oh(e){const t=e%100;return`${e}${th[(t-20)%10]??th[t]??th[0]}`}function rh(e,t,o){null==t&&(t="decimal");const r=`${o??""}:${t}`;let n=Qd.get(r);if(null==n){const e={localeMatcher:"best fit",style:t};let c;c=null==o?Yd:"system"===o?void 0:[o],n=new Intl.NumberFormat(c,e),Qd.set(r,n)}return n.format(e)}function ih(e){switch(e){case Wd.CommunityWithAccount:return"GitLens Free";case Wd.Pro:return"GitLens Pro";case Wd.Teams:return"GitLens Teams";case Wd.Enterprise:return"GitLens Enterprise";case Wd.Community:default:return"GitLens"}}Wd.Community,Wd.CommunityWithAccount,Wd.Pro,Wd.Teams,Wd.Enterprise;function nh(e,t){return sh(e.plan.effective.expiresOn,t)}function sh(e,t){return null!=e?function(e,t,o,r){const n=("number"==typeof t?t:t.getTime())-("number"==typeof e?e:e.getTime()),c=r??Math.floor;switch(o){case"days":return c(n/864e5);case"hours":return c(n/36e5);case"minutes":return c(n/6e4);case"seconds":return c(n/1e3);default:return n}}(Date.now(),new Date(e),t,Math.round):void 0}function ah(e){return function(e){return e!==Wd.Community&&e!==Wd.CommunityWithAccount}(e.plan.actual.id)}function lh(e,t){return null==t?`command:${e}`:`command:${e}?${encodeURIComponent("string"==typeof t?t:JSON.stringify(t))}`}function*ch(e,t){for(const o of e){const e=t(o);null!=e&&(yield e)}}function dh(e){return e[Symbol.iterator]().next().value}function*hh(e,t){for(const o of e)yield*t(o)}function uh(e,t){const o=e[Symbol.iterator]();let r=o.next();if(r.done)return"";let n=String(r.value);for(;r=o.next(),!r.done;)n+=`${t}${r.value}`;return n}function*ph(...e){for(const t of e)if(null!=t)for(const e of t)yield e}function fh(e,t,o){return`command:${e}?${encodeURIComponent(JSON.stringify({webview:t,webviewInstance:o}))}`}At`
	.sr-only,
	.sr-only-focusable:not(:active):not(:focus) {
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		width: 1px;
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
	}
`;const mh=At`
	outline: 1px solid var(--color-focus-border);
	outline-offset: -1px;
`,gh=At`
	outline: 1px solid var(--color-focus-border);
	outline-offset: 2px;
`,bh=At`
	:host {
		box-sizing: border-box;
	}
	:host *,
	:host *::before,
	:host *::after {
		box-sizing: inherit;
	}
	[hidden] {
		display: none !important;
	}
`,vh=At`
	a {
		color: var(--vscode-textLink-foreground);
		text-decoration: none;
	}
	a:focus {
		${mh}
	}
	a:hover {
		text-decoration: underline;
	}
`;At`
	::-webkit-scrollbar {
		width: 10px;
		height: 10px;
	}
	::-webkit-scrollbar-corner {
		background-color: transparent;
	}

	::-webkit-scrollbar-thumb {
		background-color: transparent;
		border-color: inherit;
		border-right-style: inset;
		border-right-width: calc(100vw + 100vh);
		border-radius: unset !important;
	}
	::-webkit-scrollbar-thumb:hover {
		border-color: var(--vscode-scrollbarSlider-hoverBackground);
	}
	::-webkit-scrollbar-thumb:active {
		border-color: var(--vscode-scrollbarSlider-activeBackground);
	}

	.scrollable {
		border-color: transparent;
		transition: border-color 1s linear;
	}

	:host(:hover) .scrollable,
	:host(:focus-within) .scrollable {
		border-color: var(--vscode-scrollbarSlider-background);
		transition: none;
	}

	:host-context(.preload) .scrollable {
		transition: none;
	}
`;Zi.define("sl-tooltip");var yh=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,_h=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?wh(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&yh(t,o,c),c};Ti("tooltip.show",null),Ti("tooltip.hide",null);let xh=class extends lit_element_r{constructor(){super(...arguments),this.placement="bottom",this.disabled=!1}firstUpdated(){this.observer=new MutationObserver((e=>{for(const t of e)if("attributes"===t.type&&"data-current-placement"===t.attributeName){const e=t.target.getAttribute("data-current-placement");e?this.setAttribute("data-current-placement",e):this.removeAttribute("data-current-placement")}}));const e=this.shadowRoot?.querySelector("sl-tooltip")?.shadowRoot;this.observer.observe(e,{attributes:!0,attributeFilter:["data-current-placement"],subtree:!0})}disconnectedCallback(){this.observer?.disconnect()}render(){return vo`<sl-tooltip
			.placement=${this.placement}
			?disabled=${this.disabled}
			.distance=${this.distance??xo}
			hoist
		>
			<slot></slot>
			<div slot="content">
				<slot name="content">${this.content}</slot>
			</div>
		</sl-tooltip>`}};xh.styles=At`
		sl-tooltip {
			--max-width: 320px;
			--hide-delay: 0ms;
			--show-delay: 500ms;
		}

		sl-tooltip::part(base__popup) {
			pointer-events: none;
		}

		sl-tooltip::part(body) {
			border: 1px solid var(--gl-tooltip-border-color);
			box-shadow: 0 2px 8px var(--gl-tooltip-shadow);
		}

		sl-tooltip::part(base__arrow) {
			border: 1px solid var(--gl-tooltip-border-color);
			z-index: 1;
		}

		:host([data-current-placement^='top']) sl-tooltip::part(base__arrow) {
			border-top-width: 0;
			border-left-width: 0;
		}

		:host([data-current-placement^='bottom']) sl-tooltip::part(base__arrow) {
			border-bottom-width: 0;
			border-right-width: 0;
		}

		:host([data-current-placement^='left']) sl-tooltip::part(base__arrow) {
			border-bottom-width: 0;
			border-left-width: 0;
		}

		:host([data-current-placement^='right']) sl-tooltip::part(base__arrow) {
			border-top-width: 0;
			border-right-width: 0;
		}
	`,_h([Xo()],xh.prototype,"content",2),_h([Xo({reflect:!0})],xh.prototype,"placement",2),_h([Xo({type:Boolean})],xh.prototype,"disabled",2),_h([Xo({type:Number})],xh.prototype,"distance",2),_h([Xo({type:Boolean})],xh.prototype,"hoist",2),xh=_h([qo("gl-tooltip")],xh);var Ch=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,Sh=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?kh(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Ch(t,o,c),c};let Rh=class extends lit_element_r{constructor(){super(...arguments),this.disabled=!1,this.full=!1}get role(){return this.href?"link":"button"}updated(e){super.updated(e),e.has("disabled")&&this.setAttribute("aria-disabled",this.disabled.toString())}render(){return this.tooltip?vo`<gl-tooltip .content=${this.tooltip}>${this.renderControl()}</gl-tooltip>`:this.querySelectorAll('[slot="tooltip"]').length>0?vo`<gl-tooltip>
				${this.renderControl()}
				<slot name="tooltip" slot="content"></slot>
			</gl-tooltip>`:this.renderControl()}renderControl(){return null!=this.href?vo`<a
				class="control"
				tabindex="${!1===this.disabled?0:-1}"
				href=${this.href}
				@keypress=${e=>this.onLinkKeypress(e)}
				><slot name="prefix"></slot><slot class="label"></slot><slot name="suffix"></slot
			></a>`:vo`<button class="control" ?disabled=${this.disabled}>
			<slot name="prefix"></slot><slot class="label"></slot><slot name="suffix"></slot>
		</button>`}onLinkKeypress(e){" "===e.key&&this.control.click()}focus(e){this.control.focus(e)}blur(){this.control.blur()}click(){this.control.click()}};function Th(e,t){return Xi({...t,elementClass:e,react:m()})}Rh.shadowRootOptions={...lit_element_r.shadowRootOptions,delegatesFocus:!0},Rh.styles=[bh,At`
			:host {
				--button-foreground: var(--color-button-foreground);
				--button-background: var(--color-button-background);
				--button-hover-background: var(--vscode-button-hoverBackground);
				--button-padding: 0.4rem;
				--button-gap: 0.6rem;
				--button-compact-padding: 0.4rem;
				--button-tight-padding: 0.4rem 0.8rem;
				--button-line-height: 1.35;
				--button-border: var(--vscode-button-border, transparent);

				display: inline-block;
				border: none;
				font-family: inherit;
				font-size: inherit;
				line-height: var(--button-line-height);
				text-align: center;
				text-decoration: none;
				user-select: none;
				background: var(--button-background);
				color: var(--button-foreground);
				cursor: pointer;
				border: 1px solid var(--button-border);
				border-radius: var(--gk-action-radius, 0.3rem);
			}

			.control {
				box-sizing: border-box;
				display: inline-flex;
				flex-direction: row;
				justify-content: center;
				align-items: center;
				gap: var(--button-gap);
				padding: var(--button-padding);
				line-height: var(--button-line-height);

				color: inherit;
				text-decoration: none;

				width: max-content;
				height: 100%;
				cursor: pointer;
			}

			button.control {
				appearance: none;
				background: transparent;
				border: none;
			}

			.control:focus {
				outline: none;
			}

			.label {
				display: inline-block;
			}

			:host(:hover) {
				background: var(--button-hover-background);
			}

			:host(:focus-within) {
				${gh}
			}

			:host([full]),
			:host([full]) .control {
				width: 100%;
			}

			:host([appearance='secondary']) {
				--button-background: var(--vscode-button-secondaryBackground);
				--button-foreground: var(--vscode-button-secondaryForeground);
				--button-hover-background: var(--vscode-button-secondaryHoverBackground);
			}

			:host([appearance='toolbar']) {
				--button-background: transparent;
				--button-foreground: var(--vscode-foreground);
				--button-hover-background: var(--vscode-toolbar-hoverBackground);
				--button-border: transparent;
			}

			:host([appearance='alert']) {
				--button-background: transparent;
				--button-border: var(--color-alert-infoBorder);
				--button-foreground: var(--color-button-foreground);
				--button-hover-background: var(--color-alert-infoBorder);
				--button-line-height: 1.64;
				width: max-content;
			}

			:host-context(.vscode-light):host([appearance='alert']:not(:hover)),
			:host-context(.vscode-high-contrast-light):host([appearance='alert']:not(:hover)) {
				--button-foreground: var(--color-foreground);
			}

			:host([appearance='toolbar'][href]) > a {
				display: flex;
				align-items: center;
			}

			:host([appearance='alert'][href]) > a {
				display: block;
				width: max-content;
			}

			:host([density='compact']) .control {
				padding: var(--button-compact-padding);
			}

			:host([density='tight']) .control {
				padding: var(--button-tight-padding);
			}

			:host([density='tight']) .control ::slotted(code-icon) {
				--code-icon-size: 11px;
				--code-icon-v-align: unset;
			}

			:host([disabled]) {
				opacity: 0.4;
				cursor: not-allowed;
				pointer-events: none;
			}

			gl-tooltip {
				height: 100%;
				display: inline-flex;
				align-items: center;
				justify-content: center;
			}
		`],Sh([tr(".control")],Rh.prototype,"control",2),Sh([Xo({reflect:!0})],Rh.prototype,"appearance",2),Sh([Xo({type:Boolean,reflect:!0})],Rh.prototype,"disabled",2),Sh([Xo({reflect:!0})],Rh.prototype,"density",2),Sh([Xo({type:Boolean,reflect:!0})],Rh.prototype,"full",2),Sh([Xo()],Rh.prototype,"href",2),Sh([Xo({reflect:!0})],Rh.prototype,"role",1),Sh([Xo()],Rh.prototype,"tooltip",2),Rh=Sh([qo("gl-button")],Rh);const Eh=Th(Rh,{tagName:"gl-button"}),Oh=new WeakMap;function Ih(e,t){return function(o,r,n){let c=Oh.get(o.constructor);null==c&&Oh.set(o.constructor,c=[]),c.push({method:n.value,keys:Array.isArray(e)?e:[e],afterFirstUpdate:t?.afterFirstUpdate??!1})}}class GlElement extends lit_element_r{emit(e,t,o){const r=new CustomEvent(e,{bubbles:!0,cancelable:!1,composed:!0,...o,detail:t});return this.dispatchEvent(r),r}update(e){const t=Oh.get(this.constructor);if(null!=t)for(const{keys:o,method:r,afterFirstUpdate:n}of t){if(n&&!this.hasUpdated)continue;const t=o.filter((t=>e.has(t)));t.length&&r.call(this,t)}super.update(e)}}const Mh=At`
	:host {
		--checkbox-foreground: var(--vscode-checkbox-foreground);
		--checkbox-background: var(--vscode-checkbox-background);
		--checkbox-border: var(--vscode-checkbox-border);
		--checkbox-checked-foreground: var(--vscode-inputOption-activeForeground);
		--checkbox-checked-background: var(--vscode-inputOption-activeBackground);
		--checkbox-checked-border: var(--vscode-inputOption-activeBorder);
		--checkbox-active-background: var(--vscode-checkbox-selectBackground);
		--checkbox-active-border: var(--vscode-checkbox-selectBorder);
		--checkbox-hover-background: var(--vscode-inputOption-hoverBackground);
		--checkbox-radius: 3px;
		--checkbox-border-width: 1px;
		--checkbox-size: 1.6rem;
		--checkbox-spacing: 1rem;

		display: block;
		margin-block: 0.8rem;
	}

	label {
		display: flex;
		gap: var(--checkbox-spacing);
		align-items: center;
		user-select: none;
		white-space: nowrap;
		cursor: pointer;
		color: var(--checkbox-foreground);
	}

	:host([disabled]) label {
		cursor: default;
		opacity: 0.5;
	}

	.label-text {
		display: block;
		line-height: normal;
		margin-inline-end: var(--checkbox-spacing);
	}

	.input {
		position: absolute;
		z-index: -1;
		opacity: 0;
	}
	.control {
		flex-shrink: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: relative;
		width: var(--checkbox-size);
		height: var(--checkbox-size);
		box-sizing: border-box;
		border-radius: var(--checkbox-radius);
		color: var(--checkbox-foreground);
		background: var(--checkbox-background);
		border: var(--checkbox-border-width, 1px) solid var(--vscode-checkbox-border);
	}

	.input:hover + .control {
		background-color: var(--checkbox-hover-background);
	}

	.input:focus-visible + .control,
	.input:focus + .control {
		outline: 1px solid var(--vscode-focusBorder);
		outline-offset: 2px;
	}

	.input:active + .control {
		background-color: var(--checkbox-active-background);
		border-color: var(--checkbox-active-border);
	}

	:host([checked]) .control {
		color: var(--checkbox-checked-foreground);
		background-color: var(--checkbox-checked-background);
		border-color: var(--checkbox-checked-border);
	}

	code-icon {
		pointer-events: none;
	}
`;var zh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,Ah=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Dh(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&zh(t,o,c),c};const $h=Object.freeze({add:"\\ea60",plus:"\\ea60","gist-new":"\\ea60","repo-create":"\\ea60",lightbulb:"\\ea61","light-bulb":"\\ea61",repo:"\\ea62","repo-delete":"\\ea62","gist-fork":"\\ea63","repo-forked":"\\ea63","git-pull-request":"\\ea64","git-pull-request-abandoned":"\\ea64","record-keys":"\\ea65",keyboard:"\\ea65",tag:"\\ea66","tag-add":"\\ea66","tag-remove":"\\ea66",person:"\\ea67","person-follow":"\\ea67","person-outline":"\\ea67","person-filled":"\\ea67","git-branch":"\\ea68","git-branch-create":"\\ea68","git-branch-delete":"\\ea68","source-control":"\\ea68",mirror:"\\ea69","mirror-public":"\\ea69",star:"\\ea6a","star-add":"\\ea6a","star-delete":"\\ea6a","star-empty":"\\ea6a",comment:"\\ea6b","comment-add":"\\ea6b",alert:"\\ea6c",warning:"\\ea6c",search:"\\ea6d","search-save":"\\ea6d","log-out":"\\ea6e","sign-out":"\\ea6e","log-in":"\\ea6f","sign-in":"\\ea6f",eye:"\\ea70","eye-unwatch":"\\ea70","eye-watch":"\\ea70","circle-filled":"\\ea71","primitive-dot":"\\ea71","close-dirty":"\\ea71","debug-breakpoint":"\\ea71","debug-breakpoint-disabled":"\\ea71","debug-hint":"\\ea71","primitive-square":"\\ea72",edit:"\\ea73",pencil:"\\ea73",info:"\\ea74","issue-opened":"\\ea74","gist-private":"\\ea75","git-fork-private":"\\ea75",lock:"\\ea75","mirror-private":"\\ea75",close:"\\ea76","remove-close":"\\ea76",x:"\\ea76","repo-sync":"\\ea77",sync:"\\ea77",clone:"\\ea78","desktop-download":"\\ea78",beaker:"\\ea79",microscope:"\\ea79",vm:"\\ea7a","device-desktop":"\\ea7a",file:"\\ea7b","file-text":"\\ea7b",more:"\\ea7c",ellipsis:"\\ea7c","kebab-horizontal":"\\ea7c","mail-reply":"\\ea7d",reply:"\\ea7d",organization:"\\ea7e","organization-filled":"\\ea7e","organization-outline":"\\ea7e","new-file":"\\ea7f","file-add":"\\ea7f","new-folder":"\\ea80","file-directory-create":"\\ea80",trash:"\\ea81",trashcan:"\\ea81",history:"\\ea82",clock:"\\ea82",folder:"\\ea83","file-directory":"\\ea83","symbol-folder":"\\ea83","logo-github":"\\ea84","mark-github":"\\ea84",github:"\\ea84",terminal:"\\ea85",console:"\\ea85",repl:"\\ea85",zap:"\\ea86","symbol-event":"\\ea86",error:"\\ea87",stop:"\\ea87",variable:"\\ea88","symbol-variable":"\\ea88",array:"\\ea8a","symbol-array":"\\ea8a","symbol-module":"\\ea8b","symbol-package":"\\ea8b","symbol-namespace":"\\ea8b","symbol-object":"\\ea8b","symbol-method":"\\ea8c","symbol-function":"\\ea8c","symbol-constructor":"\\ea8c","symbol-boolean":"\\ea8f","symbol-null":"\\ea8f","symbol-numeric":"\\ea90","symbol-number":"\\ea90","symbol-structure":"\\ea91","symbol-struct":"\\ea91","symbol-parameter":"\\ea92","symbol-type-parameter":"\\ea92","symbol-key":"\\ea93","symbol-text":"\\ea93","symbol-reference":"\\ea94","go-to-file":"\\ea94","symbol-enum":"\\ea95","symbol-value":"\\ea95","symbol-ruler":"\\ea96","symbol-unit":"\\ea96","activate-breakpoints":"\\ea97",archive:"\\ea98","arrow-both":"\\ea99","arrow-down":"\\ea9a","arrow-left":"\\ea9b","arrow-right":"\\ea9c","arrow-small-down":"\\ea9d","arrow-small-left":"\\ea9e","arrow-small-right":"\\ea9f","arrow-small-up":"\\eaa0","arrow-up":"\\eaa1",bell:"\\eaa2",bold:"\\eaa3",book:"\\eaa4",bookmark:"\\eaa5","debug-breakpoint-conditional-unverified":"\\eaa6","debug-breakpoint-conditional":"\\eaa7","debug-breakpoint-conditional-disabled":"\\eaa7","debug-breakpoint-data-unverified":"\\eaa8","debug-breakpoint-data":"\\eaa9","debug-breakpoint-data-disabled":"\\eaa9","debug-breakpoint-log-unverified":"\\eaaa","debug-breakpoint-log":"\\eaab","debug-breakpoint-log-disabled":"\\eaab",briefcase:"\\eaac",broadcast:"\\eaad",browser:"\\eaae",bug:"\\eaaf",calendar:"\\eab0","case-sensitive":"\\eab1",check:"\\eab2",checklist:"\\eab3","chevron-down":"\\eab4","chevron-left":"\\eab5","chevron-right":"\\eab6","chevron-up":"\\eab7","chrome-close":"\\eab8","chrome-maximize":"\\eab9","chrome-minimize":"\\eaba","chrome-restore":"\\eabb","circle-outline":"\\eabc","debug-breakpoint-unverified":"\\eabc","circle-slash":"\\eabd","circuit-board":"\\eabe","clear-all":"\\eabf",clippy:"\\eac0","close-all":"\\eac1","cloud-download":"\\eac2","cloud-upload":"\\eac3",code:"\\eac4","collapse-all":"\\eac5","color-mode":"\\eac6","comment-discussion":"\\eac7","credit-card":"\\eac9",dash:"\\eacc",dashboard:"\\eacd",database:"\\eace","debug-continue":"\\eacf","debug-disconnect":"\\ead0","debug-pause":"\\ead1","debug-restart":"\\ead2","debug-start":"\\ead3","debug-step-into":"\\ead4","debug-step-out":"\\ead5","debug-step-over":"\\ead6","debug-stop":"\\ead7",debug:"\\ead8","device-camera-video":"\\ead9","device-camera":"\\eada","device-mobile":"\\eadb","diff-added":"\\eadc","diff-ignored":"\\eadd","diff-modified":"\\eade","diff-removed":"\\eadf","diff-renamed":"\\eae0",diff:"\\eae1",discard:"\\eae2","editor-layout":"\\eae3","empty-window":"\\eae4",exclude:"\\eae5",extensions:"\\eae6","eye-closed":"\\eae7","file-binary":"\\eae8","file-code":"\\eae9","file-media":"\\eaea","file-pdf":"\\eaeb","file-submodule":"\\eaec","file-symlink-directory":"\\eaed","file-symlink-file":"\\eaee","file-zip":"\\eaef",files:"\\eaf0",filter:"\\eaf1",flame:"\\eaf2","fold-down":"\\eaf3","fold-up":"\\eaf4",fold:"\\eaf5","folder-active":"\\eaf6","folder-opened":"\\eaf7",gear:"\\eaf8",gift:"\\eaf9","gist-secret":"\\eafa",gist:"\\eafb","git-commit":"\\eafc","git-compare":"\\eafd","compare-changes":"\\eafd","git-merge":"\\eafe","github-action":"\\eaff","github-alt":"\\eb00",globe:"\\eb01",grabber:"\\eb02",graph:"\\eb03",gripper:"\\eb04",heart:"\\eb05",home:"\\eb06","horizontal-rule":"\\eb07",hubot:"\\eb08",inbox:"\\eb09","issue-reopened":"\\eb0b",issues:"\\eb0c",italic:"\\eb0d",jersey:"\\eb0e",json:"\\eb0f","kebab-vertical":"\\eb10",key:"\\eb11",law:"\\eb12","lightbulb-autofix":"\\eb13","link-external":"\\eb14",link:"\\eb15","list-ordered":"\\eb16","list-unordered":"\\eb17","live-share":"\\eb18",loading:"\\eb19",location:"\\eb1a","mail-read":"\\eb1b",mail:"\\eb1c",markdown:"\\eb1d",megaphone:"\\eb1e",mention:"\\eb1f",milestone:"\\eb20","mortar-board":"\\eb21",move:"\\eb22","multiple-windows":"\\eb23",mute:"\\eb24","no-newline":"\\eb25",note:"\\eb26",octoface:"\\eb27","open-preview":"\\eb28",package:"\\eb29",paintcan:"\\eb2a",pin:"\\eb2b",play:"\\eb2c",run:"\\eb2c",plug:"\\eb2d","preserve-case":"\\eb2e",preview:"\\eb2f",project:"\\eb30",pulse:"\\eb31",question:"\\eb32",quote:"\\eb33","radio-tower":"\\eb34",reactions:"\\eb35",references:"\\eb36",refresh:"\\eb37",regex:"\\eb38","remote-explorer":"\\eb39",remote:"\\eb3a",remove:"\\eb3b","replace-all":"\\eb3c",replace:"\\eb3d","repo-clone":"\\eb3e","repo-force-push":"\\eb3f","repo-pull":"\\eb40","repo-push":"\\eb41",report:"\\eb42","request-changes":"\\eb43",rocket:"\\eb44","root-folder-opened":"\\eb45","root-folder":"\\eb46",rss:"\\eb47",ruby:"\\eb48","save-all":"\\eb49","save-as":"\\eb4a",save:"\\eb4b","screen-full":"\\eb4c","screen-normal":"\\eb4d","search-stop":"\\eb4e",server:"\\eb50","settings-gear":"\\eb51",settings:"\\eb52",shield:"\\eb53",smiley:"\\eb54","sort-precedence":"\\eb55","split-horizontal":"\\eb56","split-vertical":"\\eb57",squirrel:"\\eb58","star-full":"\\eb59","star-half":"\\eb5a","symbol-class":"\\eb5b","symbol-color":"\\eb5c","symbol-constant":"\\eb5d","symbol-enum-member":"\\eb5e","symbol-field":"\\eb5f","symbol-file":"\\eb60","symbol-interface":"\\eb61","symbol-keyword":"\\eb62","symbol-misc":"\\eb63","symbol-operator":"\\eb64","symbol-property":"\\eb65",wrench:"\\eb65","wrench-subaction":"\\eb65","symbol-snippet":"\\eb66",tasklist:"\\eb67",telescope:"\\eb68","text-size":"\\eb69","three-bars":"\\eb6a",thumbsdown:"\\eb6b",thumbsup:"\\eb6c",tools:"\\eb6d","triangle-down":"\\eb6e","triangle-left":"\\eb6f","triangle-right":"\\eb70","triangle-up":"\\eb71",twitter:"\\eb72",unfold:"\\eb73",unlock:"\\eb74",unmute:"\\eb75",unverified:"\\eb76",verified:"\\eb77",versions:"\\eb78","vm-active":"\\eb79","vm-outline":"\\eb7a","vm-running":"\\eb7b",watch:"\\eb7c",whitespace:"\\eb7d","whole-word":"\\eb7e",window:"\\eb7f","word-wrap":"\\eb80","zoom-in":"\\eb81","zoom-out":"\\eb82","list-filter":"\\eb83","list-flat":"\\eb84","list-selection":"\\eb85",selection:"\\eb85","list-tree":"\\eb86","debug-breakpoint-function-unverified":"\\eb87","debug-breakpoint-function":"\\eb88","debug-breakpoint-function-disabled":"\\eb88","debug-stackframe-active":"\\eb89","debug-stackframe-dot":"\\eb8a","debug-stackframe":"\\eb8b","debug-stackframe-focused":"\\eb8b","debug-breakpoint-unsupported":"\\eb8c","symbol-string":"\\eb8d","debug-reverse-continue":"\\eb8e","debug-step-back":"\\eb8f","debug-restart-frame":"\\eb90","debug-alt":"\\eb91","call-incoming":"\\eb92","call-outgoing":"\\eb93",menu:"\\eb94","expand-all":"\\eb95",feedback:"\\eb96","group-by-ref-type":"\\eb97","ungroup-by-ref-type":"\\eb98",account:"\\eb99","bell-dot":"\\eb9a","debug-console":"\\eb9b",library:"\\eb9c",output:"\\eb9d","run-all":"\\eb9e","sync-ignored":"\\eb9f",pinned:"\\eba0","github-inverted":"\\eba1","server-process":"\\eba2","server-environment":"\\eba3",pass:"\\eba4","issue-closed":"\\eba4","stop-circle":"\\eba5","play-circle":"\\eba6",record:"\\eba7","debug-alt-small":"\\eba8","vm-connect":"\\eba9",cloud:"\\ebaa",merge:"\\ebab",export:"\\ebac","graph-left":"\\ebad",magnet:"\\ebae",notebook:"\\ebaf",redo:"\\ebb0","check-all":"\\ebb1","pinned-dirty":"\\ebb2","pass-filled":"\\ebb3","circle-large-filled":"\\ebb4","circle-large-outline":"\\ebb5",combine:"\\ebb6",gather:"\\ebb6",table:"\\ebb7","variable-group":"\\ebb8","type-hierarchy":"\\ebb9","type-hierarchy-sub":"\\ebba","type-hierarchy-super":"\\ebbb","git-pull-request-create":"\\ebbc","run-above":"\\ebbd","run-below":"\\ebbe","notebook-template":"\\ebbf","debug-rerun":"\\ebc0","workspace-trusted":"\\ebc1","workspace-untrusted":"\\ebc2","workspace-unknown":"\\ebc3","terminal-cmd":"\\ebc4","terminal-debian":"\\ebc5","terminal-linux":"\\ebc6","terminal-powershell":"\\ebc7","terminal-tmux":"\\ebc8","terminal-ubuntu":"\\ebc9","terminal-bash":"\\ebca","arrow-swap":"\\ebcb",copy:"\\ebcc","person-add":"\\ebcd","filter-filled":"\\ebce",wand:"\\ebcf","debug-line-by-line":"\\ebd0",inspect:"\\ebd1",layers:"\\ebd2","layers-dot":"\\ebd3","layers-active":"\\ebd4",compass:"\\ebd5","compass-dot":"\\ebd6","compass-active":"\\ebd7",azure:"\\ebd8","issue-draft":"\\ebd9","git-pull-request-closed":"\\ebda","git-pull-request-draft":"\\ebdb","debug-all":"\\ebdc","debug-coverage":"\\ebdd","run-errors":"\\ebde","folder-library":"\\ebdf","debug-continue-small":"\\ebe0","beaker-stop":"\\ebe1","graph-line":"\\ebe2","graph-scatter":"\\ebe3","pie-chart":"\\ebe4",bracket:"\\eb0f","bracket-dot":"\\ebe5","bracket-error":"\\ebe6","lock-small":"\\ebe7","azure-devops":"\\ebe8","verified-filled":"\\ebe9",newline:"\\ebea",layout:"\\ebeb","layout-activitybar-left":"\\ebec","layout-activitybar-right":"\\ebed","layout-panel-left":"\\ebee","layout-panel-center":"\\ebef","layout-panel-justify":"\\ebf0","layout-panel-right":"\\ebf1","layout-panel":"\\ebf2","layout-sidebar-left":"\\ebf3","layout-sidebar-right":"\\ebf4","layout-statusbar":"\\ebf5","layout-menubar":"\\ebf6","layout-centered":"\\ebf7",target:"\\ebf8",indent:"\\ebf9","record-small":"\\ebfa","error-small":"\\ebfb","terminal-decoration-error":"\\ebfb","arrow-circle-down":"\\ebfc","arrow-circle-left":"\\ebfd","arrow-circle-right":"\\ebfe","arrow-circle-up":"\\ebff","layout-sidebar-right-off":"\\ec00","layout-panel-off":"\\ec01","layout-sidebar-left-off":"\\ec02",blank:"\\ec03","heart-filled":"\\ec04",map:"\\ec05","map-filled":"\\ec06","circle-small":"\\ec07","bell-slash":"\\ec08","bell-slash-dot":"\\ec09","comment-unresolved":"\\ec0a","git-pull-request-go-to-changes":"\\ec0b","git-pull-request-new-changes":"\\ec0c","search-fuzzy":"\\ec0d","comment-draft":"\\ec0e",send:"\\ec0f",sparkle:"\\ec10",insert:"\\ec11","gl-commit-horizontal":"\\f101","gl-graph":"\\f102","gl-next-commit":"\\f103","gl-prev-commit-menu":"\\f104","gl-prev-commit":"\\f105","gl-compare-ref-working":"\\f106","gl-branches-view":"\\f107","gl-commit-view":"\\f108","gl-commits-view":"\\f109","gl-compare-view":"\\f10a","gl-contributors-view":"\\f10b","gl-history-view":"\\f10c","gl-remotes-view":"\\f10d","gl-repositories-view":"\\f10e","gl-search-view":"\\f10f","gl-stashes-view":"\\f110","gl-tags-view":"\\f111","gl-worktrees-view":"\\f112","gl-gitlens":"\\f113","gl-stash-pop":"\\f114","gl-stash-save":"\\f115","gl-unplug":"\\f116","gl-open-revision":"\\f117","gl-switch":"\\f118","gl-expand":"\\f119","gl-list-auto":"\\f11a","gl-repo-force-push":"\\f11b","gl-pinned-filled":"\\f11c","gl-clock":"\\f11d","gl-provider-azdo":"\\f11e","gl-provider-bitbucket":"\\f11f","gl-provider-gerrit":"\\f120","gl-provider-gitea":"\\f121","gl-provider-github":"\\f122","gl-provider-gitlab":"\\f123","gl-gitlens-inspect":"\\f124","gl-workspaces-view":"\\f125","gl-cloud-patch":"\\f128","gl-cloud-patch-share":"\\f129","gl-inspect":"\\f12a","gl-repository-filled":"\\f12b","gl-code-suggestion":"\\f12d","gl-diff-multiple":"\\f12e","gl-diff-single":"\\f12f","gl-repo-fetch":"\\f130","gl-repo-pull":"\\f131","gl-repo-push":"\\f132","gl-provider-jira":"\\f133"});let Ph=class extends lit_element_r{constructor(){super(...arguments),this.icon="",this.modifier="",this.size=void 0}updated(e){e.has("size")&&this.style.setProperty("--code-icon-size",`${this.size}px`),super.update(e)}};Ph.styles=At`
		:host {
			--code-icon-size: 16px;
			--code-icon-v-align: text-bottom;

			font: normal normal normal var(--code-icon-size, 16px) / 1 codicon;
			display: inline-block;
			text-decoration: none;
			text-rendering: auto;
			text-align: center;
			-webkit-font-smoothing: antialiased;
			-moz-osx-font-smoothing: grayscale;
			user-select: none;
			-webkit-user-select: none;
			-ms-user-select: none;
			color: inherit;
			vertical-align: var(--code-icon-v-align);
			letter-spacing: normal;
		}

		:host([icon^='gl-']) {
			font-family: 'glicons';
		}

		${Dt(Object.entries($h).map((([e,t])=>`\n\t\t\t\t\t\t:host([icon='${e}'])::before {\n\t\t\t\t\t\t\tcontent: '${t}';\n\t\t\t\t\t\t}\n\t\t\t\t\t`)).join(""))}

		:host([icon='gl-pinned-filled']):before {
			/* TODO: see relative positioning needed in every use-case */
			position: relative;
			left: 1px;
		}

		@keyframes codicon-spin {
			100% {
				transform: rotate(360deg);
			}
		}

		:host([modifier='spin']) {
			/* Use steps to throttle FPS to reduce CPU usage */
			animation: codicon-spin 1.5s steps(30) infinite;
		}
		:host([icon='loading'][modifier='spin']) {
			/* Use steps to throttle FPS to reduce CPU usage */
			animation: codicon-spin 1.5s steps(30) infinite;

			/* custom speed & easing for loading icon */
			animation-duration: 1s !important;
			animation-timing-function: cubic-bezier(0.53, 0.21, 0.29, 0.67) !important;
		}

		:host([flip='inline']) {
			transform: rotateY(180deg);
		}

		:host([flip='block']) {
			transform: rotateX(180deg);
		}

		:host([rotate='45']) {
			transform: rotateZ(45deg);
		}
	`,Ah([Xo({reflect:!0})],Ph.prototype,"icon",2),Ah([Xo({reflect:!0})],Ph.prototype,"modifier",2),Ah([Xo({type:Number})],Ph.prototype,"size",2),Ah([Xo({reflect:!0})],Ph.prototype,"flip",2),Ah([Xo({reflect:!0})],Ph.prototype,"rotate",2),Ph=Ah([qo("code-icon")],Ph);var Nh=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,Hh=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Lh(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Nh(t,o,c),c};const Fh="gl-checkbox";let Bh=class extends GlElement{constructor(){super(),this.disabled=!1,this.value="",this._defaultChecked=!1,this.checked=!1,this._defaultChecked=this.checked}get defaultChecked(){return this._defaultChecked}handleChange(e){this.checked=e.target.checked;const t=new CustomEvent("gl-change-value");this.dispatchEvent(t)}renderCheck(){if(this.checked)return vo` <code-icon icon="check"></code-icon> `}render(){return vo`<label ?aria-disabled=${this.disabled}
			><input
				class="input"
				.disabled=${this.disabled}
				type="checkbox"
				.checked=${this.checked}
				@change=${this.handleChange}
			/>
			<div class="control">${this.renderCheck()}</div>
			<slot class="label-text"></slot>
		</label>`}};Bh.shadowRootOptions={...GlElement.shadowRootOptions,delegatesFocus:!0},Bh.styles=[Mh],Hh([Xo({type:Boolean,reflect:!0})],Bh.prototype,"disabled",2),Hh([Xo({type:String})],Bh.prototype,"value",2),Hh([Xo({type:Boolean})],Bh.prototype,"defaultChecked",1),Hh([Xo({type:Boolean,reflect:!0})],Bh.prototype,"checked",2),Bh=Hh([qo(Fh)],Bh);const Wh=Th(Bh,{tagName:Fh,events:{onChange:"gl-change-value"}}),Gh=Th(Ph,{tagName:"code-icon"}),Uh=At`
	/*
	:host {
		display: inline-block;
	}
    */

	.indicator {
		display: inline-block;
		border-radius: calc(var(--gl-indicator-size, 0.8rem) * 2);
		width: var(--gl-indicator-size, 0.8rem);
		aspect-ratio: 1;
		background-color: var(--gl-indicator-color);
		vertical-align: text-bottom;
	}
`,Vh=At`
	.indicator--pulse {
		animation: 1.5s ease 0s infinite normal none running pulse;
	}

	@keyframes pulse {
		0% {
			box-shadow: 0 0 0 0 var(--gl-indicator-pulse-color);
		}
		70% {
			box-shadow: 0 0 0 var(--gl-indicator-size, 0.8rem) transparent;
		}
		100% {
			box-shadow: 0 0 0 0 transparent;
		}
	}
`;var jh=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,qh=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Zh(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&jh(t,o,c),c};const Yh="gl-indicator";let Kh=class extends lit_element_r{constructor(){super(...arguments),this.pulse=!1}render(){return vo`<slot class="indicator${this.pulse?" indicator--pulse":""}"></slot>`}};Kh.styles=[Uh,Vh],qh([Xo({type:Boolean})],Kh.prototype,"pulse",2),Kh=qh([qo(Yh)],Kh);const Xh=Th(Kh,{tagName:Yh});class private_async_helpers_s{constructor(e){this.Y=e}disconnect(){this.Y=void 0}reconnect(e){this.Y=e}deref(){return this.Y}}class private_async_helpers_i{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??=new Promise((e=>this.q=e))}resume(){this.q?.(),this.Z=this.q=void 0}}const Qh=e=>!(e=>null===e||"object"!=typeof e&&"function"!=typeof e)(e)&&"function"==typeof e.then,Jh=1073741823;const eu=bi(class until_c extends async_directive_f{constructor(){super(...arguments),this._$Cwt=Jh,this._$Cbt=[],this._$CK=new private_async_helpers_s(this),this._$CX=new private_async_helpers_i}render(...e){return e.find((e=>!Qh(e)))??_o}update(e,t){const o=this._$Cbt;let r=o.length;this._$Cbt=t;const n=this._$CK,c=this._$CX;this.isConnected||this.disconnected();for(let e=0;e<t.length&&!(e>this._$Cwt);e++){const d=t[e];if(!Qh(d))return this._$Cwt=e,d;e<r&&d===o[e]||(this._$Cwt=Jh,r=0,Promise.resolve(d).then((async e=>{for(;c.get();)await c.get();const t=n.deref();if(void 0!==t){const o=t._$Cbt.indexOf(d);o>-1&&o<t._$Cwt&&(t._$Cwt=o,t.setValue(e))}})))}return _o}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});function tu(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let ou={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function ru(e){ou=e}const iu=/[&<>"']/,nu=new RegExp(iu.source,"g"),su=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,au=new RegExp(su.source,"g"),lu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cu=e=>lu[e];function du(e,t){if(t){if(iu.test(e))return e.replace(nu,cu)}else if(su.test(e))return e.replace(au,cu);return e}const hu=/(^|[^\[])\^/g;function uu(e,t){let o="string"==typeof e?e:e.source;t=t||"";const r={replace:(e,t)=>{let n="string"==typeof t?t:t.source;return n=n.replace(hu,"$1"),o=o.replace(e,n),r},getRegex:()=>new RegExp(o,t)};return r}function pu(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const fu={exec:()=>null};function mu(e,t){const o=e.replace(/\|/g,((e,t,o)=>{let r=!1,n=t;for(;--n>=0&&"\\"===o[n];)r=!r;return r?"|":" |"})),r=o.split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function gu(e,t,o){const r=e.length;if(0===r)return"";let n=0;for(;n<r;){const c=e.charAt(r-n-1);if(c!==t||o){if(c===t||!o)break;n++}else n++}return e.slice(0,r-n)}function bu(e,t,o,r){const n=t.href,c=t.title?du(t.title):null,d=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:o,href:n,title:c,text:d,tokens:r.inlineTokens(d)};return r.state.inLink=!1,e}return{type:"image",raw:o,href:n,title:c,text:du(d)}}class _Tokenizer{options;rules;lexer;constructor(e){this.options=e||ou}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:gu(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],o=function(e,t){const o=e.match(/^(\s+)(?:```)/);if(null===o)return t;const r=o[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[o]=t;return o.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:o}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=gu(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:gu(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=gu(t[0],"\n").split("\n"),o="",r="";const n=[];for(;e.length>0;){let t=!1;const c=[];let d;for(d=0;d<e.length;d++)if(/^ {0,3}>/.test(e[d]))c.push(e[d]),t=!0;else{if(t)break;c.push(e[d])}e=e.slice(d);const h=c.join("\n"),u=h.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n    $1").replace(/^ {0,3}>[ \t]?/gm,"");o=o?`${o}\n${h}`:h,r=r?`${r}\n${u}`:u;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,n,!0),this.lexer.state.top=p,0===e.length)break;const m=n[n.length-1];if("code"===m?.type)break;if("blockquote"===m?.type){const t=m,c=t.raw+"\n"+e.join("\n"),d=this.blockquote(c);n[n.length-1]=d,o=o.substring(0,o.length-t.raw.length)+d.raw,r=r.substring(0,r.length-t.text.length)+d.text;break}if("list"!==m?.type);else{const t=m,c=t.raw+"\n"+e.join("\n"),d=this.list(c);n[n.length-1]=d,o=o.substring(0,o.length-m.raw.length)+d.raw,r=r.substring(0,r.length-t.raw.length)+d.raw,e=c.substring(n[n.length-1].raw.length).split("\n")}}return{type:"blockquote",raw:o,tokens:n,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let o=t[1].trim();const r=o.length>1,n={type:"list",raw:"",ordered:r,start:r?+o.slice(0,-1):"",loose:!1,items:[]};o=r?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=r?o:"[*+-]");const c=new RegExp(`^( {0,3}${o})((?:[\t ][^\\n]*)?(?:\\n|$))`);let d=!1;for(;e;){let o=!1,r="",h="";if(!(t=c.exec(e)))break;if(this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let u=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),p=e.split("\n",1)[0],m=!u.trim(),g=0;if(this.options.pedantic?(g=2,h=u.trimStart()):m?g=t[1].length+1:(g=t[2].search(/[^ ]/),g=g>4?1:g,h=u.slice(g),g+=t[1].length),m&&/^[ \t]*$/.test(p)&&(r+=p+"\n",e=e.substring(p.length+1),o=!0),!o){const t=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),o=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),n=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),c=new RegExp(`^ {0,${Math.min(3,g-1)}}#`),d=new RegExp(`^ {0,${Math.min(3,g-1)}}<[a-z].*>`,"i");for(;e;){const v=e.split("\n",1)[0];let y;if(p=v,this.options.pedantic?(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  "),y=p):y=p.replace(/\t/g,"    "),n.test(p))break;if(c.test(p))break;if(d.test(p))break;if(t.test(p))break;if(o.test(p))break;if(y.search(/[^ ]/)>=g||!p.trim())h+="\n"+y.slice(g);else{if(m)break;if(u.replace(/\t/g,"    ").search(/[^ ]/)>=4)break;if(n.test(u))break;if(c.test(u))break;if(o.test(u))break;h+="\n"+p}m||p.trim()||(m=!0),r+=v+"\n",e=e.substring(v.length+1),u=y.slice(g)}}n.loose||(d?n.loose=!0:/\n[ \t]*\n[ \t]*$/.test(r)&&(d=!0));let v,y=null;this.options.gfm&&(y=/^\[[ xX]\] /.exec(h),y&&(v="[ ] "!==y[0],h=h.replace(/^\[[ xX]\] +/,""))),n.items.push({type:"list_item",raw:r,task:!!y,checked:v,loose:!1,text:h,tokens:[]}),n.raw+=r}n.items[n.items.length-1].raw=n.items[n.items.length-1].raw.trimEnd(),n.items[n.items.length-1].text=n.items[n.items.length-1].text.trimEnd(),n.raw=n.raw.trimEnd();for(let e=0;e<n.items.length;e++)if(this.lexer.state.top=!1,n.items[e].tokens=this.lexer.blockTokens(n.items[e].text,[]),!n.loose){const t=n.items[e].tokens.filter((e=>"space"===e.type)),o=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));n.loose=o}if(n.loose)for(let e=0;e<n.items.length;e++)n.items[e].loose=!0;return n}}html(e){const t=this.rules.block.html.exec(e);if(t){return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),o=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:o,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const o=mu(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),n=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],c={type:"table",raw:t[0],header:[],align:[],rows:[]};if(o.length===r.length){for(const e of r)/^ *-+: *$/.test(e)?c.align.push("right"):/^ *:-+: *$/.test(e)?c.align.push("center"):/^ *:-+ *$/.test(e)?c.align.push("left"):c.align.push(null);for(let e=0;e<o.length;e++)c.header.push({text:o[e],tokens:this.lexer.inline(o[e]),header:!0,align:c.align[e]});for(const e of n)c.rows.push(mu(e,c.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:c.align[t]}))));return c}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:du(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=gu(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let o=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])o++;else if(e[r]===t[1]&&(o--,o<0))return r;return-1}(t[2],"()");if(e>-1){const o=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let o=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);e&&(o=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(o=this.options.pedantic&&!/>$/.test(e)?o.slice(1):o.slice(1,-1)),bu(t,{href:o?o.replace(this.rules.inline.anyPunctuation,"$1"):o,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},t[0],this.lexer)}}reflink(e,t){let o;if((o=this.rules.inline.reflink.exec(e))||(o=this.rules.inline.nolink.exec(e))){const e=t[(o[2]||o[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=o[0].charAt(0);return{type:"text",raw:e,text:e}}return bu(o,e,o[0],this.lexer)}}emStrong(e,t,o=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r)return;if(r[3]&&o.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!o||this.rules.inline.punctuation.exec(o)){const o=[...r[0]].length-1;let n,c,d=o,h=0;const u="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+o);null!=(r=u.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(c=[...n].length,r[3]||r[4]){d+=c;continue}if((r[5]||r[6])&&o%3&&!((o+c)%3)){h+=c;continue}if(d-=c,d>0)continue;c=Math.min(c,c+d+h);const t=[...r[0]][0].length,u=e.slice(0,o+r.index+t+c);if(Math.min(o,c)%2){const e=u.slice(1,-1);return{type:"em",raw:u,text:e,tokens:this.lexer.inlineTokens(e)}}const p=u.slice(2,-2);return{type:"strong",raw:u,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const o=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return o&&r&&(e=e.substring(1,e.length-1)),e=du(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,o;return"@"===t[2]?(e=du(t[1]),o="mailto:"+e):(e=du(t[1]),o=e),{type:"link",raw:t[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,o;if("@"===t[2])e=du(t[0]),o="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=du(t[0]),o="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:du(t[0]),{type:"text",raw:t[0],text:e}}}}const vu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,yu=/(?:[*+-]|\d{1,9}[.)])/,wu=uu(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,yu).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),_u=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,xu=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Cu=uu(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xu).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ku=uu(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,yu).getRegex(),Su="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ru=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Tu=uu("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Ru).replace("tag",Su).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Eu=uu(_u).replace("hr",vu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Su).getRegex(),Ou={blockquote:uu(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Eu).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Cu,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:vu,html:Tu,lheading:wu,list:ku,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:Eu,table:fu,text:/^[^\n]+/},Iu=uu("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",vu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Su).getRegex(),Mu={...Ou,table:Iu,paragraph:uu(_u).replace("hr",vu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Iu).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Su).getRegex()},zu={...Ou,html:uu("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ru).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:fu,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:uu(_u).replace("hr",vu).replace("heading"," *#{1,6} *[^\n]").replace("lheading",wu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Du=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Au=/^( {2,}|\\)\n(?!\s*$)/,$u="\\p{P}\\p{S}",Pu=uu(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,$u).getRegex(),Nu=uu(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,$u).getRegex(),Lu=uu("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,$u).getRegex(),Hu=uu("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,$u).getRegex(),Fu=uu(/\\([punct])/,"gu").replace(/punct/g,$u).getRegex(),Bu=uu(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Wu=uu(Ru).replace("(?:--\x3e|$)","--\x3e").getRegex(),Gu=uu("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Wu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Uu=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Vu=uu(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Uu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ju=uu(/^!?\[(label)\]\[(ref)\]/).replace("label",Uu).replace("ref",xu).getRegex(),Zu=uu(/^!?\[(ref)\](?:\[\])?/).replace("ref",xu).getRegex(),qu={_backpedal:fu,anyPunctuation:Fu,autolink:Bu,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:Au,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:fu,emStrongLDelim:Nu,emStrongRDelimAst:Lu,emStrongRDelimUnd:Hu,escape:Du,link:Vu,nolink:Zu,punctuation:Pu,reflink:ju,reflinkSearch:uu("reflink|nolink(?!\\()","g").replace("reflink",ju).replace("nolink",Zu).getRegex(),tag:Gu,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:fu},Yu={...qu,link:uu(/^!?\[(label)\]\((.*?)\)/).replace("label",Uu).getRegex(),reflink:uu(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Uu).getRegex()},Ku={...qu,escape:uu(Du).replace("])","~|])").getRegex(),url:uu(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Xu={...Ku,br:uu(Au).replace("{2,}","*").getRegex(),text:uu(Ku.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Qu={normal:Ou,gfm:Mu,pedantic:zu},Ju={normal:qu,gfm:Ku,breaks:Xu,pedantic:Yu};class _Lexer{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ou,this.options.tokenizer=this.options.tokenizer||new _Tokenizer,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Qu.normal,inline:Ju.normal};this.options.pedantic?(t.block=Qu.pedantic,t.inline=Ju.pedantic):this.options.gfm&&(t.block=Qu.gfm,this.options.breaks?t.inline=Ju.breaks:t.inline=Ju.gfm),this.tokenizer.rules=t}static get rules(){return{block:Qu,inline:Ju}}static lex(e,t){return new _Lexer(t).lex(e)}static lexInline(e,t){return new _Lexer(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],o=!1){let r,n,c;for(this.options.pedantic&&(e=e.replace(/\t/g,"    ").replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((o=>!!(r=o.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(c=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const o=e.slice(1);let r;this.options.extensions.startBlock.forEach((e=>{r=e.call({lexer:this},o),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(c=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(c)))n=t[t.length-1],o&&"paragraph"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=c.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let o,r,n,c,d,h,u=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(c=this.tokenizer.rules.inline.reflinkSearch.exec(u));)e.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(c=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(c=this.tokenizer.rules.inline.anyPunctuation.exec(u));)u=u.slice(0,c.index)+"++"+u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(d||(h=""),d=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(o=r.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))))if(o=this.tokenizer.escape(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.tag(e))e=e.substring(o.raw.length),r=t[t.length-1],r&&"text"===o.type&&"text"===r.type?(r.raw+=o.raw,r.text+=o.text):t.push(o);else if(o=this.tokenizer.link(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(o.raw.length),r=t[t.length-1],r&&"text"===o.type&&"text"===r.type?(r.raw+=o.raw,r.text+=o.text):t.push(o);else if(o=this.tokenizer.emStrong(e,u,h))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.codespan(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.br(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.del(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.autolink(e))e=e.substring(o.raw.length),t.push(o);else if(this.state.inLink||!(o=this.tokenizer.url(e))){if(n=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const o=e.slice(1);let r;this.options.extensions.startInline.forEach((e=>{r=e.call({lexer:this},o),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(n))e=e.substring(o.raw.length),"_"!==o.raw.slice(-1)&&(h=o.raw.slice(-1)),d=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=o.raw,r.text+=o.text):t.push(o);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}else e=e.substring(o.raw.length),t.push(o);return t}}class _Renderer{options;parser;constructor(e){this.options=e||ou}space(e){return""}code({text:e,lang:t,escaped:o}){const r=(t||"").match(/^\S*/)?.[0],n=e.replace(/\n$/,"")+"\n";return r?'<pre><code class="language-'+du(r)+'">'+(o?n:du(n,!0))+"</code></pre>\n":"<pre><code>"+(o?n:du(n,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,o=e.start;let r="";for(let t=0;t<e.items.length;t++){const o=e.items[t];r+=this.listitem(o)}const n=t?"ol":"ul";return"<"+n+(t&&1!==o?' start="'+o+'"':"")+">\n"+r+"</"+n+">\n"}listitem(e){let t="";if(e.task){const o=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&"paragraph"===e.tokens[0].type?(e.tokens[0].text=o+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=o+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:o+" ",text:o+" "}):t+=o+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",o="";for(let t=0;t<e.header.length;t++)o+=this.tablecell(e.header[t]);t+=this.tablerow({text:o});let r="";for(let t=0;t<e.rows.length;t++){const n=e.rows[t];o="";for(let e=0;e<n.length;e++)o+=this.tablecell(n[e]);r+=this.tablerow({text:o})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),o=e.header?"th":"td";return(e.align?`<${o} align="${e.align}">`:`<${o}>`)+t+`</${o}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:o}){const r=this.parser.parseInline(o),n=pu(e);if(null===n)return r;let c='<a href="'+(e=n)+'"';return t&&(c+=' title="'+t+'"'),c+=">"+r+"</a>",c}image({href:e,title:t,text:o}){const r=pu(e);if(null===r)return o;let n=`<img src="${e=r}" alt="${o}"`;return t&&(n+=` title="${t}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class _TextRenderer{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class _Parser{options;renderer;textRenderer;constructor(e){this.options=e||ou,this.options.renderer=this.options.renderer||new _Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _TextRenderer}static parse(e,t){return new _Parser(t).parse(e)}static parseInline(e,t){return new _Parser(t).parseInline(e)}parse(e,t=!0){let o="";for(let r=0;r<e.length;r++){const n=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const e=n,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){o+=t||"";continue}}const c=n;switch(c.type){case"space":o+=this.renderer.space(c);continue;case"hr":o+=this.renderer.hr(c);continue;case"heading":o+=this.renderer.heading(c);continue;case"code":o+=this.renderer.code(c);continue;case"table":o+=this.renderer.table(c);continue;case"blockquote":o+=this.renderer.blockquote(c);continue;case"list":o+=this.renderer.list(c);continue;case"html":o+=this.renderer.html(c);continue;case"paragraph":o+=this.renderer.paragraph(c);continue;case"text":{let n=c,d=this.renderer.text(n);for(;r+1<e.length&&"text"===e[r+1].type;)n=e[++r],d+="\n"+this.renderer.text(n);o+=t?this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d}]}):d;continue}default:{const e='Token with "'+c.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return o}parseInline(e,t){t=t||this.renderer;let o="";for(let r=0;r<e.length;r++){const n=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){o+=e||"";continue}}const c=n;switch(c.type){case"escape":case"text":o+=t.text(c);break;case"html":o+=t.html(c);break;case"link":o+=t.link(c);break;case"image":o+=t.image(c);break;case"strong":o+=t.strong(c);break;case"em":o+=t.em(c);break;case"codespan":o+=t.codespan(c);break;case"br":o+=t.br(c);break;case"del":o+=t.del(c);break;default:{const e='Token with "'+c.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return o}}class _Hooks{options;block;constructor(e){this.options=e||ou}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?_Lexer.lex:_Lexer.lexInline}provideParser(){return this.block?_Parser.parse:_Parser.parseInline}}const ep=new class Marked{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=_Parser;Renderer=_Renderer;TextRenderer=_TextRenderer;Lexer=_Lexer;Tokenizer=_Tokenizer;Hooks=_Hooks;constructor(...e){this.use(...e)}walkTokens(e,t){let o=[];for(const r of e)switch(o=o.concat(t.call(this,r)),r.type){case"table":{const e=r;for(const r of e.header)o=o.concat(this.walkTokens(r.tokens,t));for(const r of e.rows)for(const e of r)o=o.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=r;o=o.concat(this.walkTokens(e.items,t));break}default:{const e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((r=>{const n=e[r].flat(1/0);o=o.concat(this.walkTokens(n,t))})):e.tokens&&(o=o.concat(this.walkTokens(e.tokens,t)))}}return o}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const o={...e};if(o.async=this.defaults.async||o.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const o=t.renderers[e.name];t.renderers[e.name]=o?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=o.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const o=t[e.level];o?o.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),o.extensions=t),e.renderer){const t=this.defaults.renderer||new _Renderer(this.defaults);for(const o in e.renderer){if(!(o in t))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const r=o,n=e.renderer[r],c=t[r];t[r]=(...e)=>{let o=n.apply(t,e);return!1===o&&(o=c.apply(t,e)),o||""}}o.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new _Tokenizer(this.defaults);for(const o in e.tokenizer){if(!(o in t))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const r=o,n=e.tokenizer[r],c=t[r];t[r]=(...e)=>{let o=n.apply(t,e);return!1===o&&(o=c.apply(t,e)),o}}o.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new _Hooks;for(const o in e.hooks){if(!(o in t))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const r=o,n=e.hooks[r],c=t[r];_Hooks.passThroughHooks.has(o)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(n.call(t,e)).then((e=>c.call(t,e)));const o=n.call(t,e);return c.call(t,o)}:t[r]=(...e)=>{let o=n.apply(t,e);return!1===o&&(o=c.apply(t,e)),o}}o.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,r=e.walkTokens;o.walkTokens=function(e){let o=[];return o.push(r.call(this,e)),t&&(o=o.concat(t.call(this,e))),o}}this.defaults={...this.defaults,...o}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return _Lexer.lex(e,t??this.defaults)}parser(e,t){return _Parser.parse(e,t??this.defaults)}parseMarkdown(e){return(t,o)=>{const r={...o},n={...this.defaults,...r},c=this.onError(!!n.silent,!!n.async);if(!0===this.defaults.async&&!1===r.async)return c(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return c(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));n.hooks&&(n.hooks.options=n,n.hooks.block=e);const d=n.hooks?n.hooks.provideLexer():e?_Lexer.lex:_Lexer.lexInline,h=n.hooks?n.hooks.provideParser():e?_Parser.parse:_Parser.parseInline;if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(t):t).then((e=>d(e,n))).then((e=>n.hooks?n.hooks.processAllTokens(e):e)).then((e=>n.walkTokens?Promise.all(this.walkTokens(e,n.walkTokens)).then((()=>e)):e)).then((e=>h(e,n))).then((e=>n.hooks?n.hooks.postprocess(e):e)).catch(c);try{n.hooks&&(t=n.hooks.preprocess(t));let e=d(t,n);n.hooks&&(e=n.hooks.processAllTokens(e)),n.walkTokens&&this.walkTokens(e,n.walkTokens);let o=h(e,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(e){return c(e)}}}onError(e,t){return o=>{if(o.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+du(o.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(o);throw o}}};function tp(e,t){return ep.parse(e,t)}tp.options=tp.setOptions=function(e){return ep.setOptions(e),tp.defaults=ep.defaults,ru(tp.defaults),tp},tp.getDefaults=tu,tp.defaults=ou,tp.use=function(...e){return ep.use(...e),tp.defaults=ep.defaults,ru(tp.defaults),tp},tp.walkTokens=function(e,t){return ep.walkTokens(e,t)},tp.parseInline=ep.parseInline,tp.Parser=_Parser,tp.parser=_Parser.parse,tp.Renderer=_Renderer,tp.TextRenderer=_TextRenderer,tp.Lexer=_Lexer,tp.lexer=_Lexer.lex,tp.Tokenizer=_Tokenizer,tp.Hooks=_Hooks,tp.parse=tp;tp.options,tp.setOptions,tp.use,tp.walkTokens,tp.parseInline,_Parser.parse,_Lexer.lex;var op=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,ip=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?rp(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&op(t,o,c),c};let np=class extends lit_element_r{constructor(){super(...arguments),this.markdown=""}render(){return vo`${this.markdown?eu(this.renderMarkdown(this.markdown),"Loading..."):""}`}async renderMarkdown(e){tp.setOptions({gfm:!0}),tp.use({renderer:{image:function({href:e,title:t,text:o}){let r=[],n=[];return e&&(({href:e,dimensions:r}=function(e){const t=[],o=e.split("|").map((e=>e.trim()));e=o[0];const r=o[1];if(r){const e=/height=(\d+)/.exec(r),o=/width=(\d+)/.exec(r),n=e?e[1]:"",c=o?o[1]:"",d=isFinite(parseInt(c)),h=isFinite(parseInt(n));d&&t.push(`width="${c}"`),h&&t.push(`height="${n}"`)}return{href:e,dimensions:t}}(e)),n.push(`src="${pp(e)}"`)),o&&n.push(`alt="${pp(o)}"`),t&&n.push(`title="${pp(t)}"`),r.length&&(n=n.concat(r)),`<img ${n.join(" ")}>`},paragraph:function({tokens:e}){const t=this.parser.parseInline(e);return`<p>${t}</p>`},link:function({href:e,title:t,tokens:o}){if("string"!=typeof e)return"";let r=this.parser.parseInline(o);return e===r&&(r=fp(r)),t="string"==typeof t?pp(fp(t)):"",`<a href="${e=fp(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}" title="${t||e}" draggable="false">${r}</a>`},code:function({text:e,lang:t}){return e=e.replace(/</g,"&lt;"),`<pre class="language-${t}"><code>${e}</code></pre>`},codespan:function({text:e}){return`<code>${e=e.replace(/</g,"&lt;")}</code>`}}});let t=await tp.parse((o=e,o.replace(dp,(e=>`\\${e}`))));var o;return t=function(e){const t=[];let o,r=0,n=0;for(;null!==(o=hp.exec(e));){n=o.index||0,r<n&&t.push(e.substring(r,n)),r=(o.index||0)+o[0].length;const[,c,d]=o;t.push(c?`$(${d})`:up({id:d}))}r<e.length&&t.push(e.substring(r));return t.join("")}(t),Gs(t)}};np.styles=At`
		a,
		a code {
			text-decoration: none;
			color: var(--vscode-textLink-foreground);
		}

		a:hover,
		a:hover code {
			color: var(--vscode-textLink-activeForeground);
		}

		a:hover:not(.disabled) {
			cursor: pointer;
		}

		p,
		.code,
		ul,
		h1,
		h2,
		h3,
		h4,
		h5,
		h6 {
			margin: 8px 0;
		}

		h1,
		h2,
		h3,
		h4,
		h5,
		h6 {
			line-height: 1.1;
		}

		code {
			background: var(--vscode-textCodeBlock-background);
			border-radius: 3px;
			padding: 0px 4px 2px 4px;
			font-family: var(--vscode-editor-font-family);
		}

		code code-icon {
			color: inherit;
			font-size: inherit;
			vertical-align: middle;
		}

		hr {
			border: none;
			border-top: 1px solid var(--color-foreground--25);
		}

		p:first-child,
		.code:first-child,
		ul:first-child {
			margin-top: 0;
		}

		p:last-child,
		.code:last-child,
		ul:last-child {
			margin-bottom: 0;
		}

		/* MarkupContent Layout */
		ul {
			padding-left: 20px;
		}
		ol {
			padding-left: 20px;
		}

		li > p {
			margin-bottom: 0;
		}

		li > ul {
			margin-top: 0;
		}
	`,ip([Xo({type:String})],np.prototype,"markdown",2),np=ip([qo("gl-markdown")],np);const sp="[A-Za-z0-9-]+",ap="~[A-Za-z]+",lp=new RegExp(`^(${sp})(${ap})?$`),cp=new RegExp(`\\$\\(${sp}(?:${ap})?\\)`,"g"),dp=new RegExp(`\\\\${cp.source}`,"g"),hp=new RegExp(`(\\\\)?\\$\\((${sp}(?:${ap})?)\\)`,"g");function up(e){const t=lp.exec(e.id);let[,o,r]=t??[void 0,"error",void 0];return o.startsWith("gitlens-")&&(o=`gl-${o.substring(8)}`),`<code-icon icon="${o}"${r?` modifier="${r}"`:""}></code-icon>`}function pp(e){return e.replace(/"/g,"&quot;")}function fp(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}const mp=Th(np,{tagName:"gl-markdown"});var gp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor;let vp=class extends lit_element_r{firstUpdated(e){this.role="listbox"}render(){return vo`<slot></slot>`}};vp.styles=[bh,At`
			:host {
				width: max-content;
				background-color: var(--vscode-menu-background);
				border: 1px solid var(--vscode-menu-border);
				padding-bottom: 0.6rem;
			}
		`],vp=((e,t,o,r)=>{for(var n,c=r>1?void 0:r?bp(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&gp(t,o,c),c})([qo("menu-list")],vp);var yp=Object.defineProperty,wp=Object.getOwnPropertyDescriptor,_p=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?wp(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&yp(t,o,c),c};let xp=class extends lit_element_r{constructor(){super(...arguments),this.disabled=!1,this.role="option"}updateInteractiveState(){this.tabIndex=this.disabled?-1:"option"===this.role?0:-1}updated(e){(e.has("disabled")||e.has("role"))&&this.updateInteractiveState()}render(){return this.href?vo`<a href=${this.href}><slot></slot></a>`:vo`<slot></slot>`}};xp.styles=[bh,At`
			:host {
				display: block;
				font-family: inherit;
				border: none;
				padding: 0 0.6rem;
				cursor: pointer;
				color: var(--vscode-menu-foreground);
				background-color: var(--vscode-menu-background);
				text-align: left;
				height: auto;
				line-height: 2.2rem;
			}

			:host([role='option']:hover) {
				color: var(--vscode-menu-selectionForeground);
				background-color: var(--vscode-menu-selectionBackground);
			}

			:host([disabled]) {
				pointer-events: none;
				cursor: default;
				opacity: 0.5;
			}

			:host([aria-selected='true']) {
				opacity: 1;
				color: var(--vscode-menu-selectionForeground);
				background-color: var(--vscode-menu-background);
			}

			:host([href]) {
				padding-inline: 0;
			}

			a {
				display: block;
				color: inherit;
				text-decoration: none;
				padding: 0 0.6rem;
			}
		`],_p([Xo({type:Boolean,reflect:!0})],xp.prototype,"disabled",2),_p([Xo({reflect:!0})],xp.prototype,"href",2),_p([Xo({reflect:!0})],xp.prototype,"role",2),xp=_p([qo("menu-item")],xp);var Cp=Object.defineProperty,kp=Object.getOwnPropertyDescriptor;let Sp=class extends lit_element_r{render(){return vo`<slot></slot>`}};Sp.styles=[bh,At`
			:host {
				display: block;
				text-transform: uppercase;
				font-size: 0.84em;
				line-height: 2.2rem;
				padding-left: 0.6rem;
				padding-right: 0.6rem;
				margin: 0px;
				color: var(--vscode-menu-foreground);
				opacity: 0.6;
				user-select: none;
			}
		`],Sp=((e,t,o,r)=>{for(var n,c=r>1?void 0:r?kp(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Cp(t,o,c),c})([qo("menu-label")],Sp);var Rp=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor;let Ep=class extends lit_element_r{};Ep.styles=[bh,At`
			:host {
				display: block;
				height: 0;
				margin: 0.6rem;
				border-top: 0.1rem solid var(--vscode-menu-separatorBackground);
			}
		`],Ep=((e,t,o,r)=>{for(var n,c=r>1?void 0:r?Tp(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Rp(t,o,c),c})([qo("menu-divider")],Ep);const Op=Th(Ep,{tagName:"menu-divider"}),Ip=Th(xp,{tagName:"menu-item"}),Mp=Th(Sp,{tagName:"menu-label"});Th(vp,{tagName:"menu-list"});xi.define("sl-popup");var zp=Object.defineProperty,Dp=Object.getOwnPropertyDescriptor,Ap=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Dp(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&zp(t,o,c),c};let $p=class extends GlElement{constructor(){super(),this.placement="bottom",this.disabled=!1,this.distance=8,this.open=!1,this.arrow=!0,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleTriggerBlur=e=>{if(this.open&&this.hasTrigger("focus")){if(e.composedPath().includes(this))return;this.hide()}},this.handleTriggerClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleTriggerFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&(e.stopPropagation(),this.hide())},this.handlePopupBlur=e=>{e.composedPath().includes(this)||this.hide()},this.handleWebviewBlur=()=>{this.hide()},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){clearTimeout(this.hoverTimeout);const e=et(getComputedStyle(this).getPropertyValue("--show-delay"));this.hoverTimeout=setTimeout((()=>this.show()),e)}},this.handleMouseOut=e=>{if(this.hasTrigger("hover")){clearTimeout(this.hoverTimeout);const t=e.composedPath();if(t[t.length-2]===this)return;if(this.hasPopupFocus())return;const o=et(getComputedStyle(this).getPropertyValue("--hide-delay"));this.hoverTimeout=setTimeout((()=>this.hide()),o)}},this.addEventListener("blur",this.handleTriggerBlur,!0),this.addEventListener("focus",this.handleTriggerFocus,!0),this.addEventListener("click",this.handleTriggerClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}get currentPlacement(){return this.popup?.getAttribute("data-current-placement")??this.placement}disconnectedCallback(){this.closeWatcher?.destroy(),document.removeEventListener("focusin",this.handlePopupBlur),window.removeEventListener("webview-blur",this.handleWebviewBlur,!1),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasPopupFocus(){return this.matches(':has([slot="content"]:focus-within)')}hasTrigger(e){return this.trigger.split(" ").includes(e)}handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("gl-popover-show"),"CloseWatcher"in window?(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("focusin",this.handlePopupBlur),window.addEventListener("webview-blur",this.handleWebviewBlur,!1),this.body.hidden=!1,this.popup.active=!0,this.popup.reposition(),this.emit("gl-popover-after-show")}else document.removeEventListener("focusin",this.handlePopupBlur),window.removeEventListener("webview-blur",this.handleWebviewBlur,!1),this.emit("gl-popover-hide"),this.closeWatcher?.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.popup.active=!1,this.body.hidden=!0,this.emit("gl-popover-after-hide")}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,tt(this,"gl-popover-after-show")}async hide(){if(this.open)return this.open=!1,tt(this,"gl-popover-after-hide")}render(){return vo`<sl-popup
			part="base"
			exportparts="
				popup:base__popup,
				arrow:base__arrow
			"
			class="popover"
			.anchor=${this.anchor}
			placement=${this.placement}
			distance=${this.distance}
			skidding=${this.skidding}
			strategy=${this.hoist?"fixed":"absolute"}
			auto-size="horizontal"
			auto-size-padding="3"
			flip-padding="3"
			flip
			shift
			?arrow=${this.arrow}
			hover-bridge
		>
			<div slot="anchor" aria-describedby="popover">
				<slot name="anchor"></slot>
			</div>

			<div
				part="body"
				id="popover"
				class="popover__body"
				role="tooltip"
				aria-live=${this.open?"polite":"off"}
			>
				<slot name="content"></slot>
			</div>
		</sl-popup>`}};$p.shadowRootOptions={...lit_element_r.shadowRootOptions,delegatesFocus:!0},$p.styles=At`
		:host {
			--hide-delay: 0ms;
			--show-delay: 500ms;

			display: contents;
		}

		.popover {
			--arrow-size: var(--sl-tooltip-arrow-size);
			--arrow-color: var(--sl-tooltip-background-color);
		}

		.popover::part(popup) {
			z-index: var(--sl-z-index-tooltip);
		}

		.popover::part(arrow) {
			border: 1px solid var(--gl-tooltip-border-color);
			z-index: 1;
		}

		.popover[placement^='top']::part(popup) {
			transform-origin: bottom;
		}

		.popover[placement^='bottom']::part(popup) {
			transform-origin: top;
		}

		.popover[placement^='left']::part(popup) {
			transform-origin: right;
		}

		.popover[placement^='right']::part(popup) {
			transform-origin: left;
		}

		.popover[data-current-placement^='top']::part(arrow) {
			border-top-width: 0;
			border-left-width: 0;
			clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
		}

		.popover[data-current-placement^='bottom']::part(arrow) {
			border-bottom-width: 0;
			border-right-width: 0;
			clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
		}

		.popover[data-current-placement^='left']::part(arrow) {
			border-bottom-width: 0;
			border-left-width: 0;
			clip-path: polygon(0 0, 100% 0, 100% 100%, 70% 100%, 0 30%);
		}

		.popover[data-current-placement^='right']::part(arrow) {
			border-top-width: 0;
			border-right-width: 0;
			clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 70%, 30% 0);
		}

		.popover__body {
			display: block;
			width: fit-content;
			border: 1px solid var(--gl-tooltip-border-color);
			border-radius: var(--sl-tooltip-border-radius);
			box-shadow: 0 2px 8px var(--gl-tooltip-shadow);
			background-color: var(--sl-tooltip-background-color);
			font-family: var(--sl-tooltip-font-family);
			font-size: var(--sl-tooltip-font-size);
			font-weight: var(--sl-tooltip-font-weight);
			line-height: var(--sl-tooltip-line-height);
			text-align: start;
			white-space: normal;
			color: var(--sl-tooltip-color);
			padding: var(--sl-tooltip-padding);
			user-select: none;
			-webkit-user-select: none;
			max-width: min(var(--auto-size-available-width), var(--max-width, 70vw));
			/* max-height: var(--auto-size-available-height);
			overflow: auto; */
			pointer-events: all;
		}

		.popover[data-current-placement^='top'] .popover__body,
		.popover[data-current-placement^='bottom'] .popover__body {
			width: max-content;
		}

		/* .popover::part(hover-bridge) {
			background: tomato;
			opacity: 1;
			z-index: 10000000000;
		} */
	`,Ap([tr("#popover")],$p.prototype,"body",2),Ap([tr("sl-popup")],$p.prototype,"popup",2),Ap([Xo({reflect:!0})],$p.prototype,"placement",2),Ap([Xo({type:Object})],$p.prototype,"anchor",2),Ap([Xo({reflect:!0,type:Boolean})],$p.prototype,"disabled",2),Ap([Xo({type:Number})],$p.prototype,"distance",2),Ap([Xo({reflect:!0,type:Boolean})],$p.prototype,"open",2),Ap([Xo({reflect:!0,type:Boolean})],$p.prototype,"arrow",2),Ap([Xo({type:Number})],$p.prototype,"skidding",2),Ap([Xo()],$p.prototype,"trigger",2),Ap([Xo({type:Boolean})],$p.prototype,"hoist",2),Ap([Ih("open",{afterFirstUpdate:!0})],$p.prototype,"handleOpenChange",1),Ap([Ih(["distance","hoist","placement","skidding"])],$p.prototype,"handleOptionsChange",1),Ap([Ih("disabled")],$p.prototype,"handleDisabledChange",1),$p=Ap([qo("gl-popover")],$p);const Pp=Th($p,{tagName:"gl-popover"}),Np=Th(xh,{tagName:"gl-tooltip"}),Lp=At`
	:host {
		--checkbox-radius: 50%;
		--checkbox-foreground: var(--vscode-radio-inactiveForeground);
		--checkbox-background: var(--vscode-radio-inactiveBackground);
		--checkbox-border: var(--vscode-radio-inactiveBorder);
		--checkbox-checked-foreground: var(--vscode-radio-activeForeground);
		--checkbox-checked-background: var(--vscode-radio-activeBackground);
		--checkbox-checked-border: var(--vscode-radio-activeBorder);
		--checkbox-hover-background: var(--vscode-radio-inactiveHoverBackground);
	}
`;var Hp=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,Bp=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Fp(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Hp(t,o,c),c};const Wp="gl-radio";let Gp=class extends GlElement{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this._parentGroup=void 0}set parentGroup(e){this._parentGroup=e}get parentGroup(){return this._parentGroup}handleClick(){this.value&&this.parentGroup?.setValue(this.value)}renderCircle(){if(this.checked)return vo`<code-icon icon="circle-filled"></code-icon>`}render(){return vo`<label ?aria-disabled=${this.disabled}
			><button class="input" .disabled=${this.disabled} @click=${this.handleClick}></button>
			<div class="control">${this.renderCircle()}</div>
			<slot class="label-text"></slot>
		</label>`}};Gp.shadowRootOptions={...GlElement.shadowRootOptions,delegatesFocus:!0},Gp.styles=[Mh,Lp],Bp([Xo({type:Boolean,reflect:!0})],Gp.prototype,"disabled",2),Bp([Xo({type:String})],Gp.prototype,"value",2),Bp([Xo({type:String,reflect:!0})],Gp.prototype,"name",2),Bp([Xo({type:Boolean,reflect:!0})],Gp.prototype,"checked",2),Bp([Xo({type:Object,attribute:!1})],Gp.prototype,"parentGroup",1),Gp=Bp([qo(Wp)],Gp);var Up=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,jp=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Vp(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Up(t,o,c),c};const Zp="gl-radio-group";let qp=class extends GlElement{constructor(){super(...arguments),this.disabled=!1}handleValueChange(){this.updateRadioElements()}firstUpdated(){this.role="group"}updateRadioElements(e=!1){this.radioEls.forEach((t=>{e&&(t.parentGroup=this),t.checked=t.value===this.value,t.disabled=this.disabled}))}render(){return vo`<slot @slotchange=${()=>this.updateRadioElements(!0)}></slot>`}setValue(e){this.value=e;const t=new CustomEvent("gl-change-value");this.dispatchEvent(t)}};qp.styles=[Lp],jp([Xo({type:Boolean,reflect:!0})],qp.prototype,"disabled",2),jp([Xo({type:String})],qp.prototype,"value",2),jp([Ih(["value","disabled"])],qp.prototype,"handleValueChange",1),jp([function(e){return(t,o)=>{const{slot:r,selector:n}=e??{},c="slot"+(r?`[name=${r}]`:":not([name])");return er(t,o,{get(){const t=this.renderRoot?.querySelector(c),o=t?.assignedElements(e)??[];return void 0===n?o:o.filter((e=>e.matches(n)))}})}}({flatten:!0})],qp.prototype,"radioEls",2),qp=jp([qo(Zp)],qp);const Yp=Th(Gp,{tagName:Wp}),Kp=Th(qp,{tagName:Zp,events:{onChange:"gl-change-value"}}),Xp=[{key:"launchpad-extended",code:"GLLAUNCHPAD24",states:[Gd.Community,Gd.ProPreview,Gd.ProPreviewExpired,Gd.ProTrial,Gd.ProTrialExpired,Gd.ProTrialReactivationEligible],startsOn:new Date("2024-09-27T06:59:00.000Z").getTime(),expiresOn:new Date("2024-10-14T06:59:00.000Z").getTime(),command:{tooltip:"Launchpad sale: Save 75% or more on GitLens Pro"},quickpick:{detail:"$(rocket) Launchpad sale: Save 75% or more on GitLens Pro"}},{key:"devexdays",code:"DEVEXDAYS24",states:[Gd.Community,Gd.ProPreview,Gd.ProPreviewExpired,Gd.ProTrial,Gd.ProTrialExpired,Gd.ProTrialReactivationEligible],startsOn:new Date("2024-10-13T06:59:00.000Z").getTime(),expiresOn:new Date("2024-11-08T06:59:00.000Z").getTime(),command:{tooltip:"Limited-Time sale: Save up to 80% off GitLens Pro"},locations:["account","badge","gate"],quickpick:{detail:"$(star-full) Limited-Time sale: Save up to 80% off GitLens Pro"}},{key:"pro50",states:[Gd.Community,Gd.ProPreview,Gd.ProPreviewExpired,Gd.ProTrial,Gd.ProTrialExpired,Gd.ProTrialReactivationEligible],command:{tooltip:"Limited-Time sale: Save 33% or more on your 1st seat of Pro. See your special price"},quickpick:{detail:"$(star-full) Limited-Time sale: Save 33% or more on your 1st seat of Pro"}}];function Qp(e,t,o){if(null!=e)for(const r of Xp)if((null==o||o===r.key)&&Jp(r,e)){if(null==t||null==r.locations||r.locations.includes(t))return r;break}}function Jp(e,t){const o=Date.now();return(null==e.states||e.states.includes(t))&&(null==e.expiresOn||e.expiresOn>o)&&(null==e.startsOn||e.startsOn<o)}var ef=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,of=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?tf(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&ef(t,o,c),c};let rf=class extends lit_element_r{constructor(){super(...arguments),this.type="info"}get hasPromo(){return null!=this.promo}render(){if(!this.promo)return;const e=this.renderPromo(this.promo);return e?"link"===this.type?vo`<a
				class="link"
				href="${this.promo.command??"command:gitlens.plus.upgrade"}"
				title="${un(this.promo.command?.tooltip)}"
				>${e}</a
			>`:vo`<p class="promo">${e}</p>`:void 0}renderPromo(e){switch(e.key){case"pro50":return vo`<span class="content${"link"===this.type?xo:" muted"}"
					>Limited-Time sale: <b>Save 33% or more</b> on your 1st seat of Pro</span
				>`;case"launchpad-extended":return vo`<span class="content${"link"===this.type?xo:" muted"}"
					>Launchpad sale: <b>Save 75% or more</b> on GitLens Pro</span
				>`;case"devexdays":return vo`<span class="content${"link"===this.type?xo:" muted"}"
					>Limited-time sale: <b>Save up to 80%</b> on GitLen Pro</span
				>`}}};rf.styles=[At`
			:host {
				display: block;
			}

			.promo {
				margin: 0;
				margin-top: 0.8rem;
				text-align: center;
			}

			.header {
				margin-right: 0.4rem;
			}

			.content {
				font-size: smaller;
			}

			.muted {
				opacity: 0.7;
			}

			.link {
				display: block;
				color: inherit;
				max-width: 100%;
				text-align: center;
				text-decoration: none;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}

			.link:hover {
				color: inherit;
				text-decoration: underline;
			}
		`],of([Xo({type:Object})],rf.prototype,"promo",2),of([Xo({reflect:!0,type:String})],rf.prototype,"type",2),of([Xo({reflect:!0,type:Boolean,attribute:"has-promo"})],rf.prototype,"hasPromo",1),rf=of([qo("gl-promo")],rf);var nf=Object.defineProperty,sf=Object.getOwnPropertyDescriptor,af=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?sf(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&nf(t,o,c),c};let lf=class extends lit_element_r{constructor(){super(...arguments),this.cloud=!1,this.placement="bottom",this.preview=!1}get daysRemaining(){return null==this.subscription?0:nh(this.subscription,"days")??0}get state(){return this.subscription?.state}render(){return vo`
			<gl-popover placement=${this.placement} hoist>
				<span slot="anchor" class="badge" tabindex="0">${this.renderBadge()}</span>
				<div slot="content" class="badge-popup" tabindex="-1">
					${this.renderPopoverHeader()}${this.renderPopoverContent()}
				</div>
			</gl-popover>
		`}renderBadge(){const e=this.preview?"Preview":"Pro";if(null!=this.subscription){if(this.state===Gd.VerificationRequired)return vo`${e} <code-icon class="badge-icon" icon="warning" size="10"></code-icon>`;if(ah(this.subscription)||this.cloud&&null!=this.subscription.account)return vo`${e} <code-icon class="badge-icon" icon="check" size="10"></code-icon>`;if(null!=(t=this.state)&&(t===Gd.ProPreview||t===Gd.ProTrial))return vo`${e} <code-icon class="badge-icon" icon="clock" size="10"></code-icon>`}var t;return this.cloud?vo`${e}<span class="badge-icon">â˜�ï¸�</span>`:e}renderPopoverHeader(){const e=vo`<span class="popup-title"
			>${this.preview?"Preview feature":"Pro feature"}${this.cloud?" â˜�ï¸�":""}</span
		>`;return this.state===Gd.Paid?vo`<div class="popup-header">${e}</div>`:this.cloud?this.preview?vo`<div class="popup-header">
					${e}<span class="popup-subtitle"
						>Requires an account and may require a paid plan in the future</span
					>
				</div>`:vo`<div class="popup-header">
				${e}<span class="popup-subtitle"> Requires a paid plan</span>
			</div>`:this.preview?vo`<div class="popup-header">
				${e}<span class="popup-subtitle">May require a paid plan in the future</span>
			</div>`:vo`<div class="popup-header">
			${e}<span class="popup-subtitle"> Requires a paid plan for use on privately-hosted repos</span>
		</div>`}renderPopoverContent(){if(null==this.subscription)return xo;let e;switch(this.state){case Gd.Paid:e=vo`<p>
					Your
					<gl-tooltip hoist content="Show Account view">
						<a href="${cf(Bd.ShowAccountView,void 0)}"
							>${ih(this.subscription?.plan.actual.id??Wd.Pro)}</a
						>
					</gl-tooltip>
					plan provides access to all Pro features.
				</p>`;break;case Gd.VerificationRequired:e=vo`<p>You must verify your email before you can access Pro features.</p>
					<div class="actions">
						<gl-button
							appearance="primary"
							density="tight"
							href="${cf(Bd.PlusResendVerification,this.source)}"
							>Resend Email</gl-button
						>
						<gl-button
							appearance="secondary"
							density="tight"
							href="${cf(Bd.PlusValidate,this.source)}"
							><code-icon icon="refresh"></code-icon
						></gl-button>
					</div>`;break;case Gd.ProTrial:{const t=this.daysRemaining;e=vo`<p>
						You have
						<strong>${t<1?"<1 day":$e("day",t,{infix:" more "})} left</strong>
						in your Pro trial. Once your trial ends, you will only be able to use Pro features on
						publicly-hosted repos.
					</p>
					${this.renderUpgradeActions()}`;break}case Gd.ProTrialExpired:e=vo`<p>
						Your Pro trial has ended. You can now only use Pro features on publicly-hosted repos.
					</p>
					${this.renderUpgradeActions(vo`<p>Please upgrade for full access to Pro features:</p>`)}`;break;case Gd.ProTrialReactivationEligible:e=vo`<p>
						Reactivate your Pro trial and experience all the new Pro features â€” free for another
						${$e("day",7)}!
					</p>
					<div class="actions center">
						<gl-button
							appearance="primary"
							density="tight"
							href="${cf(Bd.PlusReactivateProTrial,this.source)}"
							tooltip="Reactivate your Pro trial for another ${$e("day",7)}"
							>Reactivate Pro Trial</gl-button
						>
					</div>`;break;default:if(!this.cloud&&this.state===Gd.ProPreview){const t=this.daysRemaining;e=vo`<p>
							You have
							<strong>${t<1?"<1 day":$e("day",t,{infix:" more "})} left</strong>
							to preview
							<gl-tooltip hoist content="Pro features that do not require an account"
								><span class="hint">local</span></gl-tooltip
							>
							Pro features.
						</p>
						${this.renderStartTrialActions()}`;break}e=vo`<p>
						You only have access to
						<gl-tooltip hoist content="Pro features that do not require an account"
							><span class="hint">local</span></gl-tooltip
						>
						Pro features on publicly-hosted repos.
					</p>
					${this.renderStartTrialActions()}`}return vo`<div class="popup-content">${e}</div>`}renderStartTrialActions(){return vo`<div class="actions">
			<p>For access to all Pro features:</p>
			<gl-button
				appearance="primary"
				density="tight"
				href="${cf(Bd.PlusSignUp,this.source)}"
				>Start ${7}-day Pro Trial</gl-button
			>
			&nbsp;or <a href="${cf(Bd.PlusLogin,this.source)}" title="Sign In">sign in</a>
		</div>`}renderUpgradeActions(e){const t=Qp(this.state,"badge");return vo`<div class="actions">
			${e??xo}
			<gl-button
				appearance="primary"
				density="tight"
				href="${cf(Bd.PlusUpgrade,this.source)}"
				>Upgrade to Pro</gl-button
			>
			${this.renderPromo(t)}
		</div>`}renderPromo(e){return vo`<gl-promo .promo=${e}></gl-promo>`}};function cf(e,t){return`command:${e}${t?`?${encodeURIComponent(JSON.stringify(t))}`:""}`}lf.styles=[bh,vh,At`
			:host {
				/* position: relative; */
				display: inline-block;
				--gl-feature-badge-color: currentColor;
				--gl-feature-badge-border-color: var(--color-foreground--50);
				--max-width: 40rem;
			}

			a {
				color: var(--color-link);
				text-decoration: underline;
			}

			.badge {
				color: var(--gl-feature-badge-color, currentColor);
				cursor: help;
				font-size: var(--gl-feature-badge-font-size, x-small);
				font-variant: all-small-caps;
				font-weight: 600;
				border: 1px solid var(--gl-feature-badge-border-color, var(--color-foreground--50));
				border-radius: 1rem;
				padding: 0 0.8rem 0.1rem 0.8rem;
				white-space: nowrap;
			}

			.badge:focus {
				${Dt(mh)}
			}

			.badge-icon {
				font-weight: 400;
				margin-left: 0.4rem;
				white-space: nowrap;
			}

			.badge-popup {
				display: flex;
				flex-direction: column;
				white-space: normal;
				gap: 0.6rem;
			}

			.popup-header {
				display: flex;
				flex-direction: column;
				margin-bottom: 0.4rem;
			}

			.popup-title {
				font-size: 1.3rem;
				font-weight: 600;
			}

			.popup-subtitle {
				font-size: smaller;
				margin-top: 0.6rem;
			}

			.popup-content {
				display: flex;
				flex-direction: column;
				border-top: 1px solid var(--color-foreground--25);
				padding-top: 0.6rem;
			}

			.popup-content p {
				margin: 0;
			}

			.popup-content .actions {
				margin-top: 0.8rem;
				margin-bottom: 0.6rem;
			}

			.popup-content .actions:first-child {
				margin-bottom: 0.8rem;
			}

			.popup-content .actions :not(:first-child) {
				margin-top: 0.4rem;
			}

			.popup-content .actions gl-button:not(:first-child) {
				margin-top: 0.8rem;
			}

			.hint {
				border-bottom: 1px dashed currentColor;
			}
		`],af([Xo({type:Boolean})],lf.prototype,"cloud",2),af([Xo({reflect:!0})],lf.prototype,"placement",2),af([Xo({type:Boolean})],lf.prototype,"preview",2),af([Xo({type:Object})],lf.prototype,"source",2),af([Xo({attribute:!1})],lf.prototype,"subscription",2),lf=af([qo("gl-feature-badge")],lf);const df=Th(lf,{tagName:"gl-feature-badge"}),hf=At`
	a {
		color: var(--link-foreground);
		text-decoration: var(--link-decoration-default, none);
	}
	a:focus {
		outline-color: var(--focus-border);
	}
	a:hover {
		color: var(--link-foreground-active);
		text-decoration: underline;
	}
`;var uf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,ff=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?pf(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&uf(t,o,c),c};let mf=class extends lit_element_r{firstUpdated(){"alert"===this.appearance&&queueMicrotask((()=>this.button.focus()))}render(){if(null==this.state)return void(this.hidden=!0);this.hidden=!1;const e="alert"===(this.appearance??"alert")?"alert":xo,t=this.state?Qp(this.state,"gate"):void 0;switch(this.state){case Gd.VerificationRequired:return vo`
					<p class="actions">
						<gl-button
							class="inline"
							appearance="${e}"
							href="${gf(Bd.PlusResendVerification,this.source)}"
							>Resend Email</gl-button
						>
						<gl-button
							class="inline"
							appearance="${e}"
							href="${gf(Bd.PlusValidate,this.source)}"
							><code-icon icon="refresh"></code-icon
						></gl-button>
					</p>
					<p>You must verify your email before you can continue.</p>
				`;case Gd.Community:return vo`
					<gl-button
						appearance="${e}"
						href="${gf(Bd.PlusStartPreviewTrial,this.source)}"
						>Continue</gl-button
					>
					<p>
						Continuing gives you 3 days to preview
						${this.featureWithArticleIfNeeded?`${this.featureWithArticleIfNeeded}  and other `:""}local
						Pro features.<br />
						${"alert"!==e?vo`<br />`:""} For full access to Pro features
						<a href="${gf(Bd.PlusSignUp,this.source)}"
							>start your free ${7}-day Pro trial</a
						>
						or
						<a href="${gf(Bd.PlusLogin,this.source)}" title="Sign In">sign in</a>.
					</p>
				`;case Gd.ProPreviewExpired:return vo`
					<gl-button
						appearance="${e}"
						href="${gf(Bd.PlusSignUp,this.source)}"
						>Start Pro Trial</gl-button
					>
					<p>
						Start your free ${7}-day Pro trial to try
						${this.featureWithArticleIfNeeded?`${this.featureWithArticleIfNeeded} and other `:""}Pro
						features, or
						<a href="${gf(Bd.PlusLogin,this.source)}" title="Sign In">sign in</a>.
					</p>
				`;case Gd.ProTrialExpired:return vo` <gl-button
						appearance="${e}"
						href="${gf(Bd.PlusUpgrade,this.source)}"
						>Upgrade to Pro</gl-button
					>
					${this.renderPromo(t)}
					<p>
						Your Pro trial has ended. Please upgrade for full access to
						${this.featureWithArticleIfNeeded?`${this.featureWithArticleIfNeeded} and other `:""}Pro
						features.
					</p>`;case Gd.ProTrialReactivationEligible:return vo`
					<gl-button
						appearance="${e}"
						href="${gf(Bd.PlusReactivateProTrial,this.source)}"
						>Continue</gl-button
					>
					<p>
						Reactivate your Pro trial and experience
						${this.featureWithArticleIfNeeded?`${this.featureWithArticleIfNeeded} and `:""}all the new
						Pro features â€” free for another ${$e("day",7)}!
					</p>
				`}}renderPromo(e){return vo`<gl-promo .promo=${e}></gl-promo>`}};function gf(e,t){return`command:${e}${t?`?${encodeURIComponent(JSON.stringify(t))}`:""}`}mf.styles=[hf,At`
			:host {
				--gk-action-radius: 0.3rem;
				container-type: inline-size;
			}

			:host([appearance='welcome']) gl-button {
				width: 100%;
				max-width: 300px;
			}

			@container (max-width: 600px) {
				:host([appearance='welcome']) gl-button {
					display: block;
					margin-left: auto;
					margin-right: auto;
				}
			}

			:host([appearance='alert']) gl-button:not(.inline) {
				display: block;
				margin-left: auto;
				margin-right: auto;
			}

			:host-context([appearance='alert']) p:first-child {
				margin-top: 0;
			}

			:host-context([appearance='alert']) p:last-child {
				margin-bottom: 0;
			}

			.actions {
				text-align: center;
			}

			.hint {
				border-bottom: 1px dashed currentColor;
			}
		`],ff([tr("gl-button")],mf.prototype,"button",2),ff([Xo({type:String})],mf.prototype,"appearance",2),ff([Xo()],mf.prototype,"featureWithArticleIfNeeded",2),ff([Xo({type:Object})],mf.prototype,"source",2),ff([Xo({attribute:!1,type:Number})],mf.prototype,"state",2),mf=ff([qo("gl-feature-gate-plus-state")],mf);var bf=Object.defineProperty,vf=Object.getOwnPropertyDescriptor,yf=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?vf(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&bf(t,o,c),c};let wf=class extends lit_element_r{render(){if(!this.visible||null!=this.state&&(null!=(e=this.state)&&(e===Gd.Paid||e===Gd.ProPreview||e===Gd.ProTrial)))return void(this.hidden=!0);var e;const t=this.appearance??"editor"===(document.body.getAttribute("data-placement")??"editor")?"alert":"welcome";return this.hidden=!1,vo`
			<section>
				<slot></slot>
				<slot name="feature"></slot>
				<gl-feature-gate-plus-state
					appearance=${t}
					.featureWithArticleIfNeeded=${this.featureWithArticleIfNeeded}
					.source=${this.source}
					.state=${this.state}
				></gl-feature-gate-plus-state>
			</section>
		`}};wf.styles=At`
		:host {
			--background: var(--vscode-sideBar-background);
			--foreground: var(--vscode-sideBar-foreground);
			--link-foreground: var(--vscode-textLink-foreground);
			--link-foreground-active: var(--vscode-textLink-activeForeground);

			position: absolute;
			top: 0;
			left: 0;
			bottom: 0;
			right: 0;
			overflow: auto;
			z-index: 100;

			box-sizing: border-box;
		}

		:host-context(body[data-placement='editor']),
		:host([appearance='alert']) {
			--background: transparent;
			--foreground: var(--vscode-editor-foreground);

			backdrop-filter: blur(3px) saturate(0.8);
			padding: 0 2rem;
		}

		::slotted(p) {
			margin: revert !important;
		}

		::slotted(p:first-child) {
			margin-top: 0 !important;
		}

		section {
			--section-foreground: var(--foreground);
			--section-background: var(--background);
			--section-border-color: transparent;

			display: flex;
			flex-direction: column;
			padding: 0 2rem 1.3rem 2rem;
			background: var(--section-background);
			color: var(--section-foreground);
			border: 1px solid var(--section-border-color);

			height: min-content;
		}

		:host-context(body[data-placement='editor']) section,
		:host([appearance='alert']) section {
			--section-foreground: var(--color-alert-foreground);
			--section-background: var(--color-alert-infoBackground);
			--section-border-color: var(--color-alert-infoBorder);

			--link-decoration-default: underline;
			--link-foreground: var(--vscode-foreground);
			--link-foreground-active: var(--vscode-foreground);

			border-radius: 0.3rem;
			max-width: 600px;
			max-height: min-content;
			margin: 0.2rem auto;
			padding: 1.3rem;
		}

		:host-context(body[data-placement='editor']) section ::slotted(gl-button),
		:host([appearance='alert']) section ::slotted(gl-button) {
			display: block;
			margin-left: auto;
			margin-right: auto;
		}
	`,yf([Xo({reflect:!0})],wf.prototype,"appearance",2),yf([Xo()],wf.prototype,"featureWithArticleIfNeeded",2),yf([Xo({type:Object})],wf.prototype,"source",2),yf([Xo({attribute:!1,type:Number})],wf.prototype,"state",2),yf([Xo({type:Boolean})],wf.prototype,"visible",2),wf=yf([qo("gl-feature-gate")],wf);const _f=Th(wf,{tagName:"gl-feature-gate"});var xf=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,kf=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Cf(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&xf(t,o,c),c};let Sf=class extends lit_element_r{constructor(){super(...arguments),this.dateStyle="relative",this.date=new Date}render(){const e=eh(this.date,this.format??"MMMM Do, YYYY h:mma");return vo`<gl-tooltip content="${e}"
			><time datetime="${this.date.toISOString()}"
				>${"relative"===this.dateStyle?Jd(this.date):e}</time
			></gl-tooltip
		>`}};kf([Xo()],Sf.prototype,"format",2),kf([Xo({attribute:"date-style"})],Sf.prototype,"dateStyle",2),kf([Xo({converter:{toAttribute:e=>e.getTime(),fromAttribute:(e,t)=>new Date(parseInt(e,10))},reflect:!0})],Sf.prototype,"date",2),Sf=kf([qo("formatted-date")],Sf);var Rf=Object.defineProperty,Tf=Object.getOwnPropertyDescriptor,Ef=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Tf(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Rf(t,o,c),c};let Of=class extends GlElement{constructor(){super(...arguments),this.url="",this.name="",this.status="merged",this.type="autolink",this.identifier="",this.details=!1}renderDate(){return this.date?vo`<formatted-date
			.date=${new Date(this.date)}
			.format=${this.dateFormat}
			.dateStyle=${this.dateStyle}
		></formatted-date>`:xo}render(){let e,t;switch(this.type){case"issue":t="closed"===this.status?"merged":"opened",e="closed"===this.status?"pass":"issues";break;case"pr":switch(t=this.status,this.status){case"merged":e="git-merge";break;case"closed":e="git-pull-request-closed";break;default:e="git-pull-request"}break;default:t="opened",e="link"}return this.compact?vo`
				<span class="icon icon--${t}"><code-icon icon=${e}></code-icon></span>
				<p class="title">${this.identifier}</p>
			`:vo`
			<span class="icon icon--${t}"><code-icon icon=${e}></code-icon></span>
			<p class="title">
				<a href="${this.url}">${this.name}</a>
			</p>
			<p class="date">${this.identifier} ${this.status?this.status:xo} ${this.renderDate()}</p>
			${Wn(!0===this.details,(()=>vo`
					<p class="details">
						<gl-button appearance="toolbar" tooltip="Open Details" @click=${()=>this.onDetailsClicked()}
							><code-icon icon="eye"></code-icon
						></gl-button>
					</p>
				`))}
		`}onDetailsClicked(){this.emit("gl-issue-pull-request-details")}};Of.styles=At`
		:host {
			display: grid;
			gap: 0.25rem 0.6rem;
			justify-content: start;
			font-size: 1.3rem;
			grid-template-columns: min-content 1fr min-content;
		}

		:host([compact]) {
			grid-template-columns: min-content 1fr;
		}

		a {
			color: var(--color-link-foreground);
			text-decoration: none;
		}

		.icon {
			grid-column: 1;
			grid-row: 1 / 3;
			text-align: center;
			padding-top: 0.1rem;
		}

		.icon--opened {
			color: var(--vscode-gitlens-openPullRequestIconColor);
		}
		.icon--closed {
			color: var(--vscode-gitlens-closedPullRequestIconColor);
		}
		.icon--merged {
			color: var(--vscode-gitlens-mergedPullRequestIconColor);
		}

		.title {
			grid-column: 2;
			grid-row: 1;
			margin: 0;
		}

		.date {
			grid-column: 2;
			grid-row: 2;
			margin: 0;
		}

		.details {
			grid-column: 3;
			grid-row: 1 / 3;
			margin: 0;
		}
	`,Ef([Xo()],Of.prototype,"url",2),Ef([Xo()],Of.prototype,"name",2),Ef([Xo()],Of.prototype,"date",2),Ef([Xo()],Of.prototype,"dateFormat",2),Ef([Xo()],Of.prototype,"dateStyle",2),Ef([Xo()],Of.prototype,"status",2),Ef([Xo()],Of.prototype,"type",2),Ef([Xo()],Of.prototype,"identifier",2),Ef([Xo({type:Boolean,reflect:!0})],Of.prototype,"compact",2),Ef([Xo({type:Boolean})],Of.prototype,"details",2),Of=Ef([qo("issue-pull-request")],Of);const If=Th(Of,{tagName:"issue-pull-request",events:{onOpenDetails:"gl-issue-pull-request-details"}});var Mf=Object.defineProperty,zf=Object.getOwnPropertyDescriptor,Df=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?zf(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Mf(t,o,c),c};let Af=class extends lit_element_r{constructor(){super(...arguments),this.mode="infinite",this.active=!1,this.position="bottom"}firstUpdated(){this.setAttribute("role","progressbar")}render(){return vo`<div class="progress-bar"></div>`}};Af.styles=At`
		* {
			box-sizing: border-box;
		}

		:host {
			position: absolute;
			left: 0;
			z-index: 5;
			height: 2px;
			width: 100%;
			overflow: hidden;
		}

		:host([position='bottom']) {
			bottom: 0;
		}

		:host([position='top']) {
			top: 0;
		}

		.progress-bar {
			background-color: var(--vscode-progressBar-background);
			display: none;
			position: absolute;
			left: 0;
			width: 2%;
			height: 2px;
		}

		:host([active]:not([active='false'])) .progress-bar {
			display: inherit;
		}

		:host([mode='discrete']) .progress-bar {
			left: 0;
			transition: width 0.1s linear;
		}

		:host([mode='discrete done']) .progress-bar {
			width: 100%;
		}

		:host([mode='infinite']) .progress-bar {
			animation-name: progress;
			animation-duration: 4s;
			animation-iteration-count: infinite;
			animation-timing-function: steps(100);
			transform: translateZ(0);
		}

		@keyframes progress {
			0% {
				transform: translateX(0) scaleX(1);
			}

			50% {
				transform: translateX(2500%) scaleX(3);
			}

			to {
				transform: translateX(4900%) scaleX(1);
			}
		}
	`,Df([Xo({reflect:!0})],Af.prototype,"mode",2),Df([Xo({type:Boolean})],Af.prototype,"active",2),Df([Xo()],Af.prototype,"position",2),Af=Df([qo("progress-indicator")],Af);const $f=new Map([["","message:"],["=:","message:"],["message:","message:"],["@:","author:"],["author:","author:"],["#:","commit:"],["commit:","commit:"],["?:","file:"],["file:","file:"],["~:","change:"],["change:","change:"],["is:","type:"],["type:","type:"]]),Pf=/(?:^|(\b|\s)*)((=:|message:|@:|author:|#:|commit:|\?:|file:|~:|change:|is:|type:)(?:"[^"]*"?|\w*))(?:$|(\b|\s))/g;var Nf=Object.defineProperty,Lf=Object.getOwnPropertyDescriptor,Hf=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Lf(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Nf(t,o,c),c};let Ff=class extends GlElement{constructor(){super(...arguments),this.errorMessage="",this.label="Search",this.placeholder="Search...",this.value="",this.matchAll=!1,this.matchCase=!1,this.matchRegex=!0,this.debouncedOnSearchChanged=Oe(this.onSearchChanged.bind(this),250),this.searchHistory=[],this.searchHistoryPos=0}get matchCaseOverride(){return!this.matchRegex||this.matchCase}focus(e){this.input.focus(e)}handleFocus(e){this.popoverEl.hide()}handleClear(e){this.focus(),this.value="",this.debouncedOnSearchChanged()}updateHelpText(){null==this._updateHelpTextDebounced&&(this._updateHelpTextDebounced=Oe(this.updateHelpTextCore.bind(this),200)),this._updateHelpTextDebounced()}updateHelpTextCore(){const e=this.input?.selectionStart,t=this.value;if(null!=e&&0!==t.length&&t.includes(":")){const o=new RegExp(Pf,"g");let r;for(;;){if(r=o.exec(t),null==r)break;const[,,n,c]=r;if(e>r.index&&e<=r.index+(n?.trim().length??0))return void(this.helpType=$f.get(c))}}this.helpType=void 0}handleInputClick(e){this.updateHelpText()}handleInput(e){const t=e.target?.value;this.value=t,this.updateHelpText(),this.debouncedOnSearchChanged()}handleMatchAll(e){this.matchAll=!this.matchAll,this.debouncedOnSearchChanged()}handleMatchCase(e){this.matchCase=!this.matchCase,this.debouncedOnSearchChanged()}handleMatchRegex(e){this.matchRegex=!this.matchRegex,this.debouncedOnSearchChanged()}handleKeyup(e){this.updateHelpText()}handleShortcutKeys(e){if(!["Enter","ArrowUp","ArrowDown"].includes(e.key)||e.ctrlKey||e.metaKey||e.altKey)return!0;if(e.preventDefault(),"Enter"===e.key)this.emit("gl-search-navigate",{direction:e.shiftKey?"previous":"next"});else if(0!==this.searchHistory.length){const t="ArrowDown"===e.key?1:-1,o=this.searchHistoryPos+t;if(o>-1&&o<this.searchHistory.length){this.searchHistoryPos=o;const e=this.searchHistory[o];e!==this.value&&(this.value=e,this.updateHelpText(),this.debouncedOnSearchChanged())}}return!1}handleInsertToken(e){this.value+=`${this.value.length>0?" ":""}${e}`,window.requestAnimationFrame((()=>{this.updateHelpText(),"@me"!==e&&"is:stash"!==e&&"type:stash"!==e||this.debouncedOnSearchChanged(),this.input.focus(),this.input.selectionStart=this.value.length}))}onSearchChanged(){const e={query:this.value,matchAll:this.matchAll,matchCase:this.matchCase,matchRegex:this.matchRegex};this.emit("gl-search-inputchange",e)}setCustomValidity(e=""){this.errorMessage=e}logSearch(e){const t=this.searchHistory.length-1;this.searchHistoryPos<t||this.searchHistory[t]===e.query||(this.searchHistory.push(e.query),this.searchHistoryPos=this.searchHistory.length-1)}render(){return vo`<gl-popover
				class="popover"
				trigger="focus"
				hoist
				placement="bottom-start"
				.arrow=${!1}
				distance="0"
			>
				<gl-tooltip hoist placement="top" slot="anchor">
					<button type="button" class="action-button" aria-label="${this.label}">
						<code-icon icon="search" aria-hidden="true"></code-icon>
						<code-icon class="action-button__more" icon="chevron-down" aria-hidden="true"></code-icon>
					</button>
					<span slot="content">${this.label}</span>
				</gl-tooltip>
				<div slot="content">
					<menu-label>Search by</menu-label>
					<menu-item role="none">
						<button class="menu-button" type="button" @click="${()=>this.handleInsertToken("@me")}">
							My changes <small>@me</small>
						</button>
					</menu-item>
					<menu-item role="none">
						<button class="menu-button" type="button" @click="${()=>this.handleInsertToken("message:")}">
							Message <small>message: or =:</small>
						</button>
					</menu-item>
					<menu-item role="none">
						<button class="menu-button" type="button" @click="${()=>this.handleInsertToken("author:")}">
							Author <small>author: or @:</small>
						</button>
					</menu-item>
					<menu-item role="none">
						<button class="menu-button" type="button" @click="${()=>this.handleInsertToken("commit:")}">
							Commit SHA <small>commit: or #:</small>
						</button>
					</menu-item>
					<menu-item role="none">
						<button class="menu-button" type="button" @click="${()=>this.handleInsertToken("file:")}">
							File <small>file: or ?:</small>
						</button>
					</menu-item>
					<menu-item role="none">
						<button class="menu-button" type="button" @click="${()=>this.handleInsertToken("change:")}">
							Change <small>change: or ~:</small>
						</button>
					</menu-item>
					<menu-item role="none">
						<button
							class="menu-button"
							type="button"
							@click="${()=>this.handleInsertToken("type:stash")}"
						>
							Type <small>type:stash or is:stash</small>
						</button>
					</menu-item>
				</div>
			</gl-popover>
			<div class="field">
				<input
					id="search"
					part="search"
					type="text"
					spellcheck="false"
					placeholder="${this.placeholder}"
					.value="${this.value}"
					aria-valid="${!this.errorMessage}"
					aria-describedby="${""!==this.errorMessage||null!=this.helpType?"help-text":""}"
					@input="${this.handleInput}"
					@keydown="${this.handleShortcutKeys}"
					@keyup="${this.handleKeyup}"
					@click="${this.handleInputClick}"
					@focus="${this.handleFocus}"
				/>
				<div class="message" id="help-text" aria-live="polite">
					${""!==this.errorMessage?vo`${this.errorMessage}${this.helpType?vo`<br />`:""}`:""}
					${"message:"===this.helpType?vo`<span
								>Message: use quotes to search for phrases, e.g.
								<code>message:"Updates dependencies"</code></span
						  >`:""}
					${"author:"===this.helpType?vo`<span>Author: use a user's account, e.g. <code>author:eamodio</code></span>`:""}
					${"commit:"===this.helpType?vo`<span>Commit: use a full or short Commit SHA, e.g. <code>commit:4ce3a</code></span>`:""}
					${"file:"===this.helpType?vo`<span
								>File: use a filename with extension, e.g. <code>file:package.json</code>, or a glob
								pattern, e.g. <code>file:*graph*</code></span
						  >`:""}
					${"change:"===this.helpType?vo`<span>Change: use a regex pattern, e.g. <code>change:update&#92;(param</code></span>`:""}
					${"type:"===this.helpType?vo`<span
								>Type: use <code>stash</code> to search only stashes, e.g. <code>type:stash</code></span
						  >`:""}
				</div>
			</div>
			<div class="controls">
				<gl-tooltip hoist content="Clear">
					<button
						class="control${this.value?"":" is-hidden"}"
						type="button"
						role="button"
						aria-label="Clear"
						@click="${this.handleClear}"
						@focus="${this.handleFocus}"
					>
						<code-icon icon="close"></code-icon>
					</button>
				</gl-tooltip>
				<gl-tooltip hoist content="Match All">
					<button
						class="control"
						type="button"
						role="checkbox"
						aria-label="Match All"
						aria-checked="${this.matchAll}"
						@click="${this.handleMatchAll}"
						@focus="${this.handleFocus}"
					>
						<code-icon icon="whole-word"></code-icon>
					</button>
				</gl-tooltip>
				<gl-tooltip
					hoist
					content="Match Case${this.matchCaseOverride&&!this.matchCase?" (always on without regular expressions)":""}"
				>
					<button
						class="control"
						type="button"
						role="checkbox"
						aria-label="Match Case${this.matchCaseOverride&&!this.matchCase?" (always on without regular expressions)":""}"
						?disabled="${!this.matchRegex}"
						aria-checked="${this.matchCaseOverride}"
						@click="${this.handleMatchCase}"
					>
						<code-icon icon="case-sensitive"></code-icon>
					</button>
				</gl-tooltip>
				<gl-tooltip hoist content="Use Regular Expression">
					<button
						class="control"
						type="button"
						role="checkbox"
						aria-label="Use Regular Expression"
						aria-checked="${this.matchRegex}"
						@click="${this.handleMatchRegex}"
					>
						<code-icon icon="regex"></code-icon>
					</button>
				</gl-tooltip>
			</div>`}};Ff.styles=At`
		* {
			box-sizing: border-box;
		}

		:host {
			--gl-search-input-background: var(--vscode-input-background);
			--gl-search-input-foreground: var(--vscode-input-foreground);
			--gl-search-input-border: var(--vscode-input-border);
			--gl-search-input-placeholder: var(
				--vscode-editor-placeholder\\\.foreground,
				var(--vscode-input-placeholderForeground)
			);

			display: inline-flex;
			flex-direction: row;
			align-items: center;
			gap: 0.4rem;
			position: relative;

			flex: auto 1 1;
		}

		label {
			display: flex;
			justify-content: center;
			align-items: center;
			gap: 0.2rem;
			width: 3.2rem;
			height: 2.4rem;
			color: var(--gl-search-input-foreground);
			cursor: pointer;
			border-radius: 3px;
		}
		label:hover {
			background-color: var(--vscode-toolbar-hoverBackground);
		}
		label:focus {
			outline: 1px solid var(--vscode-focusBorder);
			outline-offset: -1px;
		}

		.icon-small {
			font-size: 1rem;
		}

		.field {
			position: relative;
			flex: auto 1 1;
		}

		input {
			width: 100%;
			height: 2.4rem;
			background-color: var(--gl-search-input-background);
			color: var(--gl-search-input-foreground);
			border: 1px solid var(--gl-search-input-border);
			border-radius: 0.25rem;
			padding: 0 6.6rem 1px 0.7rem;
			font-family: inherit;
			font-size: inherit;
		}
		input:focus {
			outline: 1px solid var(--vscode-focusBorder);
			outline-offset: -1px;
		}
		input::placeholder {
			color: var(--gl-search-input-placeholder);
		}

		input::-webkit-search-cancel-button {
			display: none;
		}

		input[aria-describedby='help-text'] {
			border-color: var(--vscode-inputValidation-infoBorder);
		}
		input[aria-describedby='help-text']:focus {
			outline-color: var(--vscode-inputValidation-infoBorder);
			border-bottom-left-radius: 0;
			border-bottom-right-radius: 0;
		}

		input[aria-valid='false'] {
			border-color: var(--vscode-inputValidation-errorBorder);
		}
		input[aria-valid='false']:focus {
			outline-color: var(--vscode-inputValidation-errorBorder);
		}

		.message {
			position: absolute;
			top: 100%;
			left: 0;
			width: 100%;
			padding: 0.4rem;
			transform: translateY(-0.1rem);
			z-index: 1000;
			background-color: var(--vscode-inputValidation-infoBackground);
			border: 1px solid var(--vscode-inputValidation-infoBorder);
			color: var(--gl-search-input-foreground);
			font-size: 1.2rem;
			line-height: 1.4;
		}

		input[aria-valid='false'] + .message {
			background-color: var(--vscode-inputValidation-errorBackground);
			border-color: var(--vscode-inputValidation-errorBorder);
		}

		input:not([aria-describedby='help-text']:focus) + .message {
			display: none;
		}

		.controls {
			position: absolute;
			top: 0.2rem;
			right: 0.2rem;
			display: inline-flex;
			flex-direction: row;
			align-items: center;
			gap: 0.1rem;
		}

		button {
			padding: 0;
			color: var(--gl-search-input-foreground);
			border: 1px solid transparent;
			background: none;
		}
		button:focus:not([disabled]) {
			outline: 1px solid var(--vscode-focusBorder);
			outline-offset: -1px;
		}
		button:not([disabled]) {
			cursor: pointer;
		}

		.control {
			display: inline-flex;
			justify-content: center;
			align-items: center;
			width: 2rem;
			height: 2rem;
			text-align: center;
			border-radius: 0.25rem;
		}
		.control:hover:not([disabled]):not([aria-checked='true']) {
			background-color: var(--vscode-inputOption-hoverBackground);
		}
		.control[disabled] {
			opacity: 0.5;
		}
		.control[disabled][aria-checked='true'] {
			opacity: 0.8;
		}
		.control[aria-checked='true'] {
			background-color: var(--vscode-inputOption-activeBackground);
			color: var(--vscode-inputOption-activeForeground);
			border-color: var(--vscode-inputOption-activeBorder);
		}

		.control.is-hidden {
			display: none;
		}

		.action-button {
			position: relative;
			appearance: none;
			font-family: inherit;
			font-size: 1.2rem;
			line-height: 2.2rem;
			// background-color: var(--color-graph-actionbar-background);
			background-color: transparent;
			border: none;
			color: inherit;
			color: var(--color-foreground);
			padding: 0 0.75rem;
			cursor: pointer;
			border-radius: 3px;
			height: auto;

			display: grid;
			grid-auto-flow: column;
			grid-gap: 0.5rem;
			gap: 0.5rem;
			max-width: fit-content;
		}

		.action-button[disabled] {
			pointer-events: none;
			cursor: default;
			opacity: 1;
		}

		.action-button:hover {
			background-color: var(--color-graph-actionbar-selectedBackground);
			color: var(--color-foreground);
			text-decoration: none;
		}

		.action-button[aria-checked] {
			border: 1px solid transparent;
		}

		.action-button[aria-checked='true'] {
			background-color: var(--vscode-inputOption-activeBackground);
			color: var(--vscode-inputOption-activeForeground);
			border-color: var(--vscode-inputOption-activeBorder);
		}

		.action-button code-icon,
		.action-button .codicon[class*='codicon-'],
		.action-button .glicon[class*='glicon-'] {
			line-height: 2.2rem;
			vertical-align: bottom;
		}

		.action-button__more,
		.action-button__more.codicon[class*='codicon-'] {
			font-size: 1rem;
			margin-right: -0.25rem;
		}

		.action-button__more::before {
			margin-left: -0.25rem;
		}

		menu-item {
			padding: 0 0.5rem;
		}

		.menu-button {
			display: block;
			width: 100%;
			padding: 0.1rem 0.6rem 0 0.6rem;
			line-height: 2.2rem;
			text-align: left;
			color: var(--vscode-menu-foreground);
			border-radius: 3px;
		}

		.menu-button:hover {
			color: var(--vscode-menu-selectionForeground);
			background-color: var(--vscode-menu-selectionBackground);
		}

		code {
			display: inline-block;
			backdrop-filter: brightness(1.3);
			border-radius: 3px;
			padding: 0px 4px;
			font-family: var(--vscode-editor-font-family);
		}

		.popover {
			margin-left: -0.25rem;
		}
		.popover::part(body) {
			padding: 0 0 0.5rem 0;
			font-size: var(--vscode-font-size);
			background-color: var(--vscode-menu-background);
		}
	`,Hf([tr("input")],Ff.prototype,"input",2),Hf([tr("gl-popover")],Ff.prototype,"popoverEl",2),Hf([Qo()],Ff.prototype,"errorMessage",2),Hf([Qo()],Ff.prototype,"helpType",2),Hf([Xo({type:String})],Ff.prototype,"label",2),Hf([Xo({type:String})],Ff.prototype,"placeholder",2),Hf([Xo({type:String})],Ff.prototype,"value",2),Hf([Xo({type:Boolean})],Ff.prototype,"matchAll",2),Hf([Xo({type:Boolean})],Ff.prototype,"matchCase",2),Hf([Xo({type:Boolean})],Ff.prototype,"matchRegex",2),Ff=Hf([qo("gl-search-input")],Ff);var Bf=Object.defineProperty,Wf=Object.getOwnPropertyDescriptor,Gf=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Wf(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Bf(t,o,c),c};let Uf=class extends GlElement{constructor(){super(...arguments),this.errorMessage="",this.label="Search",this.placeholder='Search commits (â†‘â†“ for history), e.g. "Updates dependencies" author:eamodio',this.value="",this.matchAll=!1,this.matchCase=!1,this.matchRegex=!0,this.total=0,this.step=0,this.more=!1,this.searching=!1,this.valid=!1,this.resultsHidden=!1,this.resultsLabel="result",this.resultsLoaded=!1}get hasResults(){return this.total>1}connectedCallback(){super.connectedCallback(),this._disposable=Je.on(window,"keydown",(e=>this.handleShortcutKeys(e)))}disconnectedCallback(){super.disconnectedCallback(),this._disposable?.dispose()}focus(e){this.searchInput?.focus(e)}navigate(e){this.emit("gl-search-navigate",{direction:e})}logSearch(e){this.searchInput?.logSearch(e)}handleShortcutKeys(e){if(!e.altKey)return"F3"===e.key&&!e.ctrlKey&&!e.metaKey||"g"===e.key&&e.metaKey&&!e.ctrlKey&&St?(e.preventDefault(),e.stopImmediatePropagation(),void this.navigate(e.shiftKey?"previous":"next")):void("f"===e.key&&(e.metaKey&&!e.ctrlKey&&St||e.ctrlKey&&!St)&&(e.preventDefault(),e.stopImmediatePropagation(),this.focus()))}handlePrevious(e){e.stopImmediatePropagation(),this.navigate(e.shiftKey?"first":"previous")}handleNext(e){e.stopImmediatePropagation(),this.navigate(e.shiftKey?"last":"next")}handleOpenInView(e){e.stopImmediatePropagation(),this.emit("gl-search-openinview")}get resultsHtml(){if(this.searching)return vo`<gl-tooltip hoist placement="top" class="count"
				><code-icon icon="loading" modifier="spin"></code-icon><span slot="content">Searching...</span>
			</gl-tooltip>`;const e=$e(this.resultsLabel,this.total,{zero:"No",infix:this.more?"+ ":void 0});let t="",o=vo`<span>${e}</span>`;if(this.total>=1){t=this.resultsHidden?vo`${e} found &mdash; some results are hidden or unable to be shown on the Commit Graph`:`${e} found`;const r=`${this.total}${this.more?"+":""}`;o=vo`<span
				><span aria-current="step">${this.step}</span> of
				<span class="${this.resultsHidden?"sr-hidden":""}">${r}</span
				><span class="sr-only"> ${e}</span></span
			>`}else this.resultsLoaded&&(t=`${e} found`);return vo`<gl-tooltip
			hoist
			placement="top"
			?disabled="${!t}"
			class="count${this.total<1&&this.valid&&this.resultsLoaded?" error":""}"
			>${o}<span slot="content">${t}</span></gl-tooltip
		>`}render(){return vo`<gl-search-input
				id="search-input"
				exportparts="search: search"
				.errorMessage="${this.errorMessage}"
				.label="${this.label}"
				.placeholder="${this.placeholder}"
				.matchAll="${this.matchAll}"
				.matchCase="${this.matchCase}"
				.matchRegex="${this.matchRegex}"
				.value="${this.value}"
				@gl-search-navigate="${e=>{e.stopImmediatePropagation(),this.navigate(e.detail.direction)}}"
			></gl-search-input>
			<div class="search-navigation" aria-label="Search navigation">
				${this.resultsHtml}
				<gl-tooltip hoist>
					<button
						type="button"
						class="button"
						?disabled="${!this.hasResults}"
						@click="${this.handlePrevious}"
					>
						<code-icon
							icon="arrow-up"
							aria-label="Previous Match (Shift+Enter)&#10;First Match (Shift+Click)"
						></code-icon>
					</button>
					<span slot="content">Previous Match (Shift+Enter)<br />First Match (Shift+Click)</span>
				</gl-tooltip>
				<gl-tooltip hoist>
					<button type="button" class="button" ?disabled="${!this.hasResults}" @click="${this.handleNext}">
						<code-icon
							icon="arrow-down"
							aria-label="Next Match (Enter)&#10;Last Match (Shift+Click)"
						></code-icon>
					</button>
					<span slot="content">Next Match (Enter)<br />Last Match (Shift+Click)</span>
				</gl-tooltip>
				<gl-tooltip hoist content="Show Results in Side Bar">
					<button
						type="button"
						class="button"
						?disabled="${!this.hasResults}"
						@click="${this.handleOpenInView}"
					>
						<code-icon icon="link-external" aria-label="Show Results in Side Bar"></code-icon>
					</button>
				</gl-tooltip>
			</div>
			<progress-indicator active="${this.searching}"></progress-indicator>`}};Uf.styles=At`
		:host {
			display: inline-flex;
			flex-direction: row;
			align-items: center;
			gap: 0.8rem;
			color: var(--color-foreground);
			flex: auto 1 1;
			position: relative;
		}
		:host(:focus) {
			outline: 0;
		}
		progress-indicator {
			top: -4px;
		}

		.search-navigation {
			display: inline-flex;
			flex-direction: row;
			align-items: center;
			gap: 0.3rem;
			color: var(--color-foreground);
		}
		.search-navigation:focus {
			outline: 0;
		}

		.count {
			flex: none;
			margin-right: 0.4rem;
			font-size: 1.2rem;
			min-width: 10ch;
		}

		.count.error {
			color: var(--vscode-errorForeground);
		}

		.button {
			width: 2.4rem;
			height: 2.4rem;
			padding: 0;
			color: inherit;
			border: none;
			border-radius: 3px;
			background: none;
			text-align: center;
		}
		.button[disabled] {
			color: var(--vscode-disabledForeground);
		}
		.button:focus {
			background-color: var(--vscode-toolbar-activeBackground);
			outline: 1px solid var(--vscode-focusBorder);
			outline-offset: -1px;
		}
		.button:not([disabled]) {
			cursor: pointer;
		}
		.button:hover:not([disabled]) {
			color: var(--vscode-foreground);
			background-color: var(--vscode-toolbar-hoverBackground);
		}
		.button > code-icon[icon='arrow-up'] {
			transform: translateX(-0.1rem);
		}

		.sr-hidden {
			color: var(--vscode-errorForeground);
		}

		.sr-only {
			clip: rect(0 0 0 0);
			clip-path: inset(50%);
			height: 1px;
			overflow: hidden;
			position: absolute;
			white-space: nowrap;
			width: 1px;
		}
	`,Gf([Xo({type:String})],Uf.prototype,"errorMessage",2),Gf([Xo({type:String})],Uf.prototype,"label",2),Gf([Xo({type:String})],Uf.prototype,"placeholder",2),Gf([Xo({type:String})],Uf.prototype,"value",2),Gf([Xo({type:Boolean})],Uf.prototype,"matchAll",2),Gf([Xo({type:Boolean})],Uf.prototype,"matchCase",2),Gf([Xo({type:Boolean})],Uf.prototype,"matchRegex",2),Gf([Xo({type:Number})],Uf.prototype,"total",2),Gf([Xo({type:Number})],Uf.prototype,"step",2),Gf([Xo({type:Boolean})],Uf.prototype,"more",2),Gf([Xo({type:Boolean})],Uf.prototype,"searching",2),Gf([Xo({type:Boolean})],Uf.prototype,"valid",2),Gf([Xo({type:Boolean})],Uf.prototype,"resultsHidden",2),Gf([Xo({type:String})],Uf.prototype,"resultsLabel",2),Gf([Xo({type:Boolean})],Uf.prototype,"resultsLoaded",2),Gf([tr("gl-search-input")],Uf.prototype,"searchInput",2),Uf=Gf([qo("gl-search-box")],Uf);const Vf=Th(Uf,{tagName:"gl-search-box",events:{onChange:"gl-search-inputchange",onNavigate:"gl-search-navigate",onOpenInView:"gl-search-openinview"}}),jf=({state:e,fetchedText:t,branchState:o,remote:r})=>m().createElement(Np,{placement:"bottom"},m().createElement("a",{href:fh("gitlens.graph.fetch",e.webviewId,e.webviewInstanceId),className:"action-button"},m().createElement("span",{className:"glicon glicon-repo-fetch action-button__icon"}),"Fetch ",t&&m().createElement("span",{className:"action-button__small"},"(",t,")")),m().createElement("span",{slot:"content",style:{whiteSpace:"break-spaces"}},"Fetch from ",r,o?.provider?.name?` on ${o.provider?.name}`:"",t&&m().createElement(m().Fragment,null,m().createElement("hr",null)," Last fetched ",t))),Zf=({branchState:e,state:t,fetchedText:o,branchName:r,remote:n})=>{let c,d,h,u,p=!1,g=!1;if(e&&(p=e.behind>0,g=e.ahead>0),!e||!g&&!p)return null;const v=m().createElement(m().Fragment,null,m().createElement("span",{className:"md-code"},r)," is");return p?(c="pull",d="glicon glicon-repo-pull",h="Pull",u=m().createElement(m().Fragment,null,"Pull ",$e("commit",e.behind)," from ",n,e.provider?.name?` on ${e.provider?.name}`:""),u=g?m().createElement(m().Fragment,null,u,m().createElement("hr",null),v," ",$e("commit",e.behind)," behind and"," ",$e("commit",e.ahead)," ahead of ",n,e.provider?.name?` on ${e.provider?.name}`:""):m().createElement(m().Fragment,null,u,m().createElement("hr",null),v," ",$e("commit",e.behind)," behind ",n,e.provider?.name?` on ${e.provider?.name}`:"")):(c="push",d="glicon glicon-repo-push",h="Push",u=m().createElement(m().Fragment,null,"Push ",$e("commit",e.ahead)," to ",n,e.provider?.name?` on ${e.provider?.name}`:"",m().createElement("hr",null),v," ",$e("commit",e.ahead)," ahead of ",n)),m().createElement(m().Fragment,null,m().createElement(Np,{placement:"bottom"},m().createElement("a",{href:fh(`gitlens.graph.${c}`,t.webviewId,t.webviewInstanceId),className:`action-button${p?" is-behind":""}${g?" is-ahead":""}`},m().createElement("span",{className:`${d} action-button__icon`}),h,m().createElement("span",null,m().createElement("span",{className:"pill action-button__pill"},p&&m().createElement("span",null,e.behind,m().createElement("span",{className:"codicon codicon-arrow-down"})),g&&m().createElement("span",null,p&&m().createElement(m().Fragment,null,"Â Â "),e.ahead,m().createElement("span",{className:"codicon codicon-arrow-up"}))))),m().createElement("div",{slot:"content",style:{whiteSpace:"break-spaces"}},u,o&&m().createElement(m().Fragment,null,m().createElement("hr",null)," Last fetched ",o))),g&&p&&m().createElement(Np,{placement:"top",slot:"anchor"},m().createElement("a",{href:fh("gitlens.graph.pushWithForce",t.webviewId,t.webviewInstanceId),className:"action-button","aria-label":"Force Push"},m().createElement("span",{className:"codicon codicon-repo-force-push","aria-hidden":"true"})),m().createElement("span",{slot:"content"},"Force Push ",$e("commit",e.ahead)," to ",n,e.provider?.name?` on ${e.provider?.name}`:"")))},qf=({branchState:e,branchName:t,lastFetched:o,state:r})=>{const n=e?.upstream?m().createElement("span",{className:"md-code"},e?.upstream):"remote",c=o&&new Date(o),d=c&&0!==c.getTime()?Jd(c):void 0;return m().createElement(m().Fragment,null,m().createElement(Zf,{branchState:e,state:r,fetchedText:d,branchName:t,remote:n}),m().createElement(jf,{branchState:e,fetchedText:d,remote:n,state:r}))};var Yf=Object.defineProperty,Kf=Object.getOwnPropertyDescriptor,Xf=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Kf(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Yf(t,o,c),c};let Qf=class extends GlElement{constructor(){super(...arguments),this.open=!1,this.placement="bottom-start",this.hoverMarkdownCache=new Map,this.recalculated=!1,this.onParentMouseLeave=()=>{this.hide()},this._showCoreDebounced=void 0,this.onWindowKeydown=e=>{"Escape"===e.key&&(e.stopPropagation(),this.hide())}}render(){if(this.markdown)return vo`<gl-popover
			?open=${this.open}
			.anchor=${this.anchor}
			.distance=${this.distance}
			.skidding=${this.skidding}
			.placement=${this.placement}
			trigger="manual"
			@gl-popover-hide=${()=>this.hide()}
			@sl-reposition=${()=>this.onReposition()}
		>
			<div slot="content">
				<gl-markdown .markdown=${eu(this.markdown,"Loading...")}></gl-markdown>
			</div>
		</gl-popover>`;this.hide()}onReposition(){if(null!=this.skidding&&("bottom-start"===this.placement||"top-start"===this.placement))switch(this.popup?.currentPlacement){case"bottom-end":case"top-end":this.recalculated||null!=this.previousSkidding||(this.previousSkidding=this.skidding,this.skidding=5*-this.skidding,this.recalculated=!0);break;default:null!=this.previousSkidding&&(this.skidding=this.previousSkidding,this.previousSkidding=void 0)}}reset(){this.recalculated=!1,this.hoverMarkdownCache.clear()}onRowHovered(e,t){if(clearTimeout(this.unhoverTimer),null==this.requestMarkdown)return;if(this.hoveredSha===e.sha&&this.open)return;this.hoveredSha=e.sha;let o=this.hoverMarkdownCache.get(e.sha);if(null==o){const t="work-dir-changes"!==e.type;o=this.requestMarkdown(e).then((o=>("fulfilled"===o.markdown.status&&t?this.hoverMarkdownCache.set(e.sha,o.markdown):"rejected"===o.markdown.status&&this.hoverMarkdownCache.delete(e.sha),o.markdown))),t&&this.hoverMarkdownCache.set(e.sha,o)}this.open?this.showCore(t,o):(this._showCoreDebounced??=Oe(this.showCore.bind(this),500),this._showCoreDebounced(t,o))}onRowUnhovered(e,t){this.recalculated=!1,clearTimeout(this.unhoverTimer),null!=t&&"closest"in t&&t.closest("gl-graph-hover")||(this.unhoverTimer=setTimeout((()=>this.hide()),250))}showCore(e,t){if("string"==typeof t)this.markdown=t;else if(Ye(t)){const e=this.hoveredSha;t.then((t=>{e===this.hoveredSha&&(this.markdown=qe(t),t||this.hide())})).catch((()=>{}))}else this.markdown=qe(t);this.anchor=e,this.open=!0,this.parentElement?.addEventListener("mouseleave",this.onParentMouseLeave),window.addEventListener("keydown",this.onWindowKeydown)}hide(){this._showCoreDebounced?.cancel(),clearTimeout(this.unhoverTimer),this.parentElement?.removeEventListener("mouseleave",this.onParentMouseLeave),window.removeEventListener("keydown",this.onWindowKeydown),this.hoveredSha=void 0,this.markdown=void 0,this.open=!1}};Qf.styles=At``,Xf([Xo({type:Object})],Qf.prototype,"anchor",2),Xf([Xo({reflect:!0,type:Number})],Qf.prototype,"distance",2),Xf([Xo({reflect:!0,type:Boolean})],Qf.prototype,"open",2),Xf([Xo({reflect:!0})],Qf.prototype,"placement",2),Xf([Xo({type:Object})],Qf.prototype,"markdown",2),Xf([Xo({reflect:!0,type:Number})],Qf.prototype,"skidding",2),Xf([Xo({type:Function})],Qf.prototype,"requestMarkdown",2),Xf([tr("gl-popover")],Qf.prototype,"popup",2),Qf=Xf([qo("gl-graph-hover")],Qf);const Jf=Th(Qf,{tagName:"gl-graph-hover"});var em=Object.defineProperty,tm=Object.getOwnPropertyDescriptor,om=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?tm(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&em(t,o,c),c};const rm=["marker-result","marker-head-arrow-left","marker-head-arrow-right","marker-head","marker-upstream","marker-pull-request","marker-branch","marker-stash","marker-remote","marker-tag","visible-area"];let im=class extends GlElement{constructor(){super(...arguments),this.dataType="commits"}onActiveDayChanged(){this.select(this.activeDay)}onDataChanged(){this.handleDataChanged(!1)}onMarkersChanged(){this.handleDataChanged(!0)}onSearchResultsChanged(){this._chart?.regions.remove({classes:["marker-result"]}),null!=this.searchResults&&this._chart?.regions.add([...this.getSearchResultsRegions(this.searchResults)])}onVisibleDaysChanged(){this._chart?.regions.remove({classes:["visible-area"]}),null!=this.visibleDays&&this._chart?.regions.add(this.getVisibleAreaRegion(this.visibleDays))}connectedCallback(){super.connectedCallback(),this.handleDataChanged(!1)}disconnectedCallback(){super.disconnectedCallback(),this._chart?.destroy(),this._chart=void 0}handleDataChanged(e){this._loadTimer&&(clearTimeout(this._loadTimer),this._loadTimer=void 0),e&&(this._regions=void 0,this._markerRegions=void 0),this._loadTimer=setTimeout((()=>this.loadChart()),150)}getInternalChart(){try{return this._chart?.internal}catch{return}}select(e,t=!1){if(null==e)return void this.unselect();const o=this.getData(e);if(null==o)return;const r=this.getInternalChart();if(null!=r&&(r.showGridFocus([o]),!t)){const{index:e}=o;this._chart.$.main.selectAll(`.bb-shape-${e}`).each((function(t){r.toggleShape?.(this,t,e)}))}}unselect(e,t=!1){if(t)this.getInternalChart()?.hideGridFocus();else if(null!=e){const t=this.getIndex(e);if(null==t)return;this._chart?.unselect(void 0,[t])}else this._chart?.unselect()}getData(e){return e=new Date(e).setHours(0,0,0,0),this._chart?.data()[0]?.values.find((t=>("number"==typeof t.x?t.x:t.x.getTime())===e))}getIndex(e){return this.getData(e)?.index}getMarkerRegions(){if(null==this._markerRegions)if(null!=this.markers){const e=hh(this.markers,(([e,t])=>hh(t,(t=>t.current&&"branch"===t.type?[{axis:"x",start:e,end:e,class:"marker-head"},{axis:"x",start:e,end:e,class:"marker-head-arrow-left"},{axis:"x",start:e,end:e,class:"marker-head-arrow-right"}]:[{axis:"x",start:e,end:e,class:t.current&&"remote"===t.type?"marker-upstream":`marker-${t.type}`}]))));this._markerRegions=e}else this._markerRegions=[];return this._markerRegions}getAllRegions(){if(null==this._regions){let e=this.getMarkerRegions();null!=this.visibleDays&&(e=ph([this.getVisibleAreaRegion(this.visibleDays)],e)),null!=this.searchResults&&(e=ph(e,this.getSearchResultsRegions(this.searchResults))),this._regions=[...e].sort(((e,t)=>rm.indexOf(t.class??"")-rm.indexOf(e.class??"")))}return this._regions}getSearchResultsRegions(e){return function*(e,t){for(const o of e)yield t(o)}(e.keys(),(e=>({axis:"x",start:e,end:e,class:"marker-result"})))}getVisibleAreaRegion(e){return{axis:"x",start:e.top,end:e.bottom,class:"visible-area"}}loadChart(){null==this._loading&&(this._loading=this.loadChartCore().then((()=>this._loading=void 0)))}async loadChartCore(){if(!this.data?.size)return this.spinner.setAttribute("aria-hidden","false"),this._chart?.destroy(),void(this._chart=void 0);const e="lines"===this.dataType,t=[],o=[],r=dh(this.data.keys()),n=new Date,d=new Date(r);let h,u,p,m,g,v=0;const y=n;for(;y>=d;)h=nm(y),u=this.data.get(h),t.push(h),e?(p=u?.activity?.additions??0,g=u?.activity?.deletions??0,m=p+g):m=u?.commits??0,v=Math.max(v,m),o.push(m),y.setDate(y.getDate()-1);const w=this.getAllRegions(),_=[];let x=0,C=0;for(const e of o)0!==e&&(_.push(e),x+=e,C+=e**2);_.sort(((e,t)=>e-t));const S=_.length,T=x/S,E=Math.sqrt(C/S-T**2);let O=-1;for(let e=S-1;e>=0;e--)if(Math.abs((_[e]-T)/E)<=3){O=e;break}const D=_[Math.floor(.25*S)],A=_[Math.floor(.75*S)],$=_[S-1],P=A+3*(A-D),F=_[O],B=Math.floor(Math.min($,P>$-P?F:P+(F-P)/2)+.1*P);if(null==this._chart){const{bb:e,selection:r,spline:n,zoom:d}=await c.e(162).then(c.bind(c,145));this._chart=e.generate({bindto:this.chartContainer,data:{x:"date",axes:{activity:"y"},columns:[["date",...t],["activity",...o]],names:{activity:"Activity"},onclick:e=>{if("activity"!==e.id)return;const t=new Date(e.x),o=nm(t),r=this.searchResults?.get(o)?.sha??this.data?.get(o)?.sha;queueMicrotask((()=>{this.emit("gl-graph-minimap-selected",{date:t,sha:r})}))},selection:{enabled:r(),grouped:!0,multiple:!1},colors:{activity:"var(--color-graph-minimap-line0)"},types:{activity:n()}},axis:{x:{inverted:!0,localtime:!0,type:"timeseries"},y:{min:0,max:B}},clipPath:!1,grid:{front:!1,focus:{show:!0}},legend:{show:!1},line:{point:!0,zerobased:!0},padding:{mode:"fit",bottom:-8,left:0,right:0,top:0},point:{show:!0,select:{r:5},focus:{only:!0,expand:{enabled:!0,r:3}},sensitivity:100},regions:w,resize:{auto:!0},spline:{interpolation:{type:"monotone-x"}},tooltip:{contents:(e,t,o,r)=>{const n=new Date(e[0].x),c=nm(n),d=this.data?.get(c),h=this.markers?.get(c),u=this.searchResults?.get(c);let p;h?.length&&(p=function(e,t,o){const r=new Map,n=o?.filterNullGroups??!1;for(const o of e){const e=t(o);if(null==e&&n)continue;const c=r.get(e);null==c?r.set(e,[o]):c.push(o)}return r}(h,(e=>e.type)));const m=p?.get("stash")?.length??0,g=p?.get("pull-request")?.length??0;let v,y,w;return d?.commits?(v=$e("commit",d.commits,{format:e=>rh(e)}),u?.count&&(w=$e("matching commit",u.count)),"lines"===this.dataType&&(y=`${$e("file",d?.files??0,{format:e=>rh(e),zero:"No"})}, ${$e("line",(d?.activity?.additions??0)+(d?.activity?.deletions??0),{format:e=>rh(e),zero:"No"})} changed`)):v="No commits",`<div class="bb-tooltip">\n\t\t\t\t\t\t<div class="header">\n\t\t\t\t\t\t\t<span class="header--title">${eh(n,"MMMM Do, YYYY")}</span>\n\t\t\t\t\t\t\t<span class="header--description">(${function(e){return`${e[0].toLocaleUpperCase()}${e.slice(1)}`}(Jd(n))})</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="changes">\n\t\t\t\t\t\t\t<span>${v}${y?`, ${y}`:""}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t${w?`<div class="results"><span class="result">${w}</span></div>`:""}\n\t\t\t\t\t\t${null!=p?`\n\t\t\t\t\t\t<div class="refs">${m?`<span class="stash">${$e("stash",m,{plural:"stashes"})}</span>`:""}${p?.get("branch")?.sort(((e,t)=>(e.current?-1:1)-(t.current?-1:1))).map((e=>`<span class="branch${e.current?" current":""}">${e.name}</span>`)).join("")??""}</div>\n\t\t\t\t\t\t<div class="refs">${g?`<span class="pull-request">${$e("pull request",g,{plural:"pull requests"})}</span>`:""}${p?.get("remote")?.sort(((e,t)=>(e.current?-1:1)-(t.current?-1:1)))?.map((e=>`<span class="remote${e.current?" current":""}">${e.name}</span>`)).join("")??""}${p?.get("tag")?.map((e=>`<span class="tag">${e.name}</span>`)).join("")??""}</div>`:""}\n\t\t\t\t\t</div>`},grouped:!0,position:(e,t,o,r,n)=>{let{x:c}=n;const d=r.getBoundingClientRect();return c+t>d.right&&(c=d.right-t),{top:0,left:c}}},transition:{duration:0},zoom:{enabled:d(),rescale:!1,type:"wheel",onzoom:Oe((()=>this.onActiveDayChanged()),250)},onafterinit:function(){const e=this.$.main.selectAll(".bb-axis-x").node();e?.remove();const t=this.$.main.selectAll(".bb-axis-y").node();t?.remove();const o=this.$.main.selectAll(".bb-grid").node();try{o?.removeAttribute("clip-path")}catch{}const r=this.$.main.selectAll(".bb-regions").node(),n=this.$.main.selectAll(".bb-chart").node();null!=r&&null!=n&&n.insertAdjacentElement("afterend",r)}})}else this._chart.load({columns:[["date",...t],["activity",...o]]}),this._chart.axis.max({y:B}),this._chart.regions(w);this.spinner.setAttribute("aria-hidden","true"),this.onActiveDayChanged()}render(){return vo`
			<div id="spinner"><code-icon icon="loading" modifier="spin"></code-icon></div>
			<div id="chart"></div>
			<div
				class="legend"
				title="${"lines"===this.dataType?"Showing lines changed per day":"Showing commits per day"}"
			>
				<code-icon icon="${"lines"===this.dataType?"request-changes":"git-commit"}"></code-icon>
			</div>
		`}};function nm(e){return new Date(e).setHours(0,0,0,0)}im.styles=At`
		:host {
			display: flex;
			position: relative;
			width: 100%;
			min-height: 24px;
			height: 40px;
			background: var(--color-background);
		}

		#chart {
			height: 100%;
			width: calc(100% - 1rem);
			overflow: hidden;
			position: initial !important;
		}

		#spinner {
			position: absolute;
			inset: 0;
			display: flex;
			justify-content: center;
			align-items: center;
			z-index: 1;
		}

		#spinner[aria-hidden='true'] {
			display: none;
		}

		.legend {
			position: absolute;
			top: 0;
			right: 0;
			bottom: 0;
			display: flex;
			align-items: center;
			z-index: 1;
			opacity: 0.7;
			cursor: help;
		}

		.bb svg {
			font: 10px var(--font-family);
			-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
		}

		.bb-chart {
			width: 100%;
			height: 100%;
		}

		.bb-event-rect {
			height: calc(100% + 2px);
			transform: translateY(-5px);
		}

		/*-- Grid --*/
		.bb-grid {
			pointer-events: none;
		}

		.bb-xgrid-focus line {
			stroke: var(--color-graph-minimap-focusLine);
		}

		/*-- Line --*/
		.bb path,
		.bb line {
			fill: none;
		}

		/*-- Point --*/
		.bb-circle._expanded_ {
			fill: var(--color-background);
			opacity: 1 !important;
			fill-opacity: 1 !important;
			stroke-opacity: 1 !important;
			stroke-width: 1px;
		}

		.bb-selected-circle {
			fill: var(--color-background);
			opacity: 1 !important;
			fill-opacity: 1 !important;
			stroke-opacity: 1 !important;
			stroke-width: 2px;
		}

		/*-- Bar --*/
		.bb-bar {
			stroke-width: 0;
		}
		.bb-bar._expanded_ {
			fill-opacity: 0.75;
		}

		/*-- Regions --*/

		.bb-regions {
			pointer-events: none;
		}

		.bb-region > rect:not([x]) {
			display: none;
		}

		.bb-region.visible-area {
			fill: var(--color-graph-minimap-visibleAreaBackground);
			/* transform: translateY(-4px); */
		}
		.bb-region.visible-area > rect {
			height: 100%;
		}

		.bb-region.marker-result {
			fill: var(--color-graph-minimap-marker-highlights);
			transform: translateX(-1px);
			z-index: 10;
		}
		.bb-region.marker-result > rect {
			width: 2px;
			height: 100%;
		}

		.bb-region.marker-head {
			fill: var(--color-graph-minimap-marker-head);
			stroke: var(--color-graph-minimap-marker-head);
			transform: translateX(-1px);
		}
		.bb-region.marker-head > rect {
			width: 1px;
			height: 100%;
		}

		.bb-region.marker-head-arrow-left {
			fill: var(--color-graph-minimap-marker-head);
			stroke: var(--color-graph-minimap-marker-head);
			transform: translate(-5px, -1px) skewX(45deg);
		}
		.bb-region.marker-head-arrow-left > rect {
			width: 3px;
			height: 3px;
		}

		.bb-region.marker-head-arrow-right {
			fill: var(--color-graph-minimap-marker-head);
			stroke: var(--color-graph-minimap-marker-head);
			transform: translate(1px, -1px) skewX(-45deg);
		}
		.bb-region.marker-head-arrow-right > rect {
			width: 3px;
			height: 3px;
		}

		.bb-region.marker-upstream {
			fill: var(--color-graph-minimap-marker-upstream);
			stroke: var(--color-graph-minimap-marker-upstream);
			transform: translateX(-1px);
		}
		.bb-region.marker-upstream > rect {
			width: 1px;
			height: 100%;
		}

		.bb-region.marker-pull-request {
			fill: var(--color-graph-minimap-marker-pull-requests);
			stroke: var(--color-graph-minimap-marker-pull-requests);
			transform: translate(-2px, 29px);
		}
		.bb-region.marker-pull-request > rect {
			width: 3px;
			height: 3px;
		}

		.bb-region.marker-branch {
			fill: var(--color-graph-minimap-marker-local-branches);
			stroke: var(--color-graph-minimap-marker-local-branches);
			transform: translate(-2px, 35px);
		}
		.bb-region.marker-branch > rect {
			width: 3px;
			height: 3px;
		}

		.bb-region.marker-remote {
			fill: var(--color-graph-minimap-marker-remote-branches);
			stroke: var(--color-graph-minimap-marker-remote-branches);
			transform: translate(-2px, 29px);
		}
		.bb-region.marker-remote > rect {
			width: 3px;
			height: 3px;
		}

		.bb-region.marker-stash {
			fill: var(--color-graph-minimap-marker-stashes);
			stroke: var(--color-graph-minimap-marker-stashes);
			transform: translate(-2px, 35px);
		}
		.bb-region.marker-stash > rect {
			width: 3px;
			height: 3px;
		}

		.bb-region.marker-tag {
			fill: var(--color-graph-minimap-marker-tags);
			stroke: var(--color-graph-minimap-marker-tags);
			transform: translate(-2px, 29px);
		}
		.bb-region.marker-tag > rect {
			width: 3px;
			height: 3px;
		}

		/*-- Zoom region --*/
		/*
	:host-context(.vscode-dark) .bb-zoom-brush {
		fill: white;
		fill-opacity: 0.2;
	}
	:host-context(.vscode-light) .bb-zoom-brush {
		fill: black;
		fill-opacity: 0.1;
	}
	*/

		/*-- Brush --*/
		/*
	.bb-brush .extent {
		fill-opacity: 0.1;
	}
	*/

		/*-- Button --*/
		/*
	.bb-button {
		position: absolute;
		top: 2px;
		right: 0;

		color: var(--color-button-foreground);

		font-size: var(--font-size);
		font-family: var(--font-family);
	}
	.bb-button .bb-zoom-reset {
		display: inline-block;
		padding: 0.1rem 0.3rem;
		cursor: pointer;
		font-family: 'codicon';
		font-display: block;

		background-color: var(--color-button-background);

		border: 1px solid var(--color-button-background);
		border-radius: 3px;
	}
	*/

		/*-- Tooltip --*/
		.bb-tooltip-container {
			top: unset !important;
			z-index: 10;
			user-select: none;
			min-width: 300px;
		}

		.bb-tooltip {
			display: flex;
			flex-direction: column;
			padding: 0.5rem 1rem;
			background-color: var(--color-hover-background);
			color: var(--color-hover-foreground);
			border: 1px solid var(--color-hover-border);
			box-shadow: 0 2px 8px var(--vscode-widget-shadow);
			font-size: var(--font-size);
			opacity: 1;
			white-space: nowrap;
		}

		.bb-tooltip .header {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			gap: 1rem;
		}

		.bb-tooltip .header--title {
			font-weight: 600;
		}

		.bb-tooltip .header--description {
			font-weight: normal;
			font-style: italic;
		}

		.bb-tooltip .changes {
			margin: 0.5rem 0;
		}

		.bb-tooltip .results {
			display: flex;
			font-size: 12px;
			gap: 0.5rem;
			flex-direction: row;
			flex-wrap: wrap;
			margin: 0.5rem 0;
			max-width: fit-content;
		}

		.bb-tooltip .results .result {
			border-radius: 3px;
			padding: 0 4px;
			background-color: var(--color-graph-minimap-tip-highlightBackground);
			border: 1px solid var(--color-graph-minimap-tip-highlightBorder);
			color: var(--color-graph-minimap-tip-highlightForeground);
		}

		.bb-tooltip .refs {
			display: flex;
			font-size: 12px;
			gap: 0.5rem;
			flex-direction: row;
			flex-wrap: wrap;
			margin: 0.5rem 0;
			max-width: fit-content;
		}
		.bb-tooltip .refs:empty {
			margin: 0;
		}

		.bb-tooltip .refs .branch {
			border-radius: 3px;
			padding: 0 4px;
			background-color: var(--color-graph-minimap-tip-branchBackground);
			border: 1px solid var(--color-graph-minimap-tip-branchBorder);
			color: var(--color-graph-minimap-tip-branchForeground);
		}
		.bb-tooltip .refs .branch.current {
			background-color: var(--color-graph-minimap-tip-headBackground);
			border: 1px solid var(--color-graph-minimap-tip-headBorder);
			color: var(--color-graph-minimap-tip-headForeground);
		}
		.bb-tooltip .refs .remote {
			border-radius: 3px;
			padding: 0 4px;
			background-color: var(--color-graph-minimap-tip-remoteBackground);
			border: 1px solid var(--color-graph-minimap-tip-remoteBorder);
			color: var(--color-graph-minimap-tip-remoteForeground);
		}
		.bb-tooltip .refs .remote.current {
			background-color: var(--color-graph-minimap-tip-upstreamBackground);
			border: 1px solid var(--color-graph-minimap-tip-upstreamBorder);
			color: var(--color-graph-minimap-tip-upstreamForeground);
		}
		.bb-tooltip .refs .stash {
			border-radius: 3px;
			padding: 0 4px;
			background-color: var(--color-graph-minimap-tip-stashBackground);
			border: 1px solid var(--color-graph-minimap-tip-stashBorder);
			color: var(--color-graph-minimap-tip-stashForeground);
		}
		.bb-tooltip .refs .pull-request {
			border-radius: 3px;
			padding: 0 4px;
			background-color: var(--color-graph-minimap-pullRequestBackground);
			border: 1px solid var(--color-graph-minimap-pullRequestBorder);
			color: var(--color-graph-minimap-pullRequestForeground);
		}
		.bb-tooltip .refs .tag {
			border-radius: 3px;
			padding: 0 4px;
			background-color: var(--color-graph-minimap-tip-tagBackground);
			border: 1px solid var(--color-graph-minimap-tip-tagBorder);
			color: var(--color-graph-minimap-tip-tagForeground);
		}

		.bb-event-rects {
			cursor: pointer !important;
		}
	`,om([tr("#chart")],im.prototype,"chartContainer",2),om([tr("#spinner")],im.prototype,"spinner",2),om([Xo({type:Number})],im.prototype,"activeDay",2),om([Ih("activeDay")],im.prototype,"onActiveDayChanged",1),om([Xo({type:Map})],im.prototype,"data",2),om([Xo({type:String})],im.prototype,"dataType",2),om([Ih(["data","dataType"])],im.prototype,"onDataChanged",1),om([Xo({type:Map})],im.prototype,"markers",2),om([Ih("markers")],im.prototype,"onMarkersChanged",1),om([Xo({type:Map})],im.prototype,"searchResults",2),om([Ih("searchResults")],im.prototype,"onSearchResultsChanged",1),om([Xo({type:Object})],im.prototype,"visibleDays",2),om([Ih("visibleDays")],im.prototype,"onVisibleDaysChanged",1),om([Xe({singleLine:!0})],im.prototype,"handleDataChanged",1),om([Xe({singleLine:!0})],im.prototype,"loadChartCore",1),im=om([qo("gl-graph-minimap")],im);var sm=Object.defineProperty,am=Object.getOwnPropertyDescriptor,lm=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?am(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&sm(t,o,c),c};let cm=class extends GlElement{constructor(){super(...arguments),this.disabled=!1,this.dataType="commits",this.markerTypes=[],this.rows=[],this.markersByDay=new Map,this.searchResultsByDay=new Map,this.statsByDay=new Map,this.pendingDataChange=!1,this.pendingSearchResultsChange=!1}onDisabledChanged(){this.disabled||(this.pendingDataChange&&this.processRows(),this.pendingSearchResultsChange&&this.processSearchResults())}handleDataChanged(e){1===e.length&&"rowsStats"===e[0]&&"lines"!==this.dataType||(this.pendingDataChange=!0,this.disabled||this.processRows())}handleSearchResultsChanged(){this.pendingSearchResultsChange=!0,this.disabled||this.processSearchResults()}render(){return this.disabled?xo:vo`<gl-graph-minimap
			id="minimap"
			.activeDay=${this.activeDay}
			.data=${this.statsByDay}
			.dataType=${this.dataType}
			.markers=${this.markersByDay}
			.searchResults=${this.searchResultsByDay}
			.visibleDays=${this.visibleDays}
		></gl-graph-minimap>`}select(e,t=!1){this.disabled||this.minimap?.select(e,t)}unselect(e,t=!1){this.disabled||this.minimap?.unselect(e,t)}processRows(){this.pendingDataChange=!1;const e=new Map,t=new Map,o="lines"===this.dataType;if(!this.rows?.length||o&&null==this.rowsStats)return this.statsByDay=e,void(this.markersByDay=t);let r,n,c,d,h,u,p,m,g,v,y,w={head:void 0,branch:void 0,remote:void 0,tag:void 0};const _=this.rows??[];for(let x=_.length-1;x>=0;x--)g=_[x],h=[],r=dm(g.date),r!==n&&(n=r,w={head:void 0,branch:void 0,remote:void 0,tag:void 0}),g.heads?.length&&(this.markerTypes.includes("head")||this.markerTypes.includes("localBranches")||this.markerTypes.includes("pullRequests"))&&(w.branch=g.sha,d=[],g.heads.forEach((e=>{if(e.isCurrentHead&&(w.head=g.sha),(this.markerTypes.includes("localBranches")||this.markerTypes.includes("head")&&e.isCurrentHead)&&d.push({type:"branch",name:e.name,current:e.isCurrentHead&&this.markerTypes.includes("head")}),this.markerTypes.includes("pullRequests")&&null!=e.id&&this.refMetadata?.[e.id]?.pullRequest?.length)for(const t of this.refMetadata?.[e.id]?.pullRequest??[])h.push({type:"pull-request",name:t.title})})),c=t.get(r),null==c?t.set(r,d):c.push(...d)),g.remotes?.length&&(this.markerTypes.includes("upstream")||this.markerTypes.includes("remoteBranches")||this.markerTypes.includes("localBranches")||this.markerTypes.includes("pullRequests"))&&(w.remote=g.sha,u=[],g.remotes.forEach((e=>{let t=!1;const o=this.downstreams?.[`${e.owner}/${e.name}`]?.length;if(e.current&&(w.remote=g.sha,t=!0),(this.markerTypes.includes("remoteBranches")||this.markerTypes.includes("upstream")&&t||this.markerTypes.includes("localBranches")&&o)&&u.push({type:"remote",name:`${e.owner}/${e.name}`,current:t&&this.markerTypes.includes("upstream")}),this.markerTypes.includes("pullRequests")&&null!=e.id&&this.refMetadata?.[e.id]?.pullRequest?.length)for(const t of this.refMetadata?.[e.id]?.pullRequest??[])h.push({type:"pull-request",name:t.title})})),c=t.get(r),null==c?t.set(r,u):c.push(...u)),"stash-node"===g.type&&this.markerTypes.includes("stashes")&&(p={type:"stash",name:g.message},c=t.get(r),null==c?t.set(r,[p]):c.push(p)),g.tags?.length&&this.markerTypes.includes("tags")&&(w.tag=g.sha,m=g.tags.map((e=>({type:"tag",name:e.name}))),c=t.get(r),null==c?t.set(r,m):c.push(...m)),c=t.get(r),null==c?t.set(r,h):c.push(...h),v=e.get(r),null==v?o?(y=this.rowsStats?.[g.sha],null!=y&&(v={activity:{additions:y.additions,deletions:y.deletions},commits:1,files:y.files,sha:g.sha},e.set(r,v))):(v={commits:1,sha:g.sha},e.set(r,v)):(v.commits++,v.sha=w.head??w.branch??w.remote??w.tag??v.sha,o&&(y=this.rowsStats?.[g.sha],null!=y&&(null==v.activity?v.activity={additions:y.additions,deletions:y.deletions}:(v.activity.additions+=y.additions,v.activity.deletions+=y.deletions),v.files=(v.files??0)+y.files)));this.statsByDay=e,this.markersByDay=t}processSearchResults(){this.pendingSearchResultsChange=!1;const e=new Map;if(null!=this.searchResults&&"error"in this.searchResults)this.searchResultsByDay=e;else{if(null!=this.searchResults?.ids){let t,o,r,n;for([o,r]of Object.entries(this.searchResults.ids))t=dm(r.date),n=e.get(t),null==n?e.set(t,{type:"search-result",sha:o,count:1}):n.count++}this.searchResultsByDay=e}}};function dm(e){return new Date(e).setHours(0,0,0,0)}lm([Xo({type:Number})],cm.prototype,"activeDay",2),lm([Xo({type:Boolean})],cm.prototype,"disabled",2),lm([Ih("disabled")],cm.prototype,"onDisabledChanged",1),lm([Xo({type:String})],cm.prototype,"dataType",2),lm([Xo({type:Object})],cm.prototype,"downstreams",2),lm([Xo({type:Array})],cm.prototype,"markerTypes",2),lm([Xo({type:Object})],cm.prototype,"refMetadata",2),lm([Xo({type:Array})],cm.prototype,"rows",2),lm([Xo({type:Object})],cm.prototype,"rowsStats",2),lm([Xo({type:Object})],cm.prototype,"searchResults",2),lm([Xo({type:Object})],cm.prototype,"visibleDays",2),lm([Qo()],cm.prototype,"markersByDay",2),lm([Qo()],cm.prototype,"searchResultsByDay",2),lm([Qo()],cm.prototype,"statsByDay",2),lm([Ih(["dataType","downstreams","markerTypes","refMetadata","rows","rowsStats"])],cm.prototype,"handleDataChanged",1),lm([Ih(["markerTypes","searchResults"])],cm.prototype,"handleSearchResultsChanged",1),lm([tr("#minimap")],cm.prototype,"minimap",2),cm=lm([qo("gl-graph-minimap-container")],cm);const hm=Th(cm,{tagName:"gl-graph-minimap-container",events:{onSelected:"gl-graph-minimap-selected"}}),um=Symbol();class task_h{get taskComplete(){return this.t||(1===this.i?this.t=new Promise(((e,t)=>{this.o=e,this.h=t})):3===this.i?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(e,t,o){this.p=0,this.i=0,(this._=e).addController(this);const r="object"==typeof t?t:{task:t,args:o};this.v=r.task,this.j=r.args,this.m=r.argsEqual??pm,this.k=r.onComplete,this.A=r.onError,this.autoRun=r.autoRun??!0,"initialValue"in r&&(this.u=r.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){!0===this.autoRun&&this.S()}hostUpdated(){"afterUpdate"===this.autoRun&&this.S()}T(){if(void 0===this.j)return;const e=this.j();if(!Array.isArray(e))throw Error("The args function must return an array");return e}async S(){const e=this.T(),t=this.O;this.O=e,e===t||void 0===e||void 0!==t&&this.m(t,e)||await this.run(e)}async run(e){let t,o;e??=this.T(),this.O=e,1===this.i?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,"afterUpdate"===this.autoRun?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();const r=++this.p;this.q=new AbortController;let n=!1;try{t=await this.v(e,{signal:this.q.signal})}catch(e){n=!0,o=e}if(this.p===r){if(t===um)this.i=0;else{if(!1===n){try{this.k?.(t)}catch{}this.i=2,this.o?.(t)}else{try{this.A?.(o)}catch{}this.i=3,this.h?.(o)}this.u=t,this.l=o}this._.requestUpdate()}}abort(e){1===this.i&&this.q?.abort(e)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(e){switch(this.i){case 0:return e.initial?.();case 1:return e.pending?.();case 2:return e.complete?.(this.value);case 3:return e.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}}const pm=(e,t)=>e===t||e.length===t.length&&e.every(((e,o)=>!qt(e,t[o]))),fm=(e,t,o)=>{const r=new Map;for(let n=t;n<=o;n++)r.set(e[n],n);return r},mm=bi(class extends directive_i{constructor(e){if(super(e),e.type!==fi)throw Error("repeat() can only be used in text expressions")}dt(e,t,o){let r;void 0===o?o=t:void 0!==t&&(r=t);const n=[],c=[];let d=0;for(const t of e)n[d]=r?r(t,d):d,c[d]=o(t,d),d++;return{values:c,keys:n}}render(e,t,o){return this.dt(e,t,o).values}update(e,[t,o,r]){const n=(e=>e._$AH)(e),{values:c,keys:d}=this.dt(t,o,r);if(!Array.isArray(n))return this.ut=d,c;const h=this.ut??=[],u=[];let p,m,g=0,v=n.length-1,y=0,w=c.length-1;for(;g<=v&&y<=w;)if(null===n[g])g++;else if(null===n[v])v--;else if(h[g]===d[y])u[y]=bn(n[g],c[y]),g++,y++;else if(h[v]===d[w])u[w]=bn(n[v],c[w]),v--,w--;else if(h[g]===d[w])u[w]=bn(n[g],c[w]),gn(e,u[w+1],n[g]),g++,w--;else if(h[v]===d[y])u[y]=bn(n[v],c[y]),gn(e,n[g],n[v]),v--,y++;else if(void 0===p&&(p=fm(d,y,w),m=fm(h,g,v)),p.has(h[g]))if(p.has(h[v])){const t=m.get(d[y]),o=void 0!==t?n[t]:null;if(null===o){const t=gn(e,n[g]);bn(t,c[y]),u[y]=t}else u[y]=bn(o,c[y]),gn(e,n[g],o),n[t]=null;y++}else wn(n[v]),v--;else wn(n[g]),g++;for(;y<=w;){const t=gn(e,u[w+1]);bn(t,c[y]),u[y++]=t}for(;g<=v;){const e=n[g++];null!==e&&wn(e)}return this.ut=d,yn(e,u),_o}});var gm=Object.defineProperty,bm=Object.getOwnPropertyDescriptor,vm=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?bm(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&gm(t,o,c),c};const ym=[{type:"branches",icon:"gl-branches-view",command:"gitlens.showBranchesView",tooltip:"Branches"},{type:"remotes",icon:"gl-remotes-view",command:"gitlens.showRemotesView",tooltip:"Remotes"},{type:"stashes",icon:"gl-stashes-view",command:"gitlens.showStashesView",tooltip:"Stashes"},{type:"tags",icon:"gl-tags-view",command:"gitlens.showTagsView",tooltip:"Tags"},{type:"worktrees",icon:"gl-worktrees-view",command:"gitlens.showWorktreesView",tooltip:"Worktrees"}];let wm=class extends lit_element_r{constructor(){super(...arguments),this.enabled=!0,this._countsTask=new task_h(this,{args:()=>[this.fetchCounts()],task:([e])=>e,autoRun:!1})}connectedCallback(){super.connectedCallback(),this._disposable=this._ipc.onReceiveMessage((e=>{switch(!0){case Q.is(e):this._counts=void 0,this.requestUpdate();break;case Z.response.is(e):this._counts=Promise.resolve(e.params),this.requestUpdate()}}))}disconnectedCallback(){super.disconnectedCallback(),this._disposable?.dispose()}async fetchCounts(){if(null==this._counts){const e=this._ipc;if(null!=e){async function t(){return await e.sendRequest(Z,void 0)}this._counts=t()}else this._counts=Promise.resolve(void 0)}return this._counts}render(){return this.enabled?(null==this._counts&&this._countsTask.run(),vo`<section class="sidebar">
			${mm(ym,(e=>e),(e=>this.renderIcon(e)))}
		</section>`):xo}renderIcon(e){if(null==this.include||this.include.includes(e.type))return vo`<gl-tooltip placement="right" content="${e.tooltip}">
			<a class="item" href="command:${e.command}" @click=${()=>this.sendTelemetry(e.command)}>
				<code-icon icon="${e.icon}"></code-icon>
				${this._countsTask.render({pending:()=>vo`<span class="count"
							><code-icon icon="loading" modifier="spin" size="9"></code-icon
						></span>`,complete:t=>function(e){return null==e?xo:vo`<span class="count">${e>999?"1K+":String(e)}</span>`}(t?.[e.type]),error:()=>vo`<span class="count error"><code-icon icon="warning" size="9"></code-icon></span>`})}
			</a>
		</gl-tooltip>`}sendTelemetry(e){vt(this,{name:"graph/action/sidebar",data:{action:e}})}};wm.styles=At`
		.sidebar {
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 1.4rem;
			background-color: var(--color-graph-background);
			color: var(--titlebar-fg);
			width: 2.6rem;
			font-size: 9px;
			font-weight: 600;
			height: 100vh;
			padding: 3rem 0;
			z-index: 1040;
		}

		.item {
			color: inherit;
			text-decoration: none;
			display: flex;
			flex-direction: column;
			align-items: center;
			cursor: pointer;
		}

		.item:hover {
			color: var(--color-foreground);
			text-decoration: none;
		}

		.count {
			color: var(--color-foreground--50);
			/* color: var(--color-highlight); */
			margin-top: 0.4rem;
		}

		.count.error {
			color: var(--vscode-errorForeground);
			opacity: 0.6;
		}
	`,vm([Xo({type:Boolean})],wm.prototype,"enabled",2),vm([Xo({type:Array})],wm.prototype,"include",2),vm([function({context:e,subscribe:t}){return(o,r)=>{"object"==typeof r?r.addInitializer((function(){new s(this,{context:e,callback:e=>{o.set.call(this,e)},subscribe:t})})):o.constructor.addInitializer((o=>{new s(o,{context:e,callback:e=>{o[r]=e},subscribe:t})}))}}({context:"ipc"})],wm.prototype,"_ipc",2),wm=vm([qo("gl-graph-sidebar")],wm);const _m=Th(wm,{tagName:"gl-graph-sidebar"}),xm=e=>(t,o)=>function(e,t="absolute",o="short+short",r){switch(r){case Tt.CommitDateTimeSources.Tooltip:return`${eh(e,o)} (${Jd(e)})`;case Tt.CommitDateTimeSources.RowEntry:default:return"relative"===t?Jd(e):eh(e,o)}}(t,e?.dateStyle,e?.dateFormat,o),Cm=(()=>{const e={};return["head","remote","remote-github","remote-githubEnterprise","remote-gitlab","remote-gitlabSelfHosted","remote-bitbucket","remote-bitbucketServer","remote-azureDevops","tag","stash","check","loading","warning","added","modified","deleted","renamed","resolved","pull-request","show","hide","branch","graph","commit","author","datetime","message","changes","files","worktree"].forEach((t=>{e[t]=(0,u.createElement)("span",{className:`graph-icon icon--${t}`})})),["upstream-ahead","upstream-behind"].forEach((t=>{e[t]=(0,u.createElement)("span",{className:`graph-icon mini-icon icon--${t}`})})),e.settings=(0,u.createElement)("span",{className:"graph-icon icon--settings",style:{fontSize:"1.1rem",right:"0px",top:"-1px"}}),e})(),km=e=>Cm[e],Sm=(()=>{switch(Rt?"web-windows":St?"web-macOS":kt?"web-linux":"web"){case"web-macOS":return"darwin";case"web-windows":return"win32";default:return"linux"}})(),Rm={listDoubleSelection:!1,listMultiSelection:!1,webviewItems:void 0,webviewItemsValues:void 0};function Tm({subscriber:e,nonce:t,state:o,onChooseRepository:r,onChangeColumns:n,onChangeExcludeTypes:c,onChangeGraphConfiguration:d,onChangeRefIncludes:h,onChangeRefsVisibility:p,onChangeSelection:g,onDoubleClickRef:v,onDoubleClickRow:y,onEnsureRowPromise:w,onHoverRowPromise:x,onJumpToRefPromise:C,onMissingAvatars:S,onMissingRefsMetadata:T,onMoreRows:E,onOpenPullRequest:O,onSearch:D,onSearchPromise:A,onSearchOpenInView:$}){const P=(0,u.useRef)(null),[F,B]=(0,u.useState)(o.rows??[]),[W,G]=(0,u.useState)(o.rowsStats),[U,V]=(0,u.useState)(o.rowsStatsLoading),[j,Z]=(0,u.useState)(o.avatars),[q,K]=(0,u.useState)(o.downstreams??{}),[Q,ne]=(0,u.useState)(o.refsMetadata),[pe,fe]=(0,u.useState)(o.repositories??[]),[me,ge]=(0,u.useState)(pe.find((e=>e.path===o.selectedRepository))),[be,ve]=(0,u.useState)(o.branchesVisibility),[ye,we]=(0,u.useState)(o.branchState),[_e,xe]=(0,u.useState)(o.selectedRows),[Ce,ke]=(0,u.useState)(o.activeRow),[Se,Re]=(0,u.useState)(o.activeDay),[Te,Ee]=(0,u.useState)(),[Oe,Ie]=(0,u.useState)(o.visibleDays),[Me,ze]=(0,u.useState)(o.config),[De,Ae]=(0,u.useState)(o.columns),[$e,Pe]=(0,u.useState)(o.excludeRefs),[Ne,Le]=(0,u.useState)(o.excludeTypes),[He,Fe]=(0,u.useState)(o.includeOnlyRefs),[Be,We]=(0,u.useState)(o.context),[Ge,Ue]=(0,u.useState)(o.paging?.hasMore??!1),[Ve,je]=(0,u.useState)(o.loading),[Ze,qe]=(0,u.useState)(o.theming),[Ye,Ke]=(0,u.useState)(o.branch),[Xe,Qe]=(0,u.useState)(o.lastFetched),[Je,et]=(0,u.useState)(o.windowFocused),[tt,ot]=(0,u.useState)(o.allowed??!1),[rt,it]=(0,u.useState)(o.subscription),nt=(0,u.useRef)(null),[st,at]=(0,u.useState)(void 0),{results:lt,resultsError:ct}=zm(o),[dt,ht]=(0,u.useState)(lt),[ut,pt]=(0,u.useState)(ct),[ft,mt]=(0,u.useState)(!1),[gt,bt]=(0,u.useState)(!1),[yt,wt]=(0,u.useState)(o.workingTreeStats??{added:0,modified:0,deleted:0}),_t=Ye?.name,xt=(0,u.useRef)(void 0),Ct=(0,u.useRef)(void 0),kt=(0,u.useRef)(new Set),St=(0,u.useRef)(new Set);function Rt(e,t,o){switch(o&&qe(e.theming),t){case"didChangeTheme":o||qe(e.theming);break;case te:Z(e.avatars);break;case oe:we(e.branchState);break;case _:et(e.windowFocused);break;case re:ne(e.refsMetadata);break;case ie:Ae(e.columns),We(e.context);break;case ae:Ct.current?.reset(),B(e.rows??[]),G(e.rowsStats),V(e.rowsStatsLoading),xe(e.selectedRows),Z(e.avatars),K(e.downstreams??{}),ne(e.refsMetadata),Ue(e.paging?.hasMore??!1),je(e.loading);break;case le:G(e.rowsStats),V(e.rowsStatsLoading);break;case he:{const{results:t,resultsError:o}=zm(e);pt(o),ht(t),xe(e.selectedRows),bt(!1);break}case J:ze(e.config);break;case ce:xe(e.selectedRows);break;case se:if(ve(e.branchesVisibility),Pe(e.excludeRefs),Le(e.excludeTypes),Fe(e.includeOnlyRefs),null!=e.selectedRows){const t=Object.keys(e.selectedRows);t.length&&queueMicrotask((()=>P?.current?.selectCommits(t,!1,!0)))}break;case ee:ot(e.allowed??!1),it(e.subscription);break;case de:wt(e.workingTreeStats??{added:0,modified:0,deleted:0});break;case ue:Qe(e.lastFetched);break;case X:fe(e.repositories??[]),ge(e.repositories?.find((t=>t.path===e.selectedRepository)));break;default:{Ct.current?.reset(),ot(e.allowed??!1),o||qe(e.theming),Ke(e.branch),Qe(e.lastFetched),Ae(e.columns),B(e.rows??[]),G(e.rowsStats),V(e.rowsStatsLoading),wt(e.workingTreeStats??{added:0,modified:0,deleted:0}),ze(e.config),xe(e.selectedRows),Pe(e.excludeRefs),Le(e.excludeTypes),Fe(e.includeOnlyRefs),We(e.context),Z(e.avatars??{}),K(e.downstreams??{}),ve(e.branchesVisibility),we(e.branchState),ne(e.refsMetadata),Ue(e.paging?.hasMore??!1),fe(e.repositories??[]),ge(pe.find((t=>t.path===e.selectedRepository))),it(e.subscription);const{results:t,resultsError:r}=zm(e);pt(r),ht(t),je(e.loading);break}}}(0,u.useEffect)((()=>e?.(Rt)),[]);const Ot=e=>{if("Enter"===e.key||" "===e.key){const t=Mm(Ce??o.activeRow)?.id;if(null==t)return;const r=P.current?.graphContainerRef.current;if(!e.composedPath().some((e=>e===r)))return;const n=F.find((e=>e.sha===t));if(null==n)return;y?.(n,"Enter"!==e.key)}};(0,u.useEffect)((()=>(window.addEventListener("keydown",Ot),()=>{window.removeEventListener("keydown",Ot)})),[Ce]);const It=e=>{if(null==Me?.minimapMarkerTypes)return;const t=e.target,o=t.value;if(t.checked){if(!Me.minimapMarkerTypes.includes(o)){const e=[...Me.minimapMarkerTypes,o];ze({...Me,minimapMarkerTypes:e}),d?.({minimapMarkerTypes:e})}}else{const e=Me.minimapMarkerTypes.indexOf(o);if(-1!==e){const t=[...Me.minimapMarkerTypes];t.splice(e,1),ze({...Me,minimapMarkerTypes:t}),d?.({minimapMarkerTypes:t})}}};(0,u.useEffect)((()=>{null==ut&&null!=dt&&0!==dt.count&&null!=st&&nt.current?.logSearch(st)}),[dt]);const Mt=(0,u.useMemo)((()=>{if(null==dt?.ids||!st?.query)return 0;const e=Mm(Ce)?.id;let t=e?dt.ids[e]?.i:void 0;return null==t&&([t]=Em(dt,st,Ce)),t<1?1:t+1}),[Ce,dt]),zt=(0,u.useMemo)((()=>!!Me?.onlyFollowFirstParent||null!=Ne&&Object.values(Ne).includes(!0)),[Ne,Me?.onlyFollowFirstParent]),Dt=async e=>{if(null==w)return e;if(kt.current.has(e))return e;if(St.current.has(e))return;let t=setTimeout((()=>{t=void 0,je(!0)}),500);const o=await w(e,!1);if(null==t?je(!1):clearTimeout(t),o?.id===e)return kt.current.add(e),e;null!=o&&St.current.add(e)},At=e=>{const t=e.target;if(null==t)return;const{checked:o}=t;switch(t.value){case"mergeCommits":d?.({dimMergeCommits:o});break;case"onlyFollowFirstParent":d?.({onlyFollowFirstParent:o});break;case"remotes":case"stashes":case"tags":{const e=t.value,r=Ne?.[e];(null==r&&o||null!=r&&r!==o)&&(Le({...Ne,[e]:o}),c?.(e,o));break}}},$t=(e,t)=>{if(t.length<=1)return void Ee(void 0);const o=new Set;for(const e of t)o.add(e.sha);const r=function(e,t,o){const r=new Map;for(const n of e){const e=o(n);if(null==e)continue;const c=t(n),d=r.get(c);null==d?r.set(c,[e]):d.push(e)}return r}(t,(e=>e.type),(e=>null!=e.contexts?.row?"string"==typeof e.contexts.row?JSON.parse(e.contexts.row):e.contexts.row:void 0)),n=new Map;for(let[e,t]of r){let o;const r=new Set;for(const e of t)r.add(e.webviewItem);if(1===r.size)o=dh(r);else if(r.size>1){const e=new Map;for(const t of r){const[o,...r]=t.split("+");let n=e.get(o);if(null==n&&(n??=new Map,e.set(o,n)),0===r.length){n.clear();break}for(const e of r)n.set(e,(n.get(e)??0)+1)}if(1===e.size){let r;if([o,r]=dh(e),r.size>0){const e=uh(ch(r,(([e,o])=>o===t.length?e:void 0)),"+");e&&(o+=`+${e}`)}}else o=void 0,t=[]}const c=t.length;n.set(e,{listDoubleSelection:2===c,listMultiSelection:c>1,webviewItems:o,webviewItemsValues:c>1?t:void 0})}Ee({contexts:n,selectedShas:o})};return m().createElement(m().Fragment,null,m().createElement("header",{className:"titlebar graph-app__header"},m().createElement("div",{className:"titlebar__row titlebar__row--wrap"},m().createElement("div",{className:"titlebar__group"},me?.provider?.url&&m().createElement(m().Fragment,null,m().createElement(Pp,{placement:"bottom"},m().createElement("a",{href:me.provider.url,className:"action-button",style:{marginRight:"-0.5rem"},"aria-label":`Open Repository on ${me.provider.name}`,slot:"anchor",onClick:e=>vt(e.target,{name:"graph/action/openRepoOnRemote",data:{}})},m().createElement("span",{className:"cloud"===me.provider.icon?"codicon codicon-cloud action-button__icon":`glicon glicon-provider-${me.provider.icon} action-button__icon`,"aria-hidden":"true"},me.provider.integration?.connected&&m().createElement(Xh,{style:{marginLeft:"-0.2rem","--gl-indicator-color":"green","--gl-indicator-size":"0.4rem"}}))),m().createElement("span",{slot:"content"},"Open Repository on ",me.provider.name,m().createElement("hr",null),me.provider.integration?.connected?m().createElement("span",null,m().createElement("span",{style:{marginTop:"-3px"},className:"codicon codicon-check","aria-hidden":"true"})," ","Connected to ",me.provider.name):!1===me.provider.integration?.connected&&m().createElement(m().Fragment,null,m().createElement("span",{style:{marginTop:"-3px"},className:"codicon codicon-plug","aria-hidden":"true"})," ",m().createElement("a",{href:lh("gitlens.plus.cloudIntegrations.connect",{integrationIds:[me.provider.integration.id],source:"graph"})},"Connect to ",me.provider.name),m().createElement("span",null," â€” not connected")))),!1===me?.provider?.integration?.connected&&m().createElement(Eh,{appearance:"toolbar",href:lh("gitlens.plus.cloudIntegrations.connect",{integrationIds:[me.provider.integration.id],source:"graph"})},m().createElement(Gh,{icon:"plug",style:{color:"var(--titlebar-fg)"}}),m().createElement("span",{slot:"tooltip"},"Connect to ",me.provider.name,m().createElement("hr",null),"View pull requests and issues in the Commit Graph, Launchpad, autolinks, and more"))),m().createElement(Np,{placement:"bottom"},m().createElement("button",{type:"button",className:"action-button","aria-label":"Switch to Another Repository...",disabled:pe.length<2,onClick:()=>{r?.()}},me?.formattedName??"none selected",pe.length>1&&m().createElement("span",{className:"codicon codicon-chevron-down action-button__more","aria-hidden":"true"})),m().createElement("span",{slot:"content"},"Switch to Another Repository...")),tt&&me&&m().createElement(m().Fragment,null,m().createElement("span",null,m().createElement("span",{className:"codicon codicon-chevron-right"})),ye?.pr&&m().createElement(Pp,{placement:"bottom"},m().createElement("button",{slot:"anchor",type:"button",className:"action-button"},m().createElement(If,{type:"pr",identifier:`#${ye.pr.id}`,status:ye.pr.state,compact:!0})),m().createElement("div",{slot:"content"},m().createElement(If,{type:"pr",name:ye.pr.title,url:ye.pr.url,identifier:`#${ye.pr.id}`,status:ye.pr.state,date:ye.pr.updatedDate,dateFormat:Me?.dateFormat,dateStyle:Me?.dateStyle,details:!0,onOpenDetails:()=>ye.pr?.id?O?.(ye.pr):void 0}))),m().createElement(Pp,{placement:"bottom"},m().createElement("a",{slot:"anchor",href:fh("gitlens.graph.switchToAnotherBranch",o.webviewId,o.webviewInstanceId),className:"action-button",style:ye?.pr?{marginLeft:"-0.6rem"}:{},"aria-label":"Switch to Another Branch..."},ye?.pr?"":ye?.worktree?m().createElement("span",{className:"glicon glicon-repositories-view","aria-hidden":"true"}):m().createElement("span",{className:"codicon codicon-git-branch","aria-hidden":"true"}),m().createElement("span",{className:"action-button__truncated"},_t),m().createElement("span",{className:"codicon codicon-chevron-down action-button__more","aria-hidden":"true"})),m().createElement("div",{slot:"content"},m().createElement("span",null,"Switch to Another Branch...",m().createElement("hr",null),m().createElement("span",{className:"codicon codicon-git-branch","aria-hidden":"true"})," ",m().createElement("span",{className:"md-code"},_t),ye?.worktree?m().createElement("i",null," (in a worktree)"):""))),m().createElement(Eh,{className:"jump-to-ref",appearance:"toolbar",onClick:async e=>{const t=await(C?.(e.altKey));if(null!=t){const e=await Dt(t.sha);if(null==e)return;queueMicrotask((()=>P.current?.selectCommits([e],!1,!0)))}}},m().createElement(Gh,{icon:"target"}),m().createElement("span",{slot:"tooltip"},"Jump to HEAD",m().createElement("br",null),"[Alt] Jump to Reference...")),m().createElement("span",null,m().createElement("span",{className:"codicon codicon-chevron-right"})),m().createElement(qf,{branchName:_t,branchState:ye,lastFetched:Xe,state:o}))),m().createElement("div",{className:"titlebar__group"},m().createElement(Np,{placement:"bottom"},m().createElement("a",{className:"action-button",href:lh(Bd.GitCommandsBranch,{state:{subcommand:"create",reference:Ye},command:"branch",confirm:!0})},m().createElement("span",{className:"codicon codicon-custom-git-branch-create action-button__icon"})),m().createElement("span",{slot:"content"},"Create New Branch from ",m().createElement("span",{className:"codicon codicon-git-branch"}),m().createElement("span",{className:"md-code"},_t))),m().createElement(Np,{placement:"bottom"},m().createElement("a",{href:`command:gitlens.showLaunchpad?${encodeURIComponent(JSON.stringify({source:"graph"}))}`,className:"action-button"},m().createElement("span",{className:"codicon codicon-rocket"})),m().createElement("span",{slot:"content"},m().createElement("span",{style:{whiteSpace:"break-spaces"}},m().createElement("strong",null,"Launchpad")," â€” organizes your pull requests into actionable groups to help you focus and keep your team unblocked"))),(null==rt||!ah(rt))&&m().createElement(df,{source:{source:"graph",detail:"badge"},subscription:rt}))),tt&&m().createElement("div",{className:"titlebar__row"},m().createElement("div",{className:"titlebar__group"},m().createElement(Np,{placement:"top",content:"Branches Visibility"},m().createElement(Ks,{value:be,onSlChange:e=>{const t=e.target;null!=t&&h?.(t.value)},hoist:!0},m().createElement(Gh,{icon:"chevron-down",slot:"expand-icon"}),m().createElement(ma,{value:"all",disabled:me?.isVirtual},"All Branches"),m().createElement(ma,{value:"smart",disabled:me?.isVirtual},"Smart Branches",me?.isVirtual?m().createElement(Gh,{icon:"info",slot:"suffix"}):m().createElement(Np,{placement:"right",slot:"suffix"},m().createElement(Gh,{icon:"info"}),m().createElement("span",{slot:"content"},"Shows only relevant branches",m().createElement("br",null),m().createElement("br",null),m().createElement("i",null,"Includes the current branch, its upstream, and its base or target branch")))),m().createElement(ma,{value:"current"},"Current Branch"))),m().createElement(Pp,{className:"popover",placement:"bottom-start",trigger:"focus",arrow:!1,distance:0},m().createElement(Np,{placement:"top",slot:"anchor"},m().createElement("button",{type:"button",className:"action-button"},m().createElement("span",{className:"codicon codicon-filter"+(zt?"-filled":"")}),m().createElement("span",{className:"codicon codicon-chevron-down action-button__more","aria-hidden":"true"})),m().createElement("span",{slot:"content"},"Graph Filtering")),m().createElement("div",{slot:"content"},m().createElement(Mp,null,"Graph Filters"),!0!==me?.isVirtual&&m().createElement(m().Fragment,null,m().createElement(Ip,{role:"none"},m().createElement(Np,{placement:"right",content:"Only follow the first parent of merge commits to provide a more linear history"},m().createElement(Wh,{value:"onlyFollowFirstParent",onChange:At,checked:Me?.onlyFollowFirstParent??!1},"Simplify Merge History"))),m().createElement(Op,null),m().createElement(Ip,{role:"none"},m().createElement(Wh,{value:"remotes",onChange:At,checked:Ne?.remotes??!1},"Hide Remote-only Branches")),m().createElement(Ip,{role:"none"},m().createElement(Wh,{value:"stashes",onChange:At,checked:Ne?.stashes??!1},"Hide Stashes"))),m().createElement(Ip,{role:"none"},m().createElement(Wh,{value:"tags",onChange:At,checked:Ne?.tags??!1},"Hide Tags")),m().createElement(Op,null),m().createElement(Ip,{role:"none"},m().createElement(Wh,{value:"mergeCommits",onChange:At,checked:Me?.dimMergeCommits??!1},"Dim Merge Commit Rows")))),m().createElement("span",null,m().createElement("span",{className:"action-divider"})),m().createElement(Vf,{ref:nt,label:"Search Commits",step:Mt,total:dt?.count??0,valid:Boolean(st?.query&&st.query.length>2),more:dt?.paging?.hasMore??!1,searching:gt,value:st?.query??"",errorMessage:ut?.error??"",resultsHidden:ft,resultsLoaded:null!=dt,onChange:e=>(e=>{const t=e.detail;at(t);const o=t.query.length>=3;ht(void 0),pt(void 0),mt(!1),bt(o),D?.(o?t:void 0)})(e),onNavigate:e=>(async e=>{if(null==dt)return;const t=e.detail?.direction??"next";let o,r,n,c=dt,d=c.count;"first"===t?(n=!1,o=0):"last"===t?(n=!1,o=-1):(n="next"===t,[o,r]=Em(c,st,Ce,n));let h=0;for(;h<1e3;){if(h++,-1===o)if(n)if(null!=st&&c?.paging?.hasMore){let e;bt(!0);try{e=await(A?.(st,{more:!0}))}finally{bt(!1)}null==e?.results||"error"in e.results?o=0:d<e.results.count?(c=e.results,o=d,d=c.count):o=0}else o=0;else if("last"===t&&null!=st&&c?.paging?.hasMore){let e;bt(!0);try{e=await(A?.(st,{limit:0,more:!0}))}finally{bt(!1)}null==e?.results||"error"in e.results||(d<e.results.count&&(c=e.results,d=c.count),o=d)}else o=d-1;if(r=r??Im(c,o),null!=r&&(r=await Dt(r),null!=r))break;mt(!0),o=Om(o,n,c,st)}null!=r&&queueMicrotask((()=>P.current?.selectCommits([r],!1,!0)))})(e),onOpenInView:()=>{null!=st&&$?.(st)}}),m().createElement("span",null,m().createElement("span",{className:"action-divider"})),m().createElement("span",{className:"button-group"},m().createElement(Np,{placement:"bottom"},m().createElement("button",{type:"button",role:"checkbox",className:"action-button","aria-label":"Toggle Minimap","aria-checked":Me?.minimap??!1,onClick:e=>{d?.({minimap:!Me?.minimap})}},m().createElement("span",{className:"codicon codicon-graph-line action-button__icon"})),m().createElement("span",{slot:"content"},"Toggle Minimap")),m().createElement(Pp,{className:"popover",placement:"bottom-end",trigger:"focus",arrow:!1,distance:0},m().createElement(Np,{placement:"top",distance:7,slot:"anchor"},m().createElement("button",{type:"button",className:"action-button","aria-label":"Minimap Options"},m().createElement("span",{className:"codicon codicon-chevron-down action-button__more","aria-hidden":"true"})),m().createElement("span",{slot:"content"},"Minimap Options")),m().createElement("div",{slot:"content"},m().createElement(Mp,null,"Minimap"),m().createElement(Ip,{role:"none"},m().createElement(Kp,{value:Me?.minimapDataType??"commits",onChange:e=>{if(null==Me)return;const t="lines"===e.target.value?"lines":"commits";Me.minimapDataType!==t&&(ze({...Me,minimapDataType:t}),d?.({minimapDataType:t}))}},m().createElement(Yp,{name:"minimap-datatype",value:"commits"},"Commits"),m().createElement(Yp,{name:"minimap-datatype",value:"lines"},"Lines Changed"))),m().createElement(Op,null),m().createElement(Mp,null,"Markers"),m().createElement(Ip,{role:"none"},m().createElement(Wh,{value:"localBranches",onChange:It,checked:Me?.minimapMarkerTypes?.includes("localBranches")??!1},m().createElement("span",{className:"minimap-marker-swatch","data-marker":"localBranches"}),"Local Branches")),m().createElement(Ip,{role:"none"},m().createElement(Wh,{value:"remoteBranches",onChange:It,checked:Me?.minimapMarkerTypes?.includes("remoteBranches")??!0},m().createElement("span",{className:"minimap-marker-swatch","data-marker":"remoteBranches"}),"Remote Branches")),m().createElement(Ip,{role:"none"},m().createElement(Wh,{value:"pullRequests",onChange:It,checked:Me?.minimapMarkerTypes?.includes("pullRequests")??!0},m().createElement("span",{className:"minimap-marker-swatch","data-marker":"pullRequests"}),"Pull Requests")),m().createElement(Ip,{role:"none"},m().createElement(Wh,{value:"stashes",onChange:It,checked:Me?.minimapMarkerTypes?.includes("stashes")??!1},m().createElement("span",{className:"minimap-marker-swatch","data-marker":"stashes"}),"Stashes")),m().createElement(Ip,{role:"none"},m().createElement(Wh,{value:"tags",onChange:It,checked:Me?.minimapMarkerTypes?.includes("tags")??!0},m().createElement("span",{className:"minimap-marker-swatch","data-marker":"tags"}),"Tags"))))))),m().createElement("div",{className:"progress-container infinite"+(Ve||U?" active":""),role:"progressbar"},m().createElement("div",{className:"progress-bar"}))),m().createElement(_f,{className:"graph-app__gate",appearance:"alert",featureWithArticleIfNeeded:"the Commit Graph",source:{source:"graph",detail:"gate"},state:rt?.state,visible:!tt},m().createElement("p",{slot:"feature"},m().createElement("a",{href:"https://help.gitkraken.com/gitlens/gitlens-features/#commit-graph-pro"},"Commit Graph"),m().createElement(df,{source:{source:"graph",detail:"badge"},subscription:rt})," ","â€” easily visualize your repository and keep track of all work in progress. Use the rich commit search to find a specific commit, message, author, a changed file or files, or even a specific code change.")),m().createElement(hm,{ref:xt,activeDay:Se,disabled:!Me?.minimap,rows:F,rowsStats:W,dataType:Me?.minimapDataType??"commits",markerTypes:Me?.minimapMarkerTypes,refMetadata:Q,searchResults:dt,visibleDays:Oe,onSelected:e=>(e=>{let{sha:t}=e.detail;if(null==t){const o=e.detail.date?.getTime();if(null==o)return;t=F.reduce(((e,t)=>Math.abs(t.date-o)<Math.abs(e.date-o)?t:e)).sha}P.current?.selectCommits([t],!1,!0),queueMicrotask((()=>e.target&&vt(e.target,{name:"graph/minimap/day/selected",data:{}})))})(e)}),m().createElement(Jf,{ref:Ct,id:"commit-hover",distance:0,skidding:15}),m().createElement("main",{id:"main",className:"graph-app__main","aria-hidden":!tt},m().createElement(_m,{enabled:Me?.sidebar,include:me?.isVirtual?["branches","remotes","tags"]:["branches","remotes","tags","stashes","worktrees"]}),void 0!==me?m().createElement(m().Fragment,null,m().createElement(Et(),{ref:P,avatarUrlByEmail:j,columnsSettings:De,contexts:Be,formatCommitMessage:e=>m().createElement(mp,{markdown:e}),cssVariables:Ze?.cssVariables,dimMergeCommits:Me?.dimMergeCommits,downstreamsByUpstream:q,enabledRefMetadataTypes:Me?.enabledRefMetadataTypes,enabledScrollMarkerTypes:Me?.scrollMarkerTypes,enableShowHideRefsOptions:!0,enableMultiSelection:Me?.enableMultiSelection,excludeRefsById:$e,excludeByType:Ne,formatCommitDateTime:xm(Me),getExternalIcon:km,graphRows:F,hasMoreCommits:Ge,highlightedShas:dt?.ids,highlightRowsOnRefHover:Me?.highlightRowsOnRefHover,includeOnlyRefsById:He,scrollRowPadding:Me?.scrollRowPadding,showGhostRefsOnRowHover:Me?.showGhostRefsOnRowHover,showRemoteNamesOnRefs:Me?.showRemoteNamesOnRefs,isContainerWindowFocused:Je,isLoadingRows:Ve,isSelectedBySha:_e,nonce:t,onColumnResized:(e,t)=>{t.width&&n?.({[e]:{width:t.width,isHidden:t.isHidden,mode:t.mode,order:t.order}})},onDoubleClickGraphRow:(e,t,o)=>{t!==Tt.refZone&&y?.(o,!0)},onDoubleClickGraphRef:(e,t,o,r)=>{t.length>0&&v?.(t[0],r)},onGraphColumnsReOrdered:e=>{const t={};for(const[o,r]of Object.entries(e))t[o]={...r};n?.(t)},onGraphMouseLeave:e=>{xt.current?.unselect(void 0,!0),document.querySelector(".graph-header .resizable.resizing")&&document.dispatchEvent(new MouseEvent("mouseup",{view:window,bubbles:!0,cancelable:!0}))},onGraphRowHovered:(e,t,o)=>{if(t===Tt.refZone)return;if(xt.current?.select(o.date,!0),null==x)return;const r=Ct.current;if(null==r)return;const{clientX:n}=e,c=e.currentTarget.getBoundingClientRect(),d=n,h=c.top,u=c.height,p={getBoundingClientRect:function(){return{width:60,height:u,x:d,y:h,top:h,left:d,right:d+60,bottom:h+u}}};r.requestMarkdown??=x,r.onRowHovered(o,p)},onGraphRowUnhovered:(e,t,o)=>{t!==Tt.refZone&&Ct.current?.onRowUnhovered(o,e.relatedTarget)},onRowContextMenu:(e,t,o)=>{if(t===Tt.refZone)return;const r=Te?.selectedShas.has(o.sha)?Te.contexts.get(o.type):Rm;We({...Be,graph:{...null!=Be?.graph&&"string"==typeof Be.graph?JSON.parse(Be.graph):Be?.graph,...r}})},onSettingsClick:e=>{const t=e.nativeEvent,o=new MouseEvent("contextmenu",{bubbles:!0,clientX:t.clientX,clientY:t.clientY});t.target?.dispatchEvent(o),t.stopImmediatePropagation()},onSelectGraphRows:e=>{Ct.current?.hide();const t=e[e.length-1],r=null!=t?`${t.sha}|${t.date}`:void 0;o.activeRow=r,ke(r),Re(t?.date),$t(0,e),g?.(e)},onToggleRefsVisibilityClick:(e,t,o)=>{p?.(t,o)},onEmailsMissingAvatarUrls:e=>{S?.(e)},onRefsMissingMetadata:e=>{T?.(e)},onShowMoreCommits:()=>{je(!0),E?.()},onGraphVisibleRowsChanged:xt.current?(e,t)=>{Ie({top:new Date(e.date).setHours(23,59,59,999),bottom:new Date(t.date).setHours(0,0,0,0)})}:void 0,platform:Sm,refMetadataById:Q,rowsStats:W,rowsStatsLoading:U,shaLength:Me?.idLength,shiftSelectMode:"simple",suppressNonRefRowTooltips:!0,themeOpacityFactor:Ze?.themeOpacityFactor,useAuthorInitialsForAvatars:!Me?.avatars,workDirStats:yt})):m().createElement("p",null,"No repository is selected")))}function Em(e,t,o,r=!0){if(null==e.ids)return[0,void 0];const n=Mm(o),c=n?.id;if(null==c)return[0,void 0];let d,h,u;const p=e.ids[c];if(null!=p&&(d=p.i,h=c,u=d),null==d){const t=null!=n?.date?n.date+(r?1:-1):void 0;if(null==t)return[0,void 0];let o,c,p,m;for([c,{date:p,i:o}]of Object.entries(e.ids))r?p<t&&(null==m||p>m)&&(h=c,m=p,u=o):p>t&&(null==m||p<=m)&&(h=c,m=p,u=o);d=null==u?e.count-1:u+(r?-1:1)}return d=Om(d,r,e,t),d===u?[d,h]:[d,void 0]}function Om(e,t,o,r){return t?e<o.count-1?e++:e=null!=r&&o?.paging?.hasMore?-1:0:e>0?e--:e=null!=r&&o?.paging?.hasMore?-1:o.count-1,e}function Im(e,t){const{ids:o}=e;for(const e in o)if(o[e].i===t)return e}function Mm(e){if(null==e)return;const[t,o]=e.split("|");return{id:t,date:Number(o)}}function zm(e){let t,o;return null!=e.searchResults&&("error"in e.searchResults?o=e.searchResults:t=e.searchResults),{results:t,resultsError:o}}var Dm=Object.defineProperty,Am=Object.getOwnPropertyDescriptor,$m=(e,t,o,r)=>{for(var n,c=r>1?void 0:r?Am(t,o):t,d=e.length-1;d>=0;d--)(n=e[d])&&(c=(r?n(t,o,c):n(c))||c);return r&&c&&Dm(t,o,c),c};const Pm=new Map([["--vscode-gitlens-graphLane1Color","#15a0bf"],["--vscode-gitlens-graphLane2Color","#0669f7"],["--vscode-gitlens-graphLane3Color","#8e00c2"],["--vscode-gitlens-graphLane4Color","#c517b6"],["--vscode-gitlens-graphLane5Color","#d90171"],["--vscode-gitlens-graphLane6Color","#cd0101"],["--vscode-gitlens-graphLane7Color","#f25d2e"],["--vscode-gitlens-graphLane8Color","#f2ca33"],["--vscode-gitlens-graphLane9Color","#7bd938"],["--vscode-gitlens-graphLane10Color","#2ece9d"]]);class GraphApp extends App{constructor(){super("GraphApp")}onBind(){const e=super.onBind?.()??[];this.ensureTheming(this.state);const t=document.getElementById("root");return null!=t&&((0,g.render)(m().createElement(Tm,{nonce:this.state.nonce,state:this.state,subscriber:e=>this.registerUpdateStateCallback(e),onChangeColumns:Oe((e=>this.onColumnsChanged(e)),250),onChangeExcludeTypes:this.onExcludeTypesChanged.bind(this),onChangeGraphConfiguration:this.onGraphConfigurationChanged.bind(this),onChangeRefIncludes:this.onRefIncludesChanged.bind(this),onChangeRefsVisibility:(e,t)=>this.onRefsVisibilityChanged(e,t),onChangeSelection:Oe((e=>this.onSelectionChanged(e)),250),onChooseRepository:Oe((()=>this.onChooseRepository()),250),onDoubleClickRef:(e,t)=>this.onDoubleClickRef(e,t),onDoubleClickRow:(e,t)=>this.onDoubleClickRow(e,t),onEnsureRowPromise:this.onEnsureRowPromise.bind(this),onHoverRowPromise:e=>this.onHoverRowPromise(e),onJumpToRefPromise:e=>this.onJumpToRefPromise(e),onMissingAvatars:(...e)=>this.onGetMissingAvatars(...e),onMissingRefsMetadata:(...e)=>this.onGetMissingRefsMetadata(...e),onMoreRows:(...e)=>this.onGetMoreRows(...e),onOpenPullRequest:(...e)=>this.onOpenPullRequest(...e),onSearch:Oe(((e,t)=>this.onSearch(e,t)),250),onSearchPromise:(...e)=>this.onSearchPromise(...e),onSearchOpenInView:(...e)=>this.onSearchOpenInView(...e)}),t),e.push({dispose:()=>(0,g.unmountComponentAtNode)(t)})),e}onMessageReceived(e){const t=je();switch(!0){case Q.is(e):this.setState({...this.state,...e.params.state},Q);break;case ue.is(e):this.state.lastFetched=e.params.lastFetched,this.setState(this.state,ue);break;case te.is(e):this.state.avatars=e.params.avatars,this.setState(this.state,te);break;case oe.is(e):this.state.branchState=e.params.branchState,this.setState(this.state,oe);break;case _.is(e):this.state.windowFocused=e.params.focused,this.setState(this.state,_);break;case ie.is(e):this.state.columns=e.params.columns,this.state.context={...this.state.context,header:e.params.context,settings:e.params.settingsContext},this.setState(this.state,ie);break;case se.is(e):this.state.branchesVisibility=e.params.branchesVisibility,this.state.excludeRefs=e.params.excludeRefs,this.state.excludeTypes=e.params.excludeTypes,this.state.includeOnlyRefs=e.params.includeOnlyRefs,this.setState(this.state,se);break;case re.is(e):this.state.refsMetadata=e.params.metadata,this.setState(this.state,re);break;case ae.is(e):{let o;if(e.params.rows.length&&null!=e.params.paging?.startingCursor&&null!=this.state.rows){const r=this.state.rows,n=r[r.length-1]?.sha;let c=r.length;const d=e.params.rows.length;if(this.log(t,`paging in ${d} rows into existing ${c} rows at ${e.params.paging.startingCursor} (last existing row: ${n})`),o=[],o.length=c+d,e.params.paging.startingCursor!==n){this.log(t,`searching for ${e.params.paging.startingCursor} in existing rows`);let n,h=0;for(n of r)if(o[h++]=n,n.sha===e.params.paging.startingCursor){this.log(t,`found ${e.params.paging.startingCursor} in existing rows`),c=h,c!==r.length&&(o.length=c+d);break}}else for(let e=0;e<c;e++)o[e]=r[e];for(let t=0;t<d;t++)o[c+t]=e.params.rows[t]}else this.log(t,`setting to ${e.params.rows.length} rows`),o=0===e.params.rows.length?this.state.rows:e.params.rows;this.state.avatars=e.params.avatars,this.state.downstreams=e.params.downstreams,void 0!==e.params.refsMetadata&&(this.state.refsMetadata=e.params.refsMetadata),this.state.rows=o,this.state.paging=e.params.paging,null!=e.params.rowsStats&&(this.state.rowsStats={...this.state.rowsStats,...e.params.rowsStats}),this.state.rowsStatsLoading=e.params.rowsStatsLoading,null!=e.params.selectedRows&&(this.state.selectedRows=e.params.selectedRows),this.state.loading=!1,this.setState(this.state,ae),function(e,t,o){null!=e&&(e.exitDetails=t,null!=o&&(e.exitFailed=o))}(t,` â€¢ rows=${this.state.rows?.length??0}`);break}case le.is(e):this.state.rowsStats={...this.state.rowsStats,...e.params.rowsStats},this.state.rowsStatsLoading=e.params.rowsStatsLoading,this.setState(this.state,le);break;case ne.is(e):this.state.context={...this.state.context,settings:e.params.context},this.setState(this.state,ne);break;case he.is(e):this.updateSearchResultState(e.params);break;case ce.is(e):this.state.selectedRows=e.params.selection,this.setState(this.state,ce);break;case J.is(e):this.state.config=e.params.config,this.setState(this.state,J);break;case ee.is(e):this.state.subscription=e.params.subscription,this.state.allowed=e.params.allowed,this.setState(this.state,ee);break;case de.is(e):this.state.workingTreeStats=e.params.stats,this.setState(this.state,de);break;case X.is(e):this.state.repositories=e.params.repositories,this.setState(this.state,X);break;default:super.onMessageReceived?.(e)}}onThemeUpdated(e){const t=document.documentElement.style,o=we.from(e.colors.background),r=we.from(e.colors.foreground),n=o.getRelativeLuminance(),c=r.getRelativeLuminance(),d=e=>{let t,o;c>n?(o=c,t=n):(t=c,o=n);return e/1*(o-t)+t};let h=we.fromCssVariable("--vscode-scrollbarSlider-background",e.computedStyle);if(t.setProperty("--color-graph-minimap-visibleAreaBackground",h.luminance(d(e.isLightTheme?.6:.1)).toString()),!e.isLightTheme){h=we.fromCssVariable("--color-graph-scroll-marker-local-branches",e.computedStyle),t.setProperty("--color-graph-minimap-tip-branchBackground",h.luminance(d(.55)).toString()),h=we.fromCssVariable("--color-graph-scroll-marker-local-branches",e.computedStyle),t.setProperty("--color-graph-minimap-tip-branchBorder",h.luminance(d(.55)).toString()),h=we.fromCssVariable("--vscode-editor-foreground",e.computedStyle);const o=h.isLighter()?h.luminance(.01).toString():h.luminance(.99).toString();t.setProperty("--color-graph-minimap-tip-headForeground",o),t.setProperty("--color-graph-minimap-tip-upstreamForeground",o),t.setProperty("--color-graph-minimap-tip-highlightForeground",o),t.setProperty("--color-graph-minimap-tip-branchForeground",o)}const u=d(e.isLightTheme?.72:.064),p=d(e.isLightTheme?.64:.076),m=d(e.isLightTheme?.92:.02);h=we.fromCssVariable("--branch-status-ahead-foreground",e.computedStyle),t.setProperty("--branch-status-ahead-background",h.luminance(u).toString()),t.setProperty("--branch-status-ahead-hover-background",h.luminance(p).toString()),t.setProperty("--branch-status-ahead-pill-background",h.luminance(m).toString()),h=we.fromCssVariable("--branch-status-behind-foreground",e.computedStyle),t.setProperty("--branch-status-behind-background",h.luminance(u).toString()),t.setProperty("--branch-status-behind-hover-background",h.luminance(p).toString()),t.setProperty("--branch-status-behind-pill-background",h.luminance(m).toString()),h=we.fromCssVariable("--branch-status-both-foreground",e.computedStyle),t.setProperty("--branch-status-both-background",h.luminance(u).toString()),t.setProperty("--branch-status-both-hover-background",h.luminance(p).toString()),t.setProperty("--branch-status-both-pill-background",h.luminance(m).toString()),e.isInitializing||(this.state.theming=void 0,this.setState(this.state,"didChangeTheme"))}setState(e,t){const o=this.ensureTheming(e);this.state=e,super.setState({timestamp:e.timestamp,selectedRepository:e.selectedRepository}),this.updateStateCallback?.(this.state,t,o)}ensureTheming(e){return null==e.theming&&(e.theming=this.getGraphTheming(),!0)}getGraphTheming(){const e=window.getComputedStyle(document.documentElement),t=ve("--color-background",e),o={};let r,n=0;for(const[c,d]of Pm){r=ve(c,e)||d,o[`--column-${n}-color`]=r,o[`--graph-color-${n}`]=r;for(const e of[15,25,45,50])o[`--graph-color-${n}-bg${e}`]=ge(t,r,e);for(const e of[10,50])o[`--graph-color-${n}-f${e}`]=me(r,e);n++}const c=document.body.classList.contains("vscode-high-contrast")||document.body.classList.contains("vscode-high-contrast-light");return{cssVariables:{"--app__bg0":t,"--panel__bg0":ve("--color-graph-background",e),"--panel__bg1":ve("--color-graph-background2",e),"--section-border":ve("--color-graph-background2",e),"--selected-row":ve("--color-graph-selected-row",e),"--selected-row-border":c?`1px solid ${ve("--color-graph-contrast-border",e)}`:"none","--hover-row":ve("--color-graph-hover-row",e),"--hover-row-border":c?`1px dashed ${ve("--color-graph-contrast-border",e)}`:"none","--scrollable-scrollbar-thickness":ve("--graph-column-scrollbar-thickness",e),"--scroll-thumb-bg":ve("--vscode-scrollbarSlider-background",e),"--scroll-marker-head-color":ve("--color-graph-scroll-marker-head",e),"--scroll-marker-upstream-color":ve("--color-graph-scroll-marker-upstream",e),"--scroll-marker-highlights-color":ve("--color-graph-scroll-marker-highlights",e),"--scroll-marker-local-branches-color":ve("--color-graph-scroll-marker-local-branches",e),"--scroll-marker-remote-branches-color":ve("--color-graph-scroll-marker-remote-branches",e),"--scroll-marker-stashes-color":ve("--color-graph-scroll-marker-stashes",e),"--scroll-marker-tags-color":ve("--color-graph-scroll-marker-tags",e),"--scroll-marker-selection-color":ve("--color-graph-scroll-marker-selection",e),"--scroll-marker-pull-requests-color":ve("--color-graph-scroll-marker-pull-requests",e),"--stats-added-color":ve("--color-graph-stats-added",e),"--stats-deleted-color":ve("--color-graph-stats-deleted",e),"--stats-files-color":ve("--color-graph-stats-files",e),"--stats-bar-border-radius":ve("--graph-stats-bar-border-radius",e),"--stats-bar-height":ve("--graph-stats-bar-height",e),"--text-selected":ve("--color-graph-text-selected",e),"--text-selected-row":ve("--color-graph-text-selected-row",e),"--text-hovered":ve("--color-graph-text-hovered",e),"--text-dimmed-selected":ve("--color-graph-text-dimmed-selected",e),"--text-dimmed":ve("--color-graph-text-dimmed",e),"--text-normal":ve("--color-graph-text-normal",e),"--text-secondary":ve("--color-graph-text-secondary",e),"--text-disabled":ve("--color-graph-text-disabled",e),"--text-accent":ve("--color-link-foreground",e),"--text-inverse":ve("--vscode-input-background",e),"--text-bright":ve("--vscode-input-background",e),...o},themeOpacityFactor:parseInt(ve("--graph-theme-opacity-factor",e))||1}}onColumnsChanged(e){this.sendCommand(P,{config:e})}onRefsVisibilityChanged(e,t){this.sendCommand(F,{refs:e,visible:t})}onChooseRepository(){this.sendCommand(S,void 0)}onDoubleClickRef(e,t){this.sendCommand(T,{type:"ref",ref:e,metadata:t})}onDoubleClickRow(e,t){this.sendCommand(T,{type:"row",row:{id:e.sha,type:e.type},preserveFocus:t})}async onHoverRowPromise(e){try{const t=await this.sendRequest(q,{type:e.type,id:e.sha});return this._telemetry.sendEvent({name:"graph/row/hovered",data:{}}),t}catch(t){return{id:e.sha,markdown:{status:"rejected",reason:t}}}}async onJumpToRefPromise(e){try{const t=await this.sendRequest(V,{alt:e});return this._telemetry.sendEvent({name:"graph/action/jumpTo",data:{alt:e}}),t}catch{return}}onGetMissingAvatars(e){this.sendCommand(E,{emails:e})}onGetMissingRefsMetadata(e){this.sendCommand(O,{metadata:e})}onGetMoreRows(e){this.sendCommand(D,{id:e})}onOpenPullRequest(e){this.sendCommand(A,{id:e.id})}async onSearch(e,t){null==e&&(this.state.searchResults=void 0);try{const o=await this.sendRequest(K,{search:e,limit:t?.limit});this.updateSearchResultState(o)}catch{this.state.searchResults=void 0}}async onSearchPromise(e,t){try{const o=await this.sendRequest(K,{search:e,limit:t?.limit,more:t?.more});return this.updateSearchResultState(o),o}catch{return}}onSearchOpenInView(e){this.sendCommand($,{search:e})}async onEnsureRowPromise(e,t){try{return await this.sendRequest(j,{id:e,select:t})}catch{return}}onExcludeTypesChanged(e,t){this.sendCommand(B,{key:e,value:t})}onRefIncludesChanged(e,t){this.sendCommand(G,{branchesVisibility:e,refs:t})}onGraphConfigurationChanged(e){this.sendCommand(W,{changes:e})}onSelectionChanged(e){const t=e.filter((e=>null!=e)).map((e=>({id:e.sha,type:e.type})));this._telemetry.sendEvent({name:"graph/row/selected",data:{rows:t.length}}),this.sendCommand(U,{selection:t})}registerUpdateStateCallback(e){return this.updateStateCallback=e,()=>{this.updateStateCallback=void 0}}updateSearchResultState(e){this.state.searchResults=e.results,null!=e.selectedRows&&(this.state.selectedRows=e.selectedRows),this.setState(this.state,he)}}$m([Qe()],GraphApp.prototype,"onBind",1),$m([Xe({args:!1,singleLine:!0})],GraphApp.prototype,"setState",1),new GraphApp;var Nm=d.E;export{Nm as GraphApp};ØA
—Eoúô