@opfr/services 0.42.2 → 0.43.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.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/services/user-meta/query/updates.d.ts +1 -1
- package/dist/services/user-meta/query/updates.d.ts.map +1 -1
- package/dist/services/user-meta/types.d.ts +1 -1
- package/dist/services/user-meta/types.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.umd.js
CHANGED
|
@@ -7,4 +7,4 @@ var ks;function y(){return ks.apply(null,arguments)}function Si(t){ks=t}function
|
|
|
7
7
|
[`+i+"] ";for(o in arguments[0])R(arguments[0],o)&&(n+=o+": "+arguments[0][o]+", ");n=n.slice(0,-2)}else n=arguments[i];r.push(n)}Cs(t+`
|
|
8
8
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
9
9
|
`+new Error().stack),s=!1}return a.apply(this,arguments)},a)}var Us={};function xs(t,a){y.deprecationHandler!=null&&y.deprecationHandler(t,a),Us[t]||(Cs(a),Us[t]=!0)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;function re(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function ki(t){var a,s;for(s in t)R(t,s)&&(a=t[s],re(a)?this[s]=a:this["_"+s]=a);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ua(t,a){var s=ve({},t),r;for(r in a)R(a,r)&&(Oe(t[r])&&Oe(a[r])?(s[r]={},ve(s[r],t[r]),ve(s[r],a[r])):a[r]!=null?s[r]=a[r]:delete s[r]);for(r in t)R(t,r)&&!R(a,r)&&Oe(t[r])&&(s[r]=ve({},s[r]));return s}function fa(t){t!=null&&this.set(t)}var ha;Object.keys?ha=Object.keys:ha=function(t){var a,s=[];for(a in t)R(t,a)&&s.push(a);return s};var vi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ri(t,a,s){var r=this._calendar[t]||this._calendar.sameElse;return re(r)?r.call(a,s):r}function ne(t,a,s){var r=""+Math.abs(t),n=a-r.length,i=t>=0;return(i?s?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+r}var pa=/(\[[^\[]*\])|(\\)?([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,kt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ma={},Ie={};function w(t,a,s,r){var n=r;typeof r=="string"&&(n=function(){return this[r]()}),t&&(Ie[t]=n),a&&(Ie[a[0]]=function(){return ne(n.apply(this,arguments),a[1],a[2])}),s&&(Ie[s]=function(){return this.localeData().ordinal(n.apply(this,arguments),t)})}function Ci(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Ui(t){var a=t.match(pa),s,r;for(s=0,r=a.length;s<r;s++)Ie[a[s]]?a[s]=Ie[a[s]]:a[s]=Ci(a[s]);return function(n){var i="",o;for(o=0;o<r;o++)i+=re(a[o])?a[o].call(n,t):a[o];return i}}function vt(t,a){return t.isValid()?(a=Bs(a,t.localeData()),ma[a]=ma[a]||Ui(a),ma[a](t)):t.localeData().invalidDate()}function Bs(t,a){var s=5;function r(n){return a.longDateFormat(n)||n}for(kt.lastIndex=0;s>=0&&kt.test(t);)t=t.replace(kt,r),kt.lastIndex=0,s-=1;return t}var xi={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 Bi(t){var a=this._longDateFormat[t],s=this._longDateFormat[t.toUpperCase()];return a||!s?a:(this._longDateFormat[t]=s.match(pa).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var Oi="Invalid date";function Di(){return this._invalidDate}var Ai="%d",Ni=/\d{1,2}/;function $i(t){return this._ordinal.replace("%d",t)}var Ei={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 Fi(t,a,s,r){var n=this._relativeTime[s];return re(n)?n(t,a,s,r):n.replace(/%d/i,t)}function Ii(t,a){var s=this._relativeTime[t>0?"future":"past"];return re(s)?s(a):s.replace(/%s/i,a)}var Os={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 V(t){return typeof t=="string"?Os[t]||Os[t.toLowerCase()]:void 0}function ya(t){var a={},s,r;for(r in t)R(t,r)&&(s=V(r),s&&(a[s]=t[r]));return a}var Yi={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 Li(t){var a=[],s;for(s in t)R(t,s)&&a.push({unit:s,priority:Yi[s]});return a.sort(function(r,n){return r.priority-n.priority}),a}var Ds=/\d/,q=/\d\d/,As=/\d{3}/,ga=/\d{4}/,Rt=/[+-]?\d{6}/,O=/\d\d?/,Ns=/\d\d\d\d?/,$s=/\d\d\d\d\d\d?/,Ct=/\d{1,3}/,wa=/\d{1,4}/,Ut=/[+-]?\d{1,6}/,Ye=/\d+/,xt=/[+-]?\d+/,Pi=/Z|[+-]\d\d:?\d\d/gi,Bt=/Z|[+-]\d\d(?::?\d\d)?/gi,Ti=/[+-]?\d+(\.\d{1,3})?/,Je=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Le=/^[1-9]\d?/,_a=/^([1-9]\d|\d)/,Ot;Ot={};function g(t,a,s){Ot[t]=re(a)?a:function(r,n){return r&&s?s:a}}function ji(t,a){return R(Ot,t)?Ot[t](a._strict,a._locale):new RegExp(Qi(t))}function Qi(t){return fe(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,s,r,n,i){return s||r||n||i}))}function fe(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function z(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function M(t){var a=+t,s=0;return a!==0&&isFinite(a)&&(s=z(a)),s}var ba={};function x(t,a){var s,r=a,n;for(typeof t=="string"&&(t=[t]),ue(a)&&(r=function(i,o){o[a]=M(i)}),n=t.length,s=0;s<n;s++)ba[t[s]]=r}function et(t,a){x(t,function(s,r,n,i){n._w=n._w||{},a(s,n._w,n,i)})}function Hi(t,a,s){a!=null&&R(ba,t)&&ba[t](a,s._a,s,t)}function Dt(t){return t%4===0&&t%100!==0||t%400===0}var P=0,he=1,ie=2,$=3,ee=4,pe=5,De=6,qi=7,Wi=8;w("Y",0,0,function(){var t=this.year();return t<=9999?ne(t,4):"+"+t}),w(0,["YY",2],0,function(){return this.year()%100}),w(0,["YYYY",4],0,"year"),w(0,["YYYYY",5],0,"year"),w(0,["YYYYYY",6,!0],0,"year"),g("Y",xt),g("YY",O,q),g("YYYY",wa,ga),g("YYYYY",Ut,Rt),g("YYYYYY",Ut,Rt),x(["YYYYY","YYYYYY"],P),x("YYYY",function(t,a){a[P]=t.length===2?y.parseTwoDigitYear(t):M(t)}),x("YY",function(t,a){a[P]=y.parseTwoDigitYear(t)}),x("Y",function(t,a){a[P]=parseInt(t,10)});function tt(t){return Dt(t)?366:365}y.parseTwoDigitYear=function(t){return M(t)+(M(t)>68?1900:2e3)};var Es=Pe("FullYear",!0);function Ki(){return Dt(this.year())}function Pe(t,a){return function(s){return s!=null?(Fs(this,t,s),y.updateOffset(this,a),this):at(this,t)}}function at(t,a){if(!t.isValid())return NaN;var s=t._d,r=t._isUTC;switch(a){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 Fs(t,a,s){var r,n,i,o,f;if(!(!t.isValid()||isNaN(s))){switch(r=t._d,n=t._isUTC,a){case"Milliseconds":return void(n?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(n?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(n?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(n?r.setUTCHours(s):r.setHours(s));case"Date":return void(n?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}i=s,o=t.month(),f=t.date(),f=f===29&&o===1&&!Dt(i)?28:f,n?r.setUTCFullYear(i,o,f):r.setFullYear(i,o,f)}}function Gi(t){return t=V(t),re(this[t])?this[t]():this}function Vi(t,a){if(typeof t=="object"){t=ya(t);var s=Li(t),r,n=s.length;for(r=0;r<n;r++)this[s[r].unit](t[s[r].unit])}else if(t=V(t),re(this[t]))return this[t](a);return this}function zi(t,a){return(t%a+a)%a}var N;Array.prototype.indexOf?N=Array.prototype.indexOf:N=function(t){var a;for(a=0;a<this.length;++a)if(this[a]===t)return a;return-1};function Sa(t,a){if(isNaN(t)||isNaN(a))return NaN;var s=zi(a,12);return t+=(a-s)/12,s===1?Dt(t)?29:28:31-s%7%2}w("M",["MM",2],"Mo",function(){return this.month()+1}),w("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),w("MMMM",0,0,function(t){return this.localeData().months(this,t)}),g("M",O,Le),g("MM",O,q),g("MMM",function(t,a){return a.monthsShortRegex(t)}),g("MMMM",function(t,a){return a.monthsRegex(t)}),x(["M","MM"],function(t,a){a[he]=M(t)-1}),x(["MMM","MMMM"],function(t,a,s,r){var n=s._locale.monthsParse(t,r,s._strict);n!=null?a[he]=n:b(s).invalidMonth=t});var Xi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Is="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ys=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Zi=Je,Ji=Je;function el(t,a){return t?Z(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ys).test(a)?"format":"standalone"][t.month()]:Z(this._months)?this._months:this._months.standalone}function tl(t,a){return t?Z(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ys.test(a)?"format":"standalone"][t.month()]:Z(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function al(t,a,s){var r,n,i,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=se([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return s?a==="MMM"?(n=N.call(this._shortMonthsParse,o),n!==-1?n:null):(n=N.call(this._longMonthsParse,o),n!==-1?n:null):a==="MMM"?(n=N.call(this._shortMonthsParse,o),n!==-1?n:(n=N.call(this._longMonthsParse,o),n!==-1?n:null)):(n=N.call(this._longMonthsParse,o),n!==-1?n:(n=N.call(this._shortMonthsParse,o),n!==-1?n:null))}function sl(t,a,s){var r,n,i;if(this._monthsParseExact)return al.call(this,t,a,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=se([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),s&&a==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(s&&a==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!s&&this._monthsParse[r].test(t))return r}}function Ls(t,a){if(!t.isValid())return t;if(typeof a=="string"){if(/^\d+$/.test(a))a=M(a);else if(a=t.localeData().monthsParse(a),!ue(a))return t}var s=a,r=t.date();return r=r<29?r:Math.min(r,Sa(t.year(),s)),t._isUTC?t._d.setUTCMonth(s,r):t._d.setMonth(s,r),t}function Ps(t){return t!=null?(Ls(this,t),y.updateOffset(this,!0),this):at(this,"Month")}function rl(){return Sa(this.year(),this.month())}function nl(t){return this._monthsParseExact?(R(this,"_monthsRegex")||Ts.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(R(this,"_monthsShortRegex")||(this._monthsShortRegex=Zi),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function il(t){return this._monthsParseExact?(R(this,"_monthsRegex")||Ts.call(this),t?this._monthsStrictRegex:this._monthsRegex):(R(this,"_monthsRegex")||(this._monthsRegex=Ji),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function Ts(){function t(m,_){return _.length-m.length}var a=[],s=[],r=[],n,i,o,f;for(n=0;n<12;n++)i=se([2e3,n]),o=fe(this.monthsShort(i,"")),f=fe(this.months(i,"")),a.push(o),s.push(f),r.push(f),r.push(o);a.sort(t),s.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ll(t,a,s,r,n,i,o){var f;return t<100&&t>=0?(f=new Date(t+400,a,s,r,n,i,o),isFinite(f.getFullYear())&&f.setFullYear(t)):f=new Date(t,a,s,r,n,i,o),f}function st(t){var a,s;return t<100&&t>=0?(s=Array.prototype.slice.call(arguments),s[0]=t+400,a=new Date(Date.UTC.apply(null,s)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(t)):a=new Date(Date.UTC.apply(null,arguments)),a}function At(t,a,s){var r=7+a-s,n=(7+st(t,0,r).getUTCDay()-a)%7;return-n+r-1}function js(t,a,s,r,n){var i=(7+s-r)%7,o=At(t,r,n),f=1+7*(a-1)+i+o,m,_;return f<=0?(m=t-1,_=tt(m)+f):f>tt(t)?(m=t+1,_=f-tt(t)):(m=t,_=f),{year:m,dayOfYear:_}}function rt(t,a,s){var r=At(t.year(),a,s),n=Math.floor((t.dayOfYear()-r-1)/7)+1,i,o;return n<1?(o=t.year()-1,i=n+me(o,a,s)):n>me(t.year(),a,s)?(i=n-me(t.year(),a,s),o=t.year()+1):(o=t.year(),i=n),{week:i,year:o}}function me(t,a,s){var r=At(t,a,s),n=At(t+1,a,s);return(tt(t)-r+n)/7}w("w",["ww",2],"wo","week"),w("W",["WW",2],"Wo","isoWeek"),g("w",O,Le),g("ww",O,q),g("W",O,Le),g("WW",O,q),et(["w","ww","W","WW"],function(t,a,s,r){a[r.substr(0,1)]=M(t)});function dl(t){return rt(t,this._week.dow,this._week.doy).week}var ol={dow:0,doy:6};function cl(){return this._week.dow}function ul(){return this._week.doy}function fl(t){var a=this.localeData().week(this);return t==null?a:this.add((t-a)*7,"d")}function hl(t){var a=rt(this,1,4).week;return t==null?a:this.add((t-a)*7,"d")}w("d",0,"do","day"),w("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),w("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),w("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),w("e",0,0,"weekday"),w("E",0,0,"isoWeekday"),g("d",O),g("e",O),g("E",O),g("dd",function(t,a){return a.weekdaysMinRegex(t)}),g("ddd",function(t,a){return a.weekdaysShortRegex(t)}),g("dddd",function(t,a){return a.weekdaysRegex(t)}),et(["dd","ddd","dddd"],function(t,a,s,r){var n=s._locale.weekdaysParse(t,r,s._strict);n!=null?a.d=n:b(s).invalidWeekday=t}),et(["d","e","E"],function(t,a,s,r){a[r]=M(t)});function pl(t,a){return typeof t!="string"?t:isNaN(t)?(t=a.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function ml(t,a){return typeof t=="string"?a.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ma(t,a){return t.slice(a,7).concat(t.slice(0,a))}var yl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),gl="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wl=Je,_l=Je,bl=Je;function Sl(t,a){var s=Z(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return t===!0?Ma(s,this._week.dow):t?s[t.day()]:s}function Ml(t){return t===!0?Ma(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function kl(t){return t===!0?Ma(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function vl(t,a,s){var r,n,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=se([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return s?a==="dddd"?(n=N.call(this._weekdaysParse,o),n!==-1?n:null):a==="ddd"?(n=N.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=N.call(this._minWeekdaysParse,o),n!==-1?n:null):a==="dddd"?(n=N.call(this._weekdaysParse,o),n!==-1||(n=N.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=N.call(this._minWeekdaysParse,o),n!==-1?n:null)):a==="ddd"?(n=N.call(this._shortWeekdaysParse,o),n!==-1||(n=N.call(this._weekdaysParse,o),n!==-1)?n:(n=N.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=N.call(this._minWeekdaysParse,o),n!==-1||(n=N.call(this._weekdaysParse,o),n!==-1)?n:(n=N.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function Rl(t,a,s){var r,n,i;if(this._weekdaysParseExact)return vl.call(this,t,a,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=se([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),s&&a==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(s&&a==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(s&&a==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!s&&this._weekdaysParse[r].test(t))return r}}function Cl(t){if(!this.isValid())return t!=null?this:NaN;var a=at(this,"Day");return t!=null?(t=pl(t,this.localeData()),this.add(t-a,"d")):a}function Ul(t){if(!this.isValid())return t!=null?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return t==null?a:this.add(t-a,"d")}function xl(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var a=ml(t,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function Bl(t){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(R(this,"_weekdaysRegex")||(this._weekdaysRegex=wl),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ol(t){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(R(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_l),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Dl(t){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(R(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=bl),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ka(){function t(B,Y){return Y.length-B.length}var a=[],s=[],r=[],n=[],i,o,f,m,_;for(i=0;i<7;i++)o=se([2e3,1]).day(i),f=fe(this.weekdaysMin(o,"")),m=fe(this.weekdaysShort(o,"")),_=fe(this.weekdays(o,"")),a.push(f),s.push(m),r.push(_),n.push(f),n.push(m),n.push(_);a.sort(t),s.sort(t),r.sort(t),n.sort(t),this._weekdaysRegex=new RegExp("^("+n.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("^("+a.join("|")+")","i")}function va(){return this.hours()%12||12}function Al(){return this.hours()||24}w("H",["HH",2],0,"hour"),w("h",["hh",2],0,va),w("k",["kk",2],0,Al),w("hmm",0,0,function(){return""+va.apply(this)+ne(this.minutes(),2)}),w("hmmss",0,0,function(){return""+va.apply(this)+ne(this.minutes(),2)+ne(this.seconds(),2)}),w("Hmm",0,0,function(){return""+this.hours()+ne(this.minutes(),2)}),w("Hmmss",0,0,function(){return""+this.hours()+ne(this.minutes(),2)+ne(this.seconds(),2)});function Hs(t,a){w(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}Hs("a",!0),Hs("A",!1);function qs(t,a){return a._meridiemParse}g("a",qs),g("A",qs),g("H",O,_a),g("h",O,Le),g("k",O,Le),g("HH",O,q),g("hh",O,q),g("kk",O,q),g("hmm",Ns),g("hmmss",$s),g("Hmm",Ns),g("Hmmss",$s),x(["H","HH"],$),x(["k","kk"],function(t,a,s){var r=M(t);a[$]=r===24?0:r}),x(["a","A"],function(t,a,s){s._isPm=s._locale.isPM(t),s._meridiem=t}),x(["h","hh"],function(t,a,s){a[$]=M(t),b(s).bigHour=!0}),x("hmm",function(t,a,s){var r=t.length-2;a[$]=M(t.substr(0,r)),a[ee]=M(t.substr(r)),b(s).bigHour=!0}),x("hmmss",function(t,a,s){var r=t.length-4,n=t.length-2;a[$]=M(t.substr(0,r)),a[ee]=M(t.substr(r,2)),a[pe]=M(t.substr(n)),b(s).bigHour=!0}),x("Hmm",function(t,a,s){var r=t.length-2;a[$]=M(t.substr(0,r)),a[ee]=M(t.substr(r))}),x("Hmmss",function(t,a,s){var r=t.length-4,n=t.length-2;a[$]=M(t.substr(0,r)),a[ee]=M(t.substr(r,2)),a[pe]=M(t.substr(n))});function Nl(t){return(t+"").toLowerCase().charAt(0)==="p"}var $l=/[ap]\.?m?\.?/i,El=Pe("Hours",!0);function Fl(t,a,s){return t>11?s?"pm":"PM":s?"am":"AM"}var Ws={calendar:vi,longDateFormat:xi,invalidDate:Oi,ordinal:Ai,dayOfMonthOrdinalParse:Ni,relativeTime:Ei,months:Xi,monthsShort:Is,week:ol,weekdays:yl,weekdaysMin:gl,weekdaysShort:Qs,meridiemParse:$l},A={},nt={},it;function Il(t,a){var s,r=Math.min(t.length,a.length);for(s=0;s<r;s+=1)if(t[s]!==a[s])return s;return r}function Ks(t){return t&&t.toLowerCase().replace("_","-")}function Yl(t){for(var a=0,s,r,n,i;a<t.length;){for(i=Ks(t[a]).split("-"),s=i.length,r=Ks(t[a+1]),r=r?r.split("-"):null;s>0;){if(n=Nt(i.slice(0,s).join("-")),n)return n;if(r&&r.length>=s&&Il(i,r)>=s-1)break;s--}a++}return it}function Ll(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Nt(t){var a=null,s;if(A[t]===void 0&&typeof module<"u"&&module&&module.exports&&Ll(t))try{a=it._abbr,s=require,s("./locale/"+t),Re(a)}catch{A[t]=null}return A[t]}function Re(t,a){var s;return t&&(Q(a)?s=ye(t):s=Ra(t,a),s?it=s:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),it._abbr}function Ra(t,a){if(a!==null){var s,r=Ws;if(a.abbr=t,A[t]!=null)xs("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=A[t]._config;else if(a.parentLocale!=null)if(A[a.parentLocale]!=null)r=A[a.parentLocale]._config;else if(s=Nt(a.parentLocale),s!=null)r=s._config;else return nt[a.parentLocale]||(nt[a.parentLocale]=[]),nt[a.parentLocale].push({name:t,config:a}),null;return A[t]=new fa(ua(r,a)),nt[t]&&nt[t].forEach(function(n){Ra(n.name,n.config)}),Re(t),A[t]}else return delete A[t],null}function Pl(t,a){if(a!=null){var s,r,n=Ws;A[t]!=null&&A[t].parentLocale!=null?A[t].set(ua(A[t]._config,a)):(r=Nt(t),r!=null&&(n=r._config),a=ua(n,a),r==null&&(a.abbr=t),s=new fa(a),s.parentLocale=A[t],A[t]=s),Re(t)}else A[t]!=null&&(A[t].parentLocale!=null?(A[t]=A[t].parentLocale,t===Re()&&Re(t)):A[t]!=null&&delete A[t]);return A[t]}function ye(t){var a;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return it;if(!Z(t)){if(a=Nt(t),a)return a;t=[t]}return Yl(t)}function Tl(){return ha(A)}function Ca(t){var a,s=t._a;return s&&b(t).overflow===-2&&(a=s[he]<0||s[he]>11?he:s[ie]<1||s[ie]>Sa(s[P],s[he])?ie:s[$]<0||s[$]>24||s[$]===24&&(s[ee]!==0||s[pe]!==0||s[De]!==0)?$:s[ee]<0||s[ee]>59?ee:s[pe]<0||s[pe]>59?pe:s[De]<0||s[De]>999?De:-1,b(t)._overflowDayOfYear&&(a<P||a>ie)&&(a=ie),b(t)._overflowWeeks&&a===-1&&(a=qi),b(t)._overflowWeekday&&a===-1&&(a=Wi),b(t).overflow=a),t}var jl=/^\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)?)?$/,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)?)?$/,Hl=/Z|[+-]\d\d(?::?\d\d)?/,$t=[["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]],Ua=[["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/]],ql=/^\/?Date\((-?\d+)/i,Wl=/^(?:(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}))$/,Kl={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Gs(t){var a,s,r=t._i,n=jl.exec(r)||Ql.exec(r),i,o,f,m,_=$t.length,B=Ua.length;if(n){for(b(t).iso=!0,a=0,s=_;a<s;a++)if($t[a][1].exec(n[1])){o=$t[a][0],i=$t[a][2]!==!1;break}if(o==null){t._isValid=!1;return}if(n[3]){for(a=0,s=B;a<s;a++)if(Ua[a][1].exec(n[3])){f=(n[2]||" ")+Ua[a][0];break}if(f==null){t._isValid=!1;return}}if(!i&&f!=null){t._isValid=!1;return}if(n[4])if(Hl.exec(n[4]))m="Z";else{t._isValid=!1;return}t._f=o+(f||"")+(m||""),Ba(t)}else t._isValid=!1}function Gl(t,a,s,r,n,i){var o=[Vl(t),Is.indexOf(a),parseInt(s,10),parseInt(r,10),parseInt(n,10)];return i&&o.push(parseInt(i,10)),o}function Vl(t){var a=parseInt(t,10);return a<=49?2e3+a:a<=999?1900+a:a}function zl(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Xl(t,a,s){if(t){var r=Qs.indexOf(t),n=new Date(a[0],a[1],a[2]).getDay();if(r!==n)return b(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function Zl(t,a,s){if(t)return Kl[t];if(a)return 0;var r=parseInt(s,10),n=r%100,i=(r-n)/100;return i*60+n}function Vs(t){var a=Wl.exec(zl(t._i)),s;if(a){if(s=Gl(a[4],a[3],a[2],a[5],a[6],a[7]),!Xl(a[1],s,t))return;t._a=s,t._tzm=Zl(a[8],a[9],a[10]),t._d=st.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),b(t).rfc2822=!0}else t._isValid=!1}function Jl(t){var a=ql.exec(t._i);if(a!==null){t._d=new Date(+a[1]);return}if(Gs(t),t._isValid===!1)delete t._isValid;else return;if(Vs(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:y.createFromInputFallback(t)}y.createFromInputFallback=G("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Te(t,a,s){return t??a??s}function ed(t){var a=new Date(y.now());return t._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function xa(t){var a,s,r=[],n,i,o;if(!t._d){for(n=ed(t),t._w&&t._a[ie]==null&&t._a[he]==null&&td(t),t._dayOfYear!=null&&(o=Te(t._a[P],n[P]),(t._dayOfYear>tt(o)||t._dayOfYear===0)&&(b(t)._overflowDayOfYear=!0),s=st(o,0,t._dayOfYear),t._a[he]=s.getUTCMonth(),t._a[ie]=s.getUTCDate()),a=0;a<3&&t._a[a]==null;++a)t._a[a]=r[a]=n[a];for(;a<7;a++)t._a[a]=r[a]=t._a[a]==null?a===2?1:0:t._a[a];t._a[$]===24&&t._a[ee]===0&&t._a[pe]===0&&t._a[De]===0&&(t._nextDay=!0,t._a[$]=0),t._d=(t._useUTC?st:ll).apply(null,r),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[$]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(b(t).weekdayMismatch=!0)}}function td(t){var a,s,r,n,i,o,f,m,_;a=t._w,a.GG!=null||a.W!=null||a.E!=null?(i=1,o=4,s=Te(a.GG,t._a[P],rt(D(),1,4).year),r=Te(a.W,1),n=Te(a.E,1),(n<1||n>7)&&(m=!0)):(i=t._locale._week.dow,o=t._locale._week.doy,_=rt(D(),i,o),s=Te(a.gg,t._a[P],_.year),r=Te(a.w,_.week),a.d!=null?(n=a.d,(n<0||n>6)&&(m=!0)):a.e!=null?(n=a.e+i,(a.e<0||a.e>6)&&(m=!0)):n=i),r<1||r>me(s,i,o)?b(t)._overflowWeeks=!0:m!=null?b(t)._overflowWeekday=!0:(f=js(s,r,n,i,o),t._a[P]=f.year,t._dayOfYear=f.dayOfYear)}y.ISO_8601=function(){},y.RFC_2822=function(){};function Ba(t){if(t._f===y.ISO_8601){Gs(t);return}if(t._f===y.RFC_2822){Vs(t);return}t._a=[],b(t).empty=!0;var a=""+t._i,s,r,n,i,o,f=a.length,m=0,_,B;for(n=Bs(t._f,t._locale).match(pa)||[],B=n.length,s=0;s<B;s++)i=n[s],r=(a.match(ji(i,t))||[])[0],r&&(o=a.substr(0,a.indexOf(r)),o.length>0&&b(t).unusedInput.push(o),a=a.slice(a.indexOf(r)+r.length),m+=r.length),Ie[i]?(r?b(t).empty=!1:b(t).unusedTokens.push(i),Hi(i,r,t)):t._strict&&!r&&b(t).unusedTokens.push(i);b(t).charsLeftOver=f-m,a.length>0&&b(t).unusedInput.push(a),t._a[$]<=12&&b(t).bigHour===!0&&t._a[$]>0&&(b(t).bigHour=void 0),b(t).parsedDateParts=t._a.slice(0),b(t).meridiem=t._meridiem,t._a[$]=ad(t._locale,t._a[$],t._meridiem),_=b(t).era,_!==null&&(t._a[P]=t._locale.erasConvertYear(_,t._a[P])),xa(t),Ca(t)}function ad(t,a,s){var r;return s==null?a:t.meridiemHour!=null?t.meridiemHour(a,s):(t.isPM!=null&&(r=t.isPM(s),r&&a<12&&(a+=12),!r&&a===12&&(a=0)),a)}function sd(t){var a,s,r,n,i,o,f=!1,m=t._f.length;if(m===0){b(t).invalidFormat=!0,t._d=new Date(NaN);return}for(n=0;n<m;n++)i=0,o=!1,a=ca({},t),t._useUTC!=null&&(a._useUTC=t._useUTC),a._f=t._f[n],Ba(a),da(a)&&(o=!0),i+=b(a).charsLeftOver,i+=b(a).unusedTokens.length*10,b(a).score=i,f?i<r&&(r=i,s=a):(r==null||i<r||o)&&(r=i,s=a,o&&(f=!0));ve(t,s||a)}function rd(t){if(!t._d){var a=ya(t._i),s=a.day===void 0?a.date:a.day;t._a=vs([a.year,a.month,s,a.hour,a.minute,a.second,a.millisecond],function(r){return r&&parseInt(r,10)}),xa(t)}}function nd(t){var a=new Ze(Ca(zs(t)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function zs(t){var a=t._i,s=t._f;return t._locale=t._locale||ye(t._l),a===null||s===void 0&&a===""?Mt({nullInput:!0}):(typeof a=="string"&&(t._i=a=t._locale.preparse(a)),J(a)?new Ze(Ca(a)):(Xe(a)?t._d=a:Z(s)?sd(t):s?Ba(t):id(t),da(t)||(t._d=null),t))}function id(t){var a=t._i;Q(a)?t._d=new Date(y.now()):Xe(a)?t._d=new Date(a.valueOf()):typeof a=="string"?Jl(t):Z(a)?(t._a=vs(a.slice(0),function(s){return parseInt(s,10)}),xa(t)):Oe(a)?rd(t):ue(a)?t._d=new Date(a):y.createFromInputFallback(t)}function Xs(t,a,s,r,n){var i={};return(a===!0||a===!1)&&(r=a,a=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(Oe(t)&&ia(t)||Z(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=n,i._l=s,i._i=t,i._f=a,i._strict=r,nd(i)}function D(t,a,s,r){return Xs(t,a,s,r,!1)}var ld=G("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=D.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Mt()}),dd=G("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=D.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Mt()});function Zs(t,a){var s,r;if(a.length===1&&Z(a[0])&&(a=a[0]),!a.length)return D();for(s=a[0],r=1;r<a.length;++r)(!a[r].isValid()||a[r][t](s))&&(s=a[r]);return s}function od(){var t=[].slice.call(arguments,0);return Zs("isBefore",t)}function cd(){var t=[].slice.call(arguments,0);return Zs("isAfter",t)}var ud=function(){return Date.now?Date.now():+new Date},lt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function fd(t){var a,s=!1,r,n=lt.length;for(a in t)if(R(t,a)&&!(N.call(lt,a)!==-1&&(t[a]==null||!isNaN(t[a]))))return!1;for(r=0;r<n;++r)if(t[lt[r]]){if(s)return!1;parseFloat(t[lt[r]])!==M(t[lt[r]])&&(s=!0)}return!0}function hd(){return this._isValid}function pd(){return te(NaN)}function Et(t){var a=ya(t),s=a.year||0,r=a.quarter||0,n=a.month||0,i=a.week||a.isoWeek||0,o=a.day||0,f=a.hour||0,m=a.minute||0,_=a.second||0,B=a.millisecond||0;this._isValid=fd(a),this._milliseconds=+B+_*1e3+m*6e4+f*1e3*60*60,this._days=+o+i*7,this._months=+n+r*3+s*12,this._data={},this._locale=ye(),this._bubble()}function Ft(t){return t instanceof Et}function Oa(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function md(t,a,s){var r=Math.min(t.length,a.length),n=Math.abs(t.length-a.length),i=0,o;for(o=0;o<r;o++)M(t[o])!==M(a[o])&&i++;return i+n}function Js(t,a){w(t,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+ne(~~(s/60),2)+a+ne(~~s%60,2)})}Js("Z",":"),Js("ZZ",""),g("Z",Bt),g("ZZ",Bt),x(["Z","ZZ"],function(t,a,s){s._useUTC=!0,s._tzm=Da(Bt,t)});var yd=/([\+\-]|\d\d)/gi;function Da(t,a){var s=(a||"").match(t),r,n,i;return s===null?null:(r=s[s.length-1]||[],n=(r+"").match(yd)||["-",0,0],i=+(n[1]*60)+M(n[2]),i===0?0:n[0]==="+"?i:-i)}function Aa(t,a){var s,r;return a._isUTC?(s=a.clone(),r=(J(t)||Xe(t)?t.valueOf():D(t).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),y.updateOffset(s,!1),s):D(t).local()}function Na(t){return-Math.round(t._d.getTimezoneOffset())}y.updateOffset=function(){};function gd(t,a,s){var r=this._offset||0,n;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=Da(Bt,t),t===null)return this}else Math.abs(t)<16&&!s&&(t=t*60);return!this._isUTC&&a&&(n=Na(this)),this._offset=t,this._isUTC=!0,n!=null&&this.add(n,"m"),r!==t&&(!a||this._changeInProgress?sr(this,te(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Na(this)}function wd(t,a){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,a),this):-this.utcOffset()}function _d(t){return this.utcOffset(0,t)}function bd(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Na(this),"m")),this}function Sd(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=Da(Pi,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Md(t){return this.isValid()?(t=t?D(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function kd(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vd(){if(!Q(this._isDSTShifted))return this._isDSTShifted;var t={},a;return ca(t,this),t=zs(t),t._a?(a=t._isUTC?se(t._a):D(t._a),this._isDSTShifted=this.isValid()&&md(t._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Rd(){return this.isValid()?!this._isUTC:!1}function Cd(){return this.isValid()?this._isUTC:!1}function er(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ud=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,xd=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function te(t,a){var s=t,r=null,n,i,o;return Ft(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:ue(t)||!isNaN(+t)?(s={},a?s[a]=+t:s.milliseconds=+t):(r=Ud.exec(t))?(n=r[1]==="-"?-1:1,s={y:0,d:M(r[ie])*n,h:M(r[$])*n,m:M(r[ee])*n,s:M(r[pe])*n,ms:M(Oa(r[De]*1e3))*n}):(r=xd.exec(t))?(n=r[1]==="-"?-1:1,s={y:Ae(r[2],n),M:Ae(r[3],n),w:Ae(r[4],n),d:Ae(r[5],n),h:Ae(r[6],n),m:Ae(r[7],n),s:Ae(r[8],n)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(o=Bd(D(s.from),D(s.to)),s={},s.ms=o.milliseconds,s.M=o.months),i=new Et(s),Ft(t)&&R(t,"_locale")&&(i._locale=t._locale),Ft(t)&&R(t,"_isValid")&&(i._isValid=t._isValid),i}te.fn=Et.prototype,te.invalid=pd;function Ae(t,a){var s=t&&parseFloat(t.replace(",","."));return(isNaN(s)?0:s)*a}function tr(t,a){var s={};return s.months=a.month()-t.month()+(a.year()-t.year())*12,t.clone().add(s.months,"M").isAfter(a)&&--s.months,s.milliseconds=+a-+t.clone().add(s.months,"M"),s}function Bd(t,a){var s;return t.isValid()&&a.isValid()?(a=Aa(a,t),t.isBefore(a)?s=tr(t,a):(s=tr(a,t),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function ar(t,a){return function(s,r){var n,i;return r!==null&&!isNaN(+r)&&(xs(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=s,s=r,r=i),n=te(s,r),sr(this,n,t),this}}function sr(t,a,s,r){var n=a._milliseconds,i=Oa(a._days),o=Oa(a._months);t.isValid()&&(r=r??!0,o&&Ls(t,at(t,"Month")+o*s),i&&Fs(t,"Date",at(t,"Date")+i*s),n&&t._d.setTime(t._d.valueOf()+n*s),r&&y.updateOffset(t,i||o))}var Od=ar(1,"add"),Dd=ar(-1,"subtract");function rr(t){return typeof t=="string"||t instanceof String}function Ad(t){return J(t)||Xe(t)||rr(t)||ue(t)||$d(t)||Nd(t)||t===null||t===void 0}function Nd(t){var a=Oe(t)&&!ia(t),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"],n,i,o=r.length;for(n=0;n<o;n+=1)i=r[n],s=s||R(t,i);return a&&s}function $d(t){var a=Z(t),s=!1;return a&&(s=t.filter(function(r){return!ue(r)&&rr(t)}).length===0),a&&s}function Ed(t){var a=Oe(t)&&!ia(t),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,i;for(n=0;n<r.length;n+=1)i=r[n],s=s||R(t,i);return a&&s}function Fd(t,a){var s=t.diff(a,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function Id(t,a){arguments.length===1&&(arguments[0]?Ad(arguments[0])?(t=arguments[0],a=void 0):Ed(arguments[0])&&(a=arguments[0],t=void 0):(t=void 0,a=void 0));var s=t||D(),r=Aa(s,this).startOf("day"),n=y.calendarFormat(this,r)||"sameElse",i=a&&(re(a[n])?a[n].call(this,s):a[n]);return this.format(i||this.localeData().calendar(n,this,D(s)))}function Yd(){return new Ze(this)}function Ld(t,a){var s=J(t)?t:D(t);return this.isValid()&&s.isValid()?(a=V(a)||"millisecond",a==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(a).valueOf()):!1}function Pd(t,a){var s=J(t)?t:D(t);return this.isValid()&&s.isValid()?(a=V(a)||"millisecond",a==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(a).valueOf()<s.valueOf()):!1}function Td(t,a,s,r){var n=J(t)?t:D(t),i=J(a)?a:D(a);return this.isValid()&&n.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(n,s):!this.isBefore(n,s))&&(r[1]===")"?this.isBefore(i,s):!this.isAfter(i,s))):!1}function jd(t,a){var s=J(t)?t:D(t),r;return this.isValid()&&s.isValid()?(a=V(a)||"millisecond",a==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(a).valueOf()<=r&&r<=this.clone().endOf(a).valueOf())):!1}function Qd(t,a){return this.isSame(t,a)||this.isAfter(t,a)}function Hd(t,a){return this.isSame(t,a)||this.isBefore(t,a)}function qd(t,a,s){var r,n,i;if(!this.isValid())return NaN;if(r=Aa(t,this),!r.isValid())return NaN;switch(n=(r.utcOffset()-this.utcOffset())*6e4,a=V(a),a){case"year":i=It(this,r)/12;break;case"month":i=It(this,r);break;case"quarter":i=It(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-n)/864e5;break;case"week":i=(this-r-n)/6048e5;break;default:i=this-r}return s?i:z(i)}function It(t,a){if(t.date()<a.date())return-It(a,t);var s=(a.year()-t.year())*12+(a.month()-t.month()),r=t.clone().add(s,"months"),n,i;return a-r<0?(n=t.clone().add(s-1,"months"),i=(a-r)/(r-n)):(n=t.clone().add(s+1,"months"),i=(a-r)/(n-r)),-(s+i)||0}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Wd(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Kd(t){if(!this.isValid())return null;var a=t!==!0,s=a?this.clone().utc():this;return s.year()<0||s.year()>9999?vt(s,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):re(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",vt(s,"Z")):vt(s,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Gd(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",a="",s,r,n,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),s="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=a+'[")]',this.format(s+r+n+i)}function Vd(t){t||(t=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var a=vt(this,t);return this.localeData().postformat(a)}function zd(t,a){return this.isValid()&&(J(t)&&t.isValid()||D(t).isValid())?te({to:this,from:t}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Xd(t){return this.from(D(),t)}function Zd(t,a){return this.isValid()&&(J(t)&&t.isValid()||D(t).isValid())?te({from:this,to:t}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Jd(t){return this.to(D(),t)}function nr(t){var a;return t===void 0?this._locale._abbr:(a=ye(t),a!=null&&(this._locale=a),this)}var ir=G("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 lr(){return this._locale}var Yt=1e3,je=60*Yt,Lt=60*je,dr=(365*400+97)*24*Lt;function Qe(t,a){return(t%a+a)%a}function or(t,a,s){return t<100&&t>=0?new Date(t+400,a,s)-dr:new Date(t,a,s).valueOf()}function cr(t,a,s){return t<100&&t>=0?Date.UTC(t+400,a,s)-dr:Date.UTC(t,a,s)}function eo(t){var a,s;if(t=V(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?cr:or,t){case"year":a=s(this.year(),0,1);break;case"quarter":a=s(this.year(),this.month()-this.month()%3,1);break;case"month":a=s(this.year(),this.month(),1);break;case"week":a=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=s(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=Qe(a+(this._isUTC?0:this.utcOffset()*je),Lt);break;case"minute":a=this._d.valueOf(),a-=Qe(a,je);break;case"second":a=this._d.valueOf(),a-=Qe(a,Yt);break}return this._d.setTime(a),y.updateOffset(this,!0),this}function to(t){var a,s;if(t=V(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?cr:or,t){case"year":a=s(this.year()+1,0,1)-1;break;case"quarter":a=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=s(this.year(),this.month()+1,1)-1;break;case"week":a=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=Lt-Qe(a+(this._isUTC?0:this.utcOffset()*je),Lt)-1;break;case"minute":a=this._d.valueOf(),a+=je-Qe(a,je)-1;break;case"second":a=this._d.valueOf(),a+=Yt-Qe(a,Yt)-1;break}return this._d.setTime(a),y.updateOffset(this,!0),this}function ao(){return this._d.valueOf()-(this._offset||0)*6e4}function so(){return Math.floor(this.valueOf()/1e3)}function ro(){return new Date(this.valueOf())}function no(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function io(){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 lo(){return this.isValid()?this.toISOString():null}function oo(){return da(this)}function co(){return ve({},b(this))}function uo(){return b(this).overflow}function fo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}w("N",0,0,"eraAbbr"),w("NN",0,0,"eraAbbr"),w("NNN",0,0,"eraAbbr"),w("NNNN",0,0,"eraName"),w("NNNNN",0,0,"eraNarrow"),w("y",["y",1],"yo","eraYear"),w("y",["yy",2],0,"eraYear"),w("y",["yyy",3],0,"eraYear"),w("y",["yyyy",4],0,"eraYear"),g("N",$a),g("NN",$a),g("NNN",$a),g("NNNN",ko),g("NNNNN",vo),x(["N","NN","NNN","NNNN","NNNNN"],function(t,a,s,r){var n=s._locale.erasParse(t,r,s._strict);n?b(s).era=n:b(s).invalidEra=t}),g("y",Ye),g("yy",Ye),g("yyy",Ye),g("yyyy",Ye),g("yo",Ro),x(["y","yy","yyy","yyyy"],P),x(["yo"],function(t,a,s,r){var n;s._locale._eraYearOrdinalRegex&&(n=t.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?a[P]=s._locale.eraYearOrdinalParse(t,n):a[P]=parseInt(t,10)});function ho(t,a){var s,r,n,i=this._eras||ye("en")._eras;for(s=0,r=i.length;s<r;++s){switch(typeof i[s].since){case"string":n=y(i[s].since).startOf("day"),i[s].since=n.valueOf();break}switch(typeof i[s].until){case"undefined":i[s].until=1/0;break;case"string":n=y(i[s].until).startOf("day").valueOf(),i[s].until=n.valueOf();break}}return i}function po(t,a,s){var r,n,i=this.eras(),o,f,m;for(t=t.toUpperCase(),r=0,n=i.length;r<n;++r)if(o=i[r].name.toUpperCase(),f=i[r].abbr.toUpperCase(),m=i[r].narrow.toUpperCase(),s)switch(a){case"N":case"NN":case"NNN":if(f===t)return i[r];break;case"NNNN":if(o===t)return i[r];break;case"NNNNN":if(m===t)return i[r];break}else if([o,f,m].indexOf(t)>=0)return i[r]}function mo(t,a){var s=t.since<=t.until?1:-1;return a===void 0?y(t.since).year():y(t.since).year()+(a-t.offset)*s}function yo(){var t,a,s,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return r[t].name;return""}function go(){var t,a,s,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return r[t].narrow;return""}function wo(){var t,a,s,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return r[t].abbr;return""}function _o(){var t,a,s,r,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=n[t].since<=n[t].until?1:-1,r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until||n[t].until<=r&&r<=n[t].since)return(this.year()-y(n[t].since).year())*s+n[t].offset;return this.year()}function bo(t){return R(this,"_erasNameRegex")||Ea.call(this),t?this._erasNameRegex:this._erasRegex}function So(t){return R(this,"_erasAbbrRegex")||Ea.call(this),t?this._erasAbbrRegex:this._erasRegex}function Mo(t){return R(this,"_erasNarrowRegex")||Ea.call(this),t?this._erasNarrowRegex:this._erasRegex}function $a(t,a){return a.erasAbbrRegex(t)}function ko(t,a){return a.erasNameRegex(t)}function vo(t,a){return a.erasNarrowRegex(t)}function Ro(t,a){return a._eraYearOrdinalRegex||Ye}function Ea(){var t=[],a=[],s=[],r=[],n,i,o,f,m,_=this.eras();for(n=0,i=_.length;n<i;++n)o=fe(_[n].name),f=fe(_[n].abbr),m=fe(_[n].narrow),a.push(o),t.push(f),s.push(m),r.push(o),r.push(f),r.push(m);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}w(0,["gg",2],0,function(){return this.weekYear()%100}),w(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Pt(t,a){w(0,[t,t.length],0,a)}Pt("gggg","weekYear"),Pt("ggggg","weekYear"),Pt("GGGG","isoWeekYear"),Pt("GGGGG","isoWeekYear"),g("G",xt),g("g",xt),g("GG",O,q),g("gg",O,q),g("GGGG",wa,ga),g("gggg",wa,ga),g("GGGGG",Ut,Rt),g("ggggg",Ut,Rt),et(["gggg","ggggg","GGGG","GGGGG"],function(t,a,s,r){a[r.substr(0,2)]=M(t)}),et(["gg","GG"],function(t,a,s,r){a[r]=y.parseTwoDigitYear(t)});function Co(t){return ur.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Uo(t){return ur.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function xo(){return me(this.year(),1,4)}function Bo(){return me(this.isoWeekYear(),1,4)}function Oo(){var t=this.localeData()._week;return me(this.year(),t.dow,t.doy)}function Do(){var t=this.localeData()._week;return me(this.weekYear(),t.dow,t.doy)}function ur(t,a,s,r,n){var i;return t==null?rt(this,r,n).year:(i=me(t,r,n),a>i&&(a=i),Ao.call(this,t,a,s,r,n))}function Ao(t,a,s,r,n){var i=js(t,a,s,r,n),o=st(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}w("Q",0,"Qo","quarter"),g("Q",Ds),x("Q",function(t,a){a[he]=(M(t)-1)*3});function No(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}w("D",["DD",2],"Do","date"),g("D",O,Le),g("DD",O,q),g("Do",function(t,a){return t?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),x(["D","DD"],ie),x("Do",function(t,a){a[ie]=M(t.match(O)[0])});var fr=Pe("Date",!0);w("DDD",["DDDD",3],"DDDo","dayOfYear"),g("DDD",Ct),g("DDDD",As),x(["DDD","DDDD"],function(t,a,s){s._dayOfYear=M(t)});function $o(t){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?a:this.add(t-a,"d")}w("m",["mm",2],0,"minute"),g("m",O,_a),g("mm",O,q),x(["m","mm"],ee);var Eo=Pe("Minutes",!1);w("s",["ss",2],0,"second"),g("s",O,_a),g("ss",O,q),x(["s","ss"],pe);var Fo=Pe("Seconds",!1);w("S",0,0,function(){return~~(this.millisecond()/100)}),w(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),w(0,["SSS",3],0,"millisecond"),w(0,["SSSS",4],0,function(){return this.millisecond()*10}),w(0,["SSSSS",5],0,function(){return this.millisecond()*100}),w(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),w(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),w(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),w(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),g("S",Ct,Ds),g("SS",Ct,q),g("SSS",Ct,As);var Ce,hr;for(Ce="SSSS";Ce.length<=9;Ce+="S")g(Ce,Ye);function Io(t,a){a[De]=M(("0."+t)*1e3)}for(Ce="S";Ce.length<=9;Ce+="S")x(Ce,Io);hr=Pe("Milliseconds",!1),w("z",0,0,"zoneAbbr"),w("zz",0,0,"zoneName");function Yo(){return this._isUTC?"UTC":""}function Lo(){return this._isUTC?"Coordinated Universal Time":""}var p=Ze.prototype;p.add=Od,p.calendar=Id,p.clone=Yd,p.diff=qd,p.endOf=to,p.format=Vd,p.from=zd,p.fromNow=Xd,p.to=Zd,p.toNow=Jd,p.get=Gi,p.invalidAt=uo,p.isAfter=Ld,p.isBefore=Pd,p.isBetween=Td,p.isSame=jd,p.isSameOrAfter=Qd,p.isSameOrBefore=Hd,p.isValid=oo,p.lang=ir,p.locale=nr,p.localeData=lr,p.max=dd,p.min=ld,p.parsingFlags=co,p.set=Vi,p.startOf=eo,p.subtract=Dd,p.toArray=no,p.toObject=io,p.toDate=ro,p.toISOString=Kd,p.inspect=Gd,typeof Symbol<"u"&&Symbol.for!=null&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),p.toJSON=lo,p.toString=Wd,p.unix=so,p.valueOf=ao,p.creationData=fo,p.eraName=yo,p.eraNarrow=go,p.eraAbbr=wo,p.eraYear=_o,p.year=Es,p.isLeapYear=Ki,p.weekYear=Co,p.isoWeekYear=Uo,p.quarter=p.quarters=No,p.month=Ps,p.daysInMonth=rl,p.week=p.weeks=fl,p.isoWeek=p.isoWeeks=hl,p.weeksInYear=Oo,p.weeksInWeekYear=Do,p.isoWeeksInYear=xo,p.isoWeeksInISOWeekYear=Bo,p.date=fr,p.day=p.days=Cl,p.weekday=Ul,p.isoWeekday=xl,p.dayOfYear=$o,p.hour=p.hours=El,p.minute=p.minutes=Eo,p.second=p.seconds=Fo,p.millisecond=p.milliseconds=hr,p.utcOffset=gd,p.utc=_d,p.local=bd,p.parseZone=Sd,p.hasAlignedHourOffset=Md,p.isDST=kd,p.isLocal=Rd,p.isUtcOffset=Cd,p.isUtc=er,p.isUTC=er,p.zoneAbbr=Yo,p.zoneName=Lo,p.dates=G("dates accessor is deprecated. Use date instead.",fr),p.months=G("months accessor is deprecated. Use month instead",Ps),p.years=G("years accessor is deprecated. Use year instead",Es),p.zone=G("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wd),p.isDSTShifted=G("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vd);function Po(t){return D(t*1e3)}function To(){return D.apply(null,arguments).parseZone()}function pr(t){return t}var C=fa.prototype;C.calendar=Ri,C.longDateFormat=Bi,C.invalidDate=Di,C.ordinal=$i,C.preparse=pr,C.postformat=pr,C.relativeTime=Fi,C.pastFuture=Ii,C.set=ki,C.eras=ho,C.erasParse=po,C.erasConvertYear=mo,C.erasAbbrRegex=So,C.erasNameRegex=bo,C.erasNarrowRegex=Mo,C.months=el,C.monthsShort=tl,C.monthsParse=sl,C.monthsRegex=il,C.monthsShortRegex=nl,C.week=dl,C.firstDayOfYear=ul,C.firstDayOfWeek=cl,C.weekdays=Sl,C.weekdaysMin=kl,C.weekdaysShort=Ml,C.weekdaysParse=Rl,C.weekdaysRegex=Bl,C.weekdaysShortRegex=Ol,C.weekdaysMinRegex=Dl,C.isPM=Nl,C.meridiem=Fl;function Tt(t,a,s,r){var n=ye(),i=se().set(r,a);return n[s](i,t)}function mr(t,a,s){if(ue(t)&&(a=t,t=void 0),t=t||"",a!=null)return Tt(t,a,s,"month");var r,n=[];for(r=0;r<12;r++)n[r]=Tt(t,r,s,"month");return n}function Fa(t,a,s,r){typeof t=="boolean"?(ue(a)&&(s=a,a=void 0),a=a||""):(a=t,s=a,t=!1,ue(a)&&(s=a,a=void 0),a=a||"");var n=ye(),i=t?n._week.dow:0,o,f=[];if(s!=null)return Tt(a,(s+i)%7,r,"day");for(o=0;o<7;o++)f[o]=Tt(a,(o+i)%7,r,"day");return f}function jo(t,a){return mr(t,a,"months")}function Qo(t,a){return mr(t,a,"monthsShort")}function Ho(t,a,s){return Fa(t,a,s,"weekdays")}function qo(t,a,s){return Fa(t,a,s,"weekdaysShort")}function Wo(t,a,s){return Fa(t,a,s,"weekdaysMin")}Re("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 a=t%10,s=M(t%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return t+s}}),y.lang=G("moment.lang is deprecated. Use moment.locale instead.",Re),y.langData=G("moment.langData is deprecated. Use moment.localeData instead.",ye);var ge=Math.abs;function Ko(){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 yr(t,a,s,r){var n=te(a,s);return t._milliseconds+=r*n._milliseconds,t._days+=r*n._days,t._months+=r*n._months,t._bubble()}function Go(t,a){return yr(this,t,a,1)}function Vo(t,a){return yr(this,t,a,-1)}function gr(t){return t<0?Math.floor(t):Math.ceil(t)}function zo(){var t=this._milliseconds,a=this._days,s=this._months,r=this._data,n,i,o,f,m;return t>=0&&a>=0&&s>=0||t<=0&&a<=0&&s<=0||(t+=gr(Ia(s)+a)*864e5,a=0,s=0),r.milliseconds=t%1e3,n=z(t/1e3),r.seconds=n%60,i=z(n/60),r.minutes=i%60,o=z(i/60),r.hours=o%24,a+=z(o/24),m=z(wr(a)),s+=m,a-=gr(Ia(m)),f=z(s/12),s%=12,r.days=a,r.months=s,r.years=f,this}function wr(t){return t*4800/146097}function Ia(t){return t*146097/4800}function Xo(t){if(!this.isValid())return NaN;var a,s,r=this._milliseconds;if(t=V(t),t==="month"||t==="quarter"||t==="year")switch(a=this._days+r/864e5,s=this._months+wr(a),t){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(a=this._days+Math.round(Ia(this._months)),t){case"week":return a/7+r/6048e5;case"day":return a+r/864e5;case"hour":return a*24+r/36e5;case"minute":return a*1440+r/6e4;case"second":return a*86400+r/1e3;case"millisecond":return Math.floor(a*864e5)+r;default:throw new Error("Unknown unit "+t)}}function we(t){return function(){return this.as(t)}}var _r=we("ms"),Zo=we("s"),Jo=we("m"),ec=we("h"),tc=we("d"),ac=we("w"),sc=we("M"),rc=we("Q"),nc=we("y"),ic=_r;function lc(){return te(this)}function dc(t){return t=V(t),this.isValid()?this[t+"s"]():NaN}function Ne(t){return function(){return this.isValid()?this._data[t]:NaN}}var oc=Ne("milliseconds"),cc=Ne("seconds"),uc=Ne("minutes"),fc=Ne("hours"),hc=Ne("days"),pc=Ne("months"),mc=Ne("years");function yc(){return z(this.days()/7)}var _e=Math.round,He={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function gc(t,a,s,r,n){return n.relativeTime(a||1,!!s,t,r)}function wc(t,a,s,r){var n=te(t).abs(),i=_e(n.as("s")),o=_e(n.as("m")),f=_e(n.as("h")),m=_e(n.as("d")),_=_e(n.as("M")),B=_e(n.as("w")),Y=_e(n.as("y")),H=i<=s.ss&&["s",i]||i<s.s&&["ss",i]||o<=1&&["m"]||o<s.m&&["mm",o]||f<=1&&["h"]||f<s.h&&["hh",f]||m<=1&&["d"]||m<s.d&&["dd",m];return s.w!=null&&(H=H||B<=1&&["w"]||B<s.w&&["ww",B]),H=H||_<=1&&["M"]||_<s.M&&["MM",_]||Y<=1&&["y"]||["yy",Y],H[2]=a,H[3]=+t>0,H[4]=r,gc.apply(null,H)}function _c(t){return t===void 0?_e:typeof t=="function"?(_e=t,!0):!1}function bc(t,a){return He[t]===void 0?!1:a===void 0?He[t]:(He[t]=a,t==="s"&&(He.ss=a-1),!0)}function Sc(t,a){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=He,n,i;return typeof t=="object"&&(a=t,t=!1),typeof t=="boolean"&&(s=t),typeof a=="object"&&(r=Object.assign({},He,a),a.s!=null&&a.ss==null&&(r.ss=a.s-1)),n=this.localeData(),i=wc(this,!s,r,n),s&&(i=n.pastFuture(+this,i)),n.postformat(i)}var Ya=Math.abs;function qe(t){return(t>0)-(t<0)||+t}function jt(){if(!this.isValid())return this.localeData().invalidDate();var t=Ya(this._milliseconds)/1e3,a=Ya(this._days),s=Ya(this._months),r,n,i,o,f=this.asSeconds(),m,_,B,Y;return f?(r=z(t/60),n=z(r/60),t%=60,r%=60,i=z(s/12),s%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",m=f<0?"-":"",_=qe(this._months)!==qe(f)?"-":"",B=qe(this._days)!==qe(f)?"-":"",Y=qe(this._milliseconds)!==qe(f)?"-":"",m+"P"+(i?_+i+"Y":"")+(s?_+s+"M":"")+(a?B+a+"D":"")+(n||r||t?"T":"")+(n?Y+n+"H":"")+(r?Y+r+"M":"")+(t?Y+o+"S":"")):"P0D"}var k=Et.prototype;k.isValid=hd,k.abs=Ko,k.add=Go,k.subtract=Vo,k.as=Xo,k.asMilliseconds=_r,k.asSeconds=Zo,k.asMinutes=Jo,k.asHours=ec,k.asDays=tc,k.asWeeks=ac,k.asMonths=sc,k.asQuarters=rc,k.asYears=nc,k.valueOf=ic,k._bubble=zo,k.clone=lc,k.get=dc,k.milliseconds=oc,k.seconds=cc,k.minutes=uc,k.hours=fc,k.days=hc,k.weeks=yc,k.months=pc,k.years=mc,k.humanize=Sc,k.toISOString=jt,k.toString=jt,k.toJSON=jt,k.locale=nr,k.localeData=lr,k.toIsoString=G("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",jt),k.lang=ir,w("X",0,0,"unix"),w("x",0,0,"valueOf"),g("x",xt),g("X",Ti),x("X",function(t,a,s){s._d=new Date(parseFloat(t)*1e3)}),x("x",function(t,a,s){s._d=new Date(M(t))});//! moment.js
|
|
10
|
-
y.version="2.30.1",Si(D),y.fn=p,y.min=od,y.max=cd,y.now=ud,y.utc=se,y.unix=Po,y.months=jo,y.isDate=Xe,y.locale=Re,y.invalid=Mt,y.duration=te,y.isMoment=J,y.weekdays=Ho,y.parseZone=To,y.localeData=ye,y.isDuration=Ft,y.monthsShort=Qo,y.weekdaysMin=Wo,y.defineLocale=Ra,y.updateLocale=Pl,y.locales=Tl,y.weekdaysShort=qo,y.normalizeUnits=V,y.relativeTimeRounding=_c,y.relativeTimeThreshold=bc,y.calendarFormat=Fd,y.prototype=p,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 Qt=t=>new Intl.NumberFormat("de-DE").format(t),br=(t,a,s=Math.random)=>Math.floor(s()*(a-t)+t),Ht=(t,a,s=r=>r)=>t.filter(r=>!a.some(n=>s(n)===s(r))),La=(t,a)=>[...new Set(t.map(s=>a(s)))],Sr=t=>t.filter(a=>a!=null),Mc=({start:t=0,stop:a,step:s=1})=>{if(s===0)throw new RangeError("step cannot be equal to 0");if(s>0&&t>=a||s<0&&t<=a)return[];const r=[];for(let n=t;s>0?n<a:n>a;n+=s)r.push(n);return r},kc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,vc=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Mr=/(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,Pa=[/^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],Rc={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:Mr,monthsShortRegex:Mr,monthsStrictRegex:kc,monthsShortStrictRegex:vc,monthsParse:Pa,longMonthsParse:Pa,shortMonthsParse:Pa,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,a)=>{switch(a){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",Rc);const be=(t,a,s=!0)=>(s?t.getFullYear()===a.getFullYear():!0)&&t.getMonth()===a.getMonth()&&t.getDate()===a.getDate(),Ta=()=>y().locale("fr").subtract(1,"days").toDate(),$e=t=>new Date>t,kr=t=>typeof t=="function",ja=(t,a,s)=>{const r={...t},n=Object.entries(t);for(const[i,o]of n){const f=a[i];f?r[i]=s(o,f):r[i]=o}return r},Qa=t=>Object.entries(t),vr=new h.Schema({guildId:{type:String,required:!0,unique:!0},suggestionChannelId:{type:String,default:null},reportChannelId:{type:String,default:null},reportModeratorChannelId:{type:String,default:null},factionChannelId:{type:String,default:null},discussionChannelId:{type:String,default:null},questFallbackChannelId:{type:String,default:null},reportBugChannelId:{type:String,default:null},expeditionChannelId:{type:String,default:null},ranking:{channelId:{type:String,default:null},messageId:{type:String,default:null}},roles:{premium:{type:String,default:null},booster:{type:String,default:null}},edito:{channelId:{type:String,default:null},price:{type:Number,default:100},sentAtMidnight:{type:Boolean,default:!1},messageId:{type:String,default:null}},crew:{infoChannelId:{type:String,default:null},crewChannelIds:{type:[{channelId:{type:String},crewId:{type:String}}],default:[]}},shopChannelId:{type:String,default:null},blackMarketChannelId:{type:String,default:null}});vr.index({"meta.xp":-1});const qt=((Qn=h.models)==null?void 0:Qn.Settings)||h.model("Settings",vr),I=async(t,a,s=!1)=>{await qt.updateOne({guildId:t},a,{upsert:s})},Cc=Object.freeze(Object.defineProperty({__proto__:null,addCrewChannelId:async(t,a,s)=>{await I(t,{$push:{"crew.crewChannelIds":{channelId:s,crewId:a}}})},randomizeEditoPrice:async t=>{const a=br(100,1001);return await I(t,{$set:{"edito.price":a}}),a},sentAtMidnight:async(t,a)=>{await I(t,{$set:{"edito.sentAtMidnight":a}})},setCrewInfoChannelId:async(t,a)=>{await I(t,{$set:{"crew.infoChannelId":a}})},setDiscussionChannelId:async(t,a)=>{await I(t,{$set:{discussionChannelId:a}})},setEditoChannel:async(t,a)=>{await I(t,{$set:{"edito.channelId":a}})},setEditoMessageId:async(t,a)=>{await I(t,{$set:{"edito.messageId":a}})},setFactionChannel:async(t,a)=>{await I(t,{$set:{factionChannelId:a}})},setQuestChannelId:async(t,a)=>{await I(t,{$set:{questFallbackChannelId:a}})},setRankingChannel:async(t,a)=>{await I(t,{$set:{"ranking.channelId":a}})},setRankingMessage:async(t,a)=>{await I(t,{$set:{"ranking.messageId":a}})},setReportBugChannelId:async(t,a)=>{await I(t,{$set:{reportBugChannelId:a}})},setReportChannel:async(t,a)=>{await I(t,{$set:{reportChannelId:a}})},setReportModeratorChannel:async(t,a)=>{await I(t,{$set:{reportModeratorChannelId:a}})},setShopChannelId:async(t,a,s)=>{await I(t,{$set:{shopChannelId:a,blackMarketChannelId:s}})},setSuggestionChannel:async(t,a)=>{await I(t,{$set:{suggestionChannelId:a}})},updateRolesId:async(t,a)=>{await I(t,{$set:Object.fromEntries(Object.entries(a).map(([s,r])=>[`roles.${s}`,r]))})}},Symbol.toStringTag,{value:"Module"})),Rr=async t=>await qt.create({guildId:t}),Uc=async(t,a={})=>{const s=await qt.findOne({guildId:t},a);return s||Rr(t)};class ae{constructor(){e(this,"name");e(this,"price");e(this,"size");e(this,"currency");e(this,"data");if(this.constructor===ae)throw new Error("Abstract classes can't be instantiated.")}toDBShopItem(){return{name:this.name,price:this.price,size:this.size,entityId:this.data.id,currency:this.currency}}async onBuy(a,s){this.currency==="berry"?(await Gr(a,-1*this.price*s),await qr(a,this.price*s)):await xe(a,this.currency,this.price*s)}isBackground(){return!1}isChest(){return!1}isTitle(){return!1}isBoostXp(){return!1}isRepair(){return!1}isStore(){return!1}isObject(){return!1}isBottle(){return!1}isEquipment(){return!1}}class Cr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await un(a,this.data.background.id)}isBackground(){return!0}}class Ur extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isBoostXp(){return!0}}class xr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isChest(){return!0}}class Br extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isObject(){return!0}}class Or extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ls(a,Mc({stop:s}).map(()=>S.seedEquipment({...this.data},Date.now()-Math.round(Math.random()*1e3))))}isEquipment(){return!0}}class Dr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isBottle(){return!0}}class Ar extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isRepair(){return!0}}class Nr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isStore(){return!0}}class $r extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await hs(a,this.data.title.name)}isTitle(){return!0}}const Er=(t,a)=>{const s=t.items.find(r=>r.entityId===a);if(s){const{name:r,price:n,size:i,currency:o}=s,f=S.findEntity(s.entityId);if(S.isBackgroundItem(f))return new Cr({name:r,price:n,item:f,size:i,currency:o});if(S.isTitleItem(f))return new $r({name:r,price:n,item:f,size:i,currency:o});if(S.isChestItem(f))return new xr({name:r,price:n,item:f,size:i,currency:o});if(S.isBoostItem(f))return new Ur({name:r,price:n,item:f,size:i,currency:o});if(S.isRepairItem(f))return new Ar({name:r,price:n,item:f,size:i,currency:o});if(S.isStoreItem(f))return new Nr({name:r,price:n,item:f,size:i,currency:o});if(S.isObjectItem(f))return new Br({name:r,price:n,item:f,size:i,currency:o});if(S.isEquipment(f))return new Or({name:r,price:n,item:f,size:i,currency:o});if(S.isBottleItem(f))return new Dr({name:r,price:n,size:i,item:f,currency:o})}},xc=Object.freeze(Object.defineProperty({__proto__:null,getShopItem:Er,getShopItemList:t=>{const a=[];for(const{entityId:s}of t.items){const r=Er(t,s);r&&a.push(r)}return a}},Symbol.toStringTag,{value:"Module"})),Fr=new h.Schema({shopType:{type:String,required:!0,unique:!0},publishedAt:{type:Date,default:new Date},duration:{type:Number,default:null},closeAt:{type:Date,default:null},items:{type:[{name:String,price:Number,size:{type:Number,default:null},entityId:String,currency:String}],default:[]},stats:{berrySpent:{type:Number,default:0},itemBought:{type:Number,default:0},chestBought:{type:Number,default:0},boostTimeBought:{type:Number,default:0},percentBought:{type:Number,default:0}}},{minimize:!1});Fr.index({shopType:1});const Wt=((Hn=h.models)==null?void 0:Hn.Shop)||h.model("Shop",Fr),Bc=async(t,a)=>{await Ir({shopType:t},a,!0)},Ha=async(t,a)=>{await Ir({_id:t},a,!0)},Ir=async(t,a,s=!1)=>{await Wt.updateOne(t,a,{upsert:s})},Oc=Object.freeze(Object.defineProperty({__proto__:null,buyShopItem:async(t,a,s,r)=>{const n=a.map(i=>(i.name===s.name&&i.size&&(i.size-=r),i));await Ha(t,{$set:{items:n}})},publish:async t=>{await Ha(t,{$set:{publishedAt:new Date}})},setShopItems:async(t,a)=>{await Bc(t,{$set:{items:[...a]}})},updateShopStats:async(t,a,s)=>{await Ha(t,{$inc:{"stats.berrySpent":a.price*s,"stats.itemBought":s,"stats.chestBought":a.isChest()?s:0,"stats.percentBought":a.isRepair()?a.data.repair*s:0,"stats.boostTimeBought":a.isBoostXp()?a.data.id==="boost_xp_day"?s:7*s:0}})}},Symbol.toStringTag,{value:"Module"})),Dc=t=>Wt.create({shopType:t}),Ac=async(t,a={})=>{const s=await Yr({shopType:t},a);return s||await Dc(t)},Yr=(t,a={})=>Wt.findOne(t,a),Nc=Object.freeze(Object.defineProperty({__proto__:null,getCommandCooldown:(t,a)=>t.commands[a],getRaidCooldown:(t,a)=>t.raid[a]},Symbol.toStringTag,{value:"Module"})),qa=new h.Schema({user:{type:h.Schema.Types.ObjectId,ref:"User",required:!0},date:Date,type:String},{minimize:!1});qa.index({user:1}),qa.index({date:-1});const Ee=((qn=h.models)==null?void 0:qn.Reminder)||h.model("Reminder",qa),$c=Object.freeze(Object.defineProperty({__proto__:null,getAllPassedReminder:async()=>await Ee.find({date:{$lte:new Date}})},Symbol.toStringTag,{value:"Module"})),Ec=async(t,a)=>{await Ee.deleteOne({user:t,type:a})},Lr=async(t,a,s,r)=>{await Ee.updateOne({user:t,type:a},s,{upsert:r})},Wa=async(t,a,s)=>{await Lr(t,a,{$set:{date:s}},!0)},Ka=async(t,a,s)=>{await Lr(t,a,[{$set:{date:{$add:["$date",s]}}}],!1)},Fc=Object.freeze(Object.defineProperty({__proto__:null,addReminder:Wa,deleteSelectedReminders:async t=>{await Ee.deleteMany({_id:{$in:t}})},removeReminder:async(t,a)=>{await Ec(t,a)},updateReminderDate:Ka},Symbol.toStringTag,{value:"Module"})),Ic=async(t,a={})=>{const s=await Ee.findOne({user:t},a);return s||null},Yc=async(t,a,s)=>await Ee.create({user:t,date:a,type:s}),Lc=(t,a)=>{const s=Sr(Object.values(t.equippedItems)),r=a.equipments.filter(n=>s.find(i=>i.id===n.id)).length;if(r===a.equipments.length)return a.fullBonus;if(r>=a.equipments.length/2)return a.halfBonus},Ga=t=>{var s;let a={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};for(const r of S.EQUIPMENT_SLOT){const n=(s=t.equippedItems)==null?void 0:s[r];n&&(a=ja(a,S.fromDBToEquipableEquipment(n).characteristics,(i,o)=>i+o))}for(const r of S.allPanoplies){const n=Lc(t,r);n&&!("target"in n)&&(a=ja(a,n,(i,o)=>i+o))}return a},Pc=Object.freeze(Object.defineProperty({__proto__:null,calcBottleMultiplier:(t,{buffs:a})=>{const s=S.getPanoplyBonus(t.equippedItems).find(([r,n])=>r.id==="herbalist"&&n!==null);return s&&s[1]==="full"?a.map(r=>({...r,multiplier:r.multiplier*1.25})):s&&s[1]==="half"?a.map(r=>({...r,multiplier:r.multiplier*1.1})):a},calcMinStreakForWorkLoot:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,r])=>s.id==="marine"&&r!==null);return a&&a[1]==="full"?10:a&&a[1]==="half"?20:1/0},getItemList:t=>Object.fromEntries(t.itemList),getRecipeResult:(t,a)=>{const s=S.getPanoplyBonus(t.equippedItems).find(([r,n])=>r.id==="little_blacksmith"&&n!==null);return(s==null?void 0:s[1])==="full"&&a==="chest_3"?"chest_blacksmith_3":(s==null?void 0:s[1])==="half"&&a==="chest_2"?"chest_blacksmith_2":(s==null?void 0:s[1])==="half"&&a==="chest_1"?"chest_blacksmith_1":a},getUserEquipmentsCharacteristics:Ga,hasEnoughEnchantedStone:(t,a)=>(t.itemList.get("enchanted_stone")||0)>=a,hasEnoughItem:(t,a,s)=>(t.itemList.get(s)||0)>=a,hasEnoughItemsForRecipe:(t,a,s)=>{for(const r of a)if((t.itemList.get(r.itemId)||0)<r.size*s)return!1;return!0},hasEnoughTools:(t,a)=>(t.itemList.get("tools")||0)>=a,hasInventoryRequirements:(t,a)=>Qa(a).reduce((s,[r,n])=>s&&(t.itemList.get(r)??0)>=(n??0),!0),hasRevolutionaryBuff:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,r])=>s.id==="revolutionary"&&r!==null);return(a==null?void 0:a[1])??null},maxCraftQuantity:(t,a)=>{let s=1/0;for(const r of a)s=Math.min(s,Math.floor((t.itemList.get(r.itemId)||0)/r.size));return s}},Symbol.toStringTag,{value:"Module"})),Tc=Object.freeze(Object.defineProperty({__proto__:null,getEncyclopedia:t=>t.encyclopedia,hasFoundItem:(t,a)=>t.encyclopedia.includes(a)},Symbol.toStringTag,{value:"Module"})),Pr=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},encyclopedia:{type:[String],default:[]}});Pr.index({user:1});const Kt=((Wn=h.models)==null?void 0:Wn.UserEncyclopedia)||h.model("UserEncyclopedia",Pr),Tr=async(t,a)=>{await Kt.updateOne({user:t},a,{upsert:!0})},Gt=async(t,a)=>{await Tr(t,{$addToSet:{encyclopedia:{$each:a}}})},jc=Object.freeze(Object.defineProperty({__proto__:null,addItem:Gt},Symbol.toStringTag,{value:"Module"})),jr=async t=>await Kt.create({user:t}),Qc=async t=>{const a=await Kt.findOne({user:t});return a||await jr(t)},Hc=["crewUpdate","crewQuestUpdate","userMetaUpdate","userQuestMetaUpdate","userQuestUpdate","userInventoryUpdate","userOrnamentsUpdate","userDaily","crewDaily","userChristmasUpdate"],Qr=new oi.EventEmitter,le=(t,a,s)=>{Qr.emit(t,a,s)},qc=t=>{for(const a of Hc)Qr.on(a,(s,r)=>{t(a,s,r)})};class d{constructor(){e(this,"onUserMetaUpdate");e(this,"onUserQuestUpdate");e(this,"onUserQuestMetaUpdate");e(this,"onUserInventoryUpdate");e(this,"onUserOrnamentsUpdate");e(this,"onCrewUpdate");e(this,"onCrewQuestUpdate");e(this,"complete",async(a,{_userQuest:s,_userCrew:r,_userMeta:n})=>{const i=s??await gs(a);if(this.isCompleted(i))return null;const o=n??await ct(a),f=r??await nn(a);return this.crew&&f?this.daily?await this.markCrewDailyAsCompleted(f.crew._id,i.user._id):(await this.markAsCompleted(i),await this.markCrewAsCompleted(f.crew._id)):await this.markAsCompleted(i),await this.specificQuestCompletion(i,f),await this.applyReward(i,o,f)});e(this,"getComputedRewards",(a,s)=>{const r=this.daily&&ps(s)?ms(s):1;return{xp:(kr(this.xp)?this.xp(a):this.xp)*r*(1+os(a)),berry:(kr(this.berry)?this.berry(a):this.berry)*r}})}async applyReward(a,s,r){return this.title&&await hs(a.user._id,this.title.name),this.badge&&(this.crew&&r?await En(r.crew._id,this.badge,this.rank.id):await fn(a.user._id,this.badge,this.rank.id)),this.isFactionBadge&&await hn(a.user._id,this.rank.id),this.asset&&await pn(a.user._id,this.asset),this.getComputedRewards(s,a)}async specificQuestCompletion(a,s){this.id==="daily_all"&&(await Mn(a.user._id,a.lastFullComplete),s&&await this.markCrewDailyAsCompleted(s.crew._id,a.user._id)),this.id==="be_level_10"&&await Bn(a.user._id,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await On(a.user._id,!0),this.id==="crew_all_members_daily"&&s&&await rn(a.user._id)}isCompleted(a){return this.daily?gn(a,this.id):yn(a,this.id)}async markAsCompleted(a){this.daily?await Sn(a.user._id,this.id):await bn(a.user._id,this.id)}async markCrewAsCompleted(a){await In(a,this.id)}async markCrewDailyAsCompleted(a,s){await Yn(a,s.toHexString(),this.id)}}class Wc extends d{constructor(){super(...arguments);e(this,"name","Bienvenue à bord !");e(this,"id","crew_create_or_join");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Créer son équipage/Rejoindre un équipage");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1)}}class Kc extends d{constructor(){super(...arguments);e(this,"name","Prêt à naviguer !");e(this,"id","crew_daily_click");e(this,"rank",l.RANKS.COMMON);e(this,"description","Faire acte de présence auprès de son équipage");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"crew",!0);e(this,"daily",!0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1)}}const Gc=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:Wc,CrewValidateDaily:Kc},Symbol.toStringTag,{value:"Module"}));class Vc extends d{constructor(){super(...arguments);e(this,"name","1 jour 1 message");e(this,"id","daily_send_message");e(this,"rank",l.RANKS.COMMON);e(this,"description","Envoyer un message");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*100);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class zc extends d{constructor(){super(...arguments);e(this,"name","Les nouvelles sont bonnes ?");e(this,"id","daily_read_edito");e(this,"rank",l.RANKS.COMMON);e(this,"description","Réagir à l'édito");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*3e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*300);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class Xc extends d{constructor(){super(...arguments);e(this,"name","Quoi ? Feur !");e(this,"id","daily_answer");e(this,"rank",l.RANKS.COMMON);e(this,"description","Répondre à quelqu'un");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1500);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*150);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class Zc extends d{constructor(){super(...arguments);e(this,"name","Narcissique");e(this,"id","daily_check_profile");e(this,"rank",l.RANKS.COMMON);e(this,"description","Regarder son profil");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*2e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*200);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class Jc extends d{constructor(){super(...arguments);e(this,"name","Almanax");e(this,"id","almanax");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Valider 365 jours de suite les quêtes quotidiennes");e(this,"berry",1e9);e(this,"xp",1e6);e(this,"badge",u.BadgeList.calendar);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1)}}const Va=Object.freeze(Object.defineProperty({__proto__:null,Almanax:Jc,DailyAnswer:Xc,DailyCheckProfile:Zc,DailyReadEdito:zc,DailySendMessage:Vc},Symbol.toStringTag,{value:"Module"}));class eu extends d{constructor(){super(...arguments);e(this,"name","Prenez-en soin");e(this,"id","crew_carpenter_1_week");e(this,"rank",l.RANKS.COMMON);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 semaine");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=7)}}class tu extends d{constructor(){super(...arguments);e(this,"name","Il est comme neuf !");e(this,"id","crew_carpenter_1_month");e(this,"rank",l.RANKS.RARE);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 mois");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30)}}class au extends d{constructor(){super(...arguments);e(this,"name","À l'occasion, je vous mettrai un petit coup de polish");e(this,"id","crew_carpenter_3_months");e(this,"rank",l.RANKS.EPIC);e(this,"description","Rester au dessus de 80% de détérioration pendant 3 mois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30*3)}}class su extends d{constructor(){super(...arguments);e(this,"name","Vous ne naviguez qu'en eau calme ?");e(this,"id","crew_carpenter_6_months");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Rester au dessus de 80% de détérioration pendant 6 mois");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30*6)}}class ru extends d{constructor(){super(...arguments);e(this,"name","C'est un sacré charpentier que vous avez là !");e(this,"id","crew_carpenter_1_year");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 an");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles["Charpentier Légendaire"]);e(this,"badge",u.BadgeList.carpenter);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=365)}}class nu extends d{constructor(){super(...arguments);e(this,"name","Au rapport !");e(this,"id","crew_all_members_daily");e(this,"rank",l.RANKS.RARE);e(this,"description","Tous les membres ont rempli leurs quêtes quotidiennes");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"daily",!0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"onCrewQuestUpdate",(s,r)=>{var n,i;return Fn(s,"daily_all")&&!be(((i=(n=s.daily)==null?void 0:n[r.user._id.toHexString()])==null?void 0:i.crew_all_members_daily)??new Date(0),new Date)&&!be(r.lastAllMembersDaily,new Date)})}}class iu extends d{constructor(){super(...arguments);e(this,"name","Réunion de crise");e(this,"id","crew_vocal_5");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être dans un un vocal avec les 5 membres pendant 1 heure");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=5)}}class lu extends d{constructor(){super(...arguments);e(this,"name","Conseil de guerre");e(this,"id","crew_vocal_7");e(this,"rank",l.RANKS.RARE);e(this,"description","Être dans un un vocal avec les 7 membres pendant 1 heure");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=7)}}class du extends d{constructor(){super(...arguments);e(this,"name","Réunion de famille");e(this,"id","crew_vocal_10");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être dans un un vocal avec les 10 membres pendant 1 heure");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=10)}}class ou extends d{constructor(){super(...arguments);e(this,"name","Les Inséparables");e(this,"id","crew_vocal_12");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être dans un un vocal avec les 12 membres pendant 1 heure");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=12)}}class cu extends d{constructor(){super(...arguments);e(this,"name","Ambiance sectaire un peu");e(this,"id","crew_vocal_15");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être dans un un vocal avec les 15 membres pendant 1 heure");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles["Membre d'une secte"]);e(this,"badge",u.BadgeList.shipsecte);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=15)}}const za=Object.freeze(Object.defineProperty({__proto__:null,CrewAllMembersDaily:nu,CrewCarpenter1Month:tu,CrewCarpenter1Week:eu,CrewCarpenter1Year:ru,CrewCarpenter3Months:au,CrewCarpenter6Months:su,CrewVocal10:du,CrewVocal12:ou,CrewVocal15:cu,CrewVocal5:iu,CrewVocal7:lu},Symbol.toStringTag,{value:"Module"}));class uu extends d{constructor(){super(...arguments);e(this,"name","Ah bah maintenant, elle va marcher beaucoup moins bien forcément !");e(this,"id","crew_break_ship");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Casser son bateau (atteindre les 0% de détérioration)");e(this,"berry",-1e6);e(this,"xp",-1e5);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.disintegration<=0)}}class fu extends d{constructor(){super(...arguments);e(this,"name","Sympa votre barque");e(this,"id","crew_ship_level_10");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 10 d'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=10)}}class hu extends d{constructor(){super(...arguments);e(this,"name","Joli bicoque");e(this,"id","crew_ship_level_25");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 25 d'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=25)}}class pu extends d{constructor(){super(...arguments);e(this,"name","* C'est un fameux trois-mâts *");e(this,"id","crew_ship_level_50");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 50 d'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=50)}}class mu extends d{constructor(){super(...arguments);e(this,"name","* Fin comme un oiseau *");e(this,"id","crew_ship_level_75");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 75 d'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=75)}}class yu extends d{constructor(){super(...arguments);e(this,"name","* Hisse et ho ! *");e(this,"id","crew_ship_level_100");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 100 d'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Santiano);e(this,"badge",u.BadgeList.crewship);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=100)}}class gu extends d{constructor(){super(...arguments);e(this,"name","Y'a pas de petites économies");e(this,"id","crew_have_100M_berry");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 100 000 000 Berrys dans le coffre d'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=1e8)}}class wu extends d{constructor(){super(...arguments);e(this,"name","Joli butin !");e(this,"id","crew_have_500M_berry");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 500 000 000 Berrys dans le coffre d'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e8)}}class _u extends d{constructor(){super(...arguments);e(this,"name","Vous économisez pour un nouveau bateau ?");e(this,"id","crew_have_1Md_berry");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 1 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=1e9)}}class bu extends d{constructor(){super(...arguments);e(this,"name","Ça fait beaucoup là non ?");e(this,"id","crew_have_5Md_berry");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 5 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e9)}}class Su extends d{constructor(){super(...arguments);e(this,"name","Karl Marx serait fier de vous !");e(this,"id","crew_have_50Md_berry");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 50 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Communiste);e(this,"badge",u.BadgeList.communism);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e10)}}class Mu extends d{constructor(){super(...arguments);e(this,"name","Plus on est de fous...");e(this,"id","crew_size_5");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être dans un équipage de 5 membres");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=5)}}class ku extends d{constructor(){super(...arguments);e(this,"name","Plus on rit !");e(this,"id","crew_size_7");e(this,"rank",l.RANKS.RARE);e(this,"description","Être dans un équipage de 7 membres");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=7)}}class vu extends d{constructor(){super(...arguments);e(this,"name","Une petite famille");e(this,"id","crew_size_10");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être dans un équipage de 10 membres");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=10)}}class Ru extends d{constructor(){super(...arguments);e(this,"name","Va falloir des dortoirs en plus");e(this,"id","crew_size_12");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être dans un équipage de 12 membres");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=12)}}class Cu extends d{constructor(){super(...arguments);e(this,"name","* Ah qu'est-ce qu'on est serré ! *");e(this,"id","crew_size_15");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être dans un équipage de 15 membres");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Sardine);e(this,"badge",u.BadgeList.sardine);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=15)}}class Uu extends d{constructor(){super(...arguments);e(this,"name","C'est sympa pour eux !");e(this,"id","crew_bring_50k_xp");e(this,"rank",l.RANKS.COMMON);e(this,"description","Rapporter 50 000 XP à l'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e4)}}class xu extends d{constructor(){super(...arguments);e(this,"name","On voit que tu aimes ton équipage");e(this,"id","crew_bring_500k_xp");e(this,"rank",l.RANKS.RARE);e(this,"description","Rapporter 500 000 XP à l'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e5)}}class Bu extends d{constructor(){super(...arguments);e(this,"name","Le méritent-ils vraiment ?");e(this,"id","crew_bring_1m_xp");e(this,"rank",l.RANKS.EPIC);e(this,"description","Rapporter 1 000 000 XP à l'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=1e6)}}class Ou extends d{constructor(){super(...arguments);e(this,"name","J'espère que t'as eu une prime");e(this,"id","crew_bring_5m_xp");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Rapporter 5 000 000 XP à l'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e6)}}class Du extends d{constructor(){super(...arguments);e(this,"name","Qu'on lui fasse une statue de Bronze !");e(this,"id","crew_bring_50m_xp");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Rapporter 50 000 000 XP à l'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Team Player"]);e(this,"badge",u.BadgeList.broship);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e7)}}const Xa=Object.freeze(Object.defineProperty({__proto__:null,CrewBeLevel10:fu,CrewBeLevel100:yu,CrewBeLevel25:hu,CrewBeLevel50:pu,CrewBeLevel75:mu,CrewBreakShip:uu,CrewBring1mXp:Bu,CrewBring500kXp:xu,CrewBring50kXp:Uu,CrewBring50mXp:Du,CrewBring5mXp:Ou,CrewHave100MBerry:gu,CrewHave1MdBerry:_u,CrewHave500MBerry:wu,CrewHave50MdBerry:Su,CrewHave5MdBerry:bu,CrewSize10:vu,CrewSize12:Ru,CrewSize15:Cu,CrewSize5:Mu,CrewSize7:ku},Symbol.toStringTag,{value:"Module"}));class Au extends d{constructor(){super(...arguments);e(this,"name","Ne fais rien exploser hein ?");e(this,"id","have_1_recipe");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 1 recette");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=1)}}class Nu extends d{constructor(){super(...arguments);e(this,"name","C'est bien tu sais faire des pâtes !");e(this,"id","have_5_recipe");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 5 recettes");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=5)}}class $u extends d{constructor(){super(...arguments);e(this,"name","Ta grand-mère t'as donné son livre ?");e(this,"id","have_10_recipe");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 10 recettes");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=10)}}class Eu extends d{constructor(){super(...arguments);e(this,"name","Let him cook");e(this,"id","have_25_recipe");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 25 recettes");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=25)}}class Fu extends d{constructor(){super(...arguments);e(this,"name","Paul Bocuse");e(this,"id","have_100_recipe");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 100 recettes");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Paul Bocuse"]);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=100)}}const Za=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:Fu,Have10Recipe:$u,Have1Recipe:Au,Have25Recipe:Eu,Have5Recipe:Nu},Symbol.toStringTag,{value:"Module"}));class Iu extends d{constructor(){super(...arguments);e(this,"name","Enfin de quoi t'acheter un bon vélo !");e(this,"id","have_500000_berry");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 500 000 Berrys");e(this,"berry",1e5);e(this,"xp",5e3);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e5)}}class Yu extends d{constructor(){super(...arguments);e(this,"name","Ouah t'es multi-millionaire !");e(this,"id","have_5000000_berry");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 5 000 000 Berrys");e(this,"berry",1e6);e(this,"xp",25e3);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e6)}}class Lu extends d{constructor(){super(...arguments);e(this,"name","Presque riche");e(this,"id","have_50000000_berry");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 50 000 000 Berrys");e(this,"berry",1e7);e(this,"xp",5e4);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e7)}}class Pu extends d{constructor(){super(...arguments);e(this,"name","Un 20m² à Paris");e(this,"id","have_500000000_berry");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 500 000 000 Berrys");e(this,"berry",1e8);e(this,"xp",1e5);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e8)}}class Tu extends d{constructor(){super(...arguments);e(this,"name","This is Elon Musk");e(this,"id","have_5000000000_berry");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 5 000 000 000 Berrys");e(this,"berry",1e9);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Elon Musk"]);e(this,"badge",u.BadgeList.berry);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e9)}}class ju extends d{constructor(){super(...arguments);e(this,"name","5 jours / semaine à Basic Fit");e(this,"id","have_25_strength");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de force");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.strength)>=25)}}class Qu extends d{constructor(){super(...arguments);e(this,"name","La fonte > les livres");e(this,"id","have_50_strength");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de force");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.strength)>=50)}}class Hu extends d{constructor(){super(...arguments);e(this,"name","Moi, musclé ?");e(this,"id","have_100_strength");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de force");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.strength)>=100)}}class qu extends d{constructor(){super(...arguments);e(this,"name","Hercules");e(this,"id","have_250_strength");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de force");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.strength)>=250)}}class Wu extends d{constructor(){super(...arguments);e(this,"name","Titan");e(this,"id","have_500_strength");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de force");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles.Titan);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.strength)>=500)}}class Ku extends d{constructor(){super(...arguments);e(this,"name","Chat de gouttière");e(this,"id","have_25_agility");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 d'agilité");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.agility)>=25)}}class Gu extends d{constructor(){super(...arguments);e(this,"name","Hop ! Grand écart !");e(this,"id","have_50_agility");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 d'agilité");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.agility)>=50)}}class Vu extends d{constructor(){super(...arguments);e(this,"name","Danseur étoile");e(this,"id","have_100_agility");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 d'agilité");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.agility)>=100)}}class zu extends d{constructor(){super(...arguments);e(this,"name","L'Éclair de Konoha ! (merde mauvais manga)");e(this,"id","have_250_agility");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 d'agilité");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.agility)>=250)}}class Xu extends d{constructor(){super(...arguments);e(this,"name","Héritier de Bon Clay");e(this,"id","have_500_agility");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 d'agilité");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Bon Clay"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.agility)>=500)}}class Zu extends d{constructor(){super(...arguments);e(this,"name","2+2 = 4");e(this,"id","have_25_intelligence");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 d'intelligence");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=25)}}class Ju extends d{constructor(){super(...arguments);e(this,"name","Petit Einstein");e(this,"id","have_50_intelligence");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 d'intelligence");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=50)}}class ef extends d{constructor(){super(...arguments);e(this,"name","HPI");e(this,"id","have_100_intelligence");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 d'intelligence");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=100)}}class tf extends d{constructor(){super(...arguments);e(this,"name","Sorcier du savoir");e(this,"id","have_250_intelligence");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 d'intelligence");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=250)}}class af extends d{constructor(){super(...arguments);e(this,"name","Héritier de Vegapunk");e(this,"id","have_500_intelligence");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 d'intelligence");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Vegapunk"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=500)}}class sf extends d{constructor(){super(...arguments);e(this,"name","Touche du bois");e(this,"id","have_25_chance");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de chance");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.chance)>=25)}}class rf extends d{constructor(){super(...arguments);e(this,"name","Petit veinard");e(this,"id","have_50_chance");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de chance");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.chance)>=50)}}class nf extends d{constructor(){super(...arguments);e(this,"name","LA CHAAAAAATTE !");e(this,"id","have_100_chance");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de chance");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.chance)>=100)}}class lf extends d{constructor(){super(...arguments);e(this,"name","Favori des Astres");e(this,"id","have_250_chance");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de chance");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.chance)>=250)}}class df extends d{constructor(){super(...arguments);e(this,"name","Héritier de Baggy");e(this,"id","have_500_chance");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de chance");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Baggy"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.chance)>=500)}}class of extends d{constructor(){super(...arguments);e(this,"name","Résistant");e(this,"id","have_25_vitality");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de vitalité");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=25)}}class cf extends d{constructor(){super(...arguments);e(this,"name","Solide comme un roc");e(this,"id","have_50_vitality");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de vitalité");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=50)}}class uf extends d{constructor(){super(...arguments);e(this,"name","Le tank !");e(this,"id","have_100_vitality");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de vitalité");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=100)}}class ff extends d{constructor(){super(...arguments);e(this,"name","Mais t'es increvable !");e(this,"id","have_250_vitality");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de vitalité");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=250)}}class hf extends d{constructor(){super(...arguments);e(this,"name","Héritier de Kaido");e(this,"id","have_500_vitality");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de vitalité");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Kaido"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=500)}}class pf extends d{constructor(){super(...arguments);e(this,"name","Tu as lu des livres ?");e(this,"id","have_25_wisdom");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de sagesse");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=25)}}class mf extends d{constructor(){super(...arguments);e(this,"name","Filozof");e(this,"id","have_50_wisdom");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de sagesse");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=50)}}class yf extends d{constructor(){super(...arguments);e(this,"name","Platon");e(this,"id","have_100_wisdom");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de sagesse");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=100)}}class gf extends d{constructor(){super(...arguments);e(this,"name","Oracle vénéré");e(this,"id","have_250_wisdom");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de sagesse");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=250)}}class wf extends d{constructor(){super(...arguments);e(this,"name","Héritier d'Ohara");e(this,"id","have_500_wisdom");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de sagesse");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier d'Ohara"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=500)}}class _f extends d{constructor(){super(...arguments);e(this,"name","Un pas devant l'autre !");e(this,"id","be_level_10");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 10");e(this,"berry",1e5);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=10)}}class bf extends d{constructor(){super(...arguments);e(this,"name","T'inquiète pas ça va bien se passer");e(this,"id","be_level_20");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 20");e(this,"berry",3e5);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=20)}}class Sf extends d{constructor(){super(...arguments);e(this,"name","Commence par me parler poliment");e(this,"id","be_level_30");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 30");e(this,"berry",1e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=30)}}class Mf extends d{constructor(){super(...arguments);e(this,"name","On te respecte à la cantine");e(this,"id","be_level_40");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 40");e(this,"berry",3e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=40)}}class kf extends d{constructor(){super(...arguments);e(this,"name","Ça commence à devenir sérieux");e(this,"id","be_level_50");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 50");e(this,"berry",5e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=50)}}class vf extends d{constructor(){super(...arguments);e(this,"name","Une chambre individuelle ? La chance !");e(this,"id","be_level_60");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 60");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=60)}}class Rf extends d{constructor(){super(...arguments);e(this,"name","Oulah, les responsabilités arrivent");e(this,"id","be_level_70");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 70");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=70)}}class Cf extends d{constructor(){super(...arguments);e(this,"name","Faut pas t'emmerder toi");e(this,"id","be_level_80");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 80");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=80)}}class Uf extends d{constructor(){super(...arguments);e(this,"name","Là on parle !");e(this,"id","be_level_90");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 90");e(this,"berry",1e8);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=90)}}class xf extends d{constructor(){super(...arguments);e(this,"name","*S'agenouille*");e(this,"id","be_level_120");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 120");e(this,"berry",1e9);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=120)}}class Bf extends d{constructor(){super(...arguments);e(this,"name","T'as des amis ?");e(this,"id","daily_vocal");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se connecter 10 min en vocal");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*5e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*500);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserMetaUpdate",({xp:s})=>s.voice.minutesInVoiceToday>=10&&be(s.voice.lastConnection,new Date))}}const Ja=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:_f,BeLevel120:xf,BeLevel20:bf,BeLevel30:Sf,BeLevel40:Mf,BeLevel50:kf,BeLevel60:vf,BeLevel70:Rf,BeLevel80:Cf,BeLevel90:Uf,DailyVocal:Bf,Have100Agility:Vu,Have100Chance:nf,Have100Intelligence:ef,Have100Strength:Hu,Have100Vitality:uf,Have100Wisdom:yf,Have250Agility:zu,Have250Chance:lf,Have250Intelligence:tf,Have250Strength:qu,Have250Vitality:ff,Have250Wisdom:gf,Have25Agility:Ku,Have25Chance:sf,Have25Intelligence:Zu,Have25Strength:ju,Have25Vitality:of,Have25Wisdom:pf,Have500Agility:Xu,Have500Chance:df,Have500Intelligence:af,Have500Strength:Wu,Have500Vitality:hf,Have500Wisdom:wf,Have500kBerry:Iu,Have500mBerry:Pu,Have50Agility:Gu,Have50Chance:rf,Have50Intelligence:Ju,Have50Strength:Qu,Have50Vitality:cf,Have50Wisdom:mf,Have50mBerry:Lu,Have5mBerry:Yu,Have5mdBerry:Tu},Symbol.toStringTag,{value:"Module"}));class Of extends d{constructor(){super(...arguments);e(this,"name","Un poster dans ta chambre");e(this,"id","have_1_background");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 1 background");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(r=>r!=="default").length>=1)}}class Df extends d{constructor(){super(...arguments);e(this,"name","Fan de One Piece");e(this,"id","have_25_background");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 25 backgrounds différents");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(r=>r!=="default").length>=25)}}class Af extends d{constructor(){super(...arguments);e(this,"name","Tu vas en faire quoi ? Tu peux en mettre qu'un");e(this,"id","have_50_background");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 50 backgrounds différents");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(r=>r!=="default").length>=50)}}class Nf extends d{constructor(){super(...arguments);e(this,"name","PTDR t ki ?");e(this,"id","have_10_title");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 10 titres différents");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=10)}}class $f extends d{constructor(){super(...arguments);e(this,"name","On m'appelle Personne");e(this,"id","have_50_title");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 50 titres différents");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=50)}}class Ef extends d{constructor(){super(...arguments);e(this,"name","Ok Daenerys");e(this,"id","have_100_title");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 100 titres différents");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=100)}}const es=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:Ef,Have10Title:Nf,Have1Background:Of,Have25Background:Df,Have50Background:Af,Have50Title:$f},Symbol.toStringTag,{value:"Module"}));class Ff extends d{constructor(){super(...arguments);e(this,"name","Petit joueur");e(this,"id","bet_min_value");e(this,"rank",l.RANKS.RARE);e(this,"description","Mise la somme minimale lors d'un pari");e(this,"berry",5e4);e(this,"xp",1e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles["Petit joueur"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.betMin)}}class If extends d{constructor(){super(...arguments);e(this,"name","On a tous le droit à une seconde chance");e(this,"id","lose_everything");e(this,"rank",l.RANKS.RARE);e(this,"description","Perdre tous ses Berrys");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.loseEverything)}}class Yf extends d{constructor(){super(...arguments);e(this,"name","T'es sûr de toi ?");e(this,"id","bet_10M");e(this,"rank",l.RANKS.EPIC);e(this,"description","Miser plus de 10 000 000 de Berrys en une seule fois");e(this,"berry",5e5);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.bet10M)}}class Lf extends d{constructor(){super(...arguments);e(this,"name","Ok j'ai rien dit");e(this,"id","win_10M_bet");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Gagner en ayant misé plus de 10M de Berrys");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.winBet10M)}}class Pf extends d{constructor(){super(...arguments);e(this,"name","T'es accro là non ?");e(this,"id","bet_total_10M");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Miser plus de 10 000 000 de Berrys en tout");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Gambling addict"]);e(this,"badge",u.BadgeList.casino);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.totalBet>=1e7)}}class Tf extends d{constructor(){super(...arguments);e(this,"name","LE MILLIARD");e(this,"id","bet_total_1Md");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Miser plus de 1 000 000 000 de Berrys en tout");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"badge",u.BadgeList.casino);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.totalBet>=1e9)}}class jf extends d{constructor(){super(...arguments);e(this,"name","Cheh !");e(this,"id","lose_10M");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Perdre 10M de Berrys en une fois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",u.BadgeList.noluck);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.lose10M)}}class Qf extends d{constructor(){super(...arguments);e(this,"name","Bon anniversaire !");e(this,"id","birthday");e(this,"rank",l.RANKS.EPIC);e(this,"description","Fêter son anniversaire");e(this,"berry",1e6);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.hasCelebrateBirthday)}}class Hf extends d{constructor(){super(...arguments);e(this,"name","Il ne va pas te répondre tu sais ?");e(this,"id","bot_ping");e(this,"rank",l.RANKS.EPIC);e(this,"description","Ping le bot 100 fois");e(this,"berry",25e4);e(this,"xp",25e3);e(this,"secret",!0);e(this,"title",u.questTitles.Teubé);e(this,"badge",null);e(this,"asset",u.profileAssets.idiot);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({botPing:s})=>s>=100)}}class qf extends d{constructor(){super(...arguments);e(this,"name","Tu avais soif ?");e(this,"id","drink_100_xp_bottles_1_day");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 100 Potions d'XP en une journée");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.today>=100)}}class Wf extends d{constructor(){super(...arguments);e(this,"name","Un ptit goût amer non ?");e(this,"id","drink_200");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 200 Potions d'XP");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=200)}}class Kf extends d{constructor(){super(...arguments);e(this,"name","Ça se boit bien finalement");e(this,"id","drink_500");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 500 Potions d'XP");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=500)}}class Gf extends d{constructor(){super(...arguments);e(this,"name","Les potions donnent des aiiiiles !");e(this,"id","drink_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 1000 Potions d'XP");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=1e3)}}class Vf extends d{constructor(){super(...arguments);e(this,"name","À deux doigts de vomir");e(this,"id","drink_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 2000 Potions d'XP");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=2e3)}}class zf extends d{constructor(){super(...arguments);e(this,"name","Alcoolique");e(this,"id","drink_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 5000 Potions d'XP");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Alcoolique);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=5e3)}}class Xf extends d{constructor(){super(...arguments);e(this,"name","C'est sympa ce ptit jeu");e(this,"id","chest_open_50");e(this,"rank",l.RANKS.COMMON);e(this,"description","Ouvrir 50 Coffres");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=50)}}class Zf extends d{constructor(){super(...arguments);e(this,"name","T'as enfin eu un truc intéressant ?");e(this,"id","chest_open_150");e(this,"rank",l.RANKS.RARE);e(this,"description","Ouvrir 150 Coffres");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=150)}}class Jf extends d{constructor(){super(...arguments);e(this,"name","Ça commence à gratter hein ?");e(this,"id","chest_open_500");e(this,"rank",l.RANKS.EPIC);e(this,"description","Ouvrir 500 Coffres");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=500)}}class eh extends d{constructor(){super(...arguments);e(this,"name","LAISSEZ-MOI OUVRIR DES COFFRES !");e(this,"id","chest_open_1000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Ouvrir 1000 Coffres");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=1e3)}}class th extends d{constructor(){super(...arguments);e(this,"name","xXFan2GenshinXx");e(this,"id","chest_open_2000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Ouvrir 2000 Coffres");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Gatcha Addict"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=2e3)}}class ah extends d{constructor(){super(...arguments);e(this,"name","Ils font mieux chez Ikea");e(this,"id","craft_20_times");e(this,"rank",l.RANKS.COMMON);e(this,"description","Effectuer 20 crafts");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=20)}}class sh extends d{constructor(){super(...arguments);e(this,"name","Te fais pas mal avec le marteau");e(this,"id","craft_50_times");e(this,"rank",l.RANKS.RARE);e(this,"description","Effectuer 50 crafts");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=50)}}class rh extends d{constructor(){super(...arguments);e(this,"name","Insensible aux échardes on dirait");e(this,"id","craft_200_times");e(this,"rank",l.RANKS.EPIC);e(this,"description","Effectuer 200 crafts");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=200)}}class nh extends d{constructor(){super(...arguments);e(this,"name","Je ne veux pas voir l'état de ton atelier");e(this,"id","craft_500_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Effectuer 500 crafts");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=500)}}class ih extends d{constructor(){super(...arguments);e(this,"name","Mac Gyver");e(this,"id","craft_1000_times");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Effectuer 1000 crafts");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Mac Gyver"]);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=1e3)}}class lh extends d{constructor(){super(...arguments);e(this,"name","Apprenti Gourmand");e(this,"id","craft_10_cooked_meals");e(this,"rank",l.RANKS.COMMON);e(this,"description","Cuisiner 10 plats");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"asset",null);e(this,"title",u.questTitles["Apprenti Gourmand"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=10)}}class dh extends d{constructor(){super(...arguments);e(this,"name","Chef Amateur");e(this,"id","craft_50_cooked_meals");e(this,"rank",l.RANKS.RARE);e(this,"description","Cuisiner 50 plats");e(this,"berry",2e5);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",u.questTitles["Chef Amateur"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=50)}}class oh extends d{constructor(){super(...arguments);e(this,"name","Maître des Saveurs");e(this,"id","craft_100_cooked_meals");e(this,"rank",l.RANKS.EPIC);e(this,"description","Cuisiner 100 plats");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Maître des Saveurs"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=100)}}class ch extends d{constructor(){super(...arguments);e(this,"name","Artiste Culinaire");e(this,"id","craft_250_cooked_meals");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Cuisiner 250 plats");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"asset",null);e(this,"title",u.questTitles["Artiste Culinaire"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=250)}}class uh extends d{constructor(){super(...arguments);e(this,"name","Sultan des Épices");e(this,"id","craft_500_cooked_meals");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Cuisiner 500 plats");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"asset",null);e(this,"title",u.questTitles["Sultan des Épices"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=500)}}class fh extends d{constructor(){super(...arguments);e(this,"name","C'est une bonne situation ça scribe ?");e(this,"id","craft_5_scrolls");e(this,"rank",l.RANKS.COMMON);e(this,"description","Craft 5 Parchemins");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"asset",null);e(this,"title",u.questTitles["Apprenti Scribe"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=5)}}class hh extends d{constructor(){super(...arguments);e(this,"name","Artisan des Runes");e(this,"id","craft_10_scrolls");e(this,"rank",l.RANKS.RARE);e(this,"description","Craft 10 Parchemins");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",u.questTitles["Artisan des Runes"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=10)}}class ph extends d{constructor(){super(...arguments);e(this,"name","Collectionneur des Manuscrits");e(this,"id","craft_20_scrolls");e(this,"rank",l.RANKS.EPIC);e(this,"description","Craft 20 Parchemins");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Collectionneur de Manuscrits"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=20)}}class mh extends d{constructor(){super(...arguments);e(this,"name","Maître des Enluminures");e(this,"id","craft_50_scrolls");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Craft 50 Parchemins");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"asset",null);e(this,"title",u.questTitles["Maître des Enluminures"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=50)}}class yh extends d{constructor(){super(...arguments);e(this,"name","Protecteur du Savoir");e(this,"id","craft_100_scrolls");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Craft 100 Parchemins");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"asset",null);e(this,"title",u.questTitles["Protecteur du Savoir"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=100)}}class gh extends d{constructor(){super(...arguments);e(this,"name","Egoïste...");e(this,"id","crew_10_percent");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être à 10% d'XP pour l'équipage pendant 3 mois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles.Egoïste);e(this,"badge",u.BadgeList.selfish);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.timeAt10Percent>=90)}}class wh extends d{constructor(){super(...arguments);e(this,"name","Merci bien camarade !");e(this,"id","crew_90_percent");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être à 90% d'XP pour l'équipage pendant 3 mois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles.Camarade);e(this,"badge",u.BadgeList.camarade);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.timeAt90Percent>=90)}}class _h extends d{constructor(){super(...arguments);e(this,"name","Vaut mieux ça que perdre non ?");e(this,"id","draw_100");e(this,"rank",l.RANKS.COMMON);e(this,"description","Faire 100 égalités");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=100)}}class bh extends d{constructor(){super(...arguments);e(this,"name","Tu as trouvé ton rival");e(this,"id","draw_300");e(this,"rank",l.RANKS.RARE);e(this,"description","Faire 300 égalités");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=300)}}class Sh extends d{constructor(){super(...arguments);e(this,"name","Rathon c'est toi ?");e(this,"id","draw_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Faire 1000 égalités");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=1e3)}}class Mh extends d{constructor(){super(...arguments);e(this,"name","Tu te bats contre un mur ou quoi ?");e(this,"id","draw_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 2000 égalités");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=2e3)}}class kh extends d{constructor(){super(...arguments);e(this,"name","De vrais jumeaux");e(this,"id","draw_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Faire 5000 égalités");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Égalitaire);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=5e3)}}class vh extends d{constructor(){super(...arguments);e(this,"name","Y'a un truc que t'as pas compris ?");e(this,"id","edito_read_100");e(this,"rank",l.RANKS.EPIC);e(this,"description","Lire 100 fois l'édito en une journée");e(this,"berry",25e4);e(this,"xp",25e3);e(this,"secret",!0);e(this,"crew",!1);e(this,"daily",!1);e(this,"title",u.questTitles.Culturé);e(this,"badge",null);e(this,"asset",u.profileAssets.edito);e(this,"isFactionBadge",!1);e(this,"onUserQuestMetaUpdate",s=>s.edito.readToday>=100)}}class Rh extends d{constructor(){super(...arguments);e(this,"name","Une fois, pas deux");e(this,"id","everyone");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Tenter de tag everyone");e(this,"berry",-1e6);e(this,"xp",-5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.tagEveryone)}}class Ch extends d{constructor(){super(...arguments);e(this,"name","Emoji Diable");e(this,"id","double_six");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 50 fois un double six");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"badge",u.BadgeList.doublesix);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.double_six>=50)}}class Uh extends d{constructor(){super(...arguments);e(this,"name","Pas de chance ^^");e(this,"id","draw_double_six");e(this,"rank",l.RANKS.RARE);e(this,"description","Faire une fois une égalité en double 6");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.drawDoubleSix>=1)}}class xh extends d{constructor(){super(...arguments);e(this,"name","Jamais 6 sans 7");e(this,"id","seven_quitte_ou_double");e(this,"rank",l.RANKS.MYTHIC);e(this,"description",'Gagner 7 fois de suite "Doubles" au Quitte ou Double');e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"badge",u.BadgeList.chance);e(this,"title",u.questTitles.Chanceux);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.sevenQuitteOuDouble>=1)}}class Bh extends d{constructor(){super(...arguments);e(this,"name","Le 5 à la suite");e(this,"id","win_5_in_row");e(this,"rank",l.RANKS.EPIC);e(this,"description","Gagner aux 5 jeux du casino à la suite");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const r=s.lastGames.slice(0,5);return r.length<5||La(r,n=>n.gameType).length<5?!1:r.reduce((n,i)=>n+i.endState,0)===5})}}class Oh extends d{constructor(){super(...arguments);e(this,"name","Le 5 à la suite, mais dans l'autre sens");e(this,"id","lose_5_in_row");e(this,"rank",l.RANKS.EPIC);e(this,"description","Perdre aux 5 jeux du casino à la suite");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const r=s.lastGames.slice(0,5);return r.length!==5||La(r,n=>n.gameType).length<5?!1:r.reduce((n,i)=>n+i.endState,0)===-5})}}class Dh extends d{constructor(){super(...arguments);e(this,"name","Jacques le noir");e(this,"id","ten_black_jack");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 10 fois BlackJack");e(this,"berry",5e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"badge",u.BadgeList["black-jack"]);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.black_jack>=10)}}class Ah extends d{constructor(){super(...arguments);e(this,"name","La feuille enveloppe la pierre ! T'es sûr ?");e(this,"id","paper_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Papier au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Papyrus);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="paper"&&s.rps.nb>=100)}}class Nh extends d{constructor(){super(...arguments);e(this,"name","On fait la paire !");e(this,"id","scissor_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Ciseaux au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Couturier);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="scissor"&&s.rps.nb>=100)}}class $h extends d{constructor(){super(...arguments);e(this,"name","Golem");e(this,"id","rock_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Pierre au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Golem);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="rock"&&s.rps.nb>=100)}}class Eh extends d{constructor(){super(...arguments);e(this,"name","LE NEUF ET LE HUIT !!!");e(this,"id","guess_in_one");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Deviner le Juste Prix en un coup");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.guessInOne>=1)}}class Fh extends d{constructor(){super(...arguments);e(this,"name","Sataniste");e(this,"id","bet_666_50_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Miser 666 Berry au moins une fois par jour pendant 1 mois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"title",u.questTitles.Démon);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"badge",null);e(this,"asset",u.profileAssets.satan);e(this,"onUserQuestMetaUpdate",s=>s.bet666.amount>=30)}}class Ih extends d{constructor(){super(...arguments);e(this,"name","Jour, Nuit");e(this,"id","win_lose_10_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description",'Faire un enchaînement "Victoire/Défaite" 10 fois de suite');e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const r=s.lastGames;if(r.length!==20)return!1;for(let n=0;n<r.length;n++)if(n%2===0&&r[n].endState!==1||n%2!==0&&r[n].endState!==-1)return!1;return!0})}}class Yh extends d{constructor(){super(...arguments);e(this,"name","Explorateur novice");e(this,"id","finish_10_raids");e(this,"rank",l.RANKS.COMMON);e(this,"description","Réussir 10 expéditions");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=10)}}class Lh extends d{constructor(){super(...arguments);e(this,"name","Aventurier intrépide");e(this,"id","finish_25_raids");e(this,"rank",l.RANKS.RARE);e(this,"description","Réussir 25 expéditions");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=25)}}class Ph extends d{constructor(){super(...arguments);e(this,"name","Conquérant des terres");e(this,"id","finish_50_raids");e(this,"rank",l.RANKS.EPIC);e(this,"description","Réussir 50 expéditions");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=50)}}class Th extends d{constructor(){super(...arguments);e(this,"name","Pionnier des secrets");e(this,"id","finish_100_raids");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Réussir 100 expéditions");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=100)}}class jh extends d{constructor(){super(...arguments);e(this,"name","Légende vivante");e(this,"id","finish_200_raids");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Réussir 200 expéditions");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Légende vivante"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=200)}}class Qh extends d{constructor(){super(...arguments);e(this,"name","Vif");e(this,"id","random_message_20");e(this,"rank",l.RANKS.COMMON);e(this,"description","Récupérer 20 Messages aléatoires");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=20)}}class Hh extends d{constructor(){super(...arguments);e(this,"name","Lucky Luke");e(this,"id","random_message_50");e(this,"rank",l.RANKS.RARE);e(this,"description","Récupérer 50 Messages aléatoires");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=50)}}class qh extends d{constructor(){super(...arguments);e(this,"name","Rapide");e(this,"id","random_message_100");e(this,"rank",l.RANKS.EPIC);e(this,"description","Récupérer 100 Messages aléatoires");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=100)}}class Wh extends d{constructor(){super(...arguments);e(this,"name","Et Furieux");e(this,"id","random_message_200");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Récupérer 200 Messages aléatoires");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=200)}}class Kh extends d{constructor(){super(...arguments);e(this,"name","Ka-Chow");e(this,"id","random_message_500");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Récupérer 500 Messages aléatoires");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Flash Mc Queen"]);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=500)}}class Gh extends d{constructor(){super(...arguments);e(this,"name","Collabo");e(this,"id","collabo");e(this,"rank",l.RANKS.COMMON);e(this,"description","Report une personne au staff");e(this,"berry",1e4);e(this,"xp",5e3);e(this,"secret",!0);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.reportedSomeone)}}class Vh extends d{constructor(){super(...arguments);e(this,"name","Bienvenue sur OPFR");e(this,"id","send_100_msg");e(this,"rank",l.RANKS.COMMON);e(this,"description","Envoyer 100 messages");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=100)}}class zh extends d{constructor(){super(...arguments);e(this,"name","Une vraie pipelette");e(this,"id","send_1000_msg");e(this,"rank",l.RANKS.RARE);e(this,"description","Envoyer 1 000 messages");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=1e3)}}class Xh extends d{constructor(){super(...arguments);e(this,"name","Faites le taire ");e(this,"id","send_25000_msg");e(this,"rank",l.RANKS.EPIC);e(this,"description","Envoyer 25 000 messages");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=25e3)}}class Zh extends d{constructor(){super(...arguments);e(this,"name","Tu sors de chez toi des fois ?");e(this,"id","send_100000_msg");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Envoyer 100 000 messages");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=1e5)}}class Jh extends d{constructor(){super(...arguments);e(this,"name","J'ai pas les mots... mais toi si !");e(this,"id","send_200000_msg");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Envoyer 200 000 messages");e(this,"berry",1e8);e(this,"xp",25e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",u.questTitles.Spammeur);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=2e5)}}class ep extends d{constructor(){super(...arguments);e(this,"name","T'as reçu ton argent de poche ?");e(this,"id","spend_shop_5m");e(this,"rank",l.RANKS.COMMON);e(this,"description","Dépenser 5 000 000 Berrys dans la boutique");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e6)}}class tp extends d{constructor(){super(...arguments);e(this,"name","Tu t'es fait plaisir !");e(this,"id","spend_shop_50m");e(this,"rank",l.RANKS.RARE);e(this,"description","Dépenser 50 000 000 Berrys dans la boutique");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e7)}}class ap extends d{constructor(){super(...arguments);e(this,"name","C'était les soldes j'espère !");e(this,"id","spend_shop_500m");e(this,"rank",l.RANKS.EPIC);e(this,"description","Dépenser 500 000 000 Berrys dans la boutique");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e8)}}class sp extends d{constructor(){super(...arguments);e(this,"name","Paré pour la Fashion Week");e(this,"id","spend_shop_5ml");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Dépenser 5 000 000 000 Berrys dans la boutique");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e9)}}class rp extends d{constructor(){super(...arguments);e(this,"name","Fashion Viktim");e(this,"id","spend_shop_50ml");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Dépenser 50 000 000 000 Berrys dans la boutique");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",u.questTitles["Fashion Viktim"]);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e10)}}class np extends d{constructor(){super(...arguments);e(this,"name","On commence à se connaître");e(this,"id","voice_1_hours");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se connecter 10h en vocal");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*10)}}class ip extends d{constructor(){super(...arguments);e(this,"name","Je sais tout de toi");e(this,"id","voice_10_hours");e(this,"rank",l.RANKS.RARE);e(this,"description","Se connecter 25h en vocal");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*25)}}class lp extends d{constructor(){super(...arguments);e(this,"name","T'as pas soif ?");e(this,"id","voice_250_hours");e(this,"rank",l.RANKS.EPIC);e(this,"description","Se connecter 250h en vocal");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*250)}}class dp extends d{constructor(){super(...arguments);e(this,"name","Ok Socrate");e(this,"id","voice_2500_hours");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Se connecter 2500h en vocal");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*2500)}}class op extends d{constructor(){super(...arguments);e(this,"name","Elle ressemble à quoi la lumière du soleil ?");e(this,"id","voice_5000_hours");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Se connecter 5000h en vocal");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Ermite);e(this,"badge",u.BadgeList.ermite);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*5e3)}}class cp extends d{constructor(){super(...arguments);e(this,"name","Stagiaire");e(this,"id","work_100");e(this,"rank",l.RANKS.COMMON);e(this,"description","Travailler 100 fois");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=100)}}class up extends d{constructor(){super(...arguments);e(this,"name","Alternant");e(this,"id","work_300");e(this,"rank",l.RANKS.RARE);e(this,"description","Travailler 300 fois");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=300)}}class fp extends d{constructor(){super(...arguments);e(this,"name","Smicard");e(this,"id","work_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Travailler 1000 fois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=1e3)}}class hp extends d{constructor(){super(...arguments);e(this,"name","Communiste");e(this,"id","work_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Travailler 2000 fois");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=2e3)}}class pp extends d{constructor(){super(...arguments);e(this,"name","Esclave");e(this,"id","work_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Travailler 5000 fois");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Esclave);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=5e3)}}class mp extends d{constructor(){super(...arguments);e(this,"name","Timide");e(this,"id","write_10_chats");e(this,"rank",l.RANKS.COMMON);e(this,"description","Écrire dans 10 chats différents");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=10)}}class yp extends d{constructor(){super(...arguments);e(this,"name","Curieux");e(this,"id","write_20_chats");e(this,"rank",l.RANKS.RARE);e(this,"description","Écrire dans 20 chats différents");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=20)}}class gp extends d{constructor(){super(...arguments);e(this,"name","Voyeur");e(this,"id","write_50_chats");e(this,"rank",l.RANKS.EPIC);e(this,"description","Écrire dans 50 chats différents");e(this,"berry",5e5);e(this,"xp",5e4);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=50)}}class wp extends d{constructor(){super(...arguments);e(this,"name","Philanthrope");e(this,"id","write_100_chats");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Écrire dans 100 chats différents");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=100)}}class _p extends d{constructor(){super(...arguments);e(this,"name","Explorateur");e(this,"id","write_200_chats");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Écrire dans 200 chats différents");e(this,"berry",1e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Explorateur);e(this,"badge",u.BadgeList.exploration);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=200)}}const bp=async(t,a,s,{berry:r,xp:n})=>{const i=await gs(a).then(E=>E.populate("user","faction")),o=ms(i),f=_n(i,i.user.faction),{badge:m,isFactionBadge:_,title:B,rank:Y,name:H,description:j0,daily:sa,secret:Q0}=t;return s.Image().setImageName(`quest_success_${Y.id}`).setDimensions(2080,636).draw(),m?s.Image().setImageName(u.progressiveBadgeTypeGuard(m)?`cropped_badge_${m.img}_${Y.id}`:`cropped_badge_${m.img}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():_&&i.user.faction!=="citizen"?s.Image().setImageName(`cropped_badge_${i.user.faction}_${Y.id}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():s.Image().setImageName(`badge_default_${Y.id}`).setScale(2).setOrigin(j.CanvasOrigin.CENTER).setPosition(370,318).draw(),s.Text(sa?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(Y.color).draw(),s.Text(H).setPosition(739,325).setOrigin(j.CanvasOrigin.BOTTOM_LEFT).setFont("poppins",H.length>=35?65-(H.length-35):65).draw(),s.Text(Q0?"Succès caché":j0).setPosition(739,360).setFont("poppins_italic",35).draw(),s.Text(`Récompenses: ${Qt(r)}${sa&&o>1?` (+${Qt(r*(o-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(j.CanvasOrigin.LEFT).draw(r!==0).next((E,L)=>j.nextAllToXAxis(E.Image(),L)).setImageName("quest_berry").setDimensions(50,79).draw(r!==0).next((E,L)=>j.nextAllToXAxis(E.Text(` / ${Qt(n)}${sa&&o>1?` (+${Qt(n*(o-1))})`:""} `),L)).draw(n!==0).next((E,L)=>j.nextAllToXAxis(E.Image(),L)).setImageName("quest_xp").setDimensions(57,59).draw(n!==0).next((E,L)=>j.nextAllToXAxis(E.Text(` combo x${o}`),L)).draw(sa&&o>1).next((E,L)=>j.nextAllToXAxis(E.Text(" et la possibilité "),L)).draw(_&&i.user.faction==="citizen").next((E,L)=>j.nextAllToXAxis(E.Text("de choisir ta faction"),L)).setFont("poppins_bold",35).draw(_&&i.user.faction==="citizen").next((E,L)=>j.nextAllToXAxis(E.Text(" et le titre "),L)).setFont("poppins",35).draw(!!B||_&&i.user.faction!=="citizen").next((E,L)=>j.nextAllToXAxis(E.Text((B==null?void 0:B.name)??""),L)).setFont("poppins_bold",35).setColor((B==null?void 0:B.rank.color)??"white").draw(!!B).next((E,L)=>j.nextAllToXAxis(E.Text((f==null?void 0:f.name)??""),L)).setColor((f==null?void 0:f.rank.color)??"white").draw(_&&!!f),await s.encode("webp")},Sp=10,Mp=1e7,kp=100,vp=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],Rp={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>"}},Cp=(t,a)=>{const s=t.badge,r=t.isFactionBadge;return s?u.progressiveBadgeTypeGuard(s)?s.emojis[s.isProgressive.findIndex(n=>n===t.rank.id)]:s.emojis:r?Rp.factions[`b_${a}_${t.rank.id}`]:""},Up=t=>{const[a,s]=t.split("_"),r=Object.values(u.BadgeList).find(n=>n.id===a);if(r)return u.progressiveBadgeTypeGuard(r)?r.emojis[r.isProgressive.findIndex(n=>n===s)]:r.emojis},xp=async(t,a)=>{const s=Object.values(Va).find(r=>new r().id===t);if(s){const r=new s,n=await r.complete(a,{});n&&le("userDaily",a,[[r,n]])}},Bp=async(t,a)=>{const s=Object.values(Gc).find(r=>new r().id===t);if(s){const r=new s,n=await r.complete(a,{});n&&le("crewDaily",a,[[r,n]])}};class Op extends d{constructor(){super(...arguments);e(this,"name","Jeune étudiant");e(this,"id","drink_50_alcohols");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 50 alcools");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Jeune étudiant"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=50)}}class Dp extends d{constructor(){super(...arguments);e(this,"name","Habitué des bars");e(this,"id","drink_250_alcohols");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 250 alcools");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Habitué des bars"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=250)}}class Ap extends d{constructor(){super(...arguments);e(this,"name","Alcoolique notoire");e(this,"id","drink_500_alcohols");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 500 alcools");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Alcoolique notoire"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=500)}}class Np extends d{constructor(){super(...arguments);e(this,"name","Ivrogne");e(this,"id","drink_1000_alcohols");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 1000 alcools");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Ivrogne);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=1e3)}}class $p extends d{constructor(){super(...arguments);e(this,"name","Breton");e(this,"id","drink_2000_alcohols");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 2000 alcools");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Breton);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=2e3)}}class Ep extends d{constructor(){super(...arguments);e(this,"name","Buveur de Rhum");e(this,"id","drink_10_rhum");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Rhums");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=10)}}class Fp extends d{constructor(){super(...arguments);e(this,"name","Amateur de Rhum");e(this,"id","drink_100_rhum");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Rhums");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=100)}}class Ip extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Rhum");e(this,"id","drink_250_rhum");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Rhums");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=250)}}class Yp extends d{constructor(){super(...arguments);e(this,"name","Rhumologue");e(this,"id","drink_500_rhum");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Rhums");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Rhumologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=500)}}class Lp extends d{constructor(){super(...arguments);e(this,"name","Dieu du Rhum");e(this,"id","drink_1000_rhum");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Rhums");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu du Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=1e3)}}class Pp extends d{constructor(){super(...arguments);e(this,"name","Buveur de Bière");e(this,"id","drink_10_beer");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Bières");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Bière"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=10)}}class Tp extends d{constructor(){super(...arguments);e(this,"name","Amateur de Bière");e(this,"id","drink_100_beer");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Bières");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=100)}}class jp extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Bière");e(this,"id","drink_250_beer");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Bières");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=250)}}class Qp extends d{constructor(){super(...arguments);e(this,"name","Bièrologue");e(this,"id","drink_500_beer");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Bières");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Bièrologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=500)}}class Hp extends d{constructor(){super(...arguments);e(this,"name","Dieu de la Bière");e(this,"id","drink_1000_beer");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Bières");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu de la Bière"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=1e3)}}class qp extends d{constructor(){super(...arguments);e(this,"name","Buveur de Vin");e(this,"id","drink_10_wine");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Vins");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=10)}}class Wp extends d{constructor(){super(...arguments);e(this,"name","Amateur de Vin");e(this,"id","drink_100_wine");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Vins");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=100)}}class Kp extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Vin");e(this,"id","drink_250_wine");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Vins");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=250)}}class Gp extends d{constructor(){super(...arguments);e(this,"name","Vinologue");e(this,"id","drink_500_wine");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Vins");e(this,"berry",1e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Vinologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=500)}}class Vp extends d{constructor(){super(...arguments);e(this,"name","Dieu du Vin");e(this,"id","drink_1000_wine");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Vins");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu du Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=1e3)}}const ts=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:Yf,Bet666:Fh,BetMinValue:Ff,Birthday:Qf,BotPing:Hf,ChestOpen1000Quest:eh,ChestOpen150Quest:Zf,ChestOpen2000Quest:th,ChestOpen500Quest:Jf,ChestOpen50Quest:Xf,Craft1000Times:ih,Craft100CookedMeals:oh,Craft100Scrolls:yh,Craft10CookedMeals:lh,Craft10Scrolls:hh,Craft200Times:rh,Craft20Scrolls:ph,Craft20Times:ah,Craft250CookedMeals:ch,Craft500CookedMeals:uh,Craft500Times:nh,Craft50CookedMeals:dh,Craft50Scrolls:mh,Craft50Times:sh,Craft5Scrolls:fh,Crew10Percent:gh,Crew90Percent:wh,DoubleSix:Ch,Draw1000Quest:Sh,Draw100Quest:_h,Draw2000Quest:Mh,Draw300Quest:bh,Draw5000Quest:kh,DrawDoubleSix:Uh,Drink1000Alcohols:Np,Drink1000Beer:Hp,Drink1000Quest:Gf,Drink1000Rhum:Lp,Drink1000Wine:Vp,Drink100Beer:Tp,Drink100Rhum:Fp,Drink100Today:qf,Drink100Wine:Wp,Drink10Beer:Pp,Drink10Rhum:Ep,Drink10Wine:qp,Drink2000Alcohols:$p,Drink2000Quest:Vf,Drink200Quest:Wf,Drink250Alcohols:Dp,Drink250Beer:jp,Drink250Rhum:Ip,Drink250Wine:Kp,Drink5000Quest:zf,Drink500Alcohols:Ap,Drink500Beer:Qp,Drink500Quest:Kf,Drink500Rhum:Yp,Drink500Wine:Gp,Drink50Alcohols:Op,Edito:vh,Everyone:Rh,Finish100Raids:Th,Finish10Raids:Yh,Finish200Raids:jh,Finish25Raids:Lh,Finish50Raids:Ph,GuessInOne:Eh,Lose10M:jf,LoseAll5GamesInRow:Oh,LoseEverything:If,Paper100:Ah,RandomMessage100Quest:qh,RandomMessage200Quest:Wh,RandomMessage20Quest:Qh,RandomMessage500Quest:Kh,RandomMessage50Quest:Hh,Report:Gh,Rock100:$h,Scissor100:Nh,SevenQuitteOuDouble:xh,SpendShop500M:ap,SpendShop50M:tp,SpendShop50Ml:rp,SpendShop5M:ep,SpendShop5Ml:sp,TenBlackJack:Dh,TotalBet10M:Pf,TotalBet1Md:Tf,Voice10Hours:np,Voice2500Hours:dp,Voice250Hours:lp,Voice25Hours:ip,Voice5000Hours:op,WinAll5GamesInRow:Bh,WinLose10:Ih,WinOn10MBet:Lf,Work1000Quest:fp,Work100Quest:cp,Work2000Quest:hp,Work300Quest:up,Work5000Quest:pp,Write100Chats:wp,Write10Chats:mp,Write200Chats:_p,Write20Chats:yp,Write50Chats:gp,send100000Messages:Zh,send1000Messages:zh,send100Messages:Vh,send200000Messages:Jh,send25000Messages:Xh},Symbol.toStringTag,{value:"Module"}));class zp extends d{constructor(){super(...arguments);e(this,"name","T'as pas oublié de ranger ta chambre ?");e(this,"id","daily_all");e(this,"rank",l.RANKS.RARE);e(this,"description","Finir les quêtes journalières");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*12500);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1250);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestUpdate",s=>{for(const[r,n]of Object.entries(s.daily))if(!be(n,new Date)&&this.id!==r)return!1;return Object.keys(s.daily).filter(r=>r!==this.id).length>=5})}}const as=Object.freeze(Object.defineProperty({__proto__:null,DailyAll:zp},Symbol.toStringTag,{value:"Module"})),Xp=[...Object.values(Ja),...Object.values(es),...Object.values(Za),...Object.values(ts),...Object.values(as),...Object.values(Xa),...Object.values(za),...Object.values(Va)],Zp=async t=>{var s;const a=[];for(const r of Object.values(Ja)){const n=new r;if((s=n.onUserMetaUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{_userMeta:t});i&&a.push([n,i])}}a.length>0&&le("userMetaUpdate",t.user._id,a)},Jp=async t=>{var s;const a=[];for(const r of Object.values(ts)){const n=new r;if((s=n.onUserQuestMetaUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&le("userQuestMetaUpdate",t.user._id,a)},em=["raidUnlock"],Hr=new Ss.EventEmitter,dt=(t,a,s)=>{Hr.emit(t,a,s)},tm=t=>{for(const a of em)Hr.on(a,(s,r)=>{t(a,s,r)})},am=async t=>{var s,r;const a=await ws(t.user._id);l.getCurrentLevel(t.xp.amount)>=30&&!wt(a,"training")&&(await bt(a.user._id,"training"),dt("raidUnlock",t.user._id,"training")),(((r=(s=a.obtainedRewards.training)==null?void 0:s.filter(n=>n.startsWith("end_")))==null?void 0:r.length)??0)>=4&&!wt(a,"resources")&&(await bt(a.user._id,"resources"),dt("raidUnlock",t.user._id,"resources"))},sm=async t=>{const a=await ws(t.user._id);La(t.equipmentList,s=>s.id).map(s=>S.findEquipment(s)).filter(s=>s.panoply==="adventurer").length===6&&!wt(a,"pirate_cave")&&(await bt(a.user._id,"pirate_cave"),dt("raidUnlock",t.user._id,"pirate_cave")),(t.itemList.get("map_fragment")??0)>=5&&!wt(a,"mysterious_island")&&(await bt(a.user._id,"mysterious_island"),await xe(t.user._id,"map_fragment",5),dt("raidUnlock",t.user._id,"mysterious_island"))},ss=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},tagEveryone:{type:Boolean,default:!1},botPing:{type:Number,default:0},writeDifferentChat:[String],messageSent:{type:Number,default:0},totalMinutesInVoice:{type:Number,default:0},hadMoreThanZeroBerry:{type:Boolean,default:!1},totalBet:{type:Number,default:0},edito:{readToday:{type:Number,default:0},lastTimeRead:{type:Date,default:new Date}},double_six:{type:Number,default:0},lastGames:{type:[{gameType:String,endState:Number}],default:[]},black_jack:{type:Number,default:0},rps:{type:{lastRps:String,nb:Number},default:{lastRps:"paper",nb:-1}},totalSpentInShop:{type:Number,default:0},work:{type:Number,default:0},draw:{type:Number,default:0},bet666:{amount:{type:Number,default:0},last:{type:Date,default:new Date(0)}},betMin:{type:Boolean,default:!1},loseEverything:{type:Boolean,default:!1},bet10M:{type:Boolean,default:!1},winBet10M:{type:Boolean,default:!1},lose10M:{type:Boolean,default:!1},items:{bottle:{total:{type:Number,default:0},today:{type:Number,default:0},last:{type:Date,default:new Date}},chest:{total:{type:Number,default:0}},alcohols:{wines:{type:Number,default:0},rhums:{type:Number,default:0},beers:{type:Number,default:0},total:{type:Number,default:0}}},randomMessage:{type:Number,default:0},timeAt10Percent:{type:Number,default:0},timeAt90Percent:{type:Number,default:0},sevenQuitteOuDouble:{type:Number,default:0},drawDoubleSix:{type:Number,default:0},guessInOne:{type:Number,default:0},crafts:{cookedMeal:{type:Number,default:0},scrolls:{type:Number,default:0},total:{type:Number,default:0}},raidFinished:{type:Number,default:0},reportedSomeone:{type:Boolean,default:!1}});ss.index({user:1}),ss.post("findOneAndUpdate",async function(t){await Jp(t)});const de=((Kn=h.models)==null?void 0:Kn.UserQuestMeta)||h.model("UserQuestMeta",ss),v=async(t,a)=>{await de.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},rm=async t=>{await v(t,{$inc:{work:1}})},nm=async t=>{await v(t,{$set:{hadMoreThanZeroBerry:!0}})},im=async t=>{await v(t,{$set:{sevenQuitteOuDouble:!0}})},lm=async t=>{await v(t,{$inc:{black_jack:1}})},dm=async(t,a,s)=>{await v(t,{$push:{lastGames:{$each:[{gameType:a,endState:s}],$position:0,$slice:20}}})},om=async t=>{await v(t,{$inc:{draw:1}})},cm=async t=>{const a=new Date;a.setDate(a.getDate()-1),a.setHours(0,0,0,0);const s=new Date;s.setDate(s.getDate()-1),s.setHours(23,59,59,999),await de.updateOne({user:t,"bet666.last":{$gte:a,$lte:s}},{$inc:{"bet666.amount":1},$set:{"bet666.last":new Date}}),await de.updateOne({user:t,"bet666.last":{$lt:a}},{$set:{"bet666.last":new Date,"bet666.amount":1}})},um=async(t,a)=>{await v(t,{$inc:{totalBet:a}})},fm=async(t,a)=>{await v(t,[{$set:{"rps.nb":{$cond:{if:{$eq:["$rps.lastRps",a]},then:{$add:["$rps.nb",1]},else:1}},"rps.lastRps":a}}])},qr=async(t,a)=>{await v(t,{$inc:{totalSpentInShop:a}})},hm=async(t,a,s)=>{const r=S.findEntity(s);await v(t,{$inc:{"crafts.cookedMeal":S.isCookedMeal(r)?a:0,"crafts.scrolls":S.isScrollItem(r)?a:0,"crafts.total":a}})},pm=async t=>{await v(t,{$set:{reportedSomeone:!0}})},mm=async t=>{await v(t,{$inc:{randomMessage:1}})},ym=async t=>{await v(t,{$inc:{botPing:1}})},gm=async t=>{await v(t,{$inc:{guessInOne:1}})},wm=async t=>{await v(t,{$set:{hasCelebrateBirthday:!0}})},_m=async t=>{await v(t,{$inc:{double_six:1}})},bm=async t=>{await v(t,{$inc:{drawDoubleSix:1}})},Sm=async(t,a)=>{a?await v(t,{$set:{timeAt10Percent:0}}):await v(t,{$inc:{timeAt10Percent:1}})},Mm=async(t,a)=>{a?await v(t,{$set:{timeAt90Percent:0}}):await v(t,{$inc:{timeAt90Percent:1}})},km=async t=>{await v(t,{$set:{tagEveryone:!0}})},vm=async t=>{await v(t,{$set:{betMin:!0}})},Wr=async t=>{await v(t,{$set:{loseEverything:!0}})},Rm=Object.freeze(Object.defineProperty({__proto__:null,addTotalMinutesInVoice:async(t,a)=>{await v(t,{$inc:{totalMinutesInVoice:a}})},addWrittenTextChannel:async(t,a)=>{await v(t,{$addToSet:{writeDifferentChat:a}})},bet666:cm,botPingIncrement:ym,drawDoubleSix:bm,drawIncrement:om,hadMoreThanZeroBerry:nm,hasBet10M:async t=>{await v(t,{$set:{bet10M:!0}})},hasBetMin:vm,hasCelebrateBirthday:wm,hasGuessInOne:gm,hasLose10M:async t=>{await v(t,{$set:{lose10M:!0}})},hasLoseEverything:Wr,hasReportedSomeone:pm,hasSevenQod:im,hasTagEveryone:km,hasWinBet10M:async t=>{await v(t,{$set:{winBet10M:!0}})},incrementAlcoholDrink:async(t,a,s)=>{await v(t,{$inc:{"items.alcohols.wines":a==="wine"?s:0,"items.alcohols.beers":a==="beer"?s:0,"items.alcohols.rhums":a==="rhum"?s:0,"items.alcohols.total":s}})},incrementBottleUsedToday:async(t,a)=>{const s=new Date;s.setHours(0,0,0,0),await de.updateOne({user:t,"items.bottle.last":{$gte:s}},{$inc:{"items.bottle.today":a},$set:{"items.bottle.last":new Date}}),await de.updateOne({user:t,"items.bottle.last":{$lt:s}},{$set:{"items.bottle.last":new Date,"items.bottle.today":a}})},incrementBottleUsedTotal:async(t,a)=>{await v(t,{$inc:{"items.bottle.total":a}})},incrementChestOpenedTotal:async(t,a)=>{await v(t,{$inc:{"items.chest.total":a}})},incrementMessageSend:async t=>{await v(t,{$inc:{messageSent:1}})},randomMessageIncrement:mm,readEdito:async t=>{const a=new Date;a.setHours(0,0,0,0),await de.updateOne({user:t,"edito.lastTimeRead":{$gte:a}},{$inc:{"edito.readToday":1},$set:{"edito.lastTimeRead":new Date}}),await de.updateOne({user:t,"edito.lastTimeRead":{$lt:a}},{$set:{"edito.lastTimeRead":new Date,"edito.readToday":1}})},updateCrafts:hm,updateCrew10Percent:Sm,updateCrew90Percent:Mm,updateLastGames:dm,updateRps:fm,updateTotalBet:um,updateTotalSpentInShop:qr,winBlackjack:lm,winDoubleSix:_m,workIncrement:rm},Symbol.toStringTag,{value:"Module"})),We={multiplier:{type:Number,default:0},origin:String,expireAt:{type:Date,default:null},startAt:{type:Date,default:null}},ot=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},premium:{type:Date,default:null},booster:{type:Date,default:null},berry:{type:Number,default:0,index:!0},xp:{lastMessageWithXp:{type:Date,default:new Date},voice:{lastConnection:{type:Date,default:new Date},minutesInVoiceToday:{type:Number,default:0}},amount:{type:Number,default:0,index:!0},boost:{type:Date,default:null}},buffs:{cooldown:{casino:{type:[We],default:[]},work:{type:[We],default:[]}},berry:{work:{type:[We],default:[]},global:{type:[We],default:[]}},drop:{work:{type:[We],default:[]}},xp:{global:{type:[We],default:[]}}},hp:{type:Number,default:100},workUnluckyStreak:{type:Number,default:0},characteristics:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}},resetCharacteristics:{free:{type:Boolean,default:!0},nextAvailable:{type:Date,default:null}},scrolls:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}}});ot.index({user:1}),ot.index({"xp.amount":-1}),ot.index({berry:-1}),ot.post("findOneAndUpdate",async function(t){await am(t),await Zp(t),t.berry===0&&await Wr(t.user._id),t.hp<=0&&await an(t.user._id)});const Ue=((Gn=h.models)==null?void 0:Gn.UserMeta)||h.model("UserMeta",ot),Kr=async t=>await Ue.create({user:t}),ct=async(t,a={})=>{const s=await Ue.findOne({user:t},a);return s||await Kr(t)},Cm=(t,a)=>Ue.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0}),F=async(t,a)=>{await Ue.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0})},Gr=async(t,a)=>{await F(t,[{$set:{berry:{$max:[{$add:["$berry",a]},0]}}}])},Um=async(t,a)=>{await F(t,{$set:{premium:a}})},xm=async(t,a)=>{await F(t,{$set:{booster:a}})},Bm=async(t,a)=>{const{xp:{boost:s}}=await Cm(t,[{$set:{"xp.boost":{$cond:{if:{$or:[{$not:"$xp.boost"},{$lt:["$xp.boost",new Date]}]},then:{$add:[new Date,a]},else:{$add:["$xp.boost",a]}}}}}]);return s},rs=async(t,a)=>{if(Array.isArray(a)){for(const r of a)await rs(t,r);return}const s=S.transformToDBBuff(a);await F(t,[{$set:{[`buffs.${a.target}`]:{$map:{input:`$buffs.${a.target}`,as:"buff",in:{$cond:{if:{$eq:[{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]},a.origin.split("/")[0]]},then:{multiplier:a.multiplier,origin:a.origin,expireAt:s.expireAt?{$cond:{if:{$lt:["$$buff.expireAt",new Date]},then:s.expireAt,else:{$add:["$$buff.expireAt",(a.endIn??0)*60*60*1e3]}}}:null,startAt:{$cond:{if:{$gte:["$$buff.startAt",new Date]},then:"$$buff.startAt",else:{$add:[new Date,(a.startIn??0)*60*60*1e3]}}}},else:"$$buff"}}}}}},{$set:{[`buffs.${a.target}`]:{$cond:{if:{$in:[a.origin.split("/")[0],{$map:{input:`$buffs.${a.target}`,as:"buff",in:{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]}}}]},then:`$buffs.${a.target}`,else:{$concatArrays:[`$buffs.${a.target}`,[{...s}]]}}}}}])},ns=async(t,a)=>{await F(t,{$pull:{[`buffs.${a.target}`]:{origin:a.origin}}})},Om=async(t,a,s,r)=>{const n=S.fromDBToEquipableEquipment(a),i=Sr(Object.values(s)),o=S.allPanoplies.find(_=>_.id===n.panoply);if(!o)return;const f=o.equipments.filter(_=>(i.find(B=>_.id===B.id)||!r&&n.id===_.id)&&(r?n.id!==_.id:!0)).length,m=f===o.equipments.length?o.fullBonus:f>=o.equipments.length/2?o.halfBonus:void 0;o.halfBonus&&"target"in o.halfBonus&&await ns(t,o.halfBonus),o.fullBonus&&"target"in o.fullBonus&&await ns(t,o.fullBonus),m&&"target"in m&&await rs(t,m)},Vr=async(t,a,{userMeta:s,userInventory:r})=>{const n=s??await ct(t,{buffs:0,xp:0}),i=r??await Vt(t,{itemList:0,equipmentList:0}),f=await Be(t,n,i)-n.hp;await F(t,{$set:{hp:n.hp+Math.floor(Math.min(a,f))}})},Dm=async(t,a)=>{await F(t,[{$set:{hp:{$max:[{$add:["$hp",-a]},0]}}}])},Ke=async(t,a)=>{const s=await Be(t);await F(t,[{$set:{hp:{$round:[{$multiply:[{$divide:["$hp",a]},s]},0]}}}])},Am=Object.freeze(Object.defineProperty({__proto__:null,addBerry:Gr,addCharacteristics:async(t,a)=>{const s=await Be(t),r=Object.fromEntries(Object.entries(a).filter(([,n])=>n!==0).map(([n,i])=>[`characteristics.${n}`,i]));await F(t,{$inc:r}),Ke(t,s)},addMinutesInVoiceToday:async(t,a)=>{await F(t,{$inc:{"xp.voice.minutesInVoiceToday":a}})},addScrollCharacteristic:async(t,a)=>{const s=await Be(t),r=Object.fromEntries(Object.entries(a).filter(([,n])=>n!==0).map(([n,i])=>[`scrolls.${n}`,i]));await F(t,{$inc:r}),Ke(t,s)},gainHp:Vr,incrementWorkUnluckyStreak:async t=>{await F(t,{$inc:{workUnluckyStreak:1}})},loseHp:Dm,removeBuff:ns,resetCharacteristics:async(t,a,s)=>{const r=await Be(t,s),n={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};a?await F(t,{$set:{characteristics:n,"resetCharacteristics.free":!1}}):await F(t,{$set:{characteristics:n,"resetCharacteristics.nextAvailable":new Date(Date.now()+30*24*60*60*1e3)},$inc:{berry:-1e8}}),Ke(t,r)},resetMinutesInVoiceToday:async t=>{await F(t,{$set:{"xp.voice.minutesInVoiceToday":0}})},resetWorkUnluckyStreak:async t=>{await F(t,{$set:{workUnluckyStreak:0}})},updateBoost:Bm,updateBooster:xm,updateBuff:rs,updateHp:Ke,updateLastVoiceConnection:async(t,a)=>{await F(t,{$set:{"xp.voice.lastConnection":a}})},updatePanoplyBuff:Om,updatePremium:Um},Symbol.toStringTag,{value:"Module"})),Nm=async t=>{var s;const a=[];for(const r of Object.values(Za)){const n=new r;if((s=n.onUserInventoryUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&le("userInventoryUpdate",t.user._id,a)},is=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},equippedItems:{type:Object,default:{}},equipmentList:{type:[{id:String,seed:Number}],default:[]},itemList:{type:Map,of:Number,default:{}},recipes:{type:[String],default:[]}},{minimize:!1});is.index({user:1}),is.post("findOneAndUpdate",async function(t){await sm(t),await Nm(t)});const ut=((Vn=h.models)==null?void 0:Vn.UserInventory)||h.model("UserInventory",is),oe=async(t,a)=>{await ut.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},ce=async(t,a,s)=>{await oe(t,{$inc:{[`itemList.${a}`]:s}}),await Gt(t,[a])},$m=async(t,a)=>{await oe(t,{$inc:Object.fromEntries(Object.entries(a).filter(([,s])=>(s??0)>0).map(([s,r])=>[`itemList.${s}`,r]))}),await Gt(t,Qa(a).filter(([,s])=>s>0).map(([s])=>s))},xe=async(t,a,s)=>{s!==0&&await oe(t,[{$set:{[`itemList.${a}`]:{$max:[{$add:[`$itemList.${a}`,-s]},0]}}}])},zr=async(t,a,s)=>{await oe(t,{$pull:{equipmentList:{id:a,seed:s}}})},Xr=async(t,a,s,r)=>{s!==0&&(S.isEquipmentId(a)?await zr(t,a,r):await xe(t,a,s))},Em=async(t,a)=>{await oe(t,{$set:{[`itemList.${a}`]:0}})},ls=async(t,a)=>{await oe(t,{$push:{equipmentList:{$each:a}}}),await Gt(t,a.map(s=>s.id))},Fm=Object.freeze(Object.defineProperty({__proto__:null,addEquipments:ls,addInventoryItem:ce,addInventoryItems:$m,craftItem:async(t,a,s,r,n)=>{for(const{itemId:f,size:m}of a)await xe(t,f,m*r);const{itemId:i,size:o}=s;S.isEquipmentId(i)?await ls(t,[{id:i,seed:n}]):await ce(t,i,o*r)},dismantleEntity:async(t,a,s,r,n)=>{await Xr(t,a.id,r,n);for(const{entityId:i,quantity:o}of s)S.isEquipmentId(i)||await ce(t,i,r*o);await xe(t,"tools",1)},enchantItem:async(t,a,s,r)=>{await xe(t,a,r*4),await xe(t,"enchanted_stone",r),await ce(t,s,r)},equip:async(t,a,s)=>{const r=await Be(t);await oe(t,{$set:{[`equippedItems.${a}`]:s}}),await Ke(t,r)},removeAllItemInventory:Em,removeEquipment:zr,removeInventoryEntity:Xr,removeInventoryItem:xe,unequip:async(t,a)=>{const s=await Be(t);await oe(t,{$set:{[`equippedItems.${a}`]:null}}),await Ke(t,s)},unlockRecipe:async(t,a)=>{await oe(t,{$addToSet:{recipes:a}})}},Symbol.toStringTag,{value:"Module"})),Zr=async t=>await ut.create({user:t}),Vt=async(t,a={})=>{const s=await ut.findOne({user:t},a);return s||await Zr(t)},ds=t=>Object.fromEntries(l.CHARACTERISTICS.map(a=>[a,U.getComputedCharacteristicValue(t.characteristics[a])+t.scrolls[a]])),Im=t=>Date.now()-t.xp.lastMessageWithXp.getTime()>60*1e3,os=t=>{const{boost:a}=t.xp;return(a!==null&&Date.now()<a.getTime()?.2:0)+Math.max(t.premium?.5:0,t.booster?.25:0)+t.buffs.xp.global.reduce((s,{expireAt:r,startAt:n,multiplier:i})=>s+((n??new Date)<=new Date&&(!r||!$e(r))?i:0),0)},Ym=t=>{const a=t.trim().length,s=2;return a<10?10*s:a>300?300*s:a*s},Lm=(t,a,s)=>(a*=1+os(t),Math.ceil(a*s)),Pm=(t,a,s)=>{const r=s?1:Jr(t);return a<=0?a:Math.ceil(a*(r||1))},Tm=t=>t.buffs.cooldown.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),jm=t=>t.buffs.drop.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),Qm=t=>t.buffs.berry.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),Jr=t=>t.buffs.berry.global.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),Hm=t=>t.buffs.cooldown.casino.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),Be=async(t,a,s)=>{const r=a??await ct(t,{buffs:0,xp:0}),n=s??await Vt(t,{itemList:0,equipmentList:0});return((ds(r).vitality??0)+Ga(n).vitality)*l.HP_PER_VITALITY+l.DEFAULT_MAX_HP},qm=Object.freeze(Object.defineProperty({__proto__:null,calcBerry:Pm,calcBerryGlobalBuff:Jr,calcBerryWorkBuff:Qm,calcCooldownCasinoBuff:Hm,calcCooldownWorkBuff:Tm,calcDropWorkBuff:jm,calcMessageXp:Ym,calcXp:Lm,calcXpBoost:os,getBerryRank:async t=>(await Ue.aggregate([{$setWindowFields:{sortBy:{berry:-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getGlobalRank:async t=>(await Ue.aggregate([{$setWindowFields:{sortBy:{"xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getMaxHp:Be,getTotalCharacteristics:ds,hasCharacteristicRequirement:async(t,a,s,r)=>{const n=s??await ct(t,{buffs:0,xp:0}),i=r??await Vt(t,{itemList:0,equipmentList:0}),o=ja(ds(n),Ga(i),(f,m)=>f+m);if("sum"in a){let f=0;for(const m of a.characteristics)f+=o[m]??0;return f>=a.sum}else{for(const f of Object.keys(a))if(o[f]<(a[f]??0))return!1;return!0}},hasMalusBuff:t=>{const a=[...t.buffs.xp.global,...t.buffs.berry.global,...t.buffs.berry.work,...t.buffs.cooldown.work,...t.buffs.cooldown.casino,...t.buffs.drop.work];for(const{multiplier:s,startAt:r,expireAt:n}of a)if(s<0&&(!n||!$e(n))&&(r??new Date)<=new Date)return!0;return!1},isCooldownForXpPassed:Im},Symbol.toStringTag,{value:"Module"})),en=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},raid:{classic:{type:Date,default:new Date(0)},special:{type:Date,default:new Date(0)},christmas:{type:Date,default:new Date(0)}},lockUserCommand:{type:Date,default:new Date(0)},commands:{work:{type:Date,default:new Date(0)},dice:{type:Date,default:new Date(0)},qod:{type:Date,default:new Date(0)},guess:{type:Date,default:new Date(0)},blackjack:{type:Date,default:new Date(0)},rps:{type:Date,default:new Date(0)}}});en.index({user:1});const ft=((zn=h.models)==null?void 0:zn.UserCooldown)||h.model("UserCooldown",en),ht=async(t,a)=>{await ft.updateOne({user:t},a,{upsert:!0})},Wm=async(t,a)=>{await ht(t,[{$set:{"raid.special":{$subtract:[{$ifNull:["$raid.special",new Date]},a*3600*1e3]},"raid.classic":{$subtract:[{$ifNull:["$raid.classic",new Date]},a*3600*1e3]},"raid.christmas":{$subtract:[{$ifNull:["$raid.christmas",new Date]},a*3600*1e3]}}}]),await Ka(t,"raid/special",-1*a*3600*1e3),await Ka(t,"raid/classic",-1*a*3600*1e3)},tn=async(t,a,s,r)=>{await ht(t,{$set:{[`raid.${a}`]:new Date(Date.now()+s)}}),r.raid[a]&&await Wa(t,`raid/${a}`,new Date(Date.now()+s))},an=async t=>{await ht(t,{$set:{lockUserCommand:new Date(Date.now()+2*3600*1e3)}}),await Vr(t,1,{})},Km=Object.freeze(Object.defineProperty({__proto__:null,lockUserCommand:an,reduceRaidCooldown:Wm,startRaidCooldown:tn,useCommand:async(t,a,s,r)=>{await ht(t,{$set:{[`commands.${a}`]:new Date(Date.now()+s)}}),r.commands[a]&&await Wa(t,`commands/${a}`,new Date(Date.now()+s))}},Symbol.toStringTag,{value:"Module"})),Gm=["work","rps","blackjack","guess","qod","dice"],sn=async t=>await ft.create({user:t}),Vm=async(t,a={})=>{const s=await ft.findOne({user:t},a);return s||await sn(t)},cs=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},crew:{type:h.Schema.Types.ObjectId,ref:"Crew",required:!0,index:!0},permission:String,percent:Number,lastAllMembersDaily:{type:Date,default:new Date(0)}},{minimize:!1});cs.virtual("inventory",{ref:"Crew",localField:"crew",foreignField:"_id",justOne:!0}),cs.index({user:1});const Ge=((Xn=h.models)==null?void 0:Xn.UserCrew)||h.model("UserCrew",cs),us=async(t,a)=>{await Ge.updateOne({user:t},a,{upsert:!0})},zm=async(t,a)=>{await us(t,{$set:{percent:a}})},rn=async t=>{await us(t,{$set:{lastAllMembersDaily:new Date}})},Xm=Object.freeze(Object.defineProperty({__proto__:null,allMembersDailyComplete:rn,updatePercent:zm},Symbol.toStringTag,{value:"Module"})),nn=t=>Ge.findOne({user:t}),Zm=async(t,a,s,r)=>await Ge.create({user:t,crew:a,percent:r,permission:s}),Jm=t=>Ge.exists({user:t}),ln=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},xpYesterday:{type:Number,default:0},berryYesterday:{type:Number,default:0},previousOrnament:{unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},unlockedBackgrounds:{type:[String],default:[]}},previousCompletedQuest:{type:[String],default:[]},previousMessageSent:{type:Number,default:0}});ln.index({user:1});const zt=((Zn=h.models)==null?void 0:Zn.UserDailyReport)||h.model("UserDailyReport",ln),dn=async(t,a)=>{await zt.updateOne({user:t},a,{upsert:!0})},e0=Object.freeze(Object.defineProperty({__proto__:null,updateDailyReport:async(t,a)=>{await dn(t,{$set:{xpYesterday:a.meta.xp.amount,berryYesterday:a.meta.berry,previousCompletedQuest:a.quest.completed,"previousOrnament.unlockedBadges":a.ornaments.unlockedBadges,"previousOrnament.unlockedTitles":a.ornaments.unlockedTitles,"previousOrnament.unlockedBackgrounds":a.ornaments.unlockedBackgrounds,previousMessageSent:a.questMeta.messageSent}})}},Symbol.toStringTag,{value:"Module"})),on=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},guess:{type:{tries:Number,amount:Number,numberToGuess:Number,lastGuess:Number},default:null}});on.index({user:1});const pt=((Jn=h.models)==null?void 0:Jn.UserGames)||h.model("UserGames",on),Xt=async(t,a)=>{await pt.updateOne({user:t},a,{upsert:!0})},t0=Object.freeze(Object.defineProperty({__proto__:null,resetGuessGame:async t=>{await Xt(t,{$set:{guess:null}})},setGuessGame:async(t,a,s,r)=>{await Xt(t,{$set:{guess:{amount:a,tries:s,numberToGuess:r,lastGuess:0}}})},updateGuessGame:async t=>{await Xt(t,{$inc:{"guess.tries":1},$set:{"guess.lastGuess":Date.now()}})}},Symbol.toStringTag,{value:"Module"})),cn=async t=>await pt.create({user:t}),a0=async(t,a)=>{const s=await pt.findOne({user:t},a);return s||await cn(t)},s0=async t=>{var s;const a=[];for(const r of Object.values(es)){const n=new r;if((s=n.onUserOrnamentsUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&le("userOrnamentsUpdate",t.user._id,a)},fs=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},unlockedFactionBadges:{type:[String],default:[]},unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},selectedTitle:{type:String,default:null},unlockedBackgrounds:{type:[String],default:["default"]},selectedBackground:{type:String,default:"default"},unlockedProfileAssets:{type:[String],default:[]},unlockedBags:{type:[String],default:["default"]},selectedBag:{type:String,default:"default"}});fs.index({user:1}),fs.post("findOneAndUpdate",async function(t){await s0(t)});const mt=((ei=h.models)==null?void 0:ei.UserOrnaments)||h.model("UserOrnaments",fs),W=async(t,a)=>{await mt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},hs=async(t,a)=>{await W(t,{$addToSet:{unlockedTitles:a}})},r0=async(t,a)=>{await W(t,{$addToSet:{unlockedTitles:{$each:a}}})},n0=async(t,a)=>{await W(t,{$set:{selectedTitle:a}})},un=async(t,a)=>{await W(t,{$addToSet:{unlockedBackgrounds:a}})},i0=async(t,a)=>{await W(t,{$addToSet:{unlockedBackgrounds:{$each:a}}})},l0=async(t,a)=>{await W(t,{$set:{selectedBackground:a}})},fn=async(t,a,s)=>{a.isProgressive?await W(t,{$addToSet:{unlockedBadges:`${a.id}_${s}`}}):await W(t,{$addToSet:{unlockedBadges:a.id}})},hn=async(t,a)=>{await W(t,{$addToSet:{unlockedFactionBadges:{$each:[`b_marine_${a}`,`b_revolutionary_${a}`,`b_pirate_${a}`]}}})},pn=async(t,a)=>{await W(t,{$addToSet:{unlockedProfileAssets:a}})},d0=Object.freeze(Object.defineProperty({__proto__:null,selectBackground:l0,selectBag:async(t,a)=>{await W(t,{$set:{selectedBag:a}})},selectTitle:n0,unlockBackground:un,unlockBackgrounds:i0,unlockBadge:fn,unlockBag:async(t,a)=>{await W(t,{$addToSet:{unlockedBags:a}})},unlockFactionBadge:hn,unlockProfileAsset:pn,unlockTitle:hs,unlockTitles:r0},Symbol.toStringTag,{value:"Module"})),mn=async t=>await mt.create({user:t}),o0=async(t,a)=>{const s=await mt.findOne({user:t},a);return s||await mn(t)},yn=(t,a)=>t.completed.includes(a),gn=(t,a)=>{const s=t.daily[a];return s&&be(s,new Date)},ps=t=>be(Ta(),t.lastFullComplete),ms=t=>ps(t)?1+Math.min(2,t.streak/10):1,wn=t=>t.completed.reduce((a,s)=>a+(s.startsWith("be_level_")?1:0),0),_n=(t,a)=>{const s=wn(t);return u.factionTitleList.find(r=>r.strength===s&&r.faction===a)},c0=Object.freeze(Object.defineProperty({__proto__:null,getFactionTitle:_n,getFactionTitleStrength:wn,getStreakMultiplier:ms,isDailyQuestCompleted:gn,isQuestCompleted:yn,isStreaking:ps},Symbol.toStringTag,{value:"Module"})),u0=async t=>{var s;const a=[];for(const r of Object.values(as)){const n=new r;if((s=n.onUserQuestUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{_userQuest:t});i&&a.push([n,i])}}a.length>0&&le("userQuestUpdate",t.user._id,a)},ys=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},completed:{type:[String],default:[]},daily:{type:Object,default:{}},streak:{type:Number,default:0},lastFullComplete:{type:Date,default:new Date}},{minimize:!1});ys.index({user:1}),ys.post("findOneAndUpdate",async function(t){await u0(t)});const yt=((ti=h.models)==null?void 0:ti.UserQuest)||h.model("UserQuest",ys),gt=async(t,a)=>{await yt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},bn=async(t,a)=>{await gt(t,{$addToSet:{completed:a}})},Sn=async(t,a)=>{await gt(t,[{$addFields:{[`daily.${a}`]:new Date}}])},Mn=async(t,a)=>{be(Ta(),a)?await gt(t,{$inc:{streak:1},$set:{lastFullComplete:new Date}}):await gt(t,{$set:{lastFullComplete:new Date,streak:1}})},f0=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Sn,completeQuest:bn,updateStreak:Mn},Symbol.toStringTag,{value:"Module"})),kn=async t=>await yt.create({user:t}),gs=async t=>{const a=await yt.findOne({user:t});return a||await kn(t)},wt=(t,a)=>{var s;return(s=t.unlocked)==null?void 0:s[a]},h0=Object.freeze(Object.defineProperty({__proto__:null,alreadyObtainedRaidReward:(t,a,s)=>a in t.obtainedRewards?t.obtainedRewards[a].includes(s):!1,fulfillCondition:(t,a,s,r)=>r==="include"?s.every(n=>(t.obtainedConditions[a]??[]).includes(n)):s.every(n=>!(t.obtainedConditions[a]??[]).includes(n)),getObtainedRaidReward:(t,a)=>t.obtainedRewards[a]??[],hasUnlockedRaid:wt},Symbol.toStringTag,{value:"Module"})),vn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},currentRaid:{type:{raidId:String,seed:String,progression:{type:[String],default:[]},buffItem:String,rewards:{type:Object,default:{}}},default:void 0},obtainedConditions:{type:Object,default:{}},obtainedRewards:{type:Object,default:{}},unlocked:{type:Object,default:{}}},{minimize:!1});vn.index({user:1});const _t=((ai=h.models)==null?void 0:ai.UserRaid)||h.model("UserRaid",vn),Se=async(t,a)=>{await _t.updateOne({user:t},a,{upsert:!0})},bt=async(t,a)=>{await Se(t,{$set:{[`unlocked.${a}`]:!0}})},p0=Object.freeze(Object.defineProperty({__proto__:null,addRewardsToRaid:async(t,a)=>{await Se(t,{$inc:Object.fromEntries(Qa(a).filter(([s])=>s!=="title"&&s!=="condition").map(([s,r])=>[`currentRaid.rewards.${s}`,r])),...a.title?{$set:{"currentRaid.rewards.title":a.title}}:{}})},claimReward:async(t,a,s)=>{await Se(t,{$addToSet:{[`obtainedRewards.${a}`]:s}})},progressRaid:async(t,a)=>{await Se(t,{$push:{"currentRaid.progression":a}})},resetRaid:async t=>{await Se(t,{$unset:{currentRaid:""}})},resetRaidProgression:async t=>{await Se(t,{$set:{"currentRaid.progression":[]}})},startRaid:async(t,a,s,r,n,i)=>{const o=Date.now();return await Se(t,{$set:{currentRaid:{raidId:a,buffItem:s,seed:o,progression:[],rewards:{}}}}),await tn(t,r,n,i),o},unlockRaid:bt,updateCondition:async(t,a,s)=>{await Se(t,{$addToSet:{[`obtainedConditions.${a}`]:s}})}},Symbol.toStringTag,{value:"Module"})),Rn=async t=>await _t.create({user:t}),ws=async t=>{const a=await _t.findOne({user:t});return a||await Rn(t)},m0=Object.freeze(Object.defineProperty({__proto__:null,getShopItemRest:(t,a,s,r,n)=>{var f;if(S.isEquipmentId(a))return r;let i=S.getAllItemsLimit()[a];const o=(f=t.limit)==null?void 0:f[a];return n==="half"&&a==="chest_2"&&(i+=2),n==="full"&&a==="chest_3"&&(i+=1),i?t.lastShopId!==s?i:o?i-o:Math.min(i,r):r},isShopBuyLimitReached:(t,a,s,r)=>{var o;if(S.isEquipmentId(a))return!1;let n=S.getAllItemsLimit()[a];const i=(o=t.limit)==null?void 0:o[a];return r==="half"&&a==="chest_2"&&(n+=2),r==="full"&&a==="chest_3"&&(n+=1),t.lastShopId!==s?!1:!!(n&&i&&i>=n)}},Symbol.toStringTag,{value:"Module"})),Cn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},lastShopId:{type:Number,default:0},limit:{type:Object,default:{}}},{minimize:!1});Cn.index({user:1});const Zt=((si=h.models)==null?void 0:si.UserShop)||h.model("UserShop",Cn),Un=async(t,a)=>{await Zt.updateOne({user:t},a,{upsert:!0})},y0=Object.freeze(Object.defineProperty({__proto__:null,increaseShopBuyLimit:async(t,a,s,r)=>{await Un(t,[{$set:{limit:{$cond:{if:{$eq:["$lastShopId",s]},then:{$mergeObjects:["$limit",{[a]:{$add:[{$ifNull:[`$limit.${a}`,0]},r]}}]},else:{[a]:r}}},lastShopId:s}}])}},Symbol.toStringTag,{value:"Module"})),X={localField:"_id",foreignField:"user",justOne:!0},T=new h.Schema({userId:{type:String,required:!0,unique:!0},birthday:{type:Date,default:null},faction:{type:String,default:l.DEFAULT_FACTION},canChangeFaction:{type:Boolean,default:!1},canChooseFaction:{type:Boolean,default:!1},settings:{sort:{inventory:{type:String,default:"alpha"}},sendDailyReport:{type:Boolean,default:!1},sendDailyQuest:{type:Boolean,default:!1},reminder:{raid:{classic:{type:Boolean,default:!1},special:{type:Boolean,default:!1},christmas:{type:Boolean,default:!1}},commands:{work:{type:Boolean,default:!1},dice:{type:Boolean,default:!1},qod:{type:Boolean,default:!1},blackjack:{type:Boolean,default:!1},guess:{type:Boolean,default:!1},rps:{type:Boolean,default:!1}}}}});T.virtual("inventory",{ref:"UserInventory",...X}),T.virtual("raid",{ref:"UserRaid",...X}),T.virtual("games",{ref:"UserGames",...X}),T.virtual("ornaments",{ref:"UserOrnaments",...X}),T.virtual("crew",{ref:"UserCrew",...X}),T.virtual("dailyReport",{ref:"UserDailyReport",...X}),T.virtual("shop",{ref:"UserShop",...X}),T.virtual("meta",{ref:"UserMeta",...X}),T.virtual("quest",{ref:"UserQuest",...X}),T.virtual("questMeta",{ref:"UserQuestMeta",...X}),T.virtual("cooldown",{ref:"UserCooldown",...X}),T.virtual("reminder",{ref:"Reminder",localField:"_id",foreignField:"user"}),T.virtual("encyclopedia",{ref:"UserEncyclopedia",...X}),T.index({userId:1}),T.post("deleteOne",async function(){const t=this.getQuery()._id;await ut.deleteOne({user:t}),await pt.deleteOne({user:t}),await mt.deleteOne({user:t}),await _t.deleteOne({user:t}),await Ge.deleteOne({user:t}),await zt.deleteOne({user:t}),await Zt.deleteOne({user:t}),await Ue.deleteOne({user:t}),await yt.deleteOne({user:t}),await de.deleteOne({user:t}),await ft.deleteOne({user:t})});const K=((ri=h.models)==null?void 0:ri.User)||h.model("User",T),g0=t=>K.create({userId:t}),Jt=async(t,a={})=>{const s=await xn({userId:t},a);return s||await g0(t)},xn=(t,a={})=>K.findOne(t,a),w0=Object.freeze(Object.defineProperty({__proto__:null,getAllDailyReport:async()=>K.aggregate([{$match:{"settings.sendDailyReport":!0}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$lookup:{from:"userdailyreports",localField:"_id",foreignField:"user",as:"dailyReport"}},{$match:{$and:[{$expr:{$gt:["$dailyReport.xpYesterday",0]}},{faction:{$ne:"citizen"}}]}}]),getBerryRanking:async()=>K.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$sort:{"meta.berry":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.berry":1}}]),getDailyReport:t=>{const{berry:a,xp:s}=t.meta,{voice:r,amount:n}=s,{unlockedBadges:i,unlockedBackgrounds:o,unlockedTitles:f}=t.ornaments,{previousOrnament:m,previousCompletedQuest:_,xpYesterday:B,berryYesterday:Y,previousMessageSent:H}=t.dailyReport;return{berry:a-Y,xp:n-B,message:t.questMeta.messageSent-H,voice:be(r.lastConnection,Ta())?r.minutesInVoiceToday:0,quest:Ht(t.quest.completed,_),badge:Ht(i,m.unlockedBadges),title:Ht(f,m.unlockedTitles),background:Ht(o,m.unlockedBackgrounds)}},getFactionRank:async(t,a)=>(await K.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$match:{faction:t.faction}},{$setWindowFields:{sortBy:{"meta.xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:a}},{$project:{rank:1}}]))[0],getFactionRanking:async t=>K.aggregate([{$match:{faction:t}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$userMeta"},{$sort:{"userMeta.xp.amount":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.xp.amount":1}}]),getGlobalRanking:async()=>K.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$sort:{"meta.xp.amount":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.xp.amount":1}}]),getNextBirthdays:()=>K.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{day:{$dayOfMonth:"$birthday"},month:{$month:"$birthday"},year:{$year:"$birthday"},nextBirthday:{$dateFromParts:{year:{$cond:[{$lt:[{$dateFromParts:{year:{$year:new Date},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}},new Date]},{$add:[{$year:new Date},1]},{$year:new Date}]},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}}}},{$sort:{nextBirthday:1}},{$limit:10},{$project:{_id:0,userId:1,birthday:1,nextBirthday:1}}]),getSuccessRanking:async()=>K.aggregate([{$lookup:{from:"userquests",localField:"_id",foreignField:"user",as:"quest"}},{$unwind:"$quest"},{$addFields:{success_count:{$size:{$ifNull:["$quest.completed",[]]}}}},{$sort:{success_count:-1}},{$limit:10},{$project:{_id:1,userId:1,"quest.completed":1}}]),getTodayAllBirthday:()=>K.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{birthMonth:{$month:"$birthday"},birthDay:{$dayOfMonth:"$birthday"}}},{$addFields:{currentMonth:{$month:new Date},currentDay:{$dayOfMonth:new Date}}},{$match:{$expr:{$and:[{$eq:["$birthMonth","$currentMonth"]},{$eq:["$birthDay","$currentDay"]}]}}}]),getUserBirthday:async t=>await Jt(t,{birthday:1})},Symbol.toStringTag,{value:"Module"})),Me=async(t,a,s=!1)=>{await K.updateOne(t,a,{upsert:s})},Bn=async(t,a)=>{await Me({_id:t},{$set:{canChooseFaction:a}})},On=async(t,a)=>{await Me({_id:t},{$set:{canChangeFaction:a}})},_0=Object.freeze(Object.defineProperty({__proto__:null,canChangeFaction:On,canChooseFaction:Bn,removeBirthday:async t=>{await Me({userId:t},{$set:{birthday:null}})},setBirthday:async(t,a)=>{await Me({userId:t},{$set:{birthday:a}})},updateFaction:async(t,a)=>{await Me({_id:t},{$set:{faction:a}})},updateInventorySort:async(t,a)=>{await Me({_id:t},{$set:{"settings.sort.inventory":a}})},updateReminderSettings:async(t,a,s)=>{await Me({_id:t},{$set:{[`settings.reminder.${a}`]:s}})},updateSendDailyQuest:async(t,a)=>{await Me({userId:t},{$set:{"settings.sendDailyQuest":a}})},updateSendDailyReport:async(t,a)=>{await Me({userId:t},{$set:{"settings.sendDailyReport":a}})}},Symbol.toStringTag,{value:"Module"})),b0=async t=>{await K.deleteOne({userId:t})},S0=async t=>await zt.create({user:t}),M0=async t=>await de.create({user:t}),k0=async t=>await Zt.create({user:t}),Dn=(t,a)=>{switch(t){case"dailyReport":return S0(a);case"games":return cn(a);case"inventory":return Zr(a);case"meta":return Kr(a);case"raid":return Rn(a);case"ornaments":return mn(a);case"quest":return kn(a);case"questMeta":return M0(a);case"shop":return k0(a);case"cooldown":return sn(a);case"reminder":return[];case"crew":return null;case"encyclopedia":return jr(a)}},An=async(t,a,s)=>{if(Array.isArray(a)){const r=await t.populate(a);for(const n of a)r[n]||(r[n]=await Dn(n,t._id));return r}else{const r=await t.populate(a,s),n=r[a];return(!n||Array.isArray(n)&&n.length===0)&&(r[a]=await Dn(a,t._id)),r}},Nn=new h.Schema({warnedUserId:String,authorId:String,date:{type:Date,default:Date.now()},reason:{type:String,default:null}});Nn.index({warnedUserId:1});const Ve=((ni=h.models)==null?void 0:ni.Warns)||h.model("Warns",Nn),v0=Object.freeze(Object.defineProperty({__proto__:null,getUserWarnCount:async t=>await Ve.countDocuments({warnedUserId:t}),getUserWarns:async t=>await Ve.find({warnedUserId:t})},Symbol.toStringTag,{value:"Module"})),R0=async t=>await Ve.findOne({warnedUserId:t}),C0=async t=>await Ve.create({...t}),U0=async t=>await Ve.findByIdAndDelete(t),x0=async t=>{var s;const a={};for(const r of Object.values(Xa)){const n=new r;for(const i of t.members){const o=await Jt(i,{_id:1});if((s=n.onCrewUpdate)!=null&&s.call(n,t,o._id)){const f=await n.complete(o._id,{});if(f){const m=a[o.id];a[o.id]=m?[o._id,[...m[1],[n,f]]]:[o._id,[[n,f]]]}}}}Object.values(a).forEach(([r,n])=>{le("crewUpdate",r,n)})},B0={localField:"_id",foreignField:"crew",justOne:!0},ea=new h.Schema({createdBy:String,members:{type:[String],default:[]},limit:{type:Number,default:3},name:String,description:String,channelId:String,meta:{xp:{type:Number,default:0},berry:{type:Number,default:0},buffs:{xp:{boost:{type:Number,default:0},expireAt:{type:Date,default:null}}}},disintegration:{type:Number,default:100},faction:String,stats:{type:Object,default:{}},ornament:{unlockedBadges:[String]}},{timestamps:!0,minimize:!1});ea.index({"meta.xp":-1}),ea.virtual("quest",{ref:"CrewQuest",...B0}),ea.post("findOneAndUpdate",async function(t){await x0(t)});const ze=((ii=h.models)==null?void 0:ii.Crew)||h.model("Crew",ea),O0=(t,a)=>Math.ceil(a*(t.disintegration/100)*($n(t)||1)),$n=t=>new Date>=(t.meta.buffs.xp.expireAt??new Date(0))?!1:t.meta.buffs.xp.boost,D0=Object.freeze(Object.defineProperty({__proto__:null,calcXp:O0,getCrewRank:async t=>(await ze.aggregate([{$setWindowFields:{sortBy:{"meta.xp":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t._id}},{$project:{_id:1,"meta.xp":1,rank:1}}]))[0],getCrewRanking:async()=>ze.aggregate([{$sort:{"meta.xp":-1}},{$limit:10}]),hasXpBuff:$n},Symbol.toStringTag,{value:"Module"})),ke=async(t,a)=>{await ze.findOneAndUpdate({_id:t},a,{returnDocument:"after"})},En=async(t,a,s)=>{a.isProgressive?await ke(t,{$addToSet:{"ornament.unlockedBadges":`${a.id}_${s}`}}):await ke(t,{$addToSet:{"ornament.unlockedBadges":a.id}})},A0=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(t,a,s)=>{await ke(t,{$inc:{"meta.berry":a,[`stats.${s.toHexString()}.berry`]:a}})},addMember:async(t,a)=>{await ke(t,{$addToSet:{members:a}})},addXp:async(t,a,s)=>{await ke(t,{$inc:{"meta.xp":a,[`stats.${s.toHexString()}.xp`]:a}})},addXpBuff:async(t,a)=>{await ke(t,[{$set:{"meta.buffs.xp":{$cond:{if:{$or:[{$eq:["$meta.buffs.xp.expireAt",null]},{lt:["$meta.buffs.xp.expireAt",new Date]}]},then:{boost:1.1,expireAt:{$add:[new Date,a*60*60*1e3]}},else:{boost:1.1,expireAt:{$add:["$meta.buffs.xp.expireAt",a*60*60*1e3]}}}}}}])},applyDisintegration:async(t,a)=>{const[s,r]=[a-2,(a-3)*2+3];await ke(t,[{$set:{disintegration:{$max:[{$add:["$disintegration",-1*br(s,r)]},0]}}}])},increaseLimit:async(t,a)=>{await ke(t,{$inc:{limit:1,"meta.berry":-a}})},repair:async(t,a)=>{await ke(t,[{$set:{disintegration:{$min:[{$add:["$disintegration",a]},100]}}}])},unlockBadge:En},Symbol.toStringTag,{value:"Module"})),N0=async(t,a={})=>{const s=await ze.findById(t,a);return s||null},$0=async(t,{name:a,description:s,channelId:r,faction:n})=>await ze.create({name:a,description:s,createdBy:t,channelId:r,faction:n,members:[t]}),Fn=(t,a)=>{for(const[,s]of Object.entries(t.daily??{}))if(!(s!=null&&s[a])||!be(s[a],new Date))return!1;return!0},E0=Object.freeze(Object.defineProperty({__proto__:null,isAllDailyCompleted:Fn},Symbol.toStringTag,{value:"Module"})),F0=async t=>{var r;const a={},{crew:s}=await t.populate("crew");for(const n of Object.values(za)){const i=new n;for(const o of s.members){const f=await Jt(o,{_id:1,crew:1}).then(m=>An(m,"crew",{lastAllMembersDaily:1}));if(f.crew&&((r=i.onCrewQuestUpdate)!=null&&r.call(i,t,f.crew))){const m=await i.complete(f._id,{});if(m){const _=a[f.id];a[f.id]=_?[f._id,[..._[1],[i,m]]]:[f._id,[[i,m]]]}}}}Object.values(a).forEach(([n,i])=>{le("crewQuestUpdate",n,i)})},_s=new h.Schema({crew:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"Crew"},completed:[String],daily:{type:Object,default:{}},meta:{streak80Percent:{type:Number,default:0},maxVoiceMembers:{type:Number,default:0},actualVoiceMembers:{amount:{type:Number,default:0},connectedAt:{type:Date,default:new Date}}}},{minimize:!1});_s.index({crew:1}),_s.post("findOneAndUpdate",async function(t){await F0(t)});const ta=((li=h.models)==null?void 0:li.CrewQuest)||h.model("CrewQuest",_s),aa=async(t,a)=>{await ta.findOneAndUpdate({crew:t},a,{upsert:!0,returnDocument:"after"})},In=async(t,a)=>{await aa(t,{$addToSet:{completed:a}})},Yn=async(t,a,s)=>{await aa(t,[{$addFields:{[`daily.${a}.${s}`]:new Date}}])},I0=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Yn,completeQuest:In,setActualVoiceMembers:async(t,a)=>{await aa(t,{$set:{"meta.actualVoiceMembers.amount":a,"meta.actualVoiceMembers.connectedAt":new Date}})},setMaxVoiceMembers:async(t,a)=>{await aa(t,{$set:{"meta.maxVoiceMembers":a}})}},Symbol.toStringTag,{value:"Module"})),bs=async t=>await ta.create({crew:t}),Y0=async t=>{const a=await ta.findOne({crew:t});return a||await bs(t)},Ln=(t,a)=>{switch(t){case"quest":return bs(a)}},L0=async(t,a,s)=>{if(Array.isArray(a)){const r=await t.populate(a);for(const n of a)r[n]||(r[n]=await Ln(n,t._id));return r}else{const r=await t.populate(a,s),n=r[a];return(!n||Array.isArray(n)&&n.length===0)&&(r[a]=await Ln(a,t._id)),r}},P0=t=>{h.connect(t)};class T0 extends h.Types.ObjectId{}c.ALL_QUESTS=Xp,c.BET_MAX_VALUE=Mp,c.BET_MIN_VALUE=Sp,c.BackgroundShopItem=Cr,c.BoostXpShopItem=Ur,c.BottleShopItem=Dr,c.COOLDOWN_COMMANDS=Gm,c.ChestShopItem=xr,c.CrewQuestQuests=za,c.CrewQuests=Xa,c.EDITO_READ=kp,c.EquipmentShopItem=Or,c.ObjectId=T0,c.ObjectShopItem=Br,c.QUEST_ASSET_IMAGES=vp,c.Quest=d,c.RepairShopItem=Ar,c.StoreShopItem=Nr,c.TitleShopItem=$r,c.UserDailyQuests=Va,c.UserInventoryQuests=Za,c.UserMetaQuests=Ja,c.UserOrnamentsQuests=es,c.UserQuestMetaQuests=ts,c.UserQuestQuests=as,c.banExists=pi,c.banGetters=ci,c.banModel=Fe,c.betModel=na,c.completeCrewQuest=Bp,c.completeDailyQuest=xp,c.connectToServices=P0,c.createBan=ui,c.createBet=gi,c.createCrew=$0,c.createCrewQuest=bs,c.createInvitations=_i,c.createReminder=Yc,c.createSettings=Rr,c.createUserCrew=Zm,c.createWarn=C0,c.crewGetters=D0,c.crewModel=ze,c.crewQuestGetters=E0,c.crewQuestModel=ta,c.crewQuestUpdates=I0,c.crewUpdates=A0,c.deleteBan=hi,c.deleteInvitations=bi,c.deleteUserById=b0,c.deleteWarn=U0,c.emitQuestEvent=le,c.emitRaidEvent=dt,c.finWarnById=R0,c.findBan=fi,c.findBetById=yi,c.findCrewById=N0,c.findCrewQuest=Y0,c.findInvitations=wi,c.findReminder=Ic,c.findSettingsByGuildId=Uc,c.findShop=Yr,c.findShopByType=Ac,c.findUser=xn,c.findUserById=Jt,c.findUserCooldown=Vm,c.findUserCrew=nn,c.findUserEncyclopedia=Qc,c.findUserGames=a0,c.findUserInventory=Vt,c.findUserMeta=ct,c.findUserOrnaments=o0,c.findUserQuest=gs,c.findUserRaid=ws,c.getBadgeEmojisFromId=Up,c.getQuestBadgeEmojis=Cp,c.invitationsModel=St,c.onQuestEvent=qc,c.onRaidEvent=tm,c.populateCrew=L0,c.populateUser=An,c.questCanvas=bp,c.reminderGetters=$c,c.reminderModel=Ee,c.reminderUpdates=Fc,c.settingsModel=qt,c.settingsUpdates=Cc,c.shopGetters=xc,c.shopModel=Wt,c.shopUpdates=Oc,c.updateUserCooldown=ht,c.updateUserCrew=us,c.updateUserDailyReport=dn,c.updateUserEncyclopedia=Tr,c.updateUserGames=Xt,c.updateUserInventory=oe,c.updateUserMeta=F,c.updateUserOrnaments=W,c.updateUserQuest=gt,c.updateUserQuestMeta=v,c.updateUserRaid=Se,c.updateUserShop=Un,c.userCooldownGetters=Nc,c.userCooldownModel=ft,c.userCooldownUpdates=Km,c.userCrewExists=Jm,c.userCrewModel=Ge,c.userCrewUpdates=Xm,c.userDailyReportModel=zt,c.userDailyReportUpdates=e0,c.userEncyclopediaGetters=Tc,c.userEncyclopediaModel=Kt,c.userEncyclopediaUpdates=jc,c.userGamesModel=pt,c.userGamesUpdates=t0,c.userGetters=w0,c.userInventoryGetters=Pc,c.userInventoryModel=ut,c.userInventoryUpdates=Fm,c.userMetaGetters=qm,c.userMetaModel=Ue,c.userMetaUpdates=Am,c.userModel=K,c.userOrnamentsModel=mt,c.userOrnamentsUpdates=d0,c.userQuestGetters=c0,c.userQuestMetaModel=de,c.userQuestMetaUpdates=Rm,c.userQuestModel=yt,c.userQuestUpdates=f0,c.userRaidGetters=h0,c.userRaidModel=_t,c.userRaidUpdates=p0,c.userShopGetters=m0,c.userShopModel=Zt,c.userShopUpdates=y0,c.userUpdates=_0,c.warnGetters=v0,c.warnModel=Ve,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
|
10
|
+
y.version="2.30.1",Si(D),y.fn=p,y.min=od,y.max=cd,y.now=ud,y.utc=se,y.unix=Po,y.months=jo,y.isDate=Xe,y.locale=Re,y.invalid=Mt,y.duration=te,y.isMoment=J,y.weekdays=Ho,y.parseZone=To,y.localeData=ye,y.isDuration=Ft,y.monthsShort=Qo,y.weekdaysMin=Wo,y.defineLocale=Ra,y.updateLocale=Pl,y.locales=Tl,y.weekdaysShort=qo,y.normalizeUnits=V,y.relativeTimeRounding=_c,y.relativeTimeThreshold=bc,y.calendarFormat=Fd,y.prototype=p,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 Qt=t=>new Intl.NumberFormat("de-DE").format(t),br=(t,a,s=Math.random)=>Math.floor(s()*(a-t)+t),Ht=(t,a,s=r=>r)=>t.filter(r=>!a.some(n=>s(n)===s(r))),La=(t,a)=>[...new Set(t.map(s=>a(s)))],Sr=t=>t.filter(a=>a!=null),Mc=({start:t=0,stop:a,step:s=1})=>{if(s===0)throw new RangeError("step cannot be equal to 0");if(s>0&&t>=a||s<0&&t<=a)return[];const r=[];for(let n=t;s>0?n<a:n>a;n+=s)r.push(n);return r},kc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,vc=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Mr=/(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,Pa=[/^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],Rc={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:Mr,monthsShortRegex:Mr,monthsStrictRegex:kc,monthsShortStrictRegex:vc,monthsParse:Pa,longMonthsParse:Pa,shortMonthsParse:Pa,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,a)=>{switch(a){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",Rc);const be=(t,a,s=!0)=>(s?t.getFullYear()===a.getFullYear():!0)&&t.getMonth()===a.getMonth()&&t.getDate()===a.getDate(),Ta=()=>y().locale("fr").subtract(1,"days").toDate(),$e=t=>new Date>t,kr=t=>typeof t=="function",ja=(t,a,s)=>{const r={...t},n=Object.entries(t);for(const[i,o]of n){const f=a[i];f?r[i]=s(o,f):r[i]=o}return r},Qa=t=>Object.entries(t),vr=new h.Schema({guildId:{type:String,required:!0,unique:!0},suggestionChannelId:{type:String,default:null},reportChannelId:{type:String,default:null},reportModeratorChannelId:{type:String,default:null},factionChannelId:{type:String,default:null},discussionChannelId:{type:String,default:null},questFallbackChannelId:{type:String,default:null},reportBugChannelId:{type:String,default:null},expeditionChannelId:{type:String,default:null},ranking:{channelId:{type:String,default:null},messageId:{type:String,default:null}},roles:{premium:{type:String,default:null},booster:{type:String,default:null}},edito:{channelId:{type:String,default:null},price:{type:Number,default:100},sentAtMidnight:{type:Boolean,default:!1},messageId:{type:String,default:null}},crew:{infoChannelId:{type:String,default:null},crewChannelIds:{type:[{channelId:{type:String},crewId:{type:String}}],default:[]}},shopChannelId:{type:String,default:null},blackMarketChannelId:{type:String,default:null}});vr.index({"meta.xp":-1});const qt=((Qn=h.models)==null?void 0:Qn.Settings)||h.model("Settings",vr),I=async(t,a,s=!1)=>{await qt.updateOne({guildId:t},a,{upsert:s})},Cc=Object.freeze(Object.defineProperty({__proto__:null,addCrewChannelId:async(t,a,s)=>{await I(t,{$push:{"crew.crewChannelIds":{channelId:s,crewId:a}}})},randomizeEditoPrice:async t=>{const a=br(100,1001);return await I(t,{$set:{"edito.price":a}}),a},sentAtMidnight:async(t,a)=>{await I(t,{$set:{"edito.sentAtMidnight":a}})},setCrewInfoChannelId:async(t,a)=>{await I(t,{$set:{"crew.infoChannelId":a}})},setDiscussionChannelId:async(t,a)=>{await I(t,{$set:{discussionChannelId:a}})},setEditoChannel:async(t,a)=>{await I(t,{$set:{"edito.channelId":a}})},setEditoMessageId:async(t,a)=>{await I(t,{$set:{"edito.messageId":a}})},setFactionChannel:async(t,a)=>{await I(t,{$set:{factionChannelId:a}})},setQuestChannelId:async(t,a)=>{await I(t,{$set:{questFallbackChannelId:a}})},setRankingChannel:async(t,a)=>{await I(t,{$set:{"ranking.channelId":a}})},setRankingMessage:async(t,a)=>{await I(t,{$set:{"ranking.messageId":a}})},setReportBugChannelId:async(t,a)=>{await I(t,{$set:{reportBugChannelId:a}})},setReportChannel:async(t,a)=>{await I(t,{$set:{reportChannelId:a}})},setReportModeratorChannel:async(t,a)=>{await I(t,{$set:{reportModeratorChannelId:a}})},setShopChannelId:async(t,a,s)=>{await I(t,{$set:{shopChannelId:a,blackMarketChannelId:s}})},setSuggestionChannel:async(t,a)=>{await I(t,{$set:{suggestionChannelId:a}})},updateRolesId:async(t,a)=>{await I(t,{$set:Object.fromEntries(Object.entries(a).map(([s,r])=>[`roles.${s}`,r]))})}},Symbol.toStringTag,{value:"Module"})),Rr=async t=>await qt.create({guildId:t}),Uc=async(t,a={})=>{const s=await qt.findOne({guildId:t},a);return s||Rr(t)};class ae{constructor(){e(this,"name");e(this,"price");e(this,"size");e(this,"currency");e(this,"data");if(this.constructor===ae)throw new Error("Abstract classes can't be instantiated.")}toDBShopItem(){return{name:this.name,price:this.price,size:this.size,entityId:this.data.id,currency:this.currency}}async onBuy(a,s){this.currency==="berry"?(await Gr(a,-1*this.price*s),await qr(a,this.price*s)):await xe(a,this.currency,this.price*s)}isBackground(){return!1}isChest(){return!1}isTitle(){return!1}isBoostXp(){return!1}isRepair(){return!1}isStore(){return!1}isObject(){return!1}isBottle(){return!1}isEquipment(){return!1}}class Cr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await un(a,this.data.background.id)}isBackground(){return!0}}class Ur extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isBoostXp(){return!0}}class xr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isChest(){return!0}}class Br extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isObject(){return!0}}class Or extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ls(a,Mc({stop:s}).map(()=>S.seedEquipment({...this.data},Date.now()-Math.round(Math.random()*1e3))))}isEquipment(){return!0}}class Dr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isBottle(){return!0}}class Ar extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isRepair(){return!0}}class Nr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isStore(){return!0}}class $r extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await hs(a,this.data.title.name)}isTitle(){return!0}}const Er=(t,a)=>{const s=t.items.find(r=>r.entityId===a);if(s){const{name:r,price:n,size:i,currency:o}=s,f=S.findEntity(s.entityId);if(S.isBackgroundItem(f))return new Cr({name:r,price:n,item:f,size:i,currency:o});if(S.isTitleItem(f))return new $r({name:r,price:n,item:f,size:i,currency:o});if(S.isChestItem(f))return new xr({name:r,price:n,item:f,size:i,currency:o});if(S.isBoostItem(f))return new Ur({name:r,price:n,item:f,size:i,currency:o});if(S.isRepairItem(f))return new Ar({name:r,price:n,item:f,size:i,currency:o});if(S.isStoreItem(f))return new Nr({name:r,price:n,item:f,size:i,currency:o});if(S.isObjectItem(f))return new Br({name:r,price:n,item:f,size:i,currency:o});if(S.isEquipment(f))return new Or({name:r,price:n,item:f,size:i,currency:o});if(S.isBottleItem(f))return new Dr({name:r,price:n,size:i,item:f,currency:o})}},xc=Object.freeze(Object.defineProperty({__proto__:null,getShopItem:Er,getShopItemList:t=>{const a=[];for(const{entityId:s}of t.items){const r=Er(t,s);r&&a.push(r)}return a}},Symbol.toStringTag,{value:"Module"})),Fr=new h.Schema({shopType:{type:String,required:!0,unique:!0},publishedAt:{type:Date,default:new Date},duration:{type:Number,default:null},closeAt:{type:Date,default:null},items:{type:[{name:String,price:Number,size:{type:Number,default:null},entityId:String,currency:String}],default:[]},stats:{berrySpent:{type:Number,default:0},itemBought:{type:Number,default:0},chestBought:{type:Number,default:0},boostTimeBought:{type:Number,default:0},percentBought:{type:Number,default:0}}},{minimize:!1});Fr.index({shopType:1});const Wt=((Hn=h.models)==null?void 0:Hn.Shop)||h.model("Shop",Fr),Bc=async(t,a)=>{await Ir({shopType:t},a,!0)},Ha=async(t,a)=>{await Ir({_id:t},a,!0)},Ir=async(t,a,s=!1)=>{await Wt.updateOne(t,a,{upsert:s})},Oc=Object.freeze(Object.defineProperty({__proto__:null,buyShopItem:async(t,a,s,r)=>{const n=a.map(i=>(i.name===s.name&&i.size&&(i.size-=r),i));await Ha(t,{$set:{items:n}})},publish:async t=>{await Ha(t,{$set:{publishedAt:new Date}})},setShopItems:async(t,a)=>{await Bc(t,{$set:{items:[...a]}})},updateShopStats:async(t,a,s)=>{await Ha(t,{$inc:{"stats.berrySpent":a.price*s,"stats.itemBought":s,"stats.chestBought":a.isChest()?s:0,"stats.percentBought":a.isRepair()?a.data.repair*s:0,"stats.boostTimeBought":a.isBoostXp()?a.data.id==="boost_xp_day"?s:7*s:0}})}},Symbol.toStringTag,{value:"Module"})),Dc=t=>Wt.create({shopType:t}),Ac=async(t,a={})=>{const s=await Yr({shopType:t},a);return s||await Dc(t)},Yr=(t,a={})=>Wt.findOne(t,a),Nc=Object.freeze(Object.defineProperty({__proto__:null,getCommandCooldown:(t,a)=>t.commands[a],getRaidCooldown:(t,a)=>t.raid[a]},Symbol.toStringTag,{value:"Module"})),qa=new h.Schema({user:{type:h.Schema.Types.ObjectId,ref:"User",required:!0},date:Date,type:String},{minimize:!1});qa.index({user:1}),qa.index({date:-1});const Ee=((qn=h.models)==null?void 0:qn.Reminder)||h.model("Reminder",qa),$c=Object.freeze(Object.defineProperty({__proto__:null,getAllPassedReminder:async()=>await Ee.find({date:{$lte:new Date}})},Symbol.toStringTag,{value:"Module"})),Ec=async(t,a)=>{await Ee.deleteOne({user:t,type:a})},Lr=async(t,a,s,r)=>{await Ee.updateOne({user:t,type:a},s,{upsert:r})},Wa=async(t,a,s)=>{await Lr(t,a,{$set:{date:s}},!0)},Ka=async(t,a,s)=>{await Lr(t,a,[{$set:{date:{$add:["$date",s]}}}],!1)},Fc=Object.freeze(Object.defineProperty({__proto__:null,addReminder:Wa,deleteSelectedReminders:async t=>{await Ee.deleteMany({_id:{$in:t}})},removeReminder:async(t,a)=>{await Ec(t,a)},updateReminderDate:Ka},Symbol.toStringTag,{value:"Module"})),Ic=async(t,a={})=>{const s=await Ee.findOne({user:t},a);return s||null},Yc=async(t,a,s)=>await Ee.create({user:t,date:a,type:s}),Lc=(t,a)=>{const s=Sr(Object.values(t.equippedItems)),r=a.equipments.filter(n=>s.find(i=>i.id===n.id)).length;if(r===a.equipments.length)return a.fullBonus;if(r>=a.equipments.length/2)return a.halfBonus},Ga=t=>{var s;let a={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};for(const r of S.EQUIPMENT_SLOT){const n=(s=t.equippedItems)==null?void 0:s[r];n&&(a=ja(a,S.fromDBToEquipableEquipment(n).characteristics,(i,o)=>i+o))}for(const r of S.allPanoplies){const n=Lc(t,r);n&&!("target"in n)&&(a=ja(a,n,(i,o)=>i+o))}return a},Pc=Object.freeze(Object.defineProperty({__proto__:null,calcBottleMultiplier:(t,{buffs:a})=>{const s=S.getPanoplyBonus(t.equippedItems).find(([r,n])=>r.id==="herbalist"&&n!==null);return s&&s[1]==="full"?a.map(r=>({...r,multiplier:r.multiplier*1.25})):s&&s[1]==="half"?a.map(r=>({...r,multiplier:r.multiplier*1.1})):a},calcMinStreakForWorkLoot:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,r])=>s.id==="marine"&&r!==null);return a&&a[1]==="full"?10:a&&a[1]==="half"?20:1/0},getItemList:t=>Object.fromEntries(t.itemList),getRecipeResult:(t,a)=>{const s=S.getPanoplyBonus(t.equippedItems).find(([r,n])=>r.id==="little_blacksmith"&&n!==null);return(s==null?void 0:s[1])==="full"&&a==="chest_3"?"chest_blacksmith_3":(s==null?void 0:s[1])==="half"&&a==="chest_2"?"chest_blacksmith_2":(s==null?void 0:s[1])==="half"&&a==="chest_1"?"chest_blacksmith_1":a},getUserEquipmentsCharacteristics:Ga,hasEnoughEnchantedStone:(t,a)=>(t.itemList.get("enchanted_stone")||0)>=a,hasEnoughItem:(t,a,s)=>(t.itemList.get(s)||0)>=a,hasEnoughItemsForRecipe:(t,a,s)=>{for(const r of a)if((t.itemList.get(r.itemId)||0)<r.size*s)return!1;return!0},hasEnoughTools:(t,a)=>(t.itemList.get("tools")||0)>=a,hasInventoryRequirements:(t,a)=>Qa(a).reduce((s,[r,n])=>s&&(t.itemList.get(r)??0)>=(n??0),!0),hasRevolutionaryBuff:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,r])=>s.id==="revolutionary"&&r!==null);return(a==null?void 0:a[1])??null},maxCraftQuantity:(t,a)=>{let s=1/0;for(const r of a)s=Math.min(s,Math.floor((t.itemList.get(r.itemId)||0)/r.size));return s}},Symbol.toStringTag,{value:"Module"})),Tc=Object.freeze(Object.defineProperty({__proto__:null,getEncyclopedia:t=>t.encyclopedia,hasFoundItem:(t,a)=>t.encyclopedia.includes(a)},Symbol.toStringTag,{value:"Module"})),Pr=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},encyclopedia:{type:[String],default:[]}});Pr.index({user:1});const Kt=((Wn=h.models)==null?void 0:Wn.UserEncyclopedia)||h.model("UserEncyclopedia",Pr),Tr=async(t,a)=>{await Kt.updateOne({user:t},a,{upsert:!0})},Gt=async(t,a)=>{await Tr(t,{$addToSet:{encyclopedia:{$each:a}}})},jc=Object.freeze(Object.defineProperty({__proto__:null,addItem:Gt},Symbol.toStringTag,{value:"Module"})),jr=async t=>await Kt.create({user:t}),Qc=async t=>{const a=await Kt.findOne({user:t});return a||await jr(t)},Hc=["crewUpdate","crewQuestUpdate","userMetaUpdate","userQuestMetaUpdate","userQuestUpdate","userInventoryUpdate","userOrnamentsUpdate","userDaily","crewDaily","userChristmasUpdate"],Qr=new oi.EventEmitter,le=(t,a,s)=>{Qr.emit(t,a,s)},qc=t=>{for(const a of Hc)Qr.on(a,(s,r)=>{t(a,s,r)})};class d{constructor(){e(this,"onUserMetaUpdate");e(this,"onUserQuestUpdate");e(this,"onUserQuestMetaUpdate");e(this,"onUserInventoryUpdate");e(this,"onUserOrnamentsUpdate");e(this,"onCrewUpdate");e(this,"onCrewQuestUpdate");e(this,"complete",async(a,{_userQuest:s,_userCrew:r,_userMeta:n})=>{const i=s??await gs(a);if(this.isCompleted(i))return null;const o=n??await ct(a),f=r??await nn(a);return this.crew&&f?this.daily?await this.markCrewDailyAsCompleted(f.crew._id,i.user._id):(await this.markAsCompleted(i),await this.markCrewAsCompleted(f.crew._id)):await this.markAsCompleted(i),await this.specificQuestCompletion(i,f),await this.applyReward(i,o,f)});e(this,"getComputedRewards",(a,s)=>{const r=this.daily&&ps(s)?ms(s):1;return{xp:(kr(this.xp)?this.xp(a):this.xp)*r*(1+os(a)),berry:(kr(this.berry)?this.berry(a):this.berry)*r}})}async applyReward(a,s,r){return this.title&&await hs(a.user._id,this.title.name),this.badge&&(this.crew&&r?await En(r.crew._id,this.badge,this.rank.id):await fn(a.user._id,this.badge,this.rank.id)),this.isFactionBadge&&await hn(a.user._id,this.rank.id),this.asset&&await pn(a.user._id,this.asset),this.getComputedRewards(s,a)}async specificQuestCompletion(a,s){this.id==="daily_all"&&(await Mn(a.user._id,a.lastFullComplete),s&&await this.markCrewDailyAsCompleted(s.crew._id,a.user._id)),this.id==="be_level_10"&&await Bn(a.user._id,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await On(a.user._id,!0),this.id==="crew_all_members_daily"&&s&&await rn(a.user._id)}isCompleted(a){return this.daily?gn(a,this.id):yn(a,this.id)}async markAsCompleted(a){this.daily?await Sn(a.user._id,this.id):await bn(a.user._id,this.id)}async markCrewAsCompleted(a){await In(a,this.id)}async markCrewDailyAsCompleted(a,s){await Yn(a,s.toHexString(),this.id)}}class Wc extends d{constructor(){super(...arguments);e(this,"name","Bienvenue à bord !");e(this,"id","crew_create_or_join");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Créer son équipage/Rejoindre un équipage");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1)}}class Kc extends d{constructor(){super(...arguments);e(this,"name","Prêt à naviguer !");e(this,"id","crew_daily_click");e(this,"rank",l.RANKS.COMMON);e(this,"description","Faire acte de présence auprès de son équipage");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"crew",!0);e(this,"daily",!0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1)}}const Gc=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:Wc,CrewValidateDaily:Kc},Symbol.toStringTag,{value:"Module"}));class Vc extends d{constructor(){super(...arguments);e(this,"name","1 jour 1 message");e(this,"id","daily_send_message");e(this,"rank",l.RANKS.COMMON);e(this,"description","Envoyer un message");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*100);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class zc extends d{constructor(){super(...arguments);e(this,"name","Les nouvelles sont bonnes ?");e(this,"id","daily_read_edito");e(this,"rank",l.RANKS.COMMON);e(this,"description","Réagir à l'édito");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*3e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*300);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class Xc extends d{constructor(){super(...arguments);e(this,"name","Quoi ? Feur !");e(this,"id","daily_answer");e(this,"rank",l.RANKS.COMMON);e(this,"description","Répondre à quelqu'un");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1500);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*150);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class Zc extends d{constructor(){super(...arguments);e(this,"name","Narcissique");e(this,"id","daily_check_profile");e(this,"rank",l.RANKS.COMMON);e(this,"description","Regarder son profil");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*2e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*200);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class Jc extends d{constructor(){super(...arguments);e(this,"name","Almanax");e(this,"id","almanax");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Valider 365 jours de suite les quêtes quotidiennes");e(this,"berry",1e9);e(this,"xp",1e6);e(this,"badge",u.BadgeList.calendar);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1)}}const Va=Object.freeze(Object.defineProperty({__proto__:null,Almanax:Jc,DailyAnswer:Xc,DailyCheckProfile:Zc,DailyReadEdito:zc,DailySendMessage:Vc},Symbol.toStringTag,{value:"Module"}));class eu extends d{constructor(){super(...arguments);e(this,"name","Prenez-en soin");e(this,"id","crew_carpenter_1_week");e(this,"rank",l.RANKS.COMMON);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 semaine");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=7)}}class tu extends d{constructor(){super(...arguments);e(this,"name","Il est comme neuf !");e(this,"id","crew_carpenter_1_month");e(this,"rank",l.RANKS.RARE);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 mois");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30)}}class au extends d{constructor(){super(...arguments);e(this,"name","À l'occasion, je vous mettrai un petit coup de polish");e(this,"id","crew_carpenter_3_months");e(this,"rank",l.RANKS.EPIC);e(this,"description","Rester au dessus de 80% de détérioration pendant 3 mois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30*3)}}class su extends d{constructor(){super(...arguments);e(this,"name","Vous ne naviguez qu'en eau calme ?");e(this,"id","crew_carpenter_6_months");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Rester au dessus de 80% de détérioration pendant 6 mois");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30*6)}}class ru extends d{constructor(){super(...arguments);e(this,"name","C'est un sacré charpentier que vous avez là !");e(this,"id","crew_carpenter_1_year");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 an");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles["Charpentier Légendaire"]);e(this,"badge",u.BadgeList.carpenter);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=365)}}class nu extends d{constructor(){super(...arguments);e(this,"name","Au rapport !");e(this,"id","crew_all_members_daily");e(this,"rank",l.RANKS.RARE);e(this,"description","Tous les membres ont rempli leurs quêtes quotidiennes");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"daily",!0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"onCrewQuestUpdate",(s,r)=>{var n,i;return Fn(s,"daily_all")&&!be(((i=(n=s.daily)==null?void 0:n[r.user._id.toHexString()])==null?void 0:i.crew_all_members_daily)??new Date(0),new Date)&&!be(r.lastAllMembersDaily,new Date)})}}class iu extends d{constructor(){super(...arguments);e(this,"name","Réunion de crise");e(this,"id","crew_vocal_5");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être dans un un vocal avec les 5 membres pendant 1 heure");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=5)}}class lu extends d{constructor(){super(...arguments);e(this,"name","Conseil de guerre");e(this,"id","crew_vocal_7");e(this,"rank",l.RANKS.RARE);e(this,"description","Être dans un un vocal avec les 7 membres pendant 1 heure");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=7)}}class du extends d{constructor(){super(...arguments);e(this,"name","Réunion de famille");e(this,"id","crew_vocal_10");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être dans un un vocal avec les 10 membres pendant 1 heure");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=10)}}class ou extends d{constructor(){super(...arguments);e(this,"name","Les Inséparables");e(this,"id","crew_vocal_12");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être dans un un vocal avec les 12 membres pendant 1 heure");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=12)}}class cu extends d{constructor(){super(...arguments);e(this,"name","Ambiance sectaire un peu");e(this,"id","crew_vocal_15");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être dans un un vocal avec les 15 membres pendant 1 heure");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles["Membre d'une secte"]);e(this,"badge",u.BadgeList.shipsecte);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=15)}}const za=Object.freeze(Object.defineProperty({__proto__:null,CrewAllMembersDaily:nu,CrewCarpenter1Month:tu,CrewCarpenter1Week:eu,CrewCarpenter1Year:ru,CrewCarpenter3Months:au,CrewCarpenter6Months:su,CrewVocal10:du,CrewVocal12:ou,CrewVocal15:cu,CrewVocal5:iu,CrewVocal7:lu},Symbol.toStringTag,{value:"Module"}));class uu extends d{constructor(){super(...arguments);e(this,"name","Ah bah maintenant, elle va marcher beaucoup moins bien forcément !");e(this,"id","crew_break_ship");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Casser son bateau (atteindre les 0% de détérioration)");e(this,"berry",-1e6);e(this,"xp",-1e5);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.disintegration<=0)}}class fu extends d{constructor(){super(...arguments);e(this,"name","Sympa votre barque");e(this,"id","crew_ship_level_10");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 10 d'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=10)}}class hu extends d{constructor(){super(...arguments);e(this,"name","Joli bicoque");e(this,"id","crew_ship_level_25");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 25 d'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=25)}}class pu extends d{constructor(){super(...arguments);e(this,"name","* C'est un fameux trois-mâts *");e(this,"id","crew_ship_level_50");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 50 d'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=50)}}class mu extends d{constructor(){super(...arguments);e(this,"name","* Fin comme un oiseau *");e(this,"id","crew_ship_level_75");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 75 d'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=75)}}class yu extends d{constructor(){super(...arguments);e(this,"name","* Hisse et ho ! *");e(this,"id","crew_ship_level_100");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 100 d'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Santiano);e(this,"badge",u.BadgeList.crewship);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=100)}}class gu extends d{constructor(){super(...arguments);e(this,"name","Y'a pas de petites économies");e(this,"id","crew_have_100M_berry");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 100 000 000 Berrys dans le coffre d'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=1e8)}}class wu extends d{constructor(){super(...arguments);e(this,"name","Joli butin !");e(this,"id","crew_have_500M_berry");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 500 000 000 Berrys dans le coffre d'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e8)}}class _u extends d{constructor(){super(...arguments);e(this,"name","Vous économisez pour un nouveau bateau ?");e(this,"id","crew_have_1Md_berry");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 1 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=1e9)}}class bu extends d{constructor(){super(...arguments);e(this,"name","Ça fait beaucoup là non ?");e(this,"id","crew_have_5Md_berry");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 5 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e9)}}class Su extends d{constructor(){super(...arguments);e(this,"name","Karl Marx serait fier de vous !");e(this,"id","crew_have_50Md_berry");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 50 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Communiste);e(this,"badge",u.BadgeList.communism);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e10)}}class Mu extends d{constructor(){super(...arguments);e(this,"name","Plus on est de fous...");e(this,"id","crew_size_5");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être dans un équipage de 5 membres");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=5)}}class ku extends d{constructor(){super(...arguments);e(this,"name","Plus on rit !");e(this,"id","crew_size_7");e(this,"rank",l.RANKS.RARE);e(this,"description","Être dans un équipage de 7 membres");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=7)}}class vu extends d{constructor(){super(...arguments);e(this,"name","Une petite famille");e(this,"id","crew_size_10");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être dans un équipage de 10 membres");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=10)}}class Ru extends d{constructor(){super(...arguments);e(this,"name","Va falloir des dortoirs en plus");e(this,"id","crew_size_12");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être dans un équipage de 12 membres");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=12)}}class Cu extends d{constructor(){super(...arguments);e(this,"name","* Ah qu'est-ce qu'on est serré ! *");e(this,"id","crew_size_15");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être dans un équipage de 15 membres");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Sardine);e(this,"badge",u.BadgeList.sardine);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=15)}}class Uu extends d{constructor(){super(...arguments);e(this,"name","C'est sympa pour eux !");e(this,"id","crew_bring_50k_xp");e(this,"rank",l.RANKS.COMMON);e(this,"description","Rapporter 50 000 XP à l'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e4)}}class xu extends d{constructor(){super(...arguments);e(this,"name","On voit que tu aimes ton équipage");e(this,"id","crew_bring_500k_xp");e(this,"rank",l.RANKS.RARE);e(this,"description","Rapporter 500 000 XP à l'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e5)}}class Bu extends d{constructor(){super(...arguments);e(this,"name","Le méritent-ils vraiment ?");e(this,"id","crew_bring_1m_xp");e(this,"rank",l.RANKS.EPIC);e(this,"description","Rapporter 1 000 000 XP à l'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=1e6)}}class Ou extends d{constructor(){super(...arguments);e(this,"name","J'espère que t'as eu une prime");e(this,"id","crew_bring_5m_xp");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Rapporter 5 000 000 XP à l'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e6)}}class Du extends d{constructor(){super(...arguments);e(this,"name","Qu'on lui fasse une statue de Bronze !");e(this,"id","crew_bring_50m_xp");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Rapporter 50 000 000 XP à l'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Team Player"]);e(this,"badge",u.BadgeList.broship);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e7)}}const Xa=Object.freeze(Object.defineProperty({__proto__:null,CrewBeLevel10:fu,CrewBeLevel100:yu,CrewBeLevel25:hu,CrewBeLevel50:pu,CrewBeLevel75:mu,CrewBreakShip:uu,CrewBring1mXp:Bu,CrewBring500kXp:xu,CrewBring50kXp:Uu,CrewBring50mXp:Du,CrewBring5mXp:Ou,CrewHave100MBerry:gu,CrewHave1MdBerry:_u,CrewHave500MBerry:wu,CrewHave50MdBerry:Su,CrewHave5MdBerry:bu,CrewSize10:vu,CrewSize12:Ru,CrewSize15:Cu,CrewSize5:Mu,CrewSize7:ku},Symbol.toStringTag,{value:"Module"}));class Au extends d{constructor(){super(...arguments);e(this,"name","Ne fais rien exploser hein ?");e(this,"id","have_1_recipe");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 1 recette");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=1)}}class Nu extends d{constructor(){super(...arguments);e(this,"name","C'est bien tu sais faire des pâtes !");e(this,"id","have_5_recipe");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 5 recettes");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=5)}}class $u extends d{constructor(){super(...arguments);e(this,"name","Ta grand-mère t'as donné son livre ?");e(this,"id","have_10_recipe");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 10 recettes");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=10)}}class Eu extends d{constructor(){super(...arguments);e(this,"name","Let him cook");e(this,"id","have_25_recipe");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 25 recettes");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=25)}}class Fu extends d{constructor(){super(...arguments);e(this,"name","Paul Bocuse");e(this,"id","have_100_recipe");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 100 recettes");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Paul Bocuse"]);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=100)}}const Za=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:Fu,Have10Recipe:$u,Have1Recipe:Au,Have25Recipe:Eu,Have5Recipe:Nu},Symbol.toStringTag,{value:"Module"}));class Iu extends d{constructor(){super(...arguments);e(this,"name","Enfin de quoi t'acheter un bon vélo !");e(this,"id","have_500000_berry");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 500 000 Berrys");e(this,"berry",1e5);e(this,"xp",5e3);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e5)}}class Yu extends d{constructor(){super(...arguments);e(this,"name","Ouah t'es multi-millionaire !");e(this,"id","have_5000000_berry");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 5 000 000 Berrys");e(this,"berry",1e6);e(this,"xp",25e3);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e6)}}class Lu extends d{constructor(){super(...arguments);e(this,"name","Presque riche");e(this,"id","have_50000000_berry");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 50 000 000 Berrys");e(this,"berry",1e7);e(this,"xp",5e4);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e7)}}class Pu extends d{constructor(){super(...arguments);e(this,"name","Un 20m² à Paris");e(this,"id","have_500000000_berry");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 500 000 000 Berrys");e(this,"berry",1e8);e(this,"xp",1e5);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e8)}}class Tu extends d{constructor(){super(...arguments);e(this,"name","This is Elon Musk");e(this,"id","have_5000000000_berry");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 5 000 000 000 Berrys");e(this,"berry",1e9);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Elon Musk"]);e(this,"badge",u.BadgeList.berry);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e9)}}class ju extends d{constructor(){super(...arguments);e(this,"name","5 jours / semaine à Basic Fit");e(this,"id","have_25_strength");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de force");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.strength)>=25)}}class Qu extends d{constructor(){super(...arguments);e(this,"name","La fonte > les livres");e(this,"id","have_50_strength");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de force");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.strength)>=50)}}class Hu extends d{constructor(){super(...arguments);e(this,"name","Moi, musclé ?");e(this,"id","have_100_strength");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de force");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.strength)>=100)}}class qu extends d{constructor(){super(...arguments);e(this,"name","Hercules");e(this,"id","have_250_strength");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de force");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.strength)>=250)}}class Wu extends d{constructor(){super(...arguments);e(this,"name","Titan");e(this,"id","have_500_strength");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de force");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles.Titan);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.strength)>=500)}}class Ku extends d{constructor(){super(...arguments);e(this,"name","Chat de gouttière");e(this,"id","have_25_agility");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 d'agilité");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.agility)>=25)}}class Gu extends d{constructor(){super(...arguments);e(this,"name","Hop ! Grand écart !");e(this,"id","have_50_agility");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 d'agilité");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.agility)>=50)}}class Vu extends d{constructor(){super(...arguments);e(this,"name","Danseur étoile");e(this,"id","have_100_agility");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 d'agilité");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.agility)>=100)}}class zu extends d{constructor(){super(...arguments);e(this,"name","L'Éclair de Konoha ! (merde mauvais manga)");e(this,"id","have_250_agility");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 d'agilité");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.agility)>=250)}}class Xu extends d{constructor(){super(...arguments);e(this,"name","Héritier de Bon Clay");e(this,"id","have_500_agility");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 d'agilité");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Bon Clay"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.agility)>=500)}}class Zu extends d{constructor(){super(...arguments);e(this,"name","2+2 = 4");e(this,"id","have_25_intelligence");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 d'intelligence");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=25)}}class Ju extends d{constructor(){super(...arguments);e(this,"name","Petit Einstein");e(this,"id","have_50_intelligence");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 d'intelligence");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=50)}}class ef extends d{constructor(){super(...arguments);e(this,"name","HPI");e(this,"id","have_100_intelligence");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 d'intelligence");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=100)}}class tf extends d{constructor(){super(...arguments);e(this,"name","Sorcier du savoir");e(this,"id","have_250_intelligence");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 d'intelligence");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=250)}}class af extends d{constructor(){super(...arguments);e(this,"name","Héritier de Vegapunk");e(this,"id","have_500_intelligence");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 d'intelligence");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Vegapunk"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=500)}}class sf extends d{constructor(){super(...arguments);e(this,"name","Touche du bois");e(this,"id","have_25_chance");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de chance");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.chance)>=25)}}class rf extends d{constructor(){super(...arguments);e(this,"name","Petit veinard");e(this,"id","have_50_chance");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de chance");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.chance)>=50)}}class nf extends d{constructor(){super(...arguments);e(this,"name","LA CHAAAAAATTE !");e(this,"id","have_100_chance");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de chance");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.chance)>=100)}}class lf extends d{constructor(){super(...arguments);e(this,"name","Favori des Astres");e(this,"id","have_250_chance");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de chance");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.chance)>=250)}}class df extends d{constructor(){super(...arguments);e(this,"name","Héritier de Baggy");e(this,"id","have_500_chance");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de chance");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Baggy"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.chance)>=500)}}class of extends d{constructor(){super(...arguments);e(this,"name","Résistant");e(this,"id","have_25_vitality");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de vitalité");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=25)}}class cf extends d{constructor(){super(...arguments);e(this,"name","Solide comme un roc");e(this,"id","have_50_vitality");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de vitalité");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=50)}}class uf extends d{constructor(){super(...arguments);e(this,"name","Le tank !");e(this,"id","have_100_vitality");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de vitalité");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=100)}}class ff extends d{constructor(){super(...arguments);e(this,"name","Mais t'es increvable !");e(this,"id","have_250_vitality");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de vitalité");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=250)}}class hf extends d{constructor(){super(...arguments);e(this,"name","Héritier de Kaido");e(this,"id","have_500_vitality");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de vitalité");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Kaido"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=500)}}class pf extends d{constructor(){super(...arguments);e(this,"name","Tu as lu des livres ?");e(this,"id","have_25_wisdom");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de sagesse");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=25)}}class mf extends d{constructor(){super(...arguments);e(this,"name","Filozof");e(this,"id","have_50_wisdom");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de sagesse");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=50)}}class yf extends d{constructor(){super(...arguments);e(this,"name","Platon");e(this,"id","have_100_wisdom");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de sagesse");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=100)}}class gf extends d{constructor(){super(...arguments);e(this,"name","Oracle vénéré");e(this,"id","have_250_wisdom");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de sagesse");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=250)}}class wf extends d{constructor(){super(...arguments);e(this,"name","Héritier d'Ohara");e(this,"id","have_500_wisdom");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de sagesse");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier d'Ohara"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=500)}}class _f extends d{constructor(){super(...arguments);e(this,"name","Un pas devant l'autre !");e(this,"id","be_level_10");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 10");e(this,"berry",1e5);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=10)}}class bf extends d{constructor(){super(...arguments);e(this,"name","T'inquiète pas ça va bien se passer");e(this,"id","be_level_20");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 20");e(this,"berry",3e5);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=20)}}class Sf extends d{constructor(){super(...arguments);e(this,"name","Commence par me parler poliment");e(this,"id","be_level_30");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 30");e(this,"berry",1e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=30)}}class Mf extends d{constructor(){super(...arguments);e(this,"name","On te respecte à la cantine");e(this,"id","be_level_40");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 40");e(this,"berry",3e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=40)}}class kf extends d{constructor(){super(...arguments);e(this,"name","Ça commence à devenir sérieux");e(this,"id","be_level_50");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 50");e(this,"berry",5e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=50)}}class vf extends d{constructor(){super(...arguments);e(this,"name","Une chambre individuelle ? La chance !");e(this,"id","be_level_60");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 60");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=60)}}class Rf extends d{constructor(){super(...arguments);e(this,"name","Oulah, les responsabilités arrivent");e(this,"id","be_level_70");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 70");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=70)}}class Cf extends d{constructor(){super(...arguments);e(this,"name","Faut pas t'emmerder toi");e(this,"id","be_level_80");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 80");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=80)}}class Uf extends d{constructor(){super(...arguments);e(this,"name","Là on parle !");e(this,"id","be_level_90");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 90");e(this,"berry",1e8);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=90)}}class xf extends d{constructor(){super(...arguments);e(this,"name","*S'agenouille*");e(this,"id","be_level_120");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 120");e(this,"berry",1e9);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=120)}}class Bf extends d{constructor(){super(...arguments);e(this,"name","T'as des amis ?");e(this,"id","daily_vocal");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se connecter 10 min en vocal");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*5e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*500);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserMetaUpdate",({xp:s})=>s.voice.minutesInVoiceToday>=10&&be(s.voice.lastConnection,new Date))}}const Ja=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:_f,BeLevel120:xf,BeLevel20:bf,BeLevel30:Sf,BeLevel40:Mf,BeLevel50:kf,BeLevel60:vf,BeLevel70:Rf,BeLevel80:Cf,BeLevel90:Uf,DailyVocal:Bf,Have100Agility:Vu,Have100Chance:nf,Have100Intelligence:ef,Have100Strength:Hu,Have100Vitality:uf,Have100Wisdom:yf,Have250Agility:zu,Have250Chance:lf,Have250Intelligence:tf,Have250Strength:qu,Have250Vitality:ff,Have250Wisdom:gf,Have25Agility:Ku,Have25Chance:sf,Have25Intelligence:Zu,Have25Strength:ju,Have25Vitality:of,Have25Wisdom:pf,Have500Agility:Xu,Have500Chance:df,Have500Intelligence:af,Have500Strength:Wu,Have500Vitality:hf,Have500Wisdom:wf,Have500kBerry:Iu,Have500mBerry:Pu,Have50Agility:Gu,Have50Chance:rf,Have50Intelligence:Ju,Have50Strength:Qu,Have50Vitality:cf,Have50Wisdom:mf,Have50mBerry:Lu,Have5mBerry:Yu,Have5mdBerry:Tu},Symbol.toStringTag,{value:"Module"}));class Of extends d{constructor(){super(...arguments);e(this,"name","Un poster dans ta chambre");e(this,"id","have_1_background");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 1 background");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(r=>r!=="default").length>=1)}}class Df extends d{constructor(){super(...arguments);e(this,"name","Fan de One Piece");e(this,"id","have_25_background");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 25 backgrounds différents");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(r=>r!=="default").length>=25)}}class Af extends d{constructor(){super(...arguments);e(this,"name","Tu vas en faire quoi ? Tu peux en mettre qu'un");e(this,"id","have_50_background");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 50 backgrounds différents");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(r=>r!=="default").length>=50)}}class Nf extends d{constructor(){super(...arguments);e(this,"name","PTDR t ki ?");e(this,"id","have_10_title");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 10 titres différents");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=10)}}class $f extends d{constructor(){super(...arguments);e(this,"name","On m'appelle Personne");e(this,"id","have_50_title");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 50 titres différents");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=50)}}class Ef extends d{constructor(){super(...arguments);e(this,"name","Ok Daenerys");e(this,"id","have_100_title");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 100 titres différents");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=100)}}const es=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:Ef,Have10Title:Nf,Have1Background:Of,Have25Background:Df,Have50Background:Af,Have50Title:$f},Symbol.toStringTag,{value:"Module"}));class Ff extends d{constructor(){super(...arguments);e(this,"name","Petit joueur");e(this,"id","bet_min_value");e(this,"rank",l.RANKS.RARE);e(this,"description","Mise la somme minimale lors d'un pari");e(this,"berry",5e4);e(this,"xp",1e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles["Petit joueur"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.betMin)}}class If extends d{constructor(){super(...arguments);e(this,"name","On a tous le droit à une seconde chance");e(this,"id","lose_everything");e(this,"rank",l.RANKS.RARE);e(this,"description","Perdre tous ses Berrys");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.loseEverything)}}class Yf extends d{constructor(){super(...arguments);e(this,"name","T'es sûr de toi ?");e(this,"id","bet_10M");e(this,"rank",l.RANKS.EPIC);e(this,"description","Miser plus de 10 000 000 de Berrys en une seule fois");e(this,"berry",5e5);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.bet10M)}}class Lf extends d{constructor(){super(...arguments);e(this,"name","Ok j'ai rien dit");e(this,"id","win_10M_bet");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Gagner en ayant misé plus de 10M de Berrys");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.winBet10M)}}class Pf extends d{constructor(){super(...arguments);e(this,"name","T'es accro là non ?");e(this,"id","bet_total_10M");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Miser plus de 10 000 000 de Berrys en tout");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Gambling addict"]);e(this,"badge",u.BadgeList.casino);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.totalBet>=1e7)}}class Tf extends d{constructor(){super(...arguments);e(this,"name","LE MILLIARD");e(this,"id","bet_total_1Md");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Miser plus de 1 000 000 000 de Berrys en tout");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"badge",u.BadgeList.casino);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.totalBet>=1e9)}}class jf extends d{constructor(){super(...arguments);e(this,"name","Cheh !");e(this,"id","lose_10M");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Perdre 10M de Berrys en une fois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",u.BadgeList.noluck);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.lose10M)}}class Qf extends d{constructor(){super(...arguments);e(this,"name","Bon anniversaire !");e(this,"id","birthday");e(this,"rank",l.RANKS.EPIC);e(this,"description","Fêter son anniversaire");e(this,"berry",1e6);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.hasCelebrateBirthday)}}class Hf extends d{constructor(){super(...arguments);e(this,"name","Il ne va pas te répondre tu sais ?");e(this,"id","bot_ping");e(this,"rank",l.RANKS.EPIC);e(this,"description","Ping le bot 100 fois");e(this,"berry",25e4);e(this,"xp",25e3);e(this,"secret",!0);e(this,"title",u.questTitles.Teubé);e(this,"badge",null);e(this,"asset",u.profileAssets.idiot);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({botPing:s})=>s>=100)}}class qf extends d{constructor(){super(...arguments);e(this,"name","Tu avais soif ?");e(this,"id","drink_100_xp_bottles_1_day");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 100 Potions d'XP en une journée");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.today>=100)}}class Wf extends d{constructor(){super(...arguments);e(this,"name","Un ptit goût amer non ?");e(this,"id","drink_200");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 200 Potions d'XP");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=200)}}class Kf extends d{constructor(){super(...arguments);e(this,"name","Ça se boit bien finalement");e(this,"id","drink_500");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 500 Potions d'XP");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=500)}}class Gf extends d{constructor(){super(...arguments);e(this,"name","Les potions donnent des aiiiiles !");e(this,"id","drink_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 1000 Potions d'XP");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=1e3)}}class Vf extends d{constructor(){super(...arguments);e(this,"name","À deux doigts de vomir");e(this,"id","drink_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 2000 Potions d'XP");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=2e3)}}class zf extends d{constructor(){super(...arguments);e(this,"name","Alcoolique");e(this,"id","drink_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 5000 Potions d'XP");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Alcoolique);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=5e3)}}class Xf extends d{constructor(){super(...arguments);e(this,"name","C'est sympa ce ptit jeu");e(this,"id","chest_open_50");e(this,"rank",l.RANKS.COMMON);e(this,"description","Ouvrir 50 Coffres");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=50)}}class Zf extends d{constructor(){super(...arguments);e(this,"name","T'as enfin eu un truc intéressant ?");e(this,"id","chest_open_150");e(this,"rank",l.RANKS.RARE);e(this,"description","Ouvrir 150 Coffres");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=150)}}class Jf extends d{constructor(){super(...arguments);e(this,"name","Ça commence à gratter hein ?");e(this,"id","chest_open_500");e(this,"rank",l.RANKS.EPIC);e(this,"description","Ouvrir 500 Coffres");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=500)}}class eh extends d{constructor(){super(...arguments);e(this,"name","LAISSEZ-MOI OUVRIR DES COFFRES !");e(this,"id","chest_open_1000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Ouvrir 1000 Coffres");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=1e3)}}class th extends d{constructor(){super(...arguments);e(this,"name","xXFan2GenshinXx");e(this,"id","chest_open_2000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Ouvrir 2000 Coffres");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Gatcha Addict"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=2e3)}}class ah extends d{constructor(){super(...arguments);e(this,"name","Ils font mieux chez Ikea");e(this,"id","craft_20_times");e(this,"rank",l.RANKS.COMMON);e(this,"description","Effectuer 20 crafts");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=20)}}class sh extends d{constructor(){super(...arguments);e(this,"name","Te fais pas mal avec le marteau");e(this,"id","craft_50_times");e(this,"rank",l.RANKS.RARE);e(this,"description","Effectuer 50 crafts");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=50)}}class rh extends d{constructor(){super(...arguments);e(this,"name","Insensible aux échardes on dirait");e(this,"id","craft_200_times");e(this,"rank",l.RANKS.EPIC);e(this,"description","Effectuer 200 crafts");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=200)}}class nh extends d{constructor(){super(...arguments);e(this,"name","Je ne veux pas voir l'état de ton atelier");e(this,"id","craft_500_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Effectuer 500 crafts");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=500)}}class ih extends d{constructor(){super(...arguments);e(this,"name","Mac Gyver");e(this,"id","craft_1000_times");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Effectuer 1000 crafts");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Mac Gyver"]);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=1e3)}}class lh extends d{constructor(){super(...arguments);e(this,"name","Apprenti Gourmand");e(this,"id","craft_10_cooked_meals");e(this,"rank",l.RANKS.COMMON);e(this,"description","Cuisiner 10 plats");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"asset",null);e(this,"title",u.questTitles["Apprenti Gourmand"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=10)}}class dh extends d{constructor(){super(...arguments);e(this,"name","Chef Amateur");e(this,"id","craft_50_cooked_meals");e(this,"rank",l.RANKS.RARE);e(this,"description","Cuisiner 50 plats");e(this,"berry",2e5);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",u.questTitles["Chef Amateur"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=50)}}class oh extends d{constructor(){super(...arguments);e(this,"name","Maître des Saveurs");e(this,"id","craft_100_cooked_meals");e(this,"rank",l.RANKS.EPIC);e(this,"description","Cuisiner 100 plats");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Maître des Saveurs"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=100)}}class ch extends d{constructor(){super(...arguments);e(this,"name","Artiste Culinaire");e(this,"id","craft_250_cooked_meals");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Cuisiner 250 plats");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"asset",null);e(this,"title",u.questTitles["Artiste Culinaire"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=250)}}class uh extends d{constructor(){super(...arguments);e(this,"name","Sultan des Épices");e(this,"id","craft_500_cooked_meals");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Cuisiner 500 plats");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"asset",null);e(this,"title",u.questTitles["Sultan des Épices"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=500)}}class fh extends d{constructor(){super(...arguments);e(this,"name","C'est une bonne situation ça scribe ?");e(this,"id","craft_5_scrolls");e(this,"rank",l.RANKS.COMMON);e(this,"description","Craft 5 Parchemins");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"asset",null);e(this,"title",u.questTitles["Apprenti Scribe"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=5)}}class hh extends d{constructor(){super(...arguments);e(this,"name","Artisan des Runes");e(this,"id","craft_10_scrolls");e(this,"rank",l.RANKS.RARE);e(this,"description","Craft 10 Parchemins");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",u.questTitles["Artisan des Runes"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=10)}}class ph extends d{constructor(){super(...arguments);e(this,"name","Collectionneur des Manuscrits");e(this,"id","craft_20_scrolls");e(this,"rank",l.RANKS.EPIC);e(this,"description","Craft 20 Parchemins");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Collectionneur de Manuscrits"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=20)}}class mh extends d{constructor(){super(...arguments);e(this,"name","Maître des Enluminures");e(this,"id","craft_50_scrolls");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Craft 50 Parchemins");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"asset",null);e(this,"title",u.questTitles["Maître des Enluminures"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=50)}}class yh extends d{constructor(){super(...arguments);e(this,"name","Protecteur du Savoir");e(this,"id","craft_100_scrolls");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Craft 100 Parchemins");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"asset",null);e(this,"title",u.questTitles["Protecteur du Savoir"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=100)}}class gh extends d{constructor(){super(...arguments);e(this,"name","Egoïste...");e(this,"id","crew_10_percent");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être à 10% d'XP pour l'équipage pendant 3 mois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles.Egoïste);e(this,"badge",u.BadgeList.selfish);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.timeAt10Percent>=90)}}class wh extends d{constructor(){super(...arguments);e(this,"name","Merci bien camarade !");e(this,"id","crew_90_percent");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être à 90% d'XP pour l'équipage pendant 3 mois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles.Camarade);e(this,"badge",u.BadgeList.camarade);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.timeAt90Percent>=90)}}class _h extends d{constructor(){super(...arguments);e(this,"name","Vaut mieux ça que perdre non ?");e(this,"id","draw_100");e(this,"rank",l.RANKS.COMMON);e(this,"description","Faire 100 égalités");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=100)}}class bh extends d{constructor(){super(...arguments);e(this,"name","Tu as trouvé ton rival");e(this,"id","draw_300");e(this,"rank",l.RANKS.RARE);e(this,"description","Faire 300 égalités");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=300)}}class Sh extends d{constructor(){super(...arguments);e(this,"name","Rathon c'est toi ?");e(this,"id","draw_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Faire 1000 égalités");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=1e3)}}class Mh extends d{constructor(){super(...arguments);e(this,"name","Tu te bats contre un mur ou quoi ?");e(this,"id","draw_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 2000 égalités");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=2e3)}}class kh extends d{constructor(){super(...arguments);e(this,"name","De vrais jumeaux");e(this,"id","draw_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Faire 5000 égalités");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Égalitaire);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=5e3)}}class vh extends d{constructor(){super(...arguments);e(this,"name","Y'a un truc que t'as pas compris ?");e(this,"id","edito_read_100");e(this,"rank",l.RANKS.EPIC);e(this,"description","Lire 100 fois l'édito en une journée");e(this,"berry",25e4);e(this,"xp",25e3);e(this,"secret",!0);e(this,"crew",!1);e(this,"daily",!1);e(this,"title",u.questTitles.Culturé);e(this,"badge",null);e(this,"asset",u.profileAssets.edito);e(this,"isFactionBadge",!1);e(this,"onUserQuestMetaUpdate",s=>s.edito.readToday>=100)}}class Rh extends d{constructor(){super(...arguments);e(this,"name","Une fois, pas deux");e(this,"id","everyone");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Tenter de tag everyone");e(this,"berry",-1e6);e(this,"xp",-5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.tagEveryone)}}class Ch extends d{constructor(){super(...arguments);e(this,"name","Emoji Diable");e(this,"id","double_six");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 50 fois un double six");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"badge",u.BadgeList.doublesix);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.double_six>=50)}}class Uh extends d{constructor(){super(...arguments);e(this,"name","Pas de chance ^^");e(this,"id","draw_double_six");e(this,"rank",l.RANKS.RARE);e(this,"description","Faire une fois une égalité en double 6");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.drawDoubleSix>=1)}}class xh extends d{constructor(){super(...arguments);e(this,"name","Jamais 6 sans 7");e(this,"id","seven_quitte_ou_double");e(this,"rank",l.RANKS.MYTHIC);e(this,"description",'Gagner 7 fois de suite "Doubles" au Quitte ou Double');e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"badge",u.BadgeList.chance);e(this,"title",u.questTitles.Chanceux);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.sevenQuitteOuDouble>=1)}}class Bh extends d{constructor(){super(...arguments);e(this,"name","Le 5 à la suite");e(this,"id","win_5_in_row");e(this,"rank",l.RANKS.EPIC);e(this,"description","Gagner aux 5 jeux du casino à la suite");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const r=s.lastGames.slice(0,5);return r.length<5||La(r,n=>n.gameType).length<5?!1:r.reduce((n,i)=>n+i.endState,0)===5})}}class Oh extends d{constructor(){super(...arguments);e(this,"name","Le 5 à la suite, mais dans l'autre sens");e(this,"id","lose_5_in_row");e(this,"rank",l.RANKS.EPIC);e(this,"description","Perdre aux 5 jeux du casino à la suite");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const r=s.lastGames.slice(0,5);return r.length!==5||La(r,n=>n.gameType).length<5?!1:r.reduce((n,i)=>n+i.endState,0)===-5})}}class Dh extends d{constructor(){super(...arguments);e(this,"name","Jacques le noir");e(this,"id","ten_black_jack");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 10 fois BlackJack");e(this,"berry",5e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"badge",u.BadgeList["black-jack"]);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.black_jack>=10)}}class Ah extends d{constructor(){super(...arguments);e(this,"name","La feuille enveloppe la pierre ! T'es sûr ?");e(this,"id","paper_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Papier au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Papyrus);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="paper"&&s.rps.nb>=100)}}class Nh extends d{constructor(){super(...arguments);e(this,"name","On fait la paire !");e(this,"id","scissor_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Ciseaux au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Couturier);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="scissor"&&s.rps.nb>=100)}}class $h extends d{constructor(){super(...arguments);e(this,"name","Golem");e(this,"id","rock_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Pierre au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Golem);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="rock"&&s.rps.nb>=100)}}class Eh extends d{constructor(){super(...arguments);e(this,"name","LE NEUF ET LE HUIT !!!");e(this,"id","guess_in_one");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Deviner le Juste Prix en un coup");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.guessInOne>=1)}}class Fh extends d{constructor(){super(...arguments);e(this,"name","Sataniste");e(this,"id","bet_666_50_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Miser 666 Berry au moins une fois par jour pendant 1 mois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"title",u.questTitles.Démon);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"badge",null);e(this,"asset",u.profileAssets.satan);e(this,"onUserQuestMetaUpdate",s=>s.bet666.amount>=30)}}class Ih extends d{constructor(){super(...arguments);e(this,"name","Jour, Nuit");e(this,"id","win_lose_10_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description",'Faire un enchaînement "Victoire/Défaite" 10 fois de suite');e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const r=s.lastGames;if(r.length!==20)return!1;for(let n=0;n<r.length;n++)if(n%2===0&&r[n].endState!==1||n%2!==0&&r[n].endState!==-1)return!1;return!0})}}class Yh extends d{constructor(){super(...arguments);e(this,"name","Explorateur novice");e(this,"id","finish_10_raids");e(this,"rank",l.RANKS.COMMON);e(this,"description","Réussir 10 expéditions");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=10)}}class Lh extends d{constructor(){super(...arguments);e(this,"name","Aventurier intrépide");e(this,"id","finish_25_raids");e(this,"rank",l.RANKS.RARE);e(this,"description","Réussir 25 expéditions");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=25)}}class Ph extends d{constructor(){super(...arguments);e(this,"name","Conquérant des terres");e(this,"id","finish_50_raids");e(this,"rank",l.RANKS.EPIC);e(this,"description","Réussir 50 expéditions");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=50)}}class Th extends d{constructor(){super(...arguments);e(this,"name","Pionnier des secrets");e(this,"id","finish_100_raids");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Réussir 100 expéditions");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=100)}}class jh extends d{constructor(){super(...arguments);e(this,"name","Légende vivante");e(this,"id","finish_200_raids");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Réussir 200 expéditions");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Légende vivante"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=200)}}class Qh extends d{constructor(){super(...arguments);e(this,"name","Vif");e(this,"id","random_message_20");e(this,"rank",l.RANKS.COMMON);e(this,"description","Récupérer 20 Messages aléatoires");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=20)}}class Hh extends d{constructor(){super(...arguments);e(this,"name","Lucky Luke");e(this,"id","random_message_50");e(this,"rank",l.RANKS.RARE);e(this,"description","Récupérer 50 Messages aléatoires");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=50)}}class qh extends d{constructor(){super(...arguments);e(this,"name","Rapide");e(this,"id","random_message_100");e(this,"rank",l.RANKS.EPIC);e(this,"description","Récupérer 100 Messages aléatoires");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=100)}}class Wh extends d{constructor(){super(...arguments);e(this,"name","Et Furieux");e(this,"id","random_message_200");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Récupérer 200 Messages aléatoires");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=200)}}class Kh extends d{constructor(){super(...arguments);e(this,"name","Ka-Chow");e(this,"id","random_message_500");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Récupérer 500 Messages aléatoires");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Flash Mc Queen"]);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=500)}}class Gh extends d{constructor(){super(...arguments);e(this,"name","Collabo");e(this,"id","collabo");e(this,"rank",l.RANKS.COMMON);e(this,"description","Report une personne au staff");e(this,"berry",1e4);e(this,"xp",5e3);e(this,"secret",!0);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.reportedSomeone)}}class Vh extends d{constructor(){super(...arguments);e(this,"name","Bienvenue sur OPFR");e(this,"id","send_100_msg");e(this,"rank",l.RANKS.COMMON);e(this,"description","Envoyer 100 messages");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=100)}}class zh extends d{constructor(){super(...arguments);e(this,"name","Une vraie pipelette");e(this,"id","send_1000_msg");e(this,"rank",l.RANKS.RARE);e(this,"description","Envoyer 1 000 messages");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=1e3)}}class Xh extends d{constructor(){super(...arguments);e(this,"name","Faites le taire ");e(this,"id","send_25000_msg");e(this,"rank",l.RANKS.EPIC);e(this,"description","Envoyer 25 000 messages");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=25e3)}}class Zh extends d{constructor(){super(...arguments);e(this,"name","Tu sors de chez toi des fois ?");e(this,"id","send_100000_msg");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Envoyer 100 000 messages");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=1e5)}}class Jh extends d{constructor(){super(...arguments);e(this,"name","J'ai pas les mots... mais toi si !");e(this,"id","send_200000_msg");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Envoyer 200 000 messages");e(this,"berry",1e8);e(this,"xp",25e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",u.questTitles.Spammeur);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=2e5)}}class ep extends d{constructor(){super(...arguments);e(this,"name","T'as reçu ton argent de poche ?");e(this,"id","spend_shop_5m");e(this,"rank",l.RANKS.COMMON);e(this,"description","Dépenser 5 000 000 Berrys dans la boutique");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e6)}}class tp extends d{constructor(){super(...arguments);e(this,"name","Tu t'es fait plaisir !");e(this,"id","spend_shop_50m");e(this,"rank",l.RANKS.RARE);e(this,"description","Dépenser 50 000 000 Berrys dans la boutique");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e7)}}class ap extends d{constructor(){super(...arguments);e(this,"name","C'était les soldes j'espère !");e(this,"id","spend_shop_500m");e(this,"rank",l.RANKS.EPIC);e(this,"description","Dépenser 500 000 000 Berrys dans la boutique");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e8)}}class sp extends d{constructor(){super(...arguments);e(this,"name","Paré pour la Fashion Week");e(this,"id","spend_shop_5ml");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Dépenser 5 000 000 000 Berrys dans la boutique");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e9)}}class rp extends d{constructor(){super(...arguments);e(this,"name","Fashion Viktim");e(this,"id","spend_shop_50ml");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Dépenser 50 000 000 000 Berrys dans la boutique");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",u.questTitles["Fashion Viktim"]);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e10)}}class np extends d{constructor(){super(...arguments);e(this,"name","On commence à se connaître");e(this,"id","voice_1_hours");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se connecter 10h en vocal");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*10)}}class ip extends d{constructor(){super(...arguments);e(this,"name","Je sais tout de toi");e(this,"id","voice_10_hours");e(this,"rank",l.RANKS.RARE);e(this,"description","Se connecter 25h en vocal");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*25)}}class lp extends d{constructor(){super(...arguments);e(this,"name","T'as pas soif ?");e(this,"id","voice_250_hours");e(this,"rank",l.RANKS.EPIC);e(this,"description","Se connecter 250h en vocal");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*250)}}class dp extends d{constructor(){super(...arguments);e(this,"name","Ok Socrate");e(this,"id","voice_2500_hours");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Se connecter 2500h en vocal");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*2500)}}class op extends d{constructor(){super(...arguments);e(this,"name","Elle ressemble à quoi la lumière du soleil ?");e(this,"id","voice_5000_hours");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Se connecter 5000h en vocal");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Ermite);e(this,"badge",u.BadgeList.ermite);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*5e3)}}class cp extends d{constructor(){super(...arguments);e(this,"name","Stagiaire");e(this,"id","work_100");e(this,"rank",l.RANKS.COMMON);e(this,"description","Travailler 100 fois");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=100)}}class up extends d{constructor(){super(...arguments);e(this,"name","Alternant");e(this,"id","work_300");e(this,"rank",l.RANKS.RARE);e(this,"description","Travailler 300 fois");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=300)}}class fp extends d{constructor(){super(...arguments);e(this,"name","Smicard");e(this,"id","work_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Travailler 1000 fois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=1e3)}}class hp extends d{constructor(){super(...arguments);e(this,"name","Communiste");e(this,"id","work_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Travailler 2000 fois");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=2e3)}}class pp extends d{constructor(){super(...arguments);e(this,"name","Esclave");e(this,"id","work_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Travailler 5000 fois");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Esclave);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=5e3)}}class mp extends d{constructor(){super(...arguments);e(this,"name","Timide");e(this,"id","write_10_chats");e(this,"rank",l.RANKS.COMMON);e(this,"description","Écrire dans 10 chats différents");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=10)}}class yp extends d{constructor(){super(...arguments);e(this,"name","Curieux");e(this,"id","write_20_chats");e(this,"rank",l.RANKS.RARE);e(this,"description","Écrire dans 20 chats différents");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=20)}}class gp extends d{constructor(){super(...arguments);e(this,"name","Voyeur");e(this,"id","write_50_chats");e(this,"rank",l.RANKS.EPIC);e(this,"description","Écrire dans 50 chats différents");e(this,"berry",5e5);e(this,"xp",5e4);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=50)}}class wp extends d{constructor(){super(...arguments);e(this,"name","Philanthrope");e(this,"id","write_100_chats");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Écrire dans 100 chats différents");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=100)}}class _p extends d{constructor(){super(...arguments);e(this,"name","Explorateur");e(this,"id","write_200_chats");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Écrire dans 200 chats différents");e(this,"berry",1e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Explorateur);e(this,"badge",u.BadgeList.exploration);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=200)}}const bp=async(t,a,s,{berry:r,xp:n})=>{const i=await gs(a).then(E=>E.populate("user","faction")),o=ms(i),f=_n(i,i.user.faction),{badge:m,isFactionBadge:_,title:B,rank:Y,name:H,description:j0,daily:sa,secret:Q0}=t;return s.Image().setImageName(`quest_success_${Y.id}`).setDimensions(2080,636).draw(),m?s.Image().setImageName(u.progressiveBadgeTypeGuard(m)?`cropped_badge_${m.img}_${Y.id}`:`cropped_badge_${m.img}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():_&&i.user.faction!=="citizen"?s.Image().setImageName(`cropped_badge_${i.user.faction}_${Y.id}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():s.Image().setImageName(`badge_default_${Y.id}`).setScale(2).setOrigin(j.CanvasOrigin.CENTER).setPosition(370,318).draw(),s.Text(sa?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(Y.color).draw(),s.Text(H).setPosition(739,325).setOrigin(j.CanvasOrigin.BOTTOM_LEFT).setFont("poppins",H.length>=35?65-(H.length-35):65).draw(),s.Text(Q0?"Succès caché":j0).setPosition(739,360).setFont("poppins_italic",35).draw(),s.Text(`Récompenses: ${Qt(r)}${sa&&o>1?` (+${Qt(r*(o-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(j.CanvasOrigin.LEFT).draw(r!==0).next((E,L)=>j.nextAllToXAxis(E.Image(),L)).setImageName("quest_berry").setDimensions(50,79).draw(r!==0).next((E,L)=>j.nextAllToXAxis(E.Text(` / ${Qt(n)}${sa&&o>1?` (+${Qt(n*(o-1))})`:""} `),L)).draw(n!==0).next((E,L)=>j.nextAllToXAxis(E.Image(),L)).setImageName("quest_xp").setDimensions(57,59).draw(n!==0).next((E,L)=>j.nextAllToXAxis(E.Text(` combo x${o}`),L)).draw(sa&&o>1).next((E,L)=>j.nextAllToXAxis(E.Text(" et la possibilité "),L)).draw(_&&i.user.faction==="citizen").next((E,L)=>j.nextAllToXAxis(E.Text("de choisir ta faction"),L)).setFont("poppins_bold",35).draw(_&&i.user.faction==="citizen").next((E,L)=>j.nextAllToXAxis(E.Text(" et le titre "),L)).setFont("poppins",35).draw(!!B||_&&i.user.faction!=="citizen").next((E,L)=>j.nextAllToXAxis(E.Text((B==null?void 0:B.name)??""),L)).setFont("poppins_bold",35).setColor((B==null?void 0:B.rank.color)??"white").draw(!!B).next((E,L)=>j.nextAllToXAxis(E.Text((f==null?void 0:f.name)??""),L)).setColor((f==null?void 0:f.rank.color)??"white").draw(_&&!!f),await s.encode("webp")},Sp=10,Mp=1e7,kp=100,vp=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],Rp={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>"}},Cp=(t,a)=>{const s=t.badge,r=t.isFactionBadge;return s?u.progressiveBadgeTypeGuard(s)?s.emojis[s.isProgressive.findIndex(n=>n===t.rank.id)]:s.emojis:r?Rp.factions[`b_${a}_${t.rank.id}`]:""},Up=t=>{const[a,s]=t.split("_"),r=Object.values(u.BadgeList).find(n=>n.id===a);if(r)return u.progressiveBadgeTypeGuard(r)?r.emojis[r.isProgressive.findIndex(n=>n===s)]:r.emojis},xp=async(t,a)=>{const s=Object.values(Va).find(r=>new r().id===t);if(s){const r=new s,n=await r.complete(a,{});n&&le("userDaily",a,[[r,n]])}},Bp=async(t,a)=>{const s=Object.values(Gc).find(r=>new r().id===t);if(s){const r=new s,n=await r.complete(a,{});n&&le("crewDaily",a,[[r,n]])}};class Op extends d{constructor(){super(...arguments);e(this,"name","Jeune étudiant");e(this,"id","drink_50_alcohols");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 50 alcools");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Jeune étudiant"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=50)}}class Dp extends d{constructor(){super(...arguments);e(this,"name","Habitué des bars");e(this,"id","drink_250_alcohols");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 250 alcools");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Habitué des bars"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=250)}}class Ap extends d{constructor(){super(...arguments);e(this,"name","Alcoolique notoire");e(this,"id","drink_500_alcohols");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 500 alcools");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Alcoolique notoire"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=500)}}class Np extends d{constructor(){super(...arguments);e(this,"name","Ivrogne");e(this,"id","drink_1000_alcohols");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 1000 alcools");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Ivrogne);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=1e3)}}class $p extends d{constructor(){super(...arguments);e(this,"name","Breton");e(this,"id","drink_2000_alcohols");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 2000 alcools");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Breton);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=2e3)}}class Ep extends d{constructor(){super(...arguments);e(this,"name","Buveur de Rhum");e(this,"id","drink_10_rhum");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Rhums");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=10)}}class Fp extends d{constructor(){super(...arguments);e(this,"name","Amateur de Rhum");e(this,"id","drink_100_rhum");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Rhums");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=100)}}class Ip extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Rhum");e(this,"id","drink_250_rhum");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Rhums");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=250)}}class Yp extends d{constructor(){super(...arguments);e(this,"name","Rhumologue");e(this,"id","drink_500_rhum");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Rhums");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Rhumologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=500)}}class Lp extends d{constructor(){super(...arguments);e(this,"name","Dieu du Rhum");e(this,"id","drink_1000_rhum");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Rhums");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu du Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=1e3)}}class Pp extends d{constructor(){super(...arguments);e(this,"name","Buveur de Bière");e(this,"id","drink_10_beer");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Bières");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Bière"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=10)}}class Tp extends d{constructor(){super(...arguments);e(this,"name","Amateur de Bière");e(this,"id","drink_100_beer");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Bières");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=100)}}class jp extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Bière");e(this,"id","drink_250_beer");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Bières");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=250)}}class Qp extends d{constructor(){super(...arguments);e(this,"name","Bièrologue");e(this,"id","drink_500_beer");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Bières");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Bièrologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=500)}}class Hp extends d{constructor(){super(...arguments);e(this,"name","Dieu de la Bière");e(this,"id","drink_1000_beer");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Bières");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu de la Bière"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=1e3)}}class qp extends d{constructor(){super(...arguments);e(this,"name","Buveur de Vin");e(this,"id","drink_10_wine");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Vins");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=10)}}class Wp extends d{constructor(){super(...arguments);e(this,"name","Amateur de Vin");e(this,"id","drink_100_wine");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Vins");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=100)}}class Kp extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Vin");e(this,"id","drink_250_wine");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Vins");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=250)}}class Gp extends d{constructor(){super(...arguments);e(this,"name","Vinologue");e(this,"id","drink_500_wine");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Vins");e(this,"berry",1e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Vinologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=500)}}class Vp extends d{constructor(){super(...arguments);e(this,"name","Dieu du Vin");e(this,"id","drink_1000_wine");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Vins");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu du Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=1e3)}}const ts=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:Yf,Bet666:Fh,BetMinValue:Ff,Birthday:Qf,BotPing:Hf,ChestOpen1000Quest:eh,ChestOpen150Quest:Zf,ChestOpen2000Quest:th,ChestOpen500Quest:Jf,ChestOpen50Quest:Xf,Craft1000Times:ih,Craft100CookedMeals:oh,Craft100Scrolls:yh,Craft10CookedMeals:lh,Craft10Scrolls:hh,Craft200Times:rh,Craft20Scrolls:ph,Craft20Times:ah,Craft250CookedMeals:ch,Craft500CookedMeals:uh,Craft500Times:nh,Craft50CookedMeals:dh,Craft50Scrolls:mh,Craft50Times:sh,Craft5Scrolls:fh,Crew10Percent:gh,Crew90Percent:wh,DoubleSix:Ch,Draw1000Quest:Sh,Draw100Quest:_h,Draw2000Quest:Mh,Draw300Quest:bh,Draw5000Quest:kh,DrawDoubleSix:Uh,Drink1000Alcohols:Np,Drink1000Beer:Hp,Drink1000Quest:Gf,Drink1000Rhum:Lp,Drink1000Wine:Vp,Drink100Beer:Tp,Drink100Rhum:Fp,Drink100Today:qf,Drink100Wine:Wp,Drink10Beer:Pp,Drink10Rhum:Ep,Drink10Wine:qp,Drink2000Alcohols:$p,Drink2000Quest:Vf,Drink200Quest:Wf,Drink250Alcohols:Dp,Drink250Beer:jp,Drink250Rhum:Ip,Drink250Wine:Kp,Drink5000Quest:zf,Drink500Alcohols:Ap,Drink500Beer:Qp,Drink500Quest:Kf,Drink500Rhum:Yp,Drink500Wine:Gp,Drink50Alcohols:Op,Edito:vh,Everyone:Rh,Finish100Raids:Th,Finish10Raids:Yh,Finish200Raids:jh,Finish25Raids:Lh,Finish50Raids:Ph,GuessInOne:Eh,Lose10M:jf,LoseAll5GamesInRow:Oh,LoseEverything:If,Paper100:Ah,RandomMessage100Quest:qh,RandomMessage200Quest:Wh,RandomMessage20Quest:Qh,RandomMessage500Quest:Kh,RandomMessage50Quest:Hh,Report:Gh,Rock100:$h,Scissor100:Nh,SevenQuitteOuDouble:xh,SpendShop500M:ap,SpendShop50M:tp,SpendShop50Ml:rp,SpendShop5M:ep,SpendShop5Ml:sp,TenBlackJack:Dh,TotalBet10M:Pf,TotalBet1Md:Tf,Voice10Hours:np,Voice2500Hours:dp,Voice250Hours:lp,Voice25Hours:ip,Voice5000Hours:op,WinAll5GamesInRow:Bh,WinLose10:Ih,WinOn10MBet:Lf,Work1000Quest:fp,Work100Quest:cp,Work2000Quest:hp,Work300Quest:up,Work5000Quest:pp,Write100Chats:wp,Write10Chats:mp,Write200Chats:_p,Write20Chats:yp,Write50Chats:gp,send100000Messages:Zh,send1000Messages:zh,send100Messages:Vh,send200000Messages:Jh,send25000Messages:Xh},Symbol.toStringTag,{value:"Module"}));class zp extends d{constructor(){super(...arguments);e(this,"name","T'as pas oublié de ranger ta chambre ?");e(this,"id","daily_all");e(this,"rank",l.RANKS.RARE);e(this,"description","Finir les quêtes journalières");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*12500);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1250);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestUpdate",s=>{for(const[r,n]of Object.entries(s.daily))if(!be(n,new Date)&&this.id!==r)return!1;return Object.keys(s.daily).filter(r=>r!==this.id).length>=5})}}const as=Object.freeze(Object.defineProperty({__proto__:null,DailyAll:zp},Symbol.toStringTag,{value:"Module"})),Xp=[...Object.values(Ja),...Object.values(es),...Object.values(Za),...Object.values(ts),...Object.values(as),...Object.values(Xa),...Object.values(za),...Object.values(Va)],Zp=async t=>{var s;const a=[];for(const r of Object.values(Ja)){const n=new r;if((s=n.onUserMetaUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{_userMeta:t});i&&a.push([n,i])}}a.length>0&&le("userMetaUpdate",t.user._id,a)},Jp=async t=>{var s;const a=[];for(const r of Object.values(ts)){const n=new r;if((s=n.onUserQuestMetaUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&le("userQuestMetaUpdate",t.user._id,a)},em=["raidUnlock"],Hr=new Ss.EventEmitter,dt=(t,a,s)=>{Hr.emit(t,a,s)},tm=t=>{for(const a of em)Hr.on(a,(s,r)=>{t(a,s,r)})},am=async t=>{var s,r;const a=await ws(t.user._id);l.getCurrentLevel(t.xp.amount)>=30&&!wt(a,"training")&&(await bt(a.user._id,"training"),dt("raidUnlock",t.user._id,"training")),(((r=(s=a.obtainedRewards.training)==null?void 0:s.filter(n=>n.startsWith("end_")))==null?void 0:r.length)??0)>=4&&!wt(a,"resources")&&(await bt(a.user._id,"resources"),dt("raidUnlock",t.user._id,"resources"))},sm=async t=>{const a=await ws(t.user._id);La(t.equipmentList,s=>s.id).map(s=>S.findEquipment(s)).filter(s=>s.panoply==="adventurer").length===6&&!wt(a,"pirate_cave")&&(await bt(a.user._id,"pirate_cave"),dt("raidUnlock",t.user._id,"pirate_cave")),(t.itemList.get("map_fragment")??0)>=5&&!wt(a,"mysterious_island")&&(await bt(a.user._id,"mysterious_island"),await xe(t.user._id,"map_fragment",5),dt("raidUnlock",t.user._id,"mysterious_island"))},ss=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},tagEveryone:{type:Boolean,default:!1},botPing:{type:Number,default:0},writeDifferentChat:[String],messageSent:{type:Number,default:0},totalMinutesInVoice:{type:Number,default:0},hadMoreThanZeroBerry:{type:Boolean,default:!1},totalBet:{type:Number,default:0},edito:{readToday:{type:Number,default:0},lastTimeRead:{type:Date,default:new Date}},double_six:{type:Number,default:0},lastGames:{type:[{gameType:String,endState:Number}],default:[]},black_jack:{type:Number,default:0},rps:{type:{lastRps:String,nb:Number},default:{lastRps:"paper",nb:-1}},totalSpentInShop:{type:Number,default:0},work:{type:Number,default:0},draw:{type:Number,default:0},bet666:{amount:{type:Number,default:0},last:{type:Date,default:new Date(0)}},betMin:{type:Boolean,default:!1},loseEverything:{type:Boolean,default:!1},bet10M:{type:Boolean,default:!1},winBet10M:{type:Boolean,default:!1},lose10M:{type:Boolean,default:!1},items:{bottle:{total:{type:Number,default:0},today:{type:Number,default:0},last:{type:Date,default:new Date}},chest:{total:{type:Number,default:0}},alcohols:{wines:{type:Number,default:0},rhums:{type:Number,default:0},beers:{type:Number,default:0},total:{type:Number,default:0}}},randomMessage:{type:Number,default:0},timeAt10Percent:{type:Number,default:0},timeAt90Percent:{type:Number,default:0},sevenQuitteOuDouble:{type:Number,default:0},drawDoubleSix:{type:Number,default:0},guessInOne:{type:Number,default:0},crafts:{cookedMeal:{type:Number,default:0},scrolls:{type:Number,default:0},total:{type:Number,default:0}},raidFinished:{type:Number,default:0},reportedSomeone:{type:Boolean,default:!1}});ss.index({user:1}),ss.post("findOneAndUpdate",async function(t){await Jp(t)});const de=((Kn=h.models)==null?void 0:Kn.UserQuestMeta)||h.model("UserQuestMeta",ss),v=async(t,a)=>{await de.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},rm=async t=>{await v(t,{$inc:{work:1}})},nm=async t=>{await v(t,{$set:{hadMoreThanZeroBerry:!0}})},im=async t=>{await v(t,{$set:{sevenQuitteOuDouble:!0}})},lm=async t=>{await v(t,{$inc:{black_jack:1}})},dm=async(t,a,s)=>{await v(t,{$push:{lastGames:{$each:[{gameType:a,endState:s}],$position:0,$slice:20}}})},om=async t=>{await v(t,{$inc:{draw:1}})},cm=async t=>{const a=new Date;a.setDate(a.getDate()-1),a.setHours(0,0,0,0);const s=new Date;s.setDate(s.getDate()-1),s.setHours(23,59,59,999),await de.updateOne({user:t,"bet666.last":{$gte:a,$lte:s}},{$inc:{"bet666.amount":1},$set:{"bet666.last":new Date}}),await de.updateOne({user:t,"bet666.last":{$lt:a}},{$set:{"bet666.last":new Date,"bet666.amount":1}})},um=async(t,a)=>{await v(t,{$inc:{totalBet:a}})},fm=async(t,a)=>{await v(t,[{$set:{"rps.nb":{$cond:{if:{$eq:["$rps.lastRps",a]},then:{$add:["$rps.nb",1]},else:1}},"rps.lastRps":a}}])},qr=async(t,a)=>{await v(t,{$inc:{totalSpentInShop:a}})},hm=async(t,a,s)=>{const r=S.findEntity(s);await v(t,{$inc:{"crafts.cookedMeal":S.isCookedMeal(r)?a:0,"crafts.scrolls":S.isScrollItem(r)?a:0,"crafts.total":a}})},pm=async t=>{await v(t,{$set:{reportedSomeone:!0}})},mm=async t=>{await v(t,{$inc:{randomMessage:1}})},ym=async t=>{await v(t,{$inc:{botPing:1}})},gm=async t=>{await v(t,{$inc:{guessInOne:1}})},wm=async t=>{await v(t,{$set:{hasCelebrateBirthday:!0}})},_m=async t=>{await v(t,{$inc:{double_six:1}})},bm=async t=>{await v(t,{$inc:{drawDoubleSix:1}})},Sm=async(t,a)=>{a?await v(t,{$set:{timeAt10Percent:0}}):await v(t,{$inc:{timeAt10Percent:1}})},Mm=async(t,a)=>{a?await v(t,{$set:{timeAt90Percent:0}}):await v(t,{$inc:{timeAt90Percent:1}})},km=async t=>{await v(t,{$set:{tagEveryone:!0}})},vm=async t=>{await v(t,{$set:{betMin:!0}})},Wr=async t=>{await v(t,{$set:{loseEverything:!0}})},Rm=Object.freeze(Object.defineProperty({__proto__:null,addTotalMinutesInVoice:async(t,a)=>{await v(t,{$inc:{totalMinutesInVoice:a}})},addWrittenTextChannel:async(t,a)=>{await v(t,{$addToSet:{writeDifferentChat:a}})},bet666:cm,botPingIncrement:ym,drawDoubleSix:bm,drawIncrement:om,hadMoreThanZeroBerry:nm,hasBet10M:async t=>{await v(t,{$set:{bet10M:!0}})},hasBetMin:vm,hasCelebrateBirthday:wm,hasGuessInOne:gm,hasLose10M:async t=>{await v(t,{$set:{lose10M:!0}})},hasLoseEverything:Wr,hasReportedSomeone:pm,hasSevenQod:im,hasTagEveryone:km,hasWinBet10M:async t=>{await v(t,{$set:{winBet10M:!0}})},incrementAlcoholDrink:async(t,a,s)=>{await v(t,{$inc:{"items.alcohols.wines":a==="wine"?s:0,"items.alcohols.beers":a==="beer"?s:0,"items.alcohols.rhums":a==="rhum"?s:0,"items.alcohols.total":s}})},incrementBottleUsedToday:async(t,a)=>{const s=new Date;s.setHours(0,0,0,0),await de.updateOne({user:t,"items.bottle.last":{$gte:s}},{$inc:{"items.bottle.today":a},$set:{"items.bottle.last":new Date}}),await de.updateOne({user:t,"items.bottle.last":{$lt:s}},{$set:{"items.bottle.last":new Date,"items.bottle.today":a}})},incrementBottleUsedTotal:async(t,a)=>{await v(t,{$inc:{"items.bottle.total":a}})},incrementChestOpenedTotal:async(t,a)=>{await v(t,{$inc:{"items.chest.total":a}})},incrementMessageSend:async t=>{await v(t,{$inc:{messageSent:1}})},randomMessageIncrement:mm,readEdito:async t=>{const a=new Date;a.setHours(0,0,0,0),await de.updateOne({user:t,"edito.lastTimeRead":{$gte:a}},{$inc:{"edito.readToday":1},$set:{"edito.lastTimeRead":new Date}}),await de.updateOne({user:t,"edito.lastTimeRead":{$lt:a}},{$set:{"edito.lastTimeRead":new Date,"edito.readToday":1}})},updateCrafts:hm,updateCrew10Percent:Sm,updateCrew90Percent:Mm,updateLastGames:dm,updateRps:fm,updateTotalBet:um,updateTotalSpentInShop:qr,winBlackjack:lm,winDoubleSix:_m,workIncrement:rm},Symbol.toStringTag,{value:"Module"})),We={multiplier:{type:Number,default:0},origin:String,expireAt:{type:Date,default:null},startAt:{type:Date,default:null}},ot=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},premium:{type:Date,default:null},booster:{type:Boolean,default:!1},berry:{type:Number,default:0,index:!0},xp:{lastMessageWithXp:{type:Date,default:new Date},voice:{lastConnection:{type:Date,default:new Date},minutesInVoiceToday:{type:Number,default:0}},amount:{type:Number,default:0,index:!0},boost:{type:Date,default:null}},buffs:{cooldown:{casino:{type:[We],default:[]},work:{type:[We],default:[]}},berry:{work:{type:[We],default:[]},global:{type:[We],default:[]}},drop:{work:{type:[We],default:[]}},xp:{global:{type:[We],default:[]}}},hp:{type:Number,default:100},workUnluckyStreak:{type:Number,default:0},characteristics:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}},resetCharacteristics:{free:{type:Boolean,default:!0},nextAvailable:{type:Date,default:null}},scrolls:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}}});ot.index({user:1}),ot.index({"xp.amount":-1}),ot.index({berry:-1}),ot.post("findOneAndUpdate",async function(t){await am(t),await Zp(t),t.berry===0&&await Wr(t.user._id),t.hp<=0&&await an(t.user._id)});const Ue=((Gn=h.models)==null?void 0:Gn.UserMeta)||h.model("UserMeta",ot),Kr=async t=>await Ue.create({user:t}),ct=async(t,a={})=>{const s=await Ue.findOne({user:t},a);return s||await Kr(t)},Cm=(t,a)=>Ue.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0}),F=async(t,a)=>{await Ue.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0})},Gr=async(t,a)=>{await F(t,[{$set:{berry:{$max:[{$add:["$berry",a]},0]}}}])},Um=async(t,a)=>{await F(t,{$set:{premium:a}})},xm=async(t,a)=>{await F(t,{$set:{booster:a}})},Bm=async(t,a)=>{const{xp:{boost:s}}=await Cm(t,[{$set:{"xp.boost":{$cond:{if:{$or:[{$not:"$xp.boost"},{$lt:["$xp.boost",new Date]}]},then:{$add:[new Date,a]},else:{$add:["$xp.boost",a]}}}}}]);return s},rs=async(t,a)=>{if(Array.isArray(a)){for(const r of a)await rs(t,r);return}const s=S.transformToDBBuff(a);await F(t,[{$set:{[`buffs.${a.target}`]:{$map:{input:`$buffs.${a.target}`,as:"buff",in:{$cond:{if:{$eq:[{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]},a.origin.split("/")[0]]},then:{multiplier:a.multiplier,origin:a.origin,expireAt:s.expireAt?{$cond:{if:{$lt:["$$buff.expireAt",new Date]},then:s.expireAt,else:{$add:["$$buff.expireAt",(a.endIn??0)*60*60*1e3]}}}:null,startAt:{$cond:{if:{$gte:["$$buff.startAt",new Date]},then:"$$buff.startAt",else:{$add:[new Date,(a.startIn??0)*60*60*1e3]}}}},else:"$$buff"}}}}}},{$set:{[`buffs.${a.target}`]:{$cond:{if:{$in:[a.origin.split("/")[0],{$map:{input:`$buffs.${a.target}`,as:"buff",in:{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]}}}]},then:`$buffs.${a.target}`,else:{$concatArrays:[`$buffs.${a.target}`,[{...s}]]}}}}}])},ns=async(t,a)=>{await F(t,{$pull:{[`buffs.${a.target}`]:{origin:a.origin}}})},Om=async(t,a,s,r)=>{const n=S.fromDBToEquipableEquipment(a),i=Sr(Object.values(s)),o=S.allPanoplies.find(_=>_.id===n.panoply);if(!o)return;const f=o.equipments.filter(_=>(i.find(B=>_.id===B.id)||!r&&n.id===_.id)&&(r?n.id!==_.id:!0)).length,m=f===o.equipments.length?o.fullBonus:f>=o.equipments.length/2?o.halfBonus:void 0;o.halfBonus&&"target"in o.halfBonus&&await ns(t,o.halfBonus),o.fullBonus&&"target"in o.fullBonus&&await ns(t,o.fullBonus),m&&"target"in m&&await rs(t,m)},Vr=async(t,a,{userMeta:s,userInventory:r})=>{const n=s??await ct(t,{buffs:0,xp:0}),i=r??await Vt(t,{itemList:0,equipmentList:0}),f=await Be(t,n,i)-n.hp;await F(t,{$set:{hp:n.hp+Math.floor(Math.min(a,f))}})},Dm=async(t,a)=>{await F(t,[{$set:{hp:{$max:[{$add:["$hp",-a]},0]}}}])},Ke=async(t,a)=>{const s=await Be(t);await F(t,[{$set:{hp:{$round:[{$multiply:[{$divide:["$hp",a]},s]},0]}}}])},Am=Object.freeze(Object.defineProperty({__proto__:null,addBerry:Gr,addCharacteristics:async(t,a)=>{const s=await Be(t),r=Object.fromEntries(Object.entries(a).filter(([,n])=>n!==0).map(([n,i])=>[`characteristics.${n}`,i]));await F(t,{$inc:r}),Ke(t,s)},addMinutesInVoiceToday:async(t,a)=>{await F(t,{$inc:{"xp.voice.minutesInVoiceToday":a}})},addScrollCharacteristic:async(t,a)=>{const s=await Be(t),r=Object.fromEntries(Object.entries(a).filter(([,n])=>n!==0).map(([n,i])=>[`scrolls.${n}`,i]));await F(t,{$inc:r}),Ke(t,s)},gainHp:Vr,incrementWorkUnluckyStreak:async t=>{await F(t,{$inc:{workUnluckyStreak:1}})},loseHp:Dm,removeBuff:ns,resetCharacteristics:async(t,a,s)=>{const r=await Be(t,s),n={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};a?await F(t,{$set:{characteristics:n,"resetCharacteristics.free":!1}}):await F(t,{$set:{characteristics:n,"resetCharacteristics.nextAvailable":new Date(Date.now()+30*24*60*60*1e3)},$inc:{berry:-1e8}}),Ke(t,r)},resetMinutesInVoiceToday:async t=>{await F(t,{$set:{"xp.voice.minutesInVoiceToday":0}})},resetWorkUnluckyStreak:async t=>{await F(t,{$set:{workUnluckyStreak:0}})},updateBoost:Bm,updateBooster:xm,updateBuff:rs,updateHp:Ke,updateLastVoiceConnection:async(t,a)=>{await F(t,{$set:{"xp.voice.lastConnection":a}})},updatePanoplyBuff:Om,updatePremium:Um},Symbol.toStringTag,{value:"Module"})),Nm=async t=>{var s;const a=[];for(const r of Object.values(Za)){const n=new r;if((s=n.onUserInventoryUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&le("userInventoryUpdate",t.user._id,a)},is=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},equippedItems:{type:Object,default:{}},equipmentList:{type:[{id:String,seed:Number}],default:[]},itemList:{type:Map,of:Number,default:{}},recipes:{type:[String],default:[]}},{minimize:!1});is.index({user:1}),is.post("findOneAndUpdate",async function(t){await sm(t),await Nm(t)});const ut=((Vn=h.models)==null?void 0:Vn.UserInventory)||h.model("UserInventory",is),oe=async(t,a)=>{await ut.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},ce=async(t,a,s)=>{await oe(t,{$inc:{[`itemList.${a}`]:s}}),await Gt(t,[a])},$m=async(t,a)=>{await oe(t,{$inc:Object.fromEntries(Object.entries(a).filter(([,s])=>(s??0)>0).map(([s,r])=>[`itemList.${s}`,r]))}),await Gt(t,Qa(a).filter(([,s])=>s>0).map(([s])=>s))},xe=async(t,a,s)=>{s!==0&&await oe(t,[{$set:{[`itemList.${a}`]:{$max:[{$add:[`$itemList.${a}`,-s]},0]}}}])},zr=async(t,a,s)=>{await oe(t,{$pull:{equipmentList:{id:a,seed:s}}})},Xr=async(t,a,s,r)=>{s!==0&&(S.isEquipmentId(a)?await zr(t,a,r):await xe(t,a,s))},Em=async(t,a)=>{await oe(t,{$set:{[`itemList.${a}`]:0}})},ls=async(t,a)=>{await oe(t,{$push:{equipmentList:{$each:a}}}),await Gt(t,a.map(s=>s.id))},Fm=Object.freeze(Object.defineProperty({__proto__:null,addEquipments:ls,addInventoryItem:ce,addInventoryItems:$m,craftItem:async(t,a,s,r,n)=>{for(const{itemId:f,size:m}of a)await xe(t,f,m*r);const{itemId:i,size:o}=s;S.isEquipmentId(i)?await ls(t,[{id:i,seed:n}]):await ce(t,i,o*r)},dismantleEntity:async(t,a,s,r,n)=>{await Xr(t,a.id,r,n);for(const{entityId:i,quantity:o}of s)S.isEquipmentId(i)||await ce(t,i,r*o);await xe(t,"tools",1)},enchantItem:async(t,a,s,r)=>{await xe(t,a,r*4),await xe(t,"enchanted_stone",r),await ce(t,s,r)},equip:async(t,a,s)=>{const r=await Be(t);await oe(t,{$set:{[`equippedItems.${a}`]:s}}),await Ke(t,r)},removeAllItemInventory:Em,removeEquipment:zr,removeInventoryEntity:Xr,removeInventoryItem:xe,unequip:async(t,a)=>{const s=await Be(t);await oe(t,{$set:{[`equippedItems.${a}`]:null}}),await Ke(t,s)},unlockRecipe:async(t,a)=>{await oe(t,{$addToSet:{recipes:a}})}},Symbol.toStringTag,{value:"Module"})),Zr=async t=>await ut.create({user:t}),Vt=async(t,a={})=>{const s=await ut.findOne({user:t},a);return s||await Zr(t)},ds=t=>Object.fromEntries(l.CHARACTERISTICS.map(a=>[a,U.getComputedCharacteristicValue(t.characteristics[a])+t.scrolls[a]])),Im=t=>Date.now()-t.xp.lastMessageWithXp.getTime()>60*1e3,os=t=>{const{boost:a}=t.xp;return(a!==null&&Date.now()<a.getTime()?.2:0)+Math.max(t.premium?.5:0,t.booster?.25:0)+t.buffs.xp.global.reduce((s,{expireAt:r,startAt:n,multiplier:i})=>s+((n??new Date)<=new Date&&(!r||!$e(r))?i:0),0)},Ym=t=>{const a=t.trim().length,s=2;return a<10?10*s:a>300?300*s:a*s},Lm=(t,a,s)=>(a*=1+os(t),Math.ceil(a*s)),Pm=(t,a,s)=>{const r=s?1:Jr(t);return a<=0?a:Math.ceil(a*(r||1))},Tm=t=>t.buffs.cooldown.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),jm=t=>t.buffs.drop.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),Qm=t=>t.buffs.berry.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),Jr=t=>t.buffs.berry.global.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),Hm=t=>t.buffs.cooldown.casino.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),Be=async(t,a,s)=>{const r=a??await ct(t,{buffs:0,xp:0}),n=s??await Vt(t,{itemList:0,equipmentList:0});return((ds(r).vitality??0)+Ga(n).vitality)*l.HP_PER_VITALITY+l.DEFAULT_MAX_HP},qm=Object.freeze(Object.defineProperty({__proto__:null,calcBerry:Pm,calcBerryGlobalBuff:Jr,calcBerryWorkBuff:Qm,calcCooldownCasinoBuff:Hm,calcCooldownWorkBuff:Tm,calcDropWorkBuff:jm,calcMessageXp:Ym,calcXp:Lm,calcXpBoost:os,getBerryRank:async t=>(await Ue.aggregate([{$setWindowFields:{sortBy:{berry:-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getGlobalRank:async t=>(await Ue.aggregate([{$setWindowFields:{sortBy:{"xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getMaxHp:Be,getTotalCharacteristics:ds,hasCharacteristicRequirement:async(t,a,s,r)=>{const n=s??await ct(t,{buffs:0,xp:0}),i=r??await Vt(t,{itemList:0,equipmentList:0}),o=ja(ds(n),Ga(i),(f,m)=>f+m);if("sum"in a){let f=0;for(const m of a.characteristics)f+=o[m]??0;return f>=a.sum}else{for(const f of Object.keys(a))if(o[f]<(a[f]??0))return!1;return!0}},hasMalusBuff:t=>{const a=[...t.buffs.xp.global,...t.buffs.berry.global,...t.buffs.berry.work,...t.buffs.cooldown.work,...t.buffs.cooldown.casino,...t.buffs.drop.work];for(const{multiplier:s,startAt:r,expireAt:n}of a)if(s<0&&(!n||!$e(n))&&(r??new Date)<=new Date)return!0;return!1},isCooldownForXpPassed:Im},Symbol.toStringTag,{value:"Module"})),en=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},raid:{classic:{type:Date,default:new Date(0)},special:{type:Date,default:new Date(0)},christmas:{type:Date,default:new Date(0)}},lockUserCommand:{type:Date,default:new Date(0)},commands:{work:{type:Date,default:new Date(0)},dice:{type:Date,default:new Date(0)},qod:{type:Date,default:new Date(0)},guess:{type:Date,default:new Date(0)},blackjack:{type:Date,default:new Date(0)},rps:{type:Date,default:new Date(0)}}});en.index({user:1});const ft=((zn=h.models)==null?void 0:zn.UserCooldown)||h.model("UserCooldown",en),ht=async(t,a)=>{await ft.updateOne({user:t},a,{upsert:!0})},Wm=async(t,a)=>{await ht(t,[{$set:{"raid.special":{$subtract:[{$ifNull:["$raid.special",new Date]},a*3600*1e3]},"raid.classic":{$subtract:[{$ifNull:["$raid.classic",new Date]},a*3600*1e3]},"raid.christmas":{$subtract:[{$ifNull:["$raid.christmas",new Date]},a*3600*1e3]}}}]),await Ka(t,"raid/special",-1*a*3600*1e3),await Ka(t,"raid/classic",-1*a*3600*1e3)},tn=async(t,a,s,r)=>{await ht(t,{$set:{[`raid.${a}`]:new Date(Date.now()+s)}}),r.raid[a]&&await Wa(t,`raid/${a}`,new Date(Date.now()+s))},an=async t=>{await ht(t,{$set:{lockUserCommand:new Date(Date.now()+2*3600*1e3)}}),await Vr(t,1,{})},Km=Object.freeze(Object.defineProperty({__proto__:null,lockUserCommand:an,reduceRaidCooldown:Wm,startRaidCooldown:tn,useCommand:async(t,a,s,r)=>{await ht(t,{$set:{[`commands.${a}`]:new Date(Date.now()+s)}}),r.commands[a]&&await Wa(t,`commands/${a}`,new Date(Date.now()+s))}},Symbol.toStringTag,{value:"Module"})),Gm=["work","rps","blackjack","guess","qod","dice"],sn=async t=>await ft.create({user:t}),Vm=async(t,a={})=>{const s=await ft.findOne({user:t},a);return s||await sn(t)},cs=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},crew:{type:h.Schema.Types.ObjectId,ref:"Crew",required:!0,index:!0},permission:String,percent:Number,lastAllMembersDaily:{type:Date,default:new Date(0)}},{minimize:!1});cs.virtual("inventory",{ref:"Crew",localField:"crew",foreignField:"_id",justOne:!0}),cs.index({user:1});const Ge=((Xn=h.models)==null?void 0:Xn.UserCrew)||h.model("UserCrew",cs),us=async(t,a)=>{await Ge.updateOne({user:t},a,{upsert:!0})},zm=async(t,a)=>{await us(t,{$set:{percent:a}})},rn=async t=>{await us(t,{$set:{lastAllMembersDaily:new Date}})},Xm=Object.freeze(Object.defineProperty({__proto__:null,allMembersDailyComplete:rn,updatePercent:zm},Symbol.toStringTag,{value:"Module"})),nn=t=>Ge.findOne({user:t}),Zm=async(t,a,s,r)=>await Ge.create({user:t,crew:a,percent:r,permission:s}),Jm=t=>Ge.exists({user:t}),ln=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},xpYesterday:{type:Number,default:0},berryYesterday:{type:Number,default:0},previousOrnament:{unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},unlockedBackgrounds:{type:[String],default:[]}},previousCompletedQuest:{type:[String],default:[]},previousMessageSent:{type:Number,default:0}});ln.index({user:1});const zt=((Zn=h.models)==null?void 0:Zn.UserDailyReport)||h.model("UserDailyReport",ln),dn=async(t,a)=>{await zt.updateOne({user:t},a,{upsert:!0})},e0=Object.freeze(Object.defineProperty({__proto__:null,updateDailyReport:async(t,a)=>{await dn(t,{$set:{xpYesterday:a.meta.xp.amount,berryYesterday:a.meta.berry,previousCompletedQuest:a.quest.completed,"previousOrnament.unlockedBadges":a.ornaments.unlockedBadges,"previousOrnament.unlockedTitles":a.ornaments.unlockedTitles,"previousOrnament.unlockedBackgrounds":a.ornaments.unlockedBackgrounds,previousMessageSent:a.questMeta.messageSent}})}},Symbol.toStringTag,{value:"Module"})),on=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},guess:{type:{tries:Number,amount:Number,numberToGuess:Number,lastGuess:Number},default:null}});on.index({user:1});const pt=((Jn=h.models)==null?void 0:Jn.UserGames)||h.model("UserGames",on),Xt=async(t,a)=>{await pt.updateOne({user:t},a,{upsert:!0})},t0=Object.freeze(Object.defineProperty({__proto__:null,resetGuessGame:async t=>{await Xt(t,{$set:{guess:null}})},setGuessGame:async(t,a,s,r)=>{await Xt(t,{$set:{guess:{amount:a,tries:s,numberToGuess:r,lastGuess:0}}})},updateGuessGame:async t=>{await Xt(t,{$inc:{"guess.tries":1},$set:{"guess.lastGuess":Date.now()}})}},Symbol.toStringTag,{value:"Module"})),cn=async t=>await pt.create({user:t}),a0=async(t,a)=>{const s=await pt.findOne({user:t},a);return s||await cn(t)},s0=async t=>{var s;const a=[];for(const r of Object.values(es)){const n=new r;if((s=n.onUserOrnamentsUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&le("userOrnamentsUpdate",t.user._id,a)},fs=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},unlockedFactionBadges:{type:[String],default:[]},unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},selectedTitle:{type:String,default:null},unlockedBackgrounds:{type:[String],default:["default"]},selectedBackground:{type:String,default:"default"},unlockedProfileAssets:{type:[String],default:[]},unlockedBags:{type:[String],default:["default"]},selectedBag:{type:String,default:"default"}});fs.index({user:1}),fs.post("findOneAndUpdate",async function(t){await s0(t)});const mt=((ei=h.models)==null?void 0:ei.UserOrnaments)||h.model("UserOrnaments",fs),W=async(t,a)=>{await mt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},hs=async(t,a)=>{await W(t,{$addToSet:{unlockedTitles:a}})},r0=async(t,a)=>{await W(t,{$addToSet:{unlockedTitles:{$each:a}}})},n0=async(t,a)=>{await W(t,{$set:{selectedTitle:a}})},un=async(t,a)=>{await W(t,{$addToSet:{unlockedBackgrounds:a}})},i0=async(t,a)=>{await W(t,{$addToSet:{unlockedBackgrounds:{$each:a}}})},l0=async(t,a)=>{await W(t,{$set:{selectedBackground:a}})},fn=async(t,a,s)=>{a.isProgressive?await W(t,{$addToSet:{unlockedBadges:`${a.id}_${s}`}}):await W(t,{$addToSet:{unlockedBadges:a.id}})},hn=async(t,a)=>{await W(t,{$addToSet:{unlockedFactionBadges:{$each:[`b_marine_${a}`,`b_revolutionary_${a}`,`b_pirate_${a}`]}}})},pn=async(t,a)=>{await W(t,{$addToSet:{unlockedProfileAssets:a}})},d0=Object.freeze(Object.defineProperty({__proto__:null,selectBackground:l0,selectBag:async(t,a)=>{await W(t,{$set:{selectedBag:a}})},selectTitle:n0,unlockBackground:un,unlockBackgrounds:i0,unlockBadge:fn,unlockBag:async(t,a)=>{await W(t,{$addToSet:{unlockedBags:a}})},unlockFactionBadge:hn,unlockProfileAsset:pn,unlockTitle:hs,unlockTitles:r0},Symbol.toStringTag,{value:"Module"})),mn=async t=>await mt.create({user:t}),o0=async(t,a)=>{const s=await mt.findOne({user:t},a);return s||await mn(t)},yn=(t,a)=>t.completed.includes(a),gn=(t,a)=>{const s=t.daily[a];return s&&be(s,new Date)},ps=t=>be(Ta(),t.lastFullComplete),ms=t=>ps(t)?1+Math.min(2,t.streak/10):1,wn=t=>t.completed.reduce((a,s)=>a+(s.startsWith("be_level_")?1:0),0),_n=(t,a)=>{const s=wn(t);return u.factionTitleList.find(r=>r.strength===s&&r.faction===a)},c0=Object.freeze(Object.defineProperty({__proto__:null,getFactionTitle:_n,getFactionTitleStrength:wn,getStreakMultiplier:ms,isDailyQuestCompleted:gn,isQuestCompleted:yn,isStreaking:ps},Symbol.toStringTag,{value:"Module"})),u0=async t=>{var s;const a=[];for(const r of Object.values(as)){const n=new r;if((s=n.onUserQuestUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{_userQuest:t});i&&a.push([n,i])}}a.length>0&&le("userQuestUpdate",t.user._id,a)},ys=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},completed:{type:[String],default:[]},daily:{type:Object,default:{}},streak:{type:Number,default:0},lastFullComplete:{type:Date,default:new Date}},{minimize:!1});ys.index({user:1}),ys.post("findOneAndUpdate",async function(t){await u0(t)});const yt=((ti=h.models)==null?void 0:ti.UserQuest)||h.model("UserQuest",ys),gt=async(t,a)=>{await yt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},bn=async(t,a)=>{await gt(t,{$addToSet:{completed:a}})},Sn=async(t,a)=>{await gt(t,[{$addFields:{[`daily.${a}`]:new Date}}])},Mn=async(t,a)=>{be(Ta(),a)?await gt(t,{$inc:{streak:1},$set:{lastFullComplete:new Date}}):await gt(t,{$set:{lastFullComplete:new Date,streak:1}})},f0=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Sn,completeQuest:bn,updateStreak:Mn},Symbol.toStringTag,{value:"Module"})),kn=async t=>await yt.create({user:t}),gs=async t=>{const a=await yt.findOne({user:t});return a||await kn(t)},wt=(t,a)=>{var s;return(s=t.unlocked)==null?void 0:s[a]},h0=Object.freeze(Object.defineProperty({__proto__:null,alreadyObtainedRaidReward:(t,a,s)=>a in t.obtainedRewards?t.obtainedRewards[a].includes(s):!1,fulfillCondition:(t,a,s,r)=>r==="include"?s.every(n=>(t.obtainedConditions[a]??[]).includes(n)):s.every(n=>!(t.obtainedConditions[a]??[]).includes(n)),getObtainedRaidReward:(t,a)=>t.obtainedRewards[a]??[],hasUnlockedRaid:wt},Symbol.toStringTag,{value:"Module"})),vn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},currentRaid:{type:{raidId:String,seed:String,progression:{type:[String],default:[]},buffItem:String,rewards:{type:Object,default:{}}},default:void 0},obtainedConditions:{type:Object,default:{}},obtainedRewards:{type:Object,default:{}},unlocked:{type:Object,default:{}}},{minimize:!1});vn.index({user:1});const _t=((ai=h.models)==null?void 0:ai.UserRaid)||h.model("UserRaid",vn),Se=async(t,a)=>{await _t.updateOne({user:t},a,{upsert:!0})},bt=async(t,a)=>{await Se(t,{$set:{[`unlocked.${a}`]:!0}})},p0=Object.freeze(Object.defineProperty({__proto__:null,addRewardsToRaid:async(t,a)=>{await Se(t,{$inc:Object.fromEntries(Qa(a).filter(([s])=>s!=="title"&&s!=="condition").map(([s,r])=>[`currentRaid.rewards.${s}`,r])),...a.title?{$set:{"currentRaid.rewards.title":a.title}}:{}})},claimReward:async(t,a,s)=>{await Se(t,{$addToSet:{[`obtainedRewards.${a}`]:s}})},progressRaid:async(t,a)=>{await Se(t,{$push:{"currentRaid.progression":a}})},resetRaid:async t=>{await Se(t,{$unset:{currentRaid:""}})},resetRaidProgression:async t=>{await Se(t,{$set:{"currentRaid.progression":[]}})},startRaid:async(t,a,s,r,n,i)=>{const o=Date.now();return await Se(t,{$set:{currentRaid:{raidId:a,buffItem:s,seed:o,progression:[],rewards:{}}}}),await tn(t,r,n,i),o},unlockRaid:bt,updateCondition:async(t,a,s)=>{await Se(t,{$addToSet:{[`obtainedConditions.${a}`]:s}})}},Symbol.toStringTag,{value:"Module"})),Rn=async t=>await _t.create({user:t}),ws=async t=>{const a=await _t.findOne({user:t});return a||await Rn(t)},m0=Object.freeze(Object.defineProperty({__proto__:null,getShopItemRest:(t,a,s,r,n)=>{var f;if(S.isEquipmentId(a))return r;let i=S.getAllItemsLimit()[a];const o=(f=t.limit)==null?void 0:f[a];return n==="half"&&a==="chest_2"&&(i+=2),n==="full"&&a==="chest_3"&&(i+=1),i?t.lastShopId!==s?i:o?i-o:Math.min(i,r):r},isShopBuyLimitReached:(t,a,s,r)=>{var o;if(S.isEquipmentId(a))return!1;let n=S.getAllItemsLimit()[a];const i=(o=t.limit)==null?void 0:o[a];return r==="half"&&a==="chest_2"&&(n+=2),r==="full"&&a==="chest_3"&&(n+=1),t.lastShopId!==s?!1:!!(n&&i&&i>=n)}},Symbol.toStringTag,{value:"Module"})),Cn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},lastShopId:{type:Number,default:0},limit:{type:Object,default:{}}},{minimize:!1});Cn.index({user:1});const Zt=((si=h.models)==null?void 0:si.UserShop)||h.model("UserShop",Cn),Un=async(t,a)=>{await Zt.updateOne({user:t},a,{upsert:!0})},y0=Object.freeze(Object.defineProperty({__proto__:null,increaseShopBuyLimit:async(t,a,s,r)=>{await Un(t,[{$set:{limit:{$cond:{if:{$eq:["$lastShopId",s]},then:{$mergeObjects:["$limit",{[a]:{$add:[{$ifNull:[`$limit.${a}`,0]},r]}}]},else:{[a]:r}}},lastShopId:s}}])}},Symbol.toStringTag,{value:"Module"})),X={localField:"_id",foreignField:"user",justOne:!0},T=new h.Schema({userId:{type:String,required:!0,unique:!0},birthday:{type:Date,default:null},faction:{type:String,default:l.DEFAULT_FACTION},canChangeFaction:{type:Boolean,default:!1},canChooseFaction:{type:Boolean,default:!1},settings:{sort:{inventory:{type:String,default:"alpha"}},sendDailyReport:{type:Boolean,default:!1},sendDailyQuest:{type:Boolean,default:!1},reminder:{raid:{classic:{type:Boolean,default:!1},special:{type:Boolean,default:!1},christmas:{type:Boolean,default:!1}},commands:{work:{type:Boolean,default:!1},dice:{type:Boolean,default:!1},qod:{type:Boolean,default:!1},blackjack:{type:Boolean,default:!1},guess:{type:Boolean,default:!1},rps:{type:Boolean,default:!1}}}}});T.virtual("inventory",{ref:"UserInventory",...X}),T.virtual("raid",{ref:"UserRaid",...X}),T.virtual("games",{ref:"UserGames",...X}),T.virtual("ornaments",{ref:"UserOrnaments",...X}),T.virtual("crew",{ref:"UserCrew",...X}),T.virtual("dailyReport",{ref:"UserDailyReport",...X}),T.virtual("shop",{ref:"UserShop",...X}),T.virtual("meta",{ref:"UserMeta",...X}),T.virtual("quest",{ref:"UserQuest",...X}),T.virtual("questMeta",{ref:"UserQuestMeta",...X}),T.virtual("cooldown",{ref:"UserCooldown",...X}),T.virtual("reminder",{ref:"Reminder",localField:"_id",foreignField:"user"}),T.virtual("encyclopedia",{ref:"UserEncyclopedia",...X}),T.index({userId:1}),T.post("deleteOne",async function(){const t=this.getQuery()._id;await ut.deleteOne({user:t}),await pt.deleteOne({user:t}),await mt.deleteOne({user:t}),await _t.deleteOne({user:t}),await Ge.deleteOne({user:t}),await zt.deleteOne({user:t}),await Zt.deleteOne({user:t}),await Ue.deleteOne({user:t}),await yt.deleteOne({user:t}),await de.deleteOne({user:t}),await ft.deleteOne({user:t})});const K=((ri=h.models)==null?void 0:ri.User)||h.model("User",T),g0=t=>K.create({userId:t}),Jt=async(t,a={})=>{const s=await xn({userId:t},a);return s||await g0(t)},xn=(t,a={})=>K.findOne(t,a),w0=Object.freeze(Object.defineProperty({__proto__:null,getAllDailyReport:async()=>K.aggregate([{$match:{"settings.sendDailyReport":!0}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$lookup:{from:"userdailyreports",localField:"_id",foreignField:"user",as:"dailyReport"}},{$match:{$and:[{$expr:{$gt:["$dailyReport.xpYesterday",0]}},{faction:{$ne:"citizen"}}]}}]),getBerryRanking:async()=>K.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$sort:{"meta.berry":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.berry":1}}]),getDailyReport:t=>{const{berry:a,xp:s}=t.meta,{voice:r,amount:n}=s,{unlockedBadges:i,unlockedBackgrounds:o,unlockedTitles:f}=t.ornaments,{previousOrnament:m,previousCompletedQuest:_,xpYesterday:B,berryYesterday:Y,previousMessageSent:H}=t.dailyReport;return{berry:a-Y,xp:n-B,message:t.questMeta.messageSent-H,voice:be(r.lastConnection,Ta())?r.minutesInVoiceToday:0,quest:Ht(t.quest.completed,_),badge:Ht(i,m.unlockedBadges),title:Ht(f,m.unlockedTitles),background:Ht(o,m.unlockedBackgrounds)}},getFactionRank:async(t,a)=>(await K.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$match:{faction:t.faction}},{$setWindowFields:{sortBy:{"meta.xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:a}},{$project:{rank:1}}]))[0],getFactionRanking:async t=>K.aggregate([{$match:{faction:t}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$userMeta"},{$sort:{"userMeta.xp.amount":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.xp.amount":1}}]),getGlobalRanking:async()=>K.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$sort:{"meta.xp.amount":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.xp.amount":1}}]),getNextBirthdays:()=>K.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{day:{$dayOfMonth:"$birthday"},month:{$month:"$birthday"},year:{$year:"$birthday"},nextBirthday:{$dateFromParts:{year:{$cond:[{$lt:[{$dateFromParts:{year:{$year:new Date},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}},new Date]},{$add:[{$year:new Date},1]},{$year:new Date}]},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}}}},{$sort:{nextBirthday:1}},{$limit:10},{$project:{_id:0,userId:1,birthday:1,nextBirthday:1}}]),getSuccessRanking:async()=>K.aggregate([{$lookup:{from:"userquests",localField:"_id",foreignField:"user",as:"quest"}},{$unwind:"$quest"},{$addFields:{success_count:{$size:{$ifNull:["$quest.completed",[]]}}}},{$sort:{success_count:-1}},{$limit:10},{$project:{_id:1,userId:1,"quest.completed":1}}]),getTodayAllBirthday:()=>K.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{birthMonth:{$month:"$birthday"},birthDay:{$dayOfMonth:"$birthday"}}},{$addFields:{currentMonth:{$month:new Date},currentDay:{$dayOfMonth:new Date}}},{$match:{$expr:{$and:[{$eq:["$birthMonth","$currentMonth"]},{$eq:["$birthDay","$currentDay"]}]}}}]),getUserBirthday:async t=>await Jt(t,{birthday:1})},Symbol.toStringTag,{value:"Module"})),Me=async(t,a,s=!1)=>{await K.updateOne(t,a,{upsert:s})},Bn=async(t,a)=>{await Me({_id:t},{$set:{canChooseFaction:a}})},On=async(t,a)=>{await Me({_id:t},{$set:{canChangeFaction:a}})},_0=Object.freeze(Object.defineProperty({__proto__:null,canChangeFaction:On,canChooseFaction:Bn,removeBirthday:async t=>{await Me({userId:t},{$set:{birthday:null}})},setBirthday:async(t,a)=>{await Me({userId:t},{$set:{birthday:a}})},updateFaction:async(t,a)=>{await Me({_id:t},{$set:{faction:a}})},updateInventorySort:async(t,a)=>{await Me({_id:t},{$set:{"settings.sort.inventory":a}})},updateReminderSettings:async(t,a,s)=>{await Me({_id:t},{$set:{[`settings.reminder.${a}`]:s}})},updateSendDailyQuest:async(t,a)=>{await Me({userId:t},{$set:{"settings.sendDailyQuest":a}})},updateSendDailyReport:async(t,a)=>{await Me({userId:t},{$set:{"settings.sendDailyReport":a}})}},Symbol.toStringTag,{value:"Module"})),b0=async t=>{await K.deleteOne({userId:t})},S0=async t=>await zt.create({user:t}),M0=async t=>await de.create({user:t}),k0=async t=>await Zt.create({user:t}),Dn=(t,a)=>{switch(t){case"dailyReport":return S0(a);case"games":return cn(a);case"inventory":return Zr(a);case"meta":return Kr(a);case"raid":return Rn(a);case"ornaments":return mn(a);case"quest":return kn(a);case"questMeta":return M0(a);case"shop":return k0(a);case"cooldown":return sn(a);case"reminder":return[];case"crew":return null;case"encyclopedia":return jr(a)}},An=async(t,a,s)=>{if(Array.isArray(a)){const r=await t.populate(a);for(const n of a)r[n]||(r[n]=await Dn(n,t._id));return r}else{const r=await t.populate(a,s),n=r[a];return(!n||Array.isArray(n)&&n.length===0)&&(r[a]=await Dn(a,t._id)),r}},Nn=new h.Schema({warnedUserId:String,authorId:String,date:{type:Date,default:Date.now()},reason:{type:String,default:null}});Nn.index({warnedUserId:1});const Ve=((ni=h.models)==null?void 0:ni.Warns)||h.model("Warns",Nn),v0=Object.freeze(Object.defineProperty({__proto__:null,getUserWarnCount:async t=>await Ve.countDocuments({warnedUserId:t}),getUserWarns:async t=>await Ve.find({warnedUserId:t})},Symbol.toStringTag,{value:"Module"})),R0=async t=>await Ve.findOne({warnedUserId:t}),C0=async t=>await Ve.create({...t}),U0=async t=>await Ve.findByIdAndDelete(t),x0=async t=>{var s;const a={};for(const r of Object.values(Xa)){const n=new r;for(const i of t.members){const o=await Jt(i,{_id:1});if((s=n.onCrewUpdate)!=null&&s.call(n,t,o._id)){const f=await n.complete(o._id,{});if(f){const m=a[o.id];a[o.id]=m?[o._id,[...m[1],[n,f]]]:[o._id,[[n,f]]]}}}}Object.values(a).forEach(([r,n])=>{le("crewUpdate",r,n)})},B0={localField:"_id",foreignField:"crew",justOne:!0},ea=new h.Schema({createdBy:String,members:{type:[String],default:[]},limit:{type:Number,default:3},name:String,description:String,channelId:String,meta:{xp:{type:Number,default:0},berry:{type:Number,default:0},buffs:{xp:{boost:{type:Number,default:0},expireAt:{type:Date,default:null}}}},disintegration:{type:Number,default:100},faction:String,stats:{type:Object,default:{}},ornament:{unlockedBadges:[String]}},{timestamps:!0,minimize:!1});ea.index({"meta.xp":-1}),ea.virtual("quest",{ref:"CrewQuest",...B0}),ea.post("findOneAndUpdate",async function(t){await x0(t)});const ze=((ii=h.models)==null?void 0:ii.Crew)||h.model("Crew",ea),O0=(t,a)=>Math.ceil(a*(t.disintegration/100)*($n(t)||1)),$n=t=>new Date>=(t.meta.buffs.xp.expireAt??new Date(0))?!1:t.meta.buffs.xp.boost,D0=Object.freeze(Object.defineProperty({__proto__:null,calcXp:O0,getCrewRank:async t=>(await ze.aggregate([{$setWindowFields:{sortBy:{"meta.xp":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t._id}},{$project:{_id:1,"meta.xp":1,rank:1}}]))[0],getCrewRanking:async()=>ze.aggregate([{$sort:{"meta.xp":-1}},{$limit:10}]),hasXpBuff:$n},Symbol.toStringTag,{value:"Module"})),ke=async(t,a)=>{await ze.findOneAndUpdate({_id:t},a,{returnDocument:"after"})},En=async(t,a,s)=>{a.isProgressive?await ke(t,{$addToSet:{"ornament.unlockedBadges":`${a.id}_${s}`}}):await ke(t,{$addToSet:{"ornament.unlockedBadges":a.id}})},A0=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(t,a,s)=>{await ke(t,{$inc:{"meta.berry":a,[`stats.${s.toHexString()}.berry`]:a}})},addMember:async(t,a)=>{await ke(t,{$addToSet:{members:a}})},addXp:async(t,a,s)=>{await ke(t,{$inc:{"meta.xp":a,[`stats.${s.toHexString()}.xp`]:a}})},addXpBuff:async(t,a)=>{await ke(t,[{$set:{"meta.buffs.xp":{$cond:{if:{$or:[{$eq:["$meta.buffs.xp.expireAt",null]},{lt:["$meta.buffs.xp.expireAt",new Date]}]},then:{boost:1.1,expireAt:{$add:[new Date,a*60*60*1e3]}},else:{boost:1.1,expireAt:{$add:["$meta.buffs.xp.expireAt",a*60*60*1e3]}}}}}}])},applyDisintegration:async(t,a)=>{const[s,r]=[a-2,(a-3)*2+3];await ke(t,[{$set:{disintegration:{$max:[{$add:["$disintegration",-1*br(s,r)]},0]}}}])},increaseLimit:async(t,a)=>{await ke(t,{$inc:{limit:1,"meta.berry":-a}})},repair:async(t,a)=>{await ke(t,[{$set:{disintegration:{$min:[{$add:["$disintegration",a]},100]}}}])},unlockBadge:En},Symbol.toStringTag,{value:"Module"})),N0=async(t,a={})=>{const s=await ze.findById(t,a);return s||null},$0=async(t,{name:a,description:s,channelId:r,faction:n})=>await ze.create({name:a,description:s,createdBy:t,channelId:r,faction:n,members:[t]}),Fn=(t,a)=>{for(const[,s]of Object.entries(t.daily??{}))if(!(s!=null&&s[a])||!be(s[a],new Date))return!1;return!0},E0=Object.freeze(Object.defineProperty({__proto__:null,isAllDailyCompleted:Fn},Symbol.toStringTag,{value:"Module"})),F0=async t=>{var r;const a={},{crew:s}=await t.populate("crew");for(const n of Object.values(za)){const i=new n;for(const o of s.members){const f=await Jt(o,{_id:1,crew:1}).then(m=>An(m,"crew",{lastAllMembersDaily:1}));if(f.crew&&((r=i.onCrewQuestUpdate)!=null&&r.call(i,t,f.crew))){const m=await i.complete(f._id,{});if(m){const _=a[f.id];a[f.id]=_?[f._id,[..._[1],[i,m]]]:[f._id,[[i,m]]]}}}}Object.values(a).forEach(([n,i])=>{le("crewQuestUpdate",n,i)})},_s=new h.Schema({crew:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"Crew"},completed:[String],daily:{type:Object,default:{}},meta:{streak80Percent:{type:Number,default:0},maxVoiceMembers:{type:Number,default:0},actualVoiceMembers:{amount:{type:Number,default:0},connectedAt:{type:Date,default:new Date}}}},{minimize:!1});_s.index({crew:1}),_s.post("findOneAndUpdate",async function(t){await F0(t)});const ta=((li=h.models)==null?void 0:li.CrewQuest)||h.model("CrewQuest",_s),aa=async(t,a)=>{await ta.findOneAndUpdate({crew:t},a,{upsert:!0,returnDocument:"after"})},In=async(t,a)=>{await aa(t,{$addToSet:{completed:a}})},Yn=async(t,a,s)=>{await aa(t,[{$addFields:{[`daily.${a}.${s}`]:new Date}}])},I0=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Yn,completeQuest:In,setActualVoiceMembers:async(t,a)=>{await aa(t,{$set:{"meta.actualVoiceMembers.amount":a,"meta.actualVoiceMembers.connectedAt":new Date}})},setMaxVoiceMembers:async(t,a)=>{await aa(t,{$set:{"meta.maxVoiceMembers":a}})}},Symbol.toStringTag,{value:"Module"})),bs=async t=>await ta.create({crew:t}),Y0=async t=>{const a=await ta.findOne({crew:t});return a||await bs(t)},Ln=(t,a)=>{switch(t){case"quest":return bs(a)}},L0=async(t,a,s)=>{if(Array.isArray(a)){const r=await t.populate(a);for(const n of a)r[n]||(r[n]=await Ln(n,t._id));return r}else{const r=await t.populate(a,s),n=r[a];return(!n||Array.isArray(n)&&n.length===0)&&(r[a]=await Ln(a,t._id)),r}},P0=t=>{h.connect(t)};class T0 extends h.Types.ObjectId{}c.ALL_QUESTS=Xp,c.BET_MAX_VALUE=Mp,c.BET_MIN_VALUE=Sp,c.BackgroundShopItem=Cr,c.BoostXpShopItem=Ur,c.BottleShopItem=Dr,c.COOLDOWN_COMMANDS=Gm,c.ChestShopItem=xr,c.CrewQuestQuests=za,c.CrewQuests=Xa,c.EDITO_READ=kp,c.EquipmentShopItem=Or,c.ObjectId=T0,c.ObjectShopItem=Br,c.QUEST_ASSET_IMAGES=vp,c.Quest=d,c.RepairShopItem=Ar,c.StoreShopItem=Nr,c.TitleShopItem=$r,c.UserDailyQuests=Va,c.UserInventoryQuests=Za,c.UserMetaQuests=Ja,c.UserOrnamentsQuests=es,c.UserQuestMetaQuests=ts,c.UserQuestQuests=as,c.banExists=pi,c.banGetters=ci,c.banModel=Fe,c.betModel=na,c.completeCrewQuest=Bp,c.completeDailyQuest=xp,c.connectToServices=P0,c.createBan=ui,c.createBet=gi,c.createCrew=$0,c.createCrewQuest=bs,c.createInvitations=_i,c.createReminder=Yc,c.createSettings=Rr,c.createUserCrew=Zm,c.createWarn=C0,c.crewGetters=D0,c.crewModel=ze,c.crewQuestGetters=E0,c.crewQuestModel=ta,c.crewQuestUpdates=I0,c.crewUpdates=A0,c.deleteBan=hi,c.deleteInvitations=bi,c.deleteUserById=b0,c.deleteWarn=U0,c.emitQuestEvent=le,c.emitRaidEvent=dt,c.finWarnById=R0,c.findBan=fi,c.findBetById=yi,c.findCrewById=N0,c.findCrewQuest=Y0,c.findInvitations=wi,c.findReminder=Ic,c.findSettingsByGuildId=Uc,c.findShop=Yr,c.findShopByType=Ac,c.findUser=xn,c.findUserById=Jt,c.findUserCooldown=Vm,c.findUserCrew=nn,c.findUserEncyclopedia=Qc,c.findUserGames=a0,c.findUserInventory=Vt,c.findUserMeta=ct,c.findUserOrnaments=o0,c.findUserQuest=gs,c.findUserRaid=ws,c.getBadgeEmojisFromId=Up,c.getQuestBadgeEmojis=Cp,c.invitationsModel=St,c.onQuestEvent=qc,c.onRaidEvent=tm,c.populateCrew=L0,c.populateUser=An,c.questCanvas=bp,c.reminderGetters=$c,c.reminderModel=Ee,c.reminderUpdates=Fc,c.settingsModel=qt,c.settingsUpdates=Cc,c.shopGetters=xc,c.shopModel=Wt,c.shopUpdates=Oc,c.updateUserCooldown=ht,c.updateUserCrew=us,c.updateUserDailyReport=dn,c.updateUserEncyclopedia=Tr,c.updateUserGames=Xt,c.updateUserInventory=oe,c.updateUserMeta=F,c.updateUserOrnaments=W,c.updateUserQuest=gt,c.updateUserQuestMeta=v,c.updateUserRaid=Se,c.updateUserShop=Un,c.userCooldownGetters=Nc,c.userCooldownModel=ft,c.userCooldownUpdates=Km,c.userCrewExists=Jm,c.userCrewModel=Ge,c.userCrewUpdates=Xm,c.userDailyReportModel=zt,c.userDailyReportUpdates=e0,c.userEncyclopediaGetters=Tc,c.userEncyclopediaModel=Kt,c.userEncyclopediaUpdates=jc,c.userGamesModel=pt,c.userGamesUpdates=t0,c.userGetters=w0,c.userInventoryGetters=Pc,c.userInventoryModel=ut,c.userInventoryUpdates=Fm,c.userMetaGetters=qm,c.userMetaModel=Ue,c.userMetaUpdates=Am,c.userModel=K,c.userOrnamentsModel=mt,c.userOrnamentsUpdates=d0,c.userQuestGetters=c0,c.userQuestMetaModel=de,c.userQuestMetaUpdates=Rm,c.userQuestModel=yt,c.userQuestUpdates=f0,c.userRaidGetters=h0,c.userRaidModel=_t,c.userRaidUpdates=p0,c.userShopGetters=m0,c.userShopModel=Zt,c.userShopUpdates=y0,c.userUpdates=_0,c.warnGetters=v0,c.warnModel=Ve,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|