@creopse/vue 0.0.17 → 0.0.19
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 +6 -6
- package/dist/index.js +7 -7
- package/dist/index.mjs +1443 -1450
- package/package.json +1 -1
- package/types/composables/api.d.ts +1 -1
- package/types/composables/helper.d.ts +4 -5
- package/types/core/symbols.d.ts +2 -1
- package/types/index.d.ts +0 -1
- package/types/types/plugin.d.ts +2 -3
- package/types/composables/user-preference.d.ts +0 -26
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
|
|
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 gi(e){return e.startsWith("/")?e.slice(1):e}function vi(){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
|
|
2
2
|
//! version : 2.30.1
|
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
4
|
//! license : MIT
|
|
5
5
|
//! momentjs.com
|
|
6
|
-
var
|
|
7
|
-
[`+a+"] ";for(o in arguments[0])
|
|
6
|
+
var es;function _(){return es.apply(null,arguments)}function Si(e){es=e}function oe(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 X(e){return e===void 0}function ke(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function St(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 wi(){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=wi()),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(X(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),X(t._i)||(e._i=t._i),X(t._f)||(e._f=t._f),X(t._l)||(e._l=t._l),X(t._strict)||(e._strict=t._strict),X(t._tzm)||(e._tzm=t._tzm),X(t._isUTC)||(e._isUTC=t._isUTC),X(t._offset)||(e._offset=t._offset),X(t._pf)||(e._pf=O(t)),X(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)n=Yn[r],s=t[n],X(s)||(e[n]=s);return e}function wt(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 le(e){return e instanceof wt||e!=null&&e._isAMomentObject!=null}function rs(e){_.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ne(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";
|
|
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 ki(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 Di={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Mi(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={},et={};function k(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(et[e]=s),t&&(et[t[0]]=function(){return de(s.apply(this,arguments),t[1],t[2])}),r&&(et[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Oi(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function bi(e){var t=e.match(Nr),r,n;for(r=0,n=t.length;r<n;r++)et[t[r]]?t[r]=et[t[r]]:t[r]=Oi(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]||bi(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 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 Ei(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 Ii="Invalid date";function Yi(){return this._invalidDate}var xi="%d",Ni=/\d{1,2}/;function Ai(e){return this._ordinal.replace("%d",e)}var Ri={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 Ci(e,t,r,n){var s=this._relativeTime[r];return he(s)?s(e,t,r,n):s.replace(/%d/i,e)}function Li(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 se(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=se(n),r&&(t[r]=e[n]));return t}var Pi={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 Wi(e){var t=[],r;for(r in e)x(e,r)&&t.push({unit:r,priority:Pi[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}var as=/\d/,te=/\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}/,nt=/\d+/,Zt=/[+-]?\d+/,Ui=/Z|[+-]\d\d:?\d\d/gi,qt=/Z|[+-]\d\d(?::?\d\d)?/gi,Fi=/[+-]?\d+(\.\d{1,3})?/,kt=/[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,st=/^[1-9]\d?/,Lr=/^([1-9]\d|\d)/,Pt;Pt={};function y(e,t,r){Pt[e]=he(t)?t:function(n,s){return n&&r?r:t}}function Hi(e,t){return x(Pt,e)?Pt[e](t._strict,t._locale):new RegExp(ji(e))}function ji(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 re(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function T(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=re(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]=T(a)}),s=e.length,r=0;r<s;r++)Mr[e[r]]=n}function Dt(e,t){C(e,function(r,n,s,a){s._w=s._w||{},t(r,s._w,s,a)})}function $i(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 B=0,ge=1,ce=2,j=3,ie=4,ve=5,Fe=6,Gi=7,Vi=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");y("Y",Zt);y("YY",W,te);y("YYYY",Cr,Rr);y("YYYYY",zt,Vt);y("YYYYYY",zt,Vt);C(["YYYYY","YYYYYY"],B);C("YYYY",function(e,t){t[B]=e.length===2?_.parseTwoDigitYear(e):T(e)});C("YY",function(e,t){t[B]=_.parseTwoDigitYear(e)});C("Y",function(e,t){t[B]=parseInt(e,10)});function _t(e){return Kt(e)?366:365}_.parseTwoDigitYear=function(e){return T(e)+(T(e)>68?1900:2e3)};var us=at("FullYear",!0);function Bi(){return Kt(this.year())}function at(e,t){return function(r){return r!=null?(cs(this,e,r),_.updateOffset(this,t),this):pt(this,e)}}function pt(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=se(e),he(this[e])?this[e]():this}function Zi(e,t){if(typeof e=="object"){e=Ar(e);var r=Wi(e),n,s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(e=se(e),he(this[e]))return this[e](t);return this}function qi(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=qi(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)});y("M",W,st);y("MM",W,te);y("MMM",function(e,t){return t.monthsShortRegex(e)});y("MMMM",function(e,t){return t.monthsRegex(e)});C(["M","MM"],function(e,t){t[ge]=T(e)-1});C(["MMM","MMMM"],function(e,t,r,n){var s=r._locale.monthsParse(e,n,r._strict);s!=null?t[ge]=s:O(r).invalidMonth=e});var Ki="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?/,Ji=kt,Qi=kt;function Xi(e,t){return e?oe(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||fs).test(t)?"format":"standalone"][e.month()]:oe(this._months)?this._months:this._months.standalone}function eo(e,t){return e?oe(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[fs.test(t)?"format":"standalone"][e.month()]:oe(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function to(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 ro(e,t,r){var n,s,a;if(this._monthsParseExact)return to.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=T(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):pt(this,"Month")}function no(){return Pr(this.year(),this.month())}function so(e){return this._monthsParseExact?(x(this,"_monthsRegex")||_s.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(x(this,"_monthsShortRegex")||(this._monthsShortRegex=Ji),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ao(e){return this._monthsParseExact?(x(this,"_monthsRegex")||_s.call(this),e?this._monthsStrictRegex:this._monthsRegex):(x(this,"_monthsRegex")||(this._monthsRegex=Qi),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 io(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=_t(m)+c):c>_t(e)?(m=e+1,f=c-_t(e)):(m=e,f=c),{year:m,dayOfYear:f}}function gt(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(_t(e)-n+s)/7}k("w",["ww",2],"wo","week");k("W",["WW",2],"Wo","isoWeek");y("w",W,st);y("ww",W,te);y("W",W,st);y("WW",W,te);Dt(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=T(e)});function oo(e){return gt(e,this._week.dow,this._week.doy).week}var lo={dow:0,doy:6};function uo(){return this._week.dow}function co(){return this._week.doy}function fo(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function ho(e){var t=gt(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");y("d",W);y("e",W);y("E",W);y("dd",function(e,t){return t.weekdaysMinRegex(e)});y("ddd",function(e,t){return t.weekdaysShortRegex(e)});y("dddd",function(e,t){return t.weekdaysRegex(e)});Dt(["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});Dt(["d","e","E"],function(e,t,r,n){t[n]=T(e)});function mo(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function _o(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 po="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ys="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),go=kt,vo=kt,So=kt;function wo(e,t){var r=oe(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 ko(e){return e===!0?Wr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Do(e){return e===!0?Wr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Mo(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 Oo(e,t,r){var n,s,a;if(this._weekdaysParseExact)return Mo.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 bo(e){if(!this.isValid())return e!=null?this:NaN;var t=pt(this,"Day");return e!=null?(e=mo(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 Eo(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=_o(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Io(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ur.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(x(this,"_weekdaysRegex")||(this._weekdaysRegex=go),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Yo(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ur.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(x(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=vo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function xo(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ur.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(x(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=So),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ur(){function e(M,b){return b.length-M.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 No(){return this.hours()||24}k("H",["HH",2],0,"hour");k("h",["hh",2],0,Fr);k("k",["kk",2],0,No);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 gs(e,t){k(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}gs("a",!0);gs("A",!1);function vs(e,t){return t._meridiemParse}y("a",vs);y("A",vs);y("H",W,Lr);y("h",W,st);y("k",W,st);y("HH",W,te);y("hh",W,te);y("kk",W,te);y("hmm",os);y("hmmss",ls);y("Hmm",os);y("Hmmss",ls);C(["H","HH"],j);C(["k","kk"],function(e,t,r){var n=T(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]=T(e),O(r).bigHour=!0});C("hmm",function(e,t,r){var n=e.length-2;t[j]=T(e.substr(0,n)),t[ie]=T(e.substr(n)),O(r).bigHour=!0});C("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[j]=T(e.substr(0,n)),t[ie]=T(e.substr(n,2)),t[ve]=T(e.substr(s)),O(r).bigHour=!0});C("Hmm",function(e,t,r){var n=e.length-2;t[j]=T(e.substr(0,n)),t[ie]=T(e.substr(n))});C("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[j]=T(e.substr(0,n)),t[ie]=T(e.substr(n,2)),t[ve]=T(e.substr(s))});function Ao(e){return(e+"").toLowerCase().charAt(0)==="p"}var Ro=/[ap]\.?m?\.?/i,Co=at("Hours",!0);function Lo(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Ss={calendar:Di,longDateFormat:Ti,invalidDate:Ii,ordinal:xi,dayOfMonthOrdinalParse:Ni,relativeTime:Ri,months:Ki,monthsShort:ds,week:lo,weekdays:po,weekdaysMin:yo,weekdaysShort:ys,meridiemParse:Ro},F={},dt={},vt;function Po(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 Wo(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&&Po(a,n)>=r-1)break;r--}t++}return vt}function Uo(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Jt(e){var t=null,r;if(F[e]===void 0&&typeof module<"u"&&module&&module.exports&&Uo(e))try{t=vt._abbr,r=require,r("./locale/"+e),Ae(t)}catch{F[e]=null}return F[e]}function Ae(e,t){var r;return e&&(X(t)?r=De(e):r=Hr(e,t),r?vt=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),vt._abbr}function Hr(e,t){if(t!==null){var r,n=Ss;if(t.abbr=e,F[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=F[e]._config;else if(t.parentLocale!=null)if(F[t.parentLocale]!=null)n=F[t.parentLocale]._config;else if(r=Jt(t.parentLocale),r!=null)n=r._config;else return dt[t.parentLocale]||(dt[t.parentLocale]=[]),dt[t.parentLocale].push({name:e,config:t}),null;return F[e]=new xr(kr(n,t)),dt[e]&&dt[e].forEach(function(s){Hr(s.name,s.config)}),Ae(e),F[e]}else return delete F[e],null}function Fo(e,t){if(t!=null){var r,n,s=Ss;F[e]!=null&&F[e].parentLocale!=null?F[e].set(kr(F[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=F[e],F[e]=r),Ae(e)}else F[e]!=null&&(F[e].parentLocale!=null?(F[e]=F[e].parentLocale,e===Ae()&&Ae(e)):F[e]!=null&&delete F[e]);return F[e]}function De(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return vt;if(!oe(e)){if(t=Jt(e),t)return t;e=[e]}return Wo(e)}function Ho(){return Dr(F)}function jr(e){var t,r=e._a;return r&&O(e).overflow===-2&&(t=r[ge]<0||r[ge]>11?ge:r[ce]<1||r[ce]>Pr(r[B],r[ge])?ce:r[j]<0||r[j]>24||r[j]===24&&(r[ie]!==0||r[ve]!==0||r[Fe]!==0)?j:r[ie]<0||r[ie]>59?ie:r[ve]<0||r[ve]>59?ve:r[Fe]<0||r[Fe]>999?Fe:-1,O(e)._overflowDayOfYear&&(t<B||t>ce)&&(t=ce),O(e)._overflowWeeks&&t===-1&&(t=Gi),O(e)._overflowWeekday&&t===-1&&(t=Vi),O(e).overflow=t),e}var 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=/^\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=/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/]],Vo=/^\/?Date\((-?\d+)/i,Bo=/^(?:(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=jo.exec(n)||$o.exec(n),a,o,c,m,f=Nt.length,M=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=M;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(Go.exec(s[4]))m="Z";else{e._isValid=!1;return}e._f=o+(c||"")+(m||""),Gr(e)}else e._isValid=!1}function Zo(e,t,r,n,s,a){var o=[qo(e),ds.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(s,10)];return a&&o.push(parseInt(a,10)),o}function qo(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ko(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Jo(e,t,r){if(e){var n=ys.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 Qo(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=Bo.exec(Ko(e._i)),r;if(t){if(r=Zo(t[4],t[3],t[2],t[5],t[6],t[7]),!Jo(t[1],r,e))return;e._a=r,e._tzm=Qo(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 Xo(e){var t=Vo.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=ne("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 Qe(e,t,r){return e??t??r}function el(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=el(e),e._w&&e._a[ce]==null&&e._a[ge]==null&&tl(e),e._dayOfYear!=null&&(o=Qe(e._a[B],s[B]),(e._dayOfYear>_t(o)||e._dayOfYear===0)&&(O(e)._overflowDayOfYear=!0),r=yt(o,0,e._dayOfYear),e._a[ge]=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[ie]===0&&e._a[ve]===0&&e._a[Fe]===0&&(e._nextDay=!0,e._a[j]=0),e._d=(e._useUTC?yt:io).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 tl(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=Qe(t.GG,e._a[B],gt(P(),1,4).year),n=Qe(t.W,1),s=Qe(t.E,1),(s<1||s>7)&&(m=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,f=gt(P(),a,o),r=Qe(t.gg,e._a[B],f.year),n=Qe(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[B]=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,M;for(s=ss(e._f,e._locale).match(Nr)||[],M=s.length,r=0;r<M;r++)a=s[r],n=(t.match(Hi(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),et[a]?(n?O(e).empty=!1:O(e).unusedTokens.push(a),$i(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]=rl(e._locale,e._a[j],e._meridiem),f=O(e).era,f!==null&&(e._a[B]=e._locale.erasConvertYear(f,e._a[B])),$r(e),jr(e)}function rl(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 nl(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 sl(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 al(e){var t=new wt(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)),le(t)?new wt(jr(t)):(St(t)?e._d=t:oe(r)?nl(e):r?Gr(e):il(e),Ir(e)||(e._d=null),e))}function il(e){var t=e._i;X(t)?e._d=new Date(_.now()):St(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Xo(e):oe(t)?(e._a=ts(t.slice(0),function(r){return parseInt(r,10)}),$r(e)):He(t)?sl(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)||oe(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,al(a)}function P(e,t,r,n){return Ms(e,t,r,n,!1)}var ol=ne("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()}),ll=ne("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&&oe(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 ul(){var e=[].slice.call(arguments,0);return Os("isBefore",e)}function cl(){var e=[].slice.call(arguments,0);return Os("isAfter",e)}var dl=function(){return Date.now?Date.now():+new Date},ft=["year","quarter","month","week","day","hour","minute","second","millisecond"];function fl(e){var t,r=!1,n,s=ft.length;for(t in e)if(x(e,t)&&!(H.call(ft,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<s;++n)if(e[ft[n]]){if(r)return!1;parseFloat(e[ft[n]])!==T(e[ft[n]])&&(r=!0)}return!0}function hl(){return this._isValid}function ml(){return ue(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,M=t.millisecond||0;this._isValid=fl(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=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 _l(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++)T(e[o])!==T(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","");y("Z",qt);y("ZZ",qt);C(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Vr(qt,e)});var pl=/([\+\-]|\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(pl)||["-",0,0],a=+(s[1]*60)+T(s[2]),a===0?0:s[0]==="+"?a:-a)}function Br(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(le(e)||St(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,ue(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 vl(e){return this.utcOffset(0,e)}function Sl(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(br(this),"m")),this}function wl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Vr(Ui,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function kl(e){return this.isValid()?(e=e?P(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Dl(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ml(){if(!X(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()&&_l(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ol(){return this.isValid()?!this._isUTC:!1}function bl(){return this.isValid()?this._isUTC:!1}function Ts(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Tl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,El=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ue(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=Tl.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:T(n[ce])*s,h:T(n[j])*s,m:T(n[ie])*s,s:T(n[ve])*s,ms:T(Or(n[Fe]*1e3))*s}):(n=El.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=Il(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}ue.fn=Qt.prototype;ue.invalid=ml;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 Il(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=ue(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,pt(e,"Month")+o*r),a&&cs(e,"Date",pt(e,"Date")+a*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&_.updateOffset(e,a||o))}var Yl=Es(1,"add"),xl=Es(-1,"subtract");function Ys(e){return typeof e=="string"||e instanceof String}function Nl(e){return le(e)||St(e)||Ys(e)||ke(e)||Rl(e)||Al(e)||e===null||e===void 0}function Al(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 Rl(e){var t=oe(e),r=!1;return t&&(r=e.filter(function(n){return!ke(n)&&Ys(e)}).length===0),t&&r}function Cl(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 Ll(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 Pl(e,t){arguments.length===1&&(arguments[0]?Nl(arguments[0])?(e=arguments[0],t=void 0):Cl(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 Wl(){return new wt(this)}function Ul(e,t){var r=le(e)?e:P(e);return this.isValid()&&r.isValid()?(t=se(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Fl(e,t){var r=le(e)?e:P(e);return this.isValid()&&r.isValid()?(t=se(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Hl(e,t,r,n){var s=le(e)?e:P(e),a=le(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 jl(e,t){var r=le(e)?e:P(e),n;return this.isValid()&&r.isValid()?(t=se(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 $l(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Gl(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Vl(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=se(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:re(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 Bl(){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 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 ql(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=Rt(this,e);return this.localeData().postformat(t)}function Kl(e,t){return this.isValid()&&(le(e)&&e.isValid()||P(e).isValid())?ue({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Jl(e){return this.from(P(),e)}function Ql(e,t){return this.isValid()&&(le(e)&&e.isValid()||P(e).isValid())?ue({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Xl(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=ne("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,tt=60*Ut,Ft=60*tt,Rs=(365*400+97)*24*Ft;function rt(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 eu(e){var t,r;if(e=se(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-=rt(t+(this._isUTC?0:this.utcOffset()*tt),Ft);break;case"minute":t=this._d.valueOf(),t-=rt(t,tt);break;case"second":t=this._d.valueOf(),t-=rt(t,Ut);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function tu(e){var t,r;if(e=se(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-rt(t+(this._isUTC?0:this.utcOffset()*tt),Ft)-1;break;case"minute":t=this._d.valueOf(),t+=tt-rt(t,tt)-1;break;case"second":t=this._d.valueOf(),t+=Ut-rt(t,Ut)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function ru(){return this._d.valueOf()-(this._offset||0)*6e4}function nu(){return Math.floor(this.valueOf()/1e3)}function su(){return new Date(this.valueOf())}function au(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function iu(){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 ou(){return this.isValid()?this.toISOString():null}function lu(){return Ir(this)}function uu(){return xe({},O(this))}function cu(){return O(this).overflow}function du(){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");y("N",zr);y("NN",zr);y("NNN",zr);y("NNNN",ku);y("NNNNN",Du);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});y("y",nt);y("yy",nt);y("yyy",nt);y("yyyy",nt);y("yo",Mu);C(["y","yy","yyy","yyyy"],B);C(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[B]=r._locale.eraYearOrdinalParse(e,s):t[B]=parseInt(e,10)});function fu(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 hu(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 mu(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 _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].name;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].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 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 vu(e){return x(this,"_erasNameRegex")||Zr.call(this),e?this._erasNameRegex:this._erasRegex}function Su(e){return x(this,"_erasAbbrRegex")||Zr.call(this),e?this._erasAbbrRegex:this._erasRegex}function wu(e){return x(this,"_erasNarrowRegex")||Zr.call(this),e?this._erasNarrowRegex:this._erasRegex}function zr(e,t){return t.erasAbbrRegex(e)}function ku(e,t){return t.erasNameRegex(e)}function Du(e,t){return t.erasNarrowRegex(e)}function Mu(e,t){return t._eraYearOrdinalRegex||nt}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");y("G",Zt);y("g",Zt);y("GG",W,te);y("gg",W,te);y("GGGG",Cr,Rr);y("gggg",Cr,Rr);y("GGGGG",zt,Vt);y("ggggg",zt,Vt);Dt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=T(e)});Dt(["gg","GG"],function(e,t,r,n){t[n]=_.parseTwoDigitYear(e)});function Ou(e){return Ps.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function bu(e){return Ps.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Tu(){return we(this.year(),1,4)}function Eu(){return we(this.isoWeekYear(),1,4)}function Iu(){var e=this.localeData()._week;return we(this.year(),e.dow,e.doy)}function Yu(){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?gt(this,n,s).year:(a=we(e,n,s),t>a&&(t=a),xu.call(this,e,t,r,n,s))}function xu(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");y("Q",as);C("Q",function(e,t){t[ge]=(T(e)-1)*3});function Nu(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}k("D",["DD",2],"Do","date");y("D",W,st);y("DD",W,te);y("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});C(["D","DD"],ce);C("Do",function(e,t){t[ce]=T(e.match(W)[0])});var Ws=at("Date",!0);k("DDD",["DDDD",3],"DDDo","dayOfYear");y("DDD",Bt);y("DDDD",is);C(["DDD","DDDD"],function(e,t,r){r._dayOfYear=T(e)});function Au(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");y("m",W,Lr);y("mm",W,te);C(["m","mm"],ie);var Ru=at("Minutes",!1);k("s",["ss",2],0,"second");y("s",W,Lr);y("ss",W,te);C(["s","ss"],ve);var Cu=at("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});y("S",Bt,as);y("SS",Bt,te);y("SSS",Bt,is);var Ne,Us;for(Ne="SSSS";Ne.length<=9;Ne+="S")y(Ne,nt);function Lu(e,t){t[Fe]=T(("0."+e)*1e3)}for(Ne="S";Ne.length<=9;Ne+="S")C(Ne,Lu);Us=at("Milliseconds",!1);k("z",0,0,"zoneAbbr");k("zz",0,0,"zoneName");function Pu(){return this._isUTC?"UTC":""}function Wu(){return this._isUTC?"Coordinated Universal Time":""}var h=wt.prototype;h.add=Yl;h.calendar=Pl;h.clone=Wl;h.diff=Vl;h.endOf=tu;h.format=ql;h.from=Kl;h.fromNow=Jl;h.to=Ql;h.toNow=Xl;h.get=zi;h.invalidAt=cu;h.isAfter=Ul;h.isBefore=Fl;h.isBetween=Hl;h.isSame=jl;h.isSameOrAfter=$l;h.isSameOrBefore=Gl;h.isValid=lu;h.lang=Ns;h.locale=xs;h.localeData=As;h.max=ll;h.min=ol;h.parsingFlags=uu;h.set=Zi;h.startOf=eu;h.subtract=xl;h.toArray=au;h.toObject=iu;h.toDate=su;h.toISOString=zl;h.inspect=Zl;typeof Symbol<"u"&&Symbol.for!=null&&(h[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});h.toJSON=ou;h.toString=Bl;h.unix=nu;h.valueOf=ru;h.creationData=du;h.eraName=_u;h.eraNarrow=pu;h.eraAbbr=yu;h.eraYear=gu;h.year=us;h.isLeapYear=Bi;h.weekYear=Ou;h.isoWeekYear=bu;h.quarter=h.quarters=Nu;h.month=ms;h.daysInMonth=no;h.week=h.weeks=fo;h.isoWeek=h.isoWeeks=ho;h.weeksInYear=Iu;h.weeksInWeekYear=Yu;h.isoWeeksInYear=Tu;h.isoWeeksInISOWeekYear=Eu;h.date=Ws;h.day=h.days=bo;h.weekday=To;h.isoWeekday=Eo;h.dayOfYear=Au;h.hour=h.hours=Co;h.minute=h.minutes=Ru;h.second=h.seconds=Cu;h.millisecond=h.milliseconds=Us;h.utcOffset=yl;h.utc=vl;h.local=Sl;h.parseZone=wl;h.hasAlignedHourOffset=kl;h.isDST=Dl;h.isLocal=Ol;h.isUtcOffset=bl;h.isUtc=Ts;h.isUTC=Ts;h.zoneAbbr=Pu;h.zoneName=Wu;h.dates=ne("dates accessor is deprecated. Use date instead.",Ws);h.months=ne("months accessor is deprecated. Use month instead",ms);h.years=ne("years accessor is deprecated. Use year instead",us);h.zone=ne("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gl);h.isDSTShifted=ne("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ml);function Uu(e){return P(e*1e3)}function Fu(){return P.apply(null,arguments).parseZone()}function Fs(e){return e}var N=xr.prototype;N.calendar=Mi;N.longDateFormat=Ei;N.invalidDate=Yi;N.ordinal=Ai;N.preparse=Fs;N.postformat=Fs;N.relativeTime=Ci;N.pastFuture=Li;N.set=ki;N.eras=fu;N.erasParse=hu;N.erasConvertYear=mu;N.erasAbbrRegex=Su;N.erasNameRegex=vu;N.erasNarrowRegex=wu;N.months=Xi;N.monthsShort=eo;N.monthsParse=ro;N.monthsRegex=ao;N.monthsShortRegex=so;N.week=oo;N.firstDayOfYear=co;N.firstDayOfWeek=uo;N.weekdays=wo;N.weekdaysMin=Do;N.weekdaysShort=ko;N.weekdaysParse=Oo;N.weekdaysRegex=Io;N.weekdaysShortRegex=Yo;N.weekdaysMinRegex=xo;N.isPM=Ao;N.meridiem=Lo;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 Hu(e,t){return Hs(e,t,"months")}function ju(e,t){return Hs(e,t,"monthsShort")}function $u(e,t,r){return qr(e,t,r,"weekdays")}function Gu(e,t,r){return qr(e,t,r,"weekdaysShort")}function Vu(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=T(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});_.lang=ne("moment.lang is deprecated. Use moment.locale instead.",Ae);_.langData=ne("moment.langData is deprecated. Use moment.localeData instead.",De);var pe=Math.abs;function Bu(){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=ue(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 Zu(e,t){return js(this,e,t,-1)}function Cn(e){return e<0?Math.floor(e):Math.ceil(e)}function qu(){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=re(e/1e3),n.seconds=s%60,a=re(s/60),n.minutes=a%60,o=re(a/60),n.hours=o%24,t+=re(o/24),m=re($s(t)),r+=m,t-=Cn(Tr(m)),c=re(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 Ku(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=se(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"),Ju=Me("s"),Qu=Me("m"),Xu=Me("h"),ec=Me("d"),tc=Me("w"),rc=Me("M"),nc=Me("Q"),sc=Me("y"),ac=Gs;function ic(){return ue(this)}function oc(e){return e=se(e),this.isValid()?this[e+"s"]():NaN}function je(e){return function(){return this.isValid()?this._data[e]:NaN}}var lc=je("milliseconds"),uc=je("seconds"),cc=je("minutes"),dc=je("hours"),fc=je("days"),hc=je("months"),mc=je("years");function _c(){return re(this.days()/7)}var ye=Math.round,Xe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function pc(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function yc(e,t,r,n){var s=ue(e).abs(),a=ye(s.as("s")),o=ye(s.as("m")),c=ye(s.as("h")),m=ye(s.as("d")),f=ye(s.as("M")),M=ye(s.as("w")),b=ye(s.as("y")),E=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&&(E=E||M<=1&&["w"]||M<r.w&&["ww",M]),E=E||f<=1&&["M"]||f<r.M&&["MM",f]||b<=1&&["y"]||["yy",b],E[2]=t,E[3]=+e>0,E[4]=n,pc.apply(null,E)}function gc(e){return e===void 0?ye:typeof e=="function"?(ye=e,!0):!1}function vc(e,t){return Xe[e]===void 0?!1:t===void 0?Xe[e]:(Xe[e]=t,e==="s"&&(Xe.ss=t-1),!0)}function Sc(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Xe,s,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Xe,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 yr=Math.abs;function Je(e){return(e>0)-(e<0)||+e}function er(){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,b;return c?(n=re(e/60),s=re(n/60),e%=60,n%=60,a=re(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",m=c<0?"-":"",f=Je(this._months)!==Je(c)?"-":"",M=Je(this._days)!==Je(c)?"-":"",b=Je(this._milliseconds)!==Je(c)?"-":"",m+"P"+(a?f+a+"Y":"")+(r?f+r+"M":"")+(t?M+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=hl;Y.abs=Bu;Y.add=zu;Y.subtract=Zu;Y.as=Ku;Y.asMilliseconds=Gs;Y.asSeconds=Ju;Y.asMinutes=Qu;Y.asHours=Xu;Y.asDays=ec;Y.asWeeks=tc;Y.asMonths=rc;Y.asQuarters=nc;Y.asYears=sc;Y.valueOf=ac;Y._bubble=qu;Y.clone=ic;Y.get=oc;Y.milliseconds=lc;Y.seconds=uc;Y.minutes=cc;Y.hours=dc;Y.days=fc;Y.weeks=_c;Y.months=hc;Y.years=mc;Y.humanize=Sc;Y.toISOString=er;Y.toString=er;Y.toJSON=er;Y.locale=xs;Y.localeData=As;Y.toIsoString=ne("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er);Y.lang=Ns;k("X",0,0,"unix");k("x",0,0,"valueOf");y("x",Zt);y("X",Fi);C("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});C("x",function(e,t,r){r._d=new Date(T(e))});//! moment.js
|
|
10
|
+
_.version="2.30.1";Si(P);_.fn=h;_.min=ul;_.max=cl;_.now=dl;_.utc=fe;_.unix=Uu;_.months=Hu;_.isDate=St;_.locale=Ae;_.invalid=Gt;_.duration=ue;_.isMoment=le;_.weekdays=$u;_.parseZone=Fu;_.localeData=De;_.isDuration=Ct;_.monthsShort=ju;_.weekdaysMin=Vu;_.defineLocale=Hr;_.updateLocale=Fo;_.locales=Ho;_.weekdaysShort=Gu;_.normalizeUnits=se;_.relativeTimeRounding=gc;_.relativeTimeThreshold=vc;_.calendarFormat=Ll;_.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 wc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,kc=/(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,gr=[/^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:wc,monthsShortStrictRegex:kc,monthsParse:gr,longMonthsParse:gr,shortMonthsParse:gr,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 ee;(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"})(ee||(ee={}));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 Dc=["id"],Mc=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 ee.RELOAD:sessionStorage.setItem("shouldNotifyReload","1"),sessionStorage.setItem("replyOrigin",a.origin),window.location.reload();break;case ee.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(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:ee.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 ee.DESELECT_ALL_SECTIONS:n();break;case ee.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 ee.SEND_BASE_SECTION_SETTINGS:break;case ee.SEND_BASE_SECTION_DATA:break;case ee.SEND_SECTION_SETTINGS:break;case ee.SEND_SECTION_DATA:break;case ee.SEND_PAGE_SECTIONS:break}};if(window.addEventListener("message",s),sessionStorage.getItem("shouldNotifyReload")==="1"){const a=sessionStorage.getItem("replyOrigin")||"*";window.parent.postMessage({type:ee.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,Dc))),128))}}),Vs=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Bs=Vs(Mc,[["__scopeId","data-v-9e4f90fa"]]),Oc=["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,Oc))}}),bc=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(bc,[["__scopeId","data-v-30b5e62e"]]),Zs=Symbol("Props"),qs=Symbol("Config"),Ks=Symbol("Router"),Js=Symbol("ResolveSections"),vr=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&&vr.has(s)&&r in vr.get(s)?vr.get(s)[r]:l.inject(...e)},Ec=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ic=Object.prototype.toString,Yc=e=>Ic.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 xc(e,t,r){return l.watch(e,t,{...r,immediate:!0})}const Qs=Ec?window:void 0;function Nc(e){var t;const r=l.toValue(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function Ac(...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 xc(()=>{var n,s;return[(n=(s=r.value)===null||s===void 0?void 0:s.map(a=>Nc(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=Yc(o)?{...o}:o,M=n.flatMap(b=>s.flatMap(E=>a.map(A=>t(b,E,A,f))));m(()=>{M.forEach(b=>b())})},{flush:"post"})}function Rc(){const e=l.shallowRef(!1),t=l.getCurrentInstance();return t&&l.onMounted(()=>{e.value=!0},t),e}function Cc(e){const t=Rc();return l.computed(()=>(t.value,!!e()))}const Lc=Symbol("vueuse-ssr-width");function Pc(){const e=l.hasInjectionContext()?Tc(Lc,null):null;return typeof e=="number"?e:void 0}function ht(e,t={}){const{window:r=Qs,ssrWidth:n=Pc()}=t,s=Cc(()=>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"),b=f.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),E=f.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let A=!!(b||E);return b&&A&&(A=n>=Kn(b[1])),E&&A&&(A=n<=Kn(E[1])),M?!A:A});return}s.value&&(o.value=r.matchMedia(l.toValue(e)),c.value=o.value.matches)}),Ac(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||vi());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,M,b)=>{let E=!1,A=null,$=null;try{const Z=t;Z.Authorization=`Bearer ${M}`,A=await axios.request({method:f.method||"get",params:f.params||{},data:f.data||{},url:f.url||"/",baseURL:e,headers:Z}),E=!0}catch(Z){$=Z,E=!1,Z.response&&Z.response.status==401&&b?.()}return{success:E,failure:!E,result:A?A.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}},Qr=()=>{const e=Xn.usePage(),t=l.inject(Ks),{request:r}=tr(),{apiBaseUrl:n,langKey:s}=Jr(),a=l.computed(()=>e.url),o=D=>In(D)?D:`${n}/${gi(D)}`,c=D=>D?In(D)?D:`${n}/storage/${D}`:"",m=async(D,U="original")=>{const L=["small","medium","large"],q=D.split("/").pop();let z=!1;for(let K=0;K<L.length;K++)if(L[K]===U&&(z=!0),z)try{const ae=c(`thumbnails/${L[K]}/${q}`);if((await axios.head(ae)).status===200)return ae}catch{}return c(D)},f=(D,U)=>{let L;try{L=JSON.parse(D)}catch{L={}}return L&&(L[U.toUpperCase()]||L[U]||L.en)||""},M=(D,U)=>f(D,U),b=(D,U)=>{if(!D)return"";let L=f(D,U).replace(new RegExp("{{BASE_URL}}article","g"),`${n}/article`).replace(new RegExp("{{BASE_URL}}","g"),`${n}/storage`);const q=L.match(/\[audio\](.*?)\[\/?audio\]/g),z=L.match(/\[video\](.*?)\[\/?video\]/g);return q?.forEach(K=>{const ae=K.replace(/\[\/?audio\]/g,"");L=L.replace(K,`<br><p><audio preload="all" controls style="width: 100%"><source src="${c(ae)}"></audio></p><br>`)}),z?.forEach(K=>{const ae=K.replace(/\[\/?video\]/g,"");L=L.replace(K,`<br><p><video controls style="width: 100%"><source src="${c(ae)}"></video></p><br>`)}),L},E=(D,U)=>b(D,U),A=ht("(min-width: 1536px)"),$=ht("(min-width: 1280px) and (max-width: 1535px)"),Z=ht("(min-width: 1024px) and (max-width: 1279px)"),$e=ht("(min-width: 768px) and (max-width: 1023px)"),Oe=ht("(max-width: 767px)"),be=[{label:"French",value:"fr",flag:"flag:fr-1x1"},{label:"English",value:"en",flag:"flag:gb-1x1"}];return{is2XlScreen:A,isXlScreen:$,isLgScreen:Z,isMdScreen:$e,isSmScreen:Oe,getTranslation:f,getLangageLabel:D=>be.find(U=>U.value==D)?.label,getLanguageValue:D=>be.find(U=>U.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,U)=>{if(D)for(const[L,q]of Object.entries(D))for(const z of q)U(z)},resolveHtmlLinks:b,resolveUrl:o,updateLang:async(D,U=!0,L=!0)=>{if(localStorage.setItem(s,D),e.props.isUserLoggedIn&&L){const q=e.props.userData?.preferences||{inAppNotifEnabled:jt.TRUE,emailNotifEnabled:jt.TRUE,locale:D};q.locale=D,await r({url:`/users/self/${e.props.userData?.id}`,method:"put",data:{preferences:q}})}U&&location.reload()},languages:be,getImage:m,fileUrl:c,currentRoutePath:a,openLink:D=>{_v.isURL(D)?window.open(D,"_blank"):t?.get(D)},openMenu:D=>{switch(D?.targetType){case $t.EXTERNAL_LINK:window.open(D?.url??"#");break;case $t.PAGE_LINK:t?.get(D?.path??"/");break}},getMenuHref:D=>D?.targetType==="external-link"?D?.url||"":D?.path||"",rHtml:E,tr:M}},Wc=["src"],Xs=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,...M}=t;return M});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,Wc)):(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"]))}}}),ea=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)}}),Uc=["innerHTML"],Fc=["href"],Hc=["href"],ta=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,Uc),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,Fc),[[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,Hc),[[l.vShow,l.unref(r)]])],512),[[l.vShow,t.text.length>t.maxChars]])]))}}),ra=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",E),b()}),l.onActivated(()=>{b()}),l.onUnmounted(()=>{window.removeEventListener("scroll",b),window.removeEventListener("resize",E)});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},b=()=>{const A=r.value?.getBoundingClientRect().width;if(a.value=A||"auto",(r.value?.getBoundingClientRect().bottom||0)>t.bottom){m();return}f()},E=()=>{c.value&&(a.value=r.value?.getBoundingClientRect().width+"px")};return(A,$)=>(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(A.$slots,"default",{},()=>[$[0]||($[0]=l.createElementVNode("div",null,"Sticky Bottom",-1))])],6)],4))}}),na=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",E)}),l.onActivated(()=>{b()}),l.onUnmounted(()=>{window.removeEventListener("scroll",b),window.removeEventListener("resize",E)});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},b=()=>{const A=r.value?.getBoundingClientRect().width;if(a.value=A||"auto",(r.value?.getBoundingClientRect().top||0)<t.top){m();return}f()},E=()=>{c.value&&(a.value=r.value?.getBoundingClientRect().width+"px")};return(A,$)=>(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(A.$slots,"default",{},()=>[$[0]||($[0]=l.createElementVNode("div",null,"Sticky Top",-1))])],6)],4))}});class jc{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 $c=()=>{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 Gc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mt={exports:{}};mt.exports;var Jn;function Vc(){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]",b="[object GeneratorFunction]",E="[object Map]",A="[object Number]",$="[object Object]",Z="[object Promise]",$e="[object RegExp]",Oe="[object Set]",be="[object String]",it="[object Symbol]",Re="[object WeakMap]",ot="[object ArrayBuffer]",Ce="[object DataView]",Ge="[object Float32Array]",Ve="[object Float64Array]",Te="[object Int8Array]",lt="[object Int16Array]",Ee="[object Int32Array]",D="[object Uint8Array]",U="[object Uint8ClampedArray]",L="[object Uint16Array]",q="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,ae=/^\[object .+?Constructor\]$/,Mt=/^(?:0|[1-9]\d*)$/,R={};R[a]=R[o]=R[ot]=R[Ce]=R[c]=R[m]=R[Ge]=R[Ve]=R[Te]=R[lt]=R[Ee]=R[E]=R[A]=R[$]=R[$e]=R[Oe]=R[be]=R[it]=R[D]=R[U]=R[L]=R[q]=!0,R[f]=R[M]=R[Re]=!1;var Xr=typeof At=="object"&&At&&At.Object===Object&&At,g=typeof self=="object"&&self&&self.Object===Object&&self,v=Xr||g||Function("return this")(),S=t&&!t.nodeType&&t,p=S&&!0&&e&&!e.nodeType&&e,I=p&&p.exports===S;function V(i,u){return i.set(u[0],u[1]),i}function Be(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,G=i.length;++d<w;)i[G+d]=u[d];return i}function en(i,u,d,w){for(var G=-1,J=i?i.length:0;++G<J;)d=u(d,i[G],G,i);return d}function sa(i,u){for(var d=-1,w=Array(i);++d<i;)w[d]=u(d);return w}function aa(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,G){d[++u]=[G,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 ia=Array.prototype,oa=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=oa.toString,Ye=Ot.hasOwnProperty,bt=Ot.toString,la=RegExp("^"+an.call(Ye).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),on=I?v.Buffer:void 0,ln=v.Symbol,un=v.Uint8Array,ua=nr(Object.getPrototypeOf,Object),ca=Object.create,da=Ot.propertyIsEnumerable,fa=ia.splice,cn=Object.getOwnPropertySymbols,ha=on?on.isBuffer:void 0,ma=nr(Object.keys,Object),ar=qe(v,"DataView"),ut=qe(v,"Map"),ir=qe(v,"Promise"),or=qe(v,"Set"),lr=qe(v,"WeakMap"),ct=qe(Object,"create"),_a=We(ar),pa=We(ut),ya=We(ir),ga=We(or),va=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 Sa(){this.__data__=ct?ct(null):{}}function wa(i){return this.has(i)&&delete this.__data__[i]}function ka(i){var u=this.__data__;if(ct){var d=u[i];return d===n?void 0:d}return Ye.call(u,i)?u[i]:void 0}function Da(i){var u=this.__data__;return ct?u[i]!==void 0:Ye.call(u,i)}function Ma(i,u){var d=this.__data__;return d[i]=ct&&u===void 0?n:u,this}Le.prototype.clear=Sa,Le.prototype.delete=wa,Le.prototype.get=ka,Le.prototype.has=Da,Le.prototype.set=Ma;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 Oa(){this.__data__=[]}function ba(i){var u=this.__data__,d=Tt(u,i);if(d<0)return!1;var w=u.length-1;return d==w?u.pop():fa.call(u,d,1),!0}function Ta(i){var u=this.__data__,d=Tt(u,i);return d<0?void 0:u[d][1]}function Ea(i){return Tt(this.__data__,i)>-1}function Ia(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=Oa,me.prototype.delete=ba,me.prototype.get=Ta,me.prototype.has=Ea,me.prototype.set=Ia;function ze(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 Ya(){this.__data__={hash:new Le,map:new(ut||me),string:new Le}}function xa(i){return Et(this,i).delete(i)}function Na(i){return Et(this,i).get(i)}function Aa(i){return Et(this,i).has(i)}function Ra(i,u){return Et(this,i).set(i,u),this}ze.prototype.clear=Ya,ze.prototype.delete=xa,ze.prototype.get=Na,ze.prototype.has=Aa,ze.prototype.set=Ra;function Ze(i){this.__data__=new me(i)}function Ca(){this.__data__=new me}function La(i){return this.__data__.delete(i)}function Pa(i){return this.__data__.get(i)}function Wa(i){return this.__data__.has(i)}function Ua(i,u){var d=this.__data__;if(d instanceof me){var w=d.__data__;if(!ut||w.length<r-1)return w.push([i,u]),this;d=this.__data__=new ze(w)}return d.set(i,u),this}Ze.prototype.clear=Ca,Ze.prototype.delete=La,Ze.prototype.get=Pa,Ze.prototype.has=Wa,Ze.prototype.set=Ua;function Fa(i,u){var d=dr(i)||ci(i)?sa(i.length,String):[],w=d.length,G=!!w;for(var J in i)Ye.call(i,J)&&!(G&&(J=="length"||ii(J,w)))&&d.push(J);return d}function hn(i,u,d){var w=i[u];(!(Ye.call(i,u)&&yn(w,d))||d===void 0&&!(u in i))&&(i[u]=d)}function Tt(i,u){for(var d=i.length;d--;)if(yn(i[d][0],u))return d;return-1}function Ha(i,u){return i&&mn(u,fr(u),i)}function ur(i,u,d,w,G,J,_e){var Q;if(w&&(Q=J?w(i,G,J,_e):w(i)),Q!==void 0)return Q;if(!It(i))return i;var Sn=dr(i);if(Sn){if(Q=ni(i),!u)return ei(i,Q)}else{var Ke=Pe(i),wn=Ke==M||Ke==b;if(fi(i))return za(i,u);if(Ke==$||Ke==a||wn&&!J){if(tn(i))return J?i:{};if(Q=si(wn?{}:i),!u)return ti(i,Ha(Q,i))}else{if(!R[Ke])return J?i:{};Q=ai(i,Ke,ur,u)}}_e||(_e=new Ze);var kn=_e.get(i);if(kn)return kn;if(_e.set(i,Q),!Sn)var Dn=d?ri(i):fr(i);return Ie(Dn||i,function(hr,Yt){Dn&&(Yt=hr,hr=i[Yt]),hn(Q,Yt,ur(hr,u,d,w,Yt,i,_e))}),Q}function ja(i){return It(i)?ca(i):{}}function $a(i,u,d){var w=u(i);return dr(i)?w:rr(w,d(i))}function Ga(i){return bt.call(i)}function Va(i){if(!It(i)||li(i))return!1;var u=vn(i)||tn(i)?la:ae;return u.test(We(i))}function Ba(i){if(!pn(i))return ma(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 Za(i,u){var d=u?cr(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function qa(i,u,d){var w=u?d(rn(i),!0):rn(i);return en(w,V,new i.constructor)}function Ka(i){var u=new i.constructor(i.source,K.exec(i));return u.lastIndex=i.lastIndex,u}function Ja(i,u,d){var w=u?d(nn(i),!0):nn(i);return en(w,Be,new i.constructor)}function Qa(i){return fn?Object(fn.call(i)):{}}function Xa(i,u){var d=u?cr(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function ei(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 G=-1,J=u.length;++G<J;){var _e=u[G],Q=void 0;hn(d,_e,Q===void 0?i[_e]:Q)}return d}function ti(i,u){return mn(i,_n(i),u)}function ri(i){return $a(i,fr,_n)}function Et(i,u){var d=i.__data__;return oi(u)?d[typeof u=="string"?"string":"hash"]:d.map}function qe(i,u){var d=aa(i,u);return Va(d)?d:void 0}var _n=cn?nr(cn,Object):_i,Pe=Ga;(ar&&Pe(new ar(new ArrayBuffer(1)))!=Ce||ut&&Pe(new ut)!=E||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 _a:return Ce;case pa:return E;case ya:return Z;case ga:return Oe;case va:return Re}return u});function ni(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 si(i){return typeof i.constructor=="function"&&!pn(i)?ja(ua(i)):{}}function ai(i,u,d,w){var G=i.constructor;switch(u){case ot:return cr(i);case c:case m:return new G(+i);case Ce:return Za(i,w);case Ge:case Ve:case Te:case lt:case Ee:case D:case U:case L:case q:return Xa(i,w);case E:return qa(i,w,d);case A:case be:return new G(i);case $e:return Ka(i);case Oe:return Ja(i,w,d);case it:return Qa(i)}}function ii(i,u){return u=u??s,!!u&&(typeof i=="number"||Mt.test(i))&&i>-1&&i%1==0&&i<u}function oi(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function li(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 ui(i){return ur(i,!0,!0)}function yn(i,u){return i===u||i!==i&&u!==u}function ci(i){return di(i)&&Ye.call(i,"callee")&&(!da.call(i,"callee")||bt.call(i)==a)}var dr=Array.isArray;function gn(i){return i!=null&&hi(i.length)&&!vn(i)}function di(i){return mi(i)&&gn(i)}var fi=ha||pi;function vn(i){var u=It(i)?bt.call(i):"";return u==M||u==b}function hi(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 mi(i){return!!i&&typeof i=="object"}function fr(i){return gn(i)?Fa(i):Ba(i)}function _i(){return[]}function pi(){return!1}e.exports=ui}(mt,mt.exports)),mt.exports}var Bc=Vc();const Qn=Gc(Bc),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),M=g=>{if(!g)return null;const v=g.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=g=>M(g)?.index,E=g=>{if(!g)return null;const v=g.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},A=(g,v)=>E(g)?.[v],$=(g,v,S)=>A(g,v)?.[S],Z=()=>{const g=s?.sections,v=s?.sectionsOrder,S=[];if(Array.isArray(g)&&Array.isArray(v)){for(const p of v)if(p){const I=g.find(V=>`${V.slug}__${V.pivot?.linkId}`===p);I&&S.push(I)}}return S.length?S:g||[]},$e=()=>{const g=Z(),v=s?.sectionsDisabled;return g.filter(S=>!v?.includes(`${S.slug}__${S.pivot?.linkId}`))},Oe=async(g,v,S="default")=>{const p=await e({url:`section-data/${g}/source/${v}/link/${S}`});return p.success&&p.result?p.result.data:null},be=()=>{const g={};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 V=S.split("/"),Be=V[V.length-1]?.split(".")[0];g[Be]=I.default}return g},it=g=>r.props?.contentModels?.find(v=>v.name===g),Re=g=>{const{index:v,...S}=g.contentModelData;return{...g,data:{...g.contentModelData?.index,...S}}},ot=async(g,v=!0)=>{const S=await e({url:`content-model/items?contentModelName=${g}${v?"&isActive=true":""}`});return S.success&&S.result?(S.result.data||[]).map(p=>Re(p)):[]},Ce=async(g,v,S=!0)=>{const p=await e({url:`content-model/items?pageSize=${v}&contentModelName=${g}${S?"&isActive=true":""}`});if(p.success&&p.result){const I=(p.result.data?.items||[]).map(Ie=>Re(Ie)),V=p.result.data?.meta?.total||0,Be=p.result.data?.meta?.currentPage||1;return{items:I,total:V,currentPage:Be}}return{items:[],total:0,currentPage:1}},Ge=(g,v=!0)=>{const S=r.props?.menus?.find(p=>p.name===g);return S&&(S.items=Qn(S.items?.filter(p=>!v||p.isActive)?.sort((p,I)=>p.position-I.position))),S},Ve=(g,v=!0)=>{const S=r.props?.menus?.find(p=>p.location?.name===g);return S&&(S.items=Qn(S.items?.filter(p=>!v||p.isActive)?.sort((p,I)=>p.position-I.position))),S},Te=(g,v=!0)=>Ge(g)?.items?.filter(S=>!v||S.isVisible)?.sort((S,p)=>S.position-p.position),lt=g=>{const v=[];return(r.props?.menus||[]).forEach(p=>{Array.isArray(p.items)&&v.push(...p.items)}),v.find(p=>p.id===g)},Ee=(g,v=!0)=>Ve(g)?.items?.filter(S=>!v||S.isVisible)?.sort((S,p)=>S.position-p.position),D=(g,v=!1,S=!0)=>{const p=[],I=v?Ee(g,S):Te(g,S);if(I){for(const V of I)if(!p.find(Ie=>Ie.id===V.menuItemGroupId)){const Ie=r.props?.menuItemGroups?.find(rr=>rr.id===V.menuItemGroupId);Ie&&p.push(Ie)}}return p},U=(g,v,S=!1,p=!0)=>(S?Ee(g,p):Te(g,p))?.filter(V=>V.menuItemGroupId===v),L=(g,v=!1,S=!0)=>D(g,v).map(I=>({group:I,items:U(g,I.id||0,v,S)})),q=(g,v=!1,S=!0)=>(v?Ee(g,S):Te(g,S))?.filter(I=>!I.menuItemGroupId),z=(g,v="string")=>{const p=r.props.appInformation.find(V=>V.key===g);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},K=l.computed(()=>z("primaryColor")||void 0),ae=l.computed(()=>z("secondaryColor")||void 0),Mt=l.computed(()=>z("accentColor")||void 0),R=l.computed(()=>{const g=z("icon");return t(g)||""});return{logo:l.computed(()=>{const g=z("logo");return t(g)||""}),icon:R,page:r,pageData:s,newsArticle:a,newsCategory:o,newsTag:c,contentModelItem:m,getProps:n,getMenu:Ge,getMenuByLocation:Ve,getMenuItems:Te,getMenuItemById:lt,getMenuItemsByLocation:Ee,getMenuGroups:D,getMenuItemsByGroup:U,getMenuGroupedItems:L,getMenuUngroupedItems:q,getSectionData:M,getSectionSettings:E,getSectionSettingsGroup:A,getSectionSetting:$,getAnySectionData:Oe,getSectionsInOrder:Z,getFinalPageSections:$e,getSectionRootData:b,getComponents:be,getContentModel:it,getContentModelItems:ot,getPaginatedContentModelItems:Ce,getAppInformationValue:z,appAccentColor:Mt,appPrimaryColor:K,appSecondaryColor:ae}},Zc=()=>{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}},qc={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 jc(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",ea),e.component("StickyBottom",ra),e.component("StickyTop",na),e.component("ReadMore",ta),e.component("AsyncImg",Kr),e.component("Image",Xs)}};exports.AsyncImg=Kr;exports.CustomTransition=zs;exports.Image=Xs;exports.MountedTeleport=ea;exports.ReadMore=ta;exports.RootContainer=Bs;exports.StickyBottom=ra;exports.StickyTop=na;exports.default=qc;exports.useApi=tr;exports.useConfig=Jr;exports.useContent=zc;exports.useHelper=Qr;exports.useNewsletter=Zc;exports.useProps=$c;
|