@everymatrix/player-account-controller-nd 1.63.0 → 1.63.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/components/{PlayerAccountControllerNd-DSjurSSd.cjs → PlayerAccountControllerNd-DNVU-ETz.cjs} +1 -1
  2. package/components/{PlayerAccountControllerNd-C7nL2H66.js → PlayerAccountControllerNd-DXtUq4et.js} +1 -1
  3. package/components/{PlayerAccountControllerNd-C80H8862.js → PlayerAccountControllerNd-OOzoI_VV.js} +1 -1
  4. package/es2015/player-account-controller-nd.cjs +1 -1
  5. package/es2015/player-account-controller-nd.js +1 -1
  6. package/esnext/player-account-controller-nd.js +1 -1
  7. package/package.json +1 -1
  8. package/stencil/{checkbox-group-input_9-DCA5sbPo.cjs → checkbox-group-input_9-CBlOQ2bp.cjs} +2 -2
  9. package/stencil/{checkbox-group-input_9-bIi7h3_V.js → checkbox-group-input_9-Cf3RhgI2.js} +3 -3
  10. package/stencil/{checkbox-group-input_9-BRv_piPJ.js → checkbox-group-input_9-NOhxQ4TV.js} +3 -3
  11. package/stencil/{general-input-OUKrtuTp.js → general-input-BbYl1wbH.js} +1 -1
  12. package/stencil/{general-input-CQs-v3_Y.js → general-input-DOa7K2O_.js} +1 -1
  13. package/stencil/{general-input-DgKQ0KIf.cjs → general-input-DXHAg0hj.cjs} +1 -1
  14. package/stencil/{index-9cd44522-jv76DI6J.cjs → index-9cd44522-B27p0GWo.cjs} +1 -1
  15. package/stencil/{index-9cd44522-C566YWys.js → index-9cd44522-B5bBjvJ-.js} +4 -4
  16. package/stencil/{index-9cd44522-Crt8CtBe.js → index-9cd44522-DZYEjrQJ.js} +4 -4
  17. package/stencil/{password-input_2-Cb1ahifk.cjs → password-input_2-BPC46TAs.cjs} +1 -1
  18. package/stencil/{password-input_2-DQO_Gwqq.js → password-input_2-BxuZdeWc.js} +2 -2
  19. package/stencil/{password-input_2-C84wWI7v.js → password-input_2-D4wWQR82.js} +2 -2
  20. package/stencil/{player-change-password-gm2-039e300e-s9osP-86.js → player-change-password-gm2-039e300e-Dm-mYZ76.js} +1 -1
  21. package/stencil/{player-change-password-gm2-039e300e-mRLvAYzw.js → player-change-password-gm2-039e300e-Du8eNt-6.js} +1 -1
  22. package/stencil/{player-change-password-gm2-039e300e-DIjTdjzy.cjs → player-change-password-gm2-039e300e-WtxMW-jf.cjs} +1 -1
  23. package/stencil/{player-change-password-gm2-nCHwkzVc.js → player-change-password-gm2-Bc5CkDrM.js} +1 -1
  24. package/stencil/{player-change-password-gm2-DHnclYKw.js → player-change-password-gm2-CEo_RTlU.js} +1 -1
  25. package/stencil/{player-change-password-gm2-DRIOay0t.cjs → player-change-password-gm2-CL_S4kzE.cjs} +1 -1
  26. package/stencil/{toggle-checkbox-input-Bh9dCfaE.js → toggle-checkbox-input-C7Z1kZlk.js} +1 -1
  27. package/stencil/{toggle-checkbox-input-CDg0DAAQ.cjs → toggle-checkbox-input-DKrKPVIW.cjs} +1 -1
  28. package/stencil/{toggle-checkbox-input-CFvMg26A.js → toggle-checkbox-input-rkO07S5s.js} +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-9cd44522-jv76DI6J.cjs"),x=require("./locale-BB2iZ4t0.cjs"),B=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),dt='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));box-shadow:none}',ct=dt,Le=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.value=null,this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedValues=[]}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((t,i)=>(t[i.name]=this.selectedValues.includes(i.name),t),{}),this.emitValueHandler(!0)}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.selectedValues=this.options.map(t=>t.name),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}handleParentCheckbox(t){this.selectedValues=t.target.checked?this.options.map(i=>i.name):[]}renderLabel(){return s.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},s.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return s.h("div",{key:"4b966adce4d35ccfc4141acea9c8f26a46590b5d",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},s.h("div",{key:"82f139c6bacc6b29ffd47005546b47c33bb135eb",class:"checkboxgroup__wrapper--flex"},s.h("vaadin-checkbox",{key:"bf99c267f52fa57bd0af94d2465ad18b11079be5",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:t=>this.handleParentCheckbox(t)},this.renderLabel()),this.tooltip&&s.h("img",{key:"84ec417513f4d22534c7106bbef7be0797e42214",class:"checkboxgroup__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),s.h("small",{key:"526a1dc20a7c7d0322f959402ba359f0b6ef52e0",class:"checkboxgroup__error-message"},this.errorMessage),s.h("vaadin-checkbox-group",{key:"ac70eaa0923af84472b35b90f4127a173166a7ce",theme:"vertical",value:this.selectedValues,"on-value-changed":t=>{this.selectedValues=t.detail.value}},this.options.map(t=>s.h("vaadin-checkbox",{class:"checkbox__input",name:t.name,value:t.name,label:t.displayName}))))}get element(){return s.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};Le.style=ct;const ht='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.checkbox__label-text{font-size:16px}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}',ft=ht,$e=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.value="",this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleClick(){this.value=this.inputReference.checked.toString(),this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderLabel(){return s.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`},s.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?s.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return s.h("div",{key:"8c80c955bb052558165a4c5b1020d0582ed0af36",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},s.h("input",{key:"89401d543cb30b72ec614b0cd4e95b2e82b2522d",class:"checkbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.inputReference=t,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel(),s.h("small",{key:"d007d8c02dd014a363e2fcc1a0e8df6ffda34bcb",class:"checkbox__error-message"},this.errorMessage),s.h("div",{key:"c511c07684173359663d4907371efb82289f0433",class:"checkbox__wrapper--relative"},this.tooltip&&s.h("img",{key:"dd263ce86efd89f34078f3cc24729f43f40e89a6",class:"checkbox__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};$e.style=ft;function Q(t){"@babel/helpers - typeof";return Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Q(t)}function M(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function pt(t){return M(1,arguments),t instanceof Date||Q(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function E(t){M(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||Q(t)==="object"&&i==="[object Date]"?new Date(t.getTime()):typeof t=="number"||i==="[object Number]"?new Date(t):((typeof t=="string"||i==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function vt(t){if(M(1,arguments),!pt(t)&&typeof t!="number")return!1;var i=E(t);return!isNaN(Number(i))}function F(t){if(t===null||t===!0||t===!1)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function mt(t,i){M(2,arguments);var r=E(t).getTime(),a=F(i);return new Date(r+a)}function Ye(t,i){M(2,arguments);var r=F(i);return mt(t,-r)}var gt=864e5;function yt(t){M(1,arguments);var i=E(t),r=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var a=i.getTime(),e=r-a;return Math.floor(e/gt)+1}function ee(t){M(1,arguments);var i=1,r=E(t),a=r.getUTCDay(),e=(a<i?7:0)+a-i;return r.setUTCDate(r.getUTCDate()-e),r.setUTCHours(0,0,0,0),r}function qe(t){M(1,arguments);var i=E(t),r=i.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(r+1,0,4),a.setUTCHours(0,0,0,0);var e=ee(a),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var n=ee(o);return i.getTime()>=e.getTime()?r+1:i.getTime()>=n.getTime()?r:r-1}function bt(t){M(1,arguments);var i=qe(t),r=new Date(0);r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0);var a=ee(r);return a}var wt=6048e5;function Ae(t){M(1,arguments);var i=E(t),r=ee(i).getTime()-bt(i).getTime();return Math.round(r/wt)+1}var _t={};function te(){return _t}function Z(t,i){var r,a,e,o,n,l,c,h;M(1,arguments);var g=te(),y=F((r=(a=(e=(o=i==null?void 0:i.weekStartsOn)!==null&&o!==void 0?o:i==null||(n=i.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&e!==void 0?e:g.weekStartsOn)!==null&&a!==void 0?a:(c=g.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var C=E(t),T=C.getUTCDay(),S=(T<y?7:0)+T-y;return C.setUTCDate(C.getUTCDate()-S),C.setUTCHours(0,0,0,0),C}function _e(t,i){var r,a,e,o,n,l,c,h;M(1,arguments);var g=E(t),y=g.getUTCFullYear(),C=te(),T=F((r=(a=(e=(o=i==null?void 0:i.firstWeekContainsDate)!==null&&o!==void 0?o:i==null||(n=i.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&e!==void 0?e:C.firstWeekContainsDate)!==null&&a!==void 0?a:(c=C.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(y+1,0,T),S.setUTCHours(0,0,0,0);var $=Z(S,i),R=new Date(0);R.setUTCFullYear(y,0,T),R.setUTCHours(0,0,0,0);var N=Z(R,i);return g.getTime()>=$.getTime()?y+1:g.getTime()>=N.getTime()?y:y-1}function xt(t,i){var r,a,e,o,n,l,c,h;M(1,arguments);var g=te(),y=F((r=(a=(e=(o=i==null?void 0:i.firstWeekContainsDate)!==null&&o!==void 0?o:i==null||(n=i.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&e!==void 0?e:g.firstWeekContainsDate)!==null&&a!==void 0?a:(c=g.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&r!==void 0?r:1),C=_e(t,i),T=new Date(0);T.setUTCFullYear(C,0,y),T.setUTCHours(0,0,0,0);var S=Z(T,i);return S}var Tt=6048e5;function Ne(t,i){M(1,arguments);var r=E(t),a=Z(r,i).getTime()-xt(r,i).getTime();return Math.round(a/Tt)+1}function w(t,i){for(var r=t<0?"-":"",a=Math.abs(t).toString();a.length<i;)a="0"+a;return r+a}var kt={y:function(i,r){var a=i.getUTCFullYear(),e=a>0?a:1-a;return w(r==="yy"?e%100:e,r.length)},M:function(i,r){var a=i.getUTCMonth();return r==="M"?String(a+1):w(a+1,2)},d:function(i,r){return w(i.getUTCDate(),r.length)},a:function(i,r){var a=i.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(i,r){return w(i.getUTCHours()%12||12,r.length)},H:function(i,r){return w(i.getUTCHours(),r.length)},m:function(i,r){return w(i.getUTCMinutes(),r.length)},s:function(i,r){return w(i.getUTCSeconds(),r.length)},S:function(i,r){var a=r.length,e=i.getUTCMilliseconds(),o=Math.floor(e*Math.pow(10,a-3));return w(o,r.length)}};const j=kt;var J={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ct={G:function(i,r,a){var e=i.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return a.era(e,{width:"abbreviated"});case"GGGGG":return a.era(e,{width:"narrow"});case"GGGG":default:return a.era(e,{width:"wide"})}},y:function(i,r,a){if(r==="yo"){var e=i.getUTCFullYear(),o=e>0?e:1-e;return a.ordinalNumber(o,{unit:"year"})}return j.y(i,r)},Y:function(i,r,a,e){var o=_e(i,e),n=o>0?o:1-o;if(r==="YY"){var l=n%100;return w(l,2)}return r==="Yo"?a.ordinalNumber(n,{unit:"year"}):w(n,r.length)},R:function(i,r){var a=qe(i);return w(a,r.length)},u:function(i,r){var a=i.getUTCFullYear();return w(a,r.length)},Q:function(i,r,a){var e=Math.ceil((i.getUTCMonth()+1)/3);switch(r){case"Q":return String(e);case"QQ":return w(e,2);case"Qo":return a.ordinalNumber(e,{unit:"quarter"});case"QQQ":return a.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(e,{width:"wide",context:"formatting"})}},q:function(i,r,a){var e=Math.ceil((i.getUTCMonth()+1)/3);switch(r){case"q":return String(e);case"qq":return w(e,2);case"qo":return a.ordinalNumber(e,{unit:"quarter"});case"qqq":return a.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(e,{width:"wide",context:"standalone"})}},M:function(i,r,a){var e=i.getUTCMonth();switch(r){case"M":case"MM":return j.M(i,r);case"Mo":return a.ordinalNumber(e+1,{unit:"month"});case"MMM":return a.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(e,{width:"wide",context:"formatting"})}},L:function(i,r,a){var e=i.getUTCMonth();switch(r){case"L":return String(e+1);case"LL":return w(e+1,2);case"Lo":return a.ordinalNumber(e+1,{unit:"month"});case"LLL":return a.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(e,{width:"wide",context:"standalone"})}},w:function(i,r,a,e){var o=Ne(i,e);return r==="wo"?a.ordinalNumber(o,{unit:"week"}):w(o,r.length)},I:function(i,r,a){var e=Ae(i);return r==="Io"?a.ordinalNumber(e,{unit:"week"}):w(e,r.length)},d:function(i,r,a){return r==="do"?a.ordinalNumber(i.getUTCDate(),{unit:"date"}):j.d(i,r)},D:function(i,r,a){var e=yt(i);return r==="Do"?a.ordinalNumber(e,{unit:"dayOfYear"}):w(e,r.length)},E:function(i,r,a){var e=i.getUTCDay();switch(r){case"E":case"EE":case"EEE":return a.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(e,{width:"short",context:"formatting"});case"EEEE":default:return a.day(e,{width:"wide",context:"formatting"})}},e:function(i,r,a,e){var o=i.getUTCDay(),n=(o-e.weekStartsOn+8)%7||7;switch(r){case"e":return String(n);case"ee":return w(n,2);case"eo":return a.ordinalNumber(n,{unit:"day"});case"eee":return a.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})}},c:function(i,r,a,e){var o=i.getUTCDay(),n=(o-e.weekStartsOn+8)%7||7;switch(r){case"c":return String(n);case"cc":return w(n,r.length);case"co":return a.ordinalNumber(n,{unit:"day"});case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})}},i:function(i,r,a){var e=i.getUTCDay(),o=e===0?7:e;switch(r){case"i":return String(o);case"ii":return w(o,r.length);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return a.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(e,{width:"short",context:"formatting"});case"iiii":default:return a.day(e,{width:"wide",context:"formatting"})}},a:function(i,r,a){var e=i.getUTCHours(),o=e/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(i,r,a){var e=i.getUTCHours(),o;switch(e===12?o=J.noon:e===0?o=J.midnight:o=e/12>=1?"pm":"am",r){case"b":case"bb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(i,r,a){var e=i.getUTCHours(),o;switch(e>=17?o=J.evening:e>=12?o=J.afternoon:e>=4?o=J.morning:o=J.night,r){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(i,r,a){if(r==="ho"){var e=i.getUTCHours()%12;return e===0&&(e=12),a.ordinalNumber(e,{unit:"hour"})}return j.h(i,r)},H:function(i,r,a){return r==="Ho"?a.ordinalNumber(i.getUTCHours(),{unit:"hour"}):j.H(i,r)},K:function(i,r,a){var e=i.getUTCHours()%12;return r==="Ko"?a.ordinalNumber(e,{unit:"hour"}):w(e,r.length)},k:function(i,r,a){var e=i.getUTCHours();return e===0&&(e=24),r==="ko"?a.ordinalNumber(e,{unit:"hour"}):w(e,r.length)},m:function(i,r,a){return r==="mo"?a.ordinalNumber(i.getUTCMinutes(),{unit:"minute"}):j.m(i,r)},s:function(i,r,a){return r==="so"?a.ordinalNumber(i.getUTCSeconds(),{unit:"second"}):j.s(i,r)},S:function(i,r){return j.S(i,r)},X:function(i,r,a,e){var o=e._originalDate||i,n=o.getTimezoneOffset();if(n===0)return"Z";switch(r){case"X":return Oe(n);case"XXXX":case"XX":return K(n);case"XXXXX":case"XXX":default:return K(n,":")}},x:function(i,r,a,e){var o=e._originalDate||i,n=o.getTimezoneOffset();switch(r){case"x":return Oe(n);case"xxxx":case"xx":return K(n);case"xxxxx":case"xxx":default:return K(n,":")}},O:function(i,r,a,e){var o=e._originalDate||i,n=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Se(n,":");case"OOOO":default:return"GMT"+K(n,":")}},z:function(i,r,a,e){var o=e._originalDate||i,n=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Se(n,":");case"zzzz":default:return"GMT"+K(n,":")}},t:function(i,r,a,e){var o=e._originalDate||i,n=Math.floor(o.getTime()/1e3);return w(n,r.length)},T:function(i,r,a,e){var o=e._originalDate||i,n=o.getTime();return w(n,r.length)}};function Se(t,i){var r=t>0?"-":"+",a=Math.abs(t),e=Math.floor(a/60),o=a%60;if(o===0)return r+String(e);var n=i;return r+String(e)+n+w(o,2)}function Oe(t,i){if(t%60===0){var r=t>0?"-":"+";return r+w(Math.abs(t)/60,2)}return K(t,i)}function K(t,i){var r=i||"",a=t>0?"-":"+",e=Math.abs(t),o=w(Math.floor(e/60),2),n=w(e%60,2);return a+o+r+n}const Vt=Ct;var Ie=function(i,r){switch(i){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},We=function(i,r){switch(i){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Mt=function(i,r){var a=i.match(/(P+)(p+)?/)||[],e=a[1],o=a[2];if(!o)return Ie(i,r);var n;switch(e){case"P":n=r.dateTime({width:"short"});break;case"PP":n=r.dateTime({width:"medium"});break;case"PPP":n=r.dateTime({width:"long"});break;case"PPPP":default:n=r.dateTime({width:"full"});break}return n.replace("{{date}}",Ie(e,r)).replace("{{time}}",We(o,r))},Pt={p:We,P:Mt};const be=Pt;function Qe(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}var Dt=["D","DD"],Et=["YY","YYYY"];function Be(t){return Dt.indexOf(t)!==-1}function ze(t){return Et.indexOf(t)!==-1}function he(t,i,r){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var St={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ot=function(i,r,a){var e,o=St[i];return typeof o=="string"?e=o:r===1?e=o.one:e=o.other.replace("{{count}}",r.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+e:e+" ago":e};const It=Ot;function ye(t){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.width?String(i.width):t.defaultWidth,a=t.formats[r]||t.formats[t.defaultWidth];return a}}var Ht={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ft={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ut={date:ye({formats:Ht,defaultWidth:"full"}),time:ye({formats:Ft,defaultWidth:"full"}),dateTime:ye({formats:Rt,defaultWidth:"full"})};const Lt=Ut;var $t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Yt=function(i,r,a,e){return $t[i]};const qt=Yt;function oe(t){return function(i,r){var a=r!=null&&r.context?String(r.context):"standalone",e;if(a==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,n=r!=null&&r.width?String(r.width):o;e=t.formattingValues[n]||t.formattingValues[o]}else{var l=t.defaultWidth,c=r!=null&&r.width?String(r.width):t.defaultWidth;e=t.values[c]||t.values[l]}var h=t.argumentCallback?t.argumentCallback(i):i;return e[h]}}var At={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Nt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Qt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Bt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},zt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Gt=function(i,r){var a=Number(i),e=a%100;if(e>20||e<10)switch(e%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},jt={ordinalNumber:Gt,era:oe({values:At,defaultWidth:"wide"}),quarter:oe({values:Nt,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:oe({values:Wt,defaultWidth:"wide"}),day:oe({values:Qt,defaultWidth:"wide"}),dayPeriod:oe({values:Bt,defaultWidth:"wide",formattingValues:zt,defaultFormattingWidth:"wide"})};const Xt=jt;function se(t){return function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.width,e=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],o=i.match(e);if(!o)return null;var n=o[0],l=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?Zt(l,function(y){return y.test(n)}):Kt(l,function(y){return y.test(n)}),h;h=t.valueCallback?t.valueCallback(c):c,h=r.valueCallback?r.valueCallback(h):h;var g=i.slice(n.length);return{value:h,rest:g}}}function Kt(t,i){for(var r in t)if(t.hasOwnProperty(r)&&i(t[r]))return r}function Zt(t,i){for(var r=0;r<t.length;r++)if(i(t[r]))return r}function Jt(t){return function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.match(t.matchPattern);if(!a)return null;var e=a[0],o=i.match(t.parsePattern);if(!o)return null;var n=t.valueCallback?t.valueCallback(o[0]):o[0];n=r.valueCallback?r.valueCallback(n):n;var l=i.slice(e.length);return{value:n,rest:l}}}var ei=/^(\d+)(th|st|nd|rd)?/i,ti=/\d+/i,ii={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ri={any:[/^b/i,/^(a|c)/i]},ai={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ni={any:[/1/i,/2/i,/3/i,/4/i]},oi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},si={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},li={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ui={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},di={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ci={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},hi={ordinalNumber:Jt({matchPattern:ei,parsePattern:ti,valueCallback:function(i){return parseInt(i,10)}}),era:se({matchPatterns:ii,defaultMatchWidth:"wide",parsePatterns:ri,defaultParseWidth:"any"}),quarter:se({matchPatterns:ai,defaultMatchWidth:"wide",parsePatterns:ni,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:se({matchPatterns:oi,defaultMatchWidth:"wide",parsePatterns:si,defaultParseWidth:"any"}),day:se({matchPatterns:li,defaultMatchWidth:"wide",parsePatterns:ui,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:di,defaultMatchWidth:"any",parsePatterns:ci,defaultParseWidth:"any"})};const fi=hi;var pi={code:"en-US",formatDistance:It,formatLong:Lt,formatRelative:qt,localize:Xt,match:fi,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ge=pi;var vi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gi=/^'([^]*?)'?$/,yi=/''/g,bi=/[a-zA-Z]/;function wi(t,i,r){var a,e,o,n,l,c,h,g,y,C,T,S,$,R;M(2,arguments);var N=String(i),H=te(),Y=(a=(e=void 0)!==null&&e!==void 0?e:H.locale)!==null&&a!==void 0?a:Ge,W=F((o=(n=(l=(c=void 0)!==null&&c!==void 0?c:void 0)!==null&&l!==void 0?l:H.firstWeekContainsDate)!==null&&n!==void 0?n:(h=H.locale)===null||h===void 0||(g=h.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=F((y=(C=(T=(S=void 0)!==null&&S!==void 0?S:void 0)!==null&&T!==void 0?T:H.weekStartsOn)!==null&&C!==void 0?C:($=H.locale)===null||$===void 0||(R=$.options)===null||R===void 0?void 0:R.weekStartsOn)!==null&&y!==void 0?y:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Y.localize)throw new RangeError("locale must contain localize property");if(!Y.formatLong)throw new RangeError("locale must contain formatLong property");var G=E(t);if(!vt(G))throw new RangeError("Invalid time value");var ie=Qe(G),re=Ye(G,ie),ae={firstWeekContainsDate:W,weekStartsOn:z,locale:Y,_originalDate:G},ve=N.match(mi).map(function(I){var U=I[0];if(U==="p"||U==="P"){var X=be[U];return X(I,Y.formatLong)}return I}).join("").match(vi).map(function(I){if(I==="''")return"'";var U=I[0];if(U==="'")return _i(I);var X=Vt[U];if(X)return ze(I)&&he(I,i,String(t)),Be(I)&&he(I,i,String(t)),X(re,I,Y.localize,ae);if(U.match(bi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+U+"`");return I}).join("");return ve}function _i(t){var i=t.match(gi);return i?i[1].replace(yi,"'"):t}function He(t,i){(i==null||i>t.length)&&(i=t.length);for(var r=0,a=Array(i);r<i;r++)a[r]=t[r];return a}function xi(t,i){if(t){if(typeof t=="string")return He(t,i);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?He(t,i):void 0}}function Fe(t,i){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=xi(t))||i){r&&(t=r);var a=0,e=function(){};return{s:e,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(h){throw h},f:e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,n=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var h=r.next();return n=h.done,h},e:function(h){l=!0,o=h},f:function(){try{n||r.return==null||r.return()}finally{if(l)throw o}}}}function Ti(t,i){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}function d(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function we(t,i){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},we(t,i)}function v(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&we(t,i)}function fe(t){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},fe(t)}function je(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(je=function(){return!!t})()}function ki(t,i){if(i&&(Q(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}function m(t){var i=je();return function(){var r,a=fe(t);if(i){var e=fe(this).constructor;r=Reflect.construct(a,arguments,e)}else r=a.apply(this,arguments);return ki(this,r)}}function f(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function Ci(t,i){if(Q(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,i);if(Q(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(t)}function Xe(t){var i=Ci(t,"string");return Q(i)=="symbol"?i:i+""}function Vi(t,i){for(var r=0;r<i.length;r++){var a=i[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,Xe(a.key),a)}}function p(t,i,r){return i&&Vi(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,i,r){return(i=Xe(i))in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}var Mi=10,Ke=function(){function t(){f(this,t),u(this,"priority",void 0),u(this,"subPriority",0)}return p(t,[{key:"validate",value:function(r,a){return!0}}]),t}(),Pi=function(t){v(r,t);var i=m(r);function r(a,e,o,n,l){var c;return f(this,r),c=i.call(this),c.value=a,c.validateValue=e,c.setValue=o,c.priority=n,l&&(c.subPriority=l),c}return p(r,[{key:"validate",value:function(e,o){return this.validateValue(e,this.value,o)}},{key:"set",value:function(e,o,n){return this.setValue(e,o,this.value,n)}}]),r}(Ke),Di=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",Mi),u(d(a),"subPriority",-1),a}return p(r,[{key:"set",value:function(e,o){if(o.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),r}(Ke),b=function(){function t(){f(this,t),u(this,"incompatibleTokens",void 0),u(this,"priority",void 0),u(this,"subPriority",void 0)}return p(t,[{key:"run",value:function(r,a,e,o){var n=this.parse(r,a,e,o);return n?{setter:new Pi(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(r,a,e){return!0}}]),t}(),Ei=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",140),u(d(a),"incompatibleTokens",["R","u","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,o,n){return o.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(b),Si=6e4,Oi=36e5,Ii=1e3,P={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},q={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function D(t,i){return t&&{value:i(t.value),rest:t.rest}}function k(t,i){var r=i.match(t);return r?{value:parseInt(r[0],10),rest:i.slice(r[0].length)}:null}function A(t,i){var r=i.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:i.slice(1)};var a=r[1]==="+"?1:-1,e=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,n=r[5]?parseInt(r[5],10):0;return{value:a*(e*Oi+o*Si+n*Ii),rest:i.slice(r[0].length)}}function Ze(t){return k(P.anyDigitsSigned,t)}function V(t,i){switch(t){case 1:return k(P.singleDigit,i);case 2:return k(P.twoDigits,i);case 3:return k(P.threeDigits,i);case 4:return k(P.fourDigits,i);default:return k(new RegExp("^\\d{1,"+t+"}"),i)}}function pe(t,i){switch(t){case 1:return k(P.singleDigitSigned,i);case 2:return k(P.twoDigitsSigned,i);case 3:return k(P.threeDigitsSigned,i);case 4:return k(P.fourDigitsSigned,i);default:return k(new RegExp("^-?\\d{1,"+t+"}"),i)}}function xe(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Je(t,i){var r=i>0,a=r?i:1-i,e;if(a<=50)e=t||100;else{var o=a+50,n=Math.floor(o/100)*100,l=t>=o%100;e=t+n-(l?100:0)}return r?e:1-e}function et(t){return t%400===0||t%4===0&&t%100!==0}var Hi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",130),u(d(a),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){var l=function(h){return{year:h,isTwoDigitYear:o==="yy"}};switch(o){case"y":return D(V(4,e),l);case"yo":return D(n.ordinalNumber(e,{unit:"year"}),l);default:return D(V(o.length,e),l)}}},{key:"validate",value:function(e,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(e,o,n){var l=e.getUTCFullYear();if(n.isTwoDigitYear){var c=Je(n.year,l);return e.setUTCFullYear(c,0,1),e.setUTCHours(0,0,0,0),e}var h=!("era"in o)||o.era===1?n.year:1-n.year;return e.setUTCFullYear(h,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(b),Fi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",130),u(d(a),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){var l=function(h){return{year:h,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return D(V(4,e),l);case"Yo":return D(n.ordinalNumber(e,{unit:"year"}),l);default:return D(V(o.length,e),l)}}},{key:"validate",value:function(e,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(e,o,n,l){var c=_e(e,l);if(n.isTwoDigitYear){var h=Je(n.year,c);return e.setUTCFullYear(h,0,l.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Z(e,l)}var g=!("era"in o)||o.era===1?n.year:1-n.year;return e.setUTCFullYear(g,0,l.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Z(e,l)}}]),r}(b),Ri=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",130),u(d(a),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o){return pe(o==="R"?4:o.length,e)}},{key:"set",value:function(e,o,n){var l=new Date(0);return l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0),ee(l)}}]),r}(b),Ui=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",130),u(d(a),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o){return pe(o==="u"?4:o.length,e)}},{key:"set",value:function(e,o,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(b),Li=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",120),u(d(a),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"Q":case"QQ":return V(o.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,o){return o>=1&&o<=4}},{key:"set",value:function(e,o,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),r}(b),$i=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",120),u(d(a),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"q":case"qq":return V(o.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,o){return o>=1&&o<=4}},{key:"set",value:function(e,o,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),r}(b),Yi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),u(d(a),"priority",110),a}return p(r,[{key:"parse",value:function(e,o,n){var l=function(h){return h-1};switch(o){case"M":return D(k(P.month,e),l);case"MM":return D(V(2,e),l);case"Mo":return D(n.ordinalNumber(e,{unit:"month"}),l);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=11}},{key:"set",value:function(e,o,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),r}(b),qi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",110),u(d(a),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){var l=function(h){return h-1};switch(o){case"L":return D(k(P.month,e),l);case"LL":return D(V(2,e),l);case"Lo":return D(n.ordinalNumber(e,{unit:"month"}),l);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=11}},{key:"set",value:function(e,o,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),r}(b);function Ai(t,i,r){M(2,arguments);var a=E(t),e=F(i),o=Ne(a,r)-e;return a.setUTCDate(a.getUTCDate()-o*7),a}var Ni=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",100),u(d(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"w":return k(P.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=1&&o<=53}},{key:"set",value:function(e,o,n,l){return Z(Ai(e,n,l),l)}}]),r}(b);function Wi(t,i){M(2,arguments);var r=E(t),a=F(i),e=Ae(r)-a;return r.setUTCDate(r.getUTCDate()-e*7),r}var Qi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",100),u(d(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"I":return k(P.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=1&&o<=53}},{key:"set",value:function(e,o,n){return ee(Wi(e,n))}}]),r}(b),Bi=[31,28,31,30,31,30,31,31,30,31,30,31],zi=[31,29,31,30,31,30,31,31,30,31,30,31],Gi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",90),u(d(a),"subPriority",1),u(d(a),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"d":return k(P.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){var n=e.getUTCFullYear(),l=et(n),c=e.getUTCMonth();return l?o>=1&&o<=zi[c]:o>=1&&o<=Bi[c]}},{key:"set",value:function(e,o,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),r}(b),ji=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",90),u(d(a),"subpriority",1),u(d(a),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"D":case"DD":return k(P.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){var n=e.getUTCFullYear(),l=et(n);return l?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(e,o,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),r}(b);function Te(t,i,r){var a,e,o,n,l,c,h,g;M(2,arguments);var y=te(),C=F((a=(e=(o=(n=r==null?void 0:r.weekStartsOn)!==null&&n!==void 0?n:r==null||(l=r.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&o!==void 0?o:y.weekStartsOn)!==null&&e!==void 0?e:(h=y.locale)===null||h===void 0||(g=h.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&a!==void 0?a:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var T=E(t),S=F(i),$=T.getUTCDay(),R=S%7,N=(R+7)%7,H=(N<C?7:0)+S-$;return T.setUTCDate(T.getUTCDate()+H),T}var Xi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",90),u(d(a),"incompatibleTokens",["D","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=6}},{key:"set",value:function(e,o,n,l){return e=Te(e,n,l),e.setUTCHours(0,0,0,0),e}}]),r}(b),Ki=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",90),u(d(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n,l){var c=function(g){var y=Math.floor((g-1)/7)*7;return(g+l.weekStartsOn+6)%7+y};switch(o){case"e":case"ee":return D(V(o.length,e),c);case"eo":return D(n.ordinalNumber(e,{unit:"day"}),c);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=6}},{key:"set",value:function(e,o,n,l){return e=Te(e,n,l),e.setUTCHours(0,0,0,0),e}}]),r}(b),Zi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",90),u(d(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n,l){var c=function(g){var y=Math.floor((g-1)/7)*7;return(g+l.weekStartsOn+6)%7+y};switch(o){case"c":case"cc":return D(V(o.length,e),c);case"co":return D(n.ordinalNumber(e,{unit:"day"}),c);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=6}},{key:"set",value:function(e,o,n,l){return e=Te(e,n,l),e.setUTCHours(0,0,0,0),e}}]),r}(b);function Ji(t,i){M(2,arguments);var r=F(i);r%7===0&&(r=r-7);var a=1,e=E(t),o=e.getUTCDay(),n=r%7,l=(n+7)%7,c=(l<a?7:0)+r-o;return e.setUTCDate(e.getUTCDate()+c),e}var er=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",90),u(d(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){var l=function(h){return h===0?7:h};switch(o){case"i":case"ii":return V(o.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return D(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),l);case"iiiii":return D(n.day(e,{width:"narrow",context:"formatting"}),l);case"iiiiii":return D(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),l);case"iiii":default:return D(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(e,o){return o>=1&&o<=7}},{key:"set",value:function(e,o,n){return e=Ji(e,n),e.setUTCHours(0,0,0,0),e}}]),r}(b),tr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",80),u(d(a),"incompatibleTokens",["b","B","H","k","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,o,n){return e.setUTCHours(xe(n),0,0,0),e}}]),r}(b),ir=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",80),u(d(a),"incompatibleTokens",["a","B","H","k","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,o,n){return e.setUTCHours(xe(n),0,0,0),e}}]),r}(b),rr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",80),u(d(a),"incompatibleTokens",["a","b","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,o,n){return e.setUTCHours(xe(n),0,0,0),e}}]),r}(b),ar=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",70),u(d(a),"incompatibleTokens",["H","K","k","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"h":return k(P.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=1&&o<=12}},{key:"set",value:function(e,o,n){var l=e.getUTCHours()>=12;return l&&n<12?e.setUTCHours(n+12,0,0,0):!l&&n===12?e.setUTCHours(0,0,0,0):e.setUTCHours(n,0,0,0),e}}]),r}(b),nr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",70),u(d(a),"incompatibleTokens",["a","b","h","K","k","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"H":return k(P.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=0&&o<=23}},{key:"set",value:function(e,o,n){return e.setUTCHours(n,0,0,0),e}}]),r}(b),or=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",70),u(d(a),"incompatibleTokens",["h","H","k","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"K":return k(P.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=0&&o<=11}},{key:"set",value:function(e,o,n){var l=e.getUTCHours()>=12;return l&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),r}(b),sr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",70),u(d(a),"incompatibleTokens",["a","b","h","H","K","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"k":return k(P.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=1&&o<=24}},{key:"set",value:function(e,o,n){var l=n<=24?n%24:n;return e.setUTCHours(l,0,0,0),e}}]),r}(b),lr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",60),u(d(a),"incompatibleTokens",["t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"m":return k(P.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=0&&o<=59}},{key:"set",value:function(e,o,n){return e.setUTCMinutes(n,0,0),e}}]),r}(b),ur=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",50),u(d(a),"incompatibleTokens",["t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"s":return k(P.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=0&&o<=59}},{key:"set",value:function(e,o,n){return e.setUTCSeconds(n,0),e}}]),r}(b),dr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",30),u(d(a),"incompatibleTokens",["t","T"]),a}return p(r,[{key:"parse",value:function(e,o){var n=function(c){return Math.floor(c*Math.pow(10,-o.length+3))};return D(V(o.length,e),n)}},{key:"set",value:function(e,o,n){return e.setUTCMilliseconds(n),e}}]),r}(b),cr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",10),u(d(a),"incompatibleTokens",["t","T","x"]),a}return p(r,[{key:"parse",value:function(e,o){switch(o){case"X":return A(q.basicOptionalMinutes,e);case"XX":return A(q.basic,e);case"XXXX":return A(q.basicOptionalSeconds,e);case"XXXXX":return A(q.extendedOptionalSeconds,e);case"XXX":default:return A(q.extended,e)}}},{key:"set",value:function(e,o,n){return o.timestampIsSet?e:new Date(e.getTime()-n)}}]),r}(b),hr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",10),u(d(a),"incompatibleTokens",["t","T","X"]),a}return p(r,[{key:"parse",value:function(e,o){switch(o){case"x":return A(q.basicOptionalMinutes,e);case"xx":return A(q.basic,e);case"xxxx":return A(q.basicOptionalSeconds,e);case"xxxxx":return A(q.extendedOptionalSeconds,e);case"xxx":default:return A(q.extended,e)}}},{key:"set",value:function(e,o,n){return o.timestampIsSet?e:new Date(e.getTime()-n)}}]),r}(b),fr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",40),u(d(a),"incompatibleTokens","*"),a}return p(r,[{key:"parse",value:function(e){return Ze(e)}},{key:"set",value:function(e,o,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),r}(b),pr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",20),u(d(a),"incompatibleTokens","*"),a}return p(r,[{key:"parse",value:function(e){return Ze(e)}},{key:"set",value:function(e,o,n){return[new Date(n),{timestampIsSet:!0}]}}]),r}(b),vr={G:new Ei,y:new Hi,Y:new Fi,R:new Ri,u:new Ui,Q:new Li,q:new $i,M:new Yi,L:new qi,w:new Ni,I:new Qi,d:new Gi,D:new ji,E:new Xi,e:new Ki,c:new Zi,i:new er,a:new tr,b:new ir,B:new rr,h:new ar,H:new nr,K:new or,k:new sr,m:new lr,s:new ur,S:new dr,X:new cr,x:new hr,t:new fr,T:new pr},mr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yr=/^'([^]*?)'?$/,br=/''/g,wr=/\S/,_r=/[a-zA-Z]/;function ce(t,i,r,a){var e,o,n,l,c,h,g,y,C,T,S,$,R,N;M(3,arguments);var H=String(t),Y=String(i),W=te(),z=(e=(o=void 0)!==null&&o!==void 0?o:W.locale)!==null&&e!==void 0?e:Ge;if(!z.match)throw new RangeError("locale must contain match property");var G=F((n=(l=(c=(h=void 0)!==null&&h!==void 0?h:void 0)!==null&&c!==void 0?c:W.firstWeekContainsDate)!==null&&l!==void 0?l:(g=W.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(G>=1&&G<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ie=F((C=(T=(S=($=void 0)!==null&&$!==void 0?$:void 0)!==null&&S!==void 0?S:W.weekStartsOn)!==null&&T!==void 0?T:(R=W.locale)===null||R===void 0||(N=R.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&C!==void 0?C:0);if(!(ie>=0&&ie<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(Y==="")return H===""?E(r):new Date(NaN);var re={firstWeekContainsDate:G,weekStartsOn:ie,locale:z},ae=[new Di],ve=Y.match(gr).map(function(O){var _=O[0];if(_ in be){var L=be[_];return L(O,z.formatLong)}return O}).join("").match(mr),I=[],U=Fe(ve),X;try{var lt=function(){var _=X.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&ze(_)&&he(_,Y,t),!(a!=null&&a.useAdditionalDayOfYearTokens)&&Be(_)&&he(_,Y,t);var L=_[0],de=vr[L];if(de){var Pe=de.incompatibleTokens;if(Array.isArray(Pe)){var De=I.find(function(Ee){return Pe.includes(Ee.token)||Ee.token===L});if(De)throw new RangeError("The format string mustn't contain `".concat(De.fullToken,"` and `").concat(_,"` at the same time"))}else if(de.incompatibleTokens==="*"&&I.length>0)throw new RangeError("The format string mustn't contain `".concat(_,"` and any other token at the same time"));I.push({token:L,fullToken:_});var ge=de.run(H,_,z.match,re);if(!ge)return{v:new Date(NaN)};ae.push(ge.setter),H=ge.rest}else{if(L.match(_r))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");if(_==="''"?_="'":L==="'"&&(_=xr(_)),H.indexOf(_)===0)H=H.slice(_.length);else return{v:new Date(NaN)}}};for(U.s();!(X=U.n()).done;){var ke=lt();if(Q(ke)==="object")return ke.v}}catch(O){U.e(O)}finally{U.f()}if(H.length>0&&wr.test(H))return new Date(NaN);var ut=ae.map(function(O){return O.priority}).sort(function(O,_){return _-O}).filter(function(O,_,L){return L.indexOf(O)===_}).map(function(O){return ae.filter(function(_){return _.priority===O}).sort(function(_,L){return L.subPriority-_.subPriority})}).map(function(O){return O[0]}),me=E(r);if(isNaN(me.getTime()))return new Date(NaN);var ne=Ye(me,Qe(me)),Ce={},le=Fe(ut),Ve;try{for(le.s();!(Ve=le.n()).done;){var Me=Ve.value;if(!Me.validate(ne,re))return new Date(NaN);var ue=Me.set(ne,Ce,re);Array.isArray(ue)?(ne=ue[0],Ti(Ce,ue[1])):ne=ue}}catch(O){le.e(O)}finally{le.f()}return ne}function xr(t){return t.match(yr)[1].replace(br,"'")}function Re(t,i){M(2,arguments);var r=E(t),a=E(i);return r.getTime()>a.getTime()}function Ue(t,i){M(2,arguments);var r=E(t),a=E(i);return r.getTime()<a.getTime()}const Tr='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:rgba(204, 0, 0, 0.7019607843)}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}',kr=Tr,tt=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=i=>{const{year:r,month:a,day:e}=i,o=new Date(r,a,e);return wi(o,this.dateFormat||"yyyy-MM-dd")},this.parseDate=i=>{const r=ce(i,this.dateFormat||"yyyy-MM-dd",new Date);return{year:r.getFullYear(),month:r.getMonth(),day:r.getDate()}},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat=void 0,this.emitOnClick=!1,this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var t,i;this.minDate=ce(((t=this.validation.min)===null||t===void 0?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=ce(((i=this.validation.max)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const t=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');t&&t.addEventListener("click",()=>this.handleCalendarIconClick())}this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(t){this.value=t.target.value,this.touched=!0,this.valueAsDate=ce(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return Ue(this.valueAsDate,this.minDate)||Re(this.valueAsDate,this.maxDate)?!1:this.inputReference.validity.valid}setErrorMessage(){if(Ue(this.valueAsDate,this.minDate)||Re(this.valueAsDate,this.maxDate))return x.translate("dateError2",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return x.translate("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"e20d8db3b90253a7719c4b25a33a201a72ec2cc9",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("label",{key:"08847fd59e35a6690bf5e6b0882745c8f904388b",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),s.h("vaadin-date-picker",{key:"aaf1d2d8c53c993fd13e4701e5dd7e0ad9fcf442",id:`${this.name}__input`,type:"date",class:`date__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:i=>this.handleInput(i),onBlur:this.handleBlur}),s.h("small",{key:"34f1dcfba1bbe0939d4b1de450cb9d19f99266dd",class:"date__error-message"},this.errorMessage),this.tooltip&&s.h("img",{key:"3de20db5b37aa321ab0ef71b7a758ee615613053",class:"date__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return s.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};tt.style=kr;const Cr='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}',Vr=Cr,it=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=i=>{this.value=i.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i,r,a;if(this.inputReference.validity.patternMismatch){const e=(t=this.validation.custom.find(n=>n.rule==="regex"))===null||t===void 0?void 0:t.errorKey,o=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return x.translate(`${e}`,this.language)?x.translate(`${e}`,this.language):o}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return x.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const e=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorKey,o=(a=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||a===void 0?void 0:a.errorMessage;return x.translate(`${e}`,this.language)?x.translate(`${e}`,this.language):o}}renderTooltip(){return this.showTooltip?s.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"a46093cfafc840d2fd563ee9676ccd2f16fb1620",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("div",{key:"2eab4a96efc36cdb94e9f92b2a161e208f0ebcd4",class:"email__wrapper--flex"},s.h("label",{key:"f5ed857f61ea6763c5fe88590732258b4dedac1b",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"58cadc7857cd91dec968852be71e0108f55fbda7",class:"email__wrapper--relative"},this.tooltip&&s.h("img",{key:"03009d036fde1c36b9348ac45cefa3389194260c",class:"email__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("input",{key:"b2a9fd96ed301df5f1d7cf6f5a2a5b52f96ab189",id:`${this.name}__input`,type:"email",class:`email__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:i=>this.inputReference=i,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),s.h("small",{key:"edb17f53141a3406bfc657f80098b914044a8894",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};it.style=Vr;const Mr='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}',Pr=Mr,rt=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=i=>{this.value=i.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i;if(this.inputReference.validity.patternMismatch){const r=(t=this.validation.custom.find(e=>e.rule==="regex"))===null||t===void 0?void 0:t.errorKey,a=(i=this.validation.custom.find(e=>e.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return x.translate(`${r}`,this.language)?x.translate(`${r}`,this.language):a}if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return x.translate("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"841265bba6b75cc61a0eac1450c3f5aa5f917a2e",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("div",{key:"645c7817cf5a0bdc352de9d8c0698fde235aa6d3",class:"number__wrapper--flex"},s.h("label",{key:"3343cbbb8482b71cd152161a8d422f318f07f3fe",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"1f3341b2127095870610fc0e0b4b5d220c5d2e2c",class:"number__wrapper--relative"},this.tooltip&&s.h("img",{key:"8bbe2fe9f62347cbcd37b753d4a1b0718dc39091",class:"number__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("input",{key:"100401abdc33069f34e27e0807c9f31ddf7e42ec",ref:i=>this.inputReference=i,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${t}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),s.h("small",{key:"db1e0043bb9b6de2ad8e18f49f96152b9451b93c",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};rt.style=Pr;const Dr="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}",Er=Dr,at=class{constructor(t){s.registerInstance(this,t),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}validityStateHandler(t){this.sendValidityState.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(t){this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return s.h("fieldset",{key:"29ff8fcc910622397750532629ac0c202c9726ba",class:`radio__fieldset ${this.name}__input`,ref:t=>this.stylingContainer=t},s.h("legend",{key:"cdab5b331863f3d31aab50c1d95b5a8845d53329",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(t=>s.h("div",{class:"radio__wrapper"},s.h("input",{type:"radio",class:"radio__input",id:`${t.label}__input`,ref:i=>this.inputReference=i,value:t.value,name:this.name,required:this.validation.mandatory,onClick:i=>this.handleClick(i)}),s.h("label",{htmlFor:`${t.label}__input`},t.label))),s.h("small",{key:"bd6cd89510e7ace1348b391f3ce9ba334a03e695",class:"radio__error-message"},this.errorMessage),this.tooltip&&s.h("img",{key:"27036c51c89612dbb87e5248355d3a5466c49705",class:"radio__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};at.style=Er;const Sr='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__input>input{padding:5px 15px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}',Or=Sr,nt=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.touched=!1,this.handleChange=i=>{this.touched=!0;const r=i.target.value,a=this.options.find(e=>e.value.toLowerCase()===r.toLowerCase());a?this.value=a.value:this.value=r,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=i=>{this.value=i.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.displayedOptions=this.options.map(t=>({label:t.label,value:t.value.toUpperCase()}))}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const t=this.action.split(" ")[1];return this.getOptions(t).then(i=>{const r=Object.keys(i)[0];this.displayedOptions=i[r].map(a=>({label:a.Name,value:a.Alpha2Code}))})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue.toUpperCase(),this.valueHandler({name:this.name,value:this.value}))}getOptions(t){const i=new URL(t);return new Promise((r,a)=>{fetch(i.href).then(e=>e.json()).then(e=>{r(e)}).catch(e=>{console.error(e),a(e)})})}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"46061c64a7cb7dad5b2ca1cd38e27b2ea12e88ce",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("div",{key:"cebc0fad817eff49669c4df47d47a4d97c5db317",class:"select__wrapper--flex"},s.h("label",{key:"a5360d9342ca9c446bdff6b84a717aa47fa71a4f",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),s.h("div",{key:"78d699e2a57122dd74f4d414211b586d19f030e7",class:"select__wrapper--relative"},this.tooltip&&s.h("img",{key:"e6fb14604b078a0b0f284d9234262c76e4c581f8",class:"select__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("vaadin-combo-box",{key:"91c86ee20ee639ba0e4338ba5501621486c94fa4",name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",readOnly:this.autofilled,required:this.validation.mandatory,value:this.defaultValue,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleChange,onBlur:this.handleBlur}),s.h("small",{key:"18a6172cb9566f000d5f397d759eb95a06fbc7b4",class:"select__error-message"},this.errorMessage))}get element(){return s.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};nt.style=Or;const Ir='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.tel__wrapper--flex--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__prefix::part(toggle-button){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}',Hr=Ir,ot=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=i=>{this.phoneValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.touched=!0,this.errorMessage=this.setErrorMessage()},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.phoneValue=this.defaultValue.phone||null)}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const t=this.action.split(" ")[1];return this.getPhoneCodes(t).then(i=>{this.phoneCodesOptions=i.phoneCodes.map(r=>typeof r=="object"&&r.Prefix?{label:r.Prefix,value:r.Prefix}:{label:r,value:r})})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(t){const i=new URL(t);return new Promise((r,a)=>{fetch(i.href).then(e=>e.json()).then(e=>{r(e)}).catch(e=>{console.error(e),a(e)})})}handlePrefixInput(t){this.prefixValue=t.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i;if(this.inputReference.validity.patternMismatch){const r=(t=this.validation.custom.find(e=>e.rule==="regex"))===null||t===void 0?void 0:t.errorKey,a=(i=this.validation.custom.find(e=>e.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return x.translate(`${r}`,this.language)?x.translate(`${r}`,this.language):a}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return x.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"a5804fccd849a4e8f2deb346479fa782113ee4d8",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("div",{key:"403490057cb5a5ae95b850ee7e1350d354668566",class:"tel__wrapper--flex-label"},s.h("label",{key:"64c14d728022fdf959c7710fa1c35c8e340be0cc",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"14be3f2d3fd1352f4b69fee63399b03b99dd3338",class:"tel__wrapper--relative"},this.tooltip&&s.h("img",{key:"b7e3f1d243877bc0c8911894bf4a624fc647050e",class:"tel__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("div",{key:"43e55c0e386b59b3c86d59ca5919f95c387a2049",class:`tel__wrapper--flex ${t}`},s.h("vaadin-combo-box",{key:"9c7ba7049f325eeba05b6bfac98d10093a2342fc",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:i=>this.handlePrefixInput(i)}),s.h("input",{key:"24b4723063ce7724c2599979457986f315e7a687",type:"tel",ref:i=>this.inputReference=i,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:this.phoneValue,placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),s.h("small",{key:"d95f2dc869e4ba7ecfc7ff6b0122f5dad3c34f27",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};ot.style=Hr;const Fr='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}',Rr=Fr,st=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=i=>{this.value=i.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},500)},this.handleBlur=i=>{this.value=i.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleValidationChange(t){t.detail.field===this.name&&(this.validation=t.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()))}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.isValid=this.setValidity()}setValidity(){var t;return this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:((t=this.inputReference)===null||t===void 0?void 0:t.validity.valid)&&this.inputReference.value.match(this.validationPattern)!=null}setPattern(){var t,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i,r,a;if(this.inputReference.value.match(this.validationPattern)==null){const e=(t=this.validation.custom.find(n=>n.rule==="regex"))===null||t===void 0?void 0:t.errorKey,o=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return x.translate(`${e}`,this.language)||o}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return x.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const e=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorKey,o=(a=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||a===void 0?void 0:a.errorMessage;return x.translate(`${e}`,this.language)?x.translate(`${e}`,this.language):o}}renderTooltip(){return this.showTooltip?s.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"3050f7be1581f0cd5b5e1ce708a789b5e7a54b03",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:i=>this.stylingContainer=i},s.h("div",{key:"9dcc93fb8c091c599269454ab21c03c2380ffef7",class:"text__wrapper--flex"},s.h("label",{key:"0054347b1a4de17ea60b898783de0ef6b42233ee",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"b4655608e397f8d2a8179c01521756bf87746ace",class:"text__wrapper--relative"},this.tooltip&&s.h("img",{key:"c71c1ca1175d11ec352eca5cff216bb244aa7895",class:"text__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("input",{key:"2df3c181c5ca725e121c0878a10ca257da7cdd34",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:i=>this.inputReference=i,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),s.h("small",{key:"5785eb51774c9159e474fbdbd5be0c1ab2a57899",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};st.style=Rr;exports.checkbox_group_input=Le;exports.checkbox_input=$e;exports.date_input=tt;exports.email_input=it;exports.number_input=rt;exports.radio_input=at;exports.select_input=nt;exports.tel_input=ot;exports.text_input=st;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-9cd44522-B27p0GWo.cjs"),x=require("./locale-BB2iZ4t0.cjs"),B=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),dt='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));box-shadow:none}',ct=dt,Le=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.value=null,this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedValues=[]}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((t,i)=>(t[i.name]=this.selectedValues.includes(i.name),t),{}),this.emitValueHandler(!0)}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.selectedValues=this.options.map(t=>t.name),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}handleParentCheckbox(t){this.selectedValues=t.target.checked?this.options.map(i=>i.name):[]}renderLabel(){return s.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},s.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return s.h("div",{key:"4b966adce4d35ccfc4141acea9c8f26a46590b5d",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},s.h("div",{key:"82f139c6bacc6b29ffd47005546b47c33bb135eb",class:"checkboxgroup__wrapper--flex"},s.h("vaadin-checkbox",{key:"bf99c267f52fa57bd0af94d2465ad18b11079be5",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:t=>this.handleParentCheckbox(t)},this.renderLabel()),this.tooltip&&s.h("img",{key:"84ec417513f4d22534c7106bbef7be0797e42214",class:"checkboxgroup__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),s.h("small",{key:"526a1dc20a7c7d0322f959402ba359f0b6ef52e0",class:"checkboxgroup__error-message"},this.errorMessage),s.h("vaadin-checkbox-group",{key:"ac70eaa0923af84472b35b90f4127a173166a7ce",theme:"vertical",value:this.selectedValues,"on-value-changed":t=>{this.selectedValues=t.detail.value}},this.options.map(t=>s.h("vaadin-checkbox",{class:"checkbox__input",name:t.name,value:t.name,label:t.displayName}))))}get element(){return s.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};Le.style=ct;const ht='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.checkbox__label-text{font-size:16px}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}',ft=ht,$e=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.value="",this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleClick(){this.value=this.inputReference.checked.toString(),this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderLabel(){return s.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`},s.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?s.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return s.h("div",{key:"8c80c955bb052558165a4c5b1020d0582ed0af36",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},s.h("input",{key:"89401d543cb30b72ec614b0cd4e95b2e82b2522d",class:"checkbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.inputReference=t,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel(),s.h("small",{key:"d007d8c02dd014a363e2fcc1a0e8df6ffda34bcb",class:"checkbox__error-message"},this.errorMessage),s.h("div",{key:"c511c07684173359663d4907371efb82289f0433",class:"checkbox__wrapper--relative"},this.tooltip&&s.h("img",{key:"dd263ce86efd89f34078f3cc24729f43f40e89a6",class:"checkbox__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};$e.style=ft;function Q(t){"@babel/helpers - typeof";return Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Q(t)}function M(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function pt(t){return M(1,arguments),t instanceof Date||Q(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function E(t){M(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||Q(t)==="object"&&i==="[object Date]"?new Date(t.getTime()):typeof t=="number"||i==="[object Number]"?new Date(t):((typeof t=="string"||i==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function vt(t){if(M(1,arguments),!pt(t)&&typeof t!="number")return!1;var i=E(t);return!isNaN(Number(i))}function F(t){if(t===null||t===!0||t===!1)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function mt(t,i){M(2,arguments);var r=E(t).getTime(),a=F(i);return new Date(r+a)}function Ye(t,i){M(2,arguments);var r=F(i);return mt(t,-r)}var gt=864e5;function yt(t){M(1,arguments);var i=E(t),r=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var a=i.getTime(),e=r-a;return Math.floor(e/gt)+1}function ee(t){M(1,arguments);var i=1,r=E(t),a=r.getUTCDay(),e=(a<i?7:0)+a-i;return r.setUTCDate(r.getUTCDate()-e),r.setUTCHours(0,0,0,0),r}function qe(t){M(1,arguments);var i=E(t),r=i.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(r+1,0,4),a.setUTCHours(0,0,0,0);var e=ee(a),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var n=ee(o);return i.getTime()>=e.getTime()?r+1:i.getTime()>=n.getTime()?r:r-1}function bt(t){M(1,arguments);var i=qe(t),r=new Date(0);r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0);var a=ee(r);return a}var wt=6048e5;function Ae(t){M(1,arguments);var i=E(t),r=ee(i).getTime()-bt(i).getTime();return Math.round(r/wt)+1}var _t={};function te(){return _t}function Z(t,i){var r,a,e,o,n,l,c,h;M(1,arguments);var g=te(),y=F((r=(a=(e=(o=i==null?void 0:i.weekStartsOn)!==null&&o!==void 0?o:i==null||(n=i.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&e!==void 0?e:g.weekStartsOn)!==null&&a!==void 0?a:(c=g.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var C=E(t),T=C.getUTCDay(),S=(T<y?7:0)+T-y;return C.setUTCDate(C.getUTCDate()-S),C.setUTCHours(0,0,0,0),C}function _e(t,i){var r,a,e,o,n,l,c,h;M(1,arguments);var g=E(t),y=g.getUTCFullYear(),C=te(),T=F((r=(a=(e=(o=i==null?void 0:i.firstWeekContainsDate)!==null&&o!==void 0?o:i==null||(n=i.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&e!==void 0?e:C.firstWeekContainsDate)!==null&&a!==void 0?a:(c=C.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(y+1,0,T),S.setUTCHours(0,0,0,0);var $=Z(S,i),R=new Date(0);R.setUTCFullYear(y,0,T),R.setUTCHours(0,0,0,0);var N=Z(R,i);return g.getTime()>=$.getTime()?y+1:g.getTime()>=N.getTime()?y:y-1}function xt(t,i){var r,a,e,o,n,l,c,h;M(1,arguments);var g=te(),y=F((r=(a=(e=(o=i==null?void 0:i.firstWeekContainsDate)!==null&&o!==void 0?o:i==null||(n=i.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&e!==void 0?e:g.firstWeekContainsDate)!==null&&a!==void 0?a:(c=g.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&r!==void 0?r:1),C=_e(t,i),T=new Date(0);T.setUTCFullYear(C,0,y),T.setUTCHours(0,0,0,0);var S=Z(T,i);return S}var Tt=6048e5;function Ne(t,i){M(1,arguments);var r=E(t),a=Z(r,i).getTime()-xt(r,i).getTime();return Math.round(a/Tt)+1}function w(t,i){for(var r=t<0?"-":"",a=Math.abs(t).toString();a.length<i;)a="0"+a;return r+a}var kt={y:function(i,r){var a=i.getUTCFullYear(),e=a>0?a:1-a;return w(r==="yy"?e%100:e,r.length)},M:function(i,r){var a=i.getUTCMonth();return r==="M"?String(a+1):w(a+1,2)},d:function(i,r){return w(i.getUTCDate(),r.length)},a:function(i,r){var a=i.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(i,r){return w(i.getUTCHours()%12||12,r.length)},H:function(i,r){return w(i.getUTCHours(),r.length)},m:function(i,r){return w(i.getUTCMinutes(),r.length)},s:function(i,r){return w(i.getUTCSeconds(),r.length)},S:function(i,r){var a=r.length,e=i.getUTCMilliseconds(),o=Math.floor(e*Math.pow(10,a-3));return w(o,r.length)}};const j=kt;var J={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ct={G:function(i,r,a){var e=i.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return a.era(e,{width:"abbreviated"});case"GGGGG":return a.era(e,{width:"narrow"});case"GGGG":default:return a.era(e,{width:"wide"})}},y:function(i,r,a){if(r==="yo"){var e=i.getUTCFullYear(),o=e>0?e:1-e;return a.ordinalNumber(o,{unit:"year"})}return j.y(i,r)},Y:function(i,r,a,e){var o=_e(i,e),n=o>0?o:1-o;if(r==="YY"){var l=n%100;return w(l,2)}return r==="Yo"?a.ordinalNumber(n,{unit:"year"}):w(n,r.length)},R:function(i,r){var a=qe(i);return w(a,r.length)},u:function(i,r){var a=i.getUTCFullYear();return w(a,r.length)},Q:function(i,r,a){var e=Math.ceil((i.getUTCMonth()+1)/3);switch(r){case"Q":return String(e);case"QQ":return w(e,2);case"Qo":return a.ordinalNumber(e,{unit:"quarter"});case"QQQ":return a.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(e,{width:"wide",context:"formatting"})}},q:function(i,r,a){var e=Math.ceil((i.getUTCMonth()+1)/3);switch(r){case"q":return String(e);case"qq":return w(e,2);case"qo":return a.ordinalNumber(e,{unit:"quarter"});case"qqq":return a.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(e,{width:"wide",context:"standalone"})}},M:function(i,r,a){var e=i.getUTCMonth();switch(r){case"M":case"MM":return j.M(i,r);case"Mo":return a.ordinalNumber(e+1,{unit:"month"});case"MMM":return a.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(e,{width:"wide",context:"formatting"})}},L:function(i,r,a){var e=i.getUTCMonth();switch(r){case"L":return String(e+1);case"LL":return w(e+1,2);case"Lo":return a.ordinalNumber(e+1,{unit:"month"});case"LLL":return a.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(e,{width:"wide",context:"standalone"})}},w:function(i,r,a,e){var o=Ne(i,e);return r==="wo"?a.ordinalNumber(o,{unit:"week"}):w(o,r.length)},I:function(i,r,a){var e=Ae(i);return r==="Io"?a.ordinalNumber(e,{unit:"week"}):w(e,r.length)},d:function(i,r,a){return r==="do"?a.ordinalNumber(i.getUTCDate(),{unit:"date"}):j.d(i,r)},D:function(i,r,a){var e=yt(i);return r==="Do"?a.ordinalNumber(e,{unit:"dayOfYear"}):w(e,r.length)},E:function(i,r,a){var e=i.getUTCDay();switch(r){case"E":case"EE":case"EEE":return a.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(e,{width:"short",context:"formatting"});case"EEEE":default:return a.day(e,{width:"wide",context:"formatting"})}},e:function(i,r,a,e){var o=i.getUTCDay(),n=(o-e.weekStartsOn+8)%7||7;switch(r){case"e":return String(n);case"ee":return w(n,2);case"eo":return a.ordinalNumber(n,{unit:"day"});case"eee":return a.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})}},c:function(i,r,a,e){var o=i.getUTCDay(),n=(o-e.weekStartsOn+8)%7||7;switch(r){case"c":return String(n);case"cc":return w(n,r.length);case"co":return a.ordinalNumber(n,{unit:"day"});case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})}},i:function(i,r,a){var e=i.getUTCDay(),o=e===0?7:e;switch(r){case"i":return String(o);case"ii":return w(o,r.length);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return a.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(e,{width:"short",context:"formatting"});case"iiii":default:return a.day(e,{width:"wide",context:"formatting"})}},a:function(i,r,a){var e=i.getUTCHours(),o=e/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(i,r,a){var e=i.getUTCHours(),o;switch(e===12?o=J.noon:e===0?o=J.midnight:o=e/12>=1?"pm":"am",r){case"b":case"bb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(i,r,a){var e=i.getUTCHours(),o;switch(e>=17?o=J.evening:e>=12?o=J.afternoon:e>=4?o=J.morning:o=J.night,r){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(i,r,a){if(r==="ho"){var e=i.getUTCHours()%12;return e===0&&(e=12),a.ordinalNumber(e,{unit:"hour"})}return j.h(i,r)},H:function(i,r,a){return r==="Ho"?a.ordinalNumber(i.getUTCHours(),{unit:"hour"}):j.H(i,r)},K:function(i,r,a){var e=i.getUTCHours()%12;return r==="Ko"?a.ordinalNumber(e,{unit:"hour"}):w(e,r.length)},k:function(i,r,a){var e=i.getUTCHours();return e===0&&(e=24),r==="ko"?a.ordinalNumber(e,{unit:"hour"}):w(e,r.length)},m:function(i,r,a){return r==="mo"?a.ordinalNumber(i.getUTCMinutes(),{unit:"minute"}):j.m(i,r)},s:function(i,r,a){return r==="so"?a.ordinalNumber(i.getUTCSeconds(),{unit:"second"}):j.s(i,r)},S:function(i,r){return j.S(i,r)},X:function(i,r,a,e){var o=e._originalDate||i,n=o.getTimezoneOffset();if(n===0)return"Z";switch(r){case"X":return Oe(n);case"XXXX":case"XX":return K(n);case"XXXXX":case"XXX":default:return K(n,":")}},x:function(i,r,a,e){var o=e._originalDate||i,n=o.getTimezoneOffset();switch(r){case"x":return Oe(n);case"xxxx":case"xx":return K(n);case"xxxxx":case"xxx":default:return K(n,":")}},O:function(i,r,a,e){var o=e._originalDate||i,n=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Se(n,":");case"OOOO":default:return"GMT"+K(n,":")}},z:function(i,r,a,e){var o=e._originalDate||i,n=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Se(n,":");case"zzzz":default:return"GMT"+K(n,":")}},t:function(i,r,a,e){var o=e._originalDate||i,n=Math.floor(o.getTime()/1e3);return w(n,r.length)},T:function(i,r,a,e){var o=e._originalDate||i,n=o.getTime();return w(n,r.length)}};function Se(t,i){var r=t>0?"-":"+",a=Math.abs(t),e=Math.floor(a/60),o=a%60;if(o===0)return r+String(e);var n=i;return r+String(e)+n+w(o,2)}function Oe(t,i){if(t%60===0){var r=t>0?"-":"+";return r+w(Math.abs(t)/60,2)}return K(t,i)}function K(t,i){var r=i||"",a=t>0?"-":"+",e=Math.abs(t),o=w(Math.floor(e/60),2),n=w(e%60,2);return a+o+r+n}const Vt=Ct;var Ie=function(i,r){switch(i){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},We=function(i,r){switch(i){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Mt=function(i,r){var a=i.match(/(P+)(p+)?/)||[],e=a[1],o=a[2];if(!o)return Ie(i,r);var n;switch(e){case"P":n=r.dateTime({width:"short"});break;case"PP":n=r.dateTime({width:"medium"});break;case"PPP":n=r.dateTime({width:"long"});break;case"PPPP":default:n=r.dateTime({width:"full"});break}return n.replace("{{date}}",Ie(e,r)).replace("{{time}}",We(o,r))},Pt={p:We,P:Mt};const be=Pt;function Qe(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}var Dt=["D","DD"],Et=["YY","YYYY"];function Be(t){return Dt.indexOf(t)!==-1}function ze(t){return Et.indexOf(t)!==-1}function he(t,i,r){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var St={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ot=function(i,r,a){var e,o=St[i];return typeof o=="string"?e=o:r===1?e=o.one:e=o.other.replace("{{count}}",r.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+e:e+" ago":e};const It=Ot;function ye(t){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.width?String(i.width):t.defaultWidth,a=t.formats[r]||t.formats[t.defaultWidth];return a}}var Ht={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ft={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ut={date:ye({formats:Ht,defaultWidth:"full"}),time:ye({formats:Ft,defaultWidth:"full"}),dateTime:ye({formats:Rt,defaultWidth:"full"})};const Lt=Ut;var $t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Yt=function(i,r,a,e){return $t[i]};const qt=Yt;function oe(t){return function(i,r){var a=r!=null&&r.context?String(r.context):"standalone",e;if(a==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,n=r!=null&&r.width?String(r.width):o;e=t.formattingValues[n]||t.formattingValues[o]}else{var l=t.defaultWidth,c=r!=null&&r.width?String(r.width):t.defaultWidth;e=t.values[c]||t.values[l]}var h=t.argumentCallback?t.argumentCallback(i):i;return e[h]}}var At={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Nt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Qt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Bt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},zt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Gt=function(i,r){var a=Number(i),e=a%100;if(e>20||e<10)switch(e%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},jt={ordinalNumber:Gt,era:oe({values:At,defaultWidth:"wide"}),quarter:oe({values:Nt,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:oe({values:Wt,defaultWidth:"wide"}),day:oe({values:Qt,defaultWidth:"wide"}),dayPeriod:oe({values:Bt,defaultWidth:"wide",formattingValues:zt,defaultFormattingWidth:"wide"})};const Xt=jt;function se(t){return function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.width,e=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],o=i.match(e);if(!o)return null;var n=o[0],l=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?Zt(l,function(y){return y.test(n)}):Kt(l,function(y){return y.test(n)}),h;h=t.valueCallback?t.valueCallback(c):c,h=r.valueCallback?r.valueCallback(h):h;var g=i.slice(n.length);return{value:h,rest:g}}}function Kt(t,i){for(var r in t)if(t.hasOwnProperty(r)&&i(t[r]))return r}function Zt(t,i){for(var r=0;r<t.length;r++)if(i(t[r]))return r}function Jt(t){return function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.match(t.matchPattern);if(!a)return null;var e=a[0],o=i.match(t.parsePattern);if(!o)return null;var n=t.valueCallback?t.valueCallback(o[0]):o[0];n=r.valueCallback?r.valueCallback(n):n;var l=i.slice(e.length);return{value:n,rest:l}}}var ei=/^(\d+)(th|st|nd|rd)?/i,ti=/\d+/i,ii={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ri={any:[/^b/i,/^(a|c)/i]},ai={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ni={any:[/1/i,/2/i,/3/i,/4/i]},oi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},si={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},li={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ui={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},di={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ci={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},hi={ordinalNumber:Jt({matchPattern:ei,parsePattern:ti,valueCallback:function(i){return parseInt(i,10)}}),era:se({matchPatterns:ii,defaultMatchWidth:"wide",parsePatterns:ri,defaultParseWidth:"any"}),quarter:se({matchPatterns:ai,defaultMatchWidth:"wide",parsePatterns:ni,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:se({matchPatterns:oi,defaultMatchWidth:"wide",parsePatterns:si,defaultParseWidth:"any"}),day:se({matchPatterns:li,defaultMatchWidth:"wide",parsePatterns:ui,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:di,defaultMatchWidth:"any",parsePatterns:ci,defaultParseWidth:"any"})};const fi=hi;var pi={code:"en-US",formatDistance:It,formatLong:Lt,formatRelative:qt,localize:Xt,match:fi,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ge=pi;var vi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gi=/^'([^]*?)'?$/,yi=/''/g,bi=/[a-zA-Z]/;function wi(t,i,r){var a,e,o,n,l,c,h,g,y,C,T,S,$,R;M(2,arguments);var N=String(i),H=te(),Y=(a=(e=void 0)!==null&&e!==void 0?e:H.locale)!==null&&a!==void 0?a:Ge,W=F((o=(n=(l=(c=void 0)!==null&&c!==void 0?c:void 0)!==null&&l!==void 0?l:H.firstWeekContainsDate)!==null&&n!==void 0?n:(h=H.locale)===null||h===void 0||(g=h.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=F((y=(C=(T=(S=void 0)!==null&&S!==void 0?S:void 0)!==null&&T!==void 0?T:H.weekStartsOn)!==null&&C!==void 0?C:($=H.locale)===null||$===void 0||(R=$.options)===null||R===void 0?void 0:R.weekStartsOn)!==null&&y!==void 0?y:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Y.localize)throw new RangeError("locale must contain localize property");if(!Y.formatLong)throw new RangeError("locale must contain formatLong property");var G=E(t);if(!vt(G))throw new RangeError("Invalid time value");var ie=Qe(G),re=Ye(G,ie),ae={firstWeekContainsDate:W,weekStartsOn:z,locale:Y,_originalDate:G},ve=N.match(mi).map(function(I){var U=I[0];if(U==="p"||U==="P"){var X=be[U];return X(I,Y.formatLong)}return I}).join("").match(vi).map(function(I){if(I==="''")return"'";var U=I[0];if(U==="'")return _i(I);var X=Vt[U];if(X)return ze(I)&&he(I,i,String(t)),Be(I)&&he(I,i,String(t)),X(re,I,Y.localize,ae);if(U.match(bi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+U+"`");return I}).join("");return ve}function _i(t){var i=t.match(gi);return i?i[1].replace(yi,"'"):t}function He(t,i){(i==null||i>t.length)&&(i=t.length);for(var r=0,a=Array(i);r<i;r++)a[r]=t[r];return a}function xi(t,i){if(t){if(typeof t=="string")return He(t,i);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?He(t,i):void 0}}function Fe(t,i){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=xi(t))||i){r&&(t=r);var a=0,e=function(){};return{s:e,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(h){throw h},f:e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,n=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var h=r.next();return n=h.done,h},e:function(h){l=!0,o=h},f:function(){try{n||r.return==null||r.return()}finally{if(l)throw o}}}}function Ti(t,i){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}function d(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function we(t,i){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},we(t,i)}function v(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&we(t,i)}function fe(t){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},fe(t)}function je(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(je=function(){return!!t})()}function ki(t,i){if(i&&(Q(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}function m(t){var i=je();return function(){var r,a=fe(t);if(i){var e=fe(this).constructor;r=Reflect.construct(a,arguments,e)}else r=a.apply(this,arguments);return ki(this,r)}}function f(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function Ci(t,i){if(Q(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,i);if(Q(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(t)}function Xe(t){var i=Ci(t,"string");return Q(i)=="symbol"?i:i+""}function Vi(t,i){for(var r=0;r<i.length;r++){var a=i[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,Xe(a.key),a)}}function p(t,i,r){return i&&Vi(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,i,r){return(i=Xe(i))in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}var Mi=10,Ke=function(){function t(){f(this,t),u(this,"priority",void 0),u(this,"subPriority",0)}return p(t,[{key:"validate",value:function(r,a){return!0}}]),t}(),Pi=function(t){v(r,t);var i=m(r);function r(a,e,o,n,l){var c;return f(this,r),c=i.call(this),c.value=a,c.validateValue=e,c.setValue=o,c.priority=n,l&&(c.subPriority=l),c}return p(r,[{key:"validate",value:function(e,o){return this.validateValue(e,this.value,o)}},{key:"set",value:function(e,o,n){return this.setValue(e,o,this.value,n)}}]),r}(Ke),Di=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",Mi),u(d(a),"subPriority",-1),a}return p(r,[{key:"set",value:function(e,o){if(o.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),r}(Ke),b=function(){function t(){f(this,t),u(this,"incompatibleTokens",void 0),u(this,"priority",void 0),u(this,"subPriority",void 0)}return p(t,[{key:"run",value:function(r,a,e,o){var n=this.parse(r,a,e,o);return n?{setter:new Pi(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(r,a,e){return!0}}]),t}(),Ei=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",140),u(d(a),"incompatibleTokens",["R","u","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,o,n){return o.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(b),Si=6e4,Oi=36e5,Ii=1e3,P={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},q={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function D(t,i){return t&&{value:i(t.value),rest:t.rest}}function k(t,i){var r=i.match(t);return r?{value:parseInt(r[0],10),rest:i.slice(r[0].length)}:null}function A(t,i){var r=i.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:i.slice(1)};var a=r[1]==="+"?1:-1,e=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,n=r[5]?parseInt(r[5],10):0;return{value:a*(e*Oi+o*Si+n*Ii),rest:i.slice(r[0].length)}}function Ze(t){return k(P.anyDigitsSigned,t)}function V(t,i){switch(t){case 1:return k(P.singleDigit,i);case 2:return k(P.twoDigits,i);case 3:return k(P.threeDigits,i);case 4:return k(P.fourDigits,i);default:return k(new RegExp("^\\d{1,"+t+"}"),i)}}function pe(t,i){switch(t){case 1:return k(P.singleDigitSigned,i);case 2:return k(P.twoDigitsSigned,i);case 3:return k(P.threeDigitsSigned,i);case 4:return k(P.fourDigitsSigned,i);default:return k(new RegExp("^-?\\d{1,"+t+"}"),i)}}function xe(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Je(t,i){var r=i>0,a=r?i:1-i,e;if(a<=50)e=t||100;else{var o=a+50,n=Math.floor(o/100)*100,l=t>=o%100;e=t+n-(l?100:0)}return r?e:1-e}function et(t){return t%400===0||t%4===0&&t%100!==0}var Hi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",130),u(d(a),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){var l=function(h){return{year:h,isTwoDigitYear:o==="yy"}};switch(o){case"y":return D(V(4,e),l);case"yo":return D(n.ordinalNumber(e,{unit:"year"}),l);default:return D(V(o.length,e),l)}}},{key:"validate",value:function(e,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(e,o,n){var l=e.getUTCFullYear();if(n.isTwoDigitYear){var c=Je(n.year,l);return e.setUTCFullYear(c,0,1),e.setUTCHours(0,0,0,0),e}var h=!("era"in o)||o.era===1?n.year:1-n.year;return e.setUTCFullYear(h,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(b),Fi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",130),u(d(a),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){var l=function(h){return{year:h,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return D(V(4,e),l);case"Yo":return D(n.ordinalNumber(e,{unit:"year"}),l);default:return D(V(o.length,e),l)}}},{key:"validate",value:function(e,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(e,o,n,l){var c=_e(e,l);if(n.isTwoDigitYear){var h=Je(n.year,c);return e.setUTCFullYear(h,0,l.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Z(e,l)}var g=!("era"in o)||o.era===1?n.year:1-n.year;return e.setUTCFullYear(g,0,l.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Z(e,l)}}]),r}(b),Ri=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",130),u(d(a),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o){return pe(o==="R"?4:o.length,e)}},{key:"set",value:function(e,o,n){var l=new Date(0);return l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0),ee(l)}}]),r}(b),Ui=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",130),u(d(a),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o){return pe(o==="u"?4:o.length,e)}},{key:"set",value:function(e,o,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(b),Li=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",120),u(d(a),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"Q":case"QQ":return V(o.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,o){return o>=1&&o<=4}},{key:"set",value:function(e,o,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),r}(b),$i=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",120),u(d(a),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"q":case"qq":return V(o.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,o){return o>=1&&o<=4}},{key:"set",value:function(e,o,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),r}(b),Yi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),u(d(a),"priority",110),a}return p(r,[{key:"parse",value:function(e,o,n){var l=function(h){return h-1};switch(o){case"M":return D(k(P.month,e),l);case"MM":return D(V(2,e),l);case"Mo":return D(n.ordinalNumber(e,{unit:"month"}),l);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=11}},{key:"set",value:function(e,o,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),r}(b),qi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",110),u(d(a),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){var l=function(h){return h-1};switch(o){case"L":return D(k(P.month,e),l);case"LL":return D(V(2,e),l);case"Lo":return D(n.ordinalNumber(e,{unit:"month"}),l);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=11}},{key:"set",value:function(e,o,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),r}(b);function Ai(t,i,r){M(2,arguments);var a=E(t),e=F(i),o=Ne(a,r)-e;return a.setUTCDate(a.getUTCDate()-o*7),a}var Ni=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",100),u(d(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"w":return k(P.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=1&&o<=53}},{key:"set",value:function(e,o,n,l){return Z(Ai(e,n,l),l)}}]),r}(b);function Wi(t,i){M(2,arguments);var r=E(t),a=F(i),e=Ae(r)-a;return r.setUTCDate(r.getUTCDate()-e*7),r}var Qi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",100),u(d(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"I":return k(P.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=1&&o<=53}},{key:"set",value:function(e,o,n){return ee(Wi(e,n))}}]),r}(b),Bi=[31,28,31,30,31,30,31,31,30,31,30,31],zi=[31,29,31,30,31,30,31,31,30,31,30,31],Gi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",90),u(d(a),"subPriority",1),u(d(a),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"d":return k(P.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){var n=e.getUTCFullYear(),l=et(n),c=e.getUTCMonth();return l?o>=1&&o<=zi[c]:o>=1&&o<=Bi[c]}},{key:"set",value:function(e,o,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),r}(b),ji=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",90),u(d(a),"subpriority",1),u(d(a),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"D":case"DD":return k(P.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){var n=e.getUTCFullYear(),l=et(n);return l?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(e,o,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),r}(b);function Te(t,i,r){var a,e,o,n,l,c,h,g;M(2,arguments);var y=te(),C=F((a=(e=(o=(n=r==null?void 0:r.weekStartsOn)!==null&&n!==void 0?n:r==null||(l=r.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&o!==void 0?o:y.weekStartsOn)!==null&&e!==void 0?e:(h=y.locale)===null||h===void 0||(g=h.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&a!==void 0?a:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var T=E(t),S=F(i),$=T.getUTCDay(),R=S%7,N=(R+7)%7,H=(N<C?7:0)+S-$;return T.setUTCDate(T.getUTCDate()+H),T}var Xi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",90),u(d(a),"incompatibleTokens",["D","i","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=6}},{key:"set",value:function(e,o,n,l){return e=Te(e,n,l),e.setUTCHours(0,0,0,0),e}}]),r}(b),Ki=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",90),u(d(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n,l){var c=function(g){var y=Math.floor((g-1)/7)*7;return(g+l.weekStartsOn+6)%7+y};switch(o){case"e":case"ee":return D(V(o.length,e),c);case"eo":return D(n.ordinalNumber(e,{unit:"day"}),c);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=6}},{key:"set",value:function(e,o,n,l){return e=Te(e,n,l),e.setUTCHours(0,0,0,0),e}}]),r}(b),Zi=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",90),u(d(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n,l){var c=function(g){var y=Math.floor((g-1)/7)*7;return(g+l.weekStartsOn+6)%7+y};switch(o){case"c":case"cc":return D(V(o.length,e),c);case"co":return D(n.ordinalNumber(e,{unit:"day"}),c);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=6}},{key:"set",value:function(e,o,n,l){return e=Te(e,n,l),e.setUTCHours(0,0,0,0),e}}]),r}(b);function Ji(t,i){M(2,arguments);var r=F(i);r%7===0&&(r=r-7);var a=1,e=E(t),o=e.getUTCDay(),n=r%7,l=(n+7)%7,c=(l<a?7:0)+r-o;return e.setUTCDate(e.getUTCDate()+c),e}var er=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",90),u(d(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){var l=function(h){return h===0?7:h};switch(o){case"i":case"ii":return V(o.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return D(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),l);case"iiiii":return D(n.day(e,{width:"narrow",context:"formatting"}),l);case"iiiiii":return D(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),l);case"iiii":default:return D(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(e,o){return o>=1&&o<=7}},{key:"set",value:function(e,o,n){return e=Ji(e,n),e.setUTCHours(0,0,0,0),e}}]),r}(b),tr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",80),u(d(a),"incompatibleTokens",["b","B","H","k","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,o,n){return e.setUTCHours(xe(n),0,0,0),e}}]),r}(b),ir=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",80),u(d(a),"incompatibleTokens",["a","B","H","k","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,o,n){return e.setUTCHours(xe(n),0,0,0),e}}]),r}(b),rr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",80),u(d(a),"incompatibleTokens",["a","b","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,o,n){return e.setUTCHours(xe(n),0,0,0),e}}]),r}(b),ar=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",70),u(d(a),"incompatibleTokens",["H","K","k","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"h":return k(P.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=1&&o<=12}},{key:"set",value:function(e,o,n){var l=e.getUTCHours()>=12;return l&&n<12?e.setUTCHours(n+12,0,0,0):!l&&n===12?e.setUTCHours(0,0,0,0):e.setUTCHours(n,0,0,0),e}}]),r}(b),nr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",70),u(d(a),"incompatibleTokens",["a","b","h","K","k","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"H":return k(P.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=0&&o<=23}},{key:"set",value:function(e,o,n){return e.setUTCHours(n,0,0,0),e}}]),r}(b),or=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",70),u(d(a),"incompatibleTokens",["h","H","k","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"K":return k(P.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=0&&o<=11}},{key:"set",value:function(e,o,n){var l=e.getUTCHours()>=12;return l&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),r}(b),sr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",70),u(d(a),"incompatibleTokens",["a","b","h","H","K","t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"k":return k(P.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=1&&o<=24}},{key:"set",value:function(e,o,n){var l=n<=24?n%24:n;return e.setUTCHours(l,0,0,0),e}}]),r}(b),lr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",60),u(d(a),"incompatibleTokens",["t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"m":return k(P.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=0&&o<=59}},{key:"set",value:function(e,o,n){return e.setUTCMinutes(n,0,0),e}}]),r}(b),ur=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",50),u(d(a),"incompatibleTokens",["t","T"]),a}return p(r,[{key:"parse",value:function(e,o,n){switch(o){case"s":return k(P.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=0&&o<=59}},{key:"set",value:function(e,o,n){return e.setUTCSeconds(n,0),e}}]),r}(b),dr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",30),u(d(a),"incompatibleTokens",["t","T"]),a}return p(r,[{key:"parse",value:function(e,o){var n=function(c){return Math.floor(c*Math.pow(10,-o.length+3))};return D(V(o.length,e),n)}},{key:"set",value:function(e,o,n){return e.setUTCMilliseconds(n),e}}]),r}(b),cr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",10),u(d(a),"incompatibleTokens",["t","T","x"]),a}return p(r,[{key:"parse",value:function(e,o){switch(o){case"X":return A(q.basicOptionalMinutes,e);case"XX":return A(q.basic,e);case"XXXX":return A(q.basicOptionalSeconds,e);case"XXXXX":return A(q.extendedOptionalSeconds,e);case"XXX":default:return A(q.extended,e)}}},{key:"set",value:function(e,o,n){return o.timestampIsSet?e:new Date(e.getTime()-n)}}]),r}(b),hr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",10),u(d(a),"incompatibleTokens",["t","T","X"]),a}return p(r,[{key:"parse",value:function(e,o){switch(o){case"x":return A(q.basicOptionalMinutes,e);case"xx":return A(q.basic,e);case"xxxx":return A(q.basicOptionalSeconds,e);case"xxxxx":return A(q.extendedOptionalSeconds,e);case"xxx":default:return A(q.extended,e)}}},{key:"set",value:function(e,o,n){return o.timestampIsSet?e:new Date(e.getTime()-n)}}]),r}(b),fr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",40),u(d(a),"incompatibleTokens","*"),a}return p(r,[{key:"parse",value:function(e){return Ze(e)}},{key:"set",value:function(e,o,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),r}(b),pr=function(t){v(r,t);var i=m(r);function r(){var a;f(this,r);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return a=i.call.apply(i,[this].concat(o)),u(d(a),"priority",20),u(d(a),"incompatibleTokens","*"),a}return p(r,[{key:"parse",value:function(e){return Ze(e)}},{key:"set",value:function(e,o,n){return[new Date(n),{timestampIsSet:!0}]}}]),r}(b),vr={G:new Ei,y:new Hi,Y:new Fi,R:new Ri,u:new Ui,Q:new Li,q:new $i,M:new Yi,L:new qi,w:new Ni,I:new Qi,d:new Gi,D:new ji,E:new Xi,e:new Ki,c:new Zi,i:new er,a:new tr,b:new ir,B:new rr,h:new ar,H:new nr,K:new or,k:new sr,m:new lr,s:new ur,S:new dr,X:new cr,x:new hr,t:new fr,T:new pr},mr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yr=/^'([^]*?)'?$/,br=/''/g,wr=/\S/,_r=/[a-zA-Z]/;function ce(t,i,r,a){var e,o,n,l,c,h,g,y,C,T,S,$,R,N;M(3,arguments);var H=String(t),Y=String(i),W=te(),z=(e=(o=void 0)!==null&&o!==void 0?o:W.locale)!==null&&e!==void 0?e:Ge;if(!z.match)throw new RangeError("locale must contain match property");var G=F((n=(l=(c=(h=void 0)!==null&&h!==void 0?h:void 0)!==null&&c!==void 0?c:W.firstWeekContainsDate)!==null&&l!==void 0?l:(g=W.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(G>=1&&G<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ie=F((C=(T=(S=($=void 0)!==null&&$!==void 0?$:void 0)!==null&&S!==void 0?S:W.weekStartsOn)!==null&&T!==void 0?T:(R=W.locale)===null||R===void 0||(N=R.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&C!==void 0?C:0);if(!(ie>=0&&ie<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(Y==="")return H===""?E(r):new Date(NaN);var re={firstWeekContainsDate:G,weekStartsOn:ie,locale:z},ae=[new Di],ve=Y.match(gr).map(function(O){var _=O[0];if(_ in be){var L=be[_];return L(O,z.formatLong)}return O}).join("").match(mr),I=[],U=Fe(ve),X;try{var lt=function(){var _=X.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&ze(_)&&he(_,Y,t),!(a!=null&&a.useAdditionalDayOfYearTokens)&&Be(_)&&he(_,Y,t);var L=_[0],de=vr[L];if(de){var Pe=de.incompatibleTokens;if(Array.isArray(Pe)){var De=I.find(function(Ee){return Pe.includes(Ee.token)||Ee.token===L});if(De)throw new RangeError("The format string mustn't contain `".concat(De.fullToken,"` and `").concat(_,"` at the same time"))}else if(de.incompatibleTokens==="*"&&I.length>0)throw new RangeError("The format string mustn't contain `".concat(_,"` and any other token at the same time"));I.push({token:L,fullToken:_});var ge=de.run(H,_,z.match,re);if(!ge)return{v:new Date(NaN)};ae.push(ge.setter),H=ge.rest}else{if(L.match(_r))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");if(_==="''"?_="'":L==="'"&&(_=xr(_)),H.indexOf(_)===0)H=H.slice(_.length);else return{v:new Date(NaN)}}};for(U.s();!(X=U.n()).done;){var ke=lt();if(Q(ke)==="object")return ke.v}}catch(O){U.e(O)}finally{U.f()}if(H.length>0&&wr.test(H))return new Date(NaN);var ut=ae.map(function(O){return O.priority}).sort(function(O,_){return _-O}).filter(function(O,_,L){return L.indexOf(O)===_}).map(function(O){return ae.filter(function(_){return _.priority===O}).sort(function(_,L){return L.subPriority-_.subPriority})}).map(function(O){return O[0]}),me=E(r);if(isNaN(me.getTime()))return new Date(NaN);var ne=Ye(me,Qe(me)),Ce={},le=Fe(ut),Ve;try{for(le.s();!(Ve=le.n()).done;){var Me=Ve.value;if(!Me.validate(ne,re))return new Date(NaN);var ue=Me.set(ne,Ce,re);Array.isArray(ue)?(ne=ue[0],Ti(Ce,ue[1])):ne=ue}}catch(O){le.e(O)}finally{le.f()}return ne}function xr(t){return t.match(yr)[1].replace(br,"'")}function Re(t,i){M(2,arguments);var r=E(t),a=E(i);return r.getTime()>a.getTime()}function Ue(t,i){M(2,arguments);var r=E(t),a=E(i);return r.getTime()<a.getTime()}const Tr='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:rgba(204, 0, 0, 0.7019607843)}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}',kr=Tr,tt=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=i=>{const{year:r,month:a,day:e}=i,o=new Date(r,a,e);return wi(o,this.dateFormat||"yyyy-MM-dd")},this.parseDate=i=>{const r=ce(i,this.dateFormat||"yyyy-MM-dd",new Date);return{year:r.getFullYear(),month:r.getMonth(),day:r.getDate()}},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat=void 0,this.emitOnClick=!1,this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var t,i;this.minDate=ce(((t=this.validation.min)===null||t===void 0?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=ce(((i=this.validation.max)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const t=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');t&&t.addEventListener("click",()=>this.handleCalendarIconClick())}this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(t){this.value=t.target.value,this.touched=!0,this.valueAsDate=ce(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return Ue(this.valueAsDate,this.minDate)||Re(this.valueAsDate,this.maxDate)?!1:this.inputReference.validity.valid}setErrorMessage(){if(Ue(this.valueAsDate,this.minDate)||Re(this.valueAsDate,this.maxDate))return x.translate("dateError2",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return x.translate("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"e20d8db3b90253a7719c4b25a33a201a72ec2cc9",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("label",{key:"08847fd59e35a6690bf5e6b0882745c8f904388b",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),s.h("vaadin-date-picker",{key:"aaf1d2d8c53c993fd13e4701e5dd7e0ad9fcf442",id:`${this.name}__input`,type:"date",class:`date__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:i=>this.handleInput(i),onBlur:this.handleBlur}),s.h("small",{key:"34f1dcfba1bbe0939d4b1de450cb9d19f99266dd",class:"date__error-message"},this.errorMessage),this.tooltip&&s.h("img",{key:"3de20db5b37aa321ab0ef71b7a758ee615613053",class:"date__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return s.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};tt.style=kr;const Cr='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}',Vr=Cr,it=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=i=>{this.value=i.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i,r,a;if(this.inputReference.validity.patternMismatch){const e=(t=this.validation.custom.find(n=>n.rule==="regex"))===null||t===void 0?void 0:t.errorKey,o=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return x.translate(`${e}`,this.language)?x.translate(`${e}`,this.language):o}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return x.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const e=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorKey,o=(a=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||a===void 0?void 0:a.errorMessage;return x.translate(`${e}`,this.language)?x.translate(`${e}`,this.language):o}}renderTooltip(){return this.showTooltip?s.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"a46093cfafc840d2fd563ee9676ccd2f16fb1620",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("div",{key:"2eab4a96efc36cdb94e9f92b2a161e208f0ebcd4",class:"email__wrapper--flex"},s.h("label",{key:"f5ed857f61ea6763c5fe88590732258b4dedac1b",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"58cadc7857cd91dec968852be71e0108f55fbda7",class:"email__wrapper--relative"},this.tooltip&&s.h("img",{key:"03009d036fde1c36b9348ac45cefa3389194260c",class:"email__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("input",{key:"b2a9fd96ed301df5f1d7cf6f5a2a5b52f96ab189",id:`${this.name}__input`,type:"email",class:`email__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:i=>this.inputReference=i,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),s.h("small",{key:"edb17f53141a3406bfc657f80098b914044a8894",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};it.style=Vr;const Mr='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}',Pr=Mr,rt=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=i=>{this.value=i.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i;if(this.inputReference.validity.patternMismatch){const r=(t=this.validation.custom.find(e=>e.rule==="regex"))===null||t===void 0?void 0:t.errorKey,a=(i=this.validation.custom.find(e=>e.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return x.translate(`${r}`,this.language)?x.translate(`${r}`,this.language):a}if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return x.translate("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"841265bba6b75cc61a0eac1450c3f5aa5f917a2e",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("div",{key:"645c7817cf5a0bdc352de9d8c0698fde235aa6d3",class:"number__wrapper--flex"},s.h("label",{key:"3343cbbb8482b71cd152161a8d422f318f07f3fe",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"1f3341b2127095870610fc0e0b4b5d220c5d2e2c",class:"number__wrapper--relative"},this.tooltip&&s.h("img",{key:"8bbe2fe9f62347cbcd37b753d4a1b0718dc39091",class:"number__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("input",{key:"100401abdc33069f34e27e0807c9f31ddf7e42ec",ref:i=>this.inputReference=i,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${t}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),s.h("small",{key:"db1e0043bb9b6de2ad8e18f49f96152b9451b93c",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};rt.style=Pr;const Dr="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}",Er=Dr,at=class{constructor(t){s.registerInstance(this,t),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}validityStateHandler(t){this.sendValidityState.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(t){this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return s.h("fieldset",{key:"29ff8fcc910622397750532629ac0c202c9726ba",class:`radio__fieldset ${this.name}__input`,ref:t=>this.stylingContainer=t},s.h("legend",{key:"cdab5b331863f3d31aab50c1d95b5a8845d53329",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(t=>s.h("div",{class:"radio__wrapper"},s.h("input",{type:"radio",class:"radio__input",id:`${t.label}__input`,ref:i=>this.inputReference=i,value:t.value,name:this.name,required:this.validation.mandatory,onClick:i=>this.handleClick(i)}),s.h("label",{htmlFor:`${t.label}__input`},t.label))),s.h("small",{key:"bd6cd89510e7ace1348b391f3ce9ba334a03e695",class:"radio__error-message"},this.errorMessage),this.tooltip&&s.h("img",{key:"27036c51c89612dbb87e5248355d3a5466c49705",class:"radio__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};at.style=Er;const Sr='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__input>input{padding:5px 15px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}',Or=Sr,nt=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.touched=!1,this.handleChange=i=>{this.touched=!0;const r=i.target.value,a=this.options.find(e=>e.value.toLowerCase()===r.toLowerCase());a?this.value=a.value:this.value=r,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=i=>{this.value=i.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.displayedOptions=this.options.map(t=>({label:t.label,value:t.value.toUpperCase()}))}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const t=this.action.split(" ")[1];return this.getOptions(t).then(i=>{const r=Object.keys(i)[0];this.displayedOptions=i[r].map(a=>({label:a.Name,value:a.Alpha2Code}))})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue.toUpperCase(),this.valueHandler({name:this.name,value:this.value}))}getOptions(t){const i=new URL(t);return new Promise((r,a)=>{fetch(i.href).then(e=>e.json()).then(e=>{r(e)}).catch(e=>{console.error(e),a(e)})})}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"46061c64a7cb7dad5b2ca1cd38e27b2ea12e88ce",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("div",{key:"cebc0fad817eff49669c4df47d47a4d97c5db317",class:"select__wrapper--flex"},s.h("label",{key:"a5360d9342ca9c446bdff6b84a717aa47fa71a4f",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),s.h("div",{key:"78d699e2a57122dd74f4d414211b586d19f030e7",class:"select__wrapper--relative"},this.tooltip&&s.h("img",{key:"e6fb14604b078a0b0f284d9234262c76e4c581f8",class:"select__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("vaadin-combo-box",{key:"91c86ee20ee639ba0e4338ba5501621486c94fa4",name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",readOnly:this.autofilled,required:this.validation.mandatory,value:this.defaultValue,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleChange,onBlur:this.handleBlur}),s.h("small",{key:"18a6172cb9566f000d5f397d759eb95a06fbc7b4",class:"select__error-message"},this.errorMessage))}get element(){return s.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};nt.style=Or;const Ir='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.tel__wrapper--flex--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__prefix::part(toggle-button){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}',Hr=Ir,ot=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=i=>{this.phoneValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched||(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.phoneValue=this.defaultValue.phone||null)}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const t=this.action.split(" ")[1];return this.getPhoneCodes(t).then(i=>{this.phoneCodesOptions=i.phoneCodes.map(r=>typeof r=="object"&&r.Prefix?{label:r.Prefix,value:r.Prefix}:{label:r,value:r})})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(t){const i=new URL(t);return new Promise((r,a)=>{fetch(i.href).then(e=>e.json()).then(e=>{r(e)}).catch(e=>{console.error(e),a(e)})})}handlePrefixInput(t){this.prefixValue=t.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i;if(this.inputReference.validity.patternMismatch){const r=(t=this.validation.custom.find(e=>e.rule==="regex"))===null||t===void 0?void 0:t.errorKey,a=(i=this.validation.custom.find(e=>e.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return x.translate(`${r}`,this.language)?x.translate(`${r}`,this.language):a}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return x.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"32e4ff12127da0f261d4580f7f89774cc705264f",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("div",{key:"ede5ef576ea22d3ede41e757d7f699f97ecd0833",class:"tel__wrapper--flex-label"},s.h("label",{key:"1379ab17cb2fec886419de769d6d2013c16c0338",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"8fdfdf05e90268678a0260024fd021ddceb50f02",class:"tel__wrapper--relative"},this.tooltip&&s.h("img",{key:"f214c0175f211055c69c1f46f556521d7007eb8d",class:"tel__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("div",{key:"b9634dea14fa7f3ccabdf4b46bebe31f74f207e9",class:`tel__wrapper--flex ${t}`},s.h("vaadin-combo-box",{key:"4a20c8dfc0162f9c82c04c345cb24c69c7e043f6",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:i=>this.handlePrefixInput(i)}),s.h("input",{key:"16bc2873fa89d882ff862f79b293e125ff4c30ba",type:"tel",ref:i=>this.inputReference=i,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:this.phoneValue,placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),s.h("small",{key:"0b3a96f3a727b469ed116053139cc5d5008c1b76",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};ot.style=Hr;const Fr='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}',Rr=Fr,st=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=i=>{this.value=i.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},500)},this.handleBlur=i=>{this.value=i.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleValidationChange(t){t.detail.field===this.name&&(this.validation=t.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()))}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.isValid=this.setValidity()}setValidity(){var t;return this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:((t=this.inputReference)===null||t===void 0?void 0:t.validity.valid)&&this.inputReference.value.match(this.validationPattern)!=null}setPattern(){var t,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i,r,a;if(this.inputReference.value.match(this.validationPattern)==null){const e=(t=this.validation.custom.find(n=>n.rule==="regex"))===null||t===void 0?void 0:t.errorKey,o=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return x.translate(`${e}`,this.language)||o}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return x.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const e=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorKey,o=(a=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||a===void 0?void 0:a.errorMessage;return x.translate(`${e}`,this.language)?x.translate(`${e}`,this.language):o}}renderTooltip(){return this.showTooltip?s.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"3050f7be1581f0cd5b5e1ce708a789b5e7a54b03",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:i=>this.stylingContainer=i},s.h("div",{key:"9dcc93fb8c091c599269454ab21c03c2380ffef7",class:"text__wrapper--flex"},s.h("label",{key:"0054347b1a4de17ea60b898783de0ef6b42233ee",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"b4655608e397f8d2a8179c01521756bf87746ace",class:"text__wrapper--relative"},this.tooltip&&s.h("img",{key:"c71c1ca1175d11ec352eca5cff216bb244aa7895",class:"text__tooltip-icon",src:B.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("input",{key:"2df3c181c5ca725e121c0878a10ca257da7cdd34",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:i=>this.inputReference=i,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),s.h("small",{key:"5785eb51774c9159e474fbdbd5be0c1ab2a57899",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};st.style=Rr;exports.checkbox_group_input=Le;exports.checkbox_input=$e;exports.date_input=tt;exports.email_input=it;exports.number_input=rt;exports.radio_input=at;exports.select_input=nt;exports.tel_input=ot;exports.text_input=st;