/*! For license information please see main~1f20a385.cc80b90b.chunk.js.LICENSE.txt */ (this["webpackJsonpgonzo-test-client"]=this["webpackJsonpgonzo-test-client"]||[]).push([[14],{"0fN9":function(t,e,n){"use strict";(function(t){var i=n("prSB"),o=n("icFm");let r,s,a;"function"===typeof fetch&&("undefined"!==typeof t&&t.fetch?r=t.fetch:"undefined"!==typeof window&&window.fetch&&(r=window.fetch)),"function"===typeof XMLHttpRequest&&("undefined"!==typeof t&&t.XMLHttpRequest?s=t.XMLHttpRequest:"undefined"!==typeof window&&window.XMLHttpRequest&&(s=window.XMLHttpRequest)),"function"===typeof ActiveXObject&&("undefined"!==typeof t&&t.ActiveXObject?a=t.ActiveXObject:"undefined"!==typeof window&&window.ActiveXObject&&(a=window.ActiveXObject)),!r&&o&&(r=o.default||o);const c=(t,e)=>{if(e&&"object"===typeof e){let n="";for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);if(!n)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+n.slice(1)}return t};e.a=(t,e,n,o)=>("function"===typeof n&&(o=n,n=void 0),o=o||(()=>{}),r?((t,e,n,o)=>{t.queryStringParams&&(e=c(e,t.queryStringParams));const s=Object(i.a)({},t.customHeaders||{});n&&(s["Content-Type"]="application/json"),r(e,Object(i.a)({method:n?"POST":"GET",body:n?t.stringify(n):void 0,headers:s},"function"===typeof t.requestOptions?t.requestOptions(n):t.requestOptions)).then(t=>{if(!t.ok)return o(t.statusText||"Error",{status:t.status});t.text().then(e=>{o(null,{status:t.status,data:e})}).catch(o)}).catch(o)})(t,e,n,o):"function"===typeof XMLHttpRequest||"function"===typeof ActiveXObject?((t,e,n,i)=>{n&&"object"===typeof n&&(n=c("",n).slice(1)),t.queryStringParams&&(e=c(e,t.queryStringParams));try{let r;r=s?new s:new a("MSXML2.XMLHTTP.3.0"),r.open(n?"POST":"GET",e,1),t.crossDomain||r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.withCredentials=!!t.withCredentials,n&&r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.overrideMimeType&&r.overrideMimeType("application/json");let c=t.customHeaders;if(c="function"===typeof c?c():c,c)for(var o in c)r.setRequestHeader(o,c[o]);r.onreadystatechange=()=>{r.readyState>3&&i(r.statusText,{status:r.status,data:r.responseText})},r.send(n)}catch(r){console&&console.log(r)}})(t,e,n,o):void 0)}).call(this,n("yLpj"))},"2mql":function(t,e,n){"use strict";var i=n("TOwV"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(t){return i.isMemo(t)?s:a[t.$$typeof]||o}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=s;var u=Object.defineProperty,h=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,n,i){if("string"!==typeof n){if(d){var o=p(n);o&&o!==d&&t(e,o,i)}var s=h(n);l&&(s=s.concat(l(n)));for(var a=c(e),g=c(n),v=0;v=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-n,this.endian);for(var o=0;o>>24&255,i[o++]=t>>>16&255,i[o++]=t>>>8&255,i[o++]=255&t}else for(i[o++]=255&t,i[o++]=t>>>8&255,i[o++]=t>>>16&255,i[o++]=t>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,r=8;r1&&void 0!==arguments[1]?arguments[1]:{};Object(i.a)(this,t),this.backends=[],this.type="backend",this.init(e,n)}return Object(o.a)(t,[{key:"init",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;this.services=t,this.options=c(n,this.options||{},{}),this.options.backends&&this.options.backends.forEach((function(n,o){e.backends[o]=e.backends[o]||u(n),e.backends[o].init(t,e.options.backendOptions[o],i)}))}},{key:"read",value:function(t,e,n){var i=this,o=this.backends.length,r=function n(o,r){if(!(o<0)){var s=i.backends[o];s.save?(s.save(t,e,r),n(o-1,r)):n(o-1,r)}};!function s(a){if(a>=o)return n(new Error("non of the backend loaded data;",!0));var c=i.backends[a];c.read?c.read(t,e,(function(t,e){!t&&e&&Object.keys(e).length>-1?(n(null,e,a),r(a-1,e)):s(a+1)})):s(a+1)}(0)}},{key:"create",value:function(t,e,n,i){this.backends.forEach((function(o){o.create&&o.create(t,e,n,i)}))}}]),t}();h.type="backend",e.a=h},Fugr:function(t,e,n){"use strict";var i=n("1OyB"),o=n("vuIU"),r=[],s=r.forEach,a=r.slice;function c(t){return s.call(a.call(arguments,1),(function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])})),t}var u,h=function(t,e,n,i){var o,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/"};if(n){var s=new Date;s.setTime(s.getTime()+60*n*1e3),o="; expires="+s.toUTCString()}else o="";i=i?"domain="+i+";":"",r=Object.keys(r).reduce((function(t,e){return t+";"+e.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))+"="+r[e]}),""),document.cookie=t+"="+encodeURIComponent(e)+o+";"+i+r},l=function(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i0)n[i].substring(0,o)===t.lookupQuerystring&&(e=n[i].substring(o+1))}return e}};try{u="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(w){u=!1}var d={name:"localStorage",lookup:function(t){var e;if(t.lookupLocalStorage&&u){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupLocalStorage&&u&&window.localStorage.setItem(e.lookupLocalStorage,t)}},g={name:"navigator",lookup:function(t){var e=[];if("undefined"!==typeof navigator){if(navigator.languages)for(var n=0;n0?e:void 0}},v={name:"htmlTag",lookup:function(t){var e,n=t.htmlTag||("undefined"!==typeof document?document.documentElement:null);return n&&"function"===typeof n.getAttribute&&(e=n.getAttribute("lang")),e}},m={name:"path",lookup:function(t){var e;if("undefined"!==typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"===typeof t.lookupFromPathIndex){if("string"!==typeof n[t.lookupFromPathIndex])return;e=n[t.lookupFromPathIndex].replace("/","")}else e=n[0].replace("/","")}return e}},y={name:"subdomain",lookup:function(t){var e;if("undefined"!==typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(e="number"===typeof t.lookupFromSubdomainIndex?n[t.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return e}};var b=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(i.a)(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return Object(o.a)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=c(e,this.options||{},{order:["querystring","cookie","localStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(p),this.addDetector(d),this.addDetector(g),this.addDetector(v),this.addDetector(m),this.addDetector(y)}},{key:"addDetector",value:function(t){this.detectors[t.name]=t}},{key:"detect",value:function(t){var e=this;t||(t=this.options.order);var n,i=[];if(t.forEach((function(t){if(e.detectors[t]){var n=e.detectors[t].lookup(e.options);n&&"string"===typeof n&&(n=[n]),n&&(i=i.concat(n))}})),i.forEach((function(t){if(!n){var i=e.services.languageUtils.formatLanguageCode(t);e.options.checkWhitelist&&!e.services.languageUtils.isWhitelisted(i)||(n=i)}})),!n){var o=this.i18nOptions.fallbackLng;"string"===typeof o&&(o=[o]),o||(o=[]),n="[object Array]"===Object.prototype.toString.apply(o)?o[0]:o[0]||o.default&&o.default[0]}return n}},{key:"cacheUserLanguage",value:function(t,e){var n=this;e||(e=this.options.caches),e&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||e.forEach((function(e){n.detectors[e]&&n.detectors[e].cacheUserLanguage(t,n.options)})))}}]),t}();b.type="languageDetector",e.a=b},ITfd:function(t,e,n){"use strict";var i=n("w8CP"),o=n("2j6C");function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(e,n))}t.exports=r,r.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var e=t.length;ee?n.splice(e,n.length-e,i):n.push(i),p({action:"PUSH",location:i,index:e,entries:n})}}))},replace:function(t,e){var i=f(t,e,g(),w.location);h.confirmTransitionTo(i,"REPLACE",n,(function(t){t&&(w.entries[w.index]=i,p({action:"REPLACE",location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=w.index+t;return e>=0&&e{if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])}),t}(e,this.options||{},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:t=>JSON.parse(t),stringify:JSON.stringify,parsePayload:(t,e,n)=>({[e]:n||""}),request:s.a,reloadInterval:!1,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.allOptions=n,this.options.reloadInterval&&setInterval(()=>this.reload(),this.options.reloadInterval)}readMulti(t,e,n){var i=this.options.loadPath;"function"===typeof this.options.loadPath&&(i=this.options.loadPath(t,e));const o=this.services.interpolator.interpolate(i,{lng:t.join("+"),ns:e.join("+")});this.loadUrl(o,n,t,e)}read(t,e,n){var i=this.options.loadPath;"function"===typeof this.options.loadPath&&(i=this.options.loadPath([t],[e]));const o=this.services.interpolator.interpolate(i,{lng:t,ns:e});this.loadUrl(o,n,t,e)}loadUrl(t,e,n,i){this.options.request(this.options,t,(o,r)=>{if(r&&r.status>=500&&r.status<600)return e("failed loading "+t,!0);if(r&&r.status>=400&&r.status<500)return e("failed loading "+t,!1);if(o)return e(o,!1);let s,a;try{s=this.options.parse(r.data,n,i)}catch(c){a="failed parsing "+t+" to json"}if(a)return e(a,!1);e(null,s)})}create(t,e,n,i){if(!this.options.addPath)return;"string"===typeof t&&(t=[t]);const o=this.options.parsePayload(e,n,i);t.forEach(t=>{const n=this.services.interpolator.interpolate(this.options.addPath,{lng:t,ns:e});this.options.request(this.options,n,o,(t,e)=>{})})}reload(){const t=this.services,e=t.backendConnector,n=t.languageUtils,i=t.logger,o=e.language;if(o&&"cimode"===o.toLowerCase())return;const r=[],s=t=>{n.toResolveHierarchy(t).forEach(t=>{r.indexOf(t)<0&&r.push(t)})};s(o),this.allOptions.preload&&this.allOptions.preload.forEach(t=>s(t)),r.forEach(t=>{this.allOptions.ns.forEach(n=>{e.read(t,n,"read",null,null,(o,r)=>{o&&i.warn("loading namespace ".concat(n," for language ").concat(t," failed"),o),!o&&r&&i.log("loaded namespace ".concat(n," for language ").concat(t),r),e.loaded("".concat(t,"|").concat(n),o,r)})})})}}a.type="backend";e.a=a},WRkp:function(t,e,n){"use strict";e.sha1=n("E+IA"),e.sha224=n("B/J0"),e.sha256=n("bu2F"),e.sha384=n("i5UE"),e.sha512=n("tSWc")},XYOB:function(t,e){function n(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?function(t){var e=[];for(var n in t)e.push(n+'="'+t[n]+'"');return e.length?" "+e.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(n,"")+""}}t.exports=function(t){return t.reduce((function(t,e){return t+n("",e)}),"")}},XzT5:function(t,e,n){"use strict";var i=n("U8pU"),o=n("vpQ4"),r=n("1OyB"),s=n("vuIU"),a=n("md7G"),c=n("foSv"),u=n("JX7q"),h=n("Ji7U"),l=n("KQm4"),f=n("T5bk"),p=n("ODXe"),d={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){var n;console&&console[t]&&(n=console)[t].apply(n,Object(l.a)(e))}},g=new(function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,t),this.init(e,n)}return Object(s.a)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||d,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1?e-1:0),i=1;i-1?t.replace(/###/g,"."):t}function o(){return!t||"string"===typeof t}for(var r="string"!==typeof e?[].concat(e):e.split(".");r.length>1;){if(o())return{};var s=i(r.shift());!t[s]&&n&&(t[s]=new n),t=t[s]}return o()?{}:{obj:t,k:i(r.shift())}}function k(t,e,n){var i=w(t,e,Object);i.obj[i.k]=n}function x(t,e){var n=w(t,e),i=n.obj,o=n.k;if(i)return i[o]}function O(t,e,n){var i=x(t,n);return void 0!==i?i:x(e,n)}function S(t,e,n){for(var i in e)i in t?"string"===typeof t[i]||t[i]instanceof String||"string"===typeof e[i]||e[i]instanceof String?n&&(t[i]=e[i]):S(t[i],e[i],n):t[i]=e[i];return t}function E(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var T={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function _(t){return"string"===typeof t?t.replace(/[&<>"'\/]/g,(function(t){return T[t]})):t}var P="undefined"!==typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,j=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Object(r.a)(this,e),n=Object(a.a)(this,Object(c.a)(e).call(this)),P&&v.call(Object(u.a)(n)),n.data=t||{},n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return Object(h.a)(e,t),Object(s.a)(e,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,r=[t,e];return n&&"string"!==typeof n&&(r=r.concat(n)),n&&"string"===typeof n&&(r=r.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(r=t.split(".")),x(this.data,r)}},{key:"addResource",value:function(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},r=this.options.keySeparator;void 0===r&&(r=".");var s=[t,e];n&&(s=s.concat(r?n.split(r):n)),t.indexOf(".")>-1&&(i=e,e=(s=t.split("."))[1]),this.addNamespaces(e),k(this.data,s,i),o.silent||this.emit("added",t,e,n,i)}},{key:"addResources",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!==typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(t,e,o,n[o],{silent:!0});i.silent||this.emit("added",t,e,n)}},{key:"addResourceBundle",value:function(t,e,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[t,e];t.indexOf(".")>-1&&(i=n,n=e,e=(a=t.split("."))[1]),this.addNamespaces(e);var c=x(this.data,a)||{};i?S(c,n,r):c=Object(o.a)({},c,n),k(this.data,a,c),s.silent||this.emit("added",t,e,n)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?Object(o.a)({},{},this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"toJSON",value:function(){return this.data}}]),e}(v),C={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,i,o){var r=this;return t.forEach((function(t){r.processors[t]&&(e=r.processors[t].process(e,n,i,o))})),e}},L={},A=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(r.a)(this,e),n=Object(a.a)(this,Object(c.a)(e).call(this)),P&&v.call(Object(u.a)(n)),b(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,Object(u.a)(n)),n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=g.create("translator"),n}return Object(h.a)(e,t),Object(s.a)(e,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(t,e);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(t,e){var n=e.nsSeparator||this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,o=e.ns||this.options.defaultNS;if(n&&t.indexOf(n)>-1){var r=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(r[0])>-1)&&(o=r.shift()),t=r.join(i)}return"string"===typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function(t,e){var n=this;if("object"!==Object(i.a)(e)&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),e||(e={}),void 0===t||null===t)return"";Array.isArray(t)||(t=[String(t)]);var r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,s=this.extractFromKey(t[t.length-1],e),a=s.key,c=s.namespaces,u=c[c.length-1],h=e.lng||this.language,l=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&"cimode"===h.toLowerCase()){if(l){var f=e.nsSeparator||this.options.nsSeparator;return u+f+a}return a}var p=this.resolve(t,e),d=p&&p.res,g=p&&p.usedKey||a,v=p&&p.exactUsedKey||a,m=Object.prototype.toString.apply(d),y=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,k="string"!==typeof d&&"boolean"!==typeof d&&"number"!==typeof d;if(w&&d&&k&&y.indexOf(m)<0&&("string"!==typeof b||"[object Array]"!==m)){if(!e.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,d,e):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");if(r){var x="[object Array]"===m,O=x?[]:{},S=x?v:g;for(var E in d)if(Object.prototype.hasOwnProperty.call(d,E)){var T="".concat(S).concat(r).concat(E);O[E]=this.translate(T,Object(o.a)({},e,{joinArrays:!1,ns:c})),O[E]===T&&(O[E]=d[E])}d=O}}else if(w&&"string"===typeof b&&"[object Array]"===m)(d=d.join(b))&&(d=this.extendTranslation(d,t,e));else{var _=!1,P=!1;if(!this.isValidLookup(d)&&void 0!==e.defaultValue){if(_=!0,void 0!==e.count){var j=this.pluralResolver.getSuffix(h,e.count);d=e["defaultValue".concat(j)]}d||(d=e.defaultValue)}this.isValidLookup(d)||(P=!0,d=a);var C=e.defaultValue&&e.defaultValue!==d&&this.options.updateMissing;if(P||_||C){this.logger.log(C?"updateKey":"missingKey",h,u,a,C?e.defaultValue:d);var L=[],A=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&A&&A[0])for(var R=0;R1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof t&&(t=[t]),t.forEach((function(t){if(!s.isValidLookup(e)){var c=s.extractFromKey(t,a),u=c.key;n=u;var h=c.namespaces;s.options.fallbackNS&&(h=h.concat(s.options.fallbackNS));var l=void 0!==a.count&&"string"!==typeof a.count,f=void 0!==a.context&&"string"===typeof a.context&&""!==a.context,p=a.lngs?a.lngs:s.languageUtils.toResolveHierarchy(a.lng||s.language,a.fallbackLng);h.forEach((function(t){s.isValidLookup(e)||(r=t,!L["".concat(p[0],"-").concat(t)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(r)&&(L["".concat(p[0],"-").concat(t)]=!0,s.logger.warn('key "'.concat(n,'" for namespace "').concat(r,'" for languages "').concat(p.join(", "),"\" won't get resolved as namespace was not yet loaded"),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!s.isValidLookup(e)){o=n;var r,c,h=u,p=[h];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(p,u,n,t,a);else l&&(r=s.pluralResolver.getSuffix(n,a.count)),l&&f&&p.push(h+r),f&&p.push(h+="".concat(s.options.contextSeparator).concat(a.context)),l&&p.push(h+=r);for(;c=p.pop();)s.isValidLookup(e)||(i=c,e=s.getResource(n,t,c,a))}})))}))}})),{res:e,usedKey:n,exactUsedKey:i,usedLng:o,usedNS:r}}},{key:"isValidLookup",value:function(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,i):this.resourceStore.getResource(t,e,n,i)}}]),e}(v);function R(t){return t.charAt(0).toUpperCase()+t.slice(1)}var I=function(){function t(e){Object(r.a)(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=g.create("languageUtils")}return Object(s.a)(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"===typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map((function(t){return t.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=R(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=R(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=R(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(t=this.getLanguagePartFromCode(t)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(t)>-1}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("string"===typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,e){var n=this,i=this.getFallbackCodes(e||this.options.fallbackLng||[],t),o=[],r=function(t){t&&(n.isWhitelisted(t)?o.push(t):n.logger.warn("rejecting non-whitelisted language code: ".concat(t)))};return"string"===typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(t))):"string"===typeof t&&r(this.formatLanguageCode(t)),i.forEach((function(t){o.indexOf(t)<0&&r(n.formatLanguageCode(t))})),o}}]),t}(),N=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he"],nr:[1,2,20,21],fc:22}],D={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0===t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0===t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0===t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1===t?0:2===t?1:(t<0||t>10)&&t%10==0?2:3)}};function M(){var t={};return N.forEach((function(e){e.lngs.forEach((function(n){t[n]={numbers:e.nr,plurals:D[e.fc]}}))})),t}var F=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,t),this.languageUtils=e,this.options=n,this.logger=g.create("pluralResolver"),this.rules=M()}return Object(s.a)(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=this.getRule(t);return e&&e.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){var n=this,i=[],o=this.getRule(t);return o?(o.numbers.forEach((function(o){var r=n.getSuffix(t,o);i.push("".concat(e).concat(r))})),i):i}},{key:"getSuffix",value:function(t,e){var n=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(e):i.plurals(Math.abs(e)),r=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var s=function(){return n.options.prepend&&r.toString()?n.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"===typeof r?"_plural_".concat(r.toString()):s():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),t}(),z=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(r.a)(this,t),this.logger=g.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return Object(s.a)(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:_,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?E(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?E(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?E(e.nestingPrefix):e.nestingPrefixEscaped||E("$t("),this.nestingSuffix=e.nestingSuffix?E(e.nestingSuffix):e.nestingSuffixEscaped||E(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(e,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(t,e,n,i){var o,r,s,a=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(t){return t.replace(/\$/g,"$$$$")}var h=function(t){if(t.indexOf(a.formatSeparator)<0){var o=O(e,c,t);return a.alwaysFormat?a.format(o,void 0,n):o}var r=t.split(a.formatSeparator),s=r.shift().trim(),u=r.join(a.formatSeparator).trim();return a.format(O(e,c,s),u,n,i)};this.resetRegExp();var l=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler;for(s=0;o=this.regexpUnescape.exec(t);){if(void 0===(r=h(o[1].trim())))if("function"===typeof l){var f=l(t,o,i);r="string"===typeof f?f:""}else this.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(t)),r="";else"string"===typeof r||this.useRawValueToEscape||(r=y(r));if(t=t.replace(o[0],u(r)),this.regexpUnescape.lastIndex=0,++s>=this.maxReplaces)break}for(s=0;o=this.regexp.exec(t);){if(void 0===(r=h(o[1].trim())))if("function"===typeof l){var p=l(t,o,i);r="string"===typeof p?p:""}else this.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(t)),r="";else"string"===typeof r||this.useRawValueToEscape||(r=y(r));if(r=this.escapeValue?u(this.escape(r)):u(r),t=t.replace(o[0],r),this.regexp.lastIndex=0,++s>=this.maxReplaces)break}return t}},{key:"nest",value:function(t,e){var n,i,r=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Object(o.a)({},s);function c(t,e){var n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;var i=t.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(i[1]);t=i[0],r=(r=this.interpolate(r,a)).replace(/'/g,'"');try{a=JSON.parse(r),e&&(a=Object(o.a)({},e,a))}catch(s){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),s),"".concat(t).concat(n).concat(r)}return delete a.defaultValue,t}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(t);){var u=[],h=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(t){return t.trim()})),p=Object(f.a)(l);n[1]=p[0],u=p.slice(1),h=!0}if((i=e(c.call(this,n[1].trim(),a),a))&&n[0]===t&&"string"!==typeof i)return i;"string"!==typeof i&&(i=y(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),i=""),h&&(i=u.reduce((function(t,e){return r.format(t,e,s.lng,s)}),i.trim())),t=t.replace(n[0],i),this.regexp.lastIndex=0}return t}}]),t}();var H=function(t){function e(t,n,i){var o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(r.a)(this,e),o=Object(a.a)(this,Object(c.a)(e).call(this)),P&&v.call(Object(u.a)(o)),o.backend=t,o.store=n,o.services=i,o.languageUtils=i.languageUtils,o.options=s,o.logger=g.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,s.backend,s),o}return Object(h.a)(e,t),Object(s.a)(e,[{key:"queueLoad",value:function(t,e,n,i){var o=this,r=[],s=[],a=[],c=[];return t.forEach((function(t){var i=!0;e.forEach((function(e){var a="".concat(t,"|").concat(e);!n.reload&&o.store.hasResourceBundle(t,e)?o.state[a]=2:o.state[a]<0||(1===o.state[a]?s.indexOf(a)<0&&s.push(a):(o.state[a]=1,i=!1,s.indexOf(a)<0&&s.push(a),r.indexOf(a)<0&&r.push(a),c.indexOf(e)<0&&c.push(e)))})),i||a.push(t)})),(r.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:r,pending:s,toLoadLanguages:a,toLoadNamespaces:c}}},{key:"loaded",value:function(t,e,n){var i=t.split("|"),o=Object(p.a)(i,2),r=o[0],s=o[1];e&&this.emit("failedLoading",r,s,e),n&&this.store.addResourceBundle(r,s,n),this.state[t]=e?-1:2;var a={};this.queue.forEach((function(n){!function(t,e,n,i){var o=w(t,e,Object),r=o.obj,s=o.k;r[s]=r[s]||[],i&&(r[s]=r[s].concat(n)),i||r[s].push(n)}(n.loaded,[r],s),function(t,e){for(var n=t.indexOf(e);-1!==n;)t.splice(n,1),n=t.indexOf(e)}(n.pending,t),e&&n.errors.push(e),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(t){a[t]||(a[t]=[]),n.loaded[t].length&&n.loaded[t].forEach((function(e){a[t].indexOf(e)<0&&a[t].push(e)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(t){return!t.done}))}},{key:"read",value:function(t,e,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[n](t,e,(function(a,c){a&&c&&o<5?setTimeout((function(){i.read.call(i,t,e,n,o+1,2*r,s)}),r):s(a,c)})):s(null,{})}},{key:"prepareLoading",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"===typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"===typeof e&&(e=[e]);var r=this.queueLoad(t,e,i,o);if(!r.toLoad.length)return r.pending.length||o(),null;r.toLoad.forEach((function(t){n.loadOne(t)}))}},{key:"load",value:function(t,e,n){this.prepareLoading(t,e,{},n)}},{key:"reload",value:function(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}},{key:"loadOne",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=Object(p.a)(i,2),r=o[0],s=o[1];this.read(r,s,"read",void 0,void 0,(function(i,o){i&&e.logger.warn("".concat(n,"loading namespace ").concat(s," for language ").concat(r," failed"),i),!i&&o&&e.logger.log("".concat(n,"loaded namespace ").concat(s," for language ").concat(r),o),e.loaded(t,i,o)}))}},{key:"saveMissing",value:function(t,e,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)?this.logger.warn('did not save key "'.concat(n,'" for namespace "').concat(e,'" as the namespace was not yet loaded'),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):void 0!==n&&null!==n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(t,e,n,i,null,Object(o.a)({},s,{isUpdate:r})),t&&t[0]&&this.store.addResource(t[0],e,n,i))}}]),e}(v);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if("object"===Object(i.a)(t[1])&&(e=t[1]),"string"===typeof t[1]&&(e.defaultValue=t[1]),"string"===typeof t[2]&&(e.tDescription=t[2]),"object"===Object(i.a)(t[2])||"object"===Object(i.a)(t[3])){var n=t[3]||t[2];Object.keys(n).forEach((function(t){e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:function(t,e,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3}}}function q(t){return"string"===typeof t.ns&&(t.ns=[t.ns]),"string"===typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"===typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t}function V(){}var B=new(function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Object(r.a)(this,e),t=Object(a.a)(this,Object(c.a)(e).call(this)),P&&v.call(Object(u.a)(t)),t.options=q(n),t.services={},t.logger=g,t.modules={external:[]},i&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,i),Object(a.a)(t,Object(u.a)(t));setTimeout((function(){t.init(n,i)}),0)}return t}return Object(h.a)(e,t),Object(s.a)(e,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function i(t){return t?"function"===typeof t?new t:t:null}if("function"===typeof e&&(n=e,e={}),this.options=Object(o.a)({},U(),this.options,q(e)),this.format=this.options.interpolation.format,n||(n=V),!this.options.isClone){this.modules.logger?g.init(i(this.modules.logger),this.options):g.init(null,this.options);var r=new I(this.options);this.store=new j(this.options.resources,this.options);var s=this.services;s.logger=g,s.resourceStore=this.store,s.languageUtils=r,s.pluralResolver=new F(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new z(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new H(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:V,i=n,o="string"===typeof t?t:this.language;if("function"===typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var r=[],s=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(t){r.indexOf(t)<0&&r.push(t)}))};if(o)s(o);else{var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.forEach((function(t){return s(t)}))}this.options.preload&&this.options.preload.forEach((function(t){return s(t)})),this.services.backendConnector.load(r,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(t,e,n){var i=m();return t||(t=this.languages),e||(e=this.options.ns),n||(n=V),this.services.backendConnector.reload(t,e,(function(t){i.resolve(),n(t)})),i}},{key:"use",value:function(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&C.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function(t,e){var n=this;this.isLanguageChangingTo=t;var i=m();this.emit("languageChanging",t);var o=function(t){t&&(n.language||(n.language=t,n.languages=n.services.languageUtils.toResolveHierarchy(t)),n.translator.language||n.translator.changeLanguage(t),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(t)),n.loadResources(t,(function(o){!function(t,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,i.resolve((function(){return n.t.apply(n,arguments)})),e&&e(t,(function(){return n.t.apply(n,arguments)}))}(o,t)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(t):o(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(t,e){var n=this,r=function t(e,r){var s;if("object"!==Object(i.a)(r)){for(var a=arguments.length,c=new Array(a>2?a-2:0),u=2;u0?this.languages[0]:this.language),!t)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(t,n)}},{key:"cloneInstance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V,r=Object(o.a)({},this.options,n,{isClone:!0}),s=new e(r),a=["store","services","language"];return a.forEach((function(e){s[e]=t[e]})),s.services=Object(o.a)({},this.services),s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s.translator=new A(s.services,s.options),s.translator.on("*",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,i)}t.exports=s,s.prototype._init=function(t,e,n){var i=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},s.prototype.generate=function(t,e,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(i=n,n=e,e=null),n&&(n=o.toArray(n,i||"hex"),this._update(n));for(var r=[];r.length|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,o=n("xOyo"),r=Object.create?Object.create(null):{};function s(t,e,n,i,o){var r=e.indexOf("<",i),s=e.slice(i,-1===r?void 0:r);/^\s*$/.test(s)&&(s=" "),(!o&&r>-1&&n+t.length>=0||" "!==s)&&t.push({type:"text",content:s})}t.exports=function(t,e){e||(e={}),e.components||(e.components=r);var n,a=[],c=-1,u=[],h={},l=!1;return t.replace(i,(function(i,r){if(l){if(i!=="")return;l=!1}var f,p="/"!==i.charAt(1),d=0===i.indexOf("\x3c!--"),g=r+i.length,v=t.charAt(g);p&&!d&&(c++,"tag"===(n=o(i)).type&&e.components[n.name]&&(n.type="component",l=!0),n.voidElement||l||!v||"<"===v||s(n.children,t,c,g,e.ignoreWhitespace),h[n.tagName]=n,0===c&&a.push(n),(f=u[c-1])&&f.children.push(n),u[c]=n),(d||!p||n.voidElement)&&(d||c--,!l&&"<"!==v&&v&&s(f=-1===c?a:u[c].children,t,c,g,e.ignoreWhitespace))})),!a.length&&t.length&&s(a,t,0,0,e.ignoreWhitespace),a}},i5UE:function(t,e,n){"use strict";var i=n("w8CP"),o=n("tSWc");function r(){if(!(this instanceof r))return new r;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(r,o),t.exports=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},icFm:function(t,e,n){"use strict";n.r(e),e.default=n.p+"static/media/getFetch.5e98861f.cjs"},"k+aG":function(t,e,n){"use strict";var i=n("hwdV").Buffer,o=n("1IWx").Transform;function r(t){o.call(this),this._block=i.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n("P7XM")(r,o),r.prototype._transform=function(t,e,n){var i=null;try{this.update(t,e)}catch(o){i=o}n(i)},r.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(n){e=n}t(e)},r.prototype.update=function(t,e){if(function(t,e){if(!i.isBuffer(t)&&"string"!==typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");i.isBuffer(t)||(t=i.from(t,e));for(var n=this._block,o=0;this._blockOffset+t.length-o>=this._blockSize;){for(var r=this._blockOffset;r0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},r.prototype._update=function(){throw new Error("_update is not implemented")},r.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},r.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=r},"kVK+":function(t,e){e.read=function(t,e,n,i,o){var r,s,a=8*o-i-1,c=(1<>1,h=-7,l=n?o-1:0,f=n?-1:1,p=t[e+l];for(l+=f,r=p&(1<<-h)-1,p>>=-h,h+=a;h>0;r=256*r+t[e+l],l+=f,h-=8);for(s=r&(1<<-h)-1,r>>=-h,h+=i;h>0;s=256*s+t[e+l],l+=f,h-=8);if(0===r)r=1-u;else{if(r===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),r-=u}return(p?-1:1)*s*Math.pow(2,r-i)},e.write=function(t,e,n,i,o,r){var s,a,c,u=8*r-o-1,h=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:r-1,d=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+l>=1?f/c:f*Math.pow(2,1-l))*c>=2&&(s++,c/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(e*c-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[n+p]=255&a,p+=d,a/=256,o-=8);for(s=s<0;t[n+p]=255&s,p+=d,s/=256,u-=8);t[n+p-d]|=128*g}},nbvr:function(t,e,n){!function(t){"use strict";function e(t){return Array.prototype.slice.call(t)}function n(t){return new Promise((function(e,n){t.onsuccess=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function i(t,e,i){var o,r=new Promise((function(r,s){n(o=t[e].apply(t,i)).then(r,s)}));return r.request=o,r}function o(t,e,n){var o=i(t,e,n);return o.then((function(t){if(t)return new h(t,o.request)}))}function r(t,e,n){n.forEach((function(n){Object.defineProperty(t.prototype,n,{get:function(){return this[e][n]},set:function(t){this[e][n]=t}})}))}function s(t,e,n,o){o.forEach((function(o){o in n.prototype&&(t.prototype[o]=function(){return i(this[e],o,arguments)})}))}function a(t,e,n,i){i.forEach((function(i){i in n.prototype&&(t.prototype[i]=function(){return this[e][i].apply(this[e],arguments)})}))}function c(t,e,n,i){i.forEach((function(i){i in n.prototype&&(t.prototype[i]=function(){return o(this[e],i,arguments)})}))}function u(t){this._index=t}function h(t,e){this._cursor=t,this._request=e}function l(t){this._store=t}function f(t){this._tx=t,this.complete=new Promise((function(e,n){t.oncomplete=function(){e()},t.onerror=function(){n(t.error)},t.onabort=function(){n(t.error)}}))}function p(t,e,n){this._db=t,this.oldVersion=e,this.transaction=new f(n)}function d(t){this._db=t}r(u,"_index",["name","keyPath","multiEntry","unique"]),s(u,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),c(u,"_index",IDBIndex,["openCursor","openKeyCursor"]),r(h,"_cursor",["direction","key","primaryKey","value"]),s(h,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(t){t in IDBCursor.prototype&&(h.prototype[t]=function(){var e=this,i=arguments;return Promise.resolve().then((function(){return e._cursor[t].apply(e._cursor,i),n(e._request).then((function(t){if(t)return new h(t,e._request)}))}))})})),l.prototype.createIndex=function(){return new u(this._store.createIndex.apply(this._store,arguments))},l.prototype.index=function(){return new u(this._store.index.apply(this._store,arguments))},r(l,"_store",["name","keyPath","indexNames","autoIncrement"]),s(l,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),c(l,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),a(l,"_store",IDBObjectStore,["deleteIndex"]),f.prototype.objectStore=function(){return new l(this._tx.objectStore.apply(this._tx,arguments))},r(f,"_tx",["objectStoreNames","mode"]),a(f,"_tx",IDBTransaction,["abort"]),p.prototype.createObjectStore=function(){return new l(this._db.createObjectStore.apply(this._db,arguments))},r(p,"_db",["name","version","objectStoreNames"]),a(p,"_db",IDBDatabase,["deleteObjectStore","close"]),d.prototype.transaction=function(){return new f(this._db.transaction.apply(this._db,arguments))},r(d,"_db",["name","version","objectStoreNames"]),a(d,"_db",IDBDatabase,["close"]),["openCursor","openKeyCursor"].forEach((function(t){[l,u].forEach((function(n){t in n.prototype&&(n.prototype[t.replace("open","iterate")]=function(){var n=e(arguments),i=n[n.length-1],o=this._store||this._index,r=o[t].apply(o,n.slice(0,-1));r.onsuccess=function(){i(r.result)}})}))})),[u,l].forEach((function(t){t.prototype.getAll||(t.prototype.getAll=function(t,e){var n=this,i=[];return new Promise((function(o){n.iterateCursor(t,(function(t){t?(i.push(t.value),void 0===e||i.length!=e?t.continue():o(i)):o(i)}))}))})})),t.openDb=function(t,e,n){var o=i(indexedDB,"open",[t,e]),r=o.request;return r&&(r.onupgradeneeded=function(t){n&&n(new p(r.result,t.oldVersion,r.transaction))}),o.then((function(t){return new d(t)}))},t.deleteDb=function(t){return i(indexedDB,"deleteDatabase",[t])},Object.defineProperty(t,"__esModule",{value:!0})}(e)},qlaj:function(t,e,n){"use strict";var i=n("w8CP").rotr32;function o(t,e,n){return t&e^~t&n}function r(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,i){return 0===t?o(e,n,i):1===t||3===t?s(e,n,i):2===t?r(e,n,i):void 0},e.ch32=o,e.maj32=r,e.p32=s,e.s0_256=function(t){return i(t,2)^i(t,13)^i(t,22)},e.s1_256=function(t){return i(t,6)^i(t,11)^i(t,25)},e.g0_256=function(t){return i(t,7)^i(t,18)^t>>>3},e.g1_256=function(t){return i(t,17)^i(t,19)^t>>>10}},tSWc:function(t,e,n){"use strict";var i=n("w8CP"),o=n("7ckf"),r=n("2j6C"),s=i.rotr64_hi,a=i.rotr64_lo,c=i.shr64_hi,u=i.shr64_lo,h=i.sum64,l=i.sum64_hi,f=i.sum64_lo,p=i.sum64_4_hi,d=i.sum64_4_lo,g=i.sum64_5_hi,v=i.sum64_5_lo,m=o.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function w(t,e,n,i,o){var r=t&n^~t&o;return r<0&&(r+=4294967296),r}function k(t,e,n,i,o,r){var s=e&i^~e&r;return s<0&&(s+=4294967296),s}function x(t,e,n,i,o){var r=t&n^t&o^n&o;return r<0&&(r+=4294967296),r}function O(t,e,n,i,o,r){var s=e&i^e&r^i&r;return s<0&&(s+=4294967296),s}function S(t,e){var n=s(t,e,28)^s(e,t,2)^s(e,t,7);return n<0&&(n+=4294967296),n}function E(t,e){var n=a(t,e,28)^a(e,t,2)^a(e,t,7);return n<0&&(n+=4294967296),n}function T(t,e){var n=s(t,e,14)^s(t,e,18)^s(e,t,9);return n<0&&(n+=4294967296),n}function _(t,e){var n=a(t,e,14)^a(t,e,18)^a(e,t,9);return n<0&&(n+=4294967296),n}function P(t,e){var n=s(t,e,1)^s(t,e,8)^c(t,e,7);return n<0&&(n+=4294967296),n}function j(t,e){var n=a(t,e,1)^a(t,e,8)^u(t,e,7);return n<0&&(n+=4294967296),n}function C(t,e){var n=s(t,e,19)^s(e,t,29)^c(t,e,6);return n<0&&(n+=4294967296),n}function L(t,e){var n=a(t,e,19)^a(e,t,29)^u(t,e,6);return n<0&&(n+=4294967296),n}i.inherits(b,m),t.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(t,e){for(var n=this.W,i=0;i<32;i++)n[i]=t[e+i];for(;i=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"===typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t),o=0;o>6|192,n[i++]=63&s|128):r(t,o)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++o)),n[i++]=s>>18|240,n[i++]=s>>12&63|128,n[i++]=s>>6&63|128,n[i++]=63&s|128):(n[i++]=s>>12|224,n[i++]=s>>6&63|128,n[i++]=63&s|128)}else for(o=0;o>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),i=0,o=0;i>>24,n[o+1]=r>>>16&255,n[o+2]=r>>>8&255,n[o+3]=255&r):(n[o+3]=r>>>24,n[o+2]=r>>>16&255,n[o+1]=r>>>8&255,n[o]=255&r)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,i){return t+e+n+i>>>0},e.sum32_5=function(t,e,n,i,o){return t+e+n+i+o>>>0},e.sum64=function(t,e,n,i){var o=t[e],r=i+t[e+1]>>>0,s=(r>>0,t[e+1]=r},e.sum64_hi=function(t,e,n,i){return(e+i>>>0>>0},e.sum64_lo=function(t,e,n,i){return e+i>>>0},e.sum64_4_hi=function(t,e,n,i,o,r,s,a){var c=0,u=e;return c+=(u=u+i>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(t,e,n,i,o,r,s,a){return e+i+r+a>>>0},e.sum64_5_hi=function(t,e,n,i,o,r,s,a,c,u){var h=0,l=e;return h+=(l=l+i>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(t,e,n,i,o,r,s,a,c,u){return e+i+r+a+u>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},xOyo:function(t,e,n){var i=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,o=n("QEeW");t.exports=function(t){var e,n=0,r=!0,s={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return t.replace(i,(function(i){if("="===i)return r=!0,void n++;r?0===n?((o[i]||"/"===t.charAt(t.length-2))&&(s.voidElement=!0),s.name=i):(s.attrs[e]=i.replace(/^['"]|['"]$/g,""),e=void 0):(e&&(s.attrs[e]=e),e=i),n++,r=!1})),s}},yLV6:function(t,e,n){var i;!function(o,r,s,a){"use strict";var c,u=["","webkit","Moz","MS","ms","o"],h=r.createElement("div"),l=Math.round,f=Math.abs,p=Date.now;function d(t,e,n){return setTimeout(k(t,n),e)}function g(t,e,n){return!!Array.isArray(t)&&(v(t,n[e],n),!0)}function v(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=o.console&&(o.console.warn||o.console.log);return r&&r.call(o.console,i,n),t.apply(this,arguments)}}c="function"!==typeof Object.assign?function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n-1}function P(t){return t.trim().split(/\s+/g)}function j(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;in[e]})):i.sort()),i}function A(t,e){for(var n,i,o=e[0].toUpperCase()+e.slice(1),r=0;r1&&!n.firstMultiple?n.firstMultiple=q(e):1===o&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,c=e.center=V(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=K(a,c),e.distance=X(a,c),function(t,e){var n=e.center,i=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};1!==e.eventType&&4!==r.eventType||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=o.x+(n.x-i.x),e.deltaY=o.y+(n.y-i.y)}(n,e),e.offsetDirection=W(e.deltaX,e.deltaY);var u=B(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=f(u.x)>f(u.y)?u.x:u.y,e.scale=s?(h=s.pointers,l=i,X(l[0],l[1],z)/X(h[0],h[1],z)):1,e.rotation=s?function(t,e){return K(e[1],e[0],z)+K(t[1],t[0],z)}(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,o,r,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!=e.eventType&&(a>25||void 0===s.velocity)){var c=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,h=B(a,c,u);i=h.x,o=h.y,n=f(h.x)>f(h.y)?h.x:h.y,r=W(c,u),t.lastInterval=e}else n=s.velocity,i=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=o,e.direction=r}(n,e);var h,l;var d=t.element;T(e.srcEvent.target,d)&&(d=e.srcEvent.target);e.target=d}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function q(t){for(var e=[],n=0;n=f(e)?t<0?2:4:e<0?8:16}function X(t,e,n){n||(n=F);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function K(t,e,n){n||(n=F);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,i)/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(I(this.element),this.evWin,this.domHandler)}};var Y={mousedown:1,mousemove:2,mouseup:4};function $(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,H.apply(this,arguments)}w($,H,{handler:function(t){var e=Y[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},G={2:"touch",3:"pen",4:"mouse",5:"kinect"},Z="pointerdown",Q="pointermove pointerup pointercancel";function tt(){this.evEl=Z,this.evWin=Q,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(Z="MSPointerDown",Q="MSPointerMove MSPointerUp MSPointerCancel"),w(tt,H,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),o=J[i],r=G[t.pointerType]||t.pointerType,s="touch"==r,a=j(e,t.pointerId,"pointerId");1&o&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&o&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(a,1))}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,H.apply(this,arguments)}function it(t,e){var n=C(t.touches),i=C(t.changedTouches);return 12&e&&(n=L(n.concat(i),"identifier",!0)),[n,i]}w(nt,H,{handler:function(t){var e=et[t.type];if(1===e&&(this.started=!0),this.started){var n=it.call(this,t,e);12&e&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var ot={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function rt(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},H.apply(this,arguments)}function st(t,e){var n=C(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,s=C(t.changedTouches),a=[],c=this.target;if(r=n.filter((function(t){return T(t.target,c)})),1===e)for(o=0;o-1&&i.splice(t,1)}),2500)}}function ht(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+vt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+vt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&o&e.direction},attrTest:function(t){return bt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=mt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),w(kt,bt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),w(xt,gt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distancee.time;if(this._input=t,!i||!n||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=d((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),w(Ot,bt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),w(St,bt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return wt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&f(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=mt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),w(Et,gt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance