tablesorter/docs/js/sugar.min.js

143 lines
67 KiB
JavaScript
Raw Normal View History

/*
* 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 sc(a,b){return new M(a,b)}function r(a,b){for(var c in a)if(z(a,c)&&!1===b.call(a,a[c],c,a))break}function tc(a){function b(a,b,c){A(d,a,function(a,e,m){a=Hb(a,e,m);ae(d,a.methods,b,c,a.w);return d})}var c="Object"===a,d=uc(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=Hb(b,c,d);ib(Aa[a],b.methods,!0,b.w)});A(d,"defineInstancePolyfill",
function(b,c,g){b=Hb(b,c,g);ib(Aa[a].prototype,b.methods,!0,b.w);r(b.methods,function(a,b){jb(d,b,a)})});A(d,"alias",function(a,b){var c=d,h="string"===typeof b?d[b]:b;c[a]=h;h.instance&&jb(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=Aa[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&&(Ib=b.objectPrototype),r(u||d,function(a,b){u&&(b=a,a=d[b]);!z(a,"instance")||c&&k===k&&(!Ib||"get"===b||"set"===b)||g(b,k,a.flags)||f("except",b)||(t[b]=a.instance);!z(a,"static")||c&&h===k&&(!Ib||"get"===b||"set"===b)||g(b,h,a.flags)||f("except",b)||(m[b]=a)}),ib(h,m),ib(k,t),u||A(d,"active",!0),w});kb[a]=d;vc["[object "+a+"]"]=d;wc(a);be(d);return w[a]=d}function ce(){return"Sugar"}function ae(a,b,c,d,e){r(b,function(b,g){var h,k=b;d&&(k=xc(b));
e&&(k.flags=e);c&2&&!b.instance&&(h=d?xc(b,!0):de(b),A(k,"instance",h));c&1&&A(k,"static",!0);h=k;a[g]=h;h.instance&&jb(a,g,h.instance);a.active&&a.extend(g)})}function Hb(a,b,c){var d;"string"===typeof a?(d={},d[a]=b,a=c):(d=a,a=b);return{w:a,methods:d}}function xc(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 de(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 ib(a,b,c,d){r(b,function(b,f){c&&!d&&a[f]||A(a,f,b)})}function uc(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 jb(a,b,c){c=ee(c);var d,e,f;f=yc.prototype;e=(d=f[b])&&d!==Object.prototype[b];d&&d.G||(f[b]=e?fe(b):c);a.prototype[b]=c;a===w.Object&&ge(b,c)}function be(a){r(w.Object&&w.Object.prototype,function(b,c){if("function"===typeof b){var d=a.prototype;z(d,c)||(d[c]=b)}})}function ge(a,b){r(kb,function(c){c=c.prototype;z(c,a)||(c[a]=b)})}function ee(a){return function(){return new yc(a.apply(this.raw,arguments))}}function fe(a){function b(){var b=this.raw,d;null!=b&&(d=vc[V(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 wc(a,b){var c=kb[a],d=Aa[a].prototype;!b&&zc&&(b=zc(d));r(b,function(a){if("constructor"!==a&&"valueOf"!==a&&"__proto__"!==a){try{var b=d[a];if("function"!==typeof b)return}catch(g){return}jb(c,a,b)}})}function he(a,b,c){a[b]=c.value}function A(a,b,c,d){Jb(a,b,{value:c,enumerable:!!d,configurable:!0,writable:!0})}function V(a){return Ac.call(a)}function z(a,
b){return!!a&&ie.call(a,b)}function q(a,b){if(z(a,b))return a[b]}function lb(a,b,c){c||(c=V(a));return c==="[object "+b+"]"}function ta(a){return function(b,c,d){b[a](c,d)}}function Qa(a,b,c){N(a,Bc(b,c),void 0)}function je(a,b){Kb(a,Bc("Boolean Number String Date RegExp Function Array Error Set Map",b),void 0)}function Bc(a,b){var c={};y(a)&&(a=a.split(" "));x(a,function(a,e){b(c,a,e)});return c}function ca(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 ke(a,b){A(a,"setOption",b)}function Lb(a,b){function c(a){return d[a]}var d=W({},b);A(a,"getOption",c);ke(a,function(a,c){null===c&&(c=b[a]);d[a]=c});return c}function Cc(a,b){var c=a.prototype;r(b,function(a,b){c[b]=a})}function Dc(a){if(!a)throw new TypeError("Argument required");}function mb(a){if(!H(a))throw new TypeError("Function is not callable");}function ua(a){a=+a||0;if(0>a||!E(a)||!isFinite(a))throw new RangeError("Invalid number");
return O(a)}function n(a){return void 0!==a}function v(a){return void 0===a}function Ra(a){var b="_sugar_"+a;return function(a,d){return 1<arguments.length?(A(a,b,d),a):a[b]}}function Ec(a,b){a.prototype.constructor=function(){return b.apply(this,arguments)}}function da(a){if(!la(a)){var b=V(a);if(ea(a,b))return le(a);if(Q(a,b))return me(a);if(H(a,b))return ne(a);if(nb(a,b))return oe(a)}return pe(a)}function oe(a){var b={};return function(c,d,e){var f=!0;if(!I(c))return!1;r(a,function(a,h){b[h]=q(b,
h)||da(a);!1===b[h].call(e,c[h],d,e)&&(f=!1);return f});return f}}function pe(a){return function(b){return va(b,a)}}function le(a){a=RegExp(a);return function(b){return a.test(b)}}function me(a){var b=a.getTime();return function(a){return!(!a||!a.getTime)&&a.getTime()===b}}function ne(a){return function(b,c,d){return b===a||a.call(d,b,c,d)}}function ob(a,b,c){return Ba(a,b,c,!1)}function Ba(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 qe(a,
b,c,g);a=b.split("[")}t=n(g);for(var Pa=0,C=a.length;Pa<C;Pa++){k=a[Pa];y(k)&&(k=k.split("."));for(var q=0,r=k.length;q<r;q++)if(b=k[q],u=Pa===C-1&&q===r-1,m=b.indexOf("]"),l=-1!==m,p=t&&0===m,m=1<C&&q===r-1,p?b=h.length:l&&(b=b.slice(0,-1)),l&&0>b&&(b=+b+h.length),Pa||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(la(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 qe(a,b,c,d){var e,f,g;
if(e=b.match(re)){b=n(d);a=(f=e[1])?Ba(a,f,c,!1,b?!0:!1,!0):a;if(!F(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++)Ba(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 Ba(a,g)});return a}}function Mb(a,b){if(z(a,b))return b}function I(a){return!!a&&"object"===typeof a}function la(a,b){b=b||typeof a;return null==a||"string"===b||"number"===b||"boolean"===b}function nb(a,
b){var c;if(c=I(a)&&lb(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 Nb(a,b){for(var c=0;c<a;c++)b(c)}function W(a,b){r(b,function(b,d){a[d]=b});return a}function Sa(a){la(a)&&(a=Object(a));if(se&&y(a))for(var b=a,c=0,d;d=b.charAt(c);)b[c++]=d;return a}function va(a,b,c){var d,e;if(a===b)return 0!==a||1/a===
1/b;d=V(a);e=V(b);return d!==e?!1:pb(a,d)&&pb(b,e)?te(a,b,c):qb(a,d)&&qb(b,e)?a.size===b.size&&va(Fc(a),Fc(b),c):rb(a,d)&&rb(b,e)?a.size===b.size&&va(Gc(a),Gc(b),c):sb(a,d)&&sb(b,e)?a.toString()===b.toString():!1}function te(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;Hc(a,!1,c,function(a,c,h,k){h||a in b&&va(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 Ca(a,b,c){var d=typeof a,e,f;if(la(a,d)&&(null==a||a===a))return d+a;e=V(a);if(pb(a,e))I(a)?f=ue(a,b,c)+a.toString():-Infinity===1/a?f="-0":a.valueOf&&(f=a.valueOf());else return c=Ob(b,a),-1===c&&(c=b.length,b.push(a)),c;return d+e+f}function ue(a,b,c){var d="";Hc(a,!0,c,function(a,c,g,h){d+=g?"CYC":a+Ca(c,b,h)});return d}function Hc(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():r(a,e)}function ve(a,b){var c=[],d;for(d in a)d>>>0==d&&4294967295!=d&&d>=b&&c.push(+d);c.sort(function(a,c){var d=a>b;return d!==c>b?d?-1:1:a-c});return c}function Ic(a,b,c,d){var e,f=a.length;if(!F(b))return Jc(a,b,f,c,d);e=Array(b.length);x(b,function(b,h){e[h]=Jc(a,b,f,c,d)});return e}function Pb(a,b,c){a&&c&&(a%=b);0>a&&(a=b+a);return a}function Jc(a,b,c,d,e){b=Pb(b,c,d);return e?a.charAt(b):a[b]}function ma(a,b,c,d){return b?b.apply?b.apply(c,
d||[]):F(b)?b.map(function(b){return ma(a,b,c,d)}):H(a[b])?a[b].call(a):ob(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=ve(d,c),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 Qb(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 na(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 Ob(a,b){for(var c=0,d=a.length;c<d;c++)if(c in a&&a[c]===b)return c;
return-1}function Ta(a,b,c){var d=tb(10,X(b||0));c=c||Ua;0>b&&(d=1/d);return c(a*d)/d}function Da(a,b,c,d,e){d=X(a).toString(d||10);d=ub(e||"0",b-d.replace(/\.\d+/,"").length)+d;if(c||0>a)d=(0>a?"-":"+")+d;return d}function Kc(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 Rb(a,b){var c,d;c=a.replace(Lc,function(a){a=q(wa,a);"."===a&&(d=!0);return a});return d?parseFloat(c):parseInt(c,b||10)}function ub(a,b){var c="";for(a=
a.toString();0<b;)if(b&1&&(c+=a),b>>=1)a+=a;return c}function Va(a){return a.charAt(0).toUpperCase()+a.slice(1)}function Mc(a,b,c){function d(d,e){var h,k,m,n,q=e[2],r=e[3],v=e[5];e[4]&&b?(k=v,h=b):q?(k=q,h=a):r&&b?m=r:m=e[1]||e[0];h&&(g(c,q,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=we,m=xe(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 ye(a){return Y.human&&Y.human.X(a)||a}function Ea(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 Fa(a){y(a)||(a=String(a));return a.replace(/([\\\/\'*+?|()\[\]{}.^$-])/g,"\\$1")}function J(a,b){return a["get"+(K(a)?"UTC":"")+b]()}function Ga(a,b,c,d){if(!d||c!==J(a,b))a["set"+(K(a)?"UTC":"")+b](c)}function xe(a){var b={},c=0;return function(d){if(z(b,d))return b[d];c===ze&&(b={},c=0);c++;return b[d]=a(d)}}function Fc(a){var b=Array(a.size),c=0;a.forEach(function(a){b[c++]=a});return b}function Gc(a){var b=Array(a.size),c=0;a.forEach(function(a,
e){b[c++]=[e,a]});return b}function Tb(a){if(null==a)throw new TypeError("String required.");return String(a)}function Ub(a){if(ea(a))throw new TypeError;return String(a)}function xa(){return Ae("newDateInternal")()}function oa(a){var b=new Date(a.getTime());K(b,!!K(a));return b}function Nc(a){if(isNaN(a.getTime()))throw new TypeError("Date is not valid");}function G(a){return J(a,"Day")}function Z(a){return J(a,"Date")}function S(a){return J(a,"Month")}function fa(a){return J(a,"FullYear")}function ga(a,
b){Ga(a,"Date",b)}function Oc(a){return 32-J(new Date(fa(a),S(a),32),"Date")}function pa(a,b,c){if(E(b)){var d=G(a);if(c){c=0<c?1:-1;var e=b%7-d;e&&e/X(e)!==c&&(b+=7*c)}ga(a,Z(a)+b-d);return a.getTime()}}function Vb(a,b){var c=K(a)?0:a.getTimezoneOffset(),d,e;e=!0===b?":":"";if(!c&&b)return"Z";d=Da(O(-c/60),2,!0);c=Da(X(c%60),2);return d+e+c}function Pc(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 E(c)&&E(d)?(c=Be(a),d=null):I(c)&&(c=W({},c));return[c,d]}function Be(a){var b={},c=0;Qc(7,function(d){var e=a[c++];n(e)&&(b[d.name]=e)});return b}function Wb(a,b,c){c=c||0;for(v(b)&&(b=7);b>=c&&!1!==a(ha[b],b);b--);}function Qc(a,b){for(;0<=a&&!1!==b(ha[a],a);)a=Wa(a)}function Wa(a){return 6===a?4:5===a?3:a-1}function vb(a,b,c,d){Wb(function(c,d){var g;g=c.name;var h=q(a,Xb(a,g));n(h)&&b(g,h,c,d);g=void 0;!1!==g&&4===d&&(g=q(a,Xb(a,"weekday")),n(g)&&b("weekday",g,c,d),g=void 0);return g},
c,d)}function Ce(a,b){vb(a,b,7,4)}function ya(a,b,c,d){var e={};e[b]=c;return qa(a,e,d,1)}function Rc(a,b,c){b=Pc(b,!0);return qa(a,b[0],b[1],c)}function Xa(a,b){pa(a,7*Ha((G(a)-b)/7)+b);return a}function Sc(a,b){var c=b-1;pa(a,7*ia((G(a)-c)/7)+c);return a}function Ya(a,b,c){5===b&&Xa(a,B.get(c).s());return T(a,Wa(b))}function wb(a,b,c,d){5===b&&Sc(a,B.get(c).s());return T(a,Wa(b),d,!0)}function T(a,b,c,d){Qc(b,function(b,f){var g=d?b.end:b.start;H(g)&&(g=g(a));Ga(a,b.method,g);return!n(c)||f>c});
return a}function Xb(a,b){return Mb(a,b)||Mb(a,b+"s")||"day"===b&&Mb(a,"date")}function De(a){var b={},c;b[a]=1;vb(b,function(a,b,f,g){c=g;return!1});return c}function xb(a,b,c){var d=b>a,e;d||(e=b,b=a,a=e);e=b-a;1<c.f&&(e=O(e/c.f));if(c.m)for(a=oa(a),e&&ya(a,c.name,e);a<b;){ya(a,c.name,1);if(a>b)break;e+=1}return d?-e:e}function Tc(a,b){if(E(b)){var c=oa(a),d=G(a);T(c,6);ga(c,4);Xa(c,1);ga(c,Z(c)+7*(b-1));var e=fa(c);Ga(a,"FullYear",e);e=S(c);Ga(a,"Month",e);ga(a,Z(c));pa(a,d||7)}return a.getTime()}
function Ia(a,b,c,d){var e,f=0;v(c)&&(c=1);v(d)&&(d=4);var g=e=Sc(oa(a),c),h=c,k=d;T(g,6);ga(g,k);Xa(g,h);b&&a<e&&(b=e=Xa(oa(a),c),T(b,6),ga(b,d),Xa(b,c));for(;e<=a;)ga(e,Z(e)+7),f++;return f}function Uc(a,b,c){var d,e,f,g;d=fa(a);e=S(a);if(0===e||11===e)c||(c=B.get(b),f=c.s(b),g=c.H(b)),a=Ia(a,!1,f,g),0===e&&0===a?--d:11===e&&1===a&&(d+=1);return d}function Vc(a,b,c,d){var e;Nc(a);H(c)?d=c:e=c;c=Ee(a,b);if(d&&(d=d.apply(a,c.concat(B.get(e)))))return Wc(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 Xc(a,b){var c=0,d=0;Wb(function(a,f){d=X(b(a));if(1<=d)return c=f,!1});return[d,c,a]}function Fe(a){return Xc(a,function(b){return O(Ta(a/b.f,1))})}function Ee(a,b){b||(b=xa(),a>b&&(b=new Date(b.getTime()-10)));return Xc(a-b,function(c){return X(xb(a,b,c))})}function Wc(a,b,c){Nc(a);b=Yc[b]||b||"{long}";return yb(b,a,c)}function Yb(a,b){var c=J(a,"Hours");return B.get(b).ampm[O(c/12)]||""}function Zc(a,b,c){var d;if(!isNaN(a.getTime())){if(y(b))switch(b=
b.trim().toLowerCase(),!0){case "future"===b:return a.getTime()>xa().getTime();case "past"===b:return a.getTime()<xa().getTime();case "today"===b:return Zb(a);case "tomorrow"===b:return Zb(a,1);case "yesterday"===b:return Zb(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=za.weekdayMap[b]):return G(a)===d;case n(d=za.monthMap[b]):return S(a)===d}return $c(a,b,c)}}function $c(a,b,c,d,e){var f=0,g=0,h,k,m;K(a)&&(e=e||{},e.fromUTC=!0,e.setUTC=!0);
b=Za(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,Ya(b.date,b.set.specificity,d);h||6===b.set.specificity?m=wb(oa(b.date),b.set.specificity,d).getTime():(m=ha[b.set.specificity],m=ya(oa(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 Zb(a,b){var c=xa();b&&ga(c,Z(c)+b);return fa(a)===fa(c)&&S(a)===S(c)&&Z(a)===Z(c)}function ja(a,b,c){return Za(null,a,b,c).date}function Za(a,b,c,d){function e(a,b){var c=q(C,"params")||{};x(b.to,function(b,d){var e=a[d+1],f;if(e){if("yy"===b||"y"===b){b="year";f=q(C,"prefer");var e=+e,g,e=e+(50>e?2E3:1900);f&&(g=e-fa(p),g/X(g)!==f&&(e+=100*f))}else(f=q($b,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=r.T(b,e);c[b]=e}});
return c}function f(a,b){K(a)&&!n(q(C,"fromUTC"))&&(C.fromUTC=!0);K(a)&&!n(q(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();r=B.get(q(C,"locale"));for(var b=0,c,d;c=r.compiledFormats[b];b++)if(d=a.match(c.reg)){r.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,
K(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)&&(T(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):(qa(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[za.units[b]]=c,A=!0);l.edge&&m(l.edge,l);l.yearSign&&(l.year*=l.yearSign);break}l?A?qa(p,l,!1,1):(K(p)&&T(p,3),qa(p,l,!0,0,q(C,"prefer"),Sb)):(p=new Date(a),q(C,"fromUTC")&&p.setTime(p.getTime()+6E4*p.getTimezoneOffset()));g();return p}function k(a){l.hour=a%24;23<a&&w.push(function(){ya(p,"date",O(a/24))})}function m(a,b){var c=b.unit,d;c||Ce(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?Ya(p,c,q(C,"locale")):
0<a&&(1===a&&(b=4,Ya(p,4)),wb(p,c,q(C,"locale"),b));n(d)&&(pa(p,d,-a),T(p,3))});b.specificity=6===c?4:c-1}function t(a){l.weekday=7*(a-1)+l.weekday;Sb=l.date=1}function u(a){var b;vb(l,function(c,d,e,f){if(f>=a)return p.setTime(NaN),!1;f<a&&(b=b||{},b[c]=d,delete l[Xb(l,c)])});b&&(w.push(function(){qa(p,b,!0,!1,q(C,"prefer"),Sb)}),l.edge&&(m(l.edge,b),delete l.edge))}var p,l,r,C,w,A,Sb;w=[];C=function(a){a=y(a)?{locale:a}:a||{};a.prefer=+!!q(a,"future")-+!!q(a,"past");return a}(c);p=a&&b?f(a,!0):
xa();K(p,q(C,"fromUTC"));y(b)?p=h(b):Q(b)?p=f(b,z(C,"clone")||d):I(b)?(l=W({},b),qa(p,l,!0)):(E(b)||null===b)&&p.setTime(b);K(p,!!q(C,"setUTC"));return{set:l,date:p}}function qa(a,b,c,d,e,f){function g(){var a=ha[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=ha[Wa(p)];n=Ua(h.f/q.f*n);b[q.name]=n}g=O(g)}if("weekday"===c)d||pa(a,g,f);else if(c=6===p&&28<Z(a),d&&!h.m)a.setTime(a.getTime()+
g*d*h.f);else{d&&(5===p&&(g*=7,l=ha[4].method),g=g*d+J(a,l));h=l;p=g;l=d;"ISOWeek"===h?Tc(a,p):Ga(a,h,p,l);if(h=c)0>g&&(g=g%12+12),h=g%12!==S(a);h&&ga(a,0)}}var k;if(E(b)&&d)b={millisecond:b};else if(E(b))return a.setTime(b),a;vb(b,h);c&&b.specificity&&T(a,Wa(b.specificity));a:{if(k&&!(7<k))switch(e){case -1:c=a>xa();break a;case 1:c=a<xa();break a}c=void 0}c&&g();return a}function zb(a){var b=a.join("");return a&&a.length?b.length===a.length?"["+b+"]":na(a,Fa).join("|"):""}function U(a,b){1<a.length&&
(a="(?:"+a+")");b&&(a+="?");return a}function Ge(a,b,c){a=ad[a];return b=a.A?U(b+U(c)):a.K?b+U(a.K+"|"+c):b+U(c,!0)}function bd(a,b,c,d){var e;1<c&&(e=a[b+(c-1)*d]);return e||a[b]}function cd(a){function b(a){this.U(a)}b.prototype={I:function(a,b){return this.monthSuffix?a+1+this.monthSuffix:bd(this.months,a,b,12)},J:function(a,b){return bd(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=q(this.numeralMap,g),v(a)&&(a=q(wa,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||Kc(a)},S:function(a,b){return this.F(a,b)},N:function(a){return this.F(Fe(D(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=q(g.parsingAliases,l))return a=f(e),t&&(a=U(a,!0)),a;u?a=g.tokens[u[1]]:(e=q($b,l))?a=e.src:(e=q(g.parsingTokens,l)||q(g,l),l=l.replace(/s$/,""),e||(e=q(g.parsingTokens,l)||q(g,l+"s")),y(e)?(a=e,c=g[l+"Suffix"]):(p&&(e=Qb(e,function(a,b){var c=b%(g.units?8:e.length);return c>=p[1]&&c<=(p[2]||p[1])})),a=zb(e)));if(!a)return"";u?a=U(a):(b.push(l),a="("+a+")");c&&(a=Ge(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?U(na(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=na(a.split("+"),
function(a){return a.replace(/(.+):(.+)$/,function(a,b,c){return na(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?U("{time}[,\\s\\u3000]",!0)+a:a+h());k.addFormat(a)})}function h(){var a=",?[\\s\\u3000]",b;(b=zb(k.timeMarkers))&&(a+="| (?:"+b+") ");a=U(a,k.timeMarkerOptional);return U(a+"{time}",!0)}var k=this;k.compiledFormats=[];k.parsingAliases={};k.parsingTokens={};W(k,a);(function(){x(He,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 tb(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(){r(ad,function(a,b){var c,d;c=a.i?$b[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(dd.split("")));d.length&&(e="|(?:"+zb(d)+")+");c+=e}(d=k[b+"s"])&&d.length&&(c+="|"+zb(d));k.parsingTokens[b]=c})})();(function(){Wb(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=q(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(Ie,function(a){var b=a.src;a.mdy&&k.mdy&&(b=a.mdy);a.time?(k.addFormat(U("{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 Ab(a,b){return ub(n(b)?b:" ",a)}function ed(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?$a(a,b,!0):a.slice(a.length-b),d+a;case "middle":return c=ia(b/2),f=Ha(b/2),b=e?$a(a,c):a.slice(0,c),a=e?$a(a,f,!0):a.slice(a.length-f),b+d+a;default:return b=e?$a(a,b):a.slice(0,b),b+d}}function ab(a,b,c){var d,e,f=[];H(b)?(c=b,e=/[\s\S]/g):b?y(b)?e=RegExp(Fa(b),"gi"):ea(b)&&(e=RegExp(b.source,Ea(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 Je(a,b){return ab(a.trim(),/\S+/g,b)}function fd(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 bb(a){var b=Y.acronyms&&Y.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 Ke(a,b){a=bb(a);return a.replace(Le,function(a,d,e,f){a=
!1!==b||0<f;return(d=Y.acronyms&&Y.acronyms.find(e))&&a?d:a?ac(e,!0):e})}function ac(a,b,c){b&&(a=a.toLowerCase());return c?a.replace(Me,Va):Va(a)}function Ne(a){var b=/[.:;!]$/,c;a=ye(a);a=bb(a).replace(/_/g," ");return Je(a,function(a,e,f){a=Y.human&&Y.human.find(a)||a;a=Y.acronyms&&Y.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===Ob(Oe,a)?ac(a,!1,!0):a}).join(" ")}function $a(a,b,c){if(c)return $a(a.split("").reverse().join(""),b).split("").reverse().join("");
var d=0;return Qb(a.split(Pe),function(a){d+=a.length;return d<=b}).join("")}function Qe(a){return a.replace(Re,function(a,c,d){return gd[d]||ka(c?parseInt(d,16):+d)})}function hd(a,b,c){var d=0,e;y(b)?b=RegExp(Fa(b),"g"):b&&!b.global&&(b=RegExp(b.source,Ea(b,"g")));c?(e=c,c=function(){var a=e[d++];return null!=a?a:""}):c="";return a.replace(b,c)}function id(a,b,c,d){b=y(b)?[b]:b;b=na(b||[],function(a){return Fa(a)}).join("|");b=b.replace("all","")||"[^\\s>]+";return jd(a.toString(),RegExp("<(\\/)?("+
b+")(\\s+[^<>]*?)?\\s*(\\/)?>","gi"),d,c)}function jd(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=jd(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!==Ob(Se,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 kd(a,b,c){y(b)&&(b=a.indexOf(b),-1===b&&(b=c?a.length:0));return b}function ld(a,b){var c;a&&a.constructor&&F(a.constructor.prototype)?c=b?Ja(a):a:I(a)||y(a)?c=Array.from(a):n(a)&&(c=[a]);return c||[]}function Ja(a){var b=Array(a.length);x(a,function(a,d){b[d]=a});return b}function Te(a){var b=[];b.push(a);return b}function Ue(a,b){var c=Ja(a),d=c.length,e;e=F(b)?b:[b];c.length+=e.length;x(e,function(a,b){c[d+b]=
a});return c}function md(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 nd(a,b){var c=[],d={},e=[];x(a,function(f,g){var h=b?ma(f,b,a,[f,g,a]):f,h=Ca(h,e);z(d,h)||(c.push(f),d[h]=!0)});return c}function od(a,b,c){var d=[];b=b||Infinity;c=c||0;x(a,function(a){F(a)&&c<b?d=d.concat(od(a,b,c+1)):d.push(a)});return d}function Ve(a,b){return Qb(a,function(a){return a||!b&&null!=a&&a.valueOf()===a.valueOf()})}function We(a,b,c){var d={},e;x(a,function(c,
g){e=ma(c,b,a,[c,g,a]);z(d,e)||(d[e]=[]);d[e].push(c)});c&&r(d,c);return d}function pd(a,b,c){var d=[],e={},f=[];F(b)||(b=Te(b));x(b,function(a){e[Ca(a,f)]=!0});x(a,function(a){var b=Ca(a,f);z(e,b)!==c&&(delete e[b],d.push(a))});return d}function qd(a,b){var c,d;if(y(a)&&y(b))return c=Ka("sortCollate"),c(a,b);if(F(a)&&F(b)){if(a.length<b.length)return-1;if(a.length>b.length)return 1;for(d=0;d<a.length;d++)if(c=qd(a[d],b[d]),0!==c)return c;return 0}return a<b?-1:a>b?1:0}function rd(a,b,c){y(a)||(a=
String(a));c&&(a=a.toLowerCase());b&&(a=a.replace(b,""));return a}function sd(a,b,c){a=a.charAt(b);return q(c,a)||a}function bc(a,b,c,d,e){if(F(a)){for(var f,g,h=[],k=0,m=a.length;k<m;k++)f=a[k],f=(g=d+(d&&b?"[]":""))||I(f)?bc(f,b,c,g,e):cc(f),h.push(f);a=h.join("&")}else I(a)&&a.toString===Ac?a=Xe(a,b,c,d,e):d?(c?h=c(a,d):h=Q(a)?a.getTime():a,a=cc(d)+"="+cc(h)):a="";return a}function Xe(a,b,c,d,e){var f=[];r(a,function(a,h){var k;d&&b?k=d+"["+h+"]":k=d?d+e+h:h;f.push(bc(a,b,c,k,e))});return f.join("&")}
function cc(a){return a||!1===a||0===a?encodeURIComponent(a):""}function Ye(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(Ze))?$e(d,u,a,c,t):td(d,h,a,c,t)});return d}function $e(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=q(a,f);f=b?b:a.length.toString()});td(a,f,c,d,e)}function td(a,b,c,d,e){var f;e&&(f=e(c,b,a));n(f)?c=f:d&&(c=af(a,b,c));a[b]=c}function af(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&&!bf.test(c))return d;a=q(a,b);return c&&a?F(a)?a.concat(c):[a,c]:c}function dc(a,b,c){c=c||{};return Bb(a,b,c.deep,c.resolve,c.hidden,c.descriptor)}function ec(a,b,c){F(b)||(b=[b]);x(b,
function(b){return dc(a,b,c)});return a}function cf(a,b,c){fc&&a?ud(fc,b,c,a):r(b,c);vd&&ud(vd,b,c,a)}function ud(a,b,c,d){a=a(b);for(var e,f=0,g;g=a[f];f++)e=wd(b,g),(e.enumerable||d)&&c(b[g],g)}function Bb(a,b,c,d,e,f){var g=H(d),h=!1!==d;v(a)?a=xd(b):h&&Q(a)&&Q(b)&&a.setTime(b.getTime());if(la(a))return b;la(b)&&(b=Sa(b));cf(e,b,function(k,m){var t,u,p,l;t=b[m];u=q(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)&&!ea(t))||h||!n(u))p&&(t=Bb(u,
t,c,d,e,f)),fc&&f?(u=a,p=wd(b,m),n(p.value)&&(p.value=t),Jb(u,m,p)):a[m]=t});return a}function xd(a){var b=V(a);if(F(a,b))return[];if(nb(a,b))return{};if(Q(a,b))return new Date(a.getTime());if(ea(a,b))return RegExp(a.source,Ea(a));if(la(a&&a.valueOf()))return a;throw new TypeError("Must be a basic data type");}function gc(a,b){var c=xd(a);return Bb(c,a,b,!0,!0,!0)}function df(a){var b=[];r(a,function(a){b.push(a)});return b}function ef(a,b){var c=b;H(b)||(c=function(){if(b)a[b]()});c.call(a,a);return a}
function yd(a,b,c){var d,e={};b=[].concat(b);r(a,function(a,g){d=!1;for(var h=0;h<b.length;h++){var k=b[h],m=g;(ea(k)?k.test(m):I(k)?m in k:m===String(k))&&(d=!0)}d===c&&(e[g]=a)});return e}function ff(a,b){var c=da(b);r(a,function(b,e){c(b,e,a)&&delete a[e]});return a}function gf(a,b){var c={},d=da(b);r(a,function(b,f){d(b,f,a)||(c[f]=b)});return c}function zd(a,b,c){if(!I(a))return c?a:{};b=Sa(b);return Bb({},a,!1,function(a,e,f){if((a in b&&va(f,b[a]))!==c)return f})}function Ad(a,b){var c=0;cb(a,
b,function(a){c+=a});return c}function Bd(a,b){var c=0,d=0;cb(a,b,function(a){c+=a;d++});return c/(d||1)}function Cd(a,b){var c=[],d,e;cb(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=O(e/2);return e%2?c[d]:(c[d-1]+c[d])/2}function db(a,b,c,d,e){var f=[],g,h,k;La(b)&&(k=b,b=c);cb(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 Dd(f,a,k,
e)}function Cb(a,b,c,d,e){var f={},g=[],h,k;La(b)&&(k=b,b=c);cb(a,b,function(b,c){var d=Ca(b,g),h=q(f,d)||[];h.push(e?c:a[c]);f[d]=h});d=db(f,!!k,"length",d,!0);k?(h=[],r(d,function(a){h=h.concat(a)})):h=q(f,d);return Dd(h,a,k,e)}function Dd(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 cb(a,b,c){var d=F(a);r(a,function(e,f){if(d){if(f>>>0!=f||4294967295==f)return;f=+f}var g=ma(e,b,a,[e,f,a]);c(g,f)})}function Ed(a,b){if(H(a))return a;if(a)return function(c,
d,e){return ma(c,a,b,[c,d,e])}}function ra(a){var b;if(H(a))return a;b=da(a);return function(a,d,e){return b(a,d,e)}}function Ma(a,b){var c=Array.prototype[a];return function(a,e,f,g){var h=Array(2);Dc(0<g);h[0]=b(e,f);h[1]=f;return c.apply(a,h)}}function hf(a,b){mb(b);r(a,function(c,d){b(c,d,a)});return a}function jf(a,b){var c={};r(a,function(d,e){c[e]=ma(d,b,a,[d,e,a])});return c}function kf(a,b,c){var d=n(c);r(a,function(e,f){d?c=b(c,e,f,a):(c=e,d=!0)});return c}function lf(a,b){var c=da(b),d=
{};r(a,function(b,f){c(b,f,a)&&(d[f]=b)});return d}function mf(a,b){var c=da(b),d=0;r(a,function(b,f){c(b,f,a)&&d++});return d}function hc(a){var b=Array.prototype[a];return function(a,d){var e=da(d);return b.call(Object.keys(a),function(b){return e(a[b],b,a)})}}function ic(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=D(aa(Ha(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=X(f)-9);d=d?tb(2,10*h):tb(10,3*h);return Fd(Ta(a/d,b||0))+c}function Fd(a,b){var c="",d,e,f,g,h;e=Gd("decimal");d=Gd("thousands");h=E(b)?Ta(a,b||0).toFixed(D(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(D(0,h-3),h)+c;f&&(c+=e+ub("0",(b||0)-f.length)+f);return(0>a?"-":"")+c}function jc(a){return function(b,c){return c?Ta(b,c,a):a(b)}}function Na(a,b,
c,d,e){b=ua(b||0);Db(a)||Db(a,[]);kc(a,!1);Db(a).push(setTimeout(function(){kc(a)||c.apply(d,e||[])},b))}function Hd(a){var b=Db(a),c;if(F(b))for(;c=b.shift();)clearTimeout(c);kc(a,!0);return a}function Id(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():Na(e,k,h));return t}var f=[],g=!1,h,k,m,t;b=b||1;d=d||Infinity;k=ia(b);m=Ua(k/b)||1;h=function(){var b=f.length,c;if(0!=b){for(c=D(b-m,0);b>c;)t=Function.prototype.apply.apply(a,
f.shift()),b--;Na(e,k,function(){g=!1;h()})}};return e}function nf(){for(var a=arguments,b=a.length,c=Array(b);b--;)c[b]=a[b];return c}function of(a,b,c){var d={},e=[],f=0;return function(){var g=b.apply(this,arguments),g=Ca(g,e);if(z(d,g))return q(d,g);f===c&&(d={},e=[],f=0);f++;return d[g]=a.apply(this,arguments)}}function M(a,b){this.start=lc(a);this.end=lc(b)}function Jd(a){return y(a)?a.charCodeAt(0):a}function Kd(a){return null==a?a:Q(a)?a.getTime():a.valueOf()}function Ld(a){a=a.toString().split(".");
return a[1]?a[1].length:0}function lc(a){return Q(a)?new Date(a.getTime()):Kd(a)}function Md(a){var b=Kd(a);return(!!b||0===b)&&-Infinity!==a&&Infinity!==a}function Eb(a){return Md(a.start)&&Md(a.end)&&typeof a.start===typeof a.end}function Fb(a,b,c,d){var e,f,g,h=a.start,k=a.end,m=k<h,t=h,u=0,p=[];if(!Eb(a))return[];H(b)&&(d=b,b=null);b=b||1;E(h)?(f=D(Ld(h),Ld(b)),e=function(){return Ta(t+b,f)}):y(h)?e=function(){return ka(t.charCodeAt(0)+b)}:Q(h)&&(e=Nd(b),b=e[0],g=e[1],e=function(){return Od(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 Nd(a){var b;if(E(a))return[a,"Milliseconds"];b=a.match(pf);a=+b[1]||1;b=Va(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 Od(a,b,c){var d=Pd[c];d?d=new Date(a.getTime()+b*d):(d=new Date(a),Ga(d,c,J(a,c)+b));return d}function mc(a,b){var c=a.start,d=a.end,e=d<c?d:c,c=c>d?c:d;return lc(b<e?e:b>c?c:
b)}function Oa(a){return Q(a)?a:null==a?new Date:P.create?P.create(a):new Date(a)}var w,Aa="undefined"!==typeof global&&global.Object===Object?global:this,qf="undefined"!==typeof module&&module.M,Ib=!1,kb={},vc={},Jb=Object.defineProperty&&Object.defineProperties?Object.defineProperty:he,yc=uc("Chainable"),zc=Object.getOwnPropertyNames,Ac=Object.prototype.toString,ie=Object.prototype.hasOwnProperty;(function(){w=Aa.Sugar;if(!w){w=function(a){r(w,function(b,c){z(kb,c)&&b.extend(a)});return w};if(qf)module.M=
w;else try{Aa.Sugar=w}catch(a){}r("Object Number String Array Date RegExp Function".split(" "),function(a){tc(a)});A(w,"extend",w);A(w,"toString",ce);A(w,"createNamespace",tc);A(w,"util",{hasOwn:z,getOwn:q,setProperty:A,classToString:V,defineProperty:Jb,forEachProperty:r,mapNativeToChainable:wc})}})();var se=!("0"in Object("a")),re=/^(.*?)\[([-\d]*)\.\.([-\d]*)\](.*)$/,we=/([{}])\1|\{([^}]*)\}|(%)%|(%(\w*))/g,eb=w.Object,R=w.Array,P=w.Date,fb=w.String,ba=w.Number,Qd=w.Function,Rd=w.RegExp,pb,La,E,
y,Q,ea,H,F,qb,rb,sb,Sd=ta("alias"),sa=ta("defineStatic"),N=ta("defineInstance"),Td=ta("defineStaticPolyfill"),nc=ta("defineInstancePolyfill"),Kb=ta("defineInstanceAndStatic"),gb=ta("defineInstanceWithArguments"),O=Math.trunc||function(a){return 0!==a&&isFinite(a)?0>a?ia(a):Ha(a):a},Lc,wa,dd,X=Math.abs,tb=Math.pow,aa=Math.min,D=Math.max,ia=Math.ceil,Ha=Math.floor,Ua=Math.round,ka=String.fromCharCode,Y={},K=Ra("utc"),ze=1E3;(function(){function a(a){f["[object "+a+"]"]=!0}function b(a,b){return b&&
lb(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 lb(b,a,c)}}function e(a){var b=a.toLowerCase();return function(c){var d=typeof c;return d===b||"object"===d&&lb(c,a)}}var f={};(function(){var c="Boolean Number String Date RegExp Function Array Error Set Map".split(" ");La=e(c[0]);E=e(c[1]);y=e(c[2]);Q=b(c[3]);ea=b(c[4]);H=b(c[5]);F=Array.isArray||b(c[6]);sb=b(c[7]);qb=b(c[8],"undefined"!==typeof Set&&
Set);rb=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")})})();pb=function(a,b){b=b||V(a);return f[b]||nb(a,b)}})();(function(){var a="";wa={};for(var b=0,c;9>=b;b++)c=ka(b+65296),a+=c,wa[c]=ka(b+48);wa[","]="";wa["\uff0e"]=".";wa["."]=".";Lc=RegExp("["+(a+"\uff0e,.")+"]","g");dd=a})();nc(fb,{includes:function(a){var b=arguments[1],
c=Tb(this);a=Ub(a);return-1!==c.indexOf(a,b)},startsWith:function(a){var b=arguments[1],c,d,e;c=Tb(this);a=Ub(a);d=c.length;b=aa(D(+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=Tb(this);a=Ub(a);d=e=c.length;n(b)&&(d=+b||0);d=aa(D(d,0),e);b=a.length;d-=b;return 0>d?!1:c.substr(d,b)===a?!0:!1},repeat:function(a){a=ua(a);return ub(this,a)}});Td(ba,{isNaN:function(a){return null!=a&&a!==a}});Td(R,{from:function(a){var b=arguments[1],c=
arguments[2],d,e;n(b)&&mb(b);if(null==a)throw new TypeError("Object required.");a=Sa(a);d=O(D(0,a.length||0));if(d>>>0!=d||4294967295==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}});nc(R,{find:function(a){var b=arguments[1];mb(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];mb(a);for(var c=0,d=this.length;c<d;c++)if(a.call(b,
this[c],c,this))return c;return-1}});nc(R,{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=D(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 He="months weekdays units numerals placeholders articles tokens timeMarkers ampm timeSuffixes parse timeParse timeFrontParse modifiers".split(" "),rf=/(\w{3})[()\s\d]*$/,$b={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+"}},ad={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}},Ie=[{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?}"}],Yc={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}"},sf=[{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(S(a),2)}},{b:"Month",a:"B",j:"month",D:!0,get:function(a,b,c){return B.get(b).I(S(a),c)}},{a:"C",get:function(a){return fa(a).toString().slice(0,2)}},{b:"d date day",a:"d",g:2,c:"dd",l:"do",get:function(a){return Z(a)}},{a:"e",
get:function(a){return Da(Z(a),2,!1,10," ")}},{b:"H 24hr",a:"H",g:2,c:"HH",get:function(a){return J(a,"Hours")}},{b:"h hours 12hr",a:"I",g:2,c:"hh",get:function(a){return J(a,"Hours")%12||12}},{b:"D",a:"j",g:3,c:"DDD",get:function(a){var b=T(oa(a),6);return xb(a,b,ha[4])+1}},{b:"M",a:"m",g:2,l:"Mo",c:"MM",get:function(a){return S(a)+1}},{b:"m minutes",a:"M",g:2,c:"mm",get:function(a){return J(a,"Minutes")}},{b:"Q",get:function(a){return ia((S(a)+1)/3)}},{b:"TT",a:"p",get:function(a,b){return Yb(a,
b)}},{b:"tt",a:"P",get:function(a,b){return Yb(a,b).toLowerCase()}},{b:"T",j:"t",get:function(a,b){return Yb(a,b).charAt(0)}},{b:"s seconds",a:"S",g:2,c:"ss",get:function(a){return J(a,"Seconds")}},{b:"S ms",g:3,c:"SSS",get:function(a){return J(a,"Milliseconds")}},{b:"e",a:"u",l:"eo",get:function(a){return G(a)||7}},{a:"U",g:2,get:function(a){return Ia(a,!1,0)}},{b:"W",a:"V",g:2,l:"Wo",c:"WW",get:function(a){return Ia(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 Ia(a,!0,c.s(b),c.H(b))}},{a:"W",g:2,get:function(a){return Ia(a,!1)}},{c:"gggg",u:"gg",get:function(a,b){return Uc(a,b)}},{a:"G",g:4,B:"g",c:"GGGG",u:"GG",get:function(a,b){return Uc(a,b,!0)}},{b:"year",c:"yyyy",u:"yy",a:"Y",g:4,B:"y",get:function(a){return fa(a)}},{b:"ZZ",a:"z",get:function(a){return Vb(a)}},{b:"X",get:function(a){return O(a.getTime()/1E3)}},{b:"x",get:function(a){return a.getTime()}},{b:"Z",get:function(a){return Vb(a,!0)}},{b:"z",a:"Z",get:function(a){return(a=
a.toString().match(rf))?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}"}],ha=[{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 Oc(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}],Ae=Lb(P,{newDateInternal:function(){return new Date}}),L,hb,yb,za,B;sa(P,{create:function(a,b){return ja(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)}});gb(P,{set:function(a,b){b=Pc(b);return qa(a,b[0],b[1])},advance:function(a,b){return Rc(a,b,1)},rewind:function(a,b){return Rc(a,b,-1)}});N(P,{get:function(a,b,c){return Za(a,b,c,void 0).date},setWeekday:function(a,b){return pa(a,b)},setISOWeek:function(a,b){return Tc(a,b)},getISOWeek:function(a){return Ia(a,!0)},beginningOfISOWeek:function(a){var b=G(a);0===b?b=-6:1!==b&&(b=1);pa(a,b);return T(a,3)},endOfISOWeek:function(a){0!==
G(a)&&pa(a,7);return wb(a,4)},getUTCOffset:function(a,b){return Vb(a,b)},setUTC:function(a,b){return K(a,b)},isUTC:function(a){return!!K(a)||0===a.getTimezoneOffset()},isValid:function(a){return!isNaN(a.getTime())},isAfter:function(a,b,c){return a.getTime()>ja(b).getTime()-(c||0)},isBefore:function(a,b,c){return a.getTime()<ja(b).getTime()+(c||0)},isBetween:function(a,b,c,d){a=a.getTime();b=ja(b).getTime();var e=ja(c).getTime();c=aa(b,e);b=D(b,e);d=d||0;return c-d<=a&&b+d>=a},isLeapYear:function(a){a=
fa(a);return 0===a%4&&0!==a%100||0===a%400},daysInMonth:function(a){return Oc(a)},format:function(a,b,c){return Wc(a,b,c)},relative:function(a,b,c){return Vc(a,null,b,c)},relativeTo:function(a,b,c){return Vc(a,ja(b),c)},is:function(a,b,c){return Zc(a,b,c)},reset:function(a,b,c){b=b?De(b):4;Ya(a,b,c);return a},clone:function(a){return oa(a)},iso:function(a){return a.toISOString()},getWeekday:function(a){return G(a)},getUTCWeekday:function(a){return a.getUTCDay()}});N(ba,{duration:function(a,b){return B.get(b).N(a)}});
var oc={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}"]},Ud=W(W({},oc),{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}"}),Vd=W(W({},oc),{"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}"}),tf=W(W({},oc),{"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}"}),Wd={"en-US":Ud,"en-GB":Vd,"en-AU":Vd,"en-CA":tf};(function(){function a(a){this.o={};this.add(a)}a.prototype={get:function(a,c){var d=this.o[a];!d&&Wd[a]?d=this.add(a,Wd[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:cd(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]}};za=cd(Ud);B=new a(za)})();(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 Da(a(c,d),b)}}function e(a){return function(b,c){return a(b,c)%100}}function f(a){return function(b,c){return yb(a,b,c)}}function g(c,d){function e(a,b){return c.get(a,b,d)}a(L,c.b+d,e);c.j&&(L[c.j+d]=b(e))}function h(a){return function(b,c){var d=B.get(c);return yb(d[a],b,c)}}L={};hb={};x(sf,function(h){var m=h.get,t;h.j&&(L[h.j]=b(m));h.l&&(L[h.l]=c(m));h.c&&(L[h.c]=d(m,h.c.length));h.u&&(L[h.u]=d(e(m),2));h.B&&(hb[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(L,h.b,m);a(hb,h.a,t||m)});r(Yc,function(b,c){a(L,c,f(b))});Qa(P,"short medium long full",function(b,c){var d=h(c);a(L,c,d);b[c]=d});a(L,"time",h("time"));a(L,"stamp",h("stamp"))})();(function(){yb=Mc(function(a,b,c){return q(L,b)(a,c)},function(a,b,c){return q(hb,b)(a,c)},function(a,b){return z(L,a)||z(hb,b)})})();(function(){Qa(P,ha,function(a,b,c){var d=b.name,e=Va(d);4<c&&x(["Last","This","Next"],function(b){a["is"+b+e]=function(a,c){return $c(a,b+" "+d,0,c,{locale:"en"})}});
3<c&&(a["beginningOf"+e]=function(a,b){return Ya(a,c,b)},a["endOf"+e]=function(a,b){return wb(a,c,b)});a["add"+e+"s"]=function(a,b,c){return ya(a,d,b,c)};a[d+"sAgo"]=a[d+"sUntil"]=function(a,c,d){return xb(Za(a,c,d,!0).date,a,b)};a[d+"sSince"]=a[d+"sFromNow"]=function(a,c,d){return xb(a,Za(a,c,d,!0).date,b)}})})();(function(){Qa(ba,ha,function(a,b){var c=b.name,d,e,f;d=function(a){return Ua(a*b.f)};e=function(a,b,d){return ya(ja(b,d,!0),c,a)};f=function(a,b,d){return ya(ja(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=za.weekdays.slice(0,7),b=za.months.slice(0,12);Qa(P,"Today Yesterday Tomorrow Weekday Weekend Future Past".split(" ").concat(a).concat(b),function(a,b){a["is"+b]=function(a){return Zc(a,b)}})})();Ec(P,ja);var Me=/[^\u0000-\u0040\u005B-\u0060\u007B-\u007F]+('s)?/g,Le=/(^|_)([^_]+)/g,Re=/&#?(x)?([\w\d]{0,5});/gi,uf=/[&<>]/g,gd={lt:"<",gt:">",amp:"&",
nbsp:" ",quot:'"',apos:"'"},pc,Oe="and or nor a an the so but to of at by from into on onto off out in over with for".split(" "),Se="area base br col command embed hr img input keygen link meta param source track wbr".split(" "),vf=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]+"),wf=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]+$"),
Pe=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])"),xf=String.prototype.includes,qc,rc,yf=Mc(ob);N(fb,{includes:ca(function(a,b,c){if(!ea(b))return xf.call(a,b,c);c&&(a=a.slice(c));return b.test(a)})},["enhance","enhanceString"]);N(fb,{at:function(a,b,c){return Ic(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(uf,function(a){return q(pc,a)})},unescapeHTML:function(a){return Qe(a)},stripTags:function(a,b,c){return id(a,b,c,!0)},removeTags:function(a,b,c){return id(a,b,c,!1)},encodeBase64:function(a){return qc(a)},decodeBase64:function(a){return rc(a)},forEach:function(a,b,c){return ab(a,b,c)},chars:function(a,b,c){return ab(a,b,c)},words:function(a,b){return ab(a.trim(),/\S+/g,b)},lines:function(a,b){return ab(a.trim(),/^.*$/gm,b)},codes:function(a,b){return fd(a,
b)},shift:function(a,b){var c="";b=b||0;fd(a,function(a){c+=ka(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 hd(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(kd(a,b,!0))},to:function(a,b){v(b)&&(b=a.length);return a.slice(0,kd(a,b))},dasherize:function(a){return bb(a).replace(/_/g,"-")},underscore:function(a){return bb(a)},camelize:function(a,b){return Ke(a,b)},spacify:function(a){return bb(a).replace(/_/g," ")},titleize:function(a){return Ne(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(Fa(d)),"g"),c=c.replace(d,"$1"));return encodeURI(c.toLowerCase())},
truncate:function(a,b,c,d){return ed(a,b,c,d)},truncateOnWord:function(a,b,c,d){return ed(a,b,c,d,!0)},pad:function(a,b,c){var d;b=ua(b);d=D(0,b-a.length)/2;b=Ha(d);d=ia(d);return Ab(b,c)+a+Ab(d,c)},padLeft:function(a,b,c){b=ua(b);return Ab(D(0,b-a.length),c)+a},padRight:function(a,b,c){b=ua(b);return a+Ab(D(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 Rb(a,b)},capitalize:function(a,
b,c){return ac(a,b,c)},trimLeft:function(a){return a.replace(vf,"")},trimRight:function(a){return a.replace(wf,"")}});gb(fb,{replaceAll:function(a,b,c){return hd(a,b,c)},format:function(a,b){var c=b[0]&&b[0].valueOf();1===b.length&&I(c)&&(b=c);return yf(a,b)}});(function(){function a(a){return function(b){try{return a(b)}catch(c){return""}}}var b,c;if("undefined"!==typeof Buffer)qc=function(a){return(new Buffer(a)).toString("base64")},rc=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+=ka(c),64!=m&&(b+=ka(h)),64!=n&&(b+=ka(k));while(q<a.length);return b}}qc=function(a){return b(unescape(encodeURIComponent(a)))};rc=function(a){return decodeURIComponent(escape(c(a)))}}})();(function(){pc={};r(gd,function(a,b){pc[a]="&"+b+";"})})();var zf=!("0"in[].concat(void 0).concat()),Af={sortIgnore:null,sortNatural:!0,sortIgnoreCase:!0,sortOrder:function(){return na("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=Ka("sortOrder");c=Ka("sortIgnore");var m=Ka("sortNatural");d=Ka("sortIgnoreCase");var n=Ka("sortEquivalents");a=rd(a,c,d);b=rd(b,c,d);do e=sd(a,g,n),f=sd(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=Rb(a.slice(g)),d=Rb(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}()},Ka=Lb(R,Af);sa(R,{create:function(a,b){return ld(a,b)},construct:function(a,
b){a=ua(a);return Array.from(Array(a),function(a,d){return b&&b(d)})}});N(R,{isEmpty:function(a){return 0===a.length},isEqual:function(a,b){return va(a,b)},clone:function(a){return Ja(a)},at:function(a,b,c){return Ic(a,b,c)},add:function(a,b,c){return md(Ja(a),b,c)},subtract:function(a,b){return pd(a,b,!0)},append:function(a,b,c){return md(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 nd(a,b)},flatten:function(a,b){return od(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 Ve(a,b)},groupBy:function(a,b,c){return We(a,b,c)},inGroups:function(a,b,c){var d=n(c),e=Array(b),f=ia(a.length/b);Nb(b,function(b){var h=b*f,k=a.slice(h,h+f);d&&k.length<f&&Nb(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);Nb(ia(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=Ja(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;La(b)||(e=b,b=c);v(e)&&(e=1,f=!0);b||(a=Ja(a));e=aa(e,a.length);for(b=0;b<e;b++)c=O(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=ma(d,b,a,[d]),g=ma(e,b,a,[e]);return qd(f,g)*(c?-1:1)});return a},remove:function(a,b){for(var c=da(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=da(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=zf?Ue(a,b):a.concat(b);return nd(c)},intersect:function(a,b){return pd(a,b,!1)}});gb(R,{zip:function(a,b){return na(a,function(a,d){return[a].concat(na(b,function(a){return d in
a?a[d]:null}))})}});Sd(R,"insert","append");Ec(R,ld);var Ze=/^(.+?)(\[.*\])$/,bf=/[^\d.-]/,fc=Object.getOwnPropertyNames,vd=Object.getOwnPropertySymbols,wd=Object.getOwnPropertyDescriptor;sa(eb,{fromQueryString:function(a,b){return Ye(a,b)}});Kb(eb,{has:function(a,b,c){return Ba(a,b,c,!0)},get:function(a,b,c){return ob(a,b,c)},set:function(a,b,c){Ba(a,b,!1,!1,!0,!1,c);return a},size:function(a){return Object.keys(Sa(a)).length},isEmpty:function(a){return 0===Object.keys(Sa(a)).length},toQueryString:function(a,
b){var c;c=b||{};v(c.separator)&&(c.separator="_");return bc(a,c.deep,c.transform,c.prefix||"",c.separator)},isEqual:function(a,b){return va(a,b)},merge:function(a,b,c){return dc(a,b,c)},mergeAll:function(a,b,c){return ec(a,b,c)},add:function(a,b,c){return dc(gc(a),b,c)},addAll:function(a,b,c){return ec(gc(a),b,c)},intersect:function(a,b){return zd(a,b,!1)},subtract:function(a,b){return zd(a,b,!0)},defaults:function(a,b,c){c=c||{};c.resolve=c.resolve||!1;return ec(a,b,c)},clone:function(a,b){return gc(a,
b)},values:function(a){return df(a)},invert:function(a,b){var c={};b=!0===b;r(a,function(a,e){z(c,a)&&b?c[a].push(e):c[a]=b?[e]:e});return c},tap:function(a,b){return ef(a,b)},isArguments:function(a){var b;b=b||V(a);return!la(a)&&"length"in a&&("[object Arguments]"===b||!!a.callee)},isObject:function(a){return nb(a)},remove:function(a,b){return ff(a,b)},exclude:function(a,b){return gf(a,b)},select:function(a,b){return yd(a,b,!0)},reject:function(a,b){return yd(a,b,!1)}});N(eb,{keys:function(a){return Object.keys(a)}});
(function(){var a=[La,E,y,Q,ea,H,F,sb,qb,rb];je(eb,function(b,c,d){b["is"+c]=a[d]})})();var Xd=Ma("some",ra),Yd=Ma("filter",ra);N(R,{map:ca(Ma("map",Ed)),some:ca(Xd),every:ca(Ma("every",ra)),filter:ca(Yd),find:ca(Ma("find",ra)),findIndex:ca(Ma("findIndex",ra))},["enhance","enhanceArray"]);N(R,{none:ca(function(){return!Xd.apply(this,arguments)}),count:ca(function(a,b){return v(b)?a.length:Yd.apply(this,arguments).length}),min:function(a,b,c){return db(a,b,c)},max:function(a,b,c){return db(a,b,c,!0)},
least:function(a,b,c){return Cb(a,b,c)},most:function(a,b,c){return Cb(a,b,c,!0)},sum:function(a,b){return Ad(a,b)},average:function(a,b){return Bd(a,b)},median:function(a,b){return Cd(a,b)}});var Zd=hc("some");Kb(eb,{forEach:function(a,b){return hf(a,b)},map:function(a,b){return jf(a,b)},some:Zd,every:hc("every"),filter:function(a,b){return lf(a,b)},reduce:function(a,b,c){return kf(a,b,c)},find:hc("find"),count:function(a,b){return mf(a,b)},none:function(a,b){return!Zd(a,b)},sum:function(a,b){return Ad(a,
b)},average:function(a,b){return Bd(a,b)},median:function(a,b){return Cd(a,b)},min:function(a,b,c){return db(a,b,c,!1,!0)},max:function(a,b,c){return db(a,b,c,!0,!0)},least:function(a,b,c){return Cb(a,b,c,!1,!0)},most:function(a,b,c){return Cb(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 aa(b,D(0,a))}function c(a,b,c,d,e,n){return function(d,k,l){l=Pb(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=Pb(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;La(c[0])&&(g=c[e++]);r=c[e++];e=c[e];0>b&&(b+=f);b=n(b,f);Dc(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}}r({forEach:{i:function(a){x(this,a)}},map:{v:Ed},"some every":{v:ra},findIndex:{v:ra,result:function(a,b,c){-1!==a&&(a=(a+b)%c);return a}},
reduce:{apply:c},"filter find":{v:ra},reduceRight:{apply:c,slice:function(a,b,c){c||(a=a.slice(0,D(0,b+1)));return a},clamp:function(a,b){return aa(b,D(-1,a))}}},function(a,b){x(b.split(" "),function(b){gb(R,b+"FromIndex",e(b,a))})})})();var Gd=Lb(ba,{decimal:".",thousands:","});sa(ba,{random:function(a,b){var c,d;1==arguments.length&&(b=a,a=0);c=aa(a||0,v(b)?1:b);d=D(a||0,v(b)?1:b)+1;return O(Math.random()*(d-c)+c)}});N(ba,{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 ic(a,b,"|kmbt")},metric:function(a,b,c){"all"===c?c="yzafpn\u03bcm|KMGTPEZY":c||(c="n\u03bcm|k");return ic(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 ic(a,b,d,c)+"B"},format:function(a,b){return Fd(a,b)},hex:function(a,b){return Da(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 ka(a)},pad:function(a,b,c,d){return Da(a,b,c,d)},ordinalize:function(a){var b=+X(a).toString().slice(-2);return a+Kc(b)},toNumber:function(a){return a.valueOf()},round:jc(Ua),ceil:jc(ia),floor:jc(Ha)});(function(){Qa(ba,"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 Gb=Ra("lock"),Db=Ra("timers"),$d=Ra("partial"),kc=Ra("canceled"),Bf=
Object.create||function(a){function b(){}b.prototype=a;return new b};N(Qd,{lazy:function(a,b,c,d){return Id(a,b,c,d)},throttle:function(a,b){return Id(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]);Hd(c);Na(c,b,a,this,d)}return c},cancel:function(a){return Hd(a)},after:function(a,b){var c=0,d=[];b=ua(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;E(b)||(d=b,b=c);y(d)?(e=d,d=function(a){return ob(a,e)}):d||(d=nf);return of(a,d,b)},lock:function(a,b){var c;if($d(a))return Gb(a,E(b)?b:null),a;c=function(){arguments.length=aa(Gb(c),arguments.length);return a.apply(this,arguments)};Gb(c,E(b)?b:a.length);return c}});gb(Qd,{partial:function(a,b){function c(){var e=0,f=[],g=this,h=Gb(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);E(h)&&(f.length=aa(f.length,h));return g instanceof c?(g=Bf(a.prototype),e=a.apply(g,f),I(e)?e:g):a.apply(g,f)}var d=b.length;$d(c,!0);return c},delay:function(a,b,c){Na(a,b,a,a,c);return a},every:function(a,b,c){function d(){Na(a,b,d);a.apply(a,c)}Na(a,b,d);return a}});sa(Rd,{escape:function(a){return Fa(a)}});N(Rd,{getFlags:function(a){return Ea(a)},setFlags:function(a,b){return RegExp(a.source,b)},addFlags:function(a,b){return RegExp(a.source,
Ea(a,b))},removeFlags:function(a,b){var c=RegExp("["+b+"]","g");return RegExp(a.source,Ea(a).replace(c,""))}});var pf=/(\d+)?\s*(year|month|week|day|hour|minute|second|millisecond)s?/i,Pd={Hours:36E5,Minutes:6E4,Seconds:1E3,Milliseconds:1};Cc(M,{toString:function(){return Eb(this)?this.start+".."+this.end:"Invalid Range"},isValid:function(){return Eb(this)},span:function(){var a=Jd(this.end)-Jd(this.start);return Eb(this)?X(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 Fb(this,a,!1,b)},toArray:function(){return Fb(this)},union:function(a){return new M(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 M(NaN,NaN):new M(this.start>a.start?this.start:a.start,this.end<a.end?this.end:a.end)},clone:function(){return new M(this.start,this.end)},clamp:function(a){return mc(this,
a)}});sa(ba,{range:sc});N(ba,{upto:function(a,b,c,d){return Fb(new M(a,b),c,!1,d)},clamp:function(a,b,c){return mc(new M(b,c),a)},cap:function(a,b){return mc(new M(void 0,b),a)}});Sd(ba,"downto","upto");sa(fb,{range:sc});var Cf=/(?:from)?\s*(.+)\s+(?:to|until)\s+(.+)$/i,Df=/(.+)\s*for\s*((?:\d+)?\s*(?:year|month|week|day|hour|minute|second|millisecond))s?/i,Ef=/(?:for)?\s*((?:\d+)?\s*(?:year|month|week|day|hour|minute|second|millisecond))s?\s*(?:starting)?\s*at\s*(.+)/i;sa(P,{range:function(a,b){var c;
if(1===arguments.length&&y(a)){var d,e,f;if(P.get&&(c=a.match(Cf)))d=Oa(c[1].replace("from","at")),f=P.get(d,c[2]),c=new M(d,f);else{if(c=a.match(Ef))e=c[1],d=c[2];if(c=a.match(Df))d=c[1],e=c[2];d&&e?(d=Oa(d),c=Nd(e),f=Od(d,c[0],c[1])):d=a;c=new M(Oa(d),Oa(f))}}else c=new M(Oa(a),Oa(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 Fb(this,b,!0)}:(e=Pd[Va(d)],f=function(){return O((this.end-
this.start)/e)});a[d]=f});Cc(M,a)})()}).call(this);}).call(this);