locizify 9.0.7 → 9.0.9
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.
- package/CHANGELOG.md +8 -0
- package/dist/umd/locizify.js +113 -111
- package/dist/umd/locizify.min.js +2 -2
- package/locizify.js +113 -111
- package/locizify.min.js +2 -2
- package/package.json +2 -2
package/locizify.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).locizify=t()}(this,(function(){"use strict";function e(e,t,n,r,o,i,u){try{var a=e[i](u),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(r,o)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var u=t.apply(n,r);function a(t){e(u,o,i,a,s,"next",t)}function s(t){e(u,o,i,a,s,"throw",t)}a(void 0)}))}}function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e,t){return e(t={exports:{}},t.exports),t.exports}var l=s((function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));a(l);var c=s((function(e){var t=l.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}));a(c);var d=s((function(e){var t=l.default;e.exports=function(e){var n=c(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}));a(d);var p=a(s((function(e){e.exports=function(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}))),f=e=>"string"==typeof e,h=()=>{var e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},g=e=>null==e?"":""+e,v=/###/g,m=e=>e&&e.indexOf("###")>-1?e.replace(v,"."):e,y=e=>!e||f(e),b=(e,t,n)=>{for(var r=f(t)?t.split("."):t,o=0;o<r.length-1;){if(y(e))return{};var i=m(r[o]);!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{},++o}return y(e)?{}:{obj:e,k:m(r[o])}},E=(e,t,n)=>{var{obj:r,k:o}=b(e,t,Object);if(void 0===r&&1!==t.length){for(var i=t[t.length-1],u=t.slice(0,t.length-1),a=b(e,u,Object);void 0===a.obj&&u.length;){var s;i="".concat(u[u.length-1],".").concat(i),u=u.slice(0,u.length-1),null!==(s=a=b(e,u,Object))&&void 0!==s&&s.obj&&void 0!==a.obj["".concat(a.k,".").concat(i)]&&(a.obj=void 0)}a.obj["".concat(a.k,".").concat(i)]=n}else r[o]=n},x=(e,t)=>{var{obj:n,k:r}=b(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},A=(e,t,n)=>{var r=x(e,n);return void 0!==r?r:x(t,n)},w=(e,t,n)=>{for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?f(e[r])||e[r]instanceof String||f(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):w(e[r],t[r],n):e[r]=t[r]);return e},C=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),O={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},k=e=>f(e)?e.replace(/[&<>"'\/]/g,e=>O[e]):e;var F=[" ",",","?","!",";"],D=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){var t=this.regExpMap.get(e);if(void 0!==t)return t;var n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),B=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}for(var r=t.split(n),o=e,i=0;i<r.length;){if(!o||"object"!=typeof o)return;for(var u=void 0,a="",s=i;s<r.length;++s)if(s!==i&&(a+=n),void 0!==(u=o[a+=r[s]])){if(["string","number","boolean"].indexOf(typeof u)>-1&&s<r.length-1)continue;i+=s-i+1;break}o=u}return o}},S=e=>null==e?void 0:e.replace("_","-"),L={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;null===(n=console)||void 0===n||null===(n=n[e])||void 0===n||null===(r=n.apply)||void 0===r||r.call(n,console,t)}};class j{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||L,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(f(e[0])&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}create(e){return new j(this.logger,o(o({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new j(this.logger,e)}}var P=new j;class N{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);var n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{for(var[t,r]=e,o=0;o<r;o++)t(...n)});this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{for(var[r,o]=t,i=0;i<o;i++)r.apply(r,[e,...n])})}}class T extends N{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){var r,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):f(n)&&u?o.push(...n.split(u)):o.push(n)));var s=x(this.data,o);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=o[0],t=o[1],n=o.slice(2).join(".")),!s&&a&&f(n)?B(null===(r=this.data)||void 0===r||null===(r=r[e])||void 0===r?void 0:r[t],n,u):s}addResource(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,u=[e,t];n&&(u=u.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(u=e.split("."))[1]),this.addNamespaces(t),E(this.data,u,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)(f(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){var u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=x(this.data,a)||{};u.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?w(s,n,i):s=o(o({},s),n),E(this.data,a,s),u.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var I={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{var i,u;t=null!==(i=null===(u=this.processors[e])||void 0===u?void 0:u.process(t,n,r,o))&&void 0!==i?i:t}),t}},R=Symbol("i18next/PATH_KEY");function M(e,t){var n,{[R]:r}=e(function(){var e,t=[],n=Object.create(null);return n.get=(r,o)=>{var i,u;return null===(i=e)||void 0===i||null===(u=i.revoke)||void 0===u||u.call(i),o===R?t:(t.push(o),(e=Proxy.revocable(r,n)).proxy)},Proxy.revocable(Object.create(null),n).proxy}());return r.join(null!==(n=null==t?void 0:t.keySeparator)&&void 0!==n?n:".")}var z={},q=e=>!f(e)&&"boolean"!=typeof e&&"number"!=typeof e;class U extends N{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=P.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){var t=o({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}});if(null==e)return!1;var n=this.resolve(e,t);if(void 0===(null==n?void 0:n.res))return!1;var r=q(n.res);return!1!==t.returnObjects||!r}extractFromKey(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,u=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";var r=F.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;var o=D.getRegExp("(".concat(r.map(e=>"?"===e?"\\?":e).join("|"),")")),i=!o.test(e);if(!i){var u=e.indexOf(n);u>0&&!o.test(e.substring(0,u))&&(i=!0)}return i})(e,n,r));if(i&&!u){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:f(o)?[o]:o};var s=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(r)}return{key:e,namespaces:f(o)?[o]:o}}translate(e,t,n){var r="object"==typeof t?o({},t):t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r=o({},r)),r||(r={}),null==e)return"";"function"==typeof e&&(e=M(e,o(o({},this.options),r))),Array.isArray(e)||(e=[String(e)]);var i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,u=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],r),l=s[s.length-1],c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");var d=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===(null==d?void 0:d.toLowerCase()))return p?i?{res:"".concat(l).concat(c).concat(a),usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:"".concat(l).concat(c).concat(a):i?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a;var h=this.resolve(e,r),g=null==h?void 0:h.res,v=(null==h?void 0:h.usedKey)||a,m=(null==h?void 0:h.exactUsedKey)||a,y=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,E=void 0!==r.count&&!f(r.count),x=U.hasDefaultValue(r),A=E?this.pluralResolver.getSuffix(d,r.count,r):"",w=r.ordinal&&E?this.pluralResolver.getSuffix(d,r.count,{ordinal:!1}):"",C=E&&!r.ordinal&&0===r.count,O=C&&r["defaultValue".concat(this.options.pluralSeparator,"zero")]||r["defaultValue".concat(A)]||r["defaultValue".concat(w)]||r.defaultValue,k=g;b&&!g&&x&&(k=O);var F=q(k),D=Object.prototype.toString.apply(k);if(!(b&&k&&F&&["[object Number]","[object Function]","[object RegExp]"].indexOf(D)<0)||f(y)&&Array.isArray(k))if(b&&f(y)&&Array.isArray(g))(g=g.join(y))&&(g=this.extendTranslation(g,e,r,n));else{var B=!1,S=!1;!this.isValidLookup(g)&&x&&(B=!0,g=O),this.isValidLookup(g)||(S=!0,g=a);var L=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:g,j=x&&O!==g&&this.options.updateMissing;if(S||B||j){if(this.logger.log(j?"updateKey":"missingKey",d,l,a,j?O:g),u){var P=this.resolve(a,o(o({},r),{},{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],T=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&T&&T[0])for(var I=0;I<T.length;I++)N.push(T[I]);else"all"===this.options.saveMissingTo?N=this.languageUtils.toResolveHierarchy(r.lng||this.language):N.push(r.lng||this.language);var R=(e,t,n)=>{var o,i=x&&n!==g?n:L;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,i,j,r):null!==(o=this.backendConnector)&&void 0!==o&&o.saveMissing&&this.backendConnector.saveMissing(e,l,t,i,j,r),this.emit("missingKey",e,l,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?N.forEach(e=>{var t=this.pluralResolver.getSuffixes(e,r);C&&r["defaultValue".concat(this.options.pluralSeparator,"zero")]&&t.indexOf("".concat(this.options.pluralSeparator,"zero"))<0&&t.push("".concat(this.options.pluralSeparator,"zero")),t.forEach(t=>{R([e],a+t,r["defaultValue".concat(t)]||O)})}):R(N,a,O))}g=this.extendTranslation(g,e,r,h,n),S&&g===a&&this.options.appendNamespaceToMissingKey&&(g="".concat(l).concat(c).concat(a)),(S||B)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(l).concat(c).concat(a):a,B?g:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,k,o(o({},r),{},{ns:s})):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");return i?(h.res=z,h.usedParams=this.getUsedParamsDetails(r),h):z}if(u){var H=Array.isArray(k),_=H?[]:{},V=H?m:v;for(var K in k)if(Object.prototype.hasOwnProperty.call(k,K)){var X="".concat(V).concat(u).concat(K);_[K]=x&&!g?this.translate(X,o(o({},r),{},{defaultValue:q(O)?O[K]:void 0},{joinArrays:!1,ns:s})):this.translate(X,o(o({},r),{joinArrays:!1,ns:s})),_[K]===X&&(_[K]=k[K])}g=_}}return i?(h.res=g,h.usedParams=this.getUsedParamsDetails(r),h):g}extendTranslation(e,t,n,r,i){var u,a=this;if(null!==(u=this.i18nFormat)&&void 0!==u&&u.parse)e=this.i18nFormat.parse(e,o(o({},this.options.interpolation.defaultVariables),n),n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){var s;n.interpolation&&this.interpolator.init(o(o({},n),{interpolation:o(o({},this.options.interpolation),n.interpolation)}));var l,c=f(e)&&(void 0!==(null==n||null===(s=n.interpolation)||void 0===s?void 0:s.skipOnVariables)?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(c){var d=e.match(this.interpolator.nestingRegexp);l=d&&d.length}var p=n.replace&&!f(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p=o(o({},this.options.interpolation.defaultVariables),p)),e=this.interpolator.interpolate(e,p,n.lng||this.language||r.usedLng,n),c){var h=e.match(this.interpolator.nestingRegexp);l<(h&&h.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(null==i?void 0:i[0])!==r[0]||n.context?a.translate(...r,t):(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null)}),n)),n.interpolation&&this.interpolator.reset()}var g=n.postProcess||this.options.postProcess,v=f(g)?[g]:g;return null!=e&&null!=v&&v.length&&!1!==n.applyPostProcessor&&(e=I.handle(v,e,t,this.options&&this.options.postProcessPassResolved?o({i18nResolved:o(o({},r),{},{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),e}resolve(e){var t,n,r,o,i,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(e)&&(e=[e]),e.forEach(e=>{if(!this.isValidLookup(t)){var a=this.extractFromKey(e,u),s=a.key;n=s;var l=a.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));var c=void 0!==u.count&&!f(u.count),d=c&&!u.ordinal&&0===u.count,p=void 0!==u.context&&(f(u.context)||"number"==typeof u.context)&&""!==u.context,h=u.lngs?u.lngs:this.languageUtils.toResolveHierarchy(u.lng||this.language,u.fallbackLng);l.forEach(e=>{var a,l;this.isValidLookup(t)||(i=e,z["".concat(h[0],"-").concat(e)]||null===(a=this.utils)||void 0===a||!a.hasLoadedNamespace||null!==(l=this.utils)&&void 0!==l&&l.hasLoadedNamespace(i)||(z["".concat(h[0],"-").concat(e)]=!0,this.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your 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!!!")),h.forEach(n=>{var i;if(!this.isValidLookup(t)){o=n;var a,l=[s];if(null!==(i=this.i18nFormat)&&void 0!==i&&i.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,n,e,u);else{var f;c&&(f=this.pluralResolver.getSuffix(n,u.count,u));var h="".concat(this.options.pluralSeparator,"zero"),g="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(c&&(u.ordinal&&0===f.indexOf(g)&&l.push(s+f.replace(g,this.options.pluralSeparator)),l.push(s+f),d&&l.push(s+h)),p){var v="".concat(s).concat(this.options.contextSeparator||"_").concat(u.context);l.push(v),c&&(u.ordinal&&0===f.indexOf(g)&&l.push(v+f.replace(g,this.options.pluralSeparator)),l.push(v+f),d&&l.push(v+h))}}for(;a=l.pop();)this.isValidLookup(t)||(r=a,t=this.getResource(n,e,a,u))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return null!==(r=this.i18nFormat)&&void 0!==r&&r.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}getUsedParamsDetails(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!f(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n=o(o({},this.options.interpolation.defaultVariables),n)),!t)for(var r of(n=o({},n),["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[r];return n}static hasDefaultValue(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}class H{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=P.create("languageUtils")}getScriptPartFromCode(e){if(!(e=S(e))||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=S(e))||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(f(e)&&e.indexOf("-")>-1){var t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){return e?(e.forEach(e=>{if(!t){var n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(!t){var n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;var r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null;var t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),f(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){var n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return f(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):f(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}}var _={zero:0,one:1,two:2,few:3,many:4,other:5},V={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class K{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=P.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=S("dev"===e?"en":e),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];try{t=new Intl.PluralRules(r,{type:o})}catch(r){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),V;if(!e.match(/-|_/))return V;var u=this.languageUtils.getLanguagePartFromCode(e);t=this.getRule(u,n)}return this.pluralRulesCache[i]=t,t}needsPlural(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),(null===(t=r)||void 0===t?void 0:t.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>"".concat(t).concat(e))}getSuffixes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>_[e]-_[t]).map(e=>"".concat(this.options.prepend).concat(t.ordinal?"ordinal".concat(this.options.prepend):"").concat(e)):[]}getSuffix(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(r.select(t)):(this.logger.warn("no plural rule found for: ".concat(e)),this.getSuffix("dev",t,n))}}var X=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=A(e,t,n);return!i&&o&&f(n)&&void 0===(i=B(e,n,r))&&(i=B(t,n,r)),i},W=e=>e.replace(/\$/g,"$$$$");class J{constructor(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=P.create("interpolator"),this.options=t,this.format=(null==t||null===(e=t.interpolation)||void 0===e?void 0:e.format)||(e=>e),this.init(t)}init(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:u,suffixEscaped:a,formatSeparator:s,unescapeSuffix:l,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:v,alwaysFormat:m}=e.interpolation;this.escape=void 0!==t?t:k,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?C(o):i||"{{",this.suffix=u?C(u):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=l?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?C(d):p||C("$t("),this.nestingSuffix=f?C(f):h||C(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==m&&m,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){var e=(e,t)=>(null==e?void 0:e.source)===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"((?:[^()\"']+|\"[^\"]*\"|'[^']*'|\\((?:[^()]|\"[^\"]*\"|'[^']*')*\\))*?)").concat(this.nestingSuffix))}interpolate(e,t,n,r){var i,u,a,s,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){var i=X(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,o(o(o({},r),t),{},{interpolationkey:e})):i}var u=e.split(this.formatSeparator),a=u.shift().trim(),s=u.join(this.formatSeparator).trim();return this.format(X(t,l,a,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,o(o(o({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=(null==r?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,p=void 0!==(null==r||null===(i=r.interpolation)||void 0===i?void 0:i.skipOnVariables)?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>W(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?W(this.escape(e)):W(e)}].forEach(t=>{for(s=0;u=t.regex.exec(e);){var n=u[1].trim();if(void 0===(a=c(n)))if("function"==typeof d){var o=d(e,u,r);a=f(o)?o:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a="";else{if(p){a=u[0];continue}this.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),a=""}else f(a)||this.useRawValueToEscape||(a=g(a));var i=t.safeValue(a);if(e=e.replace(u[0],i),p?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=u[0].length):t.regex.lastIndex=0,++s>=this.maxReplaces)break}}),e}nest(e,t){for(var n,r,i,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(e,t)=>{var n,r,u=this.nestingOptionsSeparator;if(e.indexOf(u)<0)return e;var a=e.split(new RegExp("".concat(C(u),"[ ]*{"))),s="{".concat(a[1]);e=a[0];var l=(s=this.interpolate(s,i)).match(/'/g),c=s.match(/"/g);((null!==(n=null==l?void 0:l.length)&&void 0!==n?n:0)%2==0&&!c||(null!==(r=null==c?void 0:c.length)&&void 0!==r?r:0)%2!=0)&&(s=s.replace(/'/g,'"'));try{i=JSON.parse(s),t&&(i=o(o({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(u).concat(s)}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};n=this.nestingRegexp.exec(e);){var s=[];(i=(i=o({},u)).replace&&!f(i.replace)?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;var l=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==l&&(s=n[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),n[1]=n[1].slice(0,l)),(r=t(a.call(this,n[1].trim(),i),i))&&n[0]===e&&!f(r))return r;f(r)||(r=g(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),s.length&&(r=s.reduce((e,t)=>this.format(e,t,u.lng,o(o({},u),{},{interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}var $=e=>{var t={};return(n,r,i)=>{var u=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(u=o(o({},u),{},{[i.interpolationkey]:void 0}));var a=r+JSON.stringify(u),s=t[a];return s||(s=e(S(r),i),t[a]=s),s(n)}},Y=e=>(t,n,r)=>e(S(n),r)(t);class G{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=P.create("formatter"),this.options=e,this.init(e)}init(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||",";var n=t.cacheInBuiltFormats?$:Y;this.formats={number:n((e,t)=>{var n=new Intl.NumberFormat(e,o({},t));return e=>n.format(e)}),currency:n((e,t)=>{var n=new Intl.NumberFormat(e,o(o({},t),{},{style:"currency"}));return e=>n.format(e)}),datetime:n((e,t)=>{var n=new Intl.DateTimeFormat(e,o({},t));return e=>n.format(e)}),relativetime:n((e,t)=>{var n=new Intl.RelativeTimeFormat(e,o({},t));return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{var n=new Intl.ListFormat(e,o({},t));return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=$(t)}format(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){var u=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,u)].join(this.formatSeparator)}return i.reduce((e,t)=>{var{formatName:i,formatOptions:u}=(e=>{var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);if("currency"===t&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if("relativetime"===t&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{o.split(";").forEach(e=>{if(e){var[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){var a=e;try{var s,l=(null==r||null===(s=r.formatParams)||void 0===s?void 0:s[r.interpolationkey])||{},c=l.locale||l.lng||r.locale||r.lng||n;a=this.formats[i](e,c,o(o(o({},u),r),l))}catch(e){this.logger.warn(e)}return a}return this.logger.warn("there was no format function for ".concat(i)),e},e)}}class Z extends N{constructor(e,t,n){var r,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=P.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],null===(r=this.backend)||void 0===r||null===(o=r.init)||void 0===o||o.call(r,n,i.backend,i)}queueLoad(e,t,n,r){var o={},i={},u={},a={};return e.forEach(e=>{var r=!0;t.forEach(t=>{var u="".concat(e,"|").concat(t);!n.reload&&this.store.hasResourceBundle(e,t)?this.state[u]=2:this.state[u]<0||(1===this.state[u]?void 0===i[u]&&(i[u]=!0):(this.state[u]=1,r=!1,void 0===i[u]&&(i[u]=!0),void 0===o[u]&&(o[u]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(u[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);var u={};this.queue.forEach(n=>{((e,t,n,r)=>{var{obj:o,k:i}=b(e,t,Object);o[i]=o[i]||[],o[i].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{u[e]||(u[e]={});var t=n.loaded[e];t.length&&t.forEach(t=>{void 0===u[e][t]&&(u[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});else{this.readingCalls++;var u=(u,a)=>{if(this.readingCalls--,this.waitingReads.length>0){var s=this.waitingReads.shift();this.read(s.lng,s.ns,s.fcName,s.tried,s.wait,s.callback)}u&&a&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o):i(u,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,u);try{var s=a(e,t);s&&"function"==typeof s.then?s.then(e=>u(null,e)).catch(u):u(null,s)}catch(e){u(e)}}}prepareLoading(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=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."),r&&r();f(e)&&(e=this.languageUtils.toResolveHierarchy(e)),f(t)&&(t=[t]);var o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn("".concat(t,"loading namespace ").concat(o," for language ").concat(r," failed"),n),!n&&i&&this.logger.log("".concat(t,"loaded namespace ").concat(o," for language ").concat(r),i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,i){var u,a,s,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(null===(u=this.services)||void 0===u||null===(u=u.utils)||void 0===u||!u.hasLoadedNamespace||null!==(a=this.services)&&void 0!==a&&null!==(a=a.utils)&&void 0!==a&&a.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(null!==(s=this.backend)&&void 0!==s&&s.create){var d=o(o({},l),{},{isUpdate:i}),p=this.backend.create.bind(this.backend);if(p.length<6)try{var f;(f=5===p.length?p(e,t,n,r,d):p(e,t,n,r))&&"function"==typeof f.then?f.then(e=>c(null,e)).catch(c):c(null,f)}catch(e){c(e)}else p(e,t,n,r,c,d)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your 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!!!")}}var Q=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{var t={};if("object"==typeof e[1]&&(t=e[1]),f(e[1])&&(t.defaultValue=e[1]),f(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){var n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ee=e=>{var t,n;return f(e.ns)&&(e.ns=[e.ns]),f(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),f(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),(null===(t=e.supportedLngs)||void 0===t||null===(n=t.indexOf)||void 0===n?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e},te=()=>{};class ne extends N{constructor(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ee(t),this.services={},this.logger=P,this.modules={external:[]},e=this,Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),null==t.defaultNS&&t.ns&&(f(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r,i,u,a,s=Q();this.options=o(o(o({},s),this.options),ee(t)),this.options.interpolation=o(o({},s.interpolation),this.options.interpolation),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=s.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||((null==(r=this)||null===(i=r.modules)||void 0===i||null===(i=i.backend)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.indexOf("Locize"))>0||(null==r||null===(u=r.modules)||void 0===u||null===(u=u.backend)||void 0===u||null===(u=u.constructor)||void 0===u||null===(u=u.name)||void 0===u?void 0:u.indexOf("Locize"))>0||null!=r&&null!==(a=r.options)&&void 0!==a&&null!==(a=a.backend)&&void 0!==a&&a.backends&&r.options.backend.backends.some(e=>{var t,n;return(null==e||null===(t=e.name)||void 0===t?void 0:t.indexOf("Locize"))>0||(null==e||null===(n=e.constructor)||void 0===n||null===(n=n.name)||void 0===n?void 0:n.indexOf("Locize"))>0}))||"undefined"!=typeof globalThis&&globalThis.__i18next_supportNoticeShown||("undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),"undefined"!=typeof globalThis&&(globalThis.__i18next_supportNoticeShown=!0));var l=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){var c;this.modules.logger?P.init(l(this.modules.logger),this.options):P.init(null,this.options),c=this.modules.formatter?this.modules.formatter:G;var d=new H(this.options);this.store=new T(this.options.resources,this.options);var p=this.services;p.logger=P,p.resourceStore=this.store,p.languageUtils=d,p.pluralResolver=new K(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!c||this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format||(p.formatter=l(c),p.formatter.init&&p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new J(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new Z(l(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.languageDetector&&(p.languageDetector=l(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=l(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new U(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=te),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&"dev"!==g[0]&&(this.options.lng=g[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});var v=h(),m=()=>{var e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),v.resolve(t),n(e,t)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?m():setTimeout(m,0),v}loadResources(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te,n=f(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){var r,o;if("cimode"===(null==n?void 0:n.toLowerCase())&&(!this.options.preload||0===this.options.preload.length))return t();var i=[],u=e=>{e&&("cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach(e=>{"cimode"!==e&&i.indexOf(e)<0&&i.push(e)}))};if(n)u(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>u(e));null===(r=this.options.preload)||void 0===r||null===(o=r.forEach)||void 0===o||o.call(r,e=>u(e)),this.services.backendConnector.load(i,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){var r=h();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=te),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&I.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;var r=h();this.emit("languageChanging",e);var o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,u)=>{u?this.isLanguageChangingTo===e&&(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(i,(function(){return n.t(...arguments)}))},u=t=>{e||t||!this.services.languageDetector||(t=[]);var n,r,u=f(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(f(t)?[t]:t);a&&(this.language||o(a),this.translator.language||this.translator.changeLanguage(a),null===(n=this.services.languageDetector)||void 0===n||null===(r=n.cacheUserLanguage)||void 0===r||r.call(n,a));this.loadResources(a,e=>{i(e,a)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e):u(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this,i=function(e,t){var u;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];u=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else u=o({},t);u.lng=u.lng||i.lng,u.lngs=u.lngs||i.lngs,u.ns=u.ns||i.ns,""!==u.keyPrefix&&(u.keyPrefix=u.keyPrefix||n||i.keyPrefix);var c,d=r.options.keySeparator||".";return u.keyPrefix&&Array.isArray(e)?c=e.map(e=>("function"==typeof e&&(e=M(e,o(o({},r.options),t))),"".concat(u.keyPrefix).concat(d).concat(e))):("function"==typeof e&&(e=M(e,o(o({},r.options),t))),c=u.keyPrefix?"".concat(u.keyPrefix).concat(d).concat(e):e),r.t(c,u)};return f(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=this.translator)||void 0===e?void 0:e.translate(...n)}exists(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=this.translator)||void 0===e?void 0:e.exists(...n)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var i=(e,t)=>{var n=this.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===n||0===n||2===n};if(t.precheck){var u=t.precheck(this,i);if(void 0!==u)return u}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){var n=h();return this.options.ns?(f(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){var n=h();f(e)&&(e=[e]);var r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){var t,n;if(e||(e=this.resolvedLanguage||((null===(t=this.languages)||void 0===t?void 0:t.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{var r=new Intl.Locale(e);if(r&&r.getTextInfo){var o=r.getTextInfo();if(o&&o.direction)return o.direction}}catch(e){}var i=(null===(n=this.services)||void 0===n?void 0:n.languageUtils)||new H(Q());return e.toLowerCase().indexOf("-latn")>1?"ltr":["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","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){var e=new ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0);return e.createInstance=ne.createInstance,e}cloneInstance(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te,n=e.forkResourceStore;n&&delete e.forkResourceStore;var r=o(o(o({},this.options),e),{isClone:!0}),i=new ne(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));if(["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services=o({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){var u=Object.keys(this.store.data).reduce((e,t)=>(e[t]=o({},this.store.data[t]),e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]=o({},e[t][r]),n),e[t]),e),{});i.store=new T(u,r),i.services.resourceStore=i.store}if(e.interpolation){var a=o(o(o({},Q().interpolation),this.options.interpolation),e.interpolation),s=o(o({},r),{},{interpolation:a});i.services.interpolator=new J(s)}return i.translator=new U(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}var re=ne.createInstance();re.createInstance,re.dir,re.init,re.loadResources,re.reloadResources,re.use,re.changeLanguage,re.getFixedT,re.t,re.exists,re.setDefaultNamespace,re.hasLoadedNamespace,re.loadNamespaces,re.loadLanguages;function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":oe(XMLHttpRequest))}function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function se(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==le(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ce,de,pe="function"==typeof fetch?fetch:void 0;if("undefined"!=typeof global&&global.fetch?pe=global.fetch:"undefined"!=typeof window&&window.fetch&&(pe=window.fetch),ie()&&("undefined"!=typeof global&&global.XMLHttpRequest?ce=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(ce=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?de=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(de=window.ActiveXObject)),"function"!=typeof pe&&(pe=void 0),!pe&&!ce&&!de)try{import("cross-fetch").then((function(e){pe=e.default})).catch((function(){}))}catch(e){}var fe=function(e,t){if(t&&"object"===le(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},he=function(e,t,n,r){var o=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then((function(t){n(null,{status:e.status,data:t})})).catch(n)};if(r){var i=r(e,t);if(i instanceof Promise)return void i.then(o).catch(n)}"function"==typeof fetch?fetch(e,t).then(o).catch(n):pe(e,t).then(o).catch(n)},ge=!1,ve=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},pe&&0!==t.indexOf("file:")?function(e,t,n,r){e.queryStringParams&&(t=fe(t,e.queryStringParams));var o=ae({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"==typeof window&&"undefined"!=typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var i="function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions,u=ae({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},ge?{}:i),a="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{he(t,u,r,a)}catch(e){if(!i||0===Object.keys(i).length||!e.message||e.message.indexOf("not implemented")<0)return r(e);try{Object.keys(i).forEach((function(e){delete u[e]})),he(t,u,r,a),ge=!0}catch(e){r(e)}}}(e,t,n,r):ie()||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===le(n)&&(n=fe("",n).slice(1)),e.queryStringParams&&(t=fe(t,e.queryStringParams));try{var o=ce?new ce:new de("MSXML2.XMLHTTP.3.0");o.open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=e.customHeaders;if(i="function"==typeof i?i():i)for(var u in i)o.setRequestHeader(u,i[u]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(e){console&&console.log(e)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,we(r.key),r)}}function Ae(e,t,n){return(t=we(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function we(e){var t=function(e,t){if("object"!=me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==me(t)?t:t+""}var Ce=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return Ae({},t,n||"")},parseLoadPayload:function(e,t){},request:ve,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Oe=function(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ee(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}),[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=be(be(be({},Ce()),this.options||{}),n),this.allOptions=r,this.services&&this.options.reloadInterval){var o=setInterval((function(){return t.reload()}),this.options.reloadInterval);"object"===me(o)&&"function"==typeof o.unref&&o.unref()}}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,o){var i,u=this,a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(e,n)),(a=function(e){return!!e&&"function"==typeof e.then}(i=a)?i:Promise.resolve(i)).then((function(i){if(!i)return o(null,{});var a=u.services.interpolator.interpolate(i,{lng:e.join("+"),ns:n.join("+")});u.loadUrl(a,o,t,r)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this,i="string"==typeof n?[n]:n,u="string"==typeof r?[r]:r,a=this.options.parseLoadPayload(i,u);this.options.request(this.options,e,a,(function(i,u){if(u&&(u.status>=500&&u.status<600||!u.status))return t("failed loading "+e+"; status code: "+u.status,!0);if(u&&u.status>=400&&u.status<500)return t("failed loading "+e+"; status code: "+u.status,!1);if(!u&&i&&i.message){var a=i.message.toLowerCase();if(["failed","fetch","network","load"].find((function(e){return a.indexOf(e)>-1})))return t("failed loading "+e+": "+i.message,!0)}if(i)return t(i,!1);var s,l;try{s="string"==typeof u.data?o.options.parse(u.data,n,r):u.data}catch(t){l="failed parsing "+e+" to json"}if(l)return t(l,!1);t(null,s)}))}},{key:"create",value:function(e,t,n,r,o){var i=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var u=this.options.parsePayload(t,n,r),a=0,s=[],l=[];e.forEach((function(n){var r=i.options.addPath;"function"==typeof i.options.addPath&&(r=i.options.addPath(n,t));var c=i.services.interpolator.interpolate(r,{lng:n,ns:t});i.options.request(i.options,c,u,(function(t,n){a+=1,s.push(t),l.push(n),a===e.length&&"function"==typeof o&&o(s,l)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,o=t.logger,i=n.language;if(!i||"cimode"!==i.toLowerCase()){var u=[],a=function(e){r.toResolveHierarchy(e).forEach((function(e){u.indexOf(e)<0&&u.push(e)}))};a(i),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return a(e)})),u.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,i){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&i&&o.log("loaded namespace ".concat(e," for language ").concat(t),i),n.loaded("".concat(t,"|").concat(e),r,i)}))}))}))}}}]);Oe.type="backend";var{slice:ke,forEach:Fe}=[];var De=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Be={create(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),r&&(o.domain=r),document.cookie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},r=n,o=encodeURIComponent(t),i="".concat(e,"=").concat(o);if(r.maxAge>0){var u=r.maxAge-0;if(Number.isNaN(u))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(u))}if(r.domain){if(!De.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(r.domain)}if(r.path){if(!De.test(r.path))throw new TypeError("option path is invalid");i+="; Path=".concat(r.path)}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite){var a="string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite;switch(a){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return r.partitioned&&(i+="; Partitioned"),i}(e,t,o)},read(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}},Se={name:"cookie",lookup(e){var{lookupCookie:t}=e;if(t&&"undefined"!=typeof document)return Be.read(t)||void 0},cacheUserLanguage(e,t){var{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:i}=t;n&&"undefined"!=typeof document&&Be.create(n,e,r,o,i)}},Le={name:"querystring",lookup(e){var t,{lookupQuerystring:n}=e;if("undefined"!=typeof window){var r,{search:o}=window.location;!window.location.search&&(null===(r=window.location.hash)||void 0===r?void 0:r.indexOf("?"))>-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=o.substring(1).split("&"),u=0;u<i.length;u++){var a=i[u].indexOf("=");if(a>0)i[u].substring(0,a)===n&&(t=i[u].substring(a+1))}}return t}},je={name:"hash",lookup(e){var t,{lookupHash:n,lookupFromHashIndex:r}=e;if("undefined"!=typeof window){var{hash:o}=window.location;if(o&&o.length>2){var i=o.substring(1);if(n)for(var u=i.split("&"),a=0;a<u.length;a++){var s=u[a].indexOf("=");if(s>0)u[a].substring(0,s)===n&&(t=u[a].substring(s+1))}if(t)return t;if(!t&&r>-1){var l,c=o.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(c))return;return null===(l=c["number"==typeof r?r:0])||void 0===l?void 0:l.replace("/","")}}}return t}},Pe=null,Ne=()=>{if(null!==Pe)return Pe;try{if(!(Pe="undefined"!=typeof window&&null!==window.localStorage))return!1;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(e){Pe=!1}return Pe},Te={name:"localStorage",lookup(e){var{lookupLocalStorage:t}=e;if(t&&Ne())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){var{lookupLocalStorage:n}=t;n&&Ne()&&window.localStorage.setItem(n,e)}},Ie=null,Re=()=>{if(null!==Ie)return Ie;try{if(!(Ie="undefined"!=typeof window&&null!==window.sessionStorage))return!1;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(e){Ie=!1}return Ie},Me={name:"sessionStorage",lookup(e){var{lookupSessionStorage:t}=e;if(t&&Re())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){var{lookupSessionStorage:n}=t;n&&Re()&&window.sessionStorage.setItem(n,e)}},ze={name:"navigator",lookup(e){var t=[];if("undefined"!=typeof navigator){var{languages:n,userLanguage:r,language:o}=navigator;if(n)for(var i=0;i<n.length;i++)t.push(n[i]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},qe={name:"htmlTag",lookup(e){var t,{htmlTag:n}=e,r=n||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},Ue={name:"path",lookup(e){var t,{lookupFromPathIndex:n}=e;if("undefined"!=typeof window){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(r))return null===(t=r["number"==typeof n?n:0])||void 0===t?void 0:t.replace("/","")}}},He={name:"subdomain",lookup(e){var t,{lookupFromSubdomainIndex:n}=e,r="number"==typeof n?n+1:1,o="undefined"!=typeof window&&(null===(t=window.location)||void 0===t||null===(t=t.hostname)||void 0===t?void 0:t.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(o)return o[r]}},_e=!1;try{document.cookie,_e=!0}catch(e){}var Ve=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];_e||Ve.splice(1,1);class Ke{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return Fe.call(ke.call(arguments,1),t=>{if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{order:Ve,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(Se),this.addDetector(Le),this.addDetector(Te),this.addDetector(Me),this.addDetector(ze),this.addDetector(qe),this.addDetector(Ue),this.addDetector(He),this.addDetector(je)}addDetector(e){return this.detectors[e.name]=e,this}detect(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return e.forEach(e=>{if(this.detectors[e]){var n=this.detectors[e].lookup(this.options);n&&"string"==typeof n&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(e=>{return null!=e&&!("string"==typeof(t=e)&&[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(e=>e.test(t)));var t}).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}Ke.type="languageDetector";var Xe=a(s((function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}))),We=a(s((function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}))),Je=s((function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports}));a(Je);var $e=a(s((function(e){var t=l.default;e.exports=function(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return Je(e)},e.exports.__esModule=!0,e.exports.default=e.exports}))),Ye=a(s((function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}))),Ge=s((function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));a(Ge);var Ze=a(s((function(e){e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ge(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports})));function Qe(e,t,n){return t=Ye(t),$e(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ye(e).constructor):t.apply(e,n))}var et=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Xe(this,t),(n=Qe(this,t)).ele=e,n.options=r,n.observer=n.create(),n.internalChange=!0,n}return Ze(t,e),We(t,[{key:"create",value:function(){var e,t=this,n=new MutationObserver((function(n){t.internalChange&&(e&&window.clearTimeout(e),e=setTimeout((function(){t.internalChange&&(t.internalChange=!1)}),200)),t.internalChange||t.emit("changed",n)}));return n.observe(this.ele,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),n}},{key:"reset",value:function(){this.internalChange=!0}}])}(function(){return We((function e(){Xe(this,e),this.observers={}}),[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}])}()),tt=[],nt=!1,rt=!1;function ot(){if(!nt){nt=!0;for(var e=0;e<tt.length;e++)tt[e].fn.call(window,tt[e].ctx);tt=[]}}function it(){"complete"===document.readyState&&ot()}function ut(e,t){nt?setTimeout((function(){e(t)}),1):(tt.push({fn:e,ctx:t}),"complete"===document.readyState||!document.attachEvent&&"interactive"===document.readyState?setTimeout(ot,1):rt||(document.addEventListener?(document.addEventListener("DOMContentLoaded",ot,!1),window.addEventListener("load",ot,!1)):(document.attachEvent("onreadystatechange",it),window.attachEvent("onload",ot)),rt=!0))}var at=function(e){return e&&"VirtualNode"===e.type&&"2"===e.version};var st=function(e){return e&&"Widget"===e.type};var lt=function(e){return e&&"Thunk"===e.type};var ct=function(e){return e&&("function"==typeof e.hook&&!e.hasOwnProperty("hook")||"function"==typeof e.unhook&&!e.hasOwnProperty("unhook"))};var dt=ht,pt={},ft=[];function ht(e,t,n,r,o){this.tagName=e,this.properties=t||pt,this.children=n||ft,this.key=null!=r?String(r):void 0,this.namespace="string"==typeof o?o:null;var i,u=n&&n.length||0,a=0,s=!1,l=!1,c=!1;for(var d in t)if(t.hasOwnProperty(d)){var p=t[d];ct(p)&&p.unhook&&(i||(i={}),i[d]=p)}for(var f=0;f<u;f++){var h=n[f];at(h)?(a+=h.count||0,!s&&h.hasWidgets&&(s=!0),!l&&h.hasThunks&&(l=!0),c||!h.hooks&&!h.descendantHooks||(c=!0)):!s&&st(h)?"function"==typeof h.destroy&&(s=!0):!l&<(h)&&(l=!0)}this.count=u+a,this.hasWidgets=s,this.hasThunks=l,this.hooks=i,this.descendantHooks=c}ht.prototype.version="2",ht.prototype.type="VirtualNode";var gt=vt;function vt(e){this.text=String(e)}vt.prototype.version="2",vt.prototype.type="VirtualText";var mt=yt;function yt(e){this.text=String(e)}yt.prototype.type="Widget",yt.prototype.init=function(){return document.createComment(this.text)},yt.prototype.update=function(e,t){this.text!==e.text&&(t.nodeValue=this.text)};var bt=s((function(e){function t(e,o){return 1==e.nodeType?function(e){for(var o=e.tagName,i="http://www.w3.org/1999/xhtml"==e.namespaceURI?null:e.namespaceURI,u=function(e){for(var t={},o=0;o<n.length;o++){var i=n[o];if(e[i])if("style"!=i){if("img"!==e.tagName.toLowerCase()||"href"!==i)if("attributes"!=i)"tabIndex"==i&&-1===e.tabIndex||"contentEditable"==i&&"inherit"===e[i]||"object"!=typeof e[i]&&(t[i]=e[i]);else{for(var u=Array.prototype.slice.call(e[i]),a={},s=0;s<u.length;s++){var l=u[s].name;t[l]||t[r[l]]||(a[l]=e.getAttribute(l))}t[i]=a}}else{var c={};if(void 0!==e.style.length)for(var d=0;d<e.style.length;d++)p=e.style[d],c[p]=e.style.getPropertyValue(p);else for(var p in e.style)e.style[p]&&e.style.hasOwnProperty(p)&&(c[p]=e.style[p]);Object.keys(c).length&&(t[i]=c)}}return t}(e),a=[],s=0;s<e.childNodes.length;s++)a.push(t(e.childNodes[s]));return new dt(o,u,a,null,i)}(e):3==e.nodeType?new gt(e.nodeValue):8==e.nodeType?new mt(e.nodeValue):void 0}
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).locizify=t()}(this,(function(){"use strict";function e(e,t,n,r,o,i,u){try{var a=e[i](u),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(r,o)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var u=t.apply(n,r);function a(t){e(u,o,i,a,s,"next",t)}function s(t){e(u,o,i,a,s,"throw",t)}a(void 0)}))}}function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e,t){return e(t={exports:{}},t.exports),t.exports}var l=s((function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));a(l);var c=s((function(e){var t=l.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}));a(c);var d=s((function(e){var t=l.default;e.exports=function(e){var n=c(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}));a(d);var p=a(s((function(e){e.exports=function(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}))),f=e=>"string"==typeof e,h=()=>{var e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},g=e=>null==e?"":String(e),v=/###/g,m=e=>e&&e.includes("###")?e.replace(v,"."):e,y=e=>!e||f(e),b=(e,t,n)=>{for(var r=f(t)?t.split("."):t,o=0;o<r.length-1;){if(y(e))return{};var i=m(r[o]);!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{},++o}return y(e)?{}:{obj:e,k:m(r[o])}},E=(e,t,n)=>{var{obj:r,k:o}=b(e,t,Object);if(void 0===r&&1!==t.length){for(var i=t[t.length-1],u=t.slice(0,t.length-1),a=b(e,u,Object);void 0===a.obj&&u.length;){var s;i="".concat(u[u.length-1],".").concat(i),u=u.slice(0,u.length-1),null!==(s=a=b(e,u,Object))&&void 0!==s&&s.obj&&void 0!==a.obj["".concat(a.k,".").concat(i)]&&(a.obj=void 0)}a.obj["".concat(a.k,".").concat(i)]=n}else r[o]=n},A=(e,t)=>{var{obj:n,k:r}=b(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},w=(e,t,n)=>{var r=A(e,n);return void 0!==r?r:A(t,n)},x=(e,t,n)=>{for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?f(e[r])||e[r]instanceof String||f(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):x(e[r],t[r],n):e[r]=t[r]);return e},C=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),O={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},k=e=>f(e)?e.replace(/[&<>"'\/]/g,e=>O[e]):e;var F=[" ",",","?","!",";"],D=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){var t=this.regExpMap.get(e);if(void 0!==t)return t;var n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),B=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}for(var r=t.split(n),o=e,i=0;i<r.length;){if(!o||"object"!=typeof o)return;for(var u=void 0,a="",s=i;s<r.length;++s)if(s!==i&&(a+=n),void 0!==(u=o[a+=r[s]])){if(["string","number","boolean"].includes(typeof u)&&s<r.length-1)continue;i+=s-i+1;break}o=u}return o}},S=e=>null==e?void 0:e.replace(/_/g,"-"),j={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;null===(n=console)||void 0===n||null===(n=n[e])||void 0===n||null===(r=n.apply)||void 0===r||r.call(n,console,t)}};class L{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||j,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(f(e[0])&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}create(e){return new L(this.logger,o(o({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new L(this.logger,e)}}var P=new L;class N{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);var n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(e,t){var n=this,r=function(){t(...arguments),n.off(e,r)};return this.on(e,r),this}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{for(var[t,r]=e,o=0;o<r;o++)t(...n)});this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{for(var[r,o]=t,i=0;i<o;i++)r(e,...n)})}}class T extends N{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){var r,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):f(n)&&u?o.push(...n.split(u)):o.push(n)));var s=A(this.data,o);return s||t||n||!e.includes(".")||(e=o[0],t=o[1],n=o.slice(2).join(".")),!s&&a&&f(n)?B(null===(r=this.data)||void 0===r||null===(r=r[e])||void 0===r?void 0:r[t],n,u):s}addResource(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,u=[e,t];n&&(u=u.concat(i?n.split(i):n)),e.includes(".")&&(r=t,t=(u=e.split("."))[1]),this.addNamespaces(t),E(this.data,u,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)(f(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){var u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.includes(".")&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=A(this.data,a)||{};u.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?x(s,n,i):s=o(o({},s),n),E(this.data,a,s),u.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var I={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{var i,u;t=null!==(i=null===(u=this.processors[e])||void 0===u?void 0:u.process(t,n,r,o))&&void 0!==i?i:t}),t}},R=Symbol("i18next/PATH_KEY");function M(e,t){var n,r,{[R]:o}=e(function(){var e,t=[],n=Object.create(null);return n.get=(r,o)=>{var i,u;return null===(i=e)||void 0===i||null===(u=i.revoke)||void 0===u||u.call(i),o===R?t:(t.push(o),(e=Proxy.revocable(r,n)).proxy)},Proxy.revocable(Object.create(null),n).proxy}()),i=null!==(n=null==t?void 0:t.keySeparator)&&void 0!==n?n:".",u=null!==(r=null==t?void 0:t.nsSeparator)&&void 0!==r?r:":";if(o.length>1&&u){var a=null==t?void 0:t.ns,s=Array.isArray(a)?a:null;if(s&&s.length>1&&s.slice(1).includes(o[0]))return"".concat(o[0]).concat(u).concat(o.slice(1).join(i))}return o.join(i)}var z=e=>!f(e)&&"boolean"!=typeof e&&"number"!=typeof e;class q extends N{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=P.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e){var t=o({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}});if(null==e)return!1;var n=this.resolve(e,t);if(void 0===(null==n?void 0:n.res))return!1;var r=z(n.res);return!1!==t.returnObjects||!r}extractFromKey(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.includes(n),u=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";var r=F.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;var o=D.getRegExp("(".concat(r.map(e=>"?"===e?"\\?":e).join("|"),")")),i=!o.test(e);if(!i){var u=e.indexOf(n);u>0&&!o.test(e.substring(0,u))&&(i=!0)}return i})(e,n,r));if(i&&!u){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:f(o)?[o]:o};var s=e.split(n);(n!==r||n===r&&this.options.ns.includes(s[0]))&&(o=s.shift()),e=s.join(r)}return{key:e,namespaces:f(o)?[o]:o}}translate(e,t,n){var r="object"==typeof t?o({},t):t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r=o({},r)),r||(r={}),null==e)return"";"function"==typeof e&&(e=M(e,o(o({},this.options),r))),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?M(e,o(o({},this.options),r)):String(e));var i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,u=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],r),l=s[s.length-1],c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");var d=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===(null==d?void 0:d.toLowerCase()))return p?i?{res:"".concat(l).concat(c).concat(a),usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:"".concat(l).concat(c).concat(a):i?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a;var h=this.resolve(e,r),g=null==h?void 0:h.res,v=(null==h?void 0:h.usedKey)||a,m=(null==h?void 0:h.exactUsedKey)||a,y=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,E=void 0!==r.count&&!f(r.count),A=q.hasDefaultValue(r),w=E?this.pluralResolver.getSuffix(d,r.count,r):"",x=r.ordinal&&E?this.pluralResolver.getSuffix(d,r.count,{ordinal:!1}):"",C=E&&!r.ordinal&&0===r.count,O=C&&r["defaultValue".concat(this.options.pluralSeparator,"zero")]||r["defaultValue".concat(w)]||r["defaultValue".concat(x)]||r.defaultValue,k=g;b&&!g&&A&&(k=O);var F=z(k),D=Object.prototype.toString.apply(k);if(!(b&&k&&F)||["[object Number]","[object Function]","[object RegExp]"].includes(D)||f(y)&&Array.isArray(k))if(b&&f(y)&&Array.isArray(g))(g=g.join(y))&&(g=this.extendTranslation(g,e,r,n));else{var B=!1,S=!1;!this.isValidLookup(g)&&A&&(B=!0,g=O),this.isValidLookup(g)||(S=!0,g=a);var j=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:g,L=A&&O!==g&&this.options.updateMissing;if(S||B||L){if(this.logger.log(L?"updateKey":"missingKey",d,l,a,L?O:g),u){var P=this.resolve(a,o(o({},r),{},{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],T=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&T&&T[0])for(var I=0;I<T.length;I++)N.push(T[I]);else"all"===this.options.saveMissingTo?N=this.languageUtils.toResolveHierarchy(r.lng||this.language):N.push(r.lng||this.language);var R=(e,t,n)=>{var o,i=A&&n!==g?n:j;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,i,L,r):null!==(o=this.backendConnector)&&void 0!==o&&o.saveMissing&&this.backendConnector.saveMissing(e,l,t,i,L,r),this.emit("missingKey",e,l,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?N.forEach(e=>{var t=this.pluralResolver.getSuffixes(e,r);C&&r["defaultValue".concat(this.options.pluralSeparator,"zero")]&&!t.includes("".concat(this.options.pluralSeparator,"zero"))&&t.push("".concat(this.options.pluralSeparator,"zero")),t.forEach(t=>{R([e],a+t,r["defaultValue".concat(t)]||O)})}):R(N,a,O))}g=this.extendTranslation(g,e,r,h,n),S&&g===a&&this.options.appendNamespaceToMissingKey&&(g="".concat(l).concat(c).concat(a)),(S||B)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(l).concat(c).concat(a):a,B?g:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var U=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,k,o(o({},r),{},{ns:s})):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");return i?(h.res=U,h.usedParams=this.getUsedParamsDetails(r),h):U}if(u){var H=Array.isArray(k),_=H?[]:{},V=H?m:v;for(var K in k)if(Object.prototype.hasOwnProperty.call(k,K)){var W="".concat(V).concat(u).concat(K);_[K]=A&&!g?this.translate(W,o(o({},r),{},{defaultValue:z(O)?O[K]:void 0},{joinArrays:!1,ns:s})):this.translate(W,o(o({},r),{joinArrays:!1,ns:s})),_[K]===W&&(_[K]=k[K])}g=_}}return i?(h.res=g,h.usedParams=this.getUsedParamsDetails(r),h):g}extendTranslation(e,t,n,r,i){var u,a=this;if(null!==(u=this.i18nFormat)&&void 0!==u&&u.parse)e=this.i18nFormat.parse(e,o(o({},this.options.interpolation.defaultVariables),n),n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){var s;n.interpolation&&this.interpolator.init(o(o({},n),{interpolation:o(o({},this.options.interpolation),n.interpolation)}));var l,c=f(e)&&(void 0!==(null==n||null===(s=n.interpolation)||void 0===s?void 0:s.skipOnVariables)?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(c){var d=e.match(this.interpolator.nestingRegexp);l=d&&d.length}var p=n.replace&&!f(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p=o(o({},this.options.interpolation.defaultVariables),p)),e=this.interpolator.interpolate(e,p,n.lng||this.language||r.usedLng,n),c){var h=e.match(this.interpolator.nestingRegexp);l<(h&&h.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(null==i?void 0:i[0])!==r[0]||n.context?a.translate(...r,t):(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null)}),n)),n.interpolation&&this.interpolator.reset()}var g=n.postProcess||this.options.postProcess,v=f(g)?[g]:g;return null!=e&&null!=v&&v.length&&!1!==n.applyPostProcessor&&(e=I.handle(v,e,t,this.options&&this.options.postProcessPassResolved?o({i18nResolved:o(o({},r),{},{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),e}resolve(e){var t,n,r,i,u,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?M(e,o(o({},this.options),a)):e)),e.forEach(e=>{if(!this.isValidLookup(t)){var o=this.extractFromKey(e,a),s=o.key;n=s;var l=o.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));var c=void 0!==a.count&&!f(a.count),d=c&&!a.ordinal&&0===a.count,p=void 0!==a.context&&(f(a.context)||"number"==typeof a.context)&&""!==a.context,h=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);l.forEach(e=>{var o,l;this.isValidLookup(t)||(u=e,this.checkedLoadedFor["".concat(h[0],"-").concat(e)]||null===(o=this.utils)||void 0===o||!o.hasLoadedNamespace||null!==(l=this.utils)&&void 0!==l&&l.hasLoadedNamespace(u)||(this.checkedLoadedFor["".concat(h[0],"-").concat(e)]=!0,this.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your 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!!!")),h.forEach(n=>{var o;if(!this.isValidLookup(t)){i=n;var u,l=[s];if(null!==(o=this.i18nFormat)&&void 0!==o&&o.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,n,e,a);else{var f;c&&(f=this.pluralResolver.getSuffix(n,a.count,a));var h="".concat(this.options.pluralSeparator,"zero"),g="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(c&&(a.ordinal&&f.startsWith(g)&&l.push(s+f.replace(g,this.options.pluralSeparator)),l.push(s+f),d&&l.push(s+h)),p){var v="".concat(s).concat(this.options.contextSeparator||"_").concat(a.context);l.push(v),c&&(a.ordinal&&f.startsWith(g)&&l.push(v+f.replace(g,this.options.pluralSeparator)),l.push(v+f),d&&l.push(v+h))}}for(;u=l.pop();)this.isValidLookup(t)||(r=u,t=this.getResource(n,e,u,a))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:u}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return null!==(r=this.i18nFormat)&&void 0!==r&&r.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}getUsedParamsDetails(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!f(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n=o(o({},this.options.interpolation.defaultVariables),n)),!t)for(var r of(n=o({},n),["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[r];return n}static hasDefaultValue(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class U{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=P.create("languageUtils")}getScriptPartFromCode(e){if(!(e=S(e))||!e.includes("-"))return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=S(e))||!e.includes("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(f(e)&&e.includes("-")){var t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){return e?(e.forEach(e=>{if(!t){var n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(!t){var n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;var r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r||!(!e.includes("-")&&!r.includes("-"))&&(!(!e.includes("-")||r.includes("-")||e.slice(0,e.indexOf("-"))!==r)||!!(e.startsWith(r)&&r.length>1)))}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null;var t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),f(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){var n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return f(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):f(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||o(this.formatLanguageCode(e))}),r}}var H={zero:0,one:1,two:2,few:3,many:4,other:5},_={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class V{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=P.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=S("dev"===e?"en":e),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];try{t=new Intl.PluralRules(r,{type:o})}catch(r){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),_;if(!e.match(/-|_/))return _;var u=this.languageUtils.getLanguagePartFromCode(e);t=this.getRule(u,n)}return this.pluralRulesCache[i]=t,t}needsPlural(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),(null===(t=r)||void 0===t?void 0:t.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>"".concat(t).concat(e))}getSuffixes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>H[e]-H[t]).map(e=>"".concat(this.options.prepend).concat(t.ordinal?"ordinal".concat(this.options.prepend):"").concat(e)):[]}getSuffix(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(r.select(t)):(this.logger.warn("no plural rule found for: ".concat(e)),this.getSuffix("dev",t,n))}}var K=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=w(e,t,n);return!i&&o&&f(n)&&void 0===(i=B(e,n,r))&&(i=B(t,n,r)),i},W=e=>e.replace(/\$/g,"$$$$");class X{constructor(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=P.create("interpolator"),this.options=t,this.format=(null==t||null===(e=t.interpolation)||void 0===e?void 0:e.format)||(e=>e),this.init(t)}init(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:u,suffixEscaped:a,formatSeparator:s,unescapeSuffix:l,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:v,alwaysFormat:m}=e.interpolation;this.escape=void 0!==t?t:k,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?C(o):i||"{{",this.suffix=u?C(u):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=l?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?C(d):p||C("$t("),this.nestingSuffix=f?C(f):h||C(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==m&&m,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){var e=(e,t)=>(null==e?void 0:e.source)===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"((?:[^()\"']+|\"[^\"]*\"|'[^']*'|\\((?:[^()]|\"[^\"]*\"|'[^']*')*\\))*?)").concat(this.nestingSuffix))}interpolate(e,t,n,r){var i,u,a,s,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){var i=K(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,o(o(o({},r),t),{},{interpolationkey:e})):i}var u=e.split(this.formatSeparator),a=u.shift().trim(),s=u.join(this.formatSeparator).trim();return this.format(K(t,l,a,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,o(o(o({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=(null==r?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,p=void 0!==(null==r||null===(i=r.interpolation)||void 0===i?void 0:i.skipOnVariables)?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>W(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?W(this.escape(e)):W(e)}].forEach(t=>{for(s=0;u=t.regex.exec(e);){var n=u[1].trim();if(void 0===(a=c(n)))if("function"==typeof d){var o=d(e,u,r);a=f(o)?o:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a="";else{if(p){a=u[0];continue}this.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),a=""}else f(a)||this.useRawValueToEscape||(a=g(a));var i=t.safeValue(a);if(e=e.replace(u[0],i),p?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=u[0].length):t.regex.lastIndex=0,++s>=this.maxReplaces)break}}),e}nest(e,t){for(var n,r,i,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(e,t)=>{var n,r,u=this.nestingOptionsSeparator;if(!e.includes(u))return e;var a=e.split(new RegExp("".concat(C(u),"[ ]*{"))),s="{".concat(a[1]);e=a[0];var l=(s=this.interpolate(s,i)).match(/'/g),c=s.match(/"/g);((null!==(n=null==l?void 0:l.length)&&void 0!==n?n:0)%2==0&&!c||(null!==(r=null==c?void 0:c.length)&&void 0!==r?r:0)%2!=0)&&(s=s.replace(/'/g,'"'));try{i=JSON.parse(s),t&&(i=o(o({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(u).concat(s)}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};n=this.nestingRegexp.exec(e);){var s=[];(i=(i=o({},u)).replace&&!f(i.replace)?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;var l=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==l&&(s=n[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),n[1]=n[1].slice(0,l)),(r=t(a.call(this,n[1].trim(),i),i))&&n[0]===e&&!f(r))return r;f(r)||(r=g(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),s.length&&(r=s.reduce((e,t)=>this.format(e,t,u.lng,o(o({},u),{},{interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}var J=e=>{var t={};return(n,r,i)=>{var u=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(u=o(o({},u),{},{[i.interpolationkey]:void 0}));var a=r+JSON.stringify(u),s=t[a];return s||(s=e(S(r),i),t[a]=s),s(n)}},$=e=>(t,n,r)=>e(S(n),r)(t);class Y{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=P.create("formatter"),this.options=e,this.init(e)}init(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||",";var n=t.cacheInBuiltFormats?J:$;this.formats={number:n((e,t)=>{var n=new Intl.NumberFormat(e,o({},t));return e=>n.format(e)}),currency:n((e,t)=>{var n=new Intl.NumberFormat(e,o(o({},t),{},{style:"currency"}));return e=>n.format(e)}),datetime:n((e,t)=>{var n=new Intl.DateTimeFormat(e,o({},t));return e=>n.format(e)}),relativetime:n((e,t)=>{var n=new Intl.RelativeTimeFormat(e,o({},t));return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{var n=new Intl.ListFormat(e,o({},t));return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=J(t)}format(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t)return e;if(null==e)return e;var i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&!i[0].includes(")")&&i.find(e=>e.includes(")"))){var u=i.findIndex(e=>e.includes(")"));i[0]=[i[0],...i.splice(1,u)].join(this.formatSeparator)}return i.reduce((e,t)=>{var{formatName:i,formatOptions:u}=(e=>{var t=e.toLowerCase().trim(),n={};if(e.includes("(")){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].slice(0,-1);if("currency"!==t||o.includes(":"))if("relativetime"!==t||o.includes(":")){o.split(";").forEach(e=>{if(e){var[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}else n.range||(n.range=o.trim());else n.currency||(n.currency=o.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){var a=e;try{var s,l=(null==r||null===(s=r.formatParams)||void 0===s?void 0:s[r.interpolationkey])||{},c=l.locale||l.lng||r.locale||r.lng||n;a=this.formats[i](e,c,o(o(o({},u),r),l))}catch(e){this.logger.warn(e)}return a}return this.logger.warn("there was no format function for ".concat(i)),e},e)}}class G extends N{constructor(e,t,n){var r,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=P.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],null===(r=this.backend)||void 0===r||null===(o=r.init)||void 0===o||o.call(r,n,i.backend,i)}queueLoad(e,t,n,r){var o={},i={},u={},a={};return e.forEach(e=>{var r=!0;t.forEach(t=>{var u="".concat(e,"|").concat(t);!n.reload&&this.store.hasResourceBundle(e,t)?this.state[u]=2:this.state[u]<0||(1===this.state[u]?void 0===i[u]&&(i[u]=!0):(this.state[u]=1,r=!1,void 0===i[u]&&(i[u]=!0),void 0===o[u]&&(o[u]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(u[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);var u={};this.queue.forEach(n=>{((e,t,n,r)=>{var{obj:o,k:i}=b(e,t,Object);o[i]=o[i]||[],o[i].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{u[e]||(u[e]={});var t=n.loaded[e];t.length&&t.forEach(t=>{void 0===u[e][t]&&(u[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});else{this.readingCalls++;var u=(u,a)=>{if(this.readingCalls--,this.waitingReads.length>0){var s=this.waitingReads.shift();this.read(s.lng,s.ns,s.fcName,s.tried,s.wait,s.callback)}u&&a&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,2*o,i)},o):i(u,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,u);try{var s=a(e,t);s&&"function"==typeof s.then?s.then(e=>u(null,e)).catch(u):u(null,s)}catch(e){u(e)}}}prepareLoading(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=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."),r&&r();f(e)&&(e=this.languageUtils.toResolveHierarchy(e)),f(t)&&(t=[t]);var o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn("".concat(t,"loading namespace ").concat(o," for language ").concat(r," failed"),n),!n&&i&&this.logger.log("".concat(t,"loaded namespace ").concat(o," for language ").concat(r),i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,i){var u,a,s,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(null===(u=this.services)||void 0===u||null===(u=u.utils)||void 0===u||!u.hasLoadedNamespace||null!==(a=this.services)&&void 0!==a&&null!==(a=a.utils)&&void 0!==a&&a.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(null!==(s=this.backend)&&void 0!==s&&s.create){var d=o(o({},l),{},{isUpdate:i}),p=this.backend.create.bind(this.backend);if(p.length<6)try{var f;(f=5===p.length?p(e,t,n,r,d):p(e,t,n,r))&&"function"==typeof f.then?f.then(e=>c(null,e)).catch(c):c(null,f)}catch(e){c(e)}else p(e,t,n,r,c,d)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your 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!!!")}}var Z=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{var t={};if("object"==typeof e[1]&&(t=e[1]),f(e[1])&&(t.defaultValue=e[1]),f(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){var n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Q=e=>(f(e.ns)&&(e.ns=[e.ns]),f(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),f(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),ee=()=>{};class te extends N{constructor(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Q(t),this.services={},this.logger=P,this.modules={external:[]},e=this,Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),null==t.defaultNS&&t.ns&&(f(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));var r=Z();this.options=o(o(o({},r),this.options),Q(t)),this.options.interpolation=o(o({},r.interpolation),this.options.interpolation),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);var i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){var u;this.modules.logger?P.init(i(this.modules.logger),this.options):P.init(null,this.options),u=this.modules.formatter?this.modules.formatter:Y;var a=new U(this.options);this.store=new T(this.options.resources,this.options);var s=this.services;s.logger=P,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new V(a,{prepend:this.options.pluralSeparator}),u&&(s.formatter=i(u),s.formatter.init&&s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new X(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new G(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new q(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ee),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});var c=h(),d=()=>{var e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(t),n(e,t)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),c}loadResources(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=f(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){var r,o;if("cimode"===(null==n?void 0:n.toLowerCase())&&(!this.options.preload||0===this.options.preload.length))return t();var i=[],u=e=>{e&&("cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach(e=>{"cimode"!==e&&(i.includes(e)||i.push(e))}))};if(n)u(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>u(e));null===(r=this.options.preload)||void 0===r||null===(o=r.forEach)||void 0===o||o.call(r,e=>u(e)),this.services.backendConnector.load(i,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){var r=h();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=ee),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&I.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!["cimode","dev"].includes(n)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}this.resolvedLanguage||this.languages.includes(e)||!this.store.hasLanguageSomeTranslations(e)||(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;var r=h();this.emit("languageChanging",e);var o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,u)=>{u?this.isLanguageChangingTo===e&&(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(i,(function(){return n.t(...arguments)}))},u=t=>{e||t||!this.services.languageDetector||(t=[]);var n,r,u=f(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(f(t)?[t]:t);a&&(this.language||o(a),this.translator.language||this.translator.changeLanguage(a),null===(n=this.services.languageDetector)||void 0===n||null===(r=n.cacheUserLanguage)||void 0===r||r.call(n,a));this.loadResources(a,e=>{i(e,a)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e):u(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this,i=function(e,t){var u;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];u=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else u=o({},t);u.lng=u.lng||i.lng,u.lngs=u.lngs||i.lngs,u.ns=u.ns||i.ns,""!==u.keyPrefix&&(u.keyPrefix=u.keyPrefix||n||i.keyPrefix);var c=o(o({},r.options),u);"function"==typeof u.keyPrefix&&(u.keyPrefix=M(u.keyPrefix,c));var d,p=r.options.keySeparator||".";return u.keyPrefix&&Array.isArray(e)?d=e.map(e=>("function"==typeof e&&(e=M(e,c)),"".concat(u.keyPrefix).concat(p).concat(e))):("function"==typeof e&&(e=M(e,c)),d=u.keyPrefix?"".concat(u.keyPrefix).concat(p).concat(e):e),r.t(d,u)};return f(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=this.translator)||void 0===e?void 0:e.translate(...n)}exists(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=this.translator)||void 0===e?void 0:e.exists(...n)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var i=(e,t)=>{var n=this.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===n||0===n||2===n};if(t.precheck){var u=t.precheck(this,i);if(void 0!==u)return u}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){var n=h();return this.options.ns?(f(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){var n=h();f(e)&&(e=[e]);var r=this.options.preload||[],o=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){var t,n;if(e||(e=this.resolvedLanguage||((null===(t=this.languages)||void 0===t?void 0:t.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{var r=new Intl.Locale(e);if(r&&r.getTextInfo){var o=r.getTextInfo();if(o&&o.direction)return o.direction}}catch(e){}var i=(null===(n=this.services)||void 0===n?void 0:n.languageUtils)||new U(Z());return e.toLowerCase().indexOf("-latn")>1?"ltr":["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","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(i.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){var e=new te(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0);return e.createInstance=te.createInstance,e}cloneInstance(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=e.forkResourceStore;n&&delete e.forkResourceStore;var r=o(o(o({},this.options),e),{isClone:!0}),i=new te(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));if(["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services=o({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){var u=Object.keys(this.store.data).reduce((e,t)=>(e[t]=o({},this.store.data[t]),e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]=o({},e[t][r]),n),e[t]),e),{});i.store=new T(u,r),i.services.resourceStore=i.store}if(e.interpolation){var a=o(o(o({},Z().interpolation),this.options.interpolation),e.interpolation),s=o(o({},r),{},{interpolation:a});i.services.interpolator=new X(s)}return i.translator=new q(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}var ne=te.createInstance();ne.createInstance,ne.dir,ne.init,ne.loadResources,ne.reloadResources,ne.use,ne.changeLanguage,ne.getFixedT,ne.t,ne.exists,ne.setDefaultNamespace,ne.hasLoadedNamespace,ne.loadNamespaces,ne.loadLanguages;function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":re(XMLHttpRequest))}var ie=/\{\{(.+?)\}\}/g;function ue(e,t){return e.replace(ie,(function(e,n){var r=t[n.trim()];return null!=r?r:e}))}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function le(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ce(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ce(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var de,pe,fe="function"==typeof fetch?fetch:void 0;if("undefined"!=typeof global&&global.fetch?fe=global.fetch:"undefined"!=typeof window&&window.fetch&&(fe=window.fetch),oe()&&("undefined"!=typeof global&&global.XMLHttpRequest?de=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(de=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?pe=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(pe=window.ActiveXObject)),"function"!=typeof fe&&(fe=void 0),!fe&&!de&&!pe)try{import("cross-fetch").then((function(e){fe=e.default})).catch((function(){}))}catch(e){}var he=function(e,t){if(t&&"object"===ce(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},ge=function(e,t,n,r){var o=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then((function(t){n(null,{status:e.status,data:t})})).catch(n)};if(r){var i=r(e,t);if(i instanceof Promise)return void i.then(o).catch(n)}"function"==typeof fetch?fetch(e,t).then(o).catch(n):fe(e,t).then(o).catch(n)},ve=!1,me=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},fe&&0!==t.indexOf("file:")?function(e,t,n,r){e.queryStringParams&&(t=he(t,e.queryStringParams));var o=se({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"==typeof window&&"undefined"!=typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var i="function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions,u=se({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},ve?{}:i),a="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{ge(t,u,r,a)}catch(e){if(!i||0===Object.keys(i).length||!e.message||e.message.indexOf("not implemented")<0)return r(e);try{Object.keys(i).forEach((function(e){delete u[e]})),ge(t,u,r,a),ve=!0}catch(e){r(e)}}}(e,t,n,r):oe()||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===ce(n)&&(n=he("",n).slice(1)),e.queryStringParams&&(t=he(t,e.queryStringParams));try{var o=de?new de:new pe("MSXML2.XMLHTTP.3.0");o.open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=e.customHeaders;if(i="function"==typeof i?i():i)for(var u in i)o.setRequestHeader(u,i[u]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(e){console&&console.log(e)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ce(r.key),r)}}function xe(e,t,n){return(t=Ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e){var t=function(e,t){if("object"!=ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ye(t)?t:t+""}var Oe=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return xe({},t,n||"")},parseLoadPayload:function(e,t){},request:me,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},ke=function(e,t,n){return t&&we(e.prototype,t),n&&we(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ae(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}),[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=Ee(Ee(Ee({},Oe()),this.options||{}),n),this.allOptions=r,this.services&&this.options.reloadInterval){var o=setInterval((function(){return t.reload()}),this.options.reloadInterval);"object"===ye(o)&&"function"==typeof o.unref&&o.unref()}}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,o){var i,u=this,a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(e,n)),(a=function(e){return!!e&&"function"==typeof e.then}(i=a)?i:Promise.resolve(i)).then((function(i){if(!i)return o(null,{});var a=ue(i,{lng:e.join("+"),ns:n.join("+")});u.loadUrl(a,o,t,r)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this,i="string"==typeof n?[n]:n,u="string"==typeof r?[r]:r,a=this.options.parseLoadPayload(i,u);this.options.request(this.options,e,a,(function(i,u){if(u&&(u.status>=500&&u.status<600||!u.status))return t("failed loading "+e+"; status code: "+u.status,!0);if(u&&u.status>=400&&u.status<500)return t("failed loading "+e+"; status code: "+u.status,!1);if(!u&&i&&i.message){var a=i.message.toLowerCase();if(["failed","fetch","network","load"].find((function(e){return a.indexOf(e)>-1})))return t("failed loading "+e+": "+i.message,!0)}if(i)return t(i,!1);var s,l;try{s="string"==typeof u.data?o.options.parse(u.data,n,r):u.data}catch(t){l="failed parsing "+e+" to json"}if(l)return t(l,!1);t(null,s)}))}},{key:"create",value:function(e,t,n,r,o){var i=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var u=this.options.parsePayload(t,n,r),a=0,s=[],l=[];e.forEach((function(n){var r=i.options.addPath;"function"==typeof i.options.addPath&&(r=i.options.addPath(n,t));var c=ue(r,{lng:n,ns:t});i.options.request(i.options,c,u,(function(t,n){a+=1,s.push(t),l.push(n),a===e.length&&"function"==typeof o&&o(s,l)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,o=t.logger,i=n.language;if(!i||"cimode"!==i.toLowerCase()){var u=[],a=function(e){r.toResolveHierarchy(e).forEach((function(e){u.indexOf(e)<0&&u.push(e)}))};a(i),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return a(e)})),u.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,i){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&i&&o.log("loaded namespace ".concat(e," for language ").concat(t),i),n.loaded("".concat(t,"|").concat(e),r,i)}))}))}))}}}]);ke.type="backend";var{slice:Fe,forEach:De}=[];var Be=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Se={create(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),r&&(o.domain=r),document.cookie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},r=n,o=encodeURIComponent(t),i="".concat(e,"=").concat(o);if(r.maxAge>0){var u=r.maxAge-0;if(Number.isNaN(u))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(u))}if(r.domain){if(!Be.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(r.domain)}if(r.path){if(!Be.test(r.path))throw new TypeError("option path is invalid");i+="; Path=".concat(r.path)}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite){var a="string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite;switch(a){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return r.partitioned&&(i+="; Partitioned"),i}(e,t,o)},read(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}},je={name:"cookie",lookup(e){var{lookupCookie:t}=e;if(t&&"undefined"!=typeof document)return Se.read(t)||void 0},cacheUserLanguage(e,t){var{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:i}=t;n&&"undefined"!=typeof document&&Se.create(n,e,r,o,i)}},Le={name:"querystring",lookup(e){var t,{lookupQuerystring:n}=e;if("undefined"!=typeof window){var r,{search:o}=window.location;!window.location.search&&(null===(r=window.location.hash)||void 0===r?void 0:r.indexOf("?"))>-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=o.substring(1).split("&"),u=0;u<i.length;u++){var a=i[u].indexOf("=");if(a>0)i[u].substring(0,a)===n&&(t=i[u].substring(a+1))}}return t}},Pe={name:"hash",lookup(e){var t,{lookupHash:n,lookupFromHashIndex:r}=e;if("undefined"!=typeof window){var{hash:o}=window.location;if(o&&o.length>2){var i=o.substring(1);if(n)for(var u=i.split("&"),a=0;a<u.length;a++){var s=u[a].indexOf("=");if(s>0)u[a].substring(0,s)===n&&(t=u[a].substring(s+1))}if(t)return t;if(!t&&r>-1){var l,c=o.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(c))return;return null===(l=c["number"==typeof r?r:0])||void 0===l?void 0:l.replace("/","")}}}return t}},Ne=null,Te=()=>{if(null!==Ne)return Ne;try{if(!(Ne="undefined"!=typeof window&&null!==window.localStorage))return!1;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(e){Ne=!1}return Ne},Ie={name:"localStorage",lookup(e){var{lookupLocalStorage:t}=e;if(t&&Te())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){var{lookupLocalStorage:n}=t;n&&Te()&&window.localStorage.setItem(n,e)}},Re=null,Me=()=>{if(null!==Re)return Re;try{if(!(Re="undefined"!=typeof window&&null!==window.sessionStorage))return!1;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(e){Re=!1}return Re},ze={name:"sessionStorage",lookup(e){var{lookupSessionStorage:t}=e;if(t&&Me())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){var{lookupSessionStorage:n}=t;n&&Me()&&window.sessionStorage.setItem(n,e)}},qe={name:"navigator",lookup(e){var t=[];if("undefined"!=typeof navigator){var{languages:n,userLanguage:r,language:o}=navigator;if(n)for(var i=0;i<n.length;i++)t.push(n[i]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},Ue={name:"htmlTag",lookup(e){var t,{htmlTag:n}=e,r=n||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},He={name:"path",lookup(e){var t,{lookupFromPathIndex:n}=e;if("undefined"!=typeof window){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(r))return null===(t=r["number"==typeof n?n:0])||void 0===t?void 0:t.replace("/","")}}},_e={name:"subdomain",lookup(e){var t,{lookupFromSubdomainIndex:n}=e,r="number"==typeof n?n+1:1,o="undefined"!=typeof window&&(null===(t=window.location)||void 0===t||null===(t=t.hostname)||void 0===t?void 0:t.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(o)return o[r]}},Ve=!1;try{document.cookie,Ve=!0}catch(e){}var Ke=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Ve||Ke.splice(1,1);class We{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return De.call(Fe.call(arguments,1),t=>{if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{order:Ke,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(je),this.addDetector(Le),this.addDetector(Ie),this.addDetector(ze),this.addDetector(qe),this.addDetector(Ue),this.addDetector(He),this.addDetector(_e),this.addDetector(Pe)}addDetector(e){return this.detectors[e.name]=e,this}detect(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return e.forEach(e=>{if(this.detectors[e]){var n=this.detectors[e].lookup(this.options);n&&"string"==typeof n&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(e=>{return null!=e&&!("string"==typeof(t=e)&&[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(e=>e.test(t)));var t}).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}We.type="languageDetector";var Xe=a(s((function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}))),Je=a(s((function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}))),$e=s((function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports}));a($e);var Ye=a(s((function(e){var t=l.default;e.exports=function(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return $e(e)},e.exports.__esModule=!0,e.exports.default=e.exports}))),Ge=a(s((function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}))),Ze=s((function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));a(Ze);var Qe=a(s((function(e){e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ze(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports})));function et(e,t,n){return t=Ge(t),Ye(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ge(e).constructor):t.apply(e,n))}var tt=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Xe(this,t),(n=et(this,t)).ele=e,n.options=r,n.observer=n.create(),n.internalChange=!0,n}return Qe(t,e),Je(t,[{key:"create",value:function(){var e,t=this,n=new MutationObserver((function(n){t.internalChange&&(e&&window.clearTimeout(e),e=setTimeout((function(){t.internalChange&&(t.internalChange=!1)}),200)),t.internalChange||t.emit("changed",n)}));return n.observe(this.ele,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),n}},{key:"reset",value:function(){this.internalChange=!0}}])}(function(){return Je((function e(){Xe(this,e),this.observers={}}),[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}])}()),nt=[],rt=!1,ot=!1;function it(){if(!rt){rt=!0;for(var e=0;e<nt.length;e++)nt[e].fn.call(window,nt[e].ctx);nt=[]}}function ut(){"complete"===document.readyState&&it()}function at(e,t){rt?setTimeout((function(){e(t)}),1):(nt.push({fn:e,ctx:t}),"complete"===document.readyState||!document.attachEvent&&"interactive"===document.readyState?setTimeout(it,1):ot||(document.addEventListener?(document.addEventListener("DOMContentLoaded",it,!1),window.addEventListener("load",it,!1)):(document.attachEvent("onreadystatechange",ut),window.attachEvent("onload",it)),ot=!0))}var st=function(e){return e&&"VirtualNode"===e.type&&"2"===e.version};var lt=function(e){return e&&"Widget"===e.type};var ct=function(e){return e&&"Thunk"===e.type};var dt=function(e){return e&&("function"==typeof e.hook&&!e.hasOwnProperty("hook")||"function"==typeof e.unhook&&!e.hasOwnProperty("unhook"))};var pt=gt,ft={},ht=[];function gt(e,t,n,r,o){this.tagName=e,this.properties=t||ft,this.children=n||ht,this.key=null!=r?String(r):void 0,this.namespace="string"==typeof o?o:null;var i,u=n&&n.length||0,a=0,s=!1,l=!1,c=!1;for(var d in t)if(t.hasOwnProperty(d)){var p=t[d];dt(p)&&p.unhook&&(i||(i={}),i[d]=p)}for(var f=0;f<u;f++){var h=n[f];st(h)?(a+=h.count||0,!s&&h.hasWidgets&&(s=!0),!l&&h.hasThunks&&(l=!0),c||!h.hooks&&!h.descendantHooks||(c=!0)):!s&<(h)?"function"==typeof h.destroy&&(s=!0):!l&&ct(h)&&(l=!0)}this.count=u+a,this.hasWidgets=s,this.hasThunks=l,this.hooks=i,this.descendantHooks=c}gt.prototype.version="2",gt.prototype.type="VirtualNode";var vt=mt;function mt(e){this.text=String(e)}mt.prototype.version="2",mt.prototype.type="VirtualText";var yt=bt;function bt(e){this.text=String(e)}bt.prototype.type="Widget",bt.prototype.init=function(){return document.createComment(this.text)},bt.prototype.update=function(e,t){this.text!==e.text&&(t.nodeValue=this.text)};var Et=s((function(e){function t(e,o){return 1==e.nodeType?function(e){for(var o=e.tagName,i="http://www.w3.org/1999/xhtml"==e.namespaceURI?null:e.namespaceURI,u=function(e){for(var t={},o=0;o<n.length;o++){var i=n[o];if(e[i])if("style"!=i){if("img"!==e.tagName.toLowerCase()||"href"!==i)if("attributes"!=i)"tabIndex"==i&&-1===e.tabIndex||"contentEditable"==i&&"inherit"===e[i]||"object"!=typeof e[i]&&(t[i]=e[i]);else{for(var u=Array.prototype.slice.call(e[i]),a={},s=0;s<u.length;s++){var l=u[s].name;t[l]||t[r[l]]||(a[l]=e.getAttribute(l))}t[i]=a}}else{var c={};if(void 0!==e.style.length)for(var d=0;d<e.style.length;d++)p=e.style[d],c[p]=e.style.getPropertyValue(p);else for(var p in e.style)e.style[p]&&e.style.hasOwnProperty(p)&&(c[p]=e.style[p]);Object.keys(c).length&&(t[i]=c)}}return t}(e),a=[],s=0;s<e.childNodes.length;s++)a.push(t(e.childNodes[s]));return new pt(o,u,a,null,i)}(e):3==e.nodeType?new vt(e.nodeValue):8==e.nodeType?new yt(e.nodeValue):void 0}
|
|
2
2
|
/*!
|
|
3
3
|
* vdom-virtualize
|
|
4
4
|
* Copyright 2014 by Marcel Klehr <mklehr@gmx.net>
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
23
|
* THE SOFTWARE.
|
|
24
24
|
*/
|
|
25
|
-
e.exports=t;var n=e.exports.properties=["accept","accessKey","action","alt","async","autoComplete","autoPlay","cellPadding","cellSpacing","checked","className","colSpan","content","contentEditable","controls","crossOrigin","data","defer","dir","download","draggable","encType","formNoValidate","href","hrefLang","htmlFor","httpEquiv","icon","id","label","lang","list","loop","max","mediaGroup","method","min","multiple","muted","name","noValidate","pattern","placeholder","poster","preload","radioGroup","readOnly","rel","required","rowSpan","sandbox","scope","scrollLeft","scrolling","scrollTop","selected","span","spellCheck","src","srcDoc","srcSet","start","step","style","tabIndex","target","title","type","value","autoCapitalize","autoCorrect","property","attributes"],r=e.exports.attrBlacklist={class:"className"}})),Et=(bt.properties,bt.attrBlacklist,Array.isArray),xt=Object.prototype.toString,At=Et||function(e){return"[object Array]"===xt.call(e)};Ct.NONE=0,Ct.VTEXT=1,Ct.VNODE=2,Ct.WIDGET=3,Ct.PROPS=4,Ct.ORDER=5,Ct.INSERT=6,Ct.REMOVE=7,Ct.THUNK=8;var wt=Ct;function Ct(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}Ct.prototype.version="2",Ct.prototype.type="VirtualPatch";var Ot=function(e){return e&&"VirtualText"===e.type&&"2"===e.version};var kt=function(e,t){var n=e,r=t;lt(t)&&(r=Ft(t,e));lt(e)&&(n=Ft(e,null));return{a:n,b:r}};function Ft(e,t){var n=e.vnode;if(n||(n=e.vnode=e.render(t)),!(at(n)||Ot(n)||st(n)))throw new Error("thunk did not return a valid node");return n}var Dt=function(e){return"object"==typeof e&&null!==e},Bt=function e(t,n){var r;for(var o in t){o in n||((r=r||{})[o]=void 0);var i=t[o],u=n[o];if(i!==u)if(Dt(i)&&Dt(u))if(St(u)!==St(i))(r=r||{})[o]=u;else if(ct(u))(r=r||{})[o]=u;else{var a=e(i,u);a&&((r=r||{})[o]=a)}else(r=r||{})[o]=u}for(var s in n)s in t||((r=r||{})[s]=n[s]);return r};function St(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}function Lt(e,t){var n={a:e};return jt(e,t,n,0),n}function jt(e,t,n,r){if(e!==t){var o=n[r],i=!1;if(lt(e)||lt(t))Nt(e,t,n,r);else if(null==t)st(e)||(Pt(e,n,r),o=n[r]),o=Rt(o,new wt(wt.REMOVE,e,t));else if(at(t))if(at(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var u=Bt(e.properties,t.properties);u&&(o=Rt(o,new wt(wt.PROPS,e,u))),o=function(e,t,n,r,o){for(var i=e.children,u=function(e,t){var n=It(t),r=n.keys,o=n.free;if(o.length===t.length)return{children:t,moves:null};var i=It(e),u=i.keys;if(i.free.length===e.length)return{children:t,moves:null};for(var a=[],s=0,l=o.length,c=0,d=0;d<e.length;d++){var p,f=e[d];f.key?r.hasOwnProperty(f.key)?(p=r[f.key],a.push(t[p])):(p=d-c++,a.push(null)):s<l?(p=o[s++],a.push(t[p])):(p=d-c++,a.push(null))}for(var h=s>=o.length?t.length:o[s],g=0;g<t.length;g++){var v=t[g];v.key?u.hasOwnProperty(v.key)||a.push(v):g>=h&&a.push(v)}for(var m,y=a.slice(),b=0,E=[],x=[],A=0;A<t.length;){var w=t[A];for(m=y[b];null===m&&y.length;)E.push(Tt(y,b,null)),m=y[b];m&&m.key===w.key?(b++,A++):w.key?(m&&m.key&&r[m.key]!==A+1?(E.push(Tt(y,b,m.key)),(m=y[b])&&m.key===w.key?b++:x.push({key:w.key,to:A})):x.push({key:w.key,to:A}),A++):m&&m.key&&E.push(Tt(y,b,m.key))}for(;b<y.length;)m=y[b],E.push(Tt(y,b,m&&m.key));if(E.length===c&&!x.length)return{children:a,moves:null};return{children:a,moves:{removes:E,inserts:x}}}(i,t.children),a=u.children,s=i.length,l=a.length,c=s>l?s:l,d=0;d<c;d++){var p=i[d],f=a[d];o+=1,p?jt(p,f,n,o):f&&(r=Rt(r,new wt(wt.INSERT,null,f))),at(p)&&p.count&&(o+=p.count)}u.moves&&(r=Rt(r,new wt(wt.ORDER,e,u.moves)));return r}(e,t,n,o,r)}else o=Rt(o,new wt(wt.VNODE,e,t)),i=!0;else o=Rt(o,new wt(wt.VNODE,e,t)),i=!0;else Ot(t)?Ot(e)?e.text!==t.text&&(o=Rt(o,new wt(wt.VTEXT,e,t))):(o=Rt(o,new wt(wt.VTEXT,e,t)),i=!0):st(t)&&(st(e)||(i=!0),o=Rt(o,new wt(wt.WIDGET,e,t)));o&&(n[r]=o),i&&Pt(e,n,r)}}function Pt(e,t,n){!function e(t,n,r){if(at(t)){if(t.hooks&&(n[r]=Rt(n[r],new wt(wt.PROPS,t,function(e){var t={};for(var n in e)t[n]=void 0;return t}(t.hooks)))),t.descendantHooks||t.hasThunks)for(var o=t.children,i=o.length,u=0;u<i;u++){var a=o[u];e(a,n,r+=1),at(a)&&a.count&&(r+=a.count)}}else lt(t)&&Nt(t,null,n,r)}(e,t,n),function e(t,n,r){if(st(t))"function"==typeof t.destroy&&(n[r]=Rt(n[r],new wt(wt.REMOVE,t,null)));else if(at(t)&&(t.hasWidgets||t.hasThunks))for(var o=t.children,i=o.length,u=0;u<i;u++){var a=o[u];e(a,n,r+=1),at(a)&&a.count&&(r+=a.count)}else lt(t)&&Nt(t,null,n,r)}(e,t,n)}function Nt(e,t,n,r){var o=kt(e,t),i=Lt(o.a,o.b);(function(e){for(var t in e)if("a"!==t)return!0;return!1})(i)&&(n[r]=new wt(wt.THUNK,null,i))}function Tt(e,t,n){return e.splice(t,1),{from:t,key:n}}function It(e){for(var t={},n=[],r=e.length,o=0;o<r;o++){var i=e[o];i.key?t[i.key]=o:n.push(o)}return{keys:t,free:n}}function Rt(e,t){return e?(At(e)?e.push(t):e=[e,t],e):t}var Mt=Lt,zt=Array.prototype.slice,qt=function(e,t){"length"in e||(e=[e]);e=zt.call(e);for(;e.length;){var n=e.shift(),r=t(n);if(r)return r;n.childNodes&&n.childNodes.length&&(e=zt.call(n.childNodes).concat(e))}};var Ut=Ht;function Ht(e,t){if(!(this instanceof Ht))return new Ht(e,t);this.data=e,this.nodeValue=e,this.length=e.length,this.ownerDocument=t||null}Ht.prototype.nodeType=8,Ht.prototype.nodeName="#comment",Ht.prototype.toString=function(){return"[object Comment]"};var _t=Vt;function Vt(e,t){if(!(this instanceof Vt))return new Vt(e);this.data=e||"",this.length=this.data.length,this.ownerDocument=t||null}Vt.prototype.type="DOMTextNode",Vt.prototype.nodeType=3,Vt.prototype.nodeName="#text",Vt.prototype.toString=function(){return this.data},Vt.prototype.replaceData=function(e,t,n){var r=this.data,o=r.substring(0,e),i=r.substring(e+t,r.length);this.data=o+n+i,this.length=this.data.length};var Kt=function(e){var t=this,n=e.type;e.target||(e.target=t);t.listeners||(t.listeners={});var r=t.listeners[n];if(r)return r.forEach((function(n){e.currentTarget=t,"function"==typeof n?n(e):n.handleEvent(e)}));t.parentNode&&t.parentNode.dispatchEvent(e)};var Xt=function(e,t){this.listeners||(this.listeners={});this.listeners[e]||(this.listeners[e]=[]);-1===this.listeners[e].indexOf(t)&&this.listeners[e].push(t)};var Wt=function(e,t){if(!this.listeners)return;if(!this.listeners[e])return;var n=this.listeners[e],r=n.indexOf(t);-1!==r&&n.splice(r,1)};var Jt=Yt,$t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function Yt(e){switch(e.nodeType){case 3:return Qt(e.data);case 8:return"\x3c!--"+e.data+"--\x3e";default:return function(e){var t=[],n=e.tagName;"http://www.w3.org/1999/xhtml"===e.namespaceURI&&(n=n.toLowerCase());t.push("<"+n+function(e){var t=[];for(var n in e)Gt(e,n)&&t.push({name:n,value:e[n]});for(var r in e._attributes)for(var o in e._attributes[r]){var i=e._attributes[r][o],u=(i.prefix?i.prefix+":":"")+o;t.push({name:u,value:i.value})}e.className&&t.push({name:"class",value:e.className});return t.length?Zt(t):""}(e)+function(e){var t=e.dataset,n=[];for(var r in t)n.push({name:"data-"+r,value:t[r]});return n.length?Zt(n):""}(e)),$t.indexOf(n)>-1?t.push(" />"):(t.push(">"),e.childNodes.length?t.push.apply(t,e.childNodes.map(Yt)):e.textContent||e.innerText?t.push(Qt(e.textContent||e.innerText)):e.innerHTML&&t.push(e.innerHTML),t.push("</"+n+">"));return t.join("")}(e)}}function Gt(e,t){var n=typeof e[t];return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===n||"boolean"===n||"number"===n)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}function Zt(e){var t=[];return e.forEach((function(e){var n=e.name,r=e.value;"style"===n&&(r=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach((function(n){var r=e[n];n=n.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),t+=n+":"+r+";"})),t}(r)),t.push(n+'="'+(Qt(r).replace(/"/g,""")+'"'))})),t.length?" "+t.join(" "):""}function Qt(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var en="http://www.w3.org/1999/xhtml",tn=nn;function nn(e,t,n){if(!(this instanceof nn))return new nn(e);var r=void 0===n?en:n||null;this.tagName=r===en?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=r,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}nn.prototype.type="DOMElement",nn.prototype.nodeType=1,nn.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},nn.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[n]=e,e.parentNode=this,t},nn.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},nn.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=null==t?-1:this.childNodes.indexOf(t);return n>-1?this.childNodes.splice(n,0,e):this.childNodes.push(e),e.parentNode=this,e},nn.prototype.setAttributeNS=function(e,t,n){var r=null,o=t,i=t.indexOf(":");(i>-1&&(r=t.substr(0,i),o=t.substr(i+1)),"INPUT"===this.tagName&&"type"===t)?this.type=n:(this._attributes[e]||(this._attributes[e]={}))[o]={value:n,prefix:r}},nn.prototype.getAttributeNS=function(e,t){var n=this._attributes[e],r=n&&n[t]&&n[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof r?null:r},nn.prototype.removeAttributeNS=function(e,t){var n=this._attributes[e];n&&delete n[t]},nn.prototype.hasAttributeNS=function(e,t){var n=this._attributes[e];return!!n&&t in n},nn.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},nn.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},nn.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},nn.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},nn.prototype.removeEventListener=Wt,nn.prototype.addEventListener=Xt,nn.prototype.dispatchEvent=Kt,nn.prototype.focus=function(){},nn.prototype.toString=function(){return Jt(this)},nn.prototype.getElementsByClassName=function(e){var t=e.split(" "),n=[];return qt(this,(function(e){if(1===e.nodeType){var r=(e.className||"").split(" ");t.every((function(e){return-1!==r.indexOf(e)}))&&n.push(e)}})),n},nn.prototype.getElementsByTagName=function(e){e=e.toLowerCase();var t=[];return qt(this.childNodes,(function(n){1!==n.nodeType||"*"!==e&&n.tagName.toLowerCase()!==e||t.push(n)})),t},nn.prototype.contains=function(e){return qt(this,(function(t){return e===t}))||!1};var rn=on;function on(e){if(!(this instanceof on))return new on;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}on.prototype.type="DocumentFragment",on.prototype.nodeType=11,on.prototype.nodeName="#document-fragment",on.prototype.appendChild=tn.prototype.appendChild,on.prototype.replaceChild=tn.prototype.replaceChild,on.prototype.removeChild=tn.prototype.removeChild,on.prototype.toString=function(){return this.childNodes.map((function(e){return String(e)})).join("")};var un=an;function an(e){}an.prototype.initEvent=function(e,t,n){this.type=e,this.bubbles=t,this.cancelable=n},an.prototype.preventDefault=function(){};var sn=ln;function ln(){if(!(this instanceof ln))return new ln;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var cn=ln.prototype;cn.createTextNode=function(e){return new _t(e,this)},cn.createElementNS=function(e,t){var n=null===e?null:String(e);return new tn(t,this,n)},cn.createElement=function(e){return new tn(e,this)},cn.createDocumentFragment=function(){return new rn(this)},cn.createEvent=function(e){return new un(e)},cn.createComment=function(e){return new Ut(e,this)},cn.getElementById=function(e){return e=String(e),qt(this.childNodes,(function(t){if(String(t.id)===e)return t}))||null},cn.getElementsByClassName=tn.prototype.getElementsByClassName,cn.getElementsByTagName=tn.prototype.getElementsByTagName,cn.contains=tn.prototype.contains,cn.removeEventListener=Wt,cn.addEventListener=Xt,cn.dispatchEvent=Kt;var dn,pn=new sn,fn=void 0!==u?u:"undefined"!=typeof window?window:{};"undefined"!=typeof document?dn=document:(dn=fn["__GLOBAL_DOCUMENT_CACHE@4"])||(dn=fn["__GLOBAL_DOCUMENT_CACHE@4"]=pn);var hn=dn,gn=function(e,t,n){for(var r in t){var o=t[r];void 0===o?vn(e,r,o,n):ct(o)?(vn(e,r,o,n),o.hook&&o.hook(e,r,n?n[r]:void 0)):Dt(o)?mn(e,t,n,r,o):e[r]=o}};function vn(e,t,n,r){if(r){var o=r[t];if(ct(o))o.unhook&&o.unhook(e,t,n);else if("attributes"===t)for(var i in o)e.removeAttribute(i);else if("style"===t)for(var u in o)e.style[u]="";else e[t]="string"==typeof o?"":null}}function mn(e,t,n,r,o){var i=n?n[r]:void 0;if("attributes"!==r)if(i&&Dt(i)&&yn(i)!==yn(o))e[r]=o;else{Dt(e[r])||(e[r]={});var u="style"===r?"":void 0;for(var a in o){var s=o[a];e[r][a]=void 0===s?u:s}}else for(var l in o){var c=o[l];void 0===c?e.removeAttribute(l):e.setAttribute(l,c)}}function yn(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}var bn=function e(t,n){var r=n&&n.document||hn,o=n?n.warn:null;if(t=kt(t).a,st(t))return t.init();if(Ot(t))return r.createTextNode(t.text);if(!at(t))return o&&o("Item is not a valid virtual dom node",t),null;var i=null===t.namespace?r.createElement(t.tagName):r.createElementNS(t.namespace,t.tagName),u=t.properties;gn(i,u);for(var a=t.children,s=0;s<a.length;s++){var l=e(a[s],n);l&&i.appendChild(l)}return i};var En={},xn=function(e,t,n,r){return n&&0!==n.length?(n.sort(wn),function e(t,n,r,o,i){if(o=o||{},t){An(r,i,i)&&(o[i]=t);var u=n.children;if(u)for(var a=t.childNodes,s=0;s<n.children.length;s++){i+=1;var l=u[s]||En,c=i+(l.count||0);An(r,i,c)&&e(a[s],l,r,o,i),i=c}}return o}(e,t,n,r,0)):{}};function An(e,t,n){if(0===e.length)return!1;for(var r,o,i=0,u=e.length-1;i<=u;){if(o=e[r=(u+i)/2>>0],i===u)return o>=t&&o<=n;if(o<t)i=r+1;else{if(!(o>n))return!0;u=r-1}}return!1}function wn(e,t){return e>t?1:-1}var Cn=function(e,t){if(st(e)&&st(t))return"name"in e&&"name"in t?e.id===t.id:e.init===t.init;return!1};var On=function(e,t,n){var r=e.type,o=e.vNode,i=e.patch;switch(r){case wt.REMOVE:return function(e,t){var n=e.parentNode;n&&n.removeChild(e);return kn(e,t),null}(t,o);case wt.INSERT:return function(e,t,n){var r=n.render(t,n);e&&e.appendChild(r);return e}(t,i,n);case wt.VTEXT:return function(e,t,n,r){var o;if(3===e.nodeType)e.replaceData(0,e.length,n.text),o=e;else{var i=e.parentNode;o=r.render(n,r),i&&o!==e&&i.replaceChild(o,e)}return o}(t,0,i,n);case wt.WIDGET:return function(e,t,n,r){var o,i=Cn(t,n);o=i?n.update(t,e)||e:r.render(n,r);var u=e.parentNode;u&&o!==e&&u.replaceChild(o,e);i||kn(e,t);return o}(t,o,i,n);case wt.VNODE:return function(e,t,n,r){var o=e.parentNode,i=r.render(n,r);o&&i!==e&&o.replaceChild(i,e);return i}(t,0,i,n);case wt.ORDER:return function(e,t){for(var n,r,o,i=e.childNodes,u={},a=0;a<t.removes.length;a++)r=t.removes[a],n=i[r.from],r.key&&(u[r.key]=n),e.removeChild(n);for(var s=i.length,l=0;l<t.inserts.length;l++)o=t.inserts[l],n=u[o.key],e.insertBefore(n,o.to>=s++?null:i[o.to])}(t,i),t;case wt.PROPS:return gn(t,i,o.properties),t;case wt.THUNK:return function(e,t){e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e);return t}(t,n.patch(t,i,n));default:return t}};function kn(e,t){"function"==typeof t.destroy&&st(t)&&t.destroy(e)}function Fn(e,t,n){var r=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===r.length)return e;var o=xn(e,t.a,r),i=e.ownerDocument;n.document||i===hn||(n.document=i);for(var u=0;u<r.length;u++){var a=r[u];e=Dn(e,o[a],t[a],n)}return e}function Dn(e,t,n,r){if(!t)return e;var o;if(At(n))for(var i=0;i<n.length;i++)o=On(n[i],t,r),t===e&&(e=o);else o=On(n,t,r),t===e&&(e=o);return e}var Bn=function e(t,n,r){return(r=r||{}).patch=r.patch&&r.patch!==e?r.patch:Fn,r.render=r.render||bn,r.patch(t,n,r)},Sn=s((function(e,t){e.exports=function(){var e=o((function(e){return e})),t=i(o((function(e){var t=e.length;return new e.constructor(t)})),["BYTES_PER_ELEMENT","get","set","slice","subarray","buffer","length","byteOffset","byteLength"]);function n(e){return"[object "+e+"]"}var r={};function o(e){return function(t,n,r){n.push(t);var o=e(t);return r.push(o),o}}function i(e,t){return function(n,r,o){var i=this;return Object.getOwnPropertyNames(n).filter((function(e){return!t||-1===t.indexOf(e)})).reduce((function(e,t){var u=r.indexOf(n[t]);return e[t]=-1===u?i(n[t]):o[u],e}),e(n,r,o))}}return r[n("RegExp")]=o((function(e){return new RegExp(e)})),r[n("Date")]=o((function(e){return new Date(e.getTime())})),r[n("Function")]=i(o((function(e){return n=function(e){for(var t=[],n=1;n<=e;n++)t.push("arg"+n);return t}((t=e).length),r="return false || function ",r+=t.name+"(",r+=n.join(", ")+") {\n",r+="return fn.apply(this, arguments);\n",r+="};",Function("fn",r)(t);var t,n,r})),["caller","arguments"]),r[n("Object")]=i(o((function(e){return Object.create(Object.getPrototypeOf(e))}))),r[n("Array")]=i(o((function(e){return[]}))),["Null","Undefined","Number","String","Boolean"].map(n).forEach((function(t){r[t]=e})),["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].map(n).forEach((function(e){r[e]=t})),function(e){var t=[],n=[];return function e(o){var i=Object.prototype.toString.call(o);return r[i].call(e,o,t,n)}(e)}}()})),Ln=function(){return We((function e(){Xe(this,e)}),[{key:"start",value:function(){this.started=(new Date).getTime()}},{key:"end",value:function(){return this.ended=(new Date).getTime(),this.ended-this.started}}])}(),jn=/["'&<>]/,Pn=function(e){var t,n=""+e,r=jn.exec(n);if(!r)return n;var o="",i=0,u=0;for(i=r.index;i<n.length;i++){switch(n.charCodeAt(i)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}u!==i&&(o+=n.substring(u,i)),u=i+1,o+=t}return u!==i?o+n.substring(u,i):o};var Nn=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Tn.call(n,r)&&(e[r]=n[r])}return e},Tn=Object.prototype.hasOwnProperty;var In=Rn;function Rn(e){if(!(this instanceof Rn))return new Rn(e);this.value=e}Rn.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)};var Mn=zn;function zn(e,t){if(!(this instanceof zn))return new zn(e,t);this.namespace=e,this.value=t}zn.prototype.hook=function(e,t,n){n&&"AttributeHook"===n.type&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},zn.prototype.unhook=function(e,t,n){if(!n||"AttributeHook"!==n.type||n.namespace!==this.namespace){var r=t.indexOf(":"),o=r>-1?t.substr(r+1):t;e.removeAttributeNS(this.namespace,o)}},zn.prototype.type="AttributeHook";var qn,Un,Hn={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}},_n=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g,Vn=/([\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])([\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,Kn=/([\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([^\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,Xn=function(e,t,n){if(null==e)return"";return n=n||" ",function(e,t){var n=Hn[t];return e=null==e?"":String(e),n&&(e=e.replace(n.regexp,(function(e){return n.map[e]}))),e.toLowerCase()}(e=String(e).replace(Vn,"$1 $2").replace(Kn,"$1 $2").replace(_n,(function(e,t,r){return 0===t||t===r.length-e.length?"":n})),t)},Wn=function(e,t){return Xn(e,t,"-")},Jn={BOOLEAN:1,OVERLOADED_BOOLEAN:2},$n={attributeTypes:Jn,properties:{accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:Jn.BOOLEAN,allowTransparency:!0,alt:!0,async:Jn.BOOLEAN,autocomplete:!0,autofocus:Jn.BOOLEAN,autoplay:Jn.BOOLEAN,cellPadding:!0,cellSpacing:!0,charset:!0,checked:Jn.BOOLEAN,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:Jn.BOOLEAN,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,defer:Jn.BOOLEAN,dir:!0,disabled:Jn.BOOLEAN,download:Jn.OVERLOADED_BOOLEAN,draggable:!0,enctype:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:Jn.BOOLEAN,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:Jn.BOOLEAN,href:!0,hreflang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,label:!0,lang:!0,list:!0,loop:Jn.BOOLEAN,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,multiple:Jn.BOOLEAN,muted:Jn.BOOLEAN,name:!0,noValidate:Jn.BOOLEAN,open:!0,pattern:!0,placeholder:!0,poster:!0,preload:!0,radiogroup:!0,readOnly:Jn.BOOLEAN,rel:!0,required:Jn.BOOLEAN,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scrolling:!0,seamless:Jn.BOOLEAN,selected:Jn.BOOLEAN,shape:!0,size:!0,sizes:!0,span:!0,spellcheck:!0,src:!0,srcdoc:!0,srcset:!0,start:!0,step:!0,style:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,autocapitalize:!0,autocorrect:!0,itemProp:!0,itemScope:Jn.BOOLEAN,itemType:!0,property:!0},attributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}},Yn=$n.attributeTypes,Gn=$n.properties,Zn=$n.attributeNames,Qn=(qn=function(e){return Pn(e)+'="'},Un={},function(e){return Un.hasOwnProperty(e)?Un[e]:Un[e]=qn.call(this,e)}),er=function(e,t,n){if(Gn.hasOwnProperty(e)){if(function(e,t){var n=Gn[e];return null==t||n===Yn.BOOLEAN&&!t||n===Yn.OVERLOADED_BOOLEAN&&!1===t}(e,t))return"";e=(Zn[e]||e).toLowerCase();var r=Gn[e];return r===Yn.BOOLEAN||r===Yn.OVERLOADED_BOOLEAN&&!0===t?Pn(e):Qn(e)+Pn(t)+'"'}if(n)return null==t?"":Qn(e)+Pn(t)+'"';return null};var tr={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},nr=rr;function rr(e,t){return e?(lt(e)&&(e=e.render()),st(e)&&e.render&&(e=e.render()),at(e)?function(e){var t=e.properties,n="<"+e.tagName.toLowerCase();for(var r in t){var o=t[r];if(null!=o)if("attributes"!=r)if("dataset"!=r){if("style"==r){var i="";for(var u in o=Nn({},o))i+=Wn(u)+": "+o[u]+"; ";o=i.trim()}if(o instanceof In||o instanceof Mn)n+=" "+er(r,o.value,!0);else{var a=er(r,o);a&&(n+=" "+a)}}else for(var s in o=Nn({},o))n+=" "+er("data-"+Wn(s),o[s],!0);else for(var l in o=Nn({},o))n+=" "+er(l,o[l],!0)}return n+">"}(e)+function(e){var t=e.properties.innerHTML;if(null!=t)return t;var n="";if(e.children&&e.children.length)for(var r=0,o=e.children.length;r<o;r++){var i=e.children[r];n+=rr(i,e)}return n}(e)+function(e){var t=e.tagName.toLowerCase();return tr[t]?"":"</"+t+">"}(e):Ot(e)?!t||"script"!==t.tagName.toLowerCase()&&"style"!==t.tagName.toLowerCase()?Pn(String(e.text)):String(e.text):""):""}var or,ir={abbr:"abbr",accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",async:"async",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charset",checked:"checked",cite:"cite",class:"className",cols:"cols",colspan:"colSpan",command:"command",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",dropzone:"dropzone",enctype:"encType",for:"htmlFor",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameBorder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",ismap:"isMap",itemid:"itemId",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",manifest:"manifest",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",ping:"ping",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radioGroup",readonly:"readOnly",rel:"rel",required:"required",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",sortable:"sortable",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srcset:"srcSet",start:"start",step:"step",style:"style",tabindex:"tabIndex",target:"target",title:"title",translate:"translate",type:"type",typemustmatch:"typeMustMatch",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},ur="http://www.w3.org/1999/xlink",ar="http://www.w3.org/XML/1998/namespace",sr={about:null,"accent-height":null,accumulate:null,additive:null,"alignment-baseline":null,alphabetic:null,amplitude:null,"arabic-form":null,ascent:null,attributeName:null,attributeType:null,azimuth:null,bandwidth:null,baseFrequency:null,baseProfile:null,"baseline-shift":null,bbox:null,begin:null,bias:null,by:null,calcMode:null,"cap-height":null,class:null,clip:null,"clip-path":null,"clip-rule":null,clipPathUnits:null,color:null,"color-interpolation":null,"color-interpolation-filters":null,"color-profile":null,"color-rendering":null,content:null,contentScriptType:null,contentStyleType:null,cursor:null,cx:null,cy:null,d:null,datatype:null,defaultAction:null,descent:null,diffuseConstant:null,direction:null,display:null,divisor:null,"dominant-baseline":null,dur:null,dx:null,dy:null,edgeMode:null,editable:null,elevation:null,"enable-background":null,end:null,"ev:event":"http://www.w3.org/2001/xml-events",event:null,exponent:null,externalResourcesRequired:null,fill:null,"fill-opacity":null,"fill-rule":null,filter:null,filterRes:null,filterUnits:null,"flood-color":null,"flood-opacity":null,focusHighlight:null,focusable:null,"font-family":null,"font-size":null,"font-size-adjust":null,"font-stretch":null,"font-style":null,"font-variant":null,"font-weight":null,format:null,from:null,fx:null,fy:null,g1:null,g2:null,"glyph-name":null,"glyph-orientation-horizontal":null,"glyph-orientation-vertical":null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:null,height:null,"horiz-adv-x":null,"horiz-origin-x":null,"horiz-origin-y":null,id:null,ideographic:null,"image-rendering":null,in:null,in2:null,initialVisibility:null,intercept:null,k:null,k1:null,k2:null,k3:null,k4:null,kernelMatrix:null,kernelUnitLength:null,kerning:null,keyPoints:null,keySplines:null,keyTimes:null,lang:null,lengthAdjust:null,"letter-spacing":null,"lighting-color":null,limitingConeAngle:null,local:null,"marker-end":null,"marker-mid":null,"marker-start":null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:null,mediaTime:null,method:null,min:null,mode:null,name:null,"nav-down":null,"nav-down-left":null,"nav-down-right":null,"nav-left":null,"nav-next":null,"nav-prev":null,"nav-right":null,"nav-up":null,"nav-up-left":null,"nav-up-right":null,numOctaves:null,observer:null,offset:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,"overline-position":null,"overline-thickness":null,"panose-1":null,path:null,pathLength:null,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,playbackOrder:null,"pointer-events":null,points:null,pointsAtX:null,pointsAtY:null,pointsAtZ:null,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:null,r:null,radius:null,refX:null,refY:null,rel:null,"rendering-intent":null,repeatCount:null,repeatDur:null,requiredExtensions:null,requiredFeatures:null,requiredFonts:null,requiredFormats:null,resource:null,restart:null,result:null,rev:null,role:null,rotate:null,rx:null,ry:null,scale:null,seed:null,"shape-rendering":null,slope:null,snapshotTime:null,spacing:null,specularConstant:null,specularExponent:null,spreadMethod:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,"stop-color":null,"stop-opacity":null,"strikethrough-position":null,"strikethrough-thickness":null,string:null,stroke:null,"stroke-dasharray":null,"stroke-dashoffset":null,"stroke-linecap":null,"stroke-linejoin":null,"stroke-miterlimit":null,"stroke-opacity":null,"stroke-width":null,surfaceScale:null,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:null,tableValues:null,target:null,targetX:null,targetY:null,"text-anchor":null,"text-decoration":null,"text-rendering":null,textLength:null,timelineBegin:null,title:null,to:null,transform:null,transformBehavior:null,type:null,typeof:null,u1:null,u2:null,"underline-position":null,"underline-thickness":null,unicode:null,"unicode-bidi":null,"unicode-range":null,"units-per-em":null,"v-alphabetic":null,"v-hanging":null,"v-ideographic":null,"v-mathematical":null,values:null,version:null,"vert-adv-y":null,"vert-origin-x":null,"vert-origin-y":null,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,"word-spacing":null,"writing-mode":null,x:null,"x-height":null,x1:null,x2:null,xChannelSelector:null,"xlink:actuate":ur,"xlink:arcrole":ur,"xlink:href":ur,"xlink:role":ur,"xlink:show":ur,"xlink:title":ur,"xlink:type":ur,"xml:base":ar,"xml:id":ar,"xml:lang":ar,"xml:space":ar,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},lr=function(e,t){if(!e)return cr(document.createTextNode(""));if("string"==typeof e){if(!("DOMParser"in window))throw new Error("DOMParser is not available, so parsing string to DOM node is not possible.");var n=(or=or||new DOMParser).parseFromString(e,"text/html");e=n.body.firstChild?n.getElementsByTagName("body")[0].firstChild:n.head.firstChild&&("TITLE"!==n.head.firstChild.tagName||n.title)?n.head.firstChild:n.firstChild&&"HTML"!==n.firstChild.tagName?n.firstChild:document.createTextNode("")}if("object"!=typeof e||!e||!e.nodeType)throw new Error("invalid dom node",e);return cr(e,t)};function cr(e,t){return 3===e.nodeType?function(e){return new gt(e.nodeValue)}(e):1===e.nodeType||9===e.nodeType?function(e,t){var n="http://www.w3.org/1999/xhtml"!==e.namespaceURI?e.namespaceURI:null,r=t&&e.getAttribute(t)?e.getAttribute(t):null;return new dt(e.tagName,function(e){var t,n,r={};if(!e.hasAttributes())return r;e.namespaceURI&&"http://www.w3.org/1999/xhtml"!==e.namespaceURI&&(t=e.namespaceURI);for(var o=0;o<e.attributes.length;o++)(n="style"==e.attributes[o].name?fr(e):t?pr(e.attributes[o]):dr(e.attributes[o])).ns?r[n.name]={namespace:n.ns,value:n.value}:n.isAttr?(r.attributes||(r.attributes={}),r.attributes[n.name]=n.value):r[n.name]=n.value;return r}(e),function(e,t){for(var n=[],r=0;r<e.childNodes.length;r++)n.push(cr(e.childNodes[r],t));return n}(e,t),r,n)}(e,t):new gt("")}function dr(e){var t,n,r;return 0===(t=ir[e.name]?ir[e.name]:e.name).indexOf("data-")||0===t.indexOf("aria-")?(n=e.value,r=!0):n=e.value,{name:t,value:n,isAttr:r||!1}}function pr(e){return{name:e.name,value:e.value,ns:sr[e.name]||""}}function fr(e){for(var t=e.style,n={},r=0;r<t.length;++r){var o=t.item(r);n[o]=String(t[o]),n[o].indexOf("url")>-1&&(n[o]=n[o].replace(/\"/g,""))}return{name:"style",value:n}}var hr=s((function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}));a(hr);var gr=s((function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,u,a=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports}));a(gr);var vr=s((function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}));a(vr);var mr=s((function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return vr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vr(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}));a(mr);var yr=s((function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}));a(yr);var br=a(s((function(e){e.exports=function(e,t){return hr(e)||gr(e,t)||mr(e,t)||yr()},e.exports.__esModule=!0,e.exports.default=e.exports})));function Er(e,t,n){var r;return function(){var o=this,i=arguments,u=function(){r=null,n||e.apply(o,i)},a=n&&!r;clearTimeout(r),r=setTimeout(u,t),a&&e.apply(o,i)}}function xr(e,t){return e.properties&&e.properties.attributes&&e.properties.attributes[t]}function Ar(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var u=r(i.shift());!e[u]&&n&&(e[u]=new n),e=e[u]}return o()?{}:{obj:e,k:r(i.shift())}}function wr(e,t,n){var r=Ar(e,t,Object);r.obj[r.k]=n}function Cr(e,t){var n=Ar(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Or(){var e=location.pathname;if("/"===e)return"root";var t=e.split("/"),n="root";return t.forEach((function(e){e&&(n+="_".concat(e))})),n}var kr=["SVG","RECT","PATH"],Fr=function(e){if(e.namespace)e.ns.push(e.namespace),e.defaultNS=e.namespace;else if(e.namespaceFromPath){var t=Or();e.ns.push(t),e.defaultNS=t}return e.ns.length||(e.ns=["translation"]),e.ignoreTags&&(e.ignoreTags=e.ignoreTags.map((function(e){return kr.indexOf(e)>-1?e.toLowerCase():e.toUpperCase()}))),e.ignoreCleanIndentFor&&(e.ignoreCleanIndentFor=e.ignoreCleanIndentFor.map((function(e){return e.toUpperCase()}))),e.inlineTags&&(e.inlineTags=e.inlineTags.map((function(e){return e.toUpperCase()}))),e.ignoreInlineOn&&(e.ignoreInlineOn=e.ignoreInlineOn.map((function(e){return e.toUpperCase()}))),e.mergeTags&&(e.mergeTags=e.mergeTags.map((function(e){return e.toUpperCase()}))),e.translateAttributes=e.translateAttributes.reduce((function(e,t){var n={attr:t};if(t.indexOf("#")>-1){var r=t.split("#"),o=br(r,2),i=o[0],u=o[1];if(n.attr=i,u.indexOf(".")>-1){var a=u.split("."),s=br(a,2),l=s[0],c=s[1];n.ele=l.toUpperCase(),n.cond=c.toLowerCase().split("=")}else u.indexOf("=")>-1?n.cond=u.toLowerCase().split("="):n.ele=u.toUpperCase()}return e.push(n),e}),[]),e};function Dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dr(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retranslate:!1};return!(!t||!t.retranslate)||(!e.properties||!e.properties.attributes||""!==e.properties.attributes.localized)}function Lr(e){var t=!e.properties||!e.properties.attributes||""!==e.properties.attributes.translated;(t&&e.tagName&&re.options.ignoreTags.indexOf(e.tagName)>-1&&(t=!1),t&&re.options.ignoreClasses&&e.properties&&e.properties.className)&&e.properties.className.split(" ").forEach((function(e){t&&re.options.ignoreClasses.indexOf(e)>-1&&(t=!1)}));return t&&re.options.ignoreIds&&re.options.ignoreIds.indexOf(e.properties&&e.properties.id)>-1&&(t=!1),t}function jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.trim(),o=n||e.trim();return t.defaultValue||(t.defaultValue=e),r&&!re.options.ignoreWithoutKey||r&&re.options.ignoreWithoutKey&&n?re.t(o,t):e}var Pr=["src","href"],Nr=new RegExp("%7B%7B(.+?)%7D%7D","g");function Tr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;return t?(re.options.translateAttributes.forEach((function(u){if(!u.ele||e.tagName===u.ele){if(u.cond&&2===u.cond.length){var a=Cr(t,u.cond[0])||Cr(t.attributes,u.cond[0]);if(!a||a!==u.cond[1])return}var s=!1,l=Cr(t,u.attr);if(l||(l=Cr(t.attributes,u.attr))&&(s=!0),i.retranslate){var c=e.properties&&e.properties&&e.properties.attributes["".concat(u.attr,"-i18next-orgval")];c||(c=l),l=c}l&&(o&&(e.properties.attributes["".concat(u.attr,"-i18next-orgval")]=l),wr(s?t.attributes:t,u.attr,jr(l,Br({},n),r?"".concat(r,".").concat(u.attr):"")))}})),Pr.forEach((function(e){var o=Cr(t,e);if(o&&(o=o.replace(/\{\{/g,"%7B%7B").replace(/\}\}/g,"%7D%7D")),o&&o.indexOf("%7B")>-1){var i=[];o.split(Nr).reduce((function(t,o,i){if(0===o.length)return t;if(i&&i%2!=0){var u=jr(o,Br({},n),r?"".concat(r,".").concat(e):"");u&&0==u.indexOf("http")&&t[i-1]&&0===t[i-1].indexOf("http")&&t.splice(i-1,1),t.push(u)}else t.push(o);return t}),i),i.length&&wr(t,e,i.join(""))}})),t):t}function Ir(e,t){var n=xr(t,"i18next-options");if(n)try{n=JSON.parse(n)}catch(e){console.warn("failed parsing options on node",t)}return n&&n.inlineTags&&(n.inlineTags=n.inlineTags.map((function(e){return e.toUpperCase()}))),Br(Br({},e||{}),n||{})}function Rr(e,t){return re.options.cleanIndent?e.replace(/\n +/g,t):e}function Mr(e,t){if(!e.children||!e.children.length||re.options.ignoreInlineOn.indexOf(e.tagName)>-1)return!1;if(re.options.mergeTags.indexOf(e.tagName)>-1)return!0;var n=t.inlineTags||re.options.inlineTags,r=t.additionalInlineTags?n.concat(t.additionalInlineTags):n,o=!0,i=!1;return e.children.forEach((function(e){!e.text&&e.tagName&&r.indexOf(e.tagName.toUpperCase())<0&&(o=!1),e.tagName&&(i=!0)})),o&&i}function zr(e,t){var n=new Ln;n.start();var r=function e(t,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5?arguments[5]:void 0,a=Lr(t),s=Sr(t,u),l=Sr(t);n=Ir(n,t);var c=0===i?o:"";i>0&&o&&!re.options.ignoreWithoutKey&&(c="".concat(o,".").concat(i));var d=xr(t,re.options.keyAttr)||c,p=xr(t,"merge");if("false"!==p&&(""===p||Mr(t,n))){if(a&&s){var f=new dt("I18NEXTIFYDUMMY",null,t.children),h=Rr(nr(f),"").replace("<i18nextifydummy>","").replace("</i18nextifydummy>","");if(u.retranslate){var g=t.properties&&t.properties.attributes&&t.properties.attributes["i18next-orgval"];g||(g=r&&r.properties&&r.properties.attributes&&r.properties.attributes["i18next-orgval-".concat(i)]),g||(g=h),h=g}var v="<i18nextifydummy>".concat(jr(h,n,d),"</i18nextifydummy>"),m=lr((v||"").trim());t.children=m.children,l&&t.properties&&t.properties.attributes?t.properties.attributes["i18next-orgval"]=h:l&&r&&r.properties&&r.properties.attributes&&(r.properties.attributes["i18next-orgval-".concat(i)]=h),t.properties&&t.properties.attributes&&(t.properties.attributes.localized="")}return t}if(t.children&&t.children.forEach((function(r,o){(a&&s&&r.text||!r.text&&Lr(r))&&e(r,n,t,d,t.children.length>1?o+1:o,u)})),t.text&&!t.properties&&"Widget"===t.type)return t;if(a&&s){if(t.text){var y,b=t.text,E=t.text;if(u.retranslate){var x=t.properties&&t.properties.attributes&&t.properties.attributes["i18next-orgval"];x||(x=r&&r.properties&&r.properties.attributes&&r.properties.attributes["i18next-orgval-".concat(i)]),x||(x=t.text),b=x,E=x}var A=re.options.ignoreCleanIndentFor.indexOf(r.tagName)>-1;if(!A&&(b=Rr(b,"\n"),re.options.cleanWhitespace)){var w=/^\s*(.*[^\s])\s*$/g;y=w.exec(b)}if(!A&&y&&y.length>1&&re.options.cleanWhitespace){var C=jr(y[1],n,d||"");t.text=b.replace(y[1],C)}else t.text=jr(b,n,d||"");l&&t.properties&&t.properties.attributes?E&&(t.properties.attributes["i18next-orgval"]=E):l&&r&&r.properties&&r.properties.attributes&&E&&(r.properties.attributes["i18next-orgval-".concat(i)]=E)}t.properties&&(t.properties=Tr(t,t.properties,n,d,l,u)),t.properties&&t.properties.attributes&&(t.properties.attributes.localized="")}return t}(e,null,null,null,null,{retranslate:t});return re.services.logger.log("localization took: ".concat(n.end(),"ms")),r}function qr(e,t){var n={};return n.render=function(n){var r=function(e){var t=new Ln;t.start();var n=bt(e);return re.services.logger.log("virtualization took: ".concat(t.end(),"ms")),n}(e),o=zr(Sn(r),n),i=Mt(r,o);i[0]&&t.reset(),e=Bn(e,i)},n.debouncedRender=Er(n.render,200),n}var Ur={};var Hr=Er((function(){re.services.logger.log("missing resources: \n"+JSON.stringify(Ur,null,2))}),2e3);function _r(e,t,n,r){"string"==typeof e&&(e=[e]),e||(e=[]),e.forEach((function(e){wr(Ur,[e,t,n],r),Hr()})),re.services.backendConnector&&re.services.backendConnector.saveMissing&&re.services.backendConnector.saveMissing(e,t,n,r)}function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xr(){var e=document.getElementById("i18nextify"),t=e&&(e.getAttribute("supportedlngs")||e.getAttribute("supportedLngs"))||void 0;"string"==typeof t&&(t=t.split(",").map((function(e){return e.trim()})));var n={autorun:!0,ele:document.body,keyAttr:"i18next-key",ignoreWithoutKey:!1,ignoreTags:["SCRIPT"],ignoreIds:[],ignoreClasses:[],translateAttributes:["placeholder","title","alt","value#input.type=button","value#input.type=submit"],mergeTags:[],inlineTags:[],ignoreInlineOn:[],cleanIndent:!0,ignoreCleanIndentFor:["PRE","CODE"],cleanWhitespace:!0,nsSeparator:"#||#",keySeparator:"#|#",debug:window.location.search&&window.location.search.indexOf("debug=true")>-1,saveMissing:window.location.search&&window.location.search.indexOf("saveMissing=true")>-1,namespace:e&&e.getAttribute("namespace")||!1,namespaceFromPath:e&&(e.getAttribute("namespacefrompath")||e.getAttribute("namespaceFromPath"))||!1,missingKeyHandler:_r,ns:[],supportedLngs:t,load:e&&e.getAttribute("load")||void 0,fallbackLng:e&&(e.getAttribute("fallbacklng")||e.getAttribute("fallbackLng"))||void 0,onInitialTranslate:function(){}},r=e&&(e.getAttribute("loadpath")||e.getAttribute("loadPath"))||void 0,o=e&&(e.getAttribute("addpath")||e.getAttribute("addPath"))||void 0;return(r||o)&&(n.backend={},r&&(n.backend.loadPath=r),o&&(n.backend.addPath=o)),n}var Wr=!1,Jr=!1;ut((function(){Wr=!0,Jr||Gr()})),re.use(Oe),re.use(Ke);var $r={};var Yr=[];function Gr(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function n(n){for(var r=0;r<n.length;r++){var o=n[r];if(t.ignoreTags.indexOf(o.tagName)<0&&t.ignoreIds.indexOf(o.id)<0&&t.ignoreClasses.indexOf(o.className)<0&&!o.attributes.localized&&!o.attributes.translated){var i=qr(o,e);Yr.push(i),i.render()}}}function r(e,n,o){var i=!0;setTimeout((function(){for(var n=0;n<e.length;n++){var u=e[n];if(t.ignoreTags.indexOf(u.tagName)<0&&t.ignoreIds.indexOf(u.id)<0&&t.ignoreClasses.indexOf(u.className)<0&&!u.attributes.localized&&!u.attributes.translated){i&&r(e,100,o),i=!1;break}}i&&o()}),n)}t=Kr(Kr(Kr({},Xr()),$r),t),(t=Fr(t)).ele||(delete t.ele,$r=t),Jr=!0;var o=1;function i(){if(!(o-=1)){t.ele||(t.ele=document.body);var i=t.ele.children;e=new et(t.ele),n(i),e.on("changed",(function(e){Yr.forEach((function(e){return e.debouncedRender()})),n(i)})),r(i,0,(function(){if(t.ele.style&&"none"===t.ele.style.display&&(t.ele.style.display="block"),window.document.title){var e=window.document.getElementsByTagName("title").length>0&&window.document.getElementsByTagName("title")[0].getAttribute(re.options.keyAttr);window.document.title=re.t(e||window.document.title)}if(window.document.querySelector('meta[name="description"]')&&window.document.querySelector('meta[name="description"]').content){var n=window.document.querySelector('meta[name="description"]').getAttribute(re.options.keyAttr)||window.document.querySelector('meta[name="description"]').content;window.document.querySelector('meta[name="description"]').setAttribute("content",re.t(n))}t.onInitialTranslate()}))}}if(Wr||o++,!1===t.autorun&&o++,re.on("languageChanged",(function(e){window.document.documentElement.lang=e})),re.init(t,i),Wr||ut(i),!1===t.autorun)return{start:i}}var Zr={init:Gr,i18next:re,changeNamespace:function(e){!e&&$r.namespaceFromPath&&(e=Or()),$r.ns.push(e),$r.defaultNS=e,re.loadNamespaces($r.ns,(function(){re.setDefaultNamespace(e)}))},forceRerender:function(){Yr.forEach((function(e){e.render(!0)}))}},Qr=[],eo=Qr.forEach,to=Qr.slice;function no(e){return eo.call(to.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function ro(e,t,n){var r;return function(){var o=this,i=arguments,u=function(){r=null,n||e.apply(o,i)},a=n&&!r;clearTimeout(r),r=setTimeout(u,t),a&&e.apply(o,i)}}function oo(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(!e)return{};var i=r(o.shift());!e[i]&&n&&(e[i]=new n),e=e[i]}return e?{obj:e,k:r(o.shift())}:{}}function io(e,t,n){var r=oo(e,t,Object);r.obj[r.k]=n}function uo(e,t){var n=oo(e,t),r=n.obj,o=n.k;if(r)return r[o]}var ao=new RegExp("{{(.+?)}}","g");function so(e,t,n){var r,o,i;for(;r=ao.exec(e);)"string"!=typeof(o=r[1].trim())&&(o=null==(i=o)?"":""+i),o||(o=""),o=o.replace(/\$/g,"$$$$"),e=e.replace(r[0],t[o]||o),ao.lastIndex=0;return e}function lo(e,t){return t.reduce((function(t,n){if(t)return t;if(!e||!e[n]||"string"!=typeof e[n]||!e[n].toLowerCase()===n.toLowerCase()){var r='i18next-locize-backend :: got "'.concat(e[n],'" in options for ').concat(n," which is invalid.");return console.warn(r),r}return!1}),!1)}function co(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function po(e){return(po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var fo,ho,go="function"==typeof fetch?fetch:void 0;if("undefined"!=typeof global&&global.fetch?go=global.fetch:"undefined"!=typeof window&&window.fetch&&(go=window.fetch),"function"!=typeof XMLHttpRequest&&"object"!==("undefined"==typeof XMLHttpRequest?"undefined":po(XMLHttpRequest))||("undefined"!=typeof global&&global.XMLHttpRequest?fo=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(fo=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?ho=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(ho=window.ActiveXObject)),"function"!=typeof go&&(go=void 0),!go&&!fo&&!ho)try{import("cross-fetch").then((function(e){go=e.default})).catch((function(){}))}catch(e){}var vo={},mo=function(e,t,n,r){"function"==typeof n&&(r=n,n=void 0),r=r||function(){};var o="undefined"==typeof window&&e.useCacheLayer;if(o&&!n&&!e.noCache&&vo[t]&&vo[t].expires>Date.now())return r(null,vo[t].data);var i=r;return r=function(e,r){if(o&&!e&&r&&!n&&r.cacheControl){var u=function(e){if(!e)return 0;var t=e.match(/max-age=([0-9]+)/);return t?parseInt(t[1],10):0}(r.cacheControl);u>0&&(vo[t]={data:r,expires:Date.now()+1e3*u})}i(e,r)},!n&&e.noCache&&"standard"===e.cdnType&&(t+=(t.indexOf("?")>=0?"&":"?")+"cache=no"),go?function(e,t,n,r){var o={};"undefined"==typeof window&&"undefined"!=typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-locize-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),e.authorize&&e.apiKey&&(o.Authorization=e.apiKey),(n||e.setContentTypeJSON)&&(o["Content-Type"]="application/json");var i=function(t){var n=t.headers&&"Error from cloudfront"===t.headers.get("x-cache");if(!("standard"!==e.cdnType||404!==t.status||t.headers&&t.headers.get("x-cache")))return r(null,{status:200,data:"{}",resourceNotExisting:n=!0});if(!t.ok)return r(t.statusText||"Error",{status:t.status,resourceNotExisting:n});var o=t.headers&&t.headers.get("cache-control");t.text().then((function(e){r(null,{status:t.status,data:e,resourceNotExisting:n,cacheControl:o})})).catch(r)};"function"==typeof fetch?fetch(t,{method:n?"POST":"GET",body:n?JSON.stringify(n):void 0,headers:o}).then(i).catch(r):go(t,{method:n?"POST":"GET",body:n?JSON.stringify(n):void 0,headers:o}).then(i).catch(r)}(e,t,n,r):"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":po(XMLHttpRequest))||"function"==typeof ActiveXObject?function(e,t,n,r){try{var o=fo?new fo:new ho("MSXML2.XMLHTTP.3.0");o.open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.authorize&&e.apiKey&&o.setRequestHeader("Authorization",e.apiKey),(n||e.setContentTypeJSON)&&o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){var t="Error from cloudfront"===o.getResponseHeader("x-cache");if("standard"===e.cdnType&&404===o.status&&!o.getResponseHeader("x-cache"))return t=!0,o.readyState>3&&r(null,{status:200,data:"{}",resourceNotExisting:t});var n=o.getResponseHeader("Cache-Control");o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText,resourceNotExisting:t,cacheControl:n})},o.send(JSON.stringify(n))}catch(e){console&&console.log(e)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function yo(e){return(yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xo(r.key),r)}}function xo(e){var t=function(e,t){if("object"!=yo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=yo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yo(t)?t:t+""}var Ao,wo=function(e){return e||(e="standard"),{loadPath:"https://api".concat("standard"===e?".lite":"",".locize.app/{{projectId}}/{{version}}/{{lng}}/{{ns}}"),privatePath:"https://api".concat("standard"===e?".lite":"",".locize.app/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}"),getLanguagesPath:"https://api".concat("standard"===e?".lite":"",".locize.app/languages/{{projectId}}"),addPath:"https://api".concat("standard"===e?".lite":"",".locize.app/missing/{{projectId}}/{{version}}/{{lng}}/{{ns}}"),updatePath:"https://api".concat("standard"===e?".lite":"",".locize.app/update/{{projectId}}/{{version}}/{{lng}}/{{ns}}")}},Co=function(e){return e||(e="standard"),no({cdnType:e,noCache:!1,referenceLng:"en",crossDomain:!0,setContentTypeJSON:!1,version:"latest",private:!1,translatedPercentageThreshold:.9,failLoadingOnEmptyJSON:!1,allowedAddOrUpdateHosts:["localhost"],onSaved:!1,reloadInterval:"undefined"==typeof window&&36e5,checkForProjectTimeout:3e3,storageExpiration:36e5,writeDebounce:5e3,useCacheLayer:"undefined"==typeof window},wo(e))};try{Ao="undefined"!=typeof window&&null!==window.localStorage;var Oo="notExistingLocizeProject";window.localStorage.setItem(Oo,"foo"),window.localStorage.removeItem(Oo)}catch(e){Ao=!1}function ko(e){var t=function(){},n=function(){};return Ao?(t=function(e){window.localStorage.setItem("notExistingLocizeProject_".concat(e),Date.now())},n=function(t){var n=window.localStorage.getItem("notExistingLocizeProject_".concat(t));return!!n&&(!(Date.now()-n>e)||(window.localStorage.removeItem("notExistingLocizeProject_".concat(t)),!1))}):"undefined"!=typeof document&&(t=function(t){var n=new Date;n.setTime(n.getTime()+e);var r="; expires=".concat(n.toGMTString()),o="notExistingLocizeProject_".concat(t);try{document.cookie="".concat(o,"=").concat(Date.now()).concat(r,";path=/")}catch(e){}},n=function(e){var t="notExistingLocizeProject_".concat(e),n="".concat(t,"=");try{for(var r=document.cookie.split(";"),o=0;o<r.length;o++){for(var i=r[o];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(n))return!0}}catch(e){}return!1}),{setProjectNotExisting:t,isProjectNotExisting:n}}var Fo=function(e,t,n){var r={};return t.authorize&&t.apiKey&&(r.Authorization=t.apiKey),(n||t.setContentTypeJSON)&&(r["Content-Type"]="application/json"),{method:n?"POST":"GET",url:e,headers:r,body:n}},Do=function(e,t,n){if(1!==e.request.length)e.request(t,n);else try{var r=e.request(t);r&&"function"==typeof r.then?r.then((function(e){return n(null,e)})).catch(n):n(null,r)}catch(e){n(e)}};function Bo(e){var t=.25*e,n=Math.max(0,e-t),r=e+t;return Math.floor(n+Math.random()*(r-n))}var So=function(e,t,n){return t&&Eo(e.prototype,t),n&&Eo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;bo(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",t&&t.projectId?this.init(null,t,r,n):this.init(t,n,r,o)}),[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;!n.referenceLng&&r.fallbackLng&&Array.isArray(r.fallbackLng)&&"dev"!==r.fallbackLng[0]&&(n.referenceLng=r.fallbackLng[0]),this.services=e;var i=no({},n),u=no(n,this.options||{}),a=Co(u.cdnType);u.reloadInterval&&u.reloadInterval<3e5&&(console.warn("Your configured reloadInterval option is to low."),u.reloadInterval=a.reloadInterval),this.options=no(n,this.options||{},a),this.allOptions=r,this.somethingLoaded=!1,this.isProjectNotExisting=!1,this.storage=ko(this.options.storageExpiration);var s=wo(this.options.cdnType);Object.keys(s).forEach((function(e){i[e]||(t.options[e]=s[e])})),r.debug&&void 0===i.noCache&&"standard"===this.options.cdnType&&(this.options.noCache=!0),this.options.noCache&&"standard"!==this.options.cdnType&&console.warn("The 'noCache' option is not available for 'cdnType' '".concat(this.options.cdnType,"'!"));var l="undefined"!=typeof window&&window.location&&window.location.hostname;l?(this.isAddOrUpdateAllowed="function"==typeof this.options.allowedAddOrUpdateHosts?this.options.allowedAddOrUpdateHosts(l):this.options.allowedAddOrUpdateHosts.indexOf(l)>-1,e&&e.logger&&(r.saveMissing||r.updateMissing)&&(this.isAddOrUpdateAllowed?"localhost"!==l&&e.logger.warn('locize-backend: you are using the save or update missings feature from this host "'.concat(l,'".\nMake sure you will not use it in production!\nhttps://www.locize.com/docs/going-to-production')):e.logger.warn("function"==typeof this.options.allowedAddOrUpdateHosts?'locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "'.concat(l,'".'):'locize-backend: will not save or update missings because the host "'.concat(l,'" was not in the list of allowedAddOrUpdateHosts: ').concat(this.options.allowedAddOrUpdateHosts.join(", ")," (matches need to be exact).")))):this.isAddOrUpdateAllowed=!0,"function"==typeof o&&this.getOptions((function(e,r,i){if(e)return o(e);t.options.referenceLng=n.referenceLng||r.referenceLng||t.options.referenceLng,o(null,r,i)})),this.queuedWrites={pending:{}},this.debouncedProcess=ro(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval((function(){return t.reload()}),this.options.reloadInterval),"object"===yo(this.interval)&&"function"==typeof this.interval.unref&&this.interval.unref())}},{key:"reload",value:function(){var e=this,t=this.services||{logger:console},n=t.backendConnector,r=t.languageUtils,o=t.logger;if(n){var i=n.language;if(!i||"cimode"!==i.toLowerCase()){var u=[],a=function(e){r.toResolveHierarchy(e).forEach((function(e){u.indexOf(e)<0&&u.push(e)}))};a(i),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return a(e)})),u.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,i){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&i&&o.log("loaded namespace ".concat(e," for language ").concat(t),i),n.loaded("".concat(t,"|").concat(e),r,i)}))}))}))}}}},{key:"getLanguages",value:function(e){var t,n=this;e||(t=co(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)});var r=lo(this.options,["projectId"]);if(r)return e(new Error(r)),t;var o=so(this.options.getLanguagesPath,{projectId:this.options.projectId});return!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting?(e(new Error(this.isProjectNotExistingErrorMessage||"locize project ".concat(this.options.projectId," does not exist!"))),t):(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(e),this.getLanguagesCalls.length>1||this.loadUrl({},o,(function(e,t,r){if(!n.somethingLoaded&&r&&r.resourceNotExisting){n.isProjectNotExisting=!0;var o="locize project ".concat(n.options.projectId," does not exist!");n.isProjectNotExistingErrorMessage=o;var i="standard"===n.options.cdnType?"pro":"standard",u=so(wo(i).getLanguagesPath,{projectId:n.options.projectId});n.loadUrl({},u,(function(e,t,r){e||!t||r&&r.resourceNotExisting?!n.somethingLoaded&&r&&r.resourceNotExisting&&(n.isProjectNotExisting=!0,n.storage.setProjectNotExisting(n.options.projectId)):(o+=" It seems you're using the wrong cdnType. Your locize project is configured to use \"".concat(i,'" but here you\'ve configured "').concat(n.options.cdnType,'".'),n.isProjectNotExistingErrorMessage=o);var u=new Error(o),a=n.getLanguagesCalls;n.getLanguagesCalls=[],a.forEach((function(e){return e(u)}))}))}else{if(t){n.loadedLanguages=Object.keys(t);var a=n.loadedLanguages.reduce((function(e,n){return t[n].isReferenceLanguage&&(e=n),e}),"");a&&n.options.referenceLng!==a&&(n.options.referenceLng=a)}n.somethingLoaded=!0;var s=n.getLanguagesCalls;n.getLanguagesCalls=[],s.forEach((function(n){return n(e,t)}))}})),t)}},{key:"getOptions",value:function(e){var t,n=this;return e||(t=co(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)}),this.getLanguages((function(t,r){if(t)return e(t);var o=Object.keys(r);if(!o.length)return e(new Error("was unable to load languages via API"));var i=o.reduce((function(e,t){var o=r[t];return o.translated[n.options.version]&&o.translated[n.options.version]>=n.options.translatedPercentageThreshold&&e.push(t),e}),[]),u=o.reduce((function(e,t){return t.indexOf("-")>-1||e}),!1);e(null,{fallbackLng:n.options.referenceLng,referenceLng:n.options.referenceLng,supportedLngs:0===i.length&&n.options.referenceLng?[n.options.referenceLng]:i,load:u?"all":"languageOnly"},r)})),t}},{key:"checkIfProjectExists",value:function(e){var t=this,n=(this.services||{logger:console}).logger;this.somethingLoaded?e&&e(null):this.alreadyRequestedCheckIfProjectExists?setTimeout((function(){return t.checkIfProjectExists(e)}),Bo(this.options.checkForProjectTimeout)):(this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages((function(t){t&&t.message&&t.message.indexOf("does not exist")>0&&n&&n.error(t.message),e&&e(t)})))}},{key:"checkIfLanguagesLoaded",value:function(e){var t=(this.services||{logger:console}).logger;this.loadedLanguages?e&&e(null):this.getLanguages((function(n){n&&n.message&&n.message.indexOf("does not exist")>0&&t&&t.error(n.message),e&&e(n)}))}},{key:"read",value:function(e,t,n){var r,o=this,i=(this.services||{logger:console}).logger,u={};if(this.options.private){var a=lo(this.options,["projectId","version","apiKey"]);if(a)return n(new Error(a),!1);r=so(this.options.privatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),u={authorize:!0}}else{var s=lo(this.options,["projectId","version"]);if(s)return n(new Error(s),!1);r=so(this.options.loadPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version})}if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){var l=new Error(this.isProjectNotExistingErrorMessage||"locize project ".concat(this.options.projectId," does not exist!"));return i&&i.error(l.message),void(n&&n(l))}if(this.warnedLanguages&&this.warnedLanguages.indexOf(e)>-1){var c=new Error('Will not continue to load language "'.concat(e,'" since it is not available in locize project ').concat(this.options.projectId,"!"));return i&&i.error(c.message),void(n&&n(c))}this.loadUrl(u,r,(function(t,r,u){var a=u&&u.resourceNotExisting;a||(o.hasResourcesForLng||(o.hasResourcesForLng={}),o.hasResourcesForLng[e]=!0),!a||o.hasResourcesForLng&&o.hasResourcesForLng[e]||setTimeout((function(){o.checkIfLanguagesLoaded((function(){o.loadedLanguages&&(o.loadedLanguages.indexOf(e)>-1||o.warnedLanguages&&o.warnedLanguages.indexOf(e)>-1||(o.warnedLanguages||(o.warnedLanguages=[]),o.warnedLanguages.push(e),i&&i.error('Language "'.concat(e,'" is not available in locize project ').concat(o.options.projectId,"!"))))}))}),Bo(o.options.checkForProjectTimeout)),o.somethingLoaded||(a?setTimeout((function(){return o.checkIfProjectExists()}),Bo(o.options.checkForProjectTimeout)):o.somethingLoaded=!0),n(t,r)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this;e=no(e,this.options),"function"==typeof n&&(r=n,n=void 0),r=r||function(){};var i=function(e,n){var i,u,a=n&&n.resourceNotExisting;if(n&&(408===n.status||400===n.status))return r("failed loading "+t,!0,{resourceNotExisting:a});if(n&&(n.status>=500&&n.status<600||!n.status))return r("failed loading "+t,!0,{resourceNotExisting:a});if(n&&n.status>=400&&n.status<500)return r("failed loading "+t,!1,{resourceNotExisting:a});if(!n&&e&&e.message){var s=e.message.toLowerCase();if(["failed","fetch","network","load"].find((function(e){return s.indexOf(e)>-1})))return r("failed loading "+t+": "+e.message,!0,{resourceNotExisting:a})}if(e)return r(e,!1);try{i="string"==typeof n.data?JSON.parse(n.data):n.data}catch(e){u="failed parsing "+t+" to json"}return u?r(u,!1):o.options.failLoadingOnEmptyJSON&&!Object.keys(i).length?r("loaded result empty for "+t,!1,{resourceNotExisting:a}):void r(null,i,{resourceNotExisting:a})};if(!this.options.request||t.indexOf("/languages/".concat(e.projectId))>0)return mo(e,t,n,i);var u=Fo(t,e,n);Do(this.options,u,i)}},{key:"create",value:function(e,t,n,r,o,i){var u=this;"function"!=typeof o&&(o=function(){}),this.checkIfProjectExists((function(a){if(a)return o(a);var s=lo(u.options,["projectId","version","apiKey","referenceLng"]);return s?o(new Error(s)):u.isAddOrUpdateAllowed?("string"==typeof e&&(e=[e]),e.filter((function(e){return e===u.options.referenceLng})).length<1&&u.services&&u.services.logger&&u.services.logger.warn('locize-backend: will not save missings because the reference language "'.concat(u.options.referenceLng,'" was not in the list of to save languages: ').concat(e.join(", ")," (open your site in the reference language to save missings).")),void e.forEach((function(e){e===u.options.referenceLng&&u.queue.call(u,u.options.referenceLng,t,n,r,o,i)}))):o("host is not allowed to create key.")}))}},{key:"update",value:function(e,t,n,r,o,i){var u=this;"function"!=typeof o&&(o=function(){}),this.checkIfProjectExists((function(a){if(a)return o(a);var s=lo(u.options,["projectId","version","apiKey","referenceLng"]);return s?o(new Error(s)):u.isAddOrUpdateAllowed?(i||(i={}),"string"==typeof e&&(e=[e]),i.isUpdate=!0,void e.forEach((function(e){e===u.options.referenceLng&&u.queue.call(u,u.options.referenceLng,t,n,r,o,i)}))):o("host is not allowed to update key.")}))}},{key:"writePage",value:function(e,t,n,r){var o=so(this.options.addPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),i=so(this.options.updatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),u=!1,a=!1,s={},l={};n.forEach((function(e){var t=e.options&&e.options.tDescription?{value:e.fallbackValue||"",context:{text:e.options.tDescription}}:e.fallbackValue||"";e.options&&e.options.isUpdate?(a||(a=!0),l[e.key]=t):(u||(u=!0),s[e.key]=t)}));var c=0;u&&c++,a&&c++;var d=function(e){--c||r(e)};if(c||d(),u)if(this.options.request){var p=Fo(o,no({authorize:!0},this.options),s);Do(this.options,p,d)}else mo(no({authorize:!0},this.options),o,s,d);if(a)if(this.options.request){var f=Fo(i,no({authorize:!0},this.options),l);Do(this.options,f,d)}else mo(no({authorize:!0},this.options),i,l,d)}},{key:"write",value:function(e,t){var n=this;if(!uo(this.queuedWrites,["locks",e,t])){var r=uo(this.queuedWrites,[e,t]);io(this.queuedWrites,[e,t],[]);var o=r.filter((function(e){return e.callback})).map((function(e){return e.callback}));if(r.length){io(this.queuedWrites,["locks",e,t],!0);var i=function(){io(n.queuedWrites,["locks",e,t],!1),o.forEach((function(e){return e()})),n.options.onSaved&&n.options.onSaved(e,t),n.debouncedProcess(e,t)},u=r.length/1e3,a=0,s=r.splice(0,1e3);for(this.writePage(e,t,s,(function(){++a>=u&&i()}));1e3===s.length;)(s=r.splice(0,1e3)).length&&this.writePage(e,t,s,(function(){++a>=u&&i()}))}}}},{key:"process",value:function(){var e=this;Object.keys(this.queuedWrites).forEach((function(t){"locks"!==t&&Object.keys(e.queuedWrites[t]).forEach((function(n){e.queuedWrites[t][n].length&&e.write(t,n)}))}))}},{key:"queue",value:function(e,t,n,r,o,i){!function(e,t,n,r){var o=oo(e,t,Object),i=o.obj,u=o.k;i[u]=i[u]||[],r&&(i[u]=i[u].concat(n)),r||i[u].push(n)}(this.queuedWrites,[e,t],{key:n,fallbackValue:r||"",callback:o,options:i}),this.debouncedProcess()}}]);function Lo(e){return(Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jo(e){var t=function(e,t){if("object"!=Lo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lo(t)?t:t+""}function Po(e,t,n){return(t=jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}So.type="backend";var No="undefined"!=typeof window?["",""]:["",""],To=RegExp("([".concat(No.join(""),"]{9})+"),"gu"),Io='{"k":"a"}'.length,Ro=function(e){var t=function(e){return Array.from((new TextEncoder).encode(e))}(e).map(Number).map((function(e){return function(e){var t=8-e.length;return"0".repeat(t)+e}(e.toString(2))+"0"})).join("");return Array.from(t).map((function(e){return No[Number(e)]})).join("")},Mo=Ro("subliminal:start"),zo=function(e){var t,n=Array.from(e).map((function(e){return No.indexOf(e)})).map(String).join("").match(/(.{9})/g),r=Uint8Array.from((null==n?void 0:n.map((function(e){return parseInt(e.slice(0,8),2)})))||[]);return t=r,(new TextDecoder).decode(new Uint8Array(t))},qo=function(e){if(0===Object.keys(e).length)return e;var t={k:e.key,n:e.ns,l:e.lng,s:e.source};return JSON.stringify(t)};function Uo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=qo(t),r=Ro(n);return"string"==typeof e&&e?Mo+e+r:e}function Ho(e){var t=function(e){if(e&&"string"==typeof e&&0===e.indexOf("{"))try{var t=JSON.parse(e||"{}");return{key:t.k,ns:t.n,lng:t.l,source:t.s}}catch(e){return}}(function(e){var t,n=null===(t=e.match(To))||void 0===t?void 0:t.filter((function(e){return e.length>Io-1}));if(n&&0!==n.length)return zo(n[n.length-1])}(e));return{text:function(e){return e.replace(To,"")}(e),invisibleMeta:t}}function _o(e){if(!e||e.length<27)return!1;if(!To.test(e))return!1;var t=e.substring(e.length-9);return"}"===zo(t)}function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xo={name:"subliminal",type:"postProcessor",options:{},setOptions:function(e){this.options=Ko(Ko({},e),this.options)},process:function(e,t,n,r){var o,i,u,a,s=this.options=Ko(Ko({},n),this.options);if(n.i18nResolved)o=n.i18nResolved.exactUsedKey,i=n.i18nResolved.usedNS,u=n.i18nResolved.usedLng,a=void 0===n.i18nResolved.res?o!==e?"default":"key":"translation";else{var l,c,d,p,f,h,g=null!==(l=null!==(c=s.keySeparator)&&void 0!==c?c:null==r||null===(d=r.options)||void 0===d?void 0:d.keySeparator)&&void 0!==l?l:".",v=r.extractFromKey(t.join(g),n),m=v.key,y=v.namespaces;o=m,i=null!==(p=null!==(f=null==y?void 0:y[0])&&void 0!==f?f:s.ns)&&void 0!==p?p:null==r||null===(h=r.options)||void 0===h?void 0:h.defaultNS,u=n.lng||this.language,a=o===e?"key":"translation"}return Uo(e,{key:o,ns:i,lng:u,source:a})},overloadTranslationOptionHandler:function(){return{postProcess:"subliminal",postProcessPassResolved:!0}}},Wo=["placeholder","title","alt"],Jo=["SCRIPT"],$o="#1976d2",Yo="#e67a00",Go="#ccc",Zo=function(){var e,t;"undefined"!=typeof process&&(t=process),t||"undefined"==typeof window||(t=window.process);var n=(null===(e=(t||{}).env)||void 0===e?void 0:e.locizeIncontext)||"production";return"development"===n?"http://localhost:3003/":"staging"===n?"https://incontext-dev.locize.app":"https://incontext.locize.app"},Qo=function(){if("undefined"!=typeof document){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ei(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ei(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ni={};function ri(e,t){ra(e,t),delete ni[e]}function oi(e){return ni[e]}var ii={save:function(e,t,n,r){e&&t&&n&&(ni[e]||(ni[e]={id:e,node:n}),ni[e].keys=ti(ti({},ni[e].keys),{},Po({},"".concat(t),{value:r,eleUniqueID:e,textType:t})))},remove:ri,removeKey:function(e,t,n){var r=oi(e);r&&(delete r.keys["".concat(t)],Object.keys(r.keys).length||ri(e,n))},clean:function(){Object.values(ni).forEach((function(e){document.body.contains(e.node)||(ra(e.id,e.node),delete ni[e.id])}))},get:oi,data:ni};function ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ai(e,t){if(e){if("string"==typeof e)return ui(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ui(e,t):void 0}}function si(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,u,a=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(e,t)||ai(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function li(e,t,n){var r;return function(){var o=this,i=arguments,u=function(){r=null,n||e.apply(o,i)},a=n&&!r;clearTimeout(r),r=setTimeout(u,t),a&&e.apply(o,i)}}function ci(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function di(e){var t=ci(e,"data-i18n");return t||(e.nodeType===window.Node.TEXT_NODE&&e.parentElement?di(e.parentElement):void 0)}function pi(e){var t="text";if(0===e.indexOf("[")){var n=e.split("]");e=n[1],t=n[0].substr(1,n[0].length-1)}return[e.indexOf(";")===e.length-1?e.substr(0,e.length-2):e,t]}function fi(e){var t,n=function(e){var r=ci(e,"i18next-options");if(r||(r=ci(e,"data-i18next-options")),r||(r=ci(e,"i18n-options")),r||(r=ci(e,"data-i18n-options")),r){var o={};try{o=JSON.parse(r)}catch(e){}o.ns&&(t=o.ns)}t||(t=ci(e,"i18next-ns")),t||(t=ci(e,"data-i18next-ns")),t||(t=ci(e,"i18n-ns")),t||(t=ci(e,"data-i18n-ns")),!t&&e.parentElement&&n(e.parentElement)};return n(e),t}function hi(e,t){if("undefined"==typeof window)return null;t||(t=window.location.href.toLowerCase()),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}var gi="undefined"!=typeof window;try{gi=self!==top}catch(e){}var vi=gi;function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bi={committed:"commitKeys"};var Ei=[],xi=["locizeIsEnabled","requestInitialize"];function Ai(e,t){var n;Oi.source||(Oi.source=null===(n=document.getElementById("i18next-editor-iframe"))||void 0===n?void 0:n.contentWindow);if(Oi.origin||(Oi.origin=Zo()),!Oi.source||!Oi.source.postMessage||!Oi.initialized&&xi.indexOf(e)<0)Ei.push({action:e,payload:t});else{Oi.legacy?Oi.source.postMessage(yi({message:e},t),Oi.origin):Oi.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v2",action:e,message:e,payload:t},Oi.origin);var r=Ei;Ei=[],r.forEach((function(e){Ai(e.action,e.payload)}))}}var wi={},Ci=5,Oi={init:function(e,t){Oi.i18n=e,Oi.clickHandler=t},requestInitialize:function(e){Ai("requestInitialize",e),Oi.initInterval||(Oi.initInterval=setInterval((function(){Ci-=1,Oi.requestInitialize(e),Ci<0&&Oi.initInterval&&(clearInterval(Oi.initInterval),delete Oi.initInterval)}),2e3))},selectKey:function(e){Ai("selectKey",e)},confirmResourceBundle:function(e){Ai("confirmResourceBundle",e)},sendCurrentParsedContent:li((function(){Ai("sendCurrentParsedContent",{content:Object.values(la.data).map((function(e){return{id:e.id,keys:e.keys}})),uninstrumented:Object.values(ii.data).map((function(e){return{id:e.id,keys:e.keys}}))})}),500),sendCurrentTargetLanguage:function(e){Ai("sendCurrentTargetLanguage",{targetLng:e||Oi.i18n&&Oi.i18n.getLng&&Oi.i18n.getLng()})},sendHrefchanged:function(e){Ai("hrefChanged",{href:e})},addHandler:function(e,t){wi[e]||(wi[e]=[]),wi[e].push(t)},sendLocizeIsEnabled:function(e){Ai("locizeIsEnabled",yi(yi({},e),{},{enabled:!0}))},onAddedKey:function(e,t,n,r){Ai("added",{lng:e,ns:t,key:n,value:r})}};function ki(e,t){var n=la.get(e.eleUniqueID);if(n&&n.keys[e.textType]){var r=n.subliminal?Uo(t,n.subliminal):t;if("text"===e.textType)n.node.textContent=r;else if(0===e.textType.indexOf("attr:")){var o=e.textType.replace("attr:","");n.node.setAttribute(o,r)}else if("html"===e.textType){var i="".concat(e.textType,"-").concat(e.children);if(!n.originalChildNodes){var u=[];n.node.childNodes.forEach((function(e){u.push(e)})),n.originalChildNodes=u}if(n.children[i].length===n.node.childNodes.length)n.node.innerHTML=r;else{var a=n.children[i],s=a[0].child,l=document.createElement("div");l.innerHTML=r;var c=[];l.childNodes.forEach((function(e){c.push(e)})),c.forEach((function(e){try{n.node.insertBefore(e,s)}catch(t){n.node.appendChild(e)}})),a.forEach((function(e){n.node.contains(e.child)&&n.node.removeChild(e.child)}))}}}}function Fi(e){return function(e){if(Array.isArray(e))return ui(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ai(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Di(e){var t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,o=t.top<=n&&t.top+t.height>=0,i=t.left<=r&&t.left+t.width>=0;return o&&i}function Bi(e,t){var n=t,r=e.pageX,o=e.pageY,i=r,u=o,a=n.getBoundingClientRect(),s=a.top+document.documentElement.scrollTop,l=s+n.offsetHeight,c=a.left+document.documentElement.scrollLeft,d=c+n.offsetWidth,p=Math.max(r,c),f=Math.min(r,d),h=Math.max(o,s),g=(f>=p?r:d<r?d:c)-i,v=(Math.min(o,l)>=h?o:l<o?l:s)-u,m=Math.pow(Math.pow(g,2)+Math.pow(v,2),.5);return Math.floor(m)}function Si(e){var t=e;if(1===e.childNodes.length){var n=e.childNodes[0];if(n&&"#text"===n.nodeName){var r=document.createRange();r.selectNode(n);var o=r.getBoundingClientRect();t={getBoundingClientRect:function(){return o}}}}return t}"undefined"!=typeof window&&window.addEventListener("message",(function(e){var t,n=e.data,r=n.sender,o=n.action,i=n.message,u=n.payload;if(i){var a=bi[t=i]?bi[t]:t;wi[a]&&wi[a].forEach((function(t){t(u,e)}))}else"i18next-editor-frame"===r&&wi[o]&&wi[o].forEach((function(t){t(u,e)}))})),Oi.addHandler("editKey",(function(e){var t=e.meta,n=e.value;t&&void 0!==n&&ki(t,n)})),Oi.addHandler("commitKey",(function(e){var t=e.meta,n=e.value,r=e.lng;if(t&&void 0!==n){ki(t,n);var o=r||Oi.i18n.getLng();Oi.i18n.setResource(o,t.ns,t.key,n),Oi.i18n.triggerRerender()}})),Oi.addHandler("commitKeys",(function(e){e.updated.forEach((function(e){var t=e.lng,n=e.ns,r=e.key,o=e.data,i=e.metas,u=e.meta;u&&o.value&&ki(u,o.value),i&&Object.values(i).forEach((function(e){ki(e,o.value)})),Oi.i18n.setResource(t,n,r,o.value),i&&Object.values(i).forEach((function(e){var t=la.get(e.eleUniqueID);!function(e,t,n){if(!ta[e.id])return;ra(e,t,n,!1),na(e,t)}(t,t.node,t.keys)}))})),Object.values(la.data).forEach((function(e){var t;e.originalChildNodes&&(t=e.node).replaceChildren.apply(t,Fi(e.originalChildNodes))})),Oi.i18n.triggerRerender(),Oi.locizeSavedHandler&&Oi.locizeSavedHandler(e),window.locizeSavedHandler&&window.locizeSavedHandler(e)})),Oi.addHandler("confirmInitialized",(function(e){Oi.initialized=!0,clearInterval(Oi.initInterval),delete Oi.initInterval,Oi.sendCurrentParsedContent(),Oi.sendCurrentTargetLanguage()}));var Li,ji=li((function(e,t){Object.values(la.data).forEach((function(t){if(Di(t.node)){var n=Bi(e,t.node);if(n<5)!function(e,t,n){var r=Si(t);if(!e.highlightBox){var i=Ki(r,"none","rgba(0,0,0,0.1)");document.body.appendChild(i),e.highlightBox=i}if(!e.ribbonBox){var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("div");t.classList.add("i18next-editor-button-container"),t.style="position: absolute; top: 0; left: 0; display: flex; align-items: flex-start; justify-content: center; filter: drop-shadow(0px 0px 20px #aaa ); z-index: 99999;",t.setAttribute("data-i18next-editor-element","true");var n=document.createElement("div");n.style="\n position: absolute;\n width: 0;\n height: 0;\n border-top-width: 7px;\n border-bottom-width: 7px;\n border-left-width: 10px;\n border-right-width: 10px;\n border-style: solid;\n border-color: transparent ".concat($o," transparent\n transparent;\n "),t.appendChild(n);var r=document.createElement("div");return r.style="display: flex; flex-direction: column; align-items: flex-start; margin-left: 2px; margin-top: 1px",Object.keys(e).forEach((function(t){var n=e[t],o=Vi(t.replace("attr:",""),"".concat(n.ns,":").concat(n.key),(function(e){e&&(e.stopPropagation(),e.preventDefault()),Oi.selectKey(n)}));o.style.marginBottom="2px",r.appendChild(o)})),t.appendChild(r),{box:t,arrow:n}}(n),a=u.box,s=u.arrow;document.body.appendChild(a),((e,t,n)=>{var r=new Map,i=o({platform:Yu},n),u=o(o({},i.platform),{},{_c:r});return fu(e,t,o(o({},i),{},{platform:u}))})(r,a,{placement:"right",middleware:[Qu({fallbackPlacements:["left","bottom"]}),Zu(),Gu((function(e){var t=e.placement,n=e.rects;return"bottom"===t?-n.reference.height/2-n.floating.height/2:35})),ea({element:s})]}).then((function(e){var t=e.x,n=e.y,r=e.middlewareData,o=e.placement;Object.assign(a.style,{left:"".concat(t,"px"),top:"".concat(n,"px"),display:"inline-flex"});var i=o.split("-")[0],u={top:"bottom",right:"left",bottom:"top",left:"right"}[i];if(r.arrow){var l=r.arrow,c=l.x,d=l.y;Object.assign(s.style,Po(Po({left:null!=c?"".concat(c,"px"):"",top:null!=d?"".concat(d,"px"):"",right:"",bottom:""},u,"".concat("bottom"===i?-18:-25,"px")),"transform","bottom"===i?"rotate(90deg)":"left"===i?"rotate(180deg)":""))}})),e.ribbonBox=a}}(t,t.node,t.keys);else if(n>5){(t.ribbonBox?Bi(e,t.ribbonBox):1e3)>10&&ra(t,t.node,t.keys)}}})),Object.values(ii.data).forEach((function(t){if(Di(t.node)){var n=Bi(e,t.node);n<10?function(e,t,n){var r=e.id;if(ta[r])return;var o=Si(t);if(!e.highlightBox){var i=Ki(o,Yo);document.body.appendChild(i),e.highlightBox=i}}(t,t.node,t.keys):n>10&&ra(t,t.node,t.keys)}}))}),50);function Pi(e){Li=function(t){ji(t,e)},document.addEventListener("mousemove",Li)}function Ni(){document.removeEventListener("mousemove",Li)}var Ti=URL.createObjectURL(new Blob(['<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#FFFFFF"><g></g><g><g><g><path d="M3,21l3.75,0L17.81,9.94l-3.75-3.75L3,17.25L3,21z M5,18.08l9.06-9.06l0.92,0.92L5.92,19L5,19L5,18.08z"/></g><g><path d="M18.37,3.29c-0.39-0.39-1.02-0.39-1.41,0l-1.83,1.83l3.75,3.75l1.83-1.83c0.39-0.39,0.39-1.02,0-1.41L18.37,3.29z"/></g></g></g></svg>'],{type:"image/svg+xml"}));URL.createObjectURL(new Blob(['\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 304" stroke="#000" stroke-linecap="round" stroke-linejoin="round" fill="#fff" fill-rule="evenodd">\n <g stroke="none" class="B">\n <path d="M 142 31.5 v 57.2 l 64.3 165.1 s 19.6 40.3 -36.5 50.1 h -128 s -52.3 -5.5 -39.8 -46.9 L 69.5 88.7 V 31.5 z" fill="#009688"/>\n <path d="M 143.3 24.8 H 66.2 c -6.2 0 -11.3 -5.6 -11.3 -12.4 S 60 0 66.2 0 h 77.1 c 6.3 0 11.3 5.6 11.3 12.4 s -5.1 12.4 -11.3 12.4 z" class="C" fill="#004d40"/>\n <path d="M 123 124.9 c 8.3 0 15 8.1 15 18.1 c 0 10 -6.8 18.1 -15 18.1 c -8.3 0 -15 -8.1 -15 -18.1 c 0 -10 6.7 -18.1 15 -18.1 z m -58.8 31.7 c 0 -8.5 5.6 -15.3 12.7 -15.3 s 12.7 6.8 12.7 15.3 s -5.6 15.3 -12.7 15.3 s -12.7 -6.8 -12.7 -15.3 z" fill="white"/>\n <path d="M 147.7 84.9 V 57.7 s 34.5 -7.6 51.7 32.5 c 0 0 -26.9 19.6 -51.7 -5.3 z m -84.5 0 V 57.7 s -34.5 -7.6 -51.7 32.5 c 0 0 26.8 19.6 51.7 -5.3 z" class="C" fill="#004d40"/>\n <path d="M 168.4 197.5 c -56.1 -17.4 -103.3 -8.1 -126.3 -1 l -23.2 56 c -10.5 33.4 33.2 37.8 33.2 37.8 h 106.9 c 46.9 -7.9 30.5 -40.4 30.5 -40.4 z" fill="white"/>\n <path d="M 87.6 218.3 c 0 6 -8.1 10.9 -18.1 10.9 s -18.1 -4.9 -18.1 -10.9 c 0 -6.1 8.1 -10.9 18.1 -10.9 s 18.1 4.9 18.1 10.9 z m 64.4 0 c 0 6 -8.1 10.9 -18.1 10.9 c -10 0 -18.1 -4.9 -18.1 -10.9 c 0 -6.1 8.1 -10.9 18.1 -10.9 c 10 0 18.1 4.9 18.1 10.9 z" class="C" fill="#004d40"/>\n </g>\n</svg>\n'],{type:"image/svg+xml"}));var Ii=URL.createObjectURL(new Blob(['<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M6 19h12v2H6v-2z"/></svg>'],{type:"image/svg+xml"})),Ri=URL.createObjectURL(new Blob(['\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 194.667 196" height="196" width="194.667" xml:space="preserve">\n <defs>\n <clipPath id="a" clipPathUnits="userSpaceOnUse">\n <path d="M5.5 74.048C5.5 36.98 35.551 6.93 72.619 6.93c37.069 0 67.119 30.05 67.119 67.118 0 37.07-30.05 67.12-67.119 67.12-37.068 0-67.119-30.05-67.119-67.12"/>\n </clipPath>\n <clipPath id="b" clipPathUnits="userSpaceOnUse">\n <path d="M0 147h146V0H0Z"/>\n </clipPath>\n <clipPath id="c" clipPathUnits="userSpaceOnUse">\n <path d="M88.756 55.055h50.982l4.512 88.195-64 1.25z"/>\n </clipPath>\n </defs>\n <g clip-path="url(#a)" transform="matrix(1.33333 0 0 -1.33333 0 196)">\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-.766-5.554 1.148-8.427 0-11.107-1.149-2.681-2.49-7.469-1.341-10.724 1.149-3.255 2.872-10.34 4.404-10.533 1.532-.19-1.148 7.66.383 5.171 1.533-2.49 1.533-6.193 4.214-8.746 2.68-2.553 6.319-2.17 9.192-4.658 2.872-2.49 5.744-6.129 8.425-5.746 0 0-.192-1.914-1.532-5.17-1.34-3.255-1.532-7.084.192-9.383 1.723-2.298 3.446-5.746 4.979-7.469 1.532-1.723 2.681-10.915 2.297-15.51-.382-4.596 1.724-14.937 6.511-17.236 4.787-2.298 0 1.15-.957 4.022-.958 2.872.739 9.575 3.052 10.533 2.309.958 4.416 4.787 6.139 7.469 1.724 2.68 6.128 3.83 7.469 7.084 1.341 3.255.766 7.085 1.532 8.809.766 1.724 2.873 5.554-1.724 7.852-4.595 2.298-6.51 1.148-6.702 3.255-.192 2.107-1.341 4.404-4.595 5.361-3.256.959-6.129 2.816-9.768 3.227-3.638.412-4.404-2.461-6.319-.928-1.914 1.531-3.446 3.064-4.213 4.978-.765 1.915-3.064.766-2.871 1.915.19 1.15 3.254 4.404-.193 3.255-3.446-1.148-6.51-.765-6.319 2.298.193 3.064 4.405 4.214 6.129 4.597 1.722.383 3.063-1.723 5.17-3.065 2.106-1.34.191 1.915 1.34 4.214 1.149 2.298 5.554 2.106 6.128 5.361.575 3.255-.191 5.937 3.256 6.32 3.446.383 7.084-.191 7.468 1.533.382 1.722-4.022-.576-4.213 1.531-.192 2.106 3.829 4.978 4.978 2.872 1.149-2.106 4.022-2.298 4.405-1.531.383.765 0 2.105-1.341 5.361-1.34 3.256-2.681 2.298-3.829 5.936-1.149 3.639-3.064-.191-4.979 1.724s-4.213 5.937-4.597 2.489c-.382-3.446-.382-5.361-2.105-8.042-1.724-2.682-2.489-.575-4.022 1.149-1.532 1.723-4.979 3.447-3.83 4.978C23.362 4.979 24.511 9 26.234 7.85c1.724-1.149 4.405-1.149 4.022.767-.383 1.914 0 2.681.766 3.638.766.958 3.447 2.682 3.447-.766 0-3.447-.384-4.405 2.298-4.788 2.681-.383 5.744-.574 5.554 1.149-.193 1.724.766 1.341 0 4.214-.767 2.873-3.065 3.063-5.554 4.405-2.489 1.34-3.83 3.446-5.936 2.68s-2.299-1.531-2.49-3.638c-.192-2.107-1.341-2.873-2.107-1.915-.765.957.192 4.022-2.68 2.106-2.873-1.914-4.021-5.171-5.553-2.872-1.533 2.297 2.297 6.319-1.724 4.595-4.022-1.723-6.895-3.637-4.788-4.404 2.107-.766 4.214-2.107 2.107-2.873-2.107-.765-6.32.575-7.852-.957C4.212 7.66 0 0 0 0" transform="translate(13.926 109.38)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-.766-5.554 1.148-8.427 0-11.107-1.149-2.681-2.49-7.469-1.341-10.724 1.149-3.255 2.872-10.34 4.404-10.533 1.532-.19-1.148 7.66.383 5.171 1.533-2.49 1.533-6.193 4.214-8.746 2.68-2.553 6.319-2.17 9.192-4.658 2.872-2.49 5.744-6.129 8.425-5.746 0 0-.192-1.914-1.532-5.17-1.34-3.255-1.532-7.084.192-9.383 1.723-2.298 3.446-5.746 4.979-7.469 1.532-1.723 2.681-10.915 2.297-15.51-.382-4.596 1.724-14.937 6.511-17.236 4.787-2.298 0 1.15-.957 4.022-.958 2.872.739 9.575 3.052 10.533 2.309.958 4.416 4.787 6.139 7.469 1.724 2.68 6.128 3.83 7.469 7.084 1.341 3.255.766 7.085 1.532 8.809.766 1.724 2.873 5.554-1.724 7.852-4.595 2.298-6.51 1.148-6.702 3.255-.192 2.107-1.341 4.404-4.595 5.361-3.256.959-6.129 2.816-9.768 3.227-3.638.412-4.404-2.461-6.319-.928-1.914 1.531-3.446 3.064-4.213 4.978-.765 1.915-3.064.766-2.871 1.915.19 1.15 3.254 4.404-.193 3.255-3.446-1.148-6.51-.765-6.319 2.298.193 3.064 4.405 4.214 6.129 4.597 1.722.383 3.063-1.723 5.17-3.065 2.106-1.34.191 1.915 1.34 4.214 1.149 2.298 5.554 2.106 6.128 5.361.575 3.255-.191 5.937 3.256 6.32 3.446.383 7.084-.191 7.468 1.533.382 1.722-4.022-.576-4.213 1.531-.192 2.106 3.829 4.978 4.978 2.872 1.149-2.106 4.022-2.298 4.405-1.531.383.765 0 2.105-1.341 5.361-1.34 3.256-2.681 2.298-3.829 5.936-1.149 3.639-3.064-.191-4.979 1.724s-4.213 5.937-4.597 2.489c-.382-3.446-.382-5.361-2.105-8.042-1.724-2.682-2.489-.575-4.022 1.149-1.532 1.723-4.979 3.447-3.83 4.978C23.362 4.979 24.511 9 26.234 7.85c1.724-1.149 4.405-1.149 4.022.767-.383 1.914 0 2.681.766 3.638.766.958 3.447 2.682 3.447-.766 0-3.447-.384-4.405 2.298-4.788 2.681-.383 5.744-.574 5.554 1.149-.193 1.724.766 1.341 0 4.214-.767 2.873-3.065 3.063-5.554 4.405-2.489 1.34-3.83 3.446-5.936 2.68s-2.299-1.531-2.49-3.638c-.192-2.107-1.341-2.873-2.107-1.915-.765.957.192 4.022-2.68 2.106-2.873-1.914-4.021-5.171-5.553-2.872-1.533 2.297 2.297 6.319-1.724 4.595-4.022-1.723-6.895-3.637-4.788-4.404 2.107-.766 4.214-2.107 2.107-2.873-2.107-.765-6.32.575-7.852-.957C4.212 7.66 0 0 0 0Z" transform="translate(13.926 109.38)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-.01-2.141.575-3.829 2.49-1.915C4.405 0 5.553 2.298 6.895 1.341c1.34-.958 3.638-.703 4.594-.639.959.064 1.15 2.937 3.831 2.554s1.724.574 4.596 2.107c2.873 1.532 9.001 4.212 2.681 3.446-6.32-.766-6.703.958-11.108-1.914-4.403-2.873-5.36-2.873-6.509-3.639-1.149-.766-2.49 2.298-4.022 0C-.575.958.011 2.182 0 0" transform="translate(36.522 130.061)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-.01-2.141.575-3.829 2.49-1.915C4.405 0 5.553 2.298 6.895 1.341c1.34-.958 3.638-.703 4.594-.639.959.064 1.15 2.937 3.831 2.554s1.724.574 4.596 2.107c2.873 1.532 9.001 4.212 2.681 3.446-6.32-.766-6.703.958-11.108-1.914-4.403-2.873-5.36-2.873-6.509-3.639-1.149-.766-2.49 2.298-4.022 0C-.575.958.011 2.182 0 0Z" transform="translate(36.522 130.061)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-2.263-1.956-5.744-4.788-3.064-4.788 2.681 0 3.983 1.404 5.439-.447 1.456-1.85.88-4.723.88-6.063 0-1.341-.766-4.406 1.15-8.235 1.915-3.829 2.106-6.319 4.022-3.829 1.914 2.488 6.51 7.276 8.808 7.658 2.298.384 4.597 1.342 5.746 3.257 1.148 1.915 0 3.773 1.914 5.141 1.914 1.369 1.531 3.093 2.107 5.199C27.575 0 32.747 0 30.448 1.148c-2.297 1.15-6.51 1.916-11.49 1.341C13.979 1.915 4.213 3.638 0 0" transform="translate(59.502 135.998)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-2.263-1.956-5.744-4.788-3.064-4.788 2.681 0 3.983 1.404 5.439-.447 1.456-1.85.88-4.723.88-6.063 0-1.341-.766-4.406 1.15-8.235 1.915-3.829 2.106-6.319 4.022-3.829 1.914 2.488 6.51 7.276 8.808 7.658 2.298.384 4.597 1.342 5.746 3.257 1.148 1.915 0 3.773 1.914 5.141 1.914 1.369 1.531 3.093 2.107 5.199C27.575 0 32.747 0 30.448 1.148c-2.297 1.15-6.51 1.916-11.49 1.341C13.979 1.915 4.213 3.638 0 0Z" transform="translate(59.502 135.998)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.218-1.986-.575-2.107.766-2.49 1.34-.383-.575-2.68.957-2.872 1.532-.193 4.979-1.15 5.936 0 .959 1.148-1.531.7-3.255 1.977C2.682-2.107.865 1.41 0 0" transform="translate(38.438 76.826)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.218-1.986-.575-2.107.766-2.49 1.34-.383-.575-2.68.957-2.872 1.532-.193 4.979-1.15 5.936 0 .959 1.148-1.531.7-3.255 1.977C2.682-2.107.865 1.41 0 0Z" transform="translate(38.438 76.826)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-2.063-1.033-1.148-2.682-3.064-3.831-1.915-1.148-1.149-1.531-1.723-4.213-.575-2.68.191-4.212 1.532-2.106S2.298 1.148 0 0" transform="translate(131.121 45.612)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-2.063-1.033-1.148-2.682-3.064-3.831-1.915-1.148-1.149-1.531-1.723-4.213-.575-2.68.191-4.212 1.532-2.106S2.298 1.148 0 0Z" transform="translate(131.121 45.612)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-.575-.575-1.532 2.681-2.106 4.213-.575 1.532-.561 4.195 1.056 5.675C.964 11.734 0 7.469 0 5.17 0 2.873.574.575 0 0m-6.704 5.936c-1.341.766-3.828 0-6.892-.957-3.065-.958-.613 2.131.766 4.213 1.233 1.861.574-.574 3.256-.766 2.68-.192 4.213-3.256 2.87-2.49m-4.402-6.511c-.192-1.531.574-4.021-3.639-3.064-4.213.958-4.213 3.256-5.936 1.533-1.723-1.724-3.83-3.255-6.32-.575C-29.49 0-29.107.766-30.447.958c-.955.135-4.138.846-6.792.074.206.123.426.285.663.5 1.915 1.723 1.532 2.298 3.638 4.213 2.108 1.916 3.639 3.638 5.171 1.916 1.532-1.725 4.788-2.108 3.639-4.023-1.149-1.914-.383-3.063.958-1.914 1.339 1.149 3.255 1.914 1.915 3.446-1.342 1.532-2.682 5.554-.766 2.873 1.915-2.681 2.489-4.022 3.637-5.553C-17.234.958-16.085 0-15.702.958c.383.957-.192 3.063.383 3.446.574.383 0-3.255 1.723-3.446 1.723-.192 2.681 0 2.49-1.533M9.192-8.81c-.574 3.257-4.787 32.747-4.787 32.747s-11.299 7.277-13.213 5.746c-1.916-1.533-5.171-1.302-4.788.21s2.872 1.128-1.341 4.002c-4.212 2.873-4.978 5.362-8.233 1.724-3.257-3.639-4.022-6.703-5.937-7.661-1.915-.957-3.447-4.021-1.34-4.787 2.106-.765 2.298 0 4.02-1.531 1.725-1.533 4.023-1.149 4.406-.193.383.959.766 4.022.957 5.171.192 1.149 2.138 4.979 1.93 1.915-.207-3.064 2.665-3.064.75-5.17-1.914-2.106-.765-3.831-4.595-4.214-3.831-.382-4.022 1.915-6.128.766-2.107-1.148-1.915-1.915-2.681-3.063-.766-1.149-4.788-3.447-4.788-3.447s-3.255 1.149-1.724-.958c1.533-2.106 2.873-4.595 1.533-4.786-1.341-.192-4.98 1.914-4.98-.384s-.573-4.787.959-5.362c1.081-.405 1.783-1.284 2.775-1.161-.769-.332-1.468-.813-2.009-1.52-1.491-1.947-.575-5.362-3.639-6.511-3.063-1.15-3.063-2.489-3.639-4.979-.573-2.489 0-8.808.766-9.383.765-.574 2.107-5.362 5.363-4.978 3.256.383 6.702.53 7.851-.023 1.149-.551 3.063 1.171 3.638-3.233.575-4.404 1.915-4.979 2.681-7.277.766-2.297-.383-7.086 0-9.958s3.064-7.852 3.064-10.341c0-2.489 2.873-3.638 4.405-2.681 1.532.958 4.787 2.873 6.127 5.937 1.342 3.063 1.342 4.595 3.447 8.617 2.106 4.021 1.533 6.894 2.489 9.958.958 3.064 3.262 5.171 6.419 8.617 3.156 3.446 2.588 5.362 0 5.171-2.588-.191-4.314 2.297-5.654 5.361-1.338 3.065-2.87 10.724-1.721 8.235 1.149-2.491 3.446-9.384 5.744-10.533 2.298-1.149 6.512 1.953 7.469 3.083.957 1.131.574 4.385-1.916 5.726C.383-8.617 1.915-7.469 4.405-9c2.489-1.532 5.362-3.064 4.787.19" transform="translate(132.845 86.592)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-.575-.575-1.532 2.681-2.106 4.213-.575 1.532-.561 4.195 1.056 5.675C.964 11.734 0 7.469 0 5.17 0 2.873.574.575 0 0Zm-6.704 5.936c-1.341.766-3.828 0-6.892-.957-3.065-.958-.613 2.131.766 4.213 1.233 1.861.574-.574 3.256-.766 2.68-.192 4.213-3.256 2.87-2.49zm-4.402-6.511c-.192-1.531.574-4.021-3.639-3.064-4.213.958-4.213 3.256-5.936 1.533-1.723-1.724-3.83-3.255-6.32-.575C-29.49 0-29.107.766-30.447.958c-.955.135-4.138.846-6.792.074.206.123.426.285.663.5 1.915 1.723 1.532 2.298 3.638 4.213 2.108 1.916 3.639 3.638 5.171 1.916 1.532-1.725 4.788-2.108 3.639-4.023-1.149-1.914-.383-3.063.958-1.914 1.339 1.149 3.255 1.914 1.915 3.446-1.342 1.532-2.682 5.554-.766 2.873 1.915-2.681 2.489-4.022 3.637-5.553C-17.234.958-16.085 0-15.702.958c.383.957-.192 3.063.383 3.446.574.383 0-3.255 1.723-3.446 1.723-.192 2.681 0 2.49-1.533zM9.192-8.81c-.574 3.257-4.787 32.747-4.787 32.747s-11.299 7.277-13.213 5.746c-1.916-1.533-5.171-1.302-4.788.21s2.872 1.128-1.341 4.002c-4.212 2.873-4.978 5.362-8.233 1.724-3.257-3.639-4.022-6.703-5.937-7.661-1.915-.957-3.447-4.021-1.34-4.787 2.106-.765 2.298 0 4.02-1.531 1.725-1.533 4.023-1.149 4.406-.193.383.959.766 4.022.957 5.171.192 1.149 2.138 4.979 1.93 1.915-.207-3.064 2.665-3.064.75-5.17-1.914-2.106-.765-3.831-4.595-4.214-3.831-.382-4.022 1.915-6.128.766-2.107-1.148-1.915-1.915-2.681-3.063-.766-1.149-4.788-3.447-4.788-3.447s-3.255 1.149-1.724-.958c1.533-2.106 2.873-4.595 1.533-4.786-1.341-.192-4.98 1.914-4.98-.384s-.573-4.787.959-5.362c1.081-.405 1.783-1.284 2.775-1.161-.769-.332-1.468-.813-2.009-1.52-1.491-1.947-.575-5.362-3.639-6.511-3.063-1.15-3.063-2.489-3.639-4.979-.573-2.489 0-8.808.766-9.383.765-.574 2.107-5.362 5.363-4.978 3.256.383 6.702.53 7.851-.023 1.149-.551 3.063 1.171 3.638-3.233.575-4.404 1.915-4.979 2.681-7.277.766-2.297-.383-7.086 0-9.958s3.064-7.852 3.064-10.341c0-2.489 2.873-3.638 4.405-2.681 1.532.958 4.787 2.873 6.127 5.937 1.342 3.063 1.342 4.595 3.447 8.617 2.106 4.021 1.533 6.894 2.489 9.958.958 3.064 3.262 5.171 6.419 8.617 3.156 3.446 2.588 5.362 0 5.171-2.588-.191-4.314 2.297-5.654 5.361-1.338 3.065-2.87 10.724-1.721 8.235 1.149-2.491 3.446-9.384 5.744-10.533 2.298-1.149 6.512 1.953 7.469 3.083.957 1.131.574 4.385-1.916 5.726C.383-8.617 1.915-7.469 4.405-9c2.489-1.532 5.362-3.064 4.787.19z" transform="translate(132.845 86.592)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.173-.353-2.106-2.681-1.532-3.831.576-1.148-.574.576-2.106-.382-1.533-.957-3.808-3.639-1.713-3.829 2.096-.193 1.713 1.531 3.628.765 1.915-.765 4.021-.575 4.021 1.34C2.298-4.021 1.915.574 0 0" transform="translate(95.886 109.955)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.173-.353-2.106-2.681-1.532-3.831.576-1.148-.574.576-2.106-.382-1.533-.957-3.808-3.639-1.713-3.829 2.096-.193 1.713 1.531 3.628.765 1.915-.765 4.021-.575 4.021 1.34C2.298-4.021 1.915.574 0 0Z" transform="translate(95.886 109.955)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.154-.165-1.533-3.064.957-3.447 2.49-.383 6.947.575 5.293 2.107C4.596.191 2.682.383 0 0" transform="translate(83.44 118.763)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.154-.165-1.533-3.064.957-3.447 2.49-.383 6.947.575 5.293 2.107C4.596.191 2.682.383 0 0Z" transform="translate(83.44 118.763)"/>\n </g>\n <g clip-path="url(#b)" transform="matrix(1.33333 0 0 -1.33333 0 196)">\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c0-37.068-30.05-67.119-67.119-67.119S-134.238-37.068-134.238 0c0 37.069 30.05 67.119 67.119 67.119S0 37.069 0 0Z" transform="translate(139.738 74.049)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:8;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c0-36.731-29.777-66.509-66.509-66.509S-133.019-36.731-133.019 0c0 36.733 29.778 66.51 66.51 66.51C-29.777 66.51 0 36.733 0 0Z" transform="translate(139.438 73.186)"/>\n </g>\n <g clip-path="url(#c)" transform="matrix(1.33333 0 0 -1.33333 0 196)">\n <path style="fill:#fff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0m12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754" transform="translate(119.64 109.307)"/>\n <path style="fill:#fff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0m12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754" transform="translate(119.64 109.307)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0Zm12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754z" transform="translate(119.64 109.307)"/>\n </g>\n</svg>\n'],{type:"image/svg+xml"}));Qo&&(Qo.insertRule("@keyframes i18next-editor-animate-top { \n from {\n top: calc(100vh + 600px); \n left: calc(100vw + 300px);\n opacity: 0;\n }\n to {\n top: var(--i18next-editor-popup-position-top);\n left: var(--i18next-editor-popup-position-left);\n opacity: 1;\n }\n }"),Qo.insertRule("@keyframes i18next-editor-animate-bottom { \n from {\n top: var(--i18next-editor-popup-position-top);\n left: var(--i18next-editor-popup-position-left);\n opacity: 1;\n }\n to {\n top: calc(100vh + 600px); \n left: calc(100vw + 300px);\n opacity: 0;\n }\n }"),Qo.insertRule(".i18next-editor-popup * { \n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */\n }"),Qo.insertRule(".i18next-editor-popup .resizer-right {\n width: 15px;\n height: 100%;\n background: transparent;\n position: absolute;\n right: -15px;\n bottom: 0;\n cursor: e-resize;\n }"),Qo.insertRule(".i18next-editor-popup .resizer-both {\n width: 15px;\n height: 15px;\n background: transparent;\n z-index: 10;\n position: absolute;\n right: -15px;\n bottom: -15px;\n cursor: se-resize;\n }"),Qo.insertRule(".i18next-editor-popup .resizer-bottom {\n width: 100%;\n height: 15px;\n background: transparent;\n position: absolute;\n right: 0;\n bottom: -15px;\n cursor: s-resize;\n }"));var Mi="i18next-editor-popup";function zi(e,t){var n=document.createElement("div");n.setAttribute("id",Mi),n.classList.add("i18next-editor-popup"),n.style="\n background-color: transparent;\n border: 1px solid rgba(200, 200, 200, 0.9);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n --i18next-editor-popup-height: 200px;\n height: var(--i18next-editor-popup-height);\n min-height: 150px;\n min-width: 300px;\n --i18next-editor-popup-width: 400px;\n width: var(--i18next-editor-popup-width);\n max-height: 800px;\n max-width: 1000px;\n\n position: fixed;\n --i18next-editor-popup-position-top: calc(100vh - var(--i18next-editor-popup-height) - 10px);\n top: calc(100vh - var(--i18next-editor-popup-height) - 10px);\n --i18next-editor-popup-position-left: calc(100vw - var(--i18next-editor-popup-width) - 10px);\n left: calc(100vw - var(--i18next-editor-popup-width) - 10px);\n\n overflow: visible;\n z-index: 100000;\n ",n.setAttribute("data-i18next-editor-element","true");var r,o,i,u=document.createElement("div");u.classList.add("i18next-editor-popup-header"),u.style="\n padding: 2px 10px;\n cursor: move;\n z-index: 10;\n backdrop-filter: blur(3px);\n background-color: rgba(200, 200, 200, 0.5);\n background: linear-gradient(0deg, rgba(200, 200, 200, 0.6), rgba(200, 200, 200, 0.5));\n color: #fff;\n text-align: right;\n ",n.appendChild(u),u.appendChild((r=n,o=function(){var e=function(e,t){var n=document.createElement("div");n.setAttribute("data-i18next-editor-element","true"),n.style="\n cursor: pointer;\n position: fixed;\n bottom: 25px;\n right: 25px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n height: 50px;\n background-color: rgba(249, 249, 249, 0.2);\n backdrop-filter: blur(3px);\n box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);\n border-radius: 50%;\n ",n.onclick=function(){t()};var r=document.createElement("img");return r.src=Ri,r.style.width="45px",n.appendChild(r),n}(0,(function(){n.style.animation="i18next-editor-animate-top 1s",Pi(),setTimeout((function(){document.body.removeChild(e)}),1e3)}));document.body.appendChild(e),Ni()},(i=document.createElement("img")).setAttribute("data-i18next-editor-element","true"),i.src=Ii,i.style.width="24px",i.style.cursor="pointer",i.onclick=function(){r.style.setProperty("--i18next-editor-popup-position-top",r.style.top),r.style.setProperty("--i18next-editor-popup-position-left",r.style.left),r.style.animation="i18next-editor-animate-bottom 2s forwards",o()},i));var a=document.createElement("iframe");a.setAttribute("id","i18next-editor-iframe"),a.setAttribute("data-i18next-editor-element","true"),a.style="\n z-index: 100;\n width: 100%;\n height: calc(100% - 32px);\n border: none;\n background: #fff;\n ",a.setAttribute("src",e),a.addEventListener("load",t),n.appendChild(a);var s=document.createElement("div");return s.setAttribute("id","i18next-editor-popup-overlay"),s.setAttribute("data-i18next-editor-element","true"),s.style="\n display: none;\n position: absolute;\n top: 32px;\n z-index: 101;\n width: 100%;\n height: calc(100% - 32px);\n background-color: rgba(200, 200, 200, 0.5);\n background: linear-gradient(0deg, rgba(240, 240, 240, 0.6), rgba(255, 255, 255, 0.5));\n backdrop-filter: blur(2px);\n",n.appendChild(s),n}function qi(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Oi.addHandler("requestPopupChanges",(function(e){var t=e.containerStyle;if(t){var n=document.getElementById(Mi);if(!n)return;var r=window.localStorage.getItem("locize_popup_pos");r&&(r=JSON.parse(r));var o=window.localStorage.getItem("locize_popup_size");if(o&&(o=JSON.parse(o)),o&&o.height&&o.width&&(t.height=o.height+"px",t.width=o.width+"px"),t.height){var i="calc(".concat(t.height," - ").concat(n.style.height,")");n.style.setProperty("top","calc(".concat(n.style.top," - ").concat(i,")")),n.style.setProperty("height",t.height)}if(t.width){var u="calc(".concat(t.width," - ").concat(n.style.width,")");n.style.setProperty("left","calc(".concat(n.style.left," - ").concat(u,")")),n.style.setProperty("width",t.width)}r&&r.top&&r.top<window.innerHeight-t.height.replace("px","")&&n.style.setProperty("top",r.top+"px"),r&&r.left&&r.left<window.innerWidth-t.width.replace("px","")&&n.style.setProperty("left",r.left+"px")}}));var Ui=["lng","ns"];function Hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Oi.addHandler("requestResourceBundle",(function(e){var t=e.lng,n=e.ns,r=qi(e,Ui);Oi.i18n.getResourceBundle(t,n,(function(e){Oi.confirmResourceBundle(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({resources:e,lng:t,ns:n},r))}))}));var _i=[];function Vi(e,t,n){var r=document.createElement("button");r.style="font-family: Arial; position: relative; backdrop-filter: blur(3px); cursor: pointer; padding: 2px 10px 2px 20px; font-size: 15px; font-weight: 300; text-transform: uppercase; color: #fff; background-color: rgba(25, 118, 210, 0.8); border: none; border-radius: 12px; ",r.classList.add("i18next-editor-button"),r.setAttribute("data-i18next-editor-element","true"),r.setAttribute("title",t);var o,i=((o=document.createElement("img")).setAttribute("data-i18next-editor-element","true"),o.src=Ti,o.style.width="15px",o);i.style="position: absolute; left: 4px; top: 3px;",i.style.width="15px",r.appendChild(i);var u=document.createElement("span");return u.textContent=e,r.appendChild(u),r.onclick=n,r}function Ki(e,t,n){var r=e.getBoundingClientRect(),o=document.createElement("div");return o.classList.add("i18next-editor-highlight"),o.style="position: absolute; z-index: 99999; pointer-events: none; top: ".concat(r.top-2+window.scrollY,"px; left: ").concat(r.left-2+window.scrollX,"px; height: ").concat(r.height+4,"px; width: ").concat(r.width+4,"px; border: ").concat("none"===t?"none":"1px solid ".concat(t),"; border-radius: 15px; ").concat(n?"box-shadow: inset 1px 1px 5px rgba(255, 255, 255, 0.1), inset -1px -1px 5px rgba(61, 67, 69, 0.3), 0 0 20px 0 ".concat(n,";"):""),o.setAttribute("data-i18next-editor-element","true"),o}Oi.addHandler("selectedKeys",(function(e){var t=e.keys,n=[];Object.values(la.data).forEach((function(e){Object.values(e.keys).filter((function(e){return t.includes(e.qualifiedKey)})).length&&n.push(e)})),_i.forEach((function(e){ra(e,e.node,e.keys,!1)})),n.forEach((function(e){na(e,e.node,e.keys)})),_i=n})),Oi.addHandler("isLocizeEnabled",(function(e,t){Oi.source=t.source,Oi.origin=t.origin,Oi.sendLocizeIsEnabled(e),Oi.requestInitialize(Oi.config)})),Oi.addHandler("sendMatchedUninstrumented",(function(e){e.length&&(e.forEach((function(e){var t=ii.get(e.eleUniqueID);la.save(e.eleUniqueID,void 0,e.textType,ga(e.eleUniqueID,e.textType,Po({},"".concat(e.textType),{ns:e.ns,key:e.key}),e.value),null==t?void 0:t.node),t&&t.keys&&delete t.keys["".concat(e.textType)],t&&t.keys&&!Object.keys(t.keys).length&&ii.remove(e.eleUniqueID,t.node)})),Oi.sendCurrentParsedContent())})),Qo&&Qo.insertRule(".i18next-editor-button:hover { background-color: rgba(21, 65, 154, 1) !important; }");var Xi=Math.min,Wi=Math.max,Ji=Math.round,$i=e=>({x:e,y:e}),Yi={left:"right",right:"left",bottom:"top",top:"bottom"},Gi={start:"end",end:"start"};function Zi(e,t,n){return Wi(e,Xi(t,n))}function Qi(e,t){return"function"==typeof e?e(t):e}function eu(e){return e.split("-")[0]}function tu(e){return e.split("-")[1]}function nu(e){return"x"===e?"y":"x"}function ru(e){return"y"===e?"height":"width"}function ou(e){return["top","bottom"].includes(eu(e))?"y":"x"}function iu(e){return nu(ou(e))}function uu(e){return e.replace(/start|end/g,e=>Gi[e])}function au(e){return e.replace(/left|right|bottom|top/g,e=>Yi[e])}function su(e){return"number"!=typeof e?function(e){return o({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function lu(e){var{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var cu=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],du=["mainAxis","crossAxis","limiter"];function pu(e,t,n){var r,{reference:o,floating:i}=e,u=ou(t),a=iu(t),s=ru(a),l=eu(t),c="y"===u,d=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,f=o[s]/2-i[s]/2;switch(l){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:p};break;case"left":r={x:o.x-i.width,y:p};break;default:r={x:o.x,y:o.y}}switch(tu(t)){case"start":r[a]-=f*(n&&c?-1:1);break;case"end":r[a]+=f*(n&&c?-1:1)}return r}var fu=function(){var e=t((function*(e,t,n){for(var{placement:r="bottom",strategy:i="absolute",middleware:u=[],platform:a}=n,s=u.filter(Boolean),l=yield null==a.isRTL?void 0:a.isRTL(t),c=yield a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=pu(c,r,l),f=r,h={},g=0,v=0;v<s.length;v++){var{name:m,fn:y}=s[v],{x:b,y:E,data:x,reset:A}=yield y({x:d,y:p,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=b?b:d,p=null!=E?E:p,h=o(o({},h),{},{[m]:o(o({},h[m]),x)}),A&&g<=50&&(g++,"object"==typeof A&&(A.placement&&(f=A.placement),A.rects&&(c=!0===A.rects?yield a.getElementRects({reference:e,floating:t,strategy:i}):A.rects),({x:d,y:p}=pu(c,f,l))),v=-1)}return{x:d,y:p,placement:f,strategy:i,middlewareData:h}}));return function(t,n,r){return e.apply(this,arguments)}}();function hu(e,t){return gu.apply(this,arguments)}function gu(){return(gu=t((function*(e,t){var n;void 0===t&&(t={});var{x:r,y:o,platform:i,rects:u,elements:a,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Qi(t,e),h=su(f),g=a[p?"floating"===d?"reference":"floating":d],v=lu(yield i.getClippingRect({element:null==(n=yield null==i.isElement?void 0:i.isElement(g))||n?g:g.contextElement||(yield null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:c,strategy:s})),m="floating"===d?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,y=yield null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating),b=(yield null==i.isElement?void 0:i.isElement(y))&&(yield null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},E=lu(i.convertOffsetParentRelativeRectToViewportRelativeRect?yield i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:y,strategy:s}):m);return{top:(v.top-E.top+h.top)/b.y,bottom:(E.bottom-v.bottom+h.bottom)/b.y,left:(v.left-E.left+h.left)/b.x,right:(E.right-v.right+h.right)/b.x}}))).apply(this,arguments)}function vu(){return(vu=t((function*(e,t){var{placement:n,platform:r,elements:o}=e,i=yield null==r.isRTL?void 0:r.isRTL(o.floating),u=eu(n),a=tu(n),s="y"===ou(n),l=["left","top"].includes(u)?-1:1,c=i&&s?-1:1,d=Qi(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(f="end"===a?-1*h:h),s?{x:f*c,y:p*l}:{x:p*l,y:f*c}}))).apply(this,arguments)}function mu(){return"undefined"!=typeof window}function yu(e){return xu(e)?(e.nodeName||"").toLowerCase():"#document"}function bu(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Eu(e){var t;return null==(t=(xu(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function xu(e){return!!mu()&&(e instanceof Node||e instanceof bu(e).Node)}function Au(e){return!!mu()&&(e instanceof Element||e instanceof bu(e).Element)}function wu(e){return!!mu()&&(e instanceof HTMLElement||e instanceof bu(e).HTMLElement)}function Cu(e){return!(!mu()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof bu(e).ShadowRoot)}function Ou(e){var{overflow:t,overflowX:n,overflowY:r,display:o}=Lu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ku(e){return["table","td","th"].includes(yu(e))}function Fu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function Du(e){var t=Bu(),n=Au(e)?Lu(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function Bu(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Su(e){return["html","body","#document"].includes(yu(e))}function Lu(e){return bu(e).getComputedStyle(e)}function ju(e){return Au(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pu(e){if("html"===yu(e))return e;var t=e.assignedSlot||e.parentNode||Cu(e)&&e.host||Eu(e);return Cu(t)?t.host:t}function Nu(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);var o=function e(t){var n=Pu(t);return Su(n)?t.ownerDocument?t.ownerDocument.body:t.body:wu(n)&&Ou(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),u=bu(o);if(i){var a=Tu(u);return t.concat(u,u.visualViewport||[],Ou(o)?o:[],a&&n?Nu(a):[])}return t.concat(o,Nu(o,[],n))}function Tu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Iu(e){var t=Lu(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=wu(e),i=o?e.offsetWidth:n,u=o?e.offsetHeight:r,a=Ji(n)!==i||Ji(r)!==u;return a&&(n=i,r=u),{width:n,height:r,$:a}}function Ru(e){return Au(e)?e:e.contextElement}function Mu(e){var t=Ru(e);if(!wu(t))return $i(1);var n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Iu(t),u=(i?Ji(n.width):n.width)/r,a=(i?Ji(n.height):n.height)/o;return u&&Number.isFinite(u)||(u=1),a&&Number.isFinite(a)||(a=1),{x:u,y:a}}var zu=$i(0);function qu(e){var t=bu(e);return Bu()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:zu}function Uu(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=Ru(e),u=$i(1);t&&(r?Au(r)&&(u=Mu(r)):u=Mu(e));var a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==bu(e))&&t}(i,n,r)?qu(i):$i(0),s=(o.left+a.x)/u.x,l=(o.top+a.y)/u.y,c=o.width/u.x,d=o.height/u.y;if(i)for(var p=bu(i),f=r&&Au(r)?bu(r):r,h=p,g=Tu(h);g&&r&&f!==h;){var v=Mu(g),m=g.getBoundingClientRect(),y=Lu(g),b=m.left+(g.clientLeft+parseFloat(y.paddingLeft))*v.x,E=m.top+(g.clientTop+parseFloat(y.paddingTop))*v.y;s*=v.x,l*=v.y,c*=v.x,d*=v.y,s+=b,l+=E,g=Tu(h=bu(g))}return lu({width:c,height:d,x:s,y:l})}function Hu(e,t){var n=ju(e).scrollLeft;return t?t.left+n:Uu(Eu(e)).left+n}function _u(e,t,n){void 0===n&&(n=!1);var r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Hu(e,r)),y:r.top+t.scrollTop}}function Vu(e,t,n){var r;if("viewport"===t)r=function(e,t){var n=bu(e),r=Eu(e),o=n.visualViewport,i=r.clientWidth,u=r.clientHeight,a=0,s=0;if(o){i=o.width,u=o.height;var l=Bu();(!l||l&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:u,x:a,y:s}}(e,n);else if("document"===t)r=function(e){var t=Eu(e),n=ju(e),r=e.ownerDocument.body,o=Wi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Wi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),u=-n.scrollLeft+Hu(e),a=-n.scrollTop;return"rtl"===Lu(r).direction&&(u+=Wi(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:u,y:a}}(Eu(e));else if(Au(t))r=function(e,t){var n=Uu(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=wu(e)?Mu(e):$i(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{var o=qu(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return lu(r)}function Ku(e,t){var n=Pu(e);return!(n===t||!Au(n)||Su(n))&&("fixed"===Lu(n).position||Ku(n,t))}function Xu(e,t,n){var r=wu(t),o=Eu(t),i="fixed"===n,u=Uu(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=$i(0);if(r||!r&&!i)if(("body"!==yu(t)||Ou(o))&&(a=ju(t)),r){var l=Uu(t,!0,i,t);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else o&&(s.x=Hu(o));var c=!o||r||i?$i(0):_u(o,a);return{x:u.left+a.scrollLeft-s.x-c.x,y:u.top+a.scrollTop-s.y-c.y,width:u.width,height:u.height}}function Wu(e){return"static"===Lu(e).position}function Ju(e,t){if(!wu(e)||"fixed"===Lu(e).position)return null;if(t)return t(e);var n=e.offsetParent;return Eu(e)===n&&(n=n.ownerDocument.body),n}function $u(e,t){var n=bu(e);if(Fu(e))return n;if(!wu(e)){for(var r=Pu(e);r&&!Su(r);){if(Au(r)&&!Wu(r))return r;r=Pu(r)}return n}for(var o=Ju(e,t);o&&ku(o)&&Wu(o);)o=Ju(o,t);return o&&Su(o)&&Wu(o)&&!Du(o)?n:o||function(e){for(var t=Pu(e);wu(t)&&!Su(t);){if(Du(t))return t;if(Fu(t))return null;t=Pu(t)}return null}(e)||n}var Yu={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,u=Eu(r),a=!!t&&Fu(t.floating);if(r===u||a&&i)return n;var s={scrollLeft:0,scrollTop:0},l=$i(1),c=$i(0),d=wu(r);if((d||!d&&!i)&&(("body"!==yu(r)||Ou(u))&&(s=ju(r)),wu(r))){var p=Uu(r);l=Mu(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}var f=!u||d||i?$i(0):_u(u,s,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+c.x+f.x,y:n.y*l.y-s.scrollTop*l.y+c.y+f.y}},getDocumentElement:Eu,getClippingRect:function(e){var{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?Fu(t)?[]:function(e,t){var n=t.get(e);if(n)return n;for(var r=Nu(e,[],!1).filter(e=>Au(e)&&"body"!==yu(e)),o=null,i="fixed"===Lu(e).position,u=i?Pu(e):e;Au(u)&&!Su(u);){var a=Lu(u),s=Du(u);s||"fixed"!==a.position||(o=null),(i?!s&&!o:!s&&"static"===a.position&&!!o&&["absolute","fixed"].includes(o.position)||Ou(u)&&!s&&Ku(e,u))?r=r.filter(e=>e!==u):o=a,u=Pu(u)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=i[0],a=i.reduce((e,n)=>{var r=Vu(t,n,o);return e.top=Wi(r.top,e.top),e.right=Xi(r.right,e.right),e.bottom=Xi(r.bottom,e.bottom),e.left=Wi(r.left,e.left),e},Vu(t,u,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:$u,getElementRects:function(){var e=t((function*(e){var t=this.getOffsetParent||$u,n=this.getDimensions,r=yield n(e.floating);return{reference:Xu(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}}));return function(t){return e.apply(this,arguments)}}(),getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){var{width:t,height:n}=Iu(e);return{width:t,height:n}},getScale:Mu,isElement:Au,isRTL:function(e){return"rtl"===Lu(e).direction}},Gu=function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn:n=>t((function*(){var t,r,{x:i,y:u,placement:a,middlewareData:s}=n,l=yield function(e,t){return vu.apply(this,arguments)}(n,e);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:u+l.y,data:o(o({},l),{},{placement:a})}}))()}},Zu=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:n=>t((function*(){var{x:t,y:r,placement:u}=n,a=Qi(e,n),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:e=>{var{x:t,y:n}=e;return{x:t,y:n}}}}=a,d=i(a,du),p={x:t,y:r},f=yield hu(n,d),h=ou(eu(u)),g=nu(h),v=p[g],m=p[h];if(s){var y="y"===g?"bottom":"right";v=Zi(v+f["y"===g?"top":"left"],v,v-f[y])}if(l){var b="y"===h?"bottom":"right";m=Zi(m+f["y"===h?"top":"left"],m,m-f[b])}var E=c.fn(o(o({},n),{},{[g]:v,[h]:m}));return o(o({},E),{},{data:{x:E.x-t,y:E.y-r,enabled:{[g]:s,[h]:l}}})}))()}},Qu=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:n=>t((function*(){var t,r,{placement:o,middlewareData:u,rects:a,initialPlacement:s,platform:l,elements:c}=n,d=Qi(e,n),{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0}=d,y=i(d,cu);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};var b=eu(o),E=ou(s),x=eu(s)===s,A=yield null==l.isRTL?void 0:l.isRTL(c.floating),w=h||(x||!m?[au(s)]:function(e){var t=au(e);return[uu(e),t,uu(t)]}(s)),C="none"!==v;!h&&C&&w.push(...function(e,t,n,r){var o=tu(e),i=function(e,t,n){var r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(eu(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(uu)))),i}(s,m,v,A));var O=[s,...w],k=yield hu(n,y),F=[],D=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&F.push(k[b]),f){var B=function(e,t,n){void 0===n&&(n=!1);var r=tu(e),o=iu(e),i=ru(o),u="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(u=au(u)),[u,au(u)]}(o,a,A);F.push(k[B[0]],k[B[1]])}if(D=[...D,{placement:o,overflows:F}],!F.every(e=>e<=0)){var S,L,j=((null==(S=u.flip)?void 0:S.index)||0)+1,P=O[j];if(P)return{data:{index:j,overflows:D},reset:{placement:P}};var N=null==(L=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:L.placement;if(!N)switch(g){case"bestFit":var T,I=null==(T=D.filter(e=>{if(C){var t=ou(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:T[0];I&&(N=I);break;case"initialPlacement":N=s}if(o!==N)return{reset:{placement:N}}}return{}}))()}},ea=e=>({name:"arrow",options:e,fn:n=>t((function*(){var{x:t,y:r,placement:i,rects:u,platform:a,elements:s,middlewareData:l}=n,{element:c,padding:d=0}=Qi(e,n)||{};if(null==c)return{};var p=su(d),f={x:t,y:r},h=iu(i),g=ru(h),v=yield a.getDimensions(c),m="y"===h,y=m?"top":"left",b=m?"bottom":"right",E=m?"clientHeight":"clientWidth",x=u.reference[g]+u.reference[h]-f[h]-u.floating[g],A=f[h]-u.reference[h],w=yield null==a.getOffsetParent?void 0:a.getOffsetParent(c),C=w?w[E]:0;C&&(yield null==a.isElement?void 0:a.isElement(w))||(C=s.floating[E]||u.floating[g]);var O=x/2-A/2,k=C/2-v[g]/2-1,F=Xi(p[y],k),D=Xi(p[b],k),B=F,S=C-v[g]-D,L=C/2-v[g]/2+O,j=Zi(B,L,S),P=!l.arrow&&null!=tu(i)&&L!==j&&u.reference[g]/2-(L<B?F:D)-v[g]/2<0,N=P?L<B?L-B:L-S:0;return{[h]:f[h]+N,data:o({[h]:j,centerOffset:L-j-N},P&&{alignmentOffset:N}),reset:P}}))()}),ta={};function na(e,t,n){var r=e.id,o=Si(t);if(!e.highlightBox){var i=Ki(o,"none",Go);document.body.appendChild(i),e.highlightBox=i}ta[r]=!0}function ra(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=e.id;r&&ta[o]||(e.highlightBox&&(document.body.removeChild(e.highlightBox),delete e.highlightBox),e.ribbonBox&&(document.body.removeChild(e.ribbonBox),delete e.ribbonBox),delete ta[o])}function oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ua={};var aa,sa,la={save:function(e,t,n,r,o,i){e&&n&&r&&o&&(ua[e]||(ua[e]={id:e,node:o,subliminal:t}),t&&(ua[e].subliminal=t),ua[e].keys=ia(ia({},ua[e].keys),{},Po({},"".concat(n),r)),i&&(ua[e].children=ia(ia({},ua[e].children),{},Po({},"".concat(n,"-").concat(i.map((function(e){return e.childIndex})).join(",")),i))))},clean:function(){Object.values(ua).forEach((function(e){document.body.contains(e.node)||(ra(e.id,e.node),delete ua[e.id])}))},get:function(e){return ua[e]},data:ua};function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(){if("undefined"!=typeof Document){var e=1;Document.prototype.hasOwnProperty("uniqueID")||(console.info('"document.uniqueID" not implemented; creating shim'),Object.defineProperty(Document.prototype,"uniqueID",{get:function(){return e++},enumerable:!1,configurable:!1}),Object.defineProperty(Element.prototype,"uniqueID",{get:function(){return Object.defineProperty(this,"uniqueID",{value:document.uniqueID,writable:!1,enumerable:!1,configurable:!1}),this.uniqueID},enumerable:!1,configurable:!0}))}}();var pa=[];function fa(e){sa=e}function ha(e,t,n,r){var o,i,u,a=n.invisibleMeta,s=n.text;if(a&&a.key&&a.ns)return aa||(aa=sa.getSourceLng()),da(da({eleUniqueID:e,textType:t,children:r&&r.map?r.map((function(e){return e.childIndex})).join(","):null,qualifiedKey:"".concat(a.ns,":").concat(a.key)},a),{},{extractedText:s,i18nTargetLng:null===(o=sa)||void 0===o?void 0:o.getLng(),i18nSourceLng:aa,i18nRawText:Po(Po({},"".concat(a.lng),"translation"===a.source&&sa?null===(i=sa)||void 0===i?void 0:i.getResource(a.lng,a.ns,a.key):null),"".concat(aa),"translation"===a.source&&sa?null===(u=sa)||void 0===u?void 0:u.getResource(aa,a.ns,a.key):null)})}function ga(e,t){var n,r,o,i,u,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0,c=a[t];if(c){aa||(aa=sa.getSourceLng());var d=sa.getLng();return{eleUniqueID:e,textType:t,children:l&&l.map?l.map((function(e){return e.childIndex})).join(","):null,qualifiedKey:c.key&&(c.ns||null!==(n=sa)&&void 0!==n&&n.getDefaultNS())?"".concat(c.ns||(null===(r=sa)||void 0===r?void 0:r.getDefaultNS()),":").concat(c.key):null,key:c.key,ns:c.ns||(null===(o=sa)||void 0===o?void 0:o.getDefaultNS()),extractedText:s,i18nTargetLng:d,i18nSourceLng:aa,i18nRawText:Po(Po({},"".concat(d),sa&&c.ns&&c.key&&(null===(i=sa)||void 0===i?void 0:i.getResource(d,c.ns,c.key))||s),"".concat(aa),sa&&c.ns&&c.key?null===(u=sa)||void 0===u?void 0:u.getResource(aa,c.ns,c.key):null)}}}function va(e){return/^\s*$/.test(e)}function ma(e,t,n,r,o,i,u){var a=la.get(e),s=a&&a.keys["".concat(n)]||{},l=r["".concat(n)]||{};!l.key&&s.key&&(l.key=s.key),!l.ns&&s.ns&&(l.ns=s.ns),r["".concat(n)]=l;var c=ga(e,n,r,u,i);c.qualifiedKey?(la.save(e,null,n,c,o,i),ii.removeKey(e,n,o)):ii.save(e,n,o,u)}function ya(e){if(!(Jo.indexOf(e.nodeName)>-1)){var t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=di(e),r=fi(e),o={};if(n&&n.indexOf(";")>=0){for(var i=n.split(";"),u=0,a=i.length;u<a;u++)if(""!=i[u]){var s=pi(i[u]),l=si(s,2),c=l[0],d=l[1];o[d]=c}}else if(n){var p=pi(n),f=si(p,2),h=f[0],g=f[1];o[g]=h}if(Object.keys(o).length<1)return null;var v=Object.keys(o).reduce((function(e,n){var i=o[n],u=r,a=i;if(t&&i.indexOf(":")>-1){var s=i.split(":");a=s[1],u=s[0]}return e[n]={key:a,ns:u},e}),{});return v}(e),n=!1;if(e.childNodes&&!pa.includes(e.uniqueID)){var r=[];e.childNodes.forEach((function(t,o){if(r.length&&"#text"!==t.nodeName&&(pa.push(t.uniqueID),r.push({childIndex:o,child:t})),"#text"===t.nodeName){var i=t.textContent;if(!va(i)){var u=_o(i),a=i.startsWith(Mo);if(u&&(n=!0),a&&u){var s=Ho(i);ii.remove(e.uniqueID,e),la.save(e.uniqueID,s.invisibleMeta,"text",ha(e.uniqueID,"text",s),e)}else if(a)r.push({childIndex:o,child:t,text:i});else if(r.length&&!u)r.push({childIndex:o,child:t,text:i});else if(r.length&&u){r.push({childIndex:o,child:t,text:i});var l=Ho(r.reduce((function(e,t){return e+t.text}),""));ii.removeKey(e.uniqueID,"html",e,i),la.save(e.uniqueID,l.invisibleMeta,"html",ha(e.uniqueID,"html",l,r),e,r),r=[]}}}})),n||e.childNodes.forEach((function(n,o){r.length&&"#text"!==n.nodeName&&pa.push(n.uniqueID);var i=n.textContent;t&&t.html&&o<e.childNodes.length-1?r.push({childIndex:o,child:n,text:i}):t&&t.html&&o===e.childNodes.length-1?(r.push({childIndex:o,child:n,text:i}),ma(e.uniqueID,0,"html",t,e,r,e.innerHTML),r=[]):i&&(t&&t.text?ma(e.uniqueID,0,"text",t,e,void 0,i):"#text"!==n.nodeName||va(i)||ii.save(e.uniqueID,"text",e,i))}))}e.getAttribute&&Wo.forEach((function(n){var r=e.getAttribute(n);if(_o(r)){var o=Ho(r);ii.removeKey(e.uniqueID,n,e),la.save(e.uniqueID,o.invisibleMeta,n,ha(e.uniqueID,"".concat(n),o),e)}else r&&(t&&t[n]?ma(e.uniqueID,0,n,t,e,void 0,r):ii.save(e.uniqueID,n,e,r))}))}}function ba(e){return aa=void 0,function e(t,n){if(!t.dataset||"true"!==t.dataset.i18nextEditorElement){n(t);var r=la.get(t.uniqueID),o=ii.get(t.uniqueID);if(r||o){var i,u=null===(i=t.parentElement)||void 0===i?void 0:i.uniqueID;ii.remove(u,t.parentElement)}for(var a=t.childNodes,s=0;s<a.length;s++)e(a[s],n)}}(e,ya),la.clean(),pa=[],la.data}var Ea={};function xa(e){if(e.uniqueID){var t=Ea[e.uniqueID];if(t&&t.triggered>10&&t.lastTriggerDate+500<Date.now())return!t.warned&&console&&(console.warn("locize ::: ignoring element change - an element is rerendering too often in short interval","\n",'consider adding the "data-locize-editor-ignore:" attribute to the element:',e),t.warned=!0),!0}var n=e.dataset&&("true"===e.dataset.i18nextEditorElement||"true"===e.dataset.locizeEditorIgnore);return!n&&e.parentElement?xa(e.parentElement):n}function Aa(e,t){var n,r,o=[],i=li((function(){t(o),o=[]}),100),u=new MutationObserver((function(e){if(n)return r&&clearTimeout(r),void(r=setTimeout((function(){n&&(n=!1)}),200));var t=!1;e.forEach((function(e){if("attributes"!==e.type||Wo.includes(e.attributeName)){if(Object.keys(Ea).forEach((function(e){Ea[e].lastTriggerDate+6e4<Date.now()&&delete Ea[e]})),"childList"===e.type){var n=0;if(xa(e.target)||(e.addedNodes.forEach((function(e){xa(e)||(n+=1)}),0),e.removedNodes.forEach((function(e){xa(e)||(n+=1)}),0)),0===n)return}if(t=!0,e.target&&e.target.uniqueID){var r=Ea[e.target.uniqueID]||{triggered:0};r.triggered=r.triggered+1,r.lastTriggerDate=Date.now(),Ea[e.target.uniqueID]=r}o.reduce((function(t,n){return!(!t&&!n.contains(e.target)&&e.target.parentElement)}),!1)||(o=o.filter((function(t){return!e.target.contains(t)}))).push(e.target)}})),t&&i()}));return{start:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{attributes:!0,childList:!0,characterData:!0,subtree:!0};t([e]),u.observe(e,n)},skipNext:function(){n=!0}}}function wa(){for(var e=0,t=0,n=0,r=0,o=document.getElementsByClassName("i18next-editor-popup"),i=null,u=null,a=1e5,s=0;s<o.length;s++){var l=o[s],c=h(l);l.onmousedown=function(){this.style.zIndex=""+ ++a},c&&(c.parentPopup=l,c.onmousedown=d)}function d(e){u||(u=document.getElementById("i18next-editor-popup-overlay")),u&&(u.style.display="block"),Ni(),(i=this.parentPopup).style.zIndex=""+ ++a,e=e||window.event,n=e.clientX,r=e.clientY,document.onmouseup=f,document.onmousemove=p}function p(o){i&&(o=o||window.event,e=n-o.clientX,t=r-o.clientY,n=o.clientX,r=o.clientY,i.style.top=i.offsetTop-t+"px",i.style.left=i.offsetLeft-e+"px")}function f(){Pi(),u&&(u.style.display="none");var e=document.getElementById("i18next-editor-popup");window.localStorage.setItem("locize_popup_pos",JSON.stringify({top:parseInt(document.defaultView.getComputedStyle(e).top,10),left:parseInt(document.defaultView.getComputedStyle(e).left,10)})),document.onmouseup=null,document.onmousemove=null}function h(e){var t=e.getElementsByClassName("i18next-editor-popup-header");return 1===t.length?t[0]:null}}function Ca(){for(var e,t,n,r,o=document.getElementsByClassName("i18next-editor-popup"),i=null,u=null,a=0;a<o.length;a++){var s=o[a],l=document.createElement("div");l.className="resizer-right",s.appendChild(l),l.addEventListener("mousedown",p,!1),l.parentPopup=s;var c=document.createElement("div");c.className="resizer-bottom",s.appendChild(c),c.addEventListener("mousedown",p,!1),c.parentPopup=s;var d=document.createElement("div");d.className="resizer-both",s.appendChild(d),d.addEventListener("mousedown",p,!1),d.parentPopup=s}function p(o){Ni(),u||(u=document.getElementById("i18next-editor-popup-overlay")),u&&(u.style.display="block"),i=this.parentPopup,e=o.clientX,t=o.clientY,n=parseInt(document.defaultView.getComputedStyle(i).width,10),r=parseInt(document.defaultView.getComputedStyle(i).height,10),document.documentElement.addEventListener("mousemove",f,!1),document.documentElement.addEventListener("mouseup",h,!1)}function f(o){i.style.width=n+o.clientX-e+"px",i.style.height=r+o.clientY-t+"px"}function h(){Pi(),u&&(u.style.display="none");var e=document.getElementById("i18next-editor-popup");window.localStorage.setItem("locize_popup_size",JSON.stringify({width:parseInt(document.defaultView.getComputedStyle(e).width,10),height:parseInt(document.defaultView.getComputedStyle(e).height,10)})),document.documentElement.removeEventListener("mousemove",f,!1),document.documentElement.removeEventListener("mouseup",h,!1)}}function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fa,Da={getResource:function(e,t,n){return{}},setResource:function(e,t,n,r){},getResourceBundle:function(e,t,n){n({})},getDefaultNS:function(){},getLng:function(){},getSourceLng:function(){},getLocizeDetails:function(){return{}},bindLanguageChange:function(e){},bindMissingKeyHandler:function(e){},triggerRerender:function(){}};function Ba(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Da,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{show:!1,qsProp:"incontext"};if("undefined"!=typeof document){var n=t.show||"true"===hi(t.qsProp||"incontext"),r=document.getElementById("locize"),o={};if(["projectId","version"].forEach((function(e){if(r){var t=r.getAttribute(e.toLowerCase())||r.getAttribute("data-"+e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(o[e]=t)}})),o=ka(ka(ka({},e.getLocizeDetails()),o),t),Oi.config=o,Oi.init(e),fa(e),null==e||e.bindLanguageChange((function(t){Oi.sendCurrentTargetLanguage(e.getLng())})),document.body)return i();"undefined"!=typeof window&&window.addEventListener("load",(function(){return i()}))}function i(){if(vi||n){var e=Aa(document.body,(function(e){e.forEach((function(e){ba(e)})),Oi.sendCurrentParsedContent()}));if(e.start(),Pi(e),vi||document.getElementById(Mi)||(document.body.append(zi(Zo(),(function(){Oi.requestInitialize(o)}))),wa(),Ca()),"undefined"!=typeof window){var t=window.document.location.href;Oi.sendHrefchanged(t);var r=window.document.querySelector("body");new window.MutationObserver((function(e){e.forEach((function(e){t!==window.document.location.href&&(t=window.document.location.href,Oi.sendHrefchanged(t))}))})).observe(r,{childList:!0,subtree:!0})}}}}function Sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sa(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ja(e){var t={getResource:function(t,n,r){return e.getResource&&e.getResource(t,n,r)},setResource:function(t,n,r,o){return e.addResource(t,n,r,o,{silent:!0})},getResourceBundle:function(t,n,r){e.loadNamespaces(n,(function(){r(e.getResourceBundle(t,n))}))},getDefaultNS:function(){return e.options.defaultNS},getLng:function(){return e.resolvedLanguage||e.languages&&e.languages[0]||e.options.lng},getSourceLng:function(){var t=e.options.fallbackLng;if("string"==typeof t)return t;if(Array.isArray(t))return t[t.length-1];if(t&&t.default){if("string"==typeof t.default)return t;if(Array.isArray(t.default))return t.default[t.default.length-1]}if("function"==typeof t){var n=t(e.resolvedLanguage);if("string"==typeof n)return n;if(Array.isArray(n))return n[n.length-1]}return"dev"},getLocizeDetails:function(){var n={backendName:e.services.backendConnector.backend&&e.services.backendConnector.backend.options&&e.services.backendConnector.backend.options.loadPath&&e.services.backendConnector.backend.options.loadPath.indexOf(".locize.")>0?"I18nextLocizeBackend":e.services.backendConnector.backend?e.services.backendConnector.backend.constructor.name:"options.resources",sourceLng:t.getSourceLng(),i18nFormat:"v3"===e.options.compatibilityJSON?"i18next_v3":"i18next_v4",i18nFramework:"i18next",isLocizify:e.options.isLocizify,defaultNS:e.options.defaultNS,targetLngs:Fi(new Set([].concat(e.options.preload,e.options.supportedLngs,[t.getLng()]))).filter((function(e){return"cimode"!==e&&!1!==e&&"false"!==e&&void 0!==e&&e!==t.getSourceLng()})),ns:Fi(new Set([].concat(e.options.ns,e.options.fallbackNS,e.options.defaultNS))).filter((function(e){return!1!==e&&"false"!==e}))};if(!e.options.backend&&!e.options.editor)return n;var r=e.options.editor||e.options.backend;return La(La({},n),{},{projectId:r.projectId,version:r.version})},bindLanguageChange:function(t){e.on("languageChanged",t)},bindMissingKeyHandler:function(t){e.options.missingKeyHandler=function(e,n,r,o,i,u){i||t(e,n,r,o)}},triggerRerender:function(){e.emit("editorSaved")}};return t}function Pa(e,t){e.use(Xo),"string"==typeof t.postProcess?t.postProcess=[t.postProcess,"subliminal"]:Array.isArray(t.postProcess)?t.postProcess.push("subliminal"):t.postProcess="subliminal",t.postProcessPassResolved=!0}var Na=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.qsProp=e.qsProp||"incontext",{type:"3rdParty",init:function(t){var n=t.options;Fa=t;var r=ja(t),o=e.show||"true"===hi(e.qsProp);(vi||o)&&Pa(Fa,n),Ba(r,e)}}}(),Ta=["implementation"];"undefined"!=typeof window&&(window.locizeStartStandalone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.implementation,n=qi(e,Ta);Ba(t,Object.keys(n).length>0?n:void 0)});var{i18next:Ia}=Zr,Ra={saveMissingTo:"all"},Ma={reloadOnSave:!0,bindSavedMissing:!0};function za(e,t){if("undefined"==typeof window)return null;t||(t=window.location.href.toLowerCase()),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}Ia.use(So).use(Na),Ia.on("editorSaved",()=>{Zr.forceRerender()});var qa=Ia.init;return Ia.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;e=o(o(o({},Ma),e),{},{isLocizify:!0});var n=document.getElementById("locizify");if(n){var r={},i={},u=["fallbackLng","saveMissing","debug","autorun","ele","cleanIndent","cleanWhitespace","namespace","namespaceFromPath","load"],a=["ignoreTags","ignoreIds","ignoreClasses","translateAttributes","mergeTags","inlineTags","ignoreInlineOn","ignoreCleanIndentFor","ns"],s=["projectId","apiKey","referenceLng","version","allowedAddOrUpdateHost","autoPilot","cdnType","noCache"];u.forEach(e=>{var t=n.getAttribute(e.toLowerCase())||n.getAttribute("data-"+e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(r[e]=t)}),a.forEach(e=>{var t=n.getAttribute(e.toLowerCase())||n.getAttribute("data-"+e.toLowerCase());null!=t&&(r[e]=t.split(",").map(e=>e.trim()))}),s.forEach(e=>{var t=n.getAttribute(e.toLowerCase())||n.getAttribute("data-"+e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),"autopilot"===e.toLowerCase()&&""===t&&(t=!0),null!=t&&(i[e]=t),t||("true"===(t=za(e.toLowerCase()))&&(t=!0),"false"===t&&(t=!1),"autopilot"===e.toLowerCase()&&""===t&&(t=!0),null!=t&&(i[e]=t))}),i.allowedAddOrUpdateHost&&(i.allowedAddOrUpdateHosts=[i.allowedAddOrUpdateHost],delete i.allowedAddOrUpdateHost),(e=o(o(o({},Ma),e),r)).backend=o(o({},e.backend),i)}function l(e,n){t(e,n)}if(!e.backend.apiKey&&za("apikey")&&(e.backend.apiKey=za("apikey")),!e.backend.autoPilot||"false"===e.backend.autoPilot)return qa.call(Ia,o(o({},e),Ra),l);var c=new So(e.backend);c.getOptions((t,n)=>{t&&"object"==typeof console&&"function"==typeof console.error&&console.error(t),qa.call(Ia,o(o(o({},n),e),Ra),l)})},Zr.getLanguages=function(e){if(Ia.services.backendConnector)Ia.services.backendConnector.backend.getLanguages(e);else{Ia.on("initialized",(function t(){Ia.off("initialized",t),Ia.services.backendConnector.backend.getLanguages(e)}))}},Zr.getOptions=function(e){if(Ia.services.backendConnector)Ia.services.backendConnector.backend.getOptions(e);else{Ia.on("initialized",(function t(){Ia.off("initialized",t),Ia.services.backendConnector.backend.getOptions(e)}))}},Zr.editor={setEditorLng:function(e){Oi.sendCurrentTargetLanguage(e)}},Zr}));
|
|
25
|
+
e.exports=t;var n=e.exports.properties=["accept","accessKey","action","alt","async","autoComplete","autoPlay","cellPadding","cellSpacing","checked","className","colSpan","content","contentEditable","controls","crossOrigin","data","defer","dir","download","draggable","encType","formNoValidate","href","hrefLang","htmlFor","httpEquiv","icon","id","label","lang","list","loop","max","mediaGroup","method","min","multiple","muted","name","noValidate","pattern","placeholder","poster","preload","radioGroup","readOnly","rel","required","rowSpan","sandbox","scope","scrollLeft","scrolling","scrollTop","selected","span","spellCheck","src","srcDoc","srcSet","start","step","style","tabIndex","target","title","type","value","autoCapitalize","autoCorrect","property","attributes"],r=e.exports.attrBlacklist={class:"className"}})),At=(Et.properties,Et.attrBlacklist,Array.isArray),wt=Object.prototype.toString,xt=At||function(e){return"[object Array]"===wt.call(e)};Ot.NONE=0,Ot.VTEXT=1,Ot.VNODE=2,Ot.WIDGET=3,Ot.PROPS=4,Ot.ORDER=5,Ot.INSERT=6,Ot.REMOVE=7,Ot.THUNK=8;var Ct=Ot;function Ot(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}Ot.prototype.version="2",Ot.prototype.type="VirtualPatch";var kt=function(e){return e&&"VirtualText"===e.type&&"2"===e.version};var Ft=function(e,t){var n=e,r=t;ct(t)&&(r=Dt(t,e));ct(e)&&(n=Dt(e,null));return{a:n,b:r}};function Dt(e,t){var n=e.vnode;if(n||(n=e.vnode=e.render(t)),!(st(n)||kt(n)||lt(n)))throw new Error("thunk did not return a valid node");return n}var Bt=function(e){return"object"==typeof e&&null!==e},St=function e(t,n){var r;for(var o in t){o in n||((r=r||{})[o]=void 0);var i=t[o],u=n[o];if(i!==u)if(Bt(i)&&Bt(u))if(jt(u)!==jt(i))(r=r||{})[o]=u;else if(dt(u))(r=r||{})[o]=u;else{var a=e(i,u);a&&((r=r||{})[o]=a)}else(r=r||{})[o]=u}for(var s in n)s in t||((r=r||{})[s]=n[s]);return r};function jt(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}function Lt(e,t){var n={a:e};return Pt(e,t,n,0),n}function Pt(e,t,n,r){if(e!==t){var o=n[r],i=!1;if(ct(e)||ct(t))Tt(e,t,n,r);else if(null==t)lt(e)||(Nt(e,n,r),o=n[r]),o=Mt(o,new Ct(Ct.REMOVE,e,t));else if(st(t))if(st(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var u=St(e.properties,t.properties);u&&(o=Mt(o,new Ct(Ct.PROPS,e,u))),o=function(e,t,n,r,o){for(var i=e.children,u=function(e,t){var n=Rt(t),r=n.keys,o=n.free;if(o.length===t.length)return{children:t,moves:null};var i=Rt(e),u=i.keys;if(i.free.length===e.length)return{children:t,moves:null};for(var a=[],s=0,l=o.length,c=0,d=0;d<e.length;d++){var p,f=e[d];f.key?r.hasOwnProperty(f.key)?(p=r[f.key],a.push(t[p])):(p=d-c++,a.push(null)):s<l?(p=o[s++],a.push(t[p])):(p=d-c++,a.push(null))}for(var h=s>=o.length?t.length:o[s],g=0;g<t.length;g++){var v=t[g];v.key?u.hasOwnProperty(v.key)||a.push(v):g>=h&&a.push(v)}for(var m,y=a.slice(),b=0,E=[],A=[],w=0;w<t.length;){var x=t[w];for(m=y[b];null===m&&y.length;)E.push(It(y,b,null)),m=y[b];m&&m.key===x.key?(b++,w++):x.key?(m&&m.key&&r[m.key]!==w+1?(E.push(It(y,b,m.key)),(m=y[b])&&m.key===x.key?b++:A.push({key:x.key,to:w})):A.push({key:x.key,to:w}),w++):m&&m.key&&E.push(It(y,b,m.key))}for(;b<y.length;)m=y[b],E.push(It(y,b,m&&m.key));if(E.length===c&&!A.length)return{children:a,moves:null};return{children:a,moves:{removes:E,inserts:A}}}(i,t.children),a=u.children,s=i.length,l=a.length,c=s>l?s:l,d=0;d<c;d++){var p=i[d],f=a[d];o+=1,p?Pt(p,f,n,o):f&&(r=Mt(r,new Ct(Ct.INSERT,null,f))),st(p)&&p.count&&(o+=p.count)}u.moves&&(r=Mt(r,new Ct(Ct.ORDER,e,u.moves)));return r}(e,t,n,o,r)}else o=Mt(o,new Ct(Ct.VNODE,e,t)),i=!0;else o=Mt(o,new Ct(Ct.VNODE,e,t)),i=!0;else kt(t)?kt(e)?e.text!==t.text&&(o=Mt(o,new Ct(Ct.VTEXT,e,t))):(o=Mt(o,new Ct(Ct.VTEXT,e,t)),i=!0):lt(t)&&(lt(e)||(i=!0),o=Mt(o,new Ct(Ct.WIDGET,e,t)));o&&(n[r]=o),i&&Nt(e,n,r)}}function Nt(e,t,n){!function e(t,n,r){if(st(t)){if(t.hooks&&(n[r]=Mt(n[r],new Ct(Ct.PROPS,t,function(e){var t={};for(var n in e)t[n]=void 0;return t}(t.hooks)))),t.descendantHooks||t.hasThunks)for(var o=t.children,i=o.length,u=0;u<i;u++){var a=o[u];e(a,n,r+=1),st(a)&&a.count&&(r+=a.count)}}else ct(t)&&Tt(t,null,n,r)}(e,t,n),function e(t,n,r){if(lt(t))"function"==typeof t.destroy&&(n[r]=Mt(n[r],new Ct(Ct.REMOVE,t,null)));else if(st(t)&&(t.hasWidgets||t.hasThunks))for(var o=t.children,i=o.length,u=0;u<i;u++){var a=o[u];e(a,n,r+=1),st(a)&&a.count&&(r+=a.count)}else ct(t)&&Tt(t,null,n,r)}(e,t,n)}function Tt(e,t,n,r){var o=Ft(e,t),i=Lt(o.a,o.b);(function(e){for(var t in e)if("a"!==t)return!0;return!1})(i)&&(n[r]=new Ct(Ct.THUNK,null,i))}function It(e,t,n){return e.splice(t,1),{from:t,key:n}}function Rt(e){for(var t={},n=[],r=e.length,o=0;o<r;o++){var i=e[o];i.key?t[i.key]=o:n.push(o)}return{keys:t,free:n}}function Mt(e,t){return e?(xt(e)?e.push(t):e=[e,t],e):t}var zt=Lt,qt=Array.prototype.slice,Ut=function(e,t){"length"in e||(e=[e]);e=qt.call(e);for(;e.length;){var n=e.shift(),r=t(n);if(r)return r;n.childNodes&&n.childNodes.length&&(e=qt.call(n.childNodes).concat(e))}};var Ht=_t;function _t(e,t){if(!(this instanceof _t))return new _t(e,t);this.data=e,this.nodeValue=e,this.length=e.length,this.ownerDocument=t||null}_t.prototype.nodeType=8,_t.prototype.nodeName="#comment",_t.prototype.toString=function(){return"[object Comment]"};var Vt=Kt;function Kt(e,t){if(!(this instanceof Kt))return new Kt(e);this.data=e||"",this.length=this.data.length,this.ownerDocument=t||null}Kt.prototype.type="DOMTextNode",Kt.prototype.nodeType=3,Kt.prototype.nodeName="#text",Kt.prototype.toString=function(){return this.data},Kt.prototype.replaceData=function(e,t,n){var r=this.data,o=r.substring(0,e),i=r.substring(e+t,r.length);this.data=o+n+i,this.length=this.data.length};var Wt=function(e){var t=this,n=e.type;e.target||(e.target=t);t.listeners||(t.listeners={});var r=t.listeners[n];if(r)return r.forEach((function(n){e.currentTarget=t,"function"==typeof n?n(e):n.handleEvent(e)}));t.parentNode&&t.parentNode.dispatchEvent(e)};var Xt=function(e,t){this.listeners||(this.listeners={});this.listeners[e]||(this.listeners[e]=[]);-1===this.listeners[e].indexOf(t)&&this.listeners[e].push(t)};var Jt=function(e,t){if(!this.listeners)return;if(!this.listeners[e])return;var n=this.listeners[e],r=n.indexOf(t);-1!==r&&n.splice(r,1)};var $t=Gt,Yt=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function Gt(e){switch(e.nodeType){case 3:return en(e.data);case 8:return"\x3c!--"+e.data+"--\x3e";default:return function(e){var t=[],n=e.tagName;"http://www.w3.org/1999/xhtml"===e.namespaceURI&&(n=n.toLowerCase());t.push("<"+n+function(e){var t=[];for(var n in e)Zt(e,n)&&t.push({name:n,value:e[n]});for(var r in e._attributes)for(var o in e._attributes[r]){var i=e._attributes[r][o],u=(i.prefix?i.prefix+":":"")+o;t.push({name:u,value:i.value})}e.className&&t.push({name:"class",value:e.className});return t.length?Qt(t):""}(e)+function(e){var t=e.dataset,n=[];for(var r in t)n.push({name:"data-"+r,value:t[r]});return n.length?Qt(n):""}(e)),Yt.indexOf(n)>-1?t.push(" />"):(t.push(">"),e.childNodes.length?t.push.apply(t,e.childNodes.map(Gt)):e.textContent||e.innerText?t.push(en(e.textContent||e.innerText)):e.innerHTML&&t.push(e.innerHTML),t.push("</"+n+">"));return t.join("")}(e)}}function Zt(e,t){var n=typeof e[t];return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===n||"boolean"===n||"number"===n)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}function Qt(e){var t=[];return e.forEach((function(e){var n=e.name,r=e.value;"style"===n&&(r=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach((function(n){var r=e[n];n=n.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),t+=n+":"+r+";"})),t}(r)),t.push(n+'="'+(en(r).replace(/"/g,""")+'"'))})),t.length?" "+t.join(" "):""}function en(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var tn="http://www.w3.org/1999/xhtml",nn=rn;function rn(e,t,n){if(!(this instanceof rn))return new rn(e);var r=void 0===n?tn:n||null;this.tagName=r===tn?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=r,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}rn.prototype.type="DOMElement",rn.prototype.nodeType=1,rn.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},rn.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[n]=e,e.parentNode=this,t},rn.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},rn.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=null==t?-1:this.childNodes.indexOf(t);return n>-1?this.childNodes.splice(n,0,e):this.childNodes.push(e),e.parentNode=this,e},rn.prototype.setAttributeNS=function(e,t,n){var r=null,o=t,i=t.indexOf(":");(i>-1&&(r=t.substr(0,i),o=t.substr(i+1)),"INPUT"===this.tagName&&"type"===t)?this.type=n:(this._attributes[e]||(this._attributes[e]={}))[o]={value:n,prefix:r}},rn.prototype.getAttributeNS=function(e,t){var n=this._attributes[e],r=n&&n[t]&&n[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof r?null:r},rn.prototype.removeAttributeNS=function(e,t){var n=this._attributes[e];n&&delete n[t]},rn.prototype.hasAttributeNS=function(e,t){var n=this._attributes[e];return!!n&&t in n},rn.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},rn.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},rn.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},rn.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},rn.prototype.removeEventListener=Jt,rn.prototype.addEventListener=Xt,rn.prototype.dispatchEvent=Wt,rn.prototype.focus=function(){},rn.prototype.toString=function(){return $t(this)},rn.prototype.getElementsByClassName=function(e){var t=e.split(" "),n=[];return Ut(this,(function(e){if(1===e.nodeType){var r=(e.className||"").split(" ");t.every((function(e){return-1!==r.indexOf(e)}))&&n.push(e)}})),n},rn.prototype.getElementsByTagName=function(e){e=e.toLowerCase();var t=[];return Ut(this.childNodes,(function(n){1!==n.nodeType||"*"!==e&&n.tagName.toLowerCase()!==e||t.push(n)})),t},rn.prototype.contains=function(e){return Ut(this,(function(t){return e===t}))||!1};var on=un;function un(e){if(!(this instanceof un))return new un;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}un.prototype.type="DocumentFragment",un.prototype.nodeType=11,un.prototype.nodeName="#document-fragment",un.prototype.appendChild=nn.prototype.appendChild,un.prototype.replaceChild=nn.prototype.replaceChild,un.prototype.removeChild=nn.prototype.removeChild,un.prototype.toString=function(){return this.childNodes.map((function(e){return String(e)})).join("")};var an=sn;function sn(e){}sn.prototype.initEvent=function(e,t,n){this.type=e,this.bubbles=t,this.cancelable=n},sn.prototype.preventDefault=function(){};var ln=cn;function cn(){if(!(this instanceof cn))return new cn;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var dn=cn.prototype;dn.createTextNode=function(e){return new Vt(e,this)},dn.createElementNS=function(e,t){var n=null===e?null:String(e);return new nn(t,this,n)},dn.createElement=function(e){return new nn(e,this)},dn.createDocumentFragment=function(){return new on(this)},dn.createEvent=function(e){return new an(e)},dn.createComment=function(e){return new Ht(e,this)},dn.getElementById=function(e){return e=String(e),Ut(this.childNodes,(function(t){if(String(t.id)===e)return t}))||null},dn.getElementsByClassName=nn.prototype.getElementsByClassName,dn.getElementsByTagName=nn.prototype.getElementsByTagName,dn.contains=nn.prototype.contains,dn.removeEventListener=Jt,dn.addEventListener=Xt,dn.dispatchEvent=Wt;var pn,fn=new ln,hn=void 0!==u?u:"undefined"!=typeof window?window:{};"undefined"!=typeof document?pn=document:(pn=hn["__GLOBAL_DOCUMENT_CACHE@4"])||(pn=hn["__GLOBAL_DOCUMENT_CACHE@4"]=fn);var gn=pn,vn=function(e,t,n){for(var r in t){var o=t[r];void 0===o?mn(e,r,o,n):dt(o)?(mn(e,r,o,n),o.hook&&o.hook(e,r,n?n[r]:void 0)):Bt(o)?yn(e,t,n,r,o):e[r]=o}};function mn(e,t,n,r){if(r){var o=r[t];if(dt(o))o.unhook&&o.unhook(e,t,n);else if("attributes"===t)for(var i in o)e.removeAttribute(i);else if("style"===t)for(var u in o)e.style[u]="";else e[t]="string"==typeof o?"":null}}function yn(e,t,n,r,o){var i=n?n[r]:void 0;if("attributes"!==r)if(i&&Bt(i)&&bn(i)!==bn(o))e[r]=o;else{Bt(e[r])||(e[r]={});var u="style"===r?"":void 0;for(var a in o){var s=o[a];e[r][a]=void 0===s?u:s}}else for(var l in o){var c=o[l];void 0===c?e.removeAttribute(l):e.setAttribute(l,c)}}function bn(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}var En=function e(t,n){var r=n&&n.document||gn,o=n?n.warn:null;if(t=Ft(t).a,lt(t))return t.init();if(kt(t))return r.createTextNode(t.text);if(!st(t))return o&&o("Item is not a valid virtual dom node",t),null;var i=null===t.namespace?r.createElement(t.tagName):r.createElementNS(t.namespace,t.tagName),u=t.properties;vn(i,u);for(var a=t.children,s=0;s<a.length;s++){var l=e(a[s],n);l&&i.appendChild(l)}return i};var An={},wn=function(e,t,n,r){return n&&0!==n.length?(n.sort(Cn),function e(t,n,r,o,i){if(o=o||{},t){xn(r,i,i)&&(o[i]=t);var u=n.children;if(u)for(var a=t.childNodes,s=0;s<n.children.length;s++){i+=1;var l=u[s]||An,c=i+(l.count||0);xn(r,i,c)&&e(a[s],l,r,o,i),i=c}}return o}(e,t,n,r,0)):{}};function xn(e,t,n){if(0===e.length)return!1;for(var r,o,i=0,u=e.length-1;i<=u;){if(o=e[r=(u+i)/2>>0],i===u)return o>=t&&o<=n;if(o<t)i=r+1;else{if(!(o>n))return!0;u=r-1}}return!1}function Cn(e,t){return e>t?1:-1}var On=function(e,t){if(lt(e)&<(t))return"name"in e&&"name"in t?e.id===t.id:e.init===t.init;return!1};var kn=function(e,t,n){var r=e.type,o=e.vNode,i=e.patch;switch(r){case Ct.REMOVE:return function(e,t){var n=e.parentNode;n&&n.removeChild(e);return Fn(e,t),null}(t,o);case Ct.INSERT:return function(e,t,n){var r=n.render(t,n);e&&e.appendChild(r);return e}(t,i,n);case Ct.VTEXT:return function(e,t,n,r){var o;if(3===e.nodeType)e.replaceData(0,e.length,n.text),o=e;else{var i=e.parentNode;o=r.render(n,r),i&&o!==e&&i.replaceChild(o,e)}return o}(t,0,i,n);case Ct.WIDGET:return function(e,t,n,r){var o,i=On(t,n);o=i?n.update(t,e)||e:r.render(n,r);var u=e.parentNode;u&&o!==e&&u.replaceChild(o,e);i||Fn(e,t);return o}(t,o,i,n);case Ct.VNODE:return function(e,t,n,r){var o=e.parentNode,i=r.render(n,r);o&&i!==e&&o.replaceChild(i,e);return i}(t,0,i,n);case Ct.ORDER:return function(e,t){for(var n,r,o,i=e.childNodes,u={},a=0;a<t.removes.length;a++)r=t.removes[a],n=i[r.from],r.key&&(u[r.key]=n),e.removeChild(n);for(var s=i.length,l=0;l<t.inserts.length;l++)o=t.inserts[l],n=u[o.key],e.insertBefore(n,o.to>=s++?null:i[o.to])}(t,i),t;case Ct.PROPS:return vn(t,i,o.properties),t;case Ct.THUNK:return function(e,t){e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e);return t}(t,n.patch(t,i,n));default:return t}};function Fn(e,t){"function"==typeof t.destroy&<(t)&&t.destroy(e)}function Dn(e,t,n){var r=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===r.length)return e;var o=wn(e,t.a,r),i=e.ownerDocument;n.document||i===gn||(n.document=i);for(var u=0;u<r.length;u++){var a=r[u];e=Bn(e,o[a],t[a],n)}return e}function Bn(e,t,n,r){if(!t)return e;var o;if(xt(n))for(var i=0;i<n.length;i++)o=kn(n[i],t,r),t===e&&(e=o);else o=kn(n,t,r),t===e&&(e=o);return e}var Sn=function e(t,n,r){return(r=r||{}).patch=r.patch&&r.patch!==e?r.patch:Dn,r.render=r.render||En,r.patch(t,n,r)},jn=s((function(e,t){e.exports=function(){var e=o((function(e){return e})),t=i(o((function(e){var t=e.length;return new e.constructor(t)})),["BYTES_PER_ELEMENT","get","set","slice","subarray","buffer","length","byteOffset","byteLength"]);function n(e){return"[object "+e+"]"}var r={};function o(e){return function(t,n,r){n.push(t);var o=e(t);return r.push(o),o}}function i(e,t){return function(n,r,o){var i=this;return Object.getOwnPropertyNames(n).filter((function(e){return!t||-1===t.indexOf(e)})).reduce((function(e,t){var u=r.indexOf(n[t]);return e[t]=-1===u?i(n[t]):o[u],e}),e(n,r,o))}}return r[n("RegExp")]=o((function(e){return new RegExp(e)})),r[n("Date")]=o((function(e){return new Date(e.getTime())})),r[n("Function")]=i(o((function(e){return n=function(e){for(var t=[],n=1;n<=e;n++)t.push("arg"+n);return t}((t=e).length),r="return false || function ",r+=t.name+"(",r+=n.join(", ")+") {\n",r+="return fn.apply(this, arguments);\n",r+="};",Function("fn",r)(t);var t,n,r})),["caller","arguments"]),r[n("Object")]=i(o((function(e){return Object.create(Object.getPrototypeOf(e))}))),r[n("Array")]=i(o((function(e){return[]}))),["Null","Undefined","Number","String","Boolean"].map(n).forEach((function(t){r[t]=e})),["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].map(n).forEach((function(e){r[e]=t})),function(e){var t=[],n=[];return function e(o){var i=Object.prototype.toString.call(o);return r[i].call(e,o,t,n)}(e)}}()})),Ln=function(){return Je((function e(){Xe(this,e)}),[{key:"start",value:function(){this.started=(new Date).getTime()}},{key:"end",value:function(){return this.ended=(new Date).getTime(),this.ended-this.started}}])}(),Pn=/["'&<>]/,Nn=function(e){var t,n=""+e,r=Pn.exec(n);if(!r)return n;var o="",i=0,u=0;for(i=r.index;i<n.length;i++){switch(n.charCodeAt(i)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}u!==i&&(o+=n.substring(u,i)),u=i+1,o+=t}return u!==i?o+n.substring(u,i):o};var Tn=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)In.call(n,r)&&(e[r]=n[r])}return e},In=Object.prototype.hasOwnProperty;var Rn=Mn;function Mn(e){if(!(this instanceof Mn))return new Mn(e);this.value=e}Mn.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)};var zn=qn;function qn(e,t){if(!(this instanceof qn))return new qn(e,t);this.namespace=e,this.value=t}qn.prototype.hook=function(e,t,n){n&&"AttributeHook"===n.type&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},qn.prototype.unhook=function(e,t,n){if(!n||"AttributeHook"!==n.type||n.namespace!==this.namespace){var r=t.indexOf(":"),o=r>-1?t.substr(r+1):t;e.removeAttributeNS(this.namespace,o)}},qn.prototype.type="AttributeHook";var Un,Hn,_n={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}},Vn=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g,Kn=/([\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])([\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,Wn=/([\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([^\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,Xn=function(e,t,n){if(null==e)return"";return n=n||" ",function(e,t){var n=_n[t];return e=null==e?"":String(e),n&&(e=e.replace(n.regexp,(function(e){return n.map[e]}))),e.toLowerCase()}(e=String(e).replace(Kn,"$1 $2").replace(Wn,"$1 $2").replace(Vn,(function(e,t,r){return 0===t||t===r.length-e.length?"":n})),t)},Jn=function(e,t){return Xn(e,t,"-")},$n={BOOLEAN:1,OVERLOADED_BOOLEAN:2},Yn={attributeTypes:$n,properties:{accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:$n.BOOLEAN,allowTransparency:!0,alt:!0,async:$n.BOOLEAN,autocomplete:!0,autofocus:$n.BOOLEAN,autoplay:$n.BOOLEAN,cellPadding:!0,cellSpacing:!0,charset:!0,checked:$n.BOOLEAN,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:$n.BOOLEAN,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,defer:$n.BOOLEAN,dir:!0,disabled:$n.BOOLEAN,download:$n.OVERLOADED_BOOLEAN,draggable:!0,enctype:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:$n.BOOLEAN,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:$n.BOOLEAN,href:!0,hreflang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,label:!0,lang:!0,list:!0,loop:$n.BOOLEAN,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,multiple:$n.BOOLEAN,muted:$n.BOOLEAN,name:!0,noValidate:$n.BOOLEAN,open:!0,pattern:!0,placeholder:!0,poster:!0,preload:!0,radiogroup:!0,readOnly:$n.BOOLEAN,rel:!0,required:$n.BOOLEAN,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scrolling:!0,seamless:$n.BOOLEAN,selected:$n.BOOLEAN,shape:!0,size:!0,sizes:!0,span:!0,spellcheck:!0,src:!0,srcdoc:!0,srcset:!0,start:!0,step:!0,style:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,autocapitalize:!0,autocorrect:!0,itemProp:!0,itemScope:$n.BOOLEAN,itemType:!0,property:!0},attributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}},Gn=Yn.attributeTypes,Zn=Yn.properties,Qn=Yn.attributeNames,er=(Un=function(e){return Nn(e)+'="'},Hn={},function(e){return Hn.hasOwnProperty(e)?Hn[e]:Hn[e]=Un.call(this,e)}),tr=function(e,t,n){if(Zn.hasOwnProperty(e)){if(function(e,t){var n=Zn[e];return null==t||n===Gn.BOOLEAN&&!t||n===Gn.OVERLOADED_BOOLEAN&&!1===t}(e,t))return"";e=(Qn[e]||e).toLowerCase();var r=Zn[e];return r===Gn.BOOLEAN||r===Gn.OVERLOADED_BOOLEAN&&!0===t?Nn(e):er(e)+Nn(t)+'"'}if(n)return null==t?"":er(e)+Nn(t)+'"';return null};var nr={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},rr=or;function or(e,t){return e?(ct(e)&&(e=e.render()),lt(e)&&e.render&&(e=e.render()),st(e)?function(e){var t=e.properties,n="<"+e.tagName.toLowerCase();for(var r in t){var o=t[r];if(null!=o)if("attributes"!=r)if("dataset"!=r){if("style"==r){var i="";for(var u in o=Tn({},o))i+=Jn(u)+": "+o[u]+"; ";o=i.trim()}if(o instanceof Rn||o instanceof zn)n+=" "+tr(r,o.value,!0);else{var a=tr(r,o);a&&(n+=" "+a)}}else for(var s in o=Tn({},o))n+=" "+tr("data-"+Jn(s),o[s],!0);else for(var l in o=Tn({},o))n+=" "+tr(l,o[l],!0)}return n+">"}(e)+function(e){var t=e.properties.innerHTML;if(null!=t)return t;var n="";if(e.children&&e.children.length)for(var r=0,o=e.children.length;r<o;r++){var i=e.children[r];n+=or(i,e)}return n}(e)+function(e){var t=e.tagName.toLowerCase();return nr[t]?"":"</"+t+">"}(e):kt(e)?!t||"script"!==t.tagName.toLowerCase()&&"style"!==t.tagName.toLowerCase()?Nn(String(e.text)):String(e.text):""):""}var ir,ur={abbr:"abbr",accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",async:"async",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charset",checked:"checked",cite:"cite",class:"className",cols:"cols",colspan:"colSpan",command:"command",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",dropzone:"dropzone",enctype:"encType",for:"htmlFor",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameBorder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",ismap:"isMap",itemid:"itemId",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",manifest:"manifest",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",ping:"ping",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radioGroup",readonly:"readOnly",rel:"rel",required:"required",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",sortable:"sortable",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srcset:"srcSet",start:"start",step:"step",style:"style",tabindex:"tabIndex",target:"target",title:"title",translate:"translate",type:"type",typemustmatch:"typeMustMatch",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},ar="http://www.w3.org/1999/xlink",sr="http://www.w3.org/XML/1998/namespace",lr={about:null,"accent-height":null,accumulate:null,additive:null,"alignment-baseline":null,alphabetic:null,amplitude:null,"arabic-form":null,ascent:null,attributeName:null,attributeType:null,azimuth:null,bandwidth:null,baseFrequency:null,baseProfile:null,"baseline-shift":null,bbox:null,begin:null,bias:null,by:null,calcMode:null,"cap-height":null,class:null,clip:null,"clip-path":null,"clip-rule":null,clipPathUnits:null,color:null,"color-interpolation":null,"color-interpolation-filters":null,"color-profile":null,"color-rendering":null,content:null,contentScriptType:null,contentStyleType:null,cursor:null,cx:null,cy:null,d:null,datatype:null,defaultAction:null,descent:null,diffuseConstant:null,direction:null,display:null,divisor:null,"dominant-baseline":null,dur:null,dx:null,dy:null,edgeMode:null,editable:null,elevation:null,"enable-background":null,end:null,"ev:event":"http://www.w3.org/2001/xml-events",event:null,exponent:null,externalResourcesRequired:null,fill:null,"fill-opacity":null,"fill-rule":null,filter:null,filterRes:null,filterUnits:null,"flood-color":null,"flood-opacity":null,focusHighlight:null,focusable:null,"font-family":null,"font-size":null,"font-size-adjust":null,"font-stretch":null,"font-style":null,"font-variant":null,"font-weight":null,format:null,from:null,fx:null,fy:null,g1:null,g2:null,"glyph-name":null,"glyph-orientation-horizontal":null,"glyph-orientation-vertical":null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:null,height:null,"horiz-adv-x":null,"horiz-origin-x":null,"horiz-origin-y":null,id:null,ideographic:null,"image-rendering":null,in:null,in2:null,initialVisibility:null,intercept:null,k:null,k1:null,k2:null,k3:null,k4:null,kernelMatrix:null,kernelUnitLength:null,kerning:null,keyPoints:null,keySplines:null,keyTimes:null,lang:null,lengthAdjust:null,"letter-spacing":null,"lighting-color":null,limitingConeAngle:null,local:null,"marker-end":null,"marker-mid":null,"marker-start":null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:null,mediaTime:null,method:null,min:null,mode:null,name:null,"nav-down":null,"nav-down-left":null,"nav-down-right":null,"nav-left":null,"nav-next":null,"nav-prev":null,"nav-right":null,"nav-up":null,"nav-up-left":null,"nav-up-right":null,numOctaves:null,observer:null,offset:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,"overline-position":null,"overline-thickness":null,"panose-1":null,path:null,pathLength:null,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,playbackOrder:null,"pointer-events":null,points:null,pointsAtX:null,pointsAtY:null,pointsAtZ:null,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:null,r:null,radius:null,refX:null,refY:null,rel:null,"rendering-intent":null,repeatCount:null,repeatDur:null,requiredExtensions:null,requiredFeatures:null,requiredFonts:null,requiredFormats:null,resource:null,restart:null,result:null,rev:null,role:null,rotate:null,rx:null,ry:null,scale:null,seed:null,"shape-rendering":null,slope:null,snapshotTime:null,spacing:null,specularConstant:null,specularExponent:null,spreadMethod:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,"stop-color":null,"stop-opacity":null,"strikethrough-position":null,"strikethrough-thickness":null,string:null,stroke:null,"stroke-dasharray":null,"stroke-dashoffset":null,"stroke-linecap":null,"stroke-linejoin":null,"stroke-miterlimit":null,"stroke-opacity":null,"stroke-width":null,surfaceScale:null,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:null,tableValues:null,target:null,targetX:null,targetY:null,"text-anchor":null,"text-decoration":null,"text-rendering":null,textLength:null,timelineBegin:null,title:null,to:null,transform:null,transformBehavior:null,type:null,typeof:null,u1:null,u2:null,"underline-position":null,"underline-thickness":null,unicode:null,"unicode-bidi":null,"unicode-range":null,"units-per-em":null,"v-alphabetic":null,"v-hanging":null,"v-ideographic":null,"v-mathematical":null,values:null,version:null,"vert-adv-y":null,"vert-origin-x":null,"vert-origin-y":null,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,"word-spacing":null,"writing-mode":null,x:null,"x-height":null,x1:null,x2:null,xChannelSelector:null,"xlink:actuate":ar,"xlink:arcrole":ar,"xlink:href":ar,"xlink:role":ar,"xlink:show":ar,"xlink:title":ar,"xlink:type":ar,"xml:base":sr,"xml:id":sr,"xml:lang":sr,"xml:space":sr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},cr=function(e,t){if(!e)return dr(document.createTextNode(""));if("string"==typeof e){if(!("DOMParser"in window))throw new Error("DOMParser is not available, so parsing string to DOM node is not possible.");var n=(ir=ir||new DOMParser).parseFromString(e,"text/html");e=n.body.firstChild?n.getElementsByTagName("body")[0].firstChild:n.head.firstChild&&("TITLE"!==n.head.firstChild.tagName||n.title)?n.head.firstChild:n.firstChild&&"HTML"!==n.firstChild.tagName?n.firstChild:document.createTextNode("")}if("object"!=typeof e||!e||!e.nodeType)throw new Error("invalid dom node",e);return dr(e,t)};function dr(e,t){return 3===e.nodeType?function(e){return new vt(e.nodeValue)}(e):1===e.nodeType||9===e.nodeType?function(e,t){var n="http://www.w3.org/1999/xhtml"!==e.namespaceURI?e.namespaceURI:null,r=t&&e.getAttribute(t)?e.getAttribute(t):null;return new pt(e.tagName,function(e){var t,n,r={};if(!e.hasAttributes())return r;e.namespaceURI&&"http://www.w3.org/1999/xhtml"!==e.namespaceURI&&(t=e.namespaceURI);for(var o=0;o<e.attributes.length;o++)(n="style"==e.attributes[o].name?hr(e):t?fr(e.attributes[o]):pr(e.attributes[o])).ns?r[n.name]={namespace:n.ns,value:n.value}:n.isAttr?(r.attributes||(r.attributes={}),r.attributes[n.name]=n.value):r[n.name]=n.value;return r}(e),function(e,t){for(var n=[],r=0;r<e.childNodes.length;r++)n.push(dr(e.childNodes[r],t));return n}(e,t),r,n)}(e,t):new vt("")}function pr(e){var t,n,r;return 0===(t=ur[e.name]?ur[e.name]:e.name).indexOf("data-")||0===t.indexOf("aria-")?(n=e.value,r=!0):n=e.value,{name:t,value:n,isAttr:r||!1}}function fr(e){return{name:e.name,value:e.value,ns:lr[e.name]||""}}function hr(e){for(var t=e.style,n={},r=0;r<t.length;++r){var o=t.item(r);n[o]=String(t[o]),n[o].indexOf("url")>-1&&(n[o]=n[o].replace(/\"/g,""))}return{name:"style",value:n}}var gr=s((function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}));a(gr);var vr=s((function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,u,a=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports}));a(vr);var mr=s((function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}));a(mr);var yr=s((function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return mr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mr(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}));a(yr);var br=s((function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}));a(br);var Er=a(s((function(e){e.exports=function(e,t){return gr(e)||vr(e,t)||yr(e,t)||br()},e.exports.__esModule=!0,e.exports.default=e.exports})));function Ar(e,t,n){var r;return function(){var o=this,i=arguments,u=function(){r=null,n||e.apply(o,i)},a=n&&!r;clearTimeout(r),r=setTimeout(u,t),a&&e.apply(o,i)}}function wr(e,t){return e.properties&&e.properties.attributes&&e.properties.attributes[t]}function xr(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var u=r(i.shift());!e[u]&&n&&(e[u]=new n),e=e[u]}return o()?{}:{obj:e,k:r(i.shift())}}function Cr(e,t,n){var r=xr(e,t,Object);r.obj[r.k]=n}function Or(e,t){var n=xr(e,t),r=n.obj,o=n.k;if(r)return r[o]}function kr(){var e=location.pathname;if("/"===e)return"root";var t=e.split("/"),n="root";return t.forEach((function(e){e&&(n+="_".concat(e))})),n}var Fr=["SVG","RECT","PATH"],Dr=function(e){if(e.namespace)e.ns.push(e.namespace),e.defaultNS=e.namespace;else if(e.namespaceFromPath){var t=kr();e.ns.push(t),e.defaultNS=t}return e.ns.length||(e.ns=["translation"]),e.ignoreTags&&(e.ignoreTags=e.ignoreTags.map((function(e){return Fr.indexOf(e)>-1?e.toLowerCase():e.toUpperCase()}))),e.ignoreCleanIndentFor&&(e.ignoreCleanIndentFor=e.ignoreCleanIndentFor.map((function(e){return e.toUpperCase()}))),e.inlineTags&&(e.inlineTags=e.inlineTags.map((function(e){return e.toUpperCase()}))),e.ignoreInlineOn&&(e.ignoreInlineOn=e.ignoreInlineOn.map((function(e){return e.toUpperCase()}))),e.mergeTags&&(e.mergeTags=e.mergeTags.map((function(e){return e.toUpperCase()}))),e.translateAttributes=e.translateAttributes.reduce((function(e,t){var n={attr:t};if(t.indexOf("#")>-1){var r=t.split("#"),o=Er(r,2),i=o[0],u=o[1];if(n.attr=i,u.indexOf(".")>-1){var a=u.split("."),s=Er(a,2),l=s[0],c=s[1];n.ele=l.toUpperCase(),n.cond=c.toLowerCase().split("=")}else u.indexOf("=")>-1?n.cond=u.toLowerCase().split("="):n.ele=u.toUpperCase()}return e.push(n),e}),[]),e};function Br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Br(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retranslate:!1};return!(!t||!t.retranslate)||(!e.properties||!e.properties.attributes||""!==e.properties.attributes.localized)}function Lr(e){var t=!e.properties||!e.properties.attributes||""!==e.properties.attributes.translated;(t&&e.tagName&&ne.options.ignoreTags.indexOf(e.tagName)>-1&&(t=!1),t&&ne.options.ignoreClasses&&e.properties&&e.properties.className)&&e.properties.className.split(" ").forEach((function(e){t&&ne.options.ignoreClasses.indexOf(e)>-1&&(t=!1)}));return t&&ne.options.ignoreIds&&ne.options.ignoreIds.indexOf(e.properties&&e.properties.id)>-1&&(t=!1),t}function Pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.trim(),o=n||e.trim();return t.defaultValue||(t.defaultValue=e),r&&!ne.options.ignoreWithoutKey||r&&ne.options.ignoreWithoutKey&&n?ne.t(o,t):e}var Nr=["src","href"],Tr=new RegExp("%7B%7B(.+?)%7D%7D","g");function Ir(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;return t?(ne.options.translateAttributes.forEach((function(u){if(!u.ele||e.tagName===u.ele){if(u.cond&&2===u.cond.length){var a=Or(t,u.cond[0])||Or(t.attributes,u.cond[0]);if(!a||a!==u.cond[1])return}var s=!1,l=Or(t,u.attr);if(l||(l=Or(t.attributes,u.attr))&&(s=!0),i.retranslate){var c=e.properties&&e.properties&&e.properties.attributes["".concat(u.attr,"-i18next-orgval")];c||(c=l),l=c}l&&(o&&(e.properties.attributes["".concat(u.attr,"-i18next-orgval")]=l),Cr(s?t.attributes:t,u.attr,Pr(l,Sr({},n),r?"".concat(r,".").concat(u.attr):"")))}})),Nr.forEach((function(e){var o=Or(t,e);if(o&&(o=o.replace(/\{\{/g,"%7B%7B").replace(/\}\}/g,"%7D%7D")),o&&o.indexOf("%7B")>-1){var i=[];o.split(Tr).reduce((function(t,o,i){if(0===o.length)return t;if(i&&i%2!=0){var u=Pr(o,Sr({},n),r?"".concat(r,".").concat(e):"");u&&0==u.indexOf("http")&&t[i-1]&&0===t[i-1].indexOf("http")&&t.splice(i-1,1),t.push(u)}else t.push(o);return t}),i),i.length&&Cr(t,e,i.join(""))}})),t):t}function Rr(e,t){var n=wr(t,"i18next-options");if(n)try{n=JSON.parse(n)}catch(e){console.warn("failed parsing options on node",t)}return n&&n.inlineTags&&(n.inlineTags=n.inlineTags.map((function(e){return e.toUpperCase()}))),Sr(Sr({},e||{}),n||{})}function Mr(e,t){return ne.options.cleanIndent?e.replace(/\n +/g,t):e}function zr(e,t){if(!e.children||!e.children.length||ne.options.ignoreInlineOn.indexOf(e.tagName)>-1)return!1;if(ne.options.mergeTags.indexOf(e.tagName)>-1)return!0;var n=t.inlineTags||ne.options.inlineTags,r=t.additionalInlineTags?n.concat(t.additionalInlineTags):n,o=!0,i=!1;return e.children.forEach((function(e){!e.text&&e.tagName&&r.indexOf(e.tagName.toUpperCase())<0&&(o=!1),e.tagName&&(i=!0)})),o&&i}function qr(e,t){var n=new Ln;n.start();var r=function e(t,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5?arguments[5]:void 0,a=Lr(t),s=jr(t,u),l=jr(t);n=Rr(n,t);var c=0===i?o:"";i>0&&o&&!ne.options.ignoreWithoutKey&&(c="".concat(o,".").concat(i));var d=wr(t,ne.options.keyAttr)||c,p=wr(t,"merge");if("false"!==p&&(""===p||zr(t,n))){if(a&&s){var f=new pt("I18NEXTIFYDUMMY",null,t.children),h=Mr(rr(f),"").replace("<i18nextifydummy>","").replace("</i18nextifydummy>","");if(u.retranslate){var g=t.properties&&t.properties.attributes&&t.properties.attributes["i18next-orgval"];g||(g=r&&r.properties&&r.properties.attributes&&r.properties.attributes["i18next-orgval-".concat(i)]),g||(g=h),h=g}var v="<i18nextifydummy>".concat(Pr(h,n,d),"</i18nextifydummy>"),m=cr((v||"").trim());t.children=m.children,l&&t.properties&&t.properties.attributes?t.properties.attributes["i18next-orgval"]=h:l&&r&&r.properties&&r.properties.attributes&&(r.properties.attributes["i18next-orgval-".concat(i)]=h),t.properties&&t.properties.attributes&&(t.properties.attributes.localized="")}return t}if(t.children&&t.children.forEach((function(r,o){(a&&s&&r.text||!r.text&&Lr(r))&&e(r,n,t,d,t.children.length>1?o+1:o,u)})),t.text&&!t.properties&&"Widget"===t.type)return t;if(a&&s){if(t.text){var y,b=t.text,E=t.text;if(u.retranslate){var A=t.properties&&t.properties.attributes&&t.properties.attributes["i18next-orgval"];A||(A=r&&r.properties&&r.properties.attributes&&r.properties.attributes["i18next-orgval-".concat(i)]),A||(A=t.text),b=A,E=A}var w=ne.options.ignoreCleanIndentFor.indexOf(r.tagName)>-1;if(!w&&(b=Mr(b,"\n"),ne.options.cleanWhitespace)){var x=/^\s*(.*[^\s])\s*$/g;y=x.exec(b)}if(!w&&y&&y.length>1&&ne.options.cleanWhitespace){var C=Pr(y[1],n,d||"");t.text=b.replace(y[1],C)}else t.text=Pr(b,n,d||"");l&&t.properties&&t.properties.attributes?E&&(t.properties.attributes["i18next-orgval"]=E):l&&r&&r.properties&&r.properties.attributes&&E&&(r.properties.attributes["i18next-orgval-".concat(i)]=E)}t.properties&&(t.properties=Ir(t,t.properties,n,d,l,u)),t.properties&&t.properties.attributes&&(t.properties.attributes.localized="")}return t}(e,null,null,null,null,{retranslate:t});return ne.services.logger.log("localization took: ".concat(n.end(),"ms")),r}function Ur(e,t){var n={};return n.render=function(n){var r=function(e){var t=new Ln;t.start();var n=Et(e);return ne.services.logger.log("virtualization took: ".concat(t.end(),"ms")),n}(e),o=qr(jn(r),n),i=zt(r,o);i[0]&&t.reset(),e=Sn(e,i)},n.debouncedRender=Ar(n.render,200),n}var Hr={};var _r=Ar((function(){ne.services.logger.log("missing resources: \n"+JSON.stringify(Hr,null,2))}),2e3);function Vr(e,t,n,r){"string"==typeof e&&(e=[e]),e||(e=[]),e.forEach((function(e){Cr(Hr,[e,t,n],r),_r()})),ne.services.backendConnector&&ne.services.backendConnector.saveMissing&&ne.services.backendConnector.saveMissing(e,t,n,r)}function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xr(){var e=document.getElementById("i18nextify"),t=e&&(e.getAttribute("supportedlngs")||e.getAttribute("supportedLngs"))||void 0;"string"==typeof t&&(t=t.split(",").map((function(e){return e.trim()})));var n={autorun:!0,ele:document.body,keyAttr:"i18next-key",ignoreWithoutKey:!1,ignoreTags:["SCRIPT"],ignoreIds:[],ignoreClasses:[],translateAttributes:["placeholder","title","alt","value#input.type=button","value#input.type=submit"],mergeTags:[],inlineTags:[],ignoreInlineOn:[],cleanIndent:!0,ignoreCleanIndentFor:["PRE","CODE"],cleanWhitespace:!0,nsSeparator:"#||#",keySeparator:"#|#",debug:window.location.search&&window.location.search.indexOf("debug=true")>-1,saveMissing:window.location.search&&window.location.search.indexOf("saveMissing=true")>-1,namespace:e&&e.getAttribute("namespace")||!1,namespaceFromPath:e&&(e.getAttribute("namespacefrompath")||e.getAttribute("namespaceFromPath"))||!1,missingKeyHandler:Vr,ns:[],supportedLngs:t,load:e&&e.getAttribute("load")||void 0,fallbackLng:e&&(e.getAttribute("fallbacklng")||e.getAttribute("fallbackLng"))||void 0,onInitialTranslate:function(){}},r=e&&(e.getAttribute("loadpath")||e.getAttribute("loadPath"))||void 0,o=e&&(e.getAttribute("addpath")||e.getAttribute("addPath"))||void 0;return(r||o)&&(n.backend={},r&&(n.backend.loadPath=r),o&&(n.backend.addPath=o)),n}var Jr=!1,$r=!1;at((function(){Jr=!0,$r||Zr()})),ne.use(ke),ne.use(We);var Yr={};var Gr=[];function Zr(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function n(n){for(var r=0;r<n.length;r++){var o=n[r];if(t.ignoreTags.indexOf(o.tagName)<0&&t.ignoreIds.indexOf(o.id)<0&&t.ignoreClasses.indexOf(o.className)<0&&!o.attributes.localized&&!o.attributes.translated){var i=Ur(o,e);Gr.push(i),i.render()}}}function r(e,n,o){var i=!0;setTimeout((function(){for(var n=0;n<e.length;n++){var u=e[n];if(t.ignoreTags.indexOf(u.tagName)<0&&t.ignoreIds.indexOf(u.id)<0&&t.ignoreClasses.indexOf(u.className)<0&&!u.attributes.localized&&!u.attributes.translated){i&&r(e,100,o),i=!1;break}}i&&o()}),n)}t=Wr(Wr(Wr({},Xr()),Yr),t),(t=Dr(t)).ele||(delete t.ele,Yr=t),$r=!0;var o=1;function i(){if(!(o-=1)){t.ele||(t.ele=document.body);var i=t.ele.children;e=new tt(t.ele),n(i),e.on("changed",(function(e){Gr.forEach((function(e){return e.debouncedRender()})),n(i)})),r(i,0,(function(){if(t.ele.style&&"none"===t.ele.style.display&&(t.ele.style.display="block"),window.document.title){var e=window.document.getElementsByTagName("title").length>0&&window.document.getElementsByTagName("title")[0].getAttribute(ne.options.keyAttr);window.document.title=ne.t(e||window.document.title)}if(window.document.querySelector('meta[name="description"]')&&window.document.querySelector('meta[name="description"]').content){var n=window.document.querySelector('meta[name="description"]').getAttribute(ne.options.keyAttr)||window.document.querySelector('meta[name="description"]').content;window.document.querySelector('meta[name="description"]').setAttribute("content",ne.t(n))}t.onInitialTranslate()}))}}if(Jr||o++,!1===t.autorun&&o++,ne.on("languageChanged",(function(e){window.document.documentElement.lang=e})),ne.init(t,i),Jr||at(i),!1===t.autorun)return{start:i}}var Qr={init:Zr,i18next:ne,changeNamespace:function(e){!e&&Yr.namespaceFromPath&&(e=kr()),Yr.ns.push(e),Yr.defaultNS=e,ne.loadNamespaces(Yr.ns,(function(){ne.setDefaultNamespace(e)}))},forceRerender:function(){Gr.forEach((function(e){e.render(!0)}))}},eo=[],to=eo.forEach,no=eo.slice;function ro(e){return to.call(no.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function oo(e,t,n){var r;return function(){var o=this,i=arguments,u=function(){r=null,n||e.apply(o,i)},a=n&&!r;clearTimeout(r),r=setTimeout(u,t),a&&e.apply(o,i)}}function io(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(!e)return{};var i=r(o.shift());!e[i]&&n&&(e[i]=new n),e=e[i]}return e?{obj:e,k:r(o.shift())}:{}}function uo(e,t,n){var r=io(e,t,Object);r.obj[r.k]=n}function ao(e,t){var n=io(e,t),r=n.obj,o=n.k;if(r)return r[o]}var so=new RegExp("{{(.+?)}}","g");function lo(e,t,n){var r,o,i;for(;r=so.exec(e);)"string"!=typeof(o=r[1].trim())&&(o=null==(i=o)?"":""+i),o||(o=""),o=o.replace(/\$/g,"$$$$"),e=e.replace(r[0],t[o]||o),so.lastIndex=0;return e}function co(e,t){return t.reduce((function(t,n){if(t)return t;if(!e||!e[n]||"string"!=typeof e[n]||!e[n].toLowerCase()===n.toLowerCase()){var r='i18next-locize-backend :: got "'.concat(e[n],'" in options for ').concat(n," which is invalid.");return console.warn(r),r}return!1}),!1)}function po(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function fo(e){return(fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ho,go,vo="function"==typeof fetch?fetch:void 0;if("undefined"!=typeof global&&global.fetch?vo=global.fetch:"undefined"!=typeof window&&window.fetch&&(vo=window.fetch),"function"!=typeof XMLHttpRequest&&"object"!==("undefined"==typeof XMLHttpRequest?"undefined":fo(XMLHttpRequest))||("undefined"!=typeof global&&global.XMLHttpRequest?ho=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(ho=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?go=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(go=window.ActiveXObject)),"function"!=typeof vo&&(vo=void 0),!vo&&!ho&&!go)try{import("cross-fetch").then((function(e){vo=e.default})).catch((function(){}))}catch(e){}var mo={},yo=function(e,t,n,r){"function"==typeof n&&(r=n,n=void 0),r=r||function(){};var o="undefined"==typeof window&&e.useCacheLayer;if(o&&!n&&!e.noCache&&mo[t]&&mo[t].expires>Date.now())return r(null,mo[t].data);var i=r;return r=function(e,r){if(o&&!e&&r&&!n&&r.cacheControl){var u=function(e){if(!e)return 0;var t=e.match(/max-age=([0-9]+)/);return t?parseInt(t[1],10):0}(r.cacheControl);u>0&&(mo[t]={data:r,expires:Date.now()+1e3*u})}i(e,r)},!n&&e.noCache&&"standard"===e.cdnType&&(t+=(t.indexOf("?")>=0?"&":"?")+"cache=no"),vo?function(e,t,n,r){var o={};"undefined"==typeof window&&"undefined"!=typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-locize-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),e.authorize&&e.apiKey&&(o.Authorization=e.apiKey),(n||e.setContentTypeJSON)&&(o["Content-Type"]="application/json");var i=function(t){var n=t.headers&&"Error from cloudfront"===t.headers.get("x-cache");if(!("standard"!==e.cdnType||404!==t.status||t.headers&&t.headers.get("x-cache")))return r(null,{status:200,data:"{}",resourceNotExisting:n=!0});if(!t.ok)return r(t.statusText||"Error",{status:t.status,resourceNotExisting:n});var o=t.headers&&t.headers.get("cache-control");t.text().then((function(e){r(null,{status:t.status,data:e,resourceNotExisting:n,cacheControl:o})})).catch(r)};"function"==typeof fetch?fetch(t,{method:n?"POST":"GET",body:n?JSON.stringify(n):void 0,headers:o}).then(i).catch(r):vo(t,{method:n?"POST":"GET",body:n?JSON.stringify(n):void 0,headers:o}).then(i).catch(r)}(e,t,n,r):"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":fo(XMLHttpRequest))||"function"==typeof ActiveXObject?function(e,t,n,r){try{var o=ho?new ho:new go("MSXML2.XMLHTTP.3.0");o.open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.authorize&&e.apiKey&&o.setRequestHeader("Authorization",e.apiKey),(n||e.setContentTypeJSON)&&o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){var t="Error from cloudfront"===o.getResponseHeader("x-cache");if("standard"===e.cdnType&&404===o.status&&!o.getResponseHeader("x-cache"))return t=!0,o.readyState>3&&r(null,{status:200,data:"{}",resourceNotExisting:t});var n=o.getResponseHeader("Cache-Control");o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText,resourceNotExisting:t,cacheControl:n})},o.send(JSON.stringify(n))}catch(e){console&&console.log(e)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function bo(e){return(bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ao(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wo(r.key),r)}}function wo(e){var t=function(e,t){if("object"!=bo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=bo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bo(t)?t:t+""}var xo,Co=function(e){return e||(e="standard"),{loadPath:"https://api".concat("standard"===e?".lite":"",".locize.app/{{projectId}}/{{version}}/{{lng}}/{{ns}}"),privatePath:"https://api".concat("standard"===e?".lite":"",".locize.app/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}"),getLanguagesPath:"https://api".concat("standard"===e?".lite":"",".locize.app/languages/{{projectId}}"),addPath:"https://api".concat("standard"===e?".lite":"",".locize.app/missing/{{projectId}}/{{version}}/{{lng}}/{{ns}}"),updatePath:"https://api".concat("standard"===e?".lite":"",".locize.app/update/{{projectId}}/{{version}}/{{lng}}/{{ns}}")}},Oo=function(e){return e||(e="standard"),ro({cdnType:e,noCache:!1,referenceLng:"en",crossDomain:!0,setContentTypeJSON:!1,version:"latest",private:!1,translatedPercentageThreshold:.9,failLoadingOnEmptyJSON:!1,allowedAddOrUpdateHosts:["localhost"],onSaved:!1,reloadInterval:"undefined"==typeof window&&36e5,checkForProjectTimeout:3e3,storageExpiration:36e5,writeDebounce:5e3,useCacheLayer:"undefined"==typeof window},Co(e))};try{xo="undefined"!=typeof window&&null!==window.localStorage;var ko="notExistingLocizeProject";window.localStorage.setItem(ko,"foo"),window.localStorage.removeItem(ko)}catch(e){xo=!1}function Fo(e){var t=function(){},n=function(){};return xo?(t=function(e){window.localStorage.setItem("notExistingLocizeProject_".concat(e),Date.now())},n=function(t){var n=window.localStorage.getItem("notExistingLocizeProject_".concat(t));return!!n&&(!(Date.now()-n>e)||(window.localStorage.removeItem("notExistingLocizeProject_".concat(t)),!1))}):"undefined"!=typeof document&&(t=function(t){var n=new Date;n.setTime(n.getTime()+e);var r="; expires=".concat(n.toGMTString()),o="notExistingLocizeProject_".concat(t);try{document.cookie="".concat(o,"=").concat(Date.now()).concat(r,";path=/")}catch(e){}},n=function(e){var t="notExistingLocizeProject_".concat(e),n="".concat(t,"=");try{for(var r=document.cookie.split(";"),o=0;o<r.length;o++){for(var i=r[o];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(n))return!0}}catch(e){}return!1}),{setProjectNotExisting:t,isProjectNotExisting:n}}var Do=function(e,t,n){var r={};return t.authorize&&t.apiKey&&(r.Authorization=t.apiKey),(n||t.setContentTypeJSON)&&(r["Content-Type"]="application/json"),{method:n?"POST":"GET",url:e,headers:r,body:n}},Bo=function(e,t,n){if(1!==e.request.length)e.request(t,n);else try{var r=e.request(t);r&&"function"==typeof r.then?r.then((function(e){return n(null,e)})).catch(n):n(null,r)}catch(e){n(e)}};function So(e){var t=.25*e,n=Math.max(0,e-t),r=e+t;return Math.floor(n+Math.random()*(r-n))}var jo=function(e,t,n){return t&&Ao(e.prototype,t),n&&Ao(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;Eo(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",t&&t.projectId?this.init(null,t,r,n):this.init(t,n,r,o)}),[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;!n.referenceLng&&r.fallbackLng&&Array.isArray(r.fallbackLng)&&"dev"!==r.fallbackLng[0]&&(n.referenceLng=r.fallbackLng[0]),this.services=e;var i=ro({},n),u=ro(n,this.options||{}),a=Oo(u.cdnType);u.reloadInterval&&u.reloadInterval<3e5&&(console.warn("Your configured reloadInterval option is to low."),u.reloadInterval=a.reloadInterval),this.options=ro(n,this.options||{},a),this.allOptions=r,this.somethingLoaded=!1,this.isProjectNotExisting=!1,this.storage=Fo(this.options.storageExpiration);var s=Co(this.options.cdnType);Object.keys(s).forEach((function(e){i[e]||(t.options[e]=s[e])})),r.debug&&void 0===i.noCache&&"standard"===this.options.cdnType&&(this.options.noCache=!0),this.options.noCache&&"standard"!==this.options.cdnType&&console.warn("The 'noCache' option is not available for 'cdnType' '".concat(this.options.cdnType,"'!"));var l="undefined"!=typeof window&&window.location&&window.location.hostname;l?(this.isAddOrUpdateAllowed="function"==typeof this.options.allowedAddOrUpdateHosts?this.options.allowedAddOrUpdateHosts(l):this.options.allowedAddOrUpdateHosts.indexOf(l)>-1,e&&e.logger&&(r.saveMissing||r.updateMissing)&&(this.isAddOrUpdateAllowed?"localhost"!==l&&e.logger.warn('locize-backend: you are using the save or update missings feature from this host "'.concat(l,'".\nMake sure you will not use it in production!\nhttps://www.locize.com/docs/going-to-production')):e.logger.warn("function"==typeof this.options.allowedAddOrUpdateHosts?'locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "'.concat(l,'".'):'locize-backend: will not save or update missings because the host "'.concat(l,'" was not in the list of allowedAddOrUpdateHosts: ').concat(this.options.allowedAddOrUpdateHosts.join(", ")," (matches need to be exact).")))):this.isAddOrUpdateAllowed=!0,"function"==typeof o&&this.getOptions((function(e,r,i){if(e)return o(e);t.options.referenceLng=n.referenceLng||r.referenceLng||t.options.referenceLng,o(null,r,i)})),this.queuedWrites={pending:{}},this.debouncedProcess=oo(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval((function(){return t.reload()}),this.options.reloadInterval),"object"===bo(this.interval)&&"function"==typeof this.interval.unref&&this.interval.unref())}},{key:"reload",value:function(){var e=this,t=this.services||{logger:console},n=t.backendConnector,r=t.languageUtils,o=t.logger;if(n){var i=n.language;if(!i||"cimode"!==i.toLowerCase()){var u=[],a=function(e){r.toResolveHierarchy(e).forEach((function(e){u.indexOf(e)<0&&u.push(e)}))};a(i),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return a(e)})),u.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,i){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&i&&o.log("loaded namespace ".concat(e," for language ").concat(t),i),n.loaded("".concat(t,"|").concat(e),r,i)}))}))}))}}}},{key:"getLanguages",value:function(e){var t,n=this;e||(t=po(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)});var r=co(this.options,["projectId"]);if(r)return e(new Error(r)),t;var o=lo(this.options.getLanguagesPath,{projectId:this.options.projectId});return!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting?(e(new Error(this.isProjectNotExistingErrorMessage||"locize project ".concat(this.options.projectId," does not exist!"))),t):(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(e),this.getLanguagesCalls.length>1||this.loadUrl({},o,(function(e,t,r){if(!n.somethingLoaded&&r&&r.resourceNotExisting){n.isProjectNotExisting=!0;var o="locize project ".concat(n.options.projectId," does not exist!");n.isProjectNotExistingErrorMessage=o;var i="standard"===n.options.cdnType?"pro":"standard",u=lo(Co(i).getLanguagesPath,{projectId:n.options.projectId});n.loadUrl({},u,(function(e,t,r){e||!t||r&&r.resourceNotExisting?!n.somethingLoaded&&r&&r.resourceNotExisting&&(n.isProjectNotExisting=!0,n.storage.setProjectNotExisting(n.options.projectId)):(o+=" It seems you're using the wrong cdnType. Your locize project is configured to use \"".concat(i,'" but here you\'ve configured "').concat(n.options.cdnType,'".'),n.isProjectNotExistingErrorMessage=o);var u=new Error(o),a=n.getLanguagesCalls;n.getLanguagesCalls=[],a.forEach((function(e){return e(u)}))}))}else{if(t){n.loadedLanguages=Object.keys(t);var a=n.loadedLanguages.reduce((function(e,n){return t[n].isReferenceLanguage&&(e=n),e}),"");a&&n.options.referenceLng!==a&&(n.options.referenceLng=a)}n.somethingLoaded=!0;var s=n.getLanguagesCalls;n.getLanguagesCalls=[],s.forEach((function(n){return n(e,t)}))}})),t)}},{key:"getOptions",value:function(e){var t,n=this;return e||(t=po(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)}),this.getLanguages((function(t,r){if(t)return e(t);var o=Object.keys(r);if(!o.length)return e(new Error("was unable to load languages via API"));var i=o.reduce((function(e,t){var o=r[t];return o.translated[n.options.version]&&o.translated[n.options.version]>=n.options.translatedPercentageThreshold&&e.push(t),e}),[]),u=o.reduce((function(e,t){return t.indexOf("-")>-1||e}),!1);e(null,{fallbackLng:n.options.referenceLng,referenceLng:n.options.referenceLng,supportedLngs:0===i.length&&n.options.referenceLng?[n.options.referenceLng]:i,load:u?"all":"languageOnly"},r)})),t}},{key:"checkIfProjectExists",value:function(e){var t=this,n=(this.services||{logger:console}).logger;this.somethingLoaded?e&&e(null):this.alreadyRequestedCheckIfProjectExists?setTimeout((function(){return t.checkIfProjectExists(e)}),So(this.options.checkForProjectTimeout)):(this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages((function(t){t&&t.message&&t.message.indexOf("does not exist")>0&&n&&n.error(t.message),e&&e(t)})))}},{key:"checkIfLanguagesLoaded",value:function(e){var t=(this.services||{logger:console}).logger;this.loadedLanguages?e&&e(null):this.getLanguages((function(n){n&&n.message&&n.message.indexOf("does not exist")>0&&t&&t.error(n.message),e&&e(n)}))}},{key:"read",value:function(e,t,n){var r,o=this,i=(this.services||{logger:console}).logger,u={};if(this.options.private){var a=co(this.options,["projectId","version","apiKey"]);if(a)return n(new Error(a),!1);r=lo(this.options.privatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),u={authorize:!0}}else{var s=co(this.options,["projectId","version"]);if(s)return n(new Error(s),!1);r=lo(this.options.loadPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version})}if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){var l=new Error(this.isProjectNotExistingErrorMessage||"locize project ".concat(this.options.projectId," does not exist!"));return i&&i.error(l.message),void(n&&n(l))}if(this.warnedLanguages&&this.warnedLanguages.indexOf(e)>-1){var c=new Error('Will not continue to load language "'.concat(e,'" since it is not available in locize project ').concat(this.options.projectId,"!"));return i&&i.error(c.message),void(n&&n(c))}this.loadUrl(u,r,(function(t,r,u){var a=u&&u.resourceNotExisting;a||(o.hasResourcesForLng||(o.hasResourcesForLng={}),o.hasResourcesForLng[e]=!0),!a||o.hasResourcesForLng&&o.hasResourcesForLng[e]||setTimeout((function(){o.checkIfLanguagesLoaded((function(){o.loadedLanguages&&(o.loadedLanguages.indexOf(e)>-1||o.warnedLanguages&&o.warnedLanguages.indexOf(e)>-1||(o.warnedLanguages||(o.warnedLanguages=[]),o.warnedLanguages.push(e),i&&i.error('Language "'.concat(e,'" is not available in locize project ').concat(o.options.projectId,"!"))))}))}),So(o.options.checkForProjectTimeout)),o.somethingLoaded||(a?setTimeout((function(){return o.checkIfProjectExists()}),So(o.options.checkForProjectTimeout)):o.somethingLoaded=!0),n(t,r)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this;e=ro(e,this.options),"function"==typeof n&&(r=n,n=void 0),r=r||function(){};var i=function(e,n){var i,u,a=n&&n.resourceNotExisting;if(n&&(408===n.status||400===n.status))return r("failed loading "+t,!0,{resourceNotExisting:a});if(n&&(n.status>=500&&n.status<600||!n.status))return r("failed loading "+t,!0,{resourceNotExisting:a});if(n&&n.status>=400&&n.status<500)return r("failed loading "+t,!1,{resourceNotExisting:a});if(!n&&e&&e.message){var s=e.message.toLowerCase();if(["failed","fetch","network","load"].find((function(e){return s.indexOf(e)>-1})))return r("failed loading "+t+": "+e.message,!0,{resourceNotExisting:a})}if(e)return r(e,!1);try{i="string"==typeof n.data?JSON.parse(n.data):n.data}catch(e){u="failed parsing "+t+" to json"}return u?r(u,!1):o.options.failLoadingOnEmptyJSON&&!Object.keys(i).length?r("loaded result empty for "+t,!1,{resourceNotExisting:a}):void r(null,i,{resourceNotExisting:a})};if(!this.options.request||t.indexOf("/languages/".concat(e.projectId))>0)return yo(e,t,n,i);var u=Do(t,e,n);Bo(this.options,u,i)}},{key:"create",value:function(e,t,n,r,o,i){var u=this;"function"!=typeof o&&(o=function(){}),this.checkIfProjectExists((function(a){if(a)return o(a);var s=co(u.options,["projectId","version","apiKey","referenceLng"]);return s?o(new Error(s)):u.isAddOrUpdateAllowed?("string"==typeof e&&(e=[e]),e.filter((function(e){return e===u.options.referenceLng})).length<1&&u.services&&u.services.logger&&u.services.logger.warn('locize-backend: will not save missings because the reference language "'.concat(u.options.referenceLng,'" was not in the list of to save languages: ').concat(e.join(", ")," (open your site in the reference language to save missings).")),void e.forEach((function(e){e===u.options.referenceLng&&u.queue.call(u,u.options.referenceLng,t,n,r,o,i)}))):o("host is not allowed to create key.")}))}},{key:"update",value:function(e,t,n,r,o,i){var u=this;"function"!=typeof o&&(o=function(){}),this.checkIfProjectExists((function(a){if(a)return o(a);var s=co(u.options,["projectId","version","apiKey","referenceLng"]);return s?o(new Error(s)):u.isAddOrUpdateAllowed?(i||(i={}),"string"==typeof e&&(e=[e]),i.isUpdate=!0,void e.forEach((function(e){e===u.options.referenceLng&&u.queue.call(u,u.options.referenceLng,t,n,r,o,i)}))):o("host is not allowed to update key.")}))}},{key:"writePage",value:function(e,t,n,r){var o=lo(this.options.addPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),i=lo(this.options.updatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),u=!1,a=!1,s={},l={};n.forEach((function(e){var t=e.options&&e.options.tDescription?{value:e.fallbackValue||"",context:{text:e.options.tDescription}}:e.fallbackValue||"";e.options&&e.options.isUpdate?(a||(a=!0),l[e.key]=t):(u||(u=!0),s[e.key]=t)}));var c=0;u&&c++,a&&c++;var d=function(e){--c||r(e)};if(c||d(),u)if(this.options.request){var p=Do(o,ro({authorize:!0},this.options),s);Bo(this.options,p,d)}else yo(ro({authorize:!0},this.options),o,s,d);if(a)if(this.options.request){var f=Do(i,ro({authorize:!0},this.options),l);Bo(this.options,f,d)}else yo(ro({authorize:!0},this.options),i,l,d)}},{key:"write",value:function(e,t){var n=this;if(!ao(this.queuedWrites,["locks",e,t])){var r=ao(this.queuedWrites,[e,t]);uo(this.queuedWrites,[e,t],[]);var o=r.filter((function(e){return e.callback})).map((function(e){return e.callback}));if(r.length){uo(this.queuedWrites,["locks",e,t],!0);var i=function(){uo(n.queuedWrites,["locks",e,t],!1),o.forEach((function(e){return e()})),n.options.onSaved&&n.options.onSaved(e,t),n.debouncedProcess(e,t)},u=r.length/1e3,a=0,s=r.splice(0,1e3);for(this.writePage(e,t,s,(function(){++a>=u&&i()}));1e3===s.length;)(s=r.splice(0,1e3)).length&&this.writePage(e,t,s,(function(){++a>=u&&i()}))}}}},{key:"process",value:function(){var e=this;Object.keys(this.queuedWrites).forEach((function(t){"locks"!==t&&Object.keys(e.queuedWrites[t]).forEach((function(n){e.queuedWrites[t][n].length&&e.write(t,n)}))}))}},{key:"queue",value:function(e,t,n,r,o,i){!function(e,t,n,r){var o=io(e,t,Object),i=o.obj,u=o.k;i[u]=i[u]||[],r&&(i[u]=i[u].concat(n)),r||i[u].push(n)}(this.queuedWrites,[e,t],{key:n,fallbackValue:r||"",callback:o,options:i}),this.debouncedProcess()}}]);function Lo(e){return(Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Po(e){var t=function(e,t){if("object"!=Lo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lo(t)?t:t+""}function No(e,t,n){return(t=Po(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}jo.type="backend";var To="undefined"!=typeof window?["",""]:["",""],Io=RegExp("([".concat(To.join(""),"]{9})+"),"gu"),Ro='{"k":"a"}'.length,Mo=function(e){var t=function(e){return Array.from((new TextEncoder).encode(e))}(e).map(Number).map((function(e){return function(e){var t=8-e.length;return"0".repeat(t)+e}(e.toString(2))+"0"})).join("");return Array.from(t).map((function(e){return To[Number(e)]})).join("")},zo=Mo("subliminal:start"),qo=function(e){var t,n=Array.from(e).map((function(e){return To.indexOf(e)})).map(String).join("").match(/(.{9})/g),r=Uint8Array.from((null==n?void 0:n.map((function(e){return parseInt(e.slice(0,8),2)})))||[]);return t=r,(new TextDecoder).decode(new Uint8Array(t))},Uo=function(e){if(0===Object.keys(e).length)return e;var t={k:e.key,n:e.ns,l:e.lng,s:e.source};return JSON.stringify(t)};function Ho(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Uo(t),r=Mo(n);return"string"==typeof e&&e?zo+e+r:e}function _o(e){var t=function(e){if(e&&"string"==typeof e&&0===e.indexOf("{"))try{var t=JSON.parse(e||"{}");return{key:t.k,ns:t.n,lng:t.l,source:t.s}}catch(e){return}}(function(e){var t,n=null===(t=e.match(Io))||void 0===t?void 0:t.filter((function(e){return e.length>Ro-1}));if(n&&0!==n.length)return qo(n[n.length-1])}(e));return{text:function(e){return e.replace(Io,"")}(e),invisibleMeta:t}}function Vo(e){if(!e||e.length<27)return!1;if(!Io.test(e))return!1;var t=e.substring(e.length-9);return"}"===qo(t)}function Ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xo={name:"subliminal",type:"postProcessor",options:{},setOptions:function(e){this.options=Wo(Wo({},e),this.options)},process:function(e,t,n,r){var o,i,u,a,s=this.options=Wo(Wo({},n),this.options);if(n.i18nResolved)o=n.i18nResolved.exactUsedKey,i=n.i18nResolved.usedNS,u=n.i18nResolved.usedLng,a=void 0===n.i18nResolved.res?o!==e?"default":"key":"translation";else{var l,c,d,p,f,h,g=null!==(l=null!==(c=s.keySeparator)&&void 0!==c?c:null==r||null===(d=r.options)||void 0===d?void 0:d.keySeparator)&&void 0!==l?l:".",v=r.extractFromKey(t.join(g),n),m=v.key,y=v.namespaces;o=m,i=null!==(p=null!==(f=null==y?void 0:y[0])&&void 0!==f?f:s.ns)&&void 0!==p?p:null==r||null===(h=r.options)||void 0===h?void 0:h.defaultNS,u=n.lng||this.language,a=o===e?"key":"translation"}return Ho(e,{key:o,ns:i,lng:u,source:a})},overloadTranslationOptionHandler:function(){return{postProcess:"subliminal",postProcessPassResolved:!0}}},Jo=["placeholder","title","alt"],$o=["SCRIPT"],Yo="#1976d2",Go="#e67a00",Zo="#ccc",Qo=function(){var e,t;"undefined"!=typeof process&&(t=process),t||"undefined"==typeof window||(t=window.process);var n=(null===(e=(t||{}).env)||void 0===e?void 0:e.locizeIncontext)||"production";return"development"===n?"http://localhost:3003/":"staging"===n?"https://incontext-dev.locize.app":"https://incontext.locize.app"},ei=function(){if("undefined"!=typeof document){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ri={};function oi(e,t){oa(e,t),delete ri[e]}function ii(e){return ri[e]}var ui={save:function(e,t,n,r){e&&t&&n&&(ri[e]||(ri[e]={id:e,node:n}),ri[e].keys=ni(ni({},ri[e].keys),{},No({},"".concat(t),{value:r,eleUniqueID:e,textType:t})))},remove:oi,removeKey:function(e,t,n){var r=ii(e);r&&(delete r.keys["".concat(t)],Object.keys(r.keys).length||oi(e,n))},clean:function(){Object.values(ri).forEach((function(e){document.body.contains(e.node)||(oa(e.id,e.node),delete ri[e.id])}))},get:ii,data:ri};function ai(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function si(e,t){if(e){if("string"==typeof e)return ai(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ai(e,t):void 0}}function li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,u,a=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(e,t)||si(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ci(e,t,n){var r;return function(){var o=this,i=arguments,u=function(){r=null,n||e.apply(o,i)},a=n&&!r;clearTimeout(r),r=setTimeout(u,t),a&&e.apply(o,i)}}function di(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function pi(e){var t=di(e,"data-i18n");return t||(e.nodeType===window.Node.TEXT_NODE&&e.parentElement?pi(e.parentElement):void 0)}function fi(e){var t="text";if(0===e.indexOf("[")){var n=e.split("]");e=n[1],t=n[0].substr(1,n[0].length-1)}return[e.indexOf(";")===e.length-1?e.substr(0,e.length-2):e,t]}function hi(e){var t,n=function(e){var r=di(e,"i18next-options");if(r||(r=di(e,"data-i18next-options")),r||(r=di(e,"i18n-options")),r||(r=di(e,"data-i18n-options")),r){var o={};try{o=JSON.parse(r)}catch(e){}o.ns&&(t=o.ns)}t||(t=di(e,"i18next-ns")),t||(t=di(e,"data-i18next-ns")),t||(t=di(e,"i18n-ns")),t||(t=di(e,"data-i18n-ns")),!t&&e.parentElement&&n(e.parentElement)};return n(e),t}function gi(e,t){if("undefined"==typeof window)return null;t||(t=window.location.href.toLowerCase()),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}var vi="undefined"!=typeof window;try{vi=self!==top}catch(e){}var mi=vi;function yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yi(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ei={committed:"commitKeys"};var Ai=[],wi=["locizeIsEnabled","requestInitialize"];function xi(e,t){var n;ki.source||(ki.source=null===(n=document.getElementById("i18next-editor-iframe"))||void 0===n?void 0:n.contentWindow);if(ki.origin||(ki.origin=Qo()),!ki.source||!ki.source.postMessage||!ki.initialized&&wi.indexOf(e)<0)Ai.push({action:e,payload:t});else{ki.legacy?ki.source.postMessage(bi({message:e},t),ki.origin):ki.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v2",action:e,message:e,payload:t},ki.origin);var r=Ai;Ai=[],r.forEach((function(e){xi(e.action,e.payload)}))}}var Ci={},Oi=5,ki={init:function(e,t){ki.i18n=e,ki.clickHandler=t},requestInitialize:function(e){xi("requestInitialize",e),ki.initInterval||(ki.initInterval=setInterval((function(){Oi-=1,ki.requestInitialize(e),Oi<0&&ki.initInterval&&(clearInterval(ki.initInterval),delete ki.initInterval)}),2e3))},selectKey:function(e){xi("selectKey",e)},confirmResourceBundle:function(e){xi("confirmResourceBundle",e)},sendCurrentParsedContent:ci((function(){xi("sendCurrentParsedContent",{content:Object.values(ca.data).map((function(e){return{id:e.id,keys:e.keys}})),uninstrumented:Object.values(ui.data).map((function(e){return{id:e.id,keys:e.keys}}))})}),500),sendCurrentTargetLanguage:function(e){xi("sendCurrentTargetLanguage",{targetLng:e||ki.i18n&&ki.i18n.getLng&&ki.i18n.getLng()})},sendHrefchanged:function(e){xi("hrefChanged",{href:e})},addHandler:function(e,t){Ci[e]||(Ci[e]=[]),Ci[e].push(t)},sendLocizeIsEnabled:function(e){xi("locizeIsEnabled",bi(bi({},e),{},{enabled:!0}))},onAddedKey:function(e,t,n,r){xi("added",{lng:e,ns:t,key:n,value:r})}};function Fi(e,t){var n=ca.get(e.eleUniqueID);if(n&&n.keys[e.textType]){var r=n.subliminal?Ho(t,n.subliminal):t;if("text"===e.textType)n.node.textContent=r;else if(0===e.textType.indexOf("attr:")){var o=e.textType.replace("attr:","");n.node.setAttribute(o,r)}else if("html"===e.textType){var i="".concat(e.textType,"-").concat(e.children);if(!n.originalChildNodes){var u=[];n.node.childNodes.forEach((function(e){u.push(e)})),n.originalChildNodes=u}if(n.children[i].length===n.node.childNodes.length)n.node.innerHTML=r;else{var a=n.children[i],s=a[0].child,l=document.createElement("div");l.innerHTML=r;var c=[];l.childNodes.forEach((function(e){c.push(e)})),c.forEach((function(e){try{n.node.insertBefore(e,s)}catch(t){n.node.appendChild(e)}})),a.forEach((function(e){n.node.contains(e.child)&&n.node.removeChild(e.child)}))}}}}function Di(e){return function(e){if(Array.isArray(e))return ai(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||si(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bi(e){var t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,o=t.top<=n&&t.top+t.height>=0,i=t.left<=r&&t.left+t.width>=0;return o&&i}function Si(e,t){var n=t,r=e.pageX,o=e.pageY,i=r,u=o,a=n.getBoundingClientRect(),s=a.top+document.documentElement.scrollTop,l=s+n.offsetHeight,c=a.left+document.documentElement.scrollLeft,d=c+n.offsetWidth,p=Math.max(r,c),f=Math.min(r,d),h=Math.max(o,s),g=(f>=p?r:d<r?d:c)-i,v=(Math.min(o,l)>=h?o:l<o?l:s)-u,m=Math.pow(Math.pow(g,2)+Math.pow(v,2),.5);return Math.floor(m)}function ji(e){var t=e;if(1===e.childNodes.length){var n=e.childNodes[0];if(n&&"#text"===n.nodeName){var r=document.createRange();r.selectNode(n);var o=r.getBoundingClientRect();t={getBoundingClientRect:function(){return o}}}}return t}"undefined"!=typeof window&&window.addEventListener("message",(function(e){var t,n=e.data,r=n.sender,o=n.action,i=n.message,u=n.payload;if(i){var a=Ei[t=i]?Ei[t]:t;Ci[a]&&Ci[a].forEach((function(t){t(u,e)}))}else"i18next-editor-frame"===r&&Ci[o]&&Ci[o].forEach((function(t){t(u,e)}))})),ki.addHandler("editKey",(function(e){var t=e.meta,n=e.value;t&&void 0!==n&&Fi(t,n)})),ki.addHandler("commitKey",(function(e){var t=e.meta,n=e.value,r=e.lng;if(t&&void 0!==n){Fi(t,n);var o=r||ki.i18n.getLng();ki.i18n.setResource(o,t.ns,t.key,n),ki.i18n.triggerRerender()}})),ki.addHandler("commitKeys",(function(e){e.updated.forEach((function(e){var t=e.lng,n=e.ns,r=e.key,o=e.data,i=e.metas,u=e.meta;u&&o.value&&Fi(u,o.value),i&&Object.values(i).forEach((function(e){Fi(e,o.value)})),ki.i18n.setResource(t,n,r,o.value),i&&Object.values(i).forEach((function(e){var t=ca.get(e.eleUniqueID);!function(e,t,n){if(!na[e.id])return;oa(e,t,n,!1),ra(e,t)}(t,t.node,t.keys)}))})),Object.values(ca.data).forEach((function(e){var t;e.originalChildNodes&&(t=e.node).replaceChildren.apply(t,Di(e.originalChildNodes))})),ki.i18n.triggerRerender(),ki.locizeSavedHandler&&ki.locizeSavedHandler(e),window.locizeSavedHandler&&window.locizeSavedHandler(e)})),ki.addHandler("confirmInitialized",(function(e){ki.initialized=!0,clearInterval(ki.initInterval),delete ki.initInterval,ki.sendCurrentParsedContent(),ki.sendCurrentTargetLanguage()}));var Li,Pi=ci((function(e,t){Object.values(ca.data).forEach((function(t){if(Bi(t.node)){var n=Si(e,t.node);if(n<5)!function(e,t,n){var r=ji(t);if(!e.highlightBox){var i=Wi(r,"none","rgba(0,0,0,0.1)");document.body.appendChild(i),e.highlightBox=i}if(!e.ribbonBox){var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("div");t.classList.add("i18next-editor-button-container"),t.style="position: absolute; top: 0; left: 0; display: flex; align-items: flex-start; justify-content: center; filter: drop-shadow(0px 0px 20px #aaa ); z-index: 99999;",t.setAttribute("data-i18next-editor-element","true");var n=document.createElement("div");n.style="\n position: absolute;\n width: 0;\n height: 0;\n border-top-width: 7px;\n border-bottom-width: 7px;\n border-left-width: 10px;\n border-right-width: 10px;\n border-style: solid;\n border-color: transparent ".concat(Yo," transparent\n transparent;\n "),t.appendChild(n);var r=document.createElement("div");return r.style="display: flex; flex-direction: column; align-items: flex-start; margin-left: 2px; margin-top: 1px",Object.keys(e).forEach((function(t){var n=e[t],o=Ki(t.replace("attr:",""),"".concat(n.ns,":").concat(n.key),(function(e){e&&(e.stopPropagation(),e.preventDefault()),ki.selectKey(n)}));o.style.marginBottom="2px",r.appendChild(o)})),t.appendChild(r),{box:t,arrow:n}}(n),a=u.box,s=u.arrow;document.body.appendChild(a),((e,t,n)=>{var r=new Map,i=o({platform:Gu},n),u=o(o({},i.platform),{},{_c:r});return hu(e,t,o(o({},i),{},{platform:u}))})(r,a,{placement:"right",middleware:[ea({fallbackPlacements:["left","bottom"]}),Qu(),Zu((function(e){var t=e.placement,n=e.rects;return"bottom"===t?-n.reference.height/2-n.floating.height/2:35})),ta({element:s})]}).then((function(e){var t=e.x,n=e.y,r=e.middlewareData,o=e.placement;Object.assign(a.style,{left:"".concat(t,"px"),top:"".concat(n,"px"),display:"inline-flex"});var i=o.split("-")[0],u={top:"bottom",right:"left",bottom:"top",left:"right"}[i];if(r.arrow){var l=r.arrow,c=l.x,d=l.y;Object.assign(s.style,No(No({left:null!=c?"".concat(c,"px"):"",top:null!=d?"".concat(d,"px"):"",right:"",bottom:""},u,"".concat("bottom"===i?-18:-25,"px")),"transform","bottom"===i?"rotate(90deg)":"left"===i?"rotate(180deg)":""))}})),e.ribbonBox=a}}(t,t.node,t.keys);else if(n>5){(t.ribbonBox?Si(e,t.ribbonBox):1e3)>10&&oa(t,t.node,t.keys)}}})),Object.values(ui.data).forEach((function(t){if(Bi(t.node)){var n=Si(e,t.node);n<10?function(e,t,n){var r=e.id;if(na[r])return;var o=ji(t);if(!e.highlightBox){var i=Wi(o,Go);document.body.appendChild(i),e.highlightBox=i}}(t,t.node,t.keys):n>10&&oa(t,t.node,t.keys)}}))}),50);function Ni(e){Li=function(t){Pi(t,e)},document.addEventListener("mousemove",Li)}function Ti(){document.removeEventListener("mousemove",Li)}var Ii=URL.createObjectURL(new Blob(['<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#FFFFFF"><g></g><g><g><g><path d="M3,21l3.75,0L17.81,9.94l-3.75-3.75L3,17.25L3,21z M5,18.08l9.06-9.06l0.92,0.92L5.92,19L5,19L5,18.08z"/></g><g><path d="M18.37,3.29c-0.39-0.39-1.02-0.39-1.41,0l-1.83,1.83l3.75,3.75l1.83-1.83c0.39-0.39,0.39-1.02,0-1.41L18.37,3.29z"/></g></g></g></svg>'],{type:"image/svg+xml"}));URL.createObjectURL(new Blob(['\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 304" stroke="#000" stroke-linecap="round" stroke-linejoin="round" fill="#fff" fill-rule="evenodd">\n <g stroke="none" class="B">\n <path d="M 142 31.5 v 57.2 l 64.3 165.1 s 19.6 40.3 -36.5 50.1 h -128 s -52.3 -5.5 -39.8 -46.9 L 69.5 88.7 V 31.5 z" fill="#009688"/>\n <path d="M 143.3 24.8 H 66.2 c -6.2 0 -11.3 -5.6 -11.3 -12.4 S 60 0 66.2 0 h 77.1 c 6.3 0 11.3 5.6 11.3 12.4 s -5.1 12.4 -11.3 12.4 z" class="C" fill="#004d40"/>\n <path d="M 123 124.9 c 8.3 0 15 8.1 15 18.1 c 0 10 -6.8 18.1 -15 18.1 c -8.3 0 -15 -8.1 -15 -18.1 c 0 -10 6.7 -18.1 15 -18.1 z m -58.8 31.7 c 0 -8.5 5.6 -15.3 12.7 -15.3 s 12.7 6.8 12.7 15.3 s -5.6 15.3 -12.7 15.3 s -12.7 -6.8 -12.7 -15.3 z" fill="white"/>\n <path d="M 147.7 84.9 V 57.7 s 34.5 -7.6 51.7 32.5 c 0 0 -26.9 19.6 -51.7 -5.3 z m -84.5 0 V 57.7 s -34.5 -7.6 -51.7 32.5 c 0 0 26.8 19.6 51.7 -5.3 z" class="C" fill="#004d40"/>\n <path d="M 168.4 197.5 c -56.1 -17.4 -103.3 -8.1 -126.3 -1 l -23.2 56 c -10.5 33.4 33.2 37.8 33.2 37.8 h 106.9 c 46.9 -7.9 30.5 -40.4 30.5 -40.4 z" fill="white"/>\n <path d="M 87.6 218.3 c 0 6 -8.1 10.9 -18.1 10.9 s -18.1 -4.9 -18.1 -10.9 c 0 -6.1 8.1 -10.9 18.1 -10.9 s 18.1 4.9 18.1 10.9 z m 64.4 0 c 0 6 -8.1 10.9 -18.1 10.9 c -10 0 -18.1 -4.9 -18.1 -10.9 c 0 -6.1 8.1 -10.9 18.1 -10.9 c 10 0 18.1 4.9 18.1 10.9 z" class="C" fill="#004d40"/>\n </g>\n</svg>\n'],{type:"image/svg+xml"}));var Ri=URL.createObjectURL(new Blob(['<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M6 19h12v2H6v-2z"/></svg>'],{type:"image/svg+xml"})),Mi=URL.createObjectURL(new Blob(['\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 194.667 196" height="196" width="194.667" xml:space="preserve">\n <defs>\n <clipPath id="a" clipPathUnits="userSpaceOnUse">\n <path d="M5.5 74.048C5.5 36.98 35.551 6.93 72.619 6.93c37.069 0 67.119 30.05 67.119 67.118 0 37.07-30.05 67.12-67.119 67.12-37.068 0-67.119-30.05-67.119-67.12"/>\n </clipPath>\n <clipPath id="b" clipPathUnits="userSpaceOnUse">\n <path d="M0 147h146V0H0Z"/>\n </clipPath>\n <clipPath id="c" clipPathUnits="userSpaceOnUse">\n <path d="M88.756 55.055h50.982l4.512 88.195-64 1.25z"/>\n </clipPath>\n </defs>\n <g clip-path="url(#a)" transform="matrix(1.33333 0 0 -1.33333 0 196)">\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-.766-5.554 1.148-8.427 0-11.107-1.149-2.681-2.49-7.469-1.341-10.724 1.149-3.255 2.872-10.34 4.404-10.533 1.532-.19-1.148 7.66.383 5.171 1.533-2.49 1.533-6.193 4.214-8.746 2.68-2.553 6.319-2.17 9.192-4.658 2.872-2.49 5.744-6.129 8.425-5.746 0 0-.192-1.914-1.532-5.17-1.34-3.255-1.532-7.084.192-9.383 1.723-2.298 3.446-5.746 4.979-7.469 1.532-1.723 2.681-10.915 2.297-15.51-.382-4.596 1.724-14.937 6.511-17.236 4.787-2.298 0 1.15-.957 4.022-.958 2.872.739 9.575 3.052 10.533 2.309.958 4.416 4.787 6.139 7.469 1.724 2.68 6.128 3.83 7.469 7.084 1.341 3.255.766 7.085 1.532 8.809.766 1.724 2.873 5.554-1.724 7.852-4.595 2.298-6.51 1.148-6.702 3.255-.192 2.107-1.341 4.404-4.595 5.361-3.256.959-6.129 2.816-9.768 3.227-3.638.412-4.404-2.461-6.319-.928-1.914 1.531-3.446 3.064-4.213 4.978-.765 1.915-3.064.766-2.871 1.915.19 1.15 3.254 4.404-.193 3.255-3.446-1.148-6.51-.765-6.319 2.298.193 3.064 4.405 4.214 6.129 4.597 1.722.383 3.063-1.723 5.17-3.065 2.106-1.34.191 1.915 1.34 4.214 1.149 2.298 5.554 2.106 6.128 5.361.575 3.255-.191 5.937 3.256 6.32 3.446.383 7.084-.191 7.468 1.533.382 1.722-4.022-.576-4.213 1.531-.192 2.106 3.829 4.978 4.978 2.872 1.149-2.106 4.022-2.298 4.405-1.531.383.765 0 2.105-1.341 5.361-1.34 3.256-2.681 2.298-3.829 5.936-1.149 3.639-3.064-.191-4.979 1.724s-4.213 5.937-4.597 2.489c-.382-3.446-.382-5.361-2.105-8.042-1.724-2.682-2.489-.575-4.022 1.149-1.532 1.723-4.979 3.447-3.83 4.978C23.362 4.979 24.511 9 26.234 7.85c1.724-1.149 4.405-1.149 4.022.767-.383 1.914 0 2.681.766 3.638.766.958 3.447 2.682 3.447-.766 0-3.447-.384-4.405 2.298-4.788 2.681-.383 5.744-.574 5.554 1.149-.193 1.724.766 1.341 0 4.214-.767 2.873-3.065 3.063-5.554 4.405-2.489 1.34-3.83 3.446-5.936 2.68s-2.299-1.531-2.49-3.638c-.192-2.107-1.341-2.873-2.107-1.915-.765.957.192 4.022-2.68 2.106-2.873-1.914-4.021-5.171-5.553-2.872-1.533 2.297 2.297 6.319-1.724 4.595-4.022-1.723-6.895-3.637-4.788-4.404 2.107-.766 4.214-2.107 2.107-2.873-2.107-.765-6.32.575-7.852-.957C4.212 7.66 0 0 0 0" transform="translate(13.926 109.38)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-.766-5.554 1.148-8.427 0-11.107-1.149-2.681-2.49-7.469-1.341-10.724 1.149-3.255 2.872-10.34 4.404-10.533 1.532-.19-1.148 7.66.383 5.171 1.533-2.49 1.533-6.193 4.214-8.746 2.68-2.553 6.319-2.17 9.192-4.658 2.872-2.49 5.744-6.129 8.425-5.746 0 0-.192-1.914-1.532-5.17-1.34-3.255-1.532-7.084.192-9.383 1.723-2.298 3.446-5.746 4.979-7.469 1.532-1.723 2.681-10.915 2.297-15.51-.382-4.596 1.724-14.937 6.511-17.236 4.787-2.298 0 1.15-.957 4.022-.958 2.872.739 9.575 3.052 10.533 2.309.958 4.416 4.787 6.139 7.469 1.724 2.68 6.128 3.83 7.469 7.084 1.341 3.255.766 7.085 1.532 8.809.766 1.724 2.873 5.554-1.724 7.852-4.595 2.298-6.51 1.148-6.702 3.255-.192 2.107-1.341 4.404-4.595 5.361-3.256.959-6.129 2.816-9.768 3.227-3.638.412-4.404-2.461-6.319-.928-1.914 1.531-3.446 3.064-4.213 4.978-.765 1.915-3.064.766-2.871 1.915.19 1.15 3.254 4.404-.193 3.255-3.446-1.148-6.51-.765-6.319 2.298.193 3.064 4.405 4.214 6.129 4.597 1.722.383 3.063-1.723 5.17-3.065 2.106-1.34.191 1.915 1.34 4.214 1.149 2.298 5.554 2.106 6.128 5.361.575 3.255-.191 5.937 3.256 6.32 3.446.383 7.084-.191 7.468 1.533.382 1.722-4.022-.576-4.213 1.531-.192 2.106 3.829 4.978 4.978 2.872 1.149-2.106 4.022-2.298 4.405-1.531.383.765 0 2.105-1.341 5.361-1.34 3.256-2.681 2.298-3.829 5.936-1.149 3.639-3.064-.191-4.979 1.724s-4.213 5.937-4.597 2.489c-.382-3.446-.382-5.361-2.105-8.042-1.724-2.682-2.489-.575-4.022 1.149-1.532 1.723-4.979 3.447-3.83 4.978C23.362 4.979 24.511 9 26.234 7.85c1.724-1.149 4.405-1.149 4.022.767-.383 1.914 0 2.681.766 3.638.766.958 3.447 2.682 3.447-.766 0-3.447-.384-4.405 2.298-4.788 2.681-.383 5.744-.574 5.554 1.149-.193 1.724.766 1.341 0 4.214-.767 2.873-3.065 3.063-5.554 4.405-2.489 1.34-3.83 3.446-5.936 2.68s-2.299-1.531-2.49-3.638c-.192-2.107-1.341-2.873-2.107-1.915-.765.957.192 4.022-2.68 2.106-2.873-1.914-4.021-5.171-5.553-2.872-1.533 2.297 2.297 6.319-1.724 4.595-4.022-1.723-6.895-3.637-4.788-4.404 2.107-.766 4.214-2.107 2.107-2.873-2.107-.765-6.32.575-7.852-.957C4.212 7.66 0 0 0 0Z" transform="translate(13.926 109.38)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-.01-2.141.575-3.829 2.49-1.915C4.405 0 5.553 2.298 6.895 1.341c1.34-.958 3.638-.703 4.594-.639.959.064 1.15 2.937 3.831 2.554s1.724.574 4.596 2.107c2.873 1.532 9.001 4.212 2.681 3.446-6.32-.766-6.703.958-11.108-1.914-4.403-2.873-5.36-2.873-6.509-3.639-1.149-.766-2.49 2.298-4.022 0C-.575.958.011 2.182 0 0" transform="translate(36.522 130.061)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-.01-2.141.575-3.829 2.49-1.915C4.405 0 5.553 2.298 6.895 1.341c1.34-.958 3.638-.703 4.594-.639.959.064 1.15 2.937 3.831 2.554s1.724.574 4.596 2.107c2.873 1.532 9.001 4.212 2.681 3.446-6.32-.766-6.703.958-11.108-1.914-4.403-2.873-5.36-2.873-6.509-3.639-1.149-.766-2.49 2.298-4.022 0C-.575.958.011 2.182 0 0Z" transform="translate(36.522 130.061)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-2.263-1.956-5.744-4.788-3.064-4.788 2.681 0 3.983 1.404 5.439-.447 1.456-1.85.88-4.723.88-6.063 0-1.341-.766-4.406 1.15-8.235 1.915-3.829 2.106-6.319 4.022-3.829 1.914 2.488 6.51 7.276 8.808 7.658 2.298.384 4.597 1.342 5.746 3.257 1.148 1.915 0 3.773 1.914 5.141 1.914 1.369 1.531 3.093 2.107 5.199C27.575 0 32.747 0 30.448 1.148c-2.297 1.15-6.51 1.916-11.49 1.341C13.979 1.915 4.213 3.638 0 0" transform="translate(59.502 135.998)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-2.263-1.956-5.744-4.788-3.064-4.788 2.681 0 3.983 1.404 5.439-.447 1.456-1.85.88-4.723.88-6.063 0-1.341-.766-4.406 1.15-8.235 1.915-3.829 2.106-6.319 4.022-3.829 1.914 2.488 6.51 7.276 8.808 7.658 2.298.384 4.597 1.342 5.746 3.257 1.148 1.915 0 3.773 1.914 5.141 1.914 1.369 1.531 3.093 2.107 5.199C27.575 0 32.747 0 30.448 1.148c-2.297 1.15-6.51 1.916-11.49 1.341C13.979 1.915 4.213 3.638 0 0Z" transform="translate(59.502 135.998)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.218-1.986-.575-2.107.766-2.49 1.34-.383-.575-2.68.957-2.872 1.532-.193 4.979-1.15 5.936 0 .959 1.148-1.531.7-3.255 1.977C2.682-2.107.865 1.41 0 0" transform="translate(38.438 76.826)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.218-1.986-.575-2.107.766-2.49 1.34-.383-.575-2.68.957-2.872 1.532-.193 4.979-1.15 5.936 0 .959 1.148-1.531.7-3.255 1.977C2.682-2.107.865 1.41 0 0Z" transform="translate(38.438 76.826)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-2.063-1.033-1.148-2.682-3.064-3.831-1.915-1.148-1.149-1.531-1.723-4.213-.575-2.68.191-4.212 1.532-2.106S2.298 1.148 0 0" transform="translate(131.121 45.612)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-2.063-1.033-1.148-2.682-3.064-3.831-1.915-1.148-1.149-1.531-1.723-4.213-.575-2.68.191-4.212 1.532-2.106S2.298 1.148 0 0Z" transform="translate(131.121 45.612)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-.575-.575-1.532 2.681-2.106 4.213-.575 1.532-.561 4.195 1.056 5.675C.964 11.734 0 7.469 0 5.17 0 2.873.574.575 0 0m-6.704 5.936c-1.341.766-3.828 0-6.892-.957-3.065-.958-.613 2.131.766 4.213 1.233 1.861.574-.574 3.256-.766 2.68-.192 4.213-3.256 2.87-2.49m-4.402-6.511c-.192-1.531.574-4.021-3.639-3.064-4.213.958-4.213 3.256-5.936 1.533-1.723-1.724-3.83-3.255-6.32-.575C-29.49 0-29.107.766-30.447.958c-.955.135-4.138.846-6.792.074.206.123.426.285.663.5 1.915 1.723 1.532 2.298 3.638 4.213 2.108 1.916 3.639 3.638 5.171 1.916 1.532-1.725 4.788-2.108 3.639-4.023-1.149-1.914-.383-3.063.958-1.914 1.339 1.149 3.255 1.914 1.915 3.446-1.342 1.532-2.682 5.554-.766 2.873 1.915-2.681 2.489-4.022 3.637-5.553C-17.234.958-16.085 0-15.702.958c.383.957-.192 3.063.383 3.446.574.383 0-3.255 1.723-3.446 1.723-.192 2.681 0 2.49-1.533M9.192-8.81c-.574 3.257-4.787 32.747-4.787 32.747s-11.299 7.277-13.213 5.746c-1.916-1.533-5.171-1.302-4.788.21s2.872 1.128-1.341 4.002c-4.212 2.873-4.978 5.362-8.233 1.724-3.257-3.639-4.022-6.703-5.937-7.661-1.915-.957-3.447-4.021-1.34-4.787 2.106-.765 2.298 0 4.02-1.531 1.725-1.533 4.023-1.149 4.406-.193.383.959.766 4.022.957 5.171.192 1.149 2.138 4.979 1.93 1.915-.207-3.064 2.665-3.064.75-5.17-1.914-2.106-.765-3.831-4.595-4.214-3.831-.382-4.022 1.915-6.128.766-2.107-1.148-1.915-1.915-2.681-3.063-.766-1.149-4.788-3.447-4.788-3.447s-3.255 1.149-1.724-.958c1.533-2.106 2.873-4.595 1.533-4.786-1.341-.192-4.98 1.914-4.98-.384s-.573-4.787.959-5.362c1.081-.405 1.783-1.284 2.775-1.161-.769-.332-1.468-.813-2.009-1.52-1.491-1.947-.575-5.362-3.639-6.511-3.063-1.15-3.063-2.489-3.639-4.979-.573-2.489 0-8.808.766-9.383.765-.574 2.107-5.362 5.363-4.978 3.256.383 6.702.53 7.851-.023 1.149-.551 3.063 1.171 3.638-3.233.575-4.404 1.915-4.979 2.681-7.277.766-2.297-.383-7.086 0-9.958s3.064-7.852 3.064-10.341c0-2.489 2.873-3.638 4.405-2.681 1.532.958 4.787 2.873 6.127 5.937 1.342 3.063 1.342 4.595 3.447 8.617 2.106 4.021 1.533 6.894 2.489 9.958.958 3.064 3.262 5.171 6.419 8.617 3.156 3.446 2.588 5.362 0 5.171-2.588-.191-4.314 2.297-5.654 5.361-1.338 3.065-2.87 10.724-1.721 8.235 1.149-2.491 3.446-9.384 5.744-10.533 2.298-1.149 6.512 1.953 7.469 3.083.957 1.131.574 4.385-1.916 5.726C.383-8.617 1.915-7.469 4.405-9c2.489-1.532 5.362-3.064 4.787.19" transform="translate(132.845 86.592)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-.575-.575-1.532 2.681-2.106 4.213-.575 1.532-.561 4.195 1.056 5.675C.964 11.734 0 7.469 0 5.17 0 2.873.574.575 0 0Zm-6.704 5.936c-1.341.766-3.828 0-6.892-.957-3.065-.958-.613 2.131.766 4.213 1.233 1.861.574-.574 3.256-.766 2.68-.192 4.213-3.256 2.87-2.49zm-4.402-6.511c-.192-1.531.574-4.021-3.639-3.064-4.213.958-4.213 3.256-5.936 1.533-1.723-1.724-3.83-3.255-6.32-.575C-29.49 0-29.107.766-30.447.958c-.955.135-4.138.846-6.792.074.206.123.426.285.663.5 1.915 1.723 1.532 2.298 3.638 4.213 2.108 1.916 3.639 3.638 5.171 1.916 1.532-1.725 4.788-2.108 3.639-4.023-1.149-1.914-.383-3.063.958-1.914 1.339 1.149 3.255 1.914 1.915 3.446-1.342 1.532-2.682 5.554-.766 2.873 1.915-2.681 2.489-4.022 3.637-5.553C-17.234.958-16.085 0-15.702.958c.383.957-.192 3.063.383 3.446.574.383 0-3.255 1.723-3.446 1.723-.192 2.681 0 2.49-1.533zM9.192-8.81c-.574 3.257-4.787 32.747-4.787 32.747s-11.299 7.277-13.213 5.746c-1.916-1.533-5.171-1.302-4.788.21s2.872 1.128-1.341 4.002c-4.212 2.873-4.978 5.362-8.233 1.724-3.257-3.639-4.022-6.703-5.937-7.661-1.915-.957-3.447-4.021-1.34-4.787 2.106-.765 2.298 0 4.02-1.531 1.725-1.533 4.023-1.149 4.406-.193.383.959.766 4.022.957 5.171.192 1.149 2.138 4.979 1.93 1.915-.207-3.064 2.665-3.064.75-5.17-1.914-2.106-.765-3.831-4.595-4.214-3.831-.382-4.022 1.915-6.128.766-2.107-1.148-1.915-1.915-2.681-3.063-.766-1.149-4.788-3.447-4.788-3.447s-3.255 1.149-1.724-.958c1.533-2.106 2.873-4.595 1.533-4.786-1.341-.192-4.98 1.914-4.98-.384s-.573-4.787.959-5.362c1.081-.405 1.783-1.284 2.775-1.161-.769-.332-1.468-.813-2.009-1.52-1.491-1.947-.575-5.362-3.639-6.511-3.063-1.15-3.063-2.489-3.639-4.979-.573-2.489 0-8.808.766-9.383.765-.574 2.107-5.362 5.363-4.978 3.256.383 6.702.53 7.851-.023 1.149-.551 3.063 1.171 3.638-3.233.575-4.404 1.915-4.979 2.681-7.277.766-2.297-.383-7.086 0-9.958s3.064-7.852 3.064-10.341c0-2.489 2.873-3.638 4.405-2.681 1.532.958 4.787 2.873 6.127 5.937 1.342 3.063 1.342 4.595 3.447 8.617 2.106 4.021 1.533 6.894 2.489 9.958.958 3.064 3.262 5.171 6.419 8.617 3.156 3.446 2.588 5.362 0 5.171-2.588-.191-4.314 2.297-5.654 5.361-1.338 3.065-2.87 10.724-1.721 8.235 1.149-2.491 3.446-9.384 5.744-10.533 2.298-1.149 6.512 1.953 7.469 3.083.957 1.131.574 4.385-1.916 5.726C.383-8.617 1.915-7.469 4.405-9c2.489-1.532 5.362-3.064 4.787.19z" transform="translate(132.845 86.592)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.173-.353-2.106-2.681-1.532-3.831.576-1.148-.574.576-2.106-.382-1.533-.957-3.808-3.639-1.713-3.829 2.096-.193 1.713 1.531 3.628.765 1.915-.765 4.021-.575 4.021 1.34C2.298-4.021 1.915.574 0 0" transform="translate(95.886 109.955)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.173-.353-2.106-2.681-1.532-3.831.576-1.148-.574.576-2.106-.382-1.533-.957-3.808-3.639-1.713-3.829 2.096-.193 1.713 1.531 3.628.765 1.915-.765 4.021-.575 4.021 1.34C2.298-4.021 1.915.574 0 0Z" transform="translate(95.886 109.955)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.154-.165-1.533-3.064.957-3.447 2.49-.383 6.947.575 5.293 2.107C4.596.191 2.682.383 0 0" transform="translate(83.44 118.763)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.154-.165-1.533-3.064.957-3.447 2.49-.383 6.947.575 5.293 2.107C4.596.191 2.682.383 0 0Z" transform="translate(83.44 118.763)"/>\n </g>\n <g clip-path="url(#b)" transform="matrix(1.33333 0 0 -1.33333 0 196)">\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c0-37.068-30.05-67.119-67.119-67.119S-134.238-37.068-134.238 0c0 37.069 30.05 67.119 67.119 67.119S0 37.069 0 0Z" transform="translate(139.738 74.049)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:8;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c0-36.731-29.777-66.509-66.509-66.509S-133.019-36.731-133.019 0c0 36.733 29.778 66.51 66.51 66.51C-29.777 66.51 0 36.733 0 0Z" transform="translate(139.438 73.186)"/>\n </g>\n <g clip-path="url(#c)" transform="matrix(1.33333 0 0 -1.33333 0 196)">\n <path style="fill:#fff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0m12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754" transform="translate(119.64 109.307)"/>\n <path style="fill:#fff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0m12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754" transform="translate(119.64 109.307)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0Zm12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754z" transform="translate(119.64 109.307)"/>\n </g>\n</svg>\n'],{type:"image/svg+xml"}));ei&&(ei.insertRule("@keyframes i18next-editor-animate-top { \n from {\n top: calc(100vh + 600px); \n left: calc(100vw + 300px);\n opacity: 0;\n }\n to {\n top: var(--i18next-editor-popup-position-top);\n left: var(--i18next-editor-popup-position-left);\n opacity: 1;\n }\n }"),ei.insertRule("@keyframes i18next-editor-animate-bottom { \n from {\n top: var(--i18next-editor-popup-position-top);\n left: var(--i18next-editor-popup-position-left);\n opacity: 1;\n }\n to {\n top: calc(100vh + 600px); \n left: calc(100vw + 300px);\n opacity: 0;\n }\n }"),ei.insertRule(".i18next-editor-popup * { \n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */\n }"),ei.insertRule(".i18next-editor-popup .resizer-right {\n width: 15px;\n height: 100%;\n background: transparent;\n position: absolute;\n right: -15px;\n bottom: 0;\n cursor: e-resize;\n }"),ei.insertRule(".i18next-editor-popup .resizer-both {\n width: 15px;\n height: 15px;\n background: transparent;\n z-index: 10;\n position: absolute;\n right: -15px;\n bottom: -15px;\n cursor: se-resize;\n }"),ei.insertRule(".i18next-editor-popup .resizer-bottom {\n width: 100%;\n height: 15px;\n background: transparent;\n position: absolute;\n right: 0;\n bottom: -15px;\n cursor: s-resize;\n }"));var zi="i18next-editor-popup";function qi(e,t){var n=document.createElement("div");n.setAttribute("id",zi),n.classList.add("i18next-editor-popup"),n.style="\n background-color: transparent;\n border: 1px solid rgba(200, 200, 200, 0.9);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n --i18next-editor-popup-height: 200px;\n height: var(--i18next-editor-popup-height);\n min-height: 150px;\n min-width: 300px;\n --i18next-editor-popup-width: 400px;\n width: var(--i18next-editor-popup-width);\n max-height: 800px;\n max-width: 1000px;\n\n position: fixed;\n --i18next-editor-popup-position-top: calc(100vh - var(--i18next-editor-popup-height) - 10px);\n top: calc(100vh - var(--i18next-editor-popup-height) - 10px);\n --i18next-editor-popup-position-left: calc(100vw - var(--i18next-editor-popup-width) - 10px);\n left: calc(100vw - var(--i18next-editor-popup-width) - 10px);\n\n overflow: visible;\n z-index: 100000;\n ",n.setAttribute("data-i18next-editor-element","true");var r,o,i,u=document.createElement("div");u.classList.add("i18next-editor-popup-header"),u.style="\n padding: 2px 10px;\n cursor: move;\n z-index: 10;\n backdrop-filter: blur(3px);\n background-color: rgba(200, 200, 200, 0.5);\n background: linear-gradient(0deg, rgba(200, 200, 200, 0.6), rgba(200, 200, 200, 0.5));\n color: #fff;\n text-align: right;\n ",n.appendChild(u),u.appendChild((r=n,o=function(){var e=function(e,t){var n=document.createElement("div");n.setAttribute("data-i18next-editor-element","true"),n.style="\n cursor: pointer;\n position: fixed;\n bottom: 25px;\n right: 25px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n height: 50px;\n background-color: rgba(249, 249, 249, 0.2);\n backdrop-filter: blur(3px);\n box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);\n border-radius: 50%;\n ",n.onclick=function(){t()};var r=document.createElement("img");return r.src=Mi,r.style.width="45px",n.appendChild(r),n}(0,(function(){n.style.animation="i18next-editor-animate-top 1s",Ni(),setTimeout((function(){document.body.removeChild(e)}),1e3)}));document.body.appendChild(e),Ti()},(i=document.createElement("img")).setAttribute("data-i18next-editor-element","true"),i.src=Ri,i.style.width="24px",i.style.cursor="pointer",i.onclick=function(){r.style.setProperty("--i18next-editor-popup-position-top",r.style.top),r.style.setProperty("--i18next-editor-popup-position-left",r.style.left),r.style.animation="i18next-editor-animate-bottom 2s forwards",o()},i));var a=document.createElement("iframe");a.setAttribute("id","i18next-editor-iframe"),a.setAttribute("data-i18next-editor-element","true"),a.style="\n z-index: 100;\n width: 100%;\n height: calc(100% - 32px);\n border: none;\n background: #fff;\n ",a.setAttribute("src",e),a.addEventListener("load",t),n.appendChild(a);var s=document.createElement("div");return s.setAttribute("id","i18next-editor-popup-overlay"),s.setAttribute("data-i18next-editor-element","true"),s.style="\n display: none;\n position: absolute;\n top: 32px;\n z-index: 101;\n width: 100%;\n height: calc(100% - 32px);\n background-color: rgba(200, 200, 200, 0.5);\n background: linear-gradient(0deg, rgba(240, 240, 240, 0.6), rgba(255, 255, 255, 0.5));\n backdrop-filter: blur(2px);\n",n.appendChild(s),n}function Ui(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}ki.addHandler("requestPopupChanges",(function(e){var t=e.containerStyle;if(t){var n=document.getElementById(zi);if(!n)return;var r=window.localStorage.getItem("locize_popup_pos");r&&(r=JSON.parse(r));var o=window.localStorage.getItem("locize_popup_size");if(o&&(o=JSON.parse(o)),o&&o.height&&o.width&&(t.height=o.height+"px",t.width=o.width+"px"),t.height){var i="calc(".concat(t.height," - ").concat(n.style.height,")");n.style.setProperty("top","calc(".concat(n.style.top," - ").concat(i,")")),n.style.setProperty("height",t.height)}if(t.width){var u="calc(".concat(t.width," - ").concat(n.style.width,")");n.style.setProperty("left","calc(".concat(n.style.left," - ").concat(u,")")),n.style.setProperty("width",t.width)}r&&r.top&&r.top<window.innerHeight-t.height.replace("px","")&&n.style.setProperty("top",r.top+"px"),r&&r.left&&r.left<window.innerWidth-t.width.replace("px","")&&n.style.setProperty("left",r.left+"px")}}));var Hi=["lng","ns"];function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}ki.addHandler("requestResourceBundle",(function(e){var t=e.lng,n=e.ns,r=Ui(e,Hi);ki.i18n.getResourceBundle(t,n,(function(e){ki.confirmResourceBundle(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({resources:e,lng:t,ns:n},r))}))}));var Vi=[];function Ki(e,t,n){var r=document.createElement("button");r.style="font-family: Arial; position: relative; backdrop-filter: blur(3px); cursor: pointer; padding: 2px 10px 2px 20px; font-size: 15px; font-weight: 300; text-transform: uppercase; color: #fff; background-color: rgba(25, 118, 210, 0.8); border: none; border-radius: 12px; ",r.classList.add("i18next-editor-button"),r.setAttribute("data-i18next-editor-element","true"),r.setAttribute("title",t);var o,i=((o=document.createElement("img")).setAttribute("data-i18next-editor-element","true"),o.src=Ii,o.style.width="15px",o);i.style="position: absolute; left: 4px; top: 3px;",i.style.width="15px",r.appendChild(i);var u=document.createElement("span");return u.textContent=e,r.appendChild(u),r.onclick=n,r}function Wi(e,t,n){var r=e.getBoundingClientRect(),o=document.createElement("div");return o.classList.add("i18next-editor-highlight"),o.style="position: absolute; z-index: 99999; pointer-events: none; top: ".concat(r.top-2+window.scrollY,"px; left: ").concat(r.left-2+window.scrollX,"px; height: ").concat(r.height+4,"px; width: ").concat(r.width+4,"px; border: ").concat("none"===t?"none":"1px solid ".concat(t),"; border-radius: 15px; ").concat(n?"box-shadow: inset 1px 1px 5px rgba(255, 255, 255, 0.1), inset -1px -1px 5px rgba(61, 67, 69, 0.3), 0 0 20px 0 ".concat(n,";"):""),o.setAttribute("data-i18next-editor-element","true"),o}ki.addHandler("selectedKeys",(function(e){var t=e.keys,n=[];Object.values(ca.data).forEach((function(e){Object.values(e.keys).filter((function(e){return t.includes(e.qualifiedKey)})).length&&n.push(e)})),Vi.forEach((function(e){oa(e,e.node,e.keys,!1)})),n.forEach((function(e){ra(e,e.node,e.keys)})),Vi=n})),ki.addHandler("isLocizeEnabled",(function(e,t){ki.source=t.source,ki.origin=t.origin,ki.sendLocizeIsEnabled(e),ki.requestInitialize(ki.config)})),ki.addHandler("sendMatchedUninstrumented",(function(e){e.length&&(e.forEach((function(e){var t=ui.get(e.eleUniqueID);ca.save(e.eleUniqueID,void 0,e.textType,va(e.eleUniqueID,e.textType,No({},"".concat(e.textType),{ns:e.ns,key:e.key}),e.value),null==t?void 0:t.node),t&&t.keys&&delete t.keys["".concat(e.textType)],t&&t.keys&&!Object.keys(t.keys).length&&ui.remove(e.eleUniqueID,t.node)})),ki.sendCurrentParsedContent())})),ei&&ei.insertRule(".i18next-editor-button:hover { background-color: rgba(21, 65, 154, 1) !important; }");var Xi=Math.min,Ji=Math.max,$i=Math.round,Yi=e=>({x:e,y:e}),Gi={left:"right",right:"left",bottom:"top",top:"bottom"},Zi={start:"end",end:"start"};function Qi(e,t,n){return Ji(e,Xi(t,n))}function eu(e,t){return"function"==typeof e?e(t):e}function tu(e){return e.split("-")[0]}function nu(e){return e.split("-")[1]}function ru(e){return"x"===e?"y":"x"}function ou(e){return"y"===e?"height":"width"}function iu(e){return["top","bottom"].includes(tu(e))?"y":"x"}function uu(e){return ru(iu(e))}function au(e){return e.replace(/start|end/g,e=>Zi[e])}function su(e){return e.replace(/left|right|bottom|top/g,e=>Gi[e])}function lu(e){return"number"!=typeof e?function(e){return o({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function cu(e){var{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var du=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],pu=["mainAxis","crossAxis","limiter"];function fu(e,t,n){var r,{reference:o,floating:i}=e,u=iu(t),a=uu(t),s=ou(a),l=tu(t),c="y"===u,d=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,f=o[s]/2-i[s]/2;switch(l){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:p};break;case"left":r={x:o.x-i.width,y:p};break;default:r={x:o.x,y:o.y}}switch(nu(t)){case"start":r[a]-=f*(n&&c?-1:1);break;case"end":r[a]+=f*(n&&c?-1:1)}return r}var hu=function(){var e=t((function*(e,t,n){for(var{placement:r="bottom",strategy:i="absolute",middleware:u=[],platform:a}=n,s=u.filter(Boolean),l=yield null==a.isRTL?void 0:a.isRTL(t),c=yield a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=fu(c,r,l),f=r,h={},g=0,v=0;v<s.length;v++){var{name:m,fn:y}=s[v],{x:b,y:E,data:A,reset:w}=yield y({x:d,y:p,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=b?b:d,p=null!=E?E:p,h=o(o({},h),{},{[m]:o(o({},h[m]),A)}),w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?yield a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:d,y:p}=fu(c,f,l))),v=-1)}return{x:d,y:p,placement:f,strategy:i,middlewareData:h}}));return function(t,n,r){return e.apply(this,arguments)}}();function gu(e,t){return vu.apply(this,arguments)}function vu(){return(vu=t((function*(e,t){var n;void 0===t&&(t={});var{x:r,y:o,platform:i,rects:u,elements:a,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=eu(t,e),h=lu(f),g=a[p?"floating"===d?"reference":"floating":d],v=cu(yield i.getClippingRect({element:null==(n=yield null==i.isElement?void 0:i.isElement(g))||n?g:g.contextElement||(yield null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:c,strategy:s})),m="floating"===d?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,y=yield null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating),b=(yield null==i.isElement?void 0:i.isElement(y))&&(yield null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},E=cu(i.convertOffsetParentRelativeRectToViewportRelativeRect?yield i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:y,strategy:s}):m);return{top:(v.top-E.top+h.top)/b.y,bottom:(E.bottom-v.bottom+h.bottom)/b.y,left:(v.left-E.left+h.left)/b.x,right:(E.right-v.right+h.right)/b.x}}))).apply(this,arguments)}function mu(){return(mu=t((function*(e,t){var{placement:n,platform:r,elements:o}=e,i=yield null==r.isRTL?void 0:r.isRTL(o.floating),u=tu(n),a=nu(n),s="y"===iu(n),l=["left","top"].includes(u)?-1:1,c=i&&s?-1:1,d=eu(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(f="end"===a?-1*h:h),s?{x:f*c,y:p*l}:{x:p*l,y:f*c}}))).apply(this,arguments)}function yu(){return"undefined"!=typeof window}function bu(e){return wu(e)?(e.nodeName||"").toLowerCase():"#document"}function Eu(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Au(e){var t;return null==(t=(wu(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function wu(e){return!!yu()&&(e instanceof Node||e instanceof Eu(e).Node)}function xu(e){return!!yu()&&(e instanceof Element||e instanceof Eu(e).Element)}function Cu(e){return!!yu()&&(e instanceof HTMLElement||e instanceof Eu(e).HTMLElement)}function Ou(e){return!(!yu()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Eu(e).ShadowRoot)}function ku(e){var{overflow:t,overflowX:n,overflowY:r,display:o}=Lu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Fu(e){return["table","td","th"].includes(bu(e))}function Du(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function Bu(e){var t=Su(),n=xu(e)?Lu(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function Su(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ju(e){return["html","body","#document"].includes(bu(e))}function Lu(e){return Eu(e).getComputedStyle(e)}function Pu(e){return xu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Nu(e){if("html"===bu(e))return e;var t=e.assignedSlot||e.parentNode||Ou(e)&&e.host||Au(e);return Ou(t)?t.host:t}function Tu(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);var o=function e(t){var n=Nu(t);return ju(n)?t.ownerDocument?t.ownerDocument.body:t.body:Cu(n)&&ku(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),u=Eu(o);if(i){var a=Iu(u);return t.concat(u,u.visualViewport||[],ku(o)?o:[],a&&n?Tu(a):[])}return t.concat(o,Tu(o,[],n))}function Iu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ru(e){var t=Lu(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Cu(e),i=o?e.offsetWidth:n,u=o?e.offsetHeight:r,a=$i(n)!==i||$i(r)!==u;return a&&(n=i,r=u),{width:n,height:r,$:a}}function Mu(e){return xu(e)?e:e.contextElement}function zu(e){var t=Mu(e);if(!Cu(t))return Yi(1);var n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ru(t),u=(i?$i(n.width):n.width)/r,a=(i?$i(n.height):n.height)/o;return u&&Number.isFinite(u)||(u=1),a&&Number.isFinite(a)||(a=1),{x:u,y:a}}var qu=Yi(0);function Uu(e){var t=Eu(e);return Su()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:qu}function Hu(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=Mu(e),u=Yi(1);t&&(r?xu(r)&&(u=zu(r)):u=zu(e));var a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Eu(e))&&t}(i,n,r)?Uu(i):Yi(0),s=(o.left+a.x)/u.x,l=(o.top+a.y)/u.y,c=o.width/u.x,d=o.height/u.y;if(i)for(var p=Eu(i),f=r&&xu(r)?Eu(r):r,h=p,g=Iu(h);g&&r&&f!==h;){var v=zu(g),m=g.getBoundingClientRect(),y=Lu(g),b=m.left+(g.clientLeft+parseFloat(y.paddingLeft))*v.x,E=m.top+(g.clientTop+parseFloat(y.paddingTop))*v.y;s*=v.x,l*=v.y,c*=v.x,d*=v.y,s+=b,l+=E,g=Iu(h=Eu(g))}return cu({width:c,height:d,x:s,y:l})}function _u(e,t){var n=Pu(e).scrollLeft;return t?t.left+n:Hu(Au(e)).left+n}function Vu(e,t,n){void 0===n&&(n=!1);var r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:_u(e,r)),y:r.top+t.scrollTop}}function Ku(e,t,n){var r;if("viewport"===t)r=function(e,t){var n=Eu(e),r=Au(e),o=n.visualViewport,i=r.clientWidth,u=r.clientHeight,a=0,s=0;if(o){i=o.width,u=o.height;var l=Su();(!l||l&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:u,x:a,y:s}}(e,n);else if("document"===t)r=function(e){var t=Au(e),n=Pu(e),r=e.ownerDocument.body,o=Ji(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ji(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),u=-n.scrollLeft+_u(e),a=-n.scrollTop;return"rtl"===Lu(r).direction&&(u+=Ji(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:u,y:a}}(Au(e));else if(xu(t))r=function(e,t){var n=Hu(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Cu(e)?zu(e):Yi(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{var o=Uu(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return cu(r)}function Wu(e,t){var n=Nu(e);return!(n===t||!xu(n)||ju(n))&&("fixed"===Lu(n).position||Wu(n,t))}function Xu(e,t,n){var r=Cu(t),o=Au(t),i="fixed"===n,u=Hu(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=Yi(0);if(r||!r&&!i)if(("body"!==bu(t)||ku(o))&&(a=Pu(t)),r){var l=Hu(t,!0,i,t);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else o&&(s.x=_u(o));var c=!o||r||i?Yi(0):Vu(o,a);return{x:u.left+a.scrollLeft-s.x-c.x,y:u.top+a.scrollTop-s.y-c.y,width:u.width,height:u.height}}function Ju(e){return"static"===Lu(e).position}function $u(e,t){if(!Cu(e)||"fixed"===Lu(e).position)return null;if(t)return t(e);var n=e.offsetParent;return Au(e)===n&&(n=n.ownerDocument.body),n}function Yu(e,t){var n=Eu(e);if(Du(e))return n;if(!Cu(e)){for(var r=Nu(e);r&&!ju(r);){if(xu(r)&&!Ju(r))return r;r=Nu(r)}return n}for(var o=$u(e,t);o&&Fu(o)&&Ju(o);)o=$u(o,t);return o&&ju(o)&&Ju(o)&&!Bu(o)?n:o||function(e){for(var t=Nu(e);Cu(t)&&!ju(t);){if(Bu(t))return t;if(Du(t))return null;t=Nu(t)}return null}(e)||n}var Gu={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,u=Au(r),a=!!t&&Du(t.floating);if(r===u||a&&i)return n;var s={scrollLeft:0,scrollTop:0},l=Yi(1),c=Yi(0),d=Cu(r);if((d||!d&&!i)&&(("body"!==bu(r)||ku(u))&&(s=Pu(r)),Cu(r))){var p=Hu(r);l=zu(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}var f=!u||d||i?Yi(0):Vu(u,s,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+c.x+f.x,y:n.y*l.y-s.scrollTop*l.y+c.y+f.y}},getDocumentElement:Au,getClippingRect:function(e){var{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?Du(t)?[]:function(e,t){var n=t.get(e);if(n)return n;for(var r=Tu(e,[],!1).filter(e=>xu(e)&&"body"!==bu(e)),o=null,i="fixed"===Lu(e).position,u=i?Nu(e):e;xu(u)&&!ju(u);){var a=Lu(u),s=Bu(u);s||"fixed"!==a.position||(o=null),(i?!s&&!o:!s&&"static"===a.position&&!!o&&["absolute","fixed"].includes(o.position)||ku(u)&&!s&&Wu(e,u))?r=r.filter(e=>e!==u):o=a,u=Nu(u)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=i[0],a=i.reduce((e,n)=>{var r=Ku(t,n,o);return e.top=Ji(r.top,e.top),e.right=Xi(r.right,e.right),e.bottom=Xi(r.bottom,e.bottom),e.left=Ji(r.left,e.left),e},Ku(t,u,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Yu,getElementRects:function(){var e=t((function*(e){var t=this.getOffsetParent||Yu,n=this.getDimensions,r=yield n(e.floating);return{reference:Xu(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}}));return function(t){return e.apply(this,arguments)}}(),getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){var{width:t,height:n}=Ru(e);return{width:t,height:n}},getScale:zu,isElement:xu,isRTL:function(e){return"rtl"===Lu(e).direction}},Zu=function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn:n=>t((function*(){var t,r,{x:i,y:u,placement:a,middlewareData:s}=n,l=yield function(e,t){return mu.apply(this,arguments)}(n,e);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:u+l.y,data:o(o({},l),{},{placement:a})}}))()}},Qu=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:n=>t((function*(){var{x:t,y:r,placement:u}=n,a=eu(e,n),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:e=>{var{x:t,y:n}=e;return{x:t,y:n}}}}=a,d=i(a,pu),p={x:t,y:r},f=yield gu(n,d),h=iu(tu(u)),g=ru(h),v=p[g],m=p[h];if(s){var y="y"===g?"bottom":"right";v=Qi(v+f["y"===g?"top":"left"],v,v-f[y])}if(l){var b="y"===h?"bottom":"right";m=Qi(m+f["y"===h?"top":"left"],m,m-f[b])}var E=c.fn(o(o({},n),{},{[g]:v,[h]:m}));return o(o({},E),{},{data:{x:E.x-t,y:E.y-r,enabled:{[g]:s,[h]:l}}})}))()}},ea=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:n=>t((function*(){var t,r,{placement:o,middlewareData:u,rects:a,initialPlacement:s,platform:l,elements:c}=n,d=eu(e,n),{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0}=d,y=i(d,du);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};var b=tu(o),E=iu(s),A=tu(s)===s,w=yield null==l.isRTL?void 0:l.isRTL(c.floating),x=h||(A||!m?[su(s)]:function(e){var t=su(e);return[au(e),t,au(t)]}(s)),C="none"!==v;!h&&C&&x.push(...function(e,t,n,r){var o=nu(e),i=function(e,t,n){var r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(tu(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(au)))),i}(s,m,v,w));var O=[s,...x],k=yield gu(n,y),F=[],D=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&F.push(k[b]),f){var B=function(e,t,n){void 0===n&&(n=!1);var r=nu(e),o=uu(e),i=ou(o),u="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(u=su(u)),[u,su(u)]}(o,a,w);F.push(k[B[0]],k[B[1]])}if(D=[...D,{placement:o,overflows:F}],!F.every(e=>e<=0)){var S,j,L=((null==(S=u.flip)?void 0:S.index)||0)+1,P=O[L];if(P)return{data:{index:L,overflows:D},reset:{placement:P}};var N=null==(j=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:j.placement;if(!N)switch(g){case"bestFit":var T,I=null==(T=D.filter(e=>{if(C){var t=iu(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:T[0];I&&(N=I);break;case"initialPlacement":N=s}if(o!==N)return{reset:{placement:N}}}return{}}))()}},ta=e=>({name:"arrow",options:e,fn:n=>t((function*(){var{x:t,y:r,placement:i,rects:u,platform:a,elements:s,middlewareData:l}=n,{element:c,padding:d=0}=eu(e,n)||{};if(null==c)return{};var p=lu(d),f={x:t,y:r},h=uu(i),g=ou(h),v=yield a.getDimensions(c),m="y"===h,y=m?"top":"left",b=m?"bottom":"right",E=m?"clientHeight":"clientWidth",A=u.reference[g]+u.reference[h]-f[h]-u.floating[g],w=f[h]-u.reference[h],x=yield null==a.getOffsetParent?void 0:a.getOffsetParent(c),C=x?x[E]:0;C&&(yield null==a.isElement?void 0:a.isElement(x))||(C=s.floating[E]||u.floating[g]);var O=A/2-w/2,k=C/2-v[g]/2-1,F=Xi(p[y],k),D=Xi(p[b],k),B=F,S=C-v[g]-D,j=C/2-v[g]/2+O,L=Qi(B,j,S),P=!l.arrow&&null!=nu(i)&&j!==L&&u.reference[g]/2-(j<B?F:D)-v[g]/2<0,N=P?j<B?j-B:j-S:0;return{[h]:f[h]+N,data:o({[h]:L,centerOffset:j-L-N},P&&{alignmentOffset:N}),reset:P}}))()}),na={};function ra(e,t,n){var r=e.id,o=ji(t);if(!e.highlightBox){var i=Wi(o,"none",Zo);document.body.appendChild(i),e.highlightBox=i}na[r]=!0}function oa(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=e.id;r&&na[o]||(e.highlightBox&&(document.body.removeChild(e.highlightBox),delete e.highlightBox),e.ribbonBox&&(document.body.removeChild(e.ribbonBox),delete e.ribbonBox),delete na[o])}function ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var aa={};var sa,la,ca={save:function(e,t,n,r,o,i){e&&n&&r&&o&&(aa[e]||(aa[e]={id:e,node:o,subliminal:t}),t&&(aa[e].subliminal=t),aa[e].keys=ua(ua({},aa[e].keys),{},No({},"".concat(n),r)),i&&(aa[e].children=ua(ua({},aa[e].children),{},No({},"".concat(n,"-").concat(i.map((function(e){return e.childIndex})).join(",")),i))))},clean:function(){Object.values(aa).forEach((function(e){document.body.contains(e.node)||(oa(e.id,e.node),delete aa[e.id])}))},get:function(e){return aa[e]},data:aa};function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?da(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):da(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(){if("undefined"!=typeof Document){var e=1;Document.prototype.hasOwnProperty("uniqueID")||(console.info('"document.uniqueID" not implemented; creating shim'),Object.defineProperty(Document.prototype,"uniqueID",{get:function(){return e++},enumerable:!1,configurable:!1}),Object.defineProperty(Element.prototype,"uniqueID",{get:function(){return Object.defineProperty(this,"uniqueID",{value:document.uniqueID,writable:!1,enumerable:!1,configurable:!1}),this.uniqueID},enumerable:!1,configurable:!0}))}}();var fa=[];function ha(e){la=e}function ga(e,t,n,r){var o,i,u,a=n.invisibleMeta,s=n.text;if(a&&a.key&&a.ns)return sa||(sa=la.getSourceLng()),pa(pa({eleUniqueID:e,textType:t,children:r&&r.map?r.map((function(e){return e.childIndex})).join(","):null,qualifiedKey:"".concat(a.ns,":").concat(a.key)},a),{},{extractedText:s,i18nTargetLng:null===(o=la)||void 0===o?void 0:o.getLng(),i18nSourceLng:sa,i18nRawText:No(No({},"".concat(a.lng),"translation"===a.source&&la?null===(i=la)||void 0===i?void 0:i.getResource(a.lng,a.ns,a.key):null),"".concat(sa),"translation"===a.source&&la?null===(u=la)||void 0===u?void 0:u.getResource(sa,a.ns,a.key):null)})}function va(e,t){var n,r,o,i,u,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0,c=a[t];if(c){sa||(sa=la.getSourceLng());var d=la.getLng();return{eleUniqueID:e,textType:t,children:l&&l.map?l.map((function(e){return e.childIndex})).join(","):null,qualifiedKey:c.key&&(c.ns||null!==(n=la)&&void 0!==n&&n.getDefaultNS())?"".concat(c.ns||(null===(r=la)||void 0===r?void 0:r.getDefaultNS()),":").concat(c.key):null,key:c.key,ns:c.ns||(null===(o=la)||void 0===o?void 0:o.getDefaultNS()),extractedText:s,i18nTargetLng:d,i18nSourceLng:sa,i18nRawText:No(No({},"".concat(d),la&&c.ns&&c.key&&(null===(i=la)||void 0===i?void 0:i.getResource(d,c.ns,c.key))||s),"".concat(sa),la&&c.ns&&c.key?null===(u=la)||void 0===u?void 0:u.getResource(sa,c.ns,c.key):null)}}}function ma(e){return/^\s*$/.test(e)}function ya(e,t,n,r,o,i,u){var a=ca.get(e),s=a&&a.keys["".concat(n)]||{},l=r["".concat(n)]||{};!l.key&&s.key&&(l.key=s.key),!l.ns&&s.ns&&(l.ns=s.ns),r["".concat(n)]=l;var c=va(e,n,r,u,i);c.qualifiedKey?(ca.save(e,null,n,c,o,i),ui.removeKey(e,n,o)):ui.save(e,n,o,u)}function ba(e){if(!($o.indexOf(e.nodeName)>-1)){var t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=pi(e),r=hi(e),o={};if(n&&n.indexOf(";")>=0){for(var i=n.split(";"),u=0,a=i.length;u<a;u++)if(""!=i[u]){var s=fi(i[u]),l=li(s,2),c=l[0],d=l[1];o[d]=c}}else if(n){var p=fi(n),f=li(p,2),h=f[0],g=f[1];o[g]=h}if(Object.keys(o).length<1)return null;var v=Object.keys(o).reduce((function(e,n){var i=o[n],u=r,a=i;if(t&&i.indexOf(":")>-1){var s=i.split(":");a=s[1],u=s[0]}return e[n]={key:a,ns:u},e}),{});return v}(e),n=!1;if(e.childNodes&&!fa.includes(e.uniqueID)){var r=[];e.childNodes.forEach((function(t,o){if(r.length&&"#text"!==t.nodeName&&(fa.push(t.uniqueID),r.push({childIndex:o,child:t})),"#text"===t.nodeName){var i=t.textContent;if(!ma(i)){var u=Vo(i),a=i.startsWith(zo);if(u&&(n=!0),a&&u){var s=_o(i);ui.remove(e.uniqueID,e),ca.save(e.uniqueID,s.invisibleMeta,"text",ga(e.uniqueID,"text",s),e)}else if(a)r.push({childIndex:o,child:t,text:i});else if(r.length&&!u)r.push({childIndex:o,child:t,text:i});else if(r.length&&u){r.push({childIndex:o,child:t,text:i});var l=_o(r.reduce((function(e,t){return e+t.text}),""));ui.removeKey(e.uniqueID,"html",e,i),ca.save(e.uniqueID,l.invisibleMeta,"html",ga(e.uniqueID,"html",l,r),e,r),r=[]}}}})),n||e.childNodes.forEach((function(n,o){r.length&&"#text"!==n.nodeName&&fa.push(n.uniqueID);var i=n.textContent;t&&t.html&&o<e.childNodes.length-1?r.push({childIndex:o,child:n,text:i}):t&&t.html&&o===e.childNodes.length-1?(r.push({childIndex:o,child:n,text:i}),ya(e.uniqueID,0,"html",t,e,r,e.innerHTML),r=[]):i&&(t&&t.text?ya(e.uniqueID,0,"text",t,e,void 0,i):"#text"!==n.nodeName||ma(i)||ui.save(e.uniqueID,"text",e,i))}))}e.getAttribute&&Jo.forEach((function(n){var r=e.getAttribute(n);if(Vo(r)){var o=_o(r);ui.removeKey(e.uniqueID,n,e),ca.save(e.uniqueID,o.invisibleMeta,n,ga(e.uniqueID,"".concat(n),o),e)}else r&&(t&&t[n]?ya(e.uniqueID,0,n,t,e,void 0,r):ui.save(e.uniqueID,n,e,r))}))}}function Ea(e){return sa=void 0,function e(t,n){if(!t.dataset||"true"!==t.dataset.i18nextEditorElement){n(t);var r=ca.get(t.uniqueID),o=ui.get(t.uniqueID);if(r||o){var i,u=null===(i=t.parentElement)||void 0===i?void 0:i.uniqueID;ui.remove(u,t.parentElement)}for(var a=t.childNodes,s=0;s<a.length;s++)e(a[s],n)}}(e,ba),ca.clean(),fa=[],ca.data}var Aa={};function wa(e){if(e.uniqueID){var t=Aa[e.uniqueID];if(t&&t.triggered>10&&t.lastTriggerDate+500<Date.now())return!t.warned&&console&&(console.warn("locize ::: ignoring element change - an element is rerendering too often in short interval","\n",'consider adding the "data-locize-editor-ignore:" attribute to the element:',e),t.warned=!0),!0}var n=e.dataset&&("true"===e.dataset.i18nextEditorElement||"true"===e.dataset.locizeEditorIgnore);return!n&&e.parentElement?wa(e.parentElement):n}function xa(e,t){var n,r,o=[],i=ci((function(){t(o),o=[]}),100),u=new MutationObserver((function(e){if(n)return r&&clearTimeout(r),void(r=setTimeout((function(){n&&(n=!1)}),200));var t=!1;e.forEach((function(e){if("attributes"!==e.type||Jo.includes(e.attributeName)){if(Object.keys(Aa).forEach((function(e){Aa[e].lastTriggerDate+6e4<Date.now()&&delete Aa[e]})),"childList"===e.type){var n=0;if(wa(e.target)||(e.addedNodes.forEach((function(e){wa(e)||(n+=1)}),0),e.removedNodes.forEach((function(e){wa(e)||(n+=1)}),0)),0===n)return}if(t=!0,e.target&&e.target.uniqueID){var r=Aa[e.target.uniqueID]||{triggered:0};r.triggered=r.triggered+1,r.lastTriggerDate=Date.now(),Aa[e.target.uniqueID]=r}o.reduce((function(t,n){return!(!t&&!n.contains(e.target)&&e.target.parentElement)}),!1)||(o=o.filter((function(t){return!e.target.contains(t)}))).push(e.target)}})),t&&i()}));return{start:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{attributes:!0,childList:!0,characterData:!0,subtree:!0};t([e]),u.observe(e,n)},skipNext:function(){n=!0}}}function Ca(){for(var e=0,t=0,n=0,r=0,o=document.getElementsByClassName("i18next-editor-popup"),i=null,u=null,a=1e5,s=0;s<o.length;s++){var l=o[s],c=h(l);l.onmousedown=function(){this.style.zIndex=""+ ++a},c&&(c.parentPopup=l,c.onmousedown=d)}function d(e){u||(u=document.getElementById("i18next-editor-popup-overlay")),u&&(u.style.display="block"),Ti(),(i=this.parentPopup).style.zIndex=""+ ++a,e=e||window.event,n=e.clientX,r=e.clientY,document.onmouseup=f,document.onmousemove=p}function p(o){i&&(o=o||window.event,e=n-o.clientX,t=r-o.clientY,n=o.clientX,r=o.clientY,i.style.top=i.offsetTop-t+"px",i.style.left=i.offsetLeft-e+"px")}function f(){Ni(),u&&(u.style.display="none");var e=document.getElementById("i18next-editor-popup");window.localStorage.setItem("locize_popup_pos",JSON.stringify({top:parseInt(document.defaultView.getComputedStyle(e).top,10),left:parseInt(document.defaultView.getComputedStyle(e).left,10)})),document.onmouseup=null,document.onmousemove=null}function h(e){var t=e.getElementsByClassName("i18next-editor-popup-header");return 1===t.length?t[0]:null}}function Oa(){for(var e,t,n,r,o=document.getElementsByClassName("i18next-editor-popup"),i=null,u=null,a=0;a<o.length;a++){var s=o[a],l=document.createElement("div");l.className="resizer-right",s.appendChild(l),l.addEventListener("mousedown",p,!1),l.parentPopup=s;var c=document.createElement("div");c.className="resizer-bottom",s.appendChild(c),c.addEventListener("mousedown",p,!1),c.parentPopup=s;var d=document.createElement("div");d.className="resizer-both",s.appendChild(d),d.addEventListener("mousedown",p,!1),d.parentPopup=s}function p(o){Ti(),u||(u=document.getElementById("i18next-editor-popup-overlay")),u&&(u.style.display="block"),i=this.parentPopup,e=o.clientX,t=o.clientY,n=parseInt(document.defaultView.getComputedStyle(i).width,10),r=parseInt(document.defaultView.getComputedStyle(i).height,10),document.documentElement.addEventListener("mousemove",f,!1),document.documentElement.addEventListener("mouseup",h,!1)}function f(o){i.style.width=n+o.clientX-e+"px",i.style.height=r+o.clientY-t+"px"}function h(){Ni(),u&&(u.style.display="none");var e=document.getElementById("i18next-editor-popup");window.localStorage.setItem("locize_popup_size",JSON.stringify({width:parseInt(document.defaultView.getComputedStyle(e).width,10),height:parseInt(document.defaultView.getComputedStyle(e).height,10)})),document.documentElement.removeEventListener("mousemove",f,!1),document.documentElement.removeEventListener("mouseup",h,!1)}}function ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Da,Ba={getResource:function(e,t,n){return{}},setResource:function(e,t,n,r){},getResourceBundle:function(e,t,n){n({})},getDefaultNS:function(){},getLng:function(){},getSourceLng:function(){},getLocizeDetails:function(){return{}},bindLanguageChange:function(e){},bindMissingKeyHandler:function(e){},triggerRerender:function(){}};function Sa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ba,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{show:!1,qsProp:"incontext"};if("undefined"!=typeof document){var n=t.show||"true"===gi(t.qsProp||"incontext"),r=document.getElementById("locize"),o={};if(["projectId","version"].forEach((function(e){if(r){var t=r.getAttribute(e.toLowerCase())||r.getAttribute("data-"+e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(o[e]=t)}})),o=Fa(Fa(Fa({},e.getLocizeDetails()),o),t),ki.config=o,ki.init(e),ha(e),null==e||e.bindLanguageChange((function(t){ki.sendCurrentTargetLanguage(e.getLng())})),document.body)return i();"undefined"!=typeof window&&window.addEventListener("load",(function(){return i()}))}function i(){if(mi||n){var e=xa(document.body,(function(e){e.forEach((function(e){Ea(e)})),ki.sendCurrentParsedContent()}));if(e.start(),Ni(e),mi||document.getElementById(zi)||(document.body.append(qi(Qo(),(function(){ki.requestInitialize(o)}))),Ca(),Oa()),"undefined"!=typeof window){var t=window.document.location.href;ki.sendHrefchanged(t);var r=window.document.querySelector("body");new window.MutationObserver((function(e){e.forEach((function(e){t!==window.document.location.href&&(t=window.document.location.href,ki.sendHrefchanged(t))}))})).observe(r,{childList:!0,subtree:!0})}}}}function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pa(e){var t={getResource:function(t,n,r){return e.getResource&&e.getResource(t,n,r)},setResource:function(t,n,r,o){return e.addResource(t,n,r,o,{silent:!0})},getResourceBundle:function(t,n,r){e.loadNamespaces(n,(function(){r(e.getResourceBundle(t,n))}))},getDefaultNS:function(){return e.options.defaultNS},getLng:function(){return e.resolvedLanguage||e.languages&&e.languages[0]||e.options.lng},getSourceLng:function(){var t=e.options.fallbackLng;if("string"==typeof t)return t;if(Array.isArray(t))return t[t.length-1];if(t&&t.default){if("string"==typeof t.default)return t;if(Array.isArray(t.default))return t.default[t.default.length-1]}if("function"==typeof t){var n=t(e.resolvedLanguage);if("string"==typeof n)return n;if(Array.isArray(n))return n[n.length-1]}return"dev"},getLocizeDetails:function(){var n={backendName:e.services.backendConnector.backend&&e.services.backendConnector.backend.options&&e.services.backendConnector.backend.options.loadPath&&e.services.backendConnector.backend.options.loadPath.indexOf(".locize.")>0?"I18nextLocizeBackend":e.services.backendConnector.backend?e.services.backendConnector.backend.constructor.name:"options.resources",sourceLng:t.getSourceLng(),i18nFormat:"v3"===e.options.compatibilityJSON?"i18next_v3":"i18next_v4",i18nFramework:"i18next",isLocizify:e.options.isLocizify,defaultNS:e.options.defaultNS,targetLngs:Di(new Set([].concat(e.options.preload,e.options.supportedLngs,[t.getLng()]))).filter((function(e){return"cimode"!==e&&!1!==e&&"false"!==e&&void 0!==e&&e!==t.getSourceLng()})),ns:Di(new Set([].concat(e.options.ns,e.options.fallbackNS,e.options.defaultNS))).filter((function(e){return!1!==e&&"false"!==e}))};if(!e.options.backend&&!e.options.editor)return n;var r=e.options.editor||e.options.backend;return La(La({},n),{},{projectId:r.projectId,version:r.version})},bindLanguageChange:function(t){e.on("languageChanged",t)},bindMissingKeyHandler:function(t){e.options.missingKeyHandler=function(e,n,r,o,i,u){i||t(e,n,r,o)}},triggerRerender:function(){e.emit("editorSaved")}};return t}function Na(e,t){e.use(Xo),"string"==typeof t.postProcess?t.postProcess=[t.postProcess,"subliminal"]:Array.isArray(t.postProcess)?t.postProcess.push("subliminal"):t.postProcess="subliminal",t.postProcessPassResolved=!0}var Ta=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.qsProp=e.qsProp||"incontext",{type:"3rdParty",init:function(t){var n=t.options;Da=t;var r=Pa(t),o=e.show||"true"===gi(e.qsProp);(mi||o)&&Na(Da,n),Sa(r,e)}}}(),Ia=["implementation"];"undefined"!=typeof window&&(window.locizeStartStandalone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.implementation,n=Ui(e,Ia);Sa(t,Object.keys(n).length>0?n:void 0)});var{i18next:Ra}=Qr,Ma={saveMissingTo:"all"},za={reloadOnSave:!0,bindSavedMissing:!0};function qa(e,t){if("undefined"==typeof window)return null;t||(t=window.location.href.toLowerCase()),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}Ra.use(jo).use(Ta),Ra.on("editorSaved",()=>{Qr.forceRerender()});var Ua=Ra.init;return Ra.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;e=o(o(o({},za),e),{},{isLocizify:!0});var n=document.getElementById("locizify");if(n){var r={},i={},u=["fallbackLng","saveMissing","debug","autorun","ele","cleanIndent","cleanWhitespace","namespace","namespaceFromPath","load"],a=["ignoreTags","ignoreIds","ignoreClasses","translateAttributes","mergeTags","inlineTags","ignoreInlineOn","ignoreCleanIndentFor","ns"],s=["projectId","apiKey","referenceLng","version","allowedAddOrUpdateHost","autoPilot","cdnType","noCache"];u.forEach(e=>{var t=n.getAttribute(e.toLowerCase())||n.getAttribute("data-"+e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(r[e]=t)}),a.forEach(e=>{var t=n.getAttribute(e.toLowerCase())||n.getAttribute("data-"+e.toLowerCase());null!=t&&(r[e]=t.split(",").map(e=>e.trim()))}),s.forEach(e=>{var t=n.getAttribute(e.toLowerCase())||n.getAttribute("data-"+e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),"autopilot"===e.toLowerCase()&&""===t&&(t=!0),null!=t&&(i[e]=t),t||("true"===(t=qa(e.toLowerCase()))&&(t=!0),"false"===t&&(t=!1),"autopilot"===e.toLowerCase()&&""===t&&(t=!0),null!=t&&(i[e]=t))}),i.allowedAddOrUpdateHost&&(i.allowedAddOrUpdateHosts=[i.allowedAddOrUpdateHost],delete i.allowedAddOrUpdateHost),(e=o(o(o({},za),e),r)).backend=o(o({},e.backend),i)}function l(e,n){t(e,n)}if(!e.backend.apiKey&&qa("apikey")&&(e.backend.apiKey=qa("apikey")),!e.backend.autoPilot||"false"===e.backend.autoPilot)return Ua.call(Ra,o(o({},e),Ma),l);var c=new jo(e.backend);c.getOptions((t,n)=>{t&&"object"==typeof console&&"function"==typeof console.error&&console.error(t),Ua.call(Ra,o(o(o({},n),e),Ma),l)})},Qr.getLanguages=function(e){if(Ra.services.backendConnector)Ra.services.backendConnector.backend.getLanguages(e);else{Ra.on("initialized",(function t(){Ra.off("initialized",t),Ra.services.backendConnector.backend.getLanguages(e)}))}},Qr.getOptions=function(e){if(Ra.services.backendConnector)Ra.services.backendConnector.backend.getOptions(e);else{Ra.on("initialized",(function t(){Ra.off("initialized",t),Ra.services.backendConnector.backend.getOptions(e)}))}},Qr.editor={setEditorLng:function(e){ki.sendCurrentTargetLanguage(e)}},Qr}));
|