@opfr/quests 1.3.0 → 1.4.1

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.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(j,at){typeof exports=="object"&&typeof module<"u"?at(exports,require("@napi-rs/canvas"),require("@opfr/services")):typeof define=="function"&&define.amd?define(["exports","@napi-rs/canvas","@opfr/services"],at):(j=typeof globalThis<"u"?globalThis:j||self,at(j.definitions={},j["@napi-rs/canvas"],j["@opfr/services"]))})(this,(function(j,at,y){"use strict";const ue=(e,t)=>(e.options={...e.options,...t,text:"text"in e.options?e.options.text:""},t.enable&&(e.options={...e.options,x:t.x+(t.width??0),y:t.y}),e);var be=(e=>(e.TOP_LEFT="top-left",e.TOP="top",e.TOP_RIGHT="top-right",e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM="bottom",e.BOTTOM_RIGHT="bottom-right",e))(be||{});var Es;function p(){return Es.apply(null,arguments)}function ri(e){Es=e}function X(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Me(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ut(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(x(e,t))return!1;return!0}function V(e){return e===void 0}function de(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ue(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Rs(e,t){var s=[],r,i=e.length;for(r=0;r<i;++r)s.push(t(e[r],r));return s}function we(e,t){for(var s in t)x(t,s)&&(e[s]=t[s]);return x(t,"toString")&&(e.toString=t.toString),x(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ie(e,t,s,r){return sr(e,t,s,r,!0).utc()}function ii(){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 v(e){return e._pf==null&&(e._pf=ii()),e._pf}var Wt;Array.prototype.some?Wt=Array.prototype.some:Wt=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Ht(e){var t=null,s=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=v(e),s=Wt.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&&s),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 ot(e){var t=ie(NaN);return e!=null?we(v(t),e):v(t).userInvalidated=!0,t}var Ts=p.momentProperties=[],Vt=!1;function $t(e,t){var s,r,i,n=Ts.length;if(V(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),V(t._i)||(e._i=t._i),V(t._f)||(e._f=t._f),V(t._l)||(e._l=t._l),V(t._strict)||(e._strict=t._strict),V(t._tzm)||(e._tzm=t._tzm),V(t._isUTC)||(e._isUTC=t._isUTC),V(t._offset)||(e._offset=t._offset),V(t._pf)||(e._pf=v(t)),V(t._locale)||(e._locale=t._locale),n>0)for(s=0;s<n;s++)r=Ts[s],i=t[r],V(i)||(e[r]=i);return e}function We(e){$t(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Vt===!1&&(Vt=!0,p.updateOffset(this),Vt=!1)}function ee(e){return e instanceof We||e!=null&&e._isAMomentObject!=null}function Cs(e){p.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function q(e,t){var s=!0;return we(function(){if(p.deprecationHandler!=null&&p.deprecationHandler(null,e),s){var r=[],i,n,a,o=arguments.length;for(n=0;n<o;n++){if(i="",typeof arguments[n]=="object"){i+=`
2
- [`+n+"] ";for(a in arguments[0])x(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[n];r.push(i)}Cs(e+`
3
- Arguments: `+Array.prototype.slice.call(r).join("")+`
4
- `+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var Ns={};function Ys(e,t){p.deprecationHandler!=null&&p.deprecationHandler(e,t),Ns[e]||(Cs(t),Ns[e]=!0)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null;function ne(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ni(e){var t,s;for(s in e)x(e,s)&&(t=e[s],ne(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Gt(e,t){var s=we({},e),r;for(r in t)x(t,r)&&(Me(e[r])&&Me(t[r])?(s[r]={},we(s[r],e[r]),we(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)x(e,r)&&!x(t,r)&&Me(e[r])&&(s[r]=we({},s[r]));return s}function Bt(e){e!=null&&this.set(e)}var zt;Object.keys?zt=Object.keys:zt=function(e){var t,s=[];for(t in e)x(e,t)&&s.push(t);return s};var ai={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function oi(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return ne(r)?r.call(t,s):r}function ae(e,t,s){var r=""+Math.abs(e),i=t-r.length,n=e>=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Qt=/(\[[^\[]*\])|(\\)?([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,lt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,qt={},Ee={};function _(e,t,s,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Ee[e]=i),t&&(Ee[t[0]]=function(){return ae(i.apply(this,arguments),t[1],t[2])}),s&&(Ee[s]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function li(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ui(e){var t=e.match(Qt),s,r;for(s=0,r=t.length;s<r;s++)Ee[t[s]]?t[s]=Ee[t[s]]:t[s]=li(t[s]);return function(i){var n="",a;for(a=0;a<r;a++)n+=ne(t[a])?t[a].call(i,e):t[a];return n}}function ut(e,t){return e.isValid()?(t=Ps(t,e.localeData()),qt[t]=qt[t]||ui(t),qt[t](e)):e.localeData().invalidDate()}function Ps(e,t){var s=5;function r(i){return t.longDateFormat(i)||i}for(lt.lastIndex=0;s>=0&&lt.test(e);)e=e.replace(lt,r),lt.lastIndex=0,s-=1;return e}var di={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 ci(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(Qt).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var fi="Invalid date";function hi(){return this._invalidDate}var mi="%d",pi=/\d{1,2}/;function gi(e){return this._ordinal.replace("%d",e)}var _i={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 yi(e,t,s,r){var i=this._relativeTime[s];return ne(i)?i(e,t,s,r):i.replace(/%d/i,e)}function wi(e,t){var s=this._relativeTime[e>0?"future":"past"];return ne(s)?s(t):s.replace(/%s/i,t)}var Ls={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 K(e){return typeof e=="string"?Ls[e]||Ls[e.toLowerCase()]:void 0}function Kt(e){var t={},s,r;for(r in e)x(e,r)&&(s=K(r),s&&(t[s]=e[r]));return t}var Si={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 vi(e){var t=[],s;for(s in e)x(e,s)&&t.push({unit:s,priority:Si[s]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Is=/\d/,$=/\d\d/,As=/\d{3}/,Jt=/\d{4}/,dt=/[+-]?\d{6}/,C=/\d\d?/,Fs=/\d\d\d\d?/,js=/\d\d\d\d\d\d?/,ct=/\d{1,3}/,Zt=/\d{1,4}/,ft=/[+-]?\d{1,6}/,Re=/\d+/,ht=/[+-]?\d+/,bi=/Z|[+-]\d\d:?\d\d/gi,mt=/Z|[+-]\d\d(?::?\d\d)?/gi,Mi=/[+-]?\d+(\.\d{1,3})?/,He=/[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,Te=/^[1-9]\d?/,Xt=/^([1-9]\d|\d)/,pt;pt={};function g(e,t,s){pt[e]=ne(t)?t:function(r,i){return r&&s?s:t}}function Oi(e,t){return x(pt,e)?pt[e](t._strict,t._locale):new RegExp(ki(e))}function ki(e){return ce(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,i,n){return s||r||i||n}))}function ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function J(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=J(t)),s}var es={};function T(e,t){var s,r=t,i;for(typeof e=="string"&&(e=[e]),de(t)&&(r=function(n,a){a[t]=b(n)}),i=e.length,s=0;s<i;s++)es[e[s]]=r}function Ve(e,t){T(e,function(s,r,i,n){i._w=i._w||{},t(s,i._w,i,n)})}function xi(e,t,s){t!=null&&x(es,e)&&es[e](t,s._a,s,e)}function gt(e){return e%4===0&&e%100!==0||e%400===0}var U=0,fe=1,oe=2,F=3,te=4,he=5,Oe=6,Di=7,Ei=8;_("Y",0,0,function(){var e=this.year();return e<=9999?ae(e,4):"+"+e}),_(0,["YY",2],0,function(){return this.year()%100}),_(0,["YYYY",4],0,"year"),_(0,["YYYYY",5],0,"year"),_(0,["YYYYYY",6,!0],0,"year"),g("Y",ht),g("YY",C,$),g("YYYY",Zt,Jt),g("YYYYY",ft,dt),g("YYYYYY",ft,dt),T(["YYYYY","YYYYYY"],U),T("YYYY",function(e,t){t[U]=e.length===2?p.parseTwoDigitYear(e):b(e)}),T("YY",function(e,t){t[U]=p.parseTwoDigitYear(e)}),T("Y",function(e,t){t[U]=parseInt(e,10)});function $e(e){return gt(e)?366:365}p.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var Us=Ce("FullYear",!0);function Ri(){return gt(this.year())}function Ce(e,t){return function(s){return s!=null?(Ws(this,e,s),p.updateOffset(this,t),this):Ge(this,e)}}function Ge(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Ws(e,t,s){var r,i,n,a,o;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(i?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(i?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(i?r.setUTCHours(s):r.setHours(s));case"Date":return void(i?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,a=e.month(),o=e.date(),o=o===29&&a===1&&!gt(n)?28:o,i?r.setUTCFullYear(n,a,o):r.setFullYear(n,a,o)}}function Ti(e){return e=K(e),ne(this[e])?this[e]():this}function Ci(e,t){if(typeof e=="object"){e=Kt(e);var s=vi(e),r,i=s.length;for(r=0;r<i;r++)this[s[r].unit](e[s[r].unit])}else if(e=K(e),ne(this[e]))return this[e](t);return this}function Ni(e,t){return(e%t+t)%t}var L;Array.prototype.indexOf?L=Array.prototype.indexOf:L=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ts(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=Ni(t,12);return e+=(t-s)/12,s===1?gt(e)?29:28:31-s%7%2}_("M",["MM",2],"Mo",function(){return this.month()+1}),_("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),_("MMMM",0,0,function(e){return this.localeData().months(this,e)}),g("M",C,Te),g("MM",C,$),g("MMM",function(e,t){return t.monthsShortRegex(e)}),g("MMMM",function(e,t){return t.monthsRegex(e)}),T(["M","MM"],function(e,t){t[fe]=b(e)-1}),T(["MMM","MMMM"],function(e,t,s,r){var i=s._locale.monthsParse(e,r,s._strict);i!=null?t[fe]=i:v(s).invalidMonth=e});var Yi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Hs="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Vs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pi=He,Li=He;function Ii(e,t){return e?X(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Vs).test(t)?"format":"standalone"][e.month()]:X(this._months)?this._months:this._months.standalone}function Ai(e,t){return e?X(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Vs.test(t)?"format":"standalone"][e.month()]:X(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Fi(e,t,s){var r,i,n,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)n=ie([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(n,"").toLocaleLowerCase();return s?t==="MMM"?(i=L.call(this._shortMonthsParse,a),i!==-1?i:null):(i=L.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=L.call(this._shortMonthsParse,a),i!==-1?i:(i=L.call(this._longMonthsParse,a),i!==-1?i:null)):(i=L.call(this._longMonthsParse,a),i!==-1?i:(i=L.call(this._shortMonthsParse,a),i!==-1?i:null))}function ji(e,t,s){var r,i,n;if(this._monthsParseExact)return Fi.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=ie([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(n="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function $s(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),!de(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,ts(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function Gs(e){return e!=null?($s(this,e),p.updateOffset(this,!0),this):Ge(this,"Month")}function Ui(){return ts(this.year(),this.month())}function Wi(e){return this._monthsParseExact?(x(this,"_monthsRegex")||Bs.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(x(this,"_monthsShortRegex")||(this._monthsShortRegex=Pi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Hi(e){return this._monthsParseExact?(x(this,"_monthsRegex")||Bs.call(this),e?this._monthsStrictRegex:this._monthsRegex):(x(this,"_monthsRegex")||(this._monthsRegex=Li),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Bs(){function e(l,u){return u.length-l.length}var t=[],s=[],r=[],i,n,a,o;for(i=0;i<12;i++)n=ie([2e3,i]),a=ce(this.monthsShort(n,"")),o=ce(this.months(n,"")),t.push(a),s.push(o),r.push(o),r.push(a);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Vi(e,t,s,r,i,n,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,s,r,i,n,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,s,r,i,n,a),o}function Be(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function _t(e,t,s){var r=7+t-s,i=(7+Be(e,0,r).getUTCDay()-t)%7;return-i+r-1}function zs(e,t,s,r,i){var n=(7+s-r)%7,a=_t(e,r,i),o=1+7*(t-1)+n+a,l,u;return o<=0?(l=e-1,u=$e(l)+o):o>$e(e)?(l=e+1,u=o-$e(e)):(l=e,u=o),{year:l,dayOfYear:u}}function ze(e,t,s){var r=_t(e.year(),t,s),i=Math.floor((e.dayOfYear()-r-1)/7)+1,n,a;return i<1?(a=e.year()-1,n=i+me(a,t,s)):i>me(e.year(),t,s)?(n=i-me(e.year(),t,s),a=e.year()+1):(a=e.year(),n=i),{week:n,year:a}}function me(e,t,s){var r=_t(e,t,s),i=_t(e+1,t,s);return($e(e)-r+i)/7}_("w",["ww",2],"wo","week"),_("W",["WW",2],"Wo","isoWeek"),g("w",C,Te),g("ww",C,$),g("W",C,Te),g("WW",C,$),Ve(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=b(e)});function $i(e){return ze(e,this._week.dow,this._week.doy).week}var Gi={dow:0,doy:6};function Bi(){return this._week.dow}function zi(){return this._week.doy}function Qi(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function qi(e){var t=ze(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}_("d",0,"do","day"),_("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),_("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),_("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),_("e",0,0,"weekday"),_("E",0,0,"isoWeekday"),g("d",C),g("e",C),g("E",C),g("dd",function(e,t){return t.weekdaysMinRegex(e)}),g("ddd",function(e,t){return t.weekdaysShortRegex(e)}),g("dddd",function(e,t){return t.weekdaysRegex(e)}),Ve(["dd","ddd","dddd"],function(e,t,s,r){var i=s._locale.weekdaysParse(e,r,s._strict);i!=null?t.d=i:v(s).invalidWeekday=e}),Ve(["d","e","E"],function(e,t,s,r){t[r]=b(e)});function Ki(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ji(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ss(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Zi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),en=He,tn=He,sn=He;function rn(e,t){var s=X(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ss(s,this._week.dow):e?s[e.day()]:s}function nn(e){return e===!0?ss(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function an(e){return e===!0?ss(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function on(e,t,s){var r,i,n,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=ie([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(i=L.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=L.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=L.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=L.call(this._weekdaysParse,a),i!==-1||(i=L.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=L.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=L.call(this._shortWeekdaysParse,a),i!==-1||(i=L.call(this._weekdaysParse,a),i!==-1)?i:(i=L.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=L.call(this._minWeekdaysParse,a),i!==-1||(i=L.call(this._weekdaysParse,a),i!==-1)?i:(i=L.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function ln(e,t,s){var r,i,n;if(this._weekdaysParseExact)return on.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=ie([2e3,1]).day(r),s&&!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]||(n="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function un(e){if(!this.isValid())return e!=null?this:NaN;var t=Ge(this,"Day");return e!=null?(e=Ki(e,this.localeData()),this.add(e-t,"d")):t}function dn(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 cn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ji(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function fn(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||rs.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(x(this,"_weekdaysRegex")||(this._weekdaysRegex=en),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function hn(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||rs.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(x(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function mn(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||rs.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(x(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=sn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function rs(){function e(c,m){return m.length-c.length}var t=[],s=[],r=[],i=[],n,a,o,l,u;for(n=0;n<7;n++)a=ie([2e3,1]).day(n),o=ce(this.weekdaysMin(a,"")),l=ce(this.weekdaysShort(a,"")),u=ce(this.weekdays(a,"")),t.push(o),s.push(l),r.push(u),i.push(o),i.push(l),i.push(u);t.sort(e),s.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("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function is(){return this.hours()%12||12}function pn(){return this.hours()||24}_("H",["HH",2],0,"hour"),_("h",["hh",2],0,is),_("k",["kk",2],0,pn),_("hmm",0,0,function(){return""+is.apply(this)+ae(this.minutes(),2)}),_("hmmss",0,0,function(){return""+is.apply(this)+ae(this.minutes(),2)+ae(this.seconds(),2)}),_("Hmm",0,0,function(){return""+this.hours()+ae(this.minutes(),2)}),_("Hmmss",0,0,function(){return""+this.hours()+ae(this.minutes(),2)+ae(this.seconds(),2)});function qs(e,t){_(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}qs("a",!0),qs("A",!1);function Ks(e,t){return t._meridiemParse}g("a",Ks),g("A",Ks),g("H",C,Xt),g("h",C,Te),g("k",C,Te),g("HH",C,$),g("hh",C,$),g("kk",C,$),g("hmm",Fs),g("hmmss",js),g("Hmm",Fs),g("Hmmss",js),T(["H","HH"],F),T(["k","kk"],function(e,t,s){var r=b(e);t[F]=r===24?0:r}),T(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),T(["h","hh"],function(e,t,s){t[F]=b(e),v(s).bigHour=!0}),T("hmm",function(e,t,s){var r=e.length-2;t[F]=b(e.substr(0,r)),t[te]=b(e.substr(r)),v(s).bigHour=!0}),T("hmmss",function(e,t,s){var r=e.length-4,i=e.length-2;t[F]=b(e.substr(0,r)),t[te]=b(e.substr(r,2)),t[he]=b(e.substr(i)),v(s).bigHour=!0}),T("Hmm",function(e,t,s){var r=e.length-2;t[F]=b(e.substr(0,r)),t[te]=b(e.substr(r))}),T("Hmmss",function(e,t,s){var r=e.length-4,i=e.length-2;t[F]=b(e.substr(0,r)),t[te]=b(e.substr(r,2)),t[he]=b(e.substr(i))});function gn(e){return(e+"").toLowerCase().charAt(0)==="p"}var _n=/[ap]\.?m?\.?/i,yn=Ce("Hours",!0);function wn(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var Js={calendar:ai,longDateFormat:di,invalidDate:fi,ordinal:mi,dayOfMonthOrdinalParse:pi,relativeTime:_i,months:Yi,monthsShort:Hs,week:Gi,weekdays:Zi,weekdaysMin:Xi,weekdaysShort:Qs,meridiemParse:_n},Y={},Qe={},qe;function Sn(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function Zs(e){return e&&e.toLowerCase().replace("_","-")}function vn(e){for(var t=0,s,r,i,n;t<e.length;){for(n=Zs(e[t]).split("-"),s=n.length,r=Zs(e[t+1]),r=r?r.split("-"):null;s>0;){if(i=yt(n.slice(0,s).join("-")),i)return i;if(r&&r.length>=s&&Sn(n,r)>=s-1)break;s--}t++}return qe}function bn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function yt(e){var t=null,s;if(Y[e]===void 0&&typeof module<"u"&&module&&module.exports&&bn(e))try{t=qe._abbr,s=require,s("./locale/"+e),Se(t)}catch{Y[e]=null}return Y[e]}function Se(e,t){var s;return e&&(V(t)?s=pe(e):s=ns(e,t),s?qe=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),qe._abbr}function ns(e,t){if(t!==null){var s,r=Js;if(t.abbr=e,Y[e]!=null)Ys("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=Y[e]._config;else if(t.parentLocale!=null)if(Y[t.parentLocale]!=null)r=Y[t.parentLocale]._config;else if(s=yt(t.parentLocale),s!=null)r=s._config;else return Qe[t.parentLocale]||(Qe[t.parentLocale]=[]),Qe[t.parentLocale].push({name:e,config:t}),null;return Y[e]=new Bt(Gt(r,t)),Qe[e]&&Qe[e].forEach(function(i){ns(i.name,i.config)}),Se(e),Y[e]}else return delete Y[e],null}function Mn(e,t){if(t!=null){var s,r,i=Js;Y[e]!=null&&Y[e].parentLocale!=null?Y[e].set(Gt(Y[e]._config,t)):(r=yt(e),r!=null&&(i=r._config),t=Gt(i,t),r==null&&(t.abbr=e),s=new Bt(t),s.parentLocale=Y[e],Y[e]=s),Se(e)}else Y[e]!=null&&(Y[e].parentLocale!=null?(Y[e]=Y[e].parentLocale,e===Se()&&Se(e)):Y[e]!=null&&delete Y[e]);return Y[e]}function pe(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return qe;if(!X(e)){if(t=yt(e),t)return t;e=[e]}return vn(e)}function On(){return zt(Y)}function as(e){var t,s=e._a;return s&&v(e).overflow===-2&&(t=s[fe]<0||s[fe]>11?fe:s[oe]<1||s[oe]>ts(s[U],s[fe])?oe:s[F]<0||s[F]>24||s[F]===24&&(s[te]!==0||s[he]!==0||s[Oe]!==0)?F:s[te]<0||s[te]>59?te:s[he]<0||s[he]>59?he:s[Oe]<0||s[Oe]>999?Oe:-1,v(e)._overflowDayOfYear&&(t<U||t>oe)&&(t=oe),v(e)._overflowWeeks&&t===-1&&(t=Di),v(e)._overflowWeekday&&t===-1&&(t=Ei),v(e).overflow=t),e}var kn=/^\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)?)?$/,xn=/^\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)?)?$/,Dn=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["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]],os=[["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/]],En=/^\/?Date\((-?\d+)/i,Rn=/^(?:(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}))$/,Tn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Xs(e){var t,s,r=e._i,i=kn.exec(r)||xn.exec(r),n,a,o,l,u=wt.length,c=os.length;if(i){for(v(e).iso=!0,t=0,s=u;t<s;t++)if(wt[t][1].exec(i[1])){a=wt[t][0],n=wt[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,s=c;t<s;t++)if(os[t][1].exec(i[3])){o=(i[2]||" ")+os[t][0];break}if(o==null){e._isValid=!1;return}}if(!n&&o!=null){e._isValid=!1;return}if(i[4])if(Dn.exec(i[4]))l="Z";else{e._isValid=!1;return}e._f=a+(o||"")+(l||""),us(e)}else e._isValid=!1}function Cn(e,t,s,r,i,n){var a=[Nn(e),Hs.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(i,10)];return n&&a.push(parseInt(n,10)),a}function Nn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Yn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Pn(e,t,s){if(e){var r=Qs.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return v(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function Ln(e,t,s){if(e)return Tn[e];if(t)return 0;var r=parseInt(s,10),i=r%100,n=(r-i)/100;return n*60+i}function er(e){var t=Rn.exec(Yn(e._i)),s;if(t){if(s=Cn(t[4],t[3],t[2],t[5],t[6],t[7]),!Pn(t[1],s,e))return;e._a=s,e._tzm=Ln(t[8],t[9],t[10]),e._d=Be.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function In(e){var t=En.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Xs(e),e._isValid===!1)delete e._isValid;else return;if(er(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:p.createFromInputFallback(e)}p.createFromInputFallback=q("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 Ne(e,t,s){return e??t??s}function An(e){var t=new Date(p.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ls(e){var t,s,r=[],i,n,a;if(!e._d){for(i=An(e),e._w&&e._a[oe]==null&&e._a[fe]==null&&Fn(e),e._dayOfYear!=null&&(a=Ne(e._a[U],i[U]),(e._dayOfYear>$e(a)||e._dayOfYear===0)&&(v(e)._overflowDayOfYear=!0),s=Be(a,0,e._dayOfYear),e._a[fe]=s.getUTCMonth(),e._a[oe]=s.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[F]===24&&e._a[te]===0&&e._a[he]===0&&e._a[Oe]===0&&(e._nextDay=!0,e._a[F]=0),e._d=(e._useUTC?Be:Vi).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[F]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(v(e).weekdayMismatch=!0)}}function Fn(e){var t,s,r,i,n,a,o,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,a=4,s=Ne(t.GG,e._a[U],ze(N(),1,4).year),r=Ne(t.W,1),i=Ne(t.E,1),(i<1||i>7)&&(l=!0)):(n=e._locale._week.dow,a=e._locale._week.doy,u=ze(N(),n,a),s=Ne(t.gg,e._a[U],u.year),r=Ne(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+n,(t.e<0||t.e>6)&&(l=!0)):i=n),r<1||r>me(s,n,a)?v(e)._overflowWeeks=!0:l!=null?v(e)._overflowWeekday=!0:(o=zs(s,r,i,n,a),e._a[U]=o.year,e._dayOfYear=o.dayOfYear)}p.ISO_8601=function(){},p.RFC_2822=function(){};function us(e){if(e._f===p.ISO_8601){Xs(e);return}if(e._f===p.RFC_2822){er(e);return}e._a=[],v(e).empty=!0;var t=""+e._i,s,r,i,n,a,o=t.length,l=0,u,c;for(i=Ps(e._f,e._locale).match(Qt)||[],c=i.length,s=0;s<c;s++)n=i[s],r=(t.match(Oi(n,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&v(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Ee[n]?(r?v(e).empty=!1:v(e).unusedTokens.push(n),xi(n,r,e)):e._strict&&!r&&v(e).unusedTokens.push(n);v(e).charsLeftOver=o-l,t.length>0&&v(e).unusedInput.push(t),e._a[F]<=12&&v(e).bigHour===!0&&e._a[F]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[F]=jn(e._locale,e._a[F],e._meridiem),u=v(e).era,u!==null&&(e._a[U]=e._locale.erasConvertYear(u,e._a[U])),ls(e),as(e)}function jn(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Un(e){var t,s,r,i,n,a,o=!1,l=e._f.length;if(l===0){v(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)n=0,a=!1,t=$t({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],us(t),Ht(t)&&(a=!0),n+=v(t).charsLeftOver,n+=v(t).unusedTokens.length*10,v(t).score=n,o?n<r&&(r=n,s=t):(r==null||n<r||a)&&(r=n,s=t,a&&(o=!0));we(e,s||t)}function Wn(e){if(!e._d){var t=Kt(e._i),s=t.day===void 0?t.date:t.day;e._a=Rs([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),ls(e)}}function Hn(e){var t=new We(as(tr(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function tr(e){var t=e._i,s=e._f;return e._locale=e._locale||pe(e._l),t===null||s===void 0&&t===""?ot({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ee(t)?new We(as(t)):(Ue(t)?e._d=t:X(s)?Un(e):s?us(e):Vn(e),Ht(e)||(e._d=null),e))}function Vn(e){var t=e._i;V(t)?e._d=new Date(p.now()):Ue(t)?e._d=new Date(t.valueOf()):typeof t=="string"?In(e):X(t)?(e._a=Rs(t.slice(0),function(s){return parseInt(s,10)}),ls(e)):Me(t)?Wn(e):de(t)?e._d=new Date(t):p.createFromInputFallback(e)}function sr(e,t,s,r,i){var n={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(Me(e)&&Ut(e)||X(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=i,n._l=s,n._i=e,n._f=t,n._strict=r,Hn(n)}function N(e,t,s,r){return sr(e,t,s,r,!1)}var $n=q("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=N.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ot()}),Gn=q("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=N.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ot()});function rr(e,t){var s,r;if(t.length===1&&X(t[0])&&(t=t[0]),!t.length)return N();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function Bn(){var e=[].slice.call(arguments,0);return rr("isBefore",e)}function zn(){var e=[].slice.call(arguments,0);return rr("isAfter",e)}var Qn=function(){return Date.now?Date.now():+new Date},Ke=["year","quarter","month","week","day","hour","minute","second","millisecond"];function qn(e){var t,s=!1,r,i=Ke.length;for(t in e)if(x(e,t)&&!(L.call(Ke,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Ke[r]]){if(s)return!1;parseFloat(e[Ke[r]])!==b(e[Ke[r]])&&(s=!0)}return!0}function Kn(){return this._isValid}function Jn(){return se(NaN)}function St(e){var t=Kt(e),s=t.year||0,r=t.quarter||0,i=t.month||0,n=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=qn(t),this._milliseconds=+c+u*1e3+l*6e4+o*1e3*60*60,this._days=+a+n*7,this._months=+i+r*3+s*12,this._data={},this._locale=pe(),this._bubble()}function vt(e){return e instanceof St}function ds(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Zn(e,t,s){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),n=0,a;for(a=0;a<r;a++)b(e[a])!==b(t[a])&&n++;return n+i}function ir(e,t){_(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+ae(~~(s/60),2)+t+ae(~~s%60,2)})}ir("Z",":"),ir("ZZ",""),g("Z",mt),g("ZZ",mt),T(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=cs(mt,e)});var Xn=/([\+\-]|\d\d)/gi;function cs(e,t){var s=(t||"").match(e),r,i,n;return s===null?null:(r=s[s.length-1]||[],i=(r+"").match(Xn)||["-",0,0],n=+(i[1]*60)+b(i[2]),n===0?0:i[0]==="+"?n:-n)}function fs(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(ee(e)||Ue(e)?e.valueOf():N(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),p.updateOffset(s,!1),s):N(e).local()}function hs(e){return-Math.round(e._d.getTimezoneOffset())}p.updateOffset=function(){};function ea(e,t,s){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=cs(mt,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(i=hs(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?lr(this,se(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:hs(this)}function ta(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function sa(e){return this.utcOffset(0,e)}function ra(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hs(this),"m")),this}function ia(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=cs(bi,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function na(e){return this.isValid()?(e=e?N(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function aa(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function oa(){if(!V(this._isDSTShifted))return this._isDSTShifted;var e={},t;return $t(e,this),e=tr(e),e._a?(t=e._isUTC?ie(e._a):N(e._a),this._isDSTShifted=this.isValid()&&Zn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function la(){return this.isValid()?!this._isUTC:!1}function ua(){return this.isValid()?this._isUTC:!1}function nr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var da=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ca=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function se(e,t){var s=e,r=null,i,n,a;return vt(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:de(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=da.exec(e))?(i=r[1]==="-"?-1:1,s={y:0,d:b(r[oe])*i,h:b(r[F])*i,m:b(r[te])*i,s:b(r[he])*i,ms:b(ds(r[Oe]*1e3))*i}):(r=ca.exec(e))?(i=r[1]==="-"?-1:1,s={y:ke(r[2],i),M:ke(r[3],i),w:ke(r[4],i),d:ke(r[5],i),h:ke(r[6],i),m:ke(r[7],i),s:ke(r[8],i)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(a=fa(N(s.from),N(s.to)),s={},s.ms=a.milliseconds,s.M=a.months),n=new St(s),vt(e)&&x(e,"_locale")&&(n._locale=e._locale),vt(e)&&x(e,"_isValid")&&(n._isValid=e._isValid),n}se.fn=St.prototype,se.invalid=Jn;function ke(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function ar(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function fa(e,t){var s;return e.isValid()&&t.isValid()?(t=fs(t,e),e.isBefore(t)?s=ar(e,t):(s=ar(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function or(e,t){return function(s,r){var i,n;return r!==null&&!isNaN(+r)&&(Ys(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."),n=s,s=r,r=n),i=se(s,r),lr(this,i,e),this}}function lr(e,t,s,r){var i=t._milliseconds,n=ds(t._days),a=ds(t._months);e.isValid()&&(r=r??!0,a&&$s(e,Ge(e,"Month")+a*s),n&&Ws(e,"Date",Ge(e,"Date")+n*s),i&&e._d.setTime(e._d.valueOf()+i*s),r&&p.updateOffset(e,n||a))}var ha=or(1,"add"),ma=or(-1,"subtract");function ur(e){return typeof e=="string"||e instanceof String}function pa(e){return ee(e)||Ue(e)||ur(e)||de(e)||_a(e)||ga(e)||e===null||e===void 0}function ga(e){var t=Me(e)&&!Ut(e),s=!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,n,a=r.length;for(i=0;i<a;i+=1)n=r[i],s=s||x(e,n);return t&&s}function _a(e){var t=X(e),s=!1;return t&&(s=e.filter(function(r){return!de(r)&&ur(e)}).length===0),t&&s}function ya(e){var t=Me(e)&&!Ut(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,n;for(i=0;i<r.length;i+=1)n=r[i],s=s||x(e,n);return t&&s}function wa(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function Sa(e,t){arguments.length===1&&(arguments[0]?pa(arguments[0])?(e=arguments[0],t=void 0):ya(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||N(),r=fs(s,this).startOf("day"),i=p.calendarFormat(this,r)||"sameElse",n=t&&(ne(t[i])?t[i].call(this,s):t[i]);return this.format(n||this.localeData().calendar(i,this,N(s)))}function va(){return new We(this)}function ba(e,t){var s=ee(e)?e:N(e);return this.isValid()&&s.isValid()?(t=K(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function Ma(e,t){var s=ee(e)?e:N(e);return this.isValid()&&s.isValid()?(t=K(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function Oa(e,t,s,r){var i=ee(e)?e:N(e),n=ee(t)?t:N(t);return this.isValid()&&i.isValid()&&n.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,s):!this.isBefore(i,s))&&(r[1]===")"?this.isBefore(n,s):!this.isAfter(n,s))):!1}function ka(e,t){var s=ee(e)?e:N(e),r;return this.isValid()&&s.isValid()?(t=K(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function xa(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Da(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ea(e,t,s){var r,i,n;if(!this.isValid())return NaN;if(r=fs(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=K(t),t){case"year":n=bt(this,r)/12;break;case"month":n=bt(this,r);break;case"quarter":n=bt(this,r)/3;break;case"second":n=(this-r)/1e3;break;case"minute":n=(this-r)/6e4;break;case"hour":n=(this-r)/36e5;break;case"day":n=(this-r-i)/864e5;break;case"week":n=(this-r-i)/6048e5;break;default:n=this-r}return s?n:J(n)}function bt(e,t){if(e.date()<t.date())return-bt(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),i,n;return t-r<0?(i=e.clone().add(s-1,"months"),n=(t-r)/(r-i)):(i=e.clone().add(s+1,"months"),n=(t-r)/(i-r)),-(s+n)||0}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Ra(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ta(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?ut(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ne(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ut(s,"Z")):ut(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ca(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,i,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+i+n)}function Na(e){e||(e=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var t=ut(this,e);return this.localeData().postformat(t)}function Ya(e,t){return this.isValid()&&(ee(e)&&e.isValid()||N(e).isValid())?se({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Pa(e){return this.from(N(),e)}function La(e,t){return this.isValid()&&(ee(e)&&e.isValid()||N(e).isValid())?se({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ia(e){return this.to(N(),e)}function dr(e){var t;return e===void 0?this._locale._abbr:(t=pe(e),t!=null&&(this._locale=t),this)}var cr=q("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 fr(){return this._locale}var Mt=1e3,Ye=60*Mt,Ot=60*Ye,hr=(365*400+97)*24*Ot;function Pe(e,t){return(e%t+t)%t}function mr(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-hr:new Date(e,t,s).valueOf()}function pr(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-hr:Date.UTC(e,t,s)}function Aa(e){var t,s;if(e=K(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?pr:mr,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Pe(t+(this._isUTC?0:this.utcOffset()*Ye),Ot);break;case"minute":t=this._d.valueOf(),t-=Pe(t,Ye);break;case"second":t=this._d.valueOf(),t-=Pe(t,Mt);break}return this._d.setTime(t),p.updateOffset(this,!0),this}function Fa(e){var t,s;if(e=K(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?pr:mr,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ot-Pe(t+(this._isUTC?0:this.utcOffset()*Ye),Ot)-1;break;case"minute":t=this._d.valueOf(),t+=Ye-Pe(t,Ye)-1;break;case"second":t=this._d.valueOf(),t+=Mt-Pe(t,Mt)-1;break}return this._d.setTime(t),p.updateOffset(this,!0),this}function ja(){return this._d.valueOf()-(this._offset||0)*6e4}function Ua(){return Math.floor(this.valueOf()/1e3)}function Wa(){return new Date(this.valueOf())}function Ha(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Va(){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 $a(){return this.isValid()?this.toISOString():null}function Ga(){return Ht(this)}function Ba(){return we({},v(this))}function za(){return v(this).overflow}function Qa(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_("N",0,0,"eraAbbr"),_("NN",0,0,"eraAbbr"),_("NNN",0,0,"eraAbbr"),_("NNNN",0,0,"eraName"),_("NNNNN",0,0,"eraNarrow"),_("y",["y",1],"yo","eraYear"),_("y",["yy",2],0,"eraYear"),_("y",["yyy",3],0,"eraYear"),_("y",["yyyy",4],0,"eraYear"),g("N",ms),g("NN",ms),g("NNN",ms),g("NNNN",no),g("NNNNN",ao),T(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var i=s._locale.erasParse(e,r,s._strict);i?v(s).era=i:v(s).invalidEra=e}),g("y",Re),g("yy",Re),g("yyy",Re),g("yyyy",Re),g("yo",oo),T(["y","yy","yyy","yyyy"],U),T(["yo"],function(e,t,s,r){var i;s._locale._eraYearOrdinalRegex&&(i=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[U]=s._locale.eraYearOrdinalParse(e,i):t[U]=parseInt(e,10)});function qa(e,t){var s,r,i,n=this._eras||pe("en")._eras;for(s=0,r=n.length;s<r;++s)switch(typeof n[s].since==="string"&&(i=p(n[s].since).startOf("day"),n[s].since=i.valueOf()),typeof n[s].until){case"undefined":n[s].until=1/0;break;case"string":i=p(n[s].until).startOf("day").valueOf(),n[s].until=i.valueOf();break}return n}function Ka(e,t,s){var r,i,n=this.eras(),a,o,l;for(e=e.toUpperCase(),r=0,i=n.length;r<i;++r)if(a=n[r].name.toUpperCase(),o=n[r].abbr.toUpperCase(),l=n[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(o===e)return n[r];break;case"NNNN":if(a===e)return n[r];break;case"NNNNN":if(l===e)return n[r];break}else if([a,o,l].indexOf(e)>=0)return n[r]}function Ja(e,t){var s=e.since<=e.until?1:-1;return t===void 0?p(e.since).year():p(e.since).year()+(t-e.offset)*s}function Za(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function Xa(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function eo(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function to(){var e,t,s,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(s=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()-p(i[e].since).year())*s+i[e].offset;return this.year()}function so(e){return x(this,"_erasNameRegex")||ps.call(this),e?this._erasNameRegex:this._erasRegex}function ro(e){return x(this,"_erasAbbrRegex")||ps.call(this),e?this._erasAbbrRegex:this._erasRegex}function io(e){return x(this,"_erasNarrowRegex")||ps.call(this),e?this._erasNarrowRegex:this._erasRegex}function ms(e,t){return t.erasAbbrRegex(e)}function no(e,t){return t.erasNameRegex(e)}function ao(e,t){return t.erasNarrowRegex(e)}function oo(e,t){return t._eraYearOrdinalRegex||Re}function ps(){var e=[],t=[],s=[],r=[],i,n,a,o,l,u=this.eras();for(i=0,n=u.length;i<n;++i)a=ce(u[i].name),o=ce(u[i].abbr),l=ce(u[i].narrow),t.push(a),e.push(o),s.push(l),r.push(a),r.push(o),r.push(l);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("^("+s.join("|")+")","i")}_(0,["gg",2],0,function(){return this.weekYear()%100}),_(0,["GG",2],0,function(){return this.isoWeekYear()%100});function kt(e,t){_(0,[e,e.length],0,t)}kt("gggg","weekYear"),kt("ggggg","weekYear"),kt("GGGG","isoWeekYear"),kt("GGGGG","isoWeekYear"),g("G",ht),g("g",ht),g("GG",C,$),g("gg",C,$),g("GGGG",Zt,Jt),g("gggg",Zt,Jt),g("GGGGG",ft,dt),g("ggggg",ft,dt),Ve(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=b(e)}),Ve(["gg","GG"],function(e,t,s,r){t[r]=p.parseTwoDigitYear(e)});function lo(e){return gr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function uo(e){return gr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function co(){return me(this.year(),1,4)}function fo(){return me(this.isoWeekYear(),1,4)}function ho(){var e=this.localeData()._week;return me(this.year(),e.dow,e.doy)}function mo(){var e=this.localeData()._week;return me(this.weekYear(),e.dow,e.doy)}function gr(e,t,s,r,i){var n;return e==null?ze(this,r,i).year:(n=me(e,r,i),t>n&&(t=n),po.call(this,e,t,s,r,i))}function po(e,t,s,r,i){var n=zs(e,t,s,r,i),a=Be(n.year,0,n.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}_("Q",0,"Qo","quarter"),g("Q",Is),T("Q",function(e,t){t[fe]=(b(e)-1)*3});function go(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}_("D",["DD",2],"Do","date"),g("D",C,Te),g("DD",C,$),g("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),T(["D","DD"],oe),T("Do",function(e,t){t[oe]=b(e.match(C)[0])});var _r=Ce("Date",!0);_("DDD",["DDDD",3],"DDDo","dayOfYear"),g("DDD",ct),g("DDDD",As),T(["DDD","DDDD"],function(e,t,s){s._dayOfYear=b(e)});function _o(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}_("m",["mm",2],0,"minute"),g("m",C,Xt),g("mm",C,$),T(["m","mm"],te);var yo=Ce("Minutes",!1);_("s",["ss",2],0,"second"),g("s",C,Xt),g("ss",C,$),T(["s","ss"],he);var wo=Ce("Seconds",!1);_("S",0,0,function(){return~~(this.millisecond()/100)}),_(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_(0,["SSS",3],0,"millisecond"),_(0,["SSSS",4],0,function(){return this.millisecond()*10}),_(0,["SSSSS",5],0,function(){return this.millisecond()*100}),_(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),_(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),_(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),_(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),g("S",ct,Is),g("SS",ct,$),g("SSS",ct,As);var ve,yr;for(ve="SSSS";ve.length<=9;ve+="S")g(ve,Re);function So(e,t){t[Oe]=b(("0."+e)*1e3)}for(ve="S";ve.length<=9;ve+="S")T(ve,So);yr=Ce("Milliseconds",!1),_("z",0,0,"zoneAbbr"),_("zz",0,0,"zoneName");function vo(){return this._isUTC?"UTC":""}function bo(){return this._isUTC?"Coordinated Universal Time":""}var f=We.prototype;f.add=ha,f.calendar=Sa,f.clone=va,f.diff=Ea,f.endOf=Fa,f.format=Na,f.from=Ya,f.fromNow=Pa,f.to=La,f.toNow=Ia,f.get=Ti,f.invalidAt=za,f.isAfter=ba,f.isBefore=Ma,f.isBetween=Oa,f.isSame=ka,f.isSameOrAfter=xa,f.isSameOrBefore=Da,f.isValid=Ga,f.lang=cr,f.locale=dr,f.localeData=fr,f.max=Gn,f.min=$n,f.parsingFlags=Ba,f.set=Ci,f.startOf=Aa,f.subtract=ma,f.toArray=Ha,f.toObject=Va,f.toDate=Wa,f.toISOString=Ta,f.inspect=Ca,typeof Symbol<"u"&&Symbol.for!=null&&(f[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),f.toJSON=$a,f.toString=Ra,f.unix=Ua,f.valueOf=ja,f.creationData=Qa,f.eraName=Za,f.eraNarrow=Xa,f.eraAbbr=eo,f.eraYear=to,f.year=Us,f.isLeapYear=Ri,f.weekYear=lo,f.isoWeekYear=uo,f.quarter=f.quarters=go,f.month=Gs,f.daysInMonth=Ui,f.week=f.weeks=Qi,f.isoWeek=f.isoWeeks=qi,f.weeksInYear=ho,f.weeksInWeekYear=mo,f.isoWeeksInYear=co,f.isoWeeksInISOWeekYear=fo,f.date=_r,f.day=f.days=un,f.weekday=dn,f.isoWeekday=cn,f.dayOfYear=_o,f.hour=f.hours=yn,f.minute=f.minutes=yo,f.second=f.seconds=wo,f.millisecond=f.milliseconds=yr,f.utcOffset=ea,f.utc=sa,f.local=ra,f.parseZone=ia,f.hasAlignedHourOffset=na,f.isDST=aa,f.isLocal=la,f.isUtcOffset=ua,f.isUtc=nr,f.isUTC=nr,f.zoneAbbr=vo,f.zoneName=bo,f.dates=q("dates accessor is deprecated. Use date instead.",_r),f.months=q("months accessor is deprecated. Use month instead",Gs),f.years=q("years accessor is deprecated. Use year instead",Us),f.zone=q("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ta),f.isDSTShifted=q("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",oa);function Mo(e){return N(e*1e3)}function Oo(){return N.apply(null,arguments).parseZone()}function wr(e){return e}var D=Bt.prototype;D.calendar=oi,D.longDateFormat=ci,D.invalidDate=hi,D.ordinal=gi,D.preparse=wr,D.postformat=wr,D.relativeTime=yi,D.pastFuture=wi,D.set=ni,D.eras=qa,D.erasParse=Ka,D.erasConvertYear=Ja,D.erasAbbrRegex=ro,D.erasNameRegex=so,D.erasNarrowRegex=io,D.months=Ii,D.monthsShort=Ai,D.monthsParse=ji,D.monthsRegex=Hi,D.monthsShortRegex=Wi,D.week=$i,D.firstDayOfYear=zi,D.firstDayOfWeek=Bi,D.weekdays=rn,D.weekdaysMin=an,D.weekdaysShort=nn,D.weekdaysParse=ln,D.weekdaysRegex=fn,D.weekdaysShortRegex=hn,D.weekdaysMinRegex=mn,D.isPM=gn,D.meridiem=wn;function xt(e,t,s,r){var i=pe(),n=ie().set(r,t);return i[s](n,e)}function Sr(e,t,s){if(de(e)&&(t=e,e=void 0),e=e||"",t!=null)return xt(e,t,s,"month");var r,i=[];for(r=0;r<12;r++)i[r]=xt(e,r,s,"month");return i}function gs(e,t,s,r){typeof e=="boolean"?(de(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,de(t)&&(s=t,t=void 0),t=t||"");var i=pe(),n=e?i._week.dow:0,a,o=[];if(s!=null)return xt(t,(s+n)%7,r,"day");for(a=0;a<7;a++)o[a]=xt(t,(a+n)%7,r,"day");return o}function ko(e,t){return Sr(e,t,"months")}function xo(e,t){return Sr(e,t,"monthsShort")}function Do(e,t,s){return gs(e,t,s,"weekdays")}function Eo(e,t,s){return gs(e,t,s,"weekdaysShort")}function Ro(e,t,s){return gs(e,t,s,"weekdaysMin")}Se("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,s=b(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),p.lang=q("moment.lang is deprecated. Use moment.locale instead.",Se),p.langData=q("moment.langData is deprecated. Use moment.localeData instead.",pe);var ge=Math.abs;function To(){var e=this._data;return this._milliseconds=ge(this._milliseconds),this._days=ge(this._days),this._months=ge(this._months),e.milliseconds=ge(e.milliseconds),e.seconds=ge(e.seconds),e.minutes=ge(e.minutes),e.hours=ge(e.hours),e.months=ge(e.months),e.years=ge(e.years),this}function vr(e,t,s,r){var i=se(t,s);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Co(e,t){return vr(this,e,t,1)}function No(e,t){return vr(this,e,t,-1)}function br(e){return e<0?Math.floor(e):Math.ceil(e)}function Yo(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,i,n,a,o,l;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=br(_s(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,i=J(e/1e3),r.seconds=i%60,n=J(i/60),r.minutes=n%60,a=J(n/60),r.hours=a%24,t+=J(a/24),l=J(Mr(t)),s+=l,t-=br(_s(l)),o=J(s/12),s%=12,r.days=t,r.months=s,r.years=o,this}function Mr(e){return e*4800/146097}function _s(e){return e*146097/4800}function Po(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=K(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Mr(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(_s(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 _e(e){return function(){return this.as(e)}}var Or=_e("ms"),Lo=_e("s"),Io=_e("m"),Ao=_e("h"),Fo=_e("d"),jo=_e("w"),Uo=_e("M"),Wo=_e("Q"),Ho=_e("y"),Vo=Or;function $o(){return se(this)}function Go(e){return e=K(e),this.isValid()?this[e+"s"]():NaN}function xe(e){return function(){return this.isValid()?this._data[e]:NaN}}var Bo=xe("milliseconds"),zo=xe("seconds"),Qo=xe("minutes"),qo=xe("hours"),Ko=xe("days"),Jo=xe("months"),Zo=xe("years");function Xo(){return J(this.days()/7)}var ye=Math.round,Le={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function el(e,t,s,r,i){return i.relativeTime(t||1,!!s,e,r)}function tl(e,t,s,r){var i=se(e).abs(),n=ye(i.as("s")),a=ye(i.as("m")),o=ye(i.as("h")),l=ye(i.as("d")),u=ye(i.as("M")),c=ye(i.as("w")),m=ye(i.as("y")),d=n<=s.ss&&["s",n]||n<s.s&&["ss",n]||a<=1&&["m"]||a<s.m&&["mm",a]||o<=1&&["h"]||o<s.h&&["hh",o]||l<=1&&["d"]||l<s.d&&["dd",l];return s.w!=null&&(d=d||c<=1&&["w"]||c<s.w&&["ww",c]),d=d||u<=1&&["M"]||u<s.M&&["MM",u]||m<=1&&["y"]||["yy",m],d[2]=t,d[3]=+e>0,d[4]=r,el.apply(null,d)}function sl(e){return e===void 0?ye:typeof e=="function"?(ye=e,!0):!1}function rl(e,t){return Le[e]===void 0?!1:t===void 0?Le[e]:(Le[e]=t,e==="s"&&(Le.ss=t-1),!0)}function il(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=Le,i,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},Le,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),n=tl(this,!s,r,i),s&&(n=i.pastFuture(+this,n)),i.postformat(n)}var ys=Math.abs;function Ie(e){return(e>0)-(e<0)||+e}function Dt(){if(!this.isValid())return this.localeData().invalidDate();var e=ys(this._milliseconds)/1e3,t=ys(this._days),s=ys(this._months),r,i,n,a,o=this.asSeconds(),l,u,c,m;return o?(r=J(e/60),i=J(r/60),e%=60,r%=60,n=J(s/12),s%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=Ie(this._months)!==Ie(o)?"-":"",c=Ie(this._days)!==Ie(o)?"-":"",m=Ie(this._milliseconds)!==Ie(o)?"-":"",l+"P"+(n?u+n+"Y":"")+(s?u+s+"M":"")+(t?c+t+"D":"")+(i||r||e?"T":"")+(i?m+i+"H":"")+(r?m+r+"M":"")+(e?m+a+"S":"")):"P0D"}var M=St.prototype;M.isValid=Kn,M.abs=To,M.add=Co,M.subtract=No,M.as=Po,M.asMilliseconds=Or,M.asSeconds=Lo,M.asMinutes=Io,M.asHours=Ao,M.asDays=Fo,M.asWeeks=jo,M.asMonths=Uo,M.asQuarters=Wo,M.asYears=Ho,M.valueOf=Vo,M._bubble=Yo,M.clone=$o,M.get=Go,M.milliseconds=Bo,M.seconds=zo,M.minutes=Qo,M.hours=qo,M.days=Ko,M.weeks=Xo,M.months=Jo,M.years=Zo,M.humanize=il,M.toISOString=Dt,M.toString=Dt,M.toJSON=Dt,M.locale=dr,M.localeData=fr,M.toIsoString=q("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dt),M.lang=cr,_("X",0,0,"unix"),_("x",0,0,"valueOf"),g("x",ht),g("X",Mi),T("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),T("x",function(e,t,s){s._d=new Date(b(e))});p.version="2.30.1",ri(N),p.fn=f,p.min=Bn,p.max=zn,p.now=Qn,p.utc=ie,p.unix=Mo,p.months=ko,p.isDate=Ue,p.locale=Se,p.invalid=ot,p.duration=se,p.isMoment=ee,p.weekdays=Do,p.parseZone=Oo,p.localeData=pe,p.isDuration=vt,p.monthsShort=xo,p.weekdaysMin=Ro,p.defineLocale=ns,p.updateLocale=Mn,p.locales=On,p.weekdaysShort=Eo,p.normalizeUnits=K,p.relativeTimeRounding=sl,p.relativeTimeThreshold=rl,p.calendarFormat=wa,p.prototype=f,p.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 nl=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,al=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,kr=/(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,ws=[/^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],ol={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:kr,monthsShortRegex:kr,monthsStrictRegex:nl,monthsShortStrictRegex:al,monthsParse:ws,longMonthsParse:ws,shortMonthsParse:ws,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}};p.locale("fr",ol),be.TOP_LEFT;const S=e=>typeof e=="string",Je=()=>{let e,t;const s=new Promise((r,i)=>{e=r,t=i});return s.resolve=e,s.reject=t,s},xr=e=>e==null?"":""+e,ll=(e,t,s)=>{e.forEach(r=>{t[r]&&(s[r]=t[r])})},ul=/###/g,Dr=e=>e&&e.indexOf("###")>-1?e.replace(ul,"."):e,Er=e=>!e||S(e),Ze=(e,t,s)=>{const r=S(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(Er(e))return{};const n=Dr(r[i]);!e[n]&&s&&(e[n]=new s),Object.prototype.hasOwnProperty.call(e,n)?e=e[n]:e={},++i}return Er(e)?{}:{obj:e,k:Dr(r[i])}},Rr=(e,t,s)=>{const{obj:r,k:i}=Ze(e,t,Object);if(r!==void 0||t.length===1){r[i]=s;return}let n=t[t.length-1],a=t.slice(0,t.length-1),o=Ze(e,a,Object);for(;o.obj===void 0&&a.length;)n=`${a[a.length-1]}.${n}`,a=a.slice(0,a.length-1),o=Ze(e,a,Object),o&&o.obj&&typeof o.obj[`${o.k}.${n}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${n}`]=s},dl=(e,t,s,r)=>{const{obj:i,k:n}=Ze(e,t,Object);i[n]=i[n]||[],i[n].push(s)},Et=(e,t)=>{const{obj:s,k:r}=Ze(e,t);if(s)return s[r]},cl=(e,t,s)=>{const r=Et(e,s);return r!==void 0?r:Et(t,s)},Tr=(e,t,s)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?S(e[r])||e[r]instanceof String||S(t[r])||t[r]instanceof String?s&&(e[r]=t[r]):Tr(e[r],t[r],s):e[r]=t[r]);return e},Ae=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var fl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const hl=e=>S(e)?e.replace(/[&<>"'\/]/g,t=>fl[t]):e;class ml{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const s=this.regExpMap.get(t);if(s!==void 0)return s;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const pl=[" ",",","?","!",";"],gl=new ml(20),_l=(e,t,s)=>{t=t||"",s=s||"";const r=pl.filter(a=>t.indexOf(a)<0&&s.indexOf(a)<0);if(r.length===0)return!0;const i=gl.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let n=!i.test(e);if(!n){const a=e.indexOf(s);a>0&&!i.test(e.substring(0,a))&&(n=!0)}return n},Ss=function(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(s);let i=e;for(let n=0;n<r.length;){if(!i||typeof i!="object")return;let a,o="";for(let l=n;l<r.length;++l)if(l!==n&&(o+=s),o+=r[l],a=i[o],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<r.length-1)continue;n+=l-n+1;break}i=a}return i},Rt=e=>e&&e.replace("_","-"),yl={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 Tt{constructor(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,s)}init(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=s.prefix||"i18next:",this.logger=t||yl,this.options=s,this.debug=s.debug}log(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return this.forward(s,"log","",!0)}warn(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return this.forward(s,"warn","",!0)}error(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return this.forward(s,"error","")}deprecate(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return this.forward(s,"warn","WARNING DEPRECATED: ",!0)}forward(t,s,r,i){return i&&!this.debug?null:(S(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[s](t))}create(t){return new Tt(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Tt(this.logger,t)}}var le=new Tt;class Ct{constructor(){this.observers={}}on(t,s){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(s)||0;this.observers[r].set(s,i+1)}),this}off(t,s){if(this.observers[t]){if(!s){delete this.observers[t];return}this.observers[t].delete(s)}}emit(t){for(var s=arguments.length,r=new Array(s>1?s-1:0),i=1;i<s;i++)r[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[o,l]=a;for(let u=0;u<l;u++)o(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[o,l]=a;for(let u=0;u<l;u++)o.apply(o,[t,...r])})}}class Cr extends Ct{constructor(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=s,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 s=this.options.ns.indexOf(t);s>-1&&this.options.ns.splice(s,1)}getResource(t,s,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=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,s],r&&(Array.isArray(r)?o.push(...r):S(r)&&n?o.push(...r.split(n)):o.push(r)));const l=Et(this.data,o);return!l&&!s&&!r&&t.indexOf(".")>-1&&(t=o[0],s=o[1],r=o.slice(2).join(".")),l||!a||!S(r)?l:Ss(this.data&&this.data[t]&&this.data[t][s],r,n)}addResource(t,s,r,i){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=[t,s];r&&(o=o.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(o=t.split("."),i=s,s=o[1]),this.addNamespaces(s),Rr(this.data,o,i),n.silent||this.emit("added",t,s,r,i)}addResources(t,s,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const n in r)(S(r[n])||Array.isArray(r[n]))&&this.addResource(t,s,n,r[n],{silent:!0});i.silent||this.emit("added",t,s,r)}addResourceBundle(t,s,r,i,n){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[t,s];t.indexOf(".")>-1&&(o=t.split("."),i=r,r=s,s=o[1]),this.addNamespaces(s);let l=Et(this.data,o)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Tr(l,r,n):l={...l,...r},Rr(this.data,o,l),a.silent||this.emit("added",t,s,r)}removeResourceBundle(t,s){this.hasResourceBundle(t,s)&&delete this.data[t][s],this.removeNamespaces(s),this.emit("removed",t,s)}hasResourceBundle(t,s){return this.getResource(t,s)!==void 0}getResourceBundle(t,s){return s||(s=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,s)}:this.getResource(t,s)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const s=this.getDataByLanguage(t);return!!(s&&Object.keys(s)||[]).find(i=>s[i]&&Object.keys(s[i]).length>0)}toJSON(){return this.data}}var Nr={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,s,r,i){return e.forEach(n=>{this.processors[n]&&(t=this.processors[n].process(t,s,r,i))}),t}};const Yr={};class Nt extends Ct{constructor(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),ll(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=le.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,s);return r&&r.res!==void 0}extractFromKey(t,s){let r=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let n=s.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,o=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!_l(t,r,i);if(a&&!o){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:S(n)?[n]:n};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(n=u.shift()),t=u.join(i)}return{key:t,namespaces:S(n)?[n]:n}}translate(t,s,r){if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s={...s}),s||(s={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,n=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(t[t.length-1],s),l=o[o.length-1],u=s.lng||this.language,c=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const I=s.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${I}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(s)}:`${l}${I}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(s)}:a}const m=this.resolve(t,s);let d=m&&m.res;const w=m&&m.usedKey||a,O=m&&m.exactUsedKey||a,P=Object.prototype.toString.apply(d),R=["[object Number]","[object Function]","[object RegExp]"],E=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,tt=!S(d)&&typeof d!="boolean"&&typeof d!="number";if(k&&d&&tt&&R.indexOf(P)<0&&!(S(E)&&Array.isArray(d))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const I=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,d,{...s,ns:o}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(m.res=I,m.usedParams=this.getUsedParamsDetails(s),m):I}if(n){const I=Array.isArray(d),z=I?[]:{},re=I?O:w;for(const H in d)if(Object.prototype.hasOwnProperty.call(d,H)){const Ft=`${re}${n}${H}`;z[H]=this.translate(Ft,{...s,joinArrays:!1,ns:o}),z[H]===Ft&&(z[H]=d[H])}d=z}}else if(k&&S(E)&&Array.isArray(d))d=d.join(E),d&&(d=this.extendTranslation(d,t,s,r));else{let I=!1,z=!1;const re=s.count!==void 0&&!S(s.count),H=Nt.hasDefaultValue(s),Ft=re?this.pluralResolver.getSuffix(u,s.count,s):"",lu=s.ordinal&&re?this.pluralResolver.getSuffix(u,s.count,{ordinal:!1}):"",ei=re&&!s.ordinal&&s.count===0&&this.pluralResolver.shouldUseIntlApi(),st=ei&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${Ft}`]||s[`defaultValue${lu}`]||s.defaultValue;!this.isValidLookup(d)&&H&&(I=!0,d=st),this.isValidLookup(d)||(z=!0,d=a);const uu=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&z?void 0:d,rt=H&&st!==d&&this.options.updateMissing;if(z||I||rt){if(this.logger.log(rt?"updateKey":"missingKey",u,l,a,rt?st:d),n){const Q=this.resolve(a,{...s,keySeparator:!1});Q&&Q.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 it=[];const jt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&jt&&jt[0])for(let Q=0;Q<jt.length;Q++)it.push(jt[Q]);else this.options.saveMissingTo==="all"?it=this.languageUtils.toResolveHierarchy(s.lng||this.language):it.push(s.lng||this.language);const ti=(Q,De,nt)=>{const si=H&&nt!==d?nt:uu;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,l,De,si,rt,s):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,l,De,si,rt,s),this.emit("missingKey",Q,l,De,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&re?it.forEach(Q=>{const De=this.pluralResolver.getSuffixes(Q,s);ei&&s[`defaultValue${this.options.pluralSeparator}zero`]&&De.indexOf(`${this.options.pluralSeparator}zero`)<0&&De.push(`${this.options.pluralSeparator}zero`),De.forEach(nt=>{ti([Q],a+nt,s[`defaultValue${nt}`]||st)})}):ti(it,a,st))}d=this.extendTranslation(d,t,s,m,r),z&&d===a&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${a}`),(z||I)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,I?d:void 0):d=this.options.parseMissingKeyHandler(d))}return i?(m.res=d,m.usedParams=this.getUsedParamsDetails(s),m):d}extendTranslation(t,s,r,i,n){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=S(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=t.match(this.interpolator.nestingRegexp);c=d&&d.length}let m=r.replace&&!S(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language||i.usedLng,r),u){const d=t.match(this.interpolator.nestingRegexp),w=d&&d.length;c<w&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var d=arguments.length,w=new Array(d),O=0;O<d;O++)w[O]=arguments[O];return n&&n[0]===w[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${w[0]} in key: ${s[0]}`),null):a.translate(...w,s)},r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,l=S(o)?[o]:o;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=Nr.handle(l,t,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,n,a,o;return S(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,s),c=u.key;i=c;let m=u.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const d=s.count!==void 0&&!S(s.count),w=d&&!s.ordinal&&s.count===0&&this.pluralResolver.shouldUseIntlApi(),O=s.context!==void 0&&(S(s.context)||typeof s.context=="number")&&s.context!=="",P=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);m.forEach(R=>{this.isValidLookup(r)||(o=R,!Yr[`${P[0]}-${R}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Yr[`${P[0]}-${R}`]=!0,this.logger.warn(`key "${i}" for languages "${P.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!!!")),P.forEach(E=>{if(this.isValidLookup(r))return;a=E;const k=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(k,c,E,R,s);else{let I;d&&(I=this.pluralResolver.getSuffix(E,s.count,s));const z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(k.push(c+I),s.ordinal&&I.indexOf(re)===0&&k.push(c+I.replace(re,this.options.pluralSeparator)),w&&k.push(c+z)),O){const H=`${c}${this.options.contextSeparator}${s.context}`;k.push(H),d&&(k.push(H+I),s.ordinal&&I.indexOf(re)===0&&k.push(H+I.replace(re,this.options.pluralSeparator)),w&&k.push(H+z))}}let tt;for(;tt=k.pop();)this.isValidLookup(r)||(n=tt,r=this.getResource(E,R,tt,s))}))})}),{res:r,usedKey:i,exactUsedKey:n,usedLng:a,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,s,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,s,r,i):this.resourceStore.getResource(t,s,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!S(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const n of s)delete i[n]}return i}static hasDefaultValue(t){const s="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&s===r.substring(0,s.length)&&t[r]!==void 0)return!0;return!1}}const vs=e=>e.charAt(0).toUpperCase()+e.slice(1);class Pr{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=le.create("languageUtils")}getScriptPartFromCode(t){if(t=Rt(t),!t||t.indexOf("-")<0)return null;const s=t.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(t){if(t=Rt(t),!t||t.indexOf("-")<0)return t;const s=t.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(t){if(S(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 s=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),s.indexOf(r[1].toLowerCase())>-1&&(r[1]=vs(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),s.indexOf(r[1].toLowerCase())>-1&&(r[1]=vs(r[1].toLowerCase())),s.indexOf(r[2].toLowerCase())>-1&&(r[2]=vs(r[2].toLowerCase()))),r.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 s;return t.forEach(r=>{if(s)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(s=i)}),!s&&this.options.supportedLngs&&t.forEach(r=>{if(s)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return s=i;s=this.options.supportedLngs.find(n=>{if(n===i)return n;if(!(n.indexOf("-")<0&&i.indexOf("-")<0)&&(n.indexOf("-")>0&&i.indexOf("-")<0&&n.substring(0,n.indexOf("-"))===i||n.indexOf(i)===0&&i.length>1))return n})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(t,s){if(!t)return[];if(typeof t=="function"&&(t=t(s)),S(t)&&(t=[t]),Array.isArray(t))return t;if(!s)return t.default||[];let r=t[s];return r||(r=t[this.getScriptPartFromCode(s)]),r||(r=t[this.formatLanguageCode(s)]),r||(r=t[this.getLanguagePartFromCode(s)]),r||(r=t.default),r||[]}toResolveHierarchy(t,s){const r=this.getFallbackCodes(s||this.options.fallbackLng||[],t),i=[],n=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return S(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&n(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&n(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&n(this.getLanguagePartFromCode(t))):S(t)&&n(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&n(this.formatLanguageCode(a))}),i}}let wl=[{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}],Sl={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 vl=["v1","v2","v3"],bl=["v4"],Lr={zero:0,one:1,two:2,few:3,many:4,other:5},Ml=()=>{const e={};return wl.forEach(t=>{t.lngs.forEach(s=>{e[s]={numbers:t.nr,plurals:Sl[t.fc]}})}),e};class Ol{constructor(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=s,this.logger=le.create("pluralResolver"),(!this.options.compatibilityJSON||bl.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=Ml(),this.pluralRulesCache={}}addRule(t,s){this.rules[t]=s}clearCache(){this.pluralRulesCache={}}getRule(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=Rt(t==="dev"?"en":t),i=s.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:r,type:i});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let a;try{a=new Intl.PluralRules(r,{type:i})}catch{if(!t.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,s)}return this.pluralRulesCache[n]=a,a}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,s);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,s){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${s}${i}`)}getSuffixes(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,s);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,n)=>Lr[i]-Lr[n]).map(i=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,s)):[]}getSuffix(t,s){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(s)}`:this.getSuffixRetroCompatible(i,s):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,s){const r=t.noAbs?t.plurals(s):t.plurals(Math.abs(s));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const n=()=>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()}`:n():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?n():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!vl.includes(this.options.compatibilityJSON)}}const Ir=function(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,n=cl(e,t,s);return!n&&i&&S(s)&&(n=Ss(e,s,r),n===void 0&&(n=Ss(t,s,r))),n},bs=e=>e.replace(/\$/g,"$$$$");class kl{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=le.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(s=>s),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:s,escapeValue:r,useRawValueToEscape:i,prefix:n,prefixEscaped:a,suffix:o,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:m,nestingPrefix:d,nestingPrefixEscaped:w,nestingSuffix:O,nestingSuffixEscaped:P,nestingOptionsSeparator:R,maxReplaces:E,alwaysFormat:k}=t.interpolation;this.escape=s!==void 0?s:hl,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=n?Ae(n):a||"{{",this.suffix=o?Ae(o):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?Ae(d):w||Ae("$t("),this.nestingSuffix=O?Ae(O):P||Ae(")"),this.nestingOptionsSeparator=R||",",this.maxReplaces=E||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(s,r)=>s&&s.source===r?(s.lastIndex=0,s):new RegExp(r,"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,s,r,i){let n,a,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=w=>{if(w.indexOf(this.formatSeparator)<0){const E=Ir(s,l,w,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...i,...s,interpolationkey:w}):E}const O=w.split(this.formatSeparator),P=O.shift().trim(),R=O.join(this.formatSeparator).trim();return this.format(Ir(s,l,P,this.options.keySeparator,this.options.ignoreJSONStructure),R,r,{...i,...s,interpolationkey:P})};this.resetRegExp();const c=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:w=>bs(w)},{regex:this.regexp,safeValue:w=>this.escapeValue?bs(this.escape(w)):bs(w)}].forEach(w=>{for(o=0;n=w.regex.exec(t);){const O=n[1].trim();if(a=u(O),a===void 0)if(typeof c=="function"){const R=c(t,n,i);a=S(R)?R:""}else if(i&&Object.prototype.hasOwnProperty.call(i,O))a="";else if(m){a=n[0];continue}else this.logger.warn(`missed to pass in variable ${O} for interpolating ${t}`),a="";else!S(a)&&!this.useRawValueToEscape&&(a=xr(a));const P=w.safeValue(a);if(t=t.replace(n[0],P),m?(w.regex.lastIndex+=a.length,w.regex.lastIndex-=n[0].length):w.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,s){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,n,a;const o=(l,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const m=l.split(new RegExp(`${c}[ ]*{`));let d=`{${m[1]}`;l=m[0],d=this.interpolate(d,a);const w=d.match(/'/g),O=d.match(/"/g);(w&&w.length%2===0&&!O||O.length%2!==0)&&(d=d.replace(/'/g,'"'));try{a=JSON.parse(d),u&&(a={...u,...a})}catch(P){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,P),`${l}${c}${d}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];a={...r},a=a.replace&&!S(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const c=i[1].split(this.formatSeparator).map(m=>m.trim());i[1]=c.shift(),l=c,u=!0}if(n=s(o.call(this,i[1].trim(),a),a),n&&i[0]===t&&!S(n))return n;S(n)||(n=xr(n)),n||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),n=""),u&&(n=l.reduce((c,m)=>this.format(c,m,r.lng,{...r,interpolationkey:i[1].trim()}),n.trim())),t=t.replace(i[0],n),this.regexp.lastIndex=0}return t}}const xl=e=>{let t=e.toLowerCase().trim();const s={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?s.currency||(s.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?s.range||(s.range=i.trim()):i.split(";").forEach(a=>{if(a){const[o,...l]=a.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=o.trim();s[c]||(s[c]=u),u==="false"&&(s[c]=!1),u==="true"&&(s[c]=!0),isNaN(u)||(s[c]=parseInt(u,10))}})}return{formatName:t,formatOptions:s}},Fe=e=>{const t={};return(s,r,i)=>{let n=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(n={...n,[i.interpolationkey]:void 0});const a=r+JSON.stringify(n);let o=t[a];return o||(o=e(Rt(r),i),t[a]=o),o(s)}};class Dl{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=le.create("formatter"),this.options=t,this.formats={number:Fe((s,r)=>{const i=new Intl.NumberFormat(s,{...r});return n=>i.format(n)}),currency:Fe((s,r)=>{const i=new Intl.NumberFormat(s,{...r,style:"currency"});return n=>i.format(n)}),datetime:Fe((s,r)=>{const i=new Intl.DateTimeFormat(s,{...r});return n=>i.format(n)}),relativetime:Fe((s,r)=>{const i=new Intl.RelativeTimeFormat(s,{...r});return n=>i.format(n,r.range||"day")}),list:Fe((s,r)=>{const i=new Intl.ListFormat(s,{...r});return n=>i.format(n)})},this.init(t)}init(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=s.interpolation.formatSeparator||","}add(t,s){this.formats[t.toLowerCase().trim()]=s}addCached(t,s){this.formats[t.toLowerCase().trim()]=Fe(s)}format(t,s,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=s.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find(o=>o.indexOf(")")>-1)){const o=n.findIndex(l=>l.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,o)].join(this.formatSeparator)}return n.reduce((o,l)=>{const{formatName:u,formatOptions:c}=xl(l);if(this.formats[u]){let m=o;try{const d=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},w=d.locale||d.lng||i.locale||i.lng||r;m=this.formats[u](o,w,{...c,...i,...d})}catch(d){this.logger.warn(d)}return m}else this.logger.warn(`there was no format function for ${u}`);return o},t)}}const El=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Rl extends Ct{constructor(t,s,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=s,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=le.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(r,i.backend,i)}queueLoad(t,s,r,i){const n={},a={},o={},l={};return t.forEach(u=>{let c=!0;s.forEach(m=>{const d=`${u}|${m}`;!r.reload&&this.store.hasResourceBundle(u,m)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?a[d]===void 0&&(a[d]=!0):(this.state[d]=1,c=!1,a[d]===void 0&&(a[d]=!0),n[d]===void 0&&(n[d]=!0),l[m]===void 0&&(l[m]=!0)))}),c||(o[u]=!0)}),(Object.keys(n).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(n),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(t,s,r){const i=t.split("|"),n=i[0],a=i[1];s&&this.emit("failedLoading",n,a,s),!s&&r&&this.store.addResourceBundle(n,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=s?-1:2,s&&r&&(this.state[t]=0);const o={};this.queue.forEach(l=>{dl(l.loaded,[n],a),El(l,t),s&&l.errors.push(s),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});const c=l.loaded[u];c.length&&c.forEach(m=>{o[u][m]===void 0&&(o[u][m]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(t,s,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=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:s,fcName:r,tried:i,wait:n,callback:a});return}this.readingCalls++;const o=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(u&&c&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,s,r,i+1,n*2,a)},n);return}a(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,s);u&&typeof u.then=="function"?u.then(c=>o(null,c)).catch(o):o(null,u)}catch(u){o(u)}return}return l(t,s,o)}prepareLoading(t,s){let r=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();S(t)&&(t=this.languageUtils.toResolveHierarchy(t)),S(s)&&(s=[s]);const n=this.queueLoad(t,s,r,i);if(!n.toLoad.length)return n.pending.length||i(),null;n.toLoad.forEach(a=>{this.loadOne(a)})}load(t,s,r){this.prepareLoading(t,s,{},r)}reload(t,s,r){this.prepareLoading(t,s,{reload:!0},r)}loadOne(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],n=r[1];this.read(i,n,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${s}loading namespace ${n} for language ${i} failed`,a),!a&&o&&this.logger.log(`${s}loaded namespace ${n} for language ${i}`,o),this.loaded(t,a,o)})}saveMissing(t,s,r,i,n){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(s)){this.logger.warn(`did not save key "${r}" as the namespace "${s}" 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(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:n},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,s,r,i,l):c=u(t,s,r,i),c&&typeof c.then=="function"?c.then(m=>o(null,m)).catch(o):o(null,c)}catch(c){o(c)}else u(t,s,r,i,o,l)}!t||!t[0]||this.store.addResource(t[0],s,r,i)}}}const Ar=()=>({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]),S(e[1])&&(t.defaultValue=e[1]),S(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const s=e[3]||e[2];Object.keys(s).forEach(r=>{t[r]=s[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Fr=e=>(S(e.ns)&&(e.ns=[e.ns]),S(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),S(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Yt=()=>{},Tl=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(s=>{typeof e[s]=="function"&&(e[s]=e[s].bind(e))})};class Xe extends Ct{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Fr(t),this.services={},this.logger=le,this.modules={external:[]},Tl(this),s&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,s),this;setTimeout(()=>{this.init(t,s)},0)}}init(){var t=this;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof s=="function"&&(r=s,s={}),!s.defaultNS&&s.defaultNS!==!1&&s.ns&&(S(s.ns)?s.defaultNS=s.ns:s.ns.indexOf("translation")<0&&(s.defaultNS=s.ns[0]));const i=Ar();this.options={...i,...this.options,...Fr(s)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),s.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=s.keySeparator),s.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=s.nsSeparator);const n=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?le.init(n(this.modules.logger),this.options):le.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=Dl);const m=new Pr(this.options);this.store=new Cr(this.options.resources,this.options);const d=this.services;d.logger=le,d.resourceStore=this.store,d.languageUtils=m,d.pluralResolver=new Ol(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=n(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new kl(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Rl(n(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(w){for(var O=arguments.length,P=new Array(O>1?O-1:0),R=1;R<O;R++)P[R-1]=arguments[R];t.emit(w,...P)}),this.modules.languageDetector&&(d.languageDetector=n(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=n(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Nt(this.services,this.options),this.translator.on("*",function(w){for(var O=arguments.length,P=new Array(O>1?O-1:0),R=1;R<O;R++)P[R-1]=arguments[R];t.emit(w,...P)}),this.modules.external.forEach(w=>{w.init&&w.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Yt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=Je(),u=()=>{const c=(m,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),l.resolve(d),r(m,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yt;const i=S(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const n=[],a=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(u=>{u!=="cimode"&&n.indexOf(u)<0&&n.push(u)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(o=>a(o)),this.services.backendConnector.load(n,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(o)})}else r(null)}reloadResources(t,s,r){const i=Je();return typeof t=="function"&&(r=t,t=void 0),typeof s=="function"&&(r=s,s=void 0),t||(t=this.languages),s||(s=this.options.ns),r||(r=Yt),this.services.backendConnector.reload(t,s,n=>{i.resolve(),r(n)}),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"&&Nr.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 s=0;s<this.languages.length;s++){const r=this.languages[s];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,s){var r=this;this.isLanguageChangingTo=t;const i=Je();this.emit("languageChanging",t);const n=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,u)=>{u?(n(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),s&&s(l,function(){return r.t(...arguments)})},o=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=S(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||n(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{a(c,u)})};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,s,r){var i=this;const n=function(a,o){let l;if(typeof o!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),m=2;m<u;m++)c[m-2]=arguments[m];l=i.options.overloadTranslationOptionHandler([a,o].concat(c))}else l={...o};l.lng=l.lng||n.lng,l.lngs=l.lngs||n.lngs,l.ns=l.ns||n.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||n.keyPrefix);const d=i.options.keySeparator||".";let w;return l.keyPrefix&&Array.isArray(a)?w=a.map(O=>`${l.keyPrefix}${d}${O}`):w=l.keyPrefix?`${l.keyPrefix}${d}${a}`:a,i.t(w,l)};return S(t)?n.lng=t:n.lngs=t,n.ns=s,n.keyPrefix=r,n}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 s=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 r=s.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===0||u===2};if(s.precheck){const o=s.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(n,t)))}loadNamespaces(t,s){const r=Je();return this.options.ns?(S(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),s&&s(i)}),r):(s&&s(),Promise.resolve())}loadLanguages(t,s){const r=Je();S(t)&&(t=[t]);const i=this.options.preload||[],n=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return n.length?(this.options.preload=i.concat(n),this.loadResources(a=>{r.resolve(),s&&s(a)}),r):(s&&s(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const s=["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"],r=this.services&&this.services.languageUtils||new Pr(Ar());return s.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;return new Xe(t,s)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yt;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},n=new Xe(i);return(t.debug!==void 0||t.prefix!==void 0)&&(n.logger=n.logger.clone(t)),["store","services","language"].forEach(o=>{n[o]=this[o]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},r&&(n.store=new Cr(this.store.data,i),n.services.resourceStore=n.store),n.translator=new Nt(n.services,i),n.translator.on("*",function(o){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];n.emit(o,...u)}),n.init(i,s),n.translator.options=i,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const W=Xe.createInstance();W.createInstance=Xe.createInstance,W.createInstance,W.dir,W.init,W.loadResources,W.reloadResources,W.use,W.changeLanguage,W.getFixedT;const je=W.t;W.exists,W.setDefaultNamespace,W.hasLoadedNamespace,W.loadNamespaces,W.loadLanguages;var h=(e=>(e.BASIC="BASIC",e.COMMON="COMMON",e.RARE="RARE",e.EPIC="EPIC",e.LEGENDARY="LEGENDARY",e.MYTHIC="MYTHIC",e))(h||{});h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC;const A={BASIC:{color:"#fff",strength:0,id:h.BASIC,name:(e,t=1)=>je(`ranks.${h.BASIC}.text`,{count:t,context:e,ns:"common"})},COMMON:{color:"#813D31",strength:1,id:h.COMMON,name:(e,t=1)=>je(`ranks.${h.COMMON}.text`,{count:t,context:e,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:h.RARE,name:(e,t=1)=>je(`ranks.${h.RARE}.text`,{count:t,context:e,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:h.EPIC,name:(e,t=1)=>je(`ranks.${h.EPIC}.text`,{count:t,context:e,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:h.LEGENDARY,name:(e,t=1)=>je(`ranks.${h.LEGENDARY}.text`,{count:t,context:e,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:h.MYTHIC,name:(e,t=1)=>je(`ranks.${h.MYTHIC}.text`,{count:t,context:e,ns:"common"})}},Z={exploration:{id:"writeChat",img:"exploration",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:Explorateurbois:1175507909518573578>","<:Explorateurargent:1175508452467015680>","<:Explorateuror:1175507917642932245>","<:Explorateurplatine:1175507920587329586>","<:Explorateurultime:1175507922818699334>"],crew:!1},ecrire:{id:"sendMessage",img:"ecrire",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:Spammeurbois:1175508156785365003>","<:Spammeurargent:1175507962249351268>","<:Spammeuror:1175507966808572007>","<:Spammeurplatine:1175507968293339167>","<:Spammeurultime:1175507863460913222>"],crew:!1},ermite:{id:"timeInVoice",img:"ermite",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:Ermitebois:1175507899875868672>","<:Ermiteargent:1175508498138796153>","<:Ermiteor:1175508465746182305>","<:Ermiteplatine:1175507904695124028>","<:Ermiteultime:1175507906041499749>"],crew:!1},berry:{id:"berry",img:"berry",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:ElonMuskbois:1175507891600498758>","<:ElonMuskargent:1175508764988801034>","<:ElonMuskor:1175508756700856390>","<:ElonMuskplatine:1175508739386789928>","<:ElonMuskultime:1175507895668985886>"],crew:!1},mode:{id:"spendShop",img:"mode",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:FashionViktimbois:1175508381436485672>","<:FashionViktimargent:1175507924873904128>","<:FashionViktimor:1175507926719414406>","<:FashionViktimplatine:1175508345562599445>","<:FashionViktimultime:1175507931517698088>"],crew:!1},noluck:{id:"noLuck",img:"noluck",isProgressive:!1,emojis:"<:BadluckPlatine:1175507878048702505>",crew:!1},chance:{id:"chance",img:"chance",isProgressive:!1,emojis:"<:BadgeChanceux:1192743999514103869>",crew:!1},casino:{id:"casino",img:"casino",isProgressive:[h.LEGENDARY,h.MYTHIC],emojis:["<:GamblingAddict:1175507934223016047>","<:GamblingAddictDiamond:1187147920647131207>"],crew:!1},premium:{id:"premium",img:"premium",isProgressive:!1,emojis:"<:BadgesDon:1175507876056399933>",crew:!1},calendar:{id:"calendar",img:"calendar",isProgressive:!1,emojis:"<:Calendrier:1187170872176431114>",crew:!1},doublesix:{id:"doublesix",img:"doublesix",isProgressive:!1,emojis:"<:DoubleSix:1187178228624937000>",crew:!1},"black-jack":{id:"blackJack",img:"black-jack",isProgressive:!1,emojis:"<:BlackJack:1187456310137069618>",crew:!1},communism:{id:"communism",img:"communism",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:cropped_communism_Bronze:1234375558184570902>","<:cropped_communism_Silver:1234375563729440789>","<:cropped_communism_Gold:1234375561154007103>","<:cropped_communism_Platinum:1234375562269687849>","<:cropped_communism_Diamond:1234375559811825705>"],crew:!0},crewship:{id:"crewship",img:"crewship",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:cropped_crewship_Bronze:1234458902641246260>","<:cropped_crewship_Silver:1234458908840431617>","<:cropped_crewship_Gold:1234458905694961724>","<:cropped_crewship_Platinum:1234458907741782038>","<:cropped_crewship_Diamond:1234458904100864000>"],crew:!0},broship:{id:"broship",img:"broship",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:cropped_broship_Bronze:1234537705292038175>","<:cropped_broship_Silver:1234537711214530652>","<:cropped_broship_Gold:1234537708047695892>","<:cropped_broship_Platinum:1234537710170013867>","<:cropped_broship_Diamond:1234537706810245161>"],crew:!0},shipsecte:{id:"shipsecte",img:"shipsecte",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:cropped_shipsecte_Bronze:1234547646023078009>","<:cropped_shipsecte_Silver:1234547651912011827>","<:cropped_shipsecte_Gold:1234547649160675408>","<:cropped_shipsecte_Platinum:1234547650414514267>","<:cropped_shipsecte_Diamond:1234547648011173888>"],crew:!0},sardine:{id:"sardine",img:"sardine",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:cropped_sardine_Bronze:1234549442799997010>","<:cropped_sardine_Silver:1234549449036927088>","<:cropped_sardine_Gold:1234549445916622988>","<:cropped_sardine_Platinum:1234549447518720050>","<:cropped_sardine_Diamond:1234549444738023484>"],crew:!0},carpenter:{id:"carpenter",img:"carpenter",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:cropped_carpenter_Bronze:1234555340964626495>","<:cropped_carpenter_Silver:1234555345935007764>","<:cropped_carpenter_Gold:1234555343317635153>","<:cropped_carpenter_Platinum:1234555344819191909>","<:cropped_carpenter_Diamond:1234555342143357072>"],crew:!0},camarade:{id:"camarade",img:"camarade",isProgressive:!1,emojis:"<:cropped_camarade:1234582024077967361>",crew:!0},selfish:{id:"selfish",img:"selfish",isProgressive:!1,emojis:"<:cropped_selfish:1234587373363527780>",crew:!0},recipe:{id:"recipe",img:"recipe",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:cropped_b_recipe_Bronze:1244357782573023282>","<:cropped_b_recipe_Silver:1244357788361031711>","<:cropped_b_recipe_Gold:1244357785555308574>","<:cropped_b_recipe_Platinum:1244357786750685225>","<:cropped_b_recipe_Diamond:1244357784397545526>"],crew:!1},craft:{id:"craft",img:"craft",isProgressive:[h.COMMON,h.RARE,h.EPIC,h.LEGENDARY,h.MYTHIC],emojis:["<:cropped_b_craft_Bronze:1244357834452238447>","<:cropped_b_craft_Silver:1244357840513011722>","<:cropped_b_craft_Gold:1244357837333725306>","<:cropped_b_craft_Platinum:1244357838801735761>","<:cropped_b_craft_Diamond:1244357835735695401>"],crew:!1}},Ms=e=>!!e.isProgressive,Cl={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>"}},Pt=e=>new Intl.NumberFormat("de-DE").format(e),Nl=(e,t,s=r=>r)=>e.filter(r=>!t.some(i=>s(i)===s(r))),Yl=e=>Object.fromEntries(e),jr=e=>e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(t,s)=>s.toUpperCase()).replace(/^[A-Z]/,t=>t.toLowerCase()),Pl=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ll=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Ur=/(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,Os=[/^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],Il={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:Ur,monthsShortRegex:Ur,monthsStrictRegex:Pl,monthsShortStrictRegex:Ll,monthsParse:Os,longMonthsParse:Os,shortMonthsParse:Os,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}};p.locale("fr",Il);const ks=(e,t,s=!0)=>(s?e.getFullYear()===t.getFullYear():!0)&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),Wr=e=>typeof e=="function",Al=e=>Math.round(5e3*Math.pow(200,.01*e)/10)*10,Hr=e=>e>=1?Hr(e-1)+Al(e):0,G=(e,t=0)=>e<Hr(t+1)?t:G(e,t+1);class Fl{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var Lt=(e=>(e.COMPLETED="COMPLETED",e.IN_PROGRESS="IN_PROGRESS",e))(Lt||{});const jl=async(e,t,s)=>{const r=Xr(e),i=jr(e.split("/")[1]);for(const n of r){if(!("crewDependencies"in n))return;const a=new n;await a.isCompletedForCrew(t)||await a.isValidated({[i]:s},t)&&await a.completeForCrew(t)}},Ul=async(e,t,s)=>{const r=Zr(e),i=jr(e.split("/")[1]);for(const n of r)if("crewDependencies"in n){const a=new n,o=await y.userCrewService.get(t);if(!o||!o.crew||await a.isCompletedForCrew(o.crew))continue;await a.isValidated({[i]:s},o.crew)&&await a.completeForCrew(o.crew)}else{const a=new n;if(await a.isCompleted(t))continue;await a.isValidated({[i]:s},t)&&await a.complete(t,!0)}},Wl=(e,t)=>async(s,r)=>{t?await jl(e,s,r):await Ul(e,s,r)},Vr=new(void 0),$r="quest/COMPLETED_QUEST",xs=(e,t)=>{Vr.emit($r,e,t)},Hl=e=>{Vr.on($r,(t,s)=>{e(t,s)})};y.registerQuestMiddlewareEvents(Yl(Object.values(y.QUEST_MIDDLEWARE_EVENT_NAME).map(e=>[e,Wl(e,e.startsWith("middleware/CREW"))])));class Gr extends B{name="1 jour 1 message";id="daily_send_message";rankId=A.COMMON.id;description="Envoyer un message";berry=({xp:t})=>(G(t.amount)/10+1)*1e3;xp=({xp:t})=>(G(t.amount)/10+1)*100;daily=!0;async isValidated(){return!1}}class Br extends B{name="Les nouvelles sont bonnes ?";id="daily_read_edito";rankId=A.COMMON.id;description="Réagir à l'édito";berry=({xp:t})=>(G(t.amount)/10+1)*3e3;xp=({xp:t})=>(G(t.amount)/10+1)*300;daily=!0;async isValidated(){return!1}}class zr extends B{name="Quoi ? Feur !";id="daily_answer";rankId=A.COMMON.id;description="Répondre à quelqu'un";berry=({xp:t})=>(G(t.amount)/10+1)*1500;xp=({xp:t})=>(G(t.amount)/10+1)*150;daily=!0;async isValidated(){return!1}}class Qr extends B{name="Narcissique";id="daily_check_profile";rankId=A.COMMON.id;description="Regarder son profil";berry=({xp:t})=>(G(t.amount)/10+1)*2e3;xp=({xp:t})=>(G(t.amount)/10+1)*200;daily=!0;async isValidated(){return!1}}class qr extends B{name="T'as des amis ?";id="daily_vocal";rankId=A.COMMON.id;description="Se connecter 10 min en vocal";berry=({xp:t})=>(G(t.amount)/10+1)*5e3;xp=({xp:t})=>(G(t.amount)/10+1)*500;daily=!0;static dependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},s){const{xp:r}=t??await y.userMetaService.get(s);return r.voice.minutesInVoiceToday>=10&&ks(r.voice.lastConnection,new Date)}}class Ds extends B{name="T'as pas oublié de ranger ta chambre ?";id="daily_all";rankId=A.RARE.id;description="Finir les quêtes journalières";berry=({xp:t})=>(G(t.amount)/10+1)*12500;xp=({xp:t})=>(G(t.amount)/10+1)*1250;daily=!0;static dependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(t,s){const r=[new Qr,new zr,new Br,new Gr,new qr];for(const i of r)if(!await i.isCompleted(s))return!1;return!0}}class Vl extends B{name="Almanax";id="almanax";rankId=A.MYTHIC.id;description="Valider 365 jours de suite les quêtes quotidiennes";berry=1e9;xp=1e6;badge=Z.calendar;static dependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(t,s){const r=new Ds().id;return((await y.userQuestService.get({user:s,questId:r})).streak??0)>=365}}const $l=Object.freeze(Object.defineProperty({__proto__:null,Almanax:Vl,DailyAll:Ds,DailyAnswer:zr,DailyCheckProfile:Qr,DailyReadEdito:Br,DailySendMessage:Gr,DailyVocal:qr},Symbol.toStringTag,{value:"Module"}));class B extends Fl{static dependencies=[];async complete(t,s){const r=new Date;r.setHours(0,0,0,0);let i;if(!await this.isCompleted(t)&&(this.daily?i=await y.userQuestService.completeQuest({lastCompletionDate:{$lt:r},questId:this.id,user:t},!0):this.repeatable?i=await y.userQuestService.completeQuest({questId:this.id,user:t}):i=await y.userQuestService.completeQuest({questId:this.id,user:t,status:Lt.IN_PROGRESS}),!!i))return await this.specificQuestCompletion(t),await this.applyReward(t),s&&xs([t],this),!0}async applyReward(t){this.crew||(this.titleId&&await y.userOrnamentService.unlockTitle(t,this.titleId),this.badge&&await y.userOrnamentService.unlockBadge(t,this.badge,this.rankId),this.isFactionBadge&&await y.userOrnamentService.unlockFactionBadge(t,this.rankId),this.asset&&await y.userOrnamentService.unlockProfileAsset(t,this.asset),this.items&&await y.userInventoryService.addItems(t,this.items))}async getComputedRewards(t){const s=new Ds().id,r=this.daily?await y.userQuestService.getStreakMultiplier(t,s):1,i=await y.userMetaService.get(t);return{xp:(Wr(this.xp)?this.xp(i):this.xp)*r,berry:(Wr(this.berry)?this.berry(i):this.berry)*r}}async specificQuestCompletion(t){this.id==="be_level_10"&&await y.userService.canChooseFaction(t,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await y.userService.canChangeFaction(t,!0)}async isCompleted(t){const{lastCompletionDate:s,status:r}=await y.userQuestService.get({user:t,questId:this.id});return this.repeatable?!1:this.daily?r==="COMPLETED"&&!!s&&ks(s,new Date):r==="COMPLETED"}}class et extends B{static crewDependencies=[];async completeForCrew(t){if(await this.isCompletedForCrew(t))return;const s=new Date;s.setHours(0,0,0,0);let r;if(this.daily?r=await y.crewQuestService.completeQuest({lastCompletionDate:{$lt:s},questId:this.id,crew:t}):this.repeatable?r=await y.crewQuestService.completeQuest({questId:this.id,crew:t}):r=await y.crewQuestService.completeQuest({questId:this.id,crew:t,status:Lt.IN_PROGRESS}),!r)return;const i=await y.userCrewService.getAllUserIdsFromCrew(t),n=[];await this.applyCrewReward(t);for(const a of i)await this.complete(a,!1)&&n.push(a);xs(n,this)}async applyCrewReward(t){this.badge&&await y.crewOrnamentsService.unlockBadge(t,this.badge,this.rankId)}async isCompletedForCrew(t){const{lastCompletionDate:s,status:r}=await y.crewQuestService.get({crew:t,questId:this.id});return this.repeatable?!1:this.daily?r==="COMPLETED"&&!!s&&ks(s,new Date):r==="COMPLETED"}}class Gl extends et{name="Prenez-en soin";id="crew_carpenter_1_week";rankId=A.COMMON.id;description="Rester au dessus de 80% de détérioration pendant 1 semaine";berry=5e4;xp=5e3;crew=!0;secret=!0;badge=Z.carpenter;static crewDependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:t},s){const{streak80Percent:r}=t??await y.crewStatsFrequencyService.get(s);return r>=7}}class Bl extends et{name="Il est comme neuf !";id="crew_carpenter_1_month";rankId=A.RARE.id;description="Rester au dessus de 80% de détérioration pendant 1 mois";berry=2e5;xp=25e3;crew=!0;secret=!0;badge=Z.carpenter;static crewDependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:t},s){const{streak80Percent:r}=t??await y.crewStatsFrequencyService.get(s);return r>=30}}class zl extends et{name="À l'occasion, je vous mettrai un petit coup de polish";id="crew_carpenter_3_months";rankId=A.EPIC.id;description="Rester au dessus de 80% de détérioration pendant 3 mois";berry=1e6;xp=5e4;crew=!0;secret=!0;badge=Z.carpenter;static crewDependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:t},s){const{streak80Percent:r}=t??await y.crewStatsFrequencyService.get(s);return r>=90}}class Ql extends et{name="Vous ne naviguez qu'en eau calme ?";id="crew_carpenter_6_months";rankId=A.LEGENDARY.id;description="Rester au dessus de 80% de détérioration pendant 6 mois";berry=1e7;xp=1e5;crew=!0;secret=!0;badge=Z.carpenter;static crewDependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:t},s){const{streak80Percent:r}=t??await y.crewStatsFrequencyService.get(s);return r>=180}}class ql extends et{name="C'est un sacré charpentier que vous avez là !";id="crew_carpenter_1_year";rankId=A.MYTHIC.id;description="Rester au dessus de 80% de détérioration pendant 1 an";berry=5e7;xp=25e4;crew=!0;secret=!0;titleId="title_Charpentier Légendaire";badge=Z.carpenter;static crewDependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:t},s){const{streak80Percent:r}=t??await y.crewStatsFrequencyService.get(s);return r>=365}}const Kl=Object.freeze(Object.defineProperty({__proto__:null,CrewCarpenter1Month:Bl,CrewCarpenter1Week:Gl,CrewCarpenter1Year:ql,CrewCarpenter3Months:zl,CrewCarpenter6Months:Ql},Symbol.toStringTag,{value:"Module"}));class Jl extends B{name="Ne fais rien exploser hein ?";id="have_1_recipe";description="Avoir 1 recette";berry=5e4;xp=5e3;rankId=A.COMMON.id;badge=Z.recipe;static dependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},s){const{recipes:r}=t??await y.userInventoryService.get(s);return r.length>=1}}class Zl extends B{name="C'est bien tu sais faire des pâtes !";id="have_5_recipe";rankId=A.RARE.id;description="Avoir 5 recettes";berry=2e5;xp=25e3;badge=Z.recipe;static dependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},s){const{recipes:r}=t??await y.userInventoryService.get(s);return r.length>=5}}class Xl extends B{name="Ta grand-mère t'as donné son livre ?";id="have_10_recipe";rankId=A.EPIC.id;description="Avoir 10 recettes";berry=1e6;xp=5e4;badge=Z.recipe;static dependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},s){const{recipes:r}=t??await y.userInventoryService.get(s);return r.length>=10}}class eu extends B{name="Let him cook";id="have_25_recipe";rankId=A.LEGENDARY.id;description="Avoir 25 recettes";berry=1e6;xp=1e5;badge=Z.recipe;static dependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},s){const{recipes:r}=t??await y.userInventoryService.get(s);return r.length>=25}}class tu extends B{name="Paul Bocuse";id="have_100_recipe";rankId=A.MYTHIC.id;description="Avoir 100 recettes";berry=5e7;xp=25e4;titleId="title_Paul Bocuse";badge=Z.recipe;static dependencies=[y.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},s){const{recipes:r}=t??await y.userInventoryService.get(s);return r.length>=100}}const su=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:tu,Have10Recipe:Xl,Have1Recipe:Jl,Have25Recipe:eu,Have5Recipe:Zl},Symbol.toStringTag,{value:"Module"})),It=[...Object.values(Kl),...Object.values(su),...Object.values($l)],At=It.map(e=>new e().id);if(At.length!==[...new Set(At)].length)throw Error(`All quest ids MUST be unique. Duplicated ids detected : ${Nl(At,[...new Set(At)])}`);const Kr=async e=>(await y.userQuestService.getMany({user:e,questId:/be_level_/,status:Lt.COMPLETED})).length,Jr=async(e,t)=>{const s=await Kr(e);return(await y.ornamentService.getAllFactionTitles()).find(i=>i.strength===s&&i.faction===t)},ru=(e,t)=>{const s=e.badge,r=e.isFactionBadge;return s?Ms(s)?s.emojis[s.isProgressive.findIndex(i=>i===e.rankId)]:s.emojis:r?Cl.factions[`b_${t}_${e.rankId}`]:""},iu=e=>{const[t,s]=e.split("_"),r=Object.values(Z).find(i=>i.id===t);if(r)return Ms(r)?r.emojis[r.isProgressive.findIndex(i=>i===s)]:r.emojis},nu=e=>{for(const t of It){const s=new t;if(s.id===e)return s}return null},Zr=e=>It.filter(t=>{let s=!0;return"crewDependencies"in t&&(s=t.crewDependencies.includes(e)),s&&t.dependencies.includes(e)}),Xr=e=>It.filter(t=>"crewDependencies"in t?t.crewDependencies.includes(e):!1),au=async(e,t,s,{berry:r,xp:i})=>{const n=await y.userService.getByObjectId(t),a=await y.userQuestService.getStreakMultiplier(t,e.id),o=await Jr(t,n.faction),{badge:l,isFactionBadge:u,rankId:c,name:m,description:d,daily:w,secret:O,titleId:P}=e,R=await y.ornamentService.get(P??"");return s.Image().setImageName(`quest_success_${c}`).setDimensions(2080,636).draw(),l?s.Image().setImageName(Ms(l)?`cropped_badge_${l.img}_${c}`:`cropped_badge_${l.img}`).setOrigin(be.CENTER).setScale(2).setPosition(370,318).draw():u&&n.faction!=="citizen"?s.Image().setImageName(`cropped_badge_${n.faction}_${c}`).setOrigin(be.CENTER).setScale(2).setPosition(370,318).draw():s.Image().setImageName(`badge_default_${c}`).setScale(2).setOrigin(be.CENTER).setPosition(370,318).draw(),s.Text(w?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(A[c].color).draw(),s.Text(m).setPosition(739,325).setOrigin(be.BOTTOM_LEFT).setFont("poppins",m.length>=35?65-(m.length-35):65).draw(),s.Text(O?"Succès caché":d).setPosition(739,360).setFont("poppins_italic",35).draw(),s.Text(`Récompenses: ${Pt(r)}${w&&a>1?` (+${Pt(r*(a-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(be.LEFT).draw(r!==0).next((E,k)=>ue(E.Image(),k)).setImageName("quest_berry").setDimensions(50,79).draw(r!==0).next((E,k)=>ue(E.Text(` / ${Pt(i)}${w&&a>1?` (+${Pt(i*(a-1))})`:""} `),k)).draw(i!==0).next((E,k)=>ue(E.Image(),k)).setImageName("quest_xp").setDimensions(57,59).draw(i!==0).next((E,k)=>ue(E.Text(` combo x${a}`),k)).draw(w&&a>1).next((E,k)=>ue(E.Text(" et la possibilité "),k)).draw(u&&n.faction==="citizen").next((E,k)=>ue(E.Text("de choisir ta faction"),k)).setFont("poppins_bold",35).draw(u&&n.faction==="citizen").next((E,k)=>ue(E.Text(" et le titre "),k)).setFont("poppins",35).draw(!!P||u&&n.faction!=="citizen").next((E,k)=>ue(E.Text(R?.name??""),k)).setFont("poppins_bold",35).setColor((R?.rankId&&A[R.rankId].color)??"white").draw(!!R).next((E,k)=>ue(E.Text(o?.name??""),k)).setColor((o?.rankId&&A[o.rankId].color)??"white").draw(u&&!!o),await s.encode("webp")},ou=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"];j.QUEST_ASSET_IMAGES=ou,j.emitQuestCompleteEvent=xs,j.getBadgeEmojisFromId=iu,j.getFactionTitle=Jr,j.getFactionTitleStrength=Kr,j.getQuestBadgeEmojis=ru,j.getQuestById=nu,j.getQuestsByCrewDependency=Xr,j.getQuestsByDependency=Zr,j.onQuestCompleteEvent=Hl,j.questCanvas=au,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(d,ut){typeof exports=="object"&&typeof module<"u"?ut(exports,require("@napi-rs/canvas"),require("@opfr/services")):typeof define=="function"&&define.amd?define(["exports","@napi-rs/canvas","@opfr/services"],ut):(d=typeof globalThis<"u"?globalThis:d||self,ut(d.definitions={},d["@napi-rs/canvas"],d["@opfr/services"]))})(this,(function(d,ut,r){"use strict";const ue=(t,e)=>(t.options={...t.options,...e,text:"text"in t.options?t.options.text:""},e.enable&&(t.options={...t.options,x:e.x+(e.width??0),y:e.y}),t);var be=(t=>(t.TOP_LEFT="top-left",t.TOP="top",t.TOP_RIGHT="top-right",t.LEFT="left",t.CENTER="center",t.RIGHT="right",t.BOTTOM_LEFT="bottom-left",t.BOTTOM="bottom",t.BOTTOM_RIGHT="bottom-right",t))(be||{});var Ua;function y(){return Ua.apply(null,arguments)}function yd(t){Ua=t}function te(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function Ae(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ht(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(k(t,e))return!1;return!0}function z(t){return t===void 0}function he(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function He(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function Pa(t,e){var a=[],i,n=t.length;for(i=0;i<n;++i)a.push(e(t[i],i));return a}function Me(t,e){for(var a in e)k(e,a)&&(t[a]=e[a]);return k(e,"toString")&&(t.toString=e.toString),k(e,"valueOf")&&(t.valueOf=e.valueOf),t}function re(t,e,a,i){return ui(t,e,a,i,!0).utc()}function Md(){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 A(t){return t._pf==null&&(t._pf=Md()),t._pf}var jt;Array.prototype.some?jt=Array.prototype.some:jt=function(t){var e=Object(this),a=e.length>>>0,i;for(i=0;i<a;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};function Bt(t){var e=null,a=!1,i=t._d&&!isNaN(t._d.getTime());if(i&&(e=A(t),a=jt.call(e.parsedDateParts,function(n){return n!=null}),i=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&a),t._strict&&(i=i&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=i;else return i;return t._isValid}function ht(t){var e=re(NaN);return t!=null?Me(A(e),t):A(e).userInvalidated=!0,e}var Ya=y.momentProperties=[],Gt=!1;function $t(t,e){var a,i,n,s=Ya.length;if(z(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),z(e._i)||(t._i=e._i),z(e._f)||(t._f=e._f),z(e._l)||(t._l=e._l),z(e._strict)||(t._strict=e._strict),z(e._tzm)||(t._tzm=e._tzm),z(e._isUTC)||(t._isUTC=e._isUTC),z(e._offset)||(t._offset=e._offset),z(e._pf)||(t._pf=A(e)),z(e._locale)||(t._locale=e._locale),s>0)for(a=0;a<s;a++)i=Ya[a],n=e[i],z(n)||(t[i]=n);return t}function je(t){$t(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Gt===!1&&(Gt=!0,y.updateOffset(this),Gt=!1)}function ae(t){return t instanceof je||t!=null&&t._isAMomentObject!=null}function Wa(t){y.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function Z(t,e){var a=!0;return Me(function(){if(y.deprecationHandler!=null&&y.deprecationHandler(null,t),a){var i=[],n,s,o,c=arguments.length;for(s=0;s<c;s++){if(n="",typeof arguments[s]=="object"){n+=`
2
+ [`+s+"] ";for(o in arguments[0])k(arguments[0],o)&&(n+=o+": "+arguments[0][o]+", ");n=n.slice(0,-2)}else n=arguments[s];i.push(n)}Wa(t+`
3
+ Arguments: `+Array.prototype.slice.call(i).join("")+`
4
+ `+new Error().stack),a=!1}return e.apply(this,arguments)},e)}var Qa={};function Fa(t,e){y.deprecationHandler!=null&&y.deprecationHandler(t,e),Qa[t]||(Wa(e),Qa[t]=!0)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;function oe(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function Td(t){var e,a;for(a in t)k(t,a)&&(e=t[a],oe(e)?this[a]=e:this["_"+a]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function zt(t,e){var a=Me({},t),i;for(i in e)k(e,i)&&(Ae(t[i])&&Ae(e[i])?(a[i]={},Me(a[i],t[i]),Me(a[i],e[i])):e[i]!=null?a[i]=e[i]:delete a[i]);for(i in t)k(t,i)&&!k(e,i)&&Ae(t[i])&&(a[i]=Me({},a[i]));return a}function qt(t){t!=null&&this.set(t)}var Kt;Object.keys?Kt=Object.keys:Kt=function(t){var e,a=[];for(e in t)k(t,e)&&a.push(e);return a};var wd={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function bd(t,e,a){var i=this._calendar[t]||this._calendar.sameElse;return oe(i)?i.call(e,a):i}function de(t,e,a){var i=""+Math.abs(t),n=e-i.length,s=t>=0;return(s?a?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var Jt=/(\[[^\[]*\])|(\\)?([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,ft=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Zt={},ke={};function T(t,e,a,i){var n=i;typeof i=="string"&&(n=function(){return this[i]()}),t&&(ke[t]=n),e&&(ke[e[0]]=function(){return de(n.apply(this,arguments),e[1],e[2])}),a&&(ke[a]=function(){return this.localeData().ordinal(n.apply(this,arguments),t)})}function Ad(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Rd(t){var e=t.match(Jt),a,i;for(a=0,i=e.length;a<i;a++)ke[e[a]]?e[a]=ke[e[a]]:e[a]=Ad(e[a]);return function(n){var s="",o;for(o=0;o<i;o++)s+=oe(e[o])?e[o].call(n,t):e[o];return s}}function _t(t,e){return t.isValid()?(e=Ha(e,t.localeData()),Zt[e]=Zt[e]||Rd(e),Zt[e](t)):t.localeData().invalidDate()}function Ha(t,e){var a=5;function i(n){return e.longDateFormat(n)||n}for(ft.lastIndex=0;a>=0&&ft.test(t);)t=t.replace(ft,i),ft.lastIndex=0,a-=1;return t}var Dd={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 Nd(t){var e=this._longDateFormat[t],a=this._longDateFormat[t.toUpperCase()];return e||!a?e:(this._longDateFormat[t]=a.match(Jt).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[t])}var Id="Invalid date";function kd(){return this._invalidDate}var Cd="%d",vd=/\d{1,2}/;function Od(t){return this._ordinal.replace("%d",t)}var xd={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 Ld(t,e,a,i){var n=this._relativeTime[a];return oe(n)?n(t,e,a,i):n.replace(/%d/i,t)}function Vd(t,e){var a=this._relativeTime[t>0?"future":"past"];return oe(a)?a(e):a.replace(/%s/i,e)}var ja={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 X(t){return typeof t=="string"?ja[t]||ja[t.toLowerCase()]:void 0}function Xt(t){var e={},a,i;for(i in t)k(t,i)&&(a=X(i),a&&(e[a]=t[i]));return e}var Ud={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 Pd(t){var e=[],a;for(a in t)k(t,a)&&e.push({unit:a,priority:Ud[a]});return e.sort(function(i,n){return i.priority-n.priority}),e}var Ba=/\d/,q=/\d\d/,Ga=/\d{3}/,ea=/\d{4}/,pt=/[+-]?\d{6}/,U=/\d\d?/,$a=/\d\d\d\d?/,za=/\d\d\d\d\d\d?/,mt=/\d{1,3}/,ta=/\d{1,4}/,Et=/[+-]?\d{1,6}/,Ce=/\d+/,gt=/[+-]?\d+/,Yd=/Z|[+-]\d\d:?\d\d/gi,St=/Z|[+-]\d\d(?::?\d\d)?/gi,Wd=/[+-]?\d+(\.\d{1,3})?/,Be=/[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,ve=/^[1-9]\d?/,aa=/^([1-9]\d|\d)/,yt;yt={};function M(t,e,a){yt[t]=oe(e)?e:function(i,n){return i&&a?a:e}}function Qd(t,e){return k(yt,t)?yt[t](e._strict,e._locale):new RegExp(Fd(t))}function Fd(t){return fe(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,a,i,n,s){return a||i||n||s}))}function fe(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function R(t){var e=+t,a=0;return e!==0&&isFinite(e)&&(a=ee(e)),a}var ia={};function L(t,e){var a,i=e,n;for(typeof t=="string"&&(t=[t]),he(e)&&(i=function(s,o){o[e]=R(s)}),n=t.length,a=0;a<n;a++)ia[t[a]]=i}function Ge(t,e){L(t,function(a,i,n,s){n._w=n._w||{},e(a,n._w,n,s)})}function Hd(t,e,a){e!=null&&k(ia,t)&&ia[t](e,a._a,a,t)}function Mt(t){return t%4===0&&t%100!==0||t%400===0}var B=0,_e=1,le=2,j=3,ie=4,pe=5,Re=6,jd=7,Bd=8;T("Y",0,0,function(){var t=this.year();return t<=9999?de(t,4):"+"+t}),T(0,["YY",2],0,function(){return this.year()%100}),T(0,["YYYY",4],0,"year"),T(0,["YYYYY",5],0,"year"),T(0,["YYYYYY",6,!0],0,"year"),M("Y",gt),M("YY",U,q),M("YYYY",ta,ea),M("YYYYY",Et,pt),M("YYYYYY",Et,pt),L(["YYYYY","YYYYYY"],B),L("YYYY",function(t,e){e[B]=t.length===2?y.parseTwoDigitYear(t):R(t)}),L("YY",function(t,e){e[B]=y.parseTwoDigitYear(t)}),L("Y",function(t,e){e[B]=parseInt(t,10)});function $e(t){return Mt(t)?366:365}y.parseTwoDigitYear=function(t){return R(t)+(R(t)>68?1900:2e3)};var qa=Oe("FullYear",!0);function Gd(){return Mt(this.year())}function Oe(t,e){return function(a){return a!=null?(Ka(this,t,a),y.updateOffset(this,e),this):ze(this,t)}}function ze(t,e){if(!t.isValid())return NaN;var a=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?a.getUTCMilliseconds():a.getMilliseconds();case"Seconds":return i?a.getUTCSeconds():a.getSeconds();case"Minutes":return i?a.getUTCMinutes():a.getMinutes();case"Hours":return i?a.getUTCHours():a.getHours();case"Date":return i?a.getUTCDate():a.getDate();case"Day":return i?a.getUTCDay():a.getDay();case"Month":return i?a.getUTCMonth():a.getMonth();case"FullYear":return i?a.getUTCFullYear():a.getFullYear();default:return NaN}}function Ka(t,e,a){var i,n,s,o,c;if(!(!t.isValid()||isNaN(a))){switch(i=t._d,n=t._isUTC,e){case"Milliseconds":return void(n?i.setUTCMilliseconds(a):i.setMilliseconds(a));case"Seconds":return void(n?i.setUTCSeconds(a):i.setSeconds(a));case"Minutes":return void(n?i.setUTCMinutes(a):i.setMinutes(a));case"Hours":return void(n?i.setUTCHours(a):i.setHours(a));case"Date":return void(n?i.setUTCDate(a):i.setDate(a));case"FullYear":break;default:return}s=a,o=t.month(),c=t.date(),c=c===29&&o===1&&!Mt(s)?28:c,n?i.setUTCFullYear(s,o,c):i.setFullYear(s,o,c)}}function $d(t){return t=X(t),oe(this[t])?this[t]():this}function zd(t,e){if(typeof t=="object"){t=Xt(t);var a=Pd(t),i,n=a.length;for(i=0;i<n;i++)this[a[i].unit](t[a[i].unit])}else if(t=X(t),oe(this[t]))return this[t](e);return this}function qd(t,e){return(t%e+e)%e}var F;Array.prototype.indexOf?F=Array.prototype.indexOf:F=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function na(t,e){if(isNaN(t)||isNaN(e))return NaN;var a=qd(e,12);return t+=(e-a)/12,a===1?Mt(t)?29:28:31-a%7%2}T("M",["MM",2],"Mo",function(){return this.month()+1}),T("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),T("MMMM",0,0,function(t){return this.localeData().months(this,t)}),M("M",U,ve),M("MM",U,q),M("MMM",function(t,e){return e.monthsShortRegex(t)}),M("MMMM",function(t,e){return e.monthsRegex(t)}),L(["M","MM"],function(t,e){e[_e]=R(t)-1}),L(["MMM","MMMM"],function(t,e,a,i){var n=a._locale.monthsParse(t,i,a._strict);n!=null?e[_e]=n:A(a).invalidMonth=t});var Kd="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ja="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Za=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Jd=Be,Zd=Be;function Xd(t,e){return t?te(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Za).test(e)?"format":"standalone"][t.month()]:te(this._months)?this._months:this._months.standalone}function el(t,e){return t?te(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Za.test(e)?"format":"standalone"][t.month()]:te(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function tl(t,e,a){var i,n,s,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=re([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return a?e==="MMM"?(n=F.call(this._shortMonthsParse,o),n!==-1?n:null):(n=F.call(this._longMonthsParse,o),n!==-1?n:null):e==="MMM"?(n=F.call(this._shortMonthsParse,o),n!==-1?n:(n=F.call(this._longMonthsParse,o),n!==-1?n:null)):(n=F.call(this._longMonthsParse,o),n!==-1?n:(n=F.call(this._shortMonthsParse,o),n!==-1?n:null))}function al(t,e,a){var i,n,s;if(this._monthsParseExact)return tl.call(this,t,e,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=re([2e3,i]),a&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!a&&!this._monthsParse[i]&&(s="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),a&&e==="MMMM"&&this._longMonthsParse[i].test(t))return i;if(a&&e==="MMM"&&this._shortMonthsParse[i].test(t))return i;if(!a&&this._monthsParse[i].test(t))return i}}function Xa(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=R(e);else if(e=t.localeData().monthsParse(e),!he(e))return t}var a=e,i=t.date();return i=i<29?i:Math.min(i,na(t.year(),a)),t._isUTC?t._d.setUTCMonth(a,i):t._d.setMonth(a,i),t}function ei(t){return t!=null?(Xa(this,t),y.updateOffset(this,!0),this):ze(this,"Month")}function il(){return na(this.year(),this.month())}function nl(t){return this._monthsParseExact?(k(this,"_monthsRegex")||ti.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(k(this,"_monthsShortRegex")||(this._monthsShortRegex=Jd),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function sl(t){return this._monthsParseExact?(k(this,"_monthsRegex")||ti.call(this),t?this._monthsStrictRegex:this._monthsRegex):(k(this,"_monthsRegex")||(this._monthsRegex=Zd),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ti(){function t(h,f){return f.length-h.length}var e=[],a=[],i=[],n,s,o,c;for(n=0;n<12;n++)s=re([2e3,n]),o=fe(this.monthsShort(s,"")),c=fe(this.months(s,"")),e.push(o),a.push(c),i.push(c),i.push(o);e.sort(t),a.sort(t),i.sort(t),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function rl(t,e,a,i,n,s,o){var c;return t<100&&t>=0?(c=new Date(t+400,e,a,i,n,s,o),isFinite(c.getFullYear())&&c.setFullYear(t)):c=new Date(t,e,a,i,n,s,o),c}function qe(t){var e,a;return t<100&&t>=0?(a=Array.prototype.slice.call(arguments),a[0]=t+400,e=new Date(Date.UTC.apply(null,a)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Tt(t,e,a){var i=7+e-a,n=(7+qe(t,0,i).getUTCDay()-e)%7;return-n+i-1}function ai(t,e,a,i,n){var s=(7+a-i)%7,o=Tt(t,i,n),c=1+7*(e-1)+s+o,h,f;return c<=0?(h=t-1,f=$e(h)+c):c>$e(t)?(h=t+1,f=c-$e(t)):(h=t,f=c),{year:h,dayOfYear:f}}function Ke(t,e,a){var i=Tt(t.year(),e,a),n=Math.floor((t.dayOfYear()-i-1)/7)+1,s,o;return n<1?(o=t.year()-1,s=n+me(o,e,a)):n>me(t.year(),e,a)?(s=n-me(t.year(),e,a),o=t.year()+1):(o=t.year(),s=n),{week:s,year:o}}function me(t,e,a){var i=Tt(t,e,a),n=Tt(t+1,e,a);return($e(t)-i+n)/7}T("w",["ww",2],"wo","week"),T("W",["WW",2],"Wo","isoWeek"),M("w",U,ve),M("ww",U,q),M("W",U,ve),M("WW",U,q),Ge(["w","ww","W","WW"],function(t,e,a,i){e[i.substr(0,1)]=R(t)});function ol(t){return Ke(t,this._week.dow,this._week.doy).week}var dl={dow:0,doy:6};function ll(){return this._week.dow}function cl(){return this._week.doy}function ul(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function hl(t){var e=Ke(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}T("d",0,"do","day"),T("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),T("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),T("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),T("e",0,0,"weekday"),T("E",0,0,"isoWeekday"),M("d",U),M("e",U),M("E",U),M("dd",function(t,e){return e.weekdaysMinRegex(t)}),M("ddd",function(t,e){return e.weekdaysShortRegex(t)}),M("dddd",function(t,e){return e.weekdaysRegex(t)}),Ge(["dd","ddd","dddd"],function(t,e,a,i){var n=a._locale.weekdaysParse(t,i,a._strict);n!=null?e.d=n:A(a).invalidWeekday=t}),Ge(["d","e","E"],function(t,e,a,i){e[i]=R(t)});function fl(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function _l(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function sa(t,e){return t.slice(e,7).concat(t.slice(0,e))}var pl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ii="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ml="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),El=Be,gl=Be,Sl=Be;function yl(t,e){var a=te(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?sa(a,this._week.dow):t?a[t.day()]:a}function Ml(t){return t===!0?sa(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Tl(t){return t===!0?sa(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function wl(t,e,a){var i,n,s,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=re([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return a?e==="dddd"?(n=F.call(this._weekdaysParse,o),n!==-1?n:null):e==="ddd"?(n=F.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=F.call(this._minWeekdaysParse,o),n!==-1?n:null):e==="dddd"?(n=F.call(this._weekdaysParse,o),n!==-1||(n=F.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=F.call(this._minWeekdaysParse,o),n!==-1?n:null)):e==="ddd"?(n=F.call(this._shortWeekdaysParse,o),n!==-1||(n=F.call(this._weekdaysParse,o),n!==-1)?n:(n=F.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=F.call(this._minWeekdaysParse,o),n!==-1||(n=F.call(this._weekdaysParse,o),n!==-1)?n:(n=F.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function bl(t,e,a){var i,n,s;if(this._weekdaysParseExact)return wl.call(this,t,e,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=re([2e3,1]).day(i),a&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),a&&e==="dddd"&&this._fullWeekdaysParse[i].test(t))return i;if(a&&e==="ddd"&&this._shortWeekdaysParse[i].test(t))return i;if(a&&e==="dd"&&this._minWeekdaysParse[i].test(t))return i;if(!a&&this._weekdaysParse[i].test(t))return i}}function Al(t){if(!this.isValid())return t!=null?this:NaN;var e=ze(this,"Day");return t!=null?(t=fl(t,this.localeData()),this.add(t-e,"d")):e}function Rl(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function Dl(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=_l(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Nl(t){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||ra.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(k(this,"_weekdaysRegex")||(this._weekdaysRegex=El),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Il(t){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||ra.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(k(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=gl),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function kl(t){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||ra.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(k(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Sl),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ra(){function t(p,g){return g.length-p.length}var e=[],a=[],i=[],n=[],s,o,c,h,f;for(s=0;s<7;s++)o=re([2e3,1]).day(s),c=fe(this.weekdaysMin(o,"")),h=fe(this.weekdaysShort(o,"")),f=fe(this.weekdays(o,"")),e.push(c),a.push(h),i.push(f),n.push(c),n.push(h),n.push(f);e.sort(t),a.sort(t),i.sort(t),n.sort(t),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function oa(){return this.hours()%12||12}function Cl(){return this.hours()||24}T("H",["HH",2],0,"hour"),T("h",["hh",2],0,oa),T("k",["kk",2],0,Cl),T("hmm",0,0,function(){return""+oa.apply(this)+de(this.minutes(),2)}),T("hmmss",0,0,function(){return""+oa.apply(this)+de(this.minutes(),2)+de(this.seconds(),2)}),T("Hmm",0,0,function(){return""+this.hours()+de(this.minutes(),2)}),T("Hmmss",0,0,function(){return""+this.hours()+de(this.minutes(),2)+de(this.seconds(),2)});function ni(t,e){T(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}ni("a",!0),ni("A",!1);function si(t,e){return e._meridiemParse}M("a",si),M("A",si),M("H",U,aa),M("h",U,ve),M("k",U,ve),M("HH",U,q),M("hh",U,q),M("kk",U,q),M("hmm",$a),M("hmmss",za),M("Hmm",$a),M("Hmmss",za),L(["H","HH"],j),L(["k","kk"],function(t,e,a){var i=R(t);e[j]=i===24?0:i}),L(["a","A"],function(t,e,a){a._isPm=a._locale.isPM(t),a._meridiem=t}),L(["h","hh"],function(t,e,a){e[j]=R(t),A(a).bigHour=!0}),L("hmm",function(t,e,a){var i=t.length-2;e[j]=R(t.substr(0,i)),e[ie]=R(t.substr(i)),A(a).bigHour=!0}),L("hmmss",function(t,e,a){var i=t.length-4,n=t.length-2;e[j]=R(t.substr(0,i)),e[ie]=R(t.substr(i,2)),e[pe]=R(t.substr(n)),A(a).bigHour=!0}),L("Hmm",function(t,e,a){var i=t.length-2;e[j]=R(t.substr(0,i)),e[ie]=R(t.substr(i))}),L("Hmmss",function(t,e,a){var i=t.length-4,n=t.length-2;e[j]=R(t.substr(0,i)),e[ie]=R(t.substr(i,2)),e[pe]=R(t.substr(n))});function vl(t){return(t+"").toLowerCase().charAt(0)==="p"}var Ol=/[ap]\.?m?\.?/i,xl=Oe("Hours",!0);function Ll(t,e,a){return t>11?a?"pm":"PM":a?"am":"AM"}var ri={calendar:wd,longDateFormat:Dd,invalidDate:Id,ordinal:Cd,dayOfMonthOrdinalParse:vd,relativeTime:xd,months:Kd,monthsShort:Ja,week:dl,weekdays:pl,weekdaysMin:ml,weekdaysShort:ii,meridiemParse:Ol},Y={},Je={},Ze;function Vl(t,e){var a,i=Math.min(t.length,e.length);for(a=0;a<i;a+=1)if(t[a]!==e[a])return a;return i}function oi(t){return t&&t.toLowerCase().replace("_","-")}function Ul(t){for(var e=0,a,i,n,s;e<t.length;){for(s=oi(t[e]).split("-"),a=s.length,i=oi(t[e+1]),i=i?i.split("-"):null;a>0;){if(n=wt(s.slice(0,a).join("-")),n)return n;if(i&&i.length>=a&&Vl(s,i)>=a-1)break;a--}e++}return Ze}function Pl(t){return!!(t&&t.match("^[^/\\\\]*$"))}function wt(t){var e=null,a;if(Y[t]===void 0&&typeof module<"u"&&module&&module.exports&&Pl(t))try{e=Ze._abbr,a=require,a("./locale/"+t),Te(e)}catch{Y[t]=null}return Y[t]}function Te(t,e){var a;return t&&(z(e)?a=Ee(t):a=da(t,e),a?Ze=a:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Ze._abbr}function da(t,e){if(e!==null){var a,i=ri;if(e.abbr=t,Y[t]!=null)Fa("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."),i=Y[t]._config;else if(e.parentLocale!=null)if(Y[e.parentLocale]!=null)i=Y[e.parentLocale]._config;else if(a=wt(e.parentLocale),a!=null)i=a._config;else return Je[e.parentLocale]||(Je[e.parentLocale]=[]),Je[e.parentLocale].push({name:t,config:e}),null;return Y[t]=new qt(zt(i,e)),Je[t]&&Je[t].forEach(function(n){da(n.name,n.config)}),Te(t),Y[t]}else return delete Y[t],null}function Yl(t,e){if(e!=null){var a,i,n=ri;Y[t]!=null&&Y[t].parentLocale!=null?Y[t].set(zt(Y[t]._config,e)):(i=wt(t),i!=null&&(n=i._config),e=zt(n,e),i==null&&(e.abbr=t),a=new qt(e),a.parentLocale=Y[t],Y[t]=a),Te(t)}else Y[t]!=null&&(Y[t].parentLocale!=null?(Y[t]=Y[t].parentLocale,t===Te()&&Te(t)):Y[t]!=null&&delete Y[t]);return Y[t]}function Ee(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ze;if(!te(t)){if(e=wt(t),e)return e;t=[t]}return Ul(t)}function Wl(){return Kt(Y)}function la(t){var e,a=t._a;return a&&A(t).overflow===-2&&(e=a[_e]<0||a[_e]>11?_e:a[le]<1||a[le]>na(a[B],a[_e])?le:a[j]<0||a[j]>24||a[j]===24&&(a[ie]!==0||a[pe]!==0||a[Re]!==0)?j:a[ie]<0||a[ie]>59?ie:a[pe]<0||a[pe]>59?pe:a[Re]<0||a[Re]>999?Re:-1,A(t)._overflowDayOfYear&&(e<B||e>le)&&(e=le),A(t)._overflowWeeks&&e===-1&&(e=jd),A(t)._overflowWeekday&&e===-1&&(e=Bd),A(t).overflow=e),t}var Ql=/^\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)?)?$/,Fl=/^\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)?)?$/,Hl=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["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]],ca=[["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/]],jl=/^\/?Date\((-?\d+)/i,Bl=/^(?:(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}))$/,Gl={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function di(t){var e,a,i=t._i,n=Ql.exec(i)||Fl.exec(i),s,o,c,h,f=bt.length,p=ca.length;if(n){for(A(t).iso=!0,e=0,a=f;e<a;e++)if(bt[e][1].exec(n[1])){o=bt[e][0],s=bt[e][2]!==!1;break}if(o==null){t._isValid=!1;return}if(n[3]){for(e=0,a=p;e<a;e++)if(ca[e][1].exec(n[3])){c=(n[2]||" ")+ca[e][0];break}if(c==null){t._isValid=!1;return}}if(!s&&c!=null){t._isValid=!1;return}if(n[4])if(Hl.exec(n[4]))h="Z";else{t._isValid=!1;return}t._f=o+(c||"")+(h||""),ha(t)}else t._isValid=!1}function $l(t,e,a,i,n,s){var o=[zl(t),Ja.indexOf(e),parseInt(a,10),parseInt(i,10),parseInt(n,10)];return s&&o.push(parseInt(s,10)),o}function zl(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function ql(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Kl(t,e,a){if(t){var i=ii.indexOf(t),n=new Date(e[0],e[1],e[2]).getDay();if(i!==n)return A(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}function Jl(t,e,a){if(t)return Gl[t];if(e)return 0;var i=parseInt(a,10),n=i%100,s=(i-n)/100;return s*60+n}function li(t){var e=Bl.exec(ql(t._i)),a;if(e){if(a=$l(e[4],e[3],e[2],e[5],e[6],e[7]),!Kl(e[1],a,t))return;t._a=a,t._tzm=Jl(e[8],e[9],e[10]),t._d=qe.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),A(t).rfc2822=!0}else t._isValid=!1}function Zl(t){var e=jl.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(di(t),t._isValid===!1)delete t._isValid;else return;if(li(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:y.createFromInputFallback(t)}y.createFromInputFallback=Z("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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function xe(t,e,a){return t??e??a}function Xl(t){var e=new Date(y.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function ua(t){var e,a,i=[],n,s,o;if(!t._d){for(n=Xl(t),t._w&&t._a[le]==null&&t._a[_e]==null&&ec(t),t._dayOfYear!=null&&(o=xe(t._a[B],n[B]),(t._dayOfYear>$e(o)||t._dayOfYear===0)&&(A(t)._overflowDayOfYear=!0),a=qe(o,0,t._dayOfYear),t._a[_e]=a.getUTCMonth(),t._a[le]=a.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=i[e]=n[e];for(;e<7;e++)t._a[e]=i[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[j]===24&&t._a[ie]===0&&t._a[pe]===0&&t._a[Re]===0&&(t._nextDay=!0,t._a[j]=0),t._d=(t._useUTC?qe:rl).apply(null,i),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[j]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==s&&(A(t).weekdayMismatch=!0)}}function ec(t){var e,a,i,n,s,o,c,h,f;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(s=1,o=4,a=xe(e.GG,t._a[B],Ke(P(),1,4).year),i=xe(e.W,1),n=xe(e.E,1),(n<1||n>7)&&(h=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,f=Ke(P(),s,o),a=xe(e.gg,t._a[B],f.year),i=xe(e.w,f.week),e.d!=null?(n=e.d,(n<0||n>6)&&(h=!0)):e.e!=null?(n=e.e+s,(e.e<0||e.e>6)&&(h=!0)):n=s),i<1||i>me(a,s,o)?A(t)._overflowWeeks=!0:h!=null?A(t)._overflowWeekday=!0:(c=ai(a,i,n,s,o),t._a[B]=c.year,t._dayOfYear=c.dayOfYear)}y.ISO_8601=function(){},y.RFC_2822=function(){};function ha(t){if(t._f===y.ISO_8601){di(t);return}if(t._f===y.RFC_2822){li(t);return}t._a=[],A(t).empty=!0;var e=""+t._i,a,i,n,s,o,c=e.length,h=0,f,p;for(n=Ha(t._f,t._locale).match(Jt)||[],p=n.length,a=0;a<p;a++)s=n[a],i=(e.match(Qd(s,t))||[])[0],i&&(o=e.substr(0,e.indexOf(i)),o.length>0&&A(t).unusedInput.push(o),e=e.slice(e.indexOf(i)+i.length),h+=i.length),ke[s]?(i?A(t).empty=!1:A(t).unusedTokens.push(s),Hd(s,i,t)):t._strict&&!i&&A(t).unusedTokens.push(s);A(t).charsLeftOver=c-h,e.length>0&&A(t).unusedInput.push(e),t._a[j]<=12&&A(t).bigHour===!0&&t._a[j]>0&&(A(t).bigHour=void 0),A(t).parsedDateParts=t._a.slice(0),A(t).meridiem=t._meridiem,t._a[j]=tc(t._locale,t._a[j],t._meridiem),f=A(t).era,f!==null&&(t._a[B]=t._locale.erasConvertYear(f,t._a[B])),ua(t),la(t)}function tc(t,e,a){var i;return a==null?e:t.meridiemHour!=null?t.meridiemHour(e,a):(t.isPM!=null&&(i=t.isPM(a),i&&e<12&&(e+=12),!i&&e===12&&(e=0)),e)}function ac(t){var e,a,i,n,s,o,c=!1,h=t._f.length;if(h===0){A(t).invalidFormat=!0,t._d=new Date(NaN);return}for(n=0;n<h;n++)s=0,o=!1,e=$t({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[n],ha(e),Bt(e)&&(o=!0),s+=A(e).charsLeftOver,s+=A(e).unusedTokens.length*10,A(e).score=s,c?s<i&&(i=s,a=e):(i==null||s<i||o)&&(i=s,a=e,o&&(c=!0));Me(t,a||e)}function ic(t){if(!t._d){var e=Xt(t._i),a=e.day===void 0?e.date:e.day;t._a=Pa([e.year,e.month,a,e.hour,e.minute,e.second,e.millisecond],function(i){return i&&parseInt(i,10)}),ua(t)}}function nc(t){var e=new je(la(ci(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function ci(t){var e=t._i,a=t._f;return t._locale=t._locale||Ee(t._l),e===null||a===void 0&&e===""?ht({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),ae(e)?new je(la(e)):(He(e)?t._d=e:te(a)?ac(t):a?ha(t):sc(t),Bt(t)||(t._d=null),t))}function sc(t){var e=t._i;z(e)?t._d=new Date(y.now()):He(e)?t._d=new Date(e.valueOf()):typeof e=="string"?Zl(t):te(e)?(t._a=Pa(e.slice(0),function(a){return parseInt(a,10)}),ua(t)):Ae(e)?ic(t):he(e)?t._d=new Date(e):y.createFromInputFallback(t)}function ui(t,e,a,i,n){var s={};return(e===!0||e===!1)&&(i=e,e=void 0),(a===!0||a===!1)&&(i=a,a=void 0),(Ae(t)&&Ht(t)||te(t)&&t.length===0)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=n,s._l=a,s._i=t,s._f=e,s._strict=i,nc(s)}function P(t,e,a,i){return ui(t,e,a,i,!1)}var rc=Z("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=P.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:ht()}),oc=Z("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=P.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:ht()});function hi(t,e){var a,i;if(e.length===1&&te(e[0])&&(e=e[0]),!e.length)return P();for(a=e[0],i=1;i<e.length;++i)(!e[i].isValid()||e[i][t](a))&&(a=e[i]);return a}function dc(){var t=[].slice.call(arguments,0);return hi("isBefore",t)}function lc(){var t=[].slice.call(arguments,0);return hi("isAfter",t)}var cc=function(){return Date.now?Date.now():+new Date},Xe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function uc(t){var e,a=!1,i,n=Xe.length;for(e in t)if(k(t,e)&&!(F.call(Xe,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(i=0;i<n;++i)if(t[Xe[i]]){if(a)return!1;parseFloat(t[Xe[i]])!==R(t[Xe[i]])&&(a=!0)}return!0}function hc(){return this._isValid}function fc(){return ne(NaN)}function At(t){var e=Xt(t),a=e.year||0,i=e.quarter||0,n=e.month||0,s=e.week||e.isoWeek||0,o=e.day||0,c=e.hour||0,h=e.minute||0,f=e.second||0,p=e.millisecond||0;this._isValid=uc(e),this._milliseconds=+p+f*1e3+h*6e4+c*1e3*60*60,this._days=+o+s*7,this._months=+n+i*3+a*12,this._data={},this._locale=Ee(),this._bubble()}function Rt(t){return t instanceof At}function fa(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function _c(t,e,a){var i=Math.min(t.length,e.length),n=Math.abs(t.length-e.length),s=0,o;for(o=0;o<i;o++)R(t[o])!==R(e[o])&&s++;return s+n}function fi(t,e){T(t,0,0,function(){var a=this.utcOffset(),i="+";return a<0&&(a=-a,i="-"),i+de(~~(a/60),2)+e+de(~~a%60,2)})}fi("Z",":"),fi("ZZ",""),M("Z",St),M("ZZ",St),L(["Z","ZZ"],function(t,e,a){a._useUTC=!0,a._tzm=_a(St,t)});var pc=/([\+\-]|\d\d)/gi;function _a(t,e){var a=(e||"").match(t),i,n,s;return a===null?null:(i=a[a.length-1]||[],n=(i+"").match(pc)||["-",0,0],s=+(n[1]*60)+R(n[2]),s===0?0:n[0]==="+"?s:-s)}function pa(t,e){var a,i;return e._isUTC?(a=e.clone(),i=(ae(t)||He(t)?t.valueOf():P(t).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+i),y.updateOffset(a,!1),a):P(t).local()}function ma(t){return-Math.round(t._d.getTimezoneOffset())}y.updateOffset=function(){};function mc(t,e,a){var i=this._offset||0,n;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=_a(St,t),t===null)return this}else Math.abs(t)<16&&!a&&(t=t*60);return!this._isUTC&&e&&(n=ma(this)),this._offset=t,this._isUTC=!0,n!=null&&this.add(n,"m"),i!==t&&(!e||this._changeInProgress?Ei(this,ne(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:ma(this)}function Ec(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function gc(t){return this.utcOffset(0,t)}function Sc(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ma(this),"m")),this}function yc(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=_a(Yd,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Mc(t){return this.isValid()?(t=t?P(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Tc(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wc(){if(!z(this._isDSTShifted))return this._isDSTShifted;var t={},e;return $t(t,this),t=ci(t),t._a?(e=t._isUTC?re(t._a):P(t._a),this._isDSTShifted=this.isValid()&&_c(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function bc(){return this.isValid()?!this._isUTC:!1}function Ac(){return this.isValid()?this._isUTC:!1}function _i(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Rc=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dc=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ne(t,e){var a=t,i=null,n,s,o;return Rt(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:he(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(i=Rc.exec(t))?(n=i[1]==="-"?-1:1,a={y:0,d:R(i[le])*n,h:R(i[j])*n,m:R(i[ie])*n,s:R(i[pe])*n,ms:R(fa(i[Re]*1e3))*n}):(i=Dc.exec(t))?(n=i[1]==="-"?-1:1,a={y:De(i[2],n),M:De(i[3],n),w:De(i[4],n),d:De(i[5],n),h:De(i[6],n),m:De(i[7],n),s:De(i[8],n)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(o=Nc(P(a.from),P(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),s=new At(a),Rt(t)&&k(t,"_locale")&&(s._locale=t._locale),Rt(t)&&k(t,"_isValid")&&(s._isValid=t._isValid),s}ne.fn=At.prototype,ne.invalid=fc;function De(t,e){var a=t&&parseFloat(t.replace(",","."));return(isNaN(a)?0:a)*e}function pi(t,e){var a={};return a.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(a.months,"M").isAfter(e)&&--a.months,a.milliseconds=+e-+t.clone().add(a.months,"M"),a}function Nc(t,e){var a;return t.isValid()&&e.isValid()?(e=pa(e,t),t.isBefore(e)?a=pi(t,e):(a=pi(e,t),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function mi(t,e){return function(a,i){var n,s;return i!==null&&!isNaN(+i)&&(Fa(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=a,a=i,i=s),n=ne(a,i),Ei(this,n,t),this}}function Ei(t,e,a,i){var n=e._milliseconds,s=fa(e._days),o=fa(e._months);t.isValid()&&(i=i??!0,o&&Xa(t,ze(t,"Month")+o*a),s&&Ka(t,"Date",ze(t,"Date")+s*a),n&&t._d.setTime(t._d.valueOf()+n*a),i&&y.updateOffset(t,s||o))}var Ic=mi(1,"add"),kc=mi(-1,"subtract");function gi(t){return typeof t=="string"||t instanceof String}function Cc(t){return ae(t)||He(t)||gi(t)||he(t)||Oc(t)||vc(t)||t===null||t===void 0}function vc(t){var e=Ae(t)&&!Ht(t),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,s,o=i.length;for(n=0;n<o;n+=1)s=i[n],a=a||k(t,s);return e&&a}function Oc(t){var e=te(t),a=!1;return e&&(a=t.filter(function(i){return!he(i)&&gi(t)}).length===0),e&&a}function xc(t){var e=Ae(t)&&!Ht(t),a=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,s;for(n=0;n<i.length;n+=1)s=i[n],a=a||k(t,s);return e&&a}function Lc(t,e){var a=t.diff(e,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function Vc(t,e){arguments.length===1&&(arguments[0]?Cc(arguments[0])?(t=arguments[0],e=void 0):xc(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var a=t||P(),i=pa(a,this).startOf("day"),n=y.calendarFormat(this,i)||"sameElse",s=e&&(oe(e[n])?e[n].call(this,a):e[n]);return this.format(s||this.localeData().calendar(n,this,P(a)))}function Uc(){return new je(this)}function Pc(t,e){var a=ae(t)?t:P(t);return this.isValid()&&a.isValid()?(e=X(e)||"millisecond",e==="millisecond"?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(e).valueOf()):!1}function Yc(t,e){var a=ae(t)?t:P(t);return this.isValid()&&a.isValid()?(e=X(e)||"millisecond",e==="millisecond"?this.valueOf()<a.valueOf():this.clone().endOf(e).valueOf()<a.valueOf()):!1}function Wc(t,e,a,i){var n=ae(t)?t:P(t),s=ae(e)?e:P(e);return this.isValid()&&n.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(n,a):!this.isBefore(n,a))&&(i[1]===")"?this.isBefore(s,a):!this.isAfter(s,a))):!1}function Qc(t,e){var a=ae(t)?t:P(t),i;return this.isValid()&&a.isValid()?(e=X(e)||"millisecond",e==="millisecond"?this.valueOf()===a.valueOf():(i=a.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf())):!1}function Fc(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Hc(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function jc(t,e,a){var i,n,s;if(!this.isValid())return NaN;if(i=pa(t,this),!i.isValid())return NaN;switch(n=(i.utcOffset()-this.utcOffset())*6e4,e=X(e),e){case"year":s=Dt(this,i)/12;break;case"month":s=Dt(this,i);break;case"quarter":s=Dt(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-n)/864e5;break;case"week":s=(this-i-n)/6048e5;break;default:s=this-i}return a?s:ee(s)}function Dt(t,e){if(t.date()<e.date())return-Dt(e,t);var a=(e.year()-t.year())*12+(e.month()-t.month()),i=t.clone().add(a,"months"),n,s;return e-i<0?(n=t.clone().add(a-1,"months"),s=(e-i)/(i-n)):(n=t.clone().add(a+1,"months"),s=(e-i)/(n-i)),-(a+s)||0}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Bc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Gc(t){if(!this.isValid())return null;var e=t!==!0,a=e?this.clone().utc():this;return a.year()<0||a.year()>9999?_t(a,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):oe(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",_t(a,"Z")):_t(a,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $c(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",a,i,n,s;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),a="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=e+'[")]',this.format(a+i+n+s)}function zc(t){t||(t=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var e=_t(this,t);return this.localeData().postformat(e)}function qc(t,e){return this.isValid()&&(ae(t)&&t.isValid()||P(t).isValid())?ne({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Kc(t){return this.from(P(),t)}function Jc(t,e){return this.isValid()&&(ae(t)&&t.isValid()||P(t).isValid())?ne({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Zc(t){return this.to(P(),t)}function Si(t){var e;return t===void 0?this._locale._abbr:(e=Ee(t),e!=null&&(this._locale=e),this)}var yi=Z("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function Mi(){return this._locale}var Nt=1e3,Le=60*Nt,It=60*Le,Ti=(365*400+97)*24*It;function Ve(t,e){return(t%e+e)%e}function wi(t,e,a){return t<100&&t>=0?new Date(t+400,e,a)-Ti:new Date(t,e,a).valueOf()}function bi(t,e,a){return t<100&&t>=0?Date.UTC(t+400,e,a)-Ti:Date.UTC(t,e,a)}function Xc(t){var e,a;if(t=X(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?bi:wi,t){case"year":e=a(this.year(),0,1);break;case"quarter":e=a(this.year(),this.month()-this.month()%3,1);break;case"month":e=a(this.year(),this.month(),1);break;case"week":e=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=a(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ve(e+(this._isUTC?0:this.utcOffset()*Le),It);break;case"minute":e=this._d.valueOf(),e-=Ve(e,Le);break;case"second":e=this._d.valueOf(),e-=Ve(e,Nt);break}return this._d.setTime(e),y.updateOffset(this,!0),this}function eu(t){var e,a;if(t=X(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?bi:wi,t){case"year":e=a(this.year()+1,0,1)-1;break;case"quarter":e=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=a(this.year(),this.month()+1,1)-1;break;case"week":e=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=It-Ve(e+(this._isUTC?0:this.utcOffset()*Le),It)-1;break;case"minute":e=this._d.valueOf(),e+=Le-Ve(e,Le)-1;break;case"second":e=this._d.valueOf(),e+=Nt-Ve(e,Nt)-1;break}return this._d.setTime(e),y.updateOffset(this,!0),this}function tu(){return this._d.valueOf()-(this._offset||0)*6e4}function au(){return Math.floor(this.valueOf()/1e3)}function iu(){return new Date(this.valueOf())}function nu(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function su(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function ru(){return this.isValid()?this.toISOString():null}function ou(){return Bt(this)}function du(){return Me({},A(this))}function lu(){return A(this).overflow}function cu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}T("N",0,0,"eraAbbr"),T("NN",0,0,"eraAbbr"),T("NNN",0,0,"eraAbbr"),T("NNNN",0,0,"eraName"),T("NNNNN",0,0,"eraNarrow"),T("y",["y",1],"yo","eraYear"),T("y",["yy",2],0,"eraYear"),T("y",["yyy",3],0,"eraYear"),T("y",["yyyy",4],0,"eraYear"),M("N",Ea),M("NN",Ea),M("NNN",Ea),M("NNNN",Mu),M("NNNNN",Tu),L(["N","NN","NNN","NNNN","NNNNN"],function(t,e,a,i){var n=a._locale.erasParse(t,i,a._strict);n?A(a).era=n:A(a).invalidEra=t}),M("y",Ce),M("yy",Ce),M("yyy",Ce),M("yyyy",Ce),M("yo",wu),L(["y","yy","yyy","yyyy"],B),L(["yo"],function(t,e,a,i){var n;a._locale._eraYearOrdinalRegex&&(n=t.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?e[B]=a._locale.eraYearOrdinalParse(t,n):e[B]=parseInt(t,10)});function uu(t,e){var a,i,n,s=this._eras||Ee("en")._eras;for(a=0,i=s.length;a<i;++a)switch(typeof s[a].since==="string"&&(n=y(s[a].since).startOf("day"),s[a].since=n.valueOf()),typeof s[a].until){case"undefined":s[a].until=1/0;break;case"string":n=y(s[a].until).startOf("day").valueOf(),s[a].until=n.valueOf();break}return s}function hu(t,e,a){var i,n,s=this.eras(),o,c,h;for(t=t.toUpperCase(),i=0,n=s.length;i<n;++i)if(o=s[i].name.toUpperCase(),c=s[i].abbr.toUpperCase(),h=s[i].narrow.toUpperCase(),a)switch(e){case"N":case"NN":case"NNN":if(c===t)return s[i];break;case"NNNN":if(o===t)return s[i];break;case"NNNNN":if(h===t)return s[i];break}else if([o,c,h].indexOf(t)>=0)return s[i]}function fu(t,e){var a=t.since<=t.until?1:-1;return e===void 0?y(t.since).year():y(t.since).year()+(e-t.offset)*a}function _u(){var t,e,a,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(a=this.clone().startOf("day").valueOf(),i[t].since<=a&&a<=i[t].until||i[t].until<=a&&a<=i[t].since)return i[t].name;return""}function pu(){var t,e,a,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(a=this.clone().startOf("day").valueOf(),i[t].since<=a&&a<=i[t].until||i[t].until<=a&&a<=i[t].since)return i[t].narrow;return""}function mu(){var t,e,a,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(a=this.clone().startOf("day").valueOf(),i[t].since<=a&&a<=i[t].until||i[t].until<=a&&a<=i[t].since)return i[t].abbr;return""}function Eu(){var t,e,a,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(a=n[t].since<=n[t].until?1:-1,i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until||n[t].until<=i&&i<=n[t].since)return(this.year()-y(n[t].since).year())*a+n[t].offset;return this.year()}function gu(t){return k(this,"_erasNameRegex")||ga.call(this),t?this._erasNameRegex:this._erasRegex}function Su(t){return k(this,"_erasAbbrRegex")||ga.call(this),t?this._erasAbbrRegex:this._erasRegex}function yu(t){return k(this,"_erasNarrowRegex")||ga.call(this),t?this._erasNarrowRegex:this._erasRegex}function Ea(t,e){return e.erasAbbrRegex(t)}function Mu(t,e){return e.erasNameRegex(t)}function Tu(t,e){return e.erasNarrowRegex(t)}function wu(t,e){return e._eraYearOrdinalRegex||Ce}function ga(){var t=[],e=[],a=[],i=[],n,s,o,c,h,f=this.eras();for(n=0,s=f.length;n<s;++n)o=fe(f[n].name),c=fe(f[n].abbr),h=fe(f[n].narrow),e.push(o),t.push(c),a.push(h),i.push(o),i.push(c),i.push(h);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}T(0,["gg",2],0,function(){return this.weekYear()%100}),T(0,["GG",2],0,function(){return this.isoWeekYear()%100});function kt(t,e){T(0,[t,t.length],0,e)}kt("gggg","weekYear"),kt("ggggg","weekYear"),kt("GGGG","isoWeekYear"),kt("GGGGG","isoWeekYear"),M("G",gt),M("g",gt),M("GG",U,q),M("gg",U,q),M("GGGG",ta,ea),M("gggg",ta,ea),M("GGGGG",Et,pt),M("ggggg",Et,pt),Ge(["gggg","ggggg","GGGG","GGGGG"],function(t,e,a,i){e[i.substr(0,2)]=R(t)}),Ge(["gg","GG"],function(t,e,a,i){e[i]=y.parseTwoDigitYear(t)});function bu(t){return Ai.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Au(t){return Ai.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Ru(){return me(this.year(),1,4)}function Du(){return me(this.isoWeekYear(),1,4)}function Nu(){var t=this.localeData()._week;return me(this.year(),t.dow,t.doy)}function Iu(){var t=this.localeData()._week;return me(this.weekYear(),t.dow,t.doy)}function Ai(t,e,a,i,n){var s;return t==null?Ke(this,i,n).year:(s=me(t,i,n),e>s&&(e=s),ku.call(this,t,e,a,i,n))}function ku(t,e,a,i,n){var s=ai(t,e,a,i,n),o=qe(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}T("Q",0,"Qo","quarter"),M("Q",Ba),L("Q",function(t,e){e[_e]=(R(t)-1)*3});function Cu(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}T("D",["DD",2],"Do","date"),M("D",U,ve),M("DD",U,q),M("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),L(["D","DD"],le),L("Do",function(t,e){e[le]=R(t.match(U)[0])});var Ri=Oe("Date",!0);T("DDD",["DDDD",3],"DDDo","dayOfYear"),M("DDD",mt),M("DDDD",Ga),L(["DDD","DDDD"],function(t,e,a){a._dayOfYear=R(t)});function vu(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}T("m",["mm",2],0,"minute"),M("m",U,aa),M("mm",U,q),L(["m","mm"],ie);var Ou=Oe("Minutes",!1);T("s",["ss",2],0,"second"),M("s",U,aa),M("ss",U,q),L(["s","ss"],pe);var xu=Oe("Seconds",!1);T("S",0,0,function(){return~~(this.millisecond()/100)}),T(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),T(0,["SSS",3],0,"millisecond"),T(0,["SSSS",4],0,function(){return this.millisecond()*10}),T(0,["SSSSS",5],0,function(){return this.millisecond()*100}),T(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),T(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),T(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),T(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),M("S",mt,Ba),M("SS",mt,q),M("SSS",mt,Ga);var we,Di;for(we="SSSS";we.length<=9;we+="S")M(we,Ce);function Lu(t,e){e[Re]=R(("0."+t)*1e3)}for(we="S";we.length<=9;we+="S")L(we,Lu);Di=Oe("Milliseconds",!1),T("z",0,0,"zoneAbbr"),T("zz",0,0,"zoneName");function Vu(){return this._isUTC?"UTC":""}function Uu(){return this._isUTC?"Coordinated Universal Time":""}var m=je.prototype;m.add=Ic,m.calendar=Vc,m.clone=Uc,m.diff=jc,m.endOf=eu,m.format=zc,m.from=qc,m.fromNow=Kc,m.to=Jc,m.toNow=Zc,m.get=$d,m.invalidAt=lu,m.isAfter=Pc,m.isBefore=Yc,m.isBetween=Wc,m.isSame=Qc,m.isSameOrAfter=Fc,m.isSameOrBefore=Hc,m.isValid=ou,m.lang=yi,m.locale=Si,m.localeData=Mi,m.max=oc,m.min=rc,m.parsingFlags=du,m.set=zd,m.startOf=Xc,m.subtract=kc,m.toArray=nu,m.toObject=su,m.toDate=iu,m.toISOString=Gc,m.inspect=$c,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=ru,m.toString=Bc,m.unix=au,m.valueOf=tu,m.creationData=cu,m.eraName=_u,m.eraNarrow=pu,m.eraAbbr=mu,m.eraYear=Eu,m.year=qa,m.isLeapYear=Gd,m.weekYear=bu,m.isoWeekYear=Au,m.quarter=m.quarters=Cu,m.month=ei,m.daysInMonth=il,m.week=m.weeks=ul,m.isoWeek=m.isoWeeks=hl,m.weeksInYear=Nu,m.weeksInWeekYear=Iu,m.isoWeeksInYear=Ru,m.isoWeeksInISOWeekYear=Du,m.date=Ri,m.day=m.days=Al,m.weekday=Rl,m.isoWeekday=Dl,m.dayOfYear=vu,m.hour=m.hours=xl,m.minute=m.minutes=Ou,m.second=m.seconds=xu,m.millisecond=m.milliseconds=Di,m.utcOffset=mc,m.utc=gc,m.local=Sc,m.parseZone=yc,m.hasAlignedHourOffset=Mc,m.isDST=Tc,m.isLocal=bc,m.isUtcOffset=Ac,m.isUtc=_i,m.isUTC=_i,m.zoneAbbr=Vu,m.zoneName=Uu,m.dates=Z("dates accessor is deprecated. Use date instead.",Ri),m.months=Z("months accessor is deprecated. Use month instead",ei),m.years=Z("years accessor is deprecated. Use year instead",qa),m.zone=Z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ec),m.isDSTShifted=Z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wc);function Pu(t){return P(t*1e3)}function Yu(){return P.apply(null,arguments).parseZone()}function Ni(t){return t}var C=qt.prototype;C.calendar=bd,C.longDateFormat=Nd,C.invalidDate=kd,C.ordinal=Od,C.preparse=Ni,C.postformat=Ni,C.relativeTime=Ld,C.pastFuture=Vd,C.set=Td,C.eras=uu,C.erasParse=hu,C.erasConvertYear=fu,C.erasAbbrRegex=Su,C.erasNameRegex=gu,C.erasNarrowRegex=yu,C.months=Xd,C.monthsShort=el,C.monthsParse=al,C.monthsRegex=sl,C.monthsShortRegex=nl,C.week=ol,C.firstDayOfYear=cl,C.firstDayOfWeek=ll,C.weekdays=yl,C.weekdaysMin=Tl,C.weekdaysShort=Ml,C.weekdaysParse=bl,C.weekdaysRegex=Nl,C.weekdaysShortRegex=Il,C.weekdaysMinRegex=kl,C.isPM=vl,C.meridiem=Ll;function Ct(t,e,a,i){var n=Ee(),s=re().set(i,e);return n[a](s,t)}function Ii(t,e,a){if(he(t)&&(e=t,t=void 0),t=t||"",e!=null)return Ct(t,e,a,"month");var i,n=[];for(i=0;i<12;i++)n[i]=Ct(t,i,a,"month");return n}function Sa(t,e,a,i){typeof t=="boolean"?(he(e)&&(a=e,e=void 0),e=e||""):(e=t,a=e,t=!1,he(e)&&(a=e,e=void 0),e=e||"");var n=Ee(),s=t?n._week.dow:0,o,c=[];if(a!=null)return Ct(e,(a+s)%7,i,"day");for(o=0;o<7;o++)c[o]=Ct(e,(o+s)%7,i,"day");return c}function Wu(t,e){return Ii(t,e,"months")}function Qu(t,e){return Ii(t,e,"monthsShort")}function Fu(t,e,a){return Sa(t,e,a,"weekdays")}function Hu(t,e,a){return Sa(t,e,a,"weekdaysShort")}function ju(t,e,a){return Sa(t,e,a,"weekdaysMin")}Te("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(t){var e=t%10,a=R(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+a}}),y.lang=Z("moment.lang is deprecated. Use moment.locale instead.",Te),y.langData=Z("moment.langData is deprecated. Use moment.localeData instead.",Ee);var ge=Math.abs;function Bu(){var t=this._data;return this._milliseconds=ge(this._milliseconds),this._days=ge(this._days),this._months=ge(this._months),t.milliseconds=ge(t.milliseconds),t.seconds=ge(t.seconds),t.minutes=ge(t.minutes),t.hours=ge(t.hours),t.months=ge(t.months),t.years=ge(t.years),this}function ki(t,e,a,i){var n=ne(e,a);return t._milliseconds+=i*n._milliseconds,t._days+=i*n._days,t._months+=i*n._months,t._bubble()}function Gu(t,e){return ki(this,t,e,1)}function $u(t,e){return ki(this,t,e,-1)}function Ci(t){return t<0?Math.floor(t):Math.ceil(t)}function zu(){var t=this._milliseconds,e=this._days,a=this._months,i=this._data,n,s,o,c,h;return t>=0&&e>=0&&a>=0||t<=0&&e<=0&&a<=0||(t+=Ci(ya(a)+e)*864e5,e=0,a=0),i.milliseconds=t%1e3,n=ee(t/1e3),i.seconds=n%60,s=ee(n/60),i.minutes=s%60,o=ee(s/60),i.hours=o%24,e+=ee(o/24),h=ee(vi(e)),a+=h,e-=Ci(ya(h)),c=ee(a/12),a%=12,i.days=e,i.months=a,i.years=c,this}function vi(t){return t*4800/146097}function ya(t){return t*146097/4800}function qu(t){if(!this.isValid())return NaN;var e,a,i=this._milliseconds;if(t=X(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+i/864e5,a=this._months+vi(e),t){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(e=this._days+Math.round(ya(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return e*24+i/36e5;case"minute":return e*1440+i/6e4;case"second":return e*86400+i/1e3;case"millisecond":return Math.floor(e*864e5)+i;default:throw new Error("Unknown unit "+t)}}function Se(t){return function(){return this.as(t)}}var Oi=Se("ms"),Ku=Se("s"),Ju=Se("m"),Zu=Se("h"),Xu=Se("d"),eh=Se("w"),th=Se("M"),ah=Se("Q"),ih=Se("y"),nh=Oi;function sh(){return ne(this)}function rh(t){return t=X(t),this.isValid()?this[t+"s"]():NaN}function Ne(t){return function(){return this.isValid()?this._data[t]:NaN}}var oh=Ne("milliseconds"),dh=Ne("seconds"),lh=Ne("minutes"),ch=Ne("hours"),uh=Ne("days"),hh=Ne("months"),fh=Ne("years");function _h(){return ee(this.days()/7)}var ye=Math.round,Ue={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ph(t,e,a,i,n){return n.relativeTime(e||1,!!a,t,i)}function mh(t,e,a,i){var n=ne(t).abs(),s=ye(n.as("s")),o=ye(n.as("m")),c=ye(n.as("h")),h=ye(n.as("d")),f=ye(n.as("M")),p=ye(n.as("w")),g=ye(n.as("y")),_=s<=a.ss&&["s",s]||s<a.s&&["ss",s]||o<=1&&["m"]||o<a.m&&["mm",o]||c<=1&&["h"]||c<a.h&&["hh",c]||h<=1&&["d"]||h<a.d&&["dd",h];return a.w!=null&&(_=_||p<=1&&["w"]||p<a.w&&["ww",p]),_=_||f<=1&&["M"]||f<a.M&&["MM",f]||g<=1&&["y"]||["yy",g],_[2]=e,_[3]=+t>0,_[4]=i,ph.apply(null,_)}function Eh(t){return t===void 0?ye:typeof t=="function"?(ye=t,!0):!1}function gh(t,e){return Ue[t]===void 0?!1:e===void 0?Ue[t]:(Ue[t]=e,t==="s"&&(Ue.ss=e-1),!0)}function Sh(t,e){if(!this.isValid())return this.localeData().invalidDate();var a=!1,i=Ue,n,s;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(a=t),typeof e=="object"&&(i=Object.assign({},Ue,e),e.s!=null&&e.ss==null&&(i.ss=e.s-1)),n=this.localeData(),s=mh(this,!a,i,n),a&&(s=n.pastFuture(+this,s)),n.postformat(s)}var Ma=Math.abs;function Pe(t){return(t>0)-(t<0)||+t}function vt(){if(!this.isValid())return this.localeData().invalidDate();var t=Ma(this._milliseconds)/1e3,e=Ma(this._days),a=Ma(this._months),i,n,s,o,c=this.asSeconds(),h,f,p,g;return c?(i=ee(t/60),n=ee(i/60),t%=60,i%=60,s=ee(a/12),a%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",h=c<0?"-":"",f=Pe(this._months)!==Pe(c)?"-":"",p=Pe(this._days)!==Pe(c)?"-":"",g=Pe(this._milliseconds)!==Pe(c)?"-":"",h+"P"+(s?f+s+"Y":"")+(a?f+a+"M":"")+(e?p+e+"D":"")+(n||i||t?"T":"")+(n?g+n+"H":"")+(i?g+i+"M":"")+(t?g+o+"S":"")):"P0D"}var D=At.prototype;D.isValid=hc,D.abs=Bu,D.add=Gu,D.subtract=$u,D.as=qu,D.asMilliseconds=Oi,D.asSeconds=Ku,D.asMinutes=Ju,D.asHours=Zu,D.asDays=Xu,D.asWeeks=eh,D.asMonths=th,D.asQuarters=ah,D.asYears=ih,D.valueOf=nh,D._bubble=zu,D.clone=sh,D.get=rh,D.milliseconds=oh,D.seconds=dh,D.minutes=lh,D.hours=ch,D.days=uh,D.weeks=_h,D.months=hh,D.years=fh,D.humanize=Sh,D.toISOString=vt,D.toString=vt,D.toJSON=vt,D.locale=Si,D.localeData=Mi,D.toIsoString=Z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vt),D.lang=yi,T("X",0,0,"unix"),T("x",0,0,"valueOf"),M("x",gt),M("X",Wd),L("X",function(t,e,a){a._d=new Date(parseFloat(t)*1e3)}),L("x",function(t,e,a){a._d=new Date(R(t))});y.version="2.30.1",yd(P),y.fn=m,y.min=dc,y.max=lc,y.now=cc,y.utc=re,y.unix=Pu,y.months=Wu,y.isDate=He,y.locale=Te,y.invalid=ht,y.duration=ne,y.isMoment=ae,y.weekdays=Fu,y.parseZone=Yu,y.localeData=Ee,y.isDuration=Rt,y.monthsShort=Qu,y.weekdaysMin=ju,y.defineLocale=da,y.updateLocale=Yl,y.locales=Wl,y.weekdaysShort=Hu,y.normalizeUnits=X,y.relativeTimeRounding=Eh,y.relativeTimeThreshold=gh,y.calendarFormat=Lc,y.prototype=m,y.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 yh=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Mh=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,xi=/(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,Ta=[/^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],Th={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:xi,monthsShortRegex:xi,monthsStrictRegex:yh,monthsShortStrictRegex:Mh,monthsParse:Ta,longMonthsParse:Ta,shortMonthsParse:Ta,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:((t,e)=>{switch(e){case"D":return t+(t===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(t===1?"er":"e");case"w":case"W":return t+(t===1?"re":"e")}}),week:{dow:1,doy:4}};y.locale("fr",Th),be.TOP_LEFT;const b=t=>typeof t=="string",et=()=>{let t,e;const a=new Promise((i,n)=>{t=i,e=n});return a.resolve=t,a.reject=e,a},Li=t=>t==null?"":""+t,wh=(t,e,a)=>{t.forEach(i=>{e[i]&&(a[i]=e[i])})},bh=/###/g,Vi=t=>t&&t.indexOf("###")>-1?t.replace(bh,"."):t,Ui=t=>!t||b(t),tt=(t,e,a)=>{const i=b(e)?e.split("."):e;let n=0;for(;n<i.length-1;){if(Ui(t))return{};const s=Vi(i[n]);!t[s]&&a&&(t[s]=new a),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++n}return Ui(t)?{}:{obj:t,k:Vi(i[n])}},Pi=(t,e,a)=>{const{obj:i,k:n}=tt(t,e,Object);if(i!==void 0||e.length===1){i[n]=a;return}let s=e[e.length-1],o=e.slice(0,e.length-1),c=tt(t,o,Object);for(;c.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),c=tt(t,o,Object),c&&c.obj&&typeof c.obj[`${c.k}.${s}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${s}`]=a},Ah=(t,e,a,i)=>{const{obj:n,k:s}=tt(t,e,Object);n[s]=n[s]||[],n[s].push(a)},Ot=(t,e)=>{const{obj:a,k:i}=tt(t,e);if(a)return a[i]},Rh=(t,e,a)=>{const i=Ot(t,a);return i!==void 0?i:Ot(e,a)},Yi=(t,e,a)=>{for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?b(t[i])||t[i]instanceof String||b(e[i])||e[i]instanceof String?a&&(t[i]=e[i]):Yi(t[i],e[i],a):t[i]=e[i]);return t},Ye=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Dh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Nh=t=>b(t)?t.replace(/[&<>"'\/]/g,e=>Dh[e]):t;class Ih{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const a=this.regExpMap.get(e);if(a!==void 0)return a;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const kh=[" ",",","?","!",";"],Ch=new Ih(20),vh=(t,e,a)=>{e=e||"",a=a||"";const i=kh.filter(o=>e.indexOf(o)<0&&a.indexOf(o)<0);if(i.length===0)return!0;const n=Ch.getRegExp(`(${i.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!n.test(t);if(!s){const o=t.indexOf(a);o>0&&!n.test(t.substring(0,o))&&(s=!0)}return s},wa=function(t,e){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const i=e.split(a);let n=t;for(let s=0;s<i.length;){if(!n||typeof n!="object")return;let o,c="";for(let h=s;h<i.length;++h)if(h!==s&&(c+=a),c+=i[h],o=n[c],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&h<i.length-1)continue;s+=h-s+1;break}n=o}return n},xt=t=>t&&t.replace("_","-"),Oh={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class Lt{constructor(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,a)}init(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=e||Oh,this.options=a,this.debug=a.debug}log(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return this.forward(a,"log","",!0)}warn(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return this.forward(a,"warn","",!0)}error(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return this.forward(a,"error","")}deprecate(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(e,a,i,n){return n&&!this.debug?null:(b(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[a](e))}create(e){return new Lt(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Lt(this.logger,e)}}var ce=new Lt;class Vt{constructor(){this.observers={}}on(e,a){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const n=this.observers[i].get(a)||0;this.observers[i].set(a,n+1)}),this}off(e,a){if(this.observers[e]){if(!a){delete this.observers[e];return}this.observers[e].delete(a)}}emit(e){for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n<a;n++)i[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(o=>{let[c,h]=o;for(let f=0;f<h;f++)c(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[c,h]=o;for(let f=0;f<h;f++)c.apply(c,[e,...i])})}}class Wi extends Vt{constructor(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const a=this.options.ns.indexOf(e);a>-1&&this.options.ns.splice(a,1)}getResource(e,a,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;e.indexOf(".")>-1?c=e.split("."):(c=[e,a],i&&(Array.isArray(i)?c.push(...i):b(i)&&s?c.push(...i.split(s)):c.push(i)));const h=Ot(this.data,c);return!h&&!a&&!i&&e.indexOf(".")>-1&&(e=c[0],a=c[1],i=c.slice(2).join(".")),h||!o||!b(i)?h:wa(this.data&&this.data[e]&&this.data[e][a],i,s)}addResource(e,a,i,n){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let c=[e,a];i&&(c=c.concat(o?i.split(o):i)),e.indexOf(".")>-1&&(c=e.split("."),n=a,a=c[1]),this.addNamespaces(a),Pi(this.data,c,n),s.silent||this.emit("added",e,a,i,n)}addResources(e,a,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in i)(b(i[s])||Array.isArray(i[s]))&&this.addResource(e,a,s,i[s],{silent:!0});n.silent||this.emit("added",e,a,i)}addResourceBundle(e,a,i,n,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[e,a];e.indexOf(".")>-1&&(c=e.split("."),n=i,i=a,a=c[1]),this.addNamespaces(a);let h=Ot(this.data,c)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),n?Yi(h,i,s):h={...h,...i},Pi(this.data,c,h),o.silent||this.emit("added",e,a,i)}removeResourceBundle(e,a){this.hasResourceBundle(e,a)&&delete this.data[e][a],this.removeNamespaces(a),this.emit("removed",e,a)}hasResourceBundle(e,a){return this.getResource(e,a)!==void 0}getResourceBundle(e,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,a)}:this.getResource(e,a)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const a=this.getDataByLanguage(e);return!!(a&&Object.keys(a)||[]).find(n=>a[n]&&Object.keys(a[n]).length>0)}toJSON(){return this.data}}var Qi={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,a,i,n){return t.forEach(s=>{this.processors[s]&&(e=this.processors[s].process(e,a,i,n))}),e}};const Fi={};class Ut extends Vt{constructor(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),wh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ce.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const i=this.resolve(e,a);return i&&i.res!==void 0}extractFromKey(e,a){let i=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const n=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let s=a.ns||this.options.defaultNS||[];const o=i&&e.indexOf(i)>-1,c=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!vh(e,i,n);if(o&&!c){const h=e.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:e,namespaces:b(s)?[s]:s};const f=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),e=f.join(n)}return{key:e,namespaces:b(s)?[s]:s}}translate(e,a,i){if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const n=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:o,namespaces:c}=this.extractFromKey(e[e.length-1],a),h=c[c.length-1],f=a.lng||this.language,p=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){const H=a.nsSeparator||this.options.nsSeparator;return n?{res:`${h}${H}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:`${h}${H}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:o}const g=this.resolve(e,a);let _=g&&g.res;const w=g&&g.usedKey||o,N=g&&g.exactUsedKey||o,W=Object.prototype.toString.apply(_),x=["[object Number]","[object Function]","[object RegExp]"],v=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,rt=!b(_)&&typeof _!="boolean"&&typeof _!="number";if(I&&_&&rt&&x.indexOf(W)<0&&!(b(v)&&Array.isArray(_))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const H=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,_,{...a,ns:c}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(g.res=H,g.usedParams=this.getUsedParamsDetails(a),g):H}if(s){const H=Array.isArray(_),K=H?[]:{},se=H?N:w;for(const $ in _)if(Object.prototype.hasOwnProperty.call(_,$)){const Qt=`${se}${s}${$}`;K[$]=this.translate(Qt,{...a,joinArrays:!1,ns:c}),K[$]===Qt&&(K[$]=_[$])}_=K}}else if(I&&b(v)&&Array.isArray(_))_=_.join(v),_&&(_=this.extendTranslation(_,e,a,i));else{let H=!1,K=!1;const se=a.count!==void 0&&!b(a.count),$=Ut.hasDefaultValue(a),Qt=se?this.pluralResolver.getSuffix(f,a.count,a):"",Jf=a.ordinal&&se?this.pluralResolver.getSuffix(f,a.count,{ordinal:!1}):"",Ed=se&&!a.ordinal&&a.count===0&&this.pluralResolver.shouldUseIntlApi(),ot=Ed&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${Qt}`]||a[`defaultValue${Jf}`]||a.defaultValue;!this.isValidLookup(_)&&$&&(H=!0,_=ot),this.isValidLookup(_)||(K=!0,_=o);const Zf=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&K?void 0:_,dt=$&&ot!==_&&this.options.updateMissing;if(K||H||dt){if(this.logger.log(dt?"updateKey":"missingKey",f,h,o,dt?ot:_),s){const J=this.resolve(o,{...a,keySeparator:!1});J&&J.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 lt=[];const Ft=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ft&&Ft[0])for(let J=0;J<Ft.length;J++)lt.push(Ft[J]);else this.options.saveMissingTo==="all"?lt=this.languageUtils.toResolveHierarchy(a.lng||this.language):lt.push(a.lng||this.language);const gd=(J,Ie,ct)=>{const Sd=$&&ct!==_?ct:Zf;this.options.missingKeyHandler?this.options.missingKeyHandler(J,h,Ie,Sd,dt,a):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(J,h,Ie,Sd,dt,a),this.emit("missingKey",J,h,Ie,_)};this.options.saveMissing&&(this.options.saveMissingPlurals&&se?lt.forEach(J=>{const Ie=this.pluralResolver.getSuffixes(J,a);Ed&&a[`defaultValue${this.options.pluralSeparator}zero`]&&Ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ie.push(`${this.options.pluralSeparator}zero`),Ie.forEach(ct=>{gd([J],o+ct,a[`defaultValue${ct}`]||ot)})}):gd(lt,o,ot))}_=this.extendTranslation(_,e,a,g,i),K&&_===o&&this.options.appendNamespaceToMissingKey&&(_=`${h}:${o}`),(K||H)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?_=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}:${o}`:o,H?_:void 0):_=this.options.parseMissingKeyHandler(_))}return n?(g.res=_,g.usedParams=this.getUsedParamsDetails(a),g):_}extendTranslation(e,a,i,n,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const f=b(e)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(f){const _=e.match(this.interpolator.nestingRegexp);p=_&&_.length}let g=i.replace&&!b(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),e=this.interpolator.interpolate(e,g,i.lng||this.language||n.usedLng,i),f){const _=e.match(this.interpolator.nestingRegexp),w=_&&_.length;p<w&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&n&&n.res&&(i.lng=this.language||n.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var _=arguments.length,w=new Array(_),N=0;N<_;N++)w[N]=arguments[N];return s&&s[0]===w[0]&&!i.context?(o.logger.warn(`It seems you are nesting recursively key: ${w[0]} in key: ${a[0]}`),null):o.translate(...w,a)},i)),i.interpolation&&this.interpolator.reset()}const c=i.postProcess||this.options.postProcess,h=b(c)?[c]:c;return e!=null&&h&&h.length&&i.applyPostProcessor!==!1&&(e=Qi.handle(h,e,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,n,s,o,c;return b(e)&&(e=[e]),e.forEach(h=>{if(this.isValidLookup(i))return;const f=this.extractFromKey(h,a),p=f.key;n=p;let g=f.namespaces;this.options.fallbackNS&&(g=g.concat(this.options.fallbackNS));const _=a.count!==void 0&&!b(a.count),w=_&&!a.ordinal&&a.count===0&&this.pluralResolver.shouldUseIntlApi(),N=a.context!==void 0&&(b(a.context)||typeof a.context=="number")&&a.context!=="",W=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);g.forEach(x=>{this.isValidLookup(i)||(c=x,!Fi[`${W[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(c)&&(Fi[`${W[0]}-${x}`]=!0,this.logger.warn(`key "${n}" for languages "${W.join(", ")}" won't get resolved as namespace "${c}" 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!!!")),W.forEach(v=>{if(this.isValidLookup(i))return;o=v;const I=[p];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(I,p,v,x,a);else{let H;_&&(H=this.pluralResolver.getSuffix(v,a.count,a));const K=`${this.options.pluralSeparator}zero`,se=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(_&&(I.push(p+H),a.ordinal&&H.indexOf(se)===0&&I.push(p+H.replace(se,this.options.pluralSeparator)),w&&I.push(p+K)),N){const $=`${p}${this.options.contextSeparator}${a.context}`;I.push($),_&&(I.push($+H),a.ordinal&&H.indexOf(se)===0&&I.push($+H.replace(se,this.options.pluralSeparator)),w&&I.push($+K))}}let rt;for(;rt=I.pop();)this.isValidLookup(i)||(s=rt,i=this.getResource(v,x,rt,a))}))})}),{res:i,usedKey:n,exactUsedKey:s,usedLng:o,usedNS:c}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,a,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,a,i,n):this.resourceStore.getResource(e,a,i,n)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!b(e.replace);let n=i?e.replace:e;if(i&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!i){n={...n};for(const s of a)delete n[s]}return n}static hasDefaultValue(e){const a="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&a===i.substring(0,a.length)&&e[i]!==void 0)return!0;return!1}}const ba=t=>t.charAt(0).toUpperCase()+t.slice(1);class Hi{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ce.create("languageUtils")}getScriptPartFromCode(e){if(e=xt(e),!e||e.indexOf("-")<0)return null;const a=e.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(e){if(e=xt(e),!e||e.indexOf("-")<0)return e;const a=e.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(e){if(b(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let n=Intl.getCanonicalLocales(e)[0];if(n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n)return n}catch{}const a=["hans","hant","latn","cyrl","cans","mong","arab"];let i=e.split("-");return this.options.lowerCaseLng?i=i.map(n=>n.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),a.indexOf(i[1].toLowerCase())>-1&&(i[1]=ba(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),a.indexOf(i[1].toLowerCase())>-1&&(i[1]=ba(i[1].toLowerCase())),a.indexOf(i[2].toLowerCase())>-1&&(i[2]=ba(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let a;return e.forEach(i=>{if(a)return;const n=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(n))&&(a=n)}),!a&&this.options.supportedLngs&&e.forEach(i=>{if(a)return;const n=this.getLanguagePartFromCode(i);if(this.isSupportedCode(n))return a=n;a=this.options.supportedLngs.find(s=>{if(s===n)return s;if(!(s.indexOf("-")<0&&n.indexOf("-")<0)&&(s.indexOf("-")>0&&n.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===n||s.indexOf(n)===0&&n.length>1))return s})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(e,a){if(!e)return[];if(typeof e=="function"&&(e=e(a)),b(e)&&(e=[e]),Array.isArray(e))return e;if(!a)return e.default||[];let i=e[a];return i||(i=e[this.getScriptPartFromCode(a)]),i||(i=e[this.formatLanguageCode(a)]),i||(i=e[this.getLanguagePartFromCode(a)]),i||(i=e.default),i||[]}toResolveHierarchy(e,a){const i=this.getFallbackCodes(a||this.options.fallbackLng||[],e),n=[],s=o=>{o&&(this.isSupportedCode(o)?n.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return b(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):b(e)&&s(this.formatLanguageCode(e)),i.forEach(o=>{n.indexOf(o)<0&&s(this.formatLanguageCode(o))}),n}}let xh=[{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}],Lh={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const Vh=["v1","v2","v3"],Uh=["v4"],ji={zero:0,one:1,two:2,few:3,many:4,other:5},Ph=()=>{const t={};return xh.forEach(e=>{e.lngs.forEach(a=>{t[a]={numbers:e.nr,plurals:Lh[e.fc]}})}),t};class Yh{constructor(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=a,this.logger=ce.create("pluralResolver"),(!this.options.compatibilityJSON||Uh.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=Ph(),this.pluralRulesCache={}}addRule(e,a){this.rules[e]=a}clearCache(){this.pluralRulesCache={}}getRule(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const i=xt(e==="dev"?"en":e),n=a.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:i,type:n});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(i,{type:n})}catch{if(!e.match(/-|_/))return;const h=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(h,a)}return this.pluralRulesCache[s]=o,o}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,a);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(n=>`${a}${n}`)}getSuffixes(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,a);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((n,s)=>ji[n]-ji[s]).map(n=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${n}`):i.numbers.map(n=>this.getSuffix(e,n,a)):[]}getSuffix(e,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(e,i);return n?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${n.select(a)}`:this.getSuffixRetroCompatible(n,a):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,a){const i=e.noAbs?e.plurals(a):e.plurals(Math.abs(a));let n=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(n===2?n="plural":n===1&&(n=""));const s=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return this.options.compatibilityJSON==="v1"?n===1?"":typeof n=="number"?`_plural_${n.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Vh.includes(this.options.compatibilityJSON)}}const Bi=function(t,e,a){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=Rh(t,e,a);return!s&&n&&b(a)&&(s=wa(t,a,i),s===void 0&&(s=wa(e,a,i))),s},Aa=t=>t.replace(/\$/g,"$$$$");class Wh{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ce.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(a=>a),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:a,escapeValue:i,useRawValueToEscape:n,prefix:s,prefixEscaped:o,suffix:c,suffixEscaped:h,formatSeparator:f,unescapeSuffix:p,unescapePrefix:g,nestingPrefix:_,nestingPrefixEscaped:w,nestingSuffix:N,nestingSuffixEscaped:W,nestingOptionsSeparator:x,maxReplaces:v,alwaysFormat:I}=e.interpolation;this.escape=a!==void 0?a:Nh,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=s?Ye(s):o||"{{",this.suffix=c?Ye(c):h||"}}",this.formatSeparator=f||",",this.unescapePrefix=p?"":g||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=_?Ye(_):w||Ye("$t("),this.nestingSuffix=N?Ye(N):W||Ye(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=v||1e3,this.alwaysFormat=I!==void 0?I:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(a,i)=>a&&a.source===i?(a.lastIndex=0,a):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,a,i,n){let s,o,c;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=w=>{if(w.indexOf(this.formatSeparator)<0){const v=Bi(a,h,w,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,i,{...n,...a,interpolationkey:w}):v}const N=w.split(this.formatSeparator),W=N.shift().trim(),x=N.join(this.formatSeparator).trim();return this.format(Bi(a,h,W,this.options.keySeparator,this.options.ignoreJSONStructure),x,i,{...n,...a,interpolationkey:W})};this.resetRegExp();const p=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,g=n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:w=>Aa(w)},{regex:this.regexp,safeValue:w=>this.escapeValue?Aa(this.escape(w)):Aa(w)}].forEach(w=>{for(c=0;s=w.regex.exec(e);){const N=s[1].trim();if(o=f(N),o===void 0)if(typeof p=="function"){const x=p(e,s,n);o=b(x)?x:""}else if(n&&Object.prototype.hasOwnProperty.call(n,N))o="";else if(g){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${N} for interpolating ${e}`),o="";else!b(o)&&!this.useRawValueToEscape&&(o=Li(o));const W=w.safeValue(o);if(e=e.replace(s[0],W),g?(w.regex.lastIndex+=o.length,w.regex.lastIndex-=s[0].length):w.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,s,o;const c=(h,f)=>{const p=this.nestingOptionsSeparator;if(h.indexOf(p)<0)return h;const g=h.split(new RegExp(`${p}[ ]*{`));let _=`{${g[1]}`;h=g[0],_=this.interpolate(_,o);const w=_.match(/'/g),N=_.match(/"/g);(w&&w.length%2===0&&!N||N.length%2!==0)&&(_=_.replace(/'/g,'"'));try{o=JSON.parse(_),f&&(o={...f,...o})}catch(W){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,W),`${h}${p}${_}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,h};for(;n=this.nestingRegexp.exec(e);){let h=[];o={...i},o=o.replace&&!b(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let f=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const p=n[1].split(this.formatSeparator).map(g=>g.trim());n[1]=p.shift(),h=p,f=!0}if(s=a(c.call(this,n[1].trim(),o),o),s&&n[0]===e&&!b(s))return s;b(s)||(s=Li(s)),s||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),s=""),f&&(s=h.reduce((p,g)=>this.format(p,g,i.lng,{...i,interpolationkey:n[1].trim()}),s.trim())),e=e.replace(n[0],s),this.regexp.lastIndex=0}return e}}const Qh=t=>{let e=t.toLowerCase().trim();const a={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const n=i[1].substring(0,i[1].length-1);e==="currency"&&n.indexOf(":")<0?a.currency||(a.currency=n.trim()):e==="relativetime"&&n.indexOf(":")<0?a.range||(a.range=n.trim()):n.split(";").forEach(o=>{if(o){const[c,...h]=o.split(":"),f=h.join(":").trim().replace(/^'+|'+$/g,""),p=c.trim();a[p]||(a[p]=f),f==="false"&&(a[p]=!1),f==="true"&&(a[p]=!0),isNaN(f)||(a[p]=parseInt(f,10))}})}return{formatName:e,formatOptions:a}},We=t=>{const e={};return(a,i,n)=>{let s=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(s={...s,[n.interpolationkey]:void 0});const o=i+JSON.stringify(s);let c=e[o];return c||(c=t(xt(i),n),e[o]=c),c(a)}};class Fh{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ce.create("formatter"),this.options=e,this.formats={number:We((a,i)=>{const n=new Intl.NumberFormat(a,{...i});return s=>n.format(s)}),currency:We((a,i)=>{const n=new Intl.NumberFormat(a,{...i,style:"currency"});return s=>n.format(s)}),datetime:We((a,i)=>{const n=new Intl.DateTimeFormat(a,{...i});return s=>n.format(s)}),relativetime:We((a,i)=>{const n=new Intl.RelativeTimeFormat(a,{...i});return s=>n.format(s,i.range||"day")}),list:We((a,i)=>{const n=new Intl.ListFormat(a,{...i});return s=>n.format(s)})},this.init(e)}init(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=a.interpolation.formatSeparator||","}add(e,a){this.formats[e.toLowerCase().trim()]=a}addCached(e,a){this.formats[e.toLowerCase().trim()]=We(a)}format(e,a,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(c=>c.indexOf(")")>-1)){const c=s.findIndex(h=>h.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,c)].join(this.formatSeparator)}return s.reduce((c,h)=>{const{formatName:f,formatOptions:p}=Qh(h);if(this.formats[f]){let g=c;try{const _=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},w=_.locale||_.lng||n.locale||n.lng||i;g=this.formats[f](c,w,{...p,...n,..._})}catch(_){this.logger.warn(_)}return g}else this.logger.warn(`there was no format function for ${f}`);return c},e)}}const Hh=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class jh extends Vt{constructor(e,a,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=a,this.services=i,this.languageUtils=i.languageUtils,this.options=n,this.logger=ce.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,n.backend,n)}queueLoad(e,a,i,n){const s={},o={},c={},h={};return e.forEach(f=>{let p=!0;a.forEach(g=>{const _=`${f}|${g}`;!i.reload&&this.store.hasResourceBundle(f,g)?this.state[_]=2:this.state[_]<0||(this.state[_]===1?o[_]===void 0&&(o[_]=!0):(this.state[_]=1,p=!1,o[_]===void 0&&(o[_]=!0),s[_]===void 0&&(s[_]=!0),h[g]===void 0&&(h[g]=!0)))}),p||(c[f]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(h)}}loaded(e,a,i){const n=e.split("|"),s=n[0],o=n[1];a&&this.emit("failedLoading",s,o,a),!a&&i&&this.store.addResourceBundle(s,o,i,void 0,void 0,{skipCopy:!0}),this.state[e]=a?-1:2,a&&i&&(this.state[e]=0);const c={};this.queue.forEach(h=>{Ah(h.loaded,[s],o),Hh(h,e),a&&h.errors.push(a),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(f=>{c[f]||(c[f]={});const p=h.loaded[f];p.length&&p.forEach(g=>{c[f][g]===void 0&&(c[f][g]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(h=>!h.done)}read(e,a,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:a,fcName:i,tried:n,wait:s,callback:o});return}this.readingCalls++;const c=(f,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(f&&p&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,a,i,n+1,s*2,o)},s);return}o(f,p)},h=this.backend[i].bind(this.backend);if(h.length===2){try{const f=h(e,a);f&&typeof f.then=="function"?f.then(p=>c(null,p)).catch(c):c(null,f)}catch(f){c(f)}return}return h(e,a,c)}prepareLoading(e,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=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."),n&&n();b(e)&&(e=this.languageUtils.toResolveHierarchy(e)),b(a)&&(a=[a]);const s=this.queueLoad(e,a,i,n);if(!s.toLoad.length)return s.pending.length||n(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(e,a,i){this.prepareLoading(e,a,{},i)}reload(e,a,i){this.prepareLoading(e,a,{reload:!0},i)}loadOne(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e.split("|"),n=i[0],s=i[1];this.read(n,s,"read",void 0,void 0,(o,c)=>{o&&this.logger.warn(`${a}loading namespace ${s} for language ${n} failed`,o),!o&&c&&this.logger.log(`${a}loaded namespace ${s} for language ${n}`,c),this.loaded(e,o,c)})}saveMissing(e,a,i,n,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${i}" as the namespace "${a}" 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(!(i==null||i==="")){if(this.backend&&this.backend.create){const h={...o,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let p;f.length===5?p=f(e,a,i,n,h):p=f(e,a,i,n),p&&typeof p.then=="function"?p.then(g=>c(null,g)).catch(c):c(null,p)}catch(p){c(p)}else f(e,a,i,n,c,h)}!e||!e[0]||this.store.addResource(e[0],a,i,n)}}}const Gi=()=>({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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),b(t[1])&&(e.defaultValue=t[1]),b(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const a=t[3]||t[2];Object.keys(a).forEach(i=>{e[i]=a[i]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),$i=t=>(b(t.ns)&&(t.ns=[t.ns]),b(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),b(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),Pt=()=>{},Bh=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(a=>{typeof t[a]=="function"&&(t[a]=t[a].bind(t))})};class at extends Vt{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(super(),this.options=$i(e),this.services={},this.logger=ce,this.modules={external:[]},Bh(this),a&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,a),this;setTimeout(()=>{this.init(e,a)},0)}}init(){var e=this;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof a=="function"&&(i=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(b(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));const n=Gi();this.options={...n,...this.options,...$i(a)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);const s=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?ce.init(s(this.modules.logger),this.options):ce.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=Fh);const g=new Hi(this.options);this.store=new Wi(this.options.resources,this.options);const _=this.services;_.logger=ce,_.resourceStore=this.store,_.languageUtils=g,_.pluralResolver=new Yh(g,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(_.formatter=s(p),_.formatter.init(_,this.options),this.options.interpolation.format=_.formatter.format.bind(_.formatter)),_.interpolator=new Wh(this.options),_.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},_.backendConnector=new jh(s(this.modules.backend),_.resourceStore,_,this.options),_.backendConnector.on("*",function(w){for(var N=arguments.length,W=new Array(N>1?N-1:0),x=1;x<N;x++)W[x-1]=arguments[x];e.emit(w,...W)}),this.modules.languageDetector&&(_.languageDetector=s(this.modules.languageDetector),_.languageDetector.init&&_.languageDetector.init(_,this.options.detection,this.options)),this.modules.i18nFormat&&(_.i18nFormat=s(this.modules.i18nFormat),_.i18nFormat.init&&_.i18nFormat.init(this)),this.translator=new Ut(this.services,this.options),this.translator.on("*",function(w){for(var N=arguments.length,W=new Array(N>1?N-1:0),x=1;x<N;x++)W[x-1]=arguments[x];e.emit(w,...W)}),this.modules.external.forEach(w=>{w.init&&w.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Pt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=function(){return e.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return e.store[p](...arguments),e}});const h=et(),f=()=>{const p=(g,_)=>{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),h.resolve(_),i(g,_)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),h}loadResources(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pt;const n=b(e)?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const s=[],o=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};n?o(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>o(h)),this.options.preload&&this.options.preload.forEach(c=>o(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(c)})}else i(null)}reloadResources(e,a,i){const n=et();return typeof e=="function"&&(i=e,e=void 0),typeof a=="function"&&(i=a,a=void 0),e||(e=this.languages),a||(a=this.options.ns),i||(i=Pt),this.services.backendConnector.reload(e,a,s=>{n.resolve(),i(s)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Qi.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let a=0;a<this.languages.length;a++){const i=this.languages[a];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(e,a){var i=this;this.isLanguageChangingTo=e;const n=et();this.emit("languageChanging",e);const s=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},o=(h,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,n.resolve(function(){return i.t(...arguments)}),a&&a(h,function(){return i.t(...arguments)})},c=h=>{!e&&!h&&this.services.languageDetector&&(h=[]);const f=b(h)?h:this.services.languageUtils.getBestMatchFromCodes(h);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,p=>{o(p,f)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(e),n}getFixedT(e,a,i){var n=this;const s=function(o,c){let h;if(typeof c!="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),g=2;g<f;g++)p[g-2]=arguments[g];h=n.options.overloadTranslationOptionHandler([o,c].concat(p))}else h={...c};h.lng=h.lng||s.lng,h.lngs=h.lngs||s.lngs,h.ns=h.ns||s.ns,h.keyPrefix!==""&&(h.keyPrefix=h.keyPrefix||i||s.keyPrefix);const _=n.options.keySeparator||".";let w;return h.keyPrefix&&Array.isArray(o)?w=o.map(N=>`${h.keyPrefix}${_}${N}`):w=h.keyPrefix?`${h.keyPrefix}${_}${o}`:o,n.t(w,h)};return b(e)?s.lng=e:s.lngs=e,s.ns=a,s.keyPrefix=i,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let a=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 i=a.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const o=(c,h)=>{const f=this.services.backendConnector.state[`${c}|${h}`];return f===-1||f===0||f===2};if(a.precheck){const c=a.precheck(this,o);if(c!==void 0)return c}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,e)&&(!n||o(s,e)))}loadNamespaces(e,a){const i=et();return this.options.ns?(b(e)&&(e=[e]),e.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{i.resolve(),a&&a(n)}),i):(a&&a(),Promise.resolve())}loadLanguages(e,a){const i=et();b(e)&&(e=[e]);const n=this.options.preload||[],s=e.filter(o=>n.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=n.concat(s),this.loadResources(o=>{i.resolve(),a&&a(o)}),i):(a&&a(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Hi(Gi());return a.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new at(e,a)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pt;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},s=new at(n);return(e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(c=>{s[c]=this[c]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},i&&(s.store=new Wi(this.store.data,n),s.services.resourceStore=s.store),s.translator=new Ut(s.services,n),s.translator.on("*",function(c){for(var h=arguments.length,f=new Array(h>1?h-1:0),p=1;p<h;p++)f[p-1]=arguments[p];s.emit(c,...f)}),s.init(n,a),s.translator.options=n,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const G=at.createInstance();G.createInstance=at.createInstance,G.createInstance,G.dir,G.init,G.loadResources,G.reloadResources,G.use,G.changeLanguage,G.getFixedT;const Qe=G.t;G.exists,G.setDefaultNamespace,G.hasLoadedNamespace,G.loadNamespaces,G.loadLanguages;var E=(t=>(t.BASIC="BASIC",t.COMMON="COMMON",t.RARE="RARE",t.EPIC="EPIC",t.LEGENDARY="LEGENDARY",t.MYTHIC="MYTHIC",t))(E||{});E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC;const l={BASIC:{color:"#fff",strength:0,id:E.BASIC,name:(t,e=1)=>Qe(`ranks.${E.BASIC}.text`,{count:e,context:t,ns:"common"})},COMMON:{color:"#813D31",strength:1,id:E.COMMON,name:(t,e=1)=>Qe(`ranks.${E.COMMON}.text`,{count:e,context:t,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:E.RARE,name:(t,e=1)=>Qe(`ranks.${E.RARE}.text`,{count:e,context:t,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:E.EPIC,name:(t,e=1)=>Qe(`ranks.${E.EPIC}.text`,{count:e,context:t,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:E.LEGENDARY,name:(t,e=1)=>Qe(`ranks.${E.LEGENDARY}.text`,{count:e,context:t,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:E.MYTHIC,name:(t,e=1)=>Qe(`ranks.${E.MYTHIC}.text`,{count:e,context:t,ns:"common"})}},Ra="background_default",S={exploration:{id:"writeChat",img:"exploration",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:Explorateurbois:1175507909518573578>","<:Explorateurargent:1175508452467015680>","<:Explorateuror:1175507917642932245>","<:Explorateurplatine:1175507920587329586>","<:Explorateurultime:1175507922818699334>"],crew:!1},ecrire:{id:"sendMessage",img:"ecrire",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:Spammeurbois:1175508156785365003>","<:Spammeurargent:1175507962249351268>","<:Spammeuror:1175507966808572007>","<:Spammeurplatine:1175507968293339167>","<:Spammeurultime:1175507863460913222>"],crew:!1},ermite:{id:"timeInVoice",img:"ermite",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:Ermitebois:1175507899875868672>","<:Ermiteargent:1175508498138796153>","<:Ermiteor:1175508465746182305>","<:Ermiteplatine:1175507904695124028>","<:Ermiteultime:1175507906041499749>"],crew:!1},berry:{id:"berry",img:"berry",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:ElonMuskbois:1175507891600498758>","<:ElonMuskargent:1175508764988801034>","<:ElonMuskor:1175508756700856390>","<:ElonMuskplatine:1175508739386789928>","<:ElonMuskultime:1175507895668985886>"],crew:!1},mode:{id:"spendShop",img:"mode",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:FashionViktimbois:1175508381436485672>","<:FashionViktimargent:1175507924873904128>","<:FashionViktimor:1175507926719414406>","<:FashionViktimplatine:1175508345562599445>","<:FashionViktimultime:1175507931517698088>"],crew:!1},noluck:{id:"noLuck",img:"noluck",isProgressive:!1,emojis:"<:BadluckPlatine:1175507878048702505>",crew:!1},chance:{id:"chance",img:"chance",isProgressive:!1,emojis:"<:BadgeChanceux:1192743999514103869>",crew:!1},casino:{id:"casino",img:"casino",isProgressive:[E.LEGENDARY,E.MYTHIC],emojis:["<:GamblingAddict:1175507934223016047>","<:GamblingAddictDiamond:1187147920647131207>"],crew:!1},premium:{id:"premium",img:"premium",isProgressive:!1,emojis:"<:BadgesDon:1175507876056399933>",crew:!1},calendar:{id:"calendar",img:"calendar",isProgressive:!1,emojis:"<:Calendrier:1187170872176431114>",crew:!1},doublesix:{id:"doublesix",img:"doublesix",isProgressive:!1,emojis:"<:DoubleSix:1187178228624937000>",crew:!1},"black-jack":{id:"blackJack",img:"black-jack",isProgressive:!1,emojis:"<:BlackJack:1187456310137069618>",crew:!1},communism:{id:"communism",img:"communism",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_communism_Bronze:1234375558184570902>","<:cropped_communism_Silver:1234375563729440789>","<:cropped_communism_Gold:1234375561154007103>","<:cropped_communism_Platinum:1234375562269687849>","<:cropped_communism_Diamond:1234375559811825705>"],crew:!0},crewship:{id:"crewship",img:"crewship",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_crewship_Bronze:1234458902641246260>","<:cropped_crewship_Silver:1234458908840431617>","<:cropped_crewship_Gold:1234458905694961724>","<:cropped_crewship_Platinum:1234458907741782038>","<:cropped_crewship_Diamond:1234458904100864000>"],crew:!0},broship:{id:"broship",img:"broship",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_broship_Bronze:1234537705292038175>","<:cropped_broship_Silver:1234537711214530652>","<:cropped_broship_Gold:1234537708047695892>","<:cropped_broship_Platinum:1234537710170013867>","<:cropped_broship_Diamond:1234537706810245161>"],crew:!0},shipsecte:{id:"shipsecte",img:"shipsecte",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_shipsecte_Bronze:1234547646023078009>","<:cropped_shipsecte_Silver:1234547651912011827>","<:cropped_shipsecte_Gold:1234547649160675408>","<:cropped_shipsecte_Platinum:1234547650414514267>","<:cropped_shipsecte_Diamond:1234547648011173888>"],crew:!0},sardine:{id:"sardine",img:"sardine",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_sardine_Bronze:1234549442799997010>","<:cropped_sardine_Silver:1234549449036927088>","<:cropped_sardine_Gold:1234549445916622988>","<:cropped_sardine_Platinum:1234549447518720050>","<:cropped_sardine_Diamond:1234549444738023484>"],crew:!0},carpenter:{id:"carpenter",img:"carpenter",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_carpenter_Bronze:1234555340964626495>","<:cropped_carpenter_Silver:1234555345935007764>","<:cropped_carpenter_Gold:1234555343317635153>","<:cropped_carpenter_Platinum:1234555344819191909>","<:cropped_carpenter_Diamond:1234555342143357072>"],crew:!0},camarade:{id:"camarade",img:"camarade",isProgressive:!1,emojis:"<:cropped_camarade:1234582024077967361>",crew:!0},selfish:{id:"selfish",img:"selfish",isProgressive:!1,emojis:"<:cropped_selfish:1234587373363527780>",crew:!0},recipe:{id:"recipe",img:"recipe",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_b_recipe_Bronze:1244357782573023282>","<:cropped_b_recipe_Silver:1244357788361031711>","<:cropped_b_recipe_Gold:1244357785555308574>","<:cropped_b_recipe_Platinum:1244357786750685225>","<:cropped_b_recipe_Diamond:1244357784397545526>"],crew:!1},craft:{id:"craft",img:"craft",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_b_craft_Bronze:1244357834452238447>","<:cropped_b_craft_Silver:1244357840513011722>","<:cropped_b_craft_Gold:1244357837333725306>","<:cropped_b_craft_Platinum:1244357838801735761>","<:cropped_b_craft_Diamond:1244357835735695401>"],crew:!1}},Da=t=>!!t.isProgressive,Na={satan:"satan",idiot:"idiot",edito:"edito"},Gh={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>"}},Yt=t=>new Intl.NumberFormat("de-DE").format(t),$h=(t,e,a=i=>i)=>t.filter(i=>!e.some(n=>a(n)===a(i))),zi=(t,e)=>[...new Set(t.map(a=>e(a)))],zh=t=>Object.fromEntries(t),qi=t=>t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(e,a)=>a.toUpperCase()).replace(/^[A-Z]/,e=>e.toLowerCase()),qh=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Kh=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Ki=/(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,Ia=[/^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],Jh={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:Ki,monthsShortRegex:Ki,monthsStrictRegex:qh,monthsShortStrictRegex:Kh,monthsParse:Ia,longMonthsParse:Ia,shortMonthsParse:Ia,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:((t,e)=>{switch(e){case"D":return t+(t===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(t===1?"er":"e");case"w":case"W":return t+(t===1?"re":"e")}}),week:{dow:1,doy:4}};y.locale("fr",Jh);const ka=(t,e,a=!0)=>(a?t.getFullYear()===e.getFullYear():!0)&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate(),Ji=t=>typeof t=="function",Zh=t=>Math.round(5e3*Math.pow(200,.01*t)/10)*10,Zi=t=>t>=1?Zi(t-1)+Zh(t):0,Q=(t,e=0)=>t<Zi(e+1)?e:Q(t,e+1),Xh=t=>Math.round(1e5*Math.pow(50,.01*t)/10)*10,Xi=t=>t>=1?Xi(t-1)+Xh(t):0,Fe=(t,e=0)=>t<Xi(e+1)?e:Fe(t,e+1),en=1,ef=[[200,4],[100,3],[50,2],[0,en]],tf=t=>{for(const[e,a]of ef)if(t>=e)return a;return en},O=t=>{let e=0;for(;t>0;t-=tf(e))e++;return e};class af{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var Wt=(t=>(t.COMPLETED="COMPLETED",t.IN_PROGRESS="IN_PROGRESS",t))(Wt||{});const nf=async(t,e,a)=>{const i=md(t),n=qi(t.split("/")[1]);for(const s of i){if(!("crewDependencies"in s))return;const o=new s;await o.isCompletedForCrew(e)||await o.isValidated({[n]:a},e)&&await o.completeForCrew(e)}},sf=async(t,e,a)=>{const i=pd(t),n=qi(t.split("/")[1]);for(const s of i)if("crewDependencies"in s){const o=new s,c=await r.userCrewService.get(e);if(!c||!c.crew||await o.isCompletedForCrew(c.crew))continue;await o.isValidated({[n]:a},c.crew)&&await o.completeForCrew(c.crew)}else{const o=new s;if(await o.isCompleted(e))continue;await o.isValidated({[n]:a},e)&&await o.complete(e,!0)}},rf=(t,e)=>async(a,i)=>{e?await nf(t,a,i):await sf(t,a,i)},tn=new(void 0),an="quest/COMPLETED_QUEST",Ca=(t,e)=>{tn.emit(an,t,e)},of=t=>{tn.on(an,(e,a)=>{t(e,a)})};r.registerQuestMiddlewareEvents(zh(Object.values(r.QUEST_MIDDLEWARE_EVENT_NAME).map(t=>[t,rf(t,t.startsWith("middleware/CREW"))])));class va extends u{name="1 jour 1 message";id="daily_send_message";rankId=l.COMMON.id;description="Envoyer un message";berry=({xp:e})=>(Q(e.amount)/10+1)*1e3;xp=({xp:e})=>(Q(e.amount)/10+1)*100;daily=!0;async isValidated(){return!1}}class Oa extends u{name="Les nouvelles sont bonnes ?";id="daily_read_edito";rankId=l.COMMON.id;description="Réagir à l'édito";berry=({xp:e})=>(Q(e.amount)/10+1)*3e3;xp=({xp:e})=>(Q(e.amount)/10+1)*300;daily=!0;async isValidated(){return!1}}class xa extends u{name="Quoi ? Feur !";id="daily_answer";rankId=l.COMMON.id;description="Répondre à quelqu'un";berry=({xp:e})=>(Q(e.amount)/10+1)*1500;xp=({xp:e})=>(Q(e.amount)/10+1)*150;daily=!0;async isValidated(){return!1}}class La extends u{name="Narcissique";id="daily_check_profile";rankId=l.COMMON.id;description="Regarder son profil";berry=({xp:e})=>(Q(e.amount)/10+1)*2e3;xp=({xp:e})=>(Q(e.amount)/10+1)*200;daily=!0;async isValidated(){return!1}}class Va extends u{name="T'as des amis ?";id="daily_vocal";rankId=l.COMMON.id;description="Se connecter 10 min en vocal";berry=({xp:e})=>(Q(e.amount)/10+1)*5e3;xp=({xp:e})=>(Q(e.amount)/10+1)*500;daily=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return i.voice.minutesInVoiceToday>=10&&ka(i.voice.lastConnection,new Date)}}class it extends u{name="T'as pas oublié de ranger ta chambre ?";id="daily_all";rankId=l.RARE.id;description="Finir les quêtes journalières";berry=({xp:e})=>(Q(e.amount)/10+1)*12500;xp=({xp:e})=>(Q(e.amount)/10+1)*1250;daily=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(e,a){const i=[new La,new xa,new Oa,new va,new Va];for(const n of i)if(!await n.isCompleted(a))return!1;return!0}}class nn extends u{name="Almanax";id="almanax";rankId=l.MYTHIC.id;description="Valider 365 jours de suite les quêtes quotidiennes";berry=1e9;xp=1e6;badge=S.calendar;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(e,a){const i=new it().id;return((await r.userQuestService.get({user:a,questId:i})).streak??0)>=365}}const df=Object.freeze(Object.defineProperty({__proto__:null,Almanax:nn,DailyAll:it,DailyAnswer:xa,DailyCheckProfile:La,DailyReadEdito:Oa,DailySendMessage:va,DailyVocal:Va},Symbol.toStringTag,{value:"Module"}));class u extends af{static dependencies=[];async complete(e,a){const i=new Date;i.setHours(0,0,0,0);let n;if(!await this.isCompleted(e)&&(this.daily?n=await r.userQuestService.completeQuest({lastCompletionDate:{$lt:i},questId:this.id,user:e},!0):this.repeatable?n=await r.userQuestService.completeQuest({questId:this.id,user:e}):n=await r.userQuestService.completeQuest({questId:this.id,user:e,status:Wt.IN_PROGRESS}),!!n))return await this.specificQuestCompletion(e),await this.applyReward(e),a&&Ca([e],this),!0}async applyReward(e){this.crew||(this.titleId&&await r.userOrnamentService.unlockTitle(e,this.titleId),this.badge&&await r.userOrnamentService.unlockBadge(e,this.badge,this.rankId),this.isFactionBadge&&await r.userOrnamentService.unlockFactionBadge(e,this.rankId),this.asset&&await r.userOrnamentService.unlockProfileAsset(e,this.asset),this.items&&await r.userInventoryService.addItems(e,this.items))}async getComputedRewards(e){const a=new it().id,i=this.daily?await r.userQuestService.getStreakMultiplier(e,a):1,n=await r.userMetaService.get(e);return{xp:(Ji(this.xp)?this.xp(n):this.xp)*i,berry:(Ji(this.berry)?this.berry(n):this.berry)*i}}async specificQuestCompletion(e){this.id==="be_level_10"&&await r.userService.canChooseFaction(e,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await r.userService.canChangeFaction(e,!0)}async isCompleted(e){const{lastCompletionDate:a,status:i}=await r.userQuestService.get({user:e,questId:this.id});return this.repeatable?!1:this.daily?i==="COMPLETED"&&!!a&&ka(a,new Date):i==="COMPLETED"}}class V extends u{static crewDependencies=[];async completeForCrew(e){if(await this.isCompletedForCrew(e))return;const a=new Date;a.setHours(0,0,0,0);let i;if(this.daily?i=await r.crewQuestService.completeQuest({lastCompletionDate:{$lt:a},questId:this.id,crew:e}):this.repeatable?i=await r.crewQuestService.completeQuest({questId:this.id,crew:e}):i=await r.crewQuestService.completeQuest({questId:this.id,crew:e,status:Wt.IN_PROGRESS}),!i)return;const n=await r.userCrewService.getAllUserIdsFromCrew(e),s=[];await this.applyCrewReward(e);for(const o of n)await this.complete(o,!1)&&s.push(o);Ca(s,this)}async applyCrewReward(e){this.badge&&await r.crewOrnamentsService.unlockBadge(e,this.badge,this.rankId)}async isCompletedForCrew(e){const{lastCompletionDate:a,status:i}=await r.crewQuestService.get({crew:e,questId:this.id});return this.repeatable?!1:this.daily?i==="COMPLETED"&&!!a&&ka(a,new Date):i==="COMPLETED"}}class sn extends u{name="Jeune étudiant";id="drink_50_alcohols";rankId=l.COMMON.id;description="Boire 50 alcools";berry=5e5;xp=2e4;titleId="title_Jeune étudiant";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.totalConsumed>=50}}class rn extends u{name="Habitué des bars";id="drink_250_alcohols";rankId=l.RARE.id;description="Boire 250 alcools";berry=2e6;xp=5e4;titleId="title_Habitué des bars";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.totalConsumed>=250}}class on extends u{name="Alcoolique notoire";id="drink_500_alcohols";rankId=l.EPIC.id;description="Boire 500 alcools";berry=1e7;xp=1e5;titleId="title_Alcoolique notoire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.totalConsumed>=500}}class dn extends u{name="Ivrogne";id="drink_1000_alcohols";rankId=l.LEGENDARY.id;description="Boire 1000 alcools";berry=5e7;xp=2e5;titleId="title_Ivrogne";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.totalConsumed>=1e3}}class ln extends u{name="Breton";id="drink_2000_alcohols";rankId=l.MYTHIC.id;description="Boire 2000 alcools";berry=1e8;xp=5e5;titleId="title_Breton";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.totalConsumed>=2e3}}class cn extends u{name="Buveur de Rhum";id="drink_10_rhum";rankId=l.COMMON.id;description="Boire 10 Rhums";berry=5e5;xp=2e4;titleId="title_Buveur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.rhums>=10}}class un extends u{name="Amateur de Rhum";id="drink_100_rhum";rankId=l.RARE.id;description="Boire 100 Rhums";berry=2e6;xp=5e4;titleId="title_Amateur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.rhums>=100}}class hn extends u{name="Connaisseur de Rhum";id="drink_250_rhum";rankId=l.EPIC.id;description="Boire 250 Rhums";berry=1e7;xp=1e5;titleId="title_Connaisseur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.rhums>=250}}class fn extends u{name="Rhumologue";id="drink_500_rhum";rankId=l.LEGENDARY.id;description="Boire 500 Rhums";berry=5e7;xp=2e5;titleId="title_Rhumologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.rhums>=500}}class _n extends u{name="Dieu du Rhum";id="drink_1000_rhum";rankId=l.MYTHIC.id;description="Boire 1000 Rhums";berry=1e8;xp=5e5;titleId="title_Dieu du Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.rhums>=1e3}}class pn extends u{name="Buveur de Bière";id="drink_10_beer";rankId=l.COMMON.id;description="Boire 10 Bières";berry=5e5;xp=2e4;titleId="title_Buveur de Bière";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.beers>=10}}class mn extends u{name="Amateur de Bière";id="drink_100_beer";rankId=l.RARE.id;description="Boire 100 Bières";berry=2e6;xp=5e4;titleId="title_Amateur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.beers>=100}}class En extends u{name="Connaisseur de Bière";id="drink_250_beer";rankId=l.EPIC.id;description="Boire 250 Bières";berry=1e7;xp=1e5;titleId="title_Connaisseur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.beers>=250}}class gn extends u{name="Bièrologue";id="drink_500_beer";rankId=l.LEGENDARY.id;description="Boire 500 Bières";berry=5e7;xp=2e5;titleId="title_Bièrologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.beers>=500}}class Sn extends u{name="Dieu de la Bière";id="drink_1000_beer";rankId=l.MYTHIC.id;description="Boire 1000 Bières";berry=1e8;xp=5e5;titleId="title_Dieu de la Bière";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.beers>=1e3}}class yn extends u{name="Buveur de Vin";id="drink_10_wine";rankId=l.COMMON.id;description="Boire 10 Vins";berry=5e5;xp=2e4;titleId="title_Buveur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.wines>=10}}class Mn extends u{name="Amateur de Vin";id="drink_100_wine";rankId=l.RARE.id;description="Boire 100 Vins";berry=2e6;xp=5e4;titleId="title_Amateur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.wines>=100}}class Tn extends u{name="Connaisseur de Vin";id="drink_250_wine";rankId=l.EPIC.id;description="Boire 250 Vins";berry=1e7;xp=1e5;titleId="title_Connaisseur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.wines>=250}}class wn extends u{name="Vinologue";id="drink_500_wine";rankId=l.LEGENDARY.id;description="Boire 500 Vins";berry=1e7;xp=2e5;titleId="title_Vinologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.wines>=500}}class bn extends u{name="Dieu du Vin";id="drink_1000_wine";rankId=l.MYTHIC.id;description="Boire 1000 Vins";berry=1e8;xp=5e5;titleId="title_Dieu du Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.wines>=1e3}}const lf=Object.freeze(Object.defineProperty({__proto__:null,Drink1000Alcohols:dn,Drink1000Beer:Sn,Drink1000Rhum:_n,Drink1000Wine:bn,Drink100Beer:mn,Drink100Rhum:un,Drink100Wine:Mn,Drink10Beer:pn,Drink10Rhum:cn,Drink10Wine:yn,Drink2000Alcohols:ln,Drink250Alcohols:rn,Drink250Beer:En,Drink250Rhum:hn,Drink250Wine:Tn,Drink500Alcohols:on,Drink500Beer:gn,Drink500Rhum:fn,Drink500Wine:wn,Drink50Alcohols:sn},Symbol.toStringTag,{value:"Module"}));class An extends u{name="Un poster dans ta chambre";id="have_1_background";rankId=l.EPIC.id;description="Avoir 1 background";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:e},a){const{unlockedBackgrounds:i}=e??await r.userOrnamentService.get(a);return i.filter(n=>n!==Ra).length>=1}}class Rn extends u{name="Fan de One Piece";id="have_25_background";rankId=l.LEGENDARY.id;description="Avoir 25 backgrounds différents";berry=5e6;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:e},a){const{unlockedBackgrounds:i}=e??await r.userOrnamentService.get(a);return i.filter(n=>n!==Ra).length>=25}}class Dn extends u{name="Tu vas en faire quoi ? Tu peux en mettre qu'un";id="have_50_background";rankId=l.MYTHIC.id;description="Avoir 50 backgrounds différents";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:e},a){const{unlockedBackgrounds:i}=e??await r.userOrnamentService.get(a);return i.filter(n=>n!==Ra).length>=50}}const cf=Object.freeze(Object.defineProperty({__proto__:null,Have1Background:An,Have25Background:Rn,Have50Background:Dn},Symbol.toStringTag,{value:"Module"}));class Nn extends u{name="Enfin de quoi t'acheter un bon vélo !";id="have_500000_berry";rankId=l.COMMON.id;description="Avoir 500 000 Berrys";berry=1e5;xp=5e3;badge=S.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{berry:i}=e??await r.userMetaService.get(a);return i>=5e5}}class In extends u{name="Ouah t'es multi-millionaire !";id="have_5000000_berry";rankId=l.RARE.id;description="Avoir 5 000 000 Berrys";berry=1e6;xp=25e3;badge=S.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{berry:i}=e??await r.userMetaService.get(a);return i>=5e6}}class kn extends u{name="Presque riche";id="have_50000000_berry";rankId=l.EPIC.id;description="Avoir 50 000 000 Berrys";berry=1e7;xp=5e4;badge=S.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{berry:i}=e??await r.userMetaService.get(a);return i>=5e7}}class Cn extends u{name="Un 20m² à Paris";id="have_500000000_berry";rankId=l.LEGENDARY.id;description="Avoir 500 000 000 Berrys";berry=1e8;xp=1e5;badge=S.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{berry:i}=e??await r.userMetaService.get(a);return i>=5e8}}class vn extends u{name="This is Elon Musk";id="have_5000000000_berry";rankId=l.MYTHIC.id;description="Avoir 5 000 000 000 Berrys";berry=1e9;xp=25e4;titleId="title_Elon Musk";badge=S.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{berry:i}=e??await r.userMetaService.get(a);return i>=5e9}}const uf=Object.freeze(Object.defineProperty({__proto__:null,Have500kBerry:Nn,Have500mBerry:Cn,Have50mBerry:kn,Have5mBerry:In,Have5mdBerry:vn},Symbol.toStringTag,{value:"Module"}));class On extends u{name="Petit joueur";id="bet_min_value";rankId=l.RARE.id;description="Mise la somme minimale lors d'un pari";berry=5e4;xp=1e4;secret=!0;titleId="title_Petit joueur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{gamblingFlags:i}=e??await r.userStatsFlagsService.get(a);return i.betMin}}class xn extends u{name="On a tous le droit à une seconde chance";id="lose_everything";rankId=l.RARE.id;description="Perdre tous ses Berrys";berry=1e5;xp=1e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{gamblingFlags:i}=e??await r.userStatsFlagsService.get(a);return i.loseEverything}}class Ln extends u{name="T'es sûr de toi ?";id="bet_10M";rankId=l.EPIC.id;description="Miser 10 000 000 de Berrys en une seule fois";berry=5e5;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{gamblingFlags:i}=e??await r.userStatsFlagsService.get(a);return i.bet10M}}class Vn extends u{name="Ok j'ai rien dit";id="win_10M_bet";rankId=l.LEGENDARY.id;description="Gagner en ayant misé 10M de Berrys";berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{gamblingFlags:i}=e??await r.userStatsFlagsService.get(a);return i.winBet10M}}class Un extends u{name="T'es accro là non ?";id="bet_total_10M";rankId=l.LEGENDARY.id;description="Miser plus de 10 000 000 de Berrys en tout";berry=1e6;xp=1e5;titleId="title_Gambling addict";badge=S.casino;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{totalBet:i}=e??await r.userStatsCasinoService.get(a);return i>=1e7}}class Pn extends u{name="LE MILLIARD";id="bet_total_1Md";rankId=l.MYTHIC.id;description="Miser plus de 1 000 000 000 de Berrys en tout";berry=5e7;xp=25e4;badge=S.casino;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{totalBet:i}=e??await r.userStatsCasinoService.get(a);return i>=1e9}}class Yn extends u{name="Cheh !";id="lose_10M";rankId=l.LEGENDARY.id;description="Perdre 10M de Berrys en une fois";berry=1e6;xp=1e5;secret=!0;badge=S.noluck;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{gamblingFlags:i}=e??await r.userStatsFlagsService.get(a);return i.lose10M}}const hf=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:Ln,BetMinValue:On,Lose10M:Yn,LoseEverything:xn,TotalBet10M:Un,TotalBet1Md:Pn,WinOn10MBet:Vn},Symbol.toStringTag,{value:"Module"}));class Wn extends u{name="Bon anniversaire !";id="birthday";rankId=l.EPIC.id;description="Fêter son anniversaire";berry=1e6;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{hasCelebrateBirthday:i}=e??await r.userStatsFlagsService.get(a);return i}}const ff=Object.freeze(Object.defineProperty({__proto__:null,Birthday:Wn},Symbol.toStringTag,{value:"Module"}));class Qn extends u{name="Il ne va pas te répondre tu sais ?";id="bot_ping";rankId=l.EPIC.id;description="Ping le bot 100 fois";berry=25e4;xp=25e3;secret=!0;titleId="title_Teubé";asset=Na.idiot;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{botPingCount:i}=e??await r.userStatsFlagsService.get(a);return i>=100}}const _f=Object.freeze(Object.defineProperty({__proto__:null,BotPing:Qn},Symbol.toStringTag,{value:"Module"}));class Fn extends u{name="5 jours / semaine à Basic Fit";id="have_25_strength";rankId=l.COMMON.id;description="Avoir 25 de force";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.strength)>=25}}class Hn extends u{name="La fonte > les livres";id="have_50_strength";rankId=l.RARE.id;description="Avoir 50 de force";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.strength)>=50}}class jn extends u{name="Moi, musclé ?";id="have_100_strength";rankId=l.EPIC.id;description="Avoir 100 de force";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.strength)>=100}}class Bn extends u{name="Hercules";id="have_250_strength";rankId=l.LEGENDARY.id;description="Avoir 250 de force";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.strength)>=250}}class Gn extends u{name="Titan";id="have_500_strength";rankId=l.MYTHIC.id;description="Avoir 500 de force";berry=5e7;xp=25e4;titleId="title_Titan";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.strength)>=500}}class $n extends u{name="Chat de gouttière";id="have_25_agility";rankId=l.COMMON.id;description="Avoir 25 d'agilité";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.agility)>=25}}class zn extends u{name="Hop ! Grand écart !";id="have_50_agility";rankId=l.RARE.id;description="Avoir 50 d'agilité";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.agility)>=50}}class qn extends u{name="Danseur étoile";id="have_100_agility";rankId=l.EPIC.id;description="Avoir 100 d'agilité";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.agility)>=100}}class Kn extends u{name="L'Éclair de Konoha ! (merde mauvais manga)";id="have_250_agility";rankId=l.LEGENDARY.id;description="Avoir 250 d'agilité";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.agility)>=250}}class Jn extends u{name="Héritier de Bon Clay";id="have_500_agility";rankId=l.MYTHIC.id;description="Avoir 500 d'agilité";berry=5e7;xp=25e4;titleId="title_Héritier de Bon Clay";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.agility)>=500}}class Zn extends u{name="2+2 = 4";id="have_25_intelligence";rankId=l.COMMON.id;description="Avoir 25 d'intelligence";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.intelligence)>=25}}class Xn extends u{name="Petit Einstein";id="have_50_intelligence";rankId=l.RARE.id;description="Avoir 50 d'intelligence";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.intelligence)>=50}}class es extends u{name="HPI";id="have_100_intelligence";rankId=l.EPIC.id;description="Avoir 100 d'intelligence";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.intelligence)>=100}}class ts extends u{name="Sorcier du savoir";id="have_250_intelligence";rankId=l.LEGENDARY.id;description="Avoir 250 d'intelligence";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.intelligence)>=250}}class as extends u{name="Héritier de Vegapunk";id="have_500_intelligence";rankId=l.MYTHIC.id;description="Avoir 500 d'intelligence";berry=5e7;xp=25e4;titleId="title_Héritier de Vegapunk";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.intelligence)>=500}}class is extends u{name="Touche du bois";id="have_25_chance";rankId=l.COMMON.id;description="Avoir 25 de chance";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.chance)>=25}}class ns extends u{name="Petit veinard";id="have_50_chance";rankId=l.RARE.id;description="Avoir 50 de chance";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.chance)>=50}}class ss extends u{name="LA CHAAAAAATTE !";id="have_100_chance";rankId=l.EPIC.id;description="Avoir 100 de chance";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.chance)>=100}}class rs extends u{name="Favori des Astres";id="have_250_chance";rankId=l.LEGENDARY.id;description="Avoir 250 de chance";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.chance)>=250}}class os extends u{name="Héritier de Baggy";id="have_500_chance";rankId=l.MYTHIC.id;description="Avoir 500 de chance";berry=5e7;xp=25e4;titleId="title_Héritier de Baggy";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.chance)>=500}}class ds extends u{name="Résistant";id="have_25_vitality";rankId=l.COMMON.id;description="Avoir 25 de vitalité";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.vitality)>=25}}class ls extends u{name="Solide comme un roc";id="have_50_vitality";rankId=l.RARE.id;description="Avoir 50 de vitalité";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.vitality)>=50}}class cs extends u{name="Le tank !";id="have_100_vitality";rankId=l.EPIC.id;description="Avoir 100 de vitalité";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.vitality)>=100}}class us extends u{name="Mais t'es increvable !";id="have_250_vitality";rankId=l.LEGENDARY.id;description="Avoir 250 de vitalité";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.vitality)>=250}}class hs extends u{name="Héritier de Kaido";id="have_500_vitality";rankId=l.MYTHIC.id;description="Avoir 500 de vitalité";berry=5e7;xp=25e4;titleId="title_Héritier de Kaido";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.vitality)>=500}}class fs extends u{name="Tu as lu des livres ?";id="have_25_wisdom";rankId=l.COMMON.id;description="Avoir 25 de sagesse";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.wisdom)>=25}}class _s extends u{name="Filozof";id="have_50_wisdom";rankId=l.RARE.id;description="Avoir 50 de sagesse";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.wisdom)>=50}}class ps extends u{name="Platon";id="have_100_wisdom";rankId=l.EPIC.id;description="Avoir 100 de sagesse";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.wisdom)>=100}}class ms extends u{name="Oracle vénéré";id="have_250_wisdom";rankId=l.LEGENDARY.id;description="Avoir 250 de sagesse";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.wisdom)>=250}}class Es extends u{name="Héritier d'Ohara";id="have_500_wisdom";rankId=l.MYTHIC.id;description="Avoir 500 de sagesse";berry=5e7;xp=25e4;titleId="title_Héritier d'Ohara";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.wisdom)>=500}}const pf=Object.freeze(Object.defineProperty({__proto__:null,Have100Agility:qn,Have100Chance:ss,Have100Intelligence:es,Have100Strength:jn,Have100Vitality:cs,Have100Wisdom:ps,Have250Agility:Kn,Have250Chance:rs,Have250Intelligence:ts,Have250Strength:Bn,Have250Vitality:us,Have250Wisdom:ms,Have25Agility:$n,Have25Chance:is,Have25Intelligence:Zn,Have25Strength:Fn,Have25Vitality:ds,Have25Wisdom:fs,Have500Agility:Jn,Have500Chance:os,Have500Intelligence:as,Have500Strength:Gn,Have500Vitality:hs,Have500Wisdom:Es,Have50Agility:zn,Have50Chance:ns,Have50Intelligence:Xn,Have50Strength:Hn,Have50Vitality:ls,Have50Wisdom:_s},Symbol.toStringTag,{value:"Module"}));class gs extends u{name="Ils font mieux chez Ikea";id="craft_20_times";rankId=l.COMMON.id;description="Effectuer 20 crafts";berry=5e4;xp=5e3;badge=S.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.totalCrafted>=20}}class Ss extends u{name="Te fais pas mal avec le marteau";id="craft_50_times";rankId=l.RARE.id;description="Effectuer 50 crafts";berry=2e5;xp=25e3;badge=S.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.totalCrafted>=50}}class ys extends u{name="Insensible aux échardes on dirait";id="craft_200_times";rankId=l.EPIC.id;description="Effectuer 200 crafts";berry=1e6;xp=5e4;badge=S.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.totalCrafted>=200}}class Ms extends u{name="Je ne veux pas voir l'état de ton atelier";id="craft_500_times";rankId=l.LEGENDARY.id;description="Effectuer 500 crafts";berry=1e6;xp=1e5;badge=S.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.totalCrafted>=500}}class Ts extends u{name="Mac Gyver";id="craft_1000_times";rankId=l.MYTHIC.id;description="Effectuer 1000 crafts";berry=5e7;xp=25e4;titleId="title_Mac Gyver";badge=S.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.totalCrafted>=1e3}}class ws extends u{name="Apprenti Gourmand";id="craft_10_cooked_meals";rankId=l.COMMON.id;description="Cuisiner 10 plats";berry=5e5;xp=2e4;titleId="title_Apprenti Gourmand";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.cookedMeal>=10}}class bs extends u{name="Chef Amateur";id="craft_50_cooked_meals";rankId=l.RARE.id;description="Cuisiner 50 plats";berry=2e5;xp=5e4;titleId="title_Chef Amateur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.cookedMeal>=50}}class As extends u{name="Maître des Saveurs";id="craft_100_cooked_meals";rankId=l.EPIC.id;description="Cuisiner 100 plats";berry=1e7;xp=1e5;titleId="title_Maître des Saveurs";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.cookedMeal>=100}}class Rs extends u{name="Artiste Culinaire";id="craft_250_cooked_meals";rankId=l.LEGENDARY.id;description="Cuisiner 250 plats";berry=5e7;xp=2e5;titleId="title_Artiste Culinaire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.cookedMeal>=250}}class Ds extends u{name="Sultan des Épices";id="craft_500_cooked_meals";rankId=l.MYTHIC.id;description="Cuisiner 500 plats";berry=1e8;xp=5e5;titleId="title_Sultan des Épices";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.cookedMeal>=500}}class Ns extends u{name="C'est une bonne situation ça scribe ?";id="craft_5_scrolls";rankId=l.COMMON.id;description="Craft 5 Parchemins";berry=5e5;xp=2e4;titleId="title_Apprenti Scribe";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.scrolls>=5}}class Is extends u{name="Artisan des Runes";id="craft_10_scrolls";rankId=l.RARE.id;description="Craft 10 Parchemins";berry=2e6;xp=5e4;titleId="title_Artisan des Runes";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.scrolls>=10}}class ks extends u{name="Collectionneur des Manuscrits";id="craft_20_scrolls";rankId=l.EPIC.id;description="Craft 20 Parchemins";berry=1e7;xp=1e5;titleId="title_Collectionneur de Manuscrits";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.scrolls>=20}}class Cs extends u{name="Maître des Enluminures";id="craft_50_scrolls";rankId=l.LEGENDARY.id;description="Craft 50 Parchemins";berry=5e7;xp=2e5;titleId="title_Maître des Enluminures";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.scrolls>=50}}class vs extends u{name="Protecteur du Savoir";id="craft_100_scrolls";rankId=l.MYTHIC.id;description="Craft 100 Parchemins";berry=1e8;xp=5e5;titleId="title_Protecteur du Savoir";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.scrolls>=100}}const mf=Object.freeze(Object.defineProperty({__proto__:null,Craft1000Times:Ts,Craft100CookedMeals:As,Craft100Scrolls:vs,Craft10CookedMeals:ws,Craft10Scrolls:Is,Craft200Times:ys,Craft20Scrolls:ks,Craft20Times:gs,Craft250CookedMeals:Rs,Craft500CookedMeals:Ds,Craft500Times:Ms,Craft50CookedMeals:bs,Craft50Scrolls:Cs,Craft50Times:Ss,Craft5Scrolls:Ns},Symbol.toStringTag,{value:"Module"}));class Os extends V{name="Prenez-en soin";id="crew_carpenter_1_week";rankId=l.COMMON.id;description="Rester au dessus de 80% de détérioration pendant 1 semaine";berry=5e4;xp=5e3;crew=!0;secret=!0;badge=S.carpenter;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:e},a){const{streak80Percent:i}=e??await r.crewStatsFrequencyService.get(a);return i>=7}}class xs extends V{name="Il est comme neuf !";id="crew_carpenter_1_month";rankId=l.RARE.id;description="Rester au dessus de 80% de détérioration pendant 1 mois";berry=2e5;xp=25e3;crew=!0;secret=!0;badge=S.carpenter;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:e},a){const{streak80Percent:i}=e??await r.crewStatsFrequencyService.get(a);return i>=30}}class Ls extends V{name="À l'occasion, je vous mettrai un petit coup de polish";id="crew_carpenter_3_months";rankId=l.EPIC.id;description="Rester au dessus de 80% de détérioration pendant 3 mois";berry=1e6;xp=5e4;crew=!0;secret=!0;badge=S.carpenter;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:e},a){const{streak80Percent:i}=e??await r.crewStatsFrequencyService.get(a);return i>=90}}class Vs extends V{name="Vous ne naviguez qu'en eau calme ?";id="crew_carpenter_6_months";rankId=l.LEGENDARY.id;description="Rester au dessus de 80% de détérioration pendant 6 mois";berry=1e7;xp=1e5;crew=!0;secret=!0;badge=S.carpenter;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:e},a){const{streak80Percent:i}=e??await r.crewStatsFrequencyService.get(a);return i>=180}}class Us extends V{name="C'est un sacré charpentier que vous avez là !";id="crew_carpenter_1_year";rankId=l.MYTHIC.id;description="Rester au dessus de 80% de détérioration pendant 1 an";berry=5e7;xp=25e4;crew=!0;secret=!0;titleId="title_Charpentier Légendaire";badge=S.carpenter;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:e},a){const{streak80Percent:i}=e??await r.crewStatsFrequencyService.get(a);return i>=365}}const Ef=Object.freeze(Object.defineProperty({__proto__:null,CrewCarpenter1Month:xs,CrewCarpenter1Week:Os,CrewCarpenter1Year:Us,CrewCarpenter3Months:Ls,CrewCarpenter6Months:Vs},Symbol.toStringTag,{value:"Module"}));class Ps extends V{name="Prêt à naviguer !";id="crew_daily_click";rankId=l.COMMON.id;description="Faire acte de présence auprès de son équipage";berry=1e4;xp=1e3;crew=!0;daily=!0;async isValidated(){return!1}}class Ys extends V{name="Au rapport !";id="crew_all_members_daily";rankId=l.RARE.id;description="Tous les membres ont rempli leurs quêtes quotidiennes";berry=5e4;xp=5e3;crew=!0;daily=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(e,a){const i=await r.userCrewService.getAllUserIdsFromCrew(a),n=new it;for(const s of i)if(!await n.isCompleted(s))return!1;return!0}}const gf=Object.freeze(Object.defineProperty({__proto__:null,CrewAllMembersDaily:Ys,CrewValidateDaily:Ps},Symbol.toStringTag,{value:"Module"}));class Ws extends V{name="Ah bah maintenant, elle va marcher beaucoup moins bien forcément !";id="crew_break_ship";rankId=l.LEGENDARY.id;description="Casser son bateau (atteindre les 0% de détérioration)";berry=-1e6;xp=-1e5;crew=!0;secret=!0;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW];async isValidated({crew:e},a){const i=e??await r.crewService.get(a);return!!i&&i.disintegration<=0}}const Sf=Object.freeze(Object.defineProperty({__proto__:null,CrewBreakShip:Ws},Symbol.toStringTag,{value:"Module"}));class Qs extends V{name="Sympa votre barque";id="crew_ship_level_10";rankId=l.COMMON.id;description="Atteindre le niveau 10 d'équipage";berry=5e4;xp=5e3;crew=!0;badge=S.crewship;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&Fe(i.xp)>=10}}class Fs extends V{name="Joli bicoque";id="crew_ship_level_25";rankId=l.RARE.id;description="Atteindre le niveau 25 d'équipage";berry=2e5;xp=25e3;crew=!0;badge=S.crewship;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&Fe(i.xp)>=25}}class Hs extends V{name="* C'est un fameux trois-mâts *";id="crew_ship_level_50";rankId=l.EPIC.id;description="Atteindre le niveau 50 d'équipage";berry=1e6;xp=5e4;crew=!0;badge=S.crewship;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&Fe(i.xp)>=50}}class js extends V{name="* Fin comme un oiseau *";id="crew_ship_level_75";rankId=l.LEGENDARY.id;description="Atteindre le niveau 75 d'équipage";berry=1e7;xp=1e5;crew=!0;badge=S.crewship;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&Fe(i.xp)>=75}}class Bs extends V{name="* Hisse et ho ! *";id="crew_ship_level_100";rankId=l.MYTHIC.id;description="Atteindre le niveau 100 d'équipage";berry=5e7;xp=25e4;crew=!0;titleId="title_Santiano";badge=S.crewship;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&Fe(i.xp)>=100}}const yf=Object.freeze(Object.defineProperty({__proto__:null,CrewBeLevel10:Qs,CrewBeLevel100:Bs,CrewBeLevel25:Fs,CrewBeLevel50:Hs,CrewBeLevel75:js},Symbol.toStringTag,{value:"Module"}));class Gs extends V{name="Y'a pas de petites économies";id="crew_have_100M_berry";rankId=l.COMMON.id;description="Avoir 100 000 000 Berrys dans le coffre d'équipage";berry=5e4;xp=5e3;crew=!0;badge=S.communism;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&i.berry>=1e8}}class $s extends V{name="Joli butin !";id="crew_have_500M_berry";rankId=l.RARE.id;description="Avoir 500 000 000 Berrys dans le coffre d'équipage";berry=2e5;xp=25e3;crew=!0;badge=S.communism;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&i.berry>=5e8}}class zs extends V{name="Vous économisez pour un nouveau bateau ?";id="crew_have_1Md_berry";rankId=l.EPIC.id;description="Avoir 1 000 000 000 Berrys dans le coffre d'équipage";berry=1e6;xp=5e4;crew=!0;badge=S.communism;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&i.berry>=1e9}}class qs extends V{name="Ça fait beaucoup là non ?";id="crew_have_5Md_berry";rankId=l.LEGENDARY.id;description="Avoir 5 000 000 000 Berrys dans le coffre d'équipage";berry=1e7;xp=1e5;crew=!0;badge=S.communism;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&i.berry>=5e9}}class Ks extends V{name="Karl Marx serait fier de vous !";id="crew_have_50Md_berry";rankId=l.MYTHIC.id;description="Avoir 50 000 000 000 Berrys dans le coffre d'équipage";berry=5e7;xp=25e4;crew=!0;titleId="title_Communiste";badge=S.communism;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&i.berry>=5e10}}const Mf=Object.freeze(Object.defineProperty({__proto__:null,CrewHave100MBerry:Gs,CrewHave1MdBerry:zs,CrewHave500MBerry:$s,CrewHave50MdBerry:Ks,CrewHave5MdBerry:qs},Symbol.toStringTag,{value:"Module"}));class Js extends V{name="Plus on est de fous...";id="crew_size_5";rankId=l.COMMON.id;description="Être dans un équipage de 5 membres";berry=5e4;xp=5e3;crew=!0;badge=S.sardine;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_CREW];async isValidated(e,a){return(await r.userCrewService.getAllUserIdsFromCrew(a)).length>=5}}class Zs extends V{name="Plus on rit !";id="crew_size_7";rankId=l.RARE.id;description="Être dans un équipage de 7 membres";berry=2e5;xp=25e3;crew=!0;badge=S.sardine;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_CREW];async isValidated(e,a){return(await r.userCrewService.getAllUserIdsFromCrew(a)).length>=7}}class Xs extends V{name="Une petite famille";id="crew_size_10";rankId=l.EPIC.id;description="Être dans un équipage de 10 membres";berry=1e6;xp=5e4;crew=!0;badge=S.sardine;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_CREW];async isValidated(e,a){return(await r.userCrewService.getAllUserIdsFromCrew(a)).length>=10}}class er extends V{name="Va falloir des dortoirs en plus";id="crew_size_12";rankId=l.LEGENDARY.id;description="Être dans un équipage de 12 membres";berry=1e7;xp=1e5;crew=!0;badge=S.sardine;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_CREW];async isValidated(e,a){return(await r.userCrewService.getAllUserIdsFromCrew(a)).length>=12}}class tr extends V{name="* Ah qu'est-ce qu'on est serré ! *";id="crew_size_15";rankId=l.MYTHIC.id;description="Être dans un équipage de 15 membres";berry=5e7;xp=25e4;crew=!0;titleId="title_Sardine";badge=S.sardine;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_CREW];async isValidated(e,a){return(await r.userCrewService.getAllUserIdsFromCrew(a)).length>=15}}const Tf=Object.freeze(Object.defineProperty({__proto__:null,CrewSize10:Xs,CrewSize12:er,CrewSize15:tr,CrewSize5:Js,CrewSize7:Zs},Symbol.toStringTag,{value:"Module"}));class ar extends V{name="Réunion de crise";id="crew_vocal_5";rankId=l.COMMON.id;description="Être dans un un vocal avec au moins 5 membres pendant 1 heure";berry=5e4;xp=5e3;crew=!0;badge=S.shipsecte;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_ENGAGEMENT];async isValidated({crewStatsEngagement:e},a){const{maxVoiceMembersReached:i}=e??await r.crewStatsEngagementService.get(a);return i>=5}}class ir extends V{name="Conseil de guerre";id="crew_vocal_7";rankId=l.RARE.id;description="Être dans un un vocal avec au moins 7 membres pendant 1 heure";berry=2e5;xp=25e3;crew=!0;badge=S.shipsecte;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_ENGAGEMENT];async isValidated({crewStatsEngagement:e},a){const{maxVoiceMembersReached:i}=e??await r.crewStatsEngagementService.get(a);return i>=7}}class nr extends V{name="Réunion de famille";id="crew_vocal_10";rankId=l.EPIC.id;description="Être dans un un vocal avec au moins 10 membres pendant 1 heure";berry=1e6;xp=5e4;crew=!0;badge=S.shipsecte;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_ENGAGEMENT];async isValidated({crewStatsEngagement:e},a){const{maxVoiceMembersReached:i}=e??await r.crewStatsEngagementService.get(a);return i>=10}}class sr extends V{name="Les Inséparables";id="crew_vocal_12";rankId=l.LEGENDARY.id;description="Être dans un un vocal avec au moins 12 membres pendant 1 heure";berry=1e7;xp=1e5;crew=!0;badge=S.shipsecte;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_ENGAGEMENT];async isValidated({crewStatsEngagement:e},a){const{maxVoiceMembersReached:i}=e??await r.crewStatsEngagementService.get(a);return i>=12}}class rr extends V{name="Ambiance sectaire un peu";id="crew_vocal_15";rankId=l.MYTHIC.id;description="Être dans un un vocal avec au moins 15 membres pendant 1 heure";berry=5e7;xp=25e4;crew=!0;titleId="title_Membre d'une secte";badge=S.shipsecte;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_ENGAGEMENT];async isValidated({crewStatsEngagement:e},a){const{maxVoiceMembersReached:i}=e??await r.crewStatsEngagementService.get(a);return i>=15}}const wf=Object.freeze(Object.defineProperty({__proto__:null,CrewVocal10:nr,CrewVocal12:sr,CrewVocal15:rr,CrewVocal5:ar,CrewVocal7:ir},Symbol.toStringTag,{value:"Module"}));class or extends u{name="Vaut mieux ça que perdre non ?";id="draw_100";rankId=l.COMMON.id;description="Faire 100 égalités";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{drawCount:i}=e??await r.userStatsCasinoService.get(a);return i>=100}}class dr extends u{name="Tu as trouvé ton rival";id="draw_300";rankId=l.RARE.id;description="Faire 300 égalités";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{drawCount:i}=e??await r.userStatsCasinoService.get(a);return i>=300}}class lr extends u{name="Rathon c'est toi ?";id="draw_1000";rankId=l.EPIC.id;description="Faire 1000 égalités";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{drawCount:i}=e??await r.userStatsCasinoService.get(a);return i>=1e3}}class cr extends u{name="Tu te bats contre un mur ou quoi ?";id="draw_2000";rankId=l.LEGENDARY.id;description="Faire 2000 égalités";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{drawCount:i}=e??await r.userStatsCasinoService.get(a);return i>=2e3}}class ur extends u{name="De vrais jumeaux";id="draw_5000";rankId=l.MYTHIC.id;description="Faire 5000 égalités";berry=5e7;xp=25e4;titleId="title_Égalitaire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{drawCount:i}=e??await r.userStatsCasinoService.get(a);return i>=5e3}}const bf=Object.freeze(Object.defineProperty({__proto__:null,Draw1000Quest:lr,Draw100Quest:or,Draw2000Quest:cr,Draw300Quest:dr,Draw5000Quest:ur},Symbol.toStringTag,{value:"Module"}));class hr extends u{name="Y'a un truc que t'as pas compris ?";id="edito_read_100";rankId=l.EPIC.id;description="Lire 100 fois l'édito en une journée";berry=25e4;xp=25e3;secret=!0;titleId="title_Culturé";asset=Na.edito;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FREQUENCY];async isValidated({userStatsFrequency:e},a){const{edito:i}=e??await r.userStatsFrequencyService.get(a);return i.readToday>=100}}const Af=Object.freeze(Object.defineProperty({__proto__:null,Edito:hr},Symbol.toStringTag,{value:"Module"}));class fr extends u{name="Une fois, pas deux";id="everyone";rankId=l.LEGENDARY.id;description="Tenter de tag everyone";berry=-1e6;xp=-5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{tagEveryone:i}=e??await r.userStatsFlagsService.get(a);return i}}const Rf=Object.freeze(Object.defineProperty({__proto__:null,Everyone:fr},Symbol.toStringTag,{value:"Module"}));class _r extends u{name="Emoji Diable";id="double_six";rankId=l.LEGENDARY.id;description="Faire 50 fois un double six";berry=1e6;xp=1e5;badge=S.doublesix;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{dice:i}=e??await r.userStatsCasinoService.get(a);return i.doubleSixCount>=50}}class pr extends u{name="Pas de chance ^^";id="draw_double_six";rankId=l.RARE.id;description="Faire une fois une égalité en double 6";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{dice:i}=e??await r.userStatsCasinoService.get(a);return i.drawWithDoubleSixCount>=1}}class mr extends u{name="Jamais 6 sans 7";id="seven_quitte_ou_double";rankId=l.MYTHIC.id;description='Gagner 7 fois de suite "Doubles" au Quitte ou Double';berry=5e7;xp=25e4;badge=S.chance;titleId="title_Chanceux";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{doubleOrQuit:i}=e??await r.userStatsCasinoService.get(a);return i.sevenDoubleInARowCount>=1}}class Er extends u{name="Le 5 à la suite";id="win_5_in_row";rankId=l.EPIC.id;description="Gagner à 5 jeux différents du casino à la suite";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{lastGames:i}=e??await r.userStatsCasinoService.get(a),n=i.slice(0,5);return n.length!==5||zi(n,s=>s.gameType).length<5?!1:n.reduce((s,o)=>s+o.endState,0)===5}}class gr extends u{name="Le 5 à la suite, mais dans l'autre sens";id="lose_5_in_row";rankId=l.EPIC.id;description="Perdre à 5 jeux différents du casino à la suite";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{lastGames:i}=e??await r.userStatsCasinoService.get(a),n=i.slice(0,5);return n.length!==5||zi(n,s=>s.gameType).length<5?!1:n.reduce((s,o)=>s+o.endState,0)===-5}}class Sr extends u{name="Jacques le noir";id="ten_black_jack";rankId=l.LEGENDARY.id;description="Faire 10 fois BlackJack";berry=5e6;xp=5e4;badge=S["black-jack"];static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{blackJack:i}=e??await r.userStatsCasinoService.get(a);return i.blackJackCount>=10}}class yr extends u{name="La feuille enveloppe la pierre ! T'es sûr ?";id="paper_100";rankId=l.LEGENDARY.id;description="Faire 100 fois de suite Papier au PPC";berry=1e6;xp=1e5;titleId="title_Papyrus";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{rps:i}=e??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="paper"&&i.count>=100}}class Mr extends u{name="On fait la paire !";id="scissor_100";rankId=l.LEGENDARY.id;description="Faire 100 fois de suite Ciseaux au PPC";berry=1e6;xp=1e5;titleId="title_Couturier";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{rps:i}=e??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="scissor"&&i.count>=100}}class Tr extends u{name="Golem";id="rock_100";rankId=l.LEGENDARY.id;description="Faire 100 fois de suite Pierre au PPC";berry=1e6;xp=1e5;titleId="title_Golem";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{rps:i}=e??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="rock"&&i.count>=100}}class wr extends u{name="LE NEUF ET LE HUIT !!!";id="guess_in_one";rankId=l.MYTHIC.id;description="Deviner le Juste Prix en un coup";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{priceIsRight:i}=e??await r.userStatsCasinoService.get(a);return i.guessInOneTryCount>=1}}class br extends u{name="Sataniste";id="bet_666_33_days";rankId=l.LEGENDARY.id;description="Miser 666 Berry au moins une fois par jour pendant 33 jours";berry=1e6;xp=5e4;secret=!0;titleId="title_Démon";asset=Na.satan;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{bet666:i}=e??await r.userStatsCasinoService.get(a);return i.count>=33}}class Ar extends u{name="Jour, Nuit";id="win_lose_10_times";rankId=l.LEGENDARY.id;description='Faire un enchaînement "Victoire/Défaite" 10 fois de suite';berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{lastGames:i}=e??await r.userStatsCasinoService.get(a);if(i.length!==20)return!1;const n=i[0].endState,s=n===1?-1:1;if(n===0)return!1;for(let o=0;o<i.length;o++)if(o%2===0&&i[o].endState!==n||o%2!==0&&i[o].endState!==s)return!1;return!0}}const Df=Object.freeze(Object.defineProperty({__proto__:null,Bet666:br,DoubleSix:_r,DrawDoubleSix:pr,GuessInOne:wr,LoseAll5GamesInRow:gr,Paper100:yr,Rock100:Tr,Scissor100:Mr,SevenQuitteOuDouble:mr,TenBlackJack:Sr,WinAll5GamesInRow:Er,WinLose10:Ar},Symbol.toStringTag,{value:"Module"}));class Rr extends u{name="Tu avais soif ?";id="drink_100_xp_bottles_1_day";rankId=l.LEGENDARY.id;description="Boire 100 Potions d'XP en une journée";berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{bottle:i}=e??await r.userStatsInventoryService.get(a);return i.usedToday>=100}}class Dr extends u{name="Un ptit goût amer non ?";id="drink_200";rankId=l.COMMON.id;description="Boire 200 Potions d'XP";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{bottle:i}=e??await r.userStatsInventoryService.get(a);return i.totalUsed>=200}}class Nr extends u{name="Ça se boit bien finalement";id="drink_500";rankId=l.RARE.id;description="Boire 500 Potions d'XP";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{bottle:i}=e??await r.userStatsInventoryService.get(a);return i.totalUsed>=500}}class Ir extends u{name="Les potions donnent des aiiiiles !";id="drink_1000";rankId=l.EPIC.id;description="Boire 1000 Potions d'XP";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{bottle:i}=e??await r.userStatsInventoryService.get(a);return i.totalUsed>=1e3}}class kr extends u{name="À deux doigts de vomir";id="drink_2000";rankId=l.LEGENDARY.id;description="Boire 2000 Potions d'XP";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{bottle:i}=e??await r.userStatsInventoryService.get(a);return i.totalUsed>=2e3}}class Cr extends u{name="Alcoolique";id="drink_5000";rankId=l.MYTHIC.id;description="Boire 5000 Potions d'XP";berry=5e7;xp=25e4;titleId="title_Alcoolique";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{bottle:i}=e??await r.userStatsInventoryService.get(a);return i.totalUsed>=5e3}}class vr extends u{name="C'est sympa ce ptit jeu";id="chest_open_50";rankId=l.COMMON.id;description="Ouvrir 50 Coffres";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{chest:i}=e??await r.userStatsInventoryService.get(a);return i.totalOpened>=50}}class Or extends u{name="T'as enfin eu un truc intéressant ?";id="chest_open_150";rankId=l.RARE.id;description="Ouvrir 150 Coffres";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{chest:i}=e??await r.userStatsInventoryService.get(a);return i.totalOpened>=150}}class xr extends u{name="Ça commence à gratter hein ?";id="chest_open_500";rankId=l.EPIC.id;description="Ouvrir 500 Coffres";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{chest:i}=e??await r.userStatsInventoryService.get(a);return i.totalOpened>=500}}class Lr extends u{name="LAISSEZ-MOI OUVRIR DES COFFRES !";id="chest_open_1000";rankId=l.LEGENDARY.id;description="Ouvrir 1000 Coffres";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{chest:i}=e??await r.userStatsInventoryService.get(a);return i.totalOpened>=1e3}}class Vr extends u{name="xXFan2GenshinXx";id="chest_open_2000";rankId=l.MYTHIC.id;description="Ouvrir 2000 Coffres";berry=5e7;xp=25e4;titleId="title_Gatcha Addict";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{chest:i}=e??await r.userStatsInventoryService.get(a);return i.totalOpened>=2e3}}const Nf=Object.freeze(Object.defineProperty({__proto__:null,ChestOpen1000Quest:Lr,ChestOpen150Quest:Or,ChestOpen2000Quest:Vr,ChestOpen500Quest:xr,ChestOpen50Quest:vr,Drink1000Quest:Ir,Drink100Today:Rr,Drink2000Quest:kr,Drink200Quest:Dr,Drink5000Quest:Cr,Drink500Quest:Nr},Symbol.toStringTag,{value:"Module"}));class Ur extends u{name="Bienvenue à bord !";id="crew_create_or_join";rankId=l.LEGENDARY.id;description="Créer ou rejoindre un équipage";berry=1e6;xp=1e5;crew=!1;async isValidated(){return!1}}const If=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:Ur},Symbol.toStringTag,{value:"Module"}));class Pr extends u{name="Un pas devant l'autre !";id="be_level_10";rankId=l.COMMON.id;description="Atteindre le niveau 10";berry=1e5;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=10}}class Yr extends u{name="T'inquiète pas ça va bien se passer";id="be_level_20";rankId=l.COMMON.id;description="Atteindre le niveau 20";berry=3e5;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=20}}class Wr extends u{name="Commence par me parler poliment";id="be_level_30";rankId=l.RARE.id;description="Atteindre le niveau 30";berry=1e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=30}}class Qr extends u{name="On te respecte à la cantine";id="be_level_40";rankId=l.RARE.id;description="Atteindre le niveau 40";berry=3e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=40}}class Fr extends u{name="Ça commence à devenir sérieux";id="be_level_50";rankId=l.EPIC.id;description="Atteindre le niveau 50";berry=5e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=50}}class Hr extends u{name="Une chambre individuelle ? La chance !";id="be_level_60";rankId=l.EPIC.id;description="Atteindre le niveau 60";berry=1e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=60}}class jr extends u{name="Oulah, les responsabilités arrivent";id="be_level_70";rankId=l.LEGENDARY.id;description="Atteindre le niveau 70";berry=5e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=70}}class Br extends u{name="Faut pas t'emmerder toi";id="be_level_80";rankId=l.LEGENDARY.id;description="Atteindre le niveau 80";berry=5e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=80}}class Gr extends u{name="Là on parle !";id="be_level_90";rankId=l.MYTHIC.id;description="Atteindre le niveau 90";berry=1e8;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=90}}class $r extends u{name="*S'agenouille*";id="be_level_100";rankId=l.MYTHIC.id;description="Atteindre le niveau 100";berry=1e9;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=100}}const kf=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:Pr,BeLevel100:$r,BeLevel20:Yr,BeLevel30:Wr,BeLevel40:Qr,BeLevel50:Fr,BeLevel60:Hr,BeLevel70:jr,BeLevel80:Br,BeLevel90:Gr},Symbol.toStringTag,{value:"Module"}));class zr extends u{name="Merci <3";id="premium";rankId=l.MYTHIC.id;description="Faire un don (validation manuelle)";berry=1;xp=0;badge=S.premium;titleId="title_Mécène";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{premium:i}=e??await r.userMetaService.get(a);return!!i}}const Cf=Object.freeze(Object.defineProperty({__proto__:null,Premium:zr},Symbol.toStringTag,{value:"Module"}));class qr extends u{name="Explorateur novice";id="finish_10_raids";rankId=l.COMMON.id;description="Réussir 10 expéditions";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{raidFinishedCount:i}=e??await r.userStatsEconomyService.get(a);return i>=10}}class Kr extends u{name="Aventurier intrépide";id="finish_25_raids";rankId=l.RARE.id;description="Réussir 25 expéditions";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{raidFinishedCount:i}=e??await r.userStatsEconomyService.get(a);return i>=25}}class Jr extends u{name="Conquérant des terres";id="finish_50_raids";rankId=l.EPIC.id;description="Réussir 50 expéditions";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{raidFinishedCount:i}=e??await r.userStatsEconomyService.get(a);return i>=50}}class Zr extends u{name="Pionnier des secrets";id="finish_100_raids";rankId=l.LEGENDARY.id;description="Réussir 100 expéditions";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{raidFinishedCount:i}=e??await r.userStatsEconomyService.get(a);return i>=100}}class Xr extends u{name="Légende vivante";id="finish_200_raids";rankId=l.MYTHIC.id;description="Réussir 200 expéditions";berry=5e7;xp=25e4;titleId="title_Légende vivante";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{raidFinishedCount:i}=e??await r.userStatsEconomyService.get(a);return i>=200}}const vf=Object.freeze(Object.defineProperty({__proto__:null,Finish100Raids:Zr,Finish10Raids:qr,Finish200Raids:Xr,Finish25Raids:Kr,Finish50Raids:Jr},Symbol.toStringTag,{value:"Module"}));class eo extends u{name="Vif";id="random_message_20";rankId=l.COMMON.id;description="Récupérer 20 Messages aléatoires";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{randomMessageClaimed:i}=e??await r.userStatsEngagementService.get(a);return i>=20}}class to extends u{name="Lucky Luke";id="random_message_50";rankId=l.RARE.id;description="Récupérer 50 Messages aléatoires";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{randomMessageClaimed:i}=e??await r.userStatsEngagementService.get(a);return i>=50}}class ao extends u{name="Rapide";id="random_message_100";rankId=l.EPIC.id;description="Récupérer 100 Messages aléatoires";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{randomMessageClaimed:i}=e??await r.userStatsEngagementService.get(a);return i>=100}}class io extends u{name="Et Furieux";id="random_message_200";rankId=l.LEGENDARY.id;description="Récupérer 200 Messages aléatoires";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{randomMessageClaimed:i}=e??await r.userStatsEngagementService.get(a);return i>=200}}class no extends u{name="Ka-Chow";id="random_message_500";rankId=l.MYTHIC.id;description="Récupérer 500 Messages aléatoires";berry=5e7;xp=25e4;titleId="title_Flash Mc Queen";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{randomMessageClaimed:i}=e??await r.userStatsEngagementService.get(a);return i>=500}}const Of=Object.freeze(Object.defineProperty({__proto__:null,RandomMessage100Quest:ao,RandomMessage200Quest:io,RandomMessage20Quest:eo,RandomMessage500Quest:no,RandomMessage50Quest:to},Symbol.toStringTag,{value:"Module"}));class so extends u{name="Ne fais rien exploser hein ?";id="have_1_recipe";description="Avoir 1 recette";berry=5e4;xp=5e3;rankId=l.COMMON.id;badge=S.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:e},a){const{recipes:i}=e??await r.userInventoryService.get(a);return i.length>=1}}class ro extends u{name="C'est bien tu sais faire des pâtes !";id="have_5_recipe";rankId=l.RARE.id;description="Avoir 5 recettes";berry=2e5;xp=25e3;badge=S.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:e},a){const{recipes:i}=e??await r.userInventoryService.get(a);return i.length>=5}}class oo extends u{name="Ta grand-mère t'as donné son livre ?";id="have_10_recipe";rankId=l.EPIC.id;description="Avoir 10 recettes";berry=1e6;xp=5e4;badge=S.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:e},a){const{recipes:i}=e??await r.userInventoryService.get(a);return i.length>=10}}class lo extends u{name="Let him cook";id="have_25_recipe";rankId=l.LEGENDARY.id;description="Avoir 25 recettes";berry=1e6;xp=1e5;badge=S.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:e},a){const{recipes:i}=e??await r.userInventoryService.get(a);return i.length>=25}}class co extends u{name="Paul Bocuse";id="have_100_recipe";rankId=l.MYTHIC.id;description="Avoir 100 recettes";berry=5e7;xp=25e4;titleId="title_Paul Bocuse";badge=S.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:e},a){const{recipes:i}=e??await r.userInventoryService.get(a);return i.length>=100}}const xf=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:co,Have10Recipe:oo,Have1Recipe:so,Have25Recipe:lo,Have5Recipe:ro},Symbol.toStringTag,{value:"Module"}));class uo extends u{name="Collabo";id="collabo";rankId=l.COMMON.id;description="Report une personne au staff";berry=1e4;xp=5e3;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{reportedSomeone:i}=e??await r.userStatsFlagsService.get(a);return i}}const Lf=Object.freeze(Object.defineProperty({__proto__:null,Report:uo},Symbol.toStringTag,{value:"Module"}));class ho extends u{name="Bienvenue sur OPFR";id="send_100_msg";rankId=l.COMMON.id;description="Envoyer 100 messages";berry=1e4;xp=1e3;badge=S.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{messageSent:i}=e??await r.userStatsEngagementService.get(a);return i>=100}}class fo extends u{name="Une vraie pipelette";id="send_1000_msg";rankId=l.RARE.id;description="Envoyer 1 000 messages";berry=1e5;xp=1e4;badge=S.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{messageSent:i}=e??await r.userStatsEngagementService.get(a);return i>=1e3}}class _o extends u{name="Faites le taire ";id="send_25000_msg";rankId=l.EPIC.id;description="Envoyer 25 000 messages";berry=1e6;xp=5e4;badge=S.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{messageSent:i}=e??await r.userStatsEngagementService.get(a);return i>=25e3}}class po extends u{name="Tu sors de chez toi des fois ?";id="send_100000_msg";rankId=l.LEGENDARY.id;description="Envoyer 100 000 messages";berry=1e7;xp=1e5;badge=S.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{messageSent:i}=e??await r.userStatsEngagementService.get(a);return i>=1e5}}class mo extends u{name="J'ai pas les mots... mais toi si !";id="send_200000_msg";rankId=l.MYTHIC.id;description="Envoyer 200 000 messages";berry=1e8;xp=25e4;badge=S.ecrire;titleId="title_Spammeur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{messageSent:i}=e??await r.userStatsEngagementService.get(a);return i>=2e5}}const Vf=Object.freeze(Object.defineProperty({__proto__:null,send100000Messages:po,send1000Messages:fo,send100Messages:ho,send200000Messages:mo,send25000Messages:_o},Symbol.toStringTag,{value:"Module"}));class Uf extends u{name="T'as reçu ton argent de poche ?";id="spend_shop_5m";rankId=l.COMMON.id;description="Dépenser 5 000 000 Berrys dans la boutique";berry=5e4;xp=5e3;badge=S.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{totalSpentInShop:i}=e??await r.userStatsEconomyService.get(a);return i>=5e6}}class Eo extends u{name="Tu t'es fait plaisir !";id="spend_shop_50m";rankId=l.RARE.id;description="Dépenser 50 000 000 Berrys dans la boutique";berry=2e5;xp=25e3;badge=S.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{totalSpentInShop:i}=e??await r.userStatsEconomyService.get(a);return i>=5e7}}class go extends u{name="C'était les soldes j'espère !";id="spend_shop_500m";rankId=l.EPIC.id;description="Dépenser 500 000 000 Berrys dans la boutique";berry=1e6;xp=5e4;badge=S.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{totalSpentInShop:i}=e??await r.userStatsEconomyService.get(a);return i>=5e8}}class So extends u{name="Paré pour la Fashion Week";id="spend_shop_5ml";rankId=l.LEGENDARY.id;description="Dépenser 5 000 000 000 Berrys dans la boutique";berry=5e6;xp=1e5;badge=S.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{totalSpentInShop:i}=e??await r.userStatsEconomyService.get(a);return i>=5e9}}class yo extends u{name="Fashion Viktim";id="spend_shop_50ml";rankId=l.MYTHIC.id;description="Dépenser 50 000 000 000 Berrys dans la boutique";berry=5e7;xp=25e4;badge=S.mode;titleId="title_Fashion Viktim";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{totalSpentInShop:i}=e??await r.userStatsEconomyService.get(a);return i>=5e10}}const Pf=Object.freeze(Object.defineProperty({__proto__:null,SpendShop500M:go,SpendShop50M:Eo,SpendShop50Ml:yo,SpendShop5Ml:So,default:Uf},Symbol.toStringTag,{value:"Module"}));class Mo extends u{name="On commence à se connaître";id="voice_10_hours";rankId=l.COMMON.id;description="Se connecter 10h en vocal";berry=5e4;xp=5e3;badge=S.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{totalMinutesInVoice:i}=e??await r.userStatsEngagementService.get(a);return i>=600}}class To extends u{name="Je sais tout de toi";id="voice_25_hours";rankId=l.RARE.id;description="Se connecter 25h en vocal";berry=2e5;xp=25e3;badge=S.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{totalMinutesInVoice:i}=e??await r.userStatsEngagementService.get(a);return i>=1500}}class wo extends u{name="T'as pas soif ?";id="voice_250_hours";rankId=l.EPIC.id;description="Se connecter 250h en vocal";berry=1e6;xp=5e4;badge=S.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{totalMinutesInVoice:i}=e??await r.userStatsEngagementService.get(a);return i>=15e3}}class bo extends u{name="Ok Socrate";id="voice_2500_hours";rankId=l.LEGENDARY.id;description="Se connecter 2500h en vocal";berry=1e7;xp=1e5;badge=S.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{totalMinutesInVoice:i}=e??await r.userStatsEngagementService.get(a);return i>=60*2500}}class Ao extends u{name="Elle ressemble à quoi la lumière du soleil ?";id="voice_5000_hours";rankId=l.MYTHIC.id;description="Se connecter 5000h en vocal";berry=5e7;xp=25e4;titleId="title_Ermite";badge=S.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{totalMinutesInVoice:i}=e??await r.userStatsEngagementService.get(a);return i>=60*5e3}}const Yf=Object.freeze(Object.defineProperty({__proto__:null,Voice10Hours:Mo,Voice2500Hours:bo,Voice250Hours:wo,Voice25Hours:To,Voice5000Hours:Ao},Symbol.toStringTag,{value:"Module"}));class Ro extends u{name="PTDR t ki ?";id="have_10_title";rankId=l.EPIC.id;description="Avoir 10 titres différents";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:e},a){const{unlockedTitles:i}=e??await r.userOrnamentService.get(a);return i.length>=10}}class Do extends u{name="Mon nom est Personne";id="have_50_title";rankId=l.LEGENDARY.id;description="Avoir 50 titres différents";berry=5e6;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:e},a){const{unlockedTitles:i}=e??await r.userOrnamentService.get(a);return i.length>=50}}class No extends u{name="Daenerys Targaryen";id="have_100_title";rankId=l.MYTHIC.id;description="Avoir 100 titres différents";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:e},a){const{unlockedTitles:i}=e??await r.userOrnamentService.get(a);return i.length>=100}}const Wf=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:No,Have10Title:Ro,Have50Title:Do},Symbol.toStringTag,{value:"Module"}));class Io extends u{name="L'Insistant";id="insistent";rankId=l.COMMON.id;description="Être repêché et atteindre les huitièmes de finale";berry=1e6;xp=0;repeatable=!0;async isValidated(){return!1}}class ko extends u{name="Résurrection";id="resurrection";rankId=l.RARE.id;description="Être repêché et atteindre les quarts de finale";berry=3e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Co extends u{name="Renaissance";id="rebirth";rankId=l.EPIC.id;description="Être repêché et atteindre au moins les demi-finales";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class vo extends u{name="Phoenix";id="phoenix";rankId=l.LEGENDARY.id;description="Être repêché et aller en finale";berry=2e7;xp=0;repeatable=!0;async isValidated(){return!1}}class Oo extends u{name="L'Immortel";id="immortal";rankId=l.MYTHIC.id;description="Être repêché et remporter le tournoi";berry=4e7;xp=0;repeatable=!0;async isValidated(){return!1}}class xo extends u{name="Branche Maudite";id="cursed_branch";rankId=l.RARE.id;description="Perdre le tournoi en top 32";berry=25e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Lo extends u{name="Top 64";id="tournament_top64";rankId=l.COMMON.id;description="Perdre le tournoi en top 64";berry=15e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Vo extends u{name="Zero Pointé";id="zeroscored";rankId=l.COMMON.id;description="Se faire éliminer directement avec tous ses choix dès le premier duel";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class Uo extends u{name="Chasseur de Géants";id="gianthunter";rankId=l.MYTHIC.id;description="Battre les 3 tap-in du tournoi avec tes choix";berry=1e8;xp=0;items={chest_2:5};repeatable=!0;async isValidated(){return!1}}class Po extends u{name="Sabotage";id="sabotage";rankId=l.EPIC.id;description="Empêcher un choix de tap-in d'atteindre le top 32";berry=3e7;xp=0;repeatable=!0;async isValidated(){return!1}}class Yo extends u{name="Victoire par K.O";id="victory_by_ko";rankId=l.COMMON.id;description="Gagner un duel avec plus de 75% des votes";berry=5e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Wo extends u{name="Le Sniper";id="tournament_sniper";rankId=l.RARE.id;description="Gagner un duel avec plus de 80% des votes";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class Qo extends u{name="Massacre";id="massacre";rankId=l.EPIC.id;description="Gagner un duel avec plus de 90% des votes";berry=25e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Fo extends u{name="Annihilation";id="annihilation";rankId=l.MYTHIC.id;description="Gagner un duel avec 100% des votes (aucun vote pour l'adversaire)";berry=1e8;xp=0;items={chest_1:5};repeatable=!0;async isValidated(){return!1}}class Ho extends u{name="Troll Suprême";id="trollSupreme";rankId=l.MYTHIC.id;description="Prendre un choix totalement troll et improbable, puis gagner le tournoi avec !";berry=1e8;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class jo extends u{name="Champion";id="champion";rankId=l.RARE.id;description="Remporter un tournoi";berry=0;xp=0;items={chest_2:5};repeatable=!0;async isValidated(){return!1}}class Bo extends u{name="Le Maître";id="master";rankId=l.RARE.id;description="Remporter un tournoi avec trois choix différents dans le top 16";berry=0;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class Go extends u{name="L'Inarrétable";id="unstoppable";rankId=l.EPIC.id;description="Remporter un tournoi avec une finale écrasante";berry=0;xp=0;items={chest_1:5,chest_2:3};repeatable=!0;async isValidated(){return!1}}class $o extends u{name="L'Etoile Filante";id="shootingstar";rankId=l.LEGENDARY.id;description="Passer du statut d'outsider à finaliste";berry=5e7;xp=0;repeatable=!0;async isValidated(){return!1}}class zo extends u{name="EZ";id="ez";rankId=l.EPIC.id;description="Débloquer tous les succès Victoire sans difficulté";berry=0;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class qo extends u{name="Participation";id="participation";rankId=l.COMMON.id;description="Participer au tournoi avec 1, 2, 3 et 4 choix";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}const Qf=Object.freeze(Object.defineProperty({__proto__:null,Annihilation:Fo,Champion:jo,CursedBranch:xo,EZ:zo,GiantHunter:Uo,Immortal:Oo,Insistent:Io,Massacre:Qo,Master:Bo,Participation:qo,Phoenix:vo,Rebirth:Co,Resurrection:ko,Sabotage:Po,ShootingStar:$o,Sniper:Wo,TournamentTop64:Lo,TrollSupreme:Ho,Unstoppable:Go,VictoryByKO:Yo,ZeroScored:Vo},Symbol.toStringTag,{value:"Module"}));class Ko extends u{name="Egoïste...";id="user_crew_10_percent";rankId=l.LEGENDARY.id;description="Être à 10% d'XP pour l'équipage pendant 3 mois";berry=1e6;xp=1e5;secret=!0;titleId="title_Egoïste";badge=S.selfish;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{timeCrewBeyond10PercentXp:i}=e??await r.userStatsCrewService.get(a);return i>=90}}class Jo extends u{name="Merci bien camarade !";id="user_crew_90_percent";rankId=l.LEGENDARY.id;description="Être à 90% d'XP pour l'équipage pendant 3 mois";berry=1e6;xp=1e5;secret=!0;titleId="title_Camarade";badge=S.camarade;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{timeCrewAbove90PercentXp:i}=e??await r.userStatsCrewService.get(a);return i>=90}}const Ff=Object.freeze(Object.defineProperty({__proto__:null,UserCrew10Percent:Ko,UserCrew90Percent:Jo},Symbol.toStringTag,{value:"Module"}));class Zo extends u{name="C'est sympa pour eux !";id="crew_bring_50k_xp";rankId=l.COMMON.id;description="Rapporter 50 000 XP à l'équipage";berry=5e4;xp=5e3;badge=S.broship;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{xpGivenToCrew:i}=e??await r.userStatsCrewService.get(a);return i>=5e4}}class Xo extends u{name="On voit que tu aimes ton équipage";id="crew_bring_500k_xp";rankId=l.RARE.id;description="Rapporter 500 000 XP à l'équipage";berry=2e5;xp=25e3;badge=S.broship;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{xpGivenToCrew:i}=e??await r.userStatsCrewService.get(a);return i>=5e5}}class ed extends u{name="Le méritent-ils vraiment ?";id="crew_bring_1m_xp";rankId=l.EPIC.id;description="Rapporter 1 000 000 XP à l'équipage";berry=1e6;xp=5e4;badge=S.broship;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{xpGivenToCrew:i}=e??await r.userStatsCrewService.get(a);return i>=1e6}}class td extends u{name="J'espère que t'as eu une prime";id="crew_bring_5m_xp";rankId=l.LEGENDARY.id;description="Rapporter 5 000 000 XP à l'équipage";berry=1e7;xp=1e5;badge=S.broship;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{xpGivenToCrew:i}=e??await r.userStatsCrewService.get(a);return i>=5e6}}class ad extends u{name="Qu'on lui fasse une statue de Bronze !";id="crew_bring_50m_xp";rankId=l.MYTHIC.id;description="Rapporter 50 000 000 XP à l'équipage";berry=5e7;xp=25e4;titleId="title_Team Player";badge=S.broship;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{xpGivenToCrew:i}=e??await r.userStatsCrewService.get(a);return i>=5e7}}const Hf=Object.freeze(Object.defineProperty({__proto__:null,UserBring1mXpToCrew:ed,UserBring500kXpToCrew:Xo,UserBring50kXpToCrew:Zo,UserBring50mXpToCrew:ad,UserBring5mXpToCrew:td},Symbol.toStringTag,{value:"Module"}));class id extends u{name="Stagiaire";id="work_100";rankId=l.COMMON.id;description="Travailler 100 fois";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{workCount:i}=e??await r.userStatsEconomyService.get(a);return i>=100}}class nd extends u{name="Alternant";id="work_300";rankId=l.RARE.id;description="Travailler 300 fois";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{workCount:i}=e??await r.userStatsEconomyService.get(a);return i>=300}}class sd extends u{name="Smicard";id="work_1000";rankId=l.EPIC.id;description="Travailler 1000 fois";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{workCount:i}=e??await r.userStatsEconomyService.get(a);return i>=1e3}}class rd extends u{name="Communiste";id="work_2000";rankId=l.LEGENDARY.id;description="Travailler 2000 fois";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{workCount:i}=e??await r.userStatsEconomyService.get(a);return i>=2e3}}class od extends u{name="Esclave";id="work_5000";rankId=l.MYTHIC.id;description="Travailler 5000 fois";berry=5e7;xp=25e4;titleId="title_Esclave";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{workCount:i}=e??await r.userStatsEconomyService.get(a);return i>=5e3}}const jf=Object.freeze(Object.defineProperty({__proto__:null,Work1000Quest:sd,Work100Quest:id,Work2000Quest:rd,Work300Quest:nd,Work5000Quest:od},Symbol.toStringTag,{value:"Module"}));class dd extends u{name="Timide";id="write_10_chats";rankId=l.COMMON.id;description="Écrire dans 10 chats différents";berry=1e4;xp=1e3;badge=S.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{writeDifferentChatIds:i}=e??await r.userStatsEngagementService.get(a);return i.length>=10}}class ld extends u{name="Curieux";id="write_20_chats";rankId=l.RARE.id;description="Écrire dans 20 chats différents";berry=1e5;xp=1e4;badge=S.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{writeDifferentChatIds:i}=e??await r.userStatsEngagementService.get(a);return i.length>=20}}class cd extends u{name="Voyeur";id="write_50_chats";rankId=l.EPIC.id;description="Écrire dans 50 chats différents";berry=5e5;xp=5e4;badge=S.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{writeDifferentChatIds:i}=e??await r.userStatsEngagementService.get(a);return i.length>=50}}class ud extends u{name="Philanthrope";id="write_100_chats";rankId=l.LEGENDARY.id;description="Écrire dans 100 chats différents";berry=1e6;xp=1e5;badge=S.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{writeDifferentChatIds:i}=e??await r.userStatsEngagementService.get(a);return i.length>=100}}class hd extends u{name="Explorateur";id="write_200_chats";rankId=l.MYTHIC.id;description="Écrire dans 200 chats différents";berry=1e7;xp=25e4;titleId="title_Explorateur";badge=S.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{writeDifferentChatIds:i}=e??await r.userStatsEngagementService.get(a);return i.length>=200}}const Bf=Object.freeze(Object.defineProperty({__proto__:null,Write100Chats:ud,Write10Chats:dd,Write200Chats:hd,Write20Chats:ld,Write50Chats:cd},Symbol.toStringTag,{value:"Module"})),nt=[...Object.values(lf),...Object.values(cf),...Object.values(uf),...Object.values(hf),...Object.values(ff),...Object.values(_f),...Object.values(pf),...Object.values(mf),...Object.values(Ef),...Object.values(gf),...Object.values(Sf),...Object.values(yf),...Object.values(Mf),...Object.values(Tf),...Object.values(wf),...Object.values(bf),...Object.values(Af),...Object.values(Rf),...Object.values(Df),...Object.values(Nf),...Object.values(If),...Object.values(kf),...Object.values(Cf),...Object.values(vf),...Object.values(Of),...Object.values(xf),...Object.values(Lf),...Object.values(Vf),...Object.values(Pf),...Object.values(Yf),...Object.values(Wf),...Object.values(Qf),...Object.values(Ff),...Object.values(df),...Object.values(Hf),...Object.values(jf),...Object.values(Bf)],st=nt.map(t=>new t().id);if(st.length!==[...new Set(st)].length)throw Error(`All quest ids MUST be unique. Duplicated ids detected : ${$h(st,[...new Set(st)])}`);const fd=async t=>(await r.userQuestService.getMany({user:t,questId:/be_level_/,status:Wt.COMPLETED})).length,_d=async(t,e)=>{const a=await fd(t);return(await r.ornamentService.getAllFactionTitles()).find(n=>n.strength===a&&n.faction===e)},Gf=(t,e)=>{const a=t.badge,i=t.isFactionBadge;return a?Da(a)?a.emojis[a.isProgressive.findIndex(n=>n===t.rankId)]:a.emojis:i?Gh.factions[`b_${e}_${t.rankId}`]:""},$f=t=>{const[e,a]=t.split("_"),i=Object.values(S).find(n=>n.id===e);if(i)return Da(i)?i.emojis[i.isProgressive.findIndex(n=>n===a)]:i.emojis},zf=t=>{for(const e of nt){const a=new e;if(a.id===t)return a}return null},pd=t=>nt.filter(e=>{let a=!0;return"crewDependencies"in e&&(a=e.crewDependencies.includes(t)),a&&e.dependencies.includes(t)}),md=t=>nt.filter(e=>"crewDependencies"in e?e.crewDependencies.includes(t):!1),qf=async(t,e,a,{berry:i,xp:n})=>{const s=await r.userService.getByObjectId(e),o=await r.userQuestService.getStreakMultiplier(e,t.id),c=await _d(e,s.faction),{badge:h,isFactionBadge:f,rankId:p,name:g,description:_,daily:w,secret:N,titleId:W}=t,x=await r.ornamentService.get(W??"");return a.Image().setImageName(`quest_success_${p}`).setDimensions(2080,636).draw(),h?a.Image().setImageName(Da(h)?`cropped_badge_${h.img}_${p}`:`cropped_badge_${h.img}`).setOrigin(be.CENTER).setScale(2).setPosition(370,318).draw():f&&s.faction!=="citizen"?a.Image().setImageName(`cropped_badge_${s.faction}_${p}`).setOrigin(be.CENTER).setScale(2).setPosition(370,318).draw():a.Image().setImageName(`badge_default_${p}`).setScale(2).setOrigin(be.CENTER).setPosition(370,318).draw(),a.Text(w?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(l[p].color).draw(),a.Text(g).setPosition(739,325).setOrigin(be.BOTTOM_LEFT).setFont("poppins",g.length>=35?65-(g.length-35):65).draw(),a.Text(N?"Succès caché":_).setPosition(739,360).setFont("poppins_italic",35).draw(),a.Text(`Récompenses: ${Yt(i)}${w&&o>1?` (+${Yt(i*(o-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(be.LEFT).draw(i!==0).next((v,I)=>ue(v.Image(),I)).setImageName("quest_berry").setDimensions(50,79).draw(i!==0).next((v,I)=>ue(v.Text(` / ${Yt(n)}${w&&o>1?` (+${Yt(n*(o-1))})`:""} `),I)).draw(n!==0).next((v,I)=>ue(v.Image(),I)).setImageName("quest_xp").setDimensions(57,59).draw(n!==0).next((v,I)=>ue(v.Text(` combo x${o}`),I)).draw(w&&o>1).next((v,I)=>ue(v.Text(" et la possibilité "),I)).draw(f&&s.faction==="citizen").next((v,I)=>ue(v.Text("de choisir ta faction"),I)).setFont("poppins_bold",35).draw(f&&s.faction==="citizen").next((v,I)=>ue(v.Text(" et le titre "),I)).setFont("poppins",35).draw(!!W||f&&s.faction!=="citizen").next((v,I)=>ue(v.Text(x?.name??""),I)).setFont("poppins_bold",35).setColor((x?.rankId&&l[x.rankId].color)??"white").draw(!!x).next((v,I)=>ue(v.Text(c?.name??""),I)).setColor((c?.rankId&&l[c.rankId].color)??"white").draw(f&&!!c),await a.encode("webp")},Kf=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"];d.ALL_QUESTS=nt,d.ALL_QUEST_IDS=st,d.Almanax=nn,d.Annihilation=Fo,d.BeLevel10=Pr,d.BeLevel100=$r,d.BeLevel20=Yr,d.BeLevel30=Wr,d.BeLevel40=Qr,d.BeLevel50=Fr,d.BeLevel60=Hr,d.BeLevel70=jr,d.BeLevel80=Br,d.BeLevel90=Gr,d.Bet10M=Ln,d.Bet666=br,d.BetMinValue=On,d.Birthday=Wn,d.BotPing=Qn,d.Champion=jo,d.ChestOpen1000Quest=Lr,d.ChestOpen150Quest=Or,d.ChestOpen2000Quest=Vr,d.ChestOpen500Quest=xr,d.ChestOpen50Quest=vr,d.Craft1000Times=Ts,d.Craft100CookedMeals=As,d.Craft100Scrolls=vs,d.Craft10CookedMeals=ws,d.Craft10Scrolls=Is,d.Craft200Times=ys,d.Craft20Scrolls=ks,d.Craft20Times=gs,d.Craft250CookedMeals=Rs,d.Craft500CookedMeals=Ds,d.Craft500Times=Ms,d.Craft50CookedMeals=bs,d.Craft50Scrolls=Cs,d.Craft50Times=Ss,d.Craft5Scrolls=Ns,d.CrewAllMembersDaily=Ys,d.CrewBeLevel10=Qs,d.CrewBeLevel100=Bs,d.CrewBeLevel25=Fs,d.CrewBeLevel50=Hs,d.CrewBeLevel75=js,d.CrewBreakShip=Ws,d.CrewCarpenter1Month=xs,d.CrewCarpenter1Week=Os,d.CrewCarpenter1Year=Us,d.CrewCarpenter3Months=Ls,d.CrewCarpenter6Months=Vs,d.CrewCreateOrJoin=Ur,d.CrewHave100MBerry=Gs,d.CrewHave1MdBerry=zs,d.CrewHave500MBerry=$s,d.CrewHave50MdBerry=Ks,d.CrewHave5MdBerry=qs,d.CrewSize10=Xs,d.CrewSize12=er,d.CrewSize15=tr,d.CrewSize5=Js,d.CrewSize7=Zs,d.CrewValidateDaily=Ps,d.CrewVocal10=nr,d.CrewVocal12=sr,d.CrewVocal15=rr,d.CrewVocal5=ar,d.CrewVocal7=ir,d.CursedBranch=xo,d.DailyAll=it,d.DailyAnswer=xa,d.DailyCheckProfile=La,d.DailyReadEdito=Oa,d.DailySendMessage=va,d.DailyVocal=Va,d.DoubleSix=_r,d.Draw1000Quest=lr,d.Draw100Quest=or,d.Draw2000Quest=cr,d.Draw300Quest=dr,d.Draw5000Quest=ur,d.DrawDoubleSix=pr,d.Drink1000Alcohols=dn,d.Drink1000Beer=Sn,d.Drink1000Quest=Ir,d.Drink1000Rhum=_n,d.Drink1000Wine=bn,d.Drink100Beer=mn,d.Drink100Rhum=un,d.Drink100Today=Rr,d.Drink100Wine=Mn,d.Drink10Beer=pn,d.Drink10Rhum=cn,d.Drink10Wine=yn,d.Drink2000Alcohols=ln,d.Drink2000Quest=kr,d.Drink200Quest=Dr,d.Drink250Alcohols=rn,d.Drink250Beer=En,d.Drink250Rhum=hn,d.Drink250Wine=Tn,d.Drink5000Quest=Cr,d.Drink500Alcohols=on,d.Drink500Beer=gn,d.Drink500Quest=Nr,d.Drink500Rhum=fn,d.Drink500Wine=wn,d.Drink50Alcohols=sn,d.EZ=zo,d.Edito=hr,d.Everyone=fr,d.Finish100Raids=Zr,d.Finish10Raids=qr,d.Finish200Raids=Xr,d.Finish25Raids=Kr,d.Finish50Raids=Jr,d.GiantHunter=Uo,d.GuessInOne=wr,d.Have100Agility=qn,d.Have100Chance=ss,d.Have100Intelligence=es,d.Have100Recipe=co,d.Have100Strength=jn,d.Have100Title=No,d.Have100Vitality=cs,d.Have100Wisdom=ps,d.Have10Recipe=oo,d.Have10Title=Ro,d.Have1Background=An,d.Have1Recipe=so,d.Have250Agility=Kn,d.Have250Chance=rs,d.Have250Intelligence=ts,d.Have250Strength=Bn,d.Have250Vitality=us,d.Have250Wisdom=ms,d.Have25Agility=$n,d.Have25Background=Rn,d.Have25Chance=is,d.Have25Intelligence=Zn,d.Have25Recipe=lo,d.Have25Strength=Fn,d.Have25Vitality=ds,d.Have25Wisdom=fs,d.Have500Agility=Jn,d.Have500Chance=os,d.Have500Intelligence=as,d.Have500Strength=Gn,d.Have500Vitality=hs,d.Have500Wisdom=Es,d.Have500kBerry=Nn,d.Have500mBerry=Cn,d.Have50Agility=zn,d.Have50Background=Dn,d.Have50Chance=ns,d.Have50Intelligence=Xn,d.Have50Strength=Hn,d.Have50Title=Do,d.Have50Vitality=ls,d.Have50Wisdom=_s,d.Have50mBerry=kn,d.Have5Recipe=ro,d.Have5mBerry=In,d.Have5mdBerry=vn,d.Immortal=Oo,d.Insistent=Io,d.Lose10M=Yn,d.LoseAll5GamesInRow=gr,d.LoseEverything=xn,d.Massacre=Qo,d.Master=Bo,d.Paper100=yr,d.Participation=qo,d.Phoenix=vo,d.Premium=zr,d.QUEST_ASSET_IMAGES=Kf,d.RandomMessage100Quest=ao,d.RandomMessage200Quest=io,d.RandomMessage20Quest=eo,d.RandomMessage500Quest=no,d.RandomMessage50Quest=to,d.Rebirth=Co,d.Report=uo,d.Resurrection=ko,d.Rock100=Tr,d.Sabotage=Po,d.Scissor100=Mr,d.SevenQuitteOuDouble=mr,d.ShootingStar=$o,d.Sniper=Wo,d.SpendShop500M=go,d.SpendShop50M=Eo,d.SpendShop50Ml=yo,d.SpendShop5Ml=So,d.TenBlackJack=Sr,d.TotalBet10M=Un,d.TotalBet1Md=Pn,d.TournamentTop64=Lo,d.TrollSupreme=Ho,d.Unstoppable=Go,d.UserBring1mXpToCrew=ed,d.UserBring500kXpToCrew=Xo,d.UserBring50kXpToCrew=Zo,d.UserBring50mXpToCrew=ad,d.UserBring5mXpToCrew=td,d.UserCrew10Percent=Ko,d.UserCrew90Percent=Jo,d.VictoryByKO=Yo,d.Voice10Hours=Mo,d.Voice2500Hours=bo,d.Voice250Hours=wo,d.Voice25Hours=To,d.Voice5000Hours=Ao,d.WinAll5GamesInRow=Er,d.WinLose10=Ar,d.WinOn10MBet=Vn,d.Work1000Quest=sd,d.Work100Quest=id,d.Work2000Quest=rd,d.Work300Quest=nd,d.Work5000Quest=od,d.Write100Chats=ud,d.Write10Chats=dd,d.Write200Chats=hd,d.Write20Chats=ld,d.Write50Chats=cd,d.ZeroScored=Vo,d.emitQuestCompleteEvent=Ca,d.getBadgeEmojisFromId=$f,d.getFactionTitle=_d,d.getFactionTitleStrength=fd,d.getQuestBadgeEmojis=Gf,d.getQuestById=zf,d.getQuestsByCrewDependency=md,d.getQuestsByDependency=pd,d.onQuestCompleteEvent=of,d.questCanvas=qf,d.send100000Messages=po,d.send1000Messages=fo,d.send100Messages=ho,d.send200000Messages=mo,d.send25000Messages=_o,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));