@creopse/vue 0.0.17 → 0.0.18

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.cjs CHANGED
@@ -1,13 +1,13 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue");var Mn;(function(e){e[e.DOCUMENT=1]="DOCUMENT",e[e.IMAGE=2]="IMAGE",e[e.VIDEO=3]="VIDEO",e[e.AUDIO=4]="AUDIO",e[e.OTHER=5]="OTHER"})(Mn||(Mn={}));var On;(function(e){e[e.DRAFT=1]="DRAFT",e[e.PENDING=2]="PENDING",e[e.PUBLISHED=3]="PUBLISHED",e[e.TRASH=4]="TRASH"})(On||(On={}));var Tn;(function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal"})(Tn||(Tn={}));var bn;(function(e){e.SELF_HOSTED="self-hosted",e.YOUTUBE="youtube"})(bn||(bn={}));function pi(e){return e.length>1&&e.charAt(e.length-1)==="/"?e.substring(0,e.length-1):e}function gi(e){return e.startsWith("/")?e.slice(1):e}function yi(){return window.location.protocol+"//"+window.location.hostname}function En(e){const t=document.getElementById(e);t?t.scrollIntoView({behavior:"smooth",block:"start"}):console.error(`Element with ID "${e}" not found.`)}function In(e){if(!e||typeof e!="string")return!1;let t=e.trim();t.includes("://")||(t="http://"+t);let r;try{r=new URL(t)}catch{return!1}const n=r.protocol.replace(":","");if(!["http","https","ftp"].includes(n)||!r.hostname)return!1;const s=r.hostname.toLowerCase();if(s.includes("_"))return!1;if(r.port){const f=parseInt(r.port,10);if(isNaN(f)||f<1||f>65535)return!1}const a=s==="localhost",o=/^(?:(?:\d{1,3}\.){3}\d{1,3})$/i.test(s),c=/^\[([0-9a-f:]+)\]$/i.test(s)||/^([0-9a-f:]+)$/i.test(s);if(!a&&!o&&!c){const f=s.split(".");if(f.length<2||f.some(M=>!M)||f[f.length-1].length<1)return!1}return!(!/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i.test(s)&&!a&&!o&&!c)}//! moment.js
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),Xn=require("@inertiajs/vue3");var Mn;(function(e){e[e.DOCUMENT=1]="DOCUMENT",e[e.IMAGE=2]="IMAGE",e[e.VIDEO=3]="VIDEO",e[e.AUDIO=4]="AUDIO",e[e.OTHER=5]="OTHER"})(Mn||(Mn={}));var On;(function(e){e[e.DRAFT=1]="DRAFT",e[e.PENDING=2]="PENDING",e[e.PUBLISHED=3]="PUBLISHED",e[e.TRASH=4]="TRASH"})(On||(On={}));var bn;(function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal"})(bn||(bn={}));var Tn;(function(e){e.SELF_HOSTED="self-hosted",e.YOUTUBE="youtube"})(Tn||(Tn={}));function yi(e){return e.length>1&&e.charAt(e.length-1)==="/"?e.substring(0,e.length-1):e}function vi(e){return e.startsWith("/")?e.slice(1):e}function Si(){return window.location.protocol+"//"+window.location.hostname}function En(e){const t=document.getElementById(e);t?t.scrollIntoView({behavior:"smooth",block:"start"}):console.error(`Element with ID "${e}" not found.`)}function In(e){if(!e||typeof e!="string")return!1;let t=e.trim();t.includes("://")||(t="http://"+t);let r;try{r=new URL(t)}catch{return!1}const n=r.protocol.replace(":","");if(!["http","https","ftp"].includes(n)||!r.hostname)return!1;const s=r.hostname.toLowerCase();if(s.includes("_"))return!1;if(r.port){const f=parseInt(r.port,10);if(isNaN(f)||f<1||f>65535)return!1}const a=s==="localhost",o=/^(?:(?:\d{1,3}\.){3}\d{1,3})$/i.test(s),c=/^\[([0-9a-f:]+)\]$/i.test(s)||/^([0-9a-f:]+)$/i.test(s);if(!a&&!o&&!c){const f=s.split(".");if(f.length<2||f.some(D=>!D)||f[f.length-1].length<1)return!1}return!(!/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i.test(s)&&!a&&!o&&!c)}//! 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 Xn;function _(){return Xn.apply(null,arguments)}function vi(e){Xn=e}function se(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ue(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ir(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(A(e,t))return!1;return!0}function q(e){return e===void 0}function ve(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function kt(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function es(e,t){var r=[],n,s=e.length;for(n=0;n<s;++n)r.push(t(e[n],n));return r}function Ie(e,t){for(var r in t)A(t,r)&&(e[r]=t[r]);return A(t,"toString")&&(e.toString=t.toString),A(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ue(e,t,r,n){return Ds(e,t,r,n,!0).utc()}function Si(){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 T(e){return e._pf==null&&(e._pf=Si()),e._pf}var kr;Array.prototype.some?kr=Array.prototype.some:kr=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Yr(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=T(e),r=kr.call(t.parsedDateParts,function(s){return s!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function Vt(e){var t=ue(NaN);return e!=null?Ie(T(t),e):T(t).userInvalidated=!0,t}var Yn=_.momentProperties=[],_r=!1;function xr(e,t){var r,n,s,a=Yn.length;if(q(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),q(t._i)||(e._i=t._i),q(t._f)||(e._f=t._f),q(t._l)||(e._l=t._l),q(t._strict)||(e._strict=t._strict),q(t._tzm)||(e._tzm=t._tzm),q(t._isUTC)||(e._isUTC=t._isUTC),q(t._offset)||(e._offset=t._offset),q(t._pf)||(e._pf=T(t)),q(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)n=Yn[r],s=t[n],q(s)||(e[n]=s);return e}function Dt(e){xr(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),_r===!1&&(_r=!0,_.updateOffset(this),_r=!1)}function ae(e){return e instanceof Dt||e!=null&&e._isAMomentObject!=null}function ts(e){_.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function te(e,t){var r=!0;return Ie(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,e),r){var n=[],s,a,o,c=arguments.length;for(a=0;a<c;a++){if(s="",typeof arguments[a]=="object"){s+=`
7
- [`+a+"] ";for(o in arguments[0])A(arguments[0],o)&&(s+=o+": "+arguments[0][o]+", ");s=s.slice(0,-2)}else s=arguments[a];n.push(s)}ts(e+`
6
+ var es;function _(){return es.apply(null,arguments)}function wi(e){es=e}function ie(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function He(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Er(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(x(e,t))return!1;return!0}function Q(e){return e===void 0}function ke(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function wt(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ts(e,t){var r=[],n,s=e.length;for(n=0;n<s;++n)r.push(t(e[n],n));return r}function xe(e,t){for(var r in t)x(t,r)&&(e[r]=t[r]);return x(t,"toString")&&(e.toString=t.toString),x(t,"valueOf")&&(e.valueOf=t.valueOf),e}function fe(e,t,r,n){return Ms(e,t,r,n,!0).utc()}function ki(){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 O(e){return e._pf==null&&(e._pf=ki()),e._pf}var wr;Array.prototype.some?wr=Array.prototype.some:wr=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Ir(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=O(e),r=wr.call(t.parsedDateParts,function(s){return s!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function Gt(e){var t=fe(NaN);return e!=null?xe(O(t),e):O(t).userInvalidated=!0,t}var Yn=_.momentProperties=[],mr=!1;function Yr(e,t){var r,n,s,a=Yn.length;if(Q(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Q(t._i)||(e._i=t._i),Q(t._f)||(e._f=t._f),Q(t._l)||(e._l=t._l),Q(t._strict)||(e._strict=t._strict),Q(t._tzm)||(e._tzm=t._tzm),Q(t._isUTC)||(e._isUTC=t._isUTC),Q(t._offset)||(e._offset=t._offset),Q(t._pf)||(e._pf=O(t)),Q(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)n=Yn[r],s=t[n],Q(s)||(e[n]=s);return e}function kt(e){Yr(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),mr===!1&&(mr=!0,_.updateOffset(this),mr=!1)}function oe(e){return e instanceof kt||e!=null&&e._isAMomentObject!=null}function rs(e){_.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function re(e,t){var r=!0;return xe(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,e),r){var n=[],s,a,o,c=arguments.length;for(a=0;a<c;a++){if(s="",typeof arguments[a]=="object"){s+=`
7
+ [`+a+"] ";for(o in arguments[0])x(arguments[0],o)&&(s+=o+": "+arguments[0][o]+", ");s=s.slice(0,-2)}else s=arguments[a];n.push(s)}rs(e+`
8
8
  Arguments: `+Array.prototype.slice.call(n).join("")+`
9
- `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var xn={};function rs(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),xn[e]||(ts(t),xn[e]=!0)}_.suppressDeprecationWarnings=!1;_.deprecationHandler=null;function ce(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function wi(e){var t,r;for(r in e)A(e,r)&&(t=e[r],ce(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Dr(e,t){var r=Ie({},e),n;for(n in t)A(t,n)&&(Ue(e[n])&&Ue(t[n])?(r[n]={},Ie(r[n],e[n]),Ie(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)A(e,n)&&!A(t,n)&&Ue(e[n])&&(r[n]=Ie({},r[n]));return r}function Nr(e){e!=null&&this.set(e)}var Mr;Object.keys?Mr=Object.keys:Mr=function(e){var t,r=[];for(t in e)A(e,t)&&r.push(t);return r};var ki={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Di(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return ce(n)?n.call(t,r):n}function le(e,t,r){var n=""+Math.abs(e),s=t-n.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var Ar=/(\[[^\[]*\])|(\\)?([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,Nt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,pr={},nt={};function k(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(nt[e]=s),t&&(nt[t[0]]=function(){return le(s.apply(this,arguments),t[1],t[2])}),r&&(nt[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Mi(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Oi(e){var t=e.match(Ar),r,n;for(r=0,n=t.length;r<n;r++)nt[t[r]]?t[r]=nt[t[r]]:t[r]=Mi(t[r]);return function(s){var a="",o;for(o=0;o<n;o++)a+=ce(t[o])?t[o].call(s,e):t[o];return a}}function Ct(e,t){return e.isValid()?(t=ns(t,e.localeData()),pr[t]=pr[t]||Oi(t),pr[t](e)):e.localeData().invalidDate()}function ns(e,t){var r=5;function n(s){return t.longDateFormat(s)||s}for(Nt.lastIndex=0;r>=0&&Nt.test(e);)e=e.replace(Nt,n),Nt.lastIndex=0,r-=1;return e}var Ti={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function bi(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Ar).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var Ei="Invalid date";function Ii(){return this._invalidDate}var Yi="%d",xi=/\d{1,2}/;function Ni(e){return this._ordinal.replace("%d",e)}var Ai={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 Li(e,t,r,n){var s=this._relativeTime[r];return ce(s)?s(e,t,r,n):s.replace(/%d/i,e)}function Ci(e,t){var r=this._relativeTime[e>0?"future":"past"];return ce(r)?r(t):r.replace(/%s/i,t)}var Nn={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 re(e){return typeof e=="string"?Nn[e]||Nn[e.toLowerCase()]:void 0}function Lr(e){var t={},r,n;for(n in e)A(e,n)&&(r=re(n),r&&(t[r]=e[n]));return t}var Ri={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 Pi(e){var t=[],r;for(r in e)A(e,r)&&t.push({unit:r,priority:Ri[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}var ss=/\d/,Q=/\d\d/,as=/\d{3}/,Cr=/\d{4}/,Bt=/[+-]?\d{6}/,W=/\d\d?/,is=/\d\d\d\d?/,os=/\d\d\d\d\d\d?/,zt=/\d{1,3}/,Rr=/\d{1,4}/,Zt=/[+-]?\d{1,6}/,it=/\d+/,qt=/[+-]?\d+/,Wi=/Z|[+-]\d\d:?\d\d/gi,Kt=/Z|[+-]\d\d(?::?\d\d)?/gi,Ui=/[+-]?\d+(\.\d{1,3})?/,Mt=/[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,ot=/^[1-9]\d?/,Pr=/^([1-9]\d|\d)/,Wt;Wt={};function g(e,t,r){Wt[e]=ce(t)?t:function(n,s){return n&&r?r:t}}function Fi(e,t){return A(Wt,e)?Wt[e](t._strict,t._locale):new RegExp(Hi(e))}function Hi(e){return ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,s,a){return r||n||s||a}))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function E(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=ee(t)),r}var Or={};function C(e,t){var r,n=t,s;for(typeof e=="string"&&(e=[e]),ve(t)&&(n=function(a,o){o[t]=E(a)}),s=e.length,r=0;r<s;r++)Or[e[r]]=n}function Ot(e,t){C(e,function(r,n,s,a){s._w=s._w||{},t(r,s._w,s,a)})}function ji(e,t,r){t!=null&&A(Or,e)&&Or[e](t,r._a,r,e)}function Jt(e){return e%4===0&&e%100!==0||e%400===0}var V=0,_e=1,oe=2,j=3,ne=4,pe=5,We=6,$i=7,Gi=8;k("Y",0,0,function(){var e=this.year();return e<=9999?le(e,4):"+"+e});k(0,["YY",2],0,function(){return this.year()%100});k(0,["YYYY",4],0,"year");k(0,["YYYYY",5],0,"year");k(0,["YYYYYY",6,!0],0,"year");g("Y",qt);g("YY",W,Q);g("YYYY",Rr,Cr);g("YYYYY",Zt,Bt);g("YYYYYY",Zt,Bt);C(["YYYYY","YYYYYY"],V);C("YYYY",function(e,t){t[V]=e.length===2?_.parseTwoDigitYear(e):E(e)});C("YY",function(e,t){t[V]=_.parseTwoDigitYear(e)});C("Y",function(e,t){t[V]=parseInt(e,10)});function gt(e){return Jt(e)?366:365}_.parseTwoDigitYear=function(e){return E(e)+(E(e)>68?1900:2e3)};var ls=lt("FullYear",!0);function Vi(){return Jt(this.year())}function lt(e,t){return function(r){return r!=null?(us(this,e,r),_.updateOffset(this,t),this):yt(this,e)}}function yt(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function us(e,t,r){var n,s,a,o,c;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(s?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(s?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(s?n.setUTCHours(r):n.setHours(r));case"Date":return void(s?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}a=r,o=e.month(),c=e.date(),c=c===29&&o===1&&!Jt(a)?28:c,s?n.setUTCFullYear(a,o,c):n.setFullYear(a,o,c)}}function Bi(e){return e=re(e),ce(this[e])?this[e]():this}function zi(e,t){if(typeof e=="object"){e=Lr(e);var r=Pi(e),n,s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(e=re(e),ce(this[e]))return this[e](t);return this}function Zi(e,t){return(e%t+t)%t}var H;Array.prototype.indexOf?H=Array.prototype.indexOf:H=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Wr(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Zi(t,12);return e+=(t-r)/12,r===1?Jt(e)?29:28:31-r%7%2}k("M",["MM",2],"Mo",function(){return this.month()+1});k("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});k("MMMM",0,0,function(e){return this.localeData().months(this,e)});g("M",W,ot);g("MM",W,Q);g("MMM",function(e,t){return t.monthsShortRegex(e)});g("MMMM",function(e,t){return t.monthsRegex(e)});C(["M","MM"],function(e,t){t[_e]=E(e)-1});C(["MMM","MMMM"],function(e,t,r,n){var s=r._locale.monthsParse(e,n,r._strict);s!=null?t[_e]=s:T(r).invalidMonth=e});var qi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),cs="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ds=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ki=Mt,Ji=Mt;function Qi(e,t){return e?se(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ds).test(t)?"format":"standalone"][e.month()]:se(this._months)?this._months:this._months.standalone}function Xi(e,t){return e?se(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ds.test(t)?"format":"standalone"][e.month()]:se(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function eo(e,t,r){var n,s,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=ue([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(s=H.call(this._shortMonthsParse,o),s!==-1?s:null):(s=H.call(this._longMonthsParse,o),s!==-1?s:null):t==="MMM"?(s=H.call(this._shortMonthsParse,o),s!==-1?s:(s=H.call(this._longMonthsParse,o),s!==-1?s:null)):(s=H.call(this._longMonthsParse,o),s!==-1?s:(s=H.call(this._shortMonthsParse,o),s!==-1?s:null))}function to(e,t,r){var n,s,a;if(this._monthsParseExact)return eo.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=ue([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function fs(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=E(t);else if(t=e.localeData().monthsParse(t),!ve(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,Wr(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function hs(e){return e!=null?(fs(this,e),_.updateOffset(this,!0),this):yt(this,"Month")}function ro(){return Wr(this.year(),this.month())}function no(e){return this._monthsParseExact?(A(this,"_monthsRegex")||ms.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(A(this,"_monthsShortRegex")||(this._monthsShortRegex=Ki),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function so(e){return this._monthsParseExact?(A(this,"_monthsRegex")||ms.call(this),e?this._monthsStrictRegex:this._monthsRegex):(A(this,"_monthsRegex")||(this._monthsRegex=Ji),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ms(){function e(m,f){return f.length-m.length}var t=[],r=[],n=[],s,a,o,c;for(s=0;s<12;s++)a=ue([2e3,s]),o=ge(this.monthsShort(a,"")),c=ge(this.months(a,"")),t.push(o),r.push(c),n.push(c),n.push(o);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ao(e,t,r,n,s,a,o){var c;return e<100&&e>=0?(c=new Date(e+400,t,r,n,s,a,o),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,r,n,s,a,o),c}function vt(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ut(e,t,r){var n=7+t-r,s=(7+vt(e,0,n).getUTCDay()-t)%7;return-s+n-1}function _s(e,t,r,n,s){var a=(7+r-n)%7,o=Ut(e,n,s),c=1+7*(t-1)+a+o,m,f;return c<=0?(m=e-1,f=gt(m)+c):c>gt(e)?(m=e+1,f=c-gt(e)):(m=e,f=c),{year:m,dayOfYear:f}}function St(e,t,r){var n=Ut(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,a,o;return s<1?(o=e.year()-1,a=s+ye(o,t,r)):s>ye(e.year(),t,r)?(a=s-ye(e.year(),t,r),o=e.year()+1):(o=e.year(),a=s),{week:a,year:o}}function ye(e,t,r){var n=Ut(e,t,r),s=Ut(e+1,t,r);return(gt(e)-n+s)/7}k("w",["ww",2],"wo","week");k("W",["WW",2],"Wo","isoWeek");g("w",W,ot);g("ww",W,Q);g("W",W,ot);g("WW",W,Q);Ot(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=E(e)});function io(e){return St(e,this._week.dow,this._week.doy).week}var oo={dow:0,doy:6};function lo(){return this._week.dow}function uo(){return this._week.doy}function co(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function fo(e){var t=St(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}k("d",0,"do","day");k("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});k("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});k("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});k("e",0,0,"weekday");k("E",0,0,"isoWeekday");g("d",W);g("e",W);g("E",W);g("dd",function(e,t){return t.weekdaysMinRegex(e)});g("ddd",function(e,t){return t.weekdaysShortRegex(e)});g("dddd",function(e,t){return t.weekdaysRegex(e)});Ot(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:T(r).invalidWeekday=e});Ot(["d","e","E"],function(e,t,r,n){t[n]=E(e)});function ho(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function mo(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ur(e,t){return e.slice(t,7).concat(e.slice(0,t))}var _o="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ps="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),po="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),go=Mt,yo=Mt,vo=Mt;function So(e,t){var r=se(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ur(r,this._week.dow):e?r[e.day()]:r}function wo(e){return e===!0?Ur(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ko(e){return e===!0?Ur(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Do(e,t,r){var n,s,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=ue([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(s=H.call(this._weekdaysParse,o),s!==-1?s:null):t==="ddd"?(s=H.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null):t==="dddd"?(s=H.call(this._weekdaysParse,o),s!==-1||(s=H.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null)):t==="ddd"?(s=H.call(this._shortWeekdaysParse,o),s!==-1||(s=H.call(this._weekdaysParse,o),s!==-1)?s:(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=H.call(this._minWeekdaysParse,o),s!==-1||(s=H.call(this._weekdaysParse,o),s!==-1)?s:(s=H.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function Mo(e,t,r){var n,s,a;if(this._weekdaysParseExact)return Do.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=ue([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Oo(e){if(!this.isValid())return e!=null?this:NaN;var t=yt(this,"Day");return e!=null?(e=ho(e,this.localeData()),this.add(e-t,"d")):t}function To(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function bo(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=mo(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Eo(e){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Fr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(A(this,"_weekdaysRegex")||(this._weekdaysRegex=go),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Io(e){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Fr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(A(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=yo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Yo(e){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Fr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(A(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=vo),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Fr(){function e(M,O){return O.length-M.length}var t=[],r=[],n=[],s=[],a,o,c,m,f;for(a=0;a<7;a++)o=ue([2e3,1]).day(a),c=ge(this.weekdaysMin(o,"")),m=ge(this.weekdaysShort(o,"")),f=ge(this.weekdays(o,"")),t.push(c),r.push(m),n.push(f),s.push(c),s.push(m),s.push(f);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Hr(){return this.hours()%12||12}function xo(){return this.hours()||24}k("H",["HH",2],0,"hour");k("h",["hh",2],0,Hr);k("k",["kk",2],0,xo);k("hmm",0,0,function(){return""+Hr.apply(this)+le(this.minutes(),2)});k("hmmss",0,0,function(){return""+Hr.apply(this)+le(this.minutes(),2)+le(this.seconds(),2)});k("Hmm",0,0,function(){return""+this.hours()+le(this.minutes(),2)});k("Hmmss",0,0,function(){return""+this.hours()+le(this.minutes(),2)+le(this.seconds(),2)});function gs(e,t){k(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}gs("a",!0);gs("A",!1);function ys(e,t){return t._meridiemParse}g("a",ys);g("A",ys);g("H",W,Pr);g("h",W,ot);g("k",W,ot);g("HH",W,Q);g("hh",W,Q);g("kk",W,Q);g("hmm",is);g("hmmss",os);g("Hmm",is);g("Hmmss",os);C(["H","HH"],j);C(["k","kk"],function(e,t,r){var n=E(e);t[j]=n===24?0:n});C(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});C(["h","hh"],function(e,t,r){t[j]=E(e),T(r).bigHour=!0});C("hmm",function(e,t,r){var n=e.length-2;t[j]=E(e.substr(0,n)),t[ne]=E(e.substr(n)),T(r).bigHour=!0});C("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[j]=E(e.substr(0,n)),t[ne]=E(e.substr(n,2)),t[pe]=E(e.substr(s)),T(r).bigHour=!0});C("Hmm",function(e,t,r){var n=e.length-2;t[j]=E(e.substr(0,n)),t[ne]=E(e.substr(n))});C("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[j]=E(e.substr(0,n)),t[ne]=E(e.substr(n,2)),t[pe]=E(e.substr(s))});function No(e){return(e+"").toLowerCase().charAt(0)==="p"}var Ao=/[ap]\.?m?\.?/i,Lo=lt("Hours",!0);function Co(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var vs={calendar:ki,longDateFormat:Ti,invalidDate:Ei,ordinal:Yi,dayOfMonthOrdinalParse:xi,relativeTime:Ai,months:qi,monthsShort:cs,week:oo,weekdays:_o,weekdaysMin:po,weekdaysShort:ps,meridiemParse:Ao},U={},ht={},wt;function Ro(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function An(e){return e&&e.toLowerCase().replace("_","-")}function Po(e){for(var t=0,r,n,s,a;t<e.length;){for(a=An(e[t]).split("-"),r=a.length,n=An(e[t+1]),n=n?n.split("-"):null;r>0;){if(s=Qt(a.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&Ro(a,n)>=r-1)break;r--}t++}return wt}function Wo(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Qt(e){var t=null,r;if(U[e]===void 0&&typeof module<"u"&&module&&module.exports&&Wo(e))try{t=wt._abbr,r=require,r("./locale/"+e),xe(t)}catch{U[e]=null}return U[e]}function xe(e,t){var r;return e&&(q(t)?r=Se(e):r=jr(e,t),r?wt=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),wt._abbr}function jr(e,t){if(t!==null){var r,n=vs;if(t.abbr=e,U[e]!=null)rs("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."),n=U[e]._config;else if(t.parentLocale!=null)if(U[t.parentLocale]!=null)n=U[t.parentLocale]._config;else if(r=Qt(t.parentLocale),r!=null)n=r._config;else return ht[t.parentLocale]||(ht[t.parentLocale]=[]),ht[t.parentLocale].push({name:e,config:t}),null;return U[e]=new Nr(Dr(n,t)),ht[e]&&ht[e].forEach(function(s){jr(s.name,s.config)}),xe(e),U[e]}else return delete U[e],null}function Uo(e,t){if(t!=null){var r,n,s=vs;U[e]!=null&&U[e].parentLocale!=null?U[e].set(Dr(U[e]._config,t)):(n=Qt(e),n!=null&&(s=n._config),t=Dr(s,t),n==null&&(t.abbr=e),r=new Nr(t),r.parentLocale=U[e],U[e]=r),xe(e)}else U[e]!=null&&(U[e].parentLocale!=null?(U[e]=U[e].parentLocale,e===xe()&&xe(e)):U[e]!=null&&delete U[e]);return U[e]}function Se(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return wt;if(!se(e)){if(t=Qt(e),t)return t;e=[e]}return Po(e)}function Fo(){return Mr(U)}function $r(e){var t,r=e._a;return r&&T(e).overflow===-2&&(t=r[_e]<0||r[_e]>11?_e:r[oe]<1||r[oe]>Wr(r[V],r[_e])?oe:r[j]<0||r[j]>24||r[j]===24&&(r[ne]!==0||r[pe]!==0||r[We]!==0)?j:r[ne]<0||r[ne]>59?ne:r[pe]<0||r[pe]>59?pe:r[We]<0||r[We]>999?We:-1,T(e)._overflowDayOfYear&&(t<V||t>oe)&&(t=oe),T(e)._overflowWeeks&&t===-1&&(t=$i),T(e)._overflowWeekday&&t===-1&&(t=Gi),T(e).overflow=t),e}var Ho=/^\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)?)?$/,jo=/^\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)?)?$/,$o=/Z|[+-]\d\d(?::?\d\d)?/,At=[["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]],gr=[["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/]],Go=/^\/?Date\((-?\d+)/i,Vo=/^(?:(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}))$/,Bo={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 Ss(e){var t,r,n=e._i,s=Ho.exec(n)||jo.exec(n),a,o,c,m,f=At.length,M=gr.length;if(s){for(T(e).iso=!0,t=0,r=f;t<r;t++)if(At[t][1].exec(s[1])){o=At[t][0],a=At[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(s[3]){for(t=0,r=M;t<r;t++)if(gr[t][1].exec(s[3])){c=(s[2]||" ")+gr[t][0];break}if(c==null){e._isValid=!1;return}}if(!a&&c!=null){e._isValid=!1;return}if(s[4])if($o.exec(s[4]))m="Z";else{e._isValid=!1;return}e._f=o+(c||"")+(m||""),Vr(e)}else e._isValid=!1}function zo(e,t,r,n,s,a){var o=[Zo(e),cs.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(s,10)];return a&&o.push(parseInt(a,10)),o}function Zo(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function qo(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ko(e,t,r){if(e){var n=ps.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return T(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Jo(e,t,r){if(e)return Bo[e];if(t)return 0;var n=parseInt(r,10),s=n%100,a=(n-s)/100;return a*60+s}function ws(e){var t=Vo.exec(qo(e._i)),r;if(t){if(r=zo(t[4],t[3],t[2],t[5],t[6],t[7]),!Ko(t[1],r,e))return;e._a=r,e._tzm=Jo(t[8],t[9],t[10]),e._d=vt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),T(e).rfc2822=!0}else e._isValid=!1}function Qo(e){var t=Go.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Ss(e),e._isValid===!1)delete e._isValid;else return;if(ws(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_.createFromInputFallback(e)}_.createFromInputFallback=te("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function tt(e,t,r){return e??t??r}function Xo(e){var t=new Date(_.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Gr(e){var t,r,n=[],s,a,o;if(!e._d){for(s=Xo(e),e._w&&e._a[oe]==null&&e._a[_e]==null&&el(e),e._dayOfYear!=null&&(o=tt(e._a[V],s[V]),(e._dayOfYear>gt(o)||e._dayOfYear===0)&&(T(e)._overflowDayOfYear=!0),r=vt(o,0,e._dayOfYear),e._a[_e]=r.getUTCMonth(),e._a[oe]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[j]===24&&e._a[ne]===0&&e._a[pe]===0&&e._a[We]===0&&(e._nextDay=!0,e._a[j]=0),e._d=(e._useUTC?vt:ao).apply(null,n),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[j]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(T(e).weekdayMismatch=!0)}}function el(e){var t,r,n,s,a,o,c,m,f;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,r=tt(t.GG,e._a[V],St(P(),1,4).year),n=tt(t.W,1),s=tt(t.E,1),(s<1||s>7)&&(m=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,f=St(P(),a,o),r=tt(t.gg,e._a[V],f.year),n=tt(t.w,f.week),t.d!=null?(s=t.d,(s<0||s>6)&&(m=!0)):t.e!=null?(s=t.e+a,(t.e<0||t.e>6)&&(m=!0)):s=a),n<1||n>ye(r,a,o)?T(e)._overflowWeeks=!0:m!=null?T(e)._overflowWeekday=!0:(c=_s(r,n,s,a,o),e._a[V]=c.year,e._dayOfYear=c.dayOfYear)}_.ISO_8601=function(){};_.RFC_2822=function(){};function Vr(e){if(e._f===_.ISO_8601){Ss(e);return}if(e._f===_.RFC_2822){ws(e);return}e._a=[],T(e).empty=!0;var t=""+e._i,r,n,s,a,o,c=t.length,m=0,f,M;for(s=ns(e._f,e._locale).match(Ar)||[],M=s.length,r=0;r<M;r++)a=s[r],n=(t.match(Fi(a,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&T(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),m+=n.length),nt[a]?(n?T(e).empty=!1:T(e).unusedTokens.push(a),ji(a,n,e)):e._strict&&!n&&T(e).unusedTokens.push(a);T(e).charsLeftOver=c-m,t.length>0&&T(e).unusedInput.push(t),e._a[j]<=12&&T(e).bigHour===!0&&e._a[j]>0&&(T(e).bigHour=void 0),T(e).parsedDateParts=e._a.slice(0),T(e).meridiem=e._meridiem,e._a[j]=tl(e._locale,e._a[j],e._meridiem),f=T(e).era,f!==null&&(e._a[V]=e._locale.erasConvertYear(f,e._a[V])),Gr(e),$r(e)}function tl(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function rl(e){var t,r,n,s,a,o,c=!1,m=e._f.length;if(m===0){T(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<m;s++)a=0,o=!1,t=xr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],Vr(t),Yr(t)&&(o=!0),a+=T(t).charsLeftOver,a+=T(t).unusedTokens.length*10,T(t).score=a,c?a<n&&(n=a,r=t):(n==null||a<n||o)&&(n=a,r=t,o&&(c=!0));Ie(e,r||t)}function nl(e){if(!e._d){var t=Lr(e._i),r=t.day===void 0?t.date:t.day;e._a=es([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Gr(e)}}function sl(e){var t=new Dt($r(ks(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ks(e){var t=e._i,r=e._f;return e._locale=e._locale||Se(e._l),t===null||r===void 0&&t===""?Vt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ae(t)?new Dt($r(t)):(kt(t)?e._d=t:se(r)?rl(e):r?Vr(e):al(e),Yr(e)||(e._d=null),e))}function al(e){var t=e._i;q(t)?e._d=new Date(_.now()):kt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Qo(e):se(t)?(e._a=es(t.slice(0),function(r){return parseInt(r,10)}),Gr(e)):Ue(t)?nl(e):ve(t)?e._d=new Date(t):_.createFromInputFallback(e)}function Ds(e,t,r,n,s){var a={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Ue(e)&&Ir(e)||se(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=s,a._l=r,a._i=e,a._f=t,a._strict=n,sl(a)}function P(e,t,r,n){return Ds(e,t,r,n,!1)}var il=te("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Vt()}),ol=te("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Vt()});function Ms(e,t){var r,n;if(t.length===1&&se(t[0])&&(t=t[0]),!t.length)return P();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function ll(){var e=[].slice.call(arguments,0);return Ms("isBefore",e)}function ul(){var e=[].slice.call(arguments,0);return Ms("isAfter",e)}var cl=function(){return Date.now?Date.now():+new Date},mt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function dl(e){var t,r=!1,n,s=mt.length;for(t in e)if(A(e,t)&&!(H.call(mt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<s;++n)if(e[mt[n]]){if(r)return!1;parseFloat(e[mt[n]])!==E(e[mt[n]])&&(r=!0)}return!0}function fl(){return this._isValid}function hl(){return ie(NaN)}function Xt(e){var t=Lr(e),r=t.year||0,n=t.quarter||0,s=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,c=t.hour||0,m=t.minute||0,f=t.second||0,M=t.millisecond||0;this._isValid=dl(t),this._milliseconds=+M+f*1e3+m*6e4+c*1e3*60*60,this._days=+o+a*7,this._months=+s+n*3+r*12,this._data={},this._locale=Se(),this._bubble()}function Rt(e){return e instanceof Xt}function Tr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ml(e,t,r){var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0,o;for(o=0;o<n;o++)E(e[o])!==E(t[o])&&a++;return a+s}function Os(e,t){k(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+le(~~(r/60),2)+t+le(~~r%60,2)})}Os("Z",":");Os("ZZ","");g("Z",Kt);g("ZZ",Kt);C(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Br(Kt,e)});var _l=/([\+\-]|\d\d)/gi;function Br(e,t){var r=(t||"").match(e),n,s,a;return r===null?null:(n=r[r.length-1]||[],s=(n+"").match(_l)||["-",0,0],a=+(s[1]*60)+E(s[2]),a===0?0:s[0]==="+"?a:-a)}function zr(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(ae(e)||kt(e)?e.valueOf():P(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),_.updateOffset(r,!1),r):P(e).local()}function br(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function pl(e,t,r){var n=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Br(Kt,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=br(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),n!==e&&(!t||this._changeInProgress?Es(this,ie(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:br(this)}function gl(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yl(e){return this.utcOffset(0,e)}function vl(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(br(this),"m")),this}function Sl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Br(Wi,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wl(e){return this.isValid()?(e=e?P(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function kl(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Dl(){if(!q(this._isDSTShifted))return this._isDSTShifted;var e={},t;return xr(e,this),e=ks(e),e._a?(t=e._isUTC?ue(e._a):P(e._a),this._isDSTShifted=this.isValid()&&ml(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ml(){return this.isValid()?!this._isUTC:!1}function Ol(){return this.isValid()?this._isUTC:!1}function Ts(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Tl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,bl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ie(e,t){var r=e,n=null,s,a,o;return Rt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:ve(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=Tl.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:E(n[oe])*s,h:E(n[j])*s,m:E(n[ne])*s,s:E(n[pe])*s,ms:E(Tr(n[We]*1e3))*s}):(n=bl.exec(e))?(s=n[1]==="-"?-1:1,r={y:Pe(n[2],s),M:Pe(n[3],s),w:Pe(n[4],s),d:Pe(n[5],s),h:Pe(n[6],s),m:Pe(n[7],s),s:Pe(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=El(P(r.from),P(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),a=new Xt(r),Rt(e)&&A(e,"_locale")&&(a._locale=e._locale),Rt(e)&&A(e,"_isValid")&&(a._isValid=e._isValid),a}ie.fn=Xt.prototype;ie.invalid=hl;function Pe(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Ln(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function El(e,t){var r;return e.isValid()&&t.isValid()?(t=zr(t,e),e.isBefore(t)?r=Ln(e,t):(r=Ln(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function bs(e,t){return function(r,n){var s,a;return n!==null&&!isNaN(+n)&&(rs(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),s=ie(r,n),Es(this,s,e),this}}function Es(e,t,r,n){var s=t._milliseconds,a=Tr(t._days),o=Tr(t._months);e.isValid()&&(n=n??!0,o&&fs(e,yt(e,"Month")+o*r),a&&us(e,"Date",yt(e,"Date")+a*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&_.updateOffset(e,a||o))}var Il=bs(1,"add"),Yl=bs(-1,"subtract");function Is(e){return typeof e=="string"||e instanceof String}function xl(e){return ae(e)||kt(e)||Is(e)||ve(e)||Al(e)||Nl(e)||e===null||e===void 0}function Nl(e){var t=Ue(e)&&!Ir(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,a,o=n.length;for(s=0;s<o;s+=1)a=n[s],r=r||A(e,a);return t&&r}function Al(e){var t=se(e),r=!1;return t&&(r=e.filter(function(n){return!ve(n)&&Is(e)}).length===0),t&&r}function Ll(e){var t=Ue(e)&&!Ir(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,a;for(s=0;s<n.length;s+=1)a=n[s],r=r||A(e,a);return t&&r}function Cl(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Rl(e,t){arguments.length===1&&(arguments[0]?xl(arguments[0])?(e=arguments[0],t=void 0):Ll(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||P(),n=zr(r,this).startOf("day"),s=_.calendarFormat(this,n)||"sameElse",a=t&&(ce(t[s])?t[s].call(this,r):t[s]);return this.format(a||this.localeData().calendar(s,this,P(r)))}function Pl(){return new Dt(this)}function Wl(e,t){var r=ae(e)?e:P(e);return this.isValid()&&r.isValid()?(t=re(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Ul(e,t){var r=ae(e)?e:P(e);return this.isValid()&&r.isValid()?(t=re(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Fl(e,t,r,n){var s=ae(e)?e:P(e),a=ae(t)?t:P(t);return this.isValid()&&s.isValid()&&a.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(n[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function Hl(e,t){var r=ae(e)?e:P(e),n;return this.isValid()&&r.isValid()?(t=re(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function jl(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function $l(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Gl(e,t,r){var n,s,a;if(!this.isValid())return NaN;if(n=zr(e,this),!n.isValid())return NaN;switch(s=(n.utcOffset()-this.utcOffset())*6e4,t=re(t),t){case"year":a=Pt(this,n)/12;break;case"month":a=Pt(this,n);break;case"quarter":a=Pt(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-s)/864e5;break;case"week":a=(this-n-s)/6048e5;break;default:a=this-n}return r?a:ee(a)}function Pt(e,t){if(e.date()<t.date())return-Pt(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),s,a;return t-n<0?(s=e.clone().add(r-1,"months"),a=(t-n)/(n-s)):(s=e.clone().add(r+1,"months"),a=(t-n)/(s-n)),-(r+a)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Vl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Bl(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Ct(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ce(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ct(r,"Z")):Ct(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function zl(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+n+s+a)}function Zl(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=Ct(this,e);return this.localeData().postformat(t)}function ql(e,t){return this.isValid()&&(ae(e)&&e.isValid()||P(e).isValid())?ie({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Kl(e){return this.from(P(),e)}function Jl(e,t){return this.isValid()&&(ae(e)&&e.isValid()||P(e).isValid())?ie({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ql(e){return this.to(P(),e)}function Ys(e){var t;return e===void 0?this._locale._abbr:(t=Se(e),t!=null&&(this._locale=t),this)}var xs=te("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Ns(){return this._locale}var Ft=1e3,st=60*Ft,Ht=60*st,As=(365*400+97)*24*Ht;function at(e,t){return(e%t+t)%t}function Ls(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-As:new Date(e,t,r).valueOf()}function Cs(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-As:Date.UTC(e,t,r)}function Xl(e){var t,r;if(e=re(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Cs:Ls,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=at(t+(this._isUTC?0:this.utcOffset()*st),Ht);break;case"minute":t=this._d.valueOf(),t-=at(t,st);break;case"second":t=this._d.valueOf(),t-=at(t,Ft);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function eu(e){var t,r;if(e=re(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Cs:Ls,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ht-at(t+(this._isUTC?0:this.utcOffset()*st),Ht)-1;break;case"minute":t=this._d.valueOf(),t+=st-at(t,st)-1;break;case"second":t=this._d.valueOf(),t+=Ft-at(t,Ft)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function tu(){return this._d.valueOf()-(this._offset||0)*6e4}function ru(){return Math.floor(this.valueOf()/1e3)}function nu(){return new Date(this.valueOf())}function su(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function au(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function iu(){return this.isValid()?this.toISOString():null}function ou(){return Yr(this)}function lu(){return Ie({},T(this))}function uu(){return T(this).overflow}function cu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}k("N",0,0,"eraAbbr");k("NN",0,0,"eraAbbr");k("NNN",0,0,"eraAbbr");k("NNNN",0,0,"eraName");k("NNNNN",0,0,"eraNarrow");k("y",["y",1],"yo","eraYear");k("y",["yy",2],0,"eraYear");k("y",["yyy",3],0,"eraYear");k("y",["yyyy",4],0,"eraYear");g("N",Zr);g("NN",Zr);g("NNN",Zr);g("NNNN",wu);g("NNNNN",ku);C(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?T(r).era=s:T(r).invalidEra=e});g("y",it);g("yy",it);g("yyy",it);g("yyyy",it);g("yo",Du);C(["y","yy","yyy","yyyy"],V);C(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[V]=r._locale.eraYearOrdinalParse(e,s):t[V]=parseInt(e,10)});function du(e,t){var r,n,s,a=this._eras||Se("en")._eras;for(r=0,n=a.length;r<n;++r){switch(typeof a[r].since){case"string":s=_(a[r].since).startOf("day"),a[r].since=s.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":s=_(a[r].until).startOf("day").valueOf(),a[r].until=s.valueOf();break}}return a}function fu(e,t,r){var n,s,a=this.eras(),o,c,m;for(e=e.toUpperCase(),n=0,s=a.length;n<s;++n)if(o=a[n].name.toUpperCase(),c=a[n].abbr.toUpperCase(),m=a[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(c===e)return a[n];break;case"NNNN":if(o===e)return a[n];break;case"NNNNN":if(m===e)return a[n];break}else if([o,c,m].indexOf(e)>=0)return a[n]}function hu(e,t){var r=e.since<=e.until?1:-1;return t===void 0?_(e.since).year():_(e.since).year()+(t-e.offset)*r}function mu(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function _u(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function pu(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function gu(){var e,t,r,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return(this.year()-_(s[e].since).year())*r+s[e].offset;return this.year()}function yu(e){return A(this,"_erasNameRegex")||qr.call(this),e?this._erasNameRegex:this._erasRegex}function vu(e){return A(this,"_erasAbbrRegex")||qr.call(this),e?this._erasAbbrRegex:this._erasRegex}function Su(e){return A(this,"_erasNarrowRegex")||qr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Zr(e,t){return t.erasAbbrRegex(e)}function wu(e,t){return t.erasNameRegex(e)}function ku(e,t){return t.erasNarrowRegex(e)}function Du(e,t){return t._eraYearOrdinalRegex||it}function qr(){var e=[],t=[],r=[],n=[],s,a,o,c,m,f=this.eras();for(s=0,a=f.length;s<a;++s)o=ge(f[s].name),c=ge(f[s].abbr),m=ge(f[s].narrow),t.push(o),e.push(c),r.push(m),n.push(o),n.push(c),n.push(m);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}k(0,["gg",2],0,function(){return this.weekYear()%100});k(0,["GG",2],0,function(){return this.isoWeekYear()%100});function er(e,t){k(0,[e,e.length],0,t)}er("gggg","weekYear");er("ggggg","weekYear");er("GGGG","isoWeekYear");er("GGGGG","isoWeekYear");g("G",qt);g("g",qt);g("GG",W,Q);g("gg",W,Q);g("GGGG",Rr,Cr);g("gggg",Rr,Cr);g("GGGGG",Zt,Bt);g("ggggg",Zt,Bt);Ot(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=E(e)});Ot(["gg","GG"],function(e,t,r,n){t[n]=_.parseTwoDigitYear(e)});function Mu(e){return Rs.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ou(e){return Rs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Tu(){return ye(this.year(),1,4)}function bu(){return ye(this.isoWeekYear(),1,4)}function Eu(){var e=this.localeData()._week;return ye(this.year(),e.dow,e.doy)}function Iu(){var e=this.localeData()._week;return ye(this.weekYear(),e.dow,e.doy)}function Rs(e,t,r,n,s){var a;return e==null?St(this,n,s).year:(a=ye(e,n,s),t>a&&(t=a),Yu.call(this,e,t,r,n,s))}function Yu(e,t,r,n,s){var a=_s(e,t,r,n,s),o=vt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}k("Q",0,"Qo","quarter");g("Q",ss);C("Q",function(e,t){t[_e]=(E(e)-1)*3});function xu(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}k("D",["DD",2],"Do","date");g("D",W,ot);g("DD",W,Q);g("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});C(["D","DD"],oe);C("Do",function(e,t){t[oe]=E(e.match(W)[0])});var Ps=lt("Date",!0);k("DDD",["DDDD",3],"DDDo","dayOfYear");g("DDD",zt);g("DDDD",as);C(["DDD","DDDD"],function(e,t,r){r._dayOfYear=E(e)});function Nu(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}k("m",["mm",2],0,"minute");g("m",W,Pr);g("mm",W,Q);C(["m","mm"],ne);var Au=lt("Minutes",!1);k("s",["ss",2],0,"second");g("s",W,Pr);g("ss",W,Q);C(["s","ss"],pe);var Lu=lt("Seconds",!1);k("S",0,0,function(){return~~(this.millisecond()/100)});k(0,["SS",2],0,function(){return~~(this.millisecond()/10)});k(0,["SSS",3],0,"millisecond");k(0,["SSSS",4],0,function(){return this.millisecond()*10});k(0,["SSSSS",5],0,function(){return this.millisecond()*100});k(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});k(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});k(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});k(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});g("S",zt,ss);g("SS",zt,Q);g("SSS",zt,as);var Ye,Ws;for(Ye="SSSS";Ye.length<=9;Ye+="S")g(Ye,it);function Cu(e,t){t[We]=E(("0."+e)*1e3)}for(Ye="S";Ye.length<=9;Ye+="S")C(Ye,Cu);Ws=lt("Milliseconds",!1);k("z",0,0,"zoneAbbr");k("zz",0,0,"zoneName");function Ru(){return this._isUTC?"UTC":""}function Pu(){return this._isUTC?"Coordinated Universal Time":""}var h=Dt.prototype;h.add=Il;h.calendar=Rl;h.clone=Pl;h.diff=Gl;h.endOf=eu;h.format=Zl;h.from=ql;h.fromNow=Kl;h.to=Jl;h.toNow=Ql;h.get=Bi;h.invalidAt=uu;h.isAfter=Wl;h.isBefore=Ul;h.isBetween=Fl;h.isSame=Hl;h.isSameOrAfter=jl;h.isSameOrBefore=$l;h.isValid=ou;h.lang=xs;h.locale=Ys;h.localeData=Ns;h.max=ol;h.min=il;h.parsingFlags=lu;h.set=zi;h.startOf=Xl;h.subtract=Yl;h.toArray=su;h.toObject=au;h.toDate=nu;h.toISOString=Bl;h.inspect=zl;typeof Symbol<"u"&&Symbol.for!=null&&(h[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});h.toJSON=iu;h.toString=Vl;h.unix=ru;h.valueOf=tu;h.creationData=cu;h.eraName=mu;h.eraNarrow=_u;h.eraAbbr=pu;h.eraYear=gu;h.year=ls;h.isLeapYear=Vi;h.weekYear=Mu;h.isoWeekYear=Ou;h.quarter=h.quarters=xu;h.month=hs;h.daysInMonth=ro;h.week=h.weeks=co;h.isoWeek=h.isoWeeks=fo;h.weeksInYear=Eu;h.weeksInWeekYear=Iu;h.isoWeeksInYear=Tu;h.isoWeeksInISOWeekYear=bu;h.date=Ps;h.day=h.days=Oo;h.weekday=To;h.isoWeekday=bo;h.dayOfYear=Nu;h.hour=h.hours=Lo;h.minute=h.minutes=Au;h.second=h.seconds=Lu;h.millisecond=h.milliseconds=Ws;h.utcOffset=pl;h.utc=yl;h.local=vl;h.parseZone=Sl;h.hasAlignedHourOffset=wl;h.isDST=kl;h.isLocal=Ml;h.isUtcOffset=Ol;h.isUtc=Ts;h.isUTC=Ts;h.zoneAbbr=Ru;h.zoneName=Pu;h.dates=te("dates accessor is deprecated. Use date instead.",Ps);h.months=te("months accessor is deprecated. Use month instead",hs);h.years=te("years accessor is deprecated. Use year instead",ls);h.zone=te("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gl);h.isDSTShifted=te("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Dl);function Wu(e){return P(e*1e3)}function Uu(){return P.apply(null,arguments).parseZone()}function Us(e){return e}var L=Nr.prototype;L.calendar=Di;L.longDateFormat=bi;L.invalidDate=Ii;L.ordinal=Ni;L.preparse=Us;L.postformat=Us;L.relativeTime=Li;L.pastFuture=Ci;L.set=wi;L.eras=du;L.erasParse=fu;L.erasConvertYear=hu;L.erasAbbrRegex=vu;L.erasNameRegex=yu;L.erasNarrowRegex=Su;L.months=Qi;L.monthsShort=Xi;L.monthsParse=to;L.monthsRegex=so;L.monthsShortRegex=no;L.week=io;L.firstDayOfYear=uo;L.firstDayOfWeek=lo;L.weekdays=So;L.weekdaysMin=ko;L.weekdaysShort=wo;L.weekdaysParse=Mo;L.weekdaysRegex=Eo;L.weekdaysShortRegex=Io;L.weekdaysMinRegex=Yo;L.isPM=No;L.meridiem=Co;function jt(e,t,r,n){var s=Se(),a=ue().set(n,t);return s[r](a,e)}function Fs(e,t,r){if(ve(e)&&(t=e,e=void 0),e=e||"",t!=null)return jt(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=jt(e,n,r,"month");return s}function Kr(e,t,r,n){typeof e=="boolean"?(ve(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,ve(t)&&(r=t,t=void 0),t=t||"");var s=Se(),a=e?s._week.dow:0,o,c=[];if(r!=null)return jt(t,(r+a)%7,n,"day");for(o=0;o<7;o++)c[o]=jt(t,(o+a)%7,n,"day");return c}function Fu(e,t){return Fs(e,t,"months")}function Hu(e,t){return Fs(e,t,"monthsShort")}function ju(e,t,r){return Kr(e,t,r,"weekdays")}function $u(e,t,r){return Kr(e,t,r,"weekdaysShort")}function Gu(e,t,r){return Kr(e,t,r,"weekdaysMin")}xe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=E(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});_.lang=te("moment.lang is deprecated. Use moment.locale instead.",xe);_.langData=te("moment.langData is deprecated. Use moment.localeData instead.",Se);var he=Math.abs;function Vu(){var e=this._data;return this._milliseconds=he(this._milliseconds),this._days=he(this._days),this._months=he(this._months),e.milliseconds=he(e.milliseconds),e.seconds=he(e.seconds),e.minutes=he(e.minutes),e.hours=he(e.hours),e.months=he(e.months),e.years=he(e.years),this}function Hs(e,t,r,n){var s=ie(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function Bu(e,t){return Hs(this,e,t,1)}function zu(e,t){return Hs(this,e,t,-1)}function Cn(e){return e<0?Math.floor(e):Math.ceil(e)}function Zu(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,a,o,c,m;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Cn(Er(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=ee(e/1e3),n.seconds=s%60,a=ee(s/60),n.minutes=a%60,o=ee(a/60),n.hours=o%24,t+=ee(o/24),m=ee(js(t)),r+=m,t-=Cn(Er(m)),c=ee(r/12),r%=12,n.days=t,n.months=r,n.years=c,this}function js(e){return e*4800/146097}function Er(e){return e*146097/4800}function qu(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=re(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+js(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Er(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function we(e){return function(){return this.as(e)}}var $s=we("ms"),Ku=we("s"),Ju=we("m"),Qu=we("h"),Xu=we("d"),ec=we("w"),tc=we("M"),rc=we("Q"),nc=we("y"),sc=$s;function ac(){return ie(this)}function ic(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Fe(e){return function(){return this.isValid()?this._data[e]:NaN}}var oc=Fe("milliseconds"),lc=Fe("seconds"),uc=Fe("minutes"),cc=Fe("hours"),dc=Fe("days"),fc=Fe("months"),hc=Fe("years");function mc(){return ee(this.days()/7)}var me=Math.round,rt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function _c(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function pc(e,t,r,n){var s=ie(e).abs(),a=me(s.as("s")),o=me(s.as("m")),c=me(s.as("h")),m=me(s.as("d")),f=me(s.as("M")),M=me(s.as("w")),O=me(s.as("y")),Y=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||o<=1&&["m"]||o<r.m&&["mm",o]||c<=1&&["h"]||c<r.h&&["hh",c]||m<=1&&["d"]||m<r.d&&["dd",m];return r.w!=null&&(Y=Y||M<=1&&["w"]||M<r.w&&["ww",M]),Y=Y||f<=1&&["M"]||f<r.M&&["MM",f]||O<=1&&["y"]||["yy",O],Y[2]=t,Y[3]=+e>0,Y[4]=n,_c.apply(null,Y)}function gc(e){return e===void 0?me:typeof e=="function"?(me=e,!0):!1}function yc(e,t){return rt[e]===void 0?!1:t===void 0?rt[e]:(rt[e]=t,e==="s"&&(rt.ss=t-1),!0)}function vc(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=rt,s,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},rt,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),a=pc(this,!r,n,s),r&&(a=s.pastFuture(+this,a)),s.postformat(a)}var yr=Math.abs;function et(e){return(e>0)-(e<0)||+e}function tr(){if(!this.isValid())return this.localeData().invalidDate();var e=yr(this._milliseconds)/1e3,t=yr(this._days),r=yr(this._months),n,s,a,o,c=this.asSeconds(),m,f,M,O;return c?(n=ee(e/60),s=ee(n/60),e%=60,n%=60,a=ee(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",m=c<0?"-":"",f=et(this._months)!==et(c)?"-":"",M=et(this._days)!==et(c)?"-":"",O=et(this._milliseconds)!==et(c)?"-":"",m+"P"+(a?f+a+"Y":"")+(r?f+r+"M":"")+(t?M+t+"D":"")+(s||n||e?"T":"")+(s?O+s+"H":"")+(n?O+n+"M":"")+(e?O+o+"S":"")):"P0D"}var N=Xt.prototype;N.isValid=fl;N.abs=Vu;N.add=Bu;N.subtract=zu;N.as=qu;N.asMilliseconds=$s;N.asSeconds=Ku;N.asMinutes=Ju;N.asHours=Qu;N.asDays=Xu;N.asWeeks=ec;N.asMonths=tc;N.asQuarters=rc;N.asYears=nc;N.valueOf=sc;N._bubble=Zu;N.clone=ac;N.get=ic;N.milliseconds=oc;N.seconds=lc;N.minutes=uc;N.hours=cc;N.days=dc;N.weeks=mc;N.months=fc;N.years=hc;N.humanize=vc;N.toISOString=tr;N.toString=tr;N.toJSON=tr;N.locale=Ys;N.localeData=Ns;N.toIsoString=te("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",tr);N.lang=xs;k("X",0,0,"unix");k("x",0,0,"valueOf");g("x",qt);g("X",Ui);C("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});C("x",function(e,t,r){r._d=new Date(E(e))});//! moment.js
10
- _.version="2.30.1";vi(P);_.fn=h;_.min=ll;_.max=ul;_.now=cl;_.utc=ue;_.unix=Wu;_.months=Fu;_.isDate=kt;_.locale=xe;_.invalid=Vt;_.duration=ie;_.isMoment=ae;_.weekdays=ju;_.parseZone=Uu;_.localeData=Se;_.isDuration=Rt;_.monthsShort=Hu;_.weekdaysMin=Gu;_.defineLocale=jr;_.updateLocale=Uo;_.locales=Fo;_.weekdaysShort=$u;_.normalizeUnits=re;_.relativeTimeRounding=gc;_.relativeTimeThreshold=yc;_.calendarFormat=Cl;_.prototype=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"};//! moment.js locale configuration
9
+ `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var xn={};function ns(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),xn[e]||(rs(t),xn[e]=!0)}_.suppressDeprecationWarnings=!1;_.deprecationHandler=null;function he(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Di(e){var t,r;for(r in e)x(e,r)&&(t=e[r],he(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function kr(e,t){var r=xe({},e),n;for(n in t)x(t,n)&&(He(e[n])&&He(t[n])?(r[n]={},xe(r[n],e[n]),xe(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)x(e,n)&&!x(t,n)&&He(e[n])&&(r[n]=xe({},r[n]));return r}function xr(e){e!=null&&this.set(e)}var Dr;Object.keys?Dr=Object.keys:Dr=function(e){var t,r=[];for(t in e)x(e,t)&&r.push(t);return r};var Mi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Oi(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return he(n)?n.call(t,r):n}function de(e,t,r){var n=""+Math.abs(e),s=t-n.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var Nr=/(\[[^\[]*\])|(\\)?([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,xt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,_r={},rt={};function k(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(rt[e]=s),t&&(rt[t[0]]=function(){return de(s.apply(this,arguments),t[1],t[2])}),r&&(rt[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function bi(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ti(e){var t=e.match(Nr),r,n;for(r=0,n=t.length;r<n;r++)rt[t[r]]?t[r]=rt[t[r]]:t[r]=bi(t[r]);return function(s){var a="",o;for(o=0;o<n;o++)a+=he(t[o])?t[o].call(s,e):t[o];return a}}function Rt(e,t){return e.isValid()?(t=ss(t,e.localeData()),_r[t]=_r[t]||Ti(t),_r[t](e)):e.localeData().invalidDate()}function ss(e,t){var r=5;function n(s){return t.longDateFormat(s)||s}for(xt.lastIndex=0;r>=0&&xt.test(e);)e=e.replace(xt,n),xt.lastIndex=0,r-=1;return e}var Ei={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 Ii(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Nr).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var Yi="Invalid date";function xi(){return this._invalidDate}var Ni="%d",Ai=/\d{1,2}/;function Ri(e){return this._ordinal.replace("%d",e)}var Ci={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 Li(e,t,r,n){var s=this._relativeTime[r];return he(s)?s(e,t,r,n):s.replace(/%d/i,e)}function Pi(e,t){var r=this._relativeTime[e>0?"future":"past"];return he(r)?r(t):r.replace(/%s/i,t)}var Nn={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 ne(e){return typeof e=="string"?Nn[e]||Nn[e.toLowerCase()]:void 0}function Ar(e){var t={},r,n;for(n in e)x(e,n)&&(r=ne(n),r&&(t[r]=e[n]));return t}var Wi={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 Ui(e){var t=[],r;for(r in e)x(e,r)&&t.push({unit:r,priority:Wi[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}var as=/\d/,ee=/\d\d/,is=/\d{3}/,Rr=/\d{4}/,Vt=/[+-]?\d{6}/,W=/\d\d?/,os=/\d\d\d\d?/,ls=/\d\d\d\d\d\d?/,Bt=/\d{1,3}/,Cr=/\d{1,4}/,zt=/[+-]?\d{1,6}/,at=/\d+/,Zt=/[+-]?\d+/,Fi=/Z|[+-]\d\d:?\d\d/gi,qt=/Z|[+-]\d\d(?::?\d\d)?/gi,Hi=/[+-]?\d+(\.\d{1,3})?/,Dt=/[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,it=/^[1-9]\d?/,Lr=/^([1-9]\d|\d)/,Pt;Pt={};function g(e,t,r){Pt[e]=he(t)?t:function(n,s){return n&&r?r:t}}function ji(e,t){return x(Pt,e)?Pt[e](t._strict,t._locale):new RegExp($i(e))}function $i(e){return Se(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,s,a){return r||n||s||a}))}function Se(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function te(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function E(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=te(t)),r}var Mr={};function C(e,t){var r,n=t,s;for(typeof e=="string"&&(e=[e]),ke(t)&&(n=function(a,o){o[t]=E(a)}),s=e.length,r=0;r<s;r++)Mr[e[r]]=n}function Mt(e,t){C(e,function(r,n,s,a){s._w=s._w||{},t(r,s._w,s,a)})}function Gi(e,t,r){t!=null&&x(Mr,e)&&Mr[e](t,r._a,r,e)}function Kt(e){return e%4===0&&e%100!==0||e%400===0}var z=0,ye=1,ce=2,j=3,ae=4,ve=5,Fe=6,Vi=7,Bi=8;k("Y",0,0,function(){var e=this.year();return e<=9999?de(e,4):"+"+e});k(0,["YY",2],0,function(){return this.year()%100});k(0,["YYYY",4],0,"year");k(0,["YYYYY",5],0,"year");k(0,["YYYYYY",6,!0],0,"year");g("Y",Zt);g("YY",W,ee);g("YYYY",Cr,Rr);g("YYYYY",zt,Vt);g("YYYYYY",zt,Vt);C(["YYYYY","YYYYYY"],z);C("YYYY",function(e,t){t[z]=e.length===2?_.parseTwoDigitYear(e):E(e)});C("YY",function(e,t){t[z]=_.parseTwoDigitYear(e)});C("Y",function(e,t){t[z]=parseInt(e,10)});function pt(e){return Kt(e)?366:365}_.parseTwoDigitYear=function(e){return E(e)+(E(e)>68?1900:2e3)};var us=ot("FullYear",!0);function zi(){return Kt(this.year())}function ot(e,t){return function(r){return r!=null?(cs(this,e,r),_.updateOffset(this,t),this):gt(this,e)}}function gt(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function cs(e,t,r){var n,s,a,o,c;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(s?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(s?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(s?n.setUTCHours(r):n.setHours(r));case"Date":return void(s?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}a=r,o=e.month(),c=e.date(),c=c===29&&o===1&&!Kt(a)?28:c,s?n.setUTCFullYear(a,o,c):n.setFullYear(a,o,c)}}function Zi(e){return e=ne(e),he(this[e])?this[e]():this}function qi(e,t){if(typeof e=="object"){e=Ar(e);var r=Ui(e),n,s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(e=ne(e),he(this[e]))return this[e](t);return this}function Ki(e,t){return(e%t+t)%t}var H;Array.prototype.indexOf?H=Array.prototype.indexOf:H=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Pr(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Ki(t,12);return e+=(t-r)/12,r===1?Kt(e)?29:28:31-r%7%2}k("M",["MM",2],"Mo",function(){return this.month()+1});k("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});k("MMMM",0,0,function(e){return this.localeData().months(this,e)});g("M",W,it);g("MM",W,ee);g("MMM",function(e,t){return t.monthsShortRegex(e)});g("MMMM",function(e,t){return t.monthsRegex(e)});C(["M","MM"],function(e,t){t[ye]=E(e)-1});C(["MMM","MMMM"],function(e,t,r,n){var s=r._locale.monthsParse(e,n,r._strict);s!=null?t[ye]=s:O(r).invalidMonth=e});var Ji="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ds="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Qi=Dt,Xi=Dt;function eo(e,t){return e?ie(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||fs).test(t)?"format":"standalone"][e.month()]:ie(this._months)?this._months:this._months.standalone}function to(e,t){return e?ie(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[fs.test(t)?"format":"standalone"][e.month()]:ie(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ro(e,t,r){var n,s,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=fe([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(s=H.call(this._shortMonthsParse,o),s!==-1?s:null):(s=H.call(this._longMonthsParse,o),s!==-1?s:null):t==="MMM"?(s=H.call(this._shortMonthsParse,o),s!==-1?s:(s=H.call(this._longMonthsParse,o),s!==-1?s:null)):(s=H.call(this._longMonthsParse,o),s!==-1?s:(s=H.call(this._shortMonthsParse,o),s!==-1?s:null))}function no(e,t,r){var n,s,a;if(this._monthsParseExact)return ro.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=fe([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function hs(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=E(t);else if(t=e.localeData().monthsParse(t),!ke(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,Pr(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function ms(e){return e!=null?(hs(this,e),_.updateOffset(this,!0),this):gt(this,"Month")}function so(){return Pr(this.year(),this.month())}function ao(e){return this._monthsParseExact?(x(this,"_monthsRegex")||_s.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(x(this,"_monthsShortRegex")||(this._monthsShortRegex=Qi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function io(e){return this._monthsParseExact?(x(this,"_monthsRegex")||_s.call(this),e?this._monthsStrictRegex:this._monthsRegex):(x(this,"_monthsRegex")||(this._monthsRegex=Xi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function _s(){function e(m,f){return f.length-m.length}var t=[],r=[],n=[],s,a,o,c;for(s=0;s<12;s++)a=fe([2e3,s]),o=Se(this.monthsShort(a,"")),c=Se(this.months(a,"")),t.push(o),r.push(c),n.push(c),n.push(o);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function oo(e,t,r,n,s,a,o){var c;return e<100&&e>=0?(c=new Date(e+400,t,r,n,s,a,o),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,r,n,s,a,o),c}function yt(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Wt(e,t,r){var n=7+t-r,s=(7+yt(e,0,n).getUTCDay()-t)%7;return-s+n-1}function ps(e,t,r,n,s){var a=(7+r-n)%7,o=Wt(e,n,s),c=1+7*(t-1)+a+o,m,f;return c<=0?(m=e-1,f=pt(m)+c):c>pt(e)?(m=e+1,f=c-pt(e)):(m=e,f=c),{year:m,dayOfYear:f}}function vt(e,t,r){var n=Wt(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,a,o;return s<1?(o=e.year()-1,a=s+we(o,t,r)):s>we(e.year(),t,r)?(a=s-we(e.year(),t,r),o=e.year()+1):(o=e.year(),a=s),{week:a,year:o}}function we(e,t,r){var n=Wt(e,t,r),s=Wt(e+1,t,r);return(pt(e)-n+s)/7}k("w",["ww",2],"wo","week");k("W",["WW",2],"Wo","isoWeek");g("w",W,it);g("ww",W,ee);g("W",W,it);g("WW",W,ee);Mt(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=E(e)});function lo(e){return vt(e,this._week.dow,this._week.doy).week}var uo={dow:0,doy:6};function co(){return this._week.dow}function fo(){return this._week.doy}function ho(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function mo(e){var t=vt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}k("d",0,"do","day");k("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});k("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});k("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});k("e",0,0,"weekday");k("E",0,0,"isoWeekday");g("d",W);g("e",W);g("E",W);g("dd",function(e,t){return t.weekdaysMinRegex(e)});g("ddd",function(e,t){return t.weekdaysShortRegex(e)});g("dddd",function(e,t){return t.weekdaysRegex(e)});Mt(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:O(r).invalidWeekday=e});Mt(["d","e","E"],function(e,t,r,n){t[n]=E(e)});function _o(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function po(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Wr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var go="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vo=Dt,So=Dt,wo=Dt;function ko(e,t){var r=ie(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Wr(r,this._week.dow):e?r[e.day()]:r}function Do(e){return e===!0?Wr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Mo(e){return e===!0?Wr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Oo(e,t,r){var n,s,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=fe([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(s=H.call(this._weekdaysParse,o),s!==-1?s:null):t==="ddd"?(s=H.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null):t==="dddd"?(s=H.call(this._weekdaysParse,o),s!==-1||(s=H.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null)):t==="ddd"?(s=H.call(this._shortWeekdaysParse,o),s!==-1||(s=H.call(this._weekdaysParse,o),s!==-1)?s:(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=H.call(this._minWeekdaysParse,o),s!==-1||(s=H.call(this._weekdaysParse,o),s!==-1)?s:(s=H.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function bo(e,t,r){var n,s,a;if(this._weekdaysParseExact)return Oo.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=fe([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function To(e){if(!this.isValid())return e!=null?this:NaN;var t=gt(this,"Day");return e!=null?(e=_o(e,this.localeData()),this.add(e-t,"d")):t}function Eo(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Io(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=po(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Yo(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ur.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(x(this,"_weekdaysRegex")||(this._weekdaysRegex=vo),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function xo(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ur.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(x(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=So),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function No(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ur.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(x(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=wo),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ur(){function e(D,b){return b.length-D.length}var t=[],r=[],n=[],s=[],a,o,c,m,f;for(a=0;a<7;a++)o=fe([2e3,1]).day(a),c=Se(this.weekdaysMin(o,"")),m=Se(this.weekdaysShort(o,"")),f=Se(this.weekdays(o,"")),t.push(c),r.push(m),n.push(f),s.push(c),s.push(m),s.push(f);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Fr(){return this.hours()%12||12}function Ao(){return this.hours()||24}k("H",["HH",2],0,"hour");k("h",["hh",2],0,Fr);k("k",["kk",2],0,Ao);k("hmm",0,0,function(){return""+Fr.apply(this)+de(this.minutes(),2)});k("hmmss",0,0,function(){return""+Fr.apply(this)+de(this.minutes(),2)+de(this.seconds(),2)});k("Hmm",0,0,function(){return""+this.hours()+de(this.minutes(),2)});k("Hmmss",0,0,function(){return""+this.hours()+de(this.minutes(),2)+de(this.seconds(),2)});function ys(e,t){k(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ys("a",!0);ys("A",!1);function vs(e,t){return t._meridiemParse}g("a",vs);g("A",vs);g("H",W,Lr);g("h",W,it);g("k",W,it);g("HH",W,ee);g("hh",W,ee);g("kk",W,ee);g("hmm",os);g("hmmss",ls);g("Hmm",os);g("Hmmss",ls);C(["H","HH"],j);C(["k","kk"],function(e,t,r){var n=E(e);t[j]=n===24?0:n});C(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});C(["h","hh"],function(e,t,r){t[j]=E(e),O(r).bigHour=!0});C("hmm",function(e,t,r){var n=e.length-2;t[j]=E(e.substr(0,n)),t[ae]=E(e.substr(n)),O(r).bigHour=!0});C("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[j]=E(e.substr(0,n)),t[ae]=E(e.substr(n,2)),t[ve]=E(e.substr(s)),O(r).bigHour=!0});C("Hmm",function(e,t,r){var n=e.length-2;t[j]=E(e.substr(0,n)),t[ae]=E(e.substr(n))});C("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[j]=E(e.substr(0,n)),t[ae]=E(e.substr(n,2)),t[ve]=E(e.substr(s))});function Ro(e){return(e+"").toLowerCase().charAt(0)==="p"}var Co=/[ap]\.?m?\.?/i,Lo=ot("Hours",!0);function Po(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Ss={calendar:Mi,longDateFormat:Ei,invalidDate:Yi,ordinal:Ni,dayOfMonthOrdinalParse:Ai,relativeTime:Ci,months:Ji,monthsShort:ds,week:uo,weekdays:go,weekdaysMin:yo,weekdaysShort:gs,meridiemParse:Co},U={},ft={},St;function Wo(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function An(e){return e&&e.toLowerCase().replace("_","-")}function Uo(e){for(var t=0,r,n,s,a;t<e.length;){for(a=An(e[t]).split("-"),r=a.length,n=An(e[t+1]),n=n?n.split("-"):null;r>0;){if(s=Jt(a.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&Wo(a,n)>=r-1)break;r--}t++}return St}function Fo(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Jt(e){var t=null,r;if(U[e]===void 0&&typeof module<"u"&&module&&module.exports&&Fo(e))try{t=St._abbr,r=require,r("./locale/"+e),Ae(t)}catch{U[e]=null}return U[e]}function Ae(e,t){var r;return e&&(Q(t)?r=De(e):r=Hr(e,t),r?St=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),St._abbr}function Hr(e,t){if(t!==null){var r,n=Ss;if(t.abbr=e,U[e]!=null)ns("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."),n=U[e]._config;else if(t.parentLocale!=null)if(U[t.parentLocale]!=null)n=U[t.parentLocale]._config;else if(r=Jt(t.parentLocale),r!=null)n=r._config;else return ft[t.parentLocale]||(ft[t.parentLocale]=[]),ft[t.parentLocale].push({name:e,config:t}),null;return U[e]=new xr(kr(n,t)),ft[e]&&ft[e].forEach(function(s){Hr(s.name,s.config)}),Ae(e),U[e]}else return delete U[e],null}function Ho(e,t){if(t!=null){var r,n,s=Ss;U[e]!=null&&U[e].parentLocale!=null?U[e].set(kr(U[e]._config,t)):(n=Jt(e),n!=null&&(s=n._config),t=kr(s,t),n==null&&(t.abbr=e),r=new xr(t),r.parentLocale=U[e],U[e]=r),Ae(e)}else U[e]!=null&&(U[e].parentLocale!=null?(U[e]=U[e].parentLocale,e===Ae()&&Ae(e)):U[e]!=null&&delete U[e]);return U[e]}function De(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return St;if(!ie(e)){if(t=Jt(e),t)return t;e=[e]}return Uo(e)}function jo(){return Dr(U)}function jr(e){var t,r=e._a;return r&&O(e).overflow===-2&&(t=r[ye]<0||r[ye]>11?ye:r[ce]<1||r[ce]>Pr(r[z],r[ye])?ce:r[j]<0||r[j]>24||r[j]===24&&(r[ae]!==0||r[ve]!==0||r[Fe]!==0)?j:r[ae]<0||r[ae]>59?ae:r[ve]<0||r[ve]>59?ve:r[Fe]<0||r[Fe]>999?Fe:-1,O(e)._overflowDayOfYear&&(t<z||t>ce)&&(t=ce),O(e)._overflowWeeks&&t===-1&&(t=Vi),O(e)._overflowWeekday&&t===-1&&(t=Bi),O(e).overflow=t),e}var $o=/^\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)?)?$/,Go=/^\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)?)?$/,Vo=/Z|[+-]\d\d(?::?\d\d)?/,Nt=[["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]],pr=[["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/]],Bo=/^\/?Date\((-?\d+)/i,zo=/^(?:(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}))$/,Zo={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 ws(e){var t,r,n=e._i,s=$o.exec(n)||Go.exec(n),a,o,c,m,f=Nt.length,D=pr.length;if(s){for(O(e).iso=!0,t=0,r=f;t<r;t++)if(Nt[t][1].exec(s[1])){o=Nt[t][0],a=Nt[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(s[3]){for(t=0,r=D;t<r;t++)if(pr[t][1].exec(s[3])){c=(s[2]||" ")+pr[t][0];break}if(c==null){e._isValid=!1;return}}if(!a&&c!=null){e._isValid=!1;return}if(s[4])if(Vo.exec(s[4]))m="Z";else{e._isValid=!1;return}e._f=o+(c||"")+(m||""),Gr(e)}else e._isValid=!1}function qo(e,t,r,n,s,a){var o=[Ko(e),ds.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(s,10)];return a&&o.push(parseInt(a,10)),o}function Ko(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Jo(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Qo(e,t,r){if(e){var n=gs.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return O(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Xo(e,t,r){if(e)return Zo[e];if(t)return 0;var n=parseInt(r,10),s=n%100,a=(n-s)/100;return a*60+s}function ks(e){var t=zo.exec(Jo(e._i)),r;if(t){if(r=qo(t[4],t[3],t[2],t[5],t[6],t[7]),!Qo(t[1],r,e))return;e._a=r,e._tzm=Xo(t[8],t[9],t[10]),e._d=yt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),O(e).rfc2822=!0}else e._isValid=!1}function el(e){var t=Bo.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ws(e),e._isValid===!1)delete e._isValid;else return;if(ks(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_.createFromInputFallback(e)}_.createFromInputFallback=re("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function et(e,t,r){return e??t??r}function tl(e){var t=new Date(_.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function $r(e){var t,r,n=[],s,a,o;if(!e._d){for(s=tl(e),e._w&&e._a[ce]==null&&e._a[ye]==null&&rl(e),e._dayOfYear!=null&&(o=et(e._a[z],s[z]),(e._dayOfYear>pt(o)||e._dayOfYear===0)&&(O(e)._overflowDayOfYear=!0),r=yt(o,0,e._dayOfYear),e._a[ye]=r.getUTCMonth(),e._a[ce]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[j]===24&&e._a[ae]===0&&e._a[ve]===0&&e._a[Fe]===0&&(e._nextDay=!0,e._a[j]=0),e._d=(e._useUTC?yt:oo).apply(null,n),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[j]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(O(e).weekdayMismatch=!0)}}function rl(e){var t,r,n,s,a,o,c,m,f;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,r=et(t.GG,e._a[z],vt(P(),1,4).year),n=et(t.W,1),s=et(t.E,1),(s<1||s>7)&&(m=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,f=vt(P(),a,o),r=et(t.gg,e._a[z],f.year),n=et(t.w,f.week),t.d!=null?(s=t.d,(s<0||s>6)&&(m=!0)):t.e!=null?(s=t.e+a,(t.e<0||t.e>6)&&(m=!0)):s=a),n<1||n>we(r,a,o)?O(e)._overflowWeeks=!0:m!=null?O(e)._overflowWeekday=!0:(c=ps(r,n,s,a,o),e._a[z]=c.year,e._dayOfYear=c.dayOfYear)}_.ISO_8601=function(){};_.RFC_2822=function(){};function Gr(e){if(e._f===_.ISO_8601){ws(e);return}if(e._f===_.RFC_2822){ks(e);return}e._a=[],O(e).empty=!0;var t=""+e._i,r,n,s,a,o,c=t.length,m=0,f,D;for(s=ss(e._f,e._locale).match(Nr)||[],D=s.length,r=0;r<D;r++)a=s[r],n=(t.match(ji(a,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&O(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),m+=n.length),rt[a]?(n?O(e).empty=!1:O(e).unusedTokens.push(a),Gi(a,n,e)):e._strict&&!n&&O(e).unusedTokens.push(a);O(e).charsLeftOver=c-m,t.length>0&&O(e).unusedInput.push(t),e._a[j]<=12&&O(e).bigHour===!0&&e._a[j]>0&&(O(e).bigHour=void 0),O(e).parsedDateParts=e._a.slice(0),O(e).meridiem=e._meridiem,e._a[j]=nl(e._locale,e._a[j],e._meridiem),f=O(e).era,f!==null&&(e._a[z]=e._locale.erasConvertYear(f,e._a[z])),$r(e),jr(e)}function nl(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function sl(e){var t,r,n,s,a,o,c=!1,m=e._f.length;if(m===0){O(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<m;s++)a=0,o=!1,t=Yr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],Gr(t),Ir(t)&&(o=!0),a+=O(t).charsLeftOver,a+=O(t).unusedTokens.length*10,O(t).score=a,c?a<n&&(n=a,r=t):(n==null||a<n||o)&&(n=a,r=t,o&&(c=!0));xe(e,r||t)}function al(e){if(!e._d){var t=Ar(e._i),r=t.day===void 0?t.date:t.day;e._a=ts([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),$r(e)}}function il(e){var t=new kt(jr(Ds(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ds(e){var t=e._i,r=e._f;return e._locale=e._locale||De(e._l),t===null||r===void 0&&t===""?Gt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),oe(t)?new kt(jr(t)):(wt(t)?e._d=t:ie(r)?sl(e):r?Gr(e):ol(e),Ir(e)||(e._d=null),e))}function ol(e){var t=e._i;Q(t)?e._d=new Date(_.now()):wt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?el(e):ie(t)?(e._a=ts(t.slice(0),function(r){return parseInt(r,10)}),$r(e)):He(t)?al(e):ke(t)?e._d=new Date(t):_.createFromInputFallback(e)}function Ms(e,t,r,n,s){var a={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(He(e)&&Er(e)||ie(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=s,a._l=r,a._i=e,a._f=t,a._strict=n,il(a)}function P(e,t,r,n){return Ms(e,t,r,n,!1)}var ll=re("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Gt()}),ul=re("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Gt()});function Os(e,t){var r,n;if(t.length===1&&ie(t[0])&&(t=t[0]),!t.length)return P();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function cl(){var e=[].slice.call(arguments,0);return Os("isBefore",e)}function dl(){var e=[].slice.call(arguments,0);return Os("isAfter",e)}var fl=function(){return Date.now?Date.now():+new Date},ht=["year","quarter","month","week","day","hour","minute","second","millisecond"];function hl(e){var t,r=!1,n,s=ht.length;for(t in e)if(x(e,t)&&!(H.call(ht,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<s;++n)if(e[ht[n]]){if(r)return!1;parseFloat(e[ht[n]])!==E(e[ht[n]])&&(r=!0)}return!0}function ml(){return this._isValid}function _l(){return le(NaN)}function Qt(e){var t=Ar(e),r=t.year||0,n=t.quarter||0,s=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,c=t.hour||0,m=t.minute||0,f=t.second||0,D=t.millisecond||0;this._isValid=hl(t),this._milliseconds=+D+f*1e3+m*6e4+c*1e3*60*60,this._days=+o+a*7,this._months=+s+n*3+r*12,this._data={},this._locale=De(),this._bubble()}function Ct(e){return e instanceof Qt}function Or(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function pl(e,t,r){var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0,o;for(o=0;o<n;o++)E(e[o])!==E(t[o])&&a++;return a+s}function bs(e,t){k(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+de(~~(r/60),2)+t+de(~~r%60,2)})}bs("Z",":");bs("ZZ","");g("Z",qt);g("ZZ",qt);C(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Vr(qt,e)});var gl=/([\+\-]|\d\d)/gi;function Vr(e,t){var r=(t||"").match(e),n,s,a;return r===null?null:(n=r[r.length-1]||[],s=(n+"").match(gl)||["-",0,0],a=+(s[1]*60)+E(s[2]),a===0?0:s[0]==="+"?a:-a)}function Br(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(oe(e)||wt(e)?e.valueOf():P(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),_.updateOffset(r,!1),r):P(e).local()}function br(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function yl(e,t,r){var n=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Vr(qt,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=br(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),n!==e&&(!t||this._changeInProgress?Is(this,le(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:br(this)}function vl(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Sl(e){return this.utcOffset(0,e)}function wl(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(br(this),"m")),this}function kl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Vr(Fi,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Dl(e){return this.isValid()?(e=e?P(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ml(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ol(){if(!Q(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Yr(e,this),e=Ds(e),e._a?(t=e._isUTC?fe(e._a):P(e._a),this._isDSTShifted=this.isValid()&&pl(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function bl(){return this.isValid()?!this._isUTC:!1}function Tl(){return this.isValid()?this._isUTC:!1}function Ts(){return this.isValid()?this._isUTC&&this._offset===0:!1}var El=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Il=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function le(e,t){var r=e,n=null,s,a,o;return Ct(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:ke(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=El.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:E(n[ce])*s,h:E(n[j])*s,m:E(n[ae])*s,s:E(n[ve])*s,ms:E(Or(n[Fe]*1e3))*s}):(n=Il.exec(e))?(s=n[1]==="-"?-1:1,r={y:Ue(n[2],s),M:Ue(n[3],s),w:Ue(n[4],s),d:Ue(n[5],s),h:Ue(n[6],s),m:Ue(n[7],s),s:Ue(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=Yl(P(r.from),P(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),a=new Qt(r),Ct(e)&&x(e,"_locale")&&(a._locale=e._locale),Ct(e)&&x(e,"_isValid")&&(a._isValid=e._isValid),a}le.fn=Qt.prototype;le.invalid=_l;function Ue(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Rn(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Yl(e,t){var r;return e.isValid()&&t.isValid()?(t=Br(t,e),e.isBefore(t)?r=Rn(e,t):(r=Rn(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Es(e,t){return function(r,n){var s,a;return n!==null&&!isNaN(+n)&&(ns(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),s=le(r,n),Is(this,s,e),this}}function Is(e,t,r,n){var s=t._milliseconds,a=Or(t._days),o=Or(t._months);e.isValid()&&(n=n??!0,o&&hs(e,gt(e,"Month")+o*r),a&&cs(e,"Date",gt(e,"Date")+a*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&_.updateOffset(e,a||o))}var xl=Es(1,"add"),Nl=Es(-1,"subtract");function Ys(e){return typeof e=="string"||e instanceof String}function Al(e){return oe(e)||wt(e)||Ys(e)||ke(e)||Cl(e)||Rl(e)||e===null||e===void 0}function Rl(e){var t=He(e)&&!Er(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,a,o=n.length;for(s=0;s<o;s+=1)a=n[s],r=r||x(e,a);return t&&r}function Cl(e){var t=ie(e),r=!1;return t&&(r=e.filter(function(n){return!ke(n)&&Ys(e)}).length===0),t&&r}function Ll(e){var t=He(e)&&!Er(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,a;for(s=0;s<n.length;s+=1)a=n[s],r=r||x(e,a);return t&&r}function Pl(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Wl(e,t){arguments.length===1&&(arguments[0]?Al(arguments[0])?(e=arguments[0],t=void 0):Ll(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||P(),n=Br(r,this).startOf("day"),s=_.calendarFormat(this,n)||"sameElse",a=t&&(he(t[s])?t[s].call(this,r):t[s]);return this.format(a||this.localeData().calendar(s,this,P(r)))}function Ul(){return new kt(this)}function Fl(e,t){var r=oe(e)?e:P(e);return this.isValid()&&r.isValid()?(t=ne(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Hl(e,t){var r=oe(e)?e:P(e);return this.isValid()&&r.isValid()?(t=ne(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function jl(e,t,r,n){var s=oe(e)?e:P(e),a=oe(t)?t:P(t);return this.isValid()&&s.isValid()&&a.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(n[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function $l(e,t){var r=oe(e)?e:P(e),n;return this.isValid()&&r.isValid()?(t=ne(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function Gl(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Vl(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Bl(e,t,r){var n,s,a;if(!this.isValid())return NaN;if(n=Br(e,this),!n.isValid())return NaN;switch(s=(n.utcOffset()-this.utcOffset())*6e4,t=ne(t),t){case"year":a=Lt(this,n)/12;break;case"month":a=Lt(this,n);break;case"quarter":a=Lt(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-s)/864e5;break;case"week":a=(this-n-s)/6048e5;break;default:a=this-n}return r?a:te(a)}function Lt(e,t){if(e.date()<t.date())return-Lt(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),s,a;return t-n<0?(s=e.clone().add(r-1,"months"),a=(t-n)/(n-s)):(s=e.clone().add(r+1,"months"),a=(t-n)/(s-n)),-(r+a)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function zl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Zl(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Rt(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):he(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Rt(r,"Z")):Rt(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ql(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+n+s+a)}function Kl(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=Rt(this,e);return this.localeData().postformat(t)}function Jl(e,t){return this.isValid()&&(oe(e)&&e.isValid()||P(e).isValid())?le({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ql(e){return this.from(P(),e)}function Xl(e,t){return this.isValid()&&(oe(e)&&e.isValid()||P(e).isValid())?le({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function eu(e){return this.to(P(),e)}function xs(e){var t;return e===void 0?this._locale._abbr:(t=De(e),t!=null&&(this._locale=t),this)}var Ns=re("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function As(){return this._locale}var Ut=1e3,nt=60*Ut,Ft=60*nt,Rs=(365*400+97)*24*Ft;function st(e,t){return(e%t+t)%t}function Cs(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Rs:new Date(e,t,r).valueOf()}function Ls(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Rs:Date.UTC(e,t,r)}function tu(e){var t,r;if(e=ne(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Ls:Cs,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=st(t+(this._isUTC?0:this.utcOffset()*nt),Ft);break;case"minute":t=this._d.valueOf(),t-=st(t,nt);break;case"second":t=this._d.valueOf(),t-=st(t,Ut);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function ru(e){var t,r;if(e=ne(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Ls:Cs,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ft-st(t+(this._isUTC?0:this.utcOffset()*nt),Ft)-1;break;case"minute":t=this._d.valueOf(),t+=nt-st(t,nt)-1;break;case"second":t=this._d.valueOf(),t+=Ut-st(t,Ut)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function nu(){return this._d.valueOf()-(this._offset||0)*6e4}function su(){return Math.floor(this.valueOf()/1e3)}function au(){return new Date(this.valueOf())}function iu(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ou(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function lu(){return this.isValid()?this.toISOString():null}function uu(){return Ir(this)}function cu(){return xe({},O(this))}function du(){return O(this).overflow}function fu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}k("N",0,0,"eraAbbr");k("NN",0,0,"eraAbbr");k("NNN",0,0,"eraAbbr");k("NNNN",0,0,"eraName");k("NNNNN",0,0,"eraNarrow");k("y",["y",1],"yo","eraYear");k("y",["yy",2],0,"eraYear");k("y",["yyy",3],0,"eraYear");k("y",["yyyy",4],0,"eraYear");g("N",zr);g("NN",zr);g("NNN",zr);g("NNNN",Du);g("NNNNN",Mu);C(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?O(r).era=s:O(r).invalidEra=e});g("y",at);g("yy",at);g("yyy",at);g("yyyy",at);g("yo",Ou);C(["y","yy","yyy","yyyy"],z);C(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[z]=r._locale.eraYearOrdinalParse(e,s):t[z]=parseInt(e,10)});function hu(e,t){var r,n,s,a=this._eras||De("en")._eras;for(r=0,n=a.length;r<n;++r){switch(typeof a[r].since){case"string":s=_(a[r].since).startOf("day"),a[r].since=s.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":s=_(a[r].until).startOf("day").valueOf(),a[r].until=s.valueOf();break}}return a}function mu(e,t,r){var n,s,a=this.eras(),o,c,m;for(e=e.toUpperCase(),n=0,s=a.length;n<s;++n)if(o=a[n].name.toUpperCase(),c=a[n].abbr.toUpperCase(),m=a[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(c===e)return a[n];break;case"NNNN":if(o===e)return a[n];break;case"NNNNN":if(m===e)return a[n];break}else if([o,c,m].indexOf(e)>=0)return a[n]}function _u(e,t){var r=e.since<=e.until?1:-1;return t===void 0?_(e.since).year():_(e.since).year()+(t-e.offset)*r}function pu(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function gu(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function yu(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function vu(){var e,t,r,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return(this.year()-_(s[e].since).year())*r+s[e].offset;return this.year()}function Su(e){return x(this,"_erasNameRegex")||Zr.call(this),e?this._erasNameRegex:this._erasRegex}function wu(e){return x(this,"_erasAbbrRegex")||Zr.call(this),e?this._erasAbbrRegex:this._erasRegex}function ku(e){return x(this,"_erasNarrowRegex")||Zr.call(this),e?this._erasNarrowRegex:this._erasRegex}function zr(e,t){return t.erasAbbrRegex(e)}function Du(e,t){return t.erasNameRegex(e)}function Mu(e,t){return t.erasNarrowRegex(e)}function Ou(e,t){return t._eraYearOrdinalRegex||at}function Zr(){var e=[],t=[],r=[],n=[],s,a,o,c,m,f=this.eras();for(s=0,a=f.length;s<a;++s)o=Se(f[s].name),c=Se(f[s].abbr),m=Se(f[s].narrow),t.push(o),e.push(c),r.push(m),n.push(o),n.push(c),n.push(m);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}k(0,["gg",2],0,function(){return this.weekYear()%100});k(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Xt(e,t){k(0,[e,e.length],0,t)}Xt("gggg","weekYear");Xt("ggggg","weekYear");Xt("GGGG","isoWeekYear");Xt("GGGGG","isoWeekYear");g("G",Zt);g("g",Zt);g("GG",W,ee);g("gg",W,ee);g("GGGG",Cr,Rr);g("gggg",Cr,Rr);g("GGGGG",zt,Vt);g("ggggg",zt,Vt);Mt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=E(e)});Mt(["gg","GG"],function(e,t,r,n){t[n]=_.parseTwoDigitYear(e)});function bu(e){return Ps.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Tu(e){return Ps.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Eu(){return we(this.year(),1,4)}function Iu(){return we(this.isoWeekYear(),1,4)}function Yu(){var e=this.localeData()._week;return we(this.year(),e.dow,e.doy)}function xu(){var e=this.localeData()._week;return we(this.weekYear(),e.dow,e.doy)}function Ps(e,t,r,n,s){var a;return e==null?vt(this,n,s).year:(a=we(e,n,s),t>a&&(t=a),Nu.call(this,e,t,r,n,s))}function Nu(e,t,r,n,s){var a=ps(e,t,r,n,s),o=yt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}k("Q",0,"Qo","quarter");g("Q",as);C("Q",function(e,t){t[ye]=(E(e)-1)*3});function Au(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}k("D",["DD",2],"Do","date");g("D",W,it);g("DD",W,ee);g("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});C(["D","DD"],ce);C("Do",function(e,t){t[ce]=E(e.match(W)[0])});var Ws=ot("Date",!0);k("DDD",["DDDD",3],"DDDo","dayOfYear");g("DDD",Bt);g("DDDD",is);C(["DDD","DDDD"],function(e,t,r){r._dayOfYear=E(e)});function Ru(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}k("m",["mm",2],0,"minute");g("m",W,Lr);g("mm",W,ee);C(["m","mm"],ae);var Cu=ot("Minutes",!1);k("s",["ss",2],0,"second");g("s",W,Lr);g("ss",W,ee);C(["s","ss"],ve);var Lu=ot("Seconds",!1);k("S",0,0,function(){return~~(this.millisecond()/100)});k(0,["SS",2],0,function(){return~~(this.millisecond()/10)});k(0,["SSS",3],0,"millisecond");k(0,["SSSS",4],0,function(){return this.millisecond()*10});k(0,["SSSSS",5],0,function(){return this.millisecond()*100});k(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});k(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});k(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});k(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});g("S",Bt,as);g("SS",Bt,ee);g("SSS",Bt,is);var Ne,Us;for(Ne="SSSS";Ne.length<=9;Ne+="S")g(Ne,at);function Pu(e,t){t[Fe]=E(("0."+e)*1e3)}for(Ne="S";Ne.length<=9;Ne+="S")C(Ne,Pu);Us=ot("Milliseconds",!1);k("z",0,0,"zoneAbbr");k("zz",0,0,"zoneName");function Wu(){return this._isUTC?"UTC":""}function Uu(){return this._isUTC?"Coordinated Universal Time":""}var h=kt.prototype;h.add=xl;h.calendar=Wl;h.clone=Ul;h.diff=Bl;h.endOf=ru;h.format=Kl;h.from=Jl;h.fromNow=Ql;h.to=Xl;h.toNow=eu;h.get=Zi;h.invalidAt=du;h.isAfter=Fl;h.isBefore=Hl;h.isBetween=jl;h.isSame=$l;h.isSameOrAfter=Gl;h.isSameOrBefore=Vl;h.isValid=uu;h.lang=Ns;h.locale=xs;h.localeData=As;h.max=ul;h.min=ll;h.parsingFlags=cu;h.set=qi;h.startOf=tu;h.subtract=Nl;h.toArray=iu;h.toObject=ou;h.toDate=au;h.toISOString=Zl;h.inspect=ql;typeof Symbol<"u"&&Symbol.for!=null&&(h[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});h.toJSON=lu;h.toString=zl;h.unix=su;h.valueOf=nu;h.creationData=fu;h.eraName=pu;h.eraNarrow=gu;h.eraAbbr=yu;h.eraYear=vu;h.year=us;h.isLeapYear=zi;h.weekYear=bu;h.isoWeekYear=Tu;h.quarter=h.quarters=Au;h.month=ms;h.daysInMonth=so;h.week=h.weeks=ho;h.isoWeek=h.isoWeeks=mo;h.weeksInYear=Yu;h.weeksInWeekYear=xu;h.isoWeeksInYear=Eu;h.isoWeeksInISOWeekYear=Iu;h.date=Ws;h.day=h.days=To;h.weekday=Eo;h.isoWeekday=Io;h.dayOfYear=Ru;h.hour=h.hours=Lo;h.minute=h.minutes=Cu;h.second=h.seconds=Lu;h.millisecond=h.milliseconds=Us;h.utcOffset=yl;h.utc=Sl;h.local=wl;h.parseZone=kl;h.hasAlignedHourOffset=Dl;h.isDST=Ml;h.isLocal=bl;h.isUtcOffset=Tl;h.isUtc=Ts;h.isUTC=Ts;h.zoneAbbr=Wu;h.zoneName=Uu;h.dates=re("dates accessor is deprecated. Use date instead.",Ws);h.months=re("months accessor is deprecated. Use month instead",ms);h.years=re("years accessor is deprecated. Use year instead",us);h.zone=re("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vl);h.isDSTShifted=re("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ol);function Fu(e){return P(e*1e3)}function Hu(){return P.apply(null,arguments).parseZone()}function Fs(e){return e}var N=xr.prototype;N.calendar=Oi;N.longDateFormat=Ii;N.invalidDate=xi;N.ordinal=Ri;N.preparse=Fs;N.postformat=Fs;N.relativeTime=Li;N.pastFuture=Pi;N.set=Di;N.eras=hu;N.erasParse=mu;N.erasConvertYear=_u;N.erasAbbrRegex=wu;N.erasNameRegex=Su;N.erasNarrowRegex=ku;N.months=eo;N.monthsShort=to;N.monthsParse=no;N.monthsRegex=io;N.monthsShortRegex=ao;N.week=lo;N.firstDayOfYear=fo;N.firstDayOfWeek=co;N.weekdays=ko;N.weekdaysMin=Mo;N.weekdaysShort=Do;N.weekdaysParse=bo;N.weekdaysRegex=Yo;N.weekdaysShortRegex=xo;N.weekdaysMinRegex=No;N.isPM=Ro;N.meridiem=Po;function Ht(e,t,r,n){var s=De(),a=fe().set(n,t);return s[r](a,e)}function Hs(e,t,r){if(ke(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ht(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Ht(e,n,r,"month");return s}function qr(e,t,r,n){typeof e=="boolean"?(ke(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,ke(t)&&(r=t,t=void 0),t=t||"");var s=De(),a=e?s._week.dow:0,o,c=[];if(r!=null)return Ht(t,(r+a)%7,n,"day");for(o=0;o<7;o++)c[o]=Ht(t,(o+a)%7,n,"day");return c}function ju(e,t){return Hs(e,t,"months")}function $u(e,t){return Hs(e,t,"monthsShort")}function Gu(e,t,r){return qr(e,t,r,"weekdays")}function Vu(e,t,r){return qr(e,t,r,"weekdaysShort")}function Bu(e,t,r){return qr(e,t,r,"weekdaysMin")}Ae("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=E(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});_.lang=re("moment.lang is deprecated. Use moment.locale instead.",Ae);_.langData=re("moment.langData is deprecated. Use moment.localeData instead.",De);var pe=Math.abs;function zu(){var e=this._data;return this._milliseconds=pe(this._milliseconds),this._days=pe(this._days),this._months=pe(this._months),e.milliseconds=pe(e.milliseconds),e.seconds=pe(e.seconds),e.minutes=pe(e.minutes),e.hours=pe(e.hours),e.months=pe(e.months),e.years=pe(e.years),this}function js(e,t,r,n){var s=le(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function Zu(e,t){return js(this,e,t,1)}function qu(e,t){return js(this,e,t,-1)}function Cn(e){return e<0?Math.floor(e):Math.ceil(e)}function Ku(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,a,o,c,m;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Cn(Tr(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=te(e/1e3),n.seconds=s%60,a=te(s/60),n.minutes=a%60,o=te(a/60),n.hours=o%24,t+=te(o/24),m=te($s(t)),r+=m,t-=Cn(Tr(m)),c=te(r/12),r%=12,n.days=t,n.months=r,n.years=c,this}function $s(e){return e*4800/146097}function Tr(e){return e*146097/4800}function Ju(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=ne(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+$s(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Tr(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function Me(e){return function(){return this.as(e)}}var Gs=Me("ms"),Qu=Me("s"),Xu=Me("m"),ec=Me("h"),tc=Me("d"),rc=Me("w"),nc=Me("M"),sc=Me("Q"),ac=Me("y"),ic=Gs;function oc(){return le(this)}function lc(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function je(e){return function(){return this.isValid()?this._data[e]:NaN}}var uc=je("milliseconds"),cc=je("seconds"),dc=je("minutes"),fc=je("hours"),hc=je("days"),mc=je("months"),_c=je("years");function pc(){return te(this.days()/7)}var ge=Math.round,tt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function gc(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function yc(e,t,r,n){var s=le(e).abs(),a=ge(s.as("s")),o=ge(s.as("m")),c=ge(s.as("h")),m=ge(s.as("d")),f=ge(s.as("M")),D=ge(s.as("w")),b=ge(s.as("y")),T=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||o<=1&&["m"]||o<r.m&&["mm",o]||c<=1&&["h"]||c<r.h&&["hh",c]||m<=1&&["d"]||m<r.d&&["dd",m];return r.w!=null&&(T=T||D<=1&&["w"]||D<r.w&&["ww",D]),T=T||f<=1&&["M"]||f<r.M&&["MM",f]||b<=1&&["y"]||["yy",b],T[2]=t,T[3]=+e>0,T[4]=n,gc.apply(null,T)}function vc(e){return e===void 0?ge:typeof e=="function"?(ge=e,!0):!1}function Sc(e,t){return tt[e]===void 0?!1:t===void 0?tt[e]:(tt[e]=t,e==="s"&&(tt.ss=t-1),!0)}function wc(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=tt,s,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},tt,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),a=yc(this,!r,n,s),r&&(a=s.pastFuture(+this,a)),s.postformat(a)}var gr=Math.abs;function Xe(e){return(e>0)-(e<0)||+e}function er(){if(!this.isValid())return this.localeData().invalidDate();var e=gr(this._milliseconds)/1e3,t=gr(this._days),r=gr(this._months),n,s,a,o,c=this.asSeconds(),m,f,D,b;return c?(n=te(e/60),s=te(n/60),e%=60,n%=60,a=te(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",m=c<0?"-":"",f=Xe(this._months)!==Xe(c)?"-":"",D=Xe(this._days)!==Xe(c)?"-":"",b=Xe(this._milliseconds)!==Xe(c)?"-":"",m+"P"+(a?f+a+"Y":"")+(r?f+r+"M":"")+(t?D+t+"D":"")+(s||n||e?"T":"")+(s?b+s+"H":"")+(n?b+n+"M":"")+(e?b+o+"S":"")):"P0D"}var Y=Qt.prototype;Y.isValid=ml;Y.abs=zu;Y.add=Zu;Y.subtract=qu;Y.as=Ju;Y.asMilliseconds=Gs;Y.asSeconds=Qu;Y.asMinutes=Xu;Y.asHours=ec;Y.asDays=tc;Y.asWeeks=rc;Y.asMonths=nc;Y.asQuarters=sc;Y.asYears=ac;Y.valueOf=ic;Y._bubble=Ku;Y.clone=oc;Y.get=lc;Y.milliseconds=uc;Y.seconds=cc;Y.minutes=dc;Y.hours=fc;Y.days=hc;Y.weeks=pc;Y.months=mc;Y.years=_c;Y.humanize=wc;Y.toISOString=er;Y.toString=er;Y.toJSON=er;Y.locale=xs;Y.localeData=As;Y.toIsoString=re("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er);Y.lang=Ns;k("X",0,0,"unix");k("x",0,0,"valueOf");g("x",Zt);g("X",Hi);C("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});C("x",function(e,t,r){r._d=new Date(E(e))});//! moment.js
10
+ _.version="2.30.1";wi(P);_.fn=h;_.min=cl;_.max=dl;_.now=fl;_.utc=fe;_.unix=Fu;_.months=ju;_.isDate=wt;_.locale=Ae;_.invalid=Gt;_.duration=le;_.isMoment=oe;_.weekdays=Gu;_.parseZone=Hu;_.localeData=De;_.isDuration=Ct;_.monthsShort=$u;_.weekdaysMin=Bu;_.defineLocale=Hr;_.updateLocale=Ho;_.locales=jo;_.weekdaysShort=Vu;_.normalizeUnits=ne;_.relativeTimeRounding=vc;_.relativeTimeThreshold=Sc;_.calendarFormat=Pl;_.prototype=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"};//! moment.js locale configuration
11
11
  //! locale : French [fr]
12
12
  //! author : John Fischer : https://github.com/jfroffice
13
- var Sc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,wc=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Rn=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,vr=[/^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];_.defineLocale("fr",{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:Rn,monthsShortRegex:Rn,monthsStrictRegex:Sc,monthsShortStrictRegex:wc,monthsParse:vr,longMonthsParse:vr,shortMonthsParse:vr,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:function(e,t){switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}});var Pn;(function(e){e.USER="user",e.ADMIN="admin",e.SYSTEM="system"})(Pn||(Pn={}));var Wn;(function(e){e.INTERNAL="internal",e.USER_EDITABLE="user-editable"})(Wn||(Wn={}));var Un;(function(e){e.EDITORIAL_CONTENT="editorial-content",e.USER_DATA="user-data",e.SYSTEM_DATA="system-data"})(Un||(Un={}));var Fn;(function(e){e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED"})(Fn||(Fn={}));var Hn;(function(e){e.IMAGE="image",e.VIDEO="video"})(Hn||(Hn={}));var jn;(function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.EMAIL_PASSWORD=1]="EMAIL_PASSWORD",e[e.PHONE=2]="PHONE",e[e.GOOGLE=3]="GOOGLE",e[e.FACEBOOK=4]="FACEBOOK",e[e.TWITTER=5]="TWITTER"})(jn||(jn={}));var $t;(function(e){e[e.FALSE=0]="FALSE",e[e.TRUE=1]="TRUE"})($t||($t={}));var $n;(function(e){e.NEWS_TAG="news-tag",e.NEWS_CATEGORY="news-category",e.NEWS_ARTICLE="news-article",e.CONTENT_MODEL="content-model"})($n||($n={}));var J;(function(e){e.RELOAD="reload",e.RELOAD_COMPLETE="reload-complete",e.ENABLE_EDITION_MODE="enable-edition-mode",e.DESELECT_ALL_SECTIONS="deselect-all-sections",e.SELECT_PREVIEW_SECTION="select-preview-section",e.SELECT_SIDEBAR_SECTION="select-sidebar-section",e.SEND_BASE_SECTION_SETTINGS="send-base-section-settings",e.SEND_BASE_SECTION_DATA="send-base-section-data",e.SEND_SECTION_SETTINGS="send-section-settings",e.SEND_SECTION_DATA="send-section-data",e.SEND_PAGE_SECTIONS="send-page-sections"})(J||(J={}));var Gt;(function(e){e.EXTERNAL_LINK="external-link",e.PAGE_LINK="page-link",e.CONTENT_LINK="content-link"})(Gt||(Gt={}));var Gn;(function(e){e[e.SYSTEM=1]="SYSTEM",e[e.USER=2]="USER"})(Gn||(Gn={}));var Vn;(function(e){e.WELCOME_USER="App\\Notifications\\WelcomeUser"})(Vn||(Vn={}));var Bn;(function(e){e.NEWS_TAG="news-tag",e.NEWS_CATEGORY="news-category",e.NEWS_ARTICLE="news-article",e.CONTENT_MODEL="content-model"})(Bn||(Bn={}));var zn;(function(e){e.SUBSCRIBER="App\\Models\\SubscriberProfile"})(zn||(zn={}));var Zn;(function(e){e.FORM_INVALID_DATA="form/invalid_data",e.AUTH_LOGIN_FAILED="auth/login_failed",e.AUTH_REGISTRATION_FAILED="auth/registration_failed",e.AUTH_MISSING_DATA="auth/missing_data",e.AUTH_WRONG_PASSWORD="auth/wrong_password",e.AUTH_USER_DISABLED="auth/user_disabled",e.AUTH_USER_NOT_FOUND="auth/user_not_found",e.AUTH_PROFILE_TYPE_NOT_FOUND="auth/profile_type_not_found",e.AUTH_EMAIL_ALREADY_USED="auth/email_already_used",e.AUTH_EMAIL_ALREADY_VERIFIED="auth/email_already_verified",e.AUTH_PROFILE_ALREADY_EXISTS="auth/profile_already_exists",e.AUTH_PROFILE_NOT_FOUND="auth/profile_not_found",e.AUTH_INVALID_TOKEN="auth/invalid_token",e.AUTH_CODE_SENDING_FAILED="auth/code_sending_failed",e.AUTH_CODE_VERIFICATION_FAILED="auth/code_verification_failed",e.AUTH_CODE_EXPIRED="auth/code_expired"})(Zn||(Zn={}));var qn;(function(e){e.SUPER_ADMIN="super-admin",e.ADMIN="admin",e.USER="user"})(qn||(qn={}));const kc=["id"],Dc=l.defineComponent({__name:"RootContainer",props:{page:{},sections:{default:()=>[]},components:{default:()=>({})}},setup(e){const t=e;l.onMounted(()=>{setTimeout(()=>{const n=t.page.props.sectionData;n&&t.sections.find(s=>s.slug==n.slug&&s.pivot?.linkId==n.pivot?.linkId)&&En(`${n.slug}__${n.pivot?.linkId}-container`)},1e3)});const r=l.ref({});return l.onMounted(()=>{const n=()=>{Object.keys(r.value).forEach(a=>{r.value[a].isActive=!1;const o=document.getElementById(a);o&&(o.style.border="none",o.style.boxShadow="none")})},s=a=>{switch(a.data?.type){case J.RELOAD:sessionStorage.setItem("shouldNotifyReload","1"),sessionStorage.setItem("replyOrigin",a.origin),window.location.reload();break;case J.ENABLE_EDITION_MODE:{const o=a.data?.primaryColor??"blue";sessionStorage.setItem("replyOrigin",a.origin),sessionStorage.setItem("primaryColor",o),t.sections?.forEach((c,m)=>{if(c.slug&&c.pivot?.linkId){const f=`${c.slug}__${c.pivot?.linkId}-container`,M=document.getElementById(f);M&&(r.value[f]={element:M,clickCount:0,isActive:!1},M.addEventListener("click",function(O){n(),r.value[this.id].clickCount++,r.value[this.id].isActive=!0,this.style.border=`5px solid ${o}`,this.style.boxShadow=`0 0 10px ${o}`,window.parent.postMessage({type:J.SELECT_PREVIEW_SECTION,slug:c.slug,linkId:c.pivot?.linkId},a.origin)}),M.style.cursor="pointer",M.style.transition="all 0.3s ease")}});break}case J.DESELECT_ALL_SECTIONS:n();break;case J.SELECT_SIDEBAR_SECTION:{setTimeout(()=>{t.sections.find(m=>m.slug==a.data?.slug&&m.pivot?.linkId==a.data?.linkId)&&En(`${a.data?.slug}__${a.data?.linkId}-container`)},1e3);const o=`${a.data?.slug}__${a.data?.linkId}-container`,c=document.getElementById(o);c&&(n(),r.value[o].clickCount++,r.value[o].isActive=!0,c.style.border=`5px solid ${sessionStorage.getItem("primaryColor")}`,c.style.boxShadow=`0 0 10px ${sessionStorage.getItem("primaryColor")}`);break}case J.SEND_BASE_SECTION_SETTINGS:break;case J.SEND_BASE_SECTION_DATA:break;case J.SEND_SECTION_SETTINGS:break;case J.SEND_SECTION_DATA:break;case J.SEND_PAGE_SECTIONS:break}};if(window.addEventListener("message",s),sessionStorage.getItem("shouldNotifyReload")==="1"){const a=sessionStorage.getItem("replyOrigin")||"*";window.parent.postMessage({type:J.RELOAD_COMPLETE},a),sessionStorage.removeItem("shouldNotifyReload"),sessionStorage.removeItem("replyOrigin")}}),(n,s)=>(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.sections,(a,o)=>(l.openBlock(),l.createElementBlock("section",{key:"section-"+o,id:`${a.slug}__${a.pivot?.linkId}-container`,class:"reset-styles"},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.components[a.name]),{data:a.pivot?.data,setings:a.pivot?.settings,"section-key":`${a.slug}__${a.pivot?.linkId}`,metadata:{slug:a.slug,name:a.name,title:a.title,linkId:a.pivot?.linkId,createdAt:a.createdAt,updatedAt:a.updatedAt}},null,8,["data","setings","section-key","metadata"]))],8,kc))),128))}}),Gs=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Vs=Gs(Dc,[["__scopeId","data-v-9e4f90fa"]]),Mc=["src","alt","title","width","height","loading"],Jr=l.defineComponent({__name:"AsyncImg",props:{load:{type:Function},alt:{},width:{},height:{},title:{},loading:{},style:{}},setup(e){const t=e,r=l.ref("");return(async()=>{r.value=await t.load()})(),(s,a)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(r),alt:t.alt,title:t.title,style:l.normalizeStyle(t.style),width:t.width,height:t.height,loading:t.loading},null,12,Mc))}}),Oc=l.defineComponent({__name:"CustomTransition",props:{name:{default:"fade"},mode:{default:"out-in"},appear:{type:Boolean,default:!1}},setup(e){const t=e;return(r,n)=>(l.openBlock(),l.createBlock(l.Transition,{name:t.name,mode:t.mode,appear:t.appear},{default:l.withCtx(()=>[l.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},8,["name","mode","appear"]))}}),Bs=Gs(Oc,[["__scopeId","data-v-30b5e62e"]]),Sr=new WeakMap,Tc=(...e)=>{var t;const r=e[0],n=(t=l.getCurrentInstance())===null||t===void 0?void 0:t.proxy,s=n??l.getCurrentScope();if(s==null&&!l.hasInjectionContext())throw new Error("injectLocal must be called in setup");return s&&Sr.has(s)&&r in Sr.get(s)?Sr.get(s)[r]:l.inject(...e)},bc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ec=Object.prototype.toString,Ic=e=>Ec.call(e)==="[object Object]";function Kn(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function wr(e){return Array.isArray(e)?e:[e]}function Yc(e,t,r){return l.watch(e,t,{...r,immediate:!0})}const zs=bc?window:void 0;function xc(e){var t;const r=l.toValue(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function Nc(...e){const t=(n,s,a,o)=>(n.addEventListener(s,a,o),()=>n.removeEventListener(s,a,o)),r=l.computed(()=>{const n=wr(l.toValue(e[0])).filter(s=>s!=null);return n.every(s=>typeof s!="string")?n:void 0});return Yc(()=>{var n,s;return[(n=(s=r.value)===null||s===void 0?void 0:s.map(a=>xc(a)))!==null&&n!==void 0?n:[zs].filter(a=>a!=null),wr(l.toValue(r.value?e[1]:e[0])),wr(l.unref(r.value?e[2]:e[1])),l.toValue(r.value?e[3]:e[2])]},([n,s,a,o],c,m)=>{if(!n?.length||!s?.length||!a?.length)return;const f=Ic(o)?{...o}:o,M=n.flatMap(O=>s.flatMap(Y=>a.map(R=>t(O,Y,R,f))));m(()=>{M.forEach(O=>O())})},{flush:"post"})}function Ac(){const e=l.shallowRef(!1),t=l.getCurrentInstance();return t&&l.onMounted(()=>{e.value=!0},t),e}function Lc(e){const t=Ac();return l.computed(()=>(t.value,!!e()))}const Cc=Symbol("vueuse-ssr-width");function Rc(){const e=l.hasInjectionContext()?Tc(Cc,null):null;return typeof e=="number"?e:void 0}function _t(e,t={}){const{window:r=zs,ssrWidth:n=Rc()}=t,s=Lc(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),a=l.shallowRef(typeof n=="number"),o=l.shallowRef(),c=l.shallowRef(!1),m=f=>{c.value=f.matches};return l.watchEffect(()=>{if(a.value){a.value=!s.value,c.value=l.toValue(e).split(",").some(f=>{const M=f.includes("not all"),O=f.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),Y=f.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let R=!!(O||Y);return O&&R&&(R=n>=Kn(O[1])),Y&&R&&(R=n<=Kn(Y[1])),M?!R:R});return}s.value&&(o.value=r.matchMedia(l.toValue(e)),c.value=o.value.matches)}),Nc(o,"change",m,{passive:!0}),l.computed(()=>c.value)}const Zs=Symbol("Props"),qs=Symbol("Config"),Ks=Symbol("ResolveSections"),Qr=()=>{const e=l.inject(qs);if(!e)throw new Error("[@creopse/vue] Plugin not installed");const t=pi(e.appUrl||yi());return{...e,apiBaseUrl:t,apiUrl:`${t}/api`,apiRequestHeaders:{"X-API-Key":e.xApiKey}}},rr=()=>{const{apiUrl:e,apiRequestHeaders:t}=Qr(),r=f=>{},n=async f=>{const M=useAuthStore();let O=!1,Y=null,R=null;try{const F=t;F.Authorization=`Bearer ${M.accessToken}`,Y=await axios.request({method:f.method||"get",params:f.params||{},data:f.data||{},url:f.url||"/",baseURL:e,headers:F}),O=!0}catch(F){R=F,O=!1,F.response&&F.response.status==401&&(M.resetAuthData(),router.get("/login",{},{replace:!0}))}return{success:O,failure:!O,result:Y?Y.data:null,error:R}};return{request:n,getItem:async f=>await n({url:`/${f.routeBase}/${f.id}`}),addItem:async f=>await n({url:`/${f.routeBase}`,method:"post",data:f.data}),updateItem:async f=>await n({url:`/${f.routeBase}/${f.id}`,method:"put",data:f.data}),deleteItem:async f=>await n({url:`/${f.routeBase}/${f.id}`,method:"delete"}),getAllItems:async f=>await n({url:`/${f.routeBase}`}),handleError:r}},Js=()=>{const e=getActiveLanguage();return{defaultPrefs:l.ref({inAppNotifEnabled:$t.TRUE,emailNotifEnabled:$t.TRUE,locale:e})}},Xr=()=>{const e=usePage(),t=getActiveLanguage(),r=useUserInterfaceStore(),{request:n}=rr(),{apiBaseUrl:s,langKey:a}=Qr(),{defaultPrefs:o}=Js(),c=l.computed(()=>e.url),m=D=>In(D)?D:`${s}/${gi(D)}`,f=D=>D?In(D)?D:`${s}/storage/${D}`:"",M=async(D,I="original")=>{const K=["small","medium","large"],X=D.split("/").pop();let B=!1;for(let b=0;b<K.length;b++)if(K[b]===I&&(B=!0),B)try{const Ze=f(`thumbnails/${K[b]}/${X}`);if((await axios.head(Ze)).status===200)return Ze}catch{}return f(D)},O=D=>{let I;try{I=JSON.parse(D)}catch{I={}}return I&&(I[t.toUpperCase()]||I[t]||I.en)||""},Y=D=>O(D),R=(D,I)=>r.isLightTheme?D:I,F=D=>{if(!D)return"";let I=O(D).replace(new RegExp("{{BASE_URL}}article","g"),`${s}/article`).replace(new RegExp("{{BASE_URL}}","g"),`${s}/storage`);const K=I.match(/\[audio\](.*?)\[\/?audio\]/g),X=I.match(/\[video\](.*?)\[\/?video\]/g);return K?.forEach(B=>{const b=B.replace(/\[\/?audio\]/g,"");I=I.replace(B,`<br><p><audio preload="all" controls style="width: 100%"><source src="${f(b)}"></audio></p><br>`)}),X?.forEach(B=>{const b=B.replace(/\[\/?video\]/g,"");I=I.replace(B,`<br><p><video controls style="width: 100%"><source src="${f(b)}"></video></p><br>`)}),I},Ne=D=>F(D),He=_t("(min-width: 1536px)"),ke=_t("(min-width: 1280px) and (max-width: 1535px)"),je=_t("(min-width: 1024px) and (max-width: 1279px)"),$e=_t("(min-width: 768px) and (max-width: 1023px)"),De=_t("(max-width: 767px)"),Me=[{label:"French",value:"fr",flag:"flag:fr-1x1"},{label:"English",value:"en",flag:"flag:gb-1x1"}];return{is2XlScreen:He,isXlScreen:ke,isLgScreen:je,isMdScreen:$e,isSmScreen:De,getTranslation:O,getLangageLabel:D=>Me.find(I=>I.value==D)?.label,getLanguageValue:D=>Me.find(I=>I.label==D)?.value,getLinkCursorClass:D=>!D||D==="#"?"tw:cursor-default":"tw:cursor-pointer",ckEditorToolbarItems:["fullScreen","|","heading","|","uploadImage","|","bold","italic","underline","strikethrough","code","subscript","superscript","selectAll","|","fontSize","fontFamily","fontColor","fontBackgroundColor","|","horizontalLine","blockQuote","bulletedList","numberedList","alignment","|","outdent","indent","|","link","insertTable","mediaEmbed","|","undo","redo"],displayFormErrors:(D,I)=>{if(D)for(const[K,X]of Object.entries(D))for(const B of X)I(B)},resolveHtmlLinks:F,pickByTheme:R,resolveUrl:m,updateLang:async(D,I=!0,K=!0)=>{if(localStorage.setItem(a,D),e.props.isUserLoggedIn&&K){const X=e.props.userData?.preferences||o.value;X.locale=D,await n({url:`/users/self/${e.props.userData?.id}`,method:"put",data:{preferences:X}})}I&&location.reload()},languages:Me,getImage:M,fileUrl:f,currentRoutePath:c,openLink:D=>{_v.isURL(D)?window.open(D,"_blank"):router.get(D)},openMenu:D=>{switch(D?.targetType){case Gt.EXTERNAL_LINK:window.open(D?.url??"#");break;case Gt.PAGE_LINK:router.get(D?.path??"/");break}},getMenuHref:D=>D?.targetType==="external-link"?D?.url||"":D?.path||"",rHtml:Ne,tr:Y}},Pc=["src"],Qs=l.defineComponent({__name:"Image",props:{src:{},alt:{default:""},width:{default:void 0},height:{default:void 0},title:{default:void 0},loading:{default:void 0},style:{default:void 0},size:{default:"original"},sync:{type:Boolean,default:!1}},setup(e){const t=e,{getImage:r}=Xr(),{src:n,size:s,sync:a}=l.toRefs(t),o=l.computed(()=>{const{src:c,size:m,sync:f,...M}=t;return M});return(c,m)=>{const f=Jr;return l.unref(a)?(l.openBlock(),l.createElementBlock("img",l.mergeProps({key:0,src:l.unref(n)},l.unref(o)),null,16,Pc)):(l.openBlock(),l.createBlock(f,l.mergeProps({key:1,load:()=>l.unref(r)(l.unref(n),l.unref(s))},l.unref(o)),null,16,["load"]))}}}),Xs=l.defineComponent({__name:"MountedTeleport",props:{to:{}},setup(e){const t=e,r=l.ref(!1);return l.onMounted(()=>{r.value=!0}),l.onUnmounted(()=>{r.value=!1}),(n,s)=>l.unref(r)?(l.openBlock(),l.createBlock(l.Teleport,{key:0,to:t.to},[l.renderSlot(n.$slots,"default")],8,["to"])):l.createCommentVNode("",!0)}}),Wc=["innerHTML"],Uc=["href"],Fc=["href"],ea=l.defineComponent({__name:"ReadMore",props:{moreStr:{default:"Read more"},lessStr:{default:""},text:{},link:{default:"#"},maxChars:{default:100}},setup(e){const t=e,r=l.ref(!1),n=l.computed(()=>!r.value&&t.text.length>t.maxChars?t.text.substring(0,t.maxChars)+"...":t.text),s=(a,o)=>{t.link=="#"&&a.preventDefault(),t.lessStr&&(r.value=o)};return(a,o)=>(l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("span",{innerHTML:l.unref(n)},null,8,Wc),l.withDirectives(l.createElementVNode("span",null,[l.withDirectives(l.createElementVNode("a",{id:"readmore",href:t.link,onClick:o[0]||(o[0]=c=>s(c,!0))},l.toDisplayString(t.moreStr),9,Uc),[[l.vShow,!l.unref(r)]]),l.withDirectives(l.createElementVNode("a",{id:"readmore",href:t.link,onClick:o[1]||(o[1]=c=>s(c,!1))},l.toDisplayString(t.lessStr),9,Fc),[[l.vShow,l.unref(r)]])],512),[[l.vShow,t.text.length>t.maxChars]])]))}}),ta=l.defineComponent({__name:"StickyBottom",props:{bottom:{default:0},zIndex:{default:1},className:{default:""}},setup(e){const t=e,r=l.ref(null),n=l.ref(!1),s=l.ref(""),a=l.ref(void 0),o=l.ref(void 0),c=l.ref(!1);l.onMounted(()=>{o.value=r.value?.getBoundingClientRect().height,window.addEventListener("scroll",O),window.addEventListener("resize",Y),O()}),l.onActivated(()=>{O()}),l.onUnmounted(()=>{window.removeEventListener("scroll",O),window.removeEventListener("resize",Y)});const m=()=>{n.value||(s.value="fixed",n.value=!0,a.value=a.value+"px",c.value=!0)},f=()=>{n.value&&M()},M=()=>{s.value="",a.value="auto",n.value=!1,c.value=!1},O=()=>{const R=r.value?.getBoundingClientRect().width;if(a.value=R||"auto",(r.value?.getBoundingClientRect().bottom||0)>t.bottom){m();return}f()},Y=()=>{c.value&&(a.value=r.value?.getBoundingClientRect().width+"px")};return(R,F)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"el",ref:r,style:l.normalizeStyle({height:l.unref(o)+"px",zIndex:t.zIndex})},[l.createElementVNode("div",{class:l.normalizeClass(t.className),style:l.normalizeStyle({bottom:l.unref(c)?t.bottom+"px":"",zIndex:t.zIndex,position:l.unref(s),width:l.unref(a),height:l.unref(o)+"px"})},[l.renderSlot(R.$slots,"default",{},()=>[F[0]||(F[0]=l.createElementVNode("div",null,"Sticky Bottom",-1))])],6)],4))}}),ra=l.defineComponent({__name:"StickyTop",props:{top:{default:0},zIndex:{default:1},className:{default:""}},setup(e){const t=e,r=l.ref(null),n=l.ref(!1),s=l.ref(""),a=l.ref(void 0),o=l.ref(void 0),c=l.ref(!1);l.onMounted(()=>{o.value=r.value?.getBoundingClientRect().height,window.addEventListener("scroll",O),window.addEventListener("resize",Y)}),l.onActivated(()=>{O()}),l.onUnmounted(()=>{window.removeEventListener("scroll",O),window.removeEventListener("resize",Y)});const m=()=>{n.value||(s.value="fixed",n.value=!0,a.value=a.value+"px",c.value=!0)},f=()=>{n.value&&M()},M=()=>{s.value="",a.value="auto",n.value=!1,c.value=!1},O=()=>{const R=r.value?.getBoundingClientRect().width;if(a.value=R||"auto",(r.value?.getBoundingClientRect().top||0)<t.top){m();return}f()},Y=()=>{c.value&&(a.value=r.value?.getBoundingClientRect().width+"px")};return(R,F)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"el",ref:r,style:l.normalizeStyle({height:l.unref(o)+"px",zIndex:t.zIndex})},[l.createElementVNode("div",{class:l.normalizeClass(t.className),style:l.normalizeStyle({top:l.unref(c)?t.top+"px":"",zIndex:t.zIndex,position:l.unref(s),width:l.unref(a),height:l.unref(o)+"px"})},[l.renderSlot(R.$slots,"default",{},()=>[F[0]||(F[0]=l.createElementVNode("div",null,"Sticky Top",-1))])],6)],4))}});class Hc{state;constructor(t){this.state=l.reactive({props:t})}update(t){this.state.props=this.deepMerge(this.state.props,t)}getState(){return l.readonly(this.state)}sync(t){this.state.props=t}deepMerge(t,r){const n={...t};return this.isObject(t)&&this.isObject(r)&&Object.keys(r).forEach(s=>{this.isObject(r[s])&&s in t?n[s]=this.deepMerge(t[s],r[s]):n[s]=r[s]}),n}isObject(t){return t&&typeof t=="object"&&!Array.isArray(t)}}const jc=()=>{const e=l.inject(Zs);if(!e)throw new Error("[@creopse/vue] Plugin not installed");return e.getState().props};var Lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pt={exports:{}};pt.exports;var Jn;function Gc(){return Jn||(Jn=1,function(e,t){var r=200,n="__lodash_hash_undefined__",s=9007199254740991,a="[object Arguments]",o="[object Array]",c="[object Boolean]",m="[object Date]",f="[object Error]",M="[object Function]",O="[object GeneratorFunction]",Y="[object Map]",R="[object Number]",F="[object Object]",Ne="[object Promise]",He="[object RegExp]",ke="[object Set]",je="[object String]",$e="[object Symbol]",De="[object WeakMap]",Me="[object ArrayBuffer]",Ae="[object DataView]",Ge="[object Float32Array]",Ve="[object Float64Array]",Oe="[object Int8Array]",ut="[object Int16Array]",Te="[object Int32Array]",Be="[object Uint8Array]",ze="[object Uint8ClampedArray]",ct="[object Uint16Array]",D="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,X=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,b={};b[a]=b[o]=b[Me]=b[Ae]=b[c]=b[m]=b[Ge]=b[Ve]=b[Oe]=b[ut]=b[Te]=b[Y]=b[R]=b[F]=b[He]=b[ke]=b[je]=b[$e]=b[Be]=b[ze]=b[ct]=b[D]=!0,b[f]=b[M]=b[De]=!1;var Ze=typeof Lt=="object"&&Lt&&Lt.Object===Object&&Lt,y=typeof self=="object"&&self&&self.Object===Object&&self,v=Ze||y||Function("return this")(),S=t&&!t.nodeType&&t,p=S&&!0&&e&&!e.nodeType&&e,x=p&&p.exports===S;function G(i,u){return i.set(u[0],u[1]),i}function qe(i,u){return i.add(u),i}function be(i,u){for(var d=-1,w=i?i.length:0;++d<w&&u(i[d],d,i)!==!1;);return i}function nr(i,u){for(var d=-1,w=u.length,$=i.length;++d<w;)i[$+d]=u[d];return i}function en(i,u,d,w){for(var $=-1,z=i?i.length:0;++$<z;)d=u(d,i[$],$,i);return d}function na(i,u){for(var d=-1,w=Array(i);++d<i;)w[d]=u(d);return w}function sa(i,u){return i?.[u]}function tn(i){var u=!1;if(i!=null&&typeof i.toString!="function")try{u=!!(i+"")}catch{}return u}function rn(i){var u=-1,d=Array(i.size);return i.forEach(function(w,$){d[++u]=[$,w]}),d}function sr(i,u){return function(d){return i(u(d))}}function nn(i){var u=-1,d=Array(i.size);return i.forEach(function(w){d[++u]=w}),d}var aa=Array.prototype,ia=Function.prototype,Tt=Object.prototype,ar=v["__core-js_shared__"],sn=function(){var i=/[^.]+$/.exec(ar&&ar.keys&&ar.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),an=ia.toString,Ee=Tt.hasOwnProperty,bt=Tt.toString,oa=RegExp("^"+an.call(Ee).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),on=x?v.Buffer:void 0,ln=v.Symbol,un=v.Uint8Array,la=sr(Object.getPrototypeOf,Object),ua=Object.create,ca=Tt.propertyIsEnumerable,da=aa.splice,cn=Object.getOwnPropertySymbols,fa=on?on.isBuffer:void 0,ha=sr(Object.keys,Object),ir=Qe(v,"DataView"),dt=Qe(v,"Map"),or=Qe(v,"Promise"),lr=Qe(v,"Set"),ur=Qe(v,"WeakMap"),ft=Qe(Object,"create"),ma=Re(ir),_a=Re(dt),pa=Re(or),ga=Re(lr),ya=Re(ur),dn=ln?ln.prototype:void 0,fn=dn?dn.valueOf:void 0;function Le(i){var u=-1,d=i?i.length:0;for(this.clear();++u<d;){var w=i[u];this.set(w[0],w[1])}}function va(){this.__data__=ft?ft(null):{}}function Sa(i){return this.has(i)&&delete this.__data__[i]}function wa(i){var u=this.__data__;if(ft){var d=u[i];return d===n?void 0:d}return Ee.call(u,i)?u[i]:void 0}function ka(i){var u=this.__data__;return ft?u[i]!==void 0:Ee.call(u,i)}function Da(i,u){var d=this.__data__;return d[i]=ft&&u===void 0?n:u,this}Le.prototype.clear=va,Le.prototype.delete=Sa,Le.prototype.get=wa,Le.prototype.has=ka,Le.prototype.set=Da;function de(i){var u=-1,d=i?i.length:0;for(this.clear();++u<d;){var w=i[u];this.set(w[0],w[1])}}function Ma(){this.__data__=[]}function Oa(i){var u=this.__data__,d=Et(u,i);if(d<0)return!1;var w=u.length-1;return d==w?u.pop():da.call(u,d,1),!0}function Ta(i){var u=this.__data__,d=Et(u,i);return d<0?void 0:u[d][1]}function ba(i){return Et(this.__data__,i)>-1}function Ea(i,u){var d=this.__data__,w=Et(d,i);return w<0?d.push([i,u]):d[w][1]=u,this}de.prototype.clear=Ma,de.prototype.delete=Oa,de.prototype.get=Ta,de.prototype.has=ba,de.prototype.set=Ea;function Ke(i){var u=-1,d=i?i.length:0;for(this.clear();++u<d;){var w=i[u];this.set(w[0],w[1])}}function Ia(){this.__data__={hash:new Le,map:new(dt||de),string:new Le}}function Ya(i){return It(this,i).delete(i)}function xa(i){return It(this,i).get(i)}function Na(i){return It(this,i).has(i)}function Aa(i,u){return It(this,i).set(i,u),this}Ke.prototype.clear=Ia,Ke.prototype.delete=Ya,Ke.prototype.get=xa,Ke.prototype.has=Na,Ke.prototype.set=Aa;function Je(i){this.__data__=new de(i)}function La(){this.__data__=new de}function Ca(i){return this.__data__.delete(i)}function Ra(i){return this.__data__.get(i)}function Pa(i){return this.__data__.has(i)}function Wa(i,u){var d=this.__data__;if(d instanceof de){var w=d.__data__;if(!dt||w.length<r-1)return w.push([i,u]),this;d=this.__data__=new Ke(w)}return d.set(i,u),this}Je.prototype.clear=La,Je.prototype.delete=Ca,Je.prototype.get=Ra,Je.prototype.has=Pa,Je.prototype.set=Wa;function Ua(i,u){var d=fr(i)||ui(i)?na(i.length,String):[],w=d.length,$=!!w;for(var z in i)Ee.call(i,z)&&!($&&(z=="length"||ai(z,w)))&&d.push(z);return d}function hn(i,u,d){var w=i[u];(!(Ee.call(i,u)&&gn(w,d))||d===void 0&&!(u in i))&&(i[u]=d)}function Et(i,u){for(var d=i.length;d--;)if(gn(i[d][0],u))return d;return-1}function Fa(i,u){return i&&mn(u,hr(u),i)}function cr(i,u,d,w,$,z,fe){var Z;if(w&&(Z=z?w(i,$,z,fe):w(i)),Z!==void 0)return Z;if(!Yt(i))return i;var Sn=fr(i);if(Sn){if(Z=ri(i),!u)return Xa(i,Z)}else{var Xe=Ce(i),wn=Xe==M||Xe==O;if(di(i))return Ba(i,u);if(Xe==F||Xe==a||wn&&!z){if(tn(i))return z?i:{};if(Z=ni(wn?{}:i),!u)return ei(i,Fa(Z,i))}else{if(!b[Xe])return z?i:{};Z=si(i,Xe,cr,u)}}fe||(fe=new Je);var kn=fe.get(i);if(kn)return kn;if(fe.set(i,Z),!Sn)var Dn=d?ti(i):hr(i);return be(Dn||i,function(mr,xt){Dn&&(xt=mr,mr=i[xt]),hn(Z,xt,cr(mr,u,d,w,xt,i,fe))}),Z}function Ha(i){return Yt(i)?ua(i):{}}function ja(i,u,d){var w=u(i);return fr(i)?w:nr(w,d(i))}function $a(i){return bt.call(i)}function Ga(i){if(!Yt(i)||oi(i))return!1;var u=vn(i)||tn(i)?oa:X;return u.test(Re(i))}function Va(i){if(!pn(i))return ha(i);var u=[];for(var d in Object(i))Ee.call(i,d)&&d!="constructor"&&u.push(d);return u}function Ba(i,u){if(u)return i.slice();var d=new i.constructor(i.length);return i.copy(d),d}function dr(i){var u=new i.constructor(i.byteLength);return new un(u).set(new un(i)),u}function za(i,u){var d=u?dr(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function Za(i,u,d){var w=u?d(rn(i),!0):rn(i);return en(w,G,new i.constructor)}function qa(i){var u=new i.constructor(i.source,K.exec(i));return u.lastIndex=i.lastIndex,u}function Ka(i,u,d){var w=u?d(nn(i),!0):nn(i);return en(w,qe,new i.constructor)}function Ja(i){return fn?Object(fn.call(i)):{}}function Qa(i,u){var d=u?dr(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function Xa(i,u){var d=-1,w=i.length;for(u||(u=Array(w));++d<w;)u[d]=i[d];return u}function mn(i,u,d,w){d||(d={});for(var $=-1,z=u.length;++$<z;){var fe=u[$],Z=void 0;hn(d,fe,Z===void 0?i[fe]:Z)}return d}function ei(i,u){return mn(i,_n(i),u)}function ti(i){return ja(i,hr,_n)}function It(i,u){var d=i.__data__;return ii(u)?d[typeof u=="string"?"string":"hash"]:d.map}function Qe(i,u){var d=sa(i,u);return Ga(d)?d:void 0}var _n=cn?sr(cn,Object):mi,Ce=$a;(ir&&Ce(new ir(new ArrayBuffer(1)))!=Ae||dt&&Ce(new dt)!=Y||or&&Ce(or.resolve())!=Ne||lr&&Ce(new lr)!=ke||ur&&Ce(new ur)!=De)&&(Ce=function(i){var u=bt.call(i),d=u==F?i.constructor:void 0,w=d?Re(d):void 0;if(w)switch(w){case ma:return Ae;case _a:return Y;case pa:return Ne;case ga:return ke;case ya:return De}return u});function ri(i){var u=i.length,d=i.constructor(u);return u&&typeof i[0]=="string"&&Ee.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function ni(i){return typeof i.constructor=="function"&&!pn(i)?Ha(la(i)):{}}function si(i,u,d,w){var $=i.constructor;switch(u){case Me:return dr(i);case c:case m:return new $(+i);case Ae:return za(i,w);case Ge:case Ve:case Oe:case ut:case Te:case Be:case ze:case ct:case D:return Qa(i,w);case Y:return Za(i,w,d);case R:case je:return new $(i);case He:return qa(i);case ke:return Ka(i,w,d);case $e:return Ja(i)}}function ai(i,u){return u=u??s,!!u&&(typeof i=="number"||B.test(i))&&i>-1&&i%1==0&&i<u}function ii(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function oi(i){return!!sn&&sn in i}function pn(i){var u=i&&i.constructor,d=typeof u=="function"&&u.prototype||Tt;return i===d}function Re(i){if(i!=null){try{return an.call(i)}catch{}try{return i+""}catch{}}return""}function li(i){return cr(i,!0,!0)}function gn(i,u){return i===u||i!==i&&u!==u}function ui(i){return ci(i)&&Ee.call(i,"callee")&&(!ca.call(i,"callee")||bt.call(i)==a)}var fr=Array.isArray;function yn(i){return i!=null&&fi(i.length)&&!vn(i)}function ci(i){return hi(i)&&yn(i)}var di=fa||_i;function vn(i){var u=Yt(i)?bt.call(i):"";return u==M||u==O}function fi(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function Yt(i){var u=typeof i;return!!i&&(u=="object"||u=="function")}function hi(i){return!!i&&typeof i=="object"}function hr(i){return yn(i)?Ua(i):Va(i)}function mi(){return[]}function _i(){return!1}e.exports=li}(pt,pt.exports)),pt.exports}var Vc=Gc();const Qn=$c(Vc),Bc=()=>{const{request:e}=rr(),{fileUrl:t}=Xr(),r=usePage(),n=()=>r.props,s=r.props.pageData,a=r.props.article,o=r.props.category,c=r.props.tag,m=r.props.contentModelItem,f=l.inject(Ks),M=y=>{if(!y)return null;const v=y.split("__"),S=v.length?v[0]:"",p=v.length>1?v[1]:"";return r.props.pageData?.sections?.find(x=>x.slug==S&&x.pivot?.linkId==p)?.pivot?.data||null},O=y=>M(y)?.index,Y=y=>{if(!y)return null;const v=y.split("__"),S=v.length?v[0]:"",p=v.length>1?v[1]:"";return r.props.pageData?.sections?.find(x=>x.slug==S&&x.pivot?.linkId==p)?.pivot?.settings||null},R=(y,v)=>Y(y)?.[v],F=(y,v,S)=>R(y,v)?.[S],Ne=()=>{const y=s?.sections,v=s?.sectionsOrder,S=[];if(Array.isArray(y)&&Array.isArray(v)){for(const p of v)if(p){const x=y.find(G=>`${G.slug}__${G.pivot?.linkId}`===p);x&&S.push(x)}}return S.length?S:y||[]},He=()=>{const y=Ne(),v=s?.sectionsDisabled;return y.filter(S=>!v?.includes(`${S.slug}__${S.pivot?.linkId}`))},ke=async(y,v,S="default")=>{const p=await e({url:`section-data/${y}/source/${v}/link/${S}`});return p.success&&p.result?p.result.data:null},je=()=>{const y={};if(!f)throw new Error("[@creopse/vue] resolveSections is required");const v=f();for(const[p,x]of Object.entries(v)){var S=p.replace(/^\.\/(.*)\.\w+$/,"$1");const G=S.split("/"),qe=G[G.length-1]?.split(".")[0];y[qe]=x.default}return y},$e=y=>r.props?.contentModels?.find(v=>v.name===y),De=y=>{const{index:v,...S}=y.contentModelData;return{...y,data:{...y.contentModelData?.index,...S}}},Me=async(y,v=!0)=>{const S=await e({url:`content-model/items?contentModelName=${y}${v?"&isActive=true":""}`});return S.success&&S.result?(S.result.data||[]).map(p=>De(p)):[]},Ae=async(y,v,S=!0)=>{const p=await e({url:`content-model/items?pageSize=${v}&contentModelName=${y}${S?"&isActive=true":""}`});if(p.success&&p.result){const x=(p.result.data?.items||[]).map(be=>De(be)),G=p.result.data?.meta?.total||0,qe=p.result.data?.meta?.currentPage||1;return{items:x,total:G,currentPage:qe}}return{items:[],total:0,currentPage:1}},Ge=(y,v=!0)=>{const S=r.props?.menus?.find(p=>p.name===y);return S&&(S.items=Qn(S.items?.filter(p=>!v||p.isActive)?.sort((p,x)=>p.position-x.position))),S},Ve=(y,v=!0)=>{const S=r.props?.menus?.find(p=>p.location?.name===y);return S&&(S.items=Qn(S.items?.filter(p=>!v||p.isActive)?.sort((p,x)=>p.position-x.position))),S},Oe=(y,v=!0)=>Ge(y)?.items?.filter(S=>!v||S.isVisible)?.sort((S,p)=>S.position-p.position),ut=y=>{const v=[];return(r.props?.menus||[]).forEach(p=>{Array.isArray(p.items)&&v.push(...p.items)}),v.find(p=>p.id===y)},Te=(y,v=!0)=>Ve(y)?.items?.filter(S=>!v||S.isVisible)?.sort((S,p)=>S.position-p.position),Be=(y,v=!1,S=!0)=>{const p=[],x=v?Te(y,S):Oe(y,S);if(x){for(const G of x)if(!p.find(be=>be.id===G.menuItemGroupId)){const be=r.props?.menuItemGroups?.find(nr=>nr.id===G.menuItemGroupId);be&&p.push(be)}}return p},ze=(y,v,S=!1,p=!0)=>(S?Te(y,p):Oe(y,p))?.filter(G=>G.menuItemGroupId===v),ct=(y,v=!1,S=!0)=>Be(y,v).map(x=>({group:x,items:ze(y,x.id||0,v,S)})),D=(y,v=!1,S=!0)=>(v?Te(y,S):Oe(y,S))?.filter(x=>!x.menuItemGroupId),I=(y,v="string")=>{const p=r.props.appInformation.find(G=>G.key===y);let x="";switch(v){case"number":x=p&&parseInt(p.value)&&!isNaN(parseInt(p.value))?parseInt(p.value):0;break;case"boolean":x=p&&!isNaN(parseInt(p.value))&&parseInt(p.value)>0;break;case"object":x=p&&p.value?JSON.parse(p.value):{};break;case"array":x=p&&p.value?JSON.parse(p.value):[];break;default:x=p&&p.value?p.value:"";break}return x},K=l.computed(()=>I("primaryColor")||void 0),X=l.computed(()=>I("secondaryColor")||void 0),B=l.computed(()=>I("accentColor")||void 0),b=l.computed(()=>{const y=I("icon");return t(y)||""});return{logo:l.computed(()=>{const y=I("logo");return t(y)||""}),icon:b,page:r,pageData:s,newsArticle:a,newsCategory:o,newsTag:c,contentModelItem:m,getProps:n,getMenu:Ge,getMenuByLocation:Ve,getMenuItems:Oe,getMenuItemById:ut,getMenuItemsByLocation:Te,getMenuGroups:Be,getMenuItemsByGroup:ze,getMenuGroupedItems:ct,getMenuUngroupedItems:D,getSectionData:M,getSectionSettings:Y,getSectionSettingsGroup:R,getSectionSetting:F,getAnySectionData:ke,getSectionsInOrder:Ne,getFinalPageSections:He,getSectionRootData:O,getComponents:je,getContentModel:$e,getContentModelItems:Me,getPaginatedContentModelItems:Ae,getAppInformationValue:I,appAccentColor:B,appPrimaryColor:K,appSecondaryColor:X}},zc=()=>{const{request:e}=rr(),t=l.ref(!1),r=async(a,o=void 0,c=void 0)=>{await s("email",a,o,c)},n=async(a,o=void 0,c=void 0)=>{await s("phone",a.replace(/\s+/g,""),o,c)},s=async(a,o,c=void 0,m=void 0)=>{t.value=!0;const f=await e({url:`newsletter/${a}s`,method:"post",data:a==="email"?{email:o}:{phone:o}});f.failure&&f.error?m&&m(f.error?.response?.data):c&&c(),t.value=!1};return{subscribePhone:n,subscribeEmail:r,isLoading:t}},Zc={install(e,t){if(!t?.initialProps)throw new Error("[@creopse/vue] initialProps is required");if(!t?.config)throw new Error("[@creopse/vue] config is required");if(!t?.resolveSections)throw new Error("[@creopse/vue] resolveSections is required");const r=new Hc(t.initialProps);t?.router?t.router.on("navigate",n=>{r.update(n.detail.page.props)}):console.warn("[@creopse/vue] No router - props won't sync"),e.provide(Zs,r),e.config.globalProperties.$props=r,e.provide(qs,t.config),e.config.globalProperties.$config=t.config,e.provide(Ks,t.resolveSections),e.config.globalProperties.$resolveSections=t.resolveSections,e.component("RootContainer",Vs),e.component("CustomTransition",Bs),e.component("MountedTeleport",Xs),e.component("StickyBottom",ta),e.component("StickyTop",ra),e.component("ReadMore",ea),e.component("AsyncImg",Jr),e.component("Image",Qs)}};exports.AsyncImg=Jr;exports.CustomTransition=Bs;exports.Image=Qs;exports.MountedTeleport=Xs;exports.ReadMore=ea;exports.RootContainer=Vs;exports.StickyBottom=ta;exports.StickyTop=ra;exports.default=Zc;exports.useApi=rr;exports.useConfig=Qr;exports.useContent=Bc;exports.useHelper=Xr;exports.useNewsletter=zc;exports.useProps=jc;exports.useUserPreference=Js;
13
+ var kc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Dc=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Ln=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,yr=[/^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];_.defineLocale("fr",{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:Ln,monthsShortRegex:Ln,monthsStrictRegex:kc,monthsShortStrictRegex:Dc,monthsParse:yr,longMonthsParse:yr,shortMonthsParse:yr,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:function(e,t){switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}});var Pn;(function(e){e.USER="user",e.ADMIN="admin",e.SYSTEM="system"})(Pn||(Pn={}));var Wn;(function(e){e.INTERNAL="internal",e.USER_EDITABLE="user-editable"})(Wn||(Wn={}));var Un;(function(e){e.EDITORIAL_CONTENT="editorial-content",e.USER_DATA="user-data",e.SYSTEM_DATA="system-data"})(Un||(Un={}));var Fn;(function(e){e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED"})(Fn||(Fn={}));var Hn;(function(e){e.IMAGE="image",e.VIDEO="video"})(Hn||(Hn={}));var jn;(function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.EMAIL_PASSWORD=1]="EMAIL_PASSWORD",e[e.PHONE=2]="PHONE",e[e.GOOGLE=3]="GOOGLE",e[e.FACEBOOK=4]="FACEBOOK",e[e.TWITTER=5]="TWITTER"})(jn||(jn={}));var jt;(function(e){e[e.FALSE=0]="FALSE",e[e.TRUE=1]="TRUE"})(jt||(jt={}));var $n;(function(e){e.NEWS_TAG="news-tag",e.NEWS_CATEGORY="news-category",e.NEWS_ARTICLE="news-article",e.CONTENT_MODEL="content-model"})($n||($n={}));var X;(function(e){e.RELOAD="reload",e.RELOAD_COMPLETE="reload-complete",e.ENABLE_EDITION_MODE="enable-edition-mode",e.DESELECT_ALL_SECTIONS="deselect-all-sections",e.SELECT_PREVIEW_SECTION="select-preview-section",e.SELECT_SIDEBAR_SECTION="select-sidebar-section",e.SEND_BASE_SECTION_SETTINGS="send-base-section-settings",e.SEND_BASE_SECTION_DATA="send-base-section-data",e.SEND_SECTION_SETTINGS="send-section-settings",e.SEND_SECTION_DATA="send-section-data",e.SEND_PAGE_SECTIONS="send-page-sections"})(X||(X={}));var $t;(function(e){e.EXTERNAL_LINK="external-link",e.PAGE_LINK="page-link",e.CONTENT_LINK="content-link"})($t||($t={}));var Gn;(function(e){e[e.SYSTEM=1]="SYSTEM",e[e.USER=2]="USER"})(Gn||(Gn={}));var Vn;(function(e){e.WELCOME_USER="App\\Notifications\\WelcomeUser"})(Vn||(Vn={}));var Bn;(function(e){e.NEWS_TAG="news-tag",e.NEWS_CATEGORY="news-category",e.NEWS_ARTICLE="news-article",e.CONTENT_MODEL="content-model"})(Bn||(Bn={}));var zn;(function(e){e.SUBSCRIBER="App\\Models\\SubscriberProfile"})(zn||(zn={}));var Zn;(function(e){e.FORM_INVALID_DATA="form/invalid_data",e.AUTH_LOGIN_FAILED="auth/login_failed",e.AUTH_REGISTRATION_FAILED="auth/registration_failed",e.AUTH_MISSING_DATA="auth/missing_data",e.AUTH_WRONG_PASSWORD="auth/wrong_password",e.AUTH_USER_DISABLED="auth/user_disabled",e.AUTH_USER_NOT_FOUND="auth/user_not_found",e.AUTH_PROFILE_TYPE_NOT_FOUND="auth/profile_type_not_found",e.AUTH_EMAIL_ALREADY_USED="auth/email_already_used",e.AUTH_EMAIL_ALREADY_VERIFIED="auth/email_already_verified",e.AUTH_PROFILE_ALREADY_EXISTS="auth/profile_already_exists",e.AUTH_PROFILE_NOT_FOUND="auth/profile_not_found",e.AUTH_INVALID_TOKEN="auth/invalid_token",e.AUTH_CODE_SENDING_FAILED="auth/code_sending_failed",e.AUTH_CODE_VERIFICATION_FAILED="auth/code_verification_failed",e.AUTH_CODE_EXPIRED="auth/code_expired"})(Zn||(Zn={}));var qn;(function(e){e.SUPER_ADMIN="super-admin",e.ADMIN="admin",e.USER="user"})(qn||(qn={}));const Mc=["id"],Oc=l.defineComponent({__name:"RootContainer",props:{page:{},sections:{default:()=>[]},components:{default:()=>({})}},setup(e){const t=e;l.onMounted(()=>{setTimeout(()=>{const n=t.page.props.sectionData;n&&t.sections.find(s=>s.slug==n.slug&&s.pivot?.linkId==n.pivot?.linkId)&&En(`${n.slug}__${n.pivot?.linkId}-container`)},1e3)});const r=l.ref({});return l.onMounted(()=>{const n=()=>{Object.keys(r.value).forEach(a=>{r.value[a].isActive=!1;const o=document.getElementById(a);o&&(o.style.border="none",o.style.boxShadow="none")})},s=a=>{switch(a.data?.type){case X.RELOAD:sessionStorage.setItem("shouldNotifyReload","1"),sessionStorage.setItem("replyOrigin",a.origin),window.location.reload();break;case X.ENABLE_EDITION_MODE:{const o=a.data?.primaryColor??"blue";sessionStorage.setItem("replyOrigin",a.origin),sessionStorage.setItem("primaryColor",o),t.sections?.forEach((c,m)=>{if(c.slug&&c.pivot?.linkId){const f=`${c.slug}__${c.pivot?.linkId}-container`,D=document.getElementById(f);D&&(r.value[f]={element:D,clickCount:0,isActive:!1},D.addEventListener("click",function(b){n(),r.value[this.id].clickCount++,r.value[this.id].isActive=!0,this.style.border=`5px solid ${o}`,this.style.boxShadow=`0 0 10px ${o}`,window.parent.postMessage({type:X.SELECT_PREVIEW_SECTION,slug:c.slug,linkId:c.pivot?.linkId},a.origin)}),D.style.cursor="pointer",D.style.transition="all 0.3s ease")}});break}case X.DESELECT_ALL_SECTIONS:n();break;case X.SELECT_SIDEBAR_SECTION:{setTimeout(()=>{t.sections.find(m=>m.slug==a.data?.slug&&m.pivot?.linkId==a.data?.linkId)&&En(`${a.data?.slug}__${a.data?.linkId}-container`)},1e3);const o=`${a.data?.slug}__${a.data?.linkId}-container`,c=document.getElementById(o);c&&(n(),r.value[o].clickCount++,r.value[o].isActive=!0,c.style.border=`5px solid ${sessionStorage.getItem("primaryColor")}`,c.style.boxShadow=`0 0 10px ${sessionStorage.getItem("primaryColor")}`);break}case X.SEND_BASE_SECTION_SETTINGS:break;case X.SEND_BASE_SECTION_DATA:break;case X.SEND_SECTION_SETTINGS:break;case X.SEND_SECTION_DATA:break;case X.SEND_PAGE_SECTIONS:break}};if(window.addEventListener("message",s),sessionStorage.getItem("shouldNotifyReload")==="1"){const a=sessionStorage.getItem("replyOrigin")||"*";window.parent.postMessage({type:X.RELOAD_COMPLETE},a),sessionStorage.removeItem("shouldNotifyReload"),sessionStorage.removeItem("replyOrigin")}}),(n,s)=>(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.sections,(a,o)=>(l.openBlock(),l.createElementBlock("section",{key:"section-"+o,id:`${a.slug}__${a.pivot?.linkId}-container`,class:"reset-styles"},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.components[a.name]),{data:a.pivot?.data,setings:a.pivot?.settings,"section-key":`${a.slug}__${a.pivot?.linkId}`,metadata:{slug:a.slug,name:a.name,title:a.title,linkId:a.pivot?.linkId,createdAt:a.createdAt,updatedAt:a.updatedAt}},null,8,["data","setings","section-key","metadata"]))],8,Mc))),128))}}),Vs=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Bs=Vs(Oc,[["__scopeId","data-v-9e4f90fa"]]),bc=["src","alt","title","width","height","loading"],Kr=l.defineComponent({__name:"AsyncImg",props:{load:{type:Function},alt:{},width:{},height:{},title:{},loading:{},style:{}},setup(e){const t=e,r=l.ref("");return(async()=>{r.value=await t.load()})(),(s,a)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(r),alt:t.alt,title:t.title,style:l.normalizeStyle(t.style),width:t.width,height:t.height,loading:t.loading},null,12,bc))}}),Tc=l.defineComponent({__name:"CustomTransition",props:{name:{default:"fade"},mode:{default:"out-in"},appear:{type:Boolean,default:!1}},setup(e){const t=e;return(r,n)=>(l.openBlock(),l.createBlock(l.Transition,{name:t.name,mode:t.mode,appear:t.appear},{default:l.withCtx(()=>[l.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},8,["name","mode","appear"]))}}),zs=Vs(Tc,[["__scopeId","data-v-30b5e62e"]]),Zs=Symbol("Props"),qs=Symbol("Config"),Ks=Symbol("Router"),Js=Symbol("ResolveSections"),vr=new WeakMap,Ec=(...e)=>{var t;const r=e[0],n=(t=l.getCurrentInstance())===null||t===void 0?void 0:t.proxy,s=n??l.getCurrentScope();if(s==null&&!l.hasInjectionContext())throw new Error("injectLocal must be called in setup");return s&&vr.has(s)&&r in vr.get(s)?vr.get(s)[r]:l.inject(...e)},Ic=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Yc=Object.prototype.toString,xc=e=>Yc.call(e)==="[object Object]";function Kn(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Sr(e){return Array.isArray(e)?e:[e]}function Nc(e,t,r){return l.watch(e,t,{...r,immediate:!0})}const Qs=Ic?window:void 0;function Ac(e){var t;const r=l.toValue(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function Rc(...e){const t=(n,s,a,o)=>(n.addEventListener(s,a,o),()=>n.removeEventListener(s,a,o)),r=l.computed(()=>{const n=Sr(l.toValue(e[0])).filter(s=>s!=null);return n.every(s=>typeof s!="string")?n:void 0});return Nc(()=>{var n,s;return[(n=(s=r.value)===null||s===void 0?void 0:s.map(a=>Ac(a)))!==null&&n!==void 0?n:[Qs].filter(a=>a!=null),Sr(l.toValue(r.value?e[1]:e[0])),Sr(l.unref(r.value?e[2]:e[1])),l.toValue(r.value?e[3]:e[2])]},([n,s,a,o],c,m)=>{if(!n?.length||!s?.length||!a?.length)return;const f=xc(o)?{...o}:o,D=n.flatMap(b=>s.flatMap(T=>a.map(R=>t(b,T,R,f))));m(()=>{D.forEach(b=>b())})},{flush:"post"})}function Cc(){const e=l.shallowRef(!1),t=l.getCurrentInstance();return t&&l.onMounted(()=>{e.value=!0},t),e}function Lc(e){const t=Cc();return l.computed(()=>(t.value,!!e()))}const Pc=Symbol("vueuse-ssr-width");function Wc(){const e=l.hasInjectionContext()?Ec(Pc,null):null;return typeof e=="number"?e:void 0}function mt(e,t={}){const{window:r=Qs,ssrWidth:n=Wc()}=t,s=Lc(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),a=l.shallowRef(typeof n=="number"),o=l.shallowRef(),c=l.shallowRef(!1),m=f=>{c.value=f.matches};return l.watchEffect(()=>{if(a.value){a.value=!s.value,c.value=l.toValue(e).split(",").some(f=>{const D=f.includes("not all"),b=f.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),T=f.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let R=!!(b||T);return b&&R&&(R=n>=Kn(b[1])),T&&R&&(R=n<=Kn(T[1])),D?!R:R});return}s.value&&(o.value=r.matchMedia(l.toValue(e)),c.value=o.value.matches)}),Rc(o,"change",m,{passive:!0}),l.computed(()=>c.value)}const Jr=()=>{const e=l.inject(qs);if(!e)throw new Error("[@creopse/vue] Plugin not installed");const t=yi(e.appUrl||Si());return{...e,apiBaseUrl:t,apiUrl:`${t}/api`,apiRequestHeaders:{"X-API-Key":e.xApiKey}}},tr=()=>{const{apiUrl:e,apiRequestHeaders:t}=Jr(),r=f=>{},n=async(f,D,b)=>{let T=!1,R=null,$=null;try{const Z=t;Z.Authorization=`Bearer ${D}`,R=await axios.request({method:f.method||"get",params:f.params||{},data:f.data||{},url:f.url||"/",baseURL:e,headers:Z}),T=!0}catch(Z){$=Z,T=!1,Z.response&&Z.response.status==401&&b?.()}return{success:T,failure:!T,result:R?R.data:null,error:$}};return{request:n,getItem:async f=>await n({url:`/${f.routeBase}/${f.id}`}),addItem:async f=>await n({url:`/${f.routeBase}`,method:"post",data:f.data}),updateItem:async f=>await n({url:`/${f.routeBase}/${f.id}`,method:"put",data:f.data}),deleteItem:async f=>await n({url:`/${f.routeBase}/${f.id}`,method:"delete"}),getAllItems:async f=>await n({url:`/${f.routeBase}`}),handleError:r}},Xs=()=>{const e=getActiveLanguage();return{defaultPrefs:l.ref({inAppNotifEnabled:jt.TRUE,emailNotifEnabled:jt.TRUE,locale:e})}},Qr=()=>{const e=Xn.usePage(),t=l.inject(Ks),{request:r}=tr(),{apiBaseUrl:n,langKey:s}=Jr(),{defaultPrefs:a}=Xs(),o=l.computed(()=>e.url),c=M=>In(M)?M:`${n}/${vi(M)}`,m=M=>M?In(M)?M:`${n}/storage/${M}`:"",f=async(M,F="original")=>{const L=["small","medium","large"],G=M.split("/").pop();let ue=!1;for(let q=0;q<L.length;q++)if(L[q]===F&&(ue=!0),ue)try{const se=m(`thumbnails/${L[q]}/${G}`);if((await axios.head(se)).status===200)return se}catch{}return m(M)},D=(M,F)=>{let L;try{L=JSON.parse(M)}catch{L={}}return L&&(L[F.toUpperCase()]||L[F]||L.en)||""},b=(M,F)=>D(M,F),T=(M,F)=>{if(!M)return"";let L=D(M,F).replace(new RegExp("{{BASE_URL}}article","g"),`${n}/article`).replace(new RegExp("{{BASE_URL}}","g"),`${n}/storage`);const G=L.match(/\[audio\](.*?)\[\/?audio\]/g),ue=L.match(/\[video\](.*?)\[\/?video\]/g);return G?.forEach(q=>{const se=q.replace(/\[\/?audio\]/g,"");L=L.replace(q,`<br><p><audio preload="all" controls style="width: 100%"><source src="${m(se)}"></audio></p><br>`)}),ue?.forEach(q=>{const se=q.replace(/\[\/?video\]/g,"");L=L.replace(q,`<br><p><video controls style="width: 100%"><source src="${m(se)}"></video></p><br>`)}),L},R=(M,F)=>T(M,F),$=mt("(min-width: 1536px)"),Z=mt("(min-width: 1280px) and (max-width: 1535px)"),$e=mt("(min-width: 1024px) and (max-width: 1279px)"),Oe=mt("(min-width: 768px) and (max-width: 1023px)"),Ge=mt("(max-width: 767px)"),be=[{label:"French",value:"fr",flag:"flag:fr-1x1"},{label:"English",value:"en",flag:"flag:gb-1x1"}];return{is2XlScreen:$,isXlScreen:Z,isLgScreen:$e,isMdScreen:Oe,isSmScreen:Ge,getTranslation:D,getLangageLabel:M=>be.find(F=>F.value==M)?.label,getLanguageValue:M=>be.find(F=>F.label==M)?.value,getLinkCursorClass:M=>!M||M==="#"?"tw:cursor-default":"tw:cursor-pointer",ckEditorToolbarItems:["fullScreen","|","heading","|","uploadImage","|","bold","italic","underline","strikethrough","code","subscript","superscript","selectAll","|","fontSize","fontFamily","fontColor","fontBackgroundColor","|","horizontalLine","blockQuote","bulletedList","numberedList","alignment","|","outdent","indent","|","link","insertTable","mediaEmbed","|","undo","redo"],displayFormErrors:(M,F)=>{if(M)for(const[L,G]of Object.entries(M))for(const ue of G)F(ue)},resolveHtmlLinks:T,resolveUrl:c,updateLang:async(M,F=!0,L=!0)=>{if(localStorage.setItem(s,M),e.props.isUserLoggedIn&&L){const G=e.props.userData?.preferences||a.value;G.locale=M,await r({url:`/users/self/${e.props.userData?.id}`,method:"put",data:{preferences:G}})}F&&location.reload()},languages:be,getImage:f,fileUrl:m,currentRoutePath:o,openLink:M=>{_v.isURL(M)?window.open(M,"_blank"):t?.get(M)},openMenu:M=>{switch(M?.targetType){case $t.EXTERNAL_LINK:window.open(M?.url??"#");break;case $t.PAGE_LINK:t?.get(M?.path??"/");break}},getMenuHref:M=>M?.targetType==="external-link"?M?.url||"":M?.path||"",rHtml:R,tr:b}},Uc=["src"],ea=l.defineComponent({__name:"Image",props:{src:{},alt:{default:""},width:{default:void 0},height:{default:void 0},title:{default:void 0},loading:{default:void 0},style:{default:void 0},size:{default:"original"},sync:{type:Boolean,default:!1}},setup(e){const t=e,{getImage:r}=Qr(),{src:n,size:s,sync:a}=l.toRefs(t),o=l.computed(()=>{const{src:c,size:m,sync:f,...D}=t;return D});return(c,m)=>{const f=Kr;return l.unref(a)?(l.openBlock(),l.createElementBlock("img",l.mergeProps({key:0,src:l.unref(n)},l.unref(o)),null,16,Uc)):(l.openBlock(),l.createBlock(f,l.mergeProps({key:1,load:()=>l.unref(r)(l.unref(n),l.unref(s))},l.unref(o)),null,16,["load"]))}}}),ta=l.defineComponent({__name:"MountedTeleport",props:{to:{}},setup(e){const t=e,r=l.ref(!1);return l.onMounted(()=>{r.value=!0}),l.onUnmounted(()=>{r.value=!1}),(n,s)=>l.unref(r)?(l.openBlock(),l.createBlock(l.Teleport,{key:0,to:t.to},[l.renderSlot(n.$slots,"default")],8,["to"])):l.createCommentVNode("",!0)}}),Fc=["innerHTML"],Hc=["href"],jc=["href"],ra=l.defineComponent({__name:"ReadMore",props:{moreStr:{default:"Read more"},lessStr:{default:""},text:{},link:{default:"#"},maxChars:{default:100}},setup(e){const t=e,r=l.ref(!1),n=l.computed(()=>!r.value&&t.text.length>t.maxChars?t.text.substring(0,t.maxChars)+"...":t.text),s=(a,o)=>{t.link=="#"&&a.preventDefault(),t.lessStr&&(r.value=o)};return(a,o)=>(l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("span",{innerHTML:l.unref(n)},null,8,Fc),l.withDirectives(l.createElementVNode("span",null,[l.withDirectives(l.createElementVNode("a",{id:"readmore",href:t.link,onClick:o[0]||(o[0]=c=>s(c,!0))},l.toDisplayString(t.moreStr),9,Hc),[[l.vShow,!l.unref(r)]]),l.withDirectives(l.createElementVNode("a",{id:"readmore",href:t.link,onClick:o[1]||(o[1]=c=>s(c,!1))},l.toDisplayString(t.lessStr),9,jc),[[l.vShow,l.unref(r)]])],512),[[l.vShow,t.text.length>t.maxChars]])]))}}),na=l.defineComponent({__name:"StickyBottom",props:{bottom:{default:0},zIndex:{default:1},className:{default:""}},setup(e){const t=e,r=l.ref(null),n=l.ref(!1),s=l.ref(""),a=l.ref(void 0),o=l.ref(void 0),c=l.ref(!1);l.onMounted(()=>{o.value=r.value?.getBoundingClientRect().height,window.addEventListener("scroll",b),window.addEventListener("resize",T),b()}),l.onActivated(()=>{b()}),l.onUnmounted(()=>{window.removeEventListener("scroll",b),window.removeEventListener("resize",T)});const m=()=>{n.value||(s.value="fixed",n.value=!0,a.value=a.value+"px",c.value=!0)},f=()=>{n.value&&D()},D=()=>{s.value="",a.value="auto",n.value=!1,c.value=!1},b=()=>{const R=r.value?.getBoundingClientRect().width;if(a.value=R||"auto",(r.value?.getBoundingClientRect().bottom||0)>t.bottom){m();return}f()},T=()=>{c.value&&(a.value=r.value?.getBoundingClientRect().width+"px")};return(R,$)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"el",ref:r,style:l.normalizeStyle({height:l.unref(o)+"px",zIndex:t.zIndex})},[l.createElementVNode("div",{class:l.normalizeClass(t.className),style:l.normalizeStyle({bottom:l.unref(c)?t.bottom+"px":"",zIndex:t.zIndex,position:l.unref(s),width:l.unref(a),height:l.unref(o)+"px"})},[l.renderSlot(R.$slots,"default",{},()=>[$[0]||($[0]=l.createElementVNode("div",null,"Sticky Bottom",-1))])],6)],4))}}),sa=l.defineComponent({__name:"StickyTop",props:{top:{default:0},zIndex:{default:1},className:{default:""}},setup(e){const t=e,r=l.ref(null),n=l.ref(!1),s=l.ref(""),a=l.ref(void 0),o=l.ref(void 0),c=l.ref(!1);l.onMounted(()=>{o.value=r.value?.getBoundingClientRect().height,window.addEventListener("scroll",b),window.addEventListener("resize",T)}),l.onActivated(()=>{b()}),l.onUnmounted(()=>{window.removeEventListener("scroll",b),window.removeEventListener("resize",T)});const m=()=>{n.value||(s.value="fixed",n.value=!0,a.value=a.value+"px",c.value=!0)},f=()=>{n.value&&D()},D=()=>{s.value="",a.value="auto",n.value=!1,c.value=!1},b=()=>{const R=r.value?.getBoundingClientRect().width;if(a.value=R||"auto",(r.value?.getBoundingClientRect().top||0)<t.top){m();return}f()},T=()=>{c.value&&(a.value=r.value?.getBoundingClientRect().width+"px")};return(R,$)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"el",ref:r,style:l.normalizeStyle({height:l.unref(o)+"px",zIndex:t.zIndex})},[l.createElementVNode("div",{class:l.normalizeClass(t.className),style:l.normalizeStyle({top:l.unref(c)?t.top+"px":"",zIndex:t.zIndex,position:l.unref(s),width:l.unref(a),height:l.unref(o)+"px"})},[l.renderSlot(R.$slots,"default",{},()=>[$[0]||($[0]=l.createElementVNode("div",null,"Sticky Top",-1))])],6)],4))}});class $c{state;constructor(t){this.state=l.reactive({props:t})}update(t){this.state.props=this.deepMerge(this.state.props,t)}getState(){return l.readonly(this.state)}sync(t){this.state.props=t}deepMerge(t,r){const n={...t};return this.isObject(t)&&this.isObject(r)&&Object.keys(r).forEach(s=>{this.isObject(r[s])&&s in t?n[s]=this.deepMerge(t[s],r[s]):n[s]=r[s]}),n}isObject(t){return t&&typeof t=="object"&&!Array.isArray(t)}}const Gc=()=>{const e=l.inject(Zs);if(!e)throw new Error("[@creopse/vue] Plugin not installed");return e.getState().props};var At=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _t={exports:{}};_t.exports;var Jn;function Bc(){return Jn||(Jn=1,function(e,t){var r=200,n="__lodash_hash_undefined__",s=9007199254740991,a="[object Arguments]",o="[object Array]",c="[object Boolean]",m="[object Date]",f="[object Error]",D="[object Function]",b="[object GeneratorFunction]",T="[object Map]",R="[object Number]",$="[object Object]",Z="[object Promise]",$e="[object RegExp]",Oe="[object Set]",Ge="[object String]",be="[object Symbol]",Re="[object WeakMap]",lt="[object ArrayBuffer]",Ce="[object DataView]",Ve="[object Float32Array]",Be="[object Float64Array]",Te="[object Int8Array]",ut="[object Int16Array]",Ee="[object Int32Array]",ze="[object Uint8Array]",M="[object Uint8ClampedArray]",F="[object Uint16Array]",L="[object Uint32Array]",G=/[\\^$.*+?()[\]{}|]/g,ue=/\w*$/,q=/^\[object .+?Constructor\]$/,se=/^(?:0|[1-9]\d*)$/,A={};A[a]=A[o]=A[lt]=A[Ce]=A[c]=A[m]=A[Ve]=A[Be]=A[Te]=A[ut]=A[Ee]=A[T]=A[R]=A[$]=A[$e]=A[Oe]=A[Ge]=A[be]=A[ze]=A[M]=A[F]=A[L]=!0,A[f]=A[D]=A[Re]=!1;var Xr=typeof At=="object"&&At&&At.Object===Object&&At,y=typeof self=="object"&&self&&self.Object===Object&&self,v=Xr||y||Function("return this")(),S=t&&!t.nodeType&&t,p=S&&!0&&e&&!e.nodeType&&e,I=p&&p.exports===S;function B(i,u){return i.set(u[0],u[1]),i}function Ze(i,u){return i.add(u),i}function Ie(i,u){for(var d=-1,w=i?i.length:0;++d<w&&u(i[d],d,i)!==!1;);return i}function rr(i,u){for(var d=-1,w=u.length,V=i.length;++d<w;)i[V+d]=u[d];return i}function en(i,u,d,w){for(var V=-1,K=i?i.length:0;++V<K;)d=u(d,i[V],V,i);return d}function aa(i,u){for(var d=-1,w=Array(i);++d<i;)w[d]=u(d);return w}function ia(i,u){return i?.[u]}function tn(i){var u=!1;if(i!=null&&typeof i.toString!="function")try{u=!!(i+"")}catch{}return u}function rn(i){var u=-1,d=Array(i.size);return i.forEach(function(w,V){d[++u]=[V,w]}),d}function nr(i,u){return function(d){return i(u(d))}}function nn(i){var u=-1,d=Array(i.size);return i.forEach(function(w){d[++u]=w}),d}var oa=Array.prototype,la=Function.prototype,Ot=Object.prototype,sr=v["__core-js_shared__"],sn=function(){var i=/[^.]+$/.exec(sr&&sr.keys&&sr.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),an=la.toString,Ye=Ot.hasOwnProperty,bt=Ot.toString,ua=RegExp("^"+an.call(Ye).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),on=I?v.Buffer:void 0,ln=v.Symbol,un=v.Uint8Array,ca=nr(Object.getPrototypeOf,Object),da=Object.create,fa=Ot.propertyIsEnumerable,ha=oa.splice,cn=Object.getOwnPropertySymbols,ma=on?on.isBuffer:void 0,_a=nr(Object.keys,Object),ar=Je(v,"DataView"),ct=Je(v,"Map"),ir=Je(v,"Promise"),or=Je(v,"Set"),lr=Je(v,"WeakMap"),dt=Je(Object,"create"),pa=We(ar),ga=We(ct),ya=We(ir),va=We(or),Sa=We(lr),dn=ln?ln.prototype:void 0,fn=dn?dn.valueOf:void 0;function Le(i){var u=-1,d=i?i.length:0;for(this.clear();++u<d;){var w=i[u];this.set(w[0],w[1])}}function wa(){this.__data__=dt?dt(null):{}}function ka(i){return this.has(i)&&delete this.__data__[i]}function Da(i){var u=this.__data__;if(dt){var d=u[i];return d===n?void 0:d}return Ye.call(u,i)?u[i]:void 0}function Ma(i){var u=this.__data__;return dt?u[i]!==void 0:Ye.call(u,i)}function Oa(i,u){var d=this.__data__;return d[i]=dt&&u===void 0?n:u,this}Le.prototype.clear=wa,Le.prototype.delete=ka,Le.prototype.get=Da,Le.prototype.has=Ma,Le.prototype.set=Oa;function me(i){var u=-1,d=i?i.length:0;for(this.clear();++u<d;){var w=i[u];this.set(w[0],w[1])}}function ba(){this.__data__=[]}function Ta(i){var u=this.__data__,d=Tt(u,i);if(d<0)return!1;var w=u.length-1;return d==w?u.pop():ha.call(u,d,1),!0}function Ea(i){var u=this.__data__,d=Tt(u,i);return d<0?void 0:u[d][1]}function Ia(i){return Tt(this.__data__,i)>-1}function Ya(i,u){var d=this.__data__,w=Tt(d,i);return w<0?d.push([i,u]):d[w][1]=u,this}me.prototype.clear=ba,me.prototype.delete=Ta,me.prototype.get=Ea,me.prototype.has=Ia,me.prototype.set=Ya;function qe(i){var u=-1,d=i?i.length:0;for(this.clear();++u<d;){var w=i[u];this.set(w[0],w[1])}}function xa(){this.__data__={hash:new Le,map:new(ct||me),string:new Le}}function Na(i){return Et(this,i).delete(i)}function Aa(i){return Et(this,i).get(i)}function Ra(i){return Et(this,i).has(i)}function Ca(i,u){return Et(this,i).set(i,u),this}qe.prototype.clear=xa,qe.prototype.delete=Na,qe.prototype.get=Aa,qe.prototype.has=Ra,qe.prototype.set=Ca;function Ke(i){this.__data__=new me(i)}function La(){this.__data__=new me}function Pa(i){return this.__data__.delete(i)}function Wa(i){return this.__data__.get(i)}function Ua(i){return this.__data__.has(i)}function Fa(i,u){var d=this.__data__;if(d instanceof me){var w=d.__data__;if(!ct||w.length<r-1)return w.push([i,u]),this;d=this.__data__=new qe(w)}return d.set(i,u),this}Ke.prototype.clear=La,Ke.prototype.delete=Pa,Ke.prototype.get=Wa,Ke.prototype.has=Ua,Ke.prototype.set=Fa;function Ha(i,u){var d=dr(i)||di(i)?aa(i.length,String):[],w=d.length,V=!!w;for(var K in i)Ye.call(i,K)&&!(V&&(K=="length"||oi(K,w)))&&d.push(K);return d}function hn(i,u,d){var w=i[u];(!(Ye.call(i,u)&&gn(w,d))||d===void 0&&!(u in i))&&(i[u]=d)}function Tt(i,u){for(var d=i.length;d--;)if(gn(i[d][0],u))return d;return-1}function ja(i,u){return i&&mn(u,fr(u),i)}function ur(i,u,d,w,V,K,_e){var J;if(w&&(J=K?w(i,V,K,_e):w(i)),J!==void 0)return J;if(!It(i))return i;var Sn=dr(i);if(Sn){if(J=si(i),!u)return ti(i,J)}else{var Qe=Pe(i),wn=Qe==D||Qe==b;if(hi(i))return Za(i,u);if(Qe==$||Qe==a||wn&&!K){if(tn(i))return K?i:{};if(J=ai(wn?{}:i),!u)return ri(i,ja(J,i))}else{if(!A[Qe])return K?i:{};J=ii(i,Qe,ur,u)}}_e||(_e=new Ke);var kn=_e.get(i);if(kn)return kn;if(_e.set(i,J),!Sn)var Dn=d?ni(i):fr(i);return Ie(Dn||i,function(hr,Yt){Dn&&(Yt=hr,hr=i[Yt]),hn(J,Yt,ur(hr,u,d,w,Yt,i,_e))}),J}function $a(i){return It(i)?da(i):{}}function Ga(i,u,d){var w=u(i);return dr(i)?w:rr(w,d(i))}function Va(i){return bt.call(i)}function Ba(i){if(!It(i)||ui(i))return!1;var u=vn(i)||tn(i)?ua:q;return u.test(We(i))}function za(i){if(!pn(i))return _a(i);var u=[];for(var d in Object(i))Ye.call(i,d)&&d!="constructor"&&u.push(d);return u}function Za(i,u){if(u)return i.slice();var d=new i.constructor(i.length);return i.copy(d),d}function cr(i){var u=new i.constructor(i.byteLength);return new un(u).set(new un(i)),u}function qa(i,u){var d=u?cr(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function Ka(i,u,d){var w=u?d(rn(i),!0):rn(i);return en(w,B,new i.constructor)}function Ja(i){var u=new i.constructor(i.source,ue.exec(i));return u.lastIndex=i.lastIndex,u}function Qa(i,u,d){var w=u?d(nn(i),!0):nn(i);return en(w,Ze,new i.constructor)}function Xa(i){return fn?Object(fn.call(i)):{}}function ei(i,u){var d=u?cr(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function ti(i,u){var d=-1,w=i.length;for(u||(u=Array(w));++d<w;)u[d]=i[d];return u}function mn(i,u,d,w){d||(d={});for(var V=-1,K=u.length;++V<K;){var _e=u[V],J=void 0;hn(d,_e,J===void 0?i[_e]:J)}return d}function ri(i,u){return mn(i,_n(i),u)}function ni(i){return Ga(i,fr,_n)}function Et(i,u){var d=i.__data__;return li(u)?d[typeof u=="string"?"string":"hash"]:d.map}function Je(i,u){var d=ia(i,u);return Ba(d)?d:void 0}var _n=cn?nr(cn,Object):pi,Pe=Va;(ar&&Pe(new ar(new ArrayBuffer(1)))!=Ce||ct&&Pe(new ct)!=T||ir&&Pe(ir.resolve())!=Z||or&&Pe(new or)!=Oe||lr&&Pe(new lr)!=Re)&&(Pe=function(i){var u=bt.call(i),d=u==$?i.constructor:void 0,w=d?We(d):void 0;if(w)switch(w){case pa:return Ce;case ga:return T;case ya:return Z;case va:return Oe;case Sa:return Re}return u});function si(i){var u=i.length,d=i.constructor(u);return u&&typeof i[0]=="string"&&Ye.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function ai(i){return typeof i.constructor=="function"&&!pn(i)?$a(ca(i)):{}}function ii(i,u,d,w){var V=i.constructor;switch(u){case lt:return cr(i);case c:case m:return new V(+i);case Ce:return qa(i,w);case Ve:case Be:case Te:case ut:case Ee:case ze:case M:case F:case L:return ei(i,w);case T:return Ka(i,w,d);case R:case Ge:return new V(i);case $e:return Ja(i);case Oe:return Qa(i,w,d);case be:return Xa(i)}}function oi(i,u){return u=u??s,!!u&&(typeof i=="number"||se.test(i))&&i>-1&&i%1==0&&i<u}function li(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function ui(i){return!!sn&&sn in i}function pn(i){var u=i&&i.constructor,d=typeof u=="function"&&u.prototype||Ot;return i===d}function We(i){if(i!=null){try{return an.call(i)}catch{}try{return i+""}catch{}}return""}function ci(i){return ur(i,!0,!0)}function gn(i,u){return i===u||i!==i&&u!==u}function di(i){return fi(i)&&Ye.call(i,"callee")&&(!fa.call(i,"callee")||bt.call(i)==a)}var dr=Array.isArray;function yn(i){return i!=null&&mi(i.length)&&!vn(i)}function fi(i){return _i(i)&&yn(i)}var hi=ma||gi;function vn(i){var u=It(i)?bt.call(i):"";return u==D||u==b}function mi(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function It(i){var u=typeof i;return!!i&&(u=="object"||u=="function")}function _i(i){return!!i&&typeof i=="object"}function fr(i){return yn(i)?Ha(i):za(i)}function pi(){return[]}function gi(){return!1}e.exports=ci}(_t,_t.exports)),_t.exports}var zc=Bc();const Qn=Vc(zc),Zc=()=>{const{request:e}=tr(),{fileUrl:t}=Qr(),r=Xn.usePage(),n=()=>r.props,s=r.props.pageData,a=r.props.article,o=r.props.category,c=r.props.tag,m=r.props.contentModelItem,f=l.inject(Js),D=y=>{if(!y)return null;const v=y.split("__"),S=v.length?v[0]:"",p=v.length>1?v[1]:"";return r.props.pageData?.sections?.find(I=>I.slug==S&&I.pivot?.linkId==p)?.pivot?.data||null},b=y=>D(y)?.index,T=y=>{if(!y)return null;const v=y.split("__"),S=v.length?v[0]:"",p=v.length>1?v[1]:"";return r.props.pageData?.sections?.find(I=>I.slug==S&&I.pivot?.linkId==p)?.pivot?.settings||null},R=(y,v)=>T(y)?.[v],$=(y,v,S)=>R(y,v)?.[S],Z=()=>{const y=s?.sections,v=s?.sectionsOrder,S=[];if(Array.isArray(y)&&Array.isArray(v)){for(const p of v)if(p){const I=y.find(B=>`${B.slug}__${B.pivot?.linkId}`===p);I&&S.push(I)}}return S.length?S:y||[]},$e=()=>{const y=Z(),v=s?.sectionsDisabled;return y.filter(S=>!v?.includes(`${S.slug}__${S.pivot?.linkId}`))},Oe=async(y,v,S="default")=>{const p=await e({url:`section-data/${y}/source/${v}/link/${S}`});return p.success&&p.result?p.result.data:null},Ge=()=>{const y={};if(!f)throw new Error("[@creopse/vue] resolveSections is required");const v=f();for(const[p,I]of Object.entries(v)){var S=p.replace(/^\.\/(.*)\.\w+$/,"$1");const B=S.split("/"),Ze=B[B.length-1]?.split(".")[0];y[Ze]=I.default}return y},be=y=>r.props?.contentModels?.find(v=>v.name===y),Re=y=>{const{index:v,...S}=y.contentModelData;return{...y,data:{...y.contentModelData?.index,...S}}},lt=async(y,v=!0)=>{const S=await e({url:`content-model/items?contentModelName=${y}${v?"&isActive=true":""}`});return S.success&&S.result?(S.result.data||[]).map(p=>Re(p)):[]},Ce=async(y,v,S=!0)=>{const p=await e({url:`content-model/items?pageSize=${v}&contentModelName=${y}${S?"&isActive=true":""}`});if(p.success&&p.result){const I=(p.result.data?.items||[]).map(Ie=>Re(Ie)),B=p.result.data?.meta?.total||0,Ze=p.result.data?.meta?.currentPage||1;return{items:I,total:B,currentPage:Ze}}return{items:[],total:0,currentPage:1}},Ve=(y,v=!0)=>{const S=r.props?.menus?.find(p=>p.name===y);return S&&(S.items=Qn(S.items?.filter(p=>!v||p.isActive)?.sort((p,I)=>p.position-I.position))),S},Be=(y,v=!0)=>{const S=r.props?.menus?.find(p=>p.location?.name===y);return S&&(S.items=Qn(S.items?.filter(p=>!v||p.isActive)?.sort((p,I)=>p.position-I.position))),S},Te=(y,v=!0)=>Ve(y)?.items?.filter(S=>!v||S.isVisible)?.sort((S,p)=>S.position-p.position),ut=y=>{const v=[];return(r.props?.menus||[]).forEach(p=>{Array.isArray(p.items)&&v.push(...p.items)}),v.find(p=>p.id===y)},Ee=(y,v=!0)=>Be(y)?.items?.filter(S=>!v||S.isVisible)?.sort((S,p)=>S.position-p.position),ze=(y,v=!1,S=!0)=>{const p=[],I=v?Ee(y,S):Te(y,S);if(I){for(const B of I)if(!p.find(Ie=>Ie.id===B.menuItemGroupId)){const Ie=r.props?.menuItemGroups?.find(rr=>rr.id===B.menuItemGroupId);Ie&&p.push(Ie)}}return p},M=(y,v,S=!1,p=!0)=>(S?Ee(y,p):Te(y,p))?.filter(B=>B.menuItemGroupId===v),F=(y,v=!1,S=!0)=>ze(y,v).map(I=>({group:I,items:M(y,I.id||0,v,S)})),L=(y,v=!1,S=!0)=>(v?Ee(y,S):Te(y,S))?.filter(I=>!I.menuItemGroupId),G=(y,v="string")=>{const p=r.props.appInformation.find(B=>B.key===y);let I="";switch(v){case"number":I=p&&parseInt(p.value)&&!isNaN(parseInt(p.value))?parseInt(p.value):0;break;case"boolean":I=p&&!isNaN(parseInt(p.value))&&parseInt(p.value)>0;break;case"object":I=p&&p.value?JSON.parse(p.value):{};break;case"array":I=p&&p.value?JSON.parse(p.value):[];break;default:I=p&&p.value?p.value:"";break}return I},ue=l.computed(()=>G("primaryColor")||void 0),q=l.computed(()=>G("secondaryColor")||void 0),se=l.computed(()=>G("accentColor")||void 0),A=l.computed(()=>{const y=G("icon");return t(y)||""});return{logo:l.computed(()=>{const y=G("logo");return t(y)||""}),icon:A,page:r,pageData:s,newsArticle:a,newsCategory:o,newsTag:c,contentModelItem:m,getProps:n,getMenu:Ve,getMenuByLocation:Be,getMenuItems:Te,getMenuItemById:ut,getMenuItemsByLocation:Ee,getMenuGroups:ze,getMenuItemsByGroup:M,getMenuGroupedItems:F,getMenuUngroupedItems:L,getSectionData:D,getSectionSettings:T,getSectionSettingsGroup:R,getSectionSetting:$,getAnySectionData:Oe,getSectionsInOrder:Z,getFinalPageSections:$e,getSectionRootData:b,getComponents:Ge,getContentModel:be,getContentModelItems:lt,getPaginatedContentModelItems:Ce,getAppInformationValue:G,appAccentColor:se,appPrimaryColor:ue,appSecondaryColor:q}},qc=()=>{const{request:e}=tr(),t=l.ref(!1),r=async(a,o=void 0,c=void 0)=>{await s("email",a,o,c)},n=async(a,o=void 0,c=void 0)=>{await s("phone",a.replace(/\s+/g,""),o,c)},s=async(a,o,c=void 0,m=void 0)=>{t.value=!0;const f=await e({url:`newsletter/${a}s`,method:"post",data:a==="email"?{email:o}:{phone:o}});f.failure&&f.error?m&&m(f.error?.response?.data):c&&c(),t.value=!1};return{subscribePhone:n,subscribeEmail:r,isLoading:t}},Kc={install(e,t){if(!t?.initialProps)throw new Error("[@creopse/vue] initialProps is required");if(!t?.config)throw new Error("[@creopse/vue] config is required");if(!t?.resolveSections)throw new Error("[@creopse/vue] resolveSections is required");const r=new $c(t.initialProps);t?.router?(t.router.on("navigate",n=>{r.update(n.detail.page.props)}),e.provide(Ks,t.router),e.config.globalProperties.$router=t.router):console.warn("[@creopse/vue] No router - props won't sync"),e.provide(Zs,r),e.config.globalProperties.$props=r,e.provide(qs,t.config),e.config.globalProperties.$config=t.config,e.provide(Js,t.resolveSections),e.config.globalProperties.$resolveSections=t.resolveSections,e.component("RootContainer",Bs),e.component("CustomTransition",zs),e.component("MountedTeleport",ta),e.component("StickyBottom",na),e.component("StickyTop",sa),e.component("ReadMore",ra),e.component("AsyncImg",Kr),e.component("Image",ea)}};exports.AsyncImg=Kr;exports.CustomTransition=zs;exports.Image=ea;exports.MountedTeleport=ta;exports.ReadMore=ra;exports.RootContainer=Bs;exports.StickyBottom=na;exports.StickyTop=sa;exports.default=Kc;exports.useApi=tr;exports.useConfig=Jr;exports.useContent=Zc;exports.useHelper=Qr;exports.useNewsletter=qc;exports.useProps=Gc;exports.useUserPreference=Xs;