@everymatrix/general-player-register-form-step1 0.0.216 → 0.0.220

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 Ye(){}function p(e){return e()}function f(){return Object.create(null)}function Ke(e){e.forEach(p)}function h(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function U(e,...t){if(null==e)return Ye;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function He(e,t){e.appendChild(t)}function We(e,t,r){e.insertBefore(t,r||null)}function Je(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 et(e){return document.createTextNode(e)}function tt(){return et(" ")}function rt(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function nt(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function it(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function st(e,t){e.value=null==t?"":t}let F;function m(e){F=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 b(){if(!s){s=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];m(t),function(e){{var t;null!==e.fragment&&(e.update(),Ke(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(y))}}(t.$$)}for(m(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 v=new Set;function a(n,e,t,r,i,s,o=[-1]){var a,l=F;m(n);const u=n.$$={fragment:null,ctx:null,props:s,update:Ye,not_equal:i,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:f(),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(b)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,Ke(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const Ye=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(Ye),Ye.forEach(Je)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(v.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(h);o?o.push(...e):Ke(e),t.$$.on_mount=[]}),a.forEach(y)}(n,e.target,e.anchor,e.customElement),b()}m(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(h);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){Ke(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(Ke(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=Ye}$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=Ye){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=Ye){const r=[e,t];return o.push(r),1===o.length&&(s=i(a)||Ye),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=Ye;const o=()=>{var e;i||(s(),e=a(l?n[0]:n,t),c?t(e):s=h(e)?e:Ye)},e=u.map((e,t)=>U(e,e=>{n[t]=e,i&=~(1<<t),r&&o()},()=>{i|=1<<t}));return r=!0,o(),function(){Ke(e),s()}}).subscribe}}var T=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===S));var t},S="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function _(e,t){return!1!==t.clone&&t.isMergeableObject(e)?I(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 L(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 I;var e=s.customMerge(t);return"function"==typeof e?e:I}()(n[t],i[t],s):o[t]=_(i[t],s))}),o}function I(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||A,r.isMergeableObject=r.isMergeableObject||T,r.cloneUnlessOtherwiseSpecified=_;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):L(e,t,r):_(t,r)}I.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return I(e,t,r)},{})};var N=I,O=function(e,t){return(O=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 R(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}O(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var x,D,k,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===D.literal}function V(e){return e.type===D.number}function z(e){return e.type===D.date}function X(e){return e.type===D.time}function Q(e){return e.type===D.select}function Z(e){return e.type===D.plural}function B(e){return e.type===D.tag}function q(e){return e&&"object"==typeof e&&e.type===k.number}function Y(e){return e&&"object"==typeof e&&e.type===k.dateTime}(me=x=x||{})[me.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",me[me.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",me[me.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",me[me.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",me[me.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",me[me.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",me[me.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",me[me.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",me[me.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",me[me.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",me[me.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",me[me.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",me[me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",me[me.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",me[me.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",me[me.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",me[me.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",me[me.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",me[me.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",me[me.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",me[me.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",me[me.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",me[me.INVALID_TAG=23]="INVALID_TAG",me[me.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",me[me.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",me[me.UNCLOSED_TAG=27]="UNCLOSED_TAG",(ge=D=D||{})[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=k=k||{})[de.number=0]="number",de[de.dateTime=1]="dateTime";var K=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,H=/(?:[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("^"+K.source+"*"),ue=new RegExp(K.source+"*$");function ce(e,t){return{start:e,end:t}}var pe=!!String.prototype.startsWith,fe=!!String.fromCodePoint,he=!!Object.fromEntries,me=!!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},K=!0;try{K="a"===(null===(W=Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===W?void 0:W[0])}catch(Ye){K=!1}var ye,be,ve=pe?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},we=fe?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},Te=he?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},Se=me?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)}be=K?(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=Se(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=(Le.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Le.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&&Ie(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:D.pound,location:ce(s,this.clonePosition())})}}}return{val:n,err:null}},Le.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:D.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()||!Ie(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:D.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()))},Le.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())},Le.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:D.literal,value:n,location:r},err:null}},Le.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ie(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Le.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)},Le.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))},Le.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:D.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()))}},Le.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=be(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:ce(e,this.clonePosition())}},Le.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((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(p=Ae(f.val)).length)return this.error(x.EXPECT_ARGUMENT_STYLE,ce(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:ce(u,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var c=ce(n,this.clonePosition());if(l&&ve(null==l?void 0:l.style,"::",0)){u=_e(l.style.slice(2));if("number"===o)return(f=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?f:{val:{type:D.number,value:r,location:c,style:f.val},err:null};if(0===u.length)return this.error(x.EXPECT_DATE_TIME_SKELETON,c);var p={type:k.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(H,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?D.date:D.time,value:r,location:c,style:p},err:null}}return{val:{type:"number"===o?D.number:"date"===o?D.date:D.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 f,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(),(f=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=f.val}c=this.tryParsePluralOrSelectOptions(e,o,t,c);if(c.err)return c;if((h=this.tryParseArgumentClose(n)).err)return h;var h=ce(n,this.clonePosition());return"select"===o?{val:{type:D.select,value:r,options:Te(c.val),location:h},err:null}:{val:{type:D.plural,value:r,options:Te(c.val),offset:l,pluralType:"plural"===o?"cardinal":"ordinal",location:h},err:null};default:return this.error(x.INVALID_ARGUMENT_TYPE,ce(s,a))}},Le.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})},Le.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}},Le.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:k.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ae(r):{}},err:null}},Le.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}},Le.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)},Le.prototype.offset=function(){return this.position.offset},Le.prototype.isEOF=function(){return this.offset()===this.message.length},Le.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Le.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Se(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Le.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Le.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))},Le.prototype.bumpIf=function(e){if(ve(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Le.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)},Le.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}},Le.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ne(this.char());)this.bump()},Le.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},Le);function Le(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 Ie(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 Oe(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)&&q(e.style)||(z(e)||X(e))&&Y(e.style)?delete e.style.location:B(e)&&r(e.children)})}(r.val),r.val}function Re(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?Ue:Fe,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Ue(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 Fe(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 De(){this.cache=Object.create(null)}De.prototype.has=function(e){return e in this.cache},De.prototype.get=function(e){return this.cache[e]},De.prototype.set=function(e,t){this.cache[e]=t};var ke,Ge={create:function(){return new De}},$e={variadic:function(e,t){return Me(e,this,Fe,t.cache.create(),t.serializer)},monadic:function(e,t){return Me(e,this,Ue,t.cache.create(),t.serializer)}};(K=ke=ke||{}).MISSING_VALUE="MISSING_VALUE",K.INVALID_VALUE="INVALID_VALUE",K.MISSING_INTL_API="MISSING_INTL_API";var je,Ve,ze,Xe,Qe,Ze=(R(ct,Qe=Error),ct.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},ct),Be=(R(ut,Xe=Ze),ut),qe=(R(lt,ze=Ze),lt),ot=(R(at,Ve=Ze),at);function at(e,t){return Ve.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',ke.MISSING_VALUE,t)||this}function lt(e,t,r){return ze.call(this,'Value for "'+e+'" must be of type '+t,ke.INVALID_VALUE,r)||this}function ut(e,t,r,n){return Xe.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',ke.INVALID_VALUE,n)||this}function ct(e,t,r){e=Qe.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function pt(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===D.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 ot(p,o);var f=i[p];if(c.type===D.argument)f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?je.literal:je.object,value:f});else if(z(c)){var h="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,h).format(f)})}else if(X(c))h="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,h).format(f)});else if(V(c))(h="string"==typeof c.style?n.number[c.style]:q(c.style)?c.style.parsedOptions:void 0)&&h.scale&&(f*=h.scale||1),a.push({type:je.literal,value:r.getNumberFormat(t,h).format(f)});else{if(B(c)){var m=c.children,g=c.value,p=i[g];if("function"!=typeof p)throw new qe(g,"function",o);m=p(pt(m,t,r,n,i,s).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?je.literal:je.object,value:e}}))}if(Q(c)){if(!(d=c.options[f]||c.options.other))throw new Be(c.value,f,Object.keys(c.options),o);a.push.apply(a,pt(d.value,t,r,n,i))}else if(Z(c)){if(!(d=c.options["="+f])){if(!Intl.PluralRules)throw new Ze('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ke.MISSING_INTL_API,o);var m=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0)),d=c.options[m]||c.options.other}if(!d)throw new Be(c.value,f,Object.keys(c.options),o);a.push.apply(a,pt(d.value,t,r,n,i,f-(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 ft(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}}}}}(K=je=je||{})[K.literal=0]="literal",K[K.object=1]="object";var ht=(Object.defineProperty(mt,"defaultLocale",{get:function(){return mt.memoizedDefaultLocale||(mt.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),mt.memoizedDefaultLocale},enumerable:!1,configurable:!0}),mt.memoizedDefaultLocale=null,mt.__parse=Oe,mt.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"}}},mt);function mt(e,t,r,n){var i,s,o=this;if(void 0===t&&(t=mt.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 pt(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,!mt.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=mt.__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=mt.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:Re(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:ft((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:$e.variadic}),getDateTimeFormat:Re(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:ft(n.dateTime),strategy:$e.variadic}),getPluralRules:Re(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:ft(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=Rt(r);for(let e=0;e<s.length;e++){var o=(n=s[e],i=t,bt(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 bt(e){return e in Et}function vt(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 Tt(e){return wt[e]}function St(e){return Rt(e).some(e=>{return null===(e=Tt(e))||void 0===e?void 0:e.size})}const _t={};function At(e){if(!St(e))return e in _t?_t[e]:void 0;const t=Rt(e).map(e=>{var t=Tt(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=>vt(t,...e))}(e))).then(()=>St(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 Lt=w(!1);let It;const Nt=w(null);function Ot(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Rt(e,t=Ct.fallbackLocale){e=Ot(e);return t?[...new Set([...e,...Ot(t)])]:e}Nt.subscribe(e=>{It=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Ut=Nt.set;Nt.set=t=>{if(function(e){if(null!=e){var t=Rt(e);for(let e=0;e<t.length;e++){var r=t[e];if(bt(r))return r}}}(t)&&St(t)){var{loadingDelay:r}=Ct;let e;return"undefined"!=typeof window&&null!=It&&r?e=window.setTimeout(()=>Lt.set(!0),r):Lt.set(!0),At(t).then(()=>{Ut(t)}).finally(()=>{clearTimeout(e),Lt.set(!1)})}return Ut(t)},Nt.update=e=>Ut(e(It));const Ft=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=Ft(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)}),Dt=Ft(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)}),kt=Ft(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=Ft((e,t=It)=>new ht(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=It,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 "${Rt(n).join('", "')}".${St(It)?"\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=It}=e,e=Pt(e,["locale"]);return kt(Object.assign({locale:t},e))})(t).format(e)),c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=It}=e,e=Pt(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=It}=e,e=Pt(e,["locale"]);return xt(Object.assign({locale:t},e))})(t).format(e)),c([Nt,yt],()=>(e,t=It)=>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 2 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 2 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 contina minim 2 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"}}};function Vt(e){let r,n,i=e[17]("registerFormStep1.registerEmail")+"";return{c(){r=t("p"),n=et(i),nt(r,"class","InvalidInput")},m(e,t){We(e,r,t),He(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerEmail")+"")&&it(n,i)},d(e){e&&Je(r)}}}function zt(e){let r,n,i=e[17]("registerFormStep1.registerUsernameError")+"";return{c(){r=t("p"),n=et(i),nt(r,"class","InvalidInput")},m(e,t){We(e,r,t),He(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerUsernameError")+"")&&it(n,i)},d(e){e&&Je(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=et(".a{fill:#07072a;}"),a=e("g"),l=e("path"),u=e("circle"),nt(l,"class","a"),nt(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"),nt(l,"transform","translate(0)"),nt(u,"class","a"),nt(u,"cx","2.779"),nt(u,"cy","2.779"),nt(u,"r","2.779"),nt(u,"transform","translate(20.827 30.303)"),nt(a,"transform","translate(-14.185 -27.832)"),nt(n,"class","TogglePasswordVisibility"),nt(n,"xmlns","http://www.w3.org/2000/svg"),nt(n,"width","18.843"),nt(n,"height","10.5"),nt(n,"viewBox","0 0 18.843 10.5")},m(e,t){We(e,n,t),He(n,i),He(i,s),He(s,o),He(n,a),He(a,l),He(a,u),c||(p=rt(n,"click",r[37]),c=!0)},p:Ye,d(e){e&&Je(n),c=!1,p()}}}function Qt(r){let n,i,s,o,a,l,u,c,p,f,h,m,g,d,E;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=et(".a{fill:#07072a;}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),p=e("path"),f=e("g"),h=e("path"),m=e("path"),g=e("rect"),nt(l,"class","a"),nt(l,"cx","0.05"),nt(l,"cy","0.05"),nt(l,"r","0.05"),nt(l,"transform","translate(121.017 31.148)"),nt(c,"class","a"),nt(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),nt(c,"transform","translate(-142.164 -39.123)"),nt(p,"class","a"),nt(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),nt(p,"transform","translate(-136.413 -42.068)"),nt(u,"transform","translate(117.499 27.37)"),nt(h,"class","a"),nt(h,"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"),nt(h,"transform","translate(-110.856 -33.157)"),nt(m,"class","a"),nt(m,"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"),nt(m,"transform","translate(-130.743 -29.617)"),nt(f,"transform","translate(110.856 24.899)"),nt(g,"class","a"),nt(g,"width","0.972"),nt(g,"height","15.861"),nt(g,"rx","0.486"),nt(g,"transform","translate(114.827 23.858) rotate(-39.315)"),nt(a,"transform","translate(-110.856 -23.242)"),nt(n,"class","TogglePasswordVisibility"),nt(n,"xmlns","http://www.w3.org/2000/svg"),nt(n,"width","18.844"),nt(n,"height","12.887"),nt(n,"viewBox","0 0 18.844 12.887")},m(e,t){We(e,n,t),He(n,i),He(i,s),He(s,o),He(n,a),He(a,l),He(a,u),He(u,c),He(u,p),He(a,f),He(f,h),He(f,m),He(a,g),d||(E=rt(n,"click",r[36]),d=!0)},p:Ye,d(e){e&&Je(n),d=!1,E()}}}function Zt(e){let r,n,i=e[17]("registerFormStep1.registerPasswordError")+"";return{c(){r=t("p"),n=et(i),nt(r,"class","InvalidInput")},m(e,t){We(e,r,t),He(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerPasswordError")+"")&&it(n,i)},d(e){e&&Je(r)}}}function Bt(r){let n,i,s,o,a,l,u,c,p;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=et(".a{fill:#07072a;}"),a=e("g"),l=e("path"),u=e("circle"),nt(l,"class","a"),nt(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"),nt(l,"transform","translate(0)"),nt(u,"class","a"),nt(u,"cx","2.779"),nt(u,"cy","2.779"),nt(u,"r","2.779"),nt(u,"transform","translate(20.827 30.303)"),nt(a,"transform","translate(-14.185 -27.832)"),nt(n,"class","ToggleConfirmPasswordVisibility"),nt(n,"xmlns","http://www.w3.org/2000/svg"),nt(n,"width","18.843"),nt(n,"height","10.5"),nt(n,"viewBox","0 0 18.843 10.5")},m(e,t){We(e,n,t),He(n,i),He(i,s),He(s,o),He(n,a),He(a,l),He(a,u),c||(p=rt(n,"click",r[41]),c=!0)},p:Ye,d(e){e&&Je(n),c=!1,p()}}}function qt(r){let n,i,s,o,a,l,u,c,p,f,h,m,g,d,E;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=et(".a{fill:#07072a;}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),p=e("path"),f=e("g"),h=e("path"),m=e("path"),g=e("rect"),nt(l,"class","a"),nt(l,"cx","0.05"),nt(l,"cy","0.05"),nt(l,"r","0.05"),nt(l,"transform","translate(121.017 31.148)"),nt(c,"class","a"),nt(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),nt(c,"transform","translate(-142.164 -39.123)"),nt(p,"class","a"),nt(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),nt(p,"transform","translate(-136.413 -42.068)"),nt(u,"transform","translate(117.499 27.37)"),nt(h,"class","a"),nt(h,"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"),nt(h,"transform","translate(-110.856 -33.157)"),nt(m,"class","a"),nt(m,"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"),nt(m,"transform","translate(-130.743 -29.617)"),nt(f,"transform","translate(110.856 24.899)"),nt(g,"class","a"),nt(g,"width","0.972"),nt(g,"height","15.861"),nt(g,"rx","0.486"),nt(g,"transform","translate(114.827 23.858) rotate(-39.315)"),nt(a,"transform","translate(-110.856 -23.242)"),nt(n,"class","ToggleConfirmPasswordVisibility"),nt(n,"xmlns","http://www.w3.org/2000/svg"),nt(n,"width","18.844"),nt(n,"height","12.887"),nt(n,"viewBox","0 0 18.844 12.887")},m(e,t){We(e,n,t),He(n,i),He(i,s),He(s,o),He(n,a),He(a,l),He(a,u),He(u,c),He(u,p),He(a,f),He(f,h),He(f,m),He(a,g),d||(E=rt(n,"click",r[40]),d=!0)},p:Ye,d(e){e&&Je(n),d=!1,E()}}}function Yt(e){let r,n,i=e[17]("registerFormStep1.registerConfirmPasswordError")+"";return{c(){r=t("p"),n=et(i),nt(r,"class","InvalidInput")},m(e,t){We(e,r,t),He(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerConfirmPasswordError")+"")&&it(n,i)},d(e){e&&Je(r)}}}function Kt(e){let r,n,i=e[17]("registerFormStep1.registerSecurityQuestionError")+"";return{c(){r=t("p"),n=et(i),nt(r,"class","InvalidInput")},m(e,t){We(e,r,t),He(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerSecurityQuestionError")+"")&&it(n,i)},d(e){e&&Je(r)}}}function Ht(e){let r,n,i=e[17]("registerFormStep1.registerSecurityAnswerError")+"";return{c(){r=t("p"),n=et(i),nt(r,"class","InvalidInput")},m(e,t){We(e,r,t),He(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerSecurityAnswerError")+"")&&it(n,i)},d(e){e&&Je(r)}}}function Wt(r){let n,i,s,o,a,l,u,c,p,f,h,m,g,d,E,y,b,v,w,T,S,_,A,P,C,L,I,N,O,R,U,F,M,x,D,k,G,$,j,V,z,X,Q,Z,B,q,Y,K,H,W,J,ee,te,re,ne,ie,se,oe,ae,le,ue,ce,pe,fe,he,me,ge,de,Ee,ye,be,ve,we,Te,Se,_e,Ae,Pe,Ce=r[17]("registerFormStep1.registerTitle")+"",Le=r[17]("registerFormStep1.registerSubtitle")+"",Ie=r[17]("registerFormStep1.registerSubtitleLogin")+"",Ne=r[17]("registerFormStep1.registerEmail")+"",Oe=r[17]("registerFormStep1.registerUsername")+"",Re=r[17]("registerFormStep1.registerPassword")+"",Ue=r[17]("registerFormStep1.registerConfirmPassword")+"",Fe=r[17]("registerFormStep1.registerSecurityQuestion")+"",Me=r[17]("registerFormStep1.registerSecurityAnswer")+"",xe=r[17]("registerFormStep1.registerNext")+"",De=r[0]&&Vt(r),ke=r[1]&&zt(r);function Ge(e){return e[12]?Qt:Xt}let $e=Ge(r),je=$e(r),Ve=r[2]&&Zt(r);function ze(e){return e[13]?qt:Bt}let Xe=ze(r),Qe=Xe(r),Ze=r[3]&&Yt(r),Be=r[4]&&Kt(r),qe=r[5]&&Ht(r);return{c(){n=t("div"),i=t("h2"),s=et(Ce),o=tt(),a=t("p"),l=et(Le),u=tt(),c=t("span"),p=et(Ie),f=tt(),h=t("div"),m=t("div"),g=t("label"),d=et(Ne),E=et(":"),y=t("span"),y.textContent="*",b=tt(),v=t("input"),w=tt(),De&&De.c(),S=tt(),_=t("div"),A=t("label"),P=et(Oe),C=et(":"),L=t("span"),L.textContent="*",I=tt(),N=t("input"),O=tt(),ke&&ke.c(),U=tt(),F=t("div"),M=t("label"),x=et(Re),D=et(":"),k=t("span"),k.textContent="*",G=tt(),$=t("input"),j=tt(),je.c(),V=tt(),Ve&&Ve.c(),X=tt(),Q=t("div"),Z=t("label"),B=et(Ue),q=et(":"),Y=t("span"),Y.textContent="*",K=tt(),H=t("input"),W=tt(),Qe.c(),J=tt(),Ze&&Ze.c(),te=tt(),re=t("div"),ne=t("label"),ie=et(Fe),se=et(":"),oe=t("span"),oe.textContent="*",ae=tt(),le=t("input"),ue=tt(),Be&&Be.c(),pe=tt(),fe=t("div"),he=t("label"),me=et(Me),ge=et(":"),de=t("span"),de.textContent="*",Ee=tt(),ye=t("input"),be=tt(),qe&&qe.c(),we=tt(),Te=t("button"),Se=et(xe),this.c=Ye,nt(i,"class","RegisterFormTitle"),nt(c,"class","FormLoginCallToAction"),nt(a,"class","RegisterFormSubtitle"),nt(n,"class","RegisterFormHeader"),nt(y,"class","FormRequired"),nt(g,"for","Email"),nt(v,"type","text"),nt(v,"id","Email"),nt(m,"class",T="EmailContainer "+(r[0]?"InvalidField":"")),nt(L,"class","FormRequired"),nt(A,"for","UserName"),nt(N,"type","text"),nt(N,"id","UserName"),nt(_,"class",R="UserContainer "+(r[1]?"InvalidField":"")),nt(k,"class","FormRequired"),nt(M,"for","Password"),nt($,"type","password"),nt($,"id","Password"),nt(F,"class",z="PasswordContainer "+(r[2]?"InvalidField":"")),nt(Y,"class","FormRequired"),nt(Z,"for","ConfirmPassword"),nt(H,"type","password"),nt(H,"id","ConfirmPassword"),nt(Q,"class",ee="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),nt(oe,"class","FormRequired"),nt(ne,"for","SecurityQuestion"),nt(le,"type","text"),nt(le,"id","SecurityQuestion"),nt(re,"class",ce="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),nt(de,"class","FormRequired"),nt(he,"for","SecurityAnswer"),nt(ye,"type","text"),nt(ye,"id","SecurityAnswer"),nt(fe,"class",ve="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),nt(h,"class","RegisterFormContent"),nt(Te,"class","RegisterStepNext"),Te.disabled=_e=!r[16]},m(e,t){We(e,n,t),He(n,i),He(i,s),He(n,o),He(n,a),He(a,l),He(a,u),He(a,c),He(c,p),We(e,f,t),We(e,h,t),He(h,m),He(m,g),He(g,d),He(g,E),He(g,y),He(m,b),He(m,v),st(v,r[7]),He(m,w),De&&De.m(m,null),He(h,S),He(h,_),He(_,A),He(A,P),He(A,C),He(A,L),He(_,I),He(_,N),st(N,r[6]),He(_,O),ke&&ke.m(_,null),He(h,U),He(h,F),He(F,M),He(M,x),He(M,D),He(M,k),He(F,G),He(F,$),st($,r[8]),r[35]($),He(F,j),je.m(F,null),He(F,V),Ve&&Ve.m(F,null),He(h,X),He(h,Q),He(Q,Z),He(Z,B),He(Z,q),He(Z,Y),He(Q,K),He(Q,H),st(H,r[9]),r[39](H),He(Q,W),Qe.m(Q,null),He(Q,J),Ze&&Ze.m(Q,null),He(h,te),He(h,re),He(re,ne),He(ne,ie),He(ne,se),He(ne,oe),He(re,ae),He(re,le),st(le,r[10]),He(re,ue),Be&&Be.m(re,null),He(h,pe),He(h,fe),He(fe,he),He(he,me),He(he,ge),He(he,de),He(fe,Ee),He(fe,ye),st(ye,r[11]),He(fe,be),qe&&qe.m(fe,null),We(e,we,t),We(e,Te,t),He(Te,Se),Ae||(Pe=[rt(c,"click",r[31]),rt(v,"input",r[32]),rt(v,"blur",r[19]),rt(N,"input",r[33]),rt(N,"blur",r[20]),rt($,"input",r[34]),rt($,"blur",r[25]),rt(H,"input",r[38]),rt(H,"blur",r[26]),rt(le,"input",r[42]),rt(le,"blur",r[27]),rt(ye,"input",r[43]),rt(ye,"keyup",r[28]),rt(Te,"click",r[29])],Ae=!0)},p(e,t){131072&t[0]&&Ce!==(Ce=e[17]("registerFormStep1.registerTitle")+"")&&it(s,Ce),131072&t[0]&&Le!==(Le=e[17]("registerFormStep1.registerSubtitle")+"")&&it(l,Le),131072&t[0]&&Ie!==(Ie=e[17]("registerFormStep1.registerSubtitleLogin")+"")&&it(p,Ie),131072&t[0]&&Ne!==(Ne=e[17]("registerFormStep1.registerEmail")+"")&&it(d,Ne),128&t[0]&&v.value!==e[7]&&st(v,e[7]),e[0]?De?De.p(e,t):(De=Vt(e),De.c(),De.m(m,null)):De&&(De.d(1),De=null),1&t[0]&&T!==(T="EmailContainer "+(e[0]?"InvalidField":""))&&nt(m,"class",T),131072&t[0]&&Oe!==(Oe=e[17]("registerFormStep1.registerUsername")+"")&&it(P,Oe),64&t[0]&&N.value!==e[6]&&st(N,e[6]),e[1]?ke?ke.p(e,t):(ke=zt(e),ke.c(),ke.m(_,null)):ke&&(ke.d(1),ke=null),2&t[0]&&R!==(R="UserContainer "+(e[1]?"InvalidField":""))&&nt(_,"class",R),131072&t[0]&&Re!==(Re=e[17]("registerFormStep1.registerPassword")+"")&&it(x,Re),256&t[0]&&$.value!==e[8]&&st($,e[8]),$e===($e=Ge(e))&&je?je.p(e,t):(je.d(1),je=$e(e),je&&(je.c(),je.m(F,V))),e[2]?Ve?Ve.p(e,t):(Ve=Zt(e),Ve.c(),Ve.m(F,null)):Ve&&(Ve.d(1),Ve=null),4&t[0]&&z!==(z="PasswordContainer "+(e[2]?"InvalidField":""))&&nt(F,"class",z),131072&t[0]&&Ue!==(Ue=e[17]("registerFormStep1.registerConfirmPassword")+"")&&it(B,Ue),512&t[0]&&H.value!==e[9]&&st(H,e[9]),Xe===(Xe=ze(e))&&Qe?Qe.p(e,t):(Qe.d(1),Qe=Xe(e),Qe&&(Qe.c(),Qe.m(Q,J))),e[3]?Ze?Ze.p(e,t):(Ze=Yt(e),Ze.c(),Ze.m(Q,null)):Ze&&(Ze.d(1),Ze=null),8&t[0]&&ee!==(ee="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&nt(Q,"class",ee),131072&t[0]&&Fe!==(Fe=e[17]("registerFormStep1.registerSecurityQuestion")+"")&&it(ie,Fe),1024&t[0]&&le.value!==e[10]&&st(le,e[10]),e[4]?Be?Be.p(e,t):(Be=Kt(e),Be.c(),Be.m(re,null)):Be&&(Be.d(1),Be=null),16&t[0]&&ce!==(ce="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&nt(re,"class",ce),131072&t[0]&&Me!==(Me=e[17]("registerFormStep1.registerSecurityAnswer")+"")&&it(me,Me),2048&t[0]&&ye.value!==e[11]&&st(ye,e[11]),e[5]?qe?qe.p(e,t):(qe=Ht(e),qe.c(),qe.m(fe,null)):qe&&(qe.d(1),qe=null),32&t[0]&&ve!==(ve="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&nt(fe,"class",ve),131072&t[0]&&xe!==(xe=e[17]("registerFormStep1.registerNext")+"")&&it(Se,xe),65536&t[0]&&_e!==(_e=!e[16])&&(Te.disabled=_e)},i:Ye,o:Ye,d(e){e&&Je(n),e&&Je(f),e&&Je(h),De&&De.d(),ke&&ke.d(),r[35](null),je.d(),Ve&&Ve.d(),r[39](null),Qe.d(),Ze&&Ze.d(),Be&&Be.d(),qe&&qe.d(),e&&Je(we),e&&Je(Te),Ae=!1,Ke(Pe)}}}function Jt(t,e,r){let n;var i=$t;t.$$.on_destroy.push(U(i,e=>r(17,n=e)));let s,o,{lang:a=""}=e,l=!1,u=!1,c=!1,p=!1,f=!1,h=!1,m="",g="",d="",E="",y="",b="",v=!1,w=!1,T=!1;Object.keys(jt).forEach(e=>{vt(e,jt[e])});const S=()=>{r(16,T=!(l||u||c||p||f||h)),(m.length<=0||g.length<=0||d.length<=0||E.length<=0||y.length<=0||b.length<=0)&&r(16,T=!1)},_=()=>{window.postMessage({type:"ToLogin"},window.location.href)},A={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/,email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},P=()=>{r(12,v=!0),N()},C=()=>{r(13,w=!0),O()},L=()=>{r(12,v=!1),N()},I=()=>{r(13,w=!1),O()},N=()=>{r(14,s.type=v?"text":"password",s)},O=()=>{r(15,o.type=w?"text":"password",o)},R=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(7,g=e.data.userData.email),r(6,m=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,b=e.data.userData.securityAnswer),S())};return e=()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R)}),function(){if(!F)throw new Error("Function called outside component initialization");return F}().$$.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,f,h,m,g,d,E,y,b,v,w,s,o,T,n,_,()=>{var e;r(0,(e=g,l=!A.email.test(e))),S()},()=>{var e;r(1,(e=m,u=!A.user.test(e))),S()},P,C,L,I,()=>{var e;r(2,(e=d,c=!A.password.test(e))),d!==E&&0<E.length?r(3,p=!0):r(3,p=!1),S()},()=>{r(3,p=!(d===E)),S()},()=>{r(4,f=!(y&&y.length<=120)),S()},()=>{r(5,h=!(b&&b.length<=120)),S()},()=>{var e={userEmail:g,userValue:m,userPassword:d,confirmUserPassword:E,securityQuestion:y,securityAnswer:b};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},a,()=>_(),function(){g=this.value,r(7,g)},function(){m=this.value,r(6,m)},function(){d=this.value,r(8,d)},function(e){M[e?"unshift":"push"](()=>{s=e,r(14,s)})},()=>L(),()=>P(),function(){E=this.value,r(9,E)},function(e){M[e?"unshift":"push"](()=>{o=e,r(15,o)})},()=>I(),()=>C(),function(){y=this.value,r(10,y)},function(){b=this.value,r(11,b)}]}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:24px;text-transform:uppercase;font-weight:400;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:#D0046C;font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:#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 #D1D1D1;border-radius:5px;padding:5px;font-size:14px;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 #D0046C;background:#FBECF4;color:#D0046C}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:#FD2839}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:45.008px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:#58586B}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.UserContainer .InvalidInput{bottom:-3px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;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&&We(e.target,this,e.anchor),e.props&&(this.$set(e.props),b()))}static get observedAttributes(){return["lang"]}get lang(){return this.$$.ctx[30]}set lang(e){this.$set({lang:e}),b()}}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 Ye(){}function p(e){return e()}function f(){return Object.create(null)}function Ke(e){e.forEach(p)}function h(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function U(e,...t){if(null==e)return Ye;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function He(e,t){e.appendChild(t)}function We(e,t,r){e.insertBefore(t,r||null)}function Je(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 et(e){return document.createTextNode(e)}function tt(){return et(" ")}function rt(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function nt(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function it(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function st(e,t){e.value=null==t?"":t}let F;function m(e){F=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 b(){if(!s){s=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];m(t),function(e){{var t;null!==e.fragment&&(e.update(),Ke(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(y))}}(t.$$)}for(m(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 v=new Set;function a(n,e,t,r,i,s,o=[-1]){var a,l=F;m(n);const u=n.$$={fragment:null,ctx:null,props:s,update:Ye,not_equal:i,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:f(),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(b)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,Ke(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const Ye=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(Ye),Ye.forEach(Je)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(v.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(h);o?o.push(...e):Ke(e),t.$$.on_mount=[]}),a.forEach(y)}(n,e.target,e.anchor,e.customElement),b()}m(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(h);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){Ke(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(Ke(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=Ye}$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=Ye){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=Ye){const r=[e,t];return o.push(r),1===o.length&&(s=i(a)||Ye),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=Ye;const o=()=>{var e;i||(s(),e=a(l?n[0]:n,t),c?t(e):s=h(e)?e:Ye)},e=u.map((e,t)=>U(e,e=>{n[t]=e,i&=~(1<<t),r&&o()},()=>{i|=1<<t}));return r=!0,o(),function(){Ke(e),s()}}).subscribe}}var T=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===S));var t},S="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function _(e,t){return!1!==t.clone&&t.isMergeableObject(e)?I(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 L(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 I;var e=s.customMerge(t);return"function"==typeof e?e:I}()(n[t],i[t],s):o[t]=_(i[t],s))}),o}function I(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||A,r.isMergeableObject=r.isMergeableObject||T,r.cloneUnlessOtherwiseSpecified=_;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):L(e,t,r):_(t,r)}I.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return I(e,t,r)},{})};var N=I,O=function(e,t){return(O=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 R(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}O(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var x,D,k,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===D.literal}function V(e){return e.type===D.number}function z(e){return e.type===D.date}function X(e){return e.type===D.time}function Q(e){return e.type===D.select}function Z(e){return e.type===D.plural}function B(e){return e.type===D.tag}function q(e){return e&&"object"==typeof e&&e.type===k.number}function Y(e){return e&&"object"==typeof e&&e.type===k.dateTime}(me=x=x||{})[me.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",me[me.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",me[me.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",me[me.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",me[me.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",me[me.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",me[me.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",me[me.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",me[me.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",me[me.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",me[me.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",me[me.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",me[me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",me[me.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",me[me.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",me[me.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",me[me.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",me[me.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",me[me.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",me[me.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",me[me.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",me[me.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",me[me.INVALID_TAG=23]="INVALID_TAG",me[me.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",me[me.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",me[me.UNCLOSED_TAG=27]="UNCLOSED_TAG",(ge=D=D||{})[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=k=k||{})[de.number=0]="number",de[de.dateTime=1]="dateTime";var K=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,H=/(?:[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("^"+K.source+"*"),ue=new RegExp(K.source+"*$");function ce(e,t){return{start:e,end:t}}var pe=!!String.prototype.startsWith,fe=!!String.fromCodePoint,he=!!Object.fromEntries,me=!!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},K=!0;try{K="a"===(null===(W=Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===W?void 0:W[0])}catch(Ye){K=!1}var ye,be,ve=pe?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},we=fe?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},Te=he?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},Se=me?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)}be=K?(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=Se(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=(Le.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Le.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&&Ie(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:D.pound,location:ce(s,this.clonePosition())})}}}return{val:n,err:null}},Le.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:D.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()||!Ie(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:D.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()))},Le.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())},Le.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:D.literal,value:n,location:r},err:null}},Le.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ie(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Le.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)},Le.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))},Le.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:D.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()))}},Le.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=be(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:ce(e,this.clonePosition())}},Le.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((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(p=Ae(f.val)).length)return this.error(x.EXPECT_ARGUMENT_STYLE,ce(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:ce(u,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var c=ce(n,this.clonePosition());if(l&&ve(null==l?void 0:l.style,"::",0)){u=_e(l.style.slice(2));if("number"===o)return(f=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?f:{val:{type:D.number,value:r,location:c,style:f.val},err:null};if(0===u.length)return this.error(x.EXPECT_DATE_TIME_SKELETON,c);var p={type:k.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(H,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?D.date:D.time,value:r,location:c,style:p},err:null}}return{val:{type:"number"===o?D.number:"date"===o?D.date:D.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 f,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(),(f=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=f.val}c=this.tryParsePluralOrSelectOptions(e,o,t,c);if(c.err)return c;if((h=this.tryParseArgumentClose(n)).err)return h;var h=ce(n,this.clonePosition());return"select"===o?{val:{type:D.select,value:r,options:Te(c.val),location:h},err:null}:{val:{type:D.plural,value:r,options:Te(c.val),offset:l,pluralType:"plural"===o?"cardinal":"ordinal",location:h},err:null};default:return this.error(x.INVALID_ARGUMENT_TYPE,ce(s,a))}},Le.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})},Le.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}},Le.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:k.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ae(r):{}},err:null}},Le.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}},Le.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)},Le.prototype.offset=function(){return this.position.offset},Le.prototype.isEOF=function(){return this.offset()===this.message.length},Le.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Le.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Se(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Le.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Le.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))},Le.prototype.bumpIf=function(e){if(ve(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Le.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)},Le.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}},Le.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ne(this.char());)this.bump()},Le.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},Le);function Le(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 Ie(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 Oe(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)&&q(e.style)||(z(e)||X(e))&&Y(e.style)?delete e.style.location:B(e)&&r(e.children)})}(r.val),r.val}function Re(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?Ue:Fe,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Ue(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 Fe(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 De(){this.cache=Object.create(null)}De.prototype.has=function(e){return e in this.cache},De.prototype.get=function(e){return this.cache[e]},De.prototype.set=function(e,t){this.cache[e]=t};var ke,Ge={create:function(){return new De}},$e={variadic:function(e,t){return Me(e,this,Fe,t.cache.create(),t.serializer)},monadic:function(e,t){return Me(e,this,Ue,t.cache.create(),t.serializer)}};(K=ke=ke||{}).MISSING_VALUE="MISSING_VALUE",K.INVALID_VALUE="INVALID_VALUE",K.MISSING_INTL_API="MISSING_INTL_API";var je,Ve,ze,Xe,Qe,Ze=(R(ct,Qe=Error),ct.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},ct),Be=(R(ut,Xe=Ze),ut),qe=(R(lt,ze=Ze),lt),ot=(R(at,Ve=Ze),at);function at(e,t){return Ve.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',ke.MISSING_VALUE,t)||this}function lt(e,t,r){return ze.call(this,'Value for "'+e+'" must be of type '+t,ke.INVALID_VALUE,r)||this}function ut(e,t,r,n){return Xe.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',ke.INVALID_VALUE,n)||this}function ct(e,t,r){e=Qe.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function pt(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===D.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 ot(p,o);var f=i[p];if(c.type===D.argument)f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?je.literal:je.object,value:f});else if(z(c)){var h="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,h).format(f)})}else if(X(c))h="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,h).format(f)});else if(V(c))(h="string"==typeof c.style?n.number[c.style]:q(c.style)?c.style.parsedOptions:void 0)&&h.scale&&(f*=h.scale||1),a.push({type:je.literal,value:r.getNumberFormat(t,h).format(f)});else{if(B(c)){var m=c.children,g=c.value,p=i[g];if("function"!=typeof p)throw new qe(g,"function",o);m=p(pt(m,t,r,n,i,s).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?je.literal:je.object,value:e}}))}if(Q(c)){if(!(d=c.options[f]||c.options.other))throw new Be(c.value,f,Object.keys(c.options),o);a.push.apply(a,pt(d.value,t,r,n,i))}else if(Z(c)){if(!(d=c.options["="+f])){if(!Intl.PluralRules)throw new Ze('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ke.MISSING_INTL_API,o);var m=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0)),d=c.options[m]||c.options.other}if(!d)throw new Be(c.value,f,Object.keys(c.options),o);a.push.apply(a,pt(d.value,t,r,n,i,f-(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 ft(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}}}}}(K=je=je||{})[K.literal=0]="literal",K[K.object=1]="object";var ht=(Object.defineProperty(mt,"defaultLocale",{get:function(){return mt.memoizedDefaultLocale||(mt.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),mt.memoizedDefaultLocale},enumerable:!1,configurable:!0}),mt.memoizedDefaultLocale=null,mt.__parse=Oe,mt.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"}}},mt);function mt(e,t,r,n){var i,s,o=this;if(void 0===t&&(t=mt.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 pt(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,!mt.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=mt.__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=mt.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:Re(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:ft((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:$e.variadic}),getDateTimeFormat:Re(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:ft(n.dateTime),strategy:$e.variadic}),getPluralRules:Re(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:ft(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=Rt(r);for(let e=0;e<s.length;e++){var o=(n=s[e],i=t,bt(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 bt(e){return e in Et}function vt(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 Tt(e){return wt[e]}function St(e){return Rt(e).some(e=>{return null===(e=Tt(e))||void 0===e?void 0:e.size})}const _t={};function At(e){if(!St(e))return e in _t?_t[e]:void 0;const t=Rt(e).map(e=>{var t=Tt(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=>vt(t,...e))}(e))).then(()=>St(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 Lt=w(!1);let It;const Nt=w(null);function Ot(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Rt(e,t=Ct.fallbackLocale){e=Ot(e);return t?[...new Set([...e,...Ot(t)])]:e}Nt.subscribe(e=>{It=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Ut=Nt.set;Nt.set=t=>{if(function(e){if(null!=e){var t=Rt(e);for(let e=0;e<t.length;e++){var r=t[e];if(bt(r))return r}}}(t)&&St(t)){var{loadingDelay:r}=Ct;let e;return"undefined"!=typeof window&&null!=It&&r?e=window.setTimeout(()=>Lt.set(!0),r):Lt.set(!0),At(t).then(()=>{Ut(t)}).finally(()=>{clearTimeout(e),Lt.set(!1)})}return Ut(t)},Nt.update=e=>Ut(e(It));const Ft=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=Ft(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)}),Dt=Ft(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)}),kt=Ft(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=Ft((e,t=It)=>new ht(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=It,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 "${Rt(n).join('", "')}".${St(It)?"\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=It}=e,e=Pt(e,["locale"]);return kt(Object.assign({locale:t},e))})(t).format(e)),c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=It}=e,e=Pt(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=It}=e,e=Pt(e,["locale"]);return xt(Object.assign({locale:t},e))})(t).format(e)),c([Nt,yt],()=>(e,t=It)=>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 2 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 2 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 contina minim 2 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"}}};function Vt(e){let r,n,i=e[17]("registerFormStep1.registerEmail")+"";return{c(){r=t("p"),n=et(i),nt(r,"class","InvalidInput")},m(e,t){We(e,r,t),He(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerEmail")+"")&&it(n,i)},d(e){e&&Je(r)}}}function zt(e){let r,n,i=e[17]("registerFormStep1.registerUsernameError")+"";return{c(){r=t("p"),n=et(i),nt(r,"class","InvalidInput")},m(e,t){We(e,r,t),He(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerUsernameError")+"")&&it(n,i)},d(e){e&&Je(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=et(".a{fill:#07072a;}"),a=e("g"),l=e("path"),u=e("circle"),nt(l,"class","a"),nt(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"),nt(l,"transform","translate(0)"),nt(u,"class","a"),nt(u,"cx","2.779"),nt(u,"cy","2.779"),nt(u,"r","2.779"),nt(u,"transform","translate(20.827 30.303)"),nt(a,"transform","translate(-14.185 -27.832)"),nt(n,"class","TogglePasswordVisibility"),nt(n,"xmlns","http://www.w3.org/2000/svg"),nt(n,"width","18.843"),nt(n,"height","10.5"),nt(n,"viewBox","0 0 18.843 10.5")},m(e,t){We(e,n,t),He(n,i),He(i,s),He(s,o),He(n,a),He(a,l),He(a,u),c||(p=rt(n,"click",r[37]),c=!0)},p:Ye,d(e){e&&Je(n),c=!1,p()}}}function Qt(r){let n,i,s,o,a,l,u,c,p,f,h,m,g,d,E;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=et(".a{fill:#07072a;}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),p=e("path"),f=e("g"),h=e("path"),m=e("path"),g=e("rect"),nt(l,"class","a"),nt(l,"cx","0.05"),nt(l,"cy","0.05"),nt(l,"r","0.05"),nt(l,"transform","translate(121.017 31.148)"),nt(c,"class","a"),nt(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),nt(c,"transform","translate(-142.164 -39.123)"),nt(p,"class","a"),nt(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),nt(p,"transform","translate(-136.413 -42.068)"),nt(u,"transform","translate(117.499 27.37)"),nt(h,"class","a"),nt(h,"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"),nt(h,"transform","translate(-110.856 -33.157)"),nt(m,"class","a"),nt(m,"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"),nt(m,"transform","translate(-130.743 -29.617)"),nt(f,"transform","translate(110.856 24.899)"),nt(g,"class","a"),nt(g,"width","0.972"),nt(g,"height","15.861"),nt(g,"rx","0.486"),nt(g,"transform","translate(114.827 23.858) rotate(-39.315)"),nt(a,"transform","translate(-110.856 -23.242)"),nt(n,"class","TogglePasswordVisibility"),nt(n,"xmlns","http://www.w3.org/2000/svg"),nt(n,"width","18.844"),nt(n,"height","12.887"),nt(n,"viewBox","0 0 18.844 12.887")},m(e,t){We(e,n,t),He(n,i),He(i,s),He(s,o),He(n,a),He(a,l),He(a,u),He(u,c),He(u,p),He(a,f),He(f,h),He(f,m),He(a,g),d||(E=rt(n,"click",r[36]),d=!0)},p:Ye,d(e){e&&Je(n),d=!1,E()}}}function Zt(e){let r,n,i=e[17]("registerFormStep1.registerPasswordError")+"";return{c(){r=t("p"),n=et(i),nt(r,"class","InvalidInput")},m(e,t){We(e,r,t),He(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerPasswordError")+"")&&it(n,i)},d(e){e&&Je(r)}}}function Bt(r){let n,i,s,o,a,l,u,c,p;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=et(".a{fill:#07072a;}"),a=e("g"),l=e("path"),u=e("circle"),nt(l,"class","a"),nt(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"),nt(l,"transform","translate(0)"),nt(u,"class","a"),nt(u,"cx","2.779"),nt(u,"cy","2.779"),nt(u,"r","2.779"),nt(u,"transform","translate(20.827 30.303)"),nt(a,"transform","translate(-14.185 -27.832)"),nt(n,"class","ToggleConfirmPasswordVisibility"),nt(n,"xmlns","http://www.w3.org/2000/svg"),nt(n,"width","18.843"),nt(n,"height","10.5"),nt(n,"viewBox","0 0 18.843 10.5")},m(e,t){We(e,n,t),He(n,i),He(i,s),He(s,o),He(n,a),He(a,l),He(a,u),c||(p=rt(n,"click",r[41]),c=!0)},p:Ye,d(e){e&&Je(n),c=!1,p()}}}function qt(r){let n,i,s,o,a,l,u,c,p,f,h,m,g,d,E;return{c(){n=e("svg"),i=e("defs"),s=e("style"),o=et(".a{fill:#07072a;}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),p=e("path"),f=e("g"),h=e("path"),m=e("path"),g=e("rect"),nt(l,"class","a"),nt(l,"cx","0.05"),nt(l,"cy","0.05"),nt(l,"r","0.05"),nt(l,"transform","translate(121.017 31.148)"),nt(c,"class","a"),nt(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),nt(c,"transform","translate(-142.164 -39.123)"),nt(p,"class","a"),nt(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),nt(p,"transform","translate(-136.413 -42.068)"),nt(u,"transform","translate(117.499 27.37)"),nt(h,"class","a"),nt(h,"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"),nt(h,"transform","translate(-110.856 -33.157)"),nt(m,"class","a"),nt(m,"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"),nt(m,"transform","translate(-130.743 -29.617)"),nt(f,"transform","translate(110.856 24.899)"),nt(g,"class","a"),nt(g,"width","0.972"),nt(g,"height","15.861"),nt(g,"rx","0.486"),nt(g,"transform","translate(114.827 23.858) rotate(-39.315)"),nt(a,"transform","translate(-110.856 -23.242)"),nt(n,"class","ToggleConfirmPasswordVisibility"),nt(n,"xmlns","http://www.w3.org/2000/svg"),nt(n,"width","18.844"),nt(n,"height","12.887"),nt(n,"viewBox","0 0 18.844 12.887")},m(e,t){We(e,n,t),He(n,i),He(i,s),He(s,o),He(n,a),He(a,l),He(a,u),He(u,c),He(u,p),He(a,f),He(f,h),He(f,m),He(a,g),d||(E=rt(n,"click",r[40]),d=!0)},p:Ye,d(e){e&&Je(n),d=!1,E()}}}function Yt(e){let r,n,i=e[17]("registerFormStep1.registerConfirmPasswordError")+"";return{c(){r=t("p"),n=et(i),nt(r,"class","InvalidInput")},m(e,t){We(e,r,t),He(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerConfirmPasswordError")+"")&&it(n,i)},d(e){e&&Je(r)}}}function Kt(e){let r,n,i=e[17]("registerFormStep1.registerSecurityQuestionError")+"";return{c(){r=t("p"),n=et(i),nt(r,"class","InvalidInput")},m(e,t){We(e,r,t),He(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerSecurityQuestionError")+"")&&it(n,i)},d(e){e&&Je(r)}}}function Ht(e){let r,n,i=e[17]("registerFormStep1.registerSecurityAnswerError")+"";return{c(){r=t("p"),n=et(i),nt(r,"class","InvalidInput")},m(e,t){We(e,r,t),He(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerSecurityAnswerError")+"")&&it(n,i)},d(e){e&&Je(r)}}}function Wt(r){let n,i,s,o,a,l,u,c,p,f,h,m,g,d,E,y,b,v,w,T,S,_,A,P,C,L,I,N,O,R,U,F,M,x,D,k,G,$,j,V,z,X,Q,Z,B,q,Y,K,H,W,J,ee,te,re,ne,ie,se,oe,ae,le,ue,ce,pe,fe,he,me,ge,de,Ee,ye,be,ve,we,Te,Se,_e,Ae,Pe,Ce=r[17]("registerFormStep1.registerTitle")+"",Le=r[17]("registerFormStep1.registerSubtitle")+"",Ie=r[17]("registerFormStep1.registerSubtitleLogin")+"",Ne=r[17]("registerFormStep1.registerEmail")+"",Oe=r[17]("registerFormStep1.registerUsername")+"",Re=r[17]("registerFormStep1.registerPassword")+"",Ue=r[17]("registerFormStep1.registerConfirmPassword")+"",Fe=r[17]("registerFormStep1.registerSecurityQuestion")+"",Me=r[17]("registerFormStep1.registerSecurityAnswer")+"",xe=r[17]("registerFormStep1.registerNext")+"",De=r[0]&&Vt(r),ke=r[1]&&zt(r);function Ge(e){return e[12]?Qt:Xt}let $e=Ge(r),je=$e(r),Ve=r[2]&&Zt(r);function ze(e){return e[13]?qt:Bt}let Xe=ze(r),Qe=Xe(r),Ze=r[3]&&Yt(r),Be=r[4]&&Kt(r),qe=r[5]&&Ht(r);return{c(){n=t("div"),i=t("h2"),s=et(Ce),o=tt(),a=t("p"),l=et(Le),u=tt(),c=t("span"),p=et(Ie),f=tt(),h=t("div"),m=t("div"),g=t("label"),d=et(Ne),E=et(":"),y=t("span"),y.textContent="*",b=tt(),v=t("input"),w=tt(),De&&De.c(),S=tt(),_=t("div"),A=t("label"),P=et(Oe),C=et(":"),L=t("span"),L.textContent="*",I=tt(),N=t("input"),O=tt(),ke&&ke.c(),U=tt(),F=t("div"),M=t("label"),x=et(Re),D=et(":"),k=t("span"),k.textContent="*",G=tt(),$=t("input"),j=tt(),je.c(),V=tt(),Ve&&Ve.c(),X=tt(),Q=t("div"),Z=t("label"),B=et(Ue),q=et(":"),Y=t("span"),Y.textContent="*",K=tt(),H=t("input"),W=tt(),Qe.c(),J=tt(),Ze&&Ze.c(),te=tt(),re=t("div"),ne=t("label"),ie=et(Fe),se=et(":"),oe=t("span"),oe.textContent="*",ae=tt(),le=t("input"),ue=tt(),Be&&Be.c(),pe=tt(),fe=t("div"),he=t("label"),me=et(Me),ge=et(":"),de=t("span"),de.textContent="*",Ee=tt(),ye=t("input"),be=tt(),qe&&qe.c(),we=tt(),Te=t("button"),Se=et(xe),this.c=Ye,nt(i,"class","RegisterFormTitle"),nt(c,"class","FormLoginCallToAction"),nt(a,"class","RegisterFormSubtitle"),nt(n,"class","RegisterFormHeader"),nt(y,"class","FormRequired"),nt(g,"for","Email"),nt(v,"type","text"),nt(v,"id","Email"),nt(m,"class",T="EmailContainer "+(r[0]?"InvalidField":"")),nt(L,"class","FormRequired"),nt(A,"for","UserName"),nt(N,"type","text"),nt(N,"id","UserName"),nt(_,"class",R="UserContainer "+(r[1]?"InvalidField":"")),nt(k,"class","FormRequired"),nt(M,"for","Password"),nt($,"type","password"),nt($,"id","Password"),nt(F,"class",z="PasswordContainer "+(r[2]?"InvalidField":"")),nt(Y,"class","FormRequired"),nt(Z,"for","ConfirmPassword"),nt(H,"type","password"),nt(H,"id","ConfirmPassword"),nt(Q,"class",ee="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),nt(oe,"class","FormRequired"),nt(ne,"for","SecurityQuestion"),nt(le,"type","text"),nt(le,"id","SecurityQuestion"),nt(re,"class",ce="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),nt(de,"class","FormRequired"),nt(he,"for","SecurityAnswer"),nt(ye,"type","text"),nt(ye,"id","SecurityAnswer"),nt(fe,"class",ve="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),nt(h,"class","RegisterFormContent"),nt(Te,"class","RegisterStepNext"),Te.disabled=_e=!r[16]},m(e,t){We(e,n,t),He(n,i),He(i,s),He(n,o),He(n,a),He(a,l),He(a,u),He(a,c),He(c,p),We(e,f,t),We(e,h,t),He(h,m),He(m,g),He(g,d),He(g,E),He(g,y),He(m,b),He(m,v),st(v,r[7]),He(m,w),De&&De.m(m,null),He(h,S),He(h,_),He(_,A),He(A,P),He(A,C),He(A,L),He(_,I),He(_,N),st(N,r[6]),He(_,O),ke&&ke.m(_,null),He(h,U),He(h,F),He(F,M),He(M,x),He(M,D),He(M,k),He(F,G),He(F,$),st($,r[8]),r[35]($),He(F,j),je.m(F,null),He(F,V),Ve&&Ve.m(F,null),He(h,X),He(h,Q),He(Q,Z),He(Z,B),He(Z,q),He(Z,Y),He(Q,K),He(Q,H),st(H,r[9]),r[39](H),He(Q,W),Qe.m(Q,null),He(Q,J),Ze&&Ze.m(Q,null),He(h,te),He(h,re),He(re,ne),He(ne,ie),He(ne,se),He(ne,oe),He(re,ae),He(re,le),st(le,r[10]),He(re,ue),Be&&Be.m(re,null),He(h,pe),He(h,fe),He(fe,he),He(he,me),He(he,ge),He(he,de),He(fe,Ee),He(fe,ye),st(ye,r[11]),He(fe,be),qe&&qe.m(fe,null),We(e,we,t),We(e,Te,t),He(Te,Se),Ae||(Pe=[rt(c,"click",r[31]),rt(v,"input",r[32]),rt(v,"blur",r[19]),rt(N,"input",r[33]),rt(N,"blur",r[20]),rt($,"input",r[34]),rt($,"blur",r[25]),rt(H,"input",r[38]),rt(H,"blur",r[26]),rt(le,"input",r[42]),rt(le,"blur",r[27]),rt(ye,"input",r[43]),rt(ye,"keyup",r[28]),rt(Te,"click",r[29])],Ae=!0)},p(e,t){131072&t[0]&&Ce!==(Ce=e[17]("registerFormStep1.registerTitle")+"")&&it(s,Ce),131072&t[0]&&Le!==(Le=e[17]("registerFormStep1.registerSubtitle")+"")&&it(l,Le),131072&t[0]&&Ie!==(Ie=e[17]("registerFormStep1.registerSubtitleLogin")+"")&&it(p,Ie),131072&t[0]&&Ne!==(Ne=e[17]("registerFormStep1.registerEmail")+"")&&it(d,Ne),128&t[0]&&v.value!==e[7]&&st(v,e[7]),e[0]?De?De.p(e,t):(De=Vt(e),De.c(),De.m(m,null)):De&&(De.d(1),De=null),1&t[0]&&T!==(T="EmailContainer "+(e[0]?"InvalidField":""))&&nt(m,"class",T),131072&t[0]&&Oe!==(Oe=e[17]("registerFormStep1.registerUsername")+"")&&it(P,Oe),64&t[0]&&N.value!==e[6]&&st(N,e[6]),e[1]?ke?ke.p(e,t):(ke=zt(e),ke.c(),ke.m(_,null)):ke&&(ke.d(1),ke=null),2&t[0]&&R!==(R="UserContainer "+(e[1]?"InvalidField":""))&&nt(_,"class",R),131072&t[0]&&Re!==(Re=e[17]("registerFormStep1.registerPassword")+"")&&it(x,Re),256&t[0]&&$.value!==e[8]&&st($,e[8]),$e===($e=Ge(e))&&je?je.p(e,t):(je.d(1),je=$e(e),je&&(je.c(),je.m(F,V))),e[2]?Ve?Ve.p(e,t):(Ve=Zt(e),Ve.c(),Ve.m(F,null)):Ve&&(Ve.d(1),Ve=null),4&t[0]&&z!==(z="PasswordContainer "+(e[2]?"InvalidField":""))&&nt(F,"class",z),131072&t[0]&&Ue!==(Ue=e[17]("registerFormStep1.registerConfirmPassword")+"")&&it(B,Ue),512&t[0]&&H.value!==e[9]&&st(H,e[9]),Xe===(Xe=ze(e))&&Qe?Qe.p(e,t):(Qe.d(1),Qe=Xe(e),Qe&&(Qe.c(),Qe.m(Q,J))),e[3]?Ze?Ze.p(e,t):(Ze=Yt(e),Ze.c(),Ze.m(Q,null)):Ze&&(Ze.d(1),Ze=null),8&t[0]&&ee!==(ee="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&nt(Q,"class",ee),131072&t[0]&&Fe!==(Fe=e[17]("registerFormStep1.registerSecurityQuestion")+"")&&it(ie,Fe),1024&t[0]&&le.value!==e[10]&&st(le,e[10]),e[4]?Be?Be.p(e,t):(Be=Kt(e),Be.c(),Be.m(re,null)):Be&&(Be.d(1),Be=null),16&t[0]&&ce!==(ce="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&nt(re,"class",ce),131072&t[0]&&Me!==(Me=e[17]("registerFormStep1.registerSecurityAnswer")+"")&&it(me,Me),2048&t[0]&&ye.value!==e[11]&&st(ye,e[11]),e[5]?qe?qe.p(e,t):(qe=Ht(e),qe.c(),qe.m(fe,null)):qe&&(qe.d(1),qe=null),32&t[0]&&ve!==(ve="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&nt(fe,"class",ve),131072&t[0]&&xe!==(xe=e[17]("registerFormStep1.registerNext")+"")&&it(Se,xe),65536&t[0]&&_e!==(_e=!e[16])&&(Te.disabled=_e)},i:Ye,o:Ye,d(e){e&&Je(n),e&&Je(f),e&&Je(h),De&&De.d(),ke&&ke.d(),r[35](null),je.d(),Ve&&Ve.d(),r[39](null),Qe.d(),Ze&&Ze.d(),Be&&Be.d(),qe&&qe.d(),e&&Je(we),e&&Je(Te),Ae=!1,Ke(Pe)}}}function Jt(t,e,r){let n;var i=$t;t.$$.on_destroy.push(U(i,e=>r(17,n=e)));let s,o,{lang:a=""}=e,l=!1,u=!1,c=!1,p=!1,f=!1,h=!1,m="",g="",d="",E="",y="",b="",v=!1,w=!1,T=!1;Object.keys(jt).forEach(e=>{vt(e,jt[e])});const S=()=>{r(16,T=!(l||u||c||p||f||h)),(m.length<=0||g.length<=0||d.length<=0||E.length<=0||y.length<=0||b.length<=0)&&r(16,T=!1)},_=()=>{window.postMessage({type:"ToLogin"},window.location.href)},A={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/,email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},P=()=>{r(12,v=!0),N()},C=()=>{r(13,w=!0),O()},L=()=>{r(12,v=!1),N()},I=()=>{r(13,w=!1),O()},N=()=>{r(14,s.type=v?"text":"password",s)},O=()=>{r(15,o.type=w?"text":"password",o)},R=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(7,g=e.data.userData.email),r(6,m=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,b=e.data.userData.securityAnswer),S())};return e=()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R)}),function(){if(!F)throw new Error("Function called outside component initialization");return F}().$$.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,f,h,m,g,d,E,y,b,v,w,s,o,T,n,_,()=>{var e;r(0,(e=g,l=!A.email.test(e))),S()},()=>{var e;r(1,(e=m,u=!A.user.test(e))),S()},P,C,L,I,()=>{var e;r(2,(e=d,c=!A.password.test(e))),d!==E&&0<E.length?r(3,p=!0):r(3,p=!1),S()},()=>{r(3,p=!(d===E)),S()},()=>{r(4,f=!(y&&y.length<=120)),S()},()=>{r(5,h=!(b&&b.length<=120)),S()},()=>{var e={userEmail:g,userValue:m,userPassword:d,confirmUserPassword:E,securityQuestion:y,securityAnswer:b};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},a,()=>_(),function(){g=this.value,r(7,g)},function(){m=this.value,r(6,m)},function(){d=this.value,r(8,d)},function(e){M[e?"unshift":"push"](()=>{s=e,r(14,s)})},()=>L(),()=>P(),function(){E=this.value,r(9,E)},function(e){M[e?"unshift":"push"](()=>{o=e,r(15,o)})},()=>I(),()=>C(),function(){y=this.value,r(10,y)},function(){b=this.value,r(11,b)}]}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:#D0046C;font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:#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 #D1D1D1;border-radius:5px;padding:5px;font-size:14px;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 #D0046C;background:#FBECF4;color:#D0046C}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:#FD2839}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:45.008px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:#58586B}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.UserContainer .InvalidInput{bottom:-3px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;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&&We(e.target,this,e.anchor),e.props&&(this.$set(e.props),b()))}static get observedAttributes(){return["lang"]}get lang(){return this.$$.ctx[30]}set lang(e){this.$set({lang:e}),b()}}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