@opfr/canvas 0.4.1 → 0.6.0

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.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export { loadImage } from './utils/image';
2
+ export * from './utils/next';
2
3
  export { CanvasOrigin } from './types';
3
4
  export * from './components/gradient/default';
4
5
  export { registerFont } from './font';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
package/dist/index.umd.js CHANGED
@@ -1,10 +1,10 @@
1
- (function(C,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("@napi-rs/canvas")):typeof define=="function"&&define.amd?define(["exports","@napi-rs/canvas"],Q):(C=typeof globalThis<"u"?globalThis:C||self,Q(C.canvas={},C["@napi-rs/canvas"]))})(this,function(C,Q){"use strict";const be=new Map,Pn=(t,e)=>{Q.loadImage(e).then(n=>{be.set(t,n)})},Cn=t=>be.get(t);var _t=(t=>(t.TOP_LEFT="top-left",t.TOP="top",t.TOP_RIGHT="top-right",t.LEFT="left",t.CENTER="center",t.RIGHT="right",t.BOTTOM_LEFT="bottom-left",t.BOTTOM="bottom",t.BOTTOM_RIGHT="bottom-right",t))(_t||{});const Rn=t=>{t.addColorStop(0,"#E1B34C"),t.addColorStop(.1,"#E1B34C"),t.addColorStop(.3,"white"),t.addColorStop(.55,"#E1B34C"),t.addColorStop(.65,"#E1B34C"),t.addColorStop(.8,"white"),t.addColorStop(1,"#E1B34C")},Wn=t=>{for(const e of t)if(!Q.GlobalFonts.registerFromPath(e.path,e.name))throw new Error("Font loading error: "+e.path)},qt={"top-left":(t,e)=>({x:t,y:e}),top:(t,e,n)=>({x:t-n/2,y:e}),"top-right":(t,e,n)=>({x:t-n,y:e}),left:(t,e,n,s)=>({x:t,y:e-s/2}),center:(t,e,n,s)=>({x:t-n/2,y:e-s/2}),right:(t,e,n,s)=>({x:t-n,y:e-s/2}),"bottom-left":(t,e,n,s)=>({x:t,y:e-s}),bottom:(t,e,n,s)=>({x:t-n/2,y:e-s}),"bottom-right":(t,e,n,s)=>({x:t-n,y:e-s})},Ln=t=>{const e=(s,i,r,a=!0)=>{const{x:u,y:d}=qt[i.origin](i.x,i.y,i.width*i.scale,i.height*i.scale);return s.globalCompositeOperation=i.composite,s.rotate(i.angle*Math.PI/180),a&&s.drawImage(r,u,d,i.width*i.scale,i.height*i.scale),{x:u,y:d}},n={imageName:null,x:0,y:0,width:t.width,height:t.height,origin:_t.TOP_LEFT,scale:1,angle:0,composite:"source-over"};return{context:t.context,options:n,setImageName(s){return this.options.imageName=s,this},setPosition(s,i){return this.options.x=s,this.options.y=i,this},setDimensions(s,i){return this.options.width=s,this.options.height=i,this},setOrigin(s){return this.options.origin=s,this},setAngle(s){return this.options.angle=s,this},setScale(s){return this.options.scale=s,this},setComposite(s){return this.options.composite=s,this},async drawFromUrl(s){this.context.save();const i=await Q.loadImage(s);e(this.context,this.options,i),this.context.restore()},draw(s=!0){if(!this.options.imageName)throw new Error("No image chose");this.context.save(),this.context.globalCompositeOperation=this.options.composite;const i=Cn(this.options.imageName),{x:r,y:a}=i?e(this.context,this.options,i,s):{x:0,y:0};return this.context.restore(),{width:this.options.width*this.options.scale,next:u=>{const d=u(t);return d.options={...d.options,...this.options,...s?{x:r+this.options.width*this.options.scale,y:a}:{}},d}}}}},Fn=(t,e)=>(n,s,i,r)=>{const a=t.context.createLinearGradient(n,s,i,r);return e(a),a},En=(t,e,n,s,i,r)=>typeof t=="string"?t:Fn(e,t)(n,s,i,r),Ne=t=>typeof t=="number";//! moment.js
1
+ (function(b,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("@napi-rs/canvas")):typeof define=="function"&&define.amd?define(["exports","@napi-rs/canvas"],Q):(b=typeof globalThis<"u"?globalThis:b||self,Q(b.canvas={},b["@napi-rs/canvas"]))})(this,function(b,Q){"use strict";const be=new Map,Nn=(t,e)=>{Q.loadImage(e).then(n=>{be.set(t,n)})},Pn=t=>be.get(t),Cn=(t,e)=>(t.options={...t.options,...e,text:"text"in t.options?t.options.text:""},e.enable&&(t.options={...t.options,x:e.x+(e.width??0),y:e.y}),t);var _t=(t=>(t.TOP_LEFT="top-left",t.TOP="top",t.TOP_RIGHT="top-right",t.LEFT="left",t.CENTER="center",t.RIGHT="right",t.BOTTOM_LEFT="bottom-left",t.BOTTOM="bottom",t.BOTTOM_RIGHT="bottom-right",t))(_t||{});const Rn=t=>{t.addColorStop(0,"#E1B34C"),t.addColorStop(.1,"#E1B34C"),t.addColorStop(.3,"white"),t.addColorStop(.55,"#E1B34C"),t.addColorStop(.65,"#E1B34C"),t.addColorStop(.8,"white"),t.addColorStop(1,"#E1B34C")},Wn=t=>{for(const e of t)if(!Q.GlobalFonts.registerFromPath(e.path,e.name))throw new Error("Font loading error: "+e.path)},qt={"top-left":(t,e)=>({x:t,y:e}),top:(t,e,n)=>({x:t-n/2,y:e}),"top-right":(t,e,n)=>({x:t-n,y:e}),left:(t,e,n,s)=>({x:t,y:e-s/2}),center:(t,e,n,s)=>({x:t-n/2,y:e-s/2}),right:(t,e,n,s)=>({x:t-n,y:e-s/2}),"bottom-left":(t,e,n,s)=>({x:t,y:e-s}),bottom:(t,e,n,s)=>({x:t-n/2,y:e-s}),"bottom-right":(t,e,n,s)=>({x:t-n,y:e-s})},Ln=t=>{const e=(s,i,r,a=!0)=>{const{x:u,y:c}=qt[i.origin](i.x,i.y,(i.width??r.width)*i.scale,(i.height??r.height)*i.scale);return s.globalCompositeOperation=i.composite,s.rotate(i.angle*Math.PI/180),a&&s.drawImage(r,u,c,(i.width??r.width)*i.scale,(i.height??r.height)*i.scale),{x:u,y:c}},n={imageName:null,x:0,y:0,origin:_t.TOP_LEFT,scale:1,angle:0,composite:"source-over"};return{context:t.context,options:n,setImageName(s){return this.options.imageName=s,this},setPosition(s,i){return this.options.x=s,this.options.y=i,this},setDimensions(s,i){return this.options.width=s,this.options.height=i,this},setOrigin(s){return this.options.origin=s,this},setAngle(s){return this.options.angle=s,this},setScale(s){return this.options.scale=s,this},setComposite(s){return this.options.composite=s,this},async drawFromUrl(s){this.context.save();const i=await Q.loadImage(s);e(this.context,this.options,i),this.context.restore()},draw(s=!0){if(!this.options.imageName)throw new Error("No image chose");this.context.save(),this.context.globalCompositeOperation=this.options.composite;const i=Pn(this.options.imageName);return this.options.width=this.options.width??i.width,this.options.height=this.options.height??i.height,e(this.context,this.options,i,s),this.context.restore(),{width:this.options.width*this.options.scale,next:r=>r(t,{...this.options,enable:s})}}}},Fn=(t,e)=>(n,s,i,r)=>{const a=t.context.createLinearGradient(n,s,i,r);return e(a),a},En=(t,e,n,s,i,r)=>typeof t=="string"?t:Fn(e,t)(n,s,i,r),Ne=t=>typeof t=="number";//! moment.js
2
2
  //! version : 2.30.1
3
3
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
4
  //! license : MIT
5
5
  //! momentjs.com
6
- var Pe;function h(){return Pe.apply(null,arguments)}function Hn(t){Pe=t}function R(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function nt(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function g(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function $t(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(g(t,e))return!1;return!0}function O(t){return t===void 0}function G(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function yt(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function Ce(t,e){var n=[],s,i=t.length;for(s=0;s<i;++s)n.push(e(t[s],s));return n}function X(t,e){for(var n in e)g(e,n)&&(t[n]=e[n]);return g(e,"toString")&&(t.toString=e.toString),g(e,"valueOf")&&(t.valueOf=e.valueOf),t}function E(t,e,n,s){return an(t,e,n,s,!0).utc()}function Un(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(t){return t._pf==null&&(t._pf=Un()),t._pf}var Jt;Array.prototype.some?Jt=Array.prototype.some:Jt=function(t){var e=Object(this),n=e.length>>>0,s;for(s=0;s<n;s++)if(s in e&&t.call(this,e[s],s,e))return!0;return!1};function Qt(t){var e=null,n=!1,s=t._d&&!isNaN(t._d.getTime());if(s&&(e=f(t),n=Jt.call(e.parsedDateParts,function(i){return i!=null}),s=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(s=s&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=s;else return s;return t._isValid}function Ot(t){var e=E(NaN);return t!=null?X(f(e),t):f(e).userInvalidated=!0,e}var Re=h.momentProperties=[],Xt=!1;function Kt(t,e){var n,s,i,r=Re.length;if(O(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),O(e._i)||(t._i=e._i),O(e._f)||(t._f=e._f),O(e._l)||(t._l=e._l),O(e._strict)||(t._strict=e._strict),O(e._tzm)||(t._tzm=e._tzm),O(e._isUTC)||(t._isUTC=e._isUTC),O(e._offset)||(t._offset=e._offset),O(e._pf)||(t._pf=f(e)),O(e._locale)||(t._locale=e._locale),r>0)for(n=0;n<r;n++)s=Re[n],i=e[s],O(i)||(t[s]=i);return t}function gt(t){Kt(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Xt===!1&&(Xt=!0,h.updateOffset(this),Xt=!1)}function W(t){return t instanceof gt||t!=null&&t._isAMomentObject!=null}function We(t){h.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function b(t,e){var n=!0;return X(function(){if(h.deprecationHandler!=null&&h.deprecationHandler(null,t),n){var s=[],i,r,a,u=arguments.length;for(r=0;r<u;r++){if(i="",typeof arguments[r]=="object"){i+=`
6
+ var Pe;function h(){return Pe.apply(null,arguments)}function Hn(t){Pe=t}function R(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function nt(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function g(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function $t(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(g(t,e))return!1;return!0}function O(t){return t===void 0}function G(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function yt(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function Ce(t,e){var n=[],s,i=t.length;for(s=0;s<i;++s)n.push(e(t[s],s));return n}function X(t,e){for(var n in e)g(e,n)&&(t[n]=e[n]);return g(e,"toString")&&(t.toString=e.toString),g(e,"valueOf")&&(t.valueOf=e.valueOf),t}function E(t,e,n,s){return an(t,e,n,s,!0).utc()}function Un(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(t){return t._pf==null&&(t._pf=Un()),t._pf}var Jt;Array.prototype.some?Jt=Array.prototype.some:Jt=function(t){var e=Object(this),n=e.length>>>0,s;for(s=0;s<n;s++)if(s in e&&t.call(this,e[s],s,e))return!0;return!1};function Qt(t){var e=null,n=!1,s=t._d&&!isNaN(t._d.getTime());if(s&&(e=f(t),n=Jt.call(e.parsedDateParts,function(i){return i!=null}),s=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(s=s&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=s;else return s;return t._isValid}function Ot(t){var e=E(NaN);return t!=null?X(f(e),t):f(e).userInvalidated=!0,e}var Re=h.momentProperties=[],Xt=!1;function Kt(t,e){var n,s,i,r=Re.length;if(O(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),O(e._i)||(t._i=e._i),O(e._f)||(t._f=e._f),O(e._l)||(t._l=e._l),O(e._strict)||(t._strict=e._strict),O(e._tzm)||(t._tzm=e._tzm),O(e._isUTC)||(t._isUTC=e._isUTC),O(e._offset)||(t._offset=e._offset),O(e._pf)||(t._pf=f(e)),O(e._locale)||(t._locale=e._locale),r>0)for(n=0;n<r;n++)s=Re[n],i=e[s],O(i)||(t[s]=i);return t}function gt(t){Kt(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Xt===!1&&(Xt=!0,h.updateOffset(this),Xt=!1)}function W(t){return t instanceof gt||t!=null&&t._isAMomentObject!=null}function We(t){h.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function N(t,e){var n=!0;return X(function(){if(h.deprecationHandler!=null&&h.deprecationHandler(null,t),n){var s=[],i,r,a,u=arguments.length;for(r=0;r<u;r++){if(i="",typeof arguments[r]=="object"){i+=`
7
7
  [`+r+"] ";for(a in arguments[0])g(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[r];s.push(i)}We(t+`
8
8
  Arguments: `+Array.prototype.slice.call(s).join("")+`
9
- `+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var Le={};function Fe(t,e){h.deprecationHandler!=null&&h.deprecationHandler(t,e),Le[t]||(We(e),Le[t]=!0)}h.suppressDeprecationWarnings=!1,h.deprecationHandler=null;function H(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function jn(t){var e,n;for(n in t)g(t,n)&&(e=t[n],H(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function te(t,e){var n=X({},t),s;for(s in e)g(e,s)&&(nt(t[s])&&nt(e[s])?(n[s]={},X(n[s],t[s]),X(n[s],e[s])):e[s]!=null?n[s]=e[s]:delete n[s]);for(s in t)g(t,s)&&!g(e,s)&&nt(t[s])&&(n[s]=X({},n[s]));return n}function ee(t){t!=null&&this.set(t)}var ne;Object.keys?ne=Object.keys:ne=function(t){var e,n=[];for(e in t)g(t,e)&&n.push(e);return n};var Gn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function In(t,e,n){var s=this._calendar[t]||this._calendar.sameElse;return H(s)?s.call(e,n):s}function U(t,e,n){var s=""+Math.abs(t),i=e-s.length,r=t>=0;return(r?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var se=/(\[[^\[]*\])|(\\)?([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,Tt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},at={};function c(t,e,n,s){var i=s;typeof s=="string"&&(i=function(){return this[s]()}),t&&(at[t]=i),e&&(at[e[0]]=function(){return U(i.apply(this,arguments),e[1],e[2])}),n&&(at[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function An(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Vn(t){var e=t.match(se),n,s;for(n=0,s=e.length;n<s;n++)at[e[n]]?e[n]=at[e[n]]:e[n]=An(e[n]);return function(i){var r="",a;for(a=0;a<s;a++)r+=H(e[a])?e[a].call(i,t):e[a];return r}}function bt(t,e){return t.isValid()?(e=Ee(e,t.localeData()),ie[e]=ie[e]||Vn(e),ie[e](t)):t.localeData().invalidDate()}function Ee(t,e){var n=5;function s(i){return e.longDateFormat(i)||i}for(Tt.lastIndex=0;n>=0&&Tt.test(t);)t=t.replace(Tt,s),Tt.lastIndex=0,n-=1;return t}var zn={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 Zn(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(se).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[t])}var Bn="Invalid date";function qn(){return this._invalidDate}var $n="%d",Jn=/\d{1,2}/;function Qn(t){return this._ordinal.replace("%d",t)}var Xn={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 Kn(t,e,n,s){var i=this._relativeTime[n];return H(i)?i(t,e,n,s):i.replace(/%d/i,t)}function ts(t,e){var n=this._relativeTime[t>0?"future":"past"];return H(n)?n(e):n.replace(/%s/i,e)}var He={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 N(t){return typeof t=="string"?He[t]||He[t.toLowerCase()]:void 0}function re(t){var e={},n,s;for(s in t)g(t,s)&&(n=N(s),n&&(e[n]=t[s]));return e}var es={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 ns(t){var e=[],n;for(n in t)g(t,n)&&e.push({unit:n,priority:es[n]});return e.sort(function(s,i){return s.priority-i.priority}),e}var Ue=/\d/,T=/\d\d/,je=/\d{3}/,ae=/\d{4}/,Nt=/[+-]?\d{6}/,v=/\d\d?/,Ge=/\d\d\d\d?/,Ie=/\d\d\d\d\d\d?/,Pt=/\d{1,3}/,oe=/\d{1,4}/,Ct=/[+-]?\d{1,6}/,ot=/\d+/,Rt=/[+-]?\d+/,ss=/Z|[+-]\d\d:?\d\d/gi,Wt=/Z|[+-]\d\d(?::?\d\d)?/gi,is=/[+-]?\d+(\.\d{1,3})?/,pt=/[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,ut=/^[1-9]\d?/,ue=/^([1-9]\d|\d)/,Lt;Lt={};function l(t,e,n){Lt[t]=H(e)?e:function(s,i){return s&&n?n:e}}function rs(t,e){return g(Lt,t)?Lt[t](e._strict,e._locale):new RegExp(as(t))}function as(t){return I(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,s,i,r){return n||s||i||r}))}function I(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function P(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function m(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=P(e)),n}var he={};function w(t,e){var n,s=e,i;for(typeof t=="string"&&(t=[t]),G(e)&&(s=function(r,a){a[e]=m(r)}),i=t.length,n=0;n<i;n++)he[t[n]]=s}function wt(t,e){w(t,function(n,s,i,r){i._w=i._w||{},e(n,i._w,i,r)})}function os(t,e,n){e!=null&&g(he,t)&&he[t](e,n._a,n,t)}function Ft(t){return t%4===0&&t%100!==0||t%400===0}var Y=0,A=1,j=2,D=3,L=4,V=5,st=6,us=7,hs=8;c("Y",0,0,function(){var t=this.year();return t<=9999?U(t,4):"+"+t}),c(0,["YY",2],0,function(){return this.year()%100}),c(0,["YYYY",4],0,"year"),c(0,["YYYYY",5],0,"year"),c(0,["YYYYYY",6,!0],0,"year"),l("Y",Rt),l("YY",v,T),l("YYYY",oe,ae),l("YYYYY",Ct,Nt),l("YYYYYY",Ct,Nt),w(["YYYYY","YYYYYY"],Y),w("YYYY",function(t,e){e[Y]=t.length===2?h.parseTwoDigitYear(t):m(t)}),w("YY",function(t,e){e[Y]=h.parseTwoDigitYear(t)}),w("Y",function(t,e){e[Y]=parseInt(t,10)});function vt(t){return Ft(t)?366:365}h.parseTwoDigitYear=function(t){return m(t)+(m(t)>68?1900:2e3)};var Ae=ht("FullYear",!0);function ls(){return Ft(this.year())}function ht(t,e){return function(n){return n!=null?(Ve(this,t,n),h.updateOffset(this,e),this):kt(this,t)}}function kt(t,e){if(!t.isValid())return NaN;var n=t._d,s=t._isUTC;switch(e){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ve(t,e,n){var s,i,r,a,u;if(!(!t.isValid()||isNaN(n))){switch(s=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(i?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(i?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(i?s.setUTCHours(n):s.setHours(n));case"Date":return void(i?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}r=n,a=t.month(),u=t.date(),u=u===29&&a===1&&!Ft(r)?28:u,i?s.setUTCFullYear(r,a,u):s.setFullYear(r,a,u)}}function ds(t){return t=N(t),H(this[t])?this[t]():this}function cs(t,e){if(typeof t=="object"){t=re(t);var n=ns(t),s,i=n.length;for(s=0;s<i;s++)this[n[s].unit](t[n[s].unit])}else if(t=N(t),H(this[t]))return this[t](e);return this}function fs(t,e){return(t%e+e)%e}var S;Array.prototype.indexOf?S=Array.prototype.indexOf:S=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function le(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=fs(e,12);return t+=(e-n)/12,n===1?Ft(t)?29:28:31-n%7%2}c("M",["MM",2],"Mo",function(){return this.month()+1}),c("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),c("MMMM",0,0,function(t){return this.localeData().months(this,t)}),l("M",v,ut),l("MM",v,T),l("MMM",function(t,e){return e.monthsShortRegex(t)}),l("MMMM",function(t,e){return e.monthsRegex(t)}),w(["M","MM"],function(t,e){e[A]=m(t)-1}),w(["MMM","MMMM"],function(t,e,n,s){var i=n._locale.monthsParse(t,s,n._strict);i!=null?e[A]=i:f(n).invalidMonth=t});var ms="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ze="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ze=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_s=pt,ys=pt;function gs(t,e){return t?R(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ze).test(e)?"format":"standalone"][t.month()]:R(this._months)?this._months:this._months.standalone}function ps(t,e){return t?R(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ze.test(e)?"format":"standalone"][t.month()]:R(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ws(t,e,n){var s,i,r,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=E([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?e==="MMM"?(i=S.call(this._shortMonthsParse,a),i!==-1?i:null):(i=S.call(this._longMonthsParse,a),i!==-1?i:null):e==="MMM"?(i=S.call(this._shortMonthsParse,a),i!==-1?i:(i=S.call(this._longMonthsParse,a),i!==-1?i:null)):(i=S.call(this._longMonthsParse,a),i!==-1?i:(i=S.call(this._shortMonthsParse,a),i!==-1?i:null))}function vs(t,e,n){var s,i,r;if(this._monthsParseExact)return ws.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(i=E([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[s]&&(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[s].test(t)||n&&e==="MMM"&&this._shortMonthsParse[s].test(t)||!n&&this._monthsParse[s].test(t))return s}function Be(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=m(e);else if(e=t.localeData().monthsParse(e),!G(e))return t}var n=e,s=t.date();return s=s<29?s:Math.min(s,le(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,s):t._d.setMonth(n,s),t}function qe(t){return t!=null?(Be(this,t),h.updateOffset(this,!0),this):kt(this,"Month")}function ks(){return le(this.year(),this.month())}function Ms(t){return this._monthsParseExact?(g(this,"_monthsRegex")||$e.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(g(this,"_monthsShortRegex")||(this._monthsShortRegex=_s),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ss(t){return this._monthsParseExact?(g(this,"_monthsRegex")||$e.call(this),t?this._monthsStrictRegex:this._monthsRegex):(g(this,"_monthsRegex")||(this._monthsRegex=ys),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function $e(){function t(d,_){return _.length-d.length}var e=[],n=[],s=[],i,r,a,u;for(i=0;i<12;i++)r=E([2e3,i]),a=I(this.monthsShort(r,"")),u=I(this.months(r,"")),e.push(a),n.push(u),s.push(u),s.push(a);e.sort(t),n.sort(t),s.sort(t),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Ds(t,e,n,s,i,r,a){var u;return t<100&&t>=0?(u=new Date(t+400,e,n,s,i,r,a),isFinite(u.getFullYear())&&u.setFullYear(t)):u=new Date(t,e,n,s,i,r,a),u}function Mt(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Et(t,e,n){var s=7+e-n,i=(7+Mt(t,0,s).getUTCDay()-e)%7;return-i+s-1}function Je(t,e,n,s,i){var r=(7+n-s)%7,a=Et(t,s,i),u=1+7*(e-1)+r+a,d,_;return u<=0?(d=t-1,_=vt(d)+u):u>vt(t)?(d=t+1,_=u-vt(t)):(d=t,_=u),{year:d,dayOfYear:_}}function St(t,e,n){var s=Et(t.year(),e,n),i=Math.floor((t.dayOfYear()-s-1)/7)+1,r,a;return i<1?(a=t.year()-1,r=i+z(a,e,n)):i>z(t.year(),e,n)?(r=i-z(t.year(),e,n),a=t.year()+1):(a=t.year(),r=i),{week:r,year:a}}function z(t,e,n){var s=Et(t,e,n),i=Et(t+1,e,n);return(vt(t)-s+i)/7}c("w",["ww",2],"wo","week"),c("W",["WW",2],"Wo","isoWeek"),l("w",v,ut),l("ww",v,T),l("W",v,ut),l("WW",v,T),wt(["w","ww","W","WW"],function(t,e,n,s){e[s.substr(0,1)]=m(t)});function Ys(t){return St(t,this._week.dow,this._week.doy).week}var xs={dow:0,doy:6};function Os(){return this._week.dow}function Ts(){return this._week.doy}function bs(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function Ns(t){var e=St(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}c("d",0,"do","day"),c("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),c("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),c("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),c("e",0,0,"weekday"),c("E",0,0,"isoWeekday"),l("d",v),l("e",v),l("E",v),l("dd",function(t,e){return e.weekdaysMinRegex(t)}),l("ddd",function(t,e){return e.weekdaysShortRegex(t)}),l("dddd",function(t,e){return e.weekdaysRegex(t)}),wt(["dd","ddd","dddd"],function(t,e,n,s){var i=n._locale.weekdaysParse(t,s,n._strict);i!=null?e.d=i:f(n).invalidWeekday=t}),wt(["d","e","E"],function(t,e,n,s){e[s]=m(t)});function Ps(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function Cs(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function de(t,e){return t.slice(e,7).concat(t.slice(0,e))}var Rs="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ws="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ls=pt,Fs=pt,Es=pt;function Hs(t,e){var n=R(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?de(n,this._week.dow):t?n[t.day()]:n}function Us(t){return t===!0?de(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function js(t){return t===!0?de(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Gs(t,e,n){var s,i,r,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=E([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?e==="dddd"?(i=S.call(this._weekdaysParse,a),i!==-1?i:null):e==="ddd"?(i=S.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=S.call(this._minWeekdaysParse,a),i!==-1?i:null):e==="dddd"?(i=S.call(this._weekdaysParse,a),i!==-1||(i=S.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=S.call(this._minWeekdaysParse,a),i!==-1?i:null)):e==="ddd"?(i=S.call(this._shortWeekdaysParse,a),i!==-1||(i=S.call(this._weekdaysParse,a),i!==-1)?i:(i=S.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=S.call(this._minWeekdaysParse,a),i!==-1||(i=S.call(this._weekdaysParse,a),i!==-1)?i:(i=S.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function Is(t,e,n){var s,i,r;if(this._weekdaysParseExact)return Gs.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++)if(i=E([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[s].test(t)||n&&e==="ddd"&&this._shortWeekdaysParse[s].test(t)||n&&e==="dd"&&this._minWeekdaysParse[s].test(t)||!n&&this._weekdaysParse[s].test(t))return s}function As(t){if(!this.isValid())return t!=null?this:NaN;var e=kt(this,"Day");return t!=null?(t=Ps(t,this.localeData()),this.add(t-e,"d")):e}function Vs(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function zs(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=Cs(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Zs(t){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ce.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(g(this,"_weekdaysRegex")||(this._weekdaysRegex=Ls),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Bs(t){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ce.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(g(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fs),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qs(t){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ce.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(g(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Es),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ce(){function t(x,J){return J.length-x.length}var e=[],n=[],s=[],i=[],r,a,u,d,_;for(r=0;r<7;r++)a=E([2e3,1]).day(r),u=I(this.weekdaysMin(a,"")),d=I(this.weekdaysShort(a,"")),_=I(this.weekdays(a,"")),e.push(u),n.push(d),s.push(_),i.push(u),i.push(d),i.push(_);e.sort(t),n.sort(t),s.sort(t),i.sort(t),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function fe(){return this.hours()%12||12}function $s(){return this.hours()||24}c("H",["HH",2],0,"hour"),c("h",["hh",2],0,fe),c("k",["kk",2],0,$s),c("hmm",0,0,function(){return""+fe.apply(this)+U(this.minutes(),2)}),c("hmmss",0,0,function(){return""+fe.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),c("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),c("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)});function Xe(t,e){c(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}Xe("a",!0),Xe("A",!1);function Ke(t,e){return e._meridiemParse}l("a",Ke),l("A",Ke),l("H",v,ue),l("h",v,ut),l("k",v,ut),l("HH",v,T),l("hh",v,T),l("kk",v,T),l("hmm",Ge),l("hmmss",Ie),l("Hmm",Ge),l("Hmmss",Ie),w(["H","HH"],D),w(["k","kk"],function(t,e,n){var s=m(t);e[D]=s===24?0:s}),w(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),w(["h","hh"],function(t,e,n){e[D]=m(t),f(n).bigHour=!0}),w("hmm",function(t,e,n){var s=t.length-2;e[D]=m(t.substr(0,s)),e[L]=m(t.substr(s)),f(n).bigHour=!0}),w("hmmss",function(t,e,n){var s=t.length-4,i=t.length-2;e[D]=m(t.substr(0,s)),e[L]=m(t.substr(s,2)),e[V]=m(t.substr(i)),f(n).bigHour=!0}),w("Hmm",function(t,e,n){var s=t.length-2;e[D]=m(t.substr(0,s)),e[L]=m(t.substr(s))}),w("Hmmss",function(t,e,n){var s=t.length-4,i=t.length-2;e[D]=m(t.substr(0,s)),e[L]=m(t.substr(s,2)),e[V]=m(t.substr(i))});function Js(t){return(t+"").toLowerCase().charAt(0)==="p"}var Qs=/[ap]\.?m?\.?/i,Xs=ht("Hours",!0);function Ks(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var tn={calendar:Gn,longDateFormat:zn,invalidDate:Bn,ordinal:$n,dayOfMonthOrdinalParse:Jn,relativeTime:Xn,months:ms,monthsShort:ze,week:xs,weekdays:Rs,weekdaysMin:Ws,weekdaysShort:Qe,meridiemParse:Qs},M={},Dt={},Yt;function ti(t,e){var n,s=Math.min(t.length,e.length);for(n=0;n<s;n+=1)if(t[n]!==e[n])return n;return s}function en(t){return t&&t.toLowerCase().replace("_","-")}function ei(t){for(var e=0,n,s,i,r;e<t.length;){for(r=en(t[e]).split("-"),n=r.length,s=en(t[e+1]),s=s?s.split("-"):null;n>0;){if(i=Ht(r.slice(0,n).join("-")),i)return i;if(s&&s.length>=n&&ti(r,s)>=n-1)break;n--}e++}return Yt}function ni(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Ht(t){var e=null,n;if(M[t]===void 0&&typeof module<"u"&&module&&module.exports&&ni(t))try{e=Yt._abbr,n=require,n("./locale/"+t),K(e)}catch{M[t]=null}return M[t]}function K(t,e){var n;return t&&(O(e)?n=Z(t):n=me(t,e),n?Yt=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Yt._abbr}function me(t,e){if(e!==null){var n,s=tn;if(e.abbr=t,M[t]!=null)Fe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=M[t]._config;else if(e.parentLocale!=null)if(M[e.parentLocale]!=null)s=M[e.parentLocale]._config;else if(n=Ht(e.parentLocale),n!=null)s=n._config;else return Dt[e.parentLocale]||(Dt[e.parentLocale]=[]),Dt[e.parentLocale].push({name:t,config:e}),null;return M[t]=new ee(te(s,e)),Dt[t]&&Dt[t].forEach(function(i){me(i.name,i.config)}),K(t),M[t]}else return delete M[t],null}function si(t,e){if(e!=null){var n,s,i=tn;M[t]!=null&&M[t].parentLocale!=null?M[t].set(te(M[t]._config,e)):(s=Ht(t),s!=null&&(i=s._config),e=te(i,e),s==null&&(e.abbr=t),n=new ee(e),n.parentLocale=M[t],M[t]=n),K(t)}else M[t]!=null&&(M[t].parentLocale!=null?(M[t]=M[t].parentLocale,t===K()&&K(t)):M[t]!=null&&delete M[t]);return M[t]}function Z(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Yt;if(!R(t)){if(e=Ht(t),e)return e;t=[t]}return ei(t)}function ii(){return ne(M)}function _e(t){var e,n=t._a;return n&&f(t).overflow===-2&&(e=n[A]<0||n[A]>11?A:n[j]<1||n[j]>le(n[Y],n[A])?j:n[D]<0||n[D]>24||n[D]===24&&(n[L]!==0||n[V]!==0||n[st]!==0)?D:n[L]<0||n[L]>59?L:n[V]<0||n[V]>59?V:n[st]<0||n[st]>999?st:-1,f(t)._overflowDayOfYear&&(e<Y||e>j)&&(e=j),f(t)._overflowWeeks&&e===-1&&(e=us),f(t)._overflowWeekday&&e===-1&&(e=hs),f(t).overflow=e),t}var ri=/^\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)?)?$/,ai=/^\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)?)?$/,oi=/Z|[+-]\d\d(?::?\d\d)?/,Ut=[["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]],ye=[["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/]],ui=/^\/?Date\((-?\d+)/i,hi=/^(?:(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}))$/,li={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 nn(t){var e,n,s=t._i,i=ri.exec(s)||ai.exec(s),r,a,u,d,_=Ut.length,x=ye.length;if(i){for(f(t).iso=!0,e=0,n=_;e<n;e++)if(Ut[e][1].exec(i[1])){a=Ut[e][0],r=Ut[e][2]!==!1;break}if(a==null){t._isValid=!1;return}if(i[3]){for(e=0,n=x;e<n;e++)if(ye[e][1].exec(i[3])){u=(i[2]||" ")+ye[e][0];break}if(u==null){t._isValid=!1;return}}if(!r&&u!=null){t._isValid=!1;return}if(i[4])if(oi.exec(i[4]))d="Z";else{t._isValid=!1;return}t._f=a+(u||"")+(d||""),pe(t)}else t._isValid=!1}function di(t,e,n,s,i,r){var a=[ci(t),ze.indexOf(e),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a}function ci(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function fi(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function mi(t,e,n){if(t){var s=Qe.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(s!==i)return f(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function _i(t,e,n){if(t)return li[t];if(e)return 0;var s=parseInt(n,10),i=s%100,r=(s-i)/100;return r*60+i}function sn(t){var e=hi.exec(fi(t._i)),n;if(e){if(n=di(e[4],e[3],e[2],e[5],e[6],e[7]),!mi(e[1],n,t))return;t._a=n,t._tzm=_i(e[8],e[9],e[10]),t._d=Mt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function yi(t){var e=ui.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(nn(t),t._isValid===!1)delete t._isValid;else return;if(sn(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:h.createFromInputFallback(t)}h.createFromInputFallback=b("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 lt(t,e,n){return t??e??n}function gi(t){var e=new Date(h.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function ge(t){var e,n,s=[],i,r,a;if(!t._d){for(i=gi(t),t._w&&t._a[j]==null&&t._a[A]==null&&pi(t),t._dayOfYear!=null&&(a=lt(t._a[Y],i[Y]),(t._dayOfYear>vt(a)||t._dayOfYear===0)&&(f(t)._overflowDayOfYear=!0),n=Mt(a,0,t._dayOfYear),t._a[A]=n.getUTCMonth(),t._a[j]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[D]===24&&t._a[L]===0&&t._a[V]===0&&t._a[st]===0&&(t._nextDay=!0,t._a[D]=0),t._d=(t._useUTC?Mt:Ds).apply(null,s),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[D]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==r&&(f(t).weekdayMismatch=!0)}}function pi(t){var e,n,s,i,r,a,u,d,_;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(r=1,a=4,n=lt(e.GG,t._a[Y],St(k(),1,4).year),s=lt(e.W,1),i=lt(e.E,1),(i<1||i>7)&&(d=!0)):(r=t._locale._week.dow,a=t._locale._week.doy,_=St(k(),r,a),n=lt(e.gg,t._a[Y],_.year),s=lt(e.w,_.week),e.d!=null?(i=e.d,(i<0||i>6)&&(d=!0)):e.e!=null?(i=e.e+r,(e.e<0||e.e>6)&&(d=!0)):i=r),s<1||s>z(n,r,a)?f(t)._overflowWeeks=!0:d!=null?f(t)._overflowWeekday=!0:(u=Je(n,s,i,r,a),t._a[Y]=u.year,t._dayOfYear=u.dayOfYear)}h.ISO_8601=function(){},h.RFC_2822=function(){};function pe(t){if(t._f===h.ISO_8601){nn(t);return}if(t._f===h.RFC_2822){sn(t);return}t._a=[],f(t).empty=!0;var e=""+t._i,n,s,i,r,a,u=e.length,d=0,_,x;for(i=Ee(t._f,t._locale).match(se)||[],x=i.length,n=0;n<x;n++)r=i[n],s=(e.match(rs(r,t))||[])[0],s&&(a=e.substr(0,e.indexOf(s)),a.length>0&&f(t).unusedInput.push(a),e=e.slice(e.indexOf(s)+s.length),d+=s.length),at[r]?(s?f(t).empty=!1:f(t).unusedTokens.push(r),os(r,s,t)):t._strict&&!s&&f(t).unusedTokens.push(r);f(t).charsLeftOver=u-d,e.length>0&&f(t).unusedInput.push(e),t._a[D]<=12&&f(t).bigHour===!0&&t._a[D]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[D]=wi(t._locale,t._a[D],t._meridiem),_=f(t).era,_!==null&&(t._a[Y]=t._locale.erasConvertYear(_,t._a[Y])),ge(t),_e(t)}function wi(t,e,n){var s;return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(s=t.isPM(n),s&&e<12&&(e+=12),!s&&e===12&&(e=0)),e)}function vi(t){var e,n,s,i,r,a,u=!1,d=t._f.length;if(d===0){f(t).invalidFormat=!0,t._d=new Date(NaN);return}for(i=0;i<d;i++)r=0,a=!1,e=Kt({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[i],pe(e),Qt(e)&&(a=!0),r+=f(e).charsLeftOver,r+=f(e).unusedTokens.length*10,f(e).score=r,u?r<s&&(s=r,n=e):(s==null||r<s||a)&&(s=r,n=e,a&&(u=!0));X(t,n||e)}function ki(t){if(!t._d){var e=re(t._i),n=e.day===void 0?e.date:e.day;t._a=Ce([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(s){return s&&parseInt(s,10)}),ge(t)}}function Mi(t){var e=new gt(_e(rn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function rn(t){var e=t._i,n=t._f;return t._locale=t._locale||Z(t._l),e===null||n===void 0&&e===""?Ot({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),W(e)?new gt(_e(e)):(yt(e)?t._d=e:R(n)?vi(t):n?pe(t):Si(t),Qt(t)||(t._d=null),t))}function Si(t){var e=t._i;O(e)?t._d=new Date(h.now()):yt(e)?t._d=new Date(e.valueOf()):typeof e=="string"?yi(t):R(e)?(t._a=Ce(e.slice(0),function(n){return parseInt(n,10)}),ge(t)):nt(e)?ki(t):G(e)?t._d=new Date(e):h.createFromInputFallback(t)}function an(t,e,n,s,i){var r={};return(e===!0||e===!1)&&(s=e,e=void 0),(n===!0||n===!1)&&(s=n,n=void 0),(nt(t)&&$t(t)||R(t)&&t.length===0)&&(t=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=t,r._f=e,r._strict=s,Mi(r)}function k(t,e,n,s){return an(t,e,n,s,!1)}var Di=b("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=k.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Ot()}),Yi=b("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=k.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Ot()});function on(t,e){var n,s;if(e.length===1&&R(e[0])&&(e=e[0]),!e.length)return k();for(n=e[0],s=1;s<e.length;++s)(!e[s].isValid()||e[s][t](n))&&(n=e[s]);return n}function xi(){var t=[].slice.call(arguments,0);return on("isBefore",t)}function Oi(){var t=[].slice.call(arguments,0);return on("isAfter",t)}var Ti=function(){return Date.now?Date.now():+new Date},xt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function bi(t){var e,n=!1,s,i=xt.length;for(e in t)if(g(t,e)&&!(S.call(xt,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(s=0;s<i;++s)if(t[xt[s]]){if(n)return!1;parseFloat(t[xt[s]])!==m(t[xt[s]])&&(n=!0)}return!0}function Ni(){return this._isValid}function Pi(){return F(NaN)}function jt(t){var e=re(t),n=e.year||0,s=e.quarter||0,i=e.month||0,r=e.week||e.isoWeek||0,a=e.day||0,u=e.hour||0,d=e.minute||0,_=e.second||0,x=e.millisecond||0;this._isValid=bi(e),this._milliseconds=+x+_*1e3+d*6e4+u*1e3*60*60,this._days=+a+r*7,this._months=+i+s*3+n*12,this._data={},this._locale=Z(),this._bubble()}function Gt(t){return t instanceof jt}function we(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function Ci(t,e,n){var s=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),r=0,a;for(a=0;a<s;a++)m(t[a])!==m(e[a])&&r++;return r+i}function un(t,e){c(t,0,0,function(){var n=this.utcOffset(),s="+";return n<0&&(n=-n,s="-"),s+U(~~(n/60),2)+e+U(~~n%60,2)})}un("Z",":"),un("ZZ",""),l("Z",Wt),l("ZZ",Wt),w(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=ve(Wt,t)});var Ri=/([\+\-]|\d\d)/gi;function ve(t,e){var n=(e||"").match(t),s,i,r;return n===null?null:(s=n[n.length-1]||[],i=(s+"").match(Ri)||["-",0,0],r=+(i[1]*60)+m(i[2]),r===0?0:i[0]==="+"?r:-r)}function ke(t,e){var n,s;return e._isUTC?(n=e.clone(),s=(W(t)||yt(t)?t.valueOf():k(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),h.updateOffset(n,!1),n):k(t).local()}function Me(t){return-Math.round(t._d.getTimezoneOffset())}h.updateOffset=function(){};function Wi(t,e,n){var s=this._offset||0,i;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=ve(Wt,t),t===null)return this}else Math.abs(t)<16&&!n&&(t=t*60);return!this._isUTC&&e&&(i=Me(this)),this._offset=t,this._isUTC=!0,i!=null&&this.add(i,"m"),s!==t&&(!e||this._changeInProgress?cn(this,F(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Me(this)}function Li(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Fi(t){return this.utcOffset(0,t)}function Ei(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Me(this),"m")),this}function Hi(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=ve(ss,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Ui(t){return this.isValid()?(t=t?k(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function ji(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gi(){if(!O(this._isDSTShifted))return this._isDSTShifted;var t={},e;return Kt(t,this),t=rn(t),t._a?(e=t._isUTC?E(t._a):k(t._a),this._isDSTShifted=this.isValid()&&Ci(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ii(){return this.isValid()?!this._isUTC:!1}function Ai(){return this.isValid()?this._isUTC:!1}function hn(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Vi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function F(t,e){var n=t,s=null,i,r,a;return Gt(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:G(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(s=Vi.exec(t))?(i=s[1]==="-"?-1:1,n={y:0,d:m(s[j])*i,h:m(s[D])*i,m:m(s[L])*i,s:m(s[V])*i,ms:m(we(s[st]*1e3))*i}):(s=zi.exec(t))?(i=s[1]==="-"?-1:1,n={y:it(s[2],i),M:it(s[3],i),w:it(s[4],i),d:it(s[5],i),h:it(s[6],i),m:it(s[7],i),s:it(s[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=Zi(k(n.from),k(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),r=new jt(n),Gt(t)&&g(t,"_locale")&&(r._locale=t._locale),Gt(t)&&g(t,"_isValid")&&(r._isValid=t._isValid),r}F.fn=jt.prototype,F.invalid=Pi;function it(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function ln(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Zi(t,e){var n;return t.isValid()&&e.isValid()?(e=ke(e,t),t.isBefore(e)?n=ln(t,e):(n=ln(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function dn(t,e){return function(n,s){var i,r;return s!==null&&!isNaN(+s)&&(Fe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=s,s=r),i=F(n,s),cn(this,i,t),this}}function cn(t,e,n,s){var i=e._milliseconds,r=we(e._days),a=we(e._months);t.isValid()&&(s=s??!0,a&&Be(t,kt(t,"Month")+a*n),r&&Ve(t,"Date",kt(t,"Date")+r*n),i&&t._d.setTime(t._d.valueOf()+i*n),s&&h.updateOffset(t,r||a))}var Bi=dn(1,"add"),qi=dn(-1,"subtract");function fn(t){return typeof t=="string"||t instanceof String}function $i(t){return W(t)||yt(t)||fn(t)||G(t)||Qi(t)||Ji(t)||t===null||t===void 0}function Ji(t){var e=nt(t)&&!$t(t),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,r,a=s.length;for(i=0;i<a;i+=1)r=s[i],n=n||g(t,r);return e&&n}function Qi(t){var e=R(t),n=!1;return e&&(n=t.filter(function(s){return!G(s)&&fn(t)}).length===0),e&&n}function Xi(t){var e=nt(t)&&!$t(t),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,r;for(i=0;i<s.length;i+=1)r=s[i],n=n||g(t,r);return e&&n}function Ki(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function tr(t,e){arguments.length===1&&(arguments[0]?$i(arguments[0])?(t=arguments[0],e=void 0):Xi(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||k(),s=ke(n,this).startOf("day"),i=h.calendarFormat(this,s)||"sameElse",r=e&&(H(e[i])?e[i].call(this,n):e[i]);return this.format(r||this.localeData().calendar(i,this,k(n)))}function er(){return new gt(this)}function nr(t,e){var n=W(t)?t:k(t);return this.isValid()&&n.isValid()?(e=N(e)||"millisecond",e==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()):!1}function sr(t,e){var n=W(t)?t:k(t);return this.isValid()&&n.isValid()?(e=N(e)||"millisecond",e==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()):!1}function ir(t,e,n,s){var i=W(t)?t:k(t),r=W(e)?e:k(e);return this.isValid()&&i.isValid()&&r.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(s[1]===")"?this.isBefore(r,n):!this.isAfter(r,n))):!1}function rr(t,e){var n=W(t)?t:k(t),s;return this.isValid()&&n.isValid()?(e=N(e)||"millisecond",e==="millisecond"?this.valueOf()===n.valueOf():(s=n.valueOf(),this.clone().startOf(e).valueOf()<=s&&s<=this.clone().endOf(e).valueOf())):!1}function ar(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function or(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function ur(t,e,n){var s,i,r;if(!this.isValid())return NaN;if(s=ke(t,this),!s.isValid())return NaN;switch(i=(s.utcOffset()-this.utcOffset())*6e4,e=N(e),e){case"year":r=It(this,s)/12;break;case"month":r=It(this,s);break;case"quarter":r=It(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:P(r)}function It(t,e){if(t.date()<e.date())return-It(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),s=t.clone().add(n,"months"),i,r;return e-s<0?(i=t.clone().add(n-1,"months"),r=(e-s)/(s-i)):(i=t.clone().add(n+1,"months"),r=(e-s)/(i-s)),-(n+r)||0}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function hr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function lr(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?bt(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):H(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",bt(n,"Z")):bt(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function dr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,s,i,r;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",r=e+'[")]',this.format(n+s+i+r)}function cr(t){t||(t=this.isUtc()?h.defaultFormatUtc:h.defaultFormat);var e=bt(this,t);return this.localeData().postformat(e)}function fr(t,e){return this.isValid()&&(W(t)&&t.isValid()||k(t).isValid())?F({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function mr(t){return this.from(k(),t)}function _r(t,e){return this.isValid()&&(W(t)&&t.isValid()||k(t).isValid())?F({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function yr(t){return this.to(k(),t)}function mn(t){var e;return t===void 0?this._locale._abbr:(e=Z(t),e!=null&&(this._locale=e),this)}var _n=b("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 yn(){return this._locale}var At=1e3,dt=60*At,Vt=60*dt,gn=(365*400+97)*24*Vt;function ct(t,e){return(t%e+e)%e}function pn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-gn:new Date(t,e,n).valueOf()}function wn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-gn:Date.UTC(t,e,n)}function gr(t){var e,n;if(t=N(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?wn:pn,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ct(e+(this._isUTC?0:this.utcOffset()*dt),Vt);break;case"minute":e=this._d.valueOf(),e-=ct(e,dt);break;case"second":e=this._d.valueOf(),e-=ct(e,At);break}return this._d.setTime(e),h.updateOffset(this,!0),this}function pr(t){var e,n;if(t=N(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?wn:pn,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Vt-ct(e+(this._isUTC?0:this.utcOffset()*dt),Vt)-1;break;case"minute":e=this._d.valueOf(),e+=dt-ct(e,dt)-1;break;case"second":e=this._d.valueOf(),e+=At-ct(e,At)-1;break}return this._d.setTime(e),h.updateOffset(this,!0),this}function wr(){return this._d.valueOf()-(this._offset||0)*6e4}function vr(){return Math.floor(this.valueOf()/1e3)}function kr(){return new Date(this.valueOf())}function Mr(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Sr(){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 Dr(){return this.isValid()?this.toISOString():null}function Yr(){return Qt(this)}function xr(){return X({},f(this))}function Or(){return f(this).overflow}function Tr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}c("N",0,0,"eraAbbr"),c("NN",0,0,"eraAbbr"),c("NNN",0,0,"eraAbbr"),c("NNNN",0,0,"eraName"),c("NNNNN",0,0,"eraNarrow"),c("y",["y",1],"yo","eraYear"),c("y",["yy",2],0,"eraYear"),c("y",["yyy",3],0,"eraYear"),c("y",["yyyy",4],0,"eraYear"),l("N",Se),l("NN",Se),l("NNN",Se),l("NNNN",Ur),l("NNNNN",jr),w(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,s){var i=n._locale.erasParse(t,s,n._strict);i?f(n).era=i:f(n).invalidEra=t}),l("y",ot),l("yy",ot),l("yyy",ot),l("yyyy",ot),l("yo",Gr),w(["y","yy","yyy","yyyy"],Y),w(["yo"],function(t,e,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Y]=n._locale.eraYearOrdinalParse(t,i):e[Y]=parseInt(t,10)});function br(t,e){var n,s,i,r=this._eras||Z("en")._eras;for(n=0,s=r.length;n<s;++n){switch(typeof r[n].since){case"string":i=h(r[n].since).startOf("day"),r[n].since=i.valueOf();break}switch(typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":i=h(r[n].until).startOf("day").valueOf(),r[n].until=i.valueOf();break}}return r}function Nr(t,e,n){var s,i,r=this.eras(),a,u,d;for(t=t.toUpperCase(),s=0,i=r.length;s<i;++s)if(a=r[s].name.toUpperCase(),u=r[s].abbr.toUpperCase(),d=r[s].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(u===t)return r[s];break;case"NNNN":if(a===t)return r[s];break;case"NNNNN":if(d===t)return r[s];break}else if([a,u,d].indexOf(t)>=0)return r[s]}function Pr(t,e){var n=t.since<=t.until?1:-1;return e===void 0?h(t.since).year():h(t.since).year()+(e-t.offset)*n}function Cr(){var t,e,n,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),s[t].since<=n&&n<=s[t].until||s[t].until<=n&&n<=s[t].since)return s[t].name;return""}function Rr(){var t,e,n,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),s[t].since<=n&&n<=s[t].until||s[t].until<=n&&n<=s[t].since)return s[t].narrow;return""}function Wr(){var t,e,n,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),s[t].since<=n&&n<=s[t].until||s[t].until<=n&&n<=s[t].since)return s[t].abbr;return""}function Lr(){var t,e,n,s,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(n=i[t].since<=i[t].until?1:-1,s=this.clone().startOf("day").valueOf(),i[t].since<=s&&s<=i[t].until||i[t].until<=s&&s<=i[t].since)return(this.year()-h(i[t].since).year())*n+i[t].offset;return this.year()}function Fr(t){return g(this,"_erasNameRegex")||De.call(this),t?this._erasNameRegex:this._erasRegex}function Er(t){return g(this,"_erasAbbrRegex")||De.call(this),t?this._erasAbbrRegex:this._erasRegex}function Hr(t){return g(this,"_erasNarrowRegex")||De.call(this),t?this._erasNarrowRegex:this._erasRegex}function Se(t,e){return e.erasAbbrRegex(t)}function Ur(t,e){return e.erasNameRegex(t)}function jr(t,e){return e.erasNarrowRegex(t)}function Gr(t,e){return e._eraYearOrdinalRegex||ot}function De(){var t=[],e=[],n=[],s=[],i,r,a,u,d,_=this.eras();for(i=0,r=_.length;i<r;++i)a=I(_[i].name),u=I(_[i].abbr),d=I(_[i].narrow),e.push(a),t.push(u),n.push(d),s.push(a),s.push(u),s.push(d);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}c(0,["gg",2],0,function(){return this.weekYear()%100}),c(0,["GG",2],0,function(){return this.isoWeekYear()%100});function zt(t,e){c(0,[t,t.length],0,e)}zt("gggg","weekYear"),zt("ggggg","weekYear"),zt("GGGG","isoWeekYear"),zt("GGGGG","isoWeekYear"),l("G",Rt),l("g",Rt),l("GG",v,T),l("gg",v,T),l("GGGG",oe,ae),l("gggg",oe,ae),l("GGGGG",Ct,Nt),l("ggggg",Ct,Nt),wt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,s){e[s.substr(0,2)]=m(t)}),wt(["gg","GG"],function(t,e,n,s){e[s]=h.parseTwoDigitYear(t)});function Ir(t){return vn.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ar(t){return vn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Vr(){return z(this.year(),1,4)}function zr(){return z(this.isoWeekYear(),1,4)}function Zr(){var t=this.localeData()._week;return z(this.year(),t.dow,t.doy)}function Br(){var t=this.localeData()._week;return z(this.weekYear(),t.dow,t.doy)}function vn(t,e,n,s,i){var r;return t==null?St(this,s,i).year:(r=z(t,s,i),e>r&&(e=r),qr.call(this,t,e,n,s,i))}function qr(t,e,n,s,i){var r=Je(t,e,n,s,i),a=Mt(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}c("Q",0,"Qo","quarter"),l("Q",Ue),w("Q",function(t,e){e[A]=(m(t)-1)*3});function $r(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}c("D",["DD",2],"Do","date"),l("D",v,ut),l("DD",v,T),l("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),w(["D","DD"],j),w("Do",function(t,e){e[j]=m(t.match(v)[0])});var kn=ht("Date",!0);c("DDD",["DDDD",3],"DDDo","dayOfYear"),l("DDD",Pt),l("DDDD",je),w(["DDD","DDDD"],function(t,e,n){n._dayOfYear=m(t)});function Jr(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}c("m",["mm",2],0,"minute"),l("m",v,ue),l("mm",v,T),w(["m","mm"],L);var Qr=ht("Minutes",!1);c("s",["ss",2],0,"second"),l("s",v,ue),l("ss",v,T),w(["s","ss"],V);var Xr=ht("Seconds",!1);c("S",0,0,function(){return~~(this.millisecond()/100)}),c(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),c(0,["SSS",3],0,"millisecond"),c(0,["SSSS",4],0,function(){return this.millisecond()*10}),c(0,["SSSSS",5],0,function(){return this.millisecond()*100}),c(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),c(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),c(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),c(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),l("S",Pt,Ue),l("SS",Pt,T),l("SSS",Pt,je);var tt,Mn;for(tt="SSSS";tt.length<=9;tt+="S")l(tt,ot);function Kr(t,e){e[st]=m(("0."+t)*1e3)}for(tt="S";tt.length<=9;tt+="S")w(tt,Kr);Mn=ht("Milliseconds",!1),c("z",0,0,"zoneAbbr"),c("zz",0,0,"zoneName");function ta(){return this._isUTC?"UTC":""}function ea(){return this._isUTC?"Coordinated Universal Time":""}var o=gt.prototype;o.add=Bi,o.calendar=tr,o.clone=er,o.diff=ur,o.endOf=pr,o.format=cr,o.from=fr,o.fromNow=mr,o.to=_r,o.toNow=yr,o.get=ds,o.invalidAt=Or,o.isAfter=nr,o.isBefore=sr,o.isBetween=ir,o.isSame=rr,o.isSameOrAfter=ar,o.isSameOrBefore=or,o.isValid=Yr,o.lang=_n,o.locale=mn,o.localeData=yn,o.max=Yi,o.min=Di,o.parsingFlags=xr,o.set=cs,o.startOf=gr,o.subtract=qi,o.toArray=Mr,o.toObject=Sr,o.toDate=kr,o.toISOString=lr,o.inspect=dr,typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=Dr,o.toString=hr,o.unix=vr,o.valueOf=wr,o.creationData=Tr,o.eraName=Cr,o.eraNarrow=Rr,o.eraAbbr=Wr,o.eraYear=Lr,o.year=Ae,o.isLeapYear=ls,o.weekYear=Ir,o.isoWeekYear=Ar,o.quarter=o.quarters=$r,o.month=qe,o.daysInMonth=ks,o.week=o.weeks=bs,o.isoWeek=o.isoWeeks=Ns,o.weeksInYear=Zr,o.weeksInWeekYear=Br,o.isoWeeksInYear=Vr,o.isoWeeksInISOWeekYear=zr,o.date=kn,o.day=o.days=As,o.weekday=Vs,o.isoWeekday=zs,o.dayOfYear=Jr,o.hour=o.hours=Xs,o.minute=o.minutes=Qr,o.second=o.seconds=Xr,o.millisecond=o.milliseconds=Mn,o.utcOffset=Wi,o.utc=Fi,o.local=Ei,o.parseZone=Hi,o.hasAlignedHourOffset=Ui,o.isDST=ji,o.isLocal=Ii,o.isUtcOffset=Ai,o.isUtc=hn,o.isUTC=hn,o.zoneAbbr=ta,o.zoneName=ea,o.dates=b("dates accessor is deprecated. Use date instead.",kn),o.months=b("months accessor is deprecated. Use month instead",qe),o.years=b("years accessor is deprecated. Use year instead",Ae),o.zone=b("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Li),o.isDSTShifted=b("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Gi);function na(t){return k(t*1e3)}function sa(){return k.apply(null,arguments).parseZone()}function Sn(t){return t}var p=ee.prototype;p.calendar=In,p.longDateFormat=Zn,p.invalidDate=qn,p.ordinal=Qn,p.preparse=Sn,p.postformat=Sn,p.relativeTime=Kn,p.pastFuture=ts,p.set=jn,p.eras=br,p.erasParse=Nr,p.erasConvertYear=Pr,p.erasAbbrRegex=Er,p.erasNameRegex=Fr,p.erasNarrowRegex=Hr,p.months=gs,p.monthsShort=ps,p.monthsParse=vs,p.monthsRegex=Ss,p.monthsShortRegex=Ms,p.week=Ys,p.firstDayOfYear=Ts,p.firstDayOfWeek=Os,p.weekdays=Hs,p.weekdaysMin=js,p.weekdaysShort=Us,p.weekdaysParse=Is,p.weekdaysRegex=Zs,p.weekdaysShortRegex=Bs,p.weekdaysMinRegex=qs,p.isPM=Js,p.meridiem=Ks;function Zt(t,e,n,s){var i=Z(),r=E().set(s,e);return i[n](r,t)}function Dn(t,e,n){if(G(t)&&(e=t,t=void 0),t=t||"",e!=null)return Zt(t,e,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=Zt(t,s,n,"month");return i}function Ye(t,e,n,s){typeof t=="boolean"?(G(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,G(e)&&(n=e,e=void 0),e=e||"");var i=Z(),r=t?i._week.dow:0,a,u=[];if(n!=null)return Zt(e,(n+r)%7,s,"day");for(a=0;a<7;a++)u[a]=Zt(e,(a+r)%7,s,"day");return u}function ia(t,e){return Dn(t,e,"months")}function ra(t,e){return Dn(t,e,"monthsShort")}function aa(t,e,n){return Ye(t,e,n,"weekdays")}function oa(t,e,n){return Ye(t,e,n,"weekdaysShort")}function ua(t,e,n){return Ye(t,e,n,"weekdaysMin")}K("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=m(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}}),h.lang=b("moment.lang is deprecated. Use moment.locale instead.",K),h.langData=b("moment.langData is deprecated. Use moment.localeData instead.",Z);var B=Math.abs;function ha(){var t=this._data;return this._milliseconds=B(this._milliseconds),this._days=B(this._days),this._months=B(this._months),t.milliseconds=B(t.milliseconds),t.seconds=B(t.seconds),t.minutes=B(t.minutes),t.hours=B(t.hours),t.months=B(t.months),t.years=B(t.years),this}function Yn(t,e,n,s){var i=F(e,n);return t._milliseconds+=s*i._milliseconds,t._days+=s*i._days,t._months+=s*i._months,t._bubble()}function la(t,e){return Yn(this,t,e,1)}function da(t,e){return Yn(this,t,e,-1)}function xn(t){return t<0?Math.floor(t):Math.ceil(t)}function ca(){var t=this._milliseconds,e=this._days,n=this._months,s=this._data,i,r,a,u,d;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=xn(xe(n)+e)*864e5,e=0,n=0),s.milliseconds=t%1e3,i=P(t/1e3),s.seconds=i%60,r=P(i/60),s.minutes=r%60,a=P(r/60),s.hours=a%24,e+=P(a/24),d=P(On(e)),n+=d,e-=xn(xe(d)),u=P(n/12),n%=12,s.days=e,s.months=n,s.years=u,this}function On(t){return t*4800/146097}function xe(t){return t*146097/4800}function fa(t){if(!this.isValid())return NaN;var e,n,s=this._milliseconds;if(t=N(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+s/864e5,n=this._months+On(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(xe(this._months)),t){case"week":return e/7+s/6048e5;case"day":return e+s/864e5;case"hour":return e*24+s/36e5;case"minute":return e*1440+s/6e4;case"second":return e*86400+s/1e3;case"millisecond":return Math.floor(e*864e5)+s;default:throw new Error("Unknown unit "+t)}}function q(t){return function(){return this.as(t)}}var Tn=q("ms"),ma=q("s"),_a=q("m"),ya=q("h"),ga=q("d"),pa=q("w"),wa=q("M"),va=q("Q"),ka=q("y"),Ma=Tn;function Sa(){return F(this)}function Da(t){return t=N(t),this.isValid()?this[t+"s"]():NaN}function rt(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ya=rt("milliseconds"),xa=rt("seconds"),Oa=rt("minutes"),Ta=rt("hours"),ba=rt("days"),Na=rt("months"),Pa=rt("years");function Ca(){return P(this.days()/7)}var $=Math.round,ft={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ra(t,e,n,s,i){return i.relativeTime(e||1,!!n,t,s)}function Wa(t,e,n,s){var i=F(t).abs(),r=$(i.as("s")),a=$(i.as("m")),u=$(i.as("h")),d=$(i.as("d")),_=$(i.as("M")),x=$(i.as("w")),J=$(i.as("y")),et=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||a<=1&&["m"]||a<n.m&&["mm",a]||u<=1&&["h"]||u<n.h&&["hh",u]||d<=1&&["d"]||d<n.d&&["dd",d];return n.w!=null&&(et=et||x<=1&&["w"]||x<n.w&&["ww",x]),et=et||_<=1&&["M"]||_<n.M&&["MM",_]||J<=1&&["y"]||["yy",J],et[2]=e,et[3]=+t>0,et[4]=s,Ra.apply(null,et)}function La(t){return t===void 0?$:typeof t=="function"?($=t,!0):!1}function Fa(t,e){return ft[t]===void 0?!1:e===void 0?ft[t]:(ft[t]=e,t==="s"&&(ft.ss=e-1),!0)}function Ea(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=ft,i,r;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(s=Object.assign({},ft,e),e.s!=null&&e.ss==null&&(s.ss=e.s-1)),i=this.localeData(),r=Wa(this,!n,s,i),n&&(r=i.pastFuture(+this,r)),i.postformat(r)}var Oe=Math.abs;function mt(t){return(t>0)-(t<0)||+t}function Bt(){if(!this.isValid())return this.localeData().invalidDate();var t=Oe(this._milliseconds)/1e3,e=Oe(this._days),n=Oe(this._months),s,i,r,a,u=this.asSeconds(),d,_,x,J;return u?(s=P(t/60),i=P(s/60),t%=60,s%=60,r=P(n/12),n%=12,a=t?t.toFixed(3).replace(/\.?0+$/,""):"",d=u<0?"-":"",_=mt(this._months)!==mt(u)?"-":"",x=mt(this._days)!==mt(u)?"-":"",J=mt(this._milliseconds)!==mt(u)?"-":"",d+"P"+(r?_+r+"Y":"")+(n?_+n+"M":"")+(e?x+e+"D":"")+(i||s||t?"T":"")+(i?J+i+"H":"")+(s?J+s+"M":"")+(t?J+a+"S":"")):"P0D"}var y=jt.prototype;y.isValid=Ni,y.abs=ha,y.add=la,y.subtract=da,y.as=fa,y.asMilliseconds=Tn,y.asSeconds=ma,y.asMinutes=_a,y.asHours=ya,y.asDays=ga,y.asWeeks=pa,y.asMonths=wa,y.asQuarters=va,y.asYears=ka,y.valueOf=Ma,y._bubble=ca,y.clone=Sa,y.get=Da,y.milliseconds=Ya,y.seconds=xa,y.minutes=Oa,y.hours=Ta,y.days=ba,y.weeks=Ca,y.months=Na,y.years=Pa,y.humanize=Ea,y.toISOString=Bt,y.toString=Bt,y.toJSON=Bt,y.locale=mn,y.localeData=yn,y.toIsoString=b("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Bt),y.lang=_n,c("X",0,0,"unix"),c("x",0,0,"valueOf"),l("x",Rt),l("X",is),w("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)}),w("x",function(t,e,n){n._d=new Date(m(t))});//! moment.js
10
- h.version="2.30.1",Hn(k),h.fn=o,h.min=xi,h.max=Oi,h.now=Ti,h.utc=E,h.unix=na,h.months=ia,h.isDate=yt,h.locale=K,h.invalid=Ot,h.duration=F,h.isMoment=W,h.weekdays=aa,h.parseZone=sa,h.localeData=Z,h.isDuration=Gt,h.monthsShort=ra,h.weekdaysMin=ua,h.defineLocale=me,h.updateLocale=si,h.locales=ii,h.weekdaysShort=oa,h.normalizeUnits=N,h.relativeTimeRounding=La,h.relativeTimeThreshold=Fa,h.calendarFormat=Ki,h.prototype=o,h.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 Ha=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ua=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,bn=/(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,Te=[/^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],ja={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:bn,monthsShortRegex:bn,monthsStrictRegex:Ha,monthsShortStrictRegex:Ua,monthsParse:Te,longMonthsParse:Te,shortMonthsParse:Te,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:(t,e)=>{switch(e){case"D":return t+(t===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(t===1?"er":"e");case"w":case"W":return t+(t===1?"re":"e")}},week:{dow:1,doy:4}};h.locale("fr",ja);const Nn=t=>({x:Ne(t)?t:t.x||0,y:Ne(t)?t:t.y||0}),Ga={x:0,y:0,width:0,height:0,color:"white",padding:0,origin:_t.TOP_LEFT,composite:"source-over"},Ia=t=>({context:t.context,options:{...Ga},setPosition(e,n){return this.options.x=e,this.options.y=n,this},setDimensions(e,n){return this.options.width=e,this.options.height=n,this},setColor(e){return this.options.color=e,this},setPadding(e){return this.options.padding=e,this},setOrigin(e){return this.options.origin=e,this},setComposite(e){return this.options.composite=e,this},draw(){this.context.save(),this.context.globalCompositeOperation=this.options.composite;const{x:e,y:n}=qt[this.options.origin](this.options.x,this.options.y,this.options.width,this.options.height),s=Nn(this.options.padding);return this.context.fillStyle=En(this.options.color,t,e-s.x,n-s.y,e+this.options.width+s.x*2,n+this.options.height+s.y*2),this.context.fillRect(e-s.x,n-s.y,this.options.width+s.x*2,this.options.height+s.y*2),this.context.restore(),{width:this.options.width+s.x*2,next:i=>{const r=i(t);return r.options={...r.options,...this.options,x:e+(this.options.width+s.x*2),y:n},r}}}}),Aa=(t,e)=>({options:{text:e.toString(),x:0,y:0,color:"white",backgroundColor:"transparent",font:null,fontSize:20,padding:0,origin:_t.TOP_LEFT},context:t.context,setText(s){return this.options.text=s,this},setPosition(s,i){return this.options.x=s,this.options.y=i,this},addPosition(s,i){return this.options.x+=s,this.options.y+=i,this},setFont(s,i){return this.options.font=s,this.options.fontSize=i,this},setColor(s){return this.options.color=s,this},setBackgroundColor(s){return this.options.backgroundColor=s,this},setPadding(s){return this.options.padding=s,this},setOrigin(s){return this.options.origin=s,this},setStroke(s){return this.options.stroke=s,this},draw(s=!0){if(!this.options.font)throw new Error("No font chose");this.context.save(),this.context.font=`${this.options.fontSize}px ${this.options.font}`,this.context.textBaseline="top";const{width:i}=this.context.measureText(this.options.text.toString()),{x:r,y:a}=qt[this.options.origin](this.options.x,this.options.y,i,this.options.fontSize);return this.options.backgroundColor!=="transparent"&&t.Rectangle().setPadding(this.options.padding).setPosition(this.options.x,this.options.y).setDimensions(i,this.options.fontSize).setColor(this.options.backgroundColor).setOrigin(this.options.origin).draw(),this.context.fillStyle=this.options.color,s&&this.context.fillText(this.options.text.toString(),r,a),this.options.stroke&&s&&(this.context.strokeStyle=this.options.stroke.color,this.context.lineWidth=this.options.stroke.width,this.context.strokeText(this.options.text.toString(),r,a)),this.context.restore(),{width:i,next:u=>{const d=u(t);return d.options={...d.options,...this.options,...s?{x:r+i+Nn(this.options.padding).x*2,y:a}:{}},d}}}}),Va=(t,e)=>{const n=Q.createCanvas(t,e);return{context:n.getContext("2d"),width:t,height:e,Text(s){return Aa(this,s)},Rectangle(){return Ia(this)},Image(){return Ln(this)},blur(){this.context.filter="blur(4px)"},encode(s){return n.encode(s)}}};C.CanvasOrigin=_t,C.GOLDEN_GRADIENT=Rn,C.createCanvas=Va,C.loadImage=Pn,C.registerFont=Wn,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
9
+ `+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var Le={};function Fe(t,e){h.deprecationHandler!=null&&h.deprecationHandler(t,e),Le[t]||(We(e),Le[t]=!0)}h.suppressDeprecationWarnings=!1,h.deprecationHandler=null;function H(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function jn(t){var e,n;for(n in t)g(t,n)&&(e=t[n],H(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function te(t,e){var n=X({},t),s;for(s in e)g(e,s)&&(nt(t[s])&&nt(e[s])?(n[s]={},X(n[s],t[s]),X(n[s],e[s])):e[s]!=null?n[s]=e[s]:delete n[s]);for(s in t)g(t,s)&&!g(e,s)&&nt(t[s])&&(n[s]=X({},n[s]));return n}function ee(t){t!=null&&this.set(t)}var ne;Object.keys?ne=Object.keys:ne=function(t){var e,n=[];for(e in t)g(t,e)&&n.push(e);return n};var Gn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function An(t,e,n){var s=this._calendar[t]||this._calendar.sameElse;return H(s)?s.call(e,n):s}function U(t,e,n){var s=""+Math.abs(t),i=e-s.length,r=t>=0;return(r?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var se=/(\[[^\[]*\])|(\\)?([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,Tt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},at={};function d(t,e,n,s){var i=s;typeof s=="string"&&(i=function(){return this[s]()}),t&&(at[t]=i),e&&(at[e[0]]=function(){return U(i.apply(this,arguments),e[1],e[2])}),n&&(at[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function In(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Vn(t){var e=t.match(se),n,s;for(n=0,s=e.length;n<s;n++)at[e[n]]?e[n]=at[e[n]]:e[n]=In(e[n]);return function(i){var r="",a;for(a=0;a<s;a++)r+=H(e[a])?e[a].call(i,t):e[a];return r}}function bt(t,e){return t.isValid()?(e=Ee(e,t.localeData()),ie[e]=ie[e]||Vn(e),ie[e](t)):t.localeData().invalidDate()}function Ee(t,e){var n=5;function s(i){return e.longDateFormat(i)||i}for(Tt.lastIndex=0;n>=0&&Tt.test(t);)t=t.replace(Tt,s),Tt.lastIndex=0,n-=1;return t}var zn={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 Zn(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(se).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[t])}var Bn="Invalid date";function qn(){return this._invalidDate}var $n="%d",Jn=/\d{1,2}/;function Qn(t){return this._ordinal.replace("%d",t)}var Xn={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 Kn(t,e,n,s){var i=this._relativeTime[n];return H(i)?i(t,e,n,s):i.replace(/%d/i,t)}function ts(t,e){var n=this._relativeTime[t>0?"future":"past"];return H(n)?n(e):n.replace(/%s/i,e)}var He={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function P(t){return typeof t=="string"?He[t]||He[t.toLowerCase()]:void 0}function re(t){var e={},n,s;for(s in t)g(t,s)&&(n=P(s),n&&(e[n]=t[s]));return e}var es={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 ns(t){var e=[],n;for(n in t)g(t,n)&&e.push({unit:n,priority:es[n]});return e.sort(function(s,i){return s.priority-i.priority}),e}var Ue=/\d/,T=/\d\d/,je=/\d{3}/,ae=/\d{4}/,Nt=/[+-]?\d{6}/,v=/\d\d?/,Ge=/\d\d\d\d?/,Ae=/\d\d\d\d\d\d?/,Pt=/\d{1,3}/,oe=/\d{1,4}/,Ct=/[+-]?\d{1,6}/,ot=/\d+/,Rt=/[+-]?\d+/,ss=/Z|[+-]\d\d:?\d\d/gi,Wt=/Z|[+-]\d\d(?::?\d\d)?/gi,is=/[+-]?\d+(\.\d{1,3})?/,pt=/[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,ut=/^[1-9]\d?/,ue=/^([1-9]\d|\d)/,Lt;Lt={};function l(t,e,n){Lt[t]=H(e)?e:function(s,i){return s&&n?n:e}}function rs(t,e){return g(Lt,t)?Lt[t](e._strict,e._locale):new RegExp(as(t))}function as(t){return A(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,s,i,r){return n||s||i||r}))}function A(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function C(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function m(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=C(e)),n}var he={};function w(t,e){var n,s=e,i;for(typeof t=="string"&&(t=[t]),G(e)&&(s=function(r,a){a[e]=m(r)}),i=t.length,n=0;n<i;n++)he[t[n]]=s}function wt(t,e){w(t,function(n,s,i,r){i._w=i._w||{},e(n,i._w,i,r)})}function os(t,e,n){e!=null&&g(he,t)&&he[t](e,n._a,n,t)}function Ft(t){return t%4===0&&t%100!==0||t%400===0}var Y=0,I=1,j=2,D=3,L=4,V=5,st=6,us=7,hs=8;d("Y",0,0,function(){var t=this.year();return t<=9999?U(t,4):"+"+t}),d(0,["YY",2],0,function(){return this.year()%100}),d(0,["YYYY",4],0,"year"),d(0,["YYYYY",5],0,"year"),d(0,["YYYYYY",6,!0],0,"year"),l("Y",Rt),l("YY",v,T),l("YYYY",oe,ae),l("YYYYY",Ct,Nt),l("YYYYYY",Ct,Nt),w(["YYYYY","YYYYYY"],Y),w("YYYY",function(t,e){e[Y]=t.length===2?h.parseTwoDigitYear(t):m(t)}),w("YY",function(t,e){e[Y]=h.parseTwoDigitYear(t)}),w("Y",function(t,e){e[Y]=parseInt(t,10)});function vt(t){return Ft(t)?366:365}h.parseTwoDigitYear=function(t){return m(t)+(m(t)>68?1900:2e3)};var Ie=ht("FullYear",!0);function ls(){return Ft(this.year())}function ht(t,e){return function(n){return n!=null?(Ve(this,t,n),h.updateOffset(this,e),this):kt(this,t)}}function kt(t,e){if(!t.isValid())return NaN;var n=t._d,s=t._isUTC;switch(e){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ve(t,e,n){var s,i,r,a,u;if(!(!t.isValid()||isNaN(n))){switch(s=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(i?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(i?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(i?s.setUTCHours(n):s.setHours(n));case"Date":return void(i?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}r=n,a=t.month(),u=t.date(),u=u===29&&a===1&&!Ft(r)?28:u,i?s.setUTCFullYear(r,a,u):s.setFullYear(r,a,u)}}function ds(t){return t=P(t),H(this[t])?this[t]():this}function cs(t,e){if(typeof t=="object"){t=re(t);var n=ns(t),s,i=n.length;for(s=0;s<i;s++)this[n[s].unit](t[n[s].unit])}else if(t=P(t),H(this[t]))return this[t](e);return this}function fs(t,e){return(t%e+e)%e}var S;Array.prototype.indexOf?S=Array.prototype.indexOf:S=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function le(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=fs(e,12);return t+=(e-n)/12,n===1?Ft(t)?29:28:31-n%7%2}d("M",["MM",2],"Mo",function(){return this.month()+1}),d("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),d("MMMM",0,0,function(t){return this.localeData().months(this,t)}),l("M",v,ut),l("MM",v,T),l("MMM",function(t,e){return e.monthsShortRegex(t)}),l("MMMM",function(t,e){return e.monthsRegex(t)}),w(["M","MM"],function(t,e){e[I]=m(t)-1}),w(["MMM","MMMM"],function(t,e,n,s){var i=n._locale.monthsParse(t,s,n._strict);i!=null?e[I]=i:f(n).invalidMonth=t});var ms="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ze="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ze=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_s=pt,ys=pt;function gs(t,e){return t?R(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ze).test(e)?"format":"standalone"][t.month()]:R(this._months)?this._months:this._months.standalone}function ps(t,e){return t?R(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ze.test(e)?"format":"standalone"][t.month()]:R(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ws(t,e,n){var s,i,r,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=E([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?e==="MMM"?(i=S.call(this._shortMonthsParse,a),i!==-1?i:null):(i=S.call(this._longMonthsParse,a),i!==-1?i:null):e==="MMM"?(i=S.call(this._shortMonthsParse,a),i!==-1?i:(i=S.call(this._longMonthsParse,a),i!==-1?i:null)):(i=S.call(this._longMonthsParse,a),i!==-1?i:(i=S.call(this._shortMonthsParse,a),i!==-1?i:null))}function vs(t,e,n){var s,i,r;if(this._monthsParseExact)return ws.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(i=E([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[s]&&(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[s].test(t)||n&&e==="MMM"&&this._shortMonthsParse[s].test(t)||!n&&this._monthsParse[s].test(t))return s}function Be(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=m(e);else if(e=t.localeData().monthsParse(e),!G(e))return t}var n=e,s=t.date();return s=s<29?s:Math.min(s,le(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,s):t._d.setMonth(n,s),t}function qe(t){return t!=null?(Be(this,t),h.updateOffset(this,!0),this):kt(this,"Month")}function ks(){return le(this.year(),this.month())}function Ms(t){return this._monthsParseExact?(g(this,"_monthsRegex")||$e.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(g(this,"_monthsShortRegex")||(this._monthsShortRegex=_s),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ss(t){return this._monthsParseExact?(g(this,"_monthsRegex")||$e.call(this),t?this._monthsStrictRegex:this._monthsRegex):(g(this,"_monthsRegex")||(this._monthsRegex=ys),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function $e(){function t(c,_){return _.length-c.length}var e=[],n=[],s=[],i,r,a,u;for(i=0;i<12;i++)r=E([2e3,i]),a=A(this.monthsShort(r,"")),u=A(this.months(r,"")),e.push(a),n.push(u),s.push(u),s.push(a);e.sort(t),n.sort(t),s.sort(t),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Ds(t,e,n,s,i,r,a){var u;return t<100&&t>=0?(u=new Date(t+400,e,n,s,i,r,a),isFinite(u.getFullYear())&&u.setFullYear(t)):u=new Date(t,e,n,s,i,r,a),u}function Mt(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Et(t,e,n){var s=7+e-n,i=(7+Mt(t,0,s).getUTCDay()-e)%7;return-i+s-1}function Je(t,e,n,s,i){var r=(7+n-s)%7,a=Et(t,s,i),u=1+7*(e-1)+r+a,c,_;return u<=0?(c=t-1,_=vt(c)+u):u>vt(t)?(c=t+1,_=u-vt(t)):(c=t,_=u),{year:c,dayOfYear:_}}function St(t,e,n){var s=Et(t.year(),e,n),i=Math.floor((t.dayOfYear()-s-1)/7)+1,r,a;return i<1?(a=t.year()-1,r=i+z(a,e,n)):i>z(t.year(),e,n)?(r=i-z(t.year(),e,n),a=t.year()+1):(a=t.year(),r=i),{week:r,year:a}}function z(t,e,n){var s=Et(t,e,n),i=Et(t+1,e,n);return(vt(t)-s+i)/7}d("w",["ww",2],"wo","week"),d("W",["WW",2],"Wo","isoWeek"),l("w",v,ut),l("ww",v,T),l("W",v,ut),l("WW",v,T),wt(["w","ww","W","WW"],function(t,e,n,s){e[s.substr(0,1)]=m(t)});function Ys(t){return St(t,this._week.dow,this._week.doy).week}var xs={dow:0,doy:6};function Os(){return this._week.dow}function Ts(){return this._week.doy}function bs(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function Ns(t){var e=St(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}d("d",0,"do","day"),d("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),d("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),d("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),d("e",0,0,"weekday"),d("E",0,0,"isoWeekday"),l("d",v),l("e",v),l("E",v),l("dd",function(t,e){return e.weekdaysMinRegex(t)}),l("ddd",function(t,e){return e.weekdaysShortRegex(t)}),l("dddd",function(t,e){return e.weekdaysRegex(t)}),wt(["dd","ddd","dddd"],function(t,e,n,s){var i=n._locale.weekdaysParse(t,s,n._strict);i!=null?e.d=i:f(n).invalidWeekday=t}),wt(["d","e","E"],function(t,e,n,s){e[s]=m(t)});function Ps(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function Cs(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function de(t,e){return t.slice(e,7).concat(t.slice(0,e))}var Rs="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ws="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ls=pt,Fs=pt,Es=pt;function Hs(t,e){var n=R(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?de(n,this._week.dow):t?n[t.day()]:n}function Us(t){return t===!0?de(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function js(t){return t===!0?de(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Gs(t,e,n){var s,i,r,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=E([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?e==="dddd"?(i=S.call(this._weekdaysParse,a),i!==-1?i:null):e==="ddd"?(i=S.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=S.call(this._minWeekdaysParse,a),i!==-1?i:null):e==="dddd"?(i=S.call(this._weekdaysParse,a),i!==-1||(i=S.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=S.call(this._minWeekdaysParse,a),i!==-1?i:null)):e==="ddd"?(i=S.call(this._shortWeekdaysParse,a),i!==-1||(i=S.call(this._weekdaysParse,a),i!==-1)?i:(i=S.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=S.call(this._minWeekdaysParse,a),i!==-1||(i=S.call(this._weekdaysParse,a),i!==-1)?i:(i=S.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function As(t,e,n){var s,i,r;if(this._weekdaysParseExact)return Gs.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++)if(i=E([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[s].test(t)||n&&e==="ddd"&&this._shortWeekdaysParse[s].test(t)||n&&e==="dd"&&this._minWeekdaysParse[s].test(t)||!n&&this._weekdaysParse[s].test(t))return s}function Is(t){if(!this.isValid())return t!=null?this:NaN;var e=kt(this,"Day");return t!=null?(t=Ps(t,this.localeData()),this.add(t-e,"d")):e}function Vs(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function zs(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=Cs(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Zs(t){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ce.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(g(this,"_weekdaysRegex")||(this._weekdaysRegex=Ls),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Bs(t){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ce.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(g(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fs),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qs(t){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ce.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(g(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Es),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ce(){function t(x,J){return J.length-x.length}var e=[],n=[],s=[],i=[],r,a,u,c,_;for(r=0;r<7;r++)a=E([2e3,1]).day(r),u=A(this.weekdaysMin(a,"")),c=A(this.weekdaysShort(a,"")),_=A(this.weekdays(a,"")),e.push(u),n.push(c),s.push(_),i.push(u),i.push(c),i.push(_);e.sort(t),n.sort(t),s.sort(t),i.sort(t),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function fe(){return this.hours()%12||12}function $s(){return this.hours()||24}d("H",["HH",2],0,"hour"),d("h",["hh",2],0,fe),d("k",["kk",2],0,$s),d("hmm",0,0,function(){return""+fe.apply(this)+U(this.minutes(),2)}),d("hmmss",0,0,function(){return""+fe.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),d("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),d("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)});function Xe(t,e){d(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}Xe("a",!0),Xe("A",!1);function Ke(t,e){return e._meridiemParse}l("a",Ke),l("A",Ke),l("H",v,ue),l("h",v,ut),l("k",v,ut),l("HH",v,T),l("hh",v,T),l("kk",v,T),l("hmm",Ge),l("hmmss",Ae),l("Hmm",Ge),l("Hmmss",Ae),w(["H","HH"],D),w(["k","kk"],function(t,e,n){var s=m(t);e[D]=s===24?0:s}),w(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),w(["h","hh"],function(t,e,n){e[D]=m(t),f(n).bigHour=!0}),w("hmm",function(t,e,n){var s=t.length-2;e[D]=m(t.substr(0,s)),e[L]=m(t.substr(s)),f(n).bigHour=!0}),w("hmmss",function(t,e,n){var s=t.length-4,i=t.length-2;e[D]=m(t.substr(0,s)),e[L]=m(t.substr(s,2)),e[V]=m(t.substr(i)),f(n).bigHour=!0}),w("Hmm",function(t,e,n){var s=t.length-2;e[D]=m(t.substr(0,s)),e[L]=m(t.substr(s))}),w("Hmmss",function(t,e,n){var s=t.length-4,i=t.length-2;e[D]=m(t.substr(0,s)),e[L]=m(t.substr(s,2)),e[V]=m(t.substr(i))});function Js(t){return(t+"").toLowerCase().charAt(0)==="p"}var Qs=/[ap]\.?m?\.?/i,Xs=ht("Hours",!0);function Ks(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var tn={calendar:Gn,longDateFormat:zn,invalidDate:Bn,ordinal:$n,dayOfMonthOrdinalParse:Jn,relativeTime:Xn,months:ms,monthsShort:ze,week:xs,weekdays:Rs,weekdaysMin:Ws,weekdaysShort:Qe,meridiemParse:Qs},M={},Dt={},Yt;function ti(t,e){var n,s=Math.min(t.length,e.length);for(n=0;n<s;n+=1)if(t[n]!==e[n])return n;return s}function en(t){return t&&t.toLowerCase().replace("_","-")}function ei(t){for(var e=0,n,s,i,r;e<t.length;){for(r=en(t[e]).split("-"),n=r.length,s=en(t[e+1]),s=s?s.split("-"):null;n>0;){if(i=Ht(r.slice(0,n).join("-")),i)return i;if(s&&s.length>=n&&ti(r,s)>=n-1)break;n--}e++}return Yt}function ni(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Ht(t){var e=null,n;if(M[t]===void 0&&typeof module<"u"&&module&&module.exports&&ni(t))try{e=Yt._abbr,n=require,n("./locale/"+t),K(e)}catch{M[t]=null}return M[t]}function K(t,e){var n;return t&&(O(e)?n=Z(t):n=me(t,e),n?Yt=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Yt._abbr}function me(t,e){if(e!==null){var n,s=tn;if(e.abbr=t,M[t]!=null)Fe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=M[t]._config;else if(e.parentLocale!=null)if(M[e.parentLocale]!=null)s=M[e.parentLocale]._config;else if(n=Ht(e.parentLocale),n!=null)s=n._config;else return Dt[e.parentLocale]||(Dt[e.parentLocale]=[]),Dt[e.parentLocale].push({name:t,config:e}),null;return M[t]=new ee(te(s,e)),Dt[t]&&Dt[t].forEach(function(i){me(i.name,i.config)}),K(t),M[t]}else return delete M[t],null}function si(t,e){if(e!=null){var n,s,i=tn;M[t]!=null&&M[t].parentLocale!=null?M[t].set(te(M[t]._config,e)):(s=Ht(t),s!=null&&(i=s._config),e=te(i,e),s==null&&(e.abbr=t),n=new ee(e),n.parentLocale=M[t],M[t]=n),K(t)}else M[t]!=null&&(M[t].parentLocale!=null?(M[t]=M[t].parentLocale,t===K()&&K(t)):M[t]!=null&&delete M[t]);return M[t]}function Z(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Yt;if(!R(t)){if(e=Ht(t),e)return e;t=[t]}return ei(t)}function ii(){return ne(M)}function _e(t){var e,n=t._a;return n&&f(t).overflow===-2&&(e=n[I]<0||n[I]>11?I:n[j]<1||n[j]>le(n[Y],n[I])?j:n[D]<0||n[D]>24||n[D]===24&&(n[L]!==0||n[V]!==0||n[st]!==0)?D:n[L]<0||n[L]>59?L:n[V]<0||n[V]>59?V:n[st]<0||n[st]>999?st:-1,f(t)._overflowDayOfYear&&(e<Y||e>j)&&(e=j),f(t)._overflowWeeks&&e===-1&&(e=us),f(t)._overflowWeekday&&e===-1&&(e=hs),f(t).overflow=e),t}var ri=/^\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)?)?$/,ai=/^\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)?)?$/,oi=/Z|[+-]\d\d(?::?\d\d)?/,Ut=[["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]],ye=[["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/]],ui=/^\/?Date\((-?\d+)/i,hi=/^(?:(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}))$/,li={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 nn(t){var e,n,s=t._i,i=ri.exec(s)||ai.exec(s),r,a,u,c,_=Ut.length,x=ye.length;if(i){for(f(t).iso=!0,e=0,n=_;e<n;e++)if(Ut[e][1].exec(i[1])){a=Ut[e][0],r=Ut[e][2]!==!1;break}if(a==null){t._isValid=!1;return}if(i[3]){for(e=0,n=x;e<n;e++)if(ye[e][1].exec(i[3])){u=(i[2]||" ")+ye[e][0];break}if(u==null){t._isValid=!1;return}}if(!r&&u!=null){t._isValid=!1;return}if(i[4])if(oi.exec(i[4]))c="Z";else{t._isValid=!1;return}t._f=a+(u||"")+(c||""),pe(t)}else t._isValid=!1}function di(t,e,n,s,i,r){var a=[ci(t),ze.indexOf(e),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a}function ci(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function fi(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function mi(t,e,n){if(t){var s=Qe.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(s!==i)return f(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function _i(t,e,n){if(t)return li[t];if(e)return 0;var s=parseInt(n,10),i=s%100,r=(s-i)/100;return r*60+i}function sn(t){var e=hi.exec(fi(t._i)),n;if(e){if(n=di(e[4],e[3],e[2],e[5],e[6],e[7]),!mi(e[1],n,t))return;t._a=n,t._tzm=_i(e[8],e[9],e[10]),t._d=Mt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function yi(t){var e=ui.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(nn(t),t._isValid===!1)delete t._isValid;else return;if(sn(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:h.createFromInputFallback(t)}h.createFromInputFallback=N("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 lt(t,e,n){return t??e??n}function gi(t){var e=new Date(h.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function ge(t){var e,n,s=[],i,r,a;if(!t._d){for(i=gi(t),t._w&&t._a[j]==null&&t._a[I]==null&&pi(t),t._dayOfYear!=null&&(a=lt(t._a[Y],i[Y]),(t._dayOfYear>vt(a)||t._dayOfYear===0)&&(f(t)._overflowDayOfYear=!0),n=Mt(a,0,t._dayOfYear),t._a[I]=n.getUTCMonth(),t._a[j]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[D]===24&&t._a[L]===0&&t._a[V]===0&&t._a[st]===0&&(t._nextDay=!0,t._a[D]=0),t._d=(t._useUTC?Mt:Ds).apply(null,s),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[D]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==r&&(f(t).weekdayMismatch=!0)}}function pi(t){var e,n,s,i,r,a,u,c,_;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(r=1,a=4,n=lt(e.GG,t._a[Y],St(k(),1,4).year),s=lt(e.W,1),i=lt(e.E,1),(i<1||i>7)&&(c=!0)):(r=t._locale._week.dow,a=t._locale._week.doy,_=St(k(),r,a),n=lt(e.gg,t._a[Y],_.year),s=lt(e.w,_.week),e.d!=null?(i=e.d,(i<0||i>6)&&(c=!0)):e.e!=null?(i=e.e+r,(e.e<0||e.e>6)&&(c=!0)):i=r),s<1||s>z(n,r,a)?f(t)._overflowWeeks=!0:c!=null?f(t)._overflowWeekday=!0:(u=Je(n,s,i,r,a),t._a[Y]=u.year,t._dayOfYear=u.dayOfYear)}h.ISO_8601=function(){},h.RFC_2822=function(){};function pe(t){if(t._f===h.ISO_8601){nn(t);return}if(t._f===h.RFC_2822){sn(t);return}t._a=[],f(t).empty=!0;var e=""+t._i,n,s,i,r,a,u=e.length,c=0,_,x;for(i=Ee(t._f,t._locale).match(se)||[],x=i.length,n=0;n<x;n++)r=i[n],s=(e.match(rs(r,t))||[])[0],s&&(a=e.substr(0,e.indexOf(s)),a.length>0&&f(t).unusedInput.push(a),e=e.slice(e.indexOf(s)+s.length),c+=s.length),at[r]?(s?f(t).empty=!1:f(t).unusedTokens.push(r),os(r,s,t)):t._strict&&!s&&f(t).unusedTokens.push(r);f(t).charsLeftOver=u-c,e.length>0&&f(t).unusedInput.push(e),t._a[D]<=12&&f(t).bigHour===!0&&t._a[D]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[D]=wi(t._locale,t._a[D],t._meridiem),_=f(t).era,_!==null&&(t._a[Y]=t._locale.erasConvertYear(_,t._a[Y])),ge(t),_e(t)}function wi(t,e,n){var s;return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(s=t.isPM(n),s&&e<12&&(e+=12),!s&&e===12&&(e=0)),e)}function vi(t){var e,n,s,i,r,a,u=!1,c=t._f.length;if(c===0){f(t).invalidFormat=!0,t._d=new Date(NaN);return}for(i=0;i<c;i++)r=0,a=!1,e=Kt({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[i],pe(e),Qt(e)&&(a=!0),r+=f(e).charsLeftOver,r+=f(e).unusedTokens.length*10,f(e).score=r,u?r<s&&(s=r,n=e):(s==null||r<s||a)&&(s=r,n=e,a&&(u=!0));X(t,n||e)}function ki(t){if(!t._d){var e=re(t._i),n=e.day===void 0?e.date:e.day;t._a=Ce([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(s){return s&&parseInt(s,10)}),ge(t)}}function Mi(t){var e=new gt(_e(rn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function rn(t){var e=t._i,n=t._f;return t._locale=t._locale||Z(t._l),e===null||n===void 0&&e===""?Ot({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),W(e)?new gt(_e(e)):(yt(e)?t._d=e:R(n)?vi(t):n?pe(t):Si(t),Qt(t)||(t._d=null),t))}function Si(t){var e=t._i;O(e)?t._d=new Date(h.now()):yt(e)?t._d=new Date(e.valueOf()):typeof e=="string"?yi(t):R(e)?(t._a=Ce(e.slice(0),function(n){return parseInt(n,10)}),ge(t)):nt(e)?ki(t):G(e)?t._d=new Date(e):h.createFromInputFallback(t)}function an(t,e,n,s,i){var r={};return(e===!0||e===!1)&&(s=e,e=void 0),(n===!0||n===!1)&&(s=n,n=void 0),(nt(t)&&$t(t)||R(t)&&t.length===0)&&(t=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=t,r._f=e,r._strict=s,Mi(r)}function k(t,e,n,s){return an(t,e,n,s,!1)}var Di=N("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=k.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Ot()}),Yi=N("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=k.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Ot()});function on(t,e){var n,s;if(e.length===1&&R(e[0])&&(e=e[0]),!e.length)return k();for(n=e[0],s=1;s<e.length;++s)(!e[s].isValid()||e[s][t](n))&&(n=e[s]);return n}function xi(){var t=[].slice.call(arguments,0);return on("isBefore",t)}function Oi(){var t=[].slice.call(arguments,0);return on("isAfter",t)}var Ti=function(){return Date.now?Date.now():+new Date},xt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function bi(t){var e,n=!1,s,i=xt.length;for(e in t)if(g(t,e)&&!(S.call(xt,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(s=0;s<i;++s)if(t[xt[s]]){if(n)return!1;parseFloat(t[xt[s]])!==m(t[xt[s]])&&(n=!0)}return!0}function Ni(){return this._isValid}function Pi(){return F(NaN)}function jt(t){var e=re(t),n=e.year||0,s=e.quarter||0,i=e.month||0,r=e.week||e.isoWeek||0,a=e.day||0,u=e.hour||0,c=e.minute||0,_=e.second||0,x=e.millisecond||0;this._isValid=bi(e),this._milliseconds=+x+_*1e3+c*6e4+u*1e3*60*60,this._days=+a+r*7,this._months=+i+s*3+n*12,this._data={},this._locale=Z(),this._bubble()}function Gt(t){return t instanceof jt}function we(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function Ci(t,e,n){var s=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),r=0,a;for(a=0;a<s;a++)m(t[a])!==m(e[a])&&r++;return r+i}function un(t,e){d(t,0,0,function(){var n=this.utcOffset(),s="+";return n<0&&(n=-n,s="-"),s+U(~~(n/60),2)+e+U(~~n%60,2)})}un("Z",":"),un("ZZ",""),l("Z",Wt),l("ZZ",Wt),w(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=ve(Wt,t)});var Ri=/([\+\-]|\d\d)/gi;function ve(t,e){var n=(e||"").match(t),s,i,r;return n===null?null:(s=n[n.length-1]||[],i=(s+"").match(Ri)||["-",0,0],r=+(i[1]*60)+m(i[2]),r===0?0:i[0]==="+"?r:-r)}function ke(t,e){var n,s;return e._isUTC?(n=e.clone(),s=(W(t)||yt(t)?t.valueOf():k(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),h.updateOffset(n,!1),n):k(t).local()}function Me(t){return-Math.round(t._d.getTimezoneOffset())}h.updateOffset=function(){};function Wi(t,e,n){var s=this._offset||0,i;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=ve(Wt,t),t===null)return this}else Math.abs(t)<16&&!n&&(t=t*60);return!this._isUTC&&e&&(i=Me(this)),this._offset=t,this._isUTC=!0,i!=null&&this.add(i,"m"),s!==t&&(!e||this._changeInProgress?cn(this,F(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Me(this)}function Li(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Fi(t){return this.utcOffset(0,t)}function Ei(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Me(this),"m")),this}function Hi(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=ve(ss,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Ui(t){return this.isValid()?(t=t?k(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function ji(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gi(){if(!O(this._isDSTShifted))return this._isDSTShifted;var t={},e;return Kt(t,this),t=rn(t),t._a?(e=t._isUTC?E(t._a):k(t._a),this._isDSTShifted=this.isValid()&&Ci(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ai(){return this.isValid()?!this._isUTC:!1}function Ii(){return this.isValid()?this._isUTC:!1}function hn(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Vi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function F(t,e){var n=t,s=null,i,r,a;return Gt(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:G(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(s=Vi.exec(t))?(i=s[1]==="-"?-1:1,n={y:0,d:m(s[j])*i,h:m(s[D])*i,m:m(s[L])*i,s:m(s[V])*i,ms:m(we(s[st]*1e3))*i}):(s=zi.exec(t))?(i=s[1]==="-"?-1:1,n={y:it(s[2],i),M:it(s[3],i),w:it(s[4],i),d:it(s[5],i),h:it(s[6],i),m:it(s[7],i),s:it(s[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=Zi(k(n.from),k(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),r=new jt(n),Gt(t)&&g(t,"_locale")&&(r._locale=t._locale),Gt(t)&&g(t,"_isValid")&&(r._isValid=t._isValid),r}F.fn=jt.prototype,F.invalid=Pi;function it(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function ln(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Zi(t,e){var n;return t.isValid()&&e.isValid()?(e=ke(e,t),t.isBefore(e)?n=ln(t,e):(n=ln(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function dn(t,e){return function(n,s){var i,r;return s!==null&&!isNaN(+s)&&(Fe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=s,s=r),i=F(n,s),cn(this,i,t),this}}function cn(t,e,n,s){var i=e._milliseconds,r=we(e._days),a=we(e._months);t.isValid()&&(s=s??!0,a&&Be(t,kt(t,"Month")+a*n),r&&Ve(t,"Date",kt(t,"Date")+r*n),i&&t._d.setTime(t._d.valueOf()+i*n),s&&h.updateOffset(t,r||a))}var Bi=dn(1,"add"),qi=dn(-1,"subtract");function fn(t){return typeof t=="string"||t instanceof String}function $i(t){return W(t)||yt(t)||fn(t)||G(t)||Qi(t)||Ji(t)||t===null||t===void 0}function Ji(t){var e=nt(t)&&!$t(t),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,r,a=s.length;for(i=0;i<a;i+=1)r=s[i],n=n||g(t,r);return e&&n}function Qi(t){var e=R(t),n=!1;return e&&(n=t.filter(function(s){return!G(s)&&fn(t)}).length===0),e&&n}function Xi(t){var e=nt(t)&&!$t(t),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,r;for(i=0;i<s.length;i+=1)r=s[i],n=n||g(t,r);return e&&n}function Ki(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function tr(t,e){arguments.length===1&&(arguments[0]?$i(arguments[0])?(t=arguments[0],e=void 0):Xi(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||k(),s=ke(n,this).startOf("day"),i=h.calendarFormat(this,s)||"sameElse",r=e&&(H(e[i])?e[i].call(this,n):e[i]);return this.format(r||this.localeData().calendar(i,this,k(n)))}function er(){return new gt(this)}function nr(t,e){var n=W(t)?t:k(t);return this.isValid()&&n.isValid()?(e=P(e)||"millisecond",e==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()):!1}function sr(t,e){var n=W(t)?t:k(t);return this.isValid()&&n.isValid()?(e=P(e)||"millisecond",e==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()):!1}function ir(t,e,n,s){var i=W(t)?t:k(t),r=W(e)?e:k(e);return this.isValid()&&i.isValid()&&r.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(s[1]===")"?this.isBefore(r,n):!this.isAfter(r,n))):!1}function rr(t,e){var n=W(t)?t:k(t),s;return this.isValid()&&n.isValid()?(e=P(e)||"millisecond",e==="millisecond"?this.valueOf()===n.valueOf():(s=n.valueOf(),this.clone().startOf(e).valueOf()<=s&&s<=this.clone().endOf(e).valueOf())):!1}function ar(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function or(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function ur(t,e,n){var s,i,r;if(!this.isValid())return NaN;if(s=ke(t,this),!s.isValid())return NaN;switch(i=(s.utcOffset()-this.utcOffset())*6e4,e=P(e),e){case"year":r=At(this,s)/12;break;case"month":r=At(this,s);break;case"quarter":r=At(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:C(r)}function At(t,e){if(t.date()<e.date())return-At(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),s=t.clone().add(n,"months"),i,r;return e-s<0?(i=t.clone().add(n-1,"months"),r=(e-s)/(s-i)):(i=t.clone().add(n+1,"months"),r=(e-s)/(i-s)),-(n+r)||0}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function hr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function lr(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?bt(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):H(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",bt(n,"Z")):bt(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function dr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,s,i,r;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",r=e+'[")]',this.format(n+s+i+r)}function cr(t){t||(t=this.isUtc()?h.defaultFormatUtc:h.defaultFormat);var e=bt(this,t);return this.localeData().postformat(e)}function fr(t,e){return this.isValid()&&(W(t)&&t.isValid()||k(t).isValid())?F({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function mr(t){return this.from(k(),t)}function _r(t,e){return this.isValid()&&(W(t)&&t.isValid()||k(t).isValid())?F({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function yr(t){return this.to(k(),t)}function mn(t){var e;return t===void 0?this._locale._abbr:(e=Z(t),e!=null&&(this._locale=e),this)}var _n=N("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 yn(){return this._locale}var It=1e3,dt=60*It,Vt=60*dt,gn=(365*400+97)*24*Vt;function ct(t,e){return(t%e+e)%e}function pn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-gn:new Date(t,e,n).valueOf()}function wn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-gn:Date.UTC(t,e,n)}function gr(t){var e,n;if(t=P(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?wn:pn,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ct(e+(this._isUTC?0:this.utcOffset()*dt),Vt);break;case"minute":e=this._d.valueOf(),e-=ct(e,dt);break;case"second":e=this._d.valueOf(),e-=ct(e,It);break}return this._d.setTime(e),h.updateOffset(this,!0),this}function pr(t){var e,n;if(t=P(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?wn:pn,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Vt-ct(e+(this._isUTC?0:this.utcOffset()*dt),Vt)-1;break;case"minute":e=this._d.valueOf(),e+=dt-ct(e,dt)-1;break;case"second":e=this._d.valueOf(),e+=It-ct(e,It)-1;break}return this._d.setTime(e),h.updateOffset(this,!0),this}function wr(){return this._d.valueOf()-(this._offset||0)*6e4}function vr(){return Math.floor(this.valueOf()/1e3)}function kr(){return new Date(this.valueOf())}function Mr(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Sr(){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 Dr(){return this.isValid()?this.toISOString():null}function Yr(){return Qt(this)}function xr(){return X({},f(this))}function Or(){return f(this).overflow}function Tr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}d("N",0,0,"eraAbbr"),d("NN",0,0,"eraAbbr"),d("NNN",0,0,"eraAbbr"),d("NNNN",0,0,"eraName"),d("NNNNN",0,0,"eraNarrow"),d("y",["y",1],"yo","eraYear"),d("y",["yy",2],0,"eraYear"),d("y",["yyy",3],0,"eraYear"),d("y",["yyyy",4],0,"eraYear"),l("N",Se),l("NN",Se),l("NNN",Se),l("NNNN",Ur),l("NNNNN",jr),w(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,s){var i=n._locale.erasParse(t,s,n._strict);i?f(n).era=i:f(n).invalidEra=t}),l("y",ot),l("yy",ot),l("yyy",ot),l("yyyy",ot),l("yo",Gr),w(["y","yy","yyy","yyyy"],Y),w(["yo"],function(t,e,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Y]=n._locale.eraYearOrdinalParse(t,i):e[Y]=parseInt(t,10)});function br(t,e){var n,s,i,r=this._eras||Z("en")._eras;for(n=0,s=r.length;n<s;++n){switch(typeof r[n].since){case"string":i=h(r[n].since).startOf("day"),r[n].since=i.valueOf();break}switch(typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":i=h(r[n].until).startOf("day").valueOf(),r[n].until=i.valueOf();break}}return r}function Nr(t,e,n){var s,i,r=this.eras(),a,u,c;for(t=t.toUpperCase(),s=0,i=r.length;s<i;++s)if(a=r[s].name.toUpperCase(),u=r[s].abbr.toUpperCase(),c=r[s].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(u===t)return r[s];break;case"NNNN":if(a===t)return r[s];break;case"NNNNN":if(c===t)return r[s];break}else if([a,u,c].indexOf(t)>=0)return r[s]}function Pr(t,e){var n=t.since<=t.until?1:-1;return e===void 0?h(t.since).year():h(t.since).year()+(e-t.offset)*n}function Cr(){var t,e,n,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),s[t].since<=n&&n<=s[t].until||s[t].until<=n&&n<=s[t].since)return s[t].name;return""}function Rr(){var t,e,n,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),s[t].since<=n&&n<=s[t].until||s[t].until<=n&&n<=s[t].since)return s[t].narrow;return""}function Wr(){var t,e,n,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),s[t].since<=n&&n<=s[t].until||s[t].until<=n&&n<=s[t].since)return s[t].abbr;return""}function Lr(){var t,e,n,s,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(n=i[t].since<=i[t].until?1:-1,s=this.clone().startOf("day").valueOf(),i[t].since<=s&&s<=i[t].until||i[t].until<=s&&s<=i[t].since)return(this.year()-h(i[t].since).year())*n+i[t].offset;return this.year()}function Fr(t){return g(this,"_erasNameRegex")||De.call(this),t?this._erasNameRegex:this._erasRegex}function Er(t){return g(this,"_erasAbbrRegex")||De.call(this),t?this._erasAbbrRegex:this._erasRegex}function Hr(t){return g(this,"_erasNarrowRegex")||De.call(this),t?this._erasNarrowRegex:this._erasRegex}function Se(t,e){return e.erasAbbrRegex(t)}function Ur(t,e){return e.erasNameRegex(t)}function jr(t,e){return e.erasNarrowRegex(t)}function Gr(t,e){return e._eraYearOrdinalRegex||ot}function De(){var t=[],e=[],n=[],s=[],i,r,a,u,c,_=this.eras();for(i=0,r=_.length;i<r;++i)a=A(_[i].name),u=A(_[i].abbr),c=A(_[i].narrow),e.push(a),t.push(u),n.push(c),s.push(a),s.push(u),s.push(c);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}d(0,["gg",2],0,function(){return this.weekYear()%100}),d(0,["GG",2],0,function(){return this.isoWeekYear()%100});function zt(t,e){d(0,[t,t.length],0,e)}zt("gggg","weekYear"),zt("ggggg","weekYear"),zt("GGGG","isoWeekYear"),zt("GGGGG","isoWeekYear"),l("G",Rt),l("g",Rt),l("GG",v,T),l("gg",v,T),l("GGGG",oe,ae),l("gggg",oe,ae),l("GGGGG",Ct,Nt),l("ggggg",Ct,Nt),wt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,s){e[s.substr(0,2)]=m(t)}),wt(["gg","GG"],function(t,e,n,s){e[s]=h.parseTwoDigitYear(t)});function Ar(t){return vn.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ir(t){return vn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Vr(){return z(this.year(),1,4)}function zr(){return z(this.isoWeekYear(),1,4)}function Zr(){var t=this.localeData()._week;return z(this.year(),t.dow,t.doy)}function Br(){var t=this.localeData()._week;return z(this.weekYear(),t.dow,t.doy)}function vn(t,e,n,s,i){var r;return t==null?St(this,s,i).year:(r=z(t,s,i),e>r&&(e=r),qr.call(this,t,e,n,s,i))}function qr(t,e,n,s,i){var r=Je(t,e,n,s,i),a=Mt(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}d("Q",0,"Qo","quarter"),l("Q",Ue),w("Q",function(t,e){e[I]=(m(t)-1)*3});function $r(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}d("D",["DD",2],"Do","date"),l("D",v,ut),l("DD",v,T),l("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),w(["D","DD"],j),w("Do",function(t,e){e[j]=m(t.match(v)[0])});var kn=ht("Date",!0);d("DDD",["DDDD",3],"DDDo","dayOfYear"),l("DDD",Pt),l("DDDD",je),w(["DDD","DDDD"],function(t,e,n){n._dayOfYear=m(t)});function Jr(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}d("m",["mm",2],0,"minute"),l("m",v,ue),l("mm",v,T),w(["m","mm"],L);var Qr=ht("Minutes",!1);d("s",["ss",2],0,"second"),l("s",v,ue),l("ss",v,T),w(["s","ss"],V);var Xr=ht("Seconds",!1);d("S",0,0,function(){return~~(this.millisecond()/100)}),d(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),d(0,["SSS",3],0,"millisecond"),d(0,["SSSS",4],0,function(){return this.millisecond()*10}),d(0,["SSSSS",5],0,function(){return this.millisecond()*100}),d(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),d(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),d(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),d(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),l("S",Pt,Ue),l("SS",Pt,T),l("SSS",Pt,je);var tt,Mn;for(tt="SSSS";tt.length<=9;tt+="S")l(tt,ot);function Kr(t,e){e[st]=m(("0."+t)*1e3)}for(tt="S";tt.length<=9;tt+="S")w(tt,Kr);Mn=ht("Milliseconds",!1),d("z",0,0,"zoneAbbr"),d("zz",0,0,"zoneName");function ta(){return this._isUTC?"UTC":""}function ea(){return this._isUTC?"Coordinated Universal Time":""}var o=gt.prototype;o.add=Bi,o.calendar=tr,o.clone=er,o.diff=ur,o.endOf=pr,o.format=cr,o.from=fr,o.fromNow=mr,o.to=_r,o.toNow=yr,o.get=ds,o.invalidAt=Or,o.isAfter=nr,o.isBefore=sr,o.isBetween=ir,o.isSame=rr,o.isSameOrAfter=ar,o.isSameOrBefore=or,o.isValid=Yr,o.lang=_n,o.locale=mn,o.localeData=yn,o.max=Yi,o.min=Di,o.parsingFlags=xr,o.set=cs,o.startOf=gr,o.subtract=qi,o.toArray=Mr,o.toObject=Sr,o.toDate=kr,o.toISOString=lr,o.inspect=dr,typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=Dr,o.toString=hr,o.unix=vr,o.valueOf=wr,o.creationData=Tr,o.eraName=Cr,o.eraNarrow=Rr,o.eraAbbr=Wr,o.eraYear=Lr,o.year=Ie,o.isLeapYear=ls,o.weekYear=Ar,o.isoWeekYear=Ir,o.quarter=o.quarters=$r,o.month=qe,o.daysInMonth=ks,o.week=o.weeks=bs,o.isoWeek=o.isoWeeks=Ns,o.weeksInYear=Zr,o.weeksInWeekYear=Br,o.isoWeeksInYear=Vr,o.isoWeeksInISOWeekYear=zr,o.date=kn,o.day=o.days=Is,o.weekday=Vs,o.isoWeekday=zs,o.dayOfYear=Jr,o.hour=o.hours=Xs,o.minute=o.minutes=Qr,o.second=o.seconds=Xr,o.millisecond=o.milliseconds=Mn,o.utcOffset=Wi,o.utc=Fi,o.local=Ei,o.parseZone=Hi,o.hasAlignedHourOffset=Ui,o.isDST=ji,o.isLocal=Ai,o.isUtcOffset=Ii,o.isUtc=hn,o.isUTC=hn,o.zoneAbbr=ta,o.zoneName=ea,o.dates=N("dates accessor is deprecated. Use date instead.",kn),o.months=N("months accessor is deprecated. Use month instead",qe),o.years=N("years accessor is deprecated. Use year instead",Ie),o.zone=N("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Li),o.isDSTShifted=N("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Gi);function na(t){return k(t*1e3)}function sa(){return k.apply(null,arguments).parseZone()}function Sn(t){return t}var p=ee.prototype;p.calendar=An,p.longDateFormat=Zn,p.invalidDate=qn,p.ordinal=Qn,p.preparse=Sn,p.postformat=Sn,p.relativeTime=Kn,p.pastFuture=ts,p.set=jn,p.eras=br,p.erasParse=Nr,p.erasConvertYear=Pr,p.erasAbbrRegex=Er,p.erasNameRegex=Fr,p.erasNarrowRegex=Hr,p.months=gs,p.monthsShort=ps,p.monthsParse=vs,p.monthsRegex=Ss,p.monthsShortRegex=Ms,p.week=Ys,p.firstDayOfYear=Ts,p.firstDayOfWeek=Os,p.weekdays=Hs,p.weekdaysMin=js,p.weekdaysShort=Us,p.weekdaysParse=As,p.weekdaysRegex=Zs,p.weekdaysShortRegex=Bs,p.weekdaysMinRegex=qs,p.isPM=Js,p.meridiem=Ks;function Zt(t,e,n,s){var i=Z(),r=E().set(s,e);return i[n](r,t)}function Dn(t,e,n){if(G(t)&&(e=t,t=void 0),t=t||"",e!=null)return Zt(t,e,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=Zt(t,s,n,"month");return i}function Ye(t,e,n,s){typeof t=="boolean"?(G(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,G(e)&&(n=e,e=void 0),e=e||"");var i=Z(),r=t?i._week.dow:0,a,u=[];if(n!=null)return Zt(e,(n+r)%7,s,"day");for(a=0;a<7;a++)u[a]=Zt(e,(a+r)%7,s,"day");return u}function ia(t,e){return Dn(t,e,"months")}function ra(t,e){return Dn(t,e,"monthsShort")}function aa(t,e,n){return Ye(t,e,n,"weekdays")}function oa(t,e,n){return Ye(t,e,n,"weekdaysShort")}function ua(t,e,n){return Ye(t,e,n,"weekdaysMin")}K("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=m(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}}),h.lang=N("moment.lang is deprecated. Use moment.locale instead.",K),h.langData=N("moment.langData is deprecated. Use moment.localeData instead.",Z);var B=Math.abs;function ha(){var t=this._data;return this._milliseconds=B(this._milliseconds),this._days=B(this._days),this._months=B(this._months),t.milliseconds=B(t.milliseconds),t.seconds=B(t.seconds),t.minutes=B(t.minutes),t.hours=B(t.hours),t.months=B(t.months),t.years=B(t.years),this}function Yn(t,e,n,s){var i=F(e,n);return t._milliseconds+=s*i._milliseconds,t._days+=s*i._days,t._months+=s*i._months,t._bubble()}function la(t,e){return Yn(this,t,e,1)}function da(t,e){return Yn(this,t,e,-1)}function xn(t){return t<0?Math.floor(t):Math.ceil(t)}function ca(){var t=this._milliseconds,e=this._days,n=this._months,s=this._data,i,r,a,u,c;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=xn(xe(n)+e)*864e5,e=0,n=0),s.milliseconds=t%1e3,i=C(t/1e3),s.seconds=i%60,r=C(i/60),s.minutes=r%60,a=C(r/60),s.hours=a%24,e+=C(a/24),c=C(On(e)),n+=c,e-=xn(xe(c)),u=C(n/12),n%=12,s.days=e,s.months=n,s.years=u,this}function On(t){return t*4800/146097}function xe(t){return t*146097/4800}function fa(t){if(!this.isValid())return NaN;var e,n,s=this._milliseconds;if(t=P(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+s/864e5,n=this._months+On(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(xe(this._months)),t){case"week":return e/7+s/6048e5;case"day":return e+s/864e5;case"hour":return e*24+s/36e5;case"minute":return e*1440+s/6e4;case"second":return e*86400+s/1e3;case"millisecond":return Math.floor(e*864e5)+s;default:throw new Error("Unknown unit "+t)}}function q(t){return function(){return this.as(t)}}var Tn=q("ms"),ma=q("s"),_a=q("m"),ya=q("h"),ga=q("d"),pa=q("w"),wa=q("M"),va=q("Q"),ka=q("y"),Ma=Tn;function Sa(){return F(this)}function Da(t){return t=P(t),this.isValid()?this[t+"s"]():NaN}function rt(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ya=rt("milliseconds"),xa=rt("seconds"),Oa=rt("minutes"),Ta=rt("hours"),ba=rt("days"),Na=rt("months"),Pa=rt("years");function Ca(){return C(this.days()/7)}var $=Math.round,ft={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ra(t,e,n,s,i){return i.relativeTime(e||1,!!n,t,s)}function Wa(t,e,n,s){var i=F(t).abs(),r=$(i.as("s")),a=$(i.as("m")),u=$(i.as("h")),c=$(i.as("d")),_=$(i.as("M")),x=$(i.as("w")),J=$(i.as("y")),et=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||a<=1&&["m"]||a<n.m&&["mm",a]||u<=1&&["h"]||u<n.h&&["hh",u]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(et=et||x<=1&&["w"]||x<n.w&&["ww",x]),et=et||_<=1&&["M"]||_<n.M&&["MM",_]||J<=1&&["y"]||["yy",J],et[2]=e,et[3]=+t>0,et[4]=s,Ra.apply(null,et)}function La(t){return t===void 0?$:typeof t=="function"?($=t,!0):!1}function Fa(t,e){return ft[t]===void 0?!1:e===void 0?ft[t]:(ft[t]=e,t==="s"&&(ft.ss=e-1),!0)}function Ea(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=ft,i,r;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(s=Object.assign({},ft,e),e.s!=null&&e.ss==null&&(s.ss=e.s-1)),i=this.localeData(),r=Wa(this,!n,s,i),n&&(r=i.pastFuture(+this,r)),i.postformat(r)}var Oe=Math.abs;function mt(t){return(t>0)-(t<0)||+t}function Bt(){if(!this.isValid())return this.localeData().invalidDate();var t=Oe(this._milliseconds)/1e3,e=Oe(this._days),n=Oe(this._months),s,i,r,a,u=this.asSeconds(),c,_,x,J;return u?(s=C(t/60),i=C(s/60),t%=60,s%=60,r=C(n/12),n%=12,a=t?t.toFixed(3).replace(/\.?0+$/,""):"",c=u<0?"-":"",_=mt(this._months)!==mt(u)?"-":"",x=mt(this._days)!==mt(u)?"-":"",J=mt(this._milliseconds)!==mt(u)?"-":"",c+"P"+(r?_+r+"Y":"")+(n?_+n+"M":"")+(e?x+e+"D":"")+(i||s||t?"T":"")+(i?J+i+"H":"")+(s?J+s+"M":"")+(t?J+a+"S":"")):"P0D"}var y=jt.prototype;y.isValid=Ni,y.abs=ha,y.add=la,y.subtract=da,y.as=fa,y.asMilliseconds=Tn,y.asSeconds=ma,y.asMinutes=_a,y.asHours=ya,y.asDays=ga,y.asWeeks=pa,y.asMonths=wa,y.asQuarters=va,y.asYears=ka,y.valueOf=Ma,y._bubble=ca,y.clone=Sa,y.get=Da,y.milliseconds=Ya,y.seconds=xa,y.minutes=Oa,y.hours=Ta,y.days=ba,y.weeks=Ca,y.months=Na,y.years=Pa,y.humanize=Ea,y.toISOString=Bt,y.toString=Bt,y.toJSON=Bt,y.locale=mn,y.localeData=yn,y.toIsoString=N("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Bt),y.lang=_n,d("X",0,0,"unix"),d("x",0,0,"valueOf"),l("x",Rt),l("X",is),w("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)}),w("x",function(t,e,n){n._d=new Date(m(t))});//! moment.js
10
+ h.version="2.30.1",Hn(k),h.fn=o,h.min=xi,h.max=Oi,h.now=Ti,h.utc=E,h.unix=na,h.months=ia,h.isDate=yt,h.locale=K,h.invalid=Ot,h.duration=F,h.isMoment=W,h.weekdays=aa,h.parseZone=sa,h.localeData=Z,h.isDuration=Gt,h.monthsShort=ra,h.weekdaysMin=ua,h.defineLocale=me,h.updateLocale=si,h.locales=ii,h.weekdaysShort=oa,h.normalizeUnits=P,h.relativeTimeRounding=La,h.relativeTimeThreshold=Fa,h.calendarFormat=Ki,h.prototype=o,h.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 Ha=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ua=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,bn=/(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,Te=[/^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],ja={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:bn,monthsShortRegex:bn,monthsStrictRegex:Ha,monthsShortStrictRegex:Ua,monthsParse:Te,longMonthsParse:Te,shortMonthsParse:Te,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:(t,e)=>{switch(e){case"D":return t+(t===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(t===1?"er":"e");case"w":case"W":return t+(t===1?"re":"e")}},week:{dow:1,doy:4}};h.locale("fr",ja);const Ga=t=>({x:Ne(t)?t:t.x||0,y:Ne(t)?t:t.y||0}),Aa={x:0,y:0,width:0,height:0,color:"white",padding:0,origin:_t.TOP_LEFT,composite:"source-over"},Ia=t=>({context:t.context,options:{...Aa},setPosition(e,n){return this.options.x=e,this.options.y=n,this},setDimensions(e,n){return this.options.width=e,this.options.height=n,this},setColor(e){return this.options.color=e,this},setPadding(e){return this.options.padding=e,this},setOrigin(e){return this.options.origin=e,this},setComposite(e){return this.options.composite=e,this},draw(){this.context.save(),this.context.globalCompositeOperation=this.options.composite;const{x:e,y:n}=qt[this.options.origin](this.options.x,this.options.y,this.options.width,this.options.height),s=Ga(this.options.padding);return this.context.fillStyle=En(this.options.color,t,e-s.x,n-s.y,e+this.options.width+s.x*2,n+this.options.height+s.y*2),this.context.fillRect(e-s.x,n-s.y,this.options.width+s.x*2,this.options.height+s.y*2),this.context.restore(),{width:this.options.width+s.x*2,next:i=>i(t,{...this.options,enable:!0})}}}),Va=(t,e)=>({options:{text:e.toString(),x:0,y:0,width:0,color:"white",backgroundColor:"transparent",font:null,fontSize:20,padding:0,origin:_t.TOP_LEFT},context:t.context,setText(s){return this.options.text=s,this},setPosition(s,i){return this.options.x=s,this.options.y=i,this},addPosition(s,i){return this.options.x+=s,this.options.y+=i,this},setFont(s,i){return this.options.font=s,this.options.fontSize=i,this},setColor(s){return this.options.color=s,this},setBackgroundColor(s){return this.options.backgroundColor=s,this},setPadding(s){return this.options.padding=s,this},setOrigin(s){return this.options.origin=s,this},setStroke(s){return this.options.stroke=s,this},draw(s=!0){if(!this.options.font)throw new Error("No font chose");this.context.save(),this.context.font=`${this.options.fontSize}px ${this.options.font}`,this.context.textBaseline="top";const{width:i}=this.context.measureText(this.options.text.toString());this.options.width=i;const{x:r,y:a}=qt[this.options.origin](this.options.x,this.options.y,i,this.options.fontSize);return this.options.backgroundColor!=="transparent"&&t.Rectangle().setPadding(this.options.padding).setPosition(this.options.x,this.options.y).setDimensions(i,this.options.fontSize).setColor(this.options.backgroundColor).setOrigin(this.options.origin).draw(),this.context.fillStyle=this.options.color,s&&this.context.fillText(this.options.text.toString(),r,a),this.options.stroke&&s&&(this.context.strokeStyle=this.options.stroke.color,this.context.lineWidth=this.options.stroke.width,this.context.strokeText(this.options.text.toString(),r,a)),this.context.restore(),{width:i,next:u=>u(t,{...this.options,enable:s})}}}),za=(t,e)=>{const n=Q.createCanvas(t,e);return{context:n.getContext("2d"),width:t,height:e,Text(s){return Va(this,s)},Rectangle(){return Ia(this)},Image(){return Ln(this)},blur(){this.context.filter="blur(4px)"},encode(s){return n.encode(s)}}};b.CanvasOrigin=_t,b.GOLDEN_GRADIENT=Rn,b.createCanvas=za,b.loadImage=Nn,b.nextAllToXAxis=Cn,b.registerFont=Wn,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
package/dist/types.d.ts CHANGED
@@ -42,7 +42,9 @@ export type CanvasInstance<FontName extends string, ImageName extends string> =
42
42
  encode(format: 'webp' | 'jpeg'): Promise<Buffer>;
43
43
  };
44
44
  export type Handlers<FontName extends string, ImageName extends string> = TextHandler<FontName, ImageName> | RectangleHandler<FontName, ImageName> | ImageHandler<FontName, ImageName>;
45
- export type CanvasNextHandler<FontName extends string, ImageName extends string, Handler extends Handlers<FontName, ImageName>> = (instance: CanvasInstance<FontName, ImageName>) => Handler;
45
+ export type CanvasNextHandler<FontName extends string, ImageName extends string, Handler extends Handlers<FontName, ImageName>, _BaseHandler extends Handlers<FontName, ImageName>> = <BaseHandler extends _BaseHandler>(instance: CanvasInstance<FontName, ImageName>, options: BaseHandler['options'] & {
46
+ enable: boolean;
47
+ }) => Handler;
46
48
  export type CanvasGradientSteps = (gradient: CanvasGradient) => void;
47
49
  export type CanvasColor = `#${string}` | (typeof CANVAS_COLORS)[number];
48
50
  export type CanvasColorWithGradient = CanvasColor | CanvasGradientSteps;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,YAAY,iBAAiB;CAC9B;AAED,MAAM,MAAM,uBAAuB,GAAG,CACpC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,KACP;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9B,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhE,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,MAAM,MAAM,cAAc,CACxB,QAAQ,SAAS,MAAM,EACvB,SAAS,SAAS,MAAM,IACtB;IACF,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,KAAK,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACjE,SAAS,EAAE,MAAM,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACvD,KAAK,EAAE,MAAM,YAAY,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAE/C,IAAI,IAAI,IAAI,CAAC;IACb,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAClD,CAAC;AAEF,MAAM,MAAM,QAAQ,CAAC,QAAQ,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM,IAClE,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,GAChC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,GACrC,YAAY,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AAEtC,MAAM,MAAM,iBAAiB,CAC3B,QAAQ,SAAS,MAAM,EACvB,SAAS,SAAS,MAAM,EACxB,OAAO,SAAS,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,IAC3C,CAAC,QAAQ,EAAE,cAAc,CAAC,QAAQ,EAAE,SAAS,CAAC,KAAK,OAAO,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG,IAAI,MAAM,EAAE,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,mBAAmB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,YAAY,iBAAiB;CAC9B;AAED,MAAM,MAAM,uBAAuB,GAAG,CACpC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,KACP;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9B,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhE,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,MAAM,MAAM,cAAc,CACxB,QAAQ,SAAS,MAAM,EACvB,SAAS,SAAS,MAAM,IACtB;IACF,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,KAAK,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACjE,SAAS,EAAE,MAAM,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACvD,KAAK,EAAE,MAAM,YAAY,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAE/C,IAAI,IAAI,IAAI,CAAC;IACb,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAClD,CAAC;AAEF,MAAM,MAAM,QAAQ,CAAC,QAAQ,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM,IAClE,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,GAChC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,GACrC,YAAY,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AAEtC,MAAM,MAAM,iBAAiB,CAC3B,QAAQ,SAAS,MAAM,EACvB,SAAS,SAAS,MAAM,EACxB,OAAO,SAAS,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,EAC7C,YAAY,SAAS,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,IAChD,CAAC,WAAW,SAAS,YAAY,EACnC,QAAQ,EAAE,cAAc,CAAC,QAAQ,EAAE,SAAS,CAAC,EAC7C,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,GAAG;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,KAClD,OAAO,CAAC;AAEb,MAAM,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG,IAAI,MAAM,EAAE,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,mBAAmB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { Image } from '@napi-rs/canvas';
2
2
  export declare const loadImage: (name: string, path: string) => void;
3
- export declare const getImage: <ImageName extends string>(name: ImageName) => Image | undefined;
3
+ export declare const getImage: <ImageName extends string>(name: ImageName) => Image;
4
4
  //# sourceMappingURL=image.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/utils/image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAK7C,eAAO,MAAM,SAAS,SAAU,MAAM,QAAQ,MAAM,SAInD,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAAoC,SAAS,sBAEjE,CAAC"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/utils/image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAK7C,eAAO,MAAM,SAAS,SAAU,MAAM,QAAQ,MAAM,SAInD,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAAoC,SAAS,KAAG,KAEpE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"image.js","sourceRoot":"","sources":["../../src/utils/image.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEzC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,IAAY,EAAE,EAAE;IACtD,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;QAC9B,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA2B,IAAe,EAAE,EAAE;IACpE,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC,CAAC"}
1
+ {"version":3,"file":"image.js","sourceRoot":"","sources":["../../src/utils/image.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEzC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,IAAY,EAAE,EAAE;IACtD,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;QAC9B,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA2B,IAAe,EAAS,EAAE;IAC3E,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAU,CAAC;AACnC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Handlers } from '../types';
2
+ export declare const nextAllToXAxis: <FontName extends string, ImageName extends string, Handler extends Handlers<FontName, ImageName>, OptionsHandler extends Handlers<FontName, ImageName>>(handler: Handler, options: OptionsHandler['options'] & {
3
+ enable: boolean;
4
+ }) => Handler;
5
+ //# sourceMappingURL=next.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../src/utils/next.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,eAAO,MAAM,cAAc,oKAMhB,OAAO,WACP,cAAc,CAAC,SAAS,CAAC,GAAG;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,KACvD,OAcF,CAAC"}
@@ -0,0 +1,16 @@
1
+ export const nextAllToXAxis = (handler, options) => {
2
+ handler.options = {
3
+ ...handler.options,
4
+ ...options,
5
+ text: 'text' in handler.options ? handler.options.text : '',
6
+ };
7
+ if (options.enable) {
8
+ handler.options = {
9
+ ...handler.options,
10
+ x: options.x + (options.width ?? 0),
11
+ y: options.y,
12
+ };
13
+ }
14
+ return handler;
15
+ };
16
+ //# sourceMappingURL=next.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"next.js","sourceRoot":"","sources":["../../src/utils/next.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG,CAM5B,OAAgB,EAChB,OAAwD,EAC/C,EAAE;IACX,OAAO,CAAC,OAAO,GAAG;QAChB,GAAG,OAAO,CAAC,OAAO;QAClB,GAAG,OAAO;QACV,IAAI,EAAE,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;KAC5D,CAAC;IACF,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACnB,OAAO,CAAC,OAAO,GAAG;YAChB,GAAG,OAAO,CAAC,OAAO;YAClB,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC;YACnC,CAAC,EAAE,OAAO,CAAC,CAAC;SACb,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opfr/canvas",
3
- "version": "0.4.1",
3
+ "version": "0.6.0",
4
4
  "private": false,
5
5
  "description": "OPFR canvas",
6
6
  "author": "Matthieu VEIGA",
@@ -8,9 +8,9 @@
8
8
  "prepublish": "npm run build",
9
9
  "build": " vite build && tsc"
10
10
  },
11
- "peerDependencies": {
11
+ "dependencies": {
12
12
  "@napi-rs/canvas": "0.x",
13
- "@opfr/utils-lang": "0.x"
13
+ "@opfr/utils-lang": "^0.9.0"
14
14
  },
15
15
  "main": "dist/index.umd.js",
16
16
  "module": "dist/index.es.js",
@@ -29,5 +29,5 @@
29
29
  "node_modules",
30
30
  "dist"
31
31
  ],
32
- "gitHead": "193bc2fc91cbc7a87da9e9d173ae6cedc1d65664"
32
+ "gitHead": "f18074d1652f18039ed3ed6e73cf1d7c879984e1"
33
33
  }