mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-12-18 08:28:58 +00:00
12 lines
74 KiB
JavaScript
12 lines
74 KiB
JavaScript
var Zs=Object.defineProperty;var Bs=(e,t,s)=>t in e?Zs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var S=(e,t,s)=>(Bs(e,typeof t!="symbol"?t+"":t,s),s);function wo(){import("data:text/javascript,")}const qs=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function s(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerpolicy&&(i.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?i.credentials="include":n.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=s(n);fetch(n.href,i)}};qs();const Qs="modulepreload",Js=function(e){return"/static/vue3/runtime/playground/"+e},Wt={},Rt=function(t,s,r){return!s||s.length===0?t():Promise.all(s.map(n=>{if(n=Js(n),n in Wt)return;Wt[n]=!0;const i=n.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${a}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":Qs,i||(o.as="script",o.crossOrigin=""),o.href=n,document.head.appendChild(o),i)return new Promise((u,c)=>{o.addEventListener("load",u),o.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())};var He={exports:{}},fe=typeof Reflect=="object"?Reflect:null,Ct=fe&&typeof fe.apply=="function"?fe.apply:function(t,s,r){return Function.prototype.apply.call(t,s,r)},Ee;fe&&typeof fe.ownKeys=="function"?Ee=fe.ownKeys:Object.getOwnPropertySymbols?Ee=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Ee=function(t){return Object.getOwnPropertyNames(t)};function Ks(e){console&&console.warn&&console.warn(e)}var $t=Number.isNaN||function(t){return t!==t};function w(){w.init.call(this)}He.exports=w;He.exports.once=sr;w.EventEmitter=w;w.prototype._events=void 0;w.prototype._eventsCount=0;w.prototype._maxListeners=void 0;var Ft=10;function Ve(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(w,"defaultMaxListeners",{enumerable:!0,get:function(){return Ft},set:function(e){if(typeof e!="number"||e<0||$t(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Ft=e}});w.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};w.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||$t(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function zt(e){return e._maxListeners===void 0?w.defaultMaxListeners:e._maxListeners}w.prototype.getMaxListeners=function(){return zt(this)};w.prototype.emit=function(t){for(var s=[],r=1;r<arguments.length;r++)s.push(arguments[r]);var n=t==="error",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){var a;if(s.length>0&&(a=s[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var u=i[t];if(u===void 0)return!1;if(typeof u=="function")Ct(u,this,s);else for(var c=u.length,v=Jt(u,c),r=0;r<c;++r)Ct(v[r],this,s);return!0};function Zt(e,t,s,r){var n,i,a;if(Ve(s),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,s.listener?s.listener:s),i=e._events),a=i[t]),a===void 0)a=i[t]=s,++e._eventsCount;else if(typeof a=="function"?a=i[t]=r?[s,a]:[a,s]:r?a.unshift(s):a.push(s),n=zt(e),n>0&&a.length>n&&!a.warned){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=a.length,Ks(o)}return e}w.prototype.addListener=function(t,s){return Zt(this,t,s,!1)};w.prototype.on=w.prototype.addListener;w.prototype.prependListener=function(t,s){return Zt(this,t,s,!0)};function Xs(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Bt(e,t,s){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:s},n=Xs.bind(r);return n.listener=s,r.wrapFn=n,n}w.prototype.once=function(t,s){return Ve(s),this.on(t,Bt(this,t,s)),this};w.prototype.prependOnceListener=function(t,s){return Ve(s),this.prependListener(t,Bt(this,t,s)),this};w.prototype.removeListener=function(t,s){var r,n,i,a,o;if(Ve(s),n=this._events,n===void 0)return this;if(r=n[t],r===void 0)return this;if(r===s||r.listener===s)--this._eventsCount===0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||s));else if(typeof r!="function"){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===s||r[a].listener===s){o=r[a].listener,i=a;break}if(i<0)return this;i===0?r.shift():er(r,i),r.length===1&&(n[t]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",t,o||s)}return this};w.prototype.off=w.prototype.removeListener;w.prototype.removeAllListeners=function(t){var s,r,n;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),a;for(n=0;n<i.length;++n)a=i[n],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(s=r[t],typeof s=="function")this.removeListener(t,s);else if(s!==void 0)for(n=s.length-1;n>=0;n--)this.removeListener(t,s[n]);return this};function qt(e,t,s){var r=e._events;if(r===void 0)return[];var n=r[t];return n===void 0?[]:typeof n=="function"?s?[n.listener||n]:[n]:s?tr(n):Jt(n,n.length)}w.prototype.listeners=function(t){return qt(this,t,!0)};w.prototype.rawListeners=function(t){return qt(this,t,!1)};w.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Qt.call(e,t)};w.prototype.listenerCount=Qt;function Qt(e){var t=this._events;if(t!==void 0){var s=t[e];if(typeof s=="function")return 1;if(s!==void 0)return s.length}return 0}w.prototype.eventNames=function(){return this._eventsCount>0?Ee(this._events):[]};function Jt(e,t){for(var s=new Array(t),r=0;r<t;++r)s[r]=e[r];return s}function er(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function tr(e){for(var t=new Array(e.length),s=0;s<t.length;++s)t[s]=e[s].listener||e[s];return t}function sr(e,t){return new Promise(function(s,r){function n(a){e.removeListener(t,i),r(a)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",n),s([].slice.call(arguments))}Kt(e,t,i,{once:!0}),t!=="error"&&rr(e,n,{once:!0})})}function rr(e,t,s){typeof e.on=="function"&&Kt(e,"error",t,s)}function Kt(e,t,s,r){if(typeof e.on=="function")r.once?e.once(t,s):e.on(t,s);else if(typeof e.addEventListener=="function")e.addEventListener(t,function n(i){r.once&&e.removeEventListener(t,n),s(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}class nr{constructor(t=globalThis.navigator.userAgent,s={}){S(this,"isIos",!1);S(this,"isIphone",!1);S(this,"isIpad",!1);S(this,"isAndroid",!1);S(this,"isAndroidPad",!1);S(this,"isMac",!1);S(this,"isWin",!1);S(this,"isMqq",!1);S(this,"isWechat",!1);S(this,"isWeb",!1);this.isIphone=t.indexOf("iPhone")>=0,this.isIpad=/(iPad).*OS\s([\d_]+)/.test(t),this.isIos=this.isIphone||this.isIpad,this.isAndroid=t.indexOf("Android")>=0,this.isAndroidPad=this.isAndroid&&t.indexOf("Mobile")<0,this.isMac=t.indexOf("Macintosh")>=0,this.isWin=t.indexOf("Windows")>=0,this.isMqq=/QQ\/([\d.]+)/.test(t),this.isWechat=t.indexOf("MicroMessenger")>=0&&t.indexOf("wxwork")<0,this.isWeb=!this.isIos&&!this.isAndroid&&!/(WebOS|BlackBerry)/.test(t),Object.entries(s).forEach(([r,n])=>{this[r]=n})}}const at="magic:common:events:",Xt="magic:common:actions:",Te={SHOW:"show",HIDE:"hide",SCROLL_TO_VIEW:"scrollIntoView",SCROLL_TO_TOP:"scrollToTop"},ir=[{label:"\u70B9\u51FB",value:`${at}click`}],es=(e,t)=>{const s=`${e}:${t}`;return e.startsWith(at)?s:`${at}${s}`},ar=e=>e.startsWith(Xt),ts=(e,t)=>{var r;if(!e)return!1;if(!e.id)return ts(e.parentElement,t);const s=(r=t.page)==null?void 0:r.getNode(e.id);return s||!1},It=(e,t,s)=>{const r=ts(s.target,e);if(r){const{instance:n,data:i}=r;e.emit(es(t,i.id),n)}},or=e=>{window.document.body.addEventListener("click",t=>{It(e,"click",t)}),window.document.body.addEventListener("click",t=>{It(e,"click:capture",t)},!0)},lr=(e,t)=>{const{instance:s}=t;switch(e.replace(Xt,"")){case Te.SHOW:s.show();break;case Te.HIDE:s.hide();break;case Te.SCROLL_TO_VIEW:s.$el.scrollIntoView({behavior:"smooth"});break;case Te.SCROLL_TO_TOP:window.scrollTo({top:0,behavior:"smooth"});break}};class At extends He.exports.EventEmitter{constructor(s){super();S(this,"data");S(this,"style");S(this,"events");S(this,"instance");S(this,"page");S(this,"parent");S(this,"app");this.page=s.page,this.parent=s.parent,this.app=s.app;const{events:r}=s.config;this.data=s.config,this.events=r,this.listenLifeSafe(),this.once("destroy",()=>{this.instance=null,typeof this.data.destroy=="function"&&this.data.destroy(this),this.listenLifeSafe()})}listenLifeSafe(){this.once("created",s=>{this.instance=s,typeof this.data.created=="function"&&this.data.created(this)}),this.once("mounted",s=>{this.instance=s;const r=this.app.eventQueueMap[s.config.id]||[];for(let n=r.shift();n;n=r.shift())this.app.eventHandler(n.eventConfig,n.fromCpt,n.args);typeof this.data.mounted=="function"&&this.data.mounted(this)})}}class ur extends At{constructor(s){super(s);S(this,"nodes",new Map);this.setNode(s.config.id,this),this.initNode(s.config,this)}initNode(s,r){var i;const n=new At({config:s,parent:r,page:this,app:this.app});this.setNode(s.id,n),(i=s.items)==null||i.forEach(a=>{this.initNode(a,n)})}getNode(s){return this.nodes.get(s)}setNode(s,r){this.nodes.set(s,r)}deleteNode(s){this.nodes.delete(s)}}const dr=e=>{if(typeof e!="string")return e;const t={};return e.split(";").forEach(s=>{if(!s)return;const r=s.split(":");let n=r.shift(),i=r.join(":");!n||(n=n.replace(/^\s*/,"").replace(/\s*$/,""),i=i.replace(/^\s*/,"").replace(/\s*$/,""),n=n.split("-").map((a,o)=>o>0?`${a[0].toUpperCase()}${a.substr(1)}`:a).join(""),t[n]=i)}),t},fr=e=>e&&!/^url/.test(e)&&!/^linear-gradient/.test(e)?`url(${e})`:e;class hr extends He.exports.EventEmitter{constructor(s){super();S(this,"env");S(this,"pages",new Map);S(this,"page");S(this,"platform","mobile");S(this,"jsEngine","browser");S(this,"designWidth",375);S(this,"components",new Map);S(this,"eventQueueMap",{});if(this.env=new nr(s.ua),s.platform&&(this.platform=s.platform),s.jsEngine&&(this.jsEngine=s.jsEngine),s.designWidth&&(this.designWidth=s.designWidth),this.platform==="mobile"||this.platform==="editor"){const r=()=>{let{width:n}=document.documentElement.getBoundingClientRect();n=Math.min(800,n);const i=n/(this.designWidth/100);document.documentElement.style.fontSize=`${i}px`};r(),document.body.style.fontSize="14px",globalThis.addEventListener("resize",r)}s.transformStyle&&(this.transformStyle=s.transformStyle),s.config&&this.setConfig(s.config,s.curPage),or(this)}transformStyle(s){if(!s)return{};let r={};const n={};typeof s=="string"?r=dr(s):r={...s};const i=["zIndex","opacity","fontWeight"];return Object.entries(r).forEach(([a,o])=>{a==="backgroundImage"?o&&(n[a]=fr(o)):a==="transform"&&typeof o!="string"?n[a]=Object.entries(o).map(([u,c])=>{let v=0;return u==="scale"&&(v=1),`${u}(${c||v})`}).join(" "):!i.includes(a)&&o&&/^[-]?[0-9]*[.]?[0-9]*$/.test(o)?n[a]=`${o/100}rem`:n[a]=o}),n}setConfig(s,r){var n,i,a;this.pages=new Map,(n=s.items)==null||n.forEach(o=>{this.pages.set(o.id,new ur({config:o,app:this}))}),this.setPage(r||((a=(i=this.page)==null?void 0:i.data)==null?void 0:a.id))}setPage(s){let r;s&&(r=this.pages.get(s)),r||(r=this.pages.get(this.pages.keys().next().value)),this.page=r,this.platform!=="magic"&&this.bindEvents()}registerComponent(s,r){this.components.set(s,r)}unregisterComponent(s){this.components.delete(s)}resolveComponent(s){return this.components.get(s)}bindEvents(){var s;if(!!this.page){this.removeAllListeners();for(const[,r]of this.page.nodes)(s=r.events)==null||s.forEach(n=>this.bindEvent(n,`${r.data.id}`))}}bindEvent(s,r){let{name:n}=s;ir.findIndex(i=>i.value===n)>-1&&(n=es(n,r)),this.on(n,(i,...a)=>{this.eventHandler(s,i,a)})}eventHandler(s,r,n){if(!this.page)throw new Error("\u5F53\u524D\u6CA1\u6709\u9875\u9762");const{method:i,to:a}=s,o=this.page.getNode(a);if(!o)throw`ID\u4E3A${a}\u7684\u7EC4\u4EF6\u4E0D\u5B58\u5728`;if(ar(i))return lr(i,o);o.instance?typeof o.instance[i]=="function"&&o.instance[i](r,...n):this.addEventToMap({eventConfig:s,fromCpt:r,args:n})}destroy(){this.removeAllListeners(),this.pages.clear()}addEventToMap(s){this.eventQueueMap[s.eventConfig.to]?this.eventQueueMap[s.eventConfig.to].push(s):this.eventQueueMap[s.eventConfig.to]=[s]}}//! moment.js
|
|
//! version : 2.29.3
|
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
//! license : MIT
|
|
//! momentjs.com
|
|
var ss;function d(){return ss.apply(null,arguments)}function cr(e){ss=e}function U(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function ae(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function mt(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(p(e,t))return!1;return!0}function N(e){return e===void 0}function K(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Oe(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function rs(e,t){var s=[],r,n=e.length;for(r=0;r<n;++r)s.push(t(e[r],r));return s}function te(e,t){for(var s in t)p(t,s)&&(e[s]=t[s]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function $(e,t,s,r){return bs(e,t,s,r,!0).utc()}function mr(){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 m(e){return e._pf==null&&(e._pf=mr()),e._pf}var ot;Array.prototype.some?ot=Array.prototype.some:ot=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function _t(e){if(e._isValid==null){var t=m(e),s=ot.call(t.parsedDateParts,function(n){return n!=null}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s);if(e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r}return e._isValid}function je(e){var t=$(NaN);return e!=null?te(m(t),e):m(t).userInvalidated=!0,t}var Ut=d.momentProperties=[],tt=!1;function yt(e,t){var s,r,n,i=Ut.length;if(N(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),N(t._i)||(e._i=t._i),N(t._f)||(e._f=t._f),N(t._l)||(e._l=t._l),N(t._strict)||(e._strict=t._strict),N(t._tzm)||(e._tzm=t._tzm),N(t._isUTC)||(e._isUTC=t._isUTC),N(t._offset)||(e._offset=t._offset),N(t._pf)||(e._pf=m(t)),N(t._locale)||(e._locale=t._locale),i>0)for(s=0;s<i;s++)r=Ut[s],n=t[r],N(n)||(e[r]=n);return e}function De(e){yt(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),tt===!1&&(tt=!0,d.updateOffset(this),tt=!1)}function H(e){return e instanceof De||e!=null&&e._isAMomentObject!=null}function ns(e){d.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function F(e,t){var s=!0;return te(function(){if(d.deprecationHandler!=null&&d.deprecationHandler(null,e),s){var r=[],n,i,a,o=arguments.length;for(i=0;i<o;i++){if(n="",typeof arguments[i]=="object"){n+=`
|
|
[`+i+"] ";for(a in arguments[0])p(arguments[0],a)&&(n+=a+": "+arguments[0][a]+", ");n=n.slice(0,-2)}else n=arguments[i];r.push(n)}ns(e+`
|
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
`+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var Ht={};function is(e,t){d.deprecationHandler!=null&&d.deprecationHandler(e,t),Ht[e]||(ns(t),Ht[e]=!0)}d.suppressDeprecationWarnings=!1;d.deprecationHandler=null;function z(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function _r(e){var t,s;for(s in e)p(e,s)&&(t=e[s],z(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function lt(e,t){var s=te({},e),r;for(r in t)p(t,r)&&(ae(e[r])&&ae(t[r])?(s[r]={},te(s[r],e[r]),te(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)p(e,r)&&!p(t,r)&&ae(e[r])&&(s[r]=te({},s[r]));return s}function pt(e){e!=null&&this.set(e)}var ut;Object.keys?ut=Object.keys:ut=function(e){var t,s=[];for(t in e)p(e,t)&&s.push(t);return s};var yr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function pr(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return z(r)?r.call(t,s):r}function G(e,t,s){var r=""+Math.abs(e),n=t-r.length,i=e>=0;return(i?s?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+r}var gt=/(\[[^\[]*\])|(\\)?([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,xe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,st={},he={};function h(e,t,s,r){var n=r;typeof r=="string"&&(n=function(){return this[r]()}),e&&(he[e]=n),t&&(he[t[0]]=function(){return G(n.apply(this,arguments),t[1],t[2])}),s&&(he[s]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function gr(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function vr(e){var t=e.match(gt),s,r;for(s=0,r=t.length;s<r;s++)he[t[s]]?t[s]=he[t[s]]:t[s]=gr(t[s]);return function(n){var i="",a;for(a=0;a<r;a++)i+=z(t[a])?t[a].call(n,e):t[a];return i}}function Ne(e,t){return e.isValid()?(t=as(t,e.localeData()),st[t]=st[t]||vr(t),st[t](e)):e.localeData().invalidDate()}function as(e,t){var s=5;function r(n){return t.longDateFormat(n)||n}for(xe.lastIndex=0;s>=0&&xe.test(e);)e=e.replace(xe,r),xe.lastIndex=0,s-=1;return e}var wr={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 Mr(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(gt).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Sr="Invalid date";function kr(){return this._invalidDate}var Or="%d",Dr=/\d{1,2}/;function Yr(e){return this._ordinal.replace("%d",e)}var br={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 Tr(e,t,s,r){var n=this._relativeTime[s];return z(n)?n(e,t,s,r):n.replace(/%d/i,e)}function xr(e,t){var s=this._relativeTime[e>0?"future":"past"];return z(s)?s(t):s.replace(/%s/i,t)}var ve={};function x(e,t){var s=e.toLowerCase();ve[s]=ve[s+"s"]=ve[t]=e}function I(e){return typeof e=="string"?ve[e]||ve[e.toLowerCase()]:void 0}function vt(e){var t={},s,r;for(r in e)p(e,r)&&(s=I(r),s&&(t[s]=e[r]));return t}var os={};function L(e,t){os[e]=t}function Lr(e){var t=[],s;for(s in e)p(e,s)&&t.push({unit:s,priority:os[s]});return t.sort(function(r,n){return r.priority-n.priority}),t}function Ge(e){return e%4===0&&e%100!==0||e%400===0}function C(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=C(t)),s}function _e(e,t){return function(s){return s!=null?(ls(this,e,s),d.updateOffset(this,t),this):Re(this,e)}}function Re(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ls(e,t,s){e.isValid()&&!isNaN(s)&&(t==="FullYear"&&Ge(e.year())&&e.month()===1&&e.date()===29?(s=_(s),e._d["set"+(e._isUTC?"UTC":"")+t](s,e.month(),Qe(s,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](s))}function Er(e){return e=I(e),z(this[e])?this[e]():this}function Nr(e,t){if(typeof e=="object"){e=vt(e);var s=Lr(e),r,n=s.length;for(r=0;r<n;r++)this[s[r].unit](e[s[r].unit])}else if(e=I(e),z(this[e]))return this[e](t);return this}var us=/\d/,W=/\d\d/,ds=/\d{3}/,wt=/\d{4}/,$e=/[+-]?\d{6}/,O=/\d\d?/,fs=/\d\d\d\d?/,hs=/\d\d\d\d\d\d?/,ze=/\d{1,3}/,Mt=/\d{1,4}/,Ze=/[+-]?\d{1,6}/,ye=/\d+/,Be=/[+-]?\d+/,Pr=/Z|[+-]\d\d:?\d\d/gi,qe=/Z|[+-]\d\d(?::?\d\d)?/gi,Wr=/[+-]?\d+(\.\d{1,3})?/,Ye=/[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,Ce;Ce={};function f(e,t,s){Ce[e]=z(t)?t:function(r,n){return r&&s?s:t}}function Rr(e,t){return p(Ce,e)?Ce[e](t._strict,t._locale):new RegExp(Cr(e))}function Cr(e){return P(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,n,i){return s||r||n||i}))}function P(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var dt={};function M(e,t){var s,r=t,n;for(typeof e=="string"&&(e=[e]),K(t)&&(r=function(i,a){a[t]=_(i)}),n=e.length,s=0;s<n;s++)dt[e[s]]=r}function be(e,t){M(e,function(s,r,n,i){n._w=n._w||{},t(s,n._w,n,i)})}function Fr(e,t,s){t!=null&&p(dt,e)&&dt[e](t,s._a,s,e)}var T=0,q=1,j=2,b=3,A=4,Q=5,ie=6,Ir=7,Ar=8;function Ur(e,t){return(e%t+t)%t}var Y;Array.prototype.indexOf?Y=Array.prototype.indexOf:Y=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Qe(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=Ur(t,12);return e+=(t-s)/12,s===1?Ge(e)?29:28:31-s%7%2}h("M",["MM",2],"Mo",function(){return this.month()+1});h("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});h("MMMM",0,0,function(e){return this.localeData().months(this,e)});x("month","M");L("month",8);f("M",O);f("MM",O,W);f("MMM",function(e,t){return t.monthsShortRegex(e)});f("MMMM",function(e,t){return t.monthsRegex(e)});M(["M","MM"],function(e,t){t[q]=_(e)-1});M(["MMM","MMMM"],function(e,t,s,r){var n=s._locale.monthsParse(e,r,s._strict);n!=null?t[q]=n:m(s).invalidMonth=e});var Hr="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("_"),ms=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Vr=Ye,jr=Ye;function Gr(e,t){return e?U(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ms).test(t)?"format":"standalone"][e.month()]:U(this._months)?this._months:this._months.standalone}function $r(e,t){return e?U(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ms.test(t)?"format":"standalone"][e.month()]:U(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function zr(e,t,s){var r,n,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=$([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return s?t==="MMM"?(n=Y.call(this._shortMonthsParse,a),n!==-1?n:null):(n=Y.call(this._longMonthsParse,a),n!==-1?n:null):t==="MMM"?(n=Y.call(this._shortMonthsParse,a),n!==-1?n:(n=Y.call(this._longMonthsParse,a),n!==-1?n:null)):(n=Y.call(this._longMonthsParse,a),n!==-1?n:(n=Y.call(this._shortMonthsParse,a),n!==-1?n:null))}function Zr(e,t,s){var r,n,i;if(this._monthsParseExact)return zr.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=$([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function _s(e,t){var s;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=_(t);else if(t=e.localeData().monthsParse(t),!K(t))return e}return s=Math.min(e.date(),Qe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,s),e}function ys(e){return e!=null?(_s(this,e),d.updateOffset(this,!0),this):Re(this,"Month")}function Br(){return Qe(this.year(),this.month())}function qr(e){return this._monthsParseExact?(p(this,"_monthsRegex")||ps.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Vr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Qr(e){return this._monthsParseExact?(p(this,"_monthsRegex")||ps.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=jr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ps(){function e(a,o){return o.length-a.length}var t=[],s=[],r=[],n,i;for(n=0;n<12;n++)i=$([2e3,n]),t.push(this.monthsShort(i,"")),s.push(this.months(i,"")),r.push(this.months(i,"")),r.push(this.monthsShort(i,""));for(t.sort(e),s.sort(e),r.sort(e),n=0;n<12;n++)t[n]=P(t[n]),s[n]=P(s[n]);for(n=0;n<24;n++)r[n]=P(r[n]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}h("Y",0,0,function(){var e=this.year();return e<=9999?G(e,4):"+"+e});h(0,["YY",2],0,function(){return this.year()%100});h(0,["YYYY",4],0,"year");h(0,["YYYYY",5],0,"year");h(0,["YYYYYY",6,!0],0,"year");x("year","y");L("year",1);f("Y",Be);f("YY",O,W);f("YYYY",Mt,wt);f("YYYYY",Ze,$e);f("YYYYYY",Ze,$e);M(["YYYYY","YYYYYY"],T);M("YYYY",function(e,t){t[T]=e.length===2?d.parseTwoDigitYear(e):_(e)});M("YY",function(e,t){t[T]=d.parseTwoDigitYear(e)});M("Y",function(e,t){t[T]=parseInt(e,10)});function we(e){return Ge(e)?366:365}d.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var gs=_e("FullYear",!0);function Jr(){return Ge(this.year())}function Kr(e,t,s,r,n,i,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,s,r,n,i,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,s,r,n,i,a),o}function Me(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,s){var r=7+t-s,n=(7+Me(e,0,r).getUTCDay()-t)%7;return-n+r-1}function vs(e,t,s,r,n){var i=(7+s-r)%7,a=Fe(e,r,n),o=1+7*(t-1)+i+a,u,c;return o<=0?(u=e-1,c=we(u)+o):o>we(e)?(u=e+1,c=o-we(e)):(u=e,c=o),{year:u,dayOfYear:c}}function Se(e,t,s){var r=Fe(e.year(),t,s),n=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return n<1?(a=e.year()-1,i=n+J(a,t,s)):n>J(e.year(),t,s)?(i=n-J(e.year(),t,s),a=e.year()+1):(a=e.year(),i=n),{week:i,year:a}}function J(e,t,s){var r=Fe(e,t,s),n=Fe(e+1,t,s);return(we(e)-r+n)/7}h("w",["ww",2],"wo","week");h("W",["WW",2],"Wo","isoWeek");x("week","w");x("isoWeek","W");L("week",5);L("isoWeek",5);f("w",O);f("ww",O,W);f("W",O);f("WW",O,W);be(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=_(e)});function Xr(e){return Se(e,this._week.dow,this._week.doy).week}var en={dow:0,doy:6};function tn(){return this._week.dow}function sn(){return this._week.doy}function rn(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function nn(e){var t=Se(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day");h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});h("e",0,0,"weekday");h("E",0,0,"isoWeekday");x("day","d");x("weekday","e");x("isoWeekday","E");L("day",11);L("weekday",11);L("isoWeekday",11);f("d",O);f("e",O);f("E",O);f("dd",function(e,t){return t.weekdaysMinRegex(e)});f("ddd",function(e,t){return t.weekdaysShortRegex(e)});f("dddd",function(e,t){return t.weekdaysRegex(e)});be(["dd","ddd","dddd"],function(e,t,s,r){var n=s._locale.weekdaysParse(e,r,s._strict);n!=null?t.d=n:m(s).invalidWeekday=e});be(["d","e","E"],function(e,t,s,r){t[r]=_(e)});function an(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function on(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function St(e,t){return e.slice(t,7).concat(e.slice(0,t))}var ln="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ws="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),un="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),dn=Ye,fn=Ye,hn=Ye;function cn(e,t){var s=U(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?St(s,this._week.dow):e?s[e.day()]:s}function mn(e){return e===!0?St(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function _n(e){return e===!0?St(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function yn(e,t,s){var r,n,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=$([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return s?t==="dddd"?(n=Y.call(this._weekdaysParse,a),n!==-1?n:null):t==="ddd"?(n=Y.call(this._shortWeekdaysParse,a),n!==-1?n:null):(n=Y.call(this._minWeekdaysParse,a),n!==-1?n:null):t==="dddd"?(n=Y.call(this._weekdaysParse,a),n!==-1||(n=Y.call(this._shortWeekdaysParse,a),n!==-1)?n:(n=Y.call(this._minWeekdaysParse,a),n!==-1?n:null)):t==="ddd"?(n=Y.call(this._shortWeekdaysParse,a),n!==-1||(n=Y.call(this._weekdaysParse,a),n!==-1)?n:(n=Y.call(this._minWeekdaysParse,a),n!==-1?n:null)):(n=Y.call(this._minWeekdaysParse,a),n!==-1||(n=Y.call(this._weekdaysParse,a),n!==-1)?n:(n=Y.call(this._shortWeekdaysParse,a),n!==-1?n:null))}function pn(e,t,s){var r,n,i;if(this._weekdaysParseExact)return yn.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=$([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function gn(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=an(e,this.localeData()),this.add(e-t,"d")):t}function vn(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 wn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=on(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Mn(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=dn),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Sn(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=fn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function kn(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=hn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function kt(){function e(v,E){return E.length-v.length}var t=[],s=[],r=[],n=[],i,a,o,u,c;for(i=0;i<7;i++)a=$([2e3,1]).day(i),o=P(this.weekdaysMin(a,"")),u=P(this.weekdaysShort(a,"")),c=P(this.weekdays(a,"")),t.push(o),s.push(u),r.push(c),n.push(o),n.push(u),n.push(c);t.sort(e),s.sort(e),r.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ot(){return this.hours()%12||12}function On(){return this.hours()||24}h("H",["HH",2],0,"hour");h("h",["hh",2],0,Ot);h("k",["kk",2],0,On);h("hmm",0,0,function(){return""+Ot.apply(this)+G(this.minutes(),2)});h("hmmss",0,0,function(){return""+Ot.apply(this)+G(this.minutes(),2)+G(this.seconds(),2)});h("Hmm",0,0,function(){return""+this.hours()+G(this.minutes(),2)});h("Hmmss",0,0,function(){return""+this.hours()+G(this.minutes(),2)+G(this.seconds(),2)});function Ms(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Ms("a",!0);Ms("A",!1);x("hour","h");L("hour",13);function Ss(e,t){return t._meridiemParse}f("a",Ss);f("A",Ss);f("H",O);f("h",O);f("k",O);f("HH",O,W);f("hh",O,W);f("kk",O,W);f("hmm",fs);f("hmmss",hs);f("Hmm",fs);f("Hmmss",hs);M(["H","HH"],b);M(["k","kk"],function(e,t,s){var r=_(e);t[b]=r===24?0:r});M(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e});M(["h","hh"],function(e,t,s){t[b]=_(e),m(s).bigHour=!0});M("hmm",function(e,t,s){var r=e.length-2;t[b]=_(e.substr(0,r)),t[A]=_(e.substr(r)),m(s).bigHour=!0});M("hmmss",function(e,t,s){var r=e.length-4,n=e.length-2;t[b]=_(e.substr(0,r)),t[A]=_(e.substr(r,2)),t[Q]=_(e.substr(n)),m(s).bigHour=!0});M("Hmm",function(e,t,s){var r=e.length-2;t[b]=_(e.substr(0,r)),t[A]=_(e.substr(r))});M("Hmmss",function(e,t,s){var r=e.length-4,n=e.length-2;t[b]=_(e.substr(0,r)),t[A]=_(e.substr(r,2)),t[Q]=_(e.substr(n))});function Dn(e){return(e+"").toLowerCase().charAt(0)==="p"}var Yn=/[ap]\.?m?\.?/i,bn=_e("Hours",!0);function Tn(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var ks={calendar:yr,longDateFormat:wr,invalidDate:Sr,ordinal:Or,dayOfMonthOrdinalParse:Dr,relativeTime:br,months:Hr,monthsShort:cs,week:en,weekdays:ln,weekdaysMin:un,weekdaysShort:ws,meridiemParse:Yn},D={},pe={},ke;function xn(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function Vt(e){return e&&e.toLowerCase().replace("_","-")}function Ln(e){for(var t=0,s,r,n,i;t<e.length;){for(i=Vt(e[t]).split("-"),s=i.length,r=Vt(e[t+1]),r=r?r.split("-"):null;s>0;){if(n=Je(i.slice(0,s).join("-")),n)return n;if(r&&r.length>=s&&xn(i,r)>=s-1)break;s--}t++}return ke}function En(e){return e.match("^[^/\\\\]*$")!=null}function Je(e){var t=null,s;if(D[e]===void 0&&typeof module<"u"&&module&&module.exports&&En(e))try{t=ke._abbr,s=require,s("./locale/"+e),re(t)}catch{D[e]=null}return D[e]}function re(e,t){var s;return e&&(N(t)?s=X(e):s=Dt(e,t),s?ke=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ke._abbr}function Dt(e,t){if(t!==null){var s,r=ks;if(t.abbr=e,D[e]!=null)is("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=D[e]._config;else if(t.parentLocale!=null)if(D[t.parentLocale]!=null)r=D[t.parentLocale]._config;else if(s=Je(t.parentLocale),s!=null)r=s._config;else return pe[t.parentLocale]||(pe[t.parentLocale]=[]),pe[t.parentLocale].push({name:e,config:t}),null;return D[e]=new pt(lt(r,t)),pe[e]&&pe[e].forEach(function(n){Dt(n.name,n.config)}),re(e),D[e]}else return delete D[e],null}function Nn(e,t){if(t!=null){var s,r,n=ks;D[e]!=null&&D[e].parentLocale!=null?D[e].set(lt(D[e]._config,t)):(r=Je(e),r!=null&&(n=r._config),t=lt(n,t),r==null&&(t.abbr=e),s=new pt(t),s.parentLocale=D[e],D[e]=s),re(e)}else D[e]!=null&&(D[e].parentLocale!=null?(D[e]=D[e].parentLocale,e===re()&&re(e)):D[e]!=null&&delete D[e]);return D[e]}function X(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ke;if(!U(e)){if(t=Je(e),t)return t;e=[e]}return Ln(e)}function Pn(){return ut(D)}function Yt(e){var t,s=e._a;return s&&m(e).overflow===-2&&(t=s[q]<0||s[q]>11?q:s[j]<1||s[j]>Qe(s[T],s[q])?j:s[b]<0||s[b]>24||s[b]===24&&(s[A]!==0||s[Q]!==0||s[ie]!==0)?b:s[A]<0||s[A]>59?A:s[Q]<0||s[Q]>59?Q:s[ie]<0||s[ie]>999?ie:-1,m(e)._overflowDayOfYear&&(t<T||t>j)&&(t=j),m(e)._overflowWeeks&&t===-1&&(t=Ir),m(e)._overflowWeekday&&t===-1&&(t=Ar),m(e).overflow=t),e}var Wn=/^\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)?)?$/,Rn=/^\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)?)?$/,Cn=/Z|[+-]\d\d(?::?\d\d)?/,Le=[["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]],rt=[["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/]],Fn=/^\/?Date\((-?\d+)/i,In=/^(?:(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}))$/,An={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 Os(e){var t,s,r=e._i,n=Wn.exec(r)||Rn.exec(r),i,a,o,u,c=Le.length,v=rt.length;if(n){for(m(e).iso=!0,t=0,s=c;t<s;t++)if(Le[t][1].exec(n[1])){a=Le[t][0],i=Le[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(n[3]){for(t=0,s=v;t<s;t++)if(rt[t][1].exec(n[3])){o=(n[2]||" ")+rt[t][0];break}if(o==null){e._isValid=!1;return}}if(!i&&o!=null){e._isValid=!1;return}if(n[4])if(Cn.exec(n[4]))u="Z";else{e._isValid=!1;return}e._f=a+(o||"")+(u||""),Tt(e)}else e._isValid=!1}function Un(e,t,s,r,n,i){var a=[Hn(e),cs.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(n,10)];return i&&a.push(parseInt(i,10)),a}function Hn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Vn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jn(e,t,s){if(e){var r=ws.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(r!==n)return m(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function Gn(e,t,s){if(e)return An[e];if(t)return 0;var r=parseInt(s,10),n=r%100,i=(r-n)/100;return i*60+n}function Ds(e){var t=In.exec(Vn(e._i)),s;if(t){if(s=Un(t[4],t[3],t[2],t[5],t[6],t[7]),!jn(t[1],s,e))return;e._a=s,e._tzm=Gn(t[8],t[9],t[10]),e._d=Me.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function $n(e){var t=Fn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Os(e),e._isValid===!1)delete e._isValid;else return;if(Ds(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:d.createFromInputFallback(e)}d.createFromInputFallback=F("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 ue(e,t,s){return e!=null?e:t!=null?t:s}function zn(e){var t=new Date(d.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function bt(e){var t,s,r=[],n,i,a;if(!e._d){for(n=zn(e),e._w&&e._a[j]==null&&e._a[q]==null&&Zn(e),e._dayOfYear!=null&&(a=ue(e._a[T],n[T]),(e._dayOfYear>we(a)||e._dayOfYear===0)&&(m(e)._overflowDayOfYear=!0),s=Me(a,0,e._dayOfYear),e._a[q]=s.getUTCMonth(),e._a[j]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=n[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[b]===24&&e._a[A]===0&&e._a[Q]===0&&e._a[ie]===0&&(e._nextDay=!0,e._a[b]=0),e._d=(e._useUTC?Me:Kr).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[b]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(m(e).weekdayMismatch=!0)}}function Zn(e){var t,s,r,n,i,a,o,u,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,s=ue(t.GG,e._a[T],Se(k(),1,4).year),r=ue(t.W,1),n=ue(t.E,1),(n<1||n>7)&&(u=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=Se(k(),i,a),s=ue(t.gg,e._a[T],c.year),r=ue(t.w,c.week),t.d!=null?(n=t.d,(n<0||n>6)&&(u=!0)):t.e!=null?(n=t.e+i,(t.e<0||t.e>6)&&(u=!0)):n=i),r<1||r>J(s,i,a)?m(e)._overflowWeeks=!0:u!=null?m(e)._overflowWeekday=!0:(o=vs(s,r,n,i,a),e._a[T]=o.year,e._dayOfYear=o.dayOfYear)}d.ISO_8601=function(){};d.RFC_2822=function(){};function Tt(e){if(e._f===d.ISO_8601){Os(e);return}if(e._f===d.RFC_2822){Ds(e);return}e._a=[],m(e).empty=!0;var t=""+e._i,s,r,n,i,a,o=t.length,u=0,c,v;for(n=as(e._f,e._locale).match(gt)||[],v=n.length,s=0;s<v;s++)i=n[s],r=(t.match(Rr(i,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&m(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),u+=r.length),he[i]?(r?m(e).empty=!1:m(e).unusedTokens.push(i),Fr(i,r,e)):e._strict&&!r&&m(e).unusedTokens.push(i);m(e).charsLeftOver=o-u,t.length>0&&m(e).unusedInput.push(t),e._a[b]<=12&&m(e).bigHour===!0&&e._a[b]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[b]=Bn(e._locale,e._a[b],e._meridiem),c=m(e).era,c!==null&&(e._a[T]=e._locale.erasConvertYear(c,e._a[T])),bt(e),Yt(e)}function Bn(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function qn(e){var t,s,r,n,i,a,o=!1,u=e._f.length;if(u===0){m(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<u;n++)i=0,a=!1,t=yt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],Tt(t),_t(t)&&(a=!0),i+=m(t).charsLeftOver,i+=m(t).unusedTokens.length*10,m(t).score=i,o?i<r&&(r=i,s=t):(r==null||i<r||a)&&(r=i,s=t,a&&(o=!0));te(e,s||t)}function Qn(e){if(!e._d){var t=vt(e._i),s=t.day===void 0?t.date:t.day;e._a=rs([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),bt(e)}}function Jn(e){var t=new De(Yt(Ys(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ys(e){var t=e._i,s=e._f;return e._locale=e._locale||X(e._l),t===null||s===void 0&&t===""?je({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),H(t)?new De(Yt(t)):(Oe(t)?e._d=t:U(s)?qn(e):s?Tt(e):Kn(e),_t(e)||(e._d=null),e))}function Kn(e){var t=e._i;N(t)?e._d=new Date(d.now()):Oe(t)?e._d=new Date(t.valueOf()):typeof t=="string"?$n(e):U(t)?(e._a=rs(t.slice(0),function(s){return parseInt(s,10)}),bt(e)):ae(t)?Qn(e):K(t)?e._d=new Date(t):d.createFromInputFallback(e)}function bs(e,t,s,r,n){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(ae(e)&&mt(e)||U(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=n,i._l=s,i._i=e,i._f=t,i._strict=r,Jn(i)}function k(e,t,s,r){return bs(e,t,s,r,!1)}var Xn=F("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:je()}),ei=F("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:je()});function Ts(e,t){var s,r;if(t.length===1&&U(t[0])&&(t=t[0]),!t.length)return k();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function ti(){var e=[].slice.call(arguments,0);return Ts("isBefore",e)}function si(){var e=[].slice.call(arguments,0);return Ts("isAfter",e)}var ri=function(){return Date.now?Date.now():+new Date},ge=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ni(e){var t,s=!1,r,n=ge.length;for(t in e)if(p(e,t)&&!(Y.call(ge,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<n;++r)if(e[ge[r]]){if(s)return!1;parseFloat(e[ge[r]])!==_(e[ge[r]])&&(s=!0)}return!0}function ii(){return this._isValid}function ai(){return V(NaN)}function Ke(e){var t=vt(e),s=t.year||0,r=t.quarter||0,n=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,c=t.second||0,v=t.millisecond||0;this._isValid=ni(t),this._milliseconds=+v+c*1e3+u*6e4+o*1e3*60*60,this._days=+a+i*7,this._months=+n+r*3+s*12,this._data={},this._locale=X(),this._bubble()}function Pe(e){return e instanceof Ke}function ft(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function oi(e,t,s){var r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),i=0,a;for(a=0;a<r;a++)(s&&e[a]!==t[a]||!s&&_(e[a])!==_(t[a]))&&i++;return i+n}function xs(e,t){h(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+G(~~(s/60),2)+t+G(~~s%60,2)})}xs("Z",":");xs("ZZ","");f("Z",qe);f("ZZ",qe);M(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=xt(qe,e)});var li=/([\+\-]|\d\d)/gi;function xt(e,t){var s=(t||"").match(e),r,n,i;return s===null?null:(r=s[s.length-1]||[],n=(r+"").match(li)||["-",0,0],i=+(n[1]*60)+_(n[2]),i===0?0:n[0]==="+"?i:-i)}function Lt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(H(e)||Oe(e)?e.valueOf():k(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),d.updateOffset(s,!1),s):k(e).local()}function ht(e){return-Math.round(e._d.getTimezoneOffset())}d.updateOffset=function(){};function ui(e,t,s){var r=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=xt(qe,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(n=ht(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?Ns(this,V(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:ht(this)}function di(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function fi(e){return this.utcOffset(0,e)}function hi(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ht(this),"m")),this}function ci(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=xt(Pr,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function mi(e){return this.isValid()?(e=e?k(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function _i(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function yi(){if(!N(this._isDSTShifted))return this._isDSTShifted;var e={},t;return yt(e,this),e=Ys(e),e._a?(t=e._isUTC?$(e._a):k(e._a),this._isDSTShifted=this.isValid()&&oi(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function pi(){return this.isValid()?!this._isUTC:!1}function gi(){return this.isValid()?this._isUTC:!1}function Ls(){return this.isValid()?this._isUTC&&this._offset===0:!1}var vi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,wi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function V(e,t){var s=e,r=null,n,i,a;return Pe(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:K(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=vi.exec(e))?(n=r[1]==="-"?-1:1,s={y:0,d:_(r[j])*n,h:_(r[b])*n,m:_(r[A])*n,s:_(r[Q])*n,ms:_(ft(r[ie]*1e3))*n}):(r=wi.exec(e))?(n=r[1]==="-"?-1:1,s={y:ne(r[2],n),M:ne(r[3],n),w:ne(r[4],n),d:ne(r[5],n),h:ne(r[6],n),m:ne(r[7],n),s:ne(r[8],n)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(a=Mi(k(s.from),k(s.to)),s={},s.ms=a.milliseconds,s.M=a.months),i=new Ke(s),Pe(e)&&p(e,"_locale")&&(i._locale=e._locale),Pe(e)&&p(e,"_isValid")&&(i._isValid=e._isValid),i}V.fn=Ke.prototype;V.invalid=ai;function ne(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function jt(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Mi(e,t){var s;return e.isValid()&&t.isValid()?(t=Lt(t,e),e.isBefore(t)?s=jt(e,t):(s=jt(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function Es(e,t){return function(s,r){var n,i;return r!==null&&!isNaN(+r)&&(is(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."),i=s,s=r,r=i),n=V(s,r),Ns(this,n,e),this}}function Ns(e,t,s,r){var n=t._milliseconds,i=ft(t._days),a=ft(t._months);!e.isValid()||(r=r==null?!0:r,a&&_s(e,Re(e,"Month")+a*s),i&&ls(e,"Date",Re(e,"Date")+i*s),n&&e._d.setTime(e._d.valueOf()+n*s),r&&d.updateOffset(e,i||a))}var Si=Es(1,"add"),ki=Es(-1,"subtract");function Ps(e){return typeof e=="string"||e instanceof String}function Oi(e){return H(e)||Oe(e)||Ps(e)||K(e)||Yi(e)||Di(e)||e===null||e===void 0}function Di(e){var t=ae(e)&&!mt(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,i,a=r.length;for(n=0;n<a;n+=1)i=r[n],s=s||p(e,i);return t&&s}function Yi(e){var t=U(e),s=!1;return t&&(s=e.filter(function(r){return!K(r)&&Ps(e)}).length===0),t&&s}function bi(e){var t=ae(e)&&!mt(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,i;for(n=0;n<r.length;n+=1)i=r[n],s=s||p(e,i);return t&&s}function Ti(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function xi(e,t){arguments.length===1&&(arguments[0]?Oi(arguments[0])?(e=arguments[0],t=void 0):bi(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||k(),r=Lt(s,this).startOf("day"),n=d.calendarFormat(this,r)||"sameElse",i=t&&(z(t[n])?t[n].call(this,s):t[n]);return this.format(i||this.localeData().calendar(n,this,k(s)))}function Li(){return new De(this)}function Ei(e,t){var s=H(e)?e:k(e);return this.isValid()&&s.isValid()?(t=I(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function Ni(e,t){var s=H(e)?e:k(e);return this.isValid()&&s.isValid()?(t=I(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function Pi(e,t,s,r){var n=H(e)?e:k(e),i=H(t)?t:k(t);return this.isValid()&&n.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(n,s):!this.isBefore(n,s))&&(r[1]===")"?this.isBefore(i,s):!this.isAfter(i,s))):!1}function Wi(e,t){var s=H(e)?e:k(e),r;return this.isValid()&&s.isValid()?(t=I(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Ri(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ci(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Fi(e,t,s){var r,n,i;if(!this.isValid())return NaN;if(r=Lt(e,this),!r.isValid())return NaN;switch(n=(r.utcOffset()-this.utcOffset())*6e4,t=I(t),t){case"year":i=We(this,r)/12;break;case"month":i=We(this,r);break;case"quarter":i=We(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-n)/864e5;break;case"week":i=(this-r-n)/6048e5;break;default:i=this-r}return s?i:C(i)}function We(e,t){if(e.date()<t.date())return-We(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),n,i;return t-r<0?(n=e.clone().add(s-1,"months"),i=(t-r)/(r-n)):(n=e.clone().add(s+1,"months"),i=(t-r)/(n-r)),-(s+i)||0}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Ii(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ai(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Ne(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ne(s,"Z")):Ne(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ui(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,n,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(s+r+n+i)}function Hi(e){e||(e=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var t=Ne(this,e);return this.localeData().postformat(t)}function Vi(e,t){return this.isValid()&&(H(e)&&e.isValid()||k(e).isValid())?V({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ji(e){return this.from(k(),e)}function Gi(e,t){return this.isValid()&&(H(e)&&e.isValid()||k(e).isValid())?V({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function $i(e){return this.to(k(),e)}function Ws(e){var t;return e===void 0?this._locale._abbr:(t=X(e),t!=null&&(this._locale=t),this)}var Rs=F("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 Cs(){return this._locale}var Ie=1e3,ce=60*Ie,Ae=60*ce,Fs=(365*400+97)*24*Ae;function me(e,t){return(e%t+t)%t}function Is(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-Fs:new Date(e,t,s).valueOf()}function As(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-Fs:Date.UTC(e,t,s)}function zi(e){var t,s;if(e=I(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?As:Is,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=me(t+(this._isUTC?0:this.utcOffset()*ce),Ae);break;case"minute":t=this._d.valueOf(),t-=me(t,ce);break;case"second":t=this._d.valueOf(),t-=me(t,Ie);break}return this._d.setTime(t),d.updateOffset(this,!0),this}function Zi(e){var t,s;if(e=I(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?As:Is,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ae-me(t+(this._isUTC?0:this.utcOffset()*ce),Ae)-1;break;case"minute":t=this._d.valueOf(),t+=ce-me(t,ce)-1;break;case"second":t=this._d.valueOf(),t+=Ie-me(t,Ie)-1;break}return this._d.setTime(t),d.updateOffset(this,!0),this}function Bi(){return this._d.valueOf()-(this._offset||0)*6e4}function qi(){return Math.floor(this.valueOf()/1e3)}function Qi(){return new Date(this.valueOf())}function Ji(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ki(){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 Xi(){return this.isValid()?this.toISOString():null}function ea(){return _t(this)}function ta(){return te({},m(this))}function sa(){return m(this).overflow}function ra(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr");h("NN",0,0,"eraAbbr");h("NNN",0,0,"eraAbbr");h("NNNN",0,0,"eraName");h("NNNNN",0,0,"eraNarrow");h("y",["y",1],"yo","eraYear");h("y",["yy",2],0,"eraYear");h("y",["yyy",3],0,"eraYear");h("y",["yyyy",4],0,"eraYear");f("N",Et);f("NN",Et);f("NNN",Et);f("NNNN",ma);f("NNNNN",_a);M(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var n=s._locale.erasParse(e,r,s._strict);n?m(s).era=n:m(s).invalidEra=e});f("y",ye);f("yy",ye);f("yyy",ye);f("yyyy",ye);f("yo",ya);M(["y","yy","yyy","yyyy"],T);M(["yo"],function(e,t,s,r){var n;s._locale._eraYearOrdinalRegex&&(n=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[T]=s._locale.eraYearOrdinalParse(e,n):t[T]=parseInt(e,10)});function na(e,t){var s,r,n,i=this._eras||X("en")._eras;for(s=0,r=i.length;s<r;++s){switch(typeof i[s].since){case"string":n=d(i[s].since).startOf("day"),i[s].since=n.valueOf();break}switch(typeof i[s].until){case"undefined":i[s].until=1/0;break;case"string":n=d(i[s].until).startOf("day").valueOf(),i[s].until=n.valueOf();break}}return i}function ia(e,t,s){var r,n,i=this.eras(),a,o,u;for(e=e.toUpperCase(),r=0,n=i.length;r<n;++r)if(a=i[r].name.toUpperCase(),o=i[r].abbr.toUpperCase(),u=i[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(o===e)return i[r];break;case"NNNN":if(a===e)return i[r];break;case"NNNNN":if(u===e)return i[r];break}else if([a,o,u].indexOf(e)>=0)return i[r]}function aa(e,t){var s=e.since<=e.until?1:-1;return t===void 0?d(e.since).year():d(e.since).year()+(t-e.offset)*s}function oa(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function la(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function ua(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function da(){var e,t,s,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(s=n[e].since<=n[e].until?1:-1,r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return(this.year()-d(n[e].since).year())*s+n[e].offset;return this.year()}function fa(e){return p(this,"_erasNameRegex")||Nt.call(this),e?this._erasNameRegex:this._erasRegex}function ha(e){return p(this,"_erasAbbrRegex")||Nt.call(this),e?this._erasAbbrRegex:this._erasRegex}function ca(e){return p(this,"_erasNarrowRegex")||Nt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Et(e,t){return t.erasAbbrRegex(e)}function ma(e,t){return t.erasNameRegex(e)}function _a(e,t){return t.erasNarrowRegex(e)}function ya(e,t){return t._eraYearOrdinalRegex||ye}function Nt(){var e=[],t=[],s=[],r=[],n,i,a=this.eras();for(n=0,i=a.length;n<i;++n)t.push(P(a[n].name)),e.push(P(a[n].abbr)),s.push(P(a[n].narrow)),r.push(P(a[n].name)),r.push(P(a[n].abbr)),r.push(P(a[n].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}h(0,["gg",2],0,function(){return this.weekYear()%100});h(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Xe(e,t){h(0,[e,e.length],0,t)}Xe("gggg","weekYear");Xe("ggggg","weekYear");Xe("GGGG","isoWeekYear");Xe("GGGGG","isoWeekYear");x("weekYear","gg");x("isoWeekYear","GG");L("weekYear",1);L("isoWeekYear",1);f("G",Be);f("g",Be);f("GG",O,W);f("gg",O,W);f("GGGG",Mt,wt);f("gggg",Mt,wt);f("GGGGG",Ze,$e);f("ggggg",Ze,$e);be(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=_(e)});be(["gg","GG"],function(e,t,s,r){t[r]=d.parseTwoDigitYear(e)});function pa(e){return Us.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ga(e){return Us.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function va(){return J(this.year(),1,4)}function wa(){return J(this.isoWeekYear(),1,4)}function Ma(){var e=this.localeData()._week;return J(this.year(),e.dow,e.doy)}function Sa(){var e=this.localeData()._week;return J(this.weekYear(),e.dow,e.doy)}function Us(e,t,s,r,n){var i;return e==null?Se(this,r,n).year:(i=J(e,r,n),t>i&&(t=i),ka.call(this,e,t,s,r,n))}function ka(e,t,s,r,n){var i=vs(e,t,s,r,n),a=Me(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}h("Q",0,"Qo","quarter");x("quarter","Q");L("quarter",7);f("Q",us);M("Q",function(e,t){t[q]=(_(e)-1)*3});function Oa(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date");x("date","D");L("date",9);f("D",O);f("DD",O,W);f("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});M(["D","DD"],j);M("Do",function(e,t){t[j]=_(e.match(O)[0])});var Hs=_e("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear");x("dayOfYear","DDD");L("dayOfYear",4);f("DDD",ze);f("DDDD",ds);M(["DDD","DDDD"],function(e,t,s){s._dayOfYear=_(e)});function Da(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute");x("minute","m");L("minute",14);f("m",O);f("mm",O,W);M(["m","mm"],A);var Ya=_e("Minutes",!1);h("s",["ss",2],0,"second");x("second","s");L("second",15);f("s",O);f("ss",O,W);M(["s","ss"],Q);var ba=_e("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)});h(0,["SS",2],0,function(){return~~(this.millisecond()/10)});h(0,["SSS",3],0,"millisecond");h(0,["SSSS",4],0,function(){return this.millisecond()*10});h(0,["SSSSS",5],0,function(){return this.millisecond()*100});h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});x("millisecond","ms");L("millisecond",16);f("S",ze,us);f("SS",ze,W);f("SSS",ze,ds);var se,Vs;for(se="SSSS";se.length<=9;se+="S")f(se,ye);function Ta(e,t){t[ie]=_(("0."+e)*1e3)}for(se="S";se.length<=9;se+="S")M(se,Ta);Vs=_e("Milliseconds",!1);h("z",0,0,"zoneAbbr");h("zz",0,0,"zoneName");function xa(){return this._isUTC?"UTC":""}function La(){return this._isUTC?"Coordinated Universal Time":""}var l=De.prototype;l.add=Si;l.calendar=xi;l.clone=Li;l.diff=Fi;l.endOf=Zi;l.format=Hi;l.from=Vi;l.fromNow=ji;l.to=Gi;l.toNow=$i;l.get=Er;l.invalidAt=sa;l.isAfter=Ei;l.isBefore=Ni;l.isBetween=Pi;l.isSame=Wi;l.isSameOrAfter=Ri;l.isSameOrBefore=Ci;l.isValid=ea;l.lang=Rs;l.locale=Ws;l.localeData=Cs;l.max=ei;l.min=Xn;l.parsingFlags=ta;l.set=Nr;l.startOf=zi;l.subtract=ki;l.toArray=Ji;l.toObject=Ki;l.toDate=Qi;l.toISOString=Ai;l.inspect=Ui;typeof Symbol<"u"&&Symbol.for!=null&&(l[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});l.toJSON=Xi;l.toString=Ii;l.unix=qi;l.valueOf=Bi;l.creationData=ra;l.eraName=oa;l.eraNarrow=la;l.eraAbbr=ua;l.eraYear=da;l.year=gs;l.isLeapYear=Jr;l.weekYear=pa;l.isoWeekYear=ga;l.quarter=l.quarters=Oa;l.month=ys;l.daysInMonth=Br;l.week=l.weeks=rn;l.isoWeek=l.isoWeeks=nn;l.weeksInYear=Ma;l.weeksInWeekYear=Sa;l.isoWeeksInYear=va;l.isoWeeksInISOWeekYear=wa;l.date=Hs;l.day=l.days=gn;l.weekday=vn;l.isoWeekday=wn;l.dayOfYear=Da;l.hour=l.hours=bn;l.minute=l.minutes=Ya;l.second=l.seconds=ba;l.millisecond=l.milliseconds=Vs;l.utcOffset=ui;l.utc=fi;l.local=hi;l.parseZone=ci;l.hasAlignedHourOffset=mi;l.isDST=_i;l.isLocal=pi;l.isUtcOffset=gi;l.isUtc=Ls;l.isUTC=Ls;l.zoneAbbr=xa;l.zoneName=La;l.dates=F("dates accessor is deprecated. Use date instead.",Hs);l.months=F("months accessor is deprecated. Use month instead",ys);l.years=F("years accessor is deprecated. Use year instead",gs);l.zone=F("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",di);l.isDSTShifted=F("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",yi);function Ea(e){return k(e*1e3)}function Na(){return k.apply(null,arguments).parseZone()}function js(e){return e}var g=pt.prototype;g.calendar=pr;g.longDateFormat=Mr;g.invalidDate=kr;g.ordinal=Yr;g.preparse=js;g.postformat=js;g.relativeTime=Tr;g.pastFuture=xr;g.set=_r;g.eras=na;g.erasParse=ia;g.erasConvertYear=aa;g.erasAbbrRegex=ha;g.erasNameRegex=fa;g.erasNarrowRegex=ca;g.months=Gr;g.monthsShort=$r;g.monthsParse=Zr;g.monthsRegex=Qr;g.monthsShortRegex=qr;g.week=Xr;g.firstDayOfYear=sn;g.firstDayOfWeek=tn;g.weekdays=cn;g.weekdaysMin=_n;g.weekdaysShort=mn;g.weekdaysParse=pn;g.weekdaysRegex=Mn;g.weekdaysShortRegex=Sn;g.weekdaysMinRegex=kn;g.isPM=Dn;g.meridiem=Tn;function Ue(e,t,s,r){var n=X(),i=$().set(r,t);return n[s](i,e)}function Gs(e,t,s){if(K(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ue(e,t,s,"month");var r,n=[];for(r=0;r<12;r++)n[r]=Ue(e,r,s,"month");return n}function Pt(e,t,s,r){typeof e=="boolean"?(K(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,K(t)&&(s=t,t=void 0),t=t||"");var n=X(),i=e?n._week.dow:0,a,o=[];if(s!=null)return Ue(t,(s+i)%7,r,"day");for(a=0;a<7;a++)o[a]=Ue(t,(a+i)%7,r,"day");return o}function Pa(e,t){return Gs(e,t,"months")}function Wa(e,t){return Gs(e,t,"monthsShort")}function Ra(e,t,s){return Pt(e,t,s,"weekdays")}function Ca(e,t,s){return Pt(e,t,s,"weekdaysShort")}function Fa(e,t,s){return Pt(e,t,s,"weekdaysMin")}re("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=_(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}});d.lang=F("moment.lang is deprecated. Use moment.locale instead.",re);d.langData=F("moment.langData is deprecated. Use moment.localeData instead.",X);var Z=Math.abs;function Ia(){var e=this._data;return this._milliseconds=Z(this._milliseconds),this._days=Z(this._days),this._months=Z(this._months),e.milliseconds=Z(e.milliseconds),e.seconds=Z(e.seconds),e.minutes=Z(e.minutes),e.hours=Z(e.hours),e.months=Z(e.months),e.years=Z(e.years),this}function $s(e,t,s,r){var n=V(t,s);return e._milliseconds+=r*n._milliseconds,e._days+=r*n._days,e._months+=r*n._months,e._bubble()}function Aa(e,t){return $s(this,e,t,1)}function Ua(e,t){return $s(this,e,t,-1)}function Gt(e){return e<0?Math.floor(e):Math.ceil(e)}function Ha(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,n,i,a,o,u;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=Gt(ct(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,n=C(e/1e3),r.seconds=n%60,i=C(n/60),r.minutes=i%60,a=C(i/60),r.hours=a%24,t+=C(a/24),u=C(zs(t)),s+=u,t-=Gt(ct(u)),o=C(s/12),s%=12,r.days=t,r.months=s,r.years=o,this}function zs(e){return e*4800/146097}function ct(e){return e*146097/4800}function Va(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=I(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+zs(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(ct(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function ja(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+_(this._months/12)*31536e6:NaN}function ee(e){return function(){return this.as(e)}}var Ga=ee("ms"),$a=ee("s"),za=ee("m"),Za=ee("h"),Ba=ee("d"),qa=ee("w"),Qa=ee("M"),Ja=ee("Q"),Ka=ee("y");function Xa(){return V(this)}function eo(e){return e=I(e),this.isValid()?this[e+"s"]():NaN}function oe(e){return function(){return this.isValid()?this._data[e]:NaN}}var to=oe("milliseconds"),so=oe("seconds"),ro=oe("minutes"),no=oe("hours"),io=oe("days"),ao=oe("months"),oo=oe("years");function lo(){return C(this.days()/7)}var B=Math.round,de={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function uo(e,t,s,r,n){return n.relativeTime(t||1,!!s,e,r)}function fo(e,t,s,r){var n=V(e).abs(),i=B(n.as("s")),a=B(n.as("m")),o=B(n.as("h")),u=B(n.as("d")),c=B(n.as("M")),v=B(n.as("w")),E=B(n.as("y")),R=i<=s.ss&&["s",i]||i<s.s&&["ss",i]||a<=1&&["m"]||a<s.m&&["mm",a]||o<=1&&["h"]||o<s.h&&["hh",o]||u<=1&&["d"]||u<s.d&&["dd",u];return s.w!=null&&(R=R||v<=1&&["w"]||v<s.w&&["ww",v]),R=R||c<=1&&["M"]||c<s.M&&["MM",c]||E<=1&&["y"]||["yy",E],R[2]=t,R[3]=+e>0,R[4]=r,uo.apply(null,R)}function ho(e){return e===void 0?B:typeof e=="function"?(B=e,!0):!1}function co(e,t){return de[e]===void 0?!1:t===void 0?de[e]:(de[e]=t,e==="s"&&(de.ss=t-1),!0)}function mo(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=de,n,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},de,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),n=this.localeData(),i=fo(this,!s,r,n),s&&(i=n.pastFuture(+this,i)),n.postformat(i)}var nt=Math.abs;function le(e){return(e>0)-(e<0)||+e}function et(){if(!this.isValid())return this.localeData().invalidDate();var e=nt(this._milliseconds)/1e3,t=nt(this._days),s=nt(this._months),r,n,i,a,o=this.asSeconds(),u,c,v,E;return o?(r=C(e/60),n=C(r/60),e%=60,r%=60,i=C(s/12),s%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=o<0?"-":"",c=le(this._months)!==le(o)?"-":"",v=le(this._days)!==le(o)?"-":"",E=le(this._milliseconds)!==le(o)?"-":"",u+"P"+(i?c+i+"Y":"")+(s?c+s+"M":"")+(t?v+t+"D":"")+(n||r||e?"T":"")+(n?E+n+"H":"")+(r?E+r+"M":"")+(e?E+a+"S":"")):"P0D"}var y=Ke.prototype;y.isValid=ii;y.abs=Ia;y.add=Aa;y.subtract=Ua;y.as=Va;y.asMilliseconds=Ga;y.asSeconds=$a;y.asMinutes=za;y.asHours=Za;y.asDays=Ba;y.asWeeks=qa;y.asMonths=Qa;y.asQuarters=Ja;y.asYears=Ka;y.valueOf=ja;y._bubble=Ha;y.clone=Xa;y.get=eo;y.milliseconds=to;y.seconds=so;y.minutes=ro;y.hours=no;y.days=io;y.weeks=lo;y.months=ao;y.years=oo;y.humanize=mo;y.toISOString=et;y.toString=et;y.toJSON=et;y.locale=Ws;y.localeData=Cs;y.toIsoString=F("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",et);y.lang=Rs;h("X",0,0,"unix");h("x",0,0,"valueOf");f("x",Be);f("X",Wr);M("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)});M("x",function(e,t,s){s._d=new Date(_(e))});//! moment.js
|
|
d.version="2.29.3";cr(k);d.fn=l;d.min=ti;d.max=si;d.now=ri;d.utc=$;d.unix=Ea;d.months=Pa;d.isDate=Oe;d.locale=re;d.invalid=je;d.duration=V;d.isMoment=H;d.weekdays=Ra;d.parseZone=Na;d.localeData=X;d.isDuration=Pe;d.monthsShort=Wa;d.weekdaysMin=Fa;d.defineLocale=Dt;d.updateLocale=Nn;d.locales=Pn;d.weekdaysShort=Ca;d.normalizeUnits=I;d.relativeTimeRounding=ho;d.relativeTimeThreshold=co;d.calendarFormat=Ti;d.prototype=l;d.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Mo=(e="")=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),it=(e,t=[])=>{const s=[],r=function(n,i){if(!Array.isArray(i))return null;for(let a=0,o=i.length;a<o;a++){const u=i[a];if(s.push(u),`${u.id}`==`${n}`)return u;if(u.items){const c=r(n,u.items);if(c)return c}s.pop()}return null};return r(e,t),s},_o=Vue.defineComponent({setup(){var i;const e=Vue.ref(),t=Vue.ref(),s=Vue.ref(),r=Vue.computed(()=>{var a,o,u,c;return((o=(a=e.value)==null?void 0:a.items)==null?void 0:o.find(v=>v.id===t.value))||((c=(u=e.value)==null?void 0:u.items)==null?void 0:c[0])}),n=new hr({config:e.value,platform:"editor"});return Vue.provide("app",n),Vue.watch(r,async()=>{await Vue.nextTick();const a=document.querySelector(".magic-ui-page");a&&window.magic.onPageElUpdate(a)}),(i=window.magic)==null||i.onRuntimeReady({getApp(){return n},updateRootConfig(a){console.log("update config",a),e.value=a,n==null||n.setConfig(a,t.value)},updatePageId(a){console.log("update page id",a),t.value=a,n==null||n.setPage(a)},select(a){console.log("select config",a),s.value=a;const o=document.getElementById(`${a}`);return o||Vue.nextTick().then(()=>document.getElementById(`${a}`))},add({config:a}){var v;if(console.log("add config",a),!e.value)throw new Error("error");if(!s.value)throw new Error("error");const o=it(s.value,[e.value]),u=o.pop(),c=u!=null&&u.items?u:o.pop();if(!c)throw new Error("\u672A\u627E\u5230\u7236\u8282\u70B9");(v=c.items)==null||v.push(a)},update({config:a}){var E;if(console.log("update config",a),!e.value)throw new Error("error");const o=it(a.id,[e.value]),u=o.pop(),c=o.pop();if(!u)throw new Error("\u672A\u627E\u5230\u76EE\u6807\u8282\u70B9");if(!c)throw new Error("\u672A\u627E\u5230\u7236\u8282\u70B9");const v=(E=c.items)==null?void 0:E.findIndex(R=>R.id===u.id);c.items.splice(v,1,Vue.reactive(a))},remove({id:a}){var E;if(!e.value)throw new Error("error");const o=it(a,[e.value]),u=o.pop();if(!u)throw new Error("\u672A\u627E\u5230\u76EE\u6807\u5143\u7D20");const c=o.pop();if(!c)throw new Error("\u672A\u627E\u5230\u7236\u5143\u7D20");const v=(E=c.items)==null?void 0:E.findIndex(R=>R.id===u.id);c.items.splice(v,1)}}),{pageConfig:r}}}),yo=(e,t)=>{const s=e.__vccOpts||e;for(const[r,n]of t)s[r]=n;return s};function po(e,t,s,r,n,i){const a=Vue.resolveComponent("magic-ui-page");return e.pageConfig?(Vue.openBlock(),Vue.createBlock(a,{key:0,config:e.pageConfig},null,8,["config"])):Vue.createCommentVNode("v-if",!0)}const go=yo(_o,[["render",po],["__file","/data/magic/tmagic-editor/runtime/vue3/playground/App.vue"]]);Promise.all([Rt(()=>import("./comp-entry.1516662e.js"),[]),Rt(()=>import("./plugin-entry.b765d2c2.js"),[])]).then(([e,t])=>{const s=Vue.createApp(go);Object.values(e.default).forEach(r=>{s.component(r.name,r)}),Object.values(t.default).forEach(r=>{s.use(r)}),s.mount("#app")});export{yo as _,wo as __vite_legacy_guard,Mo as t};
|
|
//# sourceMappingURL=index.79d6c210.js.map
|