/* via /vercel/path0/node_modules/@awesome.me/webawesome/dist/components/copy-button/copy-button.js */ var Xe=class extends Event{constructor(e){super("wa-copy",{bubbles:!0,cancelable:!1,composed:!0}),this.detail=e}};var Gt=globalThis,Zt=Gt.ShadowRoot&&(Gt.ShadyCSS===void 0||Gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ce=Symbol(),Ke=new WeakMap,Ft=class{constructor(t,o,i){if(this._$cssResult$=!0,i!==Ce)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o,o=this.t;if(Zt&&t===void 0){let i=o!==void 0&&o.length===1;i&&(t=Ke.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ke.set(o,t))}return t}toString(){return this.cssText}},Ge=e=>new Ft(typeof e=="string"?e:e+"",void 0,Ce),z=(e,...t)=>{let o=e.length===1?e[0]:t.reduce((i,r,s)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[s+1],e[0]);return new Ft(o,e,Ce)},Ze=(e,t)=>{if(Zt)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let i=document.createElement("style"),r=Gt.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=o.cssText,e.appendChild(i)}},xe=Zt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let o="";for(let i of t.cssRules)o+=i.cssText;return Ge(o)})(e):e;var{is:zi,defineProperty:Fi,getOwnPropertyDescriptor:ki,getOwnPropertyNames:Bi,getOwnPropertySymbols:Di,getPrototypeOf:Ii}=Object,Jt=globalThis,Je=Jt.trustedTypes,Ni=Je?Je.emptyScript:"",Ui=Jt.reactiveElementPolyfillSupport,kt=(e,t)=>e,Bt={toAttribute(e,t){switch(t){case Boolean:e=e?Ni:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=e!==null;break;case Number:o=e===null?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch{o=null}}return o}},Qt=(e,t)=>!zi(e,t),Qe={attribute:!0,type:String,converter:Bt,reflect:!1,useDefault:!1,hasChanged:Qt};Symbol.metadata??=Symbol("metadata"),Jt.litPropertyMetadata??=new WeakMap;var Q=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=Qe){if(o.state&&(o.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((o=Object.create(o)).wrapped=!0),this.elementProperties.set(t,o),!o.noAccessor){let i=Symbol(),r=this.getPropertyDescriptor(t,i,o);r!==void 0&&Fi(this.prototype,t,r)}}static getPropertyDescriptor(t,o,i){let{get:r,set:s}=ki(this.prototype,t)??{get(){return this[o]},set(n){this[o]=n}};return{get:r,set(n){let a=r?.call(this);s?.call(this,n),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Qe}static _$Ei(){if(this.hasOwnProperty(kt("elementProperties")))return;let t=Ii(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(kt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(kt("properties"))){let o=this.properties,i=[...Bi(o),...Di(o)];for(let r of i)this.createProperty(r,o[r])}let t=this[Symbol.metadata];if(t!==null){let o=litPropertyMetadata.get(t);if(o!==void 0)for(let[i,r]of o)this.elementProperties.set(i,r)}this._$Eh=new Map;for(let[o,i]of this.elementProperties){let r=this._$Eu(o,i);r!==void 0&&this._$Eh.set(r,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let o=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let r of i)o.unshift(xe(r))}else t!==void 0&&o.push(xe(t));return o}static _$Eu(t,o){let i=o.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,o=this.constructor.elementProperties;for(let i of o.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ze(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,o,i){this._$AK(t,i)}_$ET(t,o){let i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:Bt).toAttribute(o,i.type);this._$Em=t,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(t,o){let i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let s=i.getPropertyOptions(r),n=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Bt;this._$Em=r;let a=n.fromAttribute(o,s.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,o,i,r=!1,s){if(t!==void 0){let n=this.constructor;if(r===!1&&(s=this[t]),i??=n.getPropertyOptions(t),!((i.hasChanged??Qt)(s,o)||i.useDefault&&i.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,o,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,o,{useDefault:i,reflect:r,wrapped:s},n){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??o??this[t]),s!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(o=void 0),this._$AL.set(t,o)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[r,s]of i){let{wrapped:n}=s,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,s,a)}}let t=!1,o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(o)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(o=>this._$ET(o,this[o])),this._$EM()}updated(t){}firstUpdated(t){}};Q.elementStyles=[],Q.shadowRootOptions={mode:"open"},Q[kt("elementProperties")]=new Map,Q[kt("finalized")]=new Map,Ui?.({ReactiveElement:Q}),(Jt.reactiveElementVersions??=[]).push("2.1.2");var Ae=globalThis,to=e=>e,te=Ae.trustedTypes,eo=te?te.createPolicy("lit-html",{createHTML:e=>e}):void 0,$e="$lit$",tt=`lit$${Math.random().toFixed(9).slice(2)}$`,_e="?"+tt,Hi=`<${_e}>`,ut=document,It=()=>ut.createComment(""),Nt=e=>e===null||typeof e!="object"&&typeof e!="function",Ee=Array.isArray,ao=e=>Ee(e)||typeof e?.[Symbol.iterator]=="function",Le=`[ \f\r]`,Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oo=/-->/g,io=/>/g,dt=RegExp(`>|${Le}(?:([^\\s"'>=/]+)(${Le}*=${Le}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),ro=/'/g,so=/"/g,lo=/^(?:script|style|textarea|title)$/i,Se=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),V=Se(1),Fr=Se(2),kr=Se(3),et=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),no=new WeakMap,ft=ut.createTreeWalker(ut,129);function co(e,t){if(!Ee(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return eo!==void 0?eo.createHTML(t):t}var ho=(e,t)=>{let o=e.length-1,i=[],r,s=t===2?"":t===3?"":"",n=Dt;for(let a=0;a"?(n=r??Dt,p=-1):h[1]===void 0?p=-2:(p=n.lastIndex-h[2].length,c=h[1],n=h[3]===void 0?dt:h[3]==='"'?so:ro):n===so||n===ro?n=dt:n===oo||n===io?n=Dt:(n=dt,r=void 0);let f=n===dt&&e[a+1].startsWith("/>")?" ":"";s+=n===Dt?l+Hi:p>=0?(i.push(c),l.slice(0,p)+$e+l.slice(p)+tt+f):l+tt+(p===-2?a:f)}return[co(e,s+(e[o]||"")+(t===2?"":t===3?"":"")),i]},Ut=class e{constructor({strings:t,_$litType$:o},i){let r;this.parts=[];let s=0,n=0,a=t.length-1,l=this.parts,[c,h]=ho(t,o);if(this.el=e.createElement(c,i),ft.currentNode=this.el.content,o===2||o===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(r=ft.nextNode())!==null&&l.length0){r.textContent=te?te.emptyScript:"";for(let f=0;f2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=E}_$AI(t,o=this,i,r){let s=this.strings,n=!1;if(s===void 0)t=mt(this,t,o,0),n=!Nt(t)||t!==this._$AH&&t!==et,n&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l{let i=o?.renderBefore??t,r=i._$litPart$;if(r===void 0){let s=o?.renderBefore??null;i._$litPart$=r=new Pt(t.insertBefore(It(),s),s,void 0,o??{})}return r._$AI(e),r};var Pe=globalThis,lt=class extends Q{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=fo(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return et}};lt._$litElement$=!0,lt.finalized=!0,Pe.litElementHydrateSupport?.({LitElement:lt});var ji=Pe.litElementPolyfillSupport;ji?.({LitElement:lt});(Pe.litElementVersions??=[]).push("4.2.2");var uo=z` .wa-visually-hidden:not(:focus-within), .wa-visually-hidden-force, .wa-visually-hidden-hint::part(hint), .wa-visually-hidden-label::part(label), .wa-visually-hidden-label::part(form-control-label) { 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; } `;var mo=z` :host { display: inline-block; color: var(--wa-color-neutral-on-quiet); } .copy-button__trigger { display: inline-flex; } .button { flex: 0 0 auto; display: flex; align-items: center; background-color: transparent; border: none; border-radius: var(--wa-form-control-border-radius); color: inherit; font-size: inherit; padding: 0.5em; cursor: pointer; transition: color var(--wa-transition-fast) var(--wa-transition-easing); } @media (hover: hover) { .button:hover:not([disabled]) { background-color: var(--wa-color-neutral-fill-quiet); color: color-mix(in oklab, currentColor, var(--wa-color-mix-hover)); } } .button:focus-visible:not([disabled]) { background-color: var(--wa-color-neutral-fill-quiet); color: color-mix(in oklab, currentColor, var(--wa-color-mix-hover)); } .button:active:not([disabled]) { color: color-mix(in oklab, currentColor, var(--wa-color-mix-active)); } slot[name='success-icon'] { color: var(--wa-color-success-on-quiet); } slot[name='error-icon'] { color: var(--wa-color-danger-on-quiet); } .button:focus-visible { outline: var(--wa-focus-ring); outline-offset: var(--wa-focus-ring-offset); } .button[disabled] { opacity: 0.5; cursor: not-allowed !important; } slot { display: inline-flex; } .show { animation: show 100ms ease; } .hide { animation: show 100ms ease reverse; } @keyframes show { from { scale: 0.25; opacity: 0.25; } to { scale: 1; opacity: 1; } } `;function ct(e,t){return new Promise(o=>{let i=new AbortController,{signal:r}=i;if(e.classList.contains(t))return;e.classList.add(t);let s=!1,n=()=>{s||(s=!0,e.classList.remove(t),o(),i.abort())};e.addEventListener("animationend",n,{once:!0,signal:r}),e.addEventListener("animationcancel",n,{once:!0,signal:r}),requestAnimationFrame(()=>{!s&&e.getAnimations().length===0&&n()})})}var go=class{constructor(e,...t){this.slotNames=[],this.handleSlotChange=o=>{let i=o.target;(this.slotNames.includes("[default]")&&!i.name||i.name&&this.slotNames.includes(i.name))&&this.host.requestUpdate()},(this.host=e).addController(this),this.slotNames=t}hasDefaultSlot(){return this.host.childNodes?[...this.host.childNodes].some(e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent.trim()!=="")return!0;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName.toLowerCase()==="wa-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1}):!1}hasNamedSlot(e){return this.host.querySelector?.(`:scope > [slot="${e}"]`)!==null}test(e){return e==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(e)}hostConnected(){this.host.shadowRoot?.addEventListener?.("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot?.removeEventListener?.("slotchange",this.handleSlotChange)}};var Rt=class extends Event{constructor(){super("wa-error",{bubbles:!0,cancelable:!1,composed:!0})}};var Re=new Set,Ot=new Map,wt,Oe="ltr",Me="en",wo=typeof MutationObserver<"u"&&typeof document<"u"&&typeof document.documentElement<"u";if(wo){let e=new MutationObserver(yo);Oe=document.documentElement.dir||"ltr",Me=document.documentElement.lang||navigator.language,e.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function Ht(...e){e.map(t=>{let o=t.$code.toLowerCase();Ot.has(o)?Ot.set(o,Object.assign(Object.assign({},Ot.get(o)),t)):Ot.set(o,t),wt||(wt=t)}),yo()}function yo(){wo&&(Oe=document.documentElement.dir||"ltr",Me=document.documentElement.lang||navigator.language),[...Re.keys()].map(e=>{typeof e.requestUpdate=="function"&&e.requestUpdate()})}var ne=class{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){Re.add(this.host)}hostDisconnected(){Re.delete(this.host)}dir(){return`${this.host.dir||Oe}`.toLowerCase()}lang(){return`${this.host.lang||Me}`.toLowerCase()}getTranslationData(t){var o,i;let r;try{r=new Intl.Locale(t.replace(/_/g,"-"))}catch{return{locale:void 0,language:"",region:"",primary:void 0,secondary:void 0}}let s=r.language.toLowerCase(),n=(i=(o=r.region)===null||o===void 0?void 0:o.toLowerCase())!==null&&i!==void 0?i:"",a=Ot.get(`${s}-${n}`),l=Ot.get(s);return{locale:r,language:s,region:n,primary:a,secondary:l}}exists(t,o){var i;let{primary:r,secondary:s}=this.getTranslationData((i=o.lang)!==null&&i!==void 0?i:this.lang());return o=Object.assign({includeFallback:!1},o),!!(r&&r[t]||s&&s[t]||o.includeFallback&&wt&&wt[t])}term(t,...o){let{primary:i,secondary:r}=this.getTranslationData(this.lang()),s;if(i&&i[t])s=i[t];else if(r&&r[t])s=r[t];else if(wt&&wt[t])s=wt[t];else return console.error(`No translation found for: ${String(t)}`),String(t);return typeof s=="function"?s(...o):s}date(t,o){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),o).format(t)}number(t,o){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),o).format(t)}relativeTime(t,o,i){return new Intl.RelativeTimeFormat(this.lang(),i).format(t,o)}};var vo={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",createOption:e=>`Create "${e}"`,copied:"Copied",copy:"Copy",currentValue:"Current value",dropFileHere:"Drop file here or click to browse",decrement:"Decrement",dropFilesHere:"Drop files here or click to browse",error:"Error",goToSlide:(e,t)=>`Go to slide ${e} of ${t}`,hidePassword:"Hide password",increment:"Increment",loading:"Loading",nextSlide:"Next slide",numCharacters:e=>e===1?"1 character":`${e} characters`,numCharactersRemaining:e=>e===1?"1 character remaining":`${e} characters remaining`,numOptionsSelected:e=>e===0?"No options selected":e===1?"1 option selected":`${e} options selected`,pauseAnimation:"Pause animation",playAnimation:"Play animation",previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollableRegion:"Scrollable region",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",zoomIn:"Zoom in",zoomOut:"Zoom out"};Ht(vo);var bo=vo;var ae=class extends ne{};Ht(bo);function Y(e,t){let o={waitUntilFirstUpdate:!1,...t};return(i,r)=>{let{update:s}=i,n=Array.isArray(e)?e:[e];i.update=function(a){n.forEach(l=>{let c=l;if(a.has(c)){let h=a.get(c),p=this[c];h!==p&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[r](h,p)}}),s.call(this,a)}}}var qi=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,Co=e=>{throw TypeError(e)},d=(e,t,o,i)=>{for(var r=i>1?void 0:i?Vi(t,o):t,s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=(i?n(t,o,r):n(r))||r);return i&&r&&qi(t,o,r),r},xo=(e,t,o)=>t.has(e)||Co("Cannot "+o),Lo=(e,t,o)=>(xo(e,t,"read from private field"),o?o.call(e):t.get(e)),Ao=(e,t,o)=>t.has(e)?Co("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),$o=(e,t,o,i)=>(xo(e,t,"write to private field"),i?i.call(e,o):t.set(e,o),o);var ht=e=>(t,o)=>{o!==void 0?o.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var Yi={attribute:!0,type:String,converter:Bt,reflect:!1,hasChanged:Qt},Xi=(e=Yi,t,o)=>{let{kind:i,metadata:r}=o,s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),i==="setter"&&((e=Object.create(e)).wrapped=!0),s.set(o.name,e),i==="accessor"){let{name:n}=o;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,l,e,!0,a)},init(a){return a!==void 0&&this.C(n,void 0,e,a),a}}}if(i==="setter"){let{name:n}=o;return function(a){let l=this[n];t.call(this,a),this.requestUpdate(n,l,e,!0,a)}}throw Error("Unsupported decorator location: "+i)};function m(e){return(t,o)=>typeof o=="object"?Xi(e,t,o):((i,r,s)=>{let n=r.hasOwnProperty(s);return r.constructor.createProperty(s,i),n?Object.getOwnPropertyDescriptor(r,s):void 0})(e,t,o)}function yt(e){return m({...e,state:!0,attribute:!1})}var vt=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,o),o);function k(e,t){return(o,i,r)=>{let s=n=>n.renderRoot?.querySelector(e)??null;if(t){let{get:n,set:a}=typeof i=="object"?o:r??(()=>{let l=Symbol();return{get(){return this[l]},set(c){this[l]=c}}})();return vt(o,i,{get(){let l=n.call(this);return l===void 0&&(l=s(this),(l!==null||this.hasUpdated)&&a.call(this,l)),l}})}return vt(o,i,{get(){return s(this)}})}}var Te=z` :host { box-sizing: border-box; } :host *, :host *::before, :host *::after { box-sizing: inherit; } [hidden] { display: none !important; } `,le,U=class extends lt{constructor(){super(),Ao(this,le,!1),this.initialReflectedProperties=new Map,this.didSSR=!!this.shadowRoot,this.customStates={set:(t,o)=>{if(this.internals?.states)try{o?this.internals.states.add(t):this.internals.states.delete(t)}catch(i){if(String(i).includes("must start with '--'"))console.error("Your browser implements an outdated version of CustomStateSet. Consider using a polyfill");else throw i}},has:t=>{if(!this.internals?.states)return!1;try{return this.internals.states.has(t)}catch{return!1}}};try{this.internals=this.attachInternals()}catch{console.error("Element internals are not supported in your browser. Consider using a polyfill")}this.customStates.set("wa-defined",!0);let e=this.constructor;for(let[t,o]of e.elementProperties)o.default==="inherit"&&o.initial!==void 0&&typeof t=="string"&&this.customStates.set(`initial-${t}-${o.initial}`,!0)}static get styles(){let e=Array.isArray(this.css)?this.css:this.css?[this.css]:[];return[Te,...e]}connectedCallback(){super.connectedCallback(),this.shadowRoot?.prepend(document.createComment(` Web Awesome: https://webawesome.com/docs/components/${this.localName.replace("wa-","")} `))}attributeChangedCallback(e,t,o){Lo(this,le)||(this.constructor.elementProperties.forEach((i,r)=>{i.reflect&&this[r]!=null&&this.initialReflectedProperties.set(r,this[r])}),$o(this,le,!0)),super.attributeChangedCallback(e,t,o)}willUpdate(e){super.willUpdate(e),this.initialReflectedProperties.forEach((t,o)=>{e.has(o)&&this[o]==null&&(this[o]=t)})}firstUpdated(e){super.firstUpdated(e),this.didSSR&&this.shadowRoot?.querySelectorAll("slot").forEach(t=>{t.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))})}update(e){try{super.update(e)}catch(t){if(this.didSSR&&!this.hasUpdated){let o=new Event("lit-hydration-error",{bubbles:!0,composed:!0,cancelable:!1});o.error=t,this.dispatchEvent(o)}throw t}}relayNativeEvent(e,t){e.stopImmediatePropagation(),this.dispatchEvent(new e.constructor(e.type,{...e,...t}))}};le=new WeakMap;d([m()],U.prototype,"dir",2);d([m()],U.prototype,"lang",2);d([m({type:Boolean,reflect:!0,attribute:"did-ssr"})],U.prototype,"didSSR",2);var Eo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},So=e=>(...t)=>({_$litDirective$:e,values:t}),ce=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,i){this._$Ct=t,this._$AM=o,this._$Ci=i}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};var bt=So(class extends ce{constructor(e){if(super(e),e.type!==Eo.ATTRIBUTE||e.name!=="class"||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(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in t)t[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(t)}let o=e.element.classList;for(let i of this.st)i in t||(o.remove(i),this.st.delete(i));for(let i in t){let r=!!t[i];r===this.st.has(i)||this.nt?.has(i)||(r?(o.add(i),this.st.add(i)):(o.remove(i),this.st.delete(i)))}return et}});var _=class extends U{constructor(){super(...arguments),this.hasSlotController=new go(this,"[default]"),this.localize=new ae(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"}get currentLabel(){return this.status==="success"?this.successLabel||this.localize.term("copied"):this.status==="error"?this.errorLabel||this.localize.term("error"):this.copyLabel||this.localize.term("copy")}handleStatusChange(){this.customStates.set("success",this.status==="success"),this.customStates.set("error",this.status==="error")}async handleCopy(){if(this.disabled||this.isCopying)return;this.isCopying=!0;let e=this.value;if(this.from){let t=this.getRootNode(),o=this.from.includes("."),i=this.from.includes("[")&&this.from.includes("]"),r=this.from,s="";o?[r,s]=this.from.trim().split("."):i&&([r,s]=this.from.trim().replace(/\]$/,"").split("["));let n="getElementById"in t?t.getElementById(r):null;n?i?e=n.getAttribute(s)||"":o?e=n[s]||"":e=n.textContent||"":(this.showStatus("error"),this.dispatchEvent(new Rt))}if(!e)this.showStatus("error"),this.dispatchEvent(new Rt);else try{await navigator.clipboard.writeText(e),this.showStatus("success"),this.dispatchEvent(new Xe({value:e}))}catch{this.showStatus("error"),this.dispatchEvent(new Rt)}}async showStatus(e){if(this.status=e,this.copyIcon){let t=e==="success"?this.successIcon:this.errorIcon;await ct(this.copyIcon,"hide"),this.copyIcon.hidden=!0,t.hidden=!1,await ct(t,"show")}setTimeout(async()=>{if(this.copyIcon){let t=e==="success"?this.successIcon:this.errorIcon;await ct(t,"hide"),t.hidden=!0,this.copyIcon.hidden=!1,await ct(this.copyIcon,"show")}this.status="rest",this.isCopying=!1},this.feedbackDuration)}render(){let e=this.hasSlotController.test("[default]");return V`
`}};_.css=[Te,uo,mo];d([k('slot[name="copy-icon"]')],_.prototype,"copyIcon",2);d([k('slot[name="success-icon"]')],_.prototype,"successIcon",2);d([k('slot[name="error-icon"]')],_.prototype,"errorIcon",2);d([k("wa-tooltip")],_.prototype,"tooltip",2);d([yt()],_.prototype,"isCopying",2);d([yt()],_.prototype,"status",2);d([m()],_.prototype,"value",2);d([m()],_.prototype,"from",2);d([m({type:Boolean,reflect:!0})],_.prototype,"disabled",2);d([m({attribute:"copy-label"})],_.prototype,"copyLabel",2);d([m({attribute:"success-label"})],_.prototype,"successLabel",2);d([m({attribute:"error-label"})],_.prototype,"errorLabel",2);d([m({attribute:"feedback-duration",type:Number})],_.prototype,"feedbackDuration",2);d([m({attribute:"tooltip-placement"})],_.prototype,"tooltipPlacement",2);d([Y("status")],_.prototype,"handleStatusChange",1);_=d([ht("wa-copy-button")],_);var Po=z` :host { --max-width: 30ch; /** These styles are added so we don't interfere in the DOM. */ display: inline-block; position: absolute; /** Defaults for inherited CSS properties */ color: var(--wa-tooltip-content-color); font-size: var(--wa-tooltip-font-size); line-height: var(--wa-tooltip-line-height); text-align: start; white-space: normal; } .tooltip { --arrow-size: var(--wa-tooltip-arrow-size); --arrow-color: var(--wa-tooltip-background-color); } .tooltip::part(popup) { z-index: 1000; } .tooltip[placement^='top']::part(popup) { transform-origin: bottom; } .tooltip[placement^='bottom']::part(popup) { transform-origin: top; } .tooltip[placement^='left']::part(popup) { transform-origin: right; } .tooltip[placement^='right']::part(popup) { transform-origin: left; } .body { display: block; width: max-content; max-width: var(--max-width); border-radius: var(--wa-tooltip-border-radius); background-color: var(--wa-tooltip-background-color); border: var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color); padding: 0.25em 0.5em; user-select: none; -webkit-user-select: none; } .tooltip { --popup-border-width: var(--wa-tooltip-border-width); &::part(arrow) { border-bottom: var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color); border-right: var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color); } } `;var Ro=class extends Event{constructor(){super("wa-reposition",{bubbles:!0,cancelable:!1,composed:!0})}};var Oo=z` :host { --arrow-color: black; --arrow-size: var(--wa-tooltip-arrow-size); --popup-border-width: 0px; --show-duration: 100ms; --hide-duration: 100ms; /* * These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant * 0.7071 is derived from sin(45) to calculate the length of the arrow after rotation. * * The diamond will be translated inward by --arrow-base-offset, the border thickness, to centralise it on * the inner edge of the popup border. This also means we need to increase the size of the arrow by the * same amount to compensate. * * A diamond shaped clipping mask is used to avoid overlap of popup content. This extends slightly inward so * the popup border is covered with no sub-pixel rounding artifacts. The diamond corners are mitred at 22.5º * to properly merge any arrow border with the popup border. The constant 1.4142 is derived from 1 + tan(22.5). * */ --arrow-base-offset: var(--popup-border-width); --arrow-size-diagonal: calc((var(--arrow-size) + var(--arrow-base-offset)) * 0.7071); --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size)); --arrow-size-div: calc(var(--arrow-size-diagonal) * 2); --arrow-clipping-corner: calc(var(--arrow-base-offset) * 1.4142); display: contents; } .popup { position: absolute; isolation: isolate; max-width: var(--auto-size-available-width, none); max-height: var(--auto-size-available-height, none); /* Clear UA styles for [popover] */ :where(&) { inset: unset; padding: unset; margin: unset; width: unset; height: unset; color: unset; background: unset; border: unset; overflow: unset; } } .popup-fixed { position: fixed; } .popup:not(.popup-active) { display: none; } .arrow { position: absolute; width: var(--arrow-size-div); height: var(--arrow-size-div); background: var(--arrow-color); z-index: 3; clip-path: polygon( var(--arrow-clipping-corner) 100%, var(--arrow-base-offset) calc(100% - var(--arrow-base-offset)), calc(var(--arrow-base-offset) - 2px) calc(100% - var(--arrow-base-offset)), calc(100% - var(--arrow-base-offset)) calc(var(--arrow-base-offset) - 2px), calc(100% - var(--arrow-base-offset)) var(--arrow-base-offset), 100% var(--arrow-clipping-corner), 100% 100% ); rotate: 45deg; } :host([data-current-placement|='left']) .arrow { rotate: -45deg; } :host([data-current-placement|='right']) .arrow { rotate: 135deg; } :host([data-current-placement|='bottom']) .arrow { rotate: 225deg; } /* Hover bridge */ .popup-hover-bridge:not(.popup-hover-bridge-visible) { display: none; } .popup-hover-bridge { position: fixed; z-index: 899; 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) ); } /* Built-in animations */ .show { animation: show var(--show-duration) ease; } .hide { animation: show var(--hide-duration) ease reverse; } @keyframes show { from { opacity: 0; } to { opacity: 1; } } .show-with-scale { animation: show-with-scale var(--show-duration) ease; } .hide-with-scale { animation: show-with-scale var(--hide-duration) ease reverse; } @keyframes show-with-scale { from { opacity: 0; scale: 0.8; } to { opacity: 1; scale: 1; } } `;var X=Math.min,M=Math.max,jt=Math.round,qt=Math.floor,H=e=>({x:e,y:e}),Ki={left:"right",right:"left",bottom:"top",top:"bottom"};function pe(e,t,o){return M(e,X(t,o))}function Ct(e,t){return typeof e=="function"?e(t):e}function ot(e){return e.split("-")[0]}function xt(e){return e.split("-")[1]}function ze(e){return e==="x"?"y":"x"}function de(e){return e==="y"?"height":"width"}function K(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function fe(e){return ze(K(e))}function zo(e,t,o){o===void 0&&(o=!1);let i=xt(e),r=fe(e),s=de(r),n=r==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(n=Wt(n)),[n,Wt(n)]}function Fo(e){let t=Wt(e);return[he(e),t,he(t)]}function he(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Mo=["left","right"],To=["right","left"],Gi=["top","bottom"],Zi=["bottom","top"];function Ji(e,t,o){switch(e){case"top":case"bottom":return o?t?To:Mo:t?Mo:To;case"left":case"right":return t?Gi:Zi;default:return[]}}function ko(e,t,o,i){let r=xt(e),s=Ji(ot(e),o==="start",i);return r&&(s=s.map(n=>n+"-"+r),t&&(s=s.concat(s.map(he)))),s}function Wt(e){let t=ot(e);return Ki[t]+e.slice(t.length)}function Qi(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fe(e){return typeof e!="number"?Qi(e):{top:e,right:e,bottom:e,left:e}}function Lt(e){let{x:t,y:o,width:i,height:r}=e;return{width:i,height:r,top:o,left:t,right:t+i,bottom:o+r,x:t,y:o}}function Bo(e,t,o){let{reference:i,floating:r}=e,s=K(t),n=fe(t),a=de(n),l=ot(t),c=s==="y",h=i.x+i.width/2-r.width/2,p=i.y+i.height/2-r.height/2,u=i[a]/2-r[a]/2,f;switch(l){case"top":f={x:h,y:i.y-r.height};break;case"bottom":f={x:h,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:p};break;case"left":f={x:i.x-r.width,y:p};break;default:f={x:i.x,y:i.y}}switch(xt(t)){case"start":f[n]-=u*(o&&c?-1:1);break;case"end":f[n]+=u*(o&&c?-1:1);break}return f}async function Do(e,t){var o;t===void 0&&(t={});let{x:i,y:r,platform:s,rects:n,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:u=!1,padding:f=0}=Ct(t,e),g=Fe(f),v=a[u?p==="floating"?"reference":"floating":p],y=Lt(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(v)))==null||o?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:h,strategy:l})),b=p==="floating"?{x:i,y:r,width:n.floating.width,height:n.floating.height}:n.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),L=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},P=Lt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:l}):b);return{top:(y.top-P.top+g.top)/L.y,bottom:(P.bottom-y.bottom+g.bottom)/L.y,left:(y.left-P.left+g.left)/L.x,right:(P.right-y.right+g.right)/L.x}}var tr=50,Io=async(e,t,o)=>{let{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:n}=o,a=n.detectOverflow?n:{...n,detectOverflow:Do},l=await(n.isRTL==null?void 0:n.isRTL(t)),c=await n.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:p}=Bo(c,i,l),u=i,f=0,g={};for(let w=0;w({name:"arrow",options:e,async fn(t){let{x:o,y:i,placement:r,rects:s,platform:n,elements:a,middlewareData:l}=t,{element:c,padding:h=0}=Ct(e,t)||{};if(c==null)return{};let p=Fe(h),u={x:o,y:i},f=fe(r),g=de(f),w=await n.getDimensions(c),v=f==="y",y=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",L=s.reference[g]+s.reference[f]-u[f]-s.floating[g],P=u[f]-s.reference[f],$=await(n.getOffsetParent==null?void 0:n.getOffsetParent(c)),R=$?$[x]:0;(!R||!await(n.isElement==null?void 0:n.isElement($)))&&(R=a.floating[x]||s.floating[g]);let Z=L/2-P/2,j=R/2-w[g]/2-1,F=X(p[y],j),st=X(p[b],j),q=F,nt=R-w[g]-st,O=R/2-w[g]/2+Z,pt=pe(q,O,nt),J=!l.arrow&&xt(r)!=null&&O!==pt&&s.reference[g]/2-(OO<=0)){var st,q;let O=(((st=s.flip)==null?void 0:st.index)||0)+1,pt=R[O];if(pt&&(!(p==="alignment"?b!==K(pt):!1)||F.every(N=>K(N.placement)===b?N.overflows[0]>0:!0)))return{data:{index:O,overflows:F},reset:{placement:pt}};let J=(q=F.filter(I=>I.overflows[0]<=0).sort((I,N)=>I.overflows[1]-N.overflows[1])[0])==null?void 0:q.placement;if(!J)switch(f){case"bestFit":{var nt;let I=(nt=F.filter(N=>{if($){let at=K(N.placement);return at===b||at==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(at=>at>0).reduce((at,Ti)=>at+Ti,0)]).sort((N,at)=>N[1]-at[1])[0])==null?void 0:nt[0];I&&(J=I);break}case"initialPlacement":J=a;break}if(r!==J)return{reset:{placement:J}}}return{}}}};var er=new Set(["left","top"]);async function or(e,t){let{placement:o,platform:i,elements:r}=e,s=await(i.isRTL==null?void 0:i.isRTL(r.floating)),n=ot(o),a=xt(o),l=K(o)==="y",c=er.has(n)?-1:1,h=s&&l?-1:1,p=Ct(t,e),{mainAxis:u,crossAxis:f,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),l?{x:f*h,y:u*c}:{x:u*c,y:f*h}}var Ho=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,i;let{x:r,y:s,placement:n,middlewareData:a}=t,l=await or(t,e);return n===((o=a.offset)==null?void 0:o.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:n}}}}},Wo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:i,placement:r,platform:s}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:b,y:x}=y;return{x:b,y:x}}},...c}=Ct(e,t),h={x:o,y:i},p=await s.detectOverflow(t,c),u=K(ot(r)),f=ze(u),g=h[f],w=h[u];if(n){let y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",x=g+p[y],L=g-p[b];g=pe(x,g,L)}if(a){let y=u==="y"?"top":"left",b=u==="y"?"bottom":"right",x=w+p[y],L=w-p[b];w=pe(x,w,L)}let v=l.fn({...t,[f]:g,[u]:w});return{...v,data:{x:v.x-o,y:v.y-i,enabled:{[f]:n,[u]:a}}}}}};var jo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,i;let{placement:r,rects:s,platform:n,elements:a}=t,{apply:l=()=>{},...c}=Ct(e,t),h=await n.detectOverflow(t,c),p=ot(r),u=xt(r),f=K(r)==="y",{width:g,height:w}=s.floating,v,y;p==="top"||p==="bottom"?(v=p,y=u===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,v=u==="end"?"top":"bottom");let b=w-h.top-h.bottom,x=g-h.left-h.right,L=X(w-h[v],b),P=X(g-h[y],x),$=!t.middlewareData.shift,R=L,Z=P;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(Z=x),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(R=b),$&&!u){let F=M(h.left,0),st=M(h.right,0),q=M(h.top,0),nt=M(h.bottom,0);f?Z=g-2*(F!==0||st!==0?F+st:M(h.left,h.right)):R=w-2*(q!==0||nt!==0?q+nt:M(h.top,h.bottom))}await l({...t,availableWidth:Z,availableHeight:R});let j=await n.getDimensions(a.floating);return g!==j.width||w!==j.height?{reset:{rects:!0}}:{}}}};function ue(){return typeof window<"u"}function $t(e){return Vo(e)?(e.nodeName||"").toLowerCase():"#document"}function T(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){var t;return(t=(Vo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vo(e){return ue()?e instanceof Node||e instanceof T(e).Node:!1}function B(e){return ue()?e instanceof Element||e instanceof T(e).Element:!1}function G(e){return ue()?e instanceof HTMLElement||e instanceof T(e).HTMLElement:!1}function qo(e){return!ue()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof T(e).ShadowRoot}function Mt(e){let{overflow:t,overflowX:o,overflowY:i,display:r}=D(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&r!=="inline"&&r!=="contents"}function Yo(e){return/^(table|td|th)$/.test($t(e))}function Vt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var ir=/transform|translate|scale|rotate|perspective|filter/,rr=/paint|layout|strict|content/,At=e=>!!e&&e!=="none",ke;function Tt(e){let t=B(e)?D(e):e;return At(t.transform)||At(t.translate)||At(t.scale)||At(t.rotate)||At(t.perspective)||!me()&&(At(t.backdropFilter)||At(t.filter))||ir.test(t.willChange||"")||rr.test(t.contain||"")}function Xo(e){let t=it(e);for(;G(t)&&!_t(t);){if(Tt(t))return t;if(Vt(t))return null;t=it(t)}return null}function me(){return ke==null&&(ke=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ke}function _t(e){return/^(html|body|#document)$/.test($t(e))}function D(e){return T(e).getComputedStyle(e)}function Yt(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function it(e){if($t(e)==="html")return e;let t=e.assignedSlot||e.parentNode||qo(e)&&e.host||W(e);return qo(t)?t.host:t}function Ko(e){let t=it(e);return _t(t)?e.ownerDocument?e.ownerDocument.body:e.body:G(t)&&Mt(t)?t:Ko(t)}function rt(e,t,o){var i;t===void 0&&(t=[]),o===void 0&&(o=!0);let r=Ko(e),s=r===((i=e.ownerDocument)==null?void 0:i.body),n=T(r);if(s){let a=ge(n);return t.concat(n,n.visualViewport||[],Mt(r)?r:[],a&&o?rt(a):[])}else return t.concat(r,rt(r,[],o))}function ge(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qo(e){let t=D(e),o=parseFloat(t.width)||0,i=parseFloat(t.height)||0,r=G(e),s=r?e.offsetWidth:o,n=r?e.offsetHeight:i,a=jt(o)!==s||jt(i)!==n;return a&&(o=s,i=n),{width:o,height:i,$:a}}function De(e){return B(e)?e:e.contextElement}function zt(e){let t=De(e);if(!G(t))return H(1);let o=t.getBoundingClientRect(),{width:i,height:r,$:s}=Qo(t),n=(s?jt(o.width):o.width)/i,a=(s?jt(o.height):o.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}var sr=H(0);function ti(e){let t=T(e);return!me()||!t.visualViewport?sr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nr(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==T(e)?!1:t}function Et(e,t,o,i){t===void 0&&(t=!1),o===void 0&&(o=!1);let r=e.getBoundingClientRect(),s=De(e),n=H(1);t&&(i?B(i)&&(n=zt(i)):n=zt(e));let a=nr(s,o,i)?ti(s):H(0),l=(r.left+a.x)/n.x,c=(r.top+a.y)/n.y,h=r.width/n.x,p=r.height/n.y;if(s){let u=T(s),f=i&&B(i)?T(i):i,g=u,w=ge(g);for(;w&&i&&f!==g;){let v=zt(w),y=w.getBoundingClientRect(),b=D(w),x=y.left+(w.clientLeft+parseFloat(b.paddingLeft))*v.x,L=y.top+(w.clientTop+parseFloat(b.paddingTop))*v.y;l*=v.x,c*=v.y,h*=v.x,p*=v.y,l+=x,c+=L,g=T(w),w=ge(g)}}return Lt({width:h,height:p,x:l,y:c})}function we(e,t){let o=Yt(e).scrollLeft;return t?t.left+o:Et(W(e)).left+o}function ei(e,t){let o=e.getBoundingClientRect(),i=o.left+t.scrollLeft-we(e,o),r=o.top+t.scrollTop;return{x:i,y:r}}function ar(e){let{elements:t,rect:o,offsetParent:i,strategy:r}=e,s=r==="fixed",n=W(i),a=t?Vt(t.floating):!1;if(i===n||a&&s)return o;let l={scrollLeft:0,scrollTop:0},c=H(1),h=H(0),p=G(i);if((p||!p&&!s)&&(($t(i)!=="body"||Mt(n))&&(l=Yt(i)),p)){let f=Et(i);c=zt(i),h.x=f.x+i.clientLeft,h.y=f.y+i.clientTop}let u=n&&!p&&!s?ei(n,l):H(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+h.x+u.x,y:o.y*c.y-l.scrollTop*c.y+h.y+u.y}}function lr(e){return Array.from(e.getClientRects())}function cr(e){let t=W(e),o=Yt(e),i=e.ownerDocument.body,r=M(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=M(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),n=-o.scrollLeft+we(e),a=-o.scrollTop;return D(i).direction==="rtl"&&(n+=M(t.clientWidth,i.clientWidth)-r),{width:r,height:s,x:n,y:a}}var Go=25;function hr(e,t){let o=T(e),i=W(e),r=o.visualViewport,s=i.clientWidth,n=i.clientHeight,a=0,l=0;if(r){s=r.width,n=r.height;let h=me();(!h||h&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}let c=we(i);if(c<=0){let h=i.ownerDocument,p=h.body,u=getComputedStyle(p),f=h.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,g=Math.abs(i.clientWidth-p.clientWidth-f);g<=Go&&(s-=g)}else c<=Go&&(s+=c);return{width:s,height:n,x:a,y:l}}function pr(e,t){let o=Et(e,!0,t==="fixed"),i=o.top+e.clientTop,r=o.left+e.clientLeft,s=G(e)?zt(e):H(1),n=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,c=i*s.y;return{width:n,height:a,x:l,y:c}}function Zo(e,t,o){let i;if(t==="viewport")i=hr(e,o);else if(t==="document")i=cr(W(e));else if(B(t))i=pr(t,o);else{let r=ti(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Lt(i)}function oi(e,t){let o=it(e);return o===t||!B(o)||_t(o)?!1:D(o).position==="fixed"||oi(o,t)}function dr(e,t){let o=t.get(e);if(o)return o;let i=rt(e,[],!1).filter(a=>B(a)&&$t(a)!=="body"),r=null,s=D(e).position==="fixed",n=s?it(e):e;for(;B(n)&&!_t(n);){let a=D(n),l=Tt(n);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Mt(n)&&!l&&oi(e,n))?i=i.filter(h=>h!==n):r=a,n=it(n)}return t.set(e,i),i}function fr(e){let{element:t,boundary:o,rootBoundary:i,strategy:r}=e,n=[...o==="clippingAncestors"?Vt(t)?[]:dr(t,this._c):[].concat(o),i],a=Zo(t,n[0],r),l=a.top,c=a.right,h=a.bottom,p=a.left;for(let u=1;u{n(!1,1e-7)},1e3)}R===1&&!ri(c,e.getBoundingClientRect())&&n(),L=!1}try{o=new IntersectionObserver(P,{...x,root:r.ownerDocument})}catch{o=new IntersectionObserver(P,x)}o.observe(e)}return n(!0),s}function si(e,t,o,i){i===void 0&&(i={});let{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,c=De(e),h=r||s?[...c?rt(c):[],...t?rt(t):[]]:[];h.forEach(y=>{r&&y.addEventListener("scroll",o,{passive:!0}),s&&y.addEventListener("resize",o)});let p=c&&a?yr(c,o):null,u=-1,f=null;n&&(f=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&f&&t&&(f.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),o()}),c&&!l&&f.observe(c),t&&f.observe(t));let g,w=l?Et(e):null;l&&v();function v(){let y=Et(e);w&&!ri(w,y)&&o(),w=y,g=requestAnimationFrame(v)}return o(),()=>{var y;h.forEach(b=>{r&&b.removeEventListener("scroll",o),s&&b.removeEventListener("resize",o)}),p?.(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(g)}}var ni=Ho;var ai=Wo,li=Uo,Ie=jo;var ci=No;var hi=(e,t,o)=>{let i=new Map,r={platform:Xt,...o},s={...r.platform,_c:i};return Io(e,t,{...r,platform:s})};function pi(e){return vr(e)}function Ne(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function vr(e){for(let t=e;t;t=Ne(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Ne(e);t;t=Ne(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||Tt(o)||t.tagName==="BODY"))return t}return null}function di(e){return e!==null&&typeof e=="object"&&"getBoundingClientRect"in e&&("contextElement"in e?e instanceof Element:!0)}var ye=globalThis?.HTMLElement?.prototype.hasOwnProperty("popover"),C=class extends U{constructor(){super(...arguments),this.localize=new ae(this),this.active=!1,this.placement="top",this.boundary="viewport",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&&this.popup){let e=this.anchorEl.getBoundingClientRect(),t=this.popup.getBoundingClientRect(),o=this.placement.includes("top")||this.placement.includes("bottom"),i=0,r=0,s=0,n=0,a=0,l=0,c=0,h=0;o?e.top{this.reposition()}))}async stop(){return new Promise(e=>{this.popup?.hidePopover?.(),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||!this.popup)return;let e=[ni({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?e.push(Ie({apply:({rects:i})=>{let r=this.sync==="width"||this.sync==="both",s=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${i.reference.width}px`:"",this.popup.style.height=s?`${i.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height="");let t;ye&&!di(this.anchor)&&this.boundary==="scroll"&&(t=rt(this.anchorEl).filter(i=>i instanceof Element)),this.flip&&e.push(li({boundary:this.flipBoundary||t,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&e.push(ai({boundary:this.shiftBoundary||t,padding:this.shiftPadding})),this.autoSize?e.push(Ie({boundary:this.autoSizeBoundary||t,padding:this.autoSizePadding,apply:({availableWidth:i,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${i}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(ci({element:this.arrowEl,padding:this.arrowPadding}));let o=ye?i=>Xt.getOffsetParent(i,pi):Xt.getOffsetParent;hi(this.anchorEl,this.popup,{placement:this.placement,middleware:e,strategy:ye?"absolute":"fixed",platform:{...Xt,getOffsetParent:o}}).then(({x:i,y:r,middlewareData:s,placement:n})=>{let a=this.localize.dir()==="rtl",l={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${i}px`,top:`${r}px`}),this.arrow){let c=s.arrow.x,h=s.arrow.y,p="",u="",f="",g="";if(this.arrowPlacement==="start"){let w=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";p=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",u=a?w:"",g=a?"":w}else if(this.arrowPlacement==="end"){let w=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";u=a?"":w,g=a?w:"",f=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(g=typeof c=="number"?"calc(50% - var(--arrow-size-diagonal))":"",p=typeof h=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(g=typeof c=="number"?`${c}px`:"",p=typeof h=="number"?`${h}px`:"");Object.assign(this.arrowEl.style,{top:p,right:u,bottom:f,left:g,[l]:"calc(var(--arrow-base-offset) - var(--arrow-size-diagonal))"})}}),requestAnimationFrame(()=>this.updateHoverBridge()),this.dispatchEvent(new Ro)}render(){return V`
${this.arrow?V``:""}
`}};C.css=Oo;d([k(".popup")],C.prototype,"popup",2);d([k(".arrow")],C.prototype,"arrowEl",2);d([m()],C.prototype,"anchor",2);d([m({type:Boolean,reflect:!0})],C.prototype,"active",2);d([m({reflect:!0})],C.prototype,"placement",2);d([m()],C.prototype,"boundary",2);d([m({type:Number})],C.prototype,"distance",2);d([m({type:Number})],C.prototype,"skidding",2);d([m({type:Boolean})],C.prototype,"arrow",2);d([m({attribute:"arrow-placement"})],C.prototype,"arrowPlacement",2);d([m({attribute:"arrow-padding",type:Number})],C.prototype,"arrowPadding",2);d([m({type:Boolean})],C.prototype,"flip",2);d([m({attribute:"flip-fallback-placements",converter:{fromAttribute:e=>e.split(" ").map(t=>t.trim()).filter(t=>t!==""),toAttribute:e=>e.join(" ")}})],C.prototype,"flipFallbackPlacements",2);d([m({attribute:"flip-fallback-strategy"})],C.prototype,"flipFallbackStrategy",2);d([m({type:Object})],C.prototype,"flipBoundary",2);d([m({attribute:"flip-padding",type:Number})],C.prototype,"flipPadding",2);d([m({type:Boolean})],C.prototype,"shift",2);d([m({type:Object})],C.prototype,"shiftBoundary",2);d([m({attribute:"shift-padding",type:Number})],C.prototype,"shiftPadding",2);d([m({attribute:"auto-size"})],C.prototype,"autoSize",2);d([m()],C.prototype,"sync",2);d([m({type:Object})],C.prototype,"autoSizeBoundary",2);d([m({attribute:"auto-size-padding",type:Number})],C.prototype,"autoSizePadding",2);d([m({attribute:"hover-bridge",type:Boolean})],C.prototype,"hoverBridge",2);C=d([ht("wa-popup")],C);var St=[];function fi(e){St.push(e)}function Ue(e){for(let t=St.length-1;t>=0;t--)if(St[t]===e){St.splice(t,1);break}}function ui(e){return St.length>0&&St[St.length-1]===e}var mi=class extends Event{constructor(){super("wa-show",{bubbles:!0,cancelable:!0,composed:!0})}};var gi=class extends Event{constructor(e){super("wa-hide",{bubbles:!0,cancelable:!0,composed:!0}),this.detail=e}};var wi=class extends Event{constructor(){super("wa-after-hide",{bubbles:!0,cancelable:!1,composed:!0})}};var yi=class extends Event{constructor(){super("wa-after-show",{bubbles:!0,cancelable:!1,composed:!0})}};var vi="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var bi=(e=21)=>{let t="",o=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=vi[o[e]&63];return t};function Ci(e=""){return`${e}${bi()}`}function He(e,t){return new Promise(o=>{function i(r){r.target===e&&(e.removeEventListener(t,i),o())}e.addEventListener(t,i)})}var A=class extends U{constructor(){super(...arguments),this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.showDelay=150,this.hideDelay=0,this.trigger="hover focus",this.withoutArrow=!1,this.for=null,this.anchor=null,this.eventController=new AbortController,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=>{e.key==="Escape"&&this.open&&ui(this)&&(e.preventDefault(),e.stopPropagation(),this.hide())},this.handleMouseOver=()=>{this.hasTrigger("hover")&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),this.showDelay))},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){let e=!!this.anchor?.matches(":hover"),t=this.matches(":hover");if(e||t)return;clearTimeout(this.hoverTimeout),e||t||(this.hoverTimeout=window.setTimeout(()=>{this.hide()},this.hideDelay))}}}connectedCallback(){super.connectedCallback(),this.eventController.signal.aborted&&(this.eventController=new AbortController),this.addEventListener("mouseout",this.handleMouseOut),this.open&&(this.open=!1,this.updateComplete.then(()=>{this.open=!0})),this.id||(this.id=Ci("wa-tooltip-")),this.for&&this.anchor?(this.anchor=null,this.handleForChange()):this.for&&this.handleForChange()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeyDown),Ue(this),this.eventController.abort(),this.anchor&&this.removeFromAriaLabelledBy(this.anchor,this.id)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(e){return this.trigger.split(" ").includes(e)}addToAriaLabelledBy(e,t){let i=(e.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean);i.includes(t)||(i.push(t),e.setAttribute("aria-labelledby",i.join(" ")))}removeFromAriaLabelledBy(e,t){let r=(e.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean).filter(s=>s!==t);r.length>0?e.setAttribute("aria-labelledby",r.join(" ")):e.removeAttribute("aria-labelledby")}async handleOpenChange(){if(this.open){if(this.disabled)return;let e=new mi;if(this.dispatchEvent(e),e.defaultPrevented){this.open=!1;return}document.addEventListener("keydown",this.handleDocumentKeyDown,{signal:this.eventController.signal}),fi(this),this.body.hidden=!1,this.popup.active=!0,await ct(this.popup.popup,"show-with-scale"),this.popup.reposition(),this.dispatchEvent(new yi)}else{let e=new gi;if(this.dispatchEvent(e),e.defaultPrevented){this.open=!1;return}document.removeEventListener("keydown",this.handleDocumentKeyDown),Ue(this),await ct(this.popup.popup,"hide-with-scale"),this.popup.active=!1,this.body.hidden=!0,this.dispatchEvent(new wi)}}handleForChange(){let e=this.getRootNode();if(!e)return;let t=this.for?e.getElementById(this.for):null,o=this.anchor;if(t===o)return;let{signal:i}=this.eventController;t&&(this.addToAriaLabelledBy(t,this.id),t.addEventListener("blur",this.handleBlur,{capture:!0,signal:i}),t.addEventListener("focus",this.handleFocus,{capture:!0,signal:i}),t.addEventListener("click",this.handleClick,{signal:i}),t.addEventListener("mouseover",this.handleMouseOver,{signal:i}),t.addEventListener("mouseout",this.handleMouseOut,{signal:i})),o&&(this.removeFromAriaLabelledBy(o,this.id),o.removeEventListener("blur",this.handleBlur,{capture:!0}),o.removeEventListener("focus",this.handleFocus,{capture:!0}),o.removeEventListener("click",this.handleClick),o.removeEventListener("mouseover",this.handleMouseOver),o.removeEventListener("mouseout",this.handleMouseOut)),this.anchor=t}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,He(this,"wa-after-show")}async hide(){if(this.open)return this.open=!1,He(this,"wa-after-hide")}render(){return V`
`}};A.css=Po;A.dependencies={"wa-popup":C};d([k("slot:not([name])")],A.prototype,"defaultSlot",2);d([k(".body")],A.prototype,"body",2);d([k("wa-popup")],A.prototype,"popup",2);d([m()],A.prototype,"placement",2);d([m({type:Boolean,reflect:!0})],A.prototype,"disabled",2);d([m({type:Number})],A.prototype,"distance",2);d([m({type:Boolean,reflect:!0})],A.prototype,"open",2);d([m({type:Number})],A.prototype,"skidding",2);d([m({attribute:"show-delay",type:Number})],A.prototype,"showDelay",2);d([m({attribute:"hide-delay",type:Number})],A.prototype,"hideDelay",2);d([m()],A.prototype,"trigger",2);d([m({attribute:"without-arrow",type:Boolean,reflect:!0})],A.prototype,"withoutArrow",2);d([m()],A.prototype,"for",2);d([yt()],A.prototype,"anchor",2);d([Y("open",{waitUntilFirstUpdate:!0})],A.prototype,"handleOpenChange",1);d([Y("for")],A.prototype,"handleForChange",1);d([Y(["distance","placement","skidding"])],A.prototype,"handleOptionsChange",1);d([Y("disabled")],A.prototype,"handleDisabledChange",1);A=d([ht("wa-tooltip")],A);var xi=class extends Event{constructor(){super("wa-load",{bubbles:!0,cancelable:!1,composed:!0})}};var Li=z` :host { --primary-color: currentColor; --primary-opacity: 1; --secondary-color: currentColor; --secondary-opacity: 0.4; --rotate-angle: 0deg; box-sizing: content-box; display: inline-flex; align-items: center; justify-content: center; vertical-align: -0.125em; } /* Standard */ :host(:not([auto-width])) { width: 1.25em; height: 1em; } /* Auto-width */ :host([auto-width]) { width: auto; height: 1em; } svg { height: 1em; overflow: visible; width: auto; /* Duotone colors with path-specific opacity fallback */ path[data-duotone-primary] { color: var(--primary-color); opacity: var(--path-opacity, var(--primary-opacity)); } path[data-duotone-secondary] { color: var(--secondary-color); opacity: var(--path-opacity, var(--secondary-opacity)); } } /* Rotation */ :host([rotate]) { transform: rotate(var(--rotate-angle, 0deg)); } /* Flipping */ :host([flip='x']) { transform: scaleX(-1); } :host([flip='y']) { transform: scaleY(-1); } :host([flip='both']) { transform: scale(-1, -1); } /* Rotation and Flipping combined */ :host([rotate][flip='x']) { transform: rotate(var(--rotate-angle, 0deg)) scaleX(-1); } :host([rotate][flip='y']) { transform: rotate(var(--rotate-angle, 0deg)) scaleY(-1); } :host([rotate][flip='both']) { transform: rotate(var(--rotate-angle, 0deg)) scale(-1, -1); } /* Animations */ :host([animation='beat']) { animation-name: beat; animation-delay: var(--animation-delay, 0s); animation-direction: var(--animation-direction, normal); animation-duration: var(--animation-duration, 1s); animation-iteration-count: var(--animation-iteration-count, infinite); animation-timing-function: var(--animation-timing, ease-in-out); } :host([animation='fade']) { animation-name: fade; animation-delay: var(--animation-delay, 0s); animation-direction: var(--animation-direction, normal); animation-duration: var(--animation-duration, 1s); animation-iteration-count: var(--animation-iteration-count, infinite); animation-timing-function: var(--animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } :host([animation='beat-fade']) { animation-name: beat-fade; animation-delay: var(--animation-delay, 0s); animation-direction: var(--animation-direction, normal); animation-duration: var(--animation-duration, 1s); animation-iteration-count: var(--animation-iteration-count, infinite); animation-timing-function: var(--animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } :host([animation='bounce']) { animation-name: bounce; animation-delay: var(--animation-delay, 0s); animation-direction: var(--animation-direction, normal); animation-duration: var(--animation-duration, 1s); animation-iteration-count: var(--animation-iteration-count, infinite); animation-timing-function: var(--animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); } :host([animation='flip']) { animation-name: flip; animation-delay: var(--animation-delay, 0s); animation-direction: var(--animation-direction, normal); animation-duration: var(--animation-duration, 1s); animation-iteration-count: var(--animation-iteration-count, infinite); animation-timing-function: var(--animation-timing, ease-in-out); } :host([animation='shake']) { animation-name: shake; animation-delay: var(--animation-delay, 0s); animation-direction: var(--animation-direction, normal); animation-duration: var(--animation-duration, 1s); animation-iteration-count: var(--animation-iteration-count, infinite); animation-timing-function: var(--animation-timing, linear); } :host([animation='spin']) { animation-name: spin; animation-delay: var(--animation-delay, 0s); animation-direction: var(--animation-direction, normal); animation-duration: var(--animation-duration, 2s); animation-iteration-count: var(--animation-iteration-count, infinite); animation-timing-function: var(--animation-timing, linear); } :host([animation='spin-pulse']) { animation-name: spin-pulse; animation-direction: var(--animation-direction, normal); animation-duration: var(--animation-duration, 1s); animation-iteration-count: var(--animation-iteration-count, infinite); animation-timing-function: var(--animation-timing, steps(8)); } :host([animation='spin-reverse']) { animation-name: spin; animation-delay: var(--animation-delay, 0s); animation-direction: var(--animation-direction, reverse); animation-duration: var(--animation-duration, 2s); animation-iteration-count: var(--animation-iteration-count, infinite); animation-timing-function: var(--animation-timing, linear); } /* Keyframes */ @media (prefers-reduced-motion: reduce) { :host([animation='beat']), :host([animation='bounce']), :host([animation='fade']), :host([animation='beat-fade']), :host([animation='flip']), :host([animation='shake']), :host([animation='spin']), :host([animation='spin-pulse']), :host([animation='spin-reverse']) { animation: none !important; transition: none !important; } } @keyframes beat { 0%, 90% { transform: scale(1); } 45% { transform: scale(var(--beat-scale, 1.25)); } } @keyframes fade { 50% { opacity: var(--fade-opacity, 0.4); } } @keyframes beat-fade { 0%, 100% { opacity: var(--beat-fade-opacity, 0.4); transform: scale(1); } 50% { opacity: 1; transform: scale(var(--beat-fade-scale, 1.125)); } } @keyframes bounce { 0% { transform: scale(1, 1) translateY(0); } 10% { transform: scale(var(--bounce-start-scale-x, 1.1), var(--bounce-start-scale-y, 0.9)) translateY(0); } 30% { transform: scale(var(--bounce-jump-scale-x, 0.9), var(--bounce-jump-scale-y, 1.1)) translateY(var(--bounce-height, -0.5em)); } 50% { transform: scale(var(--bounce-land-scale-x, 1.05), var(--bounce-land-scale-y, 0.95)) translateY(0); } 57% { transform: scale(1, 1) translateY(var(--bounce-rebound, -0.125em)); } 64% { transform: scale(1, 1) translateY(0); } 100% { transform: scale(1, 1) translateY(0); } } @keyframes flip { 50% { transform: rotate3d(var(--flip-x, 0), var(--flip-y, 1), var(--flip-z, 0), var(--flip-angle, -180deg)); } } @keyframes shake { 0% { transform: rotate(-15deg); } 4% { transform: rotate(15deg); } 8%, 24% { transform: rotate(-18deg); } 12%, 28% { transform: rotate(18deg); } 16% { transform: rotate(-22deg); } 20% { transform: rotate(22deg); } 32% { transform: rotate(-12deg); } 36% { transform: rotate(12deg); } 40%, 100% { transform: rotate(0deg); } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes spin-pulse { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } `;function br(e){return`data:image/svg+xml,${encodeURIComponent(e)}`}var We={solid:{check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',circle:'',eyedropper:'',file:'',"file-audio":'',"file-code":'',"file-excel":'',"file-image":'',"file-pdf":'',"file-powerpoint":'',"file-video":'',"file-word":'',"file-zipper":'',"grip-vertical":'',indeterminate:'',minus:'',pause:'',play:'',plus:'',star:'',upload:'',user:'',xmark:''},regular:{"circle-question":'',"circle-xmark":'',copy:'',eye:'',"eye-slash":'',star:''}},Cr={name:"system",resolver:(e,t="classic",o="solid")=>{let r=We[o][e]??We.regular[e]??We.regular["circle-question"];return r?br(r):""}},Ai=Cr;var xr="",je="";function $i(){return xr.replace(/\/$/,"")}function Lr(e){je=e}function _i(){if(!je){let e=document.querySelector("[data-fa-kit-code]");e&&Lr(e.getAttribute("data-fa-kit-code")||"")}return je}var Ei="7.2.0";function Ar(e,t,o){let i="solid";return t==="chisel"&&(i="chisel-regular"),t==="etch"&&(i="etch-solid"),t==="graphite"&&(i="graphite-thin"),t==="jelly"&&(i="jelly-regular",o==="duo-regular"&&(i="jelly-duo-regular"),o==="fill-regular"&&(i="jelly-fill-regular")),t==="jelly-duo"&&(i="jelly-duo-regular"),t==="jelly-fill"&&(i="jelly-fill-regular"),t==="notdog"&&(o==="solid"&&(i="notdog-solid"),o==="duo-solid"&&(i="notdog-duo-solid")),t==="notdog-duo"&&(i="notdog-duo-solid"),t==="slab"&&((o==="solid"||o==="regular")&&(i="slab-regular"),o==="press-regular"&&(i="slab-press-regular")),t==="slab-press"&&(i="slab-press-regular"),t==="thumbprint"&&(i="thumbprint-light"),t==="utility"&&(i="utility-semibold"),t==="utility-duo"&&(i="utility-duo-semibold"),t==="utility-fill"&&(i="utility-fill-semibold"),t==="whiteboard"&&(i="whiteboard-semibold"),t==="classic"&&(o==="thin"&&(i="thin"),o==="light"&&(i="light"),o==="regular"&&(i="regular"),o==="solid"&&(i="solid")),t==="duotone"&&(o==="thin"&&(i="duotone-thin"),o==="light"&&(i="duotone-light"),o==="regular"&&(i="duotone-regular"),o==="solid"&&(i="duotone")),t==="sharp"&&(o==="thin"&&(i="sharp-thin"),o==="light"&&(i="sharp-light"),o==="regular"&&(i="sharp-regular"),o==="solid"&&(i="sharp-solid")),t==="sharp-duotone"&&(o==="thin"&&(i="sharp-duotone-thin"),o==="light"&&(i="sharp-duotone-light"),o==="regular"&&(i="sharp-duotone-regular"),o==="solid"&&(i="sharp-duotone-solid")),t==="brands"&&(i="brands"),i}function $r(e,t,o){let i=Ar(e,t,o),r=$i();if(r)return`${r}/${i}/${e}.svg`;let s=_i();return s.length>0?`https://ka-p.fontawesome.com/releases/v${Ei}/svgs/${i}/${e}.svg?token=${encodeURIComponent(s)}`:`https://ka-f.fontawesome.com/releases/v${Ei}/svgs/${i}/${e}.svg`}var _r={name:"default",resolver:(e,t="classic",o="solid")=>$r(e,t,o),mutator:(e,t)=>{if(t?.family&&!e.hasAttribute("data-duotone-initialized")){let{family:o,variant:i}=t;if(o==="duotone"||o==="sharp-duotone"||o==="notdog-duo"||o==="notdog"&&i==="duo-solid"||o==="jelly-duo"||o==="jelly"&&i==="duo-regular"||o==="utility-duo"||o==="thumbprint"){let r=[...e.querySelectorAll("path")],s=r.find(a=>!a.hasAttribute("opacity")),n=r.find(a=>a.hasAttribute("opacity"));if(!s||!n)return;if(s.setAttribute("data-duotone-primary",""),n.setAttribute("data-duotone-secondary",""),t.swapOpacity&&s&&n){let a=n.getAttribute("opacity")||"0.4";s.style.setProperty("--path-opacity",a),n.style.setProperty("--path-opacity","1")}e.setAttribute("data-duotone-initialized","")}}}},Si=_r;var Er="classic",Sr=[Si,Ai],qe=[];function Pi(e){qe.push(e)}function Ri(e){qe=qe.filter(t=>t!==e)}function ve(e){return Sr.find(t=>t.name===e)}function Oi(){return Er}var{I:Wa}=po;var Mi=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t;var Kt=Symbol(),be=Symbol(),Ve,Ye=new Map,S=class extends U{constructor(){super(...arguments),this.svg=null,this.autoWidth=!1,this.swapOpacity=!1,this.label="",this.library="default",this.rotate=0,this.resolveIcon=async(e,t)=>{let o;if(t?.spriteSheet){this.hasUpdated||await this.updateComplete,this.svg=V` `,await this.updateComplete;let i=this.shadowRoot.querySelector("[part='svg']");return typeof t.mutator=="function"&&t.mutator(i,this),this.svg}try{if(o=await fetch(e,{mode:"cors"}),!o.ok)return o.status===410?Kt:be}catch{return be}try{let i=document.createElement("div");i.innerHTML=await o.text();let r=i.firstElementChild;if(r?.tagName?.toLowerCase()!=="svg")return Kt;Ve||(Ve=new DOMParser);let n=Ve.parseFromString(r.outerHTML,"text/html").body.querySelector("svg");return n?(n.part.add("svg"),document.adoptNode(n)):Kt}catch{return Kt}}}connectedCallback(){super.connectedCallback(),Pi(this)}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("rotate")&&this.style.setProperty("--rotate-angle",`${this.rotate}deg`),this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),Ri(this)}async getIconSource(){let e=ve(this.library),t=this.family||Oi();if(this.name&&e){let o;try{o=await e.resolver(this.name,t,this.variant,this.autoWidth)}catch{o=void 0}return{url:o,fromLibrary:!0}}return{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label=="string"&&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(){let{url:e,fromLibrary:t}=await this.getIconSource(),o=t?ve(this.library):void 0;if(!e){this.svg=null;return}let i=Ye.get(e);i||(i=this.resolveIcon(e,o),Ye.set(e,i));let r=await i;r===be&&Ye.delete(e);let s=await this.getIconSource();if(e===s.url){if(Mi(r)){this.svg=r;return}switch(r){case be:case Kt:this.svg=null,this.dispatchEvent(new Rt);break;default:this.svg=r.cloneNode(!0),o?.mutator?.(this.svg,this),this.dispatchEvent(new xi)}}}updated(e){super.updated(e);let t=ve(this.library);this.hasAttribute("rotate")&&this.style.setProperty("--rotate-angle",`${this.rotate}deg`);let o=this.shadowRoot?.querySelector("svg");o&&t?.mutator?.(o,this)}render(){return this.hasUpdated?this.svg:V``}};S.css=Li;d([yt()],S.prototype,"svg",2);d([m({reflect:!0})],S.prototype,"name",2);d([m({reflect:!0})],S.prototype,"family",2);d([m({reflect:!0})],S.prototype,"variant",2);d([m({attribute:"auto-width",type:Boolean,reflect:!0})],S.prototype,"autoWidth",2);d([m({attribute:"swap-opacity",type:Boolean,reflect:!0})],S.prototype,"swapOpacity",2);d([m()],S.prototype,"src",2);d([m()],S.prototype,"label",2);d([m({reflect:!0})],S.prototype,"library",2);d([m({type:Number,reflect:!0})],S.prototype,"rotate",2);d([m({type:String,reflect:!0})],S.prototype,"flip",2);d([m({type:String,reflect:!0})],S.prototype,"animation",2);d([Y("label")],S.prototype,"handleLabelChange",1);d([Y(["family","name","library","variant","src","autoWidth","swapOpacity"],{waitUntilFirstUpdate:!0})],S.prototype,"setIcon",1);S=d([ht("wa-icon")],S);export{_ as default}; /*! Bundled license information: @awesome.me/webawesome/dist/chunks/chunk.NY2PQ35L.js: @awesome.me/webawesome/dist/chunks/chunk.2ZAJEMB4.js: @awesome.me/webawesome/dist/chunks/chunk.Q7SIJFWA.js: @awesome.me/webawesome/dist/chunks/chunk.L6CIKOFQ.js: @awesome.me/webawesome/dist/chunks/chunk.KIHB3VMB.js: @awesome.me/webawesome/dist/chunks/chunk.YDQCS2HK.js: @awesome.me/webawesome/dist/chunks/chunk.GZDAZS3B.js: @awesome.me/webawesome/dist/chunks/chunk.JHBJNH5V.js: @awesome.me/webawesome/dist/chunks/chunk.PZAN6FPN.js: @awesome.me/webawesome/dist/chunks/chunk.7VGCIHDG.js: @awesome.me/webawesome/dist/chunks/chunk.QX3YGD4G.js: @awesome.me/webawesome/dist/chunks/chunk.RFCQC7HM.js: @awesome.me/webawesome/dist/chunks/chunk.TKL7YZKI.js: @awesome.me/webawesome/dist/chunks/chunk.ZWQCGLB5.js: @awesome.me/webawesome/dist/chunks/chunk.NUEKQX75.js: @awesome.me/webawesome/dist/chunks/chunk.KEBNVAWE.js: @awesome.me/webawesome/dist/chunks/chunk.52WA2DJO.js: @awesome.me/webawesome/dist/chunks/chunk.4ZAKP7NY.js: @awesome.me/webawesome/dist/chunks/chunk.MQODJ75V.js: @awesome.me/webawesome/dist/chunks/chunk.3NKIHICW.js: @awesome.me/webawesome/dist/chunks/chunk.PX3HMKF7.js: @awesome.me/webawesome/dist/chunks/chunk.KNJT7KBU.js: @awesome.me/webawesome/dist/chunks/chunk.F25QOBDY.js: @awesome.me/webawesome/dist/chunks/chunk.67UEJGCD.js: @awesome.me/webawesome/dist/chunks/chunk.WDIIGUNP.js: @awesome.me/webawesome/dist/chunks/chunk.D5I2DWML.js: @awesome.me/webawesome/dist/chunks/chunk.KPN3YZ6U.js: @awesome.me/webawesome/dist/chunks/chunk.HGBRCPUS.js: @awesome.me/webawesome/dist/chunks/chunk.HCXBOJYW.js: @awesome.me/webawesome/dist/chunks/chunk.S6RZOJNM.js: @awesome.me/webawesome/dist/chunks/chunk.SFADCYQ3.js: @awesome.me/webawesome/dist/components/copy-button/copy-button.js: (*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license *) @lit/reactive-element/css-tag.js: (** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/reactive-element.js: lit-html/lit-html.js: lit-element/lit-element.js: @lit/reactive-element/decorators/custom-element.js: @lit/reactive-element/decorators/property.js: @lit/reactive-element/decorators/state.js: @lit/reactive-element/decorators/event-options.js: @lit/reactive-element/decorators/base.js: @lit/reactive-element/decorators/query.js: @lit/reactive-element/decorators/query-all.js: @lit/reactive-element/decorators/query-async.js: @lit/reactive-element/decorators/query-assigned-nodes.js: lit-html/directive.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) lit-html/is-server.js: (** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/decorators/query-assigned-elements.js: (** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) lit-html/directives/class-map.js: (** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) lit-html/directive-helpers.js: (** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) */