@cfpb/cfpb-design-system
Version:
CFPB's UI framework
4 lines • 156 kB
JavaScript
(()=>{var Qr=Object.defineProperty;var Jr=Object.getOwnPropertySymbols;var Zi=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable;var eo=r=>{throw TypeError(r)};var Ta=(r,t,e)=>t in r?Qr(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,lt=(r,t)=>{for(var e in t||(t={}))Zi.call(t,e)&&Ta(r,e,t[e]);if(Jr)for(var e of Jr(t))Ji.call(t,e)&&Ta(r,e,t[e]);return r};var k=(r,t)=>{for(var e in t)Qr(r,e,{get:t[e],enumerable:!0})};var O=(r,t,e)=>Ta(r,typeof t!="symbol"?t+"":t,e),Oa=(r,t,e)=>t.has(r)||eo("Cannot "+e);var d=(r,t,e)=>(Oa(r,t,"read from private field"),e?e.call(r):t.get(r)),b=(r,t,e)=>t.has(r)?eo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),g=(r,t,e,a)=>(Oa(r,t,"write to private field"),a?a.call(r,e):t.set(r,e),e),h=(r,t,e)=>(Oa(r,t,"access private method"),e);var to=(r,t,e)=>new Promise((a,o)=>{var i=s=>{try{l(e.next(s))}catch(c){o(c)}},n=s=>{try{l(e.throw(s))}catch(c){o(c)}},l=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,n);l((e=e.apply(r,t)).next())});var It={bpXS:{min:0,max:600},bpSM:{min:601,max:900},bpMED:{min:901,max:1020},bpLG:{min:1021,max:1200},bpXL:{min:1201}};var Ia={};k(Ia,{default:()=>en});var en={};var qa={};k(qa,{default:()=>an});var an={};var Ma={};k(Ma,{default:()=>on});var on={};var Na={};k(Na,{default:()=>dn});var dn={};var Da={};k(Da,{default:()=>ln});var ln={};var Pa={};k(Pa,{default:()=>hn});var hn={};function qt(){let r=getComputedStyle(document.body).fontSize;return r=r===""?-1:r,parseFloat(r)}function un(r,t){let e=r.min,a=r.max;qt()>0&&qt()!==16&&(e=e/16*qt(),a=a/16*qt());let i=e||0,n=a||Number.POSITIVE_INFINITY;return i<=t&&t<=n}function fn(r){let t={};r=r||window.innerWidth;let e;for(e in It)t[e]=un(It[e],r);return t}var Mt="mobile",pn="tablet",bn="desktop";function Ba(r){let t=!1,e=fn();return(r===Mt&&e.bpXS||r===pn&&e.bpSM||r===bn&&(e.bpMED||e.bpLG||e.bpXL))&&(t=!0),t}var K="data-js-hook",We="behavior_",Ha="state_";function H(){let r={};function t(o,i){return{}.hasOwnProperty.call(r,o)?r[o].push(i):r[o]=[i],this}function e(o,i){if(!{}.hasOwnProperty.call(r,o))return this;let n=r[o].indexOf(i);return n!==-1&&r[o].splice(n,1),this}function a(o,i){if(!{}.hasOwnProperty.call(r,o))return this;i=i||{};let n=r[o];for(let l=0,s=n.length;l<s;l++)n[l].call(this,i);return this}return this.addEventListener=t,this.removeEventListener=e,this.dispatchEvent=a,this.getRegisteredEvents=()=>r,this}function Me(r,t){if(!r)return!1;let e=r.getAttribute(K);return e?(e=e.split(" "),e.indexOf(t)>-1):!1}function U(r,t){if(Me(r,t))return t;if(t.indexOf(" ")!==-1){let a=K+" values cannot contain spaces!";throw new Error(a)}let e=r.getAttribute(K);return e!==null&&(t=e+" "+t),r.setAttribute(K,t),t}var Ra=Ha+"atomic_init";function mn(r,t){if(!r||!r.classList){let e=r+' is not valid. Check that element is a DOM node with class "'+t+'"';throw new Error(e)}return r}function gn(r,t){let e=r.classList.contains(t)?r:r.querySelector("."+t);if(!e){let a=t+" not found on or in passed DOM node.";throw new Error(a)}return e}function ie(r,t){return mn(r,t),gn(r,t)}function J(r){return Me(r,Ra)?!1:(U(r,Ra),!0)}function ne(r,t,e,a={}){let i=(e||document).querySelectorAll(r),n=[],l,s;for(let c=0,u=i.length;c<u;c++)s=i[c],Me(s,Ra)===!1&&(l=new t(s),l.init(a),n.push(l));return n}function ao(r,t){t=t||document;let e=[];try{e=t.querySelectorAll(r)}catch(a){let o=`${r} not found in DOM! ${a}`;throw new Error(o)}return e.length===0&&r.indexOf(We)===-1&&(e=ro(r,t)),e}function vn(r,t,e,a){let o=[];r instanceof NodeList?o=r:r instanceof Node?o=[r]:typeof r=="string"&&(o=ao(r,a));for(let i=0,n=o.length;i<n;i++)o[i].addEventListener(t,e,!1);return o}function Nt(r,t){let e;if(Me(r,t))return e=r,e;if(r){let a="["+K+"="+t+"]";e=r.querySelector(a)}if(!e){let a=t+" behavior not found on passed DOM node!";throw new Error(a)}return e}function ro(r,t){return r=K+"*="+We+r,r="["+r+"]",ao(r,t)}var ct=Object.prototype.toString;function oo(r){return typeof r=="undefined"}function xn(r){return typeof r!="undefined"}function yn(r){return r!==null&&typeof r=="object"}function io(r){return ct.call(r)==="[object String]"}function _n(r){return ct.call(r)==="[object Number]"}function wn(r){return ct.call(r)==="[object Date]"}var kn=Array.isArray||function(t){return ct.call(t)==="[object Array]"};function jn(r){return ct.call(r)==="[object Function]"}function zn(r){return oo(r)||r===null||io(r)&&r.length<=0||/^\s*$/.test(r)}function Ua(){return!!new RegExp(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i).test(navigator.userAgent)}function S(r,t,e){let a=t,o=r;if(!e)throw new Error("Child transition argument must be defined!");let i=e,n,l,s,c=!1,u=!1,m=!1;if(typeof a.CSS_PROPERTY=="undefined"||typeof a.BASE_CLASS=="undefined")throw new Error("Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition.");function x(){l&&c?(o.addEventListener(l,s),i.dispatchEvent(S.BEGIN_EVENT,{target:i,type:S.BEGIN_EVENT}),o.classList.add(S.ANIMATING_CLASS),u=!0):(i.dispatchEvent(S.BEGIN_EVENT,{target:i,type:S.BEGIN_EVENT}),s())}function w(){o.removeEventListener(l,s)}function D(z){return z&&z.propertyName!==a.CSS_PROPERTY?!1:(w(),o.classList.remove(S.ANIMATING_CLASS),i.dispatchEvent(S.END_EVENT,{target:i,type:S.END_EVENT}),u=!1,!0)}function N(){let z;for(z in a)({}).hasOwnProperty.call(a,z)&&a[z]!==a.BASE_CLASS&&o.classList.contains(a[z])&&o.classList.remove(a[z])}function P(){u&&(o.style.webkitTransitionDuration="0",o.style.mozTransitionDuration="0",o.style.oTransitionDuration="0",o.style.transitionDuration="0",o.removeEventListener(l,s),s(),o.style.webkitTransitionDuration="",o.style.mozTransitionDuration="",o.style.oTransitionDuration="",o.style.transitionDuration="")}function F(){P(),N(),o.classList.remove(a.BASE_CLASS)}function he(){o.classList.remove(S.NO_ANIMATION_CLASS),c=!0}function pe(){o.classList.add(S.NO_ANIMATION_CLASS),c=!1}function G(z){if(!z){let Xe="Element does not have TransitionEnd event. It may be null!";throw new Error(Xe)}let V,oe={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},be;for(be in oe)if({}.hasOwnProperty.call(oe,be)&&typeof z.style[be]!="undefined"){V=oe[be];break}return V}function j(z){F(),he(),o=z,o.classList.add(a.BASE_CLASS),l=G(o)}function T(z){if(c=!o.classList.contains(S.NO_ANIMATION_CLASS),s=D.bind(this),j(o),!z)throw new Error("Transition needs to be passed an initial CSS class on initialization!");return o.classList.add(z),this}function B(z){return m||(N(),m=!0),o.classList.contains(z)?!1:(w(),o.classList.remove(n),n=z,x(),o.classList.add(n),!0)}return this.animateOff=pe,this.animateOn=he,this.applyClass=B,this.halt=P,this.init=T,this.isAnimated=()=>c,this.remove=F,this.setElement=j,this}S.BEGIN_EVENT="transitionbegin";S.END_EVENT="transitionend";S.NO_ANIMATION_CLASS="u-no-animation";S.ANIMATING_CLASS="u-is-animating";var ht=We+"flyout-menu",An="["+K+"="+ht;function je(r,t=!0){let e=Nt(r,ht),a=he(r),o=Nt(r,ht+"_content"),i=0,n=0,l=1,s=2,c=3,u,m,x,w=Xe.bind(this),D=be.bind(this),N,P=!0,F=!1;function he(f){let p=[],v=f.querySelectorAll(`${An}_trigger]`),_,q,me;for(let ue=v.length>>>0;ue--;){for(me=!1,_=v[ue],q=_.parentElement;q!==f;)q.getAttribute(K)&&q.getAttribute(K).split(" ").indexOf(ht)!==-1?(me=!0,q=f):q=q.parentElement;me||p.unshift(v[ue])}return p}function pe(f=!1){return i=f?c:n,a.forEach(p=>{G("expanded",p,f),p.addEventListener("click",z.bind(this)),p.addEventListener("touchstart",j,{passive:!0}),p.addEventListener("mouseover",T.bind(this)),p.addEventListener("mouseout",B.bind(this))}),o.setAttribute("data-open",f?"true":"false"),t&&!f&&o.setAttribute("hidden",""),Ot(),this}function G(f,p,v){let _=String(v);return p.setAttribute("aria-"+f,_),_}function j(){F=!0}function T(f){P||(F||this.dispatchEvent("triggerover",{target:this,trigger:f.target,type:"triggerover"}),F=!1)}function B(f){P||this.dispatchEvent("triggerout",{target:this,trigger:f.target,type:"triggerout"})}function z(f){if(!P)switch(this.dispatchEvent("triggerclick",{target:this,trigger:f.target,type:"triggerclick"}),f.preventDefault(),i){case n:case l:this.expand();break;case s:case c:this.collapse();break}}function V(){if(u==null||u.halt(),i===s||i===c)return this;if(i=s,t&&o.removeAttribute("hidden"),this.dispatchEvent("expandbegin",{target:this,type:"expandbegin"}),!m||!x)return D(),this;let f=u==null?void 0:u.isAnimated();return f&&u.addEventListener(S.END_EVENT,D),m(),f||D(),this}function oe(){if(u==null||u.halt(),i===l||i===n)return this;for(let p=0,v=a.length;p<v;p++)G("expanded",a[p],!1);if(o.setAttribute("data-open","false"),i=l,this.dispatchEvent("collapsebegin",{target:this,type:"collapsebegin"}),!x||!m)return w(),this;let f=u==null?void 0:u.isAnimated();return f&&u.addEventListener(S.END_EVENT,w),x(),f||w(),this}function be(){i=c,o.setAttribute("data-open","true"),u&&u.removeEventListener(S.END_EVENT,D),this.dispatchEvent("expandend",{target:this,type:"expandend"});for(let f=0,p=a.length;f<p;f++)G("expanded",a[f],!0)}function Xe(){i=n,t&&o.setAttribute("hidden",""),u&&u.removeEventListener(S.END_EVENT,w),this.dispatchEvent("collapseend",{target:this,type:"collapseend"})}function Tt(f,p,v){u=f,p&&p!==x&&(x=p),v&&v!==m&&(m=v)}function Sa(){u&&u.remove();let f;u=f,m=f,x=f}function $a(){return{container:e,content:o,trigger:a}}function Ot(){return P&&(P=!1),!P}function La(){return P||(P=!0),P}function Ca(f){return N=f,this}let qe=new H;return this.addEventListener=qe.addEventListener,this.removeEventListener=qe.removeEventListener,this.dispatchEvent=qe.dispatchEvent,this.init=pe,this.expand=V,this.collapse=oe,this.setTransition=Tt,this.clearTransition=Sa,this.getData=()=>N,this.getTransition=()=>u,this.getDom=$a,this.isAnimating=()=>i===s||i===l,this.isExpanded=()=>i===c,this.resume=Ot,this.setData=Ca,this.suspend=La,je.BASE_CLASS=ht,this}var Dt={CSS_PROPERTY:"opacity",BASE_CLASS:"u-alpha-transition",ALPHA_100:"u-alpha-100",ALPHA_0:"u-alpha-0"};function no(r){let t=new H,e=new S(r,Dt,this);function a(n){return e.init(n),this}function o(){return e.applyClass(Dt.ALPHA_100),this}function i(){return e.applyClass(Dt.ALPHA_0),this}return this.addEventListener=t.addEventListener,this.dispatchEvent=t.dispatchEvent,this.removeEventListener=t.removeEventListener,this.animateOff=e.animateOff,this.animateOn=e.animateOn,this.halt=e.halt,this.isAnimated=e.isAnimated,this.remove=e.remove,this.setElement=e.setElement,this.fadeIn=o,this.fadeOut=i,this.init=a,this}no.CLASSES=Dt;var ut={CSS_PROPERTY:"max-height",BASE_CLASS:"u-max-height-transition",MH_DEFAULT:"u-max-height-default",MH_SUMMARY:"u-max-height-summary",MH_ZERO:"u-max-height-zero"};function X(r){let t=new H,e=new S(r,ut,this),a=0;function o(){let x=r.scrollHeight+"px";r.style.maxHeight=x}function i(){window.removeEventListener("load",i),o()}function n(m){return e.init(m),window.addEventListener("load",i),window.addEventListener("resize",()=>{o()}),this}function l(){return o(),e.applyClass(ut.MH_DEFAULT),(!a||r.scrollHeight>a)&&(a=r.scrollHeight),this}function s(){return e.applyClass(ut.MH_SUMMARY),a=r.scrollHeight,this}function c(){return e.applyClass(ut.MH_ZERO),a=r.scrollHeight,this}function u(){return r.style.maxHeight="",e.remove()}return this.addEventListener=t.addEventListener,this.dispatchEvent=t.dispatchEvent,this.removeEventListener=t.removeEventListener,this.animateOff=e.animateOff,this.animateOn=e.animateOn,this.halt=e.halt,this.isAnimated=e.isAnimated,this.setElement=e.setElement,this.refresh=o,this.remove=u,this.init=n,this.maxHeightDefault=l,this.maxHeightSummary=s,this.maxHeightZero=c,this}X.CLASSES=ut;var ze={CSS_PROPERTY:"transform",BASE_CLASS:"u-move-transition",MOVE_TO_ORIGIN:"u-move-to-origin",MOVE_LEFT:"u-move-left",MOVE_LEFT_2X:"u-move-left-2x",MOVE_LEFT_3X:"u-move-left-3x",MOVE_RIGHT:"u-move-right",MOVE_UP:"u-move-up"};function so(r){let t=new H,e=new S(r,ze,this);function a(s){return e.init(s),this}function o(){return e.applyClass(ze.MOVE_TO_ORIGIN),this}function i(s){s=s||1;let c=[ze.MOVE_LEFT,ze.MOVE_LEFT_2X,ze.MOVE_LEFT_3X];return e.applyClass(c[s-1]),this}function n(){return e.applyClass(ze.MOVE_RIGHT),this}function l(){return e.applyClass(ze.MOVE_UP),this}return this.addEventListener=t.addEventListener,this.dispatchEvent=t.dispatchEvent,this.removeEventListener=t.removeEventListener,this.animateOff=e.animateOff,this.animateOn=e.animateOn,this.halt=e.halt,this.isAnimated=e.isAnimated,this.setElement=e.setElement,this.remove=e.remove,this.init=a,this.moveLeft=()=>i(1),this.moveLeft2=()=>i(2),this.moveLeft3=()=>i(3),this.moveRight=n,this.moveToOrigin=o,this.moveUp=l,this}so.CLASSES=ze;var Fa={};k(Fa,{default:()=>$n});var $n={};var Ye="o-expandable";function Ee(r){let t=ie(r,Ye),e,a,o,i,n;function l(){if(!J(t))return this;e=t.querySelector(`.${Ye}__header`),a=t.querySelector(`.${Ye}__content`),o=t.querySelector(`.${Ye}__label`);let u=t.classList.contains(`${Ye}--onload-open`);U(t,"behavior_flyout-menu"),U(e,"behavior_flyout-menu_trigger"),U(a,"behavior_flyout-menu_content");let m=u?X.CLASSES.MH_DEFAULT:X.CLASSES.MH_ZERO;return i=new X(a).init(m),n=new je(t),n.setTransition(i,i.maxHeightZero,i.maxHeightDefault),n.init(u),n.addEventListener("expandbegin",()=>{a.classList.remove("u-hidden"),this.dispatchEvent("expandbegin",{target:this})}),n.addEventListener("collapseend",()=>{a.classList.add("u-hidden")}),this}function s(){return o.textContent.trim()}this.init=l,this.expand=()=>n.expand(),this.collapse=()=>n.collapse(),this.isExpanded=()=>n.isExpanded(),this.refresh=()=>n.getTransition().refresh(),this.getLabelText=s;let c=new H;return this.addEventListener=c.addEventListener,this.removeEventListener=c.removeEventListener,this.dispatchEvent=c.dispatchEvent,this}Ee.BASE_CLASS=Ye;Ee.init=r=>ne(`.${Ee.BASE_CLASS}`,Ee,r);var Va={};k(Va,{default:()=>Cn});var Cn={};var Pt="o-expandable-group";function Bt(r){let t=ie(r,Pt),e=t.classList.contains(`${Pt}--accordion`),a,o;function i(l){let s=l.target;o&&o!==s&&o.collapse(),o=s}function n(l){return J(t)?(e&&(a=l,a.forEach(s=>{s.addEventListener("expandbegin",i)})),this):this}return this.init=n,this}Bt.BASE_CLASS=Pt;Bt.init=r=>{(r||document).querySelectorAll(`.${Pt}`).forEach(a=>{let o=ne(`.${Ee.BASE_CLASS}`,Ee,a);new Bt(a).init(o)})};var Ga={};k(Ga,{default:()=>On});var On={};var Ze="o-summary";function Ht(r){let t=ie(r,Ze),e=t.classList.contains(`${Ze}--mobile`),a=t.querySelector(`.${Ze}__content`),o=t.querySelector(`.${Ze}__btn`),i,n,l;function s(){return J(t)?(window.addEventListener("load",c),this):this}function c(){window.removeEventListener("load",c),l=!w(),U(t,"behavior_flyout-menu"),U(a,"behavior_flyout-menu_content"),U(o,"behavior_flyout-menu_trigger"),n=new je(t,!1),i=new X(a),i.init(l?X.CLASSES.MH_SUMMARY:X.CLASSES.MH_DEFAULT),n.setTransition(i,i.maxHeightSummary,i.maxHeightDefault),n.addEventListener("triggerclick",D),n.init(),x(),window.addEventListener("resize",x),"onorientationchange"in window&&window.addEventListener("orientationchange",x),t.addEventListener("focusin",u),a.addEventListener("click",m)}function u(j){!l&&j.target!==o&&(o.click(),t.removeEventListener("focusin",u))}function m(j){j.target.tagName!=="A"&&n.isExpanded()&&i.refresh()}function x(){w()?pe():he()}function w(){return e&&!Ba(Mt)||a.scrollHeight<=88}function D(){n.addEventListener("expandend",N)}function N(){F(),window.removeEventListener("resize",x),window.removeEventListener("orientationchange",x),n.removeEventListener("expandend",N),n.suspend(),i.remove()}function P(){o.classList.remove("u-hidden")}function F(){o.classList.add("u-hidden")}function he(){return l&&(n.collapse(),i.animateOn(),P(),l=!1),!l}function pe(){return l||(i.animateOff(),n.expand(),F(),l=!0),l}let G=new H;return this.addEventListener=G.addEventListener,this.removeEventListener=G.removeEventListener,this.dispatchEvent=G.dispatchEvent,this.init=s,this}Ht.BASE_CLASS=Ze;Ht.init=r=>ne(`.${Ze}`,Ht,r);var ft="o-summary-minimal";function Rt(r){let t=ie(r,ft),e=t.querySelector(`.${ft}__content`),a=t.querySelector(`.${ft}__btn`),o,i;function n(){return J(t)?(U(t,"behavior_flyout-menu"),U(e,"behavior_flyout-menu_content"),U(a,"behavior_flyout-menu_trigger"),window.addEventListener("load",l),this):this}function l(){window.removeEventListener("load",l),i=new je(t,!1),o=new X(e),o.init(X.CLASSES.MH_SUMMARY),i.setTransition(o,o.maxHeightSummary,o.maxHeightDefault),i.init(),t.addEventListener("focusin",s),e.addEventListener("click",c),i.collapse(),o.animateOn()}function s(m){m.target!==a&&(a.click(),t.removeEventListener("focusin",s))}function c(m){m.target.tagName!=="A"&&i.isExpanded()&&o.refresh()}let u=new H;return this.addEventListener=u.addEventListener,this.removeEventListener=u.removeEventListener,this.dispatchEvent=u.dispatchEvent,this.init=n,this}Rt.BASE_CLASS=ft;Rt.init=r=>ne(`.${ft}`,Rt,r);var Ka={};k(Ka,{default:()=>Mn});var Mn={};var Xa={};k(Xa,{default:()=>Dn});var Dn={};var Wa={};k(Wa,{default:()=>Bn});var Bn={};var Ya={};k(Ya,{default:()=>Rn});var Rn={};var Za={};k(Za,{default:()=>Fn});var Fn={};var Ja={};k(Ja,{default:()=>Gn});var Gn={};var Qa={};k(Qa,{default:()=>Xn});var Xn={};var er={};k(er,{default:()=>Yn});var Yn={};var tr={};k(tr,{default:()=>Jn});var Jn={};var Qn;function ed(r){return r.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function td(r,t){return RegExp(ed(t.trim()),"i").test(r)}function ad(r,t,e){let a=r,o=t,i=(e==null?void 0:e.maxSelections)||5,n=[],l=[],s=[],c=[],u=-1;function m(j){return o+"-"+j.value.trim().replace(/\s+/g,"-").toLowerCase()}function x(){return l.length>=i}function w(j){let T,B=[],z=!1;for(let V=0,oe=j.length;V<oe;V++)T=j[V],z=x()?!1:T.defaultSelected,B.push({id:m(T),value:T.value,text:T.text,checked:z}),z&&l.push(V);return B}function D(){return n=w(a),this}function N(j){return n[j].checked=!n[j].checked,l.length<i&&n[j].checked?(l.push(j),l.sort(),!0):(n[j].checked=!1,l=l.filter(function(T){return T!==j}),!1)}function P(j,T,B,z){return td(T.text,z)&&j.push(B),j}function F(j){return Object.prototype.toString.call(j)!=="[object String]"&&(j=""),c=s,n.length>0&&(s=n.reduce(function(T,B,z){return P(T,B,z,j)},[])),u=-1,s}function he(j){return n[j]}function pe(j){let T=s.length,B=T===0?n.length:T;j<0?u=-1:j>=B?u=B-1:u=j}function G(){return u}return this.init=D,this.toggleOption=N,this.getSelectedIndices=function(){return l},this.isAtMaxSelections=x,this.filterIndices=F,this.clearFilter=function(){return s=c=[],Qn},this.getFilterIndices=function(){return s},this.getLastFilterIndices=function(){return c},this.getIndex=G,this.setIndex=pe,this.resetIndex=function(){return u=-1,u},this.getOption=he,this}var lo=ad;function de(r,t,e){let a=document.createElement(r);return Object.keys(e).forEach(o=>{let i=e[o];o in a?a[o]=i:a.setAttribute(o,i)}),t&&t.appendChild(a),a}var Ut='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="cf-icon-svg cf-icon-svg--error" viewBox="0 0 12 19"><path d="M11.383 13.644A1.03 1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1 1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6 8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455 9.716z"/></svg>';var dd=Ut,se="o-multiselect",sd="a-checkbox",ld="a-text-input",co="prev",Ft="next",ar="Enter",cd=" ",ho="Escape",hd="ArrowUp",uo="ArrowDown",fo="Tab",po={renderTags:!0,maxSelections:5};function Vt(r){r.classList.add(se);let t=ie(r,se),e=!1,a,o,i,n,l,s,c,u,m,x,w,D=[],N;function P(){w.classList.remove("u-no-results"),w.classList.add("u-filtered");let f=i.getLastFilterIndices();for(let p=0,v=f.length;p<v;p++)D[f[p]].classList.remove("u-filter-match");f=i.getFilterIndices();for(let p=0,v=f.length;p<v;p++)D[f[p]].classList.add("u-filter-match")}function F(){w.classList.remove("u-filtered","u-no-results");for(let f=0,p=w.children.length;f<p;f++)w.children[f].classList.remove("u-filter-match");i.clearFilter()}function he(){w.classList.add("u-no-results"),w.classList.remove("u-filtered")}function pe(f){return f.length>0?(P(),!0):(he(),!1)}function G(f){F(),i.resetIndex();let p=i.filterIndices(f);pe(p)}function j(){return s.classList.add("u-active"),x.classList.remove("u-invisible"),x.setAttribute("aria-hidden",!1),N.dispatchEvent("expandbegin",{target:N}),N}function T(){return s.classList.remove("u-active"),x.classList.add("u-invisible"),x.setAttribute("aria-hidden",!0),i.resetIndex(),N.dispatchEvent("collapsebegin",{target:N}),N}function B(f){f===Ft?i.setIndex(i.getIndex()+1):f===co&&i.setIndex(i.getIndex()-1);let p=i.getIndex();if(p>-1){let v=p,_=i.getFilterIndices();_.length>0&&(v=_[p]);let me=i.getOption(v).value,Yi=w.querySelector('[data-option="'+me+'"]').querySelector("input");e=!0,Yi.focus()}else e=!1,m.focus()}function z(){m.value="",F()}function V(f){let p=f.target;p.tagName==="BUTTON"&&(f.preventDefault(),p.removeEventListener("click",V),p.querySelector("label").click())}function oe(f){if(f.key===cd||f.key===ar){let p=f.target.querySelector("label");w.querySelector("#"+p.getAttribute("for")).click()}}function be(f){return a+"-"+f.value.trim().replace(/[^\w]/g,"-").toLowerCase()}function Xe(f,p){let v=be(p),_=de("li",null,{"data-option":p.value}),q=de("button",_,{type:"button",class:"a-tag-filter",innerHTML:"<label for="+v+">"+p.text+dd+"</label>"});f.appendChild(_),q.addEventListener("click",V),q.addEventListener("keydown",oe)}function Tt(f){let p=i.getOption(f)||i.getOption(i.getIndex());if(p){if(p.checked){w.classList.contains("u-max-selections")&&w.classList.remove("u-max-selections");let v='[data-option="'+p.value+'"]',_=c.querySelector(v);typeof _!="undefined"&&_&&(c==null||c.removeChild(_))}else l!=null&&l.renderTags&&c&&Xe(c,p);i.toggleOption(f),i.isAtMaxSelections()&&w.classList.add("u-max-selections"),N.dispatchEvent("selectionsupdated",{target:N})}i.resetIndex(),e=!1,x.getAttribute("aria-hidden")==="false"&&m.focus()}function Sa(f){Tt(Number(f.target.getAttribute("data-index"))),z()}function $a(){u.addEventListener("mousemove",function(v){let _=v.target;v.offsetX>_.offsetWidth-35?_.style.cursor="pointer":_.style.cursor="auto"}),u.addEventListener("mouseup",function(v){let _=v.target;v.offsetX>_.offsetWidth-35&&x.offsetHeight===140&&m.blur()}),m.addEventListener("input",function(){G(this.value)}),m.addEventListener("focus",function(){x.getAttribute("aria-hidden")==="true"&&j()}),m.addEventListener("blur",function(){!e&&x.getAttribute("aria-hidden")==="false"&&T()}),m.addEventListener("keydown",function(v){let _=v.key;x.getAttribute("aria-hidden")==="true"&&_!==fo&&j(),_===ar?(v.preventDefault(),B(Ft)):_===ho?(z(),T()):_===uo?B(Ft):_===fo&&!v.shiftKey&&x.getAttribute("aria-hidden")==="false"&&T()}),w.addEventListener("mousedown",function(){e=!0}),w.addEventListener("keydown",function(v){let _=v.key,q=v.target,me=q.checked;if(_===ar){v.preventDefault(),q.checked=!me;let ue=new Event("change",{bubbles:!1,cancelable:!0});q.dispatchEvent(ue)}else _===ho?(m.focus(),T()):_===hd?B(co):_===uo&&B(Ft)}),x.addEventListener("mousedown",function(v){v.target.tagName==="LABEL"&&(e=!0)});let f=w.querySelectorAll("input");for(let v=0,_=f.length;v<_;v++)f[v].addEventListener("change",Sa);let p=c.querySelectorAll("button");for(let v=0,_=p.length;v<_;v++)p[v].addEventListener("click",V),p[v].addEventListener("keydown",oe)}function Ot(){s=document.createElement("div"),s.className=se,c=de("ul",null,{className:"m-tag-group"}),u=de("header",s,{className:se+"__header"}),m=de("input",u,{className:se+"__search "+ld,type:"text",placeholder:o||"Select up to five",id:t.id,autocomplete:"off"}),x=de("fieldset",s,{className:se+"__fieldset u-invisible","aria-hidden":"true"});let f=se+"__options";i.isAtMaxSelections()&&(f+=" u-max-selections"),w=de("ul",x,{className:f});let p,v,_;for(let q=0,me=n.length;q<me;q++){p=n[q],v=be(p),_=i.getOption(q).checked;let ue=de("li",w,{"data-option":p.value,"data-cy":"multiselect-option",class:"m-form-field m-form-field--checkbox"});de("input",ue,{id:v,type:"checkbox",value:p.value,name:a,class:sd+" "+se+"__checkbox",checked:_,"data-index":q}),de("label",ue,{for:v,textContent:p.text,className:se+"__label a-label"}),D.push(ue),_&&(l!=null&&l.renderTags)&&Xe(c,p)}return s.insertBefore(c,u),t.parentNode.insertBefore(s,t),s.appendChild(t),s}function La(f=po){if(!J(t))return this;if(Ua())return this;if(N=this,a=t.name||t.id,o=t.getAttribute("placeholder"),n=t.options||[],l=lt(lt({},po),f),n.length>0){i=new lo(n,a,l).init();let p=Ot();t.parentNode.removeChild(t),t=p,J(t),$a()}return this}function Ca(){return i}this.init=La,this.expand=j,this.collapse=T;let qe=new H;return this.addEventListener=qe.addEventListener,this.removeEventListener=qe.removeEventListener,this.dispatchEvent=qe.dispatchEvent,this.getModel=Ca,this.updateSelections=Tt,this.selectionClickHandler=V,this.selectionKeyDownHandler=oe,this}Vt.BASE_CLASS=se;Vt.init=r=>ne(`.${se}`,Vt,void 0,r);var rr={};k(rr,{default:()=>fd});var fd={};var or={};k(or,{default:()=>bd});var bd={};var ir={};k(ir,{default:()=>gd});var gd={};var nr={};k(nr,{default:()=>xd});var xd={};var dr={};k(dr,{default:()=>_d});var _d={};var sr={};k(sr,{default:()=>kd});var kd={};var lr={};k(lr,{default:()=>zd});var zd={};var cr={};k(cr,{default:()=>Ad});var Ad={};var hr={};k(hr,{default:()=>$d});var $d={};var ur={};k(ur,{default:()=>Cd});var Cd={};var fr={};k(fr,{default:()=>Od});var Od={};var pr={};k(pr,{default:()=>qd});var qd={};var br={};k(br,{default:()=>Nd});var Nd={};var mr={};k(mr,{default:()=>Pd});var Pd={};var gr={};k(gr,{default:()=>Hd});var Hd={};var vr={};k(vr,{default:()=>Ud});var Ud={};var xr={};k(xr,{default:()=>Vd});var Vd={};var yr={};k(yr,{default:()=>Kd});var Kd={};var _r={};k(_r,{default:()=>Wd});var Wd={};var wr={};k(wr,{default:()=>Zd});var Zd={};var Gt=globalThis,Kt=Gt.ShadowRoot&&(Gt.ShadyCSS===void 0||Gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kr=Symbol(),bo=new WeakMap,pt=class{constructor(t,e,a){if(this._$cssResult$=!0,a!==kr)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(Kt&&t===void 0){let a=e!==void 0&&e.length===1;a&&(t=bo.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),a&&bo.set(e,t))}return t}toString(){return this.cssText}},I=r=>new pt(typeof r=="string"?r:r+"",void 0,kr),M=(r,...t)=>{let e=r.length===1?r[0]:t.reduce(((a,o,i)=>a+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[i+1]),r[0]);return new pt(e,r,kr)},mo=(r,t)=>{if(Kt)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let a=document.createElement("style"),o=Gt.litNonce;o!==void 0&&a.setAttribute("nonce",o),a.textContent=e.cssText,r.appendChild(a)}},jr=Kt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let a of t.cssRules)e+=a.cssText;return I(e)})(r):r;var{is:Jd,defineProperty:Qd,getOwnPropertyDescriptor:es,getOwnPropertyNames:ts,getOwnPropertySymbols:as,getPrototypeOf:rs}=Object,Ae=globalThis,go=Ae.trustedTypes,os=go?go.emptyScript:"",zr=Ae.reactiveElementPolyfillSupport,bt=(r,t)=>r,Er={toAttribute(r,t){switch(t){case Boolean:r=r?os: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(a){e=null}}return e}},wo=(r,t)=>!Jd(r,t),vo={attribute:!0,type:String,converter:Er,reflect:!1,useDefault:!1,hasChanged:wo},xo,yo;(xo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(yo=Ae.litPropertyMetadata)!=null||(Ae.litPropertyMetadata=new WeakMap);var ge=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=vo){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 a=Symbol(),o=this.getPropertyDescriptor(t,a,e);o!==void 0&&Qd(this.prototype,t,o)}}static getPropertyDescriptor(t,e,a){var n;let{get:o,set:i}=(n=es(this.prototype,t))!=null?n:{get(){return this[e]},set(l){this[e]=l}};return{get:o,set(l){let s=o==null?void 0:o.call(this);i==null||i.call(this,l),this.requestUpdate(t,s,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:vo}static _$Ei(){if(this.hasOwnProperty(bt("elementProperties")))return;let t=rs(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(bt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(bt("properties"))){let e=this.properties,a=[...ts(e),...as(e)];for(let o of a)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[a,o]of e)this.elementProperties.set(a,o)}this._$Eh=new Map;for(let[e,a]of this.elementProperties){let o=this._$Eu(e,a);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let a=new Set(t.flat(1/0).reverse());for(let o of a)e.unshift(jr(o))}else t!==void 0&&e.push(jr(t));return e}static _$Eu(t,e){let a=e.attribute;return a===!1?void 0:typeof a=="string"?a: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,a;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((a=t.hostConnected)==null||a.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let a of e.keys())this.hasOwnProperty(a)&&(t.set(a,this[a]),delete this[a]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return mo(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((a=>{var o;return(o=a.hostConnected)==null?void 0:o.call(a)}))}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach((e=>{var a;return(a=e.hostDisconnected)==null?void 0:a.call(e)}))}attributeChangedCallback(t,e,a){this._$AK(t,a)}_$ET(t,e){var i;let a=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,a);if(o!==void 0&&a.reflect===!0){let n=(((i=a.converter)==null?void 0:i.toAttribute)!==void 0?a.converter:Er).toAttribute(e,a.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){var i,n,l,s;let a=this.constructor,o=a._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let c=a.getPropertyOptions(o),u=typeof c.converter=="function"?{fromAttribute:c.converter}:((i=c.converter)==null?void 0:i.fromAttribute)!==void 0?c.converter:Er;this._$Em=o,this[o]=(s=(l=u.fromAttribute(e,c.type))!=null?l:(n=this._$Ej)==null?void 0:n.get(o))!=null?s:null,this._$Em=null}}requestUpdate(t,e,a){var o,i;if(t!==void 0){let n=this.constructor,l=this[t];if(a!=null||(a=n.getPropertyOptions(t)),!(((o=a.hasChanged)!=null?o:wo)(l,e)||a.useDefault&&a.reflect&&l===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(n._$Eu(t,a))))return;this.C(t,e,a)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:a,reflect:o,wrapped:i},n){var l,s,c;a&&!((l=this._$Ej)!=null?l:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(s=n!=null?n:e)!=null?s:this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||a||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&((c=this._$Eq)!=null?c:this._$Eq=new Set).add(t))}_$EP(){return to(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 a,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((a=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,l]of this._$Ep)this[n]=l;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,l]of i){let{wrapped:s}=l,c=this[n];s!==!0||this._$AL.has(n)||c===void 0||this.C(n,void 0,l,c)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach((i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)})),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach((a=>{var o;return(o=a.hostUpdated)==null?void 0:o.call(a)})),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){}},_o;ge.elementStyles=[],ge.shadowRootOptions={mode:"open"},ge[bt("elementProperties")]=new Map,ge[bt("finalized")]=new Map,zr==null||zr({ReactiveElement:ge}),((_o=Ae.reactiveElementVersions)!=null?_o:Ae.reactiveElementVersions=[]).push("2.1.0");var gt=globalThis,Xt=gt.trustedTypes,ko=Xt?Xt.createPolicy("lit-html",{createHTML:r=>r}):void 0,$r="$lit$",ve=`lit$${Math.random().toFixed(9).slice(2)}$`,Lr="?"+ve,is=`<${Lr}>`,Pe=document,vt=()=>Pe.createComment(""),xt=r=>r===null||typeof r!="object"&&typeof r!="function",Cr=Array.isArray,Lo=r=>Cr(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Ar=`[
\f\r]`,mt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jo=/-->/g,zo=/>/g,Ne=RegExp(`>|${Ar}(?:([^\\s"'>=/]+)(${Ar}*=${Ar}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),Eo=/'/g,Ao=/"/g,Co=/^(?:script|style|textarea|title)$/i,Tr=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),E=Tr(1),oc=Tr(2),ic=Tr(3),le=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),So=new WeakMap,De=Pe.createTreeWalker(Pe,129);function To(r,t){if(!Cr(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ko!==void 0?ko.createHTML(t):t}var Oo=(r,t)=>{let e=r.length-1,a=[],o,i=t===2?"<svg>":t===3?"<math>":"",n=mt;for(let l=0;l<e;l++){let s=r[l],c,u,m=-1,x=0;for(;x<s.length&&(n.lastIndex=x,u=n.exec(s),u!==null);)x=n.lastIndex,n===mt?u[1]==="!--"?n=jo:u[1]!==void 0?n=zo:u[2]!==void 0?(Co.test(u[2])&&(o=RegExp("</"+u[2],"g")),n=Ne):u[3]!==void 0&&(n=Ne):n===Ne?u[0]===">"?(n=o!=null?o:mt,m=-1):u[1]===void 0?m=-2:(m=n.lastIndex-u[2].length,c=u[1],n=u[3]===void 0?Ne:u[3]==='"'?Ao:Eo):n===Ao||n===Eo?n=Ne:n===jo||n===zo?n=mt:(n=Ne,o=void 0);let w=n===Ne&&r[l+1].startsWith("/>")?" ":"";i+=n===mt?s+is:m>=0?(a.push(c),s.slice(0,m)+$r+s.slice(m)+ve+w):s+ve+(m===-2?l:w)}return[To(r,i+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),a]},yt=class r{constructor({strings:t,_$litType$:e},a){let o;this.parts=[];let i=0,n=0,l=t.length-1,s=this.parts,[c,u]=Oo(t,e);if(this.el=r.createElement(c,a),De.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=De.nextNode())!==null&&s.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let m of o.getAttributeNames())if(m.endsWith($r)){let x=u[n++],w=o.getAttribute(m).split(ve),D=/([.?@])?(.*)/.exec(x);s.push({type:1,index:i,name:D[2],strings:w,ctor:D[1]==="."?Yt:D[1]==="?"?Zt:D[1]==="@"?Jt:He}),o.removeAttribute(m)}else m.startsWith(ve)&&(s.push({type:6,index:i}),o.removeAttribute(m));if(Co.test(o.tagName)){let m=o.textContent.split(ve),x=m.length-1;if(x>0){o.textContent=Xt?Xt.emptyScript:"";for(let w=0;w<x;w++)o.append(m[w],vt()),De.nextNode(),s.push({type:2,index:++i});o.append(m[x],vt())}}}else if(o.nodeType===8)if(o.data===Lr)s.push({type:2,index:i});else{let m=-1;for(;(m=o.data.indexOf(ve,m+1))!==-1;)s.push({type:7,index:i}),m+=ve.length-1}i++}}static createElement(t,e){let a=Pe.createElement("template");return a.innerHTML=t,a}};function Be(r,t,e=r,a){var n,l,s;if(t===le)return t;let o=a!==void 0?(n=e._$Co)==null?void 0:n[a]:e._$Cl,i=xt(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==i&&((l=o==null?void 0:o._$AO)==null||l.call(o,!1),i===void 0?o=void 0:(o=new i(r),o._$AT(r,e,a)),a!==void 0?((s=e._$Co)!=null?s:e._$Co=[])[a]=o:e._$Cl=o),o!==void 0&&(t=Be(r,o._$AS(r,t.values),o,a)),t}var Wt=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 c;let{el:{content:e},parts:a}=this._$AD,o=((c=t==null?void 0:t.creationScope)!=null?c:Pe).importNode(e,!0);De.currentNode=o;let i=De.nextNode(),n=0,l=0,s=a[0];for(;s!==void 0;){if(n===s.index){let u;s.type===2?u=new Je(i,i.nextSibling,this,t):s.type===1?u=new s.ctor(i,s.name,s.strings,this,t):s.type===6&&(u=new Qt(i,this,t)),this._$AV.push(u),s=a[++l]}n!==(s==null?void 0:s.index)&&(i=De.nextNode(),n++)}return De.currentNode=Pe,o}p(t){let e=0;for(let a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(t,a,e),e+=a.strings.length-2):a._$AI(t[e])),e++}},Je=class r{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,a,o){var i;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=a,this.options=o,this._$Cv=(i=o==null?void 0:o.isConnected)!=null?i:!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=Be(this,t,e),xt(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==le&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Lo(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!==$&&xt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Pe.createTextNode(t)),this._$AH=t}$(t){var i;let{values:e,_$litType$:a}=t,o=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=yt.createElement(To(a.h,a.h[0]),this.options)),a);if(((i=this._$AH)==null?void 0:i._$AD)===o)this._$AH.p(e);else{let n=new Wt(o,this),l=n.u(this.options);n.p(e),this.T(l),this._$AH=n}}_$AC(t){let e=So.get(t.strings);return e===void 0&&So.set(t.strings,e=new yt(t)),e}k(t){Cr(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,a,o=0;for(let i of t)o===e.length?e.push(a=new r(this.O(vt()),this.O(vt()),this,this.options)):a=e[o],a._$AI(i),o++;o<e.length&&(this._$AR(a&&a._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var a;for((a=this._$AP)==null?void 0:a.call(this,!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},He=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,a,o,i){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=$}_$AI(t,e=this,a,o){let i=this.strings,n=!1;if(i===void 0)t=Be(this,t,e,0),n=!xt(t)||t!==this._$AH&&t!==le,n&&(this._$AH=t);else{let l=t,s,c;for(t=i[0],s=0;s<i.length-1;s++)c=Be(this,l[a+s],e,s),c===le&&(c=this._$AH[s]),n||(n=!xt(c)||c!==this._$AH[s]),c===$?t=$:t!==$&&(t+=(c!=null?c:"")+i[s+1]),this._$AH[s]=c}n&&!o&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Yt=class extends He{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}},Zt=class extends He{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$)}},Jt=class extends He{constructor(t,e,a,o,i){super(t,e,a,o,i),this.type=5}_$AI(t,e=this){var n;if((t=(n=Be(this,t,e,0))!=null?n:$)===le)return;let a=this._$AH,o=t===$&&a!==$||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,i=t!==$&&(a===$||o);o&&this.element.removeEventListener(this.name,this,a),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,a;typeof this._$AH=="function"?this._$AH.call((a=(e=this.options)==null?void 0:e.host)!=null?a:this.element,t):this._$AH.handleEvent(t)}},Qt=class{constructor(t,e,a){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(t){Be(this,t)}},Io={M:$r,P:ve,A:Lr,C:1,L:Oo,R:Wt,D:Lo,V:Be,I:Je,H:He,N:Zt,U:Jt,B:Yt,F:Qt},Sr=gt.litHtmlPolyfillSupport,$o;Sr==null||Sr(yt,Je),(($o=gt.litHtmlVersions)!=null?$o:gt.litHtmlVersions=[]).push("3.3.0");var qo=(r,t,e)=>{var i,n;let a=(i=e==null?void 0:e.renderBefore)!=null?i:t,o=a._$litPart$;if(o===void 0){let l=(n=e==null?void 0:e.renderBefore)!=null?n:null;a._$litPart$=o=new Je(t.insertBefore(vt(),l),l,void 0,e!=null?e:{})}return o._$AI(r),o};var Re=globalThis,L=class extends ge{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,a;let t=super.createRenderRoot();return(a=(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=qo(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 le}},Mo;L._$litElement$=!0,L.finalized=!0,(Mo=Re.litElementHydrateSupport)==null||Mo.call(Re,{LitElement:L});var Or=Re.litElementPolyfillSupport;Or==null||Or({LitElement:L});var No;((No=Re.litElementVersions)!=null?No:Re.litElementVersions=[]).push("4.2.0");var Qe={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},xe=r=>(...t)=>({_$litDirective$:r,values:t}),Se=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,a){this._$Ct=t,this._$AM=e,this._$Ci=a}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var ea=xe(class extends Se{constructor(r){var t;if(super(r),r.type!==Qe.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 a,o;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter((i=>i!==""))));for(let i in t)t[i]&&!((a=this.nt)!=null&&a.has(i))&&this.st.add(i);return this.render(t)}let e=r.element.classList;for(let i of this.st)i in t||(e.remove(i),this.st.delete(i));for(let i in t){let n=!!t[i];n===this.st.has(i)||(o=this.nt)!=null&&o.has(i)||(n?(e.add(i),this.st.add(i)):(e.remove(i),this.st.delete(i)))}return le}});var{I:Ec}=Io;var Do=r=>r.strings===void 0;var _t=(r,t)=>{var a;let e=r._$AN;if(e===void 0)return!1;for(let o of e)(a=o._$AO)==null||a.call(o,t,!1),_t(o,t);return!0},ta=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)},Po=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),ss(t)}};function ns(r){this._$AN!==void 0?(ta(this),this._$AM=r,Po(this)):this._$AM=r}function ds(r,t=!1,e=0){let a=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(a))for(let i=e;i<a.length;i++)_t(a[i],!1),ta(a[i]);else a!=null&&(_t(a,!1),ta(a));else _t(this,r)}var ss=r=>{var t,e;r.type==Qe.CHILD&&((t=r._$AP)!=null||(r._$AP=ds),(e=r._$AQ)!=null||(r._$AQ=ns))},aa=class extends Se{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,a){super._$AT(t,e,a),Po(this),this.isConnected=t._$AU}_$AO(t,e=!0){var a,o;t!==this.isConnected&&(this.isConnected=t,t?(a=this.reconnected)==null||a.call(this):(o=this.disconnected)==null||o.call(this)),e&&(_t(this,t),ta(this))}setValue(t){if(Do(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 wt=()=>new qr,qr=class{},Ir=new WeakMap,kt=xe(class extends aa{render(r){return $}update(r,[t]){var a;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=(a=r.options)==null?void 0:a.host,this.rt(this.ct=r.element)),$}rt(r){var t;if(this.isConnected||(r=void 0),typeof this.G=="function"){let e=(t=this.ht)!=null?t:globalThis,a=Ir.get(e);a===void 0&&(a=new WeakMap,Ir.set(e,a)),a.get(this.G)!==void 0&&this.G.call(this.ht,void 0),a.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=Ir.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 Bo=`@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+