forked from andrewplummer/Sugar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsugar-es5.min.js
149 lines (149 loc) · 70.9 KB
/
sugar-es5.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*
* Sugar v2.0.0
*
* Freely distributable and licensed under the MIT-style license.
* Copyright (c) Andrew Plummer
* https://sugarjs.com/
*
* ---------------------------- */
(function(){'use strict';(function(){function wc(a,b){return new P(a,b)}function q(a,b){for(var c in a)if(z(a,c)&&!1===b.call(a,a[c],c,a))break}function xc(a){function b(a,b,c){A(d,a,function(a,e,m){a=Kb(a,e,m);ee(d,a.methods,b,c,a.w);return d})}var c="Object"===a,d=yc(a);b("defineStatic",1);b("defineInstance",2);b("defineInstanceAndStatic",3);b("defineStaticWithArguments",1,!0);b("defineInstanceWithArguments",2,!0);A(d,"defineStaticPolyfill",function(b,c,d){b=Kb(b,c,d);lb(Da[a],b.methods,!0,b.w)});A(d,"defineInstancePolyfill",
function(b,c,g){b=Kb(b,c,g);lb(Da[a].prototype,b.methods,!0,b.w);q(b.methods,function(a,b){mb(d,b,a)})});A(d,"alias",function(a,b){var c=d,h="string"===typeof b?d[b]:b;c[a]=h;h.instance&&mb(c,a,h.instance)});A(d,"extend",function(b){function f(a,c){var d=b[a];if(d)for(var f=0,g;g=d[f];f++)if(g===c)return!0;return!1}function g(a,c,d){if(!c[a]||!d)return!1;for(a=0;a<d.length;a++)if(!1===b[d[a]])return!0}var h=Da[a],k=h.prototype,m={},t={},u;b=b||{};u=b.methods;if(!f("except",h)&&(!b.namespaces||f("namespaces",
h)))return c&&"boolean"===typeof b.objectPrototype&&(Lb=b.objectPrototype),q(u||d,function(a,b){u&&(b=a,a=d[b]);!z(a,"instance")||c&&k===k&&(!Lb||"get"===b||"set"===b)||g(b,k,a.flags)||f("except",b)||(t[b]=a.instance);!z(a,"static")||c&&h===k&&(!Lb||"get"===b||"set"===b)||g(b,h,a.flags)||f("except",b)||(m[b]=a)}),lb(h,m),lb(k,t),u||A(d,"active",!0),w});nb[a]=d;zc["[object "+a+"]"]=d;Mb(a);fe(d);return w[a]=d}function ge(){return"Sugar"}function ee(a,b,c,d,e){q(b,function(b,g){var h,k=b;d&&(k=Ac(b));
e&&(k.flags=e);c&2&&!b.instance&&(h=d?Ac(b,!0):he(b),A(k,"instance",h));c&1&&A(k,"static",!0);h=k;a[g]=h;h.instance&&mb(a,g,h.instance);a.active&&a.extend(g)})}function Kb(a,b,c){var d;"string"===typeof a?(d={},d[a]=b,a=c):(d=a,a=b);return{w:a,methods:d}}function Ac(a,b){var c=a.length-1-(b?1:0);return function(){var d=[],e=[],f;b&&d.push(this);f=Math.max(arguments.length,c);for(var g=0;g<f;g++)g<c?d.push(arguments[g]):e.push(arguments[g]);d.push(e);return a.apply(this,d)}}function he(a){switch(a.length){case 0:case 1:return function(){return a(this)};
case 2:return function(b){return a(this,b)};case 3:return function(b,c){return a(this,b,c)};case 4:return function(b,c,d){return a(this,b,c,d)};case 5:return function(b,c,d,e){return a(this,b,c,d,e)}}}function lb(a,b,c,d){q(b,function(b,f){c&&!d&&a[f]||A(a,f,b)})}function yc(a){function b(a,d){if(!(this instanceof b))return new b(a,d);this.constructor!==b&&(a=this.constructor.apply(a,arguments));this.raw=a}A(b,"toString",function(){return"Sugar"+a});A(b.prototype,"valueOf",function(){return this.raw});
return b}function mb(a,b,c){c=ie(c);var d,e,f;f=Bc.prototype;e=(d=f[b])&&d!==Object.prototype[b];d&&d.G||(f[b]=e?je(b):c);a.prototype[b]=c;a===w.Object&&ke(b,c)}function fe(a){q(w.Object&&w.Object.prototype,function(b,c){if("function"===typeof b){var d=a.prototype;z(d,c)||(d[c]=b)}})}function ke(a,b){q(nb,function(c){c=c.prototype;z(c,a)||(c[a]=b)})}function ie(a){return function(){return new Bc(a.apply(this.raw,arguments))}}function je(a){function b(){var b=this.raw,d;null!=b&&(d=zc[X(b)]);d||(d=
w.Object);d=(new d(b))[a];if(d.G)throw new TypeError("Cannot resolve namespace for "+b);return d.apply(this,arguments)}b.G=!0;return b}function Mb(a,b){var c=nb[a],d=Da[a].prototype;!b&&Cc&&(b=Cc(d));q(b,function(a){if("constructor"!==a&&"valueOf"!==a&&"__proto__"!==a){try{var b=d[a];if("function"!==typeof b)return}catch(g){return}mb(c,a,b)}})}function le(a,b,c){a[b]=c.value}function A(a,b,c,d){Nb(a,b,{value:c,enumerable:!!d,configurable:!0,writable:!0})}function X(a){return Dc.call(a)}function z(a,
b){return!!a&&me.call(a,b)}function r(a,b){if(z(a,b))return a[b]}function ob(a,b,c){c||(c=X(a));return c==="[object "+b+"]"}function va(a){return function(b,c,d){b[a](c,d)}}function Va(a,b,c){Q(a,Ec(b,c),void 0)}function ne(a,b){Ob(a,Ec("Boolean Number String Date RegExp Function Array Error Set Map",b),void 0)}function Ec(a,b){var c={};y(a)&&(a=a.split(" "));x(a,function(a,e){b(c,a,e)});return c}function ea(a){function b(b){var d=arguments;return a(b,d[1],d[2],d.length-1)}b.instance=function(b){var d=
arguments;return a(this,b,d[1],d.length)};return b}function oe(a,b){A(a,"setOption",b)}function Pb(a,b){function c(a){return d[a]}var d=Y({},b);A(a,"getOption",c);oe(a,function(a,c){null===c&&(c=b[a]);d[a]=c});return c}function Fc(a,b){var c=a.prototype;q(b,function(a,b){c[b]=a})}function Gc(a){if(!a)throw new TypeError("Argument required");}function T(a){if(!H(a))throw new TypeError("Function is not callable");}function wa(a){a=+a||0;if(0>a||!F(a)||!isFinite(a))throw new RangeError("Invalid number");
return K(a)}function n(a){return void 0!==a}function v(a){return void 0===a}function Wa(a){var b="_sugar_"+a;return function(a,d){return 1<arguments.length?(A(a,b,d),a):a[b]}}function Hc(a,b){a.prototype.constructor=function(){return b.apply(this,arguments)}}function fa(a){if(!na(a)){var b=X(a);if(ga(a,b))return pe(a);if(S(a,b))return qe(a);if(H(a,b))return re(a);if(pb(a,b))return se(a)}return te(a)}function se(a){var b={};return function(c,d,e){var f=!0;if(!I(c))return!1;q(a,function(a,h){b[h]=r(b,
h)||fa(a);!1===b[h].call(e,c[h],d,e)&&(f=!1);return f});return f}}function te(a){return function(b){return xa(b,a)}}function pe(a){a=RegExp(a);return function(b){return a.test(b)}}function qe(a){var b=a.getTime();return function(a){return!(!a||!a.getTime)&&a.getTime()===b}}function re(a){return function(b,c,d){return b===a||a.call(d,b,c,d)}}function qb(a,b,c){return Ea(a,b,c,!1)}function Ea(a,b,c,d,e,f,g){var h,k,m,t,u,p,l;h=a||void 0;if(null!=b){if(I(b))a=[b];else{b=String(b);if(-1!==b.indexOf(".."))return ue(a,
b,c,g);a=b.split("[")}t=n(g);for(var Ua=0,C=a.length;Ua<C;Ua++){k=a[Ua];y(k)&&(k=k.split("."));for(var r=0,q=k.length;r<q;r++)if(b=k[r],u=Ua===C-1&&r===q-1,m=b.indexOf("]"),l=-1!==m,p=t&&0===m,m=1<C&&r===q-1,p?b=h.length:l&&(b=b.slice(0,-1)),l&&0>b&&(b=+b+h.length),Ua||b||1===C)if(l=c?b in h:z(h,b),!e||u&&!f||l){if(d){if(u||!l)return l}else if(t&&u){if(na(h))throw new TypeError("Property cannot be written");h[b]=g}h=l?h[b]:void 0}else h=h[b]=m||f&&u?[]:{}}return h}}function ue(a,b,c,d){var e,f,g;
if(e=b.match(ve)){b=n(d);a=(f=e[1])?Ea(a,f,c,!1,b?!0:!1,!0):a;if(!D(a))throw new TypeError("Array required");g=e[4];f=e[2]?+e[2]:0;e=e[3]?+e[3]:a.length;e=-1===e?a.length:e+1;if(b)for(b=f;b<e;b++)Ea(a,b+g,c,!1,!0,!1,d);else if(a=a.slice(f,e),g)return"."===g.charAt(0)&&(g=g.slice(1)),a.map(function(a){return Ea(a,g)});return a}}function Qb(a,b){if(z(a,b))return b}function I(a){return!!a&&"object"===typeof a}function na(a,b){b=b||typeof a;return null==a||"string"===b||"number"===b||"boolean"===b}function pb(a,
b){var c;if(c=I(a)&&ob(a,"Object",b))c="constructor"in a,c=!c&&!("toString"in a)||c&&!z(a,"constructor")&&z(a.constructor.prototype,"isPrototypeOf");if(c)a:{c=Object.prototype;for(var d in a){var e=a[d];if(!z(a,d)&&e!==c[d]){c=!1;break a}}c=!0}return c}function Rb(a,b){for(var c=0;c<a;c++)b(c)}function Y(a,b){q(b,function(b,d){a[d]=b});return a}function Fa(a){na(a)&&(a=Object(a));if(we&&y(a))for(var b=a,c=0,d;d=b.charAt(c);)b[c++]=d;return a}function xa(a,b,c){var d,e;if(a===b)return 0!==a||1/a===
1/b;d=X(a);e=X(b);return d!==e?!1:rb(a,d)&&rb(b,e)?xe(a,b,c):sb(a,d)&&sb(b,e)?a.size===b.size&&xa(Ic(a),Ic(b),c):tb(a,d)&&tb(b,e)?a.size===b.size&&xa(Jc(a),Jc(b),c):ub(a,d)&&ub(b,e)?a.toString()===b.toString():!1}function xe(a,b,c){var d,e;if(typeof a!==typeof b)return!1;if(I(a.valueOf())){if(a.length!==b.length)return!1;e=0;d=!0;Kc(a,!1,c,function(a,c,h,k){h||a in b&&xa(c,b[a],k)||(d=!1);e++;return d});if(!d||e!==Object.keys(b).length)return!1}return a.valueOf().toString()===b.valueOf().toString()}
function Ga(a,b,c){var d=typeof a,e,f;if(na(a,d)&&(null==a||a===a))return d+a;e=X(a);if(rb(a,e))I(a)?f=ye(a,b,c)+a.toString():-Infinity===1/a?f="-0":a.valueOf&&(f=a.valueOf());else return c=Sb(b,a),-1===c&&(c=b.length,b.push(a)),c;return d+e+f}function ye(a,b,c){var d="";Kc(a,!0,c,function(a,c,g,h){d+=g?"CYC":a+Ga(c,b,h)});return d}function Kc(a,b,c,d){function e(a,b){var e=!1;if(1<c.length)for(var f=c.length;f--;)c[f]===a&&(e=!0);c.push(a);d(b,a,e,c);c.pop()}function f(){for(var b=Object.keys(a).sort(),
c,d=0;d<b.length;d++)c=b[d],e(a[c],b[d])}c||(c=[]);b?f():q(a,e)}function vb(a){return a>>>0==a&&4294967295!=a}function Lc(a,b,c,d){var e=[],f;for(f in a)vb(f)&&(c||(d?f<=b:f>=b))&&e.push(+f);e.sort(function(a,c){var d=a>b;return d!==c>b?d?-1:1:a-c});return e}function Mc(a,b,c,d){var e,f=a.length;if(!D(b))return Nc(a,b,f,c,d);e=Array(b.length);x(b,function(b,h){e[h]=Nc(a,b,f,c,d)});return e}function Tb(a,b,c){a&&c&&(a%=b);0>a&&(a=b+a);return a}function Nc(a,b,c,d,e){b=Tb(b,c,d);return e?a.charAt(b):
a[b]}function oa(a,b,c,d){return b?b.apply?b.apply(c,d||[]):D(b)?b.map(function(b){return oa(a,b,c,d)}):H(a[b])?a[b].call(a):qb(a,b):a}function x(a,b){for(var c=0,d=a.length;c<d;c++){if(!(c in a)){for(var d=a,e=b,c=Lc(d,c,void 0),f,g=0,h=c.length;g<h;g++)f=c[g],e.call(d,d[f],f,d);break}b(a[c],c)}}function Ub(a,b){for(var c=[],d=0,e=a.length;d<e;d++){var f=a[d];d in a&&b(f,d)&&c.push(f)}return c}function pa(a,b){for(var c=[],d=0,e=a.length;d<e;d++)d in a&&c.push(b(a[d],d));return c}function Sb(a,b){for(var c=
0,d=a.length;c<d;c++)if(c in a&&a[c]===b)return c;return-1}function Xa(a,b,c){var d=wb(10,Z(b||0));c=c||Ya;0>b&&(d=1/d);return c(a*d)/d}function R(a,b,c,d,e){d=Z(a).toString(d||10);d=xb(e||"0",b-d.replace(/\.\d+/,"").length)+d;if(c||0>a)d=(0>a?"-":"+")+d;return d}function Oc(a){if(11<=a&&13>=a)return"th";switch(a%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function Vb(a,b){var c,d;c=a.replace(Pc,function(a){a=r(ya,a);"."===a&&(d=!0);return a});return d?parseFloat(c):
parseInt(c,b||10)}function xb(a,b){var c="";for(a=a.toString();0<b;)if(b&1&&(c+=a),b>>=1)a+=a;return c}function Za(a){return a.charAt(0).toUpperCase()+a.slice(1)}function Qc(a,b,c){function d(d,e){var h,k,m,n,r=e[2],q=e[3],v=e[5];e[4]&&b?(k=v,h=b):r?(k=r,h=a):q&&b?m=q:m=e[1]||e[0];h&&(g(c,r,v),n=function(a,b){return h(a,k,b)});d.push(n||f(m))}function e(a,b,c,d){if(d>c){var e=b.slice(c,d);h(e,"{");h(e,"}");a.push(function(){return e})}}function f(a){return function(){return a}}function g(a,b,c){if(a&&
!a(b,c))throw new TypeError("Invalid token "+(b||c)+" in format string");}function h(a,b){if(-1!==a.indexOf(b))throw new TypeError("Unmatched "+b+" in format string");}var k=ze,m=Ae(function(a){var b=[],c=0,f;for(k.lastIndex=0;f=k.exec(a);)e(b,a,c,f.index),d(b,f),c=k.lastIndex;e(b,a,c,a.length);return b});return function(a,b,c){a=m(a);for(var d="",e=0;e<a.length;e++)d+=a[e](b,c);return d}}function Be(a){return aa.human&&aa.human.X(a)||a}function Ha(a,b){function c(a,c){if(a||-1<b.indexOf(c))d+=c}
var d="";b=b||"";c(a.global,"g");c(a.ignoreCase,"i");c(a.multiline,"m");c(a.Y,"y");return d}function Ia(a){y(a)||(a=String(a));return a.replace(/([\\\/\'*+?|()\[\]{}.^$-])/g,"\\$1")}function L(a,b){return a["get"+(M(a)?"UTC":"")+b]()}function Ja(a,b,c,d){if(!d||c!==L(a,b))a["set"+(M(a)?"UTC":"")+b](c)}function Ae(a){var b={},c=0;return function(d){if(z(b,d))return b[d];c===Ce&&(b={},c=0);c++;return b[d]=a(d)}}function Ic(a){var b=Array(a.size),c=0;a.forEach(function(a){b[c++]=a});return b}function Jc(a){var b=
Array(a.size),c=0;a.forEach(function(a,e){b[c++]=[e,a]});return b}function De(){function a(a,d){for(var e=0;e<b.length;e++)d.push(a+b[e])}var b="FullYear Month Date Hours Minutes Seconds Milliseconds".split(" ");q({Function:"apply,call",RegExp:"compile,exec,test",Number:"toExponential,toFixed,toLocaleString,toPrecision",Object:"hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString",Array:"concat,join,pop,push,reverse,shift,slice,sort,splice,toLocaleString,unshift",Date:"getTime,getTimezoneOffset,setTime,toDateString,toGMTString,toLocaleDateString,toLocaleString,toLocaleTimeString,toTimeString,toUTCString",
String:"anchor,big,blink,bold,charAt,charCodeAt,concat,fixed,fontcolor,fontsize,indexOf,italics,lastIndexOf,link,localeCompare,match,replace,search,slice,small,split,strike,sub,substr,substring,sup,toLocaleLowerCase,toLocaleUpperCase,toLowerCase,toUpperCase"},function(b,d){var e=b.split(",");"Date"===d&&(a("get",e),a("set",e),a("getUTC",e),a("setUTC",e));e.push("toString");Mb(d,e)})}function Rc(a,b,c,d){var e=a.length,f,g;g=d?-1:1;f=d?e-1:0;(c=K(c))||0===c||(c=f);0>c&&(c=e+c);if(!d&&0>c||d&&c>=e)c=
f;for(f=c;d&&0<=f||!d&&f<e;){if(!(f in a))return Ee(a,b,c,d);if(vb(f)&&a[f]===b)return f;f+=g}return-1}function Ee(a,b,c,d){c=Lc(a,c,!1,d);var e;for(c.sort(function(a,b){return d?b-a:a-b});void 0!==(e=c.shift());)if(a[e]===b)return+e;return-1}function Sc(a,b,c,d){var e=a.length,f=0,g=n(c);T(b);if(0!=e||g)g||(c=a[d?e-1:f],f++);else throw new TypeError("Reduce called on empty array with no initial value");for(;f<e;)g=d?e-f-1:f,g in a&&(c=b(c,a[g],g,a)),f++;return c}function Xb(a){if(null==a)throw new TypeError("String required.");
return String(a)}function Yb(a){if(ga(a))throw new TypeError;return String(a)}function za(){return Fe("newDateInternal")()}function qa(a){var b=new Date(a.getTime());M(b,!!M(a));return b}function Tc(a){if(isNaN(a.getTime()))throw new TypeError("Date is not valid");}function G(a){return L(a,"Day")}function ba(a){return L(a,"Date")}function U(a){return L(a,"Month")}function ha(a){return L(a,"FullYear")}function ia(a,b){Ja(a,"Date",b)}function Uc(a){return 32-L(new Date(ha(a),U(a),32),"Date")}function ra(a,
b,c){if(F(b)){var d=G(a);if(c){c=0<c?1:-1;var e=b%7-d;e&&e/Z(e)!==c&&(b+=7*c)}ia(a,ba(a)+b-d);return a.getTime()}}function Zb(a,b){var c=M(a)?0:a.getTimezoneOffset(),d,e;e=!0===b?":":"";if(!c&&b)return"Z";d=R(K(-c/60),2,!0);c=R(Z(c%60),2);return d+e+c}function Vc(a,b){var c=a[0],d=a[1];if(b&&y(c)){var e,f={};if(c=c.match(/^(-?\d*[\d.]\d*)?\s?(\w+?)s?$/i))v(e)&&(e=+c[1],isNaN(e)&&(e=1)),f[c[2].toLowerCase()]=e;c=f}else F(c)&&F(d)?(c=Ge(a),d=null):I(c)&&(c=Y({},c));return[c,d]}function Ge(a){var b=
{},c=0;Wc(7,function(d){var e=a[c++];n(e)&&(b[d.name]=e)});return b}function $b(a,b,c){c=c||0;for(v(b)&&(b=7);b>=c&&!1!==a(ja[b],b);b--);}function Wc(a,b){for(;0<=a&&!1!==b(ja[a],a);)a=$a(a)}function $a(a){return 6===a?4:5===a?3:a-1}function yb(a,b,c,d){$b(function(c,d){var g;g=c.name;var h=r(a,ac(a,g));n(h)&&b(g,h,c,d);g=void 0;!1!==g&&4===d&&(g=r(a,ac(a,"weekday")),n(g)&&b("weekday",g,c,d),g=void 0);return g},c,d)}function He(a,b){yb(a,b,7,4)}function Aa(a,b,c,d){var e={};e[b]=c;return sa(a,e,d,
1)}function Xc(a,b,c){b=Vc(b,!0);return sa(a,b[0],b[1],c)}function ab(a,b){ra(a,7*Ka((G(a)-b)/7)+b);return a}function Yc(a,b){var c=b-1;ra(a,7*ka((G(a)-c)/7)+c);return a}function bb(a,b,c){5===b&&ab(a,B.get(c).s());return V(a,$a(b))}function zb(a,b,c,d){5===b&&Yc(a,B.get(c).s());return V(a,$a(b),d,!0)}function V(a,b,c,d){Wc(b,function(b,f){var g=d?b.end:b.start;H(g)&&(g=g(a));Ja(a,b.method,g);return!n(c)||f>c});return a}function ac(a,b){return Qb(a,b)||Qb(a,b+"s")||"day"===b&&Qb(a,"date")}function Ie(a){var b=
{},c;b[a]=1;yb(b,function(a,b,f,g){c=g;return!1});return c}function Ab(a,b,c){var d=b>a,e;d||(e=b,b=a,a=e);e=b-a;1<c.f&&(e=K(e/c.f));if(c.m)for(a=qa(a),e&&Aa(a,c.name,e);a<b;){Aa(a,c.name,1);if(a>b)break;e+=1}return d?-e:e}function Zc(a,b){if(F(b)){var c=qa(a),d=G(a);V(c,6);ia(c,4);ab(c,1);ia(c,ba(c)+7*(b-1));var e=ha(c);Ja(a,"FullYear",e);e=U(c);Ja(a,"Month",e);ia(a,ba(c));ra(a,d||7)}return a.getTime()}function La(a,b,c,d){var e,f=0;v(c)&&(c=1);v(d)&&(d=4);var g=e=Yc(qa(a),c),h=c,k=d;V(g,6);ia(g,
k);ab(g,h);b&&a<e&&(b=e=ab(qa(a),c),V(b,6),ia(b,d),ab(b,c));for(;e<=a;)ia(e,ba(e)+7),f++;return f}function $c(a,b,c){var d,e,f,g;d=ha(a);e=U(a);if(0===e||11===e)c||(c=B.get(b),f=c.s(b),g=c.H(b)),a=La(a,!1,f,g),0===e&&0===a?--d:11===e&&1===a&&(d+=1);return d}function ad(a,b,c,d){var e;Tc(a);H(c)?d=c:e=c;c=Je(a,b);if(d&&(d=d.apply(a,c.concat(B.get(e)))))return bd(a,d,e);0===c[1]&&(c[1]=1,c[0]=1);a=b?"duration":0<c[2]?"future":"past";return B.get(e).S(c,a)}function cd(a,b){var c=0,d=0;$b(function(a,
f){d=Z(b(a));if(1<=d)return c=f,!1});return[d,c,a]}function Ke(a){return cd(a,function(b){return K(Xa(a/b.f,1))})}function Je(a,b){b||(b=za(),a>b&&(b=new Date(b.getTime()-10)));return cd(a-b,function(c){return Z(Ab(a,b,c))})}function bd(a,b,c){Tc(a);b=dd[b]||b||"{long}";return Bb(b,a,c)}function bc(a,b){var c=L(a,"Hours");return B.get(b).ampm[K(c/12)]||""}function ed(a,b,c){var d;if(!isNaN(a.getTime())){if(y(b))switch(b=b.trim().toLowerCase(),!0){case "future"===b:return a.getTime()>za().getTime();
case "past"===b:return a.getTime()<za().getTime();case "today"===b:return cc(a);case "tomorrow"===b:return cc(a,1);case "yesterday"===b:return cc(a,-1);case "weekday"===b:return 0<G(a)&&6>G(a);case "weekend"===b:return 0===G(a)||6===G(a);case n(d=Ba.weekdayMap[b]):return G(a)===d;case n(d=Ba.monthMap[b]):return U(a)===d}return fd(a,b,c)}}function fd(a,b,c,d,e){var f=0,g=0,h,k,m;M(a)&&(e=e||{},e.fromUTC=!0,e.setUTC=!0);b=cb(null,b,e,!0);0<c&&(f=g=c,k=!0);if(isNaN(b.date.getTime()))return!1;if(b.set&&
b.set.specificity){if(n(b.set.edge)||n(b.set.shift))h=!0,bb(b.date,b.set.specificity,d);h||6===b.set.specificity?m=zb(qa(b.date),b.set.specificity,d).getTime():(m=ja[b.set.specificity],m=Aa(qa(b.date),m.name,1).getTime()-1);!k&&n(b.set.sign)&&b.set.specificity&&(f=50,g=-50)}c=a.getTime();k=b.date.getTime();m=m||k;if(a=b.set&&b.set.specificity?0:6E4*(b.date.getTimezoneOffset()-a.getTimezoneOffset()))k-=a,m-=a;return c>=k-f&&c<=m+g}function cc(a,b){var c=za();b&&ia(c,ba(c)+b);return ha(a)===ha(c)&&
U(a)===U(c)&&ba(a)===ba(c)}function la(a,b,c){return cb(null,a,b,c).date}function cb(a,b,c,d){function e(a,b){var c=r(C,"params")||{};x(b.to,function(b,d){var e=a[d+1],f;if(e){if("yy"===b||"y"===b){b="year";f=r(C,"prefer");var e=+e,g,e=e+(50>e?2E3:1900);f&&(g=e-ha(p),g/Z(g)!==f&&(e+=100*f))}else(f=r(dc,b))?(b=f.h||b,f.C?g=f.C:f.sign?g="+"===e?1:-1:f.W?g=!!g:g=+e.replace(/,/,"."),"month"===f.h&&--g,e=g):e=q.T(b,e);c[b]=e}});return c}function f(a,b){M(a)&&!n(r(C,"fromUTC"))&&(C.fromUTC=!0);M(a)&&!n(r(C,
"setUTC"))&&(C.setUTC=!0);b&&(a=new Date(a.getTime()));return a}function g(){x(w,function(a){a.call()})}function h(a){a=a.toLowerCase();q=B.get(r(C,"locale"));for(var b=0,c,d;c=q.compiledFormats[b];b++)if(d=a.match(c.reg)){q.L(c,b);l=e(d,c);if(n(l.timestamp)){a=l.timestamp;l=null;break}n(l.ampm)&&(b=l.ampm,1===b&&12>l.hour?l.hour+=12:0===b&&12===l.hour&&(l.hour=0));if(l.utc||n(l.tzHour))if(b=l.tzHour,c=l.tzMinute,d=l.tzSign,M(p,!0),b=(d||1)*(60*(b||0)+(c||0)))l.minute=(l.minute||0)-b;n(l.shift)&&
v(l.unit)&&(n(l.month)?l.unit=7:n(l.weekday)&&(l.unit=5));n(l.num)&&v(l.unit)&&(n(l.weekday)?t(l.num):n(l.month)&&(l.date=l.num));l.midday&&k(l.midday);n(l.day)&&(V(p,3),v(l.unit)&&(l.unit=4,l.num=l.day,delete l.day));n(l.unit)&&(b=l.unit,c=n(l.num)?l.num:1,n(l.weekday)&&(6===b?(t(c),c=1):(sa(p,{weekday:l.weekday},!0),delete l.weekday)),l.half&&(c*=l.half),n(l.shift)?c*=l.shift:l.sign&&(c*=l.sign),n(l.day)&&(c+=l.day,delete l.day),u(b),l[Ba.units[b]]=c,A=!0);l.edge&&m(l.edge,l);l.yearSign&&(l.year*=
l.yearSign);break}l?A?sa(p,l,!1,1):(M(p)&&V(p,3),sa(p,l,!0,0,r(C,"prefer"),Wb)):(p=new Date(a),r(C,"fromUTC")&&p.setTime(p.getTime()+6E4*p.getTimezoneOffset()));g();return p}function k(a){l.hour=a%24;23<a&&w.push(function(){Aa(p,"date",K(a/24))})}function m(a,b){var c=b.unit,d;c||He(b,function(a,d,e,f){"weekday"===a&&n(b.month)||(c=f)});6===c&&n(b.weekday)&&(d=b.weekday,delete b.weekday);w.push(function(){var b;0>a?bb(p,c,r(C,"locale")):0<a&&(1===a&&(b=4,bb(p,4)),zb(p,c,r(C,"locale"),b));n(d)&&(ra(p,
d,-a),V(p,3))});b.specificity=6===c?4:c-1}function t(a){l.weekday=7*(a-1)+l.weekday;Wb=l.date=1}function u(a){var b;yb(l,function(c,d,e,f){if(f>=a)return p.setTime(NaN),!1;f<a&&(b=b||{},b[c]=d,delete l[ac(l,c)])});b&&(w.push(function(){sa(p,b,!0,!1,r(C,"prefer"),Wb)}),l.edge&&(m(l.edge,b),delete l.edge))}var p,l,q,C,w,A,Wb;w=[];C=function(a){a=y(a)?{locale:a}:a||{};a.prefer=+!!r(a,"future")-+!!r(a,"past");return a}(c);p=a&&b?f(a,!0):za();M(p,r(C,"fromUTC"));y(b)?p=h(b):S(b)?p=f(b,z(C,"clone")||d):
I(b)?(l=Y({},b),sa(p,l,!0)):(F(b)||null===b)&&p.setTime(b);M(p,!!r(C,"setUTC"));return{set:l,date:p}}function sa(a,b,c,d,e,f){function g(){var a=ja[k];d=e;h(a.name,1,a,k)}function h(c,g,h,p){var l=h.method,n;e&&!k&&("weekday"===c?k=5:k=4===p?6:p+1);p>b.specificity||(b.specificity=p);if(n=g%1){if(p){var q=ja[$a(p)];n=Ya(h.f/q.f*n);b[q.name]=n}g=K(g)}if("weekday"===c)d||ra(a,g,f);else if(c=6===p&&28<ba(a),d&&!h.m)a.setTime(a.getTime()+g*d*h.f);else{d&&(5===p&&(g*=7,l=ja[4].method),g=g*d+L(a,l));h=l;
p=g;l=d;"ISOWeek"===h?Zc(a,p):Ja(a,h,p,l);if(h=c)0>g&&(g=g%12+12),h=g%12!==U(a);h&&ia(a,0)}}var k;if(F(b)&&d)b={millisecond:b};else if(F(b))return a.setTime(b),a;yb(b,h);c&&b.specificity&&V(a,$a(b.specificity));a:{if(k&&!(7<k))switch(e){case -1:c=a>za();break a;case 1:c=a<za();break a}c=void 0}c&&g();return a}function Cb(a){var b=a.join("");return a&&a.length?b.length===a.length?"["+b+"]":pa(a,Ia).join("|"):""}function W(a,b){1<a.length&&(a="(?:"+a+")");b&&(a+="?");return a}function Le(a,b,c){a=gd[a];
return b=a.A?W(b+W(c)):a.K?b+W(a.K+"|"+c):b+W(c,!0)}function hd(a,b,c,d){var e;1<c&&(e=a[b+(c-1)*d]);return e||a[b]}function id(a){function b(a){this.U(a)}b.prototype={I:function(a,b){return this.monthSuffix?a+1+this.monthSuffix:hd(this.months,a,b,12)},J:function(a,b){return hd(this.weekdays,a,b,7)},T:function(a,b){var e=this[a+"Map"],f;e&&(f=e[b]);v(f)&&(f=this.O(b),"month"===a&&--f);return f},O:function(a){var b=this.numeralMap[a];if(n(b))return b;b=+a.replace(/,/,".");if(!isNaN(b))return b;b=this.P(a);
isNaN(b)||(this.numeralMap[a]=b);return b},P:function(a){var b=1,e=0,f,g,h;h=a.split("");for(var k=h.length-1;g=h[k];k--)a=r(this.numeralMap,g),v(a)&&(a=r(ya,g)||0),(g=0<a&&0===a%10)?(f&&(e+=b),k?b=a:e+=a):(e+=a*b,b*=10),f=g;return e},R:function(a){return this.ordinalSuffix||Oc(a)},S:function(a,b){return this.F(a,b)},N:function(a){return this.F(Ke(E(0,a)),"duration")},s:function(){var a=this.firstDayOfWeek;return n(a)?a:1},H:function(){return this.firstDayOfWeekYear||4},F:function(a,b){var e,f,g=
a[0],h=a[1],k=a[2],m=this[b]||this.relative;if(H(m))return m.call(this,g,h,k,b);f=this.units[8*(this.plural&&1!==g?1:0)+h]||this.units[h];e=this[0<k?"fromNow":"ago"];return m.replace(/\{(.*?)\}/g,function(a,b){switch(b){case "num":return g;case "unit":return f;case "sign":return e}})},L:function(a,b){this.compiledFormats.splice(b,1);this.compiledFormats.unshift(a)},addFormat:function(a,b){function e(a){var c,e,t=a.match(/\?$/),u=a.match(/^(\d+)\??$/),p=a.match(/(\d)(?:-(\d))?/),l=a.replace(/[^a-z]+$/i,
"");if(e=r(g.parsingAliases,l))return a=f(e),t&&(a=W(a,!0)),a;u?a=g.tokens[u[1]]:(e=r(dc,l))?a=e.src:(e=r(g.parsingTokens,l)||r(g,l),l=l.replace(/s$/,""),e||(e=r(g.parsingTokens,l)||r(g,l+"s")),y(e)?(a=e,c=g[l+"Suffix"]):(p&&(e=Ub(e,function(a,b){var c=b%(g.units?8:e.length);return c>=p[1]&&c<=(p[2]||p[1])})),a=Cb(e)));if(!a)return"";u?a=W(a):(b.push(l),a="("+a+")");c&&(a=Le(l,a,c));t&&(a+="?");return a}function f(a){a=a.replace(/ /g," ?");return a.replace(/\{([^,]+?)\}/g,function(a,b){var c=b.split("|");
return 1<c.length?W(pa(c,e).join("|")):e(b)})}var g=this;b||(b=[],a=f(a));g.addRawFormat(a,b)},addRawFormat:function(a,b){this.compiledFormats.unshift({reg:RegExp("^ *"+a+" *$","i"),to:b})},U:function(a){function b(a,c,d,f){var g=a,h=[],n;k[g]||(g+="s");d||(d={},n=!0);e(g,function(a,b,e){b=b*c+e;e=f?f(e):e;d[a]=e;d[a.toLowerCase()]=e;h[b]=a});k[g]=h;n&&(k[a+"Map"]=d)}function e(a,b){x(k[a],function(a,c){f(a,function(a,d){b(a,d,c)})})}function f(a,b){var c=pa(a.split("+"),function(a){return a.replace(/(.+):(.+)$/,
function(a,b,c){return pa(c.split("|"),function(a){return b+a}).join("|")})}).join("|");x(c.split("|"),b)}function g(a,b,c){x(k[a],function(a){b&&(a=c?W("{time}[,\\s\\u3000]",!0)+a:a+h());k.addFormat(a)})}function h(){var a=",?[\\s\\u3000]",b;(b=Cb(k.timeMarkers))&&(a+="| (?:"+b+") ");a=W(a,k.timeMarkerOptional);return W(a+"{time}",!0)}var k=this;k.compiledFormats=[];k.parsingAliases={};k.parsingTokens={};Y(k,a);(function(){x(Me,function(a){var b=k[a];y(b)?k[a]=b.split(","):b||(k[a]=[])})})();b("month",
12);b("weekday",7);b("unit",8);b("ampm",2);(function(){var a={};b("numeral",10,a);b("article",1,a,function(){return 1});b("placeholder",4,a,function(a){return wb(10,a+1)});k.numeralMap=a})();k.parsingAliases.time=k.ampmFront?"{ampm?} {hour} (?:{minute} (?::?{second})?)?":k.ampm.length?"{hour}(?:[.:]{minute}(?:[.:]{second})? {ampm?}| {ampm})":"{hour}(?:[.:]{minute}(?:[.:]{second})?)";k.parsingAliases.tzOffset="(?:{Z}|{GMT?}(?:{tzSign}{tzHour}(?::?{tzMinute}(?: \\([\\w\\s]+\\))?)?)?)?";(function(){q(gd,
function(a,b){var c,d;c=a.i?dc[a.i].src:a.src;if(a.V||k.numeralUnits){var e="";d=k.numerals.concat(k.placeholders).concat(k.articles);k.allowsFullWidth&&(d=d.concat(jd.split("")));d.length&&(e="|(?:"+Cb(d)+")+");c+=e}(d=k[b+"s"])&&d.length&&(c+="|"+Cb(d));k.parsingTokens[b]=c})})();(function(){$b(function(a,b){var c=k.timeSuffixes[b];c&&(k[(a.alias||a.name)+"Suffix"]=c)})})();(function(){x(k.modifiers,function(a){var b=a.name,c=b+"Map",d;d=k[c]||{};f(a.src,function(c,e){var f=r(k.parsingTokens,b),
g=a.value;d[c]=g;k.parsingTokens[b]=f?f+"|"+c:c;"sign"===a.name&&0===e&&(k[1===g?"fromNow":"ago"]=c)});k[c]=d})})();(function(){x(Ne,function(a){var b=a.src;a.mdy&&k.mdy&&(b=a.mdy);a.time?(k.addFormat(W("{time}[,\\s\\u3000]",!0)+b),k.addFormat(b+h())):k.addFormat(b)});k.addFormat("{time}")})();g("parse");g("timeParse",!0);g("timeFrontParse",!0,!0)}};return new b(a)}function Db(a,b){return xb(n(b)?b:" ",a)}function kd(a,b,c,d,e){var f;if(a.length<=b)return a.toString();d=v(d)?"...":d;switch(c){case "left":return a=
e?db(a,b,!0):a.slice(a.length-b),d+a;case "middle":return c=ka(b/2),f=Ka(b/2),b=e?db(a,c):a.slice(0,c),a=e?db(a,f,!0):a.slice(a.length-f),b+d+a;default:return b=e?db(a,b):a.slice(0,b),b+d}}function eb(a,b,c){var d,e,f=[];H(b)?(c=b,e=/[\s\S]/g):b?y(b)?e=RegExp(Ia(b),"gi"):ga(b)&&(e=RegExp(b.source,Ha(b,"g"))):e=/[\s\S]/g;b=[];for(var g;null!=(d=e.exec(a));)e.lastIndex===g?e.lastIndex+=1:b.push(d[0]),g=e.lastIndex;if(b)for(g=0,e=b.length;g<e;g++)if(d=b[g],f[g]=d,c)if(d=c.call(a,d,g,b),!1===d)break;
else n(d)&&(f[g]=d);return f}function Oe(a,b){return eb(a.trim(),/\S+/g,b)}function ld(a,b){var c=Array(a.length),d,e;d=0;for(e=a.length;d<e;d++){var f=a.charCodeAt(d);c[d]=f;b&&b.call(a,f,d,a)}return c}function fb(a){var b=aa.acronyms&&aa.acronyms.reg;return a.replace(/[-\s]+/g,"_").replace(b,function(a,b){return(0<b?"_":"")+a.toLowerCase()}).replace(/([A-Z\d]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase()}function Pe(a,b){a=fb(a);return a.replace(Qe,function(a,d,e,f){a=
!1!==b||0<f;return(d=aa.acronyms&&aa.acronyms.find(e))&&a?d:a?ec(e,!0):e})}function ec(a,b,c){b&&(a=a.toLowerCase());return c?a.replace(Re,Za):Za(a)}function Se(a){var b=/[.:;!]$/,c;a=Be(a);a=fb(a).replace(/_/g," ");return Oe(a,function(a,e,f){a=aa.human&&aa.human.find(a)||a;a=aa.acronyms&&aa.acronyms.find(a)||a;var g;g=0==e;f=e==f.length-1;e=b.test(a);g=g||f||e||c;c=e;return g||-1===Sb(Te,a)?ec(a,!1,!0):a}).join(" ")}function db(a,b,c){if(c)return db(a.split("").reverse().join(""),b).split("").reverse().join("");
var d=0;return Ub(a.split(Ue),function(a){d+=a.length;return d<=b}).join("")}function Ve(a){return a.replace(We,function(a,c,d){return md[d]||ma(c?parseInt(d,16):+d)})}function nd(a,b,c){var d=0,e;y(b)?b=RegExp(Ia(b),"g"):b&&!b.global&&(b=RegExp(b.source,Ha(b,"g")));c?(e=c,c=function(){var a=e[d++];return null!=a?a:""}):c="";return a.replace(b,c)}function od(a,b,c,d){b=y(b)?[b]:b;b=pa(b||[],function(a){return Ia(a)}).join("|");b=b.replace("all","")||"[^\\s>]+";return pd(a.toString(),RegExp("<(\\/)?("+
b+")(\\s+[^<>]*?)?\\s*(\\/)?>","gi"),d,c)}function pd(a,b,c,d,e){function f(f,g,m,l,p){var t=a.slice(k,f),u="",n="";y(d)?n=d:d&&(n=d.call(e,g,t,m,e)||"");c?u=n:t=n;t&&(t=pd(t,b,c,d,e));h+=u+t+(p?"":u);k=f+(l||0)}var g,h="",k=0,m,t,u=0;e=e||a;for(b=RegExp(b.source,"gi");g=b.exec(a);){var p=g[2],l=(g[3]||"").slice(1),n=!!g[1],q=!!g[4],r=g[0].length,v=-1!==Sb(Xe,p.toLowerCase()),q=!n&&!q&&!v,w=p===m;m||(h+=a.slice(k,g.index),k=g.index);q?m?w&&u++:(m=p,t=l,u++,k+=r):n&&w?(u--,0===u&&(f(g.index,m,t,r,
v),t=m=null)):m||f(g.index,p,l,r,v)}m&&f(a.length,m,t);return h+=a.slice(k)}function qd(a,b,c){y(b)&&(b=a.indexOf(b),-1===b&&(b=c?a.length:0));return b}function rd(a,b){var c;a&&a.constructor&&D(a.constructor.prototype)?c=b?Ma(a):a:I(a)||y(a)?c=Array.from(a):n(a)&&(c=[a]);return c||[]}function Ma(a){var b=Array(a.length);x(a,function(a,d){b[d]=a});return b}function Ye(a){var b=[];b.push(a);return b}function Ze(a,b){var c=Ma(a),d=c.length,e;e=D(b)?b:[b];c.length+=e.length;x(e,function(a,b){c[d+b]=
a});return c}function sd(a,b,c){c=+c;isNaN(c)&&(c=a.length);c=[c,0];n(b)&&(c=c.concat(b));a.splice.apply(a,c);return a}function td(a,b){var c=[],d={},e=[];x(a,function(f,g){var h=b?oa(f,b,a,[f,g,a]):f,h=Ga(h,e);z(d,h)||(c.push(f),d[h]=!0)});return c}function ud(a,b,c){var d=[];b=b||Infinity;c=c||0;x(a,function(a){D(a)&&c<b?d=d.concat(ud(a,b,c+1)):d.push(a)});return d}function $e(a,b){return Ub(a,function(a){return a||!b&&null!=a&&a.valueOf()===a.valueOf()})}function af(a,b,c){var d={},e;x(a,function(c,
g){e=oa(c,b,a,[c,g,a]);z(d,e)||(d[e]=[]);d[e].push(c)});c&&q(d,c);return d}function vd(a,b,c){var d=[],e={},f=[];D(b)||(b=Ye(b));x(b,function(a){e[Ga(a,f)]=!0});x(a,function(a){var b=Ga(a,f);z(e,b)!==c&&(delete e[b],d.push(a))});return d}function wd(a,b){var c,d;if(y(a)&&y(b))return c=Na("sortCollate"),c(a,b);if(D(a)&&D(b)){if(a.length<b.length)return-1;if(a.length>b.length)return 1;for(d=0;d<a.length;d++)if(c=wd(a[d],b[d]),0!==c)return c;return 0}return a<b?-1:a>b?1:0}function xd(a,b,c){y(a)||(a=
String(a));c&&(a=a.toLowerCase());b&&(a=a.replace(b,""));return a}function yd(a,b,c){a=a.charAt(b);return r(c,a)||a}function fc(a,b,c,d,e){if(D(a)){for(var f,g,h=[],k=0,m=a.length;k<m;k++)f=a[k],f=(g=d+(d&&b?"[]":""))||I(f)?fc(f,b,c,g,e):gc(f),h.push(f);a=h.join("&")}else I(a)&&a.toString===Dc?a=bf(a,b,c,d,e):d?(c?h=c(a,d):h=S(a)?a.getTime():a,a=gc(d)+"="+gc(h)):a="";return a}function bf(a,b,c,d,e){var f=[];q(a,function(a,h){var k;d&&b?k=d+"["+h+"]":k=d?d+e+h:h;f.push(fc(a,b,c,k,e))});return f.join("&")}
function gc(a){return a||!1===a||0===a?encodeURIComponent(a):""}function cf(a,b){var c=String(a||"").replace(/^.*?\?/,""),d={},e;b=b||{};c&&x(c.split("&"),function(a){a=a.split("=");var c=decodeURIComponent(a[0]);a=2===a.length?decodeURIComponent(a[1]):"";e=!1!==b.auto;var h=c,k=b.deep,c=e,m=b.separator,t=b.transform,u;if(m){for(var h=h.split(m),k=h[0],m=1,p=h.length;m<p;m++)k+="["+h[m]+"]";h=k;k=!0}!0===k&&(u=h.match(df))?ef(d,u,a,c,t):zd(d,h,a,c,t)});return d}function ef(a,b,c,d,e){var f=b[1];b=
b[2].slice(1,-1).split("][");x(b,function(b){z(a,f)||(a[f]=b?{}:[]);a=r(a,f);f=b?b:a.length.toString()});zd(a,f,c,d,e)}function zd(a,b,c,d,e){var f;e&&(f=e(c,b,a));n(f)?c=f:d&&(c=ff(a,b,c));a[b]=c}function ff(a,b,c){if(c){if("true"===c)return!0;if("false"===c)return!1}else return null;var d=+c;if(!isNaN(d)&&""!==c&&!gf.test(c))return d;a=r(a,b);return c&&a?D(a)?a.concat(c):[a,c]:c}function hc(a,b,c){c=c||{};return Eb(a,b,c.deep,c.resolve,c.hidden,c.descriptor)}function ic(a,b,c){D(b)||(b=[b]);x(b,
function(b){return hc(a,b,c)});return a}function hf(a,b,c){jc&&a?Ad(jc,b,c,a):q(b,c);Bd&&Ad(Bd,b,c,a)}function Ad(a,b,c,d){a=a(b);for(var e,f=0,g;g=a[f];f++)e=Cd(b,g),(e.enumerable||d)&&c(b[g],g)}function Eb(a,b,c,d,e,f){var g=H(d),h=!1!==d;v(a)?a=Dd(b):h&&S(a)&&S(b)&&a.setTime(b.getTime());if(na(a))return b;na(b)&&(b=Fa(b));hf(e,b,function(k,m){var t,u,p,l;t=b[m];u=r(a,m);if(g){l=d(m,u,t,a,b);if(v(l))return;n(l)&&l!==w&&(t=l,p=!0)}else if(v(t))return;if((p=!p&&c&&I(t)&&!ga(t))||h||!n(u))p&&(t=Eb(u,
t,c,d,e,f)),jc&&f?(u=a,p=Cd(b,m),n(p.value)&&(p.value=t),Nb(u,m,p)):a[m]=t});return a}function Dd(a){var b=X(a);if(D(a,b))return[];if(pb(a,b))return{};if(S(a,b))return new Date(a.getTime());if(ga(a,b))return RegExp(a.source,Ha(a));if(na(a&&a.valueOf()))return a;throw new TypeError("Must be a basic data type");}function kc(a,b){var c=Dd(a);return Eb(c,a,b,!0,!0,!0)}function jf(a){var b=[];q(a,function(a){b.push(a)});return b}function kf(a,b){var c=b;H(b)||(c=function(){if(b)a[b]()});c.call(a,a);return a}
function Ed(a,b,c){var d,e={};b=[].concat(b);q(a,function(a,g){d=!1;for(var h=0;h<b.length;h++){var k=b[h],m=g;(ga(k)?k.test(m):I(k)?m in k:m===String(k))&&(d=!0)}d===c&&(e[g]=a)});return e}function lf(a,b){var c=fa(b);q(a,function(b,e){c(b,e,a)&&delete a[e]});return a}function mf(a,b){var c={},d=fa(b);q(a,function(b,f){d(b,f,a)||(c[f]=b)});return c}function Fd(a,b,c){if(!I(a))return c?a:{};b=Fa(b);return Eb({},a,!1,function(a,e,f){if((a in b&&xa(f,b[a]))!==c)return f})}function Gd(a,b){var c=0;gb(a,
b,function(a){c+=a});return c}function Hd(a,b){var c=0,d=0;gb(a,b,function(a){c+=a;d++});return c/(d||1)}function Id(a,b){var c=[],d,e;gb(a,b,function(a){c.push(a)});e=c.length;if(!e)return 0;c.sort(function(a,b){return(a||0)-(b||0)});d=K(e/2);return e%2?c[d]:(c[d-1]+c[d])/2}function hb(a,b,c,d,e){var f=[],g,h,k;Oa(b)&&(k=b,b=c);gb(a,b,function(b,c){if(v(b))throw new TypeError("Cannot compare with undefined");g=e?c:a[c];if(b===h)f.push(g);else if(v(h)||d&&b>h||!d&&b<h)f=[g],h=b});return Jd(f,a,k,
e)}function Fb(a,b,c,d,e){var f={},g=[],h,k;Oa(b)&&(k=b,b=c);gb(a,b,function(b,c){var d=Ga(b,g),h=r(f,d)||[];h.push(e?c:a[c]);f[d]=h});d=hb(f,!!k,"length",d,!0);k?(h=[],q(d,function(a){h=h.concat(a)})):h=r(f,d);return Jd(h,a,k,e)}function Jd(a,b,c,d){if(d&&c)return a.reduce(function(a,c){a[c]=b[c];return a},{});a&&!c&&(a=a[0]);return a}function gb(a,b,c){var d=D(a);q(a,function(e,f){if(d){if(!vb(f))return;f=+f}var g=oa(e,b,a,[e,f,a]);c(g,f)})}function Kd(a,b){if(H(a))return a;if(a)return function(c,
d,e){return oa(c,a,b,[c,d,e])}}function ta(a){var b;if(H(a))return a;b=fa(a);return function(a,d,e){return b(a,d,e)}}function Pa(a,b){var c=Array.prototype[a];return function(a,e,f,g){var h=Array(2);Gc(0<g);h[0]=b(e,f);h[1]=f;return c.apply(a,h)}}function nf(a,b){T(b);q(a,function(c,d){b(c,d,a)});return a}function of(a,b){var c={};q(a,function(d,e){c[e]=oa(d,b,a,[d,e,a])});return c}function pf(a,b,c){var d=n(c);q(a,function(e,f){d?c=b(c,e,f,a):(c=e,d=!0)});return c}function qf(a,b){var c=fa(b),d=
{};q(a,function(b,f){c(b,f,a)&&(d[f]=b)});return d}function rf(a,b){var c=fa(b),d=0;q(a,function(b,f){c(b,f,a)&&d++});return d}function lc(a){var b=Array.prototype[a];return function(a,d){var e=fa(d);return b.call(Object.keys(a),function(b){return e(a[b],b,a)})}}function mc(a,b,c,d){var e=a.toFixed(20),f=e.search(/\./),e=e.search(/[1-9]/),f=f-e,g,h;0<f&&--f;e=c.split(",");1===e.length&&(e=c.split(""));g=e.indexOf("|");-1===g&&(g="_"===e[0]?0:e.length);h=E(ca(Ka(f/3),e.length-g-1),-g);for(c=e[h+g];"_"===
c;)h+=0>h?-1:1,c=e[h+g];"|"===c&&(c="");-9>f&&(b=Z(f)-9);d=d?wb(2,10*h):wb(10,3*h);return Ld(Xa(a/d,b||0))+c}function Ld(a,b){var c="",d,e,f,g,h;e=Md("decimal");d=Md("thousands");h=F(b)?Xa(a,b||0).toFixed(E(b,0)):a.toString();h=h.replace(/^-/,"");f=h.split(".");g=f[0];f=f[1];if(/e/.test(h))c=h;else for(h=g.length;0<h;h-=3)h<g.length&&(c=d+c),c=g.slice(E(0,h-3),h)+c;f&&(c+=e+xb("0",(b||0)-f.length)+f);return(0>a?"-":"")+c}function nc(a){return function(b,c){return c?Xa(b,c,a):a(b)}}function Qa(a,b,
c,d,e){b=wa(b||0);Gb(a)||Gb(a,[]);oc(a,!1);Gb(a).push(setTimeout(function(){oc(a)||c.apply(d,e||[])},b))}function Nd(a){var b=Gb(a),c;if(D(b))for(;c=b.shift();)clearTimeout(c);oc(a,!0);return a}function Od(a,b,c,d){function e(){if(f.length<d-(g&&c?1:0)){for(var a=[],b=0,l=arguments.length;b<l;b++)a.push(arguments[b]);f.push([this,a])}g||(g=!0,c?h():Qa(e,k,h));return t}var f=[],g=!1,h,k,m,t;b=b||1;d=d||Infinity;k=ka(b);m=Ya(k/b)||1;h=function(){var b=f.length,c;if(0!=b){for(c=E(b-m,0);b>c;)t=Function.prototype.apply.apply(a,
f.shift()),b--;Qa(e,k,function(){g=!1;h()})}};return e}function sf(){for(var a=arguments,b=a.length,c=Array(b);b--;)c[b]=a[b];return c}function tf(a,b,c){var d={},e=[],f=0;return function(){var g=b.apply(this,arguments),g=Ga(g,e);if(z(d,g))return r(d,g);f===c&&(d={},e=[],f=0);f++;return d[g]=a.apply(this,arguments)}}function P(a,b){this.start=pc(a);this.end=pc(b)}function Pd(a){return y(a)?a.charCodeAt(0):a}function Qd(a){return null==a?a:S(a)?a.getTime():a.valueOf()}function Rd(a){a=a.toString().split(".");
return a[1]?a[1].length:0}function pc(a){return S(a)?new Date(a.getTime()):Qd(a)}function Sd(a){var b=Qd(a);return(!!b||0===b)&&-Infinity!==a&&Infinity!==a}function Hb(a){return Sd(a.start)&&Sd(a.end)&&typeof a.start===typeof a.end}function Ib(a,b,c,d){var e,f,g,h=a.start,k=a.end,m=k<h,t=h,u=0,p=[];if(!Hb(a))return[];H(b)&&(d=b,b=null);b=b||1;F(h)?(f=E(Rd(h),Rd(b)),e=function(){return Xa(t+b,f)}):y(h)?e=function(){return ma(t.charCodeAt(0)+b)}:S(h)&&(e=Td(b),b=e[0],g=e[1],e=function(){return Ud(t,
b,g)});for(m&&0<b&&(b*=-1);m?t>=k:t<=k;)c||p.push(t),d&&d(t,u,a),t=e(),u++;return c?u-1:p}function Td(a){var b;if(F(a))return[a,"Milliseconds"];b=a.match(uf);a=+b[1]||1;b=Za(b[2].toLowerCase());b.match(/hour|minute|second/i)?b+="s":"Year"===b?b="FullYear":"Week"===b?(b="Date",a*=7):"Day"===b&&(b="Date");return[a,b]}function Ud(a,b,c){var d=Vd[c];d?d=new Date(a.getTime()+b*d):(d=new Date(a),Ja(d,c,L(a,c)+b));return d}function qc(a,b){var c=a.start,d=a.end,e=d<c?d:c,c=c>d?c:d;return pc(b<e?e:b>c?c:
b)}function Ra(a){return S(a)?a:null==a?new Date:J.create?J.create(a):new Date(a)}var w,Da="undefined"!==typeof global&&global.Object===Object?global:this,vf="undefined"!==typeof module&&module.M,Lb=!1,nb={},zc={},Nb=Object.defineProperty&&Object.defineProperties?Object.defineProperty:le,Bc=yc("Chainable"),Cc=Object.getOwnPropertyNames,Dc=Object.prototype.toString,me=Object.prototype.hasOwnProperty;(function(){w=Da.Sugar;if(!w){w=function(a){q(w,function(b,c){z(nb,c)&&b.extend(a)});return w};if(vf)module.M=
w;else try{Da.Sugar=w}catch(a){}q("Object Number String Array Date RegExp Function".split(" "),function(a){xc(a)});A(w,"extend",w);A(w,"toString",ge);A(w,"createNamespace",xc);A(w,"util",{hasOwn:z,getOwn:r,setProperty:A,classToString:X,defineProperty:Nb,forEachProperty:q,mapNativeToChainable:Mb})}})();var we=!("0"in Object("a")),ve=/^(.*?)\[([-\d]*)\.\.([-\d]*)\](.*)$/,ze=/([{}])\1|\{([^}]*)\}|(%)%|(%(\w*))/g,Sa=w.Object,N=w.Array,J=w.Date,Ta=w.String,da=w.Number,rc=w.Function,Wd=w.RegExp,rb,Oa,F,
y,S,ga,H,D,sb,tb,ub,Xd=va("alias"),ua=va("defineStatic"),Q=va("defineInstance"),ib=va("defineStaticPolyfill"),Ca=va("defineInstancePolyfill"),Ob=va("defineInstanceAndStatic"),jb=va("defineInstanceWithArguments"),K=Math.trunc||function(a){return 0!==a&&isFinite(a)?0>a?ka(a):Ka(a):a},Pc,ya,jd,Z=Math.abs,wb=Math.pow,ca=Math.min,E=Math.max,ka=Math.ceil,Ka=Math.floor,Ya=Math.round,ma=String.fromCharCode,aa={},M=Wa("utc"),Ce=1E3;(function(){function a(a){f["[object "+a+"]"]=!0}function b(a,b){return b&&
ob(new b,"Object")?c(b):d(a)}function c(a){var b=String(a);return function(a){return String(a.constructor)===b}}function d(a){return function(b,c){return ob(b,a,c)}}function e(a){var b=a.toLowerCase();return function(c){var d=typeof c;return d===b||"object"===d&&ob(c,a)}}var f={};(function(){var c="Boolean Number String Date RegExp Function Array Error Set Map".split(" ");Oa=e(c[0]);F=e(c[1]);y=e(c[2]);S=b(c[3]);ga=b(c[4]);H=b(c[5]);D=Array.isArray||b(c[6]);ub=b(c[7]);sb=b(c[8],"undefined"!==typeof Set&&
Set);tb=b(c[9],"undefined"!==typeof Map&&Map);a("Arguments");a(c[0]);a(c[1]);a(c[2]);a(c[3]);a(c[4]);a(c[6])})();(function(){x("Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" "),function(b){a(b+"Array")})})();rb=function(a,b){b=b||X(a);return f[b]||pb(a,b)}})();(function(){var a="";ya={};for(var b=0,c;9>=b;b++)c=ma(b+65296),a+=c,ya[c]=ma(b+48);ya[","]="";ya["\uff0e"]=".";ya["."]=".";Pc=RegExp("["+(a+"\uff0e,.")+"]","g");jd=a})();var wf="valueOf toString constructor isPrototypeOf hasOwnProperty toLocaleString propertyIsEnumerable".split(" ");
(function(){if(!{toString:1}.propertyIsEnumerable("toString")){var a=q;q=function(b,c){a(b,c);for(var d=0,e;(e=wf[d])&&(!z(b,e)||!1!==c.call(b,b[e],e,b));d++);}}})();Object.getOwnPropertyNames||De();ib(Sa,{keys:function(a){var b=[];if(null==a)throw new TypeError("Object required");q(Fa(a),function(a,d){b.push(d)});return b}});ib(N,{isArray:function(a){return D(a)}});Ca(N,{every:function(a){var b=arguments[1],c=this.length,d=0;for(T(a);d<c;){if(d in this&&!a.call(b,this[d],d,this))return!1;d++}return!0},
some:function(a){var b=arguments[1],c=this.length,d=0;for(T(a);d<c;){if(d in this&&a.call(b,this[d],d,this))return!0;d++}return!1},map:function(a){var b=arguments[1],c=this.length,d=0,e=Array(c);for(T(a);d<c;)d in this&&(e[d]=a.call(b,this[d],d,this)),d++;return e},filter:function(a){var b=arguments[1],c=this.length,d=0,e=[];for(T(a);d<c;)d in this&&a.call(b,this[d],d,this)&&e.push(this[d]),d++;return e},indexOf:function(a){var b=arguments[1];return y(this)?this.indexOf(a,b):Rc(this,a,b)},lastIndexOf:function(a){var b=
arguments[1];return y(this)?this.lastIndexOf(a,b):Rc(this,a,b,!0)},forEach:function(a){var b=arguments[1],c=this.length,d=0;for(T(a);d<c;)d in this&&a.call(b,this[d],d,this),d++},reduce:function(a){return Sc(this,a,arguments[1])},reduceRight:function(a){return Sc(this,a,arguments[1],!0)}});var xf=RegExp("^[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u2028\u2029\u3000\ufeff]+|[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u2028\u2029\u3000\ufeff]+$",
"g");Ca(Ta,{trim:function(){return this.toString().replace(xf,"")}});Ca(rc,{bind:function(a){for(var b=[],c=1,d=arguments.length;c<d;c++)b.push(arguments[c]);var e=this;T(this);c=function(){for(var c=[],d=0,h=arguments.length;d<h;d++)c.push(arguments[d]);return e.apply(e.prototype&&this instanceof e?this:a,b.concat(c))};c.prototype=this.prototype;return c}});ib(J,{now:function(){return(new Date).getTime()}});Ca(J,{toISOString:function(){return R(this.getUTCFullYear(),4)+"-"+R(this.getUTCMonth()+1,
2)+"-"+R(this.getUTCDate(),2)+"T"+R(this.getUTCHours(),2)+":"+R(this.getUTCMinutes(),2)+":"+R(this.getUTCSeconds(),2)+"."+R(this.getUTCMilliseconds(),3)+"Z"},toJSON:function(a){return this.toISOString(a)}},!function(){var a=new Date(Date.UTC(2E3,0));return!!a.toISOString&&"2000-01-01T00:00:00.000Z"===a.toISOString()}());Ca(Ta,{includes:function(a){var b=arguments[1],c=Xb(this);a=Yb(a);return-1!==c.indexOf(a,b)},startsWith:function(a){var b=arguments[1],c,d,e;c=Xb(this);a=Yb(a);d=c.length;b=ca(E(+b||
0,0),d);e=a.length;return e+b>d?!1:c.substr(b,e)===a?!0:!1},endsWith:function(a){var b=arguments[1],c,d,e;c=Xb(this);a=Yb(a);d=e=c.length;n(b)&&(d=+b||0);d=ca(E(d,0),e);b=a.length;d-=b;return 0>d?!1:c.substr(d,b)===a?!0:!1},repeat:function(a){a=wa(a);return xb(this,a)}});ib(da,{isNaN:function(a){return null!=a&&a!==a}});ib(N,{from:function(a){var b=arguments[1],c=arguments[2],d,e;n(b)&&T(b);if(null==a)throw new TypeError("Object required.");a=Fa(a);d=K(E(0,a.length||0));if(!vb(d))throw new RangeError("Invalid array length");
H(this)?(e=new this(d),e.length=d):e=Array(d);for(var f=0;f<d;f++)A(e,f,n(b)?b.call(c,a[f],f):a[f],!0);return e}});Ca(N,{find:function(a){var b=arguments[1];T(a);for(var c=0,d=this.length;c<d;c++)if(a.call(b,this[c],c,this))return this[c]},findIndex:function(a){var b=arguments[1];T(a);for(var c=0,d=this.length;c<d;c++)if(a.call(b,this[c],c,this))return c;return-1}});Ca(N,{includes:function(a){var b=arguments[1],c;if(y(this))return this.includes(a,b);b=b?b.valueOf():0;c=this.length;for(0>b&&(b=E(0,
b+c));b<c;b++){var d=this[b];if(null!=a&&a!==a?null!=d&&d!==d:a===d&&(0!==a||1/a===1/d))return!0}return!1}});var Me="months weekdays units numerals placeholders articles tokens timeMarkers ampm timeSuffixes parse timeParse timeFrontParse modifiers".split(" "),yf=/(\w{3})[()\s\d]*$/,dc={yyyy:{h:"year",src:"\\d{4}"},MM:{h:"month",src:"[01]?\\d"},dd:{h:"date",src:"[0123]?\\d"},hh:{h:"hour",src:"[0-2]?\\d"},mm:{h:"minute",src:"[0-5]\\d"},ss:{h:"second",src:"[0-5]\\d(?:[,.]\\d+)?"},yy:{h:"year",src:"\\d{2}"},
y:{h:"year",src:"\\d"},yearSign:{src:"[+-]",sign:!0},tzHour:{src:"[0-1]\\d"},tzMinute:{src:"[0-5]\\d"},tzSign:{src:"[+\u2212-]",sign:!0},ihh:{h:"hour",src:"[0-2]?\\d(?:[,.]\\d+)?"},imm:{h:"minute",src:"[0-5]\\d(?:[,.]\\d+)?"},GMT:{h:"utc",src:"GMT",C:1},Z:{h:"utc",src:"Z",C:1},timestamp:{src:"\\d+"}},gd={year:{i:"yyyy",A:!0},month:{i:"MM",A:!0},date:{i:"dd",A:!0},hour:{i:"hh",K:":"},minute:{i:"mm"},second:{i:"ss"},num:{src:"\\d+",V:!0}},Ne=[{src:"{MM}[-.\\/]{yyyy}"},{time:!0,src:"{dd}[-.\\/]{MM}(?:[-.\\/]{yyyy|yy|y})?",
mdy:"{MM}[-.\\/]{dd}(?:[-.\\/]{yyyy|yy|y})?"},{time:!0,src:"{yyyy}[-.\\/]{MM}(?:[-.\\/]{dd})?"},{src:"\\\\/Date\\({timestamp}(?:[+-]\\d{4,4})?\\)\\\\/"},{src:"{yearSign?}{yyyy}(?:-?{MM}(?:-?{dd}(?:T{ihh}(?::?{imm}(?::?{ss})?)?)?)?)?{tzOffset?}"}],dd={ISO8601:"{yyyy}-{MM}-{dd}T{HH}:{mm}:{ss}.{SSS}{Z}",RFC1123:"{Dow}, {dd} {Mon} {yyyy} {HH}:{mm}:{ss} {ZZ}",RFC1036:"{Weekday}, {dd}-{Mon}-{yy} {HH}:{mm}:{ss} {ZZ}"},zf=[{b:"Dow",a:"a",j:"dow",get:function(a,b){return B.get(b).J(G(a),2)}},{b:"Weekday",
a:"A",j:"weekday",D:!0,get:function(a,b,c){return B.get(b).J(G(a),c)}},{b:"Mon",a:"b h",j:"mon",get:function(a,b){return B.get(b).I(U(a),2)}},{b:"Month",a:"B",j:"month",D:!0,get:function(a,b,c){return B.get(b).I(U(a),c)}},{a:"C",get:function(a){return ha(a).toString().slice(0,2)}},{b:"d date day",a:"d",g:2,c:"dd",l:"do",get:function(a){return ba(a)}},{a:"e",get:function(a){return R(ba(a),2,!1,10," ")}},{b:"H 24hr",a:"H",g:2,c:"HH",get:function(a){return L(a,"Hours")}},{b:"h hours 12hr",a:"I",g:2,
c:"hh",get:function(a){return L(a,"Hours")%12||12}},{b:"D",a:"j",g:3,c:"DDD",get:function(a){var b=V(qa(a),6);return Ab(a,b,ja[4])+1}},{b:"M",a:"m",g:2,l:"Mo",c:"MM",get:function(a){return U(a)+1}},{b:"m minutes",a:"M",g:2,c:"mm",get:function(a){return L(a,"Minutes")}},{b:"Q",get:function(a){return ka((U(a)+1)/3)}},{b:"TT",a:"p",get:function(a,b){return bc(a,b)}},{b:"tt",a:"P",get:function(a,b){return bc(a,b).toLowerCase()}},{b:"T",j:"t",get:function(a,b){return bc(a,b).charAt(0)}},{b:"s seconds",
a:"S",g:2,c:"ss",get:function(a){return L(a,"Seconds")}},{b:"S ms",g:3,c:"SSS",get:function(a){return L(a,"Milliseconds")}},{b:"e",a:"u",l:"eo",get:function(a){return G(a)||7}},{a:"U",g:2,get:function(a){return La(a,!1,0)}},{b:"W",a:"V",g:2,l:"Wo",c:"WW",get:function(a){return La(a,!0)}},{a:"w",get:function(a){return G(a)}},{b:"w",l:"wo",c:"ww",get:function(a,b){var c=B.get(b);return La(a,!0,c.s(b),c.H(b))}},{a:"W",g:2,get:function(a){return La(a,!1)}},{c:"gggg",u:"gg",get:function(a,b){return $c(a,
b)}},{a:"G",g:4,B:"g",c:"GGGG",u:"GG",get:function(a,b){return $c(a,b,!0)}},{b:"year",c:"yyyy",u:"yy",a:"Y",g:4,B:"y",get:function(a){return ha(a)}},{b:"ZZ",a:"z",get:function(a){return Zb(a)}},{b:"X",get:function(a){return K(a.getTime()/1E3)}},{b:"x",get:function(a){return a.getTime()}},{b:"Z",get:function(a){return Zb(a,!0)}},{b:"z",a:"Z",get:function(a){return(a=a.toString().match(yf))?a[1]:""}},{a:"D",alias:"%m/%d/%y"},{a:"F",alias:"%Y-%m-%d"},{a:"r",alias:"%I:%M:%S %p"},{a:"R",alias:"%H:%M"},
{a:"T",alias:"%H:%M:%S"},{a:"x",alias:"{short}"},{a:"X",alias:"{time}"},{a:"c",alias:"{stamp}"}],ja=[{name:"millisecond",method:"Milliseconds",f:1,start:0,end:999},{name:"second",method:"Seconds",f:1E3,start:0,end:59},{name:"minute",method:"Minutes",f:6E4,start:0,end:59},{name:"hour",method:"Hours",f:36E5,start:0,end:23},{name:"day",alias:"date",method:"Date",m:!0,f:864E5,start:1,end:function(a){return Uc(a)}},{name:"week",method:"ISOWeek",m:!0,f:6048E5},{name:"month",method:"Month",m:!0,f:26298E5,
start:0,end:11},{name:"year",method:"FullYear",m:!0,f:315576E5,start:0}],Fe=Pb(J,{newDateInternal:function(){return new Date}}),O,kb,Bb,Ba,B;ua(J,{create:function(a,b){return la(a,b)},getLocale:function(a){return B.get(a,!a)},getAllLocales:function(){return B.getAll()},getAllLocaleCodes:function(){return Object.keys(B.getAll())},setLocale:function(a){return B.set(a)},addLocale:function(a,b){return B.add(a,b)},removeLocale:function(a){return B.remove(a)}});jb(J,{set:function(a,b){b=Vc(b);return sa(a,
b[0],b[1])},advance:function(a,b){return Xc(a,b,1)},rewind:function(a,b){return Xc(a,b,-1)}});Q(J,{get:function(a,b,c){return cb(a,b,c,void 0).date},setWeekday:function(a,b){return ra(a,b)},setISOWeek:function(a,b){return Zc(a,b)},getISOWeek:function(a){return La(a,!0)},beginningOfISOWeek:function(a){var b=G(a);0===b?b=-6:1!==b&&(b=1);ra(a,b);return V(a,3)},endOfISOWeek:function(a){0!==G(a)&&ra(a,7);return zb(a,4)},getUTCOffset:function(a,b){return Zb(a,b)},setUTC:function(a,b){return M(a,b)},isUTC:function(a){return!!M(a)||
0===a.getTimezoneOffset()},isValid:function(a){return!isNaN(a.getTime())},isAfter:function(a,b,c){return a.getTime()>la(b).getTime()-(c||0)},isBefore:function(a,b,c){return a.getTime()<la(b).getTime()+(c||0)},isBetween:function(a,b,c,d){a=a.getTime();b=la(b).getTime();var e=la(c).getTime();c=ca(b,e);b=E(b,e);d=d||0;return c-d<=a&&b+d>=a},isLeapYear:function(a){a=ha(a);return 0===a%4&&0!==a%100||0===a%400},daysInMonth:function(a){return Uc(a)},format:function(a,b,c){return bd(a,b,c)},relative:function(a,
b,c){return ad(a,null,b,c)},relativeTo:function(a,b,c){return ad(a,la(b),c)},is:function(a,b,c){return ed(a,b,c)},reset:function(a,b,c){b=b?Ie(b):4;bb(a,b,c);return a},clone:function(a){return qa(a)},iso:function(a){return a.toISOString()},getWeekday:function(a){return G(a)},getUTCWeekday:function(a){return a.getUTCDay()}});Q(da,{duration:function(a,b){return B.get(b).N(a)}});var sc={code:"en",plural:!0,timeMarkers:"at",ampm:"AM|A.M.|a,PM|P.M.|p",units:"millisecond:|s,second:|s,minute:|s,hour:|s,day:|s,week:|s,month:|s,year:|s",
months:"Jan:uary|,Feb:ruary|,Mar:ch|,Apr:il|,May,Jun:e|,Jul:y|,Aug:ust|,Sep:tember|t|,Oct:ober|,Nov:ember|,Dec:ember|",weekdays:"Sun:day|,Mon:day|,Tue:sday|,Wed:nesday|,Thu:rsday|,Fri:day|,Sat:urday|+weekend",numerals:"zero,one|first,two|second,three|third,four:|th,five|fifth,six:|th,seven:|th,eight:|h,nin:e|th,ten:|th",articles:"a,an,the",tokens:"the,st|nd|rd|th,of|in,a|an,on",time:"{H}:{mm}",past:"{num} {unit} {sign}",future:"{num} {unit} {sign}",duration:"{num} {unit}",modifiers:[{name:"half",
src:"half",value:.5},{name:"midday",src:"noon",value:12},{name:"midday",src:"midnight",value:24},{name:"day",src:"yesterday",value:-1},{name:"day",src:"today|tonight",value:0},{name:"day",src:"tomorrow",value:1},{name:"sign",src:"ago|before",value:-1},{name:"sign",src:"from now|after|from|in|later",value:1},{name:"edge",src:"first day|first|beginning",value:-2},{name:"edge",src:"last day",value:1},{name:"edge",src:"end|last",value:2},{name:"shift",src:"last",value:-1},{name:"shift",src:"the|this",
value:0},{name:"shift",src:"next",value:1}],parse:"(?:just)? now;{shift} {unit:5-7};{months?} (?:{year}|'{yy});{midday} {4?} {day|weekday};{months},?(?:[-.\\/\\s]{year})?;{edge} of (?:day)? {day|weekday};{0} {num}{1?} {weekday} {2} {months},? {year?};{shift?} {day?} {weekday?} {timeMarker?} {midday};{sign?} {3?} {half} {3?} {unit:3-4|unit:7} {sign?};{0?} {edge} {weekday?} {2} {shift?} {unit:4-7?} {months?},? {year?}".split(";"),timeParse:"{day|weekday};{shift} {unit:5?} {weekday};{0?} {date}{1?} {2?} {months?};{weekday} {2?} {shift} {unit:5};{0?} {num} {2?} {months}\\.?,? {year?};{num?} {unit:4-5} {sign} {day|weekday};{year}[-.\\/\\s]{months}[-.\\/\\s]{date};{0|months} {date?}{1?} of {shift} {unit:6-7};{0?} {num}{1?} {weekday} of {shift} {unit:6};{date}[-.\\/\\s]{months}[-.\\/\\s](?:{year}|'?{yy});{weekday?}\\.?,? {months}\\.?,? {date}{1?},? (?:{year}|'{yy})?".split(";"),
timeFrontParse:["{sign} {num} {unit}","{num} {unit} {sign}","{4?} {day|weekday}"]},Yd=Y(Y({},sc),{mdy:!0,firstDayOfWeek:0,firstDayOfWeekYear:1,"short":"{MM}/{dd}/{yyyy}",medium:"{Month} {d}, {yyyy}","long":"{Month} {d}, {yyyy} {time}",full:"{Weekday}, {Month} {d}, {yyyy} {time}",stamp:"{Dow} {Mon} {d} {yyyy} {time}",time:"{h}:{mm} {TT}"}),Zd=Y(Y({},sc),{"short":"{dd}/{MM}/{yyyy}",medium:"{d} {Month} {yyyy}","long":"{d} {Month} {yyyy} {H}:{mm}",full:"{Weekday}, {d} {Month}, {yyyy} {time}",stamp:"{Dow} {d} {Mon} {yyyy} {time}"}),
Af=Y(Y({},sc),{"short":"{yyyy}-{MM}-{dd}",medium:"{d} {Month}, {yyyy}","long":"{d} {Month}, {yyyy} {H}:{mm}",full:"{Weekday}, {d} {Month}, {yyyy} {time}",stamp:"{Dow} {d} {Mon} {yyyy} {time}"}),$d={"en-US":Yd,"en-GB":Zd,"en-AU":Zd,"en-CA":Af};(function(){function a(a){this.o={};this.add(a)}a.prototype={get:function(a,c){var d=this.o[a];!d&&$d[a]?d=this.add(a,$d[a]):!d&&a&&(d=this.o[a.slice(0,2)]);return d||!1===c?d:this.current},getAll:function(){return this.o},set:function(a){var c=this.get(a,!1);
if(!c)throw new TypeError("Invalid Locale: "+a);return this.current=c},add:function(a,c){c?c.code=a:(c=a,a=c.code);var d=c.compiledFormats?c:id(c);this.o[a]=d;this.current||(this.current=d);return d},remove:function(a){this.current.code===a&&(this.current=this.get("en"));return delete this.o[a]}};Ba=id(Yd);B=new a(Ba)})();(function(){function a(a,b,c){b&&x(b.split(" "),function(b){a[b]=c})}function b(a){return function(b,c){return a(b,c).toLowerCase()}}function c(a){return function(b,c){var d=a(b,
c);return d+B.get(c).R(d)}}function d(a,b){return function(c,d){return R(a(c,d),b)}}function e(a){return function(b,c){return a(b,c)%100}}function f(a){return function(b,c){return Bb(a,b,c)}}function g(c,d){function e(a,b){return c.get(a,b,d)}a(O,c.b+d,e);c.j&&(O[c.j+d]=b(e))}function h(a){return function(b,c){var d=B.get(c);return Bb(d[a],b,c)}}O={};kb={};x(zf,function(h){var m=h.get,t;h.j&&(O[h.j]=b(m));h.l&&(O[h.l]=c(m));h.c&&(O[h.c]=d(m,h.c.length));h.u&&(O[h.u]=d(e(m),2));h.B&&(kb[h.B]=d(e(m),
2));h.g&&(t=d(m,h.g));h.alias&&(m=f(h.alias));if(h.D)for(var n=1;5>=n;n++)g(h,n);a(O,h.b,m);a(kb,h.a,t||m)});q(dd,function(b,c){a(O,c,f(b))});Va(J,"short medium long full",function(b,c){var d=h(c);a(O,c,d);b[c]=d});a(O,"time",h("time"));a(O,"stamp",h("stamp"))})();(function(){Bb=Qc(function(a,b,c){return r(O,b)(a,c)},function(a,b,c){return r(kb,b)(a,c)},function(a,b){return z(O,a)||z(kb,b)})})();(function(){Va(J,ja,function(a,b,c){var d=b.name,e=Za(d);4<c&&x(["Last","This","Next"],function(b){a["is"+
b+e]=function(a,c){return fd(a,b+" "+d,0,c,{locale:"en"})}});3<c&&(a["beginningOf"+e]=function(a,b){return bb(a,c,b)},a["endOf"+e]=function(a,b){return zb(a,c,b)});a["add"+e+"s"]=function(a,b,c){return Aa(a,d,b,c)};a[d+"sAgo"]=a[d+"sUntil"]=function(a,c,d){return Ab(cb(a,c,d,!0).date,a,b)};a[d+"sSince"]=a[d+"sFromNow"]=function(a,c,d){return Ab(a,cb(a,c,d,!0).date,b)}})})();(function(){Va(da,ja,function(a,b){var c=b.name,d,e,f;d=function(a){return Ya(a*b.f)};e=function(a,b,d){return Aa(la(b,d,!0),
c,a)};f=function(a,b,d){return Aa(la(b,d,!0),c,-a)};a[c]=d;a[c+"s"]=d;a[c+"Before"]=f;a[c+"sBefore"]=f;a[c+"Ago"]=f;a[c+"sAgo"]=f;a[c+"After"]=e;a[c+"sAfter"]=e;a[c+"FromNow"]=e;a[c+"sFromNow"]=e})})();(function(){var a=Ba.weekdays.slice(0,7),b=Ba.months.slice(0,12);Va(J,"Today Yesterday Tomorrow Weekday Weekend Future Past".split(" ").concat(a).concat(b),function(a,b){a["is"+b]=function(a){return ed(a,b)}})})();Hc(J,la);var Re=/[^\u0000-\u0040\u005B-\u0060\u007B-\u007F]+('s)?/g,Qe=/(^|_)([^_]+)/g,
We=/&#?(x)?([\w\d]{0,5});/gi,Bf=/[&<>]/g,md={lt:"<",gt:">",amp:"&",nbsp:" ",quot:'"',apos:"'"},tc,Te="and or nor a an the so but to of at by from into on onto off out in over with for".split(" "),Xe="area base br col command embed hr img input keygen link meta param source track wbr".split(" "),Cf=RegExp("^[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u2028\u2029\u3000\ufeff]+"),Df=RegExp("[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u2028\u2029\u3000\ufeff]+$"),
Ue=RegExp("(?=[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u2028\u2029\u3000\ufeff])"),Ef=String.prototype.includes,uc,vc,Ff=Qc(qb);Q(Ta,{includes:ea(function(a,b,c){if(!ga(b))return Ef.call(a,b,c);c&&(a=a.slice(c));return b.test(a)})},["enhance","enhanceString"]);Q(Ta,{at:function(a,b,c){return Mc(a,b,c,!0)},escapeURL:function(a,b){return b?encodeURIComponent(a):encodeURI(a)},unescapeURL:function(a,b){return b?decodeURI(a):decodeURIComponent(a)},
escapeHTML:function(a){return a.replace(Bf,function(a){return r(tc,a)})},unescapeHTML:function(a){return Ve(a)},stripTags:function(a,b,c){return od(a,b,c,!0)},removeTags:function(a,b,c){return od(a,b,c,!1)},encodeBase64:function(a){return uc(a)},decodeBase64:function(a){return vc(a)},forEach:function(a,b,c){return eb(a,b,c)},chars:function(a,b,c){return eb(a,b,c)},words:function(a,b){return eb(a.trim(),/\S+/g,b)},lines:function(a,b){return eb(a.trim(),/^.*$/gm,b)},codes:function(a,b){return ld(a,
b)},shift:function(a,b){var c="";b=b||0;ld(a,function(a){c+=ma(a+b)});return c},isBlank:function(a){return 0===a.trim().length},isEmpty:function(a){return 0===a.length},insert:function(a,b,c){c=v(c)?a.length:c;return a.slice(0,c)+b+a.slice(c)},remove:function(a,b){return a.replace(b,"")},removeAll:function(a,b){return nd(a,b)},reverse:function(a){return a.split("").reverse().join("")},compact:function(a){return a.trim().replace(/([\r\n\s\u3000])+/g,function(a,c){return"\u3000"===c?c:" "})},from:function(a,
b){return a.slice(qd(a,b,!0))},to:function(a,b){v(b)&&(b=a.length);return a.slice(0,qd(a,b))},dasherize:function(a){return fb(a).replace(/_/g,"-")},underscore:function(a){return fb(a)},camelize:function(a,b){return Pe(a,b)},spacify:function(a){return fb(a).replace(/_/g," ")},titleize:function(a){return Se(a)},parameterize:function(a,b){var c,d=b;void 0===d&&(d="-");c=a.replace(/[^a-z0-9\-_]+/gi,d);d&&(d=RegExp(["^","+|","+$|(",")","+"].join(Ia(d)),"g"),c=c.replace(d,"$1"));return encodeURI(c.toLowerCase())},
truncate:function(a,b,c,d){return kd(a,b,c,d)},truncateOnWord:function(a,b,c,d){return kd(a,b,c,d,!0)},pad:function(a,b,c){var d;b=wa(b);d=E(0,b-a.length)/2;b=Ka(d);d=ka(d);return Db(b,c)+a+Db(d,c)},padLeft:function(a,b,c){b=wa(b);return Db(E(0,b-a.length),c)+a},padRight:function(a,b,c){b=wa(b);return a+Db(E(0,b-a.length),c)},first:function(a,b){v(b)&&(b=1);return a.substr(0,b)},last:function(a,b){v(b)&&(b=1);return a.substr(0>a.length-b?0:a.length-b)},toNumber:function(a,b){return Vb(a,b)},capitalize:function(a,
b,c){return ec(a,b,c)},trimLeft:function(a){return a.replace(Cf,"")},trimRight:function(a){return a.replace(Df,"")}});jb(Ta,{replaceAll:function(a,b,c){return nd(a,b,c)},format:function(a,b){var c=b[0]&&b[0].valueOf();1===b.length&&I(c)&&(b=c);return Ff(a,b)}});(function(){function a(a){return function(b){try{return a(b)}catch(c){return""}}}var b,c;if("undefined"!==typeof Buffer)uc=function(a){return(new Buffer(a)).toString("base64")},vc=function(a){return(new Buffer(a,"base64")).toString("utf8")};
else{if("undefined"!==typeof btoa)b=a(btoa),c=a(atob);else{var d=/[^A-Za-z0-9\+\/\=]/g;b=function(a){var b="",c,d,k,m,n,q,p=0;do c=a.charCodeAt(p++),d=a.charCodeAt(p++),k=a.charCodeAt(p++),m=c>>2,c=(c&3)<<4|d>>4,n=(d&15)<<2|k>>6,q=k&63,isNaN(d)?n=q=64:isNaN(k)&&(q=64),b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(m),b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(n),
b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(q);while(p<a.length);return b};c=function(a){var b="",c,h,k,m,n,q=0;if(a.match(d))return"";a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");do c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(q++)),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(q++)),m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(q++)),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(q++)),
c=c<<2|h>>4,h=(h&15)<<4|m>>2,k=(m&3)<<6|n,b+=ma(c),64!=m&&(b+=ma(h)),64!=n&&(b+=ma(k));while(q<a.length);return b}}uc=function(a){return b(unescape(encodeURIComponent(a)))};vc=function(a){return decodeURIComponent(escape(c(a)))}}})();(function(){tc={};q(md,function(a,b){tc[a]="&"+b+";"})})();var Gf=!("0"in[].concat(void 0).concat()),Hf={sortIgnore:null,sortNatural:!0,sortIgnoreCase:!0,sortOrder:function(){return pa("A\u00c1\u00c0\u00c2\u00c3\u0104BC\u0106\u010c\u00c7D\u010e\u00d0E\u00c9\u00c8\u011a\u00ca\u00cb\u0118FG\u011eH\u0131I\u00cd\u00cc\u0130\u00ce\u00cfJKL\u0141MN\u0143\u0147\u00d1O\u00d3\u00d2\u00d4PQR\u0158S\u015a\u0160\u015eT\u0164U\u00da\u00d9\u016e\u00db\u00dcVWXY\u00ddZ\u0179\u017b\u017d\u00de\u00c6\u0152\u00d8\u00d5\u00c5\u00c4\u00d6".split(""),
function(a){return a+a.toLowerCase()}).join("")}(),sortCollate:function(a,b){var c,d,e,f,g=0,h=0,k=Na("sortOrder");c=Na("sortIgnore");var m=Na("sortNatural");d=Na("sortIgnoreCase");var n=Na("sortEquivalents");a=xd(a,c,d);b=xd(b,c,d);do e=yd(a,g,n),f=yd(b,g,n),c=e?k.indexOf(e):null,d=f?k.indexOf(f):null,-1===c||-1===d?(c=a.charCodeAt(g)||null,d=b.charCodeAt(g)||null,m&&(48<=c&&57>=c||65296<=c&&65305>=c)&&(48<=d&&57>=d||65296<=d&&65305>=d)&&(c=Vb(a.slice(g)),d=Vb(b.slice(g)))):(e=e!==a.charAt(g),f=
f!==b.charAt(g),e!==f&&0===h&&(h=e-f)),g+=1;while(null!=c&&null!=d&&c===d);return c===d?h:c-d},sortEquivalents:function(){var a={};x("A\u00c1\u00c0\u00c2\u00c3\u00c4 C\u00c7 E\u00c9\u00c8\u00ca\u00cb I\u00cd\u00cc\u0130\u00ce\u00cf O\u00d3\u00d2\u00d4\u00d5\u00d6 S\u00df U\u00da\u00d9\u00db\u00dc".split(" "),function(b){var c=b.charAt(0);x(b.slice(1).split(""),function(b){a[b]=c;a[b.toLowerCase()]=c.toLowerCase()})});return a}()},Na=Pb(N,Hf);ua(N,{create:function(a,b){return rd(a,b)},construct:function(a,
b){a=wa(a);return Array.from(Array(a),function(a,d){return b&&b(d)})}});Q(N,{isEmpty:function(a){return 0===a.length},isEqual:function(a,b){return xa(a,b)},clone:function(a){return Ma(a)},at:function(a,b,c){return Mc(a,b,c)},add:function(a,b,c){return sd(Ma(a),b,c)},subtract:function(a,b){return vd(a,b,!0)},append:function(a,b,c){return sd(a,b,c)},removeAt:function(a,b,c){if(v(b))return a;v(c)&&(c=b);a.splice(b,c-b+1);return a},unique:function(a,b){return td(a,b)},flatten:function(a,b){return ud(a,
b)},first:function(a,b){if(v(b))return a[0];0>b&&(b=0);return a.slice(0,b)},last:function(a,b){return v(b)?a[a.length-1]:a.slice(0>a.length-b?0:a.length-b)},from:function(a,b){return a.slice(b)},to:function(a,b){v(b)&&(b=a.length);return a.slice(0,b)},compact:function(a,b){return $e(a,b)},groupBy:function(a,b,c){return af(a,b,c)},inGroups:function(a,b,c){var d=n(c),e=Array(b),f=ka(a.length/b);Rb(b,function(b){var h=b*f,k=a.slice(h,h+f);d&&k.length<f&&Rb(f-k.length,function(){k.push(c)});e[b]=k});
return e},inGroupsOf:function(a,b,c){var d=[],e=a.length,f;if(0===e||0===b)return a;v(b)&&(b=1);v(c)&&(c=null);Rb(ka(e/b),function(e){for(f=a.slice(b*e,b*e+b);f.length<b;)f.push(c);d.push(f)});return d},shuffle:function(a){a=Ma(a);for(var b=a.length,c,d;b;)c=Math.random()*b|0,d=a[--b],a[b]=a[c],a[c]=d;return a},sample:function(a,b,c){var d=[],e,f;Oa(b)||(e=b,b=c);v(e)&&(e=1,f=!0);b||(a=Ma(a));e=ca(e,a.length);for(b=0;b<e;b++)c=K(Math.random()*a.length),d.push(a[c]),a.splice(c,1);return f?d[0]:d},
sortBy:function(a,b,c){a.sort(function(d,e){var f=oa(d,b,a,[d]),g=oa(e,b,a,[e]);return wd(f,g)*(c?-1:1)});return a},remove:function(a,b){for(var c=fa(b),d=0;d<a.length;)c(a[d],d,a)?a.splice(d,1):d++;return a},exclude:function(a,b){for(var c=[],d=fa(b),e=0;e<a.length;e++)d(a[e],e,a)||c.push(a[e]);return c},union:function(a,b){var c;c=Gf?Ze(a,b):a.concat(b);return td(c)},intersect:function(a,b){return vd(a,b,!1)}});jb(N,{zip:function(a,b){return pa(a,function(a,d){return[a].concat(pa(b,function(a){return d in
a?a[d]:null}))})}});Xd(N,"insert","append");Hc(N,rd);var df=/^(.+?)(\[.*\])$/,gf=/[^\d.-]/,jc=Object.getOwnPropertyNames,Bd=Object.getOwnPropertySymbols,Cd=Object.getOwnPropertyDescriptor;ua(Sa,{fromQueryString:function(a,b){return cf(a,b)}});Ob(Sa,{has:function(a,b,c){return Ea(a,b,c,!0)},get:function(a,b,c){return qb(a,b,c)},set:function(a,b,c){Ea(a,b,!1,!1,!0,!1,c);return a},size:function(a){return Object.keys(Fa(a)).length},isEmpty:function(a){return 0===Object.keys(Fa(a)).length},toQueryString:function(a,
b){var c;c=b||{};v(c.separator)&&(c.separator="_");return fc(a,c.deep,c.transform,c.prefix||"",c.separator)},isEqual:function(a,b){return xa(a,b)},merge:function(a,b,c){return hc(a,b,c)},mergeAll:function(a,b,c){return ic(a,b,c)},add:function(a,b,c){return hc(kc(a),b,c)},addAll:function(a,b,c){return ic(kc(a),b,c)},intersect:function(a,b){return Fd(a,b,!1)},subtract:function(a,b){return Fd(a,b,!0)},defaults:function(a,b,c){c=c||{};c.resolve=c.resolve||!1;return ic(a,b,c)},clone:function(a,b){return kc(a,
b)},values:function(a){return jf(a)},invert:function(a,b){var c={};b=!0===b;q(a,function(a,e){z(c,a)&&b?c[a].push(e):c[a]=b?[e]:e});return c},tap:function(a,b){return kf(a,b)},isArguments:function(a){var b;b=b||X(a);return!na(a)&&"length"in a&&("[object Arguments]"===b||!!a.callee)},isObject:function(a){return pb(a)},remove:function(a,b){return lf(a,b)},exclude:function(a,b){return mf(a,b)},select:function(a,b){return Ed(a,b,!0)},reject:function(a,b){return Ed(a,b,!1)}});Q(Sa,{keys:function(a){return Object.keys(a)}});
(function(){var a=[Oa,F,y,S,ga,H,D,ub,sb,tb];ne(Sa,function(b,c,d){b["is"+c]=a[d]})})();var ae=Pa("some",ta),be=Pa("filter",ta);Q(N,{map:ea(Pa("map",Kd)),some:ea(ae),every:ea(Pa("every",ta)),filter:ea(be),find:ea(Pa("find",ta)),findIndex:ea(Pa("findIndex",ta))},["enhance","enhanceArray"]);Q(N,{none:ea(function(){return!ae.apply(this,arguments)}),count:ea(function(a,b){return v(b)?a.length:be.apply(this,arguments).length}),min:function(a,b,c){return hb(a,b,c)},max:function(a,b,c){return hb(a,b,c,!0)},
least:function(a,b,c){return Fb(a,b,c)},most:function(a,b,c){return Fb(a,b,c,!0)},sum:function(a,b){return Gd(a,b)},average:function(a,b){return Hd(a,b)},median:function(a,b){return Id(a,b)}});var ce=lc("some");Ob(Sa,{forEach:function(a,b){return nf(a,b)},map:function(a,b){return of(a,b)},some:ce,every:lc("every"),filter:function(a,b){return qf(a,b)},reduce:function(a,b,c){return pf(a,b,c)},find:lc("find"),count:function(a,b){return rf(a,b)},none:function(a,b){return!ce(a,b)},sum:function(a,b){return Gd(a,
b)},average:function(a,b){return Hd(a,b)},median:function(a,b){return Id(a,b)},min:function(a,b,c){return hb(a,b,c,!1,!0)},max:function(a,b,c){return hb(a,b,c,!0,!0)},least:function(a,b,c){return Fb(a,b,c,!1,!0)},most:function(a,b,c){return Fb(a,b,c,!0,!0)}});(function(){function a(a,b,c){var d=a;b&&(d=a.slice(b),c&&(d=d.concat(a.slice(0,b))));return d}function b(a,b){return ca(b,E(0,a))}function c(a,b,c,d,e,n){return function(d,k,l){l=Tb(l+b,e,n);return c.call(a,d,k,l,a)}}function d(a,b,c,d,e,n){return function(q,
p){p=Tb(p+b,e,n);return c.call(d,a[p],p,a)}}function e(c,e){var h=e.i||Array.prototype[c],k=e.apply||d,m=e.slice||a,n=e.clamp||b,q=e.result,p=e.v;return function(a,b,c){var d=[],e=0,f,g,r;f=a.length;Oa(c[0])&&(g=c[e++]);r=c[e++];e=c[e];0>b&&(b+=f);b=n(b,f);Gc(c.length);r=p?p(r,e):r;d.push(k(a,b,r,e,f,g));e&&d.push(e);a=h.apply(m(a,b,g),d);q&&(a=q(a,b,f));return a}}q({forEach:{i:function(a){x(this,a)}},map:{v:Kd},"some every":{v:ta},findIndex:{v:ta,result:function(a,b,c){-1!==a&&(a=(a+b)%c);return a}},
reduce:{apply:c},"filter find":{v:ta},reduceRight:{apply:c,slice:function(a,b,c){c||(a=a.slice(0,E(0,b+1)));return a},clamp:function(a,b){return ca(b,E(-1,a))}}},function(a,b){x(b.split(" "),function(b){jb(N,b+"FromIndex",e(b,a))})})})();var Md=Pb(da,{decimal:".",thousands:","});ua(da,{random:function(a,b){var c,d;1==arguments.length&&(b=a,a=0);c=ca(a||0,v(b)?1:b);d=E(a||0,v(b)?1:b)+1;return K(Math.random()*(d-c)+c)}});Q(da,{isInteger:function(a){return 0===a%1},isOdd:function(a){return 0===a%1&&
0!==a%2},isEven:function(a){return 0===a%2},isMultipleOf:function(a,b){return 0===a%b},log:function(a,b){return Math.log(a)/(b?Math.log(b):1)},abbr:function(a,b){return mc(a,b,"|kmbt")},metric:function(a,b,c){"all"===c?c="yzafpn\u03bcm|KMGTPEZY":c||(c="n\u03bcm|k");return mc(a,b,c)},bytes:function(a,b,c,d){"binary"===d||!d&&c?d="|,Ki,Mi,Gi,Ti,Pi,Ei":"si"!==d&&d||(d="|KMGTPE");return mc(a,b,d,c)+"B"},format:function(a,b){return Ld(a,b)},hex:function(a,b){return R(a,b||1,!1,16)},times:function(a,b){for(var c,
d,e=0;e<a;e++)d=b.call(a,e),n(d)&&(c||(c=[]),c.push(d));return c},chr:function(a){return ma(a)},pad:function(a,b,c,d){return R(a,b,c,d)},ordinalize:function(a){var b=+Z(a).toString().slice(-2);return a+Oc(b)},toNumber:function(a){return a.valueOf()},round:nc(Ya),ceil:nc(ka),floor:nc(Ka)});(function(){Va(da,"abs pow sin asin cos acos tan atan exp pow sqrt",function(a,b){a[b]=function(a,d){return Math[b](a.valueOf(),d)}})})();var Jb=Wa("lock"),Gb=Wa("timers"),de=Wa("partial"),oc=Wa("canceled"),If=Object.create||
function(a){function b(){}b.prototype=a;return new b};Q(rc,{lazy:function(a,b,c,d){return Od(a,b,c,d)},throttle:function(a,b){return Od(a,b,!0,1)},debounce:function(a,b){function c(){for(var d=[],e=0,f=arguments.length;e<f;e++)d.push(arguments[e]);Nd(c);Qa(c,b,a,this,d)}return c},cancel:function(a){return Nd(a)},after:function(a,b){var c=0,d=[];b=wa(b);return function(){for(var e=[],f=0,g=arguments.length;f<g;f++)e.push(arguments[f]);d.push(e);c++;if(c>=b)return a.call(this,d)}},once:function(a){var b=
!1,c;return function(){if(b)return c;b=!0;return c=a.apply(this,arguments)}},memoize:function(a,b,c){var d,e;F(b)||(d=b,b=c);y(d)?(e=d,d=function(a){return qb(a,e)}):d||(d=sf);return tf(a,d,b)},lock:function(a,b){var c;if(de(a))return Jb(a,F(b)?b:null),a;c=function(){arguments.length=ca(Jb(c),arguments.length);return a.apply(this,arguments)};Jb(c,F(b)?b:a.length);return c}});jb(rc,{partial:function(a,b){function c(){var e=0,f=[],g=this,h=Jb(c),k;for(k=0;k<d;k++){var m=b[k];f[k]=n(m)?m:arguments[e++]}for(k=
e;k<arguments.length;k++)f.push(arguments[k]);null===h&&(h=d);F(h)&&(f.length=ca(f.length,h));return g instanceof c?(g=If(a.prototype),e=a.apply(g,f),I(e)?e:g):a.apply(g,f)}var d=b.length;de(c,!0);return c},delay:function(a,b,c){Qa(a,b,a,a,c);return a},every:function(a,b,c){function d(){Qa(a,b,d);a.apply(a,c)}Qa(a,b,d);return a}});ua(Wd,{escape:function(a){return Ia(a)}});Q(Wd,{getFlags:function(a){return Ha(a)},setFlags:function(a,b){return RegExp(a.source,b)},addFlags:function(a,b){return RegExp(a.source,
Ha(a,b))},removeFlags:function(a,b){var c=RegExp("["+b+"]","g");return RegExp(a.source,Ha(a).replace(c,""))}});var uf=/(\d+)?\s*(year|month|week|day|hour|minute|second|millisecond)s?/i,Vd={Hours:36E5,Minutes:6E4,Seconds:1E3,Milliseconds:1};Fc(P,{toString:function(){return Hb(this)?this.start+".."+this.end:"Invalid Range"},isValid:function(){return Hb(this)},span:function(){var a=Pd(this.end)-Pd(this.start);return Hb(this)?Z(a)+1:NaN},contains:function(a){return null==a?!1:a.start&&a.end?a.start>=
this.start&&a.start<=this.end&&a.end>=this.start&&a.end<=this.end:a>=this.start&&a<=this.end},every:function(a,b){return Ib(this,a,!1,b)},toArray:function(){return Ib(this)},union:function(a){return new P(this.start<a.start?this.start:a.start,this.end>a.end?this.end:a.end)},intersect:function(a){return a.start>this.end||a.end<this.start?new P(NaN,NaN):new P(this.start>a.start?this.start:a.start,this.end<a.end?this.end:a.end)},clone:function(){return new P(this.start,this.end)},clamp:function(a){return qc(this,
a)}});ua(da,{range:wc});Q(da,{upto:function(a,b,c,d){return Ib(new P(a,b),c,!1,d)},clamp:function(a,b,c){return qc(new P(b,c),a)},cap:function(a,b){return qc(new P(void 0,b),a)}});Xd(da,"downto","upto");ua(Ta,{range:wc});var Jf=/(?:from)?\s*(.+)\s+(?:to|until)\s+(.+)$/i,Kf=/(.+)\s*for\s*((?:\d+)?\s*(?:year|month|week|day|hour|minute|second|millisecond))s?/i,Lf=/(?:for)?\s*((?:\d+)?\s*(?:year|month|week|day|hour|minute|second|millisecond))s?\s*(?:starting)?\s*at\s*(.+)/i;ua(J,{range:function(a,b){var c;
if(1===arguments.length&&y(a)){var d,e,f;if(J.get&&(c=a.match(Jf)))d=Ra(c[1].replace("from","at")),f=J.get(d,c[2]),c=new P(d,f);else{if(c=a.match(Lf))e=c[1],d=c[2];if(c=a.match(Kf))d=c[1],e=c[2];d&&e?(d=Ra(d),c=Td(e),f=Ud(d,c[0],c[1])):d=a;c=new P(Ra(d),Ra(f))}}else c=new P(Ra(a),Ra(b));return c}});(function(){var a={};x("year month week day hour minute second millisecond".split(" "),function(b,c){var d=b+"s",e,f;4>c?f=function(){return Ib(this,b,!0)}:(e=Vd[Za(d)],f=function(){return K((this.end-
this.start)/e)});a[d]=f});Fc(P,a)})()}).call(this);}).call(this);