diff --git a/lnbits/core/static/js/service-worker.js b/lnbits/core/static/js/service-worker.js index 210bf9fee..e4926ea14 100644 --- a/lnbits/core/static/js/service-worker.js +++ b/lnbits/core/static/js/service-worker.js @@ -1,6 +1,6 @@ // update cache version every time there is a new deployment // so the service worker reinitializes the cache -const CACHE_VERSION = 51 +const CACHE_VERSION = 52 const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-` const getApiKey = request => { diff --git a/lnbits/static/bundle.min.js b/lnbits/static/bundle.min.js index c2fcf6e1b..afbce22a9 100644 --- a/lnbits/static/bundle.min.js +++ b/lnbits/static/bundle.min.js @@ -3,7 +3,7 @@ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -function decode(t){let e=t.toLowerCase(),n=e.lastIndexOf("1"),i=e.substring(0,n),r=e.substring(n+1,e.length-6),o=e.substring(e.length-6,e.length);if(!verify_checksum(i,bech32ToFiveBitArray(r+o)))throw"Malformed request: checksum is incorrect";return{human_readable_part:decodeHumanReadablePart(i),data:decodeData(r,i),checksum:o}}function decodeHumanReadablePart(t){let e;if(["lnbc","lntb","lnbcrt","lnsb"].forEach((n=>{t.substring(0,n.length)===n&&(e=n)})),null==e)throw"Malformed request: unknown prefix";let n=decodeAmount(t.substring(e.length,t.length));return{prefix:e,amount:n}}function decodeData(t,e){let n=t.substring(0,7),i=bech32ToInt(n),r=t.substring(t.length-104,t.length),o=t.substring(7,t.length-104),a=decodeTags(o),s=bech32ToFiveBitArray(n+o);return s=fiveBitArrayTo8BitArray(s,!0),s=textToHexString(e).concat(byteArrayToHexString(s)),{time_stamp:i,tags:a,signature:decodeSignature(r),signing_data:s}}function decodeSignature(t){let e=fiveBitArrayTo8BitArray(bech32ToFiveBitArray(t)),n=e[e.length-1];return{r:byteArrayToHexString(e.slice(0,32)),s:byteArrayToHexString(e.slice(32,e.length-1)),recovery_flag:n}}function decodeAmount(t){let e=t.charAt(t.length-1),n=t.substring(0,t.length-1);if("0"===n.substring(0,1))throw"Malformed request: amount cannot contain leading zeros";if(n=Number(n),n<0||!Number.isInteger(n))throw"Malformed request: amount must be a positive decimal integer";switch(e){case"":return"Any amount";case"p":return n/10;case"n":return 100*n;case"u":return 1e5*n;case"m":return 1e8*n;default:throw"Malformed request: undefined amount multiplier"}}function decodeTags(t){let e=extractTags(t),n=[];return e.forEach((t=>n.push(decodeTag(t.type,t.length,t.data)))),n}function extractTags(t){let e=[];for(;t.length>0;){let n=t.charAt(0),i=bech32ToInt(t.substring(1,3)),r=t.substring(3,i+3);e.push({type:n,length:i,data:r}),t=t.substring(3+i,t.length)}return e}function decodeTag(t,e,n){switch(t){case"p":if(52!==e)break;return{type:t,length:e,description:"payment_hash",value:byteArrayToHexString(fiveBitArrayTo8BitArray(bech32ToFiveBitArray(n)))};case"d":return{type:t,length:e,description:"description",value:bech32ToUTF8String(n)};case"n":if(53!==e)break;return{type:t,length:e,description:"payee_public_key",value:byteArrayToHexString(fiveBitArrayTo8BitArray(bech32ToFiveBitArray(n)))};case"h":if(52!==e)break;return{type:t,length:e,description:"description_hash",value:n};case"x":return{type:t,length:e,description:"expiry",value:bech32ToInt(n)};case"c":return{type:t,length:e,description:"min_final_cltv_expiry",value:bech32ToInt(n)};case"f":let i=bech32ToFiveBitArray(n.charAt(0))[0];if(i<0||i>18)break;return{type:t,length:e,description:"fallback_address",value:{version:i,fallback_address:n=n.substring(1,n.length)}};case"r":let r=(n=fiveBitArrayTo8BitArray(bech32ToFiveBitArray(n))).slice(0,33),o=n.slice(33,41),a=n.slice(41,45),s=n.slice(45,49),l=n.slice(49,51);return{type:t,length:e,description:"routing_information",value:{public_key:byteArrayToHexString(r),short_channel_id:byteArrayToHexString(o),fee_base_msat:byteArrayToInt(a),fee_proportional_millionths:byteArrayToInt(s),cltv_expiry_delta:byteArrayToInt(l)}}}}function polymod(t){let e=[996825010,642813549,513874426,1027748829,705979059],n=1;return t.forEach((t=>{let i=n>>25;n=(33554431&n)<<5^t;for(let t=0;t<5;t++)n^=1==(i>>t&1)?e[t]:0})),n}function expand(t){let e=[];for(let n=0;n>5);e.push(0);for(let n=0;n>>0;for(e=0;e0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var E=/(\[[^\[]*\])|(\\)?([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,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},D={};function P(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(D[t]=r),e&&(D[e[0]]=function(){return A(r.apply(this,arguments),e[1],e[2])}),n&&(D[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function R(t,e){return t.isValid()?(e=N(e,t.localeData()),L[e]=L[e]||function(t){var e,n,i,r=t.match(E);for(e=0,n=r.length;e=0&&q.test(t);)t=t.replace(q,i),q.lastIndex=0,n-=1;return t}var I={};function j(t,e){var n=t.toLowerCase();I[n]=I[n+"s"]=I[e]=t}function $(t){return"string"==typeof t?I[t]||I[t.toLowerCase()]:void 0}function F(t){var e,n,i={};for(n in t)o(t,n)&&(e=$(n))&&(i[e]=t[n]);return i}var B={};function z(t,e){B[t]=e}function V(t){return t%4==0&&t%100!=0||t%400==0}function H(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function U(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=H(e)),n}function W(t,e){return function(i){return null!=i?(Q(this,t,i),n.updateOffset(this,e),this):Y(this,t)}}function Y(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Q(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&V(t.year())&&1===t.month()&&29===t.date()?(n=U(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),At(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var G,K=/\d/,Z=/\d\d/,J=/\d{3}/,X=/\d{4}/,tt=/[+-]?\d{6}/,et=/\d\d?/,nt=/\d\d\d\d?/,it=/\d\d\d\d\d\d?/,rt=/\d{1,3}/,ot=/\d{1,4}/,at=/[+-]?\d{1,6}/,st=/\d+/,lt=/[+-]?\d+/,ut=/Z|[+-]\d\d:?\d\d/gi,ct=/Z|[+-]\d\d(?::?\d\d)?/gi,dt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ht(t,e,n){G[t]=M(e)?e:function(t,i){return t&&n?n:e}}function ft(t,e){return o(G,t)?G[t](e._strict,e._locale):new RegExp(pt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}function pt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}G={};var mt={};function vt(t,e){var n,i,r=e;for("string"==typeof t&&(t=[t]),l(e)&&(r=function(t,n){n[e]=U(t)}),i=t.length,n=0;n68?1900:2e3)};var Ft=W("FullYear",!0);function Bt(t,e,n,i,r,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,r,o,a),s}function zt(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Vt(t,e,n){var i=7+e-n;return-((7+zt(t,0,i).getUTCDay()-e)%7)+i-1}function Ht(t,e,n,i,r){var o,a,s=1+7*(e-1)+(7+n-i)%7+Vt(t,i,r);return s<=0?a=$t(o=t-1)+s:s>$t(t)?(o=t+1,a=s-$t(t)):(o=t,a=s),{year:o,dayOfYear:a}}function Ut(t,e,n){var i,r,o=Vt(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?i=a+Wt(r=t.year()-1,e,n):a>Wt(t.year(),e,n)?(i=a-Wt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function Wt(t,e,n){var i=Vt(t,e,n),r=Vt(t+1,e,n);return($t(t)-i+r)/7}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),z("week",5),z("isoWeek",5),ht("w",et),ht("ww",et,Z),ht("W",et),ht("WW",et,Z),gt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=U(t)}));function Yt(t,e){return t.slice(e,7).concat(t.slice(0,e))}P("d",0,"do","day"),P("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),P("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),P("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),ht("d",et),ht("e",et),ht("E",et),ht("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ht("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ht("dddd",(function(t,e){return e.weekdaysRegex(t)})),gt(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t})),gt(["d","e","E"],(function(t,e,n,i){e[i]=U(t)}));var Qt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Kt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Zt=dt,Jt=dt,Xt=dt;function te(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=yt.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=yt.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=yt.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=yt.call(this._weekdaysParse,a))||-1!==(r=yt.call(this._shortWeekdaysParse,a))||-1!==(r=yt.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=yt.call(this._shortWeekdaysParse,a))||-1!==(r=yt.call(this._weekdaysParse,a))||-1!==(r=yt.call(this._minWeekdaysParse,a))?r:null:-1!==(r=yt.call(this._minWeekdaysParse,a))||-1!==(r=yt.call(this._weekdaysParse,a))||-1!==(r=yt.call(this._shortWeekdaysParse,a))?r:null}function ee(){function t(t,e){return e.length-t.length}var e,n,i,r,o,a=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),i=pt(this.weekdaysMin(n,"")),r=pt(this.weekdaysShort(n,"")),o=pt(this.weekdays(n,"")),a.push(i),s.push(r),l.push(o),u.push(i),u.push(r),u.push(o);a.sort(t),s.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ne(){return this.hours()%12||12}function ie(t,e){P(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function re(t,e){return e._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,ne),P("k",["kk",2],0,(function(){return this.hours()||24})),P("hmm",0,0,(function(){return""+ne.apply(this)+A(this.minutes(),2)})),P("hmmss",0,0,(function(){return""+ne.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),P("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),P("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),ie("a",!0),ie("A",!1),j("hour","h"),z("hour",13),ht("a",re),ht("A",re),ht("H",et),ht("h",et),ht("k",et),ht("HH",et,Z),ht("hh",et,Z),ht("kk",et,Z),ht("hmm",nt),ht("hmmss",it),ht("Hmm",nt),ht("Hmmss",it),vt(["H","HH"],kt),vt(["k","kk"],(function(t,e,n){var i=U(t);e[kt]=24===i?0:i})),vt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),vt(["h","hh"],(function(t,e,n){e[kt]=U(t),f(n).bigHour=!0})),vt("hmm",(function(t,e,n){var i=t.length-2;e[kt]=U(t.substr(0,i)),e[St]=U(t.substr(i)),f(n).bigHour=!0})),vt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[kt]=U(t.substr(0,i)),e[St]=U(t.substr(i,2)),e[Ct]=U(t.substr(r)),f(n).bigHour=!0})),vt("Hmm",(function(t,e,n){var i=t.length-2;e[kt]=U(t.substr(0,i)),e[St]=U(t.substr(i))})),vt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[kt]=U(t.substr(0,i)),e[St]=U(t.substr(i,2)),e[Ct]=U(t.substr(r))}));var oe=W("Hours",!0);var ae,se={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Et,monthsShort:qt,week:{dow:0,doy:6},weekdays:Qt,weekdaysMin:Kt,weekdaysShort:Gt,meridiemParse:/[ap]\.?m?\.?/i},le={},ue={};function ce(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n0;){if(i=he(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&ce(r,n)>=e-1)break;e--}o++}return ae}(t)}function ve(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[wt]<0||n[wt]>11?wt:n[xt]<1||n[xt]>At(n[bt],n[wt])?xt:n[kt]<0||n[kt]>24||24===n[kt]&&(0!==n[St]||0!==n[Ct]||0!==n[Mt])?kt:n[St]<0||n[St]>59?St:n[Ct]<0||n[Ct]>59?Ct:n[Mt]<0||n[Mt]>999?Mt:-1,f(t)._overflowDayOfYear&&(ext)&&(e=xt),f(t)._overflowWeeks&&-1===e&&(e=Tt),f(t)._overflowWeekday&&-1===e&&(e=Ot),f(t).overflow=e),t}var ge=/^\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)?)?$/,_e=/^\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)?)?$/,ye=/Z|[+-]\d\d(?::?\d\d)?/,be=[["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]],we=[["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/]],xe=/^\/?Date\((-?\d+)/i,ke=/^(?:(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}))$/,Se={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ce(t){var e,n,i,r,o,a,s=t._i,l=ge.exec(s)||_e.exec(s),u=be.length,c=we.length;if(l){for(f(t).iso=!0,e=0,n=u;e7)&&(l=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,u=Ut(De(),o,a),n=Oe(e.gg,t._a[bt],u.year),i=Oe(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o);i<1||i>Wt(n,o,a)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(s=Ht(n,i,r,o,a),t._a[bt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=Oe(t._a[bt],r[bt]),(t._dayOfYear>$t(a)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=zt(a,0,t._dayOfYear),t._a[wt]=i.getUTCMonth(),t._a[xt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[kt]&&0===t._a[St]&&0===t._a[Ct]&&0===t._a[Mt]&&(t._nextDay=!0,t._a[kt]=0),t._d=(t._useUTC?zt:Bt).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[kt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}function Ee(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[],f(t).empty=!0;var e,i,r,o,a,s,l,u=""+t._i,c=u.length,d=0;for(l=(r=N(t._f,t._locale).match(E)||[]).length,e=0;e0&&f(t).unusedInput.push(a),u=u.slice(u.indexOf(i)+i.length),d+=i.length),D[o]?(i?f(t).empty=!1:f(t).unusedTokens.push(o),_t(o,i,t)):t._strict&&!i&&f(t).unusedTokens.push(o);f(t).charsLeftOver=c-d,u.length>0&&f(t).unusedInput.push(u),t._a[kt]<=12&&!0===f(t).bigHour&&t._a[kt]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[kt]=function(t,e,n){var i;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[kt],t._meridiem),null!==(s=f(t).era)&&(t._a[bt]=t._locale.erasConvertYear(s,t._a[bt])),Ae(t),ve(t)}else Te(t);else Ce(t)}function qe(t){var e=t._i,o=t._f;return t._locale=t._locale||me(t._l),null===e||void 0===o&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),b(e)?new y(ve(e)):(u(e)?t._d=e:i(o)?function(t){var e,n,i,r,o,a,s=!1,l=t._f.length;if(0===l)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis?this:t:m()}));function Ne(t,e){var n,r;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return De();for(n=e[0],r=1;r=0?new Date(t+400,e,n)-hn:new Date(t,e,n).valueOf()}function mn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-hn:Date.UTC(t,e,n)}function vn(t,e){return e.erasAbbrRegex(t)}function gn(){var t,e,n=[],i=[],r=[],o=[],a=this.eras();for(t=0,e=a.length;t(o=Wt(t,i,r))&&(e=o),bn.call(this,t,e,n,i,r))}function bn(t,e,n,i,r){var o=Ht(t,e,n,i,r),a=zt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}P("N",0,0,"eraAbbr"),P("NN",0,0,"eraAbbr"),P("NNN",0,0,"eraAbbr"),P("NNNN",0,0,"eraName"),P("NNNNN",0,0,"eraNarrow"),P("y",["y",1],"yo","eraYear"),P("y",["yy",2],0,"eraYear"),P("y",["yyy",3],0,"eraYear"),P("y",["yyyy",4],0,"eraYear"),ht("N",vn),ht("NN",vn),ht("NNN",vn),ht("NNNN",(function(t,e){return e.erasNameRegex(t)})),ht("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),vt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?f(n).era=r:f(n).invalidEra=t})),ht("y",st),ht("yy",st),ht("yyy",st),ht("yyyy",st),ht("yo",(function(t,e){return e._eraYearOrdinalRegex||st})),vt(["y","yy","yyy","yyyy"],bt),vt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[bt]=n._locale.eraYearOrdinalParse(t,r):e[bt]=parseInt(t,10)})),P(0,["gg",2],0,(function(){return this.weekYear()%100})),P(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),_n("gggg","weekYear"),_n("ggggg","weekYear"),_n("GGGG","isoWeekYear"),_n("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),ht("G",lt),ht("g",lt),ht("GG",et,Z),ht("gg",et,Z),ht("GGGG",ot,X),ht("gggg",ot,X),ht("GGGGG",at,tt),ht("ggggg",at,tt),gt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=U(t)})),gt(["gg","GG"],(function(t,e,i,r){e[r]=n.parseTwoDigitYear(t)})),P("Q",0,"Qo","quarter"),j("quarter","Q"),z("quarter",7),ht("Q",K),vt("Q",(function(t,e){e[wt]=3*(U(t)-1)})),P("D",["DD",2],"Do","date"),j("date","D"),z("date",9),ht("D",et),ht("DD",et,Z),ht("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),vt(["D","DD"],xt),vt("Do",(function(t,e){e[xt]=U(t.match(et)[0])}));var wn=W("Date",!0);P("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),z("dayOfYear",4),ht("DDD",rt),ht("DDDD",J),vt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=U(t)})),P("m",["mm",2],0,"minute"),j("minute","m"),z("minute",14),ht("m",et),ht("mm",et,Z),vt(["m","mm"],St);var xn=W("Minutes",!1);P("s",["ss",2],0,"second"),j("second","s"),z("second",15),ht("s",et),ht("ss",et,Z),vt(["s","ss"],Ct);var kn,Sn,Cn=W("Seconds",!1);for(P("S",0,0,(function(){return~~(this.millisecond()/100)})),P(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),P(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),P(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),P(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),P(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),P(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),j("millisecond","ms"),z("millisecond",16),ht("S",rt,K),ht("SS",rt,Z),ht("SSS",rt,J),kn="SSSS";kn.length<=9;kn+="S")ht(kn,st);function Mn(t,e){e[Mt]=U(1e3*("0."+t))}for(kn="S";kn.length<=9;kn+="S")vt(kn,Mn);Sn=W("Milliseconds",!1),P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var Tn=y.prototype;function On(t){return t}Tn.add=tn,Tn.calendar=function(t,e){1===arguments.length&&(arguments[0]?rn(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,n=r(t)&&!a(t),i=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;en.valueOf():n.valueOf()9999?R(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Tn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Tn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Tn.toJSON=function(){return this.isValid()?this.toISOString():null},Tn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Tn.unix=function(){return Math.floor(this.valueOf()/1e3)},Tn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Tn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Tn.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Tn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Tn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Tn.isUtc=We,Tn.isUTC=We,Tn.zoneAbbr=function(){return this._isUTC?"UTC":""},Tn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Tn.dates=x("dates accessor is deprecated. Use date instead.",wn),Tn.months=x("months accessor is deprecated. Use month instead",It),Tn.years=x("years accessor is deprecated. Use year instead",Ft),Tn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Tn.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t,e={};return _(e,this),(e=qe(e))._a?(t=e._isUTC?h(e._a):De(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted}));var An=O.prototype;function En(t,e,n,i){var r=me(),o=h().set(i,e);return r[n](o,t)}function qn(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return En(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=En(t,i,n,"month");return r}function Ln(t,e,n,i){"boolean"==typeof t?(l(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,l(e)&&(n=e,e=void 0),e=e||"");var r,o=me(),a=t?o._week.dow:0,s=[];if(null!=n)return En(e,(n+a)%7,i,"day");for(r=0;r<7;r++)s[r]=En(e,(r+a)%7,i,"day");return s}An.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return M(i)?i.call(e,n):i},An.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(E).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},An.invalidDate=function(){return this._invalidDate},An.ordinal=function(t){return this._ordinal.replace("%d",t)},An.preparse=On,An.postformat=On,An.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return M(r)?r(t,e,n,i):r.replace(/%d/i,t)},An.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return M(n)?n(e):n.replace(/%s/i,e)},An.set=function(t){var e,n;for(n in t)o(t,n)&&(M(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},An.eras=function(t,e){var i,r,o,a=this._eras||me("en")._eras;for(i=0,r=a.length;i=0)return l[i]},An.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?n(t.since).year():n(t.since).year()+(e-t.offset)*i},An.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||gn.call(this),t?this._erasAbbrRegex:this._erasRegex},An.erasNameRegex=function(t){return o(this,"_erasNameRegex")||gn.call(this),t?this._erasNameRegex:this._erasRegex},An.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||gn.call(this),t?this._erasNarrowRegex:this._erasRegex},An.months=function(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Lt).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone},An.monthsShort=function(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Lt.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},An.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return Rt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=h([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},An.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||jt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Pt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},An.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||jt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Dt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},An.week=function(t){return Ut(t,this._week.dow,this._week.doy).week},An.firstDayOfYear=function(){return this._week.doy},An.firstDayOfWeek=function(){return this._week.dow},An.weekdays=function(t,e){var n=i(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Yt(n,this._week.dow):t?n[t.day()]:n},An.weekdaysMin=function(t){return!0===t?Yt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},An.weekdaysShort=function(t){return!0===t?Yt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},An.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return te.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},An.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ee.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Zt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},An.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ee.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Jt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},An.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ee.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},An.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},An.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},fe("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(t){var e=t%10;return t+(1===U(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=x("moment.lang is deprecated. Use moment.locale instead.",fe),n.langData=x("moment.langData is deprecated. Use moment.localeData instead.",me);var Dn=Math.abs;function Pn(t,e,n,i){var r=Ge(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Rn(t){return t<0?Math.floor(t):Math.ceil(t)}function Nn(t){return 4800*t/146097}function In(t){return 146097*t/4800}function jn(t){return function(){return this.as(t)}}var $n=jn("ms"),Fn=jn("s"),Bn=jn("m"),zn=jn("h"),Vn=jn("d"),Hn=jn("w"),Un=jn("M"),Wn=jn("Q"),Yn=jn("y");function Qn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Gn=Qn("milliseconds"),Kn=Qn("seconds"),Zn=Qn("minutes"),Jn=Qn("hours"),Xn=Qn("days"),ti=Qn("months"),ei=Qn("years");var ni=Math.round,ii={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ri(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}var oi=Math.abs;function ai(t){return(t>0)-(t<0)||+t}function si(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,o,a,s,l=oi(this._milliseconds)/1e3,u=oi(this._days),c=oi(this._months),d=this.asSeconds();return d?(t=H(l/60),e=H(t/60),l%=60,t%=60,n=H(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=ai(this._months)!==ai(d)?"-":"",a=ai(this._days)!==ai(d)?"-":"",s=ai(this._milliseconds)!==ai(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+i+"S":"")):"P0D"}var li=je.prototype;return li.isValid=function(){return this._isValid},li.abs=function(){var t=this._data;return this._milliseconds=Dn(this._milliseconds),this._days=Dn(this._days),this._months=Dn(this._months),t.milliseconds=Dn(t.milliseconds),t.seconds=Dn(t.seconds),t.minutes=Dn(t.minutes),t.hours=Dn(t.hours),t.months=Dn(t.months),t.years=Dn(t.years),this},li.add=function(t,e){return Pn(this,t,e,1)},li.subtract=function(t,e){return Pn(this,t,e,-1)},li.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=$(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Nn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(In(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},li.asMilliseconds=$n,li.asSeconds=Fn,li.asMinutes=Bn,li.asHours=zn,li.asDays=Vn,li.asWeeks=Hn,li.asMonths=Un,li.asQuarters=Wn,li.asYears=Yn,li.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*U(this._months/12):NaN},li._bubble=function(){var t,e,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Rn(In(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=H(o/1e3),l.seconds=t%60,e=H(t/60),l.minutes=e%60,n=H(e/60),l.hours=n%24,a+=H(n/24),s+=r=H(Nn(a)),a-=Rn(In(r)),i=H(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},li.clone=function(){return Ge(this)},li.get=function(t){return t=$(t),this.isValid()?this[t+"s"]():NaN},li.milliseconds=Gn,li.seconds=Kn,li.minutes=Zn,li.hours=Jn,li.days=Xn,li.weeks=function(){return H(this.days()/7)},li.months=ti,li.years=ei,li.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=ii;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},ii,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),i=function(t,e,n,i){var r=Ge(t).abs(),o=ni(r.as("s")),a=ni(r.as("m")),s=ni(r.as("h")),l=ni(r.as("d")),u=ni(r.as("M")),c=ni(r.as("w")),d=ni(r.as("y")),h=o<=n.ss&&["s",o]||o0,h[4]=i,ri.apply(null,h)}(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},li.toISOString=si,li.toString=si,li.toJSON=si,li.locale=an,li.localeData=ln,li.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",si),li.lang=sn,P("X",0,0,"unix"),P("x",0,0,"valueOf"),ht("x",lt),ht("X",/[+-]?\d+(\.\d{1,3})?/),vt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),vt("x",(function(t,e,n){n._d=new Date(U(t))})), +function decode(t){let e=t.toLowerCase(),n=e.lastIndexOf("1"),i=e.substring(0,n),r=e.substring(n+1,e.length-6),o=e.substring(e.length-6,e.length);if(!verify_checksum(i,bech32ToFiveBitArray(r+o)))throw"Malformed request: checksum is incorrect";return{human_readable_part:decodeHumanReadablePart(i),data:decodeData(r,i),checksum:o}}function decodeHumanReadablePart(t){let e;if(["lnbc","lntb","lnbcrt","lnsb","lntbs"].forEach((n=>{t.substring(0,n.length)===n&&(e=n)})),null==e)throw"Malformed request: unknown prefix";let n=decodeAmount(t.substring(e.length,t.length));return{prefix:e,amount:n}}function decodeData(t,e){let n=t.substring(0,7),i=bech32ToInt(n),r=t.substring(t.length-104,t.length),o=t.substring(7,t.length-104),a=decodeTags(o),s=bech32ToFiveBitArray(n+o);return s=fiveBitArrayTo8BitArray(s,!0),s=textToHexString(e).concat(byteArrayToHexString(s)),{time_stamp:i,tags:a,signature:decodeSignature(r),signing_data:s}}function decodeSignature(t){let e=fiveBitArrayTo8BitArray(bech32ToFiveBitArray(t)),n=e[e.length-1];return{r:byteArrayToHexString(e.slice(0,32)),s:byteArrayToHexString(e.slice(32,e.length-1)),recovery_flag:n}}function decodeAmount(t){let e=t.charAt(t.length-1),n=t.substring(0,t.length-1);if("0"===n.substring(0,1))throw"Malformed request: amount cannot contain leading zeros";if(n=Number(n),n<0||!Number.isInteger(n))throw"Malformed request: amount must be a positive decimal integer";switch(e){case"":return"Any amount";case"p":return n/10;case"n":return 100*n;case"u":return 1e5*n;case"m":return 1e8*n;default:throw"Malformed request: undefined amount multiplier"}}function decodeTags(t){let e=extractTags(t),n=[];return e.forEach((t=>n.push(decodeTag(t.type,t.length,t.data)))),n}function extractTags(t){let e=[];for(;t.length>0;){let n=t.charAt(0),i=bech32ToInt(t.substring(1,3)),r=t.substring(3,i+3);e.push({type:n,length:i,data:r}),t=t.substring(3+i,t.length)}return e}function decodeTag(t,e,n){switch(t){case"p":if(52!==e)break;return{type:t,length:e,description:"payment_hash",value:byteArrayToHexString(fiveBitArrayTo8BitArray(bech32ToFiveBitArray(n)))};case"d":return{type:t,length:e,description:"description",value:bech32ToUTF8String(n)};case"n":if(53!==e)break;return{type:t,length:e,description:"payee_public_key",value:byteArrayToHexString(fiveBitArrayTo8BitArray(bech32ToFiveBitArray(n)))};case"h":if(52!==e)break;return{type:t,length:e,description:"description_hash",value:n};case"x":return{type:t,length:e,description:"expiry",value:bech32ToInt(n)};case"c":return{type:t,length:e,description:"min_final_cltv_expiry",value:bech32ToInt(n)};case"f":let i=bech32ToFiveBitArray(n.charAt(0))[0];if(i<0||i>18)break;return{type:t,length:e,description:"fallback_address",value:{version:i,fallback_address:n=n.substring(1,n.length)}};case"r":let r=(n=fiveBitArrayTo8BitArray(bech32ToFiveBitArray(n))).slice(0,33),o=n.slice(33,41),a=n.slice(41,45),s=n.slice(45,49),l=n.slice(49,51);return{type:t,length:e,description:"routing_information",value:{public_key:byteArrayToHexString(r),short_channel_id:byteArrayToHexString(o),fee_base_msat:byteArrayToInt(a),fee_proportional_millionths:byteArrayToInt(s),cltv_expiry_delta:byteArrayToInt(l)}}}}function polymod(t){let e=[996825010,642813549,513874426,1027748829,705979059],n=1;return t.forEach((t=>{let i=n>>25;n=(33554431&n)<<5^t;for(let t=0;t<5;t++)n^=1==(i>>t&1)?e[t]:0})),n}function expand(t){let e=[];for(let n=0;n>5);e.push(0);for(let n=0;n>>0;for(e=0;e0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var E=/(\[[^\[]*\])|(\\)?([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,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},D={};function P(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(D[t]=r),e&&(D[e[0]]=function(){return A(r.apply(this,arguments),e[1],e[2])}),n&&(D[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function R(t,e){return t.isValid()?(e=N(e,t.localeData()),L[e]=L[e]||function(t){var e,n,i,r=t.match(E);for(e=0,n=r.length;e=0&&q.test(t);)t=t.replace(q,i),q.lastIndex=0,n-=1;return t}var I={};function j(t,e){var n=t.toLowerCase();I[n]=I[n+"s"]=I[e]=t}function $(t){return"string"==typeof t?I[t]||I[t.toLowerCase()]:void 0}function F(t){var e,n,i={};for(n in t)o(t,n)&&(e=$(n))&&(i[e]=t[n]);return i}var B={};function z(t,e){B[t]=e}function V(t){return t%4==0&&t%100!=0||t%400==0}function H(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function U(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=H(e)),n}function W(t,e){return function(i){return null!=i?(Q(this,t,i),n.updateOffset(this,e),this):Y(this,t)}}function Y(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Q(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&V(t.year())&&1===t.month()&&29===t.date()?(n=U(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),At(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var G,K=/\d/,Z=/\d\d/,J=/\d{3}/,X=/\d{4}/,tt=/[+-]?\d{6}/,et=/\d\d?/,nt=/\d\d\d\d?/,it=/\d\d\d\d\d\d?/,rt=/\d{1,3}/,ot=/\d{1,4}/,at=/[+-]?\d{1,6}/,st=/\d+/,lt=/[+-]?\d+/,ut=/Z|[+-]\d\d:?\d\d/gi,ct=/Z|[+-]\d\d(?::?\d\d)?/gi,dt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ht(t,e,n){G[t]=M(e)?e:function(t,i){return t&&n?n:e}}function ft(t,e){return o(G,t)?G[t](e._strict,e._locale):new RegExp(pt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}function pt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}G={};var mt={};function vt(t,e){var n,i,r=e;for("string"==typeof t&&(t=[t]),l(e)&&(r=function(t,n){n[e]=U(t)}),i=t.length,n=0;n68?1900:2e3)};var Ft=W("FullYear",!0);function Bt(t,e,n,i,r,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,r,o,a),s}function zt(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Vt(t,e,n){var i=7+e-n;return-((7+zt(t,0,i).getUTCDay()-e)%7)+i-1}function Ht(t,e,n,i,r){var o,a,s=1+7*(e-1)+(7+n-i)%7+Vt(t,i,r);return s<=0?a=$t(o=t-1)+s:s>$t(t)?(o=t+1,a=s-$t(t)):(o=t,a=s),{year:o,dayOfYear:a}}function Ut(t,e,n){var i,r,o=Vt(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?i=a+Wt(r=t.year()-1,e,n):a>Wt(t.year(),e,n)?(i=a-Wt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function Wt(t,e,n){var i=Vt(t,e,n),r=Vt(t+1,e,n);return($t(t)-i+r)/7}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),z("week",5),z("isoWeek",5),ht("w",et),ht("ww",et,Z),ht("W",et),ht("WW",et,Z),gt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=U(t)}));function Yt(t,e){return t.slice(e,7).concat(t.slice(0,e))}P("d",0,"do","day"),P("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),P("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),P("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),ht("d",et),ht("e",et),ht("E",et),ht("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ht("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ht("dddd",(function(t,e){return e.weekdaysRegex(t)})),gt(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t})),gt(["d","e","E"],(function(t,e,n,i){e[i]=U(t)}));var Qt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Kt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Zt=dt,Jt=dt,Xt=dt;function te(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=yt.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=yt.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=yt.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=yt.call(this._weekdaysParse,a))||-1!==(r=yt.call(this._shortWeekdaysParse,a))||-1!==(r=yt.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=yt.call(this._shortWeekdaysParse,a))||-1!==(r=yt.call(this._weekdaysParse,a))||-1!==(r=yt.call(this._minWeekdaysParse,a))?r:null:-1!==(r=yt.call(this._minWeekdaysParse,a))||-1!==(r=yt.call(this._weekdaysParse,a))||-1!==(r=yt.call(this._shortWeekdaysParse,a))?r:null}function ee(){function t(t,e){return e.length-t.length}var e,n,i,r,o,a=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),i=pt(this.weekdaysMin(n,"")),r=pt(this.weekdaysShort(n,"")),o=pt(this.weekdays(n,"")),a.push(i),s.push(r),l.push(o),u.push(i),u.push(r),u.push(o);a.sort(t),s.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ne(){return this.hours()%12||12}function ie(t,e){P(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function re(t,e){return e._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,ne),P("k",["kk",2],0,(function(){return this.hours()||24})),P("hmm",0,0,(function(){return""+ne.apply(this)+A(this.minutes(),2)})),P("hmmss",0,0,(function(){return""+ne.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),P("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),P("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),ie("a",!0),ie("A",!1),j("hour","h"),z("hour",13),ht("a",re),ht("A",re),ht("H",et),ht("h",et),ht("k",et),ht("HH",et,Z),ht("hh",et,Z),ht("kk",et,Z),ht("hmm",nt),ht("hmmss",it),ht("Hmm",nt),ht("Hmmss",it),vt(["H","HH"],kt),vt(["k","kk"],(function(t,e,n){var i=U(t);e[kt]=24===i?0:i})),vt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),vt(["h","hh"],(function(t,e,n){e[kt]=U(t),f(n).bigHour=!0})),vt("hmm",(function(t,e,n){var i=t.length-2;e[kt]=U(t.substr(0,i)),e[St]=U(t.substr(i)),f(n).bigHour=!0})),vt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[kt]=U(t.substr(0,i)),e[St]=U(t.substr(i,2)),e[Ct]=U(t.substr(r)),f(n).bigHour=!0})),vt("Hmm",(function(t,e,n){var i=t.length-2;e[kt]=U(t.substr(0,i)),e[St]=U(t.substr(i))})),vt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[kt]=U(t.substr(0,i)),e[St]=U(t.substr(i,2)),e[Ct]=U(t.substr(r))}));var oe=W("Hours",!0);var ae,se={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Et,monthsShort:qt,week:{dow:0,doy:6},weekdays:Qt,weekdaysMin:Kt,weekdaysShort:Gt,meridiemParse:/[ap]\.?m?\.?/i},le={},ue={};function ce(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n0;){if(i=he(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&ce(r,n)>=e-1)break;e--}o++}return ae}(t)}function ve(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[wt]<0||n[wt]>11?wt:n[xt]<1||n[xt]>At(n[bt],n[wt])?xt:n[kt]<0||n[kt]>24||24===n[kt]&&(0!==n[St]||0!==n[Ct]||0!==n[Mt])?kt:n[St]<0||n[St]>59?St:n[Ct]<0||n[Ct]>59?Ct:n[Mt]<0||n[Mt]>999?Mt:-1,f(t)._overflowDayOfYear&&(ext)&&(e=xt),f(t)._overflowWeeks&&-1===e&&(e=Tt),f(t)._overflowWeekday&&-1===e&&(e=Ot),f(t).overflow=e),t}var ge=/^\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)?)?$/,_e=/^\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)?)?$/,ye=/Z|[+-]\d\d(?::?\d\d)?/,be=[["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]],we=[["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/]],xe=/^\/?Date\((-?\d+)/i,ke=/^(?:(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}))$/,Se={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ce(t){var e,n,i,r,o,a,s=t._i,l=ge.exec(s)||_e.exec(s),u=be.length,c=we.length;if(l){for(f(t).iso=!0,e=0,n=u;e7)&&(l=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,u=Ut(De(),o,a),n=Oe(e.gg,t._a[bt],u.year),i=Oe(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o);i<1||i>Wt(n,o,a)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(s=Ht(n,i,r,o,a),t._a[bt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=Oe(t._a[bt],r[bt]),(t._dayOfYear>$t(a)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=zt(a,0,t._dayOfYear),t._a[wt]=i.getUTCMonth(),t._a[xt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[kt]&&0===t._a[St]&&0===t._a[Ct]&&0===t._a[Mt]&&(t._nextDay=!0,t._a[kt]=0),t._d=(t._useUTC?zt:Bt).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[kt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}function Ee(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[],f(t).empty=!0;var e,i,r,o,a,s,l,u=""+t._i,c=u.length,d=0;for(l=(r=N(t._f,t._locale).match(E)||[]).length,e=0;e0&&f(t).unusedInput.push(a),u=u.slice(u.indexOf(i)+i.length),d+=i.length),D[o]?(i?f(t).empty=!1:f(t).unusedTokens.push(o),_t(o,i,t)):t._strict&&!i&&f(t).unusedTokens.push(o);f(t).charsLeftOver=c-d,u.length>0&&f(t).unusedInput.push(u),t._a[kt]<=12&&!0===f(t).bigHour&&t._a[kt]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[kt]=function(t,e,n){var i;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[kt],t._meridiem),null!==(s=f(t).era)&&(t._a[bt]=t._locale.erasConvertYear(s,t._a[bt])),Ae(t),ve(t)}else Te(t);else Ce(t)}function qe(t){var e=t._i,o=t._f;return t._locale=t._locale||me(t._l),null===e||void 0===o&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),b(e)?new y(ve(e)):(u(e)?t._d=e:i(o)?function(t){var e,n,i,r,o,a,s=!1,l=t._f.length;if(0===l)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis?this:t:m()}));function Ne(t,e){var n,r;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return De();for(n=e[0],r=1;r=0?new Date(t+400,e,n)-hn:new Date(t,e,n).valueOf()}function mn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-hn:Date.UTC(t,e,n)}function vn(t,e){return e.erasAbbrRegex(t)}function gn(){var t,e,n=[],i=[],r=[],o=[],a=this.eras();for(t=0,e=a.length;t(o=Wt(t,i,r))&&(e=o),bn.call(this,t,e,n,i,r))}function bn(t,e,n,i,r){var o=Ht(t,e,n,i,r),a=zt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}P("N",0,0,"eraAbbr"),P("NN",0,0,"eraAbbr"),P("NNN",0,0,"eraAbbr"),P("NNNN",0,0,"eraName"),P("NNNNN",0,0,"eraNarrow"),P("y",["y",1],"yo","eraYear"),P("y",["yy",2],0,"eraYear"),P("y",["yyy",3],0,"eraYear"),P("y",["yyyy",4],0,"eraYear"),ht("N",vn),ht("NN",vn),ht("NNN",vn),ht("NNNN",(function(t,e){return e.erasNameRegex(t)})),ht("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),vt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?f(n).era=r:f(n).invalidEra=t})),ht("y",st),ht("yy",st),ht("yyy",st),ht("yyyy",st),ht("yo",(function(t,e){return e._eraYearOrdinalRegex||st})),vt(["y","yy","yyy","yyyy"],bt),vt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[bt]=n._locale.eraYearOrdinalParse(t,r):e[bt]=parseInt(t,10)})),P(0,["gg",2],0,(function(){return this.weekYear()%100})),P(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),_n("gggg","weekYear"),_n("ggggg","weekYear"),_n("GGGG","isoWeekYear"),_n("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),ht("G",lt),ht("g",lt),ht("GG",et,Z),ht("gg",et,Z),ht("GGGG",ot,X),ht("gggg",ot,X),ht("GGGGG",at,tt),ht("ggggg",at,tt),gt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=U(t)})),gt(["gg","GG"],(function(t,e,i,r){e[r]=n.parseTwoDigitYear(t)})),P("Q",0,"Qo","quarter"),j("quarter","Q"),z("quarter",7),ht("Q",K),vt("Q",(function(t,e){e[wt]=3*(U(t)-1)})),P("D",["DD",2],"Do","date"),j("date","D"),z("date",9),ht("D",et),ht("DD",et,Z),ht("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),vt(["D","DD"],xt),vt("Do",(function(t,e){e[xt]=U(t.match(et)[0])}));var wn=W("Date",!0);P("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),z("dayOfYear",4),ht("DDD",rt),ht("DDDD",J),vt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=U(t)})),P("m",["mm",2],0,"minute"),j("minute","m"),z("minute",14),ht("m",et),ht("mm",et,Z),vt(["m","mm"],St);var xn=W("Minutes",!1);P("s",["ss",2],0,"second"),j("second","s"),z("second",15),ht("s",et),ht("ss",et,Z),vt(["s","ss"],Ct);var kn,Sn,Cn=W("Seconds",!1);for(P("S",0,0,(function(){return~~(this.millisecond()/100)})),P(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),P(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),P(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),P(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),P(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),P(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),j("millisecond","ms"),z("millisecond",16),ht("S",rt,K),ht("SS",rt,Z),ht("SSS",rt,J),kn="SSSS";kn.length<=9;kn+="S")ht(kn,st);function Mn(t,e){e[Mt]=U(1e3*("0."+t))}for(kn="S";kn.length<=9;kn+="S")vt(kn,Mn);Sn=W("Milliseconds",!1),P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var Tn=y.prototype;function On(t){return t}Tn.add=tn,Tn.calendar=function(t,e){1===arguments.length&&(arguments[0]?rn(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,n=r(t)&&!a(t),i=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;en.valueOf():n.valueOf()9999?R(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Tn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Tn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Tn.toJSON=function(){return this.isValid()?this.toISOString():null},Tn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Tn.unix=function(){return Math.floor(this.valueOf()/1e3)},Tn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Tn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Tn.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Tn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Tn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Tn.isUtc=We,Tn.isUTC=We,Tn.zoneAbbr=function(){return this._isUTC?"UTC":""},Tn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Tn.dates=x("dates accessor is deprecated. Use date instead.",wn),Tn.months=x("months accessor is deprecated. Use month instead",It),Tn.years=x("years accessor is deprecated. Use year instead",Ft),Tn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Tn.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t,e={};return _(e,this),(e=qe(e))._a?(t=e._isUTC?h(e._a):De(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted}));var An=O.prototype;function En(t,e,n,i){var r=me(),o=h().set(i,e);return r[n](o,t)}function qn(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return En(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=En(t,i,n,"month");return r}function Ln(t,e,n,i){"boolean"==typeof t?(l(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,l(e)&&(n=e,e=void 0),e=e||"");var r,o=me(),a=t?o._week.dow:0,s=[];if(null!=n)return En(e,(n+a)%7,i,"day");for(r=0;r<7;r++)s[r]=En(e,(r+a)%7,i,"day");return s}An.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return M(i)?i.call(e,n):i},An.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(E).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},An.invalidDate=function(){return this._invalidDate},An.ordinal=function(t){return this._ordinal.replace("%d",t)},An.preparse=On,An.postformat=On,An.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return M(r)?r(t,e,n,i):r.replace(/%d/i,t)},An.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return M(n)?n(e):n.replace(/%s/i,e)},An.set=function(t){var e,n;for(n in t)o(t,n)&&(M(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},An.eras=function(t,e){var i,r,o,a=this._eras||me("en")._eras;for(i=0,r=a.length;i=0)return l[i]},An.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?n(t.since).year():n(t.since).year()+(e-t.offset)*i},An.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||gn.call(this),t?this._erasAbbrRegex:this._erasRegex},An.erasNameRegex=function(t){return o(this,"_erasNameRegex")||gn.call(this),t?this._erasNameRegex:this._erasRegex},An.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||gn.call(this),t?this._erasNarrowRegex:this._erasRegex},An.months=function(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Lt).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone},An.monthsShort=function(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Lt.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},An.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return Rt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=h([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},An.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||jt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Pt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},An.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||jt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Dt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},An.week=function(t){return Ut(t,this._week.dow,this._week.doy).week},An.firstDayOfYear=function(){return this._week.doy},An.firstDayOfWeek=function(){return this._week.dow},An.weekdays=function(t,e){var n=i(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Yt(n,this._week.dow):t?n[t.day()]:n},An.weekdaysMin=function(t){return!0===t?Yt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},An.weekdaysShort=function(t){return!0===t?Yt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},An.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return te.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},An.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ee.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Zt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},An.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ee.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Jt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},An.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ee.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},An.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},An.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},fe("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(t){var e=t%10;return t+(1===U(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=x("moment.lang is deprecated. Use moment.locale instead.",fe),n.langData=x("moment.langData is deprecated. Use moment.localeData instead.",me);var Dn=Math.abs;function Pn(t,e,n,i){var r=Ge(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Rn(t){return t<0?Math.floor(t):Math.ceil(t)}function Nn(t){return 4800*t/146097}function In(t){return 146097*t/4800}function jn(t){return function(){return this.as(t)}}var $n=jn("ms"),Fn=jn("s"),Bn=jn("m"),zn=jn("h"),Vn=jn("d"),Hn=jn("w"),Un=jn("M"),Wn=jn("Q"),Yn=jn("y");function Qn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Gn=Qn("milliseconds"),Kn=Qn("seconds"),Zn=Qn("minutes"),Jn=Qn("hours"),Xn=Qn("days"),ti=Qn("months"),ei=Qn("years");var ni=Math.round,ii={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ri(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}var oi=Math.abs;function ai(t){return(t>0)-(t<0)||+t}function si(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,o,a,s,l=oi(this._milliseconds)/1e3,u=oi(this._days),c=oi(this._months),d=this.asSeconds();return d?(t=H(l/60),e=H(t/60),l%=60,t%=60,n=H(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=ai(this._months)!==ai(d)?"-":"",a=ai(this._days)!==ai(d)?"-":"",s=ai(this._milliseconds)!==ai(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+i+"S":"")):"P0D"}var li=je.prototype;return li.isValid=function(){return this._isValid},li.abs=function(){var t=this._data;return this._milliseconds=Dn(this._milliseconds),this._days=Dn(this._days),this._months=Dn(this._months),t.milliseconds=Dn(t.milliseconds),t.seconds=Dn(t.seconds),t.minutes=Dn(t.minutes),t.hours=Dn(t.hours),t.months=Dn(t.months),t.years=Dn(t.years),this},li.add=function(t,e){return Pn(this,t,e,1)},li.subtract=function(t,e){return Pn(this,t,e,-1)},li.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=$(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Nn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(In(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},li.asMilliseconds=$n,li.asSeconds=Fn,li.asMinutes=Bn,li.asHours=zn,li.asDays=Vn,li.asWeeks=Hn,li.asMonths=Un,li.asQuarters=Wn,li.asYears=Yn,li.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*U(this._months/12):NaN},li._bubble=function(){var t,e,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Rn(In(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=H(o/1e3),l.seconds=t%60,e=H(t/60),l.minutes=e%60,n=H(e/60),l.hours=n%24,a+=H(n/24),s+=r=H(Nn(a)),a-=Rn(In(r)),i=H(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},li.clone=function(){return Ge(this)},li.get=function(t){return t=$(t),this.isValid()?this[t+"s"]():NaN},li.milliseconds=Gn,li.seconds=Kn,li.minutes=Zn,li.hours=Jn,li.days=Xn,li.weeks=function(){return H(this.days()/7)},li.months=ti,li.years=ei,li.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=ii;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},ii,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),i=function(t,e,n,i){var r=Ge(t).abs(),o=ni(r.as("s")),a=ni(r.as("m")),s=ni(r.as("h")),l=ni(r.as("d")),u=ni(r.as("M")),c=ni(r.as("w")),d=ni(r.as("y")),h=o<=n.ss&&["s",o]||o0,h[4]=i,ri.apply(null,h)}(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},li.toISOString=si,li.toString=si,li.toJSON=si,li.locale=an,li.localeData=ln,li.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",si),li.lang=sn,P("X",0,0,"unix"),P("x",0,0,"valueOf"),ht("x",lt),ht("X",/[+-]?\d+(\.\d{1,3})?/),vt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),vt("x",(function(t,e,n){n._d=new Date(U(t))})), //! moment.js n.version="2.29.4",t=De,n.fn=Tn,n.min=function(){return Ne("isBefore",[].slice.call(arguments,0))},n.max=function(){return Ne("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=h,n.unix=function(t){return De(1e3*t)},n.months=function(t,e){return qn(t,e,"months")},n.isDate=u,n.locale=fe,n.invalid=m,n.duration=Ge,n.isMoment=b,n.weekdays=function(t,e,n){return Ln(t,e,n,"weekdays")},n.parseZone=function(){return De.apply(null,arguments).parseZone()},n.localeData=me,n.isDuration=$e,n.monthsShort=function(t,e){return qn(t,e,"monthsShort")},n.weekdaysMin=function(t,e,n){return Ln(t,e,n,"weekdaysMin")},n.defineLocale=pe,n.updateLocale=function(t,e){if(null!=e){var n,i,r=se;null!=le[t]&&null!=le[t].parentLocale?le[t].set(T(le[t]._config,e)):(null!=(i=he(t))&&(r=i._config),e=T(r,e),null==i&&(e.abbr=t),(n=new O(e)).parentLocale=le[t],le[t]=n),fe(t)}else null!=le[t]&&(null!=le[t].parentLocale?(le[t]=le[t].parentLocale,t===fe()&&fe(t)):null!=le[t]&&delete le[t]);return le[t]},n.locales=function(){return k(le)},n.weekdaysShort=function(t,e,n){return Ln(t,e,n,"weekdaysShort")},n.normalizeUnits=$,n.relativeTimeRounding=function(t){return void 0===t?ni:"function"==typeof t&&(ni=t,!0)},n.relativeTimeThreshold=function(t,e){return void 0!==ii[t]&&(void 0===e?ii[t]:(ii[t]=e,"s"===t&&(ii.ss=e-1),!0))},n.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},n.prototype=Tn,n.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"},n})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("underscore",e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t._,i=t._=e();i.noConflict=function(){return t._=n,i}}())}(this,(function(){var t="1.13.6",e="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},n=Array.prototype,i=Object.prototype,r="undefined"!=typeof Symbol?Symbol.prototype:null,o=n.push,a=n.slice,s=i.toString,l=i.hasOwnProperty,u="undefined"!=typeof ArrayBuffer,c="undefined"!=typeof DataView,d=Array.isArray,h=Object.keys,f=Object.create,p=u&&ArrayBuffer.isView,m=isNaN,v=isFinite,g=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],y=Math.pow(2,53)-1;function b(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),i=Array(n),r=0;r=0&&n<=y}}function Y(t){return function(e){return null==e?void 0:e[t]}}var Q=Y("byteLength"),G=W(Q),K=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var Z=u?function(t){return p?p(t)&&!$(t):G(t)&&K.test(s.call(t))}:U(!1),J=Y("length");function X(t,e){e=function(t){for(var e={},n=t.length,i=0;i":">",'"':""","'":"'","`":"`"},Vt=Bt(zt),Ht=Bt(bt(zt)),Ut=nt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Wt=/(.)^/,Yt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Qt=/\\|'|\r|\n|\u2028|\u2029/g;function Gt(t){return"\\"+Yt[t]}var Kt=/^\s*(\w|\$)+\s*$/;var Zt=0;function Jt(t,e,n,i,r){if(!(i instanceof e))return t.apply(n,r);var o=Mt(t.prototype),a=t.apply(o,r);return w(a)?a:o}var Xt=b((function(t,e){var n=Xt.placeholder,i=function(){for(var r=0,o=e.length,a=Array(o),s=0;s1)ne(s,e-1,n,i),r=i.length;else for(var l=0,u=s.length;l0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}var le=Xt(se,2);function ue(t,e,n){e=It(e,n);for(var i,r=tt(t),o=0,a=r.length;o0?0:r-1;o>=0&&o0?s=o>=0?o:Math.max(o+l,s):l=o>=0?Math.min(o+1,l):o+l+1;else if(n&&o&&l)return i[o=n(i,r)]===r?o:-1;if(r!=r)return(o=e(a.call(i,s,l),H))>=0?o+s:-1;for(o=t>0?s:l-1;o>=0&&o=3;return function(e,n,i,r){var o=!ee(e)&&tt(e),a=(o||e).length,s=t>0?0:a-1;for(r||(i=e[o?o[s]:s],s+=t);s>=0&&s=0}var Te=b((function(t,e,n){var i,r;return P(e)?r=e:(e=Ot(e),i=e.slice(0,-1),e=e[e.length-1]),ye(t,(function(t){var o=r;if(!o){if(i&&i.length&&(t=At(t,i)),null==t)return;o=t[e]}return null==o?o:o.apply(t,n)}))}));function Oe(t,e){return ye(t,Dt(e))}function Ae(t,e,n){var i,r,o=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,l=(t=ee(t)?t:yt(t)).length;so&&(o=i);else e=It(e,n),_e(t,(function(t,n,i){((r=e(t,n,i))>a||r===-1/0&&o===-1/0)&&(o=t,a=r)}));return o}var Ee=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function qe(t){return t?F(t)?a.call(t):C(t)?t.match(Ee):ee(t)?ye(t,qt):yt(t):[]}function Le(t,e,n){if(null==e||n)return ee(t)||(t=yt(t)),t[$t(t.length-1)];var i=qe(t),r=J(i);e=Math.max(Math.min(e,r),0);for(var o=r-1,a=0;a1&&(i=Pt(i,e[1])),e=st(t)):(i=je,e=ne(e,!1,!1),t=Object(t));for(var r=0,o=e.length;r1&&(n=e[1])):(e=ye(ne(e,!1,!1),String),i=function(t,n){return!Me(e,n)}),$e(t,i,n)}));function Be(t,e,n){return a.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function ze(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[0]:Be(t,t.length-e)}function Ve(t,e,n){return a.call(t,null==e||n?1:e)}var He=b((function(t,e){return e=ne(e,!0,!0),ke(t,(function(t){return!Me(e,t)}))})),Ue=b((function(t,e){return He(t,e)}));function We(t,e,n,i){k(e)||(i=n,n=e,e=!1),null!=n&&(n=It(n,i));for(var r=[],o=[],a=0,s=J(t);ae?(i&&(clearTimeout(i),i=null),s=u,a=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(i),s=0,i=r=o=null},u},debounce:function(t,e,n){var i,r,o,a,s,l=function(){var u=Ft()-r;e>u?i=setTimeout(l,e-u):(i=null,n||(a=t.apply(s,o)),i||(o=s=null))},u=b((function(u){return s=this,o=u,r=Ft(),i||(i=setTimeout(l,e),n&&(a=t.apply(s,o))),a}));return u.cancel=function(){clearTimeout(i),i=o=s=null},u},wrap:function(t,e){return Xt(e,t)},negate:ae,compose:function(){var t=arguments,e=t.length-1;return function(){for(var n=e,i=t[e].apply(this,arguments);n--;)i=t[n].call(this,i);return i}},after:function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},before:se,once:le,findKey:ue,findIndex:de,findLastIndex:he,sortedIndex:fe,indexOf:me,lastIndexOf:ve,find:ge,detect:ge,findWhere:function(t,e){return ge(t,Lt(e))},each:_e,forEach:_e,map:ye,collect:ye,reduce:we,foldl:we,inject:we,reduceRight:xe,foldr:xe,filter:ke,select:ke,reject:function(t,e,n){return ke(t,ae(It(e)),n)},every:Se,all:Se,some:Ce,any:Ce,contains:Me,includes:Me,include:Me,invoke:Te,pluck:Oe,where:function(t,e){return ke(t,Lt(e))},max:Ae,min:function(t,e,n){var i,r,o=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,l=(t=ee(t)?t:yt(t)).length;si||void 0===n)return 1;if(nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,a=void 0!==o&&o;if(null!=e)if("object"!==t(e)&&(e=[e]),f(e))for(i=0,r=e.length;i0;)if(e===(n=i[r]).toLowerCase())return n;return null}var O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,A=function(t){return!p(t)&&t!==O};var E,q=(E="undefined"!=typeof Uint8Array&&u(Uint8Array),function(t){return E&&t instanceof E}),L=d("HTMLFormElement"),D=function(t){var e=Object.prototype.hasOwnProperty;return function(t,n){return e.call(t,n)}}(),P=d("RegExp"),R=function(t,e){var n=Object.getOwnPropertyDescriptors(t),i={};M(n,(function(n,r){!1!==e(n,r,t)&&(i[r]=n)})),Object.defineProperties(t,i)},N="abcdefghijklmnopqrstuvwxyz",I="0123456789",j={DIGIT:I,ALPHA:N,ALPHA_DIGIT:N+N.toUpperCase()+I};var $={isArray:f,isArrayBuffer:m,isBuffer:function(t){return null!==t&&!p(t)&&null!==t.constructor&&!p(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||l.call(t)===e||g(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&m(t.buffer)},isString:v,isNumber:_,isBoolean:function(t){return!0===t||!1===t},isObject:y,isPlainObject:b,isUndefined:p,isDate:w,isFile:x,isBlob:k,isRegExp:P,isFunction:g,isStream:function(t){return y(t)&&g(t.pipe)},isURLSearchParams:C,isTypedArray:q,isFileList:S,forEach:M,merge:function t(){for(var e=(A(this)&&this||{}).caseless,n={},i=function(i,r){var o=e&&T(n,r)||r;b(n[o])&&b(i)?n[o]=t(n[o],i):b(i)?n[o]=t({},i):f(i)?n[o]=i.slice():n[o]=i},r=0,o=arguments.length;r3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),t},trim:function(t){return t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,n,i){t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:function(t,e,n,i){var r,o,a,s={};if(e=e||{},null==t)return e;do{for(o=(r=Object.getOwnPropertyNames(t)).length;o-- >0;)a=r[o],i&&!i(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&u(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:c,kindOfTest:d,endsWith:function(t,e,n){t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;var i=t.indexOf(e,n);return-1!==i&&i===n},toArray:function(t){if(!t)return null;if(f(t))return t;var e=t.length;if(!_(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n},forEachEntry:function(t,e){for(var n,i=(t&&t[Symbol.iterator]).call(t);(n=i.next())&&!n.done;){var r=n.value;e.call(t,r[0],r[1])}},matchAll:function(t,e){for(var n,i=[];null!==(n=t.exec(e));)i.push(n);return i},isHTMLForm:L,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:R,freezeMethods:function(t){R(t,(function(e,n){if(g(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var i=t[n];g(i)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(t,e){var n={},i=function(t){t.forEach((function(t){n[t]=!0}))};return f(t)?i(t):i(String(t).split(e)),n},toCamelCase:function(t){return t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(t,e){return t=+t,Number.isFinite(t)?t:e},findKey:T,global:O,isContextDefined:A,ALPHABET:j,generateString:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.ALPHA_DIGIT,n="",i=e.length;t--;)n+=e[Math.random()*i|0];return n},isSpecCompliantForm:function(t){return!!(t&&g(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:function(t){var e=new Array(10);return function t(n,i){if(y(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;var r=f(n)?[]:{};return M(n,(function(e,n){var o=t(e,i+1);!p(o)&&(r[n]=o)})),e[i]=void 0,r}}return n}(t,0)}};function F(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}$.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var B=F.prototype,z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(t){z[t]={value:t}})),Object.defineProperties(F,z),Object.defineProperty(B,"isAxiosError",{value:!0}),F.from=function(t,e,n,i,r,o){var a=Object.create(B);return $.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(function(t){return"isAxiosError"!==t})),F.call(a,t.message,e,n,i,r),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};function V(t){return $.isPlainObject(t)||$.isArray(t)}function H(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function U(t,e,n){return t?t.concat(e).map((function(t,e){return t=H(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}var W=$.toFlatObject($,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Y(e,n,i){if(!$.isObject(e))throw new TypeError("target must be an object");n=n||new FormData;var r=(i=$.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!$.isUndefined(e[t])}))).metaTokens,o=i.visitor||c,a=i.dots,s=i.indexes,l=(i.Blob||"undefined"!=typeof Blob&&Blob)&&$.isSpecCompliantForm(n);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if($.isDate(t))return t.toISOString();if(!l&&$.isBlob(t))throw new F("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(t)||$.isTypedArray(t)?l&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(e,i,o){var l=e;if(e&&!o&&"object"===t(e))if($.endsWith(i,"{}"))i=r?i:i.slice(0,-2),e=JSON.stringify(e);else if($.isArray(e)&&function(t){return $.isArray(t)&&!t.some(V)}(e)||($.isFileList(e)||$.endsWith(i,"[]"))&&(l=$.toArray(e)))return i=H(i),l.forEach((function(t,e){!$.isUndefined(t)&&null!==t&&n.append(!0===s?U([i],e,a):null===s?i:i+"[]",u(t))})),!1;return!!V(e)||(n.append(U(o,i,a),u(e)),!1)}var d=[],h=Object.assign(W,{defaultVisitor:c,convertValue:u,isVisitable:V});if(!$.isObject(e))throw new TypeError("data must be an object");return function t(e,i){if(!$.isUndefined(e)){if(-1!==d.indexOf(e))throw Error("Circular reference detected in "+i.join("."));d.push(e),$.forEach(e,(function(e,r){!0===(!($.isUndefined(e)||null===e)&&o.call(n,e,$.isString(r)?r.trim():r,i,h))&&t(e,i?i.concat(r):[r])})),d.pop()}}(e),n}function Q(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function G(t,e){this._pairs=[],t&&Y(t,this,e)}var K=G.prototype;function Z(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function J(t,e,n){if(!e)return t;var i,r=n&&n.encode||Z,o=n&&n.serialize;if(i=o?o(e,n):$.isURLSearchParams(e)?e.toString():new G(e,n).toString(r)){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}K.append=function(t,e){this._pairs.push([t,e])},K.toString=function(t){var e=t?function(e){return t.call(this,e,Q)}:Q;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var X,tt=function(){function t(){e(this,t),this.handlers=[]}return i(t,[{key:"use",value:function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(t){this.handlers[t]&&(this.handlers[t]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(t){$.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}]),t}(),et={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:G,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:("undefined"==typeof navigator||"ReactNative"!==(X=navigator.product)&&"NativeScript"!==X&&"NS"!==X)&&"undefined"!=typeof window&&"undefined"!=typeof document,isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function it(t){function e(t,n,i,r){var o=t[r++],a=Number.isFinite(+o),s=r>=t.length;return o=!o&&$.isArray(i)?i.length:o,s?($.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):(i[o]&&$.isObject(i[o])||(i[o]=[]),e(t,n,i[o],r)&&$.isArray(i[o])&&(i[o]=function(t){var e,n,i={},r=Object.keys(t),o=r.length;for(e=0;e-1,o=$.isObject(t);if(o&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return r&&r?JSON.stringify(it(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Y(t,new nt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,i){return nt.isNode&&$.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((n=$.isFileList(t))||i.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return Y(n?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if($.isString(t))try{return(e||JSON.parse)(t),$.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||ot.transitional,n=e&&e.forcedJSONParsing,i="json"===this.responseType;if(t&&$.isString(t)&&(n&&!this.responseType||i)){var r=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw F.from(t,F.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$.forEach(["delete","get","head"],(function(t){ot.headers[t]={}})),$.forEach(["post","put","patch"],(function(t){ot.headers[t]=$.merge(rt)}));var at=ot,st=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),lt=Symbol("internals");function ut(t){return t&&String(t).trim().toLowerCase()}function ct(t){return!1===t||null==t?t:$.isArray(t)?t.map(ct):String(t)}function dt(t,e,n,i,r){return $.isFunction(i)?i.call(this,e,n):(r&&(e=n),$.isString(e)?$.isString(i)?-1!==e.indexOf(i):$.isRegExp(i)?i.test(e):void 0:void 0)}var ht=function(t,n){function o(t){e(this,o),t&&this.set(t)}return i(o,[{key:"set",value:function(t,e,n){var i=this;function r(t,e,n){var r=ut(e);if(!r)throw new Error("header name must be a non-empty string");var o=$.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||e]=ct(t))}var o,a,s,l,u,c=function(t,e){return $.forEach(t,(function(t,n){return r(t,n,e)}))};return $.isPlainObject(t)||t instanceof this.constructor?c(t,e):$.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z]+$/.test(t.trim())?c((u={},(o=t)&&o.split("\n").forEach((function(t){l=t.indexOf(":"),a=t.substring(0,l).trim().toLowerCase(),s=t.substring(l+1).trim(),!a||u[a]&&st[a]||("set-cookie"===a?u[a]?u[a].push(s):u[a]=[s]:u[a]=u[a]?u[a]+", "+s:s)})),u),e):null!=t&&r(e,t,n),this}},{key:"get",value:function(t,e){if(t=ut(t)){var n=$.findKey(this,t);if(n){var i=this[n];if(!e)return i;if(!0===e)return function(t){for(var e,n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;e=i.exec(t);)n[e[1]]=e[2];return n}(i);if($.isFunction(e))return e.call(this,i,n);if($.isRegExp(e))return e.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(t,e){if(t=ut(t)){var n=$.findKey(this,t);return!(!n||void 0===this[n]||e&&!dt(0,this[n],n,e))}return!1}},{key:"delete",value:function(t,e){var n=this,i=!1;function r(t){if(t=ut(t)){var r=$.findKey(n,t);!r||e&&!dt(0,n[r],r,e)||(delete n[r],i=!0)}}return $.isArray(t)?t.forEach(r):r(t),i}},{key:"clear",value:function(t){for(var e=Object.keys(this),n=e.length,i=!1;n--;){var r=e[n];t&&!dt(0,this[r],r,t,!0)||(delete this[r],i=!0)}return i}},{key:"normalize",value:function(t){var e=this,n={};return $.forEach(this,(function(i,r){var o=$.findKey(n,r);if(o)return e[o]=ct(i),void delete e[r];var a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n}))}(r):String(r).trim();a!==r&&delete e[r],e[a]=ct(i),n[a]=!0})),this}},{key:"concat",value:function(){for(var t,e=arguments.length,n=new Array(e),i=0;i1?n-1:0),r=1;r0;){var a=r[o],s=n[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new F("option "+a+" must be "+u,F.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new F("Unknown option "+a,F.ERR_BAD_OPTION)}},validators:Ot},qt=Et.validators,Lt=function(){function t(n){e(this,t),this.defaults=n,this.interceptors={request:new tt,response:new tt}}return i(t,[{key:"request",value:function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{};var n,i=e=Mt(this.defaults,e),r=i.transitional,o=i.paramsSerializer,a=i.headers;void 0!==r&&Et.assertOptions(r,{silentJSONParsing:qt.transitional(qt.boolean),forcedJSONParsing:qt.transitional(qt.boolean),clarifyTimeoutError:qt.transitional(qt.boolean)},!1),void 0!==o&&Et.assertOptions(o,{encode:qt.function,serialize:qt.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase(),(n=a&&$.merge(a.common,a[e.method]))&&$.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete a[t]})),e.headers=ft.concat(n,a);var s=[],l=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(l=l&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));var u,c=[];this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));var d,h=0;if(!l){var f=[St.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,c),d=f.length,u=Promise.resolve(e);h0;)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},n((function(t,e,n){r.reason||(r.reason=new vt(t,e,n),i(r.reason))}))}return i(t,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}},{key:"unsubscribe",value:function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}}}],[{key:"source",value:function(){var e;return{token:new t((function(t){e=t})),cancel:e}}}]),t}();var Rt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rt).forEach((function(t){var e=r(t,2),n=e[0],i=e[1];Rt[i]=n}));var Nt=Rt;var It=function t(e){var n=new Dt(e),i=a(Dt.prototype.request,n);return $.extend(i,Dt.prototype,n,{allOwnKeys:!0}),$.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return t(Mt(e,n))},i}(at);return It.Axios=Dt,It.CanceledError=vt,It.CancelToken=Pt,It.isCancel=mt,It.VERSION=Tt,It.toFormData=Y,It.AxiosError=F,It.Cancel=It.CanceledError,It.all=function(t){return Promise.all(t)},It.spread=function(t){return function(e){return t.apply(null,e)}},It.isAxiosError=function(t){return $.isObject(t)&&!0===t.isAxiosError},It.mergeConfig=Mt,It.AxiosHeaders=ft,It.formToJSON=function(t){return it($.isHTMLForm(t)?new FormData(t):t)},It.HttpStatusCode=Nt,It.default=It,It})), /*! diff --git a/lnbits/static/js/bolt11-decoder.js b/lnbits/static/js/bolt11-decoder.js index 7b73260bf..3fba20745 100644 --- a/lnbits/static/js/bolt11-decoder.js +++ b/lnbits/static/js/bolt11-decoder.js @@ -22,7 +22,7 @@ function decode(paymentRequest) { } function decodeHumanReadablePart(humanReadablePart) { - let prefixes = ['lnbc', 'lntb', 'lnbcrt', 'lnsb'] + let prefixes = ['lnbc', 'lntb', 'lnbcrt', 'lnsb', 'lntbs'] let prefix prefixes.forEach(value => { if (humanReadablePart.substring(0, value.length) === value) {