@@ -3364,20 +3364,20 @@ return /******/ (function(modules) { // webpackBootstrap
3364
3364
// NB: In an Electron preload script, document will be defined but not fully
3365
3365
// initialized. Since we know we're in Chrome, we'll just detect this case
3366
3366
// explicitly
3367
- if ( typeof window !== 'undefined' && window && typeof window . process !== 'undefined' && window . process . type === 'renderer' ) {
3367
+ if ( typeof window !== 'undefined' && window . process && window . process . type === 'renderer' ) {
3368
3368
return true ;
3369
3369
}
3370
3370
3371
3371
// is webkit? http://stackoverflow.com/a/16459606/376773
3372
3372
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
3373
- return ( typeof document !== 'undefined' && document && 'WebkitAppearance' in document . documentElement . style ) ||
3373
+ return ( typeof document !== 'undefined' && document . documentElement && document . documentElement . style && document . documentElement . style . WebkitAppearance ) ||
3374
3374
// is firebug? http://stackoverflow.com/a/398120/376773
3375
- ( typeof window !== 'undefined' && window && window . console && ( console . firebug || ( console . exception && console . table ) ) ) ||
3375
+ ( typeof window !== 'undefined' && window . console && ( window . console . firebug || ( window . console . exception && window . console . table ) ) ) ||
3376
3376
// is firefox >= v31?
3377
3377
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
3378
- ( typeof navigator !== 'undefined' && navigator && navigator . userAgent && navigator . userAgent . toLowerCase ( ) . match ( / f i r e f o x \/ ( \d + ) / ) && parseInt ( RegExp . $1 , 10 ) >= 31 ) ||
3378
+ ( typeof navigator !== 'undefined' && navigator . userAgent && navigator . userAgent . toLowerCase ( ) . match ( / f i r e f o x \/ ( \d + ) / ) && parseInt ( RegExp . $1 , 10 ) >= 31 ) ||
3379
3379
// double check webkit in userAgent just in case we are in a worker
3380
- ( typeof navigator !== 'undefined' && navigator && navigator . userAgent && navigator . userAgent . toLowerCase ( ) . match ( / a p p l e w e b k i t \/ ( \d + ) / ) ) ;
3380
+ ( typeof navigator !== 'undefined' && navigator . userAgent && navigator . userAgent . toLowerCase ( ) . match ( / a p p l e w e b k i t \/ ( \d + ) / ) ) ;
3381
3381
}
3382
3382
3383
3383
/**
@@ -3916,11 +3916,11 @@ return /******/ (function(modules) { // webpackBootstrap
3916
3916
* Helpers.
3917
3917
*/
3918
3918
3919
- var s = 1000
3920
- var m = s * 60
3921
- var h = m * 60
3922
- var d = h * 24
3923
- var y = d * 365.25
3919
+ var s = 1000 ;
3920
+ var m = s * 60 ;
3921
+ var h = m * 60 ;
3922
+ var d = h * 24 ;
3923
+ var y = d * 365.25 ;
3924
3924
3925
3925
/**
3926
3926
* Parse or format the given `val`.
@@ -3936,18 +3936,19 @@ return /******/ (function(modules) { // webpackBootstrap
3936
3936
* @api public
3937
3937
*/
3938
3938
3939
- module . exports = function ( val , options ) {
3940
- options = options || { }
3941
- var type = typeof val
3939
+ module . exports = function ( val , options ) {
3940
+ options = options || { } ;
3941
+ var type = typeof val ;
3942
3942
if ( type === 'string' && val . length > 0 ) {
3943
- return parse ( val )
3943
+ return parse ( val ) ;
3944
3944
} else if ( type === 'number' && isNaN ( val ) === false ) {
3945
- return options . long ?
3946
- fmtLong ( val ) :
3947
- fmtShort ( val )
3945
+ return options . long ? fmtLong ( val ) : fmtShort ( val ) ;
3948
3946
}
3949
- throw new Error ( 'val is not a non-empty string or a valid number. val=' + JSON . stringify ( val ) )
3950
- }
3947
+ throw new Error (
3948
+ 'val is not a non-empty string or a valid number. val=' +
3949
+ JSON . stringify ( val )
3950
+ ) ;
3951
+ } ;
3951
3952
3952
3953
/**
3953
3954
* Parse the given `str` and return milliseconds.
@@ -3958,53 +3959,55 @@ return /******/ (function(modules) { // webpackBootstrap
3958
3959
*/
3959
3960
3960
3961
function parse ( str ) {
3961
- str = String ( str )
3962
- if ( str . length > 10000 ) {
3963
- return
3962
+ str = String ( str ) ;
3963
+ if ( str . length > 100 ) {
3964
+ return ;
3964
3965
}
3965
- var match = / ^ ( (?: \d + ) ? \. ? \d + ) * ( m i l l i s e c o n d s ? | m s e c s ? | m s | s e c o n d s ? | s e c s ? | s | m i n u t e s ? | m i n s ? | m | h o u r s ? | h r s ? | h | d a y s ? | d | y e a r s ? | y r s ? | y ) ? $ / i. exec ( str )
3966
+ var match = / ^ ( (?: \d + ) ? \. ? \d + ) * ( m i l l i s e c o n d s ? | m s e c s ? | m s | s e c o n d s ? | s e c s ? | s | m i n u t e s ? | m i n s ? | m | h o u r s ? | h r s ? | h | d a y s ? | d | y e a r s ? | y r s ? | y ) ? $ / i. exec (
3967
+ str
3968
+ ) ;
3966
3969
if ( ! match ) {
3967
- return
3970
+ return ;
3968
3971
}
3969
- var n = parseFloat ( match [ 1 ] )
3970
- var type = ( match [ 2 ] || 'ms' ) . toLowerCase ( )
3972
+ var n = parseFloat ( match [ 1 ] ) ;
3973
+ var type = ( match [ 2 ] || 'ms' ) . toLowerCase ( ) ;
3971
3974
switch ( type ) {
3972
3975
case 'years' :
3973
3976
case 'year' :
3974
3977
case 'yrs' :
3975
3978
case 'yr' :
3976
3979
case 'y' :
3977
- return n * y
3980
+ return n * y ;
3978
3981
case 'days' :
3979
3982
case 'day' :
3980
3983
case 'd' :
3981
- return n * d
3984
+ return n * d ;
3982
3985
case 'hours' :
3983
3986
case 'hour' :
3984
3987
case 'hrs' :
3985
3988
case 'hr' :
3986
3989
case 'h' :
3987
- return n * h
3990
+ return n * h ;
3988
3991
case 'minutes' :
3989
3992
case 'minute' :
3990
3993
case 'mins' :
3991
3994
case 'min' :
3992
3995
case 'm' :
3993
- return n * m
3996
+ return n * m ;
3994
3997
case 'seconds' :
3995
3998
case 'second' :
3996
3999
case 'secs' :
3997
4000
case 'sec' :
3998
4001
case 's' :
3999
- return n * s
4002
+ return n * s ;
4000
4003
case 'milliseconds' :
4001
4004
case 'millisecond' :
4002
4005
case 'msecs' :
4003
4006
case 'msec' :
4004
4007
case 'ms' :
4005
- return n
4008
+ return n ;
4006
4009
default :
4007
- return undefined
4010
+ return undefined ;
4008
4011
}
4009
4012
}
4010
4013
@@ -4018,18 +4021,18 @@ return /******/ (function(modules) { // webpackBootstrap
4018
4021
4019
4022
function fmtShort ( ms ) {
4020
4023
if ( ms >= d ) {
4021
- return Math . round ( ms / d ) + 'd'
4024
+ return Math . round ( ms / d ) + 'd' ;
4022
4025
}
4023
4026
if ( ms >= h ) {
4024
- return Math . round ( ms / h ) + 'h'
4027
+ return Math . round ( ms / h ) + 'h' ;
4025
4028
}
4026
4029
if ( ms >= m ) {
4027
- return Math . round ( ms / m ) + 'm'
4030
+ return Math . round ( ms / m ) + 'm' ;
4028
4031
}
4029
4032
if ( ms >= s ) {
4030
- return Math . round ( ms / s ) + 's'
4033
+ return Math . round ( ms / s ) + 's' ;
4031
4034
}
4032
- return ms + 'ms'
4035
+ return ms + 'ms' ;
4033
4036
}
4034
4037
4035
4038
/**
@@ -4045,7 +4048,7 @@ return /******/ (function(modules) { // webpackBootstrap
4045
4048
plural ( ms , h , 'hour' ) ||
4046
4049
plural ( ms , m , 'minute' ) ||
4047
4050
plural ( ms , s , 'second' ) ||
4048
- ms + ' ms'
4051
+ ms + ' ms' ;
4049
4052
}
4050
4053
4051
4054
/**
@@ -4054,12 +4057,12 @@ return /******/ (function(modules) { // webpackBootstrap
4054
4057
4055
4058
function plural ( ms , n , name ) {
4056
4059
if ( ms < n ) {
4057
- return
4060
+ return ;
4058
4061
}
4059
4062
if ( ms < n * 1.5 ) {
4060
- return Math . floor ( ms / n ) + ' ' + name
4063
+ return Math . floor ( ms / n ) + ' ' + name ;
4061
4064
}
4062
- return Math . ceil ( ms / n ) + ' ' + name + 's'
4065
+ return Math . ceil ( ms / n ) + ' ' + name + 's' ;
4063
4066
}
4064
4067
4065
4068
0 commit comments