vendor: 4,753 bytes, lines 1-2
1/*! For license information please see 993.e1a16cf0.js.LICENSE.txt */ 2"use strict";(self.webpackChunkumg_newsletter_plugin=self.webpackChunkumg_newsletter_plugin||[]).push([[993],{993:(e,t,o)=>{function i(e,t,o,i){var a,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(r=(s<3?a(r):s>3?a(t,o,r):a(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r}o.r(t),o.d(t,{default:()=>Lr}),"function"==typeof SuppressedError&&SuppressedError;const a=globalThis,s=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),n=new WeakMap;class l{constructor(e,t,o){if(this._$cssResult$=!0,o!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(s&&void 0===e){const o=void 0!==t&&1===t.length;o&&(e=n.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&n.set(t,e))}return e}toString(){return this.cssText}}const d=(e,...t)=>{const o=1===e.length?e[0]:t.reduce(((t,o,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1]),e[0]);return new l(o,e,r)},c=(e,t)=>{if(s)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const o of t){const t=document.createElement("style"),i=a.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=o.cssText,e.appendChild(t)}},p=s?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return(e=>new l("string"==typeof e?e:e+"",void 0,r))(t)})(e):e,{is:u,defineProperty:h,getOwnPropertyDescriptor:g,getOwnPropertyNames:f,getOwnPropertySymbols:m,getPrototypeOf:b}=Object,v=globalThis,y=v.trustedTypes,$=y?y.emptyScript:"",x=v.reactiveElementPolyfillSupport,C=(e,t)=>e,w={toAttribute(e,t){switch(t){case Boolean:e=e?$:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=null!==e;break;case Number:o=null===e?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch(e){o=null}}return o}},S=(e,t)=>!u(e,t),k={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:S};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;class _ extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=k){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(e,o,t);void 0!==i&&h(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){const{get:i,set:a}=g(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:i,set(t){const s=i?.call(this);a?.call(this,t),this.requestUpdate(e,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??k}static _$Ei(){if(this.hasOwnProperty(C("elementProperties")))return;const e=b(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(C("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(C("properties"))){const e=this.properties,t=[...f(e),...m(e)];for(const o of t)this.createProperty(o,e[o])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,o]of t)this.elementProperties.set(e,o)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const o=this._$Eu(e,t);void 0!==o&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const e of o)t.unshift(p(e))}else void 0!==e&&t.push(p(e));return t}static _$Eu(e,t){const o=t.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}
vendor: 4,090 bytes, line 2
2removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return c(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){const o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(void 0!==i&&!0===o.reflect){const a=(void 0!==o.converter?.toAttribute?o.converter:w).toAttribute(t,o.type);this._$Em=e,null==a?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){const o=this.constructor,i=o._$Eh.get(e);if(void 0!==i&&this._$Em!==i){const e=o.getPropertyOptions(i),a="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:w;this._$Em=i;const s=a.fromAttribute(t,e.type);this[i]=s??this._$Ej?.get(i)??s,this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(void 0!==e){const s=this.constructor;if(!1===i&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??S)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,t,o)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:i,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),!0!==a||void 0!==s)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),!0===i&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,o]of e){const{wrapped:e}=o,i=this[t];!0!==e||this._$AL.has(t)||void 0===i||this.C(t,void 0,o,i)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(e){}firstUpdated(e){}}_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[C("elementProperties")]=new Map,_[C("finalized")]=new Map,x?.({ReactiveElement:_}),(v.reactiveElementVersions??=[]).push("2.1.2");const P=globalThis,A=P.trustedTypes,T=A?A.createPolicy("lit-html",{createHTML:e=>e}):void 0,E="$lit$",I=`lit$${Math.random().toFixed(9).slice(2)}$`,z="?"+I,M=`<${z}>`,F=document,O=()=>F.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,L=Array.isArray,N=e=>L(e)||"function"==typeof e?.[Symbol.iterator],B="[ \t\n\f\r]",R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,H=/>/g,j=RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),U=/'/g,G=/"/g,q=/^(?:script|style|textarea|title)$/i,K=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),W=K(1),Z=(K(2),K(3),Symbol.for("lit-noChange")),X=Symbol.for("lit-nothing"),Y=new WeakMap,J=F.createTreeWalker(F,129);function Q(e,t){if(!L(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(t):t}const ee=(e,t)=>{const o=e.length-1,i=[];let a,s=2===t?"<svg>":3===t?"<math>":"",r=R;for(let t=0;t<o;t++){const o=e[t];
vendor: 5,252 bytes, line 2
2let n,l,d=-1,c=0;for(;c<o.length&&(r.lastIndex=c,l=r.exec(o),null!==l);)c=r.lastIndex,r===R?"!--"===l[1]?r=V:void 0!==l[1]?r=H:void 0!==l[2]?(q.test(l[2])&&(a=RegExp("</"+l[2],"g")),r=j):void 0!==l[3]&&(r=j):r===j?">"===l[0]?(r=a??R,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,n=l[1],r=void 0===l[3]?j:'"'===l[3]?G:U):r===G||r===U?r=j:r===V||r===H?r=R:(r=j,a=void 0);const p=r===j&&e[t+1].startsWith("/>")?" ":"";s+=r===R?o+M:d>=0?(i.push(n),o.slice(0,d)+E+o.slice(d)+I+p):o+I+(-2===d?t:p)}return[Q(e,s+(e[o]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class te{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0;const r=e.length-1,n=this.parts,[l,d]=ee(e,t);if(this.el=te.createElement(l,o),J.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=J.nextNode())&&n.length<r;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(E)){const t=d[s++],o=i.getAttribute(e).split(I),r=/([.?@])?(.*)/.exec(t);n.push({type:1,index:a,name:r[2],strings:o,ctor:"."===r[1]?re:"?"===r[1]?ne:"@"===r[1]?le:se}),i.removeAttribute(e)}else e.startsWith(I)&&(n.push({type:6,index:a}),i.removeAttribute(e));if(q.test(i.tagName)){const e=i.textContent.split(I),t=e.length-1;if(t>0){i.textContent=A?A.emptyScript:"";for(let o=0;o<t;o++)i.append(e[o],O()),J.nextNode(),n.push({type:2,index:++a});i.append(e[t],O())}}}else if(8===i.nodeType)if(i.data===z)n.push({type:2,index:a});else{let e=-1;for(;-1!==(e=i.data.indexOf(I,e+1));)n.push({type:7,index:a}),e+=I.length-1}a++}}static createElement(e,t){const o=F.createElement("template");return o.innerHTML=e,o}}function oe(e,t,o=e,i){if(t===Z)return t;let a=void 0!==i?o._$Co?.[i]:o._$Cl;const s=D(t)?void 0:t._$litDirective$;return a?.constructor!==s&&(a?._$AO?.(!1),void 0===s?a=void 0:(a=new s(e),a._$AT(e,o,i)),void 0!==i?(o._$Co??=[])[i]=a:o._$Cl=a),void 0!==a&&(t=oe(e,a._$AS(e,t.values),a,i)),t}class ie{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:o}=this._$AD,i=(e?.creationScope??F).importNode(t,!0);J.currentNode=i;let a=J.nextNode(),s=0,r=0,n=o[0];for(;void 0!==n;){if(s===n.index){let t;2===n.type?t=new ae(a,a.nextSibling,this,e):1===n.type?t=new n.ctor(a,n.name,n.strings,this,e):6===n.type&&(t=new de(a,this,e)),this._$AV.push(t),n=o[++r]}s!==n?.index&&(a=J.nextNode(),s++)}return J.currentNode=F,i}p(e){let t=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class ae{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=oe(this,e,t),D(e)?e===X||null==e||""===e?(this._$AH!==X&&this._$AR(),this._$AH=X):e!==this._$AH&&e!==Z&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):N(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==X&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(F.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:o}=e,i="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=te.createElement(Q(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{const e=new ie(i,this),o=e.u(this.options);e.p(t),this.T(o),this._$AH=e}}_$AC(e){let t=Y.get(e.strings);return void 0===t&&Y.set(e.strings,t=new te(e)),t}k(e){L(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,i=0;for(const a of e)i===t.length?t.push(o=new ae(this.O(O()),this.O(O()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class se{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,a){this.type=1,this._$AH=X,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=X}_$AI(e,t=this,o,i){const a=this.strings;let s=!1;if(void 0===a)e=oe(this,e,t,0),s=!D(e)||e!==this._$AH&&e!==Z,s&&(this._$AH=e);else{const i=e;let r,n;for(e=a[0],r=0;r<a.length-1;r++)n=oe(this,i[o+r],t,r),n===Z&&(n=this._$AH[r]),s||=!D(n)||n!==this._$AH[r],n===X?e=X:e!==X&&(e+=(n??"")+a[r+1]),this._$AH[r]=n}s&&!i&&this.j(e)}j(e){e===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class re extends se{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===X?void 0:e}}class ne extends se{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==X)}}class le extends se{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}
vendor: 5,280 bytes, line 2
2_$AI(e,t=this){if((e=oe(this,e,t,0)??X)===Z)return;const o=this._$AH,i=e===X&&o!==X||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==X&&(o===X||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class de{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){oe(this,e)}}const ce={M:E,P:I,A:z,C:1,L:ee,R:ie,D:N,V:oe,I:ae,H:se,N:ne,U:le,B:re,F:de},pe=P.litHtmlPolyfillSupport;pe?.(te,ae),(P.litHtmlVersions??=[]).push("3.3.3");const ue=globalThis;class he extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,o)=>{const i=o?.renderBefore??t;let a=i._$litPart$;if(void 0===a){const e=o?.renderBefore??null;i._$litPart$=a=new ae(t.insertBefore(O(),e),e,void 0,o??{})}return a._$AI(e),a})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Z}}he._$litElement$=!0,he.finalized=!0,ue.litElementHydrateSupport?.({LitElement:he});const ge=ue.litElementPolyfillSupport;ge?.({LitElement:he});(ue.litElementVersions??=[]).push("4.2.2");const fe=e=>(t,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},me={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:S},be=(e=me,t,o)=>{const{kind:i,metadata:a}=o;let s=globalThis.litPropertyMetadata.get(a);if(void 0===s&&globalThis.litPropertyMetadata.set(a,s=new Map),"setter"===i&&((e=Object.create(e)).wrapped=!0),s.set(o.name,e),"accessor"===i){const{name:i}=o;return{set(o){const a=t.get.call(this);t.set.call(this,o),this.requestUpdate(i,a,e,!0,o)},init(t){return void 0!==t&&this.C(i,void 0,e,t),t}}}if("setter"===i){const{name:i}=o;return function(o){const a=this[i];t.call(this,o),this.requestUpdate(i,a,e,!0,o)}}throw Error("Unsupported decorator location: "+i)};function ve(e){return(t,o)=>"object"==typeof o?be(e,t,o):((e,t,o)=>{const i=t.hasOwnProperty(o);return t.constructor.createProperty(o,e),i?Object.getOwnPropertyDescriptor(t,o):void 0})(e,t,o)}function ye(e){return ve({...e,state:!0,attribute:!1})}const $e=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,o),o);function xe(e,t){return(o,i,a)=>{const s=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof i?o:a??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return $e(o,i,{get(){let o=e.call(this);return void 0===o&&(o=s(this),(null!==o||this.hasUpdated)&&t.call(this,o)),o}})}return $e(o,i,{get(){return s(this)}})}}const Ce=1,we=2,Se=3,ke=4,_e=e=>(...t)=>({_$litDirective$:e,values:t});class Pe{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const Ae=_e(class extends Pe{constructor(e){if(super(e),e.type!==Ce||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}const o=e.element.classList;for(const e of this.st)e in t||(o.remove(e),this.st.delete(e));for(const e in t){const i=!!t[e];i===this.st.has(e)||this.nt?.has(e)||(i?(o.add(e),this.st.add(e)):(o.remove(e),this.st.delete(e)))}return Z}}),Te="important",Ee=" !"+Te,Ie=_e(class extends Pe{constructor(e){if(super(e),e.type!==Ce||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,o)=>{const i=e[o];return null==i?t:t+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(e,[t]){const{style:o}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?o.removeProperty(e):o[e]=null);for(const e in t){const i=t[e];if(null!=i){this.ft.add(e);const t="string"==typeof i&&i.endsWith(Ee);e.includes("-")||t?o.setProperty(e,t?i.slice(0,-11):i,t?Te:""):o[e]=i}}return Z}});class ze{constructor(e,t){this.defaultState=t,this.listeners=new Set,this.host=e,this.state=t,e.addController(this)}hostConnected(){}hostDisconnected(){}setState(e){Object.assign(this.state,e),this.host.requestUpdate(),this.notifyListeners()}getState(){return this.state}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}
2notifyListeners(){this.listeners.forEach((e=>e(this.state)))}}class Me extends ze{constructor(e){super(e,{isSubmitting:!1,lastResponse:null,error:null}),this.insecureEndpointError="insecure_endpoint"}setConfig(e){this.config=e}getEndpointUrl(){const e=this.host instanceof HTMLElement&&"apiBaseUrl"in this.host?this.host.apiBaseUrl:void 0,t=this.config?.api?.baseUrl,o=this.config?.api?.endpoint||"/subscribe",i=e||t||this.detectEnvironmentBaseUrl();if(i){return`${i.replace(/\/$/,"")}${o.startsWith("/")?o:`/${o}`}`}return o.startsWith("/")?o:`/${o}`}detectEnvironmentBaseUrl(){if("undefined"==typeof window)return;const e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e||e.includes(".dev.")||e.includes("localhost:")?"https://signup-dev.uap.umgapps.com":"https://signup.uap.umgapps.com"}async submitPrimaryForm(e){return this._submitForm(e,"Primary Form")}async submitOptinsForm(e){return this._submitForm(e,"Opt-ins Form")}async submitSupplementaryForm(e){return this._submitForm(e,"Supplementary Form")}async _submitForm(e,t){this.setState({isSubmitting:!0,error:null});try{if(!0===this.config?.debug?.mockAPI?.enabled){const o=this.config.debug.mockAPI,i=o.mockResponseDuration??1200;o.autoAdvance??!0?await new Promise((e=>setTimeout(e,i))):await new Promise((()=>{}));const a=this.getEndpointUrl();console.group(`API Request (Mock) - ${t}`),console.log("Endpoint:",`POST ${a}`),console.log("Payload:",JSON.stringify(e,null,2)),console.groupEnd();const s=!1!==e.partialSubmission,r={success:!0,message:s?"Data saved. Waiting for completion.":"Subscription successful",recordId:`mock-${Date.now()}`,status:s?"draft":"completed"};return this.setState({isSubmitting:!1,lastResponse:r,error:null}),r}{const o=this.getEndpointUrl();if(o.startsWith("http://")){console.error(`[ApiController] Insecure endpoint blocked for ${t}. Use HTTPS.`,o);const e={success:!1,error:this.insecureEndpointError};return this.setState({isSubmitting:!1,error:e.error,lastResponse:e}),e}const i=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});let a;try{a=await i.json()}catch{const e={success:!1,error:`Failed to parse API response: ${i.status} ${i.statusText}`};return this.setState({isSubmitting:!1,error:e.error,lastResponse:e}),e}if(!i.ok){const e={success:!1,error:a.error||`API request failed: ${i.status} ${i.statusText}`};return this.setState({isSubmitting:!1,error:e.error,lastResponse:e}),e}const s={success:!0,message:a.message,recordId:a.recordId};return this.setState({isSubmitting:!1,lastResponse:s,error:null}),s}}catch(e){const t=e instanceof Error?e.message:"Unknown error occurred";return this.setState({isSubmitting:!1,error:t,lastResponse:{success:!1,error:t}}),{success:!1,error:t}}}clearError(){this.setState({error:null})}reset(){this.setState({isSubmitting:!1,lastResponse:null,error:null})}}const Fe="optin";function Oe(e,t){return`${Fe}:${e}:${t}`}function De(){return`${Fe}:similar-artists`}const Le=["email","sms"];function Ne(e){const t=e.primaryOptins??{},o=Boolean(t.email),i=Boolean(t.sms);return o||i||je("Primary form requires at least one opt-in (email and/or SMS)."),Le.forEach((e=>{const o=t[e];o&&(o.id&&o.name&&o.code||je(`Primary ${e.toUpperCase()} opt-in is missing required fields (id, name, code).`))})),t}function Be(e){return Boolean(e.email&&e.sms)}function Re(e,t,o){const i=Ne(e);return i.sms?function(e,t){if(!e||!t.trim())return!0;const o=t.trim().toUpperCase();return Object.keys(e).some((e=>e.toUpperCase()===o))}(o,t)?i:i.email?{email:i.email}:{}:i}function Ve(e,t,o){const i=Boolean(t.email),a=Boolean(t.sms),s=i&&a;return"both"===e&&s?"both":"email"===e&&i?"email":"sms"===e&&a?"sms":s?o:a?"sms":"email"}function He(e,t,o,i){const a=null!=o&&""!==o.trim()?Re(e,o,i):Ne(e),s=Boolean(a.sms),r=Ve(t,a,e.channelPriority),n=a.email?.code,l=a.sms?.code;n||l||je("Primary opt-in code is missing.");const d=[];Boolean(a.email)&&("email"===r||"both"===r)&&d.push({code:n??l??"",smsOptin:!1,similarArtists:!1});return s&&("sms"===r||"both"===r)&&d.push({code:l??n??"",smsOptin:!0,similarArtists:!1}),d}function je(e){const t=`[Primary Optins] ${e}`;throw console.error(t),new Error(t)}function Ue(e){return e.trim().replace(/\s+/g," ")}function Ge(e){return e.trim().replace(/\s+/g,"")}function qe(e,t){const o=e.trim(),i=(t??"").trim();if(!o||!i||"+"===i)return o;const a=i.replace(/\D/g,"");if(!a)return o;let s=0;for(;s<o.length&&/\s/.test(o[s]);)s+=1;if("+"===o[s])s+=1;else{if("00"!==o.slice(s,s+2))return o;s+=2}for(const e of a){for(;s<o.length&&/[\s()-]/.test(o[s]);)s+=1;if(o[s]!==e)return o;s+=1}for(;s<o.length&&/[\s()-]/.test(o[s]);)s+=1;return o.slice(s).trimStart()}class Ke{static normalizePhoneNumber(e,t){const o=(e??"").trim();if(!o)return{};const i=(t??"").trim(),a=o.replace(/[^\d+]/g,"");if(a.startsWith("+")){return{mobilephone:"+"+a.slice(1).replace(/\D/g,""),mobilephone_country_code:i||void 0}}const s=a.replace(/[^\d]/g,"").replace(/^0/,""),r=i?i.startsWith("+")?i:`+${i}`:"";return{mobilephone:r?`${r}${s}`:s,mobilephone_country_code:r||void 0}}static isFinalStep(e,t){const o=t.optinsForm?.enabled??!1,i=t.supplementaryForm?.enabled??!1;return"primary"===e?!o&&!i:"optins"!==e||!i}static getIfbMetadata(e){if("ifb"!==e.crm)return{};const t={};if(e.crmMailingListId&&(t.crmMailingListId=e.crmMailingListId),e.acquisitionSys&&(t.acquisitionSys=e.acquisitionSys),e.crmVersion){["v1","v2","v3"].includes(e.crmVersion)&&(t.crmVersion=e.crmVersion)}return t}static buildPrimaryFormPayload(e,t,o,i){const a=e.get("email"),s=e.get("mobilephone"),r=We(e.get("mobilephone_country_code")),{mobilephone:n}=this.normalizePhoneNumber(s,r),l=e.get("country"),d=e.get("deliveryMethod"),c=!0===o.primaryForm.additionalFields?.postalCode?We(e.get("postalCode")):void 0,p=He(o.primaryForm,d??void 0,l??void 0,o.smsValidCountries),u="ifb"===o.crm?"ifb":"vv",h=this.getIfbMetadata(o),g={...a&&{email:a},...n&&{mobilePhone:n},country:l,optIn:p,crmSystem:u,sessionId:t,partialSubmission:!this.isFinalStep("primary",o),requestSourceId:window.location.hostname,requestSourceType:"website",requestType:"register",...c&&{postcode:c},...h};return i&&(g.captchaCode=i),g}static buildOptinsFormPayload(e,t,o,i,a,s){const r=We(e.get("email"))??a.email,n=We(e.get("mobilephone"))??a.mobilephone,l=We(e.get("mobilephone_country_code"))??a.mobilephone_country_code,{mobilephone:d}=this.normalizePhoneNumber(n,l),c=We(e.get("country"))??a.country;if(!c)throw new Error("Opt-ins form submission missing country.");const p=o.optinsForm?.optins??[],u=this.extractOptinSelections(e,p),h=this.mergeOptins(i,u),g=Ze(e.get(De())),f=h.map((e=>({...e,similarArtists:g}))),m="ifb"===o.crm?"ifb":"vv",b=this.getIfbMetadata(o),v={...r&&{email:r},...d&&{mobilePhone:d},country:c,sessionId:t,partialSubmission:!this.isFinalStep("optins",o),crmSystem:m,optIn:f,requestSourceId:window.location.hostname,requestSourceType:"website",requestType:"register",...b};return s&&(v.captchaCode=s),v}static buildSupplementaryFormPayload(e,t,o,i,a){const s=We(e.get("email"))??i.contact.email,r=We(e.get("mobilephone"))??We(e.get("phone"))??i.contact.mobilephone,n=We(e.get("mobilephone_country_code"))??i.contact.mobilephone_country_code,{mobilephone:l}=this.normalizePhoneNumber(r,n),d=We(e.get("country"))??i.contact.country;if(!d)throw new Error("Supplementary form submission missing country.");const c=i.optIns??[];if(!c.length)throw new Error("Supplementary form submission missing opt-ins.");const p="ifb"===o.crm?"ifb":"vv",u=this.getIfbMetadata(o),h=We(e.get("firstName")),g=We(e.get("surname")),f=We(e.get("address")),m=We(e.get("address2")),b=We(e.get("city")),v=We(e.get("state")),y=We(e.get("postalCode"))??i.contact.postalCode,$=Xe(e.get("birthdateDay"),1,31),x=Xe(e.get("birthdateMonth"),1,12),C={...s&&{email:s},...l&&{mobilePhone:l},country:d,sessionId:t,crmSystem:p,optIn:c,partialSubmission:!this.isFinalStep("supplementary",o),finalSubmission:!0,requestSourceId:window.location.hostname,requestSourceType:"website",requestType:"register",...h&&{firstName:h},...g&&{lastName:g},...f&&{address:f},...m&&{address2:m},...b&&{city:b},...v&&{state:v},...y&&{postcode:y},...void 0!==$&&{birthdateDay:$},...void 0!==x&&{birthdateMonth:x},...u};return a&&(C.captchaCode=a),C}static extractOptinSelections(e,t){return t.flatMap((t=>this.buildOptinEntry(t,e))).filter((e=>Boolean(e)))}static mergeOptins(e,t){const o=new Set(t.map((e=>e.code)));return[...e.filter((e=>!o.has(e.code))),...t]}static buildOptinEntry(e,t){const o=e.channels.includes("email"),i=e.channels.includes("sms"),a=!!o&&Ze(t.get(Oe(e.id,"email"))),s=!!i&&Ze(t.get(Oe(e.id,"sms"))),r
2=[],n=e.code||e.id;return a&&r.push({code:n,smsOptin:!1,similarArtists:!1}),s&&r.push({code:n,smsOptin:!0,similarArtists:!1}),r}}function We(e){if("string"==typeof e){const t=Ue(e);if(t.length>0)return t}}function Ze(e){if("string"==typeof e){const t=e.toLowerCase();return"true"===t||"on"===t||"1"===t}return!1}function Xe(e,t,o){if("string"!=typeof e)return;const i=e.trim();if(!i)return;const a=Number.parseInt(i,10);return Number.isNaN(a)||a<t||"number"==typeof o&&a>o?void 0:a}const Ye="^[^\\s@]+@[^\\s@]+\\.[^\\s@]{2,}$";function Je(e){if(!e)return!1;return new RegExp(Ye).test(e)}const Qe=[{countryCode:"AF",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"AX",postalCodeType:1,pattern:/^(AX-)?[0-9]{5}$/,placeholder:"AX-00000"},{countryCode:"AL",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"DZ",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"AD",postalCodeType:1,pattern:/^AD[0-9]{3}$/,placeholder:"AD000"},{countryCode:"AO",postalCodeType:0,pattern:0},{countryCode:"AI",postalCodeType:3,pattern:"AI-2640"},{countryCode:"AG",postalCodeType:0,pattern:0},{countryCode:"AR",postalCodeType:1,pattern:/^[A-Z]?[0-9]{4}([A-Z]{3})?$/,placeholder:"0000 or X0000XXX"},{countryCode:"AM",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"AW",postalCodeType:0,pattern:0},{countryCode:"AU",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"AT",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"AZ",postalCodeType:1,pattern:/^(AZ\s?)?[0-9]{4}$/,placeholder:"0000"},{countryCode:"BS",postalCodeType:0,pattern:0},{countryCode:"BH",postalCodeType:1,pattern:/^[0-9]{3,4}$/,placeholder:"000"},{countryCode:"BD",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"BB",postalCodeType:1,pattern:/^(BB)?[0-9]{5}$/,placeholder:"BB00000"},{countryCode:"BY",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"BE",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"BZ",postalCodeType:0,pattern:0},{countryCode:"BJ",postalCodeType:0,pattern:0},{countryCode:"BM",postalCodeType:1,pattern:/^[A-Z]{2}\s?[0-9A-Z]{2}$/,placeholder:"XX 00"},{countryCode:"BT",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"BO",postalCodeType:0,pattern:0},{countryCode:"BA",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"BW",postalCodeType:0,pattern:0},{countryCode:"BR",postalCodeType:1,pattern:/^[0-9]{5}-?[0-9]{3}$/,placeholder:"00000-000"},{countryCode:"IO",postalCodeType:3,pattern:"BBND 1ZZ"},{countryCode:"VG",postalCodeType:1,pattern:/^VG[0-9]{4}$/,placeholder:"VG0000"},{countryCode:"BN",postalCodeType:1,pattern:/^[A-Z]{2}[0-9]{4}$/,placeholder:"XX000"},{countryCode:"BG",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"BF",postalCodeType:1,pattern:/^[0-9]{2}$/,placeholder:"00"},{countryCode:"BI",postalCodeType:0,pattern:0},{countryCode:"KH",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"CM",postalCodeType:0,pattern:0},{countryCode:"CA",postalCodeType:1,pattern:/^[A-Z][0-9][A-Z]\s?[0-9][A-Z][0-9]$/,placeholder:"X0X 0X0"},{countryCode:"CV",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"KY",postalCodeType:1,pattern:/^KY[0-9]-?[0-9]{4}$/,placeholder:"KY0-0000"},{countryCode:"CF",postalCodeType:0,pattern:0},{countryCode:"TD",postalCodeType:0,pattern:0},{countryCode:"JE",postalCodeType:1,pattern:/^JE[0-9][0-9]?\s?[0-9][A-Z]{2}$/,placeholder:"JE_ ___"},{countryCode:"CL",postalCodeType:1,pattern:/^[0-9]{7}$/,placeholder:"0000000"},{countryCode:"CN",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"CX",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"CC",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"CO",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"KM",postalCodeType:0,pattern:0},{countryCode:"CG",postalCodeType:0,pattern:0},{countryCode:"CD",postalCodeType:0,pattern:0},{countryCode:"CK",postalCodeType:0,pattern:0},{countryCode:"CR",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"HR",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"CU",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"CW",postalCodeType:0,pattern:0},{countryCode:"CY",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"CZ",postalCodeType:1,pattern:/^[0-9]{3}\s[0-9]{2}$/,placeholder:"000 00"},{countryCode:"DK",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"DJ",postalCodeType:0,pattern:0},{countryCode:"DM",postalCodeType:0,pattern:0},{countryCode:"DO",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"EC",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"EG",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"SV",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"GQ",postalCodeType:0,pattern:0},{countryCode:"ER",postalCodeType:0,pattern:0},{countryCode:"EE",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"SZ",postalCodeType:1,pattern:/^[A-Z]?[0-9]{3}$/,placeholder:"X000"},{countryCode:"ET",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"FK",postalCodeType:3,pattern:"FIQQ 1ZZ"},{countryCode:"FO",postalCodeType:1,pattern:/^FO(-|\s)?[0-9]{3}$/,placeholder:"FO-000"},{countryCode:"FJ",postalCodeType:0,pattern:0},{countryCode:"FI",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"FR",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"PF",postalCodeType:1,pattern:/^987[0-9]{2}$/,placeholder:"987__"},{countryCode:"GA",postalCodeType:0,pattern:0},{countryCode:"GM",postalCodeType:0,pattern:0},{countryCode:"GE",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"DE",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"GH",postalCodeType:1,pattern:/^[A-Z][0-9A-Z]-?[0-9]{3,4}(-?[0-9]{4})?$/,placeholder:"XX0000 or XX-0000-0000"},{countryCode:"GI",postalCodeType:3,pattern:"GX11 1AA"},{countryCode:"GR",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"GL",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"GD",postalCodeType:0,pattern:0},{countryCode:"GP",postalCodeType:1,pattern:/^971[0-9]{2}$/,placeholder:"971__"},{countryCode:"GT",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"GG",postalCodeType:1,pattern:/^GY[0-9][0-9]?\s[0-9][A-Z]{2}$/,placeholder:"GY0 0XX"},{countryCode:"GN",postalCodeType:1,pattern:/^[0-9]{3}$/,placeholder:"000"},{countryCode:"GW",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"GY",postalCodeType:0,pattern:0},{countryCode:"HT",postalCodeType:1,pattern:/^(HT\s?)?[0-9]{4}$/,placeholder:"0000"},{countryCode:"HN",postalCodeType:1,pattern:/^([0-9]{5})|([A-Z]{2}[0-9]{4})$/,placeholder:"XX0000 or 00000"},{countryCode:"HK",postalCodeType:0,pattern:0},{countryCode:"HU",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"IS",postalCodeType:1,pattern:/^[0-9]{3}$/,placeholder:"000"},{countryCode:"IN",postalCodeType:1,pattern:/^[0-9]{3}\s?[0-9]{3}$/,placeholder:"000000"},{countryCode:"ID",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"IR",postalCodeType:1,pattern:/^[0-9]{10}$/,placeholder:"0000000000"},{countryCode:"IQ",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"IE",postalCodeType:1,pattern:/^[A-Z][0-9][0-9A-Z]?\s[0-9A-Z]{4}$/,placeholder:"X00 XXXX"},{countryCode:"IM",postalCodeType:1,pattern:/^IM[0-9][0-9]?\s[0-9][A-Z]{2}$/,placeholder:"IM0 0XX"},{countryCode:"IL",postalCodeType:1,pattern:/^[0-9]{5}([0-9]{2})?$/,placeholder:"0000000"},{countryCode:"IT",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"CI",postalCodeType:1,pattern:/^1?[0-9]{2}$/,placeholder:"00"},{countryCode:"JM",postalCodeType:0,pattern:0},{countryCode:"JP",postalCodeType:1,pattern:/^[0-9]{3}-[0-9]{4}$/,placeholder:"000-0000"},{countryCode:"JO",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"KZ",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"KE",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"KI",postalCodeType:0,pattern:0},{countryCode:"KR",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"KW",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"KG",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"LA",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"LV",postalCodeType:1,pattern:/^LV-?[0-9]{4}$/,placeholder:"LV-0000"},{countryCode:"LB",postalCodeType:1,pattern:/^[0-9]{4}\s?([0-9]{4})?$/,placeholder:"0000 0000"},{countryCode:"LS",postalCodeType:1,pattern:/^[0-9]{3}$/,placeholder:"000"},{countryCode:"LR",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"LY",postalCodeType:0,pattern:0},{countryCode:"LI",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"LT",postalCodeType:1,pattern:/^(LT-?)?[0-9]{5}$/,placeholder:"00000"},{countryCode:"LU",postalCodeType:1,pattern:/^(L-?)?[0-9]{4}$/,placeholder:"0000"},{countryCode:"MO",postalCodeType:0,pattern:0},{countryCode:"MG",postalCodeType:1,pattern:/^[0-9]{3}$/,placeholder:"000"},{countryCode:"MW",postalCodeType:0,pattern:0},{countryCode:"MY",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"MV",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"ML",postalCodeType:0,pattern:0},{countryCode:"MT",postalCodeType:1,pattern:/^[A-Z]{3}\s?[0-9]{4}$/,placeholder:"XXX 0000"},{countryCode:"MR",postalCodeType:0,pattern:0},{countryCode:"MU",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"MX",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"MD",postalCodeType:1,pattern:/^(MD-?)?[0-9]{4}$/,placeholder:"MD-0000"},{countryCode:"MC",postalCodeType:1,pattern:/^980[0-9]{2}$/,placeholder:"980__"},{countryCode:"MN",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"ME",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"MS",postalCodeType:1,pattern:/^MSR[0-9]{4}$/,placeholder:"MSR0000"},{countryCode:"MA",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"MZ",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"MM",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"NA",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"NR",postalCodeType:0,pattern:0},{countryCode:"NP",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"NL",postalCodeType:1,pattern:/^[0-9]{4}\s?[A-Z]{2}$/,placeholder:"0000XX"},{countryCode:"NZ",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"NI",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"NE",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"NG",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"NU",postalCodeType:0,pattern:0},{countryCode:"MK",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"NO",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"OM",postalCodeType:1,pattern:/^[0-9]{3}$/,placeholder:"000"},{countryCode:"PK",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"PS",postalCodeType:1,pattern:/^[0-9]{3}$/,placeholder:"000"},{countryCode:"PA",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"PG",postalCodeType:1,pattern:/^[0-9]{3}$/,placeholder:"000"},{countryCode:"PY",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"PE",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"PH",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"PL",postalCodeType:1,pattern:/^[0-9]{2}-?[0-9]{3}$/,placeholder:"00-000"},{countryCode:"PT",postalCodeType:1,pattern:/^[0-9]{4}-?[0-9]{3}$/,placeholder:"0000-000"},{countryCode:"QA",postalCodeType:0,pattern:0},{countryCode:"RO",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"RU",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"RW",postalCodeType:0,pattern:0},{countryCode:"SH",postalCodeType:1,pattern:/^((STHL)|(ASCN)|(TDCU)) 1ZZ$/,placeholder:"STHL/ASCN/TDCU 1ZZ"},{countryCode:"KN",postalCodeType:1,pattern:/^KN[0-9]{4}$/,placeholder:"KN0000"},{countryCode:"LC",postalCodeType:1,pattern:/^LC[0-9]{2} [0-9]{3}$/,placeholder:"LC00 000"},{countryCode:"VC",postalCodeType:1,pattern:/^VC[0-9]{4}$/,placeholder:"VC0000"},{countryCode:"WS",postalCodeType:1,pattern:/^WS[0-9]{4}$/,placeholder:"WS0000"},{countryCode:"SM",postalCodeType:1,pattern:/^4789[0-9]$/,placeholder:"4789_"},{countryCode:"ST",postalCodeType:0,pattern:0},{countryCode:"SA",postalCodeType:1,pattern:/^[0-9]{5}(-[0-9]{4})?$/,placeholder:"00000 or 00000-0000"},{countryCode:"SN",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"RS",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"SC",postalCodeType:0,pattern:0},{countryCode:"SL",postalCodeType:0,pattern:0},{countryCode:"SG",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"SX",postalCodeType:0,pattern:0},{countryCode:"SK",postalCodeType:1,pattern:/^[0-9]{3}\s[0-9]{2}$/,placeholder:"00000"},{countryCode:"SI",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"SB",postalCodeType:0,pattern:0},{countryCode:"SO",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"ZA",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"GS",postalCodeType:3,pattern:"SIQQ 1ZZ"},{countryCode:"SS",postalCodeType:0,pattern:0},{countryCode:"ES",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"LK",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"SD",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"SR",postalCodeType:0,pattern:0},{countryCode:"SE",postalCodeType:1,pattern:/^[0-9]{3}\s[0-9]{2}$/,placeholder:"000 00"},{countryCode:"CH",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"SY",postalCodeType:0,pattern:0},{countryCode:"TW",postalCodeType:1,pattern:/^[0-9]{3}(-?[0-9]{2})$/,placeholder:"000 or 00000"},{countryCode:"TJ",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"TZ",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"TH",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"TL",postalCodeType:0,pattern:0},{countryCode:"TG",postalCodeType:1,pattern:/^[0-9]{2}$/,placeholder:"00"},{countryCode:"TK",postalCodeType:0,pattern:0},{countryCode:"TO",postalCodeType:0,pattern:0},{countryCode:"TT",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"TN",postalCodeType:1,pattern:/^[0-9]{4}$/,placeholder:"0000"},{countryCode:"TR",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"TM",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"TC",postalCodeType:3,pattern:"TKCA 1ZZ"},{countryCode:"TV",postalCodeType:0,pattern:0},{countryCode:"UG",postalCodeType:0,pattern:0},{countryCode:"UA",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"AE",postalCodeType:0,pattern:0},{countryCode:"GB",postalCodeType:1,pattern:/^[A-Z]{1,2}[0-9][0-9A-Z]?\s[0-9][A-Z]{2}$/,placeholder:"XX00 0XX (space required)"},{countryCode:"US",postalCodeType:1,pattern:/^[0-9]{5}(-[0-9]{4})?$/,placeholder:"00000 or 00000-0000"},{countryCode:"UM",postalCodeType:3,pattern:"96898"},{countryCode:"UY",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"UZ",postalCodeType:1,pattern:/^[0-9]{6}$/,placeholder:"000000"},{countryCode:"VU",postalCodeType:0,pattern:0},{countryCode:"VA",postalCodeType:3,pattern:"00120"},{countryCode:"VE",postalCodeType:1,pattern:/^[0-9]{4}(-?[A-Z])?$/,placeholder:"0000"},{countryCode:"VN",postalCodeType:1,pattern:/^[0-9]{5}$/,placeholder:"00000"},{countryCode:"YE",postalCodeType:0,pattern:0},{countryCode:"ZM",postalCodeType:1,pattern:/^[0
2-9]{5}$/,placeholder:"00000"},{countryCode:"ZW",postalCodeType:0,pattern:0}],et={invalidPhone:"Please enter a valid phone number",invalidPostal:"Please enter a valid postal code",incompleteDob:"Please complete date of birth",invalidDobDay:"Please enter a valid day",invalidDobMonth:"Please enter a valid month",invalidConfig:"Sign up form is missing required settings"},tt={missingRequired:"Please complete the required fields.",apiFailure:"We couldn't submit your details. Please try again.",noSignUpOptionsForCountry:"No sign up options exist for your country."},ot={apiFailure:"Unable to save your additional opt-ins. Please try again."},it={validation:"Please provide the requested information.",apiFailure:"Unable to send your details. Please try again."},at=et.invalidPostal,st=/^[A-Z0-9][A-Z0-9\s-]{1,9}$/i,rt=new Map;function nt(e,t){const o=(t??"").toUpperCase(),i=rt.get(o);if(null===i)return{message:"",required:!1};const a=Ue(e);if(!a)return{message:"",required:!0};const s=i??st,r=a.toUpperCase();if(s.test(a)||s.test(r))return{message:"",required:!0};if("GB"===o){const e=r.replace(/\s+/g,"");if(e.length>3){const t=`${e.slice(0,-3)} ${e.slice(-3)}`;if(s.test(t))return{message:"",required:!0}}}return{message:at,required:!0}}Qe.forEach((e=>{const t=e.countryCode.toUpperCase(),o=function(e){if(0===e)return null;if(e instanceof RegExp)return e;if("string"==typeof e){const t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\s+/g,"\\s?");return new RegExp(`^${t}$`,"i")}return null}(e.pattern);rt.set(t,o)}));var lt={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46
vendor: 25,059 bytes, line 2
2])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|
25[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])
2))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6
vendor: 17,388 bytes, line 2
2]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{
23})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}
2(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4}
2)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[0-79]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4}
2)","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var dt={}.constructor;function ct(e){return null!=e&&e.constructor===dt}function pt(e){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pt(e)}function ut(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function ht(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=pt(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t);if("object"!=pt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i,a,s,r,n=[],l=!0,d=!1;try{if(s=(o=o.call(e)).next,0===t);else for(;!(l=(i=s.call(o)).done)&&(n.push(i.value),n.length!==t);l=!0);}catch(e){d=!0,a=e}finally{try{if(!l&&null!=o.return&&(r=o.return(),Object(r)!==r))return}finally{if(d)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ft(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ft(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=Array(t);o<t;o++)i[o]=e[o];return i}function mt(e){var t,o,i,a=gt(Array.prototype.slice.call(e),4),s=a[0],r=a[1],n=a[2],l=a[3];if("string"!=typeof s)throw new TypeError("A text for parsing must be a string.");if(t=s,r&&"string"!=typeof r){if(!ct(r))throw new Error("Invalid second argument: ".concat(r));n?(o=r,i=n):i=r}else l?(o=n,i=l):(o=void 0,i=n),r&&(o=function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(o),!0).forEach((function(t){ht(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ut(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({defaultCountry:r},o));return{text:t,options:o,metadata:i}}var bt="0-9ï¼-ï¼Ù -Ù©Û°-Û¹",vt="".concat("-â-ââã¼ï¼").concat("ï¼/").concat("ï¼.").concat("  Âââ ã").concat("()ï¼ï¼ï¼»ï¼½\\[\\]").concat("~ââ¼ï½");function yt(e){return yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yt(e)}function $t(e,t,o){return t=St(t),function(e,t){if(t&&("object"==yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ct()?Reflect.construct(t,o||[],St(e).constructor):t.apply(e,o))}function xt(e){var t="function"==typeof Map?new Map:void 0;return xt=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return function(e,t,o){if(Ct())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var a=new(e.bind.apply(e,i));return o&&wt(a,o.prototype),a}(e,arguments,St(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),wt(o,e)},xt(e)}function Ct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ct=function(){return!!e})()}function wt(e,t){return wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wt(e,t)}function St(e){return St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},St(e)}var kt=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=$t(this,t,[e]),Object.setPrototypeOf(o,t.prototype),o.name=o.constructor.name,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wt(e,t)}(t,e),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(xt(Error));function _t(e,t){e=e.split("-"),t=t.split("-");for(var o=e[0].split("."),i=t[0].split("."),a=0;a<3;a++){var s=Number(o[a]),r=Number(i[a]);if(s>r)return 1;if(r>s)return-1;if(!isNaN(s)&&isNaN(r))return 1;if(isNaN(s)&&!isNaN(r))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Pt=/^\d+$/;function At(e){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},At(e)}function Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(e,t,o){return t&&function(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,It(i.key),i)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function It(e){var t=function(e,t){if("object"!=At(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t);if("object"!=At(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==At(t)?t:t+""}var zt=" ext. ",Mt=function(){return Et((function e(t){Tt(this,e),Bt(t),this.metadata=t,Ht.call(this,t)}),[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;
vendor: 5,117 bytes, line 2
2if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){var o,i,a;if(e&&(a=e,Pt.test(a)?i=e:o=e),t&&(i=t),o&&"001"!==o){var s=this.getCountryMetadata(o);if(!s)throw new Error("Unknown country: ".concat(o));this.numberingPlan=new Ft(s,this)}else if(i){if(!this.hasCallingCode(i))throw new Error("Unknown calling code: ".concat(i));this.numberingPlan=new Ft(this.getNumberingPlanMetadata(i),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var o=this.nonGeographic()[e];if(o)return o}else{var i=this.countryCallingCodes()[e];if(i&&1===i.length&&"001"===i[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}])}(),Ft=function(){return Et((function e(t,o){Tt(this,e),this.globalMetadataObject=o,this.metadata=t,Ht.call(this,o.metadata)}),[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return t.map((function(t){return new Ot(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}}
vendor: 1,347 bytes, line 2
2,{key:"type",value:function(e){if(this.hasTypes()&&Nt(this.types(),e))return new Lt(Nt(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?zt:this.metadata[13]||zt}}])}(),Ot=function(){return Et((function e(t,o){Tt(this,e),this._format=t,this.metadata=o}),[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||Dt.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),Dt=/^\(?\$1\)?$/,Lt=function(){return Et((function e(t,o){Tt(this,e),this.type=t,this.metadata=o}),[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
vendor: 9,084 bytes, line 2
2ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function Nt(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function Bt(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!ct(e)||!ct(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(ct(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Rt(e)+": "+e,"."))}var Rt=function(e){return At(e)};function Vt(e,t){var o=new Mt(t);if(o.hasCountry(e))return o.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function Ht(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===_t(t,"1.2.0")?this.v2=!0:-1===_t(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}var jt=function(e){return"([".concat(bt,"]{1,").concat(e,"})")};function Ut(e){var t="[  \\t,]*",o="[:\\.ï¼]?[  \\t,-]*",i="#?",a="[  \\t]*";return";ext="+jt("20")+"|"+(t+"(?:e?xt(?:ensi(?:oÌ?|ó))?n?|ï½
?ï½ï½ï½?|доб|anexo)"+o+jt("20")+i)+"|"+(t+"(?:[xï½#ï¼~ï½]|int|ï½ï½ï½)"+o+jt("9")+i)+"|"+("[- ]+"+jt("6")+"#")+"|"+(a+"(?:,{2}|;)"+o+jt("15")+i)+"|"+(a+"(?:,)+"+o+jt("9")+i)}var Gt="["+bt+"]{2}",qt="[+ï¼]{0,1}(?:["+vt+"]*["+bt+"]){3,}["+vt+bt+"]*",Kt=new RegExp("^[+ï¼]{0,1}(?:["+vt+"]*["+bt+"]){1,2}$","i"),Wt=qt+"(?:"+Ut()+")?",Zt=new RegExp("^"+Gt+"$|^"+Wt+"$","i");var Xt=new RegExp("(?:"+Ut()+")$","i");var Yt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","ï¼":"0","ï¼":"1","ï¼":"2","ï¼":"3","ï¼":"4","ï¼":"5","ï¼":"6","ï¼":"7","ï¼":"8","ï¼":"9","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9"};function Jt(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return Qt(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Qt(e,t):void 0}}(e))||t){o&&(e=o);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=Array(t);o<t;o++)i[o]=e[o];return i}function eo(e){for(var t,o="",i=Jt(e.split(""));!(t=i()).done;){o+=to(t.value,o)||""}return o}function to(e,t,o){if("+"===e){if(t)return;return"+"}return function(e){return Yt[e]}(e)}function oo(e,t,o){return function(e,t,o,i){o&&(i=new Mt(i.metadata)).selectNumberingPlan(o);var a=i.type(t),s=a&&a.possibleLengths()||i.possibleLengths();if(!s)return"IS_POSSIBLE";var r=e.length,n=s[0];if(n===r)return"IS_POSSIBLE";if(n>r)return"TOO_SHORT";if(s[s.length-1]<r)return"TOO_LONG";return s.indexOf(r,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,void 0,t,o)}function io(e,t){return"IS_POSSIBLE"===oo(e,void 0,t)}function ao(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function so(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return ro(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ro(e,t):void 0}}(e))||t){o&&(e=o);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=Array(t);o<t;o++)i[o]=e[o];return i}var no=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function lo(e,t,o){if(t=t||{},e.country||e.countryCallingCode){var i=new Mt(o);i.selectNumberingPlan(e.country||e.countryCallingCode);var a=t.v2?e.nationalNumber:e.phone;if(ao(a,i.nationalNumberPattern())){if(co(a,"FIXED_LINE",i))return i.type("MOBILE")&&""===i.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":i.type("MOBILE")?co(a,"MOBILE",i)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var s,r=so(no);!(s=r()).done;){var n=s.value;if(co(a,n,i))return n}}}}function co(e,t,o){var i=o.type(t);return!(!i||!i.pattern())&&(!(i.possibleLengths()&&i.possibleLengths().indexOf(e.length)<0)&&ao(e,i.pattern()))}var po=/^[A-Z]{2}$/;function uo(e,t){var o,i,a,s=new Mt(t);return a=e,po.test(a)?(o=e,s.selectNumberingPlan(o),i=s.countryCallingCode()):i=e,{country:o,callingCode:i}}function ho(e,t,o){var i=new Mt(o).getCountryCodesForCallingCode(e);return i?i.filter((function(e){return function(e,t,o){var i=new Mt(o);return i.selectNumberingPlan(t),i.numberingPlan.possibleLengths().indexOf(e.length)>=0}(t,e,o)})):[]}var go=new RegExp("(["+bt+"])");function fo(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return mo(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?mo(e,t):void 0}}(e))||t){o&&(e=o);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=Array(t);o<t;o++)i[o]=e[o];return i}function bo(e,t){var o=t.nationalNumber,i=t.metadata,a=i.getCountryCodesForCallingCode(e);if(a)return 1===a.length?a[0]:function(e,t,o){for(var i,a=new Mt(o),s=fo(t);!(i=s()).done;){var r=i.value;if(a.selectNumberingPlan(r),a.leadingDigits()){if(e&&0===e.search(a.leadingDigits()))return r}else if(lo({phone:e,country:r},void 0,a.metadata))return r}}(o,a,i.metadata)}function vo(e,t,o){var i=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var o=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),i=o.exec(e);if(i){var a,s,r,n=i.length-1,l=n>0&&i[n];if(t.nationalPrefixTransformRule()&&l)a=e.replace(o,t.nationalPrefixTransformRule()),n>1&&(s=i[1]);else{var d=i[0];a=e.slice(d.length),l&&(s=i[1])}if(l){var c=e.indexOf(i[1]);e.slice(0,c)===t.numberingPlan.nationalPrefix()&&(r=t.numberingPlan.nationalPrefix())}else r=i[0];return{nationalNumber:a,nationalPrefix:r,carrierCode:s}}}return{nationalNumber:e}}(e,o),a=i.carrierCode,s=i.nationalNumber;if(s!==e){if(!function(e,t,o){if(ao(e,o.nationalNumberPattern())&&!ao(t,o.nationalNumberPattern()))return!1;return!0}(e,s,o))return{nationalNumber:e};if(o.numberingPlan.possibleLengths()&&(t||(t=bo(o.numberingPlan.callingCode(),{nationalNumber:s,metadata:o})),!function(e,t,o){switch(oo(e,t,o)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(s,t,o)))return{nationalNumber:e}}return{nationalNumber:s,carrierCode:a}}function yo(e,t,o,i,a){if(!e)return{};var s;if("+"!==e[0]){var r=function(e,t,o,i){if(t){var a=new Mt(i);a.selectNumberingPlan(t||o);var s=new RegExp(a.IDDPrefix());if(0===e.search(s)){var r=(e=e.slice(e.match(s)[0].length)).match(go);if(!(r&&null!=r[1]&&r[1].length>0&&"0"===r[1]))return e}}}(e,o,i,a);if(!r||r===e){if(o||i){var n=function(e,t,o,i,a){if(!o&&!i)return{number:e};var s=o?Vt(o,a):i;if(0===e.indexOf(s)){var r=new Mt(a);r.selectNumberingPlan(o||i);var n=e.slice(s.length),l=vo(n,void 0,r).nationalNumber,d=vo(e,void 0,r).nationalNumber;if(!ao(d,r.nationalNumberPattern())&&ao(l,r.nationalNumberPattern())||"TOO_LONG"===oo(d,void 0,r))return{countryCallingCode:s,number:n}}return{number:e}}(e,0,o,i,a),l=n.countryCallingCode,d=n.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:d}}return{number:e}}s=!0,e="+"+r}if("0"===e[1])return{};for(var c=new Mt(a),p=2;p-1<=3&&p<=e.length;){var u=e.slice(1,p);if(c.hasCallingCode(u))return c.selectNumberingPlan(u),{countryCallingCodeSource:s?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(p)};p++}return{}}var $o=/(\$\d)/;function xo(e,t,o){var i=o.useInternationalFormat,a=o.withNationalPrefix,s=e.replace(new RegExp(t.pattern()),i?t.internationalFormat():a&&t.n
vendor: 4,366 bytes, line 2
2ationalPrefixFormattingRule()?t.format().replace($o,t.nationalPrefixFormattingRule()):t.format());return i?function(e){return e.replace(new RegExp("[".concat(vt,"]+"),"g")," ").trim()}(s):s}var Co=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var wo={formatExtension:function(e,t,o){return"".concat(e).concat(o.ext()).concat(t)}};function So(e,t,o,i){o=o?function(){for(var e=1,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];for(;e<o.length;){if(o[e])for(var a in o[e])o[0][a]=o[e][a];e++}return o[0]}({},wo,o):wo;var a=new Mt(i);if(e.country&&"001"!==e.country){if(!a.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));a.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";a.selectNumberingPlan(e.countryCallingCode)}var s,r=a.countryCallingCode(),n=o.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return n?_o(s=ko(n,e.carrierCode,"NATIONAL",a,o),e.ext,a,o.formatExtension):"";case"INTERNATIONAL":return n?(s=ko(n,null,"INTERNATIONAL",a,o),_o(s="+".concat(r," ").concat(s),e.ext,a,o.formatExtension)):"+".concat(r);case"E.164":return"+".concat(r).concat(n);case"RFC3966":return function(e){var t=e.number,o=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(o?";ext="+o:"")}({number:"+".concat(r).concat(n),ext:e.ext});case"IDD":if(!o.fromCountry)return;var l=function(e,t,o,i,a){var s=Vt(i,a.metadata);if(s===o){var r=ko(e,t,"NATIONAL",a);return"1"===o?o+" "+r:r}var n=function(e,t,o){var i=new Mt(o);return i.selectNumberingPlan(e||t),i.defaultIDDPrefix()?i.defaultIDDPrefix():Co.test(i.IDDPrefix())?i.IDDPrefix():void 0}(i,void 0,a.metadata);if(n)return"".concat(n," ").concat(o," ").concat(ko(e,null,"INTERNATIONAL",a))}(n,e.carrierCode,r,o.fromCountry,a);if(!l)return;return _o(l,e.ext,a,o.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function ko(e,t,o,i,a){var s,r,n=(s=i.formats(),r=e,function(e,t){for(var o=0;o<e.length;){if(t(e[o]))return e[o];o++}}(s,(function(e){if(e.leadingDigitsPatterns().length>0){var t=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==r.search(t))return!1}return ao(r,e.pattern())})));return n?xo(e,n,{useInternationalFormat:"INTERNATIONAL"===o,withNationalPrefix:!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!a||!1!==a.nationalPrefix}):e}function _o(e,t,o,i){return t?i(e,t,o):e}function Po(e){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(e)}function Ao(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function To(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(o),!0).forEach((function(t){Eo(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ao(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Eo(e,t,o){return(t=zo(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Io(e,t,o){return t&&function(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,zo(i.key),i)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zo(e){var t=function(e,t){if("object"!=Po(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t);if("object"!=Po(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Po(t)?t:t+""}var Mo=function(){return Io((function e(t,o,i){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("First argument is required");if("string"!=typeof t)throw new TypeError("First argument must be a string");if("+"===t[0]&&!o)throw new TypeError("`metadata` argument not passed");if(ct(o)&&ct(o.countries)){i=o;var a=t;
vendor: 4,162 bytes, line 2
2if(!Fo.test(a))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var s=yo(a,0,void 0,void 0,i);if(t=s.countryCallingCode,!(o=s.number))throw new Error("Invalid `number` argument passed: too short")}if(!o)throw new TypeError("`nationalNumber` argument is required");if("string"!=typeof o)throw new TypeError("`nationalNumber` argument must be a string");Bt(i);var r=uo(t,i),n=r.country,l=r.callingCode;this.country=n,this.countryCallingCode=l,this.nationalNumber=o,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return i}}),[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:ho(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,o){void 0===t&&(t={});var i=new Mt(o);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");i.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");i.selectNumberingPlan(e.countryCallingCode)}}if(i.possibleLengths())return io(e.phone||e.nationalNumber,i);if(e.countryCallingCode&&i.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return function(e,t,o){t=t||{};var i=new Mt(o);return i.selectNumberingPlan(e.country||e.countryCallingCode),i.hasTypes()?void 0!==lo(e,t,i.metadata):ao(t.v2?e.nationalNumber:e.phone,i.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new Mt(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return lo(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return So(this,e,t?To(To({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])}(),Fo=/^\+\d+$/,Oo="(["+bt+"]|[\\-\\.\\(\\)]?)",Do=new RegExp("^\\+"+Oo+"*["+bt+"]"+Oo+"*$","g"),Lo=new RegExp("^("+("["+bt+"]+((\\-)*["+bt+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+bt+"])*")+"\\.?$","g"),No="tel:",Bo=";phone-context=";function Ro(e,t){var o,i=t.extractFormattedPhoneNumber,a=function(e){var t=e.indexOf(Bo);if(t<0)return null;var o=t+15;if(o>=e.length)return"";var i=e.indexOf(";",o);return i>=0?e.substring(o,i):e.substring(o)}(e);if(!function(e){return null===e||0!==e.length&&(Do.test(e)||Lo.test(e))}(a))throw new kt("NOT_A_NUMBER");if(null===a)o=i(e)||"";else{o="","+"===a.charAt(0)&&(o+=a);var s,r=e.indexOf(No);s=r>=0?r+4:0;var n=e.indexOf(Bo);o+=e.substring(s,n)}var l=o.indexOf(";isub=");if(l>0&&(o=o.substring(0,l)),""!==o)return o}var Vo=new RegExp("[+ï¼"+bt+"]"),Ho=new RegExp("[^"+bt+"#]+$");function jo(e,t,o){t=t||{};var i=new Mt(o);if(t.defaultCountry&&!i.hasCountry(t.defaultCountry)){if(t.v2)throw new kt("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var a=function(e,t,o){var i=Ro(e,{extractFormattedPhoneNumber:function(e){return function(e,t,o){if(!e)return;if(e.length>250){if(o)throw new kt("TOO_LONG");return}if(!1===t)return e;var i=e.search(Vo);if(i<0)return;return e.slice(i).replace(Ho,"")}(e,o,t)}});if(!i)return{};if(!function(e){return e.length>=2&&Zt.test(e)}(i))return function(e){return Kt.test(e)}(i)?{error:"TOO_SHORT"}:{};var a=function(e){var t=e.search(Xt);if(t<0)return{};for(var o=e.slice(0,t),i=e.match(Xt),a=1;a<i.length;){if(i[a])return{number:o,ext:i[a]};a++}}(i);if(a.ext)return a;return{number:i}}(e,t.v2,t.extract),s=a.number,r=a.ext,n=a.error;
2if(!s){if(t.v2){if("TOO_SHORT"===n)throw new kt("TOO_SHORT");throw new kt("NOT_A_NUMBER")}return{}}var l=function(e,t,o,i){var a,s=yo(eo(e),0,t,o,i.metadata),r=s.countryCallingCodeSource,n=s.countryCallingCode,l=s.number;if(n)i.selectNumberingPlan(n);else{if(!l||!t&&!o)return{};t?(a=t,i.selectNumberingPlan(t),n=i.numberingPlan.callingCode()):(i.selectNumberingPlan(o),n=o)}if(!l)return{countryCallingCodeSource:r,countryCallingCode:n};var d=vo(eo(l),void 0,i),c=d.nationalNumber,p=d.carrierCode,u=bo(n,{nationalNumber:c,metadata:i});u&&(a=u,"001"===u||i.selectNumberingPlan(a));return{country:a,countryCallingCode:n,countryCallingCodeSource:r,nationalNumber:c,carrierCode:p}}(s,t.defaultCountry,t.defaultCallingCode,i),d=l.country,c=l.nationalNumber,p=l.countryCallingCode,u=l.countryCallingCodeSource,h=l.carrierCode;if(!i.hasSelectedNumberingPlan()){if(t.v2)throw new kt("INVALID_COUNTRY");return{}}if(!c||c.length<2){if(t.v2)throw new kt("TOO_SHORT");return{}}if(c.length>17){if(t.v2)throw new kt("TOO_LONG");return{}}if(t.v2){var g=new Mo(p,c,i.metadata);return d&&(g.country=d),h&&(g.carrierCode=h),r&&(g.ext=r),g.__countryCallingCodeSource=u,g}var f=!!(t.extended?i.hasSelectedNumberingPlan():d)&&ao(c,i.nationalNumberPattern());return t.extended?{country:d,countryCallingCode:p,carrierCode:h,valid:f,possible:!!f||!(!0!==t.extended||!i.possibleLengths()||!io(c,i)),phone:c,ext:r}:f?function(e,t,o){var i={country:e,phone:t};o&&(i.ext=o);return i}(d,c,r):{}}function Uo(e){return Uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uo(e)}function Go(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function qo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Go(Object(o),!0).forEach((function(t){Ko(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Go(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Ko(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=Uo(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t);if("object"!=Uo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Wo(e){return Wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wo(e)}function Zo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Xo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(o),!0).forEach((function(t){Yo(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Zo(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Yo(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=Wo(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t);if("object"!=Wo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Jo(e,t,o){var i;t&&t.defaultCountry&&(i=t.defaultCountry,!o.countries.hasOwnProperty(i))&&(t=Xo(Xo({},t),{},{defaultCountry:void 0}));try{return function(e,t,o){return jo(e,qo(qo({},t),{},{v2:!0}),o)}(e,t,o)}catch(e){if(!(e instanceof kt))throw e}}function Qo(){var e=mt(arguments);return Jo(e.text,e.options,e.metadata)}function ei(){return function(e,t){var o=Array.prototype.slice.call(t);return o.push(lt),e.apply(this,o)}(Qo,arguments)}const ti=et.invalidPhone,oi="^[0-9\\+\\(\\)\\s\\-]+$";function ii(e,t){const o=Ge(e);if(!o)return"";const i=(t??"").toUpperCase(),a=i&&"ZZ"!==i&&/^[A-Z]{2}$/.test(i)?i:void 0,s=ei(o,a?{defaultCountry:a}:void 0);return s&&s.isValid()?"":ti}class ai{constructor(e){this.deps=e,this.options={},this.readiness=new Map,this.readinessListeners=new Set,this.processingState={status:"idle",error:null},this.processingListeners=new Set}initialise(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.config=e,this.options=t,this.recaptchaManager=t.recaptchaManager,this.configureRecaptcha(e),this.deps.apiController.setConfig(e),this.clearProcessingState(),this.readiness.clear(),this.setStepReady("primary",!0),e.optinsForm?.enabled?this.setStepReady("optins",!1):this.setStepReady("optins",!0),e.supplementaryForm?.enabled?this.setStepReady("supplementary",!1):this.setStepReady("supplementary",!0)}destroy(){this.processingListeners.clear(),this.readinessListeners.clear(),this.readiness.clear(),this.processingState={status:"idle",error:null},this.deps.apiController.reset(),this.recaptchaManager?.destroy()}onStepReadyChange(e){return this.readinessListeners.add(e),()=>{this.readinessListeners.delete(e)}}isStepReady(e){return!this.readiness.has(e)||!0===this.readiness.get(e)}onProcessingStateChange(e){return this.processingListeners.add(e),e(this.processingState),()=>{this.processingListeners.delete(e)}}onStepProcessingChange(e,t){return this.onProcessingStateChange((o=>{o.stepId!==e&&"idle"!==o.status||t(o)}))}async submitPrimary(e){return this.submitStep(e,{stepId:"primary",payloadBuilder:e=>{let{formData:t,sessionId:o,config:i,recaptchaToken:a}=e;return Ke.buildPrimaryFormPayload(t,o,i,a?.token)},apiRequest:e=>this.deps.apiController.submitPrimaryForm(e),onSuccess:e=>{let{formData:t}=e;this.prepareOptinsFlow(t),this.isSupplementaryEnabled()&&!this.config?.optinsForm?.enabled&&this.setStepReady("supplementary",!0)}})}async submitOptins(e){const t=this.ensureOptinsController();if(t)return this.submitStep(e,{stepId:"optins",payloadBuilder:e=>{let{formData:t,sessionId:o,config:i,recaptchaToken:a}=e;return Ke.buildOptinsFormPayload(t,o,i,this.buildExistingOptinsPayload(),{email:this.getPrimaryEmail(),mobilephone:this.getPrimarySms(),country:this.getPrimaryCountry()},a?.token)},apiRequest:e=>this.deps.apiController.submitOptinsForm(e),onSuccess:()=>
2{t.clearModalRequest(),this.isSupplementaryEnabled()&&this.setStepReady("supplementary",!0)},onError:e=>{let{response:t}=e;console.error("Opt-ins submission failed:",t.error)}})}updateOptinSelection(e,t,o){const i=this.ensureOptinsController();i&&i.toggleOptinChannel(e,t,o)}updateSimilarArtistsSelection(e){const t=this.ensureOptinsController();t&&t.toggleSimilarArtists(e)}saveChannelAddress(e,t,o,i){const a=this.ensureOptinsController();a&&a.saveChannelAddress({channel:e,value:t,countryCode:o,countryIso:i})}async submitSupplementary(e){return this.submitStep(e,{stepId:"supplementary",payloadBuilder:e=>{let{formData:t,sessionId:o,config:i,recaptchaToken:a}=e;return Ke.buildSupplementaryFormPayload(t,o,i,this.buildSupplementarySubmissionContext(),a?.token)},apiRequest:e=>this.deps.apiController.submitSupplementaryForm(e)})}async submitStep(e,t){if(!this.config)return void console.warn("[FormService] initialise() must be called before submit.");if(!this.validateForm(e))return void e.reportValidity?.();const o=new FormData(e);let i;this.deps.sessionController.saveFormData(t.stepId,o),this.setProcessingState({status:"processing",stepId:t.stepId,error:null,errorCode:void 0});try{i=await this.executeRecaptchaIfNeeded(t.stepId)}catch(e){const o=this.mapRecaptchaErrorToValidationKey(e);return this.deps.validationController.setError(o),this.setProcessingState({status:"error",stepId:t.stepId,error:null,errorCode:o}),void this.recaptchaManager?.clearWidget()}const a={formData:o,sessionId:this.deps.sessionController.getState().sessionId,config:this.config,recaptchaToken:i},s=t.payloadBuilder(a),r=await t.apiRequest(s);return r.success?(this.deps.validationController.clearError(),t.onSuccess?.({...a,response:r}),this.setProcessingState({status:"success",stepId:t.stepId,error:null})):"insecure_endpoint"===r.error?this.setProcessingState({status:"idle",stepId:t.stepId,error:null,errorCode:void 0}):(this.deps.validationController.setError("api_server"),this.setProcessingState({status:"error",stepId:t.stepId,error:r.error??"Submission failed",errorCode:"api_server"}),t.onError?.({...a,response:r})),r}normalizeFormInputs(e){e.querySelectorAll("input, textarea, pu-input, pu-phone-input").forEach((e=>{if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){const{type:t}=e;if("password"===t)return;return void("string"==typeof e.value&&(e.value=this.normalizeInputValue(e.value,t)))}const t=e;"string"!=typeof t.phoneValue?"string"==typeof t.value&&(t.value=this.normalizeInputValue(t.value,"text")):t.phoneValue=this.normalizeInputValue(t.phoneValue,"tel")}))}normalizeInputValue(e,t){return e?"tel"===t?Ge(e):Ue(e):e}getNamedFormControl(e,t){return e.querySelector(`input[name="${t}"], textarea[name="${t}"], pu-input[name="${t}"], pu-select[name="${t}"]`)}getNamedFormControlValue(e,t){const o=this.getNamedFormControl(e,t);return Ue(o?.value??"")}applyEmailFormatValidation(e){e.querySelectorAll('input[type="email"], pu-input[type="email"]').forEach((e=>{const t=Ue(e instanceof HTMLInputElement?e.value:e.value??""),o=t.length>0&&!Je(t)?"Please enter a valid email address":"";"setCustomValidity"in e&&"function"==typeof e.setCustomValidity&&e.setCustomValidity(o)}))}applyPhoneValidation(e){const t=e.querySelector('pu-phone-input[name="mobilephone"]')??e.querySelector('input[name="mobilephone"]');if(!t)return;const o=ii(t instanceof HTMLInputElement?t.value:t.phoneValue??t.value??"",this.getNamedFormControlValue(e,"country")||(t instanceof HTMLInputElement?"":t.iso??"")||this.getFormFieldValue("primary","country")||"");"setCustomValidity"in t&&"function"==typeof t.setCustomValidity&&t.setCustomValidity(o),o&&this.deps.validationController.setError("phone_invalid")}validateForm(e){return this.normalizeFormInputs(e),this.applyEmailFormatValidation(e),this.applyPhoneValidation(e),this.applyPostalCodeValidation(e),this.applyAddressGroupValidation(e),this.applyDobValidation(e),this.deps.validationController.isFormValid(e)}applyDobValidation(e){const t=e.querySelector('input[name="birthdateDay"]'),o=e.querySelector('input[name="birthdateMonth"]');if(!t&&!o)return;const i=Ue(t?.value??""),a=Ue(o?.value??"");if(!i&&!a)return t?.setCustomValidity(""),void o?.setCustomValidity("");if(!i||!a){const e=et.incompleteDob;return t&&t.setCustomValidity(i?"":e),void(o&&o.setCustomValidity(a?"":e))}const s=Number.parseInt(i,10),r=Number.parseInt(a,10),n=Number.isInteger(s)&&s>=1&&s<=31,l=Number.isInteger(r)&&r>=1&&r<=12;t&&t.setCustomValidity(n?"":et.invalidDobDay),o&&o.setCustomValidity(l?"":et.invalidDobMonth)}applyPostalCodeValidation(e){const t=this.getNamedFormControl(e,"postalCode");if(!t)return;const o=this.getNamedFormControlValue(e,"country")||this.getFormFieldValue("primary","country")||"",i=nt(t.value??"",o);t.setCustomValidity?.(i.message)}applyAddressGroupValidation(e){const t=this.getNamedFormControl(e,"address"),o=this.getNamedFormControl(e,"address2"),i=this.getNamedFormControl(e,"city"),a=this.getNamedFormControl(e,"state"),s=this.getNamedFormControl(e,"postalCode");(t||o||i||a||s)&&(t?.setCustomValidity?.(""),o?.setCustomValidity?.(""),i?.setCustomValidity?.(""),a?.setCustomValidity?.(""))}requestChannelCapture(e){const t=this.ensureOptinsController();t&&t.requestChannelCapture(e)}dismissChannelCapture(){const e=this.ensureOptinsController();
2e&&e.clearModalRequest()}getStepState(){return this.deps.stepStateController.getState()}getProcessingState(){return this.processingState}getProcessingStateFor(e){return this.processingState.stepId===e?this.processingState:{status:"idle",stepId:e,error:null,errorCode:void 0}}getValidationErrorMessage(){return this.deps.validationController.getCurrentErrorMessage()}clearValidationError(){this.deps.validationController.clearError()}getFormReadiness(e,t){return this.deps.validationController.getFormReadiness(e,t)}clearProcessingState(){this.setProcessingState({status:"idle",stepId:void 0,error:null,errorCode:void 0})}advanceStep(){!1!==this.options.multiStep&&this.deps.stepStateController.next()}markStepReady(e){this.setStepReady(e,!0)}prepareOptinsFlow(e){if(!this.config?.optinsForm?.enabled)return;const t=this.deps.optinsController;if(!t)return;const o=e.get("country")??"",i=e.get("email"),a=e.get("mobilephone")??e.get("phone")??null,s="string"==typeof i&&i.length>0?i:void 0,r="string"==typeof a&&a.length>0?a:void 0;t.initialise({config:this.config.optinsForm,crm:this.config.crm,country:o,hasEmailAddress:Boolean(s),hasSmsAddress:Boolean(r),showSimilarArtistsOptin:this.hasAnySimilarArtistOptin(),smsValidCountries:this.config.smsValidCountries}),this.setStepReady("optins",!0)}hasAnySimilarArtistOptin(){if(!this.config)return!1;const e=this.config.primaryForm?.primaryOptins,t=Boolean(e?.email?.similarArtist||e?.sms?.similarArtist),o=(this.config.optinsForm?.optins??[]).some((e=>!0===e.similarArtist));return t||o}ensureOptinsController(){if(this.deps.optinsController){if(this.config?.optinsForm?.enabled)return this.deps.optinsController}else console.warn("[FormService] OptinsController not provided.")}getFormDataSlice(e){return this.deps.sessionController.getFormData(e)}getFormFieldValue(e,t){const o=this.getFormDataSlice(e)?.get(t);return"string"==typeof o&&o.length>0?o:void 0}getPrimaryCountry(){return this.getFormFieldValue("primary","country")}getPrimaryEmail(){return this.getFormFieldValue("primary","email")}getOptinsEmail(){return this.getFormFieldValue("optins","email")}getPrimarySms(){return this.getFormFieldValue("primary","mobilephone")??this.getFormFieldValue("primary","phone")}getPrimaryContactDetails(){const e=this.getOptinsInlineSms(),t=this.deps.optinsController?.getState()?.formState?.inlineAddresses?.email;return{email:this.getPrimaryEmail()??this.getOptinsEmail()??t,mobilephone:this.getPrimarySms()??e?.number,mobilephone_country_code:e?.countryCode,country:this.getPrimaryCountry(),postalCode:this.getFormFieldValue("primary","postalCode")}}getOptinsInlineSms(){const e=this.deps.optinsController?.getState();return e?.formState?.inlineAddresses?.sms}getPrimaryDeliveryMethod(){return this.getFormFieldValue("primary","deliveryMethod")}buildExistingOptinsPayload(){if(!this.config)return[];const e=this.getPrimaryDeliveryMethod(),t=this.getPrimaryCountry();return He(this.config.primaryForm,e??void 0,t??void 0,this.config.smsValidCountries)}buildCompleteOptinsPayload(){const e=this.buildExistingOptinsPayload();if(!this.config?.optinsForm?.enabled)return e;const t=this.getFormDataSlice("optins");if(!t)return e;try{const o=this.getPrimaryContactDetails();return Ke.buildOptinsFormPayload(t,this.deps.sessionController.getState().sessionId,this.config,e,o).optIn}catch(t){return console.warn("[FormService] Failed to rebuild opt-ins payload:",t),e}}buildSupplementarySubmissionContext(){return{contact:this.getPrimaryContactDetails(),optIns:this.buildCompleteOptinsPayload()}}setStepReady(e,t){this.readiness.get(e)!==t&&(this.readiness.set(e,t),this.readinessListeners.forEach((o=>o({stepId:e,ready:t}))))}isSupplementaryEnabled(){return Boolean(this.config?.supplementaryForm?.enabled)}setProcessingState(e){this.processingState={...this.processingState,...e},this.notifyProcessingListeners()}configureRecaptcha(e){e.security?.recaptchaEnabled?this.recaptchaManager?.setSiteKey(e.security.recaptchaKey):this.recaptchaManager?.setSiteKey(void 0)}mapRecaptchaErrorToValidationKey(e){if(!(e instanceof Error))return"recaptcha_network";const t=e.message.toLowerCase();return t.includes("site key not configured")||t.includes("host element missing")||t.includes("script failed to initialise")||t.includes("execution already in progress")?"recaptcha_config":(t.includes("captcha expired")||t.includes("captcha error"),"recaptcha_failed")}async executeRecaptchaIfNeeded(e){if(this.config?.security?.recaptchaEnabled&&this.recaptchaManager)try{return await this.recaptchaManager.execute(e)}catch(e){throw this.notifyRecaptchaError(e),e}}notifyRecaptchaError(e){console.error("[Recaptcha] execution failed",e)}
2notifyProcessingListeners(){this.processingListeners.forEach((e=>e(this.processingState)))}}const si="form-service-request",ri={formCallToAction:"Join for exclusive updates, new music, tour announcements & more",emailPlaceholder:"Your email address",smsPlaceholder:"Your number",countryPlaceholder:"Your country",postalCodePlaceholder:"ZIP/Postcode",submitButton:"Join",processing:"Subscribing you...",successHeadline:"Thanks!",successConfirmation:"You're subscribed, check your inbox"},ni={primaryCallToAction:"Interested in more updates & offers?",secondaryCallToAction:"You might also like...",universalRecommends:"Sign up for Universal Recommends to get news about artists, tours, merch drops and music similar to this artist",submitButton:"Join",processing:"Subscribing you ...",successHeadline:"Thanks!",successConfirmation:"You're subscribed, check your inbox",skipLabel:"No thanks"},li={primaryCallToAction:"One last thing...",secondaryCallToAction:"Would you like more relevant updates and offers?",formCallToAction:"Tell us about you",submitButton:"Send",fieldGroups:{name:{groupTitle:"Your Name",firstNamePlaceholder:"First Name",lastNamePlaceholder:"Last Name"},dateOfBirth:{groupTitle:"Your Birthday",dayPlaceholder:"DD",monthPlaceholder:"MM"},address:{groupTitle:"Your Address",address1Placeholder:"Line 1",address2Placeholder:"Line 2",cityPlaceholder:"City",statePlaceholder:"State",postalCodePlaceholder:"Postal / ZIP"}},processing:"Sending ...",successHeadline:"Thanks, {firstName}!",successConfirmation:"Your information has been received",skipLabel:"No thanks"};function di(e){return e.formCopy?.primaryForm??ri}function ci(e){return e.formCopy?.optinsForm??ni}function pi(e){return e.formCopy?.supplementaryForm??li}function ui(e,t){const{country:o,smsValidCountries:i}=t;return function(e,t){if(!e||!t.trim())return!0;const o=t.trim().toUpperCase();return Object.keys(e).some((e=>e.toUpperCase()===o))}(i,o)?e:e.map((e=>{if(!e.channels.includes("sms"))return e;const t=e.channels.filter((e=>"sms"!==e));return 0===t.length?null:{...e,channels:t}})).filter((e=>Boolean(e)))}function hi(e,t){const{country:o,crm:i,hasEmailAddress:a,hasSmsAddress:s}=t,r=function(e,t,o){if("us"!==e.toLowerCase())return!1;if(o.similarArtist&&"viceversa"===t)return!1;return!0}(o,i,e),n=!0===e.preChecked,l={};return e.channels.includes("email")&&(l.email=!!(r&&n&&a)),e.channels.includes("sms")&&(l.sms=!!(r&&n&&s)),l}function gi(e,t){const o=e.some((e=>e.channels.includes("email"))),i=e.some((e=>e.channels.includes("sms")));return{email:fi(o,t.hasEmailAddress),sms:fi(i,t.hasSmsAddress)}}function fi(e,t){return e&&t?"active":"inactive"}function mi(e,t){return!(t||Object.values(e).some((e=>Object.values(e).some((e=>!0===e)))))}class bi extends ze{constructor(e,t){super(e,{filteredOptins:[],showSimilarArtistsOptin:!1,formState:{selections:{},inlineAddresses:{},indicators:{email:"inactive",sms:"inactive"},similarArtists:!1},submitDisabled:!0,modalRequest:null}),this.sessionController=t,this.crm="ifb",this.country="",this.hasEmailAddress=!1,this.hasSmsAddress=!1}initialise(e){this.config=e.config,this.crm=e.crm,this.country=e.country,this.hasEmailAddress=e.hasEmailAddress,this.hasSmsAddress=e.hasSmsAddress;const t=ui(e.config.optins,{country:e.country,smsValidCountries:e.smsValidCountries}),o=this.buildPrecheckContext(),i=this.sessionController.getOptinsState(),a=this.hydrateFormState(i,t,o);this.setState({filteredOptins:t,showSimilarArtistsOptin:e.showSimilarArtistsOptin,formState:a,submitDisabled:mi(a.selections,a.similarArtists),modalRequest:null}),this.persistState(a)}hasRenderableOptins(){return this.state.filteredOptins.length>0||this.state.showSimilarArtistsOptin}toggleOptinChannel(e,t,o){const i={...this.state.formState.selections,[e]:{...this.state.formState.selections[e],[t]:o}},a={...this.state.formState,selections:i};this.commitFormState(a)}toggleSimilarArtists(e){const t={...this.state.formState,similarArtists:e};this.commitFormState(t)}requestChannelCapture(e){return this.setState({modalRequest:e}),e}clearModalRequest(){this.setState({modalRequest:null})}saveChannelAddress(e){const t={...this.state.formState.inlineAddresses},o={...this.state.formState.selections},i="sms"===e.channel?Ge(e.value??""):Ue(e.value??"");if("email"===e.channel){(i.length>0||void 0!==t.email)&&(t.email=i.length>0?i:"");const e="string"==typeof t.email&&t.email.length>0;this.hasEmailAddress=i.length>
20||e,this.hasEmailAddress||Object.keys(o).forEach((e=>{o[e]={...o[e],email:!1}}))}else{if(i.length>0||void 0!==t.sms){const o=t.sms?.countryCode??e.countryCode,a=t.sms?.countryIso??e.countryIso??this.country;t.sms={countryCode:e.countryCode??o??"",countryIso:a,number:i}}const a="string"==typeof t.sms?.number&&t.sms.number.length>0,s=(i.length>0?i:t.sms?.number??"").trim(),r=(e.countryIso??t.sms?.countryIso??this.country).trim().toUpperCase();this.hasSmsAddress=(i.length>0||a)&&""===ii(s,r),this.hasSmsAddress||Object.keys(o).forEach((e=>{o[e]={...o[e],sms:!1}}))}const a={...this.state.formState,inlineAddresses:t,selections:o,indicators:gi(this.state.filteredOptins,this.buildPrecheckContext())};this.commitFormState(a)}commitFormState(e){this.setState({formState:e,submitDisabled:mi(e.selections,e.similarArtists)}),this.persistState(e)}persistState(e){this.sessionController.saveOptinsState(e)}hydrateFormState(e,t,o){const i=Boolean(e&&Object.keys(e.selections??{}).length>0),a=Boolean(e?.similarArtists);if(!e||!i&&!a)return function(e,t){const o={};return e.forEach((e=>{o[e.id]=hi(e,t)})),{selections:o,inlineAddresses:{},indicators:gi(e,t),similarArtists:!1}}(t,o);const s={};return t.forEach((t=>{s[t.id]=e.selections[t.id]??hi(t,o)})),{...e,selections:s,indicators:gi(t,o),similarArtists:Boolean(e.similarArtists)}}buildPrecheckContext(){if(!this.config)throw new Error("OptinsController not initialised");return{country:this.country,crm:this.crm,hasEmailAddress:this.hasEmailAddress,hasSmsAddress:this.hasSmsAddress,config:this.config}}}const vi=e=>e??X;let yi={iso:"ZZ",code:"+",source:"default"};function $i(){return yi}function xi(e,t){yi={...yi,...e,source:t??yi.source}}const Ci=[{iso2:"ZZ",name:"International",dialCode:"+",flag1x1:"/assets/flags/1x1/zz.svg"},{iso2:"AF",name:"Afghanistan",dialCode:"+93",flag1x1:"/assets/flags/1x1/af.svg"},{iso2:"AX",name:"Ã
land Islands",dialCode:"+358",flag1x1:"/assets/flags/1x1/ax.svg"},{iso2:"AL",name:"Albania",dialCode:"+355",flag1x1:"/assets/flags/1x1/al.svg"},{iso2:"DZ",name:"Algeria",dialCode:"+213",flag1x1:"/assets/flags/1x1/dz.svg"},{iso2:"AS",name:"American Samoa",dialCode:"+1684",flag1x1:"/assets/flags/1x1/as.svg"},{iso2:"AD",name:"Andorra",dialCode:"+376",flag1x1:"/assets/flags/1x1/ad.svg"},{iso2:"AO",name:"Angola",dialCode:"+244",flag1x1:"/assets/flags/1x1/ao.svg"},{iso2:"AI",name:"Anguilla",dialCode:"+1264",flag1x1:"/assets/flags/1x1/ai.svg"},{iso2:"AG",name:"Antigua and Barbuda",dialCode:"+1268",flag1x1:"/assets/flags/1x1/ag.svg"},{iso2:"AR",name:"Argentina",dialCode:"+54",flag1x1:"/assets/flags/1x1/ar.svg"},{iso2:"AM",name:"Armenia",dialCode:"+374",flag1x1:"/assets/flags/1x1/am.svg"},{iso2:"AW",name:"Aruba",dialCode:"+297",flag1x1:"/assets/flags/1x1/aw.svg"},{iso2:"AC",name:"Ascension Island",dialCode:"+247",flag1x1:"/assets/flags/1x1/ac.svg"},{iso2:"AU",name:"Australia",dialCode:"+61",flag1x1:"/assets/flags/1x1/au.svg"},{iso2:"AT",name:"Austria",dialCode:"+43",flag1x1:"/assets/flags/1x1/at.svg"},{iso2:"AZ",name:"Azerbaijan",dialCode:"+994",flag1x1:"/assets/flags/1x1/az.svg"},{iso2:"BS",name:"Bahamas",dialCode:"+1242",flag1x1:"/assets/flags/1x1/bs.svg"},{iso2:"BH",name:"Bahrain",dialCode:"+973",flag1x1:"/assets/flags/1x1/bh.svg"},{iso2:"BD",name:"Bangladesh",dialCode:"+880",flag1x1:"/assets/flags/1x1/bd.svg"},{iso2:"BB",name:"Barbados",dialCode:"+1246",flag1x1:"/assets/flags/1x1/bb.svg"},{iso2:"BY",name:"Belarus",dialCode:"+375",flag1x1:"/assets/flags/1x1/by.svg"},{iso2:"BE",name:"Belgium",dialCode:"+32",flag1x1:"/assets/flags/1x1/be.svg"},{iso2:"BZ",name:"Belize",dialCode:"+501",flag1x1:"/assets/flags/1x1/bz.svg"},{iso2:"BJ",name:"Benin",dialCode:"+229",flag1x1:"/assets/flags/1x1/bj.svg"},{iso2:"BM",name:"Bermuda",dialCode:"+1441",flag1x1:"/assets/flags/1x1/bm.svg"},{iso2:"BT",name:"Bhutan",dialCode:"+975",flag1x1:"/assets/flags/1x1/bt.svg"},{iso2:"BO",name:"Bolivia",dialCode:"+591",flag1x1:"/assets/flags/1x1/bo.svg"},{iso2:"BQ",name:"Bonaire, Sint Eustatius and Saba",dialCode:"+599",flag1x1:"/assets/flags/1x1/bq.svg"},{iso2:"BA",name:"Bosnia and Herzegovina",dialCode:"+387",flag1x1:"/assets/flags/1x1/ba.svg"},{iso2:"BW",name:"Botswana",dialCode:"+267",flag1x1:"/assets/flags/1x1/bw.svg"},{iso2:"BR",name:"Brazil",dialCode:"+55",flag1x1:"/assets/flags/1x1/br.svg"},{iso2:"IO",name:"British Indian Ocean Territory",dialCode:"+246",flag1x1:"/assets/flags/1x1/io.svg"},{iso2:"BN",name:"Brunei Darussalam",dialCode:"+673",flag1x1:"/assets/flags/1x1/bn.svg"},{iso2:"BG",name:"Bulgaria",dialCode:"+359",flag1x1:"/assets/flags/1x1/bg.svg"},{iso2:"BF",name:"Burkina Faso",dialCode:"+226",flag1x1:"/assets/flags/1x1/bf.svg"},{iso2:"BI",name:"Burundi",dialCode:"+257",flag1x1:"/assets/flags/1x1/bi.svg"},{iso2:"KH",name:"Cambodia",dialCode:"+855",flag1x1:"/assets/flags/1x1/kh.svg"},{iso2:"CM",name:"Cameroon",dialCode:"+237",flag1x1:"/assets/flags/1x1/cm.svg"},{iso2:"CA",name:"Canada",dialCode:"+1",flag1x1:"/assets/flags/1x1/ca.svg"},{iso2:"CV",name:"Cape Verde",dialCode:"+238",flag1x1:"/assets/flags/1x1/cv.svg"},{iso2:"KY",name:"Cayman Islands",dialCode:"+1345",flag1x1:"/assets/flags/1x1/ky.svg"},{iso2:"CF",name:"Central African Republic",dialCode:"+236",flag1x1:"/assets/flags/1x1/cf.svg"},{iso2:"TD",name:"Chad",dialCode:"+235",flag1x1:"/assets/flags/1x1/td.svg"},{iso2:"CL",name:"Chile",dialCode:"+56",flag1x1:"/assets/flags/1x1/cl.svg"},{iso2:"CN",name:"China",dialCode:"+86",flag1x1:"/assets/flags/1x1/cn.svg"},{iso2:"CX",name:"Christmas Island",dialCode:"+61",flag1x1:"/assets/flags/1x1/cx.svg"},{iso2:"CC",name:"Cocos (Keeling) Islands",dialCode:"+61",flag1x1:"/assets/flags/1x1/cc.svg"},{iso2:"CO",name:"Colombia",dialCode:"+57",flag1x1:"/assets/flags/1x1/co.svg"},{iso2:"KM",name:"Comoros",dialCode:"+269",flag1x1:"/assets/flags/1x1/km.svg"},{iso2:"CG",name:"Congo",dialCode:"+242",flag1x1:"/assets/flags/1x1/cg.svg"},{iso2:"CD",name:"Congo, Democratic Republic of the",dialCode:"+243",flag1x1:"/assets/flags/1x1/cd.svg"},{iso2:"CK",name:"Cook Islands",dialCode:"+682",flag1x1:"/assets/flags/1x1/ck.svg"},{iso2:"CR",name:"Costa Rica",dialCode:"+506",flag1x1:"/assets/flags/1x1/cr.svg"},{iso2:"CI",name:"Cote d'Ivoire",dialCode:"+225",flag1x1:"/assets/flags/1x1/ci.svg"},{iso2:"HR",name:"Croatia",dialCode:"+385",flag1x1:"/assets/flags/1x1/hr.svg"},{iso2:"CU",name:"Cuba",dialCode:"+53",flag1x1:"/assets/flags/1x1/cu.svg"},{iso2:"CW",name:"Curaçao",dialCode:"+599",flag1x1:"/assets/flags/1x1/cw.svg"},{iso2:"CY",name:"Cyprus",dialCode:"+357",flag1x1:"/assets/flags/1x1/cy.svg"},{iso2:"CZ",name:"Czech Republic",dialCode:"+420",flag1x1:"/assets/flags/1x1/cz.svg"},{iso2:"DK",name:"Denmark",dialCode:"+45",flag1x1:"/assets/flags/1x1/dk.svg"},{iso2:"DJ",name:"Djibouti",dialCode:"+253",flag1x1:"/assets/flags/1x1/dj.svg"}
2,{iso2:"DM",name:"Dominica",dialCode:"+1767",flag1x1:"/assets/flags/1x1/dm.svg"},{iso2:"DO",name:"Dominican Republic",dialCode:"+1",flag1x1:"/assets/flags/1x1/do.svg"},{iso2:"EC",name:"Ecuador",dialCode:"+593",flag1x1:"/assets/flags/1x1/ec.svg"},{iso2:"EG",name:"Egypt",dialCode:"+20",flag1x1:"/assets/flags/1x1/eg.svg"},{iso2:"SV",name:"El Salvador",dialCode:"+503",flag1x1:"/assets/flags/1x1/sv.svg"},{iso2:"GQ",name:"Equatorial Guinea",dialCode:"+240",flag1x1:"/assets/flags/1x1/gq.svg"},{iso2:"ER",name:"Eritrea",dialCode:"+291",flag1x1:"/assets/flags/1x1/er.svg"},{iso2:"EE",name:"Estonia",dialCode:"+372",flag1x1:"/assets/flags/1x1/ee.svg"},{iso2:"ET",name:"Ethiopia",dialCode:"+251",flag1x1:"/assets/flags/1x1/et.svg"},{iso2:"FK",name:"Falkland Islands",dialCode:"+500",flag1x1:"/assets/flags/1x1/fk.svg"},{iso2:"FO",name:"Faroe Islands",dialCode:"+298",flag1x1:"/assets/flags/1x1/fo.svg"},{iso2:"FM",name:"Federated States of Micronesia",dialCode:"+691",flag1x1:"/assets/flags/1x1/fm.svg"},{iso2:"FJ",name:"Fiji",dialCode:"+679",flag1x1:"/assets/flags/1x1/fj.svg"},{iso2:"FI",name:"Finland",dialCode:"+358",flag1x1:"/assets/flags/1x1/fi.svg"},{iso2:"FR",name:"France",dialCode:"+33",flag1x1:"/assets/flags/1x1/fr.svg"},{iso2:"GF",name:"French Guiana",dialCode:"+594",flag1x1:"/assets/flags/1x1/gf.svg"},{iso2:"PF",name:"French Polynesia",dialCode:"+689",flag1x1:"/assets/flags/1x1/pf.svg"},{iso2:"GA",name:"Gabon",dialCode:"+241",flag1x1:"/assets/flags/1x1/ga.svg"},{iso2:"GM",name:"Gambia",dialCode:"+220",flag1x1:"/assets/flags/1x1/gm.svg"},{iso2:"GE",name:"Georgia",dialCode:"+995",flag1x1:"/assets/flags/1x1/ge.svg"},{iso2:"DE",name:"Germany",dialCode:"+49",flag1x1:"/assets/flags/1x1/de.svg"},{iso2:"GH",name:"Ghana",dialCode:"+233",flag1x1:"/assets/flags/1x1/gh.svg"},{iso2:"GI",name:"Gibraltar",dialCode:"+350",flag1x1:"/assets/flags/1x1/gi.svg"},{iso2:"GR",name:"Greece",dialCode:"+30",flag1x1:"/assets/flags/1x1/gr.svg"},{iso2:"GL",name:"Greenland",dialCode:"+299",flag1x1:"/assets/flags/1x1/gl.svg"},{iso2:"GD",name:"Grenada",dialCode:"+1473",flag1x1:"/assets/flags/1x1/gd.svg"},{iso2:"GP",name:"Guadeloupe",dialCode:"+590",flag1x1:"/assets/flags/1x1/gp.svg"},{iso2:"GU",name:"Guam",dialCode:"+1671",flag1x1:"/assets/flags/1x1/gu.svg"},{iso2:"GT",name:"Guatemala",dialCode:"+502",flag1x1:"/assets/flags/1x1/gt.svg"},{iso2:"GG",name:"Guernsey",dialCode:"+44",flag1x1:"/assets/flags/1x1/gg.svg"},{iso2:"GN",name:"Guinea",dialCode:"+224",flag1x1:"/assets/flags/1x1/gn.svg"},{iso2:"GW",name:"Guinea-Bissau",dialCode:"+245",flag1x1:"/assets/flags/1x1/gw.svg"},{iso2:"GY",name:"Guyana",dialCode:"+592",flag1x1:"/assets/flags/1x1/gy.svg"},{iso2:"HT",name:"Haiti",dialCode:"+509",flag1x1:"/assets/flags/1x1/ht.svg"},{iso2:"VA",name:"Holy See (Vatican City State)",dialCode:"+379",flag1x1:"/assets/flags/1x1/va.svg"},{iso2:"HN",name:"Honduras",dialCode:"+504",flag1x1:"/assets/flags/1x1/hn.svg"},{iso2:"HK",name:"Hong Kong",dialCode:"+852",flag1x1:"/assets/flags/1x1/hk.svg"},{iso2:"HU",name:"Hungary",dialCode:"+36",flag1x1:"/assets/flags/1x1/hu.svg"},{iso2:"IS",name:"Iceland",dialCode:"+354",flag1x1:"/assets/flags/1x1/is.svg"},{iso2:"IN",name:"India",dialCode:"+91",flag1x1:"/assets/flags/1x1/in.svg"},{iso2:"ID",name:"Indonesia",dialCode:"+62",flag1x1:"/assets/flags/1x1/id.svg"},{iso2:"IR",name:"Iran",dialCode:"+98",flag1x1:"/assets/flags/1x1/ir.svg"},{iso2:"IQ",name:"Iraq",dialCode:"+964",flag1x1:"/assets/flags/1x1/iq.svg"},{iso2:"IE",name:"Ireland",dialCode:"+353",flag1x1:"/assets/flags/1x1/ie.svg"},{iso2:"IM",name:"Isle of Man",dialCode:"+44",flag1x1:"/assets/flags/1x1/im.svg"},{iso2:"IL",name:"Israel",dialCode:"+972",flag1x1:"/assets/flags/1x1/il.svg"},{iso2:"IT",name:"Italy",dialCode:"+39",flag1x1:"/assets/flags/1x1/it.svg"},{iso2:"JM",name:"Jamaica",dialCode:"+1876",flag1x1:"/assets/flags/1x1/jm.svg"},{iso2:"JP",name:"Japan",dialCode:"+81",flag1x1:"/assets/flags/1x1/jp.svg"},{iso2:"JE",name:"Jersey",dialCode:"+44",flag1x1:"/assets/flags/1x1/je.svg"},{iso2:"JO",name:"Jordan",dialCode:"+962",flag1x1:"/assets/flags/1x1/jo.svg"},{iso2:"KZ",name:"Kazakhstan",dialCode:"+7",flag1x1:"/assets/flags/1x1/kz.svg"},{iso2:"KE",name:"Kenya",dialCode:"+254",flag1x1:"/assets/flags/1x1/ke.svg"},{iso2:"KI",name:"Kiribati",dialCode:"+686",flag1x1:"/assets/flags/1x1/ki.svg"}
2,{iso2:"XK",name:"Kosovo",dialCode:"+383",flag1x1:"/assets/flags/1x1/xk.svg"},{iso2:"KW",name:"Kuwait",dialCode:"+965",flag1x1:"/assets/flags/1x1/kw.svg"},{iso2:"KG",name:"Kyrgyzstan",dialCode:"+996",flag1x1:"/assets/flags/1x1/kg.svg"},{iso2:"LA",name:"Laos",dialCode:"+856",flag1x1:"/assets/flags/1x1/la.svg"},{iso2:"LV",name:"Latvia",dialCode:"+371",flag1x1:"/assets/flags/1x1/lv.svg"},{iso2:"LB",name:"Lebanon",dialCode:"+961",flag1x1:"/assets/flags/1x1/lb.svg"},{iso2:"LS",name:"Lesotho",dialCode:"+266",flag1x1:"/assets/flags/1x1/ls.svg"},{iso2:"LR",name:"Liberia",dialCode:"+231",flag1x1:"/assets/flags/1x1/lr.svg"},{iso2:"LY",name:"Libya",dialCode:"+218",flag1x1:"/assets/flags/1x1/ly.svg"},{iso2:"LI",name:"Liechtenstein",dialCode:"+423",flag1x1:"/assets/flags/1x1/li.svg"},{iso2:"LT",name:"Lithuania",dialCode:"+370",flag1x1:"/assets/flags/1x1/lt.svg"},{iso2:"LU",name:"Luxembourg",dialCode:"+352",flag1x1:"/assets/flags/1x1/lu.svg"},{iso2:"MO",name:"Macao",dialCode:"+853",flag1x1:"/assets/flags/1x1/mo.svg"},{iso2:"MG",name:"Madagascar",dialCode:"+261",flag1x1:"/assets/flags/1x1/mg.svg"},{iso2:"MW",name:"Malawi",dialCode:"+265",flag1x1:"/assets/flags/1x1/mw.svg"},{iso2:"MY",name:"Malaysia",dialCode:"+60",flag1x1:"/assets/flags/1x1/my.svg"},{iso2:"MV",name:"Maldives",dialCode:"+960",flag1x1:"/assets/flags/1x1/mv.svg"},{iso2:"ML",name:"Mali",dialCode:"+223",flag1x1:"/assets/flags/1x1/ml.svg"},{iso2:"MT",name:"Malta",dialCode:"+356",flag1x1:"/assets/flags/1x1/mt.svg"},{iso2:"MH",name:"Marshall Islands",dialCode:"+692",flag1x1:"/assets/flags/1x1/mh.svg"},{iso2:"MQ",name:"Martinique",dialCode:"+596",flag1x1:"/assets/flags/1x1/mq.svg"},{iso2:"MR",name:"Mauritania",dialCode:"+222",flag1x1:"/assets/flags/1x1/mr.svg"},{iso2:"MU",name:"Mauritius",dialCode:"+230",flag1x1:"/assets/flags/1x1/mu.svg"},{iso2:"YT",name:"Mayotte",dialCode:"+262",flag1x1:"/assets/flags/1x1/yt.svg"},{iso2:"MX",name:"Mexico",dialCode:"+52",flag1x1:"/assets/flags/1x1/mx.svg"},{iso2:"MD",name:"Moldova",dialCode:"+373",flag1x1:"/assets/flags/1x1/md.svg"},{iso2:"MC",name:"Monaco",dialCode:"+377",flag1x1:"/assets/flags/1x1/mc.svg"},{iso2:"MN",name:"Mongolia",dialCode:"+976",flag1x1:"/assets/flags/1x1/mn.svg"},{iso2:"ME",name:"Montenegro",dialCode:"+382",flag1x1:"/assets/flags/1x1/me.svg"},{iso2:"MS",name:"Montserrat",dialCode:"+1664",flag1x1:"/assets/flags/1x1/ms.svg"},{iso2:"MA",name:"Morocco",dialCode:"+212",flag1x1:"/assets/flags/1x1/ma.svg"},{iso2:"MZ",name:"Mozambique",dialCode:"+258",flag1x1:"/assets/flags/1x1/mz.svg"},{iso2:"MM",name:"Myanmar",dialCode:"+95",flag1x1:"/assets/flags/1x1/mm.svg"},{iso2:"NA",name:"Namibia",dialCode:"+264",flag1x1:"/assets/flags/1x1/na.svg"},{iso2:"NR",name:"Nauru",dialCode:"+674",flag1x1:"/assets/flags/1x1/nr.svg"},{iso2:"NP",name:"Nepal",dialCode:"+977",flag1x1:"/assets/flags/1x1/np.svg"},{iso2:"NL",name:"Netherlands",dialCode:"+31",flag1x1:"/assets/flags/1x1/nl.svg"},{iso2:"NC",name:"New Caledonia",dialCode:"+687",flag1x1:"/assets/flags/1x1/nc.svg"},{iso2:"NZ",name:"New Zealand",dialCode:"+64",flag1x1:"/assets/flags/1x1/nz.svg"},{iso2:"NI",name:"Nicaragua",dialCode:"+505",flag1x1:"/assets/flags/1x1/ni.svg"},{iso2:"NE",name:"Niger",dialCode:"+227",flag1x1:"/assets/flags/1x1/ne.svg"},{iso2:"NG",name:"Nigeria",dialCode:"+234",flag1x1:"/assets/flags/1x1/ng.svg"},{iso2:"NU",name:"Niue",dialCode:"+683",flag1x1:"/assets/flags/1x1/nu.svg"},{iso2:"NF",name:"Norfolk Island",dialCode:"+672",flag1x1:"/assets/flags/1x1/nf.svg"},{iso2:"KP",name:"North Korea",dialCode:"+850",flag1x1:"/assets/flags/1x1/kp.svg"},{iso2:"MK",name:"North Macedonia",dialCode:"+389",flag1x1:"/assets/flags/1x1/mk.svg"},{iso2:"MP",name:"Northern Mariana Islands",dialCode:"+1670",flag1x1:"/assets/flags/1x1/mp.svg"},{iso2:"NO",name:"Norway",dialCode:"+47",flag1x1:"/assets/flags/1x1/no.svg"},{iso2:"OM",name:"Oman",dialCode:"+968",flag1x1:"/assets/flags/1x1/om.svg"},{iso2:"PK",name:"Pakistan",dialCode:"+92",flag1x1:"/assets/flags/1x1/pk.svg"},{iso2:"PW",name:"Palau",dialCode:"+680",flag1x1:"/assets/flags/1x1/pw.svg"},{iso2:"PS",name:"Palestine",dialCode:"+970",flag1x1:"/assets/flags/1x1/ps.svg"},{iso2:"PA",name:"Panama",dialCode:"+507",flag1x1:"/assets/flags/1x1/pa.svg"}
2,{iso2:"PG",name:"Papua New Guinea",dialCode:"+675",flag1x1:"/assets/flags/1x1/pg.svg"},{iso2:"PY",name:"Paraguay",dialCode:"+595",flag1x1:"/assets/flags/1x1/py.svg"},{iso2:"PE",name:"Peru",dialCode:"+51",flag1x1:"/assets/flags/1x1/pe.svg"},{iso2:"PH",name:"Philippines",dialCode:"+63",flag1x1:"/assets/flags/1x1/ph.svg"},{iso2:"PL",name:"Poland",dialCode:"+48",flag1x1:"/assets/flags/1x1/pl.svg"},{iso2:"PT",name:"Portugal",dialCode:"+351",flag1x1:"/assets/flags/1x1/pt.svg"},{iso2:"PR",name:"Puerto Rico",dialCode:"+1",flag1x1:"/assets/flags/1x1/pr.svg"},{iso2:"QA",name:"Qatar",dialCode:"+974",flag1x1:"/assets/flags/1x1/qa.svg"},{iso2:"RE",name:"Reunion",dialCode:"+262",flag1x1:"/assets/flags/1x1/re.svg"},{iso2:"RO",name:"Romania",dialCode:"+40",flag1x1:"/assets/flags/1x1/ro.svg"},{iso2:"RU",name:"Russia",dialCode:"+7",flag1x1:"/assets/flags/1x1/ru.svg"},{iso2:"RW",name:"Rwanda",dialCode:"+250",flag1x1:"/assets/flags/1x1/rw.svg"},{iso2:"BL",name:"Saint Barthélemy",dialCode:"+590",flag1x1:"/assets/flags/1x1/bl.svg"},{iso2:"SH",name:"Saint Helena",dialCode:"+290",flag1x1:"/assets/flags/1x1/sh.svg"},{iso2:"KN",name:"Saint Kitts and Nevis",dialCode:"+1869",flag1x1:"/assets/flags/1x1/kn.svg"},{iso2:"LC",name:"Saint Lucia",dialCode:"+1758",flag1x1:"/assets/flags/1x1/lc.svg"},{iso2:"MF",name:"Saint Martin (French Part)",dialCode:"+590",flag1x1:"/assets/flags/1x1/mf.svg"},{iso2:"PM",name:"Saint Pierre and Miquelon",dialCode:"+508",flag1x1:"/assets/flags/1x1/pm.svg"},{iso2:"VC",name:"Saint Vincent and the Grenadines",dialCode:"+1784",flag1x1:"/assets/flags/1x1/vc.svg"},{iso2:"WS",name:"Samoa",dialCode:"+685",flag1x1:"/assets/flags/1x1/ws.svg"},{iso2:"SM",name:"San Marino",dialCode:"+378",flag1x1:"/assets/flags/1x1/sm.svg"},{iso2:"ST",name:"Sao Tome and Principe",dialCode:"+239",flag1x1:"/assets/flags/1x1/st.svg"},{iso2:"SA",name:"Saudi Arabia",dialCode:"+966",flag1x1:"/assets/flags/1x1/sa.svg"},{iso2:"SN",name:"Senegal",dialCode:"+221",flag1x1:"/assets/flags/1x1/sn.svg"},{iso2:"RS",name:"Serbia",dialCode:"+381",flag1x1:"/assets/flags/1x1/rs.svg"},{iso2:"SC",name:"Seychelles",dialCode:"+248",flag1x1:"/assets/flags/1x1/sc.svg"},{iso2:"SL",name:"Sierra Leone",dialCode:"+232",flag1x1:"/assets/flags/1x1/sl.svg"},{iso2:"SG",name:"Singapore",dialCode:"+65",flag1x1:"/assets/flags/1x1/sg.svg"},{iso2:"SX",name:"Sint Maarten",dialCode:"+1721",flag1x1:"/assets/flags/1x1/sx.svg"},{iso2:"SK",name:"Slovakia",dialCode:"+421",flag1x1:"/assets/flags/1x1/sk.svg"},{iso2:"SI",name:"Slovenia",dialCode:"+386",flag1x1:"/assets/flags/1x1/si.svg"},{iso2:"SB",name:"Solomon Islands",dialCode:"+677",flag1x1:"/assets/flags/1x1/sb.svg"},{iso2:"SO",name:"Somalia",dialCode:"+252",flag1x1:"/assets/flags/1x1/so.svg"},{iso2:"ZA",name:"South Africa",dialCode:"+27",flag1x1:"/assets/flags/1x1/za.svg"},{iso2:"KR",name:"South Korea",dialCode:"+82",flag1x1:"/assets/flags/1x1/kr.svg"},{iso2:"SS",name:"South Sudan",dialCode:"+211",flag1x1:"/assets/flags/1x1/ss.svg"},{iso2:"ES",name:"Spain",dialCode:"+34",flag1x1:"/assets/flags/1x1/es.svg"},{iso2:"LK",name:"Sri Lanka",dialCode:"+94",flag1x1:"/assets/flags/1x1/lk.svg"},{iso2:"SD",name:"Sudan",dialCode:"+249",flag1x1:"/assets/flags/1x1/sd.svg"},{iso2:"SR",name:"Suriname",dialCode:"+597",flag1x1:"/assets/flags/1x1/sr.svg"},{iso2:"SJ",name:"Svalbard and Jan Mayen",dialCode:"+47",flag1x1:"/assets/flags/1x1/sj.svg"},{iso2:"SZ",name:"Swaziland",dialCode:"+268",flag1x1:"/assets/flags/1x1/sz.svg"},{iso2:"SE",name:"Sweden",dialCode:"+46",flag1x1:"/assets/flags/1x1/se.svg"},{iso2:"CH",name:"Switzerland",dialCode:"+41",flag1x1:"/assets/flags/1x1/ch.svg"},{iso2:"SY",name:"Syria",dialCode:"+963",flag1x1:"/assets/flags/1x1/sy.svg"},{iso2:"TW",name:"Taiwan",dialCode:"+886",flag1x1:"/assets/flags/1x1/tw.svg"},{iso2:"TJ",name:"Tajikistan",dialCode:"+992",flag1x1:"/assets/flags/1x1/tj.svg"},{iso2:"TZ",name:"Tanzania",dialCode:"+255",flag1x1:"/assets/flags/1x1/tz.svg"},{iso2:"TH",name:"Thailand",dialCode:"+66",flag1x1:"/assets/flags/1x1/th.svg"},{iso2:"TL",name:"Timor-Leste",dialCode:"+670",flag1x1:"/assets/flags/1x1/tl.svg"},{iso2:"TG",name:"Togo",dialCode:"+228",flag1x1:"/assets/flags/1x1/tg.svg"},{iso2:"TK",name:"Tokelau",dialCode:"+690",flag1x1:"/assets/flags/1x1/tk.svg"},{iso2:"TO",name:"Tonga",dialCode:"+676",flag1x1:"/assets/flags/1x1/to.svg"},{iso2:"TT",name:"Trinidad and Tobago",dialCode:"+1868",flag1x1:"/assets/flags/1x1/tt.svg"},{iso2:"TA",name:"Tristan da Cunha",dialCode:"+290",flag1x1:"/assets/flags/1x1/ta.svg"},{iso2:"TN",name:"Tunisia",dialCode:"+216",flag1x1:"/assets/flags/1x1/tn.svg"}
2,{iso2:"TR",name:"Turkey",dialCode:"+90",flag1x1:"/assets/flags/1x1/tr.svg"},{iso2:"TM",name:"Turkmenistan",dialCode:"+993",flag1x1:"/assets/flags/1x1/tm.svg"},{iso2:"TC",name:"Turks and Caicos Islands",dialCode:"+1649",flag1x1:"/assets/flags/1x1/tc.svg"},{iso2:"TV",name:"Tuvalu",dialCode:"+688",flag1x1:"/assets/flags/1x1/tv.svg"},{iso2:"UG",name:"Uganda",dialCode:"+256",flag1x1:"/assets/flags/1x1/ug.svg"},{iso2:"UA",name:"Ukraine",dialCode:"+380",flag1x1:"/assets/flags/1x1/ua.svg"},{iso2:"AE",name:"United Arab Emirates",dialCode:"+971",flag1x1:"/assets/flags/1x1/ae.svg"},{iso2:"GB",name:"United Kingdom",dialCode:"+44",flag1x1:"/assets/flags/1x1/gb.svg"},{iso2:"US",name:"United States",dialCode:"+1",flag1x1:"/assets/flags/1x1/us.svg"},{iso2:"UY",name:"Uruguay",dialCode:"+598",flag1x1:"/assets/flags/1x1/uy.svg"},{iso2:"UZ",name:"Uzbekistan",dialCode:"+998",flag1x1:"/assets/flags/1x1/uz.svg"},{iso2:"VU",name:"Vanuatu",dialCode:"+678",flag1x1:"/assets/flags/1x1/vu.svg"},{iso2:"VE",name:"Venezuela",dialCode:"+58",flag1x1:"/assets/flags/1x1/ve.svg"},{iso2:"VN",name:"Vietnam",dialCode:"+84",flag1x1:"/assets/flags/1x1/vn.svg"},{iso2:"VG",name:"Virgin Islands, British",dialCode:"+1284",flag1x1:"/assets/flags/1x1/vg.svg"},{iso2:"VI",name:"Virgin Islands, U.S.",dialCode:"+1340",flag1x1:"/assets/flags/1x1/vi.svg"},{iso2:"WF",name:"Wallis and Futuna",dialCode:"+681",flag1x1:"/assets/flags/1x1/wf.svg"},{iso2:"EH",name:"Western Sahara",dialCode:"+212",flag1x1:"/assets/flags/1x1/eh.svg"},{iso2:"YE",name:"Yemen",dialCode:"+967",flag1x1:"/assets/flags/1x1/ye.svg"},{iso2:"ZM",name:"Zambia",dialCode:"+260",flag1x1:"/assets/flags/1x1/zm.svg"},{iso2:"ZW",name:"Zimbabwe",dialCode:"+263",flag1x1:"/assets/flags/1x1/zw.svg"}],wi=new Map;function Si(e){const t=e.toUpperCase();if(!wi.has(t)){const e=Ci.find((e=>e.iso2===t));wi.set(t,e)}return wi.get(t)}function ki(e){return Si(e)?.dialCode??"+"}class _i extends he{emit(e,t){const o=new CustomEvent(e,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...t});return this.dispatchEvent(o),o}static define(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=customElements.get(e);if(!i){try{customElements.define(e,t,o)}catch(i){console.log(e,i),customElements.define(e,class extends t{},o)}return}let a=" (unknown version)",s=a;"version"in t&&t.version&&(a=" v"+t.version),"version"in i&&i.version&&(s=" v"+i.version),a&&s&&a===s||console.warn(`Attempted to register <${e}>, but <${e}> has already been registered.`)}constructor(){super(),Object.entries(this.constructor.dependencies).forEach((e=>{let[t,o]=e;this.constructor.define(t,o)}))}}_i.version="2.0.45",_i.dependencies={};var Pi=d` 3 :host { 4 position: fixed; 5 inset: 0; 6 z-index: 1000; 7 } 8 9 .overlay { 10 position: fixed; 11 inset: 0; 12 background: rgb(from var(--pu-form-modal-color-background-overlay, rgba(15, 15, 15, 0.9)) r g b / alpha); 13 display: flex; 14 align-items: center; 15 justify-content: center; 16 padding: 1rem; 17 } 18 19 .dialog { 20 border-radius: 1rem; 21 max-height: 90vh; 22 overflow: auto; 23 box-shadow: var(--pu-shadow-elevation-400); 24 display: flex; 25 flex-direction: column; 26 gap: 1rem; 27 padding: 1.5rem; 28 width: min(420px, 100%); 29 } 30 31 .content { 32 display: flex; 33 flex-direction: column; 34 gap: 1rem; 35 } 36`,Ai=d` 37 :host { 38 display: block; 39 box-sizing: border-box; 40 font-size: 16px; 41 } 42 43 :host *, 44 :host *::before, 45 :host *::after { 46 box-sizing: border-box; 47 } 48 49 .form-surface:not(.form--optins):not(.form--supplementary) { 50 border: 0.0625em solid rgb(from var(--pu-form-border-color, var(--form-border)) r g b / alpha); 51 padding: 2em 1em; 52 } 53 54 .field-group { 55 display: flex; 56 flex-direction: column; 57 gap: 0.75em; 58 } 59 60 .input-field { 61 --pu-input-color-foreground-hover: rgb( 62 from var(--pu-form-primary-foreground-color, var(--form-primary-foreground)) r g b / 0.8 63 ); 64 --pu-input-color-foreground: var(--pu-form-primary-foreground-color, var(--form-primary-foreground)); 65 --pu-input-placeholder-color-foreground: var( 66 --pu-form-primary-foreground-color, 67 var(--form-primary-foreground) 68 ); 69 --pu-icon-color-foreground: var(--pu-form-primary-foreground-color, var(--form-primary-foreground)); 70 --pu-input-color-background: var(--pu-form-background-color, var(--form-background)); 71 --pu-input-color-background-hover: var(--pu-form-background-color, var(--form-background)); 72 --pu-input-border-color: var(--pu-form-border-color, var(--form-border)); 73 --pu-color-focus-background: var(--pu-form-background-color, var(--form-background)); 74 --pu-input-font-size: var(--pu-form-field-font-size, 0.875em); 75 --pu-select-font-size: var(--pu-form-field-font-size, 0.875em); 76 --pu-flag-icon-font-size: var(1.5em); 77 } 78 79 .primary-button { 80 --pu-button-size-height: 3rem; 81 } 82 83 .compliance-content { 84 display: flex; 85 flex-direction: column; 86 gap: 1rem; 87 } 88 89 .privacy-links { 90 color: rgb(from var(--pu-form-secondary-accent-color, var(--form-secondary-accent)) r g b / alpha); 91 font-size: 0.6875em; 92 } 93 94 .form-banner { 95 border: 1px solid var(--pu-form-error-color, var(--form-error)); 96 background: var(--pu-form-background-color, var(--form-background)); 97 color: var(--pu-form-primary-accent-color, var(--form-primary-accent)); 98 padding: 0.75rem; 99 border-radius: 0.5rem; 100 font-size: 0.875rem; 101 margin-bottom: 1rem; 102 display: flex; 103 justify-content: space-between; 104 gap: 0.75rem; 105 } 106 107 .form-banner button { 108 background: none; 109 border: none; 110 color: inherit; 111 font: inherit; 112 cursor: pointer; 113 text-decoration: underline; 114 } 115`,Ti=d` 116 /* Main content area outside form fields container */ 117 .primary-text-color { 118 --pu-color-foreground: var(--pu-form-primary-foreground-color, var(--form-primary-foreground, #444444)); 119 } 120 .primary-background-color { 121 background-color: var(--pu-form-primary-background-color, var(--form-primary-background, #f7f7f8)); 122 } 123 124 /* Form content */ 125 .form-primary-text-color { 126 --pu-color-foreground: var(--pu-form-foreground-color, var(--form-foreground, #3a3d4b)); 127 } 128 129 .form-background-color { 130 background-color: var(--pu-form-background-color, var(--form-background, #ffffff)); 131 } 132 133 .form-secondary-text-color { 134 --pu-color-foreground: var(--pu-form-secondary-accent-color, var(--form-secondary-accent)); 135 } 136 137 /* Form content UI states */ 138 .form-active-state-color { 139 --pu-color-foreground: var(--pu-form-primary-accent-color, var(--form-primary-accent, #3a3d4b)); 140 } 141 142 .form-inactive-state-color { 143 --pu-color-foreground: var(--pu-form-secondary-accent-color, var(--form-secondary-accent, #9ca0b0)); 144 } 145 146 .form-neutral { 147 --pu-color-foreground: var(--pu-form-border-color, var(--form-border, rgba(0, 0, 0, 0.1))); 148 } 149 150 .form-success { 151 --pu-color-foreground: var(--pu-form-success-color, var(--form-success, #33b79a)); 152 } 153 154 /* Form UI Elements */ 155 .form-primary-button { 156 --pu-button-color-foreground: var(--pu-form-background-color, var(--form-background, #ffffff)); 157 --pu-button-color-background: var(--pu-form-foreground-color, var(--form-foreground, #3a3d4b)); 158 } 159 160 .form-toggle-button { 161 --pu-input-color-background: var(--pu-form-secondary-accent-color, var(--form-secondary-accent, #9ca0b0)); 162 --pu-input-color-background-hover: rgb( 163 from var(--pu-form-secondary-accent-color, var(--form-secondary-accent, #9ca0b0)) r g b / 0.8 164 ); 165 166 --pu-input-border-color: var(--pu-form-secondary-accent-color, var(--form-secondary-accent, #9ca0b0)); 167 --pu-input-border-color-hover: var(--pu-form-secondary-accent-color, var(--form-secondary-accent, #9ca0b0)); 168 --pu-input-border-color-checked: var(--pu-form-success-color, var(--form-success, #33b79a)); 169 170 --pu-input-icon-color-foreground: var(--pu-form-background-color, var(--form-background, #ffffff)); 171 --pu-input-icon-color-foreground-hover: rgb( 172 from var(--pu-form-background-color, var(--form-background, #ffffff)) r g b / 0.8 173 ); 174 --pu-input-icon-color-foreground-checked: var(--pu-input-icon-color-foreground); 175 176 --pu-input-color-background-checked: var(--pu-form-success-color, var(--form-success, #33b79a)); 177 --pu-input-border-color-checked-hover: rgb( 178 from var(--pu-form-success-color, var(--form-success, #33b79a)) r g b / 0.7 179 ); 180 } 181 182 /* Form content shapes */ 183 .form-content--rounded { 184 --pu-input-border-radius: var(--pu-form-input-border-radius, 2em); 185 --pu-button-border-radius: var(--pu-form-button-border-radius, 2em); 186 border-radius: var(--pu-form-border-radius, 2em); 187 } 188 189 .form-content--square { 190 --pu-input-border-radius: var(--pu-form-input-border-radius, 0); 191 --pu-button-border-radius: var(--pu-form-button-border-radius, 0); 192 border-radius: var(--pu-form-border-radius, 0); 193 } 194`;let Ei=0,Ii=class extends _i{constructor(){super(...arguments),this.open=!1,this.heading="",this.headingId="dialog-heading-"+ ++Ei,this.handleKeydown=e=>{this.open&&("Escape"===e.key&&(e.preventDefault(),this.emitClose()),"Tab"===e.key&&this.maintainFocus(e))},this.handleOverlayClick=e=>{e.target===e.currentTarget&&this.emitClose()},this.emitClose=()=>{this.dispatchEvent(new CustomEvent("sf-dialog-close",{bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){document.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback()}updated(e){e.has("open")&&this.open&&this.trapFocus()}trapFocus(){const e=this.shadowRoot?.querySelector(".dialog");if(!e)return;const t=e.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not
194([tabindex='-1'])")[0];t?t.focus():e.focus()}maintainFocus(e){const t=this.shadowRoot?.querySelector(".dialog");if(!t)return;const o=t.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex='-1'])");if(0===o.length)return void e.preventDefault();const i=o[0],a=o[o.length-1];e.shiftKey||document.activeElement!==a?e.shiftKey&&document.activeElement===i&&(e.preventDefault(),a.focus()):(e.preventDefault(),i.focus())}render(){return this.open?W` 195 <div class="overlay" @click=${this.handleOverlayClick}> 196 <div 197 class="dialog form-background-color" 198 role="dialog" 199 tabindex="-1" 200 aria-modal="true" 201 aria-labelledby=${this.heading?this.headingId:X}> 202 <header> 203 ${this.heading?W`<pu-text 204 class="primary-text-color" 205 as="h2" 206 variant="bodyLg" 207 fontweight="bold" 208 textAlign="center" 209 id=${this.headingId} 210 >${this.heading}</pu-text 211 >`:W`<slot name="header"></slot>`} 212 </header> 213 <section class="content"> 214 <slot></slot> 215 </section> 216 </div> 217 </div> 218 `:W``}};Ii.styles=[Ai,Ti,Pi],i([ve({type:Boolean,reflect:!0})],Ii.prototype,"open",void 0),i([ve({type:String})],Ii.prototype,"heading",void 0),i([ye()],Ii.prototype,"headingId",void 0),Ii=i([fe("sf-dialog")],Ii);class zi extends Pe{constructor(e){if(super(e),this.it=X,e.type!==we)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===X||null==e)return this._t=void 0,this.it=e;if(e===Z)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}zi.directiveName="unsafeHTML",zi.resultType=1;const Mi=_e(zi);const Fi=d` 219 :host { 220 display: block; 221 } 222 223 .legal-terms-container { 224 display: flex; 225 flex-direction: column; 226 gap: 0.75rem; 227 font-size: 0.75em; 228 transition: 229 opacity 0.3s ease, 230 max-height 0.3s ease; 231 opacity: 0; 232 max-height: 0; 233 overflow: hidden; 234 } 235 236 .legal-terms-container.visible { 237 opacity: 1; 238 max-height: 500px; /* Arbitrary large height for now, will refine in animation phase */ 239 } 240 241 .legal-block { 242 /* Individual term blocks */ 243 } 244 245 .legal-block a { 246 color: rgb(from var(--pu-form-secondary-accent-color, var(--form-secondary-accent)) r g b / alpha); 247 text-decoration: underline; 248 } 249`;let Oi=class extends he{constructor(){super(...arguments),this.country="",this.channel="email",this.visible=!1}render(){if(!this.config||!this.country)return X;const e=function(e,t,o){const i=[],a=t.toLowerCase(),s="ca"===a||"can"===a,r="sms"===o||"both"===o;if("email"===o||"both"===o){const t=s&&e.caslEmailTerms||e.standardEmailTerms;t&&i.push(t)}if(r){const t=s&&e.caslSmsTerms||e.standardSmsTerms;t&&i.push(t)}return i}(this.config,this.country,this.channel);return 0===e.length?X:W` 250 <div class="legal-terms-container ${this.visible?"visible":""}"> 251 ${e.map((e=>W`<div class="legal-block" part="terms-block"> 252 <pu-text 253 class="form-secondary-text-color" 254 part="terms-text" 255 exportparts="p body" 256 as="p" 257 variant="bodyXs" 258 textAlign="center" 259 >${Mi(e)}</pu-text 260 > 261 </div>`))} 262 </div> 263 `}};Oi.styles=[Ti,Fi],i([ve({attribute:!1})],Oi.prototype,"config",void 0),i([ve({type:String})],Oi.prototype,"country",void 0),i([ve({type:String})],Oi.prototype,"channel",void 0),i([ve({type:Boolean,reflect:!0})],Oi.prototype,"visible",void 0),Oi=i([fe("legal-terms-display")],Oi);var Di=d` 264 :host { 265 display: block; 266 } 267 268 .optins-form { 269 display: flex; 270 flex-direction: column; 271 gap: 2.5em; 272 } 273 274 .form-header { 275 display: flex; 276 flex-direction: column; 277 gap: 0.75em; 278 } 279 280 .form-content { 281 display: flex; 282 flex-direction: column; 283 gap: 1em; 284 } 285 286 .channel-indicators { 287 display: flex; 288 justify-content: end; 289 gap: 1.75em; 290 padding-bottom: 0.5em; 291 border-bottom: 0.0625em solid var(--pu-form-border-color, var(--form-border, rgba(0, 0, 0, 0.1))); 292 } 293 294 .optin-row { 295 display: flex; 296 align-items: center; 297 gap: 0.75em; 298 padding: 0.5em 0; 299 } 300 301 .optin-name { 302 flex: 1; 303 } 304 305 .channel-toggles { 306 display: flex; 307 gap: 1em; 308 justify-content: end; 309 } 310 311 .channel-toggle--hidden { 312 visibility: hidden; 313 } 314 315 .similar-artist-opt-in { 316 border-top: 0.0625em solid var(--pu-form-border-color, var(--form-border, rgba(0, 0, 0, 0.1))); 317 padding-top: 0.5em; 318 } 319
320 .modal-form { 321 display: flex; 322 flex-direction: column; 323 gap: 1em; 324 } 325 326 .modal-actions { 327 display: flex; 328 justify-content: flex-end; 329 gap: 0.5em; 330 } 331 332 .skip-container { 333 text-align: center; 334 } 335 336 .skip-link { 337 --pu-button-font-weight: 400; 338 } 339 340 .phone-row { 341 display: flex; 342 align-items: center; 343 gap: 0.5em; 344 } 345 346 .dial-select-wrap { 347 position: relative; 348 display: inline-flex; 349 align-items: center; 350 justify-content: center; 351 width: 3em; 352 height: 2.5em; 353 border: 1px solid var(--pu-color-neutral-200, #e4e7ec); 354 border-radius: 0.5em; 355 background: var(--pu-color-neutral-50, #f9fafb); 356 overflow: hidden; 357 } 358 359 .dial-select-native { 360 position: absolute; 361 inset: 0; 362 opacity: 0; 363 cursor: pointer; 364 } 365 366 .dial-flag { 367 width: 1.5em; 368 height: 1.5em; 369 object-fit: cover; 370 border-radius: 0.25em; 371 } 372 373 .dial-placeholder { 374 font-size: 1em; 375 } 376`;class Li extends _i{constructor(){super(...arguments),this.modalInputValue="",this.isProcessing=!1,this.bannerMessage=null,this.resolvedDialIso="ZZ",this.handleModalPhoneBlur=e=>{const t=e.target;if(!t)return;const o=t.phoneValue??t.value??"",i=qe(o,ki(this.resolvedDialIso));i!==o&&("phoneValue"in t?t.phoneValue=i:"value"in t&&(t.value=i)),this.modalInputValue=i}}static render(e){return W`<optins-form .config=${e}></optins-form>`}handleProcessingState(e){this.isProcessing="processing"===e.status,"error"===e.status&&(this.bannerMessage=e.error??this.formService?.getValidationErrorMessage()??ot.apiFailure),"success"!==e.status&&"idle"!==e.status||(this.bannerMessage=null)}attachProcessingListener(){this.formService&&(this.detachProcessingListener?.(),this.detachProcessingListener=this.formService.onStepProcessingChange("optins",(e=>this.handleProcessingState(e))))}requestFormService(){this.dispatchEvent(new CustomEvent(si,{bubbles:!0,composed:!0,detail:{resolve:e=>{this.formService=e,this.attachProcessingListener()}}}))}resolveDialIso(){const e=function(e){if(!e)return;const t=e.trim();if(t){if(t.startsWith("+")){const e=Ci.find((e=>e.dialCode===t));return e?.iso2}return t.toUpperCase()}}(this.config.state.inlineAddresses?.sms?.countryIso??this.config.state.inlineAddresses?.sms?.countryCode??void 0),t=(e||$i().iso||this.config.country||"ZZ").toUpperCase();return xi({iso:t},e?"user":"country"),{iso:t}}connectedCallback(){super.connectedCallback(),this.formService||this.requestFormService(),this.config?.country&&xi({iso:this.config.country.toUpperCase()},"country"),this.resolvedDialIso=this.resolveDialIso().iso,this.attachProcessingListener()}disconnectedCallback(){super.disconnectedCallback(),this.detachProcessingListener?.(),this.detachProcessingListener=void 0}willUpdate(e){super.willUpdate(e),(e.has("config")||e.has("isProcessing"))&&(this.resolvedDialIso=this.resolveDialIso().iso)}syncDialFields(e){const t=ki(this.resolvedDialIso),o=e.querySelector('input[name="mobilephone_country_code"]');o&&(o.value=t)}getEffectiveChannel(){const e=Object.values(this.config.state.selections).some((e=>e.email)),t=Object.values(this.config.state.selections).some((e=>e.sms));return e&&t?"both":t?"sms":"email"}handleToggleChange(e,t,o){o.stopPropagation();const i=o.target,a=Boolean(i?.checked),s=this.config.state.indicators[t];if(a&&"inactive"===s)return i.checked=!1,void(this.formService?this.formService.requestChannelCapture({optinId:e,channel:t}):this.dispatchEvent(new CustomEvent("optins-channel-required",{detail:{optinId:e,channel:t,checked:a},bubbles:!0,composed:!0})));this.formService?this.formService.updateOptinSelection(e,t,a):this.dispatchEvent(new CustomEvent("optins-toggle-change",{detail:{optinId:e,channel:t,checked:a},bubbles:!0,composed:!0}))}handleAddressChange(e,t){const o=t.target;let i;if(o instanceof HTMLInputElement){const t=o.value??"";i="sms"===e?Ge(t):Ue(t)}else{const t=o,a=t?.phoneValue??t?.value??"";i="sms"===e?Ge(a):Ue(a)}if("sms"===e){const e=qe(i,ki(this.resolvedDialIso));if(e!==i){const t=o;"phoneValue"in t?t.phoneValue=e:"value"in t&&(t.value=e),i=e}}if("email"===e&&"function"==typeof o.setCustomValidity&&o.setCustomValidity(""),this.formService?.clearValidationError(),this.formService){const t="sms"===e?ki(this.resolvedDialIso):void 0;this.formService.saveChannelAddress(e,i,t,this.resolvedDialIso)}else this.dispatchEvent(new CustomEvent("optins-address-change",{detail:{channel:e,value:i},bubbles:!0,composed:!0}))}handleSimilarArtistsToggle(e){e.stopPropagation();const t=e.target,o=Boolean(t?.checked);this.formService?.updateSimilarArtistsSelection(o)}handleModalInput(e){const t=e.target;if(t instanceof HTMLInputElement)this.modalInputValue=t.value??"";else{const e=t;this.modalInputValue=e?.phoneValue??e?.value??""}"email"===this.config.modalRequest?.channel&&"function"==typeof t.setCustomValidity&&t.setCustomValidity(""),"sms"===this.config.modalRequest?.channel&&"function"==typeof t.setCustomValidity&&t.setCustomValidity(""),this.formService?.clearValidationError()}clearFieldValidity(e){const t=e.target;t&&"function"==typeof t.setCustomValidity&&t.setCustomValidity(""),this.formService?.clearValidationError()}isModalInputValid(){const e=this.config.modalRequest;if(!e)return!1;const t="sms"===e.channel?Ge(this.modalInputValue):Ue(this.modalInputValue);return!!t&&("email"===e.channel?Je(t):""===ii(t,this.resolvedDialIso))}emitModalSubmit(){const e=this.config.modalRequest;if(!e)return;const t="sms"===e.channel?Ge(this.modalInputValue):Ue(this.modalInputValue);if(t)if(this.formService){const o="sms"===e.channel?ki(this.resolvedDialIso):void 0;this.formService.saveChannelAddress(e.channel,t,o,this.resolvedDialIso),e.optinId&&this.formService.updateOptinSelection(e.optinId,e.channel,!0),this.formService.dismissChannelCapture(),this.modalInputValue=""}else this.dispatchEvent(new CustomEvent("optins-modal-submit",{detail:{channel:e.channel,value:t,countryCode:"sms"===e.channel?this.config.country:void 0},bubbles:!0,composed:!0})),this.modalInputValue=""}handleModalKeydown(e){"Enter"===e.key&&(e.preventDefault(),this.emitModalSubmit())}handleModalClose(){this.modalInputValue="",this.formService?this.formService.dismissChannelCapture():this.dispatchEvent(new CustomEvent("optins-modal-dismiss",{bubbles:!0,composed:!0}))}handleSkipClick(){this.dispatchEvent(new CustomEvent("optins-form-skip",{bubbles:!0,composed:!0,detail:{stepId:"optins"}}))}handleSubmit(e){e.preventDefault();const t=e.target;if(this.syncDialFields(t),this.formService)this.formService.submitOptins(t);else{const e=new FormData(t);this.dispatchEvent(new CustomEvent("optins-form-submit",{detail:{formData:e},bubbles:!0,composed:!0}))}}renderBanner(){return this.bannerMessage?W` 377 <div class="form-banner" role="alert">
378 <span>${this.bannerMessage}</span> 379 <button type="button" class="banner-close" @click=${this.clearBanner}>Dismiss</button> 380 </div> 381 `:null}clearBanner(){this.bannerMessage=null,this.formService?.clearValidationError()}renderChannelStatusIndicators(){const e=this.config.state.indicators,t=this.config.optins,o=t.some((e=>e.channels.includes("email"))),i=t.some((e=>e.channels.includes("sms")));return W` 382 <div class="channel-indicators form-inactive-state-color" aria-live="polite"> 383 ${i?W` 384 <div 385 class="${Ae({"form-active-state-color":"active"===e.sms})}"> 386 <pu-icon name="sms-solid" size="2xlarge"></pu-icon> 387 </div> 388 `:X} 389 ${o?W` 390 <div 391 class="${Ae({"form-active-state-color":"active"===e.email})}"> 392 <pu-icon name="email-solid-rounded" size="2xlarge"></pu-icon> 393 </div> 394 `:X} 395 </div> 396 `}renderChannelToggle(e,t,o){const i=Oe(e.id,t);return W` 397 <div class="channel-toggle"> 398 <pu-checkbox 399 class="form-toggle-button" 400 asToggle 401 size="small" 402 name=${i} 403 .checked=${o} 404 ?disabled=${this.isProcessing} 405 @pu-change=${o=>this.handleToggleChange(e.id,t,o)}> 406 </pu-checkbox> 407 </div> 408 `}renderChannelTogglePlaceholder(){return W` 409 <div class="channel-toggle channel-toggle--hidden"> 410 <pu-checkbox class="form-toggle-button" asToggle size="small" disabled style="pointer-events: none;"> 411 </pu-checkbox> 412 </div> 413 `}renderSimilarArtistsOptin(){return this.config.showSimilarArtistsOptin?W` 414 <div class="similar-artist-opt-in"> 415 <div class="optin-row"> 416 <pu-text class="optin-name primary-text-color" variant="bodySm" fontweight="bold" textAlign="start"> 417 ${this.config.copy.universalRecommends} 418 </pu-text> 419 <div class="channel-toggles"> 420 ${this.renderChannelTogglePlaceholder()} 421 <div class="channel-toggle"> 422 <pu-checkbox 423 class="form-toggle-button" 424 asToggle 425 size="small" 426 name=${De()} 427 .checked=${Boolean(this.config.state.similarArtists)} 428 ?disabled=${this.isProcessing} 429 @pu-change=${e=>this.handleSimilarArtistsToggle(e)}> 430 </pu-checkbox> 431 </div> 432 </div> 433 </div> 434 </div> 435 `:X}renderOptinRow(e){const t=this.config.state.selections[e.id]??{},o=e.channels.includes("sms"),i=e.channels.includes("email");return W` 436 <div class="optin-row"> 437 <pu-text class="optin-name primary-text-color" variant="bodySm" fontweight="bold" textAlign="start"> 438 ${e.name} 439 </pu-text> 440 <div class="channel-toggles"> 441 ${o?this.renderChannelToggle(e,"sms",Boolean(t.sms)):this.renderChannelTogglePlaceholder()} 442 ${i?this.renderChannelToggle(e,"email",Boolean(t.email)):this.renderChannelTogglePlaceholder()} 443 </div> 444 </div> 445 `}renderInlineAddresses(){const e=this.config.state.inlineAddresses;return void 0!==e.email||void 0!==e.sms?W` 446 <div class="inline-addresses"> 447 ${void 0!==e.email?W` 448 <pu-input 449 class="input-field" 450 part="input-field" 451 size="large" 452 name="email" 453 type="email" 454 pattern=${Ye} 455 placeholder="Add email for opt-ins" 456 .value=${e.email??""} 457 @pu-input=${this.clearFieldValidity} 458 @pu-blur=${e=>this.handleAddressChange("email",e)} 459 ?disabled=${this.isProcessing}></pu-input> 460 `:X} 461 ${e.sms?W` 462 <pu-phone-input 463 class="input-field" 464 part="input-field" 465 size="large" 466 name="mobilephone" 467 .iso=${this.resolvedDialIso} 468 .phoneValue=${e.sms.number??""} 469 pattern=${oi} 470 placeholder="Add mobile number for SMS updates" 471 ?disabled=${this.isProcessing} 472 dialCodeDisabled 473 @pu-input=${this.clearFieldValidity} 474 @pu-change-dial-code=${e=>{const{iso:t}=e.detail;xi({iso:t},"user"),this.resolvedDialIso=t,this.requestUpdate()}} 475 @pu-blur=${e=>this.handleAddressChange("sms",e)}> 476 </pu-phone-input> 477 `:X} 478 </div> 479 `:X}renderModal(){const e=this.config.modalRequest;if(!e)return X;const t="sms"===e.channel?"Mobile number required":"Email required";return W` 480 <sf-dialog open .heading=${t} @sf-dialog-close=${this.handleModalClose}> 481 <div class="modal-form" role="form"> 482 <div class="field-group"> 483 ${"sms"===e.channel?W` 484 <pu-phone-input 485 class="input-field" 486 part="input-field" 487 size="large" 488 .iso=${this.resolvedDialIso} 489 .phoneValue=${this.modalInputValue} 490 pattern=${oi} 491 .placeholder=${this.config.copy.smsPlaceholder??"Your number"} 492 .required=${!0} 493 ?disabled=${this.isProcessing} 494 dialCodeDisabled 495 @pu-input=${this.handleModalInput} 496 @pu-change-dial-code=${e=>{const{iso:t}=e.detail;xi({iso:t},"user"),this.resolvedDialIso=t,this.requestUpdate()}} 497 @pu-blur=${this.handleModalPhoneBlur} 498 @keydown=${this.handleModalKeydown}> 499 </pu-phone-input> 500 `:W` 501 <pu-input 502 class="input-field" 503 part="input-field" 504 size="large" 505 name="email" 506 type="email" 507 pattern=${Ye} 508 placeholder="[email protected]" 509 .value=${this.modalInputValue} 510 @pu-input=${this.handleModalInput} 511 @keydown=${this.handleModalKeydown} 512 required 513 ?disabled=${this.isProcessing}></pu-input> 514 `} 515 <pu-button 516 class="form-primary-button primary-button" 517 part="add-button" 518 size="large" 519 type="button" 520 @click=${this.emitModalSubmit} 521 ?disabled=${this.isProcessing||!this.isModalInputValid()} 522 fullWidth> 523 <pu-text as="span" variant="bodySm" fontweight="bold" transform="uppercase"> 524 Add ${"sms"===e.channel?"Mobile Number":"Email Address"} 525 </pu-text> 526 </pu-button> 527 <pu-text 528 class="form-secondary-text-color" 529 part="modal-description" 530 as="p" 531 variant="bodyXs" 532 textAlign="center" 533 >Enter your ${"sms"===e.channel?"mobile number":"address"} for 534 ${"sms"===e.channel?"SMS":"email"} updates.</pu-text 535 > 536 </div> 537 <div class="modal-actions"> 538 <pu-button 539 class="secondary-button form-secondary-text-color" 540 part="cancel-button" 541 variant="plain-underline" 542 type="button" 543 @click=${this.handleModalClose} 544 ?disabled=${this.isProcessing} 545 fullWidth> 546 <pu-text as="span" variant="bodyXs" textAlign="center">Cancel</pu-text> 547 </pu-button> 548 </div> 549 </div> 550 </sf-dialog> 551 `}render(){const{copy:e,optins:t,submitDisabled:o,country:i,legalTerms:a}=this.config;return W` 552 <div class="optins-form" part="optins-form"> 553 <div class="form-header"> 554 <pu-text 555 class="primary-text-color" 556 part="call-to-action" 557 as="p" 558 variant="heading3xl" 559 fontweight="bold" 560 lineHeight="compact" 561 textAlign="center"> 562 ${e.primaryCallToAction} 563 </pu-text> 564 ${e.secondaryCallToAction?W` 565 <pu-text 566 class="primary-text-color" 567 part="secondary-call-to-action" 568 as="p" 569 variant="bodyLg" 570 textAlign="center"> 571 ${e.secondaryCallToAction} 572 </pu-text> 573 `:X} 574 </div> 575 <form @submit=${this.handleSubmit}> 576 <div class="form-content"> 577 ${this.renderBanner()} ${this.renderChannelStatusIndicators()} 578 <div class="optins-list">${t.map((e=>this.renderOptinRow(e)))}</div> 579 ${this.renderSimilarArtistsOptin()} ${this.renderInlineAddresses()} 580 <pu-button 581 class="primary-button form-primary-button" 582 part="primary-button" 583 type="submit" 584 size="large" 585 ?disabled=${o||this.isProcessing} 586 fullWidth> 587 ${e.submitButton} 588 </pu-button> 589 <div class="skip-container"> 590 <pu-button 591 class="skip-link form-primary-text-color" 592 part="skip-link" 593 type="button" 594 variant="plain-underline" 595 @click=${this.handleSkipClick} 596 ?disabled=${this.isProcessing}> 597 <pu-text as="span" variant="bodyXs">${e.skipLabel}</pu-text> 598 </pu-button> 599 </div> 600 <div class="compliance-content"> 601 <legal-terms-display 602 .config=${a} 603 .country=${i??""} 604 .channel=${this.getEffectiveChannel()} 605 ?visible=${!o}> 606 </legal-terms-display> 607 <pu-link-group 608 class="privacy-links form-secondary-text-color" 609 part="privacy-links" 610 exportparts="link-group" 611 justify="center"> 612 <pu-link url=${a.privacyUrl} target="_blank" underline> 613 <pu-text as="span" variant="bodyXs">Privacy Policy</pu-text> 614 </pu-link> 615 | 616 <pu-link url=${a.termsUrl} target="_blank" underline> 617 <pu-text part="terms-text" exportparts="p body" as="span" variant="bodyXs"> 618 Terms & Conditions 619 </pu-text> 620 </pu-link> 621 </pu-link-group> 622 </div> 623 </div> 624 <input type="hidden" name="country" value=${vi(i)} /> 625 </form> 626 ${this.renderModal()} 627 </div> 628 `}}Li.styles=[Ai,Ti,Di],Li.dependencies={"sf-dialog":Ii},i([ve({attribute:!1})],Li.prototype,"config",void 0),i([ve({attribute:!1})],Li.prototype,"formService",void 0),i([ye()],Li.prototype,"modalInputValue",void 0),i([ye()],Li.prototype,"isProcessing",void 0),i([ye()],Li.prototype,"bannerMessage",void 0),i([ye()],Li.prototype,"resolvedDialIso",void 0),Li.define("optins-form");const Ni=new WeakMap,Bi=new WeakMap,Ri=new WeakMap,Vi=new WeakSet,Hi=new WeakMap;
628class ji{constructor(e,t){this.handleFormData=e=>{const t=this.options.disabled(this.host),o=this.options.name(this.host),i=this.options.value(this.host),a="pu-button"===this.host.tagName.toLowerCase();this.host.isConnected&&!t&&!a&&"string"==typeof o&&o.length>0&&void 0!==i&&(Array.isArray(i)?i.forEach((t=>{e.formData.append(o,t.toString())})):e.formData.append(o,i.toString()))},this.handleFormSubmit=e=>{const t=this.options.disabled(this.host),o=this.options.reportValidity;this.form&&!this.form.noValidate&&Ni.get(this.form)?.forEach((e=>{this.setUserInteracted(e,!0)})),!this.form||this.form.noValidate||t||o(this.host)||(e.preventDefault(),e.stopImmediatePropagation())},this.handleInteraction=e=>{const t=Hi.get(this.host);t.includes(e.type)||t.push(e.type),t.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.checkFormValidity=()=>{if(this.form&&!this.form.noValidate){const e=this.form.querySelectorAll("*");for(const t of e)if("function"==typeof t.checkValidity&&!t.checkValidity())return!1}return!0},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const e=this.form.querySelectorAll("*");for(const t of e)if("function"==typeof t.reportValidity&&!t.reportValidity())return!1}return!0},(this.host=e).addController(this),this.options={form:e=>{const t=e.form;if(t){const o=e.getRootNode().querySelector(`#${t}`);if(o)return o}return e.closest("form")},name:e=>e.name,value:e=>e.value,defaultValue:e=>e.defaultValue,disabled:e=>e.disabled??!1,reportValidity:e=>"function"!=typeof e.reportValidity||e.reportValidity(),checkValidity:e=>"function"!=typeof e.checkValidity||e.checkValidity(),setValue:(e,t)=>e.value=t,assumeInteractionOn:["pu-input"],...t}}hostConnected(){const e=this.options.form(this.host);e&&this.attachForm(e),Hi.set(this.host,[]),this.options.assumeInteractionOn.forEach((e=>{this.host.addEventListener(e,this.handleInteraction)}))}hostDisconnected(){this.detachForm(),Hi.delete(this.host),this.options.assumeInteractionOn.forEach((e=>{this.host.removeEventListener(e,this.handleInteraction)}))}hostUpdated(){const e=this.options.form(this.host);e||this.detachForm(),e&&this.form!==e&&(this.detachForm(),this.attachForm(e)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(e){e?(this.form=e,Ni.has(this.form)?Ni.get(this.form).add(this.host):Ni.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),Bi.has(this.form)||(Bi.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),Ri.has(this.form)||(Ri.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())):this.form=void 0}detachForm(){if(!this.form)return;const e=Ni.get(this.form);e&&(e.delete(this.host),e.size<=0&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),Bi.has(this.form)&&(this.form.reportValidity=Bi.get(this.form),Bi.delete(this.form)),Ri.has(this.form)&&(this.form.checkValidity=Ri.get(this.form),Ri.delete(this.form)),this.form=void 0))}setUserInteracted(e,t){t?Vi.add(e):Vi.delete(e),e.requestUpdate()}doAction(e,t){if(this.form){const o=document.createElement("button");o.type=e,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",t&&(o.name=t.name,o.value=t.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach((e=>{t.hasAttribute(e)&&o.setAttribute(e,t.getAttribute(e))}))),this.form.append(o),o.click(),o.remove()}}getForm(){return this.form??null}submit(e){this.doAction("submit",e)}setValidity(e){const t=this.host,o=Boolean(Vi.has(t)),i=Boolean(t.required);t.toggleAttribute("data-required",i),t.toggleAttribute("data-optional",!i),t.toggleAttribute("data-invalid",!e),t.toggleAttribute("data-valid",e),t.toggleAttribute("data-user-invalid",!e&&o),t.toggleAttribute("data-user-valid",e&&o)}updateValidity(){const e=this.host;this.setValidity(e.validity.valid)}emitInvalidEvent(e){const t=new CustomEvent("pu-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});e||t.preventDefault(),this.host.dispatchEvent(t)||e?.preventDefault()}}const Ui=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1});function Gi(e){const t=new FormData(e),o={};return t.forEach(((e,t)=>{if(Reflect.has(o,t)){const i=o[t];Array.isArray(i)?i.push(e):o[t]=[o[t],e]}else o[t]=e})),o}Object.freeze({...Ui,valid:!1,valueMissing:!0}),Object.freeze({...Ui,valid:!1,customError:!0});const qi=d` 629 .primary-form { 630 display: flex; 631 flex-direction: column; 632 gap: 0.5rem; 633 } 634 635 .form-content { 636 display: flex; 637 flex-direction: column; 638 gap: 1.5rem; 639 } 640 641 .country-select { 642 --pu-select-option-color-foreground: var(--pu-form-primary-foreground-color, var(--form-primary-foreground)); 643 --pu-select-panel-color-background: rgb( 644 from var(--pu-form-background-color, var(--form-background)) r g b / 0.9 645 ); 646 --pu-select-option-color-background: var(--pu-form-primary-accent-color, var(--form-primary-accent)); 647 --pu-select-option-color-foreground-selected: var(--pu-form-background-color, var(--form-background)); 648 --pu-select-option-color-background-hover: var(--pu-form-secondary-accent-color, var(--form-secondary-accent)); 649 --pu-select-option-color-foreground-hover: var(--pu-form-background-color, var(--form-background)); 650 } 651 652 .country-select::part(listbox) { 653 --pu-input-border-radius: 0.25em; 654 backdrop-filter: blur(10px); 655 } 656 657 .country-select ::part(option) { 658 border-radius: 0.25em; 659 margin: 0.0625em 0.125em; 660 } 661`,Ki=d` 662 .channel-selector__layout { 663 display: flex; 664 justify-content: center; 665 gap: 0; 666 border: 0.0625em solid var(--pu-form-primary-accent-color, var(--form-primary-accent)); 667 border-radius: 0.5em; 668 margin: 0 auto; 669 width: fit-content; 670 overflow: hidden; 671 } 672 673 .channel-selector__toggle-button.active { 674 --pu-icon-color-foreground: var(--pu-form-background-color, var(--form-background)); 675 --pu-icon-color-background: var(--pu-form-primary-accent-color, var(--form-primary-accent)); 676 --pu-icon-opacity-background: 1; 677 } 678 679 .channel-selector__toggle-button:not(.active) { 680 --pu-icon-color-foreground: var(--pu-form-secondary-accent-color, var(--form-secondary-accent)); 681 --pu-icon-color-background: var(--pu-form-background-color, var(--form-background)); 682 --pu-icon-opacity-background: 1; 683 } 684 685 .channel-selector__email-button, 686 .channel-selector__sms-button, 687 .channel-selector__both-button { 688 --pu-icon-space-padding: 0.25rem 1rem; 689 height: 100%; 690 } 691 692 .channel-selector__both-button { 693 color: var(--pu-form-secondary-accent-color, var(--form-secondary-accent)); 694 background-color: var(--pu-form-background-color, var(--form-background)); 695 border: none; 696 cursor: pointer; 697 font-size: 0.875rem; 698 font-weight: 600; 699 padding-left: 1rem; 700 padding-right: 1rem; 701 } 702 703 .channel-selector__toggle-button.active .channel-selector__both-button { 704 color: var(--pu-form-background-color, var(--form-background)); 705 background-color: var(--pu-form-primary-accent-color, var(--form-primary-accent)); 706 } 707 708 .channel-selector__toggle-button { 709 cursor: pointer; 710 } 711`,Wi=d` 712 .phone-row { 713 display: flex; 714 align-items: center; 715 gap: 0.5rem; 716 } 717 718 .dial-select-wrap { 719 position: relative; 720 display: inline-flex; 721 align-items: center; 722 justify-content: center; 723 width: 3rem; 724 height: 2.5rem; 725 border: 1px solid var(--pu-color-neutral-200, #e4e7ec); 726 border-radius: 0.5rem; 727 background: var(--pu-color-neutral-50, #f9fafb); 728 overflow: hidden; 729 } 730 731 .dial-select-native { 732 position: absolute; 733 inset: 0; 734 opacity: 0; 735 cursor: pointer; 736 } 737 738 .dial-flag { 739 width: 1.5rem; 740 height: 1.5rem; 741 object-fit: cover; 742 border-radius: 0.25rem; 743 } 744 745 .dial-placeholder { 746 font-size: 1rem; 747 } 748`;class Zi extends _i{constructor(){super(...arguments),this.selectedChannel="email",this.formData={country:""},this.dialState=$i(),this.canSubmit=!1,this.isProcessing=!1,this.bannerMessage=null}static render(e){return W`<primary-form 749 .config=${e} 750 exportparts="primary-form, call-to-action, field-group, primary-button, primary-button-label, input-field, privacy-terms, link-group"></primary-form>`}handleProcessingState(e){this.isProcessing="processing"===e.status,"error"===e.status&&(this.bannerMessage=e.error??this.formService?.getValidationErrorMessage()??tt.apiFailure),"success"!==e.status&&"idle"!==e.status||(this.bannerMessage=null)}attachProcessingListener(){this.formService&&(this.detachProcessingListener?.(),this.detachProcessingListener=this.formService.onStepProcessingChange("primary",(e=>this.handleProcessingState(e))))}requestFormService(){this.dispatchEvent(new CustomEvent(si,{bubbles:!0,composed:!0,detail:{resolve:e=>{this.formService=e,this.attachProcessingListener()}}}))}getSlotsForCurrentCountry(){return this.config?.config?Re(this.config.config,this.getFieldValue("country"),this.config.smsValidCountries):{}}syncChannelSelection(){if(!this.config?.config)return;const e=this.getSlotsForCurrentCountry(),t=Ve(this.formData.deliveryMethod,e,this.config.config.channelPriority);this.selectedChannel=t,this.formData.deliveryMethod=t}getFieldValue(e){return this.formData[e]||""}setDialState(e,t){const o=Si(e),i=o?.iso2??"ZZ",a=o?.dialCode??"+";xi({iso:i,code:a},t),this.dialState=$i(),this.formData.mobilephone_country_code=a}ensureDialStateForSms(){if("ZZ"!==this.dialState.iso)return;const e=this.getFieldValue("country");e&&this.setDialState(e,"country")}connectedCallback(){super.connectedCallback(),this.formService||this.requestFormService(),this.config?.config&&this.syncChannelSelection(),this.attachProcessingListener()}disconnectedCallback(){super.disconnectedCallback(),this.detachProcessingListener?.(),this.detachProcessingListener=void 0}willUpdate(e){super.willUpdate(e),e.has("config")&&this.config?.config&&this.syncChannelSelection(),this.dialState=$i()}updated(e){super.updated(e),!e.has("selectedChannel")||"sms"!==this.selectedChannel&&"both"!==this.selectedChannel||this.ensureDialStateForSms()}localPrimaryReadiness(e){const t=[],o=e.country?.trim(),i=e.email?.trim(),a=e.mobilephone?.trim(),s=e.postalCode?.trim(),r
750=e.deliveryMethod??"email";if(o||t.push("country_required"),this.isPostalCodeEnabled()&&o&&s){nt(s,o).message&&t.push("postal_code_invalid")}const n="sms"===r||"both"===r;if(("email"===r||"both"===r)&&!i&&t.push("email_required"),n&&!a)t.push("phone_required");else if(n&&a){ii(a,o||this.dialState.iso)&&t.push("phone_invalid")}return{valid:0===t.length,reasons:t}}evaluateReadiness(){const e=this.getFieldValue("country"),t=this.getSlotsForCurrentCountry(),o=Boolean(e.trim()&&!t.email&&!t.sms),i={country:e,email:this.getFieldValue("email"),mobilephone:this.getFieldValue("mobilephone"),postalCode:this.getFieldValue("postalCode"),postalCodeEnabled:this.isPostalCodeEnabled(),deliveryMethod:this.formData.deliveryMethod||this.selectedChannel},a=this.formService?.getFormReadiness("primary",i)??this.localPrimaryReadiness(i);this.canSubmit=a.valid&&!o}saveCurrentFormData(){if(!this.formEl)return;const e=Gi(this.formEl);this.formData.country=e.country||"",this.formData.email=e.email||"",this.formData.mobilephone=e.mobilephone||e.phone||"",this.formData.mobilephone_country_code=e.mobilephone_country_code||"",this.formData.postalCode=e.postalCode||"",this.formData.deliveryMethod=e.deliveryMethod||this.selectedChannel,this.evaluateReadiness()}handleCountryChange(e){const t=e?.detail?.value,o=e.target,i=t??o?.value??"";this.formData.country=i,i?this.setDialState(i.toUpperCase(),"country"):this.setDialState("ZZ","default"),this.syncChannelSelection(),this.requestUpdate(),this.evaluateReadiness()}handleChannelClick(e){this.saveCurrentFormData(),this.selectedChannel=e,this.formData.deliveryMethod=e,"sms"!==e&&"both"!==e||this.ensureDialStateForSms(),this.evaluateReadiness()}handleFieldInput(e){const t=e.target,o=t?.name;if(!o)return;const i=t?.value??"";this.formService?.clearValidationError(),t&&"function"==typeof t.setCustomValidity&&t.setCustomValidity(""),"email"===o?this.formData.email=i:"mobilephone"===o?this.formData.mobilephone=i:"postalCode"===o&&(this.formData.postalCode=i),this.evaluateReadiness()}handlePhoneBlur(e){const t=e.target;if(!t)return;const o=t.phoneValue??t.value??"",i=qe(o,this.dialState.code);i!==o&&("phoneValue"in t?t.phoneValue=i:"value"in t&&(t.value=i)),this.formData.mobilephone=i,this.evaluateReadiness()}async handleSubmit(e){e.preventDefault();const t=e.target;if(this.saveCurrentFormData(),!(this.formService?.validateForm(t)??t.checkValidity()))return this.bannerMessage=this.formService?.getValidationErrorMessage()??tt.missingRequired,void t.reportValidity?.();if(this.bannerMessage=null,this.formService)await this.formService.submitPrimary(t);else{const e=new FormData(t);this.dispatchEvent(new CustomEvent("primary-form-submit",{detail:{formData:e},bubbles:!0,composed:!0}))}}renderChannelButton(e){const t=()=>this.handleChannelClick(e);switch(e){case"email":return W` 751 <pu-button-icon 752 class="channel-selector__email-button" 753 name="email-solid-rounded" 754 variant="primary" 755 iconsize="3xlarge" 756 label="Email" 757 @click=${t}></pu-button-icon> 758 `;case"sms":return W` 759 <pu-button-icon 760 class="channel-selector__sms-button" 761 name="sms-solid" 762 variant="primary" 763 iconsize="3xlarge" 764 label="SMS" 765 @click=${t}></pu-button-icon> 766 `;case"both":return W` 767 <button type="button" class="channel-selector__both-button" @click=${t}>Both</button> 768 `}}getBannerMessage(){if(this.bannerMessage)return this.bannerMessage;const e=this.getFieldValue("country"),t=this.getSlotsForCurrentCountry();return!e.trim()||t.email||t.sms?null:tt.noSignUpOptionsForCountry}renderBanner(){const e=this.getBannerMessage();return e?W` 769 <div class="form-banner" role="alert"> 770 <span>${e}</span> 771 <button type="button" class="banner-close" @click=${this.clearBanner}>Dismiss</button> 772 </div> 773 `:null}clearBanner(){this.bannerMessage=null,this.formService?.clearValidationError()}isFormDisabled(){return this.isProcessing}isPostalCodeEnabled(){return!0===this.config.config.additionalFields?.postalCode}getAvailableChannels(){const e=this.getSlotsForCurrentCountry();return Be(e)?"sms"===this.config.config.channelPriority?["sms","email","both"]:["email","sms","both"]:e.email?["email"]:["sms"]}render(){const{copy:e,legalTerms:t}=this.config,o=this.getSlotsForCurrentCountry(),i=this.getAvailableChannels(),a=Be(o),s=o.email&&("email"===this.selectedChannel||"both"===this.selectedChannel||!o.sms),r=o.sms&&("sms"===this.selectedChannel||"both"===this.selectedChannel||!o.email),n=this.getFieldValue("country"),l=this.isPostalCodeEnabled(),d=this.isFormDisabled()||!n;return W` 774 <div class="primary-form" part="primary-form"> 775 ${this.renderBanner()} 776 <form @submit=${this.handleSubmit}> 777 <div class="form-content"> 778 <pu-text 779 class="call-to-action primary-text-color" 780 part="call-to-action" 781 as="p" 782 variant="bodyMd" 783 fontweight="bold" 784 textAlign="center" 785 lineHeight="compact"> 786 ${e.formCallToAction} 787 </pu-text> 788 ${a?W` 789 <div class="channel-selector" part="channel-selector"> 790 <div class="channel-selector__layout" part="channel-selector-layout"> 791 ${i.map((e=>W` 792 <div 793 class=${Ae({"channel-selector__toggle-button":!0,active:e===this.selectedChannel})}> 794 ${this.renderChannelButton(e)} 795 </div> 796 `))} 797 </div> 798 </div> 799 `:""} 800 801 <!-- Store selected delivery method (used in opt-in-form) ---> 802 <input type="hidden" name="deliveryMethod" value=${this.selectedChannel} /> 803 804 <div class="field-group" part="field-group"> 805 <pu-select 806 class="input-field country-select" 807 part="input-field country-select" 808 name="country" 809 size="large" 810 placement="bottom" 811 positionlabel="above" 812 distance="4" 813 placeholder=${e.countryPlaceholder} 814 .value=${this.getFieldValue("country")} 815 @pu-change=${this.handleCountryChange} 816 required 817 ?disabled=${this.isFormDisabled()}> 818 ${Ci.filter((e=>"ZZ"!==e.iso2)).map((e=>W` <pu-option value=${e.iso2}>${e.name}</pu-option> `))} 819 </pu-select> 820 ${s?W` 821 <pu-input 822 class="input-field" 823 part="input-field" 824 type="email" 825 name="email" 826 pattern=${Ye} 827 size="large" 828 placeholder=${e.emailPlaceholder} 829 .value=${this.getFieldValue("email")} 830 @pu-input=${this.handleFieldInput} 831 required 832 ?disabled=${this.isFormDisabled()}></pu-input> 833 `:""} 834 ${r?W` 835 <pu-phone-input 836 class="input-field" 837 part="input-field" 838 name="mobilephone" 839 size="large" 840 .iso=${this.dialState.iso} 841 .phoneValue=${this.getFieldValue("mobilephone")} 842 pattern=${oi} 843 .placeholder=${e.smsPlaceholder} 844 .required=${!0} 845 ?disabled=${this.isFormDisabled()} 846 dialCodeDisabled 847 @pu-change-dial-code=${e=>{const{iso:t}=e.detail;this.setDialState(t,"user"),this.requestUpdate()}} 848 @pu-input=${this.handleFieldInput} 849 @pu-blur=${this.handlePhoneBlur}> 850 </pu-phone-input> 851 `:""} 852 ${l?W` 853 <pu-input 854 class="input-field" 855 part="input-field" 856 type="text" 857 name="postalCode" 858 size="large" 859 placeholder=${e.postalCodePlaceholder??"ZIP/Postcode"} 860 .value=${this.getFieldValue("postalCode")} 861 @pu-input=${this.handleFieldInput} 862 ?disabled=${d}></pu-input> 863 `:""} 864 865 <pu-button 866 class="primary-button form-primary-button" 867 part="primary-button" 868 type="submit" 869 size="large" 870 ?disabled=${this.isFormDisabled()||!this.canSubmit} 871 fullWidth> 872 <pu-text 873 class="primary-button-label" 874 part="primary-button-label" 875 as="span" 876 variant="bodySm" 877 fontweight="bold" 878 textAlign="center" 879 transform="uppercase"> 880 ${e.submitButton} 881 </pu-text> 882 </pu-button> 883 </div> 884 <div class="compliance-content"> 885 <legal-terms-display 886 part="legal-terms" 887 exportparts="terms-text,terms-text,p,body" 888 .config=${t} 889 .country=${n} 890 .channel=${this.selectedChannel} 891 ?visible=${this.canSubmit}> 892 </legal-terms-display> 893 <pu-link-group 894 class="privacy-links form-secondary-text-color" 895 part="privacy-links" 896 exportparts="link-group" 897 justify="center"> 898 <pu-link url=${t.privacyUrl} target="_blank" underline> 899 <pu-text as="span" variant="bodyXs">Privacy Policy</pu-text> 900 </pu-link> 901 | 902 <pu-link url=${t.termsUrl} target="_blank" underline> 903 <pu-text part="terms-text" exportparts="p body" as="span" variant="bodyXs"> 904 Terms & Conditions 905 </pu-text> 906 </pu-link> 907 </pu-link-group> 908 </div> 909 </div> 910 </form> 911 </div> 912 `}}Zi.styles=[Ai,Ti,qi,Ki,Wi],Zi.dependencies={},i([ve({attribute:!1})],Zi.prototype,"config",void 0),i([ve({attribute:!1})],Zi.prototype,"formService",void 0),i([ye()],Zi.prototype,"selectedChannel",void 0),i([ye()],Zi.prototype,"formData",void 0),i([ye()],Zi.prototype,"dialState",void 0),i([ye()],Zi.prototype,"canSubmit",void 0),i([ye()],Zi.prototype,"isProcessing",void 0),i([ye()],Zi.prototype,"bannerMessage",void 0),i([xe("form")],Zi.prototype,"formEl",void 0),Zi.define("primary-form");const Xi="push-recaptcha-script";let Yi=null;class Ji{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e}setSiteKey(e){this.siteKey!==e&&(this.siteKey=e,this.widgetId&&window.grecaptcha&&(window.grecaptcha.reset(this.widgetId),this.widgetId=void 0))}attachHost(e){e&&e!==this.host&&(this.host=e,this.widgetId&&(window.grecaptcha&&"number"==typeof this.widgetId&&window.grecaptcha.reset(this.widgetId),this.widgetId=void 0))}async execute(e){if(!this.siteKey)throw new Error("reCAPTCHA site key not configured.");
912if(!this.host)throw new Error("reCAPTCHA host element missing.");if(this.pendingStep)throw new Error("reCAPTCHA execution already in progress.");return await this.ensureWidget(),this.pendingStep=e,new Promise(((e,t)=>{this.resolveToken=e,this.rejectToken=t;try{window.grecaptcha?.execute(this.widgetId)}catch(e){this.rejectAndCleanup(e)}}))}cancel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Error("Cancelled");this.pendingStep&&this.rejectAndCleanup(e)}reset(){"number"==typeof this.widgetId&&window.grecaptcha?.reset(this.widgetId),this.pendingStep?this.rejectAndCleanup(new Error("Reset")):(this.pendingStep=void 0,this.resolveToken=void 0,this.rejectToken=void 0)}clearWidget(){"number"==typeof this.widgetId&&window.grecaptcha?.reset(this.widgetId),this.host&&(this.host.innerHTML=""),this.widgetId=void 0,this.pendingStep=void 0,this.resolveToken=void 0,this.rejectToken=void 0}destroy(){this.cancel(new Error("Destroyed")),"number"==typeof this.widgetId&&window.grecaptcha?.reset(this.widgetId),this.widgetId=void 0,this.host=void 0}async ensureWidget(){if("number"==typeof this.widgetId)return;if(await async function(e){if("undefined"==typeof window)return;if(window.grecaptcha?.render)return;Yi||(Yi=new Promise(((t,o)=>{const i=e.scriptId??Xi,a=document.getElementById(i);if(a)return a.addEventListener("load",(()=>t()),{once:!0}),void a.addEventListener("error",(e=>o(e)),{once:!0});const s=document.createElement("script");s.id=i;const r=e.language?`&hl=${e.language}`:"";s.src=`https://www.google.com/recaptcha/api.js?render=explicit${r}`,s.async=!0,s.defer=!0,s.onload=()=>{window.grecaptcha?.ready?window.grecaptcha.ready((()=>t())):t()},s.onerror=e=>o(e),document.head.appendChild(s)})).catch((e=>{throw Yi=null,e})));return Yi}(this.options),!window.grecaptcha?.render)throw new Error("reCAPTCHA script failed to initialise.");if(!this.host)throw new Error("reCAPTCHA host element missing.");if(!this.siteKey)throw new Error("reCAPTCHA site key not configured.");const e={sitekey:this.siteKey,size:"invisible",callback:e=>this.handleSuccess(e),"error-callback":()=>this.handleError("Captcha error"),"expired-callback":()=>this.handleError("Captcha expired")};this.widgetId=window.grecaptcha.render(this.host,e)}handleSuccess(e){if(!this.pendingStep)return;const t={token:e,stepId:this.pendingStep};this.resolveToken?.(t),this.cleanupAfterExecution()}handleError(e){"number"==typeof this.widgetId&&window.grecaptcha?.reset(this.widgetId),this.rejectAndCleanup(new Error(e))}rejectAndCleanup(e){this.rejectToken&&this.rejectToken(e),this.cleanupAfterExecution()}cleanupAfterExecution(){"number"==typeof this.widgetId&&window.grecaptcha?.reset(this.widgetId),this.pendingStep=void 0,this.resolveToken=void 0,this.rejectToken=void 0}}class Qi extends ze{constructor(e){super(e,{sessionId:"",currentFormData:{},completedForms:{},optinsState:Qi.createDefaultOptinsState(),isDirty:!1}),this.debugLogPrefix="[SessionController]"}hostConnected(){super.hostConnected()}hostDisconnected(){super.hostDisconnected()}init(){const e=this.generateSessionId();this.setState({sessionId:e,completedForms:{},optinsState:Qi.createDefaultOptinsState(),isDirty:!1}),this.logState("init")}saveFormData(e,t){const o=this.serializeFormData(t);this.setState({completedForms:{...this.state.completedForms,[e]:o},isDirty:!0}),this.logState(`saveFormData(${e})`)}updateCurrentFormData(e){this.setState({currentFormData:e,isDirty:!0}),this.logState("updateCurrentFormData")}getFormData(e){const t=this.state.completedForms[e];if(t)return this.deserializeFormData(t)}clear(){this.setState({sessionId:"",currentFormData:{},completedForms:{},optinsState:Qi.createDefaultOptinsState(),isDirty:!1}),this.logState("clear")}serializeFormData(e){const t={};return e.forEach(((e,o)=>{t[o]=e})),t}deserializeFormData(e){const t=new FormData;for(const[o,i]of Object.entries(e))t.append(o,i);return t}generateSessionId(){return`${Date.now()}-${Math.random().toString(36).substring(2,9)}`}getOptinsState(){return this.state.optinsState}saveOptinsState(e){this.setState({optinsState:e,isDirty:!0}),this.logState("saveOptinsState")}static createDefaultOptinsState(){return{selections:{}
912,inlineAddresses:{},indicators:{email:"inactive",sms:"inactive"},similarArtists:!1}}logState(e){if(!(!0===this.host?.debug))return;const t={sessionId:this.state.sessionId,completedForms:{...this.state.completedForms},optinsState:{...this.state.optinsState},isDirty:this.state.isDirty};console.log(`${this.debugLogPrefix} ${e}`,t)}}class ea extends ze{constructor(e){super(e,{steps:[],currentStepIndex:0,canProgress:!1,isLastStep:!1})}hostDisconnected(){this.setState({steps:[],currentStepIndex:0,canProgress:!1,isLastStep:!1})}registerSteps(e){const t=this.currentStepId,o=e.filter((e=>!e.shouldRender||e.shouldRender(this.getContext())));let i=0;if(t){const e=o.findIndex((e=>e.id===t));i=e>=0?e:0}const a=o.length>1&&i<o.length-1,s=!(o.length>0)||i===o.length-1;this.setState({steps:o,currentStepIndex:i,canProgress:a,isLastStep:s})}get currentStep(){return this.state.steps[this.state.currentStepIndex]||null}get currentStepId(){return this.currentStep?.id||null}get currentIndex(){return this.state.currentStepIndex}get totalSteps(){return this.state.steps.length}canAdvance(){return this.state.currentStepIndex<this.state.steps.length-1}isLastStep(){return this.state.currentStepIndex===this.state.steps.length-1}next(){if(!this.canAdvance())return!1;const e=this.state.currentStepIndex+1;return this.setState({currentStepIndex:e,canProgress:e<this.state.steps.length-1,isLastStep:e===this.state.steps.length-1}),!0}reset(){const e=this.state.steps,t=e.length>1,o=e.length<=1;this.setState({currentStepIndex:0,canProgress:t,isLastStep:o})}getContext(){const e=this.state.currentStepIndex-1,t=e>=0?this.state.steps[e]?.id:void 0;return{config:this.host.config,previousStep:t,currentIndex:this.state.currentStepIndex}}}var ta=d` 913 :host { 914 display: block; 915 --field-group-inline-gap: 0.5em; 916 --field-group-block-gap: 0.75em; 917 } 918 919 .supplementary-form { 920 display: flex; 921 flex-direction: column; 922 gap: 1rem; 923 } 924 925 .form-header { 926 display: flex; 927 flex-direction: column; 928 gap: 0.75rem; 929 } 930 931 .form-content { 932 display: flex; 933 flex-direction: column; 934 gap: 1rem; 935 } 936 937 .field-groups { 938 display: flex; 939 flex-direction: column; 940 gap: 1.5rem; 941 } 942 943 .field-group { 944 gap: 0.5em; 945 } 946 947 .field-row.block { 948 display: flex; 949 flex-direction: column; 950 gap: var(--field-group-block-gap); 951 } 952 953 .field-row.inline { 954 display: flex; 955 flex-direction: column; 956 gap: var(--field-group-block-gap); 957 } 958 959 .field-row.inline .input-field { 960 flex: 1 0 100%; 961 width: 100%; 962 } 963 964 .country-badge { 965 padding-left: 0.5em; 966 } 967 968 @media (max-width: 47.99em) { 969 .field-row.inline.inline-mobile { 970 display: flex; 971 align-items: center; 972 flex-direction: row; 973 gap: var(--field-group-block-gap); 974 } 975 976 .field-row.inline.inline-mobile .input-field, 977 .field-row.inline.inline-mobile .country-badge { 978 flex: 0 1 calc(50% - var(--field-group-inline-gap) / 2); 979 width: auto; 980 } 981 } 982 983 @media (min-width: 48em) { 984 .field-row.inline { 985 display: flex; 986 align-items: center; 987 flex-direction: row; 988 gap: var(--field-group-inline-gap); 989 } 990 .field-row.inline .input-field, 991 .field-row.inline .country-badge { 992 flex: 0 1 calc(50% - var(--field-group-inline-gap) / 2); 993 width: auto; 994 } 995 } 996 997 .skip-container { 998 text-align: center; 999 } 1000 1001 .skip-link { 1002 --pu-button-font-weight: 400; 1003 } 1004`;class oa extends _i{constructor(){super(...arguments),this.isProcessing=!1,this.bannerMessage=null,this.formValues={},this.canSubmit=!1}static render(e){return W`<supplementary-form .config=${e}></supplementary-form>`}handleProcessingState(e){this.isProcessing="processing"===e.status,"error"===e.status&&(this.bannerMessage=e.error??this.formService?.getValidationErrorMessage()??it.apiFailure),"success"!==e.status&&"idle"!==e.status||(this.bannerMessage=null)}attachProcessingListener(){this.formService&&(this.detachProcessingListener?.(),this.detachProcessingListener=this.formService.onStepProcessingChange("supplementary",(e=>this.handleProcessingState(e))),this.primaryCountry=this.formService.getFormFieldValue("primary","country"))}requestFormService(){this.dispatchEvent(new CustomEvent(si,{bubbles:!0,composed:!0,detail:{resolve:e=>{this.formService=e,this.attachProcessingListener()}}}))}saveCurrentFormData(){if(!this.formEl)return;const e=Gi(this.formEl);this.formValues={firstName:e.firstName||"",surname:e.surname||"",birthdateDay:e.birthdateDay||"",birthdateMonth:e.birthdateMonth||"",address:e.address||"",address2:e.address2||"",city:e.city||"",state:e.state||"",postalCode:e.postalCode||""},this.evaluateFormState()}evaluateFormState(){const e=this.config?.config?.fieldGroups;if(!e)return void(this.canSubmit=!1);const t=e=>(this.formValues[e]??"").trim(),o=Boolean(e.name),i=t("firstName"),a=t("surname"),s=o&&(i.length>0||a.length>0),r=o&&i.length>0,n=s&&!r,l=Boolean(e.dateOfBirth),d=t("birthdateDay"),c=t("birthdateMonth"),p=l&&(d.length>0||c.length>0),u=l&&this.isValidDobPart(d,1,31),h=l&&this.isValidDobPart(c,1,12),g=l&&u&&h,f=p&&!g,m=this.getConfiguredAddressFields(),b=m.length>0,v=m.map((e=>t(e))),y=b&&v.some((e=>e.length>0)),$=t("postalCode"),x=this.primaryCountry??"",C=m.includes("postalCode"),w=C?nt($,x):{message:""},S=C&&$.length>0&&w.message.length>0,k=o&&r||l&&g||b&&(b&&y&&!S),_=n||f||S;this.canSubmit=Boolean(k&&!_)}connectedCallback(){super.connectedCallback(),this.formService||this.requestFormService(),this.attachProcessingListener(),this.evaluateFormState()}disconnectedCallback(){super.disconnectedCallback(),this.detachProcessingListener?.(),this.detachProcessingListener=void 0}async handleSubmit(e){e.preventDefault();const t=e.target;if(this.saveCurrentFormData(),!this.canSubmit)return void(this.bannerMessage=it.validation);if(this.bannerMessage=null,this.formService)return void await this.formService.submitSupplementary(t);const o=new FormData(t);this.dispatchEvent(new CustomEvent("supplementary-form-submit",{detail:{formData:o},bubbles:!0,composed:!0}))}clearBanner(){this.bannerMessage=null,this.formService?.clearValidationError()}isFormDisabled(){return this.isProcessing}renderBanner(){return this.bannerMessage?W` 1005 <div class="form-banner" role="alert">
1006 <span>${this.bannerMessage}</span> 1007 <button type="button" class="banner-close" @click=${this.clearBanner}>Dismiss</button> 1008 </div> 1009 `:null}renderNameGroup(){if(!this.config.config.fieldGroups.name)return null;const e=this.config.copy.fieldGroups.name;return W` 1010 <section class="field-group"> 1011 <pu-text 1012 class="primary-text-color" 1013 part="field-group-title" 1014 as="span" 1015 variant="bodyXs" 1016 fontweight="semibold"> 1017 ${e.groupTitle} 1018 </pu-text> 1019 <div class="field-row inline"> 1020 <pu-input 1021 class="input-field" 1022 part="input-field" 1023 name="firstName" 1024 placeholder=${e.firstNamePlaceholder} 1025 type="text" 1026 .value=${this.formValues.firstName??""} 1027 @pu-input=${e=>this.handleFieldInput("firstName",e)} 1028 ?disabled=${this.isProcessing}></pu-input> 1029 <pu-input 1030 class="input-field" 1031 part="input-field" 1032 name="surname" 1033 placeholder=${e.lastNamePlaceholder} 1034 type="text" 1035 .value=${this.formValues.surname??""} 1036 @pu-input=${e=>this.handleFieldInput("surname",e)} 1037 ?disabled=${this.isProcessing}></pu-input> 1038 </div> 1039 </section> 1040 `}renderDobGroup(){if(!this.config.config.fieldGroups.dateOfBirth)return null;const e=this.config.copy.fieldGroups.dateOfBirth;return W` 1041 <section class="field-group"> 1042 <pu-text 1043 class="primary-text-color" 1044 part="field-group-title" 1045 as="span" 1046 variant="bodyXs" 1047 fontweight="semibold"> 1048 ${e.groupTitle} 1049 </pu-text> 1050 <div class="field-row inline"> 1051 <pu-input 1052 class="input-field" 1053 part="input-field" 1054 name="birthdateDay" 1055 positionLabel="inset-left" 1056 placeholder=${e.dayPlaceholder} 1057 inputmode="numeric" 1058 pattern="[0-9]*" 1059 .value=${this.formValues.birthdateDay??""} 1060 @pu-input=${e=>this.handleFieldInput("birthdateDay",e)} 1061 ?disabled=${this.isProcessing}> 1062 <pu-text class="form-secondary-text-color" slot="label" as="span" variant="bodyXs">day</pu-text> 1063 </pu-input> 1064 <pu-input 1065 class="input-field" 1066 part="input-field" 1067 name="birthdateMonth" 1068 positionLabel="inset-left" 1069 placeholder=${e.monthPlaceholder} 1070 inputmode="numeric" 1071 pattern="[0-9]*" 1072 .value=${this.formValues.birthdateMonth??""} 1073 @pu-input=${e=>this.handleFieldInput("birthdateMonth",e)} 1074 ?disabled=${this.isProcessing}> 1075 <pu-text class="form-secondary-text-color" slot="label" as="span" variant="bodyXs" 1076 >month</pu-text 1077 > 1078 </pu-input> 1079 </div> 1080 </section> 1081 `}renderAddressGroup(){const e=this.getConfiguredAddressFields();if(0===e.length)return null;const t=this.config.copy.fieldGroups.address,o=this.renderConfiguredAddressFields(e,t);return W` 1082 <section class="field-group"> 1083 <pu-text 1084 class="primary-text-color" 1085 part="field-group-title" 1086 as="span" 1087 variant="bodyXs" 1088 fontweight="semibold"> 1089 ${t.groupTitle} 1090 </pu-text> 1091 <div class="field-row block">${o}</div> 1092 </section> 1093 `}getConfiguredAddressFields(){return this.config?.config?.fieldGroups.address?this.config.config.fields.address??[]:[]}renderConfiguredAddressFields(e,t){const o=[];for(let i=0;i<e.length;i+=1){const a=e[i],s=e[i+1];"state"===a&&"city"===s||"city"===a&&"state"===s?(o.push(W` 1094 <div class="field-row inline"> 1095 ${this.renderAddressInput(a,t)} ${this.renderAddressInput(s,t)} 1096 </div> 1097 `),i+=1):"postalCode"!==a?o.push(this.renderAddressInput(a,t)):o.push(W` 1098 <div class="field-row inline inline-mobile"> 1099 ${this.renderAddressInput(a,t)} 1100 <div class="country-badge form-secondary-text-color" aria-live="polite"> 1101 <pu-text as="span" variant="bodyXs"> 1102 ${this.getCountryName()??this.primaryCountry} 1103 </pu-text> 1104 </div> 1105 </div> 1106 `)}return o}renderAddressInput(e,t){const o={address:t.address1Placeholder,address2:t.address2Placeholder,state:t.statePlaceholder,city:t.cityPlaceholder,postalCode:t.postalCodePlaceholder};return W` 1107 <pu-input 1108 class="input-field" 1109 part="input-field" 1110 name=${e} 1111 placeholder=${o[e]} 1112 type="text" 1113 .value=${this.formValues[e]??""} 1114 @pu-input=${t=>this.handleFieldInput(e,t)} 1115 ?disabled=${this.isProcessing}></pu-input> 1116 `}getCountryName(){if(!this.primaryCountry)return;const e=Si(this.primaryCountry);return e?.name}handleSkipClick(){this.dispatchEvent(new CustomEvent("supplementary-form-skip",{bubbles:!0,composed:!0,detail:{stepId:"supplementary"}}))}handleFieldInput(e,t){const o=t.target,i=o?.value??"";this.formValues={...this.formValues,[e]:i},"function"==typeof o.setCustomValidity&&o.setCustomValidity(this.getFieldValidationMessage(e,i)),this.evaluateFormState(),this.bannerMessage&&this.canSubmit&&(this.bannerMessage=null)}getFieldValidationMessage(e,t){if("postalCode"!==e||!this.getConfiguredAddressFields().includes("postalCode"))return"";const o=t.trim();return o?nt(o,this.primaryCountry??"").message:""}isValidDobPart(e,t,o){if(!e)return!1;if(!/^\d+$/.test(e))return!1;const i=Number.parseInt(e,10);return i>=t&&i<=o}render(){const e=this.config.appearance?.formStyle,t=this.config.copy,{legalTerms:o}=this.config;return W` 1117 <div class="supplementary-form" part="supplementary-form"> 1118 <div class="form-header"> 1119 <pu-text 1120 class="primary-text-color" 1121 part="call-to-action" 1122 as="p" 1123 variant="heading3xl" 1124 fontweight="bold" 1125 lineHeight="compact" 1126 textAlign="center"> 1127 ${t.primaryCallToAction} 1128 </pu-text> 1129 ${t.secondaryCallToAction?W` 1130 <pu-text 1131 class="primary-text-color" 1132 part="secondary-call-to-action" 1133 as="p" 1134 variant="bodyMd" 1135 textAlign="center"> 1136 ${t.secondaryCallToAction} 1137 </pu-text> 1138 `:X} 1139 </div> 1140 <form @submit=${this.handleSubmit}> 1141 <div 1142 class="${Ae({"form-content":!0,"form-surface":!0,"form-background-color":!0,"form-content--rounded":"rounded"===e,"form-content--square":"square"===e})}"> 1143 <pu-text 1144 class="call-to-action primary-text-color" 1145 part="call-to-action" 1146 as="p" 1147 variant="bodyLg" 1148 fontweight="bold" 1149 textAlign="center" 1150 lineHeight="compact" 1151 withMargin> 1152 ${t.formCallToAction} 1153 </pu-text> 1154 ${this.renderBanner()} 1155 <div class="field-groups"> 1156 ${this.renderNameGroup()} ${this.renderDobGroup()} ${this.renderAddressGroup()} 1157 </div> 1158 <pu-button 1159 class="primary-button form-primary-button" 1160 part="primary-button" 1161 type="submit" 1162 size="large" 1163 ?disabled=${this.isFormDisabled()||!this.canSubmit} 1164 fullWidth> 1165 ${this.config.copy.submitButton??"Continue"} 1166 </pu-button> 1167 <div class="skip-container"> 1168 <pu-button 1169 class="skip-link form-primary-text-color" 1170 part="skip-link" 1171 type="button" 1172 variant="plain-underline" 1173 @click=${this.handleSkipClick} 1174 ?disabled=${this.isProcessing}> 1175 <pu-text as="span" variant="bodyXs">${t.skipLabel}</pu-text> 1176 </pu-button> 1177 </div> 1178 <div class="compliance-content"> 1179 <pu-link-group 1180 class="privacy-links form-secondary-text-color" 1181 part="privacy-links" 1182 exportparts="link-group" 1183 justify="center"> 1184 <pu-link url=${o.privacyUrl} target="_blank" underline> 1185 <pu-text as="span" variant="bodyXs">Privacy Policy</pu-text> 1186 </pu-link> 1187 | 1188 <pu-link url=${o.termsUrl} target="_blank" underline> 1189 <pu-text part="terms-text" exportparts="p body" as="span" variant="bodyXs"> 1190 Terms & Conditions 1191 </pu-text> 1192 </pu-link> 1193 </pu-link-group> 1194 </div> 1195 </div> 1196 </form> 1197 </div> 1198 `}}oa.styles=[Ai,Ti,ta],oa.dependencies={},i([ve({type:Object})],oa.prototype,"config",void 0),i([ve({attribute:!1})],oa.prototype,"formService",void 0),i([ye()],oa.prototype,"isProcessing",void 0),i([ye()],oa.prototype,"bannerMessage",void 0),i([ye()],oa.prototype,"formValues",void 0),i([ye()],oa.prototype,"canSubmit",void 0),i([ye()],oa.prototype,"primaryCountry",void 0),i([xe("form")],oa.prototype,"formEl",void 0),oa.define("supplementary-form");class ia extends ze{constructor(e){super(e,{errorMessages:{},currentError:null,formValidity:{}}
1198),this.errorMessages={email_required:"Email address is required",email_invalid:"Please enter a valid email address",phone_required:"Phone number is required",phone_invalid:"Please enter a valid phone number",country_required:"Please select a country",api_network:"Network error. Please try again",api_server:"Server error. Please try again later",recaptcha_network:"We couldn't verify you. Please check your connection and try again.",recaptcha_config:"Verification is temporarily unavailable. Please try again later.",recaptcha_failed:"Verification failed. Please try again.",sms_country_unsupported:"SMS not available in selected country"},this.setState({errorMessages:this.errorMessages})}setError(e){this.errorMessages[e]?this.setState({currentError:e}):console.warn(`Unknown error key: ${e}`)}clearError(){this.setState({currentError:null})}getCurrentErrorMessage(){const{currentError:e}=this.state;return e?this.errorMessages[e]:null}isFormValid(e){return!e||e.checkValidity()}getFormErrors(e){const t={};if(!e)return t;const o=e.querySelectorAll("*");for(const e of o)if("function"==typeof e.checkValidity&&e.name&&!e.checkValidity()){const o=this.mapValidityToErrorKey(e.validity);o&&(t[e.name]=o)}return t}mapValidityToErrorKey(e){return e.valueMissing?"email_required":e.typeMismatch||e.patternMismatch?"email_invalid":null}setFieldError(e,t,o){const{formValidity:i}=this.state,a=i[e]||{isValid:!1,fieldErrors:{}};a.fieldErrors[t]=o,a.isValid=!Object.values(a.fieldErrors).some((e=>null!==e)),this.setState({formValidity:{...i,[e]:a}})}clearFormErrors(e){const{formValidity:t}=this.state;this.setState({formValidity:{...t,[e]:{isValid:!0,fieldErrors:{}}}})}getFormValidity(e){return this.state.formValidity[e]||null}getFormReadiness(e,t){return"primary"===e?this.evaluatePrimary(t):{valid:!0,reasons:[]}}evaluatePrimary(e){const t=[],o=e.country?.trim(),i=e.email?.trim(),a=e.mobilephone?.trim(),s=e.postalCode?.trim(),r=e.deliveryMethod;if(o||t.push("country_required"),e.postalCodeEnabled&&o&&s){nt(s,o).message&&t.push("postal_code_invalid")}const n="sms"===r||"both"===r;if(("email"===r||"both"===r)&&!i&&t.push("email_required"),n&&!a)t.push("phone_required");else if(n&&a){ii(a,o)&&t.push("phone_invalid")}return{valid:0===t.length,reasons:t}}}var aa=d` 1199 :host { 1200 /* Base Font Family */ 1201 --pu-font-family-body: inherit; 1202 --pu-font-family-heading: inherit; 1203 --pu-menu-font-family: var(--pu-font-family-body); 1204 --pu-logo-font-family: var(--pu-font-family-heading); 1205 1206 /* Base Colour */ 1207 --pu-color-foreground-inverse: var(--pu-color-background); 1208 --pu-color-background-inverse: var(--pu-color-foreground); 1209 --pu-color-passthrough-foreground: var(--pu-color-foreground); 1210 --pu-color-passthrough-background: var(--pu-color-background); 1211 1212 /* State Colors */ 1213 --pu-color-focus-ring: hsl(213.1 93.9% 67.8%); 1214 --pu-color-focus-border: var(--pu-color-foreground, hsl(240, 8%, 5%)); 1215 --pu-color-focus-background: var(--pu-color-background, hsl(0, 0%, 100%)); 1216 --pu-border-focus-offset: 0.0625em; 1217 --pu-border-focus-width: 2px; 1218 --pu-border-focus-style: solid; 1219 --pu-border-focus-ring: var(--pu-border-focus-style) var(--pu-border-focus-width) var(--pu-color-focus-ring); 1220 1221 /* Font Sizes */ 1222 --pu-font-size-100: 0.6875em; /* 11px - xxs */ 1223 --pu-font-size-200: 0.75em; /* 12px - xs */ 1224 --pu-font-size-300: 0.875em; /* 14px - sm */ 1225 --pu-font-size-400: 1em; /* 16px - md */ 1226 --pu-font-size-500: 1.25em; /* 20px - lg */ 1227 --pu-font-size-600: 1.5em; /* 24px - xl */ 1228 --pu-font-size-700: 1.75em; /* 28px - 2xl */ 1229 --pu-font-size-800: 2em; /* 32px - 3xl */ 1230 --pu-font-size-900: 3em; /* 48px - 4xl */ 1231 --pu-font-size-1000: 4em; /* 64px - 5xl */ 1232 1233 /* Font Weight */ 1234 --pu-font-weight-300: 300; 1235 --pu-font-weight-400: 400; 1236 --pu-font-weight-500: 500; 1237 --pu-font-weight-600: 600; 1238 --pu-font-weight-700: 700; 1239 --pu-font-weight-800: 800;
1240 --pu-font-weight-900: 900; 1241 1242 /* Line Height */ 1243 --pu-font-leading-100: 1; /* Tight - for headings */ 1244 --pu-font-leading-200: 1.125; /* Snug - for larger text */ 1245 --pu-font-leading-300: 1.25; /* Dense - for compact text */ 1246 --pu-font-leading-400: 1.375; /* Normal - for body text */ 1247 --pu-font-leading-500: 1.5; /* Relaxed - for reading */ 1248 --pu-font-leading-600: 1.625; /* Loose - for readability */ 1249 --pu-font-leading-700: 2; /* Very loose - for emphasis */ 1250 --pu-font-leading-800: 2.5; /* Extra loose - for emphasis */ 1251 --pu-font-leading-900: 3; /* Distant - for extra emphasis */ 1252 1253 /* Text */ 1254 --pu-text-body-family: var(--pu-font-family-body); 1255 --pu-text-heading-family: var(--pu-font-family-heading); 1256 1257 --pu-text-heading-scale: 1; 1258 --pu-text-heading-size-xs: var(--pu-font-size-200); /* 0.75em - 12px */ 1259 --pu-text-heading-size-sm: var(--pu-font-size-300); /* 0.875em - 14px */ 1260 --pu-text-heading-size-md: var(--pu-font-size-400); /* 1em - 16px */ 1261 --pu-text-heading-size-lg: var(--pu-font-size-500); /* 1.25em - 20px */ 1262 --pu-text-heading-size-xl: var(--pu-font-size-600); /* 1.5em - 24px */ 1263 --pu-text-heading-size-2xl: var(--pu-font-size-700); /* 1.75em - 28px */ 1264 --pu-text-heading-size-3xl: var(--pu-font-size-800); /* 2em - 32px */ 1265 --pu-text-heading-size-4xl: var(--pu-font-size-900); /* 3em - 48px */ 1266 --pu-text-heading-size-5xl: var(--pu-font-size-1000); /* 4em - 64px */ 1267 1268 --pu-text-body-scale: 1; 1269 --pu-text-body-size-xs: var(--pu-font-size-200); /* 0.75em - 12px */ 1270 --pu-text-body-size-sm: var(--pu-font-size-300); /* 0.875em - 14px */ 1271 --pu-text-body-size-md: var(--pu-font-size-400); /* 1em - 16px */ 1272 --pu-text-body-size-lg: var(--pu-font-size-500); /* 1.25em - 20px */ 1273 --pu-text-body-size-xl: var(--pu-font-size-600); /* 1.5em - 24px */ 1274 --pu-text-body-size-2xl: var(--pu-font-size-700); /* 1.75em - 28px */ 1275 --pu-text-body-size-3xl: var(--pu-font-size-800); /* 2em - 32px */ 1276 1277 /* Skeleton */ 1278 --pu-skeleton-color-foreground: hsl(240, 5%, 84%); 1279 --pu-skeleton-color-background: hsl(240, 8%, 5%); 1280 1281 /* Grid Space */ 1282 --pu-space-0: 0; 1283 --pu-space-050: 0.125em; /* 050 = 1x4pt = 2px */ 1284 --pu-space-100: 0.25em; /* 100 = 2x4pt = 4px */ 1285 --pu-space-150: 0.375em; /* 150 = 3x4pt = 6px */ 1286 --pu-space-200: 0.5em; /* 200 = 4x4pt = 8px */ 1287 --pu-space-300: 0.75em; /* 300 = 3x4pt = 12px*/ 1288 --pu-space-400: 1em; /* 400 = 4x4pt = 16px*/ 1289 --pu-space-500: 1.25em; /* 500 = 5x4pt = 20px*/ 1290 --pu-space-600: 1.5em; /* 600 = 6x4pt = 24px*/ 1291 --pu-space-700: 1.75em; /* 700 = 7x4pt = 28px*/ 1292 --pu-space-800: 2em; /* 800 = 8x4pt = 32px*/ 1293 --pu-space-1000: 2.5em; /* 1000 = 10x4pt = 40px */ 1294 --pu-space-1200: 3em; /* 1200 = 12x4pt = 48px */ 1295 --pu-space-1400: 3.5em; /* 1400 = 14x4pt = 56px */ 1296 --pu-space-1600: 4em; /* 1600 = 16x4pt = 64px */ 1297 --pu-space-1800: 4.5em; /* 1800 = 18x4pt = 72px */ 1298 --pu-space-2000: 5em; /* 2000 = 20x4pt = 80px */ 1299 --pu-space-2200: 5.5em; /* 2200 = 22x4pt = 88px */ 1300 --pu-space-2400: 6em; /* 2400 = 24x4pt = 96px */ 1301 --pu-space-2600: 6.5em; /* 2600 = 26x4pt = 104px */ 1302 --pu-space-2800: 7em; /* 2800 = 28x4pt = 112px */ 1303 --pu-space-3000: 7.5em; /* 3000 = 30x4pt = 120px */ 1304 --pu-space-3200: 8em; /* 3200 = 32x4pt = 128px */ 1305 1306 /* Border Radius */ 1307 --pu-border-radius-0: 0; 1308 --pu-border-radius-050: 0.125em; /* 2px */ 1309 --pu-border-radius-075: 0.1875em; /* 3px */ 1310 --pu-border-radius-100: 0.25em; /* 4px */ 1311 --pu-border-radius-150: 0.375em; /* 6px */ 1312 --pu-border-radius-200: 0.5em; /* 8px */ 1313 --pu-border-radius-250: 0.625em; /* 10px */ 1314 --pu-border-radius-300: 0.75em; /* 12px */ 1315 --pu-border-radius-400: 1em; /* 16px */ 1316 --pu-border-radius-500: 1.25em; /* 20px */ 1317 --pu-border-radius-600: 1.5em; /* 24px */ 1318 --pu-border-radius-full: 624.9375em; 1319 1320 /* Border Width */ 1321 --pu-border-width-050: 0.03125em; /* 0.5px */ 1322 --pu-border-width-100: 0.0625em; /* 1px */ 1323 --pu-border-width-150: 0.09375em; /* 1.5px */ 1324 --pu-border-width-200: 0.125em; /* 2px */ 1325 --pu-border-width-250: 0.15625em; /* 2.5px */ 1326 --pu-border-width-300: 0.1875em; /* 3px */ 1327 --pu-border-width-400: 0.25em; /* 4px */ 1328 --pu-border-width-500: 0.3125em; /* 5px */ 1329 1330 /* Elevation */ 1331 --pu-shadow-elevation-050: 0 0 0.125em 0 hsla(0, 0%, 0%, 0.1); 1332 --pu-shadow-elevation-100: 0 0 0.25em 0 hsla(0, 0%, 0%, 0.1); 1333 --pu-shadow-elevation-200: 0 0 0.5rem 0 hsla(0, 0%, 0%, 0.1); 1334 --pu-shadow-elevation-300: 0 0 1rem 0 hsla(0, 0%, 0%, 0.1); 1335 --pu-shadow-elevation-400: 0 0 1.5rem 0 hsla(0, 0%, 0%, 0.1); 1336 1337 /* Animation Speed */ 1338 --pu-transition-duration-1000: 1s; 1339 --pu-transition-duration-500: 0.5s; 1340 --pu-transition-duration-250: 0.25s; 1341 --pu-transition-duration-150: 0.15s; 1342 --pu-transition-duration-050: 0.05s; 1343 1344 /* Order */ 1345 --pu-layer-700: 700; 1346 --pu-layer-800: 800; 1347 --pu-layer-900: 900; 1348 --pu-layer-950: 950; 1349 --pu-layer-1000: 1000; 1350 } 1351`;const sa=d` 1352 .form { 1353 font-family: var(--pu-font-family-body, inherit); 1354 margin: 0 auto; 1355 max-width: var(--pu-form-outer-size-width, 100%); 1356 width: 100%; 1357 } 1358 1359 .form-modal { 1360 --pu-overlay-color-foreground: var( 1361 --pu-form-modal-foreground-color, 1362 var(--form-modal-foreground, var(--form-primary-foreground)) 1363 ); 1364 --pu-overlay-color-background: var( 1365 --pu-form-modal-background-color, 1366 var(--form-modal-background, var(--form-primary-background)) 1367 ); 1368 --pu-overlay-background-image: var(--pu-form-modal-background-image, none); 1369 --pu-overlay-background-size: var(--pu-form-modal-background-size, cover); 1370 --pu-overlay-background-position: var(--pu-form-modal-background-position, center); 1371 --pu-overlay-background-repeat: var(--pu-form-modal-background-repeat, no-repeat); 1372 } 1373
1374 .form-modal--hide-close::part(alt-close) { 1375 display: none; 1376 pointer-events: none; 1377 } 1378 1379 .form--modal.primary-background-color { 1380 background-color: transparent; 1381 } 1382 1383 .form--modal .form-container { 1384 padding: var(--pu-form-inner-content-padding, 1.5em); 1385 min-height: var(--pu-form-outer-size-height); 1386 } 1387 1388 .form-container { 1389 display: flex; 1390 justify-content: center; 1391 align-items: center; 1392 padding: var(--pu-form-inner-content-padding); 1393 margin: 0 auto; 1394 width: 100%; 1395 max-width: var(--pu-form-inner-size-width, 25em); 1396 min-height: var(--pu-form-outer-size-height, 48em); 1397 } 1398 1399 .form-container--with-header { 1400 gap: var(--pu-form-inner-content-spacing, 1em); 1401 flex-direction: column; 1402 } 1403 1404 @media (max-width: 47.99em) { 1405 .form-header, 1406 .form--header-above .form-header { 1407 flex: 0; 1408 } 1409 .form--modal .form-container { 1410 padding: var(--pu-form-inner-content-padding, 1em); 1411 } 1412 } 1413 1414 @media (min-width: 48em) { 1415 .form-container { 1416 flex-direction: row; 1417 align-items: center; 1418 gap: var(--pu-form-inner-content-spacing, 2rem); 1419 max-width: var(--pu-form-inner-size-width, 48em); 1420 } 1421 1422 .form-header { 1423 flex: 0 1 calc(50% - var(--pu-form-inner-content-spacing, 2em)); 1424 } 1425 1426 .form--header-above .form-header { 1427 flex: 0; 1428 } 1429 1430 .form--header-above .form-container { 1431 flex-direction: column; 1432 gap: var(--pu-form-inner-content-spacing, 1.5em); 1433 max-width: var(--pu-form-inner-size-width, 26em); 1434 } 1435 .form--header-right .form-container { 1436 flex-direction: row-reverse; 1437 } 1438 } 1439 1440 .form-header { 1441 display: flex; 1442 flex-direction: column; 1443 gap: 0.75rem; 1444 width: 100%; 1445 max-width: var(--pu-brand-content-size-width, 100%); 1446 } 1447 1448 .form-header__title { 1449 --pu-text-heading-size: var(--pu-form-heading-font-size, 2.5rem); 1450 --pu-text-weight: var(--pu-form-heading-font-weight, 700); 1451 --pu-text-leading: var(--pu-form-heading-leading, 1.25); 1452 } 1453 1454 .form--inline .form-header__image { 1455 width: var(--pu-brand-image-size, 85%); 1456 } 1457 1458 .form-header__image { 1459 aspect-ratio: 1/1; 1460 margin: 0 auto; 1461 overflow: hidden; 1462 width: var(--pu-brand-image-size, 60%); 1463 } 1464 1465 .form-header__image .image { 1466 display: block; 1467 width: 100%; 1468 height: 100%; 1469 object-fit: cover; 1470 } 1471 1472 .form-surface:not(.form--optins):not(.form--supplementary) { 1473 border: 0.0625em solid 1474 rgb(from var(--pu-form-border-color, var(--form-border, rgba(0, 0, 0, 0.1))) r g b / alpha); 1475 padding: 2rem 1rem; 1476 } 1477 1478 .form-background-color:not(.form--primary) { 1479 background-color: transparent; 1480 } 1481 1482 .form-content { 1483 margin: 0 auto; 1484 width: 100%; 1485 max-width: var(--pu-form-content-size-width, 22em); 1486 } 1487 1488 .form-progress-screen { 1489 margin: auto; 1490 } 1491`,ra=d` 1492 .form-header__image--circle { 1493 border-radius: 50%; 1494 } 1495 1496 .form-header__image--square { 1497 border-radius: 0; 1498 } 1499 1500 .form-header__title--visually-hidden { 1501 position: absolute; 1502 width: 1px; 1503 height: 1px; 1504 padding: 0; 1505 margin: -1px; 1506 overflow: hidden; 1507 clip: rect(0, 0, 0, 0); 1508 white-space: nowrap; 1509 border-width: 0; 1510 } 1511`;var na=d` 1512 :host { 1513 display: block; 1514 } 1515 1516 .screen { 1517 display: flex; 1518 flex-direction: column; 1519 align-items: center; 1520 text-align: center; 1521 gap: 2em; 1522 } 1523 1524 .checkmark { 1525 --pu-icon-font-size: 5em; 1526 } 1527 .spinner { 1528 --pu-icon-font-size: 4em; 1529 } 1530 1531 .actions { 1532 display: flex; 1533 flex-direction: column; 1534 gap: 0.75rem; 1535 width: 100%; 1536 } 1537 1538 button { 1539 border: none; 1540 border-radius: 999px; 1541 padding: 0.85rem 1rem; 1542 font-size: 1rem; 1543 font-weight: 600; 1544 cursor: pointer; 1545 } 1546 1547 .primary { 1548 background: #113153; 1549 color: #fff; 1550 } 1551 1552 .secondary { 1553 background: transparent; 1554 color: #113153; 1555 border: 1px solid rgba(17, 49, 83, 0.3); 1556 } 1557`;let la=class extends _i{constructor(){super(...arguments),this.state="processing",this.processingMessage="",this.successHeadline="",this.successConfirmation="",this.errorHeadline="",this.errorMessage="",this.final=!1,this.canReturn=!1,this.showClose
1557=!1,this.returnLabel="Return to form",this.closeLabel="Close"}handleReturn(){this.dispatchEvent(new CustomEvent("progress-screen-return",{bubbles:!0,composed:!0}))}handleClose(){this.dispatchEvent(new CustomEvent("progress-screen-close",{bubbles:!0,composed:!0}))}handleContinue(e){e?.preventDefault?.(),this.dispatchEvent(new CustomEvent("progress-screen-continue",{bubbles:!0,composed:!0}))}renderVisual(){return"processing"===this.state?W`<pu-icon class="spinner form-inactive-state-color" name="spinner" size="4xlarge"></pu-icon>`:"success"===this.state?W`<pu-icon class="checkmark form-success" name="check-circle" size="4xlarge"></pu-icon>`:null}renderActions(){const e=this.showClose&&"success"===this.state,t=this.canReturn&&"error"===this.state,o="success"===this.state&&!this.final;return e||t||o?W` 1558 <div class="actions"> 1559 ${o?W`<pu-link class="primary-text-color" underline @click=${this.handleContinue}> 1560 <pu-text as="span" variant="bodySm">Continue</pu-text> 1561 </pu-link>`:null} 1562 ${t?W`<button class="secondary" type="button" @click=${this.handleReturn}> 1563 ${this.returnLabel} 1564 </button>`:null} 1565 ${e?W`<button class="primary" type="button" @click=${this.handleClose}>${this.closeLabel}</button>`:null} 1566 </div> 1567 `:null}render(){return W` <div class="screen">${this.renderContent()} ${this.renderVisual()} ${this.renderActions()}</div> `}renderContent(){return"processing"===this.state?this.processingMessage?W`<div class="processing-message"> 1568 <pu-text class="primary-text-color" as="p" variant="bodyMd">${this.processingMessage}</pu-text> 1569 </div>`:X:"success"===this.state?W` 1570 ${this.successHeadline?W`<div class="success-headline primary-text-color"> 1571 <pu-text class="primary-text-color" as="span" variant="heading3xl" fontWeight="bold" 1572 >${this.successHeadline}</pu-text 1573 > 1574 </div>`:X} 1575 ${this.successConfirmation?W`<div class="success-confirmation primary-text-color"> 1576 <pu-text class="primary-text-color" as="p" variant="bodyMd" 1577 >${this.successConfirmation}</pu-text 1578 > 1579 </div>`:X} 1580 `:"error"===this.state?W` 1581 ${this.errorHeadline?W`<div class="error-headline primary-text-color"> 1582 <pu-text class="primary-text-color" as="span" variant="bodyLg" fontWeight="bold" 1583 >${this.errorHeadline}</pu-text 1584 > 1585 </div>`:X} 1586 ${this.errorMessage?W`<div class="error-message primary-text-color"> 1587 <pu-text class="primary-text-color" as="p" variant="bodyMd">${this.errorMessage}</pu-text> 1588 </div>`:X} 1589 `:X}};la.styles=[na,Ai,Ti],i([ve()],la.prototype,"state",void 0),i([ve()],la.prototype,"processingMessage",void 0),i([ve()],la.prototype,"successHeadline",void 0),i([ve()],la.prototype,"successConfirmation",void 0),i([ve()],la.prototype,"errorHeadline",void 0),i([ve()],la.prototype,"errorMessage",void 0),i([ve({type:Boolean})],la.prototype,"final",void 0),i([ve({type:Boolean})],la.prototype,"canReturn",void 0),i([ve({type:Boolean})],la.prototype,"showClose",void 0),i([ve()],la.prototype,"returnLabel",void 0),i([ve()],la.prototype,"closeLabel",void 0),la=i([fe("progress-screen")],la);var da=la;function ca(e,t,o,i){var a,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(r=(s<3?a(r):s>3?a(t,o,r):a(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r}function pa(e,t){const o={waitUntilFirstUpdate:!1,...t};return(t,i)=>{const{update:a}=t,s=Array.isArray(e)?e:[e];
1589t.update=function(e){s.forEach((t=>{const a=t;if(e.has(a)){const t=e.get(a),s=this[a];t!==s&&(o.waitUntilFirstUpdate&&!this.hasUpdated||this[i](t,s))}})),a.call(this,e)}}}"function"==typeof SuppressedError&&SuppressedError;var ua=d` 1590 :host { 1591 box-sizing: border-box; 1592 font-size: var(--pu-font-size, 16px); 1593 } 1594 1595 :host *, 1596 :host *::before, 1597 :host *::after { 1598 box-sizing: border-box; 1599 } 1600`;const ha=[d` 1601 :host { 1602 font-size: 16px; 1603 --font-family: var(--pu-button-font-family, var(--pu-text-body-family, inherit)); 1604 --font-weight: var(--pu-button-font-weight, var(--pu-font-weight-700, 700)); 1605 --foreground-color: var(--pu-button-color-foreground, var(--pu-color-background, rgb(255, 255, 255))); 1606 --background-color: var(--pu-button-color-background, var(--pu-color-foreground, rgb(0, 0, 0))); 1607 --border-color: var(--pu-button-border-color, var(--background-color, var(--foreground-color, rgb(0, 0, 0)))); 1608 --border-radius: var(--pu-button-border-radius, var(--pu-border-radius)); 1609 --border-width: var(--pu-button-border-width, var(--pu-border-width, 0.0625em)); 1610 } 1611 :host([fullwidth]), 1612 :host([fullwidthnarrow]) { 1613 width: 100%; 1614 } 1615 1616 :host([hideWhenExtended]) { 1617 display: block; 1618 overflow: hidden; 1619 width: 0; 1620 height: 0 !important; 1621 margin: -1px; 1622 padding: 0; 1623 border: 0; 1624 clip: rect(0 0 0 0); 1625 } 1626 /* Base Button Styles */ 1627 .button { 1628 cursor: pointer; 1629 font-family: var(--font-family); 1630 font-weight: var(--font-weight); 1631 line-height: 1; 1632 letter-spacing: 0.06em; 1633 color: rgb(from var(--foreground-color) r g b / alpha); 1634 background-color: rgb(from var(--background-color) r g b / alpha); 1635 background-clip: padding-box; 1636 border-color: rgb(from var(--border-color) r g b / alpha); 1637 border-radius: var(--border-radius); 1638 border-width: var(--border-width); 1639 border-style: solid; 1640 outline: none; 1641 text-decoration: none; 1642 min-height: var(--pu-button-size-height, var(--pu-size-height, 3em)); 1643 padding: var(--pu-button-space-padding, 0 2em); 1644 width: var(--pu-button-size-width, auto); 1645 appearance: none; 1646 --webkit-appearance: none; 1647 } 1648 .button__label { 1649 font-size: var(--pu-button-font-size, var(--pu-text-body-size-md, 1em)); 1650 } 1651 1652 .button > * { 1653 /* Child elements */ 1654 --pu-color-foreground: var(--foreground-color); 1655 } 1656 1657 a.button { 1658 display: inline-flex; 1659 align-items: center; 1660 line-height: normal; 1661 } 1662 1663 .button__label { 1664 display: flex; 1665 gap: 0.25em; 1666 align-items: center; 1667 justify-content: center; 1668 width: 100%; 1669 } 1670 1671 .button__label ::slotted(*) { 1672 --pu-text-space-margin-bottom: 0; 1673 } 1674 1675 .button:active { 1676 outline: none; 1677 } 1678 1679 .button:not(.btn--plain):not(.btn--plain-underline):not(.btn--outline):hover { 1680 box-shadow: 0 0 0 0.0625em rgb(from var(--pu-color-button-hover, var(--background-color)) r g b / alpha); 1681 } 1682 1683 .button:focus-visible:not([disabled]):not(.btn--plain):not(.btn--plain-underline), 1684 .button:focus-visible:not([disabled]).btn--extend-hidden::after { 1685 outline: none; 1686 border-color: rgb(from var(--pu-color-focus-border, inherit) r g b / alpha); 1687 box-shadow: 1688 0 0 0 0.0625em rgb(from var(--pu-color-focus-background) r g b / alpha), 1689 0 0 0 0.25em rgb(from var(--pu-color-focus-ring, hsl(213.1 93.9% 67.8%)) r g b / alpha); 1690 } 1691 1692 .button__spinner { 1693 animation-name: spin; 1694 animation-duration: 500ms; 1695 animation-timing-function: cubic-bezier(0, 0, 1, 1); 1696 animation-iteration-count: infinite; 1697 animation-direction: both; 1698 fill: currentColor; 1699 height: 1em; 1700 left: 50%; 1701 margin: calc(1em / 2 * -1) 0 0 calc(1em / 2 * -1); 1702 position: absolute; 1703 top: 50%; 1704 width: 1em; 1705 } 1706 @keyframes spin { 1707 to { 1708 transform: rotate(1turn); 1709 } 1710 } 1711 1712 /* Multi-Variant Child Element Styles - Kept in component scope since it affects multiple variants */ 1713 .btn--plain > *, 1714 .btn--plain-underline > *, 1715 .btn--outline > * { 1716 /* Child elements */ 1717 --pu-color-foreground: var(--background-color); 1718 } 1719`,d` 1720 /* Button Outline */ 1721 :host { 1722 --outline-foreground-color: var(--pu-button-color-background, var(--pu-color-background-inverse, inherit)); 1723 --outline-background-color-hover: var(--pu-button-color-background, var(--pu-color-foreground, currentColor)); 1724 } 1725 1726 .btn--outline { 1727 background-color: transparent; 1728 border-color: rgb(from var(--outline-foreground-color) r g b / alpha); 1729 color: rgb(from var(--outline-foreground-color) r g b / alpha); 1730 } 1731 1732 .btn--outline:hover { 1733 border-color: transparent; 1734 box-shadow: 0 0 0 0.0625em 1735 rgb(from var(--pu-color-button-hover, var(--outline-background-color-hover)) r g b / alpha); 1736 } 1737 1738 .btn--outline > * { 1739 --pu-color-foreground: rgb(from var(--pu-button-color-background, inherit) r g b / alpha); 1740 } 1741 1742 .btn--outline[disabled], 1743 .btn--outline[disabled]:hover { 1744 cursor: default; 1745 box-shadow: none; 1746 color: rgb(from var(--pu-color-background-disabled, hsl(240, 4%, 46%)) R G B / alpha); 1747 border-color: rgb(from var(--pu-color-background-disabled, hsl(240, 4%, 46%)) R G B / alpha); 1748 background-color: transparent; 1749 } 1750`,d` 1751 /* Button Plain, Button Plain Underline */ 1752 .btn--plain, 1753 .btn--plain-underline { 1754 border: none; 1755 padding: 0; 1756 height: auto; 1757 background-color: transparent; 1758 color: rgb(from var(--pu-color-foreground) r g b / alpha); 1759 } 1760 1761 /* Button Plain Underline */ 1762 .btn--plain-underline { 1763 text-decoration: underline; 1764 text-underline-offset: 0.2em; 1765 transition: text-decoration-color 0.2s; 1766 } 1767 1768 .btn--plain-underline:not([disabled]):hover { 1769 text-decoration-color: rgb(from var(--pu-color-foreground) r g b / 0.5); 1770 } 1771 1772 /* Button Plain */ 1773 .btn--plain:not(.btn--plain-underline):not([disabled]):hover, 1774 .btn--plain:not(.btn--plain-underline):not([disabled]):focus-visible { 1775 text-decoration-line: underline; 1776 text-underline-offset: 0.2em; 1777 } 1778 1779 .btn--plain:not([disabled]):hover, 1780 .btn--plain:not([disabled]):focus-visible { 1781 text-decoration-thickness: 0.0625em; 1782 } 1783 1784 .btn--plain-underline:not([disabled]):focus-visible { 1785 outline: none; 1786 box-shadow: none; 1787 text-decoration-thickness: 0.125em; 1788 text-underline-offset: 0.25em; 1789 text-decoration-color: var(--pu-color-focus-ring, hsl(213.1 93.9% 67.8%)); 1790 } 1791 1792 /* Focus-visible styles for both plain and plain-underline buttons */ 1793 .btn--plain:not([disabled]):focus-visible, 1794 .btn--plain-underline:not([disabled]):focus-visible { 1795 text-decoration-color: var(--pu-color-focus-ring, hsl(213.1 93.9% 67.8%)); 1796 text-decoration-thickness: 0.125em; 1797 } 1798 1799 .btn--plain[disabled], 1800 .btn--plain-underline[disabled], 1801 .btn--plain[disabled]:hover, 1802 .btn--plain-underline[disabled]:hover, 1803 .btn--plain.button--disabled, 1804 .btn--plain-underline.button--disabled { 1805 background-color: transparent; 1806 color: rgb(from var(--pu-color-foreground-disabled, rgb(160, 160, 160)) r g b / alpha); 1807 } 1808`,d` 1809 /* Component Public API Classes - tied to component properties */ 1810 1811 /* Boolean Property Classes */ 1812 .btn--fullwidth { 1813 width: 100%; 1814 } 1815 1816 .btn--extend:not([disabled]):after { 1817 content: ''; 1818 position: absolute; 1819 top: 0; 1820 left: 0; 1821 height: 100%; 1822 width: 100%; 1823 z-index: 20; 1824 cursor: pointer; 1825 } 1826 1827 /* Disabled State Styles */ 1828 .button--disabled { 1829 pointer-events: none; 1830 } 1831 1832 .button[disabled], 1833 .button[disabled]:hover, 1834 .button--disabled, 1835 .button--disabled:hover { 1836 cursor: default; 1837 } 1838 1839 .button[disabled]:not(.btn--plain):not(.btn--plain-underline):not(.btn--outline), 1840 .button[disabled]:not(.btn--plain):not(.btn--plain-underline):not(.btn--outline):hover, 1841 .button--disabled:not(.btn--plain):not(.btn--plain-underline):not(.btn--outline), 1842 .button--disabled:not(.btn--plain):not(.btn--plain-underline):not(.btn--outline):hover { 1843 border: none; 1844 box-shadow: none; 1845 background-color: rgb(from var(--pu-button-border-color, var(--background-color)) r g b / 0.5); 1846 } 1847 1848 /* Loading State Styles */ 1849 .btn--loading { 1850 position: relative; 1851 } 1852 .btn--loading ::slotted(*), 1853 .btn--loading .button__label { 1854 opacity: 0; 1855 } 1856 1857 /* Property Value Classes - Size variants */ 1858 .btn--size-large:not(.btn--plain):not(.btn--plain-underline) { 1859 padding: var(--pu-button-space-padding, 0 2em); 1860 --pu-size-height: 3em; 1861 } 1862 .btn--size-medium:not(.btn--plain):not(.btn--plain-underline) { 1863 padding: var(--pu-button-space-padding, 0 1.5em); 1864 --pu-size-height: 2.75em; 1865 } 1866 .btn--size-small:not(.btn--plain):not(.btn--plain-underline) { 1867 padding: var(--pu-button-space-padding, 0 1em); 1868 --pu-size-height: 2.5em; 1869 } 1870 .btn--size-xsmall:not(.btn--plain):not(.btn--plain-underline) { 1871 padding: var(--pu-button-space-padding, 0 0.75em); 1872 --pu-size-height: 2em; 1873 } 1874 .btn--size-slim:not(.btn--plain):not(.btn--plain-underline) { 1875 padding: var(--pu-button-space-padding, 0 0.75em); 1876 --pu-size-height: 1.5em; 1877 } 1878 1879 .btn--size-large:not(.btn--plain):not(.btn--plain-underline) .button__label { 1880 font-size: var(--pu-button-font-size, var(--pu-text-body-size-md, 1em)); 1881 } 1882 .btn--size-medium:not(.btn--plain):not(.btn--plain-underline) .button__label { 1883 font-size: var(--pu-button-font-size, var(--pu-text-body-size-sm, 0.875em)); 1884 } 1885 .btn--size-small:not(.btn--plain):not(.btn--plain-underline) .button__label { 1886 font-size: var(--pu-button-font-size, var(--pu-text-body-size-sm, 0.875em)); 1887 font-weight: var(--pu-button-font-weight, var(--pu-font-we
1887ight-400, 400)); 1888 } 1889 .btn--size-xsmall:not(.btn--plain):not(.btn--plain-underline) .button__label { 1890 font-size: var(--pu-button-font-size, var(--pu-text-body-size-xs, 0.75em)); 1891 font-weight: var(--pu-button-font-weight, var(--pu-font-weight-400, 400)); 1892 } 1893 .btn--size-slim:not(.btn--plain):not(.btn--plain-underline) .button__label { 1894 font-weight: var(--pu-button-font-weight, var(--pu-font-weight-400)); 1895 font-size: var(--pu-button-font-size, var(--pu-text-body-size-xs, 0.75em)); 1896 } 1897 .btn--size-large.btn--plain .button__label, 1898 .btn--size-medium.btn--plain .button__label, 1899 .btn--size-small.btn--plain .button__label { 1900 font-size: var(--pu-button-font-size, var(--pu-text-body-size-sm, 0.875em)); 1901 } 1902 .btn--size-slim.btn--plain .button__label { 1903 font-size: var(--pu-button-font-size, var(--pu-text-body-size-xs, 0.75em)); 1904 } 1905 1906 /* Property Value Classes - Text alignment */ 1907 .btn--text-align-left .button__label { 1908 justify-content: start; 1909 } 1910 .btn--text-align-center .button__label { 1911 justify-content: center; 1912 } 1913 .btn--text-align-right .button__label { 1914 justify-content: end; 1915 } 1916`];class ga extends he{emit(e,t){const o=new CustomEvent(e,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...t});return this.dispatchEvent(o),o}static define(e,t=this,o={}){const i=customElements.get(e);if(!i){try{customElements.define(e,t,o)}catch(i){console.log(e,i),customElements.define(e,class extends t{},o)}return}let a=" (unknown version)",s=a;"version"in t&&t.version&&(a=" v"+t.version),"version"in i&&i.version&&(s=" v"+i.version),a&&s&&a===s||console.warn(`Attempted to register <${e}>, but <${e}> has already been registered.`)}constructor(){super(),Object.entries(this.constructor.dependencies).forEach((([e,t])=>{this.constructor.define(e,t)}))}}ga.version="5.0.28",ga.dependencies={};class fa extends ga{constructor(){super(...arguments),this.formControlController=new ji(this,{assumeInteractionOn:["click"]}),this.type="button",this.title="",this.name="",this.value="",this.target="_self",this.size="medium",this.variant="solid",this.textAlign="center",this.disabled=!1,this.fullWidth=!1,this.extendClickArea=!1,this.hideWhenExtended=!1,this.loading=!1,this.invalid=!1}get validity(){return this.isFormButton()?this.button.validity:Ui}get validationMessage(){return this.isFormButton()?this.button.validationMessage:""}firstUpdated(){this.isFormButton()&&this.formControlController.updateValidity()}handleClick(){"submit"===this.type&&this.formControlController.submit(this)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleDisabledChange(){this.isFormButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}checkValidity(){return!this.isFormButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isFormButton()||this.button.reportValidity()}setCustomValidity(e){this.isFormButton()&&(this.button.setCustomValidity(e),this.formControlController.updateValidity())}isButton(){return!this.url}isLink(){return!!this.url}isFormButton(){return!(this.url||"submit"!==this.type&&"button"!==this.type&&"reset"!==this.type)}renderButtonContent(){return this.loading?W` 1917 <span 1918 part="label" 1919 class="button__label" 1920 > 1921 <slot> Label </slot> 1922 <slot name="label">Label</slot> 1923 </span> 1924 <span part="spinner"> 1925 <svg 1926 part="svg" 1927 class="button__spinner" 1928 width="16" 1929 height="16" 1930 xmlns="http://www.w3.org/2000/svg" 1931 focusable="false" 1932 role="presentation" 1933 aria-hidden="true"
1934 viewBox="0 0 512 512" 1935 > 1936 <path 1937 d="M463.9 376c7.6 4.4 17.5 1.8 21.4-6.1c17.1-34.3 26.7-73 26.7-113.9C512 120 405.9 8.8 272 .5c-8.8-.5-16 6.7-16 15.5v0c0 8.8 7.2 15.9 16 16.6C388.2 40.8 480 137.7 480 256c0 35.1-8.1 68.3-22.5 97.9c-3.9 8-1.3 17.7 6.4 22.2v0z" 1938 /> 1939 </svg> 1940 </span> 1941 `:W` 1942 <span 1943 part="label" 1944 class="button__label" 1945 > 1946 <slot> Label </slot> 1947 <slot name="label"></slot> 1948 </span> 1949 `}renderLinkElement(){const e=this.disabled;return W` 1950 <a 1951 part="base button" 1952 class="${Ae({button:!0,"button--disabled":e,"btn--plain":"plain"===this.variant,"btn--plain-underline":"plain-underline"===this.variant,"btn--outline":"outline"===this.variant,"btn--fullwidth":this.fullWidth,"btn--extend":this.extendClickArea,"btn--extend-hidden":this.hideWhenExtended,"btn--loading":this.loading,[`btn--size-${this.size}`]:!!this.size,[`btn--text-align-${this.textAlign}`]:!0})}" 1953 href="${vi(this.url)}" 1954 target="${vi(this.target)}" 1955 title=${this.title} 1956 @click="${this.handleClick}" 1957 > 1958 ${this.renderButtonContent()} 1959 </a> 1960 `}renderButtonElement(){const e=this.isButton(),t=this.isFormButton();return W` 1961 <button 1962 part="button" 1963 class="${Ae({button:!0,"btn--plain":"plain"===this.variant,"btn--plain-underline":"plain-underline"===this.variant,"btn--outline":"outline"===this.variant,"btn--fullwidth":this.fullWidth,"btn--extend":this.extendClickArea,"btn--extend-hidden":this.hideWhenExtended,"btn--loading":this.loading,[`btn--size-${this.size}`]:!!this.size,[`btn--text-align-${this.textAlign}`]:!0})}" 1964 type="${vi(e||t?this.type:void 0)}" 1965 title=${this.title} 1966 name="${vi(t?this.name:void 0)}" 1967 value="${vi(t?this.value:void 0)}" 1968 form="${vi(t?this.form:void 0)}" 1969 aria-controls="${vi(e?this.for:void 0)}" 1970 ?disabled="${e||t?this.disabled:null}" 1971 @invalid=${e||t?this.handleInvalid:null} 1972 @click="${this.handleClick}" 1973 > 1974 ${this.renderButtonContent()} 1975 </button> 1976 `}render(){const e=this.isLink();return W`${e?this.renderLinkElement():this.renderButtonElement()}`}}fa.styles=[ua,ha],ca([ve()],fa.prototype,"type",void 0),ca([ve()],fa.prototype,"title",void 0),ca([ve()],fa.prototype,"name",void 0),ca([ve()],fa.prototype,"value",void 0),ca([ve()],fa.prototype,"form",void 0),ca([ve()],fa.prototype,"for",void 0),ca([ve()],fa.prototype,"url",void 0),ca([ve()],fa.prototype,"target",void 0),ca([ve()],fa.prototype,"size",void 0),ca([ve()],fa.prototype,"variant",void 0),ca([ve()],fa.prototype,"textAlign",void 0),ca([ve({type:Boolean,reflect:!0})],fa.prototype,"disabled",void 0),ca([ve({type:Boolean})],fa.prototype,"fullWidth",void 0),ca([ve({type:Boolean})],fa.prototype,"extendClickArea",void 0),ca([ve({type:Boolean,reflect:!0})],fa.prototype,"hideWhenExtended",void 0),ca([ve({type:Boolean,reflect:!0})],fa.prototype,"loading",void 0),ca([xe(".button")],fa.prototype,"button",void 0),ca([ye()],fa.prototype,"invalid",void 0),ca([pa("disabled",{waitUntilFirstUpdate:!0})],fa.prototype,"handleDisabledChange",null),fa.define("pu-button");const ma=[d` 1977 :host { 1978 display: inline-flex; 1979 } 1980 1981 .button-icon { 1982 cursor: pointer; 1983 border: none; 1984 border-radius: var(--pu-icon-border-radius); 1985 padding: 0; 1986 color: rgb(from var(--pu-icon-color-foreground, inherit) r g b / alpha); 1987 background-color: rgb( 1988 from var(--pu-icon-color-background, inherit) r g b / calc(var(--pu-icon-opacity-background, 0.7) * alpha) 1989 ); 1990 transition: background-color var(--pu-transition-duration-500); 1991 } 1992 1993 .button-icon:hover { 1994 background-color: rgb( 1995 from var(--pu-icon-color-background, inherit) r g b / calc(var(--pu-icon-opacity-background, 1) * alpha) 1996 ); 1997 } 1998 1999 a.button-icon { 2000 display: inline-block; 2001 line-height: normal; 2002 } 2003 2004 .button-icon > * { 2005 position: relative; 2006 display: block; 2007 padding: var(--pu-icon-space-padding, var(--padding, 0.5em)); 2008 } 2009 2010 /* Slotted custom SVG icon */ 2011 ::slotted(*) { 2012 display: block; 2013 font-size: var(--pu-icon-font-size, inherit); 2014 } 2015 2016 .icon { 2017 line-height: 0; 2018 } 2019 2020 .button-icon[disabled]:hover { 2021 opacity: 0.5; 2022 } 2023 2024 button[disabled] { 2025 opacity: 0.5; 2026 cursor: default; 2027 } 2028
2029 @keyframes spin { 2030 to { 2031 transform: rotate(1turn); 2032 } 2033 } 2034`,d` 2035 :host { 2036 --border-color: var(--pu-icon-border-color, var(--pu-color-foreground, rgb(0, 0, 0, 0.5))); 2037 } 2038 .btn--extend-interactive::after { 2039 content: ''; 2040 position: absolute; 2041 top: 0; 2042 left: 0; 2043 height: 100%; 2044 width: 100%; 2045 z-index: 1; 2046 } 2047 2048 .btn--border > *::after { 2049 content: ''; 2050 position: absolute; 2051 left: 0; 2052 right: 0; 2053 top: 0; 2054 bottom: 0; 2055 box-shadow: 0 0 0 var(--pu-icon-border-width, 0.0625em) 2056 rgb(from var(--pu-icon-border-color) r g b / calc(var(--pu-icon-opacity-border, 1) * alpha)); 2057 } 2058 2059 .btn--rounded, 2060 .btn--rounded > *::after { 2061 border-radius: var(--pu-icon-border-radius, 100%); 2062 } 2063`];function ba(e){switch(e){case"xsmall":return"var(--pu-text-body-size-xs, 0.5em)";case"small":return"var(--pu-text-body-size-sm, 0.875em)";case"medium":return"var(--pu-text-body-size-md, 1em)";case"large":return"var(--pu-text-body-size-lg, 1.25em)";case"xlarge":return"var(--pu-text-body-size-xl, 1.5em)";case"2xlarge":return"var(--pu-text-body-size-2xl, 1.75em)";case"3xlarge":return"var(--pu-text-body-size-3xl, 2em)";case"4xlarge":return"var(--pu-font-size-900, 3em)";case"5xlarge":return"var(--pu-font-size-1000, 4em)"}}let va="/icons";function ya(e=""){if(!va||"/icons"===va){const e=window.PushWebComponents?.config;e?.iconBasePath&&(t=e.iconBasePath,va=t)}var t;return va.replace(/\/$/,"")+(e?`/${e.replace(/^\//,"")}`:"")}var $a=d` 2064 :host { 2065 --color-foreground: var(--pu-icon-color-foreground, var(--pu-color-foreground)); 2066 } 2067 .icon-container { 2068 display: flex; 2069 align-items: center; 2070 justify-content: center; 2071 font-size: var(--pu-icon-font-size, var(--font-size, inherit)); 2072 height: fit-content; 2073 width: fit-content; 2074 color: rgb(from var(--color-foreground) r g b / calc(alpha * var(--pu-icon-color-opacity, 1))); 2075 } 2076 2077 .spinner svg { 2078 animation-name: spin; 2079 animation-duration: 400ms; 2080 animation-timing-function: cubic-bezier(0, 0, 1, 1); 2081 animation-iteration-count: infinite; 2082 } 2083 @keyframes spin { 2084 to { 2085 transform: rotate(1turn); 2086 } 2087 } 2088`;class xa extends ga{constructor(){super(...arguments),this.svgContent="",this.name="user"}_hasSlottedContent(){for(const e of this.children){if("slot"!==e.tagName.toLowerCase())return!0;if(e.assignedNodes().length>0)return!0}return!1}connectedCallback(){super.connectedCallback(),this._hasSlottedContent()||this.svgContent||this.loadSVG()}async loadSVG(){try{const e=await fetch(ya(`/${this.name}.svg`));if(!e.ok)throw new Error("Failed to load SVG");let t=await e.text();this.svgContent=t.replace("<svg",'<svg part="svg"')}catch(e){console.error(e),this.svgContent='<svg part="svg" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512">\n <path d="M504 256c0 137-111 248-248 248S8 393 8 256C8 119.1 119 8 256 8s248 111.1 248 248zm-248 50c-25.4 0-46 20.6-46 46s20.6 46 46 46 46-20.6 46-46-20.6-46-46-46zm-43.7-165.3l7.4 136c.3 6.4 5.6 11.3 12 11.3h48.5c6.4 0 11.6-5 12-11.3l7.4-136c.4-6.9-5.1-12.7-12-12.7h-63.4c-6.9 0-12.4 5.8-12 12.7z"/>\n </svg>'}}willUpdate(e){e.has("name")&&!this._hasSlottedContent()&&this.loadSVG()}render(){const e=this._hasSlottedContent();return W` 2089 <span 2090 part="base icon" 2091 class="${Ae({"icon-container":!0,spinner:"spinner"===this.name})}" 2092 style="${Ie({"--font-size":this.size?ba(this.size):null})}" 2093 > 2094 ${e?W`<slot></slot>`:Mi(this.svgContent)} 2095 </span> 2096 `}}xa.styles=[ua,$a],ca([ve({type:String})],xa.prototype,"svgContent",void 0),ca([ve({reflect:!0})],xa.prototype,"name",void 0),ca([ve()],xa.prototype,"size",void 0);class Ca extends ga{constructor(){super(),this.as="button",this.target="_self",this.type="button",this.borderStyle="sharp",this.name="user",this.label="",this.extendClickArea=!1,this.disabled=!1,this.border=!1,this.loading=!1,this._extendedInteraction()}async _extendedInteraction(){await this.updateComplete,this.disabled}handleClick(){!this.disabled&&this.loading}buttonIcon(){return this.loading?W` 2097 <pu-icon 2098 part="icon" 2099 exportparts="base,svg" 2100 class="icon spinner" 2101 name="spinner" 2102 size=${vi(this.iconSize)} 2103 > 2104 </pu-icon> 2105 `:W` 2106 <pu-icon 2107 part="icon" 2108 exportparts="base,svg" 2109 name=${this.name} 2110 size=${vi(this.iconSize)} 2111 style="${Ie({"--pu-icon-font-size":this.iconSize?ba(this.iconSize):null})}" 2112 > 2113 <slot name="icon"></slot> 2114 </pu-icon> 2115 `}_getPaddingValue(){return this.padding?/^\d+$/.test(this.padding)?Number(this.padding)/16+"em":this.padding:null}buttonAs(){return"button"===this.as||void 0===this.url||""===this.url?W` 2116 <button 2117 part="base button" 2118 class="${Ae({"button-icon":!0,"btn--border":this.border,"btn--rounded":"rounded"===this.borderStyle,"btn--extend-interactive":this.extendClickArea})}" 2119 style="${Ie({"--padding":this._getPaddingValue()})}" 2120 type=${this.type} 2121 aria-label=${this.label} 2122 aria-controls=${vi(this.for)} 2123 ?disabled=${this.disabled} 2124 @click=${this.handleClick} 2125 > 2126 ${this.buttonIcon()} 2127 </button> 2128 `:this.url?W` 2129 <a 2130 part="base" 2131 class="${Ae({"button-icon":!0,"btn--border":this.border,"btn--rounded":"rounded"===this.borderStyle,"btn--extend-interactive":this.extendClickArea})}" 2132 href="${this.url}" 2133 target=${this.target} 2134 style="${Ie({"--padding":this._getPaddingValue()})}" 2135 aria-label=${this.label} 2136 ?disabled=${this.disabled} 2137 > 2138 ${this.buttonIcon()} 2139 </a> 2140 `:void 0}render(){return W` ${this.buttonAs()} `}}Ca.styles=[ua,ma],Ca.dependencies={"pu-icon":xa},Ca.shadowRootOptions={...he.shadowRootOptions,delegatesFocus:!0},ca([ve()],Ca.prototype,"as",void 0),ca([ve()],Ca.prototype,"for",void 0),ca([ve()],Ca.prototype,"url",void 0),ca([ve()],Ca.prototype,"target",void 0),ca([ve()],Ca.prototype,"type",void 0),ca([ve()],Ca.prototype,"borderStyle",void 0),ca([ve()],Ca.prototype,"name",void 0),ca([ve()],Ca.prototype,"iconSize",void 0),ca([ve()],Ca.prototype,"padding",void 0),ca([ve()],Ca.prototype,"label",void 0),ca([ve({type:Boolean})],Ca.prototype,"extendClickArea",void 0),ca([ve({type:Boolean,reflect:!0})],Ca.prototype,"disabled",void 0),ca([ve({type:Boolean})],Ca.prototype,"border",void 0),ca([ve({type:Boolean,reflect:!0})],Ca.prototype,"loading",void 0),Ca.define("pu-button-icon");const wa=(e="value")=>(t,o)=>{const i=t.constructor,a=i.prototype.attributeChangedCallback;i.prototype.attributeChangedCallback=function(t,s,r){const n=i.getPropertyOptions(e);if(t===("string"==typeof n.attribute?n.attribute:e)){const t=n.converter||w,i=("function"==typeof t?t:t?.fromAttribute??w.fromAttribute)(r,n.type);this[e]!==i&&(this[o]=i)}a.call(this,t,s,r)}};
2140class Sa{constructor(e,...t){this.slotNames=[],this.handleSlotChange=e=>{const t=e.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()},(this.host=e).addController(this),this.slotNames=t}hasDefaultSlot(){return[...this.host.childNodes].some((e=>{if(e.nodeType===e.TEXT_NODE&&""!==e.textContent.trim())return!0;if(e.nodeType===e.ELEMENT_NODE){const t=e;if("pu-visually-hidden"===t.tagName.toLowerCase())return!1;if(!t.hasAttribute("slot"))return!0}return!1}))}hasNamedSlot(e){return null!==this.host.querySelector(`:scope > [slot="${e}"]`)}test(e){return"[default]"===e?this.hasDefaultSlot():this.hasNamedSlot(e)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}}const{I:ka}=ce,_a={},Pa=_e(class extends Pe{constructor(e){if(super(e),e.type!==Se&&e.type!==Ce&&e.type!==ke)throw Error("The `live` directive is not allowed on child or event bindings");if(!(e=>void 0===e.strings)(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===Z||t===X)return t;const o=e.element,i=e.name;if(e.type===Se){if(t===o[i])return Z}else if(e.type===ke){if(!!t===o.hasAttribute(i))return Z}else if(e.type===Ce&&o.getAttribute(i)===t+"")return Z;return((e,t=_a)=>{e._$AH=t})(e),t}});var Aa=d` 2141 .form-control { 2142 position: relative; 2143 } 2144 .form-control .form-control__label { 2145 display: none; 2146 margin-bottom: var(--pu-space-100, 0.25em); 2147 font-size: var(--pu-form-control-label-font-size, var(--pu-input-label-font-size, 1em)); 2148 } 2149 .form-control.form-control--has-label .form-control__label { 2150 display: inline-block; 2151 } 2152 2153 /* Sizes */ 2154 .form-control--small { 2155 --pu-input-label-font-size: var(--pu-form-control-label-font-size, var(--pu-text-body-size-xs, 0.75em)); 2156 --pu-input-help-font-size: var(--pu-form-control-help-font-size, var(--pu-text-body-size-xs, 0.75em)); 2157 --pu-input-space-padding: var(--pu-form-control-space-inline-padding, var(--pu-space-300, 0.75em)); 2158 } 2159 .form-control--medium { 2160 --pu-input-label-font-size: var(--pu-form-control-label-font-size, var(--pu-text-body-size-sm, 0.875em)); 2161 --pu-input-help-font-size: var(--pu-form-control-help-font-size, var(--pu-text-body-size-sm, 0.875em)); 2162 --pu-input-space-padding: var(--pu-form-control-space-inline-padding, var(--pu-space-400, 1em)); 2163 } 2164 .form-control--large { 2165 --pu-input-label-font-size: var(--pu-form-control-label-font-size, var(--pu-text-body-size-md, 1em)); 2166 --pu-input-help-font-size: var(--pu-form-control-help-font-size, var(--pu-text-body-size-md, 1em)); 2167 --pu-input-space-padding: var(--pu-form-control-space-inline-padding, var(--pu-space-500, 1.25em)); 2168 } 2169 2170 /* Label */ 2171 .form-control__label { 2172 color: var(--pu-input-label-color-foreground, var(--pu-color-foreground, inherit)); 2173 letter-spacing: var(--pu-input-label-font-tracking, 0.05em); 2174 } 2175 2176 .form-control__label--visually-hidden { 2177 position: absolute; 2178 overflow: hidden; 2179 width: 1px; 2180 height: 1px; 2181 margin: -1px; 2182 padding: 0; 2183 border: 0; 2184 clip: rect(0 0 0 0); 2185 word-wrap: normal !important; 2186 } 2187 2188 /* Label positions */ 2189 2190 /* --inset top */ 2191 .form-control--label-inset-top:not(.form-control--hide-label).form-control--has-label .form-control__label { 2192 color: var(--pu-input-label-color-foreground, var(--pu-color-backround, inherit)); 2193 position: absolute; 2194 z-index: 10; 2195 } 2196 2197 .form-control--label-inset-top:not(.form-control--hide-label).form-control--has-label .form-control__label { 2198 margin-top: calc(var(--pu-input-space-padding) / 2); 2199 margin-left: var(--pu-input-space-padding); 2200 } 2201 2202 /* --inset left */ 2203 .form-control--label-inset-left:not(.form-control--hide-label).form-control--has-label.form-control--small { 2204 --pu-input-label-font-size: var(--pu-text-body-size-xs, 0.75em); 2205 --pu-input-space-padding: var(--pu-space-300, 0.75em); 2206 } 2207 2208 .form-control--label-inset-left:not(.form-control--hide-label).form-control--has-label.form-control--medium { 2209 --pu-input-label-font-size: var(--pu-text-body-size-sm, 0.875em); 2210 --pu-input-space-padding: var(--pu-space-400, 1em); 2211 } 2212 2213 .form-control--label-inset-left:not(.form-control--hide-label).form-control--has-label.form-control--large { 2214 --pu-input-label-font-size: var(--pu-text-body-size-md, 1em); 2215 --pu-input-space-padding: var(--pu-space-500, 1.25em); 2216 } 2217 2218 .form-control--label-inset-left:not(.form-control--hide-label).form-control--has-label .form-control__label { 2219 color: var(--pu-input-label-color-foreground, var(--pu-color-backround, inherit)); 2220 position: relative; 2221 margin-left: var(--pu-input-space-padding); 2222 padding-right: var(--pu-input-space-padding); 2223 margin-bottom: 0; 2224 flex: none; 2225 } 2226 .form-control--label-inset-left:not(.form-control--hide-label).form-control--has-label .form-control__label::after { 2227 content: ''; 2228 background-color: var(--pu-input-border-color, hsl(240, 5%, 65%)); 2229 position: absolute; 2230 right: 0; 2231 top: 0; 2232 height: 100%; 2233 width: 0.0625em; 2234 } 2235 2236 .form-control--label-inset-left:not(.form-control--hide-label).form-control--has-label .form-control__label { 2237 position: relative; 2238 margin-left: var(--pu-input-space-padding); 2239 padding-right: var(--pu-input-space-padding); 2240 margin-bottom: 0; 2241 flex: none; 2242 } 2243 2244 .form-control--label-inset-left:not(.form-control--hide-label).form-control--has-label .form-control__label::after { 2245 content: ''; 2246 background-color: var(--pu-input-border-color, hsl(240, 5%, 65%)); 2247 position: absolute; 2248 right: 0; 2249 top: 0; 2250 height: 100%; 2251 width: 0.0625em; 2252 } 2253 2254 .form-control--label-inset-left:not(.form-control--hide-label).form-control--has-label 2255 .select__combobox 2256 .form-control__label { 2257 margin-left: 0; 2258 margin-right: var(--pu-input-space-padding); 2259 } 2260 2261 .form-control--label-inset-left:not(.form-control--hide-label).form-control--has-label 2262 .select__combobox 2263 .form-control__label { 2264 margin-left: 0; 2265 margin-right: var(--pu-input-space-padding); 2266 } 2267 2268 /* Required fields */ 2269 :host([required]) .form-control__label::after { 2270 content: var(--pu-input-required-content, '*'); 2271 margin-inline-start: var(--pu-input-required-space-offset, -2px); 2272 color: var(--pu-input-required-color-foreground, hsl(240, 5%, 65%)); 2273 } 2274 2275 /* Help text */ 2276 .form-control__help-text { 2277 display: none; 2278 } 2279 2280 .form-control--has-help-text .form-control__help-text { 2281 display: inline-block; 2282 color: var(--pu-input-help-color-foreground, hsl(240, 5%, 65%)); 2283 font-size: var(--pu-input-help-font-size, 0.75em); 2284 margin-top: var(--pu-space-100, 0.25em); 2285 } 2286`;const Ta=[Aa,d` 2287 :host { 2288 display: inline-block; 2289 } 2290 2291 .checkbox { 2292 position: relative; 2293 display: inline-flex; 2294 align-items: flex-start; 2295 font-family: var(--pu-text-body-family); 2296 font-size: var(--pu-input-font-size); 2297 color: rgb(from var(--pu-input-color-foreground, inherit) r g b / alpha); 2298 vertical-align: middle; 2299 cursor: pointer; 2300 } 2301 2302 .checkbox__control { 2303 flex: 0 0 auto; 2304 position: relative; 2305 display: inline-flex; 2306 align-items: center; 2307 justify-content: center; 2308 padding: 2px; 2309 width: var(--checkbox-size); 2310 height: var(--checkbox-size); 2311 border: solid var(--pu-input-border-width, 0.0625em) 2312 rgb(from var(--pu-input-border-color, hsl(240, 5%, 65%)) r g b / alpha); 2313 border-radius: var(--pu-border-input-corner-radius, 0.125em); 2314 background-color: rgb(from var(--pu-input-color-background, hsl(0 0% 99.5%)) r g b / alpha); 2315 transition: 2316 var(--pu-transition-duration-150) border-color, 2317 var(--pu-transition-duration-150) background-color, 2318 var(--pu-transition-duration-150) color, 2319 var(--pu-transition-duration-150) box-shadow; 2320 } 2321
2322 /* Toggle checkbox Styles */ 2323 .checkbox-as-toggle { 2324 display: flex; 2325 align-items: center; 2326 gap: 0.75em; 2327 } 2328 2329 .checkbox-as-toggle .checkbox__label { 2330 margin: 0; 2331 } 2332 2333 .checkbox-as-toggle .checkbox__control { 2334 position: relative; 2335 width: var(--pu-checkbox-toggle-size-x, var(--toggle-size-x)); 2336 height: var(--pu-checkbox-toggle-size-y, var(--toggle-size-y)); 2337 border-radius: var(--pu-border-input-corner-radius, var(--pu-border-radius-full, 9999px)); 2338 padding: 3px; 2339 } 2340 2341 .checkbox-as-toggle .checkbox__toggle-button { 2342 display: inline-block; 2343 aspect-ratio: 1 / 1; 2344 height: 100%; 2345 margin-right: auto; 2346 border-radius: var(--pu-border-input-corner-radius, var(--pu-border-radius-full, 9999px)); 2347 background-color: rgb(from var(--pu-input-icon-color-foreground, hsl(240, 5%, 26%)) r g b / alpha); 2348 } 2349 2350 /* Icon checked */ 2351 .checkbox-as-toggle.checkbox--checked .checkbox__toggle-button { 2352 background-color: rgb(from var(--pu-input-icon-color-foreground-checked, hsl(0 0% 99.5%)) r g b / alpha); 2353 margin-left: auto; 2354 margin-right: 0; 2355 } 2356 2357 /* Icon hover checked */ 2358 .checkbox-as-toggle.checkbox--checked .checkbox__toggle-button:hover { 2359 background-color: rgb(from var(--pu-input-icon-color-foreground-checked-hover, hsl(0 0% 99.5%)) r g b / alpha); 2360 } 2361 2362 /* Icon hover unchecked */ 2363 .checkbox-as-toggle:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__toggle-button:hover { 2364 border-color: rgb(from var(--pu-input-icon-color-foreground-hover, hsl(240, 4%, 46%)) r g b / alpha); 2365 background-color: rgb(from var(--pu-input-icon-color-foreground-hover, hsl(240, 5%, 6%)) r g b / alpha); 2366 } 2367 2368 /* Input hover checked/indeterminate */ 2369 .checkbox-as-toggle.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover, 2370 .checkbox-as-toggle.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover { 2371 border-color: rgb(from var(--pu-input-border-color-checked-hover, hsl(224.3, 76.3%, 48%)) r g b / alpha); 2372 background-color: rgb(from var(--pu-input-border-color-checked-hover, hsl(224.3, 76.3%, 48%)) r g b / alpha); 2373 } 2374 2375 .checkbox__input { 2376 position: absolute; 2377 opacity: 0; 2378 padding: 0; 2379 margin: 0; 2380 pointer-events: none; 2381 } 2382 2383 .checkbox__checked-icon, 2384 .checkbox__indeterminate-icon { 2385 display: inline-flex; 2386 --pu-icon-color-foreground: rgb( 2387 from var(--pu-input-icon-color-foreground-checked, hsl(0 0% 99.5%)) r g b / alpha 2388 ); 2389 --pu-icon-font-size: calc(var(--checkbox-size) * 0.7); 2390 } 2391 2392 .checkbox__label { 2393 display: inline-block; 2394 margin-inline-start: 0.5em; 2395 user-select: none; 2396 -webkit-user-select: none; 2397 } 2398 2399 :host([required]) .checkbox__label::after { 2400 content: var(--pu-input-required-content, '*'); 2401 color: rgb(from var(--pu-input-required-color-foreground, hsl(240, 5%, 65%)) r g b / alpha); 2402 margin-inline-start: var(--pu-input-required-space-offset, -2px); 2403 } 2404 2405 /* Hover checked*/ 2406 .checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover { 2407 border-color: rgb(from var(--pu-input-border-color-hover, hsl(240, 4%, 46%)) r g b / alpha); 2408 background-color: rgb(from var(--pu-input-color-background-hover, hsl(240, 5%, 96%)) r g b / alpha); 2409 } 2410 2411 .checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover .checkbox__checked-icon, 2412 .checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover .checkbox__indeterminate-icon { 2413 display: inline-flex; 2414 --pu-icon-color-foreground: rgb( 2415 from var(--pu-input-icon-color-foreground-hover, hsl(0, 0%, 99.5%)) r g b / alpha 2416 ); 2417 } 2418 2419 /* Focus */ 2420 .checkbox:not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control { 2421 outline: var(--pu-border-focus-style, solid) var(--pu-border-focus-width, 2px) 2422 rgb(from var(--pu-color-focus-ring, hsl(213.1, 93.9%, 67.8%)) r g b / alpha); 2423 outline-offset: var(--pu-border-focus-offset, 0.0625em); 2424 } 2425 2426 /* Checked/indeterminate */ 2427 .checkbox--checked .checkbox__control, 2428 .checkbox--indeterminate .checkbox__control { 2429 border-color: rgb(from var(--pu-input-border-color-checked, hsl(224.3, 76.3%, 48%)) r g b / alpha); 2430 background-color: rgb(from var(--pu-input-color-background-checked, hsl(221.2, 83.2%, 53.3%)) r g b / alpha); 2431 } 2432 2433 /* Checked/indeterminate + hover */ 2434 .checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover, 2435 .checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover { 2436 border-color: rgb(from var(--pu-input-border-color-checked-hover, hsl(224.3, 76.3%, 48%)) r g b / alpha); 2437 background-color: rgb(from var(--pu-input-border-color-checked-hover, hsl(224.3, 76.3%, 48%)) r g b / alpha); 2438 } 2439 2440 /* Disabled */ 2441 .checkbox--disabled { 2442 opacity: 0.5;
2443 cursor: not-allowed; 2444 } 2445`,d` 2446 /* Size API Classes */ 2447 .checkbox--small { 2448 --checkbox-size: var(--pu-space-400, 1em); 2449 --toggle-size-x: 2.5rem; 2450 --toggle-size-y: 1.5rem; 2451 --pu-input-label-font-size: var(--pu-text-body-size-xs, 0.75em); 2452 } 2453 2454 .checkbox--medium { 2455 --checkbox-size: var(--pu-space-500, 1.25em); 2456 --toggle-size-x: 3.25rem; 2457 --toggle-size-y: 1.75rem; 2458 --pu-input-label-font-size: var(--pu-text-body-size-sm, 0.875em); 2459 } 2460 2461 .checkbox--large { 2462 --checkbox-size: var(--pu-space-600, 1.5em); 2463 --toggle-size-x: 4rem; 2464 --toggle-size-y: 2.25rem; 2465 --pu-input-label-font-size: var(--pu-text-body-size-md, 1em); 2466 } 2467`];function Ea(e,t,o,i){const a=i.find((e=>e.old===t));if(!a)return void console.warn(`No mapping found for deprecated property "${t}"`);const s=void 0===o||""===o?"function"==typeof a.defaultValue?a.defaultValue():a.defaultValue:o;e[a.new]=s,console.warn(`The "${t}" property is deprecated. Please use "${a.new}" instead.`)}class Ia extends ga{constructor(){super(...arguments),this.formControlController=new ji(this,{value:e=>e.checked?e.value||"on":void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=Boolean(t)}),this.hasSlotController=new Sa(this,"label","help-text"),this.hasFocus=!1,this.asToggle=!1,this.label="",this.labelHidden=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form="",this.required=!1,this.helpText="",this.deprecatedPropertyMap=[{old:"hideLabel",new:"labelHidden",defaultValue:!1}]}get hideLabel(){return this.labelHidden}set hideLabel(e){this._handleDeprecated("hideLabel",e)}_handleDeprecated(e,t){Ea(this,e,t,this.deprecatedPropertyMap)}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit("pu-change")}handleBlur(){this.hasFocus=!1,this.emit("pu-blur")}handleInput(){this.emit("pu-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleFocus(){this.hasFocus=!0,this.emit("pu-focus")}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){const e=this.hasSlotController.test("label"),t=!!this.label||!!e,o=this.hasSlotController.test("help-text"),i=!!this.helpText||!!o;return W` 2468 <div 2469 part="base checkbox" 2470 class=${Ae({"form-control":!0,"form-control--has-label":t,"form-control--hide-label":this.labelHidden,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-help-text":i})} 2471 > 2472 <label 2473 part="checkbox" 2474 class=${Ae({checkbox:!0,"checkbox--checked":this.checked,"checkbox--disabled":this.disabled,"checkbox--focused":this.hasFocus,"checkbox--indeterminate":this.indeterminate,"checkbox--small":"small"===this.size,"checkbox--medium":"medium"===this.size,"checkbox--large":"large"===this.size,"checkbox-as-toggle":this.asToggle})} 2475 > 2476 <input 2477 part="input" 2478 class="checkbox__input" 2479 type="checkbox" 2480 title=${this.title} 2481 name=${this.name} 2482 value=${vi(this.value)} 2483 .indeterminate=${this.indeterminate} 2484 .checked=${Pa(this.checked)} 2485 .disabled=${this.disabled} 2486 .required=${this.required} 2487 aria-checked=${this.checked?"true":"false"} 2488 aria-describedby="help-text" 2489 @click=${this.handleClick}
2490 @input=${this.handleInput} 2491 @invalid=${this.handleInvalid} 2492 @blur=${this.handleBlur} 2493 @focus=${this.handleFocus} 2494 /> 2495 <span 2496 part="control" 2497 class="checkbox__control" 2498 > 2499 ${this.checked&&!this.asToggle?W` 2500 <pu-icon 2501 part="icon" 2502 exportparts="base,svg" 2503 class="checkbox__checked-icon" 2504 name="check" 2505 > 2506 <slot name="icon"></slot> 2507 </pu-icon> 2508 `:""} 2509 ${this.checked||!this.indeterminate||this.asToggle?"":W` 2510 <pu-icon 2511 part="icon" 2512 exportparts="base,svg" 2513 class="checkbox__indeterminate-icon" 2514 name="minus" 2515 > 2516 <slot name="icon"></slot> 2517 </pu-icon> 2518 `} 2519 ${this.asToggle?W` <span class="checkbox__toggle-button"></span> `:""} 2520 </span> 2521 <div 2522 part="label" 2523 class="${Ae({checkbox__label:!0,"form-control__label":!0,"form-control__label--visually-hidden":this.labelHidden})}" 2524 aria-hidden=${t?"false":"true"} 2525 > 2526 <slot name="label">${this.label}</slot> 2527 </div> 2528 </label> 2529 2530 <div 2531 part="help" 2532 aria-hidden=${i?"false":"true"} 2533 class="form-control__help-text" 2534 id="help-text" 2535 > 2536 <slot name="help-text">${this.helpText}</slot> 2537 </div> 2538 </div> 2539 `}}Ia.styles=[ua,Ta],Ia.dependencies={"pu-icon":xa},ca([xe('input[type="checkbox"]')],Ia.prototype,"input",void 0),ca([ye()],Ia.prototype,"hasFocus",void 0),ca([ve({type:Boolean})],Ia.prototype,"asToggle",void 0),ca([ve()],Ia.prototype,"label",void 0),ca([ve({type:Boolean})],Ia.prototype,"labelHidden",void 0),ca([ve()],Ia.prototype,"title",void 0),ca([ve()],Ia.prototype,"name",void 0),ca([ve()],Ia.prototype,"value",void 0),ca([ve({reflect:!0})],Ia.prototype,"size",void 0),ca([ve({type:Boolean,reflect:!0})],Ia.prototype,"disabled",void 0),ca([ve({type:Boolean,reflect:!0})],Ia.prototype,"checked",void 0),ca([ve({type:Boolean,reflect:!0})],Ia.prototype,"indeterminate",void 0),ca([wa("checked")],Ia.prototype,"defaultChecked",void 0),ca([ve({reflect:!0})],Ia.prototype,"form",void 0),ca([ve({type:Boolean,reflect:!0})],Ia.prototype,"required",void 0),ca([ve({attribute:"help-text"})],Ia.prototype,"helpText",void 0),ca([ve({type:Boolean})],Ia.prototype,"hideLabel",null),ca([pa(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],Ia.prototype,"handleStateChange",null),Ia.define("pu-checkbox"),xa.define("pu-icon");const za=[Aa,d` 2540 /* Main container */ 2541 .input { 2542 display: inline-flex; 2543 align-items: center; 2544 background-color: rgb(from var(--pu-input-color-background, hsl(0 0% 99.5%)) r g b / alpha); 2545 border: solid var(--pu-input-border-width, 0.0625em) 2546 rgb( 2547 from var(--pu-input-border-color, hsl(240, 5%, 65%)) r g b / 2548 calc(alpha * var(--pu-input-opacity-border, 1)) 2549 ); 2550 border-radius: var(--pu-input-border-radius, var(--pu-border-radius, 0.25em)); 2551 height: var(--pu-size-height); 2552 overflow: hidden; 2553 width: 100%; 2554 cursor: text; 2555 } 2556 2557 .input:hover:not(.input--disabled) { 2558 color: rgb(from var(--pu-input-color-foreground-hover, inherit) r g b / alpha); 2559 background-color: rgb(from var(--pu-input-color-background-hover, hsl(240, 5%, 96%)) r g b / alpha); 2560 border-color: rgb(from var(--pu-input-border-color-hover, hsl(240, 4%, 46%)) r g b / alpha); 2561 } 2562 2563 .input.input--focused:not(.input--disabled) { 2564 background-color: rgb(from var(--pu-color-focus-background) r g b / alpha); 2565 border-color: rgb(from var(--pu-color-focus-border) r g b / alpha); 2566 box-shadow: 2567 0 0 0 0.0625em rgb(from var(--pu-color-focus-background) r g b / alpha), 2568 0 0 0 0.25em rgb(from var(--pu-color-focus-ring, hsl(213.1 93.9% 67.8%)) r g b / alpha); 2569 } 2570 2571 /* Input field */
2572 .input__control { 2573 appearance: none; 2574 background: inherit; 2575 color: rgb(from var(--pu-input-color-foreground, inherit) r g b / alpha); 2576 border: none; 2577 flex: 1 1 auto; 2578 font-family: inherit; 2579 font-size: var(--pu-text-size); 2580 height: calc(var(--pu-size-height, 3em) - var(--pu-input-border-width, 0.0625em) * 2); 2581 letter-spacing: var(--pu-input-font-tracking, 0.05em); 2582 padding: 0 var(--pu-space-padding); 2583 width: 100%; 2584 cursor: inherit; 2585 } 2586 2587 .input__control::placeholder { 2588 color: rgb(from var(--pu-input-placeholder-color-foreground, hsl(240, 4%, 46%)) r g b / alpha); 2589 } 2590 .input__control:hover { 2591 color: rgb(from var(--pu-input-color-foreground-hover, inherit) r g b / alpha); 2592 } 2593 .input__control:focus { 2594 outline: none; 2595 } 2596 2597 /* Prefix/Suffix */ 2598 .input__prefix, 2599 .input__suffix { 2600 display: inline-flex; 2601 flex: 0 0 auto; 2602 align-items: center; 2603 cursor: default; 2604 --pu-icon-color-foreground: rgb(from var(--pu-input-icon-color-foreground, hsl(240 5.9% 10%)) r g b / alpha); 2605 } 2606 .input__prefix ::slotted(*) { 2607 display: flex; 2608 margin-left: var(--pu-space-padding); 2609 } 2610 .input__suffix ::slotted(*) { 2611 display: flex; 2612 margin-right: var(--pu-space-padding); 2613 } 2614`,d` 2615 /* State API Classes */ 2616 .input--disabled { 2617 background-color: rgb(from var(--pu-input-color-background-disabled, hsl(240, 5%, 96%)) r g b / alpha); 2618 border-color: rgb(from var(--pu-input-border-color-disabled, hsl(240, 5%, 84%), inherit) r g b / alpha); 2619 color: rgb(from var(--pu-input-color-foreground-disabled, inherit) r g b / alpha); 2620 cursor: not-allowed; 2621 opacity: 0.5; 2622 } 2623 2624 /* Size API Classes */ 2625 .input--small { 2626 --pu-text-size: var(--pu-input-font-size, var(--pu-text-body-size-xs, 0.75em)); 2627 --pu-size-height: var(--pu-input-size-height, var(--pu-space-800, 2em)); 2628 --pu-space-padding: var(--pu-input-space-inline-padding, var(--pu-space-300, 0.75em)); 2629 --pu-border-radius: var(--pu-input-border-radius, var(--pu-border-radius-050, 0.125em)); 2630 --pu-icon-font-size: var(--pu-input-icon-font-size, var(--pu-text-body-size-sm, 0.875em)); 2631 } 2632 .input--medium { 2633 --pu-text-size: var(--pu-input-font-size, var(--pu-text-body-size-sm, 0.875em)); 2634 --pu-size-height: var(--pu-space-1000, 2.5em); 2635 --pu-space-padding: var(--pu-input-space-inline-padding, var(--pu-space-400, 1em)); 2636 --pu-border-radius: var(--pu-input-border-radius, var(--pu-border-radius-100, 0.25em)); 2637 --pu-icon-font-size: var(--pu-input-icon-font-size, var(--pu-text-body-size-md, 1em)); 2638 } 2639 .input--large { 2640 --pu-text-size: var(--pu-input-font-size, var(--pu-text-body-size-md, 1em)); 2641 --pu-size-height: var(--pu-input-size-height, var(--pu-space-1200, 3em)); 2642 --pu-space-padding: var(--pu-input-space-inline-padding, var(--pu-space-500, 1.25em)); 2643 --pu-border-radius: var(--pu-input-border-radius, var(--pu-border-radius-200, 0.5em)); 2644 --pu-icon-font-size: var(--pu-input-icon-font-size, var(--pu-text-body-size-md, 1em)); 2645 } 2646 2647 /* Label Position API Classes */ 2648 .input--label-inset-top:not(.input--hide-label).input--has-label.input--small, 2649 .input--label-inset-top:not(.input--hide-label).input--has-label.input--medium, 2650 .input--label-inset-top:not(.input--hide-label).input--has-label.input--large { 2651 height: calc(var(--pu-size-height) + calc(var(--pu-space-padding) * 1.5)); 2652 padding-top: calc(var(--pu-space-padding) * 1.5); 2653 } 2654`];class Ma extends ga{constructor(){super(...arguments),this.formControlController=new ji(this,{assumeInteractionOn:["pu-blur","pu-input"]}),this.type="text",this.inputmode="text",this.autocomplete="on",this.size="medium",this.name="",this.value="",this.form="",this.label="",this.labelHidden=!1,this.helpText="",this.positionLabel="above",this.placeholder="",this.readonly=!1,this.required=!1,this.disabled=!1,this.autofocus=!1,this.hasFocus=!1,this.hasSlotController=new Sa(this,"label","help-text"),this.deprecatedPropertyMap=[{old:"hideLabel",new:"labelHidden",defaultValue:!1}]}get hideLabel(){return this.labelHidden}set hideLabel(e){this._handleDeprecated("hideLabel",e)}_handleDeprecated(e,t){Ea(this,e,t,this.deprecatedPropertyMap)}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}
2654handleBlur(){this.hasFocus=!1,this.emit("pu-blur")}handleFocus(){this.hasFocus=!0,this.emit("pu-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("pu-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleChange(){this.value=this.input.value,this.emit("pu-change")}handleKeyDown(e){const t=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;"Enter"!==e.key||t||setTimeout((()=>{e.defaultPrevented||e.isComposing||this.formControlController.submit()}))}checkValidity(){return this.input.checkValidity()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}getForm(){return this.formControlController.getForm()}getValue(){if(this.input)return this.input.value}setValue(e){e&&(this.value=e)}render(){const e=this.hasSlotController.test("label"),t=this.hasSlotController.test("help-text"),o=!!this.label||!!e,i=this.labelHidden&&this.required?`* ${this.placeholder}`:this.placeholder,a=!!this.helpText||!!t;return W` 2655 <div 2656 part="base input" 2657 class="${Ae({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-label":o,"form-control--hide-label":this.labelHidden,"form-control--has-help-text":a,[`form-control--label-${this.positionLabel}`]:!0})}"> 2658 ${"above"===this.positionLabel||"inset-top"===this.positionLabel?W` 2659 <label 2660 part="label" 2661 class="${Ae({"form-control__label":!0,"form-control__label--visually-hidden":this.labelHidden})}" 2662 for="input" 2663 aria-hidden=${o?"false":"true"}> 2664 <slot name="label">${this.label}</slot> 2665 </label> 2666 `:""} 2667 <div class="form-control__input"> 2668 <div 2669 part="input" 2670 class=${Ae({input:!0,"input--small":"small"===this.size,"input--medium":"medium"===this.size,"input--large":"large"===this.size,"input--disabled":this.disabled,"input--focused":this.hasFocus,"input--empty":!this.value,"input--has-label":o,"input--hide-label":this.labelHidden,[`input--label-${this.positionLabel}`]:!0})}> 2671 <span 2672 part="prefix" 2673 class="input__prefix"> 2674 <slot name="prefix"></slot> 2675 </span> 2676 ${"inset-left"===this.positionLabel?W` 2677 <label 2678 part="label" 2679 class="${Ae({"form-control__label":!0,"form-control__label--visually-hidden":this.labelHidden})}" 2680 for="input" 2681 aria-hidden=${o?"false":"true"}> 2682 <slot name="label">${this.label}</slot> 2683 </label> 2684 `:""} 2685 <input 2686 part="control" 2687 class="input__control" 2688 id="input" 2689 inputmode="${this.inputmode}" 2690 autocomplete=${vi(this.autocomplete)} 2691 type="${this.type}" 2692 .value="${this.value}" 2693 name="${vi(this.name)}" 2694 placeholder="${i}" 2695 ?disabled="${this.disabled}" 2696 ?readonly=${this.readonly} 2697 ?required="${this.required}" 2698 ?autofocus=${this.autofocus} 2699 @change=${this.handleChange} 2700 @input=${this.handleInput} 2701 @invalid=${this.handleInvalid} 2702 @keydown=${this.handleKeyDown} 2703 @focus=${this.handleFocus} 2704 @blur=${this.handleBlur} />
2705 <span 2706 part="suffix" 2707 class="input__suffix"> 2708 <slot name="suffix"></slot> 2709 </span> 2710 </div> 2711 </div> 2712 <div 2713 part="help" 2714 id="help-text" 2715 class="form-control__help-text" 2716 aria-hidden=${a?"false":"true"}> 2717 <slot name="help-text">${this.helpText}</slot> 2718 </div> 2719 </div> 2720 `}}Ma.styles=[ua,za],ca([ve()],Ma.prototype,"type",void 0),ca([ve()],Ma.prototype,"inputmode",void 0),ca([ve()],Ma.prototype,"autocomplete",void 0),ca([ve({reflect:!0})],Ma.prototype,"size",void 0),ca([ve()],Ma.prototype,"name",void 0),ca([ve({reflect:!0})],Ma.prototype,"value",void 0),ca([ve({reflect:!0})],Ma.prototype,"form",void 0),ca([ve()],Ma.prototype,"label",void 0),ca([ve({type:Boolean})],Ma.prototype,"labelHidden",void 0),ca([ve()],Ma.prototype,"helpText",void 0),ca([ve()],Ma.prototype,"positionLabel",void 0),ca([ve()],Ma.prototype,"placeholder",void 0),ca([ve({type:Boolean})],Ma.prototype,"readonly",void 0),ca([ve({type:Boolean})],Ma.prototype,"required",void 0),ca([ve({type:Boolean,reflect:!0})],Ma.prototype,"disabled",void 0),ca([ve({type:Boolean})],Ma.prototype,"autofocus",void 0),ca([ye()],Ma.prototype,"hasFocus",void 0),ca([xe("input")],Ma.prototype,"input",void 0),ca([ve({type:Boolean})],Ma.prototype,"hideLabel",null),Ma.define("pu-input");const Fa=[d` 2721 :host { 2722 display: inline-block; 2723 font-size: inherit; 2724 --foreground-color: var(--pu-link-color-foreground, var(--pu-color-foreground, inherit)); 2725 } 2726 .link { 2727 color: var(--foreground-color); 2728 text-underline-offset: 0.3em; 2729 display: inline-flex; 2730 align-items: center; 2731 gap: 0.5em; 2732 flex-wrap: nowrap; 2733 white-space: nowrap; 2734 cursor: pointer; 2735 } 2736 .link:not(.link--underline) { 2737 text-decoration: none; 2738 text-decoration-color: rgba(from var(--foreground-color) r g b / 0); 2739 transition: text-decoration-color 0.2s ease-in-out; 2740 } 2741 .link:not(.link--underline):hover { 2742 text-decoration: underline; 2743 text-decoration-color: rgba(from var(--foreground-color) r g b / 1); 2744 } 2745`,d` 2746 /* Boolean Property API - Underline Behavior */ 2747 .link--underline { 2748 text-decoration: underline; 2749 text-decoration-color: rgba(from var(--foreground-color) r g b / 0.5); 2750 transition: text-decoration-color 0.2s ease-in-out; 2751 } 2752 .link--underline:hover { 2753 text-decoration-color: rgba(from var(--foreground-color) r g b / 1); 2754 } 2755 2756 /* Boolean Property API - Wrap Behavior */ 2757 .link--wrap { 2758 white-space: wrap; 2759 } 2760`];class Oa extends ga{constructor(){super(...arguments),this.target="_self",this.wrap=!1,this.underline=!1}render(){return W` 2761 <a 2762 part="link" 2763 href="${vi(this.url)}" 2764 class="${Ae({link:!0,"link--wrap":this.wrap,"link--underline":this.underline})}" 2765 target="${this.target}" 2766 > 2767 <slot></slot> 2768 <slot name="label"></slot> 2769 </a> 2770 `}}Oa.styles=[ua,Fa],Oa.shadowRootOptions={...he.shadowRootOptions,delegatesFocus:!0},ca([ve()],Oa.prototype,"url",void 0),ca([ve()],Oa.prototype,"target",void 0),ca([ve({type:Boolean})],Oa.prototype,"wrap",void 0),ca([ve({type:Boolean})],Oa.prototype,"underline",void 0),Oa.define("pu-link");d` 2771 @media screen and (max-width: 64.9375em) { 2772 .flex-narrow-justify--start { 2773 justify-content: start; 2774 } 2775 .flex-narrow-justify--center { 2776 justify-content: center; 2777 } 2778 .flex-narrow-justify--end { 2779 justify-content: end; 2780 } 2781 .flex-narrow-justify--space-evenly { 2782 justify-content: space-evenly; 2783 } 2784 .flex-narrow-justify--space-between { 2785 justify-content: space-between; 2786 } 2787 .flex-narrow-justify--space-around { 2788 justify-content: space-around; 2789 } 2790 .flex-narrow-justify--stretch { 2791 justify-content: stretch; 2792 } 2793 } 2794`,d` 2795 @media screen and (max-width: 64.9375em) { 2796 .flex-narrow-align--start { 2797 align-items: start; 2798 } 2799 .flex-narrow-align--center { 2800 align-items: center; 2801 } 2802 .flex-narrow-align--end { 2803 align-items: end; 2804 } 2805 .flex-narrow-align--baseline { 2806 align-items: baseline; 2807 } 2808 .flex-narrow-align--stretch { 2809 align-items: stretch; 2810 } 2811 } 2812`;const Da=[d` 2813 :host([noWrap]) { 2814 display: block; 2815 width: 100%; 2816 } 2817 .link-group { 2818 display: flex; 2819 flex-wrap: wrap; 2820 width: 100%; 2821 } 2822 @media (min-width: 48em) { 2823 .link-group { 2824 gap: var(--pu-group-space-gap, var(--gap-x, 1em)); 2825 } 2826 } 2827 @media (max-width: 47.9975em) { 2828 .link-group { 2829 gap: var(--pu-group-space-gap, var(--gap-x-narrow, 1em)); 2830 } 2831 } 2832`,d` 2833 @media screen and (min-width: 48em) { 2834 .flex-justify--start { 2835 justify-content: start; 2836 } 2837 .flex-justify--center { 2838 justify-content: center; 2839 } 2840 .flex-justify--end { 2841 justify-content: end; 2842 } 2843 .flex-justify--space-evenly { 2844 justify-content: space-evenly; 2845 } 2846 .flex-justify--space-between { 2847 justify-content: space-between; 2848 } 2849 .flex-justify--space-around { 2850 justify-content: space-around; 2851 } 2852 .flex-justify--stretch { 2853 justify-content: stretch; 2854 } 2855 } 2856`,d` 2857 @media screen and (max-width: 47.9375em) { 2858 .flex-narrow-justify--start { 2859 justify-content: start; 2860 } 2861 .flex-narrow-justify--center { 2862 justify-content: center; 2863 } 2864 .flex-narrow-justify--end { 2865 justify-content: end; 2866 } 2867 .flex-narrow-justify--space-evenly { 2868 justify-content: space-evenly; 2869 } 2870 .flex-narrow-justify--space-between { 2871 justify-content: space-between; 2872 } 2873 .flex-narrow-justify--space-around { 2874 justify-content: space-around; 2875 } 2876 .flex-narrow-justify--stretch { 2877 justify-content: stretch; 2878 } 2879 } 2880`,d` 2881 @media screen and (min-width: 48em) { 2882 .flex-align--start { 2883 align-items: start; 2884 } 2885 .flex-align--center { 2886 align-items: center; 2887 } 2888 .flex-align--end { 2889 align-items: end; 2890 } 2891 .flex-align--baseline { 2892 align-items: baseline; 2893 } 2894 .flex-align--stretch { 2895 align-items: stretch; 2896 } 2897 } 2898`,d` 2899 @media screen and (max-width: 47.9375em) { 2900 .flex-narrow-align--start { 2901 align-items: start; 2902 } 2903 .flex-narrow-align--center { 2904 align-items: center; 2905 } 2906 .flex-narrow-align--end { 2907 align-items: end; 2908 } 2909 .flex-narrow-align--baseline { 2910 align-items: baseline; 2911 } 2912 .flex-narrow-align--stretch { 2913 align-items: stretch; 2914 } 2915 } 2916`,d` 2917 /* No Wrap scrollable when overflowed */ 2918 .group--no-wrap { 2919 flex-wrap: nowrap; 2920 justify-content: start; 2921 overflow-y: auto; 2922 max-width: 100%; 2923 scrollbar-color: rgb(from var(--pu-color-foreground, rgb(0, 0, 0, 0.1)) r g b / 0.1) 2924 rgb(from var(--pu-color-foreground, rgb(0, 0, 0, 0.05)) r g b / 0.05); 2925 scrollbar-width: thin; 2926 padding: 0.5em 0; 2927 } 2928 2929 .group--no-wrap ::slotted(:last-child) { 2930 margin-right: 1.5em; 2931 } 2932 2933 /* Horizontal Scrolling Behavior */ 2934 @media (hover: none) { 2935 .group--no-wrap::-webkit-scrollbar {
2936 display: none; 2937 } 2938 } 2939 @media (hover: hover) { 2940 .group--no-wrap::-webkit-scrollbar { 2941 height: 0.25em; 2942 } 2943 .group--no-wrap::-webkit-scrollbar-track { 2944 background: rgb(from var(--pu-color-foreground, rgb(0, 0, 0, 0.05)) r g b / 0.05); 2945 border-radius: 0.75em; 2946 } 2947 .group--no-wrap::-webkit-scrollbar-thumb { 2948 background: rgb(from var(--pu-color-foreground, rgb(0, 0, 0, 0.1)) r g b / 0.1); 2949 border-radius: 0.75em; 2950 } 2951 } 2952 2953 /* Boolean Property API - Stack Behavior */ 2954 @media screen and (max-width: 48em) { 2955 .group--narrow-stack:not(.group--no-wrap) { 2956 flex-direction: column; 2957 } 2958 } 2959 @media screen and (min-width: 48.06em) { 2960 .group--stack:not(.group--no-wrap) { 2961 flex-direction: column; 2962 } 2963 } 2964`];class La extends ga{constructor(){super(...arguments),this.noWrap=!1,this.stack=!1,this.stackNarrow=!1,this.isStackedNarrow=()=>this.stackNarrow?"flex-narrow-align--"+this.justifyNarrow:this.justifyNarrow?"flex-narrow-justify--"+this.justifyNarrow:"flex-narrow-justify--"+this.justify}styles(){let e={};return this.spacing&&(e={...e,"--gap-x":parseInt(this.spacing)/16+"em"}),this.spacingNarrow?e={...e,"--gap-x-narrow":parseInt(this.spacingNarrow)/16+"em"}:this.spacing&&(e={...e,"--gap-x-narrow":parseInt(this.spacing)/16+"em"}),e}render(){const e=this.stack?`flex-align--${this.justify}`:`flex-justify--${this.justify}`,t=this.isStackedNarrow();return W` 2965 <div 2966 part="base link-group" 2967 class="${Ae({"link-group":!0,"group--no-wrap":this.noWrap,"group--stack":this.stack,"group--narrow-stack":this.stackNarrow,[`${e}`]:!0,[`${t}`]:t})}" 2968 style="${Ie(this.styles())}" 2969 > 2970 <slot></slot> 2971 </div> 2972 `}}La.styles=[ua,Da],ca([ve()],La.prototype,"spacing",void 0),ca([ve()],La.prototype,"spacingNarrow",void 0),ca([ve()],La.prototype,"justify",void 0),ca([ve()],La.prototype,"justifyNarrow",void 0),ca([ve({type:Boolean})],La.prototype,"noWrap",void 0),ca([ve({type:Boolean})],La.prototype,"stack",void 0),ca([ve({type:Boolean})],La.prototype,"stackNarrow",void 0),La.define("pu-link-group");const Na=[d` 2973 :host { 2974 display: block; 2975 user-select: none; 2976 -webkit-user-select: none; 2977 } 2978 2979 :host(:focus) { 2980 outline: none; 2981 } 2982 2983 .option { 2984 position: relative; 2985 display: flex; 2986 align-items: center; 2987 font-family: var(--pu-font-family-body); 2988 font-size: var(--pu-text-body-size-sm, 0.875em); 2989 line-height: var(--pu-font-leading-500, 1.5); 2990 letter-spacing: var(--pu-select-option-font-tracking, 0.05em); 2991 color: rgb(from var(--pu-select-option-color-foreground, hsl(240, 4%, 16%)) r g b / alpha); 2992 padding: var(--pu-space-200, 0.5em) var(--pu-space-400, 1em); 2993 transition: var(--pu-transition-duration-150) fill; 2994 cursor: pointer; 2995 } 2996 2997 .option .option__check { 2998 flex: 0 0 auto; 2999 display: flex; 3000 align-items: center; 3001 justify-content: center; 3002 visibility: hidden; 3003 padding-inline-end: var(--pu-space-200, 0.5em); 3004 } 3005 3006 .option:not(.option--selected) { 3007 padding-inline-start: var(--pu-space-1000, 2.5em); 3008 } 3009 3010 @media (max-width: 47.9975em) { 3011 .option { 3012 padding: var(--pu-space-300, 0.75em) var(--pu-space-400, 1em); 3013 } 3014 } 3015 3016 .option__label { 3017 flex: 1 1 auto; 3018 display: inline-block; 3019 line-height: var(--pu-font-leading-300); 3020 text-align: left; 3021 } 3022 3023 .option__prefix, 3024 .option__suffix { 3025 flex: 0 0 auto; 3026 display: flex; 3027 align-items: center; 3028 } 3029 3030 .option__prefix::slotted(*) { 3031 margin-inline-end: var(--pu-space-100, 0.25em); 3032 } 3033 3034 .option__suffix::slotted(*) { 3035 margin-inline-start: var(--pu-space-100, 0.25em); 3036 } 3037 3038 @media (forced-colors: active) { 3039 :host(:hover:not([aria-disabled='true'])) .option { 3040 outline: dashed 0.0625em SelectedItem; 3041 outline-offset: -0.0625em; 3042 } 3043 } 3044`,d` 3045 /* State API Classes */ 3046 .option--hover:not(.option--current):not(.option--disabled) { 3047 background-color: rgb(from var(--pu-select-option-color-background-hover, hsl(0, 0%, 97.5%)) r g b / alpha); 3048 color: rgb(from var(--pu-select-option-color-foreground-hover, hsl(240, 5%, 26%)) r g b / alpha); 3049 } 3050 3051 .option--current, 3052 .option--current.option--disabled { 3053 background-color: rgb(from var(--pu-select-option-color-background, hsl(240, 5%, 96%)) r g b / alpha); 3054 color: rgb(from var(--pu-select-option-color-foreground-selected, hsl(240, 5%, 26%)) r g b / alpha); 3055 opacity: 1; 3056 } 3057 3058 .option--disabled { 3059 outline: none; 3060 opacity: 0.5;
3061 cursor: not-allowed; 3062 } 3063 3064 .option--selected .option__check { 3065 visibility: visible; 3066 } 3067`],Ba=Math.min,Ra=Math.max,Va=Math.round,Ha=Math.floor,ja=e=>({x:e,y:e}),Ua={left:"right",right:"left",bottom:"top",top:"bottom"},Ga={start:"end",end:"start"};function qa(e,t,o){return Ra(e,Ba(t,o))}function Ka(e,t){return"function"==typeof e?e(t):e}function Wa(e){return e.split("-")[0]}function Za(e){return e.split("-")[1]}function Xa(e){return"x"===e?"y":"x"}function Ya(e){return"y"===e?"height":"width"}const Ja=new Set(["top","bottom"]);function Qa(e){return Ja.has(Wa(e))?"y":"x"}function es(e){return Xa(Qa(e))}function ts(e){return e.replace(/start|end/g,(e=>Ga[e]))}const os=["left","right"],is=["right","left"],as=["top","bottom"],ss=["bottom","top"];function rs(e,t,o,i){const a=Za(e);let s=function(e,t,o){switch(e){case"top":case"bottom":return o?t?is:os:t?os:is;case"left":case"right":return t?as:ss;default:return[]}}(Wa(e),"start"===o,i);return a&&(s=s.map((e=>e+"-"+a)),t&&(s=s.concat(s.map(ts)))),s}function ns(e){return e.replace(/left|right|bottom|top/g,(e=>Ua[e]))}function ls(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ds(e){const{x:t,y:o,width:i,height:a}=e;return{width:i,height:a,top:o,left:t,right:t+i,bottom:o+a,x:t,y:o}}function cs(e,t,o){let{reference:i,floating:a}=e;const s=Qa(t),r=es(t),n=Ya(r),l=Wa(t),d="y"===s,c=i.x+i.width/2-a.width/2,p=i.y+i.height/2-a.height/2,u=i[n]/2-a[n]/2;let h;switch(l){case"top":h={x:c,y:i.y-a.height};break;case"bottom":h={x:c,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:p};break;case"left":h={x:i.x-a.width,y:p};break;default:h={x:i.x,y:i.y}}switch(Za(t)){case"start":h[r]-=u*(o&&d?-1:1);break;case"end":h[r]+=u*(o&&d?-1:1)}return h}async function ps(e,t){var o;void 0===t&&(t={});const{x:i,y:a,platform:s,rects:r,elements:n,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:u=!1,padding:h=0}=Ka(t,e),g=ls(h),f=n[u?"floating"===p?"reference":"floating":p],m=ds(await s.getClippingRect({element:null==(o=await(null==s.isElement?void 0:s.isElement(f)))||o?f:f.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(n.floating)),boundary:d,rootBoundary:c,strategy:l})),b="floating"===p?{x:i,y:a,width:r.floating.width,height:r.floating.height}:r.reference,v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n.floating)),y=await(null==s.isElement?void 0:s.isElement(v))&&await(null==s.getScale?void 0:s.getScale(v))||{x:1,y:1},$=ds(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:b,offsetParent:v,strategy:l}):b);return{top:(m.top-$.top+g.top)/y.y,bottom:($.bottom-m.bottom+g.bottom)/y.y,left:(m.left-$.left+g.left)/y.x,right:($.right-m.right+g.right)/y.x}}const us=new Set(["left","top"]);function hs(){return"undefined"!=typeof window}function gs(e){return bs(e)?(e.nodeName||"").toLowerCase():"#document"}function fs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ms(e){var t;return null==(t=(bs(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function bs(e){return!!hs()&&(e instanceof Node||e instanceof fs(e).Node)}function vs(e){return!!hs()&&(e instanceof Element||e instanceof fs(e).Element)}function ys(e){return!!hs()&&(e instanceof HTMLElement||e instanceof fs(e).HTMLElement)}function $s(e){return!(!hs()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof fs(e).ShadowRoot)}const xs=new Set(["inline","contents"]);function Cs(e){const{overflow:t,overflowX:o,overflowY:i,display:a}=Fs(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&!xs.has(a)}const ws=new Set(["table","td","th"]);function Ss(e){return ws.has(gs(e))}const ks=[":popover-open",":modal"];function _s(e){return ks.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const Ps=["transform","translate","scale","rotate","perspective"],As=["transform","translate","scale","rotate","perspective","filter"],Ts=["paint","layout","strict","content"];function Es(e){const t=Is(),o=vs(e)?Fs(e):e;return Ps.some((e=>!!o[e]&&"none"!==o[e]))||!!o.containerType&&"normal"!==o.containerType||!t&&!!o.backdropFilter&&"none"!==o.backdropFilter||!t&&!!o.filter&&"none"!==o.filter||As.some((e=>(o.willChange||"").includes(e)))||Ts.some((e=>(o.contain||"").includes(e)))}function Is(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const zs=new Set(["html","body","#document"]);function Ms(e){return zs.has(gs(e))}function Fs(e){return fs(e).getComputedStyle(e)}function Os(e){return vs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ds(e){if("html"===gs(e))return e;const t=e.assignedSlot||e.parentNode||$s(e)&&e.host||ms(e);return $s(t)?t.host:t}function Ls(e){const t=Ds(e);return Ms(t)?e.ownerDocument?e.ownerDocument.body:e.body:ys(t)&&Cs(t)?t:Ls(t)}function Ns(e,t,o){var i;void 0===t&&(t=[]),void 0===o&&(o=!0);const a=Ls(e),s=a===(null==(i=e.ownerDocument)?void 0:i.body),r=fs(a);if(s){const e=Bs(r);
vendor: 5,998 bytes, line 3067
3067return t.concat(r,r.visualViewport||[],Cs(a)?a:[],e&&o?Ns(e):[])}return t.concat(a,Ns(a,[],o))}function Bs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rs(e){const t=Fs(e);let o=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=ys(e),s=a?e.offsetWidth:o,r=a?e.offsetHeight:i,n=Va(o)!==s||Va(i)!==r;return n&&(o=s,i=r),{width:o,height:i,$:n}}function Vs(e){return vs(e)?e:e.contextElement}function Hs(e){const t=Vs(e);if(!ys(t))return ja(1);const o=t.getBoundingClientRect(),{width:i,height:a,$:s}=Rs(t);let r=(s?Va(o.width):o.width)/i,n=(s?Va(o.height):o.height)/a;return r&&Number.isFinite(r)||(r=1),n&&Number.isFinite(n)||(n=1),{x:r,y:n}}const js=ja(0);function Us(e){const t=fs(e);return Is()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:js}function Gs(e,t,o,i){void 0===t&&(t=!1),void 0===o&&(o=!1);const a=e.getBoundingClientRect(),s=Vs(e);let r=ja(1);t&&(i?vs(i)&&(r=Hs(i)):r=Hs(e));const n=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==fs(e))&&t}(s,o,i)?Us(s):ja(0);let l=(a.left+n.x)/r.x,d=(a.top+n.y)/r.y,c=a.width/r.x,p=a.height/r.y;if(s){const e=fs(s),t=i&&vs(i)?fs(i):i;let o=e,a=Bs(o);for(;a&&i&&t!==o;){const e=Hs(a),t=a.getBoundingClientRect(),i=Fs(a),s=t.left+(a.clientLeft+parseFloat(i.paddingLeft))*e.x,r=t.top+(a.clientTop+parseFloat(i.paddingTop))*e.y;l*=e.x,d*=e.y,c*=e.x,p*=e.y,l+=s,d+=r,o=fs(a),a=Bs(o)}}return ds({width:c,height:p,x:l,y:d})}function qs(e,t){const o=Os(e).scrollLeft;return t?t.left+o:Gs(ms(e)).left+o}function Ks(e,t){const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-qs(e,o),y:o.top+t.scrollTop}}const Ws=new Set(["absolute","fixed"]);function Zs(e,t,o){let i;if("viewport"===t)i=function(e,t){const o=fs(e),i=ms(e),a=o.visualViewport;let s=i.clientWidth,r=i.clientHeight,n=0,l=0;if(a){s=a.width,r=a.height;const e=Is();(!e||e&&"fixed"===t)&&(n=a.offsetLeft,l=a.offsetTop)}const d=qs(i);if(d<=0){const e=i.ownerDocument,t=e.body,o=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,r=Math.abs(i.clientWidth-t.clientWidth-a);r<=25&&(s-=r)}else d<=25&&(s+=d);return{width:s,height:r,x:n,y:l}}(e,o);else if("document"===t)i=function(e){const t=ms(e),o=Os(e),i=e.ownerDocument.body,a=Ra(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=Ra(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-o.scrollLeft+qs(e);const n=-o.scrollTop;return"rtl"===Fs(i).direction&&(r+=Ra(t.clientWidth,i.clientWidth)-a),{width:a,height:s,x:r,y:n}}(ms(e));else if(vs(t))i=function(e,t){const o=Gs(e,!0,"fixed"===t),i=o.top+e.clientTop,a=o.left+e.clientLeft,s=ys(e)?Hs(e):ja(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:a*s.x,y:i*s.y}}(t,o);else{const o=Us(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ds(i)}function Xs(e,t){const o=Ds(e);return!(o===t||!vs(o)||Ms(o))&&("fixed"===Fs(o).position||Xs(o,t))}function Ys(e,t,o){const i=ys(t),a=ms(t),s="fixed"===o,r=Gs(e,!0,s,t);let n={scrollLeft:0,scrollTop:0};const l=ja(0);function d(){l.x=qs(a)}if(i||!i&&!s)if(("body"!==gs(t)||Cs(a))&&(n=Os(t)),i){const e=Gs(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&d();s&&!i&&a&&d();const c=!a||i||s?ja(0):Ks(a,n);return{x:r.left+n.scrollLeft-l.x-c.x,y:r.top+n.scrollTop-l.y-c.y,width:r.width,height:r.height}}function Js(e){return"static"===Fs(e).position}function Qs(e,t){if(!ys(e)||"fixed"===Fs(e).position)return null;if(t)return t(e);let o=e.offsetParent;return ms(e)===o&&(o=o.ownerDocument.body),o}function er(e,t){const o=fs(e);if(_s(e))return o;if(!ys(e)){let t=Ds(e);for(;t&&!Ms(t);){if(vs(t)&&!Js(t))return t;t=Ds(t)}return o}let i=Qs(e,t);for(;i&&Ss(i)&&Js(i);)i=Qs(i,t);return i&&Ms(i)&&Js(i)&&!Es(i)?o:i||function(e){let t=Ds(e);for(;ys(t)&&!Ms(t);){if(Es(t))return t;if(_s(t))return null;t=Ds(t)}return null}(e)||o}const tr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:i,strategy:a}=e;const s="fixed"===a,r=ms(i),n=!!t&&_s(t.floating);if(i===r||n&&s)return o;let l={scrollLeft:0,scrollTop:0},d=ja(1);const c=ja(0),p=ys(i);if((p||!p&&!s)&&(("body"!==gs(i)||Cs(r))&&(l=Os(i)),ys(i))){const e=Gs(i);d=Hs(i),c.x=e.x+i.clientLeft,c.y=e.y+i.clientTop}const u=!r||p||s?ja(0):Ks(r,l);return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-l.scrollLeft*d.x+c.x+u.x,y:o.y*d.y-l.scrollTop*d.y+c.y+u.y}},getDocumentElement:ms,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:i,strategy:a}=e;const s="clippingAncestors"===o?_s(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let i=Ns(e,[],!1).filter((e=>vs(e)&&"body"!==gs(e))),a=null;const s="fixed"===Fs(e).position;let r=s?Ds(e):e;for(;vs(r)&&!Ms(r);){const t=Fs(r),o=Es(r);o||"fixed"!==t.position||(a=null),(s?!o&&!a:!o&&"static"===t.position&&a&&Ws.has(a.position)||Cs(r)&&!o&&Xs(e,r))?i=i.filter((e=>e!==r)):a=t,r=Ds(r)}return t.set(e,i),i}(t,this._c):[].concat(o),r=[...s,i],n=r[0],l=r.reduce(((e,o)=>{const i=Zs(t,o,a);return e.top=Ra(i.top,e.top),e.right=Ba(i.right,e.right),e.bottom=Ba(i.bottom,e.bottom),e.left=Ra(i.left,e.left),e}),Zs(t,n,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:er,getElementRects:async function(e){const t=this.getOffsetParent||er,o=this.getDimensions,i=await o(e.floating);return{reference:Ys(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:o}=Rs(e);return{width:t,height:o}},getScale:Hs,isElement:vs,isRTL:function(e){return"rtl"===Fs(e).direction}};function or(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ir(e,t,o,i){void 0===i&&(i={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:n="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,d=Vs(e),c=a||s?[...d?Ns(d):[],...Ns(t)]:[];
vendor: 6,177 bytes, line 3067
3067c.forEach((e=>{a&&e.addEventListener("scroll",o,{passive:!0}),s&&e.addEventListener("resize",o)}));const p=d&&n?function(e,t){let o,i=null;const a=ms(e);function s(){var e;clearTimeout(o),null==(e=i)||e.disconnect(),i=null}return function r(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();const d=e.getBoundingClientRect(),{left:c,top:p,width:u,height:h}=d;if(n||t(),!u||!h)return;const g={rootMargin:-Ha(p)+"px "+-Ha(a.clientWidth-(c+u))+"px "+-Ha(a.clientHeight-(p+h))+"px "+-Ha(c)+"px",threshold:Ra(0,Ba(1,l))||1};let f=!0;function m(t){const i=t[0].intersectionRatio;if(i!==l){if(!f)return r();i?r(!1,i):o=setTimeout((()=>{r(!1,1e-7)}),1e3)}1!==i||or(d,e.getBoundingClientRect())||r(),f=!1}try{i=new IntersectionObserver(m,{...g,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(m,g)}i.observe(e)}(!0),s}(d,o):null;let u,h=-1,g=null;r&&(g=new ResizeObserver((e=>{let[i]=e;i&&i.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=g)||e.observe(t)}))),o()})),d&&!l&&g.observe(d),g.observe(t));let f=l?Gs(e):null;return l&&function t(){const i=Gs(e);f&&!or(f,i)&&o();f=i,u=requestAnimationFrame(t)}(),o(),()=>{var e;c.forEach((e=>{a&&e.removeEventListener("scroll",o),s&&e.removeEventListener("resize",o)})),null==p||p(),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(u)}}const ar=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,i;const{x:a,y:s,placement:r,middlewareData:n}=t,l=await async function(e,t){const{placement:o,platform:i,elements:a}=e,s=await(null==i.isRTL?void 0:i.isRTL(a.floating)),r=Wa(o),n=Za(o),l="y"===Qa(o),d=us.has(r)?-1:1,c=s&&l?-1:1,p=Ka(t,e);let{mainAxis:u,crossAxis:h,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return n&&"number"==typeof g&&(h="end"===n?-1*g:g),l?{x:h*c,y:u*d}:{x:u*d,y:h*c}}(t,e);return r===(null==(o=n.offset)?void 0:o.placement)&&null!=(i=n.arrow)&&i.alignmentOffset?{}:{x:a+l.x,y:s+l.y,data:{...l,placement:r}}}}},sr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:i,placement:a}=t,{mainAxis:s=!0,crossAxis:r=!1,limiter:n={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...l}=Ka(e,t),d={x:o,y:i},c=await ps(t,l),p=Qa(Wa(a)),u=Xa(p);let h=d[u],g=d[p];if(s){const e="y"===u?"bottom":"right";h=qa(h+c["y"===u?"top":"left"],h,h-c[e])}if(r){const e="y"===p?"bottom":"right";g=qa(g+c["y"===p?"top":"left"],g,g-c[e])}const f=n.fn({...t,[u]:h,[p]:g});return{...f,data:{x:f.x-o,y:f.y-i,enabled:{[u]:s,[p]:r}}}}}},rr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,i;const{placement:a,middlewareData:s,rects:r,initialPlacement:n,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:p=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:f=!0,...m}=Ka(e,t);if(null!=(o=s.arrow)&&o.alignmentOffset)return{};const b=Wa(a),v=Qa(n),y=Wa(n)===n,$=await(null==l.isRTL?void 0:l.isRTL(d.floating)),x=u||(y||!f?[ns(n)]:function(e){const t=ns(e);return[ts(e),t,ts(t)]}(n)),C="none"!==g;!u&&C&&x.push(...rs(n,f,g,$));const w=[n,...x],S=await ps(t,m),k=[];let _=(null==(i=s.flip)?void 0:i.overflows)||[];if(c&&k.push(S[b]),p){const e=function(e,t,o){void 0===o&&(o=!1);const i=Za(e),a=es(e),s=Ya(a);let r="x"===a?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=ns(r)),[r,ns(r)]}(a,r,$);k.push(S[e[0]],S[e[1]])}if(_=[..._,{placement:a,overflows:k}],!k.every((e=>e<=0))){var P,A;const e=((null==(P=s.flip)?void 0:P.index)||0)+1,t=w[e];if(t){if(!("alignment"===p&&v!==Qa(t))||_.every((e=>Qa(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}}}let o=null==(A=_.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!o)switch(h){case"bestFit":{var T;const e=null==(T=_.filter((e=>{if(C){const t=Qa(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(o=e);break}case"initialPlacement":o=n}if(a!==o)return{reset:{placement:o}}}return{}}}},nr=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var o,i;const{placement:a,rects:s,platform:r,elements:n}=t,{apply:l=()=>{},...d}=Ka(e,t),c=await ps(t,d),p=Wa(a),u=Za(a),h="y"===Qa(a),{width:g,height:f}=s.floating;let m,b;"top"===p||"bottom"===p?(m=p,b=u===(await(null==r.isRTL?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(b=p,m="end"===u?"top":"bottom");const v=f-c.top-c.bottom,y=g-c.left-c.right,$=Ba(f-c[m],v),x=Ba(g-c[b],y),C=!t.middlewareData.shift;let w=$,S=x;if(null!=(o=t.middlewareData.shift)&&o.enabled.x&&(S=y),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(w=v),C&&!u){const e=Ra(c.left,0),t=Ra(c.right,0),o=Ra(c.top,0),i=Ra(c.bottom,0);h?S=g-2*(0!==e||0!==t?e+t:Ra(c.left,c.right)):w=f-2*(0!==o||0!==i?o+i:Ra(c.top,c.bottom))}await l({...t,availableWidth:S,availableHeight:w});const k=await r.getDimensions(n.floating);return g!==k.width||f!==k.height?{reset:{rects:!0}}:{}}}},lr=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:i,placement:a,rects:s,platform:r,elements:n,middlewareData:l}=t,{element:d,padding:c=0}=Ka(e,t)||{};if(null==d)return{};const p=ls(c),u={x:o,y:i},h=es(a),g=Ya(h),f=await r.getDimensions(d),m="y"===h,b=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",$=s.reference[g]+s.reference[h]-u[h]-s.floating[g],x=u[h]-s.reference[h],C=await(null==r.getOffsetParent?void 0:r.getOffsetParent(d));let w=C?C[y]:0;w&&await(null==r.isElement?void 0:r.isElement(C))||(w=n.floating[y]||s.floating[g]);const S=$/2-x/2,k=w/2-f[g]/2-1,_=Ba(p[b],k),P=Ba(p[v],k),A=_,T=w-f[g]-P,E=w/2-f[g]/2+S,I=qa(A,E,T),z=!l.arrow&&null!=Za(a)&&E!==I&&s.reference[g]/2-(E<A?_:P)-f[g]/2<0,M=z?E<A?E-A:E-T:0;return{[h]:u[h]+M,data:{[h]:I,centerOffset:E-I-M,...z&&{alignmentOffset:M}},reset:z}}}),dr=(e,t,o)=>{const i=new Map,a={platform:tr,...o},s={...a.platform,_c:i};return(async(e,t,o)=>{const{placement:i="bottom",strategy:a="absolute",middleware:s=[],platform:r}
vendor: 8,126 bytes, lines 3067-3138
3067=o,n=s.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(t));let d=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:p}=cs(d,i,l),u=i,h={},g=0;for(let o=0;o<n.length;o++){const{name:s,fn:f}=n[o],{x:m,y:b,data:v,reset:y}=await f({x:c,y:p,initialPlacement:i,placement:u,strategy:a,middlewareData:h,rects:d,platform:r,elements:{reference:e,floating:t}});c=null!=m?m:c,p=null!=b?b:p,h={...h,[s]:{...h[s],...v}},y&&g<=50&&(g++,"object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(d=!0===y.rects?await r.getElementRects({reference:e,floating:t,strategy:a}):y.rects),({x:c,y:p}=cs(d,u,l))),o=-1)}return{x:c,y:p,placement:u,strategy:a,middlewareData:h}})(e,t,{...a,platform:s})};function cr(e){return function(e){for(let t=e;t;t=pr(t))if(t instanceof Element&&"none"===getComputedStyle(t).display)return null;for(let t=pr(e);t;t=pr(t)){if(!(t instanceof Element))continue;const e=getComputedStyle(t);if("contents"!==e.display){if("static"!==e.position||Es(e))return t;if("BODY"===t.tagName)return t}}return null}(e)}function pr(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}const ur=[d` 3068 :host { 3069 --arrow-color: rgb(from var(--pu-input-icon-color-foreground, hsl(240 5.9% 10%)) r g b / alpha); 3070 --arrow-size: 0.375em; 3071 --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071); 3072 --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size)); 3073 display: contents; 3074 } 3075 3076 .popup { 3077 position: absolute; 3078 isolation: isolate; 3079 max-width: var(--auto-size-available-width, none); 3080 max-height: var(--auto-size-available-height, none); 3081 z-index: var(--pu-layer-900, 900); 3082 } 3083 3084 .popup__arrow { 3085 position: absolute; 3086 width: calc(var(--arrow-size-diagonal) * 2); 3087 height: calc(var(--arrow-size-diagonal) * 2); 3088 rotate: 45deg; 3089 background: var(--arrow-color); 3090 z-index: -1; 3091 } 3092 3093 /* Hover bridge */ 3094 .popup-hover-bridge { 3095 position: fixed; 3096 z-index: calc(var(--pu-layer-900, 900) - 1); 3097 top: 0; 3098 right: 0; 3099 bottom: 0; 3100 left: 0; 3101 clip-path: polygon( 3102 var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0), 3103 var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0), 3104 var(--hover-bridge-bottom-right-x, 0) var(--hover-bridge-bottom-right-y, 0), 3105 var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0) 3106 ); 3107 } 3108 3109 .popup-overlay { 3110 display: none; 3111 position: fixed; 3112 inset: 0; 3113 z-index: calc(var(--pu-layer-900, 900) - 1); 3114 background-color: rgb( 3115 from var(--pu-popup-overlay-color-background, hsl(240, 4%, 16%)) r g b / 3116 calc(var(--pu-popup-overlay-opacity-background, 0.9) * alpha) 3117 ); 3118 pointer-events: none; 3119 } 3120`,d` 3121 /* State API Classes */ 3122 .popup:not(.popup--active) { 3123 display: none; 3124 } 3125 3126 .popup-hover-bridge:not(.popup-hover-bridge--visible) { 3127 display: none; 3128 } 3129 3130 .popup-overlay.popup-overlay--visible { 3131 display: block; 3132 } 3133 3134 /* Strategy API Classes */ 3135 .popup--fixed { 3136 position: fixed; 3137 } 3138`];class hr extends ga{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipBoundary=[],this.flipPadding=0,this.shift=!1,this.shiftBoundary=[],this.shiftPadding=0,this.autoSizeBoundary=[],this.autoSizePadding=0,this.hoverBridge=!1,this.narrowFloatBottom=!1,this.isnarrow=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const e=this.anchorEl.getBoundingClientRect(),t=this.popup.getBoundingClientRect();let o=0,i=0,a=0,s=0,r=0,n=0,l=0,d=0;this.placement.includes("top")||this.placement.includes("bottom")?e.top<t.top?(o=e.left,i=e.bottom,a=e.right,s=e.bottom,r=t.left,n=t.top,l=t.right,d=t.top):(o=t.left,i=t.bottom,a=t.right,s=t.bottom,r=e.left,n=e.top,l=e.right,d=e.top):e.left<t.left?(o=e.right,i=e.top,a=t.left,s=t.top,r=e.right,n=e.bottom,l=t.left,d=t.bottom):(o=t.right,i=t.top,a=e.left,s=e.top,r=t.right,n=t.bottom,l=e.left,d=e.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${o}px`),this.style.setProperty("--hover-bridge-top-left-y",`${i}px`),this.style.setProperty("--hover-bridge-top-right-x",`${a}px`),this.style.setProperty("--hover-bridge-top-right-y",`${s}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${r}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${n}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${l}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${d}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(e){super.updated(e),e.has("active")&&(this.active?this.start():this.stop()),e.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const e=this.getRootNode();this.anchorEl=e.getElementById(this.anchor)}else this.anchor instanceof Element||function(e){return null!==e&&"object"==typeof e&&"getBoundingClientRect"in e&&(!("contextElement"in e)||e instanceof Element)}(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=ir(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((e=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>e()))):e()}))}reposition(){if(!this.active||!this.anchorEl)return;if(this.narrowFloatBottom&&window.matchMedia("(max-width: 47.9975em)").matches)return Object.assign(this.popup.style,{bottom:"0",left:"0",right:"0",top:"auto",width:"100%",position:"fixed",zIndex:"900"}),void(this.isnarrow=!0);this.isnarrow=!1;const e=[ar({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?e.push(nr({apply:({rects:e})=>{const t="width"===this.sync||"both"===this.sync,o="height"===this.sync||"both"===this.sync;this.popup.style.width=t?`${e.reference.width}px`:"",this.popup.style.height=o?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&e.push(rr({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&e.push(sr({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?e.push(nr({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:t})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${t}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${e}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&e.push(lr({element:this.arrowEl,padding:this.arrowPadding}));const t="absolute"===this.strategy?e=>tr.getOffsetParent(e,cr):tr.getOffsetParent;dr(this.anchorEl,this.popup,{placement:this.placement,middleware:e,strategy:this.strategy,platform:{...tr,getOffsetParent:t}}).then((({x:e,y:t,middlewareData:o,placement:i})=>{const a=this.matches(":dir(rtl)"),s={top:"bottom",right:"left",bottom:"top",left:"r
3138ight"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${e}px`,top:`${t}px`}),this.arrow){const e=o.arrow.x,t=o.arrow.y;let i="",r="",n="",l="";if("start"===this.arrowPlacement){const o="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",r=a?o:"",l=a?"":o}else if("end"===this.arrowPlacement){const o="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";r=a?"":o,l=a?o:"",n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":"",i="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof e?`${e}px`:"",i="number"==typeof t?`${t}px`:"");Object.assign(this.arrowEl.style,{top:i,right:r,bottom:n,left:l,[s]:"calc(var(--arrow-size-diagonal) * -1)"})}})),requestAnimationFrame((()=>this.updateHoverBridge())),this.emit("pu-reposition")}render(){return W` 3139 <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot> 3140 <span 3141 part="hover-bridge" 3142 class=${Ae({"popup-hover-bridge":!0,"popup-hover-bridge--visible":this.hoverBridge&&this.active})} 3143 > 3144 </span> 3145 3146 <div 3147 part="popup" 3148 class=${Ae({popup:!0,"popup--active":this.active,"popup--fixed":"fixed"===this.strategy,"popup--has-arrow":this.arrow})} 3149 > 3150 <slot></slot> 3151 ${this.arrow?W`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""} 3152 </div> 3153 <div 3154 part="overlay" 3155 class=${Ae({"popup-overlay":!0,"popup-overlay--visible":this.isnarrow&&this.narrowFloatBottom&&this.active})} 3156 ></div> 3157 `}}hr.styles=[ua,ur],ca([xe(".popup")],hr.prototype,"popup",void 0),ca([xe(".popup__arrow")],hr.prototype,"arrowEl",void 0),ca([ve()],hr.prototype,"anchor",void 0),ca([ve({type:Boolean,reflect:!0})],hr.prototype,"active",void 0),ca([ve({reflect:!0})],hr.prototype,"placement",void 0),ca([ve({reflect:!0})],hr.prototype,"strategy",void 0),ca([ve({type:Number})],hr.prototype,"distance",void 0),ca([ve({type:Number})],hr.prototype,"skidding",void 0),ca([ve({type:Boolean})],hr.prototype,"arrow",void 0),ca([ve({attribute:"arrow-placement"})],hr.prototype,"arrowPlacement",void 0),ca([ve({attribute:"arrow-padding",type:Number})],hr.prototype,"arrowPadding",void 0),ca([ve({type:Boolean})],hr.prototype,"flip",void 0),ca([ve({attribute:"flip-fallback-placements",converter:{fromAttribute:e=>e.split(" ").map((e=>e.trim())).filter((e=>""!==e)),toAttribute:e=>e.join(" ")}})],hr.prototype,"flipFallbackPlacements",void 0),ca([ve({attribute:"flip-fallback-strategy"})],hr.prototype,"flipFallbackStrategy",void 0),ca([ve({type:Object})],hr.prototype,"flipBoundary",void 0),ca([ve({attribute:"flip-padding",type:Number})],hr.prototype,"flipPadding",void 0),ca([ve({type:Boolean})],hr.prototype,"shift",void 0),ca([ve({type:Object})],hr.prototype,"shiftBoundary",void 0),ca([ve({attribute:"shift-padding",type:Number})],hr.prototype,"shiftPadding",void 0),ca([ve({attribute:"auto-size"})],hr.prototype,"autoSize",void 0),ca([ve()],hr.prototype,"sync",void 0),ca([ve({type:Object})],hr.prototype,"autoSizeBoundary",void 0),ca([ve({attribute:"auto-size-padding",type:Number})],hr.prototype,"autoSizePadding",void 0),ca([ve({attribute:"hover-bridge",type:Boolean})],hr.prototype,"hoverBridge",void 0),ca([ve({type:Boolean})],hr.prototype,"narrowFloatBottom",void 0),ca([ye()],hr.prototype,"isnarrow",void 0);class gr extends ga{constructor(){super(...arguments),this.current=!1,this.selected=!1,this.hasHover=!1,this.value="",this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){customElements.whenDefined("pu-select").then((()=>{const e=this.closest("pu-select");e&&e.handleDefaultSlotChange()}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){"string"!=typeof this.value&&(this.value=String(this.value)),this.value.includes(" ")&&(console.error("Option values cannot include a space. All space
3157s have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){const e=this.childNodes;let t="";return[...e].forEach((e=>{e.nodeType===Node.ELEMENT_NODE&&(e.hasAttribute("slot")||(t+=e.textContent)),e.nodeType===Node.TEXT_NODE&&(t+=e.textContent)})),t.trim()}render(){return W` 3158 <div 3159 part="base option" 3160 class=${Ae({option:!0,"option--current":this.current,"option--disabled":this.disabled,"option--selected":this.selected,"option--hover":this.hasHover})} 3161 @mouseenter=${this.handleMouseEnter} 3162 @mouseleave=${this.handleMouseLeave} 3163 > 3164 ${this.selected?W`<pu-icon 3165 part="icon" 3166 exportparts="base,svg" 3167 class="option__check" 3168 name="check" 3169 aria-hidden="true" 3170 ></pu-icon>`:""} 3171 <slot 3172 part="prefix" 3173 name="prefix" 3174 class="option__prefix" 3175 ></slot> 3176 <slot 3177 part="label" 3178 class="option__label" 3179 @slotchange=${this.handleDefaultSlotChange} 3180 ></slot> 3181 <slot 3182 part="suffix" 3183 name="suffix" 3184 class="option__suffix" 3185 ></slot> 3186 </div> 3187 `}}function fr(e){const t=["button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","a[href]",'[tabindex]:not([tabindex="-1"])'].join(", ");return Array.from(e.querySelectorAll(t)).filter((e=>function(e){const t=window.getComputedStyle(e);if("none"===t.display||"hidden"===t.visibility)return!1;if("true"===e.getAttribute("aria-hidden"))return!1;const o=e.getAttribute("tabindex");if(null!==o)return"-1"!==o;const i=e.tagName.toLowerCase();return"button"===i||"input"===i||"select"===i||"textarea"===i?!e.hasAttribute("disabled"):!("a"!==i||!e.hasAttribute("href"))}(e)))}gr.styles=[ua,Na],gr.dependencies={"pu-icon":xa,"pu-popup":hr},ca([xe(".option__label")],gr.prototype,"defaultSlot",void 0),ca([ye()],gr.prototype,"current",void 0),ca([ye()],gr.prototype,"selected",void 0),ca([ye()],gr.prototype,"hasHover",void 0),ca([ve({reflect:!0})],gr.prototype,"value",void 0),ca([ve({type:Boolean,reflect:!0})],gr.prototype,"disabled",void 0),ca([pa("disabled")],gr.prototype,"handleDisabledChange",null),ca([pa("selected")],gr.prototype,"handleSelectedChange",null),ca([pa("value")],gr.prototype,"handleValueChange",null),gr.define("pu-option");const mr=[d` 3188 :host { 3189 --color-background: var(--pu-overlay-color-background, var(--pu-color-background, rgb(255, 255, 255))); 3190 --color-foreground: var(--pu-overlay-color-foreground, var(--pu-color-foreground, inherit)); 3191 } 3192 .overlay { 3193 position: fixed; 3194 z-index: var(--pu-overlay-layer-index, var(--layer-index, 500)); 3195 pointer-events: all; 3196 display: none; 3197 justify-content: center; 3198 align-items: center; 3199 inset: 0; 3200 margin: 0; 3201 height: 100%; 3202 width: 100%; 3203 max-width: 100%; 3204 max-height: 100%; 3205 box-sizing: border-box; 3206 overflow-y: auto; 3207 padding: var(--pu-overlay-space-padding); 3208 border: none !important; 3209 color: rgb(from var(--color-foreground) r g b); 3210 background-color: rgb( 3211 from var(--color-background) r g b / calc(alpha * var(--pu-overlay-opacity-background, 1)) 3212 ); 3213 background-image: var(--pu-overlay-background-image); 3214 background-size: var(--pu-overlay-background-size, cover); 3215 background-position: var(--pu-overlay-background-position, center); 3216 background-repeat: var(--pu-overlay-background-repeat, no-repeat); 3217 scrollbar-width: thin; 3218 scrollbar-color: var(--pu-scrollbar-thumb-color, #888) var(--pu-scrollbar-track-color, #f1f1f1); 3219 } 3220 3221 .overlay[open], 3222 .overlay.overlay--open { 3223 display: flex; 3224 pointer-events: auto; 3225 } 3226 3227 .overlay__inner { 3228 pointer-events: all; 3229 position: relative; 3230 } 3231 3232 .overlay__inner::-webkit-scrollbar {
3233 width: 8px; 3234 } 3235 3236 .overlay__inner::-webkit-scrollbar-track { 3237 background: var(--pu-scrollbar-track-color, #f1f1f1); 3238 } 3239 3240 .overlay__inner::-webkit-scrollbar-thumb { 3241 background: var(--pu-scrollbar-thumb-color, #888); 3242 border-radius: 4px; 3243 } 3244 3245 .overlay__inner::-webkit-scrollbar-thumb:hover { 3246 background: var(--pu-scrollbar-thumb-color-hover, #555); 3247 } 3248 3249 .close-button__container, 3250 .alt-close-button__container { 3251 --pu-icon-color-background: var(--pu-overlay-color-foreground); 3252 --pu-icon-opacity-background: var(--pu-overlay-opacity-background); 3253 --pu-icon-color-foreground: var(--pu-overlay-color-background); 3254 } 3255 3256 .close-button__container { 3257 position: fixed; 3258 top: 1em; 3259 right: 1em; 3260 z-index: 10; 3261 cursor: pointer; 3262 } 3263 3264 .alt-close-button__container { 3265 position: absolute; 3266 top: 0.5em; 3267 right: 0.5em; 3268 z-index: 10; 3269 cursor: pointer; 3270 } 3271 3272 @media (max-width: 47.9975em) { 3273 .alt-close-button__container { 3274 position: fixed; 3275 top: 1em; 3276 right: 1em; 3277 } 3278 } 3279 3280 .close-button__container > ::slotted(*) { 3281 pointer-events: auto; 3282 } 3283 3284 .close-button__container * { 3285 pointer-events: none; 3286 } 3287`,d` 3288 /** Alignment API - based on content overflow detection */ 3289 .overlay--align-top { 3290 align-items: flex-start; 3291 } 3292`];class br extends ga{constructor(){super(),this.id="",this.layerIndex=500,this.alignTop=!1,this.isOpen=!1,this.focusTrapListeners=[],this.hasCloseButtonSlot=new Sa(this,"close-button"),this.hasAltCloseButtonSlot=new Sa(this,"alt-close-button"),this.originalBodyOverflow="",this.lastActiveElement=null,this.checkOverlayAlignment=()=>{if(this.overlayElement){const e=this.overlayElement.scrollHeight>this.overlayElement.clientHeight;this.alignTop!==e&&(this.alignTop=e)}},this.show=()=>{this.openOverlay()},this.hide=()=>{this.closeOverlay()},this.debouncedCheckAlignment=function(e,t){let o=0;return function(...i){clearTimeout(o),o=setTimeout((()=>e.apply(this,i)),t)}}((()=>{this.checkOverlayAlignment()}),50)}connectedCallback(){super.connectedCallback(),window.addEventListener("overlay-open",this.show),window.addEventListener("overlay-close",this.hide)}firstUpdated(e){super.firstUpdated(e),this.overlayElement&&this.debouncedCheckAlignment&&(this.resizeObserver=new ResizeObserver(this.debouncedCheckAlignment),this.resizeObserver.observe(this.overlayElement),window.addEventListener("resize",this.debouncedCheckAlignment))}disconnectedCallback(){this.isOpen&&this.closeOverlay(),window.removeEventListener("overlay-open",this.show),window.removeEventListener("overlay-close",this.hide),this.resizeObserver&&(this.overlayElement&&this.resizeObserver.unobserve(this.overlayElement),this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.debouncedCheckAlignment&&window.removeEventListener("resize",this.debouncedCheckAlignment),super.disconnectedCallback()}async openOverlay(){if(this.overlayElement&&!this.isOpen){this.lastActiveElement=document.activeElement,this.originalBodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.overlayElement.style.visibility="hidden",this.overlayElement.setAttribute("open",""),this.overlayElement.classList.add("overlay--open"),this.checkOverlayAlignment(),await this.updateComplete,this.overlayElement.style.visibility="visible";const e=function(e){const t=fr(e);return t.length>0?t[0]:null}(this.overlayElement);e?e.focus():this.overlayElement.focus(),this.setupFocusTrap(),this.isOpen=!0,this.emit("pu-show")}}closeOverlay(){this.overlayElement&&this.isOpen&&(this.overlayElement.removeAttribute("open"),this.overlayElement.classList.remove("overlay--open"),this.removeFocusTrap(),document.body.style.overflow=this.originalBodyOverflow,this.lastActiveElement?.focus(),this.isOpen=!1,this.emit("pu-hide"))}handleKeyDown(e){"Escape"===e.key&&this.closeOverlay()}setupFocusTrap(){if(!this.overlayElement)return;const e=e=>{if("Tab"!==e.key)return;const t=fr(this.overlayElement);if(0===t.length)return;const o=t[0],i=t[t.length-1];e.shiftKey?document.activeElement===o&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),o.focus())};this.overlayElement.addEventListener("keydown",e),this.focusTrapListeners.push((()=>{this.overlayElement?.removeEventListener("keydown",e)}))}
3292removeFocusTrap(){this.focusTrapListeners.forEach((e=>e())),this.focusTrapListeners=[]}overlayClasses(){const e={};return this.alignTop&&(e["overlay--align-top"]=!0),e}render(){const e=this.overlayClasses();return W` 3293 <div 3294 part="base overlay" 3295 class="overlay ${Ae(e)}" 3296 id=${this.id} 3297 role="dialog" 3298 aria-modal="true" 3299 aria-label=${this.label||X} 3300 tabindex="-1" 3301 style=${Ie({"--layer-index":this.layerIndex})} 3302 @keydown="${this.handleKeyDown}"> 3303 ${this.hasCloseButtonSlot.test("close-button")?W` 3304 <div 3305 part="close" 3306 class="close-button__container" 3307 @click="${this.closeOverlay}"> 3308 <slot name="close-button"></slot> 3309 </div> 3310 `:null} 3311 <div 3312 part="content" 3313 class="overlay__inner"> 3314 ${this.hasAltCloseButtonSlot.test("alt-close-button")?W` 3315 <div 3316 part="alt-close" 3317 class="alt-close-button__container" 3318 @click="${this.closeOverlay}"> 3319 <slot name="alt-close-button"></slot> 3320 </div> 3321 `:null} 3322 <slot name="content"></slot> 3323 </div> 3324 </div> 3325 `}}br.styles=[ua,mr],ca([ve()],br.prototype,"id",void 0),ca([ve()],br.prototype,"label",void 0),ca([ve({type:Number})],br.prototype,"layerIndex",void 0),ca([ye()],br.prototype,"alignTop",void 0),ca([ye()],br.prototype,"isOpen",void 0),ca([xe(".overlay")],br.prototype,"overlayElement",void 0),br.define("pu-overlay");const vr=[{iso2:"ZZ",name:"International",dialCode:"+",flag1x1:"/assets/flags/zz.svg"},{iso2:"AF",name:"Afghanistan",dialCode:"+93",flag1x1:"/assets/flags/af.svg"},{iso2:"AX",name:"Ã land Islands",dialCode:"+358",flag1x1:"/assets/flags/ax.svg"},{iso2:"AL",name:"Albania",dialCode:"+355",flag1x1:"/assets/flags/al.svg"},{iso2:"DZ",name:"Algeria",dialCode:"+213",flag1x1:"/assets/flags/dz.svg"},{iso2:"AS",name:"American Samoa",dialCode:"+1684",flag1x1:"/assets/flags/as.svg"},{iso2:"AD",name:"Andorra",dialCode:"+376",flag1x1:"/assets/flags/ad.svg"},{iso2:"AO",name:"Angola",dialCode:"+244",flag1x1:"/assets/flags/ao.svg"},{iso2:"AI",name:"Anguilla",dialCode:"+1264",flag1x1:"/assets/flags/ai.svg"},{iso2:"AG",name:"Antigua and Barbuda",dialCode:"+1268",flag1x1:"/assets/flags/ag.svg"},{iso2:"AR",name:"Argentina",dialCode:"+54",flag1x1:"/assets/flags/ar.svg"},{iso2:"AM",name:"Armenia",dialCode:"+374",flag1x1:"/assets/flags/am.svg"},{iso2:"AW",name:"Aruba",dialCode:"+297",flag1x1:"/assets/flags/aw.svg"},{iso2:"AC",name:"Ascension Island",dialCode:"+247",flag1x1:"/assets/flags/ac.svg"},{iso2:"AU",name:"Australia",dialCode:"+61",flag1x1:"/assets/flags/au.svg"},{iso2:"AT",name:"Austria",dialCode:"+43",flag1x1:"/assets/flags/at.svg"},{iso2:"AZ",name:"Azerbaijan",dialCode:"+994",flag1x1:"/assets/flags/az.svg"},{iso2:"BS",name:"Bahamas",dialCode:"+1242",flag1x1:"/assets/flags/bs.svg"},{iso2:"BH",name:"Bahrain",dialCode:"+973",flag1x1:"/assets/flags/bh.svg"},{iso2:"BD",name:"Bangladesh",dialCode:"+880",flag1x1:"/assets/flags/bd.svg"},{iso2:"BB",name:"Barbados",dialCode:"+1246",flag1x1:"/assets/flags/bb.svg"},{iso2:"BY",name:"Belarus",dialCode:"+375",flag1x1:"/assets/flags/by.svg"},{iso2:"BE",name:"Belgium",dialCode:"+32",flag1x1:"/assets/flags/be.svg"},{iso2:"BZ",name:"Belize",dialCode:"+501",flag1x1:"/assets/flags/bz.svg"},{iso2:"BJ",name:"Benin",dialCode:"+229",flag1x1:"/assets/flags/bj.svg"},{iso2:"BM",name:"Bermuda",dialCode:"+1441",flag1x1:"/assets/flags/bm.svg"},{iso2:"BT",name:"Bhutan",dialCode:"+975",flag1x1:"/assets/flags/bt.svg"},{iso2:"BO",name:"Bolivia",dialCode:"+591",flag1x1:"/assets/flags/bo.svg"},{iso2:"BQ",name:"Bonaire, Sint Eustatius and Saba",dialCode:"+599",flag1x1:"/assets/flags/bq.svg"}
3325,{iso2:"BA",name:"Bosnia and Herzegovina",dialCode:"+387",flag1x1:"/assets/flags/ba.svg"},{iso2:"BW",name:"Botswana",dialCode:"+267",flag1x1:"/assets/flags/bw.svg"},{iso2:"BR",name:"Brazil",dialCode:"+55",flag1x1:"/assets/flags/br.svg"},{iso2:"IO",name:"British Indian Ocean Territory",dialCode:"+246",flag1x1:"/assets/flags/io.svg"},{iso2:"BN",name:"Brunei Darussalam",dialCode:"+673",flag1x1:"/assets/flags/bn.svg"},{iso2:"BG",name:"Bulgaria",dialCode:"+359",flag1x1:"/assets/flags/bg.svg"},{iso2:"BF",name:"Burkina Faso",dialCode:"+226",flag1x1:"/assets/flags/bf.svg"},{iso2:"BI",name:"Burundi",dialCode:"+257",flag1x1:"/assets/flags/bi.svg"},{iso2:"KH",name:"Cambodia",dialCode:"+855",flag1x1:"/assets/flags/kh.svg"},{iso2:"CM",name:"Cameroon",dialCode:"+237",flag1x1:"/assets/flags/cm.svg"},{iso2:"CA",name:"Canada",dialCode:"+1",flag1x1:"/assets/flags/ca.svg"},{iso2:"CV",name:"Cape Verde",dialCode:"+238",flag1x1:"/assets/flags/cv.svg"},{iso2:"KY",name:"Cayman Islands",dialCode:"+1345",flag1x1:"/assets/flags/ky.svg"},{iso2:"CF",name:"Central African Republic",dialCode:"+236",flag1x1:"/assets/flags/cf.svg"},{iso2:"TD",name:"Chad",dialCode:"+235",flag1x1:"/assets/flags/td.svg"},{iso2:"CL",name:"Chile",dialCode:"+56",flag1x1:"/assets/flags/cl.svg"},{iso2:"CN",name:"China",dialCode:"+86",flag1x1:"/assets/flags/cn.svg"},{iso2:"CX",name:"Christmas Island",dialCode:"+61",flag1x1:"/assets/flags/cx.svg"},{iso2:"CC",name:"Cocos (Keeling) Islands",dialCode:"+61",flag1x1:"/assets/flags/cc.svg"},{iso2:"CO",name:"Colombia",dialCode:"+57",flag1x1:"/assets/flags/co.svg"},{iso2:"KM",name:"Comoros",dialCode:"+269",flag1x1:"/assets/flags/km.svg"},{iso2:"CG",name:"Congo",dialCode:"+242",flag1x1:"/assets/flags/cg.svg"},{iso2:"CD",name:"Congo, Democratic Republic of the",dialCode:"+243",flag1x1:"/assets/flags/cd.svg"},{iso2:"CK",name:"Cook Islands",dialCode:"+682",flag1x1:"/assets/flags/ck.svg"},{iso2:"CR",name:"Costa Rica",dialCode:"+506",flag1x1:"/assets/flags/cr.svg"},{iso2:"CI",name:"Cote d'Ivoire",dialCode:"+225",flag1x1:"/assets/flags/ci.svg"},{iso2:"HR",name:"Croatia",dialCode:"+385",flag1x1:"/assets/flags/hr.svg"},{iso2:"CU",name:"Cuba",dialCode:"+53",flag1x1:"/assets/flags/cu.svg"},{iso2:"CW",name:"Curaçao",dialCode:"+599",flag1x1:"/assets/flags/cw.svg"},{iso2:"CY",name:"Cyprus",dialCode:"+357",flag1x1:"/assets/flags/cy.svg"},{iso2:"CZ",name:"Czech Republic",dialCode:"+420",flag1x1:"/assets/flags/cz.svg"},{iso2:"DK",name:"Denmark",dialCode:"+45",flag1x1:"/assets/flags/dk.svg"},{iso2:"DJ",name:"Djibouti",dialCode:"+253",flag1x1:"/assets/flags/dj.svg"},{iso2:"DM",name:"Dominica",dialCode:"+1767",flag1x1:"/assets/flags/dm.svg"},{iso2:"DO",name:"Dominican Republic",dialCode:"+1",flag1x1:"/assets/flags/do.svg"},{iso2:"EC",name:"Ecuador",dialCode:"+593",flag1x1:"/assets/flags/ec.svg"},{iso2:"EG",name:"Egypt",dialCode:"+20",flag1x1:"/assets/flags/eg.svg"},{iso2:"SV",name:"El Salvador",dialCode:"+503",flag1x1:"/assets/flags/sv.svg"},{iso2:"GQ",name:"Equatorial Guinea",dialCode:"+240",flag1x1:"/assets/flags/gq.svg"},{iso2:"ER",name:"Eritrea",dialCode:"+291",flag1x1:"/assets/flags/er.svg"},{iso2:"EE",name:"Estonia",dialCode:"+372",flag1x1:"/assets/flags/ee.svg"},{iso2:"ET",name:"Ethiopia",dialCode:"+251",flag1x1:"/assets/flags/et.svg"},{iso2:"FK",name:"Falkland Islands",dialCode:"+500",flag1x1:"/assets/flags/fk.svg"},{iso2:"FO",name:"Faroe Islands",dialCode:"+298",flag1x1:"/assets/flags/fo.svg"},{iso2:"FM",name:"Federated States of Micronesia",dialCode:"+691",flag1x1:"/assets/flags/fm.svg"},{iso2:"FJ",name:"Fiji",dialCode:"+679",flag1x1:"/assets/flags/fj.svg"},{iso2:"FI",name:"Finland",dialCode:"+358",flag1x1:"/assets/flags/fi.svg"},{iso2:"FR",name:"France",dialCode:"+33",flag1x1:"/assets/flags/fr.svg"},{iso2:"GF",name:"French Guiana",dialCode:"+594",flag1x1:"/assets/flags/gf.svg"},{iso2:"PF",name:"French Polynesia",dialCode:"+689",flag1x1:"/assets/flags/pf.svg"},{iso2:"GA",name:"Gabon",dialCode:"+241",flag1x1:"/assets/flags/ga.svg"},{iso2:"GM",name:"Gambia",dialCode:"+220",flag1x1:"/assets/flags/gm.svg"},{iso2:"GE",name:"Georgia",dialCode:"+995",flag1x1:"/assets/flags/ge.svg"},{iso2:"DE",name:"Germany",dialCode:"+49",flag1x1:"/assets/flags/de.svg"},{iso2:"GH",name:"Ghana",dialCode:"+233",flag1x1:"/assets/flags/gh.svg"},{iso2:"GI",name:"Gibraltar",dialCode:"+350",flag1x1:"/assets/flags/gi.svg"},{iso2:"GR",name:"Greece",dialCode:"+30",flag1x1:"/assets/flags/gr.svg"},{iso2:"GL",name:"Greenland",dialCode:"+299",flag1x1:"/assets/flags/gl.svg"},{iso2:"GD",name:"Grenada",dialCode:"+1473",flag1x1:"/assets/flags/gd.svg"},{iso2:"GP",name:"Guadeloupe",dialCode:"+590",flag1x1:"/assets/flags/gp.svg"},{iso2:"GU",name:"Guam",dialCode:"+1671",flag1x1:"/assets/flags/gu.svg"},{iso2:"GT",name:"Guatemala",dialCode:"+502",flag1x1:"/assets/flags/gt.svg"},{iso2:"GG",name:"Guernsey",dialCode:"+44",flag1x1:"/assets/flags/gg.svg"},{iso2:"GN",name:"Guinea",dialCode:"+224",flag1x1:"/assets/flags/gn.svg"},{iso2:"GW",name:"Guinea-Bissau",dialCode:"+245",flag1x1:"/assets/flags/gw.svg"},{iso2:"GY",name:"Guyana",dialCode:"+592",flag1x1:"/assets/flags/gy.svg"},{iso2:"HT",name:"Haiti",dialCode:"+509",flag1x1:"/assets/flags/ht.svg"},{iso2:"VA",name:"Holy See (Vatican City State)",dialCode:"+379",flag1x1:"/assets/flags/va.svg"},{iso2:"HN",name:"Honduras",dialCode:"+504",flag1x1:"/assets/flags/hn.svg"},{iso2:"HK",name:"Hong Kong",dialCode:"+852",flag1x1:"/assets/flags/hk.svg"},{iso2:"HU",name:"Hungary",dialCode:"+36",flag1x1:"/assets/flags/hu.svg"},{iso2:"IS",name:"Iceland",dialCode:"+354",flag1x1:"/assets/flags/is.svg"},{iso2:"IN",name:"India",dialCode:"+91",flag1x1:"/assets/flags/in.svg"},{iso2:"ID",name:"Indonesia",dialCode:"+62",flag1x1:"/assets/flags/id.svg"},{iso2:"IR",name:"Iran",dialCode:"+98",flag1x1:"/assets/flags/ir.svg"},{iso2:"IQ",name:"Iraq",dialCode:"+964",flag1x1:"/assets/flags/iq.svg"},{iso2:"IE",name:"Ireland",dialCode:"+353",flag1x1:"/assets/flags/ie.svg"},{iso2:"IM",name:"Isle of Man",dialCode:"+44",flag1x1:"/assets/flags/im.svg"},{iso2:"IL",name:"Israel",dialCode:"+972",flag1x1:"/assets/flags/il.svg"}
3325,{iso2:"IT",name:"Italy",dialCode:"+39",flag1x1:"/assets/flags/it.svg"},{iso2:"JM",name:"Jamaica",dialCode:"+1876",flag1x1:"/assets/flags/jm.svg"},{iso2:"JP",name:"Japan",dialCode:"+81",flag1x1:"/assets/flags/jp.svg"},{iso2:"JE",name:"Jersey",dialCode:"+44",flag1x1:"/assets/flags/je.svg"},{iso2:"JO",name:"Jordan",dialCode:"+962",flag1x1:"/assets/flags/jo.svg"},{iso2:"KZ",name:"Kazakhstan",dialCode:"+7",flag1x1:"/assets/flags/kz.svg"},{iso2:"KE",name:"Kenya",dialCode:"+254",flag1x1:"/assets/flags/ke.svg"},{iso2:"KI",name:"Kiribati",dialCode:"+686",flag1x1:"/assets/flags/ki.svg"},{iso2:"XK",name:"Kosovo",dialCode:"+383",flag1x1:"/assets/flags/xk.svg"},{iso2:"KW",name:"Kuwait",dialCode:"+965",flag1x1:"/assets/flags/kw.svg"},{iso2:"KG",name:"Kyrgyzstan",dialCode:"+996",flag1x1:"/assets/flags/kg.svg"},{iso2:"LA",name:"Laos",dialCode:"+856",flag1x1:"/assets/flags/la.svg"},{iso2:"LV",name:"Latvia",dialCode:"+371",flag1x1:"/assets/flags/lv.svg"},{iso2:"LB",name:"Lebanon",dialCode:"+961",flag1x1:"/assets/flags/lb.svg"},{iso2:"LS",name:"Lesotho",dialCode:"+266",flag1x1:"/assets/flags/ls.svg"},{iso2:"LR",name:"Liberia",dialCode:"+231",flag1x1:"/assets/flags/lr.svg"},{iso2:"LY",name:"Libya",dialCode:"+218",flag1x1:"/assets/flags/ly.svg"},{iso2:"LI",name:"Liechtenstein",dialCode:"+423",flag1x1:"/assets/flags/li.svg"},{iso2:"LT",name:"Lithuania",dialCode:"+370",flag1x1:"/assets/flags/lt.svg"},{iso2:"LU",name:"Luxembourg",dialCode:"+352",flag1x1:"/assets/flags/lu.svg"},{iso2:"MO",name:"Macao",dialCode:"+853",flag1x1:"/assets/flags/mo.svg"},{iso2:"MG",name:"Madagascar",dialCode:"+261",flag1x1:"/assets/flags/mg.svg"},{iso2:"MW",name:"Malawi",dialCode:"+265",flag1x1:"/assets/flags/mw.svg"},{iso2:"MY",name:"Malaysia",dialCode:"+60",flag1x1:"/assets/flags/my.svg"},{iso2:"MV",name:"Maldives",dialCode:"+960",flag1x1:"/assets/flags/mv.svg"},{iso2:"ML",name:"Mali",dialCode:"+223",flag1x1:"/assets/flags/ml.svg"},{iso2:"MT",name:"Malta",dialCode:"+356",flag1x1:"/assets/flags/mt.svg"},{iso2:"MH",name:"Marshall Islands",dialCode:"+692",flag1x1:"/assets/flags/mh.svg"},{iso2:"MQ",name:"Martinique",dialCode:"+596",flag1x1:"/assets/flags/mq.svg"},{iso2:"MR",name:"Mauritania",dialCode:"+222",flag1x1:"/assets/flags/mr.svg"},{iso2:"MU",name:"Mauritius",dialCode:"+230",flag1x1:"/assets/flags/mu.svg"},{iso2:"YT",name:"Mayotte",dialCode:"+262",flag1x1:"/assets/flags/yt.svg"},{iso2:"MX",name:"Mexico",dialCode:"+52",flag1x1:"/assets/flags/mx.svg"},{iso2:"MD",name:"Moldova",dialCode:"+373",flag1x1:"/assets/flags/md.svg"},{iso2:"MC",name:"Monaco",dialCode:"+377",flag1x1:"/assets/flags/mc.svg"},{iso2:"MN",name:"Mongolia",dialCode:"+976",flag1x1:"/assets/flags/mn.svg"},{iso2:"ME",name:"Montenegro",dialCode:"+382",flag1x1:"/assets/flags/me.svg"},{iso2:"MS",name:"Montserrat",dialCode:"+1664",flag1x1:"/assets/flags/ms.svg"},{iso2:"MA",name:"Morocco",dialCode:"+212",flag1x1:"/assets/flags/ma.svg"},{iso2:"MZ",name:"Mozambique",dialCode:"+258",flag1x1:"/assets/flags/mz.svg"},{iso2:"MM",name:"Myanmar",dialCode:"+95",flag1x1:"/assets/flags/mm.svg"},{iso2:"NA",name:"Namibia",dialCode:"+264",flag1x1:"/assets/flags/na.svg"},{iso2:"NR",name:"Nauru",dialCode:"+674",flag1x1:"/assets/flags/nr.svg"},{iso2:"NP",name:"Nepal",dialCode:"+977",flag1x1:"/assets/flags/np.svg"},{iso2:"NL",name:"Netherlands",dialCode:"+31",flag1x1:"/assets/flags/nl.svg"},{iso2:"NC",name:"New Caledonia",dialCode:"+687",flag1x1:"/assets/flags/nc.svg"},{iso2:"NZ",name:"New Zealand",dialCode:"+64",flag1x1:"/assets/flags/nz.svg"},{iso2:"NI",name:"Nicaragua",dialCode:"+505",flag1x1:"/assets/flags/ni.svg"},{iso2:"NE",name:"Niger",dialCode:"+227",flag1x1:"/assets/flags/ne.svg"},{iso2:"NG",name:"Nigeria",dialCode:"+234",flag1x1:"/assets/flags/ng.svg"},{iso2:"NU",name:"Niue",dialCode:"+683",flag1x1:"/assets/flags/nu.svg"},{iso2:"NF",name:"Norfolk Island",dialCode:"+672",flag1x1:"/assets/flags/nf.svg"},{iso2:"KP",name:"North Korea",dialCode:"+850",flag1x1:"/assets/flags/kp.svg"},{iso2:"MK",name:"North Macedonia",dialCode:"+389",flag1x1:"/assets/flags/mk.svg"},{iso2:"MP",name:"Northern Mariana Islands",dialCode:"+1670",flag1x1:"/assets/flags/mp.svg"},{iso2:"NO",name:"Norway",dialCode:"+47",flag1x1:"/assets/flags/no.svg"},{iso2:"OM",name:"Oman",dialCode:"+968",flag1x1:"/assets/flags/om.svg"},{iso2:"PK",name:"Pakistan",dialCode:"+92",flag1x1:"/assets/flags/pk.svg"},{iso2:"PW",name:"Palau",dialCode:"+680",flag1x1:"/assets/flags/pw.svg"},{iso2:"PS",name:"Palestine",dialCode:"+970",flag1x1:"/assets/flags/ps.svg"},{iso2:"PA",name:"Panama",dialCode:"+507",flag1x1:"/assets/flags/pa.svg"}
3325,{iso2:"PG",name:"Papua New Guinea",dialCode:"+675",flag1x1:"/assets/flags/pg.svg"},{iso2:"PY",name:"Paraguay",dialCode:"+595",flag1x1:"/assets/flags/py.svg"},{iso2:"PE",name:"Peru",dialCode:"+51",flag1x1:"/assets/flags/pe.svg"},{iso2:"PH",name:"Philippines",dialCode:"+63",flag1x1:"/assets/flags/ph.svg"},{iso2:"PL",name:"Poland",dialCode:"+48",flag1x1:"/assets/flags/pl.svg"},{iso2:"PT",name:"Portugal",dialCode:"+351",flag1x1:"/assets/flags/pt.svg"},{iso2:"PR",name:"Puerto Rico",dialCode:"+1",flag1x1:"/assets/flags/pr.svg"},{iso2:"QA",name:"Qatar",dialCode:"+974",flag1x1:"/assets/flags/qa.svg"},{iso2:"RE",name:"Reunion",dialCode:"+262",flag1x1:"/assets/flags/re.svg"},{iso2:"RO",name:"Romania",dialCode:"+40",flag1x1:"/assets/flags/ro.svg"},{iso2:"RU",name:"Russia",dialCode:"+7",flag1x1:"/assets/flags/ru.svg"},{iso2:"RW",name:"Rwanda",dialCode:"+250",flag1x1:"/assets/flags/rw.svg"},{iso2:"BL",name:"Saint Barthélemy",dialCode:"+590",flag1x1:"/assets/flags/bl.svg"},{iso2:"SH",name:"Saint Helena",dialCode:"+290",flag1x1:"/assets/flags/sh.svg"},{iso2:"KN",name:"Saint Kitts and Nevis",dialCode:"+1869",flag1x1:"/assets/flags/kn.svg"},{iso2:"LC",name:"Saint Lucia",dialCode:"+1758",flag1x1:"/assets/flags/lc.svg"},{iso2:"MF",name:"Saint Martin (French Part)",dialCode:"+590",flag1x1:"/assets/flags/mf.svg"},{iso2:"PM",name:"Saint Pierre and Miquelon",dialCode:"+508",flag1x1:"/assets/flags/pm.svg"},{iso2:"VC",name:"Saint Vincent and the Grenadines",dialCode:"+1784",flag1x1:"/assets/flags/vc.svg"},{iso2:"WS",name:"Samoa",dialCode:"+685",flag1x1:"/assets/flags/ws.svg"},{iso2:"SM",name:"San Marino",dialCode:"+378",flag1x1:"/assets/flags/sm.svg"},{iso2:"ST",name:"Sao Tome and Principe",dialCode:"+239",flag1x1:"/assets/flags/st.svg"},{iso2:"SA",name:"Saudi Arabia",dialCode:"+966",flag1x1:"/assets/flags/sa.svg"},{iso2:"SN",name:"Senegal",dialCode:"+221",flag1x1:"/assets/flags/sn.svg"},{iso2:"RS",name:"Serbia",dialCode:"+381",flag1x1:"/assets/flags/rs.svg"},{iso2:"SC",name:"Seychelles",dialCode:"+248",flag1x1:"/assets/flags/sc.svg"},{iso2:"SL",name:"Sierra Leone",dialCode:"+232",flag1x1:"/assets/flags/sl.svg"},{iso2:"SG",name:"Singapore",dialCode:"+65",flag1x1:"/assets/flags/sg.svg"},{iso2:"SX",name:"Sint Maarten",dialCode:"+1721",flag1x1:"/assets/flags/sx.svg"},{iso2:"SK",name:"Slovakia",dialCode:"+421",flag1x1:"/assets/flags/sk.svg"},{iso2:"SI",name:"Slovenia",dialCode:"+386",flag1x1:"/assets/flags/si.svg"},{iso2:"SB",name:"Solomon Islands",dialCode:"+677",flag1x1:"/assets/flags/sb.svg"},{iso2:"SO",name:"Somalia",dialCode:"+252",flag1x1:"/assets/flags/so.svg"},{iso2:"ZA",name:"South Africa",dialCode:"+27",flag1x1:"/assets/flags/za.svg"},{iso2:"KR",name:"South Korea",dialCode:"+82",flag1x1:"/assets/flags/kr.svg"},{iso2:"SS",name:"South Sudan",dialCode:"+211",flag1x1:"/assets/flags/ss.svg"},{iso2:"ES",name:"Spain",dialCode:"+34",flag1x1:"/assets/flags/es.svg"},{iso2:"LK",name:"Sri Lanka",dialCode:"+94",flag1x1:"/assets/flags/lk.svg"},{iso2:"SD",name:"Sudan",dialCode:"+249",flag1x1:"/assets/flags/sd.svg"},{iso2:"SR",name:"Suriname",dialCode:"+597",flag1x1:"/assets/flags/sr.svg"},{iso2:"SJ",name:"Svalbard and Jan Mayen",dialCode:"+47",flag1x1:"/assets/flags/sj.svg"},{iso2:"SZ",name:"Swaziland",dialCode:"+268",flag1x1:"/assets/flags/sz.svg"},{iso2:"SE",name:"Sweden",dialCode:"+46",flag1x1:"/assets/flags/se.svg"},{iso2:"CH",name:"Switzerland",dialCode:"+41",flag1x1:"/assets/flags/ch.svg"},{iso2:"SY",name:"Syria",dialCode:"+963",flag1x1:"/assets/flags/sy.svg"},{iso2:"TW",name:"Taiwan",dialCode:"+886",flag1x1:"/assets/flags/tw.svg"},{iso2:"TJ",name:"Tajikistan",dialCode:"+992",flag1x1:"/assets/flags/tj.svg"},{iso2:"TZ",name:"Tanzania",dialCode:"+255",flag1x1:"/assets/flags/tz.svg"},{iso2:"TH",name:"Thailand",dialCode:"+66",flag1x1:"/assets/flags/th.svg"},{iso2:"TL",name:"Timor-Leste",dialCode:"+670",flag1x1:"/assets/flags/tl.svg"},{iso2:"TG",name:"Togo",dialCode:"+228",flag1x1:"/assets/flags/tg.svg"},{iso2:"TK",name:"Tokelau",dialCode:"+690",flag1x1:"/assets/flags/tk.svg"},{iso2:"TO",name:"Tonga",dialCode:"+676",flag1x1:"/assets/flags/to.svg"},{iso2:"TT",name:"Trinidad and Tobago",dialCode:"+1868",flag1x1:"/assets/flags/tt.svg"},{iso2:"TA",name:"Tristan da Cunha",dialCode:"+290",flag1x1:"/assets/flags/ta.svg"},{iso2:"TN",name:"Tunisia",dialCode:"+216",flag1x1:"/assets/flags/tn.svg"}
3325,{iso2:"TR",name:"Turkey",dialCode:"+90",flag1x1:"/assets/flags/tr.svg"},{iso2:"TM",name:"Turkmenistan",dialCode:"+993",flag1x1:"/assets/flags/tm.svg"},{iso2:"TC",name:"Turks and Caicos Islands",dialCode:"+1649",flag1x1:"/assets/flags/tc.svg"},{iso2:"TV",name:"Tuvalu",dialCode:"+688",flag1x1:"/assets/flags/tv.svg"},{iso2:"UG",name:"Uganda",dialCode:"+256",flag1x1:"/assets/flags/ug.svg"},{iso2:"UA",name:"Ukraine",dialCode:"+380",flag1x1:"/assets/flags/ua.svg"},{iso2:"AE",name:"United Arab Emirates",dialCode:"+971",flag1x1:"/assets/flags/ae.svg"},{iso2:"GB",name:"United Kingdom",dialCode:"+44",flag1x1:"/assets/flags/gb.svg"},{iso2:"US",name:"United States",dialCode:"+1",flag1x1:"/assets/flags/us.svg"},{iso2:"UY",name:"Uruguay",dialCode:"+598",flag1x1:"/assets/flags/uy.svg"},{iso2:"UZ",name:"Uzbekistan",dialCode:"+998",flag1x1:"/assets/flags/uz.svg"},{iso2:"VU",name:"Vanuatu",dialCode:"+678",flag1x1:"/assets/flags/vu.svg"},{iso2:"VE",name:"Venezuela",dialCode:"+58",flag1x1:"/assets/flags/ve.svg"},{iso2:"VN",name:"Vietnam",dialCode:"+84",flag1x1:"/assets/flags/vn.svg"},{iso2:"VG",name:"Virgin Islands, British",dialCode:"+1284",flag1x1:"/assets/flags/vg.svg"},{iso2:"VI",name:"Virgin Islands, U.S.",dialCode:"+1340",flag1x1:"/assets/flags/vi.svg"},{iso2:"WF",name:"Wallis and Futuna",dialCode:"+681",flag1x1:"/assets/flags/wf.svg"},{iso2:"EH",name:"Western Sahara",dialCode:"+212",flag1x1:"/assets/flags/eh.svg"},{iso2:"YE",name:"Yemen",dialCode:"+967",flag1x1:"/assets/flags/ye.svg"},{iso2:"ZM",name:"Zambia",dialCode:"+260",flag1x1:"/assets/flags/zm.svg"},{iso2:"ZW",name:"Zimbabwe",dialCode:"+263",flag1x1:"/assets/flags/zw.svg"}];let yr="/assets/flags";function $r(e=""){if(!yr||"/assets/flags"===yr){const e=window.PushWebComponents?.config;e?.flagBasePath&&(t=e.flagBasePath,yr=t)}var t;return yr.replace(/\/$/,"")+(e?`/${e.replace(/^\//,"")}`:"")}const xr=[Aa,d` 3326 /* Main container */ 3327 .input { 3328 background-color: rgb(from var(--pu-input-color-background, hsl(0 0% 99.5%)) r g b / alpha); 3329 border: solid var(--pu-input-border-width, 0.0625em) 3330 rgb( 3331 from var(--pu-input-border-color, hsl(240, 5%, 65%)) r g b / 3332 calc(alpha * var(--pu-input-opacity-border, 1)) 3333 ); 3334 border-radius: var(--pu-input-border-radius, var(--pu-border-radius, 0.25em)); 3335 height: var(--pu-size-height); 3336 overflow: hidden; 3337 width: 100%; 3338 cursor: text; 3339 } 3340 3341 .input__wrapper { 3342 display: inline-flex; 3343 align-items: center; 3344 position: relative; 3345 width: 100%; 3346 height: 100%; 3347 } 3348 3349 .dial-code__container { 3350 flex: 0 1 auto; 3351 position: absolute; 3352 top: 0; 3353 bottom: 0; 3354 left: 0; 3355 padding: 0 0.5em; 3356 } 3357 3358 .dial-code__placeholder { 3359 font-size: var(--pu-flag-icon-font-size); 3360 } 3361 3362 .dial-code__flag { 3363 display: flex; 3364 gap: 0.25em; 3365 align-items: center; 3366 height: 100%; 3367 } 3368 3369 .dial-code__flag-image { 3370 aspect-ratio: 1 / 1; 3371 height: var(--pu-flag-icon-image-size); 3372 object-fit: contain; 3373 object-position: center; 3374 display: block; 3375 border-radius: var(--pu-border-radius-full, 9999px); 3376 } 3377 3378 .dial-code__select { 3379 position: absolute; 3380 top: 0; 3381 left: 0; 3382 opacity: 0; 3383 height: 100%; 3384 width: 100%; 3385 cursor: pointer; 3386 } 3387 3388 .input__container { 3389 flex: 1 0 auto; 3390 padding-left: 3em; 3391 } 3392 .input__container--dial-code-disabled { 3393 padding-left: 1.75em; 3394 } 3395 3396 .input:hover:not(.input--disabled) { 3397 color: rgb(from var(--pu-input-color-foreground-hover, inherit) r g b / alpha); 3398 background-color: rgb(from var(--pu-input-color-background-hover, hsl(240, 5%, 96%)) r g b / alpha); 3399 border-color: rgb(from var(--pu-input-border-color-hover, hsl(240, 4%, 46%)) r g b / alpha); 3400 } 3401 3402 .input.input--focused:not(.input--disabled) { 3403 background-color: rgb(from var(--pu-color-focus-background) r g b / alpha); 3404 border-color: rgb(from var(--pu-color-focus-border) r g b / alpha); 3405 box-shadow: 3406 0 0 0 0.0625em rgb(from var(--pu-color-focus-background) r g b / alpha), 3407 0 0 0 0.25em rgb(from var(--pu-color-focus-ring, hsl(213.1 93.9% 67.8%)) r g b / alpha); 3408 } 3409 3410 /* Input field */
3411 .input__control { 3412 appearance: none; 3413 background: inherit; 3414 color: rgb(from var(--pu-input-color-foreground, inherit) r g b / alpha); 3415 border: none; 3416 flex: 1 1 auto; 3417 font-family: inherit; 3418 font-size: var(--pu-text-size); 3419 height: calc(var(--pu-size-height, 3em) - var(--pu-input-border-width, 0.0625em) * 2); 3420 letter-spacing: var(--pu-input-font-tracking, 0.05em); 3421 padding: 0 var(--pu-space-padding); 3422 cursor: inherit; 3423 width: 100%; 3424 } 3425 3426 .input__control::placeholder { 3427 color: rgb(from var(--pu-input-placeholder-color-foreground, hsl(240, 4%, 46%)) r g b / alpha); 3428 } 3429 .input__control:hover { 3430 color: rgb(from var(--pu-input-color-foreground-hover, inherit) r g b / alpha); 3431 } 3432 .input__control:focus { 3433 outline: none; 3434 } 3435`,d` 3436 /* State API Classes */ 3437 .input--disabled { 3438 background-color: rgb(from var(--pu-input-color-background-disabled, hsl(240, 5%, 96%)) r g b / alpha); 3439 border-color: rgb(from var(--pu-input-border-color-disabled, hsl(240, 5%, 84%), inherit) r g b / alpha); 3440 color: rgb(from var(--pu-input-color-foreground-disabled, inherit) r g b / alpha); 3441 cursor: not-allowed; 3442 opacity: 0.5; 3443 } 3444 3445 /* Size API Classes */ 3446 .input--small { 3447 --pu-text-size: var(--pu-input-font-size, var(--pu-text-body-size-xs, 0.75em)); 3448 --pu-size-height: var(--pu-input-size-height, var(--pu-space-800, 2em)); 3449 --pu-space-padding: var(--pu-input-space-inline-padding, var(--pu-space-300, 0.75em)); 3450 --pu-border-radius: var(--pu-input-border-radius, var(--pu-border-radius-050, 0.125em)); 3451 --pu-icon-font-size: var(--pu-input-icon-font-size, var(--pu-text-body-size-sm, 0.875em)); 3452 --pu-flag-icon-font-size: var(--pu-input-flag-icon-font-size, 1em); 3453 --pu-flag-icon-image-size: var(--pu-input-flag-icon-image-size, 1em); 3454 } 3455 .input--medium { 3456 --pu-text-size: var(--pu-input-font-size, var(--pu-text-body-size-sm, 0.875em)); 3457 --pu-size-height: var(--pu-space-1000, 2.5em); 3458 --pu-space-padding: var(--pu-input-space-inline-padding, var(--pu-space-400, 1em)); 3459 --pu-border-radius: var(--pu-input-border-radius, var(--pu-border-radius-100, 0.25em)); 3460 --pu-icon-font-size: var(--pu-input-icon-font-size, var(--pu-text-body-size-md, 1em)); 3461 --pu-flag-icon-font-size: var(--pu-input-flag-icon-font-size, 1.5em); 3462 --pu-flag-icon-image-size: var(--pu-input-flag-icon-image-size, 1.5em); 3463 } 3464 .input--large { 3465 --pu-text-size: var(--pu-input-font-size, var(--pu-text-body-size-md, 1em)); 3466 --pu-size-height: var(--pu-input-size-height, var(--pu-space-1200, 3em)); 3467 --pu-space-padding: var(--pu-input-space-inline-padding, var(--pu-space-500, 1.25em)); 3468 --pu-border-radius: var(--pu-input-border-radius, var(--pu-border-radius-200, 0.5em)); 3469 --pu-icon-font-size: var(--pu-input-icon-font-size, var(--pu-text-body-size-md, 1em)); 3470 --pu-flag-icon-font-size: var(--pu-input-flag-icon-font-size, 1.75em); 3471 --pu-flag-icon-image-size: var(--pu-input-flag-icon-image-size, 1.75em); 3472 } 3473`];class Cr extends ga{constructor(){super(...arguments),this.formControlController=new ji(this,{assumeInteractionOn:["pu-blur","pu-input"]}),this.autocomplete="tel",this.inputmode="tel",this.type="tel",this.size="medium",this.name="mobilephone",this.iso="ZZ",this.phoneValue="",this.form="",this.label="",this.labelHidden=!1,this.helpText="",this.placeholder="",this.pattern="",this.readonly=!1,this.required=!1,this.dialCodeDisabled=!1,this.disabled=!1,this.autofocus=!1,this.hasFocus=!1,this.hasSlotController=new Sa(this,"label","help-text"),this.formElement=null,this.handleFormData=e=>{if(!this.disabled&&this.isConnected){const t=this.getDialCode(this.iso);t&&!e.formData.has("mobilephone_country_code")&&e.formData.append("mobilephone_country_code",t)}}}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}get value(){return this.phoneValue}set value(e){this.phoneValue=e}firstUpdated(){this.formControlController.updateValidity(),this.updateHiddenCountryCodeInput(),this.setupFormDataHandler()}updated(e){super.updated(e),e.has("iso")&&this.updateHiddenCountryCodeInput();this.formControlController.getForm()!==this.formElement&&this.setupFormDataHandler()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupFormDataHandler()}setupFormDataHandler(){const e=this.formControlController.getForm();e&&e!==this.formElement&&(this.cleanupFormDataHandler(),e.addEventListener("formdata",this.handleFormData),this.formElement=e)}cleanupFormDataHandler(){this.formElement&&(this.formElement.removeEventListener("formdata",this.handleFormData),this.formElement=null)}getCountryEntry(e){return vr.find((t=>t.iso2===e.toUpperCase()))}getDialCode(e){const t=this.getCountryEntry(e);return t?.dialCode||"+"}updateHiddenCountryCodeInput(){this.hiddenCountryCodeInput&&(this.hiddenCountryCodeInput.value=this.getDialCode(this.iso))}
3473handleBlur(){this.hasFocus=!1,this.emit("pu-blur")}handleFocus(){this.hasFocus=!0,this.emit("pu-focus")}handleInput(){this.phoneValue=this.input.value,this.formControlController.updateValidity(),this.emit("pu-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleChange(){this.phoneValue=this.input.value,this.emit("pu-change")}handleDialCodeChange(){const e=this.dialCodeSelect.value,t=this.getDialCode(e);this.iso=e,this.updateHiddenCountryCodeInput(),this.emit("pu-change-dial-code",{detail:{iso:e,code:t}})}handleKeyDown(e){const t=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;"Enter"!==e.key||t||setTimeout((()=>{e.defaultPrevented||e.isComposing||this.formControlController.submit()}))}checkValidity(){return this.input.checkValidity()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}getForm(){return this.formControlController.getForm()}getValue(){if(this.input)return this.input.value}setValue(e){e&&(this.phoneValue=e)}renderFlag(e,t){if("ZZ"===e)return W`<span class="dial-code__placeholder">ð</span>`;if(t?.flag1x1){const e=function(e){const t="/assets/flags";if(!e)return e;if(e.startsWith(t))return $r(e.slice(13).replace(/^\//,""));return e}(t.flag1x1);return W`<img 3474 class="dial-code__flag-image" 3475 src=${vi(e)} 3476 alt=${`Country flag ${t.iso2}`} />`}return W`<span class="dial-code__placeholder">ð</span>`}render(){const e=this.hasSlotController.test("label"),t=this.hasSlotController.test("help-text"),o=!!this.label||!!e,i=this.labelHidden&&this.required?`* ${this.placeholder}`:this.placeholder,a=!!this.helpText||!!t,s=this.getCountryEntry(this.iso),r=this.getDialCode(this.iso);return W` 3477 <input 3478 type="hidden" 3479 name="mobilephone_country_code" 3480 .value="${r}" /> 3481 <div 3482 part="base input" 3483 class="${Ae({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-label":o,"form-control--hide-label":this.labelHidden,"form-control--has-help-text":a})}"> 3484 <label 3485 part="label" 3486 class="${Ae({"form-control__label":!0,"form-control__label--visually-hidden":this.labelHidden})}" 3487 for="input" 3488 aria-hidden=${o?"false":"true"}> 3489 <slot name="label">${this.label}</slot> 3490 </label> 3491 <div class="form-control__input"> 3492 <div 3493 part="input" 3494 class=${Ae({input:!0,"input--small":"small"===this.size,"input--medium":"medium"===this.size,"input--large":"large"===this.size,"input--disabled":this.disabled,"input--focused":this.hasFocus,"input--empty":!this.phoneValue,"input--has-label":o,"input--hide-label":this.labelHidden})}> 3495 <div class="input__wrapper"> 3496 <div class="dial-code__container"> 3497 <div class="dial-code__flag"> 3498 ${this.renderFlag(this.iso,s)} 3499 ${this.dialCodeDisabled?null:W` 3500 <pu-icon 3501 name="chevron-down" 3502 size="small"></pu-icon> 3503 `} 3504 </div> 3505 <select 3506 class="dial-code__select" 3507 aria-label="Phone number country" 3508 name="mobilephone_country_code" 3509 .value="${this.iso}" 3510 ?disabled="${this.disabled||this.dialCodeDisabled}" 3511 @change=${this.handleDialCodeChange}> 3512 ${vr.map((e=>W`<option value="${e.iso2}">${e.name} ${e.dialCode}</option>`))} 3513 </select> 3514 </div> 3515 <div
3516 class="${Ae({input__container:!0,"input__container--dial-code-disabled":this.dialCodeDisabled})}"> 3517 <input 3518 part="control" 3519 class="input__control" 3520 id="input" 3521 inputmode="${this.inputmode}" 3522 autocomplete=${vi(this.autocomplete)} 3523 type="${this.type}" 3524 .value="${this.phoneValue}" 3525 name="${this.name||"mobilephone"}" 3526 pattern=${vi(this.pattern||void 0)} 3527 placeholder="${i}" 3528 ?disabled="${this.disabled}" 3529 ?readonly=${this.readonly} 3530 ?required="${this.required}" 3531 ?autofocus=${this.autofocus} 3532 @change=${this.handleChange} 3533 @input=${this.handleInput} 3534 @invalid=${this.handleInvalid} 3535 @keydown=${this.handleKeyDown} 3536 @focus=${this.handleFocus} 3537 @blur=${this.handleBlur} /> 3538 </div> 3539 </div> 3540 </div> 3541 </div> 3542 <div 3543 part="help" 3544 id="help-text" 3545 class="form-control__help-text" 3546 aria-hidden=${a?"false":"true"}> 3547 <slot name="help-text">${this.helpText}</slot> 3548 </div> 3549 </div> 3550 `}}function wr(e,t,o){return new Promise((i=>{if(o?.duration===1/0)throw new Error("Promise-based animations must be finite.");const a=e.animate(t,{...o,duration:Sr()?0:o.duration});a.addEventListener("cancel",i,{once:!0}),a.addEventListener("finish",i,{once:!0})}))}function Sr(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function kr(e){return Promise.all(e.getAnimations().map((e=>new Promise((t=>{e.cancel(),requestAnimationFrame(t)})))))}Cr.styles=[ua,xr],Cr.dependencies={"pu-icon":xa},ca([ve()],Cr.prototype,"autocomplete",void 0),ca([ve()],Cr.prototype,"inputmode",void 0),ca([ve()],Cr.prototype,"type",void 0),ca([ve({reflect:!0})],Cr.prototype,"size",void 0),ca([ve()],Cr.prototype,"name",void 0),ca([ve()],Cr.prototype,"iso",void 0),ca([ve()],Cr.prototype,"phoneValue",void 0),ca([ve({reflect:!0})],Cr.prototype,"form",void 0),ca([ve()],Cr.prototype,"label",void 0),ca([ve({type:Boolean})],Cr.prototype,"labelHidden",void 0),ca([ve()],Cr.prototype,"helpText",void 0),ca([ve()],Cr.prototype,"placeholder",void 0),ca([ve()],Cr.prototype,"pattern",void 0),ca([ve({type:Boolean})],Cr.prototype,"readonly",void 0),ca([ve({type:Boolean})],Cr.prototype,"required",void 0),ca([ve({type:Boolean})],Cr.prototype,"dialCodeDisabled",void 0),ca([ve({type:Boolean,reflect:!0})],Cr.prototype,"disabled",void 0),ca([ve({type:Boolean})],Cr.prototype,"autofocus",void 0),ca([ye()],Cr.prototype,"hasFocus",void 0),ca([xe('input[type="tel"]')],Cr.prototype,"input",void 0),ca([xe("select")],Cr.prototype,"dialCodeSelect",void 0),ca([xe('input[name="mobilephone_country_code"]')],Cr.prototype,"hiddenCountryCodeInput",void 0),Cr.define("pu-phone-input");const _r=new Map,Pr=new WeakMap;function Ar(e,t){return"rtl"===t.toLowerCase()?{keyframes:e.rtlKeyframes||e.keyframes,options:e.options}:e}function Tr(e,t){_r.set(e,function(e){return e??{keyframes:[],options:{duration:0}}}(t))}function Er(e,t,o){const i=Pr.get(e);if(i?.[t])return Ar(i[t],o.dir);const a=_r.get(t);return a?Ar(a,o.dir):{keyframes:[],options:{duration:0}}}function Ir(e,t,o="vertical",i="smooth"){const a=function(e,t){return{top:Math.round(e.getBoundingClientRect().top-t.getBoundingClientRect().top),left
3550:Math.round(e.getBoundingClientRect().left-t.getBoundingClientRect().left)}}(e,t),s=a.top+t.scrollTop,r=a.left+t.scrollLeft,n=t.scrollLeft,l=t.scrollLeft+t.offsetWidth,d=t.scrollTop,c=t.scrollTop+t.offsetHeight;"horizontal"!==o&&"both"!==o||(r<n?t.scrollTo({left:r,behavior:i}):r+e.clientWidth>l&&t.scrollTo({left:r-t.offsetWidth+e.clientWidth,behavior:i})),"vertical"!==o&&"both"!==o||(s<d?t.scrollTo({top:s,behavior:i}):s+e.clientHeight>c&&t.scrollTo({top:s-t.offsetHeight+e.clientHeight,behavior:i}))}function zr(e,t){return new Promise((o=>{e.addEventListener(t,(function i(a){a.target===e&&(e.removeEventListener(t,i),o())}))}))}const Mr=[Aa,d` 3551 :host { 3552 display: block; 3553 } 3554 3555 /* The popup */ 3556 .select { 3557 flex: 1 1 auto; 3558 display: inline-flex; 3559 width: 100%; 3560 position: relative; 3561 vertical-align: middle; 3562 } 3563 3564 select[data-current-placement^='top']::part(popup) { 3565 transform-origin: bottom; 3566 } 3567 3568 select[data-current-placement^='bottom']::part(popup) { 3569 transform-origin: top; 3570 } 3571 3572 select:not(.select--disabled):hover .select__display-input { 3573 color: rgb(from var(--pu-input-color-foreground-hover, inherit) r g b / alpha); 3574 } 3575 3576 .select:not(.select--disabled):not(.select--open).select--focused .select__combobox { 3577 background-color: rgb(from var(--pu-color-focus-background) r g b / alpha); 3578 border-color: rgb(from var(--pu-color-focus-border, inherit) r g b / alpha); 3579 box-shadow: 3580 0 0 0 0.0625em var(--pu-color-focus-background), 3581 0 0 0 0.25em var(--pu-color-focus-ring, hsl(213.1 93.9% 67.8%)); 3582 } 3583 3584 .select:not(.select--disabled) .select__combobox:hover { 3585 border-color: rgb(from var(--pu-input-border-color-hover, hsl(240, 4%, 46%)) r g b / alpha); 3586 } 3587 3588 /* Combobox - main field display styles */ 3589 .select__combobox { 3590 flex: 1; 3591 display: flex; 3592 justify-content: start; 3593 align-items: center; 3594 position: relative; 3595 background-color: rgb(from var(--pu-input-color-background, hsl(0 0% 99.5%)) r g b / alpha); 3596 border-style: solid; 3597 border-width: var(--pu-input-border-width, 0.0625em); 3598 border-color: rgb( 3599 from var(--pu-input-border-color, hsl(240, 5%, 65%)) r g b / calc(alpha * var(--pu-input-opacity-border, 1)) 3600 ); 3601 border-radius: var(--pu-input-border-radius, var(--pu-border-input-size-corner-radius, 0.5em)); 3602 letter-spacing: var(--pu-input-font-tracking, 0.05em); 3603 padding-inline: var(--pu-input-space-padding); 3604 padding-block: 0; 3605 vertical-align: middle; 3606 overflow: hidden; 3607 min-height: var(--pu-input-size-height); 3608 min-width: 0; 3609 width: 100%; 3610 cursor: pointer; 3611 transition: 3612 var(--pu-transition-duration-150) color, 3613 var(--pu-transition-duration-150) border, 3614 var(--pu-transition-duration-150) box-shadow, 3615 var(--pu-transition-duration-150) background-color; 3616 } 3617 3618 /* Display input */ 3619 .select__display-input { 3620 font-family: var(--pu-text-body-family); 3621 font-size: var(--pu-input-font-size); 3622 position: relative; 3623 width: 100%; 3624 border: none; 3625 background: none; 3626 color: rgb(from var(--pu-input-color-foreground, inherit) r g b / alpha); 3627 overflow: hidden; 3628 padding: 0 var(--pu-space-200) 0 0; 3629 margin: 0; 3630 -webkit-appearance: none; 3631 cursor: inherit; 3632 } 3633 3634 .select__display-input::placeholder { 3635 color: rgb(var(--pu-input-placeholder-color-foreground, hsl(240, 4%, 46%)) r g b / alpha); 3636 } 3637 .select__display-input:focus { 3638 outline: none; 3639 } 3640 3641 /* Hidden input */ 3642 .select__value-input { 3643 position: absolute; 3644 top: 0; 3645 left: 0; 3646 width: 100%; 3647 height: 100%; 3648 padding: 0; 3649 margin: 0; 3650 opacity: 0; 3651 z-index: -1; 3652 } 3653 3654 /* Tags */ 3655 .select__tags { 3656 display: flex; 3657 flex: 1; 3658 align-items: center; 3659 flex-wrap: wrap; 3660 margin-inline-start: var(--pu-space-100, 0.25em); 3661 } 3662 .select__tags::slotted(pu-tag) { 3663 cursor: pointer !important; 3664 } 3665 3666 /* Prefix */ 3667 .select__prefix { 3668 flex: 0; 3669 display: inline-flex; 3670 align-items: center; 3671 --pu-icon-color-foreground: rgb(from var(--pu-input-icon-color-foreground, hsl(240 5.9% 10%)) r g b / alpha); 3672 } 3673 3674 /* Suffix */ 3675 .select__suffix { 3676 flex: 0; 3677 display: inline-flex; 3678 align-items: center; 3679 --pu-icon-color-foreground: rgb(from var(--pu-input-icon-color-foreground, hsl(240 5.9% 10%)) r g b / alpha); 3680 } 3681 3682 /* Clear button */ 3683 .select__clear { 3684 display: inline-flex; 3685 align-items: center; 3686 justify-content: center; 3687 font-size: inherit; 3688 border: none; 3689 background: none; 3690 padding: 0; 3691 transition: var(--pu-transition-duration-150) color; 3692 cursor: pointer; 3693 --pu-icon-color-foreground: rgb(from var(--pu-input-icon-color-foreground, hsl(240 5.9% 10%)) r g b / alpha); 3694 } 3695 .select__clear:hover { 3696 color: rgb(from var(--pu-input-icon-color-foreground-hover, hsl(0 0% 99.5%)) r g b / alpha); 3697 } 3698 .select__clear:focus { 3699 outline: none; 3700 } 3701 3702 /* Expand icon */ 3703 .select__expand-icon { 3704 flex: 0 0 auto; 3705 display: flex; 3706 align-items: center; 3707 transition: var(--pu-transition-duration-250, 0.25s) rotate ease; 3708 rotate: 0; 3709 margin-inline-start: var(--pu-space-100, 0.25em); 3710 } 3711 3712 /* Listbox */ 3713 .select__listbox { 3714 display: block; 3715 position: relative; 3716 font-family: var(--pu-text-body-family); 3717 font-size: var(--pu-text-body-size-md, 0.875em); 3718 box-shadow: var(--pu-shadow-elevation-300); 3719 background: rgb(from var(--pu-select-panel-color-background, hsl(0 0% 99.5%)) r g b / alpha); 3720 border-radius: var(--pu-input-border-radius, var(--pu-border-input-size-corner-radius, 0.25em)); 3721 padding-block: var(--pu-space-300, 0.75em); 3722 padding-inline: 0; 3723 overflow: auto;
3724 overscroll-behavior: none; 3725 max-width: var(--auto-size-available-width); 3726 max-height: var(--auto-size-available-height); 3727 } 3728 .select__listbox ::slotted(pu-divider) { 3729 --spacing: var(--pu-space-200, 0.5em); 3730 } 3731 @media (max-width: 47.9975em) { 3732 .select__listbox { 3733 padding-block: var(--pu-space-400, 0.75em); 3734 } 3735 } 3736`,d` 3737 /* State API Classes */ 3738 .select.select--disabled .select__combobox { 3739 background-color: rgb(from var(--pu-input-color-background-disabled, hsl(240, 5%, 96%)) r g b / alpha); 3740 border-color: rgb(from var(--pu-input-border-color-disabled, hsl(240, 5%, 84%), inherit) r g b / alpha); 3741 color: rgb(from var(--pu-input-color-foreground-disabled, inherit) r g b / alpha); 3742 opacity: 0.5; 3743 cursor: not-allowed; 3744 outline: none; 3745 } 3746 3747 .select--disabled .select__tags, 3748 .select--disabled .select__tags::slotted(sl-tag) { 3749 cursor: not-allowed !important; 3750 } 3751 3752 /* Boolean Property API - Open State */ 3753 .select--open .select__expand-icon { 3754 rotate: -180deg; 3755 } 3756 3757 /* Boolean Property API - narrow Float Bottom */ 3758 @media (max-width: 47.9975em) { 3759 .select.select--narrow-float-bottom .select__listbox { 3760 border-bottom-left-radius: 0; 3761 border-bottom-right-radius: 0; 3762 } 3763 } 3764 3765 /* Size API Classes - Small */ 3766 /* Use rems due to the use of the font-size property */ 3767 .select--small .select__combobox { 3768 --pu-input-font-size: var(--pu-select-font-size, var(--pu-text-body-size-xs, 0.75rem)); 3769 --pu-input-size-height: var(--pu-select-size-height, var(--pu-space-800, 2rem)); 3770 --pu-input-space-padding: var(--pu-select-space-inline-padding, var(--pu-space-300, 0.75rem)); 3771 --pu-border-input-size-corner-radius: var(--pu-select-border-radius, var(--pu-border-radius-050, 0.125rem)); 3772 } 3773 .select--small .select__clear { 3774 margin-inline-start: var(--pu-space-100, 0.25em); 3775 } 3776 .select--small .select__prefix::slotted(*) { 3777 margin-inline-end: var(--pu-space-200, 0.5em); 3778 } 3779 .select--small.select--multiple:not(.select--placeholder-visible) .select__combobox { 3780 padding-block: 0.125em; 3781 padding-inline-start: 0; 3782 } 3783 .select--small .select__tags { 3784 gap: 0.125em; 3785 } 3786 3787 /* Size API Classes - Medium */ 3788 .select--medium .select__combobox { 3789 --pu-input-font-size: var(--pu-select-font-size, var(--pu-text-body-size-sm, 0.875rem)); 3790 --pu-input-size-height: var(--pu-select-size-height, var(--pu-space-1000, 2.5rem)); 3791 --pu-input-space-padding: var(--pu-select-space-inline-padding, var(--pu-space-400, 1rem)); 3792 --pu-border-input-size-corner-radius: var(--pu-select-border-radius, var(--pu-border-radius-100, 0.25rem)); 3793 } 3794 .select--medium .select__clear { 3795 margin-inline-start: var(--pu-space-200, 0.5em); 3796 } 3797 .select--medium .select__prefix::slotted(*) { 3798 margin-inline-end: var(--pu-space-300, 0.75em); 3799 } 3800 .select--medium.select--multiple:not(.select--placeholder-visible) .select__combobox { 3801 padding-inline-start: 0; 3802 padding-block: 0.1875em; 3803 } 3804 .select--medium .select__tags { 3805 gap: 0.1875rem; 3806 } 3807 3808 /* Size API Classes - Large */ 3809 .select--large .select__combobox { 3810 --pu-input-font-size: var(--pu-select-font-size, var(--pu-text-body-size-md, 1rem)); 3811 --pu-input-size-height: var(--pu-select-size-height, var(--pu-space-1200, 3rem)); 3812 --pu-input-space-padding: var(--pu-select-space-inline-padding, var(--pu-space-500, 1.25rem)); 3813 --pu-border-input-size-corner-radius: var(--pu-select-border-radius, var(--pu-border-radius-200, 0.5rem)); 3814 } 3815 .select--large .select__clear { 3816 margin-inline-start: var(--pu-space-300, 0.75rem); 3817 } 3818 .select--large .select__prefix::slotted(*) { 3819 margin-inline-end: var(--pu-space-400, 1rem); 3820 } 3821 .select--large.select--multiple:not(.select--placeholder-visible) .select__combobox { 3822 padding-inline-start: 0; 3823 padding-block: 0.25rem; 3824 } 3825 .select--large .select__tags { 3826 gap: 0.25em; 3827 } 3828 3829 /* Boolean Property API - Fit to Content */ 3830 .select__combobox--fit-to-content .select__display-input { 3831 field-sizing: content; 3832 } 3833 3834 /* Label Position API Classes */ 3835 .select--label-inset-top:not(.select--hide-label).select--has-label.select--small .select__combobox, 3836 .select--label-inset-top:not(.select--hide-label).select--has-label.select--medium .select__combobox, 3837 .select--label-inset-top:not(.select--hide-label).select--has-label.select--large .select__combobox { 3838 height: calc(var(--pu-input-size-height) + calc(var(--pu-input-space-padding) * 1.5)); 3839 padding-top: calc(var(--pu-input-space-padding) * 1.5); 3840 } 3841 3842 /* Multiple Selection API Classes */ 3843 .select--multiple:not(.select--placeholder-visible) .select__display-input { 3844 position: absolute; 3845 z-index: -1; 3846 top: 0; 3847 left: 0; 3848 width: 100%; 3849 height: 100%; 3850 opacity: 0; 3851 } 3852`];class Fr extends ga{constructor(){super(...arguments),this.formControlController=new ji(this,{assumeInteractionOn:["pu-blur","pu-input"]}),this.hasSlotController=new Sa(this,"help-text","label"),this.typeToSelectStr
3852ing="",this.hasFocus=!1,this.displayLabel="",this.selectedOptions=[],this.valueHasChanged=!1,this.name="",this.value="",this.defaultValue="",this.size="medium",this.placeholder="",this.fitContent=!1,this.multiple=!1,this.maxOptions=3,this.disabled=!1,this.autofocus=!1,this.clearable=!1,this.open=!1,this.label="",this.labelHidden=!1,this.placement="bottom",this.floatBottomNarrow=!1,this.positionLabel="above",this.distance=10,this.helpText="",this.form="",this.required=!1,this.deprecatedPropertyMap=[{old:"hideLabel",new:"labelHidden",defaultValue:!1},{old:"maxOptionsVisible",new:"maxOptions",defaultValue:3},{old:"mobileFloatBottom",new:"floatBottomNarrow",defaultValue:!1}],this.handleDocumentFocusIn=e=>{const t=e.composedPath();this&&!t.includes(this)&&this.hide()},this.handleDocumentKeyDown=e=>{const t=e.target,o=null!==t.closest(".select__clear"),i=null!==t.closest("pu-icon-button");if(!o&&!i){if("Escape"===e.key&&this.open&&!this.closeWatcher&&(e.preventDefault(),e.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),"Enter"===e.key||" "===e.key&&""===this.typeToSelectString)return e.preventDefault(),e.stopImmediatePropagation(),this.open?void(this.currentOption&&!this.currentOption.disabled&&(this.valueHasChanged=!0,this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then((()=>{this.emit("pu-input"),this.emit("pu-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))):void this.show();if(["ArrowUp","ArrowDown","Home","End"].includes(e.key)){const t=this.getAllOptions(),o=t.indexOf(this.currentOption);let i=Math.max(0,o);if(e.preventDefault(),!this.open&&(this.show(),this.currentOption))return;"ArrowDown"===e.key?(i=o+1,i>t.length-1&&(i=0)):"ArrowUp"===e.key?(i=o-1,i<0&&(i=t.length-1)):"Home"===e.key?i=0:"End"===e.key&&(i=t.length-1),this.setCurrentOption(t[i])}if(e.key&&1===e.key.length||"Backspace"===e.key){const t=this.getAllOptions();if(e.metaKey||e.ctrlKey||e.altKey)return;if(!this.open){if("Backspace"===e.key)return;this.show()}e.stopPropagation(),e.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout((()=>this.typeToSelectString=""),1e3),"Backspace"===e.key?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=e.key.toLowerCase();for(const e of t){if(e.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(e);break}}}}},this.handleDocumentMouseDown=e=>{const t=e.composedPath();this&&!t.includes(this)&&this.hide()}}get hideLabel(){return this.labelHidden}set hideLabel(e){this._handleDeprecated("hideLabel",e)}get maxOptionsVisible(){return this.maxOptions}set maxOptionsVisible(e){this._handleDeprecated("maxOptionsVisible",e)}get mobileFloatBottom(){return this.floatBottomNarrow}set mobileFloatBottom(e){this._handleDeprecated("mobileFloatBottom",e)}_handleDeprecated(e,t){Ea(this,e,t,this.deprecatedPropertyMap)}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),setTimeout((()=>{this.handleDefaultSlotChange()})),this.open=!1}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn),"CloseWatcher"in window&&(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.open&&(this.hide(),this.displayInput.focus({preventScroll:!0}))})}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn),this.closeWatcher?.destroy()}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit
3852("pu-focus")}handleBlur(){this.hasFocus=!1,this.emit("pu-blur")}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(e){const t=e.composedPath().some((e=>e instanceof Element&&"pu-icon-button"===e.tagName.toLowerCase()));this.disabled||t||(e.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(e){"Tab"!==e.key&&(e.stopPropagation(),this.handleDocumentKeyDown(e))}handleClearClick(e){e.stopPropagation(),""!==this.value&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then((()=>{this.emit("pu-clear"),this.emit("pu-input"),this.emit("pu-change")})))}handleClearMouseDown(e){e.stopPropagation(),e.preventDefault()}handleDefaultSlotChange(){customElements.get("wa-option")||customElements.whenDefined("wa-option").then((()=>this.handleDefaultSlotChange()));const e=this.getAllOptions(),t=this.valueHasChanged?this.value:this.defaultValue,o=Array.isArray(t)?t:[t],i=[];e.forEach((e=>i.push(e.value))),this.setSelectedOptions(e.filter((e=>o.includes(e.value))))}handleOptionClick(e){const t=e.target.closest("pu-option"),o=this.value;t&&!t.disabled&&(this.valueHasChanged=!0,this.multiple?this.toggleOptionSelection(t):this.setSelectedOptions(t),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))),this.value!==o&&this.updateComplete.then((()=>{this.emit("pu-input"),this.emit("pu-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}getAllOptions(){return[...this.querySelectorAll("pu-option")]}getFirstOption(){return this.querySelector("pu-option")}numOptionsSelected(e){return 0===e?"No options selected":1===e?"1 option selected":`${e} options selected`}setCurrentOption(e){this.getAllOptions().forEach((e=>{e.current=!1,e.tabIndex=-1})),e&&(this.currentOption=e,e.current=!0,e.tabIndex=0,e.focus())}setSelectedOptions(e){const t=this.getAllOptions(),o=Array.isArray(e)?e:[e];t.forEach((e=>e.selected=!1)),o.length&&o.forEach((e=>e.selected=!0)),this.selectionChanged()}toggleOptionSelection(e,t){e.selected=!0===t||!1===t?t:!e.selected,this.selectionChanged()}selectionChanged(){const e=this.getAllOptions();if(this.selectedOptions=e.filter((e=>e.selected)),this.multiple)this.value=this.selectedOptions.map((e=>e.value)),this.placeholder&&0===this.value.length?this.displayLabel="":this.displayLabel=this.numOptionsSelected(this.selectedOptions.length);else{const e=this.selectedOptions[0];this.value=e?.value??"",this.displayLabel=e?.getTextLabel?.()??""}this.updateComplete.then((()=>{this.formControlController.updateValidity()}))}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}handleValueChange(){const e=this.getAllOptions(),t=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(e.filter((e=>t.includes(e.value))))}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("pu-show"),this.addOpenListeners(),await kr(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame((()=>{this.setCurrentOption(this.currentOption)}));const{keyframes:e,options:t}=Er(this,"select.show",{dir:"ltr"});await wr(this.popup.popup,e,t),this.currentOption&&Ir(this.currentOption,this.listbox,"vertical","auto"),this.emit("pu-after-show")}else{this.emit("pu-hide"),this.removeOpenListeners(),await kr(this);const{keyframes:e,options:t}=Er(this,"select.hide",{dir:"ltr"});await wr(this.popup.popup,e,t),this.listbox.hidden=!0,this.popup.active=!1,this.emit("pu-after-hide")}}async show(){if(!this.open&&!this.disabled)return this.open=!0,zr(this,"pu-after-show");this.open=!1}async hide(){if(this.open&&!this.disabled)return this.open=!1,zr(this,"pu-after-hide");this.open=!1}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.valueInput.reportValidity()}setCustomValidity(e){this.valueInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){this.displayInput.focus(e)}blur(){this.displayInput.blur()}render(){const e=this.hasSlotController.test("label"),t=this.hasSlotController.test("help-text"),o=!!this.label||!!e,i=!!this.helpText||!!t,a=this.clearable&&!this.disabled&&this.value.length>0,s=this.placeholder&&this.value&&this.value.length<=0;return W` 3853 <div 3854 part="base select" 3855 class=${Ae({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-label":o,"form-control--has-help-text":i,"form-control--hide-label":this.labelHidden,[`form-control--label-${this.positionLabel}`]:!0})} 3856 > 3857 ${"above"===this.positionLabel||"inset-top"===this.positionLabel?W` 3858 <label 3859 id="label" 3860 part="label" 3861 class="${Ae({"form-control__label":!0,"form-control__label--visually-hidden":this.labelHidden})}" 3862 aria-hidden=${o?"false":"true"} 3863 @click=${this.handleLabelClick} 3864 > 3865 <slot name="label">${this.label}</slot> 3866 </label> 3867 `:""} 3868 <div 3869 part="input" 3870 class="form-control-input" 3871 > 3872 <pu-popup 3873 class=${Ae({select:!0,"select--open":this.open,"select--disabled":this.disabled,"select--multiple":this.multiple,"select--focused":this.hasFocus,"select--placeholder-visible":s,"select--top":"top"===this.placement,"select--bottom":"bottom"===this.placement,"select--small":"small"===this.size,"select--medium":"medium"===this.size,"select--large":"large"===this.size,"select--has-label":o,"select--hide-label":this.labelHidden,"select--narrow-float-bottom":this.floatBottomNarrow,[`select--label-${this.positionLabel}`]:!0})} 3874 placement=${this.placement} 3875 distance=${this.distance} 3876 flip 3877 shift 3878 sync="width" 3879 auto-size="vertical" 3880 auto-size-padding="12" 3881 ?narrowFloatBottom=${this.floatBottomNarrow} 3882 exportparts="hover-bridge,popup,arrow,overlay" 3883 > 3884 <div 3885 part="combobox" 3886 class=${Ae({select__combobox:!0,"select__combobox--fit-to-content":this.fitContent})} 3887 slot="anchor" 3888 @keydown=${this.handleComboboxKeyDown} 3889 @mousedown=${this.handleComboboxMouseDown} 3890 > 3891 <slot 3892 part="prefix" 3893 name="prefix" 3894 class="select__prefix" 3895 ></slot> 3896 ${"inset-left"===this.positionLabel?W` 3897 <label 3898 id="label" 3899 part="label" 3900 class="${Ae({"form-control__label":!0,"form-control__label--visually-hidden":this.labelHidden})}" 3901 aria-hidden=${o?"false":"true"} 3902 @click=${this.handleLabelClick} 3903 > 3904 <slot name="label">${this.label}</slot> 3905 </label> 3906 `:""} 3907 <input 3908 part="display" 3909 class="select__display-input" 3910 type="text" 3911 placeholder=${this.placeholder} 3912 .disabled=${this.disabled} 3913 .value=${this.displayLabel} 3914 autocomplete="off" 3915 spellcheck="false" 3916 autocapitalize="off" 3917 ?autofocus=${this.autofocus} 3918 readonly 3919 aria-controls="listbox"
3920 aria-expanded=${this.open?"true":"false"} 3921 aria-haspopup="listbox" 3922 aria-labelledby="label" 3923 aria-disabled=${this.disabled?"true":"false"} 3924 aria-describedby="help-text" 3925 role="combobox" 3926 tabindex="0" 3927 @focus=${this.handleFocus} 3928 @blur=${this.handleBlur} 3929 /> 3930 <input 3931 class="select__value-input" 3932 type="text" 3933 ?disabled=${this.disabled} 3934 ?required=${this.required} 3935 .value=${Array.isArray(this.value)?this.value.join(", "):this.value} 3936 tabindex="-1" 3937 aria-hidden="true" 3938 @focus=${()=>this.focus()} 3939 @invalid=${this.handleInvalid} 3940 /> 3941 ${a?W` 3942 <button 3943 part="clear" 3944 class="select__clear" 3945 type="button" 3946 aria-label="Clear entry" 3947 @mousedown=${this.handleClearMouseDown} 3948 @click=${this.handleClearClick} 3949 tabindex="-1" 3950 > 3951 <slot name="clear-icon"> 3952 <pu-icon 3953 exportparts="base,svg" 3954 name="close" 3955 ></pu-icon> 3956 </slot> 3957 </button> 3958 `:""} 3959 <slot 3960 name="suffix" 3961 part="suffix" 3962 class="select__suffix" 3963 ></slot> 3964 <slot 3965 name="expand-icon" 3966 part="expand" 3967 class="select__expand-icon" 3968 > 3969 <pu-icon 3970 exportparts="base,svg" 3971 name="chevron-down" 3972 ></pu-icon> 3973 </slot> 3974 </div> 3975 <div 3976 part="listbox"
3977 class="select__listbox" 3978 id="listbox" 3979 role="listbox" 3980 aria-expanded=${this.open?"true":"false"} 3981 aria-multiselectable=${this.multiple?"true":"false"} 3982 aria-labelledby="label" 3983 tabindex="-1" 3984 @mouseup=${this.handleOptionClick} 3985 @slotchange=${this.handleDefaultSlotChange} 3986 > 3987 <slot></slot> 3988 </div> 3989 </pu-popup> 3990 </div> 3991 <div 3992 part="help-text" 3993 id="help-text" 3994 class="form-control__help-text" 3995 aria-hidden=${i?"false":"true"} 3996 > 3997 <slot name="help-text">${this.helpText}</slot> 3998 </div> 3999 </div> 4000 `}}Fr.styles=[ua,Mr],Fr.dependencies={"pu-icon":xa,"pu-popup":hr},ca([xe(".select")],Fr.prototype,"popup",void 0),ca([xe(".select__combobox")],Fr.prototype,"combobox",void 0),ca([xe(".select__display-input")],Fr.prototype,"displayInput",void 0),ca([xe(".select__value-input")],Fr.prototype,"valueInput",void 0),ca([xe(".select__listbox")],Fr.prototype,"listbox",void 0),ca([ye()],Fr.prototype,"hasFocus",void 0),ca([ye()],Fr.prototype,"displayLabel",void 0),ca([ye()],Fr.prototype,"currentOption",void 0),ca([ye()],Fr.prototype,"selectedOptions",void 0),ca([ye()],Fr.prototype,"valueHasChanged",void 0),ca([ve()],Fr.prototype,"name",void 0),ca([ve({converter:{fromAttribute:e=>e.split(" "),toAttribute:e=>e.join(" ")}})],Fr.prototype,"value",void 0),ca([wa()],Fr.prototype,"defaultValue",void 0),ca([ve({reflect:!0})],Fr.prototype,"size",void 0),ca([ve()],Fr.prototype,"placeholder",void 0),ca([ve({type:Boolean})],Fr.prototype,"fitContent",void 0),ca([ve({type:Boolean,reflect:!0})],Fr.prototype,"multiple",void 0),ca([ve({attribute:"max-options",type:Number})],Fr.prototype,"maxOptions",void 0),ca([ve({type:Boolean,reflect:!0})],Fr.prototype,"disabled",void 0),ca([ve({type:Boolean})],Fr.prototype,"autofocus",void 0),ca([ve({type:Boolean})],Fr.prototype,"clearable",void 0),ca([ve({type:Boolean,reflect:!0})],Fr.prototype,"open",void 0),ca([ve()],Fr.prototype,"label",void 0),ca([ve({type:Boolean})],Fr.prototype,"labelHidden",void 0),ca([ve({reflect:!0})],Fr.prototype,"placement",void 0),ca([ve({type:Boolean})],Fr.prototype,"floatBottomNarrow",void 0),ca([ve()],Fr.prototype,"positionLabel",void 0),ca([ve({type:Number})],Fr.prototype,"distance",void 0),ca([ve()],Fr.prototype,"helpText",void 0),ca([ve({reflect:!0})],Fr.prototype,"form",void 0),ca([ve({type:Boolean,reflect:!0})],Fr.prototype,"required",void 0),ca([ve({type:Boolean})],Fr.prototype,"hideLabel",null),ca([ve({attribute:"max-options-visible",type:Number})],Fr.prototype,"maxOptionsVisible",null),ca([ve({type:Boolean})],Fr.prototype,"mobileFloatBottom",null),ca([pa("disabled",{waitUntilFirstUpdate:!0})],Fr.prototype,"handleDisabledChange",null),ca([pa("value",{waitUntilFirstUpdate:!0})],Fr.prototype,"handleValueChange",null),ca([pa("open",{waitUntilFirstUpdate:!0})],Fr.prototype,"handleOpenChange",null),Tr("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Tr("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}}),Fr.define("pu-select");const Or=[d` 4001 :host { 4002 --weight: var(--pu-text-weight, inherit); 4003 --style: var(--pu-text-style, inherit); 4004 --color: var(--pu-color-foreground-normal, var(--pu-color-foreground, inherit)); 4005 --transform: var(--pu-text-transform, inherit); 4006 --letter-spacing: var(--pu-text-tracking, inherit); 4007 --line-height: var(--pu-text-leading, inherit); 4008 } 4009 :host([as='span']) { 4010 display: inline-flex; 4011 } 4012 4013 .base { 4014 color: var(--color, inherit); 4015 text-transform: var(--transform, inherit); 4016 letter-spacing: var(--letter-spacing, inherit); 4017 line-height: var(--line-height, inherit); 4018 font-weight: var(--weight, inherit); 4019 font-style: var(--style, inherit); 4020 } 4021 4022 .span { 4023 margin-bottom: 0 !important; 4024 } 4025 .heading, 4026 .paragraph { 4027 margin-top: 0; 4028 text-align: inherit; 4029 } 4030 4031 .skeleton { 4032 display: flex; 4033 height: 0.5em; 4034 border-radius: 0.5em; 4035 min-width: 5em; 4036 background-color: var(--pu-skeleton-color-foreground); 4037 } 4038`,d` 4039 .txt--headingXs, 4040 .txt--headingSm, 4041 .txt--headingMd, 4042 .txt--headingLg, 4043 .txt--headingXl, 4044 .txt--heading2xl, 4045 .txt--heading3xl, 4046 .txt--heading4xl, 4047 .txt--heading5xl { 4048 font-family: var(--pu-text-heading-family, var(--pu-font-family-heading, inherit)); 4049 } 4050 .txt--bodyXs, 4051 .txt--bodySm, 4052 .txt--bodyMd, 4053 .txt--bodyLg, 4054 .txt--bodyXl, 4055 .txt--body2xl, 4056 .txt--body3xl, 4057 .txt--body4xl, 4058 .txt--body5xl { 4059 font-family: var(--pu-text-body-family, var(--pu-font-family-body, inherit)); 4060 } 4061`,d`
4062 /* Text component API sizes with fallbacks */ 4063 /* API values overriden by application tokens */ 4064 /* Application Token | API Token | Default Value */ 4065 4066 .txt--headingXs { 4067 font-size: var(--pu-text-heading-size, var(--pu-text-heading-size-xs, 0.75em)); 4068 } 4069 .txt--headingSm { 4070 font-size: var(--pu-text-heading-size, var(--pu-text-heading-size-sm, 0.875em)); 4071 } 4072 .txt--headingMd { 4073 font-size: var(--pu-text-heading-size, var(--pu-text-heading-size-md, 1em)); 4074 } 4075 .txt--headingLg { 4076 font-size: calc( 4077 var(--pu-text-heading-scale, 1) * var(--pu-text-heading-size, var(--pu-text-heading-size-lg, 1.25em)) 4078 ); 4079 } 4080 .txt--headingXl { 4081 font-size: calc( 4082 var(--pu-text-heading-scale, 1) * var(--pu-text-heading-size, var(--pu-text-heading-size-xl, 1.5em)) 4083 ); 4084 } 4085 .txt--heading2xl { 4086 font-size: calc( 4087 var(--pu-text-heading-scale, 1) * var(--pu-text-heading-size, var(--pu-text-heading-size-2xl, 1.75em)) 4088 ); 4089 } 4090 .txt--heading3xl { 4091 font-size: calc( 4092 var(--pu-text-heading-scale, 1) * var(--pu-text-heading-size, var(--pu-text-heading-size-3xl, 2em)) 4093 ); 4094 } 4095 .txt--heading4xl { 4096 font-size: calc( 4097 var(--pu-text-heading-scale, 1) * var(--pu-text-heading-size, var(--pu-text-heading-size-4xl, 3em)) 4098 ); 4099 } 4100 .txt--heading5xl { 4101 font-size: calc( 4102 var(--pu-text-heading-scale, 1) * var(--pu-text-heading-size, var(--pu-text-heading-size-5xl, 4em)) 4103 ); 4104 } 4105 .txt--bodyXs { 4106 font-size: var(--pu-text-body-size, var(--pu-text-body-size-xs, 0.75em)); 4107 } 4108 .txt--bodySm { 4109 font-size: var(--pu-text-body-size, var(--pu-text-body-size-sm, 0.875em)); 4110 } 4111 .txt--bodyMd { 4112 font-size: calc(var(--pu-text-body-scale, 1) * var(--pu-text-body-size, var(--pu-text-body-size-md, 1em))); 4113 } 4114 .txt--bodyLg { 4115 font-size: calc(var(--pu-text-body-scale, 1) * var(--pu-text-body-size, var(--pu-text-body-size-lg, 1.25em))); 4116 } 4117 .txt--bodyXl { 4118 font-size: calc(var(--pu-text-body-scale, 1) * var(--pu-text-body-size, var(--pu-text-body-size-xl, 1.5em))); 4119 } 4120 .txt--body2xl { 4121 font-size: calc(var(--pu-text-body-scale, 1) * var(--pu-text-body-size, var(--pu-text-body-size-2xl, 1.75em))); 4122 } 4123 .txt--body3xl { 4124 font-size: calc(var(--pu-text-body-scale, 1) * var(--pu-text-body-size, var(--pu-text-body-size-3xl, 2em))); 4125 } 4126 .txt--body4xl { 4127 font-size: calc(var(--pu-text-body-scale, 1) * var(--pu-text-body-size, var(--pu-font-size-900, 3em))); 4128 } 4129 .txt--body5xl { 4130 font-size: calc(var(--pu-text-body-scale, 1) * var(--pu-text-body-size, var(--pu-font-size-1000, 4em))); 4131 } 4132`,d` 4133 .txt--headingXs { 4134 margin-bottom: var(--pu-space-100, 0.25em); 4135 } 4136 .txt--headingSm { 4137 margin-bottom: var(--pu-space-200, 0.5em); 4138 } 4139 .txt--headingMd { 4140 margin-bottom: var(--pu-space-300, 0.75em); 4141 } 4142 .txt--headingLg { 4143 margin-bottom: var(--pu-space-300, 0.75em); 4144 } 4145 .txt--headingXl { 4146 margin-bottom: var(--pu-space-400, 1em); 4147 } 4148 .txt--heading2xl { 4149 margin-bottom: var(--pu-space-400, 1em); 4150 } 4151 .txt--heading3xl { 4152 margin-bottom: var(--pu-space-400, 1em); 4153 } 4154 .txt--heading4xl { 4155 margin-bottom: var(--pu-space-500, 1.25em); 4156 } 4157 .txt--heading5xl { 4158 margin-bottom: var(--pu-space-600, 1.5em); 4159 } 4160 .txt--bodyXs { 4161 margin-bottom: var(--pu-space-100, 0.25em); 4162 } 4163 .txt--bodySm { 4164 margin-bottom: var(--pu-space-200, 0.5em); 4165 } 4166 .txt--bodyMd, 4167 .txt--bodyLg, 4168 .txt--bodyXl, 4169 .txt--body2xl, 4170 .txt--body3xl, 4171 .txt--body4xl, 4172 .txt--body5xl { 4173 margin-bottom: var(--pu-text-space-margin-bottom, var(--pu-space-300, 0.75em)); 4174 } 4175`,d` 4176 .txt--heading4xl, 4177 .txt--heading5xl, 4178 .txt--body4xl, 4179 .txt--body5xl { 4180 line-height: var(--line-height, var(--pu-font-leading-100, 1)); 4181 } 4182 4183 .txt--headingXl, 4184 .txt--heading2xl, 4185 .txt--heading3xl, 4186 .txt--bodyXl, 4187 .txt--body2xl, 4188 .txt--body3xl { 4189 line-height: var(--line-height, var(--pu-font-leading-300, 1.25)); 4190 } 4191 4192 .txt--headingLg, 4193 .txt--headingMd, 4194 .txt--headingSm, 4195 .txt--headingXs, 4196 .tx--bodyLg, 4197 .txt--bodyMd, 4198 .txt--bodySm, 4199 .txt--bodyXs, 4200 .txt--body { 4201 line-height: var(--line-height, var(--pu-font-leading-500, 1.5)); 4202 } 4203`,d` 4204 .txt--color-disabled { 4205 color: rgb(from var(--pu-color-foreground-disabled, var(--pu-color-foreground)) r g b / calc(alpha * 0.3)); 4206 } 4207 .txt--color-subdued { 4208 color: rgb(from var(--pu-color-foreground-subdued, hsl(240, 5%, 65%)) r g b); 4209 } 4210 .txt--color-warning { 4211 color: rgb(from var(--pu-color-foreground-warning, hsl(0, 72%, 51%)) r g b); 4212 } 4213`,d` 4214 .txt--light {
4215 font-weight: var(--weight, var(--pu-font-weight-300, 300)); 4216 } 4217 .txt--regular { 4218 font-weight: var(--weight, var(--pu-font-weight-400, 400)); 4219 } 4220 .txt--medium { 4221 font-weight: var(--weight, var(--pu-font-weight-500, 500)); 4222 } 4223 .txt--semibold { 4224 font-weight: var(--weight, var(--pu-font-weight-600, 600)); 4225 } 4226 .txt--bold { 4227 font-weight: var(--weight, var(--pu-font-weight-700, 700)); 4228 } 4229 .txt--extrabold { 4230 font-weight: var(--weight, var(--pu-font-weight-800, 800)); 4231 } 4232 .txt--black { 4233 font-weight: var(--weight, var(--pu-font-weight-900, 900)); 4234 } 4235`,d` 4236 .txt--italic { 4237 font-style: var(--style, italic); 4238 } 4239 .txt--oblique { 4240 font-style: var(--style, oblique); 4241 } 4242`,d` 4243 .txt-transform--uppercase { 4244 text-transform: var(--transform, uppercase); 4245 } 4246 .txt-transform--capitalize { 4247 text-transform: var(--transform, capitalize); 4248 } 4249 .txt-transform--lowercase { 4250 text-transform: var(--transform, lowercase); 4251 } 4252`,d` 4253 .txt--line-height-extra-loose { 4254 line-height: var(--line-height, var(--pu-font-leading-900, 3)); 4255 } 4256 .txt--line-height-very-loose { 4257 line-height: var(--line-height, var(--pu-font-leading-800, 2.5)); 4258 } 4259 .txt--line-height-loose { 4260 line-height: var(--line-height, var(--pu-font-leading-700, 2)); 4261 } 4262 .txt--line-height-normal { 4263 line-height: var(--line-height, var(--pu-font-leading-500, 1.5)); 4264 } 4265 .txt--line-height-compact { 4266 line-height: var(--line-height, var(--pu-font-leading-300, 1.25)); 4267 } 4268 .txt--line-height-dense { 4269 line-height: var(--line-height, var(--pu-font-leading-100, 1)); 4270 } 4271`,d` 4272 .base.txt--spacing-extra-loose { 4273 letter-spacing: var(--letter-spacing, 0.2em); 4274 } 4275 .base.txt--spacing-very-loose { 4276 letter-spacing: var(--letter-spacing, 0.1em); 4277 } 4278 .base.txt--spacing-loose { 4279 letter-spacing: var(--letter-spacing, 0.05em); 4280 } 4281 .base.txt--spacing-normal { 4282 letter-spacing: var(--letter-spacing, inherit); 4283 } 4284`,d` 4285 @media screen and (max-width: 48em) { 4286 .txt--narrow-align-start { 4287 text-align: left; 4288 } 4289 .txt--narrow-align-center { 4290 text-align: center; 4291 } 4292 .txt--narrow-align-end { 4293 text-align: right; 4294 } 4295 .txt--narrow-align-justify { 4296 text-align: justify; 4297 } 4298 } 4299 @media screen and (min-width: 48.06em) { 4300 .txt--margin { 4301 margin-bottom: var(--pu-space-400, 1em); 4302 } 4303 .txt--align-start { 4304 text-align: left; 4305 } 4306 .txt--align-center { 4307 text-align: center; 4308 } 4309 .txt--align-end { 4310 text-align: right; 4311 } 4312 .txt--align-justify { 4313 text-align: justify; 4314 } 4315 } 4316`,d` 4317 .heading.text--without-margin, 4318 .paragraph.text--without-margin, 4319 .skeleton.text--without-margin { 4320 margin-bottom: 0; 4321 } 4322 4323 .txt--truncate { 4324 overflow: hidden; 4325 white-space: nowrap; 4326 text-overflow: ellipsis; 4327 } 4328 .txt--breakword { 4329 overflow-wrap: anywhere; 4330 word-break: normal; 4331 } 4332 .txt--hidden { 4333 position: absolute !important; 4334 overflow: hidden; 4335 width: 1px; 4336 height: 1px; 4337 margin: -1px; 4338 padding: 0; 4339 border: 0; 4340 clip: rect(0 0 0 0); 4341 word-wrap: normal !important; 4342 } 4343`];class Dr extends ga{constructor(){super(...arguments),this.as="p",this.variant="bodyMd",this.color="normal",this.fontWeight="normal",this.fontStyle="normal",this.lineHeight="normal",this.spacing="normal",this.withMargin=!1,this.transform="none",this.truncate=!1,this.breakWord=!1,this.hidden=!1,this.deprecatedPropertyMap=[{old:"alignment",new:"textAlign",defaultValue:void 0},{old:"mobileAlignment",new:"textAlignNarrow",defaultValue:void 0}]}get alignment(){return this.textAlign}set alignment(e){this._handleDeprecated("alignment",e)}get mobileAlignment(){return this.textAlignNarrow}set mobileAlignment(e){this._handleDeprecated("mobileAlignment",e)}_handleDeprecated(e,t){Ea(this,e,t,this.deprecatedPropertyMap)}textClasses(){const e={base:!0,"txt--truncate":this.truncate,"txt--breakword":this.breakWord,"txt--hidden":this.hidden};return"normal"!==this.color&&(e["txt--color-"+this.color]=!0),this.variant&&(e["txt--"+this.variant]=!0),"normal"!==this.lineHeight&&(e["txt--line-height-"+this.lineHeight]=!0),"normal"!==this.spacing&&(e["txt--spacing-"+this.spacing]=!0),"normal"!==this.fontWeight&&(e["txt--"+this.fontWeight]=!0),"normal"!==this.fontStyle&&(e["txt--"+this.fontStyle]=!0),this.textAlign&&(e["txt--align-"+this.textAlign]=this.textAlign),this.textAlignNarrow?e["txt--narrow-align-"+this.textAlignNarrow]=!0:e["txt--narrow-align-"+this.textAlign]=this.textAlign,this.withMargin||"span"===this.as||(e["text--without-margin"]=!0),"none"!==this.transform&&(e["txt-transform--"+this.transform]=!0),e}textAs(e){switch(this.as){case"p":return W`<p 4344 part="base p body" 4345 class="paragraph${Ae(e)}" 4346 > 4347 <slot></slot> 4348 </p>`;case"h1":return W`<h1 4349 part="base h1 heading" 4350 class="heading${Ae(e)}" 4351 > 4352 <slot></slot> 4353 </h1>`;case"h2":return W`<h2 4354 part="base h2 heading" 4355 class="heading${Ae(e)}" 4356 > 4357 <slot></slot> 4358 </h2>`;case"h3":return W`<h3 4359 part="base h3 heading" 4360 class="heading${Ae(e)}" 4361 > 4362 <slot></slot> 4363 </h3>`;case"h4":return W`<h4 4364 part="base h4 heading" 4365 class="heading${Ae(e)}" 4366 > 4367 <slot></slot> 4368 </h4>`;case"h5":return W`<h5 4369 part="base h5 heading" 4370 class="heading${Ae(e)}" 4371 > 4372 <slot></slot> 4373 </h5>`;case"skeleton":return W`<div class="skeleton${Ae(e)}"></div>`;default:return W` <span 4374 part="base span body" 4375 class="span${Ae(e)}" 4376 ><slot></slot 4377 ></span>`}}render(){return W`${this.textAs(this.textClasses())}`}}Dr.styles=[ua,Or],ca([ve({type:String})],Dr.prototype,"as",void 0),ca([ve({type:String})],Dr.prototype,"variant",void 0),ca([ve({type:String})],Dr.prototype,"color",void 0),ca([ve({type:String})],Dr.prototype,"fontWeight",void 0),ca([ve({type:String})],Dr.prototype,"fontStyle",void 0),ca([ve({type:String})],Dr.prototype,"lineHeight",void 0),ca([ve({type:String})],Dr.prototype,"spacing",void 0),ca([ve({type:String})],Dr.prototype,"textAlign",void 0),ca([ve({type:String})],Dr.prototype,"textAlignNarrow",void 0),ca([ve({type:Boolean})],Dr.prototype,"withMargin",void 0),ca([ve()],Dr.prototype,"transform",void 0),ca([ve({type:Boolean})],Dr.prototype,"truncate",void 0),ca([ve({type:Boolean})],Dr.prototype,"breakWord",void 0),ca([ve({type:Boolean})],Dr.prototype,"hidden",void 0),ca([ve({type:String})],Dr.prototype,"alignment",null),ca([ve({type:String})],Dr.prototype,"mobileAlignment",null),Dr.define("pu-text");class Lr extends _i{constructor(){super(...arguments),this.debug=!1,this.displayMode="inline",this.processingState={status:"idle",error:null}
4377,this.bannerMessage=null,this.skipFinalSuccess=!1,this.stepStateController=new ea(this),this.sessionController=new Qi(this),this.optinsController=new bi(this,this.sessionController),this.apiController=new Me(this),this.validationController=new ia(this),this.recaptchaManager=new Ji,this.formService=new ai({stepStateController:this.stepStateController,sessionController:this.sessionController,apiController:this.apiController,validationController:this.validationController,optinsController:this.optinsController}),this.handleErrorReturn=()=>{this.formService.clearProcessingState(),this.validationController.clearError(),this.skipFinalSuccess=!1},this.handleSuccessContinue=()=>{this.clearSuccessTimeout(),this.formService.clearProcessingState(),this.formService.advanceStep(),this.skipFinalSuccess=!1},this.handleOverlayHide=e=>{e?.target&&e.target!==this.overlayElement||(this.resetSessionAndRecaptcha({clearProcessingState:!0,clearValidation:!0,resetSteps:!0}),this.removeDefaultRecaptchaHost())},this.handleOptinsSkip=()=>{this.handleStepSkip("optins")},this.handleSupplementarySkip=()=>{this.handleStepSkip("supplementary")},this.clearBanner=()=>{this.bannerMessage=null,this.formService.clearValidationError()}}connectedCallback(){super.connectedCallback(),this.addEventListener("optins-form-skip",this.handleOptinsSkip),this.addEventListener("supplementary-form-skip",this.handleSupplementarySkip),this.addEventListener(si,this.handleFormServiceRequest),this.detachFormServiceListeners(),this.processingState=this.formService.getProcessingState(),this.detachStepReadyListener=this.formService.onStepReadyChange((()=>{this.registerSteps()})),this.detachProcessingListener=this.formService.onProcessingStateChange((e=>{this.processingState=e,this.handleProcessingStateChange(e)})),this.sessionController.init(),this.config&&this.handleConfigLoadState(),this.scheduleRecaptchaHostAttachment()}firstUpdated(){this.attachRecaptchaHost()}willUpdate(e){super.willUpdate(e),e.has("config")&&this.config&&(this.handleConfigLoadState(),this.scheduleRecaptchaHostAttachment())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("optins-form-skip",this.handleOptinsSkip),this.removeEventListener("supplementary-form-skip",this.handleSupplementarySkip),this.removeEventListener(si,this.handleFormServiceRequest),this.detachFormServiceListeners(),this.formService.destroy(),this.recaptchaManager.destroy(),this.removeDefaultRecaptchaHost()}detachFormServiceListeners(){this.detachStepReadyListener?.(),this.detachStepReadyListener=void 0,this.detachProcessingListener?.(),this.detachProcessingListener=void 0,this.clearSuccessTimeout()}initialiseFormService(){this.formService.initialise(this.config,{multiStep:!0,recaptchaManager:this.recaptchaManager})}isConfigValid(){return!0===this.config?.validFormConfig}handleConfigLoadState(){if(this.config){if(!this.isConfigValid())return this.bannerMessage=et.invalidConfig,this.formService.clearProcessingState(),this.formService.clearValidationError(),this.stepStateController.registerSteps([]),this.progressTemplateData=void 0,this.skipFinalSuccess=!1,void this.clearSuccessTimeout();this.bannerMessage=null,this.initialiseFormService(),this.registerSteps()}}attachRecaptchaHost(){if(!this.config||!this.isConfigValid())return;const e=this.shadowRoot?.querySelector('slot[name="recaptcha-host"]'),t=(e?.assignedElements({flatten:!0})||[])[0];if(t instanceof HTMLElement)return this.removeDefaultRecaptchaHost(),void this.recaptchaManager.attachHost(t);const o=this.ensureDefaultRecaptchaHost();this.recaptchaManager.attachHost(o)}scheduleRecaptchaHostAttachment(){this.updateComplete.then((()=>{this.isConnected&&this.attachRecaptchaHost()}))}ensureDefaultRecaptchaHost(){if(!this.defaultRecaptchaHost){const e=document.createElement("div");e.className="pu-recaptcha-host",e.style.position="fixed",e.style.bottom="1rem",e.style.right="1rem",e.style.zIndex="2147483647",document.body.appendChild(e),this.defaultRecaptchaHost=e}return this.defaultRecaptchaHost}removeDefaultRecaptchaHost(){this.defaultRecaptchaHost?.parentElement&&this.defaultRecaptchaHost.parentElement.removeChild(this.defaultRecaptchaHost),this.defaultRecaptchaHost=void 0}registerSteps(){if(!this.config)return;const e=[{id:"primary",form:Zi,config:{config:this.config.primaryForm,copy:di(this.config),legalTerms:this.config.legalTerms,smsValidCountries:this.config.smsValidCountries}}];this.config.optinsForm?.enabled&&e.push({id:"optins",form:Li,resolveConfig:()=>this.buildOptinsRenderConfig(),shouldRender:()=>Boolean(this.config?.optinsForm?.enabled&&this.formService.isStepReady("optins")&&this.optinsController.hasRenderableOptins())}),this.config.supplementaryForm?.enabled&&e.push({id:"supplementary",form:oa,resolveConfig:()=>this.buildSupplementaryRenderConfig(),shouldRender:()=>Boolean(this.config?.supplementaryForm?.enabled&&this.formService.isStepReady("supplementary"))}),this.stepStateController.registerSteps(e)}buildOptinsRenderConfig(){if(!this.config.optinsForm)throw new Error("Opt-ins configuration missing.");const e=this.optinsController.getState(),t=this.formService.getFormFieldValue("primary","country");return{form:this.config.optinsForm,copy:ci(this.config),optins:e.filteredOptins,showSimilarArtistsOptin:e.showSimilarArtistsOptin,state:e.formState,submitDisabled:e.submitDisabled,country:t,modalRequest:e.modalRequest,legalTerms:this.config.legalTerms}}buildSupplementaryRenderConfig(){if(!this.config.supplementaryForm)throw new Error("Supplementary configuration missing.");return{config:this.config.supplementaryForm,copy:pi(this.config),appearance:this.config.appearance,legalTerms:this.config.legalTerms}}
4377handleFormServiceRequest(e){const t=e;e.stopPropagation(),t.detail.resolve(this.formService)}handleProcessingStateChange(e){this.clearSuccessTimeout(),this.skipFinalSuccess=!1,"idle"!==e.status?this.progressTemplateData=this.getTemplateData():this.progressTemplateData=void 0;if((this.config?.sessionConfig?.autoAdvance??!0)&&"success"===e.status&&e.stepId&&!this.isFinalStep(e.stepId)){const e=this.getSuccessDuration();this.successTimeoutId=window.setTimeout((()=>{this.formService.clearProcessingState(),this.formService.advanceStep(),this.clearSuccessTimeout()}),e)}"success"===e.status&&e.stepId&&this.isFinalStep(e.stepId)&&this.resetSessionAndRecaptcha()}handleFinalClose(e){this.dispatchEvent(new CustomEvent("pu-form-closed",{detail:{reason:"success",stepId:e},bubbles:!0,composed:!0})),"modal"===this.displayMode&&this.closeForm()}resetSessionAndRecaptcha(e){e?.clearProcessingState&&(this.formService.clearProcessingState(),this.clearSuccessTimeout()),e?.clearValidation&&this.validationController.clearError(),this.sessionController.clear(),this.sessionController.init(),e?.resetSteps&&this.stepStateController.reset(),this.recaptchaManager.reset(),this.skipFinalSuccess=!1}openForm(){"modal"===this.displayMode&&(this.scheduleRecaptchaHostAttachment(),this.overlayElement?.openOverlay())}closeForm(){"modal"===this.displayMode&&this.overlayElement?.closeOverlay()}handleStepSkip(e){if(this.formService.clearProcessingState(),this.validationController.clearError(),this.skipFinalSuccess=!1,"optins"===e&&this.config?.supplementaryForm?.enabled&&this.formService.markStepReady("supplementary"),this.isFinalStep(e))return this.processingState={status:"success",stepId:e,error:null},void(this.skipFinalSuccess=!0);this.formService.advanceStep()}getStepCopy(e){return"primary"===e?di(this.config):"optins"===e?ci(this.config):"supplementary"===e?pi(this.config):null}getSuccessDuration(){return this.config?.sessionConfig?.successDuration??2e3}clearSuccessTimeout(){this.successTimeoutId&&(window.clearTimeout(this.successTimeoutId),this.successTimeoutId=void 0)}renderBanner(){return this.bannerMessage?W` 4378 <div class="form-banner" role="alert"> 4379 <span><strong>${this.bannerMessage}</strong></span> 4380 <button type="button" class="banner-close" @click=${this.clearBanner}>Dismiss</button> 4381 </div> 4382 `:null}getTemplateData(){const e=this.config?.header?.title??"";return{title:e,artist_name:e,firstName:this.formService.getFormFieldValue("supplementary","firstName")??""}}applyTemplate(e,t){return e.replace(/\{(\w+)\}/g,((e,o)=>t[o]??""))}resolveSupplementarySuccessHeadline(e,t){if(!e.includes("{firstName}"))return e;return t.firstName?.trim()??""?this.applyTemplate(e,t):"Thanks!"}isFinalStep(e){return!this.config||("primary"===e?(!this.config.optinsForm?.enabled||!this.optinsController.hasRenderableOptins())&&!this.config.supplementaryForm?.enabled:"optins"!==e||!this.config.supplementaryForm?.enabled)}shouldShowOverlayCloseButton(e){const t=this.processingState,o="idle"!==t.status&&t.stepId===e.id,i="success"===t.status&&t.stepId===e.id&&this.isFinalStep(e.id);return!o||i}renderProgressScreen(e){const t=this.processingState;if("idle"===t.status)return null;const o=this.getStepCopy(e);if(!o)return null;const i=this.progressTemplateData??this.getTemplateData(),a="processing"===t.status,s="success"===t.status,r="error"===t.status,n="supplementary"===e,l=this.isFinalStep(e);let d="",c="";if(s){let a=o;l&&t.stepId===e&&this.skipFinalSuccess&&(a=di(this.config)),d=n?this.resolveSupplementarySuccessHeadline(a.successHeadline,i):a.successHeadline,c=n?this.applyTemplate(a.successConfirmation,i):a.successConfirmation}const p=a?n?this.applyTemplate(o.processing,i):o.processing:"",u=r?"Something went wrong":"",h=r?t.error??this.validationController.getCurrentErrorMessage()??"Please try again":"",g=l&&s&&"modal"===this.displayMode;return W` 4383 <progress-screen 4384 class="form-progress-screen" 4385 part="progress-screen" 4386 .state=${t.status} 4387 .processingMessage=${p} 4388 .successHeadline=${d} 4389 .successConfirmation=${c} 4390 .errorHeadline=${u} 4391 .errorMessage=${h} 4392 ?final=${l} 4393 ?canReturn=${r}
4394 ?showClose=${g} 4395 @progress-screen-return=${this.handleErrorReturn} 4396 @progress-screen-continue=${this.handleSuccessContinue} 4397 @progress-screen-close=${()=>this.handleFinalClose(e)}></progress-screen> 4398 `}renderFormHeader(e){const t=!!(this.config.header?.title&&!this.config.header?.hideTitle||this.config.header?.image?.src);if("primary"!==e.id||!t)return X;const o=this.config.header?.image?.shape;return W` 4399 <div 4400 class="${Ae({"form-header":!0,[`form--${e.id}`]:!0})}" 4401 part="form-header"> 4402 ${this.config.header?.image?.src?W` 4403 <div 4404 class="${Ae({"form-header__image":!0,"form-header__image--circle":"circle"===o,"form-header__image--square":"square"===o})}" 4405 part="header-image"> 4406 <img 4407 class="image" 4408 part="image" 4409 src="${this.config.header.image.src}" 4410 alt="${this.config.header.image.alt}" 4411 width="100" 4412 height="100" /> 4413 </div> 4414 `:X} 4415 ${this.config.header?.title?W` 4416 <div 4417 class="${Ae({"form-header__title":!0,"form-header__title--visually-hidden":!0===this.config.header?.hideTitle})}" 4418 part="header-title"> 4419 <pu-text 4420 part="title" 4421 exportparts="h1,heading" 4422 class="title primary-text-color" 4423 as="h1" 4424 variant="heading4xl" 4425 fontweight="bold" 4426 textAlign="center" 4427 spacing="loose"> 4428 ${this.config.header.title} 4429 </pu-text> 4430 </div> 4431 `:X} 4432 </div> 4433 `}renderFormContent(e){const t="function"==typeof e.resolveConfig?e.resolveConfig():e.config,o=this.config.appearance?.formStyle;return W` 4434 <div 4435 class="${Ae({"form-content":!0,"form-surface":!0,"form-content--rounded":"rounded"===o,"form-content--square":"square"===o,"form-background-color":!0,[`form--${e.id}`]:!0})}" 4436 part="form-content"> 4437 ${e?.form.render(t)??null} 4438 </div> 4439 `}renderForm(e){return W` ${this.renderFormHeader(e)} ${this.renderFormContent(e)} `}renderInvalidConfigState(e){const t=this.displayMode,o=this.config.appearance?.formStyle,i=W` 4440 <div 4441 class="${Ae({form:!0,multistep:!0,"primary-background-color":!0,"form--inline":"inline"===t,"form--modal":"modal"===t,"form-content--rounded":"rounded"===o})}" 4442 id=${this.config.id} 4443 part="form multistep" 4444 style=${"inline"===t?e:X}> 4445 <div class="form-container form-container--without-header" part="form-container"> 4446 ${this.renderBanner()} 4447 </div> 4448 </div> 4449 `;return"modal"===t?W` 4450 <pu-overlay 4451 class="form-modal" 4452 layerIndex=${this.layerIndex??500} 4453 @pu-hide=${this.handleOverlayHide} 4454 style=${e}> 4455 <div slot="content">${i}</div> 4456 <pu-button-icon 4457 slot="alt-close-button" 4458 name="close" 4459 iconSize="large" 4460 padding="6" 4461 borderStyle="rounded" 4462 border></pu-button-icon> 4463 </pu-overlay> 4464 `:i}render(){if(!this.config)return W`<div class="form">Loading...</div>`;const e=this.displayMode,t=this.config.appearance?.colorScheme,o=t?Ie({"--form-primary-foreground":t.primaryText||"","--form-primary-background":t.primaryBackgroun
4464d||"","--form-modal-foreground":t.modalForeground||"","--form-modal-background":t.modalBackground||"","--form-foreground":t.accent||"","--form-background":t.formBackground||"","--form-primary-accent":t.accent||"","--form-secondary-accent":t.secondaryAccent||"","--form-border":t.border||"","--form-success":t.success||"","--form-error":t.error||""}):X;if(!this.isConfigValid())return this.renderInvalidConfigState(o);const i=this.stepStateController.currentStep;if(!i)return W`<div class="form">Loading...</div>`;const a=this.config.appearance?.headerPosition,s=!this.config.header?.hideTitle&&this.config.header?.title,r=this.config.header?.image?.src,n="primary"===i.id&&s||r,l=this.config.appearance?.formStyle,d=this.processingState,c="idle"!==d.status&&d.stepId===i.id,p=W` 4465 <div 4466 class="${Ae({form:!0,multistep:!0,"primary-background-color":!0,"form--inline":"inline"===e,"form--modal":"modal"===e,"form--header-left":"left"===a,"form--header-right":"right"===a,"form--header-above":"above"===a,"form-content--rounded":"rounded"===l})}" 4467 id=${this.config.id} 4468 part="form multistep" 4469 style=${"inline"===e?o:X}> 4470 <div 4471 class="form-container form-container--${n?"with-header":"without-header"}" 4472 part="form-container"> 4473 ${c?this.renderProgressScreen(i.id):this.renderForm(i)} 4474 <slot @slotchange=${this.attachRecaptchaHost} name="recaptcha-host"></slot> 4475 </div> 4476 </div> 4477 `;return"modal"===e?W` 4478 <pu-overlay 4479 class=${Ae({"form-modal":!0,"form-modal--hide-close":!this.shouldShowOverlayCloseButton(i)})} 4480 layerIndex=${this.layerIndex??500} 4481 @pu-hide=${this.handleOverlayHide} 4482 style=${o}> 4483 <div slot="content">${p}</div> 4484 <pu-button-icon 4485 slot="alt-close-button" 4486 name="close" 4487 iconSize="large" 4488 padding="6" 4489 borderStyle="rounded" 4490 border></pu-button-icon> 4491 </pu-overlay> 4492 `:p}}var Nr;Lr.styles=[aa,Ai,sa,Ti,ra],Lr.dependencies={"primary-form":Zi,"optins-form":Li,"supplementary-form":oa,"progress-screen":da,"pu-button":fa,"pu-button-icon":Ca,"pu-checkbox":Ia,"pu-icon":xa,"pu-input":Ma,"pu-overlay":br,"pu-phone-input":Cr,"pu-option":gr,"pu-select":Fr,"pu-text":Dr,"pu-link":Oa,"pu-link-group":La},i([ve({type:Boolean})],Lr.prototype,"debug",void 0),i([(Nr={type:Object},(e,t)=>{const o=Symbol(`_${String(t)}`);ve({...Nr,noAccessor:!0})(e,t),Object.defineProperty(e,t,{get(){return this[o]},set(e){const i=this[o];this[o]=e,!0===this.debug?JSON.stringify(i)!==JSON.stringify(e)&&(console.log(`ð Property '${String(t)}' changed (debug mode):`,{oldValue:i,newValue:e}),this.requestUpdate(t,i)):i!==e&&this.requestUpdate(t,i)},enumerable:!0,configurable:!0})})],Lr.prototype,"config",void 0),i([ve()],Lr.prototype,"apiBaseUrl",void 0),i([ve()],Lr.prototype,"displayMode",void 0),i([ve({type:Number})],Lr.prototype,"layerIndex",void 0),i([xe("pu-overlay")],Lr.prototype,"overlayElement",void 0),i([ye()],Lr.prototype,"processingState",void 0),i([ye()],Lr.prototype,"bannerMessage",void 0),Lr.define("pu-multistep-form")}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.