Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@phase2/outline-alert

Package Overview
Dependencies
Maintainers
9
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phase2/outline-alert - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

71

dist/index.js

@@ -1,6 +0,6 @@

"use strict";(()=>{var je=Object.defineProperty;var Ke=Object.getOwnPropertyDescriptor;var b=(r,e,t,o)=>{for(var n=o>1?void 0:o?Ke(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(n=(o?s(e,t,n):s(n))||n);return o&&n&&je(e,t,n),n};var B=window,V=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Z=Symbol(),me=new WeakMap,R=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==Z)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(V&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=me.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&me.set(t,e))}return e}toString(){return this.cssText}},q=r=>new R(typeof r=="string"?r:r+"",void 0,Z),S=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,n,i)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[i+1],r[0]);return new R(t,r,Z)},Y=(r,e)=>{V?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),n=B.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)})},j=V?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return q(t)})(r):r;var J,K=window,fe=K.trustedTypes,We=fe?fe.emptyScript:"",ve=K.reactiveElementPolyfillSupport,ee={toAttribute(r,e){switch(e){case Boolean:r=r?We:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},ge=(r,e)=>e!==r&&(e==e||r==r),Q={attribute:!0,type:String,converter:ee,reflect:!1,hasChanged:ge},v=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;(t=this.h)!==null&&t!==void 0||(this.h=[]),this.h.push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,o)=>{let n=this._$Ep(o,t);n!==void 0&&(this._$Ev.set(n,o),e.push(n))}),e}static createProperty(e,t=Q){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let o=typeof e=="symbol"?Symbol():"__"+e,n=this.getPropertyDescriptor(e,o,t);n!==void 0&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){return{get(){return this[t]},set(n){let i=this[e];this[t]=n,this.requestUpdate(e,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Q}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let n of o)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(j(n))}else e!==void 0&&t.push(j(e));return t}static _$Ep(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,o;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Y(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var o;return(o=t.hostConnected)===null||o===void 0?void 0:o.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var o;return(o=t.hostDisconnected)===null||o===void 0?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t,o=Q){var n;let i=this.constructor._$Ep(e,o);if(i!==void 0&&o.reflect===!0){let s=(((n=o.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?o.converter:ee).toAttribute(t,o.type);this._$El=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(e,t){var o;let n=this.constructor,i=n._$Ev.get(e);if(i!==void 0&&this._$El!==i){let s=n.getPropertyOptions(i),c=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?s.converter:ee;this._$El=i,this[i]=c.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,o){let n=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||ge)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,i)=>this[i]=n),this._$Ei=void 0);let t=!1,o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var i;return(i=n.hostUpdate)===null||i===void 0?void 0:i.call(n)}),this.update(o)):this._$Ek()}catch(n){throw t=!1,this._$Ek(),n}t&&this._$AE(o)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(o=>{var n;return(n=o.hostUpdated)===null||n===void 0?void 0:n.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,o)=>this._$EO(o,this[o],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},ve?.({ReactiveElement:v}),((J=K.reactiveElementVersions)!==null&&J!==void 0?J:K.reactiveElementVersions=[]).push("1.4.1");var te,W=window,L=W.trustedTypes,be=L?L.createPolicy("lit-html",{createHTML:r=>r}):void 0,y=`lit$${(Math.random()+"").slice(9)}$`,$e="?"+y,Ge=`<${$e}>`,C=document,N=(r="")=>C.createComment(r),O=r=>r===null||typeof r!="object"&&typeof r!="function",we=Array.isArray,Xe=r=>we(r)||typeof r?.[Symbol.iterator]=="function",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ye=/-->/g,Ee=/>/g,A=RegExp(`>|[
"use strict";(()=>{var Be=Object.defineProperty;var Ve=Object.getOwnPropertyDescriptor;var b=(r,e,t,o)=>{for(var n=o>1?void 0:o?Ve(e,t):e,s=r.length-1,i;s>=0;s--)(i=r[s])&&(n=(o?i(e,t,n):i(n))||n);return o&&n&&Be(e,t,n),n};var F=window,B=F.ShadowRoot&&(F.ShadyCSS===void 0||F.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol(),pe=new WeakMap,k=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==X)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(B&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=pe.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&pe.set(t,e))}return e}toString(){return this.cssText}},V=r=>new k(typeof r=="string"?r:r+"",void 0,X),S=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,n,s)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[s+1],r[0]);return new k(t,r,X)},Z=(r,e)=>{B?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),n=F.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)})},q=B?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return V(t)})(r):r;var Y,j=window,me=j.trustedTypes,qe=me?me.emptyScript:"",fe=j.reactiveElementPolyfillSupport,Q={toAttribute(r,e){switch(e){case Boolean:r=r?qe:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},ve=(r,e)=>e!==r&&(e==e||r==r),J={attribute:!0,type:String,converter:Q,reflect:!1,hasChanged:ve},v=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;(t=this.h)!==null&&t!==void 0||(this.h=[]),this.h.push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,o)=>{let n=this._$Ep(o,t);n!==void 0&&(this._$Ev.set(n,o),e.push(n))}),e}static createProperty(e,t=J){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let o=typeof e=="symbol"?Symbol():"__"+e,n=this.getPropertyDescriptor(e,o,t);n!==void 0&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){return{get(){return this[t]},set(n){let s=this[e];this[t]=n,this.requestUpdate(e,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||J}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let n of o)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(q(n))}else e!==void 0&&t.push(q(e));return t}static _$Ep(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,o;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Z(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var o;return(o=t.hostConnected)===null||o===void 0?void 0:o.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var o;return(o=t.hostDisconnected)===null||o===void 0?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t,o=J){var n;let s=this.constructor._$Ep(e,o);if(s!==void 0&&o.reflect===!0){let i=(((n=o.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?o.converter:Q).toAttribute(t,o.type);this._$El=e,i==null?this.removeAttribute(s):this.setAttribute(s,i),this._$El=null}}_$AK(e,t){var o;let n=this.constructor,s=n._$Ev.get(e);if(s!==void 0&&this._$El!==s){let i=n.getPropertyOptions(s),c=typeof i.converter=="function"?{fromAttribute:i.converter}:((o=i.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?i.converter:Q;this._$El=s,this[s]=c.fromAttribute(t,i.type),this._$El=null}}requestUpdate(e,t,o){let n=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||ve)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,s)=>this[s]=n),this._$Ei=void 0);let t=!1,o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var s;return(s=n.hostUpdate)===null||s===void 0?void 0:s.call(n)}),this.update(o)):this._$Ek()}catch(n){throw t=!1,this._$Ek(),n}t&&this._$AE(o)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(o=>{var n;return(n=o.hostUpdated)===null||n===void 0?void 0:n.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,o)=>this._$EO(o,this[o],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},fe?.({ReactiveElement:v}),((Y=j.reactiveElementVersions)!==null&&Y!==void 0?Y:j.reactiveElementVersions=[]).push("1.4.1");var ee,K=window,L=K.trustedTypes,ge=L?L.createPolicy("lit-html",{createHTML:r=>r}):void 0,y=`lit$${(Math.random()+"").slice(9)}$`,Ae="?"+y,je=`<${Ae}>`,C=document,N=(r="")=>C.createComment(r),O=r=>r===null||typeof r!="object"&&typeof r!="function",$e=Array.isArray,Ke=r=>$e(r)||typeof r?.[Symbol.iterator]=="function",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,be=/-->/g,ye=/>/g,T=RegExp(`>|[
\f\r](?:([^\\s"'>=/]+)([
\f\r]*=[
\f\r]*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),xe=/'/g,Se=/"/g,_e=/^(?:script|style|textarea|title)$/i,Le=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),w=Le(1),Ce=Le(2),g=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),Ae=new WeakMap,He=(r,e,t)=>{var o,n;let i=(o=t?.renderBefore)!==null&&o!==void 0?o:e,s=i._$litPart$;if(s===void 0){let c=(n=t?.renderBefore)!==null&&n!==void 0?n:null;i._$litPart$=s=new $(e.insertBefore(N(),c),c,void 0,t??{})}return s._$AI(r),s},_=C.createTreeWalker(C,129,null,!1),Ze=(r,e)=>{let t=r.length-1,o=[],n,i=e===2?"<svg>":"",s=z;for(let l=0;l<t;l++){let a=r[l],p,d,u=-1,m=0;for(;m<a.length&&(s.lastIndex=m,d=s.exec(a),d!==null);)m=s.lastIndex,s===z?d[1]==="!--"?s=ye:d[1]!==void 0?s=Ee:d[2]!==void 0?(_e.test(d[2])&&(n=RegExp("</"+d[2],"g")),s=A):d[3]!==void 0&&(s=A):s===A?d[0]===">"?(s=n??z,u=-1):d[1]===void 0?u=-2:(u=s.lastIndex-d[2].length,p=d[1],s=d[3]===void 0?A:d[3]==='"'?Se:xe):s===Se||s===xe?s=A:s===ye||s===Ee?s=z:(s=A,n=void 0);let U=s===A&&r[l+1].startsWith("/>")?" ":"";i+=s===z?a+Ge:u>=0?(o.push(p),a.slice(0,u)+"$lit$"+a.slice(u)+y+U):a+y+(u===-2?(o.push(void 0),l):U)}let c=i+(r[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[be!==void 0?be.createHTML(c):c,o]},T=class{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let i=0,s=0,c=e.length-1,l=this.parts,[a,p]=Ze(e,t);if(this.el=T.createElement(a,o),_.currentNode=this.el.content,t===2){let d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(n=_.nextNode())!==null&&l.length<c;){if(n.nodeType===1){if(n.hasAttributes()){let d=[];for(let u of n.getAttributeNames())if(u.endsWith("$lit$")||u.startsWith(y)){let m=p[s++];if(d.push(u),m!==void 0){let U=n.getAttribute(m.toLowerCase()+"$lit$").split(y),F=/([.?@])?(.*)/.exec(m);l.push({type:1,index:i,name:F[2],strings:U,ctor:F[1]==="."?re:F[1]==="?"?ne:F[1]==="@"?ie:M})}else l.push({type:6,index:i})}for(let u of d)n.removeAttribute(u)}if(_e.test(n.tagName)){let d=n.textContent.split(y),u=d.length-1;if(u>0){n.textContent=L?L.emptyScript:"";for(let m=0;m<u;m++)n.append(d[m],N()),_.nextNode(),l.push({type:2,index:++i});n.append(d[u],N())}}}else if(n.nodeType===8)if(n.data===$e)l.push({type:2,index:i});else{let d=-1;for(;(d=n.data.indexOf(y,d+1))!==-1;)l.push({type:7,index:i}),d+=y.length-1}i++}}static createElement(e,t){let o=C.createElement("template");return o.innerHTML=e,o}};function H(r,e,t=r,o){var n,i,s,c;if(e===g)return e;let l=o!==void 0?(n=t._$Cl)===null||n===void 0?void 0:n[o]:t._$Cu,a=O(e)?void 0:e._$litDirective$;return l?.constructor!==a&&((i=l?._$AO)===null||i===void 0||i.call(l,!1),a===void 0?l=void 0:(l=new a(r),l._$AT(r,t,o)),o!==void 0?((s=(c=t)._$Cl)!==null&&s!==void 0?s:c._$Cl=[])[o]=l:t._$Cu=l),l!==void 0&&(e=H(r,l._$AS(r,e.values),l,o)),e}var oe=class{constructor(e,t){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var t;let{el:{content:o},parts:n}=this._$AD,i=((t=e?.creationScope)!==null&&t!==void 0?t:C).importNode(o,!0);_.currentNode=i;let s=_.nextNode(),c=0,l=0,a=n[0];for(;a!==void 0;){if(c===a.index){let p;a.type===2?p=new $(s,s.nextSibling,this,e):a.type===1?p=new a.ctor(s,a.name,a.strings,this,e):a.type===6&&(p=new se(s,this,e)),this.v.push(p),a=n[++l]}c!==a?.index&&(s=_.nextNode(),c++)}return i}m(e){let t=0;for(let o of this.v)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},$=class{constructor(e,t,o,n){var i;this.type=2,this._$AH=h,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$C_=(i=n?.isConnected)===null||i===void 0||i}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$C_}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=H(this,e,t),O(e)?e===h||e==null||e===""?(this._$AH!==h&&this._$AR(),this._$AH=h):e!==this._$AH&&e!==g&&this.$(e):e._$litType$!==void 0?this.T(e):e.nodeType!==void 0?this.k(e):Xe(e)?this.O(e):this.$(e)}S(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}k(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}$(e){this._$AH!==h&&O(this._$AH)?this._$AA.nextSibling.data=e:this.k(C.createTextNode(e)),this._$AH=e}T(e){var t;let{values:o,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=T.createElement(n.h,this.options)),n);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===i)this._$AH.m(o);else{let s=new oe(i,this),c=s.p(this.options);s.m(o),this.k(c),this._$AH=s}}_$AC(e){let t=Ae.get(e.strings);return t===void 0&&Ae.set(e.strings,t=new T(e)),t}O(e){we(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let i of e)n===t.length?t.push(o=new $(this.S(N()),this.S(N()),this,this.options)):o=t[n],o._$AI(i),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,t);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$C_=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},M=class{constructor(e,t,o,n,i){this.type=1,this._$AH=h,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=h}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,o,n){let i=this.strings,s=!1;if(i===void 0)e=H(this,e,t,0),s=!O(e)||e!==this._$AH&&e!==g,s&&(this._$AH=e);else{let c=e,l,a;for(e=i[0],l=0;l<i.length-1;l++)a=H(this,c[o+l],t,l),a===g&&(a=this._$AH[l]),s||(s=!O(a)||a!==this._$AH[l]),a===h?e=h:e!==h&&(e+=(a??"")+i[l+1]),this._$AH[l]=a}s&&!n&&this.P(e)}P(e){e===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},re=class extends M{constructor(){super(...arguments),this.type=3}P(e){this.element[this.name]=e===h?void 0:e}},Ye=L?L.emptyScript:"",ne=class extends M{constructor(){super(...arguments),this.type=4}P(e){e&&e!==h?this.element.setAttribute(this.name,Ye):this.element.removeAttribute(this.name)}},ie=class extends M{constructor(e,t,o,n,i){super(e,t,o,n,i),this.type=5}_$AI(e,t=this){var o;if((e=(o=H(this,e,t,0))!==null&&o!==void 0?o:h)===g)return;let n=this._$AH,i=e===h&&n!==h||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==h&&(n===h||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},se=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){H(this,e)}};var Te=W.litHtmlPolyfillSupport;Te?.(T,$),((te=W.litHtmlVersions)!==null&&te!==void 0?te:W.litHtmlVersions=[]).push("2.3.1");var le,ae;var E=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=o.firstChild),o}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=He(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return g}};E.finalized=!0,E._$litElement$=!0,(le=globalThis.litElementHydrateSupport)===null||le===void 0||le.call(globalThis,{LitElement:E});var Me=globalThis.litElementPolyfillSupport;Me?.({LitElement:E});((ae=globalThis.litElementVersions)!==null&&ae!==void 0?ae:globalThis.litElementVersions=[]).push("3.2.2");var G=r=>e=>typeof e=="function"?((t,o)=>(customElements.define(t,o),o))(r,e):((t,o)=>{let{kind:n,elements:i}=o;return{kind:n,elements:i,finisher(s){customElements.define(t,s)}}})(r,e);var Je=(r,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,r)}};function k(r){return(e,t)=>t!==void 0?((o,n,i)=>{n.constructor.createProperty(i,o)})(r,e,t):Je(r,e)}var de,It=((de=window.HTMLSlotElement)===null||de===void 0?void 0:de.prototype.assignedElements)!=null?(r,e)=>r.assignedElements(e):(r,e)=>r.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);var D=r=>r??h;var Re=Symbol.for(""),Qe=r=>{if(r?.r===Re)return r?._$litStatic$},ce=r=>({_$litStatic$:r,r:Re});var ke=new Map,ze=r=>(e,...t)=>{let o=t.length,n,i,s=[],c=[],l,a=0,p=!1;for(;a<o;){for(l=e[a];a<o&&(i=t[a],(n=Qe(i))!==void 0);)l+=n+e[++a],p=!0;c.push(i),s.push(l),a++}if(a===o&&s.push(e[o]),p){let d=s.join("$$lit$$");(e=ke.get(d))===void 0&&(s.raw=s,ke.set(d,e=s)),t=c}return r(e,...t)},Ne=ze(w),no=ze(Ce);var Oe=S`
\f\r"'\`<>=]|("|')|))|$)`,"g"),xe=/'/g,Ee=/"/g,we=/^(?:script|style|textarea|title)$/i,_e=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),w=_e(1),Le=_e(2),g=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),Se=new WeakMap,_=C.createTreeWalker(C,129,null,!1),We=(r,e)=>{let t=r.length-1,o=[],n,s=e===2?"<svg>":"",i=z;for(let l=0;l<t;l++){let a=r[l],p,d,u=-1,m=0;for(;m<a.length&&(i.lastIndex=m,d=i.exec(a),d!==null);)m=i.lastIndex,i===z?d[1]==="!--"?i=be:d[1]!==void 0?i=ye:d[2]!==void 0?(we.test(d[2])&&(n=RegExp("</"+d[2],"g")),i=T):d[3]!==void 0&&(i=T):i===T?d[0]===">"?(i=n??z,u=-1):d[1]===void 0?u=-2:(u=i.lastIndex-d[2].length,p=d[1],i=d[3]===void 0?T:d[3]==='"'?Ee:xe):i===Ee||i===xe?i=T:i===be||i===ye?i=z:(i=T,n=void 0);let U=i===T&&r[l+1].startsWith("/>")?" ":"";s+=i===z?a+je:u>=0?(o.push(p),a.slice(0,u)+"$lit$"+a.slice(u)+y+U):a+y+(u===-2?(o.push(void 0),l):U)}let c=s+(r[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ge!==void 0?ge.createHTML(c):c,o]},A=class{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let s=0,i=0,c=e.length-1,l=this.parts,[a,p]=We(e,t);if(this.el=A.createElement(a,o),_.currentNode=this.el.content,t===2){let d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(n=_.nextNode())!==null&&l.length<c;){if(n.nodeType===1){if(n.hasAttributes()){let d=[];for(let u of n.getAttributeNames())if(u.endsWith("$lit$")||u.startsWith(y)){let m=p[i++];if(d.push(u),m!==void 0){let U=n.getAttribute(m.toLowerCase()+"$lit$").split(y),P=/([.?@])?(.*)/.exec(m);l.push({type:1,index:s,name:P[2],strings:U,ctor:P[1]==="."?oe:P[1]==="?"?re:P[1]==="@"?ne:M})}else l.push({type:6,index:s})}for(let u of d)n.removeAttribute(u)}if(we.test(n.tagName)){let d=n.textContent.split(y),u=d.length-1;if(u>0){n.textContent=L?L.emptyScript:"";for(let m=0;m<u;m++)n.append(d[m],N()),_.nextNode(),l.push({type:2,index:++s});n.append(d[u],N())}}}else if(n.nodeType===8)if(n.data===Ae)l.push({type:2,index:s});else{let d=-1;for(;(d=n.data.indexOf(y,d+1))!==-1;)l.push({type:7,index:s}),d+=y.length-1}s++}}static createElement(e,t){let o=C.createElement("template");return o.innerHTML=e,o}};function H(r,e,t=r,o){var n,s,i,c;if(e===g)return e;let l=o!==void 0?(n=t._$Co)===null||n===void 0?void 0:n[o]:t._$Cl,a=O(e)?void 0:e._$litDirective$;return l?.constructor!==a&&((s=l?._$AO)===null||s===void 0||s.call(l,!1),a===void 0?l=void 0:(l=new a(r),l._$AT(r,t,o)),o!==void 0?((i=(c=t)._$Co)!==null&&i!==void 0?i:c._$Co=[])[o]=l:t._$Cl=l),l!==void 0&&(e=H(r,l._$AS(r,e.values),l,o)),e}var te=class{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;let{el:{content:o},parts:n}=this._$AD,s=((t=e?.creationScope)!==null&&t!==void 0?t:C).importNode(o,!0);_.currentNode=s;let i=_.nextNode(),c=0,l=0,a=n[0];for(;a!==void 0;){if(c===a.index){let p;a.type===2?p=new $(i,i.nextSibling,this,e):a.type===1?p=new a.ctor(i,a.name,a.strings,this,e):a.type===6&&(p=new se(i,this,e)),this.u.push(p),a=n[++l]}c!==a?.index&&(i=_.nextNode(),c++)}return s}p(e){let t=0;for(let o of this.u)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},$=class{constructor(e,t,o,n){var s;this.type=2,this._$AH=h,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cm=(s=n?.isConnected)===null||s===void 0||s}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=H(this,e,t),O(e)?e===h||e==null||e===""?(this._$AH!==h&&this._$AR(),this._$AH=h):e!==this._$AH&&e!==g&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ke(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==h&&O(this._$AH)?this._$AA.nextSibling.data=e:this.T(C.createTextNode(e)),this._$AH=e}$(e){var t;let{values:o,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=A.createElement(n.h,this.options)),n);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===s)this._$AH.p(o);else{let i=new te(s,this),c=i.v(this.options);i.p(o),this.T(c),this._$AH=i}}_$AC(e){let t=Se.get(e.strings);return t===void 0&&Se.set(e.strings,t=new A(e)),t}k(e){$e(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let s of e)n===t.length?t.push(o=new $(this.O(N()),this.O(N()),this,this.options)):o=t[n],o._$AI(s),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,t);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},M=class{constructor(e,t,o,n,s){this.type=1,this._$AH=h,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=h}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,o,n){let s=this.strings,i=!1;if(s===void 0)e=H(this,e,t,0),i=!O(e)||e!==this._$AH&&e!==g,i&&(this._$AH=e);else{let c=e,l,a;for(e=s[0],l=0;l<s.length-1;l++)a=H(this,c[o+l],t,l),a===g&&(a=this._$AH[l]),i||(i=!O(a)||a!==this._$AH[l]),a===h?e=h:e!==h&&(e+=(a??"")+s[l+1]),this._$AH[l]=a}i&&!n&&this.j(e)}j(e){e===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},oe=class extends M{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===h?void 0:e}},Ge=L?L.emptyScript:"",re=class extends M{constructor(){super(...arguments),this.type=4}j(e){e&&e!==h?this.element.setAttribute(this.name,Ge):this.element.removeAttribute(this.name)}},ne=class extends M{constructor(e,t,o,n,s){super(e,t,o,n,s),this.type=5}_$AI(e,t=this){var o;if((e=(o=H(this,e,t,0))!==null&&o!==void 0?o:h)===g)return;let n=this._$AH,s=e===h&&n!==h||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==h&&(n===h||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},se=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){H(this,e)}};var Te=K.litHtmlPolyfillSupport;Te?.(A,$),((ee=K.litHtmlVersions)!==null&&ee!==void 0?ee:K.litHtmlVersions=[]).push("2.4.0");var Ce=(r,e,t)=>{var o,n;let s=(o=t?.renderBefore)!==null&&o!==void 0?o:e,i=s._$litPart$;if(i===void 0){let c=(n=t?.renderBefore)!==null&&n!==void 0?n:null;s._$litPart$=i=new $(e.insertBefore(N(),c),c,void 0,t??{})}return i._$AI(r),i};var ie,le;var x=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=o.firstChild),o}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ce(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return g}};x.finalized=!0,x._$litElement$=!0,(ie=globalThis.litElementHydrateSupport)===null||ie===void 0||ie.call(globalThis,{LitElement:x});var He=globalThis.litElementPolyfillSupport;He?.({LitElement:x});((le=globalThis.litElementVersions)!==null&&le!==void 0?le:globalThis.litElementVersions=[]).push("3.2.2");var W=r=>e=>typeof e=="function"?((t,o)=>(customElements.define(t,o),o))(r,e):((t,o)=>{let{kind:n,elements:s}=o;return{kind:n,elements:s,finisher(i){customElements.define(t,i)}}})(r,e);var Xe=(r,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,r)}};function R(r){return(e,t)=>t!==void 0?((o,n,s)=>{n.constructor.createProperty(s,o)})(r,e,t):Xe(r,e)}var ae,It=((ae=window.HTMLSlotElement)===null||ae===void 0?void 0:ae.prototype.assignedElements)!=null?(r,e)=>r.assignedElements(e):(r,e)=>r.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);var D=r=>r??h;var Re=Symbol.for(""),Ze=r=>{if(r?.r===Re)return r?._$litStatic$},de=r=>({_$litStatic$:r,r:Re});var Me=new Map,ke=r=>(e,...t)=>{let o=t.length,n,s,i=[],c=[],l,a=0,p=!1;for(;a<o;){for(l=e[a];a<o&&(s=t[a],(n=Ze(s))!==void 0);)l+=n+e[++a],p=!0;c.push(s),i.push(l),a++}if(a===o&&i.push(e[o]),p){let d=i.join("$$lit$$");(e=Me.get(d))===void 0&&(i.raw=i,Me.set(d,e=i)),t=c}return r(e,...t)},ze=ke(w),no=ke(Le);var Ne=S`
/* Apply standardized box sizing to the component. */

@@ -16,4 +16,2 @@ :host {

/* Apply proper CSS for accessibly hiding elements to each component. */
:host([aria-hidden="true"]),
[aria-hidden="true"],
.visually-hidden {

@@ -256,19 +254,4 @@ position: absolute !important;

.md\:border-r, .md\:border-b{
border-color:currentColor;
}
@media (min-width: 640px){
.sm\:hover\:active\:disabled\:opacity-75:disabled:active:hover{
opacity:0.75;
}
}
@media (min-width: 768px){
.md\:mt-10{
margin-top:2.5rem;
}
.md\:flex{

@@ -278,43 +261,12 @@ display:flex;

.md\:border-r{
border-right-width:1px;
}
.md\:border-b{
border-bottom-width:1px;
}
.md\:p-8{
padding:2rem;
}
.md\:pt-24{
padding-top:6rem;
}
.md\:pb-24{
padding-bottom:6rem;
}
.md\:pb-0{
padding-bottom:0px;
}
}
@media (min-width: 1024px){
.lg\:mb-4{
margin-bottom:1rem;
}
.lg\:mb-2{
margin-bottom:0.5rem;
}
}
`;var x=class extends E{connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}_conditionalSlotTemplate({elementName:e,slotNameStub:t,wrapperElementType:o="div",ariaLabel:n=null}){let i=`${e}--${t}`;return this.querySelector(`[slot="${i}"]`)!==null?Ne`<${ce(o)} id="${t}" aria-label="${D(n)}">
`;var E=class extends x{connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}_conditionalSlotTemplate({elementName:e,slotNameStub:t,wrapperElementType:o="div",ariaLabel:n=null}){let s=`${e}--${t}`;return this.querySelector(`[slot="${s}"]`)!==null?ze`<${de(o)} id="${t}" aria-label="${D(n)}">
<slot
name="${i}"
name="${s}"
@slotchange="${()=>this.requestUpdate()}"
></slot>
</${ce(o)}>`:null}};x.styles=[Oe],x=b([G("outline-element")],x);var et="";function ue(r){et=r}var De=[...document.getElementsByTagName("script")],Ie=De.find(r=>r.hasAttribute("data-shoelace"));if(Ie)ue(Ie.getAttribute("data-shoelace"));else{let r=De.find(t=>/shoelace(\.min)?\.js($|\?)/.test(t.src)),e="";r&&(e=r.getAttribute("src")),ue(e.split("/").slice(0,-1).join("/"))}var P={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},So=new Map(Object.entries(P).map(([r,e])=>[r,parseInt(e.slice(0,-2))]).sort(([,r],[,e])=>r-e));var Co=new Map(Object.entries(P).map(([r,e])=>[r,parseInt(e.slice(0,-2))]).sort(([,r],[,e])=>r-e));var Pe=(()=>{let r=document.createElement("style"),e;try{document.head.appendChild(r),r.sheet.insertRule(":focus-visible { color: inherit }"),e=!0}catch{e=!1}finally{r.remove()}return e})(),tt=q(Pe?":focus-visible":":focus");var Ue={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Fe=r=>(...e)=>({_$litDirective$:r,values:e}),X=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var ot=Fe(class extends X{constructor(r){var e;if(super(r),r.type!==Ue.ATTRIBUTE||r.name!=="class"||((e=r.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){var t,o;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!(!((t=this.st)===null||t===void 0)&&t.has(i))&&this.nt.add(i);return this.render(e)}let n=r.element.classList;this.nt.forEach(i=>{i in e||(n.remove(i),this.nt.delete(i))});for(let i in e){let s=!!e[i];s===this.nt.has(i)||((o=this.st)===null||o===void 0?void 0:o.has(i))||(s?(n.add(i),this.nt.add(i)):(n.remove(i),this.nt.delete(i)))}return g}});var he=class extends Event{constructor(t){super("formdata");this.formData=t}},pe=class extends FormData{constructor(t){super(t);this.form=t,t.dispatchEvent(new he(this))}append(t,o){let n=this.form.elements[t];if(n||(n=document.createElement("input"),n.type="hidden",n.name=t,this.form.appendChild(n)),this.has(t)){let i=this.getAll(t),s=i.indexOf(n.value);s!==-1&&i.splice(s,1),i.push(o),this.set(t,i)}else super.append(t,o);n.value=o}};function rt(){let r=document.createElement("form"),e=!1;return document.body.append(r),r.addEventListener("submit",t=>{new FormData(t.target),t.preventDefault()}),r.addEventListener("formdata",()=>e=!0),r.dispatchEvent(new Event("submit",{cancelable:!0})),r.remove(),e}function Be(){!window.FormData||rt()||(window.FormData=pe,window.addEventListener("submit",r=>{r.defaultPrevented||new FormData(r.target)}))}document.readyState==="complete"?Be():window.addEventListener("DOMContentLoaded",()=>Be());var Ve=S`
</${de(o)}>`:null}};E.styles=[Ne],E=b([W("outline-element")],E);var Ye={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},xo=new Map(Object.entries(Ye).map(([r,e])=>[r,parseInt(e.slice(0,-2))]).sort(([,r],[,e])=>r-e));var Je={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},$o=new Map(Object.entries(Je).map(([r,e])=>[r,parseInt(e.slice(0,-2))]).sort(([,r],[,e])=>r-e));var Oe=(()=>{let r=document.createElement("style"),e;try{document.head.appendChild(r),r.sheet.insertRule(":focus-visible { color: inherit }"),e=!0}catch(t){e=!1}finally{r.remove()}return e})(),Qe=V(Oe?":focus-visible":":focus");var Ie={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},De=r=>(...e)=>({_$litDirective$:r,values:e}),G=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var et=De(class extends G{constructor(r){var e;if(super(r),r.type!==Ie.ATTRIBUTE||r.name!=="class"||((e=r.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){var t,o;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in e)e[s]&&!(!((t=this.st)===null||t===void 0)&&t.has(s))&&this.nt.add(s);return this.render(e)}let n=r.element.classList;this.nt.forEach(s=>{s in e||(n.remove(s),this.nt.delete(s))});for(let s in e){let i=!!e[s];i===this.nt.has(s)||((o=this.st)===null||o===void 0?void 0:o.has(s))||(i?(n.add(s),this.nt.add(s)):(n.remove(s),this.nt.delete(s)))}return g}});var ue=class extends Event{constructor(t){super("formdata");this.formData=t}},he=class extends FormData{constructor(t){super(t);this.form=t,t.dispatchEvent(new ue(this))}append(t,o){let n=this.form.elements[t];if(n||(n=document.createElement("input"),n.type="hidden",n.name=t,this.form.appendChild(n)),this.has(t)){let s=this.getAll(t),i=s.indexOf(n.value);i!==-1&&s.splice(i,1),s.push(o),this.set(t,s)}else super.append(t,o);n.value=o}};function tt(){let r=document.createElement("form"),e=!1;return document.body.append(r),r.addEventListener("submit",t=>{new FormData(t.target),t.preventDefault()}),r.addEventListener("formdata",()=>e=!0),r.dispatchEvent(new Event("submit",{cancelable:!0})),r.remove(),e}function Ue(){!window.FormData||tt()||(window.FormData=he,window.addEventListener("submit",r=>{r.defaultPrevented||new FormData(r.target)}))}document.readyState==="complete"?Ue():window.addEventListener("DOMContentLoaded",()=>Ue());var Pe=S`
/* Apply CSS Variables to the host element. */

@@ -345,3 +297,3 @@ :host {

--outline-alert--default-error-border:var(--status-error);
`;var qe=S`
`;var Fe=S`
/* Apply standardized box sizing to the component. */

@@ -357,4 +309,2 @@ :host {

/* Apply proper CSS for accessibly hiding elements to each component. */
:host([aria-hidden="true"]),
[aria-hidden="true"],
.visually-hidden {

@@ -455,3 +405,3 @@ position: absolute !important;

}
`;var st=["small","large"],lt=["info","warning","error","success"],f=class extends x{constructor(){super(...arguments);this.statusType="info";this.isInteractive=!1;this.shouldShowIcon=!0;this.size="large"}render(){return w`
`;var nt=["small","large"],st=["info","warning","error","success"],f=class extends E{constructor(){super(...arguments);this.statusType="info";this.isInteractive=!1;this.shouldShowIcon=!0;this.size="large"}render(){return w`
<div

@@ -476,3 +426,3 @@ class="alert-body"

</div>
`}};f.styles=[Ve,qe],b([k({type:String})],f.prototype,"statusType",2),b([k({type:Boolean})],f.prototype,"isInteractive",2),b([k({type:Boolean})],f.prototype,"shouldShowIcon",2),b([k({type:String})],f.prototype,"size",2),f=b([G("outline-alert")],f);})();
`}};f.styles=[Pe,Fe],b([R({type:String})],f.prototype,"statusType",2),b([R({type:Boolean})],f.prototype,"isInteractive",2),b([R({type:Boolean})],f.prototype,"shouldShowIcon",2),b([R({type:String})],f.prototype,"size",2),f=b([W("outline-alert")],f);})();
/**

@@ -503,2 +453,7 @@ * @license

*/
/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
//# sourceMappingURL=index.js.map

4

dist/src/outline-alert.d.ts
import { TemplateResult, CSSResultGroup } from 'lit';
import { OutlineElement } from '@phase2/outline-core';
export declare const alertSizes: readonly ["small", "large"];
export declare type AlertSize = typeof alertSizes[number];
export type AlertSize = typeof alertSizes[number];
export declare const alertStatusTypes: readonly ["info", "warning", "error", "success"];
export declare type AlertStatusType = typeof alertStatusTypes[number];
export type AlertStatusType = typeof alertStatusTypes[number];
export interface OutlineAlertInterface extends HTMLElement {

@@ -8,0 +8,0 @@ statusType: AlertStatusType;

{
"name": "@phase2/outline-alert",
"version": "0.1.0",
"version": "0.1.1",
"description": "The Outline Components for the web alert component",

@@ -37,4 +37,4 @@ "keywords": [

"exports": {
".": "./index.js"
".": "./index.ts"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc