import{a6 as x,a7 as S,G as C,i as m,r as v,a as y,b as $,A as z}from"./index-B6fu-u6K.js";const p={getSpacingStyles(t,e){if(Array.isArray(t))return t[e]?`var(--wui-spacing-${t[e]})`:void 0;if(typeof t=="string")return`var(--wui-spacing-${t})`},getFormattedDate(t){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t)},getHostName(t){try{return new URL(t).hostname}catch{return""}},getTruncateString({string:t,charsStart:e,charsEnd:i,truncate:r}){return t.length<=e+i?t:r==="end"?`${t.substring(0,e)}...`:r==="start"?`...${t.substring(t.length-i)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(i))}`},generateAvatarColors(t){const i=t.toLowerCase().replace(/^0x/iu,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),r=this.hexToRgb(i),o=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),s=100-3*Number(o==null?void 0:o.replace("px","")),a=`${s}% ${s}% at 65% 40%`,f=[];for(let h=0;h<5;h+=1){const w=this.tintColor(r,.15*h);f.push(`rgb(${w[0]}, ${w[1]}, ${w[2]})`)}return`
--local-color-1: ${f[0]};
--local-color-2: ${f[1]};
--local-color-3: ${f[2]};
--local-color-4: ${f[3]};
--local-color-5: ${f[4]};
--local-radial-circle: ${a}
`},hexToRgb(t){const e=parseInt(t,16),i=e>>16&255,r=e>>8&255,o=e&255;return[i,r,o]},tintColor(t,e){const[i,r,o]=t,n=Math.round(i+(255-i)*e),s=Math.round(r+(255-r)*e),a=Math.round(o+(255-o)*e);return[n,s,a]},isNumber(t){return{number:/^[0-9]+$/u}.number.test(t)},getColorTheme(t){var e;return t||(typeof window<"u"&&window.matchMedia&&typeof window.matchMedia=="function"?(e=window.matchMedia("(prefers-color-scheme: dark)"))!=null&&e.matches?"dark":"light":"dark")},splitBalance(t){const e=t.split(".");return e.length===2?[e[0],e[1]]:["0","00"]},roundNumber(t,e,i){return t.toString().length>=e?Number(t).toFixed(i):t}};function T(t,e){const{kind:i,elements:r}=e;return{kind:i,elements:r,finisher(o){customElements.get(t)||customElements.define(t,o)}}}function _(t,e){return customElements.get(t)||customElements.define(t,e),e}function b(t){return function(i){return typeof i=="function"?_(t,i):T(t,i)}}/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const j={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:x},M=(t=j,e,i)=>{const{kind:r,metadata:o}=i;let n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),r==="setter"&&((t=Object.create(t)).wrapped=!0),n.set(i.name,t),r==="accessor"){const{name:s}=i;return{set(a){const f=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,f,t,!0,a)},init(a){return a!==void 0&&this.C(s,void 0,t,a),a}}}if(r==="setter"){const{name:s}=i;return function(a){const f=this[s];e.call(this,a),this.requestUpdate(s,f,t,!0,a)}}throw Error("Unsupported decorator location: "+r)};function l(t){return(e,i)=>typeof i=="object"?M(t,e,i):((r,o,n)=>{const s=o.hasOwnProperty(n);return o.constructor.createProperty(n,r),s?Object.getOwnPropertyDescriptor(o,n):void 0})(t,e,i)}/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function k(t){return l({...t,state:!0,attribute:!1})}/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const U={ATTRIBUTE:1,CHILD:2},A=t=>(...e)=>({_$litDirective$:t,values:e});class E{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,r){this._$Ct=e,this._$AM=i,this._$Ci=r}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}}/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const R=A(class extends E{constructor(t){var e;if(super(t),t.type!==U.ATTRIBUTE||t.name!=="class"||((e=t.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,o;if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in e)e[n]&&!((r=this.nt)!=null&&r.has(n))&&this.st.add(n);return this.render(e)}const i=t.element.classList;for(const n of this.st)n in e||(i.remove(n),this.st.delete(n));for(const n in e){const s=!!e[n];s===this.st.has(n)||(o=this.nt)!=null&&o.has(n)||(s?(i.add(n),this.st.add(n)):(i.remove(n),this.st.delete(n)))}return C}}),G=m`
:host {
display: inline-flex !important;
}
slot {
width: 100%;
display: inline-block;
font-style: normal;
font-family: var(--wui-font-family);
font-feature-settings:
'tnum' on,
'lnum' on,
'case' on;
line-height: 130%;
font-weight: var(--wui-font-weight-regular);
overflow: inherit;
text-overflow: inherit;
text-align: var(--local-align);
color: var(--local-color);
}
.wui-line-clamp-1 {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
}
.wui-line-clamp-2 {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.wui-font-medium-400 {
font-size: var(--wui-font-size-medium);
font-weight: var(--wui-font-weight-light);
letter-spacing: var(--wui-letter-spacing-medium);
}
.wui-font-medium-600 {
font-size: var(--wui-font-size-medium);
letter-spacing: var(--wui-letter-spacing-medium);
}
.wui-font-title-600 {
font-size: var(--wui-font-size-title);
letter-spacing: var(--wui-letter-spacing-title);
}
.wui-font-title-6-600 {
font-size: var(--wui-font-size-title-6);
letter-spacing: var(--wui-letter-spacing-title-6);
}
.wui-font-mini-700 {
font-size: var(--wui-font-size-mini);
letter-spacing: var(--wui-letter-spacing-mini);
text-transform: uppercase;
}
.wui-font-large-500,
.wui-font-large-600,
.wui-font-large-700 {
font-size: var(--wui-font-size-large);
letter-spacing: var(--wui-letter-spacing-large);
}
.wui-font-2xl-500,
.wui-font-2xl-600,
.wui-font-2xl-700 {
font-size: var(--wui-font-size-2xl);
letter-spacing: var(--wui-letter-spacing-2xl);
}
.wui-font-paragraph-400,
.wui-font-paragraph-500,
.wui-font-paragraph-600,
.wui-font-paragraph-700 {
font-size: var(--wui-font-size-paragraph);
letter-spacing: var(--wui-letter-spacing-paragraph);
}
.wui-font-small-400,
.wui-font-small-500,
.wui-font-small-600 {
font-size: var(--wui-font-size-small);
letter-spacing: var(--wui-letter-spacing-small);
}
.wui-font-tiny-400,
.wui-font-tiny-500,
.wui-font-tiny-600 {
font-size: var(--wui-font-size-tiny);
letter-spacing: var(--wui-letter-spacing-tiny);
}
.wui-font-micro-700,
.wui-font-micro-600,
.wui-font-micro-500 {
font-size: var(--wui-font-size-micro);
letter-spacing: var(--wui-letter-spacing-micro);
text-transform: uppercase;
}
.wui-font-tiny-400,
.wui-font-small-400,
.wui-font-medium-400,
.wui-font-paragraph-400 {
font-weight: var(--wui-font-weight-light);
}
.wui-font-large-700,
.wui-font-paragraph-700,
.wui-font-micro-700,
.wui-font-mini-700 {
font-weight: var(--wui-font-weight-bold);
}
.wui-font-medium-600,
.wui-font-medium-title-600,
.wui-font-title-6-600,
.wui-font-large-600,
.wui-font-paragraph-600,
.wui-font-small-600,
.wui-font-tiny-600,
.wui-font-micro-600 {
font-weight: var(--wui-font-weight-medium);
}
:host([disabled]) {
opacity: 0.4;
}
`;var g=function(t,e,i,r){var o=arguments.length,n=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,i,n):s(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};let d=class extends y{constructor(){super(...arguments),this.variant="paragraph-500",this.color="fg-300",this.align="left",this.lineClamp=void 0}render(){const e={[`wui-font-${this.variant}`]:!0,[`wui-color-${this.color}`]:!0,[`wui-line-clamp-${this.lineClamp}`]:!!this.lineClamp};return this.style.cssText=`
--local-align: ${this.align};
--local-color: var(--wui-color-${this.color});
`,$``}};d.styles=[v,G];g([l()],d.prototype,"variant",void 0);g([l()],d.prototype,"color",void 0);g([l()],d.prototype,"align",void 0);g([l()],d.prototype,"lineClamp",void 0);d=g([b("wui-text")],d);const P=m`
:host {
display: flex;
width: inherit;
height: inherit;
}
`;var c=function(t,e,i,r){var o=arguments.length,n=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,i,n):s(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};let u=class extends y{render(){return this.style.cssText=`
flex-direction: ${this.flexDirection};
flex-wrap: ${this.flexWrap};
flex-basis: ${this.flexBasis};
flex-grow: ${this.flexGrow};
flex-shrink: ${this.flexShrink};
align-items: ${this.alignItems};
justify-content: ${this.justifyContent};
column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};
row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};
gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};
padding-top: ${this.padding&&p.getSpacingStyles(this.padding,0)};
padding-right: ${this.padding&&p.getSpacingStyles(this.padding,1)};
padding-bottom: ${this.padding&&p.getSpacingStyles(this.padding,2)};
padding-left: ${this.padding&&p.getSpacingStyles(this.padding,3)};
margin-top: ${this.margin&&p.getSpacingStyles(this.margin,0)};
margin-right: ${this.margin&&p.getSpacingStyles(this.margin,1)};
margin-bottom: ${this.margin&&p.getSpacingStyles(this.margin,2)};
margin-left: ${this.margin&&p.getSpacingStyles(this.margin,3)};
`,$``}};u.styles=[v,P];c([l()],u.prototype,"flexDirection",void 0);c([l()],u.prototype,"flexWrap",void 0);c([l()],u.prototype,"flexBasis",void 0);c([l()],u.prototype,"flexGrow",void 0);c([l()],u.prototype,"flexShrink",void 0);c([l()],u.prototype,"alignItems",void 0);c([l()],u.prototype,"justifyContent",void 0);c([l()],u.prototype,"columnGap",void 0);c([l()],u.prototype,"rowGap",void 0);c([l()],u.prototype,"gap",void 0);c([l()],u.prototype,"padding",void 0);c([l()],u.prototype,"margin",void 0);u=c([b("wui-flex")],u);/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const W=t=>t??z;export{p as U,R as a,b as c,A as e,E as i,l as n,W as o,k as r,U as t};