ÿþ/ * *  
   *   T w i t t e r   -   h t t p : / / t w i t t e r . c o m  
   *   C o p y r i g h t   ( C )   2 0 1 0   T w i t t e r  
   *   A u t h o r :   D u s t i n   D i a z   ( d u s t i n @ t w i t t e r . c o m )  
   *  
   *   V   2 . 2 . 5   T w i t t e r   s e a r c h / p r o f i l e / f a v e s / l i s t   w i d g e t  
   *   h t t p : / / t w i t t e r . c o m / w i d g e t s  
   *   F o r   f u l l   d o c u m e n t e d   s o u r c e   s e e   h t t p : / / t w i t t e r . c o m / j a v a s c r i p t s / w i d g e t s / w i d g e t . j s  
   *   H o s t i n g   a n d   m o d i f i c a t i o n s   o f   t h e   o r i g i n a l   s o u r c e   I S   a l l o w e d .  
   *  
   *   E x a m p l e   u s a g e :  
       < s c r i p t   s r c = " p a t h / t o / w i d g e t . j s " > < / s c r i p t >  
       < s c r i p t >  
           n e w   T W T R . W i d g e t ( {  
               t y p e :   ' s e a r c h ' ,  
               s e a r c h :   " y o u r   s e a r c h   q u e r y " ,   / /   i n c l u d e s   a l l   a d v a n c e d   s e a r c h   q u e r i e s .  
               w i d t h :   2 5 0 ,  
               h e i g h t :   3 5 0 ,  
               i n t e r v a l :   6 0 0 0 ,  
               s u b j e c t :   " W h a t ' s   b e i n g   s a i d   a b o u t . . . " ,  
               t i t l e :   " S a n   F r a n c i s c o " ,  
               r p p :   3 0 ,  
               f o o t e r :   " F o l l o w   m e " ,  
               t h e m e :   {  
                   s h e l l :   {  
                       b a c k g r o u n d :   ' # 1 d e b 2 5 ' ,  
                       c o l o r :   ' # f f f f f f '  
                   } ,  
                   t w e e t s :   {  
                       b a c k g r o u n d :   ' s i l v e r ' ,  
                       c o l o r :   ' b l u e ' ,  
                       l i n k s :   ' b l a c k '  
                   }  
               } ,  
  
               f e a t u r e s :   {  
                   a v a t a r s :   t r u e ,   / /   d e f a u l t s   t o   f a l s e   f o r   p r o f i l e   w i d g e t ,   b u t   t r u e   f o r   s e a r c h   &   f a v e s   w i d g e t  
                   h a s h t a g s :   t r u e ,  
                   t i m e s t a m p :   t r u e ,  
                   f u l l s c r e e n :   f a l s e ,   / /   i g n o r e s   w i d t h   a n d   h e i g h t   a n d   j u s t   g o e s   f u l l   s c r e e n  
                   s c r o l l b a r :   f a l s e ,  
                   l i v e :   t r u e ,  
                   l o o p :   t r u e ,  
                   b e h a v i o r :   ' d e f a u l t ' ,  
                   d a t e f o r m a t :   ' a b s o l u t e ' ,   / /   d e f a u l t s   t o   r e l a t i v e   ( e g :   3   m i n u t e s   a g o )  
                   t o p t w e e t s :   t r u e   / /   o n l y   f o r   s e a r c h   w i d g e t  
               }  
           } ) . r e n d e r ( ) . s t a r t ( ) ;  
       < / s c r i p t >  
   *  
   * / / * *  
     *   @ n a m e s p a c e   T W T R   p u b l i c   n a m e s p a c e   f o r   T w i t t e r   w i d g e t  
     * / T W T R = w i n d o w . T W T R | | { } , A r r a y . f o r E a c h | | ( A r r a y . p r o t o t y p e . f i l t e r = f u n c t i o n ( a , b ) { v a r   c = b | | w i n d o w , d = [ ] ; f o r ( v a r   e = 0 , f = t h i s . l e n g t h ; e < f ; + + e ) { i f ( ! a . c a l l ( c , t h i s [ e ] , e , t h i s ) ) c o n t i n u e ; d . p u s h ( t h i s [ e ] ) } r e t u r n   d } , A r r a y . p r o t o t y p e . i n d e x O f = f u n c t i o n ( a , b ) { v a r   b = b | | 0 ; f o r ( v a r   c = 0 ; c < t h i s . l e n g t h ; + + c ) i f ( t h i s [ c ] = = = a ) r e t u r n   c ; r e t u r n - 1 } ) , f u n c t i o n ( ) { f u n c t i o n   h ( a ) { a = a | | w i n d o w . e v e n t ; v a r   b = a . t a r g e t | | a . s r c E l e m e n t , h , i , j , k , l ; w h i l e ( b & & b . n o d e N a m e . t o L o w e r C a s e ( ) ! = = " a " ) b = b . p a r e n t N o d e ; b & & b . n o d e N a m e . t o L o w e r C a s e ( ) = = = " a " & & b . h r e f & & ( h = b . h r e f . m a t c h ( c ) , h & & ( i = 5 5 0 , j = h [ 2 ] i n   d ? 4 2 0 : 5 6 0 , k = M a t h . r o u n d ( g / 2 - i / 2 ) , l = 0 , f > j & & ( l = M a t h . r o u n d ( f / 2 - j / 2 ) ) , w i n d o w . o p e n ( b . h r e f , " i n t e n t " , e + " , w i d t h = " + i + " , h e i g h t = " + j + " , l e f t = " + k + " , t o p = " + l ) , a . r e t u r n V a l u e = ! 1 , a . p r e v e n t D e f a u l t & & a . p r e v e n t D e f a u l t ( ) ) ) } f u n c t i o n   b ( a , b , c ) { t h i s . e l = a , t h i s . p r o p = b , t h i s . f r o m = c . f r o m , t h i s . t o = c . t o , t h i s . t i m e = c . t i m e , t h i s . c a l l b a c k = c . c a l l b a c k , t h i s . a n i m D i f f = t h i s . t o - t h i s . f r o m } f u n c t i o n   a ( a , b , c ) { f o r ( v a r   d = 0 , e = a . l e n g t h ; d < e ; + + d ) b . c a l l ( c | | w i n d o w , a [ d ] , d , a ) } i f ( ! T W T R | | ! T W T R . W i d g e t ) { b . c a n T r a n s i t i o n = f u n c t i o n ( ) { v a r   a = d o c u m e n t . c r e a t e E l e m e n t ( " t w i t t e r " ) ; a . s t y l e . c s s T e x t = " - w e b k i t - t r a n s i t i o n :   a l l   . 5 s   l i n e a r ; " ; r e t u r n ! ! a . s t y l e . w e b k i t T r a n s i t i o n P r o p e r t y } ( ) , b . p r o t o t y p e . _ s e t S t y l e = f u n c t i o n ( a ) { s w i t c h ( t h i s . p r o p ) { c a s e " o p a c i t y " : t h i s . e l . s t y l e [ t h i s . p r o p ] = a , t h i s . e l . s t y l e . f i l t e r = " a l p h a ( o p a c i t y = " + a * 1 0 0 + " ) " ; b r e a k ; d e f a u l t : t h i s . e l . s t y l e [ t h i s . p r o p ] = a + " p x " } } , b . p r o t o t y p e . _ a n i m a t e = f u n c t i o n ( ) { v a r   a = t h i s ; t h i s . n o w = n e w   D a t e , t h i s . d i f f = t h i s . n o w - t h i s . s t a r t T i m e , t h i s . d i f f > t h i s . t i m e ? ( t h i s . _ s e t S t y l e ( t h i s . t o ) , t h i s . c a l l b a c k & & t h i s . c a l l b a c k . c a l l ( t h i s ) , c l e a r I n t e r v a l ( t h i s . t i m e r ) ) : ( t h i s . p e r c e n t a g e = M a t h . f l o o r ( t h i s . d i f f / t h i s . t i m e * 1 0 0 ) / 1 0 0 , t h i s . v a l = t h i s . a n i m D i f f * t h i s . p e r c e n t a g e + t h i s . f r o m , t h i s . _ s e t S t y l e ( t h i s . v a l ) ) } , b . p r o t o t y p e . s t a r t = f u n c t i o n ( ) { v a r   a = t h i s ; t h i s . s t a r t T i m e = n e w   D a t e , t h i s . t i m e r = s e t I n t e r v a l ( f u n c t i o n ( ) { a . _ a n i m a t e . c a l l ( a ) } , 1 5 ) } , T W T R . W i d g e t = f u n c t i o n ( a ) { t h i s . i n i t ( a ) } , f u n c t i o n ( ) { f u n c t i o n   G ( a ) { f u n c t i o n   b ( ) { r e t u r n   a . n e e d l e . m e t a d a t a & & a . n e e d l e . m e t a d a t a . r e s u l t _ t y p e & & a . n e e d l e . m e t a d a t a . r e s u l t _ t y p e = = " p o p u l a r " ? ' < s p a n   c l a s s = " t w t r - p o p u l a r " > ' + a . n e e d l e . m e t a d a t a . r e c e n t _ r e t w e e t s + " +   r e c e n t   r e t w e e t s < / s p a n > " : " " } v a r   c = ' < d i v   c l a s s = " t w t r - t w e e t - w r a p " >   \ n                 < d i v   c l a s s = " t w t r - a v a t a r " >   \ n                     < d i v   c l a s s = " t w t r - i m g " > < a   t a r g e t = " _ b l a n k "   h r e f = " h t t p : / / t w i t t e r . c o m / i n t e n t / u s e r ? s c r e e n _ n a m e = ' + a . u s e r + ' " > < i m g   a l t = " ' + a . u s e r + '   p r o f i l e "   s r c = " ' + g ( a . a v a t a r ) + ' " > < / a > < / d i v >   \ n                 < / d i v >   \ n                 < d i v   c l a s s = " t w t r - t w e e t - t e x t " >   \ n                     < p >   \ n                         < a   t a r g e t = " _ b l a n k "   h r e f = " h t t p : / / t w i t t e r . c o m / i n t e n t / u s e r ? s c r e e n _ n a m e = ' + a . u s e r + ' "   c l a s s = " t w t r - u s e r " > ' + a . u s e r + " < / a >   " + a . t w e e t + '   \ n                         < e m > \ n                         < a   t a r g e t = " _ b l a n k "   c l a s s = " t w t r - t i m e s t a m p "   t i m e = " ' + a . t i m e s t a m p + ' "   h r e f = " h t t p : / / t w i t t e r . c o m / ' + a . u s e r + " / s t a t u s / " + a . i d + ' " > ' + a . c r e a t e d _ a t + ' < / a >   & m i d d o t ; \ n                         < a   t a r g e t = " _ b l a n k "   c l a s s = " t w t r - r e p l y "   h r e f = " h t t p : / / t w i t t e r . c o m / i n t e n t / t w e e t ? i n _ r e p l y _ t o = ' + a . i d + ' " > r e p l y < / a >   & m i d d o t ;   \ n                         < a   t a r g e t = " _ b l a n k "   c l a s s = " t w t r - r t "   h r e f = " h t t p : / / t w i t t e r . c o m / i n t e n t / r e t w e e t ? t w e e t _ i d = ' + a . i d + ' " > r e t w e e t < / a >   & m i d d o t ;   \ n                         < a   t a r g e t = " _ b l a n k "   c l a s s = " t w t r - f a v "   h r e f = " h t t p : / / t w i t t e r . c o m / i n t e n t / f a v o r i t e ? t w e e t _ i d = ' + a . i d + ' " > f a v o r i t e < / a >   \ n                         < / e m >   ' + b ( ) + "   \ n                     < / p >   \ n                 < / d i v >   \ n             < / d i v > " , d = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; d . i d = " t w e e t - i d - " +   + + G . _ t w e e t C o u n t , d . c l a s s N a m e = " t w t r - t w e e t " , d . i n n e r H T M L = c , t h i s . e l e m e n t = d } f u n c t i o n   F ( a , b , c ) { t h i s . t i m e = a | | 6 e 3 , t h i s . l o o p = b | | ! 1 , t h i s . r e p e a t e d = 0 , t h i s . c a l l b a c k = c , t h i s . h a y s t a c k = [ ] } f u n c t i o n   E ( a , b , c ) { t h i s . j o b = a , t h i s . d e c a y F n = b , t h i s . i n t e r v a l = c , t h i s . d e c a y R a t e = 1 , t h i s . d e c a y M u l t i p l i e r = 1 . 2 5 , t h i s . m a x D e c a y T i m e = 1 8 e 4 } v a r   c = { } , d = l o c a t i o n . p r o t o c o l . m a t c h ( / h t t p s / ) , e = / ^ . + \ / p r o f i l e _ i m a g e s / , f = " h t t p s : / / s 3 . a m a z o n a w s . c o m / t w i t t e r _ p r o d u c t i o n / p r o f i l e _ i m a g e s " , g = f u n c t i o n ( a ) { r e t u r n   d ? a . r e p l a c e ( e , f ) : a } , h = { } , i = f u n c t i o n ( a ) { v a r   b = h [ a ] ; b | | ( b = n e w   R e g E x p ( " ( ? : ^ | \ \ s + ) " + a + " ( ? : \ \ s + | $ ) " ) , h [ a ] = b ) ; r e t u r n   b } , j = f u n c t i o n ( a , b , c , d ) { v a r   b = b | | " * " , c = c | | d o c u m e n t , e = [ ] , f = c . g e t E l e m e n t s B y T a g N a m e ( b ) , g = i ( a ) ; f o r ( v a r   h = 0 , j = f . l e n g t h ; h < j ; + + h ) g . t e s t ( f [ h ] . c l a s s N a m e ) & & ( e [ e . l e n g t h ] = f [ h ] , d & & d . c a l l ( f [ h ] , f [ h ] ) ) ; r e t u r n   e } , k = f u n c t i o n ( ) { v a r   a = n a v i g a t o r . u s e r A g e n t ; r e t u r n { i e : a . m a t c h ( / M S I E \ s ( [ ^ ; ] * ) / ) } } ( ) , l = f u n c t i o n ( a ) { i f ( t y p e o f   a = = " s t r i n g " ) r e t u r n   d o c u m e n t . g e t E l e m e n t B y I d ( a ) ; r e t u r n   a } , m = f u n c t i o n ( a ) { r e t u r n   a . r e p l a c e ( / ^ \ s + | \ s + $ / g , " " ) } , n = f u n c t i o n ( ) { v a r   a = s e l f . i n n e r H e i g h t , b = d o c u m e n t . c o m p a t M o d e ; i f ( b | | k . i e ) a = b = = " C S S 1 C o m p a t " ? d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t : d o c u m e n t . b o d y . c l i e n t H e i g h t ; r e t u r n   a } , o = f u n c t i o n ( a , b ) { v a r   c = a . t a r g e t | | a . s r c E l e m e n t ; r e t u r n   b ( c ) } , p = f u n c t i o n ( a ) { t r y { r e t u r n   a & & 3 = = a . n o d e T y p e ? a . p a r e n t N o d e : a } c a t c h ( b ) { } } , q = f u n c t i o n ( a ) { v a r   b = a . r e l a t e d T a r g e t ; b | | ( a . t y p e = = " m o u s e o u t " ? b = a . t o E l e m e n t : a . t y p e = = " m o u s e o v e r " & & ( b = a . f r o m E l e m e n t ) ) ; r e t u r n   p ( b ) } , r = f u n c t i o n ( a , b ) { b . p a r e n t N o d e . i n s e r t B e f o r e ( a , b . n e x t S i b l i n g ) } , s = f u n c t i o n ( a ) { t r y { a . p a r e n t N o d e . r e m o v e C h i l d ( a ) } c a t c h ( b ) { } } , t = f u n c t i o n ( a ) { r e t u r n   a . f i r s t C h i l d } , u = f u n c t i o n ( a ) { v a r   b = q ( a ) ; w h i l e ( b & & b ! = t h i s ) t r y { b = b . p a r e n t N o d e } c a t c h ( c ) { b = t h i s } i f ( b ! = t h i s ) r e t u r n ! 0 ; r e t u r n ! 1 } , v = f u n c t i o n ( ) { i f ( d o c u m e n t . d e f a u l t V i e w & & d o c u m e n t . d e f a u l t V i e w . g e t C o m p u t e d S t y l e ) r e t u r n   f u n c t i o n ( a , b ) { v a r   c = n u l l , d = d o c u m e n t . d e f a u l t V i e w . g e t C o m p u t e d S t y l e ( a , " " ) ; d & & ( c = d [ b ] ) ; v a r   e = a . s t y l e [ b ] | | c ; r e t u r n   e } ; i f ( d o c u m e n t . d o c u m e n t E l e m e n t . c u r r e n t S t y l e & & k . i e ) r e t u r n   f u n c t i o n ( a , b ) { v a r   c = a . c u r r e n t S t y l e ? a . c u r r e n t S t y l e [ b ] : n u l l ; r e t u r n   a . s t y l e [ b ] | | c } } ( ) , w = { h a s : f u n c t i o n ( a , b ) { r e t u r n ( n e w   R e g E x p ( " ( ^ | \ \ s ) " + b + " ( \ \ s | $ ) " ) ) . t e s t ( l ( a ) . c l a s s N a m e ) } , a d d : f u n c t i o n ( a , b ) { t h i s . h a s ( a , b ) | | ( l ( a ) . c l a s s N a m e = m ( l ( a ) . c l a s s N a m e ) + "   " + b ) } , r e m o v e : f u n c t i o n ( a , b ) { t h i s . h a s ( a , b ) & & ( l ( a ) . c l a s s N a m e = l ( a ) . c l a s s N a m e . r e p l a c e ( n e w   R e g E x p ( " ( ^ | \ \ s ) " + b + " ( \ \ s | $ ) " , " g " ) , " " ) ) } } , x = { a d d : f u n c t i o n ( a , b , c ) { a . a d d E v e n t L i s t e n e r ? a . a d d E v e n t L i s t e n e r ( b , c , ! 1 ) : a . a t t a c h E v e n t ( " o n " + b , f u n c t i o n ( ) { c . c a l l ( a , w i n d o w . e v e n t ) } ) } , r e m o v e : f u n c t i o n ( a , b , c ) { a . r e m o v e E v e n t L i s t e n e r ? a . r e m o v e E v e n t L i s t e n e r ( b , c , ! 1 ) : a . d e t a c h E v e n t ( " o n " + b , c ) } } , y = f u n c t i o n ( ) { f u n c t i o n   c ( a ) { r e t u r n   p a r s e I n t ( a . s u b s t r i n g ( 4 , 6 ) , 1 6 ) } f u n c t i o n   b ( a ) { r e t u r n   p a r s e I n t ( a . s u b s t r i n g ( 2 , 4 ) , 1 6 ) } f u n c t i o n   a ( a ) { r e t u r n   p a r s e I n t ( a . s u b s t r i n g ( 0 , 2 ) , 1 6 ) } r e t u r n   f u n c t i o n ( d ) { r e t u r n [ a ( d ) , b ( d ) , c ( d ) ] } } ( ) , z = { b o o l : f u n c t i o n ( a ) { r e t u r n   t y p e o f   a = = " b o o l e a n " } , d e f : f u n c t i o n ( a ) { r e t u r n   t y p e o f   a ! = " u n d e f i n e d " } , n u m b e r : f u n c t i o n ( a ) { r e t u r n   t y p e o f   a = = " n u m b e r " & & i s F i n i t e ( a ) } , s t r i n g : f u n c t i o n ( a ) { r e t u r n   t y p e o f   a = = " s t r i n g " } , f n : f u n c t i o n ( a ) { r e t u r n   t y p e o f   a = = " f u n c t i o n " } , a r r a y : f u n c t i o n ( a ) { i f ( a ) r e t u r n   z . n u m b e r ( a . l e n g t h ) & & z . f n ( a . s p l i c e ) ; r e t u r n ! 1 } } , A = [ " J a n u a r y " , " F e b r u a r y " , " M a r c h " , " A p r i l " , " M a y " , " J u n e " , " J u l y " , " A u g u s t " , " S e p t e m b e r " , " O c t o b e r " , " N o v e m b e r " , " D e c e m b e r " ] , B = f u n c t i o n ( a ) { f u n c t i o n   g ( ) { v a r   a = n e w   D a t e ; r e t u r n   a . g e t D a t e ( ) ! = b . g e t D a t e ( ) | | a . g e t Y e a r ( ) ! = b . g e t Y e a r ( ) | | a . g e t M o n t h ( ) ! = b . g e t M o n t h ( ) ? "   -   " + A [ b . g e t M o n t h ( ) ] + "   " + b . g e t D a t e ( ) + " ,   " + b . g e t F u l l Y e a r ( ) : " " } v a r   b = n e w   D a t e ( a ) ; k . i e & & ( b = D a t e . p a r s e ( a . r e p l a c e ( / (   \ + ) / , "   U T C $ 1 " ) ) ) ; v a r   c = " " , d = f u n c t i o n ( ) { v a r   a = b . g e t H o u r s ( ) ; i f ( a > 0 & & a < 1 3 ) { c = " a m " ; r e t u r n   a } i f ( a < 1 ) { c = " a m " ; r e t u r n   1 2 } c = " p m " ; r e t u r n   a - 1 2 } ( ) , e = b . g e t M i n u t e s ( ) , f = b . g e t S e c o n d s ( ) ; r e t u r n   d + " : " + e + c + g ( ) } , C = f u n c t i o n ( a ) { v a r   b = n e w   D a t e , c = n e w   D a t e ( a ) ; k . i e & & ( c = D a t e . p a r s e ( a . r e p l a c e ( / (   \ + ) / , "   U T C $ 1 " ) ) ) ; v a r   d = b - c , e = 1 e 3 , f = e * 6 0 , g = f * 6 0 , h = g * 2 4 , i = h * 7 ; i f ( i s N a N ( d ) | | d < 0 ) r e t u r n " " ; i f ( d < e * 2 ) r e t u r n " r i g h t   n o w " ; i f ( d < f ) r e t u r n   M a t h . f l o o r ( d / e ) + "   s e c o n d s   a g o " ; i f ( d < f * 2 ) r e t u r n " a b o u t   1   m i n u t e   a g o " ; i f ( d < g ) r e t u r n   M a t h . f l o o r ( d / f ) + "   m i n u t e s   a g o " ; i f ( d < g * 2 ) r e t u r n " a b o u t   1   h o u r   a g o " ; i f ( d < h ) r e t u r n   M a t h . f l o o r ( d / g ) + "   h o u r s   a g o " ; i f ( d > h & & d < h * 2 ) r e t u r n " y e s t e r d a y " ; r e t u r n   d < h * 3 6 5 ? M a t h . f l o o r ( d / h ) + "   d a y s   a g o " : " o v e r   a   y e a r   a g o " } , D = { l i n k : f u n c t i o n ( a ) { r e t u r n   a . r e p l a c e ( / \ b ( ( ( h t t p s * \ : \ / \ / ) | w w w \ . ) [ ^ \ " \ ' ] + ? ) ( ( [ ! ? , . \ ) ] + ) ? ( \ s | $ ) ) / g , f u n c t i o n ( a , b , c , d , e ) { v a r   f = c . m a t c h ( / w / ) ? " h t t p : / / " : " " ; r e t u r n ' < a   c l a s s = " t w t r - h y p e r l i n k "   t a r g e t = " _ b l a n k "   h r e f = " ' + f + b + ' " > ' + ( b . l e n g t h > 2 5 ? b . s u b s t r ( 0 , 2 4 ) + " . . . " : b ) + " < / a > " + e } ) } , a t : f u n c t i o n ( a ) { r e t u r n   a . r e p l a c e ( / \ B [ @  ÿ] ( [ a - z A - Z 0 - 9 _ ] { 1 , 2 0 } ) / g , f u n c t i o n ( a , b ) { r e t u r n ' @ < a   t a r g e t = " _ b l a n k "   c l a s s = " t w t r - a t r e p l y "   h r e f = " h t t p : / / t w i t t e r . c o m / i n t e n t / u s e r ? s c r e e n _ n a m e = ' + b + ' " > ' + b + " < / a > " } ) } , l i s t : f u n c t i o n ( a ) { r e t u r n   a . r e p l a c e ( / \ B [ @  ÿ] ( [ a - z A - Z 0 - 9 _ ] { 1 , 2 0 } \ / \ w + ) / g , f u n c t i o n ( a , b ) { r e t u r n ' @ < a   t a r g e t = " _ b l a n k "   c l a s s = " t w t r - a t r e p l y "   h r e f = " h t t p : / / t w i t t e r . c o m / ' + b + ' " > ' + b + " < / a > " } ) } , h a s h : f u n c t i o n ( a ) { r e t u r n   a . r e p l a c e ( / ( ^ | \ s + ) # ( \ w + ) / g i , f u n c t i o n ( a , b , c ) { r e t u r n   b + ' < a   t a r g e t = " _ b l a n k "   c l a s s = " t w t r - h a s h t a g "   h r e f = " h t t p : / / t w i t t e r . c o m / s e a r c h ? q = % 2 3 ' + c + ' " > # ' + c + " < / a > " } ) } , c l e a n : f u n c t i o n ( a ) { r e t u r n   t h i s . h a s h ( t h i s . a t ( t h i s . l i s t ( t h i s . l i n k ( a ) ) ) ) } } ; E . p r o t o t y p e = { s t a r t : f u n c t i o n ( ) { t h i s . s t o p ( ) . r u n ( ) ; r e t u r n   t h i s } , s t o p : f u n c t i o n ( ) { t h i s . w o r k e r & & w i n d o w . c l e a r T i m e o u t ( t h i s . w o r k e r ) ; r e t u r n   t h i s } , r u n : f u n c t i o n ( ) { v a r   a = t h i s ; t h i s . j o b ( f u n c t i o n ( ) { a . d e c a y R a t e = a . d e c a y F n ( ) ? M a t h . m a x ( 1 , a . d e c a y R a t e / a . d e c a y M u l t i p l i e r ) : a . d e c a y R a t e * a . d e c a y M u l t i p l i e r ; v a r   b = a . i n t e r v a l * a . d e c a y R a t e ; b = b > = a . m a x D e c a y T i m e ? a . m a x D e c a y T i m e : b , b = M a t h . f l o o r ( b ) , a . w o r k e r = w i n d o w . s e t T i m e o u t ( f u n c t i o n ( ) { a . r u n . c a l l ( a ) } , b ) } ) } , d e s t r o y : f u n c t i o n ( ) { t h i s . s t o p ( ) , t h i s . d e c a y R a t e = 1 ; r e t u r n   t h i s } } , F . p r o t o t y p e = { s e t : f u n c t i o n ( a ) { t h i s . h a y s t a c k = a } , a d d : f u n c t i o n ( a ) { t h i s . h a y s t a c k . u n s h i f t ( a ) } , s t a r t : f u n c t i o n ( ) { i f ( t h i s . t i m e r ) r e t u r n   t h i s ; t h i s . _ j o b ( ) ; v a r   a = t h i s ; t h i s . t i m e r = s e t I n t e r v a l ( f u n c t i o n ( ) { a . _ j o b . c a l l ( a ) } , t h i s . t i m e ) ; r e t u r n   t h i s } , s t o p : f u n c t i o n ( ) { t h i s . t i m e r & & ( w i n d o w . c l e a r I n t e r v a l ( t h i s . t i m e r ) , t h i s . t i m e r = n u l l ) ; r e t u r n   t h i s } , _ n e x t : f u n c t i o n ( ) { v a r   a = t h i s . h a y s t a c k . s h i f t ( ) ; a & & t h i s . l o o p & & t h i s . h a y s t a c k . p u s h ( a ) ; r e t u r n   a | | n u l l } , _ j o b : f u n c t i o n ( ) { v a r   a = t h i s . _ n e x t ( ) ; a & & t h i s . c a l l b a c k ( a ) ; r e t u r n   t h i s } } , G . _ t w e e t C o u n t = 0 , c . l o a d S t y l e S h e e t = f u n c t i o n ( a , b ) { i f ( ! T W T R . W i d g e t . l o a d i n g S t y l e S h e e t ) { T W T R . W i d g e t . l o a d i n g S t y l e S h e e t = ! 0 ; v a r   c = d o c u m e n t . c r e a t e E l e m e n t ( " l i n k " ) ; c . h r e f = a , c . r e l = " s t y l e s h e e t " , c . t y p e = " t e x t / c s s " , d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " h e a d " ) [ 0 ] . a p p e n d C h i l d ( c ) ; v a r   d = s e t I n t e r v a l ( f u n c t i o n ( ) { v a r   a = v ( b , " p o s i t i o n " ) ; a = = " r e l a t i v e " & & ( c l e a r I n t e r v a l ( d ) , d = n u l l , T W T R . W i d g e t . h a s L o a d e d S t y l e S h e e t = ! 0 ) } , 5 0 ) } } , f u n c t i o n ( ) { v a r   a = ! 1 ; c . c s s = f u n c t i o n ( b ) { f u n c t i o n   e ( ) { d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " h e a d " ) [ 0 ] . a p p e n d C h i l d ( c ) } v a r   c = d o c u m e n t . c r e a t e E l e m e n t ( " s t y l e " ) ; c . t y p e = " t e x t / c s s " ; i f ( k . i e ) c . s t y l e S h e e t . c s s T e x t = b ; e l s e { v a r   d = d o c u m e n t . c r e a t e D o c u m e n t F r a g m e n t ( ) ; d . a p p e n d C h i l d ( d o c u m e n t . c r e a t e T e x t N o d e ( b ) ) , c . a p p e n d C h i l d ( d ) } ! k . i e | | a ? e ( ) : w i n d o w . a t t a c h E v e n t ( " o n l o a d " , f u n c t i o n ( ) { a = ! 0 , e ( ) } ) } } ( ) , T W T R . W i d g e t . i s L o a d e d = ! 1 , T W T R . W i d g e t . l o a d i n g S t y l e S h e e t = ! 1 , T W T R . W i d g e t . h a s L o a d e d S t y l e S h e e t = ! 1 , T W T R . W i d g e t . W I D G E T _ N U M B E R = 0 , T W T R . W i d g e t . m a t c h e s = { m e n t i o n s : / ^ @ [ a - z A - Z 0 - 9 _ ] { 1 , 2 0 } \ b / , a n y _ m e n t i o n s : / \ b @ [ a - z A - Z 0 - 9 _ ] { 1 , 2 0 } \ b / } , T W T R . W i d g e t . j s o n P = f u n c t i o n ( a , b ) { v a r   c = d o c u m e n t . c r e a t e E l e m e n t ( " s c r i p t " ) , d = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " h e a d " ) [ 0 ] ; c . t y p e = " t e x t / j a v a s c r i p t " , c . s r c = a , d . i n s e r t B e f o r e ( c , d . f i r s t C h i l d ) , b ( c ) ; r e t u r n   c } , T W T R . W i d g e t . p r o t o t y p e = f u n c t i o n ( ) { v a r   e = d ? " h t t p s : / / " : " h t t p : / / " , f = w i n d o w . l o c a t i o n . h o s t n a m e . m a t c h ( / t w i t t e r \ . c o m / ) ? w i n d o w . l o c a t i o n . h o s t n a m e + " : " + w i n d o w . l o c a t i o n . p o r t : " t w i t t e r . c o m " , h = e + " s e a r c h . " + f + " / s e a r c h . " , i = e + " a p i . " + f + " / 1 / s t a t u s e s / u s e r _ t i m e l i n e . " , m = e + f + " / f a v o r i t e s / " , o = e + " a p i . " + f + " / 1 / " , p = 2 5 e 3 , q = d ? " h t t p s : / / t w i t t e r - w i d g e t s . s 3 . a m a z o n a w s . c o m / j / 1 / d e f a u l t . g i f " : " h t t p : / / w i d g e t s . t w i m g . c o m / j / 1 / d e f a u l t . g i f " ; r e t u r n { i n i t : f u n c t i o n ( a ) { v a r   b = t h i s ; t h i s . _ w i d g e t N u m b e r = + + T W T R . W i d g e t . W I D G E T _ N U M B E R , T W T R . W i d g e t [ " r e c e i v e C a l l b a c k _ " + t h i s . _ w i d g e t N u m b e r ] = f u n c t i o n ( a ) { b . _ p r e P l a y . c a l l ( b , a ) } , t h i s . _ c b = " T W T R . W i d g e t . r e c e i v e C a l l b a c k _ " + t h i s . _ w i d g e t N u m b e r , t h i s . o p t s = a , t h i s . _ b a s e = h , t h i s . _ i s R u n n i n g = ! 1 , t h i s . _ h a s O f f i c i a l l y S t a r t e d = ! 1 , t h i s . _ h a s N e w S e a r c h R e s u l t s = ! 1 , t h i s . _ r e n d e r e d = ! 1 , t h i s . _ p r o f i l e I m a g e = ! 1 , t h i s . _ i s C r e a t o r = ! ! a . c r e a t o r , t h i s . _ s e t W i d g e t T y p e ( a . t y p e ) , t h i s . t i m e s R e q u e s t e d = 0 , t h i s . r u n O n c e = ! 1 , t h i s . n e w R e s u l t s = ! 1 , t h i s . r e s u l t s = [ ] , t h i s . j s o n M a x R e q u e s t T i m e O u t = 1 9 e 3 , t h i s . s h o w e d R e s u l t s = [ ] , t h i s . s i n c e I d = 1 , t h i s . s o u r c e = " T W I T T E R I N C _ W I D G E T " , t h i s . i d = a . i d | | " t w t r - w i d g e t - " + t h i s . _ w i d g e t N u m b e r , t h i s . t w e e t s = 0 , t h i s . s e t D i m e n s i o n s ( a . w i d t h , a . h e i g h t ) , t h i s . i n t e r v a l = a . i n t e r v a l | | 6 e 3 , t h i s . f o r m a t = " j s o n " , t h i s . r p p = a . r p p | | 5 0 , t h i s . s u b j e c t = a . s u b j e c t | | " " , t h i s . t i t l e = a . t i t l e | | " " , t h i s . s e t F o o t e r T e x t ( a . f o o t e r ) , t h i s . s e t S e a r c h ( a . s e a r c h ) , t h i s . _ s e t U r l ( ) , t h i s . t h e m e = a . t h e m e ? a . t h e m e : t h i s . _ g e t D e f a u l t T h e m e ( ) , a . i d | | d o c u m e n t . w r i t e ( ' < d i v   c l a s s = " t w t r - w i d g e t "   i d = " ' + t h i s . i d + ' " > < / d i v > ' ) , t h i s . w i d g e t E l = l ( t h i s . i d ) , a . i d & & w . a d d ( t h i s . w i d g e t E l , " t w t r - w i d g e t " ) , a . v e r s i o n > = 2 & & ! T W T R . W i d g e t . h a s L o a d e d S t y l e S h e e t & & ( d ? c . l o a d S t y l e S h e e t ( " h t t p : / / w i r e l e s s . i n v i d s e r v e r . c o m / j s / w i d g e t . c s s " , t h i s . w i d g e t E l ) : a . c r e a t o r ? c . l o a d S t y l e S h e e t ( " / j s / w i d g e t . c s s " , t h i s . w i d g e t E l ) : c . l o a d S t y l e S h e e t ( " h t t p : / / w i r e l e s s . i n v i d s e r v e r . c o m / j s / w i d g e t . c s s " , t h i s . w i d g e t E l ) ) , t h i s . o c c a s i o n a l J o b = n e w   E ( f u n c t i o n ( a ) { b . d e c a y = a , b . _ g e t R e s u l t s . c a l l ( b ) } , f u n c t i o n ( ) { r e t u r n   b . _ d e c a y D e c i d e r . c a l l ( b ) } , p ) , t h i s . _ r e a d y = z . f n ( a . r e a d y ) ? a . r e a d y : f u n c t i o n ( ) { } , t h i s . _ i s R e l a t i v e T i m e = ! 0 , t h i s . _ t w e e t F i l t e r = ! 1 , t h i s . _ a v a t a r s = ! 0 , t h i s . _ i s F u l l S c r e e n = ! 1 , t h i s . _ i s L i v e = ! 0 , t h i s . _ i s S c r o l l = ! 1 , t h i s . _ l o o p = ! 0 , t h i s . _ s h o w T o p T w e e t s = t h i s . _ i s S e a r c h W i d g e t ? ! 0 : ! 1 , t h i s . _ b e h a v i o r = " d e f a u l t " , t h i s . s e t F e a t u r e s ( t h i s . o p t s . f e a t u r e s ) , t h i s . i n t e r v a l J o b = n e w   F ( t h i s . i n t e r v a l , t h i s . _ l o o p , f u n c t i o n ( a ) { b . _ n o r m a l i z e T w e e t ( a ) } ) ; r e t u r n   t h i s } , s e t D i m e n s i o n s : f u n c t i o n ( a , b ) { t h i s . w h = a & & b ? [ a , b ] : [ 2 5 0 , 3 0 0 ] , a = = " a u t o " | | a = = " 1 0 0 % " ? t h i s . w h [ 0 ] = " 1 0 0 % " : t h i s . w h [ 0 ] = ( t h i s . w h [ 0 ] < 1 5 0 ? 1 5 0 : t h i s . w h [ 0 ] ) + " p x " , t h i s . w h [ 1 ] = ( t h i s . w h [ 1 ] < 1 0 0 ? 1 0 0 : t h i s . w h [ 1 ] ) + " p x " ; r e t u r n   t h i s } , s e t R p p : f u n c t i o n ( a ) { v a r   a = p a r s e I n t ( a ) ; t h i s . r p p = z . n u m b e r ( a ) & & a > 0 & & a < = 1 0 0 ? a : 3 0 ; r e t u r n   t h i s } , _ s e t W i d g e t T y p e : f u n c t i o n ( a ) { t h i s . _ i s S e a r c h W i d g e t = ! 1 , t h i s . _ i s P r o f i l e W i d g e t = ! 1 , t h i s . _ i s F a v s W i d g e t = ! 1 , t h i s . _ i s L i s t W i d g e t = ! 1 ; s w i t c h ( a ) { c a s e " p r o f i l e " : t h i s . _ i s P r o f i l e W i d g e t = ! 0 ; b r e a k ; c a s e " s e a r c h " : t h i s . _ i s S e a r c h W i d g e t = ! 0 , t h i s . s e a r c h = t h i s . o p t s . s e a r c h ; b r e a k ; c a s e " f a v e s " : c a s e " f a v s " : t h i s . _ i s F a v s W i d g e t = ! 0 ; b r e a k ; c a s e " l i s t " : c a s e " l i s t s " : t h i s . _ i s L i s t W i d g e t = ! 0 } r e t u r n   t h i s } , s e t F e a t u r e s : f u n c t i o n ( a ) { i f ( a ) { z . d e f ( a . f i l t e r s ) & & ( t h i s . _ t w e e t F i l t e r = a . f i l t e r s ) , z . d e f ( a . d a t e f o r m a t ) & & ( t h i s . _ i s R e l a t i v e T i m e = a . d a t e f o r m a t ! = = " a b s o l u t e " ) ; i f ( z . d e f ( a . f u l l s c r e e n ) & & z . b o o l ( a . f u l l s c r e e n ) & & a . f u l l s c r e e n ) { t h i s . _ i s F u l l S c r e e n = ! 0 , t h i s . w h [ 0 ] = " 1 0 0 % " , t h i s . w h [ 1 ] = n ( ) - 9 0 + " p x " ; v a r   b = t h i s ; x . a d d ( w i n d o w , " r e s i z e " , f u n c t i o n ( a ) { b . w h [ 1 ] = n ( ) , b . _ f u l l S c r e e n R e s i z e ( ) } ) } z . d e f ( a . l o o p ) & & z . b o o l ( a . l o o p ) & & ( t h i s . _ l o o p = a . l o o p ) ; i f ( z . d e f ( a . b e h a v i o r ) & & z . s t r i n g ( a . b e h a v i o r ) ) s w i t c h ( a . b e h a v i o r ) { c a s e " a l l " : t h i s . _ b e h a v i o r = " a l l " ; b r e a k ; c a s e " p r e l o a d e d " : t h i s . _ b e h a v i o r = " p r e l o a d e d " ; b r e a k ; d e f a u l t : t h i s . _ b e h a v i o r = " d e f a u l t " } i f ( z . d e f ( a . t o p t w e e t s ) & & z . b o o l ( a . t o p t w e e t s ) ) { t h i s . _ s h o w T o p T w e e t s = a . t o p t w e e t s ; v a r   d = t h i s . _ s h o w T o p T w e e t s ? " i n l i n e - b l o c k " : " n o n e " ; c . c s s ( " # " + t h i s . i d + "   . t w t r - p o p u l a r   {   d i s p l a y :   " + d + " ;   } " ) } i f ( ! z . d e f ( a . t o p t w e e t s ) ) { t h i s . _ s h o w T o p T w e e t s = ! 0 ; v a r   d = t h i s . _ s h o w T o p T w e e t s ? " i n l i n e - b l o c k " : " n o n e " ; c . c s s ( " # " + t h i s . i d + "   . t w t r - p o p u l a r   {   d i s p l a y :   " + d + " ;   } " ) } i f ( z . d e f ( a . a v a t a r s ) & & z . b o o l ( a . a v a t a r s ) ) i f ( ! a . a v a t a r s ) c . c s s ( " # " + t h i s . i d + "   . t w t r - a v a t a r ,   # " + t h i s . i d + "   . t w t r - u s e r   {   d i s p l a y :   n o n e ;   }   " + " # " + t h i s . i d + "   . t w t r - t w e e t - t e x t   {   m a r g i n - l e f t :   0 ;   } " ) , t h i s . _ a v a t a r s = ! 1 ; e l s e { v a r   e = t h i s . _ i s F u l l S c r e e n ? " 9 0 p x " : " 4 0 p x " ; c . c s s ( " # " + t h i s . i d + "   . t w t r - a v a t a r   {   d i s p l a y :   b l o c k ;   }   # " + t h i s . i d + "   . t w t r - u s e r   {   d i s p l a y :   i n l i n e ;   }   " + " # " + t h i s . i d + "   . t w t r - t w e e t - t e x t   {   m a r g i n - l e f t :   " + e + " ;   } " ) , t h i s . _ a v a t a r s = ! 0 } e l s e   t h i s . _ i s P r o f i l e W i d g e t ? ( t h i s . s e t F e a t u r e s ( { a v a t a r s : ! 1 } ) , t h i s . _ a v a t a r s = ! 1 ) : ( t h i s . s e t F e a t u r e s ( { a v a t a r s : ! 0 } ) , t h i s . _ a v a t a r s = ! 0 ) ; z . d e f ( a . h a s h t a g s ) & & z . b o o l ( a . h a s h t a g s ) & & ( a . h a s h t a g s ? " " : c . c s s ( " # " + t h i s . i d + "   a . t w t r - h a s h t a g   {   d i s p l a y :   n o n e ;   } " ) ) ; i f ( z . d e f ( a . t i m e s t a m p ) & & z . b o o l ( a . t i m e s t a m p ) ) { v a r   f = a . t i m e s t a m p ? " b l o c k " : " n o n e " ; c . c s s ( " # " + t h i s . i d + "   e m   {   d i s p l a y :   " + f + " ;   } " ) } z . d e f ( a . l i v e ) & & z . b o o l ( a . l i v e ) & & ( t h i s . _ i s L i v e = a . l i v e ) , z . d e f ( a . s c r o l l b a r ) & & z . b o o l ( a . s c r o l l b a r ) & & ( t h i s . _ i s S c r o l l = a . s c r o l l b a r ) } e l s e   t h i s . _ i s P r o f i l e W i d g e t & & ( t h i s . s e t F e a t u r e s ( { a v a t a r s : ! 1 } ) , t h i s . _ a v a t a r s = ! 1 ) , ( t h i s . _ i s P r o f i l e W i d g e t | | t h i s . _ i s F a v s W i d g e t ) & & t h i s . s e t F e a t u r e s ( { b e h a v i o r : " a l l " } ) ; r e t u r n   t h i s } , _ f u l l S c r e e n R e s i z e : f u n c t i o n ( ) { v a r   a = j ( " t w t r - t i m e l i n e " , " d i v " , d o c u m e n t . b o d y , f u n c t i o n ( a ) { a . s t y l e . h e i g h t = n ( ) - 9 0 + " p x " } ) } , s e t T w e e t I n t e r v a l : f u n c t i o n ( a ) { t h i s . i n t e r v a l = a ; r e t u r n   t h i s } , s e t B a s e : f u n c t i o n ( a ) { t h i s . _ b a s e = a ; r e t u r n   t h i s } , s e t U s e r : f u n c t i o n ( a , b ) { t h i s . u s e r n a m e = a , t h i s . r e a l n a m e = b | | "   " , t h i s . _ i s F a v s W i d g e t ? t h i s . s e t B a s e ( m + a + " . " ) : t h i s . _ i s P r o f i l e W i d g e t & & t h i s . s e t B a s e ( i + t h i s . f o r m a t + " ? s c r e e n _ n a m e = " + a ) , t h i s . s e t S e a r c h ( "   " ) ; r e t u r n   t h i s } , s e t L i s t : f u n c t i o n ( a , b ) { t h i s . l i s t s l u g = b . r e p l a c e ( /   / g , " - " ) . t o L o w e r C a s e ( ) , t h i s . u s e r n a m e = a , t h i s . s e t B a s e ( o + a + " / l i s t s / " + t h i s . l i s t s l u g + " / s t a t u s e s . " ) , t h i s . s e t S e a r c h ( "   " ) ; r e t u r n   t h i s } , s e t P r o f i l e I m a g e : f u n c t i o n ( a ) { t h i s . _ p r o f i l e I m a g e = a , t h i s . b y C l a s s ( " t w t r - p r o f i l e - i m g " , " i m g " ) . s r c = g ( a ) , t h i s . b y C l a s s ( " t w t r - p r o f i l e - i m g - a n c h o r " , " a " ) . h r e f = " h t t p : / / t w i t t e r . c o m / i n t e n t / u s e r ? s c r e e n _ n a m e = " + t h i s . u s e r n a m e ; r e t u r n   t h i s } , s e t T i t l e : f u n c t i o n ( a ) { t h i s . t i t l e = a , t h i s . w i d g e t E l . g e t E l e m e n t s B y T a g N a m e ( " h 3 " ) [ 0 ] . i n n e r H T M L = t h i s . t i t l e ; r e t u r n   t h i s } , s e t C a p t i o n : f u n c t i o n ( a ) { t h i s . s u b j e c t = a , t h i s . w i d g e t E l . g e t E l e m e n t s B y T a g N a m e ( " h 4 " ) [ 0 ] . i n n e r H T M L = t h i s . s u b j e c t ; r e t u r n   t h i s } , s e t F o o t e r T e x t : f u n c t i o n ( a ) { t h i s . f o o t e r T e x t = z . d e f ( a ) & & z . s t r i n g ( a ) ? a : " J o i n   t h e   c o n v e r s a t i o n " , t h i s . _ r e n d e r e d & & ( t h i s . b y C l a s s ( " t w t r - j o i n - c o n v " , " a " ) . i n n e r H T M L = t h i s . f o o t e r T e x t ) ; r e t u r n   t h i s } , s e t S e a r c h : f u n c t i o n ( a ) { t h i s . s e a r c h S t r i n g = a | | " " , t h i s . s e a r c h = e n c o d e U R I C o m p o n e n t ( t h i s . s e a r c h S t r i n g ) , t h i s . _ s e t U r l ( ) ; i f ( t h i s . _ r e n d e r e d ) { v a r   b = t h i s . b y C l a s s ( " t w t r - j o i n - c o n v " , " a " ) ; b . h r e f = " h t t p : / / t w i t t e r . c o m / " + t h i s . _ g e t W i d g e t P a t h ( ) } r e t u r n   t h i s } , _ g e t W i d g e t P a t h : f u n c t i o n ( ) { r e t u r n   t h i s . _ i s P r o f i l e W i d g e t ? t h i s . u s e r n a m e : t h i s . _ i s F a v s W i d g e t ? t h i s . u s e r n a m e + " / f a v o r i t e s " : t h i s . _ i s L i s t W i d g e t ? t h i s . u s e r n a m e + " / l i s t s / " + t h i s . l i s t s l u g : " # s e a r c h ? q = " + t h i s . s e a r c h } , _ s e t U r l : f u n c t i o n ( ) { f u n c t i o n   c ( ) { r e t u r n   a . s i n c e I d = = 1 ? " " : " & s i n c e _ i d = " + a . s i n c e I d + " & r e f r e s h = t r u e " } f u n c t i o n   b ( ) { r e t u r n " & " +   + ( n e w   D a t e ) + " = c a c h e b u s t " } v a r   a = t h i s ; t h i s . _ i s P r o f i l e W i d g e t ? t h i s . u r l = t h i s . _ b a s e + " & c a l l b a c k = " + t h i s . _ c b + " & i n c l u d e _ r t s = t r u e " + " & c o u n t = " + t h i s . r p p + c ( ) + " & c l i e n t s o u r c e = " + t h i s . s o u r c e : t h i s . _ i s F a v s W i d g e t | | t h i s . _ i s L i s t W i d g e t ? t h i s . u r l = t h i s . _ b a s e + t h i s . f o r m a t + " ? c a l l b a c k = " + t h i s . _ c b + c ( ) + " & i n c l u d e _ r t s = t r u e " + " & c l i e n t s o u r c e = " + t h i s . s o u r c e : ( t h i s . u r l = t h i s . _ b a s e + t h i s . f o r m a t + " ? q = " + t h i s . s e a r c h + " & i n c l u d e _ r t s = t r u e " + " & c a l l b a c k = " + t h i s . _ c b + " & r p p = " + t h i s . r p p + c ( ) + " & c l i e n t s o u r c e = " + t h i s . s o u r c e , t h i s . r u n O n c e | | ( t h i s . u r l + = " & r e s u l t _ t y p e = m i x e d " ) ) , t h i s . u r l + = b ( ) ; r e t u r n   t h i s } , _ g e t R G B : f u n c t i o n ( a ) { r e t u r n   y ( a . s u b s t r i n g ( 1 , 7 ) ) } , s e t T h e m e : f u n c t i o n ( a , b ) { v a r   d = t h i s , e = "   ! i m p o r t a n t " , f = w i n d o w . l o c a t i o n . h o s t n a m e . m a t c h ( / t w i t t e r \ . c o m / ) & & w i n d o w . l o c a t i o n . p a t h n a m e . m a t c h ( / g o o d i e s / ) ; i f ( b | | f ) e = " " ; t h i s . t h e m e = { s h e l l : { b a c k g r o u n d : f u n c t i o n ( ) { r e t u r n   a . s h e l l . b a c k g r o u n d | | d . _ g e t D e f a u l t T h e m e ( ) . s h e l l . b a c k g r o u n d } ( ) , c o l o r : f u n c t i o n ( ) { r e t u r n   a . s h e l l . c o l o r | | d . _ g e t D e f a u l t T h e m e ( ) . s h e l l . c o l o r } ( ) } , t w e e t s : { b a c k g r o u n d : f u n c t i o n ( ) { r e t u r n   a . t w e e t s . b a c k g r o u n d | | d . _ g e t D e f a u l t T h e m e ( ) . t w e e t s . b a c k g r o u n d } ( ) , c o l o r : f u n c t i o n ( ) { r e t u r n   a . t w e e t s . c o l o r | | d . _ g e t D e f a u l t T h e m e ( ) . t w e e t s . c o l o r } ( ) , l i n k s : f u n c t i o n ( ) { r e t u r n   a . t w e e t s . l i n k s | | d . _ g e t D e f a u l t T h e m e ( ) . t w e e t s . l i n k s } ( ) } } ; v a r   g = " # " + t h i s . i d + "   . t w t r - d o c ,   \ n                                           # " + t h i s . i d + "   . t w t r - h d   a ,   \ n                                           # " + t h i s . i d + "   h 3 ,   \ n                                           # " + t h i s . i d + "   h 4 ,   \ n                                           # " + t h i s . i d + "   . t w t r - p o p u l a r   { \ n                         b a c k g r o u n d - c o l o r :   " + t h i s . t h e m e . s h e l l . b a c k g r o u n d + e + " ; \ n                         c o l o r :   " + t h i s . t h e m e . s h e l l . c o l o r + e + " ; \ n                     } \ n                     # " + t h i s . i d + "   . t w t r - p o p u l a r   { \ n                         c o l o r :   " + t h i s . t h e m e . t w e e t s . c o l o r + e + " ; \ n                         b a c k g r o u n d - c o l o r :   r g b a ( " + t h i s . _ g e t R G B ( t h i s . t h e m e . s h e l l . b a c k g r o u n d ) + " ,   . 3 ) " + e + " ; \ n                     } \ n                     # " + t h i s . i d + "   . t w t r - t w e e t   a   { \ n                         c o l o r :   " + t h i s . t h e m e . t w e e t s . l i n k s + e + " ; \ n                     } \ n                     # " + t h i s . i d + "   . t w t r - b d ,   # " + t h i s . i d + "   . t w t r - t i m e l i n e   i   a ,   \ n                     # " + t h i s . i d + "   . t w t r - b d   p   { \ n                         c o l o r :   " + t h i s . t h e m e . t w e e t s . c o l o r + e + " ; \ n                     } \ n                     # " + t h i s . i d + "   . t w t r - n e w - r e s u l t s ,   \ n                     # " + t h i s . i d + "   . t w t r - r e s u l t s - i n n e r ,   \ n                     # " + t h i s . i d + "   . t w t r - t i m e l i n e   { \ n                         b a c k g r o u n d :   " + t h i s . t h e m e . t w e e t s . b a c k g r o u n d + e + " ; \ n                     } " ; k . i e & & ( g + = " # " + t h i s . i d + "   . t w t r - t w e e t   {   b a c k g r o u n d :   " + t h i s . t h e m e . t w e e t s . b a c k g r o u n d + e + " ;   } " ) , c . c s s ( g ) ; r e t u r n   t h i s } , b y C l a s s : f u n c t i o n ( a , b , c ) { v a r   d = j ( a , b , l ( t h i s . i d ) ) ; r e t u r n   c ? d : d [ 0 ] } , r e n d e r : f u n c t i o n ( ) { v a r   a = t h i s ; i f ( ! T W T R . W i d g e t . h a s L o a d e d S t y l e S h e e t ) { w i n d o w . s e t T i m e o u t ( f u n c t i o n ( ) { a . r e n d e r . c a l l ( a ) } , 5 0 ) ; r e t u r n   t h i s } t h i s . s e t T h e m e ( t h i s . t h e m e , t h i s . _ i s C r e a t o r ) , t h i s . _ i s P r o f i l e W i d g e t & & w . a d d ( t h i s . w i d g e t E l , " t w t r - w i d g e t - p r o f i l e " ) , t h i s . _ i s S c r o l l & & w . a d d ( t h i s . w i d g e t E l , " t w t r - s c r o l l " ) , ! t h i s . _ i s L i v e & & ! t h i s . _ i s S c r o l l & & ( t h i s . w h [ 1 ] = " a u t o " ) , t h i s . _ i s S e a r c h W i d g e t & & t h i s . _ i s F u l l S c r e e n & & ( d o c u m e n t . t i t l e = " T w i t t e r   s e a r c h :   " + e s c a p e ( t h i s . s e a r c h S t r i n g ) ) , t h i s . w i d g e t E l . i n n e r H T M L = t h i s . _ g e t W i d g e t H t m l ( ) ; v a r   b = t h i s . b y C l a s s ( " t w t r - t i m e l i n e " , " d i v " ) ; i f ( t h i s . _ i s L i v e & & ! t h i s . _ i s F u l l S c r e e n ) { v a r   c = f u n c t i o n ( b ) { a . _ b e h a v i o r ! = = " a l l " & & u . c a l l ( t h i s , b ) & & a . p a u s e . c a l l ( a ) } , d = f u n c t i o n ( b ) { a . _ b e h a v i o r ! = = " a l l " & & u . c a l l ( t h i s , b ) & & a . r e s u m e . c a l l ( a ) } ; t h i s . r e m o v e E v e n t s = f u n c t i o n ( ) { x . r e m o v e ( b , " m o u s e o v e r " , c ) , x . r e m o v e ( b , " m o u s e o u t " , d ) } , x . a d d ( b , " m o u s e o v e r " , c ) , x . a d d ( b , " m o u s e o u t " , d ) } t h i s . _ r e n d e r e d = ! 0 , t h i s . _ r e a d y ( ) ; r e t u r n   t h i s } , r e m o v e E v e n t s : f u n c t i o n ( ) { } , _ g e t D e f a u l t T h e m e : f u n c t i o n ( ) { r e t u r n { s h e l l : { b a c k g r o u n d : " # 8 e c 1 d a " , c o l o r : " # f f f f f f " } , t w e e t s : { b a c k g r o u n d : " # f f f f f f " , c o l o r : " # 4 4 4 4 4 4 " , l i n k s : " # 1 9 8 5 b 5 " } } } , _ g e t W i d g e t H t m l : f u n c t i o n ( ) { f u n c t i o n   c ( ) { r e t u r n   a . _ i s F u l l S c r e e n ? "   t w t r - f u l l s c r e e n " : " " } f u n c t i o n   b ( ) { r e t u r n   a . _ i s P r o f i l e W i d g e t ? ' < a   t a r g e t = " _ b l a n k "   h r e f = " h t t p : / / t w i t t e r . c o m / "   c l a s s = " t w t r - p r o f i l e - i m g - a n c h o r " > < i m g   a l t = " p r o f i l e "   c l a s s = " t w t r - p r o f i l e - i m g "   s r c = " ' + q + ' " > < / a > \ n                                             < h 3 > < / h 3 > \ n                                             < h 4 > < / h 4 > ' : " < h 3 > " + a . t i t l e + " < / h 3 > < h 4 > " + a . s u b j e c t + " < / h 4 > " } v a r   a = t h i s , e = d ? " h t t p s : / / t w i t t e r - w i d g e t s . s 3 . a m a z o n a w s . c o m / i / w i d g e t - l o g o . p n g " : " h t t p : / / w i d g e t s . t w i m g . c o m / i / w i d g e t - l o g o . p n g " ; t h i s . _ i s F u l l S c r e e n & & ( e = " h t t p s : / / t w i t t e r - w i d g e t s . s 3 . a m a z o n a w s . c o m / i / w i d g e t - l o g o - f u l l s c r e e n . p n g " ) ; v a r   f = ' < d i v   c l a s s = " t w t r - d o c ' + c ( ) + ' "   s t y l e = " w i d t h :   ' + t h i s . w h [ 0 ] + ' ; " > \ n                         < d i v   c l a s s = " t w t r - h d " > ' + b ( ) + '   \ n                         < / d i v > \ n                         < d i v   c l a s s = " t w t r - b d " > \ n                             < d i v   c l a s s = " t w t r - t i m e l i n e "   s t y l e = " h e i g h t :   ' + t h i s . w h [ 1 ] + ' ; " > \ n                                 < d i v   c l a s s = " t w t r - t w e e t s " > \ n                                     < d i v   c l a s s = " t w t r - r e f e r e n c e - t w e e t " > < / d i v > \ n                                     < ! - -   t w e e t s   s h o w   h e r e   - - > \ n                                 < / d i v > \ n                             < / d i v > \ n                         < / d i v > \ n                         < d i v   c l a s s = " t w t r - f t " > \ n                             < d i v > < a   t a r g e t = " _ b l a n k "   h r e f = " h t t p : / / t w i t t e r . c o m " > < i m g   a l t = " "   s r c = " ' + e + ' " > < / a > \ n                                 < s p a n > < a   t a r g e t = " _ b l a n k "   c l a s s = " t w t r - j o i n - c o n v "   s t y l e = " c o l o r : ' + t h i s . t h e m e . s h e l l . c o l o r + ' "   h r e f = " h t t p : / / t w i t t e r . c o m / ' + t h i s . _ g e t W i d g e t P a t h ( ) + ' " > ' + t h i s . f o o t e r T e x t + " < / a > < / s p a n > \ n                             < / d i v > \ n                         < / d i v > \ n                     < / d i v > " ; r e t u r n   f } , _ a p p e n d T w e e t : f u n c t i o n ( a ) { t h i s . _ i n s e r t N e w R e s u l t s N u m b e r ( ) , r ( a , t h i s . b y C l a s s ( " t w t r - r e f e r e n c e - t w e e t " , " d i v " ) ) ; r e t u r n   t h i s } , _ s l i d e : f u n c t i o n ( a ) { v a r   c = t h i s , d = t ( a ) . o f f s e t H e i g h t ; t h i s . r u n O n c e & & ( n e w   b ( a , " h e i g h t " , { f r o m : 0 , t o : d , t i m e : 5 0 0 , c a l l b a c k : f u n c t i o n ( ) { c . _ f a d e . c a l l ( c , a ) } } ) ) . s t a r t ( ) ; r e t u r n   t h i s } , _ f a d e : f u n c t i o n ( a ) { v a r   c = t h i s ; i f ( b . c a n T r a n s i t i o n ) { a . s t y l e . w e b k i t T r a n s i t i o n = " o p a c i t y   0 . 5 s   e a s e - o u t " , a . s t y l e . o p a c i t y = 1 ; r e t u r n   t h i s } ( n e w   b ( a , " o p a c i t y " , { f r o m : 0 , t o : 1 , t i m e : 5 0 0 } ) ) . s t a r t ( ) ; r e t u r n   t h i s } , _ c h o p : f u n c t i o n ( ) { i f ( t h i s . _ i s S c r o l l ) r e t u r n   t h i s ; v a r   a = t h i s . b y C l a s s ( " t w t r - t w e e t " , " d i v " , ! 0 ) , b = t h i s . b y C l a s s ( " t w t r - n e w - r e s u l t s " , " d i v " , ! 0 ) ; i f ( a . l e n g t h ) { f o r ( v a r   c = a . l e n g t h - 1 ; c > = 0 ; c - - ) { v a r   d = a [ c ] , e = p a r s e I n t ( d . o f f s e t T o p ) ; i f ( e > p a r s e I n t ( t h i s . w h [ 1 ] ) ) s ( d ) ; e l s e   b r e a k } i f ( b . l e n g t h > 0 ) { v a r   f = b [ b . l e n g t h - 1 ] , g = p a r s e I n t ( f . o f f s e t T o p ) ; g > p a r s e I n t ( t h i s . w h [ 1 ] ) & & s ( f ) } } r e t u r n   t h i s } , _ a p p e n d S l i d e F a d e : f u n c t i o n ( a ) { v a r   b = a | | t h i s . t w e e t . e l e m e n t ; t h i s . _ c h o p ( ) . _ a p p e n d T w e e t ( b ) . _ s l i d e ( b ) ; r e t u r n   t h i s } , _ c r e a t e T w e e t : f u n c t i o n ( a ) { a . t i m e s t a m p = a . c r e a t e d _ a t , a . c r e a t e d _ a t = t h i s . _ i s R e l a t i v e T i m e ? C ( a . c r e a t e d _ a t ) : B ( a . c r e a t e d _ a t ) , t h i s . t w e e t = n e w   G ( a ) , t h i s . _ i s L i v e & & t h i s . r u n O n c e & & ( t h i s . t w e e t . e l e m e n t . s t y l e . o p a c i t y = 0 , t h i s . t w e e t . e l e m e n t . s t y l e . f i l t e r = " a l p h a ( o p a c i t y : 0 ) " , t h i s . t w e e t . e l e m e n t . s t y l e . h e i g h t = " 0 " ) ; r e t u r n   t h i s } , _ g e t R e s u l t s : f u n c t i o n ( ) { v a r   a = t h i s ; t h i s . t i m e s R e q u e s t e d + + , t h i s . j s o n R e q u e s t R u n n i n g = ! 0 , t h i s . j s o n R e q u e s t T i m e r = w i n d o w . s e t T i m e o u t ( f u n c t i o n ( ) { a . j s o n R e q u e s t R u n n i n g & & ( c l e a r T i m e o u t ( a . j s o n R e q u e s t T i m e r ) , a . j s o n R e q u e s t T i m e r = n u l l ) , a . j s o n R e q u e s t R u n n i n g = ! 1 , s ( a . s c r i p t E l e m e n t ) , a . n e w R e s u l t s = ! 1 , a . d e c a y ( ) } , t h i s . j s o n M a x R e q u e s t T i m e O u t ) , T W T R . W i d g e t . j s o n P ( a . u r l , f u n c t i o n ( b ) { a . s c r i p t E l e m e n t = b } ) } , c l e a r : f u n c t i o n ( ) { v a r   b = t h i s . b y C l a s s ( " t w t r - t w e e t " , " d i v " , ! 0 ) , c = t h i s . b y C l a s s ( " t w t r - n e w - r e s u l t s " , " d i v " , ! 0 ) ; b = b . c o n c a t ( c ) , a ( b , f u n c t i o n ( a ) { s ( a ) } ) ; r e t u r n   t h i s } , _ s o r t B y M a g i c : f u n c t i o n ( a ) { v a r   b = t h i s ; t h i s . _ t w e e t F i l t e r & & ( t h i s . _ t w e e t F i l t e r . n e g a t i v e s & & ( a = a . f i l t e r ( f u n c t i o n ( a ) { i f ( ! b . _ t w e e t F i l t e r . n e g a t i v e s . t e s t ( a . t e x t ) ) r e t u r n   a } ) ) , t h i s . _ t w e e t F i l t e r . p o s i t i v e s & & ( a = a . f i l t e r ( f u n c t i o n ( a ) { i f ( b . _ t w e e t F i l t e r . p o s i t i v e s . t e s t ( a . t e x t ) ) r e t u r n   a } ) ) ) ; s w i t c h ( t h i s . _ b e h a v i o r ) { c a s e " a l l " : t h i s . _ s o r t B y L a t e s t ( a ) ; b r e a k ; c a s e " p r e l o a d e d " : d e f a u l t : t h i s . _ s o r t B y D e f a u l t ( a ) } t h i s . _ i s L i v e & & t h i s . _ b e h a v i o r ! = = " a l l " & & ( t h i s . i n t e r v a l J o b . s e t ( t h i s . r e s u l t s ) , t h i s . i n t e r v a l J o b . s t a r t ( ) ) ; r e t u r n   t h i s } , _ l o a d T o p T w e e t s A t T o p : f u n c t i o n ( b ) { v a r   c = [ ] , d = [ ] , e = [ ] ; a ( b , f u n c t i o n ( a ) { a . m e t a d a t a & & a . m e t a d a t a . r e s u l t _ t y p e & & a . m e t a d a t a . r e s u l t _ t y p e = = " p o p u l a r " ? d . p u s h ( a ) : c . p u s h ( a ) } ) ; v a r   f = d . c o n c a t ( c ) ; r e t u r n   f } , _ s o r t B y L a t e s t : f u n c t i o n ( a ) { t h i s . r e s u l t s = a , t h i s . r e s u l t s = t h i s . r e s u l t s . s l i c e ( 0 , t h i s . r p p ) , t h i s . r e s u l t s = t h i s . _ l o a d T o p T w e e t s A t T o p ( t h i s . r e s u l t s ) , t h i s . r e s u l t s . r e v e r s e ( ) ; r e t u r n   t h i s } , _ s o r t B y D e f a u l t : f u n c t i o n ( b ) { v a r   c = t h i s , d = f u n c t i o n ( a ) { r e t u r n ( n e w   D a t e ( a ) ) . g e t T i m e ( ) } ; t h i s . r e s u l t s . u n s h i f t . a p p l y ( t h i s . r e s u l t s , b ) , a ( t h i s . r e s u l t s , f u n c t i o n ( a ) { a . v i e w s | | ( a . v i e w s = 0 ) } ) , t h i s . r e s u l t s . s o r t ( f u n c t i o n ( a , b ) { r e t u r n   d ( a . c r e a t e d _ a t ) > d ( b . c r e a t e d _ a t ) ? - 1 : d ( a . c r e a t e d _ a t ) < d ( b . c r e a t e d _ a t ) ? 1 : 0 } ) , t h i s . r e s u l t s = t h i s . r e s u l t s . s l i c e ( 0 , t h i s . r p p ) , t h i s . r e s u l t s = t h i s . _ l o a d T o p T w e e t s A t T o p ( t h i s . r e s u l t s ) ; v a r   e = t h i s . r e s u l t s ; t h i s . r e s u l t s = t h i s . r e s u l t s . s o r t ( f u n c t i o n ( a , b ) { i f ( a . v i e w s < b . v i e w s ) r e t u r n - 1 ; i f ( a . v i e w s > b . v i e w s ) r e t u r n   1 ; r e t u r n   0 } ) , t h i s . _ i s L i v e | | t h i s . r e s u l t s . r e v e r s e ( ) } , _ p r e P l a y : f u n c t i o n ( a ) { t h i s . j s o n R e q u e s t T i m e r & & ( c l e a r T i m e o u t ( t h i s . j s o n R e q u e s t T i m e r ) , t h i s . j s o n R e q u e s t T i m e r = n u l l ) , k . i e | | s ( t h i s . s c r i p t E l e m e n t ) ; i f ( a . e r r o r ) t h i s . n e w R e s u l t s = ! 1 ; e l s e   i f ( a . r e s u l t s & & a . r e s u l t s . l e n g t h > 0 ) t h i s . r e s p o n s e = a , t h i s . n e w R e s u l t s = ! 0 , t h i s . s i n c e I d = a . m a x _ i d _ s t r , t h i s . _ s o r t B y M a g i c ( a . r e s u l t s ) , t h i s . i s R u n n i n g ( ) & & t h i s . _ p l a y ( ) ; e l s e   i f ( ( t h i s . _ i s P r o f i l e W i d g e t | | t h i s . _ i s F a v s W i d g e t | | t h i s . _ i s L i s t W i d g e t ) & & z . a r r a y ( a ) & & a . l e n g t h ) { t h i s . n e w R e s u l t s = ! 0 ; i f ( ! t h i s . _ p r o f i l e I m a g e & & t h i s . _ i s P r o f i l e W i d g e t ) { v a r   b = a [ 0 ] . u s e r . s c r e e n _ n a m e ; t h i s . s e t P r o f i l e I m a g e ( a [ 0 ] . u s e r . p r o f i l e _ i m a g e _ u r l ) , t h i s . s e t T i t l e ( a [ 0 ] . u s e r . n a m e ) , t h i s . s e t C a p t i o n ( ' < a   t a r g e t = " _ b l a n k "   h r e f = " h t t p : / / t w i t t e r . c o m / i n t e n t / u s e r ? s c r e e n _ n a m e = ' + b + ' " > ' + b + " < / a > " ) } t h i s . s i n c e I d = a [ 0 ] . i d _ s t r , t h i s . _ s o r t B y M a g i c ( a ) , t h i s . i s R u n n i n g ( ) & & t h i s . _ p l a y ( ) } e l s e   t h i s . n e w R e s u l t s = ! 1 ; t h i s . _ s e t U r l ( ) , t h i s . _ i s L i v e & & t h i s . d e c a y ( ) } , _ p l a y : f u n c t i o n ( ) { v a r   b = t h i s ; t h i s . r u n O n c e & & ( t h i s . _ h a s N e w S e a r c h R e s u l t s = ! 0 ) , t h i s . _ a v a t a r s & & t h i s . _ p r e l o a d I m a g e s ( t h i s . r e s u l t s ) , t h i s . _ i s R e l a t i v e T i m e & & ( t h i s . _ b e h a v i o r = = " a l l " | | t h i s . _ b e h a v i o r = = " p r e l o a d e d " ) & & a ( t h i s . b y C l a s s ( " t w t r - t i m e s t a m p " , " a " , ! 0 ) , f u n c t i o n ( a ) { a . i n n e r H T M L = C ( a . g e t A t t r i b u t e ( " t i m e " ) ) } ) ; i f ( ! t h i s . _ i s L i v e | | t h i s . _ b e h a v i o r = = " a l l " | | t h i s . _ b e h a v i o r = = " p r e l o a d e d " ) { a ( t h i s . r e s u l t s , f u n c t i o n ( a ) { a . r e t w e e t e d _ s t a t u s & & ( a = a . r e t w e e t e d _ s t a t u s ) , b . _ i s P r o f i l e W i d g e t & & ( a . f r o m _ u s e r = a . u s e r . s c r e e n _ n a m e , a . p r o f i l e _ i m a g e _ u r l = a . u s e r . p r o f i l e _ i m a g e _ u r l ) ; i f ( b . _ i s F a v s W i d g e t | | b . _ i s L i s t W i d g e t ) a . f r o m _ u s e r = a . u s e r . s c r e e n _ n a m e , a . p r o f i l e _ i m a g e _ u r l = a . u s e r . p r o f i l e _ i m a g e _ u r l ; a . i d = a . i d _ s t r , b . _ c r e a t e T w e e t ( { i d : a . i d , u s e r : a . f r o m _ u s e r , t w e e t : D . c l e a n ( a . t e x t ) , a v a t a r : a . p r o f i l e _ i m a g e _ u r l , c r e a t e d _ a t : a . c r e a t e d _ a t , n e e d l e : a } ) ; v a r   c = b . t w e e t . e l e m e n t ; b . _ b e h a v i o r = = " a l l " ? b . _ a p p e n d S l i d e F a d e ( c ) : b . _ a p p e n d T w e e t ( c ) } ) ; i f ( t h i s . _ b e h a v i o r ! = " p r e l o a d e d " ) r e t u r n   t h i s } r e t u r n   t h i s } , _ n o r m a l i z e T w e e t : f u n c t i o n ( a ) { v a r   b = t h i s ; a . v i e w s + + , t h i s . _ i s P r o f i l e W i d g e t & & ( a . f r o m _ u s e r = b . u s e r n a m e , a . p r o f i l e _ i m a g e _ u r l = a . u s e r . p r o f i l e _ i m a g e _ u r l ) ; i f ( t h i s . _ i s F a v s W i d g e t | | t h i s . _ i s L i s t W i d g e t ) a . f r o m _ u s e r = a . u s e r . s c r e e n _ n a m e , a . p r o f i l e _ i m a g e _ u r l = a . u s e r . p r o f i l e _ i m a g e _ u r l ; t h i s . _ i s F u l l S c r e e n & & ( a . p r o f i l e _ i m a g e _ u r l = a . p r o f i l e _ i m a g e _ u r l . r e p l a c e ( / _ n o r m a l \ . / , " _ b i g g e r . " ) ) , a . i d = a . i d _ s t r , t h i s . _ c r e a t e T w e e t ( { i d : a . i d , u s e r : a . f r o m _ u s e r , t w e e t : D . c l e a n ( a . t e x t ) , a v a t a r : a . p r o f i l e _ i m a g e _ u r l , c r e a t e d _ a t : a . c r e a t e d _ a t , n e e d l e : a } ) . _ a p p e n d S l i d e F a d e ( ) } , _ i n s e r t N e w R e s u l t s N u m b e r : f u n c t i o n ( ) { i f ( ! t h i s . _ h a s N e w S e a r c h R e s u l t s ) t h i s . _ h a s N e w S e a r c h R e s u l t s = ! 1 ; e l s e   i f ( t h i s . r u n O n c e & & t h i s . _ i s S e a r c h W i d g e t ) { v a r   a = t h i s . r e s p o n s e . t o t a l > t h i s . r p p ? t h i s . r e s p o n s e . t o t a l : t h i s . r e s p o n s e . r e s u l t s . l e n g t h , b = a > 1 ? " s " : " " , c = t h i s . r e s p o n s e . w a r n i n g & & t h i s . r e s p o n s e . w a r n i n g . m a t c h ( / a d j u s t e d   s i n c e _ i d / ) ? " m o r e   t h a n " : " " , d = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; w . a d d ( d , " t w t r - n e w - r e s u l t s " ) , d . i n n e r H T M L = ' < d i v   c l a s s = " t w t r - r e s u l t s - i n n e r " >   & n b s p ;   < / d i v > < d i v   c l a s s = " t w t r - r e s u l t s - h r " >   & n b s p ;   < / d i v > < s p a n > ' + c + "   < s t r o n g > " + a + " < / s t r o n g >   n e w   t w e e t " + b + " < / s p a n > " , r ( d , t h i s . b y C l a s s ( " t w t r - r e f e r e n c e - t w e e t " , " d i v " ) ) , t h i s . _ h a s N e w S e a r c h R e s u l t s = ! 1 } } , _ p r e l o a d I m a g e s : f u n c t i o n ( b ) { t h i s . _ i s P r o f i l e W i d g e t | | t h i s . _ i s F a v s W i d g e t | | t h i s . _ i s L i s t W i d g e t ? a ( b , f u n c t i o n ( a ) { v a r   b = n e w   I m a g e ; b . s r c = g ( a . u s e r . p r o f i l e _ i m a g e _ u r l ) } ) : a ( b , f u n c t i o n ( a ) { ( n e w   I m a g e ) . s r c = g ( a . p r o f i l e _ i m a g e _ u r l ) } ) } , _ d e c a y D e c i d e r : f u n c t i o n ( ) { v a r   a = ! 1 ; t h i s . r u n O n c e ? t h i s . n e w R e s u l t s & & ( a = ! 0 ) : ( t h i s . r u n O n c e = ! 0 , a = ! 0 ) ; r e t u r n   a } , s t a r t : f u n c t i o n ( ) { v a r   a = t h i s ; i f ( ! t h i s . _ r e n d e r e d ) { s e t T i m e o u t ( f u n c t i o n ( ) { a . s t a r t . c a l l ( a ) } , 5 0 ) ; r e t u r n   t h i s } t h i s . _ i s L i v e ? t h i s . o c c a s i o n a l J o b . s t a r t ( ) : t h i s . _ g e t R e s u l t s ( ) , t h i s . _ i s R u n n i n g = ! 0 , t h i s . _ h a s O f f i c i a l l y S t a r t e d = ! 0 ; r e t u r n   t h i s } , s t o p : f u n c t i o n ( ) { t h i s . o c c a s i o n a l J o b . s t o p ( ) , t h i s . i n t e r v a l J o b & & t h i s . i n t e r v a l J o b . s t o p ( ) , t h i s . _ i s R u n n i n g = ! 1 ; r e t u r n   t h i s } , p a u s e : f u n c t i o n ( ) { t h i s . i s R u n n i n g ( ) & & t h i s . i n t e r v a l J o b & & ( t h i s . i n t e r v a l J o b . s t o p ( ) , w . a d d ( t h i s . w i d g e t E l , " t w t r - p a u s e d " ) , t h i s . _ i s R u n n i n g = ! 1 ) , t h i s . _ r e s u m e T i m e r & & ( c l e a r T i m e o u t ( t h i s . _ r e s u m e T i m e r ) , t h i s . _ r e s u m e T i m e r = n u l l ) ; r e t u r n   t h i s } , r e s u m e : f u n c t i o n ( ) { v a r   a = t h i s ; ! t h i s . i s R u n n i n g ( ) & & t h i s . _ h a s O f f i c i a l l y S t a r t e d & & t h i s . i n t e r v a l J o b & & ( t h i s . _ r e s u m e T i m e r = w i n d o w . s e t T i m e o u t ( f u n c t i o n ( ) { a . i n t e r v a l J o b . s t a r t ( ) , a . _ i s R u n n i n g = ! 0 , w . r e m o v e ( a . w i d g e t E l , " t w t r - p a u s e d " ) } , 2 e 3 ) ) ; r e t u r n   t h i s } , i s R u n n i n g : f u n c t i o n ( ) { r e t u r n   t h i s . _ i s R u n n i n g } , d e s t r o y : f u n c t i o n ( ) { t h i s . s t o p ( ) , t h i s . c l e a r ( ) , t h i s . r u n O n c e = ! 1 , t h i s . _ h a s O f f i c i a l l y S t a r t e d = ! 1 , t h i s . _ p r o f i l e I m a g e = ! 1 , t h i s . _ i s L i v e = ! 0 , t h i s . _ t w e e t F i l t e r = ! 1 , t h i s . _ i s S c r o l l = ! 1 , t h i s . n e w R e s u l t s = ! 1 , t h i s . _ i s R u n n i n g = ! 1 , t h i s . s i n c e I d = 1 , t h i s . r e s u l t s = [ ] , t h i s . s h o w e d R e s u l t s = [ ] , t h i s . o c c a s i o n a l J o b . d e s t r o y ( ) , t h i s . j s o n R e q u e s t R u n n i n g & & c l e a r T i m e o u t ( t h i s . j s o n R e q u e s t T i m e r ) , w . r e m o v e ( t h i s . w i d g e t E l , " t w t r - s c r o l l " ) , t h i s . r e m o v e E v e n t s ( ) ; r e t u r n   t h i s } } } ( ) } ( ) ; v a r   c = / t w i t t e r \ . c o m ( \ : \ d { 2 , 4 } ) ? \ / i n t e n t \ / ( \ w + ) / , d = { t w e e t : ! 0 , r e t w e e t : ! 0 , f a v o r i t e : ! 0 } , e = " s c r o l l b a r s = y e s , r e s i z a b l e = y e s , t o o l b a r = n o , l o c a t i o n = y e s " , f = s c r e e n . h e i g h t , g = s c r e e n . w i d t h ; d o c u m e n t . a d d E v e n t L i s t e n e r ? d o c u m e n t . a d d E v e n t L i s t e n e r ( " c l i c k " , h , ! 1 ) : d o c u m e n t . a t t a c h E v e n t & & d o c u m e n t . a t t a c h E v e n t ( " o n c l i c k " , h ) } } ( ) 
