!function(){function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}System.register([],(function(t,n){"use strict";return{execute:function(){const i=function(e,t,n){return e()};var s,r={exports:{}},a="object"==typeof Reflect?Reflect:null,o=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};s=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var u=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}r.exports=l,r.exports.once=function(e,t){return new Promise((function(n,i){function s(n){e.removeListener(t,r),i(n)}function r(){"function"==typeof e.removeListener&&e.removeListener("error",s),n([].slice.call(arguments))}v(e,t,r,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,n)}(e,s,{once:!0})}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var h=10;function d(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,n,i){var s,r,a,o;if(d(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),a=r[t]),void 0===a)a=r[t]=n,++e._eventsCount;else if("function"==typeof a?a=r[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(s=c(e))>0&&a.length>s&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,o=u,console&&console.warn&&console.warn(o)}return e}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},s=m.bind(i);return s.listener=n,i.wrapFn=s,s}function y(e,t,n){var i=e._events;if(void 0===i)return[];var s=i[t];return void 0===s?[]:"function"==typeof s?n?[s.listener||s]:[s]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(r=t[0]),r instanceof Error)throw r;var a=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw a.context=r,a}var u=s[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var l=u.length,h=g(u,l);for(n=0;n=0;r--)if(n[r]===t||n[r].listener===t){a=n[r].listener,s=r;break}if(s<0)return this;0===s?n.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},l.prototype.listeners=function(e){return y(this,e,!0)},l.prototype.rawListeners=function(e){return y(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},l.prototype.listenerCount=p,l.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};class w{constructor(t=globalThis.navigator.userAgent,n={}){e(this,"isIos",!1),e(this,"isIphone",!1),e(this,"isIpad",!1),e(this,"isAndroid",!1),e(this,"isAndroidPad",!1),e(this,"isMac",!1),e(this,"isWin",!1),e(this,"isMqq",!1),e(this,"isWechat",!1),e(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(n).forEach((([e,t])=>{this[e]=t}))}}const M="magic:common:events:",k="magic:common:actions:",S="show",D="hide",Y="scrollIntoView",b="scrollToTop",O=[{label:"点击",value:"magic:common:events:click"}],x=(e,t)=>{const n=`${e}:${t}`;return e.startsWith(M)?n:`magic:common:events:${n}`},T=(e,t)=>{var n;if(!e)return!1;if(!e.id)return T(e.parentElement,t);const i=null===(n=t.page)||void 0===n?void 0:n.getNode(e.id);return i||!1},N=(e,t,n)=>{const i=T(n.target,e);if(i){const{instance:n,data:s}=i;e.emit(x(t,s.id),n)}};class C extends r.exports.EventEmitter{constructor(t){super(),e(this,"data",void 0),e(this,"style",void 0),e(this,"events",void 0),e(this,"instance",void 0),e(this,"page",void 0),e(this,"parent",void 0),e(this,"app",void 0),this.page=t.page,this.parent=t.parent,this.app=t.app;const{events:n}=t.config;this.data=t.config,this.events=n,this.listenLifeSafe(),this.once("destroy",(()=>{this.instance=null,"function"==typeof this.data.destroy&&this.data.destroy(this),this.listenLifeSafe()}))}listenLifeSafe(){this.once("created",(e=>{this.instance=e,"function"==typeof this.data.created&&this.data.created(this)})),this.once("mounted",(e=>{this.instance=e;const t=this.app.eventQueueMap[e.config.id]||[];for(let n=t.shift();n;n=t.shift())this.app.eventHandler(n.eventConfig,n.fromCpt,n.args);"function"==typeof this.data.mounted&&this.data.mounted(this)}))}}class P extends C{constructor(t){super(t),e(this,"nodes",new Map),this.setNode(t.config.id,this),this.initNode(t.config,this)}initNode(e,t){var n;const i=new C({config:e,parent:t,page:this,app:this.app});this.setNode(e.id,i),null===(n=e.items)||void 0===n||n.forEach((e=>{this.initNode(e,i)}))}getNode(e){return this.nodes.get(e)}setNode(e,t){this.nodes.set(e,t)}deleteNode(e){this.nodes.delete(e)}}class L extends r.exports.EventEmitter{constructor(t){if(super(),e(this,"env",void 0),e(this,"pages",new Map),e(this,"page",void 0),e(this,"platform","mobile"),e(this,"jsEngine","browser"),e(this,"designWidth",375),e(this,"components",new Map),e(this,"eventQueueMap",{}),this.env=new w(t.ua),t.platform&&(this.platform=t.platform),t.jsEngine&&(this.jsEngine=t.jsEngine),t.designWidth&&(this.designWidth=t.designWidth),"mobile"===this.platform||"editor"===this.platform){const e=()=>{let{width:e}=document.documentElement.getBoundingClientRect();e=Math.min(800,e);const t=e/(this.designWidth/100);document.documentElement.style.fontSize=`${t}px`};e(),document.body.style.fontSize="14px",globalThis.addEventListener("resize",e)}var n;t.transformStyle&&(this.transformStyle=t.transformStyle),t.config&&this.setConfig(t.config,t.curPage),n=this,window.document.body.addEventListener("click",(e=>{N(n,"click",e)})),window.document.body.addEventListener("click",(e=>{N(n,"click:capture",e)}),!0)}transformStyle(e){if(!e)return{};let t={};const n={};t="string"==typeof e?(e=>{if("string"!=typeof e)return e;const t={};return e.split(";").forEach((e=>{if(!e)return;const n=e.split(":");let i=n.shift(),s=n.join(":");i&&(i=i.replace(/^\s*/,"").replace(/\s*$/,""),s=s.replace(/^\s*/,"").replace(/\s*$/,""),i=i.split("-").map(((e,t)=>t>0?`${e[0].toUpperCase()}${e.substr(1)}`:e)).join(""),t[i]=s)})),t})(e):{...e};const i=["zIndex","opacity","fontWeight"];return Object.entries(t).forEach((([e,t])=>{"backgroundImage"===e?t&&(n[e]=(e=>!e||/^url/.test(e)||/^linear-gradient/.test(e)?e:`url(${e})`)(t)):"transform"===e&&"string"!=typeof t?n[e]=Object.entries(t).map((([e,t])=>{let n=0;return"scale"===e&&(n=1),`${e}(${t||n})`})).join(" "):!i.includes(e)&&t&&/^[-]?[0-9]*[.]?[0-9]*$/.test(t)?n[e]=t/100+"rem":n[e]=t})),n}setConfig(e,t){var n,i,s;this.pages=new Map,null===(n=e.items)||void 0===n||n.forEach((e=>{this.pages.set(e.id,new P({config:e,app:this}))})),this.setPage(t||(null===(i=this.page)||void 0===i||null===(s=i.data)||void 0===s?void 0:s.id))}setPage(e){let t;e&&(t=this.pages.get(e)),t||(t=this.pages.get(this.pages.keys().next().value)),this.page=t,"magic"!==this.platform&&this.bindEvents()}registerComponent(e,t){this.components.set(e,t)}unregisterComponent(e){this.components.delete(e)}resolveComponent(e){return this.components.get(e)}bindEvents(){if(this.page){this.removeAllListeners();for(const[,t]of this.page.nodes){var e;null===(e=t.events)||void 0===e||e.forEach((e=>this.bindEvent(e,`${t.data.id}`)))}}}bindEvent(e,t){let{name:n}=e;O.findIndex((e=>e.value===n))>-1&&(n=x(n,t)),this.on(n,((t,...n)=>{this.eventHandler(e,t,n)}))}eventHandler(e,t,n){if(!this.page)throw new Error("当前没有页面");const{method:i,to:s}=e,r=this.page.getNode(s);if(!r)throw`ID为${s}的组件不存在`;if((e=>e.startsWith(k))(i))return((e,t)=>{const{instance:n}=t;switch(e.replace(k,"")){case S:n.show();break;case D:n.hide();break;case Y:n.$el.scrollIntoView({behavior:"smooth"});break;case b:window.scrollTo({top:0,behavior:"smooth"})}})(i,r);r.instance?"function"==typeof r.instance[i]&&r.instance[i](t,...n):this.addEventToMap({eventConfig:e,fromCpt:t,args:n})}destroy(){this.removeAllListeners(),this.pages.clear()}addEventToMap(e){this.eventQueueMap[e.eventConfig.to]?this.eventQueueMap[e.eventConfig.to].push(e):this.eventQueueMap[e.eventConfig.to]=[e]}}//! moment.js //! version : 2.29.3 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var W,E;function R(){return W.apply(null,arguments)}function V(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function H(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function U(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(U(e,t))return!1;return!0}function j(e){return void 0===e}function A(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function I(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function G(e,t){var n,i=[],s=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}var he=/(\[[^\[]*\])|(\\)?([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,de=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ce={},fe={};function me(e,t,n,i){var s=i;"string"==typeof i&&(s=function(){return this[i]()}),e&&(fe[e]=s),t&&(fe[t[0]]=function(){return le(s.apply(this,arguments),t[1],t[2])}),n&&(fe[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function _e(e,t){return e.isValid()?(t=ye(t,e.localeData()),ce[t]=ce[t]||function(e){var t,n,i,s=e.match(he);for(t=0,n=s.length;t=0&&de.test(e);)e=e.replace(de,i),de.lastIndex=0,n-=1;return e}var pe={};function ge(e,t){var n=e.toLowerCase();pe[n]=pe[n+"s"]=pe[t]=e}function ve(e){return"string"==typeof e?pe[e]||pe[e.toLowerCase()]:void 0}function we(e){var t,n,i={};for(n in e)U(e,n)&&(t=ve(n))&&(i[t]=e[n]);return i}var Me={};function ke(e,t){Me[e]=t}function Se(e){return e%4==0&&e%100!=0||e%400==0}function De(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ye(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=De(t)),n}function be(e,t){return function(n){return null!=n?(xe(this,e,n),R.updateOffset(this,t),this):Oe(this,e)}}function Oe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function xe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Se(e.year())&&1===e.month()&&29===e.date()?(n=Ye(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Te,Ne=/\d/,Ce=/\d\d/,Pe=/\d{3}/,Le=/\d{4}/,We=/[+-]?\d{6}/,Ee=/\d\d?/,Re=/\d\d\d\d?/,Ve=/\d\d\d\d\d\d?/,He=/\d{1,3}/,Ue=/\d{1,4}/,Fe=/[+-]?\d{1,6}/,je=/\d+/,Ae=/[+-]?\d+/,Ie=/Z|[+-]\d\d:?\d\d/gi,Ge=/Z|[+-]\d\d(?::?\d\d)?/gi,$e=/[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;function ze(e,t,n){Te[e]=ae(t)?t:function(e,i){return e&&n?n:t}}function Ze(e,t){return U(Te,e)?Te[e](t._strict,t._locale):new RegExp(Be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,s){return t||n||i||s}))))}function Be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Te={};var qe={};function Qe(e,t){var n,i,s=t;for("string"==typeof e&&(e=[e]),A(t)&&(s=function(e,n){n[t]=Ye(e)}),i=e.length,n=0;n68?1900:2e3)};var dt=be("FullYear",!0);function ct(e,t,n,i,s,r,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,i,s,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,i,s,r,a),o}function ft(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function mt(e,t,n){var i=7+t-n;return-((7+ft(e,0,i).getUTCDay()-t)%7)+i-1}function _t(e,t,n,i,s){var r,a,o=1+7*(t-1)+(7+n-i)%7+mt(e,i,s);return o<=0?a=ht(r=e-1)+o:o>ht(e)?(r=e+1,a=o-ht(e)):(r=e,a=o),{year:r,dayOfYear:a}}function yt(e,t,n){var i,s,r=mt(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?i=a+pt(s=e.year()-1,t,n):a>pt(e.year(),t,n)?(i=a-pt(e.year(),t,n),s=e.year()+1):(s=e.year(),i=a),{week:i,year:s}}function pt(e,t,n){var i=mt(e,t,n),s=mt(e+1,t,n);return(ht(e)-i+s)/7}me("w",["ww",2],"wo","week"),me("W",["WW",2],"Wo","isoWeek"),ge("week","w"),ge("isoWeek","W"),ke("week",5),ke("isoWeek",5),ze("w",Ee),ze("ww",Ee,Ce),ze("W",Ee),ze("WW",Ee,Ce),Je(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=Ye(e)}));function gt(e,t){return e.slice(t,7).concat(e.slice(0,t))}me("d",0,"do","day"),me("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),me("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),me("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),me("e",0,0,"weekday"),me("E",0,0,"isoWeekday"),ge("day","d"),ge("weekday","e"),ge("isoWeekday","E"),ke("day",11),ke("weekday",11),ke("isoWeekday",11),ze("d",Ee),ze("e",Ee),ze("E",Ee),ze("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ze("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ze("dddd",(function(e,t){return t.weekdaysRegex(e)})),Je(["dd","ddd","dddd"],(function(e,t,n,i){var s=n._locale.weekdaysParse(e,i,n._strict);null!=s?t.d=s:Z(n).invalidWeekday=e})),Je(["d","e","E"],(function(e,t,n,i){t[i]=Ye(e)}));var vt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),wt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kt=$e,St=$e,Dt=$e;function Yt(e,t,n){var i,s,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=z([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(s=Ke.call(this._weekdaysParse,a))?s:null:"ddd"===t?-1!==(s=Ke.call(this._shortWeekdaysParse,a))?s:null:-1!==(s=Ke.call(this._minWeekdaysParse,a))?s:null:"dddd"===t?-1!==(s=Ke.call(this._weekdaysParse,a))||-1!==(s=Ke.call(this._shortWeekdaysParse,a))||-1!==(s=Ke.call(this._minWeekdaysParse,a))?s:null:"ddd"===t?-1!==(s=Ke.call(this._shortWeekdaysParse,a))||-1!==(s=Ke.call(this._weekdaysParse,a))||-1!==(s=Ke.call(this._minWeekdaysParse,a))?s:null:-1!==(s=Ke.call(this._minWeekdaysParse,a))||-1!==(s=Ke.call(this._weekdaysParse,a))||-1!==(s=Ke.call(this._shortWeekdaysParse,a))?s:null}function bt(){function e(e,t){return t.length-e.length}var t,n,i,s,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=z([2e3,1]).day(t),i=Be(this.weekdaysMin(n,"")),s=Be(this.weekdaysShort(n,"")),r=Be(this.weekdays(n,"")),a.push(i),o.push(s),u.push(r),l.push(i),l.push(s),l.push(r);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ot(){return this.hours()%12||12}function xt(e,t){me(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Tt(e,t){return t._meridiemParse}me("H",["HH",2],0,"hour"),me("h",["hh",2],0,Ot),me("k",["kk",2],0,(function(){return this.hours()||24})),me("hmm",0,0,(function(){return""+Ot.apply(this)+le(this.minutes(),2)})),me("hmmss",0,0,(function(){return""+Ot.apply(this)+le(this.minutes(),2)+le(this.seconds(),2)})),me("Hmm",0,0,(function(){return""+this.hours()+le(this.minutes(),2)})),me("Hmmss",0,0,(function(){return""+this.hours()+le(this.minutes(),2)+le(this.seconds(),2)})),xt("a",!0),xt("A",!1),ge("hour","h"),ke("hour",13),ze("a",Tt),ze("A",Tt),ze("H",Ee),ze("h",Ee),ze("k",Ee),ze("HH",Ee,Ce),ze("hh",Ee,Ce),ze("kk",Ee,Ce),ze("hmm",Re),ze("hmmss",Ve),ze("Hmm",Re),ze("Hmmss",Ve),Qe(["H","HH"],3),Qe(["k","kk"],(function(e,t,n){var i=Ye(e);t[3]=24===i?0:i})),Qe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Qe(["h","hh"],(function(e,t,n){t[3]=Ye(e),Z(n).bigHour=!0})),Qe("hmm",(function(e,t,n){var i=e.length-2;t[3]=Ye(e.substr(0,i)),t[4]=Ye(e.substr(i)),Z(n).bigHour=!0})),Qe("hmmss",(function(e,t,n){var i=e.length-4,s=e.length-2;t[3]=Ye(e.substr(0,i)),t[4]=Ye(e.substr(i,2)),t[5]=Ye(e.substr(s)),Z(n).bigHour=!0})),Qe("Hmm",(function(e,t,n){var i=e.length-2;t[3]=Ye(e.substr(0,i)),t[4]=Ye(e.substr(i))})),Qe("Hmmss",(function(e,t,n){var i=e.length-4,s=e.length-2;t[3]=Ye(e.substr(0,i)),t[4]=Ye(e.substr(i,2)),t[5]=Ye(e.substr(s))}));var Nt=be("Hours",!0);var Ct,Pt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:tt,monthsShort:nt,week:{dow:0,doy:6},weekdays:vt,weekdaysMin:Mt,weekdaysShort:wt,meridiemParse:/[ap]\.?m?\.?/i},Lt={},Wt={};function Et(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n0;){if(i=Vt(s.slice(0,t).join("-")))return i;if(n&&n.length>=t&&Et(s,n)>=t-1)break;t--}r++}return Ct}(e)}function jt(e){var t,n=e._a;return n&&-2===Z(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>et(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,Z(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),Z(e)._overflowWeeks&&-1===t&&(t=7),Z(e)._overflowWeekday&&-1===t&&(t=8),Z(e).overflow=t),e}var At=/^\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)?)?$/,It=/^\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)?)?$/,Gt=/Z|[+-]\d\d(?::?\d\d)?/,$t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],zt=[["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/]],Zt=/^\/?Date\((-?\d+)/i,Bt=/^(?:(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}))$/,qt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Qt(e){var t,n,i,s,r,a,o=e._i,u=At.exec(o)||It.exec(o),l=$t.length,h=zt.length;if(u){for(Z(e).iso=!0,t=0,n=l;t7)&&(u=!0)):(r=e._locale._week.dow,a=e._locale._week.doy,l=yt(rn(),r,a),n=Kt(t.gg,e._a[0],l.year),i=Kt(t.w,l.week),null!=t.d?((s=t.d)<0||s>6)&&(u=!0):null!=t.e?(s=t.e+r,(t.e<0||t.e>6)&&(u=!0)):s=r);i<1||i>pt(n,r,a)?Z(e)._overflowWeeks=!0:null!=u?Z(e)._overflowWeekday=!0:(o=_t(n,i,s,r,a),e._a[0]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=Kt(e._a[0],i[0]),(e._dayOfYear>ht(r)||0===e._dayOfYear)&&(Z(e)._overflowDayOfYear=!0),n=ft(r,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?ft:ct).apply(null,a),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(Z(e).weekdayMismatch=!0)}}function tn(e){if(e._f!==R.ISO_8601)if(e._f!==R.RFC_2822){e._a=[],Z(e).empty=!0;var t,n,i,s,r,a,o,u=""+e._i,l=u.length,h=0;for(o=(i=ye(e._f,e._locale).match(he)||[]).length,t=0;t0&&Z(e).unusedInput.push(r),u=u.slice(u.indexOf(n)+n.length),h+=n.length),fe[s]?(n?Z(e).empty=!1:Z(e).unusedTokens.push(s),Xe(s,n,e)):e._strict&&!n&&Z(e).unusedTokens.push(s);Z(e).charsLeftOver=l-h,u.length>0&&Z(e).unusedInput.push(u),e._a[3]<=12&&!0===Z(e).bigHour&&e._a[3]>0&&(Z(e).bigHour=void 0),Z(e).parsedDateParts=e._a.slice(0),Z(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(a=Z(e).era)&&(e._a[0]=e._locale.erasConvertYear(a,e._a[0])),en(e),jt(e)}else Xt(e);else Qt(e)}function nn(e){var t=e._i,n=e._f;return e._locale=e._locale||Ft(e._l),null===t||void 0===n&&""===t?q({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),ee(t)?new K(jt(t)):(I(t)?e._d=t:V(n)?function(e){var t,n,i,s,r,a,o=!1,u=e._f.length;if(0===u)return Z(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;sthis?this:e:q()}));function un(e,t){var n,i;if(1===t.length&&V(t[0])&&(t=t[0]),!t.length)return rn();for(n=t[0],i=1;i=0?new Date(e+400,t,n)-Hn:new Date(e,t,n).valueOf()}function jn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Hn:Date.UTC(e,t,n)}function An(e,t){return t.erasAbbrRegex(e)}function In(){var e,t,n=[],i=[],s=[],r=[],a=this.eras();for(e=0,t=a.length;e(r=pt(e,i,s))&&(t=r),zn.call(this,e,t,n,i,s))}function zn(e,t,n,i,s){var r=_t(e,t,n,i,s),a=ft(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}me("N",0,0,"eraAbbr"),me("NN",0,0,"eraAbbr"),me("NNN",0,0,"eraAbbr"),me("NNNN",0,0,"eraName"),me("NNNNN",0,0,"eraNarrow"),me("y",["y",1],"yo","eraYear"),me("y",["yy",2],0,"eraYear"),me("y",["yyy",3],0,"eraYear"),me("y",["yyyy",4],0,"eraYear"),ze("N",An),ze("NN",An),ze("NNN",An),ze("NNNN",(function(e,t){return t.erasNameRegex(e)})),ze("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),Qe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var s=n._locale.erasParse(e,i,n._strict);s?Z(n).era=s:Z(n).invalidEra=e})),ze("y",je),ze("yy",je),ze("yyy",je),ze("yyyy",je),ze("yo",(function(e,t){return t._eraYearOrdinalRegex||je})),Qe(["y","yy","yyy","yyyy"],0),Qe(["yo"],(function(e,t,n,i){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,s):t[0]=parseInt(e,10)})),me(0,["gg",2],0,(function(){return this.weekYear()%100})),me(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Gn("gggg","weekYear"),Gn("ggggg","weekYear"),Gn("GGGG","isoWeekYear"),Gn("GGGGG","isoWeekYear"),ge("weekYear","gg"),ge("isoWeekYear","GG"),ke("weekYear",1),ke("isoWeekYear",1),ze("G",Ae),ze("g",Ae),ze("GG",Ee,Ce),ze("gg",Ee,Ce),ze("GGGG",Ue,Le),ze("gggg",Ue,Le),ze("GGGGG",Fe,We),ze("ggggg",Fe,We),Je(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=Ye(e)})),Je(["gg","GG"],(function(e,t,n,i){t[i]=R.parseTwoDigitYear(e)})),me("Q",0,"Qo","quarter"),ge("quarter","Q"),ke("quarter",7),ze("Q",Ne),Qe("Q",(function(e,t){t[1]=3*(Ye(e)-1)})),me("D",["DD",2],"Do","date"),ge("date","D"),ke("date",9),ze("D",Ee),ze("DD",Ee,Ce),ze("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Qe(["D","DD"],2),Qe("Do",(function(e,t){t[2]=Ye(e.match(Ee)[0])}));var Zn=be("Date",!0);me("DDD",["DDDD",3],"DDDo","dayOfYear"),ge("dayOfYear","DDD"),ke("dayOfYear",4),ze("DDD",He),ze("DDDD",Pe),Qe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Ye(e)})),me("m",["mm",2],0,"minute"),ge("minute","m"),ke("minute",14),ze("m",Ee),ze("mm",Ee,Ce),Qe(["m","mm"],4);var Bn=be("Minutes",!1);me("s",["ss",2],0,"second"),ge("second","s"),ke("second",15),ze("s",Ee),ze("ss",Ee,Ce),Qe(["s","ss"],5);var qn,Qn,Jn=be("Seconds",!1);for(me("S",0,0,(function(){return~~(this.millisecond()/100)})),me(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),me(0,["SSS",3],0,"millisecond"),me(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),me(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),me(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),me(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),me(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),me(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ge("millisecond","ms"),ke("millisecond",16),ze("S",He,Ne),ze("SS",He,Ce),ze("SSS",He,Pe),qn="SSSS";qn.length<=9;qn+="S")ze(qn,je);function Xn(e,t){t[6]=Ye(1e3*("0."+e))}for(qn="S";qn.length<=9;qn+="S")Qe(qn,Xn);Qn=be("Milliseconds",!1),me("z",0,0,"zoneAbbr"),me("zz",0,0,"zoneName");var Kn=K.prototype;function ei(e){return e}Kn.add=bn,Kn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Tn(arguments[0])?(e=arguments[0],t=void 0):Nn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||rn(),i=yn(n,this).startOf("day"),s=R.calendarFormat(this,i)||"sameElse",r=t&&(ae(t[s])?t[s].call(this,n):t[s]);return this.format(r||this.localeData().calendar(s,this,rn(n)))},Kn.clone=function(){return new K(this)},Kn.diff=function(e,t,n){var i,s,r;if(!this.isValid())return NaN;if(!(i=yn(e,this)).isValid())return NaN;switch(s=6e4*(i.utcOffset()-this.utcOffset()),t=ve(t)){case"year":r=Cn(this,i)/12;break;case"month":r=Cn(this,i);break;case"quarter":r=Cn(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-s)/864e5;break;case"week":r=(this-i-s)/6048e5;break;default:r=this-i}return n?r:De(r)},Kn.endOf=function(e){var t,n;if(void 0===(e=ve(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?jn:Fn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Vn-Un(t+(this._isUTC?0:this.utcOffset()*Rn),Vn)-1;break;case"minute":t=this._d.valueOf(),t+=Rn-Un(t,Rn)-1;break;case"second":t=this._d.valueOf(),t+=En-Un(t,En)-1}return this._d.setTime(t),R.updateOffset(this,!0),this},Kn.format=function(e){e||(e=this.isUtc()?R.defaultFormatUtc:R.defaultFormat);var t=_e(this,e);return this.localeData().postformat(t)},Kn.from=function(e,t){return this.isValid()&&(ee(e)&&e.isValid()||rn(e).isValid())?Mn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Kn.fromNow=function(e){return this.from(rn(),e)},Kn.to=function(e,t){return this.isValid()&&(ee(e)&&e.isValid()||rn(e).isValid())?Mn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Kn.toNow=function(e){return this.to(rn(),e)},Kn.get=function(e){return ae(this[e=ve(e)])?this[e]():this},Kn.invalidAt=function(){return Z(this).overflow},Kn.isAfter=function(e,t){var n=ee(e)?e:rn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ve(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?_e(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ae(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",_e(n,"Z")):_e(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Kn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",s="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=s+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Kn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Kn.toJSON=function(){return this.isValid()?this.toISOString():null},Kn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Kn.unix=function(){return Math.floor(this.valueOf()/1e3)},Kn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Kn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Kn.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Kn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Kn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Kn.isUtc=gn,Kn.isUTC=gn,Kn.zoneAbbr=function(){return this._isUTC?"UTC":""},Kn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Kn.dates=ne("dates accessor is deprecated. Use date instead.",Zn),Kn.months=ne("months accessor is deprecated. Use month instead",ut),Kn.years=ne("years accessor is deprecated. Use year instead",dt),Kn.zone=ne("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),Kn.isDSTShifted=ne("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!j(this._isDSTShifted))return this._isDSTShifted;var e,t={};return X(t,this),(t=nn(t))._a?(e=t._isUTC?z(t._a):rn(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted}));var ti=ue.prototype;function ni(e,t,n,i){var s=Ft(),r=z().set(i,t);return s[n](r,e)}function ii(e,t,n){if(A(e)&&(t=e,e=void 0),e=e||"",null!=t)return ni(e,t,n,"month");var i,s=[];for(i=0;i<12;i++)s[i]=ni(e,i,n,"month");return s}function si(e,t,n,i){"boolean"==typeof e?(A(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,A(t)&&(n=t,t=void 0),t=t||"");var s,r=Ft(),a=e?r._week.dow:0,o=[];if(null!=n)return ni(t,(n+a)%7,i,"day");for(s=0;s<7;s++)o[s]=ni(t,(s+a)%7,i,"day");return o}ti.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return ae(i)?i.call(t,n):i},ti.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(he).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},ti.invalidDate=function(){return this._invalidDate},ti.ordinal=function(e){return this._ordinal.replace("%d",e)},ti.preparse=ei,ti.postformat=ei,ti.relativeTime=function(e,t,n,i){var s=this._relativeTime[n];return ae(s)?s(e,t,n,i):s.replace(/%d/i,e)},ti.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return ae(n)?n(t):n.replace(/%s/i,t)},ti.set=function(e){var t,n;for(n in e)U(e,n)&&(ae(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ti.eras=function(e,t){var n,i,s,r=this._eras||Ft("en")._eras;for(n=0,i=r.length;n=0)return u[i]},ti.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?R(e.since).year():R(e.since).year()+(t-e.offset)*n},ti.erasAbbrRegex=function(e){return U(this,"_erasAbbrRegex")||In.call(this),e?this._erasAbbrRegex:this._erasRegex},ti.erasNameRegex=function(e){return U(this,"_erasNameRegex")||In.call(this),e?this._erasNameRegex:this._erasRegex},ti.erasNarrowRegex=function(e){return U(this,"_erasNarrowRegex")||In.call(this),e?this._erasNarrowRegex:this._erasRegex},ti.months=function(e,t){return e?V(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||it).test(t)?"format":"standalone"][e.month()]:V(this._months)?this._months:this._months.standalone},ti.monthsShort=function(e,t){return e?V(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[it.test(t)?"format":"standalone"][e.month()]:V(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ti.monthsParse=function(e,t,n){var i,s,r;if(this._monthsParseExact)return at.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=z([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},ti.monthsRegex=function(e){return this._monthsParseExact?(U(this,"_monthsRegex")||lt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(U(this,"_monthsRegex")||(this._monthsRegex=rt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ti.monthsShortRegex=function(e){return this._monthsParseExact?(U(this,"_monthsRegex")||lt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(U(this,"_monthsShortRegex")||(this._monthsShortRegex=st),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ti.week=function(e){return yt(e,this._week.dow,this._week.doy).week},ti.firstDayOfYear=function(){return this._week.doy},ti.firstDayOfWeek=function(){return this._week.dow},ti.weekdays=function(e,t){var n=V(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?gt(n,this._week.dow):e?n[e.day()]:n},ti.weekdaysMin=function(e){return!0===e?gt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},ti.weekdaysShort=function(e){return!0===e?gt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},ti.weekdaysParse=function(e,t,n){var i,s,r;if(this._weekdaysParseExact)return Yt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(s=z([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},ti.weekdaysRegex=function(e){return this._weekdaysParseExact?(U(this,"_weekdaysRegex")||bt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(U(this,"_weekdaysRegex")||(this._weekdaysRegex=kt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ti.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(U(this,"_weekdaysRegex")||bt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(U(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=St),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ti.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(U(this,"_weekdaysRegex")||bt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(U(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Dt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ti.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ti.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},Ht("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;return e+(1===Ye(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),R.lang=ne("moment.lang is deprecated. Use moment.locale instead.",Ht),R.langData=ne("moment.langData is deprecated. Use moment.localeData instead.",Ft);var ri=Math.abs;function ai(e,t,n,i){var s=Mn(t,n);return e._milliseconds+=i*s._milliseconds,e._days+=i*s._days,e._months+=i*s._months,e._bubble()}function oi(e){return e<0?Math.floor(e):Math.ceil(e)}function ui(e){return 4800*e/146097}function li(e){return 146097*e/4800}function hi(e){return function(){return this.as(e)}}var di=hi("ms"),ci=hi("s"),fi=hi("m"),mi=hi("h"),_i=hi("d"),yi=hi("w"),pi=hi("M"),gi=hi("Q"),vi=hi("y");function wi(e){return function(){return this.isValid()?this._data[e]:NaN}}var Mi=wi("milliseconds"),ki=wi("seconds"),Si=wi("minutes"),Di=wi("hours"),Yi=wi("days"),bi=wi("months"),Oi=wi("years");var xi=Math.round,Ti={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ni(e,t,n,i,s){return s.relativeTime(t||1,!!n,e,i)}var Ci=Math.abs;function Pi(e){return(e>0)-(e<0)||+e}function Li(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,s,r,a,o,u=Ci(this._milliseconds)/1e3,l=Ci(this._days),h=Ci(this._months),d=this.asSeconds();return d?(e=De(u/60),t=De(e/60),u%=60,e%=60,n=De(h/12),h%=12,i=u?u.toFixed(3).replace(/\.?0+$/,""):"",s=d<0?"-":"",r=Pi(this._months)!==Pi(d)?"-":"",a=Pi(this._days)!==Pi(d)?"-":"",o=Pi(this._milliseconds)!==Pi(d)?"-":"",s+"P"+(n?r+n+"Y":"")+(h?r+h+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+i+"S":"")):"P0D"}var Wi=hn.prototype;Wi.isValid=function(){return this._isValid},Wi.abs=function(){var e=this._data;return this._milliseconds=ri(this._milliseconds),this._days=ri(this._days),this._months=ri(this._months),e.milliseconds=ri(e.milliseconds),e.seconds=ri(e.seconds),e.minutes=ri(e.minutes),e.hours=ri(e.hours),e.months=ri(e.months),e.years=ri(e.years),this},Wi.add=function(e,t){return ai(this,e,t,1)},Wi.subtract=function(e,t){return ai(this,e,t,-1)},Wi.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=ve(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+ui(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(li(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Wi.asMilliseconds=di,Wi.asSeconds=ci,Wi.asMinutes=fi,Wi.asHours=mi,Wi.asDays=_i,Wi.asWeeks=yi,Wi.asMonths=pi,Wi.asQuarters=gi,Wi.asYears=vi,Wi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Ye(this._months/12):NaN},Wi._bubble=function(){var e,t,n,i,s,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*oi(li(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=De(r/1e3),u.seconds=e%60,t=De(e/60),u.minutes=t%60,n=De(t/60),u.hours=n%24,a+=De(n/24),o+=s=De(ui(a)),a-=oi(li(s)),i=De(o/12),o%=12,u.days=a,u.months=o,u.years=i,this},Wi.clone=function(){return Mn(this)},Wi.get=function(e){return e=ve(e),this.isValid()?this[e+"s"]():NaN},Wi.milliseconds=Mi,Wi.seconds=ki,Wi.minutes=Si,Wi.hours=Di,Wi.days=Yi,Wi.weeks=function(){return De(this.days()/7)},Wi.months=bi,Wi.years=Oi,Wi.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,s=!1,r=Ti;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(s=e),"object"==typeof t&&(r=Object.assign({},Ti,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),i=function(e,t,n,i){var s=Mn(e).abs(),r=xi(s.as("s")),a=xi(s.as("m")),o=xi(s.as("h")),u=xi(s.as("d")),l=xi(s.as("M")),h=xi(s.as("w")),d=xi(s.as("y")),c=r<=n.ss&&["s",r]||r0,c[4]=i,Ni.apply(null,c)}(this,!s,r,n=this.localeData()),s&&(i=n.pastFuture(+this,i)),n.postformat(i)},Wi.toISOString=Li,Wi.toString=Li,Wi.toJSON=Li,Wi.locale=Pn,Wi.localeData=Wn,Wi.toIsoString=ne("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Li),Wi.lang=Ln,me("X",0,0,"unix"),me("x",0,0,"valueOf"),ze("x",Ae),ze("X",/[+-]?\d+(\.\d{1,3})?/),Qe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Qe("x",(function(e,t,n){n._d=new Date(Ye(e))})),//! moment.js R.version="2.29.3",W=rn,R.fn=Kn,R.min=function(){var e=[].slice.call(arguments,0);return un("isBefore",e)},R.max=function(){var e=[].slice.call(arguments,0);return un("isAfter",e)},R.now=function(){return Date.now?Date.now():+new Date},R.utc=z,R.unix=function(e){return rn(1e3*e)},R.months=function(e,t){return ii(e,t,"months")},R.isDate=I,R.locale=Ht,R.invalid=q,R.duration=Mn,R.isMoment=ee,R.weekdays=function(e,t,n){return si(e,t,n,"weekdays")},R.parseZone=function(){return rn.apply(null,arguments).parseZone()},R.localeData=Ft,R.isDuration=dn,R.monthsShort=function(e,t){return ii(e,t,"monthsShort")},R.weekdaysMin=function(e,t,n){return si(e,t,n,"weekdaysMin")},R.defineLocale=Ut,R.updateLocale=function(e,t){if(null!=t){var n,i,s=Pt;null!=Lt[e]&&null!=Lt[e].parentLocale?Lt[e].set(oe(Lt[e]._config,t)):(null!=(i=Vt(e))&&(s=i._config),t=oe(s,t),null==i&&(t.abbr=e),(n=new ue(t)).parentLocale=Lt[e],Lt[e]=n),Ht(e)}else null!=Lt[e]&&(null!=Lt[e].parentLocale?(Lt[e]=Lt[e].parentLocale,e===Ht()&&Ht(e)):null!=Lt[e]&&delete Lt[e]);return Lt[e]},R.locales=function(){return ie(Lt)},R.weekdaysShort=function(e,t,n){return si(e,t,n,"weekdaysShort")},R.normalizeUnits=ve,R.relativeTimeRounding=function(e){return void 0===e?xi:"function"==typeof e&&(xi=e,!0)},R.relativeTimeThreshold=function(e,t){return void 0!==Ti[e]&&(void 0===t?Ti[e]:(Ti[e]=t,"s"===e&&(Ti.ss=t-1),!0))},R.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},R.prototype=Kn,R.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"};t("t",((e="")=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase()));const Ei=(e,t=[])=>{const n=[],i=function(e,t){if(!Array.isArray(t))return null;for(let s=0,r=t.length;s{var e,i,s,r;return(null===(e=t.value)||void 0===e||null===(i=e.items)||void 0===i?void 0:i.find((e=>e.id===n.value)))||(null===(s=t.value)||void 0===s||null===(r=s.items)||void 0===r?void 0:r[0])})),r=new L({config:t.value,platform:"editor"});return Vue.provide("app",r),Vue.watch(s,(async()=>{await Vue.nextTick();const e=document.querySelector(".magic-ui-page");e&&window.magic.onPageElUpdate(e)})),null===(e=window.magic)||void 0===e||e.onRuntimeReady({getApp:()=>r,updateRootConfig(e){console.log("update config",e),t.value=e,null==r||r.setConfig(e,n.value)},updatePageId(e){console.log("update page id",e),n.value=e,null==r||r.setPage(e)},select(e){console.log("select config",e),i.value=e;const t=document.getElementById(`${e}`);return t||Vue.nextTick().then((()=>document.getElementById(`${e}`)))},add({config:e}){var n;if(console.log("add config",e),!t.value)throw new Error("error");if(!i.value)throw new Error("error");const s=Ei(i.value,[t.value]),r=s.pop(),a=null!=r&&r.items?r:s.pop();if(!a)throw new Error("未找到父节点");null===(n=a.items)||void 0===n||n.push(e)},update({config:e}){var n;if(console.log("update config",e),!t.value)throw new Error("error");const i=Ei(e.id,[t.value]),s=i.pop(),r=i.pop();if(!s)throw new Error("未找到目标节点");if(!r)throw new Error("未找到父节点");const a=null===(n=r.items)||void 0===n?void 0:n.findIndex((e=>e.id===s.id));r.items.splice(a,1,Vue.reactive(e))},remove({id:e}){var n;if(!t.value)throw new Error("error");const i=Ei(e,[t.value]),s=i.pop();if(!s)throw new Error("未找到目标元素");const r=i.pop();if(!r)throw new Error("未找到父元素");const a=null===(n=r.items)||void 0===n?void 0:n.findIndex((e=>e.id===s.id));r.items.splice(a,1)}}),{pageConfig:s}}});const Vi=t("_",((e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n}))(Ri,[["render",function(e,t,n,i,s,r){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)}],["__file","/data/magic/tmagic-editor/runtime/vue3/playground/App.vue"]]);Promise.all([i((()=>n.import("./comp-entry-legacy.186b85a8.js"))),i((()=>n.import("./plugin-entry-legacy.7d9da6d6.js")))]).then((([e,t])=>{const n=Vue.createApp(Vi);Object.values(e.default).forEach((e=>{n.component(e.name,e)})),Object.values(t.default).forEach((e=>{n.use(e)})),n.mount("#app")}))}}}))}(); //# sourceMappingURL=index-legacy.ac8fb9e1.js.map