@everymatrix/general-player-register-form-step1 0.0.284 → 0.0.287
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function tt(){}function p(e){return e()}function m(){return Object.create(null)}function rt(e){e.forEach(p)}function f(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function O(e,...t){if(null==e)return tt;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function nt(e,t){e.appendChild(t)}function it(e,t,r){e.insertBefore(t,r||null)}function st(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ot(e){return document.createTextNode(e)}function at(){return ot(" ")}function lt(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function ut(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function ct(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function pt(e,t){e.value=null==t?"":t}let U;function h(e){U=e}const g=[],M=[],n=[],i=[],d=Promise.resolve();let E=!1;function y(e){n.push(e)}let s=!1;const o=new Set;function v(){if(!s){s=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];h(t),function(e){{var t;null!==e.fragment&&(e.update(),rt(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(y))}}(t.$$)}for(h(null),g.length=0;M.length;)M.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];o.has(r)||(o.add(r),r())}}while(n.length=0,g.length);for(;i.length;)i.pop()();E=!1,s=!1,o.clear()}}const b=new Set;function a(n,e,t,r,i,s,o=[-1]){var a,l=U;h(n);const u=n.$$={fragment:null,ctx:null,props:s,update:tt,not_equal:i,bound:m(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:m(),dirty:o,skip_bound:!1};let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=n).$$.dirty[0]&&(g.push(e),E||(E=!0,d.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,rt(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const tt=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(tt),tt.forEach(st)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(b.delete(a),a.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:s,on_destroy:o,after_update:a}=t.$$;i&&i.m(e,r),n||y(()=>{var e=s.map(p).filter(f);o?o.push(...e):rt(e),t.$$.on_mount=[]}),a.forEach(y)}(n,e.target,e.anchor,e.customElement),v()}h(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(p).filter(f);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){rt(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(rt(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=tt}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const u=[];function w(n,i=tt){let s;const o=[];function a(e){if(r(n,e)&&(n=e,s)){const e=!u.length;for(let e=0;e<o.length;e+=1){const t=o[e];t[1](),u.push(t,n)}if(e){for(let e=0;e<u.length;e+=2)u[e][0](u[e+1]);u.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=tt){const r=[e,t];return o.push(r),1===o.length&&(s=i(a)||tt),e(n),()=>{var e=o.indexOf(r);-1!==e&&o.splice(e,1),0===o.length&&(s(),s=null)}}}}function c(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:w(t,t=>{let r=!1;const n=[];let i=0,s=tt;const o=()=>{var e;i||(s(),e=a(l?n[0]:n,t),c?t(e):s=f(e)?e:tt)},e=u.map((e,t)=>O(e,e=>{n[t]=e,i&=~(1<<t),r&&o()},()=>{i|=1<<t}));return r=!0,o(),function(){rt(e),s()}}).subscribe}}var S=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===T));var t},T="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function _(e,t){return!1!==t.clone&&t.isMergeableObject(e)?L(Array.isArray(e)?[]:{},e,t):e}function A(e,t,r){return e.concat(t).map(function(e){return _(e,r)})}function P(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function C(e,t){try{return t in e}catch(e){return!1}}function I(n,i,s){var o={};return s.isMergeableObject(n)&&P(n).forEach(function(e){o[e]=_(n[e],s)}),P(i).forEach(function(t){var e,r;(!C(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(C(n,t)&&s.isMergeableObject(i[t])?o[t]=function(){if(!s.customMerge)return L;var e=s.customMerge(t);return"function"==typeof e?e:L}()(n[t],i[t],s):o[t]=_(i[t],s))}),o}function L(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||A,r.isMergeableObject=r.isMergeableObject||S,r.cloneUnlessOtherwiseSpecified=_;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):I(e,t,r):_(t,r)}L.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return L(e,t,r)},{})};var N=L,R=function(e,t){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function F(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var x,k,D,G=function(){return(G=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function $(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function j(e){return e.type===k.literal}function V(e){return e.type===k.number}function z(e){return e.type===k.date}function X(e){return e.type===k.time}function Q(e){return e.type===k.select}function Z(e){return e.type===k.plural}function q(e){return e.type===k.tag}function B(e){return e&&"object"==typeof e&&e.type===D.number}function Y(e){return e&&"object"==typeof e&&e.type===D.dateTime}(he=x=x||{})[he.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",he[he.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",he[he.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",he[he.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",he[he.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",he[he.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",he[he.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",he[he.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",he[he.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",he[he.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",he[he.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",he[he.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",he[he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",he[he.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",he[he.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",he[he.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",he[he.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",he[he.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",he[he.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",he[he.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",he[he.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",he[he.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",he[he.INVALID_TAG=23]="INVALID_TAG",he[he.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",he[he.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",he[he.UNCLOSED_TAG=27]="UNCLOSED_TAG",(ge=k=k||{})[ge.literal=0]="literal",ge[ge.argument=1]="argument",ge[ge.number=2]="number",ge[ge.date=3]="date",ge[ge.time=4]="time",ge[ge.select=5]="select",ge[ge.plural=6]="plural",ge[ge.pound=7]="pound",ge[ge.tag=8]="tag",(de=D=D||{})[de.number=0]="number",de[de.dateTime=1]="dateTime";var H=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,K=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var W,J=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,te=/^(@+)?(\+|#+)?$/g,re=/(\*)(0+)|(#+)(0+)|(0+)/g,ne=/^(0+)$/;function ie(e){var n={};return e.replace(te,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function se(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function oe(e){return se(e)||{}}function ae(e){for(var o={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=i.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=G(G(G({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return G(G({},e),oe(t))},{}));continue;case"engineering":o=G(G(G({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return G(G({},e),oe(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(re,function(e,t,r,n,i,s){if(t)o.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ne.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(ee.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ee,function(e,t,r,n,i,s){return"*"===r?o.minimumFractionDigits=t.length:n&&"#"===n[0]?o.maximumFractionDigits=n.length:i&&s?(o.minimumFractionDigits=i.length,o.maximumFractionDigits=i.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""}),i.options.length&&(o=G(G({},o),ie(i.options[0])))}else te.test(i.stem)?o=G(G({},o),ie(i.stem)):((n=se(i.stem))&&(o=G(G({},o),n)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!ne.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=G(G({},o),n)))}return o}var le=new RegExp("^"+H.source+"*"),ue=new RegExp(H.source+"*$");function ce(e,t){return{start:e,end:t}}var pe=!!String.prototype.startsWith,me=!!String.fromCodePoint,fe=!!Object.fromEntries,he=!!String.prototype.codePointAt,ge=!!String.prototype.trimStart,de=!!String.prototype.trimEnd,Ee=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},H=!0;try{H="a"===(null===(W=Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===W?void 0:W[0])}catch(tt){H=!1}var ye,ve,be=pe?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},we=me?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,s=0;s<i;){if(1114111<(r=e[s++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Se=fe?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],s=i[0],i=i[1];t[s]=i}return t},Te=he?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},_e=ge?function(e){return e.trimStart()}:function(e){return e.replace(le,"")},Ae=de?function(e){return e.trimEnd()}:function(e){return e.replace(ue,"")};function Pe(e,t){return new RegExp(e,t)}ve=H?(ye=Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return ye.lastIndex=t,null!==(e=ye.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=Te(e,t);if(void 0===i||Ne(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return we.apply(void 0,n)};var Ce=(Ie.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Ie.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,s=this.char();if(123===s){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(x.UNMATCHED_CLOSING_TAG,ce(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&Le(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{s=this.clonePosition();this.bump(),n.push({type:k.pound,location:ce(s,this.clonePosition())})}}}return{val:n,err:null}},Ie.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:k.literal,value:"<"+n+"/>",location:ce(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Le(this.char()))return this.error(x.INVALID_TAG,ce(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(x.UNMATCHED_CLOSING_TAG,ce(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:k.tag,value:n,children:e,location:ce(r,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,ce(t,this.clonePosition())))}return this.error(x.UNCLOSED_TAG,ce(r,this.clonePosition()))}return this.error(x.INVALID_TAG,ce(r,this.clonePosition()))},Ie.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},Ie.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=ce(r,this.clonePosition());return{val:{type:k.literal,value:n,location:r},err:null}},Ie.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Le(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Ie.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return we.apply(void 0,t)},Ie.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),we(r))},Ie.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(x.EMPTY_ARGUMENT,ce(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(x.MALFORMED_ARGUMENT,ce(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:k.argument,value:n,location:ce(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(x.MALFORMED_ARGUMENT,ce(r,this.clonePosition()))}},Ie.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=ve(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:ce(e,this.clonePosition())}},Ie.prototype.parseArgumentOptions=function(e,t,r,n){var i,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(x.EXPECT_ARGUMENT_TYPE,ce(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(p=Ae(m.val)).length)return this.error(x.EXPECT_ARGUMENT_STYLE,ce(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:ce(u,this.clonePosition())}}if((f=this.tryParseArgumentClose(n)).err)return f;var c=ce(n,this.clonePosition());if(l&&be(null==l?void 0:l.style,"::",0)){u=_e(l.style.slice(2));if("number"===o)return(m=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?m:{val:{type:k.number,value:r,location:c,style:m.val},err:null};if(0===u.length)return this.error(x.EXPECT_DATE_TIME_SKELETON,c);var p={type:D.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(K,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}};return{val:{type:"date"===o?k.date:k.time,value:r,location:c,style:p},err:null}}return{val:{type:"number"===o?k.number:"date"===o?k.date:k.time,value:r,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS,ce(l,G({},l)));this.bumpSpace();var m,c=this.parseIdentifierIfPossible(),l=0;if("select"!==o&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(m=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=m.val}c=this.tryParsePluralOrSelectOptions(e,o,t,c);if(c.err)return c;if((f=this.tryParseArgumentClose(n)).err)return f;var f=ce(n,this.clonePosition());return"select"===o?{val:{type:k.select,value:r,options:Se(c.val),location:f},err:null}:{val:{type:k.plural,value:r,options:Se(c.val),offset:l,pluralType:"plural"===o?"cardinal":"ordinal",location:f},err:null};default:return this.error(x.INVALID_ARGUMENT_TYPE,ce(s,a))}},Ie.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,ce(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Ie.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ce(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},Ie.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(J).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],i=i.slice(1),o=0,a=i;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:i})}return t}(e)}catch(e){return this.error(x.INVALID_NUMBER_SKELETON,t)}return{val:{type:D.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ae(r):{}},err:null}},Ie.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,s=[],o=new Set,a=n.value,l=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=ce(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ce(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;u=this.tryParseArgumentClose(p);if(u.err)return u;s.push([a,{value:c.val,location:ce(p,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===s.length?this.error("select"===t?x.EXPECT_SELECT_ARGUMENT_SELECTOR:x.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(x.MISSING_OTHER_CLAUSE,ce(this.clonePosition(),this.clonePosition())):{val:s,err:null}},Ie.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;i=!0,s=10*s+(o-48),this.bump()}n=ce(n,this.clonePosition());return i?Ee(s*=r)?{val:s,err:null}:this.error(t,n):this.error(e,n)},Ie.prototype.offset=function(){return this.position.offset},Ie.prototype.isEOF=function(){return this.offset()===this.message.length},Ie.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Ie.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Te(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Ie.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Ie.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},Ie.prototype.bumpIf=function(e){if(be(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Ie.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},Ie.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},Ie.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ne(this.char());)this.bump()},Ie.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},Ie);function Ie(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Le(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ne(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Re(e,t){t=G({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Ce(e,t).parse();if(r.err){e=SyntaxError(x[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Q(e)||Z(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else V(e)&&B(e.style)||(z(e)||X(e))&&Y(e.style)?delete e.style.location:q(e)&&r(e.children)})}(r.val),r.val}function Fe(e,t){var r=t&&t.cache?t.cache:Ge,n=t&&t.serializer?t.serializer:xe;return(t&&t.strategy?t.strategy:function(e,t){return Me(e,this,1===e.length?Oe:Ue,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Oe(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function Ue(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function Me(e,t,r,n,i){return r.bind(t,e,n,i)}var xe=function(){return JSON.stringify(arguments)};function ke(){this.cache=Object.create(null)}ke.prototype.has=function(e){return e in this.cache},ke.prototype.get=function(e){return this.cache[e]},ke.prototype.set=function(e,t){this.cache[e]=t};var De,Ge={create:function(){return new ke}},$e={variadic:function(e,t){return Me(e,this,Ue,t.cache.create(),t.serializer)},monadic:function(e,t){return Me(e,this,Oe,t.cache.create(),t.serializer)}};(H=De=De||{}).MISSING_VALUE="MISSING_VALUE",H.INVALID_VALUE="INVALID_VALUE",H.MISSING_INTL_API="MISSING_INTL_API";var je,Ve,ze,Xe,Qe,Ze=(F(Je,Qe=Error),Je.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Je),qe=(F(We,Xe=Ze),We),Be=(F(Ke,ze=Ze),Ke),Ye=(F(He,Ve=Ze),He);function He(e,t){return Ve.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',De.MISSING_VALUE,t)||this}function Ke(e,t,r){return ze.call(this,'Value for "'+e+'" must be of type '+t,De.INVALID_VALUE,r)||this}function We(e,t,r,n){return Xe.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',De.INVALID_VALUE,n)||this}function Je(e,t,r){e=Qe.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function et(e,t,r,n,i,s,o){if(1===e.length&&j(e[0]))return[{type:je.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(j(c))a.push({type:je.literal,value:c.value});else if(c.type===k.pound)"number"==typeof s&&a.push({type:je.literal,value:r.getNumberFormat(t).format(s)});else{var p=c.value;if(!(i&&p in i))throw new Ye(p,o);var m=i[p];if(c.type===k.argument)m&&"string"!=typeof m&&"number"!=typeof m||(m="string"==typeof m||"number"==typeof m?String(m):""),a.push({type:"string"==typeof m?je.literal:je.object,value:m});else if(z(c)){var f="string"==typeof c.style?n.date[c.style]:Y(c.style)?c.style.parsedOptions:void 0;a.push({type:je.literal,value:r.getDateTimeFormat(t,f).format(m)})}else if(X(c))f="string"==typeof c.style?n.time[c.style]:Y(c.style)?c.style.parsedOptions:void 0,a.push({type:je.literal,value:r.getDateTimeFormat(t,f).format(m)});else if(V(c))(f="string"==typeof c.style?n.number[c.style]:B(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(m*=f.scale||1),a.push({type:je.literal,value:r.getNumberFormat(t,f).format(m)});else{if(q(c)){var h=c.children,g=c.value,p=i[g];if("function"!=typeof p)throw new Be(g,"function",o);h=p(et(h,t,r,n,i,s).map(function(e){return e.value}));Array.isArray(h)||(h=[h]),a.push.apply(a,h.map(function(e){return{type:"string"==typeof e?je.literal:je.object,value:e}}))}if(Q(c)){if(!(d=c.options[m]||c.options.other))throw new qe(c.value,m,Object.keys(c.options),o);a.push.apply(a,et(d.value,t,r,n,i))}else if(Z(c)){if(!(d=c.options["="+m])){if(!Intl.PluralRules)throw new Ze('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',De.MISSING_INTL_API,o);var h=r.getPluralRules(t,{type:c.pluralType}).select(m-(c.offset||0)),d=c.options[h]||c.options.other}if(!d)throw new qe(c.value,m,Object.keys(c.options),o);a.push.apply(a,et(d.value,t,r,n,i,m-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===je.literal&&t.type===je.literal?r.value+=t.value:e.push(t),e},[])}function mt(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(H=je=je||{})[H.literal=0]="literal",H[H.object=1]="object";var ft=(Object.defineProperty(ht,"defaultLocale",{get:function(){return ht.memoizedDefaultLocale||(ht.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),ht.memoizedDefaultLocale},enumerable:!1,configurable:!0}),ht.memoizedDefaultLocale=null,ht.__parse=Re,ht.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},ht);function ht(e,t,r,n){var i,s,o=this;if(void 0===t&&(t=ht.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=o.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===je.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return et(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof e){if(this.message=e,!ht.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ht.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=ht.formats,(s=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=s[t])?G(G(G({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=G(G({},r[t]),n[t]||{}),e},{})):r),e},G({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:Fe(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,$([void 0],t)))},{cache:mt((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:$e.variadic}),getDateTimeFormat:Fe(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,$([void 0],t)))},{cache:mt(n.dateTime),strategy:$e.variadic}),getPluralRules:Fe(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,$([void 0],t)))},{cache:mt(n.pluralRules),strategy:$e.variadic})}}const gt={},dt=(t,r)=>{if(null!=r){if(r in gt&&t in gt[r])return gt[r][t];var n,i,s=Ft(r);for(let e=0;e<s.length;e++){var o=(n=s[e],i=t,vt(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Et[e]||null}(n),i):null);if(o)return n=t,i=r,(o=o)&&(i in gt||(gt[i]={}),n in gt[i]||(gt[i][n]=o),o)}}};let Et;const yt=w({});function vt(e){return e in Et}function bt(t,...r){delete gt[t],yt.update(e=>(e[t]=N.all([e[t]||{},...r]),e))}c([yt],([e])=>Object.keys(e)),yt.subscribe(e=>Et=e);const wt={};function St(e){return wt[e]}function Tt(e){return Ft(e).some(e=>{return null===(e=St(e))||void 0===e?void 0:e.size})}const _t={};function At(e){if(!Tt(e))return e in _t?_t[e]:void 0;const t=Ft(e).map(e=>{var t=St(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return _t[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){wt[e].delete(t),0===wt[e].size&&delete wt[e]}(t,e),e().then(e=>e.default||e)))).then(e=>bt(t,...e))}(e))).then(()=>Tt(e)?At(e):void delete _t[e]),_t[e]}function Pt(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Ct={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const It=w(!1);let Lt;const Nt=w(null);function Rt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Ft(e,t=Ct.fallbackLocale){e=Rt(e);return t?[...new Set([...e,...Rt(t)])]:e}Nt.subscribe(e=>{Lt=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Ot=Nt.set;Nt.set=t=>{if(function(e){if(null!=e){var t=Ft(e);for(let e=0;e<t.length;e++){var r=t[e];if(vt(r))return r}}}(t)&&Tt(t)){var{loadingDelay:r}=Ct;let e;return"undefined"!=typeof window&&null!=Lt&&r?e=window.setTimeout(()=>It.set(!0),r):It.set(!0),At(t).then(()=>{Ot(t)}).finally(()=>{clearTimeout(e),It.set(!1)})}return Ot(t)},Nt.update=e=>Ot(e(Lt));const Ut=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Mt=(e,t)=>{var{formats:r}=Ct;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},xt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Mt("number",r)),new Intl.NumberFormat(t,e)}),kt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Mt("date",r):0===Object.keys(e).length&&(e=Mt("date","short")),new Intl.DateTimeFormat(t,e)}),Dt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Mt("time",r):0===Object.keys(e).length&&(e=Mt("time","short")),new Intl.DateTimeFormat(t,e)}),Gt=Ut((e,t=Lt)=>new ft(e,t,Ct.formats,{ignoreTag:Ct.ignoreTag})),$t=c([Nt,yt],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Lt,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let s=dt(e,n);if(s){if("string"!=typeof s)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof s}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),s}else Ct.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Ft(n).join('", "')}".${Tt(Lt)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),s=i||e;if(!r)return s;let o=s;try{o=Gt(s,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return o});c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=Pt(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=Pt(e,["locale"]);return kt(Object.assign({locale:t},e))})(t).format(e)),c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=Pt(e,["locale"]);return xt(Object.assign({locale:t},e))})(t).format(e)),c([Nt,yt],()=>(e,t=Lt)=>dt(e,t));const jt={en:{registerFormStep1:{registerTitle:"Create your account",registerSubtitle:"Already have an account?",registerSubtitleLogin:"Login",registerEmail:"Email",registerEmailError:"Email should contain '@' and a 2-3 letter long domain.",registerUsername:"Username",registerUsernameError:"Name must be at least 4-20 characters long and contain no special characters.",registerPassword:"Password",registerPasswordError:"Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",registerConfirmPassword:"Confirm Password",registerConfirmPasswordError:"It doesn't match the password.",registerSecurityQuestion:"Security Question",registerSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",registerSecurityAnswer:"Security Answer",registerSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",registerNext:"Next"}},tr:{registerFormStep1:{registerTitle:"Hesabını oluştur",registerSubtitle:"Zaten hesabınız var mı?",registerSubtitleLogin:"Giriş yapmak",registerEmail:"E-posta",registerEmailError:"E-posta '@' ve 2-3 harf uzunluğunda bir etki alanı içermelidir.",registerUsername:"Kullanıcı adı",registerUsernameError:"Ad en az 4-20 karakter uzunluğunda olmalı ve özel karakter içermemelidir.",registerPassword:"Parola",registerPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",registerConfirmPassword:"Şifreyi Onayla",registerConfirmPasswordError:"Şifreyle eşleşmiyor.",registerSecurityQuestion:"Güvenlik Sorusu",registerSecurityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",registerSecurityAnswer:"Güvenlik cevabı",registerSecurityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",registerNext:"Sonraki"}},ro:{registerFormStep1:{registerTitle:"Creaza cont",registerSubtitle:"Ai deja cont?",registerSubtitleLogin:"Autentifica-te",registerEmail:"Email",registerEmailError:"Email-ul ar trebui sa contina '@' si 2-3 litere.",registerUsername:"Utilizator",registerUsernameError:"Utilizatorul trebuie sa fie cuprins intre 4-20 litere si sa nu contina caractere speciale.",registerPassword:"Parola",registerPasswordError:"Parola trebuie sa fie cuprinsa intre 8 si 20 de caractere, cel putin o litera mare, cel putin un numar si cel putin un caracter special.",registerConfirmPassword:"Confirma Parola",registerConfirmPasswordError:"Confirmarea parolei trebuie sa fie la fel cu parola",registerSecurityQuestion:"Intrebare de Securitate",registerSecurityQuestionError:"Intrebarea de securitate trebuie sa fie cuprinsa intre 1 si 120 de litere.",registerSecurityAnswer:"Raspuns de Securitate",registerSecurityAnswerError:"Raspunsul de securitate trebuie sa fie cuprins intre 1 si 120 de litere",registerNext:"Urmatorul"}},es:{registerFormStep1:{registerTitle:"Crea tu cuenta",registerSubtitle:"Ya tiene una cuenta?",registerSubtitleLogin:"Iniciar sesión",registerEmail:"E-mail",registerEmailError:"El e-mail debe contener '@' y un dominio de 2-3 letras.",registerUsername:"Nombre de usuario",registerUsernameError:"El nombre debe tener al menos 2 caracteres y no contener caracteres especiales.",registerPassword:"Contraseña",registerPasswordError:"La contraseña debe tener de 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",registerConfirmPassword:"Confirma tu contraseña",registerConfirmPasswordError:"La contraseña no coincide.",registerSecurityQuestion:"Pregunta de seguridad",registerSecurityQuestionError:"La pregunta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres.",registerSecurityAnswer:"Respuesta de seguridad",registerSecurityAnswerError:"La respuesta de seguridad debe tener al menos 1 carácter y un máximo de 120 caracteres.",registerNext:"Siguiente"}},pt:{registerFormStep1:{registerTitle:"Crie a sua conta",registerSubtitle:"Já tem uma conta?",registerSubtitleLogin:"Entrar",registerEmail:"E-mail",registerEmailError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",registerUsername:"Nome do usuário",registerUsernameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerPassword:"Senha",registerPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",registerConfirmPassword:"Confirme a sua senha",registerConfirmPasswordError:"Não corresponde à senha.",registerSecurityQuestion:"Pergunta de segurança",registerSecurityQuestionError:"A pergunta de segurança deve ter no mínimo 1 caractere e no máximo 120 caracteres.",registerSecurityAnswer:"Resposta de segurança",registerSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",registerNext:"Próximo"}}};function Vt(e){let r,n,i=e[17]("registerFormStep1.registerEmailError")+"";return{c(){r=t("p"),n=ot(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerEmailError")+"")&&ct(n,i)},d(e){e&&st(r)}}}function zt(e){let r,n,i=e[17]("registerFormStep1.registerUsernameError")+"";return{c(){r=t("p"),n=ot(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerUsernameError")+"")&&ct(n,i)},d(e){e&&st(r)}}}function Xt(r){let n,i,s,o,a,l,u,c,p;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=ot(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ut(l,"class","a"),ut(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),ut(l,"transform","translate(0)"),ut(u,"class","a"),ut(u,"cx","2.779"),ut(u,"cy","2.779"),ut(u,"r","2.779"),ut(u,"transform","translate(20.827 30.303)"),ut(a,"transform","translate(-14.185 -27.832)"),ut(n,"class","TogglePasswordVisibility"),ut(n,"part","TogglePasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.843"),ut(n,"height","10.5"),ut(n,"viewBox","0 0 18.843 10.5")},m(e,t){it(e,n,t),nt(n,i),nt(i,s),nt(s,o),nt(n,a),nt(a,l),nt(a,u),c||(p=lt(n,"click",r[37]),c=!0)},p:tt,d(e){e&&st(n),c=!1,p()}}}function Qt(r){let n,i,s,o,a,l,u,c,p,m,f,h,g,d,E;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=ot(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),p=e("path"),m=e("g"),f=e("path"),h=e("path"),g=e("rect"),ut(l,"class","a"),ut(l,"cx","0.05"),ut(l,"cy","0.05"),ut(l,"r","0.05"),ut(l,"transform","translate(121.017 31.148)"),ut(c,"class","a"),ut(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ut(c,"transform","translate(-142.164 -39.123)"),ut(p,"class","a"),ut(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ut(p,"transform","translate(-136.413 -42.068)"),ut(u,"transform","translate(117.499 27.37)"),ut(f,"class","a"),ut(f,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),ut(f,"transform","translate(-110.856 -33.157)"),ut(h,"class","a"),ut(h,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),ut(h,"transform","translate(-130.743 -29.617)"),ut(m,"transform","translate(110.856 24.899)"),ut(g,"class","a"),ut(g,"width","0.972"),ut(g,"height","15.861"),ut(g,"rx","0.486"),ut(g,"transform","translate(114.827 23.858) rotate(-39.315)"),ut(a,"transform","translate(-110.856 -23.242)"),ut(n,"class","TogglePasswordVisibility"),ut(n,"part","TogglePasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.844"),ut(n,"height","12.887"),ut(n,"viewBox","0 0 18.844 12.887")},m(e,t){it(e,n,t),nt(n,i),nt(i,s),nt(s,o),nt(n,a),nt(a,l),nt(a,u),nt(u,c),nt(u,p),nt(a,m),nt(m,f),nt(m,h),nt(a,g),d||(E=lt(n,"click",r[36]),d=!0)},p:tt,d(e){e&&st(n),d=!1,E()}}}function Zt(e){let r,n,i=e[17]("registerFormStep1.registerPasswordError")+"";return{c(){r=t("p"),n=ot(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerPasswordError")+"")&&ct(n,i)},d(e){e&&st(r)}}}function qt(r){let n,i,s,o,a,l,u,c,p;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=ot(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ut(l,"class","a"),ut(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),ut(l,"transform","translate(0)"),ut(u,"class","a"),ut(u,"cx","2.779"),ut(u,"cy","2.779"),ut(u,"r","2.779"),ut(u,"transform","translate(20.827 30.303)"),ut(a,"transform","translate(-14.185 -27.832)"),ut(n,"class","ToggleConfirmPasswordVisibility"),ut(n,"part","ToggleConfirmPasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.843"),ut(n,"height","10.5"),ut(n,"viewBox","0 0 18.843 10.5")},m(e,t){it(e,n,t),nt(n,i),nt(i,s),nt(s,o),nt(n,a),nt(a,l),nt(a,u),c||(p=lt(n,"click",r[41]),c=!0)},p:tt,d(e){e&&st(n),c=!1,p()}}}function Bt(r){let n,i,s,o,a,l,u,c,p,m,f,h,g,d,E;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=ot(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),p=e("path"),m=e("g"),f=e("path"),h=e("path"),g=e("rect"),ut(l,"class","a"),ut(l,"cx","0.05"),ut(l,"cy","0.05"),ut(l,"r","0.05"),ut(l,"transform","translate(121.017 31.148)"),ut(c,"class","a"),ut(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ut(c,"transform","translate(-142.164 -39.123)"),ut(p,"class","a"),ut(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ut(p,"transform","translate(-136.413 -42.068)"),ut(u,"transform","translate(117.499 27.37)"),ut(f,"class","a"),ut(f,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),ut(f,"transform","translate(-110.856 -33.157)"),ut(h,"class","a"),ut(h,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),ut(h,"transform","translate(-130.743 -29.617)"),ut(m,"transform","translate(110.856 24.899)"),ut(g,"class","a"),ut(g,"width","0.972"),ut(g,"height","15.861"),ut(g,"rx","0.486"),ut(g,"transform","translate(114.827 23.858) rotate(-39.315)"),ut(a,"transform","translate(-110.856 -23.242)"),ut(n,"class","ToggleConfirmPasswordVisibility"),ut(n,"part","ToggleConfirmPasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.844"),ut(n,"height","12.887"),ut(n,"viewBox","0 0 18.844 12.887")},m(e,t){it(e,n,t),nt(n,i),nt(i,s),nt(s,o),nt(n,a),nt(a,l),nt(a,u),nt(u,c),nt(u,p),nt(a,m),nt(m,f),nt(m,h),nt(a,g),d||(E=lt(n,"click",r[40]),d=!0)},p:tt,d(e){e&&st(n),d=!1,E()}}}function Yt(e){let r,n,i=e[17]("registerFormStep1.registerConfirmPasswordError")+"";return{c(){r=t("p"),n=ot(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerConfirmPasswordError")+"")&&ct(n,i)},d(e){e&&st(r)}}}function Ht(e){let r,n,i=e[17]("registerFormStep1.registerSecurityQuestionError")+"";return{c(){r=t("p"),n=ot(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerSecurityQuestionError")+"")&&ct(n,i)},d(e){e&&st(r)}}}function Kt(e){let r,n,i=e[17]("registerFormStep1.registerSecurityAnswerError")+"";return{c(){r=t("p"),n=ot(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerSecurityAnswerError")+"")&&ct(n,i)},d(e){e&&st(r)}}}function Wt(r){let n,i,s,o,a,l,u,c,p,m,f,h,g,d,E,y,v,b,w,S,T,_,A,P,C,I,L,N,R,F,O,U,M,x,k,D,G,$,j,V,z,X,Q,Z,q,B,Y,H,K,W,J,ee,te,re,ne,ie,se,oe,ae,le,ue,ce,pe,me,fe,he,ge,de,Ee,ye,ve,be,we,Se,Te,_e,Ae,Pe,Ce,Ie,Le,Ne,Re,Fe,Oe=r[17]("registerFormStep1.registerTitle")+"",Ue=r[17]("registerFormStep1.registerSubtitle")+"",Me=r[17]("registerFormStep1.registerSubtitleLogin")+"",xe=r[17]("registerFormStep1.registerEmail")+"",ke=r[17]("registerFormStep1.registerUsername")+"",De=r[17]("registerFormStep1.registerPassword")+"",Ge=r[17]("registerFormStep1.registerConfirmPassword")+"",$e=r[17]("registerFormStep1.registerSecurityQuestion")+"",je=r[17]("registerFormStep1.registerSecurityAnswer")+"",Ve=r[17]("registerFormStep1.registerNext")+"",ze=r[0]&&Vt(r),Xe=r[1]&&zt(r);function Qe(e){return e[12]?Qt:Xt}let Ze=Qe(r),qe=Ze(r),Be=r[2]&&Zt(r);function Ye(e){return e[13]?Bt:qt}let He=Ye(r),Ke=He(r),We=r[3]&&Yt(r),Je=r[4]&&Ht(r),et=r[5]&&Kt(r);return{c(){n=t("div"),i=t("h2"),s=ot(Oe),o=at(),a=t("p"),l=ot(Ue),u=at(),c=t("span"),p=ot(Me),m=at(),f=t("div"),h=t("div"),g=t("label"),d=ot(xe),E=ot(":"),y=t("span"),y.textContent="*",v=at(),b=t("input"),w=at(),ze&&ze.c(),_=at(),A=t("div"),P=t("label"),C=ot(ke),I=ot(":"),L=t("span"),L.textContent="*",N=at(),R=t("input"),F=at(),Xe&&Xe.c(),M=at(),x=t("div"),k=t("label"),D=ot(De),G=ot(":"),$=t("span"),$.textContent="*",j=at(),V=t("input"),z=at(),qe.c(),X=at(),Be&&Be.c(),q=at(),B=t("div"),Y=t("label"),H=ot(Ge),K=ot(":"),W=t("span"),W.textContent="*",J=at(),ee=t("input"),te=at(),Ke.c(),re=at(),We&&We.c(),se=at(),oe=t("div"),ae=t("label"),le=ot($e),ue=ot(":"),ce=t("span"),ce.textContent="*",pe=at(),me=t("input"),fe=at(),Je&&Je.c(),de=at(),Ee=t("div"),ye=t("label"),ve=ot(je),be=ot(":"),we=t("span"),we.textContent="*",Se=at(),Te=t("input"),_e=at(),et&&et.c(),Ce=at(),Ie=t("button"),Le=ot(Ve),this.c=tt,ut(i,"class","RegisterFormTitle"),ut(i,"part","RegisterFormTitle"),ut(c,"class","FormLoginCallToAction"),ut(a,"class","RegisterFormSubtitle"),ut(a,"part","RegisterFormSubtitle"),ut(n,"class","RegisterFormHeader"),ut(n,"part","RegisterFormHeader"),ut(y,"class","FormRequired"),ut(y,"part","FormRequired"),ut(g,"for","Email"),ut(b,"type","text"),ut(b,"id","Email"),ut(h,"class",S="EmailContainer "+(r[0]?"InvalidField":"")),ut(h,"part",T="EmailContainer "+(r[0]?"InvalidField":"")),ut(L,"class","FormRequired"),ut(L,"part","FormRequired"),ut(P,"for","UserName"),ut(R,"type","text"),ut(R,"id","UserName"),ut(A,"class",O="UserContainer "+(r[1]?"InvalidField":"")),ut(A,"part",U="UserContainer "+(r[1]?"InvalidField":"")),ut($,"class","FormRequired"),ut($,"part","FormRequired"),ut(k,"for","Password"),ut(V,"type","password"),ut(V,"id","Password"),ut(x,"class",Q="PasswordContainer "+(r[2]?"InvalidField":"")),ut(x,"part",Z="PasswordContainer "+(r[2]?"InvalidField":"")),ut(W,"class","FormRequired"),ut(W,"part","FormRequired"),ut(Y,"for","ConfirmPassword"),ut(ee,"type","password"),ut(ee,"id","ConfirmPassword"),ut(B,"class",ne="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),ut(B,"part",ie="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),ut(ce,"class","FormRequired"),ut(ce,"part","FormRequired"),ut(ae,"for","SecurityQuestion"),ut(me,"type","text"),ut(me,"id","SecurityQuestion"),ut(oe,"class",he="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),ut(oe,"part",ge="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),ut(we,"class","FormRequired"),ut(we,"part","FormRequired"),ut(ye,"for","SecurityAnswer"),ut(Te,"type","text"),ut(Te,"id","SecurityAnswer"),ut(Ee,"class",Ae="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),ut(Ee,"part",Pe="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),ut(f,"class","RegisterFormContent"),ut(f,"part","RegisterFormContent"),ut(Ie,"class","RegisterStepNext"),ut(Ie,"part","RegisterStepNext"),Ie.disabled=Ne=!r[16]},m(e,t){it(e,n,t),nt(n,i),nt(i,s),nt(n,o),nt(n,a),nt(a,l),nt(a,u),nt(a,c),nt(c,p),it(e,m,t),it(e,f,t),nt(f,h),nt(h,g),nt(g,d),nt(g,E),nt(g,y),nt(h,v),nt(h,b),pt(b,r[7]),nt(h,w),ze&&ze.m(h,null),nt(f,_),nt(f,A),nt(A,P),nt(P,C),nt(P,I),nt(P,L),nt(A,N),nt(A,R),pt(R,r[6]),nt(A,F),Xe&&Xe.m(A,null),nt(f,M),nt(f,x),nt(x,k),nt(k,D),nt(k,G),nt(k,$),nt(x,j),nt(x,V),pt(V,r[8]),r[35](V),nt(x,z),qe.m(x,null),nt(x,X),Be&&Be.m(x,null),nt(f,q),nt(f,B),nt(B,Y),nt(Y,H),nt(Y,K),nt(Y,W),nt(B,J),nt(B,ee),pt(ee,r[9]),r[39](ee),nt(B,te),Ke.m(B,null),nt(B,re),We&&We.m(B,null),nt(f,se),nt(f,oe),nt(oe,ae),nt(ae,le),nt(ae,ue),nt(ae,ce),nt(oe,pe),nt(oe,me),pt(me,r[10]),nt(oe,fe),Je&&Je.m(oe,null),nt(f,de),nt(f,Ee),nt(Ee,ye),nt(ye,ve),nt(ye,be),nt(ye,we),nt(Ee,Se),nt(Ee,Te),pt(Te,r[11]),nt(Ee,_e),et&&et.m(Ee,null),it(e,Ce,t),it(e,Ie,t),nt(Ie,Le),Re||(Fe=[lt(c,"click",r[31]),lt(b,"input",r[32]),lt(b,"blur",r[19]),lt(R,"input",r[33]),lt(R,"blur",r[20]),lt(V,"input",r[34]),lt(V,"blur",r[25]),lt(ee,"input",r[38]),lt(ee,"blur",r[26]),lt(me,"input",r[42]),lt(me,"blur",r[27]),lt(Te,"input",r[43]),lt(Te,"keyup",r[28]),lt(Ie,"click",r[29])],Re=!0)},p(e,t){131072&t[0]&&Oe!==(Oe=e[17]("registerFormStep1.registerTitle")+"")&&ct(s,Oe),131072&t[0]&&Ue!==(Ue=e[17]("registerFormStep1.registerSubtitle")+"")&&ct(l,Ue),131072&t[0]&&Me!==(Me=e[17]("registerFormStep1.registerSubtitleLogin")+"")&&ct(p,Me),131072&t[0]&&xe!==(xe=e[17]("registerFormStep1.registerEmail")+"")&&ct(d,xe),128&t[0]&&b.value!==e[7]&&pt(b,e[7]),e[0]?ze?ze.p(e,t):(ze=Vt(e),ze.c(),ze.m(h,null)):ze&&(ze.d(1),ze=null),1&t[0]&&S!==(S="EmailContainer "+(e[0]?"InvalidField":""))&&ut(h,"class",S),1&t[0]&&T!==(T="EmailContainer "+(e[0]?"InvalidField":""))&&ut(h,"part",T),131072&t[0]&&ke!==(ke=e[17]("registerFormStep1.registerUsername")+"")&&ct(C,ke),64&t[0]&&R.value!==e[6]&&pt(R,e[6]),e[1]?Xe?Xe.p(e,t):(Xe=zt(e),Xe.c(),Xe.m(A,null)):Xe&&(Xe.d(1),Xe=null),2&t[0]&&O!==(O="UserContainer "+(e[1]?"InvalidField":""))&&ut(A,"class",O),2&t[0]&&U!==(U="UserContainer "+(e[1]?"InvalidField":""))&&ut(A,"part",U),131072&t[0]&&De!==(De=e[17]("registerFormStep1.registerPassword")+"")&&ct(D,De),256&t[0]&&V.value!==e[8]&&pt(V,e[8]),Ze===(Ze=Qe(e))&&qe?qe.p(e,t):(qe.d(1),qe=Ze(e),qe&&(qe.c(),qe.m(x,X))),e[2]?Be?Be.p(e,t):(Be=Zt(e),Be.c(),Be.m(x,null)):Be&&(Be.d(1),Be=null),4&t[0]&&Q!==(Q="PasswordContainer "+(e[2]?"InvalidField":""))&&ut(x,"class",Q),4&t[0]&&Z!==(Z="PasswordContainer "+(e[2]?"InvalidField":""))&&ut(x,"part",Z),131072&t[0]&&Ge!==(Ge=e[17]("registerFormStep1.registerConfirmPassword")+"")&&ct(H,Ge),512&t[0]&&ee.value!==e[9]&&pt(ee,e[9]),He===(He=Ye(e))&&Ke?Ke.p(e,t):(Ke.d(1),Ke=He(e),Ke&&(Ke.c(),Ke.m(B,re))),e[3]?We?We.p(e,t):(We=Yt(e),We.c(),We.m(B,null)):We&&(We.d(1),We=null),8&t[0]&&ne!==(ne="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&ut(B,"class",ne),8&t[0]&&ie!==(ie="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&ut(B,"part",ie),131072&t[0]&&$e!==($e=e[17]("registerFormStep1.registerSecurityQuestion")+"")&&ct(le,$e),1024&t[0]&&me.value!==e[10]&&pt(me,e[10]),e[4]?Je?Je.p(e,t):(Je=Ht(e),Je.c(),Je.m(oe,null)):Je&&(Je.d(1),Je=null),16&t[0]&&he!==(he="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&ut(oe,"class",he),16&t[0]&&ge!==(ge="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&ut(oe,"part",ge),131072&t[0]&&je!==(je=e[17]("registerFormStep1.registerSecurityAnswer")+"")&&ct(ve,je),2048&t[0]&&Te.value!==e[11]&&pt(Te,e[11]),e[5]?et?et.p(e,t):(et=Kt(e),et.c(),et.m(Ee,null)):et&&(et.d(1),et=null),32&t[0]&&Ae!==(Ae="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&ut(Ee,"class",Ae),32&t[0]&&Pe!==(Pe="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&ut(Ee,"part",Pe),131072&t[0]&&Ve!==(Ve=e[17]("registerFormStep1.registerNext")+"")&&ct(Le,Ve),65536&t[0]&&Ne!==(Ne=!e[16])&&(Ie.disabled=Ne)},i:tt,o:tt,d(e){e&&st(n),e&&st(m),e&&st(f),ze&&ze.d(),Xe&&Xe.d(),r[35](null),qe.d(),Be&&Be.d(),r[39](null),Ke.d(),We&&We.d(),Je&&Je.d(),et&&et.d(),e&&st(Ce),e&&st(Ie),Re=!1,rt(Fe)}}}function Jt(t,e,r){let n;var i=$t;t.$$.on_destroy.push(O(i,e=>r(17,n=e)));let s,o,{lang:a=""}=e,l=!1,u=!1,c=!1,p=!1,m=!1,f=!1,h="",g="",d="",E="",y="",v="",b=!1,w=!1,S=!1;Object.keys(jt).forEach(e=>{bt(e,jt[e])});const T=()=>{r(16,S=!(l||u||c||p||m||f)),(h.length<=0||g.length<=0||d.length<=0||E.length<=0||y.length<=0||v.length<=0)&&r(16,S=!1)},_=()=>{window.postMessage({type:"ToLogin"},window.location.href)},A={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,email:/^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},P=()=>{r(12,b=!0),N()},C=()=>{r(13,w=!0),R()},I=()=>{r(12,b=!1),N()},L=()=>{r(13,w=!1),R()},N=()=>{r(14,s.type=b?"text":"password",s)},R=()=>{r(15,o.type=w?"text":"password",o)},F=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(7,g=e.data.userData.email),r(6,h=e.data.userData.username),r(8,d=e.data.userData.password),r(9,E=e.data.userData.password),r(10,y=e.data.userData.securityQuestion),r(11,v=e.data.userData.securityAnswer),T())};return e=()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}),function(){if(!U)throw new Error("Function called outside component initialization");return U}().$$.on_mount.push(e),t.$$set=e=>{"lang"in e&&r(30,a=e.lang)},t.$$.update=()=>{var e;1073741824&t.$$.dirty[0]&&a&&(e=a,Nt.set(e))},[l,u,c,p,m,f,h,g,d,E,y,v,b,w,s,o,S,n,_,()=>{var e;r(0,(e=g,l=!(A.email.test(e)&&e.length<=100))),T()},()=>{var e;r(1,(e=h,u=!(A.user.test(e)&&e.length<=20))),T()},P,C,I,L,()=>{var e;r(2,(e=d,c=!A.password.test(e))),d!==E&&0<E.length?r(3,p=!0):r(3,p=!1),T()},()=>{r(3,p=!(d===E)),T()},()=>{r(4,m=!(y&&y.length<=120)),T()},()=>{r(5,f=!(v&&v.length<=120)),T()},()=>{var e={userEmail:g,userValue:h,userPassword:d,confirmUserPassword:E,securityQuestion:y,securityAnswer:v};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},a,()=>_(),function(){g=this.value,r(7,g)},function(){h=this.value,r(6,h)},function(){d=this.value,r(8,d)},function(e){M[e?"unshift":"push"](()=>{s=e,r(14,s)})},()=>I(),()=>P(),function(){E=this.value,r(9,E)},function(e){M[e?"unshift":"push"](()=>{o=e,r(15,o)})},()=>L(),()=>C(),function(){y=this.value,r(10,y)},function(){v=this.value,r(11,v)}]}class er extends l{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.RegisterFormTitle{font-size:20px;text-transform:uppercase;font-weight:300;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:var(--emfe-w-color-primary, #D0046C);font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:45px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;bottom:-3px;line-height:10px}.UserContainer .InvalidInput{bottom:-3px}.RegisterStepNext{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);cursor:not-allowed}input::-ms-reveal,input::-ms-clear{display:none}</style>",a(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},Jt,Wt,r,{lang:30},[-1,-1]),e&&(e.target&&it(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["lang"]}get lang(){return this.$$.ctx[30]}set lang(e){this.$set({lang:e}),v()}}return customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",er),er});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function tt(){}function p(e){return e()}function m(){return Object.create(null)}function rt(e){e.forEach(p)}function f(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function O(e,...t){if(null==e)return tt;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function nt(e,t){e.appendChild(t)}function it(e,t,r){e.insertBefore(t,r||null)}function st(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ot(e){return document.createTextNode(e)}function at(){return ot(" ")}function lt(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function ut(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function ct(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function pt(e,t){e.value=null==t?"":t}let U;function h(e){U=e}const g=[],x=[],n=[],i=[],d=Promise.resolve();let E=!1;function y(e){n.push(e)}let s=!1;const o=new Set;function v(){if(!s){s=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];h(t),function(e){{var t;null!==e.fragment&&(e.update(),rt(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(y))}}(t.$$)}for(h(null),g.length=0;x.length;)x.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];o.has(r)||(o.add(r),r())}}while(n.length=0,g.length);for(;i.length;)i.pop()();E=!1,s=!1,o.clear()}}const b=new Set;function a(n,e,t,r,i,s,o=[-1]){var a,l=U;h(n);const u=n.$$={fragment:null,ctx:null,props:s,update:tt,not_equal:i,bound:m(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:m(),dirty:o,skip_bound:!1};let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=n).$$.dirty[0]&&(g.push(e),E||(E=!0,d.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,rt(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const tt=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(tt),tt.forEach(st)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(b.delete(a),a.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:s,on_destroy:o,after_update:a}=t.$$;i&&i.m(e,r),n||y(()=>{var e=s.map(p).filter(f);o?o.push(...e):rt(e),t.$$.on_mount=[]}),a.forEach(y)}(n,e.target,e.anchor,e.customElement),v()}h(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(p).filter(f);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){rt(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(rt(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=tt}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const u=[];function w(n,i=tt){let s;const o=[];function a(e){if(r(n,e)&&(n=e,s)){const e=!u.length;for(let e=0;e<o.length;e+=1){const t=o[e];t[1](),u.push(t,n)}if(e){for(let e=0;e<u.length;e+=2)u[e][0](u[e+1]);u.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=tt){const r=[e,t];return o.push(r),1===o.length&&(s=i(a)||tt),e(n),()=>{var e=o.indexOf(r);-1!==e&&o.splice(e,1),0===o.length&&(s(),s=null)}}}}function c(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:w(t,t=>{let r=!1;const n=[];let i=0,s=tt;const o=()=>{var e;i||(s(),e=a(l?n[0]:n,t),c?t(e):s=f(e)?e:tt)},e=u.map((e,t)=>O(e,e=>{n[t]=e,i&=~(1<<t),r&&o()},()=>{i|=1<<t}));return r=!0,o(),function(){rt(e),s()}}).subscribe}}var S=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===T));var t},T="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function A(e,t){return!1!==t.clone&&t.isMergeableObject(e)?L(Array.isArray(e)?[]:{},e,t):e}function _(e,t,r){return e.concat(t).map(function(e){return A(e,r)})}function P(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function C(e,t){try{return t in e}catch(e){return!1}}function I(n,i,s){var o={};return s.isMergeableObject(n)&&P(n).forEach(function(e){o[e]=A(n[e],s)}),P(i).forEach(function(t){var e,r;(!C(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(C(n,t)&&s.isMergeableObject(i[t])?o[t]=function(){if(!s.customMerge)return L;var e=s.customMerge(t);return"function"==typeof e?e:L}()(n[t],i[t],s):o[t]=A(i[t],s))}),o}function L(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||_,r.isMergeableObject=r.isMergeableObject||S,r.cloneUnlessOtherwiseSpecified=A;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):I(e,t,r):A(t,r)}L.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return L(e,t,r)},{})};var N=L,R=function(e,t){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function F(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var M,k,D,G=function(){return(G=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function $(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function j(e){return e.type===k.literal}function V(e){return e.type===k.number}function z(e){return e.type===k.date}function X(e){return e.type===k.time}function Q(e){return e.type===k.select}function Z(e){return e.type===k.plural}function q(e){return e.type===k.tag}function B(e){return e&&"object"==typeof e&&e.type===D.number}function Y(e){return e&&"object"==typeof e&&e.type===D.dateTime}(he=M=M||{})[he.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",he[he.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",he[he.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",he[he.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",he[he.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",he[he.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",he[he.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",he[he.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",he[he.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",he[he.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",he[he.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",he[he.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",he[he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",he[he.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",he[he.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",he[he.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",he[he.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",he[he.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",he[he.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",he[he.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",he[he.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",he[he.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",he[he.INVALID_TAG=23]="INVALID_TAG",he[he.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",he[he.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",he[he.UNCLOSED_TAG=27]="UNCLOSED_TAG",(ge=k=k||{})[ge.literal=0]="literal",ge[ge.argument=1]="argument",ge[ge.number=2]="number",ge[ge.date=3]="date",ge[ge.time=4]="time",ge[ge.select=5]="select",ge[ge.plural=6]="plural",ge[ge.pound=7]="pound",ge[ge.tag=8]="tag",(de=D=D||{})[de.number=0]="number",de[de.dateTime=1]="dateTime";var H=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,K=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var W,J=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,te=/^(@+)?(\+|#+)?$/g,re=/(\*)(0+)|(#+)(0+)|(0+)/g,ne=/^(0+)$/;function ie(e){var n={};return e.replace(te,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function se(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function oe(e){return se(e)||{}}function ae(e){for(var o={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=i.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=G(G(G({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return G(G({},e),oe(t))},{}));continue;case"engineering":o=G(G(G({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return G(G({},e),oe(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(re,function(e,t,r,n,i,s){if(t)o.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ne.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(ee.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ee,function(e,t,r,n,i,s){return"*"===r?o.minimumFractionDigits=t.length:n&&"#"===n[0]?o.maximumFractionDigits=n.length:i&&s?(o.minimumFractionDigits=i.length,o.maximumFractionDigits=i.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""}),i.options.length&&(o=G(G({},o),ie(i.options[0])))}else te.test(i.stem)?o=G(G({},o),ie(i.stem)):((n=se(i.stem))&&(o=G(G({},o),n)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!ne.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=G(G({},o),n)))}return o}var le=new RegExp("^"+H.source+"*"),ue=new RegExp(H.source+"*$");function ce(e,t){return{start:e,end:t}}var pe=!!String.prototype.startsWith,me=!!String.fromCodePoint,fe=!!Object.fromEntries,he=!!String.prototype.codePointAt,ge=!!String.prototype.trimStart,de=!!String.prototype.trimEnd,Ee=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},H=!0;try{H="a"===(null===(W=Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===W?void 0:W[0])}catch(tt){H=!1}var ye,ve,be=pe?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},we=me?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,s=0;s<i;){if(1114111<(r=e[s++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Se=fe?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],s=i[0],i=i[1];t[s]=i}return t},Te=he?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},Ae=ge?function(e){return e.trimStart()}:function(e){return e.replace(le,"")},_e=de?function(e){return e.trimEnd()}:function(e){return e.replace(ue,"")};function Pe(e,t){return new RegExp(e,t)}ve=H?(ye=Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return ye.lastIndex=t,null!==(e=ye.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=Te(e,t);if(void 0===i||Ne(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return we.apply(void 0,n)};var Ce=(Ie.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Ie.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,s=this.char();if(123===s){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(M.UNMATCHED_CLOSING_TAG,ce(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&Le(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{s=this.clonePosition();this.bump(),n.push({type:k.pound,location:ce(s,this.clonePosition())})}}}return{val:n,err:null}},Ie.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:k.literal,value:"<"+n+"/>",location:ce(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Le(this.char()))return this.error(M.INVALID_TAG,ce(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(M.UNMATCHED_CLOSING_TAG,ce(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:k.tag,value:n,children:e,location:ce(r,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,ce(t,this.clonePosition())))}return this.error(M.UNCLOSED_TAG,ce(r,this.clonePosition()))}return this.error(M.INVALID_TAG,ce(r,this.clonePosition()))},Ie.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},Ie.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=ce(r,this.clonePosition());return{val:{type:k.literal,value:n,location:r},err:null}},Ie.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Le(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Ie.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return we.apply(void 0,t)},Ie.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),we(r))},Ie.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(M.EMPTY_ARGUMENT,ce(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(M.MALFORMED_ARGUMENT,ce(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:k.argument,value:n,location:ce(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(M.MALFORMED_ARGUMENT,ce(r,this.clonePosition()))}},Ie.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=ve(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:ce(e,this.clonePosition())}},Ie.prototype.parseArgumentOptions=function(e,t,r,n){var i,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(M.EXPECT_ARGUMENT_TYPE,ce(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(p=_e(m.val)).length)return this.error(M.EXPECT_ARGUMENT_STYLE,ce(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:ce(u,this.clonePosition())}}if((f=this.tryParseArgumentClose(n)).err)return f;var c=ce(n,this.clonePosition());if(l&&be(null==l?void 0:l.style,"::",0)){u=Ae(l.style.slice(2));if("number"===o)return(m=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?m:{val:{type:k.number,value:r,location:c,style:m.val},err:null};if(0===u.length)return this.error(M.EXPECT_DATE_TIME_SKELETON,c);var p={type:D.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(K,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}};return{val:{type:"date"===o?k.date:k.time,value:r,location:c,style:p},err:null}}return{val:{type:"number"===o?k.number:"date"===o?k.date:k.time,value:r,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,ce(l,G({},l)));this.bumpSpace();var m,c=this.parseIdentifierIfPossible(),l=0;if("select"!==o&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(m=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=m.val}c=this.tryParsePluralOrSelectOptions(e,o,t,c);if(c.err)return c;if((f=this.tryParseArgumentClose(n)).err)return f;var f=ce(n,this.clonePosition());return"select"===o?{val:{type:k.select,value:r,options:Se(c.val),location:f},err:null}:{val:{type:k.plural,value:r,options:Se(c.val),offset:l,pluralType:"plural"===o?"cardinal":"ordinal",location:f},err:null};default:return this.error(M.INVALID_ARGUMENT_TYPE,ce(s,a))}},Ie.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,ce(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Ie.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ce(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},Ie.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(J).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],i=i.slice(1),o=0,a=i;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:i})}return t}(e)}catch(e){return this.error(M.INVALID_NUMBER_SKELETON,t)}return{val:{type:D.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ae(r):{}},err:null}},Ie.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,s=[],o=new Set,a=n.value,l=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR,M.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=ce(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?M.DUPLICATE_SELECT_ARGUMENT_SELECTOR:M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ce(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;u=this.tryParseArgumentClose(p);if(u.err)return u;s.push([a,{value:c.val,location:ce(p,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===s.length?this.error("select"===t?M.EXPECT_SELECT_ARGUMENT_SELECTOR:M.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(M.MISSING_OTHER_CLAUSE,ce(this.clonePosition(),this.clonePosition())):{val:s,err:null}},Ie.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;i=!0,s=10*s+(o-48),this.bump()}n=ce(n,this.clonePosition());return i?Ee(s*=r)?{val:s,err:null}:this.error(t,n):this.error(e,n)},Ie.prototype.offset=function(){return this.position.offset},Ie.prototype.isEOF=function(){return this.offset()===this.message.length},Ie.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Ie.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Te(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Ie.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Ie.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},Ie.prototype.bumpIf=function(e){if(be(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Ie.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},Ie.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},Ie.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ne(this.char());)this.bump()},Ie.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},Ie);function Ie(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Le(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ne(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Re(e,t){t=G({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Ce(e,t).parse();if(r.err){e=SyntaxError(M[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Q(e)||Z(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else V(e)&&B(e.style)||(z(e)||X(e))&&Y(e.style)?delete e.style.location:q(e)&&r(e.children)})}(r.val),r.val}function Fe(e,t){var r=t&&t.cache?t.cache:Ge,n=t&&t.serializer?t.serializer:Me;return(t&&t.strategy?t.strategy:function(e,t){return xe(e,this,1===e.length?Oe:Ue,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Oe(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function Ue(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function xe(e,t,r,n,i){return r.bind(t,e,n,i)}var Me=function(){return JSON.stringify(arguments)};function ke(){this.cache=Object.create(null)}ke.prototype.has=function(e){return e in this.cache},ke.prototype.get=function(e){return this.cache[e]},ke.prototype.set=function(e,t){this.cache[e]=t};var De,Ge={create:function(){return new ke}},$e={variadic:function(e,t){return xe(e,this,Ue,t.cache.create(),t.serializer)},monadic:function(e,t){return xe(e,this,Oe,t.cache.create(),t.serializer)}};(H=De=De||{}).MISSING_VALUE="MISSING_VALUE",H.INVALID_VALUE="INVALID_VALUE",H.MISSING_INTL_API="MISSING_INTL_API";var je,Ve,ze,Xe,Qe,Ze=(F(Je,Qe=Error),Je.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Je),qe=(F(We,Xe=Ze),We),Be=(F(Ke,ze=Ze),Ke),Ye=(F(He,Ve=Ze),He);function He(e,t){return Ve.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',De.MISSING_VALUE,t)||this}function Ke(e,t,r){return ze.call(this,'Value for "'+e+'" must be of type '+t,De.INVALID_VALUE,r)||this}function We(e,t,r,n){return Xe.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',De.INVALID_VALUE,n)||this}function Je(e,t,r){e=Qe.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function et(e,t,r,n,i,s,o){if(1===e.length&&j(e[0]))return[{type:je.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(j(c))a.push({type:je.literal,value:c.value});else if(c.type===k.pound)"number"==typeof s&&a.push({type:je.literal,value:r.getNumberFormat(t).format(s)});else{var p=c.value;if(!(i&&p in i))throw new Ye(p,o);var m=i[p];if(c.type===k.argument)m&&"string"!=typeof m&&"number"!=typeof m||(m="string"==typeof m||"number"==typeof m?String(m):""),a.push({type:"string"==typeof m?je.literal:je.object,value:m});else if(z(c)){var f="string"==typeof c.style?n.date[c.style]:Y(c.style)?c.style.parsedOptions:void 0;a.push({type:je.literal,value:r.getDateTimeFormat(t,f).format(m)})}else if(X(c))f="string"==typeof c.style?n.time[c.style]:Y(c.style)?c.style.parsedOptions:void 0,a.push({type:je.literal,value:r.getDateTimeFormat(t,f).format(m)});else if(V(c))(f="string"==typeof c.style?n.number[c.style]:B(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(m*=f.scale||1),a.push({type:je.literal,value:r.getNumberFormat(t,f).format(m)});else{if(q(c)){var h=c.children,g=c.value,p=i[g];if("function"!=typeof p)throw new Be(g,"function",o);h=p(et(h,t,r,n,i,s).map(function(e){return e.value}));Array.isArray(h)||(h=[h]),a.push.apply(a,h.map(function(e){return{type:"string"==typeof e?je.literal:je.object,value:e}}))}if(Q(c)){if(!(d=c.options[m]||c.options.other))throw new qe(c.value,m,Object.keys(c.options),o);a.push.apply(a,et(d.value,t,r,n,i))}else if(Z(c)){if(!(d=c.options["="+m])){if(!Intl.PluralRules)throw new Ze('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',De.MISSING_INTL_API,o);var h=r.getPluralRules(t,{type:c.pluralType}).select(m-(c.offset||0)),d=c.options[h]||c.options.other}if(!d)throw new qe(c.value,m,Object.keys(c.options),o);a.push.apply(a,et(d.value,t,r,n,i,m-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===je.literal&&t.type===je.literal?r.value+=t.value:e.push(t),e},[])}function mt(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(H=je=je||{})[H.literal=0]="literal",H[H.object=1]="object";var ft=(Object.defineProperty(ht,"defaultLocale",{get:function(){return ht.memoizedDefaultLocale||(ht.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),ht.memoizedDefaultLocale},enumerable:!1,configurable:!0}),ht.memoizedDefaultLocale=null,ht.__parse=Re,ht.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},ht);function ht(e,t,r,n){var i,s,o=this;if(void 0===t&&(t=ht.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=o.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===je.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return et(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof e){if(this.message=e,!ht.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ht.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=ht.formats,(s=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=s[t])?G(G(G({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=G(G({},r[t]),n[t]||{}),e},{})):r),e},G({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:Fe(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,$([void 0],t)))},{cache:mt((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:$e.variadic}),getDateTimeFormat:Fe(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,$([void 0],t)))},{cache:mt(n.dateTime),strategy:$e.variadic}),getPluralRules:Fe(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,$([void 0],t)))},{cache:mt(n.pluralRules),strategy:$e.variadic})}}const gt={},dt=(t,r)=>{if(null!=r){if(r in gt&&t in gt[r])return gt[r][t];var n,i,s=Ft(r);for(let e=0;e<s.length;e++){var o=(n=s[e],i=t,vt(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Et[e]||null}(n),i):null);if(o)return n=t,i=r,(o=o)&&(i in gt||(gt[i]={}),n in gt[i]||(gt[i][n]=o),o)}}};let Et;const yt=w({});function vt(e){return e in Et}function bt(t,...r){delete gt[t],yt.update(e=>(e[t]=N.all([e[t]||{},...r]),e))}c([yt],([e])=>Object.keys(e)),yt.subscribe(e=>Et=e);const wt={};function St(e){return wt[e]}function Tt(e){return Ft(e).some(e=>{return null===(e=St(e))||void 0===e?void 0:e.size})}const At={};function _t(e){if(!Tt(e))return e in At?At[e]:void 0;const t=Ft(e).map(e=>{var t=St(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return At[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){wt[e].delete(t),0===wt[e].size&&delete wt[e]}(t,e),e().then(e=>e.default||e)))).then(e=>bt(t,...e))}(e))).then(()=>Tt(e)?_t(e):void delete At[e]),At[e]}function Pt(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Ct={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const It=w(!1);let Lt;const Nt=w(null);function Rt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Ft(e,t=Ct.fallbackLocale){e=Rt(e);return t?[...new Set([...e,...Rt(t)])]:e}Nt.subscribe(e=>{Lt=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Ot=Nt.set;Nt.set=t=>{if(function(e){if(null!=e){var t=Ft(e);for(let e=0;e<t.length;e++){var r=t[e];if(vt(r))return r}}}(t)&&Tt(t)){var{loadingDelay:r}=Ct;let e;return"undefined"!=typeof window&&null!=Lt&&r?e=window.setTimeout(()=>It.set(!0),r):It.set(!0),_t(t).then(()=>{Ot(t)}).finally(()=>{clearTimeout(e),It.set(!1)})}return Ot(t)},Nt.update=e=>Ot(e(Lt));const Ut=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},xt=(e,t)=>{var{formats:r}=Ct;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Mt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=xt("number",r)),new Intl.NumberFormat(t,e)}),kt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=xt("date",r):0===Object.keys(e).length&&(e=xt("date","short")),new Intl.DateTimeFormat(t,e)}),Dt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=xt("time",r):0===Object.keys(e).length&&(e=xt("time","short")),new Intl.DateTimeFormat(t,e)}),Gt=Ut((e,t=Lt)=>new ft(e,t,Ct.formats,{ignoreTag:Ct.ignoreTag})),$t=c([Nt,yt],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Lt,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let s=dt(e,n);if(s){if("string"!=typeof s)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof s}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),s}else Ct.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Ft(n).join('", "')}".${Tt(Lt)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),s=i||e;if(!r)return s;let o=s;try{o=Gt(s,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return o});c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=Pt(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=Pt(e,["locale"]);return kt(Object.assign({locale:t},e))})(t).format(e)),c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=Pt(e,["locale"]);return Mt(Object.assign({locale:t},e))})(t).format(e)),c([Nt,yt],()=>(e,t=Lt)=>dt(e,t));const jt={en:{registerFormStep1:{registerTitle:"Create your account",registerSubtitle:"Already have an account?",registerSubtitleLogin:"Login",registerEmail:"Email",registerEmailError:"Email should contain '@' and a 2-3 letter long domain.",registerUsername:"Username",registerUsernameError:"Name must be at least 4-20 characters long and contain no special characters.",registerPassword:"Password",registerPasswordError:"Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",registerConfirmPassword:"Confirm Password",registerConfirmPasswordError:"It doesn't match the password.",registerSecurityQuestion:"Security Question",registerSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",registerSecurityAnswer:"Security Answer",registerSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",registerNext:"Next"}},fr:{registerFormStep1:{registerTitle:"Créez votre compte",registerSubtitle:"Vous avez déjà un compte?",registerSubtitleLogin:"Connexion ",registerEmail:"Email",registerEmailError:"L'adresse mail doit comporter un '@' et un nom de domaine de 2 à 3 lettres.",registerUsername:"Nom d'utilisateur ",registerUsernameError:"Le nom doit être composé d'au moins 2 caractères et ne doitpas contenir de caractères spéciaux.",registerPassword:"Mot de passe",registerPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial.",registerConfirmPassword:"Confirmer le mot de passe",registerConfirmPasswordError:"ça ne correspond pas au mot de passe.",registerSecurityQuestion:"Questions de sécurité",registerSecurityQuestionError:"La question de sécurité doit comporter au moins un caractère et au maximum 120 caractères.",registerSecurityAnswer:"Réponse de sécurité",registerSecurityAnswerError:"La réponse de sécurité doit comporter au moins un caractère et au maximum 120 caractères.",registerNext:"Suivant"}},tr:{registerFormStep1:{registerTitle:"Hesabını oluştur",registerSubtitle:"Zaten hesabınız var mı?",registerSubtitleLogin:"Giriş yapmak",registerEmail:"E-posta",registerEmailError:"E-posta '@' ve 2-3 harf uzunluğunda bir etki alanı içermelidir.",registerUsername:"Kullanıcı adı",registerUsernameError:"Ad en az 4-20 karakter uzunluğunda olmalı ve özel karakter içermemelidir.",registerPassword:"Parola",registerPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",registerConfirmPassword:"Şifreyi Onayla",registerConfirmPasswordError:"Şifreyle eşleşmiyor.",registerSecurityQuestion:"Güvenlik Sorusu",registerSecurityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",registerSecurityAnswer:"Güvenlik cevabı",registerSecurityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",registerNext:"Sonraki"}},ro:{registerFormStep1:{registerTitle:"Creaza cont",registerSubtitle:"Ai deja cont?",registerSubtitleLogin:"Autentifica-te",registerEmail:"Email",registerEmailError:"Email-ul ar trebui sa contina '@' si 2-3 litere.",registerUsername:"Utilizator",registerUsernameError:"Utilizatorul trebuie sa fie cuprins intre 4-20 litere si sa nu contina caractere speciale.",registerPassword:"Parola",registerPasswordError:"Parola trebuie sa fie cuprinsa intre 8 si 20 de caractere, cel putin o litera mare, cel putin un numar si cel putin un caracter special.",registerConfirmPassword:"Confirma Parola",registerConfirmPasswordError:"Confirmarea parolei trebuie sa fie la fel cu parola",registerSecurityQuestion:"Intrebare de Securitate",registerSecurityQuestionError:"Intrebarea de securitate trebuie sa fie cuprinsa intre 1 si 120 de litere.",registerSecurityAnswer:"Raspuns de Securitate",registerSecurityAnswerError:"Raspunsul de securitate trebuie sa fie cuprins intre 1 si 120 de litere",registerNext:"Urmatorul"}},es:{registerFormStep1:{registerTitle:"Crea tu cuenta",registerSubtitle:"Ya tiene una cuenta?",registerSubtitleLogin:"Iniciar sesión",registerEmail:"E-mail",registerEmailError:"El e-mail debe contener '@' y un dominio de 2-3 letras.",registerUsername:"Nombre de usuario",registerUsernameError:"El nombre debe tener al menos 2 caracteres y no contener caracteres especiales.",registerPassword:"Contraseña",registerPasswordError:"La contraseña debe tener de 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",registerConfirmPassword:"Confirma tu contraseña",registerConfirmPasswordError:"La contraseña no coincide.",registerSecurityQuestion:"Pregunta de seguridad",registerSecurityQuestionError:"La pregunta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres.",registerSecurityAnswer:"Respuesta de seguridad",registerSecurityAnswerError:"La respuesta de seguridad debe tener al menos 1 carácter y un máximo de 120 caracteres.",registerNext:"Siguiente"}},pt:{registerFormStep1:{registerTitle:"Crie a sua conta",registerSubtitle:"Já tem uma conta?",registerSubtitleLogin:"Entrar",registerEmail:"E-mail",registerEmailError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",registerUsername:"Nome do usuário",registerUsernameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerPassword:"Senha",registerPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",registerConfirmPassword:"Confirme a sua senha",registerConfirmPasswordError:"Não corresponde à senha.",registerSecurityQuestion:"Pergunta de segurança",registerSecurityQuestionError:"A pergunta de segurança deve ter no mínimo 1 caractere e no máximo 120 caracteres.",registerSecurityAnswer:"Resposta de segurança",registerSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",registerNext:"Próximo"}}};function Vt(e){let r,n,i=e[17]("registerFormStep1.registerEmailError")+"";return{c(){r=t("p"),n=ot(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerEmailError")+"")&&ct(n,i)},d(e){e&&st(r)}}}function zt(e){let r,n,i=e[17]("registerFormStep1.registerUsernameError")+"";return{c(){r=t("p"),n=ot(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerUsernameError")+"")&&ct(n,i)},d(e){e&&st(r)}}}function Xt(r){let n,i,s,o,a,l,u,c,p;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=ot(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ut(l,"class","a"),ut(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),ut(l,"transform","translate(0)"),ut(u,"class","a"),ut(u,"cx","2.779"),ut(u,"cy","2.779"),ut(u,"r","2.779"),ut(u,"transform","translate(20.827 30.303)"),ut(a,"transform","translate(-14.185 -27.832)"),ut(n,"class","TogglePasswordVisibility"),ut(n,"part","TogglePasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.843"),ut(n,"height","10.5"),ut(n,"viewBox","0 0 18.843 10.5")},m(e,t){it(e,n,t),nt(n,i),nt(i,s),nt(s,o),nt(n,a),nt(a,l),nt(a,u),c||(p=lt(n,"click",r[37]),c=!0)},p:tt,d(e){e&&st(n),c=!1,p()}}}function Qt(r){let n,i,s,o,a,l,u,c,p,m,f,h,g,d,E;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=ot(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),p=e("path"),m=e("g"),f=e("path"),h=e("path"),g=e("rect"),ut(l,"class","a"),ut(l,"cx","0.05"),ut(l,"cy","0.05"),ut(l,"r","0.05"),ut(l,"transform","translate(121.017 31.148)"),ut(c,"class","a"),ut(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ut(c,"transform","translate(-142.164 -39.123)"),ut(p,"class","a"),ut(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ut(p,"transform","translate(-136.413 -42.068)"),ut(u,"transform","translate(117.499 27.37)"),ut(f,"class","a"),ut(f,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),ut(f,"transform","translate(-110.856 -33.157)"),ut(h,"class","a"),ut(h,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),ut(h,"transform","translate(-130.743 -29.617)"),ut(m,"transform","translate(110.856 24.899)"),ut(g,"class","a"),ut(g,"width","0.972"),ut(g,"height","15.861"),ut(g,"rx","0.486"),ut(g,"transform","translate(114.827 23.858) rotate(-39.315)"),ut(a,"transform","translate(-110.856 -23.242)"),ut(n,"class","TogglePasswordVisibility"),ut(n,"part","TogglePasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.844"),ut(n,"height","12.887"),ut(n,"viewBox","0 0 18.844 12.887")},m(e,t){it(e,n,t),nt(n,i),nt(i,s),nt(s,o),nt(n,a),nt(a,l),nt(a,u),nt(u,c),nt(u,p),nt(a,m),nt(m,f),nt(m,h),nt(a,g),d||(E=lt(n,"click",r[36]),d=!0)},p:tt,d(e){e&&st(n),d=!1,E()}}}function Zt(e){let r,n,i=e[17]("registerFormStep1.registerPasswordError")+"";return{c(){r=t("p"),n=ot(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerPasswordError")+"")&&ct(n,i)},d(e){e&&st(r)}}}function qt(r){let n,i,s,o,a,l,u,c,p;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=ot(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ut(l,"class","a"),ut(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),ut(l,"transform","translate(0)"),ut(u,"class","a"),ut(u,"cx","2.779"),ut(u,"cy","2.779"),ut(u,"r","2.779"),ut(u,"transform","translate(20.827 30.303)"),ut(a,"transform","translate(-14.185 -27.832)"),ut(n,"class","ToggleConfirmPasswordVisibility"),ut(n,"part","ToggleConfirmPasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.843"),ut(n,"height","10.5"),ut(n,"viewBox","0 0 18.843 10.5")},m(e,t){it(e,n,t),nt(n,i),nt(i,s),nt(s,o),nt(n,a),nt(a,l),nt(a,u),c||(p=lt(n,"click",r[41]),c=!0)},p:tt,d(e){e&&st(n),c=!1,p()}}}function Bt(r){let n,i,s,o,a,l,u,c,p,m,f,h,g,d,E;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=ot(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),p=e("path"),m=e("g"),f=e("path"),h=e("path"),g=e("rect"),ut(l,"class","a"),ut(l,"cx","0.05"),ut(l,"cy","0.05"),ut(l,"r","0.05"),ut(l,"transform","translate(121.017 31.148)"),ut(c,"class","a"),ut(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ut(c,"transform","translate(-142.164 -39.123)"),ut(p,"class","a"),ut(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ut(p,"transform","translate(-136.413 -42.068)"),ut(u,"transform","translate(117.499 27.37)"),ut(f,"class","a"),ut(f,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),ut(f,"transform","translate(-110.856 -33.157)"),ut(h,"class","a"),ut(h,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),ut(h,"transform","translate(-130.743 -29.617)"),ut(m,"transform","translate(110.856 24.899)"),ut(g,"class","a"),ut(g,"width","0.972"),ut(g,"height","15.861"),ut(g,"rx","0.486"),ut(g,"transform","translate(114.827 23.858) rotate(-39.315)"),ut(a,"transform","translate(-110.856 -23.242)"),ut(n,"class","ToggleConfirmPasswordVisibility"),ut(n,"part","ToggleConfirmPasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.844"),ut(n,"height","12.887"),ut(n,"viewBox","0 0 18.844 12.887")},m(e,t){it(e,n,t),nt(n,i),nt(i,s),nt(s,o),nt(n,a),nt(a,l),nt(a,u),nt(u,c),nt(u,p),nt(a,m),nt(m,f),nt(m,h),nt(a,g),d||(E=lt(n,"click",r[40]),d=!0)},p:tt,d(e){e&&st(n),d=!1,E()}}}function Yt(e){let r,n,i=e[17]("registerFormStep1.registerConfirmPasswordError")+"";return{c(){r=t("p"),n=ot(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerConfirmPasswordError")+"")&&ct(n,i)},d(e){e&&st(r)}}}function Ht(e){let r,n,i=e[17]("registerFormStep1.registerSecurityQuestionError")+"";return{c(){r=t("p"),n=ot(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerSecurityQuestionError")+"")&&ct(n,i)},d(e){e&&st(r)}}}function Kt(e){let r,n,i=e[17]("registerFormStep1.registerSecurityAnswerError")+"";return{c(){r=t("p"),n=ot(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerSecurityAnswerError")+"")&&ct(n,i)},d(e){e&&st(r)}}}function Wt(r){let n,i,s,o,a,l,u,c,p,m,f,h,g,d,E,y,v,b,w,S,T,A,_,P,C,I,L,N,R,F,O,U,x,M,k,D,G,$,j,V,z,X,Q,Z,q,B,Y,H,K,W,J,ee,te,re,ne,ie,se,oe,ae,le,ue,ce,pe,me,fe,he,ge,de,Ee,ye,ve,be,we,Se,Te,Ae,_e,Pe,Ce,Ie,Le,Ne,Re,Fe,Oe=r[17]("registerFormStep1.registerTitle")+"",Ue=r[17]("registerFormStep1.registerSubtitle")+"",xe=r[17]("registerFormStep1.registerSubtitleLogin")+"",Me=r[17]("registerFormStep1.registerEmail")+"",ke=r[17]("registerFormStep1.registerUsername")+"",De=r[17]("registerFormStep1.registerPassword")+"",Ge=r[17]("registerFormStep1.registerConfirmPassword")+"",$e=r[17]("registerFormStep1.registerSecurityQuestion")+"",je=r[17]("registerFormStep1.registerSecurityAnswer")+"",Ve=r[17]("registerFormStep1.registerNext")+"",ze=r[0]&&Vt(r),Xe=r[1]&&zt(r);function Qe(e){return e[12]?Qt:Xt}let Ze=Qe(r),qe=Ze(r),Be=r[2]&&Zt(r);function Ye(e){return e[13]?Bt:qt}let He=Ye(r),Ke=He(r),We=r[3]&&Yt(r),Je=r[4]&&Ht(r),et=r[5]&&Kt(r);return{c(){n=t("div"),i=t("h2"),s=ot(Oe),o=at(),a=t("p"),l=ot(Ue),u=at(),c=t("span"),p=ot(xe),m=at(),f=t("div"),h=t("div"),g=t("label"),d=ot(Me),E=ot(":"),y=t("span"),y.textContent="*",v=at(),b=t("input"),w=at(),ze&&ze.c(),A=at(),_=t("div"),P=t("label"),C=ot(ke),I=ot(":"),L=t("span"),L.textContent="*",N=at(),R=t("input"),F=at(),Xe&&Xe.c(),x=at(),M=t("div"),k=t("label"),D=ot(De),G=ot(":"),$=t("span"),$.textContent="*",j=at(),V=t("input"),z=at(),qe.c(),X=at(),Be&&Be.c(),q=at(),B=t("div"),Y=t("label"),H=ot(Ge),K=ot(":"),W=t("span"),W.textContent="*",J=at(),ee=t("input"),te=at(),Ke.c(),re=at(),We&&We.c(),se=at(),oe=t("div"),ae=t("label"),le=ot($e),ue=ot(":"),ce=t("span"),ce.textContent="*",pe=at(),me=t("input"),fe=at(),Je&&Je.c(),de=at(),Ee=t("div"),ye=t("label"),ve=ot(je),be=ot(":"),we=t("span"),we.textContent="*",Se=at(),Te=t("input"),Ae=at(),et&&et.c(),Ce=at(),Ie=t("button"),Le=ot(Ve),this.c=tt,ut(i,"class","RegisterFormTitle"),ut(i,"part","RegisterFormTitle"),ut(c,"class","FormLoginCallToAction"),ut(a,"class","RegisterFormSubtitle"),ut(a,"part","RegisterFormSubtitle"),ut(n,"class","RegisterFormHeader"),ut(n,"part","RegisterFormHeader"),ut(y,"class","FormRequired"),ut(y,"part","FormRequired"),ut(g,"for","Email"),ut(b,"type","text"),ut(b,"id","Email"),ut(h,"class",S="EmailContainer "+(r[0]?"InvalidField":"")),ut(h,"part",T="EmailContainer "+(r[0]?"InvalidField":"")),ut(L,"class","FormRequired"),ut(L,"part","FormRequired"),ut(P,"for","UserName"),ut(R,"type","text"),ut(R,"id","UserName"),ut(_,"class",O="UserContainer "+(r[1]?"InvalidField":"")),ut(_,"part",U="UserContainer "+(r[1]?"InvalidField":"")),ut($,"class","FormRequired"),ut($,"part","FormRequired"),ut(k,"for","Password"),ut(V,"type","password"),ut(V,"id","Password"),ut(M,"class",Q="PasswordContainer "+(r[2]?"InvalidField":"")),ut(M,"part",Z="PasswordContainer "+(r[2]?"InvalidField":"")),ut(W,"class","FormRequired"),ut(W,"part","FormRequired"),ut(Y,"for","ConfirmPassword"),ut(ee,"type","password"),ut(ee,"id","ConfirmPassword"),ut(B,"class",ne="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),ut(B,"part",ie="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),ut(ce,"class","FormRequired"),ut(ce,"part","FormRequired"),ut(ae,"for","SecurityQuestion"),ut(me,"type","text"),ut(me,"id","SecurityQuestion"),ut(oe,"class",he="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),ut(oe,"part",ge="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),ut(we,"class","FormRequired"),ut(we,"part","FormRequired"),ut(ye,"for","SecurityAnswer"),ut(Te,"type","text"),ut(Te,"id","SecurityAnswer"),ut(Ee,"class",_e="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),ut(Ee,"part",Pe="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),ut(f,"class","RegisterFormContent"),ut(f,"part","RegisterFormContent"),ut(Ie,"class","RegisterStepNext"),ut(Ie,"part","RegisterStepNext"),Ie.disabled=Ne=!r[16]},m(e,t){it(e,n,t),nt(n,i),nt(i,s),nt(n,o),nt(n,a),nt(a,l),nt(a,u),nt(a,c),nt(c,p),it(e,m,t),it(e,f,t),nt(f,h),nt(h,g),nt(g,d),nt(g,E),nt(g,y),nt(h,v),nt(h,b),pt(b,r[7]),nt(h,w),ze&&ze.m(h,null),nt(f,A),nt(f,_),nt(_,P),nt(P,C),nt(P,I),nt(P,L),nt(_,N),nt(_,R),pt(R,r[6]),nt(_,F),Xe&&Xe.m(_,null),nt(f,x),nt(f,M),nt(M,k),nt(k,D),nt(k,G),nt(k,$),nt(M,j),nt(M,V),pt(V,r[8]),r[35](V),nt(M,z),qe.m(M,null),nt(M,X),Be&&Be.m(M,null),nt(f,q),nt(f,B),nt(B,Y),nt(Y,H),nt(Y,K),nt(Y,W),nt(B,J),nt(B,ee),pt(ee,r[9]),r[39](ee),nt(B,te),Ke.m(B,null),nt(B,re),We&&We.m(B,null),nt(f,se),nt(f,oe),nt(oe,ae),nt(ae,le),nt(ae,ue),nt(ae,ce),nt(oe,pe),nt(oe,me),pt(me,r[10]),nt(oe,fe),Je&&Je.m(oe,null),nt(f,de),nt(f,Ee),nt(Ee,ye),nt(ye,ve),nt(ye,be),nt(ye,we),nt(Ee,Se),nt(Ee,Te),pt(Te,r[11]),nt(Ee,Ae),et&&et.m(Ee,null),it(e,Ce,t),it(e,Ie,t),nt(Ie,Le),Re||(Fe=[lt(c,"click",r[31]),lt(b,"input",r[32]),lt(b,"blur",r[19]),lt(R,"input",r[33]),lt(R,"blur",r[20]),lt(V,"input",r[34]),lt(V,"blur",r[25]),lt(ee,"input",r[38]),lt(ee,"blur",r[26]),lt(me,"input",r[42]),lt(me,"blur",r[27]),lt(Te,"input",r[43]),lt(Te,"keyup",r[28]),lt(Ie,"click",r[29])],Re=!0)},p(e,t){131072&t[0]&&Oe!==(Oe=e[17]("registerFormStep1.registerTitle")+"")&&ct(s,Oe),131072&t[0]&&Ue!==(Ue=e[17]("registerFormStep1.registerSubtitle")+"")&&ct(l,Ue),131072&t[0]&&xe!==(xe=e[17]("registerFormStep1.registerSubtitleLogin")+"")&&ct(p,xe),131072&t[0]&&Me!==(Me=e[17]("registerFormStep1.registerEmail")+"")&&ct(d,Me),128&t[0]&&b.value!==e[7]&&pt(b,e[7]),e[0]?ze?ze.p(e,t):(ze=Vt(e),ze.c(),ze.m(h,null)):ze&&(ze.d(1),ze=null),1&t[0]&&S!==(S="EmailContainer "+(e[0]?"InvalidField":""))&&ut(h,"class",S),1&t[0]&&T!==(T="EmailContainer "+(e[0]?"InvalidField":""))&&ut(h,"part",T),131072&t[0]&&ke!==(ke=e[17]("registerFormStep1.registerUsername")+"")&&ct(C,ke),64&t[0]&&R.value!==e[6]&&pt(R,e[6]),e[1]?Xe?Xe.p(e,t):(Xe=zt(e),Xe.c(),Xe.m(_,null)):Xe&&(Xe.d(1),Xe=null),2&t[0]&&O!==(O="UserContainer "+(e[1]?"InvalidField":""))&&ut(_,"class",O),2&t[0]&&U!==(U="UserContainer "+(e[1]?"InvalidField":""))&&ut(_,"part",U),131072&t[0]&&De!==(De=e[17]("registerFormStep1.registerPassword")+"")&&ct(D,De),256&t[0]&&V.value!==e[8]&&pt(V,e[8]),Ze===(Ze=Qe(e))&&qe?qe.p(e,t):(qe.d(1),qe=Ze(e),qe&&(qe.c(),qe.m(M,X))),e[2]?Be?Be.p(e,t):(Be=Zt(e),Be.c(),Be.m(M,null)):Be&&(Be.d(1),Be=null),4&t[0]&&Q!==(Q="PasswordContainer "+(e[2]?"InvalidField":""))&&ut(M,"class",Q),4&t[0]&&Z!==(Z="PasswordContainer "+(e[2]?"InvalidField":""))&&ut(M,"part",Z),131072&t[0]&&Ge!==(Ge=e[17]("registerFormStep1.registerConfirmPassword")+"")&&ct(H,Ge),512&t[0]&&ee.value!==e[9]&&pt(ee,e[9]),He===(He=Ye(e))&&Ke?Ke.p(e,t):(Ke.d(1),Ke=He(e),Ke&&(Ke.c(),Ke.m(B,re))),e[3]?We?We.p(e,t):(We=Yt(e),We.c(),We.m(B,null)):We&&(We.d(1),We=null),8&t[0]&&ne!==(ne="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&ut(B,"class",ne),8&t[0]&&ie!==(ie="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&ut(B,"part",ie),131072&t[0]&&$e!==($e=e[17]("registerFormStep1.registerSecurityQuestion")+"")&&ct(le,$e),1024&t[0]&&me.value!==e[10]&&pt(me,e[10]),e[4]?Je?Je.p(e,t):(Je=Ht(e),Je.c(),Je.m(oe,null)):Je&&(Je.d(1),Je=null),16&t[0]&&he!==(he="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&ut(oe,"class",he),16&t[0]&&ge!==(ge="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&ut(oe,"part",ge),131072&t[0]&&je!==(je=e[17]("registerFormStep1.registerSecurityAnswer")+"")&&ct(ve,je),2048&t[0]&&Te.value!==e[11]&&pt(Te,e[11]),e[5]?et?et.p(e,t):(et=Kt(e),et.c(),et.m(Ee,null)):et&&(et.d(1),et=null),32&t[0]&&_e!==(_e="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&ut(Ee,"class",_e),32&t[0]&&Pe!==(Pe="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&ut(Ee,"part",Pe),131072&t[0]&&Ve!==(Ve=e[17]("registerFormStep1.registerNext")+"")&&ct(Le,Ve),65536&t[0]&&Ne!==(Ne=!e[16])&&(Ie.disabled=Ne)},i:tt,o:tt,d(e){e&&st(n),e&&st(m),e&&st(f),ze&&ze.d(),Xe&&Xe.d(),r[35](null),qe.d(),Be&&Be.d(),r[39](null),Ke.d(),We&&We.d(),Je&&Je.d(),et&&et.d(),e&&st(Ce),e&&st(Ie),Re=!1,rt(Fe)}}}function Jt(t,e,r){let n;var i=$t;t.$$.on_destroy.push(O(i,e=>r(17,n=e)));let s,o,{lang:a=""}=e,l=!1,u=!1,c=!1,p=!1,m=!1,f=!1,h="",g="",d="",E="",y="",v="",b=!1,w=!1,S=!1;Object.keys(jt).forEach(e=>{bt(e,jt[e])});const T=()=>{r(16,S=!(l||u||c||p||m||f)),(h.length<=0||g.length<=0||d.length<=0||E.length<=0||y.length<=0||v.length<=0)&&r(16,S=!1)},A=()=>{window.postMessage({type:"ToLogin"},window.location.href)},_={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,email:/^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},P=()=>{r(12,b=!0),N()},C=()=>{r(13,w=!0),R()},I=()=>{r(12,b=!1),N()},L=()=>{r(13,w=!1),R()},N=()=>{r(14,s.type=b?"text":"password",s)},R=()=>{r(15,o.type=w?"text":"password",o)},F=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(7,g=e.data.userData.email),r(6,h=e.data.userData.username),r(8,d=e.data.userData.password),r(9,E=e.data.userData.password),r(10,y=e.data.userData.securityQuestion),r(11,v=e.data.userData.securityAnswer),T())};return e=()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}),function(){if(!U)throw new Error("Function called outside component initialization");return U}().$$.on_mount.push(e),t.$$set=e=>{"lang"in e&&r(30,a=e.lang)},t.$$.update=()=>{var e;1073741824&t.$$.dirty[0]&&a&&(e=a,Nt.set(e))},[l,u,c,p,m,f,h,g,d,E,y,v,b,w,s,o,S,n,A,()=>{var e;r(0,(e=g,l=!(_.email.test(e)&&e.length<=100))),T()},()=>{var e;r(1,(e=h,u=!(_.user.test(e)&&e.length<=20))),T()},P,C,I,L,()=>{var e;r(2,(e=d,c=!_.password.test(e))),d!==E&&0<E.length?r(3,p=!0):r(3,p=!1),T()},()=>{r(3,p=!(d===E)),T()},()=>{r(4,m=!(y&&y.length<=120)),T()},()=>{r(5,f=!(v&&v.length<=120)),T()},()=>{var e={userEmail:g,userValue:h,userPassword:d,confirmUserPassword:E,securityQuestion:y,securityAnswer:v};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},a,()=>A(),function(){g=this.value,r(7,g)},function(){h=this.value,r(6,h)},function(){d=this.value,r(8,d)},function(e){x[e?"unshift":"push"](()=>{s=e,r(14,s)})},()=>I(),()=>P(),function(){E=this.value,r(9,E)},function(e){x[e?"unshift":"push"](()=>{o=e,r(15,o)})},()=>L(),()=>C(),function(){y=this.value,r(10,y)},function(){v=this.value,r(11,v)}]}class er extends l{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.RegisterFormTitle{font-size:20px;text-transform:uppercase;font-weight:300;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:var(--emfe-w-color-primary, #D0046C);font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:45px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;bottom:-3px;line-height:10px}.UserContainer .InvalidInput{bottom:-3px}.RegisterStepNext{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);cursor:not-allowed}input::-ms-reveal,input::-ms-clear{display:none}</style>",a(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},Jt,Wt,r,{lang:30},[-1,-1]),e&&(e.target&&it(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["lang"]}get lang(){return this.$$.ctx[30]}set lang(e){this.$set({lang:e}),v()}}return customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",er),er});
|
|
2
2
|
//# sourceMappingURL=general-player-register-form-step1.js.map
|