Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18next-client

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-client - npm Package Compare versions

Comparing version 1.10.3 to 1.11.0

spec/functions/functions.dir.spec.js

2

bower.json
{
"name": "i18next",
"version": "1.10.3",
"version": "1.11.0",
"main": "./i18next.js",

@@ -5,0 +5,0 @@ "dependencies": {},

@@ -0,1 +1,11 @@

### 1.11.0
- Add nsseparator and keyseparator as options to translation function [PR 446](https://github.com/i18next/i18next/pull/446)
- Resolves issue #448 - TypeScript errors [PR 449](https://github.com/i18next/i18next/pull/449)
- Fixing _deepExtend to handle keys deep existing in source and target [PR 444](https://github.com/i18next/i18next/pull/444)
- `resource` to `resources` in addResources function [PR 440](https://github.com/i18next/i18next/pull/440)
- Runs multiple post processes for missing translations [PR 438](https://github.com/i18next/i18next/pull/438)
- Add support to override Ajax HTTP headers [PR 431](https://github.com/i18next/i18next/pull/431)
- Fixed mnk plural definition [PR 427](https://github.com/i18next/i18next/pull/427)
- Add dir function to return directionality of current language, closes… [PR 413](https://github.com/i18next/i18next/pull/413)
### 1.10.3

@@ -2,0 +12,0 @@ - fixes issue where lng get fixed on data-i18n-options

@@ -1,6 +0,7 @@

// i18next, v1.10.3
// i18next, v1.11.0
// Copyright (c)2015 Jan Mühlemann (jamuhl).
// Distributed under MIT license
// http://i18next.com
!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd&&define([],b)}(this,function(){function a(a,b){if(!b||"function"==typeof b)return a;for(var c in b)a[c]=b[c];return a}function b(a,c){for(var d in c)d in a?b(a[d],c[d]):a[d]=c[d];return a}function c(a,b,c){var d,e=0,f=a.length,g=void 0===f||"[object Array]"!==Object.prototype.toString.apply(a)||"function"==typeof a;if(c)if(g){for(d in a)if(b.apply(a[d],c)===!1)break}else for(;f>e&&b.apply(a[e++],c)!==!1;);else if(g){for(d in a)if(b.call(a[d],d,a[d])===!1)break}else for(;f>e&&b.call(a[e],e,a[e++])!==!1;);return a}function d(a){return"string"==typeof a?a.replace(/[&<>"'\/]/g,function(a){return S[a]}):a}function e(a){var b=function(a){if(window.XMLHttpRequest)return a(null,new XMLHttpRequest);if(window.ActiveXObject)try{return a(null,new ActiveXObject("Msxml2.XMLHTTP"))}catch(b){return a(null,new ActiveXObject("Microsoft.XMLHTTP"))}return a(new Error)},c=function(a){if("string"==typeof a)return a;var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b.join("&")},d=function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):d>127&&2048>d?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},e=function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a=d(a);var c,e,f,g,h,i,j,k="",l=0;do c=a.charCodeAt(l++),e=a.charCodeAt(l++),f=a.charCodeAt(l++),g=c>>2,h=(3&c)<<4|e>>4,i=(15&e)<<2|f>>6,j=63&f,isNaN(e)?i=j=64:isNaN(f)&&(j=64),k+=b.charAt(g)+b.charAt(h)+b.charAt(i)+b.charAt(j),c=e=f="",g=h=i=j="";while(l<a.length);return k},f=function(){for(var a=arguments[0],b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}return a},g=function(a,d,e,h){"function"==typeof e&&(h=e,e={}),e.cache=e.cache||!1,e.data=e.data||{},e.headers=e.headers||{},e.jsonp=e.jsonp||!1,e.async=void 0===e.async?!0:e.async;var i,j=f({accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},g.headers,e.headers);if(i="application/json"===j["content-type"]?JSON.stringify(e.data):c(e.data),"GET"===a){var k=[];if(i&&(k.push(i),i=null),e.cache||k.push("_="+(new Date).getTime()),e.jsonp&&(k.push("callback="+e.jsonp),k.push("jsonp="+e.jsonp)),k=k.join("&"),k.length>1&&(d+=d.indexOf("?")>-1?"&"+k:"?"+k),e.jsonp){var l=document.getElementsByTagName("head")[0],m=document.createElement("script");return m.type="text/javascript",m.src=d,void l.appendChild(m)}}b(function(b,c){if(b)return h(b);c.open(a,d,e.async);for(var f in j)j.hasOwnProperty(f)&&c.setRequestHeader(f,j[f]);c.onreadystatechange=function(){if(4===c.readyState){var a=c.responseText||"";if(!h)return;h(c.status,{text:function(){return a},json:function(){try{return JSON.parse(a)}catch(b){return V.error("Can not parse JSON. URL: "+d),{}}}})}},c.send(i)})},h={authBasic:function(a,b){g.headers.Authorization="Basic "+e(a+":"+b)},connect:function(a,b,c){return g("CONNECT",a,b,c)},del:function(a,b,c){return g("DELETE",a,b,c)},get:function(a,b,c){return g("GET",a,b,c)},head:function(a,b,c){return g("HEAD",a,b,c)},headers:function(a){g.headers=a||{}},isAllowed:function(a,b,c){this.options(a,function(a,d){c(-1!==d.text().indexOf(b))})},options:function(a,b,c){return g("OPTIONS",a,b,c)},patch:function(a,b,c){return g("PATCH",a,b,c)},post:function(a,b,c){return g("POST",a,b,c)},put:function(a,b,c){return g("PUT",a,b,c)},trace:function(a,b,c){return g("TRACE",a,b,c)}},i=a.type?a.type.toLowerCase():"get";h[i](a.url,a,function(b,c){200===b||0===b&&c.text()?a.success(c.json(),b,null):a.error(c.text(),b,null)})}function f(a,b){"function"==typeof a&&(b=a,a={}),a=a||{},V.extend(R,a),delete R.fixLng,R.functions&&(delete R.functions,V.extend(V,a.functions)),"string"==typeof R.ns&&(R.ns={namespaces:[R.ns],defaultNs:R.ns}),"string"==typeof R.fallbackNS&&(R.fallbackNS=[R.fallbackNS]),("string"==typeof R.fallbackLng||"boolean"==typeof R.fallbackLng)&&(R.fallbackLng=[R.fallbackLng]),R.interpolationPrefixEscaped=V.regexEscape(R.interpolationPrefix),R.interpolationSuffixEscaped=V.regexEscape(R.interpolationSuffix),R.lng||(R.lng=V.detectLanguage()),O=V.toLanguages(R.lng),J=O[0],V.log("currentLng set to: "+J),R.useCookie&&V.cookie.read(R.cookieName)!==J&&V.cookie.create(R.cookieName,J,R.cookieExpirationTime,R.cookieDomain),R.detectLngFromLocalStorage&&"undefined"!=typeof document&&window.localStorage&&V.localStorage.setItem("i18next_lng",J);var c=D;a.fixLng&&(c=function(a,b){return b=b||{},b.lng=b.lng||c.lng,D(a,b)},c.lng=J),Y.setCurrentLng(J),K&&R.setJqueryExt?v&&v():w&&w();var d;if(K&&K.Deferred&&(d=K.Deferred()),!R.resStore){var e=V.toLanguages(R.lng);"string"==typeof R.preload&&(R.preload=[R.preload]);for(var f=0,g=R.preload.length;g>f;f++)for(var h=V.toLanguages(R.preload[f]),i=0,j=h.length;j>i;i++)e.indexOf(h[i])<0&&e.push(h[i]);return L.sync.load(e,R,function(a,e){M=e,P=!0,b&&b(a,c),d&&(a?d.reject:d.resolve)(a||c)}),d?d.promise():void 0}return M=R.resStore,P=!0,b&&b(null,c),d&&d.resolve(c),d?d.promise():void 0}function g(){return P}function h(a,b){"string"==typeof a&&(a=[a]);for(var c=0,d=a.length;d>c;c++)R.preload.indexOf(a[c])<0&&R.preload.push(a[c]);return f(b)}function i(a,b,c,d){"string"!=typeof b?(c=b,b=R.ns.defaultNs):R.ns.namespaces.indexOf(b)<0&&R.ns.namespaces.push(b),M[a]=M[a]||{},M[a][b]=M[a][b]||{},d?V.deepExtend(M[a][b],c):V.extend(M[a][b],c),R.useLocalStorage&&Q._storeLocal(M)}function j(a,b){"string"!=typeof b&&(b=R.ns.defaultNs),M[a]=M[a]||{};var c=M[a][b]||{},d=!1;for(var e in c)c.hasOwnProperty(e)&&(d=!0);return d}function k(a,b){return"string"!=typeof b&&(b=R.ns.defaultNs),M[a]=M[a]||{},V.extend({},M[a][b])}function l(a,b){"string"!=typeof b&&(b=R.ns.defaultNs),M[a]=M[a]||{},M[a][b]={},R.useLocalStorage&&Q._storeLocal(M)}function m(a,b,c,d){"string"!=typeof b?(resource=b,b=R.ns.defaultNs):R.ns.namespaces.indexOf(b)<0&&R.ns.namespaces.push(b),M[a]=M[a]||{},M[a][b]=M[a][b]||{};for(var e=c.split(R.keyseparator),f=0,g=M[a][b];e[f];)f==e.length-1?g[e[f]]=d:(null==g[e[f]]&&(g[e[f]]={}),g=g[e[f]]),f++;R.useLocalStorage&&Q._storeLocal(M)}function n(a,b,c){"string"!=typeof b?(resource=b,b=R.ns.defaultNs):R.ns.namespaces.indexOf(b)<0&&R.ns.namespaces.push(b);for(var d in c)"string"==typeof c[d]&&m(a,b,d,c[d])}function o(a){R.ns.defaultNs=a}function p(a,b){q([a],b)}function q(a,b){var c={dynamicLoad:R.dynamicLoad,resGetPath:R.resGetPath,getAsync:R.getAsync,customLoad:R.customLoad,ns:{namespaces:a,defaultNs:""}},d=V.toLanguages(R.lng);"string"==typeof R.preload&&(R.preload=[R.preload]);for(var e=0,f=R.preload.length;f>e;e++)for(var g=V.toLanguages(R.preload[e]),h=0,i=g.length;i>h;h++)d.indexOf(g[h])<0&&d.push(g[h]);for(var j=[],k=0,l=d.length;l>k;k++){var m=!1,n=M[d[k]];if(n)for(var o=0,p=a.length;p>o;o++)n[a[o]]||(m=!0);else m=!0;m&&j.push(d[k])}j.length?L.sync._fetch(j,c,function(c,d){var e=a.length*j.length;V.each(a,function(a,c){R.ns.namespaces.indexOf(c)<0&&R.ns.namespaces.push(c),V.each(j,function(a,f){M[f]=M[f]||{},M[f][c]=d[f][c],e--,0===e&&b&&(R.useLocalStorage&&L.sync._storeLocal(M),b())})})}):b&&b()}function r(a,b,c){return"function"==typeof b?(c=b,b={}):b||(b={}),b.lng=a,f(b,c)}function s(){return J}function t(a){M={},r(J,a)}function u(){window.i18next=window.i18n,conflictReference?window.i18n=conflictReference:delete window.i18n}function v(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2));var f;if("html"===d)f=R.defaultValueFromContent?K.extend({defaultValue:a.html()},c):c,a.html(K.t(b,f));else if("text"===d)f=R.defaultValueFromContent?K.extend({defaultValue:a.text()},c):c,a.text(K.t(b,f));else if("prepend"===d)f=R.defaultValueFromContent?K.extend({defaultValue:a.html()},c):c,a.prepend(K.t(b,f));else if("append"===d)f=R.defaultValueFromContent?K.extend({defaultValue:a.html()},c):c,a.append(K.t(b,f));else if(0===d.indexOf("data-")){var g=d.substr("data-".length);f=R.defaultValueFromContent?K.extend({defaultValue:a.data(g)},c):c;var h=K.t(b,f);a.data(g,h),a.attr(d,h)}else f=R.defaultValueFromContent?K.extend({defaultValue:a.attr(d)},c):c,a.attr(d,K.t(b,f))}}function b(b,c){var d=b.attr(R.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.text()||b.val()),d){var e=b,f=b.data("i18n-target");if(f&&(e=b.find(f)||b),c||R.useDataAttrOptions!==!0||(c=b.data("i18n-options")),c=c||{},d.indexOf(";")>=0){var g=d.split(";");K.each(g,function(b,d){""!==d&&a(e,d,c)})}else a(e,d,c);if(R.useDataAttrOptions===!0){var h=K.extend({lng:"non",lngs:[],_origLng:"non"},c);delete h.lng,delete h.lngs,delete h._origLng,b.data("i18n-options",h)}}}K.t=K.t||D,K.fn.i18n=function(a){return this.each(function(){b(K(this),a);var c=K(this).find("["+R.selectorAttr+"]");c.each(function(){b(K(this),a)})})}}function w(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2)),"html"===d?a.innerHTML=D(b,c):"text"===d?a.textContent=D(b,c):"prepend"===d?a.insertAdjacentHTML(D(b,c),"afterbegin"):"append"===d?a.insertAdjacentHTML(D(b,c),"beforeend"):a.setAttribute(d,D(b,c))}}function b(b,c){var d=b.getAttribute(R.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.textContent||b.value),d){var e=b,f=b.getAttribute("i18n-target");if(f&&(e=b.querySelector(f)||b),d.indexOf(";")>=0)for(var g=d.split(";"),h=0,i=g.length;i>h;h++)""!==g[h]&&a(e,g[h],c);else a(e,d,c)}}L.translateObject=function(a,c){for(var d=a.querySelectorAll("["+R.selectorAttr+"]"),e=0,f=d.length;f>e;e++)b(d[e],c)}}function x(a,b,c,d){if(!a)return a;if(d=d||b,a.indexOf(d.interpolationPrefix||R.interpolationPrefix)<0)return a;var e=d.interpolationPrefix?V.regexEscape(d.interpolationPrefix):R.interpolationPrefixEscaped,f=d.interpolationSuffix?V.regexEscape(d.interpolationSuffix):R.interpolationSuffixEscaped,g=b.replace&&"object"==typeof b.replace?b.replace:b,h=new RegExp([e,"(.+?)","(HTML)?",f].join(""),"g"),i=d.escapeInterpolation||R.escapeInterpolation;return a.replace(h,function(a,b,c){for(var d=g,e=b;e.indexOf(R.keyseparator)>=0&&"object"==typeof d&&d;){var f=e.slice(0,e.indexOf(R.keyseparator));e=e.slice(e.indexOf(R.keyseparator)+1),d=d[f]}if(d&&"object"==typeof d&&d.hasOwnProperty(e)){{d[e]}return i&&!c?V.escape(d[e]):d[e]}return a})}function y(a,b){var c=",",d="{",e="}",f=V.extend({},b);for(delete f.postProcess;-1!=a.indexOf(R.reusePrefix)&&(N++,!(N>R.maxRecursion));){var g=a.lastIndexOf(R.reusePrefix),h=a.indexOf(R.reuseSuffix,g)+R.reuseSuffix.length,i=a.substring(g,h),j=i.replace(R.reusePrefix,"").replace(R.reuseSuffix,"");if(g>=h)return V.error("there is an missing closing in following translation value",a),"";if(-1!=j.indexOf(c)){var k=j.indexOf(c);if(-1!=j.indexOf(d,k)&&-1!=j.indexOf(e,k)){var l=j.indexOf(d,k),m=j.indexOf(e,l)+e.length;try{f=V.extend(f,JSON.parse(j.substring(l,m))),j=j.substring(0,k)}catch(n){}}}var o=G(j,f);a=a.replace(i,V.regexReplacementEscape(o))}return a}function z(a){return a.context&&("string"==typeof a.context||"number"==typeof a.context)}function A(a){return void 0!==a.count&&"string"!=typeof a.count}function B(a){return void 0!==a.indefinite_article&&"string"!=typeof a.indefinite_article&&a.indefinite_article}function C(a,b){b=b||{};var c=E(a,b),d=H(a,b);return void 0!==d||d===c}function D(a,b){return b=b||{},P?(N=0,G.apply(null,arguments)):(V.log("i18next not finished initialization. you might have called t function before loading resources finished."),b.defaultValue||"")}function E(a,b){return void 0!==b.defaultValue?b.defaultValue:a}function F(){for(var a=[],b=1;b<arguments.length;b++)a.push(arguments[b]);return{postProcess:"sprintf",sprintf:a}}function G(a,b){if(b&&"object"!=typeof b?"sprintf"===R.shortcutFunction?b=F.apply(null,arguments):"defaultValue"===R.shortcutFunction&&(b={defaultValue:b}):b=b||{},"object"==typeof R.defaultVariables&&(b=V.extend({},R.defaultVariables,b)),void 0===a||null===a||""===a)return"";"number"==typeof a&&(a=String(a)),"string"==typeof a&&(a=[a]);var c=a[0];if(a.length>1)for(var d=0;d<a.length&&(c=a[d],!C(c,b));d++);var e,f=E(c,b),g=H(c,b),h=b.lng?V.toLanguages(b.lng,b.fallbackLng):O,i=b.ns||R.ns.defaultNs;c.indexOf(R.nsseparator)>-1&&(e=c.split(R.nsseparator),i=e[0],c=e[1]),void 0===g&&R.sendMissing&&"function"==typeof R.missingKeyHandler&&(b.lng?R.missingKeyHandler(h[0],i,c,f,h):R.missingKeyHandler(R.lng,i,c,f,h));var j;j="string"==typeof R.postProcess&&""!==R.postProcess?[R.postProcess]:"array"==typeof R.postProcess||"object"==typeof R.postProcess?R.postProcess:[],"string"==typeof b.postProcess&&""!==b.postProcess?j=j.concat([b.postProcess]):("array"==typeof b.postProcess||"object"==typeof b.postProcess)&&(j=j.concat(b.postProcess)),void 0!==g&&j.length&&j.forEach(function(a){Z[a]&&(g=Z[a](g,c,b))});var k=f;if(f.indexOf(R.nsseparator)>-1&&(e=f.split(R.nsseparator),k=e[1]),k===c&&R.parseMissingKey&&(f=R.parseMissingKey(f)),void 0===g&&(f=x(f,b),f=y(f,b),j.length)){var l=E(c,b);j.forEach(function(a){Z[a]&&(g=Z[a](l,c,b))})}return void 0!==g?g:f}function H(a,b){b=b||{};var c,d,e=E(a,b),f=O;if(!M)return e;if("cimode"===f[0].toLowerCase())return e;if(b.lngs&&(f=b.lngs),b.lng&&(f=V.toLanguages(b.lng,b.fallbackLng),!M[f[0]])){var g=R.getAsync;R.getAsync=!1,L.sync.load(f,R,function(a,b){V.extend(M,b),R.getAsync=g})}var h=b.ns||R.ns.defaultNs;if(a.indexOf(R.nsseparator)>-1){var i=a.split(R.nsseparator);h=i[0],a=i[1]}if(z(b)){c=V.extend({},b),delete c.context,c.defaultValue=R.contextNotFound;var j=h+R.nsseparator+a+"_"+b.context;if(d=D(j,c),d!=R.contextNotFound)return x(d,{context:b.context})}if(A(b,f[0])){c=V.extend({lngs:[f[0]]},b),delete c.count,c._origLng=c._origLng||c.lng||f[0],delete c.lng,c.defaultValue=R.pluralNotFound;var k;if(Y.needsPlural(f[0],b.count)){k=h+R.nsseparator+a+R.pluralSuffix;var l=Y.get(f[0],b.count);l>=0?k=k+"_"+l:1===l&&(k=h+R.nsseparator+a)}else k=h+R.nsseparator+a;if(d=D(k,c),d!=R.pluralNotFound)return x(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});if(!(f.length>1))return c.lng=c._origLng,delete c._origLng,d=D(h+R.nsseparator+a,c),x(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});var m=f.slice();if(m.shift(),b=V.extend(b,{lngs:m}),b._origLng=c._origLng,delete b.lng,d=D(h+R.nsseparator+a,b),d!=R.pluralNotFound)return d}if(B(b)){var n=V.extend({},b);delete n.indefinite_article,n.defaultValue=R.indefiniteNotFound;var o=h+R.nsseparator+a+(b.count&&!A(b,f[0])||!b.count?R.indefiniteSuffix:"");if(d=D(o,n),d!=R.indefiniteNotFound)return d}for(var p,q=a.split(R.keyseparator),r=0,s=f.length;s>r&&void 0===p;r++){for(var t=f[r],u=0,v=M[t]&&M[t][h];q[u];)v=v&&v[q[u]],u++;if(void 0!==v&&(!R.showKeyIfEmpty||""!==v)){var w=Object.prototype.toString.apply(v);if("string"==typeof v)v=x(v,b),v=y(v,b);else if("[object Array]"!==w||R.returnObjectTrees||b.returnObjectTrees){if(null===v&&R.fallbackOnNull===!0)v=void 0;else if(null!==v)if(R.returnObjectTrees||b.returnObjectTrees){if("[object Number]"!==w&&"[object Function]"!==w&&"[object RegExp]"!==w){var C="[object Array]"===w?[]:{};V.each(v,function(c){C[c]=G(h+R.nsseparator+a+R.keyseparator+c,b)}),v=C}}else R.objectTreeKeyHandler&&"function"==typeof R.objectTreeKeyHandler?v=R.objectTreeKeyHandler(a,v,t,h,b):(v="key '"+h+":"+a+" ("+t+")' returned an object instead of string.",V.log(v))}else v=v.join("\n"),v=x(v,b),v=y(v,b);"string"==typeof v&&""===v.trim()&&R.fallbackOnEmpty===!0&&(v=void 0),p=v}}if(void 0===p&&!b.isFallbackLookup&&(R.fallbackToDefaultNS===!0||R.fallbackNS&&R.fallbackNS.length>0)){if(b.isFallbackLookup=!0,R.fallbackNS.length){for(var F=0,I=R.fallbackNS.length;I>F;F++)if(p=H(R.fallbackNS[F]+R.nsseparator+a,b),p||""===p&&R.fallbackOnEmpty===!1){var J=p.indexOf(R.nsseparator)>-1?p.split(R.nsseparator)[1]:p,K=e.indexOf(R.nsseparator)>-1?e.split(R.nsseparator)[1]:e;if(J!==K)break}}else b.ns=R.ns.defaultNs,p=H(a,b);b.isFallbackLookup=!1}return p}function I(){var a,b=R.lngWhitelist||[],c=[];if("undefined"!=typeof window&&!function(){for(var a=window.location.search.substring(1),b=a.split("&"),d=0;d<b.length;d++){var e=b[d].indexOf("=");if(e>0){var f=b[d].substring(0,e);f==R.detectLngQS&&c.push(b[d].substring(e+1))}}}(),R.useCookie&&"undefined"!=typeof document){var d=V.cookie.read(R.cookieName);d&&c.push(d)}if(R.detectLngFromLocalStorage&&"undefined"!=typeof window&&window.localStorage){var e=V.localStorage.getItem("i18next_lng");e&&c.push(e)}if("undefined"!=typeof navigator){if(navigator.languages)for(var f=0;f<navigator.languages.length;f++)c.push(navigator.languages[f]);navigator.userLanguage&&c.push(navigator.userLanguage),navigator.language&&c.push(navigator.language)}return function(){for(var d=0;d<c.length;d++){var e=c[d];if(e.indexOf("-")>-1){var f=e.split("-");e=R.lowerCaseLng?f[0].toLowerCase()+"-"+f[1].toLowerCase():f[0].toLowerCase()+"-"+f[1].toUpperCase()}if(0===b.length||b.indexOf(e)>-1){a=e;break}}}(),a||(a=R.fallbackLng[0]),a}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;if(arguments.length>0&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(var e=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(e in b&&b[e]===a)return e;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=c;arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d))));for(var e=d>=0?Math.min(d,c-1):c-Math.abs(d);e>=0;e--)if(e in b&&b[e]===a)return e;return-1}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var J,K=void 0,L={},M={},N=0,O=[],P=!1,Q={};Q={load:function(a,b,c){b.useLocalStorage?Q._loadLocal(a,b,function(d,e){for(var f=[],g=0,h=a.length;h>g;g++)e[a[g]]||f.push(a[g]);f.length>0?Q._fetch(f,b,function(a,b){V.extend(e,b),Q._storeLocal(b),c(a,e)}):c(d,e)}):Q._fetch(a,b,function(a,b){c(a,b)})},_loadLocal:function(a,b,c){var d={},e=(new Date).getTime();if(window.localStorage){var f=a.length;V.each(a,function(a,g){var h=V.localStorage.getItem("res_"+g);h&&(h=JSON.parse(h),h.i18nStamp&&h.i18nStamp+b.localStorageExpirationTime>e&&(d[g]=h)),f--,0===f&&c(null,d)})}},_storeLocal:function(a){if(window.localStorage)for(var b in a)a[b].i18nStamp=(new Date).getTime(),V.localStorage.setItem("res_"+b,JSON.stringify(a[b]))},_fetch:function(a,b,c){var d=b.ns,e={};if(b.dynamicLoad){var f=function(a,b){c(a,b)};if("function"==typeof b.customLoad)b.customLoad(a,d.namespaces,b,f);else{var g=x(b.resGetPath,{lng:a.join("+"),ns:d.namespaces.join("+")});V.ajax({url:g,cache:b.cache,success:function(a){V.log("loaded: "+g),f(null,a)},error:function(a,b,c){V.log("failed loading: "+g),f("failed loading resource.json error: "+c)},dataType:"json",async:b.getAsync,timeout:b.ajaxTimeout})}}else{var h,i=d.namespaces.length*a.length;V.each(d.namespaces,function(d,f){V.each(a,function(a,d){var g=function(a,b){a&&(h=h||[],h.push(a)),e[d]=e[d]||{},e[d][f]=b,i--,0===i&&c(h,e)};"function"==typeof b.customLoad?b.customLoad(d,f,b,g):Q._fetchOne(d,f,b,g)})})}},_fetchOne:function(a,b,c,d){var e=x(c.resGetPath,{lng:a,ns:b});V.ajax({url:e,cache:c.cache,success:function(a){V.log("loaded: "+e),d(null,a)},error:function(a,b,c){if(b&&200==b||a&&a.status&&200==a.status)V.error("There is a typo in: "+e);else if(b&&404==b||a&&a.status&&404==a.status)V.log("Does not exist: "+e);else{var f=b?b:a&&a.status?a.status:null;V.log(f+" when loading "+e)}d(c,{})},dataType:"json",async:c.getAsync,timeout:c.ajaxTimeout})},postMissing:function(a,b,c,d,e){var f={};f[c]=d;var g=[];if("fallback"===R.sendMissingTo&&R.fallbackLng[0]!==!1)for(var h=0;h<R.fallbackLng.length;h++)g.push({lng:R.fallbackLng[h],url:x(R.resPostPath,{lng:R.fallbackLng[h],ns:b})});else if("current"===R.sendMissingTo||"fallback"===R.sendMissingTo&&R.fallbackLng[0]===!1)g.push({lng:a,url:x(R.resPostPath,{lng:a,ns:b})});else if("all"===R.sendMissingTo)for(var h=0,i=e.length;i>h;h++)g.push({lng:e[h],url:x(R.resPostPath,{lng:e[h],ns:b})});for(var j=0,k=g.length;k>j;j++){var l=g[j];V.ajax({url:l.url,type:R.sendType,data:f,success:function(){V.log("posted missing key '"+c+"' to: "+l.url);for(var a=c.split("."),e=0,f=M[l.lng][b];a[e];)f=f[a[e]]=e===a.length-1?d:f[a[e]]||{},e++},error:function(){V.log("failed posting missing key '"+c+"' to: "+l.url)},dataType:"json",async:R.postAsync,timeout:R.ajaxTimeout})}},reload:t};var R={lng:void 0,load:"all",preload:[],lowerCaseLng:!1,returnObjectTrees:!1,fallbackLng:["dev"],fallbackNS:[],detectLngQS:"setLng",detectLngFromLocalStorage:!1,ns:{namespaces:["translation"],defaultNs:"translation"},fallbackOnNull:!0,fallbackOnEmpty:!1,fallbackToDefaultNS:!1,showKeyIfEmpty:!1,nsseparator:":",keyseparator:".",selectorAttr:"data-i18n",debug:!1,resGetPath:"locales/__lng__/__ns__.json",resPostPath:"locales/add/__lng__/__ns__",getAsync:!0,postAsync:!0,resStore:void 0,useLocalStorage:!1,localStorageExpirationTime:6048e5,dynamicLoad:!1,sendMissing:!1,sendMissingTo:"fallback",sendType:"POST",interpolationPrefix:"__",interpolationSuffix:"__",defaultVariables:!1,reusePrefix:"$t(",reuseSuffix:")",pluralSuffix:"_plural",pluralNotFound:["plural_not_found",Math.random()].join(""),contextNotFound:["context_not_found",Math.random()].join(""),escapeInterpolation:!1,indefiniteSuffix:"_indefinite",indefiniteNotFound:["indefinite_not_found",Math.random()].join(""),setJqueryExt:!0,defaultValueFromContent:!0,useDataAttrOptions:!1,cookieExpirationTime:void 0,useCookie:!0,cookieName:"i18next",cookieDomain:void 0,objectTreeKeyHandler:void 0,postProcess:void 0,parseMissingKey:void 0,missingKeyHandler:Q.postMissing,ajaxTimeout:0,shortcutFunction:"sprintf"},S={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},T={create:function(a,b,c,d){var e;if(c){var f=new Date;f.setTime(f.getTime()+60*c*1e3),e="; expires="+f.toGMTString()}else e="";d=d?"domain="+d+";":"",document.cookie=a+"="+b+e+";"+d+"path=/"},read:function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(b))return e.substring(b.length,e.length)}return null},remove:function(a){this.create(a,"",-1)}},U={create:function(){},read:function(){return null},remove:function(){}},V={extend:K?K.extend:a,deepExtend:b,each:K?K.each:c,ajax:K?K.ajax:"undefined"!=typeof document?e:function(){},cookie:"undefined"!=typeof document?T:U,detectLanguage:I,escape:d,log:function(a){R.debug&&"undefined"!=typeof console&&console.log(a)},error:function(a){"undefined"!=typeof console&&console.error(a)},getCountyIndexOfLng:function(a){var b=0;return("nb-NO"===a||"nn-NO"===a||"nb-no"===a||"nn-no"===a)&&(b=1),b},toLanguages:function(a,b){function c(a){var b=a;if("string"==typeof a&&a.indexOf("-")>-1){var c=a.split("-");b=R.lowerCaseLng?c[0].toLowerCase()+"-"+c[1].toLowerCase():c[0].toLowerCase()+"-"+c[1].toUpperCase()}else b=R.lowerCaseLng?a.toLowerCase():a;return b}var d=this.log;b=b||R.fallbackLng,"string"==typeof b&&(b=[b]);var e=[],f=R.lngWhitelist||!1,g=function(a){!f||f.indexOf(a)>-1?e.push(a):d("rejecting non-whitelisted language: "+a)};if("string"==typeof a&&a.indexOf("-")>-1){var h=a.split("-");"unspecific"!==R.load&&g(c(a)),"current"!==R.load&&g(c(h[this.getCountyIndexOfLng(a)]))}else g(c(a));for(var i=0;i<b.length;i++)-1===e.indexOf(b[i])&&b[i]&&e.push(c(b[i]));return e},regexEscape:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},regexReplacementEscape:function(a){return"string"==typeof a?a.replace(/\$/g,"$$$$"):a},localStorage:{setItem:function(a,b){if(window.localStorage)try{window.localStorage.setItem(a,b)}catch(c){V.log('failed to set value for key "'+a+'" to localStorage.')}},getItem:function(a,b){if(window.localStorage)try{return window.localStorage.getItem(a,b)}catch(c){return void V.log('failed to get value for key "'+a+'" from localStorage.')}}}};V.applyReplacement=x;var W=[["ach","Acholi",[1,2],1],["af","Afrikaans",[1,2],2],["ak","Akan",[1,2],1],["am","Amharic",[1,2],1],["an","Aragonese",[1,2],2],["ar","Arabic",[0,1,2,3,11,100],5],["arn","Mapudungun",[1,2],1],["ast","Asturian",[1,2],2],["ay","Aymará",[1],3],["az","Azerbaijani",[1,2],2],["be","Belarusian",[1,2,5],4],["bg","Bulgarian",[1,2],2],["bn","Bengali",[1,2],2],["bo","Tibetan",[1],3],["br","Breton",[1,2],1],["bs","Bosnian",[1,2,5],4],["ca","Catalan",[1,2],2],["cgg","Chiga",[1],3],["cs","Czech",[1,2,5],6],["csb","Kashubian",[1,2,5],7],["cy","Welsh",[1,2,3,8],8],["da","Danish",[1,2],2],["de","German",[1,2],2],["dev","Development Fallback",[1,2],2],["dz","Dzongkha",[1],3],["el","Greek",[1,2],2],["en","English",[1,2],2],["eo","Esperanto",[1,2],2],["es","Spanish",[1,2],2],["es_ar","Argentinean Spanish",[1,2],2],["et","Estonian",[1,2],2],["eu","Basque",[1,2],2],["fa","Persian",[1],3],["fi","Finnish",[1,2],2],["fil","Filipino",[1,2],1],["fo","Faroese",[1,2],2],["fr","French",[1,2],9],["fur","Friulian",[1,2],2],["fy","Frisian",[1,2],2],["ga","Irish",[1,2,3,7,11],10],["gd","Scottish Gaelic",[1,2,3,20],11],["gl","Galician",[1,2],2],["gu","Gujarati",[1,2],2],["gun","Gun",[1,2],1],["ha","Hausa",[1,2],2],["he","Hebrew",[1,2],2],["hi","Hindi",[1,2],2],["hr","Croatian",[1,2,5],4],["hu","Hungarian",[1,2],2],["hy","Armenian",[1,2],2],["ia","Interlingua",[1,2],2],["id","Indonesian",[1],3],["is","Icelandic",[1,2],12],["it","Italian",[1,2],2],["ja","Japanese",[1],3],["jbo","Lojban",[1],3],["jv","Javanese",[0,1],13],["ka","Georgian",[1],3],["kk","Kazakh",[1],3],["km","Khmer",[1],3],["kn","Kannada",[1,2],2],["ko","Korean",[1],3],["ku","Kurdish",[1,2],2],["kw","Cornish",[1,2,3,4],14],["ky","Kyrgyz",[1],3],["lb","Letzeburgesch",[1,2],2],["ln","Lingala",[1,2],1],["lo","Lao",[1],3],["lt","Lithuanian",[1,2,10],15],["lv","Latvian",[1,2,0],16],["mai","Maithili",[1,2],2],["mfe","Mauritian Creole",[1,2],1],["mg","Malagasy",[1,2],1],["mi","Maori",[1,2],1],["mk","Macedonian",[1,2],17],["ml","Malayalam",[1,2],2],["mn","Mongolian",[1,2],2],["mnk","Mandinka",[0,1,2],18],["mr","Marathi",[1,2],2],["ms","Malay",[1],3],["mt","Maltese",[1,2,11,20],19],["nah","Nahuatl",[1,2],2],["nap","Neapolitan",[1,2],2],["nb","Norwegian Bokmal",[1,2],2],["ne","Nepali",[1,2],2],["nl","Dutch",[1,2],2],["nn","Norwegian Nynorsk",[1,2],2],["no","Norwegian",[1,2],2],["nso","Northern Sotho",[1,2],2],["oc","Occitan",[1,2],1],["or","Oriya",[2,1],2],["pa","Punjabi",[1,2],2],["pap","Papiamento",[1,2],2],["pl","Polish",[1,2,5],7],["pms","Piemontese",[1,2],2],["ps","Pashto",[1,2],2],["pt","Portuguese",[1,2],2],["pt_br","Brazilian Portuguese",[1,2],2],["rm","Romansh",[1,2],2],["ro","Romanian",[1,2,20],20],["ru","Russian",[1,2,5],4],["sah","Yakut",[1],3],["sco","Scots",[1,2],2],["se","Northern Sami",[1,2],2],["si","Sinhala",[1,2],2],["sk","Slovak",[1,2,5],6],["sl","Slovenian",[5,1,2,3],21],["so","Somali",[1,2],2],["son","Songhay",[1,2],2],["sq","Albanian",[1,2],2],["sr","Serbian",[1,2,5],4],["su","Sundanese",[1],3],["sv","Swedish",[1,2],2],["sw","Swahili",[1,2],2],["ta","Tamil",[1,2],2],["te","Telugu",[1,2],2],["tg","Tajik",[1,2],1],["th","Thai",[1],3],["ti","Tigrinya",[1,2],1],["tk","Turkmen",[1,2],2],["tr","Turkish",[1,2],1],["tt","Tatar",[1],3],["ug","Uyghur",[1],3],["uk","Ukrainian",[1,2,5],4],["ur","Urdu",[1,2],2],["uz","Uzbek",[1,2],1],["vi","Vietnamese",[1],3],["wa","Walloon",[1,2],1],["wo","Wolof",[1],3],["yo","Yoruba",[1,2],2],["zh","Chinese",[1],3]],X={1:function(a){return Number(a>1)},2:function(a){return Number(1!=a)},3:function(){return 0},4:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},5:function(a){return Number(0===a?0:1==a?1:2==a?2:a%100>=3&&10>=a%100?3:a%100>=11?4:5)},6:function(a){return Number(1==a?0:a>=2&&4>=a?1:2)},7:function(a){return Number(1==a?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},8:function(a){return Number(1==a?0:2==a?1:8!=a&&11!=a?2:3)},9:function(a){return Number(a>=2)},10:function(a){return Number(1==a?0:2==a?1:7>a?2:11>a?3:4)},11:function(a){return Number(1==a||11==a?0:2==a||12==a?1:a>2&&20>a?2:3)},12:function(a){return Number(a%10!=1||a%100==11)},13:function(a){return Number(0!==a)},14:function(a){return Number(1==a?0:2==a?1:3==a?2:3)},15:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&(10>a%100||a%100>=20)?1:2)},16:function(a){return Number(a%10==1&&a%100!=11?0:0!==a?1:2)},17:function(a){return Number(1==a||a%10==1?0:1)},18:function(a){return Number(1==a?1:2)},19:function(a){return Number(1==a?0:0===a||a%100>1&&11>a%100?1:a%100>10&&20>a%100?2:3)},20:function(a){return Number(1==a?0:0===a||a%100>0&&20>a%100?1:2)},21:function(a){return Number(a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0)}},Y={rules:function(){var a,b={};for(a=W.length;a--;)b[W[a][0]]={name:W[a][1],numbers:W[a][2],plurals:X[W[a][3]]};return b}(),addRule:function(a,b){Y.rules[a]=b},setCurrentLng:function(a){if(!Y.currentRule||Y.currentRule.lng!==a){var b=a.split("-");Y.currentRule={lng:a,rule:Y.rules[b[0]]}}},needsPlural:function(a,b){var c,d=a.split("-");return c=Y.currentRule&&Y.currentRule.lng===a?Y.currentRule.rule:Y.rules[d[V.getCountyIndexOfLng(a)]],c&&c.numbers.length<=1?!1:1!==this.get(a,b)},get:function(a,b){function c(b,c){var d;if(d=Y.currentRule&&Y.currentRule.lng===a?Y.currentRule.rule:Y.rules[b]){var e;e=d.plurals(d.noAbs?c:Math.abs(c));var f=d.numbers[e];return 2===d.numbers.length&&1===d.numbers[0]&&(2===f?f=-1:1===f&&(f=1)),f}return 1===c?"1":"-1"}var d=a.split("-");return c(d[V.getCountyIndexOfLng(a)],b)}},Z={},$=function(a,b){Z[a]=b},_=function(){function a(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function b(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")}var c=function(){return c.cache.hasOwnProperty(arguments[0])||(c.cache[arguments[0]]=c.parse(arguments[0])),c.format.call(null,c.cache[arguments[0]],arguments)};return c.format=function(c,d){var e,f,g,h,i,j,k,l=1,m=c.length,n="",o=[];for(f=0;m>f;f++)if(n=a(c[f]),"string"===n)o.push(c[f]);else if("array"===n){if(h=c[f],h[2])for(e=d[l],g=0;g<h[2].length;g++){if(!e.hasOwnProperty(h[2][g]))throw _('[sprintf] property "%s" does not exist',h[2][g]);e=e[h[2][g]]}else e=h[1]?d[h[1]]:d[l++];if(/[^s]/.test(h[8])&&"number"!=a(e))throw _("[sprintf] expecting number but found %s",a(e));switch(h[8]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e,10);break;case"e":e=h[7]?e.toExponential(h[7]):e.toExponential();break;case"f":e=h[7]?parseFloat(e).toFixed(h[7]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&h[7]?e.substring(0,h[7]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(h[8])&&h[3]&&e>=0?"+"+e:e,j=h[4]?"0"==h[4]?"0":h[4].charAt(1):" ",k=h[6]-String(e).length,i=h[6]?b(j,k):"",o.push(h[5]?e+i:i+e)}return o.join("")},c.cache={},c.parse=function(a){for(var b=a,c=[],d=[],e=0;b;){if(null!==(c=/^[^\x25]+/.exec(b)))d.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(b)))d.push("%");else{if(null===(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)))throw"[sprintf] huh?";if(c[2]){e|=1;var f=[],g=c[2],h=[];if(null===(h=/^([a-z_][a-z_\d]*)/i.exec(g)))throw"[sprintf] huh?";for(f.push(h[1]);""!==(g=g.substring(h[0].length));)if(null!==(h=/^\.([a-z_][a-z_\d]*)/i.exec(g)))f.push(h[1]);else{if(null===(h=/^\[(\d+)\]/.exec(g)))throw"[sprintf] huh?";f.push(h[1])}c[2]=f}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";d.push(c)}b=b.substring(c[0].length)}return d},
c}(),aa=function(a,b){return b.unshift(a),_.apply(null,b)};return $("sprintf",function(a,b,c){return c.sprintf?"[object Array]"===Object.prototype.toString.apply(c.sprintf)?aa(a,c.sprintf):"object"==typeof c.sprintf?_(a,c.sprintf):a:a}),L.init=f,L.isInitialized=g,L.setLng=r,L.preload=h,L.addResourceBundle=i,L.hasResourceBundle=j,L.getResourceBundle=k,L.addResource=m,L.addResources=n,L.removeResourceBundle=l,L.loadNamespace=p,L.loadNamespaces=q,L.setDefaultNamespace=o,L.t=D,L.translate=D,L.exists=C,L.detectLanguage=V.detectLanguage,L.pluralExtensions=Y,L.sync=Q,L.functions=V,L.lng=s,L.addPostProcessor=$,L.applyReplacement=V.applyReplacement,L.options=R,L.noConflict=u,L});
!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd&&define([],b)}(this,function(){function a(a,b){if(!b||"function"==typeof b)return a;for(var c in b)a[c]=b[c];return a}function b(a,c,d){for(var e in c)e in a?"string"==typeof a[e]||a[e]instanceof String||"string"==typeof c[e]||c[e]instanceof String?d&&(a[e]=c[e]):b(a[e],c[e],d):a[e]=c[e];return a}function c(a,b,c){var d,e=0,f=a.length,g=void 0===f||"[object Array]"!==Object.prototype.toString.apply(a)||"function"==typeof a;if(c)if(g){for(d in a)if(b.apply(a[d],c)===!1)break}else for(;f>e&&b.apply(a[e++],c)!==!1;);else if(g){for(d in a)if(b.call(a[d],d,a[d])===!1)break}else for(;f>e&&b.call(a[e],e,a[e++])!==!1;);return a}function d(a){return"string"==typeof a?a.replace(/[&<>"'\/]/g,function(a){return T[a]}):a}function e(a){var b=function(a){if(window.XMLHttpRequest)return a(null,new XMLHttpRequest);if(window.ActiveXObject)try{return a(null,new ActiveXObject("Msxml2.XMLHTTP"))}catch(b){return a(null,new ActiveXObject("Microsoft.XMLHTTP"))}return a(new Error)},c=function(a){if("string"==typeof a)return a;var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b.join("&")},d=function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):d>127&&2048>d?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},e=function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a=d(a);var c,e,f,g,h,i,j,k="",l=0;do c=a.charCodeAt(l++),e=a.charCodeAt(l++),f=a.charCodeAt(l++),g=c>>2,h=(3&c)<<4|e>>4,i=(15&e)<<2|f>>6,j=63&f,isNaN(e)?i=j=64:isNaN(f)&&(j=64),k+=b.charAt(g)+b.charAt(h)+b.charAt(i)+b.charAt(j),c=e=f="",g=h=i=j="";while(l<a.length);return k},f=function(){for(var a=arguments[0],b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}return a},g=function(a,d,e,h){"function"==typeof e&&(h=e,e={}),e.cache=e.cache||!1,e.data=e.data||{},e.headers=e.headers||{},e.jsonp=e.jsonp||!1,e.async=void 0===e.async?!0:e.async;var i,j=f({accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},g.headers,e.headers);if(i="application/json"===j["content-type"]?JSON.stringify(e.data):c(e.data),"GET"===a){var k=[];if(i&&(k.push(i),i=null),e.cache||k.push("_="+(new Date).getTime()),e.jsonp&&(k.push("callback="+e.jsonp),k.push("jsonp="+e.jsonp)),k=k.join("&"),k.length>1&&(d+=d.indexOf("?")>-1?"&"+k:"?"+k),e.jsonp){var l=document.getElementsByTagName("head")[0],m=document.createElement("script");return m.type="text/javascript",m.src=d,void l.appendChild(m)}}b(function(b,c){if(b)return h(b);c.open(a,d,e.async);for(var f in j)j.hasOwnProperty(f)&&c.setRequestHeader(f,j[f]);c.onreadystatechange=function(){if(4===c.readyState){var a=c.responseText||"";if(!h)return;h(c.status,{text:function(){return a},json:function(){try{return JSON.parse(a)}catch(b){return W.error("Can not parse JSON. URL: "+d),{}}}})}},c.send(i)})},h={authBasic:function(a,b){g.headers.Authorization="Basic "+e(a+":"+b)},connect:function(a,b,c){return g("CONNECT",a,b,c)},del:function(a,b,c){return g("DELETE",a,b,c)},get:function(a,b,c){return g("GET",a,b,c)},head:function(a,b,c){return g("HEAD",a,b,c)},headers:function(a){g.headers=a||{}},isAllowed:function(a,b,c){this.options(a,function(a,d){c(-1!==d.text().indexOf(b))})},options:function(a,b,c){return g("OPTIONS",a,b,c)},patch:function(a,b,c){return g("PATCH",a,b,c)},post:function(a,b,c){return g("POST",a,b,c)},put:function(a,b,c){return g("PUT",a,b,c)},trace:function(a,b,c){return g("TRACE",a,b,c)}},i=a.type?a.type.toLowerCase():"get";h[i](a.url,a,function(b,c){200===b||0===b&&c.text()?a.success(c.json(),b,null):a.error(c.text(),b,null)})}function f(a,b){"function"==typeof a&&(b=a,a={}),a=a||{},W.extend(S,a),delete S.fixLng,S.functions&&(delete S.functions,W.extend(W,a.functions)),"string"==typeof S.ns&&(S.ns={namespaces:[S.ns],defaultNs:S.ns}),"string"==typeof S.fallbackNS&&(S.fallbackNS=[S.fallbackNS]),("string"==typeof S.fallbackLng||"boolean"==typeof S.fallbackLng)&&(S.fallbackLng=[S.fallbackLng]),S.interpolationPrefixEscaped=W.regexEscape(S.interpolationPrefix),S.interpolationSuffixEscaped=W.regexEscape(S.interpolationSuffix),S.lng||(S.lng=W.detectLanguage()),P=W.toLanguages(S.lng),K=P[0],W.log("currentLng set to: "+K),S.useCookie&&W.cookie.read(S.cookieName)!==K&&W.cookie.create(S.cookieName,K,S.cookieExpirationTime,S.cookieDomain),S.detectLngFromLocalStorage&&"undefined"!=typeof document&&window.localStorage&&W.localStorage.setItem("i18next_lng",K);var c=E;a.fixLng&&(c=function(a,b){return b=b||{},b.lng=b.lng||c.lng,E(a,b)},c.lng=K),Z.setCurrentLng(K),L&&S.setJqueryExt?w&&w():x&&x();var d;if(L&&L.Deferred&&(d=L.Deferred()),!S.resStore){var e=W.toLanguages(S.lng);"string"==typeof S.preload&&(S.preload=[S.preload]);for(var f=0,g=S.preload.length;g>f;f++)for(var h=W.toLanguages(S.preload[f]),i=0,j=h.length;j>i;i++)e.indexOf(h[i])<0&&e.push(h[i]);return M.sync.load(e,S,function(a,e){N=e,Q=!0,b&&b(a,c),d&&(a?d.reject:d.resolve)(a||c)}),d?d.promise():void 0}return N=S.resStore,Q=!0,b&&b(null,c),d&&d.resolve(c),d?d.promise():void 0}function g(){return Q}function h(a,b){"string"==typeof a&&(a=[a]);for(var c=0,d=a.length;d>c;c++)S.preload.indexOf(a[c])<0&&S.preload.push(a[c]);return f(b)}function i(a,b,c,d,e){"string"!=typeof b?(c=b,b=S.ns.defaultNs):S.ns.namespaces.indexOf(b)<0&&S.ns.namespaces.push(b),N[a]=N[a]||{},N[a][b]=N[a][b]||{},d?W.deepExtend(N[a][b],c,e):W.extend(N[a][b],c),S.useLocalStorage&&R._storeLocal(N)}function j(a,b){"string"!=typeof b&&(b=S.ns.defaultNs),N[a]=N[a]||{};var c=N[a][b]||{},d=!1;for(var e in c)c.hasOwnProperty(e)&&(d=!0);return d}function k(a,b){return"string"!=typeof b&&(b=S.ns.defaultNs),N[a]=N[a]||{},W.extend({},N[a][b])}function l(a,b){"string"!=typeof b&&(b=S.ns.defaultNs),N[a]=N[a]||{},N[a][b]={},S.useLocalStorage&&R._storeLocal(N)}function m(a,b,c,d){"string"!=typeof b?(resource=b,b=S.ns.defaultNs):S.ns.namespaces.indexOf(b)<0&&S.ns.namespaces.push(b),N[a]=N[a]||{},N[a][b]=N[a][b]||{};for(var e=c.split(S.keyseparator),f=0,g=N[a][b];e[f];)f==e.length-1?g[e[f]]=d:(null==g[e[f]]&&(g[e[f]]={}),g=g[e[f]]),f++;S.useLocalStorage&&R._storeLocal(N)}function n(a,b,c){"string"!=typeof b?(c=b,b=S.ns.defaultNs):S.ns.namespaces.indexOf(b)<0&&S.ns.namespaces.push(b);for(var d in c)"string"==typeof c[d]&&m(a,b,d,c[d])}function o(a){S.ns.defaultNs=a}function p(a,b){q([a],b)}function q(a,b){var c={dynamicLoad:S.dynamicLoad,resGetPath:S.resGetPath,getAsync:S.getAsync,customLoad:S.customLoad,ns:{namespaces:a,defaultNs:""}},d=W.toLanguages(S.lng);"string"==typeof S.preload&&(S.preload=[S.preload]);for(var e=0,f=S.preload.length;f>e;e++)for(var g=W.toLanguages(S.preload[e]),h=0,i=g.length;i>h;h++)d.indexOf(g[h])<0&&d.push(g[h]);for(var j=[],k=0,l=d.length;l>k;k++){var m=!1,n=N[d[k]];if(n)for(var o=0,p=a.length;p>o;o++)n[a[o]]||(m=!0);else m=!0;m&&j.push(d[k])}j.length?M.sync._fetch(j,c,function(c,d){var e=a.length*j.length;W.each(a,function(a,c){S.ns.namespaces.indexOf(c)<0&&S.ns.namespaces.push(c),W.each(j,function(a,f){N[f]=N[f]||{},N[f][c]=d[f][c],e--,0===e&&b&&(S.useLocalStorage&&M.sync._storeLocal(N),b())})})}):b&&b()}function r(a,b,c){return"function"==typeof b?(c=b,b={}):b||(b={}),b.lng=a,f(b,c)}function s(){return K}function t(){var a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"];return a.some(function(a){return new RegExp("^"+a).test(K)})?"rtl":"ltr"}function u(a){N={},r(K,a)}function v(){window.i18next=window.i18n,conflictReference?window.i18n=conflictReference:delete window.i18n}function w(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2));var f;if("html"===d)f=S.defaultValueFromContent?L.extend({defaultValue:a.html()},c):c,a.html(L.t(b,f));else if("text"===d)f=S.defaultValueFromContent?L.extend({defaultValue:a.text()},c):c,a.text(L.t(b,f));else if("prepend"===d)f=S.defaultValueFromContent?L.extend({defaultValue:a.html()},c):c,a.prepend(L.t(b,f));else if("append"===d)f=S.defaultValueFromContent?L.extend({defaultValue:a.html()},c):c,a.append(L.t(b,f));else if(0===d.indexOf("data-")){var g=d.substr("data-".length);f=S.defaultValueFromContent?L.extend({defaultValue:a.data(g)},c):c;var h=L.t(b,f);a.data(g,h),a.attr(d,h)}else f=S.defaultValueFromContent?L.extend({defaultValue:a.attr(d)},c):c,a.attr(d,L.t(b,f))}}function b(b,c){var d=b.attr(S.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.text()||b.val()),d){var e=b,f=b.data("i18n-target");if(f&&(e=b.find(f)||b),c||S.useDataAttrOptions!==!0||(c=b.data("i18n-options")),c=c||{},d.indexOf(";")>=0){var g=d.split(";");L.each(g,function(b,d){""!==d&&a(e,d,c)})}else a(e,d,c);if(S.useDataAttrOptions===!0){var h=L.extend({lng:"non",lngs:[],_origLng:"non"},c);delete h.lng,delete h.lngs,delete h._origLng,b.data("i18n-options",h)}}}L.t=L.t||E,L.fn.i18n=function(a){return this.each(function(){b(L(this),a);var c=L(this).find("["+S.selectorAttr+"]");c.each(function(){b(L(this),a)})})}}function x(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2)),"html"===d?a.innerHTML=E(b,c):"text"===d?a.textContent=E(b,c):"prepend"===d?a.insertAdjacentHTML(E(b,c),"afterbegin"):"append"===d?a.insertAdjacentHTML(E(b,c),"beforeend"):a.setAttribute(d,E(b,c))}}function b(b,c){var d=b.getAttribute(S.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.textContent||b.value),d){var e=b,f=b.getAttribute("i18n-target");if(f&&(e=b.querySelector(f)||b),d.indexOf(";")>=0)for(var g=d.split(";"),h=0,i=g.length;i>h;h++)""!==g[h]&&a(e,g[h],c);else a(e,d,c)}}M.translateObject=function(a,c){for(var d=a.querySelectorAll("["+S.selectorAttr+"]"),e=0,f=d.length;f>e;e++)b(d[e],c)}}function y(a,b,c,d){if(!a)return a;if(d=d||b,a.indexOf(d.interpolationPrefix||S.interpolationPrefix)<0)return a;var e=d.interpolationPrefix?W.regexEscape(d.interpolationPrefix):S.interpolationPrefixEscaped,f=d.interpolationSuffix?W.regexEscape(d.interpolationSuffix):S.interpolationSuffixEscaped,g=d.keyseparator||S.keyseparator,h=b.replace&&"object"==typeof b.replace?b.replace:b,i=new RegExp([e,"(.+?)","(HTML)?",f].join(""),"g"),j=d.escapeInterpolation||S.escapeInterpolation;return a.replace(i,function(a,b,c){for(var d=h,e=b;e.indexOf(g)>=0&&"object"==typeof d&&d;){var f=e.slice(0,e.indexOf(g));e=e.slice(e.indexOf(g)+1),d=d[f]}if(d&&"object"==typeof d&&d.hasOwnProperty(e)){{d[e]}return j&&!c?W.escape(d[e]):d[e]}return a})}function z(a,b){var c=",",d="{",e="}",f=W.extend({},b);for(delete f.postProcess;-1!=a.indexOf(S.reusePrefix)&&(O++,!(O>S.maxRecursion));){var g=a.lastIndexOf(S.reusePrefix),h=a.indexOf(S.reuseSuffix,g)+S.reuseSuffix.length,i=a.substring(g,h),j=i.replace(S.reusePrefix,"").replace(S.reuseSuffix,"");if(g>=h)return W.error("there is an missing closing in following translation value",a),"";if(-1!=j.indexOf(c)){var k=j.indexOf(c);if(-1!=j.indexOf(d,k)&&-1!=j.indexOf(e,k)){var l=j.indexOf(d,k),m=j.indexOf(e,l)+e.length;try{f=W.extend(f,JSON.parse(j.substring(l,m))),j=j.substring(0,k)}catch(n){}}}var o=H(j,f);a=a.replace(i,W.regexReplacementEscape(o))}return a}function A(a){return a.context&&("string"==typeof a.context||"number"==typeof a.context)}function B(a){return void 0!==a.count&&"string"!=typeof a.count}function C(a){return void 0!==a.indefinite_article&&"string"!=typeof a.indefinite_article&&a.indefinite_article}function D(a,b){b=b||{};var c=F(a,b),d=I(a,b);return void 0!==d||d===c}function E(a,b){return b=b||{},Q?(O=0,H.apply(null,arguments)):(W.log("i18next not finished initialization. you might have called t function before loading resources finished."),b.defaultValue||"")}function F(a,b){return void 0!==b.defaultValue?b.defaultValue:a}function G(){for(var a=[],b=1;b<arguments.length;b++)a.push(arguments[b]);return{postProcess:"sprintf",sprintf:a}}function H(a,b){if(b&&"object"!=typeof b?"sprintf"===S.shortcutFunction?b=G.apply(null,arguments):"defaultValue"===S.shortcutFunction&&(b={defaultValue:b}):b=b||{},"object"==typeof S.defaultVariables&&(b=W.extend({},S.defaultVariables,b)),void 0===a||null===a||""===a)return"";"number"==typeof a&&(a=String(a)),"string"==typeof a&&(a=[a]);var c=a[0];if(a.length>1)for(var d=0;d<a.length&&(c=a[d],!D(c,b));d++);var e,f=F(c,b),g=I(c,b),h=b.nsseparator||S.nsseparator,i=b.lng?W.toLanguages(b.lng,b.fallbackLng):P,j=b.ns||S.ns.defaultNs;c.indexOf(h)>-1&&(e=c.split(h),j=e[0],c=e[1]),void 0===g&&S.sendMissing&&"function"==typeof S.missingKeyHandler&&(b.lng?S.missingKeyHandler(i[0],j,c,f,i):S.missingKeyHandler(S.lng,j,c,f,i));var k;k="string"==typeof S.postProcess&&""!==S.postProcess?[S.postProcess]:"array"==typeof S.postProcess||"object"==typeof S.postProcess?S.postProcess:[],"string"==typeof b.postProcess&&""!==b.postProcess?k=k.concat([b.postProcess]):("array"==typeof b.postProcess||"object"==typeof b.postProcess)&&(k=k.concat(b.postProcess)),void 0!==g&&k.length&&k.forEach(function(a){$[a]&&(g=$[a](g,c,b))});var l=f;return f.indexOf(h)>-1&&(e=f.split(h),l=e[1]),l===c&&S.parseMissingKey&&(f=S.parseMissingKey(f)),void 0===g&&(f=y(f,b),f=z(f,b),k.length&&(g=F(c,b),k.forEach(function(a){$[a]&&(g=$[a](g,c,b))}))),void 0!==g?g:f}function I(a,b){b=b||{};var c,d,e=F(a,b),f=P;if(!N)return e;if("cimode"===f[0].toLowerCase())return e;if(b.lngs&&(f=b.lngs),b.lng&&(f=W.toLanguages(b.lng,b.fallbackLng),!N[f[0]])){var g=S.getAsync;S.getAsync=!1,M.sync.load(f,S,function(a,b){W.extend(N,b),S.getAsync=g})}var h=b.ns||S.ns.defaultNs,i=b.nsseparator||S.nsseparator;if(a.indexOf(i)>-1){var j=a.split(i);h=j[0],a=j[1]}if(A(b)){c=W.extend({},b),delete c.context,c.defaultValue=S.contextNotFound;var k=h+i+a+"_"+b.context;if(d=E(k,c),d!=S.contextNotFound)return y(d,{context:b.context})}if(B(b,f[0])){c=W.extend({lngs:[f[0]]},b),delete c.count,c._origLng=c._origLng||c.lng||f[0],delete c.lng,c.defaultValue=S.pluralNotFound;var l;if(Z.needsPlural(f[0],b.count)){l=h+i+a+S.pluralSuffix;var m=Z.get(f[0],b.count);m>=0?l=l+"_"+m:1===m&&(l=h+i+a)}else l=h+i+a;if(d=E(l,c),d!=S.pluralNotFound)return y(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});if(!(f.length>1))return c.lng=c._origLng,delete c._origLng,d=E(h+i+a,c),y(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});var n=f.slice();if(n.shift(),b=W.extend(b,{lngs:n}),b._origLng=c._origLng,delete b.lng,d=E(h+i+a,b),d!=S.pluralNotFound)return d}if(C(b)){var o=W.extend({},b);delete o.indefinite_article,o.defaultValue=S.indefiniteNotFound;var p=h+i+a+(b.count&&!B(b,f[0])||!b.count?S.indefiniteSuffix:"");if(d=E(p,o),d!=S.indefiniteNotFound)return d}for(var q,r=b.keyseparator||S.keyseparator,s=a.split(r),t=0,u=f.length;u>t&&void 0===q;t++){for(var v=f[t],w=0,x=N[v]&&N[v][h];s[w];)x=x&&x[s[w]],w++;if(void 0!==x&&(!S.showKeyIfEmpty||""!==x)){var D=Object.prototype.toString.apply(x);if("string"==typeof x)x=y(x,b),x=z(x,b);else if("[object Array]"!==D||S.returnObjectTrees||b.returnObjectTrees){if(null===x&&S.fallbackOnNull===!0)x=void 0;else if(null!==x)if(S.returnObjectTrees||b.returnObjectTrees){if("[object Number]"!==D&&"[object Function]"!==D&&"[object RegExp]"!==D){var G="[object Array]"===D?[]:{};W.each(x,function(c){G[c]=H(h+i+a+r+c,b)}),x=G}}else S.objectTreeKeyHandler&&"function"==typeof S.objectTreeKeyHandler?x=S.objectTreeKeyHandler(a,x,v,h,b):(x="key '"+h+":"+a+" ("+v+")' returned an object instead of string.",W.log(x))}else x=x.join("\n"),x=y(x,b),x=z(x,b);"string"==typeof x&&""===x.trim()&&S.fallbackOnEmpty===!0&&(x=void 0),q=x}}if(void 0===q&&!b.isFallbackLookup&&(S.fallbackToDefaultNS===!0||S.fallbackNS&&S.fallbackNS.length>0)){if(b.isFallbackLookup=!0,S.fallbackNS.length){for(var J=0,K=S.fallbackNS.length;K>J;J++)if(q=I(S.fallbackNS[J]+i+a,b),q||""===q&&S.fallbackOnEmpty===!1){var L=q.indexOf(i)>-1?q.split(i)[1]:q,O=e.indexOf(i)>-1?e.split(i)[1]:e;if(L!==O)break}}else b.ns=S.ns.defaultNs,q=I(a,b);b.isFallbackLookup=!1}return q}function J(){var a,b=S.lngWhitelist||[],c=[];if("undefined"!=typeof window&&!function(){for(var a=window.location.search.substring(1),b=a.split("&"),d=0;d<b.length;d++){var e=b[d].indexOf("=");if(e>0){var f=b[d].substring(0,e);f==S.detectLngQS&&c.push(b[d].substring(e+1))}}}(),S.useCookie&&"undefined"!=typeof document){var d=W.cookie.read(S.cookieName);d&&c.push(d)}if(S.detectLngFromLocalStorage&&"undefined"!=typeof window&&window.localStorage){var e=W.localStorage.getItem("i18next_lng");e&&c.push(e)}if("undefined"!=typeof navigator){if(navigator.languages)for(var f=0;f<navigator.languages.length;f++)c.push(navigator.languages[f]);navigator.userLanguage&&c.push(navigator.userLanguage),navigator.language&&c.push(navigator.language)}return function(){for(var d=0;d<c.length;d++){var e=c[d];if(e.indexOf("-")>-1){var f=e.split("-");e=S.lowerCaseLng?f[0].toLowerCase()+"-"+f[1].toLowerCase():f[0].toLowerCase()+"-"+f[1].toUpperCase()}if(0===b.length||b.indexOf(e)>-1){a=e;break}}}(),a||(a=S.fallbackLng[0]),a}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;if(arguments.length>0&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(var e=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(e in b&&b[e]===a)return e;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=c;arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d))));for(var e=d>=0?Math.min(d,c-1):c-Math.abs(d);e>=0;e--)if(e in b&&b[e]===a)return e;return-1}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var K,L=void 0,M={},N={},O=0,P=[],Q=!1,R={};R={load:function(a,b,c){b.useLocalStorage?R._loadLocal(a,b,function(d,e){for(var f=[],g=0,h=a.length;h>g;g++)e[a[g]]||f.push(a[g]);f.length>0?R._fetch(f,b,function(a,b){W.extend(e,b),R._storeLocal(b),c(a,e)}):c(d,e)}):R._fetch(a,b,function(a,b){c(a,b)})},_loadLocal:function(a,b,c){var d={},e=(new Date).getTime();if(window.localStorage){var f=a.length;W.each(a,function(a,g){var h=W.localStorage.getItem("res_"+g);h&&(h=JSON.parse(h),h.i18nStamp&&h.i18nStamp+b.localStorageExpirationTime>e&&(d[g]=h)),f--,0===f&&c(null,d)})}},_storeLocal:function(a){if(window.localStorage)for(var b in a)a[b].i18nStamp=(new Date).getTime(),W.localStorage.setItem("res_"+b,JSON.stringify(a[b]))},_fetch:function(a,b,c){var d=b.ns,e={};if(b.dynamicLoad){var f=function(a,b){c(a,b)};if("function"==typeof b.customLoad)b.customLoad(a,d.namespaces,b,f);else{var g=y(b.resGetPath,{lng:a.join("+"),ns:d.namespaces.join("+")});W.ajax({url:g,cache:b.cache,success:function(a){W.log("loaded: "+g),f(null,a)},error:function(a,b,c){W.log("failed loading: "+g),f("failed loading resource.json error: "+c)},dataType:"json",async:b.getAsync,timeout:b.ajaxTimeout})}}else{var h,i=d.namespaces.length*a.length;W.each(d.namespaces,function(d,f){W.each(a,function(a,d){var g=function(a,b){a&&(h=h||[],h.push(a)),e[d]=e[d]||{},e[d][f]=b,i--,0===i&&c(h,e)};"function"==typeof b.customLoad?b.customLoad(d,f,b,g):R._fetchOne(d,f,b,g)})})}},_fetchOne:function(a,b,c,d){var e=y(c.resGetPath,{lng:a,ns:b});W.ajax({url:e,cache:c.cache,success:function(a){W.log("loaded: "+e),d(null,a)},error:function(a,b,c){if(b&&200==b||a&&a.status&&200==a.status)W.error("There is a typo in: "+e);else if(b&&404==b||a&&a.status&&404==a.status)W.log("Does not exist: "+e);else{var f=b?b:a&&a.status?a.status:null;W.log(f+" when loading "+e)}d(c,{})},dataType:"json",async:c.getAsync,timeout:c.ajaxTimeout,headers:c.headers})},postMissing:function(a,b,c,d,e){var f={};f[c]=d;var g=[];if("fallback"===S.sendMissingTo&&S.fallbackLng[0]!==!1)for(var h=0;h<S.fallbackLng.length;h++)g.push({lng:S.fallbackLng[h],url:y(S.resPostPath,{lng:S.fallbackLng[h],ns:b})});else if("current"===S.sendMissingTo||"fallback"===S.sendMissingTo&&S.fallbackLng[0]===!1)g.push({lng:a,url:y(S.resPostPath,{lng:a,ns:b})});else if("all"===S.sendMissingTo)for(var h=0,i=e.length;i>h;h++)g.push({lng:e[h],url:y(S.resPostPath,{lng:e[h],ns:b})});for(var j=0,k=g.length;k>j;j++){var l=g[j];W.ajax({url:l.url,type:S.sendType,data:f,success:function(){W.log("posted missing key '"+c+"' to: "+l.url);for(var a=c.split("."),e=0,f=N[l.lng][b];a[e];)f=f[a[e]]=e===a.length-1?d:f[a[e]]||{},e++},error:function(){W.log("failed posting missing key '"+c+"' to: "+l.url)},dataType:"json",async:S.postAsync,timeout:S.ajaxTimeout})}},reload:u};var S={lng:void 0,load:"all",preload:[],lowerCaseLng:!1,returnObjectTrees:!1,fallbackLng:["dev"],fallbackNS:[],detectLngQS:"setLng",detectLngFromLocalStorage:!1,ns:{namespaces:["translation"],defaultNs:"translation"},fallbackOnNull:!0,fallbackOnEmpty:!1,fallbackToDefaultNS:!1,showKeyIfEmpty:!1,nsseparator:":",keyseparator:".",selectorAttr:"data-i18n",debug:!1,resGetPath:"locales/__lng__/__ns__.json",resPostPath:"locales/add/__lng__/__ns__",getAsync:!0,postAsync:!0,resStore:void 0,useLocalStorage:!1,localStorageExpirationTime:6048e5,dynamicLoad:!1,sendMissing:!1,sendMissingTo:"fallback",sendType:"POST",interpolationPrefix:"__",interpolationSuffix:"__",defaultVariables:!1,reusePrefix:"$t(",reuseSuffix:")",pluralSuffix:"_plural",pluralNotFound:["plural_not_found",Math.random()].join(""),contextNotFound:["context_not_found",Math.random()].join(""),escapeInterpolation:!1,indefiniteSuffix:"_indefinite",indefiniteNotFound:["indefinite_not_found",Math.random()].join(""),setJqueryExt:!0,defaultValueFromContent:!0,useDataAttrOptions:!1,cookieExpirationTime:void 0,useCookie:!0,cookieName:"i18next",cookieDomain:void 0,objectTreeKeyHandler:void 0,postProcess:void 0,parseMissingKey:void 0,missingKeyHandler:R.postMissing,ajaxTimeout:0,shortcutFunction:"sprintf"},T={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},U={create:function(a,b,c,d){var e;if(c){var f=new Date;f.setTime(f.getTime()+60*c*1e3),e="; expires="+f.toGMTString()}else e="";d=d?"domain="+d+";":"",document.cookie=a+"="+b+e+";"+d+"path=/"},read:function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(b))return e.substring(b.length,e.length)}return null},remove:function(a){this.create(a,"",-1)}},V={create:function(){},read:function(){return null},remove:function(){}},W={extend:L?L.extend:a,deepExtend:b,each:L?L.each:c,ajax:L?L.ajax:"undefined"!=typeof document?e:function(){},cookie:"undefined"!=typeof document?U:V,detectLanguage:J,escape:d,log:function(a){S.debug&&"undefined"!=typeof console&&console.log(a)},error:function(a){"undefined"!=typeof console&&console.error(a)},getCountyIndexOfLng:function(a){var b=0;return("nb-NO"===a||"nn-NO"===a||"nb-no"===a||"nn-no"===a)&&(b=1),b},toLanguages:function(a,b){function c(a){var b=a;if("string"==typeof a&&a.indexOf("-")>-1){var c=a.split("-");b=S.lowerCaseLng?c[0].toLowerCase()+"-"+c[1].toLowerCase():c[0].toLowerCase()+"-"+c[1].toUpperCase()}else b=S.lowerCaseLng?a.toLowerCase():a;return b}var d=this.log;b=b||S.fallbackLng,"string"==typeof b&&(b=[b]);var e=[],f=S.lngWhitelist||!1,g=function(a){!f||f.indexOf(a)>-1?e.push(a):d("rejecting non-whitelisted language: "+a)};if("string"==typeof a&&a.indexOf("-")>-1){var h=a.split("-");"unspecific"!==S.load&&g(c(a)),"current"!==S.load&&g(c(h[this.getCountyIndexOfLng(a)]))}else g(c(a));for(var i=0;i<b.length;i++)-1===e.indexOf(b[i])&&b[i]&&e.push(c(b[i]));return e},regexEscape:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},regexReplacementEscape:function(a){return"string"==typeof a?a.replace(/\$/g,"$$$$"):a},localStorage:{setItem:function(a,b){if(window.localStorage)try{window.localStorage.setItem(a,b)}catch(c){W.log('failed to set value for key "'+a+'" to localStorage.')}},getItem:function(a,b){if(window.localStorage)try{return window.localStorage.getItem(a,b)}catch(c){return void W.log('failed to get value for key "'+a+'" from localStorage.')}}}};W.applyReplacement=y;var X=[["ach","Acholi",[1,2],1],["af","Afrikaans",[1,2],2],["ak","Akan",[1,2],1],["am","Amharic",[1,2],1],["an","Aragonese",[1,2],2],["ar","Arabic",[0,1,2,3,11,100],5],["arn","Mapudungun",[1,2],1],["ast","Asturian",[1,2],2],["ay","Aymará",[1],3],["az","Azerbaijani",[1,2],2],["be","Belarusian",[1,2,5],4],["bg","Bulgarian",[1,2],2],["bn","Bengali",[1,2],2],["bo","Tibetan",[1],3],["br","Breton",[1,2],1],["bs","Bosnian",[1,2,5],4],["ca","Catalan",[1,2],2],["cgg","Chiga",[1],3],["cs","Czech",[1,2,5],6],["csb","Kashubian",[1,2,5],7],["cy","Welsh",[1,2,3,8],8],["da","Danish",[1,2],2],["de","German",[1,2],2],["dev","Development Fallback",[1,2],2],["dz","Dzongkha",[1],3],["el","Greek",[1,2],2],["en","English",[1,2],2],["eo","Esperanto",[1,2],2],["es","Spanish",[1,2],2],["es_ar","Argentinean Spanish",[1,2],2],["et","Estonian",[1,2],2],["eu","Basque",[1,2],2],["fa","Persian",[1],3],["fi","Finnish",[1,2],2],["fil","Filipino",[1,2],1],["fo","Faroese",[1,2],2],["fr","French",[1,2],9],["fur","Friulian",[1,2],2],["fy","Frisian",[1,2],2],["ga","Irish",[1,2,3,7,11],10],["gd","Scottish Gaelic",[1,2,3,20],11],["gl","Galician",[1,2],2],["gu","Gujarati",[1,2],2],["gun","Gun",[1,2],1],["ha","Hausa",[1,2],2],["he","Hebrew",[1,2],2],["hi","Hindi",[1,2],2],["hr","Croatian",[1,2,5],4],["hu","Hungarian",[1,2],2],["hy","Armenian",[1,2],2],["ia","Interlingua",[1,2],2],["id","Indonesian",[1],3],["is","Icelandic",[1,2],12],["it","Italian",[1,2],2],["ja","Japanese",[1],3],["jbo","Lojban",[1],3],["jv","Javanese",[0,1],13],["ka","Georgian",[1],3],["kk","Kazakh",[1],3],["km","Khmer",[1],3],["kn","Kannada",[1,2],2],["ko","Korean",[1],3],["ku","Kurdish",[1,2],2],["kw","Cornish",[1,2,3,4],14],["ky","Kyrgyz",[1],3],["lb","Letzeburgesch",[1,2],2],["ln","Lingala",[1,2],1],["lo","Lao",[1],3],["lt","Lithuanian",[1,2,10],15],["lv","Latvian",[1,2,0],16],["mai","Maithili",[1,2],2],["mfe","Mauritian Creole",[1,2],1],["mg","Malagasy",[1,2],1],["mi","Maori",[1,2],1],["mk","Macedonian",[1,2],17],["ml","Malayalam",[1,2],2],["mn","Mongolian",[1,2],2],["mnk","Mandinka",[0,1,2],18],["mr","Marathi",[1,2],2],["ms","Malay",[1],3],["mt","Maltese",[1,2,11,20],19],["nah","Nahuatl",[1,2],2],["nap","Neapolitan",[1,2],2],["nb","Norwegian Bokmal",[1,2],2],["ne","Nepali",[1,2],2],["nl","Dutch",[1,2],2],["nn","Norwegian Nynorsk",[1,2],2],["no","Norwegian",[1,2],2],["nso","Northern Sotho",[1,2],2],["oc","Occitan",[1,2],1],["or","Oriya",[2,1],2],["pa","Punjabi",[1,2],2],["pap","Papiamento",[1,2],2],["pl","Polish",[1,2,5],7],["pms","Piemontese",[1,2],2],["ps","Pashto",[1,2],2],["pt","Portuguese",[1,2],2],["pt_br","Brazilian Portuguese",[1,2],2],["rm","Romansh",[1,2],2],["ro","Romanian",[1,2,20],20],["ru","Russian",[1,2,5],4],["sah","Yakut",[1],3],["sco","Scots",[1,2],2],["se","Northern Sami",[1,2],2],["si","Sinhala",[1,2],2],["sk","Slovak",[1,2,5],6],["sl","Slovenian",[5,1,2,3],21],["so","Somali",[1,2],2],["son","Songhay",[1,2],2],["sq","Albanian",[1,2],2],["sr","Serbian",[1,2,5],4],["su","Sundanese",[1],3],["sv","Swedish",[1,2],2],["sw","Swahili",[1,2],2],["ta","Tamil",[1,2],2],["te","Telugu",[1,2],2],["tg","Tajik",[1,2],1],["th","Thai",[1],3],["ti","Tigrinya",[1,2],1],["tk","Turkmen",[1,2],2],["tr","Turkish",[1,2],1],["tt","Tatar",[1],3],["ug","Uyghur",[1],3],["uk","Ukrainian",[1,2,5],4],["ur","Urdu",[1,2],2],["uz","Uzbek",[1,2],1],["vi","Vietnamese",[1],3],["wa","Walloon",[1,2],1],["wo","Wolof",[1],3],["yo","Yoruba",[1,2],2],["zh","Chinese",[1],3]],Y={1:function(a){return Number(a>1)},2:function(a){return Number(1!=a)},3:function(){return 0},4:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},5:function(a){return Number(0===a?0:1==a?1:2==a?2:a%100>=3&&10>=a%100?3:a%100>=11?4:5)},6:function(a){return Number(1==a?0:a>=2&&4>=a?1:2)},7:function(a){return Number(1==a?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},8:function(a){return Number(1==a?0:2==a?1:8!=a&&11!=a?2:3)},9:function(a){return Number(a>=2)},10:function(a){return Number(1==a?0:2==a?1:7>a?2:11>a?3:4)},11:function(a){return Number(1==a||11==a?0:2==a||12==a?1:a>2&&20>a?2:3)},12:function(a){return Number(a%10!=1||a%100==11)},13:function(a){return Number(0!==a)},14:function(a){return Number(1==a?0:2==a?1:3==a?2:3)},15:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&(10>a%100||a%100>=20)?1:2)},16:function(a){return Number(a%10==1&&a%100!=11?0:0!==a?1:2)},17:function(a){return Number(1==a||a%10==1?0:1)},18:function(a){return Number(0==a?0:1==a?1:2)},19:function(a){return Number(1==a?0:0===a||a%100>1&&11>a%100?1:a%100>10&&20>a%100?2:3)},20:function(a){return Number(1==a?0:0===a||a%100>0&&20>a%100?1:2)},21:function(a){return Number(a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0)}},Z={rules:function(){var a,b={};for(a=X.length;a--;)b[X[a][0]]={name:X[a][1],numbers:X[a][2],plurals:Y[X[a][3]]};return b}(),addRule:function(a,b){Z.rules[a]=b},setCurrentLng:function(a){if(!Z.currentRule||Z.currentRule.lng!==a){var b=a.split("-");Z.currentRule={lng:a,rule:Z.rules[b[0]]}}},needsPlural:function(a,b){var c,d=a.split("-");return c=Z.currentRule&&Z.currentRule.lng===a?Z.currentRule.rule:Z.rules[d[W.getCountyIndexOfLng(a)]],c&&c.numbers.length<=1?!1:1!==this.get(a,b)},get:function(a,b){function c(b,c){var d;if(d=Z.currentRule&&Z.currentRule.lng===a?Z.currentRule.rule:Z.rules[b]){var e;e=d.plurals(d.noAbs?c:Math.abs(c));var f=d.numbers[e];return 2===d.numbers.length&&1===d.numbers[0]&&(2===f?f=-1:1===f&&(f=1)),f}return 1===c?"1":"-1"}var d=a.split("-");return c(d[W.getCountyIndexOfLng(a)],b)}},$={},_=function(a,b){$[a]=b},aa=function(){function a(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function b(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")}var c=function(){return c.cache.hasOwnProperty(arguments[0])||(c.cache[arguments[0]]=c.parse(arguments[0])),c.format.call(null,c.cache[arguments[0]],arguments)};return c.format=function(c,d){var e,f,g,h,i,j,k,l=1,m=c.length,n="",o=[];for(f=0;m>f;f++)if(n=a(c[f]),"string"===n)o.push(c[f]);else if("array"===n){if(h=c[f],h[2])for(e=d[l],g=0;g<h[2].length;g++){if(!e.hasOwnProperty(h[2][g]))throw aa('[sprintf] property "%s" does not exist',h[2][g]);e=e[h[2][g]]}else e=h[1]?d[h[1]]:d[l++];if(/[^s]/.test(h[8])&&"number"!=a(e))throw aa("[sprintf] expecting number but found %s",a(e));switch(h[8]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e,10);break;case"e":e=h[7]?e.toExponential(h[7]):e.toExponential();break;case"f":e=h[7]?parseFloat(e).toFixed(h[7]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&h[7]?e.substring(0,h[7]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(h[8])&&h[3]&&e>=0?"+"+e:e,j=h[4]?"0"==h[4]?"0":h[4].charAt(1):" ",k=h[6]-String(e).length,i=h[6]?b(j,k):"",o.push(h[5]?e+i:i+e)}return o.join("")},c.cache={},c.parse=function(a){for(var b=a,c=[],d=[],e=0;b;){if(null!==(c=/^[^\x25]+/.exec(b)))d.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(b)))d.push("%");else{if(null===(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)))throw"[sprintf] huh?";if(c[2]){e|=1;var f=[],g=c[2],h=[];
if(null===(h=/^([a-z_][a-z_\d]*)/i.exec(g)))throw"[sprintf] huh?";for(f.push(h[1]);""!==(g=g.substring(h[0].length));)if(null!==(h=/^\.([a-z_][a-z_\d]*)/i.exec(g)))f.push(h[1]);else{if(null===(h=/^\[(\d+)\]/.exec(g)))throw"[sprintf] huh?";f.push(h[1])}c[2]=f}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";d.push(c)}b=b.substring(c[0].length)}return d},c}(),ba=function(a,b){return b.unshift(a),aa.apply(null,b)};return _("sprintf",function(a,b,c){return c.sprintf?"[object Array]"===Object.prototype.toString.apply(c.sprintf)?ba(a,c.sprintf):"object"==typeof c.sprintf?aa(a,c.sprintf):a:a}),M.init=f,M.isInitialized=g,M.setLng=r,M.preload=h,M.addResourceBundle=i,M.hasResourceBundle=j,M.getResourceBundle=k,M.addResource=m,M.addResources=n,M.removeResourceBundle=l,M.loadNamespace=p,M.loadNamespaces=q,M.setDefaultNamespace=o,M.t=E,M.translate=E,M.exists=D,M.detectLanguage=W.detectLanguage,M.pluralExtensions=Z,M.sync=R,M.functions=W,M.lng=s,M.dir=t,M.addPostProcessor=_,M.applyReplacement=W.applyReplacement,M.options=S,M.noConflict=v,M});

@@ -1,7 +0,7 @@

// i18next, v1.10.3
// i18next, v1.11.0
// Copyright (c)2015 Jan Mühlemann (jamuhl).
// Distributed under MIT license
// http://i18next.com
!function(a,b){if("object"==typeof exports){var c=require("jquery");module.exports=b(c)}else"function"==typeof define&&define.amd&&define(["jquery"],b)}(this,function(a){function b(a,b){if(!b||"function"==typeof b)return a;for(var c in b)a[c]=b[c];return a}function c(a,b){for(var d in b)d in a?c(a[d],b[d]):a[d]=b[d];return a}function d(a,b,c){var d,e=0,f=a.length,g=void 0===f||"[object Array]"!==Object.prototype.toString.apply(a)||"function"==typeof a;if(c)if(g){for(d in a)if(b.apply(a[d],c)===!1)break}else for(;f>e&&b.apply(a[e++],c)!==!1;);else if(g){for(d in a)if(b.call(a[d],d,a[d])===!1)break}else for(;f>e&&b.call(a[e],e,a[e++])!==!1;);return a}function e(a){return"string"==typeof a?a.replace(/[&<>"'\/]/g,function(a){return S[a]}):a}function f(a){var b=function(a){if(window.XMLHttpRequest)return a(null,new XMLHttpRequest);if(window.ActiveXObject)try{return a(null,new ActiveXObject("Msxml2.XMLHTTP"))}catch(b){return a(null,new ActiveXObject("Microsoft.XMLHTTP"))}return a(new Error)},c=function(a){if("string"==typeof a)return a;var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b.join("&")},d=function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):d>127&&2048>d?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},e=function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a=d(a);var c,e,f,g,h,i,j,k="",l=0;do c=a.charCodeAt(l++),e=a.charCodeAt(l++),f=a.charCodeAt(l++),g=c>>2,h=(3&c)<<4|e>>4,i=(15&e)<<2|f>>6,j=63&f,isNaN(e)?i=j=64:isNaN(f)&&(j=64),k+=b.charAt(g)+b.charAt(h)+b.charAt(i)+b.charAt(j),c=e=f="",g=h=i=j="";while(l<a.length);return k},f=function(){for(var a=arguments[0],b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}return a},g=function(a,d,e,h){"function"==typeof e&&(h=e,e={}),e.cache=e.cache||!1,e.data=e.data||{},e.headers=e.headers||{},e.jsonp=e.jsonp||!1,e.async=void 0===e.async?!0:e.async;var i,j=f({accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},g.headers,e.headers);if(i="application/json"===j["content-type"]?JSON.stringify(e.data):c(e.data),"GET"===a){var k=[];if(i&&(k.push(i),i=null),e.cache||k.push("_="+(new Date).getTime()),e.jsonp&&(k.push("callback="+e.jsonp),k.push("jsonp="+e.jsonp)),k=k.join("&"),k.length>1&&(d+=d.indexOf("?")>-1?"&"+k:"?"+k),e.jsonp){var l=document.getElementsByTagName("head")[0],m=document.createElement("script");return m.type="text/javascript",m.src=d,void l.appendChild(m)}}b(function(b,c){if(b)return h(b);c.open(a,d,e.async);for(var f in j)j.hasOwnProperty(f)&&c.setRequestHeader(f,j[f]);c.onreadystatechange=function(){if(4===c.readyState){var a=c.responseText||"";if(!h)return;h(c.status,{text:function(){return a},json:function(){try{return JSON.parse(a)}catch(b){return V.error("Can not parse JSON. URL: "+d),{}}}})}},c.send(i)})},h={authBasic:function(a,b){g.headers.Authorization="Basic "+e(a+":"+b)},connect:function(a,b,c){return g("CONNECT",a,b,c)},del:function(a,b,c){return g("DELETE",a,b,c)},get:function(a,b,c){return g("GET",a,b,c)},head:function(a,b,c){return g("HEAD",a,b,c)},headers:function(a){g.headers=a||{}},isAllowed:function(a,b,c){this.options(a,function(a,d){c(-1!==d.text().indexOf(b))})},options:function(a,b,c){return g("OPTIONS",a,b,c)},patch:function(a,b,c){return g("PATCH",a,b,c)},post:function(a,b,c){return g("POST",a,b,c)},put:function(a,b,c){return g("PUT",a,b,c)},trace:function(a,b,c){return g("TRACE",a,b,c)}},i=a.type?a.type.toLowerCase():"get";h[i](a.url,a,function(b,c){200===b||0===b&&c.text()?a.success(c.json(),b,null):a.error(c.text(),b,null)})}function g(b,c){"function"==typeof b&&(c=b,b={}),b=b||{},V.extend(R,b),delete R.fixLng,R.functions&&(delete R.functions,V.extend(V,b.functions)),"string"==typeof R.ns&&(R.ns={namespaces:[R.ns],defaultNs:R.ns}),"string"==typeof R.fallbackNS&&(R.fallbackNS=[R.fallbackNS]),("string"==typeof R.fallbackLng||"boolean"==typeof R.fallbackLng)&&(R.fallbackLng=[R.fallbackLng]),R.interpolationPrefixEscaped=V.regexEscape(R.interpolationPrefix),R.interpolationSuffixEscaped=V.regexEscape(R.interpolationSuffix),R.lng||(R.lng=V.detectLanguage()),O=V.toLanguages(R.lng),K=O[0],V.log("currentLng set to: "+K),R.useCookie&&V.cookie.read(R.cookieName)!==K&&V.cookie.create(R.cookieName,K,R.cookieExpirationTime,R.cookieDomain),R.detectLngFromLocalStorage&&"undefined"!=typeof document&&window.localStorage&&V.localStorage.setItem("i18next_lng",K);var d=E;b.fixLng&&(d=function(a,b){return b=b||{},b.lng=b.lng||d.lng,E(a,b)},d.lng=K),Y.setCurrentLng(K),a&&R.setJqueryExt?w&&w():x&&x();var e;if(a&&a.Deferred&&(e=a.Deferred()),!R.resStore){var f=V.toLanguages(R.lng);"string"==typeof R.preload&&(R.preload=[R.preload]);for(var g=0,h=R.preload.length;h>g;g++)for(var i=V.toLanguages(R.preload[g]),j=0,k=i.length;k>j;j++)f.indexOf(i[j])<0&&f.push(i[j]);return L.sync.load(f,R,function(a,b){M=b,P=!0,c&&c(a,d),e&&(a?e.reject:e.resolve)(a||d)}),e?e.promise():void 0}return M=R.resStore,P=!0,c&&c(null,d),e&&e.resolve(d),e?e.promise():void 0}function h(){return P}function i(a,b){"string"==typeof a&&(a=[a]);for(var c=0,d=a.length;d>c;c++)R.preload.indexOf(a[c])<0&&R.preload.push(a[c]);return g(b)}function j(a,b,c,d){"string"!=typeof b?(c=b,b=R.ns.defaultNs):R.ns.namespaces.indexOf(b)<0&&R.ns.namespaces.push(b),M[a]=M[a]||{},M[a][b]=M[a][b]||{},d?V.deepExtend(M[a][b],c):V.extend(M[a][b],c),R.useLocalStorage&&Q._storeLocal(M)}function k(a,b){"string"!=typeof b&&(b=R.ns.defaultNs),M[a]=M[a]||{};var c=M[a][b]||{},d=!1;for(var e in c)c.hasOwnProperty(e)&&(d=!0);return d}function l(a,b){return"string"!=typeof b&&(b=R.ns.defaultNs),M[a]=M[a]||{},V.extend({},M[a][b])}function m(a,b){"string"!=typeof b&&(b=R.ns.defaultNs),M[a]=M[a]||{},M[a][b]={},R.useLocalStorage&&Q._storeLocal(M)}function n(a,b,c,d){"string"!=typeof b?(resource=b,b=R.ns.defaultNs):R.ns.namespaces.indexOf(b)<0&&R.ns.namespaces.push(b),M[a]=M[a]||{},M[a][b]=M[a][b]||{};for(var e=c.split(R.keyseparator),f=0,g=M[a][b];e[f];)f==e.length-1?g[e[f]]=d:(null==g[e[f]]&&(g[e[f]]={}),g=g[e[f]]),f++;R.useLocalStorage&&Q._storeLocal(M)}function o(a,b,c){"string"!=typeof b?(resource=b,b=R.ns.defaultNs):R.ns.namespaces.indexOf(b)<0&&R.ns.namespaces.push(b);for(var d in c)"string"==typeof c[d]&&n(a,b,d,c[d])}function p(a){R.ns.defaultNs=a}function q(a,b){r([a],b)}function r(a,b){var c={dynamicLoad:R.dynamicLoad,resGetPath:R.resGetPath,getAsync:R.getAsync,customLoad:R.customLoad,ns:{namespaces:a,defaultNs:""}},d=V.toLanguages(R.lng);"string"==typeof R.preload&&(R.preload=[R.preload]);for(var e=0,f=R.preload.length;f>e;e++)for(var g=V.toLanguages(R.preload[e]),h=0,i=g.length;i>h;h++)d.indexOf(g[h])<0&&d.push(g[h]);for(var j=[],k=0,l=d.length;l>k;k++){var m=!1,n=M[d[k]];if(n)for(var o=0,p=a.length;p>o;o++)n[a[o]]||(m=!0);else m=!0;m&&j.push(d[k])}j.length?L.sync._fetch(j,c,function(c,d){var e=a.length*j.length;V.each(a,function(a,c){R.ns.namespaces.indexOf(c)<0&&R.ns.namespaces.push(c),V.each(j,function(a,f){M[f]=M[f]||{},M[f][c]=d[f][c],e--,0===e&&b&&(R.useLocalStorage&&L.sync._storeLocal(M),b())})})}):b&&b()}function s(a,b,c){return"function"==typeof b?(c=b,b={}):b||(b={}),b.lng=a,g(b,c)}function t(){return K}function u(a){M={},s(K,a)}function v(){window.i18next=window.i18n,conflictReference?window.i18n=conflictReference:delete window.i18n}function w(){function b(b,c,d){if(0!==c.length){var e="text";if(0===c.indexOf("[")){var f=c.split("]");c=f[1],e=f[0].substr(1,f[0].length-1)}c.indexOf(";")===c.length-1&&(c=c.substr(0,c.length-2));var g;if("html"===e)g=R.defaultValueFromContent?a.extend({defaultValue:b.html()},d):d,b.html(a.t(c,g));else if("text"===e)g=R.defaultValueFromContent?a.extend({defaultValue:b.text()},d):d,b.text(a.t(c,g));else if("prepend"===e)g=R.defaultValueFromContent?a.extend({defaultValue:b.html()},d):d,b.prepend(a.t(c,g));else if("append"===e)g=R.defaultValueFromContent?a.extend({defaultValue:b.html()},d):d,b.append(a.t(c,g));else if(0===e.indexOf("data-")){var h=e.substr("data-".length);g=R.defaultValueFromContent?a.extend({defaultValue:b.data(h)},d):d;var i=a.t(c,g);b.data(h,i),b.attr(e,i)}else g=R.defaultValueFromContent?a.extend({defaultValue:b.attr(e)},d):d,b.attr(e,a.t(c,g))}}function c(c,d){var e=c.attr(R.selectorAttr);if(e||"undefined"==typeof e||e===!1||(e=c.text()||c.val()),e){var f=c,g=c.data("i18n-target");if(g&&(f=c.find(g)||c),d||R.useDataAttrOptions!==!0||(d=c.data("i18n-options")),d=d||{},e.indexOf(";")>=0){var h=e.split(";");a.each(h,function(a,c){""!==c&&b(f,c,d)})}else b(f,e,d);if(R.useDataAttrOptions===!0){var i=a.extend({lng:"non",lngs:[],_origLng:"non"},d);delete i.lng,delete i.lngs,delete i._origLng,c.data("i18n-options",i)}}}a.t=a.t||E,a.fn.i18n=function(b){return this.each(function(){c(a(this),b);var d=a(this).find("["+R.selectorAttr+"]");d.each(function(){c(a(this),b)})})}}function x(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2)),"html"===d?a.innerHTML=E(b,c):"text"===d?a.textContent=E(b,c):"prepend"===d?a.insertAdjacentHTML(E(b,c),"afterbegin"):"append"===d?a.insertAdjacentHTML(E(b,c),"beforeend"):a.setAttribute(d,E(b,c))}}function b(b,c){var d=b.getAttribute(R.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.textContent||b.value),d){var e=b,f=b.getAttribute("i18n-target");if(f&&(e=b.querySelector(f)||b),d.indexOf(";")>=0)for(var g=d.split(";"),h=0,i=g.length;i>h;h++)""!==g[h]&&a(e,g[h],c);else a(e,d,c)}}L.translateObject=function(a,c){for(var d=a.querySelectorAll("["+R.selectorAttr+"]"),e=0,f=d.length;f>e;e++)b(d[e],c)}}function y(a,b,c,d){if(!a)return a;if(d=d||b,a.indexOf(d.interpolationPrefix||R.interpolationPrefix)<0)return a;var e=d.interpolationPrefix?V.regexEscape(d.interpolationPrefix):R.interpolationPrefixEscaped,f=d.interpolationSuffix?V.regexEscape(d.interpolationSuffix):R.interpolationSuffixEscaped,g=b.replace&&"object"==typeof b.replace?b.replace:b,h=new RegExp([e,"(.+?)","(HTML)?",f].join(""),"g"),i=d.escapeInterpolation||R.escapeInterpolation;return a.replace(h,function(a,b,c){for(var d=g,e=b;e.indexOf(R.keyseparator)>=0&&"object"==typeof d&&d;){var f=e.slice(0,e.indexOf(R.keyseparator));e=e.slice(e.indexOf(R.keyseparator)+1),d=d[f]}if(d&&"object"==typeof d&&d.hasOwnProperty(e)){{d[e]}return i&&!c?V.escape(d[e]):d[e]}return a})}function z(a,b){var c=",",d="{",e="}",f=V.extend({},b);for(delete f.postProcess;-1!=a.indexOf(R.reusePrefix)&&(N++,!(N>R.maxRecursion));){var g=a.lastIndexOf(R.reusePrefix),h=a.indexOf(R.reuseSuffix,g)+R.reuseSuffix.length,i=a.substring(g,h),j=i.replace(R.reusePrefix,"").replace(R.reuseSuffix,"");if(g>=h)return V.error("there is an missing closing in following translation value",a),"";if(-1!=j.indexOf(c)){var k=j.indexOf(c);if(-1!=j.indexOf(d,k)&&-1!=j.indexOf(e,k)){var l=j.indexOf(d,k),m=j.indexOf(e,l)+e.length;try{f=V.extend(f,JSON.parse(j.substring(l,m))),j=j.substring(0,k)}catch(n){}}}var o=H(j,f);a=a.replace(i,V.regexReplacementEscape(o))}return a}function A(a){return a.context&&("string"==typeof a.context||"number"==typeof a.context)}function B(a){return void 0!==a.count&&"string"!=typeof a.count}function C(a){return void 0!==a.indefinite_article&&"string"!=typeof a.indefinite_article&&a.indefinite_article}function D(a,b){b=b||{};var c=F(a,b),d=I(a,b);return void 0!==d||d===c}function E(a,b){return b=b||{},P?(N=0,H.apply(null,arguments)):(V.log("i18next not finished initialization. you might have called t function before loading resources finished."),b.defaultValue||"")}function F(a,b){return void 0!==b.defaultValue?b.defaultValue:a}function G(){for(var a=[],b=1;b<arguments.length;b++)a.push(arguments[b]);return{postProcess:"sprintf",sprintf:a}}function H(a,b){if(b&&"object"!=typeof b?"sprintf"===R.shortcutFunction?b=G.apply(null,arguments):"defaultValue"===R.shortcutFunction&&(b={defaultValue:b}):b=b||{},"object"==typeof R.defaultVariables&&(b=V.extend({},R.defaultVariables,b)),void 0===a||null===a||""===a)return"";"number"==typeof a&&(a=String(a)),"string"==typeof a&&(a=[a]);var c=a[0];if(a.length>1)for(var d=0;d<a.length&&(c=a[d],!D(c,b));d++);var e,f=F(c,b),g=I(c,b),h=b.lng?V.toLanguages(b.lng,b.fallbackLng):O,i=b.ns||R.ns.defaultNs;c.indexOf(R.nsseparator)>-1&&(e=c.split(R.nsseparator),i=e[0],c=e[1]),void 0===g&&R.sendMissing&&"function"==typeof R.missingKeyHandler&&(b.lng?R.missingKeyHandler(h[0],i,c,f,h):R.missingKeyHandler(R.lng,i,c,f,h));var j;j="string"==typeof R.postProcess&&""!==R.postProcess?[R.postProcess]:"array"==typeof R.postProcess||"object"==typeof R.postProcess?R.postProcess:[],"string"==typeof b.postProcess&&""!==b.postProcess?j=j.concat([b.postProcess]):("array"==typeof b.postProcess||"object"==typeof b.postProcess)&&(j=j.concat(b.postProcess)),void 0!==g&&j.length&&j.forEach(function(a){Z[a]&&(g=Z[a](g,c,b))});var k=f;if(f.indexOf(R.nsseparator)>-1&&(e=f.split(R.nsseparator),k=e[1]),k===c&&R.parseMissingKey&&(f=R.parseMissingKey(f)),void 0===g&&(f=y(f,b),f=z(f,b),j.length)){var l=F(c,b);j.forEach(function(a){Z[a]&&(g=Z[a](l,c,b))})}return void 0!==g?g:f}function I(a,b){b=b||{};var c,d,e=F(a,b),f=O;if(!M)return e;if("cimode"===f[0].toLowerCase())return e;if(b.lngs&&(f=b.lngs),b.lng&&(f=V.toLanguages(b.lng,b.fallbackLng),!M[f[0]])){var g=R.getAsync;R.getAsync=!1,L.sync.load(f,R,function(a,b){V.extend(M,b),R.getAsync=g})}var h=b.ns||R.ns.defaultNs;if(a.indexOf(R.nsseparator)>-1){var i=a.split(R.nsseparator);h=i[0],a=i[1]}if(A(b)){c=V.extend({},b),delete c.context,c.defaultValue=R.contextNotFound;var j=h+R.nsseparator+a+"_"+b.context;if(d=E(j,c),d!=R.contextNotFound)return y(d,{context:b.context})}if(B(b,f[0])){c=V.extend({lngs:[f[0]]},b),delete c.count,c._origLng=c._origLng||c.lng||f[0],delete c.lng,c.defaultValue=R.pluralNotFound;var k;if(Y.needsPlural(f[0],b.count)){k=h+R.nsseparator+a+R.pluralSuffix;var l=Y.get(f[0],b.count);l>=0?k=k+"_"+l:1===l&&(k=h+R.nsseparator+a)}else k=h+R.nsseparator+a;if(d=E(k,c),d!=R.pluralNotFound)return y(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});if(!(f.length>1))return c.lng=c._origLng,delete c._origLng,d=E(h+R.nsseparator+a,c),y(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});var m=f.slice();if(m.shift(),b=V.extend(b,{lngs:m}),b._origLng=c._origLng,delete b.lng,d=E(h+R.nsseparator+a,b),d!=R.pluralNotFound)return d}if(C(b)){var n=V.extend({},b);delete n.indefinite_article,n.defaultValue=R.indefiniteNotFound;var o=h+R.nsseparator+a+(b.count&&!B(b,f[0])||!b.count?R.indefiniteSuffix:"");if(d=E(o,n),d!=R.indefiniteNotFound)return d}for(var p,q=a.split(R.keyseparator),r=0,s=f.length;s>r&&void 0===p;r++){for(var t=f[r],u=0,v=M[t]&&M[t][h];q[u];)v=v&&v[q[u]],u++;if(void 0!==v&&(!R.showKeyIfEmpty||""!==v)){var w=Object.prototype.toString.apply(v);if("string"==typeof v)v=y(v,b),v=z(v,b);else if("[object Array]"!==w||R.returnObjectTrees||b.returnObjectTrees){if(null===v&&R.fallbackOnNull===!0)v=void 0;else if(null!==v)if(R.returnObjectTrees||b.returnObjectTrees){if("[object Number]"!==w&&"[object Function]"!==w&&"[object RegExp]"!==w){var x="[object Array]"===w?[]:{};V.each(v,function(c){x[c]=H(h+R.nsseparator+a+R.keyseparator+c,b)}),v=x}}else R.objectTreeKeyHandler&&"function"==typeof R.objectTreeKeyHandler?v=R.objectTreeKeyHandler(a,v,t,h,b):(v="key '"+h+":"+a+" ("+t+")' returned an object instead of string.",V.log(v))}else v=v.join("\n"),v=y(v,b),v=z(v,b);"string"==typeof v&&""===v.trim()&&R.fallbackOnEmpty===!0&&(v=void 0),p=v}}if(void 0===p&&!b.isFallbackLookup&&(R.fallbackToDefaultNS===!0||R.fallbackNS&&R.fallbackNS.length>0)){if(b.isFallbackLookup=!0,R.fallbackNS.length){for(var D=0,G=R.fallbackNS.length;G>D;D++)if(p=I(R.fallbackNS[D]+R.nsseparator+a,b),p||""===p&&R.fallbackOnEmpty===!1){var J=p.indexOf(R.nsseparator)>-1?p.split(R.nsseparator)[1]:p,K=e.indexOf(R.nsseparator)>-1?e.split(R.nsseparator)[1]:e;if(J!==K)break}}else b.ns=R.ns.defaultNs,p=I(a,b);b.isFallbackLookup=!1}return p}function J(){var a,b=R.lngWhitelist||[],c=[];if("undefined"!=typeof window&&!function(){for(var a=window.location.search.substring(1),b=a.split("&"),d=0;d<b.length;d++){var e=b[d].indexOf("=");if(e>0){var f=b[d].substring(0,e);f==R.detectLngQS&&c.push(b[d].substring(e+1))}}}(),R.useCookie&&"undefined"!=typeof document){var d=V.cookie.read(R.cookieName);d&&c.push(d)}if(R.detectLngFromLocalStorage&&"undefined"!=typeof window&&window.localStorage){var e=V.localStorage.getItem("i18next_lng");e&&c.push(e)}if("undefined"!=typeof navigator){if(navigator.languages)for(var f=0;f<navigator.languages.length;f++)c.push(navigator.languages[f]);navigator.userLanguage&&c.push(navigator.userLanguage),navigator.language&&c.push(navigator.language)}return function(){for(var d=0;d<c.length;d++){var e=c[d];if(e.indexOf("-")>-1){var f=e.split("-");e=R.lowerCaseLng?f[0].toLowerCase()+"-"+f[1].toLowerCase():f[0].toLowerCase()+"-"+f[1].toUpperCase()}if(0===b.length||b.indexOf(e)>-1){a=e;break}}}(),a||(a=R.fallbackLng[0]),a}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;if(arguments.length>0&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(var e=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(e in b&&b[e]===a)return e;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=c;arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d))));for(var e=d>=0?Math.min(d,c-1):c-Math.abs(d);e>=0;e--)if(e in b&&b[e]===a)return e;return-1}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var K,L={},M={},N=0,O=[],P=!1,Q={};Q={load:function(a,b,c){b.useLocalStorage?Q._loadLocal(a,b,function(d,e){for(var f=[],g=0,h=a.length;h>g;g++)e[a[g]]||f.push(a[g]);f.length>0?Q._fetch(f,b,function(a,b){V.extend(e,b),Q._storeLocal(b),c(a,e)}):c(d,e)}):Q._fetch(a,b,function(a,b){c(a,b)})},_loadLocal:function(a,b,c){var d={},e=(new Date).getTime();if(window.localStorage){var f=a.length;V.each(a,function(a,g){var h=V.localStorage.getItem("res_"+g);h&&(h=JSON.parse(h),h.i18nStamp&&h.i18nStamp+b.localStorageExpirationTime>e&&(d[g]=h)),f--,0===f&&c(null,d)})}},_storeLocal:function(a){if(window.localStorage)for(var b in a)a[b].i18nStamp=(new Date).getTime(),V.localStorage.setItem("res_"+b,JSON.stringify(a[b]))},_fetch:function(a,b,c){var d=b.ns,e={};if(b.dynamicLoad){var f=function(a,b){c(a,b)};if("function"==typeof b.customLoad)b.customLoad(a,d.namespaces,b,f);else{var g=y(b.resGetPath,{lng:a.join("+"),ns:d.namespaces.join("+")});V.ajax({url:g,cache:b.cache,success:function(a){V.log("loaded: "+g),f(null,a)},error:function(a,b,c){V.log("failed loading: "+g),f("failed loading resource.json error: "+c)},dataType:"json",async:b.getAsync,timeout:b.ajaxTimeout})}}else{var h,i=d.namespaces.length*a.length;V.each(d.namespaces,function(d,f){V.each(a,function(a,d){var g=function(a,b){a&&(h=h||[],h.push(a)),e[d]=e[d]||{},e[d][f]=b,i--,0===i&&c(h,e)};"function"==typeof b.customLoad?b.customLoad(d,f,b,g):Q._fetchOne(d,f,b,g)})})}},_fetchOne:function(a,b,c,d){var e=y(c.resGetPath,{lng:a,ns:b});V.ajax({url:e,cache:c.cache,success:function(a){V.log("loaded: "+e),d(null,a)},error:function(a,b,c){if(b&&200==b||a&&a.status&&200==a.status)V.error("There is a typo in: "+e);else if(b&&404==b||a&&a.status&&404==a.status)V.log("Does not exist: "+e);else{var f=b?b:a&&a.status?a.status:null;V.log(f+" when loading "+e)}d(c,{})},dataType:"json",async:c.getAsync,timeout:c.ajaxTimeout})},postMissing:function(a,b,c,d,e){var f={};f[c]=d;var g=[];if("fallback"===R.sendMissingTo&&R.fallbackLng[0]!==!1)for(var h=0;h<R.fallbackLng.length;h++)g.push({lng:R.fallbackLng[h],url:y(R.resPostPath,{lng:R.fallbackLng[h],ns:b})});else if("current"===R.sendMissingTo||"fallback"===R.sendMissingTo&&R.fallbackLng[0]===!1)g.push({lng:a,url:y(R.resPostPath,{lng:a,ns:b})});else if("all"===R.sendMissingTo)for(var h=0,i=e.length;i>h;h++)g.push({lng:e[h],url:y(R.resPostPath,{lng:e[h],ns:b})});for(var j=0,k=g.length;k>j;j++){var l=g[j];V.ajax({url:l.url,type:R.sendType,data:f,success:function(){V.log("posted missing key '"+c+"' to: "+l.url);for(var a=c.split("."),e=0,f=M[l.lng][b];a[e];)f=f[a[e]]=e===a.length-1?d:f[a[e]]||{},e++},error:function(){V.log("failed posting missing key '"+c+"' to: "+l.url)},dataType:"json",async:R.postAsync,timeout:R.ajaxTimeout})}},reload:u};var R={lng:void 0,load:"all",preload:[],lowerCaseLng:!1,returnObjectTrees:!1,fallbackLng:["dev"],fallbackNS:[],detectLngQS:"setLng",detectLngFromLocalStorage:!1,ns:{namespaces:["translation"],defaultNs:"translation"},fallbackOnNull:!0,fallbackOnEmpty:!1,fallbackToDefaultNS:!1,showKeyIfEmpty:!1,nsseparator:":",keyseparator:".",selectorAttr:"data-i18n",debug:!1,resGetPath:"locales/__lng__/__ns__.json",resPostPath:"locales/add/__lng__/__ns__",getAsync:!0,postAsync:!0,resStore:void 0,useLocalStorage:!1,localStorageExpirationTime:6048e5,dynamicLoad:!1,sendMissing:!1,sendMissingTo:"fallback",sendType:"POST",interpolationPrefix:"__",interpolationSuffix:"__",defaultVariables:!1,reusePrefix:"$t(",reuseSuffix:")",pluralSuffix:"_plural",pluralNotFound:["plural_not_found",Math.random()].join(""),contextNotFound:["context_not_found",Math.random()].join(""),escapeInterpolation:!1,indefiniteSuffix:"_indefinite",indefiniteNotFound:["indefinite_not_found",Math.random()].join(""),setJqueryExt:!0,defaultValueFromContent:!0,useDataAttrOptions:!1,cookieExpirationTime:void 0,useCookie:!0,cookieName:"i18next",cookieDomain:void 0,objectTreeKeyHandler:void 0,postProcess:void 0,parseMissingKey:void 0,missingKeyHandler:Q.postMissing,ajaxTimeout:0,shortcutFunction:"sprintf"},S={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},T={create:function(a,b,c,d){var e;if(c){var f=new Date;f.setTime(f.getTime()+60*c*1e3),e="; expires="+f.toGMTString()}else e="";d=d?"domain="+d+";":"",document.cookie=a+"="+b+e+";"+d+"path=/"},read:function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(b))return e.substring(b.length,e.length)}return null},remove:function(a){this.create(a,"",-1)}},U={create:function(){},read:function(){return null},remove:function(){}},V={extend:a?a.extend:b,deepExtend:c,each:a?a.each:d,ajax:a?a.ajax:"undefined"!=typeof document?f:function(){},cookie:"undefined"!=typeof document?T:U,detectLanguage:J,escape:e,log:function(a){R.debug&&"undefined"!=typeof console&&console.log(a)},error:function(a){"undefined"!=typeof console&&console.error(a)},getCountyIndexOfLng:function(a){var b=0;return("nb-NO"===a||"nn-NO"===a||"nb-no"===a||"nn-no"===a)&&(b=1),b},toLanguages:function(a,b){function c(a){var b=a;if("string"==typeof a&&a.indexOf("-")>-1){var c=a.split("-");b=R.lowerCaseLng?c[0].toLowerCase()+"-"+c[1].toLowerCase():c[0].toLowerCase()+"-"+c[1].toUpperCase()}else b=R.lowerCaseLng?a.toLowerCase():a;return b}var d=this.log;b=b||R.fallbackLng,"string"==typeof b&&(b=[b]);var e=[],f=R.lngWhitelist||!1,g=function(a){!f||f.indexOf(a)>-1?e.push(a):d("rejecting non-whitelisted language: "+a)};if("string"==typeof a&&a.indexOf("-")>-1){var h=a.split("-");"unspecific"!==R.load&&g(c(a)),"current"!==R.load&&g(c(h[this.getCountyIndexOfLng(a)]))}else g(c(a));for(var i=0;i<b.length;i++)-1===e.indexOf(b[i])&&b[i]&&e.push(c(b[i]));return e},regexEscape:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},regexReplacementEscape:function(a){return"string"==typeof a?a.replace(/\$/g,"$$$$"):a},localStorage:{setItem:function(a,b){if(window.localStorage)try{window.localStorage.setItem(a,b)}catch(c){V.log('failed to set value for key "'+a+'" to localStorage.')}},getItem:function(a,b){if(window.localStorage)try{return window.localStorage.getItem(a,b)}catch(c){return void V.log('failed to get value for key "'+a+'" from localStorage.')}}}};V.applyReplacement=y;var W=[["ach","Acholi",[1,2],1],["af","Afrikaans",[1,2],2],["ak","Akan",[1,2],1],["am","Amharic",[1,2],1],["an","Aragonese",[1,2],2],["ar","Arabic",[0,1,2,3,11,100],5],["arn","Mapudungun",[1,2],1],["ast","Asturian",[1,2],2],["ay","Aymará",[1],3],["az","Azerbaijani",[1,2],2],["be","Belarusian",[1,2,5],4],["bg","Bulgarian",[1,2],2],["bn","Bengali",[1,2],2],["bo","Tibetan",[1],3],["br","Breton",[1,2],1],["bs","Bosnian",[1,2,5],4],["ca","Catalan",[1,2],2],["cgg","Chiga",[1],3],["cs","Czech",[1,2,5],6],["csb","Kashubian",[1,2,5],7],["cy","Welsh",[1,2,3,8],8],["da","Danish",[1,2],2],["de","German",[1,2],2],["dev","Development Fallback",[1,2],2],["dz","Dzongkha",[1],3],["el","Greek",[1,2],2],["en","English",[1,2],2],["eo","Esperanto",[1,2],2],["es","Spanish",[1,2],2],["es_ar","Argentinean Spanish",[1,2],2],["et","Estonian",[1,2],2],["eu","Basque",[1,2],2],["fa","Persian",[1],3],["fi","Finnish",[1,2],2],["fil","Filipino",[1,2],1],["fo","Faroese",[1,2],2],["fr","French",[1,2],9],["fur","Friulian",[1,2],2],["fy","Frisian",[1,2],2],["ga","Irish",[1,2,3,7,11],10],["gd","Scottish Gaelic",[1,2,3,20],11],["gl","Galician",[1,2],2],["gu","Gujarati",[1,2],2],["gun","Gun",[1,2],1],["ha","Hausa",[1,2],2],["he","Hebrew",[1,2],2],["hi","Hindi",[1,2],2],["hr","Croatian",[1,2,5],4],["hu","Hungarian",[1,2],2],["hy","Armenian",[1,2],2],["ia","Interlingua",[1,2],2],["id","Indonesian",[1],3],["is","Icelandic",[1,2],12],["it","Italian",[1,2],2],["ja","Japanese",[1],3],["jbo","Lojban",[1],3],["jv","Javanese",[0,1],13],["ka","Georgian",[1],3],["kk","Kazakh",[1],3],["km","Khmer",[1],3],["kn","Kannada",[1,2],2],["ko","Korean",[1],3],["ku","Kurdish",[1,2],2],["kw","Cornish",[1,2,3,4],14],["ky","Kyrgyz",[1],3],["lb","Letzeburgesch",[1,2],2],["ln","Lingala",[1,2],1],["lo","Lao",[1],3],["lt","Lithuanian",[1,2,10],15],["lv","Latvian",[1,2,0],16],["mai","Maithili",[1,2],2],["mfe","Mauritian Creole",[1,2],1],["mg","Malagasy",[1,2],1],["mi","Maori",[1,2],1],["mk","Macedonian",[1,2],17],["ml","Malayalam",[1,2],2],["mn","Mongolian",[1,2],2],["mnk","Mandinka",[0,1,2],18],["mr","Marathi",[1,2],2],["ms","Malay",[1],3],["mt","Maltese",[1,2,11,20],19],["nah","Nahuatl",[1,2],2],["nap","Neapolitan",[1,2],2],["nb","Norwegian Bokmal",[1,2],2],["ne","Nepali",[1,2],2],["nl","Dutch",[1,2],2],["nn","Norwegian Nynorsk",[1,2],2],["no","Norwegian",[1,2],2],["nso","Northern Sotho",[1,2],2],["oc","Occitan",[1,2],1],["or","Oriya",[2,1],2],["pa","Punjabi",[1,2],2],["pap","Papiamento",[1,2],2],["pl","Polish",[1,2,5],7],["pms","Piemontese",[1,2],2],["ps","Pashto",[1,2],2],["pt","Portuguese",[1,2],2],["pt_br","Brazilian Portuguese",[1,2],2],["rm","Romansh",[1,2],2],["ro","Romanian",[1,2,20],20],["ru","Russian",[1,2,5],4],["sah","Yakut",[1],3],["sco","Scots",[1,2],2],["se","Northern Sami",[1,2],2],["si","Sinhala",[1,2],2],["sk","Slovak",[1,2,5],6],["sl","Slovenian",[5,1,2,3],21],["so","Somali",[1,2],2],["son","Songhay",[1,2],2],["sq","Albanian",[1,2],2],["sr","Serbian",[1,2,5],4],["su","Sundanese",[1],3],["sv","Swedish",[1,2],2],["sw","Swahili",[1,2],2],["ta","Tamil",[1,2],2],["te","Telugu",[1,2],2],["tg","Tajik",[1,2],1],["th","Thai",[1],3],["ti","Tigrinya",[1,2],1],["tk","Turkmen",[1,2],2],["tr","Turkish",[1,2],1],["tt","Tatar",[1],3],["ug","Uyghur",[1],3],["uk","Ukrainian",[1,2,5],4],["ur","Urdu",[1,2],2],["uz","Uzbek",[1,2],1],["vi","Vietnamese",[1],3],["wa","Walloon",[1,2],1],["wo","Wolof",[1],3],["yo","Yoruba",[1,2],2],["zh","Chinese",[1],3]],X={1:function(a){return Number(a>1)},2:function(a){return Number(1!=a)},3:function(){return 0},4:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},5:function(a){return Number(0===a?0:1==a?1:2==a?2:a%100>=3&&10>=a%100?3:a%100>=11?4:5)},6:function(a){return Number(1==a?0:a>=2&&4>=a?1:2)},7:function(a){return Number(1==a?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},8:function(a){return Number(1==a?0:2==a?1:8!=a&&11!=a?2:3)},9:function(a){return Number(a>=2)},10:function(a){return Number(1==a?0:2==a?1:7>a?2:11>a?3:4)},11:function(a){return Number(1==a||11==a?0:2==a||12==a?1:a>2&&20>a?2:3)},12:function(a){return Number(a%10!=1||a%100==11)},13:function(a){return Number(0!==a)},14:function(a){return Number(1==a?0:2==a?1:3==a?2:3)},15:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&(10>a%100||a%100>=20)?1:2)},16:function(a){return Number(a%10==1&&a%100!=11?0:0!==a?1:2)},17:function(a){return Number(1==a||a%10==1?0:1)},18:function(a){return Number(1==a?1:2)},19:function(a){return Number(1==a?0:0===a||a%100>1&&11>a%100?1:a%100>10&&20>a%100?2:3)},20:function(a){return Number(1==a?0:0===a||a%100>0&&20>a%100?1:2)},21:function(a){return Number(a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0)}},Y={rules:function(){var a,b={};for(a=W.length;a--;)b[W[a][0]]={name:W[a][1],numbers:W[a][2],plurals:X[W[a][3]]};return b}(),addRule:function(a,b){Y.rules[a]=b},setCurrentLng:function(a){if(!Y.currentRule||Y.currentRule.lng!==a){var b=a.split("-");Y.currentRule={lng:a,rule:Y.rules[b[0]]}}},needsPlural:function(a,b){var c,d=a.split("-");return c=Y.currentRule&&Y.currentRule.lng===a?Y.currentRule.rule:Y.rules[d[V.getCountyIndexOfLng(a)]],c&&c.numbers.length<=1?!1:1!==this.get(a,b)},get:function(a,b){function c(b,c){var d;if(d=Y.currentRule&&Y.currentRule.lng===a?Y.currentRule.rule:Y.rules[b]){var e;e=d.plurals(d.noAbs?c:Math.abs(c));var f=d.numbers[e];return 2===d.numbers.length&&1===d.numbers[0]&&(2===f?f=-1:1===f&&(f=1)),f}return 1===c?"1":"-1"}var d=a.split("-");return c(d[V.getCountyIndexOfLng(a)],b)}},Z={},$=function(a,b){Z[a]=b},_=function(){function a(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function b(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")}var c=function(){return c.cache.hasOwnProperty(arguments[0])||(c.cache[arguments[0]]=c.parse(arguments[0])),c.format.call(null,c.cache[arguments[0]],arguments)};return c.format=function(c,d){var e,f,g,h,i,j,k,l=1,m=c.length,n="",o=[];for(f=0;m>f;f++)if(n=a(c[f]),"string"===n)o.push(c[f]);else if("array"===n){if(h=c[f],h[2])for(e=d[l],g=0;g<h[2].length;g++){if(!e.hasOwnProperty(h[2][g]))throw _('[sprintf] property "%s" does not exist',h[2][g]);e=e[h[2][g]]}else e=h[1]?d[h[1]]:d[l++];if(/[^s]/.test(h[8])&&"number"!=a(e))throw _("[sprintf] expecting number but found %s",a(e));switch(h[8]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e,10);break;case"e":e=h[7]?e.toExponential(h[7]):e.toExponential();break;case"f":e=h[7]?parseFloat(e).toFixed(h[7]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&h[7]?e.substring(0,h[7]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(h[8])&&h[3]&&e>=0?"+"+e:e,j=h[4]?"0"==h[4]?"0":h[4].charAt(1):" ",k=h[6]-String(e).length,i=h[6]?b(j,k):"",o.push(h[5]?e+i:i+e)}return o.join("")},c.cache={},c.parse=function(a){for(var b=a,c=[],d=[],e=0;b;){if(null!==(c=/^[^\x25]+/.exec(b)))d.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(b)))d.push("%");else{if(null===(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)))throw"[sprintf] huh?";if(c[2]){e|=1;var f=[],g=c[2],h=[];if(null===(h=/^([a-z_][a-z_\d]*)/i.exec(g)))throw"[sprintf] huh?";for(f.push(h[1]);""!==(g=g.substring(h[0].length));)if(null!==(h=/^\.([a-z_][a-z_\d]*)/i.exec(g)))f.push(h[1]);else{if(null===(h=/^\[(\d+)\]/.exec(g)))throw"[sprintf] huh?";f.push(h[1])}c[2]=f}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";d.push(c)}b=b.substring(c[0].length);
!function(a,b){if("object"==typeof exports){var c=require("jquery");module.exports=b(c)}else"function"==typeof define&&define.amd&&define(["jquery"],b)}(this,function(a){function b(a,b){if(!b||"function"==typeof b)return a;for(var c in b)a[c]=b[c];return a}function c(a,b,d){for(var e in b)e in a?"string"==typeof a[e]||a[e]instanceof String||"string"==typeof b[e]||b[e]instanceof String?d&&(a[e]=b[e]):c(a[e],b[e],d):a[e]=b[e];return a}function d(a,b,c){var d,e=0,f=a.length,g=void 0===f||"[object Array]"!==Object.prototype.toString.apply(a)||"function"==typeof a;if(c)if(g){for(d in a)if(b.apply(a[d],c)===!1)break}else for(;f>e&&b.apply(a[e++],c)!==!1;);else if(g){for(d in a)if(b.call(a[d],d,a[d])===!1)break}else for(;f>e&&b.call(a[e],e,a[e++])!==!1;);return a}function e(a){return"string"==typeof a?a.replace(/[&<>"'\/]/g,function(a){return T[a]}):a}function f(a){var b=function(a){if(window.XMLHttpRequest)return a(null,new XMLHttpRequest);if(window.ActiveXObject)try{return a(null,new ActiveXObject("Msxml2.XMLHTTP"))}catch(b){return a(null,new ActiveXObject("Microsoft.XMLHTTP"))}return a(new Error)},c=function(a){if("string"==typeof a)return a;var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b.join("&")},d=function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):d>127&&2048>d?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},e=function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a=d(a);var c,e,f,g,h,i,j,k="",l=0;do c=a.charCodeAt(l++),e=a.charCodeAt(l++),f=a.charCodeAt(l++),g=c>>2,h=(3&c)<<4|e>>4,i=(15&e)<<2|f>>6,j=63&f,isNaN(e)?i=j=64:isNaN(f)&&(j=64),k+=b.charAt(g)+b.charAt(h)+b.charAt(i)+b.charAt(j),c=e=f="",g=h=i=j="";while(l<a.length);return k},f=function(){for(var a=arguments[0],b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}return a},g=function(a,d,e,h){"function"==typeof e&&(h=e,e={}),e.cache=e.cache||!1,e.data=e.data||{},e.headers=e.headers||{},e.jsonp=e.jsonp||!1,e.async=void 0===e.async?!0:e.async;var i,j=f({accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},g.headers,e.headers);if(i="application/json"===j["content-type"]?JSON.stringify(e.data):c(e.data),"GET"===a){var k=[];if(i&&(k.push(i),i=null),e.cache||k.push("_="+(new Date).getTime()),e.jsonp&&(k.push("callback="+e.jsonp),k.push("jsonp="+e.jsonp)),k=k.join("&"),k.length>1&&(d+=d.indexOf("?")>-1?"&"+k:"?"+k),e.jsonp){var l=document.getElementsByTagName("head")[0],m=document.createElement("script");return m.type="text/javascript",m.src=d,void l.appendChild(m)}}b(function(b,c){if(b)return h(b);c.open(a,d,e.async);for(var f in j)j.hasOwnProperty(f)&&c.setRequestHeader(f,j[f]);c.onreadystatechange=function(){if(4===c.readyState){var a=c.responseText||"";if(!h)return;h(c.status,{text:function(){return a},json:function(){try{return JSON.parse(a)}catch(b){return W.error("Can not parse JSON. URL: "+d),{}}}})}},c.send(i)})},h={authBasic:function(a,b){g.headers.Authorization="Basic "+e(a+":"+b)},connect:function(a,b,c){return g("CONNECT",a,b,c)},del:function(a,b,c){return g("DELETE",a,b,c)},get:function(a,b,c){return g("GET",a,b,c)},head:function(a,b,c){return g("HEAD",a,b,c)},headers:function(a){g.headers=a||{}},isAllowed:function(a,b,c){this.options(a,function(a,d){c(-1!==d.text().indexOf(b))})},options:function(a,b,c){return g("OPTIONS",a,b,c)},patch:function(a,b,c){return g("PATCH",a,b,c)},post:function(a,b,c){return g("POST",a,b,c)},put:function(a,b,c){return g("PUT",a,b,c)},trace:function(a,b,c){return g("TRACE",a,b,c)}},i=a.type?a.type.toLowerCase():"get";h[i](a.url,a,function(b,c){200===b||0===b&&c.text()?a.success(c.json(),b,null):a.error(c.text(),b,null)})}function g(b,c){"function"==typeof b&&(c=b,b={}),b=b||{},W.extend(S,b),delete S.fixLng,S.functions&&(delete S.functions,W.extend(W,b.functions)),"string"==typeof S.ns&&(S.ns={namespaces:[S.ns],defaultNs:S.ns}),"string"==typeof S.fallbackNS&&(S.fallbackNS=[S.fallbackNS]),("string"==typeof S.fallbackLng||"boolean"==typeof S.fallbackLng)&&(S.fallbackLng=[S.fallbackLng]),S.interpolationPrefixEscaped=W.regexEscape(S.interpolationPrefix),S.interpolationSuffixEscaped=W.regexEscape(S.interpolationSuffix),S.lng||(S.lng=W.detectLanguage()),P=W.toLanguages(S.lng),L=P[0],W.log("currentLng set to: "+L),S.useCookie&&W.cookie.read(S.cookieName)!==L&&W.cookie.create(S.cookieName,L,S.cookieExpirationTime,S.cookieDomain),S.detectLngFromLocalStorage&&"undefined"!=typeof document&&window.localStorage&&W.localStorage.setItem("i18next_lng",L);var d=F;b.fixLng&&(d=function(a,b){return b=b||{},b.lng=b.lng||d.lng,F(a,b)},d.lng=L),Z.setCurrentLng(L),a&&S.setJqueryExt?x&&x():y&&y();var e;if(a&&a.Deferred&&(e=a.Deferred()),!S.resStore){var f=W.toLanguages(S.lng);"string"==typeof S.preload&&(S.preload=[S.preload]);for(var g=0,h=S.preload.length;h>g;g++)for(var i=W.toLanguages(S.preload[g]),j=0,k=i.length;k>j;j++)f.indexOf(i[j])<0&&f.push(i[j]);return M.sync.load(f,S,function(a,b){N=b,Q=!0,c&&c(a,d),e&&(a?e.reject:e.resolve)(a||d)}),e?e.promise():void 0}return N=S.resStore,Q=!0,c&&c(null,d),e&&e.resolve(d),e?e.promise():void 0}function h(){return Q}function i(a,b){"string"==typeof a&&(a=[a]);for(var c=0,d=a.length;d>c;c++)S.preload.indexOf(a[c])<0&&S.preload.push(a[c]);return g(b)}function j(a,b,c,d,e){"string"!=typeof b?(c=b,b=S.ns.defaultNs):S.ns.namespaces.indexOf(b)<0&&S.ns.namespaces.push(b),N[a]=N[a]||{},N[a][b]=N[a][b]||{},d?W.deepExtend(N[a][b],c,e):W.extend(N[a][b],c),S.useLocalStorage&&R._storeLocal(N)}function k(a,b){"string"!=typeof b&&(b=S.ns.defaultNs),N[a]=N[a]||{};var c=N[a][b]||{},d=!1;for(var e in c)c.hasOwnProperty(e)&&(d=!0);return d}function l(a,b){return"string"!=typeof b&&(b=S.ns.defaultNs),N[a]=N[a]||{},W.extend({},N[a][b])}function m(a,b){"string"!=typeof b&&(b=S.ns.defaultNs),N[a]=N[a]||{},N[a][b]={},S.useLocalStorage&&R._storeLocal(N)}function n(a,b,c,d){"string"!=typeof b?(resource=b,b=S.ns.defaultNs):S.ns.namespaces.indexOf(b)<0&&S.ns.namespaces.push(b),N[a]=N[a]||{},N[a][b]=N[a][b]||{};for(var e=c.split(S.keyseparator),f=0,g=N[a][b];e[f];)f==e.length-1?g[e[f]]=d:(null==g[e[f]]&&(g[e[f]]={}),g=g[e[f]]),f++;S.useLocalStorage&&R._storeLocal(N)}function o(a,b,c){"string"!=typeof b?(c=b,b=S.ns.defaultNs):S.ns.namespaces.indexOf(b)<0&&S.ns.namespaces.push(b);for(var d in c)"string"==typeof c[d]&&n(a,b,d,c[d])}function p(a){S.ns.defaultNs=a}function q(a,b){r([a],b)}function r(a,b){var c={dynamicLoad:S.dynamicLoad,resGetPath:S.resGetPath,getAsync:S.getAsync,customLoad:S.customLoad,ns:{namespaces:a,defaultNs:""}},d=W.toLanguages(S.lng);"string"==typeof S.preload&&(S.preload=[S.preload]);for(var e=0,f=S.preload.length;f>e;e++)for(var g=W.toLanguages(S.preload[e]),h=0,i=g.length;i>h;h++)d.indexOf(g[h])<0&&d.push(g[h]);for(var j=[],k=0,l=d.length;l>k;k++){var m=!1,n=N[d[k]];if(n)for(var o=0,p=a.length;p>o;o++)n[a[o]]||(m=!0);else m=!0;m&&j.push(d[k])}j.length?M.sync._fetch(j,c,function(c,d){var e=a.length*j.length;W.each(a,function(a,c){S.ns.namespaces.indexOf(c)<0&&S.ns.namespaces.push(c),W.each(j,function(a,f){N[f]=N[f]||{},N[f][c]=d[f][c],e--,0===e&&b&&(S.useLocalStorage&&M.sync._storeLocal(N),b())})})}):b&&b()}function s(a,b,c){return"function"==typeof b?(c=b,b={}):b||(b={}),b.lng=a,g(b,c)}function t(){return L}function u(){var a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"];return a.some(function(a){return new RegExp("^"+a).test(L)})?"rtl":"ltr"}function v(a){N={},s(L,a)}function w(){window.i18next=window.i18n,conflictReference?window.i18n=conflictReference:delete window.i18n}function x(){function b(b,c,d){if(0!==c.length){var e="text";if(0===c.indexOf("[")){var f=c.split("]");c=f[1],e=f[0].substr(1,f[0].length-1)}c.indexOf(";")===c.length-1&&(c=c.substr(0,c.length-2));var g;if("html"===e)g=S.defaultValueFromContent?a.extend({defaultValue:b.html()},d):d,b.html(a.t(c,g));else if("text"===e)g=S.defaultValueFromContent?a.extend({defaultValue:b.text()},d):d,b.text(a.t(c,g));else if("prepend"===e)g=S.defaultValueFromContent?a.extend({defaultValue:b.html()},d):d,b.prepend(a.t(c,g));else if("append"===e)g=S.defaultValueFromContent?a.extend({defaultValue:b.html()},d):d,b.append(a.t(c,g));else if(0===e.indexOf("data-")){var h=e.substr("data-".length);g=S.defaultValueFromContent?a.extend({defaultValue:b.data(h)},d):d;var i=a.t(c,g);b.data(h,i),b.attr(e,i)}else g=S.defaultValueFromContent?a.extend({defaultValue:b.attr(e)},d):d,b.attr(e,a.t(c,g))}}function c(c,d){var e=c.attr(S.selectorAttr);if(e||"undefined"==typeof e||e===!1||(e=c.text()||c.val()),e){var f=c,g=c.data("i18n-target");if(g&&(f=c.find(g)||c),d||S.useDataAttrOptions!==!0||(d=c.data("i18n-options")),d=d||{},e.indexOf(";")>=0){var h=e.split(";");a.each(h,function(a,c){""!==c&&b(f,c,d)})}else b(f,e,d);if(S.useDataAttrOptions===!0){var i=a.extend({lng:"non",lngs:[],_origLng:"non"},d);delete i.lng,delete i.lngs,delete i._origLng,c.data("i18n-options",i)}}}a.t=a.t||F,a.fn.i18n=function(b){return this.each(function(){c(a(this),b);var d=a(this).find("["+S.selectorAttr+"]");d.each(function(){c(a(this),b)})})}}function y(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2)),"html"===d?a.innerHTML=F(b,c):"text"===d?a.textContent=F(b,c):"prepend"===d?a.insertAdjacentHTML(F(b,c),"afterbegin"):"append"===d?a.insertAdjacentHTML(F(b,c),"beforeend"):a.setAttribute(d,F(b,c))}}function b(b,c){var d=b.getAttribute(S.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.textContent||b.value),d){var e=b,f=b.getAttribute("i18n-target");if(f&&(e=b.querySelector(f)||b),d.indexOf(";")>=0)for(var g=d.split(";"),h=0,i=g.length;i>h;h++)""!==g[h]&&a(e,g[h],c);else a(e,d,c)}}M.translateObject=function(a,c){for(var d=a.querySelectorAll("["+S.selectorAttr+"]"),e=0,f=d.length;f>e;e++)b(d[e],c)}}function z(a,b,c,d){if(!a)return a;if(d=d||b,a.indexOf(d.interpolationPrefix||S.interpolationPrefix)<0)return a;var e=d.interpolationPrefix?W.regexEscape(d.interpolationPrefix):S.interpolationPrefixEscaped,f=d.interpolationSuffix?W.regexEscape(d.interpolationSuffix):S.interpolationSuffixEscaped,g=d.keyseparator||S.keyseparator,h=b.replace&&"object"==typeof b.replace?b.replace:b,i=new RegExp([e,"(.+?)","(HTML)?",f].join(""),"g"),j=d.escapeInterpolation||S.escapeInterpolation;return a.replace(i,function(a,b,c){for(var d=h,e=b;e.indexOf(g)>=0&&"object"==typeof d&&d;){var f=e.slice(0,e.indexOf(g));e=e.slice(e.indexOf(g)+1),d=d[f]}if(d&&"object"==typeof d&&d.hasOwnProperty(e)){{d[e]}return j&&!c?W.escape(d[e]):d[e]}return a})}function A(a,b){var c=",",d="{",e="}",f=W.extend({},b);for(delete f.postProcess;-1!=a.indexOf(S.reusePrefix)&&(O++,!(O>S.maxRecursion));){var g=a.lastIndexOf(S.reusePrefix),h=a.indexOf(S.reuseSuffix,g)+S.reuseSuffix.length,i=a.substring(g,h),j=i.replace(S.reusePrefix,"").replace(S.reuseSuffix,"");if(g>=h)return W.error("there is an missing closing in following translation value",a),"";if(-1!=j.indexOf(c)){var k=j.indexOf(c);if(-1!=j.indexOf(d,k)&&-1!=j.indexOf(e,k)){var l=j.indexOf(d,k),m=j.indexOf(e,l)+e.length;try{f=W.extend(f,JSON.parse(j.substring(l,m))),j=j.substring(0,k)}catch(n){}}}var o=I(j,f);a=a.replace(i,W.regexReplacementEscape(o))}return a}function B(a){return a.context&&("string"==typeof a.context||"number"==typeof a.context)}function C(a){return void 0!==a.count&&"string"!=typeof a.count}function D(a){return void 0!==a.indefinite_article&&"string"!=typeof a.indefinite_article&&a.indefinite_article}function E(a,b){b=b||{};var c=G(a,b),d=J(a,b);return void 0!==d||d===c}function F(a,b){return b=b||{},Q?(O=0,I.apply(null,arguments)):(W.log("i18next not finished initialization. you might have called t function before loading resources finished."),b.defaultValue||"")}function G(a,b){return void 0!==b.defaultValue?b.defaultValue:a}function H(){for(var a=[],b=1;b<arguments.length;b++)a.push(arguments[b]);return{postProcess:"sprintf",sprintf:a}}function I(a,b){if(b&&"object"!=typeof b?"sprintf"===S.shortcutFunction?b=H.apply(null,arguments):"defaultValue"===S.shortcutFunction&&(b={defaultValue:b}):b=b||{},"object"==typeof S.defaultVariables&&(b=W.extend({},S.defaultVariables,b)),void 0===a||null===a||""===a)return"";"number"==typeof a&&(a=String(a)),"string"==typeof a&&(a=[a]);var c=a[0];if(a.length>1)for(var d=0;d<a.length&&(c=a[d],!E(c,b));d++);var e,f=G(c,b),g=J(c,b),h=b.nsseparator||S.nsseparator,i=b.lng?W.toLanguages(b.lng,b.fallbackLng):P,j=b.ns||S.ns.defaultNs;c.indexOf(h)>-1&&(e=c.split(h),j=e[0],c=e[1]),void 0===g&&S.sendMissing&&"function"==typeof S.missingKeyHandler&&(b.lng?S.missingKeyHandler(i[0],j,c,f,i):S.missingKeyHandler(S.lng,j,c,f,i));var k;k="string"==typeof S.postProcess&&""!==S.postProcess?[S.postProcess]:"array"==typeof S.postProcess||"object"==typeof S.postProcess?S.postProcess:[],"string"==typeof b.postProcess&&""!==b.postProcess?k=k.concat([b.postProcess]):("array"==typeof b.postProcess||"object"==typeof b.postProcess)&&(k=k.concat(b.postProcess)),void 0!==g&&k.length&&k.forEach(function(a){$[a]&&(g=$[a](g,c,b))});var l=f;return f.indexOf(h)>-1&&(e=f.split(h),l=e[1]),l===c&&S.parseMissingKey&&(f=S.parseMissingKey(f)),void 0===g&&(f=z(f,b),f=A(f,b),k.length&&(g=G(c,b),k.forEach(function(a){$[a]&&(g=$[a](g,c,b))}))),void 0!==g?g:f}function J(a,b){b=b||{};var c,d,e=G(a,b),f=P;if(!N)return e;if("cimode"===f[0].toLowerCase())return e;if(b.lngs&&(f=b.lngs),b.lng&&(f=W.toLanguages(b.lng,b.fallbackLng),!N[f[0]])){var g=S.getAsync;S.getAsync=!1,M.sync.load(f,S,function(a,b){W.extend(N,b),S.getAsync=g})}var h=b.ns||S.ns.defaultNs,i=b.nsseparator||S.nsseparator;if(a.indexOf(i)>-1){var j=a.split(i);h=j[0],a=j[1]}if(B(b)){c=W.extend({},b),delete c.context,c.defaultValue=S.contextNotFound;var k=h+i+a+"_"+b.context;if(d=F(k,c),d!=S.contextNotFound)return z(d,{context:b.context})}if(C(b,f[0])){c=W.extend({lngs:[f[0]]},b),delete c.count,c._origLng=c._origLng||c.lng||f[0],delete c.lng,c.defaultValue=S.pluralNotFound;var l;if(Z.needsPlural(f[0],b.count)){l=h+i+a+S.pluralSuffix;var m=Z.get(f[0],b.count);m>=0?l=l+"_"+m:1===m&&(l=h+i+a)}else l=h+i+a;if(d=F(l,c),d!=S.pluralNotFound)return z(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});if(!(f.length>1))return c.lng=c._origLng,delete c._origLng,d=F(h+i+a,c),z(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});var n=f.slice();if(n.shift(),b=W.extend(b,{lngs:n}),b._origLng=c._origLng,delete b.lng,d=F(h+i+a,b),d!=S.pluralNotFound)return d}if(D(b)){var o=W.extend({},b);delete o.indefinite_article,o.defaultValue=S.indefiniteNotFound;var p=h+i+a+(b.count&&!C(b,f[0])||!b.count?S.indefiniteSuffix:"");if(d=F(p,o),d!=S.indefiniteNotFound)return d}for(var q,r=b.keyseparator||S.keyseparator,s=a.split(r),t=0,u=f.length;u>t&&void 0===q;t++){for(var v=f[t],w=0,x=N[v]&&N[v][h];s[w];)x=x&&x[s[w]],w++;if(void 0!==x&&(!S.showKeyIfEmpty||""!==x)){var y=Object.prototype.toString.apply(x);if("string"==typeof x)x=z(x,b),x=A(x,b);else if("[object Array]"!==y||S.returnObjectTrees||b.returnObjectTrees){if(null===x&&S.fallbackOnNull===!0)x=void 0;else if(null!==x)if(S.returnObjectTrees||b.returnObjectTrees){if("[object Number]"!==y&&"[object Function]"!==y&&"[object RegExp]"!==y){var E="[object Array]"===y?[]:{};W.each(x,function(c){E[c]=I(h+i+a+r+c,b)}),x=E}}else S.objectTreeKeyHandler&&"function"==typeof S.objectTreeKeyHandler?x=S.objectTreeKeyHandler(a,x,v,h,b):(x="key '"+h+":"+a+" ("+v+")' returned an object instead of string.",W.log(x))}else x=x.join("\n"),x=z(x,b),x=A(x,b);"string"==typeof x&&""===x.trim()&&S.fallbackOnEmpty===!0&&(x=void 0),q=x}}if(void 0===q&&!b.isFallbackLookup&&(S.fallbackToDefaultNS===!0||S.fallbackNS&&S.fallbackNS.length>0)){if(b.isFallbackLookup=!0,S.fallbackNS.length){for(var H=0,K=S.fallbackNS.length;K>H;H++)if(q=J(S.fallbackNS[H]+i+a,b),q||""===q&&S.fallbackOnEmpty===!1){var L=q.indexOf(i)>-1?q.split(i)[1]:q,O=e.indexOf(i)>-1?e.split(i)[1]:e;if(L!==O)break}}else b.ns=S.ns.defaultNs,q=J(a,b);b.isFallbackLookup=!1}return q}function K(){var a,b=S.lngWhitelist||[],c=[];if("undefined"!=typeof window&&!function(){for(var a=window.location.search.substring(1),b=a.split("&"),d=0;d<b.length;d++){var e=b[d].indexOf("=");if(e>0){var f=b[d].substring(0,e);f==S.detectLngQS&&c.push(b[d].substring(e+1))}}}(),S.useCookie&&"undefined"!=typeof document){var d=W.cookie.read(S.cookieName);d&&c.push(d)}if(S.detectLngFromLocalStorage&&"undefined"!=typeof window&&window.localStorage){var e=W.localStorage.getItem("i18next_lng");e&&c.push(e)}if("undefined"!=typeof navigator){if(navigator.languages)for(var f=0;f<navigator.languages.length;f++)c.push(navigator.languages[f]);navigator.userLanguage&&c.push(navigator.userLanguage),navigator.language&&c.push(navigator.language)}return function(){for(var d=0;d<c.length;d++){var e=c[d];if(e.indexOf("-")>-1){var f=e.split("-");e=S.lowerCaseLng?f[0].toLowerCase()+"-"+f[1].toLowerCase():f[0].toLowerCase()+"-"+f[1].toUpperCase()}if(0===b.length||b.indexOf(e)>-1){a=e;break}}}(),a||(a=S.fallbackLng[0]),a}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;if(arguments.length>0&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(var e=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(e in b&&b[e]===a)return e;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=c;arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d))));for(var e=d>=0?Math.min(d,c-1):c-Math.abs(d);e>=0;e--)if(e in b&&b[e]===a)return e;return-1}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var L,M={},N={},O=0,P=[],Q=!1,R={};R={load:function(a,b,c){b.useLocalStorage?R._loadLocal(a,b,function(d,e){for(var f=[],g=0,h=a.length;h>g;g++)e[a[g]]||f.push(a[g]);f.length>0?R._fetch(f,b,function(a,b){W.extend(e,b),R._storeLocal(b),c(a,e)}):c(d,e)}):R._fetch(a,b,function(a,b){c(a,b)})},_loadLocal:function(a,b,c){var d={},e=(new Date).getTime();if(window.localStorage){var f=a.length;W.each(a,function(a,g){var h=W.localStorage.getItem("res_"+g);h&&(h=JSON.parse(h),h.i18nStamp&&h.i18nStamp+b.localStorageExpirationTime>e&&(d[g]=h)),f--,0===f&&c(null,d)})}},_storeLocal:function(a){if(window.localStorage)for(var b in a)a[b].i18nStamp=(new Date).getTime(),W.localStorage.setItem("res_"+b,JSON.stringify(a[b]))},_fetch:function(a,b,c){var d=b.ns,e={};if(b.dynamicLoad){var f=function(a,b){c(a,b)};if("function"==typeof b.customLoad)b.customLoad(a,d.namespaces,b,f);else{var g=z(b.resGetPath,{lng:a.join("+"),ns:d.namespaces.join("+")});W.ajax({url:g,cache:b.cache,success:function(a){W.log("loaded: "+g),f(null,a)},error:function(a,b,c){W.log("failed loading: "+g),f("failed loading resource.json error: "+c)},dataType:"json",async:b.getAsync,timeout:b.ajaxTimeout})}}else{var h,i=d.namespaces.length*a.length;W.each(d.namespaces,function(d,f){W.each(a,function(a,d){var g=function(a,b){a&&(h=h||[],h.push(a)),e[d]=e[d]||{},e[d][f]=b,i--,0===i&&c(h,e)};"function"==typeof b.customLoad?b.customLoad(d,f,b,g):R._fetchOne(d,f,b,g)})})}},_fetchOne:function(a,b,c,d){var e=z(c.resGetPath,{lng:a,ns:b});W.ajax({url:e,cache:c.cache,success:function(a){W.log("loaded: "+e),d(null,a)},error:function(a,b,c){if(b&&200==b||a&&a.status&&200==a.status)W.error("There is a typo in: "+e);else if(b&&404==b||a&&a.status&&404==a.status)W.log("Does not exist: "+e);else{var f=b?b:a&&a.status?a.status:null;W.log(f+" when loading "+e)}d(c,{})},dataType:"json",async:c.getAsync,timeout:c.ajaxTimeout,headers:c.headers})},postMissing:function(a,b,c,d,e){var f={};f[c]=d;var g=[];if("fallback"===S.sendMissingTo&&S.fallbackLng[0]!==!1)for(var h=0;h<S.fallbackLng.length;h++)g.push({lng:S.fallbackLng[h],url:z(S.resPostPath,{lng:S.fallbackLng[h],ns:b})});else if("current"===S.sendMissingTo||"fallback"===S.sendMissingTo&&S.fallbackLng[0]===!1)g.push({lng:a,url:z(S.resPostPath,{lng:a,ns:b})});else if("all"===S.sendMissingTo)for(var h=0,i=e.length;i>h;h++)g.push({lng:e[h],url:z(S.resPostPath,{lng:e[h],ns:b})});for(var j=0,k=g.length;k>j;j++){var l=g[j];W.ajax({url:l.url,type:S.sendType,data:f,success:function(){W.log("posted missing key '"+c+"' to: "+l.url);for(var a=c.split("."),e=0,f=N[l.lng][b];a[e];)f=f[a[e]]=e===a.length-1?d:f[a[e]]||{},e++},error:function(){W.log("failed posting missing key '"+c+"' to: "+l.url)},dataType:"json",async:S.postAsync,timeout:S.ajaxTimeout})}},reload:v};var S={lng:void 0,load:"all",preload:[],lowerCaseLng:!1,returnObjectTrees:!1,fallbackLng:["dev"],fallbackNS:[],detectLngQS:"setLng",detectLngFromLocalStorage:!1,ns:{namespaces:["translation"],defaultNs:"translation"},fallbackOnNull:!0,fallbackOnEmpty:!1,fallbackToDefaultNS:!1,showKeyIfEmpty:!1,nsseparator:":",keyseparator:".",selectorAttr:"data-i18n",debug:!1,resGetPath:"locales/__lng__/__ns__.json",resPostPath:"locales/add/__lng__/__ns__",getAsync:!0,postAsync:!0,resStore:void 0,useLocalStorage:!1,localStorageExpirationTime:6048e5,dynamicLoad:!1,sendMissing:!1,sendMissingTo:"fallback",sendType:"POST",interpolationPrefix:"__",interpolationSuffix:"__",defaultVariables:!1,reusePrefix:"$t(",reuseSuffix:")",pluralSuffix:"_plural",pluralNotFound:["plural_not_found",Math.random()].join(""),contextNotFound:["context_not_found",Math.random()].join(""),escapeInterpolation:!1,indefiniteSuffix:"_indefinite",indefiniteNotFound:["indefinite_not_found",Math.random()].join(""),setJqueryExt:!0,defaultValueFromContent:!0,useDataAttrOptions:!1,cookieExpirationTime:void 0,useCookie:!0,cookieName:"i18next",cookieDomain:void 0,objectTreeKeyHandler:void 0,postProcess:void 0,parseMissingKey:void 0,missingKeyHandler:R.postMissing,ajaxTimeout:0,shortcutFunction:"sprintf"},T={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},U={create:function(a,b,c,d){var e;if(c){var f=new Date;f.setTime(f.getTime()+60*c*1e3),e="; expires="+f.toGMTString()}else e="";d=d?"domain="+d+";":"",document.cookie=a+"="+b+e+";"+d+"path=/"},read:function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(b))return e.substring(b.length,e.length)}return null},remove:function(a){this.create(a,"",-1)}},V={create:function(){},read:function(){return null},remove:function(){}},W={extend:a?a.extend:b,deepExtend:c,each:a?a.each:d,ajax:a?a.ajax:"undefined"!=typeof document?f:function(){},cookie:"undefined"!=typeof document?U:V,detectLanguage:K,escape:e,log:function(a){S.debug&&"undefined"!=typeof console&&console.log(a)},error:function(a){"undefined"!=typeof console&&console.error(a)},getCountyIndexOfLng:function(a){var b=0;return("nb-NO"===a||"nn-NO"===a||"nb-no"===a||"nn-no"===a)&&(b=1),b},toLanguages:function(a,b){function c(a){var b=a;if("string"==typeof a&&a.indexOf("-")>-1){var c=a.split("-");b=S.lowerCaseLng?c[0].toLowerCase()+"-"+c[1].toLowerCase():c[0].toLowerCase()+"-"+c[1].toUpperCase()}else b=S.lowerCaseLng?a.toLowerCase():a;return b}var d=this.log;b=b||S.fallbackLng,"string"==typeof b&&(b=[b]);var e=[],f=S.lngWhitelist||!1,g=function(a){!f||f.indexOf(a)>-1?e.push(a):d("rejecting non-whitelisted language: "+a)};if("string"==typeof a&&a.indexOf("-")>-1){var h=a.split("-");"unspecific"!==S.load&&g(c(a)),"current"!==S.load&&g(c(h[this.getCountyIndexOfLng(a)]))}else g(c(a));for(var i=0;i<b.length;i++)-1===e.indexOf(b[i])&&b[i]&&e.push(c(b[i]));return e},regexEscape:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},regexReplacementEscape:function(a){return"string"==typeof a?a.replace(/\$/g,"$$$$"):a},localStorage:{setItem:function(a,b){if(window.localStorage)try{window.localStorage.setItem(a,b)}catch(c){W.log('failed to set value for key "'+a+'" to localStorage.')}},getItem:function(a,b){if(window.localStorage)try{return window.localStorage.getItem(a,b)}catch(c){return void W.log('failed to get value for key "'+a+'" from localStorage.')}}}};W.applyReplacement=z;var X=[["ach","Acholi",[1,2],1],["af","Afrikaans",[1,2],2],["ak","Akan",[1,2],1],["am","Amharic",[1,2],1],["an","Aragonese",[1,2],2],["ar","Arabic",[0,1,2,3,11,100],5],["arn","Mapudungun",[1,2],1],["ast","Asturian",[1,2],2],["ay","Aymará",[1],3],["az","Azerbaijani",[1,2],2],["be","Belarusian",[1,2,5],4],["bg","Bulgarian",[1,2],2],["bn","Bengali",[1,2],2],["bo","Tibetan",[1],3],["br","Breton",[1,2],1],["bs","Bosnian",[1,2,5],4],["ca","Catalan",[1,2],2],["cgg","Chiga",[1],3],["cs","Czech",[1,2,5],6],["csb","Kashubian",[1,2,5],7],["cy","Welsh",[1,2,3,8],8],["da","Danish",[1,2],2],["de","German",[1,2],2],["dev","Development Fallback",[1,2],2],["dz","Dzongkha",[1],3],["el","Greek",[1,2],2],["en","English",[1,2],2],["eo","Esperanto",[1,2],2],["es","Spanish",[1,2],2],["es_ar","Argentinean Spanish",[1,2],2],["et","Estonian",[1,2],2],["eu","Basque",[1,2],2],["fa","Persian",[1],3],["fi","Finnish",[1,2],2],["fil","Filipino",[1,2],1],["fo","Faroese",[1,2],2],["fr","French",[1,2],9],["fur","Friulian",[1,2],2],["fy","Frisian",[1,2],2],["ga","Irish",[1,2,3,7,11],10],["gd","Scottish Gaelic",[1,2,3,20],11],["gl","Galician",[1,2],2],["gu","Gujarati",[1,2],2],["gun","Gun",[1,2],1],["ha","Hausa",[1,2],2],["he","Hebrew",[1,2],2],["hi","Hindi",[1,2],2],["hr","Croatian",[1,2,5],4],["hu","Hungarian",[1,2],2],["hy","Armenian",[1,2],2],["ia","Interlingua",[1,2],2],["id","Indonesian",[1],3],["is","Icelandic",[1,2],12],["it","Italian",[1,2],2],["ja","Japanese",[1],3],["jbo","Lojban",[1],3],["jv","Javanese",[0,1],13],["ka","Georgian",[1],3],["kk","Kazakh",[1],3],["km","Khmer",[1],3],["kn","Kannada",[1,2],2],["ko","Korean",[1],3],["ku","Kurdish",[1,2],2],["kw","Cornish",[1,2,3,4],14],["ky","Kyrgyz",[1],3],["lb","Letzeburgesch",[1,2],2],["ln","Lingala",[1,2],1],["lo","Lao",[1],3],["lt","Lithuanian",[1,2,10],15],["lv","Latvian",[1,2,0],16],["mai","Maithili",[1,2],2],["mfe","Mauritian Creole",[1,2],1],["mg","Malagasy",[1,2],1],["mi","Maori",[1,2],1],["mk","Macedonian",[1,2],17],["ml","Malayalam",[1,2],2],["mn","Mongolian",[1,2],2],["mnk","Mandinka",[0,1,2],18],["mr","Marathi",[1,2],2],["ms","Malay",[1],3],["mt","Maltese",[1,2,11,20],19],["nah","Nahuatl",[1,2],2],["nap","Neapolitan",[1,2],2],["nb","Norwegian Bokmal",[1,2],2],["ne","Nepali",[1,2],2],["nl","Dutch",[1,2],2],["nn","Norwegian Nynorsk",[1,2],2],["no","Norwegian",[1,2],2],["nso","Northern Sotho",[1,2],2],["oc","Occitan",[1,2],1],["or","Oriya",[2,1],2],["pa","Punjabi",[1,2],2],["pap","Papiamento",[1,2],2],["pl","Polish",[1,2,5],7],["pms","Piemontese",[1,2],2],["ps","Pashto",[1,2],2],["pt","Portuguese",[1,2],2],["pt_br","Brazilian Portuguese",[1,2],2],["rm","Romansh",[1,2],2],["ro","Romanian",[1,2,20],20],["ru","Russian",[1,2,5],4],["sah","Yakut",[1],3],["sco","Scots",[1,2],2],["se","Northern Sami",[1,2],2],["si","Sinhala",[1,2],2],["sk","Slovak",[1,2,5],6],["sl","Slovenian",[5,1,2,3],21],["so","Somali",[1,2],2],["son","Songhay",[1,2],2],["sq","Albanian",[1,2],2],["sr","Serbian",[1,2,5],4],["su","Sundanese",[1],3],["sv","Swedish",[1,2],2],["sw","Swahili",[1,2],2],["ta","Tamil",[1,2],2],["te","Telugu",[1,2],2],["tg","Tajik",[1,2],1],["th","Thai",[1],3],["ti","Tigrinya",[1,2],1],["tk","Turkmen",[1,2],2],["tr","Turkish",[1,2],1],["tt","Tatar",[1],3],["ug","Uyghur",[1],3],["uk","Ukrainian",[1,2,5],4],["ur","Urdu",[1,2],2],["uz","Uzbek",[1,2],1],["vi","Vietnamese",[1],3],["wa","Walloon",[1,2],1],["wo","Wolof",[1],3],["yo","Yoruba",[1,2],2],["zh","Chinese",[1],3]],Y={1:function(a){return Number(a>1)},2:function(a){return Number(1!=a)},3:function(){return 0},4:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},5:function(a){return Number(0===a?0:1==a?1:2==a?2:a%100>=3&&10>=a%100?3:a%100>=11?4:5)},6:function(a){return Number(1==a?0:a>=2&&4>=a?1:2)},7:function(a){return Number(1==a?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},8:function(a){return Number(1==a?0:2==a?1:8!=a&&11!=a?2:3)},9:function(a){return Number(a>=2)},10:function(a){return Number(1==a?0:2==a?1:7>a?2:11>a?3:4)},11:function(a){return Number(1==a||11==a?0:2==a||12==a?1:a>2&&20>a?2:3)},12:function(a){return Number(a%10!=1||a%100==11)},13:function(a){return Number(0!==a)},14:function(a){return Number(1==a?0:2==a?1:3==a?2:3)},15:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&(10>a%100||a%100>=20)?1:2)},16:function(a){return Number(a%10==1&&a%100!=11?0:0!==a?1:2)},17:function(a){return Number(1==a||a%10==1?0:1)},18:function(a){return Number(0==a?0:1==a?1:2)},19:function(a){return Number(1==a?0:0===a||a%100>1&&11>a%100?1:a%100>10&&20>a%100?2:3)},20:function(a){return Number(1==a?0:0===a||a%100>0&&20>a%100?1:2)},21:function(a){return Number(a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0)}},Z={rules:function(){var a,b={};for(a=X.length;a--;)b[X[a][0]]={name:X[a][1],numbers:X[a][2],plurals:Y[X[a][3]]};return b}(),addRule:function(a,b){Z.rules[a]=b},setCurrentLng:function(a){if(!Z.currentRule||Z.currentRule.lng!==a){var b=a.split("-");Z.currentRule={lng:a,rule:Z.rules[b[0]]}}},needsPlural:function(a,b){var c,d=a.split("-");return c=Z.currentRule&&Z.currentRule.lng===a?Z.currentRule.rule:Z.rules[d[W.getCountyIndexOfLng(a)]],c&&c.numbers.length<=1?!1:1!==this.get(a,b)},get:function(a,b){function c(b,c){var d;if(d=Z.currentRule&&Z.currentRule.lng===a?Z.currentRule.rule:Z.rules[b]){var e;e=d.plurals(d.noAbs?c:Math.abs(c));var f=d.numbers[e];return 2===d.numbers.length&&1===d.numbers[0]&&(2===f?f=-1:1===f&&(f=1)),f}return 1===c?"1":"-1"}var d=a.split("-");return c(d[W.getCountyIndexOfLng(a)],b)}},$={},_=function(a,b){$[a]=b},aa=function(){function a(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function b(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")}var c=function(){return c.cache.hasOwnProperty(arguments[0])||(c.cache[arguments[0]]=c.parse(arguments[0])),c.format.call(null,c.cache[arguments[0]],arguments)};return c.format=function(c,d){var e,f,g,h,i,j,k,l=1,m=c.length,n="",o=[];for(f=0;m>f;f++)if(n=a(c[f]),"string"===n)o.push(c[f]);else if("array"===n){if(h=c[f],h[2])for(e=d[l],g=0;g<h[2].length;g++){if(!e.hasOwnProperty(h[2][g]))throw aa('[sprintf] property "%s" does not exist',h[2][g]);e=e[h[2][g]]}else e=h[1]?d[h[1]]:d[l++];if(/[^s]/.test(h[8])&&"number"!=a(e))throw aa("[sprintf] expecting number but found %s",a(e));switch(h[8]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e,10);break;case"e":e=h[7]?e.toExponential(h[7]):e.toExponential();break;case"f":e=h[7]?parseFloat(e).toFixed(h[7]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&h[7]?e.substring(0,h[7]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(h[8])&&h[3]&&e>=0?"+"+e:e,j=h[4]?"0"==h[4]?"0":h[4].charAt(1):" ",k=h[6]-String(e).length,i=h[6]?b(j,k):"",o.push(h[5]?e+i:i+e)}return o.join("")},c.cache={},c.parse=function(a){for(var b=a,c=[],d=[],e=0;b;){if(null!==(c=/^[^\x25]+/.exec(b)))d.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(b)))d.push("%");else{if(null===(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)))throw"[sprintf] huh?";
}return d},c}(),aa=function(a,b){return b.unshift(a),_.apply(null,b)};return $("sprintf",function(a,b,c){return c.sprintf?"[object Array]"===Object.prototype.toString.apply(c.sprintf)?aa(a,c.sprintf):"object"==typeof c.sprintf?_(a,c.sprintf):a:a}),L.init=g,L.isInitialized=h,L.setLng=s,L.preload=i,L.addResourceBundle=j,L.hasResourceBundle=k,L.getResourceBundle=l,L.addResource=n,L.addResources=o,L.removeResourceBundle=m,L.loadNamespace=q,L.loadNamespaces=r,L.setDefaultNamespace=p,L.t=E,L.translate=E,L.exists=D,L.detectLanguage=V.detectLanguage,L.pluralExtensions=Y,L.sync=Q,L.functions=V,L.lng=t,L.addPostProcessor=$,L.applyReplacement=V.applyReplacement,L.options=R,L.noConflict=v,a.i18n=L,a.t=L.t,L});
if(c[2]){e|=1;var f=[],g=c[2],h=[];if(null===(h=/^([a-z_][a-z_\d]*)/i.exec(g)))throw"[sprintf] huh?";for(f.push(h[1]);""!==(g=g.substring(h[0].length));)if(null!==(h=/^\.([a-z_][a-z_\d]*)/i.exec(g)))f.push(h[1]);else{if(null===(h=/^\[(\d+)\]/.exec(g)))throw"[sprintf] huh?";f.push(h[1])}c[2]=f}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";d.push(c)}b=b.substring(c[0].length)}return d},c}(),ba=function(a,b){return b.unshift(a),aa.apply(null,b)};return _("sprintf",function(a,b,c){return c.sprintf?"[object Array]"===Object.prototype.toString.apply(c.sprintf)?ba(a,c.sprintf):"object"==typeof c.sprintf?aa(a,c.sprintf):a:a}),M.init=g,M.isInitialized=h,M.setLng=s,M.preload=i,M.addResourceBundle=j,M.hasResourceBundle=k,M.getResourceBundle=l,M.addResource=n,M.addResources=o,M.removeResourceBundle=m,M.loadNamespace=q,M.loadNamespaces=r,M.setDefaultNamespace=p,M.t=F,M.translate=F,M.exists=E,M.detectLanguage=W.detectLanguage,M.pluralExtensions=Z,M.sync=R,M.functions=W,M.lng=t,M.dir=u,M.addPostProcessor=_,M.applyReplacement=W.applyReplacement,M.options=S,M.noConflict=w,a.i18n=M,a.t=M.t,M});

@@ -1,7 +0,7 @@

// i18next, v1.10.3
// i18next, v1.11.0
// Copyright (c)2015 Jan Mühlemann (jamuhl).
// Distributed under MIT license
// http://i18next.com
!function(a){function b(a,b){if(!b||"function"==typeof b)return a;for(var c in b)a[c]=b[c];return a}function c(a,b){for(var d in b)d in a?c(a[d],b[d]):a[d]=b[d];return a}function d(a,b,c){var d,e=0,f=a.length,g=void 0===f||"[object Array]"!==Object.prototype.toString.apply(a)||"function"==typeof a;if(c)if(g){for(d in a)if(b.apply(a[d],c)===!1)break}else for(;f>e&&b.apply(a[e++],c)!==!1;);else if(g){for(d in a)if(b.call(a[d],d,a[d])===!1)break}else for(;f>e&&b.call(a[e],e,a[e++])!==!1;);return a}function e(a){return"string"==typeof a?a.replace(/[&<>"'\/]/g,function(a){return U[a]}):a}function f(a){var b=function(a){if(window.XMLHttpRequest)return a(null,new XMLHttpRequest);if(window.ActiveXObject)try{return a(null,new ActiveXObject("Msxml2.XMLHTTP"))}catch(b){return a(null,new ActiveXObject("Microsoft.XMLHTTP"))}return a(new Error)},c=function(a){if("string"==typeof a)return a;var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b.join("&")},d=function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):d>127&&2048>d?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},e=function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a=d(a);var c,e,f,g,h,i,j,k="",l=0;do c=a.charCodeAt(l++),e=a.charCodeAt(l++),f=a.charCodeAt(l++),g=c>>2,h=(3&c)<<4|e>>4,i=(15&e)<<2|f>>6,j=63&f,isNaN(e)?i=j=64:isNaN(f)&&(j=64),k+=b.charAt(g)+b.charAt(h)+b.charAt(i)+b.charAt(j),c=e=f="",g=h=i=j="";while(l<a.length);return k},f=function(){for(var a=arguments[0],b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}return a},g=function(a,d,e,h){"function"==typeof e&&(h=e,e={}),e.cache=e.cache||!1,e.data=e.data||{},e.headers=e.headers||{},e.jsonp=e.jsonp||!1,e.async=void 0===e.async?!0:e.async;var i,j=f({accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},g.headers,e.headers);if(i="application/json"===j["content-type"]?JSON.stringify(e.data):c(e.data),"GET"===a){var k=[];if(i&&(k.push(i),i=null),e.cache||k.push("_="+(new Date).getTime()),e.jsonp&&(k.push("callback="+e.jsonp),k.push("jsonp="+e.jsonp)),k=k.join("&"),k.length>1&&(d+=d.indexOf("?")>-1?"&"+k:"?"+k),e.jsonp){var l=document.getElementsByTagName("head")[0],m=document.createElement("script");return m.type="text/javascript",m.src=d,void l.appendChild(m)}}b(function(b,c){if(b)return h(b);c.open(a,d,e.async);for(var f in j)j.hasOwnProperty(f)&&c.setRequestHeader(f,j[f]);c.onreadystatechange=function(){if(4===c.readyState){var a=c.responseText||"";if(!h)return;h(c.status,{text:function(){return a},json:function(){try{return JSON.parse(a)}catch(b){return X.error("Can not parse JSON. URL: "+d),{}}}})}},c.send(i)})},h={authBasic:function(a,b){g.headers.Authorization="Basic "+e(a+":"+b)},connect:function(a,b,c){return g("CONNECT",a,b,c)},del:function(a,b,c){return g("DELETE",a,b,c)},get:function(a,b,c){return g("GET",a,b,c)},head:function(a,b,c){return g("HEAD",a,b,c)},headers:function(a){g.headers=a||{}},isAllowed:function(a,b,c){this.options(a,function(a,d){c(-1!==d.text().indexOf(b))})},options:function(a,b,c){return g("OPTIONS",a,b,c)},patch:function(a,b,c){return g("PATCH",a,b,c)},post:function(a,b,c){return g("POST",a,b,c)},put:function(a,b,c){return g("PUT",a,b,c)},trace:function(a,b,c){return g("TRACE",a,b,c)}},i=a.type?a.type.toLowerCase():"get";h[i](a.url,a,function(b,c){200===b||0===b&&c.text()?a.success(c.json(),b,null):a.error(c.text(),b,null)})}function g(a,b){"function"==typeof a&&(b=a,a={}),a=a||{},X.extend(T,a),delete T.fixLng,T.functions&&(delete T.functions,X.extend(X,a.functions)),"string"==typeof T.ns&&(T.ns={namespaces:[T.ns],defaultNs:T.ns}),"string"==typeof T.fallbackNS&&(T.fallbackNS=[T.fallbackNS]),("string"==typeof T.fallbackLng||"boolean"==typeof T.fallbackLng)&&(T.fallbackLng=[T.fallbackLng]),T.interpolationPrefixEscaped=X.regexEscape(T.interpolationPrefix),T.interpolationSuffixEscaped=X.regexEscape(T.interpolationSuffix),T.lng||(T.lng=X.detectLanguage()),P=X.toLanguages(T.lng),K=P[0],X.log("currentLng set to: "+K),T.useCookie&&X.cookie.read(T.cookieName)!==K&&X.cookie.create(T.cookieName,K,T.cookieExpirationTime,T.cookieDomain),T.detectLngFromLocalStorage&&"undefined"!=typeof document&&window.localStorage&&X.localStorage.setItem("i18next_lng",K);var c=E;a.fixLng&&(c=function(a,b){return b=b||{},b.lng=b.lng||c.lng,E(a,b)},c.lng=K),$.setCurrentLng(K),L&&T.setJqueryExt?w&&w():x&&x();var d;if(L&&L.Deferred&&(d=L.Deferred()),!T.resStore){var e=X.toLanguages(T.lng);"string"==typeof T.preload&&(T.preload=[T.preload]);for(var f=0,g=T.preload.length;g>f;f++)for(var h=X.toLanguages(T.preload[f]),i=0,j=h.length;j>i;i++)e.indexOf(h[i])<0&&e.push(h[i]);return M.sync.load(e,T,function(a,e){N=e,Q=!0,b&&b(a,c),d&&(a?d.reject:d.resolve)(a||c)}),d?d.promise():void 0}return N=T.resStore,Q=!0,b&&b(null,c),d&&d.resolve(c),d?d.promise():void 0}function h(){return Q}function i(a,b){"string"==typeof a&&(a=[a]);for(var c=0,d=a.length;d>c;c++)T.preload.indexOf(a[c])<0&&T.preload.push(a[c]);return g(b)}function j(a,b,c,d){"string"!=typeof b?(c=b,b=T.ns.defaultNs):T.ns.namespaces.indexOf(b)<0&&T.ns.namespaces.push(b),N[a]=N[a]||{},N[a][b]=N[a][b]||{},d?X.deepExtend(N[a][b],c):X.extend(N[a][b],c),T.useLocalStorage&&R._storeLocal(N)}function k(a,b){"string"!=typeof b&&(b=T.ns.defaultNs),N[a]=N[a]||{};var c=N[a][b]||{},d=!1;for(var e in c)c.hasOwnProperty(e)&&(d=!0);return d}function l(a,b){return"string"!=typeof b&&(b=T.ns.defaultNs),N[a]=N[a]||{},X.extend({},N[a][b])}function m(a,b){"string"!=typeof b&&(b=T.ns.defaultNs),N[a]=N[a]||{},N[a][b]={},T.useLocalStorage&&R._storeLocal(N)}function n(a,b,c,d){"string"!=typeof b?(resource=b,b=T.ns.defaultNs):T.ns.namespaces.indexOf(b)<0&&T.ns.namespaces.push(b),N[a]=N[a]||{},N[a][b]=N[a][b]||{};for(var e=c.split(T.keyseparator),f=0,g=N[a][b];e[f];)f==e.length-1?g[e[f]]=d:(null==g[e[f]]&&(g[e[f]]={}),g=g[e[f]]),f++;T.useLocalStorage&&R._storeLocal(N)}function o(a,b,c){"string"!=typeof b?(resource=b,b=T.ns.defaultNs):T.ns.namespaces.indexOf(b)<0&&T.ns.namespaces.push(b);for(var d in c)"string"==typeof c[d]&&n(a,b,d,c[d])}function p(a){T.ns.defaultNs=a}function q(a,b){r([a],b)}function r(a,b){var c={dynamicLoad:T.dynamicLoad,resGetPath:T.resGetPath,getAsync:T.getAsync,customLoad:T.customLoad,ns:{namespaces:a,defaultNs:""}},d=X.toLanguages(T.lng);"string"==typeof T.preload&&(T.preload=[T.preload]);for(var e=0,f=T.preload.length;f>e;e++)for(var g=X.toLanguages(T.preload[e]),h=0,i=g.length;i>h;h++)d.indexOf(g[h])<0&&d.push(g[h]);for(var j=[],k=0,l=d.length;l>k;k++){var m=!1,n=N[d[k]];if(n)for(var o=0,p=a.length;p>o;o++)n[a[o]]||(m=!0);else m=!0;m&&j.push(d[k])}j.length?M.sync._fetch(j,c,function(c,d){var e=a.length*j.length;X.each(a,function(a,c){T.ns.namespaces.indexOf(c)<0&&T.ns.namespaces.push(c),X.each(j,function(a,f){N[f]=N[f]||{},N[f][c]=d[f][c],e--,0===e&&b&&(T.useLocalStorage&&M.sync._storeLocal(N),b())})})}):b&&b()}function s(a,b,c){return"function"==typeof b?(c=b,b={}):b||(b={}),b.lng=a,g(b,c)}function t(){return K}function u(a){N={},s(K,a)}function v(){window.i18next=window.i18n,conflictReference?window.i18n=conflictReference:delete window.i18n}function w(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2));var f;if("html"===d)f=T.defaultValueFromContent?L.extend({defaultValue:a.html()},c):c,a.html(L.t(b,f));else if("text"===d)f=T.defaultValueFromContent?L.extend({defaultValue:a.text()},c):c,a.text(L.t(b,f));else if("prepend"===d)f=T.defaultValueFromContent?L.extend({defaultValue:a.html()},c):c,a.prepend(L.t(b,f));else if("append"===d)f=T.defaultValueFromContent?L.extend({defaultValue:a.html()},c):c,a.append(L.t(b,f));else if(0===d.indexOf("data-")){var g=d.substr("data-".length);f=T.defaultValueFromContent?L.extend({defaultValue:a.data(g)},c):c;var h=L.t(b,f);a.data(g,h),a.attr(d,h)}else f=T.defaultValueFromContent?L.extend({defaultValue:a.attr(d)},c):c,a.attr(d,L.t(b,f))}}function b(b,c){var d=b.attr(T.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.text()||b.val()),d){var e=b,f=b.data("i18n-target");if(f&&(e=b.find(f)||b),c||T.useDataAttrOptions!==!0||(c=b.data("i18n-options")),c=c||{},d.indexOf(";")>=0){var g=d.split(";");L.each(g,function(b,d){""!==d&&a(e,d,c)})}else a(e,d,c);if(T.useDataAttrOptions===!0){var h=L.extend({lng:"non",lngs:[],_origLng:"non"},c);delete h.lng,delete h.lngs,delete h._origLng,b.data("i18n-options",h)}}}L.t=L.t||E,L.fn.i18n=function(a){return this.each(function(){b(L(this),a);var c=L(this).find("["+T.selectorAttr+"]");c.each(function(){b(L(this),a)})})}}function x(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2)),"html"===d?a.innerHTML=E(b,c):"text"===d?a.textContent=E(b,c):"prepend"===d?a.insertAdjacentHTML(E(b,c),"afterbegin"):"append"===d?a.insertAdjacentHTML(E(b,c),"beforeend"):a.setAttribute(d,E(b,c))}}function b(b,c){var d=b.getAttribute(T.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.textContent||b.value),d){var e=b,f=b.getAttribute("i18n-target");if(f&&(e=b.querySelector(f)||b),d.indexOf(";")>=0)for(var g=d.split(";"),h=0,i=g.length;i>h;h++)""!==g[h]&&a(e,g[h],c);else a(e,d,c)}}M.translateObject=function(a,c){for(var d=a.querySelectorAll("["+T.selectorAttr+"]"),e=0,f=d.length;f>e;e++)b(d[e],c)}}function y(a,b,c,d){if(!a)return a;if(d=d||b,a.indexOf(d.interpolationPrefix||T.interpolationPrefix)<0)return a;var e=d.interpolationPrefix?X.regexEscape(d.interpolationPrefix):T.interpolationPrefixEscaped,f=d.interpolationSuffix?X.regexEscape(d.interpolationSuffix):T.interpolationSuffixEscaped,g=b.replace&&"object"==typeof b.replace?b.replace:b,h=new RegExp([e,"(.+?)","(HTML)?",f].join(""),"g"),i=d.escapeInterpolation||T.escapeInterpolation;return a.replace(h,function(a,b,c){for(var d=g,e=b;e.indexOf(T.keyseparator)>=0&&"object"==typeof d&&d;){var f=e.slice(0,e.indexOf(T.keyseparator));e=e.slice(e.indexOf(T.keyseparator)+1),d=d[f]}if(d&&"object"==typeof d&&d.hasOwnProperty(e)){{d[e]}return i&&!c?X.escape(d[e]):d[e]}return a})}function z(a,b){var c=",",d="{",e="}",f=X.extend({},b);for(delete f.postProcess;-1!=a.indexOf(T.reusePrefix)&&(O++,!(O>T.maxRecursion));){var g=a.lastIndexOf(T.reusePrefix),h=a.indexOf(T.reuseSuffix,g)+T.reuseSuffix.length,i=a.substring(g,h),j=i.replace(T.reusePrefix,"").replace(T.reuseSuffix,"");if(g>=h)return X.error("there is an missing closing in following translation value",a),"";if(-1!=j.indexOf(c)){var k=j.indexOf(c);if(-1!=j.indexOf(d,k)&&-1!=j.indexOf(e,k)){var l=j.indexOf(d,k),m=j.indexOf(e,l)+e.length;try{f=X.extend(f,JSON.parse(j.substring(l,m))),j=j.substring(0,k)}catch(n){}}}var o=H(j,f);a=a.replace(i,X.regexReplacementEscape(o))}return a}function A(a){return a.context&&("string"==typeof a.context||"number"==typeof a.context)}function B(a){return void 0!==a.count&&"string"!=typeof a.count}function C(a){return void 0!==a.indefinite_article&&"string"!=typeof a.indefinite_article&&a.indefinite_article}function D(a,b){b=b||{};var c=F(a,b),d=I(a,b);return void 0!==d||d===c}function E(a,b){return b=b||{},Q?(O=0,H.apply(null,arguments)):(X.log("i18next not finished initialization. you might have called t function before loading resources finished."),b.defaultValue||"")}function F(a,b){return void 0!==b.defaultValue?b.defaultValue:a}function G(){for(var a=[],b=1;b<arguments.length;b++)a.push(arguments[b]);return{postProcess:"sprintf",sprintf:a}}function H(a,b){if(b&&"object"!=typeof b?"sprintf"===T.shortcutFunction?b=G.apply(null,arguments):"defaultValue"===T.shortcutFunction&&(b={defaultValue:b}):b=b||{},"object"==typeof T.defaultVariables&&(b=X.extend({},T.defaultVariables,b)),void 0===a||null===a||""===a)return"";"number"==typeof a&&(a=String(a)),"string"==typeof a&&(a=[a]);var c=a[0];if(a.length>1)for(var d=0;d<a.length&&(c=a[d],!D(c,b));d++);var e,f=F(c,b),g=I(c,b),h=b.lng?X.toLanguages(b.lng,b.fallbackLng):P,i=b.ns||T.ns.defaultNs;c.indexOf(T.nsseparator)>-1&&(e=c.split(T.nsseparator),i=e[0],c=e[1]),void 0===g&&T.sendMissing&&"function"==typeof T.missingKeyHandler&&(b.lng?T.missingKeyHandler(h[0],i,c,f,h):T.missingKeyHandler(T.lng,i,c,f,h));var j;j="string"==typeof T.postProcess&&""!==T.postProcess?[T.postProcess]:"array"==typeof T.postProcess||"object"==typeof T.postProcess?T.postProcess:[],"string"==typeof b.postProcess&&""!==b.postProcess?j=j.concat([b.postProcess]):("array"==typeof b.postProcess||"object"==typeof b.postProcess)&&(j=j.concat(b.postProcess)),void 0!==g&&j.length&&j.forEach(function(a){_[a]&&(g=_[a](g,c,b))});var k=f;if(f.indexOf(T.nsseparator)>-1&&(e=f.split(T.nsseparator),k=e[1]),k===c&&T.parseMissingKey&&(f=T.parseMissingKey(f)),void 0===g&&(f=y(f,b),f=z(f,b),j.length)){var l=F(c,b);j.forEach(function(a){_[a]&&(g=_[a](l,c,b))})}return void 0!==g?g:f}function I(a,b){b=b||{};var c,d,e=F(a,b),f=P;if(!N)return e;if("cimode"===f[0].toLowerCase())return e;if(b.lngs&&(f=b.lngs),b.lng&&(f=X.toLanguages(b.lng,b.fallbackLng),!N[f[0]])){var g=T.getAsync;T.getAsync=!1,M.sync.load(f,T,function(a,b){X.extend(N,b),T.getAsync=g})}var h=b.ns||T.ns.defaultNs;if(a.indexOf(T.nsseparator)>-1){var i=a.split(T.nsseparator);h=i[0],a=i[1]}if(A(b)){c=X.extend({},b),delete c.context,c.defaultValue=T.contextNotFound;var j=h+T.nsseparator+a+"_"+b.context;if(d=E(j,c),d!=T.contextNotFound)return y(d,{context:b.context})}if(B(b,f[0])){c=X.extend({lngs:[f[0]]},b),delete c.count,c._origLng=c._origLng||c.lng||f[0],delete c.lng,c.defaultValue=T.pluralNotFound;var k;if($.needsPlural(f[0],b.count)){k=h+T.nsseparator+a+T.pluralSuffix;var l=$.get(f[0],b.count);l>=0?k=k+"_"+l:1===l&&(k=h+T.nsseparator+a)}else k=h+T.nsseparator+a;if(d=E(k,c),d!=T.pluralNotFound)return y(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});if(!(f.length>1))return c.lng=c._origLng,delete c._origLng,d=E(h+T.nsseparator+a,c),y(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});var m=f.slice();if(m.shift(),b=X.extend(b,{lngs:m}),b._origLng=c._origLng,delete b.lng,d=E(h+T.nsseparator+a,b),d!=T.pluralNotFound)return d}if(C(b)){var n=X.extend({},b);delete n.indefinite_article,n.defaultValue=T.indefiniteNotFound;var o=h+T.nsseparator+a+(b.count&&!B(b,f[0])||!b.count?T.indefiniteSuffix:"");if(d=E(o,n),d!=T.indefiniteNotFound)return d}for(var p,q=a.split(T.keyseparator),r=0,s=f.length;s>r&&void 0===p;r++){for(var t=f[r],u=0,v=N[t]&&N[t][h];q[u];)v=v&&v[q[u]],u++;if(void 0!==v&&(!T.showKeyIfEmpty||""!==v)){var w=Object.prototype.toString.apply(v);if("string"==typeof v)v=y(v,b),v=z(v,b);else if("[object Array]"!==w||T.returnObjectTrees||b.returnObjectTrees){if(null===v&&T.fallbackOnNull===!0)v=void 0;else if(null!==v)if(T.returnObjectTrees||b.returnObjectTrees){if("[object Number]"!==w&&"[object Function]"!==w&&"[object RegExp]"!==w){var x="[object Array]"===w?[]:{};X.each(v,function(c){x[c]=H(h+T.nsseparator+a+T.keyseparator+c,b)}),v=x}}else T.objectTreeKeyHandler&&"function"==typeof T.objectTreeKeyHandler?v=T.objectTreeKeyHandler(a,v,t,h,b):(v="key '"+h+":"+a+" ("+t+")' returned an object instead of string.",X.log(v))}else v=v.join("\n"),v=y(v,b),v=z(v,b);"string"==typeof v&&""===v.trim()&&T.fallbackOnEmpty===!0&&(v=void 0),p=v}}if(void 0===p&&!b.isFallbackLookup&&(T.fallbackToDefaultNS===!0||T.fallbackNS&&T.fallbackNS.length>0)){if(b.isFallbackLookup=!0,T.fallbackNS.length){for(var D=0,G=T.fallbackNS.length;G>D;D++)if(p=I(T.fallbackNS[D]+T.nsseparator+a,b),p||""===p&&T.fallbackOnEmpty===!1){var J=p.indexOf(T.nsseparator)>-1?p.split(T.nsseparator)[1]:p,K=e.indexOf(T.nsseparator)>-1?e.split(T.nsseparator)[1]:e;if(J!==K)break}}else b.ns=T.ns.defaultNs,p=I(a,b);b.isFallbackLookup=!1}return p}function J(){var a,b=T.lngWhitelist||[],c=[];if("undefined"!=typeof window&&!function(){for(var a=window.location.search.substring(1),b=a.split("&"),d=0;d<b.length;d++){var e=b[d].indexOf("=");if(e>0){var f=b[d].substring(0,e);f==T.detectLngQS&&c.push(b[d].substring(e+1))}}}(),T.useCookie&&"undefined"!=typeof document){var d=X.cookie.read(T.cookieName);d&&c.push(d)}if(T.detectLngFromLocalStorage&&"undefined"!=typeof window&&window.localStorage){var e=X.localStorage.getItem("i18next_lng");e&&c.push(e)}if("undefined"!=typeof navigator){if(navigator.languages)for(var f=0;f<navigator.languages.length;f++)c.push(navigator.languages[f]);navigator.userLanguage&&c.push(navigator.userLanguage),navigator.language&&c.push(navigator.language)}return function(){for(var d=0;d<c.length;d++){var e=c[d];if(e.indexOf("-")>-1){var f=e.split("-");e=T.lowerCaseLng?f[0].toLowerCase()+"-"+f[1].toLowerCase():f[0].toLowerCase()+"-"+f[1].toUpperCase()}if(0===b.length||b.indexOf(e)>-1){a=e;break}}}(),a||(a=T.fallbackLng[0]),a}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;if(arguments.length>0&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(var e=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(e in b&&b[e]===a)return e;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=c;arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d))));for(var e=d>=0?Math.min(d,c-1):c-Math.abs(d);e>=0;e--)if(e in b&&b[e]===a)return e;return-1}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var K,L=a.jQuery||a.Zepto,M={},N={},O=0,P=[],Q=!1,R={};if("undefined"!=typeof module&&module.exports){if(module.exports=M,!L)try{L=require("jquery")}catch(S){}}else a.i18n=a.i18n||M;L&&(L.i18n=L.i18n||M),R={load:function(a,b,c){b.useLocalStorage?R._loadLocal(a,b,function(d,e){for(var f=[],g=0,h=a.length;h>g;g++)e[a[g]]||f.push(a[g]);f.length>0?R._fetch(f,b,function(a,b){X.extend(e,b),R._storeLocal(b),c(a,e)}):c(d,e)}):R._fetch(a,b,function(a,b){c(a,b)})},_loadLocal:function(a,b,c){var d={},e=(new Date).getTime();if(window.localStorage){var f=a.length;X.each(a,function(a,g){var h=X.localStorage.getItem("res_"+g);h&&(h=JSON.parse(h),h.i18nStamp&&h.i18nStamp+b.localStorageExpirationTime>e&&(d[g]=h)),f--,0===f&&c(null,d)})}},_storeLocal:function(a){if(window.localStorage)for(var b in a)a[b].i18nStamp=(new Date).getTime(),X.localStorage.setItem("res_"+b,JSON.stringify(a[b]))},_fetch:function(a,b,c){var d=b.ns,e={};if(b.dynamicLoad){var f=function(a,b){c(a,b)};if("function"==typeof b.customLoad)b.customLoad(a,d.namespaces,b,f);else{var g=y(b.resGetPath,{lng:a.join("+"),ns:d.namespaces.join("+")});X.ajax({url:g,cache:b.cache,success:function(a){X.log("loaded: "+g),f(null,a)},error:function(a,b,c){X.log("failed loading: "+g),f("failed loading resource.json error: "+c)},dataType:"json",async:b.getAsync,timeout:b.ajaxTimeout})}}else{var h,i=d.namespaces.length*a.length;X.each(d.namespaces,function(d,f){X.each(a,function(a,d){var g=function(a,b){a&&(h=h||[],h.push(a)),e[d]=e[d]||{},e[d][f]=b,i--,0===i&&c(h,e)};"function"==typeof b.customLoad?b.customLoad(d,f,b,g):R._fetchOne(d,f,b,g)})})}},_fetchOne:function(a,b,c,d){var e=y(c.resGetPath,{lng:a,ns:b});X.ajax({url:e,cache:c.cache,success:function(a){X.log("loaded: "+e),d(null,a)},error:function(a,b,c){if(b&&200==b||a&&a.status&&200==a.status)X.error("There is a typo in: "+e);else if(b&&404==b||a&&a.status&&404==a.status)X.log("Does not exist: "+e);else{var f=b?b:a&&a.status?a.status:null;X.log(f+" when loading "+e)}d(c,{})},dataType:"json",async:c.getAsync,timeout:c.ajaxTimeout})},postMissing:function(a,b,c,d,e){var f={};f[c]=d;var g=[];if("fallback"===T.sendMissingTo&&T.fallbackLng[0]!==!1)for(var h=0;h<T.fallbackLng.length;h++)g.push({lng:T.fallbackLng[h],url:y(T.resPostPath,{lng:T.fallbackLng[h],ns:b})});else if("current"===T.sendMissingTo||"fallback"===T.sendMissingTo&&T.fallbackLng[0]===!1)g.push({lng:a,url:y(T.resPostPath,{lng:a,ns:b})});else if("all"===T.sendMissingTo)for(var h=0,i=e.length;i>h;h++)g.push({lng:e[h],url:y(T.resPostPath,{lng:e[h],ns:b})});for(var j=0,k=g.length;k>j;j++){var l=g[j];X.ajax({url:l.url,type:T.sendType,data:f,success:function(){X.log("posted missing key '"+c+"' to: "+l.url);for(var a=c.split("."),e=0,f=N[l.lng][b];a[e];)f=f[a[e]]=e===a.length-1?d:f[a[e]]||{},e++},error:function(){X.log("failed posting missing key '"+c+"' to: "+l.url)},dataType:"json",async:T.postAsync,timeout:T.ajaxTimeout})}},reload:u};var T={lng:void 0,load:"all",preload:[],lowerCaseLng:!1,returnObjectTrees:!1,fallbackLng:["dev"],fallbackNS:[],detectLngQS:"setLng",detectLngFromLocalStorage:!1,ns:{namespaces:["translation"],defaultNs:"translation"},fallbackOnNull:!0,fallbackOnEmpty:!1,fallbackToDefaultNS:!1,showKeyIfEmpty:!1,nsseparator:":",keyseparator:".",selectorAttr:"data-i18n",debug:!1,resGetPath:"locales/__lng__/__ns__.json",resPostPath:"locales/add/__lng__/__ns__",getAsync:!0,postAsync:!0,resStore:void 0,useLocalStorage:!1,localStorageExpirationTime:6048e5,dynamicLoad:!1,sendMissing:!1,sendMissingTo:"fallback",sendType:"POST",interpolationPrefix:"__",interpolationSuffix:"__",defaultVariables:!1,reusePrefix:"$t(",reuseSuffix:")",pluralSuffix:"_plural",pluralNotFound:["plural_not_found",Math.random()].join(""),contextNotFound:["context_not_found",Math.random()].join(""),escapeInterpolation:!1,indefiniteSuffix:"_indefinite",indefiniteNotFound:["indefinite_not_found",Math.random()].join(""),setJqueryExt:!0,defaultValueFromContent:!0,useDataAttrOptions:!1,cookieExpirationTime:void 0,useCookie:!0,cookieName:"i18next",cookieDomain:void 0,objectTreeKeyHandler:void 0,postProcess:void 0,parseMissingKey:void 0,missingKeyHandler:R.postMissing,ajaxTimeout:0,shortcutFunction:"sprintf"},U={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},V={create:function(a,b,c,d){var e;if(c){var f=new Date;f.setTime(f.getTime()+60*c*1e3),e="; expires="+f.toGMTString()}else e="";d=d?"domain="+d+";":"",document.cookie=a+"="+b+e+";"+d+"path=/"},read:function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(b))return e.substring(b.length,e.length)}return null},remove:function(a){this.create(a,"",-1)}},W={create:function(){},read:function(){return null},remove:function(){}},X={extend:L?L.extend:b,deepExtend:c,each:L?L.each:d,ajax:L?L.ajax:"undefined"!=typeof document?f:function(){},cookie:"undefined"!=typeof document?V:W,detectLanguage:J,escape:e,log:function(a){T.debug&&"undefined"!=typeof console&&console.log(a)},error:function(a){"undefined"!=typeof console&&console.error(a)},getCountyIndexOfLng:function(a){var b=0;return("nb-NO"===a||"nn-NO"===a||"nb-no"===a||"nn-no"===a)&&(b=1),b},toLanguages:function(a,b){function c(a){var b=a;if("string"==typeof a&&a.indexOf("-")>-1){var c=a.split("-");b=T.lowerCaseLng?c[0].toLowerCase()+"-"+c[1].toLowerCase():c[0].toLowerCase()+"-"+c[1].toUpperCase()}else b=T.lowerCaseLng?a.toLowerCase():a;return b}var d=this.log;b=b||T.fallbackLng,"string"==typeof b&&(b=[b]);var e=[],f=T.lngWhitelist||!1,g=function(a){!f||f.indexOf(a)>-1?e.push(a):d("rejecting non-whitelisted language: "+a)};if("string"==typeof a&&a.indexOf("-")>-1){var h=a.split("-");"unspecific"!==T.load&&g(c(a)),"current"!==T.load&&g(c(h[this.getCountyIndexOfLng(a)]))}else g(c(a));for(var i=0;i<b.length;i++)-1===e.indexOf(b[i])&&b[i]&&e.push(c(b[i]));return e},regexEscape:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},regexReplacementEscape:function(a){return"string"==typeof a?a.replace(/\$/g,"$$$$"):a},localStorage:{setItem:function(a,b){if(window.localStorage)try{window.localStorage.setItem(a,b)}catch(c){X.log('failed to set value for key "'+a+'" to localStorage.')}},getItem:function(a,b){if(window.localStorage)try{return window.localStorage.getItem(a,b)}catch(c){return void X.log('failed to get value for key "'+a+'" from localStorage.')}}}};X.applyReplacement=y;var Y=[["ach","Acholi",[1,2],1],["af","Afrikaans",[1,2],2],["ak","Akan",[1,2],1],["am","Amharic",[1,2],1],["an","Aragonese",[1,2],2],["ar","Arabic",[0,1,2,3,11,100],5],["arn","Mapudungun",[1,2],1],["ast","Asturian",[1,2],2],["ay","Aymará",[1],3],["az","Azerbaijani",[1,2],2],["be","Belarusian",[1,2,5],4],["bg","Bulgarian",[1,2],2],["bn","Bengali",[1,2],2],["bo","Tibetan",[1],3],["br","Breton",[1,2],1],["bs","Bosnian",[1,2,5],4],["ca","Catalan",[1,2],2],["cgg","Chiga",[1],3],["cs","Czech",[1,2,5],6],["csb","Kashubian",[1,2,5],7],["cy","Welsh",[1,2,3,8],8],["da","Danish",[1,2],2],["de","German",[1,2],2],["dev","Development Fallback",[1,2],2],["dz","Dzongkha",[1],3],["el","Greek",[1,2],2],["en","English",[1,2],2],["eo","Esperanto",[1,2],2],["es","Spanish",[1,2],2],["es_ar","Argentinean Spanish",[1,2],2],["et","Estonian",[1,2],2],["eu","Basque",[1,2],2],["fa","Persian",[1],3],["fi","Finnish",[1,2],2],["fil","Filipino",[1,2],1],["fo","Faroese",[1,2],2],["fr","French",[1,2],9],["fur","Friulian",[1,2],2],["fy","Frisian",[1,2],2],["ga","Irish",[1,2,3,7,11],10],["gd","Scottish Gaelic",[1,2,3,20],11],["gl","Galician",[1,2],2],["gu","Gujarati",[1,2],2],["gun","Gun",[1,2],1],["ha","Hausa",[1,2],2],["he","Hebrew",[1,2],2],["hi","Hindi",[1,2],2],["hr","Croatian",[1,2,5],4],["hu","Hungarian",[1,2],2],["hy","Armenian",[1,2],2],["ia","Interlingua",[1,2],2],["id","Indonesian",[1],3],["is","Icelandic",[1,2],12],["it","Italian",[1,2],2],["ja","Japanese",[1],3],["jbo","Lojban",[1],3],["jv","Javanese",[0,1],13],["ka","Georgian",[1],3],["kk","Kazakh",[1],3],["km","Khmer",[1],3],["kn","Kannada",[1,2],2],["ko","Korean",[1],3],["ku","Kurdish",[1,2],2],["kw","Cornish",[1,2,3,4],14],["ky","Kyrgyz",[1],3],["lb","Letzeburgesch",[1,2],2],["ln","Lingala",[1,2],1],["lo","Lao",[1],3],["lt","Lithuanian",[1,2,10],15],["lv","Latvian",[1,2,0],16],["mai","Maithili",[1,2],2],["mfe","Mauritian Creole",[1,2],1],["mg","Malagasy",[1,2],1],["mi","Maori",[1,2],1],["mk","Macedonian",[1,2],17],["ml","Malayalam",[1,2],2],["mn","Mongolian",[1,2],2],["mnk","Mandinka",[0,1,2],18],["mr","Marathi",[1,2],2],["ms","Malay",[1],3],["mt","Maltese",[1,2,11,20],19],["nah","Nahuatl",[1,2],2],["nap","Neapolitan",[1,2],2],["nb","Norwegian Bokmal",[1,2],2],["ne","Nepali",[1,2],2],["nl","Dutch",[1,2],2],["nn","Norwegian Nynorsk",[1,2],2],["no","Norwegian",[1,2],2],["nso","Northern Sotho",[1,2],2],["oc","Occitan",[1,2],1],["or","Oriya",[2,1],2],["pa","Punjabi",[1,2],2],["pap","Papiamento",[1,2],2],["pl","Polish",[1,2,5],7],["pms","Piemontese",[1,2],2],["ps","Pashto",[1,2],2],["pt","Portuguese",[1,2],2],["pt_br","Brazilian Portuguese",[1,2],2],["rm","Romansh",[1,2],2],["ro","Romanian",[1,2,20],20],["ru","Russian",[1,2,5],4],["sah","Yakut",[1],3],["sco","Scots",[1,2],2],["se","Northern Sami",[1,2],2],["si","Sinhala",[1,2],2],["sk","Slovak",[1,2,5],6],["sl","Slovenian",[5,1,2,3],21],["so","Somali",[1,2],2],["son","Songhay",[1,2],2],["sq","Albanian",[1,2],2],["sr","Serbian",[1,2,5],4],["su","Sundanese",[1],3],["sv","Swedish",[1,2],2],["sw","Swahili",[1,2],2],["ta","Tamil",[1,2],2],["te","Telugu",[1,2],2],["tg","Tajik",[1,2],1],["th","Thai",[1],3],["ti","Tigrinya",[1,2],1],["tk","Turkmen",[1,2],2],["tr","Turkish",[1,2],1],["tt","Tatar",[1],3],["ug","Uyghur",[1],3],["uk","Ukrainian",[1,2,5],4],["ur","Urdu",[1,2],2],["uz","Uzbek",[1,2],1],["vi","Vietnamese",[1],3],["wa","Walloon",[1,2],1],["wo","Wolof",[1],3],["yo","Yoruba",[1,2],2],["zh","Chinese",[1],3]],Z={1:function(a){return Number(a>1)},2:function(a){return Number(1!=a)},3:function(){return 0},4:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},5:function(a){return Number(0===a?0:1==a?1:2==a?2:a%100>=3&&10>=a%100?3:a%100>=11?4:5)},6:function(a){return Number(1==a?0:a>=2&&4>=a?1:2)},7:function(a){return Number(1==a?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},8:function(a){return Number(1==a?0:2==a?1:8!=a&&11!=a?2:3)},9:function(a){return Number(a>=2)},10:function(a){return Number(1==a?0:2==a?1:7>a?2:11>a?3:4)},11:function(a){return Number(1==a||11==a?0:2==a||12==a?1:a>2&&20>a?2:3)},12:function(a){return Number(a%10!=1||a%100==11)},13:function(a){return Number(0!==a)},14:function(a){return Number(1==a?0:2==a?1:3==a?2:3)},15:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&(10>a%100||a%100>=20)?1:2)},16:function(a){return Number(a%10==1&&a%100!=11?0:0!==a?1:2)},17:function(a){return Number(1==a||a%10==1?0:1)},18:function(a){return Number(1==a?1:2)},19:function(a){return Number(1==a?0:0===a||a%100>1&&11>a%100?1:a%100>10&&20>a%100?2:3)},20:function(a){return Number(1==a?0:0===a||a%100>0&&20>a%100?1:2)},21:function(a){return Number(a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0)}},$={rules:function(){var a,b={};for(a=Y.length;a--;)b[Y[a][0]]={name:Y[a][1],numbers:Y[a][2],plurals:Z[Y[a][3]]};return b}(),addRule:function(a,b){$.rules[a]=b},setCurrentLng:function(a){if(!$.currentRule||$.currentRule.lng!==a){var b=a.split("-");$.currentRule={lng:a,rule:$.rules[b[0]]}}},needsPlural:function(a,b){var c,d=a.split("-");return c=$.currentRule&&$.currentRule.lng===a?$.currentRule.rule:$.rules[d[X.getCountyIndexOfLng(a)]],c&&c.numbers.length<=1?!1:1!==this.get(a,b)},get:function(a,b){function c(b,c){var d;if(d=$.currentRule&&$.currentRule.lng===a?$.currentRule.rule:$.rules[b]){var e;e=d.plurals(d.noAbs?c:Math.abs(c));var f=d.numbers[e];return 2===d.numbers.length&&1===d.numbers[0]&&(2===f?f=-1:1===f&&(f=1)),f}return 1===c?"1":"-1"}var d=a.split("-");return c(d[X.getCountyIndexOfLng(a)],b)}},_={},aa=function(a,b){_[a]=b},ba=function(){function a(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function b(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")}var c=function(){return c.cache.hasOwnProperty(arguments[0])||(c.cache[arguments[0]]=c.parse(arguments[0])),c.format.call(null,c.cache[arguments[0]],arguments)};return c.format=function(c,d){var e,f,g,h,i,j,k,l=1,m=c.length,n="",o=[];for(f=0;m>f;f++)if(n=a(c[f]),"string"===n)o.push(c[f]);else if("array"===n){if(h=c[f],h[2])for(e=d[l],g=0;g<h[2].length;g++){if(!e.hasOwnProperty(h[2][g]))throw ba('[sprintf] property "%s" does not exist',h[2][g]);e=e[h[2][g]]}else e=h[1]?d[h[1]]:d[l++];if(/[^s]/.test(h[8])&&"number"!=a(e))throw ba("[sprintf] expecting number but found %s",a(e));switch(h[8]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e,10);break;case"e":e=h[7]?e.toExponential(h[7]):e.toExponential();break;case"f":e=h[7]?parseFloat(e).toFixed(h[7]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&h[7]?e.substring(0,h[7]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(h[8])&&h[3]&&e>=0?"+"+e:e,j=h[4]?"0"==h[4]?"0":h[4].charAt(1):" ",k=h[6]-String(e).length,i=h[6]?b(j,k):"",o.push(h[5]?e+i:i+e)}return o.join("")},c.cache={},c.parse=function(a){for(var b=a,c=[],d=[],e=0;b;){if(null!==(c=/^[^\x25]+/.exec(b)))d.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(b)))d.push("%");else{if(null===(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)))throw"[sprintf] huh?";if(c[2]){e|=1;var f=[],g=c[2],h=[];if(null===(h=/^([a-z_][a-z_\d]*)/i.exec(g)))throw"[sprintf] huh?";for(f.push(h[1]);""!==(g=g.substring(h[0].length));)if(null!==(h=/^\.([a-z_][a-z_\d]*)/i.exec(g)))f.push(h[1]);else{if(null===(h=/^\[(\d+)\]/.exec(g)))throw"[sprintf] huh?";f.push(h[1])}c[2]=f}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";
!function(a){function b(a,b){if(!b||"function"==typeof b)return a;for(var c in b)a[c]=b[c];return a}function c(a,b,d){for(var e in b)e in a?"string"==typeof a[e]||a[e]instanceof String||"string"==typeof b[e]||b[e]instanceof String?d&&(a[e]=b[e]):c(a[e],b[e],d):a[e]=b[e];return a}function d(a,b,c){var d,e=0,f=a.length,g=void 0===f||"[object Array]"!==Object.prototype.toString.apply(a)||"function"==typeof a;if(c)if(g){for(d in a)if(b.apply(a[d],c)===!1)break}else for(;f>e&&b.apply(a[e++],c)!==!1;);else if(g){for(d in a)if(b.call(a[d],d,a[d])===!1)break}else for(;f>e&&b.call(a[e],e,a[e++])!==!1;);return a}function e(a){return"string"==typeof a?a.replace(/[&<>"'\/]/g,function(a){return V[a]}):a}function f(a){var b=function(a){if(window.XMLHttpRequest)return a(null,new XMLHttpRequest);if(window.ActiveXObject)try{return a(null,new ActiveXObject("Msxml2.XMLHTTP"))}catch(b){return a(null,new ActiveXObject("Microsoft.XMLHTTP"))}return a(new Error)},c=function(a){if("string"==typeof a)return a;var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b.join("&")},d=function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):d>127&&2048>d?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},e=function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a=d(a);var c,e,f,g,h,i,j,k="",l=0;do c=a.charCodeAt(l++),e=a.charCodeAt(l++),f=a.charCodeAt(l++),g=c>>2,h=(3&c)<<4|e>>4,i=(15&e)<<2|f>>6,j=63&f,isNaN(e)?i=j=64:isNaN(f)&&(j=64),k+=b.charAt(g)+b.charAt(h)+b.charAt(i)+b.charAt(j),c=e=f="",g=h=i=j="";while(l<a.length);return k},f=function(){for(var a=arguments[0],b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}return a},g=function(a,d,e,h){"function"==typeof e&&(h=e,e={}),e.cache=e.cache||!1,e.data=e.data||{},e.headers=e.headers||{},e.jsonp=e.jsonp||!1,e.async=void 0===e.async?!0:e.async;var i,j=f({accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},g.headers,e.headers);if(i="application/json"===j["content-type"]?JSON.stringify(e.data):c(e.data),"GET"===a){var k=[];if(i&&(k.push(i),i=null),e.cache||k.push("_="+(new Date).getTime()),e.jsonp&&(k.push("callback="+e.jsonp),k.push("jsonp="+e.jsonp)),k=k.join("&"),k.length>1&&(d+=d.indexOf("?")>-1?"&"+k:"?"+k),e.jsonp){var l=document.getElementsByTagName("head")[0],m=document.createElement("script");return m.type="text/javascript",m.src=d,void l.appendChild(m)}}b(function(b,c){if(b)return h(b);c.open(a,d,e.async);for(var f in j)j.hasOwnProperty(f)&&c.setRequestHeader(f,j[f]);c.onreadystatechange=function(){if(4===c.readyState){var a=c.responseText||"";if(!h)return;h(c.status,{text:function(){return a},json:function(){try{return JSON.parse(a)}catch(b){return Y.error("Can not parse JSON. URL: "+d),{}}}})}},c.send(i)})},h={authBasic:function(a,b){g.headers.Authorization="Basic "+e(a+":"+b)},connect:function(a,b,c){return g("CONNECT",a,b,c)},del:function(a,b,c){return g("DELETE",a,b,c)},get:function(a,b,c){return g("GET",a,b,c)},head:function(a,b,c){return g("HEAD",a,b,c)},headers:function(a){g.headers=a||{}},isAllowed:function(a,b,c){this.options(a,function(a,d){c(-1!==d.text().indexOf(b))})},options:function(a,b,c){return g("OPTIONS",a,b,c)},patch:function(a,b,c){return g("PATCH",a,b,c)},post:function(a,b,c){return g("POST",a,b,c)},put:function(a,b,c){return g("PUT",a,b,c)},trace:function(a,b,c){return g("TRACE",a,b,c)}},i=a.type?a.type.toLowerCase():"get";h[i](a.url,a,function(b,c){200===b||0===b&&c.text()?a.success(c.json(),b,null):a.error(c.text(),b,null)})}function g(a,b){"function"==typeof a&&(b=a,a={}),a=a||{},Y.extend(U,a),delete U.fixLng,U.functions&&(delete U.functions,Y.extend(Y,a.functions)),"string"==typeof U.ns&&(U.ns={namespaces:[U.ns],defaultNs:U.ns}),"string"==typeof U.fallbackNS&&(U.fallbackNS=[U.fallbackNS]),("string"==typeof U.fallbackLng||"boolean"==typeof U.fallbackLng)&&(U.fallbackLng=[U.fallbackLng]),U.interpolationPrefixEscaped=Y.regexEscape(U.interpolationPrefix),U.interpolationSuffixEscaped=Y.regexEscape(U.interpolationSuffix),U.lng||(U.lng=Y.detectLanguage()),Q=Y.toLanguages(U.lng),L=Q[0],Y.log("currentLng set to: "+L),U.useCookie&&Y.cookie.read(U.cookieName)!==L&&Y.cookie.create(U.cookieName,L,U.cookieExpirationTime,U.cookieDomain),U.detectLngFromLocalStorage&&"undefined"!=typeof document&&window.localStorage&&Y.localStorage.setItem("i18next_lng",L);var c=F;a.fixLng&&(c=function(a,b){return b=b||{},b.lng=b.lng||c.lng,F(a,b)},c.lng=L),_.setCurrentLng(L),M&&U.setJqueryExt?x&&x():y&&y();var d;if(M&&M.Deferred&&(d=M.Deferred()),!U.resStore){var e=Y.toLanguages(U.lng);"string"==typeof U.preload&&(U.preload=[U.preload]);for(var f=0,g=U.preload.length;g>f;f++)for(var h=Y.toLanguages(U.preload[f]),i=0,j=h.length;j>i;i++)e.indexOf(h[i])<0&&e.push(h[i]);return N.sync.load(e,U,function(a,e){O=e,R=!0,b&&b(a,c),d&&(a?d.reject:d.resolve)(a||c)}),d?d.promise():void 0}return O=U.resStore,R=!0,b&&b(null,c),d&&d.resolve(c),d?d.promise():void 0}function h(){return R}function i(a,b){"string"==typeof a&&(a=[a]);for(var c=0,d=a.length;d>c;c++)U.preload.indexOf(a[c])<0&&U.preload.push(a[c]);return g(b)}function j(a,b,c,d,e){"string"!=typeof b?(c=b,b=U.ns.defaultNs):U.ns.namespaces.indexOf(b)<0&&U.ns.namespaces.push(b),O[a]=O[a]||{},O[a][b]=O[a][b]||{},d?Y.deepExtend(O[a][b],c,e):Y.extend(O[a][b],c),U.useLocalStorage&&S._storeLocal(O)}function k(a,b){"string"!=typeof b&&(b=U.ns.defaultNs),O[a]=O[a]||{};var c=O[a][b]||{},d=!1;for(var e in c)c.hasOwnProperty(e)&&(d=!0);return d}function l(a,b){return"string"!=typeof b&&(b=U.ns.defaultNs),O[a]=O[a]||{},Y.extend({},O[a][b])}function m(a,b){"string"!=typeof b&&(b=U.ns.defaultNs),O[a]=O[a]||{},O[a][b]={},U.useLocalStorage&&S._storeLocal(O)}function n(a,b,c,d){"string"!=typeof b?(resource=b,b=U.ns.defaultNs):U.ns.namespaces.indexOf(b)<0&&U.ns.namespaces.push(b),O[a]=O[a]||{},O[a][b]=O[a][b]||{};for(var e=c.split(U.keyseparator),f=0,g=O[a][b];e[f];)f==e.length-1?g[e[f]]=d:(null==g[e[f]]&&(g[e[f]]={}),g=g[e[f]]),f++;U.useLocalStorage&&S._storeLocal(O)}function o(a,b,c){"string"!=typeof b?(c=b,b=U.ns.defaultNs):U.ns.namespaces.indexOf(b)<0&&U.ns.namespaces.push(b);for(var d in c)"string"==typeof c[d]&&n(a,b,d,c[d])}function p(a){U.ns.defaultNs=a}function q(a,b){r([a],b)}function r(a,b){var c={dynamicLoad:U.dynamicLoad,resGetPath:U.resGetPath,getAsync:U.getAsync,customLoad:U.customLoad,ns:{namespaces:a,defaultNs:""}},d=Y.toLanguages(U.lng);"string"==typeof U.preload&&(U.preload=[U.preload]);for(var e=0,f=U.preload.length;f>e;e++)for(var g=Y.toLanguages(U.preload[e]),h=0,i=g.length;i>h;h++)d.indexOf(g[h])<0&&d.push(g[h]);for(var j=[],k=0,l=d.length;l>k;k++){var m=!1,n=O[d[k]];if(n)for(var o=0,p=a.length;p>o;o++)n[a[o]]||(m=!0);else m=!0;m&&j.push(d[k])}j.length?N.sync._fetch(j,c,function(c,d){var e=a.length*j.length;Y.each(a,function(a,c){U.ns.namespaces.indexOf(c)<0&&U.ns.namespaces.push(c),Y.each(j,function(a,f){O[f]=O[f]||{},O[f][c]=d[f][c],e--,0===e&&b&&(U.useLocalStorage&&N.sync._storeLocal(O),b())})})}):b&&b()}function s(a,b,c){return"function"==typeof b?(c=b,b={}):b||(b={}),b.lng=a,g(b,c)}function t(){return L}function u(){var a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"];return a.some(function(a){return new RegExp("^"+a).test(L)})?"rtl":"ltr"}function v(a){O={},s(L,a)}function w(){window.i18next=window.i18n,conflictReference?window.i18n=conflictReference:delete window.i18n}function x(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2));var f;if("html"===d)f=U.defaultValueFromContent?M.extend({defaultValue:a.html()},c):c,a.html(M.t(b,f));else if("text"===d)f=U.defaultValueFromContent?M.extend({defaultValue:a.text()},c):c,a.text(M.t(b,f));else if("prepend"===d)f=U.defaultValueFromContent?M.extend({defaultValue:a.html()},c):c,a.prepend(M.t(b,f));else if("append"===d)f=U.defaultValueFromContent?M.extend({defaultValue:a.html()},c):c,a.append(M.t(b,f));else if(0===d.indexOf("data-")){var g=d.substr("data-".length);f=U.defaultValueFromContent?M.extend({defaultValue:a.data(g)},c):c;var h=M.t(b,f);a.data(g,h),a.attr(d,h)}else f=U.defaultValueFromContent?M.extend({defaultValue:a.attr(d)},c):c,a.attr(d,M.t(b,f))}}function b(b,c){var d=b.attr(U.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.text()||b.val()),d){var e=b,f=b.data("i18n-target");if(f&&(e=b.find(f)||b),c||U.useDataAttrOptions!==!0||(c=b.data("i18n-options")),c=c||{},d.indexOf(";")>=0){var g=d.split(";");M.each(g,function(b,d){""!==d&&a(e,d,c)})}else a(e,d,c);if(U.useDataAttrOptions===!0){var h=M.extend({lng:"non",lngs:[],_origLng:"non"},c);delete h.lng,delete h.lngs,delete h._origLng,b.data("i18n-options",h)}}}M.t=M.t||F,M.fn.i18n=function(a){return this.each(function(){b(M(this),a);var c=M(this).find("["+U.selectorAttr+"]");c.each(function(){b(M(this),a)})})}}function y(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2)),"html"===d?a.innerHTML=F(b,c):"text"===d?a.textContent=F(b,c):"prepend"===d?a.insertAdjacentHTML(F(b,c),"afterbegin"):"append"===d?a.insertAdjacentHTML(F(b,c),"beforeend"):a.setAttribute(d,F(b,c))}}function b(b,c){var d=b.getAttribute(U.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.textContent||b.value),d){var e=b,f=b.getAttribute("i18n-target");if(f&&(e=b.querySelector(f)||b),d.indexOf(";")>=0)for(var g=d.split(";"),h=0,i=g.length;i>h;h++)""!==g[h]&&a(e,g[h],c);else a(e,d,c)}}N.translateObject=function(a,c){for(var d=a.querySelectorAll("["+U.selectorAttr+"]"),e=0,f=d.length;f>e;e++)b(d[e],c)}}function z(a,b,c,d){if(!a)return a;if(d=d||b,a.indexOf(d.interpolationPrefix||U.interpolationPrefix)<0)return a;var e=d.interpolationPrefix?Y.regexEscape(d.interpolationPrefix):U.interpolationPrefixEscaped,f=d.interpolationSuffix?Y.regexEscape(d.interpolationSuffix):U.interpolationSuffixEscaped,g=d.keyseparator||U.keyseparator,h=b.replace&&"object"==typeof b.replace?b.replace:b,i=new RegExp([e,"(.+?)","(HTML)?",f].join(""),"g"),j=d.escapeInterpolation||U.escapeInterpolation;return a.replace(i,function(a,b,c){for(var d=h,e=b;e.indexOf(g)>=0&&"object"==typeof d&&d;){var f=e.slice(0,e.indexOf(g));e=e.slice(e.indexOf(g)+1),d=d[f]}if(d&&"object"==typeof d&&d.hasOwnProperty(e)){{d[e]}return j&&!c?Y.escape(d[e]):d[e]}return a})}function A(a,b){var c=",",d="{",e="}",f=Y.extend({},b);for(delete f.postProcess;-1!=a.indexOf(U.reusePrefix)&&(P++,!(P>U.maxRecursion));){var g=a.lastIndexOf(U.reusePrefix),h=a.indexOf(U.reuseSuffix,g)+U.reuseSuffix.length,i=a.substring(g,h),j=i.replace(U.reusePrefix,"").replace(U.reuseSuffix,"");if(g>=h)return Y.error("there is an missing closing in following translation value",a),"";if(-1!=j.indexOf(c)){var k=j.indexOf(c);if(-1!=j.indexOf(d,k)&&-1!=j.indexOf(e,k)){var l=j.indexOf(d,k),m=j.indexOf(e,l)+e.length;try{f=Y.extend(f,JSON.parse(j.substring(l,m))),j=j.substring(0,k)}catch(n){}}}var o=I(j,f);a=a.replace(i,Y.regexReplacementEscape(o))}return a}function B(a){return a.context&&("string"==typeof a.context||"number"==typeof a.context)}function C(a){return void 0!==a.count&&"string"!=typeof a.count}function D(a){return void 0!==a.indefinite_article&&"string"!=typeof a.indefinite_article&&a.indefinite_article}function E(a,b){b=b||{};var c=G(a,b),d=J(a,b);return void 0!==d||d===c}function F(a,b){return b=b||{},R?(P=0,I.apply(null,arguments)):(Y.log("i18next not finished initialization. you might have called t function before loading resources finished."),b.defaultValue||"")}function G(a,b){return void 0!==b.defaultValue?b.defaultValue:a}function H(){for(var a=[],b=1;b<arguments.length;b++)a.push(arguments[b]);return{postProcess:"sprintf",sprintf:a}}function I(a,b){if(b&&"object"!=typeof b?"sprintf"===U.shortcutFunction?b=H.apply(null,arguments):"defaultValue"===U.shortcutFunction&&(b={defaultValue:b}):b=b||{},"object"==typeof U.defaultVariables&&(b=Y.extend({},U.defaultVariables,b)),void 0===a||null===a||""===a)return"";"number"==typeof a&&(a=String(a)),"string"==typeof a&&(a=[a]);var c=a[0];if(a.length>1)for(var d=0;d<a.length&&(c=a[d],!E(c,b));d++);var e,f=G(c,b),g=J(c,b),h=b.nsseparator||U.nsseparator,i=b.lng?Y.toLanguages(b.lng,b.fallbackLng):Q,j=b.ns||U.ns.defaultNs;c.indexOf(h)>-1&&(e=c.split(h),j=e[0],c=e[1]),void 0===g&&U.sendMissing&&"function"==typeof U.missingKeyHandler&&(b.lng?U.missingKeyHandler(i[0],j,c,f,i):U.missingKeyHandler(U.lng,j,c,f,i));var k;k="string"==typeof U.postProcess&&""!==U.postProcess?[U.postProcess]:"array"==typeof U.postProcess||"object"==typeof U.postProcess?U.postProcess:[],"string"==typeof b.postProcess&&""!==b.postProcess?k=k.concat([b.postProcess]):("array"==typeof b.postProcess||"object"==typeof b.postProcess)&&(k=k.concat(b.postProcess)),void 0!==g&&k.length&&k.forEach(function(a){aa[a]&&(g=aa[a](g,c,b))});var l=f;return f.indexOf(h)>-1&&(e=f.split(h),l=e[1]),l===c&&U.parseMissingKey&&(f=U.parseMissingKey(f)),void 0===g&&(f=z(f,b),f=A(f,b),k.length&&(g=G(c,b),k.forEach(function(a){aa[a]&&(g=aa[a](g,c,b))}))),void 0!==g?g:f}function J(a,b){b=b||{};var c,d,e=G(a,b),f=Q;if(!O)return e;if("cimode"===f[0].toLowerCase())return e;if(b.lngs&&(f=b.lngs),b.lng&&(f=Y.toLanguages(b.lng,b.fallbackLng),!O[f[0]])){var g=U.getAsync;U.getAsync=!1,N.sync.load(f,U,function(a,b){Y.extend(O,b),U.getAsync=g})}var h=b.ns||U.ns.defaultNs,i=b.nsseparator||U.nsseparator;if(a.indexOf(i)>-1){var j=a.split(i);h=j[0],a=j[1]}if(B(b)){c=Y.extend({},b),delete c.context,c.defaultValue=U.contextNotFound;var k=h+i+a+"_"+b.context;if(d=F(k,c),d!=U.contextNotFound)return z(d,{context:b.context})}if(C(b,f[0])){c=Y.extend({lngs:[f[0]]},b),delete c.count,c._origLng=c._origLng||c.lng||f[0],delete c.lng,c.defaultValue=U.pluralNotFound;var l;if(_.needsPlural(f[0],b.count)){l=h+i+a+U.pluralSuffix;var m=_.get(f[0],b.count);m>=0?l=l+"_"+m:1===m&&(l=h+i+a)}else l=h+i+a;if(d=F(l,c),d!=U.pluralNotFound)return z(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});if(!(f.length>1))return c.lng=c._origLng,delete c._origLng,d=F(h+i+a,c),z(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});var n=f.slice();if(n.shift(),b=Y.extend(b,{lngs:n}),b._origLng=c._origLng,delete b.lng,d=F(h+i+a,b),d!=U.pluralNotFound)return d}if(D(b)){var o=Y.extend({},b);delete o.indefinite_article,o.defaultValue=U.indefiniteNotFound;var p=h+i+a+(b.count&&!C(b,f[0])||!b.count?U.indefiniteSuffix:"");if(d=F(p,o),d!=U.indefiniteNotFound)return d}for(var q,r=b.keyseparator||U.keyseparator,s=a.split(r),t=0,u=f.length;u>t&&void 0===q;t++){for(var v=f[t],w=0,x=O[v]&&O[v][h];s[w];)x=x&&x[s[w]],w++;if(void 0!==x&&(!U.showKeyIfEmpty||""!==x)){var y=Object.prototype.toString.apply(x);if("string"==typeof x)x=z(x,b),x=A(x,b);else if("[object Array]"!==y||U.returnObjectTrees||b.returnObjectTrees){if(null===x&&U.fallbackOnNull===!0)x=void 0;else if(null!==x)if(U.returnObjectTrees||b.returnObjectTrees){if("[object Number]"!==y&&"[object Function]"!==y&&"[object RegExp]"!==y){var E="[object Array]"===y?[]:{};Y.each(x,function(c){E[c]=I(h+i+a+r+c,b)}),x=E}}else U.objectTreeKeyHandler&&"function"==typeof U.objectTreeKeyHandler?x=U.objectTreeKeyHandler(a,x,v,h,b):(x="key '"+h+":"+a+" ("+v+")' returned an object instead of string.",Y.log(x))}else x=x.join("\n"),x=z(x,b),x=A(x,b);"string"==typeof x&&""===x.trim()&&U.fallbackOnEmpty===!0&&(x=void 0),q=x}}if(void 0===q&&!b.isFallbackLookup&&(U.fallbackToDefaultNS===!0||U.fallbackNS&&U.fallbackNS.length>0)){if(b.isFallbackLookup=!0,U.fallbackNS.length){for(var H=0,K=U.fallbackNS.length;K>H;H++)if(q=J(U.fallbackNS[H]+i+a,b),q||""===q&&U.fallbackOnEmpty===!1){var L=q.indexOf(i)>-1?q.split(i)[1]:q,M=e.indexOf(i)>-1?e.split(i)[1]:e;if(L!==M)break}}else b.ns=U.ns.defaultNs,q=J(a,b);b.isFallbackLookup=!1}return q}function K(){var a,b=U.lngWhitelist||[],c=[];if("undefined"!=typeof window&&!function(){for(var a=window.location.search.substring(1),b=a.split("&"),d=0;d<b.length;d++){var e=b[d].indexOf("=");if(e>0){var f=b[d].substring(0,e);f==U.detectLngQS&&c.push(b[d].substring(e+1))}}}(),U.useCookie&&"undefined"!=typeof document){var d=Y.cookie.read(U.cookieName);d&&c.push(d)}if(U.detectLngFromLocalStorage&&"undefined"!=typeof window&&window.localStorage){var e=Y.localStorage.getItem("i18next_lng");e&&c.push(e)}if("undefined"!=typeof navigator){if(navigator.languages)for(var f=0;f<navigator.languages.length;f++)c.push(navigator.languages[f]);navigator.userLanguage&&c.push(navigator.userLanguage),navigator.language&&c.push(navigator.language)}return function(){for(var d=0;d<c.length;d++){var e=c[d];if(e.indexOf("-")>-1){var f=e.split("-");e=U.lowerCaseLng?f[0].toLowerCase()+"-"+f[1].toLowerCase():f[0].toLowerCase()+"-"+f[1].toUpperCase()}if(0===b.length||b.indexOf(e)>-1){a=e;break}}}(),a||(a=U.fallbackLng[0]),a}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;if(arguments.length>0&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(var e=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(e in b&&b[e]===a)return e;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=c;arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d))));for(var e=d>=0?Math.min(d,c-1):c-Math.abs(d);e>=0;e--)if(e in b&&b[e]===a)return e;return-1}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var L,M=a.jQuery||a.Zepto,N={},O={},P=0,Q=[],R=!1,S={};if("undefined"!=typeof module&&module.exports){if(module.exports=N,!M)try{M=require("jquery")}catch(T){}}else a.i18n=a.i18n||N;M&&(M.i18n=M.i18n||N),S={load:function(a,b,c){b.useLocalStorage?S._loadLocal(a,b,function(d,e){for(var f=[],g=0,h=a.length;h>g;g++)e[a[g]]||f.push(a[g]);f.length>0?S._fetch(f,b,function(a,b){Y.extend(e,b),S._storeLocal(b),c(a,e)}):c(d,e)}):S._fetch(a,b,function(a,b){c(a,b)})},_loadLocal:function(a,b,c){var d={},e=(new Date).getTime();if(window.localStorage){var f=a.length;Y.each(a,function(a,g){var h=Y.localStorage.getItem("res_"+g);h&&(h=JSON.parse(h),h.i18nStamp&&h.i18nStamp+b.localStorageExpirationTime>e&&(d[g]=h)),f--,0===f&&c(null,d)})}},_storeLocal:function(a){if(window.localStorage)for(var b in a)a[b].i18nStamp=(new Date).getTime(),Y.localStorage.setItem("res_"+b,JSON.stringify(a[b]))},_fetch:function(a,b,c){var d=b.ns,e={};if(b.dynamicLoad){var f=function(a,b){c(a,b)};if("function"==typeof b.customLoad)b.customLoad(a,d.namespaces,b,f);else{var g=z(b.resGetPath,{lng:a.join("+"),ns:d.namespaces.join("+")});Y.ajax({url:g,cache:b.cache,success:function(a){Y.log("loaded: "+g),f(null,a)},error:function(a,b,c){Y.log("failed loading: "+g),f("failed loading resource.json error: "+c)},dataType:"json",async:b.getAsync,timeout:b.ajaxTimeout})}}else{var h,i=d.namespaces.length*a.length;Y.each(d.namespaces,function(d,f){Y.each(a,function(a,d){var g=function(a,b){a&&(h=h||[],h.push(a)),e[d]=e[d]||{},e[d][f]=b,i--,0===i&&c(h,e)};"function"==typeof b.customLoad?b.customLoad(d,f,b,g):S._fetchOne(d,f,b,g)})})}},_fetchOne:function(a,b,c,d){var e=z(c.resGetPath,{lng:a,ns:b});Y.ajax({url:e,cache:c.cache,success:function(a){Y.log("loaded: "+e),d(null,a)},error:function(a,b,c){if(b&&200==b||a&&a.status&&200==a.status)Y.error("There is a typo in: "+e);else if(b&&404==b||a&&a.status&&404==a.status)Y.log("Does not exist: "+e);else{var f=b?b:a&&a.status?a.status:null;Y.log(f+" when loading "+e)}d(c,{})},dataType:"json",async:c.getAsync,timeout:c.ajaxTimeout,headers:c.headers})},postMissing:function(a,b,c,d,e){var f={};f[c]=d;var g=[];if("fallback"===U.sendMissingTo&&U.fallbackLng[0]!==!1)for(var h=0;h<U.fallbackLng.length;h++)g.push({lng:U.fallbackLng[h],url:z(U.resPostPath,{lng:U.fallbackLng[h],ns:b})});else if("current"===U.sendMissingTo||"fallback"===U.sendMissingTo&&U.fallbackLng[0]===!1)g.push({lng:a,url:z(U.resPostPath,{lng:a,ns:b})});else if("all"===U.sendMissingTo)for(var h=0,i=e.length;i>h;h++)g.push({lng:e[h],url:z(U.resPostPath,{lng:e[h],ns:b})});for(var j=0,k=g.length;k>j;j++){var l=g[j];Y.ajax({url:l.url,type:U.sendType,data:f,success:function(){Y.log("posted missing key '"+c+"' to: "+l.url);for(var a=c.split("."),e=0,f=O[l.lng][b];a[e];)f=f[a[e]]=e===a.length-1?d:f[a[e]]||{},e++},error:function(){Y.log("failed posting missing key '"+c+"' to: "+l.url)},dataType:"json",async:U.postAsync,timeout:U.ajaxTimeout})}},reload:v};var U={lng:void 0,load:"all",preload:[],lowerCaseLng:!1,returnObjectTrees:!1,fallbackLng:["dev"],fallbackNS:[],detectLngQS:"setLng",detectLngFromLocalStorage:!1,ns:{namespaces:["translation"],defaultNs:"translation"},fallbackOnNull:!0,fallbackOnEmpty:!1,fallbackToDefaultNS:!1,showKeyIfEmpty:!1,nsseparator:":",keyseparator:".",selectorAttr:"data-i18n",debug:!1,resGetPath:"locales/__lng__/__ns__.json",resPostPath:"locales/add/__lng__/__ns__",getAsync:!0,postAsync:!0,resStore:void 0,useLocalStorage:!1,localStorageExpirationTime:6048e5,dynamicLoad:!1,sendMissing:!1,sendMissingTo:"fallback",sendType:"POST",interpolationPrefix:"__",interpolationSuffix:"__",defaultVariables:!1,reusePrefix:"$t(",reuseSuffix:")",pluralSuffix:"_plural",pluralNotFound:["plural_not_found",Math.random()].join(""),contextNotFound:["context_not_found",Math.random()].join(""),escapeInterpolation:!1,indefiniteSuffix:"_indefinite",indefiniteNotFound:["indefinite_not_found",Math.random()].join(""),setJqueryExt:!0,defaultValueFromContent:!0,useDataAttrOptions:!1,cookieExpirationTime:void 0,useCookie:!0,cookieName:"i18next",cookieDomain:void 0,objectTreeKeyHandler:void 0,postProcess:void 0,parseMissingKey:void 0,missingKeyHandler:S.postMissing,ajaxTimeout:0,shortcutFunction:"sprintf"},V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},W={create:function(a,b,c,d){var e;if(c){var f=new Date;f.setTime(f.getTime()+60*c*1e3),e="; expires="+f.toGMTString()}else e="";d=d?"domain="+d+";":"",document.cookie=a+"="+b+e+";"+d+"path=/"},read:function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(b))return e.substring(b.length,e.length)}return null},remove:function(a){this.create(a,"",-1)}},X={create:function(){},read:function(){return null},remove:function(){}},Y={extend:M?M.extend:b,deepExtend:c,each:M?M.each:d,ajax:M?M.ajax:"undefined"!=typeof document?f:function(){},cookie:"undefined"!=typeof document?W:X,detectLanguage:K,escape:e,log:function(a){U.debug&&"undefined"!=typeof console&&console.log(a)},error:function(a){"undefined"!=typeof console&&console.error(a)},getCountyIndexOfLng:function(a){var b=0;return("nb-NO"===a||"nn-NO"===a||"nb-no"===a||"nn-no"===a)&&(b=1),b},toLanguages:function(a,b){function c(a){var b=a;if("string"==typeof a&&a.indexOf("-")>-1){var c=a.split("-");b=U.lowerCaseLng?c[0].toLowerCase()+"-"+c[1].toLowerCase():c[0].toLowerCase()+"-"+c[1].toUpperCase()}else b=U.lowerCaseLng?a.toLowerCase():a;return b}var d=this.log;b=b||U.fallbackLng,"string"==typeof b&&(b=[b]);var e=[],f=U.lngWhitelist||!1,g=function(a){!f||f.indexOf(a)>-1?e.push(a):d("rejecting non-whitelisted language: "+a)};if("string"==typeof a&&a.indexOf("-")>-1){var h=a.split("-");"unspecific"!==U.load&&g(c(a)),"current"!==U.load&&g(c(h[this.getCountyIndexOfLng(a)]))}else g(c(a));for(var i=0;i<b.length;i++)-1===e.indexOf(b[i])&&b[i]&&e.push(c(b[i]));return e},regexEscape:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},regexReplacementEscape:function(a){return"string"==typeof a?a.replace(/\$/g,"$$$$"):a},localStorage:{setItem:function(a,b){if(window.localStorage)try{window.localStorage.setItem(a,b)}catch(c){Y.log('failed to set value for key "'+a+'" to localStorage.')}},getItem:function(a,b){if(window.localStorage)try{return window.localStorage.getItem(a,b)}catch(c){return void Y.log('failed to get value for key "'+a+'" from localStorage.')}}}};Y.applyReplacement=z;var Z=[["ach","Acholi",[1,2],1],["af","Afrikaans",[1,2],2],["ak","Akan",[1,2],1],["am","Amharic",[1,2],1],["an","Aragonese",[1,2],2],["ar","Arabic",[0,1,2,3,11,100],5],["arn","Mapudungun",[1,2],1],["ast","Asturian",[1,2],2],["ay","Aymará",[1],3],["az","Azerbaijani",[1,2],2],["be","Belarusian",[1,2,5],4],["bg","Bulgarian",[1,2],2],["bn","Bengali",[1,2],2],["bo","Tibetan",[1],3],["br","Breton",[1,2],1],["bs","Bosnian",[1,2,5],4],["ca","Catalan",[1,2],2],["cgg","Chiga",[1],3],["cs","Czech",[1,2,5],6],["csb","Kashubian",[1,2,5],7],["cy","Welsh",[1,2,3,8],8],["da","Danish",[1,2],2],["de","German",[1,2],2],["dev","Development Fallback",[1,2],2],["dz","Dzongkha",[1],3],["el","Greek",[1,2],2],["en","English",[1,2],2],["eo","Esperanto",[1,2],2],["es","Spanish",[1,2],2],["es_ar","Argentinean Spanish",[1,2],2],["et","Estonian",[1,2],2],["eu","Basque",[1,2],2],["fa","Persian",[1],3],["fi","Finnish",[1,2],2],["fil","Filipino",[1,2],1],["fo","Faroese",[1,2],2],["fr","French",[1,2],9],["fur","Friulian",[1,2],2],["fy","Frisian",[1,2],2],["ga","Irish",[1,2,3,7,11],10],["gd","Scottish Gaelic",[1,2,3,20],11],["gl","Galician",[1,2],2],["gu","Gujarati",[1,2],2],["gun","Gun",[1,2],1],["ha","Hausa",[1,2],2],["he","Hebrew",[1,2],2],["hi","Hindi",[1,2],2],["hr","Croatian",[1,2,5],4],["hu","Hungarian",[1,2],2],["hy","Armenian",[1,2],2],["ia","Interlingua",[1,2],2],["id","Indonesian",[1],3],["is","Icelandic",[1,2],12],["it","Italian",[1,2],2],["ja","Japanese",[1],3],["jbo","Lojban",[1],3],["jv","Javanese",[0,1],13],["ka","Georgian",[1],3],["kk","Kazakh",[1],3],["km","Khmer",[1],3],["kn","Kannada",[1,2],2],["ko","Korean",[1],3],["ku","Kurdish",[1,2],2],["kw","Cornish",[1,2,3,4],14],["ky","Kyrgyz",[1],3],["lb","Letzeburgesch",[1,2],2],["ln","Lingala",[1,2],1],["lo","Lao",[1],3],["lt","Lithuanian",[1,2,10],15],["lv","Latvian",[1,2,0],16],["mai","Maithili",[1,2],2],["mfe","Mauritian Creole",[1,2],1],["mg","Malagasy",[1,2],1],["mi","Maori",[1,2],1],["mk","Macedonian",[1,2],17],["ml","Malayalam",[1,2],2],["mn","Mongolian",[1,2],2],["mnk","Mandinka",[0,1,2],18],["mr","Marathi",[1,2],2],["ms","Malay",[1],3],["mt","Maltese",[1,2,11,20],19],["nah","Nahuatl",[1,2],2],["nap","Neapolitan",[1,2],2],["nb","Norwegian Bokmal",[1,2],2],["ne","Nepali",[1,2],2],["nl","Dutch",[1,2],2],["nn","Norwegian Nynorsk",[1,2],2],["no","Norwegian",[1,2],2],["nso","Northern Sotho",[1,2],2],["oc","Occitan",[1,2],1],["or","Oriya",[2,1],2],["pa","Punjabi",[1,2],2],["pap","Papiamento",[1,2],2],["pl","Polish",[1,2,5],7],["pms","Piemontese",[1,2],2],["ps","Pashto",[1,2],2],["pt","Portuguese",[1,2],2],["pt_br","Brazilian Portuguese",[1,2],2],["rm","Romansh",[1,2],2],["ro","Romanian",[1,2,20],20],["ru","Russian",[1,2,5],4],["sah","Yakut",[1],3],["sco","Scots",[1,2],2],["se","Northern Sami",[1,2],2],["si","Sinhala",[1,2],2],["sk","Slovak",[1,2,5],6],["sl","Slovenian",[5,1,2,3],21],["so","Somali",[1,2],2],["son","Songhay",[1,2],2],["sq","Albanian",[1,2],2],["sr","Serbian",[1,2,5],4],["su","Sundanese",[1],3],["sv","Swedish",[1,2],2],["sw","Swahili",[1,2],2],["ta","Tamil",[1,2],2],["te","Telugu",[1,2],2],["tg","Tajik",[1,2],1],["th","Thai",[1],3],["ti","Tigrinya",[1,2],1],["tk","Turkmen",[1,2],2],["tr","Turkish",[1,2],1],["tt","Tatar",[1],3],["ug","Uyghur",[1],3],["uk","Ukrainian",[1,2,5],4],["ur","Urdu",[1,2],2],["uz","Uzbek",[1,2],1],["vi","Vietnamese",[1],3],["wa","Walloon",[1,2],1],["wo","Wolof",[1],3],["yo","Yoruba",[1,2],2],["zh","Chinese",[1],3]],$={1:function(a){return Number(a>1)},2:function(a){return Number(1!=a)},3:function(){return 0},4:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},5:function(a){return Number(0===a?0:1==a?1:2==a?2:a%100>=3&&10>=a%100?3:a%100>=11?4:5)},6:function(a){return Number(1==a?0:a>=2&&4>=a?1:2)},7:function(a){return Number(1==a?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},8:function(a){return Number(1==a?0:2==a?1:8!=a&&11!=a?2:3)},9:function(a){return Number(a>=2)},10:function(a){return Number(1==a?0:2==a?1:7>a?2:11>a?3:4)},11:function(a){return Number(1==a||11==a?0:2==a||12==a?1:a>2&&20>a?2:3)},12:function(a){return Number(a%10!=1||a%100==11)},13:function(a){return Number(0!==a)},14:function(a){return Number(1==a?0:2==a?1:3==a?2:3)},15:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&(10>a%100||a%100>=20)?1:2)},16:function(a){return Number(a%10==1&&a%100!=11?0:0!==a?1:2)},17:function(a){return Number(1==a||a%10==1?0:1)},18:function(a){return Number(0==a?0:1==a?1:2)},19:function(a){return Number(1==a?0:0===a||a%100>1&&11>a%100?1:a%100>10&&20>a%100?2:3)},20:function(a){return Number(1==a?0:0===a||a%100>0&&20>a%100?1:2)},21:function(a){return Number(a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0)}},_={rules:function(){var a,b={};for(a=Z.length;a--;)b[Z[a][0]]={name:Z[a][1],numbers:Z[a][2],plurals:$[Z[a][3]]};return b}(),addRule:function(a,b){_.rules[a]=b},setCurrentLng:function(a){if(!_.currentRule||_.currentRule.lng!==a){var b=a.split("-");_.currentRule={lng:a,rule:_.rules[b[0]]}}},needsPlural:function(a,b){var c,d=a.split("-");return c=_.currentRule&&_.currentRule.lng===a?_.currentRule.rule:_.rules[d[Y.getCountyIndexOfLng(a)]],c&&c.numbers.length<=1?!1:1!==this.get(a,b)},get:function(a,b){function c(b,c){var d;if(d=_.currentRule&&_.currentRule.lng===a?_.currentRule.rule:_.rules[b]){var e;e=d.plurals(d.noAbs?c:Math.abs(c));var f=d.numbers[e];return 2===d.numbers.length&&1===d.numbers[0]&&(2===f?f=-1:1===f&&(f=1)),f}return 1===c?"1":"-1"}var d=a.split("-");return c(d[Y.getCountyIndexOfLng(a)],b)}},aa={},ba=function(a,b){aa[a]=b},ca=function(){function a(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function b(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")}var c=function(){return c.cache.hasOwnProperty(arguments[0])||(c.cache[arguments[0]]=c.parse(arguments[0])),c.format.call(null,c.cache[arguments[0]],arguments)};return c.format=function(c,d){var e,f,g,h,i,j,k,l=1,m=c.length,n="",o=[];for(f=0;m>f;f++)if(n=a(c[f]),"string"===n)o.push(c[f]);else if("array"===n){if(h=c[f],h[2])for(e=d[l],g=0;g<h[2].length;g++){if(!e.hasOwnProperty(h[2][g]))throw ca('[sprintf] property "%s" does not exist',h[2][g]);e=e[h[2][g]]}else e=h[1]?d[h[1]]:d[l++];if(/[^s]/.test(h[8])&&"number"!=a(e))throw ca("[sprintf] expecting number but found %s",a(e));switch(h[8]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e,10);break;case"e":e=h[7]?e.toExponential(h[7]):e.toExponential();break;case"f":e=h[7]?parseFloat(e).toFixed(h[7]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&h[7]?e.substring(0,h[7]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(h[8])&&h[3]&&e>=0?"+"+e:e,j=h[4]?"0"==h[4]?"0":h[4].charAt(1):" ",k=h[6]-String(e).length,i=h[6]?b(j,k):"",o.push(h[5]?e+i:i+e)}return o.join("")},c.cache={},c.parse=function(a){for(var b=a,c=[],d=[],e=0;b;){if(null!==(c=/^[^\x25]+/.exec(b)))d.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(b)))d.push("%");else{if(null===(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)))throw"[sprintf] huh?";
d.push(c)}b=b.substring(c[0].length)}return d},c}(),ca=function(a,b){return b.unshift(a),ba.apply(null,b)};aa("sprintf",function(a,b,c){return c.sprintf?"[object Array]"===Object.prototype.toString.apply(c.sprintf)?ca(a,c.sprintf):"object"==typeof c.sprintf?ba(a,c.sprintf):a:a}),M.init=g,M.isInitialized=h,M.setLng=s,M.preload=i,M.addResourceBundle=j,M.hasResourceBundle=k,M.getResourceBundle=l,M.addResource=n,M.addResources=o,M.removeResourceBundle=m,M.loadNamespace=q,M.loadNamespaces=r,M.setDefaultNamespace=p,M.t=E,M.translate=E,M.exists=D,M.detectLanguage=X.detectLanguage,M.pluralExtensions=$,M.sync=R,M.functions=X,M.lng=t,M.addPostProcessor=aa,M.applyReplacement=X.applyReplacement,M.options=T,M.noConflict=v}("undefined"==typeof exports?window:exports);
if(c[2]){e|=1;var f=[],g=c[2],h=[];if(null===(h=/^([a-z_][a-z_\d]*)/i.exec(g)))throw"[sprintf] huh?";for(f.push(h[1]);""!==(g=g.substring(h[0].length));)if(null!==(h=/^\.([a-z_][a-z_\d]*)/i.exec(g)))f.push(h[1]);else{if(null===(h=/^\[(\d+)\]/.exec(g)))throw"[sprintf] huh?";f.push(h[1])}c[2]=f}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";d.push(c)}b=b.substring(c[0].length)}return d},c}(),da=function(a,b){return b.unshift(a),ca.apply(null,b)};ba("sprintf",function(a,b,c){return c.sprintf?"[object Array]"===Object.prototype.toString.apply(c.sprintf)?da(a,c.sprintf):"object"==typeof c.sprintf?ca(a,c.sprintf):a:a}),N.init=g,N.isInitialized=h,N.setLng=s,N.preload=i,N.addResourceBundle=j,N.hasResourceBundle=k,N.getResourceBundle=l,N.addResource=n,N.addResources=o,N.removeResourceBundle=m,N.loadNamespace=q,N.loadNamespaces=r,N.setDefaultNamespace=p,N.t=F,N.translate=F,N.exists=E,N.detectLanguage=Y.detectLanguage,N.pluralExtensions=_,N.sync=S,N.functions=Y,N.lng=t,N.dir=u,N.addPostProcessor=ba,N.applyReplacement=Y.applyReplacement,N.options=U,N.noConflict=w}("undefined"==typeof exports?window:exports);

@@ -1,6 +0,7 @@

// i18next, v1.10.3
// i18next, v1.11.0
// Copyright (c)2015 Jan Mühlemann (jamuhl).
// Distributed under MIT license
// http://i18next.com
!function(a){function b(a,b){if(!b||"function"==typeof b)return a;for(var c in b)a[c]=b[c];return a}function c(a,b){for(var d in b)d in a?c(a[d],b[d]):a[d]=b[d];return a}function d(a,b,c){var d,e=0,f=a.length,g=void 0===f||"[object Array]"!==Object.prototype.toString.apply(a)||"function"==typeof a;if(c)if(g){for(d in a)if(b.apply(a[d],c)===!1)break}else for(;f>e&&b.apply(a[e++],c)!==!1;);else if(g){for(d in a)if(b.call(a[d],d,a[d])===!1)break}else for(;f>e&&b.call(a[e],e,a[e++])!==!1;);return a}function e(a){return"string"==typeof a?a.replace(/[&<>"'\/]/g,function(a){return U[a]}):a}function f(a){var b=function(a){if(window.XMLHttpRequest)return a(null,new XMLHttpRequest);if(window.ActiveXObject)try{return a(null,new ActiveXObject("Msxml2.XMLHTTP"))}catch(b){return a(null,new ActiveXObject("Microsoft.XMLHTTP"))}return a(new Error)},c=function(a){if("string"==typeof a)return a;var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b.join("&")},d=function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):d>127&&2048>d?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},e=function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a=d(a);var c,e,f,g,h,i,j,k="",l=0;do c=a.charCodeAt(l++),e=a.charCodeAt(l++),f=a.charCodeAt(l++),g=c>>2,h=(3&c)<<4|e>>4,i=(15&e)<<2|f>>6,j=63&f,isNaN(e)?i=j=64:isNaN(f)&&(j=64),k+=b.charAt(g)+b.charAt(h)+b.charAt(i)+b.charAt(j),c=e=f="",g=h=i=j="";while(l<a.length);return k},f=function(){for(var a=arguments[0],b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}return a},g=function(a,d,e,h){"function"==typeof e&&(h=e,e={}),e.cache=e.cache||!1,e.data=e.data||{},e.headers=e.headers||{},e.jsonp=e.jsonp||!1,e.async=void 0===e.async?!0:e.async;var i,j=f({accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},g.headers,e.headers);if(i="application/json"===j["content-type"]?JSON.stringify(e.data):c(e.data),"GET"===a){var k=[];if(i&&(k.push(i),i=null),e.cache||k.push("_="+(new Date).getTime()),e.jsonp&&(k.push("callback="+e.jsonp),k.push("jsonp="+e.jsonp)),k=k.join("&"),k.length>1&&(d+=d.indexOf("?")>-1?"&"+k:"?"+k),e.jsonp){var l=document.getElementsByTagName("head")[0],m=document.createElement("script");return m.type="text/javascript",m.src=d,void l.appendChild(m)}}b(function(b,c){if(b)return h(b);c.open(a,d,e.async);for(var f in j)j.hasOwnProperty(f)&&c.setRequestHeader(f,j[f]);c.onreadystatechange=function(){if(4===c.readyState){var a=c.responseText||"";if(!h)return;h(c.status,{text:function(){return a},json:function(){try{return JSON.parse(a)}catch(b){return X.error("Can not parse JSON. URL: "+d),{}}}})}},c.send(i)})},h={authBasic:function(a,b){g.headers.Authorization="Basic "+e(a+":"+b)},connect:function(a,b,c){return g("CONNECT",a,b,c)},del:function(a,b,c){return g("DELETE",a,b,c)},get:function(a,b,c){return g("GET",a,b,c)},head:function(a,b,c){return g("HEAD",a,b,c)},headers:function(a){g.headers=a||{}},isAllowed:function(a,b,c){this.options(a,function(a,d){c(-1!==d.text().indexOf(b))})},options:function(a,b,c){return g("OPTIONS",a,b,c)},patch:function(a,b,c){return g("PATCH",a,b,c)},post:function(a,b,c){return g("POST",a,b,c)},put:function(a,b,c){return g("PUT",a,b,c)},trace:function(a,b,c){return g("TRACE",a,b,c)}},i=a.type?a.type.toLowerCase():"get";h[i](a.url,a,function(b,c){200===b||0===b&&c.text()?a.success(c.json(),b,null):a.error(c.text(),b,null)})}function g(a,b){"function"==typeof a&&(b=a,a={}),a=a||{},X.extend(T,a),delete T.fixLng,T.functions&&(delete T.functions,X.extend(X,a.functions)),"string"==typeof T.ns&&(T.ns={namespaces:[T.ns],defaultNs:T.ns}),"string"==typeof T.fallbackNS&&(T.fallbackNS=[T.fallbackNS]),("string"==typeof T.fallbackLng||"boolean"==typeof T.fallbackLng)&&(T.fallbackLng=[T.fallbackLng]),T.interpolationPrefixEscaped=X.regexEscape(T.interpolationPrefix),T.interpolationSuffixEscaped=X.regexEscape(T.interpolationSuffix),T.lng||(T.lng=X.detectLanguage()),P=X.toLanguages(T.lng),K=P[0],X.log("currentLng set to: "+K),T.useCookie&&X.cookie.read(T.cookieName)!==K&&X.cookie.create(T.cookieName,K,T.cookieExpirationTime,T.cookieDomain),T.detectLngFromLocalStorage&&"undefined"!=typeof document&&window.localStorage&&X.localStorage.setItem("i18next_lng",K);var c=E;a.fixLng&&(c=function(a,b){return b=b||{},b.lng=b.lng||c.lng,E(a,b)},c.lng=K),$.setCurrentLng(K),L&&T.setJqueryExt?w&&w():x&&x();var d;if(L&&L.Deferred&&(d=L.Deferred()),!T.resStore){var e=X.toLanguages(T.lng);"string"==typeof T.preload&&(T.preload=[T.preload]);for(var f=0,g=T.preload.length;g>f;f++)for(var h=X.toLanguages(T.preload[f]),i=0,j=h.length;j>i;i++)e.indexOf(h[i])<0&&e.push(h[i]);return M.sync.load(e,T,function(a,e){N=e,Q=!0,b&&b(a,c),d&&(a?d.reject:d.resolve)(a||c)}),d?d.promise():void 0}return N=T.resStore,Q=!0,b&&b(null,c),d&&d.resolve(c),d?d.promise():void 0}function h(){return Q}function i(a,b){"string"==typeof a&&(a=[a]);for(var c=0,d=a.length;d>c;c++)T.preload.indexOf(a[c])<0&&T.preload.push(a[c]);return g(b)}function j(a,b,c,d){"string"!=typeof b?(c=b,b=T.ns.defaultNs):T.ns.namespaces.indexOf(b)<0&&T.ns.namespaces.push(b),N[a]=N[a]||{},N[a][b]=N[a][b]||{},d?X.deepExtend(N[a][b],c):X.extend(N[a][b],c),T.useLocalStorage&&R._storeLocal(N)}function k(a,b){"string"!=typeof b&&(b=T.ns.defaultNs),N[a]=N[a]||{};var c=N[a][b]||{},d=!1;for(var e in c)c.hasOwnProperty(e)&&(d=!0);return d}function l(a,b){return"string"!=typeof b&&(b=T.ns.defaultNs),N[a]=N[a]||{},X.extend({},N[a][b])}function m(a,b){"string"!=typeof b&&(b=T.ns.defaultNs),N[a]=N[a]||{},N[a][b]={},T.useLocalStorage&&R._storeLocal(N)}function n(a,b,c,d){"string"!=typeof b?(resource=b,b=T.ns.defaultNs):T.ns.namespaces.indexOf(b)<0&&T.ns.namespaces.push(b),N[a]=N[a]||{},N[a][b]=N[a][b]||{};for(var e=c.split(T.keyseparator),f=0,g=N[a][b];e[f];)f==e.length-1?g[e[f]]=d:(null==g[e[f]]&&(g[e[f]]={}),g=g[e[f]]),f++;T.useLocalStorage&&R._storeLocal(N)}function o(a,b,c){"string"!=typeof b?(resource=b,b=T.ns.defaultNs):T.ns.namespaces.indexOf(b)<0&&T.ns.namespaces.push(b);for(var d in c)"string"==typeof c[d]&&n(a,b,d,c[d])}function p(a){T.ns.defaultNs=a}function q(a,b){r([a],b)}function r(a,b){var c={dynamicLoad:T.dynamicLoad,resGetPath:T.resGetPath,getAsync:T.getAsync,customLoad:T.customLoad,ns:{namespaces:a,defaultNs:""}},d=X.toLanguages(T.lng);"string"==typeof T.preload&&(T.preload=[T.preload]);for(var e=0,f=T.preload.length;f>e;e++)for(var g=X.toLanguages(T.preload[e]),h=0,i=g.length;i>h;h++)d.indexOf(g[h])<0&&d.push(g[h]);for(var j=[],k=0,l=d.length;l>k;k++){var m=!1,n=N[d[k]];if(n)for(var o=0,p=a.length;p>o;o++)n[a[o]]||(m=!0);else m=!0;m&&j.push(d[k])}j.length?M.sync._fetch(j,c,function(c,d){var e=a.length*j.length;X.each(a,function(a,c){T.ns.namespaces.indexOf(c)<0&&T.ns.namespaces.push(c),X.each(j,function(a,f){N[f]=N[f]||{},N[f][c]=d[f][c],e--,0===e&&b&&(T.useLocalStorage&&M.sync._storeLocal(N),b())})})}):b&&b()}function s(a,b,c){return"function"==typeof b?(c=b,b={}):b||(b={}),b.lng=a,g(b,c)}function t(){return K}function u(a){N={},s(K,a)}function v(){window.i18next=window.i18n,S?window.i18n=S:delete window.i18n}function w(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2));var f;if("html"===d)f=T.defaultValueFromContent?L.extend({defaultValue:a.html()},c):c,a.html(L.t(b,f));else if("text"===d)f=T.defaultValueFromContent?L.extend({defaultValue:a.text()},c):c,a.text(L.t(b,f));else if("prepend"===d)f=T.defaultValueFromContent?L.extend({defaultValue:a.html()},c):c,a.prepend(L.t(b,f));else if("append"===d)f=T.defaultValueFromContent?L.extend({defaultValue:a.html()},c):c,a.append(L.t(b,f));else if(0===d.indexOf("data-")){var g=d.substr("data-".length);f=T.defaultValueFromContent?L.extend({defaultValue:a.data(g)},c):c;var h=L.t(b,f);a.data(g,h),a.attr(d,h)}else f=T.defaultValueFromContent?L.extend({defaultValue:a.attr(d)},c):c,a.attr(d,L.t(b,f))}}function b(b,c){var d=b.attr(T.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.text()||b.val()),d){var e=b,f=b.data("i18n-target");if(f&&(e=b.find(f)||b),c||T.useDataAttrOptions!==!0||(c=b.data("i18n-options")),c=c||{},d.indexOf(";")>=0){var g=d.split(";");L.each(g,function(b,d){""!==d&&a(e,d,c)})}else a(e,d,c);if(T.useDataAttrOptions===!0){var h=L.extend({lng:"non",lngs:[],_origLng:"non"},c);delete h.lng,delete h.lngs,delete h._origLng,b.data("i18n-options",h)}}}L.t=L.t||E,L.fn.i18n=function(a){return this.each(function(){b(L(this),a);var c=L(this).find("["+T.selectorAttr+"]");c.each(function(){b(L(this),a)})})}}function x(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2)),"html"===d?a.innerHTML=E(b,c):"text"===d?a.textContent=E(b,c):"prepend"===d?a.insertAdjacentHTML(E(b,c),"afterbegin"):"append"===d?a.insertAdjacentHTML(E(b,c),"beforeend"):a.setAttribute(d,E(b,c))}}function b(b,c){var d=b.getAttribute(T.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.textContent||b.value),d){var e=b,f=b.getAttribute("i18n-target");if(f&&(e=b.querySelector(f)||b),d.indexOf(";")>=0)for(var g=d.split(";"),h=0,i=g.length;i>h;h++)""!==g[h]&&a(e,g[h],c);else a(e,d,c)}}M.translateObject=function(a,c){for(var d=a.querySelectorAll("["+T.selectorAttr+"]"),e=0,f=d.length;f>e;e++)b(d[e],c)}}function y(a,b,c,d){if(!a)return a;if(d=d||b,a.indexOf(d.interpolationPrefix||T.interpolationPrefix)<0)return a;var e=d.interpolationPrefix?X.regexEscape(d.interpolationPrefix):T.interpolationPrefixEscaped,f=d.interpolationSuffix?X.regexEscape(d.interpolationSuffix):T.interpolationSuffixEscaped,g=b.replace&&"object"==typeof b.replace?b.replace:b,h=new RegExp([e,"(.+?)","(HTML)?",f].join(""),"g"),i=d.escapeInterpolation||T.escapeInterpolation;return a.replace(h,function(a,b,c){for(var d=g,e=b;e.indexOf(T.keyseparator)>=0&&"object"==typeof d&&d;){var f=e.slice(0,e.indexOf(T.keyseparator));e=e.slice(e.indexOf(T.keyseparator)+1),d=d[f]}if(d&&"object"==typeof d&&d.hasOwnProperty(e)){{d[e]}return i&&!c?X.escape(d[e]):d[e]}return a})}function z(a,b){var c=",",d="{",e="}",f=X.extend({},b);for(delete f.postProcess;-1!=a.indexOf(T.reusePrefix)&&(O++,!(O>T.maxRecursion));){var g=a.lastIndexOf(T.reusePrefix),h=a.indexOf(T.reuseSuffix,g)+T.reuseSuffix.length,i=a.substring(g,h),j=i.replace(T.reusePrefix,"").replace(T.reuseSuffix,"");if(g>=h)return X.error("there is an missing closing in following translation value",a),"";if(-1!=j.indexOf(c)){var k=j.indexOf(c);if(-1!=j.indexOf(d,k)&&-1!=j.indexOf(e,k)){var l=j.indexOf(d,k),m=j.indexOf(e,l)+e.length;try{f=X.extend(f,JSON.parse(j.substring(l,m))),j=j.substring(0,k)}catch(n){}}}var o=H(j,f);a=a.replace(i,X.regexReplacementEscape(o))}return a}function A(a){return a.context&&("string"==typeof a.context||"number"==typeof a.context)}function B(a){return void 0!==a.count&&"string"!=typeof a.count}function C(a){return void 0!==a.indefinite_article&&"string"!=typeof a.indefinite_article&&a.indefinite_article}function D(a,b){b=b||{};var c=F(a,b),d=I(a,b);return void 0!==d||d===c}function E(a,b){return b=b||{},Q?(O=0,H.apply(null,arguments)):(X.log("i18next not finished initialization. you might have called t function before loading resources finished."),b.defaultValue||"")}function F(a,b){return void 0!==b.defaultValue?b.defaultValue:a}function G(){for(var a=[],b=1;b<arguments.length;b++)a.push(arguments[b]);return{postProcess:"sprintf",sprintf:a}}function H(a,b){if(b&&"object"!=typeof b?"sprintf"===T.shortcutFunction?b=G.apply(null,arguments):"defaultValue"===T.shortcutFunction&&(b={defaultValue:b}):b=b||{},"object"==typeof T.defaultVariables&&(b=X.extend({},T.defaultVariables,b)),void 0===a||null===a||""===a)return"";"number"==typeof a&&(a=String(a)),"string"==typeof a&&(a=[a]);var c=a[0];if(a.length>1)for(var d=0;d<a.length&&(c=a[d],!D(c,b));d++);var e,f=F(c,b),g=I(c,b),h=b.lng?X.toLanguages(b.lng,b.fallbackLng):P,i=b.ns||T.ns.defaultNs;c.indexOf(T.nsseparator)>-1&&(e=c.split(T.nsseparator),i=e[0],c=e[1]),void 0===g&&T.sendMissing&&"function"==typeof T.missingKeyHandler&&(b.lng?T.missingKeyHandler(h[0],i,c,f,h):T.missingKeyHandler(T.lng,i,c,f,h));var j;j="string"==typeof T.postProcess&&""!==T.postProcess?[T.postProcess]:"array"==typeof T.postProcess||"object"==typeof T.postProcess?T.postProcess:[],"string"==typeof b.postProcess&&""!==b.postProcess?j=j.concat([b.postProcess]):("array"==typeof b.postProcess||"object"==typeof b.postProcess)&&(j=j.concat(b.postProcess)),void 0!==g&&j.length&&j.forEach(function(a){_[a]&&(g=_[a](g,c,b))});var k=f;if(f.indexOf(T.nsseparator)>-1&&(e=f.split(T.nsseparator),k=e[1]),k===c&&T.parseMissingKey&&(f=T.parseMissingKey(f)),void 0===g&&(f=y(f,b),f=z(f,b),j.length)){var l=F(c,b);j.forEach(function(a){_[a]&&(g=_[a](l,c,b))})}return void 0!==g?g:f}function I(a,b){b=b||{};var c,d,e=F(a,b),f=P;if(!N)return e;if("cimode"===f[0].toLowerCase())return e;if(b.lngs&&(f=b.lngs),b.lng&&(f=X.toLanguages(b.lng,b.fallbackLng),!N[f[0]])){var g=T.getAsync;T.getAsync=!1,M.sync.load(f,T,function(a,b){X.extend(N,b),T.getAsync=g})}var h=b.ns||T.ns.defaultNs;if(a.indexOf(T.nsseparator)>-1){var i=a.split(T.nsseparator);h=i[0],a=i[1]}if(A(b)){c=X.extend({},b),delete c.context,c.defaultValue=T.contextNotFound;var j=h+T.nsseparator+a+"_"+b.context;if(d=E(j,c),d!=T.contextNotFound)return y(d,{context:b.context})}if(B(b,f[0])){c=X.extend({lngs:[f[0]]},b),delete c.count,c._origLng=c._origLng||c.lng||f[0],delete c.lng,c.defaultValue=T.pluralNotFound;var k;if($.needsPlural(f[0],b.count)){k=h+T.nsseparator+a+T.pluralSuffix;var l=$.get(f[0],b.count);l>=0?k=k+"_"+l:1===l&&(k=h+T.nsseparator+a)}else k=h+T.nsseparator+a;if(d=E(k,c),d!=T.pluralNotFound)return y(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});if(!(f.length>1))return c.lng=c._origLng,delete c._origLng,d=E(h+T.nsseparator+a,c),y(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});var m=f.slice();if(m.shift(),b=X.extend(b,{lngs:m}),b._origLng=c._origLng,delete b.lng,d=E(h+T.nsseparator+a,b),d!=T.pluralNotFound)return d}if(C(b)){var n=X.extend({},b);delete n.indefinite_article,n.defaultValue=T.indefiniteNotFound;var o=h+T.nsseparator+a+(b.count&&!B(b,f[0])||!b.count?T.indefiniteSuffix:"");if(d=E(o,n),d!=T.indefiniteNotFound)return d}for(var p,q=a.split(T.keyseparator),r=0,s=f.length;s>r&&void 0===p;r++){for(var t=f[r],u=0,v=N[t]&&N[t][h];q[u];)v=v&&v[q[u]],u++;if(void 0!==v&&(!T.showKeyIfEmpty||""!==v)){var w=Object.prototype.toString.apply(v);if("string"==typeof v)v=y(v,b),v=z(v,b);else if("[object Array]"!==w||T.returnObjectTrees||b.returnObjectTrees){if(null===v&&T.fallbackOnNull===!0)v=void 0;else if(null!==v)if(T.returnObjectTrees||b.returnObjectTrees){if("[object Number]"!==w&&"[object Function]"!==w&&"[object RegExp]"!==w){var x="[object Array]"===w?[]:{};X.each(v,function(c){x[c]=H(h+T.nsseparator+a+T.keyseparator+c,b)}),v=x}}else T.objectTreeKeyHandler&&"function"==typeof T.objectTreeKeyHandler?v=T.objectTreeKeyHandler(a,v,t,h,b):(v="key '"+h+":"+a+" ("+t+")' returned an object instead of string.",X.log(v))}else v=v.join("\n"),v=y(v,b),v=z(v,b);"string"==typeof v&&""===v.trim()&&T.fallbackOnEmpty===!0&&(v=void 0),p=v}}if(void 0===p&&!b.isFallbackLookup&&(T.fallbackToDefaultNS===!0||T.fallbackNS&&T.fallbackNS.length>0)){if(b.isFallbackLookup=!0,T.fallbackNS.length){for(var D=0,G=T.fallbackNS.length;G>D;D++)if(p=I(T.fallbackNS[D]+T.nsseparator+a,b),p||""===p&&T.fallbackOnEmpty===!1){var J=p.indexOf(T.nsseparator)>-1?p.split(T.nsseparator)[1]:p,K=e.indexOf(T.nsseparator)>-1?e.split(T.nsseparator)[1]:e;if(J!==K)break}}else b.ns=T.ns.defaultNs,p=I(a,b);b.isFallbackLookup=!1}return p}function J(){var a,b=T.lngWhitelist||[],c=[];if("undefined"!=typeof window&&!function(){for(var a=window.location.search.substring(1),b=a.split("&"),d=0;d<b.length;d++){var e=b[d].indexOf("=");if(e>0){var f=b[d].substring(0,e);f==T.detectLngQS&&c.push(b[d].substring(e+1))}}}(),T.useCookie&&"undefined"!=typeof document){var d=X.cookie.read(T.cookieName);d&&c.push(d)}if(T.detectLngFromLocalStorage&&"undefined"!=typeof window&&window.localStorage){var e=X.localStorage.getItem("i18next_lng");e&&c.push(e)}if("undefined"!=typeof navigator){if(navigator.languages)for(var f=0;f<navigator.languages.length;f++)c.push(navigator.languages[f]);navigator.userLanguage&&c.push(navigator.userLanguage),navigator.language&&c.push(navigator.language)}return function(){for(var d=0;d<c.length;d++){var e=c[d];if(e.indexOf("-")>-1){var f=e.split("-");e=T.lowerCaseLng?f[0].toLowerCase()+"-"+f[1].toLowerCase():f[0].toLowerCase()+"-"+f[1].toUpperCase()}if(0===b.length||b.indexOf(e)>-1){a=e;break}}}(),a||(a=T.fallbackLng[0]),a}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;if(arguments.length>0&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(var e=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(e in b&&b[e]===a)return e;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=c;arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d))));for(var e=d>=0?Math.min(d,c-1):c-Math.abs(d);e>=0;e--)if(e in b&&b[e]===a)return e;return-1}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var K,L=a.jQuery||a.Zepto,M={},N={},O=0,P=[],Q=!1,R={},S=null;"undefined"!=typeof module&&module.exports?module.exports=M:(L&&(L.i18n=L.i18n||M),a.i18n&&(S=a.i18n),a.i18n=M),R={load:function(a,b,c){b.useLocalStorage?R._loadLocal(a,b,function(d,e){for(var f=[],g=0,h=a.length;h>g;g++)e[a[g]]||f.push(a[g]);f.length>0?R._fetch(f,b,function(a,b){X.extend(e,b),R._storeLocal(b),c(a,e)}):c(d,e)}):R._fetch(a,b,function(a,b){c(a,b)})},_loadLocal:function(a,b,c){var d={},e=(new Date).getTime();if(window.localStorage){var f=a.length;X.each(a,function(a,g){var h=X.localStorage.getItem("res_"+g);h&&(h=JSON.parse(h),h.i18nStamp&&h.i18nStamp+b.localStorageExpirationTime>e&&(d[g]=h)),f--,0===f&&c(null,d)})}},_storeLocal:function(a){if(window.localStorage)for(var b in a)a[b].i18nStamp=(new Date).getTime(),X.localStorage.setItem("res_"+b,JSON.stringify(a[b]))},_fetch:function(a,b,c){var d=b.ns,e={};if(b.dynamicLoad){var f=function(a,b){c(a,b)};if("function"==typeof b.customLoad)b.customLoad(a,d.namespaces,b,f);else{var g=y(b.resGetPath,{lng:a.join("+"),ns:d.namespaces.join("+")});X.ajax({url:g,cache:b.cache,success:function(a){X.log("loaded: "+g),f(null,a)},error:function(a,b,c){X.log("failed loading: "+g),f("failed loading resource.json error: "+c)},dataType:"json",async:b.getAsync,timeout:b.ajaxTimeout})}}else{var h,i=d.namespaces.length*a.length;X.each(d.namespaces,function(d,f){X.each(a,function(a,d){var g=function(a,b){a&&(h=h||[],h.push(a)),e[d]=e[d]||{},e[d][f]=b,i--,0===i&&c(h,e)};"function"==typeof b.customLoad?b.customLoad(d,f,b,g):R._fetchOne(d,f,b,g)})})}},_fetchOne:function(a,b,c,d){var e=y(c.resGetPath,{lng:a,ns:b});X.ajax({url:e,cache:c.cache,success:function(a){X.log("loaded: "+e),d(null,a)},error:function(a,b,c){if(b&&200==b||a&&a.status&&200==a.status)X.error("There is a typo in: "+e);else if(b&&404==b||a&&a.status&&404==a.status)X.log("Does not exist: "+e);else{var f=b?b:a&&a.status?a.status:null;X.log(f+" when loading "+e)}d(c,{})},dataType:"json",async:c.getAsync,timeout:c.ajaxTimeout})},postMissing:function(a,b,c,d,e){var f={};f[c]=d;var g=[];if("fallback"===T.sendMissingTo&&T.fallbackLng[0]!==!1)for(var h=0;h<T.fallbackLng.length;h++)g.push({lng:T.fallbackLng[h],url:y(T.resPostPath,{lng:T.fallbackLng[h],ns:b})});else if("current"===T.sendMissingTo||"fallback"===T.sendMissingTo&&T.fallbackLng[0]===!1)g.push({lng:a,url:y(T.resPostPath,{lng:a,ns:b})});else if("all"===T.sendMissingTo)for(var h=0,i=e.length;i>h;h++)g.push({lng:e[h],url:y(T.resPostPath,{lng:e[h],ns:b})});for(var j=0,k=g.length;k>j;j++){var l=g[j];X.ajax({url:l.url,type:T.sendType,data:f,success:function(){X.log("posted missing key '"+c+"' to: "+l.url);for(var a=c.split("."),e=0,f=N[l.lng][b];a[e];)f=f[a[e]]=e===a.length-1?d:f[a[e]]||{},e++},error:function(){X.log("failed posting missing key '"+c+"' to: "+l.url)},dataType:"json",async:T.postAsync,timeout:T.ajaxTimeout})}},reload:u};var T={lng:void 0,load:"all",preload:[],lowerCaseLng:!1,returnObjectTrees:!1,fallbackLng:["dev"],fallbackNS:[],detectLngQS:"setLng",detectLngFromLocalStorage:!1,ns:{namespaces:["translation"],defaultNs:"translation"},fallbackOnNull:!0,fallbackOnEmpty:!1,fallbackToDefaultNS:!1,showKeyIfEmpty:!1,nsseparator:":",keyseparator:".",selectorAttr:"data-i18n",debug:!1,resGetPath:"locales/__lng__/__ns__.json",resPostPath:"locales/add/__lng__/__ns__",getAsync:!0,postAsync:!0,resStore:void 0,useLocalStorage:!1,localStorageExpirationTime:6048e5,dynamicLoad:!1,sendMissing:!1,sendMissingTo:"fallback",sendType:"POST",interpolationPrefix:"__",interpolationSuffix:"__",defaultVariables:!1,reusePrefix:"$t(",reuseSuffix:")",pluralSuffix:"_plural",pluralNotFound:["plural_not_found",Math.random()].join(""),contextNotFound:["context_not_found",Math.random()].join(""),escapeInterpolation:!1,indefiniteSuffix:"_indefinite",indefiniteNotFound:["indefinite_not_found",Math.random()].join(""),setJqueryExt:!0,defaultValueFromContent:!0,useDataAttrOptions:!1,cookieExpirationTime:void 0,useCookie:!0,cookieName:"i18next",cookieDomain:void 0,objectTreeKeyHandler:void 0,postProcess:void 0,parseMissingKey:void 0,missingKeyHandler:R.postMissing,ajaxTimeout:0,shortcutFunction:"sprintf"},U={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},V={create:function(a,b,c,d){var e;if(c){var f=new Date;f.setTime(f.getTime()+60*c*1e3),e="; expires="+f.toGMTString()}else e="";d=d?"domain="+d+";":"",document.cookie=a+"="+b+e+";"+d+"path=/"},read:function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(b))return e.substring(b.length,e.length)}return null},remove:function(a){this.create(a,"",-1)}},W={create:function(){},read:function(){return null},remove:function(){}},X={extend:L?L.extend:b,deepExtend:c,each:L?L.each:d,ajax:L?L.ajax:"undefined"!=typeof document?f:function(){},cookie:"undefined"!=typeof document?V:W,detectLanguage:J,escape:e,log:function(a){T.debug&&"undefined"!=typeof console&&console.log(a)},error:function(a){"undefined"!=typeof console&&console.error(a)},getCountyIndexOfLng:function(a){var b=0;return("nb-NO"===a||"nn-NO"===a||"nb-no"===a||"nn-no"===a)&&(b=1),b},toLanguages:function(a,b){function c(a){var b=a;if("string"==typeof a&&a.indexOf("-")>-1){var c=a.split("-");b=T.lowerCaseLng?c[0].toLowerCase()+"-"+c[1].toLowerCase():c[0].toLowerCase()+"-"+c[1].toUpperCase()}else b=T.lowerCaseLng?a.toLowerCase():a;return b}var d=this.log;b=b||T.fallbackLng,"string"==typeof b&&(b=[b]);var e=[],f=T.lngWhitelist||!1,g=function(a){!f||f.indexOf(a)>-1?e.push(a):d("rejecting non-whitelisted language: "+a)};if("string"==typeof a&&a.indexOf("-")>-1){var h=a.split("-");"unspecific"!==T.load&&g(c(a)),"current"!==T.load&&g(c(h[this.getCountyIndexOfLng(a)]))}else g(c(a));for(var i=0;i<b.length;i++)-1===e.indexOf(b[i])&&b[i]&&e.push(c(b[i]));return e},regexEscape:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},regexReplacementEscape:function(a){return"string"==typeof a?a.replace(/\$/g,"$$$$"):a},localStorage:{setItem:function(a,b){if(window.localStorage)try{window.localStorage.setItem(a,b)}catch(c){X.log('failed to set value for key "'+a+'" to localStorage.')}},getItem:function(a,b){if(window.localStorage)try{return window.localStorage.getItem(a,b)}catch(c){return void X.log('failed to get value for key "'+a+'" from localStorage.')}}}};X.applyReplacement=y;var Y=[["ach","Acholi",[1,2],1],["af","Afrikaans",[1,2],2],["ak","Akan",[1,2],1],["am","Amharic",[1,2],1],["an","Aragonese",[1,2],2],["ar","Arabic",[0,1,2,3,11,100],5],["arn","Mapudungun",[1,2],1],["ast","Asturian",[1,2],2],["ay","Aymará",[1],3],["az","Azerbaijani",[1,2],2],["be","Belarusian",[1,2,5],4],["bg","Bulgarian",[1,2],2],["bn","Bengali",[1,2],2],["bo","Tibetan",[1],3],["br","Breton",[1,2],1],["bs","Bosnian",[1,2,5],4],["ca","Catalan",[1,2],2],["cgg","Chiga",[1],3],["cs","Czech",[1,2,5],6],["csb","Kashubian",[1,2,5],7],["cy","Welsh",[1,2,3,8],8],["da","Danish",[1,2],2],["de","German",[1,2],2],["dev","Development Fallback",[1,2],2],["dz","Dzongkha",[1],3],["el","Greek",[1,2],2],["en","English",[1,2],2],["eo","Esperanto",[1,2],2],["es","Spanish",[1,2],2],["es_ar","Argentinean Spanish",[1,2],2],["et","Estonian",[1,2],2],["eu","Basque",[1,2],2],["fa","Persian",[1],3],["fi","Finnish",[1,2],2],["fil","Filipino",[1,2],1],["fo","Faroese",[1,2],2],["fr","French",[1,2],9],["fur","Friulian",[1,2],2],["fy","Frisian",[1,2],2],["ga","Irish",[1,2,3,7,11],10],["gd","Scottish Gaelic",[1,2,3,20],11],["gl","Galician",[1,2],2],["gu","Gujarati",[1,2],2],["gun","Gun",[1,2],1],["ha","Hausa",[1,2],2],["he","Hebrew",[1,2],2],["hi","Hindi",[1,2],2],["hr","Croatian",[1,2,5],4],["hu","Hungarian",[1,2],2],["hy","Armenian",[1,2],2],["ia","Interlingua",[1,2],2],["id","Indonesian",[1],3],["is","Icelandic",[1,2],12],["it","Italian",[1,2],2],["ja","Japanese",[1],3],["jbo","Lojban",[1],3],["jv","Javanese",[0,1],13],["ka","Georgian",[1],3],["kk","Kazakh",[1],3],["km","Khmer",[1],3],["kn","Kannada",[1,2],2],["ko","Korean",[1],3],["ku","Kurdish",[1,2],2],["kw","Cornish",[1,2,3,4],14],["ky","Kyrgyz",[1],3],["lb","Letzeburgesch",[1,2],2],["ln","Lingala",[1,2],1],["lo","Lao",[1],3],["lt","Lithuanian",[1,2,10],15],["lv","Latvian",[1,2,0],16],["mai","Maithili",[1,2],2],["mfe","Mauritian Creole",[1,2],1],["mg","Malagasy",[1,2],1],["mi","Maori",[1,2],1],["mk","Macedonian",[1,2],17],["ml","Malayalam",[1,2],2],["mn","Mongolian",[1,2],2],["mnk","Mandinka",[0,1,2],18],["mr","Marathi",[1,2],2],["ms","Malay",[1],3],["mt","Maltese",[1,2,11,20],19],["nah","Nahuatl",[1,2],2],["nap","Neapolitan",[1,2],2],["nb","Norwegian Bokmal",[1,2],2],["ne","Nepali",[1,2],2],["nl","Dutch",[1,2],2],["nn","Norwegian Nynorsk",[1,2],2],["no","Norwegian",[1,2],2],["nso","Northern Sotho",[1,2],2],["oc","Occitan",[1,2],1],["or","Oriya",[2,1],2],["pa","Punjabi",[1,2],2],["pap","Papiamento",[1,2],2],["pl","Polish",[1,2,5],7],["pms","Piemontese",[1,2],2],["ps","Pashto",[1,2],2],["pt","Portuguese",[1,2],2],["pt_br","Brazilian Portuguese",[1,2],2],["rm","Romansh",[1,2],2],["ro","Romanian",[1,2,20],20],["ru","Russian",[1,2,5],4],["sah","Yakut",[1],3],["sco","Scots",[1,2],2],["se","Northern Sami",[1,2],2],["si","Sinhala",[1,2],2],["sk","Slovak",[1,2,5],6],["sl","Slovenian",[5,1,2,3],21],["so","Somali",[1,2],2],["son","Songhay",[1,2],2],["sq","Albanian",[1,2],2],["sr","Serbian",[1,2,5],4],["su","Sundanese",[1],3],["sv","Swedish",[1,2],2],["sw","Swahili",[1,2],2],["ta","Tamil",[1,2],2],["te","Telugu",[1,2],2],["tg","Tajik",[1,2],1],["th","Thai",[1],3],["ti","Tigrinya",[1,2],1],["tk","Turkmen",[1,2],2],["tr","Turkish",[1,2],1],["tt","Tatar",[1],3],["ug","Uyghur",[1],3],["uk","Ukrainian",[1,2,5],4],["ur","Urdu",[1,2],2],["uz","Uzbek",[1,2],1],["vi","Vietnamese",[1],3],["wa","Walloon",[1,2],1],["wo","Wolof",[1],3],["yo","Yoruba",[1,2],2],["zh","Chinese",[1],3]],Z={1:function(a){return Number(a>1)},2:function(a){return Number(1!=a)},3:function(){return 0},4:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},5:function(a){return Number(0===a?0:1==a?1:2==a?2:a%100>=3&&10>=a%100?3:a%100>=11?4:5)},6:function(a){return Number(1==a?0:a>=2&&4>=a?1:2)},7:function(a){return Number(1==a?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},8:function(a){return Number(1==a?0:2==a?1:8!=a&&11!=a?2:3)},9:function(a){return Number(a>=2)},10:function(a){return Number(1==a?0:2==a?1:7>a?2:11>a?3:4)},11:function(a){return Number(1==a||11==a?0:2==a||12==a?1:a>2&&20>a?2:3)},12:function(a){return Number(a%10!=1||a%100==11)},13:function(a){return Number(0!==a)},14:function(a){return Number(1==a?0:2==a?1:3==a?2:3)},15:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&(10>a%100||a%100>=20)?1:2)},16:function(a){return Number(a%10==1&&a%100!=11?0:0!==a?1:2)},17:function(a){return Number(1==a||a%10==1?0:1)},18:function(a){return Number(1==a?1:2)},19:function(a){return Number(1==a?0:0===a||a%100>1&&11>a%100?1:a%100>10&&20>a%100?2:3)},20:function(a){return Number(1==a?0:0===a||a%100>0&&20>a%100?1:2)},21:function(a){return Number(a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0)}},$={rules:function(){var a,b={};for(a=Y.length;a--;)b[Y[a][0]]={name:Y[a][1],numbers:Y[a][2],plurals:Z[Y[a][3]]};return b}(),addRule:function(a,b){$.rules[a]=b},setCurrentLng:function(a){if(!$.currentRule||$.currentRule.lng!==a){var b=a.split("-");$.currentRule={lng:a,rule:$.rules[b[0]]}}},needsPlural:function(a,b){var c,d=a.split("-");return c=$.currentRule&&$.currentRule.lng===a?$.currentRule.rule:$.rules[d[X.getCountyIndexOfLng(a)]],c&&c.numbers.length<=1?!1:1!==this.get(a,b)},get:function(a,b){function c(b,c){var d;if(d=$.currentRule&&$.currentRule.lng===a?$.currentRule.rule:$.rules[b]){var e;e=d.plurals(d.noAbs?c:Math.abs(c));var f=d.numbers[e];return 2===d.numbers.length&&1===d.numbers[0]&&(2===f?f=-1:1===f&&(f=1)),f}return 1===c?"1":"-1"}var d=a.split("-");return c(d[X.getCountyIndexOfLng(a)],b)}},_={},aa=function(a,b){_[a]=b},ba=function(){function a(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function b(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")}var c=function(){return c.cache.hasOwnProperty(arguments[0])||(c.cache[arguments[0]]=c.parse(arguments[0])),c.format.call(null,c.cache[arguments[0]],arguments)};return c.format=function(c,d){var e,f,g,h,i,j,k,l=1,m=c.length,n="",o=[];for(f=0;m>f;f++)if(n=a(c[f]),"string"===n)o.push(c[f]);else if("array"===n){if(h=c[f],h[2])for(e=d[l],g=0;g<h[2].length;g++){if(!e.hasOwnProperty(h[2][g]))throw ba('[sprintf] property "%s" does not exist',h[2][g]);e=e[h[2][g]]}else e=h[1]?d[h[1]]:d[l++];if(/[^s]/.test(h[8])&&"number"!=a(e))throw ba("[sprintf] expecting number but found %s",a(e));switch(h[8]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e,10);break;case"e":e=h[7]?e.toExponential(h[7]):e.toExponential();break;case"f":e=h[7]?parseFloat(e).toFixed(h[7]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&h[7]?e.substring(0,h[7]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(h[8])&&h[3]&&e>=0?"+"+e:e,j=h[4]?"0"==h[4]?"0":h[4].charAt(1):" ",k=h[6]-String(e).length,i=h[6]?b(j,k):"",o.push(h[5]?e+i:i+e)}return o.join("")},c.cache={},c.parse=function(a){for(var b=a,c=[],d=[],e=0;b;){if(null!==(c=/^[^\x25]+/.exec(b)))d.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(b)))d.push("%");else{if(null===(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)))throw"[sprintf] huh?";if(c[2]){e|=1;var f=[],g=c[2],h=[];if(null===(h=/^([a-z_][a-z_\d]*)/i.exec(g)))throw"[sprintf] huh?";for(f.push(h[1]);""!==(g=g.substring(h[0].length));)if(null!==(h=/^\.([a-z_][a-z_\d]*)/i.exec(g)))f.push(h[1]);else{if(null===(h=/^\[(\d+)\]/.exec(g)))throw"[sprintf] huh?";f.push(h[1])}c[2]=f}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";d.push(c)}b=b.substring(c[0].length)}return d},c}(),ca=function(a,b){
return b.unshift(a),ba.apply(null,b)};aa("sprintf",function(a,b,c){return c.sprintf?"[object Array]"===Object.prototype.toString.apply(c.sprintf)?ca(a,c.sprintf):"object"==typeof c.sprintf?ba(a,c.sprintf):a:a}),M.init=g,M.isInitialized=h,M.setLng=s,M.preload=i,M.addResourceBundle=j,M.hasResourceBundle=k,M.getResourceBundle=l,M.addResource=n,M.addResources=o,M.removeResourceBundle=m,M.loadNamespace=q,M.loadNamespaces=r,M.setDefaultNamespace=p,M.t=E,M.translate=E,M.exists=D,M.detectLanguage=X.detectLanguage,M.pluralExtensions=$,M.sync=R,M.functions=X,M.lng=t,M.addPostProcessor=aa,M.applyReplacement=X.applyReplacement,M.options=T,M.noConflict=v}("undefined"==typeof exports?window:exports);
!function(a){function b(a,b){if(!b||"function"==typeof b)return a;for(var c in b)a[c]=b[c];return a}function c(a,b,d){for(var e in b)e in a?"string"==typeof a[e]||a[e]instanceof String||"string"==typeof b[e]||b[e]instanceof String?d&&(a[e]=b[e]):c(a[e],b[e],d):a[e]=b[e];return a}function d(a,b,c){var d,e=0,f=a.length,g=void 0===f||"[object Array]"!==Object.prototype.toString.apply(a)||"function"==typeof a;if(c)if(g){for(d in a)if(b.apply(a[d],c)===!1)break}else for(;f>e&&b.apply(a[e++],c)!==!1;);else if(g){for(d in a)if(b.call(a[d],d,a[d])===!1)break}else for(;f>e&&b.call(a[e],e,a[e++])!==!1;);return a}function e(a){return"string"==typeof a?a.replace(/[&<>"'\/]/g,function(a){return V[a]}):a}function f(a){var b=function(a){if(window.XMLHttpRequest)return a(null,new XMLHttpRequest);if(window.ActiveXObject)try{return a(null,new ActiveXObject("Msxml2.XMLHTTP"))}catch(b){return a(null,new ActiveXObject("Microsoft.XMLHTTP"))}return a(new Error)},c=function(a){if("string"==typeof a)return a;var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b.join("&")},d=function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):d>127&&2048>d?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},e=function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a=d(a);var c,e,f,g,h,i,j,k="",l=0;do c=a.charCodeAt(l++),e=a.charCodeAt(l++),f=a.charCodeAt(l++),g=c>>2,h=(3&c)<<4|e>>4,i=(15&e)<<2|f>>6,j=63&f,isNaN(e)?i=j=64:isNaN(f)&&(j=64),k+=b.charAt(g)+b.charAt(h)+b.charAt(i)+b.charAt(j),c=e=f="",g=h=i=j="";while(l<a.length);return k},f=function(){for(var a=arguments[0],b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}return a},g=function(a,d,e,h){"function"==typeof e&&(h=e,e={}),e.cache=e.cache||!1,e.data=e.data||{},e.headers=e.headers||{},e.jsonp=e.jsonp||!1,e.async=void 0===e.async?!0:e.async;var i,j=f({accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},g.headers,e.headers);if(i="application/json"===j["content-type"]?JSON.stringify(e.data):c(e.data),"GET"===a){var k=[];if(i&&(k.push(i),i=null),e.cache||k.push("_="+(new Date).getTime()),e.jsonp&&(k.push("callback="+e.jsonp),k.push("jsonp="+e.jsonp)),k=k.join("&"),k.length>1&&(d+=d.indexOf("?")>-1?"&"+k:"?"+k),e.jsonp){var l=document.getElementsByTagName("head")[0],m=document.createElement("script");return m.type="text/javascript",m.src=d,void l.appendChild(m)}}b(function(b,c){if(b)return h(b);c.open(a,d,e.async);for(var f in j)j.hasOwnProperty(f)&&c.setRequestHeader(f,j[f]);c.onreadystatechange=function(){if(4===c.readyState){var a=c.responseText||"";if(!h)return;h(c.status,{text:function(){return a},json:function(){try{return JSON.parse(a)}catch(b){return Y.error("Can not parse JSON. URL: "+d),{}}}})}},c.send(i)})},h={authBasic:function(a,b){g.headers.Authorization="Basic "+e(a+":"+b)},connect:function(a,b,c){return g("CONNECT",a,b,c)},del:function(a,b,c){return g("DELETE",a,b,c)},get:function(a,b,c){return g("GET",a,b,c)},head:function(a,b,c){return g("HEAD",a,b,c)},headers:function(a){g.headers=a||{}},isAllowed:function(a,b,c){this.options(a,function(a,d){c(-1!==d.text().indexOf(b))})},options:function(a,b,c){return g("OPTIONS",a,b,c)},patch:function(a,b,c){return g("PATCH",a,b,c)},post:function(a,b,c){return g("POST",a,b,c)},put:function(a,b,c){return g("PUT",a,b,c)},trace:function(a,b,c){return g("TRACE",a,b,c)}},i=a.type?a.type.toLowerCase():"get";h[i](a.url,a,function(b,c){200===b||0===b&&c.text()?a.success(c.json(),b,null):a.error(c.text(),b,null)})}function g(a,b){"function"==typeof a&&(b=a,a={}),a=a||{},Y.extend(U,a),delete U.fixLng,U.functions&&(delete U.functions,Y.extend(Y,a.functions)),"string"==typeof U.ns&&(U.ns={namespaces:[U.ns],defaultNs:U.ns}),"string"==typeof U.fallbackNS&&(U.fallbackNS=[U.fallbackNS]),("string"==typeof U.fallbackLng||"boolean"==typeof U.fallbackLng)&&(U.fallbackLng=[U.fallbackLng]),U.interpolationPrefixEscaped=Y.regexEscape(U.interpolationPrefix),U.interpolationSuffixEscaped=Y.regexEscape(U.interpolationSuffix),U.lng||(U.lng=Y.detectLanguage()),Q=Y.toLanguages(U.lng),L=Q[0],Y.log("currentLng set to: "+L),U.useCookie&&Y.cookie.read(U.cookieName)!==L&&Y.cookie.create(U.cookieName,L,U.cookieExpirationTime,U.cookieDomain),U.detectLngFromLocalStorage&&"undefined"!=typeof document&&window.localStorage&&Y.localStorage.setItem("i18next_lng",L);var c=F;a.fixLng&&(c=function(a,b){return b=b||{},b.lng=b.lng||c.lng,F(a,b)},c.lng=L),_.setCurrentLng(L),M&&U.setJqueryExt?x&&x():y&&y();var d;if(M&&M.Deferred&&(d=M.Deferred()),!U.resStore){var e=Y.toLanguages(U.lng);"string"==typeof U.preload&&(U.preload=[U.preload]);for(var f=0,g=U.preload.length;g>f;f++)for(var h=Y.toLanguages(U.preload[f]),i=0,j=h.length;j>i;i++)e.indexOf(h[i])<0&&e.push(h[i]);return N.sync.load(e,U,function(a,e){O=e,R=!0,b&&b(a,c),d&&(a?d.reject:d.resolve)(a||c)}),d?d.promise():void 0}return O=U.resStore,R=!0,b&&b(null,c),d&&d.resolve(c),d?d.promise():void 0}function h(){return R}function i(a,b){"string"==typeof a&&(a=[a]);for(var c=0,d=a.length;d>c;c++)U.preload.indexOf(a[c])<0&&U.preload.push(a[c]);return g(b)}function j(a,b,c,d,e){"string"!=typeof b?(c=b,b=U.ns.defaultNs):U.ns.namespaces.indexOf(b)<0&&U.ns.namespaces.push(b),O[a]=O[a]||{},O[a][b]=O[a][b]||{},d?Y.deepExtend(O[a][b],c,e):Y.extend(O[a][b],c),U.useLocalStorage&&S._storeLocal(O)}function k(a,b){"string"!=typeof b&&(b=U.ns.defaultNs),O[a]=O[a]||{};var c=O[a][b]||{},d=!1;for(var e in c)c.hasOwnProperty(e)&&(d=!0);return d}function l(a,b){return"string"!=typeof b&&(b=U.ns.defaultNs),O[a]=O[a]||{},Y.extend({},O[a][b])}function m(a,b){"string"!=typeof b&&(b=U.ns.defaultNs),O[a]=O[a]||{},O[a][b]={},U.useLocalStorage&&S._storeLocal(O)}function n(a,b,c,d){"string"!=typeof b?(resource=b,b=U.ns.defaultNs):U.ns.namespaces.indexOf(b)<0&&U.ns.namespaces.push(b),O[a]=O[a]||{},O[a][b]=O[a][b]||{};for(var e=c.split(U.keyseparator),f=0,g=O[a][b];e[f];)f==e.length-1?g[e[f]]=d:(null==g[e[f]]&&(g[e[f]]={}),g=g[e[f]]),f++;U.useLocalStorage&&S._storeLocal(O)}function o(a,b,c){"string"!=typeof b?(c=b,b=U.ns.defaultNs):U.ns.namespaces.indexOf(b)<0&&U.ns.namespaces.push(b);for(var d in c)"string"==typeof c[d]&&n(a,b,d,c[d])}function p(a){U.ns.defaultNs=a}function q(a,b){r([a],b)}function r(a,b){var c={dynamicLoad:U.dynamicLoad,resGetPath:U.resGetPath,getAsync:U.getAsync,customLoad:U.customLoad,ns:{namespaces:a,defaultNs:""}},d=Y.toLanguages(U.lng);"string"==typeof U.preload&&(U.preload=[U.preload]);for(var e=0,f=U.preload.length;f>e;e++)for(var g=Y.toLanguages(U.preload[e]),h=0,i=g.length;i>h;h++)d.indexOf(g[h])<0&&d.push(g[h]);for(var j=[],k=0,l=d.length;l>k;k++){var m=!1,n=O[d[k]];if(n)for(var o=0,p=a.length;p>o;o++)n[a[o]]||(m=!0);else m=!0;m&&j.push(d[k])}j.length?N.sync._fetch(j,c,function(c,d){var e=a.length*j.length;Y.each(a,function(a,c){U.ns.namespaces.indexOf(c)<0&&U.ns.namespaces.push(c),Y.each(j,function(a,f){O[f]=O[f]||{},O[f][c]=d[f][c],e--,0===e&&b&&(U.useLocalStorage&&N.sync._storeLocal(O),b())})})}):b&&b()}function s(a,b,c){return"function"==typeof b?(c=b,b={}):b||(b={}),b.lng=a,g(b,c)}function t(){return L}function u(){var a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"];return a.some(function(a){return new RegExp("^"+a).test(L)})?"rtl":"ltr"}function v(a){O={},s(L,a)}function w(){window.i18next=window.i18n,T?window.i18n=T:delete window.i18n}function x(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2));var f;if("html"===d)f=U.defaultValueFromContent?M.extend({defaultValue:a.html()},c):c,a.html(M.t(b,f));else if("text"===d)f=U.defaultValueFromContent?M.extend({defaultValue:a.text()},c):c,a.text(M.t(b,f));else if("prepend"===d)f=U.defaultValueFromContent?M.extend({defaultValue:a.html()},c):c,a.prepend(M.t(b,f));else if("append"===d)f=U.defaultValueFromContent?M.extend({defaultValue:a.html()},c):c,a.append(M.t(b,f));else if(0===d.indexOf("data-")){var g=d.substr("data-".length);f=U.defaultValueFromContent?M.extend({defaultValue:a.data(g)},c):c;var h=M.t(b,f);a.data(g,h),a.attr(d,h)}else f=U.defaultValueFromContent?M.extend({defaultValue:a.attr(d)},c):c,a.attr(d,M.t(b,f))}}function b(b,c){var d=b.attr(U.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.text()||b.val()),d){var e=b,f=b.data("i18n-target");if(f&&(e=b.find(f)||b),c||U.useDataAttrOptions!==!0||(c=b.data("i18n-options")),c=c||{},d.indexOf(";")>=0){var g=d.split(";");M.each(g,function(b,d){""!==d&&a(e,d,c)})}else a(e,d,c);if(U.useDataAttrOptions===!0){var h=M.extend({lng:"non",lngs:[],_origLng:"non"},c);delete h.lng,delete h.lngs,delete h._origLng,b.data("i18n-options",h)}}}M.t=M.t||F,M.fn.i18n=function(a){return this.each(function(){b(M(this),a);var c=M(this).find("["+U.selectorAttr+"]");c.each(function(){b(M(this),a)})})}}function y(){function a(a,b,c){if(0!==b.length){var d="text";if(0===b.indexOf("[")){var e=b.split("]");b=e[1],d=e[0].substr(1,e[0].length-1)}b.indexOf(";")===b.length-1&&(b=b.substr(0,b.length-2)),"html"===d?a.innerHTML=F(b,c):"text"===d?a.textContent=F(b,c):"prepend"===d?a.insertAdjacentHTML(F(b,c),"afterbegin"):"append"===d?a.insertAdjacentHTML(F(b,c),"beforeend"):a.setAttribute(d,F(b,c))}}function b(b,c){var d=b.getAttribute(U.selectorAttr);if(d||"undefined"==typeof d||d===!1||(d=b.textContent||b.value),d){var e=b,f=b.getAttribute("i18n-target");if(f&&(e=b.querySelector(f)||b),d.indexOf(";")>=0)for(var g=d.split(";"),h=0,i=g.length;i>h;h++)""!==g[h]&&a(e,g[h],c);else a(e,d,c)}}N.translateObject=function(a,c){for(var d=a.querySelectorAll("["+U.selectorAttr+"]"),e=0,f=d.length;f>e;e++)b(d[e],c)}}function z(a,b,c,d){if(!a)return a;if(d=d||b,a.indexOf(d.interpolationPrefix||U.interpolationPrefix)<0)return a;var e=d.interpolationPrefix?Y.regexEscape(d.interpolationPrefix):U.interpolationPrefixEscaped,f=d.interpolationSuffix?Y.regexEscape(d.interpolationSuffix):U.interpolationSuffixEscaped,g=d.keyseparator||U.keyseparator,h=b.replace&&"object"==typeof b.replace?b.replace:b,i=new RegExp([e,"(.+?)","(HTML)?",f].join(""),"g"),j=d.escapeInterpolation||U.escapeInterpolation;return a.replace(i,function(a,b,c){for(var d=h,e=b;e.indexOf(g)>=0&&"object"==typeof d&&d;){var f=e.slice(0,e.indexOf(g));e=e.slice(e.indexOf(g)+1),d=d[f]}if(d&&"object"==typeof d&&d.hasOwnProperty(e)){{d[e]}return j&&!c?Y.escape(d[e]):d[e]}return a})}function A(a,b){var c=",",d="{",e="}",f=Y.extend({},b);for(delete f.postProcess;-1!=a.indexOf(U.reusePrefix)&&(P++,!(P>U.maxRecursion));){var g=a.lastIndexOf(U.reusePrefix),h=a.indexOf(U.reuseSuffix,g)+U.reuseSuffix.length,i=a.substring(g,h),j=i.replace(U.reusePrefix,"").replace(U.reuseSuffix,"");if(g>=h)return Y.error("there is an missing closing in following translation value",a),"";if(-1!=j.indexOf(c)){var k=j.indexOf(c);if(-1!=j.indexOf(d,k)&&-1!=j.indexOf(e,k)){var l=j.indexOf(d,k),m=j.indexOf(e,l)+e.length;try{f=Y.extend(f,JSON.parse(j.substring(l,m))),j=j.substring(0,k)}catch(n){}}}var o=I(j,f);a=a.replace(i,Y.regexReplacementEscape(o))}return a}function B(a){return a.context&&("string"==typeof a.context||"number"==typeof a.context)}function C(a){return void 0!==a.count&&"string"!=typeof a.count}function D(a){return void 0!==a.indefinite_article&&"string"!=typeof a.indefinite_article&&a.indefinite_article}function E(a,b){b=b||{};var c=G(a,b),d=J(a,b);return void 0!==d||d===c}function F(a,b){return b=b||{},R?(P=0,I.apply(null,arguments)):(Y.log("i18next not finished initialization. you might have called t function before loading resources finished."),b.defaultValue||"")}function G(a,b){return void 0!==b.defaultValue?b.defaultValue:a}function H(){for(var a=[],b=1;b<arguments.length;b++)a.push(arguments[b]);return{postProcess:"sprintf",sprintf:a}}function I(a,b){if(b&&"object"!=typeof b?"sprintf"===U.shortcutFunction?b=H.apply(null,arguments):"defaultValue"===U.shortcutFunction&&(b={defaultValue:b}):b=b||{},"object"==typeof U.defaultVariables&&(b=Y.extend({},U.defaultVariables,b)),void 0===a||null===a||""===a)return"";"number"==typeof a&&(a=String(a)),"string"==typeof a&&(a=[a]);var c=a[0];if(a.length>1)for(var d=0;d<a.length&&(c=a[d],!E(c,b));d++);var e,f=G(c,b),g=J(c,b),h=b.nsseparator||U.nsseparator,i=b.lng?Y.toLanguages(b.lng,b.fallbackLng):Q,j=b.ns||U.ns.defaultNs;c.indexOf(h)>-1&&(e=c.split(h),j=e[0],c=e[1]),void 0===g&&U.sendMissing&&"function"==typeof U.missingKeyHandler&&(b.lng?U.missingKeyHandler(i[0],j,c,f,i):U.missingKeyHandler(U.lng,j,c,f,i));var k;k="string"==typeof U.postProcess&&""!==U.postProcess?[U.postProcess]:"array"==typeof U.postProcess||"object"==typeof U.postProcess?U.postProcess:[],"string"==typeof b.postProcess&&""!==b.postProcess?k=k.concat([b.postProcess]):("array"==typeof b.postProcess||"object"==typeof b.postProcess)&&(k=k.concat(b.postProcess)),void 0!==g&&k.length&&k.forEach(function(a){aa[a]&&(g=aa[a](g,c,b))});var l=f;return f.indexOf(h)>-1&&(e=f.split(h),l=e[1]),l===c&&U.parseMissingKey&&(f=U.parseMissingKey(f)),void 0===g&&(f=z(f,b),f=A(f,b),k.length&&(g=G(c,b),k.forEach(function(a){aa[a]&&(g=aa[a](g,c,b))}))),void 0!==g?g:f}function J(a,b){b=b||{};var c,d,e=G(a,b),f=Q;if(!O)return e;if("cimode"===f[0].toLowerCase())return e;if(b.lngs&&(f=b.lngs),b.lng&&(f=Y.toLanguages(b.lng,b.fallbackLng),!O[f[0]])){var g=U.getAsync;U.getAsync=!1,N.sync.load(f,U,function(a,b){Y.extend(O,b),U.getAsync=g})}var h=b.ns||U.ns.defaultNs,i=b.nsseparator||U.nsseparator;if(a.indexOf(i)>-1){var j=a.split(i);h=j[0],a=j[1]}if(B(b)){c=Y.extend({},b),delete c.context,c.defaultValue=U.contextNotFound;var k=h+i+a+"_"+b.context;if(d=F(k,c),d!=U.contextNotFound)return z(d,{context:b.context})}if(C(b,f[0])){c=Y.extend({lngs:[f[0]]},b),delete c.count,c._origLng=c._origLng||c.lng||f[0],delete c.lng,c.defaultValue=U.pluralNotFound;var l;if(_.needsPlural(f[0],b.count)){l=h+i+a+U.pluralSuffix;var m=_.get(f[0],b.count);m>=0?l=l+"_"+m:1===m&&(l=h+i+a)}else l=h+i+a;if(d=F(l,c),d!=U.pluralNotFound)return z(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});if(!(f.length>1))return c.lng=c._origLng,delete c._origLng,d=F(h+i+a,c),z(d,{count:b.count,interpolationPrefix:b.interpolationPrefix,interpolationSuffix:b.interpolationSuffix});var n=f.slice();if(n.shift(),b=Y.extend(b,{lngs:n}),b._origLng=c._origLng,delete b.lng,d=F(h+i+a,b),d!=U.pluralNotFound)return d}if(D(b)){var o=Y.extend({},b);delete o.indefinite_article,o.defaultValue=U.indefiniteNotFound;var p=h+i+a+(b.count&&!C(b,f[0])||!b.count?U.indefiniteSuffix:"");if(d=F(p,o),d!=U.indefiniteNotFound)return d}for(var q,r=b.keyseparator||U.keyseparator,s=a.split(r),t=0,u=f.length;u>t&&void 0===q;t++){for(var v=f[t],w=0,x=O[v]&&O[v][h];s[w];)x=x&&x[s[w]],w++;if(void 0!==x&&(!U.showKeyIfEmpty||""!==x)){var y=Object.prototype.toString.apply(x);if("string"==typeof x)x=z(x,b),x=A(x,b);else if("[object Array]"!==y||U.returnObjectTrees||b.returnObjectTrees){if(null===x&&U.fallbackOnNull===!0)x=void 0;else if(null!==x)if(U.returnObjectTrees||b.returnObjectTrees){if("[object Number]"!==y&&"[object Function]"!==y&&"[object RegExp]"!==y){var E="[object Array]"===y?[]:{};Y.each(x,function(c){E[c]=I(h+i+a+r+c,b)}),x=E}}else U.objectTreeKeyHandler&&"function"==typeof U.objectTreeKeyHandler?x=U.objectTreeKeyHandler(a,x,v,h,b):(x="key '"+h+":"+a+" ("+v+")' returned an object instead of string.",Y.log(x))}else x=x.join("\n"),x=z(x,b),x=A(x,b);"string"==typeof x&&""===x.trim()&&U.fallbackOnEmpty===!0&&(x=void 0),q=x}}if(void 0===q&&!b.isFallbackLookup&&(U.fallbackToDefaultNS===!0||U.fallbackNS&&U.fallbackNS.length>0)){if(b.isFallbackLookup=!0,U.fallbackNS.length){for(var H=0,K=U.fallbackNS.length;K>H;H++)if(q=J(U.fallbackNS[H]+i+a,b),q||""===q&&U.fallbackOnEmpty===!1){var L=q.indexOf(i)>-1?q.split(i)[1]:q,M=e.indexOf(i)>-1?e.split(i)[1]:e;if(L!==M)break}}else b.ns=U.ns.defaultNs,q=J(a,b);b.isFallbackLookup=!1}return q}function K(){var a,b=U.lngWhitelist||[],c=[];if("undefined"!=typeof window&&!function(){for(var a=window.location.search.substring(1),b=a.split("&"),d=0;d<b.length;d++){var e=b[d].indexOf("=");if(e>0){var f=b[d].substring(0,e);f==U.detectLngQS&&c.push(b[d].substring(e+1))}}}(),U.useCookie&&"undefined"!=typeof document){var d=Y.cookie.read(U.cookieName);d&&c.push(d)}if(U.detectLngFromLocalStorage&&"undefined"!=typeof window&&window.localStorage){var e=Y.localStorage.getItem("i18next_lng");e&&c.push(e)}if("undefined"!=typeof navigator){if(navigator.languages)for(var f=0;f<navigator.languages.length;f++)c.push(navigator.languages[f]);navigator.userLanguage&&c.push(navigator.userLanguage),navigator.language&&c.push(navigator.language)}return function(){for(var d=0;d<c.length;d++){var e=c[d];if(e.indexOf("-")>-1){var f=e.split("-");e=U.lowerCaseLng?f[0].toLowerCase()+"-"+f[1].toLowerCase():f[0].toLowerCase()+"-"+f[1].toUpperCase()}if(0===b.length||b.indexOf(e)>-1){a=e;break}}}(),a||(a=U.fallbackLng[0]),a}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;if(arguments.length>0&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(var e=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(e in b&&b[e]===a)return e;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=c;arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d))));for(var e=d>=0?Math.min(d,c-1):c-Math.abs(d);e>=0;e--)if(e in b&&b[e]===a)return e;return-1}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var L,M=a.jQuery||a.Zepto,N={},O={},P=0,Q=[],R=!1,S={},T=null;"undefined"!=typeof module&&module.exports?module.exports=N:(M&&(M.i18n=M.i18n||N),a.i18n&&(T=a.i18n),a.i18n=N),S={load:function(a,b,c){b.useLocalStorage?S._loadLocal(a,b,function(d,e){for(var f=[],g=0,h=a.length;h>g;g++)e[a[g]]||f.push(a[g]);f.length>0?S._fetch(f,b,function(a,b){Y.extend(e,b),S._storeLocal(b),c(a,e)}):c(d,e)}):S._fetch(a,b,function(a,b){c(a,b)})},_loadLocal:function(a,b,c){var d={},e=(new Date).getTime();if(window.localStorage){var f=a.length;Y.each(a,function(a,g){var h=Y.localStorage.getItem("res_"+g);h&&(h=JSON.parse(h),h.i18nStamp&&h.i18nStamp+b.localStorageExpirationTime>e&&(d[g]=h)),f--,0===f&&c(null,d)})}},_storeLocal:function(a){if(window.localStorage)for(var b in a)a[b].i18nStamp=(new Date).getTime(),Y.localStorage.setItem("res_"+b,JSON.stringify(a[b]))},_fetch:function(a,b,c){var d=b.ns,e={};if(b.dynamicLoad){var f=function(a,b){c(a,b)};if("function"==typeof b.customLoad)b.customLoad(a,d.namespaces,b,f);else{var g=z(b.resGetPath,{lng:a.join("+"),ns:d.namespaces.join("+")});Y.ajax({url:g,cache:b.cache,success:function(a){Y.log("loaded: "+g),f(null,a)},error:function(a,b,c){Y.log("failed loading: "+g),f("failed loading resource.json error: "+c)},dataType:"json",async:b.getAsync,timeout:b.ajaxTimeout})}}else{var h,i=d.namespaces.length*a.length;Y.each(d.namespaces,function(d,f){Y.each(a,function(a,d){var g=function(a,b){a&&(h=h||[],h.push(a)),e[d]=e[d]||{},e[d][f]=b,i--,0===i&&c(h,e)};"function"==typeof b.customLoad?b.customLoad(d,f,b,g):S._fetchOne(d,f,b,g)})})}},_fetchOne:function(a,b,c,d){var e=z(c.resGetPath,{lng:a,ns:b});Y.ajax({url:e,cache:c.cache,success:function(a){Y.log("loaded: "+e),d(null,a)},error:function(a,b,c){if(b&&200==b||a&&a.status&&200==a.status)Y.error("There is a typo in: "+e);else if(b&&404==b||a&&a.status&&404==a.status)Y.log("Does not exist: "+e);else{var f=b?b:a&&a.status?a.status:null;Y.log(f+" when loading "+e)}d(c,{})},dataType:"json",async:c.getAsync,timeout:c.ajaxTimeout,headers:c.headers})},postMissing:function(a,b,c,d,e){var f={};f[c]=d;var g=[];if("fallback"===U.sendMissingTo&&U.fallbackLng[0]!==!1)for(var h=0;h<U.fallbackLng.length;h++)g.push({lng:U.fallbackLng[h],url:z(U.resPostPath,{lng:U.fallbackLng[h],ns:b})});else if("current"===U.sendMissingTo||"fallback"===U.sendMissingTo&&U.fallbackLng[0]===!1)g.push({lng:a,url:z(U.resPostPath,{lng:a,ns:b})});else if("all"===U.sendMissingTo)for(var h=0,i=e.length;i>h;h++)g.push({lng:e[h],url:z(U.resPostPath,{lng:e[h],ns:b})});for(var j=0,k=g.length;k>j;j++){var l=g[j];Y.ajax({url:l.url,type:U.sendType,data:f,success:function(){Y.log("posted missing key '"+c+"' to: "+l.url);for(var a=c.split("."),e=0,f=O[l.lng][b];a[e];)f=f[a[e]]=e===a.length-1?d:f[a[e]]||{},e++},error:function(){Y.log("failed posting missing key '"+c+"' to: "+l.url)},dataType:"json",async:U.postAsync,timeout:U.ajaxTimeout})}},reload:v};var U={lng:void 0,load:"all",preload:[],lowerCaseLng:!1,returnObjectTrees:!1,fallbackLng:["dev"],fallbackNS:[],detectLngQS:"setLng",detectLngFromLocalStorage:!1,ns:{namespaces:["translation"],defaultNs:"translation"},fallbackOnNull:!0,fallbackOnEmpty:!1,fallbackToDefaultNS:!1,showKeyIfEmpty:!1,nsseparator:":",keyseparator:".",selectorAttr:"data-i18n",debug:!1,resGetPath:"locales/__lng__/__ns__.json",resPostPath:"locales/add/__lng__/__ns__",getAsync:!0,postAsync:!0,resStore:void 0,useLocalStorage:!1,localStorageExpirationTime:6048e5,dynamicLoad:!1,sendMissing:!1,sendMissingTo:"fallback",sendType:"POST",interpolationPrefix:"__",interpolationSuffix:"__",defaultVariables:!1,reusePrefix:"$t(",reuseSuffix:")",pluralSuffix:"_plural",pluralNotFound:["plural_not_found",Math.random()].join(""),contextNotFound:["context_not_found",Math.random()].join(""),escapeInterpolation:!1,indefiniteSuffix:"_indefinite",indefiniteNotFound:["indefinite_not_found",Math.random()].join(""),setJqueryExt:!0,defaultValueFromContent:!0,useDataAttrOptions:!1,cookieExpirationTime:void 0,useCookie:!0,cookieName:"i18next",cookieDomain:void 0,objectTreeKeyHandler:void 0,postProcess:void 0,parseMissingKey:void 0,missingKeyHandler:S.postMissing,ajaxTimeout:0,shortcutFunction:"sprintf"},V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},W={create:function(a,b,c,d){var e;if(c){var f=new Date;f.setTime(f.getTime()+60*c*1e3),e="; expires="+f.toGMTString()}else e="";d=d?"domain="+d+";":"",document.cookie=a+"="+b+e+";"+d+"path=/"},read:function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(b))return e.substring(b.length,e.length)}return null},remove:function(a){this.create(a,"",-1)}},X={create:function(){},read:function(){return null},remove:function(){}},Y={extend:M?M.extend:b,deepExtend:c,each:M?M.each:d,ajax:M?M.ajax:"undefined"!=typeof document?f:function(){},cookie:"undefined"!=typeof document?W:X,detectLanguage:K,escape:e,log:function(a){U.debug&&"undefined"!=typeof console&&console.log(a)},error:function(a){"undefined"!=typeof console&&console.error(a)},getCountyIndexOfLng:function(a){var b=0;return("nb-NO"===a||"nn-NO"===a||"nb-no"===a||"nn-no"===a)&&(b=1),b},toLanguages:function(a,b){function c(a){var b=a;if("string"==typeof a&&a.indexOf("-")>-1){var c=a.split("-");b=U.lowerCaseLng?c[0].toLowerCase()+"-"+c[1].toLowerCase():c[0].toLowerCase()+"-"+c[1].toUpperCase()}else b=U.lowerCaseLng?a.toLowerCase():a;return b}var d=this.log;b=b||U.fallbackLng,"string"==typeof b&&(b=[b]);var e=[],f=U.lngWhitelist||!1,g=function(a){!f||f.indexOf(a)>-1?e.push(a):d("rejecting non-whitelisted language: "+a)};if("string"==typeof a&&a.indexOf("-")>-1){var h=a.split("-");"unspecific"!==U.load&&g(c(a)),"current"!==U.load&&g(c(h[this.getCountyIndexOfLng(a)]))}else g(c(a));for(var i=0;i<b.length;i++)-1===e.indexOf(b[i])&&b[i]&&e.push(c(b[i]));return e},regexEscape:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},regexReplacementEscape:function(a){return"string"==typeof a?a.replace(/\$/g,"$$$$"):a},localStorage:{setItem:function(a,b){if(window.localStorage)try{window.localStorage.setItem(a,b)}catch(c){Y.log('failed to set value for key "'+a+'" to localStorage.')}},getItem:function(a,b){if(window.localStorage)try{return window.localStorage.getItem(a,b)}catch(c){return void Y.log('failed to get value for key "'+a+'" from localStorage.')}}}};Y.applyReplacement=z;var Z=[["ach","Acholi",[1,2],1],["af","Afrikaans",[1,2],2],["ak","Akan",[1,2],1],["am","Amharic",[1,2],1],["an","Aragonese",[1,2],2],["ar","Arabic",[0,1,2,3,11,100],5],["arn","Mapudungun",[1,2],1],["ast","Asturian",[1,2],2],["ay","Aymará",[1],3],["az","Azerbaijani",[1,2],2],["be","Belarusian",[1,2,5],4],["bg","Bulgarian",[1,2],2],["bn","Bengali",[1,2],2],["bo","Tibetan",[1],3],["br","Breton",[1,2],1],["bs","Bosnian",[1,2,5],4],["ca","Catalan",[1,2],2],["cgg","Chiga",[1],3],["cs","Czech",[1,2,5],6],["csb","Kashubian",[1,2,5],7],["cy","Welsh",[1,2,3,8],8],["da","Danish",[1,2],2],["de","German",[1,2],2],["dev","Development Fallback",[1,2],2],["dz","Dzongkha",[1],3],["el","Greek",[1,2],2],["en","English",[1,2],2],["eo","Esperanto",[1,2],2],["es","Spanish",[1,2],2],["es_ar","Argentinean Spanish",[1,2],2],["et","Estonian",[1,2],2],["eu","Basque",[1,2],2],["fa","Persian",[1],3],["fi","Finnish",[1,2],2],["fil","Filipino",[1,2],1],["fo","Faroese",[1,2],2],["fr","French",[1,2],9],["fur","Friulian",[1,2],2],["fy","Frisian",[1,2],2],["ga","Irish",[1,2,3,7,11],10],["gd","Scottish Gaelic",[1,2,3,20],11],["gl","Galician",[1,2],2],["gu","Gujarati",[1,2],2],["gun","Gun",[1,2],1],["ha","Hausa",[1,2],2],["he","Hebrew",[1,2],2],["hi","Hindi",[1,2],2],["hr","Croatian",[1,2,5],4],["hu","Hungarian",[1,2],2],["hy","Armenian",[1,2],2],["ia","Interlingua",[1,2],2],["id","Indonesian",[1],3],["is","Icelandic",[1,2],12],["it","Italian",[1,2],2],["ja","Japanese",[1],3],["jbo","Lojban",[1],3],["jv","Javanese",[0,1],13],["ka","Georgian",[1],3],["kk","Kazakh",[1],3],["km","Khmer",[1],3],["kn","Kannada",[1,2],2],["ko","Korean",[1],3],["ku","Kurdish",[1,2],2],["kw","Cornish",[1,2,3,4],14],["ky","Kyrgyz",[1],3],["lb","Letzeburgesch",[1,2],2],["ln","Lingala",[1,2],1],["lo","Lao",[1],3],["lt","Lithuanian",[1,2,10],15],["lv","Latvian",[1,2,0],16],["mai","Maithili",[1,2],2],["mfe","Mauritian Creole",[1,2],1],["mg","Malagasy",[1,2],1],["mi","Maori",[1,2],1],["mk","Macedonian",[1,2],17],["ml","Malayalam",[1,2],2],["mn","Mongolian",[1,2],2],["mnk","Mandinka",[0,1,2],18],["mr","Marathi",[1,2],2],["ms","Malay",[1],3],["mt","Maltese",[1,2,11,20],19],["nah","Nahuatl",[1,2],2],["nap","Neapolitan",[1,2],2],["nb","Norwegian Bokmal",[1,2],2],["ne","Nepali",[1,2],2],["nl","Dutch",[1,2],2],["nn","Norwegian Nynorsk",[1,2],2],["no","Norwegian",[1,2],2],["nso","Northern Sotho",[1,2],2],["oc","Occitan",[1,2],1],["or","Oriya",[2,1],2],["pa","Punjabi",[1,2],2],["pap","Papiamento",[1,2],2],["pl","Polish",[1,2,5],7],["pms","Piemontese",[1,2],2],["ps","Pashto",[1,2],2],["pt","Portuguese",[1,2],2],["pt_br","Brazilian Portuguese",[1,2],2],["rm","Romansh",[1,2],2],["ro","Romanian",[1,2,20],20],["ru","Russian",[1,2,5],4],["sah","Yakut",[1],3],["sco","Scots",[1,2],2],["se","Northern Sami",[1,2],2],["si","Sinhala",[1,2],2],["sk","Slovak",[1,2,5],6],["sl","Slovenian",[5,1,2,3],21],["so","Somali",[1,2],2],["son","Songhay",[1,2],2],["sq","Albanian",[1,2],2],["sr","Serbian",[1,2,5],4],["su","Sundanese",[1],3],["sv","Swedish",[1,2],2],["sw","Swahili",[1,2],2],["ta","Tamil",[1,2],2],["te","Telugu",[1,2],2],["tg","Tajik",[1,2],1],["th","Thai",[1],3],["ti","Tigrinya",[1,2],1],["tk","Turkmen",[1,2],2],["tr","Turkish",[1,2],1],["tt","Tatar",[1],3],["ug","Uyghur",[1],3],["uk","Ukrainian",[1,2,5],4],["ur","Urdu",[1,2],2],["uz","Uzbek",[1,2],1],["vi","Vietnamese",[1],3],["wa","Walloon",[1,2],1],["wo","Wolof",[1],3],["yo","Yoruba",[1,2],2],["zh","Chinese",[1],3]],$={1:function(a){return Number(a>1)},2:function(a){return Number(1!=a)},3:function(){return 0},4:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},5:function(a){return Number(0===a?0:1==a?1:2==a?2:a%100>=3&&10>=a%100?3:a%100>=11?4:5)},6:function(a){return Number(1==a?0:a>=2&&4>=a?1:2)},7:function(a){return Number(1==a?0:a%10>=2&&4>=a%10&&(10>a%100||a%100>=20)?1:2)},8:function(a){return Number(1==a?0:2==a?1:8!=a&&11!=a?2:3)},9:function(a){return Number(a>=2)},10:function(a){return Number(1==a?0:2==a?1:7>a?2:11>a?3:4)},11:function(a){return Number(1==a||11==a?0:2==a||12==a?1:a>2&&20>a?2:3)},12:function(a){return Number(a%10!=1||a%100==11)},13:function(a){return Number(0!==a)},14:function(a){return Number(1==a?0:2==a?1:3==a?2:3)},15:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&(10>a%100||a%100>=20)?1:2)},16:function(a){return Number(a%10==1&&a%100!=11?0:0!==a?1:2)},17:function(a){return Number(1==a||a%10==1?0:1)},18:function(a){return Number(0==a?0:1==a?1:2)},19:function(a){return Number(1==a?0:0===a||a%100>1&&11>a%100?1:a%100>10&&20>a%100?2:3)},20:function(a){return Number(1==a?0:0===a||a%100>0&&20>a%100?1:2)},21:function(a){return Number(a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0)}},_={rules:function(){var a,b={};for(a=Z.length;a--;)b[Z[a][0]]={name:Z[a][1],numbers:Z[a][2],plurals:$[Z[a][3]]};return b}(),addRule:function(a,b){_.rules[a]=b},setCurrentLng:function(a){if(!_.currentRule||_.currentRule.lng!==a){var b=a.split("-");_.currentRule={lng:a,rule:_.rules[b[0]]}}},needsPlural:function(a,b){var c,d=a.split("-");return c=_.currentRule&&_.currentRule.lng===a?_.currentRule.rule:_.rules[d[Y.getCountyIndexOfLng(a)]],c&&c.numbers.length<=1?!1:1!==this.get(a,b)},get:function(a,b){function c(b,c){var d;if(d=_.currentRule&&_.currentRule.lng===a?_.currentRule.rule:_.rules[b]){var e;e=d.plurals(d.noAbs?c:Math.abs(c));var f=d.numbers[e];return 2===d.numbers.length&&1===d.numbers[0]&&(2===f?f=-1:1===f&&(f=1)),f}return 1===c?"1":"-1"}var d=a.split("-");return c(d[Y.getCountyIndexOfLng(a)],b)}},aa={},ba=function(a,b){aa[a]=b},ca=function(){function a(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function b(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")}var c=function(){return c.cache.hasOwnProperty(arguments[0])||(c.cache[arguments[0]]=c.parse(arguments[0])),c.format.call(null,c.cache[arguments[0]],arguments)};return c.format=function(c,d){var e,f,g,h,i,j,k,l=1,m=c.length,n="",o=[];for(f=0;m>f;f++)if(n=a(c[f]),"string"===n)o.push(c[f]);else if("array"===n){if(h=c[f],h[2])for(e=d[l],g=0;g<h[2].length;g++){if(!e.hasOwnProperty(h[2][g]))throw ca('[sprintf] property "%s" does not exist',h[2][g]);e=e[h[2][g]]}else e=h[1]?d[h[1]]:d[l++];if(/[^s]/.test(h[8])&&"number"!=a(e))throw ca("[sprintf] expecting number but found %s",a(e));switch(h[8]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e,10);break;case"e":e=h[7]?e.toExponential(h[7]):e.toExponential();break;case"f":e=h[7]?parseFloat(e).toFixed(h[7]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&h[7]?e.substring(0,h[7]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(h[8])&&h[3]&&e>=0?"+"+e:e,j=h[4]?"0"==h[4]?"0":h[4].charAt(1):" ",k=h[6]-String(e).length,i=h[6]?b(j,k):"",o.push(h[5]?e+i:i+e)}return o.join("")},c.cache={},c.parse=function(a){for(var b=a,c=[],d=[],e=0;b;){if(null!==(c=/^[^\x25]+/.exec(b)))d.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(b)))d.push("%");else{if(null===(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)))throw"[sprintf] huh?";if(c[2]){e|=1;var f=[],g=c[2],h=[];if(null===(h=/^([a-z_][a-z_\d]*)/i.exec(g)))throw"[sprintf] huh?";
for(f.push(h[1]);""!==(g=g.substring(h[0].length));)if(null!==(h=/^\.([a-z_][a-z_\d]*)/i.exec(g)))f.push(h[1]);else{if(null===(h=/^\[(\d+)\]/.exec(g)))throw"[sprintf] huh?";f.push(h[1])}c[2]=f}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";d.push(c)}b=b.substring(c[0].length)}return d},c}(),da=function(a,b){return b.unshift(a),ca.apply(null,b)};ba("sprintf",function(a,b,c){return c.sprintf?"[object Array]"===Object.prototype.toString.apply(c.sprintf)?da(a,c.sprintf):"object"==typeof c.sprintf?ca(a,c.sprintf):a:a}),N.init=g,N.isInitialized=h,N.setLng=s,N.preload=i,N.addResourceBundle=j,N.hasResourceBundle=k,N.getResourceBundle=l,N.addResource=n,N.addResources=o,N.removeResourceBundle=m,N.loadNamespace=q,N.loadNamespaces=r,N.setDefaultNamespace=p,N.t=F,N.translate=F,N.exists=E,N.detectLanguage=Y.detectLanguage,N.pluralExtensions=_,N.sync=S,N.functions=Y,N.lng=t,N.dir=u,N.addPostProcessor=ba,N.applyReplacement=Y.applyReplacement,N.options=U,N.noConflict=w}("undefined"==typeof exports?window:exports);

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "1.10.3",
"version": "1.11.0",
"private": false,

@@ -8,0 +8,0 @@ "main": "i18next.js",

@@ -6,2 +6,4 @@ describe('basic functionality', function() {

//= functions/functions.setlng.spec.js
//= functions/functions.dir.spec.js

@@ -8,0 +10,0 @@ //= functions/functions.preload.spec.js

@@ -39,2 +39,6 @@ describe('postprocessing tranlation', function() {

it('it should postprocess on missing value with multiple post processes', function() {
expect(i18n.t('notFound2', {postProcess: ['myProcessor', 'myProcessor2']})).to.be('ok_from_postprocessor ok');
});
describe('or setting it as default on init', function() {

@@ -60,2 +64,2 @@

});
});

@@ -6,3 +6,3 @@ describe('adding resources after init', function() {

en: { translation: { 'simple_en': 'ok_from_en' } }//,
//'en-US': { translation: { 'simple_en-US': 'ok_from_en-US' } }
// 'en-US': { translation: { 'simple_en-US': 'ok_from_en-US' } }
};

@@ -85,2 +85,4 @@

i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_2': 'ok_from_en-US_2' }}, true);
i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_3': 'ok_from_en-US_3' }}, true);
i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_3': 'ok_from_en-US_3-overwrite' }}, true);
done();

@@ -95,4 +97,32 @@ });

it('it should not overwrite any existing entries if the overwrite switch is off', function() {
expect(i18n.t('deep.simple_en-US_3')).to.be('ok_from_en-US_3');
});
});
describe('with using deep switch and overwrite switch', function() {
beforeEach(function(done) {
i18n.init(i18n.functions.extend(opts, { resStore: resStore }),
function(t) {
i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_1': 'ok_from_en-US_1' }});
i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_2': 'ok_from_en-US_2' }}, true);
i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_3': 'ok_from_en-US_3' }}, true);
i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_3': 'ok_from_en-US_3-overwrite' }}, true, true);
done();
});
});
it('it should add the new namespace to the namespace array', function() {
expect(i18n.t('deep.simple_en-US_1')).to.be('ok_from_en-US_1');
expect(i18n.t('deep.simple_en-US_2')).to.be('ok_from_en-US_2');
});
it('it should overwrite any existing entries if the overwrite switch is on', function() {
expect(i18n.t('deep.simple_en-US_3')).to.be('ok_from_en-US_3-overwrite');
})
});
describe('check if exists', function() {

@@ -121,2 +151,2 @@

});
});

@@ -23,5 +23,6 @@ // public api interface

i18n.lng = lng;
i18n.dir = dir;
i18n.addPostProcessor = addPostProcessor;
i18n.applyReplacement = f.applyReplacement;
i18n.options = o;
i18n.noConflict = noConflict;
i18n.noConflict = noConflict;

@@ -11,3 +11,3 @@ function preload(lngs, cb) {

function addResourceBundle(lng, ns, resources, deep) {
function addResourceBundle(lng, ns, resources, deep, overwrite) {
if (typeof ns !== 'string') {

@@ -24,3 +24,3 @@ resources = ns;

if (deep) {
f.deepExtend(resStore[lng][ns], resources);
f.deepExtend(resStore[lng][ns], resources, overwrite);
} else {

@@ -107,3 +107,3 @@ f.extend(resStore[lng][ns], resources);

if (typeof ns !== 'string') {
resource = ns;
resources = ns;
ns = o.ns.defaultNs;

@@ -209,2 +209,18 @@ } else if (o.ns.namespaces.indexOf(ns) < 0) {

function dir() {
var rtlLangs = [ "ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm",
"acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb",
"arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he",
"iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo",
"men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam"
];
if ( rtlLangs.some( function( lang ) {
return new RegExp( '^' + lang ).test( currentLng );
} ) ) {
return 'rtl';
}
return 'ltr';
}
function reload(cb) {

@@ -224,2 +240,2 @@ resStore = {};

}
}
}

@@ -10,8 +10,16 @@ function _extend(target, source) {

function _deepExtend(target, source) {
function _deepExtend(target, source, overwrite) {
for (var prop in source)
if (prop in target)
_deepExtend(target[prop], source[prop]);
else
if (prop in target) {
// If we reached a leaf string in target or source then replace with source or skip depending on the 'overwrite' switch
if (typeof target[prop] === 'string' || target[prop] instanceof String || typeof source[prop] === 'string' || source[prop] instanceof String) {
if (overwrite) {
target[prop] = source[prop];
}
} else {
_deepExtend(target[prop], source[prop], overwrite);
}
} else {
target[prop] = source[prop];
}
return target;

@@ -18,0 +26,0 @@ }

@@ -156,3 +156,3 @@ // definition http://translate.sourceforge.net/wiki/l10n/pluralforms

17: function(n) {return Number(n==1 || n%10==1 ? 0 : 1);},
18: function(n) {return Number(0 ? 0 : n==1 ? 1 : 2);},
18: function(n) {return Number(n==0 ? 0 : n==1 ? 1 : 2);},
19: function(n) {return Number(n==1 ? 0 : n===0 || ( n%100>1 && n%100<11) ? 1 : (n%100>10 && n%100<20 ) ? 2 : 3);},

@@ -159,0 +159,0 @@ 20: function(n) {return Number(n==1 ? 0 : (n===0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2);},

@@ -153,3 +153,4 @@ sync = {

async : options.getAsync,
timeout: options.ajaxTimeout
timeout: options.ajaxTimeout,
headers: options.headers
});

@@ -156,0 +157,0 @@ },

@@ -9,2 +9,3 @@ function applyReplacement(str, replacementHash, nestedKey, options) {

, suffix = options.interpolationSuffix ? f.regexEscape(options.interpolationSuffix) : o.interpolationSuffixEscaped
, keyseparator = options.keyseparator || o.keyseparator
, unEscapingSuffix = 'HTML'+suffix;

@@ -19,5 +20,5 @@

var keyLeaf = keyMatch;
while (keyLeaf.indexOf(o.keyseparator) >= 0 && typeof objectMatching === 'object' && objectMatching) {
var propName = keyLeaf.slice(0, keyLeaf.indexOf(o.keyseparator));
keyLeaf = keyLeaf.slice(keyLeaf.indexOf(o.keyseparator) + 1);
while (keyLeaf.indexOf(keyseparator) >= 0 && typeof objectMatching === 'object' && objectMatching) {
var propName = keyLeaf.slice(0, keyLeaf.indexOf(keyseparator));
keyLeaf = keyLeaf.slice(keyLeaf.indexOf(keyseparator) + 1);
objectMatching = objectMatching[propName];

@@ -173,2 +174,3 @@ }

, found = _find(key, options)
, nsseparator = options.nsseparator || o.nsseparator
, lngs = options.lng ? f.toLanguages(options.lng, options.fallbackLng) : languages

@@ -179,4 +181,4 @@ , ns = options.ns || o.ns.defaultNs

// split ns and key
if (key.indexOf(o.nsseparator) > -1) {
parts = key.split(o.nsseparator);
if (key.indexOf(nsseparator) > -1) {
parts = key.split(nsseparator);
ns = parts[0];

@@ -219,4 +221,4 @@ key = parts[1];

var splitNotFound = notFound;
if (notFound.indexOf(o.nsseparator) > -1) {
parts = notFound.split(o.nsseparator);
if (notFound.indexOf(nsseparator) > -1) {
parts = notFound.split(nsseparator);
splitNotFound = parts[1];

@@ -233,6 +235,6 @@ }

if (postProcessorsToApply.length) {
var val = _getDefaultValue(key, options);
found = _getDefaultValue(key, options);
postProcessorsToApply.forEach(function(postProcessor) {
if (postProcessors[postProcessor]) {
found = postProcessors[postProcessor](val, key, options);
found = postProcessors[postProcessor](found, key, options);
}

@@ -275,4 +277,5 @@ });

var ns = options.ns || o.ns.defaultNs;
if (key.indexOf(o.nsseparator) > -1) {
var parts = key.split(o.nsseparator);
var nsseparator = options.nsseparator || o.nsseparator;
if (key.indexOf(nsseparator) > -1) {
var parts = key.split(nsseparator);
ns = parts[0];

@@ -287,3 +290,3 @@ key = parts[1];

var contextKey = ns + o.nsseparator + key + '_' + options.context;
var contextKey = ns + nsseparator + key + '_' + options.context;

@@ -305,5 +308,5 @@ translated = translate(contextKey, optionWithoutCount);

if (!pluralExtensions.needsPlural(lngs[0], options.count)) {
pluralKey = ns + o.nsseparator + key;
pluralKey = ns + nsseparator + key;
} else {
pluralKey = ns + o.nsseparator + key + o.pluralSuffix;
pluralKey = ns + nsseparator + key + o.pluralSuffix;
var pluralExtension = pluralExtensions.get(lngs[0], options.count);

@@ -313,3 +316,3 @@ if (pluralExtension >= 0) {

} else if (pluralExtension === 1) {
pluralKey = ns + o.nsseparator + key; // singular
pluralKey = ns + nsseparator + key; // singular
}

@@ -334,3 +337,3 @@ }

// retry with fallbacks
translated = translate(ns + o.nsseparator + key, options);
translated = translate(ns + nsseparator + key, options);
if (translated != o.pluralNotFound) return translated;

@@ -340,3 +343,3 @@ } else {

delete optionWithoutCount._origLng;
translated = translate(ns + o.nsseparator + key, optionWithoutCount);
translated = translate(ns + nsseparator + key, optionWithoutCount);

@@ -356,3 +359,3 @@ return applyReplacement(translated, {

// If we don't have a count, we want the indefinite, if we do have a count, and needsPlural is false
var indefiniteKey = ns + o.nsseparator + key + (((options.count && !needsPlural(options, lngs[0])) || !options.count) ? o.indefiniteSuffix : "");
var indefiniteKey = ns + nsseparator + key + (((options.count && !needsPlural(options, lngs[0])) || !options.count) ? o.indefiniteSuffix : "");
translated = translate(indefiniteKey, optionsWithoutIndef);

@@ -365,3 +368,4 @@ if (translated != o.indefiniteNotFound) {

var found;
var keys = key.split(o.keyseparator);
var keyseparator = options.keyseparator || o.keyseparator;
var keys = key.split(keyseparator);
for (var i = 0, len = lngs.length; i < len; i++ ) {

@@ -401,3 +405,3 @@ if (found !== undefined) break;

f.each(value, function(m) {
copy[m] = _translate(ns + o.nsseparator + key + o.keyseparator + m, options);
copy[m] = _translate(ns + nsseparator + key + keyseparator + m, options);
});

@@ -422,8 +426,8 @@ value = copy;

for (var y = 0, lenY = o.fallbackNS.length; y < lenY; y++) {
found = _find(o.fallbackNS[y] + o.nsseparator + key, options);
found = _find(o.fallbackNS[y] + nsseparator + key, options);
if (found || (found==="" && o.fallbackOnEmpty === false)) {
/* compare value without namespace */
var foundValue = found.indexOf(o.nsseparator) > -1 ? found.split(o.nsseparator)[1] : found
, notFoundValue = notFound.indexOf(o.nsseparator) > -1 ? notFound.split(o.nsseparator)[1] : notFound;
var foundValue = found.indexOf(nsseparator) > -1 ? found.split(nsseparator)[1] : found
, notFoundValue = notFound.indexOf(nsseparator) > -1 ? notFound.split(nsseparator)[1] : notFound;

@@ -430,0 +434,0 @@ if (foundValue !== notFoundValue) break;

@@ -1,2 +0,2 @@

// i18next, v1.10.3
// i18next, v1.11.0
// Copyright (c)2015 Jan Mühlemann (jamuhl).

@@ -177,2 +177,6 @@ // Distributed under MIT license

it('it should postprocess on missing value with multiple post processes', function() {
expect(i18n.t('notFound2', {postProcess: ['myProcessor', 'myProcessor2']})).to.be('ok_from_postprocessor ok');
});
describe('or setting it as default on init', function() {

@@ -179,0 +183,0 @@

@@ -1,2 +0,2 @@

// i18next, v1.10.3
// i18next, v1.11.0
// Copyright (c)2015 Jan Mühlemann (jamuhl).

@@ -111,3 +111,3 @@ // Distributed under MIT license

en: { translation: { 'simple_en': 'ok_from_en' } }//,
//'en-US': { translation: { 'simple_en-US': 'ok_from_en-US' } }
// 'en-US': { translation: { 'simple_en-US': 'ok_from_en-US' } }
};

@@ -190,2 +190,4 @@

i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_2': 'ok_from_en-US_2' }}, true);
i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_3': 'ok_from_en-US_3' }}, true);
i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_3': 'ok_from_en-US_3-overwrite' }}, true);
done();

@@ -200,4 +202,32 @@ });

it('it should not overwrite any existing entries if the overwrite switch is off', function() {
expect(i18n.t('deep.simple_en-US_3')).to.be('ok_from_en-US_3');
});
});
describe('with using deep switch and overwrite switch', function() {
beforeEach(function(done) {
i18n.init(i18n.functions.extend(opts, { resStore: resStore }),
function(t) {
i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_1': 'ok_from_en-US_1' }});
i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_2': 'ok_from_en-US_2' }}, true);
i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_3': 'ok_from_en-US_3' }}, true);
i18n.addResourceBundle('en-US', 'translation', { 'deep': { 'simple_en-US_3': 'ok_from_en-US_3-overwrite' }}, true, true);
done();
});
});
it('it should add the new namespace to the namespace array', function() {
expect(i18n.t('deep.simple_en-US_1')).to.be('ok_from_en-US_1');
expect(i18n.t('deep.simple_en-US_2')).to.be('ok_from_en-US_2');
});
it('it should overwrite any existing entries if the overwrite switch is on', function() {
expect(i18n.t('deep.simple_en-US_3')).to.be('ok_from_en-US_3-overwrite');
})
});
describe('check if exists', function() {

@@ -204,0 +234,0 @@

@@ -1,2 +0,2 @@

// i18next, v1.10.3
// i18next, v1.11.0
// Copyright (c)2015 Jan Mühlemann (jamuhl).

@@ -3,0 +3,0 @@ // Distributed under MIT license

/// <reference path="lib/jquery.d.ts" />
// Type definitions for i18next (v1.5.10 incl. jQuery)
// Type definitions for i18next v1.5.10
// Project: http://i18next.com
// Sources: https://github.com/jamuhl/i18next/
// Definitions by: Maarten Docter <https://github.com/mdocter> - Blog: http://www.maartendocter.nl
// Definitions by: Maarten Docter <https://github.com/mdocter>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// Sources: https://github.com/jamuhl/i18next/
interface IResourceStore {

@@ -16,5 +17,15 @@ [language: string]: IResourceStoreLanguage;

interface IResourceStoreKey {
[key: string];
[key: string]: any;
}
interface I18nTranslateOptions extends I18nextOptions {
defaultValue?: any; // normally a string
// NOTE https://github.com/borisyankov/DefinitelyTyped/pull/5590
toAdd?: any;
child?: any;
sprintf?: any;
count?: any;
context?: any;
}
interface I18nextOptions {

@@ -24,5 +35,5 @@ lng?: string; // Default value: undefined

preload?: string[]; // Default value: []
lowerCaseLng?: bool; // Default value: false
returnObjectTrees?: bool; // Default value: false
fallbackLng?: string; // Default value: 'dev'
lowerCaseLng?: boolean; // Default value: false
returnObjectTrees?: boolean; // Default value: false
fallbackLng?: string|boolean; // Default value: 'dev'
detectLngQS?: string; // Default value: 'setLng'

@@ -33,3 +44,3 @@ ns?: any; // Default value: 'translation' (string), can also be an object

selectorAttr?: string; // Default value: 'data-i18n'
debug?: bool; // Default value: false
debug?: boolean; // Default value: false

@@ -39,11 +50,11 @@ resGetPath?: string; // Default value: 'locales/__lng__/__ns__.json'

getAsync?: bool; // Default value: true
postAsync?: bool; // Default value: true
getAsync?: boolean; // Default value: true
postAsync?: boolean; // Default value: true
resStore?: IResourceStore; // Default value: undefined
useLocalStorage?: bool; // Default value: false
useLocalStorage?: boolean; // Default value: false
localStorageExpirationTime?: number; // Default value: 7 * 24 * 60 * 60 * 1000 (in ms default one week)
dynamicLoad?: bool; // Default value: false
sendMissing?: bool; // Default value: false
dynamicLoad?: boolean; // Default value: false
sendMissing?: boolean; // Default value: false
sendMissingTo?: string; // Default value: 'fallback'. Other options are: current | all

@@ -60,10 +71,13 @@ sendType?: string; // Default value: 'POST'

setJqueryExt?: bool; // Default value: true
defaultValueFromContent?: bool; // Default value: true
useDataAttrOptions?: bool; // Default value: false
setJqueryExt?: boolean; // Default value: true
defaultValueFromContent?: boolean; // Default value: true
useDataAttrOptions?: boolean; // Default value: false
cookieExpirationTime?: number; // Default value: undefined
useCookie?: bool; // Default value: true
useCookie?: boolean; // Default value: true
cookieName?: string; // Default value: 'i18next'
postProcess?: string; // Default value: undefined
// NOTE https://github.com/borisyankov/DefinitelyTyped/pull/5590
replace?: any;
}

@@ -74,6 +88,7 @@

addPostProcessor(name: string, fn: (value: any, key: string, options: any) => string): void;
addResources(language: string, namespace: string, resources: IResourceStoreKey): void;
detectLanguage(): string;
functions: {
extend(target: any, ...objs: any[]): Object;
extend(deep: bool, target: any, ...objs: any[]): Object;
extend(deep: boolean, target: any, ...objs: any[]): Object;
each(collection: any, callback: (indexInArray: any, valueOfElement: any) => any): any;

@@ -88,8 +103,8 @@ ajax(settings: JQueryAjaxSettings): JQueryXHR;

detectLanguage(): string;
log(message: string);
log(message: string): void;
toLanguages(language: string): string[];
regexEscape(str: string): string;
};
init(callback?: (t: (key: string, options?: any) => string) => void ): JQueryDeferred;
init(options?: I18nextOptions, callback?: (t: (key: string, options?: any) => string) => void ): JQueryDeferred;
init(callback?: (err: any, t: (key: string, options?: any) => string) => void ): JQueryDeferred<any>;
init(options?: I18nextOptions, callback?: (err: any, t: (key: string, options?: any) => string) => void ): JQueryDeferred<any>;
lng(): string;

@@ -103,3 +118,3 @@ loadNamespace(namespace: string, callback?: () => void ): void;

plurals: (n: number) => number;
});
}): void;
get (language: string, count: number): number;

@@ -109,6 +124,6 @@ rules: any;

};
preload(language: string, callback?: (t: (key: string, options?: any) => string) => void ): void;
preload(languages: string[], callback?: (t: (key: string, options?: any) => string) => void ): void;
preload(language: string, callback?: (err: any, t: (key: string, options?: any) => string) => void ): void;
preload(languages: string[], callback?: (err: any, t: (key: string, options?: any) => string) => void ): void;
setDefaultNamespace(namespace: string): void;
setLng(language: string, callback?: (t: (key: string, options?: any) => string) => void ): void;
setLng(language: string, callback?: (err: any, t: (key: string, options?: any) => string) => void ): void;
sync: {

@@ -118,4 +133,5 @@ load: (languages: string[], options: I18nextOptions, callback: (err: Error, store: IResourceStore) => void ) => void;

};
t(key: string, options?: any): string;
translate(key: string, options?: any): string;
t(key: string, options?: I18nTranslateOptions): string;
translate(key: string, options?: I18nTranslateOptions): string;
exists(key: string, options?: any): boolean;
}

@@ -130,5 +146,5 @@

interface JQuery {
/* Note: options are same options as used by the translate function. Alternatively by
setting init option or translation option 'useDataAttrOptions = true' the Options
for translation will be read and cached in the elements data-i18n-options attribute.
/* Note: options are same options as used by the translate function. Alternatively by
setting init option or translation option 'useDataAttrOptions = true' the Options
for translation will be read and cached in the elements data-i18n-options attribute.
*/

@@ -138,6 +154,10 @@ i18n: (options?: I18nextOptions) => void;

declare var i18next: I18nextStatic;
declare var i18n: I18nextStatic;
declare module 'i18next' {
export = i18next;
}
export = i18n;
}
declare module 'i18next-client' {
export = i18n;
}
/// <reference path="jquery.d.ts" />
interface spy {
called: bool;
called: boolean;
getCall(x: number): any;
fakeServer: ISinonFakeServer;
calledOnce: bool;
calledWith(x: any, message: string): bool;
calledOnce: boolean;
calledWith(x: any, message: string): boolean;
}

@@ -10,0 +10,0 @@

/// <reference path="../lib/sinon.d.ts" />
/// <reference path="../lib/mocha.d.ts" />
/// <reference path="../lib/jquery.d.ts" />
/// <reference path="../lib/expect.js/expect.js.d.ts" />
/// <reference path="../lib/js-fixtures/fixtures.d.ts" />
/// <reference path="../i18next.d.ts" />
// declarations for expect.js
declare var expect: (actual: string) => any;
declare var expect: (actual: number) => any;
declare function done(): void;
// declarations for jsfixtures.js
declare var setFixtures: (html) => void;
describe('i18next', function () {

@@ -30,3 +27,2 @@

sendMissing: false,
resStore: false,
getAsync: true,

@@ -120,3 +116,3 @@ returnObjectTrees: false,

var spy;
var spy: any;

@@ -149,3 +145,3 @@ beforeEach(function (done) {

var spy;
var spy: any;

@@ -184,3 +180,3 @@ beforeEach(function (done) {

var spy;
var spy: any;

@@ -213,3 +209,3 @@ beforeEach(function (done) {

var spy;
var spy: any;

@@ -337,3 +333,3 @@ beforeEach(function (done) {

var spy;
var spy: any;

@@ -391,3 +387,3 @@ before(function () {

var cbT;
var cbT: any;

@@ -408,3 +404,3 @@ beforeEach(function (done) {

var spy;
var spy: any;

@@ -477,3 +473,3 @@ before(function () {

}
}, function (t) { done(); }));
}, function (t: any) { done(); }));
});

@@ -500,3 +496,3 @@

}
}, function (t) { done(); }));
}, function (t: any) { done(); }));
});

@@ -546,3 +542,3 @@

var spy;
var spy: any;

@@ -617,3 +613,3 @@ beforeEach(function (done) {

describe('to fallback', function () {
var server, stub;
var server: any, stub: any;

@@ -650,3 +646,3 @@ beforeEach(function (done) {

describe('to all', function () {
var server, stub;
var server: any, stub: any;

@@ -685,2 +681,20 @@ beforeEach(function (done) {

describe('adding resources after initialisation', function () {
var frResource = <IResourceStoreKey>{ 'simple_fr': 'ok_from_fr' };
var enResource = <IResourceStoreKey>{ 'simple_en': 'ok_from_en' };
beforeEach(function (done) {
i18n.init({ resStore: {} },
function (t) { done(); });
});
it('it should use resources for translation added after initialisation', function () {
i18n.addResources('fr', 'translation', frResource);
i18n.addResources('en', 'translation', enResource);
expect(i18n.t('simple_fr', { lng: 'fr' })).to.be('ok_from_fr');
expect(i18n.t('simple_en', { lng: 'en' })).to.be('ok_from_en');
});
});
});

@@ -706,2 +720,19 @@ describe('translation functionality', function () {

describe('exists functionality', function () {
var resStore = {
dev: { translation: { empty: '' } },
en: { translation: {} },
'en-US': { translation: {} }
};
beforeEach(function (done) {
i18n.init($.extend(opts, { resStore: resStore }),
function (t) { done(); });
});
it('it should be able to test if a key exists', function () {
expect(i18n.exists('empty')).to.be(false);
});
});
describe('resource string as array', function () {

@@ -1187,3 +1218,3 @@ var resStore = {

beforeEach(function (done) {
i18n.init($.extend(opts, { resStore: resStore })).done(function (t) { done(); });
i18n.init($.extend(opts, { resStore: resStore })).done(function (t: any) { done(); });
});

@@ -1240,6 +1271,4 @@

beforeEach(function (done) {
setFixtures('
fixtures.set('');
');
i18n.init($.extend(opts, { resStore: resStore }),

@@ -1270,6 +1299,4 @@ function (t) { done(); });

beforeEach(function (done) {
setFixtures('
fixtures.set('');
');
i18n.init($.extend(opts, { resStore: resStore }),

@@ -1300,6 +1327,4 @@ function (t) { done(); });

beforeEach(function (done) {
setFixtures('
fixtures.set('');
');
i18n.init($.extend(opts, { resStore: resStore }),

@@ -1321,10 +1346,7 @@ function (t) { done(); });

en: { translation: {} },
'en-US': { translation: { 'simpleTest': '
test
' } }
'en-US': { translation: { 'simpleTest': 'test' } }
};
beforeEach(function (done) {
setFixtures('
');
fixtures.set('');

@@ -1352,6 +1374,4 @@ i18n.init($.extend(opts, { resStore: resStore }),

beforeEach(function (done) {
setFixtures('
fixtures.set('');
');
i18n.init($.extend(opts, {

@@ -1358,0 +1378,0 @@ resStore: resStore,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc