ÿþ/ * ! 
   *   j Q u e r y   J a v a S c r i p t   L i b r a r y   v 1 . 5 
   *   h t t p : / / j q u e r y . c o m / 
   * 
   *   C o p y r i g h t   2 0 1 1 ,   J o h n   R e s i g 
   *   D u a l   l i c e n s e d   u n d e r   t h e   M I T   o r   G P L   V e r s i o n   2   l i c e n s e s . 
   *   h t t p : / / j q u e r y . o r g / l i c e n s e 
   * 
   *   I n c l u d e s   S i z z l e . j s 
   *   h t t p : / / s i z z l e j s . c o m / 
   *   C o p y r i g h t   2 0 1 1 ,   T h e   D o j o   F o u n d a t i o n 
   *   R e l e a s e d   u n d e r   t h e   M I T ,   B S D ,   a n d   G P L   L i c e n s e s . 
   * 
   *   D a t e :   M o n   J a n   3 1   0 8 : 3 1 : 2 9   2 0 1 1   - 0 5 0 0 
   * / 
 ( f u n c t i o n ( a , b ) { f u n c t i o n   b $ ( a ) { r e t u r n   d . i s W i n d o w ( a ) ? a : a . n o d e T y p e = = = 9 ? a . d e f a u l t V i e w | | a . p a r e n t W i n d o w : ! 1 } f u n c t i o n   b X ( a ) { i f ( ! b R [ a ] ) { v a r   b = d ( " < " + a + " > " ) . a p p e n d T o ( " b o d y " ) , c = b . c s s ( " d i s p l a y " ) ; b . r e m o v e ( ) ; i f ( c = = = " n o n e " | | c = = = " " ) c = " b l o c k " ; b R [ a ] = c } r e t u r n   b R [ a ] } f u n c t i o n   b W ( a , b ) { v a r   c = { } ; d . e a c h ( b V . c o n c a t . a p p l y ( [ ] , b V . s l i c e ( 0 , b ) ) , f u n c t i o n ( ) { c [ t h i s ] = a } ) ; r e t u r n   c } f u n c t i o n   b J ( a , c ) { a . d a t a F i l t e r & & ( c = a . d a t a F i l t e r ( c , a . d a t a T y p e ) ) ; v a r   e = a . d a t a T y p e s , f = a . c o n v e r t e r s , g , h = e . l e n g t h , i , j = e [ 0 ] , k , l , m , n , o ; f o r ( g = 1 ; g < h ; g + + ) { k = j , j = e [ g ] ; i f ( j = = = " * " ) j = k ; e l s e   i f ( k ! = = " * " & & k ! = = j ) { l = k + "   " + j , m = f [ l ] | | f [ " *   " + j ] ; i f ( ! m ) { o = b ; f o r ( n   i n   f ) { i = n . s p l i t ( "   " ) ; i f ( i [ 0 ] = = = k | | i [ 0 ] = = = " * " ) { o = f [ i [ 1 ] + "   " + j ] ; i f ( o ) { n = f [ n ] , n = = = ! 0 ? m = o : o = = = ! 0 & & ( m = n ) ; b r e a k } } } } ! m & & ! o & & d . e r r o r ( " N o   c o n v e r s i o n   f r o m   " + l . r e p l a c e ( "   " , "   t o   " ) ) , m ! = = ! 0 & & ( c = m ? m ( c ) : o ( n ( c ) ) ) } } r e t u r n   c } f u n c t i o n   b I ( a , c , d ) { v a r   e = a . c o n t e n t s , f = a . d a t a T y p e s , g = a . r e s p o n s e F i e l d s , h , i , j , k ; f o r ( i   i n   g ) i   i n   d & & ( c [ g [ i ] ] = d [ i ] ) ; w h i l e ( f [ 0 ] = = = " * " ) f . s h i f t ( ) , h = = = b & & ( h = c . g e t R e s p o n s e H e a d e r ( " c o n t e n t - t y p e " ) ) ; i f ( h ) f o r ( i   i n   e ) i f ( e [ i ] & & e [ i ] . t e s t ( h ) ) { f . u n s h i f t ( i ) ; b r e a k } i f ( f [ 0 ] i n   d ) j = f [ 0 ] ; e l s e { f o r ( i   i n   d ) { i f ( ! f [ 0 ] | | a . c o n v e r t e r s [ i + "   " + f [ 0 ] ] ) { j = i ; b r e a k } k | | ( k = i ) } j = j | | k } i f ( j ) { j ! = = f [ 0 ] & & f . u n s h i f t ( j ) ; r e t u r n   d [ j ] } } f u n c t i o n   b H ( a , b , c , e ) { d . i s A r r a y ( b ) & & b . l e n g t h ? d . e a c h ( b , f u n c t i o n ( b , f ) { c | | b p . t e s t ( a ) ? e ( a , f ) : b H ( a + " [ " + ( t y p e o f   f = = = " o b j e c t " | | d . i s A r r a y ( f ) ? b : " " ) + " ] " , f , c , e ) } ) : c | | b = = n u l l | | t y p e o f   b ! = = " o b j e c t " ? e ( a , b ) : d . i s A r r a y ( b ) | | d . i s E m p t y O b j e c t ( b ) ? e ( a , " " ) : d . e a c h ( b , f u n c t i o n ( b , d ) { b H ( a + " [ " + b + " ] " , d , c , e ) } ) } f u n c t i o n   b G ( a , c , d , e , f , g ) { f = f | | c . d a t a T y p e s [ 0 ] , g = g | | { } , g [ f ] = ! 0 ; v a r   h = a [ f ] , i = 0 , j = h ? h . l e n g t h : 0 , k = a = = = b D , l ; f o r ( ; i < j & & ( k | | ! l ) ; i + + ) l = h [ i ] ( c , d , e ) , t y p e o f   l = = = " s t r i n g " & & ( g [ l ] ? l = b : ( c . d a t a T y p e s . u n s h i f t ( l ) , l = b G ( a , c , d , e , l , g ) ) ) ; ( k | | ! l ) & & ! g [ " * " ] & & ( l = b G ( a , c , d , e , " * " , g ) ) ; r e t u r n   l } f u n c t i o n   b F ( a ) { r e t u r n   f u n c t i o n ( b , c ) { t y p e o f   b ! = = " s t r i n g " & & ( c = b , b = " * " ) ; i f ( d . i s F u n c t i o n ( c ) ) { v a r   e = b . t o L o w e r C a s e ( ) . s p l i t ( b z ) , f = 0 , g = e . l e n g t h , h , i , j ; f o r ( ; f < g ; f + + ) h = e [ f ] , j = / ^ \ + / . t e s t ( h ) , j & & ( h = h . s u b s t r ( 1 ) | | " * " ) , i = a [ h ] = a [ h ] | | [ ] , i [ j ? " u n s h i f t " : " p u s h " ] ( c ) } } } f u n c t i o n   b n ( a , b , c ) { v a r   e = b = = = " w i d t h " ? b h : b i , f = b = = = " w i d t h " ? a . o f f s e t W i d t h : a . o f f s e t H e i g h t ; i f ( c = = = " b o r d e r " ) r e t u r n   f ; d . e a c h ( e , f u n c t i o n ( ) { c | | ( f - = p a r s e F l o a t ( d . c s s ( a , " p a d d i n g " + t h i s ) ) | | 0 ) , c = = = " m a r g i n " ? f + = p a r s e F l o a t ( d . c s s ( a , " m a r g i n " + t h i s ) ) | | 0 : f - = p a r s e F l o a t ( d . c s s ( a , " b o r d e r " + t h i s + " W i d t h " ) ) | | 0 } ) ; r e t u r n   f } f u n c t i o n   _ ( a , b ) { b . s r c ? d . a j a x ( { u r l : b . s r c , a s y n c : ! 1 , d a t a T y p e : " s c r i p t " } ) : d . g l o b a l E v a l ( b . t e x t | | b . t e x t C o n t e n t | | b . i n n e r H T M L | | " " ) , b . p a r e n t N o d e & & b . p a r e n t N o d e . r e m o v e C h i l d ( b ) } f u n c t i o n   $ ( a , b ) { i f ( b . n o d e T y p e = = = 1 ) { v a r   c = b . n o d e N a m e . t o L o w e r C a s e ( ) ; b . c l e a r A t t r i b u t e s ( ) , b . m e r g e A t t r i b u t e s ( a ) ; i f ( c = = = " o b j e c t " ) b . o u t e r H T M L = a . o u t e r H T M L ; e l s e   i f ( c ! = = " i n p u t " | | a . t y p e ! = = " c h e c k b o x " & & a . t y p e ! = = " r a d i o " ) { i f ( c = = = " o p t i o n " ) b . s e l e c t e d = a . d e f a u l t S e l e c t e d ; e l s e   i f ( c = = = " i n p u t " | | c = = = " t e x t a r e a " ) b . d e f a u l t V a l u e = a . d e f a u l t V a l u e } e l s e   a . c h e c k e d & & ( b . d e f a u l t C h e c k e d = b . c h e c k e d = a . c h e c k e d ) , b . v a l u e ! = = a . v a l u e & & ( b . v a l u e = a . v a l u e ) ; b . r e m o v e A t t r i b u t e ( d . e x p a n d o ) } } f u n c t i o n   Z ( a , b ) { i f ( b . n o d e T y p e = = = 1 & & d . h a s D a t a ( a ) ) { v a r   c = d . e x p a n d o , e = d . d a t a ( a ) , f = d . d a t a ( b , e ) ; i f ( e = e [ c ] ) { v a r   g = e . e v e n t s ; f = f [ c ] = d . e x t e n d ( { } , e ) ; i f ( g ) { d e l e t e   f . h a n d l e , f . e v e n t s = { } ; f o r ( v a r   h   i n   g ) f o r ( v a r   i = 0 , j = g [ h ] . l e n g t h ; i < j ; i + + ) d . e v e n t . a d d ( b , h , g [ h ] [ i ] , g [ h ] [ i ] . d a t a ) } } } } f u n c t i o n   Y ( a , b ) { r e t u r n   d . n o d e N a m e ( a , " t a b l e " ) ? a . g e t E l e m e n t s B y T a g N a m e ( " t b o d y " ) [ 0 ] | | a . a p p e n d C h i l d ( a . o w n e r D o c u m e n t . c r e a t e E l e m e n t ( " t b o d y " ) ) : a } f u n c t i o n   O ( a , b , c ) { i f ( d . i s F u n c t i o n ( b ) ) r e t u r n   d . g r e p ( a , f u n c t i o n ( a , d ) { v a r   e = ! ! b . c a l l ( a , d , a ) ; r e t u r n   e = = = c } ) ; i f ( b . n o d e T y p e ) r e t u r n   d . g r e p ( a , f u n c t i o n ( a , d ) { r e t u r n   a = = = b = = = c } ) ; i f ( t y p e o f   b = = = " s t r i n g " ) { v a r   e = d . g r e p ( a , f u n c t i o n ( a ) { r e t u r n   a . n o d e T y p e = = = 1 } ) ; i f ( J . t e s t ( b ) ) r e t u r n   d . f i l t e r ( b , e , ! c ) ; b = d . f i l t e r ( b , e ) } r e t u r n   d . g r e p ( a , f u n c t i o n ( a , e ) { r e t u r n   d . i n A r r a y ( a , b ) > = 0 = = = c } ) } f u n c t i o n   N ( a ) { r e t u r n ! a | | ! a . p a r e n t N o d e | | a . p a r e n t N o d e . n o d e T y p e = = = 1 1 } f u n c t i o n   F ( a , b ) { r e t u r n ( a & & a ! = = " * " ? a + " . " : " " ) + b . r e p l a c e ( q , " ` " ) . r e p l a c e ( r , " & " ) } f u n c t i o n   E ( a ) { v a r   b , c , e , f , g , h , i , j , k , l , m , n , p , q = [ ] , r = [ ] , s = d . _ d a t a ( t h i s , u ) ; t y p e o f   s = = = " f u n c t i o n " & & ( s = s . e v e n t s ) ; i f ( a . l i v e F i r e d ! = = t h i s & & s & & s . l i v e & & ! a . t a r g e t . d i s a b l e d & & ( ! a . b u t t o n | | a . t y p e ! = = " c l i c k " ) ) { a . n a m e s p a c e & & ( n = n e w   R e g E x p ( " ( ^ | \ \ . ) " + a . n a m e s p a c e . s p l i t ( " . " ) . j o i n ( " \ \ . ( ? : . * \ \ . ) ? " ) + " ( \ \ . | $ ) " ) ) , a . l i v e F i r e d = t h i s ; v a r   t = s . l i v e . s l i c e ( 0 ) ; f o r ( i = 0 ; i < t . l e n g t h ; i + + ) g = t [ i ] , g . o r i g T y p e . r e p l a c e ( o , " " ) = = = a . t y p e ? r . p u s h ( g . s e l e c t o r ) : t . s p l i c e ( i - - , 1 ) ; f = d ( a . t a r g e t ) . c l o s e s t ( r , a . c u r r e n t T a r g e t ) ; f o r ( j = 0 , k = f . l e n g t h ; j < k ; j + + ) { m = f [ j ] ; f o r ( i = 0 ; i < t . l e n g t h ; i + + ) { g = t [ i ] ; i f ( m . s e l e c t o r = = = g . s e l e c t o r & & ( ! n | | n . t e s t ( g . n a m e s p a c e ) ) ) { h = m . e l e m , e = n u l l ; i f ( g . p r e T y p e = = = " m o u s e e n t e r " | | g . p r e T y p e = = = " m o u s e l e a v e " ) a . t y p e = g . p r e T y p e , e = d ( a . r e l a t e d T a r g e t ) . c l o s e s t ( g . s e l e c t o r ) [ 0 ] ; ( ! e | | e ! = = h ) & & q . p u s h ( { e l e m : h , h a n d l e O b j : g , l e v e l : m . l e v e l } ) } } } f o r ( j = 0 , k = q . l e n g t h ; j < k ; j + + ) { f = q [ j ] ; i f ( c & & f . l e v e l > c ) b r e a k ; a . c u r r e n t T a r g e t = f . e l e m , a . d a t a = f . h a n d l e O b j . d a t a , a . h a n d l e O b j = f . h a n d l e O b j , p = f . h a n d l e O b j . o r i g H a n d l e r . a p p l y ( f . e l e m , a r g u m e n t s ) ; i f ( p = = = ! 1 | | a . i s P r o p a g a t i o n S t o p p e d ( ) ) { c = f . l e v e l , p = = = ! 1 & & ( b = ! 1 ) ; i f ( a . i s I m m e d i a t e P r o p a g a t i o n S t o p p e d ( ) ) b r e a k } } r e t u r n   b } } f u n c t i o n   C ( a , b , c ) { c [ 0 ] . t y p e = a ; r e t u r n   d . e v e n t . h a n d l e . a p p l y ( b , c ) } f u n c t i o n   w ( ) { r e t u r n ! 0 } f u n c t i o n   v ( ) { r e t u r n ! 1 } f u n c t i o n   f ( a , c , f ) { i f ( f = = = b & & a . n o d e T y p e = = = 1 ) { f = a . g e t A t t r i b u t e ( " d a t a - " + c ) ; i f ( t y p e o f   f = = = " s t r i n g " ) { t r y { f = f = = = " t r u e " ? ! 0 : f = = = " f a l s e " ? ! 1 : f = = = " n u l l " ? n u l l : d . i s N a N ( f ) ? e . t e s t ( f ) ? d . p a r s e J S O N ( f ) : f : p a r s e F l o a t ( f ) } c a t c h ( g ) { } d . d a t a ( a , c , f ) } e l s e   f = b } r e t u r n   f } v a r   c = a . d o c u m e n t , d = f u n c t i o n ( ) { f u n c t i o n   I ( ) { i f ( ! d . i s R e a d y ) { t r y { c . d o c u m e n t E l e m e n t . d o S c r o l l ( " l e f t " ) } c a t c h ( a ) { s e t T i m e o u t ( I , 1 ) ; r e t u r n } d . r e a d y ( ) } } v a r   d = f u n c t i o n ( a , b ) { r e t u r n   n e w   d . f n . i n i t ( a , b , g ) } , e = a . j Q u e r y , f = a . $ , g , h = / ^ ( ? : [ ^ < ] * ( < [ \ w \ W ] + > ) [ ^ > ] * $ | # ( [ \ w \ - ] + ) $ ) / , i = / \ S / , j = / ^ \ s + / , k = / \ s + $ / , l = / \ d / , m = / ^ < ( \ w + ) \ s * \ / ? > ( ? : < \ / \ 1 > ) ? $ / , n = / ^ [ \ ] , : { } \ s ] * $ / , o = / \ \ ( ? : [ " \ \ \ / b f n r t ] | u [ 0 - 9 a - f A - F ] { 4 } ) / g , p = / " [ ^ " \ \ \ n \ r ] * " | t r u e | f a l s e | n u l l | - ? \ d + ( ? : \ . \ d * ) ? ( ? : [ e E ] [ + \ - ] ? \ d + ) ? / g , q = / ( ? : ^ | : | , ) ( ? : \ s * \ [ ) + / g , r = / ( w e b k i t ) [   \ / ] ( [ \ w . ] + ) / , s = / ( o p e r a ) ( ? : . * v e r s i o n ) ? [   \ / ] ( [ \ w . ] + ) / , t = / ( m s i e )   ( [ \ w . ] + ) / , u = / ( m o z i l l a ) ( ? : . * ?   r v : ( [ \ w . ] + ) ) ? / , v = n a v i g a t o r . u s e r A g e n t , w , x = ! 1 , y , z = " t h e n   d o n e   f a i l   i s R e s o l v e d   i s R e j e c t e d   p r o m i s e " . s p l i t ( "   " ) , A , B = O b j e c t . p r o t o t y p e . t o S t r i n g , C = 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 , D = A r r a y . p r o t o t y p e . p u s h , E = A r r a y . p r o t o t y p e . s l i c e , F = S t r i n g . p r o t o t y p e . t r i m , G = A r r a y . p r o t o t y p e . i n d e x O f , H = { } ; d . f n = d . p r o t o t y p e = { c o n s t r u c t o r : d , i n i t : f u n c t i o n ( a , e , f ) { v a r   g , i , j , k ; i f ( ! a ) r e t u r n   t h i s ; i f ( a . n o d e T y p e ) { t h i s . c o n t e x t = t h i s [ 0 ] = a , t h i s . l e n g t h = 1 ; r e t u r n   t h i s } i f ( a = = = " b o d y " & & ! e & & c . b o d y ) { t h i s . c o n t e x t = c , t h i s [ 0 ] = c . b o d y , t h i s . s e l e c t o r = " b o d y " , t h i s . l e n g t h = 1 ; r e t u r n   t h i s } i f ( t y p e o f   a = = = " s t r i n g " ) { g = h . e x e c ( a ) ; i f ( ! g | | ! g [ 1 ] & & e ) r e t u r n ! e | | e . j q u e r y ? ( e | | f ) . f i n d ( a ) : t h i s . c o n s t r u c t o r ( e ) . f i n d ( a ) ; i f ( g [ 1 ] ) { e = e   i n s t a n c e o f   d ? e [ 0 ] : e , k = e ? e . o w n e r D o c u m e n t | | e : c , j = m . e x e c ( a ) , j ? d . i s P l a i n O b j e c t ( e ) ? ( a = [ c . c r e a t e E l e m e n t ( j [ 1 ] ) ] , d . f n . a t t r . c a l l ( a , e , ! 0 ) ) : a = [ k . c r e a t e E l e m e n t ( j [ 1 ] ) ] : ( j = d . b u i l d F r a g m e n t ( [ g [ 1 ] ] , [ k ] ) , a = ( j . c a c h e a b l e ? d . c l o n e ( j . f r a g m e n t ) : j . f r a g m e n t ) . c h i l d N o d e s ) ; r e t u r n   d . m e r g e ( t h i s , a ) } i = c . g e t E l e m e n t B y I d ( g [ 2 ] ) ; i f ( i & & i . p a r e n t N o d e ) { i f ( i . i d ! = = g [ 2 ] ) r e t u r n   f . f i n d ( a ) ; t h i s . l e n g t h = 1 , t h i s [ 0 ] = i } t h i s . c o n t e x t = c , t h i s . s e l e c t o r = a ; r e t u r n   t h i s } i f ( d . i s F u n c t i o n ( a ) ) r e t u r n   f . r e a d y ( a ) ; a . s e l e c t o r ! = = b & & ( t h i s . s e l e c t o r = a . s e l e c t o r , t h i s . c o n t e x t = a . c o n t e x t ) ; r e t u r n   d . m a k e A r r a y ( a , t h i s ) } , s e l e c t o r : " " , j q u e r y : " 1 . 5 " , l e n g t h : 0 , s i z e : f u n c t i o n ( ) { r e t u r n   t h i s . l e n g t h } , t o A r r a y : f u n c t i o n ( ) { r e t u r n   E . c a l l ( t h i s , 0 ) } , g e t : f u n c t i o n ( a ) { r e t u r n   a = = n u l l ? t h i s . t o A r r a y ( ) : a < 0 ? t h i s [ t h i s . l e n g t h + a ] : t h i s [ a ] } , p u s h S t a c k : f u n c t i o n ( a , b , c ) { v a r   e = t h i s . c o n s t r u c t o r ( ) ; d . i s A r r a y ( a ) ? D . a p p l y ( e , a ) : d . m e r g e ( e , a ) , e . p r e v O b j e c t = t h i s , e . c o n t e x t = t h i s . c o n t e x t , b = = = " f i n d " ? e . s e l e c t o r = t h i s . s e l e c t o r + ( t h i s . s e l e c t o r ? "   " : " " ) + c : b & & ( e . s e l e c t o r = t h i s . s e l e c t o r + " . " + b + " ( " + c + " ) " ) ; r e t u r n   e } , e a c h : f u n c t i o n ( a , b ) { r e t u r n   d . e a c h ( t h i s , a , b ) } , r e a d y : f u n c t i o n ( a ) { d . b i n d R e a d y ( ) , y . d o n e ( a ) ; r e t u r n   t h i s } , e q : f u n c t i o n ( a ) { r e t u r n   a = = = - 1 ? t h i s . s l i c e ( a ) : t h i s . s l i c e ( a , + a + 1 ) } , f i r s t : f u n c t i o n ( ) { r e t u r n   t h i s . e q ( 0 ) } , l a s t : f u n c t i o n ( ) { r e t u r n   t h i s . e q ( - 1 ) } , s l i c e : f u n c t i o n ( ) { r e t u r n   t h i s . p u s h S t a c k ( E . a p p l y ( t h i s , a r g u m e n t s ) , " s l i c e " , E . c a l l ( a r g u m e n t s ) . j o i n ( " , " ) ) } , m a p : f u n c t i o n ( a ) { r e t u r n   t h i s . p u s h S t a c k ( d . m a p ( t h i s , f u n c t i o n ( b , c ) { r e t u r n   a . c a l l ( b , c , b ) } ) ) } , e n d : f u n c t i o n ( ) { r e t u r n   t h i s . p r e v O b j e c t | | t h i s . c o n s t r u c t o r ( n u l l ) } , p u s h : D , s o r t : [ ] . s o r t , s p l i c e : [ ] . s p l i c e } , d . f n . i n i t . p r o t o t y p e = d . f n , d . e x t e n d = d . f n . e x t e n d = f u n c t i o n ( ) { v a r   a , c , e , f , g , h , i = a r g u m e n t s [ 0 ] | | { } , j = 1 , k = a r g u m e n t s . l e n g t h , l = ! 1 ; t y p e o f   i = = = " b o o l e a n " & & ( l = i , i = a r g u m e n t s [ 1 ] | | { } , j = 2 ) , t y p e o f   i ! = = " o b j e c t " & & ! d . i s F u n c t i o n ( i ) & & ( i = { } ) , k = = = j & & ( i = t h i s , - - j ) ; f o r ( ; j < k ; j + + ) i f ( ( a = a r g u m e n t s [ j ] ) ! = n u l l ) f o r ( c   i n   a ) { e = i [ c ] , f = a [ c ] ; i f ( i = = = f ) c o n t i n u e ; l & & f & & ( d . i s P l a i n O b j e c t ( f ) | | ( g = d . i s A r r a y ( f ) ) ) ? ( g ? ( g = ! 1 , h = e & & d . i s A r r a y ( e ) ? e : [ ] ) : h = e & & d . i s P l a i n O b j e c t ( e ) ? e : { } , i [ c ] = d . e x t e n d ( l , h , f ) ) : f ! = = b & & ( i [ c ] = f ) } r e t u r n   i } , d . e x t e n d ( { n o C o n f l i c t : f u n c t i o n ( b ) { a . $ = f , b & & ( a . j Q u e r y = e ) ; r e t u r n   d } , i s R e a d y : ! 1 , r e a d y W a i t : 1 , r e a d y : f u n c t i o n ( a ) { a = = = ! 0 & & d . r e a d y W a i t - - ; i f ( ! d . r e a d y W a i t | | a ! = = ! 0 & & ! d . i s R e a d y ) { i f ( ! c . b o d y ) r e t u r n   s e t T i m e o u t ( d . r e a d y , 1 ) ; d . i s R e a d y = ! 0 ; i f ( a ! = = ! 0 & & - - d . r e a d y W a i t > 0 ) r e t u r n ; y . r e s o l v e W i t h ( c , [ d ] ) , d . f n . t r i g g e r & & d ( c ) . t r i g g e r ( " r e a d y " ) . u n b i n d ( " r e a d y " ) } } , b i n d R e a d y : f u n c t i o n ( ) { i f ( ! x ) { x = ! 0 ; i f ( c . r e a d y S t a t e = = = " c o m p l e t e " ) r e t u r n   s e t T i m e o u t ( d . r e a d y , 1 ) ; i f ( c . a d d E v e n t L i s t e n e r ) c . a d d E v e n t L i s t e n e r ( " D O M C o n t e n t L o a d e d " , A , ! 1 ) , a . a d d E v e n t L i s t e n e r ( " l o a d " , d . r e a d y , ! 1 ) ; e l s e   i f ( c . a t t a c h E v e n t ) { c . a t t a c h E v e n t ( " o n r e a d y s t a t e c h a n g e " , A ) , a . a t t a c h E v e n t ( " o n l o a d " , d . r e a d y ) ; v a r   b = ! 1 ; t r y { b = a . f r a m e E l e m e n t = = n u l l } c a t c h ( e ) { } c . d o c u m e n t E l e m e n t . d o S c r o l l & & b & & I ( ) } } } , i s F u n c t i o n : f u n c t i o n ( a ) { r e t u r n   d . t y p e ( a ) = = = " f u n c t i o n " } , i s A r r a y : A r r a y . i s A r r a y | | f u n c t i o n ( a ) { r e t u r n   d . t y p e ( a ) = = = " a r r a y " } , i s W i n d o w : f u n c t i o n ( a ) { r e t u r n   a & & t y p e o f   a = = = " o b j e c t " & & " s e t I n t e r v a l " i n   a } , i s N a N : f u n c t i o n ( a ) { r e t u r n   a = = n u l l | | ! l . t e s t ( a ) | | i s N a N ( a ) } , t y p e : f u n c t i o n ( a ) { r e t u r n   a = = n u l l ? S t r i n g ( a ) : H [ B . c a l l ( a ) ] | | " o b j e c t " } , i s P l a i n O b j e c t : f u n c t i o n ( a ) { i f ( ! a | | d . t y p e ( a ) ! = = " o b j e c t " | | a . n o d e T y p e | | d . i s W i n d o w ( a ) ) r e t u r n ! 1 ; i f ( a . c o n s t r u c t o r & & ! C . c a l l ( a , " c o n s t r u c t o r " ) & & ! C . c a l l ( a . c o n s t r u c t o r . p r o t o t y p e , " i s P r o t o t y p e O f " ) ) r e t u r n ! 1 ; v a r   c ; f o r ( c   i n   a ) { } r e t u r n   c = = = b | | C . c a l l ( a , c ) } , i s E m p t y O b j e c t : f u n c t i o n ( a ) { f o r ( v a r   b   i n   a ) r e t u r n ! 1 ; r e t u r n ! 0 } , e r r o r : f u n c t i o n ( a ) { t h r o w   a } , p a r s e J S O N : f u n c t i o n ( b ) { i f ( t y p e o f   b ! = = " s t r i n g " | | ! b ) r e t u r n   n u l l ; b = d . t r i m ( b ) ; i f ( n . t e s t ( b . r e p l a c e ( o , " @ " ) . r e p l a c e ( p , " ] " ) . r e p l a c e ( q , " " ) ) ) r e t u r n   a . J S O N & & a . J S O N . p a r s e ? a . J S O N . p a r s e ( b ) : ( n e w   F u n c t i o n ( " r e t u r n   " + b ) ) ( ) ; d . e r r o r ( " I n v a l i d   J S O N :   " + b ) } , p a r s e X M L : f u n c t i o n ( b , c , e ) { a . D O M P a r s e r ? ( e = n e w   D O M P a r s e r , c = e . p a r s e F r o m S t r i n g ( b , " t e x t / x m l " ) ) : ( c = n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L D O M " ) , c . a s y n c = " f a l s e " , c . l o a d X M L ( b ) ) , e = c . d o c u m e n t E l e m e n t , ( ! e | | ! e . n o d e N a m e | | e . n o d e N a m e = = = " p a r s e r e r r o r " ) & & d . e r r o r ( " I n v a l i d   X M L :   " + b ) ; r e t u r n   c } , n o o p : f u n c t i o n ( ) { } , g l o b a l E v a l : f u n c t i o n ( a ) { i f ( a & & i . t e s t ( a ) ) { v a r   b = c . 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 . d o c u m e n t E l e m e n t , e = c . c r e a t e E l e m e n t ( " s c r i p t " ) ; e . t y p e = " t e x t / j a v a s c r i p t " , d . s u p p o r t . s c r i p t E v a l ( ) ? e . a p p e n d C h i l d ( c . c r e a t e T e x t N o d e ( a ) ) : e . t e x t = a , b . i n s e r t B e f o r e ( e , b . f i r s t C h i l d ) , b . r e m o v e C h i l d ( e ) } } , n o d e N a m e : f u n c t i o n ( a , b ) { r e t u r n   a . n o d e N a m e & & a . n o d e N a m e . t o U p p e r C a s e ( ) = = = b . t o U p p e r C a s e ( ) } , e a c h : f u n c t i o n ( a , c , e ) { v a r   f , g = 0 , h = a . l e n g t h , i = h = = = b | | d . i s F u n c t i o n ( a ) ; i f ( e ) { i f ( i ) { f o r ( f   i n   a ) i f ( c . a p p l y ( a [ f ] , e ) = = = ! 1 ) b r e a k } e l s e   f o r ( ; g < h ; ) i f ( c . a p p l y ( a [ g + + ] , e ) = = = ! 1 ) b r e a k } e l s e   i f ( i ) { f o r ( f   i n   a ) i f ( c . c a l l ( a [ f ] , f , a [ f ] ) = = = ! 1 ) b r e a k } e l s e   f o r ( v a r   j = a [ 0 ] ; g < h & & c . c a l l ( j , g , j ) ! = = ! 1 ; j = a [ + + g ] ) { } r e t u r n   a } , t r i m : F ? f u n c t i o n ( a ) { r e t u r n   a = = n u l l ? " " : F . c a l l ( a ) } : f u n c t i o n ( a ) { r e t u r n   a = = n u l l ? " " : ( a + " " ) . r e p l a c e ( j , " " ) . r e p l a c e ( k , " " ) } , m a k e A r r a y : f u n c t i o n ( a , b ) { v a r   c = b | | [ ] ; i f ( a ! = n u l l ) { v a r   e = d . t y p e ( a ) ; a . l e n g t h = = n u l l | | e = = = " s t r i n g " | | e = = = " f u n c t i o n " | | e = = = " r e g e x p " | | d . i s W i n d o w ( a ) ? D . c a l l ( c , a ) : d . m e r g e ( c , a ) } r e t u r n   c } , i n A r r a y : f u n c t i o n ( a , b ) { i f ( b . i n d e x O f ) r e t u r n   b . i n d e x O f ( a ) ; f o r ( v a r   c = 0 , d = b . l e n g t h ; c < d ; c + + ) i f ( b [ c ] = = = a ) r e t u r n   c ; r e t u r n - 1 } , m e r g e : f u n c t i o n ( a , c ) { v a r   d = a . l e n g t h , e = 0 ; i f ( t y p e o f   c . l e n g t h = = = " n u m b e r " ) f o r ( v a r   f = c . l e n g t h ; e < f ; e + + ) a [ d + + ] = c [ e ] ; e l s e   w h i l e ( c [ e ] ! = = b ) a [ d + + ] = c [ e + + ] ; a . l e n g t h = d ; r e t u r n   a } , g r e p : f u n c t i o n ( a , b , c ) { v a r   d = [ ] , e ; c = ! ! c ; f o r ( v a r   f = 0 , g = a . l e n g t h ; f < g ; f + + ) e = ! ! b ( a [ f ] , f ) , c ! = = e & & d . p u s h ( a [ f ] ) ; r e t u r n   d } , m a p : f u n c t i o n ( a , b , c ) { v a r   d = [ ] , e ; f o r ( v a r   f = 0 , g = a . l e n g t h ; f < g ; f + + ) e = b ( a [ f ] , f , c ) , e ! = n u l l & & ( d [ d . l e n g t h ] = e ) ; r e t u r n   d . c o n c a t . a p p l y ( [ ] , d ) } , g u i d : 1 , p r o x y : f u n c t i o n ( a , c , e ) { a r g u m e n t s . l e n g t h = = = 2 & & ( t y p e o f   c = = = " s t r i n g " ? ( e = a , a = e [ c ] , c = b ) : c & & ! d . i s F u n c t i o n ( c ) & & ( e = c , c = b ) ) , ! c & & a & & ( c = f u n c t i o n ( ) { r e t u r n   a . a p p l y ( e | | t h i s , a r g u m e n t s ) } ) , a & & ( c . g u i d = a . g u i d = a . g u i d | | c . g u i d | | d . g u i d + + ) ; r e t u r n   c } , a c c e s s : f u n c t i o n ( a , c , e , f , g , h ) { v a r   i = a . l e n g t h ; i f ( t y p e o f   c = = = " o b j e c t " ) { f o r ( v a r   j   i n   c ) d . a c c e s s ( a , j , c [ j ] , f , g , e ) ; r e t u r n   a } i f ( e ! = = b ) { f = ! h & & f & & d . i s F u n c t i o n ( e ) ; f o r ( v a r   k = 0 ; k < i ; k + + ) g ( a [ k ] , c , f ? e . c a l l ( a [ k ] , k , g ( a [ k ] , c ) ) : e , h ) ; r e t u r n   a } r e t u r n   i ? g ( a [ 0 ] , c ) : b } , n o w : f u n c t i o n ( ) { r e t u r n ( n e w   D a t e ) . g e t T i m e ( ) } , _ D e f e r r e d : f u n c t i o n ( ) { v a r   a = [ ] , b , c , e , f = { d o n e : f u n c t i o n ( ) { i f ( ! e ) { v a r   c = a r g u m e n t s , g , h , i , j , k ; b & & ( k = b , b = 0 ) ; f o r ( g = 0 , h = c . l e n g t h ; g < h ; g + + ) i = c [ g ] , j = d . t y p e ( i ) , j = = = " a r r a y " ? f . d o n e . a p p l y ( f , i ) : j = = = " f u n c t i o n " & & a . p u s h ( i ) ; k & & f . r e s o l v e W i t h ( k [ 0 ] , k [ 1 ] ) } r e t u r n   t h i s } , r e s o l v e W i t h : f u n c t i o n ( d , f ) { i f ( ! e & & ! b & & ! c ) { c = 1 ; t r y { w h i l e ( a [ 0 ] ) a . s h i f t ( ) . a p p l y ( d , f ) } f i n a l l y { b = [ d , f ] , c = 0 } } r e t u r n   t h i s } , r e s o l v e : f u n c t i o n ( ) { f . r e s o l v e W i t h ( d . i s F u n c t i o n ( t h i s . p r o m i s e ) ? t h i s . p r o m i s e ( ) : t h i s , a r g u m e n t s ) ; r e t u r n   t h i s } , i s R e s o l v e d : f u n c t i o n ( ) { r e t u r n   c | | b } , c a n c e l : f u n c t i o n ( ) { e = 1 , a = [ ] ; r e t u r n   t h i s } } ; r e t u r n   f } , D e f e r r e d : f u n c t i o n ( a ) { v a r   b = d . _ D e f e r r e d ( ) , c = d . _ D e f e r r e d ( ) , e ; d . e x t e n d ( b , { t h e n : f u n c t i o n ( a , c ) { b . d o n e ( a ) . f a i l ( c ) ; r e t u r n   t h i s } , f a i l : c . d o n e , r e j e c t W i t h : c . r e s o l v e W i t h , r e j e c t : c . r e s o l v e , i s R e j e c t e d : c . i s R e s o l v e d , p r o m i s e : f u n c t i o n ( a , c ) { i f ( a = = n u l l ) { i f ( e ) r e t u r n   e ; e = a = { } } c = z . l e n g t h ; w h i l e ( c - - ) a [ z [ c ] ] = b [ z [ c ] ] ; r e t u r n   a } } ) , b . t h e n ( c . c a n c e l , b . c a n c e l ) , d e l e t e   b . c a n c e l , a & & a . c a l l ( b , b ) ; r e t u r n   b } , w h e n : f u n c t i o n ( a ) { v a r   b = a r g u m e n t s , c = b . l e n g t h , e = c < = 1 & & a & & d . i s F u n c t i o n ( a . p r o m i s e ) ? a : d . D e f e r r e d ( ) , f = e . p r o m i s e ( ) , g ; c > 1 ? ( g = A r r a y ( c ) , d . e a c h ( b , f u n c t i o n ( a , b ) { d . w h e n ( b ) . t h e n ( f u n c t i o n ( b ) { g [ a ] = a r g u m e n t s . l e n g t h > 1 ? E . c a l l ( a r g u m e n t s , 0 ) : b , - - c | | e . r e s o l v e W i t h ( f , g ) } , e . r e j e c t ) } ) ) : e ! = = a & & e . r e s o l v e ( a ) ; r e t u r n   f } , u a M a t c h : f u n c t i o n ( a ) { a = a . t o L o w e r C a s e ( ) ; v a r   b = r . e x e c ( a ) | | s . e x e c ( a ) | | t . e x e c ( a ) | | a . i n d e x O f ( " c o m p a t i b l e " ) < 0 & & u . e x e c ( a ) | | [ ] ; r e t u r n { b r o w s e r : b [ 1 ] | | " " , v e r s i o n : b [ 2 ] | | " 0 " } } , s u b : f u n c t i o n ( ) { f u n c t i o n   a ( b , c ) { r e t u r n   n e w   a . f n . i n i t ( b , c ) } d . e x t e n d ( ! 0 , a , t h i s ) , a . s u p e r c l a s s = t h i s , a . f n = a . p r o t o t y p e = t h i s ( ) , a . f n . c o n s t r u c t o r = a , a . s u b c l a s s = t h i s . s u b c l a s s , a . f n . i n i t = f u n c t i o n   b ( b , c ) { c & & c   i n s t a n c e o f   d & & ! ( c   i n s t a n c e o f   a ) & & ( c = a ( c ) ) ; r e t u r n   d . f n . i n i t . c a l l ( t h i s , b , c , e ) } , a . f n . i n i t . p r o t o t y p e = a . f n ; v a r   e = a ( c ) ; r e t u r n   a } , b r o w s e r : { } } ) , y = d . _ D e f e r r e d ( ) , d . e a c h ( " B o o l e a n   N u m b e r   S t r i n g   F u n c t i o n   A r r a y   D a t e   R e g E x p   O b j e c t " . s p l i t ( "   " ) , f u n c t i o n ( a , b ) { H [ " [ o b j e c t   " + b + " ] " ] = b . t o L o w e r C a s e ( ) } ) , w = d . u a M a t c h ( v ) , w . b r o w s e r & & ( d . b r o w s e r [ w . b r o w s e r ] = ! 0 , d . b r o w s e r . v e r s i o n = w . v e r s i o n ) , d . b r o w s e r . w e b k i t & & ( d . b r o w s e r . s a f a r i = ! 0 ) , G & & ( d . i n A r r a y = f u n c t i o n ( a , b ) { r e t u r n   G . c a l l ( b , a ) } ) , i . t e s t ( "   " ) & & ( j = / ^ [ \ s \ x A 0 ] + / , k = / [ \ s \ x A 0 ] + $ / ) , g = d ( c ) , c . a d d E v e n t L i s t e n e r ? A = f u n c t i o n ( ) { c . r e m o v e E v e n t L i s t e n e r ( " D O M C o n t e n t L o a d e d " , A , ! 1 ) , d . r e a d y ( ) } : c . a t t a c h E v e n t & & ( A = f u n c t i o n ( ) { c . r e a d y S t a t e = = = " c o m p l e t e " & & ( c . d e t a c h E v e n t ( " o n r e a d y s t a t e c h a n g e " , A ) , d . r e a d y ( ) ) } ) ; r e t u r n   a . j Q u e r y = a . $ = d } ( ) ; ( f u n c t i o n ( ) { d . s u p p o r t = { } ; v a r   b = c . c r e a t e E l e m e n t ( " d i v " ) ; b . s t y l e . d i s p l a y = " n o n e " , b . i n n e r H T M L = "       < l i n k / > < t a b l e > < / t a b l e > < a   h r e f = ' / a '   s t y l e = ' c o l o r : r e d ; f l o a t : l e f t ; o p a c i t y : . 5 5 ; ' > a < / a > < i n p u t   t y p e = ' c h e c k b o x ' / > " ; v a r   e = b . g e t E l e m e n t s B y T a g N a m e ( " * " ) , f = b . g e t E l e m e n t s B y T a g N a m e ( " a " ) [ 0 ] , g = c . c r e a t e E l e m e n t ( " s e l e c t " ) , h = g . a p p e n d C h i l d ( c . c r e a t e E l e m e n t ( " o p t i o n " ) ) ; i f ( e & & e . l e n g t h & & f ) { d . s u p p o r t = { l e a d i n g W h i t e s p a c e : b . f i r s t C h i l d . n o d e T y p e = = = 3 , t b o d y : ! b . g e t E l e m e n t s B y T a g N a m e ( " t b o d y " ) . l e n g t h , h t m l S e r i a l i z e : ! ! b . g e t E l e m e n t s B y T a g N a m e ( " l i n k " ) . l e n g t h , s t y l e : / r e d / . t e s t ( f . g e t A t t r i b u t e ( " s t y l e " ) ) , h r e f N o r m a l i z e d : f . g e t A t t r i b u t e ( " h r e f " ) = = = " / a " , o p a c i t y : / ^ 0 . 5 5 $ / . t e s t ( f . s t y l e . o p a c i t y ) , c s s F l o a t : ! ! f . s t y l e . c s s F l o a t , c h e c k O n : b . g e t E l e m e n t s B y T a g N a m e ( " i n p u t " ) [ 0 ] . v a l u e = = = " o n " , o p t S e l e c t e d : h . s e l e c t e d , d e l e t e E x p a n d o : ! 0 , o p t D i s a b l e d : ! 1 , c h e c k C l o n e : ! 1 , _ s c r i p t E v a l : n u l l , n o C l o n e E v e n t : ! 0 , b o x M o d e l : n u l l , i n l i n e B l o c k N e e d s L a y o u t : ! 1 , s h r i n k W r a p B l o c k s : ! 1 , r e l i a b l e H i d d e n O f f s e t s : ! 0 } , g . d i s a b l e d = ! 0 , d . s u p p o r t . o p t D i s a b l e d = ! h . d i s a b l e d , d . s u p p o r t . s c r i p t E v a l = f u n c t i o n ( ) { i f ( d . s u p p o r t . _ s c r i p t E v a l = = = n u l l ) { v a r   b = c . d o c u m e n t E l e m e n t , e = c . c r e a t e E l e m e n t ( " s c r i p t " ) , f = " s c r i p t " + d . n o w ( ) ; e . t y p e = " t e x t / j a v a s c r i p t " ; t r y { e . a p p e n d C h i l d ( c . c r e a t e T e x t N o d e ( " w i n d o w . " + f + " = 1 ; " ) ) } c a t c h ( g ) { } b . i n s e r t B e f o r e ( e , b . f i r s t C h i l d ) , a [ f ] ? ( d . s u p p o r t . _ s c r i p t E v a l = ! 0 , d e l e t e   a [ f ] ) : d . s u p p o r t . _ s c r i p t E v a l = ! 1 , b . r e m o v e C h i l d ( e ) , b = e = f = n u l l } r e t u r n   d . s u p p o r t . _ s c r i p t E v a l } ; t r y { d e l e t e   b . t e s t } c a t c h ( i ) { d . s u p p o r t . d e l e t e E x p a n d o = ! 1 } b . a t t a c h E v e n t & & b . f i r e E v e n t & & ( b . a t t a c h E v e n t ( " o n c l i c k " , f u n c t i o n   j ( ) { d . s u p p o r t . n o C l o n e E v e n t = ! 1 , b . d e t a c h E v e n t ( " o n c l i c k " , j ) } ) , b . c l o n e N o d e ( ! 0 ) . f i r e E v e n t ( " o n c l i c k " ) ) , b = c . c r e a t e E l e m e n t ( " d i v " ) , b . i n n e r H T M L = " < i n p u t   t y p e = ' r a d i o '   n a m e = ' r a d i o t e s t '   c h e c k e d = ' c h e c k e d ' / > " ; v a r   k = c . c r e a t e D o c u m e n t F r a g m e n t ( ) ; k . a p p e n d C h i l d ( b . f i r s t C h i l d ) , d . s u p p o r t . c h e c k C l o n e = k . c l o n e N o d e ( ! 0 ) . c l o n e N o d e ( ! 0 ) . l a s t C h i l d . c h e c k e d , d ( f u n c t i o n ( ) { v a r   a = c . c r e a t e E l e m e n t ( " d i v " ) , b = c . g e t E l e m e n t s B y T a g N a m e ( " b o d y " ) [ 0 ] ; i f ( b ) { a . s t y l e . w i d t h = a . s t y l e . p a d d i n g L e f t = " 1 p x " , b . a p p e n d C h i l d ( a ) , d . b o x M o d e l = d . s u p p o r t . b o x M o d e l = a . o f f s e t W i d t h = = = 2 , " z o o m " i n   a . s t y l e & & ( a . s t y l e . d i s p l a y = " i n l i n e " , a . s t y l e . z o o m = 1 , d . s u p p o r t . i n l i n e B l o c k N e e d s L a y o u t = a . o f f s e t W i d t h = = = 2 , a . s t y l e . d i s p l a y = " " , a . i n n e r H T M L = " < d i v   s t y l e = ' w i d t h : 4 p x ; ' > < / d i v > " , d . s u p p o r t . s h r i n k W r a p B l o c k s = a . o f f s e t W i d t h ! = = 2 ) , a . i n n e r H T M L = " < t a b l e > < t r > < t d   s t y l e = ' p a d d i n g : 0 ; b o r d e r : 0 ; d i s p l a y : n o n e ' > < / t d > < t d > t < / t d > < / t r > < / t a b l e > " ; v a r   e = a . g e t E l e m e n t s B y T a g N a m e ( " t d " ) ; d . s u p p o r t . r e l i a b l e H i d d e n O f f s e t s = e [ 0 ] . o f f s e t H e i g h t = = = 0 , e [ 0 ] . s t y l e . d i s p l a y = " " , e [ 1 ] . s t y l e . d i s p l a y = " n o n e " , d . s u p p o r t . r e l i a b l e H i d d e n O f f s e t s = d . s u p p o r t . r e l i a b l e H i d d e n O f f s e t s & & e [ 0 ] . o f f s e t H e i g h t = = = 0 , a . i n n e r H T M L = " " , b . r e m o v e C h i l d ( a ) . s t y l e . d i s p l a y = " n o n e " , a = e = n u l l } } ) ; v a r   l = f u n c t i o n ( a ) { v a r   b = c . c r e a t e E l e m e n t ( " d i v " ) ; a = " o n " + a ; i f ( ! b . a t t a c h E v e n t ) r e t u r n ! 0 ; v a r   d = a   i n   b ; d | | ( b . s e t A t t r i b u t e ( a , " r e t u r n ; " ) , d = t y p e o f   b [ a ] = = = " f u n c t i o n " ) , b = n u l l ; r e t u r n   d } ; d . s u p p o r t . s u b m i t B u b b l e s = l ( " s u b m i t " ) , d . s u p p o r t . c h a n g e B u b b l e s = l ( " c h a n g e " ) , b = e = f = n u l l } } ) ( ) ; v a r   e = / ^ ( ? : \ { . * \ } | \ [ . * \ ] ) $ / ; d . e x t e n d ( { c a c h e : { } , u u i d : 0 , e x p a n d o : " j Q u e r y " + ( d . f n . j q u e r y + M a t h . r a n d o m ( ) ) . r e p l a c e ( / \ D / g , " " ) , n o D a t a : { e m b e d : ! 0 , o b j e c t : " c l s i d : D 2 7 C D B 6 E - A E 6 D - 1 1 c f - 9 6 B 8 - 4 4 4 5 5 3 5 4 0 0 0 0 " , a p p l e t : ! 0 } , h a s D a t a : f u n c t i o n ( a ) { a = a . n o d e T y p e ? d . c a c h e [ a [ d . e x p a n d o ] ] : a [ d . e x p a n d o ] ; r e t u r n ! ! a & & ! d . i s E m p t y O b j e c t ( a ) } , d a t a : f u n c t i o n ( a , c , e , f ) { i f ( d . a c c e p t D a t a ( a ) ) { v a r   g = d . e x p a n d o , h = t y p e o f   c = = = " s t r i n g " , i , j = a . n o d e T y p e , k = j ? d . c a c h e : a , l = j ? a [ d . e x p a n d o ] : a [ d . e x p a n d o ] & & d . e x p a n d o ; i f ( ( ! l | | f & & l & & ! k [ l ] [ g ] ) & & h & & e = = = b ) r e t u r n ; l | | ( j ? a [ d . e x p a n d o ] = l = + + d . u u i d : l = d . e x p a n d o ) , k [ l ] | | ( k [ l ] = { } ) , t y p e o f   c = = = " o b j e c t " & & ( f ? k [ l ] [ g ] = d . e x t e n d ( k [ l ] [ g ] , c ) : k [ l ] = d . e x t e n d ( k [ l ] , c ) ) , i = k [ l ] , f & & ( i [ g ] | | ( i [ g ] = { } ) , i = i [ g ] ) , e ! = = b & & ( i [ c ] = e ) ; i f ( c = = = " e v e n t s " & & ! i [ c ] ) r e t u r n   i [ g ] & & i [ g ] . e v e n t s ; r e t u r n   h ? i [ c ] : i } } , r e m o v e D a t a : f u n c t i o n ( b , c , e ) { i f ( d . a c c e p t D a t a ( b ) ) { v a r   f = d . e x p a n d o , g = b . n o d e T y p e , h = g ? d . c a c h e : b , i = g ? b [ d . e x p a n d o ] : d . e x p a n d o ; i f ( ! h [ i ] ) r e t u r n ; i f ( c ) { v a r   j = e ? h [ i ] [ f ] : h [ i ] ; i f ( j ) { d e l e t e   j [ c ] ; i f ( ! d . i s E m p t y O b j e c t ( j ) ) r e t u r n } } i f ( e ) { d e l e t e   h [ i ] [ f ] ; i f ( ! d . i s E m p t y O b j e c t ( h [ i ] ) ) r e t u r n } v a r   k = h [ i ] [ f ] ; d . s u p p o r t . d e l e t e E x p a n d o | | h ! = a ? d e l e t e   h [ i ] : h [ i ] = n u l l , k ? ( h [ i ] = { } , h [ i ] [ f ] = k ) : g & & ( d . s u p p o r t . d e l e t e E x p a n d o ? d e l e t e   b [ d . e x p a n d o ] : b . r e m o v e A t t r i b u t e ? b . r e m o v e A t t r i b u t e ( d . e x p a n d o ) : b [ d . e x p a n d o ] = n u l l ) } } , _ d a t a : f u n c t i o n ( a , b , c ) { r e t u r n   d . d a t a ( a , b , c , ! 0 ) } , a c c e p t D a t a : f u n c t i o n ( a ) { i f ( a . n o d e N a m e ) { v a r   b = d . n o D a t a [ a . n o d e N a m e . t o L o w e r C a s e ( ) ] ; i f ( b ) r e t u r n   b ! = = ! 0 & & a . g e t A t t r i b u t e ( " c l a s s i d " ) = = = b } r e t u r n ! 0 } } ) , d . f n . e x t e n d ( { d a t a : f u n c t i o n ( a , c ) { v a r   e = n u l l ; i f ( t y p e o f   a = = = " u n d e f i n e d " ) { i f ( t h i s . l e n g t h ) { e = d . d a t a ( t h i s [ 0 ] ) ; i f ( t h i s [ 0 ] . n o d e T y p e = = = 1 ) { v a r   g = t h i s [ 0 ] . a t t r i b u t e s , h ; f o r ( v a r   i = 0 , j = g . l e n g t h ; i < j ; i + + ) h = g [ i ] . n a m e , h . i n d e x O f ( " d a t a - " ) = = = 0 & & ( h = h . s u b s t r ( 5 ) , f ( t h i s [ 0 ] , h , e [ h ] ) ) } } r e t u r n   e } i f ( t y p e o f   a = = = " o b j e c t " ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { d . d a t a ( t h i s , a ) } ) ; v a r   k = a . s p l i t ( " . " ) ; k [ 1 ] = k [ 1 ] ? " . " + k [ 1 ] : " " ; i f ( c = = = b ) { e = t h i s . t r i g g e r H a n d l e r ( " g e t D a t a " + k [ 1 ] + " ! " , [ k [ 0 ] ] ) , e = = = b & & t h i s . l e n g t h & & ( e = d . d a t a ( t h i s [ 0 ] , a ) , e = f ( t h i s [ 0 ] , a , e ) ) ; r e t u r n   e = = = b & & k [ 1 ] ? t h i s . d a t a ( k [ 0 ] ) : e } r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   b = d ( t h i s ) , e = [ k [ 0 ] , c ] ; b . t r i g g e r H a n d l e r ( " s e t D a t a " + k [ 1 ] + " ! " , e ) , d . d a t a ( t h i s , a , c ) , b . t r i g g e r H a n d l e r ( " c h a n g e D a t a " + k [ 1 ] + " ! " , e ) } ) } , r e m o v e D a t a : f u n c t i o n ( a ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { d . r e m o v e D a t a ( t h i s , a ) } ) } } ) , d . e x t e n d ( { q u e u e : f u n c t i o n ( a , b , c ) { i f ( a ) { b = ( b | | " f x " ) + " q u e u e " ; v a r   e = d . _ d a t a ( a , b ) ; i f ( ! c ) r e t u r n   e | | [ ] ; ! e | | d . i s A r r a y ( c ) ? e = d . _ d a t a ( a , b , d . m a k e A r r a y ( c ) ) : e . p u s h ( c ) ; r e t u r n   e } } , d e q u e u e : f u n c t i o n ( a , b ) { b = b | | " f x " ; v a r   c = d . q u e u e ( a , b ) , e = c . s h i f t ( ) ; e = = = " i n p r o g r e s s " & & ( e = c . s h i f t ( ) ) , e & & ( b = = = " f x " & & c . u n s h i f t ( " i n p r o g r e s s " ) , e . c a l l ( a , f u n c t i o n ( ) { d . d e q u e u e ( a , b ) } ) ) , c . l e n g t h | | d . r e m o v e D a t a ( a , b + " q u e u e " , ! 0 ) } } ) , d . f n . e x t e n d ( { q u e u e : f u n c t i o n ( a , c ) { t y p e o f   a ! = = " s t r i n g " & & ( c = a , a = " f x " ) ; i f ( c = = = b ) r e t u r n   d . q u e u e ( t h i s [ 0 ] , a ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { v a r   e = d . q u e u e ( t h i s , a , c ) ; a = = = " f x " & & e [ 0 ] ! = = " i n p r o g r e s s " & & d . d e q u e u e ( t h i s , a ) } ) } , d e q u e u e : f u n c t i o n ( a ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { d . d e q u e u e ( t h i s , a ) } ) } , d e l a y : f u n c t i o n ( a , b ) { a = d . f x ? d . f x . s p e e d s [ a ] | | a : a , b = b | | " f x " ; r e t u r n   t h i s . q u e u e ( b , f u n c t i o n ( ) { v a r   c = t h i s ; s e t T i m e o u t ( f u n c t i o n ( ) { d . d e q u e u e ( c , b ) } , a ) } ) } , c l e a r Q u e u e : f u n c t i o n ( a ) { r e t u r n   t h i s . q u e u e ( a | | " f x " , [ ] ) } } ) ; v a r   g = / [ \ n \ t \ r ] / g , h = / \ s + / , i = / \ r / g , j = / ^ ( ? : h r e f | s r c | s t y l e ) $ / , k = / ^ ( ? : b u t t o n | i n p u t ) $ / i , l = / ^ ( ? : b u t t o n | i n p u t | o b j e c t | s e l e c t | t e x t a r e a ) $ / i , m = / ^ a ( ? : r e a ) ? $ / i , n = / ^ ( ? : r a d i o | c h e c k b o x ) $ / i ; d . p r o p s = { " f o r " : " h t m l F o r " , " c l a s s " : " c l a s s N a m e " , r e a d o n l y : " r e a d O n l y " , m a x l e n g t h : " m a x L e n g t h " , c e l l s p a c i n g : " c e l l S p a c i n g " , r o w s p a n : " r o w S p a n " , c o l s p a n : " c o l S p a n " , t a b i n d e x : " t a b I n d e x " , u s e m a p : " u s e M a p " , f r a m e b o r d e r : " f r a m e B o r d e r " } , d . f n . e x t e n d ( { a t t r : f u n c t i o n ( a , b ) { r e t u r n   d . a c c e s s ( t h i s , a , b , ! 0 , d . a t t r ) } , r e m o v e A t t r : f u n c t i o n ( a , b ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { d . a t t r ( t h i s , a , " " ) , t h i s . n o d e T y p e = = = 1 & & t h i s . r e m o v e A t t r i b u t e ( a ) } ) } , a d d C l a s s : f u n c t i o n ( a ) { i f ( d . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = d ( t h i s ) ; c . a d d C l a s s ( a . c a l l ( t h i s , b , c . a t t r ( " c l a s s " ) ) ) } ) ; i f ( a & & t y p e o f   a = = = " s t r i n g " ) { v a r   b = ( a | | " " ) . s p l i t ( h ) ; f o r ( v a r   c = 0 , e = t h i s . l e n g t h ; c < e ; c + + ) { v a r   f = t h i s [ c ] ; i f ( f . n o d e T y p e = = = 1 ) i f ( f . c l a s s N a m e ) { v a r   g = "   " + f . c l a s s N a m e + "   " , i = f . c l a s s N a m e ; f o r ( v a r   j = 0 , k = b . l e n g t h ; j < k ; j + + ) g . i n d e x O f ( "   " + b [ j ] + "   " ) < 0 & & ( i + = "   " + b [ j ] ) ; f . c l a s s N a m e = d . t r i m ( i ) } e l s e   f . c l a s s N a m e = a } } r e t u r n   t h i s } , r e m o v e C l a s s : f u n c t i o n ( a ) { i f ( d . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = d ( t h i s ) ; c . r e m o v e C l a s s ( a . c a l l ( t h i s , b , c . a t t r ( " c l a s s " ) ) ) } ) ; i f ( a & & t y p e o f   a = = = " s t r i n g " | | a = = = b ) { v a r   c = ( a | | " " ) . s p l i t ( h ) ; f o r ( v a r   e = 0 , f = t h i s . l e n g t h ; e < f ; e + + ) { v a r   i = t h i s [ e ] ; i f ( i . n o d e T y p e = = = 1 & & i . c l a s s N a m e ) i f ( a ) { v a r   j = ( "   " + i . c l a s s N a m e + "   " ) . r e p l a c e ( g , "   " ) ; f o r ( v a r   k = 0 , l = c . l e n g t h ; k < l ; k + + ) j = j . r e p l a c e ( "   " + c [ k ] + "   " , "   " ) ; i . c l a s s N a m e = d . t r i m ( j ) } e l s e   i . c l a s s N a m e = " " } } r e t u r n   t h i s } , t o g g l e C l a s s : f u n c t i o n ( a , b ) { v a r   c = t y p e o f   a , e = t y p e o f   b = = = " b o o l e a n " ; i f ( d . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( c ) { v a r   e = d ( t h i s ) ; e . t o g g l e C l a s s ( a . c a l l ( t h i s , c , e . a t t r ( " c l a s s " ) , b ) , b ) } ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { i f ( c = = = " s t r i n g " ) { v a r   f , g = 0 , i = d ( t h i s ) , j = b , k = a . s p l i t ( h ) ; w h i l e ( f = k [ g + + ] ) j = e ? j : ! i . h a s C l a s s ( f ) , i [ j ? " a d d C l a s s " : " r e m o v e C l a s s " ] ( f ) } e l s e   i f ( c = = = " u n d e f i n e d " | | c = = = " b o o l e a n " ) t h i s . c l a s s N a m e & & d . _ d a t a ( t h i s , " _ _ c l a s s N a m e _ _ " , t h i s . c l a s s N a m e ) , t h i s . c l a s s N a m e = t h i s . c l a s s N a m e | | a = = = ! 1 ? " " : d . _ d a t a ( t h i s , " _ _ c l a s s N a m e _ _ " ) | | " " } ) } , h a s C l a s s : f u n c t i o n ( a ) { v a r   b = "   " + a + "   " ; f o r ( v a r   c = 0 , d = t h i s . l e n g t h ; c < d ; c + + ) i f ( ( "   " + t h i s [ c ] . c l a s s N a m e + "   " ) . r e p l a c e ( g , "   " ) . i n d e x O f ( b ) > - 1 ) r e t u r n ! 0 ; r e t u r n ! 1 } , v a l : f u n c t i o n ( a ) { i f ( ! a r g u m e n t s . l e n g t h ) { v a r   c = t h i s [ 0 ] ; i f ( c ) { i f ( d . n o d e N a m e ( c , " o p t i o n " ) ) { v a r   e = c . a t t r i b u t e s . v a l u e ; r e t u r n ! e | | e . s p e c i f i e d ? c . v a l u e : c . t e x t } i f ( d . n o d e N a m e ( c , " s e l e c t " ) ) { v a r   f = c . s e l e c t e d I n d e x , g = [ ] , h = c . o p t i o n s , j = c . t y p e = = = " s e l e c t - o n e " ; i f ( f < 0 ) r e t u r n   n u l l ; f o r ( v a r   k = j ? f : 0 , l = j ? f + 1 : h . l e n g t h ; k < l ; k + + ) { v a r   m = h [ k ] ; i f ( m . s e l e c t e d & & ( d . s u p p o r t . o p t D i s a b l e d ? ! m . d i s a b l e d : m . g e t A t t r i b u t e ( " d i s a b l e d " ) = = = n u l l ) & & ( ! m . p a r e n t N o d e . d i s a b l e d | | ! d . n o d e N a m e ( m . p a r e n t N o d e , " o p t g r o u p " ) ) ) { a = d ( m ) . v a l ( ) ; i f ( j ) r e t u r n   a ; g . p u s h ( a ) } } r e t u r n   g } i f ( n . t e s t ( c . t y p e ) & & ! d . s u p p o r t . c h e c k O n ) r e t u r n   c . g e t A t t r i b u t e ( " v a l u e " ) = = = n u l l ? " o n " : c . v a l u e ; r e t u r n ( c . v a l u e | | " " ) . r e p l a c e ( i , " " ) } r e t u r n   b } v a r   o = d . i s F u n c t i o n ( a ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = d ( t h i s ) , e = a ; i f ( t h i s . n o d e T y p e = = = 1 ) { o & & ( e = a . c a l l ( t h i s , b , c . v a l ( ) ) ) , e = = n u l l ? e = " " : t y p e o f   e = = = " n u m b e r " ? e + = " " : d . i s A r r a y ( e ) & & ( e = d . m a p ( e , f u n c t i o n ( a ) { r e t u r n   a = = n u l l ? " " : a + " " } ) ) ; i f ( d . i s A r r a y ( e ) & & n . t e s t ( t h i s . t y p e ) ) t h i s . c h e c k e d = d . i n A r r a y ( c . v a l ( ) , e ) > = 0 ; e l s e   i f ( d . n o d e N a m e ( t h i s , " s e l e c t " ) ) { v a r   f = d . m a k e A r r a y ( e ) ; d ( " o p t i o n " , t h i s ) . e a c h ( f u n c t i o n ( ) { t h i s . s e l e c t e d = d . i n A r r a y ( d ( t h i s ) . v a l ( ) , f ) > = 0 } ) , f . l e n g t h | | ( t h i s . s e l e c t e d I n d e x = - 1 ) } e l s e   t h i s . v a l u e = e } } ) } } ) , d . e x t e n d ( { a t t r F n : { v a l : ! 0 , c s s : ! 0 , h t m l : ! 0 , t e x t : ! 0 , d a t a : ! 0 , w i d t h : ! 0 , h e i g h t : ! 0 , o f f s e t : ! 0 } , a t t r : f u n c t i o n ( a , c , e , f ) { i f ( ! a | | a . n o d e T y p e = = = 3 | | a . n o d e T y p e = = = 8 | | a . n o d e T y p e = = = 2 ) r e t u r n   b ; i f ( f & & c   i n   d . a t t r F n ) r e t u r n   d ( a ) [ c ] ( e ) ; v a r   g = a . n o d e T y p e ! = = 1 | | ! d . i s X M L D o c ( a ) , h = e ! = = b ; c = g & & d . p r o p s [ c ] | | c ; i f ( a . n o d e T y p e = = = 1 ) { v a r   i = j . t e s t ( c ) ; i f ( c = = = " s e l e c t e d " & & ! d . s u p p o r t . o p t S e l e c t e d ) { v a r   n = a . p a r e n t N o d e ; n & & ( n . s e l e c t e d I n d e x , n . p a r e n t N o d e & & n . p a r e n t N o d e . s e l e c t e d I n d e x ) } i f ( ( c   i n   a | | a [ c ] ! = = b ) & & g & & ! i ) { h & & ( c = = = " t y p e " & & k . t e s t ( a . n o d e N a m e ) & & a . p a r e n t N o d e & & d . e r r o r ( " t y p e   p r o p e r t y   c a n ' t   b e   c h a n g e d " ) , e = = = n u l l ? a . n o d e T y p e = = = 1 & & a . r e m o v e A t t r i b u t e ( c ) : a [ c ] = e ) ; i f ( d . n o d e N a m e ( a , " f o r m " ) & & a . g e t A t t r i b u t e N o d e ( c ) ) r e t u r n   a . g e t A t t r i b u t e N o d e ( c ) . n o d e V a l u e ; i f ( c = = = " t a b I n d e x " ) { v a r   o = a . g e t A t t r i b u t e N o d e ( " t a b I n d e x " ) ; r e t u r n   o & & o . s p e c i f i e d ? o . v a l u e : l . t e s t ( a . n o d e N a m e ) | | m . t e s t ( a . n o d e N a m e ) & & a . h r e f ? 0 : b } r e t u r n   a [ c ] } i f ( ! d . s u p p o r t . s t y l e & & g & & c = = = " s t y l e " ) { h & & ( a . s t y l e . c s s T e x t = " " + e ) ; r e t u r n   a . s t y l e . c s s T e x t } h & & a . s e t A t t r i b u t e ( c , " " + e ) ; i f ( ! a . a t t r i b u t e s [ c ] & & ( a . h a s A t t r i b u t e & & ! a . h a s A t t r i b u t e ( c ) ) ) r e t u r n   b ; v a r   p = ! d . s u p p o r t . h r e f N o r m a l i z e d & & g & & i ? a . g e t A t t r i b u t e ( c , 2 ) : a . g e t A t t r i b u t e ( c ) ; r e t u r n   p = = = n u l l ? b : p } h & & ( a [ c ] = e ) ; r e t u r n   a [ c ] } } ) ; v a r   o = / \ . ( . * ) $ / , p = / ^ ( ? : t e x t a r e a | i n p u t | s e l e c t ) $ / i , q = / \ . / g , r = /   / g , s = / [ ^ \ w \ s . | ` ] / g , t = f u n c t i o n ( a ) { r e t u r n   a . r e p l a c e ( s , " \ \ $ & " ) } , u = " e v e n t s " ; d . e v e n t = { a d d : f u n c t i o n ( c , e , f , g ) { i f ( c . n o d e T y p e ! = = 3 & & c . n o d e T y p e ! = = 8 ) { d . i s W i n d o w ( c ) & & ( c ! = = a & & ! c . f r a m e E l e m e n t ) & & ( c = a ) ; i f ( f = = = ! 1 ) f = v ; e l s e   i f ( ! f ) r e t u r n ; v a r   h , i ; f . h a n d l e r & & ( h = f , f = h . h a n d l e r ) , f . g u i d | | ( f . g u i d = d . g u i d + + ) ; v a r   j = d . _ d a t a ( c ) ; i f ( ! j ) r e t u r n ; v a r   k = j [ u ] , l = j . h a n d l e ; t y p e o f   k = = = " f u n c t i o n " ? ( l = k . h a n d l e , k = k . e v e n t s ) : k | | ( c . n o d e T y p e | | ( j [ u ] = j = f u n c t i o n ( ) { } ) , j . e v e n t s = k = { } ) , l | | ( j . h a n d l e = l = f u n c t i o n ( ) { r e t u r n   t y p e o f   d ! = = " u n d e f i n e d " & & ! d . e v e n t . t r i g g e r e d ? d . e v e n t . h a n d l e . a p p l y ( l . e l e m , a r g u m e n t s ) : b } ) , l . e l e m = c , e = e . s p l i t ( "   " ) ; v a r   m , n = 0 , o ; w h i l e ( m = e [ n + + ] ) { i = h ? d . e x t e n d ( { } , h ) : { h a n d l e r : f , d a t a : g } , m . i n d e x O f ( " . " ) > - 1 ? ( o = m . s p l i t ( " . " ) , m = o . s h i f t ( ) , i . n a m e s p a c e = o . s l i c e ( 0 ) . s o r t ( ) . j o i n ( " . " ) ) : ( o = [ ] , i . n a m e s p a c e = " " ) , i . t y p e = m , i . g u i d | | ( i . g u i d = f . g u i d ) ; v a r   p = k [ m ] , q = d . e v e n t . s p e c i a l [ m ] | | { } ; i f ( ! p ) { p = k [ m ] = [ ] ; i f ( ! q . s e t u p | | q . s e t u p . c a l l ( c , g , o , l ) = = = ! 1 ) c . a d d E v e n t L i s t e n e r ? c . a d d E v e n t L i s t e n e r ( m , l , ! 1 ) : c . a t t a c h E v e n t & & c . a t t a c h E v e n t ( " o n " + m , l ) } q . a d d & & ( q . a d d . c a l l ( c , i ) , i . h a n d l e r . g u i d | | ( i . h a n d l e r . g u i d = f . g u i d ) ) , p . p u s h ( i ) , d . e v e n t . g l o b a l [ m ] = ! 0 } c = n u l l } } , g l o b a l : { } , r e m o v e : f u n c t i o n ( a , c , e , f ) { i f ( a . n o d e T y p e ! = = 3 & & a . n o d e T y p e ! = = 8 ) { e = = = ! 1 & & ( e = v ) ; v a r   g , h , i , j , k = 0 , l , m , n , o , p , q , r , s = d . h a s D a t a ( a ) & & d . _ d a t a ( a ) , w = s & & s [ u ] ; i f ( ! s | | ! w ) r e t u r n ; t y p e o f   w = = = " f u n c t i o n " & & ( s = w , w = w . e v e n t s ) , c & & c . t y p e & & ( e = c . h a n d l e r , c = c . t y p e ) ; i f ( ! c | | t y p e o f   c = = = " s t r i n g " & & c . c h a r A t ( 0 ) = = = " . " ) { c = c | | " " ; f o r ( h   i n   w ) d . e v e n t . r e m o v e ( a , h + c ) ; r e t u r n } c = c . s p l i t ( "   " ) ; w h i l e ( h = c [ k + + ] ) { r = h , q = n u l l , l = h . i n d e x O f ( " . " ) < 0 , m = [ ] , l | | ( m = h . s p l i t ( " . " ) , h = m . s h i f t ( ) , n = n e w   R e g E x p ( " ( ^ | \ \ . ) " + d . m a p ( m . s l i c e ( 0 ) . s o r t ( ) , t ) . j o i n ( " \ \ . ( ? : . * \ \ . ) ? " ) + " ( \ \ . | $ ) " ) ) , p = w [ h ] ; i f ( ! p ) c o n t i n u e ; i f ( ! e ) { f o r ( j = 0 ; j < p . l e n g t h ; j + + ) { q = p [ j ] ; i f ( l | | n . t e s t ( q . n a m e s p a c e ) ) d . e v e n t . r e m o v e ( a , r , q . h a n d l e r , j ) , p . s p l i c e ( j - - , 1 ) } c o n t i n u e } o = d . e v e n t . s p e c i a l [ h ] | | { } ; f o r ( j = f | | 0 ; j < p . l e n g t h ; j + + ) { q = p [ j ] ; i f ( e . g u i d = = = q . g u i d ) { i f ( l | | n . t e s t ( q . n a m e s p a c e ) ) f = = n u l l & & p . s p l i c e ( j - - , 1 ) , o . r e m o v e & & o . r e m o v e . c a l l ( a , q ) ; i f ( f ! = n u l l ) b r e a k } } i f ( p . l e n g t h = = = 0 | | f ! = n u l l & & p . l e n g t h = = = 1 ) ( ! o . t e a r d o w n | | o . t e a r d o w n . c a l l ( a , m ) = = = ! 1 ) & & d . r e m o v e E v e n t ( a , h , s . h a n d l e ) , g = n u l l , d e l e t e   w [ h ] } i f ( d . i s E m p t y O b j e c t ( w ) ) { v a r   x = s . h a n d l e ; x & & ( x . e l e m = n u l l ) , d e l e t e   s . e v e n t s , d e l e t e   s . h a n d l e , t y p e o f   s = = = " f u n c t i o n " ? d . r e m o v e D a t a ( a , u , ! 0 ) : d . i s E m p t y O b j e c t ( s ) & & d . r e m o v e D a t a ( a , b , ! 0 ) } } } , t r i g g e r : f u n c t i o n ( a , c , e ) { v a r   f = a . t y p e | | a , g = a r g u m e n t s [ 3 ] ; i f ( ! g ) { a = t y p e o f   a = = = " o b j e c t " ? a [ d . e x p a n d o ] ? a : d . e x t e n d ( d . E v e n t ( f ) , a ) : d . E v e n t ( f ) , f . i n d e x O f ( " ! " ) > = 0 & & ( a . t y p e = f = f . s l i c e ( 0 , - 1 ) , a . e x c l u s i v e = ! 0 ) , e | | ( a . s t o p P r o p a g a t i o n ( ) , d . e v e n t . g l o b a l [ f ] & & d . e a c h ( d . c a c h e , f u n c t i o n ( ) { v a r   b = d . e x p a n d o , e = t h i s [ b ] ; e & & e . e v e n t s & & e . e v e n t s [ f ] & & d . e v e n t . t r i g g e r ( a , c , e . h a n d l e . e l e m ) } ) ) ; i f ( ! e | | e . n o d e T y p e = = = 3 | | e . n o d e T y p e = = = 8 ) r e t u r n   b ; a . r e s u l t = b , a . t a r g e t = e , c = d . m a k e A r r a y ( c ) , c . u n s h i f t ( a ) } a . c u r r e n t T a r g e t = e ; v a r   h = e . n o d e T y p e ? d . _ d a t a ( e , " h a n d l e " ) : ( d . _ d a t a ( e , u ) | | { } ) . h a n d l e ; h & & h . a p p l y ( e , c ) ; v a r   i = e . p a r e n t N o d e | | e . o w n e r D o c u m e n t ; t r y { e & & e . n o d e N a m e & & d . n o D a t a [ e . n o d e N a m e . t o L o w e r C a s e ( ) ] | | e [ " o n " + f ] & & e [ " o n " + f ] . a p p l y ( e , c ) = = = ! 1 & & ( a . r e s u l t = ! 1 , a . p r e v e n t D e f a u l t ( ) ) } c a t c h ( j ) { } i f ( ! a . i s P r o p a g a t i o n S t o p p e d ( ) & & i ) d . e v e n t . t r i g g e r ( a , c , i , ! 0 ) ; e l s e   i f ( ! a . i s D e f a u l t P r e v e n t e d ( ) ) { v a r   k , l = a . t a r g e t , m = f . r e p l a c e ( o , " " ) , n = d . n o d e N a m e ( l , " a " ) & & m = = = " c l i c k " , p = d . e v e n t . s p e c i a l [ m ] | | { } ; i f ( ( ! p . _ d e f a u l t | | p . _ d e f a u l t . c a l l ( e , a ) = = = ! 1 ) & & ! n & & ! ( l & & l . n o d e N a m e & & d . n o D a t a [ l . n o d e N a m e . t o L o w e r C a s e ( ) ] ) ) { t r y { l [ m ] & & ( k = l [ " o n " + m ] , k & & ( l [ " o n " + m ] = n u l l ) , d . e v e n t . t r i g g e r e d = ! 0 , l [ m ] ( ) ) } c a t c h ( q ) { } k & & ( l [ " o n " + m ] = k ) , d . e v e n t . t r i g g e r e d = ! 1 } } } , h a n d l e : f u n c t i o n ( c ) { v a r   e , f , g , h , i , j = [ ] , k = d . m a k e A r r a y ( a r g u m e n t s ) ; c = k [ 0 ] = d . e v e n t . f i x ( c | | a . e v e n t ) , c . c u r r e n t T a r g e t = t h i s , e = c . t y p e . i n d e x O f ( " . " ) < 0 & & ! c . e x c l u s i v e , e | | ( g = c . t y p e . s p l i t ( " . " ) , c . t y p e = g . s h i f t ( ) , j = g . s l i c e ( 0 ) . s o r t ( ) , h = n e w   R e g E x p ( " ( ^ | \ \ . ) " + j . j o i n ( " \ \ . ( ? : . * \ \ . ) ? " ) + " ( \ \ . | $ ) " ) ) , c . n a m e s p a c e = c . n a m e s p a c e | | j . j o i n ( " . " ) , i = d . _ d a t a ( t h i s , u ) , t y p e o f   i = = = " f u n c t i o n " & & ( i = i . e v e n t s ) , f = ( i | | { } ) [ c . t y p e ] ; i f ( i & & f ) { f = f . s l i c e ( 0 ) ; f o r ( v a r   l = 0 , m = f . l e n g t h ; l < m ; l + + ) { v a r   n = f [ l ] ; i f ( e | | h . t e s t ( n . n a m e s p a c e ) ) { c . h a n d l e r = n . h a n d l e r , c . d a t a = n . d a t a , c . h a n d l e O b j = n ; v a r   o = n . h a n d l e r . a p p l y ( t h i s , k ) ; o ! = = b & & ( c . r e s u l t = o , o = = = ! 1 & & ( c . p r e v e n t D e f a u l t ( ) , c . s t o p P r o p a g a t i o n ( ) ) ) ; i f ( c . i s I m m e d i a t e P r o p a g a t i o n S t o p p e d ( ) ) b r e a k } } } r e t u r n   c . r e s u l t } , p r o p s : " a l t K e y   a t t r C h a n g e   a t t r N a m e   b u b b l e s   b u t t o n   c a n c e l a b l e   c h a r C o d e   c l i e n t X   c l i e n t Y   c t r l K e y   c u r r e n t T a r g e t   d a t a   d e t a i l   e v e n t P h a s e   f r o m E l e m e n t   h a n d l e r   k e y C o d e   l a y e r X   l a y e r Y   m e t a K e y   n e w V a l u e   o f f s e t X   o f f s e t Y   p a g e X   p a g e Y   p r e v V a l u e   r e l a t e d N o d e   r e l a t e d T a r g e t   s c r e e n X   s c r e e n Y   s h i f t K e y   s r c E l e m e n t   t a r g e t   t o E l e m e n t   v i e w   w h e e l D e l t a   w h i c h " . s p l i t ( "   " ) , f i x : f u n c t i o n ( a ) { i f ( a [ d . e x p a n d o ] ) r e t u r n   a ; v a r   e = a ; a = d . E v e n t ( e ) ; f o r ( v a r   f = t h i s . p r o p s . l e n g t h , g ; f ; ) g = t h i s . p r o p s [ - - f ] , a [ g ] = e [ g ] ; a . t a r g e t | | ( a . t a r g e t = a . s r c E l e m e n t | | c ) , a . t a r g e t . n o d e T y p e = = = 3 & & ( a . t a r g e t = a . t a r g e t . p a r e n t N o d e ) , ! a . r e l a t e d T a r g e t & & a . f r o m E l e m e n t & & ( a . r e l a t e d T a r g e t = a . f r o m E l e m e n t = = = a . t a r g e t ? a . t o E l e m e n t : a . f r o m E l e m e n t ) ; i f ( a . p a g e X = = n u l l & & a . c l i e n t X ! = n u l l ) { v a r   h = c . d o c u m e n t E l e m e n t , i = c . b o d y ; a . p a g e X = a . c l i e n t X + ( h & & h . s c r o l l L e f t | | i & & i . s c r o l l L e f t | | 0 ) - ( h & & h . c l i e n t L e f t | | i & & i . c l i e n t L e f t | | 0 ) , a . p a g e Y = a . c l i e n t Y + ( h & & h . s c r o l l T o p | | i & & i . s c r o l l T o p | | 0 ) - ( h & & h . c l i e n t T o p | | i & & i . c l i e n t T o p | | 0 ) } a . w h i c h = = n u l l & & ( a . c h a r C o d e ! = n u l l | | a . k e y C o d e ! = n u l l ) & & ( a . w h i c h = a . c h a r C o d e ! = n u l l ? a . c h a r C o d e : a . k e y C o d e ) , ! a . m e t a K e y & & a . c t r l K e y & & ( a . m e t a K e y = a . c t r l K e y ) , ! a . w h i c h & & a . b u t t o n ! = = b & & ( a . w h i c h = a . b u t t o n & 1 ? 1 : a . b u t t o n & 2 ? 3 : a . b u t t o n & 4 ? 2 : 0 ) ; r e t u r n   a } , g u i d : 1 e 8 , p r o x y : d . p r o x y , s p e c i a l : { r e a d y : { s e t u p : d . b i n d R e a d y , t e a r d o w n : d . n o o p } , l i v e : { a d d : f u n c t i o n ( a ) { d . e v e n t . a d d ( t h i s , F ( a . o r i g T y p e , a . s e l e c t o r ) , d . e x t e n d ( { } , a , { h a n d l e r : E , g u i d : a . h a n d l e r . g u i d } ) ) } , r e m o v e : f u n c t i o n ( a ) { d . e v e n t . r e m o v e ( t h i s , F ( a . o r i g T y p e , a . s e l e c t o r ) , a ) } } , b e f o r e u n l o a d : { s e t u p : f u n c t i o n ( a , b , c ) { d . i s W i n d o w ( t h i s ) & & ( t h i s . o n b e f o r e u n l o a d = c ) } , t e a r d o w n : f u n c t i o n ( a , b ) { t h i s . o n b e f o r e u n l o a d = = = b & & ( t h i s . o n b e f o r e u n l o a d = n u l l ) } } } } , d . r e m o v e E v e n t = c . r e m o v e E v e n t L i s t e n e r ? 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 ) } : f u n c t i o n ( a , b , c ) { a . d e t a c h E v e n t & & a . d e t a c h E v e n t ( " o n " + b , c ) } , d . E v e n t = f u n c t i o n ( a ) { i f ( ! t h i s . p r e v e n t D e f a u l t ) r e t u r n   n e w   d . E v e n t ( a ) ; a & & a . t y p e ? ( t h i s . o r i g i n a l E v e n t = a , t h i s . t y p e = a . t y p e , t h i s . i s D e f a u l t P r e v e n t e d = a . d e f a u l t P r e v e n t e d | | a . r e t u r n V a l u e = = = ! 1 | | a . g e t P r e v e n t D e f a u l t & & a . g e t P r e v e n t D e f a u l t ( ) ? w : v ) : t h i s . t y p e = a , t h i s . t i m e S t a m p = d . n o w ( ) , t h i s [ d . e x p a n d o ] = ! 0 } , d . E v e n t . p r o t o t y p e = { p r e v e n t D e f a u l t : f u n c t i o n ( ) { t h i s . i s D e f a u l t P r e v e n t e d = w ; v a r   a = t h i s . o r i g i n a l E v e n t ; a & & ( 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 ( ) : a . r e t u r n V a l u e = ! 1 ) } , s t o p P r o p a g a t i o n : f u n c t i o n ( ) { t h i s . i s P r o p a g a t i o n S t o p p e d = w ; v a r   a = t h i s . o r i g i n a l E v e n t ; a & & ( a . s t o p P r o p a g a t i o n & & a . s t o p P r o p a g a t i o n ( ) , a . c a n c e l B u b b l e = ! 0 ) } , s t o p I m m e d i a t e P r o p a g a t i o n : f u n c t i o n ( ) { t h i s . i s I m m e d i a t e P r o p a g a t i o n S t o p p e d = w , t h i s . s t o p P r o p a g a t i o n ( ) } , i s D e f a u l t P r e v e n t e d : v , i s P r o p a g a t i o n S t o p p e d : v , i s I m m e d i a t e P r o p a g a t i o n S t o p p e d : v } ; v a r   x = 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 ; t r y { w h i l e ( b & & b ! = = t h i s ) b = b . p a r e n t N o d e ; b ! = = t h i s & & ( a . t y p e = a . d a t a , d . e v e n t . h a n d l e . a p p l y ( t h i s , a r g u m e n t s ) ) } c a t c h ( c ) { } } , y = f u n c t i o n ( a ) { a . t y p e = a . d a t a , d . e v e n t . h a n d l e . a p p l y ( t h i s , a r g u m e n t s ) } ; d . e a c h ( { m o u s e e n t e r : " m o u s e o v e r " , m o u s e l e a v e : " m o u s e o u t " } , f u n c t i o n ( a , b ) { d . e v e n t . s p e c i a l [ a ] = { s e t u p : f u n c t i o n ( c ) { d . e v e n t . a d d ( t h i s , b , c & & c . s e l e c t o r ? y : x , a ) } , t e a r d o w n : f u n c t i o n ( a ) { d . e v e n t . r e m o v e ( t h i s , b , a & & a . s e l e c t o r ? y : x ) } } } ) , d . s u p p o r t . s u b m i t B u b b l e s | | ( d . e v e n t . s p e c i a l . s u b m i t = { s e t u p : f u n c t i o n ( a , c ) { i f ( t h i s . n o d e N a m e & & t h i s . n o d e N a m e . t o L o w e r C a s e ( ) ! = = " f o r m " ) d . e v e n t . a d d ( t h i s , " c l i c k . s p e c i a l S u b m i t " , f u n c t i o n ( a ) { v a r   c = a . t a r g e t , e = c . t y p e ; i f ( ( e = = = " s u b m i t " | | e = = = " i m a g e " ) & & d ( c ) . c l o s e s t ( " f o r m " ) . l e n g t h ) { a . l i v e F i r e d = b ; r e t u r n   C ( " s u b m i t " , t h i s , a r g u m e n t s ) } } ) , d . e v e n t . a d d ( t h i s , " k e y p r e s s . s p e c i a l S u b m i t " , f u n c t i o n ( a ) { v a r   c = a . t a r g e t , e = c . t y p e ; i f ( ( e = = = " t e x t " | | e = = = " p a s s w o r d " ) & & d ( c ) . c l o s e s t ( " f o r m " ) . l e n g t h & & a . k e y C o d e = = = 1 3 ) { a . l i v e F i r e d = b ; r e t u r n   C ( " s u b m i t " , t h i s , a r g u m e n t s ) } } ) ; e l s e   r e t u r n ! 1 } , t e a r d o w n : f u n c t i o n ( a ) { d . e v e n t . r e m o v e ( t h i s , " . s p e c i a l S u b m i t " ) } } ) ; i f ( ! d . s u p p o r t . c h a n g e B u b b l e s ) { v a r   z , A = f u n c t i o n ( a ) { v a r   b = a . t y p e , c = a . v a l u e ; b = = = " r a d i o " | | b = = = " c h e c k b o x " ? c = a . c h e c k e d : b = = = " s e l e c t - m u l t i p l e " ? c = a . s e l e c t e d I n d e x > - 1 ? d . m a p ( a . o p t i o n s , f u n c t i o n ( a ) { r e t u r n   a . s e l e c t e d } ) . j o i n ( " - " ) : " " : a . n o d e N a m e . t o L o w e r C a s e ( ) = = = " s e l e c t " & & ( c = a . s e l e c t e d I n d e x ) ; r e t u r n   c } , B = f u n c t i o n   B ( a ) { v a r   c = a . t a r g e t , e , f ; i f ( p . t e s t ( c . n o d e N a m e ) & & ! c . r e a d O n l y ) { e = d . _ d a t a ( c , " _ c h a n g e _ d a t a " ) , f = A ( c ) , ( a . t y p e ! = = " f o c u s o u t " | | c . t y p e ! = = " r a d i o " ) & & d . _ d a t a ( c , " _ c h a n g e _ d a t a " , f ) ; i f ( e = = = b | | f = = = e ) r e t u r n ; i f ( e ! = n u l l | | f ) { a . t y p e = " c h a n g e " , a . l i v e F i r e d = b ; r e t u r n   d . e v e n t . t r i g g e r ( a , a r g u m e n t s [ 1 ] , c ) } } } ; d . e v e n t . s p e c i a l . c h a n g e = { f i l t e r s : { f o c u s o u t : B , b e f o r e d e a c t i v a t e : B , c l i c k : f u n c t i o n ( a ) { v a r   b = a . t a r g e t , c = b . t y p e ; i f ( c = = = " r a d i o " | | c = = = " c h e c k b o x " | | b . n o d e N a m e . t o L o w e r C a s e ( ) = = = " s e l e c t " ) r e t u r n   B . c a l l ( t h i s , a ) } , k e y d o w n : f u n c t i o n ( a ) { v a r   b = a . t a r g e t , c = b . t y p e ; i f ( a . k e y C o d e = = = 1 3 & & b . n o d e N a m e . t o L o w e r C a s e ( ) ! = = " t e x t a r e a " | | a . k e y C o d e = = = 3 2 & & ( c = = = " c h e c k b o x " | | c = = = " r a d i o " ) | | c = = = " s e l e c t - m u l t i p l e " ) r e t u r n   B . c a l l ( t h i s , a ) } , b e f o r e a c t i v a t e : f u n c t i o n ( a ) { v a r   b = a . t a r g e t ; d . _ d a t a ( b , " _ c h a n g e _ d a t a " , A ( b ) ) } } , s e t u p : f u n c t i o n ( a , b ) { i f ( t h i s . t y p e = = = " f i l e " ) r e t u r n ! 1 ; f o r ( v a r   c   i n   z ) d . e v e n t . a d d ( t h i s , c + " . s p e c i a l C h a n g e " , z [ c ] ) ; r e t u r n   p . t e s t ( t h i s . n o d e N a m e ) } , t e a r d o w n : f u n c t i o n ( a ) { d . e v e n t . r e m o v e ( t h i s , " . s p e c i a l C h a n g e " ) ; r e t u r n   p . t e s t ( t h i s . n o d e N a m e ) } } , z = d . e v e n t . s p e c i a l . c h a n g e . f i l t e r s , z . f o c u s = z . b e f o r e a c t i v a t e } c . a d d E v e n t L i s t e n e r & & d . e a c h ( { f o c u s : " f o c u s i n " , b l u r : " f o c u s o u t " } , f u n c t i o n ( a , b ) { f u n c t i o n   c ( a ) { a = d . e v e n t . f i x ( a ) , a . t y p e = b ; r e t u r n   d . e v e n t . h a n d l e . c a l l ( t h i s , a ) } d . e v e n t . s p e c i a l [ b ] = { s e t u p : f u n c t i o n ( ) { t h i s . a d d E v e n t L i s t e n e r ( a , c , ! 0 ) } , t e a r d o w n : f u n c t i o n ( ) { t h i s . r e m o v e E v e n t L i s t e n e r ( a , c , ! 0 ) } } } ) , d . e a c h ( [ " b i n d " , " o n e " ] , f u n c t i o n ( a , c ) { d . f n [ c ] = f u n c t i o n ( a , e , f ) { i f ( t y p e o f   a = = = " o b j e c t " ) { f o r ( v a r   g   i n   a ) t h i s [ c ] ( g , e , a [ g ] , f ) ; r e t u r n   t h i s } i f ( d . i s F u n c t i o n ( e ) | | e = = = ! 1 ) f = e , e = b ; v a r   h = c = = = " o n e " ? d . p r o x y ( f , f u n c t i o n ( a ) { d ( t h i s ) . u n b i n d ( a , h ) ; r e t u r n   f . a p p l y ( t h i s , a r g u m e n t s ) } ) : f ; i f ( a = = = " u n l o a d " & & c ! = = " o n e " ) t h i s . o n e ( a , e , f ) ; e l s e   f o r ( v a r   i = 0 , j = t h i s . l e n g t h ; i < j ; i + + ) d . e v e n t . a d d ( t h i s [ i ] , a , h , e ) ; r e t u r n   t h i s } } ) , d . f n . e x t e n d ( { u n b i n d : f u n c t i o n ( a , b ) { i f ( t y p e o f   a ! = = " o b j e c t " | | a . p r e v e n t D e f a u l t ) f o r ( v a r   e = 0 , f = t h i s . l e n g t h ; e < f ; e + + ) d . e v e n t . r e m o v e ( t h i s [ e ] , a , b ) ; e l s e   f o r ( v a r   c   i n   a ) t h i s . u n b i n d ( c , a [ c ] ) ; r e t u r n   t h i s } , d e l e g a t e : f u n c t i o n ( a , b , c , d ) { r e t u r n   t h i s . l i v e ( b , c , d , a ) } , u n d e l e g a t e : f u n c t i o n ( a , b , c ) { r e t u r n   a r g u m e n t s . l e n g t h = = = 0 ? t h i s . u n b i n d ( " l i v e " ) : t h i s . d i e ( b , n u l l , c , a ) } , t r i g g e r : f u n c t i o n ( a , b ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { d . e v e n t . t r i g g e r ( a , b , t h i s ) } ) } , t r i g g e r H a n d l e r : f u n c t i o n ( a , b ) { i f ( t h i s [ 0 ] ) { v a r   c = d . E v e n t ( a ) ; c . p r e v e n t D e f a u l t ( ) , c . s t o p P r o p a g a t i o n ( ) , d . e v e n t . t r i g g e r ( c , b , t h i s [ 0 ] ) ; r e t u r n   c . r e s u l t } } , t o g g l e : f u n c t i o n ( a ) { v a r   b = a r g u m e n t s , c = 1 ; w h i l e ( c < b . l e n g t h ) d . p r o x y ( a , b [ c + + ] ) ; r e t u r n   t h i s . c l i c k ( d . p r o x y ( a , f u n c t i o n ( e ) { v a r   f = ( d . _ d a t a ( t h i s , " l a s t T o g g l e " + a . g u i d ) | | 0 ) % c ; d . _ d a t a ( t h i s , " l a s t T o g g l e " + a . g u i d , f + 1 ) , e . p r e v e n t D e f a u l t ( ) ; r e t u r n   b [ f ] . a p p l y ( t h i s , a r g u m e n t s ) | | ! 1 } ) ) } , h o v e r : f u n c t i o n ( a , b ) { r e t u r n   t h i s . m o u s e e n t e r ( a ) . m o u s e l e a v e ( b | | a ) } } ) ; v a r   D = { f o c u s : " f o c u s i n " , b l u r : " f o c u s o u t " , m o u s e e n t e r : " m o u s e o v e r " , m o u s e l e a v e : " m o u s e o u t " } ; d . e a c h ( [ " l i v e " , " d i e " ] , f u n c t i o n ( a , c ) { d . f n [ c ] = f u n c t i o n ( a , e , f , g ) { v a r   h , i = 0 , j , k , l , m = g | | t h i s . s e l e c t o r , n = g ? t h i s : d ( t h i s . c o n t e x t ) ; i f ( t y p e o f   a = = = " o b j e c t " & & ! a . p r e v e n t D e f a u l t ) { f o r ( v a r   p   i n   a ) n [ c ] ( p , e , a [ p ] , m ) ; r e t u r n   t h i s } d . i s F u n c t i o n ( e ) & & ( f = e , e = b ) , a = ( a | | " " ) . s p l i t ( "   " ) ; w h i l e ( ( h = a [ i + + ] ) ! = n u l l ) { j = o . e x e c ( h ) , k = " " , j & & ( k = j [ 0 ] , h = h . r e p l a c e ( o , " " ) ) ; i f ( h = = = " h o v e r " ) { a . p u s h ( " m o u s e e n t e r " + k , " m o u s e l e a v e " + k ) ; c o n t i n u e } l = h , h = = = " f o c u s " | | h = = = " b l u r " ? ( a . p u s h ( D [ h ] + k ) , h = h + k ) : h = ( D [ h ] | | h ) + k ; i f ( c = = = " l i v e " ) f o r ( v a r   q = 0 , r = n . l e n g t h ; q < r ; q + + ) d . e v e n t . a d d ( n [ q ] , " l i v e . " + F ( h , m ) , { d a t a : e , s e l e c t o r : m , h a n d l e r : f , o r i g T y p e : h , o r i g H a n d l e r : f , p r e T y p e : l } ) ; e l s e   n . u n b i n d ( " l i v e . " + F ( h , m ) , f ) } r e t u r n   t h i s } } ) , d . e a c h ( " b l u r   f o c u s   f o c u s i n   f o c u s o u t   l o a d   r e s i z e   s c r o l l   u n l o a d   c l i c k   d b l c l i c k   m o u s e d o w n   m o u s e u p   m o u s e m o v e   m o u s e o v e r   m o u s e o u t   m o u s e e n t e r   m o u s e l e a v e   c h a n g e   s e l e c t   s u b m i t   k e y d o w n   k e y p r e s s   k e y u p   e r r o r " . s p l i t ( "   " ) , f u n c t i o n ( a , b ) { d . f n [ b ] = f u n c t i o n ( a , c ) { c = = n u l l & & ( c = a , a = n u l l ) ; r e t u r n   a r g u m e n t s . l e n g t h > 0 ? t h i s . b i n d ( b , a , c ) : t h i s . t r i g g e r ( b ) } , d . a t t r F n & & ( d . a t t r F n [ b ] = ! 0 ) } ) , f u n c t i o n ( ) { f u n c t i o n   s ( a , b , c , d , e , f ) { f o r ( v a r   g = 0 , h = d . l e n g t h ; g < h ; g + + ) { v a r   j = d [ g ] ; i f ( j ) { v a r   k = ! 1 ; j = j [ a ] ; w h i l e ( j ) { i f ( j . s i z c a c h e = = = c ) { k = d [ j . s i z s e t ] ; b r e a k } i f ( j . n o d e T y p e = = = 1 ) { f | | ( j . s i z c a c h e = c , j . s i z s e t = g ) ; i f ( t y p e o f   b ! = = " s t r i n g " ) { i f ( j = = = b ) { k = ! 0 ; b r e a k } } e l s e   i f ( i . f i l t e r ( b , [ j ] ) . l e n g t h > 0 ) { k = j ; b r e a k } } j = j [ a ] } d [ g ] = k } } } f u n c t i o n   r ( a , b , c , d , e , f ) { f o r ( v a r   g = 0 , h = d . l e n g t h ; g < h ; g + + ) { v a r   i = d [ g ] ; i f ( i ) { v a r   j = ! 1 ; i = i [ a ] ; w h i l e ( i ) { i f ( i . s i z c a c h e = = = c ) { j = d [ i . s i z s e t ] ; b r e a k } i . n o d e T y p e = = = 1 & & ! f & & ( i . s i z c a c h e = c , i . s i z s e t = g ) ; i f ( i . n o d e N a m e . t o L o w e r C a s e ( ) = = = b ) { j = i ; b r e a k } i = i [ a ] } d [ g ] = j } } } v a r   a = / ( ( ? : \ ( ( ? : \ ( [ ^ ( ) ] + \ ) | [ ^ ( ) ] + ) + \ ) | \ [ ( ? : \ [ [ ^ \ [ \ ] ] * \ ] | [ ' " ] [ ^ ' " ] * [ ' " ] | [ ^ \ [ \ ] ' " ] + ) + \ ] | \ \ . | [ ^   > + ~ , ( \ [ \ \ ] + ) + | [ > + ~ ] ) ( \ s * , \ s * ) ? ( ( ? : . | \ r | \ n ) * ) / g , e = 0 , f = O b j e c t . p r o t o t y p e . t o S t r i n g , g = ! 1 , h = ! 0 ; [ 0 , 0 ] . s o r t ( f u n c t i o n ( ) { h = ! 1 ; r e t u r n   0 } ) ; v a r   i = f u n c t i o n ( b , d , e , g ) { e = e | | [ ] , d = d | | c ; v a r   h = d ; i f ( d . n o d e T y p e ! = = 1 & & d . n o d e T y p e ! = = 9 ) r e t u r n [ ] ; i f ( ! b | | t y p e o f   b ! = = " s t r i n g " ) r e t u r n   e ; v a r   l , m , o , p , q , r , s , u , v = ! 0 , w = i . i s X M L ( d ) , x = [ ] , y = b ; d o { a . e x e c ( " " ) , l = a . e x e c ( y ) ; i f ( l ) { y = l [ 3 ] , x . p u s h ( l [ 1 ] ) ; i f ( l [ 2 ] ) { p = l [ 3 ] ; b r e a k } } } w h i l e ( l ) ; i f ( x . l e n g t h > 1 & & k . e x e c ( b ) ) i f ( x . l e n g t h = = = 2 & & j . r e l a t i v e [ x [ 0 ] ] ) m = t ( x [ 0 ] + x [ 1 ] , d ) ; e l s e { m = j . r e l a t i v e [ x [ 0 ] ] ? [ d ] : i ( x . s h i f t ( ) , d ) ; w h i l e ( x . l e n g t h ) b = x . s h i f t ( ) , j . r e l a t i v e [ b ] & & ( b + = x . s h i f t ( ) ) , m = t ( b , m ) } e l s e { ! g & & x . l e n g t h > 1 & & d . n o d e T y p e = = = 9 & & ! w & & j . m a t c h . I D . t e s t ( x [ 0 ] ) & & ! j . m a t c h . I D . t e s t ( x [ x . l e n g t h - 1 ] ) & & ( q = i . f i n d ( x . s h i f t ( ) , d , w ) , d = q . e x p r ? i . f i l t e r ( q . e x p r , q . s e t ) [ 0 ] : q . s e t [ 0 ] ) ; i f ( d ) { q = g ? { e x p r : x . p o p ( ) , s e t : n ( g ) } : i . f i n d ( x . p o p ( ) , x . l e n g t h = = = 1 & & ( x [ 0 ] = = = " ~ " | | x [ 0 ] = = = " + " ) & & d . p a r e n t N o d e ? d . p a r e n t N o d e : d , w ) , m = q . e x p r ? i . f i l t e r ( q . e x p r , q . s e t ) : q . s e t , x . l e n g t h > 0 ? o = n ( m ) : v = ! 1 ; w h i l e ( x . l e n g t h ) r = x . p o p ( ) , s = r , j . r e l a t i v e [ r ] ? s = x . p o p ( ) : r = " " , s = = n u l l & & ( s = d ) , j . r e l a t i v e [ r ] ( o , s , w ) } e l s e   o = x = [ ] } o | | ( o = m ) , o | | i . e r r o r ( r | | b ) ; i f ( f . c a l l ( o ) = = = " [ o b j e c t   A r r a y ] " ) i f ( v ) i f ( d & & d . n o d e T y p e = = = 1 ) f o r ( u = 0 ; o [ u ] ! = n u l l ; u + + ) o [ u ] & & ( o [ u ] = = = ! 0 | | o [ u ] . n o d e T y p e = = = 1 & & i . c o n t a i n s ( d , o [ u ] ) ) & & e . p u s h ( m [ u ] ) ; e l s e   f o r ( u = 0 ; o [ u ] ! = n u l l ; u + + ) o [ u ] & & o [ u ] . n o d e T y p e = = = 1 & & e . p u s h ( m [ u ] ) ; e l s e   e . p u s h . a p p l y ( e , o ) ; e l s e   n ( o , e ) ; p & & ( i ( p , h , e , g ) , i . u n i q u e S o r t ( e ) ) ; r e t u r n   e } ; i . u n i q u e S o r t = f u n c t i o n ( a ) { i f ( p ) { g = h , a . s o r t ( p ) ; i f ( g ) f o r ( v a r   b = 1 ; b < a . l e n g t h ; b + + ) a [ b ] = = = a [ b - 1 ] & & a . s p l i c e ( b - - , 1 ) } r e t u r n   a } , i . m a t c h e s = f u n c t i o n ( a , b ) { r e t u r n   i ( a , n u l l , n u l l , b ) } , i . m a t c h e s S e l e c t o r = f u n c t i o n ( a , b ) { r e t u r n   i ( b , n u l l , n u l l , [ a ] ) . l e n g t h > 0 } , i . f i n d = f u n c t i o n ( a , b , c ) { v a r   d ; i f ( ! a ) r e t u r n [ ] ; f o r ( v a r   e = 0 , f = j . o r d e r . l e n g t h ; e < f ; e + + ) { v a r   g , h = j . o r d e r [ e ] ; i f ( g = j . l e f t M a t c h [ h ] . e x e c ( a ) ) { v a r   i = g [ 1 ] ; g . s p l i c e ( 1 , 1 ) ; i f ( i . s u b s t r ( i . l e n g t h - 1 ) ! = = " \ \ " ) { g [ 1 ] = ( g [ 1 ] | | " " ) . r e p l a c e ( / \ \ / g , " " ) , d = j . f i n d [ h ] ( g , b , c ) ; i f ( d ! = n u l l ) { a = a . r e p l a c e ( j . m a t c h [ h ] , " " ) ; b r e a k } } } } d | | ( d = t y p e o f   b . g e t E l e m e n t s B y T a g N a m e ! = = " u n d e f i n e d " ? b . g e t E l e m e n t s B y T a g N a m e ( " * " ) : [ ] ) ; r e t u r n { s e t : d , e x p r : a } } , i . f i l t e r = f u n c t i o n ( a , c , d , e ) { v a r   f , g , h = a , k = [ ] , l = c , m = c & & c [ 0 ] & & i . i s X M L ( c [ 0 ] ) ; w h i l e ( a & & c . l e n g t h ) { f o r ( v a r   n   i n   j . f i l t e r ) i f ( ( f = j . l e f t M a t c h [ n ] . e x e c ( a ) ) ! = n u l l & & f [ 2 ] ) { v a r   o , p , q = j . f i l t e r [ n ] , r = f [ 1 ] ; g = ! 1 , f . s p l i c e ( 1 , 1 ) ; i f ( r . s u b s t r ( r . l e n g t h - 1 ) = = = " \ \ " ) c o n t i n u e ; l = = = k & & ( k = [ ] ) ; i f ( j . p r e F i l t e r [ n ] ) { f = j . p r e F i l t e r [ n ] ( f , l , d , k , e , m ) ; i f ( f ) { i f ( f = = = ! 0 ) c o n t i n u e } e l s e   g = o = ! 0 } i f ( f ) f o r ( v a r   s = 0 ; ( p = l [ s ] ) ! = n u l l ; s + + ) i f ( p ) { o = q ( p , f , s , l ) ; v a r   t = e ^ ! ! o ; d & & o ! = n u l l ? t ? g = ! 0 : l [ s ] = ! 1 : t & & ( k . p u s h ( p ) , g = ! 0 ) } i f ( o ! = = b ) { d | | ( l = k ) , a = a . r e p l a c e ( j . m a t c h [ n ] , " " ) ; i f ( ! g ) r e t u r n [ ] ; b r e a k } } i f ( a = = = h ) i f ( g = = n u l l ) i . e r r o r ( a ) ; e l s e   b r e a k ; h = a } r e t u r n   l } , i . e r r o r = f u n c t i o n ( a ) { t h r o w " S y n t a x   e r r o r ,   u n r e c o g n i z e d   e x p r e s s i o n :   " + a } ; v a r   j = i . s e l e c t o r s = { o r d e r : [ " I D " , " N A M E " , " T A G " ] , m a t c h : { I D : / # ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ - ] | \ \ . ) + ) / , C L A S S : / \ . ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ - ] | \ \ . ) + ) / , N A M E : / \ [ n a m e = [ ' " ] * ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ - ] | \ \ . ) + ) [ ' " ] * \ ] / , A T T R : / \ [ \ s * ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ - ] | \ \ . ) + ) \ s * ( ? : ( \ S ? = ) \ s * ( ? : ( [ ' " ] ) ( . * ? ) \ 3 | ( # ? ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ - ] | \ \ . ) * ) | ) | ) \ s * \ ] / , T A G : / ^ ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ * \ - ] | \ \ . ) + ) / , C H I L D : / : ( o n l y | n t h | l a s t | f i r s t ) - c h i l d ( ? : \ ( \ s * ( e v e n | o d d | ( ? : [ + \ - ] ? \ d + | ( ? : [ + \ - ] ? \ d * ) ? n \ s * ( ? : [ + \ - ] \ s * \ d + ) ? ) ) \ s * \ ) ) ? / , P O S : / : ( n t h | e q | g t | l t | f i r s t | l a s t | e v e n | o d d ) ( ? : \ ( ( \ d * ) \ ) ) ? ( ? = [ ^ \ - ] | $ ) / , P S E U D O : / : ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ - ] | \ \ . ) + ) ( ? : \ ( ( [ ' " ] ? ) ( ( ? : \ ( [ ^ \ ) ] + \ ) | [ ^ \ ( \ ) ] * ) + ) \ 2 \ ) ) ? / } , l e f t M a t c h : { } , a t t r M a p : { " c l a s s " : " c l a s s N a m e " , " f o r " : " h t m l F o r " } , a t t r H a n d l e : { h r e f : f u n c t i o n ( a ) { r e t u r n   a . g e t A t t r i b u t e ( " h r e f " ) } } , r e l a t i v e : { " + " : f u n c t i o n ( a , b ) { v a r   c = t y p e o f   b = = = " s t r i n g " , d = c & & ! / \ W / . t e s t ( b ) , e = c & & ! d ; d & & ( b = b . t o L o w e r C a s e ( ) ) ; f o r ( v a r   f = 0 , g = a . l e n g t h , h ; f < g ; f + + ) i f ( h = a [ f ] ) { w h i l e ( ( h = h . p r e v i o u s S i b l i n g ) & & h . n o d e T y p e ! = = 1 ) { } a [ f ] = e | | h & & h . n o d e N a m e . t o L o w e r C a s e ( ) = = = b ? h | | ! 1 : h = = = b } e & & i . f i l t e r ( b , a , ! 0 ) } , " > " : f u n c t i o n ( a , b ) { v a r   c , d = t y p e o f   b = = = " s t r i n g " , e = 0 , f = a . l e n g t h ; i f ( d & & ! / \ W / . t e s t ( b ) ) { b = b . t o L o w e r C a s e ( ) ; f o r ( ; e < f ; e + + ) { c = a [ e ] ; i f ( c ) { v a r   g = c . p a r e n t N o d e ; a [ e ] = g . n o d e N a m e . t o L o w e r C a s e ( ) = = = b ? g : ! 1 } } } e l s e { f o r ( ; e < f ; e + + ) c = a [ e ] , c & & ( a [ e ] = d ? c . p a r e n t N o d e : c . p a r e n t N o d e = = = b ) ; d & & i . f i l t e r ( b , a , ! 0 ) } } , " " : f u n c t i o n ( a , b , c ) { v a r   d , f = e + + , g = s ; t y p e o f   b = = = " s t r i n g " & & ! / \ W / . t e s t ( b ) & & ( b = b . t o L o w e r C a s e ( ) , d = b , g = r ) , g ( " p a r e n t N o d e " , b , f , a , d , c ) } , " ~ " : f u n c t i o n ( a , b , c ) { v a r   d , f = e + + , g = s ; t y p e o f   b = = = " s t r i n g " & & ! / \ W / . t e s t ( b ) & & ( b = b . t o L o w e r C a s e ( ) , d = b , g = r ) , g ( " p r e v i o u s S i b l i n g " , b , f , a , d , c ) } } , f i n d : { I D : f u n c t i o n ( a , b , c ) { i f ( t y p e o f   b . g e t E l e m e n t B y I d ! = = " u n d e f i n e d " & & ! c ) { v a r   d = b . g e t E l e m e n t B y I d ( a [ 1 ] ) ; r e t u r n   d & & d . p a r e n t N o d e ? [ d ] : [ ] } } , N A M E : f u n c t i o n ( a , b ) { i f ( t y p e o f   b . g e t E l e m e n t s B y N a m e ! = = " u n d e f i n e d " ) { v a r   c = [ ] , d = b . g e t E l e m e n t s B y N a m e ( a [ 1 ] ) ; f o r ( v a r   e = 0 , f = d . l e n g t h ; e < f ; e + + ) d [ e ] . g e t A t t r i b u t e ( " n a m e " ) = = = a [ 1 ] & & c . p u s h ( d [ e ] ) ; r e t u r n   c . l e n g t h = = = 0 ? n u l l : c } } , T A G : f u n c t i o n ( a , b ) { i f ( t y p e o f   b . g e t E l e m e n t s B y T a g N a m e ! = = " u n d e f i n e d " ) r e t u r n   b . g e t E l e m e n t s B y T a g N a m e ( a [ 1 ] ) } } , p r e F i l t e r : { C L A S S : f u n c t i o n ( a , b , c , d , e , f ) { a = "   " + a [ 1 ] . r e p l a c e ( / \ \ / g , " " ) + "   " ; i f ( f ) r e t u r n   a ; f o r ( v a r   g = 0 , h ; ( h = b [ g ] ) ! = n u l l ; g + + ) h & & ( e ^ ( h . c l a s s N a m e & & ( "   " + h . c l a s s N a m e + "   " ) . r e p l a c e ( / [ \ t \ n \ r ] / g , "   " ) . i n d e x O f ( a ) > = 0 ) ? c | | d . p u s h ( h ) : c & & ( b [ g ] = ! 1 ) ) ; r e t u r n ! 1 } , I D : f u n c t i o n ( a ) { r e t u r n   a [ 1 ] . r e p l a c e ( / \ \ / g , " " ) } , T A G : f u n c t i o n ( a , b ) { r e t u r n   a [ 1 ] . t o L o w e r C a s e ( ) } , C H I L D : f u n c t i o n ( a ) { i f ( a [ 1 ] = = = " n t h " ) { a [ 2 ] | | i . e r r o r ( a [ 0 ] ) , a [ 2 ] = a [ 2 ] . r e p l a c e ( / ^ \ + | \ s * / g , " " ) ; v a r   b = / ( - ? ) ( \ d * ) ( ? : n ( [ + \ - ] ? \ d * ) ) ? / . e x e c ( a [ 2 ] = = = " e v e n " & & " 2 n " | | a [ 2 ] = = = " o d d " & & " 2 n + 1 " | | ! / \ D / . t e s t ( a [ 2 ] ) & & " 0 n + " + a [ 2 ] | | a [ 2 ] ) ; a [ 2 ] = b [ 1 ] + ( b [ 2 ] | | 1 ) - 0 , a [ 3 ] = b [ 3 ] - 0 } e l s e   a [ 2 ] & & i . e r r o r ( a [ 0 ] ) ; a [ 0 ] = e + + ; r e t u r n   a } , A T T R : f u n c t i o n ( a , b , c , d , e , f ) { v a r   g = a [ 1 ] = a [ 1 ] . r e p l a c e ( / \ \ / g , " " ) ; ! f & & j . a t t r M a p [ g ] & & ( a [ 1 ] = j . a t t r M a p [ g ] ) , a [ 4 ] = ( a [ 4 ] | | a [ 5 ] | | " " ) . r e p l a c e ( / \ \ / g , " " ) , a [ 2 ] = = = " ~ = " & & ( a [ 4 ] = "   " + a [ 4 ] + "   " ) ; r e t u r n   a } , P S E U D O : f u n c t i o n ( b , c , d , e , f ) { i f ( b [ 1 ] = = = " n o t " ) i f ( ( a . e x e c ( b [ 3 ] ) | | " " ) . l e n g t h > 1 | | / ^ \ w / . t e s t ( b [ 3 ] ) ) b [ 3 ] = i ( b [ 3 ] , n u l l , n u l l , c ) ; e l s e { v a r   g = i . f i l t e r ( b [ 3 ] , c , d , ! 0 ^ f ) ; d | | e . p u s h . a p p l y ( e , g ) ; r e t u r n ! 1 } e l s e   i f ( j . m a t c h . P O S . t e s t ( b [ 0 ] ) | | j . m a t c h . C H I L D . t e s t ( b [ 0 ] ) ) r e t u r n ! 0 ; r e t u r n   b } , P O S : f u n c t i o n ( a ) { a . u n s h i f t ( ! 0 ) ; r e t u r n   a } } , f i l t e r s : { e n a b l e d : f u n c t i o n ( a ) { r e t u r n   a . d i s a b l e d = = = ! 1 & & a . t y p e ! = = " h i d d e n " } , d i s a b l e d : f u n c t i o n ( a ) { r e t u r n   a . d i s a b l e d = = = ! 0 } , c h e c k e d : f u n c t i o n ( a ) { r e t u r n   a . c h e c k e d = = = ! 0 } , s e l e c t e d : f u n c t i o n ( a ) { a . p a r e n t N o d e . s e l e c t e d I n d e x ; r e t u r n   a . s e l e c t e d = = = ! 0 } , p a r e n 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 } , e m p t y : 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 } , h a s : f u n c t i o n ( a , b , c ) { r e t u r n ! ! i ( c [ 3 ] , a ) . l e n g t h } , h e a d e r : f u n c t i o n ( a ) { r e t u r n / h \ d / i . t e s t ( a . n o d e N a m e ) } , t e x t : f u n c t i o n ( a ) { r e t u r n " t e x t " = = = a . t y p e } , r a d i o : f u n c t i o n ( a ) { r e t u r n " r a d i o " = = = a . t y p e } , c h e c k b o x : f u n c t i o n ( a ) { r e t u r n " c h e c k b o x " = = = a . t y p e } , f i l e : f u n c t i o n ( a ) { r e t u r n " f i l e " = = = a . t y p e } , p a s s w o r d : f u n c t i o n ( a ) { r e t u r n " p a s s w o r d " = = = a . t y p e } , s u b m i t : f u n c t i o n ( a ) { r e t u r n " s u b m i t " = = = a . t y p e } , i m a g e : f u n c t i o n ( a ) { r e t u r n " i m a g e " = = = a . t y p e } , r e s e t : f u n c t i o n ( a ) { r e t u r n " r e s e t " = = = a . t y p e } , b u t t o n : f u n c t i o n ( a ) { r e t u r n " b u t t o n " = = = a . t y p e | | a . n o d e N a m e . t o L o w e r C a s e ( ) = = = " b u t t o n " } , i n p u t : f u n c t i o n ( a ) { r e t u r n / i n p u t | s e l e c t | t e x t a r e a | b u t t o n / i . t e s t ( a . n o d e N a m e ) } } , s e t F i l t e r s : { f i r s t : f u n c t i o n ( a , b ) { r e t u r n   b = = = 0 } , l a s t : f u n c t i o n ( a , b , c , d ) { r e t u r n   b = = = d . l e n g t h - 1 } , e v e n : f u n c t i o n ( a , b ) { r e t u r n   b % 2 = = = 0 } , o d d : f u n c t i o n ( a , b ) { r e t u r n   b % 2 = = = 1 } , l t : f u n c t i o n ( a , b , c ) { r e t u r n   b < c [ 3 ] - 0 } , g t : f u n c t i o n ( a , b , c ) { r e t u r n   b > c [ 3 ] - 0 } , n t h : f u n c t i o n ( a , b , c ) { r e t u r n   c [ 3 ] - 0 = = = b } , e q : f u n c t i o n ( a , b , c ) { r e t u r n   c [ 3 ] - 0 = = = b } } , f i l t e r : { P S E U D O : f u n c t i o n ( a , b , c , d ) { v a r   e = b [ 1 ] , f = j . f i l t e r s [ e ] ; i f ( f ) r e t u r n   f ( a , c , b , d ) ; i f ( e = = = " c o n t a i n s " ) r e t u r n ( a . t e x t C o n t e n t | | a . i n n e r T e x t | | i . g e t T e x t ( [ a ] ) | | " " ) . i n d e x O f ( b [ 3 ] ) > = 0 ; i f ( e = = = " n o t " ) { v a r   g = b [ 3 ] ; f o r ( v a r   h = 0 , k = g . l e n g t h ; h < k ; h + + ) i f ( g [ h ] = = = a ) r e t u r n ! 1 ; r e t u r n ! 0 } i . e r r o r ( e ) } , C H I L D : f u n c t i o n ( a , b ) { v a r   c = b [ 1 ] , d = a ; s w i t c h ( c ) { c a s e " o n l y " : c a s e " f i r s t " : w h i l e ( d = d . p r e v i o u s S i b l i n g ) i f ( d . n o d e T y p e = = = 1 ) r e t u r n ! 1 ; i f ( c = = = " f i r s t " ) r e t u r n ! 0 ; d = a ; c a s e " l a s t " : w h i l e ( d = d . n e x t S i b l i n g ) i f ( d . n o d e T y p e = = = 1 ) r e t u r n ! 1 ; r e t u r n ! 0 ; c a s e " n t h " : v a r   e = b [ 2 ] , f = b [ 3 ] ; i f ( e = = = 1 & & f = = = 0 ) r e t u r n ! 0 ; v a r   g = b [ 0 ] , h = a . p a r e n t N o d e ; i f ( h & & ( h . s i z c a c h e ! = = g | | ! a . n o d e I n d e x ) ) { v a r   i = 0 ; f o r ( d = h . f i r s t C h i l d ; d ; d = d . n e x t S i b l i n g ) d . n o d e T y p e = = = 1 & & ( d . n o d e I n d e x = + + i ) ; h . s i z c a c h e = g } v a r   j = a . n o d e I n d e x - f ; r e t u r n   e = = = 0 ? j = = = 0 : j % e = = = 0 & & j / e > = 0 } } , I D : f u n c t i o n ( a , b ) { r e t u r n   a . n o d e T y p e = = = 1 & & a . g e t A t t r i b u t e ( " i d " ) = = = b } , T A G : f u n c t i o n ( a , b ) { r e t u r n   b = = = " * " & & a . n o d e T y p e = = = 1 | | a . n o d e N a m e . t o L o w e r C a s e ( ) = = = b } , C L A S S : f u n c t i o n ( a , b ) { r e t u r n ( "   " + ( a . c l a s s N a m e | | a . g e t A t t r i b u t e ( " c l a s s " ) ) + "   " ) . i n d e x O f ( b ) > - 1 } , A T T R : f u n c t i o n ( a , b ) { v a r   c = b [ 1 ] , d = j . a t t r H a n d l e [ c ] ? j . a t t r H a n d l e [ c ] ( a ) : a [ c ] ! = n u l l ? a [ c ] : a . g e t A t t r i b u t e ( c ) , e = d + " " , f = b [ 2 ] , g = b [ 4 ] ; r e t u r n   d = = n u l l ? f = = = " ! = " : f = = = " = " ? e = = = g : f = = = " * = " ? e . i n d e x O f ( g ) > = 0 : f = = = " ~ = " ? ( "   " + e + "   " ) . i n d e x O f ( g ) > = 0 : g ? f = = = " ! = " ? e ! = = g : f = = = " ^ = " ? e . i n d e x O f ( g ) = = = 0 : f = = = " $ = " ? e . s u b s t r ( e . l e n g t h - g . l e n g t h ) = = = g : f = = = " | = " ? e = = = g | | e . s u b s t r ( 0 , g . l e n g t h + 1 ) = = = g + " - " : ! 1 : e & & d ! = = ! 1 } , P O S : f u n c t i o n ( a , b , c , d ) { v a r   e = b [ 2 ] , f = j . s e t F i l t e r s [ e ] ; i f ( f ) r e t u r n   f ( a , c , b , d ) } } } , k = j . m a t c h . P O S , l = f u n c t i o n ( a , b ) { r e t u r n " \ \ " + ( b - 0 + 1 ) } ; f o r ( v a r   m   i n   j . m a t c h ) j . m a t c h [ m ] = n e w   R e g E x p ( j . m a t c h [ m ] . s o u r c e + / ( ? ! [ ^ \ [ ] * \ ] ) ( ? ! [ ^ \ ( ] * \ ) ) / . s o u r c e ) , j . l e f t M a t c h [ m ] = n e w   R e g E x p ( / ( ^ ( ? : . | \ r | \ n ) * ? ) / . s o u r c e + j . m a t c h [ m ] . s o u r c e . r e p l a c e ( / \ \ ( \ d + ) / g , l ) ) ; v a r   n = f u n c t i o n ( a , b ) { a = A r r a y . p r o t o t y p e . s l i c e . c a l l ( a , 0 ) ; i f ( b ) { b . p u s h . a p p l y ( b , a ) ; r e t u r n   b } r e t u r n   a } ; t r y { A r r a y . p r o t o t y p e . s l i c e . c a l l ( c . d o c u m e n t E l e m e n t . c h i l d N o d e s , 0 ) [ 0 ] . n o d e T y p e } c a t c h ( o ) { n = f u n c t i o n ( a , b ) { v a r   c = 0 , d = b | | [ ] ; i f ( f . c a l l ( a ) = = = " [ o b j e c t   A r r a y ] " ) A r r a y . p r o t o t y p e . p u s h . a p p l y ( d , a ) ; e l s e   i f ( t y p e o f   a . l e n g t h = = = " n u m b e r " ) f o r ( v a r   e = a . l e n g t h ; c < e ; c + + ) d . p u s h ( a [ c ] ) ; e l s e   f o r ( ; a [ c ] ; c + + ) d . p u s h ( a [ c ] ) ; r e t u r n   d } } v a r   p , q ; c . d o c u m e n t E l e m e n t . c o m p a r e D o c u m e n t P o s i t i o n ? p = f u n c t i o n ( a , b ) { i f ( a = = = b ) { g = ! 0 ; r e t u r n   0 } i f ( ! a . c o m p a r e D o c u m e n t P o s i t i o n | | ! b . c o m p a r e D o c u m e n t P o s i t i o n ) r e t u r n   a . c o m p a r e D o c u m e n t P o s i t i o n ? - 1 : 1 ; r e t u r n   a . c o m p a r e D o c u m e n t P o s i t i o n ( b ) & 4 ? - 1 : 1 } : ( p = f u n c t i o n ( a , b ) { v a r   c , d , e = [ ] , f = [ ] , h = a . p a r e n t N o d e , i = b . p a r e n t N o d e , j = h ; i f ( a = = = b ) { g = ! 0 ; r e t u r n   0 } i f ( h = = = i ) r e t u r n   q ( a , b ) ; i f ( ! h ) r e t u r n - 1 ; i f ( ! i ) r e t u r n   1 ; w h i l e ( j ) e . u n s h i f t ( j ) , j = j . p a r e n t N o d e ; j = i ; w h i l e ( j ) f . u n s h i f t ( j ) , j = j . p a r e n t N o d e ; c = e . l e n g t h , d = f . l e n g t h ; f o r ( v a r   k = 0 ; k < c & & k < d ; k + + ) i f ( e [ k ] ! = = f [ k ] ) r e t u r n   q ( e [ k ] , f [ k ] ) ; r e t u r n   k = = = c ? q ( a , f [ k ] , - 1 ) : q ( e [ k ] , b , 1 ) } , q = f u n c t i o n ( a , b , c ) { i f ( a = = = b ) r e t u r n   c ; v a r   d = a . n e x t S i b l i n g ; w h i l e ( d ) { i f ( d = = = b ) r e t u r n - 1 ; d = d . n e x t S i b l i n g } r e t u r n   1 } ) , i . g e t T e x t = f u n c t i o n ( a ) { v a r   b = " " , c ; f o r ( v a r   d = 0 ; a [ d ] ; d + + ) c = a [ d ] , c . n o d e T y p e = = = 3 | | c . n o d e T y p e = = = 4 ? b + = c . n o d e V a l u e : c . n o d e T y p e ! = = 8 & & ( b + = i . g e t T e x t ( c . c h i l d N o d e s ) ) ; r e t u r n   b } , f u n c t i o n ( ) { v a r   a = c . c r e a t e E l e m e n t ( " d i v " ) , d = " s c r i p t " + ( n e w   D a t e ) . g e t T i m e ( ) , e = c . d o c u m e n t E l e m e n t ; a . i n n e r H T M L = " < a   n a m e = ' " + d + " ' / > " , e . i n s e r t B e f o r e ( a , e . f i r s t C h i l d ) , c . g e t E l e m e n t B y I d ( d ) & & ( j . f i n d . I D = f u n c t i o n ( a , c , d ) { i f ( t y p e o f   c . g e t E l e m e n t B y I d ! = = " u n d e f i n e d " & & ! d ) { v a r   e = c . g e t E l e m e n t B y I d ( a [ 1 ] ) ; r e t u r n   e ? e . i d = = = a [ 1 ] | | t y p e o f   e . g e t A t t r i b u t e N o d e ! = = " u n d e f i n e d " & & e . g e t A t t r i b u t e N o d e ( " i d " ) . n o d e V a l u e = = = a [ 1 ] ? [ e ] : b : [ ] } } , j . f i l t e r . I D = f u n c t i o n ( a , b ) { v a r   c = t y p e o f   a . g e t A t t r i b u t e N o d e ! = = " u n d e f i n e d " & & a . g e t A t t r i b u t e N o d e ( " i d " ) ; r e t u r n   a . n o d e T y p e = = = 1 & & c & & c . n o d e V a l u e = = = b } ) , e . r e m o v e C h i l d ( a ) , e = a = n u l l } ( ) , f u n c t i o n ( ) { v a r   a = c . c r e a t e E l e m e n t ( " d i v " ) ; a . a p p e n d C h i l d ( c . c r e a t e C o m m e n t ( " " ) ) , a . g e t E l e m e n t s B y T a g N a m e ( " * " ) . l e n g t h > 0 & & ( j . f i n d . T A G = f u n c t i o n ( a , b ) { v a r   c = b . g e t E l e m e n t s B y T a g N a m e ( a [ 1 ] ) ; i f ( a [ 1 ] = = = " * " ) { v a r   d = [ ] ; f o r ( v a r   e = 0 ; c [ e ] ; e + + ) c [ e ] . n o d e T y p e = = = 1 & & d . p u s h ( c [ e ] ) ; c = d } r e t u r n   c } ) , a . i n n e r H T M L = " < a   h r e f = ' # ' > < / a > " , a . f i r s t C h i l d & & t y p e o f   a . f i r s t C h i l d . g e t A t t r i b u t e ! = = " u n d e f i n e d " & & a . f i r s t C h i l d . g e t A t t r i b u t e ( " h r e f " ) ! = = " # " & & ( j . a t t r H a n d l e . h r e f = f u n c t i o n ( a ) { r e t u r n   a . g e t A t t r i b u t e ( " h r e f " , 2 ) } ) , a = n u l l } ( ) , c . q u e r y S e l e c t o r A l l & & f u n c t i o n ( ) { v a r   a = i , b = c . c r e a t e E l e m e n t ( " d i v " ) , d = " _ _ s i z z l e _ _ " ; b . i n n e r H T M L = " < p   c l a s s = ' T E S T ' > < / p > " ; i f ( ! b . q u e r y S e l e c t o r A l l | | b . q u e r y S e l e c t o r A l l ( " . T E S T " ) . l e n g t h ! = = 0 ) { i = f u n c t i o n ( b , e , f , g ) { e = e | | c ; i f ( ! g & & ! i . i s X M L ( e ) ) { v a r   h = / ^ ( \ w + $ ) | ^ \ . ( [ \ w \ - ] + $ ) | ^ # ( [ \ w \ - ] + $ ) / . e x e c ( b ) ; i f ( h & & ( e . n o d e T y p e = = = 1 | | e . n o d e T y p e = = = 9 ) ) { i f ( h [ 1 ] ) r e t u r n   n ( e . g e t E l e m e n t s B y T a g N a m e ( b ) , f ) ; i f ( h [ 2 ] & & j . f i n d . C L A S S & & e . g e t E l e m e n t s B y C l a s s N a m e ) r e t u r n   n ( e . g e t E l e m e n t s B y C l a s s N a m e ( h [ 2 ] ) , f ) } i f ( e . n o d e T y p e = = = 9 ) { i f ( b = = = " b o d y " & & e . b o d y ) r e t u r n   n ( [ e . b o d y ] , f ) ; i f ( h & & h [ 3 ] ) { v a r   k = e . g e t E l e m e n t B y I d ( h [ 3 ] ) ; i f ( ! k | | ! k . p a r e n t N o d e ) r e t u r n   n ( [ ] , f ) ; i f ( k . i d = = = h [ 3 ] ) r e t u r n   n ( [ k ] , f ) } t r y { r e t u r n   n ( e . q u e r y S e l e c t o r A l l ( b ) , f ) } c a t c h ( l ) { } } e l s e   i f ( e . n o d e T y p e = = = 1 & & e . n o d e N a m e . t o L o w e r C a s e ( ) ! = = " o b j e c t " ) { v a r   m = e . g e t A t t r i b u t e ( " i d " ) , o = m | | d , p = e . p a r e n t N o d e , q = / ^ \ s * [ + ~ ] / . t e s t ( b ) ; m ? o = o . r e p l a c e ( / ' / g , " \ \ $ & " ) : e . s e t A t t r i b u t e ( " i d " , o ) , q & & p & & ( e = e . p a r e n t N o d e ) ; t r y { i f ( ! q | | p ) r e t u r n   n ( e . q u e r y S e l e c t o r A l l ( " [ i d = ' " + o + " ' ]   " + b ) , f ) } c a t c h ( r ) { } f i n a l l y { m | | e . r e m o v e A t t r i b u t e ( " i d " ) } } } r e t u r n   a ( b , e , f , g ) } ; f o r ( v a r   e   i n   a ) i [ e ] = a [ e ] ; b = n u l l } } ( ) , f u n c t i o n ( ) { v a r   a = c . d o c u m e n t E l e m e n t , b = a . m a t c h e s S e l e c t o r | | a . m o z M a t c h e s S e l e c t o r | | a . w e b k i t M a t c h e s S e l e c t o r | | a . m s M a t c h e s S e l e c t o r , d = ! 1 ; t r y { b . c a l l ( c . d o c u m e n t E l e m e n t , " [ t e s t ! = ' ' ] : s i z z l e " ) } c a t c h ( e ) { d = ! 0 } b & & ( i . m a t c h e s S e l e c t o r = f u n c t i o n ( a , c ) { c = c . r e p l a c e ( / \ = \ s * ( [ ^ ' " \ ] ] * ) \ s * \ ] / g , " = ' $ 1 ' ] " ) ; i f ( ! i . i s X M L ( a ) ) t r y { i f ( d | | ! j . m a t c h . P S E U D O . t e s t ( c ) & & ! / ! = / . t e s t ( c ) ) r e t u r n   b . c a l l ( a , c ) } c a t c h ( e ) { } r e t u r n   i ( c , n u l l , n u l l , [ a ] ) . l e n g t h > 0 } ) } ( ) , f u n c t i o n ( ) { v a r   a = c . c r e a t e E l e m e n t ( " d i v " ) ; a . i n n e r H T M L = " < d i v   c l a s s = ' t e s t   e ' > < / d i v > < d i v   c l a s s = ' t e s t ' > < / d i v > " ; i f ( a . g e t E l e m e n t s B y C l a s s N a m e & & a . g e t E l e m e n t s B y C l a s s N a m e ( " e " ) . l e n g t h ! = = 0 ) { a . l a s t C h i l d . c l a s s N a m e = " e " ; i f ( a . g e t E l e m e n t s B y C l a s s N a m e ( " e " ) . l e n g t h = = = 1 ) r e t u r n ; j . o r d e r . s p l i c e ( 1 , 0 , " C L A S S " ) , j . f i n d . C L A S S = f u n c t i o n ( a , b , c ) { i f ( t y p e o f   b . g e t E l e m e n t s B y C l a s s N a m e ! = = " u n d e f i n e d " & & ! c ) r e t u r n   b . g e t E l e m e n t s B y C l a s s N a m e ( a [ 1 ] ) } , a = n u l l } } ( ) , c . d o c u m e n t E l e m e n t . c o n t a i n s ? i . c o n t a i n s = f u n c t i o n ( a , b ) { r e t u r n   a ! = = b & & ( a . c o n t a i n s ? a . c o n t a i n s ( b ) : ! 0 ) } : c . d o c u m e n t E l e m e n t . c o m p a r e D o c u m e n t P o s i t i o n ? i . c o n t a i n s = f u n c t i o n ( a , b ) { r e t u r n ! ! ( a . c o m p a r e D o c u m e n t P o s i t i o n ( b ) & 1 6 ) } : i . c o n t a i n s = f u n c t i o n ( ) { r e t u r n ! 1 } , i . i s X M L = f u n c t i o n ( a ) { v a r   b = ( a ? a . o w n e r D o c u m e n t | | a : 0 ) . d o c u m e n t E l e m e n t ; r e t u r n   b ? b . n o d e N a m e ! = = " H T M L " : ! 1 } ; v a r   t = f u n c t i o n ( a , b ) { v a r   c , d = [ ] , e = " " , f = b . n o d e T y p e ? [ b ] : b ; w h i l e ( c = j . m a t c h . P S E U D O . e x e c ( a ) ) e + = c [ 0 ] , a = a . r e p l a c e ( j . m a t c h . P S E U D O , " " ) ; a = j . r e l a t i v e [ a ] ? a + " * " : a ; f o r ( v a r   g = 0 , h = f . l e n g t h ; g < h ; g + + ) i ( a , f [ g ] , d ) ; r e t u r n   i . f i l t e r ( e , d ) } ; d . f i n d = i , d . e x p r = i . s e l e c t o r s , d . e x p r [ " : " ] = d . e x p r . f i l t e r s , d . u n i q u e = i . u n i q u e S o r t , d . t e x t = i . g e t T e x t , d . i s X M L D o c = i . i s X M L , d . c o n t a i n s = i . c o n t a i n s } ( ) ; v a r   G = / U n t i l $ / , H = / ^ ( ? : p a r e n t s | p r e v U n t i l | p r e v A l l ) / , I = / , / , J = / ^ . [ ^ : # \ [ \ . , ] * $ / , K = A r r a y . p r o t o t y p e . s l i c e , L = d . e x p r . m a t c h . P O S , M = { c h i l d r e n : ! 0 , c o n t e n t s : ! 0 , n e x t : ! 0 , p r e v : ! 0 } ; d . f n . e x t e n d ( { f i n d : f u n c t i o n ( a ) { v a r   b = t h i s . p u s h S t a c k ( " " , " f i n d " , a ) , c = 0 ; f o r ( v a r   e = 0 , f = t h i s . l e n g t h ; e < f ; e + + ) { c = b . l e n g t h , d . f i n d ( a , t h i s [ e ] , b ) ; i f ( e > 0 ) f o r ( v a r   g = c ; g < b . l e n g t h ; g + + ) f o r ( v a r   h = 0 ; h < c ; h + + ) i f ( b [ h ] = = = b [ g ] ) { b . s p l i c e ( g - - , 1 ) ; b r e a k } } r e t u r n   b } , h a s : f u n c t i o n ( a ) { v a r   b = d ( a ) ; r e t u r n   t h i s . f i l t e r ( f u n c t i o n ( ) { f o r ( v a r   a = 0 , c = b . l e n g t h ; a < c ; a + + ) i f ( d . c o n t a i n s ( t h i s , b [ a ] ) ) r e t u r n ! 0 } ) } , n o t : f u n c t i o n ( a ) { r e t u r n   t h i s . p u s h S t a c k ( O ( t h i s , a , ! 1 ) , " n o t " , a ) } , f i l t e r : f u n c t i o n ( a ) { r e t u r n   t h i s . p u s h S t a c k ( O ( t h i s , a , ! 0 ) , " f i l t e r " , a ) } , i s : f u n c t i o n ( a ) { r e t u r n ! ! a & & d . f i l t e r ( a , t h i s ) . l e n g t h > 0 } , c l o s e s t : f u n c t i o n ( a , b ) { v a r   c = [ ] , e , f , g = t h i s [ 0 ] ; i f ( d . i s A r r a y ( a ) ) { v a r   h , i , j = { } , k = 1 ; i f ( g & & a . l e n g t h ) { f o r ( e = 0 , f = a . l e n g t h ; e < f ; e + + ) i = a [ e ] , j [ i ] | | ( j [ i ] = d . e x p r . m a t c h . P O S . t e s t ( i ) ? d ( i , b | | t h i s . c o n t e x t ) : i ) ; w h i l e ( g & & g . o w n e r D o c u m e n t & & g ! = = b ) { f o r ( i   i n   j ) h = j [ i ] , ( h . j q u e r y ? h . i n d e x ( g ) > - 1 : d ( g ) . i s ( h ) ) & & c . p u s h ( { s e l e c t o r : i , e l e m : g , l e v e l : k } ) ; g = g . p a r e n t N o d e , k + + } } r e t u r n   c } v a r   l = L . t e s t ( a ) ? d ( a , b | | t h i s . c o n t e x t ) : n u l l ; f o r ( e = 0 , f = t h i s . l e n g t h ; e < f ; e + + ) { g = t h i s [ e ] ; w h i l e ( g ) { i f ( l ? l . i n d e x ( g ) > - 1 : d . f i n d . m a t c h e s S e l e c t o r ( g , a ) ) { c . p u s h ( g ) ; b r e a k } g = g . p a r e n t N o d e ; i f ( ! g | | ! g . o w n e r D o c u m e n t | | g = = = b ) b r e a k } } c = c . l e n g t h > 1 ? d . u n i q u e ( c ) : c ; r e t u r n   t h i s . p u s h S t a c k ( c , " c l o s e s t " , a ) } , i n d e x : f u n c t i o n ( a ) { i f ( ! a | | t y p e o f   a = = = " s t r i n g " ) r e t u r n   d . i n A r r a y ( t h i s [ 0 ] , a ? d ( a ) : t h i s . p a r e n t ( ) . c h i l d r e n ( ) ) ; r e t u r n   d . i n A r r a y ( a . j q u e r y ? a [ 0 ] : a , t h i s ) } , a d d : f u n c t i o n ( a , b ) { v a r   c = t y p e o f   a = = = " s t r i n g " ? d ( a , b ) : d . m a k e A r r a y ( a ) , e = d . m e r g e ( t h i s . g e t ( ) , c ) ; r e t u r n   t h i s . p u s h S t a c k ( N ( c [ 0 ] ) | | N ( e [ 0 ] ) ? e : d . u n i q u e ( e ) ) } , a n d S e l f : f u n c t i o n ( ) { r e t u r n   t h i s . a d d ( t h i s . p r e v O b j e c t ) } } ) , d . e a c h ( { p a r e n t : f u n c t i o n ( a ) { v a r   b = a . p a r e n t N o d e ; r e t u r n   b & & b . n o d e T y p e ! = = 1 1 ? b : n u l l } , p a r e n t s : f u n c t i o n ( a ) { r e t u r n   d . d i r ( a , " p a r e n t N o d e " ) } , p a r e n t s U n t i l : f u n c t i o n ( a , b , c ) { r e t u r n   d . d i r ( a , " p a r e n t N o d e " , c ) } , n e x t : f u n c t i o n ( a ) { r e t u r n   d . n t h ( a , 2 , " n e x t S i b l i n g " ) } , p r e v : f u n c t i o n ( a ) { r e t u r n   d . n t h ( a , 2 , " p r e v i o u s S i b l i n g " ) } , n e x t A l l : f u n c t i o n ( a ) { r e t u r n   d . d i r ( a , " n e x t S i b l i n g " ) } , p r e v A l l : f u n c t i o n ( a ) { r e t u r n   d . d i r ( a , " p r e v i o u s S i b l i n g " ) } , n e x t U n t i l : f u n c t i o n ( a , b , c ) { r e t u r n   d . d i r ( a , " n e x t S i b l i n g " , c ) } , p r e v U n t i l : f u n c t i o n ( a , b , c ) { r e t u r n   d . d i r ( a , " p r e v i o u s S i b l i n g " , c ) } , s i b l i n g s : f u n c t i o n ( a ) { r e t u r n   d . s i b l i n g ( a . p a r e n t N o d e . f i r s t C h i l d , a ) } , c h i l d r e n : f u n c t i o n ( a ) { r e t u r n   d . s i b l i n g ( a . f i r s t C h i l d ) } , c o n t e n t s : f u n c t i o n ( a ) { r e t u r n   d . n o d e N a m e ( a , " i f r a m e " ) ? a . c o n t e n t D o c u m e n t | | a . c o n t e n t W i n d o w . d o c u m e n t : d . m a k e A r r a y ( a . c h i l d N o d e s ) } } , f u n c t i o n ( a , b ) { d . f n [ a ] = f u n c t i o n ( c , e ) { v a r   f = d . m a p ( t h i s , b , c ) , g = K . c a l l ( a r g u m e n t s ) ; G . t e s t ( a ) | | ( e = c ) , e & & t y p e o f   e = = = " s t r i n g " & & ( f = d . f i l t e r ( e , f ) ) , f = t h i s . l e n g t h > 1 & & ! M [ a ] ? d . u n i q u e ( f ) : f , ( t h i s . l e n g t h > 1 | | I . t e s t ( e ) ) & & H . t e s t ( a ) & & ( f = f . r e v e r s e ( ) ) ; r e t u r n   t h i s . p u s h S t a c k ( f , a , g . j o i n ( " , " ) ) } } ) , d . e x t e n d ( { f i l t e r : f u n c t i o n ( a , b , c ) { c & & ( a = " : n o t ( " + a + " ) " ) ; r e t u r n   b . l e n g t h = = = 1 ? d . f i n d . m a t c h e s S e l e c t o r ( b [ 0 ] , a ) ? [ b [ 0 ] ] : [ ] : d . f i n d . m a t c h e s ( a , b ) } , d i r : f u n c t i o n ( a , c , e ) { v a r   f = [ ] , g = a [ c ] ; w h i l e ( g & & g . n o d e T y p e ! = = 9 & & ( e = = = b | | g . n o d e T y p e ! = = 1 | | ! d ( g ) . i s ( e ) ) ) g . n o d e T y p e = = = 1 & & f . p u s h ( g ) , g = g [ c ] ; r e t u r n   f } , n t h : f u n c t i o n ( a , b , c , d ) { b = b | | 1 ; v a r   e = 0 ; f o r ( ; a ; a = a [ c ] ) i f ( a . n o d e T y p e = = = 1 & & + + e = = = b ) b r e a k ; r e t u r n   a } , s i b l i n g : f u n c t i o n ( a , b ) { v a r   c = [ ] ; f o r ( ; a ; a = a . n e x t S i b l i n g ) a . n o d e T y p e = = = 1 & & a ! = = b & & c . p u s h ( a ) ; r e t u r n   c } } ) ; v a r   P = /   j Q u e r y \ d + = " ( ? : \ d + | n u l l ) " / g , Q = / ^ \ s + / , R = / < ( ? ! a r e a | b r | c o l | e m b e d | h r | i m g | i n p u t | l i n k | m e t a | p a r a m ) ( ( [ \ w : ] + ) [ ^ > ] * ) \ / > / i g , S = / < ( [ \ w : ] + ) / , T = / < t b o d y / i , U = / < | & # ? \ w + ; / , V = / < ( ? : s c r i p t | o b j e c t | e m b e d | o p t i o n | s t y l e ) / i , W = / c h e c k e d \ s * ( ? : [ ^ = ] | = \ s * . c h e c k e d . ) / i , X = { o p t i o n : [ 1 , " < s e l e c t   m u l t i p l e = ' m u l t i p l e ' > " , " < / s e l e c t > " ] , l e g e n d : [ 1 , " < f i e l d s e t > " , " < / f i e l d s e t > " ] , t h e a d : [ 1 , " < t a b l e > " , " < / t a b l e > " ] , t r : [ 2 , " < t a b l e > < t b o d y > " , " < / t b o d y > < / t a b l e > " ] , t d : [ 3 , " < t a b l e > < t b o d y > < t r > " , " < / t r > < / t b o d y > < / t a b l e > " ] , c o l : [ 2 , " < t a b l e > < t b o d y > < / t b o d y > < c o l g r o u p > " , " < / c o l g r o u p > < / t a b l e > " ] , a r e a : [ 1 , " < m a p > " , " < / m a p > " ] , _ d e f a u l t : [ 0 , " " , " " ] } ; X . o p t g r o u p = X . o p t i o n , X . t b o d y = X . t f o o t = X . c o l g r o u p = X . c a p t i o n = X . t h e a d , X . t h = X . t d , d . s u p p o r t . h t m l S e r i a l i z e | | ( X . _ d e f a u l t = [ 1 , " d i v < d i v > " , " < / d i v > " ] ) , d . f n . e x t e n d ( { t e x t : f u n c t i o n ( a ) { i f ( d . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = d ( t h i s ) ; c . t e x t ( a . c a l l ( t h i s , b , c . t e x t ( ) ) ) } ) ; i f ( t y p e o f   a ! = = " o b j e c t " & & a ! = = b ) r e t u r n   t h i s . e m p t y ( ) . a p p e n d ( ( t h i s [ 0 ] & & t h i s [ 0 ] . o w n e r D o c u m e n t | | c ) . c r e a t e T e x t N o d e ( a ) ) ; r e t u r n   d . t e x t ( t h i s ) } , w r a p A l l : f u n c t i o n ( a ) { i f ( d . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { d ( t h i s ) . w r a p A l l ( a . c a l l ( t h i s , b ) ) } ) ; i f ( t h i s [ 0 ] ) { v a r   b = d ( a , t h i s [ 0 ] . o w n e r D o c u m e n t ) . e q ( 0 ) . c l o n e ( ! 0 ) ; t h i s [ 0 ] . p a r e n t N o d e & & b . i n s e r t B e f o r e ( t h i s [ 0 ] ) , b . m a p ( f u n c t i o n ( ) { v a r   a = t h i s ; w h i l e ( a . f i r s t C h i l d & & a . f i r s t C h i l d . n o d e T y p e = = = 1 ) a = a . f i r s t C h i l d ; r e t u r n   a } ) . a p p e n d ( t h i s ) } r e t u r n   t h i s } , w r a p I n n e r : f u n c t i o n ( a ) { i f ( d . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { d ( t h i s ) . w r a p I n n e r ( a . c a l l ( t h i s , b ) ) } ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   b = d ( t h i s ) , c = b . c o n t e n t s ( ) ; c . l e n g t h ? c . w r a p A l l ( a ) : b . a p p e n d ( a ) } ) } , w r a p : f u n c t i o n ( a ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { d ( t h i s ) . w r a p A l l ( a ) } ) } , u n w r a p : f u n c t i o n ( ) { r e t u r n   t h i s . p a r e n t ( ) . e a c h ( f u n c t i o n ( ) { d . n o d e N a m e ( t h i s , " b o d y " ) | | d ( t h i s ) . r e p l a c e W i t h ( t h i s . c h i l d N o d e s ) } ) . e n d ( ) } , a p p e n d : f u n c t i o n ( ) { r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , ! 0 , f u n c t i o n ( a ) { t h i s . n o d e T y p e = = = 1 & & t h i s . a p p e n d C h i l d ( a ) } ) } , p r e p e n d : f u n c t i o n ( ) { r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , ! 0 , f u n c t i o n ( a ) { t h i s . n o d e T y p e = = = 1 & & t h i s . i n s e r t B e f o r e ( a , t h i s . f i r s t C h i l d ) } ) } , b e f o r e : f u n c t i o n ( ) { i f ( t h i s [ 0 ] & & t h i s [ 0 ] . p a r e n t N o d e ) r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , ! 1 , f u n c t i o n ( a ) { t h i s . p a r e n t N o d e . i n s e r t B e f o r e ( a , t h i s ) } ) ; i f ( a r g u m e n t s . l e n g t h ) { v a r   a = d ( a r g u m e n t s [ 0 ] ) ; a . p u s h . a p p l y ( a , t h i s . t o A r r a y ( ) ) ; r e t u r n   t h i s . p u s h S t a c k ( a , " b e f o r e " , a r g u m e n t s ) } } , a f t e r : f u n c t i o n ( ) { i f ( t h i s [ 0 ] & & t h i s [ 0 ] . p a r e n t N o d e ) r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , ! 1 , f u n c t i o n ( a ) { t h i s . p a r e n t N o d e . i n s e r t B e f o r e ( a , t h i s . n e x t S i b l i n g ) } ) ; i f ( a r g u m e n t s . l e n g t h ) { v a r   a = t h i s . p u s h S t a c k ( t h i s , " a f t e r " , a r g u m e n t s ) ; a . p u s h . a p p l y ( a , d ( a r g u m e n t s [ 0 ] ) . t o A r r a y ( ) ) ; r e t u r n   a } } , r e m o v e : f u n c t i o n ( a , b ) { f o r ( v a r   c = 0 , e ; ( e = t h i s [ c ] ) ! = n u l l ; c + + ) i f ( ! a | | d . f i l t e r ( a , [ e ] ) . l e n g t h ) ! b & & e . n o d e T y p e = = = 1 & & ( d . c l e a n D a t a ( e . g e t E l e m e n t s B y T a g N a m e ( " * " ) ) , d . c l e a n D a t a ( [ e ] ) ) , e . p a r e n t N o d e & & e . p a r e n t N o d e . r e m o v e C h i l d ( e ) ; r e t u r n   t h i s } , e m p t y : f u n c t i o n ( ) { f o r ( v a r   a = 0 , b ; ( b = t h i s [ a ] ) ! = n u l l ; a + + ) { b . n o d e T y p e = = = 1 & & d . c l e a n D a t a ( b . g e t E l e m e n t s B y T a g N a m e ( " * " ) ) ; w h i l e ( b . f i r s t C h i l d ) b . r e m o v e C h i l d ( b . f i r s t C h i l d ) } r e t u r n   t h i s } , c l o n e : f u n c t i o n ( a , b ) { a = a = = n u l l ? ! 0 : a , b = b = = n u l l ? a : b ; r e t u r n   t h i s . m a p ( f u n c t i o n ( ) { r e t u r n   d . c l o n e ( t h i s , a , b ) } ) } , h t m l : f u n c t i o n ( a ) { i f ( a = = = b ) r e t u r n   t h i s [ 0 ] & & t h i s [ 0 ] . n o d e T y p e = = = 1 ? t h i s [ 0 ] . i n n e r H T M L . r e p l a c e ( P , " " ) : n u l l ; i f ( t y p e o f   a ! = = " s t r i n g " | | V . t e s t ( a ) | | ! d . s u p p o r t . l e a d i n g W h i t e s p a c e & & Q . t e s t ( a ) | | X [ ( S . e x e c ( a ) | | [ " " , " " ] ) [ 1 ] . t o L o w e r C a s e ( ) ] ) d . i s F u n c t i o n ( a ) ? t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = d ( t h i s ) ; c . h t m l ( a . c a l l ( t h i s , b , c . h t m l ( ) ) ) } ) : t h i s . e m p t y ( ) . a p p e n d ( a ) ; e l s e { a = a . r e p l a c e ( R , " < $ 1 > < / $ 2 > " ) ; t r y { f o r ( v a r   c = 0 , e = t h i s . l e n g t h ; c < e ; c + + ) t h i s [ c ] . n o d e T y p e = = = 1 & & ( d . c l e a n D a t a ( t h i s [ c ] . g e t E l e m e n t s B y T a g N a m e ( " * " ) ) , t h i s [ c ] . i n n e r H T M L = a ) } c a t c h ( f ) { t h i s . e m p t y ( ) . a p p e n d ( a ) } } r e t u r n   t h i s } , r e p l a c e W i t h : f u n c t i o n ( a ) { i f ( t h i s [ 0 ] & & t h i s [ 0 ] . p a r e n t N o d e ) { i f ( d . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = d ( t h i s ) , e = c . h t m l ( ) ; c . r e p l a c e W i t h ( a . c a l l ( t h i s , b , e ) ) } ) ; t y p e o f   a ! = = " s t r i n g " & & ( a = d ( a ) . d e t a c h ( ) ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   b = t h i s . n e x t S i b l i n g , c = t h i s . p a r e n t N o d e ; d ( t h i s ) . r e m o v e ( ) , b ? d ( b ) . b e f o r e ( a ) : d ( c ) . a p p e n d ( a ) } ) } r e t u r n   t h i s . p u s h S t a c k ( d ( d . i s F u n c t i o n ( a ) ? a ( ) : a ) , " r e p l a c e W i t h " , a ) } , d e t a c h : f u n c t i o n ( a ) { r e t u r n   t h i s . r e m o v e ( a , ! 0 ) } , d o m M a n i p : f u n c t i o n ( a , c , e ) { v a r   f , g , h , i , j = a [ 0 ] , k = [ ] ; i f ( ! d . s u p p o r t . c h e c k C l o n e & & a r g u m e n t s . l e n g t h = = = 3 & & t y p e o f   j = = = " s t r i n g " & & W . t e s t ( j ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { d ( t h i s ) . d o m M a n i p ( a , c , e , ! 0 ) } ) ; i f ( d . i s F u n c t i o n ( j ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( f ) { v a r   g = d ( t h i s ) ; a [ 0 ] = j . c a l l ( t h i s , f , c ? g . h t m l ( ) : b ) , g . d o m M a n i p ( a , c , e ) } ) ; i f ( t h i s [ 0 ] ) { i = j & & j . p a r e n t N o d e , d . s u p p o r t . p a r e n t N o d e & & i & & i . n o d e T y p e = = = 1 1 & & i . c h i l d N o d e s . l e n g t h = = = t h i s . l e n g t h ? f = { f r a g m e n t : i } : f = d . b u i l d F r a g m e n t ( a , t h i s , k ) , h = f . f r a g m e n t , h . c h i l d N o d e s . l e n g t h = = = 1 ? g = h = h . f i r s t C h i l d : g = h . f i r s t C h i l d ; i f ( g ) { c = c & & d . n o d e N a m e ( g , " t r " ) ; f o r ( v a r   l = 0 , m = t h i s . l e n g t h , n = m - 1 ; l < m ; l + + ) e . c a l l ( c ? Y ( t h i s [ l ] , g ) : t h i s [ l ] , f . c a c h e a b l e | | m > 1 & & l < n ? d . c l o n e ( h , ! 0 , ! 0 ) : h ) } k . l e n g t h & & d . e a c h ( k , _ ) } r e t u r n   t h i s } } ) , d . b u i l d F r a g m e n t = f u n c t i o n ( a , b , e ) { v a r   f , g , h , i = b & & b [ 0 ] ? b [ 0 ] . o w n e r D o c u m e n t | | b [ 0 ] : c ; a . l e n g t h = = = 1 & & t y p e o f   a [ 0 ] = = = " s t r i n g " & & a [ 0 ] . l e n g t h < 5 1 2 & & i = = = c & & a [ 0 ] . c h a r A t ( 0 ) = = = " < " & & ! V . t e s t ( a [ 0 ] ) & & ( d . s u p p o r t . c h e c k C l o n e | | ! W . t e s t ( a [ 0 ] ) ) & & ( g = ! 0 , h = d . f r a g m e n t s [ a [ 0 ] ] , h & & ( h ! = = 1 & & ( f = h ) ) ) , f | | ( f = i . c r e a t e D o c u m e n t F r a g m e n t ( ) , d . c l e a n ( a , i , f , e ) ) , g & & ( d . f r a g m e n t s [ a [ 0 ] ] = h ? f : 1 ) ; r e t u r n { f r a g m e n t : f , c a c h e a b l e : g } } , d . f r a g m e n t s = { } , d . e a c h ( { a p p e n d T o : " a p p e n d " , p r e p e n d T o : " p r e p e n d " , i n s e r t B e f o r e : " b e f o r e " , i n s e r t A f t e r : " a f t e r " , r e p l a c e A l l : " r e p l a c e W i t h " } , f u n c t i o n ( a , b ) { d . f n [ a ] = f u n c t i o n ( c ) { v a r   e = [ ] , f = d ( c ) , g = t h i s . l e n g t h = = = 1 & & t h i s [ 0 ] . p a r e n t N o d e ; i f ( g & & g . n o d e T y p e = = = 1 1 & & g . c h i l d N o d e s . l e n g t h = = = 1 & & f . l e n g t h = = = 1 ) { f [ b ] ( t h i s [ 0 ] ) ; r e t u r n   t h i s } f o r ( v a r   h = 0 , i = f . l e n g t h ; h < i ; h + + ) { v a r   j = ( h > 0 ? t h i s . c l o n e ( ! 0 ) : t h i s ) . g e t ( ) ; d ( f [ h ] ) [ b ] ( j ) , e = e . c o n c a t ( j ) } r e t u r n   t h i s . p u s h S t a c k ( e , a , f . s e l e c t o r ) } } ) , d . e x t e n d ( { c l o n e : f u n c t i o n ( a , b , c ) { v a r   e = a . c l o n e N o d e ( ! 0 ) , f , g , h ; i f ( ! d . s u p p o r t . n o C l o n e E v e n t & & ( a . n o d e T y p e = = = 1 | | a . n o d e T y p e = = = 1 1 ) & & ! d . i s X M L D o c ( a ) ) { f = a . g e t E l e m e n t s B y T a g N a m e ( " * " ) , g = e . g e t E l e m e n t s B y T a g N a m e ( " * " ) ; f o r ( h = 0 ; f [ h ] ; + + h ) $ ( f [ h ] , g [ h ] ) ; $ ( a , e ) } i f ( b ) { Z ( a , e ) ; i f ( c & & " g e t E l e m e n t s B y T a g N a m e " i n   a ) { f = a . g e t E l e m e n t s B y T a g N a m e ( " * " ) , g = e . g e t E l e m e n t s B y T a g N a m e ( " * " ) ; i f ( f . l e n g t h ) f o r ( h = 0 ; f [ h ] ; + + h ) Z ( f [ h ] , g [ h ] ) } } r e t u r n   e } , c l e a n : f u n c t i o n ( a , b , e , f ) { b = b | | c , t y p e o f   b . c r e a t e E l e m e n t = = = " u n d e f i n e d " & & ( b = b . o w n e r D o c u m e n t | | b [ 0 ] & & b [ 0 ] . o w n e r D o c u m e n t | | c ) ; v a r   g = [ ] ; f o r ( v a r   h = 0 , i ; ( i = a [ h ] ) ! = n u l l ; h + + ) { t y p e o f   i = = = " n u m b e r " & & ( i + = " " ) ; i f ( ! i ) c o n t i n u e ; i f ( t y p e o f   i ! = = " s t r i n g " | | U . t e s t ( i ) ) { i f ( t y p e o f   i = = = " s t r i n g " ) { i = i . r e p l a c e ( R , " < $ 1 > < / $ 2 > " ) ; v a r   j = ( S . e x e c ( i ) | | [ " " , " " ] ) [ 1 ] . t o L o w e r C a s e ( ) , k = X [ j ] | | X . _ d e f a u l t , l = k [ 0 ] , m = b . c r e a t e E l e m e n t ( " d i v " ) ; m . i n n e r H T M L = k [ 1 ] + i + k [ 2 ] ; w h i l e ( l - - ) m = m . l a s t C h i l d ; i f ( ! d . s u p p o r t . t b o d y ) { v a r   n = T . t e s t ( i ) , o = j = = = " t a b l e " & & ! n ? m . f i r s t C h i l d & & m . f i r s t C h i l d . c h i l d N o d e s : k [ 1 ] = = = " < t a b l e > " & & ! n ? m . c h i l d N o d e s : [ ] ; f o r ( v a r   p = o . l e n g t h - 1 ; p > = 0 ; - - p ) d . n o d e N a m e ( o [ p ] , " t b o d y " ) & & ! o [ p ] . c h i l d N o d e s . l e n g t h & & o [ p ] . p a r e n t N o d e . r e m o v e C h i l d ( o [ p ] ) } ! d . s u p p o r t . l e a d i n g W h i t e s p a c e & & Q . t e s t ( i ) & & m . i n s e r t B e f o r e ( b . c r e a t e T e x t N o d e ( Q . e x e c ( i ) [ 0 ] ) , m . f i r s t C h i l d ) , i = m . c h i l d N o d e s } } e l s e   i = b . c r e a t e T e x t N o d e ( i ) ; i . n o d e T y p e ? g . p u s h ( i ) : g = d . m e r g e ( g , i ) } i f ( e ) f o r ( h = 0 ; g [ h ] ; h + + ) ! f | | ! d . n o d e N a m e ( g [ h ] , " s c r i p t " ) | | g [ h ] . t y p e & & g [ h ] . t y p e . t o L o w e r C a s e ( ) ! = = " t e x t / j a v a s c r i p t " ? ( g [ h ] . n o d e T y p e = = = 1 & & g . s p l i c e . a p p l y ( g , [ h + 1 , 0 ] . c o n c a t ( d . m a k e A r r a y ( g [ h ] . g e t E l e m e n t s B y T a g N a m e ( " s c r i p t " ) ) ) ) , e . a p p e n d C h i l d ( g [ h ] ) ) : f . p u s h ( g [ h ] . p a r e n t N o d e ? g [ h ] . p a r e n t N o d e . r e m o v e C h i l d ( g [ h ] ) : g [ h ] ) ; r e t u r n   g } , c l e a n D a t a : f u n c t i o n ( a ) { v a r   b , c , e = d . c a c h e , f = d . e x p a n d o , g = d . e v e n t . s p e c i a l , h = d . s u p p o r t . d e l e t e E x p a n d o ; f o r ( v a r   i = 0 , j ; ( j = a [ i ] ) ! = n u l l ; i + + ) { i f ( j . n o d e N a m e & & d . n o D a t a [ j . n o d e N a m e . t o L o w e r C a s e ( ) ] ) c o n t i n u e ; c = j [ d . e x p a n d o ] ; i f ( c ) { b = e [ c ] & & e [ c ] [ f ] ; i f ( b & & b . e v e n t s ) { f o r ( v a r   k   i n   b . e v e n t s ) g [ k ] ? d . e v e n t . r e m o v e ( j , k ) : d . r e m o v e E v e n t ( j , k , b . h a n d l e ) ; b . h a n d l e & & ( b . h a n d l e . e l e m = n u l l ) } h ? d e l e t e   j [ d . e x p a n d o ] : j . r e m o v e A t t r i b u t e & & j . r e m o v e A t t r i b u t e ( d . e x p a n d o ) , d e l e t e   e [ c ] } } } } ) ; v a r   b a = / a l p h a \ ( [ ^ ) ] * \ ) / i , b b = / o p a c i t y = ( [ ^ ) ] * ) / , b c = / - ( [ a - z ] ) / i g , b d = / ( [ A - Z ] ) / g , b e = / ^ - ? \ d + ( ? : p x ) ? $ / i , b f = / ^ - ? \ d / , b g = { p o s i t i o n : " a b s o l u t e " , v i s i b i l i t y : " h i d d e n " , d i s p l a y : " b l o c k " } , b h = [ " L e f t " , " R i g h t " ] , b i = [ " T o p " , " B o t t o m " ] , b j , b k , b l , b m = f u n c t i o n ( a , b ) { r e t u r n   b . t o U p p e r C a s e ( ) } ; d . f n . c s s = f u n c t i o n ( a , c ) { i f ( a r g u m e n t s . l e n g t h = = = 2 & & c = = = b ) r e t u r n   t h i s ; r e t u r n   d . a c c e s s ( t h i s , a , c , ! 0 , f u n c t i o n ( a , c , e ) { r e t u r n   e ! = = b ? d . s t y l e ( a , c , e ) : d . c s s ( a , c ) } ) } , d . e x t e n d ( { c s s H o o k s : { o p a c i t y : { g e t : f u n c t i o n ( a , b ) { i f ( b ) { v a r   c = b j ( a , " o p a c i t y " , " o p a c i t y " ) ; r e t u r n   c = = = " " ? " 1 " : c } r e t u r n   a . s t y l e . o p a c i t y } } } , c s s N u m b e r : { z I n d e x : ! 0 , f o n t W e i g h t : ! 0 , o p a c i t y : ! 0 , z o o m : ! 0 , l i n e H e i g h t : ! 0 } , c s s P r o p s : { " f l o a t " : d . s u p p o r t . c s s F l o a t ? " c s s F l o a t " : " s t y l e F l o a t " } , s t y l e : f u n c t i o n ( a , c , e , f ) { i f ( a & & a . n o d e T y p e ! = = 3 & & a . n o d e T y p e ! = = 8 & & a . s t y l e ) { v a r   g , h = d . c a m e l C a s e ( c ) , i = a . s t y l e , j = d . c s s H o o k s [ h ] ; c = d . c s s P r o p s [ h ] | | h ; i f ( e = = = b ) { i f ( j & & " g e t " i n   j & & ( g = j . g e t ( a , ! 1 , f ) ) ! = = b ) r e t u r n   g ; r e t u r n   i [ c ] } i f ( t y p e o f   e = = = " n u m b e r " & & i s N a N ( e ) | | e = = n u l l ) r e t u r n ; t y p e o f   e = = = " n u m b e r " & & ! d . c s s N u m b e r [ h ] & & ( e + = " p x " ) ; i f ( ! j | | ! ( " s e t " i n   j ) | | ( e = j . s e t ( a , e ) ) ! = = b ) t r y { i [ c ] = e } c a t c h ( k ) { } } } , c s s : f u n c t i o n ( a , c , e ) { v a r   f , g = d . c a m e l C a s e ( c ) , h = d . c s s H o o k s [ g ] ; c = d . c s s P r o p s [ g ] | | g ; i f ( h & & " g e t " i n   h & & ( f = h . g e t ( a , ! 0 , e ) ) ! = = b ) r e t u r n   f ; i f ( b j ) r e t u r n   b j ( a , c , g ) } , s w a p : f u n c t i o n ( a , b , c ) { v a r   d = { } ; f o r ( v a r   e   i n   b ) d [ e ] = a . s t y l e [ e ] , a . s t y l e [ e ] = b [ e ] ; c . c a l l ( a ) ; f o r ( e   i n   b ) a . s t y l e [ e ] = d [ e ] } , c a m e l C a s e : f u n c t i o n ( a ) { r e t u r n   a . r e p l a c e ( b c , b m ) } } ) , d . c u r C S S = d . c s s , d . e a c h ( [ " h e i g h t " , " w i d t h " ] , f u n c t i o n ( a , b ) { d . c s s H o o k s [ b ] = { g e t : f u n c t i o n ( a , c , e ) { v a r   f ; i f ( c ) { a . o f f s e t W i d t h ! = = 0 ? f = b n ( a , b , e ) : d . s w a p ( a , b g , f u n c t i o n ( ) { f = b n ( a , b , e ) } ) ; i f ( f < = 0 ) { f = b j ( a , b , b ) , f = = = " 0 p x " & & b l & & ( f = b l ( a , b , b ) ) ; i f ( f ! = n u l l ) r e t u r n   f = = = " " | | f = = = " a u t o " ? " 0 p x " : f } i f ( f < 0 | | f = = n u l l ) { f = a . s t y l e [ b ] ; r e t u r n   f = = = " " | | f = = = " a u t o " ? " 0 p x " : f } r e t u r n   t y p e o f   f = = = " s t r i n g " ? f : f + " p x " } } , s e t : f u n c t i o n ( a , b ) { i f ( ! b e . t e s t ( b ) ) r e t u r n   b ; b = p a r s e F l o a t ( b ) ; i f ( b > = 0 ) r e t u r n   b + " p x " } } } ) , d . s u p p o r t . o p a c i t y | | ( d . c s s H o o k s . o p a c i t y = { g e t : f u n c t i o n ( a , b ) { r e t u r n   b b . t e s t ( ( b & & 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 . f i l t e r : a . s t y l e . f i l t e r ) | | " " ) ? p a r s e F l o a t ( R e g E x p . $ 1 ) / 1 0 0 + " " : b ? " 1 " : " " } , s e t : f u n c t i o n ( a , b ) { v a r   c = a . s t y l e ; c . z o o m = 1 ; v a r   e = d . i s N a N ( b ) ? " " : " a l p h a ( o p a c i t y = " + b * 1 0 0 + " ) " , f = c . f i l t e r | | " " ; c . f i l t e r = b a . t e s t ( f ) ? f . r e p l a c e ( b a , e ) : c . f i l t e r + "   " + e } } ) , c . d e f a u l t V i e w & & c . 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 & & ( b k = f u n c t i o n ( a , c , e ) { v a r   f , g , h ; e = e . r e p l a c e ( b d , " - $ 1 " ) . t o L o w e r C a s e ( ) ; i f ( ! ( g = a . o w n e r D o c u m e n t . d e f a u l t V i e w ) ) r e t u r n   b ; i f ( h = g . g e t C o m p u t e d S t y l e ( a , n u l l ) ) f = h . g e t P r o p e r t y V a l u e ( e ) , f = = = " " & & ! d . c o n t a i n s ( a . o w n e r D o c u m e n t . d o c u m e n t E l e m e n t , a ) & & ( f = d . s t y l e ( a , e ) ) ; r e t u r n   f } ) , c . 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 & & ( b l = f u n c t i o n ( a , b ) { v a r   c , d = 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 ] , e = a . r u n t i m e S t y l e & & a . r u n t i m e S t y l e [ b ] , f = a . s t y l e ; ! b e . t e s t ( d ) & & b f . t e s t ( d ) & & ( c = f . l e f t , e & & ( a . r u n t i m e S t y l e . l e f t = a . c u r r e n t S t y l e . l e f t ) , f . l e f t = b = = = " f o n t S i z e " ? " 1 e m " : d | | 0 , d = f . p i x e l L e f t + " p x " , f . l e f t = c , e & & ( a . r u n t i m e S t y l e . l e f t = e ) ) ; r e t u r n   d = = = " " ? " a u t o " : d } ) , b j = b k | | b l , d . e x p r & & d . e x p r . f i l t e r s & & ( d . e x p r . f i l t e r s . h i d d e n = f u n c t i o n ( a ) { v a r   b = a . o f f s e t W i d t h , c = a . o f f s e t H e i g h t ; r e t u r n   b = = = 0 & & c = = = 0 | | ! d . s u p p o r t . r e l i a b l e H i d d e n O f f s e t s & & ( a . s t y l e . d i s p l a y | | d . c s s ( a , " d i s p l a y " ) ) = = = " n o n e " } , d . e x p r . f i l t e r s . v i s i b l e = f u n c t i o n ( a ) { r e t u r n ! d . e x p r . f i l t e r s . h i d d e n ( a ) } ) ; v a r   b o = / % 2 0 / g , b p = / \ [ \ ] $ / , b q = / \ r ? \ n / g , b r = / # . * $ / , b s = / ^ ( . * ? ) : \ s * ( . * ? ) \ r ? $ / m g , b t = / ^ ( ? : c o l o r | d a t e | d a t e t i m e | e m a i l | h i d d e n | m o n t h | n u m b e r | p a s s w o r d | r a n g e | s e a r c h | t e l | t e x t | t i m e | u r l | w e e k ) $ / i , b u = / ^ ( ? : G E T | H E A D ) $ / , b v = / ^ \ / \ / / , b w = / \ ? / , b x = / < s c r i p t \ b [ ^ < ] * ( ? : ( ? ! < \ / s c r i p t > ) < [ ^ < ] * ) * < \ / s c r i p t > / g i , b y = / ^ ( ? : s e l e c t | t e x t a r e a ) / i , b z = / \ s + / , b A = / ( [ ? & ] ) _ = [ ^ & ] * / , b B = / ^ ( \ w + : ) \ / \ / ( [ ^ \ / ? # : ] + ) ( ? : : ( \ d + ) ) ? / , b C = d . f n . l o a d , b D = { } , b E = { } ; d . f n . e x t e n d ( { l o a d : f u n c t i o n ( a , b , c ) { i f ( t y p e o f   a ! = = " s t r i n g " & & b C ) r e t u r n   b C . a p p l y ( t h i s , a r g u m e n t s ) ; i f ( ! t h i s . l e n g t h ) r e t u r n   t h i s ; v a r   e = a . i n d e x O f ( "   " ) ; i f ( e > = 0 ) { v a r   f = a . s l i c e ( e , a . l e n g t h ) ; a = a . s l i c e ( 0 , e ) } v a r   g = " G E T " ; b & & ( d . i s F u n c t i o n ( b ) ? ( c = b , b = n u l l ) : t y p e o f   b = = = " o b j e c t " & & ( b = d . p a r a m ( b , d . a j a x S e t t i n g s . t r a d i t i o n a l ) , g = " P O S T " ) ) ; v a r   h = t h i s ; d . a j a x ( { u r l : a , t y p e : g , d a t a T y p e : " h t m l " , d a t a : b , c o m p l e t e : f u n c t i o n ( a , b , e ) { e = a . r e s p o n s e T e x t , a . i s R e s o l v e d ( ) & & ( a . d o n e ( f u n c t i o n ( a ) { e = a } ) , h . h t m l ( f ? d ( " < d i v > " ) . a p p e n d ( e . r e p l a c e ( b x , " " ) ) . f i n d ( f ) : e ) ) , c & & h . e a c h ( c , [ e , b , a ] ) } } ) ; r e t u r n   t h i s } , s e r i a l i z e : f u n c t i o n ( ) { r e t u r n   d . p a r a m ( t h i s . s e r i a l i z e A r r a y ( ) ) } , s e r i a l i z e A r r a y : f u n c t i o n ( ) { r e t u r n   t h i s . m a p ( f u n c t i o n ( ) { r e t u r n   t h i s . e l e m e n t s ? d . m a k e A r r a y ( t h i s . e l e m e n t s ) : t h i s } ) . f i l t e r ( f u n c t i o n ( ) { r e t u r n   t h i s . n a m e & & ! t h i s . d i s a b l e d & & ( t h i s . c h e c k e d | | b y . t e s t ( t h i s . n o d e N a m e ) | | b t . t e s t ( t h i s . t y p e ) ) } ) . m a p ( f u n c t i o n ( a , b ) { v a r   c = d ( t h i s ) . v a l ( ) ; r e t u r n   c = = n u l l ? n u l l : d . i s A r r a y ( c ) ? d . m a p ( c , f u n c t i o n ( a , c ) { r e t u r n { n a m e : b . n a m e , v a l u e : a . r e p l a c e ( b q , " \ r \ n " ) } } ) : { n a m e : b . n a m e , v a l u e : c . r e p l a c e ( b q , " \ r \ n " ) } } ) . g e t ( ) } } ) , d . e a c h ( " a j a x S t a r t   a j a x S t o p   a j a x C o m p l e t e   a j a x E r r o r   a j a x S u c c e s s   a j a x S e n d " . s p l i t ( "   " ) , f u n c t i o n ( a , b ) { d . f n [ b ] = f u n c t i o n ( a ) { r e t u r n   t h i s . b i n d ( b , a ) } } ) , d . e a c h ( [ " g e t " , " p o s t " ] , f u n c t i o n ( a , b ) { d [ b ] = f u n c t i o n ( a , c , e , f ) { d . i s F u n c t i o n ( c ) & & ( f = f | | e , e = c , c = n u l l ) ; r e t u r n   d . a j a x ( { t y p e : b , u r l : a , d a t a : c , s u c c e s s : e , d a t a T y p e : f } ) } } ) , d . e x t e n d ( { g e t S c r i p t : f u n c t i o n ( a , b ) { r e t u r n   d . g e t ( a , n u l l , b , " s c r i p t " ) } , g e t J S O N : f u n c t i o n ( a , b , c ) { r e t u r n   d . g e t ( a , b , c , " j s o n " ) } , a j a x S e t u p : f u n c t i o n ( a ) { d . e x t e n d ( ! 0 , d . a j a x S e t t i n g s , a ) , a . c o n t e x t & & ( d . a j a x S e t t i n g s . c o n t e x t = a . c o n t e x t ) } , a j a x S e t t i n g s : { u r l : l o c a t i o n . h r e f , g l o b a l : ! 0 , t y p e : " G E T " , c o n t e n t T y p e : " a p p l i c a t i o n / x - w w w - f o r m - u r l e n c o d e d " , p r o c e s s D a t a : ! 0 , a s y n c : ! 0 , a c c e p t s : { x m l : " a p p l i c a t i o n / x m l ,   t e x t / x m l " , h t m l : " t e x t / h t m l " , t e x t : " t e x t / p l a i n " , j s o n : " a p p l i c a t i o n / j s o n ,   t e x t / j a v a s c r i p t " , " * " : " * / * " } , c o n t e n t s : { x m l : / x m l / , h t m l : / h t m l / , j s o n : / j s o n / } , r e s p o n s e F i e l d s : { x m l : " r e s p o n s e X M L " , t e x t : " r e s p o n s e T e x t " } , c o n v e r t e r s : { " *   t e x t " : a . S t r i n g , " t e x t   h t m l " : ! 0 , " t e x t   j s o n " : d . p a r s e J S O N , " t e x t   x m l " : d . p a r s e X M L } } , a j a x P r e f i l t e r : b F ( b D ) , a j a x T r a n s p o r t : b F ( b E ) , a j a x : f u n c t i o n ( a , e ) { f u n c t i o n   w ( a , c , e , l ) { i f ( t ! = = 2 ) { t = 2 , p & & c l e a r T i m e o u t ( p ) , o = b , m = l | | " " , v . r e a d y S t a t e = a ? 4 : 0 ; v a r   n , q , r , s = e ? b I ( f , v , e ) : b , u , w ; i f ( a > = 2 0 0 & & a < 3 0 0 | | a = = = 3 0 4 ) { i f ( f . i f M o d i f i e d ) { i f ( u = v . g e t R e s p o n s e H e a d e r ( " L a s t - M o d i f i e d " ) ) d . l a s t M o d i f i e d [ f . u r l ] = u ; i f ( w = v . g e t R e s p o n s e H e a d e r ( " E t a g " ) ) d . e t a g [ f . u r l ] = w } i f ( a = = = 3 0 4 ) c = " n o t m o d i f i e d " , n = ! 0 ; e l s e   t r y { q = b J ( f , s ) , c = " s u c c e s s " , n = ! 0 } c a t c h ( x ) { c = " p a r s e r e r r o r " , r = x } } e l s e   r = c , a & & ( c = " e r r o r " , a < 0 & & ( a = 0 ) ) ; v . s t a t u s = a , v . s t a t u s T e x t = c , n ? i . r e s o l v e W i t h ( g , [ q , c , v ] ) : i . r e j e c t W i t h ( g , [ v , c , r ] ) , v . s t a t u s C o d e ( k ) , k = b , f . g l o b a l & & h . t r i g g e r ( " a j a x " + ( n ? " S u c c e s s " : " E r r o r " ) , [ v , f , n ? q : r ] ) , j . r e s o l v e W i t h ( g , [ v , c ] ) , f . g l o b a l & & ( h . t r i g g e r ( " a j a x C o m p l e t e " , [ v , f ] ) , - - d . a c t i v e | | d . e v e n t . t r i g g e r ( " a j a x S t o p " ) ) } } t y p e o f   e ! = = " o b j e c t " & & ( e = a , a = b ) , e = e | | { } ; v a r   f = d . e x t e n d ( ! 0 , { } , d . a j a x S e t t i n g s , e ) , g = ( f . c o n t e x t = ( " c o n t e x t " i n   e ? e : d . a j a x S e t t i n g s ) . c o n t e x t ) | | f , h = g = = = f ? d . e v e n t : d ( g ) , i = d . D e f e r r e d ( ) , j = d . _ D e f e r r e d ( ) , k = f . s t a t u s C o d e | | { } , l = { } , m , n , o , p , q = c . l o c a t i o n , r = q . p r o t o c o l | | " h t t p : " , s , t = 0 , u , v = { r e a d y S t a t e : 0 , s e t R e q u e s t H e a d e r : f u n c t i o n ( a , b ) { t = = = 0 & & ( l [ a . t o L o w e r C a s e ( ) ] = b ) ; r e t u r n   t h i s } , g e t A l l R e s p o n s e H e a d e r s : f u n c t i o n ( ) { r e t u r n   t = = = 2 ? m : n u l l } , g e t R e s p o n s e H e a d e r : f u n c t i o n ( a ) { v a r   b ; i f ( t = = = 2 ) { i f ( ! n ) { n = { } ; w h i l e ( b = b s . e x e c ( m ) ) n [ b [ 1 ] . t o L o w e r C a s e ( ) ] = b [ 2 ] } b = n [ a . t o L o w e r C a s e ( ) ] } r e t u r n   b | | n u l l } , a b o r t : f u n c t i o n ( a ) { a = a | | " a b o r t " , o & & o . a b o r t ( a ) , w ( 0 , a ) ; r e t u r n   t h i s } } ; i . p r o m i s e ( v ) , v . s u c c e s s = v . d o n e , v . e r r o r = v . f a i l , v . c o m p l e t e = j . d o n e , v . s t a t u s C o d e = f u n c t i o n ( a ) { i f ( a ) { v a r   b ; i f ( t < 2 ) f o r ( b   i n   a ) k [ b ] = [ k [ b ] , a [ b ] ] ; e l s e   b = a [ v . s t a t u s ] , v . t h e n ( b , b ) } r e t u r n   t h i s } , f . u r l = ( " " + ( a | | f . u r l ) ) . r e p l a c e ( b r , " " ) . r e p l a c e ( b v , r + " / / " ) , f . d a t a T y p e s = d . t r i m ( f . d a t a T y p e | | " * " ) . t o L o w e r C a s e ( ) . s p l i t ( b z ) , f . c r o s s D o m a i n | | ( s = b B . e x e c ( f . u r l . t o L o w e r C a s e ( ) ) , f . c r o s s D o m a i n = s & & ( s [ 1 ] ! = r | | s [ 2 ] ! = q . h o s t n a m e | | ( s [ 3 ] | | ( s [ 1 ] = = = " h t t p : " ? 8 0 : 4 4 3 ) ) ! = ( q . p o r t | | ( r = = = " h t t p : " ? 8 0 : 4 4 3 ) ) ) ) , f . d a t a & & f . p r o c e s s D a t a & & t y p e o f   f . d a t a ! = = " s t r i n g " & & ( f . d a t a = d . p a r a m ( f . d a t a , f . t r a d i t i o n a l ) ) , b G ( b D , f , e , v ) , f . t y p e = f . t y p e . t o U p p e r C a s e ( ) , f . h a s C o n t e n t = ! b u . t e s t ( f . t y p e ) , f . g l o b a l & & d . a c t i v e + + = = = 0 & & d . e v e n t . t r i g g e r ( " a j a x S t a r t " ) ; i f ( ! f . h a s C o n t e n t ) { f . d a t a & & ( f . u r l + = ( b w . t e s t ( f . u r l ) ? " & " : " ? " ) + f . d a t a ) ; i f ( f . c a c h e = = = ! 1 ) { v a r   x = d . n o w ( ) , y = f . u r l . r e p l a c e ( b A , " $ 1 _ = " + x ) ; f . u r l = y + ( y = = = f . u r l ? ( b w . t e s t ( f . u r l ) ? " & " : " ? " ) + " _ = " + x : " " ) } } i f ( f . d a t a & & f . h a s C o n t e n t & & f . c o n t e n t T y p e ! = = ! 1 | | e . c o n t e n t T y p e ) l [ " c o n t e n t - t y p e " ] = f . c o n t e n t T y p e ; f . i f M o d i f i e d & & ( d . l a s t M o d i f i e d [ f . u r l ] & & ( l [ " i f - m o d i f i e d - s i n c e " ] = d . l a s t M o d i f i e d [ f . u r l ] ) , d . e t a g [ f . u r l ] & & ( l [ " i f - n o n e - m a t c h " ] = d . e t a g [ f . u r l ] ) ) , l . a c c e p t = f . d a t a T y p e s [ 0 ] & & f . a c c e p t s [ f . d a t a T y p e s [ 0 ] ] ? f . a c c e p t s [ f . d a t a T y p e s [ 0 ] ] + ( f . d a t a T y p e s [ 0 ] ! = = " * " ? " ,   * / * ;   q = 0 . 0 1 " : " " ) : f . a c c e p t s [ " * " ] ; f o r ( u   i n   f . h e a d e r s ) l [ u . t o L o w e r C a s e ( ) ] = f . h e a d e r s [ u ] ; i f ( ! f . b e f o r e S e n d | | f . b e f o r e S e n d . c a l l ( g , v , f ) ! = = ! 1 & & t ! = = 2 ) { f o r ( u   i n   { s u c c e s s : 1 , e r r o r : 1 , c o m p l e t e : 1 } ) v [ u ] ( f [ u ] ) ; o = b G ( b E , f , e , v ) ; i f ( o ) { t = v . r e a d y S t a t e = 1 , f . g l o b a l & & h . t r i g g e r ( " a j a x S e n d " , [ v , f ] ) , f . a s y n c & & f . t i m e o u t > 0 & & ( p = s e t T i m e o u t ( f u n c t i o n ( ) { v . a b o r t ( " t i m e o u t " ) } , f . t i m e o u t ) ) ; t r y { o . s e n d ( l , w ) } c a t c h ( z ) { s t a t u s < 2 ? w ( - 1 , z ) : d . e r r o r ( z ) } } e l s e   w ( - 1 , " N o   T r a n s p o r t " ) } e l s e   w ( 0 , " a b o r t " ) , v = ! 1 ; r e t u r n   v } , p a r a m : f u n c t i o n ( a , c ) { v a r   e = [ ] , f = f u n c t i o n ( a , b ) { b = d . i s F u n c t i o n ( b ) ? b ( ) : b , e [ e . l e n g t h ] = e n c o d e U R I C o m p o n e n t ( a ) + " = " + e n c o d e U R I C o m p o n e n t ( b ) } ; c = = = b & & ( c = d . a j a x S e t t i n g s . t r a d i t i o n a l ) ; i f ( d . i s A r r a y ( a ) | | a . j q u e r y ) d . e a c h ( a , f u n c t i o n ( ) { f ( t h i s . n a m e , t h i s . v a l u e ) } ) ; e l s e   f o r ( v a r   g   i n   a ) b H ( g , a [ g ] , c , f ) ; r e t u r n   e . j o i n ( " & " ) . r e p l a c e ( b o , " + " ) } } ) , d . e x t e n d ( { a c t i v e : 0 , l a s t M o d i f i e d : { } , e t a g : { } } ) ; v a r   b K = d . n o w ( ) , b L = / ( \ = ) \ ? ( & | $ ) | ( ) \ ? \ ? ( ) / i ; d . a j a x S e t u p ( { j s o n p : " c a l l b a c k " , j s o n p C a l l b a c k : f u n c t i o n ( ) { r e t u r n   d . e x p a n d o + " _ " + b K + + } } ) , d . a j a x P r e f i l t e r ( " j s o n   j s o n p " , f u n c t i o n ( b , c , e ) { e = t y p e o f   b . d a t a = = = " s t r i n g " ; i f ( b . d a t a T y p e s [ 0 ] = = = " j s o n p " | | c . j s o n p C a l l b a c k | | c . j s o n p ! = n u l l | | b . j s o n p ! = = ! 1 & & ( b L . t e s t ( b . u r l ) | | e & & b L . t e s t ( b . d a t a ) ) ) { v a r   f , g = b . j s o n p C a l l b a c k = d . i s F u n c t i o n ( b . j s o n p C a l l b a c k ) ? b . j s o n p C a l l b a c k ( ) : b . j s o n p C a l l b a c k , h = a [ g ] , i = b . u r l , j = b . d a t a , k = " $ 1 " + g + " $ 2 " ; b . j s o n p ! = = ! 1 & & ( i = i . r e p l a c e ( b L , k ) , b . u r l = = = i & & ( e & & ( j = j . r e p l a c e ( b L , k ) ) , b . d a t a = = = j & & ( i + = ( / \ ? / . t e s t ( i ) ? " & " : " ? " ) + b . j s o n p + " = " + g ) ) ) , b . u r l = i , b . d a t a = j , a [ g ] = f u n c t i o n ( a ) { f = [ a ] } , b . c o m p l e t e = [ f u n c t i o n ( ) { a [ g ] = h ; i f ( h ) f & & d . i s F u n c t i o n ( h ) & & a [ g ] ( f [ 0 ] ) ; e l s e   t r y { d e l e t e   a [ g ] } c a t c h ( b ) { } } , b . c o m p l e t e ] , b . c o n v e r t e r s [ " s c r i p t   j s o n " ] = f u n c t i o n ( ) { f | | d . e r r o r ( g + "   w a s   n o t   c a l l e d " ) ; r e t u r n   f [ 0 ] } , b . d a t a T y p e s [ 0 ] = " j s o n " ; r e t u r n " s c r i p t " } } ) , d . a j a x S e t u p ( { a c c e p t s : { s c r i p t : " t e x t / j a v a s c r i p t ,   a p p l i c a t i o n / j a v a s c r i p t " } , c o n t e n t s : { s c r i p t : / j a v a s c r i p t / } , c o n v e r t e r s : { " t e x t   s c r i p t " : f u n c t i o n ( a ) { d . g l o b a l E v a l ( a ) ; r e t u r n   a } } } ) , d . a j a x P r e f i l t e r ( " s c r i p t " , f u n c t i o n ( a ) { a . c a c h e = = = b & & ( a . c a c h e = ! 1 ) , a . c r o s s D o m a i n & & ( a . t y p e = " G E T " , a . g l o b a l = ! 1 ) } ) , d . a j a x T r a n s p o r t ( " s c r i p t " , f u n c t i o n ( a ) { i f ( a . c r o s s D o m a i n ) { v a r   d , e = c . 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 . d o c u m e n t E l e m e n t ; r e t u r n { s e n d : f u n c t i o n ( f , g ) { d = c . c r e a t e E l e m e n t ( " s c r i p t " ) , d . a s y n c = " a s y n c " , a . s c r i p t C h a r s e t & & ( d . c h a r s e t = a . s c r i p t C h a r s e t ) , d . s r c = a . u r l , d . o n l o a d = d . o n r e a d y s t a t e c h a n g e = f u n c t i o n ( a , c ) { i f ( ! d . r e a d y S t a t e | | / l o a d e d | c o m p l e t e / . t e s t ( d . r e a d y S t a t e ) ) d . o n l o a d = d . o n r e a d y s t a t e c h a n g e = n u l l , e & & d . p a r e n t N o d e & & e . r e m o v e C h i l d ( d ) , d = b , c | | g ( 2 0 0 , " s u c c e s s " ) } , e . i n s e r t B e f o r e ( d , e . f i r s t C h i l d ) } , a b o r t : f u n c t i o n ( ) { d & & d . o n l o a d ( 0 , 1 ) } } } } ) ; v a r   b M = d . n o w ( ) , b N = { } , b O , b P ; d . a j a x S e t t i n g s . x h r = a . A c t i v e X O b j e c t ? f u n c t i o n ( ) { i f ( a . l o c a t i o n . p r o t o c o l ! = = " f i l e : " ) t r y { r e t u r n   n e w   a . X M L H t t p R e q u e s t } c a t c h ( b ) { } t r y { r e t u r n   n e w   a . A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) } c a t c h ( c ) { } } : f u n c t i o n ( ) { r e t u r n   n e w   a . X M L H t t p R e q u e s t } ; t r y { b P = d . a j a x S e t t i n g s . x h r ( ) } c a t c h ( b Q ) { } d . s u p p o r t . a j a x = ! ! b P , d . s u p p o r t . c o r s = b P & & " w i t h C r e d e n t i a l s " i n   b P , b P = b , d . s u p p o r t . a j a x & & d . a j a x T r a n s p o r t ( f u n c t i o n ( b ) { i f ( ! b . c r o s s D o m a i n | | d . s u p p o r t . c o r s ) { v a r   c ; r e t u r n { s e n d : f u n c t i o n ( e , f ) { b O | | ( b O = 1 , d ( a ) . b i n d ( " u n l o a d " , f u n c t i o n ( ) { d . e a c h ( b N , f u n c t i o n ( a , b ) { b . o n r e a d y s t a t e c h a n g e & & b . o n r e a d y s t a t e c h a n g e ( 1 ) } ) } ) ) ; v a r   g = b . x h r ( ) , h ; b . u s e r n a m e ? g . o p e n ( b . t y p e , b . u r l , b . a s y n c , b . u s e r n a m e , b . p a s s w o r d ) : g . o p e n ( b . t y p e , b . u r l , b . a s y n c ) , ( ! b . c r o s s D o m a i n | | b . h a s C o n t e n t ) & & ! e [ " x - r e q u e s t e d - w i t h " ] & & ( e [ " x - r e q u e s t e d - w i t h " ] = " X M L H t t p R e q u e s t " ) ; t r y { d . e a c h ( e , f u n c t i o n ( a , b ) { g . s e t R e q u e s t H e a d e r ( a , b ) } ) } c a t c h ( i ) { } g . s e n d ( b . h a s C o n t e n t & & b . d a t a | | n u l l ) , c = f u n c t i o n ( a , e ) { i f ( c & & ( e | | g . r e a d y S t a t e = = = 4 ) ) { c = 0 , h & & ( g . o n r e a d y s t a t e c h a n g e = d . n o o p , d e l e t e   b N [ h ] ) ; i f ( e ) g . r e a d y S t a t e ! = = 4 & & g . a b o r t ( ) ; e l s e { v a r   i = g . s t a t u s , j , k = g . g e t A l l R e s p o n s e H e a d e r s ( ) , l = { } , m = g . r e s p o n s e X M L ; m & & m . d o c u m e n t E l e m e n t & & ( l . x m l = m ) , l . t e x t = g . r e s p o n s e T e x t ; t r y { j = g . s t a t u s T e x t } c a t c h ( n ) { j = " " } i = i = = = 0 ? ! b . c r o s s D o m a i n | | j ? k ? 3 0 4 : 0 : 3 0 2 : i = = 1 2 2 3 ? 2 0 4 : i , f ( i , j , l , k ) } } } , b . a s y n c & & g . r e a d y S t a t e ! = = 4 ? ( h = b M + + , b N [ h ] = g , g . o n r e a d y s t a t e c h a n g e = c ) : c ( ) } , a b o r t : f u n c t i o n ( ) { c & & c ( 0 , 1 ) } } } } ) ; v a r   b R = { } , b S = / ^ ( ? : t o g g l e | s h o w | h i d e ) $ / , b T = / ^ ( [ + \ - ] = ) ? ( [ \ d + . \ - ] + ) ( [ a - z % ] * ) $ / i , b U , b V = [ [ " h e i g h t " , " m a r g i n T o p " , " m a r g i n B o t t o m " , " p a d d i n g T o p " , " p a d d i n g B o t t o m " ] , [ " w i d t h " , " m a r g i n L e f t " , " m a r g i n R i g h t " , " p a d d i n g L e f t " , " p a d d i n g R i g h t " ] , [ " o p a c i t y " ] ] ; d . f n . e x t e n d ( { s h o w : f u n c t i o n ( a , b , c ) { v a r   e , f ; i f ( a | | a = = = 0 ) r e t u r n   t h i s . a n i m a t e ( b W ( " s h o w " , 3 ) , a , b , c ) ; f o r ( v a r   g = 0 , h = t h i s . l e n g t h ; g < h ; g + + ) e = t h i s [ g ] , f = e . s t y l e . d i s p l a y , ! d . _ d a t a ( e , " o l d d i s p l a y " ) & & f = = = " n o n e " & & ( f = e . s t y l e . d i s p l a y = " " ) , f = = = " " & & d . c s s ( e , " d i s p l a y " ) = = = " n o n e " & & d . _ d a t a ( e , " o l d d i s p l a y " , b X ( e . n o d e N a m e ) ) ; f o r ( g = 0 ; g < h ; g + + ) { e = t h i s [ g ] , f = e . s t y l e . d i s p l a y ; i f ( f = = = " " | | f = = = " n o n e " ) e . s t y l e . d i s p l a y = d . _ d a t a ( e , " o l d d i s p l a y " ) | | " " } r e t u r n   t h i s } , h i d e : f u n c t i o n ( a , b , c ) { i f ( a | | a = = = 0 ) r e t u r n   t h i s . a n i m a t e ( b W ( " h i d e " , 3 ) , a , b , c ) ; f o r ( v a r   e = 0 , f = t h i s . l e n g t h ; e < f ; e + + ) { v a r   g = d . c s s ( t h i s [ e ] , " d i s p l a y " ) ; g ! = = " n o n e " & & ! d . _ d a t a ( t h i s [ e ] , " o l d d i s p l a y " ) & & d . _ d a t a ( t h i s [ e ] , " o l d d i s p l a y " , g ) } f o r ( e = 0 ; e < f ; e + + ) t h i s [ e ] . s t y l e . d i s p l a y = " n o n e " ; r e t u r n   t h i s } , _ t o g g l e : d . f n . t o g g l e , t o g g l e : f u n c t i o n ( a , b , c ) { v a r   e = t y p e o f   a = = = " b o o l e a n " ; d . i s F u n c t i o n ( a ) & & d . i s F u n c t i o n ( b ) ? t h i s . _ t o g g l e . a p p l y ( t h i s , a r g u m e n t s ) : a = = n u l l | | e ? t h i s . e a c h ( f u n c t i o n ( ) { v a r   b = e ? a : d ( t h i s ) . i s ( " : h i d d e n " ) ; d ( t h i s ) [ b ? " s h o w " : " h i d e " ] ( ) } ) : t h i s . a n i m a t e ( b W ( " t o g g l e " , 3 ) , a , b , c ) ; r e t u r n   t h i s } , f a d e T o : f u n c t i o n ( a , b , c , d ) { r e t u r n   t h i s . f i l t e r ( " : h i d d e n " ) . c s s ( " o p a c i t y " , 0 ) . s h o w ( ) . e n d ( ) . a n i m a t e ( { o p a c i t y : b } , a , c , d ) } , a n i m a t e : f u n c t i o n ( a , b , c , e ) { v a r   f = d . s p e e d ( b , c , e ) ; i f ( d . i s E m p t y O b j e c t ( a ) ) r e t u r n   t h i s . e a c h ( f . c o m p l e t e ) ; r e t u r n   t h i s [ f . q u e u e = = = ! 1 ? " e a c h " : " q u e u e " ] ( f u n c t i o n ( ) { v a r   b = d . e x t e n d ( { } , f ) , c , e = t h i s . n o d e T y p e = = = 1 , g = e & & d ( t h i s ) . i s ( " : h i d d e n " ) , h = t h i s ; f o r ( c   i n   a ) { v a r   i = d . c a m e l C a s e ( c ) ; c ! = = i & & ( a [ i ] = a [ c ] , d e l e t e   a [ c ] , c = i ) ; i f ( a [ c ] = = = " h i d e " & & g | | a [ c ] = = = " s h o w " & & ! g ) r e t u r n   b . c o m p l e t e . c a l l ( t h i s ) ; i f ( e & & ( c = = = " h e i g h t " | | c = = = " w i d t h " ) ) { b . o v e r f l o w = [ t h i s . s t y l e . o v e r f l o w , t h i s . s t y l e . o v e r f l o w X , t h i s . s t y l e . o v e r f l o w Y ] ; i f ( d . c s s ( t h i s , " d i s p l a y " ) = = = " i n l i n e " & & d . c s s ( t h i s , " f l o a t " ) = = = " n o n e " ) i f ( d . s u p p o r t . i n l i n e B l o c k N e e d s L a y o u t ) { v a r   j = b X ( t h i s . n o d e N a m e ) ; j = = = " i n l i n e " ? t h i s . s t y l e . d i s p l a y = " i n l i n e - b l o c k " : ( t h i s . s t y l e . d i s p l a y = " i n l i n e " , t h i s . s t y l e . z o o m = 1 ) } e l s e   t h i s . s t y l e . d i s p l a y = " i n l i n e - b l o c k " } d . i s A r r a y ( a [ c ] ) & & ( ( b . s p e c i a l E a s i n g = b . s p e c i a l E a s i n g | | { } ) [ c ] = a [ c ] [ 1 ] , a [ c ] = a [ c ] [ 0 ] ) } b . o v e r f l o w ! = n u l l & & ( t h i s . s t y l e . o v e r f l o w = " h i d d e n " ) , b . c u r A n i m = d . e x t e n d ( { } , a ) , d . e a c h ( a , f u n c t i o n ( c , e ) { v a r   f = n e w   d . f x ( h , b , c ) ; i f ( b S . t e s t ( e ) ) f [ e = = = " t o g g l e " ? g ? " s h o w " : " h i d e " : e ] ( a ) ; e l s e { v a r   i = b T . e x e c ( e ) , j = f . c u r ( ) | | 0 ; i f ( i ) { v a r   k = p a r s e F l o a t ( i [ 2 ] ) , l = i [ 3 ] | | " p x " ; l ! = = " p x " & & ( d . s t y l e ( h , c , ( k | | 1 ) + l ) , j = ( k | | 1 ) / f . c u r ( ) * j , d . s t y l e ( h , c , j + l ) ) , i [ 1 ] & & ( k = ( i [ 1 ] = = = " - = " ? - 1 : 1 ) * k + j ) , f . c u s t o m ( j , k , l ) } e l s e   f . c u s t o m ( j , e , " " ) } } ) ; r e t u r n ! 0 } ) } , s t o p : f u n c t i o n ( a , b ) { v a r   c = d . t i m e r s ; a & & t h i s . q u e u e ( [ ] ) , t h i s . e a c h ( f u n c t i o n ( ) { f o r ( v a r   a = c . l e n g t h - 1 ; a > = 0 ; a - - ) c [ a ] . e l e m = = = t h i s & & ( b & & c [ a ] ( ! 0 ) , c . s p l i c e ( a , 1 ) ) } ) , b | | t h i s . d e q u e u e ( ) ; r e t u r n   t h i s } } ) , d . e a c h ( { s l i d e D o w n : b W ( " s h o w " , 1 ) , s l i d e U p : b W ( " h i d e " , 1 ) , s l i d e T o g g l e : b W ( " t o g g l e " , 1 ) , f a d e I n : { o p a c i t y : " s h o w " } , f a d e O u t : { o p a c i t y : " h i d e " } , f a d e T o g g l e : { o p a c i t y : " t o g g l e " } } , f u n c t i o n ( a , b ) { d . f n [ a ] = f u n c t i o n ( a , c , d ) { r e t u r n   t h i s . a n i m a t e ( b , a , c , d ) } } ) , d . e x t e n d ( { s p e e d : f u n c t i o n ( a , b , c ) { v a r   e = a & & t y p e o f   a = = = " o b j e c t " ? d . e x t e n d ( { } , a ) : { c o m p l e t e : c | | ! c & & b | | d . i s F u n c t i o n ( a ) & & a , d u r a t i o n : a , e a s i n g : c & & b | | b & & ! d . i s F u n c t i o n ( b ) & & b } ; e . d u r a t i o n = d . f x . o f f ? 0 : t y p e o f   e . d u r a t i o n = = = " n u m b e r " ? e . d u r a t i o n : e . d u r a t i o n   i n   d . f x . s p e e d s ? d . f x . s p e e d s [ e . d u r a t i o n ] : d . f x . s p e e d s . _ d e f a u l t , e . o l d = e . c o m p l e t e , e . c o m p l e t e = f u n c t i o n ( ) { e . q u e u e ! = = ! 1 & & d ( t h i s ) . d e q u e u e ( ) , d . i s F u n c t i o n ( e . o l d ) & & e . o l d . c a l l ( t h i s ) } ; r e t u r n   e } , e a s i n g : { l i n e a r : f u n c t i o n ( a , b , c , d ) { r e t u r n   c + d * a } , s w i n g : f u n c t i o n ( a , b , c , d ) { r e t u r n ( - M a t h . c o s ( a * M a t h . P I ) / 2 + . 5 ) * d + c } } , t i m e r s : [ ] , f x : f u n c t i o n ( a , b , c ) { t h i s . o p t i o n s = b , t h i s . e l e m = a , t h i s . p r o p = c , b . o r i g | | ( b . o r i g = { } ) } } ) , d . f x . p r o t o t y p e = { u p d a t e : f u n c t i o n ( ) { t h i s . o p t i o n s . s t e p & & t h i s . o p t i o n s . s t e p . c a l l ( t h i s . e l e m , t h i s . n o w , t h i s ) , ( d . f x . s t e p [ t h i s . p r o p ] | | d . f x . s t e p . _ d e f a u l t ) ( t h i s ) } , c u r : f u n c t i o n ( ) { i f ( t h i s . e l e m [ t h i s . p r o p ] ! = n u l l & & ( ! t h i s . e l e m . s t y l e | | t h i s . e l e m . s t y l e [ t h i s . p r o p ] = = n u l l ) ) r e t u r n   t h i s . e l e m [ t h i s . p r o p ] ; v a r   a = p a r s e F l o a t ( d . c s s ( t h i s . e l e m , t h i s . p r o p ) ) ; r e t u r n   a | | 0 } , c u s t o m : f u n c t i o n ( a , b , c ) { f u n c t i o n   g ( a ) { r e t u r n   e . s t e p ( a ) } v a r   e = t h i s , f = d . f x ; t h i s . s t a r t T i m e = d . n o w ( ) , t h i s . s t a r t = a , t h i s . e n d = b , t h i s . u n i t = c | | t h i s . u n i t | | " p x " , t h i s . n o w = t h i s . s t a r t , t h i s . p o s = t h i s . s t a t e = 0 , g . e l e m = t h i s . e l e m , g ( ) & & d . t i m e r s . p u s h ( g ) & & ! b U & & ( b U = s e t I n t e r v a l ( f . t i c k , f . i n t e r v a l ) ) } , s h o w : f u n c t i o n ( ) { t h i s . o p t i o n s . o r i g [ t h i s . p r o p ] = d . s t y l e ( t h i s . e l e m , t h i s . p r o p ) , t h i s . o p t i o n s . s h o w = ! 0 , t h i s . c u s t o m ( t h i s . p r o p = = = " w i d t h " | | t h i s . p r o p = = = " h e i g h t " ? 1 : 0 , t h i s . c u r ( ) ) , d ( t h i s . e l e m ) . s h o w ( ) } , h i d e : f u n c t i o n ( ) { t h i s . o p t i o n s . o r i g [ t h i s . p r o p ] = d . s t y l e ( t h i s . e l e m , t h i s . p r o p ) , t h i s . o p t i o n s . h i d e = ! 0 , t h i s . c u s t o m ( t h i s . c u r ( ) , 0 ) } , s t e p : f u n c t i o n ( a ) { v a r   b = d . n o w ( ) , c = ! 0 ; i f ( a | | b > = t h i s . o p t i o n s . d u r a t i o n + t h i s . s t a r t T i m e ) { t h i s . n o w = t h i s . e n d , t h i s . p o s = t h i s . s t a t e = 1 , t h i s . u p d a t e ( ) , t h i s . o p t i o n s . c u r A n i m [ t h i s . p r o p ] = ! 0 ; f o r ( v a r   e   i n   t h i s . o p t i o n s . c u r A n i m ) t h i s . o p t i o n s . c u r A n i m [ e ] ! = = ! 0 & & ( c = ! 1 ) ; i f ( c ) { i f ( t h i s . o p t i o n s . o v e r f l o w ! = n u l l & & ! d . s u p p o r t . s h r i n k W r a p B l o c k s ) { v a r   f = t h i s . e l e m , g = t h i s . o p t i o n s ; d . e a c h ( [ " " , " X " , " Y " ] , f u n c t i o n ( a , b ) { f . s t y l e [ " o v e r f l o w " + b ] = g . o v e r f l o w [ a ] } ) } t h i s . o p t i o n s . h i d e & & d ( t h i s . e l e m ) . h i d e ( ) ; i f ( t h i s . o p t i o n s . h i d e | | t h i s . o p t i o n s . s h o w ) f o r ( v a r   h   i n   t h i s . o p t i o n s . c u r A n i m ) d . s t y l e ( t h i s . e l e m , h , t h i s . o p t i o n s . o r i g [ h ] ) ; t h i s . o p t i o n s . c o m p l e t e . c a l l ( t h i s . e l e m ) } r e t u r n ! 1 } v a r   i = b - t h i s . s t a r t T i m e ; t h i s . s t a t e = i / t h i s . o p t i o n s . d u r a t i o n ; v a r   j = t h i s . o p t i o n s . s p e c i a l E a s i n g & & t h i s . o p t i o n s . s p e c i a l E a s i n g [ t h i s . p r o p ] , k = t h i s . o p t i o n s . e a s i n g | | ( d . e a s i n g . s w i n g ? " s w i n g " : " l i n e a r " ) ; t h i s . p o s = d . e a s i n g [ j | | k ] ( t h i s . s t a t e , i , 0 , 1 , t h i s . o p t i o n s . d u r a t i o n ) , t h i s . n o w = t h i s . s t a r t + ( t h i s . e n d - t h i s . s t a r t ) * t h i s . p o s , t h i s . u p d a t e ( ) ; r e t u r n ! 0 } } , d . e x t e n d ( d . f x , { t i c k : f u n c t i o n ( ) { v a r   a = d . t i m e r s ; f o r ( v a r   b = 0 ; b < a . l e n g t h ; b + + ) a [ b ] ( ) | | a . s p l i c e ( b - - , 1 ) ; a . l e n g t h | | d . f x . s t o p ( ) } , i n t e r v a l : 1 3 , s t o p : f u n c t i o n ( ) { c l e a r I n t e r v a l ( b U ) , b U = n u l l } , s p e e d s : { s l o w : 6 0 0 , f a s t : 2 0 0 , _ d e f a u l t : 4 0 0 } , s t e p : { o p a c i t y : f u n c t i o n ( a ) { d . s t y l e ( a . e l e m , " o p a c i t y " , a . n o w ) } , _ d e f a u l t : f u n c t i o n ( a ) { a . e l e m . s t y l e & & a . e l e m . s t y l e [ a . p r o p ] ! = n u l l ? a . e l e m . s t y l e [ a . p r o p ] = ( a . p r o p = = = " w i d t h " | | a . p r o p = = = " h e i g h t " ? M a t h . m a x ( 0 , a . n o w ) : a . n o w ) + a . u n i t : a . e l e m [ a . p r o p ] = a . n o w } } } ) , d . e x p r & & d . e x p r . f i l t e r s & & ( d . e x p r . f i l t e r s . a n i m a t e d = f u n c t i o n ( a ) { r e t u r n   d . g r e p ( d . t i m e r s , f u n c t i o n ( b ) { r e t u r n   a = = = b . e l e m } ) . l e n g t h } ) ; v a r   b Y = / ^ t ( ? : a b l e | d | h ) $ / i , b Z = / ^ ( ? : b o d y | h t m l ) $ / i ; " g e t B o u n d i n g C l i e n t R e c t " i n   c . d o c u m e n t E l e m e n t ? d . f n . o f f s e t = f u n c t i o n ( a ) { v a r   b = t h i s [ 0 ] , c ; i f ( a ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { d . o f f s e t . s e t O f f s e t ( t h i s , a , b ) } ) ; i f ( ! b | | ! b . o w n e r D o c u m e n t ) r e t u r n   n u l l ; i f ( b = = = b . o w n e r D o c u m e n t . b o d y ) r e t u r n   d . o f f s e t . b o d y O f f s e t ( b ) ; t r y { c = b . g e t B o u n d i n g C l i e n t R e c t ( ) } c a t c h ( e ) { } v a r   f = b . o w n e r D o c u m e n t , g = f . d o c u m e n t E l e m e n t ; i f ( ! c | | ! d . c o n t a i n s ( g , b ) ) r e t u r n   c ? { t o p : c . t o p , l e f t : c . l e f t } : { t o p : 0 , l e f t : 0 } ; v a r   h = f . b o d y , i = b $ ( f ) , j = g . c l i e n t T o p | | h . c l i e n t T o p | | 0 , k = g . c l i e n t L e f t | | h . c l i e n t L e f t | | 0 , l = i . p a g e Y O f f s e t | | d . s u p p o r t . b o x M o d e l & & g . s c r o l l T o p | | h . s c r o l l T o p , m = i . p a g e X O f f s e t | | d . s u p p o r t . b o x M o d e l & & g . s c r o l l L e f t | | h . s c r o l l L e f t , n = c . t o p + l - j , o = c . l e f t + m - k ; r e t u r n { t o p : n , l e f t : o } } : d . f n . o f f s e t = f u n c t i o n ( a ) { v a r   b = t h i s [ 0 ] ; i f ( a ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { d . o f f s e t . s e t O f f s e t ( t h i s , a , b ) } ) ; i f ( ! b | | ! b . o w n e r D o c u m e n t ) r e t u r n   n u l l ; i f ( b = = = b . o w n e r D o c u m e n t . b o d y ) r e t u r n   d . o f f s e t . b o d y O f f s e t ( b ) ; d . o f f s e t . i n i t i a l i z e ( ) ; v a r   c , e = b . o f f s e t P a r e n t , f = b , g = b . o w n e r D o c u m e n t , h = g . d o c u m e n t E l e m e n t , i = g . b o d y , j = g . d e f a u l t V i e w , k = j ? j . g e t C o m p u t e d S t y l e ( b , n u l l ) : b . c u r r e n t S t y l e , l = b . o f f s e t T o p , m = b . o f f s e t L e f t ; w h i l e ( ( b = b . p a r e n t N o d e ) & & b ! = = i & & b ! = = h ) { i f ( d . o f f s e t . s u p p o r t s F i x e d P o s i t i o n & & k . p o s i t i o n = = = " f i x e d " ) b r e a k ; c = j ? j . g e t C o m p u t e d S t y l e ( b , n u l l ) : b . c u r r e n t S t y l e , l - = b . s c r o l l T o p , m - = b . s c r o l l L e f t , b = = = e & & ( l + = b . o f f s e t T o p , m + = b . o f f s e t L e f t , d . o f f s e t . d o e s N o t A d d B o r d e r & & ( ! d . o f f s e t . d o e s A d d B o r d e r F o r T a b l e A n d C e l l s | | ! b Y . t e s t ( b . n o d e N a m e ) ) & & ( l + = p a r s e F l o a t ( c . b o r d e r T o p W i d t h ) | | 0 , m + = p a r s e F l o a t ( c . b o r d e r L e f t W i d t h ) | | 0 ) , f = e , e = b . o f f s e t P a r e n t ) , d . o f f s e t . s u b t r a c t s B o r d e r F o r O v e r f l o w N o t V i s i b l e & & c . o v e r f l o w ! = = " v i s i b l e " & & ( l + = p a r s e F l o a t ( c . b o r d e r T o p W i d t h ) | | 0 , m + = p a r s e F l o a t ( c . b o r d e r L e f t W i d t h ) | | 0 ) , k = c } i f ( k . p o s i t i o n = = = " r e l a t i v e " | | k . p o s i t i o n = = = " s t a t i c " ) l + = i . o f f s e t T o p , m + = i . o f f s e t L e f t ; d . o f f s e t . s u p p o r t s F i x e d P o s i t i o n & & k . p o s i t i o n = = = " f i x e d " & & ( l + = M a t h . m a x ( h . s c r o l l T o p , i . s c r o l l T o p ) , m + = M a t h . m a x ( h . s c r o l l L e f t , i . s c r o l l L e f t ) ) ; r e t u r n { t o p : l , l e f t : m } } , d . o f f s e t = { i n i t i a l i z e : f u n c t i o n ( ) { v a r   a = c . b o d y , b = c . c r e a t e E l e m e n t ( " d i v " ) , e , f , g , h , i = p a r s e F l o a t ( d . c s s ( a , " m a r g i n T o p " ) ) | | 0 , j = " < d i v   s t y l e = ' p o s i t i o n : a b s o l u t e ; t o p : 0 ; l e f t : 0 ; m a r g i n : 0 ; b o r d e r : 5 p x   s o l i d   # 0 0 0 ; p a d d i n g : 0 ; w i d t h : 1 p x ; h e i g h t : 1 p x ; ' > < d i v > < / d i v > < / d i v > < t a b l e   s t y l e = ' p o s i t i o n : a b s o l u t e ; t o p : 0 ; l e f t : 0 ; m a r g i n : 0 ; b o r d e r : 5 p x   s o l i d   # 0 0 0 ; p a d d i n g : 0 ; w i d t h : 1 p x ; h e i g h t : 1 p x ; '   c e l l p a d d i n g = ' 0 '   c e l l s p a c i n g = ' 0 ' > < t r > < t d > < / t d > < / t r > < / t a b l e > " ; d . e x t e n d ( b . s t y l e , { p o s i t i o n : " a b s o l u t e " , t o p : 0 , l e f t : 0 , m a r g i n : 0 , b o r d e r : 0 , w i d t h : " 1 p x " , h e i g h t : " 1 p x " , v i s i b i l i t y : " h i d d e n " } ) , b . i n n e r H T M L = j , a . i n s e r t B e f o r e ( b , a . f i r s t C h i l d ) , e = b . f i r s t C h i l d , f = e . f i r s t C h i l d , h = e . n e x t S i b l i n g . f i r s t C h i l d . f i r s t C h i l d , t h i s . d o e s N o t A d d B o r d e r = f . o f f s e t T o p ! = = 5 , t h i s . d o e s A d d B o r d e r F o r T a b l e A n d C e l l s = h . o f f s e t T o p = = = 5 , f . s t y l e . p o s i t i o n = " f i x e d " , f . s t y l e . t o p = " 2 0 p x " , t h i s . s u p p o r t s F i x e d P o s i t i o n = f . o f f s e t T o p = = = 2 0 | | f . o f f s e t T o p = = = 1 5 , f . s t y l e . p o s i t i o n = f . s t y l e . t o p = " " , e . s t y l e . o v e r f l o w = " h i d d e n " , e . s t y l e . p o s i t i o n = " r e l a t i v e " , t h i s . s u b t r a c t s B o r d e r F o r O v e r f l o w N o t V i s i b l e = f . o f f s e t T o p = = = - 5 , t h i s . d o e s N o t I n c l u d e M a r g i n I n B o d y O f f s e t = a . o f f s e t T o p ! = = i , a . r e m o v e C h i l d ( b ) , a = b = e = f = g = h = n u l l , d . o f f s e t . i n i t i a l i z e = d . n o o p } , b o d y O f f s e t : f u n c t i o n ( a ) { v a r   b = a . o f f s e t T o p , c = a . o f f s e t L e f t ; d . o f f s e t . i n i t i a l i z e ( ) , d . o f f s e t . d o e s N o t I n c l u d e M a r g i n I n B o d y O f f s e t & & ( b + = p a r s e F l o a t ( d . c s s ( a , " m a r g i n T o p " ) ) | | 0 , c + = p a r s e F l o a t ( d . c s s ( a , " m a r g i n L e f t " ) ) | | 0 ) ; r e t u r n { t o p : b , l e f t : c } } , s e t O f f s e t : f u n c t i o n ( a , b , c ) { v a r   e = d . c s s ( a , " p o s i t i o n " ) ; e = = = " s t a t i c " & & ( a . s t y l e . p o s i t i o n = " r e l a t i v e " ) ; v a r   f = d ( a ) , g = f . o f f s e t ( ) , h = d . c s s ( a , " t o p " ) , i = d . c s s ( a , " l e f t " ) , j = e = = = " a b s o l u t e " & & d . i n A r r a y ( " a u t o " , [ h , i ] ) > - 1 , k = { } , l = { } , m , n ; j & & ( l = f . p o s i t i o n ( ) ) , m = j ? l . t o p : p a r s e I n t ( h , 1 0 ) | | 0 , n = j ? l . l e f t : p a r s e I n t ( i , 1 0 ) | | 0 , d . i s F u n c t i o n ( b ) & & ( b = b . c a l l ( a , c , g ) ) , b . t o p ! = n u l l & & ( k . t o p = b . t o p - g . t o p + m ) , b . l e f t ! = n u l l & & ( k . l e f t = b . l e f t - g . l e f t + n ) , " u s i n g " i n   b ? b . u s i n g . c a l l ( a , k ) : f . c s s ( k ) } } , d . f n . e x t e n d ( { p o s i t i o n : f u n c t i o n ( ) { i f ( ! t h i s [ 0 ] ) r e t u r n   n u l l ; v a r   a = t h i s [ 0 ] , b = t h i s . o f f s e t P a r e n t ( ) , c = t h i s . o f f s e t ( ) , e = b Z . t e s t ( b [ 0 ] . n o d e N a m e ) ? { t o p : 0 , l e f t : 0 } : b . o f f s e t ( ) ; c . t o p - = p a r s e F l o a t ( d . c s s ( a , " m a r g i n T o p " ) ) | | 0 , c . l e f t - = p a r s e F l o a t ( d . c s s ( a , " m a r g i n L e f t " ) ) | | 0 , e . t o p + = p a r s e F l o a t ( d . c s s ( b [ 0 ] , " b o r d e r T o p W i d t h " ) ) | | 0 , e . l e f t + = p a r s e F l o a t ( d . c s s ( b [ 0 ] , " b o r d e r L e f t W i d t h " ) ) | | 0 ; r e t u r n { t o p : c . t o p - e . t o p , l e f t : c . l e f t - e . l e f t } } , o f f s e t P a r e n t : f u n c t i o n ( ) { r e t u r n   t h i s . m a p ( f u n c t i o n ( ) { v a r   a = t h i s . o f f s e t P a r e n t | | c . b o d y ; w h i l e ( a & & ( ! b Z . t e s t ( a . n o d e N a m e ) & & d . c s s ( a , " p o s i t i o n " ) = = = " s t a t i c " ) ) a = a . o f f s e t P a r e n t ; r e t u r n   a } ) } } ) , d . e a c h ( [ " L e f t " , " T o p " ] , f u n c t i o n ( a , c ) { v a r   e = " s c r o l l " + c ; d . f n [ e ] = f u n c t i o n ( c ) { v a r   f = t h i s [ 0 ] , g ; i f ( ! f ) r e t u r n   n u l l ; i f ( c ! = = b ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { g = b $ ( t h i s ) , g ? g . s c r o l l T o ( a ? d ( g ) . s c r o l l L e f t ( ) : c , a ? c : d ( g ) . s c r o l l T o p ( ) ) : t h i s [ e ] = c } ) ; g = b $ ( f ) ; r e t u r n   g ? " p a g e X O f f s e t " i n   g ? g [ a ? " p a g e Y O f f s e t " : " p a g e X O f f s e t " ] : d . s u p p o r t . b o x M o d e l & & g . d o c u m e n t . d o c u m e n t E l e m e n t [ e ] | | g . d o c u m e n t . b o d y [ e ] : f [ e ] } } ) , d . e a c h ( [ " H e i g h t " , " W i d t h " ] , f u n c t i o n ( a , c ) { v a r   e = c . t o L o w e r C a s e ( ) ; d . f n [ " i n n e r " + c ] = f u n c t i o n ( ) { r e t u r n   t h i s [ 0 ] ? p a r s e F l o a t ( d . c s s ( t h i s [ 0 ] , e , " p a d d i n g " ) ) : n u l l } , d . f n [ " o u t e r " + c ] = f u n c t i o n ( a ) { r e t u r n   t h i s [ 0 ] ? p a r s e F l o a t ( d . c s s ( t h i s [ 0 ] , e , a ? " m a r g i n " : " b o r d e r " ) ) : n u l l } , d . f n [ e ] = f u n c t i o n ( a ) { v a r   f = t h i s [ 0 ] ; i f ( ! f ) r e t u r n   a = = n u l l ? n u l l : t h i s ; i f ( d . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = d ( t h i s ) ; c [ e ] ( a . c a l l ( t h i s , b , c [ e ] ( ) ) ) } ) ; i f ( d . i s W i n d o w ( f ) ) { v a r   g = 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 l i e n t " + c ] ; r e t u r n   f . d o c u m e n t . c o m p a t M o d e = = = " C S S 1 C o m p a t " & & g | | f . d o c u m e n t . b o d y [ " c l i e n t " + c ] | | g } i f ( f . n o d e T y p e = = = 9 ) r e t u r n   M a t h . m a x ( f . d o c u m e n t E l e m e n t [ " c l i e n t " + c ] , f . b o d y [ " s c r o l l " + c ] , f . d o c u m e n t E l e m e n t [ " s c r o l l " + c ] , f . b o d y [ " o f f s e t " + c ] , f . d o c u m e n t E l e m e n t [ " o f f s e t " + c ] ) ; i f ( a = = = b ) { v a r   h = d . c s s ( f , e ) , i = p a r s e F l o a t ( h ) ; r e t u r n   d . i s N a N ( i ) ? h : i } r e t u r n   t h i s . c s s ( e , t y p e o f   a = = = " s t r i n g " ? a : a + " p x " ) } } ) } ) ( w i n d o w ) ; 
