2021-02-26 03:58:33 +00:00
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / ( n u l l = = t & & n . p a t h ) } } , n . e x p o r t s ) , n . e x p o r t s } v a r o = f u n c t i o n ( e , t ) { r e t u r n ( o = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , t ) { e . _ _ p r o t o _ _ = t } | | f u n c t i o n ( e , t ) { f o r ( v a r n i n t ) t . h a s O w n P r o p e r t y ( n ) & & ( e [ n ] = t [ n ] ) } ) ( e , t ) } ; v a r s = f u n c t i o n ( ) { r e t u r n ( s = O b j e c t . a s s i g n | | f u n c t i o n ( e ) { f o r ( v a r t , n = 1 , r = a r g u m e n t s . l e n g t h ; n < r ; n + + ) f o r ( v a r o i n t = a r g u m e n t s [ n ] ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( t , o ) & & ( e [ o ] = t [ o ] ) ; r e t u r n e } ) . a p p l y ( t h i s , a r g u m e n t s ) } ; f u n c t i o n i ( e ) { v a r t = " f u n c t i o n " = = t y p e o f S y m b o l & & S y m b o l . i t e r a t o r , n = t & & e [ t ] , r = 0 ; i f ( n ) r e t u r n n . c a l l ( e ) ; i f ( e & & " n u m b e r " = = t y p e o f e . l e n g t h ) r e t u r n { n e x t : f u n c t i o n ( ) { r e t u r n e & & r > = e . l e n g t h & & ( e = v o i d 0 ) , { v a l u e : e & & e [ r + + ] , d o n e : ! e } } } ; t h r o w n e w T y p e E r r o r ( t ? " O b j e c t i s n o t i t e r a b l e . " : " S y m b o l . i t e r a t o r i s n o t d e f i n e d . " ) } f u n c t i o n a ( e , t ) { v a r n = " f u n c t i o n " = = t y p e o f S y m b o l & & e [ S y m b o l . i t e r a t o r ] ; i f ( ! n ) r e t u r n e ; v a r r , o , s = n . c a l l ( e ) , i = [ ] ; t r y { f o r ( ; ( v o i d 0 = = = t | | t - - > 0 ) & & ! ( r = s . n e x t ( ) ) . d o n e ; ) i . p u s h ( r . v a l u e ) } c a t c h ( e ) { o = { e r r o r : e } } f i n a l l y { t r y { r & & ! r . d o n e & & ( n = s . r e t u r n ) & & n . c a l l ( s ) } f i n a l l y { i f ( o ) t h r o w o . e r r o r } } r e t u r n i } f u n c t i o n c ( e ) { r e t u r n t h i s i n s t a n c e o f c ? ( t h i s . v = e , t h i s ) : n e w c ( e ) } v a r u = O b j e c t . f r e e z e ( { _ _ p r o t o _ _ : n u l l , _ _ e x t e n d s : f u n c t i o n ( e , t ) { f u n c t i o n n ( ) { t h i s . c o n s t r u c t o r = e } o ( e , t ) , e . p r o t o t y p e = n u l l = = = t ? O b j e c t . c r e a t e ( t ) : ( n . p r o t o t y p e = t . p r o t o t y p e , n e w n ) } , g e t _ _ a s s i g n ( ) { r e t u r n s } , _ _ r e s t : f u n c t i o n ( e , t ) { v a r n = { } ; f o r ( v a r r i n e ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( e , r ) & & t . i n d e x O f ( r ) < 0 & & ( n [ r ] = e [ r ] ) ; i f ( n u l l ! = e & & " f u n c t i o n " = = t y p e o f O b j e c t . g e t O w n P r o p e r t y S y m b o l s ) { v a r o = 0 ; f o r ( r = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( e ) ; o < r . l e n g t h ; o + + ) t . i n d e x O f ( r [ o ] ) < 0 & & O b j e c t . p r o t o t y p e . p r o p e r t y I s E n u m e r a b l e . c a l l ( e , r [ o ] ) & & ( n [ r [ o ] ] = e [ r [ o ] ] ) } r e t u r n n } , _ _ d e c o r a t e : f u n c t i o n ( e , t , n , r ) { v a r o , s = a r g u m e n t s . l e n g t h , i = s < 3 ? t : n u l l = = = r ? r = O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( t , n ) : r ; i f ( " o b j e c t " = = t y p e o f R e f l e c t & & " f u n c t i o n " = = t y p e o f R e f l e c t . d e c o r a t e ) i = R e f l e c t . d e c o r a t e ( e , t , n , r ) ; e l s e f o r ( v a r a = e . l e n g t h - 1 ; a > = 0 ; a - - ) ( o = e [ a ] ) & & ( i = ( s < 3 ? o ( i ) : s > 3 ? o ( t , n , i ) : o ( t , n ) ) | | i ) ; r e t u r n s > 3 & & i & & O b j e c t . d e f i n e P r o p e r t y ( t , n , i ) , i } , _ _ p a r a m : f u n c t i o n ( e , t ) { r e t u r n f u n c t i o n ( n , r ) { t ( n , r , e ) } } , _ _ m e t a d a t a : f u n c t i o n ( e , t ) { i f ( " o b j e c t " = = t y p e o f R e f l e c t & & " f u n c t i o n " = = t y p e o f R e f l e c t . m e t a d a t a ) r e t u r n R e f l e c t . m e t a d a t a ( e , t ) } , _ _ a w a i t e r : f u n c t i o n ( e , t , n , r ) { r e t u r n n e w ( n | | ( n = P r o m i s e ) ) ( ( f u n c t i o n ( o , s ) { f u n c t i o n i ( e ) { t r y { c ( r . n e x t ( e ) ) } c a t c h ( e ) { s ( e ) } } f u n c t i o n a ( e ) { t r y { c ( r . t h r o w ( e ) ) } c a t c h ( e ) { s ( e ) } } f u n c t i o n c ( e ) { v a r t ; e . d o n e ? o ( e . v a l u e ) : ( t = e . v a l u e , t i n s t a n c e o f n ? t : n e w n ( ( f u n c t i o n ( e ) { e ( t ) } ) ) ) . t h e n ( i , a ) } c ( ( r = r . a p p l y ( e , t | | [ ] ) ) . n e x t ( ) ) } ) ) } , _ _ g e n e r a t o r : f u n c t i o n ( e , t ) { v a r n , r , o , s , i = { l a b e l : 0 , s e n t : f u n c t i o n ( ) { i f ( 1 & o [ 0 ] ) t h r o w o [ 1 ] ; r e t u r n o [ 1 ] } , t r y s : [ ] , o p s : [ ] } ; r e t u r n s = { n e x t : a ( 0 ) , t h r o w : a ( 1 ) , r e t u r n : a ( 2 ) } , " f u n c t i o n " = = t y p e o f S y m b o l & & ( s [ S y m b o l . i t e r a t o r ] = f u n c t i o n ( ) { r e t u r n t h i s } ) , s ; f u n c t i o n a ( s ) { r e t u r n f u n c t i o n ( a ) { r e t u r n f u n c t i o n ( s ) { i f ( n ) t h r o w n e w T y p e E r r o r ( " G e n e r a t o r i s a l r e a d y e x e c u t i n g . " ) ; f o r ( ; i ; ) t r y { i f ( n = 1 , r & & ( o = 2 & s [ 0 ] ? r . r e t u r n : s [ 0 ] ? r . t h r o w | | ( ( o = r . r e t u r n ) & & o . c a l l ( r ) , 0 ) : r . n e x t ) & & ! ( o = o . c a l l ( r , s [ 1 ] ) ) . d o n e ) r e t u r n o ; s w i t c h ( r = 0 , o & & ( s = [ 2 & s [ 0 ] , o . v a l u e ] ) , s [ 0 ] ) { c a s e 0 : c a s e 1 : o = s ; b r e a k ; c a s e 4 : r e t u r n i . l a b e l + + , { v a l u e : s [ 1 ] , d o n e : ! 1 } ; c a s e 5 : i . l a b e l + + , r = s [ 1 ] , s = [ 0 ] ; c o n t i n u e ; c a s e 7 : s = i . o p s . p o p ( ) , i . t r y s . p o p ( ) ; c o n t i n u e ; d e f a u l t : i f ( ! ( o = i . t r y s , ( o = o . l e n g t h > 0 & & o [ o . l e n g t h - 1 ] ) | | 6 ! = = s [ 0 ] & & 2 ! = = s [ 0 ] ) ) { i = 0 ; c o n t i n u e } i f ( 3 = = = s [ 0 ] & & ( ! o | | s [ 1 ] > o [ 0 ] & & s [ 1 ] < o [ 3 ] ) ) { i . l a b e l = s [ 1 ] ; b r e a k } i f ( 6 = = = s [ 0 ] & & i . l a b e l < o [ 1 ] ) { i . l a b e l = o [ 1 ] , o = s ; b r e a k } i f ( o & & i . l a b e l < o [ 2 ] ) { i . l a b e l = o [ 2 ] , i . o p s . p u s h ( s ) ; b r e a k } o [ 2 ] & & i . o p s . p o p ( ) , i . t r y s . p o p ( ) ; c o n t i n u e } s = t . c a l l ( e , i ) } c a t c h ( e ) { s = [ 6 , e ] , r = 0 } f i n a l l y { n = o = 0 } i f ( 5 & s [ 0 ] ) t h r o w s [ 1 ] ; r e t u r n { v a l u e : s [ 0 ] ? s [ 1 ] : v o i d 0 , d o n e : ! 0 } } ( [ s , a ] ) } } } , _ _ c r e a t e B i n d i n g : f u n c t i o n ( e , t , n , r ) { v o i d 0 = = = r & & ( r = n ) , e [ r ] = t [ n ] } , _ _ e x p o r t S t a r : f u n c t i o n ( e , t ) { f o r ( v a r n i n e ) " d e f a u l t " = = = n | | t . h a s O w n P r o p e r t y ( n ) | | ( t [ n ] = e [ n ] ) } , _ _ v a l u e s : i , _ _ r e a d : a , _ _ s p r e a d : f u n c t i o n ( ) { f o r ( v a r e = [ ] , t = 0 ; t < a r g u m e n t s . l e n g t h ; t + + ) e = e . c o n c a t ( a ( a r g u m e n t s [ t ] ) ) ; r e t u r n e } , _ _ s p r e a d A r r a y s : f u n c t i o n ( ) { f o r ( v a r e = 0 , t = 0 , n = a r g u m e n t s . l e n g t h ; t < n ; t + + ) e + = a r g u m e n t s [ t ] . l e n g t h ; v a r r = A r r a y ( e ) , o = 0 ; f o r ( t = 0 ; t < n ; t + + ) f o r ( v a r s = a r g u m e n t s [ t ] , i = 0 , a = s . l e n g t h ; i < a ; i + + , o + + ) r [ o ] = s [ i ] ; r e t u r n r } , _ _ a w a i t : c , _ _ a s y n c G e n e r a t o r : f u n c t i o n ( e , t , n ) { i f ( ! S