@politiet/sheriff-web-components 2.9.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +782 -4
- package/dist/frameworks/preact.d.ts +4 -1
- package/dist/frameworks/preact.d.ts.map +1 -1
- package/dist/frameworks/react.d.ts +4 -1
- package/dist/frameworks/react.d.ts.map +1 -1
- package/dist/frameworks/solidjs.d.ts +1 -0
- package/dist/frameworks/solidjs.d.ts.map +1 -1
- package/dist/frameworks/svelte.d.ts +1 -0
- package/dist/frameworks/svelte.d.ts.map +1 -1
- package/dist/frameworks/vue.d.ts +1 -0
- package/dist/frameworks/vue.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/react-wrappers/SDSEnvironmentBannerWrapper.d.ts +3 -0
- package/dist/react-wrappers/SDSEnvironmentBannerWrapper.d.ts.map +1 -0
- package/dist/react-wrappers/SDSEnvironmentBannerWrapper.js +10 -0
- package/dist/react-wrappers/SDSEnvironmentBannerWrapper.js.map +1 -0
- package/dist/react-wrappers/index.d.ts +1 -0
- package/dist/react-wrappers/index.d.ts.map +1 -1
- package/dist/react-wrappers/index.js +1 -0
- package/dist/react-wrappers/index.js.map +1 -1
- package/dist/sds-environment-banner/sds-environment-banner.component.d.ts +13 -0
- package/dist/sds-environment-banner/sds-environment-banner.component.d.ts.map +1 -0
- package/dist/sds-environment-banner/sds-environment-banner.component.js +36 -0
- package/dist/sds-environment-banner/sds-environment-banner.component.js.map +1 -0
- package/dist/sds-environment-banner/sds-environment-banner.d.ts +9 -0
- package/dist/sds-environment-banner/sds-environment-banner.d.ts.map +1 -0
- package/dist/sds-environment-banner/sds-environment-banner.js +15 -0
- package/dist/sds-environment-banner/sds-environment-banner.js.map +1 -0
- package/dist/sds-environment-banner/sds-environment-banner.styles.d.ts +2 -0
- package/dist/sds-environment-banner/sds-environment-banner.styles.d.ts.map +1 -0
- package/dist/sds-environment-banner/sds-environment-banner.styles.js +98 -0
- package/dist/sds-environment-banner/sds-environment-banner.styles.js.map +1 -0
- package/dist/sds-icon/sds-icon-names.d.ts +1 -1
- package/dist/sds-icon/sds-icon-names.d.ts.map +1 -1
- package/dist/sds-icon/sds-icon-names.js +484 -0
- package/dist/sds-icon/sds-icon-names.js.map +1 -1
- package/dist/sds-radio/sds-radio.d.ts.map +1 -1
- package/dist/sds-radio/sds-radio.js +4 -0
- package/dist/sds-radio/sds-radio.js.map +1 -1
- package/dist/sds-select/sds-select.component.d.ts.map +1 -1
- package/dist/sds-select/sds-select.component.js +4 -0
- package/dist/sds-select/sds-select.component.js.map +1 -1
- package/dist/sds-select/sds-select.styles.d.ts.map +1 -1
- package/dist/sds-select/sds-select.styles.js +12 -18
- package/dist/sds-select/sds-select.styles.js.map +1 -1
- package/dist/sds-textfield/sds-textfield.component.d.ts +68 -0
- package/dist/sds-textfield/sds-textfield.component.d.ts.map +1 -0
- package/dist/sds-textfield/sds-textfield.component.js +249 -0
- package/dist/sds-textfield/sds-textfield.component.js.map +1 -0
- package/dist/sds-textfield/sds-textfield.d.ts +3 -66
- package/dist/sds-textfield/sds-textfield.d.ts.map +1 -1
- package/dist/sds-textfield/sds-textfield.js +2 -241
- package/dist/sds-textfield/sds-textfield.js.map +1 -1
- package/dist/sheriff-web-components.js +148 -54
- package/package.json +12 -3
- package/web-types.json +94 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[s]=o)(t,"symbol"!=typeof s?s+"":s,o);const o=globalThis,r=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=/* @__PURE__ */Symbol(),i=/* @__PURE__ */new WeakMap;let d=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(r&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=i.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&i.set(e,t))}return t}toString(){return this.cssText}};const n=t=>new d("string"==typeof t?t:t+"",void 0,a),l=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new d(s,t,a)},c=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return n(e)})(t):t,{is:h,defineProperty:p,getOwnPropertyDescriptor:g,getOwnPropertyNames:u,getOwnPropertySymbols:v,getPrototypeOf:f}=Object,b=globalThis,m=b.trustedTypes,_=m?m.emptyScript:"",x=b.reactiveElementPolyfillSupport,y=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?_:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(o){s=null}}return s}},k=(t,e)=>!h(t,e),z={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:k};Symbol.metadata??=/* @__PURE__ */Symbol("metadata"),b.litPropertyMetadata??=/* @__PURE__ */new WeakMap;let $=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,e=z){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=/* @__PURE__ */Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&p(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:r}=g(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const a=o?.call(this);r?.call(this,e),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??z}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...u(t),...v(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=/* @__PURE__ */new Map;for(const[e,s]of this.elementProperties){const t=this._$Eu(e,s);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?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=/* @__PURE__ */new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=/* @__PURE__ */new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=/* @__PURE__ */new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(r)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),r=o.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=s.cssText,t.appendChild(e)}})(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,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:w).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=o;const a=r.fromAttribute(e,t.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,e,s,o=!1,r){if(void 0!==t){const a=this.constructor;if(!1===o&&(r=this[t]),s??=a.getPropertyOptions(t),!((s.hasChanged??k)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:r},a){s&&!(this._$Ej??=/* @__PURE__ */new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=/* @__PURE__ */new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=/* @__PURE__ */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(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[y("elementProperties")]=/* @__PURE__ */new Map,$[y("finalized")]=/* @__PURE__ */new Map,x?.({ReactiveElement:$}),(b.reactiveElementVersions??=[]).push("2.1.2");const S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:k},C=(t=S,e,s)=>{const{kind:o,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=/* @__PURE__ */new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),a.set(s.name,t),"accessor"===o){const{name:o}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,r,t,!0,s)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=s;return function(s){const r=this[o];e.call(this,s),this.requestUpdate(o,r,t,!0,s)}}throw Error("Unsupported decorator location: "+o)};function E(t){return(e,s)=>"object"==typeof s?C(t,e,s):((t,e,s)=>{const o=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),o?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function A(t){return E({...t,state:!0,attribute:!1})}const L=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s);function O(t,e){return(e,s,o)=>L(e,s,{get(){return e=this,e.renderRoot?.querySelector(t)??null;var e}})}function T(t){return(e,s)=>{const{slot:o,selector:r}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return L(e,s,{get(){const e=this.renderRoot?.querySelector(a),s=e?.assignedElements(t)??[];return void 0===r?s:s.filter(t=>t.matches(r))}})}}function P(t){return e=>{var s;customElements.get(t)||(s=t,(t,e)=>{void 0!==e?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)})(e)}}const D=globalThis,M=t=>t,q=D.trustedTypes,R=q?q.createPolicy("lit-html",{createHTML:t=>t}):void 0,V="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,H="?"+B,j=`<${H}>`,F=document,I=()=>F.createComment(""),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,W="[ \t\n\f\r]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,Y=/>/g,X=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,Q=/"/g,J=/^(?:script|style|textarea|title)$/i,tt=(at=1,(t,...e)=>({_$litType$:at,strings:t,values:e})),et=/* @__PURE__ */Symbol.for("lit-noChange"),st=/* @__PURE__ */Symbol.for("lit-nothing"),ot=/* @__PURE__ */new WeakMap,rt=F.createTreeWalker(F,129);var at;function it(t,e){if(!U(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==R?R.createHTML(e):e}let dt=class t{constructor({strings:e,_$litType$:s},o){let r;this.parts=[];let a=0,i=0;const d=e.length-1,n=this.parts,[l,c]=((t,e)=>{const s=t.length-1,o=[];let r,a=2===e?"<svg>":3===e?"<math>":"",i=K;for(let d=0;d<s;d++){const e=t[d];let s,n,l=-1,c=0;for(;c<e.length&&(i.lastIndex=c,n=i.exec(e),null!==n);)c=i.lastIndex,i===K?"!--"===n[1]?i=G:void 0!==n[1]?i=Y:void 0!==n[2]?(J.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=X):void 0!==n[3]&&(i=X):i===X?">"===n[0]?(i=r??K,l=-1):void 0===n[1]?l=-2:(l=i.lastIndex-n[2].length,s=n[1],i=void 0===n[3]?X:'"'===n[3]?Q:Z):i===Q||i===Z?i=X:i===G||i===Y?i=K:(i=X,r=void 0);const h=i===X&&t[d+1].startsWith("/>")?" ":"";a+=i===K?e+j:l>=0?(o.push(s),e.slice(0,l)+V+e.slice(l)+B+h):e+B+(-2===l?d:h)}return[it(t,a+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(e,s);if(this.el=t.createElement(l,o),rt.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=rt.nextNode())&&n.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(V)){const e=c[i++],s=r.getAttribute(t).split(B),o=/([.?@])?(.*)/.exec(e);n.push({type:1,index:a,name:o[2],strings:s,ctor:"."===o[1]?pt:"?"===o[1]?gt:"@"===o[1]?ut:ht}),r.removeAttribute(t)}else t.startsWith(B)&&(n.push({type:6,index:a}),r.removeAttribute(t));if(J.test(r.tagName)){const t=r.textContent.split(B),e=t.length-1;if(e>0){r.textContent=q?q.emptyScript:"";for(let s=0;s<e;s++)r.append(t[s],I()),rt.nextNode(),n.push({type:2,index:++a});r.append(t[e],I())}}}else if(8===r.nodeType)if(r.data===H)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(B,t+1));)n.push({type:7,index:a}),t+=B.length-1}a++}}static createElement(t,e){const s=F.createElement("template");return s.innerHTML=t,s}};function nt(t,e,s=t,o){if(e===et)return e;let r=void 0!==o?s._$Co?.[o]:s._$Cl;const a=N(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=r:s._$Cl=r),void 0!==r&&(e=nt(t,r._$AS(t,e.values),r,o)),e}let lt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??F).importNode(e,!0);rt.currentNode=o;let r=rt.nextNode(),a=0,i=0,d=s[0];for(;void 0!==d;){if(a===d.index){let e;2===d.type?e=new ct(r,r.nextSibling,this,t):1===d.type?e=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(e=new vt(r,this,t)),this._$AV.push(e),d=s[++i]}a!==d?.index&&(r=rt.nextNode(),a++)}return rt.currentNode=F,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},ct=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=st,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=nt(this,t,e),N(t)?t===st||null==t||""===t?(this._$AH!==st&&this._$AR(),this._$AH=st):t!==this._$AH&&t!==et&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>U(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==st&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=dt.createElement(it(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new lt(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=ot.get(t.strings);return void 0===e&&ot.set(t.strings,e=new dt(t)),e}k(e){U(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let o,r=0;for(const a of e)r===s.length?s.push(o=new t(this.O(I()),this.O(I()),this,this.options)):o=s[r],o._$AI(a),r++;r<s.length&&(this._$AR(o&&o._$AB.nextSibling,r),s.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=M(t).nextSibling;M(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,r){this.type=1,this._$AH=st,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=st}_$AI(t,e=this,s,o){const r=this.strings;let a=!1;if(void 0===r)t=nt(this,t,e,0),a=!N(t)||t!==this._$AH&&t!==et,a&&(this._$AH=t);else{const o=t;let i,d;for(t=r[0],i=0;i<r.length-1;i++)d=nt(this,o[s+i],e,i),d===et&&(d=this._$AH[i]),a||=!N(d)||d!==this._$AH[i],d===st?t=st:t!==st&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===st?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},pt=class extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===st?void 0:t}},gt=class extends ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==st)}},ut=class extends ht{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){if((t=nt(this,t,e,0)??st)===et)return;const s=this._$AH,o=t===st&&s!==st||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==st&&(s===st||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},vt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){nt(this,t)}};const ft=D.litHtmlPolyfillSupport;ft?.(dt,ct),(D.litHtmlVersions??=[]).push("3.3.3");const bt=globalThis;let mt=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const o=s?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=s?.renderBefore??null;o._$litPart$=r=new ct(e.insertBefore(I(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return et}};mt._$litElement$=!0,mt.finalized=!0,bt.litElementHydrateSupport?.({LitElement:mt});const _t=bt.litElementPolyfillSupport;_t?.({LitElement:mt}),(bt.litElementVersions??=[]).push("4.2.2");const xt=/* @__PURE__ */Symbol.for(""),yt=t=>{if(t?.r===xt)return t?._$litStatic$},wt=t=>({_$litStatic$:t,r:xt}),kt=(t,...e)=>({_$litStatic$:e.reduce((e,s,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(s)+t[o+1],t[0]),r:xt}),zt=/* @__PURE__ */new Map,$t=(t=>(e,...s)=>{const o=s.length;let r,a;const i=[],d=[];let n,l=0,c=!1;for(;l<o;){for(n=e[l];l<o&&void 0!==(a=s[l],r=yt(a));)n+=r+e[++l],c=!0;l!==o&&d.push(a),i.push(n),l++}if(l===o&&i.push(e[o]),c){const t=i.join("$$lit$$");void 0===(e=zt.get(t))&&(i.raw=i,zt.set(t,e=i)),s=d}return t(e,...s)})(tt),St=l`
|
|
1
|
+
var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[s]=o)(t,"symbol"!=typeof s?s+"":s,o);const o=globalThis,r=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=/* @__PURE__ */Symbol(),i=/* @__PURE__ */new WeakMap;let d=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(r&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=i.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&i.set(e,t))}return t}toString(){return this.cssText}};const n=t=>new d("string"==typeof t?t:t+"",void 0,a),l=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new d(s,t,a)},c=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return n(e)})(t):t,{is:h,defineProperty:p,getOwnPropertyDescriptor:g,getOwnPropertyNames:v,getOwnPropertySymbols:u,getPrototypeOf:f}=Object,b=globalThis,m=b.trustedTypes,_=m?m.emptyScript:"",x=b.reactiveElementPolyfillSupport,y=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?_:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(o){s=null}}return s}},k=(t,e)=>!h(t,e),z={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:k};Symbol.metadata??=/* @__PURE__ */Symbol("metadata"),b.litPropertyMetadata??=/* @__PURE__ */new WeakMap;let $=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,e=z){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=/* @__PURE__ */Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&p(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:r}=g(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const a=o?.call(this);r?.call(this,e),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??z}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...v(t),...u(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=/* @__PURE__ */new Map;for(const[e,s]of this.elementProperties){const t=this._$Eu(e,s);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?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=/* @__PURE__ */new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=/* @__PURE__ */new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=/* @__PURE__ */new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(r)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),r=o.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=s.cssText,t.appendChild(e)}})(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,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:w).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=o;const a=r.fromAttribute(e,t.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,e,s,o=!1,r){if(void 0!==t){const a=this.constructor;if(!1===o&&(r=this[t]),s??=a.getPropertyOptions(t),!((s.hasChanged??k)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:r},a){s&&!(this._$Ej??=/* @__PURE__ */new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=/* @__PURE__ */new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=/* @__PURE__ */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(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[y("elementProperties")]=/* @__PURE__ */new Map,$[y("finalized")]=/* @__PURE__ */new Map,x?.({ReactiveElement:$}),(b.reactiveElementVersions??=[]).push("2.1.2");const S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:k},C=(t=S,e,s)=>{const{kind:o,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=/* @__PURE__ */new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),a.set(s.name,t),"accessor"===o){const{name:o}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,r,t,!0,s)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=s;return function(s){const r=this[o];e.call(this,s),this.requestUpdate(o,r,t,!0,s)}}throw Error("Unsupported decorator location: "+o)};function E(t){return(e,s)=>"object"==typeof s?C(t,e,s):((t,e,s)=>{const o=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),o?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function A(t){return E({...t,state:!0,attribute:!1})}const L=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s);function O(t,e){return(e,s,o)=>L(e,s,{get(){return e=this,e.renderRoot?.querySelector(t)??null;var e}})}function T(t){return(e,s)=>{const{slot:o,selector:r}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return L(e,s,{get(){const e=this.renderRoot?.querySelector(a),s=e?.assignedElements(t)??[];return void 0===r?s:s.filter(t=>t.matches(r))}})}}function P(t){return e=>{var s;customElements.get(t)||(s=t,(t,e)=>{void 0!==e?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)})(e)}}const D=globalThis,M=t=>t,q=D.trustedTypes,R=q?q.createPolicy("lit-html",{createHTML:t=>t}):void 0,V="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,H="?"+B,j=`<${H}>`,F=document,I=()=>F.createComment(""),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,W="[ \t\n\f\r]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,Y=/>/g,X=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,Q=/"/g,J=/^(?:script|style|textarea|title)$/i,tt=(at=1,(t,...e)=>({_$litType$:at,strings:t,values:e})),et=/* @__PURE__ */Symbol.for("lit-noChange"),st=/* @__PURE__ */Symbol.for("lit-nothing"),ot=/* @__PURE__ */new WeakMap,rt=F.createTreeWalker(F,129);var at;function it(t,e){if(!U(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==R?R.createHTML(e):e}let dt=class t{constructor({strings:e,_$litType$:s},o){let r;this.parts=[];let a=0,i=0;const d=e.length-1,n=this.parts,[l,c]=((t,e)=>{const s=t.length-1,o=[];let r,a=2===e?"<svg>":3===e?"<math>":"",i=K;for(let d=0;d<s;d++){const e=t[d];let s,n,l=-1,c=0;for(;c<e.length&&(i.lastIndex=c,n=i.exec(e),null!==n);)c=i.lastIndex,i===K?"!--"===n[1]?i=G:void 0!==n[1]?i=Y:void 0!==n[2]?(J.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=X):void 0!==n[3]&&(i=X):i===X?">"===n[0]?(i=r??K,l=-1):void 0===n[1]?l=-2:(l=i.lastIndex-n[2].length,s=n[1],i=void 0===n[3]?X:'"'===n[3]?Q:Z):i===Q||i===Z?i=X:i===G||i===Y?i=K:(i=X,r=void 0);const h=i===X&&t[d+1].startsWith("/>")?" ":"";a+=i===K?e+j:l>=0?(o.push(s),e.slice(0,l)+V+e.slice(l)+B+h):e+B+(-2===l?d:h)}return[it(t,a+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(e,s);if(this.el=t.createElement(l,o),rt.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=rt.nextNode())&&n.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(V)){const e=c[i++],s=r.getAttribute(t).split(B),o=/([.?@])?(.*)/.exec(e);n.push({type:1,index:a,name:o[2],strings:s,ctor:"."===o[1]?pt:"?"===o[1]?gt:"@"===o[1]?vt:ht}),r.removeAttribute(t)}else t.startsWith(B)&&(n.push({type:6,index:a}),r.removeAttribute(t));if(J.test(r.tagName)){const t=r.textContent.split(B),e=t.length-1;if(e>0){r.textContent=q?q.emptyScript:"";for(let s=0;s<e;s++)r.append(t[s],I()),rt.nextNode(),n.push({type:2,index:++a});r.append(t[e],I())}}}else if(8===r.nodeType)if(r.data===H)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(B,t+1));)n.push({type:7,index:a}),t+=B.length-1}a++}}static createElement(t,e){const s=F.createElement("template");return s.innerHTML=t,s}};function nt(t,e,s=t,o){if(e===et)return e;let r=void 0!==o?s._$Co?.[o]:s._$Cl;const a=N(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=r:s._$Cl=r),void 0!==r&&(e=nt(t,r._$AS(t,e.values),r,o)),e}let lt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??F).importNode(e,!0);rt.currentNode=o;let r=rt.nextNode(),a=0,i=0,d=s[0];for(;void 0!==d;){if(a===d.index){let e;2===d.type?e=new ct(r,r.nextSibling,this,t):1===d.type?e=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(e=new ut(r,this,t)),this._$AV.push(e),d=s[++i]}a!==d?.index&&(r=rt.nextNode(),a++)}return rt.currentNode=F,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},ct=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=st,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=nt(this,t,e),N(t)?t===st||null==t||""===t?(this._$AH!==st&&this._$AR(),this._$AH=st):t!==this._$AH&&t!==et&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>U(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==st&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=dt.createElement(it(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new lt(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=ot.get(t.strings);return void 0===e&&ot.set(t.strings,e=new dt(t)),e}k(e){U(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let o,r=0;for(const a of e)r===s.length?s.push(o=new t(this.O(I()),this.O(I()),this,this.options)):o=s[r],o._$AI(a),r++;r<s.length&&(this._$AR(o&&o._$AB.nextSibling,r),s.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=M(t).nextSibling;M(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,r){this.type=1,this._$AH=st,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=st}_$AI(t,e=this,s,o){const r=this.strings;let a=!1;if(void 0===r)t=nt(this,t,e,0),a=!N(t)||t!==this._$AH&&t!==et,a&&(this._$AH=t);else{const o=t;let i,d;for(t=r[0],i=0;i<r.length-1;i++)d=nt(this,o[s+i],e,i),d===et&&(d=this._$AH[i]),a||=!N(d)||d!==this._$AH[i],d===st?t=st:t!==st&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===st?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},pt=class extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===st?void 0:t}},gt=class extends ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==st)}},vt=class extends ht{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){if((t=nt(this,t,e,0)??st)===et)return;const s=this._$AH,o=t===st&&s!==st||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==st&&(s===st||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ut=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){nt(this,t)}};const ft=D.litHtmlPolyfillSupport;ft?.(dt,ct),(D.litHtmlVersions??=[]).push("3.3.3");const bt=globalThis;let mt=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const o=s?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=s?.renderBefore??null;o._$litPart$=r=new ct(e.insertBefore(I(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return et}};mt._$litElement$=!0,mt.finalized=!0,bt.litElementHydrateSupport?.({LitElement:mt});const _t=bt.litElementPolyfillSupport;_t?.({LitElement:mt}),(bt.litElementVersions??=[]).push("4.2.2");const xt=/* @__PURE__ */Symbol.for(""),yt=t=>{if(t?.r===xt)return t?._$litStatic$},wt=t=>({_$litStatic$:t,r:xt}),kt=(t,...e)=>({_$litStatic$:e.reduce((e,s,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(s)+t[o+1],t[0]),r:xt}),zt=/* @__PURE__ */new Map,$t=(t=>(e,...s)=>{const o=s.length;let r,a;const i=[],d=[];let n,l=0,c=!1;for(;l<o;){for(n=e[l];l<o&&void 0!==(a=s[l],r=yt(a));)n+=r+e[++l],c=!0;l!==o&&d.push(a),i.push(n),l++}if(l===o&&i.push(e[o]),c){const t=i.join("$$lit$$");void 0===(e=zt.get(t))&&(i.raw=i,zt.set(t,e=i)),s=d}return t(e,...s)})(tt),St=l`
|
|
2
2
|
:host {
|
|
3
3
|
--_sds-alert-background-color: var(--sds-alert-background-color, var(--sds-color-alert-info-surface-tinted));
|
|
4
4
|
|
|
@@ -509,7 +509,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
509
509
|
<slot></slot>
|
|
510
510
|
${this.loading?st:tt`<slot name="after"></slot>`}
|
|
511
511
|
</button>
|
|
512
|
-
`}};he.styles=[te],he.formAssociated=!0,he.shadowRootOptions={...mt.shadowRootOptions,delegatesFocus:!0};let pe=he;ce([E({type:Boolean,reflect:!0})],pe.prototype,"disabled"),ce([E({type:Boolean,reflect:!0})],pe.prototype,"icon"),ce([E({type:Boolean,reflect:!0})],pe.prototype,"inverted"),ce([E({type:Boolean,reflect:!0})],pe.prototype,"loading"),ce([E({type:String,reflect:!0})],pe.prototype,"form"),ce([E({type:String,reflect:!0})],pe.prototype,"href"),ce([E({type:String,reflect:!0})],pe.prototype,"name"),ce([E({type:String,reflect:!0})],pe.prototype,"size"),ce([E({type:String,reflect:!0})],pe.prototype,"target"),ce([E({type:String,reflect:!0})],pe.prototype,"type"),ce([E({type:String,reflect:!0})],pe.prototype,"value"),ce([E({type:String,reflect:!0})],pe.prototype,"variant"),ce([E({type:String,reflect:!0})],pe.prototype,"label"),ce([O("#control")],pe.prototype,"control");var ge=Object.getOwnPropertyDescriptor;let
|
|
512
|
+
`}};he.styles=[te],he.formAssociated=!0,he.shadowRootOptions={...mt.shadowRootOptions,delegatesFocus:!0};let pe=he;ce([E({type:Boolean,reflect:!0})],pe.prototype,"disabled"),ce([E({type:Boolean,reflect:!0})],pe.prototype,"icon"),ce([E({type:Boolean,reflect:!0})],pe.prototype,"inverted"),ce([E({type:Boolean,reflect:!0})],pe.prototype,"loading"),ce([E({type:String,reflect:!0})],pe.prototype,"form"),ce([E({type:String,reflect:!0})],pe.prototype,"href"),ce([E({type:String,reflect:!0})],pe.prototype,"name"),ce([E({type:String,reflect:!0})],pe.prototype,"size"),ce([E({type:String,reflect:!0})],pe.prototype,"target"),ce([E({type:String,reflect:!0})],pe.prototype,"type"),ce([E({type:String,reflect:!0})],pe.prototype,"value"),ce([E({type:String,reflect:!0})],pe.prototype,"variant"),ce([E({type:String,reflect:!0})],pe.prototype,"label"),ce([O("#control")],pe.prototype,"control");var ge=Object.getOwnPropertyDescriptor;let ve=class extends pe{};ve=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ge(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-button")],ve);var ue=Object.getOwnPropertyDescriptor;let fe=class extends Pt{};function be(t,e,s,o){const r=t?.assignedNodes({flatten:!0}).filter(t=>{if(t.nodeType===Node.TEXT_NODE){return(t.textContent?.trim()??"").length>0}if(t.nodeType===Node.ELEMENT_NODE){const s=t,o=s.tagName.toUpperCase();if(!e.includes(o))return!0;return Array.from(s.childNodes).some(t=>t.nodeType===Node.ELEMENT_NODE)}return!1});r?.length>0&&console.warn(o,...r)}fe=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ue(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-alert")],fe);const me=l`
|
|
513
513
|
:host {
|
|
514
514
|
--_sds-card-background-color: var(--sds-card-background-color, var(--sds-color-surface-tinted, var(--sds-color-main-surface-tinted)));
|
|
515
515
|
--_sds-card-border-radius: var(--sds-card-border-radius, var(--sds-radius-md));
|
|
@@ -1161,6 +1161,106 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
1161
1161
|
/>
|
|
1162
1162
|
<span aria-hidden="true"><slot @slotchange="${this._handleSlotChange}"></slot></span>
|
|
1163
1163
|
</label>`}};Ve.styles=[De],Re([O("#control")],Ve.prototype,"control",2),Re([A()],Ve.prototype,"_slotLabel",2),Re([E({type:String,reflect:!0})],Ve.prototype,"variant",2),Re([E({type:String,reflect:!0})],Ve.prototype,"size",2),Re([E({type:Boolean,reflect:!0})],Ve.prototype,"checked",2),Re([E({type:String})],Ve.prototype,"value",2),Re([E({type:Boolean,attribute:"readonly",reflect:!0})],Ve.prototype,"readOnly",1),Ve=Re([P("sds-chip")],Ve);const Be=l`
|
|
1164
|
+
:host {
|
|
1165
|
+
--_sds-env-banner-background-color: var(--sds-env-banner-background-color, var(--sds-color-alert-info-surface-active));
|
|
1166
|
+
--_sds-env-banner-text-color: var(--sds-env-banner-text-color, var(--sds-color-alert-info-text-default));
|
|
1167
|
+
--_sds-env-banner-display: var(--sds-env-banner-display, grid);
|
|
1168
|
+
--_sds-env-banner-grid-template-columns: var(--sds-env-banner-grid-template-columns, auto 1fr);
|
|
1169
|
+
--_sds-env-banner-font-family: var(--sds-env-banner-font-family, var(--sds-typography-font-family));
|
|
1170
|
+
--_sds-env-banner-font-size: var(--sds-env-banner-font-size, var(--sds-typography-body-md-mobile-font-size));
|
|
1171
|
+
--_sds-env-banner-font-weight: var(--sds-env-banner-font-weight, var(--sds-typography-body-md-mobile-font-weight));
|
|
1172
|
+
--_sds-env-banner-line-height: var(--sds-env-banner-line-height, var(--sds-typography-body-md-mobile-line-height));
|
|
1173
|
+
--_sds-env-banner-text-transform: var(--sds-env-banner-text-transform, uppercase);
|
|
1174
|
+
--_sds-env-banner-padding: var(--sds-env-banner-padding, var(--sds-spacing-4xs) var(--sds-spacing-sm));
|
|
1175
|
+
|
|
1176
|
+
--_sds-env-banner-build-font-size: var(--sds-env-banner-build-font-size, var(--sds-typography-detail-xs-mobile-font-size));
|
|
1177
|
+
--_sds-env-banner-build-font-weight: var(--sds-env-banner-build-font-weight, var(--sds-typography-detail-xs-mobile-font-weight));
|
|
1178
|
+
--_sds-env-banner-build-line-height: var(--sds-env-banner-build-line-height, var(--sds-typography-detail-xs-mobile-line-height));
|
|
1179
|
+
--_sds-env-banner-build-grid-column: var(--sds-env-banner-build-grid-column, 2 / 3);
|
|
1180
|
+
|
|
1181
|
+
--_sds-env-banner-env-label: var(--sds-env-banner-env-label, 'ENV – ');
|
|
1182
|
+
--_sds-env-banner-env-grid-column: var(--sds-env-banner-env-grid-column, 1 / 2);
|
|
1183
|
+
|
|
1184
|
+
display: block;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
:host([hidden]) {
|
|
1188
|
+
display: none;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
:host([env='dev']) {
|
|
1192
|
+
--_sds-env-banner-background-color: var(--sds-env-banner-background-color, var(--sds-color-alert-success-surface-active));
|
|
1193
|
+
--_sds-env-banner-text-color: var(--sds-env-banner-text-color, var(--sds-color-alert-success-text-default));
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
:host([env='test']) {
|
|
1197
|
+
--_sds-env-banner-background-color: var(--sds-env-banner-background-color, var(--sds-color-alert-warning-surface-active));
|
|
1198
|
+
--_sds-env-banner-text-color: var(--sds-env-banner-text-color, var(--sds-color-alert-warning-text-default));
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
:host([env='opplaering']) {
|
|
1202
|
+
--_sds-env-banner-background-color: var(--sds-env-banner-background-color, var(--sds-color-alert-attention-surface-active));
|
|
1203
|
+
--_sds-env-banner-text-color: var(--sds-env-banner-text-color, var(--sds-color-alert-attention-text-default));
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
:host([env='stage']) {
|
|
1207
|
+
--_sds-env-banner-background-color: var(--sds-env-banner-background-color, var(--sds-color-alert-danger-surface-active));
|
|
1208
|
+
--_sds-env-banner-text-color: var(--sds-env-banner-text-color, var(--sds-color-alert-danger-text-default));
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
:host([env='prod']) {
|
|
1212
|
+
display: none;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
.sds-env-banner {
|
|
1216
|
+
display: var(--_sds-env-banner-display);
|
|
1217
|
+
grid-template-columns: var(--_sds-env-banner-grid-template-columns);
|
|
1218
|
+
gap: var(--sds-spacing-2xs);
|
|
1219
|
+
padding: var(--_sds-env-banner-padding);
|
|
1220
|
+
background-color: var(--_sds-env-banner-background-color);
|
|
1221
|
+
color: var(--_sds-env-banner-text-color);
|
|
1222
|
+
font-family: var(--_sds-env-banner-font-family);
|
|
1223
|
+
font-size: var(--_sds-env-banner-font-size);
|
|
1224
|
+
font-weight: var(--_sds-env-banner-font-weight);
|
|
1225
|
+
line-height: var(--_sds-env-banner-line-height);
|
|
1226
|
+
text-transform: var(--_sds-env-banner-text-transform);
|
|
1227
|
+
box-sizing: border-box;
|
|
1228
|
+
|
|
1229
|
+
@media (width >= 640px) {
|
|
1230
|
+
--_sds-env-banner-grid-template-columns: var(--sds-env-banner-grid-template-columns, 1fr auto 1fr);
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
.sds-env-banner__env {
|
|
1235
|
+
grid-column: var(--_sds-env-banner-env-grid-column);
|
|
1236
|
+
|
|
1237
|
+
@media (width >= 640px) {
|
|
1238
|
+
--_sds-env-banner-env-grid-column: var(--sds-env-banner-env-grid-column, 2 / 3);
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
&::before {
|
|
1242
|
+
content: var(--_sds-env-banner-env-label);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
.sds-env-banner__build {
|
|
1247
|
+
font-size: var(--_sds-env-banner-build-font-size);
|
|
1248
|
+
font-weight: var(--_sds-env-banner-build-font-weight);
|
|
1249
|
+
line-height: var(--_sds-env-banner-build-line-height);
|
|
1250
|
+
grid-column: var(--_sds-env-banner-build-grid-column);
|
|
1251
|
+
text-align: right;
|
|
1252
|
+
align-self: center;
|
|
1253
|
+
|
|
1254
|
+
@media (width >= 640px) {
|
|
1255
|
+
--_sds-env-banner-build-grid-column: var(--sds-env-banner-build-grid-column, 3 / 4);
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
`;var He=Object.defineProperty,je=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&He(e,s,a),a};const Fe={opplaering:"Opplæring",local:"Local",dev:"Dev",test:"Test",stage:"Stage",prod:"Prod"},Ie=class extends mt{render(){const t=this.env?Fe[this.env]:st;return tt`
|
|
1259
|
+
<div class="sds-env-banner">
|
|
1260
|
+
${t?tt`<span class="sds-env-banner__env">${t}</span>`:st}
|
|
1261
|
+
${this.build?tt`<span class="sds-env-banner__build">${this.build}</span>`:st}
|
|
1262
|
+
</div>
|
|
1263
|
+
`}};Ie.styles=[Be];let Ne=Ie;je([E({type:String,reflect:!0})],Ne.prototype,"env"),je([E({type:String,reflect:!0})],Ne.prototype,"build");var Ue=Object.getOwnPropertyDescriptor;let We=class extends Ne{};We=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ue(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-environment-banner")],We);const Ke=l`
|
|
1164
1264
|
:host {
|
|
1165
1265
|
--_sds-details-text-color: var(--sds-details-text-color, var(--sds-color-text-default, var(--sds-color-main-text-default)));
|
|
1166
1266
|
|
|
@@ -1296,7 +1396,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
1296
1396
|
display: inline;
|
|
1297
1397
|
margin: 0;
|
|
1298
1398
|
}
|
|
1299
|
-
`;var
|
|
1399
|
+
`;var Ge=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Xe=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ye(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ge(e,s,a),a};let Ze=class extends(Et(mt)){constructor(){super(...arguments),this.open=!1,this.standalone=!1,this.name=void 0,this._initialized=!1,this._handleToggle=t=>{const e=t.currentTarget;this.open!==e.open&&(this.open=e.open)}}updated(t){this._initialized?t.has("open")&&this.dispatchSheriffEvent("toggle",{open:!!this.open}):this._initialized=!0}render(){return tt`
|
|
1300
1400
|
<details class="sds-details" .name="${this.name??""}" ?data-standalone="${this.standalone}" ?open="${this.open}" @toggle="${this._handleToggle}">
|
|
1301
1401
|
<summary class="sds-details__summary">
|
|
1302
1402
|
<sds-icon name="chevron_up-material-filled" role="presentation"></sds-icon>
|
|
@@ -1308,7 +1408,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
1308
1408
|
<slot></slot>
|
|
1309
1409
|
</div>
|
|
1310
1410
|
</details>
|
|
1311
|
-
`}};
|
|
1411
|
+
`}};Ze.styles=[Ke],Xe([E({type:Boolean,reflect:!0})],Ze.prototype,"open",2),Xe([E({type:Boolean,reflect:!0})],Ze.prototype,"standalone",2),Xe([E({type:String,reflect:!0})],Ze.prototype,"name",2),Ze=Xe([P("sds-details")],Ze);const Qe=l`
|
|
1312
1412
|
:host {
|
|
1313
1413
|
display: block;
|
|
1314
1414
|
}
|
|
@@ -1335,7 +1435,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
1335
1435
|
:host([outlined]) div ::slotted(sds-details:last-child[open]) {
|
|
1336
1436
|
--sds-details-summary-border-radius: 0;
|
|
1337
1437
|
}
|
|
1338
|
-
`;var
|
|
1438
|
+
`;var Je=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,es=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ts(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Je(e,s,a),a};let ss=class extends mt{constructor(){super(...arguments),this.outlined=!1,this._toggleListeners=/* @__PURE__ */new Map}updated(t){t.has("name")&&this._syncChildren()}disconnectedCallback(){super.disconnectedCallback(),this._removeListeners()}_handleSlotChange(){this._syncChildren()}_syncChildren(){this._removeListeners();const t=this._detailsChildren;t.forEach(e=>{if(e.name=this.name,this.name){const s=s=>{const{open:o}=s.detail;o&&t.forEach(t=>{t!==e&&t.open&&(t.open=!1)})};e.addEventListener("toggle",s),this._toggleListeners.set(e,s)}})}_removeListeners(){this._toggleListeners.forEach((t,e)=>{e.removeEventListener("toggle",t)}),this._toggleListeners.clear()}render(){return tt`<div><slot @slotchange="${this._handleSlotChange}"></slot></div>`}};ss.styles=[Qe],es([E({type:Boolean,reflect:!0})],ss.prototype,"outlined",2),es([E({type:String,reflect:!0})],ss.prototype,"name",2),es([T({selector:"sds-details"})],ss.prototype,"_detailsChildren",2),ss=es([P("sds-details-group")],ss);const os=l`
|
|
1339
1439
|
:host {
|
|
1340
1440
|
--_sds-dialog-background-color: var(--sds-dialog-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
|
|
1341
1441
|
--_sds-dialog-backdrop-color: var(--sds-dialog-backdrop-color, rgba(0, 0, 0, 0.5));
|
|
@@ -1453,7 +1553,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
1453
1553
|
--_sds-dialog-animation-duration: 0ms;
|
|
1454
1554
|
}
|
|
1455
1555
|
}
|
|
1456
|
-
`;var
|
|
1556
|
+
`;var rs=Object.defineProperty,as=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&rs(e,s,a),a};let is=!1;const ds=class extends(Et(mt)){constructor(){super(...arguments),this.open=!1,this.modal=!1,this.closedby="closerequest",this.closeButtonLabel="Lukk dialogvindu",this._isHeaderSlotEmpty=!0,this._pointerDownInside=!1,this._handleClose=()=>{this.open=!1,this.dispatchSheriffEvent("close"),this.dispatchSheriffEvent("sds-close")},this._handleClick=t=>{const e=t.target;e?.closest('[data-command="close"],[command="close"]')&&this._closeDialog()},this._handlePointerDown=t=>{const e=this._dialog.getBoundingClientRect(),{clientX:s,clientY:o}=t;this._pointerDownInside=e.top<=o&&o<=e.bottom&&e.left<=s&&s<=e.right},this._handlePointerUp=t=>{const e=this._pointerDownInside;this._pointerDownInside=!1,"any"!==this.closedby||e||t.target===this._dialog&&requestAnimationFrame(()=>{this._dialog&&this._dialog.open&&this._closeDialog()})},this._handleCancel=t=>{"none"===this.closedby&&t.preventDefault()},this._handleHeaderSlotChange=t=>{const e=t.target;this._isHeaderSlotEmpty=0===e.assignedElements().length},this._handleAutoFocus=()=>{const t=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0});if(!t||0===t.length)return;const e=t.find(t=>null!=t.getAttribute("autofocus"));e instanceof HTMLElement&&document.activeElement!==e&&e.focus()}}addEventListener(t,e,s){"sds-close"!==t||is||(is=!0,console.warn("[Sheriff] The 'sds-close' event on sds-dialog is deprecated and will be removed in the next major release. Listen for the 'close' event instead.")),super.addEventListener(t,e,s)}firstUpdated(){this._setupEventListeners(),this.open&&this._openDialog()}updated(t){t.has("open")&&(this.open?this._openDialog():this._closeDialog())}_setupEventListeners(){this._dialog.addEventListener("close",this._handleClose),this._dialog.addEventListener("cancel",this._handleCancel),this._dialog.addEventListener("click",this._handleClick),this._dialog.addEventListener("pointerdown",this._handlePointerDown),this._dialog.addEventListener("pointerup",this._handlePointerUp),this._dialog.addEventListener("animationend",this._handleAutoFocus)}_openDialog(){this._dialog&&(this.modal?this._dialog.showModal():this._dialog.show())}_closeDialog(){this._dialog&&this._dialog.close()}show(){this.open=!0}showModal(){this.modal=!0,this.open=!0}close(){this.open=!1}requestClose(){this._dialog&&this._dialog.requestClose()}render(){return tt`
|
|
1457
1557
|
<dialog .closedBy="${this.closedby}" class=${this._isHeaderSlotEmpty?"sds-dialog__empty-header":""}>
|
|
1458
1558
|
<div class="sds-dialog__header">
|
|
1459
1559
|
<slot name="header" @slotchange=${this._handleHeaderSlotChange}></slot>
|
|
@@ -1466,7 +1566,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
1466
1566
|
<slot></slot>
|
|
1467
1567
|
<slot name="footer"></slot>
|
|
1468
1568
|
</dialog>
|
|
1469
|
-
`}};
|
|
1569
|
+
`}};ds.styles=[os];let ns=ds;as([E({type:Boolean,reflect:!0})],ns.prototype,"open"),as([E({type:Boolean,reflect:!0})],ns.prototype,"modal"),as([E({type:String,reflect:!0})],ns.prototype,"closedby"),as([E({type:String,attribute:"close-button-label"})],ns.prototype,"closeButtonLabel"),as([O("dialog")],ns.prototype,"_dialog"),as([A()],ns.prototype,"_isHeaderSlotEmpty");var ls=Object.getOwnPropertyDescriptor;let cs=class extends ns{};cs=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ls(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-dialog")],cs);const hs=l`
|
|
1470
1570
|
:host {
|
|
1471
1571
|
--_sds-heading-font-family: var(--sds-heading-font-family, var(--sds-typography-font-family-roboto));
|
|
1472
1572
|
--_sds-heading-text-color: var(--sds-heading-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
|
|
@@ -1625,7 +1725,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
1625
1725
|
--_sds-heading-line-height: var(--sds-heading-line-height, var(--sds-typography-heading-xs-desktop-line-height));
|
|
1626
1726
|
}
|
|
1627
1727
|
}
|
|
1628
|
-
`;var
|
|
1728
|
+
`;var ps=Object.defineProperty,gs=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ps(e,s,a),a};const vs=class extends mt{constructor(){super(...arguments),this.level="h1"}render(){const t={"sds-heading":!0,"sds-heading--xl":"xl"===this.size,"sds-heading--lg":"l"===this.size||"lg"===this.size,"sds-heading--md":"m"===this.size||"md"===this.size,"sds-heading--sm":"s"===this.size||"sm"===this.size,"sds-heading--xs":"xs"===this.size};switch(this.level?.toLowerCase()){case"h1":default:return tt`<h1 class=${Jt(t)}><slot></slot></h1>`;case"h2":return tt`<h2 class=${Jt(t)}><slot></slot></h2>`;case"h3":return tt`<h3 class=${Jt(t)}><slot></slot></h3>`;case"h4":return tt`<h4 class=${Jt(t)}><slot></slot></h4>`;case"h5":return tt`<h5 class=${Jt(t)}><slot></slot></h5>`;case"h6":return tt`<h6 class=${Jt(t)}><slot></slot></h6>`}}};vs.styles=[hs];let us=vs;gs([E({type:String,reflect:!0})],us.prototype,"level"),gs([E({type:String,reflect:!0})],us.prototype,"size");var fs=Object.getOwnPropertyDescriptor;let bs=class extends us{};bs=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?fs(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-heading")],bs);const ms=l`
|
|
1629
1729
|
:host {
|
|
1630
1730
|
--_sds-loader-main-color: var(--sds-loader-main-color, var(--sds-color-action-contrast-default, var(--sds-color-main-action-contrast-default)));
|
|
1631
1731
|
--_sds-loader-secondary-color: var(--sds-loader-secondary-color, var(--sds-color-border-subtle, var(--sds-color-main-border-subtle)));
|
|
@@ -1701,10 +1801,10 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
1701
1801
|
stroke-dashoffset: -120px;
|
|
1702
1802
|
}
|
|
1703
1803
|
}
|
|
1704
|
-
`;var
|
|
1804
|
+
`;var _s=Object.defineProperty,xs=Object.getOwnPropertyDescriptor,ys=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?xs(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&_s(e,s,a),a};let ws=class extends mt{constructor(){super(...arguments),this.size="md",this.contrast=!1}render(){return tt`<svg aria-label="Laster" class="sds-loader" role="img" viewBox="0 0 50 50">
|
|
1705
1805
|
<circle class="sds-loader__background" cx="25" cy="25" r="20" fill="none" stroke-width="7"></circle>
|
|
1706
1806
|
<circle class="sds-loader__circle" cx="25" cy="25" r="20" fill="none" stroke-width="7"></circle>
|
|
1707
|
-
</svg>`}};
|
|
1807
|
+
</svg>`}};ws.styles=[ms],ys([E({type:String,reflect:!0})],ws.prototype,"size",2),ys([E({type:Boolean,reflect:!0})],ws.prototype,"contrast",2),ws=ys([P("sds-loader")],ws);const ks=l`
|
|
1708
1808
|
:host {
|
|
1709
1809
|
--_sds-notification-background-color: var(--sds-notification-background-color, var(--sds-color-alert-info-surface-tinted));
|
|
1710
1810
|
|
|
@@ -1841,9 +1941,9 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
1841
1941
|
margin: 0 !important;
|
|
1842
1942
|
max-width: var(--_sds-notification-max-line-width) !important;
|
|
1843
1943
|
}
|
|
1844
|
-
`;var
|
|
1944
|
+
`;var zs=Object.defineProperty,$s=Object.getOwnPropertyDescriptor,Ss=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?$s(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&zs(e,s,a),a};const Cs={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",warning:"warning-material-filled",danger:"dangerous-material-filled",critical:"dangerous-material-filled"};let Es=!1,As=class extends(Et(mt)){constructor(){super(),this.variant="info",this._remove=()=>{this.dispatchSheriffEvent("sds-remove")},Es||(Es=!0,console.warn("[Sheriff] The Notification component is deprecated and will be removed in the next major release. Please migrate to the Alert component."))}updated(t){t.has("variant")&&"critical"===this.variant?this.variant="danger":t.has("variant")&&"warning"===this.variant&&(this.variant="attention")}render(){const t="danger"===this.variant||"critical"===this.variant?"danger":"accent";return tt`<div class="${Jt({"sds-notification":!0})}">
|
|
1845
1945
|
<div class="sds-notification__type">
|
|
1846
|
-
<sds-icon class="sds-notification__icon" name="${
|
|
1946
|
+
<sds-icon class="sds-notification__icon" name="${Cs[this.variant]}" size="md"></sds-icon>
|
|
1847
1947
|
</div>
|
|
1848
1948
|
<div class="sds-notification__content">
|
|
1849
1949
|
<slot name="title"></slot>
|
|
@@ -1854,12 +1954,12 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
1854
1954
|
<sds-icon name="close-material-outlined" size="sm"></sds-icon>
|
|
1855
1955
|
</sds-button>
|
|
1856
1956
|
</div>`:st}
|
|
1857
|
-
</div>`}};
|
|
1957
|
+
</div>`}};As.styles=[ks],Ss([E({type:String,reflect:!0})],As.prototype,"variant",2),Ss([E({type:String,attribute:"removable-label",reflect:!0})],As.prototype,"removableLabel",2),As=Ss([P("sds-notification")],As);const Ls=l`
|
|
1858
1958
|
:host {
|
|
1859
1959
|
display: flex;
|
|
1860
1960
|
flex-direction: column;
|
|
1861
1961
|
}
|
|
1862
|
-
`;var
|
|
1962
|
+
`;var Os=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Ps=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ts(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Os(e,s,a),a};let Ds=class extends mt{constructor(){super(),this.internals=this.attachInternals(),this.internals.role="list"}render(){return tt`<slot></slot>`}};Ds.styles=[Ls],Ps([E({type:String,reflect:!0,attribute:"heading-level"})],Ds.prototype,"headingLevel",2),Ds=Ps([P("sds-process")],Ds);const Ms=l`
|
|
1863
1963
|
:host {
|
|
1864
1964
|
--_sds-process-step-border-width: var(--sds-process-step-border-width, 2px);
|
|
1865
1965
|
--_sds-process-step-border-color: var(--sds-process-step-border-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
|
|
@@ -2003,7 +2103,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2003
2103
|
:host(:last-of-type) {
|
|
2004
2104
|
--_sds-process-step-line-display: none;
|
|
2005
2105
|
}
|
|
2006
|
-
`;var
|
|
2106
|
+
`;var qs=Object.defineProperty,Rs=Object.getOwnPropertyDescriptor,Vs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Rs(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&qs(e,s,a),a};let Bs=class extends mt{constructor(){super(),this._headingLevel="h2",this._handleMarkerSlotChange=()=>{if(!this.markerSlot||!this.step)return;const t=0===this.markerSlot.assignedNodes({flatten:!0}).length;this.step.classList.toggle("sds-process-step--sub-step",t)},this.internals=this.attachInternals(),this.internals.role="listitem"}connectedCallback(){super.connectedCallback();const t=this.closest("sds-process");t&&t.headingLevel&&(this._headingLevel=t.headingLevel)}firstUpdated(){this._handleMarkerSlotChange()}get safeHeadingLevel(){return["h2","h3","h4","h5","h6"].includes(this._headingLevel)?this._headingLevel:"h2"}render(){return $t`
|
|
2007
2107
|
<div class="sds-process-step">
|
|
2008
2108
|
<div class="sds-process-step__item">
|
|
2009
2109
|
<div class="sds-process-step__marker" aria-hidden="true">
|
|
@@ -2017,7 +2117,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2017
2117
|
</div>
|
|
2018
2118
|
<span class="sds-process-step__line"></span>
|
|
2019
2119
|
</div>
|
|
2020
|
-
`}};
|
|
2120
|
+
`}};Bs.styles=[Ms],Vs([E({type:String,reflect:!0})],Bs.prototype,"heading",2),Vs([E({type:String,reflect:!0})],Bs.prototype,"timestamp",2),Vs([O('slot[name="marker"]')],Bs.prototype,"markerSlot",2),Vs([O(".sds-process-step")],Bs.prototype,"step",2),Bs=Vs([P("sds-process-step")],Bs);const Hs=l`
|
|
2021
2121
|
${n(':host{--_ds-floating:top;--_ds-floating-arrow-size:0;--_ds-floating-arrow-visibility:inherit;animation:ds-fade-in .15s ease-in-out forwards;inset:0 auto auto 0;margin:0;overflow:visible;position:absolute}:host:before{background:inherit;border:inherit;border-left-color:transparent;border-top-color:transparent;box-sizing:border-box;content:"";height:var(--_ds-floating-arrow-size);left:var(--_ds-floating-arrow-x,50%);position:absolute;rotate:45deg;top:var(--_ds-floating-arrow-y,100%);translate:-50% -50%;visibility:var(--_ds-floating-arrow-visibility);width:var(--_ds-floating-arrow-size)}:host[data-overscroll=contain]{--_ds-floating-overscroll:contain;overscroll-behavior:contain;overflow:auto}:host{&[data-floating|=top]:before{top:100%;rotate:45deg}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{top:0;rotate:-135deg}&[data-floating|=left]:before{left:100%;rotate:-45deg}--_ds-floating:var(--dsc-popover-placement);--_ds-floating-arrow-size:var(--dsc-popover-arrow-size);--dsc-popover-background:var(--ds-color-surface-default);--dsc-popover-border-width:var(--ds-border-width-default);--dsc-popover-border-style:solid;--dsc-popover-border-color:var(--ds-color-border-default);--dsc-popover-color:var(--ds-color-text-default);--dsc-popover-arrow-size:var(--ds-size-3);--dsc-popover-border-radius:var(--ds-border-radius-md);--dsc-popover-max-width:300px;--dsc-popover-padding:var(--ds-size-3) var(--ds-size-4);--dsc-popover-box-shadow:var(--ds-shadow-md);--dsc-popover-placement:top;background:var(--dsc-popover-background);border-radius:var(--dsc-popover-border-radius);border-width:var(--dsc-popover-border-width);border-style:var(--dsc-popover-border-style);border-color:var(--dsc-popover-border-color);box-shadow:var(--dsc-popover-box-shadow);box-sizing:border-box;color:var(--dsc-popover-color);max-width:var(--dsc-popover-max-width);padding:var(--dsc-popover-padding)}:host[data-variant=default]{--dsc-popover-background:var(--ds-color-surface-default)}:host[data-variant=tinted]{--dsc-popover-background:var(--ds-color-surface-tinted)}[data-popover=inline]{all:unset;cursor:pointer;text-decoration:underline dotted;text-underline-offset:.27em;font-size:inherit}[data-popover=inline]:not([hidden]){display:inline}[data-popover=inline]:focus-visible{box-shadow:var(--_ds--focus,var(--dsc-focus-boxShadow));outline:var(--_ds--focus,var(--dsc-focus-outline));outline-offset:var(--_ds--focus,var(--ds-border-width-focus))}[data-popover=inline]:focus-visible *{--_ds--focus: }')}
|
|
2022
2122
|
|
|
2023
2123
|
:host {
|
|
@@ -2065,7 +2165,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2065
2165
|
animation: none;
|
|
2066
2166
|
}
|
|
2067
2167
|
}
|
|
2068
|
-
`,Ps={passive:!0,capture:!0},Ds=()=>typeof window<"u"&&typeof document<"u",Ms=(t,e,s)=>void 0===s?t.getAttribute(e)??null:(null===s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s),null),qs=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),Rs=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.addEventListener(r,...o);return()=>Vs(t,...e)},Vs=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.removeEventListener(r,...o)},Bs=(t,e)=>{Ds()&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=/* @__PURE__ */new Map),window._dsHotReloadCleanup?.get(t)?.map(t=>t()),window._dsHotReloadCleanup?.set(t,e()))};let Hs;const js=()=>{"complete"===document.readyState&&(Hs||(Hs=((t,e)=>{let s=document.createElement("div");if(e)for(let[o,r]of Object.entries(e))Ms(s,o,r);return s})(0,{"aria-live":"assertive"}),Hs.style.overflow="hidden",Hs.style.position="fixed",Hs.style.whiteSpace="nowrap",Hs.style.width="1px"),Hs.isConnected||document.body.appendChild(Hs))};Bs("announce",()=>[Rs(document,"focus mouseover",js,Ps)]);var Fs=class extends Event{constructor(t,{oldState:e="",newState:o="",...r}={}){super(t,r),s(this,"oldState"),s(this,"newState"),this.oldState=String(e||""),this.newState=String(o||"")}},Is=/* @__PURE__ */new WeakMap;function Ns(t,e,s){Is.set(t,setTimeout(()=>{Is.has(t)&&t.dispatchEvent(new Fs("toggle",{cancelable:!1,oldState:e,newState:s}))},0))}var Us=globalThis.ShadowRoot||function(){},Ws=globalThis.HTMLDialogElement||function(){},Ks=/* @__PURE__ */new WeakMap,Gs=/* @__PURE__ */new WeakMap,Ys=/* @__PURE__ */new WeakMap,Xs=/* @__PURE__ */new WeakMap;function Zs(t){return Xs.get(t)||"hidden"}var Qs=/* @__PURE__ */new WeakMap;function Js(t){return[...t].pop()}function to(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==Zs(t)||!e&&"hidden"!==Zs(t)||t instanceof Ws&&t.hasAttribute("open")||document.fullscreenElement===t)}function eo(t){if(!t)return 0;let e=Gs.get(document)||/* @__PURE__ */new Set,s=Ys.get(document)||/* @__PURE__ */new Set;return s.has(t)?[...s].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function so(t){let e,s=Ys.get(t)||/* @__PURE__ */new Set,o=Gs.get(t)||/* @__PURE__ */new Set,r=s.size>0?s:o.size>0?o:null;return r?(e=Js(r),e.isConnected?e:(r.delete(e),so(t))):null}function oo(t){for(let e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function ro(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?ro(t.parentNode):t}function ao(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===Xs.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||ro(t))instanceof Us&&(t=t.host),t instanceof Document)return}}function io(t,e){let s=/* @__PURE__ */new Map,o=0;for(let a of e||[])s.set(a,o),o+=1;s.set(t,o),o+=1;let r=null;return function(e){if(!e)return;let o=!1,a=null,i=null;for(;!o;){if(a=ao(e)||null,null===a||!s.has(a))return;("hint"===t.popover||"auto"===a.popover)&&(o=!0),o||(e=a.parentElement)}i=s.get(a),(null===r||s.get(r)<i)&&(r=a)}(t.parentElement||ro(t)),r}function no(t){return!(t.hidden||t instanceof Us||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href)&&"number"==typeof t.tabIndex&&-1!==t.tabIndex}var lo=/* @__PURE__ */new WeakMap;function co(t){if(!to(t,!1))return;let e=t.ownerDocument;if(!t.dispatchEvent(new Fs("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!to(t,!1))return;let s=!1,o=t.popover,r=null,a=io(t,Gs.get(e)||/* @__PURE__ */new Set),i=io(t,Ys.get(e)||/* @__PURE__ */new Set);if("auto"===o&&(po(Ys.get(e)||/* @__PURE__ */new Set,s,!0),uo(a||e,s,!0),r="auto"),"hint"===o&&(i?(uo(i,s,!0),r="hint"):(po(Ys.get(e)||/* @__PURE__ */new Set,s,!0),a?(uo(a,s,!0),r="auto"):r="hint")),"auto"===o||"hint"===o){if(o!==t.popover||!to(t,!1))return;so(e)||(s=!0),"auto"===r?(Gs.has(e)||Gs.set(e,/* @__PURE__ */new Set),Gs.get(e).add(t)):"hint"===r&&(Ys.has(e)||Ys.set(e,/* @__PURE__ */new Set),Ys.get(e).add(t))}lo.delete(t);let d=e.activeElement;t.classList.add(":popover-open"),Xs.set(t,"showing"),Ks.has(e)||Ks.set(e,/* @__PURE__ */new Set),Ks.get(e).add(t),mo(Qs.get(t),!0),function(t){var e;null==(e=function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let s=e.querySelector("[autofocus]");if(s)return s;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(s=e.querySelector("[autofocus]"),s)return s}}}let o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),r=o.currentNode;for(;r;){if(no(r))return r;r=o.nextNode()}}(t))||e.focus()}(t),s&&d&&"auto"===t.popover&&lo.set(t,d),Ns(t,"closed","open")}function ho(t,e=!1,s=!1){var o,r;if(!to(t,!0))return;let a=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(uo(t,e,s),!to(t,!0)))return;let i=Gs.get(a)||/* @__PURE__ */new Set,d=i.has(t)&&Js(i)===t;if(mo(Qs.get(t),!1),Qs.delete(t),s&&(t.dispatchEvent(new Fs("beforetoggle",{oldState:"open",newState:"closed"})),d&&Js(i)!==t&&uo(t,e,s),!to(t,!0)))return;null==(o=Ks.get(a))||o.delete(t),i.delete(t),null==(r=Ys.get(a))||r.delete(t),t.classList.remove(":popover-open"),Xs.set(t,"hidden"),s&&Ns(t,"open","closed");let n=lo.get(t);n&&(lo.delete(t),e&&n.focus())}function po(t,e=!1,s=!1){let o=oo(t);for(;o;)ho(o,e,s),o=oo(t)}function go(t,e,s,o){let r=!1,a=!1;for(;r||!a;){a=!0;let i=null,d=!1;for(let s of e)if(s===t)d=!0;else if(d){i=s;break}if(!i)return;for(;"showing"===Zs(i)&&e.size;)ho(Js(e),s,o);e.has(t)&&Js(e)!==t&&(r=!0),r&&(o=!1)}}function uo(t,e,s){let o=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,s=!1){let o=so(t);for(;o;)ho(o,e,s),o=so(t)}(o,e,s);Ys.get(o)?.has(t)?go(t,Ys.get(o),e,s):(po(Ys.get(o)||/* @__PURE__ */new Set,e,s),Gs.get(o)?.has(t)&&go(t,Gs.get(o),e,s))}var vo=/* @__PURE__ */new WeakMap;function fo(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let s=e.ownerDocument;if(!so(s))return;let o=function(t){let e=ao(t),s=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||ro(t))instanceof Us&&(t=t.host),t instanceof Document)return}}(t);return eo(e)>eo(s)?e:s}(e);if(o&&"pointerdown"===t.type)vo.set(s,o);else if("pointerup"===t.type){let t=vo.get(s)===o;vo.delete(s),t&&uo(o||s,!1,!0)}}var bo=/* @__PURE__ */new WeakMap;function mo(t,e=!1){if(!t)return;bo.has(t)||bo.set(t,t.getAttribute("aria-expanded"));let s=t.popoverTargetElement;if(s instanceof HTMLElement&&"auto"===s.popover)t.setAttribute("aria-expanded",String(e));else{let e=bo.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var _o=globalThis.ShadowRoot||function(){};function xo(t,e,s){let o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,s(t))}})}var yo=/(^|[^\\]):popover-open\b/g;var wo=null;function ko(t){let e=function(){let t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===wo)try{(wo=new CSSStyleSheet).replaceSync(e)}catch{wo=!1}if(!1===wo){let s=document.createElement("style");s.textContent=e,t instanceof Document?t.head.prepend(s):t.prepend(s)}else t.adoptedStyleSheets=[wo,...t.adoptedStyleSheets]}const zo=Math.min,$o=Math.max,So=Math.round,Co=Math.floor,Eo=t=>({x:t,y:t}),Ao={left:"right",right:"left",bottom:"top",top:"bottom"};function Lo(t,e,s){return $o(t,zo(e,s))}function Oo(t,e){return"function"==typeof t?t(e):t}function To(t){return t.split("-")[0]}function Po(t){return t.split("-")[1]}function Do(t){return"x"===t?"y":"x"}function Mo(t){return"y"===t?"height":"width"}function qo(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function Ro(t){return Do(qo(t))}function Vo(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Bo=["left","right"],Ho=["right","left"],jo=["top","bottom"],Fo=["bottom","top"];function Io(t){const e=To(t);return Ao[e]+t.slice(e.length)}function No(t){const{x:e,y:s,width:o,height:r}=t;return{width:o,height:r,top:s,left:e,right:e+o,bottom:s+r,x:e,y:s}}function Uo(t,e,s){let{reference:o,floating:r}=t;const a=qo(e),i=Ro(e),d=Mo(i),n=To(e),l="y"===a,c=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,p=o[d]/2-r[d]/2;let g;switch(n){case"top":g={x:c,y:o.y-r.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(Po(e)){case"start":g[i]-=p*(s&&l?-1:1);break;case"end":g[i]+=p*(s&&l?-1:1)}return g}async function Wo(t,e){var s;void 0===e&&(e={});const{x:o,y:r,platform:a,rects:i,elements:d,strategy:n}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Oo(e,t),u="number"!=typeof(y=g)?(w=y,{top:0,right:0,bottom:0,left:0,...w}):{top:y,right:y,bottom:y,left:y},v=d[p?"floating"===h?"reference":"floating":h],f=No(await a.getClippingRect({element:null==(s=await(null==a.isElement?void 0:a.isElement(v)))||s?v:v.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(d.floating)),boundary:l,rootBoundary:c,strategy:n})),b="floating"===h?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,m=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d.floating)),_=await(null==a.isElement?void 0:a.isElement(m))&&await(null==a.getScale?void 0:a.getScale(m))||{x:1,y:1},x=No(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:b,offsetParent:m,strategy:n}):b);var y,w;return{top:(f.top-x.top+u.top)/_.y,bottom:(x.bottom-f.bottom+u.bottom)/_.y,left:(f.left-x.left+u.left)/_.x,right:(x.right-f.right+u.right)/_.x}}const Ko=/* @__PURE__ */new Set(["left","top"]);function Go(){return"undefined"!=typeof window}function Yo(t){return Qo(t)?(t.nodeName||"").toLowerCase():"#document"}function Xo(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Zo(t){var e;return null==(e=(Qo(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Qo(t){return!!Go()&&(t instanceof Node||t instanceof Xo(t).Node)}function Jo(t){return!!Go()&&(t instanceof Element||t instanceof Xo(t).Element)}function tr(t){return!!Go()&&(t instanceof HTMLElement||t instanceof Xo(t).HTMLElement)}function er(t){return!(!Go()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof Xo(t).ShadowRoot)}function sr(t){const{overflow:e,overflowX:s,overflowY:o,display:r}=pr(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+s)&&"inline"!==r&&"contents"!==r}function or(t){return/^(table|td|th)$/.test(Yo(t))}function rr(t){try{if(t.matches(":popover-open"))return!0}catch(e){}try{return t.matches(":modal")}catch(e){return!1}}const ar=/transform|translate|scale|rotate|perspective|filter/,ir=/paint|layout|strict|content/,dr=t=>!!t&&"none"!==t;let nr;function lr(t){const e=Jo(t)?pr(t):t;return dr(e.transform)||dr(e.translate)||dr(e.scale)||dr(e.rotate)||dr(e.perspective)||!cr()&&(dr(e.backdropFilter)||dr(e.filter))||ar.test(e.willChange||"")||ir.test(e.contain||"")}function cr(){return null==nr&&(nr="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nr}function hr(t){return/^(html|body|#document)$/.test(Yo(t))}function pr(t){return Xo(t).getComputedStyle(t)}function gr(t){return Jo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ur(t){if("html"===Yo(t))return t;const e=t.assignedSlot||t.parentNode||er(t)&&t.host||Zo(t);return er(e)?e.host:e}function vr(t){const e=ur(t);return hr(e)?t.ownerDocument?t.ownerDocument.body:t.body:tr(e)&&sr(e)?e:vr(e)}function fr(t,e,s){var o;void 0===e&&(e=[]),void 0===s&&(s=!0);const r=vr(t),a=r===(null==(o=t.ownerDocument)?void 0:o.body),i=Xo(r);if(a){const t=br(i);return e.concat(i,i.visualViewport||[],sr(r)?r:[],t&&s?fr(t):[])}return e.concat(r,fr(r,[],s))}function br(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function mr(t){const e=pr(t);let s=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=tr(t),a=r?t.offsetWidth:s,i=r?t.offsetHeight:o,d=So(s)!==a||So(o)!==i;return d&&(s=a,o=i),{width:s,height:o,$:d}}function _r(t){return Jo(t)?t:t.contextElement}function xr(t){const e=_r(t);if(!tr(e))return Eo(1);const s=e.getBoundingClientRect(),{width:o,height:r,$:a}=mr(e);let i=(a?So(s.width):s.width)/o,d=(a?So(s.height):s.height)/r;return i&&Number.isFinite(i)||(i=1),d&&Number.isFinite(d)||(d=1),{x:i,y:d}}const yr=Eo(0);function wr(t){const e=Xo(t);return cr()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:yr}function kr(t,e,s,o){void 0===e&&(e=!1),void 0===s&&(s=!1);const r=t.getBoundingClientRect(),a=_r(t);let i=Eo(1);e&&(o?Jo(o)&&(i=xr(o)):i=xr(t));const d=(n=a,void 0===(l=s)&&(l=!1),!(c=o)||l&&c!==Xo(n)||!l?Eo(0):wr(a));var n,l,c;let h=(r.left+d.x)/i.x,p=(r.top+d.y)/i.y,g=r.width/i.x,u=r.height/i.y;if(a){const t=Xo(a),e=o&&Jo(o)?Xo(o):o;let s=t,r=br(s);for(;r&&o&&e!==s;){const t=xr(r),e=r.getBoundingClientRect(),o=pr(r),a=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;h*=t.x,p*=t.y,g*=t.x,u*=t.y,h+=a,p+=i,s=Xo(r),r=br(s)}}return No({width:g,height:u,x:h,y:p})}function zr(t,e){const s=gr(t).scrollLeft;return e?e.left+s:kr(Zo(t)).left+s}function $r(t,e){const s=t.getBoundingClientRect();return{x:s.left+e.scrollLeft-zr(t,s),y:s.top+e.scrollTop}}function Sr(t,e,s){let o;if("viewport"===e)o=function(t,e){const s=Xo(t),o=Zo(t),r=s.visualViewport;let a=o.clientWidth,i=o.clientHeight,d=0,n=0;if(r){a=r.width,i=r.height;const t=cr();(!t||t&&"fixed"===e)&&(d=r.offsetLeft,n=r.offsetTop)}const l=zr(o);if(l<=0){const t=o.ownerDocument,e=t.body,s=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(s.marginLeft)+parseFloat(s.marginRight)||0,i=Math.abs(o.clientWidth-e.clientWidth-r);i<=25&&(a-=i)}else l<=25&&(a+=l);return{width:a,height:i,x:d,y:n}}(t,s);else if("document"===e)o=function(t){const e=Zo(t),s=gr(t),o=t.ownerDocument.body,r=$o(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=$o(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-s.scrollLeft+zr(t);const d=-s.scrollTop;return"rtl"===pr(o).direction&&(i+=$o(e.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:d}}(Zo(t));else if(Jo(e))o=function(t,e){const s=kr(t,!0,"fixed"===e),o=s.top+t.clientTop,r=s.left+t.clientLeft,a=tr(t)?xr(t):Eo(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:r*a.x,y:o*a.y}}(e,s);else{const s=wr(t);o={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return No(o)}function Cr(t,e){const s=ur(t);return!(s===e||!Jo(s)||hr(s))&&("fixed"===pr(s).position||Cr(s,e))}function Er(t,e,s){const o=tr(e),r=Zo(e),a="fixed"===s,i=kr(t,!0,a,e);let d={scrollLeft:0,scrollTop:0};const n=Eo(0);function l(){n.x=zr(r)}if(o||!o&&!a)if(("body"!==Yo(e)||sr(r))&&(d=gr(e)),o){const t=kr(e,!0,a,e);n.x=t.x+e.clientLeft,n.y=t.y+e.clientTop}else r&&l();a&&!o&&r&&l();const c=!r||o||a?Eo(0):$r(r,d);return{x:i.left+d.scrollLeft-n.x-c.x,y:i.top+d.scrollTop-n.y-c.y,width:i.width,height:i.height}}function Ar(t){return"static"===pr(t).position}function Lr(t,e){if(!tr(t)||"fixed"===pr(t).position)return null;if(e)return e(t);let s=t.offsetParent;return Zo(t)===s&&(s=s.ownerDocument.body),s}function Or(t,e){const s=Xo(t);if(rr(t))return s;if(!tr(t)){let e=ur(t);for(;e&&!hr(e);){if(Jo(e)&&!Ar(e))return e;e=ur(e)}return s}let o=Lr(t,e);for(;o&&or(o)&&Ar(o);)o=Lr(o,e);return o&&hr(o)&&Ar(o)&&!lr(o)?s:o||function(t){let e=ur(t);for(;tr(e)&&!hr(e);){if(lr(e))return e;if(rr(e))return null;e=ur(e)}return null}(t)||s}const Tr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:s,offsetParent:o,strategy:r}=t;const a="fixed"===r,i=Zo(o),d=!!e&&rr(e.floating);if(o===i||d&&a)return s;let n={scrollLeft:0,scrollTop:0},l=Eo(1);const c=Eo(0),h=tr(o);if((h||!h&&!a)&&(("body"!==Yo(o)||sr(i))&&(n=gr(o)),h)){const t=kr(o);l=xr(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}const p=!i||h||a?Eo(0):$r(i,n);return{width:s.width*l.x,height:s.height*l.y,x:s.x*l.x-n.scrollLeft*l.x+c.x+p.x,y:s.y*l.y-n.scrollTop*l.y+c.y+p.y}},getDocumentElement:Zo,getClippingRect:function(t){let{element:e,boundary:s,rootBoundary:o,strategy:r}=t;const a=[..."clippingAncestors"===s?rr(e)?[]:function(t,e){const s=e.get(t);if(s)return s;let o=fr(t,[],!1).filter(t=>Jo(t)&&"body"!==Yo(t)),r=null;const a="fixed"===pr(t).position;let i=a?ur(t):t;for(;Jo(i)&&!hr(i);){const e=pr(i),s=lr(i);s||"fixed"!==e.position||(r=null),(a?!s&&!r:!s&&"static"===e.position&&r&&("absolute"===r.position||"fixed"===r.position)||sr(i)&&!s&&Cr(t,i))?o=o.filter(t=>t!==i):r=e,i=ur(i)}return e.set(t,o),o}(e,this._c):[].concat(s),o],i=Sr(e,a[0],r);let d=i.top,n=i.right,l=i.bottom,c=i.left;for(let h=1;h<a.length;h++){const t=Sr(e,a[h],r);d=$o(t.top,d),n=zo(t.right,n),l=zo(t.bottom,l),c=$o(t.left,c)}return{width:n-c,height:l-d,x:c,y:d}},getOffsetParent:Or,getElementRects:async function(t){const e=this.getOffsetParent||Or,s=this.getDimensions,o=await s(t.floating);return{reference:Er(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:s}=mr(t);return{width:e,height:s}},getScale:xr,isElement:Jo,isRTL:function(t){return"rtl"===pr(t).direction}};function Pr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Dr=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var s,o;const{x:r,y:a,placement:i,middlewareData:d}=e,n=await async function(t,e){const{placement:s,platform:o,elements:r}=t,a=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=To(s),d=Po(s),n="y"===qo(s),l=Ko.has(i)?-1:1,c=a&&n?-1:1,h=Oo(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:u}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return d&&"number"==typeof u&&(g="end"===d?-1*u:u),n?{x:g*c,y:p*l}:{x:p*l,y:g*c}}(e,t);return i===(null==(s=d.offset)?void 0:s.placement)&&null!=(o=d.arrow)&&o.alignmentOffset?{}:{x:r+n.x,y:a+n.y,data:{...n,placement:i}}}}},Mr=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:s,y:o,placement:r,platform:a}=e,{mainAxis:i=!0,crossAxis:d=!1,limiter:n={fn:t=>{let{x:e,y:s}=t;return{x:e,y:s}}},...l}=Oo(t,e),c={x:s,y:o},h=await a.detectOverflow(e,l),p=qo(To(r)),g=Do(p);let u=c[g],v=c[p];if(i){const t="y"===g?"bottom":"right";u=Lo(u+h["y"===g?"top":"left"],u,u-h[t])}if(d){const t="y"===p?"bottom":"right";v=Lo(v+h["y"===p?"top":"left"],v,v-h[t])}const f=n.fn({...e,[g]:u,[p]:v});return{...f,data:{x:f.x-s,y:f.y-o,enabled:{[g]:i,[p]:d}}}}}},qr=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var s,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:d,platform:n,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:v=!0,...f}=Oo(t,e);if(null!=(s=a.arrow)&&s.alignmentOffset)return{};const b=To(r),m=qo(d),_=To(d)===d,x=await(null==n.isRTL?void 0:n.isRTL(l.floating)),y=p||(_||!v?[Io(d)]:function(t){const e=Io(t);return[Vo(t),e,Vo(e)]}(d)),w="none"!==u;!p&&w&&y.push(...function(t,e,s,o){const r=Po(t);let a=function(t,e,s){switch(t){case"top":case"bottom":return s?e?Ho:Bo:e?Bo:Ho;case"left":case"right":return e?jo:Fo;default:return[]}}(To(t),"start"===s,o);return r&&(a=a.map(t=>t+"-"+r),e&&(a=a.concat(a.map(Vo)))),a}(d,v,u,x));const k=[d,...y],z=await n.detectOverflow(e,f),$=[];let S=(null==(o=a.flip)?void 0:o.overflows)||[];if(c&&$.push(z[b]),h){const t=function(t,e,s){void 0===s&&(s=!1);const o=Po(t),r=Ro(t),a=Mo(r);let i="x"===r?o===(s?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=Io(i)),[i,Io(i)]}(r,i,x);$.push(z[t[0]],z[t[1]])}if(S=[...S,{placement:r,overflows:$}],!$.every(t=>t<=0)){var C,E;const t=((null==(C=a.flip)?void 0:C.index)||0)+1,e=k[t];if(e&&("alignment"!==h||m===qo(e)||S.every(t=>qo(t.placement)!==m||t.overflows[0]>0)))return{data:{index:t,overflows:S},reset:{placement:e}};let s=null==(E=S.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:E.placement;if(!s)switch(g){case"bestFit":{var A;const t=null==(A=S.filter(t=>{if(w){const e=qo(t.placement);return e===m||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:A[0];t&&(s=t);break}case"initialPlacement":s=d}if(r!==s)return{reset:{placement:s}}}return{}}}},Rr=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var s,o;const{placement:r,rects:a,platform:i,elements:d}=e,{apply:n=()=>{},...l}=Oo(t,e),c=await i.detectOverflow(e,l),h=To(r),p=Po(r),g="y"===qo(r),{width:u,height:v}=a.floating;let f,b;"top"===h||"bottom"===h?(f=h,b=p===(await(null==i.isRTL?void 0:i.isRTL(d.floating))?"start":"end")?"left":"right"):(b=h,f="end"===p?"top":"bottom");const m=v-c.top-c.bottom,_=u-c.left-c.right,x=zo(v-c[f],m),y=zo(u-c[b],_),w=!e.middlewareData.shift;let k=x,z=y;if(null!=(s=e.middlewareData.shift)&&s.enabled.x&&(z=_),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(k=m),w&&!p){const t=$o(c.left,0),e=$o(c.right,0),s=$o(c.top,0),o=$o(c.bottom,0);g?z=u-2*(0!==t||0!==e?t+e:$o(c.left,c.right)):k=v-2*(0!==s||0!==o?s+o:$o(c.top,c.bottom))}await n({...e,availableWidth:z,availableHeight:k});const $=await i.getDimensions(d.floating);return u!==$.width||v!==$.height?{reset:{rects:!0}}:{}}}},Vr=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:s,y:o,placement:r,rects:a,middlewareData:i}=e,{offset:d=0,mainAxis:n=!0,crossAxis:l=!0}=Oo(t,e),c={x:s,y:o},h=qo(r),p=Do(h);let g=c[p],u=c[h];const v=Oo(d,e),f="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(n){const t="y"===p?"height":"width",e=a.reference[p]-a.floating[t]+f.mainAxis,s=a.reference[p]+a.reference[t]-f.mainAxis;g<e?g=e:g>s&&(g=s)}if(l){var b,m;const t="y"===p?"width":"height",e=Ko.has(To(r)),s=a.reference[h]-a.floating[t]+(e&&(null==(b=i.offset)?void 0:b[h])||0)+(e?0:f.crossAxis),o=a.reference[h]+a.reference[t]+(e?0:(null==(m=i.offset)?void 0:m[h])||0)-(e?f.crossAxis:0);u<s?u=s:u>o&&(u=o)}return{[p]:g,[h]:u}}}};Ds()&&!(typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype)&&function(){if(typeof window>"u")return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(yo,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||Fs,xo(Document.prototype,"querySelector",t),xo(Document.prototype,"querySelectorAll",t),xo(Element.prototype,"querySelector",t),xo(Element.prototype,"querySelectorAll",t),xo(Element.prototype,"matches",t),xo(Element.prototype,"closest",t),xo(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){co(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){ho(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===Xs.get(this)&&void 0===t.force||!1===t.force?ho(this,!0,!0):(void 0===t.force||!0===t.force)&&co(this),"showing"===Xs.get(this)}}});let e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let s=e.call(this,t);return ko(s),s}}});let s=HTMLElement.prototype.attachInternals;s&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=s.call(this);return t.shadowRoot&&ko(t.shadowRoot),t}}});let o=/* @__PURE__ */new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),o.delete(this);else{if(!(t instanceof Element))throw TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),o.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=o.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return o.delete(this),null;let e=ro(this),s=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof _o)&&s&&e.getElementById(s)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}r(HTMLButtonElement),r(HTMLInputElement);let a=t=>{if(t.defaultPrevented)return;let e=t.composedPath(),s=e[0];if(!(s instanceof Element)||s?.shadowRoot)return;let o=ro(s);if(!(o instanceof _o||o instanceof Document))return;let r=e.find(t=>t.matches?.call(t,"[popovertargetaction],[popovertarget]"));return r?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let s=Zs(e);"show"===t.popoverTargetAction&&"showing"===s||"hide"===t.popoverTargetAction&&"hidden"===s||("showing"===s?ho(e,!0,!0):to(e,!1)&&(Qs.set(e,t),co(e)))}(r),void t.preventDefault()):void 0},i=t=>{let e=t.key,s=t.target;!t.defaultPrevented&&s&&("Escape"===e||"Esc"===e)&&uo(s.ownerDocument,!0,!0)};var d;(d=document).addEventListener("click",a),d.addEventListener("keydown",i),d.addEventListener("pointerdown",fo),d.addEventListener("pointerup",fo),ko(document)}();const Br="data-placement",Hr="data-autoplacement",jr=/* @__PURE__ */new Map;function Fr(t){let{newState:e,oldState:s,target:o,source:r=t.detail}=t,a=o instanceof HTMLElement&&null!==Ms(o,"popover")&&qs(o,"--_ds-floating");if(!a)return;if("closed"===e)return jr.get(o)?.();if(!r){let t=o.getRootNode(),e=`[popovertarget="${o.id}"],[commandfor="${o.id}"]`;r=o.id&&t?.querySelector?.(e)||void 0}if(!r||r===o||s&&s===e)return;o.style.scrollMarginBottom="var(--_ds-floating-arrow-size)";let i=qs(o,"--_ds-floating-overscroll"),d=Ms(o,Br)||Ms(r,Br)||a,n=Ms(o,Hr)||Ms(r,Hr),l=parseFloat(qs(o,"scroll-margin-bottom"))||0,c=d.match(/left|right/gi)?"Height":"Width",h=r[`offset${c}`]/2+l;if("none"===d)return;let p={strategy:"absolute",placement:d,middleware:[Dr(l),Mr({padding:10,limiter:Vr({offset:{mainAxis:h}})}),Ur(),..."false"===n?[]:[qr({padding:10,crossAxis:!1})],...i?[Rr({apply({availableHeight:t}){"fit"===i&&(o.style.width=`${r.offsetWidth}px`),o.style.maxHeight=`${Math.max(50,t-20)}px`}})]:[]]},g=function(t,e,s,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:n=!1}=o,l=_r(t),c=r||a?[...l?fr(l):[],...e?fr(e):[]]:[];c.forEach(t=>{r&&t.addEventListener("scroll",s,{passive:!0}),a&&t.addEventListener("resize",s)});const h=l&&d?function(t,e){let s,o=null;const r=Zo(t);function a(){var t;clearTimeout(s),null==(t=o)||t.disconnect(),o=null}return function i(d,n){void 0===d&&(d=!1),void 0===n&&(n=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:p,height:g}=l;if(d||e(),!p||!g)return;const u={rootMargin:-Co(h)+"px "+-Co(r.clientWidth-(c+p))+"px "+-Co(r.clientHeight-(h+g))+"px "+-Co(c)+"px",threshold:$o(0,zo(1,n))||1};let v=!0;function f(e){const o=e[0].intersectionRatio;if(o!==n){if(!v)return i();o?i(!1,o):s=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||Pr(l,t.getBoundingClientRect())||i(),v=!1}try{o=new IntersectionObserver(f,{...u,root:r.ownerDocument})}catch(b){o=new IntersectionObserver(f,u)}o.observe(t)}(!0),a}(l,s):null;let p,g=-1,u=null;i&&(u=new ResizeObserver(t=>{let[o]=t;o&&o.target===l&&u&&e&&(u.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=u)||t.observe(e)})),s()}),l&&!n&&u.observe(l),e&&u.observe(e));let v=n?kr(t):null;return n&&function e(){const o=kr(t);v&&!Pr(v,o)&&s(),v=o,p=requestAnimationFrame(e)}(),s(),()=>{var t;c.forEach(t=>{r&&t.removeEventListener("scroll",s),a&&t.removeEventListener("resize",s)}),null==h||h(),null==(t=u)||t.disconnect(),u=null,n&&cancelAnimationFrame(p)}}(r,o,async()=>{if(!r?.isConnected)return jr.get(o)?.();let{x:t,y:e}=await((t,e,s)=>{const o=/* @__PURE__ */new Map,r={platform:Tr,...s},a={...r.platform,_c:o};return(async(t,e,s)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=s,d=i.detectOverflow?i:{...i,detectOverflow:Wo},n=await(null==i.isRTL?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=Uo(l,o,n),p=o,g=0;const u={};for(let v=0;v<a.length;v++){const s=a[v];if(!s)continue;const{name:f,fn:b}=s,{x:m,y:_,data:x,reset:y}=await b({x:c,y:h,initialPlacement:o,placement:p,strategy:r,middlewareData:u,rects:l,platform:d,elements:{reference:t,floating:e}});c=null!=m?m:c,h=null!=_?_:h,u[f]={...u[f],...x},y&&g<50&&(g++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(l=!0===y.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:c,y:h}=Uo(l,p,n))),v=-1)}return{x:c,y:h,placement:p,strategy:r,middlewareData:u}})(t,e,{...r,platform:a})})(r,o,p);o.style.translate=`${t}px ${e}px`});jr.set(o,()=>jr.delete(o)&&g())}let Ir;const Nr=({type:t})=>{if("mousedown"===t&&(Ir=!1),"scroll"===t&&!1===Ir&&(Ir=!0),"mouseup"===t&&Ir)for(let[e]of jr)e.showPopover()};Bs("popover",()=>[Rs(document,"mousedown scroll mouseup",Nr,!0),Rs(document,"toggle ds-toggle-source",Fr,Ps)]);const Ur=()=>({name:"arrowPseudo",fn(t){let e=t.elements.floating,s=t.rects.reference,o=`${Math.round(s.width/2+s.x-t.x)}px`,r=`${Math.round(s.height/2+s.y-t.y)}px`;return e.style.setProperty("--_ds-floating-arrow-x",o),e.style.setProperty("--_ds-floating-arrow-y",r),Ms(e,"data-floating",t.placement),t}});var Wr=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,Gr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Kr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Wr(e,s,a),a};let Yr=class extends mt{constructor(){super(...arguments),this.placement="top",this.autoPlacement=void 0,this.overscroll=void 0}connectedCallback(){super.connectedCallback(),this.hasAttribute("popover")||this.setAttribute("popover","auto"),this.syncDataAttributes()}updated(t){(t.has("placement")||t.has("autoPlacement")||t.has("overscroll"))&&this.syncDataAttributes()}syncDataAttributes(){this.placement&&(this.dataset.placement=this.placement),this.autoPlacement&&(this.dataset.autoplacement=this.autoPlacement),this.overscroll&&(this.dataset.overscroll=this.overscroll)}render(){return tt`<slot></slot>`}};Yr.styles=[Ts],Gr([E({type:String,reflect:!0})],Yr.prototype,"placement",2),Gr([E({type:String,reflect:!0})],Yr.prototype,"autoPlacement",2),Gr([E({type:String,reflect:!0})],Yr.prototype,"overscroll",2),Yr=Gr([P("sds-popover")],Yr);const Xr=l`
|
|
2168
|
+
`,js={passive:!0,capture:!0},Fs=()=>typeof window<"u"&&typeof document<"u",Is=(t,e,s)=>void 0===s?t.getAttribute(e)??null:(null===s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s),null),Ns=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),Us=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.addEventListener(r,...o);return()=>Ws(t,...e)},Ws=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.removeEventListener(r,...o)},Ks=(t,e)=>{Fs()&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=/* @__PURE__ */new Map),window._dsHotReloadCleanup?.get(t)?.map(t=>t()),window._dsHotReloadCleanup?.set(t,e()))};let Gs;const Ys=()=>{"complete"===document.readyState&&(Gs||(Gs=((t,e)=>{let s=document.createElement("div");if(e)for(let[o,r]of Object.entries(e))Is(s,o,r);return s})(0,{"aria-live":"assertive"}),Gs.style.overflow="hidden",Gs.style.position="fixed",Gs.style.whiteSpace="nowrap",Gs.style.width="1px"),Gs.isConnected||document.body.appendChild(Gs))};Ks("announce",()=>[Us(document,"focus mouseover",Ys,js)]);var Xs=class extends Event{constructor(t,{oldState:e="",newState:o="",...r}={}){super(t,r),s(this,"oldState"),s(this,"newState"),this.oldState=String(e||""),this.newState=String(o||"")}},Zs=/* @__PURE__ */new WeakMap;function Qs(t,e,s){Zs.set(t,setTimeout(()=>{Zs.has(t)&&t.dispatchEvent(new Xs("toggle",{cancelable:!1,oldState:e,newState:s}))},0))}var Js=globalThis.ShadowRoot||function(){},to=globalThis.HTMLDialogElement||function(){},eo=/* @__PURE__ */new WeakMap,so=/* @__PURE__ */new WeakMap,oo=/* @__PURE__ */new WeakMap,ro=/* @__PURE__ */new WeakMap;function ao(t){return ro.get(t)||"hidden"}var io=/* @__PURE__ */new WeakMap;function no(t){return[...t].pop()}function lo(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==ao(t)||!e&&"hidden"!==ao(t)||t instanceof to&&t.hasAttribute("open")||document.fullscreenElement===t)}function co(t){if(!t)return 0;let e=so.get(document)||/* @__PURE__ */new Set,s=oo.get(document)||/* @__PURE__ */new Set;return s.has(t)?[...s].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function ho(t){let e,s=oo.get(t)||/* @__PURE__ */new Set,o=so.get(t)||/* @__PURE__ */new Set,r=s.size>0?s:o.size>0?o:null;return r?(e=no(r),e.isConnected?e:(r.delete(e),ho(t))):null}function po(t){for(let e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function go(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?go(t.parentNode):t}function vo(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===ro.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||go(t))instanceof Js&&(t=t.host),t instanceof Document)return}}function uo(t,e){let s=/* @__PURE__ */new Map,o=0;for(let a of e||[])s.set(a,o),o+=1;s.set(t,o),o+=1;let r=null;return function(e){if(!e)return;let o=!1,a=null,i=null;for(;!o;){if(a=vo(e)||null,null===a||!s.has(a))return;("hint"===t.popover||"auto"===a.popover)&&(o=!0),o||(e=a.parentElement)}i=s.get(a),(null===r||s.get(r)<i)&&(r=a)}(t.parentElement||go(t)),r}function fo(t){return!(t.hidden||t instanceof Js||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href)&&"number"==typeof t.tabIndex&&-1!==t.tabIndex}var bo=/* @__PURE__ */new WeakMap;function mo(t){if(!lo(t,!1))return;let e=t.ownerDocument;if(!t.dispatchEvent(new Xs("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!lo(t,!1))return;let s=!1,o=t.popover,r=null,a=uo(t,so.get(e)||/* @__PURE__ */new Set),i=uo(t,oo.get(e)||/* @__PURE__ */new Set);if("auto"===o&&(xo(oo.get(e)||/* @__PURE__ */new Set,s,!0),wo(a||e,s,!0),r="auto"),"hint"===o&&(i?(wo(i,s,!0),r="hint"):(xo(oo.get(e)||/* @__PURE__ */new Set,s,!0),a?(wo(a,s,!0),r="auto"):r="hint")),"auto"===o||"hint"===o){if(o!==t.popover||!lo(t,!1))return;ho(e)||(s=!0),"auto"===r?(so.has(e)||so.set(e,/* @__PURE__ */new Set),so.get(e).add(t)):"hint"===r&&(oo.has(e)||oo.set(e,/* @__PURE__ */new Set),oo.get(e).add(t))}bo.delete(t);let d=e.activeElement;t.classList.add(":popover-open"),ro.set(t,"showing"),eo.has(e)||eo.set(e,/* @__PURE__ */new Set),eo.get(e).add(t),So(io.get(t),!0),function(t){var e;null==(e=function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let s=e.querySelector("[autofocus]");if(s)return s;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(s=e.querySelector("[autofocus]"),s)return s}}}let o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),r=o.currentNode;for(;r;){if(fo(r))return r;r=o.nextNode()}}(t))||e.focus()}(t),s&&d&&"auto"===t.popover&&bo.set(t,d),Qs(t,"closed","open")}function _o(t,e=!1,s=!1){var o,r;if(!lo(t,!0))return;let a=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(wo(t,e,s),!lo(t,!0)))return;let i=so.get(a)||/* @__PURE__ */new Set,d=i.has(t)&&no(i)===t;if(So(io.get(t),!1),io.delete(t),s&&(t.dispatchEvent(new Xs("beforetoggle",{oldState:"open",newState:"closed"})),d&&no(i)!==t&&wo(t,e,s),!lo(t,!0)))return;null==(o=eo.get(a))||o.delete(t),i.delete(t),null==(r=oo.get(a))||r.delete(t),t.classList.remove(":popover-open"),ro.set(t,"hidden"),s&&Qs(t,"open","closed");let n=bo.get(t);n&&(bo.delete(t),e&&n.focus())}function xo(t,e=!1,s=!1){let o=po(t);for(;o;)_o(o,e,s),o=po(t)}function yo(t,e,s,o){let r=!1,a=!1;for(;r||!a;){a=!0;let i=null,d=!1;for(let s of e)if(s===t)d=!0;else if(d){i=s;break}if(!i)return;for(;"showing"===ao(i)&&e.size;)_o(no(e),s,o);e.has(t)&&no(e)!==t&&(r=!0),r&&(o=!1)}}function wo(t,e,s){let o=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,s=!1){let o=ho(t);for(;o;)_o(o,e,s),o=ho(t)}(o,e,s);oo.get(o)?.has(t)?yo(t,oo.get(o),e,s):(xo(oo.get(o)||/* @__PURE__ */new Set,e,s),so.get(o)?.has(t)&&yo(t,so.get(o),e,s))}var ko=/* @__PURE__ */new WeakMap;function zo(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let s=e.ownerDocument;if(!ho(s))return;let o=function(t){let e=vo(t),s=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||go(t))instanceof Js&&(t=t.host),t instanceof Document)return}}(t);return co(e)>co(s)?e:s}(e);if(o&&"pointerdown"===t.type)ko.set(s,o);else if("pointerup"===t.type){let t=ko.get(s)===o;ko.delete(s),t&&wo(o||s,!1,!0)}}var $o=/* @__PURE__ */new WeakMap;function So(t,e=!1){if(!t)return;$o.has(t)||$o.set(t,t.getAttribute("aria-expanded"));let s=t.popoverTargetElement;if(s instanceof HTMLElement&&"auto"===s.popover)t.setAttribute("aria-expanded",String(e));else{let e=$o.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var Co=globalThis.ShadowRoot||function(){};function Eo(t,e,s){let o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,s(t))}})}var Ao=/(^|[^\\]):popover-open\b/g;var Lo=null;function Oo(t){let e=function(){let t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===Lo)try{(Lo=new CSSStyleSheet).replaceSync(e)}catch{Lo=!1}if(!1===Lo){let s=document.createElement("style");s.textContent=e,t instanceof Document?t.head.prepend(s):t.prepend(s)}else t.adoptedStyleSheets=[Lo,...t.adoptedStyleSheets]}const To=Math.min,Po=Math.max,Do=Math.round,Mo=Math.floor,qo=t=>({x:t,y:t}),Ro={left:"right",right:"left",bottom:"top",top:"bottom"};function Vo(t,e,s){return Po(t,To(e,s))}function Bo(t,e){return"function"==typeof t?t(e):t}function Ho(t){return t.split("-")[0]}function jo(t){return t.split("-")[1]}function Fo(t){return"x"===t?"y":"x"}function Io(t){return"y"===t?"height":"width"}function No(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function Uo(t){return Fo(No(t))}function Wo(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Ko=["left","right"],Go=["right","left"],Yo=["top","bottom"],Xo=["bottom","top"];function Zo(t){const e=Ho(t);return Ro[e]+t.slice(e.length)}function Qo(t){const{x:e,y:s,width:o,height:r}=t;return{width:o,height:r,top:s,left:e,right:e+o,bottom:s+r,x:e,y:s}}function Jo(t,e,s){let{reference:o,floating:r}=t;const a=No(e),i=Uo(e),d=Io(i),n=Ho(e),l="y"===a,c=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,p=o[d]/2-r[d]/2;let g;switch(n){case"top":g={x:c,y:o.y-r.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(jo(e)){case"start":g[i]-=p*(s&&l?-1:1);break;case"end":g[i]+=p*(s&&l?-1:1)}return g}async function tr(t,e){var s;void 0===e&&(e={});const{x:o,y:r,platform:a,rects:i,elements:d,strategy:n}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Bo(e,t),v="number"!=typeof(y=g)?(w=y,{top:0,right:0,bottom:0,left:0,...w}):{top:y,right:y,bottom:y,left:y},u=d[p?"floating"===h?"reference":"floating":h],f=Qo(await a.getClippingRect({element:null==(s=await(null==a.isElement?void 0:a.isElement(u)))||s?u:u.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(d.floating)),boundary:l,rootBoundary:c,strategy:n})),b="floating"===h?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,m=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d.floating)),_=await(null==a.isElement?void 0:a.isElement(m))&&await(null==a.getScale?void 0:a.getScale(m))||{x:1,y:1},x=Qo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:b,offsetParent:m,strategy:n}):b);var y,w;return{top:(f.top-x.top+v.top)/_.y,bottom:(x.bottom-f.bottom+v.bottom)/_.y,left:(f.left-x.left+v.left)/_.x,right:(x.right-f.right+v.right)/_.x}}const er=/* @__PURE__ */new Set(["left","top"]);function sr(){return"undefined"!=typeof window}function or(t){return ir(t)?(t.nodeName||"").toLowerCase():"#document"}function rr(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function ar(t){var e;return null==(e=(ir(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ir(t){return!!sr()&&(t instanceof Node||t instanceof rr(t).Node)}function dr(t){return!!sr()&&(t instanceof Element||t instanceof rr(t).Element)}function nr(t){return!!sr()&&(t instanceof HTMLElement||t instanceof rr(t).HTMLElement)}function lr(t){return!(!sr()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof rr(t).ShadowRoot)}function cr(t){const{overflow:e,overflowX:s,overflowY:o,display:r}=xr(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+s)&&"inline"!==r&&"contents"!==r}function hr(t){return/^(table|td|th)$/.test(or(t))}function pr(t){try{if(t.matches(":popover-open"))return!0}catch(e){}try{return t.matches(":modal")}catch(e){return!1}}const gr=/transform|translate|scale|rotate|perspective|filter/,vr=/paint|layout|strict|content/,ur=t=>!!t&&"none"!==t;let fr;function br(t){const e=dr(t)?xr(t):t;return ur(e.transform)||ur(e.translate)||ur(e.scale)||ur(e.rotate)||ur(e.perspective)||!mr()&&(ur(e.backdropFilter)||ur(e.filter))||gr.test(e.willChange||"")||vr.test(e.contain||"")}function mr(){return null==fr&&(fr="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),fr}function _r(t){return/^(html|body|#document)$/.test(or(t))}function xr(t){return rr(t).getComputedStyle(t)}function yr(t){return dr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function wr(t){if("html"===or(t))return t;const e=t.assignedSlot||t.parentNode||lr(t)&&t.host||ar(t);return lr(e)?e.host:e}function kr(t){const e=wr(t);return _r(e)?t.ownerDocument?t.ownerDocument.body:t.body:nr(e)&&cr(e)?e:kr(e)}function zr(t,e,s){var o;void 0===e&&(e=[]),void 0===s&&(s=!0);const r=kr(t),a=r===(null==(o=t.ownerDocument)?void 0:o.body),i=rr(r);if(a){const t=$r(i);return e.concat(i,i.visualViewport||[],cr(r)?r:[],t&&s?zr(t):[])}return e.concat(r,zr(r,[],s))}function $r(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Sr(t){const e=xr(t);let s=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=nr(t),a=r?t.offsetWidth:s,i=r?t.offsetHeight:o,d=Do(s)!==a||Do(o)!==i;return d&&(s=a,o=i),{width:s,height:o,$:d}}function Cr(t){return dr(t)?t:t.contextElement}function Er(t){const e=Cr(t);if(!nr(e))return qo(1);const s=e.getBoundingClientRect(),{width:o,height:r,$:a}=Sr(e);let i=(a?Do(s.width):s.width)/o,d=(a?Do(s.height):s.height)/r;return i&&Number.isFinite(i)||(i=1),d&&Number.isFinite(d)||(d=1),{x:i,y:d}}const Ar=qo(0);function Lr(t){const e=rr(t);return mr()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ar}function Or(t,e,s,o){void 0===e&&(e=!1),void 0===s&&(s=!1);const r=t.getBoundingClientRect(),a=Cr(t);let i=qo(1);e&&(o?dr(o)&&(i=Er(o)):i=Er(t));const d=(n=a,void 0===(l=s)&&(l=!1),!(c=o)||l&&c!==rr(n)||!l?qo(0):Lr(a));var n,l,c;let h=(r.left+d.x)/i.x,p=(r.top+d.y)/i.y,g=r.width/i.x,v=r.height/i.y;if(a){const t=rr(a),e=o&&dr(o)?rr(o):o;let s=t,r=$r(s);for(;r&&o&&e!==s;){const t=Er(r),e=r.getBoundingClientRect(),o=xr(r),a=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;h*=t.x,p*=t.y,g*=t.x,v*=t.y,h+=a,p+=i,s=rr(r),r=$r(s)}}return Qo({width:g,height:v,x:h,y:p})}function Tr(t,e){const s=yr(t).scrollLeft;return e?e.left+s:Or(ar(t)).left+s}function Pr(t,e){const s=t.getBoundingClientRect();return{x:s.left+e.scrollLeft-Tr(t,s),y:s.top+e.scrollTop}}function Dr(t,e,s){let o;if("viewport"===e)o=function(t,e){const s=rr(t),o=ar(t),r=s.visualViewport;let a=o.clientWidth,i=o.clientHeight,d=0,n=0;if(r){a=r.width,i=r.height;const t=mr();(!t||t&&"fixed"===e)&&(d=r.offsetLeft,n=r.offsetTop)}const l=Tr(o);if(l<=0){const t=o.ownerDocument,e=t.body,s=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(s.marginLeft)+parseFloat(s.marginRight)||0,i=Math.abs(o.clientWidth-e.clientWidth-r);i<=25&&(a-=i)}else l<=25&&(a+=l);return{width:a,height:i,x:d,y:n}}(t,s);else if("document"===e)o=function(t){const e=ar(t),s=yr(t),o=t.ownerDocument.body,r=Po(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Po(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-s.scrollLeft+Tr(t);const d=-s.scrollTop;return"rtl"===xr(o).direction&&(i+=Po(e.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:d}}(ar(t));else if(dr(e))o=function(t,e){const s=Or(t,!0,"fixed"===e),o=s.top+t.clientTop,r=s.left+t.clientLeft,a=nr(t)?Er(t):qo(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:r*a.x,y:o*a.y}}(e,s);else{const s=Lr(t);o={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Qo(o)}function Mr(t,e){const s=wr(t);return!(s===e||!dr(s)||_r(s))&&("fixed"===xr(s).position||Mr(s,e))}function qr(t,e,s){const o=nr(e),r=ar(e),a="fixed"===s,i=Or(t,!0,a,e);let d={scrollLeft:0,scrollTop:0};const n=qo(0);function l(){n.x=Tr(r)}if(o||!o&&!a)if(("body"!==or(e)||cr(r))&&(d=yr(e)),o){const t=Or(e,!0,a,e);n.x=t.x+e.clientLeft,n.y=t.y+e.clientTop}else r&&l();a&&!o&&r&&l();const c=!r||o||a?qo(0):Pr(r,d);return{x:i.left+d.scrollLeft-n.x-c.x,y:i.top+d.scrollTop-n.y-c.y,width:i.width,height:i.height}}function Rr(t){return"static"===xr(t).position}function Vr(t,e){if(!nr(t)||"fixed"===xr(t).position)return null;if(e)return e(t);let s=t.offsetParent;return ar(t)===s&&(s=s.ownerDocument.body),s}function Br(t,e){const s=rr(t);if(pr(t))return s;if(!nr(t)){let e=wr(t);for(;e&&!_r(e);){if(dr(e)&&!Rr(e))return e;e=wr(e)}return s}let o=Vr(t,e);for(;o&&hr(o)&&Rr(o);)o=Vr(o,e);return o&&_r(o)&&Rr(o)&&!br(o)?s:o||function(t){let e=wr(t);for(;nr(e)&&!_r(e);){if(br(e))return e;if(pr(e))return null;e=wr(e)}return null}(t)||s}const Hr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:s,offsetParent:o,strategy:r}=t;const a="fixed"===r,i=ar(o),d=!!e&&pr(e.floating);if(o===i||d&&a)return s;let n={scrollLeft:0,scrollTop:0},l=qo(1);const c=qo(0),h=nr(o);if((h||!h&&!a)&&(("body"!==or(o)||cr(i))&&(n=yr(o)),h)){const t=Or(o);l=Er(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}const p=!i||h||a?qo(0):Pr(i,n);return{width:s.width*l.x,height:s.height*l.y,x:s.x*l.x-n.scrollLeft*l.x+c.x+p.x,y:s.y*l.y-n.scrollTop*l.y+c.y+p.y}},getDocumentElement:ar,getClippingRect:function(t){let{element:e,boundary:s,rootBoundary:o,strategy:r}=t;const a=[..."clippingAncestors"===s?pr(e)?[]:function(t,e){const s=e.get(t);if(s)return s;let o=zr(t,[],!1).filter(t=>dr(t)&&"body"!==or(t)),r=null;const a="fixed"===xr(t).position;let i=a?wr(t):t;for(;dr(i)&&!_r(i);){const e=xr(i),s=br(i);s||"fixed"!==e.position||(r=null),(a?!s&&!r:!s&&"static"===e.position&&r&&("absolute"===r.position||"fixed"===r.position)||cr(i)&&!s&&Mr(t,i))?o=o.filter(t=>t!==i):r=e,i=wr(i)}return e.set(t,o),o}(e,this._c):[].concat(s),o],i=Dr(e,a[0],r);let d=i.top,n=i.right,l=i.bottom,c=i.left;for(let h=1;h<a.length;h++){const t=Dr(e,a[h],r);d=Po(t.top,d),n=To(t.right,n),l=To(t.bottom,l),c=Po(t.left,c)}return{width:n-c,height:l-d,x:c,y:d}},getOffsetParent:Br,getElementRects:async function(t){const e=this.getOffsetParent||Br,s=this.getDimensions,o=await s(t.floating);return{reference:qr(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:s}=Sr(t);return{width:e,height:s}},getScale:Er,isElement:dr,isRTL:function(t){return"rtl"===xr(t).direction}};function jr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Fr=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var s,o;const{x:r,y:a,placement:i,middlewareData:d}=e,n=await async function(t,e){const{placement:s,platform:o,elements:r}=t,a=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=Ho(s),d=jo(s),n="y"===No(s),l=er.has(i)?-1:1,c=a&&n?-1:1,h=Bo(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return d&&"number"==typeof v&&(g="end"===d?-1*v:v),n?{x:g*c,y:p*l}:{x:p*l,y:g*c}}(e,t);return i===(null==(s=d.offset)?void 0:s.placement)&&null!=(o=d.arrow)&&o.alignmentOffset?{}:{x:r+n.x,y:a+n.y,data:{...n,placement:i}}}}},Ir=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:s,y:o,placement:r,platform:a}=e,{mainAxis:i=!0,crossAxis:d=!1,limiter:n={fn:t=>{let{x:e,y:s}=t;return{x:e,y:s}}},...l}=Bo(t,e),c={x:s,y:o},h=await a.detectOverflow(e,l),p=No(Ho(r)),g=Fo(p);let v=c[g],u=c[p];if(i){const t="y"===g?"bottom":"right";v=Vo(v+h["y"===g?"top":"left"],v,v-h[t])}if(d){const t="y"===p?"bottom":"right";u=Vo(u+h["y"===p?"top":"left"],u,u-h[t])}const f=n.fn({...e,[g]:v,[p]:u});return{...f,data:{x:f.x-s,y:f.y-o,enabled:{[g]:i,[p]:d}}}}}},Nr=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var s,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:d,platform:n,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:u=!0,...f}=Bo(t,e);if(null!=(s=a.arrow)&&s.alignmentOffset)return{};const b=Ho(r),m=No(d),_=Ho(d)===d,x=await(null==n.isRTL?void 0:n.isRTL(l.floating)),y=p||(_||!u?[Zo(d)]:function(t){const e=Zo(t);return[Wo(t),e,Wo(e)]}(d)),w="none"!==v;!p&&w&&y.push(...function(t,e,s,o){const r=jo(t);let a=function(t,e,s){switch(t){case"top":case"bottom":return s?e?Go:Ko:e?Ko:Go;case"left":case"right":return e?Yo:Xo;default:return[]}}(Ho(t),"start"===s,o);return r&&(a=a.map(t=>t+"-"+r),e&&(a=a.concat(a.map(Wo)))),a}(d,u,v,x));const k=[d,...y],z=await n.detectOverflow(e,f),$=[];let S=(null==(o=a.flip)?void 0:o.overflows)||[];if(c&&$.push(z[b]),h){const t=function(t,e,s){void 0===s&&(s=!1);const o=jo(t),r=Uo(t),a=Io(r);let i="x"===r?o===(s?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=Zo(i)),[i,Zo(i)]}(r,i,x);$.push(z[t[0]],z[t[1]])}if(S=[...S,{placement:r,overflows:$}],!$.every(t=>t<=0)){var C,E;const t=((null==(C=a.flip)?void 0:C.index)||0)+1,e=k[t];if(e&&("alignment"!==h||m===No(e)||S.every(t=>No(t.placement)!==m||t.overflows[0]>0)))return{data:{index:t,overflows:S},reset:{placement:e}};let s=null==(E=S.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:E.placement;if(!s)switch(g){case"bestFit":{var A;const t=null==(A=S.filter(t=>{if(w){const e=No(t.placement);return e===m||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:A[0];t&&(s=t);break}case"initialPlacement":s=d}if(r!==s)return{reset:{placement:s}}}return{}}}},Ur=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var s,o;const{placement:r,rects:a,platform:i,elements:d}=e,{apply:n=()=>{},...l}=Bo(t,e),c=await i.detectOverflow(e,l),h=Ho(r),p=jo(r),g="y"===No(r),{width:v,height:u}=a.floating;let f,b;"top"===h||"bottom"===h?(f=h,b=p===(await(null==i.isRTL?void 0:i.isRTL(d.floating))?"start":"end")?"left":"right"):(b=h,f="end"===p?"top":"bottom");const m=u-c.top-c.bottom,_=v-c.left-c.right,x=To(u-c[f],m),y=To(v-c[b],_),w=!e.middlewareData.shift;let k=x,z=y;if(null!=(s=e.middlewareData.shift)&&s.enabled.x&&(z=_),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(k=m),w&&!p){const t=Po(c.left,0),e=Po(c.right,0),s=Po(c.top,0),o=Po(c.bottom,0);g?z=v-2*(0!==t||0!==e?t+e:Po(c.left,c.right)):k=u-2*(0!==s||0!==o?s+o:Po(c.top,c.bottom))}await n({...e,availableWidth:z,availableHeight:k});const $=await i.getDimensions(d.floating);return v!==$.width||u!==$.height?{reset:{rects:!0}}:{}}}},Wr=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:s,y:o,placement:r,rects:a,middlewareData:i}=e,{offset:d=0,mainAxis:n=!0,crossAxis:l=!0}=Bo(t,e),c={x:s,y:o},h=No(r),p=Fo(h);let g=c[p],v=c[h];const u=Bo(d,e),f="number"==typeof u?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(n){const t="y"===p?"height":"width",e=a.reference[p]-a.floating[t]+f.mainAxis,s=a.reference[p]+a.reference[t]-f.mainAxis;g<e?g=e:g>s&&(g=s)}if(l){var b,m;const t="y"===p?"width":"height",e=er.has(Ho(r)),s=a.reference[h]-a.floating[t]+(e&&(null==(b=i.offset)?void 0:b[h])||0)+(e?0:f.crossAxis),o=a.reference[h]+a.reference[t]+(e?0:(null==(m=i.offset)?void 0:m[h])||0)-(e?f.crossAxis:0);v<s?v=s:v>o&&(v=o)}return{[p]:g,[h]:v}}}};Fs()&&!(typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype)&&function(){if(typeof window>"u")return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(Ao,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||Xs,Eo(Document.prototype,"querySelector",t),Eo(Document.prototype,"querySelectorAll",t),Eo(Element.prototype,"querySelector",t),Eo(Element.prototype,"querySelectorAll",t),Eo(Element.prototype,"matches",t),Eo(Element.prototype,"closest",t),Eo(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){mo(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){_o(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===ro.get(this)&&void 0===t.force||!1===t.force?_o(this,!0,!0):(void 0===t.force||!0===t.force)&&mo(this),"showing"===ro.get(this)}}});let e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let s=e.call(this,t);return Oo(s),s}}});let s=HTMLElement.prototype.attachInternals;s&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=s.call(this);return t.shadowRoot&&Oo(t.shadowRoot),t}}});let o=/* @__PURE__ */new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),o.delete(this);else{if(!(t instanceof Element))throw TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),o.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=o.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return o.delete(this),null;let e=go(this),s=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof Co)&&s&&e.getElementById(s)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}r(HTMLButtonElement),r(HTMLInputElement);let a=t=>{if(t.defaultPrevented)return;let e=t.composedPath(),s=e[0];if(!(s instanceof Element)||s?.shadowRoot)return;let o=go(s);if(!(o instanceof Co||o instanceof Document))return;let r=e.find(t=>t.matches?.call(t,"[popovertargetaction],[popovertarget]"));return r?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let s=ao(e);"show"===t.popoverTargetAction&&"showing"===s||"hide"===t.popoverTargetAction&&"hidden"===s||("showing"===s?_o(e,!0,!0):lo(e,!1)&&(io.set(e,t),mo(e)))}(r),void t.preventDefault()):void 0},i=t=>{let e=t.key,s=t.target;!t.defaultPrevented&&s&&("Escape"===e||"Esc"===e)&&wo(s.ownerDocument,!0,!0)};var d;(d=document).addEventListener("click",a),d.addEventListener("keydown",i),d.addEventListener("pointerdown",zo),d.addEventListener("pointerup",zo),Oo(document)}();const Kr="data-placement",Gr="data-autoplacement",Yr=/* @__PURE__ */new Map;function Xr(t){let{newState:e,oldState:s,target:o,source:r=t.detail}=t,a=o instanceof HTMLElement&&null!==Is(o,"popover")&&Ns(o,"--_ds-floating");if(!a)return;if("closed"===e)return Yr.get(o)?.();if(!r){let t=o.getRootNode(),e=`[popovertarget="${o.id}"],[commandfor="${o.id}"]`;r=o.id&&t?.querySelector?.(e)||void 0}if(!r||r===o||s&&s===e)return;o.style.scrollMarginBottom="var(--_ds-floating-arrow-size)";let i=Ns(o,"--_ds-floating-overscroll"),d=Is(o,Kr)||Is(r,Kr)||a,n=Is(o,Gr)||Is(r,Gr),l=parseFloat(Ns(o,"scroll-margin-bottom"))||0,c=d.match(/left|right/gi)?"Height":"Width",h=r[`offset${c}`]/2+l;if("none"===d)return;let p={strategy:"absolute",placement:d,middleware:[Fr(l),Ir({padding:10,limiter:Wr({offset:{mainAxis:h}})}),Jr(),..."false"===n?[]:[Nr({padding:10,crossAxis:!1})],...i?[Ur({apply({availableHeight:t}){"fit"===i&&(o.style.width=`${r.offsetWidth}px`),o.style.maxHeight=`${Math.max(50,t-20)}px`}})]:[]]},g=function(t,e,s,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:n=!1}=o,l=Cr(t),c=r||a?[...l?zr(l):[],...e?zr(e):[]]:[];c.forEach(t=>{r&&t.addEventListener("scroll",s,{passive:!0}),a&&t.addEventListener("resize",s)});const h=l&&d?function(t,e){let s,o=null;const r=ar(t);function a(){var t;clearTimeout(s),null==(t=o)||t.disconnect(),o=null}return function i(d,n){void 0===d&&(d=!1),void 0===n&&(n=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:p,height:g}=l;if(d||e(),!p||!g)return;const v={rootMargin:-Mo(h)+"px "+-Mo(r.clientWidth-(c+p))+"px "+-Mo(r.clientHeight-(h+g))+"px "+-Mo(c)+"px",threshold:Po(0,To(1,n))||1};let u=!0;function f(e){const o=e[0].intersectionRatio;if(o!==n){if(!u)return i();o?i(!1,o):s=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||jr(l,t.getBoundingClientRect())||i(),u=!1}try{o=new IntersectionObserver(f,{...v,root:r.ownerDocument})}catch(b){o=new IntersectionObserver(f,v)}o.observe(t)}(!0),a}(l,s):null;let p,g=-1,v=null;i&&(v=new ResizeObserver(t=>{let[o]=t;o&&o.target===l&&v&&e&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=v)||t.observe(e)})),s()}),l&&!n&&v.observe(l),e&&v.observe(e));let u=n?Or(t):null;return n&&function e(){const o=Or(t);u&&!jr(u,o)&&s(),u=o,p=requestAnimationFrame(e)}(),s(),()=>{var t;c.forEach(t=>{r&&t.removeEventListener("scroll",s),a&&t.removeEventListener("resize",s)}),null==h||h(),null==(t=v)||t.disconnect(),v=null,n&&cancelAnimationFrame(p)}}(r,o,async()=>{if(!r?.isConnected)return Yr.get(o)?.();let{x:t,y:e}=await((t,e,s)=>{const o=/* @__PURE__ */new Map,r={platform:Hr,...s},a={...r.platform,_c:o};return(async(t,e,s)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=s,d=i.detectOverflow?i:{...i,detectOverflow:tr},n=await(null==i.isRTL?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=Jo(l,o,n),p=o,g=0;const v={};for(let u=0;u<a.length;u++){const s=a[u];if(!s)continue;const{name:f,fn:b}=s,{x:m,y:_,data:x,reset:y}=await b({x:c,y:h,initialPlacement:o,placement:p,strategy:r,middlewareData:v,rects:l,platform:d,elements:{reference:t,floating:e}});c=null!=m?m:c,h=null!=_?_:h,v[f]={...v[f],...x},y&&g<50&&(g++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(l=!0===y.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:c,y:h}=Jo(l,p,n))),u=-1)}return{x:c,y:h,placement:p,strategy:r,middlewareData:v}})(t,e,{...r,platform:a})})(r,o,p);o.style.translate=`${t}px ${e}px`});Yr.set(o,()=>Yr.delete(o)&&g())}let Zr;const Qr=({type:t})=>{if("mousedown"===t&&(Zr=!1),"scroll"===t&&!1===Zr&&(Zr=!0),"mouseup"===t&&Zr)for(let[e]of Yr)e.showPopover()};Ks("popover",()=>[Us(document,"mousedown scroll mouseup",Qr,!0),Us(document,"toggle ds-toggle-source",Xr,js)]);const Jr=()=>({name:"arrowPseudo",fn(t){let e=t.elements.floating,s=t.rects.reference,o=`${Math.round(s.width/2+s.x-t.x)}px`,r=`${Math.round(s.height/2+s.y-t.y)}px`;return e.style.setProperty("--_ds-floating-arrow-x",o),e.style.setProperty("--_ds-floating-arrow-y",r),Is(e,"data-floating",t.placement),t}});var ta=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,sa=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ea(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ta(e,s,a),a};let oa=class extends mt{constructor(){super(...arguments),this.placement="top",this.autoPlacement=void 0,this.overscroll=void 0}connectedCallback(){super.connectedCallback(),this.hasAttribute("popover")||this.setAttribute("popover","auto"),this.syncDataAttributes()}updated(t){(t.has("placement")||t.has("autoPlacement")||t.has("overscroll"))&&this.syncDataAttributes()}syncDataAttributes(){this.placement&&(this.dataset.placement=this.placement),this.autoPlacement&&(this.dataset.autoplacement=this.autoPlacement),this.overscroll&&(this.dataset.overscroll=this.overscroll)}render(){return tt`<slot></slot>`}};oa.styles=[Hs],sa([E({type:String,reflect:!0})],oa.prototype,"placement",2),sa([E({type:String,reflect:!0})],oa.prototype,"autoPlacement",2),sa([E({type:String,reflect:!0})],oa.prototype,"overscroll",2),oa=sa([P("sds-popover")],oa);const ra=l`
|
|
2069
2169
|
:host {
|
|
2070
2170
|
--_sds-radio-font-family: var(--sds-radio-font-family, var(--sds-typography-font-family-roboto));
|
|
2071
2171
|
--_sds-radio-disabled-opacity: var(--sds-radio-disabled-opacity, var(--sds-color-states-disabled-opacity));
|
|
@@ -2274,7 +2374,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2274
2374
|
margin-block-start: -1px;
|
|
2275
2375
|
}
|
|
2276
2376
|
}
|
|
2277
|
-
`;var
|
|
2377
|
+
`;var aa=Object.defineProperty,ia=Object.getOwnPropertyDescriptor,da=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ia(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&aa(e,s,a),a};let na=class extends(ee(Et(re(mt)))){constructor(){super(...arguments),this.required=!1,this.label="",this.hideLabel=!1,this.value="on",this.checked=!1,this.error=!1,this.size="md",this._hasSlottedLabel=!1,this._disabled=!1,this._disabledIsAuthorControlled=!1,this._settingDisabledFromParent=!1,this._parentRequestDisabled=!1,this._initialChecked=!1,this._handleKeydown=t=>{if(!this.name||this.disabled||this.readOnly)return;if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;const e=this.getRootNode(),s=Array.from(e.querySelectorAll(`sds-radio[name="${this.name}"]`)),o=s.indexOf(this);if(-1===o)return;let r=null;switch(t.key){case"ArrowUp":case"ArrowLeft":r=o>0?o-1:s.length-1;break;case"ArrowDown":case"ArrowRight":r=o<s.length-1?o+1:0;break;default:return}const a=s[r];a?.focus(),a?.click(),t.preventDefault()},this._handleChange=t=>{if(this.disabled||this.readOnly)return t.target.checked=this.checked??!1,void t.preventDefault();const e=t.target;this.checked=e.checked,this.checked&&this._uncheckSiblings(),this._updateGroupValidation(),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("blur")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}get disabled(){return this._disabled}set disabled(t){const e=t??!1,s=this._disabled;s!==e&&(this._disabled=e,this.requestUpdate("disabled",s),this._settingDisabledFromParent||(this._disabledIsAuthorControlled=e))}get parentRequestDisabled(){return this._parentRequestDisabled}set parentRequestDisabled(t){const e=t??!1,s=this._parentRequestDisabled;s!==e&&(this._parentRequestDisabled=e,this.requestUpdate("parentRequestDisabled",s),this._disabledIsAuthorControlled||(this._settingDisabledFromParent=!0,this.disabled=e,this._settingDisabledFromParent=!1))}connectedCallback(){super.connectedCallback(),this.internals.role="radio",this._initialChecked||(this._initialChecked=this.checked??!1),this.addEventListener("keydown",this._handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeydown)}firstUpdated(t){super.firstUpdated(t),this._updateGroupValidation()}updated(t){super.updated(t),t.has("checked")&&(this.checked?(this._uncheckSiblings(),this.internals.setFormValue(this.value??null)):this.internals.setFormValue(null),this._updateGroupValidation()),t.has("required")&&this.control&&(this.control.required=this.required??!1),this._disabledIsAuthorControlled||this.disabled===this._parentRequestDisabled||(this._settingDisabledFromParent=!0,this.disabled=this._parentRequestDisabled??!1,this._settingDisabledFromParent=!1)}_getGroupRadios(){if(!this.name)return[this];const t=this.getRootNode();return Array.from(t.querySelectorAll(`sds-radio[name="${this.name}"]`))}_updateGroupValidation(){const t=this._getGroupRadios(),e=t.some(t=>t.checked),s=t.some(t=>t.required);t.forEach(t=>{t.control&&(s?t.internals.setValidity(e?{}:{valueMissing:!0},e?"":t.control.validationMessage,t.control):t.internals.setValidity({}))})}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this.checked?this.value??"on":null),this._updateGroupValidation()}_uncheckSiblings(){if(!this.name)return;const t=this._getGroupRadios();for(const e of t)e!==this&&e.checked&&(e.checked=!1,e.internals.setFormValue(null))}get type(){return"radio"}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}get willValidate(){return this.internals.willValidate}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}setCustomValidity(t){this.internals.setValidity({customError:!!t},t)}formDisabledCallback(t){this._settingDisabledFromParent=!0,this.disabled=t,this._settingDisabledFromParent=!1,this.control&&(this.control.disabled=t)}render(){const t={"sds-radio":!0,"sds-radio--error":Boolean(this.error)},e=this._hasSlottedLabel||Boolean(this.label),s={"sds-radio__input":!0,"sds-radio__input--error":Boolean(this.error)},o=this.helpText?"help-text":void 0;return tt`
|
|
2278
2378
|
<div class="${Jt(t)}">
|
|
2279
2379
|
<input
|
|
2280
2380
|
id="control"
|
|
@@ -2299,7 +2399,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2299
2399
|
</label>
|
|
2300
2400
|
${this.helpText?tt`<span id="help-text" class="sds-radio__help-text">${this.helpText}</span>`:st}
|
|
2301
2401
|
</div>
|
|
2302
|
-
`}};
|
|
2402
|
+
`}};na.styles=[ra],da([E({type:Boolean,reflect:!0})],na.prototype,"required",2),da([E({type:String,reflect:!0})],na.prototype,"label",2),da([E({type:Boolean,reflect:!0,attribute:"hide-label"})],na.prototype,"hideLabel",2),da([E({type:String})],na.prototype,"value",2),da([E({type:Boolean,reflect:!0})],na.prototype,"checked",2),da([E({type:Boolean,reflect:!0})],na.prototype,"error",2),da([E({type:String,reflect:!0})],na.prototype,"size",2),da([E({type:String,attribute:"help-text"})],na.prototype,"helpText",2),da([E({type:Boolean,reflect:!0})],na.prototype,"disabled",1),da([E({type:Boolean,attribute:!1})],na.prototype,"parentRequestDisabled",1),da([O("#control")],na.prototype,"control",2),da([A()],na.prototype,"_hasSlottedLabel",2),na=da([P("sds-radio")],na);const la=l`
|
|
2303
2403
|
:host {
|
|
2304
2404
|
--_sds-radio-group-gap: var(--sds-radio-group-gap, var(--sds-spacing-xs));
|
|
2305
2405
|
--_sds-radio-group-row-gap: var(--sds-radio-group-row-gap, var(--sds-spacing-md));
|
|
@@ -2397,7 +2497,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2397
2497
|
--_sds-radio-group-help-text-font-size: var(--sds-radio-group-help-text-font-size, var(--sds-components-font-size-content-lg));
|
|
2398
2498
|
--_sds-radio-group-help-text-line-height: var(--sds-radio-group-help-text-line-height, var(--sds-components-line-height-squeezed-lg));
|
|
2399
2499
|
}
|
|
2400
|
-
`;var
|
|
2500
|
+
`;var ca=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,pa=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ha(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ca(e,s,a),a};const ga=["disabled","errorMessage","readOnly","required","size"];let va=class extends(Et(mt)){constructor(){super(...arguments),this.readOnly=!1,this.direction="column",this.disabled=!1,this.required=!1,this.size="md",this._selectedValue=null,this._handleRadioChange=t=>{const e=t.composedPath().find(t=>t instanceof HTMLElement&&"SDS-RADIO"===t.tagName);e&&(this._selectedValue=e.getAttribute("value")||null,this.dispatchSheriffEvent("sds-update"))},this._handleSlotChange=()=>{this._updateChildProps([...ga])}}_getChildRadios(){return this._slotElement?.assignedElements({flatten:!0}).filter(t=>"SDS-RADIO"===t.tagName)??[]}_updateChildProps(t){const e=this._getChildRadios();for(const s of e)for(const e of t)switch(e){case"readOnly":s.readOnly=this.readOnly;break;case"disabled":s.parentRequestDisabled=this.disabled;break;case"errorMessage":s.error=Boolean(this.errorMessage);break;case"required":s.required=this.required;break;case"size":s.size=this.size}}updated(t){super.updated(t);const e=Array.from(t.keys());(e.includes("errorMessage")||e.includes("error-message"))&&this._updateChildProps(["errorMessage"])}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"readonly"===t)return void this._updateChildProps(["readOnly"]);const o=t;ga.includes(o)&&this._updateChildProps([o])}render(){const t={"sds-radio-group":!0,"sds-radio-group--readonly":this.readOnly??!1,"sds-radio-group--disabled":this.disabled??!1},e={"sds-radio-group__radios":!0,"sds-radio-group--column":"column"===this.direction,"sds-radio-group--row":"row"===this.direction},s=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return tt`
|
|
2401
2501
|
<fieldset class="${Jt(t)}" aria-describedby="${Dt(s)}" aria-invalid="${this.errorMessage?"true":"false"}">
|
|
2402
2502
|
${this.legend?tt`<legend class="sds-radio-group__legend">${this.readOnly?tt`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:st}${this.legend}</legend>`:st}
|
|
2403
2503
|
${this.helpText?tt`<p id="help-text" class="sds-radio-group__help-text">${this.helpText}</p>`:st}
|
|
@@ -2408,7 +2508,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2408
2508
|
<p slot="message">${this.errorMessage}</p>
|
|
2409
2509
|
</sds-alert>`:st}
|
|
2410
2510
|
</fieldset>
|
|
2411
|
-
`}get value(){return{selectedValue:this._selectedValue}}};
|
|
2511
|
+
`}get value(){return{selectedValue:this._selectedValue}}};va.styles=[la],pa([E({type:String})],va.prototype,"legend",2),pa([E({type:String,attribute:"help-text"})],va.prototype,"helpText",2),pa([E({type:String,attribute:"error-message"})],va.prototype,"errorMessage",2),pa([E({type:Boolean,attribute:"readonly",reflect:!0})],va.prototype,"readOnly",2),pa([E({type:String})],va.prototype,"direction",2),pa([E({type:Boolean,reflect:!0})],va.prototype,"disabled",2),pa([E({type:Boolean,reflect:!0})],va.prototype,"required",2),pa([E({type:String,reflect:!0})],va.prototype,"size",2),pa([A()],va.prototype,"_selectedValue",2),pa([O("slot")],va.prototype,"_slotElement",2),va=pa([P("sds-radio-group")],va);const ua=l`
|
|
2412
2512
|
:host {
|
|
2413
2513
|
--_sds-select-background-color: var(--sds-select-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
|
|
2414
2514
|
--_sds-select-text-color: var(--sds-select-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
|
|
@@ -2450,6 +2550,11 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2450
2550
|
--_sds-select-error-border-color: var(--sds-select-error-border-color, var(--sds-color-alert-danger-border-default, var(--sds-color-neutral-border-strong)));
|
|
2451
2551
|
--_sds-select-error-text-color: var(--sds-select-error-text-color, var(--sds-color-alert-danger-text-default, var(--sds-color-neutral-text-default)));
|
|
2452
2552
|
|
|
2553
|
+
--_sds-select-icon-background-image: var(--sds-select-icon-background-image, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 32 32'%3E%3Cpath d='M16 20.5 8 12.5 9.867 10.633 16 16.767 22.133 10.633 24 12.5Z'/%3E%3C/svg%3E"));
|
|
2554
|
+
--_sds-select-icon-background-repeat: var(--sds-select-icon-background-repeat, no-repeat);
|
|
2555
|
+
--_sds-select-icon-background-size: var(--sds-select-icon-background-size, var(--sds-components-icon-md));
|
|
2556
|
+
--_sds-select-icon-background-position: var(--sds-select-icon-background-position, top 50% right var(--sds-spacing-3xs));
|
|
2557
|
+
|
|
2453
2558
|
all: unset;
|
|
2454
2559
|
display: block;
|
|
2455
2560
|
text-align: start;
|
|
@@ -2506,10 +2611,10 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2506
2611
|
border: var(--_sds-select-border-width) solid var(--_sds-select-border-color);
|
|
2507
2612
|
appearance: none;
|
|
2508
2613
|
|
|
2509
|
-
background-image:
|
|
2510
|
-
background-repeat:
|
|
2511
|
-
background-size:
|
|
2512
|
-
background-position:
|
|
2614
|
+
background-image: var(--_sds-select-icon-background-image);
|
|
2615
|
+
background-repeat: var(--_sds-select-icon-background-repeat);
|
|
2616
|
+
background-size: var(--_sds-select-icon-background-size);
|
|
2617
|
+
background-position: var(--_sds-select-icon-background-position);
|
|
2513
2618
|
|
|
2514
2619
|
&:hover {
|
|
2515
2620
|
--_sds-select-border-color: var(--sds-select-border-color, var(--sds-color-border-strong, var(--sds-color-neutral-border-strong)));
|
|
@@ -2522,7 +2627,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2522
2627
|
}
|
|
2523
2628
|
|
|
2524
2629
|
&:open {
|
|
2525
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 32 32'%3E%3Cpath d='m16 11.5 8 8-1.867 1.867L16 15.233l-6.133 6.134L8 19.5z'/%3E%3C/svg%3E");
|
|
2630
|
+
--_sds-select-icon-background-image: var(--sds-select-icon-background-image, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 32 32'%3E%3Cpath d='m16 11.5 8 8-1.867 1.867L16 15.233l-6.133 6.134L8 19.5z'/%3E%3C/svg%3E"));
|
|
2526
2631
|
}
|
|
2527
2632
|
}
|
|
2528
2633
|
|
|
@@ -2545,19 +2650,6 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2545
2650
|
cursor: not-allowed;
|
|
2546
2651
|
}
|
|
2547
2652
|
|
|
2548
|
-
.sds-select__icon {
|
|
2549
|
-
position: absolute;
|
|
2550
|
-
top: 50%;
|
|
2551
|
-
inset-inline-end: var(--_sds-select-padding-inline);
|
|
2552
|
-
transform: translateY(-50%);
|
|
2553
|
-
width: var(--sds-components-icon-md, 1rem);
|
|
2554
|
-
height: var(--sds-components-icon-md, 1rem);
|
|
2555
|
-
pointer-events: none;
|
|
2556
|
-
background-color: currentColor;
|
|
2557
|
-
mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.47 6.47a.75.75 0 0 1 1.06 0L8 8.94l2.47-2.47a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 0 1 0-1.06z' fill='black'/%3E%3C/svg%3E")
|
|
2558
|
-
no-repeat center / contain;
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
2653
|
:host([readonly]) {
|
|
2562
2654
|
--_sds-select-background-color: var(--sds-select-background-color, var(--sds-color-surface-tinted, var(--sds-color-neutral-surface-tinted)));
|
|
2563
2655
|
|
|
@@ -2574,6 +2666,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2574
2666
|
--_sds-select-label-line-height: var(--sds-select-label-line-height, var(--sds-components-line-height-squeezed-sm));
|
|
2575
2667
|
--_sds-select-helptext-font-size: var(--sds-select-helptext-font-size, var(--sds-components-font-size-content-sm));
|
|
2576
2668
|
--_sds-select-helptext-line-height: var(--sds-select-helptext-line-height, var(--sds-components-line-height-squeezed-sm));
|
|
2669
|
+
--_sds-select-icon-background-size: var(--sds-select-icon-background-size, var(--sds-components-icon-sm));
|
|
2577
2670
|
}
|
|
2578
2671
|
|
|
2579
2672
|
:host([size='lg']) {
|
|
@@ -2584,8 +2677,9 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2584
2677
|
--_sds-select-label-line-height: var(--sds-select-label-line-height, var(--sds-components-line-height-squeezed-lg));
|
|
2585
2678
|
--_sds-select-helptext-font-size: var(--sds-select-helptext-font-size, var(--sds-components-font-size-content-lg));
|
|
2586
2679
|
--_sds-select-helptext-line-height: var(--sds-select-helptext-line-height, var(--sds-components-line-height-squeezed-lg));
|
|
2680
|
+
--_sds-select-icon-background-size: var(--sds-select-icon-background-size, var(--sds-components-icon-lg));
|
|
2587
2681
|
}
|
|
2588
|
-
`;var
|
|
2682
|
+
`;var fa=Object.defineProperty,ba=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&fa(e,s,a),a};const ma=class extends(ee(Et(re(mt)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._hasSlottedLabel=!1,this._defaultValue=null,this._pendingLightDomSync=!1,this._handleSlotChange=()=>{if(null==this.value){const t=this.getLightDomSelectedValue();null!=t&&(this.value=t)}this._scheduleLightDomSync()},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0},this._handleChange=t=>{t.stopImmediatePropagation(),t.target instanceof HTMLSelectElement&&(this.disabled||this.readOnly?t.target.value=this.value??"":(this.value=t.target.value,this._setFormValue(this.value),this.updateValidity(),this.dispatchSheriffEvent("input"),this.dispatchSheriffEvent("change")))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{if(!this.readOnly)return;if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;/* @__PURE__ */new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"," ","Enter"]).has(t.key)&&(t.preventDefault(),t.stopImmediatePropagation())}}connectedCallback(){if(super.connectedCallback(),null==this.value){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);t&&(this.value=t.value)}this._startObservingLightDom()}disconnectedCallback(){this._stopObservingLightDom(),super.disconnectedCallback()}firstUpdated(){const t=this.control?.value??"";this.value=this.value??this.defaultValue??t,this.control.value=this.value??"",this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue),this.updateValidity()}updated(t){super.updated(t),this.control&&t.has("value")&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())}_setFormValue(t){this.internals.setFormValue(null==t?null:t)}_scheduleLightDomSync(){this._pendingLightDomSync||(this._pendingLightDomSync=!0,queueMicrotask(()=>{this._pendingLightDomSync=!1;const t=this.getLightDomSelectedValue();void 0!==t&&t!==this.value&&(this.value=t),this.requestUpdate(),this.updateComplete.then(()=>{this.control&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())})}))}_startObservingLightDom(){this._lightDomObserver||(this._lightDomObserver=new MutationObserver(t=>{for(const e of t){if("childList"===e.type)return void this._scheduleLightDomSync();if("characterData"===e.type)return void this._scheduleLightDomSync();if("attributes"===e.type){const t=e.target;if(!(t instanceof HTMLElement))continue;const s=t.tagName;if("OPTION"===s||"OPTGROUP"===s||"HR"===s)return void this._scheduleLightDomSync()}}}),this._lightDomObserver.observe(this,{subtree:!0,childList:!0,attributes:!0,characterData:!0}))}_stopObservingLightDom(){this._lightDomObserver?.disconnect(),this._lightDomObserver=void 0,this._pendingLightDomSync=!1}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}getLightDomSelectedValue(){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);return t?.value}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control&&(this.control.value=t),this.value=this._defaultValue??"",this.updateValidity()}renderFromLightDom(){const t=this.children??[];return Array.from(t).filter(t=>t instanceof HTMLElement).map(t=>{switch(t.tagName){case"OPTION":return this.renderOption(t);case"OPTGROUP":return this.renderOptgroup(t);case"HR":return tt`<hr />`;default:return st}})}renderOption(t){const e=t.getAttribute("value"),s=t.value,o=null!=this.value&&s===this.value;return tt` <option value=${Dt(null===e?void 0:e)} ?disabled=${t.disabled} .selected=${o}>${t.text}</option> `}renderOptgroup(t){const e=Array.from(t.querySelectorAll("option"));return tt` <optgroup label=${Dt(t.label||void 0)} ?disabled=${t.disabled}>${e.map(t=>this.renderOption(t))}</optgroup> `}render(){const t={"sds-select":!0,"sds-select--error":Boolean(this.errorMessage)},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0,s=this._hasSlottedLabel||Boolean(this.label);return tt`
|
|
2589
2683
|
<div class="${Jt(t)}">
|
|
2590
2684
|
<label for="control" class="sds-select__label" ?hidden="${!s}">
|
|
2591
2685
|
${this.readOnly?tt`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:st}<slot name="label" @slotchange=${this._handleLabelSlotChange}>${this.label}</slot>
|
|
@@ -2619,7 +2713,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2619
2713
|
</sds-alert>
|
|
2620
2714
|
`:st}
|
|
2621
2715
|
</div>
|
|
2622
|
-
`}};
|
|
2716
|
+
`}};ma.styles=[ua];let _a=ma;ba([E({type:String,reflect:!0})],_a.prototype,"label"),ba([E({type:String,attribute:!1})],_a.prototype,"value"),ba([E({type:String,attribute:"default-value"})],_a.prototype,"defaultValue"),ba([E({type:String,attribute:"help-text",reflect:!0})],_a.prototype,"helpText"),ba([E({type:String,attribute:"error-message",reflect:!0})],_a.prototype,"errorMessage"),ba([E({type:Boolean,reflect:!0})],_a.prototype,"required"),ba([E({type:String,reflect:!0})],_a.prototype,"size"),ba([O("#control")],_a.prototype,"control"),ba([A()],_a.prototype,"_hasSlottedLabel");var xa=Object.getOwnPropertyDescriptor;let ya=class extends _a{};ya=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?xa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-select")],ya);const wa=l`
|
|
2623
2717
|
:host {
|
|
2624
2718
|
display: flex;
|
|
2625
2719
|
flex-direction: row;
|
|
@@ -2654,7 +2748,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2654
2748
|
|
|
2655
2749
|
--sds-stepper-step-step-gap: 0 var(--sds-spacing-3xs);
|
|
2656
2750
|
}
|
|
2657
|
-
`;var
|
|
2751
|
+
`;var ka=Object.defineProperty,za=Object.getOwnPropertyDescriptor,$a=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?za(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ka(e,s,a),a};let Sa=class extends(Et(mt)){constructor(){super(),this.orientation="horizontal",this._setActiveStep=(t,e)=>{t.forEach((t,s)=>{t.active=s===e})},this._handleChildClick=t=>{t.preventDefault(),t.stopImmediatePropagation();const e=t.composedPath().find(t=>t instanceof Element&&"sds-stepper-step"===t.tagName.toLowerCase());if(!e)return;const s=this.steps.indexOf(e);-1!==s&&(this._setActiveStep(this.steps,s),this.dispatchSheriffEvent("change",{index:s}))},this.internals=this.attachInternals(),this.internals.role="tablist"}getActiveStep(){return this.steps.findIndex(t=>t.active)}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-label")||(this.ariaLabel="Steg")}goToStep(t){t<0||t>=this.steps.length||(this._setActiveStep(this.steps,t),this.dispatchSheriffEvent("change",{index:t}))}_applyStepNumbers(){this.steps.forEach((t,e)=>{t.style.setProperty("--sds-stepper-step-counter-content",`"${e+1}"`)})}firstUpdated(){const t=navigator.userAgent;if(/safari/i.test(t)&&!/chrome/i.test(t)&&!/crios/i.test(t)&&!/edgios/i.test(t)&&!/fxios/i.test(t)){this.shadowRoot.querySelector("slot").addEventListener("slotchange",()=>this._applyStepNumbers()),this._applyStepNumbers()}}render(){return tt`<slot @_sds-step-clicked="${this._handleChildClick}"></slot>`}};Sa.styles=[wa],$a([E({type:String,reflect:!0})],Sa.prototype,"orientation",2),$a([T({selector:"sds-stepper-step",flatten:!0})],Sa.prototype,"steps",2),Sa=$a([P("sds-stepper")],Sa);const Ca=l`
|
|
2658
2752
|
:host {
|
|
2659
2753
|
/* Sizing */
|
|
2660
2754
|
--_sds-stepper-step-circle-size: var(--sds-stepper-circle-size, 28px);
|
|
@@ -2915,7 +3009,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2915
3009
|
--_sds-stepper-step-counter-border-color: var(--sds-stepper-step-counter-border-color, var(--sds-color-neutral-border-strong));
|
|
2916
3010
|
--_sds-stepper-step-counter-text-color: var(--sds-stepper-step-counter-text-color, var(--sds-color-neutral-text-default));
|
|
2917
3011
|
}
|
|
2918
|
-
`;var
|
|
3012
|
+
`;var Ea=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,La=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Aa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ea(e,s,a),a};let Oa=class extends(Et(mt)){constructor(){super(),this.complete=!1,this.interactive=!1,this.active=!1,this._handleClick=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.dispatchSheriffEvent("_sds-step-clicked")},this._renderNonInteractiveStep=()=>tt`<div class="sds-stepper-step__step--static">
|
|
2919
3013
|
<span class="sds-stepper-step__counter"></span>
|
|
2920
3014
|
<div class="sds-stepper-step__label"><slot></slot></div>
|
|
2921
3015
|
</div>`,this._renderInteractiveStep=()=>tt`<button type="button" role="tab" aria-selected="${this.active?"true":"false"}" id="button" class="sds-stepper-step__step" @click="${this._handleClick}">
|
|
@@ -2929,7 +3023,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
2929
3023
|
<span class="sds-stepper-step__divider sds-stepper-step__divider--before"></span>
|
|
2930
3024
|
${this._renderNonInteractiveStep()}
|
|
2931
3025
|
<span class="sds-stepper-step__divider sds-stepper-step__divider--after"></span>
|
|
2932
|
-
</div>`}};
|
|
3026
|
+
</div>`}};Oa.styles=[Ca],Oa.shadowRootOptions={...mt.shadowRootOptions,delegatesFocus:!0},La([E({type:Boolean,reflect:!0})],Oa.prototype,"complete",2),La([E({type:Boolean,reflect:!0})],Oa.prototype,"interactive",2),La([E({type:Boolean,reflect:!0})],Oa.prototype,"active",2),Oa=La([P("sds-stepper-step")],Oa);const Ta=l`
|
|
2933
3027
|
:host {
|
|
2934
3028
|
--_sds-switch-background-color: var(--sds-switch-background-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
|
|
2935
3029
|
--_sds-switch-text-color: var(--sds-switch-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
|
|
@@ -3079,7 +3173,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
3079
3173
|
.sds-switch__input:checked::before {
|
|
3080
3174
|
--_sds-switch-button-position: calc(var(--_sds-switch-width) - var(--_sds-switch-button-size) - var(--_sds-switch-button-gap) - var(--_sds-switch-border-width));
|
|
3081
3175
|
}
|
|
3082
|
-
`;var
|
|
3176
|
+
`;var Pa=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,Ma=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Da(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Pa(e,s,a),a};let qa=class extends(ee(Et(re(mt)))){constructor(){super(...arguments),this.label="",this.hideLabel=!1,this.reverse=!1,this.checked=!1,this.size="md",this._hasSlottedLabel=!1,this._initialChecked=!1,this._handleChange=t=>{if(t.stopImmediatePropagation(),this.disabled||this.readOnly)return t.target.checked=this.checked,void t.preventDefault();const e=t.target;this.checked=e.checked,this.internals.setFormValue(this.checked?"on":"off"),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("blur")},this.getIconSize=()=>{switch(this.size){case"sm":case"md":case"lg":return this.size;case"l":return"lg";case"s":return"sm"}},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.setFormValue(this.checked?"on":"off")}updated(t){super.updated(t),t.has("checked")&&(this.control.checked=this.checked,this.internals.setFormValue(this.checked?"on":"off"))}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this._initialChecked?"on":"off")}formStateRestoreCallback(t){this.checked=t}get value(){return this.checked?"on":"off"}get type(){return"checkbox"}render(){const t={"sds-switch__label":!0,"sds-switch__label--hidden":this.hideLabel},e=tt`<input
|
|
3083
3177
|
class="sds-switch__input"
|
|
3084
3178
|
id="control"
|
|
3085
3179
|
type="checkbox"
|
|
@@ -3094,7 +3188,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
3094
3188
|
@blur="${this._handleBlur}"
|
|
3095
3189
|
/>`,s=this.readOnly?tt`<sds-icon name="lock-material-filled" size="${this.getIconSize()}"></sds-icon>`:st,o=this._hasSlottedLabel||Boolean(this.label),r=tt`<label class="${Jt(t)}" for="control" ?hidden="${!o}">
|
|
3096
3190
|
${s}<slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
|
|
3097
|
-
</label>`;return tt`<div class="${Jt({"sds-switch":!0})}">${this.reverse?[r,e]:[e,r]}</div>`}};
|
|
3191
|
+
</label>`;return tt`<div class="${Jt({"sds-switch":!0})}">${this.reverse?[r,e]:[e,r]}</div>`}};qa.styles=[Ta],Ma([E({type:String,reflect:!0})],qa.prototype,"label",2),Ma([E({type:Boolean,reflect:!0,attribute:"hide-label"})],qa.prototype,"hideLabel",2),Ma([E({type:Boolean,reflect:!0})],qa.prototype,"reverse",2),Ma([E({type:Boolean,reflect:!0})],qa.prototype,"checked",2),Ma([E({type:String,reflect:!0})],qa.prototype,"size",2),Ma([O("#control")],qa.prototype,"control",2),Ma([A()],qa.prototype,"_hasSlottedLabel",2),qa=Ma([P("sds-switch")],qa);const Ra=l`
|
|
3098
3192
|
:host {
|
|
3099
3193
|
--_sds-tag-background-color: var(--sds-tag-background-color, var(--sds-color-surface-tinted, var(--sds-color-neutral-surface-tinted)));
|
|
3100
3194
|
--_sds-tag-text-color: var(--sds-tag-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
|
|
@@ -3155,9 +3249,9 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
3155
3249
|
--_sds-tag-font-size: var(--sds-tag-font-size, var(--sds-components-font-size-content-lg));
|
|
3156
3250
|
--_sds-tag-line-height: var(--sds-tag-line-height, var(--sds-components-line-height-squeezed-lg));
|
|
3157
3251
|
}
|
|
3158
|
-
`;var
|
|
3252
|
+
`;var Va=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,Ha=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ba(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Va(e,s,a),a};let ja=class extends mt{constructor(){super(...arguments),this.size="md"}render(){return tt`<span class="${Jt({"sds-tag":!0})}">
|
|
3159
3253
|
<slot></slot>
|
|
3160
|
-
</span>`}};
|
|
3254
|
+
</span>`}};ja.styles=[Ra],Ha([E({type:String,reflect:!0})],ja.prototype,"size",2),ja=Ha([P("sds-tag")],ja);const Fa=l`
|
|
3161
3255
|
${n('[data-tooltip]{--ds-tooltip:"";--_ds-data-tooltip:var(--ds-tooltip)}:host{--_ds-floating:top;--_ds-floating-arrow-size:0;--_ds-floating-arrow-visibility:inherit;animation:ds-fade-in .15s ease-in-out forwards;inset:0 auto auto 0;margin:0;overflow:visible;position:absolute}:host:before{background:inherit;border:inherit;border-left-color:transparent;border-top-color:transparent;box-sizing:border-box;content:"";height:var(--_ds-floating-arrow-size);left:var(--_ds-floating-arrow-x,50%);position:absolute;rotate:45deg;top:var(--_ds-floating-arrow-y,100%);translate:-50% -50%;visibility:var(--_ds-floating-arrow-visibility);width:var(--_ds-floating-arrow-size)}:host[data-overscroll=contain]{--_ds-floating-overscroll:contain;overscroll-behavior:contain;overflow:auto}:host{&[data-floating|=top]:before{top:100%;rotate:45deg}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{top:0;rotate:-135deg}&[data-floating|=left]:before{left:100%;rotate:-45deg}--_ds-floating:var(--dsc-tooltip-placement);--_ds-floating-arrow-size:var(--dsc-tooltip-arrow-size);--dsc-tooltip-background:var(--ds-color-neutral-text-default);--dsc-tooltip-color:var(--ds-color-neutral-background-default);--dsc-tooltip-border-radius:var(--ds-border-radius-default);--dsc-tooltip-padding:var(--ds-size-1) var(--ds-size-2);--dsc-tooltip-arrow-size:var(--ds-size-2);--dsc-tooltip-transition-duration:0.2s;--dsc-tooltip-transition-delay:150ms;--dsc-tooltip-placement:top;background:var(--dsc-tooltip-background);border-radius:var(--dsc-tooltip-border-radius);border:0;box-sizing:border-box;color:var(--dsc-tooltip-color);line-height:var(--ds-line-height-sm);padding:var(--dsc-tooltip-padding);view-transition-name:ds-tooltip}:host:after{content:"";box-sizing:border-box;height:var(--_dsc-tooltip-safearea-height,0);width:var(--_dsc-tooltip-safearea-width,0);translate:var(--_dsc-tooltip-safearea-translate);position:absolute;left:var(--_ds-floating-arrow-x,50%);top:var(--_ds-floating-arrow-y,100%)}:host[data-floating=bottom]:after,:host[data-floating=top]:after{top:100%;left:0;width:100%;height:var(--dsc-tooltip-arrow-size)}:host[data-floating=left]:after,:host[data-floating=right]:after{top:0;left:100%;width:var(--dsc-tooltip-arrow-size);height:100%}:host[data-floating=bottom]:after{top:calc(var(--dsc-tooltip-arrow-size)*-1)}:host[data-floating=right]:after{left:calc(var(--dsc-tooltip-arrow-size)*-1)}:host:not([popover]){display:none}@media (forced-colors:active){:host{background:CanvasText}}')}
|
|
3162
3256
|
|
|
3163
3257
|
:host {
|
|
@@ -3240,7 +3334,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
3240
3334
|
border: 1px solid CanvasText;
|
|
3241
3335
|
}
|
|
3242
3336
|
}
|
|
3243
|
-
`;var
|
|
3337
|
+
`;var Ia=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,Ua=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Na(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ia(e,s,a),a};let Wa=class extends(Et(mt)){constructor(){super(...arguments),this.placement="top",this.triggers=[],this.cleanups=[],this.onSelfMouseEnter=()=>{clearTimeout(this.hoverTimeout)},this.onSelfMouseLeave=()=>this.hide(),this.onKeyDown=t=>{"Escape"===t.key&&this.hide()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tooltip"),this.setAttribute("popover","manual"),this.setAttribute("aria-hidden","true"),this.dataset.placement=this.placement,this.bindTriggers(),requestAnimationFrame(()=>this.syncTriggerLabels())}updated(t){t.has("placement")&&(this.dataset.placement=this.placement)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.hoverTimeout),document.removeEventListener("keydown",this.onKeyDown);for(const t of this.cleanups)t();this.cleanups=[],this.triggers=[],this.activeTrigger=void 0}render(){return tt`<slot @slotchange=${this.syncTriggerLabels}></slot>`}syncTriggerLabels(){const t=this.textContent?.trim()??"";t&&this.triggers.map(e=>{const s=e.shadowRoot?.querySelector("button, a")??e;this.cleanups.push(()=>s.removeAttribute("aria-label")),s.setAttribute("aria-label",t)})}bindTriggers(){if(this.id){this.triggers=[...document.querySelectorAll("[aria-describedby]")].filter(t=>{const e=t.getAttribute("aria-describedby");return e?.split(/\s+/).includes(this.id)??!1});for(const t of this.triggers){const e=()=>this.show(t),s=()=>this.scheduleHide(),o=()=>this.show(t),r=()=>this.hide();t.addEventListener("mouseenter",e),t.addEventListener("mouseleave",s),t.addEventListener("focusin",o),t.addEventListener("focusout",r),this.cleanups.push(()=>{t.removeEventListener("mouseenter",e),t.removeEventListener("mouseleave",s),t.removeEventListener("focusin",o),t.removeEventListener("focusout",r)})}this.addEventListener("mouseenter",this.onSelfMouseEnter),this.addEventListener("mouseleave",this.onSelfMouseLeave),this.cleanups.push(()=>{this.removeEventListener("mouseenter",this.onSelfMouseEnter),this.removeEventListener("mouseleave",this.onSelfMouseLeave)})}}show(t){clearTimeout(this.hoverTimeout),this.matches(":popover-open")||this.showPopover(),this.activeTrigger!==t&&(this.activeTrigger=t,this.dispatchSheriffEvent("toggle",t)),document.addEventListener("keydown",this.onKeyDown)}hide(){clearTimeout(this.hoverTimeout);try{this.hidePopover()}catch{}this.activeTrigger=void 0,document.removeEventListener("keydown",this.onKeyDown)}scheduleHide(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>this.hide(),200)}};Wa.styles=[Fa],Ua([E({type:String,reflect:!0})],Wa.prototype,"placement",2),Wa=Ua([P("sds-tooltip")],Wa);const Ka=l`
|
|
3244
3338
|
:host {
|
|
3245
3339
|
--_sds-text-font-family: var(--sds-text-font-family, var(--sds-typography-font-family-roboto));
|
|
3246
3340
|
--_sds-text-font-size: var(--sds-text-font-size, var(--sds-typography-body-md-mobile-font-size));
|
|
@@ -3655,7 +3749,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
3655
3749
|
--_sds-text-line-height: var(--sds-text-line-height, var(--sds-typography-leadtext-xl-strong-tall-desktop-line-height));
|
|
3656
3750
|
}
|
|
3657
3751
|
}
|
|
3658
|
-
`;var
|
|
3752
|
+
`;var Ga=Object.defineProperty,Ya=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Ga(e,s,a),a};const Xa=class extends mt{constructor(){super(...arguments),this.size="md",this.strong=!1,this.tall=!1}render(){return tt`<p><slot></slot></p>`}};Xa.styles=[Ka];let Za=Xa;Ya([E({type:String,reflect:!0})],Za.prototype,"size"),Ya([E({type:Boolean,reflect:!0})],Za.prototype,"strong"),Ya([E({type:Boolean,reflect:!0})],Za.prototype,"tall");var Qa=Object.getOwnPropertyDescriptor;let Ja=class extends Za{};Ja=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Qa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-text")],Ja);const ti=l`
|
|
3659
3753
|
:host {
|
|
3660
3754
|
--_sds-textfield-background-color: var(--sds-textfield-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
|
|
3661
3755
|
--_sds-textfield-text-color: var(--sds-textfield-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
|
|
@@ -3827,7 +3921,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
3827
3921
|
--sds-icon-size: var(--sds-textfield-icon-size, var(--sds-components-icon-lg));
|
|
3828
3922
|
}
|
|
3829
3923
|
}
|
|
3830
|
-
`;var
|
|
3924
|
+
`;var ei=Object.defineProperty,si=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ei(e,s,a),a};const oi=class extends(ee(Et(re(mt)))){constructor(){super(...arguments),this.type="text",this.required=!1,this.size="md",this.hasIcon=!1,this._hasSlottedLabel=!1,this._defaultValue=null,this.handleSlotChange=t=>{const e=t.target;this.hasIcon=e.assignedNodes({flatten:!0}).length>0},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0},this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLInputElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{t.stopImmediatePropagation();if(this.dispatchKeyboardEvent("keydown",t)&&"Enter"===t.key){for(const t of Array.from(this.form?.elements??[]))if(t instanceof HTMLButtonElement||t instanceof HTMLInputElement){if("submit"!==t.type)continue;if(t.disabled)return;return void t.click()}this.form?.requestSubmit()}}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t={"sds-textfield":!0,"sds-textfield--error":Boolean(this.errorMessage),"sds-textfield--has-icon":this.hasIcon},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0,s=this._hasSlottedLabel||Boolean(this.label);return tt`
|
|
3831
3925
|
<div class="${Jt(t)}">
|
|
3832
3926
|
<label for="sds-textfield" class="sds-textfield__label" ?hidden="${!s}">
|
|
3833
3927
|
${this.readOnly?tt`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:st}
|
|
@@ -3865,7 +3959,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
3865
3959
|
</div>
|
|
3866
3960
|
${this.errorMessage?tt`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:st}
|
|
3867
3961
|
</div>
|
|
3868
|
-
`}};
|
|
3962
|
+
`}};oi.styles=[ti];let ri=oi;si([E({type:String,reflect:!0})],ri.prototype,"type"),si([E({type:String})],ri.prototype,"value"),si([E({type:String,reflect:!0})],ri.prototype,"label"),si([E({type:String,reflect:!0})],ri.prototype,"placeholder"),si([E({type:String,attribute:"help-text",reflect:!0})],ri.prototype,"helpText"),si([E({type:String,attribute:"error-message",reflect:!0})],ri.prototype,"errorMessage"),si([E({type:String,reflect:!0})],ri.prototype,"autocomplete"),si([E({type:Boolean,reflect:!0})],ri.prototype,"required"),si([E({type:String,reflect:!0})],ri.prototype,"pattern"),si([E({type:Number,reflect:!0})],ri.prototype,"minlength"),si([E({type:Number,reflect:!0})],ri.prototype,"maxlength"),si([E({type:String,reflect:!0})],ri.prototype,"min"),si([E({type:String,reflect:!0})],ri.prototype,"max"),si([E({type:String,reflect:!0})],ri.prototype,"size"),si([A()],ri.prototype,"hasIcon"),si([A()],ri.prototype,"_hasSlottedLabel"),si([O("#sds-textfield")],ri.prototype,"control");var ai=Object.getOwnPropertyDescriptor;let ii=class extends ri{};ii=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ai(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-textfield")],ii);const di=l`
|
|
3869
3963
|
:host {
|
|
3870
3964
|
--_sds-textarea-background-color: var(--sds-textarea-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
|
|
3871
3965
|
--_sds-textarea-text-color: var(--sds-textarea-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
|
|
@@ -4061,7 +4155,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
4061
4155
|
--_sds-textarea-counter-font-size: var(--sds-textarea-counter-font-size, var(--sds-components-font-size-content-lg));
|
|
4062
4156
|
--_sds-textarea-counter-line-height: var(--sds-textarea-counter-line-height, var(--sds-components-line-height-squeezed-lg));
|
|
4063
4157
|
}
|
|
4064
|
-
`;var
|
|
4158
|
+
`;var ni=Object.defineProperty,li=Object.getOwnPropertyDescriptor,ci=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?li(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ni(e,s,a),a};let hi=class extends(ee(Et(re(mt)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._hasSlottedLabel=!1,this._defaultValue=null,this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLTextAreaElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}hasTypedTooManyCharacters(){if(!this.counter)return!1;return(this.value?.length||0)>this.counter}renderCharacterCounter(){if(void 0===this.counter)return st;const t=this.value?.length||0;return this.hasTypedTooManyCharacters()?tt`<sds-alert variant="secondary" data-palette="danger"
|
|
4065
4159
|
><p class="sds-textarea__character-counter" slot="message">Du har ${t-this.counter} tegn for mye</p></sds-alert
|
|
4066
4160
|
>`:tt`<p class="sds-textarea__character-counter">Du har ${this.counter-t} tegn igjen</p>`}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}type(){return"textarea"}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t=Boolean(this.errorMessage||this.hasTypedTooManyCharacters()),e=this._hasSlottedLabel||Boolean(this.label),s={"sds-textarea":!0,"sds-textarea--error":t},o=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return tt`
|
|
4067
4161
|
<div class="${Jt(s)}">
|
|
@@ -4100,4 +4194,4 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
|
|
|
4100
4194
|
${this.errorMessage?tt`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:st}
|
|
4101
4195
|
${this.renderCharacterCounter()}
|
|
4102
4196
|
</div>
|
|
4103
|
-
`}};
|
|
4197
|
+
`}};hi.styles=[di],ci([E({type:String})],hi.prototype,"value",2),ci([E({type:String,reflect:!0})],hi.prototype,"label",2),ci([E({type:String,reflect:!0})],hi.prototype,"placeholder",2),ci([E({type:String,attribute:"help-text",reflect:!0})],hi.prototype,"helpText",2),ci([E({type:String,attribute:"error-message",reflect:!0})],hi.prototype,"errorMessage",2),ci([E({type:String,reflect:!0})],hi.prototype,"autocomplete",2),ci([E({type:Boolean,reflect:!0})],hi.prototype,"required",2),ci([E({type:Number,reflect:!0})],hi.prototype,"rows",2),ci([E({type:Number,reflect:!0})],hi.prototype,"cols",2),ci([E({type:String,reflect:!0})],hi.prototype,"wrap",2),ci([E({type:Number,reflect:!0})],hi.prototype,"minlength",2),ci([E({type:Number,reflect:!0})],hi.prototype,"maxlength",2),ci([E({type:Number,reflect:!0})],hi.prototype,"counter",2),ci([E({type:String,reflect:!0})],hi.prototype,"size",2),ci([O("#sds-textarea")],hi.prototype,"control",2),ci([A()],hi.prototype,"_hasSlottedLabel",2),hi=ci([P("sds-textarea")],hi);export{fe as SDSAlert,ve as SDSButton,we as SDSCard,Ce as SDSCheckbox,Pe as SDSCheckboxGroup,Ve as SDSChip,Ze as SDSDetails,ss as SDSDetailsGroup,cs as SDSDialog,We as SDSEnvironmentBanner,bs as SDSHeading,Qt as SDSIcon,ws as SDSLoader,As as SDSNotification,oa as SDSPopover,Ds as SDSProcess,Bs as SDSProcessStep,na as SDSRadio,va as SDSRadioGroup,ya as SDSSelect,Sa as SDSStepper,Oa as SDSStepperStep,qa as SDSSwitch,ja as SDSTag,Ja as SDSText,hi as SDSTextArea,ii as SDSTextField,Wa as SDSTooltip};
|