Best Buy Home: Virtual and In-Home Consultation

=n&&o0?y.setDate(w.getDate()+1):y.setDate(w.getDate()-1);var T=Object(a.a)(y)-f;T>0&&(f+=T)}return new Date(h+g+f)}function l(e){var t,n={},r=e.split(o.dateTimeDelimiter);if(/:/.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1],o.timeZoneDelimiter.test(n.date)&&(n.date=e.split(o.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var a=o.timezone.exec(t);a?(n.time=t.replace(a[1],””),n.timezone=a[1]):n.time=t}return n}function d(e,t){var n=new RegExp(“^(?:(\d{4}|[+-]\d{“+(4+t)+”})|(\d{2}|[+-]\d{“+(2+t)+”})$)”),r=e.match(n);if(!r)return{year:null};var a=r[1]&&parseInt(r[1]),i=r[2]&&parseInt(r[2]);return{year:null==i?a:100*i,restDateString:e.slice((r[1]||r[2]).length)}}function m(e,t){if(null===t)return null;var n=e.match(u);if(!n)return null;var r=!!n[4],a=h(n[1]),i=h(n[2])-1,o=h(n[3]),s=h(n[4]),c=h(n[5])-1;if(r)return function(e,t,n){return t>=1&&t=0&&n=0&&t=1&&n=1&&t=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,a)?36e5*n+6e4*r+1e3*a:NaN}function g(e){return e&&parseFloat(e.replace(",","."))||0}function p(e){if("Z"===e)return 0;var t=e.match(c);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,a)?n*(36e5*r+6e4*a):NaN}var b=[31,null,31,30,31,30,31,31,30,31,30,31];function w(e){return e%400==0||e%4==0&&e%100}},function(e,t,n){(function(e){!function e(t,n,r){function a(o,u){if(!n[o]){if(!t[o]){if(i)return i(o,!0);var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){return a(t[o][1][e]||e)}),c,c.exports,e,t,n,r)}return n[o].exports}for(var i=!1,o=0;o20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:f({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:f({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:f({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:f({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(d={matchPattern:/^(d+)(th|st|nd|rd)?/i,parsePattern:/d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},a=n.match(d.matchPattern);if(!a)return null;var i=a[0],o=n.match(d.parsePattern);if(!o)return null;var u=d.valueCallback?d.valueCallback(o[0]):o[0];return{value:u=r.valueCallback?r.valueCallback(u):u,rest:n.slice(i.length)}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b.?s?c.?|b.?s?c.?s?e.?|a.?s?d.?|c.?s?e.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap].?s?m.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},h=n(1);function v(e,t){Object(r.a)(2,arguments);var n=a(e).getTime(),i=Object(h.a)(t);return new Date(n+i)}function g(e,t){Object(r.a)(2,arguments);var n=Object(h.a)(t);return v(e,-n)}function p(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return p("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):p(n+1,2)},d:function(e,t){return p(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?”pm”:”am”;switch(t){case”a”:case”aa”:case”aaa”:return n.toUpperCase();case”aaaaa”:return n[0];case”aaaa”:default:return”am”===n?”a.m.”:”p.m.”}},h:function(e,t){return p(e.getUTCHours()%12||12,t.length)},H:function(e,t){return p(e.getUTCHours(),t.length)},m:function(e,t){return p(e.getUTCMinutes(),t.length)},s:function(e,t){return p(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return p(Math.floor(r*Math.pow(10,n-3)),t.length)}};function w(e){Object(r.a)(1,arguments);var t=1,n=a(e),i=n.getUTCDay(),o=(i=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function T(e){Object(r.a)(1,arguments);var t=y(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var a=w(n);return a}function D(e,t){Object(r.a)(1,arguments);var n=t||{},i=n.locale,o=i&&i.options&&i.options.weekStartsOn,u=null==o?0:Object(h.a)(o),s=null==n.weekStartsOn?u:Object(h.a)(n.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=a(e),f=c.getUTCDay(),l=(f=1&&f=d.getTime()?i+1:n.getTime()>=v.getTime()?i:i-1}function O(e,t){Object(r.a)(1,arguments);var n=t||{},a=n.locale,i=a&&a.options&&a.options.firstWeekContainsDate,o=null==i?1:Object(h.a)(i),u=null==n.firstWeekContainsDate?o:Object(h.a)(n.firstWeekContainsDate),s=j(e,t),c=new Date(0);c.setUTCFullYear(s,0,u),c.setUTCHours(0,0,0,0);var f=D(c,t);return f}var M=”midnight”,x=”noon”,C=”morning”,N=”afternoon”,S=”evening”,k=”night”;function P(e,t){var n=e>0?”-“:”+”,r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(0===i)return n+String(a);var o=t||””;return n+String(a)+o+p(i,2)}function U(e,t){return e%60==0?(e>0?”-“:”+”)+p(Math.abs(e)/60,2):Z(e,t)}function Z(e,t){var n=t||””,r=e>0?”-“:”+”,a=Math.abs(e);return r+p(Math.floor(a/60),2)+n+p(a%60,2)}var z={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case”G”:case”GG”:case”GGG”:return n.era(r,{width:”abbreviated”});case”GGGGG”:return n.era(r,{width:”narrow”});case”GGGG”:default:return n.era(r,{width:”wide”})}},y:function(e,t,n){if(“yo”===t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:”year”})}return b.y(e,t)},Y:function(e,t,n,r){var a=j(e,r),i=a>0?a:1-a;return”YY”===t?p(i%100,2):”Yo”===t?n.ordinalNumber(i,{unit:”year”}):p(i,t.length)},R:function(e,t){return p(y(e),t.length)},u:function(e,t){return p(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case”Q”:return String(r);case”QQ”:return p(r,2);case”Qo”:return n.ordinalNumber(r,{unit:”quarter”});case”QQQ”:return n.quarter(r,{width:”abbreviated”,context:”formatting”});case”QQQQQ”:return n.quarter(r,{width:”narrow”,context:”formatting”});case”QQQQ”:default:return n.quarter(r,{width:”wide”,context:”formatting”})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case”q”:return String(r);case”qq”:return p(r,2);case”qo”:return n.ordinalNumber(r,{unit:”quarter”});case”qqq”:return n.quarter(r,{width:”abbreviated”,context:”standalone”});case”qqqqq”:return n.quarter(r,{width:”narrow”,context:”standalone”});case”qqqq”:default:return n.quarter(r,{width:”wide”,context:”standalone”})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case”M”:case”MM”:return b.M(e,t);case”Mo”:return n.ordinalNumber(r+1,{unit:”month”});case”MMM”:return n.month(r,{width:”abbreviated”,context:”formatting”});case”MMMMM”:return n.month(r,{width:”narrow”,context:”formatting”});case”MMMM”:default:return n.month(r,{width:”wide”,context:”formatting”})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case”L”:return String(r+1);case”LL”:return p(r+1,2);case”Lo”:return n.ordinalNumber(r+1,{unit:”month”});case”LLL”:return n.month(r,{width:”abbreviated”,context:”standalone”});case”LLLLL”:return n.month(r,{width:”narrow”,context:”standalone”});case”LLLL”:default:return n.month(r,{width:”wide”,context:”standalone”})}},w:function(e,t,n,i){var o=function(e,t){Object(r.a)(1,arguments);var n=a(e),i=D(n,t).getTime()-O(n,t).getTime();return Math.round(i/6048e5)+1}(e,i);return”wo”===t?n.ordinalNumber(o,{unit:”week”}):p(o,t.length)},I:function(e,t,n){var i=function(e){Object(r.a)(1,arguments);var t=a(e),n=w(t).getTime()-T(t).getTime();return Math.round(n/6048e5)+1}(e);return”Io”===t?n.ordinalNumber(i,{unit:”week”}):p(i,t.length)},d:function(e,t,n){return”do”===t?n.ordinalNumber(e.getUTCDate(),{unit:”date”}):b.d(e,t)},D:function(e,t,n){var i=function(e){Object(r.a)(1,arguments);var t=a(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime(),o=n-i;return Math.floor(o/864e5)+1}(e);return”Do”===t?n.ordinalNumber(i,{unit:”dayOfYear”}):p(i,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case”E”:case”EE”:case”EEE”:return n.day(r,{width:”abbreviated”,context:”formatting”});case”EEEEE”:return n.day(r,{width:”narrow”,context:”formatting”});case”EEEEEE”:return n.day(r,{width:”short”,context:”formatting”});case”EEEE”:default:return n.day(r,{width:”wide”,context:”formatting”})}},e:function(e,t,n,r){var a=e.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case”e”:return String(i);case”ee”:return p(i,2);case”eo”:return n.ordinalNumber(i,{unit:”day”});case”eee”:return n.day(a,{width:”abbreviated”,context:”formatting”});case”eeeee”:return n.day(a,{width:”narrow”,context:”formatting”});case”eeeeee”:return n.day(a,{width:”short”,context:”formatting”});case”eeee”:default:return n.day(a,{width:”wide”,context:”formatting”})}},c:function(e,t,n,r){var a=e.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case”c”:return String(i);case”cc”:return p(i,t.length);case”co”:return n.ordinalNumber(i,{unit:”day”});case”ccc”:return n.day(a,{width:”abbreviated”,context:”standalone”});case”ccccc”:return n.day(a,{width:”narrow”,context:”standalone”});case”cccccc”:return n.day(a,{width:”short”,context:”standalone”});case”cccc”:default:return n.day(a,{width:”wide”,context:”standalone”})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case”i”:return String(a);case”ii”:return p(a,t.length);case”io”:return n.ordinalNumber(a,{unit:”day”});case”iii”:return n.day(r,{width:”abbreviated”,context:”formatting”});case”iiiii”:return n.day(r,{width:”narrow”,context:”formatting”});case”iiiiii”:return n.day(r,{width:”short”,context:”formatting”});case”iiii”:default:return n.day(r,{width:”wide”,context:”formatting”})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?”pm”:”am”;switch(t){case”a”:case”aa”:case”aaa”:return n.dayPeriod(r,{width:”abbreviated”,context:”formatting”});case”aaaaa”:return n.dayPeriod(r,{width:”narrow”,context:”formatting”});case”aaaa”:default:return n.dayPeriod(r,{width:”wide”,context:”formatting”})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?x:0===a?M:a/12>=1?”pm”:”am”,t){case”b”:case”bb”:case”bbb”:return n.dayPeriod(r,{width:”abbreviated”,context:”formatting”});case”bbbbb”:return n.dayPeriod(r,{width:”narrow”,context:”formatting”});case”bbbb”:default:return n.dayPeriod(r,{width:”wide”,context:”formatting”})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?S:a>=12?N:a>=4?C:k,t){case”B”:case”BB”:case”BBB”:return n.dayPeriod(r,{width:”abbreviated”,context:”formatting”});case”BBBBB”:return n.dayPeriod(r,{width:”narrow”,context:”formatting”});case”BBBB”:default:return n.dayPeriod(r,{width:”wide”,context:”formatting”})}},h:function(e,t,n){if(“ho”===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:”hour”})}return b.h(e,t)},H:function(e,t,n){return”Ho”===t?n.ordinalNumber(e.getUTCHours(),{unit:”hour”}):b.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return”Ko”===t?n.ordinalNumber(r,{unit:”hour”}):p(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),”ko”===t?n.ordinalNumber(r,{unit:”hour”}):p(r,t.length)},m:function(e,t,n){return”mo”===t?n.ordinalNumber(e.getUTCMinutes(),{unit:”minute”}):b.m(e,t)},s:function(e,t,n){return”so”===t?n.ordinalNumber(e.getUTCSeconds(),{unit:”second”}):b.s(e,t)},S:function(e,t){return b.S(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(0===a)return”Z”;switch(t){case”X”:return U(a);case”XXXX”:case”XX”:return Z(a);case”XXXXX”:case”XXX”:default:return Z(a,”:”)}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case”x”:return U(a);case”xxxx”:case”xx”:return Z(a);case”xxxxx”:case”xxx”:default:return Z(a,”:”)}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case”O”:case”OO”:case”OOO”:return”GMT”+P(a,”:”);case”OOOO”:default:return”GMT”+Z(a,”:”)}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case”z”:case”zz”:case”zzz”:return”GMT”+P(a,”:”);case”zzzz”:default:return”GMT”+Z(a,”:”)}},t:function(e,t,n,r){var a=r._originalDate||e;return p(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,n,r){return p((r._originalDate||e).getTime(),t.length)}};function _(e,t){switch(e){case”P”:return t.date({width:”short”});case”PP”:return t.date({width:”medium”});case”PPP”:return t.date({width:”long”});case”PPPP”:default:return t.date({width:”full”})}}function Y(e,t){switch(e){case”p”:return t.time({width:”short”});case”pp”:return t.time({width:”medium”});case”ppp”:return t.time({width:”long”});case”pppp”:default:return t.time({width:”full”})}}var q={p:Y,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),a=r[1],i=r[2];if(!i)return _(e,t);switch(a){case”P”:n=t.dateTime({width:”short”});break;case”PP”:n=t.dateTime({width:”medium”});break;case”PPP”:n=t.dateTime({width:”long”});break;case”PPPP”:default:n=t.dateTime({width:”full”})}return n.replace(“{{date}}”,_(a,t)).replace(“{{time}}”,Y(i,t))}},F=n(2),E=[“D”,”DD”],I=[“YY”,”YYYY”];function W(e){return-1!==E.indexOf(e)}function H(e){return-1!==I.indexOf(e)}function X(e){if(“YYYY”===e)throw new RangeError(“Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr”);if(“YY”===e)throw new RangeError(“Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr”);if(“D”===e)throw new RangeError(“Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr”);if(“DD”===e)throw new RangeError(“Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr”)}var A=/[yYQqMLwIdDecihHKkms]o|(w)1*|”|'(”|[^’])+(‘|$)|./g,$=/P+p+|P+|p+|”|'(”|[^’])+(‘|$)|./g,L=/^'([^]*?)’?$/,G=/”/g,Q=/[a-zA-Z]/;function B(e,t,n){Object(r.a)(2,arguments);var o=String(t),u=n||{},s=u.locale||m,c=s.options&&s.options.firstWeekContainsDate,f=null==c?1:Object(h.a)(c),l=null==u.firstWeekContainsDate?f:Object(h.a)(u.firstWeekContainsDate);if(!(l>=1&&l=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!s.localize)throw new RangeError("locale must contain localize property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");var b=a(e);if(!i(b))throw new RangeError("Invalid time value");var w=Object(F.a)(b),y=g(b,w),T={firstWeekContainsDate:l,weekStartsOn:p,locale:s,_originalDate:b},D=o.match($).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,q[t])(e,s.formatLong,T):e})).join("").match(A).map((function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return R(e);var n=z[t];if(n)return!u.useAdditionalWeekYearTokens&&H(e)&&X(e),!u.useAdditionalDayOfYearTokens&&W(e)&&X(e),n(y,e,s.localize,T);if(t.match(Q))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join("");return D}function R(e){return e.match(L)[1].replace(G,"'")}function J(e,t,n){var r=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return r.formatToParts?function(e,t){var n=e.formatToParts(t);return n[n.length-1].value}(r,t):function(e,t){var n=e.format(t).replace(/u200E/g,""),r=/ [w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,t)}function V(e,t){var n=function(e){ee[e]||(ee[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}));return ee[e]}(t);return n.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],a=0;a=0&&(r[i]=parseInt(n[a].value,10))}return r}(n,e):function(e,t){var n=e.format(t).replace(/u200E/g,""),r=/(d+)/(d+)/(d+),? (d+):(d+):(d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(n,e)}var K={year:0,month:1,day:2,hour:3,minute:4,second:5};var ee={};var te={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(d{2})$/,timezoneHHMM:/^([+-])(d{2}):?(d{2})$/,timezoneIANA:/(UTC|(?:[a-zA-Z]+/[a-zA-Z_]+(?:/[a-zA-Z_]+)?))$/};function ne(e,t){var n,r,a;if(n=te.timezoneZ.exec(e))return 0;if(n=te.timezoneHH.exec(e))return re(a=parseInt(n[2],10))?(r=36e5*a,"+"===n[1]?-r:r):NaN;if(n=te.timezoneHHMM.exec(e)){a=parseInt(n[2],10);var i=parseInt(n[3],10);return re(a,i)?(r=36e5*a+6e4*i,"+"===n[1]?-r:r):NaN}if(n=te.timezoneIANA.exec(e)){var o=V(t,e);return-(Date.UTC(o[0],o[1]-1,o[2],o[3],o[4],o[5])-(t.getTime()-t.getTime()%1e3))}return 0}function re(e,t){return null==t||!(t<0||t>59)}function ae(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"-":"+",a=Math.abs(e);return r+ae(Math.floor(a/60),2)+n+ae(a%60,2)}function oe(e,t){return e%60==0?(e>0?”-“:”+”)+ae(Math.abs(e)/60,2):ie(e,t)}var ue={X:function(e,t,n,r){var a=r._originalDate||e,i=r.timeZone?ne(r.timeZone,a)/6e4:a.getTimezoneOffset();if(0===i)return”Z”;switch(t){case”X”:return oe(i);case”XXXX”:case”XX”:return ie(i);case”XXXXX”:case”XXX”:default:return ie(i,”:”)}},x:function(e,t,n,r){var a=r._originalDate||e,i=r.timeZone?ne(r.timeZone,a)/6e4:a.getTimezoneOffset();switch(t){case”x”:return oe(i);case”xxxx”:case”xx”:return ie(i);case”xxxxx”:case”xxx”:default:return ie(i,”:”)}},O:function(e,t,n,r){var a=r._originalDate||e,i=r.timeZone?ne(r.timeZone,a)/6e4:a.getTimezoneOffset();switch(t){case”O”:case”OO”:case”OOO”:return”GMT”+function(e,t){var n=e>0?”-“:”+”,r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(0===i)return n+String(a);var o=t||””;return n+String(a)+o+ae(i,2)}(i,”:”);case”OOOO”:default:return”GMT”+ie(i,”:”)}},z:function(e,t,n,r){var a=r._originalDate||e;switch(t){case”z”:case”zz”:case”zzz”:return J(“short”,a,r);case”zzzz”:default:return J(“long”,a,r)}}},se={dateTimeDelimeter:/[T ]/,plainTime:/:/,timeZoneDelimeter:/[Z ]/i,YY:/^(d{2})$/,YYY:[/^([+-]d{2})$/,/^([+-]d{3})$/,/^([+-]d{4})$/],YYYY:/^(d{4})/,YYYYY:[/^([+-]d{4})/,/^([+-]d{5})/,/^([+-]d{6})/],MM:/^-(d{2})$/,DDD:/^-?(d{3})$/,MMDD:/^-?(d{2})-?(d{2})$/,Www:/^-?W(d{2})$/,WwwD:/^-?W(d{2})-?(d{1})$/,HH:/^(d{2}([.,]d*)?)$/,HHMM:/^(d{2}):?(d{2}([.,]d*)?)$/,HHMMSS:/^(d{2}):?(d{2}):?(d{2}([.,]d*)?)$/,timezone:/([Z+-].*| UTC|(?:[a-zA-Z]+/[a-zA-Z_]+(?:/[a-zA-Z_]+)?))$/};function ce(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?2:Object(h.a)(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a=fe(e),i=le(a.date,r),o=i.year,u=i.restDateString,s=de(u,o);if(isNaN(s))return new Date(NaN);if(s){var c,f=s.getTime(),l=0;if(a.time&&(l=me(a.time),isNaN(l)))return new Date(NaN);if(a.timezone||n.timeZone){if(c=ne(a.timezone||n.timeZone,new Date(f+l)),isNaN(c))return new Date(NaN)}else c=Object(F.a)(new Date(f+l)),c=Object(F.a)(new Date(f+l+c));return new Date(f+l+c)}return new Date(NaN)}function fe(e){var t,n={},r=e.split(se.dateTimeDelimeter);if(se.plainTime.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1],n.timezone=r[2],se.timeZoneDelimeter.test(n.date)&&(n.date=e.split(se.timeZoneDelimeter)[0],t=e.substr(n.date.length,e.length))),t){var a=se.timezone.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}function le(e,t){var n,r=se.YYY[t],a=se.YYYYY[t];if(n=se.YYYY.exec(e)||a.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=se.YY.exec(e)||r.exec(e)){var o=n[1];return{year:100*parseInt(o,10),restDateString:e.slice(o.length)}}return{year:null}}function de(e,t){if(null===t)return null;var n,r,a,i;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=se.MM.exec(e))return r=new Date(0),be(t,a=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,a),r):new Date(NaN);if(n=se.DDD.exec(e)){r=new Date(0);var o=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=pe(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,o)?(r.setUTCFullYear(t,0,o),r):new Date(NaN)}if(n=se.MMDD.exec(e)){r=new Date(0),a=parseInt(n[1],10)-1;var u=parseInt(n[2],10);return be(t,a,u)?(r.setUTCFullYear(t,a,u),r):new Date(NaN)}if(n=se.Www.exec(e))return we(t,i=parseInt(n[1],10)-1)?he(t,i):new Date(NaN);if(n=se.WwwD.exec(e)){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return we(t,i,s)?he(t,i,s):new Date(NaN)}return null}function me(e){var t,n,r;if(t=se.HH.exec(e))return ye(n=parseFloat(t[1].replace(“,”,”.”)))?n%24*36e5:NaN;if(t=se.HHMM.exec(e))return ye(n=parseInt(t[1],10),r=parseFloat(t[2].replace(“,”,”.”)))?n%24*36e5+6e4*r:NaN;if(t=se.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var a=parseFloat(t[3].replace(“,”,”.”));return ye(n,r,a)?n%24*36e5+6e4*r+1e3*a:NaN}return null}function he(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var a=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+a),r}var ve=[31,28,31,30,31,30,31,31,30,31,30,31],ge=[31,29,31,30,31,30,31,31,30,31,30,31];function pe(e){return e%400==0||e%4==0&&e%100!=0}function be(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=pe(e);if(r&&n>ge[t])return!1;if(!r&&n>ve[t])return!1}return!0}function we(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function ye(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var Te=/([xXOz]+)|”|'(”|[^’])+(‘|$)/g;function De(e,t,n){var r=String(t),a=n||{},i=r.match(Te);if(i){var o=ce(e,a);r=i.reduce((function(e,t){return”‘”===t[0]?e:e.replace(t,”‘”+ue[t[0]](o,t,null,a)+”‘”)}),r)}return B(e,r,a)}function je(e,t,n){var r=ce(e,n),a=new Date(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),i=ne(t,r);return i?g(a,i):a}function Oe(e){return function(e,t){if(null==e)throw new TypeError(“assign requires that input parameter not be null or undefined”);for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}({},e)}function Me(e,t,n){e instanceof Date&&(e=B(e,”yyyy-MM-dd’T’HH:mm:ss.SSS”));var r=Oe(n);return r.timeZone=t,ce(e,r)}}]); ]]>

Source

Leave a Reply