@opfr/utils-type 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1396 -2851
- package/dist/index.umd.js +6 -6
- package/dist/ranks/constants.d.ts.map +1 -1
- package/dist/ranks/constants.js +37 -6
- package/dist/ranks/constants.js.map +1 -1
- package/dist/ranks/types.d.ts +1 -0
- package/dist/ranks/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(C,W){typeof exports=="object"&&typeof module<"u"?W(exports):typeof define=="function"&&define.amd?define(["exports"],W):(C=typeof globalThis<"u"?globalThis:C||self,W(C.utils={}))})(this,function(C){"use strict";var W=(e=>(e.BASIC="BASIC",e.COMMON="COMMON",e.RARE="RARE",e.EPIC="EPIC",e.LEGENDARY="LEGENDARY",e.MYTHIC="MYTHIC",e))(W||{});const Rs={BASIC:{color:"#fff",strength:0,id:W.BASIC},COMMON:{color:"#813D31",strength:1,id:W.COMMON},RARE:{color:"#5B6870",strength:2,id:W.RARE},EPIC:{color:"#C46619",strength:3,id:W.EPIC},LEGENDARY:{color:"#88A3CB",strength:4,id:W.LEGENDARY},MYTHIC:{color:"#F6bF62",strength:5,id:W.MYTHIC}},Ls=["vitality","strength","agility","intelligence","chance","wisdom"],Ts=10,gn=1,Ps=[[200,4],[100,3],[50,2],[0,gn]],Es=100,As=10,Fs={pirate:{name:"pirate",color:"#8A1623",role:"1047815125282848849"},marine:{name:"marine",color:"#387cbc",role:"1047816059937361940"},revolutionary:{name:"revolutionary",color:"#335635",role:"1047815105846444152"},citizen:{name:"citizen",color:"#fff",role:"1147953458507423874"}},Is="citizen",js=["category","alpha","quantity"],Us=(e,t)=>t===null?null:e===t?`-${e}`:t,_=e=>typeof e=="string",Le=()=>{let e,t;const n=new Promise((s,i)=>{e=s,t=i});return n.resolve=e,n.reject=t,n},mn=e=>e==null?"":""+e,Hs=(e,t,n)=>{e.forEach(s=>{t[s]&&(n[s]=t[s])})},Vs=/###/g,pn=e=>e&&e.indexOf("###")>-1?e.replace(Vs,"."):e,yn=e=>!e||_(e),Te=(e,t,n)=>{const s=_(t)?t.split("."):t;let i=0;for(;i<s.length-1;){if(yn(e))return{};const r=pn(s[i]);!e[r]&&n&&(e[r]=new n),Object.prototype.hasOwnProperty.call(e,r)?e=e[r]:e={},++i}return yn(e)?{}:{obj:e,k:pn(s[i])}},_n=(e,t,n)=>{const{obj:s,k:i}=Te(e,t,Object);if(s!==void 0||t.length===1){s[i]=n;return}let r=t[t.length-1],a=t.slice(0,t.length-1),o=Te(e,a,Object);for(;o.obj===void 0&&a.length;)r=`${a[a.length-1]}.${r}`,a=a.slice(0,a.length-1),o=Te(e,a,Object),o&&o.obj&&typeof o.obj[`${o.k}.${r}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${r}`]=n},$s=(e,t,n,s)=>{const{obj:i,k:r}=Te(e,t,Object);i[r]=i[r]||[],i[r].push(n)},Ze=(e,t)=>{const{obj:n,k:s}=Te(e,t);if(n)return n[s]},Ws=(e,t,n)=>{const s=Ze(e,n);return s!==void 0?s:Ze(t,n)},vn=(e,t,n)=>{for(const s in t)s!=="__proto__"&&s!=="constructor"&&(s in e?_(e[s])||e[s]instanceof String||_(t[s])||t[s]instanceof String?n&&(e[s]=t[s]):vn(e[s],t[s],n):e[s]=t[s]);return e},Se=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Gs={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const zs=e=>_(e)?e.replace(/[&<>"'\/]/g,t=>Gs[t]):e;class Ks{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const s=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,s),this.regExpQueue.push(t),s}}const Bs=[" ",",","?","!",";"],qs=new Ks(20),Js=(e,t,n)=>{t=t||"",n=n||"";const s=Bs.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(s.length===0)return!0;const i=qs.getRegExp(`(${s.map(a=>a==="?"?"\\?":a).join("|")})`);let r=!i.test(e);if(!r){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(r=!0)}return r},Mt=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const s=t.split(n);let i=e;for(let r=0;r<s.length;){if(!i||typeof i!="object")return;let a,o="";for(let u=r;u<s.length;++u)if(u!==r&&(o+=n),o+=s[u],a=i[o],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&u<s.length-1)continue;r+=u-r+1;break}i=a}return i},Qe=e=>e&&e.replace("_","-"),Zs={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Xe{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Zs,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,s,i){return i&&!this.debug?null:(_(t[0])&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Xe(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Xe(this.logger,t)}}var X=new Xe;class et{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const i=this.observers[s].get(n)||0;this.observers[s].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[o,u]=a;for(let l=0;l<u;l++)o(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[o,u]=a;for(let l=0;l<u;l++)o.apply(o,[t,...s])})}}class wn extends et{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,n],s&&(Array.isArray(s)?o.push(...s):_(s)&&r?o.push(...s.split(r)):o.push(s)));const u=Ze(this.data,o);return!u&&!n&&!s&&t.indexOf(".")>-1&&(t=o[0],n=o[1],s=o.slice(2).join(".")),u||!a||!_(s)?u:Mt(this.data&&this.data[t]&&this.data[t][n],s,r)}addResource(t,n,s,i){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=[t,n];s&&(o=o.concat(a?s.split(a):s)),t.indexOf(".")>-1&&(o=t.split("."),i=n,n=o[1]),this.addNamespaces(n),_n(this.data,o,i),r.silent||this.emit("added",t,n,s,i)}addResources(t,n,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const r in s)(_(s[r])||Array.isArray(s[r]))&&this.addResource(t,n,r,s[r],{silent:!0});i.silent||this.emit("added",t,n,s)}addResourceBundle(t,n,s,i,r){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[t,n];t.indexOf(".")>-1&&(o=t.split("."),i=s,s=n,n=o[1]),this.addNamespaces(n);let u=Ze(this.data,o)||{};a.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?vn(u,s,r):u={...u,...s},_n(this.data,o,u),a.silent||this.emit("added",t,n,s)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Sn={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,s,i){return e.forEach(r=>{this.processors[r]&&(t=this.processors[r].process(t,n,s,i))}),t}};const bn={};class tt extends et{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Hs(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=X.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const s=this.resolve(t,n);return s&&s.res!==void 0}extractFromKey(t,n){let s=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let r=n.ns||this.options.defaultNS||[];const a=s&&t.indexOf(s)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Js(t,s,i);if(a&&!o){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:r};const l=t.split(s);(s!==i||s===i&&this.options.ns.indexOf(l[0])>-1)&&(r=l.shift()),t=l.join(i)}return _(r)&&(r=[r]),{key:t,namespaces:r}}translate(t,n,s){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(t[t.length-1],n),u=o[o.length-1],l=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()==="cimode"){if(h){const T=n.nsSeparator||this.options.nsSeparator;return i?{res:`${u}${T}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${T}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:a}const f=this.resolve(t,n);let d=f&&f.res;const y=f&&f.usedKey||a,k=f&&f.exactUsedKey||a,L=Object.prototype.toString.apply(d),N=["[object Number]","[object Function]","[object RegExp]"],H=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,F=!this.i18nFormat||this.i18nFormat.handleAsObject,ze=!_(d)&&typeof d!="boolean"&&typeof d!="number";if(F&&d&&ze&&N.indexOf(L)<0&&!(_(H)&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const T=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,d,{...n,ns:o}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(f.res=T,f.usedParams=this.getUsedParamsDetails(n),f):T}if(r){const T=Array.isArray(d),V=T?[]:{},Q=T?k:y;for(const I in d)if(Object.prototype.hasOwnProperty.call(d,I)){const kt=`${Q}${r}${I}`;V[I]=this.translate(kt,{...n,joinArrays:!1,ns:o}),V[I]===kt&&(V[I]=d[I])}d=V}}else if(F&&_(H)&&Array.isArray(d))d=d.join(H),d&&(d=this.extendTranslation(d,t,n,s));else{let T=!1,V=!1;const Q=n.count!==void 0&&!_(n.count),I=tt.hasDefaultValue(n),kt=Q?this.pluralResolver.getSuffix(l,n.count,n):"",mu=n.ordinal&&Q?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):"",Ys=Q&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ke=Ys&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${kt}`]||n[`defaultValue${mu}`]||n.defaultValue;!this.isValidLookup(d)&&I&&(T=!0,d=Ke),this.isValidLookup(d)||(V=!0,d=a);const pu=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&V?void 0:d,Be=I&&Ke!==d&&this.options.updateMissing;if(V||T||Be){if(this.logger.log(Be?"updateKey":"missingKey",l,u,a,Be?Ke:d),r){const $=this.resolve(a,{...n,keySeparator:!1});$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let qe=[];const Ot=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ot&&Ot[0])for(let $=0;$<Ot.length;$++)qe.push(Ot[$]);else this.options.saveMissingTo==="all"?qe=this.languageUtils.toResolveHierarchy(n.lng||this.language):qe.push(n.lng||this.language);const Ns=($,we,Je)=>{const Cs=I&&Je!==d?Je:pu;this.options.missingKeyHandler?this.options.missingKeyHandler($,u,we,Cs,Be,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing($,u,we,Cs,Be,n),this.emit("missingKey",$,u,we,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Q?qe.forEach($=>{const we=this.pluralResolver.getSuffixes($,n);Ys&&n[`defaultValue${this.options.pluralSeparator}zero`]&&we.indexOf(`${this.options.pluralSeparator}zero`)<0&&we.push(`${this.options.pluralSeparator}zero`),we.forEach(Je=>{Ns([$],a+Je,n[`defaultValue${Je}`]||Ke)})}):Ns(qe,a,Ke))}d=this.extendTranslation(d,t,n,f,s),V&&d===a&&this.options.appendNamespaceToMissingKey&&(d=`${u}:${a}`),(V||T)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${a}`:a,T?d:void 0):d=this.options.parseMissingKeyHandler(d))}return i?(f.res=d,f.usedParams=this.getUsedParamsDetails(n),f):d}extendTranslation(t,n,s,i,r){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const l=_(t)&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(l){const d=t.match(this.interpolator.nestingRegexp);h=d&&d.length}let f=s.replace&&!_(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,s.lng||this.language||i.usedLng,s),l){const d=t.match(this.interpolator.nestingRegexp),y=d&&d.length;h<y&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(s.lng=this.language||i.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var d=arguments.length,y=new Array(d),k=0;k<d;k++)y[k]=arguments[k];return r&&r[0]===y[0]&&!s.context?(a.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):a.translate(...y,n)},s)),s.interpolation&&this.interpolator.reset()}const o=s.postProcess||this.options.postProcess,u=_(o)?[o]:o;return t!=null&&u&&u.length&&s.applyPostProcessor!==!1&&(t=Sn.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,i,r,a,o;return _(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(s))return;const l=this.extractFromKey(u,n),h=l.key;i=h;let f=l.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=n.count!==void 0&&!_(n.count),y=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),k=n.context!==void 0&&(_(n.context)||typeof n.context=="number")&&n.context!=="",L=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(N=>{this.isValidLookup(s)||(o=N,!bn[`${L[0]}-${N}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(bn[`${L[0]}-${N}`]=!0,this.logger.warn(`key "${i}" for languages "${L.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),L.forEach(H=>{if(this.isValidLookup(s))return;a=H;const F=[h];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(F,h,H,N,n);else{let T;d&&(T=this.pluralResolver.getSuffix(H,n.count,n));const V=`${this.options.pluralSeparator}zero`,Q=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(F.push(h+T),n.ordinal&&T.indexOf(Q)===0&&F.push(h+T.replace(Q,this.options.pluralSeparator)),y&&F.push(h+V)),k){const I=`${h}${this.options.contextSeparator}${n.context}`;F.push(I),d&&(F.push(I+T),n.ordinal&&T.indexOf(Q)===0&&F.push(I+T.replace(Q,this.options.pluralSeparator)),y&&F.push(I+V))}}let ze;for(;ze=F.pop();)this.isValidLookup(s)||(r=ze,s=this.getResource(H,N,ze,n))}))})}),{res:s,usedKey:i,exactUsedKey:r,usedLng:a,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,s,i):this.resourceStore.getResource(t,n,s,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&!_(t.replace);let i=s?t.replace:t;if(s&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!s){i={...i};for(const r of n)delete i[r]}return i}static hasDefaultValue(t){const n="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&n===s.substring(0,n.length)&&t[s]!==void 0)return!0;return!1}}const Dt=e=>e.charAt(0).toUpperCase()+e.slice(1);class xn{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=X.create("languageUtils")}getScriptPartFromCode(t){if(t=Qe(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Qe(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(_(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map(i=>i.toLowerCase()):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),n.indexOf(s[1].toLowerCase())>-1&&(s[1]=Dt(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),n.indexOf(s[1].toLowerCase())>-1&&(s[1]=Dt(s[1].toLowerCase())),n.indexOf(s[2].toLowerCase())>-1&&(s[2]=Dt(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(s=>{if(n)return;const i=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(s=>{if(n)return;const i=this.getLanguagePartFromCode(s);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(r=>{if(r===i)return r;if(!(r.indexOf("-")<0&&i.indexOf("-")<0)&&(r.indexOf("-")>0&&i.indexOf("-")<0&&r.substring(0,r.indexOf("-"))===i||r.indexOf(i)===0&&i.length>1))return r})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),_(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let s=t[n];return s||(s=t[this.getScriptPartFromCode(n)]),s||(s=t[this.formatLanguageCode(n)]),s||(s=t[this.getLanguagePartFromCode(n)]),s||(s=t.default),s||[]}toResolveHierarchy(t,n){const s=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],r=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return _(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(t))):_(t)&&r(this.formatLanguageCode(t)),s.forEach(a=>{i.indexOf(a)<0&&r(this.formatLanguageCode(a))}),i}}let Qs=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Xs={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const ei=["v1","v2","v3"],ti=["v4"],kn={zero:0,one:1,two:2,few:3,many:4,other:5},ni=()=>{const e={};return Qs.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Xs[t.fc]}})}),e};class si{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=X.create("pluralResolver"),(!this.options.compatibilityJSON||ti.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=ni(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const s=Qe(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:s,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];const a=new Intl.PluralRules(s,{type:i});return this.pluralRulesCache[r]=a,a}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,n);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,s).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,n);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((i,r)=>kn[i]-kn[r]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):s.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,s);return i?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const s=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[s];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const r=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:r():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?r():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!ei.includes(this.options.compatibilityJSON)}}const On=function(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,r=Ws(e,t,n);return!r&&i&&_(n)&&(r=Mt(e,n,s),r===void 0&&(r=Mt(t,n,s))),r},Yt=e=>e.replace(/\$/g,"$$$$");class ii{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=X.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:s,useRawValueToEscape:i,prefix:r,prefixEscaped:a,suffix:o,suffixEscaped:u,formatSeparator:l,unescapeSuffix:h,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:y,nestingSuffix:k,nestingSuffixEscaped:L,nestingOptionsSeparator:N,maxReplaces:H,alwaysFormat:F}=t.interpolation;this.escape=n!==void 0?n:zs,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=r?Se(r):a||"{{",this.suffix=o?Se(o):u||"}}",this.formatSeparator=l||",",this.unescapePrefix=h?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=d?Se(d):y||Se("$t("),this.nestingSuffix=k?Se(k):L||Se(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=H||1e3,this.alwaysFormat=F!==void 0?F:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,s)=>n&&n.source===s?(n.lastIndex=0,n):new RegExp(s,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,s,i){let r,a,o;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=y=>{if(y.indexOf(this.formatSeparator)<0){const H=On(n,u,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(H,void 0,s,{...i,...n,interpolationkey:y}):H}const k=y.split(this.formatSeparator),L=k.shift().trim(),N=k.join(this.formatSeparator).trim();return this.format(On(n,u,L,this.options.keySeparator,this.options.ignoreJSONStructure),N,s,{...i,...n,interpolationkey:L})};this.resetRegExp();const h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>Yt(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?Yt(this.escape(y)):Yt(y)}].forEach(y=>{for(o=0;r=y.regex.exec(t);){const k=r[1].trim();if(a=l(k),a===void 0)if(typeof h=="function"){const N=h(t,r,i);a=_(N)?N:""}else if(i&&Object.prototype.hasOwnProperty.call(i,k))a="";else if(f){a=r[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${t}`),a="";else!_(a)&&!this.useRawValueToEscape&&(a=mn(a));const L=y.safeValue(a);if(t=t.replace(r[0],L),f?(y.regex.lastIndex+=a.length,y.regex.lastIndex-=r[0].length):y.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,r,a;const o=(u,l)=>{const h=this.nestingOptionsSeparator;if(u.indexOf(h)<0)return u;const f=u.split(new RegExp(`${h}[ ]*{`));let d=`{${f[1]}`;u=f[0],d=this.interpolate(d,a);const y=d.match(/'/g),k=d.match(/"/g);(y&&y.length%2===0&&!k||k.length%2!==0)&&(d=d.replace(/'/g,'"'));try{a=JSON.parse(d),l&&(a={...l,...a})}catch(L){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,L),`${u}${h}${d}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,u};for(;i=this.nestingRegexp.exec(t);){let u=[];a={...s},a=a.replace&&!_(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let l=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const h=i[1].split(this.formatSeparator).map(f=>f.trim());i[1]=h.shift(),u=h,l=!0}if(r=n(o.call(this,i[1].trim(),a),a),r&&i[0]===t&&!_(r))return r;_(r)||(r=mn(r)),r||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),r=""),l&&(r=u.reduce((h,f)=>this.format(h,f,s.lng,{...s,interpolationkey:i[1].trim()}),r.trim())),t=t.replace(i[0],r),this.regexp.lastIndex=0}return t}}const ri=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const s=e.split("(");t=s[0].toLowerCase().trim();const i=s[1].substring(0,s[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[o,...u]=a.split(":"),l=u.join(":").trim().replace(/^'+|'+$/g,""),h=o.trim();n[h]||(n[h]=l),l==="false"&&(n[h]=!1),l==="true"&&(n[h]=!0),isNaN(l)||(n[h]=parseInt(l,10))}})}return{formatName:t,formatOptions:n}},be=e=>{const t={};return(n,s,i)=>{let r=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(r={...r,[i.interpolationkey]:void 0});const a=s+JSON.stringify(r);let o=t[a];return o||(o=e(Qe(s),i),t[a]=o),o(n)}};class ai{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=X.create("formatter"),this.options=t,this.formats={number:be((n,s)=>{const i=new Intl.NumberFormat(n,{...s});return r=>i.format(r)}),currency:be((n,s)=>{const i=new Intl.NumberFormat(n,{...s,style:"currency"});return r=>i.format(r)}),datetime:be((n,s)=>{const i=new Intl.DateTimeFormat(n,{...s});return r=>i.format(r)}),relativetime:be((n,s)=>{const i=new Intl.RelativeTimeFormat(n,{...s});return r=>i.format(r,s.range||"day")}),list:be((n,s)=>{const i=new Intl.ListFormat(n,{...s});return r=>i.format(r)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=be(n)}format(t,n,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=n.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find(o=>o.indexOf(")")>-1)){const o=r.findIndex(u=>u.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,o)].join(this.formatSeparator)}return r.reduce((o,u)=>{const{formatName:l,formatOptions:h}=ri(u);if(this.formats[l]){let f=o;try{const d=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=d.locale||d.lng||i.locale||i.lng||s;f=this.formats[l](o,y,{...h,...i,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${l}`);return o},t)}}const oi=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class ui extends et{constructor(t,n,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=X.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,i.backend,i)}queueLoad(t,n,s,i){const r={},a={},o={},u={};return t.forEach(l=>{let h=!0;n.forEach(f=>{const d=`${l}|${f}`;!s.reload&&this.store.hasResourceBundle(l,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?a[d]===void 0&&(a[d]=!0):(this.state[d]=1,h=!1,a[d]===void 0&&(a[d]=!0),r[d]===void 0&&(r[d]=!0),u[f]===void 0&&(u[f]=!0)))}),h||(o[l]=!0)}),(Object.keys(r).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(u)}}loaded(t,n,s){const i=t.split("|"),r=i[0],a=i[1];n&&this.emit("failedLoading",r,a,n),!n&&s&&this.store.addResourceBundle(r,a,s,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&s&&(this.state[t]=0);const o={};this.queue.forEach(u=>{$s(u.loaded,[r],a),oi(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(l=>{o[l]||(o[l]={});const h=u.loaded[l];h.length&&h.forEach(f=>{o[l][f]===void 0&&(o[l][f]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(u=>!u.done)}read(t,n,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:s,tried:i,wait:r,callback:a});return}this.readingCalls++;const o=(l,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(l&&h&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,s,i+1,r*2,a)},r);return}a(l,h)},u=this.backend[s].bind(this.backend);if(u.length===2){try{const l=u(t,n);l&&typeof l.then=="function"?l.then(h=>o(null,h)).catch(o):o(null,l)}catch(l){o(l)}return}return u(t,n,o)}prepareLoading(t,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();_(t)&&(t=this.languageUtils.toResolveHierarchy(t)),_(n)&&(n=[n]);const r=this.queueLoad(t,n,s,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,s){this.prepareLoading(t,n,{},s)}reload(t,n,s){this.prepareLoading(t,n,{reload:!0},s)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=t.split("|"),i=s[0],r=s[1];this.read(i,r,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${n}loading namespace ${r} for language ${i} failed`,a),!a&&o&&this.logger.log(`${n}loaded namespace ${r} for language ${i}`,o),this.loaded(t,a,o)})}saveMissing(t,n,s,i,r){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${s}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){const u={...a,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let h;l.length===5?h=l(t,n,s,i,u):h=l(t,n,s,i),h&&typeof h.then=="function"?h.then(f=>o(null,f)).catch(o):o(null,h)}catch(h){o(h)}else l(t,n,s,i,o,u)}!t||!t[0]||this.store.addResource(t[0],n,s,i)}}}const Mn=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),_(e[1])&&(t.defaultValue=e[1]),_(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(s=>{t[s]=n[s]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Dn=e=>(_(e.ns)&&(e.ns=[e.ns]),_(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),_(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),nt=()=>{},li=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Pe extends et{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Dn(t),this.services={},this.logger=X,this.modules={external:[]},li(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(s=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(_(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=Mn();this.options={...i,...this.options,...Dn(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const r=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?X.init(r(this.modules.logger),this.options):X.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:typeof Intl<"u"&&(h=ai);const f=new xn(this.options);this.store=new wn(this.options.resources,this.options);const d=this.services;d.logger=X,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new si(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=r(h),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new ii(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new ui(r(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(y){for(var k=arguments.length,L=new Array(k>1?k-1:0),N=1;N<k;N++)L[N-1]=arguments[N];t.emit(y,...L)}),this.modules.languageDetector&&(d.languageDetector=r(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=r(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new tt(this.services,this.options),this.translator.on("*",function(y){for(var k=arguments.length,L=new Array(k>1?k-1:0),N=1;N<k;N++)L[N-1]=arguments[N];t.emit(y,...L)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,s||(s=nt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return t.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return t.store[h](...arguments),t}});const u=Le(),l=()=>{const h=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(d),s(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}loadResources(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nt;const i=_(t)?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const r=[],a=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(l=>{l!=="cimode"&&r.indexOf(l)<0&&r.push(l)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>a(u)),this.options.preload&&this.options.preload.forEach(o=>a(o)),this.services.backendConnector.load(r,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(o)})}else s(null)}reloadResources(t,n,s){const i=Le();return typeof t=="function"&&(s=t,t=void 0),typeof n=="function"&&(s=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),s||(s=nt),this.services.backendConnector.reload(t,n,r=>{i.resolve(),s(r)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Sn.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const s=this.languages[n];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(t,n){var s=this;this.isLanguageChangingTo=t;const i=Le();this.emit("languageChanging",t);const r=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},a=(u,l)=>{l?(r(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,i.resolve(function(){return s.t(...arguments)}),n&&n(u,function(){return s.t(...arguments)})},o=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const l=_(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);l&&(this.language||r(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(l)),this.loadResources(l,h=>{a(h,l)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),i}getFixedT(t,n,s){var i=this;const r=function(a,o){let u;if(typeof o!="object"){for(var l=arguments.length,h=new Array(l>2?l-2:0),f=2;f<l;f++)h[f-2]=arguments[f];u=i.options.overloadTranslationOptionHandler([a,o].concat(h))}else u={...o};u.lng=u.lng||r.lng,u.lngs=u.lngs||r.lngs,u.ns=u.ns||r.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||s||r.keyPrefix);const d=i.options.keySeparator||".";let y;return u.keyPrefix&&Array.isArray(a)?y=a.map(k=>`${u.keyPrefix}${d}${k}`):y=u.keyPrefix?`${u.keyPrefix}${d}${a}`:a,i.t(y,u)};return _(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=s,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const a=(o,u)=>{const l=this.services.backendConnector.state[`${o}|${u}`];return l===-1||l===0||l===2};if(n.precheck){const o=n.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(s,t)&&(!i||a(r,t)))}loadNamespaces(t,n){const s=Le();return this.options.ns?(_(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{s.resolve(),n&&n(i)}),s):(n&&n(),Promise.resolve())}loadLanguages(t,n){const s=Le();_(t)&&(t=[t]);const i=this.options.preload||[],r=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return r.length?(this.options.preload=i.concat(r),this.loadResources(a=>{s.resolve(),n&&n(a)}),s):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new xn(Mn());return n.indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Pe(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nt;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},r=new Pe(i);return(t.debug!==void 0||t.prefix!==void 0)&&(r.logger=r.logger.clone(t)),["store","services","language"].forEach(o=>{r[o]=this[o]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},s&&(r.store=new wn(this.store.data,i),r.services.resourceStore=r.store),r.translator=new tt(r.services,i),r.translator.on("*",function(o){for(var u=arguments.length,l=new Array(u>1?u-1:0),h=1;h<u;h++)l[h-1]=arguments[h];r.emit(o,...l)}),r.init(i,n),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const A=Pe.createInstance();A.createInstance=Pe.createInstance,A.createInstance,A.dir,A.init,A.loadResources,A.reloadResources,A.use,A.changeLanguage,A.getFixedT;const Nt=A.t;A.exists,A.setDefaultNamespace,A.hasLoadedNamespace,A.loadNamespaces,A.loadLanguages;const Ct={d1:"<:d1:1159542168738873455>",d2:"<:d2:1159542071049334814>",d3:"<:d3:1159542073914032191>",d4:"<:d4:1159542075512082543>",d5:"<:d5:1159542078179651614>",d6:"<:d6:1159542079458910229>",revolutionary:"<:revolutionnaire:648245785133056020>",pirate:"<:pirate:648245785053626368>",marine:"<:marine:648245784407441429>",berry:"<:berry:1153734056035504158>",xp:"<:xp:1084914564379975772>",success:"<:success:1186707379534954506>",hp:"<:hp:1257776163955277824>",paper:"📄",rock:"🪨",scissor:"✂️",pray:"<:Ryokugyu_pray:1147542990844334280>",gun:"<:fujigun:1050120413243506688>",promise:"<:Luffy_Promise:1027626431565529099>",love:"<:Lawve:1050916817801072730>",note:"<:imsusnote:1136952496456224778>",watching:"<:Carrot_Watching:1024736915922104360>",card:"<:carteDos:1168580012258103387>",cards:{spades:{1:"<:asdepique:1168560615170768967>",2:"<:2depique:1168559430955184259>",3:"<:3depique:1168559437548638248>",4:"<:4depique:1168559679354445934>",5:"<:5depique:1168559725504372796>",6:"<:6depique:1168559764528185394>",7:"<:7depique:1168559459392553061>",8:"<:8depique:1168559887870083162>",9:"<:9depique:1168559471392464988>",10:"<:10depique:1168559958435053598>",J:"<:valetdepique:1168560676202086523>",Q:"<:reinedepique:1168560621722284083>",K:"<:roidepique:1168560628189888634>"},diamonds:{1:"<:asdecarreau:1168560612742279308>",2:"<:2decarreau:1168559427788472330>",3:"<:3decarreau:1168559434138669236>",4:"<:4decarreau:1168559440774041621>",5:"<:5decarreau:1168559445308084256>",6:"<:6decarreau:1168559763462819940>",7:"<:7decarreau:1168559845872517172>",8:"<:8decarreau:1168559888989949994>",9:"<:9decarreau:1168559942215667804>",10:"<:10decarreau:1168559475481907230>",J:"<:valetdecarreau:1168560633634095234>",Q:"<:reinedecarreau:1168560618182291577>",K:"<:roidecarreau:1168560626185011281>"},hearts:{1:"<:asdecoeur:1168560613971214368>",2:"<:2decoeur:1168559428681859073>",3:"<:3decoeur:1168559435950592060>",4:"<:4decoeur:1168559442074284073>",5:"<:5decoeur:1168559723226865725>",6:"<:6decoeur:1168559452509708298>",7:"<:7decoeur:1168559457769365684>",8:"<:8decoeur:1168559463368757339>",9:"<:9decoeur:1168559938897989672>",10:"<:10decoeur:1168559477658751006>",J:"<:valetdecoeur:1168560635991298160>",Q:"<:reinedecoeur:1168560619855822940>",K:"<:roidecoeur:1168560678378950716>"},clubs:{1:"<:asdetrfle:1168560617444081834>",2:"<:2detrfle:1168559432242831512>",3:"<:3detrfle:1168559439440269403>",4:"<:4detrfle:1168559677936762982>",5:"<:5detrfle:1168559449540145153>",6:"<:6detrfle:1168559761260818594>",7:"<:7detrfle:1168559844748435549>",8:"<:8detrfle:1168559466334142575>",9:"<:9detrfle:1168559940953194576>",10:"<:10detrfle:1168559959802380288>",J:"<:valetdetrfle:1168560610531885137>",Q:"<:reinedetrfle:1168560623228026972>",K:"<:roidetrfle:1168560675543580712>"}},factions:{b_citizen_COMMON:"<:BasiqueOPFRbois:1175507882188484761>",b_citizen_RARE:"<:BasiqueOPFRargent:1175507880724668488>",b_citizen_EPIC:"<:BasiqueOPFRor:1175507883501289512>",b_citizen_LEGENDARY:"<:BasiqueOPFRplatine:1175507886714134548>",b_citizen_MYTHIC:"<:BasiqueOPFRultime:1175507889553670264>",b_marine_COMMON:"<:Marinebois:1175507936953512036>",b_marine_RARE:"<:Marineargent:1175508322351321178>",b_marine_EPIC:"<:Marineor:1175508300603863132>",b_marine_LEGENDARY:"<:Marineplatine:1175507940803879012>",b_marine_MYTHIC:"<:Marineultime:1175508279590395977>",b_revolutionary_COMMON:"<:RvoBois:1175507954779295810>",b_revolutionary_RARE:"<:RvoArgent:1175508199118483457>",b_revolutionary_EPIC:"<:RvoOr:1175508111885344819>",b_revolutionary_LEGENDARY:"<:RvoPlatine:1175507958378008756>",b_revolutionary_MYTHIC:"<:RvoUltime:1175508127815319612>",b_pirate_COMMON:"<:Piratebois:1175508259768115272>",b_pirate_RARE:"<:Pirateargent:1175507943987363941>",b_pirate_EPIC:"<:Pirateor:1175508240243621928>",b_pirate_LEGENDARY:"<:Pirateplatine:1175507949578358804>",b_pirate_MYTHIC:"<:Pirateultime:1175507951709061150>"},characteristics:{vitality:"<:vitality:1251861015277338675>",strength:"<:strength:1251860738595618838>",agility:"<:agility:1251860734145728596>",intelligence:"<:intelligence:1251860736943194144>",chance:"<:chance:1251860735827513425>",wisdom:"<:wisdom:1251861017231884378>"},equipment_adventurer_strap:"<:adventurer_strap:1253041086147068035>",equipment_adventurer_collar:"<:adventurer_collar:1253041084611690567>",equipment_adventurer_boots:"<:adventurer_boots:1253041083252867123>",equipment_adventurer_helmet:"<:Casque_cuir:1256965718432550953>",equipment_adventurer_weapon:"<:Dague_cuir:1256965714141515837>",equipment_adventurer_belt:"<:Ceinture_cuir:1256965593333108838>"},Rt=e=>new Intl.NumberFormat("de-DE").format(e);//! moment.js
|
|
1
|
+
(function(S,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("i18next")):typeof define=="function"&&define.amd?define(["exports","i18next"],C):(S=typeof globalThis<"u"?globalThis:S||self,C(S.utils={},S.i18next))})(this,function(S,C){"use strict";var b=(e=>(e.BASIC="BASIC",e.COMMON="COMMON",e.RARE="RARE",e.EPIC="EPIC",e.LEGENDARY="LEGENDARY",e.MYTHIC="MYTHIC",e))(b||{});const Pn={BASIC:{color:"#fff",strength:0,id:b.BASIC,name:(e,t=1)=>C.t(`ranks.${b.BASIC}.text`,{count:t,context:e})},COMMON:{color:"#813D31",strength:1,id:b.COMMON,name:(e,t=1)=>C.t(`ranks.${b.COMMON}.text`,{count:t,context:e})},RARE:{color:"#5B6870",strength:2,id:b.RARE,name:(e,t=1)=>C.t(`ranks.${b.RARE}.text`,{count:t,context:e})},EPIC:{color:"#C46619",strength:3,id:b.EPIC,name:(e,t=1)=>C.t(`ranks.${b.EPIC}.text`,{count:t,context:e})},LEGENDARY:{color:"#88A3CB",strength:4,id:b.LEGENDARY,name:(e,t=1)=>C.t(`ranks.${b.LEGENDARY}.text`,{count:t,context:e})},MYTHIC:{color:"#F6bF62",strength:5,id:b.MYTHIC,name:(e,t=1)=>C.t(`ranks.${b.MYTHIC}.text`,{count:t,context:e})}},En=["vitality","strength","agility","intelligence","chance","wisdom"],Ln=10,Rt=1,An=[[200,4],[100,3],[50,2],[0,Rt]],Hn=100,Wn=10,In={pirate:{name:"pirate",color:"#8A1623",role:"1047815125282848849"},marine:{name:"marine",color:"#387cbc",role:"1047816059937361940"},revolutionary:{name:"revolutionary",color:"#335635",role:"1047815105846444152"},citizen:{name:"citizen",color:"#fff",role:"1147953458507423874"}},Fn="citizen",Un=["category","alpha","quantity"],jn=(e,t)=>t===null?null:e===t?`-${e}`:t,$e={d1:"<:d1:1159542168738873455>",d2:"<:d2:1159542071049334814>",d3:"<:d3:1159542073914032191>",d4:"<:d4:1159542075512082543>",d5:"<:d5:1159542078179651614>",d6:"<:d6:1159542079458910229>",revolutionary:"<:revolutionnaire:648245785133056020>",pirate:"<:pirate:648245785053626368>",marine:"<:marine:648245784407441429>",berry:"<:berry:1153734056035504158>",xp:"<:xp:1084914564379975772>",success:"<:success:1186707379534954506>",hp:"<:hp:1257776163955277824>",paper:"📄",rock:"🪨",scissor:"✂️",pray:"<:Ryokugyu_pray:1147542990844334280>",gun:"<:fujigun:1050120413243506688>",promise:"<:Luffy_Promise:1027626431565529099>",love:"<:Lawve:1050916817801072730>",note:"<:imsusnote:1136952496456224778>",watching:"<:Carrot_Watching:1024736915922104360>",card:"<:carteDos:1168580012258103387>",cards:{spades:{1:"<:asdepique:1168560615170768967>",2:"<:2depique:1168559430955184259>",3:"<:3depique:1168559437548638248>",4:"<:4depique:1168559679354445934>",5:"<:5depique:1168559725504372796>",6:"<:6depique:1168559764528185394>",7:"<:7depique:1168559459392553061>",8:"<:8depique:1168559887870083162>",9:"<:9depique:1168559471392464988>",10:"<:10depique:1168559958435053598>",J:"<:valetdepique:1168560676202086523>",Q:"<:reinedepique:1168560621722284083>",K:"<:roidepique:1168560628189888634>"},diamonds:{1:"<:asdecarreau:1168560612742279308>",2:"<:2decarreau:1168559427788472330>",3:"<:3decarreau:1168559434138669236>",4:"<:4decarreau:1168559440774041621>",5:"<:5decarreau:1168559445308084256>",6:"<:6decarreau:1168559763462819940>",7:"<:7decarreau:1168559845872517172>",8:"<:8decarreau:1168559888989949994>",9:"<:9decarreau:1168559942215667804>",10:"<:10decarreau:1168559475481907230>",J:"<:valetdecarreau:1168560633634095234>",Q:"<:reinedecarreau:1168560618182291577>",K:"<:roidecarreau:1168560626185011281>"},hearts:{1:"<:asdecoeur:1168560613971214368>",2:"<:2decoeur:1168559428681859073>",3:"<:3decoeur:1168559435950592060>",4:"<:4decoeur:1168559442074284073>",5:"<:5decoeur:1168559723226865725>",6:"<:6decoeur:1168559452509708298>",7:"<:7decoeur:1168559457769365684>",8:"<:8decoeur:1168559463368757339>",9:"<:9decoeur:1168559938897989672>",10:"<:10decoeur:1168559477658751006>",J:"<:valetdecoeur:1168560635991298160>",Q:"<:reinedecoeur:1168560619855822940>",K:"<:roidecoeur:1168560678378950716>"},clubs:{1:"<:asdetrfle:1168560617444081834>",2:"<:2detrfle:1168559432242831512>",3:"<:3detrfle:1168559439440269403>",4:"<:4detrfle:1168559677936762982>",5:"<:5detrfle:1168559449540145153>",6:"<:6detrfle:1168559761260818594>",7:"<:7detrfle:1168559844748435549>",8:"<:8detrfle:1168559466334142575>",9:"<:9detrfle:1168559940953194576>",10:"<:10detrfle:1168559959802380288>",J:"<:valetdetrfle:1168560610531885137>",Q:"<:reinedetrfle:1168560623228026972>",K:"<:roidetrfle:1168560675543580712>"}},factions:{b_citizen_COMMON:"<:BasiqueOPFRbois:1175507882188484761>",b_citizen_RARE:"<:BasiqueOPFRargent:1175507880724668488>",b_citizen_EPIC:"<:BasiqueOPFRor:1175507883501289512>",b_citizen_LEGENDARY:"<:BasiqueOPFRplatine:1175507886714134548>",b_citizen_MYTHIC:"<:BasiqueOPFRultime:1175507889553670264>",b_marine_COMMON:"<:Marinebois:1175507936953512036>",b_marine_RARE:"<:Marineargent:1175508322351321178>",b_marine_EPIC:"<:Marineor:1175508300603863132>",b_marine_LEGENDARY:"<:Marineplatine:1175507940803879012>",b_marine_MYTHIC:"<:Marineultime:1175508279590395977>",b_revolutionary_COMMON:"<:RvoBois:1175507954779295810>",b_revolutionary_RARE:"<:RvoArgent:1175508199118483457>",b_revolutionary_EPIC:"<:RvoOr:1175508111885344819>",b_revolutionary_LEGENDARY:"<:RvoPlatine:1175507958378008756>",b_revolutionary_MYTHIC:"<:RvoUltime:1175508127815319612>",b_pirate_COMMON:"<:Piratebois:1175508259768115272>",b_pirate_RARE:"<:Pirateargent:1175507943987363941>",b_pirate_EPIC:"<:Pirateor:1175508240243621928>",b_pirate_LEGENDARY:"<:Pirateplatine:1175507949578358804>",b_pirate_MYTHIC:"<:Pirateultime:1175507951709061150>"},characteristics:{vitality:"<:vitality:1251861015277338675>",strength:"<:strength:1251860738595618838>",agility:"<:agility:1251860734145728596>",intelligence:"<:intelligence:1251860736943194144>",chance:"<:chance:1251860735827513425>",wisdom:"<:wisdom:1251861017231884378>"},equipment_adventurer_strap:"<:adventurer_strap:1253041086147068035>",equipment_adventurer_collar:"<:adventurer_collar:1253041084611690567>",equipment_adventurer_boots:"<:adventurer_boots:1253041083252867123>",equipment_adventurer_helmet:"<:Casque_cuir:1256965718432550953>",equipment_adventurer_weapon:"<:Dague_cuir:1256965714141515837>",equipment_adventurer_belt:"<:Ceinture_cuir:1256965593333108838>"},Be=e=>new Intl.NumberFormat("de-DE").format(e);//! moment.js
|
|
2
2
|
//! version : 2.30.1
|
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
4
|
//! license : MIT
|
|
5
5
|
//! momentjs.com
|
|
6
|
-
var
|
|
7
|
-
[`+
|
|
8
|
-
Arguments: `+Array.prototype.slice.call(
|
|
9
|
-
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Ln={};function Tn(e,t){g.deprecationHandler!=null&&g.deprecationHandler(e,t),Ln[e]||(Rn(t),Ln[e]=!0)}g.suppressDeprecationWarnings=!1,g.deprecationHandler=null;function te(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ci(e){var t,n;for(n in e)b(e,n)&&(t=e[n],te(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ft(e,t){var n=fe({},e),s;for(s in t)b(t,s)&&(pe(e[s])&&pe(t[s])?(n[s]={},fe(n[s],e[s]),fe(n[s],t[s])):t[s]!=null?n[s]=t[s]:delete n[s]);for(s in e)b(e,s)&&!b(t,s)&&pe(e[s])&&(n[s]=fe({},n[s]));return n}function It(e){e!=null&&this.set(e)}var jt;Object.keys?jt=Object.keys:jt=function(e){var t,n=[];for(t in e)b(e,t)&&n.push(t);return n};var fi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function gi(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return te(s)?s.call(t,n):s}function ne(e,t,n){var s=""+Math.abs(e),i=t-s.length,r=e>=0;return(r?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var Ut=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,it=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ht={},xe={};function p(e,t,n,s){var i=s;typeof s=="string"&&(i=function(){return this[s]()}),e&&(xe[e]=i),t&&(xe[t[0]]=function(){return ne(i.apply(this,arguments),t[1],t[2])}),n&&(xe[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function mi(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function pi(e){var t=e.match(Ut),n,s;for(n=0,s=t.length;n<s;n++)xe[t[n]]?t[n]=xe[t[n]]:t[n]=mi(t[n]);return function(i){var r="",a;for(a=0;a<s;a++)r+=te(t[a])?t[a].call(i,e):t[a];return r}}function rt(e,t){return e.isValid()?(t=Pn(t,e.localeData()),Ht[t]=Ht[t]||pi(t),Ht[t](e)):e.localeData().invalidDate()}function Pn(e,t){var n=5;function s(i){return t.longDateFormat(i)||i}for(it.lastIndex=0;n>=0&&it.test(e);)e=e.replace(it,s),it.lastIndex=0,n-=1;return e}var yi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function _i(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Ut).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var vi="Invalid date";function wi(){return this._invalidDate}var Si="%d",bi=/\d{1,2}/;function xi(e){return this._ordinal.replace("%d",e)}var ki={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Oi(e,t,n,s){var i=this._relativeTime[n];return te(i)?i(e,t,n,s):i.replace(/%d/i,e)}function Mi(e,t){var n=this._relativeTime[e>0?"future":"past"];return te(n)?n(t):n.replace(/%s/i,t)}var En={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function z(e){return typeof e=="string"?En[e]||En[e.toLowerCase()]:void 0}function Vt(e){var t={},n,s;for(s in e)b(e,s)&&(n=z(s),n&&(t[n]=e[s]));return t}var Di={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Yi(e){var t=[],n;for(n in e)b(e,n)&&t.push({unit:n,priority:Di[n]});return t.sort(function(s,i){return s.priority-i.priority}),t}var An=/\d/,U=/\d\d/,Fn=/\d{3}/,$t=/\d{4}/,at=/[+-]?\d{6}/,M=/\d\d?/,In=/\d\d\d\d?/,jn=/\d\d\d\d\d\d?/,ot=/\d{1,3}/,Wt=/\d{1,4}/,ut=/[+-]?\d{1,6}/,ke=/\d+/,lt=/[+-]?\d+/,Ni=/Z|[+-]\d\d:?\d\d/gi,dt=/Z|[+-]\d\d(?::?\d\d)?/gi,Ci=/[+-]?\d+(\.\d{1,3})?/,Fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Oe=/^[1-9]\d?/,Gt=/^([1-9]\d|\d)/,ht;ht={};function m(e,t,n){ht[e]=te(t)?t:function(s,i){return s&&n?n:t}}function Ri(e,t){return b(ht,e)?ht[e](t._strict,t._locale):new RegExp(Li(e))}function Li(e){return re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,s,i,r){return n||s||i||r}))}function re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=K(t)),n}var zt={};function O(e,t){var n,s=t,i;for(typeof e=="string"&&(e=[e]),ie(t)&&(s=function(r,a){a[t]=w(r)}),i=e.length,n=0;n<i;n++)zt[e[n]]=s}function Ie(e,t){O(e,function(n,s,i,r){i._w=i._w||{},t(n,i._w,i,r)})}function Ti(e,t,n){t!=null&&b(zt,e)&&zt[e](t,n._a,n,e)}function ct(e){return e%4===0&&e%100!==0||e%400===0}var E=0,ae=1,se=2,P=3,J=4,oe=5,ye=6,Pi=7,Ei=8;p("Y",0,0,function(){var e=this.year();return e<=9999?ne(e,4):"+"+e}),p(0,["YY",2],0,function(){return this.year()%100}),p(0,["YYYY",4],0,"year"),p(0,["YYYYY",5],0,"year"),p(0,["YYYYYY",6,!0],0,"year"),m("Y",lt),m("YY",M,U),m("YYYY",Wt,$t),m("YYYYY",ut,at),m("YYYYYY",ut,at),O(["YYYYY","YYYYYY"],E),O("YYYY",function(e,t){t[E]=e.length===2?g.parseTwoDigitYear(e):w(e)}),O("YY",function(e,t){t[E]=g.parseTwoDigitYear(e)}),O("Y",function(e,t){t[E]=parseInt(e,10)});function je(e){return ct(e)?366:365}g.parseTwoDigitYear=function(e){return w(e)+(w(e)>68?1900:2e3)};var Un=Me("FullYear",!0);function Ai(){return ct(this.year())}function Me(e,t){return function(n){return n!=null?(Hn(this,e,n),g.updateOffset(this,t),this):Ue(this,e)}}function Ue(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Hn(e,t,n){var s,i,r,a,o;if(!(!e.isValid()||isNaN(n))){switch(s=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(i?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(i?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(i?s.setUTCHours(n):s.setHours(n));case"Date":return void(i?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}r=n,a=e.month(),o=e.date(),o=o===29&&a===1&&!ct(r)?28:o,i?s.setUTCFullYear(r,a,o):s.setFullYear(r,a,o)}}function Fi(e){return e=z(e),te(this[e])?this[e]():this}function Ii(e,t){if(typeof e=="object"){e=Vt(e);var n=Yi(e),s,i=n.length;for(s=0;s<i;s++)this[n[s].unit](e[n[s].unit])}else if(e=z(e),te(this[e]))return this[e](t);return this}function ji(e,t){return(e%t+t)%t}var R;Array.prototype.indexOf?R=Array.prototype.indexOf:R=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Kt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ji(t,12);return e+=(t-n)/12,n===1?ct(e)?29:28:31-n%7%2}p("M",["MM",2],"Mo",function(){return this.month()+1}),p("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),p("MMMM",0,0,function(e){return this.localeData().months(this,e)}),m("M",M,Oe),m("MM",M,U),m("MMM",function(e,t){return t.monthsShortRegex(e)}),m("MMMM",function(e,t){return t.monthsRegex(e)}),O(["M","MM"],function(e,t){t[ae]=w(e)-1}),O(["MMM","MMMM"],function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);i!=null?t[ae]=i:v(n).invalidMonth=e});var Ui="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Vn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),$n=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Hi=Fe,Vi=Fe;function $i(e,t){return e?B(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||$n).test(t)?"format":"standalone"][e.month()]:B(this._months)?this._months:this._months.standalone}function Wi(e,t){return e?B(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[$n.test(t)?"format":"standalone"][e.month()]:B(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Gi(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=ee([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?t==="MMM"?(i=R.call(this._shortMonthsParse,a),i!==-1?i:null):(i=R.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=R.call(this._shortMonthsParse,a),i!==-1?i:(i=R.call(this._longMonthsParse,a),i!==-1?i:null)):(i=R.call(this._longMonthsParse,a),i!==-1?i:(i=R.call(this._shortMonthsParse,a),i!==-1?i:null))}function zi(e,t,n){var s,i,r;if(this._monthsParseExact)return Gi.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(i=ee([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[s]&&(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[s].test(e)||n&&t==="MMM"&&this._shortMonthsParse[s].test(e)||!n&&this._monthsParse[s].test(e))return s}function Wn(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=w(t);else if(t=e.localeData().monthsParse(t),!ie(t))return e}var n=t,s=e.date();return s=s<29?s:Math.min(s,Kt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,s):e._d.setMonth(n,s),e}function Gn(e){return e!=null?(Wn(this,e),g.updateOffset(this,!0),this):Ue(this,"Month")}function Ki(){return Kt(this.year(),this.month())}function Bi(e){return this._monthsParseExact?(b(this,"_monthsRegex")||zn.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(b(this,"_monthsShortRegex")||(this._monthsShortRegex=Hi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function qi(e){return this._monthsParseExact?(b(this,"_monthsRegex")||zn.call(this),e?this._monthsStrictRegex:this._monthsRegex):(b(this,"_monthsRegex")||(this._monthsRegex=Vi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function zn(){function e(u,l){return l.length-u.length}var t=[],n=[],s=[],i,r,a,o;for(i=0;i<12;i++)r=ee([2e3,i]),a=re(this.monthsShort(r,"")),o=re(this.months(r,"")),t.push(a),n.push(o),s.push(o),s.push(a);t.sort(e),n.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ji(e,t,n,s,i,r,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}function He(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ft(e,t,n){var s=7+t-n,i=(7+He(e,0,s).getUTCDay()-t)%7;return-i+s-1}function Kn(e,t,n,s,i){var r=(7+n-s)%7,a=ft(e,s,i),o=1+7*(t-1)+r+a,u,l;return o<=0?(u=e-1,l=je(u)+o):o>je(e)?(u=e+1,l=o-je(e)):(u=e,l=o),{year:u,dayOfYear:l}}function Ve(e,t,n){var s=ft(e.year(),t,n),i=Math.floor((e.dayOfYear()-s-1)/7)+1,r,a;return i<1?(a=e.year()-1,r=i+ue(a,t,n)):i>ue(e.year(),t,n)?(r=i-ue(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function ue(e,t,n){var s=ft(e,t,n),i=ft(e+1,t,n);return(je(e)-s+i)/7}p("w",["ww",2],"wo","week"),p("W",["WW",2],"Wo","isoWeek"),m("w",M,Oe),m("ww",M,U),m("W",M,Oe),m("WW",M,U),Ie(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=w(e)});function Zi(e){return Ve(e,this._week.dow,this._week.doy).week}var Qi={dow:0,doy:6};function Xi(){return this._week.dow}function er(){return this._week.doy}function tr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function nr(e){var t=Ve(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}p("d",0,"do","day"),p("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),p("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),p("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),p("e",0,0,"weekday"),p("E",0,0,"isoWeekday"),m("d",M),m("e",M),m("E",M),m("dd",function(e,t){return t.weekdaysMinRegex(e)}),m("ddd",function(e,t){return t.weekdaysShortRegex(e)}),m("dddd",function(e,t){return t.weekdaysRegex(e)}),Ie(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);i!=null?t.d=i:v(n).invalidWeekday=e}),Ie(["d","e","E"],function(e,t,n,s){t[s]=w(e)});function sr(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function ir(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Bt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var rr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Bn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ar="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),or=Fe,ur=Fe,lr=Fe;function dr(e,t){var n=B(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Bt(n,this._week.dow):e?n[e.day()]:n}function hr(e){return e===!0?Bt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function cr(e){return e===!0?Bt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function fr(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=ee([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?t==="dddd"?(i=R.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=R.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=R.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=R.call(this._weekdaysParse,a),i!==-1||(i=R.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=R.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=R.call(this._shortWeekdaysParse,a),i!==-1||(i=R.call(this._weekdaysParse,a),i!==-1)?i:(i=R.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=R.call(this._minWeekdaysParse,a),i!==-1||(i=R.call(this._weekdaysParse,a),i!==-1)?i:(i=R.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function gr(e,t,n){var s,i,r;if(this._weekdaysParseExact)return fr.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++)if(i=ee([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[s].test(e)||n&&t==="ddd"&&this._shortWeekdaysParse[s].test(e)||n&&t==="dd"&&this._minWeekdaysParse[s].test(e)||!n&&this._weekdaysParse[s].test(e))return s}function mr(e){if(!this.isValid())return e!=null?this:NaN;var t=Ue(this,"Day");return e!=null?(e=sr(e,this.localeData()),this.add(e-t,"d")):t}function pr(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function yr(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=ir(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function _r(e){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(b(this,"_weekdaysRegex")||(this._weekdaysRegex=or),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function vr(e){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(b(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ur),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function wr(e){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(b(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=lr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function qt(){function e(h,f){return f.length-h.length}var t=[],n=[],s=[],i=[],r,a,o,u,l;for(r=0;r<7;r++)a=ee([2e3,1]).day(r),o=re(this.weekdaysMin(a,"")),u=re(this.weekdaysShort(a,"")),l=re(this.weekdays(a,"")),t.push(o),n.push(u),s.push(l),i.push(o),i.push(u),i.push(l);t.sort(e),n.sort(e),s.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Jt(){return this.hours()%12||12}function Sr(){return this.hours()||24}p("H",["HH",2],0,"hour"),p("h",["hh",2],0,Jt),p("k",["kk",2],0,Sr),p("hmm",0,0,function(){return""+Jt.apply(this)+ne(this.minutes(),2)}),p("hmmss",0,0,function(){return""+Jt.apply(this)+ne(this.minutes(),2)+ne(this.seconds(),2)}),p("Hmm",0,0,function(){return""+this.hours()+ne(this.minutes(),2)}),p("Hmmss",0,0,function(){return""+this.hours()+ne(this.minutes(),2)+ne(this.seconds(),2)});function qn(e,t){p(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}qn("a",!0),qn("A",!1);function Jn(e,t){return t._meridiemParse}m("a",Jn),m("A",Jn),m("H",M,Gt),m("h",M,Oe),m("k",M,Oe),m("HH",M,U),m("hh",M,U),m("kk",M,U),m("hmm",In),m("hmmss",jn),m("Hmm",In),m("Hmmss",jn),O(["H","HH"],P),O(["k","kk"],function(e,t,n){var s=w(e);t[P]=s===24?0:s}),O(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),O(["h","hh"],function(e,t,n){t[P]=w(e),v(n).bigHour=!0}),O("hmm",function(e,t,n){var s=e.length-2;t[P]=w(e.substr(0,s)),t[J]=w(e.substr(s)),v(n).bigHour=!0}),O("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[P]=w(e.substr(0,s)),t[J]=w(e.substr(s,2)),t[oe]=w(e.substr(i)),v(n).bigHour=!0}),O("Hmm",function(e,t,n){var s=e.length-2;t[P]=w(e.substr(0,s)),t[J]=w(e.substr(s))}),O("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[P]=w(e.substr(0,s)),t[J]=w(e.substr(s,2)),t[oe]=w(e.substr(i))});function br(e){return(e+"").toLowerCase().charAt(0)==="p"}var xr=/[ap]\.?m?\.?/i,kr=Me("Hours",!0);function Or(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Zn={calendar:fi,longDateFormat:yi,invalidDate:vi,ordinal:Si,dayOfMonthOrdinalParse:bi,relativeTime:ki,months:Ui,monthsShort:Vn,week:Qi,weekdays:rr,weekdaysMin:ar,weekdaysShort:Bn,meridiemParse:xr},Y={},$e={},We;function Mr(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n+=1)if(e[n]!==t[n])return n;return s}function Qn(e){return e&&e.toLowerCase().replace("_","-")}function Dr(e){for(var t=0,n,s,i,r;t<e.length;){for(r=Qn(e[t]).split("-"),n=r.length,s=Qn(e[t+1]),s=s?s.split("-"):null;n>0;){if(i=gt(r.slice(0,n).join("-")),i)return i;if(s&&s.length>=n&&Mr(r,s)>=n-1)break;n--}t++}return We}function Yr(e){return!!(e&&e.match("^[^/\\\\]*$"))}function gt(e){var t=null,n;if(Y[e]===void 0&&typeof module<"u"&&module&&module.exports&&Yr(e))try{t=We._abbr,n=require,n("./locale/"+e),ge(t)}catch{Y[e]=null}return Y[e]}function ge(e,t){var n;return e&&(j(t)?n=le(e):n=Zt(e,t),n?We=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),We._abbr}function Zt(e,t){if(t!==null){var n,s=Zn;if(t.abbr=e,Y[e]!=null)Tn("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=Y[e]._config;else if(t.parentLocale!=null)if(Y[t.parentLocale]!=null)s=Y[t.parentLocale]._config;else if(n=gt(t.parentLocale),n!=null)s=n._config;else return $e[t.parentLocale]||($e[t.parentLocale]=[]),$e[t.parentLocale].push({name:e,config:t}),null;return Y[e]=new It(Ft(s,t)),$e[e]&&$e[e].forEach(function(i){Zt(i.name,i.config)}),ge(e),Y[e]}else return delete Y[e],null}function Nr(e,t){if(t!=null){var n,s,i=Zn;Y[e]!=null&&Y[e].parentLocale!=null?Y[e].set(Ft(Y[e]._config,t)):(s=gt(e),s!=null&&(i=s._config),t=Ft(i,t),s==null&&(t.abbr=e),n=new It(t),n.parentLocale=Y[e],Y[e]=n),ge(e)}else Y[e]!=null&&(Y[e].parentLocale!=null?(Y[e]=Y[e].parentLocale,e===ge()&&ge(e)):Y[e]!=null&&delete Y[e]);return Y[e]}function le(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return We;if(!B(e)){if(t=gt(e),t)return t;e=[e]}return Dr(e)}function Cr(){return jt(Y)}function Qt(e){var t,n=e._a;return n&&v(e).overflow===-2&&(t=n[ae]<0||n[ae]>11?ae:n[se]<1||n[se]>Kt(n[E],n[ae])?se:n[P]<0||n[P]>24||n[P]===24&&(n[J]!==0||n[oe]!==0||n[ye]!==0)?P:n[J]<0||n[J]>59?J:n[oe]<0||n[oe]>59?oe:n[ye]<0||n[ye]>999?ye:-1,v(e)._overflowDayOfYear&&(t<E||t>se)&&(t=se),v(e)._overflowWeeks&&t===-1&&(t=Pi),v(e)._overflowWeekday&&t===-1&&(t=Ei),v(e).overflow=t),e}var Rr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Lr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tr=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Xt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Pr=/^\/?Date\((-?\d+)/i,Er=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ar={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Xn(e){var t,n,s=e._i,i=Rr.exec(s)||Lr.exec(s),r,a,o,u,l=mt.length,h=Xt.length;if(i){for(v(e).iso=!0,t=0,n=l;t<n;t++)if(mt[t][1].exec(i[1])){a=mt[t][0],r=mt[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,n=h;t<n;t++)if(Xt[t][1].exec(i[3])){o=(i[2]||" ")+Xt[t][0];break}if(o==null){e._isValid=!1;return}}if(!r&&o!=null){e._isValid=!1;return}if(i[4])if(Tr.exec(i[4]))u="Z";else{e._isValid=!1;return}e._f=a+(o||"")+(u||""),tn(e)}else e._isValid=!1}function Fr(e,t,n,s,i,r){var a=[Ir(e),Vn.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a}function Ir(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function jr(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ur(e,t,n){if(e){var s=Bn.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(s!==i)return v(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Hr(e,t,n){if(e)return Ar[e];if(t)return 0;var s=parseInt(n,10),i=s%100,r=(s-i)/100;return r*60+i}function es(e){var t=Er.exec(jr(e._i)),n;if(t){if(n=Fr(t[4],t[3],t[2],t[5],t[6],t[7]),!Ur(t[1],n,e))return;e._a=n,e._tzm=Hr(t[8],t[9],t[10]),e._d=He.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Vr(e){var t=Pr.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Xn(e),e._isValid===!1)delete e._isValid;else return;if(es(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:g.createFromInputFallback(e)}g.createFromInputFallback=G("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function De(e,t,n){return e??t??n}function $r(e){var t=new Date(g.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function en(e){var t,n,s=[],i,r,a;if(!e._d){for(i=$r(e),e._w&&e._a[se]==null&&e._a[ae]==null&&Wr(e),e._dayOfYear!=null&&(a=De(e._a[E],i[E]),(e._dayOfYear>je(a)||e._dayOfYear===0)&&(v(e)._overflowDayOfYear=!0),n=He(a,0,e._dayOfYear),e._a[ae]=n.getUTCMonth(),e._a[se]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[P]===24&&e._a[J]===0&&e._a[oe]===0&&e._a[ye]===0&&(e._nextDay=!0,e._a[P]=0),e._d=(e._useUTC?He:Ji).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[P]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==r&&(v(e).weekdayMismatch=!0)}}function Wr(e){var t,n,s,i,r,a,o,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(r=1,a=4,n=De(t.GG,e._a[E],Ve(D(),1,4).year),s=De(t.W,1),i=De(t.E,1),(i<1||i>7)&&(u=!0)):(r=e._locale._week.dow,a=e._locale._week.doy,l=Ve(D(),r,a),n=De(t.gg,e._a[E],l.year),s=De(t.w,l.week),t.d!=null?(i=t.d,(i<0||i>6)&&(u=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r),s<1||s>ue(n,r,a)?v(e)._overflowWeeks=!0:u!=null?v(e)._overflowWeekday=!0:(o=Kn(n,s,i,r,a),e._a[E]=o.year,e._dayOfYear=o.dayOfYear)}g.ISO_8601=function(){},g.RFC_2822=function(){};function tn(e){if(e._f===g.ISO_8601){Xn(e);return}if(e._f===g.RFC_2822){es(e);return}e._a=[],v(e).empty=!0;var t=""+e._i,n,s,i,r,a,o=t.length,u=0,l,h;for(i=Pn(e._f,e._locale).match(Ut)||[],h=i.length,n=0;n<h;n++)r=i[n],s=(t.match(Ri(r,e))||[])[0],s&&(a=t.substr(0,t.indexOf(s)),a.length>0&&v(e).unusedInput.push(a),t=t.slice(t.indexOf(s)+s.length),u+=s.length),xe[r]?(s?v(e).empty=!1:v(e).unusedTokens.push(r),Ti(r,s,e)):e._strict&&!s&&v(e).unusedTokens.push(r);v(e).charsLeftOver=o-u,t.length>0&&v(e).unusedInput.push(t),e._a[P]<=12&&v(e).bigHour===!0&&e._a[P]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[P]=Gr(e._locale,e._a[P],e._meridiem),l=v(e).era,l!==null&&(e._a[E]=e._locale.erasConvertYear(l,e._a[E])),en(e),Qt(e)}function Gr(e,t,n){var s;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(s=e.isPM(n),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function zr(e){var t,n,s,i,r,a,o=!1,u=e._f.length;if(u===0){v(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<u;i++)r=0,a=!1,t=At({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],tn(t),Pt(t)&&(a=!0),r+=v(t).charsLeftOver,r+=v(t).unusedTokens.length*10,v(t).score=r,o?r<s&&(s=r,n=t):(s==null||r<s||a)&&(s=r,n=t,a&&(o=!0));fe(e,n||t)}function Kr(e){if(!e._d){var t=Vt(e._i),n=t.day===void 0?t.date:t.day;e._a=Nn([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),en(e)}}function Br(e){var t=new Ae(Qt(ts(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ts(e){var t=e._i,n=e._f;return e._locale=e._locale||le(e._l),t===null||n===void 0&&t===""?st({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),q(t)?new Ae(Qt(t)):(Ee(t)?e._d=t:B(n)?zr(e):n?tn(e):qr(e),Pt(e)||(e._d=null),e))}function qr(e){var t=e._i;j(t)?e._d=new Date(g.now()):Ee(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Vr(e):B(t)?(e._a=Nn(t.slice(0),function(n){return parseInt(n,10)}),en(e)):pe(t)?Kr(e):ie(t)?e._d=new Date(t):g.createFromInputFallback(e)}function ns(e,t,n,s,i){var r={};return(t===!0||t===!1)&&(s=t,t=void 0),(n===!0||n===!1)&&(s=n,n=void 0),(pe(e)&&Lt(e)||B(e)&&e.length===0)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=e,r._f=t,r._strict=s,Br(r)}function D(e,t,n,s){return ns(e,t,n,s,!1)}var Jr=G("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:st()}),Zr=G("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:st()});function ss(e,t){var n,s;if(t.length===1&&B(t[0])&&(t=t[0]),!t.length)return D();for(n=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](n))&&(n=t[s]);return n}function Qr(){var e=[].slice.call(arguments,0);return ss("isBefore",e)}function Xr(){var e=[].slice.call(arguments,0);return ss("isAfter",e)}var ea=function(){return Date.now?Date.now():+new Date},Ge=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ta(e){var t,n=!1,s,i=Ge.length;for(t in e)if(b(e,t)&&!(R.call(Ge,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<i;++s)if(e[Ge[s]]){if(n)return!1;parseFloat(e[Ge[s]])!==w(e[Ge[s]])&&(n=!0)}return!0}function na(){return this._isValid}function sa(){return Z(NaN)}function pt(e){var t=Vt(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=ta(t),this._milliseconds=+h+l*1e3+u*6e4+o*1e3*60*60,this._days=+a+r*7,this._months=+i+s*3+n*12,this._data={},this._locale=le(),this._bubble()}function yt(e){return e instanceof pt}function nn(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ia(e,t,n){var s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0,a;for(a=0;a<s;a++)w(e[a])!==w(t[a])&&r++;return r+i}function is(e,t){p(e,0,0,function(){var n=this.utcOffset(),s="+";return n<0&&(n=-n,s="-"),s+ne(~~(n/60),2)+t+ne(~~n%60,2)})}is("Z",":"),is("ZZ",""),m("Z",dt),m("ZZ",dt),O(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=sn(dt,e)});var ra=/([\+\-]|\d\d)/gi;function sn(e,t){var n=(t||"").match(e),s,i,r;return n===null?null:(s=n[n.length-1]||[],i=(s+"").match(ra)||["-",0,0],r=+(i[1]*60)+w(i[2]),r===0?0:i[0]==="+"?r:-r)}function rn(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(q(e)||Ee(e)?e.valueOf():D(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),g.updateOffset(n,!1),n):D(e).local()}function an(e){return-Math.round(e._d.getTimezoneOffset())}g.updateOffset=function(){};function aa(e,t,n){var s=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=sn(dt,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=an(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),s!==e&&(!t||this._changeInProgress?us(this,Z(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,g.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:an(this)}function oa(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ua(e){return this.utcOffset(0,e)}function la(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(an(this),"m")),this}function da(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=sn(Ni,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ha(e){return this.isValid()?(e=e?D(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ca(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function fa(){if(!j(this._isDSTShifted))return this._isDSTShifted;var e={},t;return At(e,this),e=ts(e),e._a?(t=e._isUTC?ee(e._a):D(e._a),this._isDSTShifted=this.isValid()&&ia(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ga(){return this.isValid()?!this._isUTC:!1}function ma(){return this.isValid()?this._isUTC:!1}function rs(){return this.isValid()?this._isUTC&&this._offset===0:!1}var pa=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ya=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Z(e,t){var n=e,s=null,i,r,a;return yt(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ie(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(s=pa.exec(e))?(i=s[1]==="-"?-1:1,n={y:0,d:w(s[se])*i,h:w(s[P])*i,m:w(s[J])*i,s:w(s[oe])*i,ms:w(nn(s[ye]*1e3))*i}):(s=ya.exec(e))?(i=s[1]==="-"?-1:1,n={y:_e(s[2],i),M:_e(s[3],i),w:_e(s[4],i),d:_e(s[5],i),h:_e(s[6],i),m:_e(s[7],i),s:_e(s[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=_a(D(n.from),D(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),r=new pt(n),yt(e)&&b(e,"_locale")&&(r._locale=e._locale),yt(e)&&b(e,"_isValid")&&(r._isValid=e._isValid),r}Z.fn=pt.prototype,Z.invalid=sa;function _e(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function as(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function _a(e,t){var n;return e.isValid()&&t.isValid()?(t=rn(t,e),e.isBefore(t)?n=as(e,t):(n=as(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function os(e,t){return function(n,s){var i,r;return s!==null&&!isNaN(+s)&&(Tn(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=s,s=r),i=Z(n,s),us(this,i,e),this}}function us(e,t,n,s){var i=t._milliseconds,r=nn(t._days),a=nn(t._months);e.isValid()&&(s=s??!0,a&&Wn(e,Ue(e,"Month")+a*n),r&&Hn(e,"Date",Ue(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s&&g.updateOffset(e,r||a))}var va=os(1,"add"),wa=os(-1,"subtract");function ls(e){return typeof e=="string"||e instanceof String}function Sa(e){return q(e)||Ee(e)||ls(e)||ie(e)||xa(e)||ba(e)||e===null||e===void 0}function ba(e){var t=pe(e)&&!Lt(e),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,r,a=s.length;for(i=0;i<a;i+=1)r=s[i],n=n||b(e,r);return t&&n}function xa(e){var t=B(e),n=!1;return t&&(n=e.filter(function(s){return!ie(s)&&ls(e)}).length===0),t&&n}function ka(e){var t=pe(e)&&!Lt(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,r;for(i=0;i<s.length;i+=1)r=s[i],n=n||b(e,r);return t&&n}function Oa(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ma(e,t){arguments.length===1&&(arguments[0]?Sa(arguments[0])?(e=arguments[0],t=void 0):ka(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||D(),s=rn(n,this).startOf("day"),i=g.calendarFormat(this,s)||"sameElse",r=t&&(te(t[i])?t[i].call(this,n):t[i]);return this.format(r||this.localeData().calendar(i,this,D(n)))}function Da(){return new Ae(this)}function Ya(e,t){var n=q(e)?e:D(e);return this.isValid()&&n.isValid()?(t=z(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Na(e,t){var n=q(e)?e:D(e);return this.isValid()&&n.isValid()?(t=z(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Ca(e,t,n,s){var i=q(e)?e:D(e),r=q(t)?t:D(t);return this.isValid()&&i.isValid()&&r.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(s[1]===")"?this.isBefore(r,n):!this.isAfter(r,n))):!1}function Ra(e,t){var n=q(e)?e:D(e),s;return this.isValid()&&n.isValid()?(t=z(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(s=n.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function La(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ta(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Pa(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(s=rn(e,this),!s.isValid())return NaN;switch(i=(s.utcOffset()-this.utcOffset())*6e4,t=z(t),t){case"year":r=_t(this,s)/12;break;case"month":r=_t(this,s);break;case"quarter":r=_t(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:K(r)}function _t(e,t){if(e.date()<t.date())return-_t(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(n,"months"),i,r;return t-s<0?(i=e.clone().add(n-1,"months"),r=(t-s)/(s-i)):(i=e.clone().add(n+1,"months"),r=(t-s)/(i-s)),-(n+r)||0}g.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",g.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Ea(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Aa(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?rt(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):te(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",rt(n,"Z")):rt(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Fa(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,s,i,r;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",r=t+'[")]',this.format(n+s+i+r)}function Ia(e){e||(e=this.isUtc()?g.defaultFormatUtc:g.defaultFormat);var t=rt(this,e);return this.localeData().postformat(t)}function ja(e,t){return this.isValid()&&(q(e)&&e.isValid()||D(e).isValid())?Z({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ua(e){return this.from(D(),e)}function Ha(e,t){return this.isValid()&&(q(e)&&e.isValid()||D(e).isValid())?Z({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Va(e){return this.to(D(),e)}function ds(e){var t;return e===void 0?this._locale._abbr:(t=le(e),t!=null&&(this._locale=t),this)}var hs=G("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function cs(){return this._locale}var vt=1e3,Ye=60*vt,wt=60*Ye,fs=(365*400+97)*24*wt;function Ne(e,t){return(e%t+t)%t}function gs(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fs:new Date(e,t,n).valueOf()}function ms(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fs:Date.UTC(e,t,n)}function $a(e){var t,n;if(e=z(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ms:gs,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ne(t+(this._isUTC?0:this.utcOffset()*Ye),wt);break;case"minute":t=this._d.valueOf(),t-=Ne(t,Ye);break;case"second":t=this._d.valueOf(),t-=Ne(t,vt);break}return this._d.setTime(t),g.updateOffset(this,!0),this}function Wa(e){var t,n;if(e=z(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ms:gs,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=wt-Ne(t+(this._isUTC?0:this.utcOffset()*Ye),wt)-1;break;case"minute":t=this._d.valueOf(),t+=Ye-Ne(t,Ye)-1;break;case"second":t=this._d.valueOf(),t+=vt-Ne(t,vt)-1;break}return this._d.setTime(t),g.updateOffset(this,!0),this}function Ga(){return this._d.valueOf()-(this._offset||0)*6e4}function za(){return Math.floor(this.valueOf()/1e3)}function Ka(){return new Date(this.valueOf())}function Ba(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function qa(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ja(){return this.isValid()?this.toISOString():null}function Za(){return Pt(this)}function Qa(){return fe({},v(this))}function Xa(){return v(this).overflow}function eo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}p("N",0,0,"eraAbbr"),p("NN",0,0,"eraAbbr"),p("NNN",0,0,"eraAbbr"),p("NNNN",0,0,"eraName"),p("NNNNN",0,0,"eraNarrow"),p("y",["y",1],"yo","eraYear"),p("y",["yy",2],0,"eraYear"),p("y",["yyy",3],0,"eraYear"),p("y",["yyyy",4],0,"eraYear"),m("N",on),m("NN",on),m("NNN",on),m("NNNN",co),m("NNNNN",fo),O(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?v(n).era=i:v(n).invalidEra=e}),m("y",ke),m("yy",ke),m("yyy",ke),m("yyyy",ke),m("yo",go),O(["y","yy","yyy","yyyy"],E),O(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[E]=n._locale.eraYearOrdinalParse(e,i):t[E]=parseInt(e,10)});function to(e,t){var n,s,i,r=this._eras||le("en")._eras;for(n=0,s=r.length;n<s;++n){switch(typeof r[n].since){case"string":i=g(r[n].since).startOf("day"),r[n].since=i.valueOf();break}switch(typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":i=g(r[n].until).startOf("day").valueOf(),r[n].until=i.valueOf();break}}return r}function no(e,t,n){var s,i,r=this.eras(),a,o,u;for(e=e.toUpperCase(),s=0,i=r.length;s<i;++s)if(a=r[s].name.toUpperCase(),o=r[s].abbr.toUpperCase(),u=r[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return r[s];break;case"NNNN":if(a===e)return r[s];break;case"NNNNN":if(u===e)return r[s];break}else if([a,o,u].indexOf(e)>=0)return r[s]}function so(e,t){var n=e.since<=e.until?1:-1;return t===void 0?g(e.since).year():g(e.since).year()+(t-e.offset)*n}function io(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].name;return""}function ro(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].narrow;return""}function ao(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].abbr;return""}function oo(){var e,t,n,s,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,s=this.clone().startOf("day").valueOf(),i[e].since<=s&&s<=i[e].until||i[e].until<=s&&s<=i[e].since)return(this.year()-g(i[e].since).year())*n+i[e].offset;return this.year()}function uo(e){return b(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex}function lo(e){return b(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex}function ho(e){return b(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex}function on(e,t){return t.erasAbbrRegex(e)}function co(e,t){return t.erasNameRegex(e)}function fo(e,t){return t.erasNarrowRegex(e)}function go(e,t){return t._eraYearOrdinalRegex||ke}function un(){var e=[],t=[],n=[],s=[],i,r,a,o,u,l=this.eras();for(i=0,r=l.length;i<r;++i)a=re(l[i].name),o=re(l[i].abbr),u=re(l[i].narrow),t.push(a),e.push(o),n.push(u),s.push(a),s.push(o),s.push(u);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}p(0,["gg",2],0,function(){return this.weekYear()%100}),p(0,["GG",2],0,function(){return this.isoWeekYear()%100});function St(e,t){p(0,[e,e.length],0,t)}St("gggg","weekYear"),St("ggggg","weekYear"),St("GGGG","isoWeekYear"),St("GGGGG","isoWeekYear"),m("G",lt),m("g",lt),m("GG",M,U),m("gg",M,U),m("GGGG",Wt,$t),m("gggg",Wt,$t),m("GGGGG",ut,at),m("ggggg",ut,at),Ie(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=w(e)}),Ie(["gg","GG"],function(e,t,n,s){t[s]=g.parseTwoDigitYear(e)});function mo(e){return ps.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function po(e){return ps.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function yo(){return ue(this.year(),1,4)}function _o(){return ue(this.isoWeekYear(),1,4)}function vo(){var e=this.localeData()._week;return ue(this.year(),e.dow,e.doy)}function wo(){var e=this.localeData()._week;return ue(this.weekYear(),e.dow,e.doy)}function ps(e,t,n,s,i){var r;return e==null?Ve(this,s,i).year:(r=ue(e,s,i),t>r&&(t=r),So.call(this,e,t,n,s,i))}function So(e,t,n,s,i){var r=Kn(e,t,n,s,i),a=He(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}p("Q",0,"Qo","quarter"),m("Q",An),O("Q",function(e,t){t[ae]=(w(e)-1)*3});function bo(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}p("D",["DD",2],"Do","date"),m("D",M,Oe),m("DD",M,U),m("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),O(["D","DD"],se),O("Do",function(e,t){t[se]=w(e.match(M)[0])});var ys=Me("Date",!0);p("DDD",["DDDD",3],"DDDo","dayOfYear"),m("DDD",ot),m("DDDD",Fn),O(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)});function xo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}p("m",["mm",2],0,"minute"),m("m",M,Gt),m("mm",M,U),O(["m","mm"],J);var ko=Me("Minutes",!1);p("s",["ss",2],0,"second"),m("s",M,Gt),m("ss",M,U),O(["s","ss"],oe);var Oo=Me("Seconds",!1);p("S",0,0,function(){return~~(this.millisecond()/100)}),p(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),p(0,["SSS",3],0,"millisecond"),p(0,["SSSS",4],0,function(){return this.millisecond()*10}),p(0,["SSSSS",5],0,function(){return this.millisecond()*100}),p(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),p(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),p(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),p(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),m("S",ot,An),m("SS",ot,U),m("SSS",ot,Fn);var me,_s;for(me="SSSS";me.length<=9;me+="S")m(me,ke);function Mo(e,t){t[ye]=w(("0."+e)*1e3)}for(me="S";me.length<=9;me+="S")O(me,Mo);_s=Me("Milliseconds",!1),p("z",0,0,"zoneAbbr"),p("zz",0,0,"zoneName");function Do(){return this._isUTC?"UTC":""}function Yo(){return this._isUTC?"Coordinated Universal Time":""}var c=Ae.prototype;c.add=va,c.calendar=Ma,c.clone=Da,c.diff=Pa,c.endOf=Wa,c.format=Ia,c.from=ja,c.fromNow=Ua,c.to=Ha,c.toNow=Va,c.get=Fi,c.invalidAt=Xa,c.isAfter=Ya,c.isBefore=Na,c.isBetween=Ca,c.isSame=Ra,c.isSameOrAfter=La,c.isSameOrBefore=Ta,c.isValid=Za,c.lang=hs,c.locale=ds,c.localeData=cs,c.max=Zr,c.min=Jr,c.parsingFlags=Qa,c.set=Ii,c.startOf=$a,c.subtract=wa,c.toArray=Ba,c.toObject=qa,c.toDate=Ka,c.toISOString=Aa,c.inspect=Fa,typeof Symbol<"u"&&Symbol.for!=null&&(c[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),c.toJSON=Ja,c.toString=Ea,c.unix=za,c.valueOf=Ga,c.creationData=eo,c.eraName=io,c.eraNarrow=ro,c.eraAbbr=ao,c.eraYear=oo,c.year=Un,c.isLeapYear=Ai,c.weekYear=mo,c.isoWeekYear=po,c.quarter=c.quarters=bo,c.month=Gn,c.daysInMonth=Ki,c.week=c.weeks=tr,c.isoWeek=c.isoWeeks=nr,c.weeksInYear=vo,c.weeksInWeekYear=wo,c.isoWeeksInYear=yo,c.isoWeeksInISOWeekYear=_o,c.date=ys,c.day=c.days=mr,c.weekday=pr,c.isoWeekday=yr,c.dayOfYear=xo,c.hour=c.hours=kr,c.minute=c.minutes=ko,c.second=c.seconds=Oo,c.millisecond=c.milliseconds=_s,c.utcOffset=aa,c.utc=ua,c.local=la,c.parseZone=da,c.hasAlignedHourOffset=ha,c.isDST=ca,c.isLocal=ga,c.isUtcOffset=ma,c.isUtc=rs,c.isUTC=rs,c.zoneAbbr=Do,c.zoneName=Yo,c.dates=G("dates accessor is deprecated. Use date instead.",ys),c.months=G("months accessor is deprecated. Use month instead",Gn),c.years=G("years accessor is deprecated. Use year instead",Un),c.zone=G("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",oa),c.isDSTShifted=G("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",fa);function No(e){return D(e*1e3)}function Co(){return D.apply(null,arguments).parseZone()}function vs(e){return e}var x=It.prototype;x.calendar=gi,x.longDateFormat=_i,x.invalidDate=wi,x.ordinal=xi,x.preparse=vs,x.postformat=vs,x.relativeTime=Oi,x.pastFuture=Mi,x.set=ci,x.eras=to,x.erasParse=no,x.erasConvertYear=so,x.erasAbbrRegex=lo,x.erasNameRegex=uo,x.erasNarrowRegex=ho,x.months=$i,x.monthsShort=Wi,x.monthsParse=zi,x.monthsRegex=qi,x.monthsShortRegex=Bi,x.week=Zi,x.firstDayOfYear=er,x.firstDayOfWeek=Xi,x.weekdays=dr,x.weekdaysMin=cr,x.weekdaysShort=hr,x.weekdaysParse=gr,x.weekdaysRegex=_r,x.weekdaysShortRegex=vr,x.weekdaysMinRegex=wr,x.isPM=br,x.meridiem=Or;function bt(e,t,n,s){var i=le(),r=ee().set(s,t);return i[n](r,e)}function ws(e,t,n){if(ie(e)&&(t=e,e=void 0),e=e||"",t!=null)return bt(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=bt(e,s,n,"month");return i}function ln(e,t,n,s){typeof e=="boolean"?(ie(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ie(t)&&(n=t,t=void 0),t=t||"");var i=le(),r=e?i._week.dow:0,a,o=[];if(n!=null)return bt(t,(n+r)%7,s,"day");for(a=0;a<7;a++)o[a]=bt(t,(a+r)%7,s,"day");return o}function Ro(e,t){return ws(e,t,"months")}function Lo(e,t){return ws(e,t,"monthsShort")}function To(e,t,n){return ln(e,t,n,"weekdays")}function Po(e,t,n){return ln(e,t,n,"weekdaysShort")}function Eo(e,t,n){return ln(e,t,n,"weekdaysMin")}ge("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=w(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),g.lang=G("moment.lang is deprecated. Use moment.locale instead.",ge),g.langData=G("moment.langData is deprecated. Use moment.localeData instead.",le);var de=Math.abs;function Ao(){var e=this._data;return this._milliseconds=de(this._milliseconds),this._days=de(this._days),this._months=de(this._months),e.milliseconds=de(e.milliseconds),e.seconds=de(e.seconds),e.minutes=de(e.minutes),e.hours=de(e.hours),e.months=de(e.months),e.years=de(e.years),this}function Ss(e,t,n,s){var i=Z(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function Fo(e,t){return Ss(this,e,t,1)}function Io(e,t){return Ss(this,e,t,-1)}function bs(e){return e<0?Math.floor(e):Math.ceil(e)}function jo(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data,i,r,a,o,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=bs(dn(n)+t)*864e5,t=0,n=0),s.milliseconds=e%1e3,i=K(e/1e3),s.seconds=i%60,r=K(i/60),s.minutes=r%60,a=K(r/60),s.hours=a%24,t+=K(a/24),u=K(xs(t)),n+=u,t-=bs(dn(u)),o=K(n/12),n%=12,s.days=t,s.months=n,s.years=o,this}function xs(e){return e*4800/146097}function dn(e){return e*146097/4800}function Uo(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if(e=z(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,n=this._months+xs(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(dn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function he(e){return function(){return this.as(e)}}var ks=he("ms"),Ho=he("s"),Vo=he("m"),$o=he("h"),Wo=he("d"),Go=he("w"),zo=he("M"),Ko=he("Q"),Bo=he("y"),qo=ks;function Jo(){return Z(this)}function Zo(e){return e=z(e),this.isValid()?this[e+"s"]():NaN}function ve(e){return function(){return this.isValid()?this._data[e]:NaN}}var Qo=ve("milliseconds"),Xo=ve("seconds"),eu=ve("minutes"),tu=ve("hours"),nu=ve("days"),su=ve("months"),iu=ve("years");function ru(){return K(this.days()/7)}var ce=Math.round,Ce={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function au(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}function ou(e,t,n,s){var i=Z(e).abs(),r=ce(i.as("s")),a=ce(i.as("m")),o=ce(i.as("h")),u=ce(i.as("d")),l=ce(i.as("M")),h=ce(i.as("w")),f=ce(i.as("y")),d=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||a<=1&&["m"]||a<n.m&&["mm",a]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(d=d||h<=1&&["w"]||h<n.w&&["ww",h]),d=d||l<=1&&["M"]||l<n.M&&["MM",l]||f<=1&&["y"]||["yy",f],d[2]=t,d[3]=+e>0,d[4]=s,au.apply(null,d)}function uu(e){return e===void 0?ce:typeof e=="function"?(ce=e,!0):!1}function lu(e,t){return Ce[e]===void 0?!1:t===void 0?Ce[e]:(Ce[e]=t,e==="s"&&(Ce.ss=t-1),!0)}function du(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=Ce,i,r;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(s=Object.assign({},Ce,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),i=this.localeData(),r=ou(this,!n,s,i),n&&(r=i.pastFuture(+this,r)),i.postformat(r)}var hn=Math.abs;function Re(e){return(e>0)-(e<0)||+e}function xt(){if(!this.isValid())return this.localeData().invalidDate();var e=hn(this._milliseconds)/1e3,t=hn(this._days),n=hn(this._months),s,i,r,a,o=this.asSeconds(),u,l,h,f;return o?(s=K(e/60),i=K(s/60),e%=60,s%=60,r=K(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=o<0?"-":"",l=Re(this._months)!==Re(o)?"-":"",h=Re(this._days)!==Re(o)?"-":"",f=Re(this._milliseconds)!==Re(o)?"-":"",u+"P"+(r?l+r+"Y":"")+(n?l+n+"M":"")+(t?h+t+"D":"")+(i||s||e?"T":"")+(i?f+i+"H":"")+(s?f+s+"M":"")+(e?f+a+"S":"")):"P0D"}var S=pt.prototype;S.isValid=na,S.abs=Ao,S.add=Fo,S.subtract=Io,S.as=Uo,S.asMilliseconds=ks,S.asSeconds=Ho,S.asMinutes=Vo,S.asHours=$o,S.asDays=Wo,S.asWeeks=Go,S.asMonths=zo,S.asQuarters=Ko,S.asYears=Bo,S.valueOf=qo,S._bubble=jo,S.clone=Jo,S.get=Zo,S.milliseconds=Qo,S.seconds=Xo,S.minutes=eu,S.hours=tu,S.days=nu,S.weeks=ru,S.months=su,S.years=iu,S.humanize=du,S.toISOString=xt,S.toString=xt,S.toJSON=xt,S.locale=ds,S.localeData=cs,S.toIsoString=G("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",xt),S.lang=hs,p("X",0,0,"unix"),p("x",0,0,"valueOf"),m("x",lt),m("X",Ci),O("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),O("x",function(e,t,n){n._d=new Date(w(e))});//! moment.js
|
|
10
|
-
|
|
6
|
+
var xt;function u(){return xt.apply(null,arguments)}function Gn(e){xt=e}function L(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function re(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Je(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(g(e,t))return!1;return!0}function N(e){return e===void 0}function G(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ye(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Pt(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function K(e,t){for(var n in t)g(t,n)&&(e[n]=t[n]);return g(t,"toString")&&(e.toString=t.toString),g(t,"valueOf")&&(e.valueOf=t.valueOf),e}function I(e,t,n,r){return on(e,t,n,r,!0).utc()}function Vn(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(e){return e._pf==null&&(e._pf=Vn()),e._pf}var Qe;Array.prototype.some?Qe=Array.prototype.some:Qe=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Xe(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=f(e),n=Qe.call(t.parsedDateParts,function(i){return i!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Te(e){var t=I(NaN);return e!=null?K(f(t),e):f(t).userInvalidated=!0,t}var Et=u.momentProperties=[],Ke=!1;function et(e,t){var n,r,i,s=Et.length;if(N(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),N(t._i)||(e._i=t._i),N(t._f)||(e._f=t._f),N(t._l)||(e._l=t._l),N(t._strict)||(e._strict=t._strict),N(t._tzm)||(e._tzm=t._tzm),N(t._isUTC)||(e._isUTC=t._isUTC),N(t._offset)||(e._offset=t._offset),N(t._pf)||(e._pf=f(t)),N(t._locale)||(e._locale=t._locale),s>0)for(n=0;n<s;n++)r=Et[n],i=t[r],N(i)||(e[r]=i);return e}function ge(e){et(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Ke===!1&&(Ke=!0,u.updateOffset(this),Ke=!1)}function A(e){return e instanceof ge||e!=null&&e._isAMomentObject!=null}function Lt(e){u.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var n=!0;return K(function(){if(u.deprecationHandler!=null&&u.deprecationHandler(null,e),n){var r=[],i,s,a,l=arguments.length;for(s=0;s<l;s++){if(i="",typeof arguments[s]=="object"){i+=`
|
|
7
|
+
[`+s+"] ";for(a in arguments[0])g(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[s];r.push(i)}Lt(e+`
|
|
8
|
+
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
9
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var At={};function Ht(e,t){u.deprecationHandler!=null&&u.deprecationHandler(e,t),At[e]||(Lt(t),At[e]=!0)}u.suppressDeprecationWarnings=!1,u.deprecationHandler=null;function F(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function qn(e){var t,n;for(n in e)g(e,n)&&(t=e[n],F(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function tt(e,t){var n=K({},e),r;for(r in t)g(t,r)&&(re(e[r])&&re(t[r])?(n[r]={},K(n[r],e[r]),K(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)g(e,r)&&!g(t,r)&&re(e[r])&&(n[r]=K({},n[r]));return n}function nt(e){e!=null&&this.set(e)}var rt;Object.keys?rt=Object.keys:rt=function(e){var t,n=[];for(t in e)g(e,t)&&n.push(t);return n};var zn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Zn(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return F(r)?r.call(t,n):r}function U(e,t,n){var r=""+Math.abs(e),i=t-r.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var it=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,be=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,st={},oe={};function h(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(oe[e]=i),t&&(oe[t[0]]=function(){return U(i.apply(this,arguments),t[1],t[2])}),n&&(oe[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function $n(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Bn(e){var t=e.match(it),n,r;for(n=0,r=t.length;n<r;n++)oe[t[n]]?t[n]=oe[t[n]]:t[n]=$n(t[n]);return function(i){var s="",a;for(a=0;a<r;a++)s+=F(t[a])?t[a].call(i,e):t[a];return s}}function Ne(e,t){return e.isValid()?(t=Wt(t,e.localeData()),st[t]=st[t]||Bn(t),st[t](e)):e.localeData().invalidDate()}function Wt(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(be.lastIndex=0;n>=0&&be.test(e);)e=e.replace(be,r),be.lastIndex=0,n-=1;return e}var Jn={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Qn(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(it).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Xn="Invalid date";function Kn(){return this._invalidDate}var er="%d",tr=/\d{1,2}/;function nr(e){return this._ordinal.replace("%d",e)}var rr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ir(e,t,n,r){var i=this._relativeTime[n];return F(i)?i(e,t,n,r):i.replace(/%d/i,e)}function sr(e,t){var n=this._relativeTime[e>0?"future":"past"];return F(n)?n(t):n.replace(/%s/i,t)}var It={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function P(e){return typeof e=="string"?It[e]||It[e.toLowerCase()]:void 0}function at(e){var t={},n,r;for(r in e)g(e,r)&&(n=P(r),n&&(t[n]=e[r]));return t}var ar={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function or(e){var t=[],n;for(n in e)g(e,n)&&t.push({unit:n,priority:ar[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Ft=/\d/,R=/\d\d/,Ut=/\d{3}/,ot=/\d{4}/,Ce=/[+-]?\d{6}/,w=/\d\d?/,jt=/\d\d\d\d?/,Gt=/\d\d\d\d\d\d?/,Re=/\d{1,3}/,ut=/\d{1,4}/,xe=/[+-]?\d{1,6}/,ue=/\d+/,Pe=/[+-]?\d+/,ur=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,lr=/[+-]?\d+(\.\d{1,3})?/,ve=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le=/^[1-9]\d?/,lt=/^([1-9]\d|\d)/,Le;Le={};function d(e,t,n){Le[e]=F(t)?t:function(r,i){return r&&n?n:t}}function dr(e,t){return g(Le,e)?Le[e](t._strict,t._locale):new RegExp(hr(e))}function hr(e){return V(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,s){return n||r||i||s}))}function V(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=E(t)),n}var dt={};function p(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),G(t)&&(r=function(s,a){a[t]=m(s)}),i=e.length,n=0;n<i;n++)dt[e[n]]=r}function pe(e,t){p(e,function(n,r,i,s){i._w=i._w||{},t(n,i._w,i,s)})}function cr(e,t,n){t!=null&&g(dt,e)&&dt[e](t,n._a,n,e)}function Ae(e){return e%4===0&&e%100!==0||e%400===0}var O=0,q=1,j=2,Y=3,H=4,z=5,ie=6,fr=7,mr=8;h("Y",0,0,function(){var e=this.year();return e<=9999?U(e,4):"+"+e}),h(0,["YY",2],0,function(){return this.year()%100}),h(0,["YYYY",4],0,"year"),h(0,["YYYYY",5],0,"year"),h(0,["YYYYYY",6,!0],0,"year"),d("Y",Pe),d("YY",w,R),d("YYYY",ut,ot),d("YYYYY",xe,Ce),d("YYYYYY",xe,Ce),p(["YYYYY","YYYYYY"],O),p("YYYY",function(e,t){t[O]=e.length===2?u.parseTwoDigitYear(e):m(e)}),p("YY",function(e,t){t[O]=u.parseTwoDigitYear(e)}),p("Y",function(e,t){t[O]=parseInt(e,10)});function we(e){return Ae(e)?366:365}u.parseTwoDigitYear=function(e){return m(e)+(m(e)>68?1900:2e3)};var Vt=de("FullYear",!0);function _r(){return Ae(this.year())}function de(e,t){return function(n){return n!=null?(qt(this,e,n),u.updateOffset(this,t),this):Me(this,e)}}function Me(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function qt(e,t,n){var r,i,s,a,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}s=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!Ae(s)?28:l,i?r.setUTCFullYear(s,a,l):r.setFullYear(s,a,l)}}function yr(e){return e=P(e),F(this[e])?this[e]():this}function gr(e,t){if(typeof e=="object"){e=at(e);var n=or(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=P(e),F(this[e]))return this[e](t);return this}function vr(e,t){return(e%t+t)%t}var D;Array.prototype.indexOf?D=Array.prototype.indexOf:D=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ht(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=vr(t,12);return e+=(t-n)/12,n===1?Ae(e)?29:28:31-n%7%2}h("M",["MM",2],"Mo",function(){return this.month()+1}),h("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),h("MMMM",0,0,function(e){return this.localeData().months(this,e)}),d("M",w,le),d("MM",w,R),d("MMM",function(e,t){return t.monthsShortRegex(e)}),d("MMMM",function(e,t){return t.monthsRegex(e)}),p(["M","MM"],function(e,t){t[q]=m(e)-1}),p(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[q]=i:f(n).invalidMonth=e});var pr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),zt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Zt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,wr=ve,Mr=ve;function kr(e,t){return e?L(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Zt).test(t)?"format":"standalone"][e.month()]:L(this._months)?this._months:this._months.standalone}function Sr(e,t){return e?L(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Zt.test(t)?"format":"standalone"][e.month()]:L(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Dr(e,t,n){var r,i,s,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=I([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?t==="MMM"?(i=D.call(this._shortMonthsParse,a),i!==-1?i:null):(i=D.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=D.call(this._shortMonthsParse,a),i!==-1?i:(i=D.call(this._longMonthsParse,a),i!==-1?i:null)):(i=D.call(this._longMonthsParse,a),i!==-1?i:(i=D.call(this._shortMonthsParse,a),i!==-1?i:null))}function Yr(e,t,n){var r,i,s;if(this._monthsParseExact)return Dr.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if(i=I([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e)||n&&t==="MMM"&&this._shortMonthsParse[r].test(e)||!n&&this._monthsParse[r].test(e))return r}function $t(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=m(t);else if(t=e.localeData().monthsParse(t),!G(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,ht(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Bt(e){return e!=null?($t(this,e),u.updateOffset(this,!0),this):Me(this,"Month")}function Or(){return ht(this.year(),this.month())}function Tr(e){return this._monthsParseExact?(g(this,"_monthsRegex")||Jt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(g(this,"_monthsShortRegex")||(this._monthsShortRegex=wr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function br(e){return this._monthsParseExact?(g(this,"_monthsRegex")||Jt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(g(this,"_monthsRegex")||(this._monthsRegex=Mr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Jt(){function e(c,_){return _.length-c.length}var t=[],n=[],r=[],i,s,a,l;for(i=0;i<12;i++)s=I([2e3,i]),a=V(this.monthsShort(s,"")),l=V(this.months(s,"")),t.push(a),n.push(l),r.push(l),r.push(a);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Nr(e,t,n,r,i,s,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,i,s,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,i,s,a),l}function ke(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function He(e,t,n){var r=7+t-n,i=(7+ke(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Qt(e,t,n,r,i){var s=(7+n-r)%7,a=He(e,r,i),l=1+7*(t-1)+s+a,c,_;return l<=0?(c=e-1,_=we(c)+l):l>we(e)?(c=e+1,_=l-we(e)):(c=e,_=l),{year:c,dayOfYear:_}}function Se(e,t,n){var r=He(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,s,a;return i<1?(a=e.year()-1,s=i+Z(a,t,n)):i>Z(e.year(),t,n)?(s=i-Z(e.year(),t,n),a=e.year()+1):(a=e.year(),s=i),{week:s,year:a}}function Z(e,t,n){var r=He(e,t,n),i=He(e+1,t,n);return(we(e)-r+i)/7}h("w",["ww",2],"wo","week"),h("W",["WW",2],"Wo","isoWeek"),d("w",w,le),d("ww",w,R),d("W",w,le),d("WW",w,R),pe(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=m(e)});function Cr(e){return Se(e,this._week.dow,this._week.doy).week}var Rr={dow:0,doy:6};function xr(){return this._week.dow}function Pr(){return this._week.doy}function Er(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Lr(e){var t=Se(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day"),h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),h("e",0,0,"weekday"),h("E",0,0,"isoWeekday"),d("d",w),d("e",w),d("E",w),d("dd",function(e,t){return t.weekdaysMinRegex(e)}),d("ddd",function(e,t){return t.weekdaysShortRegex(e)}),d("dddd",function(e,t){return t.weekdaysRegex(e)}),pe(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:f(n).invalidWeekday=e}),pe(["d","e","E"],function(e,t,n,r){t[r]=m(e)});function Ar(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Hr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ct(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Wr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ir="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fr=ve,Ur=ve,jr=ve;function Gr(e,t){var n=L(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ct(n,this._week.dow):e?n[e.day()]:n}function Vr(e){return e===!0?ct(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function qr(e){return e===!0?ct(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zr(e,t,n){var r,i,s,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=I([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?t==="dddd"?(i=D.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=D.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=D.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=D.call(this._weekdaysParse,a),i!==-1||(i=D.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=D.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=D.call(this._shortWeekdaysParse,a),i!==-1||(i=D.call(this._weekdaysParse,a),i!==-1)?i:(i=D.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=D.call(this._minWeekdaysParse,a),i!==-1||(i=D.call(this._weekdaysParse,a),i!==-1)?i:(i=D.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function Zr(e,t,n){var r,i,s;if(this._weekdaysParseExact)return zr.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if(i=I([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e)||n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e)||n&&t==="dd"&&this._minWeekdaysParse[r].test(e)||!n&&this._weekdaysParse[r].test(e))return r}function $r(e){if(!this.isValid())return e!=null?this:NaN;var t=Me(this,"Day");return e!=null?(e=Ar(e,this.localeData()),this.add(e-t,"d")):t}function Br(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Jr(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Hr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Qr(e){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(g(this,"_weekdaysRegex")||(this._weekdaysRegex=Fr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xr(e){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(g(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ur),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kr(e){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(g(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ft(){function e(T,X){return X.length-T.length}var t=[],n=[],r=[],i=[],s,a,l,c,_;for(s=0;s<7;s++)a=I([2e3,1]).day(s),l=V(this.weekdaysMin(a,"")),c=V(this.weekdaysShort(a,"")),_=V(this.weekdays(a,"")),t.push(l),n.push(c),r.push(_),i.push(l),i.push(c),i.push(_);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function mt(){return this.hours()%12||12}function ei(){return this.hours()||24}h("H",["HH",2],0,"hour"),h("h",["hh",2],0,mt),h("k",["kk",2],0,ei),h("hmm",0,0,function(){return""+mt.apply(this)+U(this.minutes(),2)}),h("hmmss",0,0,function(){return""+mt.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),h("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),h("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)});function Kt(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Kt("a",!0),Kt("A",!1);function en(e,t){return t._meridiemParse}d("a",en),d("A",en),d("H",w,lt),d("h",w,le),d("k",w,le),d("HH",w,R),d("hh",w,R),d("kk",w,R),d("hmm",jt),d("hmmss",Gt),d("Hmm",jt),d("Hmmss",Gt),p(["H","HH"],Y),p(["k","kk"],function(e,t,n){var r=m(e);t[Y]=r===24?0:r}),p(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),p(["h","hh"],function(e,t,n){t[Y]=m(e),f(n).bigHour=!0}),p("hmm",function(e,t,n){var r=e.length-2;t[Y]=m(e.substr(0,r)),t[H]=m(e.substr(r)),f(n).bigHour=!0}),p("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Y]=m(e.substr(0,r)),t[H]=m(e.substr(r,2)),t[z]=m(e.substr(i)),f(n).bigHour=!0}),p("Hmm",function(e,t,n){var r=e.length-2;t[Y]=m(e.substr(0,r)),t[H]=m(e.substr(r))}),p("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Y]=m(e.substr(0,r)),t[H]=m(e.substr(r,2)),t[z]=m(e.substr(i))});function ti(e){return(e+"").toLowerCase().charAt(0)==="p"}var ni=/[ap]\.?m?\.?/i,ri=de("Hours",!0);function ii(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var tn={calendar:zn,longDateFormat:Jn,invalidDate:Xn,ordinal:er,dayOfMonthOrdinalParse:tr,relativeTime:rr,months:pr,monthsShort:zt,week:Rr,weekdays:Wr,weekdaysMin:Ir,weekdaysShort:Xt,meridiemParse:ni},k={},De={},Ye;function si(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function nn(e){return e&&e.toLowerCase().replace("_","-")}function ai(e){for(var t=0,n,r,i,s;t<e.length;){for(s=nn(e[t]).split("-"),n=s.length,r=nn(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=We(s.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&si(s,r)>=n-1)break;n--}t++}return Ye}function oi(e){return!!(e&&e.match("^[^/\\\\]*$"))}function We(e){var t=null,n;if(k[e]===void 0&&typeof module<"u"&&module&&module.exports&&oi(e))try{t=Ye._abbr,n=require,n("./locale/"+e),ee(t)}catch{k[e]=null}return k[e]}function ee(e,t){var n;return e&&(N(t)?n=$(e):n=_t(e,t),n?Ye=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ye._abbr}function _t(e,t){if(t!==null){var n,r=tn;if(t.abbr=e,k[e]!=null)Ht("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=k[e]._config;else if(t.parentLocale!=null)if(k[t.parentLocale]!=null)r=k[t.parentLocale]._config;else if(n=We(t.parentLocale),n!=null)r=n._config;else return De[t.parentLocale]||(De[t.parentLocale]=[]),De[t.parentLocale].push({name:e,config:t}),null;return k[e]=new nt(tt(r,t)),De[e]&&De[e].forEach(function(i){_t(i.name,i.config)}),ee(e),k[e]}else return delete k[e],null}function ui(e,t){if(t!=null){var n,r,i=tn;k[e]!=null&&k[e].parentLocale!=null?k[e].set(tt(k[e]._config,t)):(r=We(e),r!=null&&(i=r._config),t=tt(i,t),r==null&&(t.abbr=e),n=new nt(t),n.parentLocale=k[e],k[e]=n),ee(e)}else k[e]!=null&&(k[e].parentLocale!=null?(k[e]=k[e].parentLocale,e===ee()&&ee(e)):k[e]!=null&&delete k[e]);return k[e]}function $(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ye;if(!L(e)){if(t=We(e),t)return t;e=[e]}return ai(e)}function li(){return rt(k)}function yt(e){var t,n=e._a;return n&&f(e).overflow===-2&&(t=n[q]<0||n[q]>11?q:n[j]<1||n[j]>ht(n[O],n[q])?j:n[Y]<0||n[Y]>24||n[Y]===24&&(n[H]!==0||n[z]!==0||n[ie]!==0)?Y:n[H]<0||n[H]>59?H:n[z]<0||n[z]>59?z:n[ie]<0||n[ie]>999?ie:-1,f(e)._overflowDayOfYear&&(t<O||t>j)&&(t=j),f(e)._overflowWeeks&&t===-1&&(t=fr),f(e)._overflowWeekday&&t===-1&&(t=mr),f(e).overflow=t),e}var di=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,hi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ci=/Z|[+-]\d\d(?::?\d\d)?/,Ie=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],gt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],fi=/^\/?Date\((-?\d+)/i,mi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_i={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function rn(e){var t,n,r=e._i,i=di.exec(r)||hi.exec(r),s,a,l,c,_=Ie.length,T=gt.length;if(i){for(f(e).iso=!0,t=0,n=_;t<n;t++)if(Ie[t][1].exec(i[1])){a=Ie[t][0],s=Ie[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,n=T;t<n;t++)if(gt[t][1].exec(i[3])){l=(i[2]||" ")+gt[t][0];break}if(l==null){e._isValid=!1;return}}if(!s&&l!=null){e._isValid=!1;return}if(i[4])if(ci.exec(i[4]))c="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(c||""),pt(e)}else e._isValid=!1}function yi(e,t,n,r,i,s){var a=[gi(e),zt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&a.push(parseInt(s,10)),a}function gi(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function vi(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pi(e,t,n){if(e){var r=Xt.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return f(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function wi(e,t,n){if(e)return _i[e];if(t)return 0;var r=parseInt(n,10),i=r%100,s=(r-i)/100;return s*60+i}function sn(e){var t=mi.exec(vi(e._i)),n;if(t){if(n=yi(t[4],t[3],t[2],t[5],t[6],t[7]),!pi(t[1],n,e))return;e._a=n,e._tzm=wi(t[8],t[9],t[10]),e._d=ke.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function Mi(e){var t=fi.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(rn(e),e._isValid===!1)delete e._isValid;else return;if(sn(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:u.createFromInputFallback(e)}u.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function he(e,t,n){return e??t??n}function ki(e){var t=new Date(u.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function vt(e){var t,n,r=[],i,s,a;if(!e._d){for(i=ki(e),e._w&&e._a[j]==null&&e._a[q]==null&&Si(e),e._dayOfYear!=null&&(a=he(e._a[O],i[O]),(e._dayOfYear>we(a)||e._dayOfYear===0)&&(f(e)._overflowDayOfYear=!0),n=ke(a,0,e._dayOfYear),e._a[q]=n.getUTCMonth(),e._a[j]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Y]===24&&e._a[H]===0&&e._a[z]===0&&e._a[ie]===0&&(e._nextDay=!0,e._a[Y]=0),e._d=(e._useUTC?ke:Nr).apply(null,r),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Y]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(f(e).weekdayMismatch=!0)}}function Si(e){var t,n,r,i,s,a,l,c,_;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,a=4,n=he(t.GG,e._a[O],Se(M(),1,4).year),r=he(t.W,1),i=he(t.E,1),(i<1||i>7)&&(c=!0)):(s=e._locale._week.dow,a=e._locale._week.doy,_=Se(M(),s,a),n=he(t.gg,e._a[O],_.year),r=he(t.w,_.week),t.d!=null?(i=t.d,(i<0||i>6)&&(c=!0)):t.e!=null?(i=t.e+s,(t.e<0||t.e>6)&&(c=!0)):i=s),r<1||r>Z(n,s,a)?f(e)._overflowWeeks=!0:c!=null?f(e)._overflowWeekday=!0:(l=Qt(n,r,i,s,a),e._a[O]=l.year,e._dayOfYear=l.dayOfYear)}u.ISO_8601=function(){},u.RFC_2822=function(){};function pt(e){if(e._f===u.ISO_8601){rn(e);return}if(e._f===u.RFC_2822){sn(e);return}e._a=[],f(e).empty=!0;var t=""+e._i,n,r,i,s,a,l=t.length,c=0,_,T;for(i=Wt(e._f,e._locale).match(it)||[],T=i.length,n=0;n<T;n++)s=i[n],r=(t.match(dr(s,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&f(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),c+=r.length),oe[s]?(r?f(e).empty=!1:f(e).unusedTokens.push(s),cr(s,r,e)):e._strict&&!r&&f(e).unusedTokens.push(s);f(e).charsLeftOver=l-c,t.length>0&&f(e).unusedInput.push(t),e._a[Y]<=12&&f(e).bigHour===!0&&e._a[Y]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[Y]=Di(e._locale,e._a[Y],e._meridiem),_=f(e).era,_!==null&&(e._a[O]=e._locale.erasConvertYear(_,e._a[O])),vt(e),yt(e)}function Di(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Yi(e){var t,n,r,i,s,a,l=!1,c=e._f.length;if(c===0){f(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)s=0,a=!1,t=et({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],pt(t),Xe(t)&&(a=!0),s+=f(t).charsLeftOver,s+=f(t).unusedTokens.length*10,f(t).score=s,l?s<r&&(r=s,n=t):(r==null||s<r||a)&&(r=s,n=t,a&&(l=!0));K(e,n||t)}function Oi(e){if(!e._d){var t=at(e._i),n=t.day===void 0?t.date:t.day;e._a=Pt([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),vt(e)}}function Ti(e){var t=new ge(yt(an(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function an(e){var t=e._i,n=e._f;return e._locale=e._locale||$(e._l),t===null||n===void 0&&t===""?Te({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),A(t)?new ge(yt(t)):(ye(t)?e._d=t:L(n)?Yi(e):n?pt(e):bi(e),Xe(e)||(e._d=null),e))}function bi(e){var t=e._i;N(t)?e._d=new Date(u.now()):ye(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Mi(e):L(t)?(e._a=Pt(t.slice(0),function(n){return parseInt(n,10)}),vt(e)):re(t)?Oi(e):G(t)?e._d=new Date(t):u.createFromInputFallback(e)}function on(e,t,n,r,i){var s={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(re(e)&&Je(e)||L(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,Ti(s)}function M(e,t,n,r){return on(e,t,n,r,!1)}var Ni=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Te()}),Ci=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Te()});function un(e,t){var n,r;if(t.length===1&&L(t[0])&&(t=t[0]),!t.length)return M();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function Ri(){var e=[].slice.call(arguments,0);return un("isBefore",e)}function xi(){var e=[].slice.call(arguments,0);return un("isAfter",e)}var Pi=function(){return Date.now?Date.now():+new Date},Oe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ei(e){var t,n=!1,r,i=Oe.length;for(t in e)if(g(e,t)&&!(D.call(Oe,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Oe[r]]){if(n)return!1;parseFloat(e[Oe[r]])!==m(e[Oe[r]])&&(n=!0)}return!0}function Li(){return this._isValid}function Ai(){return W(NaN)}function Fe(e){var t=at(e),n=t.year||0,r=t.quarter||0,i=t.month||0,s=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,c=t.minute||0,_=t.second||0,T=t.millisecond||0;this._isValid=Ei(t),this._milliseconds=+T+_*1e3+c*6e4+l*1e3*60*60,this._days=+a+s*7,this._months=+i+r*3+n*12,this._data={},this._locale=$(),this._bubble()}function Ue(e){return e instanceof Fe}function wt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Hi(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0,a;for(a=0;a<r;a++)m(e[a])!==m(t[a])&&s++;return s+i}function ln(e,t){h(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+U(~~(n/60),2)+t+U(~~n%60,2)})}ln("Z",":"),ln("ZZ",""),d("Z",Ee),d("ZZ",Ee),p(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Mt(Ee,e)});var Wi=/([\+\-]|\d\d)/gi;function Mt(e,t){var n=(t||"").match(e),r,i,s;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(Wi)||["-",0,0],s=+(i[1]*60)+m(i[2]),s===0?0:i[0]==="+"?s:-s)}function kt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(A(e)||ye(e)?e.valueOf():M(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),u.updateOffset(n,!1),n):M(e).local()}function St(e){return-Math.round(e._d.getTimezoneOffset())}u.updateOffset=function(){};function Ii(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Mt(Ee,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=St(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?fn(this,W(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,u.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:St(this)}function Fi(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ui(e){return this.utcOffset(0,e)}function ji(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(St(this),"m")),this}function Gi(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Mt(ur,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Vi(e){return this.isValid()?(e=e?M(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function qi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zi(){if(!N(this._isDSTShifted))return this._isDSTShifted;var e={},t;return et(e,this),e=an(e),e._a?(t=e._isUTC?I(e._a):M(e._a),this._isDSTShifted=this.isValid()&&Hi(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Zi(){return this.isValid()?!this._isUTC:!1}function $i(){return this.isValid()?this._isUTC:!1}function dn(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ji=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function W(e,t){var n=e,r=null,i,s,a;return Ue(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:G(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Bi.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:m(r[j])*i,h:m(r[Y])*i,m:m(r[H])*i,s:m(r[z])*i,ms:m(wt(r[ie]*1e3))*i}):(r=Ji.exec(e))?(i=r[1]==="-"?-1:1,n={y:se(r[2],i),M:se(r[3],i),w:se(r[4],i),d:se(r[5],i),h:se(r[6],i),m:se(r[7],i),s:se(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=Qi(M(n.from),M(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),s=new Fe(n),Ue(e)&&g(e,"_locale")&&(s._locale=e._locale),Ue(e)&&g(e,"_isValid")&&(s._isValid=e._isValid),s}W.fn=Fe.prototype,W.invalid=Ai;function se(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function hn(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Qi(e,t){var n;return e.isValid()&&t.isValid()?(t=kt(t,e),e.isBefore(t)?n=hn(e,t):(n=hn(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function cn(e,t){return function(n,r){var i,s;return r!==null&&!isNaN(+r)&&(Ht(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=r,r=s),i=W(n,r),fn(this,i,e),this}}function fn(e,t,n,r){var i=t._milliseconds,s=wt(t._days),a=wt(t._months);e.isValid()&&(r=r??!0,a&&$t(e,Me(e,"Month")+a*n),s&&qt(e,"Date",Me(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&u.updateOffset(e,s||a))}var Xi=cn(1,"add"),Ki=cn(-1,"subtract");function mn(e){return typeof e=="string"||e instanceof String}function es(e){return A(e)||ye(e)||mn(e)||G(e)||ns(e)||ts(e)||e===null||e===void 0}function ts(e){var t=re(e)&&!Je(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,s,a=r.length;for(i=0;i<a;i+=1)s=r[i],n=n||g(e,s);return t&&n}function ns(e){var t=L(e),n=!1;return t&&(n=e.filter(function(r){return!G(r)&&mn(e)}).length===0),t&&n}function rs(e){var t=re(e)&&!Je(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,s;for(i=0;i<r.length;i+=1)s=r[i],n=n||g(e,s);return t&&n}function is(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function ss(e,t){arguments.length===1&&(arguments[0]?es(arguments[0])?(e=arguments[0],t=void 0):rs(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||M(),r=kt(n,this).startOf("day"),i=u.calendarFormat(this,r)||"sameElse",s=t&&(F(t[i])?t[i].call(this,n):t[i]);return this.format(s||this.localeData().calendar(i,this,M(n)))}function as(){return new ge(this)}function os(e,t){var n=A(e)?e:M(e);return this.isValid()&&n.isValid()?(t=P(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function us(e,t){var n=A(e)?e:M(e);return this.isValid()&&n.isValid()?(t=P(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function ls(e,t,n,r){var i=A(e)?e:M(e),s=A(t)?t:M(t);return this.isValid()&&i.isValid()&&s.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(s,n):!this.isAfter(s,n))):!1}function ds(e,t){var n=A(e)?e:M(e),r;return this.isValid()&&n.isValid()?(t=P(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function hs(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function cs(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function fs(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(r=kt(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=P(t),t){case"year":s=je(this,r)/12;break;case"month":s=je(this,r);break;case"quarter":s=je(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:E(s)}function je(e,t){if(e.date()<t.date())return-je(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,s;return t-r<0?(i=e.clone().add(n-1,"months"),s=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),s=(t-r)/(i-r)),-(n+s)||0}u.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",u.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ms(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _s(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Ne(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):F(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ne(n,"Z")):Ne(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ys(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(n+r+i+s)}function gs(e){e||(e=this.isUtc()?u.defaultFormatUtc:u.defaultFormat);var t=Ne(this,e);return this.localeData().postformat(t)}function vs(e,t){return this.isValid()&&(A(e)&&e.isValid()||M(e).isValid())?W({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ps(e){return this.from(M(),e)}function ws(e,t){return this.isValid()&&(A(e)&&e.isValid()||M(e).isValid())?W({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ms(e){return this.to(M(),e)}function _n(e){var t;return e===void 0?this._locale._abbr:(t=$(e),t!=null&&(this._locale=t),this)}var yn=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function gn(){return this._locale}var Ge=1e3,ce=60*Ge,Ve=60*ce,vn=(365*400+97)*24*Ve;function fe(e,t){return(e%t+t)%t}function pn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-vn:new Date(e,t,n).valueOf()}function wn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-vn:Date.UTC(e,t,n)}function ks(e){var t,n;if(e=P(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?wn:pn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fe(t+(this._isUTC?0:this.utcOffset()*ce),Ve);break;case"minute":t=this._d.valueOf(),t-=fe(t,ce);break;case"second":t=this._d.valueOf(),t-=fe(t,Ge);break}return this._d.setTime(t),u.updateOffset(this,!0),this}function Ss(e){var t,n;if(e=P(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?wn:pn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ve-fe(t+(this._isUTC?0:this.utcOffset()*ce),Ve)-1;break;case"minute":t=this._d.valueOf(),t+=ce-fe(t,ce)-1;break;case"second":t=this._d.valueOf(),t+=Ge-fe(t,Ge)-1;break}return this._d.setTime(t),u.updateOffset(this,!0),this}function Ds(){return this._d.valueOf()-(this._offset||0)*6e4}function Ys(){return Math.floor(this.valueOf()/1e3)}function Os(){return new Date(this.valueOf())}function Ts(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bs(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ns(){return this.isValid()?this.toISOString():null}function Cs(){return Xe(this)}function Rs(){return K({},f(this))}function xs(){return f(this).overflow}function Ps(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr"),h("NN",0,0,"eraAbbr"),h("NNN",0,0,"eraAbbr"),h("NNNN",0,0,"eraName"),h("NNNNN",0,0,"eraNarrow"),h("y",["y",1],"yo","eraYear"),h("y",["yy",2],0,"eraYear"),h("y",["yyy",3],0,"eraYear"),h("y",["yyyy",4],0,"eraYear"),d("N",Dt),d("NN",Dt),d("NNN",Dt),d("NNNN",Vs),d("NNNNN",qs),p(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?f(n).era=i:f(n).invalidEra=e}),d("y",ue),d("yy",ue),d("yyy",ue),d("yyyy",ue),d("yo",zs),p(["y","yy","yyy","yyyy"],O),p(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[O]=n._locale.eraYearOrdinalParse(e,i):t[O]=parseInt(e,10)});function Es(e,t){var n,r,i,s=this._eras||$("en")._eras;for(n=0,r=s.length;n<r;++n){switch(typeof s[n].since){case"string":i=u(s[n].since).startOf("day"),s[n].since=i.valueOf();break}switch(typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":i=u(s[n].until).startOf("day").valueOf(),s[n].until=i.valueOf();break}}return s}function Ls(e,t,n){var r,i,s=this.eras(),a,l,c;for(e=e.toUpperCase(),r=0,i=s.length;r<i;++r)if(a=s[r].name.toUpperCase(),l=s[r].abbr.toUpperCase(),c=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return s[r];break;case"NNNN":if(a===e)return s[r];break;case"NNNNN":if(c===e)return s[r];break}else if([a,l,c].indexOf(e)>=0)return s[r]}function As(e,t){var n=e.since<=e.until?1:-1;return t===void 0?u(e.since).year():u(e.since).year()+(t-e.offset)*n}function Hs(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function Ws(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function Is(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function Fs(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-u(i[e].since).year())*n+i[e].offset;return this.year()}function Us(e){return g(this,"_erasNameRegex")||Yt.call(this),e?this._erasNameRegex:this._erasRegex}function js(e){return g(this,"_erasAbbrRegex")||Yt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Gs(e){return g(this,"_erasNarrowRegex")||Yt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Dt(e,t){return t.erasAbbrRegex(e)}function Vs(e,t){return t.erasNameRegex(e)}function qs(e,t){return t.erasNarrowRegex(e)}function zs(e,t){return t._eraYearOrdinalRegex||ue}function Yt(){var e=[],t=[],n=[],r=[],i,s,a,l,c,_=this.eras();for(i=0,s=_.length;i<s;++i)a=V(_[i].name),l=V(_[i].abbr),c=V(_[i].narrow),t.push(a),e.push(l),n.push(c),r.push(a),r.push(l),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}h(0,["gg",2],0,function(){return this.weekYear()%100}),h(0,["GG",2],0,function(){return this.isoWeekYear()%100});function qe(e,t){h(0,[e,e.length],0,t)}qe("gggg","weekYear"),qe("ggggg","weekYear"),qe("GGGG","isoWeekYear"),qe("GGGGG","isoWeekYear"),d("G",Pe),d("g",Pe),d("GG",w,R),d("gg",w,R),d("GGGG",ut,ot),d("gggg",ut,ot),d("GGGGG",xe,Ce),d("ggggg",xe,Ce),pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=m(e)}),pe(["gg","GG"],function(e,t,n,r){t[r]=u.parseTwoDigitYear(e)});function Zs(e){return Mn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function $s(e){return Mn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Bs(){return Z(this.year(),1,4)}function Js(){return Z(this.isoWeekYear(),1,4)}function Qs(){var e=this.localeData()._week;return Z(this.year(),e.dow,e.doy)}function Xs(){var e=this.localeData()._week;return Z(this.weekYear(),e.dow,e.doy)}function Mn(e,t,n,r,i){var s;return e==null?Se(this,r,i).year:(s=Z(e,r,i),t>s&&(t=s),Ks.call(this,e,t,n,r,i))}function Ks(e,t,n,r,i){var s=Qt(e,t,n,r,i),a=ke(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}h("Q",0,"Qo","quarter"),d("Q",Ft),p("Q",function(e,t){t[q]=(m(e)-1)*3});function ea(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date"),d("D",w,le),d("DD",w,R),d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),p(["D","DD"],j),p("Do",function(e,t){t[j]=m(e.match(w)[0])});var kn=de("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear"),d("DDD",Re),d("DDDD",Ut),p(["DDD","DDDD"],function(e,t,n){n._dayOfYear=m(e)});function ta(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute"),d("m",w,lt),d("mm",w,R),p(["m","mm"],H);var na=de("Minutes",!1);h("s",["ss",2],0,"second"),d("s",w,lt),d("ss",w,R),p(["s","ss"],z);var ra=de("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)}),h(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),h(0,["SSS",3],0,"millisecond"),h(0,["SSSS",4],0,function(){return this.millisecond()*10}),h(0,["SSSSS",5],0,function(){return this.millisecond()*100}),h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),d("S",Re,Ft),d("SS",Re,R),d("SSS",Re,Ut);var te,Sn;for(te="SSSS";te.length<=9;te+="S")d(te,ue);function ia(e,t){t[ie]=m(("0."+e)*1e3)}for(te="S";te.length<=9;te+="S")p(te,ia);Sn=de("Milliseconds",!1),h("z",0,0,"zoneAbbr"),h("zz",0,0,"zoneName");function sa(){return this._isUTC?"UTC":""}function aa(){return this._isUTC?"Coordinated Universal Time":""}var o=ge.prototype;o.add=Xi,o.calendar=ss,o.clone=as,o.diff=fs,o.endOf=Ss,o.format=gs,o.from=vs,o.fromNow=ps,o.to=ws,o.toNow=Ms,o.get=yr,o.invalidAt=xs,o.isAfter=os,o.isBefore=us,o.isBetween=ls,o.isSame=ds,o.isSameOrAfter=hs,o.isSameOrBefore=cs,o.isValid=Cs,o.lang=yn,o.locale=_n,o.localeData=gn,o.max=Ci,o.min=Ni,o.parsingFlags=Rs,o.set=gr,o.startOf=ks,o.subtract=Ki,o.toArray=Ts,o.toObject=bs,o.toDate=Os,o.toISOString=_s,o.inspect=ys,typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=Ns,o.toString=ms,o.unix=Ys,o.valueOf=Ds,o.creationData=Ps,o.eraName=Hs,o.eraNarrow=Ws,o.eraAbbr=Is,o.eraYear=Fs,o.year=Vt,o.isLeapYear=_r,o.weekYear=Zs,o.isoWeekYear=$s,o.quarter=o.quarters=ea,o.month=Bt,o.daysInMonth=Or,o.week=o.weeks=Er,o.isoWeek=o.isoWeeks=Lr,o.weeksInYear=Qs,o.weeksInWeekYear=Xs,o.isoWeeksInYear=Bs,o.isoWeeksInISOWeekYear=Js,o.date=kn,o.day=o.days=$r,o.weekday=Br,o.isoWeekday=Jr,o.dayOfYear=ta,o.hour=o.hours=ri,o.minute=o.minutes=na,o.second=o.seconds=ra,o.millisecond=o.milliseconds=Sn,o.utcOffset=Ii,o.utc=Ui,o.local=ji,o.parseZone=Gi,o.hasAlignedHourOffset=Vi,o.isDST=qi,o.isLocal=Zi,o.isUtcOffset=$i,o.isUtc=dn,o.isUTC=dn,o.zoneAbbr=sa,o.zoneName=aa,o.dates=x("dates accessor is deprecated. Use date instead.",kn),o.months=x("months accessor is deprecated. Use month instead",Bt),o.years=x("years accessor is deprecated. Use year instead",Vt),o.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Fi),o.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zi);function oa(e){return M(e*1e3)}function ua(){return M.apply(null,arguments).parseZone()}function Dn(e){return e}var v=nt.prototype;v.calendar=Zn,v.longDateFormat=Qn,v.invalidDate=Kn,v.ordinal=nr,v.preparse=Dn,v.postformat=Dn,v.relativeTime=ir,v.pastFuture=sr,v.set=qn,v.eras=Es,v.erasParse=Ls,v.erasConvertYear=As,v.erasAbbrRegex=js,v.erasNameRegex=Us,v.erasNarrowRegex=Gs,v.months=kr,v.monthsShort=Sr,v.monthsParse=Yr,v.monthsRegex=br,v.monthsShortRegex=Tr,v.week=Cr,v.firstDayOfYear=Pr,v.firstDayOfWeek=xr,v.weekdays=Gr,v.weekdaysMin=qr,v.weekdaysShort=Vr,v.weekdaysParse=Zr,v.weekdaysRegex=Qr,v.weekdaysShortRegex=Xr,v.weekdaysMinRegex=Kr,v.isPM=ti,v.meridiem=ii;function ze(e,t,n,r){var i=$(),s=I().set(r,t);return i[n](s,e)}function Yn(e,t,n){if(G(e)&&(t=e,e=void 0),e=e||"",t!=null)return ze(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ze(e,r,n,"month");return i}function Ot(e,t,n,r){typeof e=="boolean"?(G(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,G(t)&&(n=t,t=void 0),t=t||"");var i=$(),s=e?i._week.dow:0,a,l=[];if(n!=null)return ze(t,(n+s)%7,r,"day");for(a=0;a<7;a++)l[a]=ze(t,(a+s)%7,r,"day");return l}function la(e,t){return Yn(e,t,"months")}function da(e,t){return Yn(e,t,"monthsShort")}function ha(e,t,n){return Ot(e,t,n,"weekdays")}function ca(e,t,n){return Ot(e,t,n,"weekdaysShort")}function fa(e,t,n){return Ot(e,t,n,"weekdaysMin")}ee("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=m(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),u.lang=x("moment.lang is deprecated. Use moment.locale instead.",ee),u.langData=x("moment.langData is deprecated. Use moment.localeData instead.",$);var B=Math.abs;function ma(){var e=this._data;return this._milliseconds=B(this._milliseconds),this._days=B(this._days),this._months=B(this._months),e.milliseconds=B(e.milliseconds),e.seconds=B(e.seconds),e.minutes=B(e.minutes),e.hours=B(e.hours),e.months=B(e.months),e.years=B(e.years),this}function On(e,t,n,r){var i=W(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function _a(e,t){return On(this,e,t,1)}function ya(e,t){return On(this,e,t,-1)}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function ga(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,s,a,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Tn(Tt(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=E(e/1e3),r.seconds=i%60,s=E(i/60),r.minutes=s%60,a=E(s/60),r.hours=a%24,t+=E(a/24),c=E(bn(t)),n+=c,t-=Tn(Tt(c)),l=E(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function bn(e){return e*4800/146097}function Tt(e){return e*146097/4800}function va(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=P(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Tt(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function J(e){return function(){return this.as(e)}}var Nn=J("ms"),pa=J("s"),wa=J("m"),Ma=J("h"),ka=J("d"),Sa=J("w"),Da=J("M"),Ya=J("Q"),Oa=J("y"),Ta=Nn;function ba(){return W(this)}function Na(e){return e=P(e),this.isValid()?this[e+"s"]():NaN}function ae(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ca=ae("milliseconds"),Ra=ae("seconds"),xa=ae("minutes"),Pa=ae("hours"),Ea=ae("days"),La=ae("months"),Aa=ae("years");function Ha(){return E(this.days()/7)}var Q=Math.round,me={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Wa(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function Ia(e,t,n,r){var i=W(e).abs(),s=Q(i.as("s")),a=Q(i.as("m")),l=Q(i.as("h")),c=Q(i.as("d")),_=Q(i.as("M")),T=Q(i.as("w")),X=Q(i.as("y")),ne=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(ne=ne||T<=1&&["w"]||T<n.w&&["ww",T]),ne=ne||_<=1&&["M"]||_<n.M&&["MM",_]||X<=1&&["y"]||["yy",X],ne[2]=t,ne[3]=+e>0,ne[4]=r,Wa.apply(null,ne)}function Fa(e){return e===void 0?Q:typeof e=="function"?(Q=e,!0):!1}function Ua(e,t){return me[e]===void 0?!1:t===void 0?me[e]:(me[e]=t,e==="s"&&(me.ss=t-1),!0)}function ja(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=me,i,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},me,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),s=Ia(this,!n,r,i),n&&(s=i.pastFuture(+this,s)),i.postformat(s)}var bt=Math.abs;function _e(e){return(e>0)-(e<0)||+e}function Ze(){if(!this.isValid())return this.localeData().invalidDate();var e=bt(this._milliseconds)/1e3,t=bt(this._days),n=bt(this._months),r,i,s,a,l=this.asSeconds(),c,_,T,X;return l?(r=E(e/60),i=E(r/60),e%=60,r%=60,s=E(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",_=_e(this._months)!==_e(l)?"-":"",T=_e(this._days)!==_e(l)?"-":"",X=_e(this._milliseconds)!==_e(l)?"-":"",c+"P"+(s?_+s+"Y":"")+(n?_+n+"M":"")+(t?T+t+"D":"")+(i||r||e?"T":"")+(i?X+i+"H":"")+(r?X+r+"M":"")+(e?X+a+"S":"")):"P0D"}var y=Fe.prototype;y.isValid=Li,y.abs=ma,y.add=_a,y.subtract=ya,y.as=va,y.asMilliseconds=Nn,y.asSeconds=pa,y.asMinutes=wa,y.asHours=Ma,y.asDays=ka,y.asWeeks=Sa,y.asMonths=Da,y.asQuarters=Ya,y.asYears=Oa,y.valueOf=Ta,y._bubble=ga,y.clone=ba,y.get=Na,y.milliseconds=Ca,y.seconds=Ra,y.minutes=xa,y.hours=Pa,y.days=Ea,y.weeks=Ha,y.months=La,y.years=Aa,y.humanize=ja,y.toISOString=Ze,y.toString=Ze,y.toJSON=Ze,y.locale=_n,y.localeData=gn,y.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ze),y.lang=yn,h("X",0,0,"unix"),h("x",0,0,"valueOf"),d("x",Pe),d("X",lr),p("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),p("x",function(e,t,n){n._d=new Date(m(e))});//! moment.js
|
|
10
|
+
u.version="2.30.1",Gn(M),u.fn=o,u.min=Ri,u.max=xi,u.now=Pi,u.utc=I,u.unix=oa,u.months=la,u.isDate=ye,u.locale=ee,u.invalid=Te,u.duration=W,u.isMoment=A,u.weekdays=ha,u.parseZone=ua,u.localeData=$,u.isDuration=Ue,u.monthsShort=da,u.weekdaysMin=fa,u.defineLocale=_t,u.updateLocale=ui,u.locales=li,u.weekdaysShort=ca,u.normalizeUnits=P,u.relativeTimeRounding=Fa,u.relativeTimeThreshold=Ua,u.calendarFormat=is,u.prototype=o,u.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ga=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Va=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Cn=/(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Nt=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],qa={months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:Cn,monthsShortRegex:Cn,monthsStrictRegex:Ga,monthsShortStrictRegex:Va,monthsParse:Nt,longMonthsParse:Nt,shortMonthsParse:Nt,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:(e,t)=>{switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}};u.locale("fr",qa);const Rn=e=>Math.round(5e3*Math.pow(200,.01*e)/10)*10,Ct=e=>e>=1?Ct(e-1)+Rn(e):0,xn=(e,t=0)=>e<Ct(t+1)?t:xn(e,t+1),za=([e,t])=>t?`${C.t("xp.user",{amount:Be(e),emoji:$e.xp})} ${C.t("xp.crew",{amount:Be(t),emoji:$e.xp})}`:C.t("xp.user",{amount:Be(e),emoji:$e.xp});S.CHARACTERISTICS=En,S.CHARACTERISTIC_DEFAULT_POINT_COST=Rt,S.CHARACTERISTIC_POINT_COSTS=An,S.CHARACTERISTIC_POINT_PER_LEVEL=Ln,S.DEFAULT_FACTION=Fn,S.DEFAULT_MAX_HP=Hn,S.FACTIONS=In,S.HP_PER_VITALITY=Wn,S.RANKS=Pn,S.RankId=b,S.SORT_VALUES=Un,S.displayXp=za,S.getCurrentLevel=xn,S.getNewSortValue=jn,S.totalXpToLevel=Ct,S.xpToLevel=Rn,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/ranks/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/ranks/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,KAAK,EAAE;KAAG,GAAG,IAAI,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC;CA2CtC,CAAC"}
|
package/dist/ranks/constants.js
CHANGED
|
@@ -1,10 +1,41 @@
|
|
|
1
|
+
import { t } from 'i18next';
|
|
1
2
|
import { RankId } from './types';
|
|
2
3
|
export const RANKS = {
|
|
3
|
-
BASIC: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
BASIC: {
|
|
5
|
+
color: '#fff',
|
|
6
|
+
strength: 0,
|
|
7
|
+
id: RankId.BASIC,
|
|
8
|
+
name: (context, count = 1) => t(`ranks.${RankId.BASIC}.text`, { count, context }),
|
|
9
|
+
},
|
|
10
|
+
COMMON: {
|
|
11
|
+
color: '#813D31',
|
|
12
|
+
strength: 1,
|
|
13
|
+
id: RankId.COMMON,
|
|
14
|
+
name: (context, count = 1) => t(`ranks.${RankId.COMMON}.text`, { count, context }),
|
|
15
|
+
},
|
|
16
|
+
RARE: {
|
|
17
|
+
color: '#5B6870',
|
|
18
|
+
strength: 2,
|
|
19
|
+
id: RankId.RARE,
|
|
20
|
+
name: (context, count = 1) => t(`ranks.${RankId.RARE}.text`, { count, context }),
|
|
21
|
+
},
|
|
22
|
+
EPIC: {
|
|
23
|
+
color: '#C46619',
|
|
24
|
+
strength: 3,
|
|
25
|
+
id: RankId.EPIC,
|
|
26
|
+
name: (context, count = 1) => t(`ranks.${RankId.EPIC}.text`, { count, context }),
|
|
27
|
+
},
|
|
28
|
+
LEGENDARY: {
|
|
29
|
+
color: '#88A3CB',
|
|
30
|
+
strength: 4,
|
|
31
|
+
id: RankId.LEGENDARY,
|
|
32
|
+
name: (context, count = 1) => t(`ranks.${RankId.LEGENDARY}.text`, { count, context }),
|
|
33
|
+
},
|
|
34
|
+
MYTHIC: {
|
|
35
|
+
color: '#F6bF62',
|
|
36
|
+
strength: 5,
|
|
37
|
+
id: RankId.MYTHIC,
|
|
38
|
+
name: (context, count = 1) => t(`ranks.${RankId.MYTHIC}.text`, { count, context }),
|
|
39
|
+
},
|
|
9
40
|
};
|
|
10
41
|
//# sourceMappingURL=constants.js.map
|