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