@cfpb/cfpb-design-system
Version:
CFPB's UI framework
48 lines (42 loc) • 47.9 kB
JavaScript
(()=>{var me=Object.defineProperty;var Rt=r=>{throw TypeError(r)};var ye=(r,t,e)=>t in r?me(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var k=(r,t,e)=>ye(r,typeof t!="symbol"?t+"":t,e),vt=(r,t,e)=>t.has(r)||Rt("Cannot "+e);var p=(r,t,e)=>(vt(r,t,"read from private field"),e?e.call(r):t.get(r)),y=(r,t,e)=>t.has(r)?Rt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),D=(r,t,e,i)=>(vt(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e),f=(r,t,e)=>(vt(r,t,"access private method"),e);var Ut=(r,t,e)=>new Promise((i,a)=>{var s=n=>{try{h(e.next(n))}catch(l){a(l)}},o=n=>{try{h(e.throw(n))}catch(l){a(l)}},h=n=>n.done?i(n.value):Promise.resolve(n.value).then(s,o);h((e=e.apply(r,t)).next())});var tt=globalThis,et=tt.ShadowRoot&&(tt.ShadyCSS===void 0||tt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),Ht=new WeakMap,q=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==mt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(et&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=Ht.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ht.set(e,t))}return t}toString(){return this.cssText}},S=r=>new q(typeof r=="string"?r:r+"",void 0,mt),T=(r,...t)=>{let e=r.length===1?r[0]:t.reduce(((i,a,s)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+r[s+1]),r[0]);return new q(e,r,mt)},Lt=(r,t)=>{if(et)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let i=document.createElement("style"),a=tt.litNonce;a!==void 0&&i.setAttribute("nonce",a),i.textContent=e.cssText,r.appendChild(i)}},yt=et?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return S(e)})(r):r;var{is:$e,defineProperty:_e,getOwnPropertyDescriptor:Ae,getOwnPropertyNames:xe,getOwnPropertySymbols:we,getPrototypeOf:ke}=Object,E=globalThis,It=E.trustedTypes,Se=It?It.emptyScript:"",$t=E.reactiveElementPolyfillSupport,B=(r,t)=>r,_t={toAttribute(r,t){switch(t){case Boolean:r=r?Se:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch(i){e=null}}return e}},Gt=(r,t)=>!$e(r,t),Dt={attribute:!0,type:String,converter:_t,reflect:!1,useDefault:!1,hasChanged:Gt},qt,Bt;(qt=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Bt=E.litPropertyMetadata)!=null||(E.litPropertyMetadata=new WeakMap);var $=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Dt){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){let i=Symbol(),a=this.getPropertyDescriptor(t,i,e);a!==void 0&&_e(this.prototype,t,a)}}static getPropertyDescriptor(t,e,i){var o;let{get:a,set:s}=(o=Ae(this.prototype,t))!=null?o:{get(){return this[e]},set(h){this[e]=h}};return{get:a,set(h){let n=a==null?void 0:a.call(this);s==null||s.call(this,h),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Dt}static _$Ei(){if(this.hasOwnProperty(B("elementProperties")))return;let t=ke(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(B("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(B("properties"))){let e=this.properties,i=[...xe(e),...we(e)];for(let a of i)this.createProperty(a,e[a])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,a]of e)this.elementProperties.set(i,a)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let a=this._$Eu(e,i);a!==void 0&&this._$Eh.set(a,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let a of i)e.unshift(yt(a))}else t!==void 0&&e.push(yt(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach((e=>e(this)))}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Lt(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach((i=>{var a;return(a=i.hostConnected)==null?void 0:a.call(i)}))}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach((e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var s;let i=this.constructor.elementProperties.get(t),a=this.constructor._$Eu(t,i);if(a!==void 0&&i.reflect===!0){let o=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:_t).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(a):this.setAttribute(a,o),this._$Em=null}}_$AK(t,e){var s,o,h,n;let i=this.constructor,a=i._$Eh.get(t);if(a!==void 0&&this._$Em!==a){let l=i.getPropertyOptions(a),c=typeof l.converter=="function"?{fromAttribute:l.converter}:((s=l.converter)==null?void 0:s.fromAttribute)!==void 0?l.converter:_t;this._$Em=a,this[a]=(n=(h=c.fromAttribute(e,l.type))!=null?h:(o=this._$Ej)==null?void 0:o.get(a))!=null?n:null,this._$Em=null}}requestUpdate(t,e,i){var a,s;if(t!==void 0){let o=this.constructor,h=this[t];if(i!=null||(i=o.getPropertyOptions(t)),!(((a=i.hasChanged)!=null?a:Gt)(h,e)||i.useDefault&&i.reflect&&h===((s=this._$Ej)==null?void 0:s.get(t))&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:a,wrapped:s},o){var h,n,l;i&&!((h=this._$Ej)!=null?h:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(n=o!=null?o:e)!=null?n:this[t]),s!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),a===!0&&this._$Em!==t&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(t))}_$EP(){return Ut(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,a;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[o,h]of this._$Ep)this[o]=h;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[o,h]of s){let{wrapped:n}=h,l=this[o];n!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,h,l)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(a=this._$EO)==null||a.forEach((s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)})),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach((i=>{var a;return(a=i.hostUpdated)==null?void 0:a.call(i)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((e=>this._$ET(e,this[e])))),this._$EM()}updated(t){}firstUpdated(t){}},Vt;$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[B("elementProperties")]=new Map,$[B("finalized")]=new Map,$t==null||$t({ReactiveElement:$}),((Vt=E.reactiveElementVersions)!=null?Vt:E.reactiveElementVersions=[]).push("2.1.0");var G=globalThis,it=G.trustedTypes,Wt=it?it.createPolicy("lit-html",{createHTML:r=>r}):void 0,wt="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,kt="?"+_,Ee=`<${kt}>`,N=document,W=()=>N.createComment(""),F=r=>r===null||typeof r!="object"&&typeof r!="function",St=Array.isArray,Xt=r=>St(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",At=`[
\f\r]`,V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ft=/-->/g,Kt=/>/g,z=RegExp(`>|${At}(?:([^\\s"'>=/]+)(${At}*=${At}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),Zt=/'/g,Jt=/"/g,te=/^(?:script|style|textarea|title)$/i,Et=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),j=Et(1),qe=Et(2),Be=Et(3),A=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),Qt=new WeakMap,P=N.createTreeWalker(N,129);function ee(r,t){if(!St(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(t):t}var ie=(r,t)=>{let e=r.length-1,i=[],a,s=t===2?"<svg>":t===3?"<math>":"",o=V;for(let h=0;h<e;h++){let n=r[h],l,c,d=-1,m=0;for(;m<n.length&&(o.lastIndex=m,c=o.exec(n),c!==null);)m=o.lastIndex,o===V?c[1]==="!--"?o=Ft:c[1]!==void 0?o=Kt:c[2]!==void 0?(te.test(c[2])&&(a=RegExp("</"+c[2],"g")),o=z):c[3]!==void 0&&(o=z):o===z?c[0]===">"?(o=a!=null?a:V,d=-1):c[1]===void 0?d=-2:(d=o.lastIndex-c[2].length,l=c[1],o=c[3]===void 0?z:c[3]==='"'?Jt:Zt):o===Jt||o===Zt?o=z:o===Ft||o===Kt?o=V:(o=z,a=void 0);let w=o===z&&r[h+1].startsWith("/>")?" ":"";s+=o===V?n+Ee:d>=0?(i.push(l),n.slice(0,d)+wt+n.slice(d)+_+w):n+_+(d===-2?h:w)}return[ee(r,s+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},K=class r{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let s=0,o=0,h=t.length-1,n=this.parts,[l,c]=ie(t,e);if(this.el=r.createElement(l,i),P.currentNode=this.el.content,e===2||e===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(a=P.nextNode())!==null&&n.length<h;){if(a.nodeType===1){if(a.hasAttributes())for(let d of a.getAttributeNames())if(d.endsWith(wt)){let m=c[o++],w=a.getAttribute(d).split(_),X=/([.?@])?(.*)/.exec(m);n.push({type:1,index:s,name:X[2],strings:w,ctor:X[1]==="."?at:X[1]==="?"?st:X[1]==="@"?ot:O}),a.removeAttribute(d)}else d.startsWith(_)&&(n.push({type:6,index:s}),a.removeAttribute(d));if(te.test(a.tagName)){let d=a.textContent.split(_),m=d.length-1;if(m>0){a.textContent=it?it.emptyScript:"";for(let w=0;w<m;w++)a.append(d[w],W()),P.nextNode(),n.push({type:2,index:++s});a.append(d[m],W())}}}else if(a.nodeType===8)if(a.data===kt)n.push({type:2,index:s});else{let d=-1;for(;(d=a.data.indexOf(_,d+1))!==-1;)n.push({type:7,index:s}),d+=_.length-1}s++}}static createElement(t,e){let i=N.createElement("template");return i.innerHTML=t,i}};function M(r,t,e=r,i){var o,h,n;if(t===A)return t;let a=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl,s=F(t)?void 0:t._$litDirective$;return(a==null?void 0:a.constructor)!==s&&((h=a==null?void 0:a._$AO)==null||h.call(a,!1),s===void 0?a=void 0:(a=new s(r),a._$AT(r,e,i)),i!==void 0?((n=e._$Co)!=null?n:e._$Co=[])[i]=a:e._$Cl=a),a!==void 0&&(t=M(r,a._$AS(r,t.values),a,i)),t}var rt=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){var l;let{el:{content:e},parts:i}=this._$AD,a=((l=t==null?void 0:t.creationScope)!=null?l:N).importNode(e,!0);P.currentNode=a;let s=P.nextNode(),o=0,h=0,n=i[0];for(;n!==void 0;){if(o===n.index){let c;n.type===2?c=new H(s,s.nextSibling,this,t):n.type===1?c=new n.ctor(s,n.name,n.strings,this,t):n.type===6&&(c=new nt(s,this,t)),this._$AV.push(c),n=i[++h]}o!==(n==null?void 0:n.index)&&(s=P.nextNode(),o++)}return P.currentNode=N,a}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},H=class r{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,a){var s;this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$Cv=(s=a==null?void 0:a.isConnected)!=null?s:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),F(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==A&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Xt(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!==u&&F(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){var s;let{values:e,_$litType$:i}=t,a=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=K.createElement(ee(i.h,i.h[0]),this.options)),i);if(((s=this._$AH)==null?void 0:s._$AD)===a)this._$AH.p(e);else{let o=new rt(a,this),h=o.u(this.options);o.p(e),this.T(h),this._$AH=o}}_$AC(t){let e=Qt.get(t.strings);return e===void 0&&Qt.set(t.strings,e=new K(t)),e}k(t){St(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,a=0;for(let s of t)a===e.length?e.push(i=new r(this.O(W()),this.O(W()),this,this.options)):i=e[a],i._$AI(s),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){let a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,a,s){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}_$AI(t,e=this,i,a){let s=this.strings,o=!1;if(s===void 0)t=M(this,t,e,0),o=!F(t)||t!==this._$AH&&t!==A,o&&(this._$AH=t);else{let h=t,n,l;for(t=s[0],n=0;n<s.length-1;n++)l=M(this,h[i+n],e,n),l===A&&(l=this._$AH[n]),o||(o=!F(l)||l!==this._$AH[n]),l===u?t=u:t!==u&&(t+=(l!=null?l:"")+s[n+1]),this._$AH[n]=l}o&&!a&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},at=class extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},st=class extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},ot=class extends O{constructor(t,e,i,a,s){super(t,e,i,a,s),this.type=5}_$AI(t,e=this){var o;if((t=(o=M(this,t,e,0))!=null?o:u)===A)return;let i=this._$AH,a=t===u&&i!==u||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==u&&(i===u||a);a&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}},re={M:wt,P:_,A:kt,C:1,L:ie,R:rt,D:Xt,V:M,I:H,H:O,N:st,U:ot,B:at,F:nt},xt=G.litHtmlPolyfillSupport,Yt;xt==null||xt(K,H),((Yt=G.litHtmlVersions)!=null?Yt:G.litHtmlVersions=[]).push("3.3.0");var ae=(r,t,e)=>{var s,o;let i=(s=e==null?void 0:e.renderBefore)!=null?s:t,a=i._$litPart$;if(a===void 0){let h=(o=e==null?void 0:e.renderBefore)!=null?o:null;i._$litPart$=a=new H(t.insertBefore(W(),h),h,void 0,e!=null?e:{})}return a._$AI(r),a};var R=globalThis,b=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;let t=super.createRenderRoot();return(i=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ae(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return A}},se;b._$litElement$=!0,b.finalized=!0,(se=R.litElementHydrateSupport)==null||se.call(R,{LitElement:b});var jt=R.litElementPolyfillSupport;jt==null||jt({LitElement:b});var oe;((oe=R.litElementVersions)!=null?oe:R.litElementVersions=[]).push("4.2.0");var{I:ri}=re;var ne=r=>r.strings===void 0;var ht={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Z=r=>(...t)=>({_$litDirective$:r,values:t}),L=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var J=(r,t)=>{var i;let e=r._$AN;if(e===void 0)return!1;for(let a of e)(i=a._$AO)==null||i.call(a,t,!1),J(a,t);return!0},lt=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while((e==null?void 0:e.size)===0)},he=r=>{for(let t;t=r._$AM;r=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(r))break;e.add(r),Te(t)}};function je(r){this._$AN!==void 0?(lt(this),this._$AM=r,he(this)):this._$AM=r}function Ce(r,t=!1,e=0){let i=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(t)if(Array.isArray(i))for(let s=e;s<i.length;s++)J(i[s],!1),lt(i[s]);else i!=null&&(J(i,!1),lt(i));else J(this,r)}var Te=r=>{var t,e;r.type==ht.CHILD&&((t=r._$AP)!=null||(r._$AP=Ce),(e=r._$AQ)!=null||(r._$AQ=je))},dt=class extends L{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),he(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,a;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(a=this.disconnected)==null||a.call(this)),e&&(J(this,t),lt(this))}setValue(t){if(ne(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Q=()=>new Tt,Tt=class{},Ct=new WeakMap,Y=Z(class extends dt{render(r){return u}update(r,[t]){var i;let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=(i=r.options)==null?void 0:i.host,this.rt(this.ct=r.element)),u}rt(r){var t;if(this.isConnected||(r=void 0),typeof this.G=="function"){let e=(t=this.ht)!=null?t:globalThis,i=Ct.get(e);i===void 0&&(i=new WeakMap,Ct.set(e,i)),i.get(this.G)!==void 0&&this.G.call(this.ht,void 0),i.set(this.G,r),r!==void 0&&this.G.call(this.ht,r)}else this.G.value=r}get lt(){var r,t,e;return typeof this.G=="function"?(t=Ct.get((r=this.ht)!=null?r:globalThis))==null?void 0:t.get(this.G):(e=this.G)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var le=":root{--font-adjust-base:0.517;--font-adjust-step:0.0054;--font-adjust-h1:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*5);--font-adjust-h2:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*4);--font-adjust-h3:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*3);--font-adjust-h4:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*2);--font-adjust-h5:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*1);--font-adjust-h6:var(--font-adjust-base);--font-adjust-body:var(--font-adjust-base);--input-text-default:var(--black);--input-text-disabled-default:var(--gray-dark);--input-text-placeholder-default:var(--gray-dark);--input-border-default:var(--gray-60);--input-border-disabled:var(--gray-60);--input-border-success:var(--green);--input-border-warning:var(--gold);--input-border-error:var(--red);--input-border-hover-default:var(--pacific);--input-border-focus-default:var(--pacific);--input-bg-default:var(--white);--input-bg-disabled-default:var(--gray-10);--form-alert-icon-color-default:var(--gray);--form-alert-icon-color-success:var(--green);--form-alert-icon-color-warning:var(--gold);--form-alert-icon-color-error:var(--red);--select-border-default:var(--gray-60);--select-border-width-default:1px;--select-border-error:var(--red);--select-border-width-error:2px;--select-border-hover-default:var(--pacific);--select-border-focus-default:var(--pacific);--select-bg-disabled-default:var(--gray-10);--select-icon-bg-default:var(--gray-10);--select-text-disabled-default:var(--gray-dark);--choice-border-default:var(--gray-60);--choice-border-disabled:var(--gray-60);--choice-border-success:var(--green);--choice-border-warning:var(--gold);--choice-border-error:var(--red);--choice-border-hover-default:var(--pacific);--choice-border-focus-default:var(--pacific);--choice-outline-focus-default:var(--pacific);--choice-bg-default:var(--white);--choice-bg-disabled:var(--gray-10);--choice-bg-selected-default:var(--pacific);--choice-bg-selected-disabled:var(--gray-40);--choice-bg-selected-focus-default:var(--pacific);--choice-label-disabled-default:var(--gray-dark)}:host{display:flex;flex-direction:column;width:fit-content}:host::part(upload-details)[hidden=true]{display:none}";var de=Z(class extends L{constructor(r){var t;if(super(r),r.type!==ht.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.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((t=>r[t])).join(" ")+" "}update(r,[t]){var i,a;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter((s=>s!==""))));for(let s in t)t[s]&&!((i=this.nt)!=null&&i.has(s))&&this.st.add(s);return this.render(t)}let e=r.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let o=!!t[s];o===this.st.has(s)||(a=this.nt)!=null&&a.has(s)||(o?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return A}});var ce=`@charset "UTF-8";
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:initial;height:0}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}q{quotes:"\u201C" "\u201D" "\u2018" "\u2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sup{top:-.5em}sub{bottom:-.25em}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=search]{appearance:textfield;box-sizing:initial}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}:root{--font-adjust-base:0.517;--font-adjust-step:0.0054;--font-adjust-h1:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*5);--font-adjust-h2:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*4);--font-adjust-h3:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*3);--font-adjust-h4:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*2);--font-adjust-h5:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*1);--font-adjust-h6:var(--font-adjust-base);--font-adjust-body:var(--font-adjust-base);--input-text-default:var(--black);--input-text-disabled-default:var(--gray-dark);--input-text-placeholder-default:var(--gray-dark);--input-border-default:var(--gray-60);--input-border-disabled:var(--gray-60);--input-border-success:var(--green);--input-border-warning:var(--gold);--input-border-error:var(--red);--input-border-hover-default:var(--pacific);--input-border-focus-default:var(--pacific);--input-bg-default:var(--white);--input-bg-disabled-default:var(--gray-10);--form-alert-icon-color-default:var(--gray);--form-alert-icon-color-success:var(--green);--form-alert-icon-color-warning:var(--gold);--form-alert-icon-color-error:var(--red);--select-border-default:var(--gray-60);--select-border-width-default:1px;--select-border-error:var(--red);--select-border-width-error:2px;--select-border-hover-default:var(--pacific);--select-border-focus-default:var(--pacific);--select-bg-disabled-default:var(--gray-10);--select-icon-bg-default:var(--gray-10);--select-text-disabled-default:var(--gray-dark);--choice-border-default:var(--gray-60);--choice-border-disabled:var(--gray-60);--choice-border-success:var(--green);--choice-border-warning:var(--gold);--choice-border-error:var(--red);--choice-border-hover-default:var(--pacific);--choice-border-focus-default:var(--pacific);--choice-outline-focus-default:var(--pacific);--choice-bg-default:var(--white);--choice-bg-disabled:var(--gray-10);--choice-bg-selected-default:var(--pacific);--choice-bg-selected-disabled:var(--gray-40);--choice-bg-selected-focus-default:var(--pacific);--choice-label-disabled-default:var(--gray-dark)}body{color:var(--black);font-family:var(--font-stack);font-size:100%;font-size-adjust:var(--font-adjust-body);line-height:1.375;-webkit-font-smoothing:antialiased}button,input,select,textarea{font-family:var(--font-stack);line-height:1.1875}input[type=date]{display:revert;min-height:35px;min-width:100px;padding-bottom:0;padding-top:0}input[type=date].a-text-input--full{min-width:100%}hr{border:none;border-top:1px solid var(--gray-40)}b,strong{font-weight:600}h1,h2,h3,h4,h5,h6{margin-top:0}.h1,h1{font-size:2.125em;font-size-adjust:var(--font-adjust-h1);font-weight:600;letter-spacing:inherit;line-height:1.25;margin-bottom:.4411764706em;text-transform:inherit}blockquote+.h1,blockquote+h1,dl+.h1,dl+h1,figure+.h1,figure+h1,img+.h1,img+h1,ol+.h1,ol+h1,p+.h1,p+h1,table+.h1,table+h1,ul+.h1,ul+h1{margin-top:1.7647058824em}@media only screen and (max-width:37.5em){blockquote+.h1,blockquote+h1,dl+.h1,dl+h1,figure+.h1,figure+h1,img+.h1,img+h1,ol+.h1,ol+h1,p+.h1,p+h1,table+.h1,table+h1,ul+.h1,ul+h1{margin-top:1.7307692308em}.h2+.h1,.h2+h1,.h3+.h1,.h3+h1,.h4+.h1,.h4+h1,.h5+.h1,.h5+h1,.h6+.h1,.h6+h1,h2+.h1,h2+h1,h3+.h1,h3+h1,h4+.h1,h4+h1,h5+.h1,h5+h1,h6+.h1,h6+h1{margin-top:1.1538461538em}.h1,h1{font-size:1.625em;font-size-adjust:var(--font-adjust-h2);font-weight:600;letter-spacing:inherit;line-height:1.25;margin-bottom:.5769230769em;text-transform:inherit}blockquote+.h1,blockquote+h1,dl+.h1,dl+h1,figure+.h1,figure+h1,img+.h1,img+h1,ol+.h1,ol+h1,p+.h1,p+h1,table+.h1,table+h1,ul+.h1,ul+h1{margin-top:1.7307692308em}.h1+.h1,.h1+h1,.h3+.h1,.h3+h1,.h4+.h1,.h4+h1,.h5+.h1,.h5+h1,.h6+.h1,.h6+h1,h1+.h1,h1+h1,h3+.h1,h3+h1,h4+.h1,h4+h1,h5+.h1,h5+h1,h6+.h1,h6+h1{margin-top:1.1538461538em}}.h2,h2{font-size:1.625em;font-size-adjust:var(--font-adjust-h2);font-weight:600;letter-spacing:inherit;line-height:1.25;margin-bottom:.5769230769em;text-transform:inherit}blockquote+.h2,blockquote+h2,dl+.h2,dl+h2,figure+.h2,figure+h2,img+.h2,img+h2,ol+.h2,ol+h2,p+.h2,p+h2,table+.h2,table+h2,ul+.h2,ul+h2{margin-top:1.7307692308em}.h1+.h2,.h1+h2,.h3+.h2,.h3+h2,.h4+.h2,.h4+h2,.h5+.h2,.h5+h2,.h6+.h2,.h6+h2,h1+.h2,h1+h2,h3+.h2,h3+h2,h4+.h2,h4+h2,h5+.h2,h5+h2,h6+.h2,h6+h2{margin-top:1.1538461538em}@media only screen and (max-width:37.5em){blockquote+.h2,blockquote+h2,dl+.h2,dl+h2,figure+.h2,figure+h2,img+.h2,img+h2,ol+.h2,ol+h2,p+.h2,p+h2,table+.h2,table+h2,ul+.h2,ul+h2{margin-top:1.3636363636em}.h2,h2{font-size:1.375em;font-size-adjust:var(--font-adjust-h3);font-weight:600;letter-spacing:inherit;line-height:1.25;margin-bottom:.6818181818em;text-transform:inherit}.h1+.h2,.h1+h2,.h2+.h2,.h2+h2,.h4+.h2,.h4+h2,.h5+.h2,.h5+h2,.h6+.h2,.h6+h2,blockquote+.h2,blockquote+h2,dl+.h2,dl+h2,figure+.h2,figure+h2,h1+.h2,h1+h2,h2+.h2,h2+h2,h4+.h2,h4+h2,h5+.h2,h5+h2,h6+.h2,h6+h2,img+.h2,img+h2,ol+.h2,ol+h2,p+.h2,p+h2,table+.h2,table+h2,ul+.h2,ul+h2{margin-top:1.3636363636em}}.h3,h3{font-size:1.375em;font-size-adjust:var(--font-adjust-h3);font-weight:400;letter-spacing:inherit;line-height:1.25;margin-bottom:.6818181818em;text-transform:inherit}.h1+.h3,.h1+h3,.h2+.h3,.h2+h3,.h4+.h3,.h4+h3,.h5+.h3,.h5+h3,.h6+.h3,.h6+h3,blockquote+.h3,blockquote+h3,dl+.h3,dl+h3,figure+.h3,figure+h3,h1+.h3,h1+h3,h2+.h3,h2+h3,h4+.h3,h4+h3,h5+.h3,h5+h3,h6+.h3,h6+h3,img+.h3,img+h3,ol+.h3,ol+h3,p+.h3,p+h3,table+.h3,table+h3,ul+.h3,ul+h3{margin-top:1.3636363636em}@media only screen and (max-width:37.5em){.h3,h3{font-size:1.125em;font-size-adjust:var(--font-adjust-h4);font-weight:400;letter-spacing:inherit;line-height:1.25;margin-bottom:.8333333333em;text-transform:inherit}.h1+.h3,.h1+h3,.h2+.h3,.h2+h3,.h3+.h3,.h3+h3,.h5+.h3,.h5+h3,.h6+.h3,.h6+h3,blockquote+.h3,blockquote+h3,dl+.h3,dl+h3,figure+.h3,figure+h3,h1+.h3,h1+h3,h2+.h3,h2+h3,h3+.h3,h3+h3,h5+.h3,h5+h3,h6+.h3,h6+h3,img+.h3,img+h3,ol+.h3,ol+h3,p+.h3,p+h3,table+.h3,table+h3,ul+.h3,ul+h3{margin-top:1.6666666667em}}.h4,h4{font-size:1.125em;font-size-adjust:var(--font-adjust-h4);font-weight:500;letter-spacing:inherit;line-height:1.25;margin-bottom:.8333333333em;text-transform:inherit}.h1+.h4,.h1+h4,.h2+.h4,.h2+h4,.h3+.h4,.h3+h4,.h5+.h4,.h5+h4,.h6+.h4,.h6+h4,blockquote+.h4,blockquote+h4,dl+.h4,dl+h4,figure+.h4,figure+h4,h1+.h4,h1+h4,h2+.h4,h2+h4,h3+.h4,h3+h4,h5+.h4,h5+h4,h6+.h4,h6+h4,img+.h4,img+h4,ol+.h4,ol+h4,p+.h4,p+h4,table+.h4,table+h4,ul+.h4,ul+h4{margin-top:1.6666666667em}@media only screen and (max-width:37.5em){.h4,h4{font-size:1em;line-height:1.125;margin-bottom:.625em}}.h5,h5{font-size:.875em;font-size-adjust:var(--font-adjust-h5);font-weight:600;letter-spacing:1px;line-height:1.25;margin-bottom:1.0714285714em;text-transform:uppercase}.h1+.h5,.h1+h5,.h2+.h5,.h2+h5,.h3+.h5,.h3+h5,.h4+.h5,.h4+h5,.h6+.h5,.h6+h5,blockquote+.h5,blockquote+h5,dl+.h5,dl+h5,figure+.h5,figure+h5,h1+.h5,h1+h5,h2+.h5,h2+h5,h3+.h5,h3+h5,h4+.h5,h4+h5,h6+.h5,h6+h5,img+.h5,img+h5,ol+.h5,ol+h5,p+.h5,p+h5,table+.h5,table+h5,ul+.h5,ul+h5{margin-top:2.1428571429em}.h6,h6{font-size:.75em;font-size-adjust:var(--font-adjust-h6);font-weight:600;letter-spacing:1px;line-height:1.25;margin-bottom:1.25em;text-transform:uppercase}.h1+.h6,.h1+h6,.h2+.h6,.h2+h6,.h3+.h6,.h3+h6,.h4+.h6,.h4+h6,.h5+.h6,.h5+h6,blockquote+.h6,blockquote+h6,dl+.h6,dl+h6,figure+.h6,figure+h6,h1+.h6,h1+h6,h2+.h6,h2+h6,h3+.h6,h3+h6,h4+.h6,h4+h6,h5+.h6,h5+h6,img+.h6,img+h6,ol+.h6,ol+h6,p+.h6,p+h6,table+.h6,table+h6,ul+.h6,ul+h6{margin-top:2.5em}.lead-paragraph{font-size:1.375em;font-size-adjust:var(--font-adjust-h3);font-weight:400;letter-spacing:inherit;line-height:1.25;margin-bottom:15px;margin-top:0;text-transform:inherit}@media only screen and (max-width:37.5em){.lead-paragraph{font-size:1.125em;font-size-adjust:var(--font-adjust-h4);font-weight:400;letter-spacing:inherit;line-height:1.25;text-transform:inherit}}.superheading{font-size:3em;font-weight:400;line-height:1.25;margin-bottom:.4166666667em}blockquote,dl,figure,ol,p,table,ul{margin-bottom:.9375em;margin-top:0}blockquote:last-child,dl:last-child,figure:last-child,ol:last-child,p:last-child,table:last-child,ul:last-child{margin-bottom:0}p+ol,p+ul{margin-top:-.3125em}ol ol,ol ul,ul ol,ul ul{margin-top:.5em}li{margin-bottom:.5em}li:last-child,nav li{margin-bottom:0}a{color:var(--pacific);text-decoration-color:var(--pacific);text-decoration-line:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:4.5px}a.visited,a:visited{color:var(--teal);text-decoration-color:var(--teal)}a.hover,a:hover{color:var(--pacific-dark);text-decoration-color:var(--pacific-dark);text-decoration-style:solid}a.focus,a:focus{outline:thin dotted;outline-offset:1px;text-decoration-style:solid}a.active,a:active{color:var(--navy);text-decoration-color:var(--navy);text-decoration-style:solid}nav a{text-decoration-line:none}ul{list-style:square;padding-left:1.125em}ul ul{list-style-type:circle}ol{padding-left:1.3125em}ol li:nth-last-child(n+10),ol li:nth-last-child(n+10)~li{margin-left:.5625rem}ol ol{list-style-type:lower-alpha}ol ol li{margin-left:0!important}ol ol ol{list-style-type:lower-roman}nav ol,nav ol ol,nav ul,nav ul ul{list-style:none;list-style-image:none}caption{margin-bottom:.625em;text-align:left}td,th{padding:.625em}thead td,thead th{background:var(--gray-5);color:var(--black);font-size:1em;padding:.7142857143em;vertical-align:top}tbody tr,thead{border-bottom:1px solid var(--gray)}th{font-weight:600;text-align:left}thead th .h2,thead th .h3,thead th .h4,thead th .h5,thead th .h6,thead th h2,thead th h3,thead th h4,thead th h5,thead th h6{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;text-transform:inherit}blockquote{margin-left:.9375em;margin-right:.9375em}@media only screen and (min-width:37.5625em){blockquote{margin-left:1.875em;margin-right:1.875em}}img{max-width:100%}figure{margin-left:0;margin-right:0}figure img{vertical-align:middle}code,pre{background:var(--gray-5);border-radius:4px;color:var(--black);font-family:Input Mono,Consolas,Monaco,Courier New,monospace}code{font-size:.8125em;padding:.2307692308em .2307692308em 0}pre{display:block;overflow-wrap:break-word;padding:.625em .9375em;white-space:pre-wrap}pre code{background-color:initial;padding:0}button.a-btn::-moz-focus-inner,input.a-btn::-moz-focus-inner{border:0}.a-btn{align-items:center;appearance:none;border:0;border-radius:.25em;box-sizing:border-box;cursor:pointer;display:flex;font-size:1em;font-weight:500;gap:.625rem;height:fit-content;justify-content:center;margin:0;padding:.5em .875em;text-align:center;text-decoration:none;transition:background-color .1s;width:fit-content}.a-btn,.a-btn:link,.a-btn:visited{background-color:var(--pacific);color:var(--white)}.a-btn.focus,.a-btn.hover,.a-btn:focus,.a-btn:hover{background-color:var(--pacific-dark);color:var(--white)}.a-btn.focus,.a-btn:focus{outline:1px dotted var(--pacific);outline-offset:1px}.a-btn.active,.a-btn:active{background-color:var(--navy)}.a-btn--secondary,.a-btn--secondary:link,.a-btn--secondary:visited{background-color:var(--white);box-shadow:0 0 0 1px var(--pacific) inset;color:var(--pacific)}.a-btn--secondary.focus,.a-btn--secondary.hover,.a-btn--secondary:focus,.a-btn--secondary:hover{background-color:var(--pacific-10);box-shadow:0 0 0 1px var(--pacific-dark) inset;color:var(--pacific-dark)}.a-btn--secondary.focus,.a-btn--secondary:focus{outline-color:var(--pacific)}.a-btn--secondary.active,.a-btn--secondary:active{background-color:var(--pacific-20);box-shadow:0 0 0 1px var(--navy) inset;color:var(--navy)}.a-btn--warning,.a-btn--warning:link,.a-btn--warning:visited{background-color:var(--red-mid-dark);color:var(--white)}.a-btn--warning.focus,.a-btn--warning.hover,.a-btn--warning:focus,.a-btn--warning:hover{background-color:var(--red-dark)}.a-btn--warning.focus,.a-btn--warning:focus{outline-color:var(--red-mid-dark)}.a-btn--warning.active,.a-btn--warning:active{background-color:var(--gray-dark)}.a-btn--disabled,.a-btn--disabled.active,.a-btn--disabled.focus,.a-btn--disabled.hover,.a-btn--disabled:active,.a-btn--disabled:focus,.a-btn--disabled:hover,.a-btn--disabled:link,.a-btn--disabled:visited,.a-btn[aria-disabled=true],.a-btn[aria-disabled=true].active,.a-btn[aria-disabled=true].focus,.a-btn[aria-disabled=true].hover,.a-btn[aria-disabled=true]:active,.a-btn[aria-disabled=true]:focus,.a-btn[aria-disabled=true]:hover,.a-btn[aria-disabled=true]:link,.a-btn[aria-disabled=true]:visited,.a-btn[disabled],.a-btn[disabled].active,.a-btn[disabled].focus,.a-btn[disabled].hover,.a-btn[disabled]:active,.a-btn[disabled]:focus,.a-btn[disabled]:hover,.a-btn[disabled]:link,.a-btn[disabled]:visited{background-color:var(--gray-20);color:var(--gray-dark);cursor:default;cursor:not-allowed}.a-btn--disabled.focus,.a-btn--disabled:focus,.a-btn[aria-disabled=true].focus,.a-btn[aria-disabled=true]:focus,.a-btn[disabled].focus,.a-btn[disabled]:focus{outline-color:var(--gray-20)}@media only screen and (max-width:37.5em){.a-btn--full-on-xs{width:100%}}.a-btn:has(svg+span) span{order:3}.a-btn:has(span+svg) svg{flex:none;order:3}.a-btn:not(.a-btn--hide-icon):has(span+svg):before,.a-btn:not(.a-btn--hide-icon):has(svg+span):before{border-left:1px solid var(--pacific-60);content:"";order:2;place-self:normal}.a-btn--secondary:has(svg):before{border-color:var(--pacific-60)!important}.a-btn--warning:has(svg):before{border-color:var(--red-60)!important}.a-btn--disabled:has(svg):before,.a-btn[aria-disabled=true]:has(svg):before,.a-btn[disabled]:has(svg):before{border-color:var(--gray-60)!important}.a-btn--hide-icon svg{display:none}.a-btn--link{border-radius:0;padding:1.5px 0;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:4.5px}.a-btn--link:has(svg){gap:.3125rem}.a-btn--link:has(svg):before{display:none}.a-btn--link,.a-btn--link:link,.a-btn--link:visited{background-color:initial;color:var(--pacific);text-decoration-color:var(--pacific)}.a-btn--link.hover,.a-btn--link:hover{background-color:initial;color:var(--pacific-dark);text-decoration-color:var(--pacific-dark);text-decoration-style:solid}.a-btn--link.focus,.a-btn--link:focus{background-color:initial;color:var(--pacific);outline:1px dotted var(--pacific);text-decoration-style:solid}.a-btn--link.active,.a-btn--link:active{background-color:initial;color:var(--navy);text-decoration-color:var(--navy);text-decoration-style:solid}.a-btn--link.a-btn--warning,.a-btn--link.a-btn--warning:link,.a-btn--link.a-btn--warning:visited{background-color:initial;color:var(--red-mid-dark);text-decoration-color:var(--red-mid-dark)}.a-btn--link.a-btn--warning.hover,.a-btn--link.a-btn--warning:hover{background-color:initial;color:var(--red-dark);text-decoration-color:var(--red-dark);text-decoration-style:solid}.a-btn--link.a-btn--warning.focus,.a-btn--link.a-btn--warning:focus{background-color:initial;color:var(--red-mid-dark);outline:1px dotted var(--red-mid-dark);text-decoration-style:solid}.a-btn--link.a-btn--warning.active,.a-btn--link.a-btn--warning:active{background-color:initial;color:var(--gray-dark);text-decoration-color:var(--gray-dark);text-decoration-style:solid}:host{display:flex;width:fit-content}@media only screen and (max-width:37.5em){:host([full-on-mobile]){width:100%}}:host([flush-left]) [role=button]{border-bottom-left-radius:0;border-top-left-radius:0}:host([flush-right]) [role=button]{border-bottom-right-radius:0;border-top-right-radius:0}`;var ue=':root{--font-adjust-base:0.517;--font-adjust-step:0.0054;--font-adjust-h1:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*5);--font-adjust-h2:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*4);--font-adjust-h3:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*3);--font-adjust-h4:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*2);--font-adjust-h5:calc(var(--font-size-adjust-base) + var(--font-adjust-step)*1);--font-adjust-h6:var(--font-adjust-base);--font-adjust-body:var(--font-adjust-base);--input-text-default:var(--black);--input-text-disabled-default:var(--gray-dark);--input-text-placeholder-default:var(--gray-dark);--input-border-default:var(--gray-60);--input-border-disabled:var(--gray-60);--input-border-success:var(--green);--input-border-warning:var(--gold);--input-border-error:var(--red);--input-border-hover-default:var(--pacific);--input-border-focus-default:var(--pacific);--input-bg-default:var(--white);--input-bg-disabled-default:var(--gray-10);--form-alert-icon-color-default:var(--gray);--form-alert-icon-color-success:var(--green);--form-alert-icon-color-warning:var(--gold);--form-alert-icon-color-error:var(--red);--select-border-default:var(--gray-60);--select-border-width-default:1px;--select-border-error:var(--red);--select-border-width-error:2px;--select-border-hover-default:var(--pacific);--select-border-focus-default:var(--pacific);--select-bg-disabled-default:var(--gray-10);--select-icon-bg-default:var(--gray-10);--select-text-disabled-default:var(--gray-dark);--choice-border-default:var(--gray-60);--choice-border-disabled:var(--gray-60);--choice-border-success:var(--green);--choice-border-warning:var(--gold);--choice-border-error:var(--red);--choice-border-hover-default:var(--pacific);--choice-border-focus-default:var(--pacific);--choice-outline-focus-default:var(--pacific);--choice-bg-default:var(--white);--choice-bg-disabled:var(--gray-10);--choice-bg-selected-default:var(--pacific);--choice-bg-selected-disabled:var(--gray-40);--choice-bg-selected-focus-default:var(--pacific);--choice-label-disabled-default:var(--gray-dark)}:host{--icon-text-divider:var(--pacific-60)}:host div{align-items:center;display:flex;width:fit-content}:host div ::slotted(svg){display:none}:host div.u-has-icon{gap:.625rem}:host div.u-has-icon slot:before{border-left:1px solid var(--icon-text-divider);content:"";order:2;place-self:normal}:host div.u-has-icon ::slotted(svg){display:initial}:host div.u-has-icon--left ::slotted(svg){order:1}:host div.u-has-icon--left ::slotted(span){order:3}:host div.u-has-icon--right ::slotted(svg){order:3}:host div.u-has-icon--right ::slotted(span){order:1}:host([disabled]){--icon-text-divider:var(--gray-60)}';var C,I,x,zt,ct,ft=class ft extends b{constructor(){super();y(this,x);y(this,C);y(this,I);D(this,I,"")}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}connectedCallback(){super.connectedCallback(),D(this,C,new MutationObserver(()=>{f(this,x,zt).call(this)})),p(this,C).observe(this,{childList:!0,subtree:!1})}disconnectedCallback(){super.disconnectedCallback(),p(this,C)&&(p(this,C).disconnect(),D(this,C,null))}firstUpdated(){f(this,x,zt).call(this)}hideIcon(){let e=f(this,x,ct).call(this),i=this.shadowRoot.querySelector("div");e&&(D(this,I,i.className),i.className="")}showIcon(){let e=f(this,x,ct).call(this),i=this.shadowRoot.querySelector("div");e&&(i.className=p(this,I))}hasIcon(){return!!f(this,x,ct).call(this)}render(){return j`<div><slot></slot></div>`}static init(){window.customElements.get("cfpb-icon-text")||window.customElements.define("cfpb-icon-text",ft)}};C=new WeakMap,I=new WeakMap,x=new WeakSet,zt=function(){let e=this.shadowRoot.querySelector("div"),a=this.shadowRoot.querySelector("slot").assignedNodes({flatten:!0}),s=null,o=null;for(let h of a)if(h.nodeType===Node.TEXT_NODE&&h.textContent.trim().length>0){let n=document.createElement("span");n.textContent=h.textContent,h.replaceWith(n),o||(o=n)}else if(h.nodeType===Node.ELEMENT_NODE){let n=h.tagName.toLowerCase();n==="svg"&&!s?s=h:n==="span"&&!o&&(o=h)}s&&o&&(e.classList.add("u-has-icon"),s.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?e.classList.add("u-has-icon--left"):e.classList.add("u-has-icon--right"))},ct=function(){let i=this.shadowRoot.querySelector("slot").assignedNodes({flatten:!0});for(let a of i)if(a.tagName&&a.tagName.toLowerCase()==="svg")return a},k(ft,"styles",T`${S(ue)}`);var ut=ft;var Me=["primary","secondary","warning"],Oe=["button","submit","reset"],U,g,Pt,fe,pe,Nt,bt=class bt extends b{constructor(){super();y(this,g);y(this,U,Q());this.type="button",this.variant="primary",this.disabled=!1,this.fullOnMobile=!1,this.styleAsLink=!1}static get properties(){return{type:{type:String},href:{type:String},disabled:{type:Boolean,reflect:!0},variant:{type:String},fullOnMobile:{type:Boolean,attribute:"full-on-mobile",reflect:!0},flushLeft:{type:Boolean,attribute:"flush-left",reflect:!0},flushRight:{type:Boolean,attribute:"flush-right",reflect:!0},styleAsLink:{type:Boolean,attribute:"style-as-link",reflect:!0}}}hasIcon(){var e;return(e=p(this,U).value)==null?void 0:e.hasIcon()}hideIcon(){var e;(e=p(this,U).value)==null||e.hideIcon()}showIcon(){var e;(e=p(this,U).value)==null||e.showIcon()}render(){let e=de(p(this,g,pe));return this.href?j`<a class="${e}" href="${this.disabled?void 0:this.href}" role="button" aria-disabled="${String(this.disabled)}" tabindex="${this.disabled?-1:0}">${f(this,g,Nt).call(this)}</a>`:j`<button class="${e}" ?disabled="${this.disabled}" type="${p(this,g,fe)}">${f(this,g,Nt).call(this)}</button>`}static init(){ut.init(),window.customElements.get("cfpb-button")||window.customElements.define("cfpb-button",bt)}};U=new WeakMap,g=new WeakSet,Pt=function(){return Me.includes(this.variant)?this.variant:"primary"},fe=function(){return Oe.includes(this.type)?this.type:"button"},pe=function(){return{"a-btn":!0,[`a-btn--${p(this,g,Pt)}`]:p(this,g,Pt)!=="primary","a-btn--link":this.styleAsLink===!0}},Nt=function(){return j`<cfpb-icon-text ${Y(p(this,U))} ?disabled="${this.disabled}"><slot></slot></cfpb-icon-text>`},k(bt,"styles",T`${S(ce)}`);var pt=bt;var v,ge,ve,Mt,Ot,gt=class gt extends b{constructor(){super();y(this,v);k(this,"fileInput",Q());k(this,"fileDetails",Q());f(this,v,Mt).call(this)}static get properties(){return{isDetailHidden:{type:Boolean,attribute:"hidden",reflect:!0},fileName:{type:String},accept:{type:String},value:{type:String},files:{type:FileList}}}render(){return j`<cfpb-button variant="secondary" @click="${()=>{this.fileInput.value.click()}}"><slot></slot></cfpb-button><input class="a-btn a-btn--secondary" type="file" hidden accept="${this.accept}" @input="${()=>f(this,v,Ot).call(this)}" @cancel="${()=>f(this,v,Ot).call(this)}" ${Y(this.fileInput)}><div part="upload-details" ?hidden="${this.isDetailHidden}" ${Y(this.fileDetails)}><h4>File added</h4><ul><li>${this.fileName}</li></ul><p>To remove or replace your file, select a new file and upload again.</p></div>`}static init(){pt.init(),window.customElements.get("cfpb-file-upload")||window.customElements.define("cfpb-file-upload",gt)}};v=new WeakSet,ge=function(e){let i=e;if(i.indexOf("\\")>-1){let a=i.split("\\");i=a[a.length-1]}return i},ve=function(){this.fileName=f(this,v,ge).call(this,this.fileInput.value.value),this.value=this.fileInput.value.value,this.files=this.fileInput.value.files,this.isDetailHidden=!1},Mt=function(){this.fileName="",this.value="",this.files={},this.isDetailHidden=!0},Ot=function(){this.fileInput.value.value==""?f(this,v,Mt).call(this):f(this,v,ve).call(this)},k(gt,"styles",T`${S(le)}`);var be=gt;})();
/*! Bundled license information:
@lit/reactive-element/css-tag.js:
(**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/reactive-element.js:
lit-html/lit-html.js:
lit-element/lit-element.js:
lit-html/directive.js:
lit-html/async-directive.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
lit-html/is-server.js:
(**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
lit-html/directive-helpers.js:
lit-html/directives/ref.js:
(**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
lit-html/directives/class-map.js:
(**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
//# sourceMappingURL=index.js.map