edgeone 1.6.7 → 1.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -142,7 +142,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
|
|
|
142
142
|
`.repeat(e));IK.displayName="Newline";uE.default=IK});var FK=K(cE=>{"use strict";var NK=cE&&cE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cE,"__esModule",{value:!0});var r3e=NK(yo()),n3e=NK(XC()),RK=()=>r3e.default.createElement(n3e.default,{flexGrow:1});RK.displayName="Spacer";cE.default=RK});var tA=K(lE=>{"use strict";var i3e=lE&&lE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lE,"__esModule",{value:!0});var s3e=yo(),o3e=i3e(P3()),a3e=()=>s3e.useContext(o3e.default);lE.default=a3e});var MK=K(pE=>{"use strict";var u3e=pE&&pE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pE,"__esModule",{value:!0});var LK=yo(),c3e=u3e(tA()),l3e=(e,t={})=>{let{stdin:r,setRawMode:s,internal_exitOnCtrlC:a}=c3e.default();LK.useEffect(()=>{if(t.isActive!==!1)return s(!0),()=>{s(!1)}},[t.isActive,s]),LK.useEffect(()=>{if(t.isActive===!1)return;let n=l=>{let f=String(l),m={upArrow:f==="\x1B[A",downArrow:f==="\x1B[B",leftArrow:f==="\x1B[D",rightArrow:f==="\x1B[C",pageDown:f==="\x1B[6~",pageUp:f==="\x1B[5~",return:f==="\r",escape:f==="\x1B",ctrl:!1,shift:!1,tab:f===" "||f==="\x1B[Z",backspace:f==="\b",delete:f==="\x7F"||f==="\x1B[3~",meta:!1};f<=""&&!m.return&&(f=String.fromCharCode(f.charCodeAt(0)+97-1),m.ctrl=!0),f.startsWith("\x1B")&&(f=f.slice(1),m.meta=!0);let y=f>="A"&&f<="Z",v=f>="\u0410"&&f<="\u042F";f.length===1&&(y||v)&&(m.shift=!0),m.tab&&f==="[Z"&&(m.shift=!0),(m.tab||m.backspace||m.delete)&&(f=""),(!(f==="c"&&m.ctrl)||!a)&&e(f,m)};return r==null||r.on("data",n),()=>{r==null||r.off("data",n)}},[t.isActive,r,a,e])};pE.default=l3e});var BK=K(fE=>{"use strict";var p3e=fE&&fE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fE,"__esModule",{value:!0});var f3e=yo(),d3e=p3e(w3()),h3e=()=>f3e.useContext(d3e.default);fE.default=h3e});var jK=K(dE=>{"use strict";var m3e=dE&&dE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dE,"__esModule",{value:!0});var y3e=yo(),g3e=m3e(A3()),v3e=()=>y3e.useContext(g3e.default);dE.default=v3e});var qK=K(hE=>{"use strict";var x3e=hE&&hE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hE,"__esModule",{value:!0});var _3e=yo(),S3e=x3e(k3()),b3e=()=>_3e.useContext(S3e.default);hE.default=b3e});var $K=K(yE=>{"use strict";var UK=yE&&yE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yE,"__esModule",{value:!0});var mE=yo(),E3e=UK(JC()),w3e=UK(tA()),T3e=({isActive:e=!0,autoFocus:t=!1,id:r}={})=>{let{isRawModeSupported:s,setRawMode:a}=w3e.default(),{activeId:n,add:l,remove:f,activate:m,deactivate:y,focus:v}=mE.useContext(E3e.default),b=mE.useMemo(()=>r!=null?r:Math.random().toString().slice(2,7),[r]);return mE.useEffect(()=>(l(b,{autoFocus:t}),()=>{f(b)}),[b,t]),mE.useEffect(()=>{e?m(b):y(b)},[e,b]),mE.useEffect(()=>{if(!(!s||!e))return a(!0),()=>{a(!1)}},[e]),{isFocused:!!b&&n===b,focus:v}};yE.default=T3e});var VK=K(gE=>{"use strict";var P3e=gE&&gE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gE,"__esModule",{value:!0});var C3e=yo(),A3e=P3e(JC()),D3e=()=>{let e=C3e.useContext(A3e.default);return{enableFocus:e.enableFocus,disableFocus:e.disableFocus,focusNext:e.focusNext,focusPrevious:e.focusPrevious,focus:e.focus}};gE.default=D3e});var HK=K(B3=>{"use strict";Object.defineProperty(B3,"__esModule",{value:!0});B3.default=e=>{var t,r,s,a;return{width:(r=(t=e.yogaNode)===null||t===void 0?void 0:t.getComputedWidth())!==null&&r!==void 0?r:0,height:(a=(s=e.yogaNode)===null||s===void 0?void 0:s.getComputedHeight())!==null&&a!==void 0?a:0}}});var rA=K(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var k3e=PK();Object.defineProperty(mc,"render",{enumerable:!0,get:function(){return k3e.default}});var I3e=XC();Object.defineProperty(mc,"Box",{enumerable:!0,get:function(){return I3e.default}});var O3e=L3();Object.defineProperty(mc,"Text",{enumerable:!0,get:function(){return O3e.default}});var N3e=AK();Object.defineProperty(mc,"Static",{enumerable:!0,get:function(){return N3e.default}});var R3e=kK();Object.defineProperty(mc,"Transform",{enumerable:!0,get:function(){return R3e.default}});var F3e=OK();Object.defineProperty(mc,"Newline",{enumerable:!0,get:function(){return F3e.default}});var L3e=FK();Object.defineProperty(mc,"Spacer",{enumerable:!0,get:function(){return L3e.default}});var M3e=MK();Object.defineProperty(mc,"useInput",{enumerable:!0,get:function(){return M3e.default}});var B3e=BK();Object.defineProperty(mc,"useApp",{enumerable:!0,get:function(){return B3e.default}});var j3e=tA();Object.defineProperty(mc,"useStdin",{enumerable:!0,get:function(){return j3e.default}});var q3e=jK();Object.defineProperty(mc,"useStdout",{enumerable:!0,get:function(){return q3e.default}});var U3e=qK();Object.defineProperty(mc,"useStderr",{enumerable:!0,get:function(){return U3e.default}});var $3e=$K();Object.defineProperty(mc,"useFocus",{enumerable:!0,get:function(){return $3e.default}});var V3e=VK();Object.defineProperty(mc,"useFocusManager",{enumerable:!0,get:function(){return V3e.default}});var H3e=HK();Object.defineProperty(mc,"measureElement",{enumerable:!0,get:function(){return H3e.default}})});var WK=K((j3,G2)=>{(function(e,t){typeof j3=="object"&&typeof G2<"u"?G2.exports=t():typeof define=="function"&&define.amd?define(t):e.moment=t()})(j3,function(){"use strict";var e;function t(){return e.apply(null,arguments)}function r(E){e=E}function s(E){return E instanceof Array||Object.prototype.toString.call(E)==="[object Array]"}function a(E){return E!=null&&Object.prototype.toString.call(E)==="[object Object]"}function n(E,I){return Object.prototype.hasOwnProperty.call(E,I)}function l(E){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(E).length===0;var I;for(I in E)if(n(E,I))return!1;return!0}function f(E){return E===void 0}function m(E){return typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]"}function y(E){return E instanceof Date||Object.prototype.toString.call(E)==="[object Date]"}function v(E,I){var q=[],z,ee=E.length;for(z=0;z<ee;++z)q.push(I(E[z],z));return q}function b(E,I){for(var q in I)n(I,q)&&(E[q]=I[q]);return n(I,"toString")&&(E.toString=I.toString),n(I,"valueOf")&&(E.valueOf=I.valueOf),E}function P(E,I,q,z){return i0(E,I,q,z,!0).utc()}function k(){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 g(E){return E._pf==null&&(E._pf=k()),E._pf}var B;Array.prototype.some?B=Array.prototype.some:B=function(E){var I=Object(this),q=I.length>>>0,z;for(z=0;z<q;z++)if(z in I&&E.call(this,I[z],z,I))return!0;return!1};function L(E){var I=null,q=!1,z=E._d&&!isNaN(E._d.getTime());if(z&&(I=g(E),q=B.call(I.parsedDateParts,function(ee){return ee!=null}),z=I.overflow<0&&!I.empty&&!I.invalidEra&&!I.invalidMonth&&!I.invalidWeekday&&!I.weekdayMismatch&&!I.nullInput&&!I.invalidFormat&&!I.userInvalidated&&(!I.meridiem||I.meridiem&&q),E._strict&&(z=z&&I.charsLeftOver===0&&I.unusedTokens.length===0&&I.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(E))E._isValid=z;else return z;return E._isValid}function M(E){var I=P(NaN);return E!=null?b(g(I),E):g(I).userInvalidated=!0,I}var G=t.momentProperties=[],ie=!1;function se(E,I){var q,z,ee,De=G.length;if(f(I._isAMomentObject)||(E._isAMomentObject=I._isAMomentObject),f(I._i)||(E._i=I._i),f(I._f)||(E._f=I._f),f(I._l)||(E._l=I._l),f(I._strict)||(E._strict=I._strict),f(I._tzm)||(E._tzm=I._tzm),f(I._isUTC)||(E._isUTC=I._isUTC),f(I._offset)||(E._offset=I._offset),f(I._pf)||(E._pf=g(I)),f(I._locale)||(E._locale=I._locale),De>0)for(q=0;q<De;q++)z=G[q],ee=I[z],f(ee)||(E[z]=ee);return E}function me(E){se(this,E),this._d=new Date(E._d!=null?E._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ie===!1&&(ie=!0,t.updateOffset(this),ie=!1)}function Ce(E){return E instanceof me||E!=null&&E._isAMomentObject!=null}function Me(E){t.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+E)}function Ve(E,I){var q=!0;return b(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,E),q){var z=[],ee,De,vt,fr=arguments.length;for(De=0;De<fr;De++){if(ee="",typeof arguments[De]=="object"){ee+=`
|
|
143
143
|
[`+De+"] ";for(vt in arguments[0])n(arguments[0],vt)&&(ee+=vt+": "+arguments[0][vt]+", ");ee=ee.slice(0,-2)}else ee=arguments[De];z.push(ee)}Me(E+`
|
|
144
144
|
Arguments: `+Array.prototype.slice.call(z).join("")+`
|
|
145
|
-
`+new Error().stack),q=!1}return I.apply(this,arguments)},I)}var Le={};function Pt(E,I){t.deprecationHandler!=null&&t.deprecationHandler(E,I),Le[E]||(Me(I),Le[E]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function lt(E){return typeof Function<"u"&&E instanceof Function||Object.prototype.toString.call(E)==="[object Function]"}function ut(E){var I,q;for(q in E)n(E,q)&&(I=E[q],lt(I)?this[q]=I:this["_"+q]=I);this._config=E,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function je(E,I){var q=b({},E),z;for(z in I)n(I,z)&&(a(E[z])&&a(I[z])?(q[z]={},b(q[z],E[z]),b(q[z],I[z])):I[z]!=null?q[z]=I[z]:delete q[z]);for(z in E)n(E,z)&&!n(I,z)&&a(E[z])&&(q[z]=b({},q[z]));return q}function oe(E){E!=null&&this.set(E)}var ke;Object.keys?ke=Object.keys:ke=function(E){var I,q=[];for(I in E)n(E,I)&&q.push(I);return q};var Ke={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Se(E,I,q){var z=this._calendar[E]||this._calendar.sameElse;return lt(z)?z.call(I,q):z}function we(E,I,q){var z=""+Math.abs(E),ee=I-z.length,De=E>=0;return(De?q?"+":"":"-")+Math.pow(10,Math.max(0,ee)).toString().substr(1)+z}var Fe=/(\[[^\[]*\])|(\\)?([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,it=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,It={},Zt={};function Qe(E,I,q,z){var ee=z;typeof z=="string"&&(ee=function(){return this[z]()}),E&&(Zt[E]=ee),I&&(Zt[I[0]]=function(){return we(ee.apply(this,arguments),I[1],I[2])}),q&&(Zt[q]=function(){return this.localeData().ordinal(ee.apply(this,arguments),E)})}function Ot(E){return E.match(/\[[\s\S]/)?E.replace(/^\[|\]$/g,""):E.replace(/\\/g,"")}function Ae(E){var I=E.match(Fe),q,z;for(q=0,z=I.length;q<z;q++)Zt[I[q]]?I[q]=Zt[I[q]]:I[q]=Ot(I[q]);return function(ee){var De="",vt;for(vt=0;vt<z;vt++)De+=lt(I[vt])?I[vt].call(ee,E):I[vt];return De}}function Ze(E,I){return E.isValid()?(I=at(I,E.localeData()),It[I]=It[I]||Ae(I),It[I](E)):E.localeData().invalidDate()}function at(E,I){var q=5;function z(ee){return I.longDateFormat(ee)||ee}for(it.lastIndex=0;q>=0&&it.test(E);)E=E.replace(it,z),it.lastIndex=0,q-=1;return E}var qt={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 wt(E){var I=this._longDateFormat[E],q=this._longDateFormat[E.toUpperCase()];return I||!q?I:(this._longDateFormat[E]=q.match(Fe).map(function(z){return z==="MMMM"||z==="MM"||z==="DD"||z==="dddd"?z.slice(1):z}).join(""),this._longDateFormat[E])}var pt="Invalid date";function ht(){return this._invalidDate}var C="%d",Ct=/\d{1,2}/;function Kt(E){return this._ordinal.replace("%d",E)}var Jr={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 xt(E,I,q,z){var ee=this._relativeTime[q];return lt(ee)?ee(E,I,q,z):ee.replace(/%d/i,E)}function St(E,I){var q=this._relativeTime[E>0?"future":"past"];return lt(q)?q(I):q.replace(/%s/i,I)}var tr={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ge(E){return typeof E=="string"?tr[E]||tr[E.toLowerCase()]:void 0}function Ye(E){var I={},q,z;for(z in E)n(E,z)&&(q=ge(z),q&&(I[q]=E[z]));return I}var Ut={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function rr(E){var I=[],q;for(q in E)n(E,q)&&I.push({unit:q,priority:Ut[q]});return I.sort(function(z,ee){return z.priority-ee.priority}),I}var Ur=/\d/,$r=/\d\d/,Hn=/\d{3}/,jn=/\d{4}/,ei=/[+-]?\d{6}/,bn=/\d\d?/,Vo=/\d\d\d\d?/,ra=/\d\d\d\d\d\d?/,ls=/\d{1,3}/,Ho=/\d{1,4}/,Gu=/[+-]?\d{1,6}/,Ja=/\d+/,rt=/[+-]?\d+/,Ft=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,Jt=/[+-]?\d+(\.\d{1,3})?/,Ir=/[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,xr=/^[1-9]\d?/,In=/^([1-9]\d|\d)/,xi;xi={};function Mt(E,I,q){xi[E]=lt(I)?I:function(z,ee){return z&&q?q:I}}function Ci(E,I){return n(xi,E)?xi[E](I._strict,I._locale):new RegExp(Ts(E))}function Ts(E){return Ai(E.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(I,q,z,ee,De){return q||z||ee||De}))}function Ai(E){return E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _i(E){return E<0?Math.ceil(E)||0:Math.floor(E)}function sn(E){var I=+E,q=0;return I!==0&&isFinite(I)&&(q=_i(I)),q}var Ws={};function On(E,I){var q,z=I,ee;for(typeof E=="string"&&(E=[E]),m(I)&&(z=function(De,vt){vt[I]=sn(De)}),ee=E.length,q=0;q<ee;q++)Ws[E[q]]=z}function _s(E,I){On(E,function(q,z,ee,De){ee._w=ee._w||{},I(q,ee._w,ee,De)})}function Ku(E,I,q){I!=null&&n(Ws,E)&&Ws[E](I,q._a,q,E)}function to(E){return E%4===0&&E%100!==0||E%400===0}var ur=0,Do=1,co=2,Ps=3,ko=4,lo=5,Bs=6,nl=7,yu=8;Qe("Y",0,0,function(){var E=this.year();return E<=9999?we(E,4):"+"+E}),Qe(0,["YY",2],0,function(){return this.year()%100}),Qe(0,["YYYY",4],0,"year"),Qe(0,["YYYYY",5],0,"year"),Qe(0,["YYYYYY",6,!0],0,"year"),Mt("Y",rt),Mt("YY",bn,$r),Mt("YYYY",Ho,jn),Mt("YYYYY",Gu,ei),Mt("YYYYYY",Gu,ei),On(["YYYYY","YYYYYY"],ur),On("YYYY",function(E,I){I[ur]=E.length===2?t.parseTwoDigitYear(E):sn(E)}),On("YY",function(E,I){I[ur]=t.parseTwoDigitYear(E)}),On("Y",function(E,I){I[ur]=parseInt(E,10)});function La(E){return to(E)?366:365}t.parseTwoDigitYear=function(E){return sn(E)+(sn(E)>68?1900:2e3)};var Yu=tn("FullYear",!0);function ql(){return to(this.year())}function tn(E,I){return function(q){return q!=null?(il(this,E,q),t.updateOffset(this,I),this):bc(this,E)}}function bc(E,I){if(!E.isValid())return NaN;var q=E._d,z=E._isUTC;switch(I){case"Milliseconds":return z?q.getUTCMilliseconds():q.getMilliseconds();case"Seconds":return z?q.getUTCSeconds():q.getSeconds();case"Minutes":return z?q.getUTCMinutes():q.getMinutes();case"Hours":return z?q.getUTCHours():q.getHours();case"Date":return z?q.getUTCDate():q.getDate();case"Day":return z?q.getUTCDay():q.getDay();case"Month":return z?q.getUTCMonth():q.getMonth();case"FullYear":return z?q.getUTCFullYear():q.getFullYear();default:return NaN}}function il(E,I,q){var z,ee,De,vt,fr;if(!(!E.isValid()||isNaN(q))){switch(z=E._d,ee=E._isUTC,I){case"Milliseconds":return void(ee?z.setUTCMilliseconds(q):z.setMilliseconds(q));case"Seconds":return void(ee?z.setUTCSeconds(q):z.setSeconds(q));case"Minutes":return void(ee?z.setUTCMinutes(q):z.setMinutes(q));case"Hours":return void(ee?z.setUTCHours(q):z.setHours(q));case"Date":return void(ee?z.setUTCDate(q):z.setDate(q));case"FullYear":break;default:return}De=q,vt=E.month(),fr=E.date(),fr=fr===29&&vt===1&&!to(De)?28:fr,ee?z.setUTCFullYear(De,vt,fr):z.setFullYear(De,vt,fr)}}function gu(E){return E=ge(E),lt(this[E])?this[E]():this}function ps(E,I){if(typeof E=="object"){E=Ye(E);var q=rr(E),z,ee=q.length;for(z=0;z<ee;z++)this[q[z].unit](E[q[z].unit])}else if(E=ge(E),lt(this[E]))return this[E](I);return this}function Yi(E,I){return(E%I+I)%I}var Mi;Array.prototype.indexOf?Mi=Array.prototype.indexOf:Mi=function(E){var I;for(I=0;I<this.length;++I)if(this[I]===E)return I;return-1};function zs(E,I){if(isNaN(E)||isNaN(I))return NaN;var q=Yi(I,12);return E+=(I-q)/12,q===1?to(E)?29:28:31-q%7%2}Qe("M",["MM",2],"Mo",function(){return this.month()+1}),Qe("MMM",0,0,function(E){return this.localeData().monthsShort(this,E)}),Qe("MMMM",0,0,function(E){return this.localeData().months(this,E)}),Mt("M",bn,xr),Mt("MM",bn,$r),Mt("MMM",function(E,I){return I.monthsShortRegex(E)}),Mt("MMMM",function(E,I){return I.monthsRegex(E)}),On(["M","MM"],function(E,I){I[Do]=sn(E)-1}),On(["MMM","MMMM"],function(E,I,q,z){var ee=q._locale.monthsParse(E,z,q._strict);ee!=null?I[Do]=ee:g(q).invalidMonth=E});var Io="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ma="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),na=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oo=Ir,Ul=Ir;function fm(E,I){return E?s(this._months)?this._months[E.month()]:this._months[(this._months.isFormat||na).test(I)?"format":"standalone"][E.month()]:s(this._months)?this._months:this._months.standalone}function Mp(E,I){return E?s(this._monthsShort)?this._monthsShort[E.month()]:this._monthsShort[na.test(I)?"format":"standalone"][E.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function $l(E,I,q){var z,ee,De,vt=E.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],z=0;z<12;++z)De=P([2e3,z]),this._shortMonthsParse[z]=this.monthsShort(De,"").toLocaleLowerCase(),this._longMonthsParse[z]=this.months(De,"").toLocaleLowerCase();return q?I==="MMM"?(ee=Mi.call(this._shortMonthsParse,vt),ee!==-1?ee:null):(ee=Mi.call(this._longMonthsParse,vt),ee!==-1?ee:null):I==="MMM"?(ee=Mi.call(this._shortMonthsParse,vt),ee!==-1?ee:(ee=Mi.call(this._longMonthsParse,vt),ee!==-1?ee:null)):(ee=Mi.call(this._longMonthsParse,vt),ee!==-1?ee:(ee=Mi.call(this._shortMonthsParse,vt),ee!==-1?ee:null))}function ba(E,I,q){var z,ee,De;if(this._monthsParseExact)return $l.call(this,E,I,q);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),z=0;z<12;z++){if(ee=P([2e3,z]),q&&!this._longMonthsParse[z]&&(this._longMonthsParse[z]=new RegExp("^"+this.months(ee,"").replace(".","")+"$","i"),this._shortMonthsParse[z]=new RegExp("^"+this.monthsShort(ee,"").replace(".","")+"$","i")),!q&&!this._monthsParse[z]&&(De="^"+this.months(ee,"")+"|^"+this.monthsShort(ee,""),this._monthsParse[z]=new RegExp(De.replace(".",""),"i")),q&&I==="MMMM"&&this._longMonthsParse[z].test(E))return z;if(q&&I==="MMM"&&this._shortMonthsParse[z].test(E))return z;if(!q&&this._monthsParse[z].test(E))return z}}function jt(E,I){if(!E.isValid())return E;if(typeof I=="string"){if(/^\d+$/.test(I))I=sn(I);else if(I=E.localeData().monthsParse(I),!m(I))return E}var q=I,z=E.date();return z=z<29?z:Math.min(z,zs(E.year(),q)),E._isUTC?E._d.setUTCMonth(q,z):E._d.setMonth(q,z),E}function vu(E){return E!=null?(jt(this,E),t.updateOffset(this,!0),this):bc(this,"Month")}function dm(){return zs(this.year(),this.month())}function Bp(E){return this._monthsParseExact?(n(this,"_monthsRegex")||Ec.call(this),E?this._monthsShortStrictRegex:this._monthsShortRegex):(n(this,"_monthsShortRegex")||(this._monthsShortRegex=Oo),this._monthsShortStrictRegex&&E?this._monthsShortStrictRegex:this._monthsShortRegex)}function rs(E){return this._monthsParseExact?(n(this,"_monthsRegex")||Ec.call(this),E?this._monthsStrictRegex:this._monthsRegex):(n(this,"_monthsRegex")||(this._monthsRegex=Ul),this._monthsStrictRegex&&E?this._monthsStrictRegex:this._monthsRegex)}function Ec(){function E(fn,fi){return fi.length-fn.length}var I=[],q=[],z=[],ee,De,vt,fr;for(ee=0;ee<12;ee++)De=P([2e3,ee]),vt=Ai(this.monthsShort(De,"")),fr=Ai(this.months(De,"")),I.push(vt),q.push(fr),z.push(fr),z.push(vt);I.sort(E),q.sort(E),z.sort(E),this._monthsRegex=new RegExp("^("+z.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+I.join("|")+")","i")}function Qh(E,I,q,z,ee,De,vt){var fr;return E<100&&E>=0?(fr=new Date(E+400,I,q,z,ee,De,vt),isFinite(fr.getFullYear())&&fr.setFullYear(E)):fr=new Date(E,I,q,z,ee,De,vt),fr}function Cf(E){var I,q;return E<100&&E>=0?(q=Array.prototype.slice.call(arguments),q[0]=E+400,I=new Date(Date.UTC.apply(null,q)),isFinite(I.getUTCFullYear())&&I.setUTCFullYear(E)):I=new Date(Date.UTC.apply(null,arguments)),I}function sl(E,I,q){var z=7+I-q,ee=(7+Cf(E,0,z).getUTCDay()-I)%7;return-ee+z-1}function Bd(E,I,q,z,ee){var De=(7+q-z)%7,vt=sl(E,z,ee),fr=1+7*(I-1)+De+vt,fn,fi;return fr<=0?(fn=E-1,fi=La(fn)+fr):fr>La(E)?(fn=E+1,fi=fr-La(E)):(fn=E,fi=fr),{year:fn,dayOfYear:fi}}function or(E,I,q){var z=sl(E.year(),I,q),ee=Math.floor((E.dayOfYear()-z-1)/7)+1,De,vt;return ee<1?(vt=E.year()-1,De=ee+Bi(vt,I,q)):ee>Bi(E.year(),I,q)?(De=ee-Bi(E.year(),I,q),vt=E.year()+1):(vt=E.year(),De=ee),{week:De,year:vt}}function Bi(E,I,q){var z=sl(E,I,q),ee=sl(E+1,I,q);return(La(E)-z+ee)/7}Qe("w",["ww",2],"wo","week"),Qe("W",["WW",2],"Wo","isoWeek"),Mt("w",bn,xr),Mt("ww",bn,$r),Mt("W",bn,xr),Mt("WW",bn,$r),_s(["w","ww","W","WW"],function(E,I,q,z){I[z.substr(0,1)]=sn(E)});function jd(E){return or(E,this._week.dow,this._week.doy).week}var Vl={dow:0,doy:6};function xu(){return this._week.dow}function Af(){return this._week.doy}function hm(E){var I=this.localeData().week(this);return E==null?I:this.add((E-I)*7,"d")}function Zh(E){var I=or(this,1,4).week;return E==null?I:this.add((E-I)*7,"d")}Qe("d",0,"do","day"),Qe("dd",0,0,function(E){return this.localeData().weekdaysMin(this,E)}),Qe("ddd",0,0,function(E){return this.localeData().weekdaysShort(this,E)}),Qe("dddd",0,0,function(E){return this.localeData().weekdays(this,E)}),Qe("e",0,0,"weekday"),Qe("E",0,0,"isoWeekday"),Mt("d",bn),Mt("e",bn),Mt("E",bn),Mt("dd",function(E,I){return I.weekdaysMinRegex(E)}),Mt("ddd",function(E,I){return I.weekdaysShortRegex(E)}),Mt("dddd",function(E,I){return I.weekdaysRegex(E)}),_s(["dd","ddd","dddd"],function(E,I,q,z){var ee=q._locale.weekdaysParse(E,z,q._strict);ee!=null?I.d=ee:g(q).invalidWeekday=E}),_s(["d","e","E"],function(E,I,q,z){I[z]=sn(E)});function mm(E,I){return typeof E!="string"?E:isNaN(E)?(E=I.weekdaysParse(E),typeof E=="number"?E:null):parseInt(E,10)}function Ba(E,I){return typeof E=="string"?I.weekdaysParse(E)%7||7:isNaN(E)?null:E}function ja(E,I){return E.slice(I,7).concat(E.slice(0,I))}var e0="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),t0="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),jp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ia=Ir,qp=Ir,qa=Ir;function ol(E,I){var q=s(this._weekdays)?this._weekdays:this._weekdays[E&&E!==!0&&this._weekdays.isFormat.test(I)?"format":"standalone"];return E===!0?ja(q,this._week.dow):E?q[E.day()]:q}function _u(E){return E===!0?ja(this._weekdaysShort,this._week.dow):E?this._weekdaysShort[E.day()]:this._weekdaysShort}function Ju(E){return E===!0?ja(this._weekdaysMin,this._week.dow):E?this._weekdaysMin[E.day()]:this._weekdaysMin}function wc(E,I,q){var z,ee,De,vt=E.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],z=0;z<7;++z)De=P([2e3,1]).day(z),this._minWeekdaysParse[z]=this.weekdaysMin(De,"").toLocaleLowerCase(),this._shortWeekdaysParse[z]=this.weekdaysShort(De,"").toLocaleLowerCase(),this._weekdaysParse[z]=this.weekdays(De,"").toLocaleLowerCase();return q?I==="dddd"?(ee=Mi.call(this._weekdaysParse,vt),ee!==-1?ee:null):I==="ddd"?(ee=Mi.call(this._shortWeekdaysParse,vt),ee!==-1?ee:null):(ee=Mi.call(this._minWeekdaysParse,vt),ee!==-1?ee:null):I==="dddd"?(ee=Mi.call(this._weekdaysParse,vt),ee!==-1||(ee=Mi.call(this._shortWeekdaysParse,vt),ee!==-1)?ee:(ee=Mi.call(this._minWeekdaysParse,vt),ee!==-1?ee:null)):I==="ddd"?(ee=Mi.call(this._shortWeekdaysParse,vt),ee!==-1||(ee=Mi.call(this._weekdaysParse,vt),ee!==-1)?ee:(ee=Mi.call(this._minWeekdaysParse,vt),ee!==-1?ee:null)):(ee=Mi.call(this._minWeekdaysParse,vt),ee!==-1||(ee=Mi.call(this._weekdaysParse,vt),ee!==-1)?ee:(ee=Mi.call(this._shortWeekdaysParse,vt),ee!==-1?ee:null))}function Tc(E,I,q){var z,ee,De;if(this._weekdaysParseExact)return wc.call(this,E,I,q);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),z=0;z<7;z++){if(ee=P([2e3,1]).day(z),q&&!this._fullWeekdaysParse[z]&&(this._fullWeekdaysParse[z]=new RegExp("^"+this.weekdays(ee,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[z]=new RegExp("^"+this.weekdaysShort(ee,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[z]=new RegExp("^"+this.weekdaysMin(ee,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[z]||(De="^"+this.weekdays(ee,"")+"|^"+this.weekdaysShort(ee,"")+"|^"+this.weekdaysMin(ee,""),this._weekdaysParse[z]=new RegExp(De.replace(".",""),"i")),q&&I==="dddd"&&this._fullWeekdaysParse[z].test(E))return z;if(q&&I==="ddd"&&this._shortWeekdaysParse[z].test(E))return z;if(q&&I==="dd"&&this._minWeekdaysParse[z].test(E))return z;if(!q&&this._weekdaysParse[z].test(E))return z}}function Os(E){if(!this.isValid())return E!=null?this:NaN;var I=bc(this,"Day");return E!=null?(E=mm(E,this.localeData()),this.add(E-I,"d")):I}function En(E){if(!this.isValid())return E!=null?this:NaN;var I=(this.day()+7-this.localeData()._week.dow)%7;return E==null?I:this.add(E-I,"d")}function Xu(E){if(!this.isValid())return E!=null?this:NaN;if(E!=null){var I=Ba(E,this.localeData());return this.day(this.day()%7?I:I-7)}else return this.day()||7}function r0(E){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||Wl.call(this),E?this._weekdaysStrictRegex:this._weekdaysRegex):(n(this,"_weekdaysRegex")||(this._weekdaysRegex=ia),this._weekdaysStrictRegex&&E?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gs(E){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||Wl.call(this),E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(n(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qp),this._weekdaysShortStrictRegex&&E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Hl(E){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||Wl.call(this),E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(n(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qa),this._weekdaysMinStrictRegex&&E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wl(){function E(ua,iu){return iu.length-ua.length}var I=[],q=[],z=[],ee=[],De,vt,fr,fn,fi;for(De=0;De<7;De++)vt=P([2e3,1]).day(De),fr=Ai(this.weekdaysMin(vt,"")),fn=Ai(this.weekdaysShort(vt,"")),fi=Ai(this.weekdays(vt,"")),I.push(fr),q.push(fn),z.push(fi),ee.push(fr),ee.push(fn),ee.push(fi);I.sort(E),q.sort(E),z.sort(E),ee.sort(E),this._weekdaysRegex=new RegExp("^("+ee.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+z.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+I.join("|")+")","i")}function Ua(){return this.hours()%12||12}function Up(){return this.hours()||24}Qe("H",["HH",2],0,"hour"),Qe("h",["hh",2],0,Ua),Qe("k",["kk",2],0,Up),Qe("hmm",0,0,function(){return""+Ua.apply(this)+we(this.minutes(),2)}),Qe("hmmss",0,0,function(){return""+Ua.apply(this)+we(this.minutes(),2)+we(this.seconds(),2)}),Qe("Hmm",0,0,function(){return""+this.hours()+we(this.minutes(),2)}),Qe("Hmmss",0,0,function(){return""+this.hours()+we(this.minutes(),2)+we(this.seconds(),2)});function No(E,I){Qe(E,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),I)})}No("a",!0),No("A",!1);function $p(E,I){return I._meridiemParse}Mt("a",$p),Mt("A",$p),Mt("H",bn,In),Mt("h",bn,xr),Mt("k",bn,xr),Mt("HH",bn,$r),Mt("hh",bn,$r),Mt("kk",bn,$r),Mt("hmm",Vo),Mt("hmmss",ra),Mt("Hmm",Vo),Mt("Hmmss",ra),On(["H","HH"],Ps),On(["k","kk"],function(E,I,q){var z=sn(E);I[Ps]=z===24?0:z}),On(["a","A"],function(E,I,q){q._isPm=q._locale.isPM(E),q._meridiem=E}),On(["h","hh"],function(E,I,q){I[Ps]=sn(E),g(q).bigHour=!0}),On("hmm",function(E,I,q){var z=E.length-2;I[Ps]=sn(E.substr(0,z)),I[ko]=sn(E.substr(z)),g(q).bigHour=!0}),On("hmmss",function(E,I,q){var z=E.length-4,ee=E.length-2;I[Ps]=sn(E.substr(0,z)),I[ko]=sn(E.substr(z,2)),I[lo]=sn(E.substr(ee)),g(q).bigHour=!0}),On("Hmm",function(E,I,q){var z=E.length-2;I[Ps]=sn(E.substr(0,z)),I[ko]=sn(E.substr(z))}),On("Hmmss",function(E,I,q){var z=E.length-4,ee=E.length-2;I[Ps]=sn(E.substr(0,z)),I[ko]=sn(E.substr(z,2)),I[lo]=sn(E.substr(ee))});function n0(E){return(E+"").toLowerCase().charAt(0)==="p"}var Xa=/[ap]\.?m?\.?/i,Ea=tn("Hours",!0);function Vp(E,I,q){return E>11?q?"pm":"PM":q?"am":"AM"}var al={calendar:Ke,longDateFormat:qt,invalidDate:pt,ordinal:C,dayOfMonthOrdinalParse:Ct,relativeTime:Jr,months:Io,monthsShort:Ma,week:Vl,weekdays:e0,weekdaysMin:jp,weekdaysShort:t0,meridiemParse:Xa},Ss={},ro={},Qu;function Df(E,I){var q,z=Math.min(E.length,I.length);for(q=0;q<z;q+=1)if(E[q]!==I[q])return q;return z}function Su(E){return E&&E.toLowerCase().replace("_","-")}function ul(E){for(var I=0,q,z,ee,De;I<E.length;){for(De=Su(E[I]).split("-"),q=De.length,z=Su(E[I+1]),z=z?z.split("-"):null;q>0;){if(ee=Z(De.slice(0,q).join("-")),ee)return ee;if(z&&z.length>=q&&Df(De,z)>=q-1)break;q--}I++}return Qu}function ue(E){return!!(E&&E.match("^[^/\\\\]*$"))}function Z(E){var I=null,q;if(Ss[E]===void 0&&typeof G2<"u"&&G2&&G2.exports&&ue(E))try{I=Qu._abbr,q=require,q("./locale/"+E),ae(I)}catch{Ss[E]=null}return Ss[E]}function ae(E,I){var q;return E&&(f(I)?q=Je(E):q=Re(E,I),q?Qu=q:typeof console<"u"&&console.warn&&console.warn("Locale "+E+" not found. Did you forget to load it?")),Qu._abbr}function Re(E,I){if(I!==null){var q,z=al;if(I.abbr=E,Ss[E]!=null)Pt("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."),z=Ss[E]._config;else if(I.parentLocale!=null)if(Ss[I.parentLocale]!=null)z=Ss[I.parentLocale]._config;else if(q=Z(I.parentLocale),q!=null)z=q._config;else return ro[I.parentLocale]||(ro[I.parentLocale]=[]),ro[I.parentLocale].push({name:E,config:I}),null;return Ss[E]=new oe(je(z,I)),ro[E]&&ro[E].forEach(function(ee){Re(ee.name,ee.config)}),ae(E),Ss[E]}else return delete Ss[E],null}function nt(E,I){if(I!=null){var q,z,ee=al;Ss[E]!=null&&Ss[E].parentLocale!=null?Ss[E].set(je(Ss[E]._config,I)):(z=Z(E),z!=null&&(ee=z._config),I=je(ee,I),z==null&&(I.abbr=E),q=new oe(I),q.parentLocale=Ss[E],Ss[E]=q),ae(E)}else Ss[E]!=null&&(Ss[E].parentLocale!=null?(Ss[E]=Ss[E].parentLocale,E===ae()&&ae(E)):Ss[E]!=null&&delete Ss[E]);return Ss[E]}function Je(E){var I;if(E&&E._locale&&E._locale._abbr&&(E=E._locale._abbr),!E)return Qu;if(!s(E)){if(I=Z(E),I)return I;E=[E]}return ul(E)}function gt(){return ke(Ss)}function _t(E){var I,q=E._a;return q&&g(E).overflow===-2&&(I=q[Do]<0||q[Do]>11?Do:q[co]<1||q[co]>zs(q[ur],q[Do])?co:q[Ps]<0||q[Ps]>24||q[Ps]===24&&(q[ko]!==0||q[lo]!==0||q[Bs]!==0)?Ps:q[ko]<0||q[ko]>59?ko:q[lo]<0||q[lo]>59?lo:q[Bs]<0||q[Bs]>999?Bs:-1,g(E)._overflowDayOfYear&&(I<ur||I>co)&&(I=co),g(E)._overflowWeeks&&I===-1&&(I=nl),g(E)._overflowWeekday&&I===-1&&(I=yu),g(E).overflow=I),E}var $t=/^\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)?)?$/,_r=/^\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)?)?$/,An=/Z|[+-]\d\d(?::?\d\d)?/,ti=[["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]],Nn=[["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/]],$a=/^\/?Date\((-?\d+)/i,zl=/^(?:(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}))$/,wa={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 Ro(E){var I,q,z=E._i,ee=$t.exec(z)||_r.exec(z),De,vt,fr,fn,fi=ti.length,ua=Nn.length;if(ee){for(g(E).iso=!0,I=0,q=fi;I<q;I++)if(ti[I][1].exec(ee[1])){vt=ti[I][0],De=ti[I][2]!==!1;break}if(vt==null){E._isValid=!1;return}if(ee[3]){for(I=0,q=ua;I<q;I++)if(Nn[I][1].exec(ee[3])){fr=(ee[2]||" ")+Nn[I][0];break}if(fr==null){E._isValid=!1;return}}if(!De&&fr!=null){E._isValid=!1;return}if(ee[4])if(An.exec(ee[4]))fn="Z";else{E._isValid=!1;return}E._f=vt+(fr||"")+(fn||""),Wo(E)}else E._isValid=!1}function ci(E,I,q,z,ee,De){var vt=[on(E),Ma.indexOf(I),parseInt(q,10),parseInt(z,10),parseInt(ee,10)];return De&&vt.push(parseInt(De,10)),vt}function on(E){var I=parseInt(E,10);return I<=49?2e3+I:I<=999?1900+I:I}function Nr(E){return E.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function rn(E,I,q){if(E){var z=t0.indexOf(E),ee=new Date(I[0],I[1],I[2]).getDay();if(z!==ee)return g(q).weekdayMismatch=!0,q._isValid=!1,!1}return!0}function ri(E,I,q){if(E)return wa[E];if(I)return 0;var z=parseInt(q,10),ee=z%100,De=(z-ee)/100;return De*60+ee}function ki(E){var I=zl.exec(Nr(E._i)),q;if(I){if(q=ci(I[4],I[3],I[2],I[5],I[6],I[7]),!rn(I[1],q,E))return;E._a=q,E._tzm=ri(I[8],I[9],I[10]),E._d=Cf.apply(null,E._a),E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),g(E).rfc2822=!0}else E._isValid=!1}function Ks(E){var I=$a.exec(E._i);if(I!==null){E._d=new Date(+I[1]);return}if(Ro(E),E._isValid===!1)delete E._isValid;else return;if(ki(E),E._isValid===!1)delete E._isValid;else return;E._strict?E._isValid=!1:t.createFromInputFallback(E)}t.createFromInputFallback=Ve("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 So(E,I,q){return E!=null?E:I!=null?I:q}function Pc(E){var I=new Date(t.now());return E._useUTC?[I.getUTCFullYear(),I.getUTCMonth(),I.getUTCDate()]:[I.getFullYear(),I.getMonth(),I.getDate()]}function no(E){var I,q,z=[],ee,De,vt;if(!E._d){for(ee=Pc(E),E._w&&E._a[co]==null&&E._a[Do]==null&&Va(E),E._dayOfYear!=null&&(vt=So(E._a[ur],ee[ur]),(E._dayOfYear>La(vt)||E._dayOfYear===0)&&(g(E)._overflowDayOfYear=!0),q=Cf(vt,0,E._dayOfYear),E._a[Do]=q.getUTCMonth(),E._a[co]=q.getUTCDate()),I=0;I<3&&E._a[I]==null;++I)E._a[I]=z[I]=ee[I];for(;I<7;I++)E._a[I]=z[I]=E._a[I]==null?I===2?1:0:E._a[I];E._a[Ps]===24&&E._a[ko]===0&&E._a[lo]===0&&E._a[Bs]===0&&(E._nextDay=!0,E._a[Ps]=0),E._d=(E._useUTC?Cf:Qh).apply(null,z),De=E._useUTC?E._d.getUTCDay():E._d.getDay(),E._tzm!=null&&E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),E._nextDay&&(E._a[Ps]=24),E._w&&typeof E._w.d<"u"&&E._w.d!==De&&(g(E).weekdayMismatch=!0)}}function Va(E){var I,q,z,ee,De,vt,fr,fn,fi;I=E._w,I.GG!=null||I.W!=null||I.E!=null?(De=1,vt=4,q=So(I.GG,E._a[ur],or(wn(),1,4).year),z=So(I.W,1),ee=So(I.E,1),(ee<1||ee>7)&&(fn=!0)):(De=E._locale._week.dow,vt=E._locale._week.doy,fi=or(wn(),De,vt),q=So(I.gg,E._a[ur],fi.year),z=So(I.w,fi.week),I.d!=null?(ee=I.d,(ee<0||ee>6)&&(fn=!0)):I.e!=null?(ee=I.e+De,(I.e<0||I.e>6)&&(fn=!0)):ee=De),z<1||z>Bi(q,De,vt)?g(E)._overflowWeeks=!0:fn!=null?g(E)._overflowWeekday=!0:(fr=Bd(q,z,ee,De,vt),E._a[ur]=fr.year,E._dayOfYear=fr.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function Wo(E){if(E._f===t.ISO_8601){Ro(E);return}if(E._f===t.RFC_2822){ki(E);return}E._a=[],g(E).empty=!0;var I=""+E._i,q,z,ee,De,vt,fr=I.length,fn=0,fi,ua;for(ee=at(E._f,E._locale).match(Fe)||[],ua=ee.length,q=0;q<ua;q++)De=ee[q],z=(I.match(Ci(De,E))||[])[0],z&&(vt=I.substr(0,I.indexOf(z)),vt.length>0&&g(E).unusedInput.push(vt),I=I.slice(I.indexOf(z)+z.length),fn+=z.length),Zt[De]?(z?g(E).empty=!1:g(E).unusedTokens.push(De),Ku(De,z,E)):E._strict&&!z&&g(E).unusedTokens.push(De);g(E).charsLeftOver=fr-fn,I.length>0&&g(E).unusedInput.push(I),E._a[Ps]<=12&&g(E).bigHour===!0&&E._a[Ps]>0&&(g(E).bigHour=void 0),g(E).parsedDateParts=E._a.slice(0),g(E).meridiem=E._meridiem,E._a[Ps]=Gl(E._locale,E._a[Ps],E._meridiem),fi=g(E).era,fi!==null&&(E._a[ur]=E._locale.erasConvertYear(fi,E._a[ur])),no(E),_t(E)}function Gl(E,I,q){var z;return q==null?I:E.meridiemHour!=null?E.meridiemHour(I,q):(E.isPM!=null&&(z=E.isPM(q),z&&I<12&&(I+=12),!z&&I===12&&(I=0)),I)}function Hp(E){var I,q,z,ee,De,vt,fr=!1,fn=E._f.length;if(fn===0){g(E).invalidFormat=!0,E._d=new Date(NaN);return}for(ee=0;ee<fn;ee++)De=0,vt=!1,I=se({},E),E._useUTC!=null&&(I._useUTC=E._useUTC),I._f=E._f[ee],Wo(I),L(I)&&(vt=!0),De+=g(I).charsLeftOver,De+=g(I).unusedTokens.length*10,g(I).score=De,fr?De<z&&(z=De,q=I):(z==null||De<z||vt)&&(z=De,q=I,vt&&(fr=!0));b(E,q||I)}function Zu(E){if(!E._d){var I=Ye(E._i),q=I.day===void 0?I.date:I.day;E._a=v([I.year,I.month,q,I.hour,I.minute,I.second,I.millisecond],function(z){return z&&parseInt(z,10)}),no(E)}}function Wp(E){var I=new me(_t(zo(E)));return I._nextDay&&(I.add(1,"d"),I._nextDay=void 0),I}function zo(E){var I=E._i,q=E._f;return E._locale=E._locale||Je(E._l),I===null||q===void 0&&I===""?M({nullInput:!0}):(typeof I=="string"&&(E._i=I=E._locale.preparse(I)),Ce(I)?new me(_t(I)):(y(I)?E._d=I:s(q)?Hp(E):q?Wo(E):ji(E),L(E)||(E._d=null),E))}function ji(E){var I=E._i;f(I)?E._d=new Date(t.now()):y(I)?E._d=new Date(I.valueOf()):typeof I=="string"?Ks(E):s(I)?(E._a=v(I.slice(0),function(q){return parseInt(q,10)}),no(E)):a(I)?Zu(E):m(I)?E._d=new Date(I):t.createFromInputFallback(E)}function i0(E,I,q,z,ee){var De={};return(I===!0||I===!1)&&(z=I,I=void 0),(q===!0||q===!1)&&(z=q,q=void 0),(a(E)&&l(E)||s(E)&&E.length===0)&&(E=void 0),De._isAMomentObject=!0,De._useUTC=De._isUTC=ee,De._l=q,De._i=E,De._f=I,De._strict=z,Wp(De)}function wn(E,I,q,z){return i0(E,I,q,z,!1)}var s0=Ve("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var E=wn.apply(null,arguments);return this.isValid()&&E.isValid()?E<this?this:E:M()}),Go=Ve("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var E=wn.apply(null,arguments);return this.isValid()&&E.isValid()?E>this?this:E:M()});function oi(E,I){var q,z;if(I.length===1&&s(I[0])&&(I=I[0]),!I.length)return wn();for(q=I[0],z=1;z<I.length;++z)(!I[z].isValid()||I[z][E](q))&&(q=I[z]);return q}function Qa(){var E=[].slice.call(arguments,0);return oi("isBefore",E)}function qd(){var E=[].slice.call(arguments,0);return oi("isAfter",E)}var kf=function(){return Date.now?Date.now():+new Date},If=["year","quarter","month","week","day","hour","minute","second","millisecond"];function qv(E){var I,q=!1,z,ee=If.length;for(I in E)if(n(E,I)&&!(Mi.call(If,I)!==-1&&(E[I]==null||!isNaN(E[I]))))return!1;for(z=0;z<ee;++z)if(E[If[z]]){if(q)return!1;parseFloat(E[If[z]])!==sn(E[If[z]])&&(q=!0)}return!0}function Ud(){return this._isValid}function ym(){return bo(NaN)}function Cc(E){var I=Ye(E),q=I.year||0,z=I.quarter||0,ee=I.month||0,De=I.week||I.isoWeek||0,vt=I.day||0,fr=I.hour||0,fn=I.minute||0,fi=I.second||0,ua=I.millisecond||0;this._isValid=qv(I),this._milliseconds=+ua+fi*1e3+fn*6e4+fr*1e3*60*60,this._days=+vt+De*7,this._months=+ee+z*3+q*12,this._data={},this._locale=Je(),this._bubble()}function Ha(E){return E instanceof Cc}function cl(E){return E<0?Math.round(-1*E)*-1:Math.round(E)}function Za(E,I,q){var z=Math.min(E.length,I.length),ee=Math.abs(E.length-I.length),De=0,vt;for(vt=0;vt<z;vt++)(q&&E[vt]!==I[vt]||!q&&sn(E[vt])!==sn(I[vt]))&&De++;return De+ee}function zp(E,I){Qe(E,0,0,function(){var q=this.utcOffset(),z="+";return q<0&&(q=-q,z="-"),z+we(~~(q/60),2)+I+we(~~q%60,2)})}zp("Z",":"),zp("ZZ",""),Mt("Z",At),Mt("ZZ",At),On(["Z","ZZ"],function(E,I,q){q._useUTC=!0,q._tzm=Fo(At,E)});var Ys=/([\+\-]|\d\d)/gi;function Fo(E,I){var q=(I||"").match(E),z,ee,De;return q===null?null:(z=q[q.length-1]||[],ee=(z+"").match(Ys)||["-",0,0],De=+(ee[1]*60)+sn(ee[2]),De===0?0:ee[0]==="+"?De:-De)}function io(E,I){var q,z;return I._isUTC?(q=I.clone(),z=(Ce(E)||y(E)?E.valueOf():wn(E).valueOf())-q.valueOf(),q._d.setTime(q._d.valueOf()+z),t.updateOffset(q,!1),q):wn(E).local()}function Ac(E){return-Math.round(E._d.getTimezoneOffset())}t.updateOffset=function(){};function Of(E,I,q){var z=this._offset||0,ee;if(!this.isValid())return E!=null?this:NaN;if(E!=null){if(typeof E=="string"){if(E=Fo(At,E),E===null)return this}else Math.abs(E)<16&&!q&&(E=E*60);return!this._isUTC&&I&&(ee=Ac(this)),this._offset=E,this._isUTC=!0,ee!=null&&this.add(ee,"m"),z!==E&&(!I||this._changeInProgress?Pa(this,bo(E-z,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?z:Ac(this)}function Si(E,I){return E!=null?(typeof E!="string"&&(E=-E),this.utcOffset(E,I),this):-this.utcOffset()}function gm(E){return this.utcOffset(0,E)}function vm(E){return this._isUTC&&(this.utcOffset(0,E),this._isUTC=!1,E&&this.subtract(Ac(this),"m")),this}function sa(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var E=Fo(Ft,this._i);E!=null?this.utcOffset(E):this.utcOffset(0,!0)}return this}function Ta(E){return this.isValid()?(E=E?wn(E).utcOffset():0,(this.utcOffset()-E)%60===0):!1}function eu(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kl(){if(!f(this._isDSTShifted))return this._isDSTShifted;var E={},I;return se(E,this),E=zo(E),E._a?(I=E._isUTC?P(E._a):wn(E._a),this._isDSTShifted=this.isValid()&&Za(E._a,I.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Yl(){return this.isValid()?!this._isUTC:!1}function Jl(){return this.isValid()?this._isUTC:!1}function bi(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ec=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Xl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function bo(E,I){var q=E,z=null,ee,De,vt;return Ha(E)?q={ms:E._milliseconds,d:E._days,M:E._months}:m(E)||!isNaN(+E)?(q={},I?q[I]=+E:q.milliseconds=+E):(z=ec.exec(E))?(ee=z[1]==="-"?-1:1,q={y:0,d:sn(z[co])*ee,h:sn(z[Ps])*ee,m:sn(z[ko])*ee,s:sn(z[lo])*ee,ms:sn(cl(z[Bs]*1e3))*ee}):(z=Xl.exec(E))?(ee=z[1]==="-"?-1:1,q={y:ll(z[2],ee),M:ll(z[3],ee),w:ll(z[4],ee),d:ll(z[5],ee),h:ll(z[6],ee),m:ll(z[7],ee),s:ll(z[8],ee)}):q==null?q={}:typeof q=="object"&&("from"in q||"to"in q)&&(vt=xm(wn(q.from),wn(q.to)),q={},q.ms=vt.milliseconds,q.M=vt.months),De=new Cc(q),Ha(E)&&n(E,"_locale")&&(De._locale=E._locale),Ha(E)&&n(E,"_isValid")&&(De._isValid=E._isValid),De}bo.fn=Cc.prototype,bo.invalid=ym;function ll(E,I){var q=E&&parseFloat(E.replace(",","."));return(isNaN(q)?0:q)*I}function tc(E,I){var q={};return q.months=I.month()-E.month()+(I.year()-E.year())*12,E.clone().add(q.months,"M").isAfter(I)&&--q.months,q.milliseconds=+I-+E.clone().add(q.months,"M"),q}function xm(E,I){var q;return E.isValid()&&I.isValid()?(I=io(I,E),E.isBefore(I)?q=tc(E,I):(q=tc(I,E),q.milliseconds=-q.milliseconds,q.months=-q.months),q):{milliseconds:0,months:0}}function Gp(E,I){return function(q,z){var ee,De;return z!==null&&!isNaN(+z)&&(Pt(I,"moment()."+I+"(period, number) is deprecated. Please use moment()."+I+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),De=q,q=z,z=De),ee=bo(q,z),Pa(this,ee,E),this}}function Pa(E,I,q,z){var ee=I._milliseconds,De=cl(I._days),vt=cl(I._months);E.isValid()&&(z=z==null?!0:z,vt&&jt(E,bc(E,"Month")+vt*q),De&&il(E,"Date",bc(E,"Date")+De*q),ee&&E._d.setTime(E._d.valueOf()+ee*q),z&&t.updateOffset(E,De||vt))}var ni=Gp(1,"add"),$d=Gp(-1,"subtract");function o0(E){return typeof E=="string"||E instanceof String}function a0(E){return Ce(E)||y(E)||o0(E)||m(E)||pg(E)||lg(E)||E===null||E===void 0}function lg(E){var I=a(E)&&!l(E),q=!1,z=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ee,De,vt=z.length;for(ee=0;ee<vt;ee+=1)De=z[ee],q=q||n(E,De);return I&&q}function pg(E){var I=s(E),q=!1;return I&&(q=E.filter(function(z){return!m(z)&&o0(E)}).length===0),I&&q}function Uv(E){var I=a(E)&&!l(E),q=!1,z=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],ee,De;for(ee=0;ee<z.length;ee+=1)De=z[ee],q=q||n(E,De);return I&&q}function Wx(E,I){var q=E.diff(I,"days",!0);return q<-6?"sameElse":q<-1?"lastWeek":q<0?"lastDay":q<1?"sameDay":q<2?"nextDay":q<7?"nextWeek":"sameElse"}function _m(E,I){arguments.length===1&&(arguments[0]?a0(arguments[0])?(E=arguments[0],I=void 0):Uv(arguments[0])&&(I=arguments[0],E=void 0):(E=void 0,I=void 0));var q=E||wn(),z=io(q,this).startOf("day"),ee=t.calendarFormat(this,z)||"sameElse",De=I&&(lt(I[ee])?I[ee].call(this,q):I[ee]);return this.format(De||this.localeData().calendar(ee,this,wn(q)))}function u0(){return new me(this)}function $v(E,I){var q=Ce(E)?E:wn(E);return this.isValid()&&q.isValid()?(I=ge(I)||"millisecond",I==="millisecond"?this.valueOf()>q.valueOf():q.valueOf()<this.clone().startOf(I).valueOf()):!1}function rc(E,I){var q=Ce(E)?E:wn(E);return this.isValid()&&q.isValid()?(I=ge(I)||"millisecond",I==="millisecond"?this.valueOf()<q.valueOf():this.clone().endOf(I).valueOf()<q.valueOf()):!1}function Ql(E,I,q,z){var ee=Ce(E)?E:wn(E),De=Ce(I)?I:wn(I);return this.isValid()&&ee.isValid()&&De.isValid()?(z=z||"()",(z[0]==="("?this.isAfter(ee,q):!this.isBefore(ee,q))&&(z[1]===")"?this.isBefore(De,q):!this.isAfter(De,q))):!1}function Ca(E,I){var q=Ce(E)?E:wn(E),z;return this.isValid()&&q.isValid()?(I=ge(I)||"millisecond",I==="millisecond"?this.valueOf()===q.valueOf():(z=q.valueOf(),this.clone().startOf(I).valueOf()<=z&&z<=this.clone().endOf(I).valueOf())):!1}function bu(E,I){return this.isSame(E,I)||this.isAfter(E,I)}function Aa(E,I){return this.isSame(E,I)||this.isBefore(E,I)}function Kp(E,I,q){var z,ee,De;if(!this.isValid())return NaN;if(z=io(E,this),!z.isValid())return NaN;switch(ee=(z.utcOffset()-this.utcOffset())*6e4,I=ge(I),I){case"year":De=Eu(this,z)/12;break;case"month":De=Eu(this,z);break;case"quarter":De=Eu(this,z)/3;break;case"second":De=(this-z)/1e3;break;case"minute":De=(this-z)/6e4;break;case"hour":De=(this-z)/36e5;break;case"day":De=(this-z-ee)/864e5;break;case"week":De=(this-z-ee)/6048e5;break;default:De=this-z}return q?De:_i(De)}function Eu(E,I){if(E.date()<I.date())return-Eu(I,E);var q=(I.year()-E.year())*12+(I.month()-E.month()),z=E.clone().add(q,"months"),ee,De;return I-z<0?(ee=E.clone().add(q-1,"months"),De=(I-z)/(z-ee)):(ee=E.clone().add(q+1,"months"),De=(I-z)/(ee-z)),-(q+De)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function pl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Nf(E){if(!this.isValid())return null;var I=E!==!0,q=I?this.clone().utc():this;return q.year()<0||q.year()>9999?Ze(q,I?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):lt(Date.prototype.toISOString)?I?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ze(q,"Z")):Ze(q,I?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Rf(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var E="moment",I="",q,z,ee,De;return this.isLocal()||(E=this.utcOffset()===0?"moment.utc":"moment.parseZone",I="Z"),q="["+E+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ee="-MM-DD[T]HH:mm:ss.SSS",De=I+'[")]',this.format(q+z+ee+De)}function Vd(E){E||(E=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var I=Ze(this,E);return this.localeData().postformat(I)}function fg(E,I){return this.isValid()&&(Ce(E)&&E.isValid()||wn(E).isValid())?bo({to:this,from:E}).locale(this.locale()).humanize(!I):this.localeData().invalidDate()}function Sm(E){return this.from(wn(),E)}function Ff(E,I){return this.isValid()&&(Ce(E)&&E.isValid()||wn(E).isValid())?bo({from:this,to:E}).locale(this.locale()).humanize(!I):this.localeData().invalidDate()}function Zl(E){return this.to(wn(),E)}function bm(E){var I;return E===void 0?this._locale._abbr:(I=Je(E),I!=null&&(this._locale=I),this)}var wu=Ve("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 Em(){return this._locale}var fl=1e3,Dc=60*fl,ep=60*Dc,dg=(365*400+97)*24*ep;function Ei(E,I){return(E%I+I)%I}function Lo(E,I,q){return E<100&&E>=0?new Date(E+400,I,q)-dg:new Date(E,I,q).valueOf()}function Tu(E,I,q){return E<100&&E>=0?Date.UTC(E+400,I,q)-dg:Date.UTC(E,I,q)}function nc(E){var I,q;if(E=ge(E),E===void 0||E==="millisecond"||!this.isValid())return this;switch(q=this._isUTC?Tu:Lo,E){case"year":I=q(this.year(),0,1);break;case"quarter":I=q(this.year(),this.month()-this.month()%3,1);break;case"month":I=q(this.year(),this.month(),1);break;case"week":I=q(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":I=q(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":I=q(this.year(),this.month(),this.date());break;case"hour":I=this._d.valueOf(),I-=Ei(I+(this._isUTC?0:this.utcOffset()*Dc),ep);break;case"minute":I=this._d.valueOf(),I-=Ei(I,Dc);break;case"second":I=this._d.valueOf(),I-=Ei(I,fl);break}return this._d.setTime(I),t.updateOffset(this,!0),this}function dl(E){var I,q;if(E=ge(E),E===void 0||E==="millisecond"||!this.isValid())return this;switch(q=this._isUTC?Tu:Lo,E){case"year":I=q(this.year()+1,0,1)-1;break;case"quarter":I=q(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":I=q(this.year(),this.month()+1,1)-1;break;case"week":I=q(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":I=q(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":I=q(this.year(),this.month(),this.date()+1)-1;break;case"hour":I=this._d.valueOf(),I+=ep-Ei(I+(this._isUTC?0:this.utcOffset()*Dc),ep)-1;break;case"minute":I=this._d.valueOf(),I+=Dc-Ei(I,Dc)-1;break;case"second":I=this._d.valueOf(),I+=fl-Ei(I,fl)-1;break}return this._d.setTime(I),t.updateOffset(this,!0),this}function tu(){return this._d.valueOf()-(this._offset||0)*6e4}function Yp(){return Math.floor(this.valueOf()/1e3)}function hl(){return new Date(this.valueOf())}function Vv(){var E=this;return[E.year(),E.month(),E.date(),E.hour(),E.minute(),E.second(),E.millisecond()]}function wm(){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 Lf(){return this.isValid()?this.toISOString():null}function Hd(){return L(this)}function zx(){return b({},g(this))}function hg(){return g(this).overflow}function c0(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Qe("N",0,0,"eraAbbr"),Qe("NN",0,0,"eraAbbr"),Qe("NNN",0,0,"eraAbbr"),Qe("NNNN",0,0,"eraName"),Qe("NNNNN",0,0,"eraNarrow"),Qe("y",["y",1],"yo","eraYear"),Qe("y",["yy",2],0,"eraYear"),Qe("y",["yyy",3],0,"eraYear"),Qe("y",["yyyy",4],0,"eraYear"),Mt("N",zd),Mt("NN",zd),Mt("NNN",zd),Mt("NNNN",p0),Mt("NNNNN",f0),On(["N","NN","NNN","NNNN","NNNNN"],function(E,I,q,z){var ee=q._locale.erasParse(E,z,q._strict);ee?g(q).era=ee:g(q).invalidEra=E}),Mt("y",Ja),Mt("yy",Ja),Mt("yyy",Ja),Mt("yyyy",Ja),Mt("yo",Pm),On(["y","yy","yyy","yyyy"],ur),On(["yo"],function(E,I,q,z){var ee;q._locale._eraYearOrdinalRegex&&(ee=E.match(q._locale._eraYearOrdinalRegex)),q._locale.eraYearOrdinalParse?I[ur]=q._locale.eraYearOrdinalParse(E,ee):I[ur]=parseInt(E,10)});function mg(E,I){var q,z,ee,De=this._eras||Je("en")._eras;for(q=0,z=De.length;q<z;++q){switch(typeof De[q].since){case"string":ee=t(De[q].since).startOf("day"),De[q].since=ee.valueOf();break}switch(typeof De[q].until){case"undefined":De[q].until=1/0;break;case"string":ee=t(De[q].until).startOf("day").valueOf(),De[q].until=ee.valueOf();break}}return De}function yg(E,I,q){var z,ee,De=this.eras(),vt,fr,fn;for(E=E.toUpperCase(),z=0,ee=De.length;z<ee;++z)if(vt=De[z].name.toUpperCase(),fr=De[z].abbr.toUpperCase(),fn=De[z].narrow.toUpperCase(),q)switch(I){case"N":case"NN":case"NNN":if(fr===E)return De[z];break;case"NNNN":if(vt===E)return De[z];break;case"NNNNN":if(fn===E)return De[z];break}else if([vt,fr,fn].indexOf(E)>=0)return De[z]}function Tm(E,I){var q=E.since<=E.until?1:-1;return I===void 0?t(E.since).year():t(E.since).year()+(I-E.offset)*q}function Jp(){var E,I,q,z=this.localeData().eras();for(E=0,I=z.length;E<I;++E)if(q=this.clone().startOf("day").valueOf(),z[E].since<=q&&q<=z[E].until||z[E].until<=q&&q<=z[E].since)return z[E].name;return""}function gg(){var E,I,q,z=this.localeData().eras();for(E=0,I=z.length;E<I;++E)if(q=this.clone().startOf("day").valueOf(),z[E].since<=q&&q<=z[E].until||z[E].until<=q&&q<=z[E].since)return z[E].narrow;return""}function Hv(){var E,I,q,z=this.localeData().eras();for(E=0,I=z.length;E<I;++E)if(q=this.clone().startOf("day").valueOf(),z[E].since<=q&&q<=z[E].until||z[E].until<=q&&q<=z[E].since)return z[E].abbr;return""}function Wd(){var E,I,q,z,ee=this.localeData().eras();for(E=0,I=ee.length;E<I;++E)if(q=ee[E].since<=ee[E].until?1:-1,z=this.clone().startOf("day").valueOf(),ee[E].since<=z&&z<=ee[E].until||ee[E].until<=z&&z<=ee[E].since)return(this.year()-t(ee[E].since).year())*q+ee[E].offset;return this.year()}function Da(E){return n(this,"_erasNameRegex")||Bf.call(this),E?this._erasNameRegex:this._erasRegex}function l0(E){return n(this,"_erasAbbrRegex")||Bf.call(this),E?this._erasAbbrRegex:this._erasRegex}function Mf(E){return n(this,"_erasNarrowRegex")||Bf.call(this),E?this._erasNarrowRegex:this._erasRegex}function zd(E,I){return I.erasAbbrRegex(E)}function p0(E,I){return I.erasNameRegex(E)}function f0(E,I){return I.erasNarrowRegex(E)}function Pm(E,I){return I._eraYearOrdinalRegex||Ja}function Bf(){var E=[],I=[],q=[],z=[],ee,De,vt,fr,fn,fi=this.eras();for(ee=0,De=fi.length;ee<De;++ee)vt=Ai(fi[ee].name),fr=Ai(fi[ee].abbr),fn=Ai(fi[ee].narrow),I.push(vt),E.push(fr),q.push(fn),z.push(vt),z.push(fr),z.push(fn);this._erasRegex=new RegExp("^("+z.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+I.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+E.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+q.join("|")+")","i")}Qe(0,["gg",2],0,function(){return this.weekYear()%100}),Qe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function jf(E,I){Qe(0,[E,E.length],0,I)}jf("gggg","weekYear"),jf("ggggg","weekYear"),jf("GGGG","isoWeekYear"),jf("GGGGG","isoWeekYear"),Mt("G",rt),Mt("g",rt),Mt("GG",bn,$r),Mt("gg",bn,$r),Mt("GGGG",Ho,jn),Mt("gggg",Ho,jn),Mt("GGGGG",Gu,ei),Mt("ggggg",Gu,ei),_s(["gggg","ggggg","GGGG","GGGGG"],function(E,I,q,z){I[z.substr(0,2)]=sn(E)}),_s(["gg","GG"],function(E,I,q,z){I[z]=t.parseTwoDigitYear(E)});function qf(E){return Pu.call(this,E,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function vg(E){return Pu.call(this,E,this.isoWeek(),this.isoWeekday(),1,4)}function d0(){return Bi(this.year(),1,4)}function h0(){return Bi(this.isoWeekYear(),1,4)}function tp(){var E=this.localeData()._week;return Bi(this.year(),E.dow,E.doy)}function Xp(){var E=this.localeData()._week;return Bi(this.weekYear(),E.dow,E.doy)}function Pu(E,I,q,z,ee){var De;return E==null?or(this,z,ee).year:(De=Bi(E,z,ee),I>De&&(I=De),Qp.call(this,E,I,q,z,ee))}function Qp(E,I,q,z,ee){var De=Bd(E,I,q,z,ee),vt=Cf(De.year,0,De.dayOfYear);return this.year(vt.getUTCFullYear()),this.month(vt.getUTCMonth()),this.date(vt.getUTCDate()),this}Qe("Q",0,"Qo","quarter"),Mt("Q",Ur),On("Q",function(E,I){I[Do]=(sn(E)-1)*3});function Cm(E){return E==null?Math.ceil((this.month()+1)/3):this.month((E-1)*3+this.month()%3)}Qe("D",["DD",2],"Do","date"),Mt("D",bn,xr),Mt("DD",bn,$r),Mt("Do",function(E,I){return E?I._dayOfMonthOrdinalParse||I._ordinalParse:I._dayOfMonthOrdinalParseLenient}),On(["D","DD"],co),On("Do",function(E,I){I[co]=sn(E.match(bn)[0])});var rp=tn("Date",!0);Qe("DDD",["DDDD",3],"DDDo","dayOfYear"),Mt("DDD",ls),Mt("DDDD",Hn),On(["DDD","DDDD"],function(E,I,q){q._dayOfYear=sn(E)});function kc(E){var I=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return E==null?I:this.add(E-I,"d")}Qe("m",["mm",2],0,"minute"),Mt("m",bn,In),Mt("mm",bn,$r),On(["m","mm"],ko);var Am=tn("Minutes",!1);Qe("s",["ss",2],0,"second"),Mt("s",bn,In),Mt("ss",bn,$r),On(["s","ss"],lo);var Gd=tn("Seconds",!1);Qe("S",0,0,function(){return~~(this.millisecond()/100)}),Qe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Qe(0,["SSS",3],0,"millisecond"),Qe(0,["SSSS",4],0,function(){return this.millisecond()*10}),Qe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Qe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Qe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Qe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Qe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Mt("S",ls,Ur),Mt("SS",ls,$r),Mt("SSS",ls,Hn);var ic,Dm;for(ic="SSSS";ic.length<=9;ic+="S")Mt(ic,Ja);function xg(E,I){I[Bs]=sn(("0."+E)*1e3)}for(ic="S";ic.length<=9;ic+="S")On(ic,xg);Dm=tn("Milliseconds",!1),Qe("z",0,0,"zoneAbbr"),Qe("zz",0,0,"zoneName");function m0(){return this._isUTC?"UTC":""}function y0(){return this._isUTC?"Coordinated Universal Time":""}var Yt=me.prototype;Yt.add=ni,Yt.calendar=_m,Yt.clone=u0,Yt.diff=Kp,Yt.endOf=dl,Yt.format=Vd,Yt.from=fg,Yt.fromNow=Sm,Yt.to=Ff,Yt.toNow=Zl,Yt.get=gu,Yt.invalidAt=hg,Yt.isAfter=$v,Yt.isBefore=rc,Yt.isBetween=Ql,Yt.isSame=Ca,Yt.isSameOrAfter=bu,Yt.isSameOrBefore=Aa,Yt.isValid=Hd,Yt.lang=wu,Yt.locale=bm,Yt.localeData=Em,Yt.max=Go,Yt.min=s0,Yt.parsingFlags=zx,Yt.set=ps,Yt.startOf=nc,Yt.subtract=$d,Yt.toArray=Vv,Yt.toObject=wm,Yt.toDate=hl,Yt.toISOString=Nf,Yt.inspect=Rf,typeof Symbol<"u"&&Symbol.for!=null&&(Yt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Yt.toJSON=Lf,Yt.toString=pl,Yt.unix=Yp,Yt.valueOf=tu,Yt.creationData=c0,Yt.eraName=Jp,Yt.eraNarrow=gg,Yt.eraAbbr=Hv,Yt.eraYear=Wd,Yt.year=Yu,Yt.isLeapYear=ql,Yt.weekYear=qf,Yt.isoWeekYear=vg,Yt.quarter=Yt.quarters=Cm,Yt.month=vu,Yt.daysInMonth=dm,Yt.week=Yt.weeks=hm,Yt.isoWeek=Yt.isoWeeks=Zh,Yt.weeksInYear=tp,Yt.weeksInWeekYear=Xp,Yt.isoWeeksInYear=d0,Yt.isoWeeksInISOWeekYear=h0,Yt.date=rp,Yt.day=Yt.days=Os,Yt.weekday=En,Yt.isoWeekday=Xu,Yt.dayOfYear=kc,Yt.hour=Yt.hours=Ea,Yt.minute=Yt.minutes=Am,Yt.second=Yt.seconds=Gd,Yt.millisecond=Yt.milliseconds=Dm,Yt.utcOffset=Of,Yt.utc=gm,Yt.local=vm,Yt.parseZone=sa,Yt.hasAlignedHourOffset=Ta,Yt.isDST=eu,Yt.isLocal=Yl,Yt.isUtcOffset=Jl,Yt.isUtc=bi,Yt.isUTC=bi,Yt.zoneAbbr=m0,Yt.zoneName=y0,Yt.dates=Ve("dates accessor is deprecated. Use date instead.",rp),Yt.months=Ve("months accessor is deprecated. Use month instead",vu),Yt.years=Ve("years accessor is deprecated. Use year instead",Yu),Yt.zone=Ve("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Si),Yt.isDSTShifted=Ve("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kl);function pn(E){return wn(E*1e3)}function oa(){return wn.apply(null,arguments).parseZone()}function po(E){return E}var Tn=oe.prototype;Tn.calendar=Se,Tn.longDateFormat=wt,Tn.invalidDate=ht,Tn.ordinal=Kt,Tn.preparse=po,Tn.postformat=po,Tn.relativeTime=xt,Tn.pastFuture=St,Tn.set=ut,Tn.eras=mg,Tn.erasParse=yg,Tn.erasConvertYear=Tm,Tn.erasAbbrRegex=l0,Tn.erasNameRegex=Da,Tn.erasNarrowRegex=Mf,Tn.months=fm,Tn.monthsShort=Mp,Tn.monthsParse=ba,Tn.monthsRegex=rs,Tn.monthsShortRegex=Bp,Tn.week=jd,Tn.firstDayOfYear=Af,Tn.firstDayOfWeek=xu,Tn.weekdays=ol,Tn.weekdaysMin=Ju,Tn.weekdaysShort=_u,Tn.weekdaysParse=Tc,Tn.weekdaysRegex=r0,Tn.weekdaysShortRegex=Gs,Tn.weekdaysMinRegex=Hl,Tn.isPM=n0,Tn.meridiem=Vp;function Wa(E,I,q,z){var ee=Je(),De=P().set(z,I);return ee[q](De,E)}function Kd(E,I,q){if(m(E)&&(I=E,E=void 0),E=E||"",I!=null)return Wa(E,I,q,"month");var z,ee=[];for(z=0;z<12;z++)ee[z]=Wa(E,z,q,"month");return ee}function Js(E,I,q,z){typeof E=="boolean"?(m(I)&&(q=I,I=void 0),I=I||""):(I=E,q=I,E=!1,m(I)&&(q=I,I=void 0),I=I||"");var ee=Je(),De=E?ee._week.dow:0,vt,fr=[];if(q!=null)return Wa(I,(q+De)%7,z,"day");for(vt=0;vt<7;vt++)fr[vt]=Wa(I,(vt+De)%7,z,"day");return fr}function Yd(E,I){return Kd(E,I,"months")}function Rn(E,I){return Kd(E,I,"monthsShort")}function Uf(E,I,q){return Js(E,I,q,"weekdays")}function Zp(E,I,q){return Js(E,I,q,"weekdaysShort")}function km(E,I,q){return Js(E,I,q,"weekdaysMin")}ae("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var I=E%10,q=sn(E%100/10)===1?"th":I===1?"st":I===2?"nd":I===3?"rd":"th";return E+q}}),t.lang=Ve("moment.lang is deprecated. Use moment.locale instead.",ae),t.langData=Ve("moment.langData is deprecated. Use moment.localeData instead.",Je);var Ic=Math.abs;function Im(){var E=this._data;return this._milliseconds=Ic(this._milliseconds),this._days=Ic(this._days),this._months=Ic(this._months),E.milliseconds=Ic(E.milliseconds),E.seconds=Ic(E.seconds),E.minutes=Ic(E.minutes),E.hours=Ic(E.hours),E.months=Ic(E.months),E.years=Ic(E.years),this}function g0(E,I,q,z){var ee=bo(I,q);return E._milliseconds+=z*ee._milliseconds,E._days+=z*ee._days,E._months+=z*ee._months,E._bubble()}function np(E,I){return g0(this,E,I,1)}function Ar(E,I){return g0(this,E,I,-1)}function ef(E){return E<0?Math.floor(E):Math.ceil(E)}function Om(){var E=this._milliseconds,I=this._days,q=this._months,z=this._data,ee,De,vt,fr,fn;return E>=0&&I>=0&&q>=0||E<=0&&I<=0&&q<=0||(E+=ef(Oc(q)+I)*864e5,I=0,q=0),z.milliseconds=E%1e3,ee=_i(E/1e3),z.seconds=ee%60,De=_i(ee/60),z.minutes=De%60,vt=_i(De/60),z.hours=vt%24,I+=_i(vt/24),fn=_i(Cu(I)),q+=fn,I-=ef(Oc(fn)),fr=_i(q/12),q%=12,z.days=I,z.months=q,z.years=fr,this}function Cu(E){return E*4800/146097}function Oc(E){return E*146097/4800}function Jd(E){if(!this.isValid())return NaN;var I,q,z=this._milliseconds;if(E=ge(E),E==="month"||E==="quarter"||E==="year")switch(I=this._days+z/864e5,q=this._months+Cu(I),E){case"month":return q;case"quarter":return q/3;case"year":return q/12}else switch(I=this._days+Math.round(Oc(this._months)),E){case"week":return I/7+z/6048e5;case"day":return I+z/864e5;case"hour":return I*24+z/36e5;case"minute":return I*1440+z/6e4;case"second":return I*86400+z/1e3;case"millisecond":return Math.floor(I*864e5)+z;default:throw new Error("Unknown unit "+E)}}function ru(E){return function(){return this.as(E)}}var $f=ru("ms"),Nm=ru("s"),ml=ru("m"),Xd=ru("h"),tf=ru("d"),Vf=ru("w"),sc=ru("M"),Nc=ru("Q"),Qd=ru("y"),rf=$f;function ka(){return bo(this)}function qi(E){return E=ge(E),this.isValid()?this[E+"s"]():NaN}function Ii(E){return function(){return this.isValid()?this._data[E]:NaN}}var v0=Ii("milliseconds"),nu=Ii("seconds"),_g=Ii("minutes"),Hf=Ii("hours"),Rm=Ii("days"),Wv=Ii("months"),Fm=Ii("years");function x0(){return _i(this.days()/7)}var Au=Math.round,ip={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Wf(E,I,q,z,ee){return ee.relativeTime(I||1,!!q,E,z)}function Sg(E,I,q,z){var ee=bo(E).abs(),De=Au(ee.as("s")),vt=Au(ee.as("m")),fr=Au(ee.as("h")),fn=Au(ee.as("d")),fi=Au(ee.as("M")),ua=Au(ee.as("w")),iu=Au(ee.as("y")),js=De<=q.ss&&["s",De]||De<q.s&&["ss",De]||vt<=1&&["m"]||vt<q.m&&["mm",vt]||fr<=1&&["h"]||fr<q.h&&["hh",fr]||fn<=1&&["d"]||fn<q.d&&["dd",fn];return q.w!=null&&(js=js||ua<=1&&["w"]||ua<q.w&&["ww",ua]),js=js||fi<=1&&["M"]||fi<q.M&&["MM",fi]||iu<=1&&["y"]||["yy",iu],js[2]=I,js[3]=+E>0,js[4]=z,Wf.apply(null,js)}function bg(E){return E===void 0?Au:typeof E=="function"?(Au=E,!0):!1}function Zd(E,I){return ip[E]===void 0?!1:I===void 0?ip[E]:(ip[E]=I,E==="s"&&(ip.ss=I-1),!0)}function zv(E,I){if(!this.isValid())return this.localeData().invalidDate();var q=!1,z=ip,ee,De;return typeof E=="object"&&(I=E,E=!1),typeof E=="boolean"&&(q=E),typeof I=="object"&&(z=Object.assign({},ip,I),I.s!=null&&I.ss==null&&(z.ss=I.s-1)),ee=this.localeData(),De=Sg(this,!q,z,ee),q&&(De=ee.pastFuture(+this,De)),ee.postformat(De)}var _0=Math.abs;function sp(E){return(E>0)-(E<0)||+E}function aa(){if(!this.isValid())return this.localeData().invalidDate();var E=_0(this._milliseconds)/1e3,I=_0(this._days),q=_0(this._months),z,ee,De,vt,fr=this.asSeconds(),fn,fi,ua,iu;return fr?(z=_i(E/60),ee=_i(z/60),E%=60,z%=60,De=_i(q/12),q%=12,vt=E?E.toFixed(3).replace(/\.?0+$/,""):"",fn=fr<0?"-":"",fi=sp(this._months)!==sp(fr)?"-":"",ua=sp(this._days)!==sp(fr)?"-":"",iu=sp(this._milliseconds)!==sp(fr)?"-":"",fn+"P"+(De?fi+De+"Y":"")+(q?fi+q+"M":"")+(I?ua+I+"D":"")+(ee||z||E?"T":"")+(ee?iu+ee+"H":"")+(z?iu+z+"M":"")+(E?iu+vt+"S":"")):"P0D"}var qn=Cc.prototype;qn.isValid=Ud,qn.abs=Im,qn.add=np,qn.subtract=Ar,qn.as=Jd,qn.asMilliseconds=$f,qn.asSeconds=Nm,qn.asMinutes=ml,qn.asHours=Xd,qn.asDays=tf,qn.asWeeks=Vf,qn.asMonths=sc,qn.asQuarters=Nc,qn.asYears=Qd,qn.valueOf=rf,qn._bubble=Om,qn.clone=ka,qn.get=qi,qn.milliseconds=v0,qn.seconds=nu,qn.minutes=_g,qn.hours=Hf,qn.days=Rm,qn.weeks=x0,qn.months=Wv,qn.years=Fm,qn.humanize=zv,qn.toISOString=aa,qn.toString=aa,qn.toJSON=aa,qn.locale=bm,qn.localeData=Em,qn.toIsoString=Ve("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",aa),qn.lang=wu,Qe("X",0,0,"unix"),Qe("x",0,0,"valueOf"),Mt("x",rt),Mt("X",Jt),On("X",function(E,I,q){q._d=new Date(parseFloat(E)*1e3)}),On("x",function(E,I,q){q._d=new Date(sn(E))});return t.version="2.30.1",r(wn),t.fn=Yt,t.min=Qa,t.max=qd,t.now=kf,t.utc=P,t.unix=pn,t.months=Yd,t.isDate=y,t.locale=ae,t.invalid=M,t.duration=bo,t.isMoment=Ce,t.weekdays=Uf,t.parseZone=oa,t.localeData=Je,t.isDuration=Ha,t.monthsShort=Rn,t.weekdaysMin=km,t.defineLocale=Re,t.updateLocale=nt,t.locales=gt,t.weekdaysShort=Zp,t.normalizeUnits=ge,t.relativeTimeRounding=bg,t.relativeTimeThreshold=Zd,t.calendarFormat=Wx,t.prototype=Yt,t.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})});function wh(){return!process.stdout.isTTY||process.env.FORCE_NON_TTY==="1"||process.env.CI==="true"||process.env.CI==="1"||process.env.PAGES_SOURCE==="skills"||process.env.EDGEONE_NON_INTERACTIVE==="1"}function nA({prefix:e="cli"}){return $s.default.createElement(Ms.Text,{color:"grey"},"[",e,"]")}function ui(e,t="cli"){if(wh()){console.log(`\x1B[90m[${t}]\x1B[0m\x1B[31m[\u2718] \x1B[0m${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Text,null,$s.default.createElement(nA,{prefix:t}),$s.default.createElement(Ms.Text,{color:"red"},"[\u2718] "),e));r()}function xE(e,t="cli"){if(wh()){console.log(`\x1B[90m[${t}]\x1B[0m\x1B[32m[\u2714] \x1B[0m${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Text,null,$s.default.createElement(nA,{prefix:t}),$s.default.createElement(Ms.Text,{color:"green"},"[\u2714] "),e));r()}function ao(e,t="cli"){if(wh()){console.log(`\x1B[90m[${t}]\x1B[0m \x1B[33mWARNING:\x1B[0m ${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Text,null,$s.default.createElement(nA,{prefix:t}),$s.default.createElement(Ms.Text,{color:"orange"},"\u2757\uFE0F "),e));r()}function zK(e){if(wh()){console.log(e);return}let{unmount:t}=(0,Ms.render)($s.default.createElement(Ms.Text,{color:"cyan"},e));t()}function Dt(e,t="cli"){if(wh()){console.log(`\x1B[90m[${t}]\x1B[0m ${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Text,null,$s.default.createElement(nA,{prefix:t})," ",e));r()}function q3({timestamp:e}){return $s.default.createElement(Ms.Box,{width:13},$s.default.createElement(Ms.Text,{color:"grey"},(0,vE.default)(e).format("HH:mm:ss.SSS")))}function GK(e,t){if(wh()){console.log(`${(0,vE.default)(t).format("HH:mm:ss.SSS")} ${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Box,null,$s.default.createElement(q3,{timestamp:t}),$s.default.createElement(Ms.Text,null,e)));r()}function KK(e,t){if(wh()){console.log(`${(0,vE.default)(t).format("HH:mm:ss.SSS")} [WARNING] ${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Box,null,$s.default.createElement(q3,{timestamp:t}),$s.default.createElement(Ms.Text,{color:"white",backgroundColor:"yellow"},"[WARNING]"),$s.default.createElement(Ms.Text,null," ",e)));r()}function U3(e,t){if(wh()){console.log(`${(0,vE.default)(t).format("HH:mm:ss.SSS")} [ERROR] ${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Box,null,$s.default.createElement(q3,{timestamp:t}),$s.default.createElement(Ms.Text,{color:"white",backgroundColor:"red"},"[ERROR]"),$s.default.createElement(Ms.Text,null," ",e)));r()}var Ms,$s,vE,fa=ft(()=>{Ms=Lt(rA()),$s=Lt(yo()),vE=Lt(WK())});var JK,YK=ft(()=>{JK={name:"edgeone",version:"1.6.7",description:"Command-line interface for TencentCloud Pages Functions",bin:{edgeone:"./edgeone-bin/edgeone.js"},files:["./edgeone-bin/edgeone.js","./edgeone-dist/cli.js","./edgeone-dist/pages/templates","./edgeone-dist/pages/dev/runner-worker.js","./edgeone-dist/pages/observability-python/**","./edgeone-dist/libs-pages-blob-python/**","./edgeone-dist/libs-pages-agent-toolkit/**","./edgeone-dist/studio/**","./libs-pages-blob-python/**","./libs-pages-agent-toolkit/**"],author:"",keywords:["tencent","edgeone","edgefunctions","edgeone","cli","typescript"],scripts:{clean:"rimraf ./edgeone-dist ./edgeone-bin ./libs-node-ai ./libs-kv-client",bundle:"node -r esbuild-register ./scripts/bundle.ts",watch:"node -r esbuild-register ./scripts/bundle.ts watch",build:"npm run clean && npm run build:pages-ai && npm run build:kv-client && npm run prepare:blob-wheel && npm run prepare:agent-toolkit-wheel && npm run bundle","build:pages-ai":"node ./scripts/build-pages-ai.js","build:kv-client":"node ./scripts/build-kv-client.js","prepare:blob-wheel":"node ./scripts/prepare-pages-blob-wheel.js","prepare:agent-toolkit-wheel":"node ./scripts/prepare-pages-agent-toolkit-wheel.js","verify:publish-assets":"node ./scripts/verify-publish-assets.js","upload:agent-version-manifest":"node ./scripts/upload-agent-version-manifest.js",format:'prettier --write "src/**/*.{ts,tsx,js,jsx,json,md}" "scripts/**/*.{ts,js}" "*.{json,md}"',prepack:"npm run build && npm run verify:publish-assets",prepublishOnly:"npm run build && npm run verify:publish-assets",test:"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","test:observability":"vitest run --config src/agent/observability/node/tests/vitest.config.ts && cd src/agent/observability/python && uv run pytest tests/ -q"},dependencies:{"@edgeone/framework-detect":"^0.0.2","@edgeone/is-spa":"^0.0.3","@edgeone/nuxt-pages":"1.1.0","@edgeone/opennextjs-pages":"0.2.5","@edgeone/pages-agent-toolkit":"^0.1.34","@edgeone/pages-blob":"^0.0.13",archiver:"^7.0.1",chokidar:"^4.0.1","common-path-prefix":"^1.0.0","cos-nodejs-sdk-v5":"^2.14.7","cross-spawn":"^7.0.6",crypto:"^1.0.1","detect-port":"^2.1.0",esbuild:"^0.19.2","esbuild-plugin-polyfill-node":"^0.3.0","esbuild-plugin-vue":"^0.2.4","fast-glob":"^3.3.0","fs-extra":"^11.3.1",giget:"^2.0.0","ink-table":"^3.1.0",inquirer:"^8.2.4",install:"^0.13.0",lodash:"^4.17.21","mime-types":"^3.0.1",minimatch:"^9.0.5","node-persist":"^4.0.3",npm:"^10.9.1",open:"^8.4.2","p-map":"^5.5.0","parse-gitignore":"^2.0.0",portfinder:"^1.0.32",undici:"^5.29.0",vitest:"^4.0.17"},devDependencies:{"@babel/generator":"^7.28.0","@babel/parser":"^7.28.0","@babel/traverse":"^7.28.0","@babel/types":"^7.28.0","@opentelemetry/api":"^1.9.1","@opentelemetry/core":"^1.30.1","@opentelemetry/exporter-metrics-otlp-http":"^0.55.0","@opentelemetry/exporter-trace-otlp-http":"^0.55.0","@opentelemetry/instrumentation":"^0.55.0","@opentelemetry/otlp-transformer":"^0.55.0","@opentelemetry/resources":"^1.30.1","@opentelemetry/sdk-metrics":"^1.30.1","@opentelemetry/sdk-trace-base":"^1.30.1","@opentelemetry/sdk-trace-node":"^1.30.1","@opentelemetry/semantic-conventions":"^1.40.0","@tencent/capi-nodejs-sdk":"^2.3.2","@types/http-proxy":"^1.17.12","@types/inquirer":"^9.0.8","@types/ip":"^1.1.0","@types/lodash":"^4.14.198","@types/prompts":"^2.4.4","@types/react":"^17.0.2","@types/uuid":"^9.0.3","@types/ws":"^8.5.7","@types/yargs":"^17.0.24","@vitest/coverage-v8":"^4.0.17",axios:"^1.7.9",chalk:"^5.3.0",cookie:"^1.0.2",dotenv:"^16.3.1","esbuild-register":"^3.6.0",execa:"^7.1.1","http-proxy":"^1.18.1",husky:"^8.0.3",ink:"^3.2.0",ip:"^2.0.1",json5:"^2.2.3","lint-staged":"^15.2.0",lodash:"^4.17.21",moment:"^2.30.1","node-fetch":"^3.3.2",prettier:"^3.1.1",prompts:"^2.4.2",protobufjs:"^8.4.2",react:"^17.0.2",rimraf:"^6.0.1",semiver:"^1.1.0",sirv:"^2.0.3","tencentcloud-cls-sdk-js-web":"^1.0.13","ts-node":"^10.9.2",typescript:"^5.9.3","update-check":"^1.5.4",uuid:"^9.0.0",ws:"^8.14.2",yargs:"^17.6.2",zod:"^3.23.8","zod-to-json-schema":"^3.23.5"},engines:{node:">=12"},"lint-staged":{"*.{ts,tsx,js,jsx,json,md}":["prettier --write"]}}});function G3e(){var e,t;return{run_id:z3e,cli_version:(t=(e=JK)==null?void 0:e.version)!=null?t:"unknown",node_version:process.version,os_platform:V3.default.platform(),os_arch:V3.default.arch(),app_type:"cli",app_id:process.env.AppId||void 0,uin:process.env.Uin||void 0,instance_id:process.env.ProjectId||void 0,is_ci:process.env.CI==="true"}}function K3e(e,t){try{if(typeof process.send!="function")return;process.send(JSON.stringify({name:e,value:JSON.stringify(t)}))}catch{}}function hu(e){var r;let t={...G3e(),...e};K3e((r=t.event_name)!=null?r:"unknown",t)}function yd(e){if(e==null)return{message:"unknown error",stack:""};if(typeof e=="string")return{message:iA(e,$3),stack:""};if(typeof e=="object"){let t=e,r=iA(typeof t.message=="string"?t.message:String(t),$3),s=iA(typeof t.stack=="string"?t.stack:"",Y3e);return{message:r,stack:s}}return{message:iA(String(e),$3),stack:""}}function iA(e,t){return e.length>t?e.slice(0,t)+"\u2026[truncated]":e}var V3,fu,du,z3e,H3,$3,Y3e,Ty=ft(()=>{V3=Lt(require("os"));YK();fu={COMMAND:"command",REQUEST:"request",LOCAL_FLOW:"local_flow",EXIT:"exit"},du={SUCCESS:"success",FAIL:"fail",START:"start"},z3e=`cli-${Date.now()}-${Math.random().toString(36).slice(2,6)}`;H3=(e,t)=>{let r=yd(t);hu({event_name:"error",event_scope:fu.COMMAND,event_result:du.FAIL,error_message:`${e} ${r.message}`.trim(),error_stack:r.stack})},$3=500,Y3e=2e3});var _E,K2,W3=ft(()=>{_E={NEXTJS:"nextjs",NUXTJS:"nuxtjs",ASTRO:"astro",UNKNOWN:"unknown"},K2={FRAMEWORK_DETECT:"framework_detect",PLUGIN_RESOLVE:"plugin_resolve",PLUGIN_LOAD:"plugin_load",PLUGIN_HOOK:"plugin_hook",CONFIG_LOAD:"config_load"}});function Q3e(e){if((e==null?void 0:e.code)===X3e)return!0;let t=typeof e=="string"?e:e==null?void 0:e.message;return t==null?void 0:t.includes(J3e)}async function rv(e=!1){try{let t=await fC(e);return hu({event_name:"Config:Load:Success",event_scope:fu.LOCAL_FLOW,event_phase:K2.CONFIG_LOAD,event_result:du.SUCCESS,has_build_command:(t==null?void 0:t.buildCommand)!=null,has_install_command:(t==null?void 0:t.installCommand)!=null,has_output_directory:(t==null?void 0:t.outputDirectory)!=null,has_node_version:(t==null?void 0:t.nodeVersion)!=null}),t}catch(t){let r=yd(t);if(hu({event_name:"Config:Load:Fail",event_scope:fu.LOCAL_FLOW,event_phase:K2.CONFIG_LOAD,event_result:du.FAIL,error_message:r.message}),Q3e(t))throw t;return fd()&&console.error("%c [ error ]-80","font-size:13px; background:pink; color:#bf2c9f;",t),null}}var J3e,X3e,z3=ft(()=>{k2();aC();Ty();W3();J3e="[BLOCKING_CONFIG_ERROR]",X3e="BLOCKING_CONFIG_ERROR"});var sA,yc,oA=ft(()=>{sA=[{funcName:"onRequestGet",method:"GET"},{funcName:"onRequestPost",method:"POST"},{funcName:"onRequestDelete",method:"DELETE"},{funcName:"onRequestPatch",method:"PATCH"},{funcName:"onRequestPut",method:"PUT"},{funcName:"onRequestHead",method:"HEAD"},{funcName:"onRequestOptions",method:"OPTIONS"}],yc=["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"]});async function Z3e(e){let t;aA.default.statSync(e).isFile()?t=Y2.default.resolve(Y2.default.dirname(e)):t=e;let r=Y2.default.parse(t).root;if(t===r)return null;for(;t!==r;){let s=Y2.default.join(t,"package.json");try{return await aA.default.promises.access(s),s}catch{if(t=Y2.default.dirname(t),t===r)break}}return null}async function J2(e){if(e.endsWith(".mjs"))return"esm";if(e.endsWith(".cjs"))return"commonjs";try{let t=await Z3e(e);if(t&&JSON.parse(await aA.default.promises.readFile(t,"utf-8")).type==="module")return"esm"}catch(t){console.warn("Failed to read package.json:",t)}return"commonjs"}var aA,Y2,SE=ft(()=>{aA=Lt(require("fs")),Y2=Lt(require("path"))});function tFe(e){let t=G3.default.extname(e);return eFe[t]||"ts"}async function ZK(e,t,r,s){let a=`mod_${rFe++}`,l=(await QK.default.build({stdin:{contents:e,loader:tFe(r),resolveDir:G3.default.dirname(r)},write:!1,bundle:!0,format:"esm",platform:"node",target:"node14",minify:!1,resolveExtensions:[".ts",".js",".mjs",".json"],nodePaths:[process.cwd()],absWorkingDir:process.cwd(),external:(s==null?void 0:s.externalModules)||[]})).outputFiles[0].text,f=[];l=l.replace(/^import\s+[^'"]*['"][^'"]*['"]\s*;?\n/gm,b=>(f.push(b),"")),l=l.replace(/export (async )?function/g,"$1function"),l=l.replace(/export const/g,"const"),l=l.replace(/export let/g,"let"),l=l.replace(/export var/g,"var"),l=l.replace(/export default/g,""),l=l.replace(/export \{[^}]+\};?/g,""),l=l.replace(/export class/g,"class");let m=/const\s+app\s*=/.test(l),y=`${f.join(`
|
|
145
|
+
`+new Error().stack),q=!1}return I.apply(this,arguments)},I)}var Le={};function Pt(E,I){t.deprecationHandler!=null&&t.deprecationHandler(E,I),Le[E]||(Me(I),Le[E]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function lt(E){return typeof Function<"u"&&E instanceof Function||Object.prototype.toString.call(E)==="[object Function]"}function ut(E){var I,q;for(q in E)n(E,q)&&(I=E[q],lt(I)?this[q]=I:this["_"+q]=I);this._config=E,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function je(E,I){var q=b({},E),z;for(z in I)n(I,z)&&(a(E[z])&&a(I[z])?(q[z]={},b(q[z],E[z]),b(q[z],I[z])):I[z]!=null?q[z]=I[z]:delete q[z]);for(z in E)n(E,z)&&!n(I,z)&&a(E[z])&&(q[z]=b({},q[z]));return q}function oe(E){E!=null&&this.set(E)}var ke;Object.keys?ke=Object.keys:ke=function(E){var I,q=[];for(I in E)n(E,I)&&q.push(I);return q};var Ke={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Se(E,I,q){var z=this._calendar[E]||this._calendar.sameElse;return lt(z)?z.call(I,q):z}function we(E,I,q){var z=""+Math.abs(E),ee=I-z.length,De=E>=0;return(De?q?"+":"":"-")+Math.pow(10,Math.max(0,ee)).toString().substr(1)+z}var Fe=/(\[[^\[]*\])|(\\)?([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,it=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,It={},Zt={};function Qe(E,I,q,z){var ee=z;typeof z=="string"&&(ee=function(){return this[z]()}),E&&(Zt[E]=ee),I&&(Zt[I[0]]=function(){return we(ee.apply(this,arguments),I[1],I[2])}),q&&(Zt[q]=function(){return this.localeData().ordinal(ee.apply(this,arguments),E)})}function Ot(E){return E.match(/\[[\s\S]/)?E.replace(/^\[|\]$/g,""):E.replace(/\\/g,"")}function Ae(E){var I=E.match(Fe),q,z;for(q=0,z=I.length;q<z;q++)Zt[I[q]]?I[q]=Zt[I[q]]:I[q]=Ot(I[q]);return function(ee){var De="",vt;for(vt=0;vt<z;vt++)De+=lt(I[vt])?I[vt].call(ee,E):I[vt];return De}}function Ze(E,I){return E.isValid()?(I=at(I,E.localeData()),It[I]=It[I]||Ae(I),It[I](E)):E.localeData().invalidDate()}function at(E,I){var q=5;function z(ee){return I.longDateFormat(ee)||ee}for(it.lastIndex=0;q>=0&&it.test(E);)E=E.replace(it,z),it.lastIndex=0,q-=1;return E}var qt={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 wt(E){var I=this._longDateFormat[E],q=this._longDateFormat[E.toUpperCase()];return I||!q?I:(this._longDateFormat[E]=q.match(Fe).map(function(z){return z==="MMMM"||z==="MM"||z==="DD"||z==="dddd"?z.slice(1):z}).join(""),this._longDateFormat[E])}var pt="Invalid date";function ht(){return this._invalidDate}var C="%d",Ct=/\d{1,2}/;function Kt(E){return this._ordinal.replace("%d",E)}var Jr={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 xt(E,I,q,z){var ee=this._relativeTime[q];return lt(ee)?ee(E,I,q,z):ee.replace(/%d/i,E)}function St(E,I){var q=this._relativeTime[E>0?"future":"past"];return lt(q)?q(I):q.replace(/%s/i,I)}var tr={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ge(E){return typeof E=="string"?tr[E]||tr[E.toLowerCase()]:void 0}function Ye(E){var I={},q,z;for(z in E)n(E,z)&&(q=ge(z),q&&(I[q]=E[z]));return I}var Ut={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function rr(E){var I=[],q;for(q in E)n(E,q)&&I.push({unit:q,priority:Ut[q]});return I.sort(function(z,ee){return z.priority-ee.priority}),I}var Ur=/\d/,$r=/\d\d/,Hn=/\d{3}/,jn=/\d{4}/,ei=/[+-]?\d{6}/,bn=/\d\d?/,Vo=/\d\d\d\d?/,ra=/\d\d\d\d\d\d?/,ls=/\d{1,3}/,Ho=/\d{1,4}/,Gu=/[+-]?\d{1,6}/,Ja=/\d+/,rt=/[+-]?\d+/,Ft=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,Jt=/[+-]?\d+(\.\d{1,3})?/,Ir=/[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,xr=/^[1-9]\d?/,In=/^([1-9]\d|\d)/,xi;xi={};function Mt(E,I,q){xi[E]=lt(I)?I:function(z,ee){return z&&q?q:I}}function Ci(E,I){return n(xi,E)?xi[E](I._strict,I._locale):new RegExp(Ts(E))}function Ts(E){return Ai(E.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(I,q,z,ee,De){return q||z||ee||De}))}function Ai(E){return E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _i(E){return E<0?Math.ceil(E)||0:Math.floor(E)}function sn(E){var I=+E,q=0;return I!==0&&isFinite(I)&&(q=_i(I)),q}var Ws={};function On(E,I){var q,z=I,ee;for(typeof E=="string"&&(E=[E]),m(I)&&(z=function(De,vt){vt[I]=sn(De)}),ee=E.length,q=0;q<ee;q++)Ws[E[q]]=z}function _s(E,I){On(E,function(q,z,ee,De){ee._w=ee._w||{},I(q,ee._w,ee,De)})}function Ku(E,I,q){I!=null&&n(Ws,E)&&Ws[E](I,q._a,q,E)}function to(E){return E%4===0&&E%100!==0||E%400===0}var ur=0,Do=1,co=2,Ps=3,ko=4,lo=5,Bs=6,nl=7,yu=8;Qe("Y",0,0,function(){var E=this.year();return E<=9999?we(E,4):"+"+E}),Qe(0,["YY",2],0,function(){return this.year()%100}),Qe(0,["YYYY",4],0,"year"),Qe(0,["YYYYY",5],0,"year"),Qe(0,["YYYYYY",6,!0],0,"year"),Mt("Y",rt),Mt("YY",bn,$r),Mt("YYYY",Ho,jn),Mt("YYYYY",Gu,ei),Mt("YYYYYY",Gu,ei),On(["YYYYY","YYYYYY"],ur),On("YYYY",function(E,I){I[ur]=E.length===2?t.parseTwoDigitYear(E):sn(E)}),On("YY",function(E,I){I[ur]=t.parseTwoDigitYear(E)}),On("Y",function(E,I){I[ur]=parseInt(E,10)});function La(E){return to(E)?366:365}t.parseTwoDigitYear=function(E){return sn(E)+(sn(E)>68?1900:2e3)};var Yu=tn("FullYear",!0);function ql(){return to(this.year())}function tn(E,I){return function(q){return q!=null?(il(this,E,q),t.updateOffset(this,I),this):bc(this,E)}}function bc(E,I){if(!E.isValid())return NaN;var q=E._d,z=E._isUTC;switch(I){case"Milliseconds":return z?q.getUTCMilliseconds():q.getMilliseconds();case"Seconds":return z?q.getUTCSeconds():q.getSeconds();case"Minutes":return z?q.getUTCMinutes():q.getMinutes();case"Hours":return z?q.getUTCHours():q.getHours();case"Date":return z?q.getUTCDate():q.getDate();case"Day":return z?q.getUTCDay():q.getDay();case"Month":return z?q.getUTCMonth():q.getMonth();case"FullYear":return z?q.getUTCFullYear():q.getFullYear();default:return NaN}}function il(E,I,q){var z,ee,De,vt,fr;if(!(!E.isValid()||isNaN(q))){switch(z=E._d,ee=E._isUTC,I){case"Milliseconds":return void(ee?z.setUTCMilliseconds(q):z.setMilliseconds(q));case"Seconds":return void(ee?z.setUTCSeconds(q):z.setSeconds(q));case"Minutes":return void(ee?z.setUTCMinutes(q):z.setMinutes(q));case"Hours":return void(ee?z.setUTCHours(q):z.setHours(q));case"Date":return void(ee?z.setUTCDate(q):z.setDate(q));case"FullYear":break;default:return}De=q,vt=E.month(),fr=E.date(),fr=fr===29&&vt===1&&!to(De)?28:fr,ee?z.setUTCFullYear(De,vt,fr):z.setFullYear(De,vt,fr)}}function gu(E){return E=ge(E),lt(this[E])?this[E]():this}function ps(E,I){if(typeof E=="object"){E=Ye(E);var q=rr(E),z,ee=q.length;for(z=0;z<ee;z++)this[q[z].unit](E[q[z].unit])}else if(E=ge(E),lt(this[E]))return this[E](I);return this}function Yi(E,I){return(E%I+I)%I}var Mi;Array.prototype.indexOf?Mi=Array.prototype.indexOf:Mi=function(E){var I;for(I=0;I<this.length;++I)if(this[I]===E)return I;return-1};function zs(E,I){if(isNaN(E)||isNaN(I))return NaN;var q=Yi(I,12);return E+=(I-q)/12,q===1?to(E)?29:28:31-q%7%2}Qe("M",["MM",2],"Mo",function(){return this.month()+1}),Qe("MMM",0,0,function(E){return this.localeData().monthsShort(this,E)}),Qe("MMMM",0,0,function(E){return this.localeData().months(this,E)}),Mt("M",bn,xr),Mt("MM",bn,$r),Mt("MMM",function(E,I){return I.monthsShortRegex(E)}),Mt("MMMM",function(E,I){return I.monthsRegex(E)}),On(["M","MM"],function(E,I){I[Do]=sn(E)-1}),On(["MMM","MMMM"],function(E,I,q,z){var ee=q._locale.monthsParse(E,z,q._strict);ee!=null?I[Do]=ee:g(q).invalidMonth=E});var Io="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ma="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),na=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oo=Ir,Ul=Ir;function fm(E,I){return E?s(this._months)?this._months[E.month()]:this._months[(this._months.isFormat||na).test(I)?"format":"standalone"][E.month()]:s(this._months)?this._months:this._months.standalone}function Mp(E,I){return E?s(this._monthsShort)?this._monthsShort[E.month()]:this._monthsShort[na.test(I)?"format":"standalone"][E.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function $l(E,I,q){var z,ee,De,vt=E.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],z=0;z<12;++z)De=P([2e3,z]),this._shortMonthsParse[z]=this.monthsShort(De,"").toLocaleLowerCase(),this._longMonthsParse[z]=this.months(De,"").toLocaleLowerCase();return q?I==="MMM"?(ee=Mi.call(this._shortMonthsParse,vt),ee!==-1?ee:null):(ee=Mi.call(this._longMonthsParse,vt),ee!==-1?ee:null):I==="MMM"?(ee=Mi.call(this._shortMonthsParse,vt),ee!==-1?ee:(ee=Mi.call(this._longMonthsParse,vt),ee!==-1?ee:null)):(ee=Mi.call(this._longMonthsParse,vt),ee!==-1?ee:(ee=Mi.call(this._shortMonthsParse,vt),ee!==-1?ee:null))}function ba(E,I,q){var z,ee,De;if(this._monthsParseExact)return $l.call(this,E,I,q);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),z=0;z<12;z++){if(ee=P([2e3,z]),q&&!this._longMonthsParse[z]&&(this._longMonthsParse[z]=new RegExp("^"+this.months(ee,"").replace(".","")+"$","i"),this._shortMonthsParse[z]=new RegExp("^"+this.monthsShort(ee,"").replace(".","")+"$","i")),!q&&!this._monthsParse[z]&&(De="^"+this.months(ee,"")+"|^"+this.monthsShort(ee,""),this._monthsParse[z]=new RegExp(De.replace(".",""),"i")),q&&I==="MMMM"&&this._longMonthsParse[z].test(E))return z;if(q&&I==="MMM"&&this._shortMonthsParse[z].test(E))return z;if(!q&&this._monthsParse[z].test(E))return z}}function jt(E,I){if(!E.isValid())return E;if(typeof I=="string"){if(/^\d+$/.test(I))I=sn(I);else if(I=E.localeData().monthsParse(I),!m(I))return E}var q=I,z=E.date();return z=z<29?z:Math.min(z,zs(E.year(),q)),E._isUTC?E._d.setUTCMonth(q,z):E._d.setMonth(q,z),E}function vu(E){return E!=null?(jt(this,E),t.updateOffset(this,!0),this):bc(this,"Month")}function dm(){return zs(this.year(),this.month())}function Bp(E){return this._monthsParseExact?(n(this,"_monthsRegex")||Ec.call(this),E?this._monthsShortStrictRegex:this._monthsShortRegex):(n(this,"_monthsShortRegex")||(this._monthsShortRegex=Oo),this._monthsShortStrictRegex&&E?this._monthsShortStrictRegex:this._monthsShortRegex)}function rs(E){return this._monthsParseExact?(n(this,"_monthsRegex")||Ec.call(this),E?this._monthsStrictRegex:this._monthsRegex):(n(this,"_monthsRegex")||(this._monthsRegex=Ul),this._monthsStrictRegex&&E?this._monthsStrictRegex:this._monthsRegex)}function Ec(){function E(fn,fi){return fi.length-fn.length}var I=[],q=[],z=[],ee,De,vt,fr;for(ee=0;ee<12;ee++)De=P([2e3,ee]),vt=Ai(this.monthsShort(De,"")),fr=Ai(this.months(De,"")),I.push(vt),q.push(fr),z.push(fr),z.push(vt);I.sort(E),q.sort(E),z.sort(E),this._monthsRegex=new RegExp("^("+z.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+I.join("|")+")","i")}function Qh(E,I,q,z,ee,De,vt){var fr;return E<100&&E>=0?(fr=new Date(E+400,I,q,z,ee,De,vt),isFinite(fr.getFullYear())&&fr.setFullYear(E)):fr=new Date(E,I,q,z,ee,De,vt),fr}function Cf(E){var I,q;return E<100&&E>=0?(q=Array.prototype.slice.call(arguments),q[0]=E+400,I=new Date(Date.UTC.apply(null,q)),isFinite(I.getUTCFullYear())&&I.setUTCFullYear(E)):I=new Date(Date.UTC.apply(null,arguments)),I}function sl(E,I,q){var z=7+I-q,ee=(7+Cf(E,0,z).getUTCDay()-I)%7;return-ee+z-1}function Bd(E,I,q,z,ee){var De=(7+q-z)%7,vt=sl(E,z,ee),fr=1+7*(I-1)+De+vt,fn,fi;return fr<=0?(fn=E-1,fi=La(fn)+fr):fr>La(E)?(fn=E+1,fi=fr-La(E)):(fn=E,fi=fr),{year:fn,dayOfYear:fi}}function or(E,I,q){var z=sl(E.year(),I,q),ee=Math.floor((E.dayOfYear()-z-1)/7)+1,De,vt;return ee<1?(vt=E.year()-1,De=ee+Bi(vt,I,q)):ee>Bi(E.year(),I,q)?(De=ee-Bi(E.year(),I,q),vt=E.year()+1):(vt=E.year(),De=ee),{week:De,year:vt}}function Bi(E,I,q){var z=sl(E,I,q),ee=sl(E+1,I,q);return(La(E)-z+ee)/7}Qe("w",["ww",2],"wo","week"),Qe("W",["WW",2],"Wo","isoWeek"),Mt("w",bn,xr),Mt("ww",bn,$r),Mt("W",bn,xr),Mt("WW",bn,$r),_s(["w","ww","W","WW"],function(E,I,q,z){I[z.substr(0,1)]=sn(E)});function jd(E){return or(E,this._week.dow,this._week.doy).week}var Vl={dow:0,doy:6};function xu(){return this._week.dow}function Af(){return this._week.doy}function hm(E){var I=this.localeData().week(this);return E==null?I:this.add((E-I)*7,"d")}function Zh(E){var I=or(this,1,4).week;return E==null?I:this.add((E-I)*7,"d")}Qe("d",0,"do","day"),Qe("dd",0,0,function(E){return this.localeData().weekdaysMin(this,E)}),Qe("ddd",0,0,function(E){return this.localeData().weekdaysShort(this,E)}),Qe("dddd",0,0,function(E){return this.localeData().weekdays(this,E)}),Qe("e",0,0,"weekday"),Qe("E",0,0,"isoWeekday"),Mt("d",bn),Mt("e",bn),Mt("E",bn),Mt("dd",function(E,I){return I.weekdaysMinRegex(E)}),Mt("ddd",function(E,I){return I.weekdaysShortRegex(E)}),Mt("dddd",function(E,I){return I.weekdaysRegex(E)}),_s(["dd","ddd","dddd"],function(E,I,q,z){var ee=q._locale.weekdaysParse(E,z,q._strict);ee!=null?I.d=ee:g(q).invalidWeekday=E}),_s(["d","e","E"],function(E,I,q,z){I[z]=sn(E)});function mm(E,I){return typeof E!="string"?E:isNaN(E)?(E=I.weekdaysParse(E),typeof E=="number"?E:null):parseInt(E,10)}function Ba(E,I){return typeof E=="string"?I.weekdaysParse(E)%7||7:isNaN(E)?null:E}function ja(E,I){return E.slice(I,7).concat(E.slice(0,I))}var e0="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),t0="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),jp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ia=Ir,qp=Ir,qa=Ir;function ol(E,I){var q=s(this._weekdays)?this._weekdays:this._weekdays[E&&E!==!0&&this._weekdays.isFormat.test(I)?"format":"standalone"];return E===!0?ja(q,this._week.dow):E?q[E.day()]:q}function _u(E){return E===!0?ja(this._weekdaysShort,this._week.dow):E?this._weekdaysShort[E.day()]:this._weekdaysShort}function Ju(E){return E===!0?ja(this._weekdaysMin,this._week.dow):E?this._weekdaysMin[E.day()]:this._weekdaysMin}function wc(E,I,q){var z,ee,De,vt=E.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],z=0;z<7;++z)De=P([2e3,1]).day(z),this._minWeekdaysParse[z]=this.weekdaysMin(De,"").toLocaleLowerCase(),this._shortWeekdaysParse[z]=this.weekdaysShort(De,"").toLocaleLowerCase(),this._weekdaysParse[z]=this.weekdays(De,"").toLocaleLowerCase();return q?I==="dddd"?(ee=Mi.call(this._weekdaysParse,vt),ee!==-1?ee:null):I==="ddd"?(ee=Mi.call(this._shortWeekdaysParse,vt),ee!==-1?ee:null):(ee=Mi.call(this._minWeekdaysParse,vt),ee!==-1?ee:null):I==="dddd"?(ee=Mi.call(this._weekdaysParse,vt),ee!==-1||(ee=Mi.call(this._shortWeekdaysParse,vt),ee!==-1)?ee:(ee=Mi.call(this._minWeekdaysParse,vt),ee!==-1?ee:null)):I==="ddd"?(ee=Mi.call(this._shortWeekdaysParse,vt),ee!==-1||(ee=Mi.call(this._weekdaysParse,vt),ee!==-1)?ee:(ee=Mi.call(this._minWeekdaysParse,vt),ee!==-1?ee:null)):(ee=Mi.call(this._minWeekdaysParse,vt),ee!==-1||(ee=Mi.call(this._weekdaysParse,vt),ee!==-1)?ee:(ee=Mi.call(this._shortWeekdaysParse,vt),ee!==-1?ee:null))}function Tc(E,I,q){var z,ee,De;if(this._weekdaysParseExact)return wc.call(this,E,I,q);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),z=0;z<7;z++){if(ee=P([2e3,1]).day(z),q&&!this._fullWeekdaysParse[z]&&(this._fullWeekdaysParse[z]=new RegExp("^"+this.weekdays(ee,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[z]=new RegExp("^"+this.weekdaysShort(ee,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[z]=new RegExp("^"+this.weekdaysMin(ee,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[z]||(De="^"+this.weekdays(ee,"")+"|^"+this.weekdaysShort(ee,"")+"|^"+this.weekdaysMin(ee,""),this._weekdaysParse[z]=new RegExp(De.replace(".",""),"i")),q&&I==="dddd"&&this._fullWeekdaysParse[z].test(E))return z;if(q&&I==="ddd"&&this._shortWeekdaysParse[z].test(E))return z;if(q&&I==="dd"&&this._minWeekdaysParse[z].test(E))return z;if(!q&&this._weekdaysParse[z].test(E))return z}}function Os(E){if(!this.isValid())return E!=null?this:NaN;var I=bc(this,"Day");return E!=null?(E=mm(E,this.localeData()),this.add(E-I,"d")):I}function En(E){if(!this.isValid())return E!=null?this:NaN;var I=(this.day()+7-this.localeData()._week.dow)%7;return E==null?I:this.add(E-I,"d")}function Xu(E){if(!this.isValid())return E!=null?this:NaN;if(E!=null){var I=Ba(E,this.localeData());return this.day(this.day()%7?I:I-7)}else return this.day()||7}function r0(E){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||Wl.call(this),E?this._weekdaysStrictRegex:this._weekdaysRegex):(n(this,"_weekdaysRegex")||(this._weekdaysRegex=ia),this._weekdaysStrictRegex&&E?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gs(E){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||Wl.call(this),E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(n(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qp),this._weekdaysShortStrictRegex&&E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Hl(E){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||Wl.call(this),E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(n(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qa),this._weekdaysMinStrictRegex&&E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wl(){function E(ua,iu){return iu.length-ua.length}var I=[],q=[],z=[],ee=[],De,vt,fr,fn,fi;for(De=0;De<7;De++)vt=P([2e3,1]).day(De),fr=Ai(this.weekdaysMin(vt,"")),fn=Ai(this.weekdaysShort(vt,"")),fi=Ai(this.weekdays(vt,"")),I.push(fr),q.push(fn),z.push(fi),ee.push(fr),ee.push(fn),ee.push(fi);I.sort(E),q.sort(E),z.sort(E),ee.sort(E),this._weekdaysRegex=new RegExp("^("+ee.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+z.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+I.join("|")+")","i")}function Ua(){return this.hours()%12||12}function Up(){return this.hours()||24}Qe("H",["HH",2],0,"hour"),Qe("h",["hh",2],0,Ua),Qe("k",["kk",2],0,Up),Qe("hmm",0,0,function(){return""+Ua.apply(this)+we(this.minutes(),2)}),Qe("hmmss",0,0,function(){return""+Ua.apply(this)+we(this.minutes(),2)+we(this.seconds(),2)}),Qe("Hmm",0,0,function(){return""+this.hours()+we(this.minutes(),2)}),Qe("Hmmss",0,0,function(){return""+this.hours()+we(this.minutes(),2)+we(this.seconds(),2)});function No(E,I){Qe(E,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),I)})}No("a",!0),No("A",!1);function $p(E,I){return I._meridiemParse}Mt("a",$p),Mt("A",$p),Mt("H",bn,In),Mt("h",bn,xr),Mt("k",bn,xr),Mt("HH",bn,$r),Mt("hh",bn,$r),Mt("kk",bn,$r),Mt("hmm",Vo),Mt("hmmss",ra),Mt("Hmm",Vo),Mt("Hmmss",ra),On(["H","HH"],Ps),On(["k","kk"],function(E,I,q){var z=sn(E);I[Ps]=z===24?0:z}),On(["a","A"],function(E,I,q){q._isPm=q._locale.isPM(E),q._meridiem=E}),On(["h","hh"],function(E,I,q){I[Ps]=sn(E),g(q).bigHour=!0}),On("hmm",function(E,I,q){var z=E.length-2;I[Ps]=sn(E.substr(0,z)),I[ko]=sn(E.substr(z)),g(q).bigHour=!0}),On("hmmss",function(E,I,q){var z=E.length-4,ee=E.length-2;I[Ps]=sn(E.substr(0,z)),I[ko]=sn(E.substr(z,2)),I[lo]=sn(E.substr(ee)),g(q).bigHour=!0}),On("Hmm",function(E,I,q){var z=E.length-2;I[Ps]=sn(E.substr(0,z)),I[ko]=sn(E.substr(z))}),On("Hmmss",function(E,I,q){var z=E.length-4,ee=E.length-2;I[Ps]=sn(E.substr(0,z)),I[ko]=sn(E.substr(z,2)),I[lo]=sn(E.substr(ee))});function n0(E){return(E+"").toLowerCase().charAt(0)==="p"}var Xa=/[ap]\.?m?\.?/i,Ea=tn("Hours",!0);function Vp(E,I,q){return E>11?q?"pm":"PM":q?"am":"AM"}var al={calendar:Ke,longDateFormat:qt,invalidDate:pt,ordinal:C,dayOfMonthOrdinalParse:Ct,relativeTime:Jr,months:Io,monthsShort:Ma,week:Vl,weekdays:e0,weekdaysMin:jp,weekdaysShort:t0,meridiemParse:Xa},Ss={},ro={},Qu;function Df(E,I){var q,z=Math.min(E.length,I.length);for(q=0;q<z;q+=1)if(E[q]!==I[q])return q;return z}function Su(E){return E&&E.toLowerCase().replace("_","-")}function ul(E){for(var I=0,q,z,ee,De;I<E.length;){for(De=Su(E[I]).split("-"),q=De.length,z=Su(E[I+1]),z=z?z.split("-"):null;q>0;){if(ee=Z(De.slice(0,q).join("-")),ee)return ee;if(z&&z.length>=q&&Df(De,z)>=q-1)break;q--}I++}return Qu}function ue(E){return!!(E&&E.match("^[^/\\\\]*$"))}function Z(E){var I=null,q;if(Ss[E]===void 0&&typeof G2<"u"&&G2&&G2.exports&&ue(E))try{I=Qu._abbr,q=require,q("./locale/"+E),ae(I)}catch{Ss[E]=null}return Ss[E]}function ae(E,I){var q;return E&&(f(I)?q=Je(E):q=Re(E,I),q?Qu=q:typeof console<"u"&&console.warn&&console.warn("Locale "+E+" not found. Did you forget to load it?")),Qu._abbr}function Re(E,I){if(I!==null){var q,z=al;if(I.abbr=E,Ss[E]!=null)Pt("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."),z=Ss[E]._config;else if(I.parentLocale!=null)if(Ss[I.parentLocale]!=null)z=Ss[I.parentLocale]._config;else if(q=Z(I.parentLocale),q!=null)z=q._config;else return ro[I.parentLocale]||(ro[I.parentLocale]=[]),ro[I.parentLocale].push({name:E,config:I}),null;return Ss[E]=new oe(je(z,I)),ro[E]&&ro[E].forEach(function(ee){Re(ee.name,ee.config)}),ae(E),Ss[E]}else return delete Ss[E],null}function nt(E,I){if(I!=null){var q,z,ee=al;Ss[E]!=null&&Ss[E].parentLocale!=null?Ss[E].set(je(Ss[E]._config,I)):(z=Z(E),z!=null&&(ee=z._config),I=je(ee,I),z==null&&(I.abbr=E),q=new oe(I),q.parentLocale=Ss[E],Ss[E]=q),ae(E)}else Ss[E]!=null&&(Ss[E].parentLocale!=null?(Ss[E]=Ss[E].parentLocale,E===ae()&&ae(E)):Ss[E]!=null&&delete Ss[E]);return Ss[E]}function Je(E){var I;if(E&&E._locale&&E._locale._abbr&&(E=E._locale._abbr),!E)return Qu;if(!s(E)){if(I=Z(E),I)return I;E=[E]}return ul(E)}function gt(){return ke(Ss)}function _t(E){var I,q=E._a;return q&&g(E).overflow===-2&&(I=q[Do]<0||q[Do]>11?Do:q[co]<1||q[co]>zs(q[ur],q[Do])?co:q[Ps]<0||q[Ps]>24||q[Ps]===24&&(q[ko]!==0||q[lo]!==0||q[Bs]!==0)?Ps:q[ko]<0||q[ko]>59?ko:q[lo]<0||q[lo]>59?lo:q[Bs]<0||q[Bs]>999?Bs:-1,g(E)._overflowDayOfYear&&(I<ur||I>co)&&(I=co),g(E)._overflowWeeks&&I===-1&&(I=nl),g(E)._overflowWeekday&&I===-1&&(I=yu),g(E).overflow=I),E}var $t=/^\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)?)?$/,_r=/^\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)?)?$/,An=/Z|[+-]\d\d(?::?\d\d)?/,ti=[["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]],Nn=[["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/]],$a=/^\/?Date\((-?\d+)/i,zl=/^(?:(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}))$/,wa={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 Ro(E){var I,q,z=E._i,ee=$t.exec(z)||_r.exec(z),De,vt,fr,fn,fi=ti.length,ua=Nn.length;if(ee){for(g(E).iso=!0,I=0,q=fi;I<q;I++)if(ti[I][1].exec(ee[1])){vt=ti[I][0],De=ti[I][2]!==!1;break}if(vt==null){E._isValid=!1;return}if(ee[3]){for(I=0,q=ua;I<q;I++)if(Nn[I][1].exec(ee[3])){fr=(ee[2]||" ")+Nn[I][0];break}if(fr==null){E._isValid=!1;return}}if(!De&&fr!=null){E._isValid=!1;return}if(ee[4])if(An.exec(ee[4]))fn="Z";else{E._isValid=!1;return}E._f=vt+(fr||"")+(fn||""),Wo(E)}else E._isValid=!1}function ci(E,I,q,z,ee,De){var vt=[on(E),Ma.indexOf(I),parseInt(q,10),parseInt(z,10),parseInt(ee,10)];return De&&vt.push(parseInt(De,10)),vt}function on(E){var I=parseInt(E,10);return I<=49?2e3+I:I<=999?1900+I:I}function Nr(E){return E.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function rn(E,I,q){if(E){var z=t0.indexOf(E),ee=new Date(I[0],I[1],I[2]).getDay();if(z!==ee)return g(q).weekdayMismatch=!0,q._isValid=!1,!1}return!0}function ri(E,I,q){if(E)return wa[E];if(I)return 0;var z=parseInt(q,10),ee=z%100,De=(z-ee)/100;return De*60+ee}function ki(E){var I=zl.exec(Nr(E._i)),q;if(I){if(q=ci(I[4],I[3],I[2],I[5],I[6],I[7]),!rn(I[1],q,E))return;E._a=q,E._tzm=ri(I[8],I[9],I[10]),E._d=Cf.apply(null,E._a),E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),g(E).rfc2822=!0}else E._isValid=!1}function Ks(E){var I=$a.exec(E._i);if(I!==null){E._d=new Date(+I[1]);return}if(Ro(E),E._isValid===!1)delete E._isValid;else return;if(ki(E),E._isValid===!1)delete E._isValid;else return;E._strict?E._isValid=!1:t.createFromInputFallback(E)}t.createFromInputFallback=Ve("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 So(E,I,q){return E!=null?E:I!=null?I:q}function Pc(E){var I=new Date(t.now());return E._useUTC?[I.getUTCFullYear(),I.getUTCMonth(),I.getUTCDate()]:[I.getFullYear(),I.getMonth(),I.getDate()]}function no(E){var I,q,z=[],ee,De,vt;if(!E._d){for(ee=Pc(E),E._w&&E._a[co]==null&&E._a[Do]==null&&Va(E),E._dayOfYear!=null&&(vt=So(E._a[ur],ee[ur]),(E._dayOfYear>La(vt)||E._dayOfYear===0)&&(g(E)._overflowDayOfYear=!0),q=Cf(vt,0,E._dayOfYear),E._a[Do]=q.getUTCMonth(),E._a[co]=q.getUTCDate()),I=0;I<3&&E._a[I]==null;++I)E._a[I]=z[I]=ee[I];for(;I<7;I++)E._a[I]=z[I]=E._a[I]==null?I===2?1:0:E._a[I];E._a[Ps]===24&&E._a[ko]===0&&E._a[lo]===0&&E._a[Bs]===0&&(E._nextDay=!0,E._a[Ps]=0),E._d=(E._useUTC?Cf:Qh).apply(null,z),De=E._useUTC?E._d.getUTCDay():E._d.getDay(),E._tzm!=null&&E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),E._nextDay&&(E._a[Ps]=24),E._w&&typeof E._w.d<"u"&&E._w.d!==De&&(g(E).weekdayMismatch=!0)}}function Va(E){var I,q,z,ee,De,vt,fr,fn,fi;I=E._w,I.GG!=null||I.W!=null||I.E!=null?(De=1,vt=4,q=So(I.GG,E._a[ur],or(wn(),1,4).year),z=So(I.W,1),ee=So(I.E,1),(ee<1||ee>7)&&(fn=!0)):(De=E._locale._week.dow,vt=E._locale._week.doy,fi=or(wn(),De,vt),q=So(I.gg,E._a[ur],fi.year),z=So(I.w,fi.week),I.d!=null?(ee=I.d,(ee<0||ee>6)&&(fn=!0)):I.e!=null?(ee=I.e+De,(I.e<0||I.e>6)&&(fn=!0)):ee=De),z<1||z>Bi(q,De,vt)?g(E)._overflowWeeks=!0:fn!=null?g(E)._overflowWeekday=!0:(fr=Bd(q,z,ee,De,vt),E._a[ur]=fr.year,E._dayOfYear=fr.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function Wo(E){if(E._f===t.ISO_8601){Ro(E);return}if(E._f===t.RFC_2822){ki(E);return}E._a=[],g(E).empty=!0;var I=""+E._i,q,z,ee,De,vt,fr=I.length,fn=0,fi,ua;for(ee=at(E._f,E._locale).match(Fe)||[],ua=ee.length,q=0;q<ua;q++)De=ee[q],z=(I.match(Ci(De,E))||[])[0],z&&(vt=I.substr(0,I.indexOf(z)),vt.length>0&&g(E).unusedInput.push(vt),I=I.slice(I.indexOf(z)+z.length),fn+=z.length),Zt[De]?(z?g(E).empty=!1:g(E).unusedTokens.push(De),Ku(De,z,E)):E._strict&&!z&&g(E).unusedTokens.push(De);g(E).charsLeftOver=fr-fn,I.length>0&&g(E).unusedInput.push(I),E._a[Ps]<=12&&g(E).bigHour===!0&&E._a[Ps]>0&&(g(E).bigHour=void 0),g(E).parsedDateParts=E._a.slice(0),g(E).meridiem=E._meridiem,E._a[Ps]=Gl(E._locale,E._a[Ps],E._meridiem),fi=g(E).era,fi!==null&&(E._a[ur]=E._locale.erasConvertYear(fi,E._a[ur])),no(E),_t(E)}function Gl(E,I,q){var z;return q==null?I:E.meridiemHour!=null?E.meridiemHour(I,q):(E.isPM!=null&&(z=E.isPM(q),z&&I<12&&(I+=12),!z&&I===12&&(I=0)),I)}function Hp(E){var I,q,z,ee,De,vt,fr=!1,fn=E._f.length;if(fn===0){g(E).invalidFormat=!0,E._d=new Date(NaN);return}for(ee=0;ee<fn;ee++)De=0,vt=!1,I=se({},E),E._useUTC!=null&&(I._useUTC=E._useUTC),I._f=E._f[ee],Wo(I),L(I)&&(vt=!0),De+=g(I).charsLeftOver,De+=g(I).unusedTokens.length*10,g(I).score=De,fr?De<z&&(z=De,q=I):(z==null||De<z||vt)&&(z=De,q=I,vt&&(fr=!0));b(E,q||I)}function Zu(E){if(!E._d){var I=Ye(E._i),q=I.day===void 0?I.date:I.day;E._a=v([I.year,I.month,q,I.hour,I.minute,I.second,I.millisecond],function(z){return z&&parseInt(z,10)}),no(E)}}function Wp(E){var I=new me(_t(zo(E)));return I._nextDay&&(I.add(1,"d"),I._nextDay=void 0),I}function zo(E){var I=E._i,q=E._f;return E._locale=E._locale||Je(E._l),I===null||q===void 0&&I===""?M({nullInput:!0}):(typeof I=="string"&&(E._i=I=E._locale.preparse(I)),Ce(I)?new me(_t(I)):(y(I)?E._d=I:s(q)?Hp(E):q?Wo(E):ji(E),L(E)||(E._d=null),E))}function ji(E){var I=E._i;f(I)?E._d=new Date(t.now()):y(I)?E._d=new Date(I.valueOf()):typeof I=="string"?Ks(E):s(I)?(E._a=v(I.slice(0),function(q){return parseInt(q,10)}),no(E)):a(I)?Zu(E):m(I)?E._d=new Date(I):t.createFromInputFallback(E)}function i0(E,I,q,z,ee){var De={};return(I===!0||I===!1)&&(z=I,I=void 0),(q===!0||q===!1)&&(z=q,q=void 0),(a(E)&&l(E)||s(E)&&E.length===0)&&(E=void 0),De._isAMomentObject=!0,De._useUTC=De._isUTC=ee,De._l=q,De._i=E,De._f=I,De._strict=z,Wp(De)}function wn(E,I,q,z){return i0(E,I,q,z,!1)}var s0=Ve("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var E=wn.apply(null,arguments);return this.isValid()&&E.isValid()?E<this?this:E:M()}),Go=Ve("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var E=wn.apply(null,arguments);return this.isValid()&&E.isValid()?E>this?this:E:M()});function oi(E,I){var q,z;if(I.length===1&&s(I[0])&&(I=I[0]),!I.length)return wn();for(q=I[0],z=1;z<I.length;++z)(!I[z].isValid()||I[z][E](q))&&(q=I[z]);return q}function Qa(){var E=[].slice.call(arguments,0);return oi("isBefore",E)}function qd(){var E=[].slice.call(arguments,0);return oi("isAfter",E)}var kf=function(){return Date.now?Date.now():+new Date},If=["year","quarter","month","week","day","hour","minute","second","millisecond"];function qv(E){var I,q=!1,z,ee=If.length;for(I in E)if(n(E,I)&&!(Mi.call(If,I)!==-1&&(E[I]==null||!isNaN(E[I]))))return!1;for(z=0;z<ee;++z)if(E[If[z]]){if(q)return!1;parseFloat(E[If[z]])!==sn(E[If[z]])&&(q=!0)}return!0}function Ud(){return this._isValid}function ym(){return bo(NaN)}function Cc(E){var I=Ye(E),q=I.year||0,z=I.quarter||0,ee=I.month||0,De=I.week||I.isoWeek||0,vt=I.day||0,fr=I.hour||0,fn=I.minute||0,fi=I.second||0,ua=I.millisecond||0;this._isValid=qv(I),this._milliseconds=+ua+fi*1e3+fn*6e4+fr*1e3*60*60,this._days=+vt+De*7,this._months=+ee+z*3+q*12,this._data={},this._locale=Je(),this._bubble()}function Ha(E){return E instanceof Cc}function cl(E){return E<0?Math.round(-1*E)*-1:Math.round(E)}function Za(E,I,q){var z=Math.min(E.length,I.length),ee=Math.abs(E.length-I.length),De=0,vt;for(vt=0;vt<z;vt++)(q&&E[vt]!==I[vt]||!q&&sn(E[vt])!==sn(I[vt]))&&De++;return De+ee}function zp(E,I){Qe(E,0,0,function(){var q=this.utcOffset(),z="+";return q<0&&(q=-q,z="-"),z+we(~~(q/60),2)+I+we(~~q%60,2)})}zp("Z",":"),zp("ZZ",""),Mt("Z",At),Mt("ZZ",At),On(["Z","ZZ"],function(E,I,q){q._useUTC=!0,q._tzm=Fo(At,E)});var Ys=/([\+\-]|\d\d)/gi;function Fo(E,I){var q=(I||"").match(E),z,ee,De;return q===null?null:(z=q[q.length-1]||[],ee=(z+"").match(Ys)||["-",0,0],De=+(ee[1]*60)+sn(ee[2]),De===0?0:ee[0]==="+"?De:-De)}function io(E,I){var q,z;return I._isUTC?(q=I.clone(),z=(Ce(E)||y(E)?E.valueOf():wn(E).valueOf())-q.valueOf(),q._d.setTime(q._d.valueOf()+z),t.updateOffset(q,!1),q):wn(E).local()}function Ac(E){return-Math.round(E._d.getTimezoneOffset())}t.updateOffset=function(){};function Of(E,I,q){var z=this._offset||0,ee;if(!this.isValid())return E!=null?this:NaN;if(E!=null){if(typeof E=="string"){if(E=Fo(At,E),E===null)return this}else Math.abs(E)<16&&!q&&(E=E*60);return!this._isUTC&&I&&(ee=Ac(this)),this._offset=E,this._isUTC=!0,ee!=null&&this.add(ee,"m"),z!==E&&(!I||this._changeInProgress?Pa(this,bo(E-z,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?z:Ac(this)}function Si(E,I){return E!=null?(typeof E!="string"&&(E=-E),this.utcOffset(E,I),this):-this.utcOffset()}function gm(E){return this.utcOffset(0,E)}function vm(E){return this._isUTC&&(this.utcOffset(0,E),this._isUTC=!1,E&&this.subtract(Ac(this),"m")),this}function sa(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var E=Fo(Ft,this._i);E!=null?this.utcOffset(E):this.utcOffset(0,!0)}return this}function Ta(E){return this.isValid()?(E=E?wn(E).utcOffset():0,(this.utcOffset()-E)%60===0):!1}function eu(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kl(){if(!f(this._isDSTShifted))return this._isDSTShifted;var E={},I;return se(E,this),E=zo(E),E._a?(I=E._isUTC?P(E._a):wn(E._a),this._isDSTShifted=this.isValid()&&Za(E._a,I.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Yl(){return this.isValid()?!this._isUTC:!1}function Jl(){return this.isValid()?this._isUTC:!1}function bi(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ec=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Xl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function bo(E,I){var q=E,z=null,ee,De,vt;return Ha(E)?q={ms:E._milliseconds,d:E._days,M:E._months}:m(E)||!isNaN(+E)?(q={},I?q[I]=+E:q.milliseconds=+E):(z=ec.exec(E))?(ee=z[1]==="-"?-1:1,q={y:0,d:sn(z[co])*ee,h:sn(z[Ps])*ee,m:sn(z[ko])*ee,s:sn(z[lo])*ee,ms:sn(cl(z[Bs]*1e3))*ee}):(z=Xl.exec(E))?(ee=z[1]==="-"?-1:1,q={y:ll(z[2],ee),M:ll(z[3],ee),w:ll(z[4],ee),d:ll(z[5],ee),h:ll(z[6],ee),m:ll(z[7],ee),s:ll(z[8],ee)}):q==null?q={}:typeof q=="object"&&("from"in q||"to"in q)&&(vt=xm(wn(q.from),wn(q.to)),q={},q.ms=vt.milliseconds,q.M=vt.months),De=new Cc(q),Ha(E)&&n(E,"_locale")&&(De._locale=E._locale),Ha(E)&&n(E,"_isValid")&&(De._isValid=E._isValid),De}bo.fn=Cc.prototype,bo.invalid=ym;function ll(E,I){var q=E&&parseFloat(E.replace(",","."));return(isNaN(q)?0:q)*I}function tc(E,I){var q={};return q.months=I.month()-E.month()+(I.year()-E.year())*12,E.clone().add(q.months,"M").isAfter(I)&&--q.months,q.milliseconds=+I-+E.clone().add(q.months,"M"),q}function xm(E,I){var q;return E.isValid()&&I.isValid()?(I=io(I,E),E.isBefore(I)?q=tc(E,I):(q=tc(I,E),q.milliseconds=-q.milliseconds,q.months=-q.months),q):{milliseconds:0,months:0}}function Gp(E,I){return function(q,z){var ee,De;return z!==null&&!isNaN(+z)&&(Pt(I,"moment()."+I+"(period, number) is deprecated. Please use moment()."+I+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),De=q,q=z,z=De),ee=bo(q,z),Pa(this,ee,E),this}}function Pa(E,I,q,z){var ee=I._milliseconds,De=cl(I._days),vt=cl(I._months);E.isValid()&&(z=z==null?!0:z,vt&&jt(E,bc(E,"Month")+vt*q),De&&il(E,"Date",bc(E,"Date")+De*q),ee&&E._d.setTime(E._d.valueOf()+ee*q),z&&t.updateOffset(E,De||vt))}var ni=Gp(1,"add"),$d=Gp(-1,"subtract");function o0(E){return typeof E=="string"||E instanceof String}function a0(E){return Ce(E)||y(E)||o0(E)||m(E)||pg(E)||lg(E)||E===null||E===void 0}function lg(E){var I=a(E)&&!l(E),q=!1,z=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ee,De,vt=z.length;for(ee=0;ee<vt;ee+=1)De=z[ee],q=q||n(E,De);return I&&q}function pg(E){var I=s(E),q=!1;return I&&(q=E.filter(function(z){return!m(z)&&o0(E)}).length===0),I&&q}function Uv(E){var I=a(E)&&!l(E),q=!1,z=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],ee,De;for(ee=0;ee<z.length;ee+=1)De=z[ee],q=q||n(E,De);return I&&q}function Wx(E,I){var q=E.diff(I,"days",!0);return q<-6?"sameElse":q<-1?"lastWeek":q<0?"lastDay":q<1?"sameDay":q<2?"nextDay":q<7?"nextWeek":"sameElse"}function _m(E,I){arguments.length===1&&(arguments[0]?a0(arguments[0])?(E=arguments[0],I=void 0):Uv(arguments[0])&&(I=arguments[0],E=void 0):(E=void 0,I=void 0));var q=E||wn(),z=io(q,this).startOf("day"),ee=t.calendarFormat(this,z)||"sameElse",De=I&&(lt(I[ee])?I[ee].call(this,q):I[ee]);return this.format(De||this.localeData().calendar(ee,this,wn(q)))}function u0(){return new me(this)}function $v(E,I){var q=Ce(E)?E:wn(E);return this.isValid()&&q.isValid()?(I=ge(I)||"millisecond",I==="millisecond"?this.valueOf()>q.valueOf():q.valueOf()<this.clone().startOf(I).valueOf()):!1}function rc(E,I){var q=Ce(E)?E:wn(E);return this.isValid()&&q.isValid()?(I=ge(I)||"millisecond",I==="millisecond"?this.valueOf()<q.valueOf():this.clone().endOf(I).valueOf()<q.valueOf()):!1}function Ql(E,I,q,z){var ee=Ce(E)?E:wn(E),De=Ce(I)?I:wn(I);return this.isValid()&&ee.isValid()&&De.isValid()?(z=z||"()",(z[0]==="("?this.isAfter(ee,q):!this.isBefore(ee,q))&&(z[1]===")"?this.isBefore(De,q):!this.isAfter(De,q))):!1}function Ca(E,I){var q=Ce(E)?E:wn(E),z;return this.isValid()&&q.isValid()?(I=ge(I)||"millisecond",I==="millisecond"?this.valueOf()===q.valueOf():(z=q.valueOf(),this.clone().startOf(I).valueOf()<=z&&z<=this.clone().endOf(I).valueOf())):!1}function bu(E,I){return this.isSame(E,I)||this.isAfter(E,I)}function Aa(E,I){return this.isSame(E,I)||this.isBefore(E,I)}function Kp(E,I,q){var z,ee,De;if(!this.isValid())return NaN;if(z=io(E,this),!z.isValid())return NaN;switch(ee=(z.utcOffset()-this.utcOffset())*6e4,I=ge(I),I){case"year":De=Eu(this,z)/12;break;case"month":De=Eu(this,z);break;case"quarter":De=Eu(this,z)/3;break;case"second":De=(this-z)/1e3;break;case"minute":De=(this-z)/6e4;break;case"hour":De=(this-z)/36e5;break;case"day":De=(this-z-ee)/864e5;break;case"week":De=(this-z-ee)/6048e5;break;default:De=this-z}return q?De:_i(De)}function Eu(E,I){if(E.date()<I.date())return-Eu(I,E);var q=(I.year()-E.year())*12+(I.month()-E.month()),z=E.clone().add(q,"months"),ee,De;return I-z<0?(ee=E.clone().add(q-1,"months"),De=(I-z)/(z-ee)):(ee=E.clone().add(q+1,"months"),De=(I-z)/(ee-z)),-(q+De)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function pl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Nf(E){if(!this.isValid())return null;var I=E!==!0,q=I?this.clone().utc():this;return q.year()<0||q.year()>9999?Ze(q,I?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):lt(Date.prototype.toISOString)?I?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ze(q,"Z")):Ze(q,I?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Rf(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var E="moment",I="",q,z,ee,De;return this.isLocal()||(E=this.utcOffset()===0?"moment.utc":"moment.parseZone",I="Z"),q="["+E+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ee="-MM-DD[T]HH:mm:ss.SSS",De=I+'[")]',this.format(q+z+ee+De)}function Vd(E){E||(E=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var I=Ze(this,E);return this.localeData().postformat(I)}function fg(E,I){return this.isValid()&&(Ce(E)&&E.isValid()||wn(E).isValid())?bo({to:this,from:E}).locale(this.locale()).humanize(!I):this.localeData().invalidDate()}function Sm(E){return this.from(wn(),E)}function Ff(E,I){return this.isValid()&&(Ce(E)&&E.isValid()||wn(E).isValid())?bo({from:this,to:E}).locale(this.locale()).humanize(!I):this.localeData().invalidDate()}function Zl(E){return this.to(wn(),E)}function bm(E){var I;return E===void 0?this._locale._abbr:(I=Je(E),I!=null&&(this._locale=I),this)}var wu=Ve("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 Em(){return this._locale}var fl=1e3,Dc=60*fl,ep=60*Dc,dg=(365*400+97)*24*ep;function Ei(E,I){return(E%I+I)%I}function Lo(E,I,q){return E<100&&E>=0?new Date(E+400,I,q)-dg:new Date(E,I,q).valueOf()}function Tu(E,I,q){return E<100&&E>=0?Date.UTC(E+400,I,q)-dg:Date.UTC(E,I,q)}function nc(E){var I,q;if(E=ge(E),E===void 0||E==="millisecond"||!this.isValid())return this;switch(q=this._isUTC?Tu:Lo,E){case"year":I=q(this.year(),0,1);break;case"quarter":I=q(this.year(),this.month()-this.month()%3,1);break;case"month":I=q(this.year(),this.month(),1);break;case"week":I=q(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":I=q(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":I=q(this.year(),this.month(),this.date());break;case"hour":I=this._d.valueOf(),I-=Ei(I+(this._isUTC?0:this.utcOffset()*Dc),ep);break;case"minute":I=this._d.valueOf(),I-=Ei(I,Dc);break;case"second":I=this._d.valueOf(),I-=Ei(I,fl);break}return this._d.setTime(I),t.updateOffset(this,!0),this}function dl(E){var I,q;if(E=ge(E),E===void 0||E==="millisecond"||!this.isValid())return this;switch(q=this._isUTC?Tu:Lo,E){case"year":I=q(this.year()+1,0,1)-1;break;case"quarter":I=q(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":I=q(this.year(),this.month()+1,1)-1;break;case"week":I=q(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":I=q(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":I=q(this.year(),this.month(),this.date()+1)-1;break;case"hour":I=this._d.valueOf(),I+=ep-Ei(I+(this._isUTC?0:this.utcOffset()*Dc),ep)-1;break;case"minute":I=this._d.valueOf(),I+=Dc-Ei(I,Dc)-1;break;case"second":I=this._d.valueOf(),I+=fl-Ei(I,fl)-1;break}return this._d.setTime(I),t.updateOffset(this,!0),this}function tu(){return this._d.valueOf()-(this._offset||0)*6e4}function Yp(){return Math.floor(this.valueOf()/1e3)}function hl(){return new Date(this.valueOf())}function Vv(){var E=this;return[E.year(),E.month(),E.date(),E.hour(),E.minute(),E.second(),E.millisecond()]}function wm(){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 Lf(){return this.isValid()?this.toISOString():null}function Hd(){return L(this)}function zx(){return b({},g(this))}function hg(){return g(this).overflow}function c0(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Qe("N",0,0,"eraAbbr"),Qe("NN",0,0,"eraAbbr"),Qe("NNN",0,0,"eraAbbr"),Qe("NNNN",0,0,"eraName"),Qe("NNNNN",0,0,"eraNarrow"),Qe("y",["y",1],"yo","eraYear"),Qe("y",["yy",2],0,"eraYear"),Qe("y",["yyy",3],0,"eraYear"),Qe("y",["yyyy",4],0,"eraYear"),Mt("N",zd),Mt("NN",zd),Mt("NNN",zd),Mt("NNNN",p0),Mt("NNNNN",f0),On(["N","NN","NNN","NNNN","NNNNN"],function(E,I,q,z){var ee=q._locale.erasParse(E,z,q._strict);ee?g(q).era=ee:g(q).invalidEra=E}),Mt("y",Ja),Mt("yy",Ja),Mt("yyy",Ja),Mt("yyyy",Ja),Mt("yo",Pm),On(["y","yy","yyy","yyyy"],ur),On(["yo"],function(E,I,q,z){var ee;q._locale._eraYearOrdinalRegex&&(ee=E.match(q._locale._eraYearOrdinalRegex)),q._locale.eraYearOrdinalParse?I[ur]=q._locale.eraYearOrdinalParse(E,ee):I[ur]=parseInt(E,10)});function mg(E,I){var q,z,ee,De=this._eras||Je("en")._eras;for(q=0,z=De.length;q<z;++q){switch(typeof De[q].since){case"string":ee=t(De[q].since).startOf("day"),De[q].since=ee.valueOf();break}switch(typeof De[q].until){case"undefined":De[q].until=1/0;break;case"string":ee=t(De[q].until).startOf("day").valueOf(),De[q].until=ee.valueOf();break}}return De}function yg(E,I,q){var z,ee,De=this.eras(),vt,fr,fn;for(E=E.toUpperCase(),z=0,ee=De.length;z<ee;++z)if(vt=De[z].name.toUpperCase(),fr=De[z].abbr.toUpperCase(),fn=De[z].narrow.toUpperCase(),q)switch(I){case"N":case"NN":case"NNN":if(fr===E)return De[z];break;case"NNNN":if(vt===E)return De[z];break;case"NNNNN":if(fn===E)return De[z];break}else if([vt,fr,fn].indexOf(E)>=0)return De[z]}function Tm(E,I){var q=E.since<=E.until?1:-1;return I===void 0?t(E.since).year():t(E.since).year()+(I-E.offset)*q}function Jp(){var E,I,q,z=this.localeData().eras();for(E=0,I=z.length;E<I;++E)if(q=this.clone().startOf("day").valueOf(),z[E].since<=q&&q<=z[E].until||z[E].until<=q&&q<=z[E].since)return z[E].name;return""}function gg(){var E,I,q,z=this.localeData().eras();for(E=0,I=z.length;E<I;++E)if(q=this.clone().startOf("day").valueOf(),z[E].since<=q&&q<=z[E].until||z[E].until<=q&&q<=z[E].since)return z[E].narrow;return""}function Hv(){var E,I,q,z=this.localeData().eras();for(E=0,I=z.length;E<I;++E)if(q=this.clone().startOf("day").valueOf(),z[E].since<=q&&q<=z[E].until||z[E].until<=q&&q<=z[E].since)return z[E].abbr;return""}function Wd(){var E,I,q,z,ee=this.localeData().eras();for(E=0,I=ee.length;E<I;++E)if(q=ee[E].since<=ee[E].until?1:-1,z=this.clone().startOf("day").valueOf(),ee[E].since<=z&&z<=ee[E].until||ee[E].until<=z&&z<=ee[E].since)return(this.year()-t(ee[E].since).year())*q+ee[E].offset;return this.year()}function Da(E){return n(this,"_erasNameRegex")||Bf.call(this),E?this._erasNameRegex:this._erasRegex}function l0(E){return n(this,"_erasAbbrRegex")||Bf.call(this),E?this._erasAbbrRegex:this._erasRegex}function Mf(E){return n(this,"_erasNarrowRegex")||Bf.call(this),E?this._erasNarrowRegex:this._erasRegex}function zd(E,I){return I.erasAbbrRegex(E)}function p0(E,I){return I.erasNameRegex(E)}function f0(E,I){return I.erasNarrowRegex(E)}function Pm(E,I){return I._eraYearOrdinalRegex||Ja}function Bf(){var E=[],I=[],q=[],z=[],ee,De,vt,fr,fn,fi=this.eras();for(ee=0,De=fi.length;ee<De;++ee)vt=Ai(fi[ee].name),fr=Ai(fi[ee].abbr),fn=Ai(fi[ee].narrow),I.push(vt),E.push(fr),q.push(fn),z.push(vt),z.push(fr),z.push(fn);this._erasRegex=new RegExp("^("+z.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+I.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+E.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+q.join("|")+")","i")}Qe(0,["gg",2],0,function(){return this.weekYear()%100}),Qe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function jf(E,I){Qe(0,[E,E.length],0,I)}jf("gggg","weekYear"),jf("ggggg","weekYear"),jf("GGGG","isoWeekYear"),jf("GGGGG","isoWeekYear"),Mt("G",rt),Mt("g",rt),Mt("GG",bn,$r),Mt("gg",bn,$r),Mt("GGGG",Ho,jn),Mt("gggg",Ho,jn),Mt("GGGGG",Gu,ei),Mt("ggggg",Gu,ei),_s(["gggg","ggggg","GGGG","GGGGG"],function(E,I,q,z){I[z.substr(0,2)]=sn(E)}),_s(["gg","GG"],function(E,I,q,z){I[z]=t.parseTwoDigitYear(E)});function qf(E){return Pu.call(this,E,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function vg(E){return Pu.call(this,E,this.isoWeek(),this.isoWeekday(),1,4)}function d0(){return Bi(this.year(),1,4)}function h0(){return Bi(this.isoWeekYear(),1,4)}function tp(){var E=this.localeData()._week;return Bi(this.year(),E.dow,E.doy)}function Xp(){var E=this.localeData()._week;return Bi(this.weekYear(),E.dow,E.doy)}function Pu(E,I,q,z,ee){var De;return E==null?or(this,z,ee).year:(De=Bi(E,z,ee),I>De&&(I=De),Qp.call(this,E,I,q,z,ee))}function Qp(E,I,q,z,ee){var De=Bd(E,I,q,z,ee),vt=Cf(De.year,0,De.dayOfYear);return this.year(vt.getUTCFullYear()),this.month(vt.getUTCMonth()),this.date(vt.getUTCDate()),this}Qe("Q",0,"Qo","quarter"),Mt("Q",Ur),On("Q",function(E,I){I[Do]=(sn(E)-1)*3});function Cm(E){return E==null?Math.ceil((this.month()+1)/3):this.month((E-1)*3+this.month()%3)}Qe("D",["DD",2],"Do","date"),Mt("D",bn,xr),Mt("DD",bn,$r),Mt("Do",function(E,I){return E?I._dayOfMonthOrdinalParse||I._ordinalParse:I._dayOfMonthOrdinalParseLenient}),On(["D","DD"],co),On("Do",function(E,I){I[co]=sn(E.match(bn)[0])});var rp=tn("Date",!0);Qe("DDD",["DDDD",3],"DDDo","dayOfYear"),Mt("DDD",ls),Mt("DDDD",Hn),On(["DDD","DDDD"],function(E,I,q){q._dayOfYear=sn(E)});function kc(E){var I=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return E==null?I:this.add(E-I,"d")}Qe("m",["mm",2],0,"minute"),Mt("m",bn,In),Mt("mm",bn,$r),On(["m","mm"],ko);var Am=tn("Minutes",!1);Qe("s",["ss",2],0,"second"),Mt("s",bn,In),Mt("ss",bn,$r),On(["s","ss"],lo);var Gd=tn("Seconds",!1);Qe("S",0,0,function(){return~~(this.millisecond()/100)}),Qe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Qe(0,["SSS",3],0,"millisecond"),Qe(0,["SSSS",4],0,function(){return this.millisecond()*10}),Qe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Qe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Qe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Qe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Qe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Mt("S",ls,Ur),Mt("SS",ls,$r),Mt("SSS",ls,Hn);var ic,Dm;for(ic="SSSS";ic.length<=9;ic+="S")Mt(ic,Ja);function xg(E,I){I[Bs]=sn(("0."+E)*1e3)}for(ic="S";ic.length<=9;ic+="S")On(ic,xg);Dm=tn("Milliseconds",!1),Qe("z",0,0,"zoneAbbr"),Qe("zz",0,0,"zoneName");function m0(){return this._isUTC?"UTC":""}function y0(){return this._isUTC?"Coordinated Universal Time":""}var Yt=me.prototype;Yt.add=ni,Yt.calendar=_m,Yt.clone=u0,Yt.diff=Kp,Yt.endOf=dl,Yt.format=Vd,Yt.from=fg,Yt.fromNow=Sm,Yt.to=Ff,Yt.toNow=Zl,Yt.get=gu,Yt.invalidAt=hg,Yt.isAfter=$v,Yt.isBefore=rc,Yt.isBetween=Ql,Yt.isSame=Ca,Yt.isSameOrAfter=bu,Yt.isSameOrBefore=Aa,Yt.isValid=Hd,Yt.lang=wu,Yt.locale=bm,Yt.localeData=Em,Yt.max=Go,Yt.min=s0,Yt.parsingFlags=zx,Yt.set=ps,Yt.startOf=nc,Yt.subtract=$d,Yt.toArray=Vv,Yt.toObject=wm,Yt.toDate=hl,Yt.toISOString=Nf,Yt.inspect=Rf,typeof Symbol<"u"&&Symbol.for!=null&&(Yt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Yt.toJSON=Lf,Yt.toString=pl,Yt.unix=Yp,Yt.valueOf=tu,Yt.creationData=c0,Yt.eraName=Jp,Yt.eraNarrow=gg,Yt.eraAbbr=Hv,Yt.eraYear=Wd,Yt.year=Yu,Yt.isLeapYear=ql,Yt.weekYear=qf,Yt.isoWeekYear=vg,Yt.quarter=Yt.quarters=Cm,Yt.month=vu,Yt.daysInMonth=dm,Yt.week=Yt.weeks=hm,Yt.isoWeek=Yt.isoWeeks=Zh,Yt.weeksInYear=tp,Yt.weeksInWeekYear=Xp,Yt.isoWeeksInYear=d0,Yt.isoWeeksInISOWeekYear=h0,Yt.date=rp,Yt.day=Yt.days=Os,Yt.weekday=En,Yt.isoWeekday=Xu,Yt.dayOfYear=kc,Yt.hour=Yt.hours=Ea,Yt.minute=Yt.minutes=Am,Yt.second=Yt.seconds=Gd,Yt.millisecond=Yt.milliseconds=Dm,Yt.utcOffset=Of,Yt.utc=gm,Yt.local=vm,Yt.parseZone=sa,Yt.hasAlignedHourOffset=Ta,Yt.isDST=eu,Yt.isLocal=Yl,Yt.isUtcOffset=Jl,Yt.isUtc=bi,Yt.isUTC=bi,Yt.zoneAbbr=m0,Yt.zoneName=y0,Yt.dates=Ve("dates accessor is deprecated. Use date instead.",rp),Yt.months=Ve("months accessor is deprecated. Use month instead",vu),Yt.years=Ve("years accessor is deprecated. Use year instead",Yu),Yt.zone=Ve("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Si),Yt.isDSTShifted=Ve("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kl);function pn(E){return wn(E*1e3)}function oa(){return wn.apply(null,arguments).parseZone()}function po(E){return E}var Tn=oe.prototype;Tn.calendar=Se,Tn.longDateFormat=wt,Tn.invalidDate=ht,Tn.ordinal=Kt,Tn.preparse=po,Tn.postformat=po,Tn.relativeTime=xt,Tn.pastFuture=St,Tn.set=ut,Tn.eras=mg,Tn.erasParse=yg,Tn.erasConvertYear=Tm,Tn.erasAbbrRegex=l0,Tn.erasNameRegex=Da,Tn.erasNarrowRegex=Mf,Tn.months=fm,Tn.monthsShort=Mp,Tn.monthsParse=ba,Tn.monthsRegex=rs,Tn.monthsShortRegex=Bp,Tn.week=jd,Tn.firstDayOfYear=Af,Tn.firstDayOfWeek=xu,Tn.weekdays=ol,Tn.weekdaysMin=Ju,Tn.weekdaysShort=_u,Tn.weekdaysParse=Tc,Tn.weekdaysRegex=r0,Tn.weekdaysShortRegex=Gs,Tn.weekdaysMinRegex=Hl,Tn.isPM=n0,Tn.meridiem=Vp;function Wa(E,I,q,z){var ee=Je(),De=P().set(z,I);return ee[q](De,E)}function Kd(E,I,q){if(m(E)&&(I=E,E=void 0),E=E||"",I!=null)return Wa(E,I,q,"month");var z,ee=[];for(z=0;z<12;z++)ee[z]=Wa(E,z,q,"month");return ee}function Js(E,I,q,z){typeof E=="boolean"?(m(I)&&(q=I,I=void 0),I=I||""):(I=E,q=I,E=!1,m(I)&&(q=I,I=void 0),I=I||"");var ee=Je(),De=E?ee._week.dow:0,vt,fr=[];if(q!=null)return Wa(I,(q+De)%7,z,"day");for(vt=0;vt<7;vt++)fr[vt]=Wa(I,(vt+De)%7,z,"day");return fr}function Yd(E,I){return Kd(E,I,"months")}function Rn(E,I){return Kd(E,I,"monthsShort")}function Uf(E,I,q){return Js(E,I,q,"weekdays")}function Zp(E,I,q){return Js(E,I,q,"weekdaysShort")}function km(E,I,q){return Js(E,I,q,"weekdaysMin")}ae("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var I=E%10,q=sn(E%100/10)===1?"th":I===1?"st":I===2?"nd":I===3?"rd":"th";return E+q}}),t.lang=Ve("moment.lang is deprecated. Use moment.locale instead.",ae),t.langData=Ve("moment.langData is deprecated. Use moment.localeData instead.",Je);var Ic=Math.abs;function Im(){var E=this._data;return this._milliseconds=Ic(this._milliseconds),this._days=Ic(this._days),this._months=Ic(this._months),E.milliseconds=Ic(E.milliseconds),E.seconds=Ic(E.seconds),E.minutes=Ic(E.minutes),E.hours=Ic(E.hours),E.months=Ic(E.months),E.years=Ic(E.years),this}function g0(E,I,q,z){var ee=bo(I,q);return E._milliseconds+=z*ee._milliseconds,E._days+=z*ee._days,E._months+=z*ee._months,E._bubble()}function np(E,I){return g0(this,E,I,1)}function Ar(E,I){return g0(this,E,I,-1)}function ef(E){return E<0?Math.floor(E):Math.ceil(E)}function Om(){var E=this._milliseconds,I=this._days,q=this._months,z=this._data,ee,De,vt,fr,fn;return E>=0&&I>=0&&q>=0||E<=0&&I<=0&&q<=0||(E+=ef(Oc(q)+I)*864e5,I=0,q=0),z.milliseconds=E%1e3,ee=_i(E/1e3),z.seconds=ee%60,De=_i(ee/60),z.minutes=De%60,vt=_i(De/60),z.hours=vt%24,I+=_i(vt/24),fn=_i(Cu(I)),q+=fn,I-=ef(Oc(fn)),fr=_i(q/12),q%=12,z.days=I,z.months=q,z.years=fr,this}function Cu(E){return E*4800/146097}function Oc(E){return E*146097/4800}function Jd(E){if(!this.isValid())return NaN;var I,q,z=this._milliseconds;if(E=ge(E),E==="month"||E==="quarter"||E==="year")switch(I=this._days+z/864e5,q=this._months+Cu(I),E){case"month":return q;case"quarter":return q/3;case"year":return q/12}else switch(I=this._days+Math.round(Oc(this._months)),E){case"week":return I/7+z/6048e5;case"day":return I+z/864e5;case"hour":return I*24+z/36e5;case"minute":return I*1440+z/6e4;case"second":return I*86400+z/1e3;case"millisecond":return Math.floor(I*864e5)+z;default:throw new Error("Unknown unit "+E)}}function ru(E){return function(){return this.as(E)}}var $f=ru("ms"),Nm=ru("s"),ml=ru("m"),Xd=ru("h"),tf=ru("d"),Vf=ru("w"),sc=ru("M"),Nc=ru("Q"),Qd=ru("y"),rf=$f;function ka(){return bo(this)}function qi(E){return E=ge(E),this.isValid()?this[E+"s"]():NaN}function Ii(E){return function(){return this.isValid()?this._data[E]:NaN}}var v0=Ii("milliseconds"),nu=Ii("seconds"),_g=Ii("minutes"),Hf=Ii("hours"),Rm=Ii("days"),Wv=Ii("months"),Fm=Ii("years");function x0(){return _i(this.days()/7)}var Au=Math.round,ip={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Wf(E,I,q,z,ee){return ee.relativeTime(I||1,!!q,E,z)}function Sg(E,I,q,z){var ee=bo(E).abs(),De=Au(ee.as("s")),vt=Au(ee.as("m")),fr=Au(ee.as("h")),fn=Au(ee.as("d")),fi=Au(ee.as("M")),ua=Au(ee.as("w")),iu=Au(ee.as("y")),js=De<=q.ss&&["s",De]||De<q.s&&["ss",De]||vt<=1&&["m"]||vt<q.m&&["mm",vt]||fr<=1&&["h"]||fr<q.h&&["hh",fr]||fn<=1&&["d"]||fn<q.d&&["dd",fn];return q.w!=null&&(js=js||ua<=1&&["w"]||ua<q.w&&["ww",ua]),js=js||fi<=1&&["M"]||fi<q.M&&["MM",fi]||iu<=1&&["y"]||["yy",iu],js[2]=I,js[3]=+E>0,js[4]=z,Wf.apply(null,js)}function bg(E){return E===void 0?Au:typeof E=="function"?(Au=E,!0):!1}function Zd(E,I){return ip[E]===void 0?!1:I===void 0?ip[E]:(ip[E]=I,E==="s"&&(ip.ss=I-1),!0)}function zv(E,I){if(!this.isValid())return this.localeData().invalidDate();var q=!1,z=ip,ee,De;return typeof E=="object"&&(I=E,E=!1),typeof E=="boolean"&&(q=E),typeof I=="object"&&(z=Object.assign({},ip,I),I.s!=null&&I.ss==null&&(z.ss=I.s-1)),ee=this.localeData(),De=Sg(this,!q,z,ee),q&&(De=ee.pastFuture(+this,De)),ee.postformat(De)}var _0=Math.abs;function sp(E){return(E>0)-(E<0)||+E}function aa(){if(!this.isValid())return this.localeData().invalidDate();var E=_0(this._milliseconds)/1e3,I=_0(this._days),q=_0(this._months),z,ee,De,vt,fr=this.asSeconds(),fn,fi,ua,iu;return fr?(z=_i(E/60),ee=_i(z/60),E%=60,z%=60,De=_i(q/12),q%=12,vt=E?E.toFixed(3).replace(/\.?0+$/,""):"",fn=fr<0?"-":"",fi=sp(this._months)!==sp(fr)?"-":"",ua=sp(this._days)!==sp(fr)?"-":"",iu=sp(this._milliseconds)!==sp(fr)?"-":"",fn+"P"+(De?fi+De+"Y":"")+(q?fi+q+"M":"")+(I?ua+I+"D":"")+(ee||z||E?"T":"")+(ee?iu+ee+"H":"")+(z?iu+z+"M":"")+(E?iu+vt+"S":"")):"P0D"}var qn=Cc.prototype;qn.isValid=Ud,qn.abs=Im,qn.add=np,qn.subtract=Ar,qn.as=Jd,qn.asMilliseconds=$f,qn.asSeconds=Nm,qn.asMinutes=ml,qn.asHours=Xd,qn.asDays=tf,qn.asWeeks=Vf,qn.asMonths=sc,qn.asQuarters=Nc,qn.asYears=Qd,qn.valueOf=rf,qn._bubble=Om,qn.clone=ka,qn.get=qi,qn.milliseconds=v0,qn.seconds=nu,qn.minutes=_g,qn.hours=Hf,qn.days=Rm,qn.weeks=x0,qn.months=Wv,qn.years=Fm,qn.humanize=zv,qn.toISOString=aa,qn.toString=aa,qn.toJSON=aa,qn.locale=bm,qn.localeData=Em,qn.toIsoString=Ve("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",aa),qn.lang=wu,Qe("X",0,0,"unix"),Qe("x",0,0,"valueOf"),Mt("x",rt),Mt("X",Jt),On("X",function(E,I,q){q._d=new Date(parseFloat(E)*1e3)}),On("x",function(E,I,q){q._d=new Date(sn(E))});return t.version="2.30.1",r(wn),t.fn=Yt,t.min=Qa,t.max=qd,t.now=kf,t.utc=P,t.unix=pn,t.months=Yd,t.isDate=y,t.locale=ae,t.invalid=M,t.duration=bo,t.isMoment=Ce,t.weekdays=Uf,t.parseZone=oa,t.localeData=Je,t.isDuration=Ha,t.monthsShort=Rn,t.weekdaysMin=km,t.defineLocale=Re,t.updateLocale=nt,t.locales=gt,t.weekdaysShort=Zp,t.normalizeUnits=ge,t.relativeTimeRounding=bg,t.relativeTimeThreshold=Zd,t.calendarFormat=Wx,t.prototype=Yt,t.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})});function wh(){return!process.stdout.isTTY||process.env.FORCE_NON_TTY==="1"||process.env.CI==="true"||process.env.CI==="1"||process.env.PAGES_SOURCE==="skills"||process.env.EDGEONE_NON_INTERACTIVE==="1"}function nA({prefix:e="cli"}){return $s.default.createElement(Ms.Text,{color:"grey"},"[",e,"]")}function ui(e,t="cli"){if(wh()){console.log(`\x1B[90m[${t}]\x1B[0m\x1B[31m[\u2718] \x1B[0m${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Text,null,$s.default.createElement(nA,{prefix:t}),$s.default.createElement(Ms.Text,{color:"red"},"[\u2718] "),e));r()}function xE(e,t="cli"){if(wh()){console.log(`\x1B[90m[${t}]\x1B[0m\x1B[32m[\u2714] \x1B[0m${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Text,null,$s.default.createElement(nA,{prefix:t}),$s.default.createElement(Ms.Text,{color:"green"},"[\u2714] "),e));r()}function ao(e,t="cli"){if(wh()){console.log(`\x1B[90m[${t}]\x1B[0m \x1B[33mWARNING:\x1B[0m ${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Text,null,$s.default.createElement(nA,{prefix:t}),$s.default.createElement(Ms.Text,{color:"orange"},"\u2757\uFE0F "),e));r()}function zK(e){if(wh()){console.log(e);return}let{unmount:t}=(0,Ms.render)($s.default.createElement(Ms.Text,{color:"cyan"},e));t()}function Dt(e,t="cli"){if(wh()){console.log(`\x1B[90m[${t}]\x1B[0m ${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Text,null,$s.default.createElement(nA,{prefix:t})," ",e));r()}function q3({timestamp:e}){return $s.default.createElement(Ms.Box,{width:13},$s.default.createElement(Ms.Text,{color:"grey"},(0,vE.default)(e).format("HH:mm:ss.SSS")))}function GK(e,t){if(wh()){console.log(`${(0,vE.default)(t).format("HH:mm:ss.SSS")} ${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Box,null,$s.default.createElement(q3,{timestamp:t}),$s.default.createElement(Ms.Text,null,e)));r()}function KK(e,t){if(wh()){console.log(`${(0,vE.default)(t).format("HH:mm:ss.SSS")} [WARNING] ${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Box,null,$s.default.createElement(q3,{timestamp:t}),$s.default.createElement(Ms.Text,{color:"white",backgroundColor:"yellow"},"[WARNING]"),$s.default.createElement(Ms.Text,null," ",e)));r()}function U3(e,t){if(wh()){console.log(`${(0,vE.default)(t).format("HH:mm:ss.SSS")} [ERROR] ${e}`);return}let{unmount:r}=(0,Ms.render)($s.default.createElement(Ms.Box,null,$s.default.createElement(q3,{timestamp:t}),$s.default.createElement(Ms.Text,{color:"white",backgroundColor:"red"},"[ERROR]"),$s.default.createElement(Ms.Text,null," ",e)));r()}var Ms,$s,vE,fa=ft(()=>{Ms=Lt(rA()),$s=Lt(yo()),vE=Lt(WK())});var JK,YK=ft(()=>{JK={name:"edgeone",version:"1.6.9",description:"Command-line interface for TencentCloud Pages Functions",bin:{edgeone:"./edgeone-bin/edgeone.js"},files:["./edgeone-bin/edgeone.js","./edgeone-dist/cli.js","./edgeone-dist/pages/templates","./edgeone-dist/pages/dev/runner-worker.js","./edgeone-dist/pages/observability-python/**","./edgeone-dist/libs-pages-blob-python/**","./edgeone-dist/libs-pages-agent-toolkit/**","./edgeone-dist/studio/**","./libs-pages-blob-python/**","./libs-pages-agent-toolkit/**"],author:"",keywords:["tencent","edgeone","edgefunctions","edgeone","cli","typescript"],scripts:{clean:"rimraf ./edgeone-dist ./edgeone-bin ./libs-node-ai ./libs-kv-client",bundle:"node -r esbuild-register ./scripts/bundle.ts",watch:"node -r esbuild-register ./scripts/bundle.ts watch",build:"npm run clean && npm run build:pages-ai && npm run build:kv-client && npm run prepare:blob-wheel && npm run prepare:agent-toolkit-wheel && npm run bundle","build:pages-ai":"node ./scripts/build-pages-ai.js","build:kv-client":"node ./scripts/build-kv-client.js","prepare:blob-wheel":"node ./scripts/prepare-pages-blob-wheel.js","prepare:agent-toolkit-wheel":"node ./scripts/prepare-pages-agent-toolkit-wheel.js","verify:publish-assets":"node ./scripts/verify-publish-assets.js","upload:agent-version-manifest":"node ./scripts/upload-agent-version-manifest.js",format:'prettier --write "src/**/*.{ts,tsx,js,jsx,json,md}" "scripts/**/*.{ts,js}" "*.{json,md}"',prepack:"npm run build && npm run verify:publish-assets",prepublishOnly:"npm run build && npm run verify:publish-assets",test:"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","test:observability":"vitest run --config src/agent/observability/node/tests/vitest.config.ts && cd src/agent/observability/python && uv run pytest tests/ -q"},dependencies:{"@edgeone/framework-detect":"^0.0.2","@edgeone/is-spa":"^0.0.3","@edgeone/nuxt-pages":"1.1.0","@edgeone/opennextjs-pages":"0.2.5","@edgeone/pages-agent-toolkit":"^0.1.34","@edgeone/pages-blob":"^0.0.13",archiver:"^7.0.1",chokidar:"^4.0.1","common-path-prefix":"^1.0.0","cos-nodejs-sdk-v5":"^2.14.7","cross-spawn":"^7.0.6",crypto:"^1.0.1","detect-port":"^2.1.0",esbuild:"^0.19.2","esbuild-plugin-polyfill-node":"^0.3.0","esbuild-plugin-vue":"^0.2.4","fast-glob":"^3.3.0","fs-extra":"^11.3.1",giget:"^2.0.0","ink-table":"^3.1.0",inquirer:"^8.2.4",install:"^0.13.0",lodash:"^4.17.21","mime-types":"^3.0.1",minimatch:"^9.0.5","node-persist":"^4.0.3",npm:"^10.9.1",open:"^8.4.2","p-map":"^5.5.0","parse-gitignore":"^2.0.0",portfinder:"^1.0.32",undici:"^5.29.0",vitest:"^4.0.17"},devDependencies:{"@babel/generator":"^7.28.0","@babel/parser":"^7.28.0","@babel/traverse":"^7.28.0","@babel/types":"^7.28.0","@opentelemetry/api":"^1.9.1","@opentelemetry/core":"^1.30.1","@opentelemetry/exporter-metrics-otlp-http":"^0.55.0","@opentelemetry/exporter-trace-otlp-http":"^0.55.0","@opentelemetry/instrumentation":"^0.55.0","@opentelemetry/otlp-transformer":"^0.55.0","@opentelemetry/resources":"^1.30.1","@opentelemetry/sdk-metrics":"^1.30.1","@opentelemetry/sdk-trace-base":"^1.30.1","@opentelemetry/sdk-trace-node":"^1.30.1","@opentelemetry/semantic-conventions":"^1.40.0","@tencent/capi-nodejs-sdk":"^2.3.2","@types/http-proxy":"^1.17.12","@types/inquirer":"^9.0.8","@types/ip":"^1.1.0","@types/lodash":"^4.14.198","@types/prompts":"^2.4.4","@types/react":"^17.0.2","@types/uuid":"^9.0.3","@types/ws":"^8.5.7","@types/yargs":"^17.0.24","@vitest/coverage-v8":"^4.0.17",axios:"^1.7.9",chalk:"^5.3.0",cookie:"^1.0.2",dotenv:"^16.3.1","esbuild-register":"^3.6.0",execa:"^7.1.1","http-proxy":"^1.18.1",husky:"^8.0.3",ink:"^3.2.0",ip:"^2.0.1",json5:"^2.2.3","lint-staged":"^15.2.0",lodash:"^4.17.21",moment:"^2.30.1","node-fetch":"^3.3.2",prettier:"^3.1.1",prompts:"^2.4.2",protobufjs:"^8.4.2",react:"^17.0.2",rimraf:"^6.0.1",semiver:"^1.1.0",sirv:"^2.0.3","tencentcloud-cls-sdk-js-web":"^1.0.13","ts-node":"^10.9.2",typescript:"^5.9.3","update-check":"^1.5.4",uuid:"^9.0.0",ws:"^8.14.2",yargs:"^17.6.2",zod:"^3.23.8","zod-to-json-schema":"^3.23.5"},engines:{node:">=12"},"lint-staged":{"*.{ts,tsx,js,jsx,json,md}":["prettier --write"]}}});function G3e(){var e,t;return{run_id:z3e,cli_version:(t=(e=JK)==null?void 0:e.version)!=null?t:"unknown",node_version:process.version,os_platform:V3.default.platform(),os_arch:V3.default.arch(),app_type:"cli",app_id:process.env.AppId||void 0,uin:process.env.Uin||void 0,instance_id:process.env.ProjectId||void 0,is_ci:process.env.CI==="true"}}function K3e(e,t){try{if(typeof process.send!="function")return;process.send(JSON.stringify({name:e,value:JSON.stringify(t)}))}catch{}}function hu(e){var r;let t={...G3e(),...e};K3e((r=t.event_name)!=null?r:"unknown",t)}function yd(e){if(e==null)return{message:"unknown error",stack:""};if(typeof e=="string")return{message:iA(e,$3),stack:""};if(typeof e=="object"){let t=e,r=iA(typeof t.message=="string"?t.message:String(t),$3),s=iA(typeof t.stack=="string"?t.stack:"",Y3e);return{message:r,stack:s}}return{message:iA(String(e),$3),stack:""}}function iA(e,t){return e.length>t?e.slice(0,t)+"\u2026[truncated]":e}var V3,fu,du,z3e,H3,$3,Y3e,Ty=ft(()=>{V3=Lt(require("os"));YK();fu={COMMAND:"command",REQUEST:"request",LOCAL_FLOW:"local_flow",EXIT:"exit"},du={SUCCESS:"success",FAIL:"fail",START:"start"},z3e=`cli-${Date.now()}-${Math.random().toString(36).slice(2,6)}`;H3=(e,t)=>{let r=yd(t);hu({event_name:"error",event_scope:fu.COMMAND,event_result:du.FAIL,error_message:`${e} ${r.message}`.trim(),error_stack:r.stack})},$3=500,Y3e=2e3});var _E,K2,W3=ft(()=>{_E={NEXTJS:"nextjs",NUXTJS:"nuxtjs",ASTRO:"astro",UNKNOWN:"unknown"},K2={FRAMEWORK_DETECT:"framework_detect",PLUGIN_RESOLVE:"plugin_resolve",PLUGIN_LOAD:"plugin_load",PLUGIN_HOOK:"plugin_hook",CONFIG_LOAD:"config_load"}});function Q3e(e){if((e==null?void 0:e.code)===X3e)return!0;let t=typeof e=="string"?e:e==null?void 0:e.message;return t==null?void 0:t.includes(J3e)}async function rv(e=!1){try{let t=await fC(e);return hu({event_name:"Config:Load:Success",event_scope:fu.LOCAL_FLOW,event_phase:K2.CONFIG_LOAD,event_result:du.SUCCESS,has_build_command:(t==null?void 0:t.buildCommand)!=null,has_install_command:(t==null?void 0:t.installCommand)!=null,has_output_directory:(t==null?void 0:t.outputDirectory)!=null,has_node_version:(t==null?void 0:t.nodeVersion)!=null}),t}catch(t){let r=yd(t);if(hu({event_name:"Config:Load:Fail",event_scope:fu.LOCAL_FLOW,event_phase:K2.CONFIG_LOAD,event_result:du.FAIL,error_message:r.message}),Q3e(t))throw t;return fd()&&console.error("%c [ error ]-80","font-size:13px; background:pink; color:#bf2c9f;",t),null}}var J3e,X3e,z3=ft(()=>{k2();aC();Ty();W3();J3e="[BLOCKING_CONFIG_ERROR]",X3e="BLOCKING_CONFIG_ERROR"});var sA,yc,oA=ft(()=>{sA=[{funcName:"onRequestGet",method:"GET"},{funcName:"onRequestPost",method:"POST"},{funcName:"onRequestDelete",method:"DELETE"},{funcName:"onRequestPatch",method:"PATCH"},{funcName:"onRequestPut",method:"PUT"},{funcName:"onRequestHead",method:"HEAD"},{funcName:"onRequestOptions",method:"OPTIONS"}],yc=["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"]});async function Z3e(e){let t;aA.default.statSync(e).isFile()?t=Y2.default.resolve(Y2.default.dirname(e)):t=e;let r=Y2.default.parse(t).root;if(t===r)return null;for(;t!==r;){let s=Y2.default.join(t,"package.json");try{return await aA.default.promises.access(s),s}catch{if(t=Y2.default.dirname(t),t===r)break}}return null}async function J2(e){if(e.endsWith(".mjs"))return"esm";if(e.endsWith(".cjs"))return"commonjs";try{let t=await Z3e(e);if(t&&JSON.parse(await aA.default.promises.readFile(t,"utf-8")).type==="module")return"esm"}catch(t){console.warn("Failed to read package.json:",t)}return"commonjs"}var aA,Y2,SE=ft(()=>{aA=Lt(require("fs")),Y2=Lt(require("path"))});function tFe(e){let t=G3.default.extname(e);return eFe[t]||"ts"}async function ZK(e,t,r,s){let a=`mod_${rFe++}`,l=(await QK.default.build({stdin:{contents:e,loader:tFe(r),resolveDir:G3.default.dirname(r)},write:!1,bundle:!0,format:"esm",platform:"node",target:"node14",minify:!1,resolveExtensions:[".ts",".js",".mjs",".json"],nodePaths:[process.cwd()],absWorkingDir:process.cwd(),external:(s==null?void 0:s.externalModules)||[]})).outputFiles[0].text,f=[];l=l.replace(/^import\s+[^'"]*['"][^'"]*['"]\s*;?\n/gm,b=>(f.push(b),"")),l=l.replace(/export (async )?function/g,"$1function"),l=l.replace(/export const/g,"const"),l=l.replace(/export let/g,"let"),l=l.replace(/export var/g,"var"),l=l.replace(/export default/g,""),l=l.replace(/export \{[^}]+\};?/g,""),l=l.replace(/export class/g,"class");let m=/const\s+app\s*=/.test(l),y=`${f.join(`
|
|
146
146
|
`)}`;return{code:s!=null&&s.isFramework?`
|
|
147
147
|
const ${a} = (() => {
|
|
148
148
|
|
|
@@ -2058,6 +2058,14 @@ var VALID_ROLES = /* @__PURE__ */ new Set([
|
|
|
2058
2058
|
"tool"
|
|
2059
2059
|
]);
|
|
2060
2060
|
var VALID_ORDERS = /* @__PURE__ */ new Set(["asc", "desc"]);
|
|
2061
|
+
var ITEM_TYPE_TO_SDK = {
|
|
2062
|
+
function_call_output: "function_call_result",
|
|
2063
|
+
computer_call_output: "computer_call_result"
|
|
2064
|
+
};
|
|
2065
|
+
var SDK_TYPE_TO_STORAGE = {
|
|
2066
|
+
function_call_result: "function_call_output",
|
|
2067
|
+
computer_call_result: "computer_call_output"
|
|
2068
|
+
};
|
|
2061
2069
|
var MemoryValidationError = class extends Error {
|
|
2062
2070
|
code = "MemoryValidationError";
|
|
2063
2071
|
constructor(message) {
|
|
@@ -2533,10 +2541,10 @@ function applyCursor(items, cursorValue, options) {
|
|
|
2533
2541
|
return items.slice(start, end).slice(0, options.limit);
|
|
2534
2542
|
}
|
|
2535
2543
|
function normalizeSessionItem(item) {
|
|
2544
|
+
let normalized;
|
|
2536
2545
|
if (isPlainObject(item)) {
|
|
2537
|
-
|
|
2538
|
-
}
|
|
2539
|
-
if (item && typeof item === "object") {
|
|
2546
|
+
normalized = item;
|
|
2547
|
+
} else if (item && typeof item === "object") {
|
|
2540
2548
|
const candidate = item;
|
|
2541
2549
|
for (const method of ["toJSON", "model_dump", "dict"]) {
|
|
2542
2550
|
const serialize = candidate[method];
|
|
@@ -2546,23 +2554,32 @@ function normalizeSessionItem(item) {
|
|
|
2546
2554
|
try {
|
|
2547
2555
|
const parsed = serialize.call(item);
|
|
2548
2556
|
if (isPlainObject(parsed)) {
|
|
2549
|
-
|
|
2557
|
+
normalized = parsed;
|
|
2558
|
+
break;
|
|
2550
2559
|
}
|
|
2551
2560
|
} catch {
|
|
2552
2561
|
}
|
|
2553
2562
|
}
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2563
|
+
if (!normalized) {
|
|
2564
|
+
try {
|
|
2565
|
+
const serialized = JSON.stringify(item);
|
|
2566
|
+
if (serialized) {
|
|
2567
|
+
const parsed = JSON.parse(serialized);
|
|
2568
|
+
if (isPlainObject(parsed)) {
|
|
2569
|
+
normalized = parsed;
|
|
2570
|
+
}
|
|
2560
2571
|
}
|
|
2572
|
+
} catch {
|
|
2561
2573
|
}
|
|
2562
|
-
} catch {
|
|
2563
2574
|
}
|
|
2564
2575
|
}
|
|
2565
|
-
|
|
2576
|
+
if (!normalized) {
|
|
2577
|
+
normalized = { role: "tool", content: String(item) };
|
|
2578
|
+
}
|
|
2579
|
+
if (typeof normalized.type === "string" && SDK_TYPE_TO_STORAGE[normalized.type]) {
|
|
2580
|
+
normalized = { ...normalized, type: SDK_TYPE_TO_STORAGE[normalized.type] };
|
|
2581
|
+
}
|
|
2582
|
+
return normalized;
|
|
2566
2583
|
}
|
|
2567
2584
|
function sessionRoleForItem(item) {
|
|
2568
2585
|
const role = item.role;
|
|
@@ -2574,7 +2591,7 @@ function sessionRoleForItem(item) {
|
|
|
2574
2591
|
const messageRole = item.role;
|
|
2575
2592
|
return typeof messageRole === "string" && VALID_ROLES.has(messageRole) ? messageRole : "assistant";
|
|
2576
2593
|
}
|
|
2577
|
-
if (itemType === "function_call_output" || itemType === "computer_call_output") {
|
|
2594
|
+
if (itemType === "function_call_output" || itemType === "function_call_result" || itemType === "computer_call_output" || itemType === "computer_call_result") {
|
|
2578
2595
|
return "tool";
|
|
2579
2596
|
}
|
|
2580
2597
|
if (itemType === "function_call" || itemType === "computer_call" || itemType === "reasoning") {
|
|
@@ -2585,7 +2602,11 @@ function sessionRoleForItem(item) {
|
|
|
2585
2602
|
function memoryMessageToSessionItem(message) {
|
|
2586
2603
|
const metadata = message.metadata || {};
|
|
2587
2604
|
if (metadata.agent_sdk_session === true && isPlainObject(message.content)) {
|
|
2588
|
-
|
|
2605
|
+
const item = message.content;
|
|
2606
|
+
if (typeof item.type === "string" && ITEM_TYPE_TO_SDK[item.type]) {
|
|
2607
|
+
return { ...item, type: ITEM_TYPE_TO_SDK[item.type] };
|
|
2608
|
+
}
|
|
2609
|
+
return item;
|
|
2589
2610
|
}
|
|
2590
2611
|
if (VALID_ROLES.has(message.role) && message.content !== void 0) {
|
|
2591
2612
|
return {
|
|
@@ -2651,7 +2672,7 @@ function createOpenAISession(memory, sessionId, maxItems, appendSessionMessages)
|
|
|
2651
2672
|
});
|
|
2652
2673
|
return item;
|
|
2653
2674
|
}
|
|
2654
|
-
return
|
|
2675
|
+
return void 0;
|
|
2655
2676
|
},
|
|
2656
2677
|
async clearSession() {
|
|
2657
2678
|
await memory.clearMessages({ conversationId: sessionId });
|
|
@@ -4535,6 +4556,14 @@ var VALID_ROLES = /* @__PURE__ */ new Set([
|
|
|
4535
4556
|
"tool"
|
|
4536
4557
|
]);
|
|
4537
4558
|
var VALID_ORDERS = /* @__PURE__ */ new Set(["asc", "desc"]);
|
|
4559
|
+
var ITEM_TYPE_TO_SDK = {
|
|
4560
|
+
function_call_output: "function_call_result",
|
|
4561
|
+
computer_call_output: "computer_call_result"
|
|
4562
|
+
};
|
|
4563
|
+
var SDK_TYPE_TO_STORAGE = {
|
|
4564
|
+
function_call_result: "function_call_output",
|
|
4565
|
+
computer_call_result: "computer_call_output"
|
|
4566
|
+
};
|
|
4538
4567
|
var MemoryValidationError = class extends Error {
|
|
4539
4568
|
code = "MemoryValidationError";
|
|
4540
4569
|
constructor(message) {
|
|
@@ -5010,10 +5039,10 @@ function applyCursor(items, cursorValue, options) {
|
|
|
5010
5039
|
return items.slice(start, end).slice(0, options.limit);
|
|
5011
5040
|
}
|
|
5012
5041
|
function normalizeSessionItem(item) {
|
|
5042
|
+
let normalized;
|
|
5013
5043
|
if (isPlainObject(item)) {
|
|
5014
|
-
|
|
5015
|
-
}
|
|
5016
|
-
if (item && typeof item === "object") {
|
|
5044
|
+
normalized = item;
|
|
5045
|
+
} else if (item && typeof item === "object") {
|
|
5017
5046
|
const candidate = item;
|
|
5018
5047
|
for (const method of ["toJSON", "model_dump", "dict"]) {
|
|
5019
5048
|
const serialize = candidate[method];
|
|
@@ -5023,23 +5052,32 @@ function normalizeSessionItem(item) {
|
|
|
5023
5052
|
try {
|
|
5024
5053
|
const parsed = serialize.call(item);
|
|
5025
5054
|
if (isPlainObject(parsed)) {
|
|
5026
|
-
|
|
5055
|
+
normalized = parsed;
|
|
5056
|
+
break;
|
|
5027
5057
|
}
|
|
5028
5058
|
} catch {
|
|
5029
5059
|
}
|
|
5030
5060
|
}
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5061
|
+
if (!normalized) {
|
|
5062
|
+
try {
|
|
5063
|
+
const serialized = JSON.stringify(item);
|
|
5064
|
+
if (serialized) {
|
|
5065
|
+
const parsed = JSON.parse(serialized);
|
|
5066
|
+
if (isPlainObject(parsed)) {
|
|
5067
|
+
normalized = parsed;
|
|
5068
|
+
}
|
|
5037
5069
|
}
|
|
5070
|
+
} catch {
|
|
5038
5071
|
}
|
|
5039
|
-
} catch {
|
|
5040
5072
|
}
|
|
5041
5073
|
}
|
|
5042
|
-
|
|
5074
|
+
if (!normalized) {
|
|
5075
|
+
normalized = { role: "tool", content: String(item) };
|
|
5076
|
+
}
|
|
5077
|
+
if (typeof normalized.type === "string" && SDK_TYPE_TO_STORAGE[normalized.type]) {
|
|
5078
|
+
normalized = { ...normalized, type: SDK_TYPE_TO_STORAGE[normalized.type] };
|
|
5079
|
+
}
|
|
5080
|
+
return normalized;
|
|
5043
5081
|
}
|
|
5044
5082
|
function sessionRoleForItem(item) {
|
|
5045
5083
|
const role = item.role;
|
|
@@ -5051,7 +5089,7 @@ function sessionRoleForItem(item) {
|
|
|
5051
5089
|
const messageRole = item.role;
|
|
5052
5090
|
return typeof messageRole === "string" && VALID_ROLES.has(messageRole) ? messageRole : "assistant";
|
|
5053
5091
|
}
|
|
5054
|
-
if (itemType === "function_call_output" || itemType === "computer_call_output") {
|
|
5092
|
+
if (itemType === "function_call_output" || itemType === "function_call_result" || itemType === "computer_call_output" || itemType === "computer_call_result") {
|
|
5055
5093
|
return "tool";
|
|
5056
5094
|
}
|
|
5057
5095
|
if (itemType === "function_call" || itemType === "computer_call" || itemType === "reasoning") {
|
|
@@ -5062,7 +5100,11 @@ function sessionRoleForItem(item) {
|
|
|
5062
5100
|
function memoryMessageToSessionItem(message) {
|
|
5063
5101
|
const metadata = message.metadata || {};
|
|
5064
5102
|
if (metadata.agent_sdk_session === true && isPlainObject(message.content)) {
|
|
5065
|
-
|
|
5103
|
+
const item = message.content;
|
|
5104
|
+
if (typeof item.type === "string" && ITEM_TYPE_TO_SDK[item.type]) {
|
|
5105
|
+
return { ...item, type: ITEM_TYPE_TO_SDK[item.type] };
|
|
5106
|
+
}
|
|
5107
|
+
return item;
|
|
5066
5108
|
}
|
|
5067
5109
|
if (VALID_ROLES.has(message.role) && message.content !== void 0) {
|
|
5068
5110
|
return {
|
|
@@ -5128,7 +5170,7 @@ function createOpenAISession(memory, sessionId, maxItems, appendSessionMessages)
|
|
|
5128
5170
|
});
|
|
5129
5171
|
return item;
|
|
5130
5172
|
}
|
|
5131
|
-
return
|
|
5173
|
+
return void 0;
|
|
5132
5174
|
},
|
|
5133
5175
|
async clearSession() {
|
|
5134
5176
|
await memory.clearMessages({ conversationId: sessionId });
|
|
@@ -8877,6 +8919,14 @@ var VALID_ROLES = /* @__PURE__ */ new Set([
|
|
|
8877
8919
|
"tool"
|
|
8878
8920
|
]);
|
|
8879
8921
|
var VALID_ORDERS = /* @__PURE__ */ new Set(["asc", "desc"]);
|
|
8922
|
+
var ITEM_TYPE_TO_SDK = {
|
|
8923
|
+
function_call_output: "function_call_result",
|
|
8924
|
+
computer_call_output: "computer_call_result"
|
|
8925
|
+
};
|
|
8926
|
+
var SDK_TYPE_TO_STORAGE = {
|
|
8927
|
+
function_call_result: "function_call_output",
|
|
8928
|
+
computer_call_result: "computer_call_output"
|
|
8929
|
+
};
|
|
8880
8930
|
var MemoryValidationError = class extends Error {
|
|
8881
8931
|
code = "MemoryValidationError";
|
|
8882
8932
|
constructor(message) {
|
|
@@ -9352,10 +9402,10 @@ function applyCursor(items, cursorValue, options) {
|
|
|
9352
9402
|
return items.slice(start, end).slice(0, options.limit);
|
|
9353
9403
|
}
|
|
9354
9404
|
function normalizeSessionItem(item) {
|
|
9405
|
+
let normalized;
|
|
9355
9406
|
if (isPlainObject(item)) {
|
|
9356
|
-
|
|
9357
|
-
}
|
|
9358
|
-
if (item && typeof item === "object") {
|
|
9407
|
+
normalized = item;
|
|
9408
|
+
} else if (item && typeof item === "object") {
|
|
9359
9409
|
const candidate = item;
|
|
9360
9410
|
for (const method of ["toJSON", "model_dump", "dict"]) {
|
|
9361
9411
|
const serialize = candidate[method];
|
|
@@ -9365,23 +9415,32 @@ function normalizeSessionItem(item) {
|
|
|
9365
9415
|
try {
|
|
9366
9416
|
const parsed = serialize.call(item);
|
|
9367
9417
|
if (isPlainObject(parsed)) {
|
|
9368
|
-
|
|
9418
|
+
normalized = parsed;
|
|
9419
|
+
break;
|
|
9369
9420
|
}
|
|
9370
9421
|
} catch {
|
|
9371
9422
|
}
|
|
9372
9423
|
}
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9424
|
+
if (!normalized) {
|
|
9425
|
+
try {
|
|
9426
|
+
const serialized = JSON.stringify(item);
|
|
9427
|
+
if (serialized) {
|
|
9428
|
+
const parsed = JSON.parse(serialized);
|
|
9429
|
+
if (isPlainObject(parsed)) {
|
|
9430
|
+
normalized = parsed;
|
|
9431
|
+
}
|
|
9379
9432
|
}
|
|
9433
|
+
} catch {
|
|
9380
9434
|
}
|
|
9381
|
-
} catch {
|
|
9382
9435
|
}
|
|
9383
9436
|
}
|
|
9384
|
-
|
|
9437
|
+
if (!normalized) {
|
|
9438
|
+
normalized = { role: "tool", content: String(item) };
|
|
9439
|
+
}
|
|
9440
|
+
if (typeof normalized.type === "string" && SDK_TYPE_TO_STORAGE[normalized.type]) {
|
|
9441
|
+
normalized = { ...normalized, type: SDK_TYPE_TO_STORAGE[normalized.type] };
|
|
9442
|
+
}
|
|
9443
|
+
return normalized;
|
|
9385
9444
|
}
|
|
9386
9445
|
function sessionRoleForItem(item) {
|
|
9387
9446
|
const role = item.role;
|
|
@@ -9393,7 +9452,7 @@ function sessionRoleForItem(item) {
|
|
|
9393
9452
|
const messageRole = item.role;
|
|
9394
9453
|
return typeof messageRole === "string" && VALID_ROLES.has(messageRole) ? messageRole : "assistant";
|
|
9395
9454
|
}
|
|
9396
|
-
if (itemType === "function_call_output" || itemType === "computer_call_output") {
|
|
9455
|
+
if (itemType === "function_call_output" || itemType === "function_call_result" || itemType === "computer_call_output" || itemType === "computer_call_result") {
|
|
9397
9456
|
return "tool";
|
|
9398
9457
|
}
|
|
9399
9458
|
if (itemType === "function_call" || itemType === "computer_call" || itemType === "reasoning") {
|
|
@@ -9404,7 +9463,11 @@ function sessionRoleForItem(item) {
|
|
|
9404
9463
|
function memoryMessageToSessionItem(message) {
|
|
9405
9464
|
const metadata = message.metadata || {};
|
|
9406
9465
|
if (metadata.agent_sdk_session === true && isPlainObject(message.content)) {
|
|
9407
|
-
|
|
9466
|
+
const item = message.content;
|
|
9467
|
+
if (typeof item.type === "string" && ITEM_TYPE_TO_SDK[item.type]) {
|
|
9468
|
+
return { ...item, type: ITEM_TYPE_TO_SDK[item.type] };
|
|
9469
|
+
}
|
|
9470
|
+
return item;
|
|
9408
9471
|
}
|
|
9409
9472
|
if (VALID_ROLES.has(message.role) && message.content !== void 0) {
|
|
9410
9473
|
return {
|
|
@@ -9470,7 +9533,7 @@ function createOpenAISession(memory, sessionId, maxItems, appendSessionMessages)
|
|
|
9470
9533
|
});
|
|
9471
9534
|
return item;
|
|
9472
9535
|
}
|
|
9473
|
-
return
|
|
9536
|
+
return void 0;
|
|
9474
9537
|
},
|
|
9475
9538
|
async clearSession() {
|
|
9476
9539
|
await memory.clearMessages({ conversationId: sessionId });
|
|
@@ -23669,6 +23732,14 @@ var VALID_ROLES = /* @__PURE__ */ new Set([
|
|
|
23669
23732
|
"tool"
|
|
23670
23733
|
]);
|
|
23671
23734
|
var VALID_ORDERS = /* @__PURE__ */ new Set(["asc", "desc"]);
|
|
23735
|
+
var ITEM_TYPE_TO_SDK = {
|
|
23736
|
+
function_call_output: "function_call_result",
|
|
23737
|
+
computer_call_output: "computer_call_result"
|
|
23738
|
+
};
|
|
23739
|
+
var SDK_TYPE_TO_STORAGE = {
|
|
23740
|
+
function_call_result: "function_call_output",
|
|
23741
|
+
computer_call_result: "computer_call_output"
|
|
23742
|
+
};
|
|
23672
23743
|
var MemoryValidationError = class extends Error {
|
|
23673
23744
|
code = "MemoryValidationError";
|
|
23674
23745
|
constructor(message) {
|
|
@@ -24144,10 +24215,10 @@ function applyCursor(items, cursorValue, options) {
|
|
|
24144
24215
|
return items.slice(start, end).slice(0, options.limit);
|
|
24145
24216
|
}
|
|
24146
24217
|
function normalizeSessionItem(item) {
|
|
24218
|
+
let normalized;
|
|
24147
24219
|
if (isPlainObject(item)) {
|
|
24148
|
-
|
|
24149
|
-
}
|
|
24150
|
-
if (item && typeof item === "object") {
|
|
24220
|
+
normalized = item;
|
|
24221
|
+
} else if (item && typeof item === "object") {
|
|
24151
24222
|
const candidate = item;
|
|
24152
24223
|
for (const method of ["toJSON", "model_dump", "dict"]) {
|
|
24153
24224
|
const serialize = candidate[method];
|
|
@@ -24157,23 +24228,32 @@ function normalizeSessionItem(item) {
|
|
|
24157
24228
|
try {
|
|
24158
24229
|
const parsed = serialize.call(item);
|
|
24159
24230
|
if (isPlainObject(parsed)) {
|
|
24160
|
-
|
|
24231
|
+
normalized = parsed;
|
|
24232
|
+
break;
|
|
24161
24233
|
}
|
|
24162
24234
|
} catch {
|
|
24163
24235
|
}
|
|
24164
24236
|
}
|
|
24165
|
-
|
|
24166
|
-
|
|
24167
|
-
|
|
24168
|
-
|
|
24169
|
-
|
|
24170
|
-
|
|
24237
|
+
if (!normalized) {
|
|
24238
|
+
try {
|
|
24239
|
+
const serialized = JSON.stringify(item);
|
|
24240
|
+
if (serialized) {
|
|
24241
|
+
const parsed = JSON.parse(serialized);
|
|
24242
|
+
if (isPlainObject(parsed)) {
|
|
24243
|
+
normalized = parsed;
|
|
24244
|
+
}
|
|
24171
24245
|
}
|
|
24246
|
+
} catch {
|
|
24172
24247
|
}
|
|
24173
|
-
} catch {
|
|
24174
24248
|
}
|
|
24175
24249
|
}
|
|
24176
|
-
|
|
24250
|
+
if (!normalized) {
|
|
24251
|
+
normalized = { role: "tool", content: String(item) };
|
|
24252
|
+
}
|
|
24253
|
+
if (typeof normalized.type === "string" && SDK_TYPE_TO_STORAGE[normalized.type]) {
|
|
24254
|
+
normalized = { ...normalized, type: SDK_TYPE_TO_STORAGE[normalized.type] };
|
|
24255
|
+
}
|
|
24256
|
+
return normalized;
|
|
24177
24257
|
}
|
|
24178
24258
|
function sessionRoleForItem(item) {
|
|
24179
24259
|
const role = item.role;
|
|
@@ -24185,7 +24265,7 @@ function sessionRoleForItem(item) {
|
|
|
24185
24265
|
const messageRole = item.role;
|
|
24186
24266
|
return typeof messageRole === "string" && VALID_ROLES.has(messageRole) ? messageRole : "assistant";
|
|
24187
24267
|
}
|
|
24188
|
-
if (itemType === "function_call_output" || itemType === "computer_call_output") {
|
|
24268
|
+
if (itemType === "function_call_output" || itemType === "function_call_result" || itemType === "computer_call_output" || itemType === "computer_call_result") {
|
|
24189
24269
|
return "tool";
|
|
24190
24270
|
}
|
|
24191
24271
|
if (itemType === "function_call" || itemType === "computer_call" || itemType === "reasoning") {
|
|
@@ -24196,7 +24276,11 @@ function sessionRoleForItem(item) {
|
|
|
24196
24276
|
function memoryMessageToSessionItem(message) {
|
|
24197
24277
|
const metadata = message.metadata || {};
|
|
24198
24278
|
if (metadata.agent_sdk_session === true && isPlainObject(message.content)) {
|
|
24199
|
-
|
|
24279
|
+
const item = message.content;
|
|
24280
|
+
if (typeof item.type === "string" && ITEM_TYPE_TO_SDK[item.type]) {
|
|
24281
|
+
return { ...item, type: ITEM_TYPE_TO_SDK[item.type] };
|
|
24282
|
+
}
|
|
24283
|
+
return item;
|
|
24200
24284
|
}
|
|
24201
24285
|
if (VALID_ROLES.has(message.role) && message.content !== void 0) {
|
|
24202
24286
|
return {
|
|
@@ -24262,7 +24346,7 @@ function createOpenAISession(memory, sessionId, maxItems, appendSessionMessages)
|
|
|
24262
24346
|
});
|
|
24263
24347
|
return item;
|
|
24264
24348
|
}
|
|
24265
|
-
return
|
|
24349
|
+
return void 0;
|
|
24266
24350
|
},
|
|
24267
24351
|
async clearSession() {
|
|
24268
24352
|
await memory.clearMessages({ conversationId: sessionId });
|
|
@@ -48480,6 +48564,14 @@ var VALID_ROLES = /* @__PURE__ */ new Set([
|
|
|
48480
48564
|
"tool"
|
|
48481
48565
|
]);
|
|
48482
48566
|
var VALID_ORDERS = /* @__PURE__ */ new Set(["asc", "desc"]);
|
|
48567
|
+
var ITEM_TYPE_TO_SDK = {
|
|
48568
|
+
function_call_output: "function_call_result",
|
|
48569
|
+
computer_call_output: "computer_call_result"
|
|
48570
|
+
};
|
|
48571
|
+
var SDK_TYPE_TO_STORAGE = {
|
|
48572
|
+
function_call_result: "function_call_output",
|
|
48573
|
+
computer_call_result: "computer_call_output"
|
|
48574
|
+
};
|
|
48483
48575
|
var MemoryValidationError = class extends Error {
|
|
48484
48576
|
code = "MemoryValidationError";
|
|
48485
48577
|
constructor(message) {
|
|
@@ -48955,10 +49047,10 @@ function applyCursor(items, cursorValue, options) {
|
|
|
48955
49047
|
return items.slice(start, end).slice(0, options.limit);
|
|
48956
49048
|
}
|
|
48957
49049
|
function normalizeSessionItem(item) {
|
|
49050
|
+
let normalized;
|
|
48958
49051
|
if (isPlainObject(item)) {
|
|
48959
|
-
|
|
48960
|
-
}
|
|
48961
|
-
if (item && typeof item === "object") {
|
|
49052
|
+
normalized = item;
|
|
49053
|
+
} else if (item && typeof item === "object") {
|
|
48962
49054
|
const candidate = item;
|
|
48963
49055
|
for (const method of ["toJSON", "model_dump", "dict"]) {
|
|
48964
49056
|
const serialize = candidate[method];
|
|
@@ -48968,23 +49060,32 @@ function normalizeSessionItem(item) {
|
|
|
48968
49060
|
try {
|
|
48969
49061
|
const parsed = serialize.call(item);
|
|
48970
49062
|
if (isPlainObject(parsed)) {
|
|
48971
|
-
|
|
49063
|
+
normalized = parsed;
|
|
49064
|
+
break;
|
|
48972
49065
|
}
|
|
48973
49066
|
} catch {
|
|
48974
49067
|
}
|
|
48975
49068
|
}
|
|
48976
|
-
|
|
48977
|
-
|
|
48978
|
-
|
|
48979
|
-
|
|
48980
|
-
|
|
48981
|
-
|
|
49069
|
+
if (!normalized) {
|
|
49070
|
+
try {
|
|
49071
|
+
const serialized = JSON.stringify(item);
|
|
49072
|
+
if (serialized) {
|
|
49073
|
+
const parsed = JSON.parse(serialized);
|
|
49074
|
+
if (isPlainObject(parsed)) {
|
|
49075
|
+
normalized = parsed;
|
|
49076
|
+
}
|
|
48982
49077
|
}
|
|
49078
|
+
} catch {
|
|
48983
49079
|
}
|
|
48984
|
-
} catch {
|
|
48985
49080
|
}
|
|
48986
49081
|
}
|
|
48987
|
-
|
|
49082
|
+
if (!normalized) {
|
|
49083
|
+
normalized = { role: "tool", content: String(item) };
|
|
49084
|
+
}
|
|
49085
|
+
if (typeof normalized.type === "string" && SDK_TYPE_TO_STORAGE[normalized.type]) {
|
|
49086
|
+
normalized = { ...normalized, type: SDK_TYPE_TO_STORAGE[normalized.type] };
|
|
49087
|
+
}
|
|
49088
|
+
return normalized;
|
|
48988
49089
|
}
|
|
48989
49090
|
function sessionRoleForItem(item) {
|
|
48990
49091
|
const role = item.role;
|
|
@@ -48996,7 +49097,7 @@ function sessionRoleForItem(item) {
|
|
|
48996
49097
|
const messageRole = item.role;
|
|
48997
49098
|
return typeof messageRole === "string" && VALID_ROLES.has(messageRole) ? messageRole : "assistant";
|
|
48998
49099
|
}
|
|
48999
|
-
if (itemType === "function_call_output" || itemType === "computer_call_output") {
|
|
49100
|
+
if (itemType === "function_call_output" || itemType === "function_call_result" || itemType === "computer_call_output" || itemType === "computer_call_result") {
|
|
49000
49101
|
return "tool";
|
|
49001
49102
|
}
|
|
49002
49103
|
if (itemType === "function_call" || itemType === "computer_call" || itemType === "reasoning") {
|
|
@@ -49007,7 +49108,11 @@ function sessionRoleForItem(item) {
|
|
|
49007
49108
|
function memoryMessageToSessionItem(message) {
|
|
49008
49109
|
const metadata = message.metadata || {};
|
|
49009
49110
|
if (metadata.agent_sdk_session === true && isPlainObject(message.content)) {
|
|
49010
|
-
|
|
49111
|
+
const item = message.content;
|
|
49112
|
+
if (typeof item.type === "string" && ITEM_TYPE_TO_SDK[item.type]) {
|
|
49113
|
+
return { ...item, type: ITEM_TYPE_TO_SDK[item.type] };
|
|
49114
|
+
}
|
|
49115
|
+
return item;
|
|
49011
49116
|
}
|
|
49012
49117
|
if (VALID_ROLES.has(message.role) && message.content !== void 0) {
|
|
49013
49118
|
return {
|
|
@@ -49073,7 +49178,7 @@ function createOpenAISession(memory, sessionId, maxItems, appendSessionMessages)
|
|
|
49073
49178
|
});
|
|
49074
49179
|
return item;
|
|
49075
49180
|
}
|
|
49076
|
-
return
|
|
49181
|
+
return void 0;
|
|
49077
49182
|
},
|
|
49078
49183
|
async clearSession() {
|
|
49079
49184
|
await memory.clearMessages({ conversationId: sessionId });
|
|
@@ -63915,6 +64020,14 @@ var VALID_ROLES = /* @__PURE__ */ new Set([
|
|
|
63915
64020
|
"tool"
|
|
63916
64021
|
]);
|
|
63917
64022
|
var VALID_ORDERS = /* @__PURE__ */ new Set(["asc", "desc"]);
|
|
64023
|
+
var ITEM_TYPE_TO_SDK = {
|
|
64024
|
+
function_call_output: "function_call_result",
|
|
64025
|
+
computer_call_output: "computer_call_result"
|
|
64026
|
+
};
|
|
64027
|
+
var SDK_TYPE_TO_STORAGE = {
|
|
64028
|
+
function_call_result: "function_call_output",
|
|
64029
|
+
computer_call_result: "computer_call_output"
|
|
64030
|
+
};
|
|
63918
64031
|
var MemoryValidationError = class extends Error {
|
|
63919
64032
|
code = "MemoryValidationError";
|
|
63920
64033
|
constructor(message) {
|
|
@@ -64390,10 +64503,10 @@ function applyCursor(items, cursorValue, options) {
|
|
|
64390
64503
|
return items.slice(start, end).slice(0, options.limit);
|
|
64391
64504
|
}
|
|
64392
64505
|
function normalizeSessionItem(item) {
|
|
64506
|
+
let normalized;
|
|
64393
64507
|
if (isPlainObject(item)) {
|
|
64394
|
-
|
|
64395
|
-
}
|
|
64396
|
-
if (item && typeof item === "object") {
|
|
64508
|
+
normalized = item;
|
|
64509
|
+
} else if (item && typeof item === "object") {
|
|
64397
64510
|
const candidate = item;
|
|
64398
64511
|
for (const method of ["toJSON", "model_dump", "dict"]) {
|
|
64399
64512
|
const serialize = candidate[method];
|
|
@@ -64403,23 +64516,32 @@ function normalizeSessionItem(item) {
|
|
|
64403
64516
|
try {
|
|
64404
64517
|
const parsed = serialize.call(item);
|
|
64405
64518
|
if (isPlainObject(parsed)) {
|
|
64406
|
-
|
|
64519
|
+
normalized = parsed;
|
|
64520
|
+
break;
|
|
64407
64521
|
}
|
|
64408
64522
|
} catch {
|
|
64409
64523
|
}
|
|
64410
64524
|
}
|
|
64411
|
-
|
|
64412
|
-
|
|
64413
|
-
|
|
64414
|
-
|
|
64415
|
-
|
|
64416
|
-
|
|
64525
|
+
if (!normalized) {
|
|
64526
|
+
try {
|
|
64527
|
+
const serialized = JSON.stringify(item);
|
|
64528
|
+
if (serialized) {
|
|
64529
|
+
const parsed = JSON.parse(serialized);
|
|
64530
|
+
if (isPlainObject(parsed)) {
|
|
64531
|
+
normalized = parsed;
|
|
64532
|
+
}
|
|
64417
64533
|
}
|
|
64534
|
+
} catch {
|
|
64418
64535
|
}
|
|
64419
|
-
} catch {
|
|
64420
64536
|
}
|
|
64421
64537
|
}
|
|
64422
|
-
|
|
64538
|
+
if (!normalized) {
|
|
64539
|
+
normalized = { role: "tool", content: String(item) };
|
|
64540
|
+
}
|
|
64541
|
+
if (typeof normalized.type === "string" && SDK_TYPE_TO_STORAGE[normalized.type]) {
|
|
64542
|
+
normalized = { ...normalized, type: SDK_TYPE_TO_STORAGE[normalized.type] };
|
|
64543
|
+
}
|
|
64544
|
+
return normalized;
|
|
64423
64545
|
}
|
|
64424
64546
|
function sessionRoleForItem(item) {
|
|
64425
64547
|
const role = item.role;
|
|
@@ -64431,7 +64553,7 @@ function sessionRoleForItem(item) {
|
|
|
64431
64553
|
const messageRole = item.role;
|
|
64432
64554
|
return typeof messageRole === "string" && VALID_ROLES.has(messageRole) ? messageRole : "assistant";
|
|
64433
64555
|
}
|
|
64434
|
-
if (itemType === "function_call_output" || itemType === "computer_call_output") {
|
|
64556
|
+
if (itemType === "function_call_output" || itemType === "function_call_result" || itemType === "computer_call_output" || itemType === "computer_call_result") {
|
|
64435
64557
|
return "tool";
|
|
64436
64558
|
}
|
|
64437
64559
|
if (itemType === "function_call" || itemType === "computer_call" || itemType === "reasoning") {
|
|
@@ -64442,7 +64564,11 @@ function sessionRoleForItem(item) {
|
|
|
64442
64564
|
function memoryMessageToSessionItem(message) {
|
|
64443
64565
|
const metadata = message.metadata || {};
|
|
64444
64566
|
if (metadata.agent_sdk_session === true && isPlainObject(message.content)) {
|
|
64445
|
-
|
|
64567
|
+
const item = message.content;
|
|
64568
|
+
if (typeof item.type === "string" && ITEM_TYPE_TO_SDK[item.type]) {
|
|
64569
|
+
return { ...item, type: ITEM_TYPE_TO_SDK[item.type] };
|
|
64570
|
+
}
|
|
64571
|
+
return item;
|
|
64446
64572
|
}
|
|
64447
64573
|
if (VALID_ROLES.has(message.role) && message.content !== void 0) {
|
|
64448
64574
|
return {
|
|
@@ -64508,7 +64634,7 @@ function createOpenAISession(memory, sessionId, maxItems, appendSessionMessages)
|
|
|
64508
64634
|
});
|
|
64509
64635
|
return item;
|
|
64510
64636
|
}
|
|
64511
|
-
return
|
|
64637
|
+
return void 0;
|
|
64512
64638
|
},
|
|
64513
64639
|
async clearSession() {
|
|
64514
64640
|
await memory.clearMessages({ conversationId: sessionId });
|