@@ -2,14 +2,14 @@
Copyright ( c ) 2003 - 2018 , CKSource - Frederico Knabben . All rights reserved .
For licensing , see LICENSE . md or https : //ckeditor.com/legal/ckeditor-oss-license
* /
( function ( ) { if ( window . CKEDITOR && window . CKEDITOR . dom ) return ; window . CKEDITOR || ( window . CKEDITOR = function ( ) { var a = /(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i , d = { timestamp : "I3I8 " , version : "4.9.2 " , revision : "95e5d83 " , rnd : Math . floor ( 900 * Math . random ( ) ) + 100 , _ : { pending : [ ] , basePathSrcPattern : a } , status : "unloaded" , basePath : function ( ) { var b = window . CKEDITOR _BASEPATH || "" ; if ( ! b ) for ( var c = document . getElementsByTagName ( "script" ) , d = 0 ; d < c . length ; d ++ ) { var g = c [ d ] . src . match ( a ) ; if ( g ) { b = g [ 1 ] ; break } } - 1 == b . indexOf ( ":/" ) && "//" != b . slice ( 0 , 2 ) && ( b = 0 === b . indexOf ( "/" ) ? location . href . match ( /^.*?:\/\/[^\/]*/ ) [ 0 ] +
( function ( ) { if ( window . CKEDITOR && window . CKEDITOR . dom ) return ; window . CKEDITOR || ( window . CKEDITOR = function ( ) { var a = /(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i , d = { timestamp : "I63C " , version : "4.10.0 " , revision : "de1371d " , rnd : Math . floor ( 900 * Math . random ( ) ) + 100 , _ : { pending : [ ] , basePathSrcPattern : a } , status : "unloaded" , basePath : function ( ) { var b = window . CKEDITOR _BASEPATH || "" ; if ( ! b ) for ( var c = document . getElementsByTagName ( "script" ) , d = 0 ; d < c . length ; d ++ ) { var g = c [ d ] . src . match ( a ) ; if ( g ) { b = g [ 1 ] ; break } } - 1 == b . indexOf ( ":/" ) && "//" != b . slice ( 0 , 2 ) && ( b = 0 === b . indexOf ( "/" ) ? location . href . match ( /^.*?:\/\/[^\/]*/ ) [ 0 ] +
b : location . href . match ( /^[^\?]*\/(?:)/ ) [ 0 ] + b ) ; if ( ! b ) throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.' ; return b } ( ) , getUrl : function ( a ) { - 1 == a . indexOf ( ":/" ) && 0 !== a . indexOf ( "/" ) && ( a = this . basePath + a ) ; this . timestamp && "/" != a . charAt ( a . length - 1 ) && ! /[&?]t=/ . test ( a ) && ( a += ( 0 <= a . indexOf ( "?" ) ? "\x26" : "?" ) + "t\x3d" + this . timestamp ) ; return a } , domReady : function ( ) { function a ( ) { try { document . addEventListener ? ( document . removeEventListener ( "DOMContentLoaded" ,
a , ! 1 ) , b ( ) ) : document . attachEvent && "complete" === document . readyState && ( document . detachEvent ( "onreadystatechange" , a ) , b ( ) ) } catch ( c ) { } } function b ( ) { for ( var a ; a = c . shift ( ) ; ) a ( ) } var c = [ ] ; return function ( b ) { function d ( ) { try { document . documentElement . doScroll ( "left" ) } catch ( e ) { setTimeout ( d , 1 ) ; return } a ( ) } c . push ( b ) ; "complete" === document . readyState && setTimeout ( a , 1 ) ; if ( 1 == c . length ) if ( document . addEventListener ) document . addEventListener ( "DOMContentLoaded" , a , ! 1 ) , window . addEventListener ( "load" , a , ! 1 ) ; else if ( document . attachEvent ) { document . attachEvent ( "onreadystatechange" ,
a ) ; window . attachEvent ( "onload" , a ) ; b = ! 1 ; try { b = ! window . frameElement } catch ( r ) { } document . documentElement . doScroll && b && d ( ) } } } ( ) } , b = window . CKEDITOR _GETURL ; if ( b ) { var c = d . getUrl ; d . getUrl = function ( a ) { return b . call ( d , a ) || c . call ( d , a ) } } return d } ( ) ) ;
a , ! 1 ) , b ( ) ) : document . attachEvent && "complete" === document . readyState && ( document . detachEvent ( "onreadystatechange" , a ) , b ( ) ) } catch ( c ) { } } function b ( ) { for ( var a ; a = c . shift ( ) ; ) a ( ) } var c = [ ] ; return function ( b ) { function n ( ) { try { document . documentElement . doScroll ( "left" ) } catch ( e ) { setTimeout ( n , 1 ) ; return } a ( ) } c . push ( b ) ; "complete" === document . readyState && setTimeout ( a , 1 ) ; if ( 1 == c . length ) if ( document . addEventListener ) document . addEventListener ( "DOMContentLoaded" , a , ! 1 ) , window . addEventListener ( "load" , a , ! 1 ) ; else if ( document . attachEvent ) { document . attachEvent ( "onreadystatechange" ,
a ) ; window . attachEvent ( "onload" , a ) ; b = ! 1 ; try { b = ! window . frameElement } catch ( r ) { } document . documentElement . doScroll && b && n ( ) } } } ( ) } , b = window . CKEDITOR _GETURL ; if ( b ) { var c = d . getUrl ; d . getUrl = function ( a ) { return b . call ( d , a ) || c . call ( d , a ) } } return d } ( ) ) ;
CKEDITOR . event || ( CKEDITOR . event = function ( ) { } , CKEDITOR . event . implementOn = function ( a ) { var d = CKEDITOR . event . prototype , b ; for ( b in d ) null == a [ b ] && ( a [ b ] = d [ b ] ) } , CKEDITOR . event . prototype = function ( ) { function a ( a ) { var f = d ( this ) ; return f [ a ] || ( f [ a ] = new b ( a ) ) } var d = function ( a ) { a = a . getPrivate && a . getPrivate ( ) || a . _ || ( a . _ = { } ) ; return a . events || ( a . events = { } ) } , b = function ( a ) { this . name = a ; this . listeners = [ ] } ; b . prototype = { getListenerIndex : function ( a ) { for ( var b = 0 , d = this . listeners ; b < d . length ; b ++ ) if ( d [ b ] . fn == a ) return b ; return - 1 } } ;
return { define : function ( b , d ) { var h = a . call ( this , b ) ; CKEDITOR . tools . extend ( h , d , ! 0 ) } , on : function ( b , d , h , k , g ) { function m ( e , a , z , y ) { e = { name : b , sender : this , editor : e , data : a , listenerData : k , stop : z , cancel : y , removeListener : r } ; return ! 1 === d . call ( h , e ) ? ! 1 : e . data } function r ( ) { z . removeListener ( b , d ) } var e = a . call ( this , b ) ; if ( 0 > e . getListenerIndex ( d ) ) { e = e . listeners ; h || ( h = this ) ; isNaN ( g ) && ( g = 10 ) ; var z = this ; m . fn = d ; m . priority = g ; for ( var y = e . length - 1 ; 0 <= y ; y -- ) if ( e [ y ] . priority <= g ) return e . splice ( y + 1 , 0 , m ) , { removeListener : r } ; e . unshift ( m ) } return { removeListener : r } } ,
once : function ( ) { var a = Array . prototype . slice . call ( arguments ) , b = a [ 1 ] ; a [ 1 ] = function ( a ) { a . removeListener ( ) ; return b . apply ( this , arguments ) } ; return this . on . apply ( this , a ) } , capture : function ( ) { CKEDITOR . event . useCapture = 1 ; var a = this . on . apply ( this , arguments ) ; CKEDITOR . event . useCapture = 0 ; return a } , fire : function ( ) { var a = 0 , b = function ( ) { a = 1 } , h = 0 , k = function ( ) { h = 1 } ; return function ( g , m , r ) { var e = d ( this ) [ g ] ; g = a ; var z = h ; a = h = 0 ; if ( e ) { var y = e . listeners ; if ( y . length ) for ( var y = y . slice ( 0 ) , A , D = 0 ; D < y . length ; D ++ ) { if ( e . errorProof ) try { A =
y [ D ] . call ( this , r , m , b , k ) } catch ( x ) { } else A = y [ D ] . call ( this , r , m , b , k ) ; ! 1 === A ? h = 1 : "undefined" != typeof A && ( m = A ) ; if ( a || h ) break } } m = h ? ! 1 : "undefined" == typeof m ? ! 0 : m ; a = g ; h = z ; return m } } ( ) , fireOnce : function ( a , b , h ) { b = this . fire ( a , b , h ) ; delete d ( this ) [ a ] ; return b } , removeListener : function ( a , b ) { var h = d ( this ) [ a ] ; if ( h ) { var k = h . getListenerIndex ( b ) ; 0 <= k && h . listeners . splice ( k , 1 ) } } , removeAllListeners : function ( ) { var a = d ( this ) , b ; for ( b in a ) delete a [ b ] } , hasListeners : function ( a ) { return ( a = d ( this ) [ a ] ) && 0 < a . listeners . length } } } ( ) ) ;
return { define : function ( b , d ) { var h = a . call ( this , b ) ; CKEDITOR . tools . extend ( h , d , ! 0 ) } , on : function ( b , d , h , k , g ) { function n ( e , a , y , v ) { e = { name : b , sender : this , editor : e , data : a , listenerData : k , stop : y , cancel : v , removeListener : r } ; return ! 1 === d . call ( h , e ) ? ! 1 : e . data } function r ( ) { y . removeListener ( b , d ) } var e = a . call ( this , b ) ; if ( 0 > e . getListenerIndex ( d ) ) { e = e . listeners ; h || ( h = this ) ; isNaN ( g ) && ( g = 10 ) ; var y = this ; n . fn = d ; n . priority = g ; for ( var v = e . length - 1 ; 0 <= v ; v -- ) if ( e [ v ] . priority <= g ) return e . splice ( v + 1 , 0 , n ) , { removeListener : r } ; e . unshift ( n ) } return { removeListener : r } } ,
once : function ( ) { var a = Array . prototype . slice . call ( arguments ) , b = a [ 1 ] ; a [ 1 ] = function ( a ) { a . removeListener ( ) ; return b . apply ( this , arguments ) } ; return this . on . apply ( this , a ) } , capture : function ( ) { CKEDITOR . event . useCapture = 1 ; var a = this . on . apply ( this , arguments ) ; CKEDITOR . event . useCapture = 0 ; return a } , fire : function ( ) { var a = 0 , b = function ( ) { a = 1 } , h = 0 , k = function ( ) { h = 1 } ; return function ( g , n , r ) { var e = d ( this ) [ g ] ; g = a ; var y = h ; a = h = 0 ; if ( e ) { var v = e . listeners ; if ( v . length ) for ( var v = v . slice ( 0 ) , A , D = 0 ; D < v . length ; D ++ ) { if ( e . errorProof ) try { A =
v [ D ] . call ( this , r , n , b , k ) } catch ( x ) { } else A = v [ D ] . call ( this , r , n , b , k ) ; ! 1 === A ? h = 1 : "undefined" != typeof A && ( n = A ) ; if ( a || h ) break } } n = h ? ! 1 : "undefined" == typeof n ? ! 0 : n ; a = g ; h = y ; return n } } ( ) , fireOnce : function ( a , b , h ) { b = this . fire ( a , b , h ) ; delete d ( this ) [ a ] ; return b } , removeListener : function ( a , b ) { var h = d ( this ) [ a ] ; if ( h ) { var k = h . getListenerIndex ( b ) ; 0 <= k && h . listeners . splice ( k , 1 ) } } , removeAllListeners : function ( ) { var a = d ( this ) , b ; for ( b in a ) delete a [ b ] } , hasListeners : function ( a ) { return ( a = d ( this ) [ a ] ) && 0 < a . listeners . length } } } ( ) ) ;
CKEDITOR . editor || ( CKEDITOR . editor = function ( ) { CKEDITOR . _ . pending . push ( [ this , arguments ] ) ; CKEDITOR . event . call ( this ) } , CKEDITOR . editor . prototype . fire = function ( a , d ) { a in { instanceReady : 1 , loaded : 1 } && ( this [ a ] = ! 0 ) ; return CKEDITOR . event . prototype . fire . call ( this , a , d , this ) } , CKEDITOR . editor . prototype . fireOnce = function ( a , d ) { a in { instanceReady : 1 , loaded : 1 } && ( this [ a ] = ! 0 ) ; return CKEDITOR . event . prototype . fireOnce . call ( this , a , d , this ) } , CKEDITOR . event . implementOn ( CKEDITOR . editor . prototype ) ) ;
CKEDITOR . env || ( CKEDITOR . env = function ( ) { var a = navigator . userAgent . toLowerCase ( ) , d = a . match ( /edge[ \/](\d+.?\d*)/ ) , b = - 1 < a . indexOf ( "trident/" ) , b = ! ( ! d && ! b ) , b = { ie : b , edge : ! ! d , webkit : ! b && - 1 < a . indexOf ( " applewebkit/" ) , air : - 1 < a . indexOf ( " adobeair/" ) , mac : - 1 < a . indexOf ( "macintosh" ) , quirks : "BackCompat" == document . compatMode && ( ! document . documentMode || 10 > document . documentMode ) , mobile : - 1 < a . indexOf ( "mobile" ) , iOS : /(ipad|iphone|ipod)/ . test ( a ) , isCustomDomain : function ( ) { if ( ! this . ie ) return ! 1 ; var a = document . domain , b = window . location . hostname ;
return a != b && a != "[" + b + "]" } , secure : "https:" == location . protocol } ; b . gecko = "Gecko" == navigator . product && ! b . webkit && ! b . ie ; b . webkit && ( - 1 < a . indexOf ( "chrome" ) ? b . chrome = ! 0 : b . safari = ! 0 ) ; var c = 0 ; b . ie && ( c = d ? parseFloat ( d [ 1 ] ) : b . quirks || ! document . documentMode ? parseFloat ( a . match ( /msie (\d+)/ ) [ 1 ] ) : document . documentMode , b . ie9Compat = 9 == c , b . ie8Compat = 8 == c , b . ie7Compat = 7 == c , b . ie6Compat = 7 > c || b . quirks ) ; b . gecko && ( d = a . match ( /rv:([\d\.]+)/ ) ) && ( d = d [ 1 ] . split ( "." ) , c = 1E4 * d [ 0 ] + 100 * ( d [ 1 ] || 0 ) + 1 * ( d [ 2 ] || 0 ) ) ; b . air && ( c = parseFloat ( a . match ( / adobeair\/(\d+)/ ) [ 1 ] ) ) ;
@@ -19,42 +19,44 @@ b.iOS&&(b.cssClass+=" cke_browser_ios");b.hidpi&&(b.cssClass+=" cke_hidpi");retu
CKEDITOR . loadFullCore , d = CKEDITOR . loadFullCoreTimeout ; a && ( CKEDITOR . status = "basic_ready" , a && a . _load ? a ( ) : d && setTimeout ( function ( ) { CKEDITOR . loadFullCore && CKEDITOR . loadFullCore ( ) } , 1E3 * d ) ) } ) } ) ( ) ; CKEDITOR . status = "basic_loaded" } ( ) ; "use strict" ; CKEDITOR . VERBOSITY _WARN = 1 ; CKEDITOR . VERBOSITY _ERROR = 2 ; CKEDITOR . verbosity = CKEDITOR . VERBOSITY _WARN | CKEDITOR . VERBOSITY _ERROR ; CKEDITOR . warn = function ( a , d ) { CKEDITOR . verbosity & CKEDITOR . VERBOSITY _WARN && CKEDITOR . fire ( "log" , { type : "warn" , errorCode : a , additionalData : d } ) } ;
CKEDITOR . error = function ( a , d ) { CKEDITOR . verbosity & CKEDITOR . VERBOSITY _ERROR && CKEDITOR . fire ( "log" , { type : "error" , errorCode : a , additionalData : d } ) } ;
CKEDITOR . on ( "log" , function ( a ) { if ( window . console && window . console . log ) { var d = console [ a . data . type ] ? a . data . type : "log" , b = a . data . errorCode ; if ( a = a . data . additionalData ) console [ d ] ( "[CKEDITOR] Error code: " + b + "." , a ) ; else console [ d ] ( "[CKEDITOR] Error code: " + b + "." ) ; console [ d ] ( "[CKEDITOR] For more information about this error go to https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_errors-section-" + b ) } } , null , null , 999 ) ; CKEDITOR . dom = { } ;
( function ( ) { var a = [ ] , d = CKEDITOR . env . gecko ? "-moz-" : CKEDITOR . env . webkit ? "-webkit-" : CKEDITOR . env . ie ? "-ms-" : "" , b = /&/g , c = />/g , f = /</g , h = /"/g , k = /&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g , g = { lt : "\x3c" , gt : "\x3e" , amp : "\x26" , quot : '"' , nbsp : " " , shy : " " } , m = function ( a , e ) { return "#" == e [ 0 ] ? String . fromCharCode ( parseInt ( e . slice ( 1 ) , 10 ) ) : g [ e ] } ; CKEDITOR . on ( "reset" , function ( ) { a = [ ] } ) ; CKEDITOR . tools = { arrayCompare : function ( a , e ) { if ( ! a && ! e ) return ! 0 ; if ( ! a || ! e || a . length != e . length ) return ! 1 ; for ( var b = 0 ; b < a . length ; b ++ ) if ( a [ b ] != e [ b ] ) return ! 1 ;
( function ( ) { var a = [ ] , d = CKEDITOR . env . gecko ? "-moz-" : CKEDITOR . env . webkit ? "-webkit-" : CKEDITOR . env . ie ? "-ms-" : "" , b = /&/g , c = />/g , f = /</g , h = /"/g , k = /&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g , g = { lt : "\x3c" , gt : "\x3e" , amp : "\x26" , quot : '"' , nbsp : " " , shy : " " } , n = function ( a , e ) { return "#" == e [ 0 ] ? String . fromCharCode ( parseInt ( e . slice ( 1 ) , 10 ) ) : g [ e ] } ; CKEDITOR . on ( "reset" , function ( ) { a = [ ] } ) ; CKEDITOR . tools = { arrayCompare : function ( a , e ) { if ( ! a && ! e ) return ! 0 ; if ( ! a || ! e || a . length != e . length ) return ! 1 ; for ( var b = 0 ; b < a . length ; b ++ ) if ( a [ b ] != e [ b ] ) return ! 1 ;
return ! 0 } , getIndex : function ( a , e ) { for ( var b = 0 ; b < a . length ; ++ b ) if ( e ( a [ b ] ) ) return b ; return - 1 } , clone : function ( a ) { var e ; if ( a && a instanceof Array ) { e = [ ] ; for ( var b = 0 ; b < a . length ; b ++ ) e [ b ] = CKEDITOR . tools . clone ( a [ b ] ) ; return e } if ( null === a || "object" != typeof a || a instanceof String || a instanceof Number || a instanceof Boolean || a instanceof Date || a instanceof RegExp || a . nodeType || a . window === a ) return a ; e = new a . constructor ; for ( b in a ) e [ b ] = CKEDITOR . tools . clone ( a [ b ] ) ; return e } , capitalize : function ( a , e ) { return a . charAt ( 0 ) . toUpperCase ( ) +
( e ? a . slice ( 1 ) : a . slice ( 1 ) . toLowerCase ( ) ) } , extend : function ( a ) { var e = arguments . length , b , c ; "boolean" == typeof ( b = arguments [ e - 1 ] ) ? e -- : "boolean" == typeof ( b = arguments [ e - 2 ] ) && ( c = arguments [ e - 1 ] , e -= 2 ) ; for ( var g = 1 ; g < e ; g ++ ) { var d = arguments [ g ] , m ; for ( m in d ) if ( ! 0 === b || null == a [ m ] ) if ( ! c || m in c ) a [ m ] = d [ m ] } return a } , prototypedCopy : function ( a ) { var e = function ( ) { } ; e . prototype = a ; return new e } , copy : function ( a ) { var e = { } , b ; for ( b in a ) e [ b ] = a [ b ] ; return e } , isArray : function ( a ) { return "[object Array]" == Object . prototype . toString . call ( a ) } ,
( e ? a . slice ( 1 ) : a . slice ( 1 ) . toLowerCase ( ) ) } , extend : function ( a ) { var e = arguments . length , b , v ; "boolean" == typeof ( b = arguments [ e - 1 ] ) ? e -- : "boolean" == typeof ( b = arguments [ e - 2 ] ) && ( v = arguments [ e - 1 ] , e -= 2 ) ; for ( var c = 1 ; c < e ; c ++ ) { var g = arguments [ c ] , d ; for ( d in g ) if ( ! 0 === b || null == a [ d ] ) if ( ! v || d in v ) a [ d ] = g [ d ] } return a } , prototypedCopy : function ( a ) { var e = function ( ) { } ; e . prototype = a ; return new e } , copy : function ( a ) { var e = { } , b ; for ( b in a ) e [ b ] = a [ b ] ; return e } , isArray : function ( a ) { return "[object Array]" == Object . prototype . toString . call ( a ) } ,
isEmpty : function ( a ) { for ( var e in a ) if ( a . hasOwnProperty ( e ) ) return ! 1 ; return ! 0 } , cssVendorPrefix : function ( a , e , b ) { if ( b ) return d + a + ":" + e + ";" + a + ":" + e ; b = { } ; b [ a ] = e ; b [ d + a ] = e ; return b } , cssStyleToDomStyle : function ( ) { var a = document . createElement ( "div" ) . style , e = "undefined" != typeof a . cssFloat ? "cssFloat" : "undefined" != typeof a . styleFloat ? "styleFloat" : "float" ; return function ( a ) { return "float" == a ? e : a . replace ( /-./g , function ( a ) { return a . substr ( 1 ) . toUpperCase ( ) } ) } } ( ) , buildStyleHtml : function ( a ) { a = [ ] . concat ( a ) ; for ( var e ,
b = [ ] , c = 0 ; c < a . length ; c ++ ) if ( e = a [ c ] ) / @ import | [ { } ] / . test ( e ) ? b . push ( "\x3cstyle\x3e" + e + "\x3c/style\x3e" ) : b . push ( '\x3clink type\x3d"text/css" rel\x3dstylesheet href\x3d"' + e + '"\x3e' ) ; return b . join ( "" ) } , htmlEncode : function ( a ) { return void 0 === a || null === a ? "" : String ( a ) . replace ( b , "\x26amp;" ) . replace ( c , "\x26gt;" ) . replace ( f , "\x26lt;" ) } , htmlDecode : function ( a ) { return a . replace ( k , m ) } , htmlEncodeAttr : function ( a ) { return CKEDITOR . tools . htmlEncode ( a ) . replace ( h , "\x26quot;" ) } , htmlDecodeAttr : function ( a ) { return CKEDITOR . tools . htmlDecode ( a ) } ,
transformPlainTextToHtml : function ( a , e ) { var b = e == CKEDITOR . ENTER _BR , c = this . htmlEncode ( a . replace ( /\r\n/g , "\n" ) ) , c = c . replace ( /\t/g , "\x26nbsp;\x26nbsp; \x26nbsp;" ) , g = e == CKEDITOR . ENTER _P ? "p" : "div" ; if ( ! b ) { var d = /\n{2}/g ; if ( d . test ( c ) ) var m = "\x3c" + g + "\x3e" , p = "\x3c/" + g + "\x3e" , c = m + c . replace ( d , function ( ) { return p + m } ) + p } c = c . replace ( /\n/g , "\x3cbr\x3e" ) ; b || ( c = c . replace ( new RegExp ( "\x3cbr\x3e(?\x3d\x3c/" + g + "\x3e)" ) , function ( a ) { return CKEDITOR . tools . repeat ( a , 2 ) } ) ) ; c = c . replace ( /^ | $/g , "\x26nbsp;" ) ; return c = c . replace ( /(>|\s) /g ,
b = [ ] , v = 0 ; v < a . length ; v ++ ) if ( e = a [ v ] ) / @ import | [ { } ] / . test ( e ) ? b . push ( "\x3cstyle\x3e" + e + "\x3c/style\x3e" ) : b . push ( '\x3clink type\x3d"text/css" rel\x3dstylesheet href\x3d"' + e + '"\x3e' ) ; return b . join ( "" ) } , htmlEncode : function ( a ) { return void 0 === a || null === a ? "" : String ( a ) . replace ( b , "\x26amp;" ) . replace ( c , "\x26gt;" ) . replace ( f , "\x26lt;" ) } , htmlDecode : function ( a ) { return a . replace ( k , n ) } , htmlEncodeAttr : function ( a ) { return CKEDITOR . tools . htmlEncode ( a ) . replace ( h , "\x26quot;" ) } , htmlDecodeAttr : function ( a ) { return CKEDITOR . tools . htmlDecode ( a ) } ,
transformPlainTextToHtml : function ( a , e ) { var b = e == CKEDITOR . ENTER _BR , v = this . htmlEncode ( a . replace ( /\r\n/g , "\n" ) ) , v = v . replace ( /\t/g , "\x26nbsp;\x26nbsp; \x26nbsp;" ) , c = e == CKEDITOR . ENTER _P ? "p" : "div" ; if ( ! b ) { var g = /\n{2}/g ; if ( g . test ( v ) ) var d = "\x3c" + c + "\x3e" , m = "\x3c/" + c + "\x3e" , v = d + v . replace ( g , function ( ) { return m + d } ) + m } v = v . replace ( /\n/g , "\x3cbr\x3e" ) ; b || ( v = v . replace ( new RegExp ( "\x3cbr\x3e(?\x3d\x3c/" + c + "\x3e)" ) , function ( a ) { return CKEDITOR . tools . repeat ( a , 2 ) } ) ) ; v = v . replace ( /^ | $/g , "\x26nbsp;" ) ; return v = v . replace ( /(>|\s) /g ,
function ( a , e ) { return e + "\x26nbsp;" } ) . replace ( / (?=<)/g , "\x26nbsp;" ) } , getNextNumber : function ( ) { var a = 0 ; return function ( ) { return ++ a } } ( ) , getNextId : function ( ) { return "cke_" + this . getNextNumber ( ) } , getUniqueId : function ( ) { for ( var a = "e" , e = 0 ; 8 > e ; e ++ ) a += Math . floor ( 65536 * ( 1 + Math . random ( ) ) ) . toString ( 16 ) . substring ( 1 ) ; return a } , override : function ( a , e ) { var b = e ( a ) ; b . prototype = a . prototype ; return b } , setTimeout : function ( a , e , b , c , g ) { g || ( g = window ) ; b || ( b = g ) ; return g . setTimeout ( function ( ) { c ? a . apply ( b , [ ] . concat ( c ) ) : a . apply ( b ) } ,
e || 0 ) } , trim : function ( ) { var a = /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g ; return function ( e ) { return e . replace ( a , "" ) } } ( ) , ltrim : function ( ) { var a = /^[ \t\n\r]+/g ; return function ( e ) { return e . replace ( a , "" ) } } ( ) , rtrim : function ( ) { var a = /[ \t\n\r]+$/g ; return function ( e ) { return e . replace ( a , "" ) } } ( ) , indexOf : function ( a , e ) { if ( "function" == typeof e ) for ( var b = 0 , c = a . length ; b < c ; b ++ ) { if ( e ( a [ b ] ) ) return b } else { if ( a . indexOf ) return a . indexOf ( e ) ; b = 0 ; for ( c = a . length ; b < c ; b ++ ) if ( a [ b ] === e ) return b } return - 1 } , search : function ( a , e ) { var b = CKEDITOR . tools . indexOf ( a ,
e ) ; return 0 <= b ? a [ b ] : null } , bind : function ( a , e ) { return function ( ) { return a . apply ( e , arguments ) } } , createClass : function ( a ) { var e = a . $ , b = a . base , c = a . privates || a . _ , g = a . proto ; a = a . statics ; ! e && ( e = function ( ) { b && this . base . apply ( this , arguments ) } ) ; if ( c ) var d = e , e = function ( ) { var a = this . _ || ( this . _ = { } ) , e ; for ( e in c ) { var b = c [ e ] ; a [ e ] = "function" == typeof b ? CKEDITOR . tools . bind ( b , this ) : b } d . apply ( this , arguments ) } ; b && ( e . prototype = this . prototypedCopy ( b . prototype ) , e . prototype . constructor = e , e . base = b , e . baseProto = b . prototype , e . prototype . base =
function ( ) { this . base = b . prototype . base ; b . apply ( this , arguments ) ; this . base = arguments . callee } ) ; g && this . extend ( e . prototype , g , ! 0 ) ; a && this . extend ( e , a , ! 0 ) ; return e } , addFunction : function ( b , e ) { return a . push ( function ( ) { return b . apply ( e || this , arguments ) } ) - 1 } , removeFunction : function ( b ) { a [ b ] = null } , callFunction : function ( b ) { var e = a [ b ] ; return e && e . apply ( window , Array . prototype . slice . call ( arguments , 1 ) ) } , cssLength : function ( ) { var a = /^-?\d+\.?\d*px$/ , e ; return function ( b ) { e = CKEDITOR . tools . trim ( b + "" ) + "px" ; return a . test ( e ) ?
e : b || "" } } ( ) , convertToPx : function ( ) { var a ; return function ( e ) { a || ( a = CKEDITOR . dom . element . createFromHtml ( '\x3cdiv style\x3d"position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"\x3e\x3c/div\x3e' , CKEDITOR . document ) , CKEDITOR . document . getBody ( ) . append ( a ) ) ; return /%$/ . test ( e ) ? e : ( a . setStyle ( "width" , e ) , a . $ . clientWidth ) } } ( ) , repeat : function ( a , e ) { return Array ( e + 1 ) . join ( a ) } , tryThese : function ( ) { for ( var a , e = 0 , b = arguments . length ; e < b ; e ++ ) { var c = arguments [ e ] ; try { a = c ( ) ; break } catch ( g ) { } } return a } ,
genKey : function ( ) { return Array . prototype . slice . call ( arguments ) . join ( "-" ) } , defer : function ( a ) { return function ( ) { var e = arguments , b = this ; window . setTimeout ( function ( ) { a . apply ( b , e ) } , 0 ) } } , normalizeCssText : function ( a , e ) { var b = [ ] , c , g = CKEDITOR . tools . parseCssText ( a , ! 0 , e ) ; for ( c in g ) b . push ( c + ":" + g [ c ] ) ; b . sort ( ) ; return b . length ? b . join ( ";" ) + ";" : "" } , convertRgbToHex : function ( a ) { return a . replace ( /(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi , function ( a , b , c , g ) { a = [ b , c , g ] ; for ( b = 0 ; 3 > b ; b ++ ) a [ b ] = ( "0" + parseInt ( a [ b ] , 10 ) . toString ( 16 ) ) . slice ( - 2 ) ;
return "#" + a . join ( "" ) } ) } , normalizeHex : function ( a ) { return a . replace ( /#(([0-9a-f]{3}){1,2})($|;|\s+)/gi , function ( a , b , c , g ) { a = b . toLowerCase ( ) ; 3 == a . length && ( a = a . split ( "" ) , a = [ a [ 0 ] , a [ 0 ] , a [ 1 ] , a [ 1 ] , a [ 2 ] , a [ 2 ] ] . join ( "" ) ) ; return "#" + a + g } ) } , parseCssText : function ( a , e , b ) { var c = { } ; b && ( a = ( new CKEDITOR . dom . element ( "span" ) ) . setAttribute ( "style" , a ) . getAttribute ( "style" ) || "" ) ; a && ( a = CKEDITOR . tools . normalizeHex ( CKEDITOR . tools . convertRgbToHex ( a ) ) ) ; if ( ! a || ";" == a ) return c ; a . replace ( /"/g , '"' ) . replace ( /\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g ,
function ( a , b , g ) { e && ( b = b . toLowerCase ( ) , "font-family" == b && ( g = g . replace ( /\s*,\s*/g , "," ) ) , g = CKEDITOR . tools . trim ( g ) ) ; c [ b ] = g } ) ; return c } , writeCssText : function ( a , e ) { var b , c = [ ] ; for ( b in a ) c . push ( b + ":" + a [ b ] ) ; e && c . sort ( ) ; return c . join ( "; " ) } , objectCompare : function ( a , e , b ) { var c ; if ( ! a && ! e ) return ! 0 ; if ( ! a || ! e ) return ! 1 ; for ( c in a ) if ( a [ c ] != e [ c ] ) return ! 1 ; if ( ! b ) for ( c in e ) if ( a [ c ] != e [ c ] ) return ! 1 ; return ! 0 } , objectKeys : function ( a ) { var e = [ ] , b ; for ( b in a ) e . push ( b ) ; return e } , convertArrayToObject : function ( a , e ) { var b = { } ; 1 ==
arguments . length && ( e = ! 0 ) ; for ( var c = 0 , g = a . length ; c < g ; ++ c ) b [ a [ c ] ] = e ; return b } , fixDomain : function ( ) { for ( var a ; ; ) try { a = window . parent . document . domain ; break } catch ( e ) { a = a ? a . replace ( /.+?(?:\.|$)/ , "" ) : document . domain ; if ( ! a ) break ; document . domain = a } return ! ! a } , eventsBuffer : function ( a , e , b ) { function c ( ) { d = ( new Date ) . getTime ( ) ; g = ! 1 ; b ? e . call ( b ) : e ( ) } var g , d = 0 ; return { input : function ( ) { if ( ! g ) { var e = ( new Date ) . getTime ( ) - d ; e < a ? g = setTimeout ( c , a - e ) : c ( ) } } , reset : function ( ) { g && clearTimeout ( g ) ; g = d = 0 } } } , enableHtml5Elements : function ( a ,
e ) { for ( var b = "abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video" . split ( " " ) , c = b . length , g ; c -- ; ) g = a . createElement ( b [ c ] ) , e && a . appendChild ( g ) } , checkIfAnyArrayItemMatches : function ( a , e ) { for ( var b = 0 , c = a . length ; b < c ; ++ b ) if ( a [ b ] . match ( e ) ) return ! 0 ; return ! 1 } , checkIfAnyObjectPropertyMatches : function ( a , e ) { for ( var b in a ) if ( b . match ( e ) ) return ! 0 ; return ! 1 } , keystrokeToString : function ( a , e ) { var b = this . keystrokeToArray ( a ,
e ) ; b . display = b . display . join ( "+" ) ; b . aria = b . aria . join ( "+" ) ; return b } , keystrokeToArray : function ( a , e ) { var b = e & 16711680 , c = e & 65535 , g = CKEDITOR . env . mac , d = [ ] , m = [ ] ; b & CKEDITOR . CTRL && ( d . push ( g ? "⌘" : a [ 17 ] ) , m . push ( g ? a [ 224 ] : a [ 17 ] ) ) ; b & CKEDITOR . ALT && ( d . push ( g ? "⌥" : a [ 18 ] ) , m . push ( a [ 18 ] ) ) ; b & CKEDITOR . SHIFT && ( d . push ( g ? "⇧ " : a [ 16 ] ) , m . push ( a [ 16 ] ) ) ; c && ( a [ c ] ? ( d . push ( a [ c ] ) , m . push ( a [ c ] ) ) : ( d . push ( String . fromCharCode ( c ) ) , m . push ( String . fromCharCode ( c ) ) ) ) ; return { display : d , aria : m } } , transparentImageData : "data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d" ,
getCookie : function ( a ) { a = a . toLowerCase ( ) ; for ( var e = document . cookie . split ( ";" ) , b , c , g = 0 ; g < e . length ; g ++ ) if ( b = e [ g ] . split ( "\x3d" ) , c = decodeURIComponent ( CKEDITOR . tools . trim ( b [ 0 ] ) . toLowerCase ( ) ) , c === a ) return decodeURIComponent ( 1 < b . length ? b [ 1 ] : "" ) ; return null } , setCookie : function ( a , b ) { document . cookie = encodeURIComponent ( a ) + "\x3d" + encodeURIComponent ( b ) + ";path\x3d/" } , getCsrfToken : function ( ) { var a = CKEDITOR . tools . getCookie ( "ckCsrfToken" ) ; if ( ! a || 40 != a . length ) { var a = [ ] , b = "" ; if ( window . crypto && window . crypto . getRandomValues ) a =
new Uint8Array ( 40 ) , window . crypto . getRandomValues ( a ) ; else for ( var c = 0 ; 40 > c ; c ++ ) a . push ( Math . floor ( 256 * Math . random ( ) ) ) ; for ( c = 0 ; c < a . length ; c ++ ) var g = "abcdefghijklmnopqrstuvwxyz0123456789" . charAt ( a [ c ] % 36 ) , b = b + ( . 5 < Math . random ( ) ? g . toUpperCase ( ) : g ) ; a = b ; CKEDITOR . tools . setCookie ( "ckCsrfToken" , a ) } return a } , escapeCss : function ( a ) { return a ? window . CSS && CSS . escape ? CSS . escape ( a ) : isNaN ( parseInt ( a . charAt ( 0 ) , 10 ) ) ? a : "\\3" + a . charAt ( 0 ) + " " + a . substring ( 1 , a . length ) : "" } , getMouseButton : function ( a ) { var b = ( a = a . data ) && a . $ ; return a &&
b ? CKEDITOR . env . ie && 9 > CKEDITOR . env . version ? 4 === b . button ? CKEDITOR . MOUSE _BUTTON _MIDDLE : 1 === b . button ? CKEDITOR . MOUSE _BUTTON _LEFT : CKEDITOR . MOUSE _BUTTON _RIGHT : b . button : ! 1 } , convertHexStringToBytes : function ( a ) { var b = [ ] , c = a . length / 2 , g ; for ( g = 0 ; g < c ; g ++ ) b . push ( parseInt ( a . substr ( 2 * g , 2 ) , 16 ) ) ; return b } , convertBytesToBase64 : function ( a ) { var b = "" , c = a . length , g ; for ( g = 0 ; g < c ; g += 3 ) { var d = a . slice ( g , g + 3 ) , m = d . length , f = [ ] , p ; if ( 3 > m ) for ( p = m ; 3 > p ; p ++ ) d [ p ] = 0 ; f [ 0 ] = ( d [ 0 ] & 252 ) >> 2 ; f [ 1 ] = ( d [ 0 ] & 3 ) << 4 | d [ 1 ] >> 4 ; f [ 2 ] = ( d [ 1 ] & 15 ) << 2 | ( d [ 2 ] & 192 ) >>
6 ; f [ 3 ] = d [ 2 ] & 63 ; for ( p = 0 ; 4 > p ; p ++ ) b = p <= m ? b + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" . charAt ( f [ p ] ) : b + "\x3d" } return b } , style : { parse : { _colors : { aliceblue : "#F0F8FF" , antiquewhite : "#FAEBD7" , aqua : "#00FFFF" , aquamarine : "#7FFFD4" , azure : "#F0FFFF" , beige : "#F5F5DC" , bisque : "#FFE4C4" , black : "#000000" , blanchedalmond : "#FFEBCD" , blue : "#0000FF" , blueviolet : "#8A2BE2" , brown : "#A52A2A" , burlywood : "#DEB887" , cadetblue : "#5F9EA0" , chartreuse : "#7FFF00" , chocolate : "#D2691E" , coral : "#FF7F50" , cornflowerblue : "#6495ED" ,
cornsilk : "#FFF8DC" , crimson : "#DC143C" , cyan : "#00FFFF" , darkblue : "#00008B" , darkcyan : "#008B8B" , darkgoldenrod : "#B8860B" , darkgray : "#A9A9A9" , darkgreen : "#006400" , darkgrey : "#A9A9A9" , darkkhaki : "#BDB76B" , darkmagenta : "#8B008B" , darkolivegreen : "#556B2F" , darkorange : "#FF8C00" , darkorchid : "#9932CC" , darkred : "#8B0000" , darksalmon : "#E9967A" , darkseagreen : "#8FBC8F" , darkslateblue : "#483D8B" , darkslategray : "#2F4F4F" , darkslategrey : "#2F4F4F" , darkturquoise : "#00CED1" , darkviolet : "#9400D3" , deeppink : "#FF1493" , deepskyblue : "#00BFFF ",
dimgray : "#696969" , dimgrey : "#696969" , dodgerblue : "#1E90FF" , firebrick : "#B22222" , floralwhite : "#FFFAF0" , forestgreen : "#228B22" , fuchsia : "#FF00FF" , gainsboro : "#DCDCDC" , ghostwhite : "#F8F8FF" , gold : "#FFD700" , goldenrod : "#DAA520" , gray : "#808080" , green : "#008000" , greenyellow : "#ADFF2F" , grey : "#808080" , honeydew : "#F0FFF0" , hotpink : "#FF69B4" , indianred : "#CD5C5C" , indigo : "#4B0082" , ivory : "#FFFFF0" , khaki : "#F0E68C" , lavender : "#E6E6FA" , lavenderblush : "#FFF0F5" , lawngreen : "#7CFC00" , lemonchiffon : "#FFFACD" , lightblue : "#ADD8E6" , lightcoral : "#F0808 0",
lightcyan : "#E0FFFF" , lightgoldenrodyellow : "#FAFAD2" , lightgray : "#D3D3D3" , lightgreen : "#90EE90" , lightgrey : "#D3D3D3" , lightpink : "#FFB6C1" , lightsalmon : "#FFA07A" , lightseagreen : "#20B2AA" , lightskyblue : "#87CEFA" , lightslategray : "#778899" , lightslategrey : "#778899" , lightsteelblue : "#B0C4DE" , lightyellow : "#FFFFE0" , lime : "#00FF00" , limegreen : "#32CD32" , linen : "#FAF0E6" , magenta : "#FF00FF" , maroon : "#800000" , mediumaquamarine : "#66CDAA" , mediumblue : "#0000CD" , mediumorchid : "#BA55D3" , mediumpurple : "#9370DB" , mediumseagreen : "#3CB371 ",
mediumslateblue : "#7B68EE" , mediumspringgreen : "#00FA9A" , mediumturquoise : "#48D1CC" , mediumvioletred : "#C71585" , midnightblue : "#191970" , mintcream : "#F5FFFA" , mistyrose : "#FFE4E1" , moccasin : "#FFE4B5" , navajowhite : "#FFDEAD" , navy : "#000080" , oldlace : "#FDF5E6" , olive : "#808000" , olivedrab : "#6B8E23" , orange : "#FFA500" , orangered : "#FF4500" , orchid : "#DA70D6" , palegoldenrod : "#EEE8AA" , palegreen : "#98FB98" , paleturquoise : "#AFEEEE" , palevioletred : "#DB7093" , papayawhip : "#FFEFD5" , peachpuff : "#FFDAB9" , peru : "#CD853F" , pink : "#FFC0CB" , plum : "#DDA0D D",
powderblue : "#B0E0E6" , purple : "#800080" , rebeccapurple : "#663399" , red : "#FF0000" , rosybrown : "#BC8F8F" , royalblue : "#4169E1" , saddlebrown : "#8B4513" , salmon : "#FA8072" , sandybrown : "#F4A460" , seagreen : "#2E8B57" , seashell : "#FFF5EE" , sienna : "#A0522D" , silver : "#C0C0C0" , skyblue : "#87CEEB" , slateblue : "#6A5ACD" , slategray : "#708090" , slategrey : "#708090" , snow : "#FFFAFA" , springgreen : "#00FF7F" , steelblue : "#4682B4" , tan : "#D2B48C" , teal : "#008080" , thistle : "#D8BFD8" , tomato : "#FF6347" , turquoise : "#40E0D0" , violet : "#EE82EE" , wheat : "#F5DEB3" , white : "#FFFFFF ",
whitesmoke : "#F5F5F5" , yellow : "#FFFF00" , yellowgreen : "#9ACD32" } , _borderStyle : "none hidden dotted dashed solid double groove ridge inset outset" . split ( " " ) , _widthRegExp : /^(thin|medium|thick|[\+-]?\d+(\.\d+)?[a-z%]+|[\+-]?0+(\.0+)?|\.\d+[a-z%]+)$/ , _rgbaRegExp : /rgba?\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*(?:,\s*[0-9.]+\s*)?\)/gi , _hslaRegExp : /hsla?\(\s*[0-9.]+\s*,\s*\d+%\s*,\s*\d+%\s*(?:,\s*[0-9.]+\s*)?\)/gi , background : function ( a ) { var b = { } , c = this . _findColor ( a ) ; c . length && ( b . color = c [ 0 ] , CKEDITOR . tools . array . forEach ( c ,
function ( b ) { a = a . replace ( b , "" ) } ) ) ; if ( a = CKEDITOR . tools . trim ( a ) ) b . unprocessed = a ; return b } , margin : function ( a ) { function b ( a ) { c . top = g [ a [ 0 ] ] ; c . right = g [ a [ 1 ] ] ; c . bottom = g [ a [ 2 ] ] ; c . left = g [ a [ 3 ] ] } var c = { } , g = a . match ( /(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset)/g ) || [ "0px" ] ; switch ( g . length ) { case 1 : b ( [ 0 , 0 , 0 , 0 ] ) ; break ; case 2 : b ( [ 0 , 1 , 0 , 1 ] ) ; break ; case 3 : b ( [ 0 , 1 , 2 , 1 ] ) ; break ; case 4 : b ( [ 0 , 1 , 2 , 3 ] ) } return c } , border : function ( a ) { var b = { } , c = a . split ( /\s+/g ) ; a = CKEDITOR . tools . style . parse . _findColor ( a ) ; a . length && ( b . color = a [ 0 ] ) ;
CKEDITOR . tools . array . forEach ( c , function ( a ) { b . style || - 1 === CKEDITOR . tools . indexOf ( CKEDITOR . tools . style . parse . _borderStyle , a ) ? ! b . width && CKEDITOR . tools . style . parse . _widthRegExp . test ( a ) && ( b . width = a ) : b . style = a } ) ; return b } , _findColor : function ( a ) { var b = [ ] , c = CKEDITOR . tools . array , b = b . concat ( a . match ( this . _rgbaRegExp ) || [ ] ) , b = b . concat ( a . match ( this . _hslaRegExp ) || [ ] ) ; return b = b . concat ( c . filter ( a . split ( /\s+/ ) , function ( a ) { return a . match ( /^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi ) ? ! 0 : a . toLowerCase ( ) in CKEDITOR . tools . style . parse . _colors } ) ) } } } ,
array : { filter : function ( a , b , c ) { var g = [ ] ; this . forEach ( a , function ( d , m ) { b . call ( c , d , m , a ) && g . push ( d ) } ) ; return g } , forEach : function ( a , b , c ) { var g = a . length , d ; for ( d = 0 ; d < g ; d ++ ) b . call ( c , a [ d ] , d , a ) } , map : function ( a , b , c ) { for ( var g = [ ] , d = 0 ; d < a . length ; d ++ ) g . push ( b . call ( c , a [ d ] , d , a ) ) ; return g } , reduce : function ( a , b , c , g ) { for ( var d = 0 ; d < a . length ; d ++ ) c = b . call ( g , c , a [ d ] , d , a ) ; return c } , every : function ( a , b , c ) { if ( ! a . length ) return ! 0 ; b = this . filter ( a , b , c ) ; return a . length === b . length } } , object : { findKey : function ( a , b ) { if ( "object" !== typeof a ) return null ;
for ( var c in a ) if ( a [ c ] === b ) return c ; return null } , merge : function ( a , b ) { var c = CKEDITOR . tools , g = c . clone ( a ) , d = c . clone ( b ) ; c . array . forEach ( c . objectKeys ( d ) , function ( a ) { g [ a ] = "object" === typeof d [ a ] && "object" === typeof g [ a ] ? c . object . merge ( g [ a ] , d [ a ] ) : d [ a ] } ) ; return g } } } ; CKEDITOR . tools . array . indexOf = CKEDITOR . tools . indexOf ; CKEDITOR . tools . array . isArray = CKEDITOR . tools . isArray ; CKEDITOR . MOUSE _BUTTON _LEFT = 0 ; CKEDITOR . MOUSE _BUTTON _MIDDLE = 1 ; CKEDITOR . MOUSE _BUTTON _RIGHT = 2 } ) ( ) ;
CKEDITOR . dtd = function ( ) { var a = CKEDITOR . tools . extend , d = function ( a , b ) { for ( var c = CKEDITOR . tools . clone ( a ) , g = 1 ; g < arguments . length ; g ++ ) { b = arguments [ g ] ; for ( var d in b ) delete c [ d ] } return c } , b = { } , c = { } , f = { address : 1 , article : 1 , aside : 1 , blockquote : 1 , details : 1 , div : 1 , dl : 1 , fieldset : 1 , figure : 1 , footer : 1 , form : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 , header : 1 , hgroup : 1 , hr : 1 , main : 1 , menu : 1 , nav : 1 , ol : 1 , p : 1 , pre : 1 , section : 1 , table : 1 , ul : 1 } , h = { command : 1 , link : 1 , meta : 1 , noscript : 1 , script : 1 , style : 1 } , k = { } , g = { "#" : 1 } , m = { center : 1 , dir : 1 , noframes : 1 } ;
a ( b , { a : 1 , abbr : 1 , area : 1 , audio : 1 , b : 1 , bdi : 1 , bdo : 1 , br : 1 , button : 1 , canvas : 1 , cite : 1 , code : 1 , command : 1 , datalist : 1 , del : 1 , dfn : 1 , em : 1 , embed : 1 , i : 1 , iframe : 1 , img : 1 , input : 1 , ins : 1 , kbd : 1 , keygen : 1 , label : 1 , map : 1 , mark : 1 , meter : 1 , noscript : 1 , object : 1 , output : 1 , progress : 1 , q : 1 , ruby : 1 , s : 1 , samp : 1 , script : 1 , select : 1 , small : 1 , span : 1 , strong : 1 , sub : 1 , sup : 1 , textarea : 1 , time : 1 , u : 1 , "var" : 1 , video : 1 , wbr : 1 } , g , { acronym : 1 , applet : 1 , basefont : 1 , big : 1 , font : 1 , isindex : 1 , strike : 1 , style : 1 , tt : 1 } ) ; a ( c , f , b , m ) ; d = { a : d ( b , { a : 1 , button : 1 } ) , abbr : b , address : c ,
e || 0 ) } , throttle : function ( a , e , b ) { var c , g = 0 ; b = b || { } ; return { input : function ( ) { function d ( ) { g = ( new Date ) . getTime ( ) ; c = ! 1 ; e . apply ( b , n ) } var n = Array . prototype . slice . call ( arguments ) ; c && ( clearTimeout ( c ) , c = 0 ) ; var m = ( new Date ) . getTime ( ) - g ; m < a ? c = setTimeout ( d , a - m ) : d ( ) } , reset : function ( ) { c && ( clearTimeout ( c ) , c = g = 0 ) } } } , trim : function ( ) { var a = /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g ; return function ( e ) { return e . replace ( a , "" ) } } ( ) , ltrim : function ( ) { var a = /^[ \t\n\r]+/g ; return function ( e ) { return e . replace ( a , "" ) } } ( ) , rtrim : function ( ) { var a =
/[ \t\n\r]+$/g ; return function ( e ) { return e . replace ( a , "" ) } } ( ) , indexOf : function ( a , e ) { if ( "function" == typeof e ) for ( var b = 0 , c = a . length ; b < c ; b ++ ) { if ( e ( a [ b ] ) ) return b } else { if ( a . indexOf ) return a . indexOf ( e ) ; b = 0 ; for ( c = a . length ; b < c ; b ++ ) if ( a [ b ] === e ) return b } return - 1 } , search : function ( a , e ) { var b = CKEDITOR . tools . indexOf ( a , e ) ; return 0 <= b ? a [ b ] : null } , bind : function ( a , e ) { return function ( ) { return a . apply ( e , arguments ) } } , createClass : function ( a ) { var e = a . $ , b = a . base , c = a . privates || a . _ , g = a . proto ; a = a . statics ; ! e && ( e = function ( ) { b &&
this . base . apply ( this , arguments ) } ) ; if ( c ) var d = e , e = function ( ) { var a = this . _ || ( this . _ = { } ) , e ; for ( e in c ) { var b = c [ e ] ; a [ e ] = "function" == typeof b ? CKEDITOR . tools . bind ( b , this ) : b } d . apply ( this , arguments ) } ; b && ( e . prototype = this . prototypedCopy ( b . prototype ) , e . prototype . constructor = e , e . base = b , e . baseProto = b . prototype , e . prototype . base = function ( ) { this . base = b . prototype . base ; b . apply ( this , arguments ) ; this . base = arguments . callee } ) ; g && this . extend ( e . prototype , g , ! 0 ) ; a && this . extend ( e , a , ! 0 ) ; return e } , addFunction : function ( b , e ) { return a . push ( function ( ) { return b . apply ( e ||
this , arguments ) } ) - 1 } , removeFunction : function ( b ) { a [ b ] = null } , callFunction : function ( b ) { var e = a [ b ] ; return e && e . apply ( window , Array . prototype . slice . call ( arguments , 1 ) ) } , cssLength : function ( ) { var a = /^-?\d+\.?\d*px$/ , e ; return function ( b ) { e = CKEDITOR . tools . trim ( b + "" ) + "px" ; return a . test ( e ) ? e : b || "" } } ( ) , convertToPx : function ( ) { var a ; return function ( e ) { a || ( a = CKEDITOR . dom . element . createFromHtml ( '\x3cdiv style\x3d"position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"\x3e\x3c/div\x3e' , CKEDITOR . document ) ,
CKEDITOR . document . getBody ( ) . append ( a ) ) ; return /%$/ . test ( e ) ? e : ( a . setStyle ( "width" , e ) , a . $ . clientWidth ) } } ( ) , repeat : function ( a , e ) { return Array ( e + 1 ) . join ( a ) } , tryThese : function ( ) { for ( var a , e = 0 , b = arguments . length ; e < b ; e ++ ) { var c = arguments [ e ] ; try { a = c ( ) ; break } catch ( g ) { } } return a } , genKey : function ( ) { return Array . prototype . slice . call ( arguments ) . join ( "-" ) } , defer : function ( a ) { return function ( ) { var e = arguments , b = this ; window . setTimeout ( function ( ) { a . apply ( b , e ) } , 0 ) } } , normalizeCssText : function ( a , e ) { var b = [ ] , c , g = CKEDITOR . tools . parseCssText ( a ,
! 0 , e ) ; for ( c in g ) b . push ( c + ":" + g [ c ] ) ; b . sort ( ) ; return b . length ? b . join ( ";" ) + ";" : "" } , convertRgbToHex : function ( a ) { return a . replace ( /(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi , function ( a , b , c , g ) { a = [ b , c , g ] ; for ( b = 0 ; 3 > b ; b ++ ) a [ b ] = ( "0" + parseInt ( a [ b ] , 10 ) . toString ( 16 ) ) . slice ( - 2 ) ; return "#" + a . join ( "" ) } ) } , normalizeHex : function ( a ) { return a . replace ( /#(([0-9a-f]{3}){1,2})($|;|\s+)/gi , function ( a , b , c , g ) { a = b . toLowerCase ( ) ; 3 == a . length && ( a = a . split ( "" ) , a = [ a [ 0 ] , a [ 0 ] , a [ 1 ] , a [ 1 ] , a [ 2 ] , a [ 2 ] ] . join ( "" ) ) ; return "#" + a + g } ) } , parseCssText : function ( a ,
e , b ) { var c = { } ; b && ( a = ( new CKEDITOR . dom . element ( "span" ) ) . setAttribute ( "style" , a ) . getAttribute ( "style" ) || "" ) ; a && ( a = CKEDITOR . tools . normalizeHex ( CKEDITOR . tools . convertRgbToHex ( a ) ) ) ; if ( ! a || ";" == a ) return c ; a . replace ( /"/g , '"' ) . replace ( /\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g , function ( a , b , g ) { e && ( b = b . toLowerCase ( ) , "font-family" == b && ( g = g . replace ( /\s*,\s*/g , "," ) ) , g = CKEDITOR . tools . trim ( g ) ) ; c [ b ] = g } ) ; return c } , writeCssText : function ( a , e ) { var b , c = [ ] ; for ( b in a ) c . push ( b + ":" + a [ b ] ) ; e && c . sort ( ) ; return c . join ( "; " ) } ,
objectCompare : function ( a , e , b ) { var c ; if ( ! a && ! e ) return ! 0 ; if ( ! a || ! e ) return ! 1 ; for ( c in a ) if ( a [ c ] != e [ c ] ) return ! 1 ; if ( ! b ) for ( c in e ) if ( a [ c ] != e [ c ] ) return ! 1 ; return ! 0 } , objectKeys : function ( a ) { var e = [ ] , b ; for ( b in a ) e . push ( b ) ; return e } , convertArrayToObject : function ( a , e ) { var b = { } ; 1 == arguments . length && ( e = ! 0 ) ; for ( var c = 0 , g = a . length ; c < g ; ++ c ) b [ a [ c ] ] = e ; return b } , fixDomain : function ( ) { for ( var a ; ; ) try { a = window . parent . document . domain ; break } catch ( e ) { a = a ? a . replace ( /.+?(?:\.|$)/ , "" ) : document . domain ; if ( ! a ) break ; document . domain =
a } return ! ! a } , eventsBuffer : function ( a , e , b ) { function c ( ) { d = ( new Date ) . getTime ( ) ; g = ! 1 ; b ? e . call ( b ) : e ( ) } var g , d = 0 ; return { input : function ( ) { if ( ! g ) { var e = ( new Date ) . getTime ( ) - d ; e < a ? g = setTimeout ( c , a - e ) : c ( ) } } , reset : function ( ) { g && clearTimeout ( g ) ; g = d = 0 } } } , enableHtml5Elements : function ( a , e ) { for ( var b = "abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video" . split ( " " ) , c = b . length , g ; c -- ; ) g = a . createElement ( b [ c ] ) ,
e && a . appendChild ( g ) } , checkIfAnyArrayItemMatches : function ( a , e ) { for ( var b = 0 , c = a . length ; b < c ; ++ b ) if ( a [ b ] . match ( e ) ) return ! 0 ; return ! 1 } , checkIfAnyObjectPropertyMatches : function ( a , e ) { for ( var b in a ) if ( b . match ( e ) ) return ! 0 ; return ! 1 } , keystrokeToString : function ( a , e ) { var b = this . keystrokeToArray ( a , e ) ; b . display = b . display . join ( "+" ) ; b . aria = b . aria . join ( "+ " ) ; return b } , keystrokeToArray : function ( a , e ) { var b = e & 16711680 , c = e & 65535 , g = CKEDITOR . env . mac , d = [ ] , n = [ ] ; b & CKEDITOR . CTRL && ( d . push ( g ? "⌘" : a [ 17 ] ) , n . push ( g ? a [ 224 ] : a [ 17 ] ) ) ;
b & CKEDITOR . ALT && ( d . push ( g ? "⌥" : a [ 18 ] ) , n . push ( a [ 18 ] ) ) ; b & CKEDITOR . SHIFT && ( d . push ( g ? "⇧" : a [ 16 ] ) , n . push ( a [ 16 ] ) ) ; c && ( a [ c ] ? ( d . push ( a [ c ] ) , n . push ( a [ c ] ) ) : ( d . push ( String . fromCharCode ( c ) ) , n . push ( String . fromCharCode ( c ) ) ) ) ; return { display : d , aria : n } } , transparentImageData : "data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d" , getCookie : function ( a ) { a = a . toLowerCase ( ) ; for ( var e = document . cookie . split ( ";" ) , b , c , g = 0 ; g < e . length ; g ++ ) if ( b = e [ g ] . split ( "\x3d" ) , c = decodeURIComponent ( CKEDITOR . tools . trim ( b [ 0 ] ) . toLowerCase ( ) ) ,
c === a ) return decodeURIComponent ( 1 < b . length ? b [ 1 ] : "" ) ; return null } , setCookie : function ( a , e ) { document . cookie = encodeURIComponent ( a ) + "\x3d" + encodeURIComponent ( e ) + ";path\x3d/" } , getCsrfToken : function ( ) { var a = CKEDITOR . tools . getCookie ( "ckCsrfToken" ) ; if ( ! a || 40 != a . length ) { var a = [ ] , e = "" ; if ( window . crypto && window . crypto . getRandomValues ) a = new Uint8Array ( 40 ) , window . crypto . getRandomValues ( a ) ; else for ( var b = 0 ; 40 > b ; b ++ ) a . push ( Math . floor ( 256 * Math . random ( ) ) ) ; for ( b = 0 ; b < a . length ; b ++ ) var c = "abcdefghijklmnopqrstuvwxyz0123456789" . charAt ( a [ b ] %
36 ) , e = e + ( . 5 < Math . random ( ) ? c . toUpperCase ( ) : c ) ; a = e ; CKEDITOR . tools . setCookie ( "ckCsrfToken" , a ) } return a } , escapeCss : function ( a ) { return a ? window . CSS && CSS . escape ? CSS . escape ( a ) : isNaN ( parseInt ( a . charAt ( 0 ) , 10 ) ) ? a : "\\3" + a . charAt ( 0 ) + " " + a . substring ( 1 , a . length ) : "" } , getMouseButton : function ( a ) { var b = ( a = a . data ) && a . $ ; return a && b ? CKEDITOR . env . ie && 9 > CKEDITOR . env . version ? 4 === b . button ? CKEDITOR . MOUSE _BUTTON _MIDDLE : 1 === b . button ? CKEDITOR . MOUSE _BUTTON _LEFT : CKEDITOR . MOUSE _BUTTON _RIGHT : b . button : ! 1 } , convertHexStringToBytes : function ( a ) { var b =
[ ] , c = a . length / 2 , g ; for ( g = 0 ; g < c ; g ++ ) b . push ( parseInt ( a . substr ( 2 * g , 2 ) , 16 ) ) ; return b } , convertBytesToBase64 : function ( a ) { var b = "" , c = a . length , g ; for ( g = 0 ; g < c ; g += 3 ) { var d = a . slice ( g , g + 3 ) , n = d . length , f = [ ] , m ; if ( 3 > n ) for ( m = n ; 3 > m ; m ++ ) d [ m ] = 0 ; f [ 0 ] = ( d [ 0 ] & 252 ) >> 2 ; f [ 1 ] = ( d [ 0 ] & 3 ) << 4 | d [ 1 ] >> 4 ; f [ 2 ] = ( d [ 1 ] & 15 ) << 2 | ( d [ 2 ] & 192 ) >> 6 ; f [ 3 ] = d [ 2 ] & 63 ; for ( m = 0 ; 4 > m ; m ++ ) b = m <= n ? b + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" . charAt ( f [ m ] ) : b + "\x3d" } return b } , style : { parse : { _colors : { aliceblue : "#F0F8FF" , antiquewhite : "#FAEBD7" ,
aqua : "#00FFFF" , aquamarine : "#7FFFD4" , azure : "#F0FFFF" , beige : "#F5F5DC" , bisque : "#FFE4C4" , black : "#000000" , blanchedalmond : "#FFEBCD" , blue : "#0000FF" , blueviolet : "#8A2BE2" , brown : "#A52A2A" , burlywood : "#DEB887" , cadetblue : "#5F9EA0" , chartreuse : "#7FFF00" , chocolate : "#D2691E" , coral : "#FF7F50" , cornflowerblue : "#6495ED" , cornsilk : "#FFF8DC" , crimson : "#DC143C" , cyan : "#00FFFF" , darkblue : "#00008B" , darkcyan : "#008B8B" , darkgoldenrod : "#B8860B" , darkgray : "#A9A9A9" , darkgreen : "#006400" , darkgrey : "#A9A9A9" , darkkhaki : "#BDB76B" , darkmagenta : "#8B008B" ,
darkolivegreen : "#556B2F" , darkorange : "#FF8C00" , darkorchid : "#9932CC" , darkred : "#8B0000" , darksalmon : "#E9967A" , darkseagreen : "#8FBC8F" , darkslateblue : "#483D8B" , darkslategray : "#2F4F4F" , darkslategrey : "#2F4F4F" , darkturquoise : "#00CED1" , darkviolet : "#9400D3" , deeppink : "#FF1493" , deepskyblue : "#00BFFF" , dimgray : "#696969" , dimgrey : "#696969" , dodgerblue : "#1E90FF" , firebrick : "#B22222" , floralwhite : "#FFFAF0" , forestgreen : "#228B22" , fuchsia : "#FF00FF" , gainsboro : "#DCDCDC" , ghostwhite : "#F8F8FF" , gold : "#FFD700" , goldenrod : "#DAA520" ,
gray : "#808080" , green : "#008000" , greenyellow : "#ADFF2F" , grey : "#808080" , honeydew : "#F0FFF0" , hotpink : "#FF69B4" , indianred : "#CD5C5C" , indigo : "#4B0082" , ivory : "#FFFFF0" , khaki : "#F0E68C" , lavender : "#E6E6FA" , lavenderblush : "#FFF0F5" , lawngreen : "#7CFC00" , lemonchiffon : "#FFFACD" , lightblue : "#ADD8E6" , lightcoral : "#F08080" , lightcyan : "#E0FFFF" , lightgoldenrodyellow : "#FAFAD2" , lightgray : "#D3D3D3" , lightgreen : "#90EE90" , lightgrey : "#D3D3D3" , lightpink : "#FFB6C1" , lightsalmon : "#FFA07A" , lightseagreen : "#20B2AA" , lightskyblue : "#87CEFA" ,
lightslategray : "#778899" , lightslategrey : "#778899" , lightsteelblue : "#B0C4DE" , lightyellow : "#FFFFE0" , lime : "#00FF00" , limegreen : "#32CD32" , linen : "#FAF0E6" , magenta : "#FF00FF" , maroon : "#800000" , mediumaquamarine : "#66CDAA" , mediumblue : "#0000CD" , mediumorchid : "#BA55D3" , mediumpurple : "#9370DB" , mediumseagreen : "#3CB371" , mediumslateblue : "#7B68EE" , mediumspringgreen : "#00FA9A" , mediumturquoise : "#48D1CC" , mediumvioletred : "#C71585" , midnightblue : "#191970" , mintcream : "#F5FFFA" , mistyrose : "#FFE4E1" , moccasin : "#FFE4B5" , navajowhite : "#FFDEAD" ,
navy : "#000080" , oldlace : "#FDF5E6" , olive : "#808000" , olivedrab : "#6B8E23" , orange : "#FFA500" , orangered : "#FF4500" , orchid : "#DA70D6" , palegoldenrod : "#EEE8AA" , palegreen : "#98FB98" , paleturquoise : "#AFEEEE" , palevioletred : "#DB7093" , papayawhip : "#FFEFD5" , peachpuff : "#FFDAB9" , peru : "#CD853F" , pink : "#FFC0CB" , plum : "#DDA0DD" , powderblue : "#B0E0E6" , purple : "#800080" , rebeccapurple : "#663399" , red : "#FF0000" , rosybrown : "#BC8F8F" , royalblue : "#4169E1" , saddlebrown : "#8B4513" , salmon : "#FA8072" , sandybrown : "#F4A460" , seagreen : "#2E8B57" , seashell : "#FFF5EE" ,
sienna : "#A0522D" , silver : "#C0C0C0" , skyblue : "#87CEEB" , slateblue : "#6A5ACD" , slategray : "#708090" , slategrey : "#708090" , snow : "#FFFAFA" , springgreen : "#00FF7F" , steelblue : "#4682B4" , tan : "#D2B48C" , teal : "#008080" , thistle : "#D8BFD8" , tomato : "#FF6347" , turquoise : "#40E0D0" , violet : "#EE82EE" , wheat : "#F5DEB3" , white : "#FFFFFF" , whitesmoke : "#F5F5F5" , yellow : "#FFFF00" , yellowgreen : "#9ACD32" } , _borderStyle : "none hidden dotted dashed solid double groove ridge inset outset" . split ( " " ) , _widthRegExp : /^(thin|medium|thick|[\+-]?\d+(\.\d+)?[a-z%]+|[\+-]?0+(\.0+)?|\.\d+[a-z%]+)$/ ,
_rgbaRegExp : /rgba?\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*(?:,\s*[0-9.]+\s*)?\)/gi , _hslaRegExp : /hsla?\(\s*[0-9.]+\s*,\s*\d+%\s*,\s*\d+%\s*(?:,\s*[0-9.]+\s*)?\)/gi , background : function ( a ) { var b = { } , c = this . _findColor ( a ) ; c . length && ( b . color = c [ 0 ] , CKEDITOR . tools . array . forEach ( c , function ( b ) { a = a . replace ( b , "" ) } ) ) ; if ( a = CKEDITOR . tools . trim ( a ) ) b . unprocessed = a ; return b } , margin : function ( a ) { function b ( a ) { c . top = g [ a [ 0 ] ] ; c . right = g [ a [ 1 ] ] ; c . bottom = g [ a [ 2 ] ] ; c . left = g [ a [ 3 ] ] } var c = { } , g = a . match ( /(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset)/g ) ||
[ "0px" ] ; switch ( g . length ) { case 1 : b ( [ 0 , 0 , 0 , 0 ] ) ; break ; case 2 : b ( [ 0 , 1 , 0 , 1 ] ) ; break ; case 3 : b ( [ 0 , 1 , 2 , 1 ] ) ; break ; case 4 : b ( [ 0 , 1 , 2 , 3 ] ) } return c } , border : function ( a ) { var b = { } , c = a . split ( /\s+/g ) ; a = CKEDITOR . tools . style . parse . _findColor ( a ) ; a . length && ( b . color = a [ 0 ] ) ; CKEDITOR . tools . array . forEach ( c , function ( a ) { b . style || - 1 === CKEDITOR . tools . indexOf ( CKEDITOR . tools . style . parse . _borderStyle , a ) ? ! b . width && CKEDITOR . tools . style . parse . _widthRegExp . test ( a ) && ( b . width = a ) : b . style = a } ) ; return b } , _findColor : function ( a ) { var b = [ ] , c = CKEDITOR . tools . array ,
b = b . concat ( a . match ( this . _rgbaRegExp ) || [ ] ) , b = b . concat ( a . match ( this . _hslaRegExp ) || [ ] ) ; return b = b . concat ( c . filter ( a . split ( /\s+/ ) , function ( a ) { return a . match ( /^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi ) ? ! 0 : a . toLowerCase ( ) in CKEDITOR . tools . style . parse . _colors } ) ) } } } , array : { filter : function ( a , b , c ) { var g = [ ] ; this . forEach ( a , function ( d , n ) { b . call ( c , d , n , a ) && g . push ( d ) } ) ; return g } , forEach : function ( a , b , c ) { var g = a . length , d ; for ( d = 0 ; d < g ; d ++ ) b . call ( c , a [ d ] , d , a ) } , map : function ( a , b , c ) { for ( var g = [ ] , d = 0 ; d < a . length ; d ++ ) g . push ( b . call ( c ,
a [ d ] , d , a ) ) ; return g } , reduce : function ( a , b , c , g ) { for ( var d = 0 ; d < a . length ; d ++ ) c = b . call ( g , c , a [ d ] , d , a ) ; return c } , every : function ( a , b , c ) { if ( ! a . length ) return ! 0 ; b = this . filter ( a , b , c ) ; return a . length === b . length } } , object : { findKey : function ( a , b ) { if ( "object" !== typeof a ) return null ; for ( var c in a ) if ( a [ c ] === b ) return c ; return null } , merge : function ( a , b ) { var c = CKEDITOR . tools , g = c . clone ( a ) , d = c . clone ( b ) ; c . array . forEach ( c . objectKeys ( d ) , function ( a ) { g [ a ] = "object" === typeof d [ a ] && "object" === typeof g [ a ] ? c . object . merge ( g [ a ] , d [ a ] ) :
d [ a ] } ) ; return g } } , getAbsoluteRectPosition : function ( a , b ) { function c ( a ) { if ( a ) { var b = a . getClientRect ( ) ; g . top += b . top ; g . left += b . left ; "x" in g && "y" in g && ( g . x += b . x , g . y += b . y ) ; c ( a . getWindow ( ) . getFrame ( ) ) } } var g = CKEDITOR . tools . copy ( b ) ; c ( a . getFrame ( ) ) ; var d = CKEDITOR . document . getWindow ( ) . getScrollPosition ( ) ; g . top += d . y ; g . left += d . x ; "x" in g && "y" in g && ( g . y += d . y , g . x += d . x ) ; g . right = g . left + g . width ; g . bottom = g . top + g . height ; return g } } ; CKEDITOR . tools . array . indexOf = CKEDITOR . tools . indexOf ; CKEDITOR . tools . array . isArray = CKEDITOR . tools . isArray ;
CKEDITOR . MOUSE _BUTTON _LEFT = 0 ; CKEDITOR . MOUSE _BUTTON _MIDDLE = 1 ; CKEDITOR . MOUSE _BUTTON _RIGHT = 2 } ) ( ) ;
CKEDITOR . dtd = function ( ) { var a = CKEDITOR . tools . extend , d = function ( a , b ) { for ( var c = CKEDITOR . tools . clone ( a ) , g = 1 ; g < arguments . length ; g ++ ) { b = arguments [ g ] ; for ( var d in b ) delete c [ d ] } return c } , b = { } , c = { } , f = { address : 1 , article : 1 , aside : 1 , blockquote : 1 , details : 1 , div : 1 , dl : 1 , fieldset : 1 , figure : 1 , footer : 1 , form : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 , header : 1 , hgroup : 1 , hr : 1 , main : 1 , menu : 1 , nav : 1 , ol : 1 , p : 1 , pre : 1 , section : 1 , table : 1 , ul : 1 } , h = { command : 1 , link : 1 , meta : 1 , noscript : 1 , script : 1 , style : 1 } , k = { } , g = { "#" : 1 } , n = { center : 1 , dir : 1 , noframes : 1 } ;
a ( b , { a : 1 , abbr : 1 , area : 1 , audio : 1 , b : 1 , bdi : 1 , bdo : 1 , br : 1 , button : 1 , canvas : 1 , cite : 1 , code : 1 , command : 1 , datalist : 1 , del : 1 , dfn : 1 , em : 1 , embed : 1 , i : 1 , iframe : 1 , img : 1 , input : 1 , ins : 1 , kbd : 1 , keygen : 1 , label : 1 , map : 1 , mark : 1 , meter : 1 , noscript : 1 , object : 1 , output : 1 , progress : 1 , q : 1 , ruby : 1 , s : 1 , samp : 1 , script : 1 , select : 1 , small : 1 , span : 1 , strong : 1 , sub : 1 , sup : 1 , textarea : 1 , time : 1 , u : 1 , "var" : 1 , video : 1 , wbr : 1 } , g , { acronym : 1 , applet : 1 , basefont : 1 , big : 1 , font : 1 , isindex : 1 , strike : 1 , style : 1 , tt : 1 } ) ; a ( c , f , b , n ) ; d = { a : d ( b , { a : 1 , button : 1 } ) , abbr : b , address : c ,
area : k , article : c , aside : c , audio : a ( { source : 1 , track : 1 } , c ) , b : b , base : k , bdi : b , bdo : b , blockquote : c , body : c , br : k , button : d ( b , { a : 1 , button : 1 } ) , canvas : b , caption : c , cite : b , code : b , col : k , colgroup : { col : 1 } , command : k , datalist : a ( { option : 1 } , b ) , dd : c , del : b , details : a ( { summary : 1 } , c ) , dfn : b , div : c , dl : { dt : 1 , dd : 1 } , dt : c , em : b , embed : k , fieldset : a ( { legend : 1 } , c ) , figcaption : c , figure : a ( { figcaption : 1 } , c ) , footer : c , form : c , h1 : b , h2 : b , h3 : b , h4 : b , h5 : b , h6 : b , head : a ( { title : 1 , base : 1 } , h ) , header : c , hgroup : { h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 } , hr : k , html : a ( { head : 1 ,
body : 1 } , c , h ) , i : b , iframe : g , img : k , input : k , ins : b , kbd : b , keygen : k , label : b , legend : b , li : c , link : k , main : c , map : c , mark : b , menu : a ( { li : 1 } , c ) , meta : k , meter : d ( b , { meter : 1 } ) , nav : c , noscript : a ( { link : 1 , meta : 1 , style : 1 } , b ) , object : a ( { param : 1 } , b ) , ol : { li : 1 } , optgroup : { option : 1 } , option : g , output : b , p : b , param : k , pre : b , progress : d ( b , { progress : 1 } ) , q : b , rp : b , rt : b , ruby : a ( { rp : 1 , rt : 1 } , b ) , s : b , samp : b , script : g , section : c , select : { optgroup : 1 , option : 1 } , small : b , source : k , span : b , strong : b , style : g , sub : b , summary : a ( { h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 } , b ) ,
sup : b , table : { caption : 1 , colgroup : 1 , thead : 1 , tfoot : 1 , tbody : 1 , tr : 1 } , tbody : { tr : 1 } , td : c , textarea : g , tfoot : { tr : 1 } , th : c , thead : { tr : 1 } , time : d ( b , { time : 1 } ) , title : g , tr : { th : 1 , td : 1 } , track : k , u : b , ul : { li : 1 } , "var" : b , video : a ( { source : 1 , track : 1 } , c ) , wbr : k , acronym : b , applet : a ( { param : 1 } , c ) , basefont : k , big : b , center : c , dialog : k , dir : { li : 1 } , font : b , isindex : k , noframes : c , strike : b , tt : b } ; a ( d , { $block : a ( { audio : 1 , dd : 1 , dt : 1 , figcaption : 1 , li : 1 , video : 1 } , f , m ) , $blockLimit : { article : 1 , aside : 1 , audio : 1 , body : 1 , caption : 1 , details : 1 , dir : 1 , div : 1 , dl : 1 ,
sup : b , table : { caption : 1 , colgroup : 1 , thead : 1 , tfoot : 1 , tbody : 1 , tr : 1 } , tbody : { tr : 1 } , td : c , textarea : g , tfoot : { tr : 1 } , th : c , thead : { tr : 1 } , time : d ( b , { time : 1 } ) , title : g , tr : { th : 1 , td : 1 } , track : k , u : b , ul : { li : 1 } , "var" : b , video : a ( { source : 1 , track : 1 } , c ) , wbr : k , acronym : b , applet : a ( { param : 1 } , c ) , basefont : k , big : b , center : c , dialog : k , dir : { li : 1 } , font : b , isindex : k , noframes : c , strike : b , tt : b } ; a ( d , { $block : a ( { audio : 1 , dd : 1 , dt : 1 , figcaption : 1 , li : 1 , video : 1 } , f , n ) , $blockLimit : { article : 1 , aside : 1 , audio : 1 , body : 1 , caption : 1 , details : 1 , dir : 1 , div : 1 , dl : 1 ,
fieldset : 1 , figcaption : 1 , figure : 1 , footer : 1 , form : 1 , header : 1 , hgroup : 1 , main : 1 , menu : 1 , nav : 1 , ol : 1 , section : 1 , table : 1 , td : 1 , th : 1 , tr : 1 , ul : 1 , video : 1 } , $cdata : { script : 1 , style : 1 } , $editable : { address : 1 , article : 1 , aside : 1 , blockquote : 1 , body : 1 , details : 1 , div : 1 , fieldset : 1 , figcaption : 1 , footer : 1 , form : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 , header : 1 , hgroup : 1 , main : 1 , nav : 1 , p : 1 , pre : 1 , section : 1 } , $empty : { area : 1 , base : 1 , basefont : 1 , br : 1 , col : 1 , command : 1 , dialog : 1 , embed : 1 , hr : 1 , img : 1 , input : 1 , isindex : 1 , keygen : 1 , link : 1 , meta : 1 , param : 1 , source : 1 ,
track : 1 , wbr : 1 } , $inline : b , $list : { dl : 1 , ol : 1 , ul : 1 } , $listItem : { dd : 1 , dt : 1 , li : 1 } , $nonBodyContent : a ( { body : 1 , head : 1 , html : 1 } , d . head ) , $nonEditable : { applet : 1 , audio : 1 , button : 1 , embed : 1 , iframe : 1 , map : 1 , object : 1 , option : 1 , param : 1 , script : 1 , textarea : 1 , video : 1 } , $object : { applet : 1 , audio : 1 , button : 1 , hr : 1 , iframe : 1 , img : 1 , input : 1 , object : 1 , select : 1 , table : 1 , textarea : 1 , video : 1 } , $removeEmpty : { abbr : 1 , acronym : 1 , b : 1 , bdi : 1 , bdo : 1 , big : 1 , cite : 1 , code : 1 , del : 1 , dfn : 1 , em : 1 , font : 1 , i : 1 , ins : 1 , label : 1 , kbd : 1 , mark : 1 , meter : 1 , output : 1 , q : 1 , ruby : 1 ,
s : 1 , samp : 1 , small : 1 , span : 1 , strike : 1 , strong : 1 , sub : 1 , sup : 1 , time : 1 , tt : 1 , u : 1 , "var" : 1 } , $tabIndex : { a : 1 , area : 1 , button : 1 , input : 1 , object : 1 , select : 1 , textarea : 1 } , $tableContent : { caption : 1 , col : 1 , colgroup : 1 , tbody : 1 , td : 1 , tfoot : 1 , th : 1 , thead : 1 , tr : 1 } , $transparent : { a : 1 , audio : 1 , canvas : 1 , del : 1 , ins : 1 , map : 1 , noscript : 1 , object : 1 , video : 1 } , $intermediate : { caption : 1 , colgroup : 1 , dd : 1 , dt : 1 , figcaption : 1 , legend : 1 , li : 1 , optgroup : 1 , option : 1 , rp : 1 , rt : 1 , summary : 1 , tbody : 1 , td : 1 , tfoot : 1 , th : 1 , thead : 1 , tr : 1 } } ) ; return d } ( ) ;
@@ -71,8 +73,8 @@ CKEDITOR.dom.node=function(a){return a?new CKEDITOR.dom[a.nodeType==CKEDITOR.NOD
CKEDITOR . POSITION _IDENTICAL = 0 ; CKEDITOR . POSITION _DISCONNECTED = 1 ; CKEDITOR . POSITION _FOLLOWING = 2 ; CKEDITOR . POSITION _PRECEDING = 4 ; CKEDITOR . POSITION _IS _CONTAINED = 8 ; CKEDITOR . POSITION _CONTAINS = 16 ;
CKEDITOR . tools . extend ( CKEDITOR . dom . node . prototype , { appendTo : function ( a , d ) { a . append ( this , d ) ; return a } , clone : function ( a , d ) { function b ( c ) { c [ "data-cke-expando" ] && ( c [ "data-cke-expando" ] = ! 1 ) ; if ( c . nodeType == CKEDITOR . NODE _ELEMENT || c . nodeType == CKEDITOR . NODE _DOCUMENT _FRAGMENT ) if ( d || c . nodeType != CKEDITOR . NODE _ELEMENT || c . removeAttribute ( "id" , ! 1 ) , a ) { c = c . childNodes ; for ( var f = 0 ; f < c . length ; f ++ ) b ( c [ f ] ) } } function c ( b ) { if ( b . type == CKEDITOR . NODE _ELEMENT || b . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT ) { if ( b . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ) { var d =
b . getName ( ) ; ":" == d [ 0 ] && b . renameNode ( d . substring ( 1 ) ) } if ( a ) for ( d = 0 ; d < b . getChildCount ( ) ; d ++ ) c ( b . getChild ( d ) ) } } var f = this . $ . cloneNode ( a ) ; b ( f ) ; f = new CKEDITOR . dom . node ( f ) ; CKEDITOR . env . ie && 9 > CKEDITOR . env . version && ( this . type == CKEDITOR . NODE _ELEMENT || this . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT ) && c ( f ) ; return f } , hasPrevious : function ( ) { return ! ! this . $ . previousSibling } , hasNext : function ( ) { return ! ! this . $ . nextSibling } , insertAfter : function ( a ) { a . $ . parentNode . insertBefore ( this . $ , a . $ . nextSibling ) ; return a } , insertBefore : function ( a ) { a . $ . parentNode . insertBefore ( this . $ ,
a . $ ) ; return a } , insertBeforeMe : function ( a ) { this . $ . parentNode . insertBefore ( a . $ , this . $ ) ; return a } , getAddress : function ( a ) { for ( var d = [ ] , b = this . getDocument ( ) . $ . documentElement , c = this . $ ; c && c != b ; ) { var f = c . parentNode ; f && d . unshift ( this . getIndex . call ( { $ : c } , a ) ) ; c = f } return d } , getDocument : function ( ) { return new CKEDITOR . dom . document ( this . $ . ownerDocument || this . $ . parentNode . ownerDocument ) } , getIndex : function ( a ) { function d ( a , c ) { var m = c ? a . nextSibling : a . previousSibling ; return m && m . nodeType == CKEDITOR . NODE _TEXT ? b ( m ) ? d ( m ,
c ) : m : null } function b ( a ) { return ! a . nodeValue || a . nodeValue == CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE } var c = this . $ , f = - 1 , h ; if ( ! this . $ . parentNode || a && c . nodeType == CKEDITOR . NODE _TEXT && b ( c ) && ! d ( c ) && ! d ( c , ! 0 ) ) return - 1 ; do a && c != this . $ && c . nodeType == CKEDITOR . NODE _TEXT && ( h || b ( c ) ) || ( f ++ , h = c . nodeType == CKEDITOR . NODE _TEXT ) ; while ( c = c . previousSibling ) ; return f } , getNextSourceNode : function ( a , d , b ) { if ( b && ! b . call ) { var c = b ; b = function ( a ) { return ! a . equals ( c ) } } a = ! a && this . getFirst && this . getFirst ( ) ; var f ; if ( ! a ) { if ( this . type ==
a . $ ) ; return a } , insertBeforeMe : function ( a ) { this . $ . parentNode . insertBefore ( a . $ , this . $ ) ; return a } , getAddress : function ( a ) { for ( var d = [ ] , b = this . getDocument ( ) . $ . documentElement , c = this . $ ; c && c != b ; ) { var f = c . parentNode ; f && d . unshift ( this . getIndex . call ( { $ : c } , a ) ) ; c = f } return d } , getDocument : function ( ) { return new CKEDITOR . dom . document ( this . $ . ownerDocument || this . $ . parentNode . ownerDocument ) } , getIndex : function ( a ) { function d ( a , c ) { var n = c ? a . nextSibling : a . previousSibling ; return n && n . nodeType == CKEDITOR . NODE _TEXT ? b ( n ) ? d ( n ,
c ) : n : null } function b ( a ) { return ! a . nodeValue || a . nodeValue == CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE } var c = this . $ , f = - 1 , h ; if ( ! this . $ . parentNode || a && c . nodeType == CKEDITOR . NODE _TEXT && b ( c ) && ! d ( c ) && ! d ( c , ! 0 ) ) return - 1 ; do a && c != this . $ && c . nodeType == CKEDITOR . NODE _TEXT && ( h || b ( c ) ) || ( f ++ , h = c . nodeType == CKEDITOR . NODE _TEXT ) ; while ( c = c . previousSibling ) ; return f } , getNextSourceNode : function ( a , d , b ) { if ( b && ! b . call ) { var c = b ; b = function ( a ) { return ! a . equals ( c ) } } a = ! a && this . getFirst && this . getFirst ( ) ; var f ; if ( ! a ) { if ( this . type ==
CKEDITOR . NODE _ELEMENT && b && ! 1 === b ( this , ! 0 ) ) return null ; a = this . getNext ( ) } for ( ; ! a && ( f = ( f || this ) . getParent ( ) ) ; ) { if ( b && ! 1 === b ( f , ! 0 ) ) return null ; a = f . getNext ( ) } return ! a || b && ! 1 === b ( a ) ? null : d && d != a . type ? a . getNextSourceNode ( ! 1 , d , b ) : a } , getPreviousSourceNode : function ( a , d , b ) { if ( b && ! b . call ) { var c = b ; b = function ( a ) { return ! a . equals ( c ) } } a = ! a && this . getLast && this . getLast ( ) ; var f ; if ( ! a ) { if ( this . type == CKEDITOR . NODE _ELEMENT && b && ! 1 === b ( this , ! 0 ) ) return null ; a = this . getPrevious ( ) } for ( ; ! a && ( f = ( f || this ) . getParent ( ) ) ; ) { if ( b && ! 1 ===
b ( f , ! 0 ) ) return null ; a = f . getPrevious ( ) } return ! a || b && ! 1 === b ( a ) ? null : d && a . type != d ? a . getPreviousSourceNode ( ! 1 , d , b ) : a } , getPrevious : function ( a ) { var d = this . $ , b ; do b = ( d = d . previousSibling ) && 10 != d . nodeType && new CKEDITOR . dom . node ( d ) ; while ( b && a && ! a ( b ) ) ; return b } , getNext : function ( a ) { var d = this . $ , b ; do b = ( d = d . nextSibling ) && new CKEDITOR . dom . node ( d ) ; while ( b && a && ! a ( b ) ) ; return b } , getParent : function ( a ) { var d = this . $ . parentNode ; return d && ( d . nodeType == CKEDITOR . NODE _ELEMENT || a && d . nodeType == CKEDITOR . NODE _DOCUMENT _FRAGMENT ) ?
new CKEDITOR . dom . node ( d ) : null } , getParents : function ( a ) { var d = this , b = [ ] ; do b [ a ? "push" : "unshift" ] ( d ) ; while ( d = d . getParent ( ) ) ; return b } , getCommonAncestor : function ( a ) { if ( a . equals ( this ) ) return this ; if ( a . contains && a . contains ( this ) ) return a ; var d = this . contains ? this : this . getParent ( ) ; do if ( d . contains ( a ) ) return d ; while ( d = d . getParent ( ) ) ; return null } , getPosition : function ( a ) { var d = this . $ , b = a . $ ; if ( d . compareDocumentPosition ) return d . compareDocumentPosition ( b ) ; if ( d == b ) return CKEDITOR . POSITION _IDENTICAL ; if ( this . type ==
@@ -98,9 +100,9 @@ null!==String(f.add).match(/\[Native code\]/gi),h=/[\n\t\r]/g;CKEDITOR.tools.ext
b + "(?\x3d\\s|$)" ) , "" ) . replace ( /^\s+/ , "" ) ) ? this . setAttribute ( "class" , c ) : this . removeAttribute ( "class" ) ) ; return this } , hasClass : function ( b ) { return a ( this . $ . className , b ) } , append : function ( a , b ) { "string" == typeof a && ( a = this . getDocument ( ) . createElement ( a ) ) ; b ? this . $ . insertBefore ( a . $ , this . $ . firstChild ) : this . $ . appendChild ( a . $ ) ; return a } , appendHtml : function ( a ) { if ( this . $ . childNodes . length ) { var b = new CKEDITOR . dom . element ( "div" , this . getDocument ( ) ) ; b . setHtml ( a ) ; b . moveChildren ( this ) } else this . setHtml ( a ) } , appendText : function ( a ) { null !=
this . $ . text && CKEDITOR . env . ie && 9 > CKEDITOR . env . version ? this . $ . text += a : this . append ( new CKEDITOR . dom . text ( a ) ) } , appendBogus : function ( a ) { if ( a || CKEDITOR . env . needsBrFiller ) { for ( a = this . getLast ( ) ; a && a . type == CKEDITOR . NODE _TEXT && ! CKEDITOR . tools . rtrim ( a . getText ( ) ) ; ) a = a . getPrevious ( ) ; a && a . is && a . is ( "br" ) || ( a = this . getDocument ( ) . createElement ( "br" ) , CKEDITOR . env . gecko && a . setAttribute ( "type" , "_moz" ) , this . append ( a ) ) } } , breakParent : function ( a , b ) { var c = new CKEDITOR . dom . range ( this . getDocument ( ) ) ; c . setStartAfter ( this ) ; c . setEndAfter ( a ) ;
var e = c . extractContents ( ! 1 , b || ! 1 ) , d ; c . insertNode ( this . remove ( ) ) ; if ( CKEDITOR . env . ie && ! CKEDITOR . env . edge ) { for ( c = new CKEDITOR . dom . element ( "div" ) ; d = e . getFirst ( ) ; ) d . $ . style . backgroundColor && ( d . $ . style . backgroundColor = d . $ . style . backgroundColor ) , c . append ( d ) ; c . insertAfter ( this ) ; c . remove ( ! 0 ) } else e . insertAfterNode ( this ) } , contains : document . compareDocumentPosition ? function ( a ) { return ! ! ( this . $ . compareDocumentPosition ( a . $ ) & 16 ) } : function ( a ) { var b = this . $ ; return a . type != CKEDITOR . NODE _ELEMENT ? b . contains ( a . getParent ( ) . $ ) :
b != a . $ && b . contains ( a . $ ) } , focus : function ( ) { function a ( ) { try { this . $ . focus ( ) } catch ( b ) { } } return function ( b ) { b ? CKEDITOR . tools . setTimeout ( a , 100 , this ) : a . call ( this ) } } ( ) , getHtml : function ( ) { var a = this . $ . innerHTML ; return CKEDITOR . env . ie ? a . replace ( /<\?[^>]*>/g , "" ) : a } , getOuterHtml : function ( ) { if ( this . $ . outerHTML ) return this . $ . outerHTML . replace ( /<\?[^>]*>/ , "" ) ; var a = this . $ . ownerDocument . createElement ( "div" ) ; a . appendChild ( this . $ . cloneNode ( ! 0 ) ) ; return a . innerHTML } , getClientRect : function ( ) { var a = CKEDITOR . tools . extend ( { } ,
this . $ . getBoundingClientRect ( ) ) ; ! a . width && ( a . width = a . right - a . left ) ; ! a . height && ( a . height = a . bottom - a . top ) ; return a } , setHtml : CKEDITOR . env . ie && 9 > CKEDITOR . env . version ? function ( a ) { try { var b = this . $ ; if ( this . getParent ( ) ) return b . innerHTML = a ; var c = this . getDocument ( ) . _getHtml5ShivFrag ( ) ; c . appendChild ( b ) ; b . innerHTML = a ; c . removeChild ( b ) ; return a } catch ( e ) { this . $ . innerHTML = "" ; b = new CKEDITOR . dom . element ( "body" , this . getDocument ( ) ) ; b . $ . innerHTML = a ; for ( b = b . getChildren ( ) ; b . count ( ) ; ) this . append ( b . getItem ( 0 ) ) ; return a } } :
function ( a ) { return this . $ . innerHTML = a } , setText : function ( ) { var a = document . createElement ( "p" ) ; a . innerHTML = "x" ; a = a . textContent ; return function ( b ) { this . $ [ a ? "textContent" : "innerText" ] = b } } ( ) , getAttribute : function ( ) { var a = function ( a ) { return this . $ . getAttribute ( a , 2 ) } ; return CKEDITOR . env . ie && ( CKEDITOR . env . ie7Compat || CKEDITOR . env . quirks ) ? function ( a ) { switch ( a ) { case "class" : a = "className" ; break ; case "http-equiv" : a = "httpEquiv" ; break ; case "name" : return this . $ . name ; case "tabindex" : return a = this . $ . getAttribute ( a ,
b != a . $ && b . contains ( a . $ ) } , focus : function ( ) { function a ( ) { try { this . $ . focus ( ) } catch ( b ) { } } return function ( b ) { b ? CKEDITOR . tools . setTimeout ( a , 100 , this ) : a . call ( this ) } } ( ) , getHtml : function ( ) { var a = this . $ . innerHTML ; return CKEDITOR . env . ie ? a . replace ( /<\?[^>]*>/g , "" ) : a } , getOuterHtml : function ( ) { if ( this . $ . outerHTML ) return this . $ . outerHTML . replace ( /<\?[^>]*>/ , "" ) ; var a = this . $ . ownerDocument . createElement ( "div" ) ; a . appendChild ( this . $ . cloneNode ( ! 0 ) ) ; return a . innerHTML } , getClientRect : function ( a ) { var b = CKEDITOR . tools . extend ( { } ,
this . $ . getBoundingClientRect ( ) ) ; ! b . width && ( b . width = b . right - b . left ) ; ! b . height && ( b . height = b . bottom - b . top ) ; return a ? CKEDITOR . tools . getAbsoluteRectPosition ( this . getWindow ( ) , b ) : b } , setHtml : CKEDITOR . env . ie && 9 > CKEDITOR . env . version ? function ( a ) { try { var b = this . $ ; if ( this . getParent ( ) ) return b . innerHTML = a ; var c = this . getDocument ( ) . _getHtml5ShivFrag ( ) ; c . appendChild ( b ) ; b . innerHTML = a ; c . removeChild ( b ) ; return a } catch ( e ) { this . $ . innerHTML = "" ; b = new CKEDITOR . dom . element ( "body" , this . getDocument ( ) ) ; b . $ . innerHTML = a ; for ( b = b . getChildren ( ) ; b . count ( ) ; ) this . append ( b . getItem ( 0 ) ) ;
return a } } : function ( a ) { return this . $ . innerHTML = a } , setText : function ( ) { var a = document . createElement ( "p" ) ; a . innerHTML = "x" ; a = a . textContent ; return function ( b ) { this . $ [ a ? "textContent" : "innerText" ] = b } } ( ) , getAttribute : function ( ) { var a = function ( a ) { return this . $ . getAttribute ( a , 2 ) } ; return CKEDITOR . env . ie && ( CKEDITOR . env . ie7Compat || CKEDITOR . env . quirks ) ? function ( a ) { switch ( a ) { case "class" : a = "className" ; break ; case "http-equiv" : a = "httpEquiv" ; break ; case "name" : return this . $ . name ; case "tabindex" : return a = this . $ . getAttribute ( a ,
2 ) , 0 !== a && 0 === this . $ . tabIndex && ( a = null ) , a ; case "checked" : return a = this . $ . attributes . getNamedItem ( a ) , ( a . specified ? a . nodeValue : this . $ . checked ) ? "checked" : null ; case "hspace" : case "value" : return this . $ [ a ] ; case "style" : return this . $ . style . cssText ; case "contenteditable" : case "contentEditable" : return this . $ . attributes . getNamedItem ( "contentEditable" ) . specified ? this . $ . getAttribute ( "contentEditable" ) : null } return this . $ . getAttribute ( a , 2 ) } : a } ( ) , getAttributes : function ( a ) { var b = { } , c = this . $ . attributes , e ; a = CKEDITOR . tools . isArray ( a ) ?
a : [ ] ; for ( e = 0 ; e < c . length ; e ++ ) - 1 === CKEDITOR . tools . indexOf ( a , c [ e ] . name ) && ( b [ c [ e ] . name ] = c [ e ] . value ) ; return b } , getChildren : function ( ) { return new CKEDITOR . dom . nodeList ( this . $ . childNodes ) } , getComputedStyle : document . defaultView && document . defaultView . getComputedStyle ? function ( a ) { var b = this . getWindow ( ) . $ . getComputedStyle ( this . $ , null ) ; return b ? b . getPropertyValue ( a ) : "" } : function ( a ) { return this . $ . currentStyle [ CKEDITOR . tools . cssStyleToDomStyle ( a ) ] } , getDtd : function ( ) { var a = CKEDITOR . dtd [ this . getName ( ) ] ; this . getDtd =
function ( ) { return a } ; return a } , getElementsByTag : CKEDITOR . dom . document . prototype . getElementsByTag , getTabIndex : function ( ) { var a = this . $ . tabIndex ; return 0 !== a || CKEDITOR . dtd . $tabIndex [ this . getName ( ) ] || 0 === parseInt ( this . getAttribute ( "tabindex" ) , 10 ) ? a : - 1 } , getText : function ( ) { return this . $ . textContent || this . $ . innerText || "" } , getWindow : function ( ) { return this . getDocument ( ) . getWindow ( ) } , getId : function ( ) { return this . $ . id || null } , getNameAtt : function ( ) { return this . $ . name || null } , getName : function ( ) { var a = this . $ . nodeName . toLowerCase ( ) ;
@@ -114,16 +116,16 @@ c.specified:!1}return CKEDITOR.env.ie?8>CKEDITOR.env.version?function(b){return"
[ ] ; c . data ( "cke-bookmark" ) || c . isEmptyInlineRemoveable ( ) ; ) if ( d . push ( c ) , c = e ? c . getNext ( ) : c . getPrevious ( ) , ! c || c . type != CKEDITOR . NODE _ELEMENT ) return ; if ( b . isIdentical ( c ) ) { for ( var g = e ? b . getLast ( ) : b . getFirst ( ) ; d . length ; ) d . shift ( ) . move ( b , ! e ) ; c . moveChildren ( b , ! e ) ; c . remove ( ) ; g && g . type == CKEDITOR . NODE _ELEMENT && g . mergeSiblings ( ) } } } return function ( b ) { if ( ! 1 === b || CKEDITOR . dtd . $removeEmpty [ this . getName ( ) ] || this . is ( "a" ) ) a ( this , this . getNext ( ) , ! 0 ) , a ( this , this . getPrevious ( ) ) } } ( ) , show : function ( ) { this . setStyles ( { display : "" ,
visibility : "" } ) } , setAttribute : function ( ) { var a = function ( a , b ) { this . $ . setAttribute ( a , b ) ; return this } ; return CKEDITOR . env . ie && ( CKEDITOR . env . ie7Compat || CKEDITOR . env . quirks ) ? function ( b , c ) { "class" == b ? this . $ . className = c : "style" == b ? this . $ . style . cssText = c : "tabindex" == b ? this . $ . tabIndex = c : "checked" == b ? this . $ . checked = c : "contenteditable" == b ? a . call ( this , "contentEditable" , c ) : a . apply ( this , arguments ) ; return this } : CKEDITOR . env . ie8Compat && CKEDITOR . env . secure ? function ( b , c ) { if ( "src" == b && c . match ( /^http:\/\// ) ) try { a . apply ( this ,
arguments ) } catch ( e ) { } else a . apply ( this , arguments ) ; return this } : a } ( ) , setAttributes : function ( a ) { for ( var b in a ) this . setAttribute ( b , a [ b ] ) ; return this } , setValue : function ( a ) { this . $ . value = a ; return this } , removeAttribute : function ( ) { var a = function ( a ) { this . $ . removeAttribute ( a ) } ; return CKEDITOR . env . ie && ( CKEDITOR . env . ie7Compat || CKEDITOR . env . quirks ) ? function ( a ) { "class" == a ? a = "className" : "tabindex" == a ? a = "tabIndex" : "contenteditable" == a && ( a = "contentEditable" ) ; this . $ . removeAttribute ( a ) } : a } ( ) , removeAttributes : function ( a ) { if ( CKEDITOR . tools . isArray ( a ) ) for ( var b =
0 ; b < a . length ; b ++ ) this . removeAttribute ( a [ b ] ) ; else for ( b in a = a || this . getAttributes ( ) , a ) a . hasOwnProperty ( b ) && this . removeAttribute ( b ) } , removeStyle : function ( a ) { var b = this . $ . style ; if ( b . removeProperty || "border" != a && "margin" != a && "padding" != a ) b . removeProperty ? b . removeProperty ( a ) : b . removeAttribute ( CKEDITOR . tools . cssStyleToDomStyle ( a ) ) , this . $ . style . cssText || this . removeAttribute ( "style" ) ; else { var c = [ "top" , "left" , "right" , "bottom" ] , e ; "border" == a && ( e = [ "color" , "style" , "width" ] ) ; for ( var b = [ ] , d = 0 ; d < c . length ; d ++ ) if ( e ) for ( var y =
0 ; y < e . length ; y ++ ) b . push ( [ a , c [ d ] , e [ y ] ] . join ( "-" ) ) ; else b . push ( [ a , c [ d ] ] . join ( "-" ) ) ; for ( a = 0 ; a < b . length ; a ++ ) this . removeStyle ( b [ a ] ) } } , setStyle : function ( a , b ) { this . $ . style [ CKEDITOR . tools . cssStyleToDomStyle ( a ) ] = b ; return this } , setStyles : function ( a ) { for ( var b in a ) this . setStyle ( b , a [ b ] ) ; return this } , setOpacity : function ( a ) { CKEDITOR . env . ie && 9 > CKEDITOR . env . version ? ( a = Math . round ( 100 * a ) , this . setStyle ( "filter" , 100 <= a ? "" : "progid:DXImageTransform.Microsoft.Alpha(opacity\x3d" + a + ")" ) ) : this . setStyle ( "opacity" , a ) } , unselectable : function ( ) { this . setStyles ( CKEDITOR . tools . cssVendorPrefix ( "user-select" ,
"none" ) ) ; if ( CKEDITOR . env . ie ) { this . setAttribute ( "unselectable" , "on" ) ; for ( var a , b = this . getElementsByTag ( "*" ) , c = 0 , e = b . count ( ) ; c < e ; c ++ ) a = b . getItem ( c ) , a . setAttribute ( "unselectable" , "on" ) } } , getPositionedAncestor : function ( ) { for ( var a = this ; "html" != a . getName ( ) ; ) { if ( "static" != a . getComputedStyle ( "position" ) ) return a ; a = a . getParent ( ) } return null } , getDocumentPosition : function ( a ) { var b = 0 , c = 0 , e = this . getDocument ( ) , d = e . getBody ( ) , y = "BackCompat" == e . $ . compatMode ; if ( document . documentElement . getBoundingClientRect && ( CKEDITOR . env . ie ?
8 !== CKEDITOR . env . version : 1 ) ) { var f = this . $ . getBoundingClientRect ( ) , h = e . $ . documentElement , x = h . clientTop || d . $ . clientTop || 0 , p = h . clientLeft || d . $ . clientLeft || 0 , k = ! 0 ; CKEDITOR . env . ie && ( k = e . getDocumentElement ( ) . contains ( this ) , e = e . getBody ( ) . contains ( this ) , k = y && e || ! y && k ) ; k && ( CKEDITOR . env . webkit || CKEDITOR . env . ie && 12 <= CKEDITOR . env . version ? ( b = d . $ . scrollLeft || h . scrollLeft , c = d . $ . scrollTop || h . scrollTop ) : ( c = y ? d . $ : h , b = c . scrollLeft , c = c . scrollTop ) , b = f . left + b - p , c = f . top + c - x ) } else for ( x = this , p = null ; x && "body" != x . getName ( ) &&
"html" != x . getName ( ) ; ) { b += x . $ . offsetLeft - x . $ . scrollLeft ; c += x . $ . offsetTop - x . $ . scrollTop ; x . equals ( this ) || ( b += x . $ . clientLeft || 0 , c += x . $ . clientTop || 0 ) ; for ( ; p && ! p . equals ( x ) ; ) b -= p . $ . scrollLeft , c -= p . $ . scrollTop , p = p . getParent ( ) ; p = x ; x = ( f = x . $ . offsetParent ) ? new CKEDITOR . dom . element ( f ) : null } a && ( f = this . getWindow ( ) , x = a . getWindow ( ) , ! f . equals ( x ) && f . $ . frameElement && ( a = ( new CKEDITOR . dom . element ( f . $ . frameElement ) ) . getDocumentPosition ( a ) , b += a . x , c += a . y ) ) ; document . documentElement . getBoundingClientRect || ! CKEDITOR . env . gecko ||
y || ( b += this . $ . clientLeft ? 1 : 0 , c += this . $ . clientTop ? 1 : 0 ) ; return { x : b , y : c } } , scrollIntoView : function ( a ) { var b = this . getParent ( ) ; if ( b ) { do if ( ( b . $ . clientWidth && b . $ . clientWidth < b . $ . scrollWidth || b . $ . clientHeight && b . $ . clientHeight < b . $ . scrollHeight ) && ! b . is ( "body" ) && this . scrollIntoParent ( b , a , 1 ) , b . is ( "html" ) ) { var c = b . getWindow ( ) ; try { var e = c . $ . frameElement ; e && ( b = new CKEDITOR . dom . element ( e ) ) } catch ( d ) { } } while ( b = b . getParent ( ) ) } } , scrollIntoParent : function ( a , b , c ) { var e , d , y , f ; function h ( b , c ) { /body|html/ . test ( a . getName ( ) ) ?
a . getWindow ( ) . $ . scrollBy ( b , c ) : ( a . $ . scrollLeft += b , a . $ . scrollTop += c ) } function x ( a , b ) { var c = { x : 0 , y : 0 } ; if ( ! a . is ( k ? "body" : "html" ) ) { var e = a . $ . getBoundingClientRect ( ) ; c . x = e . left ; c . y = e . top } e = a . getWindow ( ) ; e . equals ( b ) || ( e = x ( CKEDITOR . dom . element . get ( e . $ . frameElement ) , b ) , c . x += e . x , c . y += e . y ) ; return c } function p ( a , b ) { return parseInt ( a . getComputedStyle ( "margin-" + b ) || 0 , 10 ) || 0 } ! a && ( a = this . getWindow ( ) ) ; y = a . getDocument ( ) ; var k = "BackCompat" == y . $ . compatMode ; a instanceof CKEDITOR . dom . window && ( a = k ? y . getBody ( ) : y . getDocumentElement ( ) ) ;
CKEDITOR . env . webkit && ( y = this . getEditor ( ! 1 ) ) && ( y . _ . previousScrollTop = null ) ; y = a . getWindow ( ) ; d = x ( this , y ) ; var u = x ( a , y ) , K = this . $ . offsetHeight ; e = this . $ . offsetWidth ; var l = a . $ . clientHeight , q = a . $ . clientWidth ; y = d . x - p ( this , "left" ) - u . x || 0 ; f = d . y - p ( this , "top" ) - u . y || 0 ; e = d . x + e + p ( this , "right" ) - ( u . x + q ) || 0 ; d = d . y + K + p ( this , "bottom" ) - ( u . y + l ) || 0 ; ( 0 > f || 0 < d ) && h ( 0 , ! 0 === b ? f : ! 1 === b ? d : 0 > f ? f : d ) ; c && ( 0 > y || 0 < e ) && h ( 0 > y ? y : e , 0 ) } , setState : function ( a , b , c ) { b = b || "cke" ; switch ( a ) { case CKEDITOR . TRISTATE _ON : this . addClass ( b + "_on" ) ; this . removeClass ( b +
0 ; b < a . length ; b ++ ) this . removeAttribute ( a [ b ] ) ; else for ( b in a = a || this . getAttributes ( ) , a ) a . hasOwnProperty ( b ) && this . removeAttribute ( b ) } , removeStyle : function ( a ) { var b = this . $ . style ; if ( b . removeProperty || "border" != a && "margin" != a && "padding" != a ) b . removeProperty ? b . removeProperty ( a ) : b . removeAttribute ( CKEDITOR . tools . cssStyleToDomStyle ( a ) ) , this . $ . style . cssText || this . removeAttribute ( "style" ) ; else { var c = [ "top" , "left" , "right" , "bottom" ] , e ; "border" == a && ( e = [ "color" , "style" , "width" ] ) ; for ( var b = [ ] , d = 0 ; d < c . length ; d ++ ) if ( e ) for ( var v =
0 ; v < e . length ; v ++ ) b . push ( [ a , c [ d ] , e [ v ] ] . join ( "-" ) ) ; else b . push ( [ a , c [ d ] ] . join ( "-" ) ) ; for ( a = 0 ; a < b . length ; a ++ ) this . removeStyle ( b [ a ] ) } } , setStyle : function ( a , b ) { this . $ . style [ CKEDITOR . tools . cssStyleToDomStyle ( a ) ] = b ; return this } , setStyles : function ( a ) { for ( var b in a ) this . setStyle ( b , a [ b ] ) ; return this } , setOpacity : function ( a ) { CKEDITOR . env . ie && 9 > CKEDITOR . env . version ? ( a = Math . round ( 100 * a ) , this . setStyle ( "filter" , 100 <= a ? "" : "progid:DXImageTransform.Microsoft.Alpha(opacity\x3d" + a + ")" ) ) : this . setStyle ( "opacity" , a ) } , unselectable : function ( ) { this . setStyles ( CKEDITOR . tools . cssVendorPrefix ( "user-select" ,
"none" ) ) ; if ( CKEDITOR . env . ie ) { this . setAttribute ( "unselectable" , "on" ) ; for ( var a , b = this . getElementsByTag ( "*" ) , c = 0 , e = b . count ( ) ; c < e ; c ++ ) a = b . getItem ( c ) , a . setAttribute ( "unselectable" , "on" ) } } , getPositionedAncestor : function ( ) { for ( var a = this ; "html" != a . getName ( ) ; ) { if ( "static" != a . getComputedStyle ( "position" ) ) return a ; a = a . getParent ( ) } return null } , getDocumentPosition : function ( a ) { var b = 0 , c = 0 , e = this . getDocument ( ) , d = e . getBody ( ) , v = "BackCompat" == e . $ . compatMode ; if ( document . documentElement . getBoundingClientRect && ( CKEDITOR . env . ie ?
8 !== CKEDITOR . env . version : 1 ) ) { var f = this . $ . getBoundingClientRect ( ) , h = e . $ . documentElement , x = h . clientTop || d . $ . clientTop || 0 , m = h . clientLeft || d . $ . clientLeft || 0 , k = ! 0 ; CKEDITOR . env . ie && ( k = e . getDocumentElement ( ) . contains ( this ) , e = e . getBody ( ) . contains ( this ) , k = v && e || ! v && k ) ; k && ( CKEDITOR . env . webkit || CKEDITOR . env . ie && 12 <= CKEDITOR . env . version ? ( b = d . $ . scrollLeft || h . scrollLeft , c = d . $ . scrollTop || h . scrollTop ) : ( c = v ? d . $ : h , b = c . scrollLeft , c = c . scrollTop ) , b = f . left + b - m , c = f . top + c - x ) } else for ( x = this , m = null ; x && "body" != x . getName ( ) &&
"html" != x . getName ( ) ; ) { b += x . $ . offsetLeft - x . $ . scrollLeft ; c += x . $ . offsetTop - x . $ . scrollTop ; x . equals ( this ) || ( b += x . $ . clientLeft || 0 , c += x . $ . clientTop || 0 ) ; for ( ; m && ! m . equals ( x ) ; ) b -= m . $ . scrollLeft , c -= m . $ . scrollTop , m = m . getParent ( ) ; m = x ; x = ( f = x . $ . offsetParent ) ? new CKEDITOR . dom . element ( f ) : null } a && ( f = this . getWindow ( ) , x = a . getWindow ( ) , ! f . equals ( x ) && f . $ . frameElement && ( a = ( new CKEDITOR . dom . element ( f . $ . frameElement ) ) . getDocumentPosition ( a ) , b += a . x , c += a . y ) ) ; document . documentElement . getBoundingClientRect || ! CKEDITOR . env . gecko ||
v || ( b += this . $ . clientLeft ? 1 : 0 , c += this . $ . clientTop ? 1 : 0 ) ; return { x : b , y : c } } , scrollIntoView : function ( a ) { var b = this . getParent ( ) ; if ( b ) { do if ( ( b . $ . clientWidth && b . $ . clientWidth < b . $ . scrollWidth || b . $ . clientHeight && b . $ . clientHeight < b . $ . scrollHeight ) && ! b . is ( "body" ) && this . scrollIntoParent ( b , a , 1 ) , b . is ( "html" ) ) { var c = b . getWindow ( ) ; try { var e = c . $ . frameElement ; e && ( b = new CKEDITOR . dom . element ( e ) ) } catch ( d ) { } } while ( b = b . getParent ( ) ) } } , scrollIntoParent : function ( a , b , c ) { var e , d , v , f ; function h ( b , c ) { /body|html/ . test ( a . getName ( ) ) ?
a . getWindow ( ) . $ . scrollBy ( b , c ) : ( a . $ . scrollLeft += b , a . $ . scrollTop += c ) } function x ( a , b ) { var c = { x : 0 , y : 0 } ; if ( ! a . is ( k ? "body" : "html" ) ) { var e = a . $ . getBoundingClientRect ( ) ; c . x = e . left ; c . y = e . top } e = a . getWindow ( ) ; e . equals ( b ) || ( e = x ( CKEDITOR . dom . element . get ( e . $ . frameElement ) , b ) , c . x += e . x , c . y += e . y ) ; return c } function m ( a , b ) { return parseInt ( a . getComputedStyle ( "margin-" + b ) || 0 , 10 ) || 0 } ! a && ( a = this . getWindow ( ) ) ; v = a . getDocument ( ) ; var k = "BackCompat" == v . $ . compatMode ; a instanceof CKEDITOR . dom . window && ( a = k ? v . getBody ( ) : v . getDocumentElement ( ) ) ;
CKEDITOR . env . webkit && ( v = this . getEditor ( ! 1 ) ) && ( v . _ . previousScrollTop = null ) ; v = a . getWindow ( ) ; d = x ( this , v ) ; var u = x ( a , v ) , K = this . $ . offsetHeight ; e = this . $ . offsetWidth ; var l = a . $ . clientHeight , t = a . $ . clientWidth ; v = d . x - m ( this , "left" ) - u . x || 0 ; f = d . y - m ( this , "top" ) - u . y || 0 ; e = d . x + e + m ( this , "right" ) - ( u . x + t ) || 0 ; d = d . y + K + m ( this , "bottom" ) - ( u . y + l ) || 0 ; ( 0 > f || 0 < d ) && h ( 0 , ! 0 === b ? f : ! 1 === b ? d : 0 > f ? f : d ) ; c && ( 0 > v || 0 < e ) && h ( 0 > v ? v : e , 0 ) } , setState : function ( a , b , c ) { b = b || "cke" ; switch ( a ) { case CKEDITOR . TRISTATE _ON : this . addClass ( b + "_on" ) ; this . removeClass ( b +
"_off" ) ; this . removeClass ( b + "_disabled" ) ; c && this . setAttribute ( "aria-pressed" , ! 0 ) ; c && this . removeAttribute ( "aria-disabled" ) ; break ; case CKEDITOR . TRISTATE _DISABLED : this . addClass ( b + "_disabled" ) ; this . removeClass ( b + "_off" ) ; this . removeClass ( b + "_on" ) ; c && this . setAttribute ( "aria-disabled" , ! 0 ) ; c && this . removeAttribute ( "aria-pressed" ) ; break ; default : this . addClass ( b + "_off" ) , this . removeClass ( b + "_on" ) , this . removeClass ( b + "_disabled" ) , c && this . removeAttribute ( "aria-pressed" ) , c && this . removeAttribute ( "aria-disabled" ) } } ,
getFrameDocument : function ( ) { var a = this . $ ; try { a . contentWindow . document } catch ( b ) { a . src = a . src } return a && new CKEDITOR . dom . document ( a . contentWindow . document ) } , copyAttributes : function ( a , b ) { var c = this . $ . attributes ; b = b || { } ; for ( var e = 0 ; e < c . length ; e ++ ) { var d = c [ e ] , y = d . nodeName . toLowerCase ( ) , f ; if ( ! ( y in b ) ) if ( "checked" == y && ( f = this . getAttribute ( y ) ) ) a . setAttribute ( y , f ) ; else if ( ! CKEDITOR . env . ie || this . hasAttribute ( y ) ) f = this . getAttribute ( y ) , null === f && ( f = d . nodeValue ) , a . setAttribute ( y , f ) } "" !== this . $ . style . cssText &&
getFrameDocument : function ( ) { var a = this . $ ; try { a . contentWindow . document } catch ( b ) { a . src = a . src } return a && new CKEDITOR . dom . document ( a . contentWindow . document ) } , copyAttributes : function ( a , b ) { var c = this . $ . attributes ; b = b || { } ; for ( var e = 0 ; e < c . length ; e ++ ) { var d = c [ e ] , v = d . nodeName . toLowerCase ( ) , f ; if ( ! ( v in b ) ) if ( "checked" == v && ( f = this . getAttribute ( v ) ) ) a . setAttribute ( v , f ) ; else if ( ! CKEDITOR . env . ie || this . hasAttribute ( v ) ) f = this . getAttribute ( v ) , null === f && ( f = d . nodeValue ) , a . setAttribute ( v , f ) } "" !== this . $ . style . cssText &&
( a . $ . style . cssText = this . $ . style . cssText ) } , renameNode : function ( a ) { if ( this . getName ( ) != a ) { var b = this . getDocument ( ) ; a = new CKEDITOR . dom . element ( a , b ) ; this . copyAttributes ( a ) ; this . moveChildren ( a ) ; this . getParent ( ! 0 ) && this . $ . parentNode . replaceChild ( a . $ , this . $ ) ; a . $ [ "data-cke-expando" ] = this . $ [ "data-cke-expando" ] ; this . $ = a . $ ; delete this . getName } } , getChild : function ( ) { function a ( b , c ) { var e = b . childNodes ; if ( 0 <= c && c < e . length ) return e [ c ] } return function ( b ) { var c = this . $ ; if ( b . slice ) for ( b = b . slice ( ) ; 0 < b . length && c ; ) c = a ( c ,
b . shift ( ) ) ; else c = a ( c , b ) ; return c ? new CKEDITOR . dom . node ( c ) : null } } ( ) , getChildCount : function ( ) { return this . $ . childNodes . length } , disableContextMenu : function ( ) { function a ( b ) { return b . type == CKEDITOR . NODE _ELEMENT && b . hasClass ( "cke_enable_context_menu" ) } this . on ( "contextmenu" , function ( b ) { b . data . getTarget ( ) . getAscendant ( a , ! 0 ) || b . data . preventDefault ( ) } ) } , getDirection : function ( a ) { return a ? this . getComputedStyle ( "direction" ) || this . getDirection ( ) || this . getParent ( ) && this . getParent ( ) . getDirection ( 1 ) || this . getDocument ( ) . $ . dir ||
"ltr" : this . getStyle ( "direction" ) || this . getAttribute ( "dir" ) } , data : function ( a , b ) { a = "data-" + a ; if ( void 0 === b ) return this . getAttribute ( a ) ; ! 1 === b ? this . removeAttribute ( a ) : this . setAttribute ( a , b ) ; return null } , getEditor : function ( a ) { var b = CKEDITOR . instances , c , e , d ; a = a || void 0 === a ; for ( c in b ) if ( e = b [ c ] , e . element . equals ( this ) && e . elementMode != CKEDITOR . ELEMENT _MODE _APPENDTO || ! a && ( d = e . editable ( ) ) && ( d . equals ( this ) || d . contains ( this ) ) ) return e ; return null } , find : function ( a ) { var c = d ( this ) ; a = new CKEDITOR . dom . nodeList ( this . $ . querySelectorAll ( b ( this ,
@@ -131,114 +133,120 @@ a)));c();return a},findOne:function(a){var c=d(this);a=this.$.querySelector(b(th
CKEDITOR . dom . element . prototype . setSize = function ( a , b , d ) { "number" == typeof b && ( ! d || CKEDITOR . env . ie && CKEDITOR . env . quirks || ( b -= c . call ( this , a ) ) , this . setStyle ( a , b + "px" ) ) } ; CKEDITOR . dom . element . prototype . getSize = function ( a , b ) { var d = Math . max ( this . $ [ "offset" + CKEDITOR . tools . capitalize ( a ) ] , this . $ [ "client" + CKEDITOR . tools . capitalize ( a ) ] ) || 0 ; b && ( d -= c . call ( this , a ) ) ; return d } } ) ( ) ; CKEDITOR . dom . documentFragment = function ( a ) { a = a || CKEDITOR . document ; this . $ = a . type == CKEDITOR . NODE _DOCUMENT ? a . $ . createDocumentFragment ( ) : a } ;
CKEDITOR . tools . extend ( CKEDITOR . dom . documentFragment . prototype , CKEDITOR . dom . element . prototype , { type : CKEDITOR . NODE _DOCUMENT _FRAGMENT , insertAfterNode : function ( a ) { a = a . $ ; a . parentNode . insertBefore ( this . $ , a . nextSibling ) } , getHtml : function ( ) { var a = new CKEDITOR . dom . element ( "div" ) ; this . clone ( 1 , 1 ) . appendTo ( a ) ; return a . getHtml ( ) . replace ( /\s*data-cke-expando=".*?"/g , "" ) } } , ! 0 , { append : 1 , appendBogus : 1 , clone : 1 , getFirst : 1 , getHtml : 1 , getLast : 1 , getParent : 1 , getNext : 1 , getPrevious : 1 , appendTo : 1 , moveChildren : 1 , insertBefore : 1 ,
insertAfterNode : 1 , replace : 1 , trim : 1 , type : 1 , ltrim : 1 , rtrim : 1 , getDocument : 1 , getChildCount : 1 , getChild : 1 , getChildren : 1 } ) ;
( function ( ) { function a ( a , b ) { var c = this . range ; if ( this . _ . end ) return null ; if ( ! this . _ . start ) { this . _ . start = 1 ; if ( c . collapsed ) return this . end ( ) , null ; c . optimize ( ) } var e , d = c . startContainer ; e = c . endContainer ; var f = c . startOffset , z = c . endOffset , h , l = this . guard , q = this . type , F = a ? "getPreviousSourceNode" : "getNextSourceNode" ; if ( ! a && ! this . _ . guardLTR ) { var g = e . type == CKEDITOR . NODE _ELEMENT ? e : e . getParent ( ) , k = e . type == CKEDITOR . NODE _ELEMENT ? e . getChild ( z ) : e . getNext ( ) ; this . _ . guardLTR = function ( a , b ) { return ( ! b || ! g . equals ( a ) ) && ( ! k ||
! a . equals ( k ) ) && ( a . type != CKEDITOR . NODE _ELEMENT || ! b || ! a . equals ( c . root ) ) } } if ( a && ! this . _ . guardRTL ) { var M = d . type == CKEDITOR . NODE _ELEMENT ? d : d . getParent ( ) , t = d . type == CKEDITOR . NODE _ELEMENT ? f ? d . getChild ( f - 1 ) : null : d . getPrevious ( ) ; this . _ . guardRTL = function ( a , b ) { return ( ! b || ! M . equals ( a ) ) && ( ! t || ! a . equals ( t ) ) && ( a . type != CKEDITOR . NODE _ELEMENT || ! b || ! a . equals ( c . root ) ) } } var E = a ? this . _ . guardRTL : this . _ . guardLTR ; h = l ? function ( a , b ) { return ! 1 === E ( a , b ) ? ! 1 : l ( a , b ) } : E ; this . current ? e = this . current [ F ] ( ! 1 , q , h ) : ( a ? e . type == CKEDITOR . NODE _ELEMENT &&
( e = 0 < z ? e . getChild ( z - 1 ) : ! 1 === h ( e , ! 0 ) ? null : e . getPreviousSourceNode ( ! 0 , q , h ) ) : ( e = d , e . type == CKEDITOR . NODE _ELEMENT && ( ( e = e . getChild ( f ) ) || ( e = ! 1 === h ( d , ! 0 ) ? null : d . getNextSourceNode ( ! 0 , q , h ) ) ) ) , e && ! 1 === h ( e ) && ( e = null ) ) ; for ( ; e && ! this . _ . end ; ) { this . current = e ; if ( ! this . evaluator || ! 1 !== this . evaluator ( e ) ) { if ( ! b ) return e } else if ( b && this . evaluator ) return ! 1 ; e = e [ F ] ( ! 1 , q , h ) } this . end ( ) ; return this . current = null } function d ( b ) { for ( var c , e = null ; c = a . call ( this , b ) ; ) e = c ; return e } CKEDITOR . dom . walker = CKEDITOR . tools . createClass ( { $ : function ( a ) { this . range =
( function ( ) { function a ( a , b ) { var c = this . range ; if ( this . _ . end ) return null ; if ( ! this . _ . start ) { this . _ . start = 1 ; if ( c . collapsed ) return this . end ( ) , null ; c . optimize ( ) } var e , d = c . startContainer ; e = c . endContainer ; var f = c . startOffset , y = c . endOffset , h , l = this . guard , t = this . type , g = a ? "getPreviousSourceNode" : "getNextSourceNode" ; if ( ! a && ! this . _ . guardLTR ) { var L = e . type == CKEDITOR . NODE _ELEMENT ? e : e . getParent ( ) , C = e . type == CKEDITOR . NODE _ELEMENT ? e . getChild ( y ) : e . getNext ( ) ; this . _ . guardLTR = function ( a , b ) { return ( ! b || ! L . equals ( a ) ) && ( ! C ||
! a . equals ( C ) ) && ( a . type != CKEDITOR . NODE _ELEMENT || ! b || ! a . equals ( c . root ) ) } } if ( a && ! this . _ . guardRTL ) { var k = d . type == CKEDITOR . NODE _ELEMENT ? d : d . getParent ( ) , q = d . type == CKEDITOR . NODE _ELEMENT ? f ? d . getChild ( f - 1 ) : null : d . getPrevious ( ) ; this . _ . guardRTL = function ( a , b ) { return ( ! b || ! k . equals ( a ) ) && ( ! q || ! a . equals ( q ) ) && ( a . type != CKEDITOR . NODE _ELEMENT || ! b || ! a . equals ( c . root ) ) } } var E = a ? this . _ . guardRTL : this . _ . guardLTR ; h = l ? function ( a , b ) { return ! 1 === E ( a , b ) ? ! 1 : l ( a , b ) } : E ; this . current ? e = this . current [ g ] ( ! 1 , t , h ) : ( a ? e . type == CKEDITOR . NODE _ELEMENT &&
( e = 0 < y ? e . getChild ( y - 1 ) : ! 1 === h ( e , ! 0 ) ? null : e . getPreviousSourceNode ( ! 0 , t , h ) ) : ( e = d , e . type == CKEDITOR . NODE _ELEMENT && ( ( e = e . getChild ( f ) ) || ( e = ! 1 === h ( d , ! 0 ) ? null : d . getNextSourceNode ( ! 0 , t , h ) ) ) ) , e && ! 1 === h ( e ) && ( e = null ) ) ; for ( ; e && ! this . _ . end ; ) { this . current = e ; if ( ! this . evaluator || ! 1 !== this . evaluator ( e ) ) { if ( ! b ) return e } else if ( b && this . evaluator ) return ! 1 ; e = e [ g ] ( ! 1 , t , h ) } this . end ( ) ; return this . current = null } function d ( b ) { for ( var c , e = null ; c = a . call ( this , b ) ; ) e = c ; return e } CKEDITOR . dom . walker = CKEDITOR . tools . createClass ( { $ : function ( a ) { this . range =
a ; this . _ = { } } , proto : { end : function ( ) { this . _ . end = 1 } , next : function ( ) { return a . call ( this ) } , previous : function ( ) { return a . call ( this , 1 ) } , checkForward : function ( ) { return ! 1 !== a . call ( this , 0 , 1 ) } , checkBackward : function ( ) { return ! 1 !== a . call ( this , 1 , 1 ) } , lastForward : function ( ) { return d . call ( this ) } , lastBackward : function ( ) { return d . call ( this , 1 ) } , reset : function ( ) { delete this . current ; this . _ = { } } } } ) ; var b = { block : 1 , "list-item" : 1 , table : 1 , "table-row-group" : 1 , "table-header-group" : 1 , "table-footer-group" : 1 , "table-row" : 1 , "table-column-group" : 1 ,
"table-column" : 1 , "table-cell" : 1 , "table-caption" : 1 } , c = { absolute : 1 , fixed : 1 } ; CKEDITOR . dom . element . prototype . isBlockBoundary = function ( a ) { return "none" != this . getComputedStyle ( "float" ) || this . getComputedStyle ( "position" ) in c || ! b [ this . getComputedStyle ( "display" ) ] ? ! ! ( this . is ( CKEDITOR . dtd . $block ) || a && this . is ( a ) ) : ! 0 } ; CKEDITOR . dom . walker . blockBoundary = function ( a ) { return function ( b ) { return ! ( b . type == CKEDITOR . NODE _ELEMENT && b . isBlockBoundary ( a ) ) } } ; CKEDITOR . dom . walker . listItemBoundary = function ( ) { return this . blockBoundary ( { br : 1 } ) } ;
CKEDITOR . dom . walker . bookmark = function ( a , b ) { function c ( a ) { return a && a . getName && "span" == a . getName ( ) && a . data ( "cke-bookmark" ) } return function ( e ) { var d , f ; d = e && e . type != CKEDITOR . NODE _ELEMENT && ( f = e . getParent ( ) ) && c ( f ) ; d = a ? d : d || c ( e ) ; return ! ! ( b ^ d ) } } ; CKEDITOR . dom . walker . whitespaces = function ( a ) { return function ( b ) { var c ; b && b . type == CKEDITOR . NODE _TEXT && ( c = ! CKEDITOR . tools . trim ( b . getText ( ) ) || CKEDITOR . env . webkit && b . getText ( ) == CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE ) ; return ! ! ( a ^ c ) } } ; CKEDITOR . dom . walker . invisible =
function ( a ) { var b = CKEDITOR . dom . walker . whitespaces ( ) , c = CKEDITOR . env . webkit ? 1 : 0 ; return function ( e ) { b ( e ) ? e = 1 : ( e . type == CKEDITOR . NODE _TEXT && ( e = e . getParent ( ) ) , e = e . $ . offsetWidth <= c ) ; return ! ! ( a ^ e ) } } ; CKEDITOR . dom . walker . nodeType = function ( a , b ) { return function ( c ) { return ! ! ( b ^ c . type == a ) } } ; CKEDITOR . dom . walker . bogus = function ( a ) { function b ( a ) { return ! h ( a ) && ! k ( a ) } return function ( c ) { var e = CKEDITOR . env . needsBrFiller ? c . is && c . is ( "br" ) : c . getText && f . test ( c . getText ( ) ) ; e && ( e = c . getParent ( ) , c = c . getNext ( b ) , e = e . isBlockBoundary ( ) &&
( ! c || c . type == CKEDITOR . NODE _ELEMENT && c . isBlockBoundary ( ) ) ) ; return ! ! ( a ^ e ) } } ; CKEDITOR . dom . walker . temp = function ( a ) { return function ( b ) { b . type != CKEDITOR . NODE _ELEMENT && ( b = b . getParent ( ) ) ; b = b && b . hasAttribute ( "data-cke-temp" ) ; return ! ! ( a ^ b ) } } ; var f = /^[\t\r\n ]*(?: |\xa0)$/ , h = CKEDITOR . dom . walker . whitespaces ( ) , k = CKEDITOR . dom . walker . bookmark ( ) , g = CKEDITOR . dom . walker . temp ( ) , m = function ( a ) { return k ( a ) || h ( a ) || a . type == CKEDITOR . NODE _ELEMENT && a . is ( CKEDITOR . dtd . $inline ) && ! a . is ( CKEDITOR . dtd . $empty ) } ; CKEDITOR . dom . walker . ignored =
function ( a ) { return function ( b ) { b = h ( b ) || k ( b ) || g ( b ) ; return ! ! ( a ^ b ) } } ; var r = CKEDITOR . dom . walker . ignored ( ) ; CKEDITOR . dom . walker . empty = function ( a ) { return function ( b ) { for ( var c = 0 , e = b . getChildCount ( ) ; c < e ; ++ c ) if ( ! r ( b . getChild ( c ) ) ) return ! ! a ; return ! a } } ; var e = CKEDITOR . dom . walker . empty ( ) , z = CKEDITOR . dom . walker . validEmptyBlockContainers = CKEDITOR . tools . extend ( function ( a ) { var b = { } , c ; for ( c in a ) CKEDITOR . dtd [ c ] [ "#" ] && ( b [ c ] = 1 ) ; return b } ( CKEDITOR . dtd . $block ) , { caption : 1 , td : 1 , th : 1 } ) ; CKEDITOR . dom . walker . editable = function ( a ) { return function ( b ) { b =
r ( b ) ? ! 1 : b . type == CKEDITOR . NODE _TEXT || b . type == CKEDITOR . NODE _ELEMENT && ( b . is ( CKEDITOR . dtd . $inline ) || b . is ( "hr" ) || "false" == b . getAttribute ( "contenteditable" ) || ! CKEDITOR . env . needsBrFiller && b . is ( z ) && e ( b ) ) ? ! 0 : ! 1 ; return ! ! ( a ^ b ) } } ; CKEDITOR . dom . element . prototype . getBogus = function ( ) { var a = this ; do a = a . getPreviousSourceNode ( ) ; while ( m ( a ) ) ; return a && ( CKEDITOR . env . needsBrFiller ? a . is && a . is ( "br" ) : a . getText && f . test ( a . getText ( ) ) ) ? a : ! 1 } } ) ( ) ;
( ! c || c . type == CKEDITOR . NODE _ELEMENT && c . isBlockBoundary ( ) ) ) ; return ! ! ( a ^ e ) } } ; CKEDITOR . dom . walker . temp = function ( a ) { return function ( b ) { b . type != CKEDITOR . NODE _ELEMENT && ( b = b . getParent ( ) ) ; b = b && b . hasAttribute ( "data-cke-temp" ) ; return ! ! ( a ^ b ) } } ; var f = /^[\t\r\n ]*(?: |\xa0)$/ , h = CKEDITOR . dom . walker . whitespaces ( ) , k = CKEDITOR . dom . walker . bookmark ( ) , g = CKEDITOR . dom . walker . temp ( ) , n = function ( a ) { return k ( a ) || h ( a ) || a . type == CKEDITOR . NODE _ELEMENT && a . is ( CKEDITOR . dtd . $inline ) && ! a . is ( CKEDITOR . dtd . $empty ) } ; CKEDITOR . dom . walker . ignored =
function ( a ) { return function ( b ) { b = h ( b ) || k ( b ) || g ( b ) ; return ! ! ( a ^ b ) } } ; var r = CKEDITOR . dom . walker . ignored ( ) ; CKEDITOR . dom . walker . empty = function ( a ) { return function ( b ) { for ( var c = 0 , e = b . getChildCount ( ) ; c < e ; ++ c ) if ( ! r ( b . getChild ( c ) ) ) return ! ! a ; return ! a } } ; var e = CKEDITOR . dom . walker . empty ( ) , y = CKEDITOR . dom . walker . validEmptyBlockContainers = CKEDITOR . tools . extend ( function ( a ) { var b = { } , c ; for ( c in a ) CKEDITOR . dtd [ c ] [ "#" ] && ( b [ c ] = 1 ) ; return b } ( CKEDITOR . dtd . $block ) , { caption : 1 , td : 1 , th : 1 } ) ; CKEDITOR . dom . walker . editable = function ( a ) { return function ( b ) { b =
r ( b ) ? ! 1 : b . type == CKEDITOR . NODE _TEXT || b . type == CKEDITOR . NODE _ELEMENT && ( b . is ( CKEDITOR . dtd . $inline ) || b . is ( "hr" ) || "false" == b . getAttribute ( "contenteditable" ) || ! CKEDITOR . env . needsBrFiller && b . is ( y ) && e ( b ) ) ? ! 0 : ! 1 ; return ! ! ( a ^ b ) } } ; CKEDITOR . dom . element . prototype . getBogus = function ( ) { var a = this ; do a = a . getPreviousSourceNode ( ) ; while ( n ( a ) ) ; return a && ( CKEDITOR . env . needsBrFiller ? a . is && a . is ( "br" ) : a . getText && f . test ( a . getText ( ) ) ) ? a : ! 1 } } ) ( ) ;
CKEDITOR . dom . range = function ( a ) { this . endOffset = this . endContainer = this . startOffset = this . startContainer = null ; this . collapsed = ! 0 ; var d = a instanceof CKEDITOR . dom . document ; this . document = d ? a : a . getDocument ( ) ; this . root = d ? a . getBody ( ) : a } ;
( function ( ) { function a ( a ) { a . collapsed = a . startContainer && a . endContainer && a . startContainer . equals ( a . endContainer ) && a . startOffset == a . endOffset } function d ( a , b , c , d , f ) { function h ( a , b , c , e ) { var d = c ? a . getPrevious ( ) : a . getNext ( ) ; if ( e && k ) return d ; l || e ? b . append ( a . clone ( ! 0 , f ) , c ) : ( a . remove ( ) , r && b . append ( a , c ) ) ; return d } function p ( ) { var a , b , c , e = Math . min ( O . length , n . length ) ; for ( a = 0 ; a < e ; a ++ ) if ( b = O [ a ] , c = n [ a ] , ! b . equals ( c ) ) return a ; return a - 1 } function g ( ) { var b = N - 1 , c = E && w && ! q . equals ( F ) ; b < v - 1 || b < B - 1 || c ? ( c ? a . moveToPosition ( F ,
CKEDITOR . POSITION _BEFORE _START ) : B == b + 1 && t ? a . moveToPosition ( n [ b ] , CKEDITOR . POSITION _BEFORE _END ) : a . moveToPosition ( n [ b + 1 ] , CKEDITOR . POSITION _BEFORE _START ) , d && ( b = O [ b + 1 ] ) && b . type == CKEDITOR . NODE _ELEMENT && ( c = CKEDITOR . dom . element . createFromHtml ( '\x3cspan data-cke-bookmark\x3d"1" style\x3d"display:none"\x3e\x26nbsp;\x3c/span\x3e' , a . document ) , c . insertAfter ( b ) , b . mergeSiblings ( ! 1 ) , a . moveToBookmark ( { startNode : c } ) ) ) : a . collapse ( ! 0 ) } a . optimizeBookmark ( ) ; var k = 0 === b , r = 1 == b , l = 2 == b ; b = l || r ; var q = a . startContainer , F = a . endContainer ,
L = a . startOffset , C = a . endOffset , M , t , E , w , H , P ; if ( l && F . type == CKEDITOR . NODE _TEXT && ( q . equals ( F ) || q . type === CKEDITOR . NODE _ELEMENT && q . getFirst ( ) . equals ( F ) ) ) c . append ( a . document . createText ( F . substring ( L , C ) ) ) ; else { F . type == CKEDITOR . NODE _TEXT ? l ? P = ! 0 : F = F . split ( C ) : 0 < F . getChildCount ( ) ? C >= F . getChildCount ( ) ? ( F = F . getChild ( C - 1 ) , t = ! 0 ) : F = F . getChild ( C ) : w = t = ! 0 ; q . type == CKEDITOR . NODE _TEXT ? l ? H = ! 0 : q . split ( L ) : 0 < q . getChildCount ( ) ? 0 === L ? ( q = q . getChild ( L ) , M = ! 0 ) : q = q . getChild ( L - 1 ) : E = M = ! 0 ; for ( var O = q . getParents ( ) , n = F . getParents ( ) , N = p ( ) ,
v = O . length - 1 , B = n . length - 1 , G = c , I , X , V , da = - 1 , Q = N ; Q <= v ; Q ++ ) { X = O [ Q ] ; V = X . getNext ( ) ; for ( Q != v || X . equals ( n [ Q ] ) && v < B ? b && ( I = G . append ( X . clone ( 0 , f ) ) ) : M ? h ( X , G , ! 1 , E ) : H && G . append ( a . document . createText ( X . substring ( L ) ) ) ; V ; ) { if ( V . equals ( n [ Q ] ) ) { da = Q ; break } V = h ( V , G ) } G = I } G = c ; for ( Q = N ; Q <= B ; Q ++ ) if ( c = n [ Q ] , V = c . getPrevious ( ) , c . equals ( O [ Q ] ) ) b && ( G = G . getChild ( 0 ) ) ; else { Q != B || c . equals ( O [ Q ] ) && B < v ? b && ( I = G . append ( c . clone ( 0 , f ) ) ) : t ? h ( c , G , ! 1 , w ) : P && G . append ( a . document . createText ( c . substring ( 0 , C ) ) ) ; if ( Q > da ) for ( ; V ; ) V = h ( V , G , ! 0 ) ; G = I } l || g ( ) } }
( function ( ) { function a ( a ) { a . collapsed = a . startContainer && a . endContainer && a . startContainer . equals ( a . endContainer ) && a . startOffset == a . endOffset } function d ( a , b , c , d , f ) { function h ( a , b , c , e ) { var d = c ? a . getPrevious ( ) : a . getNext ( ) ; if ( e && k ) return d ; l || e ? b . append ( a . clone ( ! 0 , f ) , c ) : ( a . remove ( ) , r && b . append ( a , c ) ) ; return d } function m ( ) { var a , b , c , e = Math . min ( O . length , p . length ) ; for ( a = 0 ; a < e ; a ++ ) if ( b = O [ a ] , c = p [ a ] , ! b . equals ( c ) ) return a ; return a - 1 } function g ( ) { var b = N - 1 , c = E && z && ! t . equals ( F ) ; b < w - 1 || b < B - 1 || c ? ( c ? a . moveToPosition ( F ,
CKEDITOR . POSITION _BEFORE _START ) : B == b + 1 && q ? a . moveToPosition ( p [ b ] , CKEDITOR . POSITION _BEFORE _END ) : a . moveToPosition ( p [ b + 1 ] , CKEDITOR . POSITION _BEFORE _START ) , d && ( b = O [ b + 1 ] ) && b . type == CKEDITOR . NODE _ELEMENT && ( c = CKEDITOR . dom . element . createFromHtml ( '\x3cspan data-cke-bookmark\x3d"1" style\x3d"display:none"\x3e\x26nbsp;\x3c/span\x3e' , a . document ) , c . insertAfter ( b ) , b . mergeSiblings ( ! 1 ) , a . moveToBookmark ( { startNode : c } ) ) ) : a . collapse ( ! 0 ) } a . optimizeBookmark ( ) ; var k = 0 === b , r = 1 == b , l = 2 == b ; b = l || r ; var t = a . startContainer , F = a . endContainer ,
L = a . startOffset , C = a . endOffset , M , q , E , z , H , P ; if ( l && F . type == CKEDITOR . NODE _TEXT && ( t . equals ( F ) || t . type === CKEDITOR . NODE _ELEMENT && t . getFirst ( ) . equals ( F ) ) ) c . append ( a . document . createText ( F . substring ( L , C ) ) ) ; else { F . type == CKEDITOR . NODE _TEXT ? l ? P = ! 0 : F = F . split ( C ) : 0 < F . getChildCount ( ) ? C >= F . getChildCount ( ) ? ( F = F . getChild ( C - 1 ) , q = ! 0 ) : F = F . getChild ( C ) : z = q = ! 0 ; t . type == CKEDITOR . NODE _TEXT ? l ? H = ! 0 : t . split ( L ) : 0 < t . getChildCount ( ) ? 0 === L ? ( t = t . getChild ( L ) , M = ! 0 ) : t = t . getChild ( L - 1 ) : E = M = ! 0 ; for ( var O = t . getParents ( ) , p = F . getParents ( ) , N = m ( ) ,
w = O . length - 1 , B = p . length - 1 , G = c , I , X , V , da = - 1 , Q = N ; Q <= w ; Q ++ ) { X = O [ Q ] ; V = X . getNext ( ) ; for ( Q != w || X . equals ( p [ Q ] ) && w < B ? b && ( I = G . append ( X . clone ( 0 , f ) ) ) : M ? h ( X , G , ! 1 , E ) : H && G . append ( a . document . createText ( X . substring ( L ) ) ) ; V ; ) { if ( V . equals ( p [ Q ] ) ) { da = Q ; break } V = h ( V , G ) } G = I } G = c ; for ( Q = N ; Q <= B ; Q ++ ) if ( c = p [ Q ] , V = c . getPrevious ( ) , c . equals ( O [ Q ] ) ) b && ( G = G . getChild ( 0 ) ) ; else { Q != B || c . equals ( O [ Q ] ) && B < w ? b && ( I = G . append ( c . clone ( 0 , f ) ) ) : q ? h ( c , G , ! 1 , z ) : P && G . append ( a . document . createText ( c . substring ( 0 , C ) ) ) ; if ( Q > da ) for ( ; V ; ) V = h ( V , G , ! 0 ) ; G = I } l || g ( ) } }
function b ( ) { var a = ! 1 , b = CKEDITOR . dom . walker . whitespaces ( ) , c = CKEDITOR . dom . walker . bookmark ( ! 0 ) , d = CKEDITOR . dom . walker . bogus ( ) ; return function ( f ) { return c ( f ) || b ( f ) ? ! 0 : d ( f ) && ! a ? a = ! 0 : f . type == CKEDITOR . NODE _TEXT && ( f . hasAscendant ( "pre" ) || CKEDITOR . tools . trim ( f . getText ( ) ) . length ) || f . type == CKEDITOR . NODE _ELEMENT && ! f . is ( h ) ? ! 1 : ! 0 } } function c ( a ) { var b = CKEDITOR . dom . walker . whitespaces ( ) , c = CKEDITOR . dom . walker . bookmark ( 1 ) ; return function ( d ) { return c ( d ) || b ( d ) ? ! 0 : ! a && k ( d ) || d . type == CKEDITOR . NODE _ELEMENT && d . is ( CKEDITOR . dtd . $removeEmpty ) } }
function f ( a ) { return function ( ) { var b ; return this [ a ? "getPreviousNode" : "getNextNode" ] ( function ( a ) { ! b && r ( a ) && ( b = a ) ; return m ( a ) && ! ( k ( a ) && a . equals ( b ) ) } ) } } var h = { abbr : 1 , acronym : 1 , b : 1 , bdo : 1 , big : 1 , cite : 1 , code : 1 , del : 1 , dfn : 1 , em : 1 , font : 1 , i : 1 , ins : 1 , label : 1 , kbd : 1 , q : 1 , samp : 1 , small : 1 , span : 1 , strike : 1 , strong : 1 , sub : 1 , sup : 1 , tt : 1 , u : 1 , "var" : 1 } , k = CKEDITOR . dom . walker . bogus ( ) , g = /^[\t\r\n ]*(?: |\xa0)$/ , m = CKEDITOR . dom . walker . editable ( ) , r = CKEDITOR . dom . walker . ignored ( ! 0 ) ; CKEDITOR . dom . range . prototype = { clone : function ( ) { var a =
function f ( a ) { return function ( ) { var b ; return this [ a ? "getPreviousNode" : "getNextNode" ] ( function ( a ) { ! b && r ( a ) && ( b = a ) ; return n ( a ) && ! ( k ( a ) && a . equals ( b ) ) } ) } } var h = { abbr : 1 , acronym : 1 , b : 1 , bdo : 1 , big : 1 , cite : 1 , code : 1 , del : 1 , dfn : 1 , em : 1 , font : 1 , i : 1 , ins : 1 , label : 1 , kbd : 1 , q : 1 , samp : 1 , small : 1 , span : 1 , strike : 1 , strong : 1 , sub : 1 , sup : 1 , tt : 1 , u : 1 , "var" : 1 } , k = CKEDITOR . dom . walker . bogus ( ) , g = /^[\t\r\n ]*(?: |\xa0)$/ , n = CKEDITOR . dom . walker . editable ( ) , r = CKEDITOR . dom . walker . ignored ( ! 0 ) ; CKEDITOR . dom . range . prototype = { clone : function ( ) { var a =
new CKEDITOR . dom . range ( this . root ) ; a . _setStartContainer ( this . startContainer ) ; a . startOffset = this . startOffset ; a . _setEndContainer ( this . endContainer ) ; a . endOffset = this . endOffset ; a . collapsed = this . collapsed ; return a } , collapse : function ( a ) { a ? ( this . _setEndContainer ( this . startContainer ) , this . endOffset = this . startOffset ) : ( this . _setStartContainer ( this . endContainer ) , this . startOffset = this . endOffset ) ; this . collapsed = ! 0 } , cloneContents : function ( a ) { var b = new CKEDITOR . dom . documentFragment ( this . document ) ; this . collapsed ||
d ( this , 2 , b , ! 1 , "undefined" == typeof a ? ! 0 : a ) ; return b } , deleteContents : function ( a ) { this . collapsed || d ( this , 0 , null , a ) } , extractContents : function ( a , b ) { var c = new CKEDITOR . dom . documentFragment ( this . document ) ; this . collapsed || d ( this , 1 , c , a , "undefined" == typeof b ? ! 0 : b ) ; return c } , createBookmark : function ( a ) { var b , c , d , f , h = this . collapsed ; b = this . document . createElement ( "span" ) ; b . data ( "cke-bookmark" , 1 ) ; b . setStyle ( "display" , "none" ) ; b . setHtml ( "\x26nbsp;" ) ; a && ( d = "cke_bm_" + CKEDITOR . tools . getNextNumber ( ) , b . setAttribute ( "id" ,
d + ( h ? "C" : "S" ) ) ) ; h || ( c = b . clone ( ) , c . setHtml ( "\x26nbsp;" ) , a && c . setAttribute ( "id" , d + "E" ) , f = this . clone ( ) , f . collapse ( ) , f . insertNode ( c ) ) ; f = this . clone ( ) ; f . collapse ( ! 0 ) ; f . insertNode ( b ) ; c ? ( this . setStartAfter ( b ) , this . setEndBefore ( c ) ) : this . moveToPosition ( b , CKEDITOR . POSITION _AFTER _END ) ; return { startNode : a ? d + ( h ? "C" : "S" ) : b , endNode : a ? d + "E" : c , serializable : a , collapsed : h } } , createBookmark2 : function ( ) { function a ( b ) { var e = b . container , d = b . offset , p ; p = e ; var f = d ; p = p . type != CKEDITOR . NODE _ELEMENT || 0 === f || f == p . getChildCount ( ) ?
0 : p . getChild ( f - 1 ) . type == CKEDITOR . NODE _TEXT && p . getChild ( f ) . type == CKEDITOR . NODE _TEXT ; p && ( e = e . getChild ( d - 1 ) , d = e . getLength ( ) ) ; if ( e . type == CKEDITOR . NODE _ELEMENT && 0 < d ) { a : { for ( p = e ; d -- ; ) if ( f = p . getChild ( d ) . getIndex ( ! 0 ) , 0 <= f ) { d = f ; break a } d = - 1 } d += 1 } if ( e . type == CKEDITOR . NODE _TEXT ) { p = e ; for ( f = 0 ; ( p = p . getPrevious ( ) ) && p . type == CKEDITOR . NODE _TEXT ; ) f += p . getText ( ) . replace ( CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE , "" ) . length ; p = f ; e . getText ( ) ? d += p : ( f = e . getPrevious ( c ) , p ? ( d = p , e = f ? f . getNext ( ) : e . getParent ( ) . getFirst ( ) ) : ( e =
e . getParent ( ) , d = f ? f . getIndex ( ! 0 ) + 1 : 0 ) ) } b . container = e ; b . offset = d } function b ( a , c ) { var e = c . getCustomData ( "cke-fillingChar" ) ; if ( e ) { var d = a . container ; e . equals ( d ) && ( a . offset -= CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE . length , 0 >= a . offset && ( a . offset = d . getIndex ( ) , a . container = d . getParent ( ) ) ) } } var c = CKEDITOR . dom . walker . nodeType ( CKEDITOR . NODE _TEXT , ! 0 ) ; return function ( c ) { var d = this . collapsed , f = { container : this . startContainer , offset : this . startOffset } , p = { container : this . endContainer , offset : this . endOffset } ; c && ( a ( f ) ,
b ( f , this . root ) , d || ( a ( p ) , b ( p , this . root ) ) ) ; return { start : f . container . getAddress ( c ) , end : d ? null : p . container . getAddress ( c ) , startOffset : f . offset , endOffset : p . offset , normalized : c , collapsed : d , is2 : ! 0 } } } ( ) , moveToBookmark : function ( a ) { if ( a . is2 ) { var b = this . document . getByAddress ( a . start , a . normalized ) , c = a . startOffset , d = a . end && this . document . getByAddress ( a . end , a . normalized ) ; a = a . endOffset ; this . setStart ( b , c ) ; d ? this . setEnd ( d , a ) : this . collapse ( ! 0 ) } else b = ( c = a . serializable ) ? this . document . getById ( a . startNode ) : a . startNode ,
d + ( h ? "C" : "S" ) ) ) ; h || ( c = b . clone ( ) , c . setHtml ( "\x26nbsp;" ) , a && c . setAttribute ( "id" , d + "E" ) , f = this . clone ( ) , f . collapse ( ) , f . insertNode ( c ) ) ; f = this . clone ( ) ; f . collapse ( ! 0 ) ; f . insertNode ( b ) ; c ? ( this . setStartAfter ( b ) , this . setEndBefore ( c ) ) : this . moveToPosition ( b , CKEDITOR . POSITION _AFTER _END ) ; return { startNode : a ? d + ( h ? "C" : "S" ) : b , endNode : a ? d + "E" : c , serializable : a , collapsed : h } } , createBookmark2 : function ( ) { function a ( b ) { var e = b . container , d = b . offset , m ; m = e ; var f = d ; m = m . type != CKEDITOR . NODE _ELEMENT || 0 === f || f == m . getChildCount ( ) ?
0 : m . getChild ( f - 1 ) . type == CKEDITOR . NODE _TEXT && m . getChild ( f ) . type == CKEDITOR . NODE _TEXT ; m && ( e = e . getChild ( d - 1 ) , d = e . getLength ( ) ) ; if ( e . type == CKEDITOR . NODE _ELEMENT && 0 < d ) { a : { for ( m = e ; d -- ; ) if ( f = m . getChild ( d ) . getIndex ( ! 0 ) , 0 <= f ) { d = f ; break a } d = - 1 } d += 1 } if ( e . type == CKEDITOR . NODE _TEXT ) { m = e ; for ( f = 0 ; ( m = m . getPrevious ( ) ) && m . type == CKEDITOR . NODE _TEXT ; ) f += m . getText ( ) . replace ( CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE , "" ) . length ; m = f ; e . getText ( ) ? d += m : ( f = e . getPrevious ( c ) , m ? ( d = m , e = f ? f . getNext ( ) : e . getParent ( ) . getFirst ( ) ) : ( e =
e . getParent ( ) , d = f ? f . getIndex ( ! 0 ) + 1 : 0 ) ) } b . container = e ; b . offset = d } function b ( a , c ) { var e = c . getCustomData ( "cke-fillingChar" ) ; if ( e ) { var d = a . container ; e . equals ( d ) && ( a . offset -= CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE . length , 0 >= a . offset && ( a . offset = d . getIndex ( ) , a . container = d . getParent ( ) ) ) } } var c = CKEDITOR . dom . walker . nodeType ( CKEDITOR . NODE _TEXT , ! 0 ) ; return function ( c ) { var d = this . collapsed , f = { container : this . startContainer , offset : this . startOffset } , m = { container : this . endContainer , offset : this . endOffset } ; c && ( a ( f ) ,
b ( f , this . root ) , d || ( a ( m ) , b ( m , this . root ) ) ) ; return { start : f . container . getAddress ( c ) , end : d ? null : m . container . getAddress ( c ) , startOffset : f . offset , endOffset : m . offset , normalized : c , collapsed : d , is2 : ! 0 } } } ( ) , moveToBookmark : function ( a ) { if ( a . is2 ) { var b = this . document . getByAddress ( a . start , a . normalized ) , c = a . startOffset , d = a . end && this . document . getByAddress ( a . end , a . normalized ) ; a = a . endOffset ; this . setStart ( b , c ) ; d ? this . setEnd ( d , a ) : this . collapse ( ! 0 ) } else b = ( c = a . serializable ) ? this . document . getById ( a . startNode ) : a . startNode ,
a = c ? this . document . getById ( a . endNode ) : a . endNode , this . setStartBefore ( b ) , b . remove ( ) , a ? ( this . setEndBefore ( a ) , a . remove ( ) ) : this . collapse ( ! 0 ) } , getBoundaryNodes : function ( ) { var a = this . startContainer , b = this . endContainer , c = this . startOffset , d = this . endOffset , f ; if ( a . type == CKEDITOR . NODE _ELEMENT ) if ( f = a . getChildCount ( ) , f > c ) a = a . getChild ( c ) ; else if ( 1 > f ) a = a . getPreviousSourceNode ( ) ; else { for ( a = a . $ ; a . lastChild ; ) a = a . lastChild ; a = new CKEDITOR . dom . node ( a ) ; a = a . getNextSourceNode ( ) || a } if ( b . type == CKEDITOR . NODE _ELEMENT ) if ( f = b . getChildCount ( ) ,
f > d ) b = b . getChild ( d ) . getPreviousSourceNode ( ! 0 ) ; else if ( 1 > f ) b = b . getPreviousSourceNode ( ) ; else { for ( b = b . $ ; b . lastChild ; ) b = b . lastChild ; b = new CKEDITOR . dom . node ( b ) } a . getPosition ( b ) & CKEDITOR . POSITION _FOLLOWING && ( a = b ) ; return { startNode : a , endNode : b } } , getCommonAncestor : function ( a , b ) { var c = this . startContainer , d = this . endContainer , c = c . equals ( d ) ? a && c . type == CKEDITOR . NODE _ELEMENT && this . startOffset == this . endOffset - 1 ? c . getChild ( this . startOffset ) : c : c . getCommonAncestor ( d ) ; return b && ! c . is ? c . getParent ( ) : c } , optimize : function ( ) { var a =
this . startContainer , b = this . startOffset ; a . type != CKEDITOR . NODE _ELEMENT && ( b ? b >= a . getLength ( ) && this . setStartAfter ( a ) : this . setStartBefore ( a ) ) ; a = this . endContainer ; b = this . endOffset ; a . type != CKEDITOR . NODE _ELEMENT && ( b ? b >= a . getLength ( ) && this . setEndAfter ( a ) : this . setEndBefore ( a ) ) } , optimizeBookmark : function ( ) { var a = this . startContainer , b = this . endContainer ; a . is && a . is ( "span" ) && a . data ( "cke-bookmark" ) && this . setStartAt ( a , CKEDITOR . POSITION _BEFORE _START ) ; b && b . is && b . is ( "span" ) && b . data ( "cke-bookmark" ) && this . setEndAt ( b , CKEDITOR . POSITION _AFTER _END ) } ,
trim : function ( a , b ) { var c = this . startContainer , d = this . startOffset , f = this . collapsed ; if ( ( ! a || f ) && c && c . type == CKEDITOR . NODE _TEXT ) { if ( d ) if ( d >= c . getLength ( ) ) d = c . getIndex ( ) + 1 , c = c . getParent ( ) ; else { var h = c . split ( d ) , d = c . getIndex ( ) + 1 , c = c . getParent ( ) ; this . startContainer . equals ( this . endContainer ) ? this . setEnd ( h , this . endOffset - this . startOffset ) : c . equals ( this . endContainer ) && ( this . endOffset += 1 ) } else d = c . getIndex ( ) , c = c . getParent ( ) ; this . setStart ( c , d ) ; if ( f ) { this . collapse ( ! 0 ) ; return } } c = this . endContainer ; d = this . endOffset ;
b || f || ! c || c . type != CKEDITOR . NODE _TEXT || ( d ? ( d >= c . getLength ( ) || c . split ( d ) , d = c . getIndex ( ) + 1 ) : d = c . getIndex ( ) , c = c . getParent ( ) , this . setEnd ( c , d ) ) } , enlarge : function ( a , b ) { function c ( a ) { return a && a . type == CKEDITOR . NODE _ELEMENT && a . hasAttribute ( "contenteditable" ) ? null : a } var d = new RegExp ( /[^\s\ufeff]/ ) ; switch ( a ) { case CKEDITOR . ENLARGE _INLINE : var f = 1 ; case CKEDITOR . ENLARGE _ELEMENT : var h = function ( a , b ) { var c = new CKEDITOR . dom . range ( g ) ; c . setStart ( a , b ) ; c . setEndAt ( g , CKEDITOR . POSITION _BEFORE _END ) ; var c = new CKEDITOR . dom . walker ( c ) ,
e ; for ( c . guard = function ( a ) { return ! ( a . type == CKEDITOR . NODE _ELEMENT && a . isBlockBoundary ( ) ) } ; e = c . next ( ) ; ) { if ( e . type != CKEDITOR . NODE _TEXT ) return ! 1 ; M = e != a ? e . getText ( ) : e . substring ( b ) ; if ( d . test ( M ) ) return ! 1 } return ! 0 } ; if ( this . collapsed ) break ; var p = this . getCommonAncestor ( ) , g = this . root , k , r , l , q , F , L = ! 1 , C , M ; C = this . startContainer ; var t = this . startOffset ; C . type == CKEDITOR . NODE _TEXT ? ( t && ( C = ! CKEDITOR . tools . trim ( C . substring ( 0 , t ) ) . length && C , L = ! ! C ) , C && ( ( q = C . getPrevious ( ) ) || ( l = C . getParent ( ) ) ) ) : ( t && ( q = C . getChild ( t - 1 ) || C . getLast ( ) ) ,
q || ( l = C ) ) ; for ( l = c ( l ) ; l || q ; ) { if ( l && ! q ) { ! F && l . equals ( p ) && ( F = ! 0 ) ; if ( f ? l . isBlockBoundary ( ) : ! g . contains ( l ) ) break ; L && "inline" == l . getComputedStyle ( "display" ) || ( L = ! 1 , F ? k = l : this . setStartBefore ( l ) ) ; q = l . getPrevious ( ) } for ( ; q ; ) if ( C = ! 1 , q . type == CKEDITOR . NODE _COMMENT ) q = q . getPrevious ( ) ; else { if ( q . type == CKEDITOR . NODE _TEXT ) M = q . getText ( ) , d . test ( M ) && ( q = null ) , C = /[\s\ufeff]$/ . test ( M ) ; else if ( ( q . $ . offsetWidth > ( CKEDITOR . env . webkit ? 1 : 0 ) || b && q . is ( "br" ) ) && ! q . data ( "cke-bookmark" ) ) if ( L && CKEDITOR . dtd . $removeEmpty [ q . getName ( ) ] ) { M =
q . getText ( ) ; if ( d . test ( M ) ) q = null ; else for ( var t = q . $ . getElementsByTagName ( "*" ) , E = 0 , w ; w = t [ E ++ ] ; ) if ( ! CKEDITOR . dtd . $removeEmpty [ w . nodeName . toLowerCase ( ) ] ) { q = null ; break } q && ( C = ! ! M . length ) } else q = null ; C && ( L ? F ? k = l : l && this . setStartBefore ( l ) : L = ! 0 ) ; if ( q ) { C = q . getPrevious ( ) ; if ( ! l && ! C ) { l = q ; q = null ; break } q = C } else l = null } l && ( l = c ( l . getParent ( ) ) ) } C = this . endContainer ; t = this . endOffset ; l = q = null ; F = L = ! 1 ; C . type == CKEDITOR . NODE _TEXT ? CKEDITOR . tools . trim ( C . substring ( t ) ) . length ? L = ! 0 : ( L = ! C . getLength ( ) , t == C . getLength ( ) ? ( q = C . getNext ( ) ) ||
( l = C . getParent ( ) ) : h ( C , t ) && ( l = C . getParent ( ) ) ) : ( q = C . getChild ( t ) ) || ( l = C ) ; for ( ; l || q ; ) { if ( l && ! q ) { ! F && l . equals ( p ) && ( F = ! 0 ) ; if ( f ? l . isBlockBoundary ( ) : ! g . contains ( l ) ) break ; L && "inline" == l . getComputedStyle ( "display" ) || ( L = ! 1 , F ? r = l : l && this . setEndAfter ( l ) ) ; q = l . getNext ( ) } for ( ; q ; ) { C = ! 1 ; if ( q . type == CKEDITOR . NODE _TEXT ) M = q . getText ( ) , h ( q , 0 ) || ( q = null ) , C = /^[\s\ufeff]/ . test ( M ) ; else if ( q . type == CKEDITOR . NODE _ELEMENT ) { if ( ( 0 < q . $ . offsetWidth || b && q . is ( "br" ) ) && ! q . data ( "cke-bookmark" ) ) if ( L && CKEDITOR . dtd . $removeEmpty [ q . getName ( ) ] ) { M =
q . getText ( ) ; if ( d . test ( M ) ) q = null ; else for ( t = q . $ . getElementsByTagName ( "*" ) , E = 0 ; w = t [ E ++ ] ; ) if ( ! CKEDITOR . dtd . $removeEmpty [ w . nodeName . toLowerCase ( ) ] ) { q = null ; break } q && ( C = ! ! M . length ) } else q = null } else C = 1 ; C && L && ( F ? r = l : this . setEndAfter ( l ) ) ; if ( q ) { C = q . getNext ( ) ; if ( ! l && ! C ) { l = q ; q = null ; break } q = C } else l = null } l && ( l = c ( l . getParent ( ) ) ) } k && r && ( p = k . contains ( r ) ? r : k , this . setStartBefore ( p ) , this . setEndAfter ( p ) ) ; break ; case CKEDITOR . ENLARGE _BLOCK _CONTENTS : case CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS : l = new CKEDITOR . dom . range ( this . root ) ;
g = this . root ; l . setStartAt ( g , CKEDITOR . POSITION _AFTER _START ) ; l . setEnd ( this . startContainer , this . startOffset ) ; l = new CKEDITOR . dom . walker ( l ) ; var H , P , O = CKEDITOR . dom . walker . blockBoundary ( a == CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS ? { br : 1 } : null ) , n = null , N = function ( a ) { if ( a . type == CKEDITOR . NODE _ELEMENT && "false" == a . getAttribute ( "contenteditable" ) ) if ( n ) { if ( n . equals ( a ) ) { n = null ; return } } else n = a ; else if ( n ) return ; var b = O ( a ) ; b || ( H = a ) ; return b } , f = function ( a ) { var b = N ( a ) ; ! b && a . is && a . is ( "br" ) && ( P = a ) ; return b } ; l . guard = N ; l = l . lastBackward ( ) ;
H = H || g ; this . setStartAt ( H , ! H . is ( "br" ) && ( ! l && this . checkStartOfBlock ( ) || l && H . contains ( l ) ) ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _AFTER _END ) ; if ( a == CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS ) { l = this . clone ( ) ; l = new CKEDITOR . dom . walker ( l ) ; var v = CKEDITOR . dom . walker . whitespaces ( ) , B = CKEDITOR . dom . walker . bookmark ( ) ; l . evaluator = function ( a ) { return ! v ( a ) && ! B ( a ) } ; if ( ( l = l . previous ( ) ) && l . type == CKEDITOR . NODE _ELEMENT && l . is ( "br" ) ) break } l = this . clone ( ) ; l . collapse ( ) ; l . setEndAt ( g , CKEDITOR . POSITION _BEFORE _END ) ; l = new CKEDITOR . dom . walker ( l ) ;
l . guard = a == CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS ? f : N ; H = n = P = null ; l = l . lastForward ( ) ; H = H || g ; this . setEndAt ( H , ! l && this . checkEndOfBlock ( ) || l && H . contains ( l ) ? CKEDITOR . POSITION _BEFORE _END : CKEDITOR . POSITION _BEFORE _START ) ; P && this . setEndAfter ( P ) } } , shrink : function ( a , b , c ) { var d = "boolean" === typeof c ? c : c && "boolean" === typeof c . shrinkOnBlockBoundary ? c . shrinkOnBlockBoundary : ! 0 , f = c && c . skipBogus ; if ( ! this . collapsed ) { a = a || CKEDITOR . SHRINK _TEXT ; var h = this . clone ( ) , p = this . startContainer , g = this . endContainer , k = this . startOffset ,
r = this . endOffset , l = c = 1 ; p && p . type == CKEDITOR . NODE _TEXT && ( k ? k >= p . getLength ( ) ? h . setStartAfter ( p ) : ( h . setStartBefore ( p ) , c = 0 ) : h . setStartBefore ( p ) ) ; g && g . type == CKEDITOR . NODE _TEXT && ( r ? r >= g . getLength ( ) ? h . setEndAfter ( g ) : ( h . setEndAfter ( g ) , l = 0 ) : h . setEndBefore ( g ) ) ; var h = new CKEDITOR . dom . walker ( h ) , q = CKEDITOR . dom . walker . bookmark ( ) , F = CKEDITOR . dom . walker . bogus ( ) ; h . evaluator = function ( b ) { return b . type == ( a == CKEDITOR . SHRINK _ELEMENT ? CKEDITOR . NODE _ELEMENT : CKEDITOR . NODE _TEXT ) } ; var L ; h . guard = function ( b , c ) { if ( f && F ( b ) || q ( b ) ) return ! 0 ;
if ( a == CKEDITOR . SHRINK _ELEMENT && b . type == CKEDITOR . NODE _TEXT || c && b . equals ( L ) || ! 1 === d && b . type == CKEDITOR . NODE _ELEMENT && b . isBlockBoundary ( ) || b . type == CKEDITOR . NODE _ELEMENT && b . hasAttribute ( "contenteditable" ) ) return ! 1 ; c || b . type != CKEDITOR . NODE _ELEMENT || ( L = b ) ; return ! 0 } ; c && ( p = h [ a == CKEDITOR . SHRINK _ELEMENT ? "lastForward" : "next" ] ( ) ) && this . setStartAt ( p , b ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _START ) ; l && ( h . reset ( ) , ( h = h [ a == CKEDITOR . SHRINK _ELEMENT ? "lastBackward" : "previous" ] ( ) ) && this . setEndAt ( h , b ? CKEDITOR . POSITION _BEFORE _END :
e ; for ( c . guard = function ( a ) { return ! ( a . type == CKEDITOR . NODE _ELEMENT && a . isBlockBoundary ( ) ) } ; e = c . next ( ) ; ) { if ( e . type != CKEDITOR . NODE _TEXT ) return ! 1 ; M = e != a ? e . getText ( ) : e . substring ( b ) ; if ( d . test ( M ) ) return ! 1 } return ! 0 } ; if ( this . collapsed ) break ; var m = this . getCommonAncestor ( ) , g = this . root , k , r , l , t , F , L = ! 1 , C , M ; C = this . startContainer ; var q = this . startOffset ; C . type == CKEDITOR . NODE _TEXT ? ( q && ( C = ! CKEDITOR . tools . trim ( C . substring ( 0 , q ) ) . length && C , L = ! ! C ) , C && ( ( t = C . getPrevious ( ) ) || ( l = C . getParent ( ) ) ) ) : ( q && ( t = C . getChild ( q - 1 ) || C . getLast ( ) ) ,
t || ( l = C ) ) ; for ( l = c ( l ) ; l || t ; ) { if ( l && ! t ) { ! F && l . equals ( m ) && ( F = ! 0 ) ; if ( f ? l . isBlockBoundary ( ) : ! g . contains ( l ) ) break ; L && "inline" == l . getComputedStyle ( "display" ) || ( L = ! 1 , F ? k = l : this . setStartBefore ( l ) ) ; t = l . getPrevious ( ) } for ( ; t ; ) if ( C = ! 1 , t . type == CKEDITOR . NODE _COMMENT ) t = t . getPrevious ( ) ; else { if ( t . type == CKEDITOR . NODE _TEXT ) M = t . getText ( ) , d . test ( M ) && ( t = null ) , C = /[\s\ufeff]$/ . test ( M ) ; else if ( ( t . $ . offsetWidth > ( CKEDITOR . env . webkit ? 1 : 0 ) || b && t . is ( "br" ) ) && ! t . data ( "cke-bookmark" ) ) if ( L && CKEDITOR . dtd . $removeEmpty [ t . getName ( ) ] ) { M =
t . getText ( ) ; if ( d . test ( M ) ) t = null ; else for ( var q = t . $ . getElementsByTagName ( "*" ) , E = 0 , z ; z = q [ E ++ ] ; ) if ( ! CKEDITOR . dtd . $removeEmpty [ z . nodeName . toLowerCase ( ) ] ) { t = null ; break } t && ( C = ! ! M . length ) } else t = null ; C && ( L ? F ? k = l : l && this . setStartBefore ( l ) : L = ! 0 ) ; if ( t ) { C = t . getPrevious ( ) ; if ( ! l && ! C ) { l = t ; t = null ; break } t = C } else l = null } l && ( l = c ( l . getParent ( ) ) ) } C = this . endContainer ; q = this . endOffset ; l = t = null ; F = L = ! 1 ; C . type == CKEDITOR . NODE _TEXT ? CKEDITOR . tools . trim ( C . substring ( q ) ) . length ? L = ! 0 : ( L = ! C . getLength ( ) , q == C . getLength ( ) ? ( t = C . getNext ( ) ) ||
( l = C . getParent ( ) ) : h ( C , q ) && ( l = C . getParent ( ) ) ) : ( t = C . getChild ( q ) ) || ( l = C ) ; for ( ; l || t ; ) { if ( l && ! t ) { ! F && l . equals ( m ) && ( F = ! 0 ) ; if ( f ? l . isBlockBoundary ( ) : ! g . contains ( l ) ) break ; L && "inline" == l . getComputedStyle ( "display" ) || ( L = ! 1 , F ? r = l : l && this . setEndAfter ( l ) ) ; t = l . getNext ( ) } for ( ; t ; ) { C = ! 1 ; if ( t . type == CKEDITOR . NODE _TEXT ) M = t . getText ( ) , h ( t , 0 ) || ( t = null ) , C = /^[\s\ufeff]/ . test ( M ) ; else if ( t . type == CKEDITOR . NODE _ELEMENT ) { if ( ( 0 < t . $ . offsetWidth || b && t . is ( "br" ) ) && ! t . data ( "cke-bookmark" ) ) if ( L && CKEDITOR . dtd . $removeEmpty [ t . getName ( ) ] ) { M =
t . getText ( ) ; if ( d . test ( M ) ) t = null ; else for ( q = t . $ . getElementsByTagName ( "*" ) , E = 0 ; z = q [ E ++ ] ; ) if ( ! CKEDITOR . dtd . $removeEmpty [ z . nodeName . toLowerCase ( ) ] ) { t = null ; break } t && ( C = ! ! M . length ) } else t = null } else C = 1 ; C && L && ( F ? r = l : this . setEndAfter ( l ) ) ; if ( t ) { C = t . getNext ( ) ; if ( ! l && ! C ) { l = t ; t = null ; break } t = C } else l = null } l && ( l = c ( l . getParent ( ) ) ) } k && r && ( m = k . contains ( r ) ? r : k , this . setStartBefore ( m ) , this . setEndAfter ( m ) ) ; break ; case CKEDITOR . ENLARGE _BLOCK _CONTENTS : case CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS : l = new CKEDITOR . dom . range ( this . root ) ;
g = this . root ; l . setStartAt ( g , CKEDITOR . POSITION _AFTER _START ) ; l . setEnd ( this . startContainer , this . startOffset ) ; l = new CKEDITOR . dom . walker ( l ) ; var H , P , O = CKEDITOR . dom . walker . blockBoundary ( a == CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS ? { br : 1 } : null ) , p = null , N = function ( a ) { if ( a . type == CKEDITOR . NODE _ELEMENT && "false" == a . getAttribute ( "contenteditable" ) ) if ( p ) { if ( p . equals ( a ) ) { p = null ; return } } else p = a ; else if ( p ) return ; var b = O ( a ) ; b || ( H = a ) ; return b } , f = function ( a ) { var b = N ( a ) ; ! b && a . is && a . is ( "br" ) && ( P = a ) ; return b } ; l . guard = N ; l = l . lastBackward ( ) ;
H = H || g ; this . setStartAt ( H , ! H . is ( "br" ) && ( ! l && this . checkStartOfBlock ( ) || l && H . contains ( l ) ) ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _AFTER _END ) ; if ( a == CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS ) { l = this . clone ( ) ; l = new CKEDITOR . dom . walker ( l ) ; var w = CKEDITOR . dom . walker . whitespaces ( ) , B = CKEDITOR . dom . walker . bookmark ( ) ; l . evaluator = function ( a ) { return ! w ( a ) && ! B ( a ) } ; if ( ( l = l . previous ( ) ) && l . type == CKEDITOR . NODE _ELEMENT && l . is ( "br" ) ) break } l = this . clone ( ) ; l . collapse ( ) ; l . setEndAt ( g , CKEDITOR . POSITION _BEFORE _END ) ; l = new CKEDITOR . dom . walker ( l ) ;
l . guard = a == CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS ? f : N ; H = p = P = null ; l = l . lastForward ( ) ; H = H || g ; this . setEndAt ( H , ! l && this . checkEndOfBlock ( ) || l && H . contains ( l ) ? CKEDITOR . POSITION _BEFORE _END : CKEDITOR . POSITION _BEFORE _START ) ; P && this . setEndAfter ( P ) } } , shrink : function ( a , b , c ) { var d = "boolean" === typeof c ? c : c && "boolean" === typeof c . shrinkOnBlockBoundary ? c . shrinkOnBlockBoundary : ! 0 , f = c && c . skipBogus ; if ( ! this . collapsed ) { a = a || CKEDITOR . SHRINK _TEXT ; var h = this . clone ( ) , m = this . startContainer , g = this . endContainer , k = this . startOffset ,
r = this . endOffset , l = c = 1 ; m && m . type == CKEDITOR . NODE _TEXT && ( k ? k >= m . getLength ( ) ? h . setStartAfter ( m ) : ( h . setStartBefore ( m ) , c = 0 ) : h . setStartBefore ( m ) ) ; g && g . type == CKEDITOR . NODE _TEXT && ( r ? r >= g . getLength ( ) ? h . setEndAfter ( g ) : ( h . setEndAfter ( g ) , l = 0 ) : h . setEndBefore ( g ) ) ; var h = new CKEDITOR . dom . walker ( h ) , t = CKEDITOR . dom . walker . bookmark ( ) , F = CKEDITOR . dom . walker . bogus ( ) ; h . evaluator = function ( b ) { return b . type == ( a == CKEDITOR . SHRINK _ELEMENT ? CKEDITOR . NODE _ELEMENT : CKEDITOR . NODE _TEXT ) } ; var L ; h . guard = function ( b , c ) { if ( f && F ( b ) || t ( b ) ) return ! 0 ;
if ( a == CKEDITOR . SHRINK _ELEMENT && b . type == CKEDITOR . NODE _TEXT || c && b . equals ( L ) || ! 1 === d && b . type == CKEDITOR . NODE _ELEMENT && b . isBlockBoundary ( ) || b . type == CKEDITOR . NODE _ELEMENT && b . hasAttribute ( "contenteditable" ) ) return ! 1 ; c || b . type != CKEDITOR . NODE _ELEMENT || ( L = b ) ; return ! 0 } ; c && ( m = h [ a == CKEDITOR . SHRINK _ELEMENT ? "lastForward" : "next" ] ( ) ) && this . setStartAt ( m , b ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _START ) ; l && ( h . reset ( ) , ( h = h [ a == CKEDITOR . SHRINK _ELEMENT ? "lastBackward" : "previous" ] ( ) ) && this . setEndAt ( h , b ? CKEDITOR . POSITION _BEFORE _END :
CKEDITOR . POSITION _AFTER _END ) ) ; return ! ( ! c && ! l ) } } , insertNode : function ( a ) { this . optimizeBookmark ( ) ; this . trim ( ! 1 , ! 0 ) ; var b = this . startContainer , c = b . getChild ( this . startOffset ) ; c ? a . insertBefore ( c ) : b . append ( a ) ; a . getParent ( ) && a . getParent ( ) . equals ( this . endContainer ) && this . endOffset ++ ; this . setStartBefore ( a ) } , moveToPosition : function ( a , b ) { this . setStartAt ( a , b ) ; this . collapse ( ! 0 ) } , moveToRange : function ( a ) { this . setStart ( a . startContainer , a . startOffset ) ; this . setEnd ( a . endContainer , a . endOffset ) } , selectNodeContents : function ( a ) { this . setStart ( a ,
0 ) ; this . setEnd ( a , a . type == CKEDITOR . NODE _TEXT ? a . getLength ( ) : a . getChildCount ( ) ) } , setStart : function ( b , c ) { b . type == CKEDITOR . NODE _ELEMENT && CKEDITOR . dtd . $empty [ b . getName ( ) ] && ( c = b . getIndex ( ) , b = b . getParent ( ) ) ; this . _setStartContainer ( b ) ; this . startOffset = c ; this . endContainer || ( this . _setEndContainer ( b ) , this . endOffset = c ) ; a ( this ) } , setEnd : function ( b , c ) { b . type == CKEDITOR . NODE _ELEMENT && CKEDITOR . dtd . $empty [ b . getName ( ) ] && ( c = b . getIndex ( ) + 1 , b = b . getParent ( ) ) ; this . _setEndContainer ( b ) ; this . endOffset = c ; this . startContainer ||
( this . _setStartContainer ( b ) , this . startOffset = c ) ; a ( this ) } , setStartAfter : function ( a ) { this . setStart ( a . getParent ( ) , a . getIndex ( ) + 1 ) } , setStartBefore : function ( a ) { this . setStart ( a . getParent ( ) , a . getIndex ( ) ) } , setEndAfter : function ( a ) { this . setEnd ( a . getParent ( ) , a . getIndex ( ) + 1 ) } , setEndBefore : function ( a ) { this . setEnd ( a . getParent ( ) , a . getIndex ( ) ) } , setStartAt : function ( b , c ) { switch ( c ) { case CKEDITOR . POSITION _AFTER _START : this . setStart ( b , 0 ) ; break ; case CKEDITOR . POSITION _BEFORE _END : b . type == CKEDITOR . NODE _TEXT ? this . setStart ( b ,
b . getLength ( ) ) : this . setStart ( b , b . getChildCount ( ) ) ; break ; case CKEDITOR . POSITION _BEFORE _START : this . setStartBefore ( b ) ; break ; case CKEDITOR . POSITION _AFTER _END : this . setStartAfter ( b ) } a ( this ) } , setEndAt : function ( b , c ) { switch ( c ) { case CKEDITOR . POSITION _AFTER _START : this . setEnd ( b , 0 ) ; break ; case CKEDITOR . POSITION _BEFORE _END : b . type == CKEDITOR . NODE _TEXT ? this . setEnd ( b , b . getLength ( ) ) : this . setEnd ( b , b . getChildCount ( ) ) ; break ; case CKEDITOR . POSITION _BEFORE _START : this . setEndBefore ( b ) ; break ; case CKEDITOR . POSITION _AFTER _END : this . setEndAfter ( b ) } a ( this ) } ,
fixBlock : function ( a , b ) { var c = this . createBookmark ( ) , d = this . document . createElement ( b ) ; this . collapse ( a ) ; this . enlarge ( CKEDITOR . ENLARGE _BLOCK _CONTENTS ) ; this . extractContents ( ) . appendTo ( d ) ; d . trim ( ) ; this . insertNode ( d ) ; var f = d . getBogus ( ) ; f && f . remove ( ) ; d . appendBogus ( ) ; this . moveToBookmark ( c ) ; return d } , splitBlock : function ( a , b ) { var c = new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) , d = new CKEDITOR . dom . elementPath ( this . endContainer , this . root ) , f = c . block , h = d . block , p = null ; if ( ! c . blockLimit . equals ( d . blockLimit ) ) return null ;
"br" != a && ( f || ( f = this . fixBlock ( ! 0 , a ) , h = ( new CKEDITOR . dom . elementPath ( this . endContainer , this . root ) ) . block ) , h || ( h = this . fixBlock ( ! 1 , a ) ) ) ; c = f && this . checkStartOfBlock ( ) ; d = h && this . checkEndOfBlock ( ) ; this . deleteContents ( ) ; f && f . equals ( h ) && ( d ? ( p = new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) , this . moveToPosition ( h , CKEDITOR . POSITION _AFTER _END ) , h = null ) : c ? ( p = new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) , this . moveToPosition ( f , CKEDITOR . POSITION _BEFORE _START ) , f = null ) : ( h = this . splitElement ( f ,
b || ! 1 ) , f . is ( "ul" , "ol" ) || f . appendBogus ( ) ) ) ; return { previousBlock : f , nextBlock : h , wasStartOfBlock : c , wasEndOfBlock : d , elementPath : p } } , splitElement : function ( a , b ) { if ( ! this . collapsed ) return null ; this . setEndAt ( a , CKEDITOR . POSITION _BEFORE _END ) ; var c = this . extractContents ( ! 1 , b || ! 1 ) , d = a . clone ( ! 1 , b || ! 1 ) ; c . appendTo ( d ) ; d . insertAfter ( a ) ; this . moveToPosition ( a , CKEDITOR . POSITION _AFTER _END ) ; return d } , removeEmptyBlocksAtEnd : function ( ) { function a ( d ) { return function ( a ) { return b ( a ) || c ( a ) || a . type == CKEDITOR . NODE _ELEMENT && a . isEmptyInlineRemoveable ( ) ||
fixBlock : function ( a , b ) { var c = this . createBookmark ( ) , d = this . document . createElement ( b ) ; this . collapse ( a ) ; this . enlarge ( CKEDITOR . ENLARGE _BLOCK _CONTENTS ) ; this . extractContents ( ) . appendTo ( d ) ; d . trim ( ) ; this . insertNode ( d ) ; var f = d . getBogus ( ) ; f && f . remove ( ) ; d . appendBogus ( ) ; this . moveToBookmark ( c ) ; return d } , splitBlock : function ( a , b ) { var c = new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) , d = new CKEDITOR . dom . elementPath ( this . endContainer , this . root ) , f = c . block , h = d . block , m = null ; if ( ! c . blockLimit . equals ( d . blockLimit ) ) return null ;
"br" != a && ( f || ( f = this . fixBlock ( ! 0 , a ) , h = ( new CKEDITOR . dom . elementPath ( this . endContainer , this . root ) ) . block ) , h || ( h = this . fixBlock ( ! 1 , a ) ) ) ; c = f && this . checkStartOfBlock ( ) ; d = h && this . checkEndOfBlock ( ) ; this . deleteContents ( ) ; f && f . equals ( h ) && ( d ? ( m = new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) , this . moveToPosition ( h , CKEDITOR . POSITION _AFTER _END ) , h = null ) : c ? ( m = new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) , this . moveToPosition ( f , CKEDITOR . POSITION _BEFORE _START ) , f = null ) : ( h = this . splitElement ( f ,
b || ! 1 ) , f . is ( "ul" , "ol" ) || f . appendBogus ( ) ) ) ; return { previousBlock : f , nextBlock : h , wasStartOfBlock : c , wasEndOfBlock : d , elementPath : m } } , splitElement : function ( a , b ) { if ( ! this . collapsed ) return null ; this . setEndAt ( a , CKEDITOR . POSITION _BEFORE _END ) ; var c = this . extractContents ( ! 1 , b || ! 1 ) , d = a . clone ( ! 1 , b || ! 1 ) ; c . appendTo ( d ) ; d . insertAfter ( a ) ; this . moveToPosition ( a , CKEDITOR . POSITION _AFTER _END ) ; return d } , removeEmptyBlocksAtEnd : function ( ) { function a ( d ) { return function ( a ) { return b ( a ) || c ( a ) || a . type == CKEDITOR . NODE _ELEMENT && a . isEmptyInlineRemoveable ( ) ||
d . is ( "table" ) && a . is ( "caption" ) ? ! 1 : ! 0 } } var b = CKEDITOR . dom . walker . whitespaces ( ) , c = CKEDITOR . dom . walker . bookmark ( ! 1 ) ; return function ( b ) { for ( var c = this . createBookmark ( ) , d = this [ b ? "endPath" : "startPath" ] ( ) , f = d . block || d . blockLimit , h ; f && ! f . equals ( d . root ) && ! f . getFirst ( a ( f ) ) ; ) h = f . getParent ( ) , this [ b ? "setEndAt" : "setStartAt" ] ( f , CKEDITOR . POSITION _AFTER _END ) , f . remove ( 1 ) , f = h ; this . moveToBookmark ( c ) } } ( ) , startPath : function ( ) { return new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) } , endPath : function ( ) { return new CKEDITOR . dom . elementPath ( this . endContainer ,
this . root ) } , checkBoundaryOfElement : function ( a , b ) { var d = b == CKEDITOR . START , f = this . clone ( ) ; f . collapse ( d ) ; f [ d ? "setStartAt" : "setEndAt" ] ( a , d ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _END ) ; f = new CKEDITOR . dom . walker ( f ) ; f . evaluator = c ( d ) ; return f [ d ? "checkBackward" : "checkForward" ] ( ) } , checkStartOfBlock : function ( ) { var a = this . startContainer , c = this . startOffset ; CKEDITOR . env . ie && c && a . type == CKEDITOR . NODE _TEXT && ( a = CKEDITOR . tools . ltrim ( a . substring ( 0 , c ) ) , g . test ( a ) && this . trim ( 0 , 1 ) ) ; this . trim ( ) ; a = new CKEDITOR . dom . elementPath ( this . startContainer ,
this . root ) ; c = this . clone ( ) ; c . collapse ( ! 0 ) ; c . setStartAt ( a . block || a . blockLimit , CKEDITOR . POSITION _AFTER _START ) ; a = new CKEDITOR . dom . walker ( c ) ; a . evaluator = b ( ) ; return a . checkBackward ( ) } , checkEndOfBlock : function ( ) { var a = this . endContainer , c = this . endOffset ; CKEDITOR . env . ie && a . type == CKEDITOR . NODE _TEXT && ( a = CKEDITOR . tools . rtrim ( a . substring ( c ) ) , g . test ( a ) && this . trim ( 1 , 0 ) ) ; this . trim ( ) ; a = new CKEDITOR . dom . elementPath ( this . endContainer , this . root ) ; c = this . clone ( ) ; c . collapse ( ! 1 ) ; c . setEndAt ( a . block || a . blockLimit , CKEDITOR . POSITION _BEFORE _END ) ;
a = new CKEDITOR . dom . walker ( c ) ; a . evaluator = b ( ) ; return a . checkForward ( ) } , getPreviousNode : function ( a , b , c ) { var d = this . clone ( ) ; d . collapse ( 1 ) ; d . setStartAt ( c || this . root , CKEDITOR . POSITION _AFTER _START ) ; c = new CKEDITOR . dom . walker ( d ) ; c . evaluator = a ; c . guard = b ; return c . previous ( ) } , getNextNode : function ( a , b , c ) { var d = this . clone ( ) ; d . collapse ( ) ; d . setEndAt ( c || this . root , CKEDITOR . POSITION _BEFORE _END ) ; c = new CKEDITOR . dom . walker ( d ) ; c . evaluator = a ; c . guard = b ; return c . next ( ) } , checkReadOnly : function ( ) { function a ( b , c ) { for ( ; b ; ) { if ( b . type ==
CKEDITOR . NODE _ELEMENT ) { if ( "false" == b . getAttribute ( "contentEditable" ) && ! b . data ( "cke-editable" ) ) return 0 ; if ( b . is ( "html" ) || "true" == b . getAttribute ( "contentEditable" ) && ( b . contains ( c ) || b . equals ( c ) ) ) break } b = b . getParent ( ) } return 1 } return function ( ) { var b = this . startContainer , c = this . endContainer ; return ! ( a ( b , c ) && a ( c , b ) ) } } ( ) , moveToElementEditablePosition : function ( a , b ) { if ( a . type == CKEDITOR . NODE _ELEMENT && ! a . isEditable ( ! 1 ) ) return this . moveToPosition ( a , b ? CKEDITOR . POSITION _AFTER _END : CKEDITOR . POSITION _BEFORE _START ) ,
! 0 ; for ( var c = 0 ; a ; ) { if ( a . type == CKEDITOR . NODE _TEXT ) { b && this . endContainer && this . checkEndOfBlock ( ) && g . test ( a . getText ( ) ) ? this . moveToPosition ( a , CKEDITOR . POSITION _BEFORE _START ) : this . moveToPosition ( a , b ? CKEDITOR . POSITION _AFTER _END : CKEDITOR . POSITION _BEFORE _START ) ; c = 1 ; break } if ( a . type == CKEDITOR . NODE _ELEMENT ) if ( a . isEditable ( ) ) this . moveToPosition ( a , b ? CKEDITOR . POSITION _BEFORE _END : CKEDITOR . POSITION _AFTER _START ) , c = 1 ; else if ( b && a . is ( "br" ) && this . endContainer && this . checkEndOfBlock ( ) ) this . moveToPosition ( a , CKEDITOR . POSITION _BEFORE _START ) ;
else if ( "false" == a . getAttribute ( "contenteditable" ) && a . is ( CKEDITOR . dtd . $block ) ) return this . setStartBefore ( a ) , this . setEndAfter ( a ) , ! 0 ; var d = a , f = c , h = void 0 ; d . type == CKEDITOR . NODE _ELEMENT && d . isEditable ( ! 1 ) && ( h = d [ b ? "getLast" : "getFirst" ] ( r ) ) ; f || h || ( h = d [ b ? "getPrevious" : "getNext" ] ( r ) ) ; a = h } return ! ! c } , moveToClosestEditablePosition : function ( a , b ) { var c , d = 0 , f , h , p = [ CKEDITOR . POSITION _AFTER _END , CKEDITOR . POSITION _BEFORE _START ] ; a ? ( c = new CKEDITOR . dom . range ( this . root ) , c . moveToPosition ( a , p [ b ? 0 : 1 ] ) ) : c = this . clone ( ) ; if ( a &&
! a . is ( CKEDITOR . dtd . $block ) ) d = 1 ; else if ( f = c [ b ? "getNextEditableNode" : "getPreviousEditableNode" ] ( ) ) d = 1 , ( h = f . type == CKEDITOR . NODE _ELEMENT ) && f . is ( CKEDITOR . dtd . $block ) && "false" == f . getAttribute ( "contenteditable" ) ? ( c . setStartAt ( f , CKEDITOR . POSITION _BEFORE _START ) , c . setEndAt ( f , CKEDITOR . POSITION _AFTER _END ) ) : ! CKEDITOR . env . needsBrFiller && h && f . is ( CKEDITOR . dom . walker . validEmptyBlockContainers ) ? ( c . setEnd ( f , 0 ) , c . collapse ( ) ) : c . moveToPosition ( f , p [ b ? 1 : 0 ] ) ; d && this . moveToRange ( c ) ; return ! ! d } , moveToElementEditStart : function ( a ) { return this . moveToElementEditablePosition ( a ) } ,
else if ( "false" == a . getAttribute ( "contenteditable" ) && a . is ( CKEDITOR . dtd . $block ) ) return this . setStartBefore ( a ) , this . setEndAfter ( a ) , ! 0 ; var d = a , f = c , h = void 0 ; d . type == CKEDITOR . NODE _ELEMENT && d . isEditable ( ! 1 ) && ( h = d [ b ? "getLast" : "getFirst" ] ( r ) ) ; f || h || ( h = d [ b ? "getPrevious" : "getNext" ] ( r ) ) ; a = h } return ! ! c } , moveToClosestEditablePosition : function ( a , b ) { var c , d = 0 , f , h , m = [ CKEDITOR . POSITION _AFTER _END , CKEDITOR . POSITION _BEFORE _START ] ; a ? ( c = new CKEDITOR . dom . range ( this . root ) , c . moveToPosition ( a , m [ b ? 0 : 1 ] ) ) : c = this . clone ( ) ; if ( a &&
! a . is ( CKEDITOR . dtd . $block ) ) d = 1 ; else if ( f = c [ b ? "getNextEditableNode" : "getPreviousEditableNode" ] ( ) ) d = 1 , ( h = f . type == CKEDITOR . NODE _ELEMENT ) && f . is ( CKEDITOR . dtd . $block ) && "false" == f . getAttribute ( "contenteditable" ) ? ( c . setStartAt ( f , CKEDITOR . POSITION _BEFORE _START ) , c . setEndAt ( f , CKEDITOR . POSITION _AFTER _END ) ) : ! CKEDITOR . env . needsBrFiller && h && f . is ( CKEDITOR . dom . walker . validEmptyBlockContainers ) ? ( c . setEnd ( f , 0 ) , c . collapse ( ) ) : c . moveToPosition ( f , m [ b ? 1 : 0 ] ) ; d && this . moveToRange ( c ) ; return ! ! d } , moveToElementEditStart : function ( a ) { return this . moveToElementEditablePosition ( a ) } ,
moveToElementEditEnd : function ( a ) { return this . moveToElementEditablePosition ( a , ! 0 ) } , getEnclosedNode : function ( ) { var a = this . clone ( ) ; a . optimize ( ) ; if ( a . startContainer . type != CKEDITOR . NODE _ELEMENT || a . endContainer . type != CKEDITOR . NODE _ELEMENT ) return null ; var a = new CKEDITOR . dom . walker ( a ) , b = CKEDITOR . dom . walker . bookmark ( ! 1 , ! 0 ) , c = CKEDITOR . dom . walker . whitespaces ( ! 0 ) ; a . evaluator = function ( a ) { return c ( a ) && b ( a ) } ; var d = a . next ( ) ; a . reset ( ) ; return d && d . equals ( a . previous ( ) ) ? d : null } , getTouchedStartNode : function ( ) { var a = this . startContainer ;
return this . collapsed || a . type != CKEDITOR . NODE _ELEMENT ? a : a . getChild ( this . startOffset ) || a } , getTouchedEndNode : function ( ) { var a = this . endContainer ; return this . collapsed || a . type != CKEDITOR . NODE _ELEMENT ? a : a . getChild ( this . endOffset - 1 ) || a } , getNextEditableNode : f ( ) , getPreviousEditableNode : f ( 1 ) , _getTableElement : function ( a ) { a = a || { td : 1 , th : 1 , tr : 1 , tbody : 1 , thead : 1 , tfoot : 1 , table : 1 } ; var b = this . startContainer , c = this . endContainer , d = b . getAscendant ( "table" , ! 0 ) , f = c . getAscendant ( "table" , ! 0 ) ; return CKEDITOR . env . safari && d && c . equals ( this . root ) ?
b . getAscendant ( a , ! 0 ) : this . getEnclosedNode ( ) ? this . getEnclosedNode ( ) . getAscendant ( a , ! 0 ) : d && f && ( d . equals ( f ) || d . contains ( f ) || f . contains ( d ) ) ? b . getAscendant ( a , ! 0 ) : null } , scrollIntoView : function ( ) { var a = new CKEDITOR . dom . element . createFromHtml ( "\x3cspan\x3e\x26nbsp;\x3c/span\x3e" , this . document ) , b , c , d , f = this . clone ( ) ; f . optimize ( ) ; ( d = f . startContainer . type == CKEDITOR . NODE _TEXT ) ? ( c = f . startContainer . getText ( ) , b = f . startContainer . split ( f . startOffset ) , a . insertAfter ( f . startContainer ) ) : f . insertNode ( a ) ; a . scrollIntoView ( ) ;
d && ( f . startContainer . setText ( c ) , b . remove ( ) ) ; a . remove ( ) } , _setStartContainer : function ( a ) { this . startContainer = a } , _setEndContainer : function ( a ) { this . endContainer = a } , _find : function ( a , b ) { var c = this . getCommonAncestor ( ) , d = this . getBoundaryNodes ( ) , f = [ ] , h , p , g , k ; if ( c && c . find ) for ( p = c . find ( a ) , h = 0 ; h < p . count ( ) ; h ++ ) if ( c = p . getItem ( h ) , b || ! c . isReadOnly ( ) ) g = c . getPosition ( d . startNode ) & CKEDITOR . POSITION _FOLLOWING || d . startNode . equals ( c ) , k = c . getPosition ( d . endNode ) & CKEDITOR . POSITION _PRECEDING + CKEDITOR . POSITION _IS _CONTAINED ||
d . endNode . equals ( c ) , g && k && f . push ( c ) ; return f } } ; CKEDITOR . dom . range . mergeRanges = function ( a ) { return CKEDITOR . tools . array . reduce ( a , function ( a , b ) { var c = a [ a . length - 1 ] , d = ! 1 ; b = b . clone ( ) ; b . enlarge ( CKEDITOR . ENLARGE _ELEMENT ) ; if ( c ) { var e = new CKEDITOR . dom . range ( b . root ) , d = new CKEDITOR . dom . walker ( e ) , f = CKEDITOR . dom . walker . whitespaces ( ) ; e . setStart ( c . endContainer , c . endOffset ) ; e . setEnd ( b . startContainer , b . startOffset ) ; for ( e = d . next ( ) ; f ( e ) || b . endContainer . equals ( e ) ; ) e = d . next ( ) ; d = ! e } d ? c . setEnd ( b . endContainer , b . endOffset ) :
a . push ( b ) ; return a } , [ ] ) } } ) ( ) ; CKEDITOR . POSITION _AFTER _START = 1 ; CKEDITOR . POSITION _BEFORE _END = 2 ; CKEDITOR . POSITION _BEFORE _START = 3 ; CKEDITOR . POSITION _AFTER _END = 4 ; CKEDITOR . ENLARGE _ELEMENT = 1 ; CKEDITOR . ENLARGE _BLOCK _CONTENTS = 2 ; CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS = 3 ; CKEDITOR . ENLARGE _INLINE = 4 ; CKEDITOR . START = 1 ; CKEDITOR . END = 2 ; CKEDITOR . SHRINK _ELEMENT = 1 ; CKEDITOR . SHRINK _TEXT = 2 ; "use strict" ;
d && ( f . startContainer . setText ( c ) , b . remove ( ) ) ; a . remove ( ) } , getClientRects : function ( ) { function a ( b , c ) { var d = CKEDITOR . tools . array . map ( b , function ( a ) { return a } ) , e = new CKEDITOR . dom . range ( c . root ) , f , h , l ; c . startContainer instanceof CKEDITOR . dom . element && ( h = 0 === c . startOffset && c . startContainer . hasAttribute ( "data-widget" ) ) ; c . endContainer instanceof CKEDITOR . dom . element && ( l = ( l = c . endOffset === ( c . endContainer . getChildCount ? c . endContainer . getChildCount ( ) : c . endContainer . length ) ) && c . endContainer . hasAttribute ( "data-widget" ) ) ;
h && e . setStart ( c . startContainer . getParent ( ) , c . startContainer . getIndex ( ) ) ; l && e . setEnd ( c . endContainer . getParent ( ) , c . endContainer . getIndex ( ) + 1 ) ; if ( h || l ) c = e ; e = c . cloneContents ( ) ; e = CKEDITOR . dom . document . prototype . find . call ( e , "[data-cke-widget-id]" ) . toArray ( ) ; if ( e = CKEDITOR . tools . array . map ( e , function ( a ) { var b = c . root . editor ; a = a . getAttribute ( "data-cke-widget-id" ) ; return b . widgets . instances [ a ] . element } ) ) return e = CKEDITOR . tools . array . map ( e , function ( a ) { var b ; b = a . getParent ( ) . hasClass ( "cke_widget_wrapper" ) ? a . getParent ( ) :
a ; f = this . root . getDocument ( ) . $ . createRange ( ) ; f . setStart ( b . getParent ( ) . $ , b . getIndex ( ) ) ; f . setEnd ( b . getParent ( ) . $ , b . getIndex ( ) + 1 ) ; b = f . getClientRects ( ) ; b . widgetRect = a . getClientRect ( ) ; return b } , c ) , CKEDITOR . tools . array . forEach ( e , function ( a ) { function b ( e ) { CKEDITOR . tools . array . forEach ( d , function ( b , f ) { var l = CKEDITOR . tools . objectCompare ( a [ e ] , b ) ; l || ( l = CKEDITOR . tools . objectCompare ( a . widgetRect , b ) ) ; l && ( Array . prototype . splice . call ( d , f , a . length - e , a . widgetRect ) , c = ! 0 ) } ) ; c || ( e < d . length - 1 ? b ( e + 1 ) : d . push ( a . widgetRect ) ) }
var c ; b ( 0 ) } ) , d } function b ( a , c , e ) { var f ; c . collapsed ? e . startContainer instanceof CKEDITOR . dom . element ? ( a = e . checkStartOfBlock ( ) , f = new CKEDITOR . dom . text ( " " ) , a ? e . startContainer . append ( f , ! 0 ) : 0 === e . startOffset ? f . insertBefore ( e . startContainer . getFirst ( ) ) : ( e = e . startContainer . getChildren ( ) . getItem ( e . startOffset - 1 ) , f . insertAfter ( e ) ) , c . setStart ( f . $ , 0 ) , c . setEnd ( f . $ , 0 ) , a = c . getClientRects ( ) , f . remove ( ) ) : e . startContainer instanceof CKEDITOR . dom . text && ( "" === e . startContainer . getText ( ) ? ( e . startContainer . setText ( " " ) ,
a = c . getClientRects ( ) , e . startContainer . setText ( "" ) ) : a = [ d ( e . createBookmark ( ) ) ] ) : a = [ d ( e . createBookmark ( ) ) ] ; return a } function c ( a , b , d ) { a = CKEDITOR . tools . extend ( { } , a ) ; b && ( a = CKEDITOR . tools . getAbsoluteRectPosition ( d . document . getWindow ( ) , a ) ) ; ! a . width && ( a . width = a . right - a . left ) ; ! a . height && ( a . height = a . bottom - a . top ) ; return a } function d ( a ) { var b = a . startNode ; a = a . endNode ; var c ; b . setText ( " " ) ; b . removeStyle ( "display" ) ; a ? ( a . setText ( " " ) , a . removeStyle ( "display" ) , c = [ b . getClientRect ( ) , a . getClientRect ( ) ] , a . remove ( ) ) : c =
[ b . getClientRect ( ) , b . getClientRect ( ) ] ; b . remove ( ) ; return { right : Math . max ( c [ 0 ] . right , c [ 1 ] . right ) , bottom : Math . max ( c [ 0 ] . bottom , c [ 1 ] . bottom ) , left : Math . min ( c [ 0 ] . left , c [ 1 ] . left ) , top : Math . min ( c [ 0 ] . top , c [ 1 ] . top ) , width : Math . abs ( c [ 0 ] . left - c [ 1 ] . left ) , height : Math . max ( c [ 0 ] . bottom , c [ 1 ] . bottom ) - Math . min ( c [ 0 ] . top , c [ 1 ] . top ) } } return void 0 !== this . document . getSelection ? function ( d ) { var f = this . root . getDocument ( ) . $ . createRange ( ) , m ; f . setStart ( this . startContainer . $ , this . startOffset ) ; f . setEnd ( this . endContainer . $ , this . endOffset ) ;
m = f . getClientRects ( ) ; m = a ( m , this ) ; m . length || ( m = b ( m , f , this ) ) ; return CKEDITOR . tools . array . map ( m , function ( a ) { return c ( a , d , this ) } , this ) } : function ( a ) { return [ c ( d ( this . createBookmark ( ) ) , a , this ) ] } } ( ) , _setStartContainer : function ( a ) { this . startContainer = a } , _setEndContainer : function ( a ) { this . endContainer = a } , _find : function ( a , b ) { var c = this . getCommonAncestor ( ) , d = this . getBoundaryNodes ( ) , f = [ ] , h , m , g , k ; if ( c && c . find ) for ( m = c . find ( a ) , h = 0 ; h < m . count ( ) ; h ++ ) if ( c = m . getItem ( h ) , b || ! c . isReadOnly ( ) ) g = c . getPosition ( d . startNode ) & CKEDITOR . POSITION _FOLLOWING ||
d . startNode . equals ( c ) , k = c . getPosition ( d . endNode ) & CKEDITOR . POSITION _PRECEDING + CKEDITOR . POSITION _IS _CONTAINED || d . endNode . equals ( c ) , g && k && f . push ( c ) ; return f } } ; CKEDITOR . dom . range . mergeRanges = function ( a ) { return CKEDITOR . tools . array . reduce ( a , function ( a , b ) { var c = a [ a . length - 1 ] , d = ! 1 ; b = b . clone ( ) ; b . enlarge ( CKEDITOR . ENLARGE _ELEMENT ) ; if ( c ) { var e = new CKEDITOR . dom . range ( b . root ) , d = new CKEDITOR . dom . walker ( e ) , f = CKEDITOR . dom . walker . whitespaces ( ) ; e . setStart ( c . endContainer , c . endOffset ) ; e . setEnd ( b . startContainer , b . startOffset ) ;
for ( e = d . next ( ) ; f ( e ) || b . endContainer . equals ( e ) ; ) e = d . next ( ) ; d = ! e } d ? c . setEnd ( b . endContainer , b . endOffset ) : a . push ( b ) ; return a } , [ ] ) } } ) ( ) ; CKEDITOR . POSITION _AFTER _START = 1 ; CKEDITOR . POSITION _BEFORE _END = 2 ; CKEDITOR . POSITION _BEFORE _START = 3 ; CKEDITOR . POSITION _AFTER _END = 4 ; CKEDITOR . ENLARGE _ELEMENT = 1 ; CKEDITOR . ENLARGE _BLOCK _CONTENTS = 2 ; CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS = 3 ; CKEDITOR . ENLARGE _INLINE = 4 ; CKEDITOR . START = 1 ; CKEDITOR . END = 2 ; CKEDITOR . SHRINK _ELEMENT = 1 ; CKEDITOR . SHRINK _TEXT = 2 ; "use strict" ;
( function ( ) { function a ( a ) { 1 > arguments . length || ( this . range = a , this . forceBrBreak = 0 , this . enlargeBr = 1 , this . enforceRealBlocks = 0 , this . _ || ( this . _ = { } ) ) } function d ( a ) { var b = [ ] ; a . forEach ( function ( a ) { if ( "true" == a . getAttribute ( "contenteditable" ) ) return b . push ( a ) , ! 1 } , CKEDITOR . NODE _ELEMENT , ! 0 ) ; return b } function b ( a , c , f , h ) { a : { null == h && ( h = d ( f ) ) ; for ( var g ; g = h . shift ( ) ; ) if ( g . getDtd ( ) . p ) { h = { element : g , remaining : h } ; break a } h = null } if ( ! h ) return 0 ; if ( ( g = CKEDITOR . filter . instances [ h . element . data ( "cke-filter" ) ] ) && ! g . check ( c ) ) return b ( a ,
c , f , h . remaining ) ; c = new CKEDITOR . dom . range ( h . element ) ; c . selectNodeContents ( h . element ) ; c = c . createIterator ( ) ; c . enlargeBr = a . enlargeBr ; c . enforceRealBlocks = a . enforceRealBlocks ; c . activeFilter = c . filter = g ; a . _ . nestedEditable = { element : h . element , container : f , remaining : h . remaining , iterator : c } ; return 1 } function c ( a , b , c ) { if ( ! b ) return ! 1 ; a = a . clone ( ) ; a . collapse ( ! c ) ; return a . checkBoundaryOfElement ( b , c ? CKEDITOR . START : CKEDITOR . END ) } var f = /^[\r\n\t ]+$/ , h = CKEDITOR . dom . walker . bookmark ( ! 1 , ! 0 ) , k = CKEDITOR . dom . walker . whitespaces ( ! 0 ) ,
g = function ( a ) { return h ( a ) && k ( a ) } , m = { dd : 1 , dt : 1 , li : 1 } ; a . prototype = { getNextParagraph : function ( a ) { var d , k , y , A , D ; a = a || "p" ; if ( this . _ . nestedEditable ) { if ( d = this . _ . nestedEditable . iterator . getNextParagraph ( a ) ) return this . activeFilter = this . _ . nestedEditable . iterator . activeFilter , d ; this . activeFilter = this . filter ; if ( b ( this , a , this . _ . nestedEditable . container , this . _ . nestedEditable . remaining ) ) return this . activeFilter = this . _ . nestedEditable . iterator . activeFilter , this . _ . nestedEditable . iterator . getNextParagraph ( a ) ; this . _ . nestedEditable =
null } if ( ! this . range . root . getDtd ( ) [ a ] ) return null ; if ( ! this . _ . started ) { var x = this . range . clone ( ) ; k = x . startPath ( ) ; var p = x . endPath ( ) , J = ! x . collapsed && c ( x , k . block ) , u = ! x . collapsed && c ( x , p . block , 1 ) ; x . shrink ( CKEDITOR . SHRINK _ELEMENT , ! 0 ) ; J && x . setStartAt ( k . block , CKEDITOR . POSITION _BEFORE _END ) ; u && x . setEndAt ( p . block , CKEDITOR . POSITION _AFTER _START ) ; k = x . endContainer . hasAscendant ( "pre" , ! 0 ) || x . startContainer . hasAscendant ( "pre" , ! 0 ) ; x . enlarge ( this . forceBrBreak && ! k || ! this . enlargeBr ? CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS : CKEDITOR . ENLARGE _BLOCK _CONTENTS ) ;
x . collapsed || ( k = new CKEDITOR . dom . walker ( x . clone ( ) ) , p = CKEDITOR . dom . walker . bookmark ( ! 0 , ! 0 ) , k . evaluator = p , this . _ . nextNode = k . next ( ) , k = new CKEDITOR . dom . walker ( x . clone ( ) ) , k . evaluator = p , k = k . previous ( ) , this . _ . lastNode = k . getNextSourceNode ( ! 0 , null , x . root ) , this . _ . lastNode && this . _ . lastNode . type == CKEDITOR . NODE _TEXT && ! CKEDITOR . tools . trim ( this . _ . lastNode . getText ( ) ) && this . _ . lastNode . getParent ( ) . isBlockBoundary ( ) && ( p = this . range . clone ( ) , p . moveToPosition ( this . _ . lastNode , CKEDITOR . POSITION _AFTER _END ) , p . checkEndOfBlock ( ) &&
( p = new CKEDITOR . dom . elementPath ( p . endContainer , p . root ) , this . _ . lastNode = ( p . block || p . blockLimit ) . getNextSourceNode ( ! 0 ) ) ) , this . _ . lastNode && x . root . contains ( this . _ . lastNode ) || ( this . _ . lastNode = this . _ . docEndMarker = x . document . createText ( "" ) , this . _ . lastNode . insertAfter ( k ) ) , x = null ) ; this . _ . started = 1 ; k = x } p = this . _ . nextNode ; x = this . _ . lastNode ; for ( this . _ . nextNode = null ; p ; ) { var J = 0 , u = p . hasAscendant ( "pre" ) , K = p . type != CKEDITOR . NODE _ELEMENT , l = 0 ; if ( K ) p . type == CKEDITOR . NODE _TEXT && f . test ( p . getText ( ) ) && ( K = 0 ) ; else { var q = p . getName ( ) ;
if ( CKEDITOR . dtd . $block [ q ] && "false" == p . getAttribute ( "contenteditable" ) ) { d = p ; b ( this , a , d ) ; break } else if ( p . isBlockBoundary ( this . forceBrBreak && ! u && { br : 1 } ) ) { if ( "br" == q ) K = 1 ; else if ( ! k && ! p . getChildCount ( ) && "hr" != q ) { d = p ; y = p . equals ( x ) ; break } k && ( k . setEndAt ( p , CKEDITOR . POSITION _BEFORE _START ) , "br" != q && ( this . _ . nextNode = p ) ) ; J = 1 } else { if ( p . getFirst ( ) ) { k || ( k = this . range . clone ( ) , k . setStartAt ( p , CKEDITOR . POSITION _BEFORE _START ) ) ; p = p . getFirst ( ) ; continue } K = 1 } } K && ! k && ( k = this . range . clone ( ) , k . setStartAt ( p , CKEDITOR . POSITION _BEFORE _START ) ) ;
y = ( ! J || K ) && p . equals ( x ) ; if ( k && ! J ) for ( ; ! p . getNext ( g ) && ! y ; ) { q = p . getParent ( ) ; if ( q . isBlockBoundary ( this . forceBrBreak && ! u && { br : 1 } ) ) { J = 1 ; K = 0 ; y || q . equals ( x ) ; k . setEndAt ( q , CKEDITOR . POSITION _BEFORE _END ) ; break } p = q ; K = 1 ; y = p . equals ( x ) ; l = 1 } K && k . setEndAt ( p , CKEDITOR . POSITION _AFTER _END ) ; p = this . _getNextSourceNode ( p , l , x ) ; if ( ( y = ! p ) || J && k ) break } if ( ! d ) { if ( ! k ) return this . _ . docEndMarker && this . _ . docEndMarker . remove ( ) , this . _ . nextNode = null ; d = new CKEDITOR . dom . elementPath ( k . startContainer , k . root ) ; p = d . blockLimit ; J = { div : 1 , th : 1 , td : 1 } ;
d = d . block ; ! d && p && ! this . enforceRealBlocks && J [ p . getName ( ) ] && k . checkStartOfBlock ( ) && k . checkEndOfBlock ( ) && ! p . equals ( k . root ) ? d = p : ! d || this . enforceRealBlocks && d . is ( m ) ? ( d = this . range . document . createElement ( a ) , k . extractContents ( ) . appendTo ( d ) , d . trim ( ) , k . insertNode ( d ) , A = D = ! 0 ) : "li" != d . getName ( ) ? k . checkStartOfBlock ( ) && k . checkEndOfBlock ( ) || ( d = d . clone ( ! 1 ) , k . extractContents ( ) . appendTo ( d ) , d . trim ( ) , D = k . splitBlock ( ) , A = ! D . wasStartOfBlock , D = ! D . wasEndOfBlock , k . insertNode ( d ) ) : y || ( this . _ . nextNode = d . equals ( x ) ? null : this . _getNextSourceNode ( k . getBoundaryNodes ( ) . endNode ,
1 , x ) ) } A && ( A = d . getPrevious ( ) ) && A . type == CKEDITOR . NODE _ELEMENT && ( "br" == A . getName ( ) ? A . remove ( ) : A . getLast ( ) && "br" == A . getLast ( ) . $ . nodeName . toLowerCase ( ) && A . getLast ( ) . remove ( ) ) ; D && ( A = d . getLast ( ) ) && A . type == CKEDITOR . NODE _ELEMENT && "br" == A . getName ( ) && ( ! CKEDITOR . env . needsBrFiller || A . getPrevious ( h ) || A . getNext ( h ) ) && A . remove ( ) ; this . _ . nextNode || ( this . _ . nextNode = y || d . equals ( x ) || ! x ? null : this . _getNextSourceNode ( d , 1 , x ) ) ; return d } , _getNextSourceNode : function ( a , b , c ) { function d ( a ) { return ! ( a . equals ( c ) || a . equals ( f ) ) } var f =
g = function ( a ) { return h ( a ) && k ( a ) } , n = { dd : 1 , dt : 1 , li : 1 } ; a . prototype = { getNextParagraph : function ( a ) { var d , k , v , A , D ; a = a || "p" ; if ( this . _ . nestedEditable ) { if ( d = this . _ . nestedEditable . iterator . getNextParagraph ( a ) ) return this . activeFilter = this . _ . nestedEditable . iterator . activeFilter , d ; this . activeFilter = this . filter ; if ( b ( this , a , this . _ . nestedEditable . container , this . _ . nestedEditable . remaining ) ) return this . activeFilter = this . _ . nestedEditable . iterator . activeFilter , this . _ . nestedEditable . iterator . getNextParagraph ( a ) ; this . _ . nestedEditable =
null } if ( ! this . range . root . getDtd ( ) [ a ] ) return null ; if ( ! this . _ . started ) { var x = this . range . clone ( ) ; k = x . startPath ( ) ; var m = x . endPath ( ) , J = ! x . collapsed && c ( x , k . block ) , u = ! x . collapsed && c ( x , m . block , 1 ) ; x . shrink ( CKEDITOR . SHRINK _ELEMENT , ! 0 ) ; J && x . setStartAt ( k . block , CKEDITOR . POSITION _BEFORE _END ) ; u && x . setEndAt ( m . block , CKEDITOR . POSITION _AFTER _START ) ; k = x . endContainer . hasAscendant ( "pre" , ! 0 ) || x . startContainer . hasAscendant ( "pre" , ! 0 ) ; x . enlarge ( this . forceBrBreak && ! k || ! this . enlargeBr ? CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS : CKEDITOR . ENLARGE _BLOCK _CONTENTS ) ;
x . collapsed || ( k = new CKEDITOR . dom . walker ( x . clone ( ) ) , m = CKEDITOR . dom . walker . bookmark ( ! 0 , ! 0 ) , k . evaluator = m , this . _ . nextNode = k . next ( ) , k = new CKEDITOR . dom . walker ( x . clone ( ) ) , k . evaluator = m , k = k . previous ( ) , this . _ . lastNode = k . getNextSourceNode ( ! 0 , null , x . root ) , this . _ . lastNode && this . _ . lastNode . type == CKEDITOR . NODE _TEXT && ! CKEDITOR . tools . trim ( this . _ . lastNode . getText ( ) ) && this . _ . lastNode . getParent ( ) . isBlockBoundary ( ) && ( m = this . range . clone ( ) , m . moveToPosition ( this . _ . lastNode , CKEDITOR . POSITION _AFTER _END ) , m . checkEndOfBlock ( ) &&
( m = new CKEDITOR . dom . elementPath ( m . endContainer , m . root ) , this . _ . lastNode = ( m . block || m . blockLimit ) . getNextSourceNode ( ! 0 ) ) ) , this . _ . lastNode && x . root . contains ( this . _ . lastNode ) || ( this . _ . lastNode = this . _ . docEndMarker = x . document . createText ( "" ) , this . _ . lastNode . insertAfter ( k ) ) , x = null ) ; this . _ . started = 1 ; k = x } m = this . _ . nextNode ; x = this . _ . lastNode ; for ( this . _ . nextNode = null ; m ; ) { var J = 0 , u = m . hasAscendant ( "pre" ) , K = m . type != CKEDITOR . NODE _ELEMENT , l = 0 ; if ( K ) m . type == CKEDITOR . NODE _TEXT && f . test ( m . getText ( ) ) && ( K = 0 ) ; else { var t = m . getName ( ) ;
if ( CKEDITOR . dtd . $block [ t ] && "false" == m . getAttribute ( "contenteditable" ) ) { d = m ; b ( this , a , d ) ; break } else if ( m . isBlockBoundary ( this . forceBrBreak && ! u && { br : 1 } ) ) { if ( "br" == t ) K = 1 ; else if ( ! k && ! m . getChildCount ( ) && "hr" != t ) { d = m ; v = m . equals ( x ) ; break } k && ( k . setEndAt ( m , CKEDITOR . POSITION _BEFORE _START ) , "br" != t && ( this . _ . nextNode = m ) ) ; J = 1 } else { if ( m . getFirst ( ) ) { k || ( k = this . range . clone ( ) , k . setStartAt ( m , CKEDITOR . POSITION _BEFORE _START ) ) ; m = m . getFirst ( ) ; continue } K = 1 } } K && ! k && ( k = this . range . clone ( ) , k . setStartAt ( m , CKEDITOR . POSITION _BEFORE _START ) ) ;
v = ( ! J || K ) && m . equals ( x ) ; if ( k && ! J ) for ( ; ! m . getNext ( g ) && ! v ; ) { t = m . getParent ( ) ; if ( t . isBlockBoundary ( this . forceBrBreak && ! u && { br : 1 } ) ) { J = 1 ; K = 0 ; v || t . equals ( x ) ; k . setEndAt ( t , CKEDITOR . POSITION _BEFORE _END ) ; break } m = t ; K = 1 ; v = m . equals ( x ) ; l = 1 } K && k . setEndAt ( m , CKEDITOR . POSITION _AFTER _END ) ; m = this . _getNextSourceNode ( m , l , x ) ; if ( ( v = ! m ) || J && k ) break } if ( ! d ) { if ( ! k ) return this . _ . docEndMarker && this . _ . docEndMarker . remove ( ) , this . _ . nextNode = null ; d = new CKEDITOR . dom . elementPath ( k . startContainer , k . root ) ; m = d . blockLimit ; J = { div : 1 , th : 1 , td : 1 } ;
d = d . block ; ! d && m && ! this . enforceRealBlocks && J [ m . getName ( ) ] && k . checkStartOfBlock ( ) && k . checkEndOfBlock ( ) && ! m . equals ( k . root ) ? d = m : ! d || this . enforceRealBlocks && d . is ( n ) ? ( d = this . range . document . createElement ( a ) , k . extractContents ( ) . appendTo ( d ) , d . trim ( ) , k . insertNode ( d ) , A = D = ! 0 ) : "li" != d . getName ( ) ? k . checkStartOfBlock ( ) && k . checkEndOfBlock ( ) || ( d = d . clone ( ! 1 ) , k . extractContents ( ) . appendTo ( d ) , d . trim ( ) , D = k . splitBlock ( ) , A = ! D . wasStartOfBlock , D = ! D . wasEndOfBlock , k . insertNode ( d ) ) : v || ( this . _ . nextNode = d . equals ( x ) ? null : this . _getNextSourceNode ( k . getBoundaryNodes ( ) . endNode ,
1 , x ) ) } A && ( A = d . getPrevious ( ) ) && A . type == CKEDITOR . NODE _ELEMENT && ( "br" == A . getName ( ) ? A . remove ( ) : A . getLast ( ) && "br" == A . getLast ( ) . $ . nodeName . toLowerCase ( ) && A . getLast ( ) . remove ( ) ) ; D && ( A = d . getLast ( ) ) && A . type == CKEDITOR . NODE _ELEMENT && "br" == A . getName ( ) && ( ! CKEDITOR . env . needsBrFiller || A . getPrevious ( h ) || A . getNext ( h ) ) && A . remove ( ) ; this . _ . nextNode || ( this . _ . nextNode = v || d . equals ( x ) || ! x ? null : this . _getNextSourceNode ( d , 1 , x ) ) ; return d } , _getNextSourceNode : function ( a , b , c ) { function d ( a ) { return ! ( a . equals ( c ) || a . equals ( f ) ) } var f =
this . range . root ; for ( a = a . getNextSourceNode ( b , null , d ) ; ! h ( a ) ; ) a = a . getNextSourceNode ( b , null , d ) ; return a } } ; CKEDITOR . dom . range . prototype . createIterator = function ( ) { return new a ( this ) } } ) ( ) ;
CKEDITOR . command = function ( a , d ) { this . uiItems = [ ] ; this . exec = function ( b ) { if ( this . state == CKEDITOR . TRISTATE _DISABLED || ! this . checkAllowed ( ) ) return ! 1 ; this . editorFocus && a . focus ( ) ; return ! 1 === this . fire ( "exec" ) ? ! 0 : ! 1 !== d . exec . call ( this , a , b ) } ; this . refresh = function ( a , b ) { if ( ! this . readOnly && a . readOnly ) return ! 0 ; if ( this . context && ! b . isContextFor ( this . context ) || ! this . checkAllowed ( ! 0 ) ) return this . disable ( ) , ! 0 ; this . startDisabled || this . enable ( ) ; this . modes && ! this . modes [ a . mode ] && this . disable ( ) ; return ! 1 === this . fire ( "refresh" ,
{ editor : a , path : b } ) ? ! 0 : d . refresh && ! 1 !== d . refresh . apply ( this , arguments ) } ; var b ; this . checkAllowed = function ( c ) { return c || "boolean" != typeof b ? b = a . activeFilter . checkFeature ( this ) : b } ; CKEDITOR . tools . extend ( this , d , { modes : { wysiwyg : 1 } , editorFocus : 1 , contextSensitive : ! ! d . context , state : CKEDITOR . TRISTATE _DISABLED } ) ; CKEDITOR . event . call ( this ) } ;
CKEDITOR . command . prototype = { enable : function ( ) { this . state == CKEDITOR . TRISTATE _DISABLED && this . checkAllowed ( ) && this . setState ( this . preserveState && "undefined" != typeof this . previousState ? this . previousState : CKEDITOR . TRISTATE _OFF ) } , disable : function ( ) { this . setState ( CKEDITOR . TRISTATE _DISABLED ) } , setState : function ( a ) { if ( this . state == a || a != CKEDITOR . TRISTATE _DISABLED && ! this . checkAllowed ( ) ) return ! 1 ; this . previousState = this . state ; this . state = a ; this . fire ( "state" ) ; return ! 0 } , toggleState : function ( ) { this . state == CKEDITOR . TRISTATE _OFF ?
this . setState ( CKEDITOR . TRISTATE _ON ) : this . state == CKEDITOR . TRISTATE _ON && this . setState ( CKEDITOR . TRISTATE _OFF ) } } ; CKEDITOR . event . implementOn ( CKEDITOR . command . prototype ) ; CKEDITOR . ENTER _P = 1 ; CKEDITOR . ENTER _BR = 2 ; CKEDITOR . ENTER _DIV = 3 ;
CKEDITOR . config = { customConfig : "config.js" , autoUpdateElement : ! 0 , language : "" , defaultLanguage : "en" , contentsLangDirection : "" , enterMode : CKEDITOR . ENTER _P , forceEnterMode : ! 1 , shiftEnterMode : CKEDITOR . ENTER _BR , docType : "\x3c!DOCTYPE html\x3e" , bodyId : "" , bodyClass : "" , fullPage : ! 1 , height : 200 , contentsCss : CKEDITOR . getUrl ( "contents.css" ) , extraPlugins : "" , removePlugins : "" , protectedSource : [ ] , tabIndex : 0 , width : "" , baseFloatZIndex : 1E4 , blockedKeystrokes : [ CKEDITOR . CTRL + 66 , CKEDITOR . CTRL + 73 , CKEDITOR . CTRL + 85 ] } ;
( function ( ) { function a ( a , b , c , d , f ) { var e , v ; a = [ ] ; for ( e in b ) { v = b [ e ] ; v = "boolean" == typeof v ? { } : "function" == typeof v ? { match : v } : E ( v ) ; "$" != e . charAt ( 0 ) && ( v . elements = e ) ; c && ( v . featureName = c . toLowerCase ( ) ) ; var l = v ; l . elements = k ( l . elements , /\s+/ ) || null ; l . propertiesOnly = l . propertiesOnly || ! 0 === l . elements ; var n = /\s*,\s*/ , p = void 0 ; for ( p in P ) { l [ p ] = k ( l [ p ] , n ) || null ; var h = l , q = O [ p ] , t = k ( l [ O [ p ] ] , n ) , w = l [ p ] , B = [ ] , g = ! 0 , H = void 0 ; t ? g = ! 1 : t = { } ; for ( H in w ) "!" == H . charAt ( 0 ) && ( H = H . slice ( 1 ) , B . push ( H ) , t [ H ] = ! 0 , g = ! 1 ) ; for ( ; H = B . pop ( ) ; ) w [ H ] =
w [ "!" + H ] , delete w [ "!" + H ] ; h [ q ] = ( g ? ! 1 : t ) || null } l . match = l . match || null ; d . push ( v ) ; a . push ( v ) } b = f . elements ; f = f . generic ; var F ; c = 0 ; for ( d = a . length ; c < d ; ++ c ) { e = E ( a [ c ] ) ; v = ! 0 === e . classes || ! 0 === e . styles || ! 0 === e . attributes ; l = e ; p = q = n = void 0 ; for ( n in P ) l [ n ] = J ( l [ n ] ) ; h = ! 0 ; for ( p in O ) { n = O [ p ] ; q = l [ n ] ; t = [ ] ; w = void 0 ; for ( w in q ) - 1 < w . indexOf ( "*" ) ? t . push ( new RegExp ( "^" + w . replace ( /\*/g , ".*" ) + "$" ) ) : t . push ( w ) ; q = t ; q . length && ( l [ n ] = q , h = ! 1 ) } l . nothingRequired = h ; l . noProperties = ! ( l . attributes || l . classes || l . styles ) ; if ( ! 0 === e . elements ||
null === e . elements ) f [ v ? "unshift" : "push" ] ( e ) ; else for ( F in l = e . elements , delete e . elements , l ) if ( b [ F ] ) b [ F ] [ v ? "unshift" : "push" ] ( e ) ; else b [ F ] = [ e ] } } function d ( a , c , d , f ) { if ( ! a . match || a . match ( c ) ) if ( f || g ( a , c ) ) if ( a . propertiesOnly || ( d . valid = ! 0 ) , d . allAttributes || ( d . allAttributes = b ( a . attributes , c . attributes , d . validAttributes ) ) , d . allStyles || ( d . allStyles = b ( a . styles , c . styles , d . validStyles ) ) , ! d . allClasses ) { a = a . classes ; c = c . classes ; f = d . validClasses ; if ( a ) if ( ! 0 === a ) a = ! 0 ; else { for ( var e = 0 , v = c . length , l ; e < v ; ++ e ) l = c [ e ] , f [ l ] ||
( f [ l ] = a ( l ) ) ; a = ! 1 } else a = ! 1 ; d . allClasses = a } } function b ( a , b , c ) { if ( ! a ) return ! 1 ; if ( ! 0 === a ) return ! 0 ; for ( var d in b ) c [ d ] || ( c [ d ] = a ( d ) ) ; return ! 1 } function c ( a , b , c ) { if ( ! a . match || a . match ( b ) ) { if ( a . noProperties ) return ! 1 ; c . hadInvalidAttribute = f ( a . attributes , b . attributes ) || c . hadInvalidAttribute ; c . hadInvalidStyle = f ( a . styles , b . styles ) || c . hadInvalidStyle ; a = a . classes ; b = b . classes ; if ( a ) { for ( var d = ! 1 , e = ! 0 === a , v = b . length ; v -- ; ) if ( e || a ( b [ v ] ) ) b . splice ( v , 1 ) , d = ! 0 ; a = d } else a = ! 1 ; c . hadInvalidClass = a || c . hadInvalidClass } } function f ( a ,
b ) { if ( ! a ) return ! 1 ; var c = ! 1 , d = ! 0 === a , f ; for ( f in b ) if ( d || a ( f ) ) delete b [ f ] , c = ! 0 ; return c } function h ( a , b , c ) { if ( a . disabled || a . customConfig && ! c || ! b ) return ! 1 ; a . _ . cachedChecks = { } ; return ! 0 } function k ( a , b ) { if ( ! a ) return ! 1 ; if ( ! 0 === a ) return a ; if ( "string" == typeof a ) return a = w ( a ) , "*" == a ? ! 0 : CKEDITOR . tools . convertArrayToObject ( a . split ( b ) ) ; if ( CKEDITOR . tools . isArray ( a ) ) return a . length ? CKEDITOR . tools . convertArrayToObject ( a ) : ! 1 ; var c = { } , d = 0 , f ; for ( f in a ) c [ f ] = a [ f ] , d ++ ; return d ? c : ! 1 } function g ( a , b ) { if ( a . nothingRequired ) return ! 0 ;
var c , d , f , e ; if ( f = a . requiredClasses ) for ( e = b . classes , c = 0 ; c < f . length ; ++ c ) if ( d = f [ c ] , "string" == typeof d ) { if ( - 1 == CKEDITOR . tools . indexOf ( e , d ) ) return ! 1 } else if ( ! CKEDITOR . tools . checkIfAnyArrayItemMatches ( e , d ) ) return ! 1 ; return m ( b . styles , a . requiredStyles ) && m ( b . attributes , a . requiredAttributes ) } function m ( a , b ) { if ( ! b ) return ! 0 ; for ( var c = 0 , d ; c < b . length ; ++ c ) if ( d = b [ c ] , "string" == typeof d ) { if ( ! ( d in a ) ) return ! 1 } else if ( ! CKEDITOR . tools . checkIfAnyObjectPropertyMatches ( a , d ) ) return ! 1 ; return ! 0 } function r ( a ) { if ( ! a ) return { } ;
a = a . split ( /\s*,\s*/ ) . sort ( ) ; for ( var b = { } ; a . length ; ) b [ a . shift ( ) ] = "cke-test" ; return b } function e ( a ) { var b , c , d , f , e = { } , v = 1 ; for ( a = w ( a ) ; b = a . match ( n ) ; ) ( c = b [ 2 ] ) ? ( d = z ( c , "styles" ) , f = z ( c , "attrs" ) , c = z ( c , "classes" ) ) : d = f = c = null , e [ "$" + v ++ ] = { elements : b [ 1 ] , classes : c , styles : d , attributes : f } , a = a . slice ( b [ 0 ] . length ) ; return e } function z ( a , b ) { var c = a . match ( N [ b ] ) ; return c ? w ( c [ 1 ] ) : null } function y ( a ) { var b = a . styleBackup = a . attributes . style , c = a . classBackup = a . attributes [ "class" ] ; a . styles || ( a . styles = CKEDITOR . tools . parseCssText ( b ||
"" , 1 ) ) ; a . classes || ( a . classes = c ? c . split ( /\s+/ ) : [ ] ) } function A ( a , b , f , e ) { var l = 0 , n ; e . toHtml && ( b . name = b . name . replace ( v , "$1" ) ) ; if ( e . doCallbacks && a . elementCallbacks ) { a : { n = a . elementCallbacks ; for ( var h = 0 , t = n . length , w ; h < t ; ++ h ) if ( w = n [ h ] ( b ) ) { n = w ; break a } n = void 0 } if ( n ) return n } if ( e . doTransform && ( n = a . _ . transformations [ b . name ] ) ) { y ( b ) ; for ( h = 0 ; h < n . length ; ++ h ) q ( a , b , n [ h ] ) ; x ( b ) } if ( e . doFilter ) { a : { h = b . name ; t = a . _ ; a = t . allowedRules . elements [ h ] ; n = t . allowedRules . generic ; h = t . disallowedRules . elements [ h ] ; t = t . disallowedRules . generic ;
w = e . skipRequired ; var E = { valid : ! 1 , validAttributes : { } , validClasses : { } , validStyles : { } , allAttributes : ! 1 , allClasses : ! 1 , allStyles : ! 1 , hadInvalidAttribute : ! 1 , hadInvalidClass : ! 1 , hadInvalidStyle : ! 1 } , k , g ; if ( a || n ) { y ( b ) ; if ( h ) for ( k = 0 , g = h . length ; k < g ; ++ k ) if ( ! 1 === c ( h [ k ] , b , E ) ) { a = null ; break a } if ( t ) for ( k = 0 , g = t . length ; k < g ; ++ k ) c ( t [ k ] , b , E ) ; if ( a ) for ( k = 0 , g = a . length ; k < g ; ++ k ) d ( a [ k ] , b , E , w ) ; if ( n ) for ( k = 0 , g = n . length ; k < g ; ++ k ) d ( n [ k ] , b , E , w ) ; a = E } else a = null } if ( ! a || ! a . valid ) return f . push ( b ) , 1 ; g = a . validAttributes ; var H = a . validStyles ;
n = a . validClasses ; var h = b . attributes , F = b . styles , t = b . classes ; w = b . classBackup ; var L = b . styleBackup , G , N , C = [ ] , E = [ ] , O = /^data-cke-/ ; k = ! 1 ; delete h . style ; delete h [ "class" ] ; delete b . classBackup ; delete b . styleBackup ; if ( ! a . allAttributes ) for ( G in h ) g [ G ] || ( O . test ( G ) ? G == ( N = G . replace ( /^data-cke-saved-/ , "" ) ) || g [ N ] || ( delete h [ G ] , k = ! 0 ) : ( delete h [ G ] , k = ! 0 ) ) ; if ( ! a . allStyles || a . hadInvalidStyle ) { for ( G in F ) a . allStyles || H [ G ] ? C . push ( G + ":" + F [ G ] ) : k = ! 0 ; C . length && ( h . style = C . sort ( ) . join ( "; " ) ) } else L && ( h . style = L ) ; if ( ! a . allClasses ||
a . hadInvalidClass ) { for ( G = 0 ; G < t . length ; ++ G ) ( a . allClasses || n [ t [ G ] ] ) && E . push ( t [ G ] ) ; E . length && ( h [ "class" ] = E . sort ( ) . join ( " " ) ) ; w && E . length < w . split ( /\s+/ ) . length && ( k = ! 0 ) } else w && ( h [ "class" ] = w ) ; k && ( l = 1 ) ; if ( ! e . skipFinalValidation && ! p ( b ) ) return f . push ( b ) , 1 } e . toHtml && ( b . name = b . name . replace ( B , "cke:$1" ) ) ; return l } function D ( a ) { var b = [ ] , c ; for ( c in a ) - 1 < c . indexOf ( "*" ) && b . push ( c . replace ( /\*/g , ".*" ) ) ; return b . length ? new RegExp ( "^(?:" + b . join ( "|" ) + ")$" ) : null } function x ( a ) { var b = a . attributes , c ; delete b . style ; delete b [ "class" ] ;
if ( c = CKEDITOR . tools . writeCssText ( a . styles , ! 0 ) ) b . style = c ; a . classes . length && ( b [ "class" ] = a . classes . sort ( ) . join ( " " ) ) } function p ( a ) { switch ( a . name ) { case "a" : if ( ! ( a . children . length || a . attributes . name || a . attributes . id ) ) return ! 1 ; break ; case "img" : if ( ! a . attributes . src ) return ! 1 } return ! 0 } function J ( a ) { if ( ! a ) return ! 1 ; if ( ! 0 === a ) return ! 0 ; var b = D ( a ) ; return function ( c ) { return c in a || b && c . match ( b ) } } function u ( ) { return new CKEDITOR . htmlParser . element ( "br" ) } function K ( a ) { return a . type == CKEDITOR . NODE _ELEMENT && ( "br" ==
a . name || t . $block [ a . name ] ) } function l ( a , b , c ) { var d = a . name ; if ( t . $empty [ d ] || ! a . children . length ) "hr" == d && "br" == b ? a . replaceWith ( u ( ) ) : ( a . parent && c . push ( { check : "it" , el : a . parent } ) , a . remove ( ) ) ; else if ( t . $block [ d ] || "tr" == d ) if ( "br" == b ) a . previous && ! K ( a . previous ) && ( b = u ( ) , b . insertBefore ( a ) ) , a . next && ! K ( a . next ) && ( b = u ( ) , b . insertAfter ( a ) ) , a . replaceWithChildren ( ) ; else { var d = a . children , f ; b : { f = t [ b ] ; for ( var e = 0 , v = d . length , l ; e < v ; ++ e ) if ( l = d [ e ] , l . type == CKEDITOR . NODE _ELEMENT && ! f [ l . name ] ) { f = ! 1 ; break b } f = ! 0 } if ( f ) a . name = b , a . attributes =
{ } , c . push ( { check : "parent-down" , el : a } ) ; else { f = a . parent ; for ( var e = f . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT || "body" == f . name , n , h , v = d . length ; 0 < v ; ) l = d [ -- v ] , e && ( l . type == CKEDITOR . NODE _TEXT || l . type == CKEDITOR . NODE _ELEMENT && t . $inline [ l . name ] ) ? ( n || ( n = new CKEDITOR . htmlParser . element ( b ) , n . insertAfter ( a ) , c . push ( { check : "parent-down" , el : n } ) ) , n . add ( l , 0 ) ) : ( n = null , h = t [ f . name ] || t . span , l . insertAfter ( a ) , f . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT || l . type != CKEDITOR . NODE _ELEMENT || h [ l . name ] || c . push ( { check : "el-up" , el : l } ) ) ; a . remove ( ) } } else d in
{ style : 1 , script : 1 } ? a . remove ( ) : ( a . parent && c . push ( { check : "it" , el : a . parent } ) , a . replaceWithChildren ( ) ) } function q ( a , b , c ) { var d , f ; for ( d = 0 ; d < c . length ; ++ d ) if ( f = c [ d ] , ! ( f . check && ! a . check ( f . check , ! 1 ) || f . left && ! f . left ( b ) ) ) { f . right ( b , G ) ; break } } function F ( a , b ) { var c = b . getDefinition ( ) , d = c . attributes , f = c . styles , e , v , l , n ; if ( a . name != c . element ) return ! 1 ; for ( e in d ) if ( "class" == e ) for ( c = d [ e ] . split ( /\s+/ ) , l = a . classes . join ( "|" ) ; n = c . pop ( ) ; ) { if ( - 1 == l . indexOf ( n ) ) return ! 1 } else if ( a . attributes [ e ] != d [ e ] ) return ! 1 ; for ( v in f ) if ( a . styles [ v ] !=
f [ v ] ) return ! 1 ; return ! 0 } function L ( a , b ) { var c , d ; "string" == typeof a ? c = a : a instanceof CKEDITOR . style ? d = a : ( c = a [ 0 ] , d = a [ 1 ] ) ; return [ { element : c , left : d , right : function ( a , c ) { c . transform ( a , b ) } } ] } function C ( a ) { return function ( b ) { return F ( b , a ) } } function M ( a ) { return function ( b , c ) { c [ a ] ( b ) } } var t = CKEDITOR . dtd , E = CKEDITOR . tools . copy , w = CKEDITOR . tools . trim , H = [ "" , "p" , "br" , "div" ] ; CKEDITOR . FILTER _SKIP _TREE = 2 ; CKEDITOR . filter = function ( a ) { this . allowedContent = [ ] ; this . disallowedContent = [ ] ; this . elementCallbacks = null ; this . disabled =
( function ( ) { function a ( a , b , c , d , f ) { var e , w ; a = [ ] ; for ( e in b ) { w = b [ e ] ; w = "boolean" == typeof w ? { } : "function" == typeof w ? { match : w } : E ( w ) ; "$" != e . charAt ( 0 ) && ( w . elements = e ) ; c && ( w . featureName = c . toLowerCase ( ) ) ; var l = w ; l . elements = k ( l . elements , /\s+/ ) || null ; l . propertiesOnly = l . propertiesOnly || ! 0 === l . elements ; var p = /\s*,\s*/ , m = void 0 ; for ( m in P ) { l [ m ] = k ( l [ m ] , p ) || null ; var h = l , t = O [ m ] , q = k ( l [ O [ m ] ] , p ) , z = l [ m ] , B = [ ] , g = ! 0 , H = void 0 ; q ? g = ! 1 : q = { } ; for ( H in z ) "!" == H . charAt ( 0 ) && ( H = H . slice ( 1 ) , B . push ( H ) , q [ H ] = ! 0 , g = ! 1 ) ; for ( ; H = B . pop ( ) ; ) z [ H ] =
z [ "!" + H ] , delete z [ "!" + H ] ; h [ t ] = ( g ? ! 1 : q ) || null } l . match = l . match || null ; d . push ( w ) ; a . push ( w ) } b = f . elements ; f = f . generic ; var F ; c = 0 ; for ( d = a . length ; c < d ; ++ c ) { e = E ( a [ c ] ) ; w = ! 0 === e . classes || ! 0 === e . styles || ! 0 === e . attributes ; l = e ; m = t = p = void 0 ; for ( p in P ) l [ p ] = J ( l [ p ] ) ; h = ! 0 ; for ( m in O ) { p = O [ m ] ; t = l [ p ] ; q = [ ] ; z = void 0 ; for ( z in t ) - 1 < z . indexOf ( "*" ) ? q . push ( new RegExp ( "^" + z . replace ( /\*/g , ".*" ) + "$" ) ) : q . push ( z ) ; t = q ; t . length && ( l [ p ] = t , h = ! 1 ) } l . nothingRequired = h ; l . noProperties = ! ( l . attributes || l . classes || l . styles ) ; if ( ! 0 === e . elements ||
null === e . elements ) f [ w ? "unshift" : "push" ] ( e ) ; else for ( F in l = e . elements , delete e . elements , l ) if ( b [ F ] ) b [ F ] [ w ? "unshift" : "push" ] ( e ) ; else b [ F ] = [ e ] } } function d ( a , c , d , f ) { if ( ! a . match || a . match ( c ) ) if ( f || g ( a , c ) ) if ( a . propertiesOnly || ( d . valid = ! 0 ) , d . allAttributes || ( d . allAttributes = b ( a . attributes , c . attributes , d . validAttributes ) ) , d . allStyles || ( d . allStyles = b ( a . styles , c . styles , d . validStyles ) ) , ! d . allClasses ) { a = a . classes ; c = c . classes ; f = d . validClasses ; if ( a ) if ( ! 0 === a ) a = ! 0 ; else { for ( var e = 0 , w = c . length , l ; e < w ; ++ e ) l = c [ e ] , f [ l ] ||
( f [ l ] = a ( l ) ) ; a = ! 1 } else a = ! 1 ; d . allClasses = a } } function b ( a , b , c ) { if ( ! a ) return ! 1 ; if ( ! 0 === a ) return ! 0 ; for ( var d in b ) c [ d ] || ( c [ d ] = a ( d ) ) ; return ! 1 } function c ( a , b , c ) { if ( ! a . match || a . match ( b ) ) { if ( a . noProperties ) return ! 1 ; c . hadInvalidAttribute = f ( a . attributes , b . attributes ) || c . hadInvalidAttribute ; c . hadInvalidStyle = f ( a . styles , b . styles ) || c . hadInvalidStyle ; a = a . classes ; b = b . classes ; if ( a ) { for ( var d = ! 1 , e = ! 0 === a , l = b . length ; l -- ; ) if ( e || a ( b [ l ] ) ) b . splice ( l , 1 ) , d = ! 0 ; a = d } else a = ! 1 ; c . hadInvalidClass = a || c . hadInvalidClass } } function f ( a ,
b ) { if ( ! a ) return ! 1 ; var c = ! 1 , d = ! 0 === a , f ; for ( f in b ) if ( d || a ( f ) ) delete b [ f ] , c = ! 0 ; return c } function h ( a , b , c ) { if ( a . disabled || a . customConfig && ! c || ! b ) return ! 1 ; a . _ . cachedChecks = { } ; return ! 0 } function k ( a , b ) { if ( ! a ) return ! 1 ; if ( ! 0 === a ) return a ; if ( "string" == typeof a ) return a = z ( a ) , "*" == a ? ! 0 : CKEDITOR . tools . convertArrayToObject ( a . split ( b ) ) ; if ( CKEDITOR . tools . isArray ( a ) ) return a . length ? CKEDITOR . tools . convertArrayToObject ( a ) : ! 1 ; var c = { } , d = 0 , f ; for ( f in a ) c [ f ] = a [ f ] , d ++ ; return d ? c : ! 1 } function g ( a , b ) { if ( a . nothingRequired ) return ! 0 ;
var c , d , f , e ; if ( f = a . requiredClasses ) for ( e = b . classes , c = 0 ; c < f . length ; ++ c ) if ( d = f [ c ] , "string" == typeof d ) { if ( - 1 == CKEDITOR . tools . indexOf ( e , d ) ) return ! 1 } else if ( ! CKEDITOR . tools . checkIfAnyArrayItemMatches ( e , d ) ) return ! 1 ; return n ( b . styles , a . requiredStyles ) && n ( b . attributes , a . requiredAttributes ) } function n ( a , b ) { if ( ! b ) return ! 0 ; for ( var c = 0 , d ; c < b . length ; ++ c ) if ( d = b [ c ] , "string" == typeof d ) { if ( ! ( d in a ) ) return ! 1 } else if ( ! CKEDITOR . tools . checkIfAnyObjectPropertyMatches ( a , d ) ) return ! 1 ; return ! 0 } function r ( a ) { if ( ! a ) return { } ;
a = a . split ( /\s*,\s*/ ) . sort ( ) ; for ( var b = { } ; a . length ; ) b [ a . shift ( ) ] = "cke-test" ; return b } function e ( a ) { var b , c , d , f , e = { } , l = 1 ; for ( a = z ( a ) ; b = a . match ( p ) ; ) ( c = b [ 2 ] ) ? ( d = y ( c , "styles" ) , f = y ( c , "attrs" ) , c = y ( c , "classes" ) ) : d = f = c = null , e [ "$" + l ++ ] = { elements : b [ 1 ] , classes : c , styles : d , attributes : f } , a = a . slice ( b [ 0 ] . length ) ; return e } function y ( a , b ) { var c = a . match ( N [ b ] ) ; return c ? z ( c [ 1 ] ) : null } function v ( a ) { var b = a . styleBackup = a . attributes . style , c = a . classBackup = a . attributes [ "class" ] ; a . styles || ( a . styles = CKEDITOR . tools . parseCssText ( b ||
"" , 1 ) ) ; a . classes || ( a . classes = c ? c . split ( /\s+/ ) : [ ] ) } function A ( a , b , f , e ) { var l = 0 , p ; e . toHtml && ( b . name = b . name . replace ( w , "$1" ) ) ; if ( e . doCallbacks && a . elementCallbacks ) { a : { p = a . elementCallbacks ; for ( var h = 0 , q = p . length , E ; h < q ; ++ h ) if ( E = p [ h ] ( b ) ) { p = E ; break a } p = void 0 } if ( p ) return p } if ( e . doTransform && ( p = a . _ . transformations [ b . name ] ) ) { v ( b ) ; for ( h = 0 ; h < p . length ; ++ h ) t ( a , b , p [ h ] ) ; x ( b ) } if ( e . doFilter ) { a : { h = b . name ; q = a . _ ; a = q . allowedRules . elements [ h ] ; p = q . allowedRules . generic ; h = q . disallowedRules . elements [ h ] ; q = q . disallowedRules . generic ;
E = e . skipRequired ; var z = { valid : ! 1 , validAttributes : { } , validClasses : { } , validStyles : { } , allAttributes : ! 1 , allClasses : ! 1 , allStyles : ! 1 , hadInvalidAttribute : ! 1 , hadInvalidClass : ! 1 , hadInvalidStyle : ! 1 } , g , k ; if ( a || p ) { v ( b ) ; if ( h ) for ( g = 0 , k = h . length ; g < k ; ++ g ) if ( ! 1 === c ( h [ g ] , b , z ) ) { a = null ; break a } if ( q ) for ( g = 0 , k = q . length ; g < k ; ++ g ) c ( q [ g ] , b , z ) ; if ( a ) for ( g = 0 , k = a . length ; g < k ; ++ g ) d ( a [ g ] , b , z , E ) ; if ( p ) for ( g = 0 , k = p . length ; g < k ; ++ g ) d ( p [ g ] , b , z , E ) ; a = z } else a = null } if ( ! a || ! a . valid ) return f . push ( b ) , 1 ; k = a . validAttributes ; var H = a . validStyles ;
p = a . validClasses ; var h = b . attributes , F = b . styles , q = b . classes ; E = b . classBackup ; var L = b . styleBackup , G , N , C = [ ] , z = [ ] , O = /^data-cke-/ ; g = ! 1 ; delete h . style ; delete h [ "class" ] ; delete b . classBackup ; delete b . styleBackup ; if ( ! a . allAttributes ) for ( G in h ) k [ G ] || ( O . test ( G ) ? G == ( N = G . replace ( /^data-cke-saved-/ , "" ) ) || k [ N ] || ( delete h [ G ] , g = ! 0 ) : ( delete h [ G ] , g = ! 0 ) ) ; if ( ! a . allStyles || a . hadInvalidStyle ) { for ( G in F ) a . allStyles || H [ G ] ? C . push ( G + ":" + F [ G ] ) : g = ! 0 ; C . length && ( h . style = C . sort ( ) . join ( "; " ) ) } else L && ( h . style = L ) ; if ( ! a . allClasses ||
a . hadInvalidClass ) { for ( G = 0 ; G < q . length ; ++ G ) ( a . allClasses || p [ q [ G ] ] ) && z . push ( q [ G ] ) ; z . length && ( h [ "class" ] = z . sort ( ) . join ( " " ) ) ; E && z . length < E . split ( /\s+/ ) . length && ( g = ! 0 ) } else E && ( h [ "class" ] = E ) ; g && ( l = 1 ) ; if ( ! e . skipFinalValidation && ! m ( b ) ) return f . push ( b ) , 1 } e . toHtml && ( b . name = b . name . replace ( B , "cke:$1" ) ) ; return l } function D ( a ) { var b = [ ] , c ; for ( c in a ) - 1 < c . indexOf ( "*" ) && b . push ( c . replace ( /\*/g , ".*" ) ) ; return b . length ? new RegExp ( "^(?:" + b . join ( "|" ) + ")$" ) : null } function x ( a ) { var b = a . attributes , c ; delete b . style ; delete b [ "class" ] ;
if ( c = CKEDITOR . tools . writeCssText ( a . styles , ! 0 ) ) b . style = c ; a . classes . length && ( b [ "class" ] = a . classes . sort ( ) . join ( " " ) ) } function m ( a ) { switch ( a . name ) { case "a" : if ( ! ( a . children . length || a . attributes . name || a . attributes . id ) ) return ! 1 ; break ; case "img" : if ( ! a . attributes . src ) return ! 1 } return ! 0 } function J ( a ) { if ( ! a ) return ! 1 ; if ( ! 0 === a ) return ! 0 ; var b = D ( a ) ; return function ( c ) { return c in a || b && c . match ( b ) } } function u ( ) { return new CKEDITOR . htmlParser . element ( "br" ) } function K ( a ) { return a . type == CKEDITOR . NODE _ELEMENT && ( "br" ==
a . name || q . $block [ a . name ] ) } function l ( a , b , c ) { var d = a . name ; if ( q . $empty [ d ] || ! a . children . length ) "hr" == d && "br" == b ? a . replaceWith ( u ( ) ) : ( a . parent && c . push ( { check : "it" , el : a . parent } ) , a . remove ( ) ) ; else if ( q . $block [ d ] || "tr" == d ) if ( "br" == b ) a . previous && ! K ( a . previous ) && ( b = u ( ) , b . insertBefore ( a ) ) , a . next && ! K ( a . next ) && ( b = u ( ) , b . insertAfter ( a ) ) , a . replaceWithChildren ( ) ; else { var d = a . children , f ; b : { f = q [ b ] ; for ( var e = 0 , l = d . length , w ; e < l ; ++ e ) if ( w = d [ e ] , w . type == CKEDITOR . NODE _ELEMENT && ! f [ w . name ] ) { f = ! 1 ; break b } f = ! 0 } if ( f ) a . name = b , a . attributes =
{ } , c . push ( { check : "parent-down" , el : a } ) ; else { f = a . parent ; for ( var e = f . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT || "body" == f . name , p , h , l = d . length ; 0 < l ; ) w = d [ -- l ] , e && ( w . type == CKEDITOR . NODE _TEXT || w . type == CKEDITOR . NODE _ELEMENT && q . $inline [ w . name ] ) ? ( p || ( p = new CKEDITOR . htmlParser . element ( b ) , p . insertAfter ( a ) , c . push ( { check : "parent-down" , el : p } ) ) , p . add ( w , 0 ) ) : ( p = null , h = q [ f . name ] || q . span , w . insertAfter ( a ) , f . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT || w . type != CKEDITOR . NODE _ELEMENT || h [ w . name ] || c . push ( { check : "el-up" , el : w } ) ) ; a . remove ( ) } } else d in
{ style : 1 , script : 1 } ? a . remove ( ) : ( a . parent && c . push ( { check : "it" , el : a . parent } ) , a . replaceWithChildren ( ) ) } function t ( a , b , c ) { var d , f ; for ( d = 0 ; d < c . length ; ++ d ) if ( f = c [ d ] , ! ( f . check && ! a . check ( f . check , ! 1 ) || f . left && ! f . left ( b ) ) ) { f . right ( b , G ) ; break } } function F ( a , b ) { var c = b . getDefinition ( ) , d = c . attributes , f = c . styles , e , l , w , p ; if ( a . name != c . element ) return ! 1 ; for ( e in d ) if ( "class" == e ) for ( c = d [ e ] . split ( /\s+/ ) , w = a . classes . join ( "|" ) ; p = c . pop ( ) ; ) { if ( - 1 == w . indexOf ( p ) ) return ! 1 } else if ( a . attributes [ e ] != d [ e ] ) return ! 1 ; for ( l in f ) if ( a . styles [ l ] !=
f [ l ] ) return ! 1 ; return ! 0 } function L ( a , b ) { var c , d ; "string" == typeof a ? c = a : a instanceof CKEDITOR . style ? d = a : ( c = a [ 0 ] , d = a [ 1 ] ) ; return [ { element : c , left : d , right : function ( a , c ) { c . transform ( a , b ) } } ] } function C ( a ) { return function ( b ) { return F ( b , a ) } } function M ( a ) { return function ( b , c ) { c [ a ] ( b ) } } var q = CKEDITOR . dtd , E = CKEDITOR . tools . copy , z = CKEDITOR . tools . trim , H = [ "" , "p" , "br" , "div" ] ; CKEDITOR . FILTER _SKIP _TREE = 2 ; CKEDITOR . filter = function ( a ) { this . allowedContent = [ ] ; this . disallowedContent = [ ] ; this . elementCallbacks = null ; this . disabled =
! 1 ; this . editor = null ; this . id = CKEDITOR . tools . getNextNumber ( ) ; this . _ = { allowedRules : { elements : { } , generic : [ ] } , disallowedRules : { elements : { } , generic : [ ] } , transformations : { } , cachedTests : { } , cachedChecks : { } } ; CKEDITOR . filter . instances [ this . id ] = this ; if ( a instanceof CKEDITOR . editor ) { a = this . editor = a ; this . customConfig = ! 0 ; var b = a . config . allowedContent ; ! 0 === b ? this . disabled = ! 0 : ( b || ( this . customConfig = ! 1 ) , this . allow ( b , "config" , 1 ) , this . allow ( a . config . extraAllowedContent , "extra" , 1 ) , this . allow ( H [ a . enterMode ] + " " + H [ a . shiftEnterMode ] ,
"default" , 1 ) , this . disallow ( a . config . disallowedContent ) ) } else this . customConfig = ! 1 , this . allow ( a , "default" , 1 ) } ; CKEDITOR . filter . instances = { } ; CKEDITOR . filter . prototype = { allow : function ( b , c , d ) { if ( ! h ( this , b , d ) ) return ! 1 ; var f , v ; if ( "string" == typeof b ) b = e ( b ) ; else if ( b instanceof CKEDITOR . style ) { if ( b . toAllowedContentRules ) return this . allow ( b . toAllowedContentRules ( this . editor ) , c , d ) ; f = b . getDefinition ( ) ; b = { } ; d = f . attributes ; b [ f . element ] = f = { styles : f . styles , requiredStyles : f . styles && CKEDITOR . tools . objectKeys ( f . styles ) } ;
d && ( d = E ( d ) , f . classes = d [ "class" ] ? d [ "class" ] . split ( /\s+/ ) : null , f . requiredClasses = f . classes , delete d [ "class" ] , f . attributes = d , f . requiredAttributes = d && CKEDITOR . tools . objectKeys ( d ) ) } else if ( CKEDITOR . tools . isArray ( b ) ) { for ( f = 0 ; f < b . length ; ++ f ) v = this . allow ( b [ f ] , c , d ) ; return v } a ( this , b , c , this . allowedContent , this . _ . allowedRules ) ; return ! 0 } , applyTo : function ( a , b , c , d ) { if ( this . disabled ) return ! 1 ; var f = this , e = [ ] , v = this . editor && this . editor . config . protectedSource , n , h = ! 1 , q = { doFilter : ! c , doTransform : ! 0 , doCallbacks : ! 0 , toHtml : b } ;
a . forEach ( function ( a ) { if ( a . type == CKEDITOR . NODE _ELEMENT ) { if ( "off" == a . attributes [ "data-cke-filter" ] ) return ! 1 ; if ( ! b || "span" != a . name || ! ~ CKEDITOR . tools . objectKeys ( a . attributes ) . join ( "|" ) . indexOf ( "data-cke-" ) ) if ( n = A ( f , a , e , q ) , n & 1 ) h = ! 0 ; else if ( n & 2 ) return ! 1 } else if ( a . type == CKEDITOR . NODE _COMMENT && a . value . match ( /^\{cke_protected\}(?!\{C\})/ ) ) { var c ; a : { var d = decodeURIComponent ( a . value . replace ( /^\{cke_protected\}/ , "" ) ) ; c = [ ] ; var l , p , t ; if ( v ) for ( p = 0 ; p < v . length ; ++ p ) if ( ( t = d . match ( v [ p ] ) ) && t [ 0 ] . length == d . length ) { c = ! 0 ;
break a } d = CKEDITOR . htmlParser . fragment . fromHtml ( d ) ; 1 == d . children . length && ( l = d . children [ 0 ] ) . type == CKEDITOR . NODE _ELEMENT && A ( f , l , c , q ) ; c = ! c . length } c || e . push ( a ) } } , null , ! 0 ) ; e . length && ( h = ! 0 ) ; var w ; a = [ ] ; d = H [ d || ( this . editor ? this . editor . enterMode : CKEDITOR . ENTER _P ) ] ; for ( var E ; c = e . pop ( ) ; ) c . type == CKEDITOR . NODE _ELEMENT ? l ( c , d , a ) : c . remove ( ) ; for ( ; w = a . pop ( ) ; ) if ( c = w . el , c . parent ) switch ( E = t [ c . parent . name ] || t . span , w . check ) { case "it" : t . $removeEmpty [ c . name ] && ! c . children . length ? l ( c , d , a ) : p ( c ) || l ( c , d , a ) ; break ; case "el-up" : c . parent . type ==
CKEDITOR . NODE _DOCUMENT _FRAGMENT || E [ c . name ] || l ( c , d , a ) ; break ; case "parent-down" : c . parent . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT || E [ c . name ] || l ( c . parent , d , a ) } return h } , checkFeature : function ( a ) { if ( this . disabled || ! a ) return ! 0 ; a . toFeature && ( a = a . toFeature ( this . editor ) ) ; return ! a . requiredContent || this . check ( a . requiredContent ) } , disable : function ( ) { this . disabled = ! 0 } , disallow : function ( b ) { if ( ! h ( this , b , ! 0 ) ) return ! 1 ; "string" == typeof b && ( b = e ( b ) ) ; a ( this , b , null , this . disallowedContent , this . _ . disallowedRules ) ; return ! 0 } ,
"default" , 1 ) , this . disallow ( a . config . disallowedContent ) ) } else this . customConfig = ! 1 , this . allow ( a , "default" , 1 ) } ; CKEDITOR . filter . instances = { } ; CKEDITOR . filter . prototype = { allow : function ( b , c , d ) { if ( ! h ( this , b , d ) ) return ! 1 ; var f , l ; if ( "string" == typeof b ) b = e ( b ) ; else if ( b instanceof CKEDITOR . style ) { if ( b . toAllowedContentRules ) return this . allow ( b . toAllowedContentRules ( this . editor ) , c , d ) ; f = b . getDefinition ( ) ; b = { } ; d = f . attributes ; b [ f . element ] = f = { styles : f . styles , requiredStyles : f . styles && CKEDITOR . tools . objectKeys ( f . styles ) } ;
d && ( d = E ( d ) , f . classes = d [ "class" ] ? d [ "class" ] . split ( /\s+/ ) : null , f . requiredClasses = f . classes , delete d [ "class" ] , f . attributes = d , f . requiredAttributes = d && CKEDITOR . tools . objectKeys ( d ) ) } else if ( CKEDITOR . tools . isArray ( b ) ) { for ( f = 0 ; f < b . length ; ++ f ) l = this . allow ( b [ f ] , c , d ) ; return l } a ( this , b , c , this . allowedContent , this . _ . allowedRules ) ; return ! 0 } , applyTo : function ( a , b , c , d ) { if ( this . disabled ) return ! 1 ; var f = this , e = [ ] , w = this . editor && this . editor . config . protectedSource , p , h = ! 1 , t = { doFilter : ! c , doTransform : ! 0 , doCallbacks : ! 0 , toHtml : b } ;
a . forEach ( function ( a ) { if ( a . type == CKEDITOR . NODE _ELEMENT ) { if ( "off" == a . attributes [ "data-cke-filter" ] ) return ! 1 ; if ( ! b || "span" != a . name || ! ~ CKEDITOR . tools . objectKeys ( a . attributes ) . join ( "|" ) . indexOf ( "data-cke-" ) ) if ( p = A ( f , a , e , t ) , p & 1 ) h = ! 0 ; else if ( p & 2 ) return ! 1 } else if ( a . type == CKEDITOR . NODE _COMMENT && a . value . match ( /^\{cke_protected\}(?!\{C\})/ ) ) { var c ; a : { var d = decodeURIComponent ( a . value . replace ( /^\{cke_protected\}/ , "" ) ) ; c = [ ] ; var l , m , q ; if ( w ) for ( m = 0 ; m < w . length ; ++ m ) if ( ( q = d . match ( w [ m ] ) ) && q [ 0 ] . length == d . length ) { c = ! 0 ;
break a } d = CKEDITOR . htmlParser . fragment . fromHtml ( d ) ; 1 == d . children . length && ( l = d . children [ 0 ] ) . type == CKEDITOR . NODE _ELEMENT && A ( f , l , c , t ) ; c = ! c . length } c || e . push ( a ) } } , null , ! 0 ) ; e . length && ( h = ! 0 ) ; var E ; a = [ ] ; d = H [ d || ( this . editor ? this . editor . enterMode : CKEDITOR . ENTER _P ) ] ; for ( var z ; c = e . pop ( ) ; ) c . type == CKEDITOR . NODE _ELEMENT ? l ( c , d , a ) : c . remove ( ) ; for ( ; E = a . pop ( ) ; ) if ( c = E . el , c . parent ) switch ( z = q [ c . parent . name ] || q . span , E . check ) { case "it" : q . $removeEmpty [ c . name ] && ! c . children . length ? l ( c , d , a ) : m ( c ) || l ( c , d , a ) ; break ; case "el-up" : c . parent . type ==
CKEDITOR . NODE _DOCUMENT _FRAGMENT || z [ c . name ] || l ( c , d , a ) ; break ; case "parent-down" : c . parent . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT || z [ c . name ] || l ( c . parent , d , a ) } return h } , checkFeature : function ( a ) { if ( this . disabled || ! a ) return ! 0 ; a . toFeature && ( a = a . toFeature ( this . editor ) ) ; return ! a . requiredContent || this . check ( a . requiredContent ) } , disable : function ( ) { this . disabled = ! 0 } , disallow : function ( b ) { if ( ! h ( this , b , ! 0 ) ) return ! 1 ; "string" == typeof b && ( b = e ( b ) ) ; a ( this , b , null , this . disallowedContent , this . _ . disallowedRules ) ; return ! 0 } ,
addContentForms : function ( a ) { if ( ! this . disabled && a ) { var b , c , d = [ ] , f ; for ( b = 0 ; b < a . length && ! f ; ++ b ) c = a [ b ] , ( "string" == typeof c || c instanceof CKEDITOR . style ) && this . check ( c ) && ( f = c ) ; if ( f ) { for ( b = 0 ; b < a . length ; ++ b ) d . push ( L ( a [ b ] , f ) ) ; this . addTransformations ( d ) } } } , addElementCallback : function ( a ) { this . elementCallbacks || ( this . elementCallbacks = [ ] ) ; this . elementCallbacks . push ( a ) } , addFeature : function ( a ) { if ( this . disabled || ! a ) return ! 0 ; a . toFeature && ( a = a . toFeature ( this . editor ) ) ; this . allow ( a . allowedContent , a . name ) ; this . addTransformations ( a . contentTransformations ) ;
this . addContentForms ( a . contentForms ) ; return a . requiredContent && ( this . customConfig || this . disallowedContent . length ) ? this . check ( a . requiredContent ) : ! 0 } , addTransformations : function ( a ) { var b , c ; if ( ! this . disabled && a ) { var d = this . _ . transformations , f ; for ( f = 0 ; f < a . length ; ++ f ) { b = a [ f ] ; var e = void 0 , v = void 0 , l = void 0 , n = void 0 , h = void 0 , p = void 0 ; c = [ ] ; for ( v = 0 ; v < b . length ; ++ v ) l = b [ v ] , "string" == typeof l ? ( l = l . split ( /\s*:\s*/ ) , n = l [ 0 ] , h = null , p = l [ 1 ] ) : ( n = l . check , h = l . left , p = l . right ) , e || ( e = l , e = e . element ? e . element : n ? n . match ( /^([a-z0-9]+)/i ) [ 0 ] :
e . left . getDefinition ( ) . element ) , h instanceof CKEDITOR . style && ( h = C ( h ) ) , c . push ( { check : n == e ? null : n , left : h , right : "string" == typeof p ? M ( p ) : p } ) ; b = e ; d [ b ] || ( d [ b ] = [ ] ) ; d [ b ] . push ( c ) } } } , check : function ( a , b , c ) { if ( this . disabled ) return ! 0 ; if ( CKEDITOR . tools . isArray ( a ) ) { for ( var d = a . length ; d -- ; ) if ( this . check ( a [ d ] , b , c ) ) return ! 0 ; return ! 1 } var f , v ; if ( "string" == typeof a ) { v = a + "\x3c" + ( ! 1 === b ? "0" : "1" ) + ( c ? "1" : "0" ) + "\x3e" ; if ( v in this . _ . cachedChecks ) return this . _ . cachedChecks [ v ] ; d = e ( a ) . $1 ; f = d . styles ; var l = d . classes ; d . name = d . elements ;
d . classes = l = l ? l . split ( /\s*,\s*/ ) : [ ] ; d . styles = r ( f ) ; d . attributes = r ( d . attributes ) ; d . children = [ ] ; l . length && ( d . attributes [ "class" ] = l . join ( " " ) ) ; f && ( d . attributes . style = CKEDITOR . tools . writeCssText ( d . styles ) ) ; f = d } else d = a . getDefinition ( ) , f = d . styles , l = d . attributes || { } , f && ! CKEDITOR . tools . isEmpty ( f ) ? ( f = E ( f ) , l . style = CKEDITOR . tools . writeCssText ( f , ! 0 ) ) : f = { } , f = { name : d . element , attributes : l , classes : l [ "class" ] ? l [ "class" ] . split ( /\s+/ ) : [ ] , styles : f , children : [ ] } ; var l = CKEDITOR . tools . clone ( f ) , n = [ ] , h ; if ( ! 1 !== b && ( h = this . _ . transformations [ f . name ] ) ) { for ( d =
0 ; d < h . length ; ++ d ) q ( this , f , h [ d ] ) ; x ( f ) } A ( this , l , n , { doFilter : ! 0 , doTransform : ! 1 !== b , skipRequired : ! c , skipFinalValidation : ! c } ) ; b = 0 < n . length ? ! 1 : CKEDITOR . tools . objectCompare ( f . attributes , l . attributes , ! 0 ) ? ! 0 : ! 1 ; "string" == typeof a && ( this . _ . cachedChecks [ v ] = b ) ; return b } , getAllowedEnterMode : function ( ) { var a = [ "p" , "div" , "br" ] , b = { p : CKEDITOR . ENTER _P , div : CKEDITOR . ENTER _DIV , br : CKEDITOR . ENTER _BR } ; return function ( c , d ) { var f = a . slice ( ) , e ; if ( this . check ( H [ c ] ) ) return c ; for ( d || ( f = f . reverse ( ) ) ; e = f . pop ( ) ; ) if ( this . check ( e ) ) return b [ e ] ;
this . addContentForms ( a . contentForms ) ; return a . requiredContent && ( this . customConfig || this . disallowedContent . length ) ? this . check ( a . requiredContent ) : ! 0 } , addTransformations : function ( a ) { var b , c ; if ( ! this . disabled && a ) { var d = this . _ . transformations , f ; for ( f = 0 ; f < a . length ; ++ f ) { b = a [ f ] ; var e = void 0 , l = void 0 , w = void 0 , p = void 0 , h = void 0 , m = void 0 ; c = [ ] ; for ( l = 0 ; l < b . length ; ++ l ) w = b [ l ] , "string" == typeof w ? ( w = w . split ( /\s*:\s*/ ) , p = w [ 0 ] , h = null , m = w [ 1 ] ) : ( p = w . check , h = w . left , m = w . right ) , e || ( e = w , e = e . element ? e . element : p ? p . match ( /^([a-z0-9]+)/i ) [ 0 ] :
e . left . getDefinition ( ) . element ) , h instanceof CKEDITOR . style && ( h = C ( h ) ) , c . push ( { check : p == e ? null : p , left : h , right : "string" == typeof m ? M ( m ) : m } ) ; b = e ; d [ b ] || ( d [ b ] = [ ] ) ; d [ b ] . push ( c ) } } } , check : function ( a , b , c ) { if ( this . disabled ) return ! 0 ; if ( CKEDITOR . tools . isArray ( a ) ) { for ( var d = a . length ; d -- ; ) if ( this . check ( a [ d ] , b , c ) ) return ! 0 ; return ! 1 } var f , w ; if ( "string" == typeof a ) { w = a + "\x3c" + ( ! 1 === b ? "0" : "1" ) + ( c ? "1" : "0" ) + "\x3e" ; if ( w in this . _ . cachedChecks ) return this . _ . cachedChecks [ w ] ; d = e ( a ) . $1 ; f = d . styles ; var l = d . classes ; d . name = d . elements ;
d . classes = l = l ? l . split ( /\s*,\s*/ ) : [ ] ; d . styles = r ( f ) ; d . attributes = r ( d . attributes ) ; d . children = [ ] ; l . length && ( d . attributes [ "class" ] = l . join ( " " ) ) ; f && ( d . attributes . style = CKEDITOR . tools . writeCssText ( d . styles ) ) ; f = d } else d = a . getDefinition ( ) , f = d . styles , l = d . attributes || { } , f && ! CKEDITOR . tools . isEmpty ( f ) ? ( f = E ( f ) , l . style = CKEDITOR . tools . writeCssText ( f , ! 0 ) ) : f = { } , f = { name : d . element , attributes : l , classes : l [ "class" ] ? l [ "class" ] . split ( /\s+/ ) : [ ] , styles : f , children : [ ] } ; var l = CKEDITOR . tools . clone ( f ) , p = [ ] , h ; if ( ! 1 !== b && ( h = this . _ . transformations [ f . name ] ) ) { for ( d =
0 ; d < h . length ; ++ d ) t ( this , f , h [ d ] ) ; x ( f ) } A ( this , l , p , { doFilter : ! 0 , doTransform : ! 1 !== b , skipRequired : ! c , skipFinalValidation : ! c } ) ; b = 0 < p . length ? ! 1 : CKEDITOR . tools . objectCompare ( f . attributes , l . attributes , ! 0 ) ? ! 0 : ! 1 ; "string" == typeof a && ( this . _ . cachedChecks [ w ] = b ) ; return b } , getAllowedEnterMode : function ( ) { var a = [ "p" , "div" , "br" ] , b = { p : CKEDITOR . ENTER _P , div : CKEDITOR . ENTER _DIV , br : CKEDITOR . ENTER _BR } ; return function ( c , d ) { var f = a . slice ( ) , e ; if ( this . check ( H [ c ] ) ) return c ; for ( d || ( f = f . reverse ( ) ) ; e = f . pop ( ) ; ) if ( this . check ( e ) ) return b [ e ] ;
return CKEDITOR . ENTER _BR } } ( ) , clone : function ( ) { var a = new CKEDITOR . filter , b = CKEDITOR . tools . clone ; a . allowedContent = b ( this . allowedContent ) ; a . _ . allowedRules = b ( this . _ . allowedRules ) ; a . disallowedContent = b ( this . disallowedContent ) ; a . _ . disallowedRules = b ( this . _ . disallowedRules ) ; a . _ . transformations = b ( this . _ . transformations ) ; a . disabled = this . disabled ; a . editor = this . editor ; return a } , destroy : function ( ) { delete CKEDITOR . filter . instances [ this . id ] ; delete this . _ ; delete this . allowedContent ; delete this . disallowedContent } } ;
var P = { styles : 1 , attributes : 1 , classes : 1 } , O = { styles : "requiredStyles" , attributes : "requiredAttributes" , classes : "requiredClasses" } , n = /^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i , N = { styles : /{([^}]+)}/ , attrs : /\[([^\]]+)\]/ , classes : /\(([^\)]+)\)/ } , v = /^cke:(object|embed|param)$/ , B = /^(object|embed|param)$/ , G ; G = CKEDITOR . filter . transformationsTools = { sizeToStyle : function ( a ) { this . lengthToStyle ( a , "width" ) ; this . lengthToStyle ( a , "height" ) } , sizeToAttribute : function ( a ) { this . lengthToAttribute ( a ,
var P = { styles : 1 , attributes : 1 , classes : 1 } , O = { styles : "requiredStyles" , attributes : "requiredAttributes" , classes : "requiredClasses" } , p = /^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i , N = { styles : /{([^}]+)}/ , attrs : /\[([^\]]+)\]/ , classes : /\(([^\)]+)\)/ } , w = /^cke:(object|embed|param)$/ , B = /^(object|embed|param)$/ , G ; G = CKEDITOR . filter . transformationsTools = { sizeToStyle : function ( a ) { this . lengthToStyle ( a , "width" ) ; this . lengthToStyle ( a , "height" ) } , sizeToAttribute : function ( a ) { this . lengthToAttribute ( a ,
"width" ) ; this . lengthToAttribute ( a , "height" ) } , lengthToStyle : function ( a , b , c ) { c = c || b ; if ( ! ( c in a . styles ) ) { var d = a . attributes [ b ] ; d && ( /^\d+$/ . test ( d ) && ( d += "px" ) , a . styles [ c ] = d ) } delete a . attributes [ b ] } , lengthToAttribute : function ( a , b , c ) { c = c || b ; if ( ! ( c in a . attributes ) ) { var d = a . styles [ b ] , f = d && d . match ( /^(\d+)(?:\.\d*)?px$/ ) ; f ? a . attributes [ c ] = f [ 1 ] : "cke-test" == d && ( a . attributes [ c ] = "cke-test" ) } delete a . styles [ b ] } , alignmentToStyle : function ( a ) { if ( ! ( "float" in a . styles ) ) { var b = a . attributes . align ; if ( "left" == b || "right" ==
b ) a . styles [ "float" ] = b } delete a . attributes . align } , alignmentToAttribute : function ( a ) { if ( ! ( "align" in a . attributes ) ) { var b = a . styles [ "float" ] ; if ( "left" == b || "right" == b ) a . attributes . align = b } delete a . styles [ "float" ] } , splitBorderShorthand : function ( a ) { if ( a . styles . border ) { var b = CKEDITOR . tools . style . parse . border ( a . styles . border ) ; b . color && ( a . styles [ "border-color" ] = b . color ) ; b . style && ( a . styles [ "border-style" ] = b . style ) ; b . width && ( a . styles [ "border-width" ] = b . width ) ; delete a . styles . border } } , listTypeToStyle : function ( a ) { if ( a . attributes . type ) switch ( a . attributes . type ) { case "a" : a . styles [ "list-style-type" ] =
"lower-alpha" ; break ; case "A" : a . styles [ "list-style-type" ] = "upper-alpha" ; break ; case "i" : a . styles [ "list-style-type" ] = "lower-roman" ; break ; case "I" : a . styles [ "list-style-type" ] = "upper-roman" ; break ; case "1" : a . styles [ "list-style-type" ] = "decimal" ; break ; default : a . styles [ "list-style-type" ] = a . attributes . type } } , splitMarginShorthand : function ( a ) { function b ( d ) { a . styles [ "margin-top" ] = c [ d [ 0 ] ] ; a . styles [ "margin-right" ] = c [ d [ 1 ] ] ; a . styles [ "margin-bottom" ] = c [ d [ 2 ] ] ; a . styles [ "margin-left" ] = c [ d [ 3 ] ] } if ( a . styles . margin ) { var c =
a . styles . margin . match ( /(\-?[\.\d]+\w+)/g ) || [ "0px" ] ; switch ( c . length ) { case 1 : b ( [ 0 , 0 , 0 , 0 ] ) ; break ; case 2 : b ( [ 0 , 1 , 0 , 1 ] ) ; break ; case 3 : b ( [ 0 , 1 , 2 , 1 ] ) ; break ; case 4 : b ( [ 0 , 1 , 2 , 3 ] ) } delete a . styles . margin } } , matchesStyle : F , transform : function ( a , b ) { if ( "string" == typeof b ) a . name = b ; else { var c = b . getDefinition ( ) , d = c . styles , f = c . attributes , e , l , v , n ; a . name = c . element ; for ( e in f ) if ( "class" == e ) for ( c = a . classes . join ( "|" ) , v = f [ e ] . split ( /\s+/ ) ; n = v . pop ( ) ; ) - 1 == c . indexOf ( n ) && a . classes . push ( n ) ; else a . attributes [ e ] = f [ e ] ; for ( l in d ) a . styles [ l ] =
a . styles . margin . match ( /(\-?[\.\d]+\w+)/g ) || [ "0px" ] ; switch ( c . length ) { case 1 : b ( [ 0 , 0 , 0 , 0 ] ) ; break ; case 2 : b ( [ 0 , 1 , 0 , 1 ] ) ; break ; case 3 : b ( [ 0 , 1 , 2 , 1 ] ) ; break ; case 4 : b ( [ 0 , 1 , 2 , 3 ] ) } delete a . styles . margin } } , matchesStyle : F , transform : function ( a , b ) { if ( "string" == typeof b ) a . name = b ; else { var c = b . getDefinition ( ) , d = c . styles , f = c . attributes , e , l , w , p ; a . name = c . element ; for ( e in f ) if ( "class" == e ) for ( c = a . classes . join ( "|" ) , w = f [ e ] . split ( /\s+/ ) ; p = w . pop ( ) ; ) - 1 == c . indexOf ( p ) && a . classes . push ( p ) ; else a . attributes [ e ] = f [ e ] ; for ( l in d ) a . styles [ l ] =
d [ l ] } } } } ) ( ) ;
( function ( ) { CKEDITOR . focusManager = function ( a ) { if ( a . focusManager ) return a . focusManager ; this . hasFocus = ! 1 ; this . currentActive = null ; this . _ = { editor : a } ; return this } ; CKEDITOR . focusManager . _ = { blurDelay : 200 } ; CKEDITOR . focusManager . prototype = { focus : function ( a ) { this . _ . timer && clearTimeout ( this . _ . timer ) ; a && ( this . currentActive = a ) ; this . hasFocus || this . _ . locked || ( ( a = CKEDITOR . currentInstance ) && a . focusManager . blur ( 1 ) , this . hasFocus = ! 0 , ( a = this . _ . editor . container ) && a . addClass ( "cke_focus" ) , this . _ . editor . fire ( "focus" ) ) } , lock : function ( ) { this . _ . locked =
1 } , unlock : function ( ) { delete this . _ . locked } , blur : function ( a ) { function d ( ) { if ( this . hasFocus ) { this . hasFocus = ! 1 ; var a = this . _ . editor . container ; a && a . removeClass ( "cke_focus" ) ; this . _ . editor . fire ( "blur" ) } } if ( ! this . _ . locked ) { this . _ . timer && clearTimeout ( this . _ . timer ) ; var b = CKEDITOR . focusManager . _ . blurDelay ; a || ! b ? d . call ( this ) : this . _ . timer = CKEDITOR . tools . setTimeout ( function ( ) { delete this . _ . timer ; d . call ( this ) } , b , this ) } } , add : function ( a , d ) { var b = a . getCustomData ( "focusmanager" ) ; if ( ! b || b != this ) { b && b . remove ( a ) ; var b =
@@ -247,13 +255,13 @@ d.focus)}}})();CKEDITOR.keystrokeHandler=function(a){if(a.keystrokeHandler)retur
( function ( ) { var a , d = function ( b ) { b = b . data ; var d = b . getKeystroke ( ) , h = this . keystrokes [ d ] , k = this . _ . editor ; a = ! 1 === k . fire ( "key" , { keyCode : d , domEvent : b } ) ; a || ( h && ( a = ! 1 !== k . execCommand ( h , { from : "keystrokeHandler" } ) ) , a || ( a = ! ! this . blockedKeystrokes [ d ] ) ) ; a && b . preventDefault ( ! 0 ) ; return ! a } , b = function ( b ) { a && ( a = ! 1 , b . data . preventDefault ( ! 0 ) ) } ; CKEDITOR . keystrokeHandler . prototype = { attach : function ( a ) { a . on ( "keydown" , d , this ) ; if ( CKEDITOR . env . gecko && CKEDITOR . env . mac ) a . on ( "keypress" , b , this ) } } } ) ( ) ;
( function ( ) { CKEDITOR . lang = { languages : { af : 1 , ar : 1 , az : 1 , bg : 1 , bn : 1 , bs : 1 , ca : 1 , cs : 1 , cy : 1 , da : 1 , de : 1 , "de-ch" : 1 , el : 1 , "en-au" : 1 , "en-ca" : 1 , "en-gb" : 1 , en : 1 , eo : 1 , es : 1 , "es-mx" : 1 , et : 1 , eu : 1 , fa : 1 , fi : 1 , fo : 1 , "fr-ca" : 1 , fr : 1 , gl : 1 , gu : 1 , he : 1 , hi : 1 , hr : 1 , hu : 1 , id : 1 , is : 1 , it : 1 , ja : 1 , ka : 1 , km : 1 , ko : 1 , ku : 1 , lt : 1 , lv : 1 , mk : 1 , mn : 1 , ms : 1 , nb : 1 , nl : 1 , no : 1 , oc : 1 , pl : 1 , "pt-br" : 1 , pt : 1 , ro : 1 , ru : 1 , si : 1 , sk : 1 , sl : 1 , sq : 1 , "sr-latn" : 1 , sr : 1 , sv : 1 , th : 1 , tr : 1 , tt : 1 , ug : 1 , uk : 1 , vi : 1 , "zh-cn" : 1 , zh : 1 } , rtl : { ar : 1 , fa : 1 , he : 1 , ku : 1 , ug : 1 } , load : function ( a , d , b ) { a && CKEDITOR . lang . languages [ a ] ||
( a = this . detect ( d , a ) ) ; var c = this ; d = function ( ) { c [ a ] . dir = c . rtl [ a ] ? "rtl" : "ltr" ; b ( a , c [ a ] ) } ; this [ a ] ? d ( ) : CKEDITOR . scriptLoader . load ( CKEDITOR . getUrl ( "lang/" + a + ".js" ) , d , this ) } , detect : function ( a , d ) { var b = this . languages ; d = d || navigator . userLanguage || navigator . language || a ; var c = d . toLowerCase ( ) . match ( /([a-z]+)(?:-([a-z]+))?/ ) , f = c [ 1 ] , c = c [ 2 ] ; b [ f + "-" + c ] ? f = f + "-" + c : b [ f ] || ( f = null ) ; CKEDITOR . lang . detect = f ? function ( ) { return f } : function ( a ) { return a } ; return f || a } } } ) ( ) ;
CKEDITOR . scriptLoader = function ( ) { var a = { } , d = { } ; return { load : function ( b , c , f , h ) { var k = "string" == typeof b ; k && ( b = [ b ] ) ; f || ( f = CKEDITOR ) ; var g = b . length , m = [ ] , r = [ ] , e = function ( a ) { c && ( k ? c . call ( f , a ) : c . call ( f , m , r ) ) } ; if ( 0 === g ) e ( ! 0 ) ; else { var z = function ( a , b ) { ( b ? m : r ) . push ( a ) ; 0 >= -- g && ( h && CKEDITOR . document . getDocumentElement ( ) . removeStyle ( "cursor" ) , e ( b ) ) } , y = function ( b , c ) { a [ b ] = 1 ; var f = d [ b ] ; delete d [ b ] ; for ( var e = 0 ; e < f . length ; e ++ ) f [ e ] ( b , c ) } , A = function ( b ) { if ( a [ b ] ) z ( b , ! 0 ) ; else { var f = d [ b ] || ( d [ b ] = [ ] ) ; f . push ( z ) ; if ( ! ( 1 < f . length ) ) { var e =
new CKEDITOR . dom . element ( "script" ) ; e . setAttributes ( { type : "text/javascript" , src : b } ) ; c && ( CKEDITOR . env . ie && ( 8 >= CKEDITOR . env . version || CKEDITOR . env . ie9Compat ) ? e . $ . onreadystatechange = function ( ) { if ( "loaded" == e . $ . readyState || "complete" == e . $ . readyState ) e . $ . onreadystatechange = null , y ( b , ! 0 ) } : ( e . $ . onload = function ( ) { setTimeout ( function ( ) { y ( b , ! 0 ) } , 0 ) } , e . $ . onerror = function ( ) { y ( b , ! 1 ) } ) ) ; e . appendTo ( CKEDITOR . document . getHead ( ) ) } } } ; h && CKEDITOR . document . getDocumentElement ( ) . setStyle ( "cursor" , "wait" ) ; for ( var D = 0 ; D < g ; D ++ ) A ( b [ D ] ) } } ,
CKEDITOR . scriptLoader = function ( ) { var a = { } , d = { } ; return { load : function ( b , c , f , h ) { var k = "string" == typeof b ; k && ( b = [ b ] ) ; f || ( f = CKEDITOR ) ; var g = b . length , n = [ ] , r = [ ] , e = function ( a ) { c && ( k ? c . call ( f , a ) : c . call ( f , n , r ) ) } ; if ( 0 === g ) e ( ! 0 ) ; else { var y = function ( a , b ) { ( b ? n : r ) . push ( a ) ; 0 >= -- g && ( h && CKEDITOR . document . getDocumentElement ( ) . removeStyle ( "cursor" ) , e ( b ) ) } , v = function ( b , c ) { a [ b ] = 1 ; var f = d [ b ] ; delete d [ b ] ; for ( var e = 0 ; e < f . length ; e ++ ) f [ e ] ( b , c ) } , A = function ( b ) { if ( a [ b ] ) y ( b , ! 0 ) ; else { var f = d [ b ] || ( d [ b ] = [ ] ) ; f . push ( y ) ; if ( ! ( 1 < f . length ) ) { var e =
new CKEDITOR . dom . element ( "script" ) ; e . setAttributes ( { type : "text/javascript" , src : b } ) ; c && ( CKEDITOR . env . ie && ( 8 >= CKEDITOR . env . version || CKEDITOR . env . ie9Compat ) ? e . $ . onreadystatechange = function ( ) { if ( "loaded" == e . $ . readyState || "complete" == e . $ . readyState ) e . $ . onreadystatechange = null , v ( b , ! 0 ) } : ( e . $ . onload = function ( ) { setTimeout ( function ( ) { v ( b , ! 0 ) } , 0 ) } , e . $ . onerror = function ( ) { v ( b , ! 1 ) } ) ) ; e . appendTo ( CKEDITOR . document . getHead ( ) ) } } } ; h && CKEDITOR . document . getDocumentElement ( ) . setStyle ( "cursor" , "wait" ) ; for ( var D = 0 ; D < g ; D ++ ) A ( b [ D ] ) } } ,
queue : function ( ) { function a ( ) { var b ; ( b = c [ 0 ] ) && this . load ( b . scriptUrl , b . callback , CKEDITOR , 0 ) } var c = [ ] ; return function ( d , h ) { var k = this ; c . push ( { scriptUrl : d , callback : function ( ) { h && h . apply ( this , arguments ) ; c . shift ( ) ; a . call ( k ) } } ) ; 1 == c . length && a . call ( this ) } } ( ) } } ( ) ; CKEDITOR . resourceManager = function ( a , d ) { this . basePath = a ; this . fileName = d ; this . registered = { } ; this . loaded = { } ; this . externals = { } ; this . _ = { waitingList : { } } } ;
CKEDITOR . resourceManager . prototype = { add : function ( a , d ) { if ( this . registered [ a ] ) throw Error ( '[CKEDITOR.resourceManager.add] The resource name "' + a + '" is already registered.' ) ; var b = this . registered [ a ] = d || { } ; b . name = a ; b . path = this . getPath ( a ) ; CKEDITOR . fire ( a + CKEDITOR . tools . capitalize ( this . fileName ) + "Ready" , b ) ; return this . get ( a ) } , get : function ( a ) { return this . registered [ a ] || null } , getPath : function ( a ) { var d = this . externals [ a ] ; return CKEDITOR . getUrl ( d && d . dir || this . basePath + a + "/" ) } , getFilePath : function ( a ) { var d = this . externals [ a ] ;
return CKEDITOR . getUrl ( this . getPath ( a ) + ( d ? d . file : this . fileName + ".js" ) ) } , addExternal : function ( a , d , b ) { a = a . split ( "," ) ; for ( var c = 0 ; c < a . length ; c ++ ) { var f = a [ c ] ; b || ( d = d . replace ( /[^\/]+$/ , function ( a ) { b = a ; return "" } ) ) ; this . externals [ f ] = { dir : d , file : b || this . fileName + ".js" } } } , load : function ( a , d , b ) { CKEDITOR . tools . isArray ( a ) || ( a = a ? [ a ] : [ ] ) ; for ( var c = this . loaded , f = this . registered , h = [ ] , k = { } , g = { } , m = 0 ; m < a . length ; m ++ ) { var r = a [ m ] ; if ( r ) if ( c [ r ] || f [ r ] ) g [ r ] = this . get ( r ) ; else { var e = this . getFilePath ( r ) ; h . push ( e ) ; e in k || ( k [ e ] =
[ ] ) ; k [ e ] . push ( r ) } } CKEDITOR . scriptLoader . load ( h , function ( a , f ) { if ( f . length ) throw Error ( '[CKEDITOR.resourceManager.load] Resource name "' + k [ f [ 0 ] ] . join ( "," ) + '" was not found at "' + f [ 0 ] + '".' ) ; for ( var e = 0 ; e < a . length ; e ++ ) for ( var h = k [ a [ e ] ] , m = 0 ; m < h . length ; m ++ ) { var p = h [ m ] ; g [ p ] = this . get ( p ) ; c [ p ] = 1 } d . call ( b , g ) } , this ) } } ; CKEDITOR . plugins = new CKEDITOR . resourceManager ( "plugins/" , "plugin" ) ;
CKEDITOR . plugins . load = CKEDITOR . tools . override ( CKEDITOR . plugins . load , function ( a ) { var d = { } ; return function ( b , c , f ) { var h = { } , k = function ( b ) { a . call ( this , b , function ( a ) { CKEDITOR . tools . extend ( h , a ) ; var b = [ ] , e ; for ( e in a ) { var g = a [ e ] , y = g && g . requires ; if ( ! d [ e ] ) { if ( g . icons ) for ( var A = g . icons . split ( "," ) , D = A . length ; D -- ; ) CKEDITOR . skin . addIcon ( A [ D ] , g . path + "icons/" + ( CKEDITOR . env . hidpi && g . hidpi ? "hidpi/" : "" ) + A [ D ] + ".png" ) ; d [ e ] = 1 } if ( y ) for ( y . split && ( y = y . split ( "," ) ) , g = 0 ; g < y . length ; g ++ ) h [ y [ g ] ] || b . push ( y [ g ] ) } if ( b . length ) k . call ( this ,
return CKEDITOR . getUrl ( this . getPath ( a ) + ( d ? d . file : this . fileName + ".js" ) ) } , addExternal : function ( a , d , b ) { a = a . split ( "," ) ; for ( var c = 0 ; c < a . length ; c ++ ) { var f = a [ c ] ; b || ( d = d . replace ( /[^\/]+$/ , function ( a ) { b = a ; return "" } ) ) ; this . externals [ f ] = { dir : d , file : b || this . fileName + ".js" } } } , load : function ( a , d , b ) { CKEDITOR . tools . isArray ( a ) || ( a = a ? [ a ] : [ ] ) ; for ( var c = this . loaded , f = this . registered , h = [ ] , k = { } , g = { } , n = 0 ; n < a . length ; n ++ ) { var r = a [ n ] ; if ( r ) if ( c [ r ] || f [ r ] ) g [ r ] = this . get ( r ) ; else { var e = this . getFilePath ( r ) ; h . push ( e ) ; e in k || ( k [ e ] =
[ ] ) ; k [ e ] . push ( r ) } } CKEDITOR . scriptLoader . load ( h , function ( a , f ) { if ( f . length ) throw Error ( '[CKEDITOR.resourceManager.load] Resource name "' + k [ f [ 0 ] ] . join ( "," ) + '" was not found at "' + f [ 0 ] + '".' ) ; for ( var e = 0 ; e < a . length ; e ++ ) for ( var h = k [ a [ e ] ] , n = 0 ; n < h . length ; n ++ ) { var m = h [ n ] ; g [ m ] = this . get ( m ) ; c [ m ] = 1 } d . call ( b , g ) } , this ) } } ; CKEDITOR . plugins = new CKEDITOR . resourceManager ( "plugins/" , "plugin" ) ;
CKEDITOR . plugins . load = CKEDITOR . tools . override ( CKEDITOR . plugins . load , function ( a ) { var d = { } ; return function ( b , c , f ) { var h = { } , k = function ( b ) { a . call ( this , b , function ( a ) { CKEDITOR . tools . extend ( h , a ) ; var b = [ ] , e ; for ( e in a ) { var g = a [ e ] , v = g && g . requires ; if ( ! d [ e ] ) { if ( g . icons ) for ( var A = g . icons . split ( "," ) , D = A . length ; D -- ; ) CKEDITOR . skin . addIcon ( A [ D ] , g . path + "icons/" + ( CKEDITOR . env . hidpi && g . hidpi ? "hidpi/" : "" ) + A [ D ] + ".png" ) ; d [ e ] = 1 } if ( v ) for ( v . split && ( v = v . split ( "," ) ) , g = 0 ; g < v . length ; g ++ ) h [ v [ g ] ] || b . push ( v [ g ] ) } if ( b . length ) k . call ( this ,
b ) ; else { for ( e in h ) g = h [ e ] , g . onLoad && ! g . onLoad . _called && ( ! 1 === g . onLoad ( ) && delete h [ e ] , g . onLoad . _called = 1 ) ; c && c . call ( f || window , h ) } } , this ) } ; k . call ( this , b ) } } ) ; CKEDITOR . plugins . setLang = function ( a , d , b ) { var c = this . get ( a ) ; a = c . langEntries || ( c . langEntries = { } ) ; c = c . lang || ( c . lang = [ ] ) ; c . split && ( c = c . split ( "," ) ) ; - 1 == CKEDITOR . tools . indexOf ( c , d ) && c . push ( d ) ; a [ d ] = b } ; CKEDITOR . ui = function ( a ) { if ( a . ui ) return a . ui ; this . items = { } ; this . instances = { } ; this . editor = a ; this . _ = { handlers : { } } ; return this } ;
CKEDITOR . ui . prototype = { add : function ( a , d , b ) { b . name = a . toLowerCase ( ) ; var c = this . items [ a ] = { type : d , command : b . command || null , args : Array . prototype . slice . call ( arguments , 2 ) } ; CKEDITOR . tools . extend ( c , b ) } , get : function ( a ) { return this . instances [ a ] } , create : function ( a ) { var d = this . items [ a ] , b = d && this . _ . handlers [ d . type ] , c = d && d . command && this . editor . getCommand ( d . command ) , b = b && b . create . apply ( this , d . args ) ; this . instances [ a ] = b ; c && c . uiItems . push ( b ) ; b && ! b . type && ( b . type = d . type ) ; return b } , addHandler : function ( a , d ) { this . _ . handlers [ a ] =
d } , space : function ( a ) { return CKEDITOR . document . getById ( this . spaceId ( a ) ) } , spaceId : function ( a ) { return this . editor . id + "_" + a } } ; CKEDITOR . event . implementOn ( CKEDITOR . ui ) ;
@@ -263,25 +271,25 @@ c);this.on("selectionChange",function(a){h(this,a.data.path)});this.on("activeFi
this . status ? g ( this , a ) : CKEDITOR . warn ( "editor-incorrect-destroy" ) } , 0 , this ) } function d ( ) { do var a = "editor" + ++ D ; while ( CKEDITOR . instances [ a ] ) ; return a } function b ( a , b ) { return b == CKEDITOR . ELEMENT _MODE _INLINE ? a . is ( CKEDITOR . dtd . $editable ) || a . is ( "textarea" ) : b == CKEDITOR . ELEMENT _MODE _REPLACE ? ! a . is ( CKEDITOR . dtd . $nonBodyContent ) : 1 } function c ( ) { var a = this . commands , b ; for ( b in a ) f ( this , a [ b ] ) } function f ( a , b ) { b [ b . startDisabled ? "disable" : a . readOnly && ! b . readOnly ? "disable" : b . modes [ a . mode ] ? "enable" : "disable" ] ( ) } function h ( a ,
b , c ) { if ( b ) { var d , f , e = a . commands ; for ( f in e ) d = e [ f ] , ( c || d . contextSensitive ) && d . refresh ( a , b ) } } function k ( a ) { var b = a . config . customConfig ; if ( ! b ) return ! 1 ; var b = CKEDITOR . getUrl ( b ) , c = x [ b ] || ( x [ b ] = { } ) ; c . fn ? ( c . fn . call ( a , a . config ) , CKEDITOR . getUrl ( a . config . customConfig ) != b && k ( a ) || a . fireOnce ( "customConfigLoaded" ) ) : CKEDITOR . scriptLoader . queue ( b , function ( ) { c . fn = CKEDITOR . editorConfig ? CKEDITOR . editorConfig : function ( ) { } ; k ( a ) } ) ; return ! 0 } function g ( a , b ) { a . on ( "customConfigLoaded" , function ( ) { if ( b ) { if ( b . on ) for ( var c in b . on ) a . on ( c ,
b . on [ c ] ) ; CKEDITOR . tools . extend ( a . config , b , ! 0 ) ; delete a . config . on } c = a . config ; a . readOnly = c . readOnly ? ! 0 : a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? a . element . is ( "textarea" ) ? a . element . hasAttribute ( "disabled" ) || a . element . hasAttribute ( "readonly" ) : a . element . isReadOnly ( ) : a . elementMode == CKEDITOR . ELEMENT _MODE _REPLACE ? a . element . hasAttribute ( "disabled" ) || a . element . hasAttribute ( "readonly" ) : ! 1 ; a . blockless = a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? ! ( a . element . is ( "textarea" ) || CKEDITOR . dtd [ a . element . getName ( ) ] . p ) :
! 1 ; a . tabIndex = c . tabIndex || a . element && a . element . getAttribute ( "tabindex" ) || 0 ; a . activeEnterMode = a . enterMode = a . blockless ? CKEDITOR . ENTER _BR : c . enterMode ; a . activeShiftEnterMode = a . shiftEnterMode = a . blockless ? CKEDITOR . ENTER _BR : c . shiftEnterMode ; c . skin && ( CKEDITOR . skinName = c . skin ) ; a . fireOnce ( "configLoaded" ) ; a . dataProcessor = new CKEDITOR . htmlDataProcessor ( a ) ; a . filter = a . activeFilter = new CKEDITOR . filter ( a ) ; m ( a ) } ) ; b && null != b . customConfig && ( a . config . customConfig = b . customConfig ) ; k ( a ) || a . fireOnce ( "customConfigLoaded" ) }
function m ( a ) { CKEDITOR . skin . loadPart ( "editor" , function ( ) { r ( a ) } ) } function r ( a ) { CKEDITOR . lang . load ( a . config . language , a . config . defaultLanguage , function ( b , c ) { var d = a . config . title ; a . langCode = b ; a . lang = CKEDITOR . tools . prototypedCopy ( c ) ; a . title = "string" == typeof d || ! 1 === d ? d : [ a . lang . editor , a . name ] . join ( ", " ) ; a . config . contentsLangDirection || ( a . config . contentsLangDirection = a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? a . element . getDirection ( 1 ) : a . lang . dir ) ; a . fire ( "langLoaded" ) ; e ( a ) } ) } function e ( a ) { a . getStylesSet ( function ( b ) { a . once ( "loaded" ,
function ( ) { a . fire ( "stylesSet" , { styles : b } ) } , null , null , 1 ) ; z ( a ) } ) } function z ( a ) { var b = a . config , c = b . plugins , d = b . extraPlugins , f = b . removePlugins ; if ( d ) var e = new RegExp ( "(?:^|,)(?:" + d . replace ( /\s*,\s* /g , "|" ) + ")(?\x3d,|$)" , "g" ) , c = c . replace ( e , "" ) , c = c + ( "," + d ) ; if ( f ) var h = new RegExp ( "(?:^|,)(?:" + f . replace ( /\s*,\s* /g , "|" ) + ")(?\x3d,|$)" , "g" ) , c = c . replace ( h , "" ) ; CKEDITOR . env . air && ( c += ",adobeair" ) ; CKEDITOR . plugins . load ( c . split ( "," ) , function ( c ) { var d = [ ] , f = [ ] , e = [ ] ; a . plugins = c ; for ( var l in c ) { var w = c [ l ] , q = w . lang , k = null ,
g = w . requires , n ; CKEDITOR . tools . isArray ( g ) && ( g = g . join ( "," ) ) ; if ( g && ( n = g . match ( h ) ) ) for ( ; g = n . pop ( ) ; ) CKEDITOR . error ( "editor-plugin-required" , { plugin : g . replace ( "," , "" ) , requiredBy : l } ) ; q && ! a . lang [ l ] && ( q . split && ( q = q . split ( "," ) ) , 0 <= CKEDITOR . tools . indexOf ( q , a . langCode ) ? k = a . langCode : ( k = a . langCode . replace ( /-.*/ , "" ) , k = k != a . langCode && 0 <= CKEDITOR . tools . indexOf ( q , k ) ? k : 0 <= CKEDITOR . tools . indexOf ( q , "en" ) ? "en" : q [ 0 ] ) , w . langEntries && w . langEntries [ k ] ? ( a . lang [ l ] = w . langEntries [ k ] , k = null ) : e . push ( CKEDITOR . getUrl ( w . path + "lang/" +
k + ".js" ) ) ) ; f . push ( k ) ; d . push ( w ) } CKEDITOR . scriptLoader . load ( e , function ( ) { for ( var c = [ "beforeInit" , "init" , "afterInit" ] , e = 0 ; e < c . length ; e ++ ) for ( var l = 0 ; l < d . length ; l ++ ) { var n = d [ l ] ; 0 === e && f [ l ] && n . lang && n . langEntries && ( a . lang [ n . name ] = n . langEntries [ f [ l ] ] ) ; if ( n [ c [ e ] ] ) n [ c [ e ] ] ( a ) } a . fireOnce ( "pluginsLoaded" ) ; b . keystrokes && a . setKeystroke ( a . config . keystrokes ) ; for ( l = 0 ; l < a . config . blockedKeystrokes . length ; l ++ ) a . keystrokeHandler . blockedKeystrokes [ a . config . blockedKeystrokes [ l ] ] = 1 ; a . status = "loaded" ; a . fireOnce ( "loaded" ) ;
CKEDITOR . fire ( "instanceLoaded" , null , a ) } ) } ) } function y ( ) { var a = this . element ; if ( a && this . elementMode != CKEDITOR . ELEMENT _MODE _APPENDTO ) { var b = this . getData ( ) ; this . config . htmlEncodeOutput && ( b = CKEDITOR . tools . htmlEncode ( b ) ) ; a . is ( "textarea" ) ? a . setValue ( b ) : a . setHtml ( b ) ; return ! 0 } return ! 1 } function A ( a , b ) { function c ( a ) { var b = a . startContainer , d = a . endContainer ; return b . is && ( b . is ( "tr" ) || b . is ( "td" ) && b . equals ( d ) && a . endOffset === b . getChildCount ( ) ) ? ! 0 : ! 1 } function d ( a ) { var b = a . startContainer ; return b . is ( "tr" ) ? a . cloneContents ( ) :
b . clone ( ! 0 ) } for ( var f = new CKEDITOR . dom . documentFragment , e , h , k , g = 0 ; g < a . length ; g ++ ) { var M = a [ g ] , t = M . startContainer . getAscendant ( "tr" , ! 0 ) ; c ( M ) ? ( e || ( e = t . getAscendant ( "table" ) . clone ( ) , e . append ( t . getAscendant ( { thead : 1 , tbody : 1 , tfoot : 1 } ) . clone ( ) ) , f . append ( e ) , e = e . findOne ( "thead, tbody, tfoot" ) ) , h && h . equals ( t ) || ( h = t , k = t . clone ( ) , e . append ( k ) ) , k . append ( d ( M ) ) ) : f . append ( M . cloneContents ( ) ) } return e ? f : b . getHtmlFromRange ( a [ 0 ] ) } a . prototype = CKEDITOR . editor . prototype ; CKEDITOR . editor = a ; var D = 0 , x = { } ; CKEDITOR . tools . extend ( CKEDITOR . editor . prototype ,
{ addCommand : function ( a , b ) { b . name = a . toLowerCase ( ) ; var c = new CKEDITOR . command ( this , b ) ; this . mode && f ( this , c ) ; return this . commands [ a ] = c } , _attachToForm : function ( ) { function a ( b ) { c . updateElement ( ) ; c . _ . required && ! d . getValue ( ) && ! 1 === c . fire ( "required" ) && b . data . preventDefault ( ) } function b ( a ) { return ! ! ( a && a . call && a . apply ) } var c = this , d = c . element , f = new CKEDITOR . dom . element ( d . $ . form ) ; d . is ( "textarea" ) && f && ( f . on ( "submit" , a ) , b ( f . $ . submit ) && ( f . $ . submit = CKEDITOR . tools . override ( f . $ . submit , function ( b ) { return function ( ) { a ( ) ;
b . apply ? b . apply ( this ) : b ( ) } } ) ) , c . on ( "destroy" , function ( ) { f . removeListener ( "submit" , a ) } ) ) } , destroy : function ( a ) { this . fire ( "beforeDestroy" ) ; ! a && y . call ( this ) ; this . editable ( null ) ; this . filter && ( this . filter . destroy ( ) , delete this . filter ) ; delete this . activeFilter ; this . status = "destroyed" ; this . fire ( "destroy" ) ; this . removeAllListeners ( ) ; CKEDITOR . remove ( this ) ; CKEDITOR . fire ( "instanceDestroyed" , null , this ) } , elementPath : function ( a ) { if ( ! a ) { a = this . getSelection ( ) ; if ( ! a ) return null ; a = a . getStartElement ( ) } return a ? new CKEDITOR . dom . elementPath ( a ,
this . editable ( ) ) : null } , createRange : function ( ) { var a = this . editable ( ) ; return a ? new CKEDITOR . dom . range ( a ) : null } , execCommand : function ( a , b ) { var c = this . getCommand ( a ) , d = { name : a , commandData : b || { } , command : c } ; return c && c . state != CKEDITOR . TRISTATE _DISABLED && ! 1 !== this . fire ( "beforeCommandExec" , d ) && ( d . returnValue = c . exec ( d . commandData ) , ! c . async && ! 1 !== this . fire ( "afterCommandExec" , d ) ) ? d . returnValue : ! 1 } , getCommand : function ( a ) { return this . commands [ a ] } , getData : function ( a ) { ! a && this . fire ( "beforeGetData" ) ; var b = this . _ . data ;
"string" != typeof b && ( b = ( b = this . element ) && this . elementMode == CKEDITOR . ELEMENT _MODE _REPLACE ? b . is ( "textarea" ) ? b . getValue ( ) : b . getHtml ( ) : "" ) ; b = { dataValue : b } ; ! a && this . fire ( "getData" , b ) ; return b . dataValue } , getSnapshot : function ( ) { var a = this . fire ( "getSnapshot" ) ; "string" != typeof a && ( a = ( a = this . element ) && this . elementMode == CKEDITOR . ELEMENT _MODE _REPLACE ? a . is ( "textarea" ) ? a . getValue ( ) : a . getHtml ( ) : "" ) ; return a } , loadSnapshot : function ( a ) { this . fire ( "loadSnapshot" , a ) } , setData : function ( a , b , c ) { var d = ! 0 , f = b ; b && "object" ==
typeof b && ( c = b . internal , f = b . callback , d = ! b . noSnapshot ) ; ! c && d && this . fire ( "saveSnapshot" ) ; if ( f || ! c ) this . once ( "dataReady" , function ( a ) { ! c && d && this . fire ( "saveSnapshot" ) ; f && f . call ( a . editor ) } ) ; a = { dataValue : a } ; ! c && this . fire ( "setData" , a ) ; this . _ . data = a . dataValue ; ! c && this . fire ( "afterSetData" , a ) } , setReadOnly : function ( a ) { a = null == a || a ; this . readOnly != a && ( this . readOnly = a , this . keystrokeHandler . blockedKeystrokes [ 8 ] = + a , this . editable ( ) . setReadOnly ( a ) , this . fire ( "readOnly" ) ) } , insertHtml : function ( a , b , c ) { this . fire ( "insertHtml" ,
{ dataValue : a , mode : b , range : c } ) } , insertText : function ( a ) { this . fire ( "insertText" , a ) } , insertElement : function ( a ) { this . fire ( "insertElement" , a ) } , getSelectedHtml : function ( a ) { var b = this . editable ( ) , c = this . getSelection ( ) , c = c && c . getRanges ( ) ; if ( ! b || ! c || 0 === c . length ) return null ; b = A ( c , b ) ; return a ? b . getHtml ( ) : b } , extractSelectedHtml : function ( a , b ) { var c = this . editable ( ) , d = this . getSelection ( ) . getRanges ( ) , f = new CKEDITOR . dom . documentFragment , e ; if ( ! c || 0 === d . length ) return null ; for ( e = 0 ; e < d . length ; e ++ ) f . append ( c . extractHtmlFromRange ( d [ e ] ,
b ) ) ; b || this . getSelection ( ) . selectRanges ( [ d [ 0 ] ] ) ; return a ? f . getHtml ( ) : f } , focus : function ( ) { this . fire ( "beforeFocus" ) } , checkDirty : function ( ) { return "ready" == this . status && this . _ . previousValue !== this . getSnapshot ( ) } , resetDirty : function ( ) { this . _ . previousValue = this . getSnapshot ( ) } , updateElement : function ( ) { return y . call ( this ) } , setKeystroke : function ( ) { for ( var a = this . keystrokeHandler . keystrokes , b = CKEDITOR . tools . isArray ( arguments [ 0 ] ) ? arguments [ 0 ] : [ [ ] . slice . call ( arguments , 0 ) ] , c , d , f = b . length ; f -- ; ) c = b [ f ] , d = 0 , CKEDITOR . tools . isArray ( c ) &&
( d = c [ 1 ] , c = c [ 0 ] ) , d ? a [ c ] = d : delete a [ c ] } , getCommandKeystroke : function ( a ) { if ( a = "string" === typeof a ? this . getCommand ( a ) : a ) { var b = CKEDITOR . tools . object . findKey ( this . commands , a ) , c = this . keystrokeHandler . keystrokes , d ; if ( a . fakeKeystroke ) return a . fakeKeystroke ; for ( d in c ) if ( c . hasOwnProperty ( d ) && c [ d ] == b ) return d } return null } , addFeature : function ( a ) { return this . filter . addFeature ( a ) } , setActiveFilter : function ( a ) { a || ( a = this . filter ) ; this . activeFilter !== a && ( this . activeFilter = a , this . fire ( "activeFilterChange" ) , a === this . filter ?
this . setActiveEnterMode ( null , null ) : this . setActiveEnterMode ( a . getAllowedEnterMode ( this . enterMode ) , a . getAllowedEnterMode ( this . shiftEnterMode , ! 0 ) ) ) } , setActiveEnterMode : function ( a , b ) { a = a ? this . blockless ? CKEDITOR . ENTER _BR : a : this . enterMode ; b = b ? this . blockless ? CKEDITOR . ENTER _BR : b : this . shiftEnterMode ; if ( this . activeEnterMode != a || this . activeShiftEnterMode != b ) this . activeEnterMode = a , this . activeShiftEnterMode = b , this . fire ( "activeEnterModeChange" ) } , showNotification : function ( a ) { alert ( a ) } } ) } ) ( ) ;
CKEDITOR . ELEMENT _MODE _NONE = 0 ; CKEDITOR . ELEMENT _MODE _REPLACE = 1 ; CKEDITOR . ELEMENT _MODE _APPENDTO = 2 ; CKEDITOR . ELEMENT _MODE _INLINE = 3 ; CKEDITOR . htmlParser = function ( ) { this . _ = { htmlPartsRegex : /<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--\x3e)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g } } ;
! 1 ; a . tabIndex = c . tabIndex || a . element && a . element . getAttribute ( "tabindex" ) || 0 ; a . activeEnterMode = a . enterMode = a . blockless ? CKEDITOR . ENTER _BR : c . enterMode ; a . activeShiftEnterMode = a . shiftEnterMode = a . blockless ? CKEDITOR . ENTER _BR : c . shiftEnterMode ; c . skin && ( CKEDITOR . skinName = c . skin ) ; a . fireOnce ( "configLoaded" ) ; a . dataProcessor = new CKEDITOR . htmlDataProcessor ( a ) ; a . filter = a . activeFilter = new CKEDITOR . filter ( a ) ; n ( a ) } ) ; b && null != b . customConfig && ( a . config . customConfig = b . customConfig ) ; k ( a ) || a . fireOnce ( "customConfigLoaded" ) }
function n ( a ) { CKEDITOR . skin . loadPart ( "editor" , function ( ) { r ( a ) } ) } function r ( a ) { CKEDITOR . lang . load ( a . config . language , a . config . defaultLanguage , function ( b , c ) { var d = a . config . title ; a . langCode = b ; a . lang = CKEDITOR . tools . prototypedCopy ( c ) ; a . title = "string" == typeof d || ! 1 === d ? d : [ a . lang . editor , a . name ] . join ( ", " ) ; a . config . contentsLangDirection || ( a . config . contentsLangDirection = a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? a . element . getDirection ( 1 ) : a . lang . dir ) ; a . fire ( "langLoaded" ) ; e ( a ) } ) } function e ( a ) { a . getStylesSet ( function ( b ) { a . once ( "loaded" ,
function ( ) { a . fire ( "stylesSet" , { styles : b } ) } , null , null , 1 ) ; y ( a ) } ) } function y ( a ) { function b ( a ) { if ( ! a ) return "" ; CKEDITOR . tools . isArray ( a ) && ( a = a . join ( "," ) ) ; return a . replace ( /\s/g , "" ) } var c = a . config , d = b ( c . plugins ) , f = b ( c . extraPlugins ) , e = b ( c . removePlugins ) ; if ( f ) var h = new RegExp ( "(?:^|,)(?:" + f . replace ( /, /g , "|" ) + ")(?\x3d,|$)" , "g" ) , d = d . replace ( h , "" ) , d = d + ( "," + f ) ; if ( e ) var g = new RegExp ( "(?:^|,)(?:" + e . replace ( /, /g , "|" ) + ")(?\x3d,|$)" , "g" ) , d = d . replace ( g , "" ) ; CKEDITOR . env . air && ( d += ",adobeair" ) ; CKEDITOR . plugins . load ( d . split ( "," ) ,
function ( b ) { var d = [ ] , f = [ ] , e = [ ] ; a . plugins = b ; for ( var l in b ) { var h = b [ l ] , t = h . lang , k = null , p = h . requires , F ; CKEDITOR . tools . isArray ( p ) && ( p = p . join ( "," ) ) ; if ( p && ( F = p . match ( g ) ) ) for ( ; p = F . pop ( ) ; ) CKEDITOR . error ( "editor-plugin-required" , { plugin : p . replace ( "," , "" ) , requiredBy : l } ) ; t && ! a . lang [ l ] && ( t . split && ( t = t . split ( "," ) ) , 0 <= CKEDITOR . tools . indexOf ( t , a . langCode ) ? k = a . langCode : ( k = a . langCode . replace ( /-.*/ , "" ) , k = k != a . langCode && 0 <= CKEDITOR . tools . indexOf ( t , k ) ? k : 0 <= CKEDITOR . tools . indexOf ( t , "en" ) ? "en" : t [ 0 ] ) , h . langEntries && h . langEntries [ k ] ?
( a . lang [ l ] = h . langEntries [ k ] , k = null ) : e . push ( CKEDITOR . getUrl ( h . path + "lang/" + k + ".js" ) ) ) ; f . push ( k ) ; d . push ( h ) } CKEDITOR . scriptLoader . load ( e , function ( ) { for ( var b = [ "beforeInit" , "init" , "afterInit" ] , e = 0 ; e < b . length ; e ++ ) for ( var l = 0 ; l < d . length ; l ++ ) { var p = d [ l ] ; 0 === e && f [ l ] && p . lang && p . langEntries && ( a . lang [ p . name ] = p . langEntries [ f [ l ] ] ) ; if ( p [ b [ e ] ] ) p [ b [ e ] ] ( a ) } a . fireOnce ( "pluginsLoaded" ) ; c . keystrokes && a . setKeystroke ( a . config . keystrokes ) ; for ( l = 0 ; l < a . config . blockedKeystrokes . length ; l ++ ) a . keystrokeHandler . blockedKeystrokes [ a . config . blockedKeystrokes [ l ] ] =
1 ; a . status = "loaded" ; a . fireOnce ( "loaded" ) ; CKEDITOR . fire ( "instanceLoaded" , null , a ) } ) } ) } function v ( ) { var a = this . element ; if ( a && this . elementMode != CKEDITOR . ELEMENT _MODE _APPENDTO ) { var b = this . getData ( ) ; this . config . htmlEncodeOutput && ( b = CKEDITOR . tools . htmlEncode ( b ) ) ; a . is ( "textarea" ) ? a . setValue ( b ) : a . setHtml ( b ) ; return ! 0 } return ! 1 } function A ( a , b ) { function c ( a ) { var b = a . startContainer , d = a . endContainer ; return b . is && ( b . is ( "tr" ) || b . is ( "td" ) && b . equals ( d ) && a . endOffset === b . getChildCount ( ) ) ? ! 0 : ! 1 } function d ( a ) { var b = a . startContainer ;
return b . is ( "tr" ) ? a . cloneContents ( ) : b . clone ( ! 0 ) } for ( var f = new CKEDITOR . dom . documentFragment , e , h , g , k = 0 ; k < a . length ; k ++ ) { var M = a [ k ] , q = M . startContainer . getAscendant ( "tr" , ! 0 ) ; c ( M ) ? ( e || ( e = q . getAscendant ( "table" ) . clone ( ) , e . append ( q . getAscendant ( { thead : 1 , tbody : 1 , tfoot : 1 } ) . clone ( ) ) , f . append ( e ) , e = e . findOne ( "thead, tbody, tfoot" ) ) , h && h . equals ( q ) || ( h = q , g = q . clone ( ) , e . append ( g ) ) , g . append ( d ( M ) ) ) : f . append ( M . cloneContents ( ) ) } return e ? f : b . getHtmlFromRange ( a [ 0 ] ) } a . prototype = CKEDITOR . editor . prototype ; CKEDITOR . editor =
a ; var D = 0 , x = { } ; CKEDITOR . tools . extend ( CKEDITOR . editor . prototype , { addCommand : function ( a , b ) { b . name = a . toLowerCase ( ) ; var c = b instanceof CKEDITOR . command ? b : new CKEDITOR . command ( this , b ) ; this . mode && f ( this , c ) ; return this . commands [ a ] = c } , _attachToForm : function ( ) { function a ( b ) { c . updateElement ( ) ; c . _ . required && ! d . getValue ( ) && ! 1 === c . fire ( "required" ) && b . data . preventDefault ( ) } function b ( a ) { return ! ! ( a && a . call && a . apply ) } var c = this , d = c . element , f = new CKEDITOR . dom . element ( d . $ . form ) ; d . is ( "textarea" ) && f && ( f . on ( "submit" ,
a ) , b ( f . $ . submit ) && ( f . $ . submit = CKEDITOR . tools . override ( f . $ . submit , function ( b ) { return function ( ) { a ( ) ; b . apply ? b . apply ( this ) : b ( ) } } ) ) , c . on ( "destroy" , function ( ) { f . removeListener ( "submit" , a ) } ) ) } , destroy : function ( a ) { this . fire ( "beforeDestroy" ) ; ! a && v . call ( this ) ; this . editable ( null ) ; this . filter && ( this . filter . destroy ( ) , delete this . filter ) ; delete this . activeFilter ; this . status = "destroyed" ; this . fire ( "destroy" ) ; this . removeAllListeners ( ) ; CKEDITOR . remove ( this ) ; CKEDITOR . fire ( "instanceDestroyed" , null , this ) } , elementPath : function ( a ) { if ( ! a ) { a =
this . getSelection ( ) ; if ( ! a ) return null ; a = a . getStartElement ( ) } return a ? new CKEDITOR . dom . elementPath ( a , this . editable ( ) ) : null } , createRange : function ( ) { var a = this . editable ( ) ; return a ? new CKEDITOR . dom . range ( a ) : null } , execCommand : function ( a , b ) { var c = this . getCommand ( a ) , d = { name : a , commandData : b || { } , command : c } ; return c && c . state != CKEDITOR . TRISTATE _DISABLED && ! 1 !== this . fire ( "beforeCommandExec" , d ) && ( d . returnValue = c . exec ( d . commandData ) , ! c . async && ! 1 !== this . fire ( "afterCommandExec" , d ) ) ? d . returnValue : ! 1 } , getCommand : function ( a ) { return this . commands [ a ] } ,
getData : function ( a ) { ! a && this . fire ( "beforeGetData" ) ; var b = this . _ . data ; "string" != typeof b && ( b = ( b = this . element ) && this . elementMode == CKEDITOR . ELEMENT _MODE _REPLACE ? b . is ( "textarea" ) ? b . getValue ( ) : b . getHtml ( ) : "" ) ; b = { dataValue : b } ; ! a && this . fire ( "getData" , b ) ; return b . dataValue } , getSnapshot : function ( ) { var a = this . fire ( "getSnapshot" ) ; "string" != typeof a && ( a = ( a = this . element ) && this . elementMode == CKEDITOR . ELEMENT _MODE _REPLACE ? a . is ( "textarea" ) ? a . getValue ( ) : a . getHtml ( ) : "" ) ; return a } , loadSnapshot : function ( a ) { this . fire ( "loadSnapshot" ,
a ) } , setData : function ( a , b , c ) { var d = ! 0 , f = b ; b && "object" == typeof b && ( c = b . internal , f = b . callback , d = ! b . noSnapshot ) ; ! c && d && this . fire ( "saveSnapshot" ) ; if ( f || ! c ) this . once ( "dataReady" , function ( a ) { ! c && d && this . fire ( "saveSnapshot" ) ; f && f . call ( a . editor ) } ) ; a = { dataValue : a } ; ! c && this . fire ( "setData" , a ) ; this . _ . data = a . dataValue ; ! c && this . fire ( "afterSetData" , a ) } , setReadOnly : function ( a ) { a = null == a || a ; this . readOnly != a && ( this . readOnly = a , this . keystrokeHandler . blockedKeystrokes [ 8 ] = + a , this . editable ( ) . setReadOnly ( a ) , this . fire ( "readOnly" ) ) } ,
insertHtml : function ( a , b , c ) { this . fire ( "insertHtml" , { dataValue : a , mode : b , range : c } ) } , insertText : function ( a ) { this . fire ( "insertText" , a ) } , insertElement : function ( a ) { this . fire ( "insertElement" , a ) } , getSelectedHtml : function ( a ) { var b = this . editable ( ) , c = this . getSelection ( ) , c = c && c . getRanges ( ) ; if ( ! b || ! c || 0 === c . length ) return null ; b = A ( c , b ) ; return a ? b . getHtml ( ) : b } , extractSelectedHtml : function ( a , b ) { var c = this . editable ( ) , d = this . getSelection ( ) . getRanges ( ) , f = new CKEDITOR . dom . documentFragment , e ; if ( ! c || 0 === d . length ) return null ;
for ( e = 0 ; e < d . length ; e ++ ) f . append ( c . extractHtmlFromRange ( d [ e ] , b ) ) ; b || this . getSelection ( ) . selectRanges ( [ d [ 0 ] ] ) ; return a ? f . getHtml ( ) : f } , focus : function ( ) { this . fire ( "beforeFocus" ) } , checkDirty : function ( ) { return "ready" == this . status && this . _ . previousValue !== this . getSnapshot ( ) } , resetDirty : function ( ) { this . _ . previousValue = this . getSnapshot ( ) } , updateElement : function ( ) { return v . call ( this ) } , setKeystroke : function ( ) { for ( var a = this . keystrokeHandler . keystrokes , b = CKEDITOR . tools . isArray ( arguments [ 0 ] ) ? arguments [ 0 ] : [ [ ] . slice . call ( arguments ,
0 ) ] , c , d , f = b . length ; f -- ; ) c = b [ f ] , d = 0 , CKEDITOR . tools . isArray ( c ) && ( d = c [ 1 ] , c = c [ 0 ] ) , d ? a [ c ] = d : delete a [ c ] } , getCommandKeystroke : function ( a ) { if ( a = "string" === typeof a ? this . getCommand ( a ) : a ) { var b = CKEDITOR . tools . object . findKey ( this . commands , a ) , c = this . keystrokeHandler . keystrokes , d ; if ( a . fakeKeystroke ) return a . fakeKeystroke ; for ( d in c ) if ( c . hasOwnProperty ( d ) && c [ d ] == b ) return d } return null } , addFeature : function ( a ) { return this . filter . addFeature ( a ) } , setActiveFilter : function ( a ) { a || ( a = this . filter ) ; this . activeFilter !== a &&
( this . activeFilter = a , this . fire ( "activeFilterChange" ) , a === this . filter ? this . setActiveEnterMode ( null , null ) : this . setActiveEnterMode ( a . getAllowedEnterMode ( this . enterMode ) , a . getAllowedEnterMode ( this . shiftEnterMode , ! 0 ) ) ) } , setActiveEnterMode : function ( a , b ) { a = a ? this . blockless ? CKEDITOR . ENTER _BR : a : this . enterMode ; b = b ? this . blockless ? CKEDITOR . ENTER _BR : b : this . shiftEnterMode ; if ( this . activeEnterMode != a || this . activeShiftEnterMode != b ) this . activeEnterMode = a , this . activeShiftEnterMode = b , this . fire ( "activeEnterModeChange" ) } ,
showNotification : function ( a ) { alert ( a ) } } ) } ) ( ) ; CKEDITOR . ELEMENT _MODE _NONE = 0 ; CKEDITOR . ELEMENT _MODE _REPLACE = 1 ; CKEDITOR . ELEMENT _MODE _APPENDTO = 2 ; CKEDITOR . ELEMENT _MODE _INLINE = 3 ; CKEDITOR . htmlParser = function ( ) { this . _ = { htmlPartsRegex : /<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--\x3e)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g } } ;
( function ( ) { var a = /([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g , d = { checked : 1 , compact : 1 , declare : 1 , defer : 1 , disabled : 1 , ismap : 1 , multiple : 1 , nohref : 1 , noresize : 1 , noshade : 1 , nowrap : 1 , readonly : 1 , selected : 1 } ; CKEDITOR . htmlParser . prototype = { onTagOpen : function ( ) { } , onTagClose : function ( ) { } , onText : function ( ) { } , onCDATA : function ( ) { } , onComment : function ( ) { } , parse : function ( b ) { for ( var c , f , h = 0 , k ; c = this . _ . htmlPartsRegex . exec ( b ) ; ) { f = c . index ; if ( f > h ) if ( h = b . substring ( h , f ) , k ) k . push ( h ) ; else this . onText ( h ) ;
h = this . _ . htmlPartsRegex . lastIndex ; if ( f = c [ 1 ] ) if ( f = f . toLowerCase ( ) , k && CKEDITOR . dtd . $cdata [ f ] && ( this . onCDATA ( k . join ( "" ) ) , k = null ) , ! k ) { this . onTagClose ( f ) ; continue } if ( k ) k . push ( c [ 0 ] ) ; else if ( f = c [ 3 ] ) { if ( f = f . toLowerCase ( ) , ! /="/ . test ( f ) ) { var g = { } , m , r = c [ 4 ] ; c = ! ! c [ 5 ] ; if ( r ) for ( ; m = a . exec ( r ) ; ) { var e = m [ 1 ] . toLowerCase ( ) ; m = m [ 2 ] || m [ 3 ] || m [ 4 ] || "" ; g [ e ] = ! m && d [ e ] ? e : CKEDITOR . tools . htmlDecodeAttr ( m ) } this . onTagOpen ( f , g , c ) ; ! k && CKEDITOR . dtd . $cdata [ f ] && ( k = [ ] ) } } else if ( f = c [ 2 ] ) this . onComment ( f ) } if ( b . length > h ) this . onText ( b . substring ( h ,
h = this . _ . htmlPartsRegex . lastIndex ; if ( f = c [ 1 ] ) if ( f = f . toLowerCase ( ) , k && CKEDITOR . dtd . $cdata [ f ] && ( this . onCDATA ( k . join ( "" ) ) , k = null ) , ! k ) { this . onTagClose ( f ) ; continue } if ( k ) k . push ( c [ 0 ] ) ; else if ( f = c [ 3 ] ) { if ( f = f . toLowerCase ( ) , ! /="/ . test ( f ) ) { var g = { } , n , r = c [ 4 ] ; c = ! ! c [ 5 ] ; if ( r ) for ( ; n = a . exec ( r ) ; ) { var e = n [ 1 ] . toLowerCase ( ) ; n = n [ 2 ] || n [ 3 ] || n [ 4 ] || "" ; g [ e ] = ! n && d [ e ] ? e : CKEDITOR . tools . htmlDecodeAttr ( n ) } this . onTagOpen ( f , g , c ) ; ! k && CKEDITOR . dtd . $cdata [ f ] && ( k = [ ] ) } } else if ( f = c [ 2 ] ) this . onComment ( f ) } if ( b . length > h ) this . onText ( b . substring ( h ,
b . length ) ) } } } ) ( ) ;
CKEDITOR . htmlParser . basicWriter = CKEDITOR . tools . createClass ( { $ : function ( ) { this . _ = { output : [ ] } } , proto : { openTag : function ( a ) { this . _ . output . push ( "\x3c" , a ) } , openTagClose : function ( a , d ) { d ? this . _ . output . push ( " /\x3e" ) : this . _ . output . push ( "\x3e" ) } , attribute : function ( a , d ) { "string" == typeof d && ( d = CKEDITOR . tools . htmlEncodeAttr ( d ) ) ; this . _ . output . push ( " " , a , '\x3d"' , d , '"' ) } , closeTag : function ( a ) { this . _ . output . push ( "\x3c/" , a , "\x3e" ) } , text : function ( a ) { this . _ . output . push ( a ) } , comment : function ( a ) { this . _ . output . push ( "\x3c!--" , a ,
"--\x3e" ) } , write : function ( a ) { this . _ . output . push ( a ) } , reset : function ( ) { this . _ . output = [ ] ; this . _ . indent = ! 1 } , getHtml : function ( a ) { var d = this . _ . output . join ( "" ) ; a && this . reset ( ) ; return d } } } ) ; "use strict" ;
@@ -292,13 +300,13 @@ CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlPar
( function ( ) { CKEDITOR . htmlParser . text = function ( a ) { this . value = a ; this . _ = { isBlockLike : ! 1 } } ; CKEDITOR . htmlParser . text . prototype = CKEDITOR . tools . extend ( new CKEDITOR . htmlParser . node , { type : CKEDITOR . NODE _TEXT , filter : function ( a , d ) { if ( ! ( this . value = a . onText ( d , this . value , this ) ) ) return this . remove ( ) , ! 1 } , writeHtml : function ( a , d ) { d && this . filter ( d ) ; a . text ( this . value ) } } ) } ) ( ) ; "use strict" ;
( function ( ) { CKEDITOR . htmlParser . cdata = function ( a ) { this . value = a } ; CKEDITOR . htmlParser . cdata . prototype = CKEDITOR . tools . extend ( new CKEDITOR . htmlParser . node , { type : CKEDITOR . NODE _TEXT , filter : function ( ) { } , writeHtml : function ( a ) { a . write ( this . value ) } } ) } ) ( ) ; "use strict" ; CKEDITOR . htmlParser . fragment = function ( ) { this . children = [ ] ; this . parent = null ; this . _ = { isBlockLike : ! 0 , hasInlineStarted : ! 1 } } ;
( function ( ) { function a ( a ) { return a . attributes [ "data-cke-survive" ] ? ! 1 : "a" == a . name && a . attributes . href || CKEDITOR . dtd . $removeEmpty [ a . name ] } var d = CKEDITOR . tools . extend ( { table : 1 , ul : 1 , ol : 1 , dl : 1 } , CKEDITOR . dtd . table , CKEDITOR . dtd . ul , CKEDITOR . dtd . ol , CKEDITOR . dtd . dl ) , b = { ol : 1 , ul : 1 } , c = CKEDITOR . tools . extend ( { } , { html : 1 } , CKEDITOR . dtd . html , CKEDITOR . dtd . body , CKEDITOR . dtd . head , { style : 1 , script : 1 } ) , f = { ul : "li" , ol : "li" , dl : "dd" , table : "tbody" , tbody : "tr" , thead : "tr" , tfoot : "tr" , tr : "td" } ; CKEDITOR . htmlParser . fragment . fromHtml =
function ( h , k , g ) { function m ( a ) { var b ; if ( 0 < p . length ) for ( var c = 0 ; c < p . length ; c ++ ) { var d = p [ c ] , f = d . name , e = CKEDITOR . dtd [ f ] , l = u . name && CKEDITOR . dtd [ u . name ] ; l && ! l [ f ] || a && e && ! e [ a ] && CKEDITOR . dtd [ a ] ? f == u . name && ( z ( u , u . parent , 1 ) , c -- ) : ( b || ( r ( ) , b = 1 ) , d = d . clone ( ) , d . parent = u , u = d , p . splice ( c , 1 ) , c -- ) } } function r ( ) { for ( ; J . length ; ) z ( J . shift ( ) , u ) } function e ( a ) { if ( a . _ . isBlockLike && "pre" != a . name && "textarea" != a . name ) { var b = a . children . length , c = a . children [ b - 1 ] , d ; c && c . type == CKEDITOR . NODE _TEXT && ( ( d = CKEDITOR . tools . rtrim ( c . value ) ) ?
c . value = d : a . children . length = b - 1 ) } } function z ( b , c , d ) { c = c || u || x ; var f = u ; void 0 === b . previous && ( y ( c , b ) && ( u = c , D . onTagOpen ( g , { } ) , b . returnPoint = c = u ) , e ( b ) , a ( b ) && ! b . children . length || c . add ( b ) , "pre" == b . name && ( l = ! 1 ) , "textarea" == b . name && ( K = ! 1 ) ) ; b . returnPoint ? ( u = b . returnPoint , delete b . returnPoint ) : u = d ? c : f } function y ( a , b ) { if ( ( a == x || "body" == a . name ) && g && ( ! a . name || CKEDITOR . dtd [ a . name ] [ g ] ) ) { var c , d ; return ( c = b . attributes && ( d = b . attributes [ "data-cke-real-element-type" ] ) ? d : b . name ) && c in CKEDITOR . dtd . $inline && ! ( c in CKEDITOR . dtd . head ) &&
! b . isOrphan || b . type == CKEDITOR . NODE _TEXT } } function A ( a , b ) { return a in CKEDITOR . dtd . $listItem || a in CKEDITOR . dtd . $tableContent ? a == b || "dt" == a && "dd" == b || "dd" == a && "dt" == b : ! 1 } var D = new CKEDITOR . htmlParser , x = k instanceof CKEDITOR . htmlParser . element ? k : "string" == typeof k ? new CKEDITOR . htmlParser . element ( k ) : new CKEDITOR . htmlParser . fragment , p = [ ] , J = [ ] , u = x , K = "textarea" == x . name , l = "pre" == x . name ; D . onTagOpen = function ( f , e , h , k ) { e = new CKEDITOR . htmlParser . element ( f , e ) ; e . isUnknown && h && ( e . isEmpty = ! 0 ) ; e . isOptionalClose = k ;
if ( a ( e ) ) p . push ( e ) ; else { if ( "pre" == f ) l = ! 0 ; else { if ( "br" == f && l ) { u . add ( new CKEDITOR . htmlParser . text ( "\n" ) ) ; return } "textarea" == f && ( K = ! 0 ) } if ( "br" == f ) J . push ( e ) ; else { for ( ; ! ( k = ( h = u . name ) ? CKEDITOR . dtd [ h ] || ( u . _ . isBlockLike ? CKEDITOR . dtd . div : CKEDITOR . dtd . span ) : c , e . isUnknown || u . isUnknown || k [ f ] ) ; ) if ( u . isOptionalClose ) D . onTagClose ( h ) ; else if ( f in b && h in b ) h = u . children , ( h = h [ h . length - 1 ] ) && "li" == h . name || z ( h = new CKEDITOR . htmlParser . element ( "li" ) , u ) , ! e . returnPoint && ( e . returnPoint = u ) , u = h ; else if ( f in CKEDITOR . dtd . $listItem &&
! A ( f , h ) ) D . onTagOpen ( "li" == f ? "ul" : "dl" , { } , 0 , 1 ) ; else if ( h in d && ! A ( f , h ) ) ! e . returnPoint && ( e . returnPoint = u ) , u = u . parent ; else if ( h in CKEDITOR . dtd . $inline && p . unshift ( u ) , u . parent ) z ( u , u . parent , 1 ) ; else { e . isOrphan = 1 ; break } m ( f ) ; r ( ) ; e . parent = u ; e . isEmpty ? z ( e ) : u = e } } } ; D . onTagClose = function ( a ) { for ( var b = p . length - 1 ; 0 <= b ; b -- ) if ( a == p [ b ] . name ) { p . splice ( b , 1 ) ; return } for ( var c = [ ] , d = [ ] , f = u ; f != x && f . name != a ; ) f . _ . isBlockLike || d . unshift ( f ) , c . push ( f ) , f = f . returnPoint || f . parent ; if ( f != x ) { for ( b = 0 ; b < c . length ; b ++ ) { var e = c [ b ] ; z ( e , e . parent ) } u =
f ; f . _ . isBlockLike && r ( ) ; z ( f , f . parent ) ; f == u && ( u = u . parent ) ; p = p . concat ( d ) } "body" == a && ( g = ! 1 ) } ; D . onText = function ( a ) { if ( ! ( u . _ . hasInlineStarted && ! J . length || l || K ) && ( a = CKEDITOR . tools . ltrim ( a ) , 0 === a . length ) ) return ; var b = u . name , e = b ? CKEDITOR . dtd [ b ] || ( u . _ . isBlockLike ? CKEDITOR . dtd . div : CKEDITOR . dtd . span ) : c ; if ( ! K && ! e [ "#" ] && b in d ) D . onTagOpen ( f [ b ] || "" ) , D . onText ( a ) ; else { r ( ) ; m ( ) ; l || K || ( a = a . replace ( /[\t\r\n ]{2,}|[\t\r\n]/g , " " ) ) ; a = new CKEDITOR . htmlParser . text ( a ) ; if ( y ( u , a ) ) this . onTagOpen ( g , { } , 0 , 1 ) ; u . add ( a ) } } ; D . onCDATA =
function ( a ) { u . add ( new CKEDITOR . htmlParser . cdata ( a ) ) } ; D . onComment = function ( a ) { r ( ) ; m ( ) ; u . add ( new CKEDITOR . htmlParser . comment ( a ) ) } ; D . parse ( h ) ; for ( r ( ) ; u != x ; ) z ( u , u . parent , 1 ) ; e ( x ) ; return x } ; CKEDITOR . htmlParser . fragment . prototype = { type : CKEDITOR . NODE _DOCUMENT _FRAGMENT , add : function ( a , b ) { isNaN ( b ) && ( b = this . children . length ) ; var c = 0 < b ? this . children [ b - 1 ] : null ; if ( c ) { if ( a . _ . isBlockLike && c . type == CKEDITOR . NODE _TEXT && ( c . value = CKEDITOR . tools . rtrim ( c . value ) , 0 === c . value . length ) ) { this . children . pop ( ) ; this . add ( a ) ; return } c . next =
function ( h , k , g ) { function n ( a ) { var b ; if ( 0 < m . length ) for ( var c = 0 ; c < m . length ; c ++ ) { var d = m [ c ] , f = d . name , e = CKEDITOR . dtd [ f ] , l = u . name && CKEDITOR . dtd [ u . name ] ; l && ! l [ f ] || a && e && ! e [ a ] && CKEDITOR . dtd [ a ] ? f == u . name && ( y ( u , u . parent , 1 ) , c -- ) : ( b || ( r ( ) , b = 1 ) , d = d . clone ( ) , d . parent = u , u = d , m . splice ( c , 1 ) , c -- ) } } function r ( ) { for ( ; J . length ; ) y ( J . shift ( ) , u ) } function e ( a ) { if ( a . _ . isBlockLike && "pre" != a . name && "textarea" != a . name ) { var b = a . children . length , c = a . children [ b - 1 ] , d ; c && c . type == CKEDITOR . NODE _TEXT && ( ( d = CKEDITOR . tools . rtrim ( c . value ) ) ?
c . value = d : a . children . length = b - 1 ) } } function y ( b , c , d ) { c = c || u || x ; var f = u ; void 0 === b . previous && ( v ( c , b ) && ( u = c , D . onTagOpen ( g , { } ) , b . returnPoint = c = u ) , e ( b ) , a ( b ) && ! b . children . length || c . add ( b ) , "pre" == b . name && ( l = ! 1 ) , "textarea" == b . name && ( K = ! 1 ) ) ; b . returnPoint ? ( u = b . returnPoint , delete b . returnPoint ) : u = d ? c : f } function v ( a , b ) { if ( ( a == x || "body" == a . name ) && g && ( ! a . name || CKEDITOR . dtd [ a . name ] [ g ] ) ) { var c , d ; return ( c = b . attributes && ( d = b . attributes [ "data-cke-real-element-type" ] ) ? d : b . name ) && c in CKEDITOR . dtd . $inline && ! ( c in CKEDITOR . dtd . head ) &&
! b . isOrphan || b . type == CKEDITOR . NODE _TEXT } } function A ( a , b ) { return a in CKEDITOR . dtd . $listItem || a in CKEDITOR . dtd . $tableContent ? a == b || "dt" == a && "dd" == b || "dd" == a && "dt" == b : ! 1 } var D = new CKEDITOR . htmlParser , x = k instanceof CKEDITOR . htmlParser . element ? k : "string" == typeof k ? new CKEDITOR . htmlParser . element ( k ) : new CKEDITOR . htmlParser . fragment , m = [ ] , J = [ ] , u = x , K = "textarea" == x . name , l = "pre" == x . name ; D . onTagOpen = function ( f , e , h , g ) { e = new CKEDITOR . htmlParser . element ( f , e ) ; e . isUnknown && h && ( e . isEmpty = ! 0 ) ; e . isOptionalClose = g ;
if ( a ( e ) ) m . push ( e ) ; else { if ( "pre" == f ) l = ! 0 ; else { if ( "br" == f && l ) { u . add ( new CKEDITOR . htmlParser . text ( "\n" ) ) ; return } "textarea" == f && ( K = ! 0 ) } if ( "br" == f ) J . push ( e ) ; else { for ( ; ! ( g = ( h = u . name ) ? CKEDITOR . dtd [ h ] || ( u . _ . isBlockLike ? CKEDITOR . dtd . div : CKEDITOR . dtd . span ) : c , e . isUnknown || u . isUnknown || g [ f ] ) ; ) if ( u . isOptionalClose ) D . onTagClose ( h ) ; else if ( f in b && h in b ) h = u . children , ( h = h [ h . length - 1 ] ) && "li" == h . name || y ( h = new CKEDITOR . htmlParser . element ( "li" ) , u ) , ! e . returnPoint && ( e . returnPoint = u ) , u = h ; else if ( f in CKEDITOR . dtd . $listItem &&
! A ( f , h ) ) D . onTagOpen ( "li" == f ? "ul" : "dl" , { } , 0 , 1 ) ; else if ( h in d && ! A ( f , h ) ) ! e . returnPoint && ( e . returnPoint = u ) , u = u . parent ; else if ( h in CKEDITOR . dtd . $inline && m . unshift ( u ) , u . parent ) y ( u , u . parent , 1 ) ; else { e . isOrphan = 1 ; break } n ( f ) ; r ( ) ; e . parent = u ; e . isEmpty ? y ( e ) : u = e } } } ; D . onTagClose = function ( a ) { for ( var b = m . length - 1 ; 0 <= b ; b -- ) if ( a == m [ b ] . name ) { m . splice ( b , 1 ) ; return } for ( var c = [ ] , d = [ ] , f = u ; f != x && f . name != a ; ) f . _ . isBlockLike || d . unshift ( f ) , c . push ( f ) , f = f . returnPoint || f . parent ; if ( f != x ) { for ( b = 0 ; b < c . length ; b ++ ) { var e = c [ b ] ; y ( e , e . parent ) } u =
f ; f . _ . isBlockLike && r ( ) ; y ( f , f . parent ) ; f == u && ( u = u . parent ) ; m = m . concat ( d ) } "body" == a && ( g = ! 1 ) } ; D . onText = function ( a ) { if ( ! ( u . _ . hasInlineStarted && ! J . length || l || K ) && ( a = CKEDITOR . tools . ltrim ( a ) , 0 === a . length ) ) return ; var b = u . name , e = b ? CKEDITOR . dtd [ b ] || ( u . _ . isBlockLike ? CKEDITOR . dtd . div : CKEDITOR . dtd . span ) : c ; if ( ! K && ! e [ "#" ] && b in d ) D . onTagOpen ( f [ b ] || "" ) , D . onText ( a ) ; else { r ( ) ; n ( ) ; l || K || ( a = a . replace ( /[\t\r\n ]{2,}|[\t\r\n]/g , " " ) ) ; a = new CKEDITOR . htmlParser . text ( a ) ; if ( v ( u , a ) ) this . onTagOpen ( g , { } , 0 , 1 ) ; u . add ( a ) } } ; D . onCDATA =
function ( a ) { u . add ( new CKEDITOR . htmlParser . cdata ( a ) ) } ; D . onComment = function ( a ) { r ( ) ; n ( ) ; u . add ( new CKEDITOR . htmlParser . comment ( a ) ) } ; D . parse ( h ) ; for ( r ( ) ; u != x ; ) y ( u , u . parent , 1 ) ; e ( x ) ; return x } ; CKEDITOR . htmlParser . fragment . prototype = { type : CKEDITOR . NODE _DOCUMENT _FRAGMENT , add : function ( a , b ) { isNaN ( b ) && ( b = this . children . length ) ; var c = 0 < b ? this . children [ b - 1 ] : null ; if ( c ) { if ( a . _ . isBlockLike && c . type == CKEDITOR . NODE _TEXT && ( c . value = CKEDITOR . tools . rtrim ( c . value ) , 0 === c . value . length ) ) { this . children . pop ( ) ; this . add ( a ) ; return } c . next =
a } a . previous = c ; a . parent = this ; this . children . splice ( b , 0 , a ) ; this . _ . hasInlineStarted || ( this . _ . hasInlineStarted = a . type == CKEDITOR . NODE _TEXT || a . type == CKEDITOR . NODE _ELEMENT && ! a . _ . isBlockLike ) } , filter : function ( a , b ) { b = this . getFilterContext ( b ) ; a . onRoot ( b , this ) ; this . filterChildren ( a , ! 1 , b ) } , filterChildren : function ( a , b , c ) { if ( this . childrenFilteredBy != a . id ) { c = this . getFilterContext ( c ) ; if ( b && ! this . parent ) a . onRoot ( c , this ) ; this . childrenFilteredBy = a . id ; for ( b = 0 ; b < this . children . length ; b ++ ) ! 1 === this . children [ b ] . filter ( a ,
c ) && b -- } } , writeHtml : function ( a , b ) { b && this . filter ( b ) ; this . writeChildrenHtml ( a ) } , writeChildrenHtml : function ( a , b , c ) { var d = this . getFilterContext ( ) ; if ( c && ! this . parent && b ) b . onRoot ( d , this ) ; b && this . filterChildren ( b , ! 1 , d ) ; b = 0 ; c = this . children ; for ( d = c . length ; b < d ; b ++ ) c [ b ] . writeHtml ( a ) } , forEach : function ( a , b , c ) { if ( ! ( c || b && this . type != b ) ) var d = a ( this ) ; if ( ! 1 !== d ) { c = this . children ; for ( var f = 0 ; f < c . length ; f ++ ) d = c [ f ] , d . type == CKEDITOR . NODE _ELEMENT ? d . forEach ( a , b ) : b && d . type != b || a ( d ) } } , getFilterContext : function ( a ) { return a ||
{ } } } } ) ( ) ; "use strict" ;
@@ -306,34 +314,34 @@ c)&&b--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},w
c . priority ) ; "number" != typeof f && ( f = 10 ) ; "object" != typeof c && ( c = { } ) ; a . elementNames && this . elementNameRules . addMany ( a . elementNames , f , c ) ; a . attributeNames && this . attributeNameRules . addMany ( a . attributeNames , f , c ) ; a . elements && d ( this . elementsRules , a . elements , f , c ) ; a . attributes && d ( this . attributesRules , a . attributes , f , c ) ; a . text && this . textRules . add ( a . text , f , c ) ; a . comment && this . commentRules . add ( a . comment , f , c ) ; a . root && this . rootRules . add ( a . root , f , c ) } , applyTo : function ( a ) { a . filter ( this ) } , onElementName : function ( a , c ) { return this . elementNameRules . execOnName ( a ,
c ) } , onAttributeName : function ( a , c ) { return this . attributeNameRules . execOnName ( a , c ) } , onText : function ( a , c , d ) { return this . textRules . exec ( a , c , d ) } , onComment : function ( a , c , d ) { return this . commentRules . exec ( a , c , d ) } , onRoot : function ( a , c ) { return this . rootRules . exec ( a , c ) } , onElement : function ( a , c ) { for ( var d = [ this . elementsRules [ "^" ] , this . elementsRules [ c . name ] , this . elementsRules . $ ] , h , k = 0 ; 3 > k ; k ++ ) if ( h = d [ k ] ) { h = h . exec ( a , c , this ) ; if ( ! 1 === h ) return null ; if ( h && h != c ) return this . onNode ( a , h ) ; if ( c . parent && ! c . name ) break } return c } ,
onNode : function ( a , c ) { var d = c . type ; return d == CKEDITOR . NODE _ELEMENT ? this . onElement ( a , c ) : d == CKEDITOR . NODE _TEXT ? new CKEDITOR . htmlParser . text ( this . onText ( a , c . value ) ) : d == CKEDITOR . NODE _COMMENT ? new CKEDITOR . htmlParser . comment ( this . onComment ( a , c . value ) ) : null } , onAttribute : function ( a , c , d , h ) { return ( d = this . attributesRules [ d ] ) ? d . exec ( a , h , c , this ) : h } } } ) ; CKEDITOR . htmlParser . filterRulesGroup = a ; a . prototype = { add : function ( a , c , d ) { this . rules . splice ( this . findIndex ( c ) , 0 , { value : a , priority : c , options : d } ) } , addMany : function ( a ,
c , d ) { for ( var h = [ this . findIndex ( c ) , 0 ] , k = 0 , g = a . length ; k < g ; k ++ ) h . push ( { value : a [ k ] , priority : c , options : d } ) ; this . rules . splice . apply ( this . rules , h ) } , findIndex : function ( a ) { for ( var c = this . rules , d = c . length - 1 ; 0 <= d && a < c [ d ] . priority ; ) d -- ; return d + 1 } , exec : function ( a , c ) { var d = c instanceof CKEDITOR . htmlParser . node || c instanceof CKEDITOR . htmlParser . fragment , h = Array . prototype . slice . call ( arguments , 1 ) , k = this . rules , g = k . length , m , r , e , z ; for ( z = 0 ; z < g ; z ++ ) if ( d && ( m = c . type , r = c . name ) , e = k [ z ] , ! ( a . nonEditable && ! e . options . applyToAll ||
a . nestedEditable && e . options . excludeNestedEditable ) ) { e = e . value . apply ( null , h ) ; if ( ! 1 === e || d && e && ( e . name != r || e . type != m ) ) return e ; null != e && ( h [ 0 ] = c = e ) } return c } , execOnName : function ( a , c ) { for ( var d = 0 , h = this . rules , k = h . length , g ; c && d < k ; d ++ ) g = h [ d ] , a . nonEditable && ! g . options . applyToAll || a . nestedEditable && g . options . excludeNestedEditable || ( c = c . replace ( g . value [ 0 ] , g . value [ 1 ] ) ) ; return c } } } ) ( ) ;
( function ( ) { function a ( a , d ) { function e ( a ) { return a || CKEDITOR . env . needsNbspFiller ? new CKEDITOR . htmlParser . text ( " " ) : new CKEDITOR . htmlParser . element ( "br" , { "data-cke-bogus" : 1 } ) } function n ( a , d ) { return function ( f ) { if ( f . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ) { var l = [ ] , v = b ( f ) , n , w ; if ( v ) for ( t ( v , 1 ) && l . push ( v ) ; v ; ) h ( v ) && ( n = c ( v ) ) && t ( n ) && ( ( w = c ( n ) ) && ! h ( w ) ? l . push ( n ) : ( e ( E ) . insertAfter ( n ) , n . remove ( ) ) ) , v = v . previous ; for ( v = 0 ; v < l . length ; v ++ ) l [ v ] . remove ( ) ; if ( l = ! a || ! 1 !== ( "function" == typeof d ? d ( f ) : d ) ) E || CKEDITOR . env . needsBrFiller ||
f . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ? E || CKEDITOR . env . needsBrFiller || ! ( 7 < document . documentMode || f . name in CKEDITOR . dtd . tr || f . name in CKEDITOR . dtd . $listItem ) ? ( l = b ( f ) , l = ! l || "form" == f . name && "input" == l . name ) : l = ! 1 : l = ! 1 ; l && f . add ( e ( a ) ) } } } function t ( a , b ) { if ( ( ! E || CKEDITOR . env . needsBrFiller ) && a . type == CKEDITOR . NODE _ELEMENT && "br" == a . name && ! a . attributes [ "data-cke-eol" ] ) return ! 0 ; var c ; return a . type == CKEDITOR . NODE _TEXT && ( c = a . value . match ( p ) ) && ( c . index && ( ( new CKEDITOR . htmlParser . text ( a . value . substring ( 0 , c . index ) ) ) . insertBefore ( a ) ,
a . value = c [ 0 ] ) , ! CKEDITOR . env . needsBrFiller && E && ( ! b || a . parent . name in g ) || ! E && ( ( c = a . previous ) && "br" == c . name || ! c || h ( c ) ) ) ? ! 0 : ! 1 } var w = { elements : { } } , E = "html" == d , g = CKEDITOR . tools . extend ( { } , l ) , q ; for ( q in g ) "#" in u [ q ] || delete g [ q ] ; for ( q in g ) w . elements [ q ] = n ( E , a . config . fillEmptyBlocks ) ; w . root = n ( E , ! 1 ) ; w . elements . br = function ( a ) { return function ( b ) { if ( b . parent . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ) { var d = b . attributes ; if ( "data-cke-bogus" in d || "data-cke-eol" in d ) delete d [ "data-cke-bogus" ] ; else { for ( d = b . next ; d && f ( d ) ; ) d =
d . next ; var l = c ( b ) ; ! d && h ( b . parent ) ? k ( b . parent , e ( a ) ) : h ( d ) && l && ! h ( l ) && e ( a ) . insertBefore ( d ) } } } } ( E ) ; return w } function d ( a , b ) { return a != CKEDITOR . ENTER _BR && ! 1 !== b ? a == CKEDITOR . ENTER _DIV ? "div" : "p" : ! 1 } function b ( a ) { for ( a = a . children [ a . children . length - 1 ] ; a && f ( a ) ; ) a = a . previous ; return a } function c ( a ) { for ( a = a . previous ; a && f ( a ) ; ) a = a . previous ; return a } function f ( a ) { return a . type == CKEDITOR . NODE _TEXT && ! CKEDITOR . tools . trim ( a . value ) || a . type == CKEDITOR . NODE _ELEMENT && a . attributes [ "data-cke-bookmark" ] } function h ( a ) { return a &&
( a . type == CKEDITOR . NODE _ELEMENT && a . name in l || a . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT ) } function k ( a , b ) { var c = a . children [ a . children . length - 1 ] ; a . children . push ( b ) ; b . parent = a ; c && ( c . next = b , b . previous = c ) } function g ( a ) { a = a . attributes ; "false" != a . contenteditable && ( a [ "data-cke-editable" ] = a . contenteditable ? "true" : 1 ) ; a . contenteditable = "false" } function m ( a ) { a = a . attributes ; switch ( a [ "data-cke-editable" ] ) { case "true" : a . contenteditable = "true" ; break ; case "1" : delete a . contenteditable } } function r ( a ) { return a . replace ( M ,
function ( a , b , c ) { return "\x3c" + b + c . replace ( t , function ( a , b ) { return E . test ( b ) && - 1 == c . indexOf ( "data-cke-saved-" + b ) ? " data-cke-saved-" + a + " data-cke-" + CKEDITOR . rnd + "-" + a : a } ) + "\x3e" } ) } function e ( a , b ) { return a . replace ( b , function ( a , b , c ) { 0 === a . indexOf ( "\x3ctextarea" ) && ( a = b + A ( c ) . replace ( /</g , "\x26lt;" ) . replace ( />/g , "\x26gt;" ) + "\x3c/textarea\x3e" ) ; return "\x3ccke:encoded\x3e" + encodeURIComponent ( a ) + "\x3c/cke:encoded\x3e" } ) } function z ( a ) { return a . replace ( P , function ( a , b ) { return decodeURIComponent ( b ) } ) } function y ( a ) { return a . replace ( /\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g ,
c , d ) { for ( var h = [ this . findIndex ( c ) , 0 ] , k = 0 , g = a . length ; k < g ; k ++ ) h . push ( { value : a [ k ] , priority : c , options : d } ) ; this . rules . splice . apply ( this . rules , h ) } , findIndex : function ( a ) { for ( var c = this . rules , d = c . length - 1 ; 0 <= d && a < c [ d ] . priority ; ) d -- ; return d + 1 } , exec : function ( a , c ) { var d = c instanceof CKEDITOR . htmlParser . node || c instanceof CKEDITOR . htmlParser . fragment , h = Array . prototype . slice . call ( arguments , 1 ) , k = this . rules , g = k . length , n , r , e , y ; for ( y = 0 ; y < g ; y ++ ) if ( d && ( n = c . type , r = c . name ) , e = k [ y ] , ! ( a . nonEditable && ! e . options . applyToAll ||
a . nestedEditable && e . options . excludeNestedEditable ) ) { e = e . value . apply ( null , h ) ; if ( ! 1 === e || d && e && ( e . name != r || e . type != n ) ) return e ; null != e && ( h [ 0 ] = c = e ) } return c } , execOnName : function ( a , c ) { for ( var d = 0 , h = this . rules , k = h . length , g ; c && d < k ; d ++ ) g = h [ d ] , a . nonEditable && ! g . options . applyToAll || a . nestedEditable && g . options . excludeNestedEditable || ( c = c . replace ( g . value [ 0 ] , g . value [ 1 ] ) ) ; return c } } } ) ( ) ;
( function ( ) { function a ( a , d ) { function e ( a ) { return a || CKEDITOR . env . needsNbspFiller ? new CKEDITOR . htmlParser . text ( " " ) : new CKEDITOR . htmlParser . element ( "br" , { "data-cke-bogus" : 1 } ) } function p ( a , d ) { return function ( f ) { if ( f . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ) { var l = [ ] , w = b ( f ) , p , E ; if ( w ) for ( q ( w , 1 ) && l . push ( w ) ; w ; ) h ( w ) && ( p = c ( w ) ) && q ( p ) && ( ( E = c ( p ) ) && ! h ( E ) ? l . push ( p ) : ( e ( z ) . insertAfter ( p ) , p . remove ( ) ) ) , w = w . previous ; for ( w = 0 ; w < l . length ; w ++ ) l [ w ] . remove ( ) ; if ( l = ! a || ! 1 !== ( "function" == typeof d ? d ( f ) : d ) ) z || CKEDITOR . env . needsBrFiller ||
f . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ? z || CKEDITOR . env . needsBrFiller || ! ( 7 < document . documentMode || f . name in CKEDITOR . dtd . tr || f . name in CKEDITOR . dtd . $listItem ) ? ( l = b ( f ) , l = ! l || "form" == f . name && "input" == l . name ) : l = ! 1 : l = ! 1 ; l && f . add ( e ( a ) ) } } } function q ( a , b ) { if ( ( ! z || CKEDITOR . env . needsBrFiller ) && a . type == CKEDITOR . NODE _ELEMENT && "br" == a . name && ! a . attributes [ "data-cke-eol" ] ) return ! 0 ; var c ; return a . type == CKEDITOR . NODE _TEXT && ( c = a . value . match ( m ) ) && ( c . index && ( ( new CKEDITOR . htmlParser . text ( a . value . substring ( 0 , c . index ) ) ) . insertBefore ( a ) ,
a . value = c [ 0 ] ) , ! CKEDITOR . env . needsBrFiller && z && ( ! b || a . parent . name in g ) || ! z && ( ( c = a . previous ) && "br" == c . name || ! c || h ( c ) ) ) ? ! 0 : ! 1 } var E = { elements : { } } , z = "html" == d , g = CKEDITOR . tools . extend ( { } , l ) , t ; for ( t in g ) "#" in u [ t ] || delete g [ t ] ; for ( t in g ) E . elements [ t ] = p ( z , a . config . fillEmptyBlocks ) ; E . root = p ( z , ! 1 ) ; E . elements . br = function ( a ) { return function ( b ) { if ( b . parent . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ) { var d = b . attributes ; if ( "data-cke-bogus" in d || "data-cke-eol" in d ) delete d [ "data-cke-bogus" ] ; else { for ( d = b . next ; d && f ( d ) ; ) d =
d . next ; var l = c ( b ) ; ! d && h ( b . parent ) ? k ( b . parent , e ( a ) ) : h ( d ) && l && ! h ( l ) && e ( a ) . insertBefore ( d ) } } } } ( z ) ; return E } function d ( a , b ) { return a != CKEDITOR . ENTER _BR && ! 1 !== b ? a == CKEDITOR . ENTER _DIV ? "div" : "p" : ! 1 } function b ( a ) { for ( a = a . children [ a . children . length - 1 ] ; a && f ( a ) ; ) a = a . previous ; return a } function c ( a ) { for ( a = a . previous ; a && f ( a ) ; ) a = a . previous ; return a } function f ( a ) { return a . type == CKEDITOR . NODE _TEXT && ! CKEDITOR . tools . trim ( a . value ) || a . type == CKEDITOR . NODE _ELEMENT && a . attributes [ "data-cke-bookmark" ] } function h ( a ) { return a &&
( a . type == CKEDITOR . NODE _ELEMENT && a . name in l || a . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT ) } function k ( a , b ) { var c = a . children [ a . children . length - 1 ] ; a . children . push ( b ) ; b . parent = a ; c && ( c . next = b , b . previous = c ) } function g ( a ) { a = a . attributes ; "false" != a . contenteditable && ( a [ "data-cke-editable" ] = a . contenteditable ? "true" : 1 ) ; a . contenteditable = "false" } function n ( a ) { a = a . attributes ; switch ( a [ "data-cke-editable" ] ) { case "true" : a . contenteditable = "true" ; break ; case "1" : delete a . contenteditable } } function r ( a ) { return a . replace ( M ,
function ( a , b , c ) { return "\x3c" + b + c . replace ( q , function ( a , b ) { return E . test ( b ) && - 1 == c . indexOf ( "data-cke-saved-" + b ) ? " data-cke-saved-" + a + " data-cke-" + CKEDITOR . rnd + "-" + a : a } ) + "\x3e" } ) } function e ( a , b ) { return a . replace ( b , function ( a , b , c ) { 0 === a . indexOf ( "\x3ctextarea" ) && ( a = b + A ( c ) . replace ( /</g , "\x26lt;" ) . replace ( />/g , "\x26gt;" ) + "\x3c/textarea\x3e" ) ; return "\x3ccke:encoded\x3e" + encodeURIComponent ( a ) + "\x3c/cke:encoded\x3e" } ) } function y ( a ) { return a . replace ( P , function ( a , b ) { return decodeURIComponent ( b ) } ) } function v ( a ) { return a . replace ( /\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g ,
function ( a ) { return "\x3c!--" + J + "{C}" + encodeURIComponent ( a ) . replace ( /--/g , "%2D%2D" ) + "--\x3e" } ) } function A ( a ) { return a . replace ( /\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g , function ( a , b ) { return decodeURIComponent ( b ) } ) } function D ( a , b ) { var c = b . _ . dataStore ; return a . replace ( /\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g , function ( a , b ) { return decodeURIComponent ( b ) } ) . replace ( /\{cke_protected_(\d+)\}/g , function ( a , b ) { return c && c [ b ] || "" } ) } function x ( a , b ) { var c = [ ] , d = b . config . protectedSource , f = b . _ . dataStore || ( b . _ . dataStore =
{ id : 1 } ) , e = /<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g , d = [ /<script[\s\S]*?(<\/script>|$)/gi , /<noscript[\s\S]*?<\/noscript>/gi , /<meta[\s\S]*?\/?>/gi ] . concat ( d ) ; a = a . replace ( /\x3c!--[\s\S]*?--\x3e/g , function ( a ) { return "\x3c!--{cke_tempcomment}" + ( c . push ( a ) - 1 ) + "--\x3e" } ) ; for ( var l = 0 ; l < d . length ; l ++ ) a = a . replace ( d [ l ] , function ( a ) { a = a . replace ( e , function ( a , b , d ) { return c [ d ] } ) ; return /cke_temp(comment)?/ . test ( a ) ? a : "\x3c!--{cke_temp}" + ( c . push ( a ) - 1 ) + "--\x3e" } ) ; a = a . replace ( e , function ( a , b , d ) { return "\x3c!--" + J + ( b ? "{C}" :
"" ) + encodeURIComponent ( c [ d ] ) . replace ( /--/g , "%2D%2D" ) + "--\x3e" } ) ; a = a . replace ( /<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g , function ( a ) { return a . replace ( /\x3c!--\{cke_protected\}([^>]*)--\x3e/g , function ( a , b ) { f [ f . id ] = decodeURIComponent ( b ) ; return "{cke_protected_" + f . id ++ + "}" } ) } ) ; return a = a . replace ( /<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g , function ( a , c , d , f ) { return "\x3c" + c + d + "\x3e" + D ( A ( f ) , b ) + "\x3c/" + c + "\x3e" } ) } CKEDITOR . htmlDataProcessor = function ( b ) { var c ,
f , l = this ; this . editor = b ; this . dataFilter = c = new CKEDITOR . htmlParser . filter ; this . htmlFilter = f = new CKEDITOR . htmlParser . filter ; this . writer = new CKEDITOR . htmlParser . basicWriter ; c . addRules ( q ) ; c . addRules ( F , { applyToAll : ! 0 } ) ; c . addRules ( a ( b , "data" ) , { applyToAll : ! 0 } ) ; f . addRules ( L ) ; f . addRules ( C , { applyToAll : ! 0 } ) ; f . addRules ( a ( b , "html" ) , { applyToAll : ! 0 } ) ; b . on ( "toHtml" , function ( a ) { a = a . data ; var c = a . dataValue , f , c = x ( c , b ) , c = e ( c , H ) , c = r ( c ) , c = e ( c , w ) , c = c . replace ( O , "$1cke:$2" ) , c = c . replace ( N , "\x3ccke:$1$2\x3e\x3c/cke:$1\x3e" ) ,
c = c . replace ( /(<pre\b[^>]*>)(\r\n|\n)/g , "$1$2$2" ) , c = c . replace ( /([^a-z0-9<\-])(on\w{3,})(?!>)/gi , "$1data-cke-" + CKEDITOR . rnd + "-$2" ) ; f = a . context || b . editable ( ) . getName ( ) ; var l ; CKEDITOR . env . ie && 9 > CKEDITOR . env . version && "pre" == f && ( f = "div" , c = "\x3cpre\x3e" + c + "\x3c/pre\x3e" , l = 1 ) ; f = b . document . createElement ( f ) ; f . setHtml ( "a" + c ) ; c = f . getHtml ( ) . substr ( 1 ) ; c = c . replace ( new RegExp ( "data-cke-" + CKEDITOR . rnd + "-" , "ig" ) , "" ) ; l && ( c = c . replace ( /^<pre>|<\/pre>$/gi , "" ) ) ; c = c . replace ( n , "$1$2" ) ; c = z ( c ) ; c = A ( c ) ; f = ! 1 === a . fixForBody ? ! 1 :
f , l = this ; this . editor = b ; this . dataFilter = c = new CKEDITOR . htmlParser . filter ; this . htmlFilter = f = new CKEDITOR . htmlParser . filter ; this . writer = new CKEDITOR . htmlParser . basicWriter ; c . addRules ( t ) ; c . addRules ( F , { applyToAll : ! 0 } ) ; c . addRules ( a ( b , "data" ) , { applyToAll : ! 0 } ) ; f . addRules ( L ) ; f . addRules ( C , { applyToAll : ! 0 } ) ; f . addRules ( a ( b , "html" ) , { applyToAll : ! 0 } ) ; b . on ( "toHtml" , function ( a ) { a = a . data ; var c = a . dataValue , f , c = x ( c , b ) , c = e ( c , H ) , c = r ( c ) , c = e ( c , z ) , c = c . replace ( O , "$1cke:$2" ) , c = c . replace ( N , "\x3ccke:$1$2\x3e\x3c/cke:$1\x3e" ) ,
c = c . replace ( /(<pre\b[^>]*>)(\r\n|\n)/g , "$1$2$2" ) , c = c . replace ( /([^a-z0-9<\-])(on\w{3,})(?!>)/gi , "$1data-cke-" + CKEDITOR . rnd + "-$2" ) ; f = a . context || b . editable ( ) . getName ( ) ; var l ; CKEDITOR . env . ie && 9 > CKEDITOR . env . version && "pre" == f && ( f = "div" , c = "\x3cpre\x3e" + c + "\x3c/pre\x3e" , l = 1 ) ; f = b . document . createElement ( f ) ; f . setHtml ( "a" + c ) ; c = f . getHtml ( ) . substr ( 1 ) ; c = c . replace ( new RegExp ( "data-cke-" + CKEDITOR . rnd + "-" , "ig" ) , "" ) ; l && ( c = c . replace ( /^<pre>|<\/pre>$/gi , "" ) ) ; c = c . replace ( p , "$1$2" ) ; c = y ( c ) ; c = A ( c ) ; f = ! 1 === a . fixForBody ? ! 1 :
d ( a . enterMode , b . config . autoParagraph ) ; c = CKEDITOR . htmlParser . fragment . fromHtml ( c , a . context , f ) ; f && ( l = c , ! l . children . length && CKEDITOR . dtd [ l . name ] [ f ] && ( f = new CKEDITOR . htmlParser . element ( f ) , l . add ( f ) ) ) ; a . dataValue = c } , null , null , 5 ) ; b . on ( "toHtml" , function ( a ) { a . data . filter . applyTo ( a . data . dataValue , ! 0 , a . data . dontFilter , a . data . enterMode ) && b . fire ( "dataFiltered" ) } , null , null , 6 ) ; b . on ( "toHtml" , function ( a ) { a . data . dataValue . filterChildren ( l . dataFilter , ! 0 ) } , null , null , 10 ) ; b . on ( "toHtml" , function ( a ) { a = a . data ; var b = a . dataValue ,
c = new CKEDITOR . htmlParser . basicWriter ; b . writeChildrenHtml ( c ) ; b = c . getHtml ( ! 0 ) ; a . dataValue = y ( b ) } , null , null , 15 ) ; b . on ( "toDataFormat" , function ( a ) { var c = a . data . dataValue ; a . data . enterMode != CKEDITOR . ENTER _BR && ( c = c . replace ( /^<br *\/?>/i , "" ) ) ; a . data . dataValue = CKEDITOR . htmlParser . fragment . fromHtml ( c , a . data . context , d ( a . data . enterMode , b . config . autoParagraph ) ) } , null , null , 5 ) ; b . on ( "toDataFormat" , function ( a ) { a . data . dataValue . filterChildren ( l . htmlFilter , ! 0 ) } , null , null , 10 ) ; b . on ( "toDataFormat" , function ( a ) { a . data . filter . applyTo ( a . data . dataValue ,
! 1 , ! 0 ) } , null , null , 11 ) ; b . on ( "toDataFormat" , function ( a ) { var c = a . data . dataValue , d = l . writer ; d . reset ( ) ; c . writeChildrenHtml ( d ) ; c = d . getHtml ( ! 0 ) ; c = A ( c ) ; c = D ( c , b ) ; a . data . dataValue = c } , null , null , 15 ) } ; CKEDITOR . htmlDataProcessor . prototype = { toHtml : function ( a , b , c , d ) { var f = this . editor , e , l , n , h ; b && "object" == typeof b ? ( e = b . context , c = b . fixForBody , d = b . dontFilter , l = b . filter , n = b . enterMode , h = b . protectedWhitespaces ) : e = b ; e || null === e || ( e = f . editable ( ) . getName ( ) ) ; return f . fire ( "toHtml" , { dataValue : a , context : e , fixForBody : c , dontFilter : d ,
filter : l || f . filter , enterMode : n || f . enterMode , protectedWhitespaces : h } ) . dataValue } , toDataFormat : function ( a , b ) { var c , d , f ; b && ( c = b . context , d = b . filter , f = b . enterMode ) ; c || null === c || ( c = this . editor . editable ( ) . getName ( ) ) ; return this . editor . fire ( "toDataFormat" , { dataValue : a , filter : d || this . editor . filter , context : c , enterMode : f || this . editor . enterMode } ) . dataValue } } ; var p = /(?: |\xa0)$/ , J = "{cke_protected}" , u = CKEDITOR . dtd , K = "caption colgroup col thead tfoot tbody" . split ( " " ) , l = CKEDITOR . tools . extend ( { } , u . $blockLimit ,
u . $block ) , q = { elements : { input : g , textarea : g } } , F = { attributeNames : [ [ /^on/ , "data-cke-pa-on" ] , [ /^srcdoc/ , "data-cke-pa-srcdoc" ] , [ /^data-cke-expando$/ , "" ] ] , elements : { iframe : function ( a ) { if ( a . attributes && a . attributes . src ) { var b = a . attributes . src . toLowerCase ( ) . replace ( /[^a-z]/gi , "" ) ; if ( 0 === b . indexOf ( "javascript" ) || 0 === b . indexOf ( "data" ) ) a . attributes [ "data-cke-pa-src" ] = a . attributes . src , delete a . attributes . src } } } } , L = { elements : { embed : function ( a ) { var b = a . parent ; if ( b && "object" == b . name ) { var c = b . attributes . width , b = b . attributes . height ;
c = new CKEDITOR . htmlParser . basicWriter ; b . writeChildrenHtml ( c ) ; b = c . getHtml ( ! 0 ) ; a . dataValue = v ( b ) } , null , null , 15 ) ; b . on ( "toDataFormat" , function ( a ) { var c = a . data . dataValue ; a . data . enterMode != CKEDITOR . ENTER _BR && ( c = c . replace ( /^<br *\/?>/i , "" ) ) ; a . data . dataValue = CKEDITOR . htmlParser . fragment . fromHtml ( c , a . data . context , d ( a . data . enterMode , b . config . autoParagraph ) ) } , null , null , 5 ) ; b . on ( "toDataFormat" , function ( a ) { a . data . dataValue . filterChildren ( l . htmlFilter , ! 0 ) } , null , null , 10 ) ; b . on ( "toDataFormat" , function ( a ) { a . data . filter . applyTo ( a . data . dataValue ,
! 1 , ! 0 ) } , null , null , 11 ) ; b . on ( "toDataFormat" , function ( a ) { var c = a . data . dataValue , d = l . writer ; d . reset ( ) ; c . writeChildrenHtml ( d ) ; c = d . getHtml ( ! 0 ) ; c = A ( c ) ; c = D ( c , b ) ; a . data . dataValue = c } , null , null , 15 ) } ; CKEDITOR . htmlDataProcessor . prototype = { toHtml : function ( a , b , c , d ) { var f = this . editor , e , l , p , h ; b && "object" == typeof b ? ( e = b . context , c = b . fixForBody , d = b . dontFilter , l = b . filter , p = b . enterMode , h = b . protectedWhitespaces ) : e = b ; e || null === e || ( e = f . editable ( ) . getName ( ) ) ; return f . fire ( "toHtml" , { dataValue : a , context : e , fixForBody : c , dontFilter : d ,
filter : l || f . filter , enterMode : p || f . enterMode , protectedWhitespaces : h } ) . dataValue } , toDataFormat : function ( a , b ) { var c , d , f ; b && ( c = b . context , d = b . filter , f = b . enterMode ) ; c || null === c || ( c = this . editor . editable ( ) . getName ( ) ) ; return this . editor . fire ( "toDataFormat" , { dataValue : a , filter : d || this . editor . filter , context : c , enterMode : f || this . editor . enterMode } ) . dataValue } } ; var m = /(?: |\xa0)$/ , J = "{cke_protected}" , u = CKEDITOR . dtd , K = "caption colgroup col thead tfoot tbody" . split ( " " ) , l = CKEDITOR . tools . extend ( { } , u . $blockLimit ,
u . $block ) , t = { elements : { input : g , textarea : g } } , F = { attributeNames : [ [ /^on/ , "data-cke-pa-on" ] , [ /^srcdoc/ , "data-cke-pa-srcdoc" ] , [ /^data-cke-expando$/ , "" ] ] , elements : { iframe : function ( a ) { if ( a . attributes && a . attributes . src ) { var b = a . attributes . src . toLowerCase ( ) . replace ( /[^a-z]/gi , "" ) ; if ( 0 === b . indexOf ( "javascript" ) || 0 === b . indexOf ( "data" ) ) a . attributes [ "data-cke-pa-src" ] = a . attributes . src , delete a . attributes . src } } } } , L = { elements : { embed : function ( a ) { var b = a . parent ; if ( b && "object" == b . name ) { var c = b . attributes . width , b = b . attributes . height ;
c && ( a . attributes . width = c ) ; b && ( a . attributes . height = b ) } } , a : function ( a ) { var b = a . attributes ; if ( ! ( a . children . length || b . name || b . id || a . attributes [ "data-cke-saved-name" ] ) ) return ! 1 } } } , C = { elementNames : [ [ /^cke:/ , "" ] , [ /^\?xml:namespace$/ , "" ] ] , attributeNames : [ [ /^data-cke-(saved|pa)-/ , "" ] , [ /^data-cke-.*/ , "" ] , [ "hidefocus" , "" ] ] , elements : { $ : function ( a ) { var b = a . attributes ; if ( b ) { if ( b [ "data-cke-temp" ] ) return ! 1 ; for ( var c = [ "name" , "href" , "src" ] , d , f = 0 ; f < c . length ; f ++ ) d = "data-cke-saved-" + c [ f ] , d in b && delete b [ c [ f ] ] } return a } ,
table : function ( a ) { a . children . slice ( 0 ) . sort ( function ( a , b ) { var c , d ; a . type == CKEDITOR . NODE _ELEMENT && b . type == a . type && ( c = CKEDITOR . tools . indexOf ( K , a . name ) , d = CKEDITOR . tools . indexOf ( K , b . name ) ) ; - 1 < c && - 1 < d && c != d || ( c = a . parent ? a . getIndex ( ) : - 1 , d = b . parent ? b . getIndex ( ) : - 1 ) ; return c > d ? 1 : - 1 } ) } , param : function ( a ) { a . children = [ ] ; a . isEmpty = ! 0 ; return a } , span : function ( a ) { "Apple-style-span" == a . attributes [ "class" ] && delete a . name } , html : function ( a ) { delete a . attributes . contenteditable ; delete a . attributes [ "class" ] } , body : function ( a ) { delete a . attributes . spellcheck ;
delete a . attributes . contenteditable } , style : function ( a ) { var b = a . children [ 0 ] ; b && b . value && ( b . value = CKEDITOR . tools . trim ( b . value ) ) ; a . attributes . type || ( a . attributes . type = "text/css" ) } , title : function ( a ) { var b = a . children [ 0 ] ; ! b && k ( a , b = new CKEDITOR . htmlParser . text ) ; b . value = a . attributes [ "data-cke-title" ] || "" } , input : m , textarea : m } , attributes : { "class" : function ( a ) { return CKEDITOR . tools . ltrim ( a . replace ( /(?:^|\s+)cke_[^\s]*/g , "" ) ) || ! 1 } } } ; CKEDITOR . env . ie && ( C . attributes . style = function ( a ) { return a . replace ( /(^|;)([^\:]+)/g ,
function ( a ) { return a . toLowerCase ( ) } ) } ) ; var M = /<(a|area|img|input|source)\b([^>]*)>/gi , t = /([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi , E = /^(href|src|name)$/i , w = /(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi , H = /(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi , P = /<cke:encoded>([^<]*)<\/cke:encoded>/gi , O = /(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi , n = /(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi , N = /<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi } ) ( ) ;
delete a . attributes . contenteditable } , style : function ( a ) { var b = a . children [ 0 ] ; b && b . value && ( b . value = CKEDITOR . tools . trim ( b . value ) ) ; a . attributes . type || ( a . attributes . type = "text/css" ) } , title : function ( a ) { var b = a . children [ 0 ] ; ! b && k ( a , b = new CKEDITOR . htmlParser . text ) ; b . value = a . attributes [ "data-cke-title" ] || "" } , input : n , textarea : n } , attributes : { "class" : function ( a ) { return CKEDITOR . tools . ltrim ( a . replace ( /(?:^|\s+)cke_[^\s]*/g , "" ) ) || ! 1 } } } ; CKEDITOR . env . ie && ( C . attributes . style = function ( a ) { return a . replace ( /(^|;)([^\:]+)/g ,
function ( a ) { return a . toLowerCase ( ) } ) } ) ; var M = /<(a|area|img|input|source)\b([^>]*)>/gi , q = /([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi , E = /^(href|src|name)$/i , z = /(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi , H = /(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi , P = /<cke:encoded>([^<]*)<\/cke:encoded>/gi , O = /(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi , p = /(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi , N = /<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi } ) ( ) ;
"use strict" ; CKEDITOR . htmlParser . element = function ( a , d ) { this . name = a ; this . attributes = d || { } ; this . children = [ ] ; var b = a || "" , c = b . match ( /^cke:(.*)/ ) ; c && ( b = c [ 1 ] ) ; b = ! ! ( CKEDITOR . dtd . $nonBodyContent [ b ] || CKEDITOR . dtd . $block [ b ] || CKEDITOR . dtd . $listItem [ b ] || CKEDITOR . dtd . $tableContent [ b ] || CKEDITOR . dtd . $nonEditable [ b ] || "br" == b ) ; this . isEmpty = ! ! CKEDITOR . dtd . $empty [ a ] ; this . isUnknown = ! CKEDITOR . dtd [ a ] ; this . _ = { isBlockLike : b , hasInlineStarted : this . isEmpty || ! b } } ;
CKEDITOR . htmlParser . cssStyle = function ( a ) { var d = { } ; ( ( a instanceof CKEDITOR . htmlParser . element ? a . attributes . style : a ) || "" ) . replace ( /"/g , '"' ) . replace ( /\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g , function ( a , c , f ) { "font-family" == c && ( f = f . replace ( /["']/g , "" ) ) ; d [ c . toLowerCase ( ) ] = f } ) ; return { rules : d , populate : function ( a ) { var c = this . toString ( ) ; c && ( a instanceof CKEDITOR . dom . element ? a . setAttribute ( "style" , c ) : a instanceof CKEDITOR . htmlParser . element ? a . attributes . style = c : a . style = c ) } , toString : function ( ) { var a = [ ] , c ;
for ( c in d ) d [ c ] && a . push ( c , ":" , d [ c ] , ";" ) ; return a . join ( "" ) } } } ;
( function ( ) { function a ( a ) { return function ( b ) { return b . type == CKEDITOR . NODE _ELEMENT && ( "string" == typeof a ? b . name == a : b . name in a ) } } var d = function ( a , b ) { a = a [ 0 ] ; b = b [ 0 ] ; return a < b ? - 1 : a > b ? 1 : 0 } , b = CKEDITOR . htmlParser . fragment . prototype ; CKEDITOR . htmlParser . element . prototype = CKEDITOR . tools . extend ( new CKEDITOR . htmlParser . node , { type : CKEDITOR . NODE _ELEMENT , add : b . add , clone : function ( ) { return new CKEDITOR . htmlParser . element ( this . name , this . attributes ) } , filter : function ( a , b ) { var d = this , k , g ; b = d . getFilterContext ( b ) ; if ( b . off ) return ! 0 ;
if ( ! d . parent ) a . onRoot ( b , d ) ; for ( ; ; ) { k = d . name ; if ( ! ( g = a . onElementName ( b , k ) ) ) return this . remove ( ) , ! 1 ; d . name = g ; if ( ! ( d = a . onElement ( b , d ) ) ) return this . remove ( ) , ! 1 ; if ( d !== this ) return this . replaceWith ( d ) , ! 1 ; if ( d . name == k ) break ; if ( d . type != CKEDITOR . NODE _ELEMENT ) return this . replaceWith ( d ) , ! 1 ; if ( ! d . name ) return this . replaceWithChildren ( ) , ! 1 } k = d . attributes ; var m , r ; for ( m in k ) { for ( g = k [ m ] ; ; ) if ( r = a . onAttributeName ( b , m ) ) if ( r != m ) delete k [ m ] , m = r ; else break ; else { delete k [ m ] ; break } r && ( ! 1 === ( g = a . onAttribute ( b , d , r , g ) ) ? delete k [ r ] :
k [ r ] = g ) } d . isEmpty || this . filterChildren ( a , ! 1 , b ) ; return ! 0 } , filterChildren : b . filterChildren , writeHtml : function ( a , b ) { b && this . filter ( b ) ; var h = this . name , k = [ ] , g = this . attributes , m , r ; a . openTag ( h , g ) ; for ( m in g ) k . push ( [ m , g [ m ] ] ) ; a . sortAttributes && k . sort ( d ) ; m = 0 ; for ( r = k . length ; m < r ; m ++ ) g = k [ m ] , a . attribute ( g [ 0 ] , g [ 1 ] ) ; a . openTagClose ( h , this . isEmpty ) ; this . writeChildrenHtml ( a ) ; this . isEmpty || a . closeTag ( h ) } , writeChildrenHtml : b . writeChildrenHtml , replaceWithChildren : function ( ) { for ( var a = this . children , b = a . length ; b ; ) a [ -- b ] . insertAfter ( this ) ;
if ( ! d . parent ) a . onRoot ( b , d ) ; for ( ; ; ) { k = d . name ; if ( ! ( g = a . onElementName ( b , k ) ) ) return this . remove ( ) , ! 1 ; d . name = g ; if ( ! ( d = a . onElement ( b , d ) ) ) return this . remove ( ) , ! 1 ; if ( d !== this ) return this . replaceWith ( d ) , ! 1 ; if ( d . name == k ) break ; if ( d . type != CKEDITOR . NODE _ELEMENT ) return this . replaceWith ( d ) , ! 1 ; if ( ! d . name ) return this . replaceWithChildren ( ) , ! 1 } k = d . attributes ; var n , r ; for ( n in k ) { for ( g = k [ n ] ; ; ) if ( r = a . onAttributeName ( b , n ) ) if ( r != n ) delete k [ n ] , n = r ; else break ; else { delete k [ n ] ; break } r && ( ! 1 === ( g = a . onAttribute ( b , d , r , g ) ) ? delete k [ r ] :
k [ r ] = g ) } d . isEmpty || this . filterChildren ( a , ! 1 , b ) ; return ! 0 } , filterChildren : b . filterChildren , writeHtml : function ( a , b ) { b && this . filter ( b ) ; var h = this . name , k = [ ] , g = this . attributes , n , r ; a . openTag ( h , g ) ; for ( n in g ) k . push ( [ n , g [ n ] ] ) ; a . sortAttributes && k . sort ( d ) ; n = 0 ; for ( r = k . length ; n < r ; n ++ ) g = k [ n ] , a . attribute ( g [ 0 ] , g [ 1 ] ) ; a . openTagClose ( h , this . isEmpty ) ; this . writeChildrenHtml ( a ) ; this . isEmpty || a . closeTag ( h ) } , writeChildrenHtml : b . writeChildrenHtml , replaceWithChildren : function ( ) { for ( var a = this . children , b = a . length ; b ; ) a [ -- b ] . insertAfter ( this ) ;
this . remove ( ) } , forEach : b . forEach , getFirst : function ( b ) { if ( ! b ) return this . children . length ? this . children [ 0 ] : null ; "function" != typeof b && ( b = a ( b ) ) ; for ( var d = 0 , h = this . children . length ; d < h ; ++ d ) if ( b ( this . children [ d ] ) ) return this . children [ d ] ; return null } , getHtml : function ( ) { var a = new CKEDITOR . htmlParser . basicWriter ; this . writeChildrenHtml ( a ) ; return a . getHtml ( ) } , setHtml : function ( a ) { a = this . children = CKEDITOR . htmlParser . fragment . fromHtml ( a ) . children ; for ( var b = 0 , d = a . length ; b < d ; ++ b ) a [ b ] . parent = this } , getOuterHtml : function ( ) { var a =
new CKEDITOR . htmlParser . basicWriter ; this . writeHtml ( a ) ; return a . getHtml ( ) } , split : function ( a ) { for ( var b = this . children . splice ( a , this . children . length - a ) , d = this . clone ( ) , k = 0 ; k < b . length ; ++ k ) b [ k ] . parent = d ; d . children = b ; b [ 0 ] && ( b [ 0 ] . previous = null ) ; 0 < a && ( this . children [ a - 1 ] . next = null ) ; this . parent . add ( d , this . getIndex ( ) + 1 ) ; return d } , find : function ( a , b ) { void 0 === b && ( b = ! 1 ) ; var d = [ ] , k ; for ( k = 0 ; k < this . children . length ; k ++ ) { var g = this . children [ k ] ; "function" == typeof a && a ( g ) ? d . push ( g ) : "string" == typeof a && g . name === a && d . push ( g ) ;
b && g . find && ( d = d . concat ( g . find ( a , b ) ) ) } return d } , addClass : function ( a ) { if ( ! this . hasClass ( a ) ) { var b = this . attributes [ "class" ] || "" ; this . attributes [ "class" ] = b + ( b ? " " : "" ) + a } } , removeClass : function ( a ) { var b = this . attributes [ "class" ] ; b && ( ( b = CKEDITOR . tools . trim ( b . replace ( new RegExp ( "(?:\\s+|^)" + a + "(?:\\s+|$)" ) , " " ) ) ) ? this . attributes [ "class" ] = b : delete this . attributes [ "class" ] ) } , hasClass : function ( a ) { var b = this . attributes [ "class" ] ; return b ? ( new RegExp ( "(?:^|\\s)" + a + "(?\x3d\\s|$)" ) ) . test ( b ) : ! 1 } , getFilterContext : function ( a ) { var b =
@@ -347,177 +355,177 @@ a.insertAfter(c),c.hide(),c.$.form&&b._attachToForm()):b.setData(a.getHtml(),nul
return b } ; CKEDITOR . inlineAll = function ( ) { var a , d , b ; for ( b in CKEDITOR . dtd . $editable ) for ( var c = CKEDITOR . document . getElementsByTag ( b ) , f = 0 , h = c . count ( ) ; f < h ; f ++ ) a = c . getItem ( f ) , "true" == a . getAttribute ( "contenteditable" ) && ( d = { element : a , config : { } } , ! 1 !== CKEDITOR . fire ( "inline" , d ) && CKEDITOR . inline ( a , d . config ) ) } ; CKEDITOR . domReady ( function ( ) { ! CKEDITOR . disableAutoInline && CKEDITOR . inlineAll ( ) } ) } ) ( ) ; CKEDITOR . replaceClass = "ckeditor" ;
( function ( ) { function a ( a , f , h , k ) { if ( ! CKEDITOR . env . isCompatible ) return null ; a = CKEDITOR . dom . element . get ( a ) ; if ( a . getEditor ( ) ) throw 'The editor instance "' + a . getEditor ( ) . name + '" is already attached to the provided element.' ; var g = new CKEDITOR . editor ( f , a , k ) ; k == CKEDITOR . ELEMENT _MODE _REPLACE && ( a . setStyle ( "visibility" , "hidden" ) , g . _ . required = a . hasAttribute ( "required" ) , a . removeAttribute ( "required" ) ) ; h && g . setData ( h , null , ! 0 ) ; g . on ( "loaded" , function ( ) { b ( g ) ; k == CKEDITOR . ELEMENT _MODE _REPLACE && g . config . autoUpdateElement &&
a . $ . form && g . _attachToForm ( ) ; g . setMode ( g . config . startupMode , function ( ) { g . resetDirty ( ) ; g . status = "ready" ; g . fireOnce ( "instanceReady" ) ; CKEDITOR . fire ( "instanceReady" , null , g ) } ) } ) ; g . on ( "destroy" , d ) ; return g } function d ( ) { var a = this . container , b = this . element ; a && ( a . clearCustomData ( ) , a . remove ( ) ) ; b && ( b . clearCustomData ( ) , this . elementMode == CKEDITOR . ELEMENT _MODE _REPLACE && ( b . show ( ) , this . _ . required && b . setAttribute ( "required" , "required" ) ) , delete this . element ) } function b ( a ) { var b = a . name , d = a . element , k = a . elementMode , g =
a . fire ( "uiSpace" , { space : "top" , html : "" } ) . html , m = a . fire ( "uiSpace" , { space : "bottom" , html : "" } ) . html , r = new CKEDITOR . template ( '\x3c{outerEl} id\x3d"cke_{name}" class\x3d"{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} ' + CKEDITOR . env . cssClass + '" dir\x3d"{langDir}" lang\x3d"{langCode}" role\x3d"application"' + ( a . title ? ' aria-labelledby\x3d"cke_{name}_arialbl"' : "" ) + "\x3e" + ( a . title ? '\x3cspan id\x3d"cke_{name}_arialbl" class\x3d"cke_voice_label"\x3e{voiceLabel}\x3c/span\x3e' : "" ) + '\x3c{outerEl} class\x3d"cke_inner cke_reset" role\x3d"presentation"\x3e{topHtml}\x3c{outerEl} id\x3d"{contentId}" class\x3d"cke_contents cke_reset" role\x3d"presentation"\x3e\x3c/{outerEl}\x3e{bottomHtml}\x3c/{outerEl}\x3e\x3c/{outerEl}\x3e' ) ,
b = CKEDITOR . dom . element . createFromHtml ( r . output ( { id : a . id , name : b , langDir : a . lang . dir , langCode : a . langCode , voiceLabel : a . title , topHtml : g ? '\x3cspan id\x3d"' + a . ui . spaceId ( "top" ) + '" class\x3d"cke_top cke_reset_all" role\x3d"presentation" style\x3d"height:auto"\x3e' + g + "\x3c/span\x3e" : "" , contentId : a . ui . spaceId ( "contents" ) , bottomHtml : m ? '\x3cspan id\x3d"' + a . ui . spaceId ( "bottom" ) + '" class\x3d"cke_bottom cke_reset_all" role\x3d"presentation"\x3e' + m + "\x3c/span\x3e" : "" , outerEl : CKEDITOR . env . ie ? "span" : "div" } ) ) ; k == CKEDITOR . ELEMENT _MODE _REPLACE ?
( d . hide ( ) , b . insertAfter ( d ) ) : d . append ( b ) ; a . container = b ; a . ui . contentsElement = a . ui . space ( "contents" ) ; g && a . ui . space ( "top" ) . unselectable ( ) ; m && a . ui . space ( "bottom" ) . unselectable ( ) ; d = a . config . width ; k = a . config . height ; d && b . setStyle ( "width" , CKEDITOR . tools . cssLength ( d ) ) ; k && a . ui . space ( "contents" ) . setStyle ( "height" , CKEDITOR . tools . cssLength ( k ) ) ; b . disableContextMenu ( ) ; CKEDITOR . env . webkit && b . on ( "focus" , function ( ) { a . focus ( ) } ) ; a . fireOnce ( "uiReady" ) } CKEDITOR . replace = function ( b , d ) { return a ( b , d , null , CKEDITOR . ELEMENT _MODE _REPLACE ) } ;
a . fire ( "uiSpace" , { space : "top" , html : "" } ) . html , n = a . fire ( "uiSpace" , { space : "bottom" , html : "" } ) . html , r = new CKEDITOR . template ( '\x3c{outerEl} id\x3d"cke_{name}" class\x3d"{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} ' + CKEDITOR . env . cssClass + '" dir\x3d"{langDir}" lang\x3d"{langCode}" role\x3d"application"' + ( a . title ? ' aria-labelledby\x3d"cke_{name}_arialbl"' : "" ) + "\x3e" + ( a . title ? '\x3cspan id\x3d"cke_{name}_arialbl" class\x3d"cke_voice_label"\x3e{voiceLabel}\x3c/span\x3e' : "" ) + '\x3c{outerEl} class\x3d"cke_inner cke_reset" role\x3d"presentation"\x3e{topHtml}\x3c{outerEl} id\x3d"{contentId}" class\x3d"cke_contents cke_reset" role\x3d"presentation"\x3e\x3c/{outerEl}\x3e{bottomHtml}\x3c/{outerEl}\x3e\x3c/{outerEl}\x3e' ) ,
b = CKEDITOR . dom . element . createFromHtml ( r . output ( { id : a . id , name : b , langDir : a . lang . dir , langCode : a . langCode , voiceLabel : a . title , topHtml : g ? '\x3cspan id\x3d"' + a . ui . spaceId ( "top" ) + '" class\x3d"cke_top cke_reset_all" role\x3d"presentation" style\x3d"height:auto"\x3e' + g + "\x3c/span\x3e" : "" , contentId : a . ui . spaceId ( "contents" ) , bottomHtml : n ? '\x3cspan id\x3d"' + a . ui . spaceId ( "bottom" ) + '" class\x3d"cke_bottom cke_reset_all" role\x3d"presentation"\x3e' + n + "\x3c/span\x3e" : "" , outerEl : CKEDITOR . env . ie ? "span" : "div" } ) ) ; k == CKEDITOR . ELEMENT _MODE _REPLACE ?
( d . hide ( ) , b . insertAfter ( d ) ) : d . append ( b ) ; a . container = b ; a . ui . contentsElement = a . ui . space ( "contents" ) ; g && a . ui . space ( "top" ) . unselectable ( ) ; n && a . ui . space ( "bottom" ) . unselectable ( ) ; d = a . config . width ; k = a . config . height ; d && b . setStyle ( "width" , CKEDITOR . tools . cssLength ( d ) ) ; k && a . ui . space ( "contents" ) . setStyle ( "height" , CKEDITOR . tools . cssLength ( k ) ) ; b . disableContextMenu ( ) ; CKEDITOR . env . webkit && b . on ( "focus" , function ( ) { a . focus ( ) } ) ; a . fireOnce ( "uiReady" ) } CKEDITOR . replace = function ( b , d ) { return a ( b , d , null , CKEDITOR . ELEMENT _MODE _REPLACE ) } ;
CKEDITOR . appendTo = function ( b , d , h ) { return a ( b , d , h , CKEDITOR . ELEMENT _MODE _APPENDTO ) } ; CKEDITOR . replaceAll = function ( ) { for ( var a = document . getElementsByTagName ( "textarea" ) , b = 0 ; b < a . length ; b ++ ) { var d = null , k = a [ b ] ; if ( k . name || k . id ) { if ( "string" == typeof arguments [ 0 ] ) { if ( ! ( new RegExp ( "(?:^|\\s)" + arguments [ 0 ] + "(?:$|\\s)" ) ) . test ( k . className ) ) continue } else if ( "function" == typeof arguments [ 0 ] && ( d = { } , ! 1 === arguments [ 0 ] ( k , d ) ) ) continue ; this . replace ( k , d ) } } } ; CKEDITOR . editor . prototype . addMode = function ( a , b ) { ( this . _ . modes || ( this . _ . modes =
{ } ) ) [ a ] = b } ; CKEDITOR . editor . prototype . setMode = function ( a , b ) { var d = this , k = this . _ . modes ; if ( a != d . mode && k && k [ a ] ) { d . fire ( "beforeSetMode" , a ) ; if ( d . mode ) { var g = d . checkDirty ( ) , k = d . _ . previousModeData , m , r = 0 ; d . fire ( "beforeModeUnload" ) ; d . editable ( 0 ) ; d . _ . previousMode = d . mode ; d . _ . previousModeData = m = d . getData ( 1 ) ; "source" == d . mode && k == m && ( d . fire ( "lockSnapshot" , { forceUpdate : ! 0 } ) , r = 1 ) ; d . ui . space ( "contents" ) . setHtml ( "" ) ; d . mode = "" } else d . _ . previousModeData = d . getData ( 1 ) ; this . _ . modes [ a ] ( function ( ) { d . mode = a ; void 0 !== g && ! g &&
d . resetDirty ( ) ; r ? d . fire ( "unlockSnapshot" ) : "wysiwyg" == a && d . fire ( "saveSnapshot" ) ; setTimeout ( function ( ) { d . fire ( "mode" ) ; b && b . call ( d ) } , 0 ) } ) } } ; CKEDITOR . editor . prototype . resize = function ( a , b , d , k ) { var g = this . container , m = this . ui . space ( "contents" ) , r = CKEDITOR . env . webkit && this . document && this . document . getWindow ( ) . $ . frameElement ; k = k ? this . container . getFirst ( function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT && a . hasClass ( "cke_inner" ) } ) : g ; k . setSize ( "width" , a , ! 0 ) ; r && ( r . style . width = "1%" ) ; var e = ( k . $ . offsetHeight || 0 ) - ( m . $ . clientHeight ||
0 ) , g = Math . max ( b - ( d ? 0 : e ) , 0 ) ; b = d ? b + e : b ; m . setStyle ( "height" , g + "px" ) ; r && ( r . style . width = "100%" ) ; this . fire ( "resize" , { outerHeight : b , contentsHeight : g , outerWidth : a || k . getSize ( "width" ) } ) } ; CKEDITOR . editor . prototype . getResizable = function ( a ) { return a ? this . ui . space ( "contents" ) : this . container } ; CKEDITOR . domReady ( function ( ) { CKEDITOR . replaceClass && CKEDITOR . replaceAll ( CKEDITOR . replaceClass ) } ) } ) ( ) ; CKEDITOR . config . startupMode = "wysiwyg" ;
( function ( ) { function a ( a ) { var b = a . editor , e = a . data . path , f = e . blockLimit , h = a . data . selection , g = h . getRanges ( ) [ 0 ] , t ; if ( CKEDITOR . env . gecko || CKEDITOR . env . ie && CKEDITOR . env . needsBrFiller ) if ( h = d ( h , e ) ) h . appendBogus ( ) , t = CKEDITOR . env . ie ; k ( b , e . block , f ) && g . collapsed && ! g . getCommonAncestor ( ) . isReadOnly ( ) && ( e = g . clone ( ) , e . enlarge ( CKEDITOR . ENLARGE _BLOCK _CONTENTS ) , f = new CKEDITOR . dom . walker ( e ) , f . guard = function ( a ) { return ! c ( a ) || a . type == CKEDITOR . NODE _COMMENT || a . isReadOnly ( ) } , ! f . checkForward ( ) || e . checkStartOfBlock ( ) && e . checkEndOfBlock ( ) ) &&
( b = g . fixBlock ( ! 0 , b . activeEnterMode == CKEDITOR . ENTER _DIV ? "div" : "p" ) , CKEDITOR . env . needsBrFiller || ( b = b . getFirst ( c ) ) && b . type == CKEDITOR . NODE _TEXT && CKEDITOR . tools . trim ( b . getText ( ) ) . match ( /^(?: |\xa0)$/ ) && b . remove ( ) , t = 1 , a . cancel ( ) ) ; t && g . select ( ) } function d ( a , b ) { if ( a . isFake ) return 0 ; var d = b . block || b . blockLimit , e = d && d . getLast ( c ) ; if ( ! ( ! d || ! d . isBlockBoundary ( ) || e && e . type == CKEDITOR . NODE _ELEMENT && e . isBlockBoundary ( ) || d . is ( "pre" ) || d . getBogus ( ) ) ) return d } function b ( a ) { var b = a . data . getTarget ( ) ; b . is ( "input" ) &&
( b = b . getAttribute ( "type" ) , "submit" != b && "reset" != b || a . data . preventDefault ( ) ) } function c ( a ) { return e ( a ) && z ( a ) } function f ( a , b ) { return function ( c ) { var d = c . data . $ . toElement || c . data . $ . fromElement || c . data . $ . relatedTarget ; ( d = d && d . nodeType == CKEDITOR . NODE _ELEMENT ? new CKEDITOR . dom . element ( d ) : null ) && ( b . equals ( d ) || b . contains ( d ) ) || a . call ( this , c ) } } function h ( a ) { function b ( a ) { return function ( b , e ) { e && b . type == CKEDITOR . NODE _ELEMENT && b . is ( f ) && ( d = b ) ; if ( ! ( e || ! c ( b ) || a && A ( b ) ) ) return ! 1 } } var d , e = a . getRanges ( ) [ 0 ] ; a = a . root ;
var f = { table : 1 , ul : 1 , ol : 1 , dl : 1 } ; if ( e . startPath ( ) . contains ( f ) ) { var h = e . clone ( ) ; h . collapse ( 1 ) ; h . setStartAt ( a , CKEDITOR . POSITION _AFTER _START ) ; a = new CKEDITOR . dom . walker ( h ) ; a . guard = b ( ) ; a . checkBackward ( ) ; if ( d ) return h = e . clone ( ) , h . collapse ( ) , h . setEndAt ( d , CKEDITOR . POSITION _AFTER _END ) , a = new CKEDITOR . dom . walker ( h ) , a . guard = b ( ! 0 ) , d = ! 1 , a . checkForward ( ) , d } return null } function k ( a , b , c ) { return ! 1 !== a . config . autoParagraph && a . activeEnterMode != CKEDITOR . ENTER _BR && ( a . editable ( ) . equals ( c ) && ! b || b && "true" == b . getAttribute ( "contenteditable" ) ) }
function g ( a ) { return a . activeEnterMode != CKEDITOR . ENTER _BR && ! 1 !== a . config . autoParagraph ? a . activeEnterMode == CKEDITOR . ENTER _DIV ? "div" : "p" : ! 1 } function m ( a ) { var b = a . editor ; b . getSelection ( ) . scrollIntoView ( ) ; setTimeout ( function ( ) { b . fire ( "saveSnapshot" ) } , 0 ) } function r ( a , b , c ) { var d = a . getCommonAncestor ( b ) ; for ( b = a = c ? b : a ; ( a = a . getParent ( ) ) && ! d . equals ( a ) && 1 == a . getChildCount ( ) ; ) b = a ; b . remove ( ) } var e , z , y , A , D , x , p , J , u , K ; CKEDITOR . editable = CKEDITOR . tools . createClass ( { base : CKEDITOR . dom . element , $ : function ( a , b ) { this . base ( b . $ ||
{ } ) ) [ a ] = b } ; CKEDITOR . editor . prototype . setMode = function ( a , b ) { var d = this , k = this . _ . modes ; if ( a != d . mode && k && k [ a ] ) { d . fire ( "beforeSetMode" , a ) ; if ( d . mode ) { var g = d . checkDirty ( ) , k = d . _ . previousModeData , n , r = 0 ; d . fire ( "beforeModeUnload" ) ; d . editable ( 0 ) ; d . _ . previousMode = d . mode ; d . _ . previousModeData = n = d . getData ( 1 ) ; "source" == d . mode && k == n && ( d . fire ( "lockSnapshot" , { forceUpdate : ! 0 } ) , r = 1 ) ; d . ui . space ( "contents" ) . setHtml ( "" ) ; d . mode = "" } else d . _ . previousModeData = d . getData ( 1 ) ; this . _ . modes [ a ] ( function ( ) { d . mode = a ; void 0 !== g && ! g &&
d . resetDirty ( ) ; r ? d . fire ( "unlockSnapshot" ) : "wysiwyg" == a && d . fire ( "saveSnapshot" ) ; setTimeout ( function ( ) { d . fire ( "mode" ) ; b && b . call ( d ) } , 0 ) } ) } } ; CKEDITOR . editor . prototype . resize = function ( a , b , d , k ) { var g = this . container , n = this . ui . space ( "contents" ) , r = CKEDITOR . env . webkit && this . document && this . document . getWindow ( ) . $ . frameElement ; k = k ? this . container . getFirst ( function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT && a . hasClass ( "cke_inner" ) } ) : g ; k . setSize ( "width" , a , ! 0 ) ; r && ( r . style . width = "1%" ) ; var e = ( k . $ . offsetHeight || 0 ) - ( n . $ . clientHeight ||
0 ) , g = Math . max ( b - ( d ? 0 : e ) , 0 ) ; b = d ? b + e : b ; n . setStyle ( "height" , g + "px" ) ; r && ( r . style . width = "100%" ) ; this . fire ( "resize" , { outerHeight : b , contentsHeight : g , outerWidth : a || k . getSize ( "width" ) } ) } ; CKEDITOR . editor . prototype . getResizable = function ( a ) { return a ? this . ui . space ( "contents" ) : this . container } ; CKEDITOR . domReady ( function ( ) { CKEDITOR . replaceClass && CKEDITOR . replaceAll ( CKEDITOR . replaceClass ) } ) } ) ( ) ; CKEDITOR . config . startupMode = "wysiwyg" ;
( function ( ) { function a ( a ) { var b = a . editor , e = a . data . path , f = e . blockLimit , g = a . data . selection , h = g . getRanges ( ) [ 0 ] , q ; if ( CKEDITOR . env . gecko || CKEDITOR . env . ie && CKEDITOR . env . needsBrFiller ) if ( g = d ( g , e ) ) g . appendBogus ( ) , q = CKEDITOR . env . ie ; k ( b , e . block , f ) && h . collapsed && ! h . getCommonAncestor ( ) . isReadOnly ( ) && ( e = h . clone ( ) , e . enlarge ( CKEDITOR . ENLARGE _BLOCK _CONTENTS ) , f = new CKEDITOR . dom . walker ( e ) , f . guard = function ( a ) { return ! c ( a ) || a . type == CKEDITOR . NODE _COMMENT || a . isReadOnly ( ) } , ! f . checkForward ( ) || e . checkStartOfBlock ( ) && e . checkEndOfBlock ( ) ) &&
( b = h . fixBlock ( ! 0 , b . activeEnterMode == CKEDITOR . ENTER _DIV ? "div" : "p" ) , CKEDITOR . env . needsBrFiller || ( b = b . getFirst ( c ) ) && b . type == CKEDITOR . NODE _TEXT && CKEDITOR . tools . trim ( b . getText ( ) ) . match ( /^(?: |\xa0)$/ ) && b . remove ( ) , q = 1 , a . cancel ( ) ) ; q && h . select ( ) } function d ( a , b ) { if ( a . isFake ) return 0 ; var d = b . block || b . blockLimit , e = d && d . getLast ( c ) ; if ( ! ( ! d || ! d . isBlockBoundary ( ) || e && e . type == CKEDITOR . NODE _ELEMENT && e . isBlockBoundary ( ) || d . is ( "pre" ) || d . getBogus ( ) ) ) return d } function b ( a ) { var b = a . data . getTarget ( ) ; b . is ( "input" ) &&
( b = b . getAttribute ( "type" ) , "submit" != b && "reset" != b || a . data . preventDefault ( ) ) } function c ( a ) { return e ( a ) && y ( a ) } function f ( a , b ) { return function ( c ) { var d = c . data . $ . toElement || c . data . $ . fromElement || c . data . $ . relatedTarget ; ( d = d && d . nodeType == CKEDITOR . NODE _ELEMENT ? new CKEDITOR . dom . element ( d ) : null ) && ( b . equals ( d ) || b . contains ( d ) ) || a . call ( this , c ) } } function h ( a ) { function b ( a ) { return function ( b , e ) { e && b . type == CKEDITOR . NODE _ELEMENT && b . is ( f ) && ( d = b ) ; if ( ! ( e || ! c ( b ) || a && A ( b ) ) ) return ! 1 } } var d , e = a . getRanges ( ) [ 0 ] ; a = a . root ;
var f = { table : 1 , ul : 1 , ol : 1 , dl : 1 } ; if ( e . startPath ( ) . contains ( f ) ) { var g = e . clone ( ) ; g . collapse ( 1 ) ; g . setStartAt ( a , CKEDITOR . POSITION _AFTER _START ) ; a = new CKEDITOR . dom . walker ( g ) ; a . guard = b ( ) ; a . checkBackward ( ) ; if ( d ) return g = e . clone ( ) , g . collapse ( ) , g . setEndAt ( d , CKEDITOR . POSITION _AFTER _END ) , a = new CKEDITOR . dom . walker ( g ) , a . guard = b ( ! 0 ) , d = ! 1 , a . checkForward ( ) , d } return null } function k ( a , b , c ) { return ! 1 !== a . config . autoParagraph && a . activeEnterMode != CKEDITOR . ENTER _BR && ( a . editable ( ) . equals ( c ) && ! b || b && "true" == b . getAttribute ( "contenteditable" ) ) }
function g ( a ) { return a . activeEnterMode != CKEDITOR . ENTER _BR && ! 1 !== a . config . autoParagraph ? a . activeEnterMode == CKEDITOR . ENTER _DIV ? "div" : "p" : ! 1 } function n ( a ) { var b = a . editor ; b . getSelection ( ) . scrollIntoView ( ) ; setTimeout ( function ( ) { b . fire ( "saveSnapshot" ) } , 0 ) } function r ( a , b , c ) { var d = a . getCommonAncestor ( b ) ; for ( b = a = c ? b : a ; ( a = a . getParent ( ) ) && ! d . equals ( a ) && 1 == a . getChildCount ( ) ; ) b = a ; b . remove ( ) } var e , y , v , A , D , x , m , J , u , K ; CKEDITOR . editable = CKEDITOR . tools . createClass ( { base : CKEDITOR . dom . element , $ : function ( a , b ) { this . base ( b . $ ||
b ) ; this . editor = a ; this . status = "unloaded" ; this . hasFocus = ! 1 ; this . setup ( ) } , proto : { focus : function ( ) { var a ; if ( CKEDITOR . env . webkit && ! this . hasFocus && ( a = this . editor . _ . previousActive || this . getDocument ( ) . getActive ( ) , this . contains ( a ) ) ) { a . focus ( ) ; return } CKEDITOR . env . edge && 14 < CKEDITOR . env . version && ! this . hasFocus && this . getDocument ( ) . equals ( CKEDITOR . document ) && ( this . editor . _ . previousScrollTop = this . $ . scrollTop ) ; try { if ( ! CKEDITOR . env . ie || CKEDITOR . env . edge && 14 < CKEDITOR . env . version || ! this . getDocument ( ) . equals ( CKEDITOR . document ) ) if ( CKEDITOR . env . chrome ) { var b =
this . $ . scrollTop ; this . $ . focus ( ) ; this . $ . scrollTop = b } else this . $ . focus ( ) ; else this . $ . setActive ( ) } catch ( c ) { if ( ! CKEDITOR . env . ie ) throw c ; } CKEDITOR . env . safari && ! this . isInline ( ) && ( a = CKEDITOR . document . getActive ( ) , a . equals ( this . getWindow ( ) . getFrame ( ) ) || this . getWindow ( ) . focus ( ) ) } , on : function ( a , b ) { var c = Array . prototype . slice . call ( arguments , 0 ) ; CKEDITOR . env . ie && /^focus|blur$/ . exec ( a ) && ( a = "focus" == a ? "focusin" : "focusout" , b = f ( b , this ) , c [ 0 ] = a , c [ 1 ] = b ) ; return CKEDITOR . dom . element . prototype . on . apply ( this , c ) } , attachListener : function ( a ) { ! this . _ . listeners &&
( this . _ . listeners = [ ] ) ; var b = Array . prototype . slice . call ( arguments , 1 ) , b = a . on . apply ( a , b ) ; this . _ . listeners . push ( b ) ; return b } , clearListeners : function ( ) { var a = this . _ . listeners ; try { for ( ; a . length ; ) a . pop ( ) . removeListener ( ) } catch ( b ) { } } , restoreAttrs : function ( ) { var a = this . _ . attrChanges , b , c ; for ( c in a ) a . hasOwnProperty ( c ) && ( b = a [ c ] , null !== b ? this . setAttribute ( c , b ) : this . removeAttribute ( c ) ) } , attachClass : function ( a ) { var b = this . getCustomData ( "classes" ) ; this . hasClass ( a ) || ( ! b && ( b = [ ] ) , b . push ( a ) , this . setCustomData ( "classes" ,
b ) , this . addClass ( a ) ) } , changeAttr : function ( a , b ) { var c = this . getAttribute ( a ) ; b !== c && ( ! this . _ . attrChanges && ( this . _ . attrChanges = { } ) , a in this . _ . attrChanges || ( this . _ . attrChanges [ a ] = c ) , this . setAttribute ( a , b ) ) } , insertText : function ( a ) { this . editor . focus ( ) ; this . insertHtml ( this . transformPlainTextToHtml ( a ) , "text" ) } , transformPlainTextToHtml : function ( a ) { var b = this . editor . getSelection ( ) . getStartElement ( ) . hasAscendant ( "pre" , ! 0 ) ? CKEDITOR . ENTER _BR : this . editor . activeEnterMode ; return CKEDITOR . tools . transformPlainTextToHtml ( a ,
b ) } , insertHtml : function ( a , b , c ) { var d = this . editor ; d . focus ( ) ; d . fire ( "saveSnapshot" ) ; c || ( c = d . getSelection ( ) . getRanges ( ) [ 0 ] ) ; x ( this , b || "html" , a , c ) ; c . select ( ) ; m ( this ) ; this . editor . fire ( "afterInsertHtml" , { } ) } , insertHtmlIntoRange : function ( a , b , c ) { x ( this , c || "html" , a , b ) ; this . editor . fire ( "afterInsertHtml" , { intoRange : b } ) } , insertElement : function ( a , b ) { var d = this . editor ; d . focus ( ) ; d . fire ( "saveSnapshot" ) ; var e = d . activeEnterMode , d = d . getSelection ( ) , f = a . getName ( ) , f = CKEDITOR . dtd . $block [ f ] ; b || ( b = d . getRanges ( ) [ 0 ] ) ; this . insertElementIntoRange ( a ,
b ) && ( b . moveToPosition ( a , CKEDITOR . POSITION _AFTER _END ) , f && ( ( f = a . getNext ( function ( a ) { return c ( a ) && ! A ( a ) } ) ) && f . type == CKEDITOR . NODE _ELEMENT && f . is ( CKEDITOR . dtd . $block ) ? f . getDtd ( ) [ "#" ] ? b . moveToElementEditStart ( f ) : b . moveToElementEditEnd ( a ) : f || e == CKEDITOR . ENTER _BR || ( f = b . fixBlock ( ! 0 , e == CKEDITOR . ENTER _DIV ? "div" : "p" ) , b . moveToElementEditStart ( f ) ) ) ) ; d . selectRanges ( [ b ] ) ; m ( this ) } , insertElementIntoSelection : function ( a ) { this . insertElement ( a ) } , insertElementIntoRange : function ( a , b ) { var c = this . editor , d = c . config . enterMode ,
e = a . getName ( ) , f = CKEDITOR . dtd . $block [ e ] ; if ( b . checkReadOnly ( ) ) return ! 1 ; b . deleteContents ( 1 ) ; b . startContainer . type == CKEDITOR . NODE _ELEMENT && ( b . startContainer . is ( { tr : 1 , table : 1 , tbody : 1 , thead : 1 , tfoot : 1 } ) ? p ( b ) : b . startContainer . is ( CKEDITOR . dtd . $list ) && J ( b ) ) ; var t , E ; if ( f ) for ( ; ( t = b . getCommonAncestor ( 0 , 1 ) ) && ( E = CKEDITOR . dtd [ t . getName ( ) ] ) && ( ! E || ! E [ e ] ) ; ) t . getName ( ) in CKEDITOR . dtd . span ? b . splitElement ( t ) : b . checkStartOfBlock ( ) && b . checkEndOfBlock ( ) ? ( b . setStartBefore ( t ) , b . collapse ( ! 0 ) , t . remove ( ) ) : b . splitBlock ( d == CKEDITOR . ENTER _DIV ?
b ) } , insertHtml : function ( a , b , c ) { var d = this . editor ; d . focus ( ) ; d . fire ( "saveSnapshot" ) ; c || ( c = d . getSelection ( ) . getRanges ( ) [ 0 ] ) ; x ( this , b || "html" , a , c ) ; c . select ( ) ; n ( this ) ; this . editor . fire ( "afterInsertHtml" , { } ) } , insertHtmlIntoRange : function ( a , b , c ) { x ( this , c || "html" , a , b ) ; this . editor . fire ( "afterInsertHtml" , { intoRange : b } ) } , insertElement : function ( a , b ) { var d = this . editor ; d . focus ( ) ; d . fire ( "saveSnapshot" ) ; var e = d . activeEnterMode , d = d . getSelection ( ) , f = a . getName ( ) , f = CKEDITOR . dtd . $block [ f ] ; b || ( b = d . getRanges ( ) [ 0 ] ) ; this . insertElementIntoRange ( a ,
b ) && ( b . moveToPosition ( a , CKEDITOR . POSITION _AFTER _END ) , f && ( ( f = a . getNext ( function ( a ) { return c ( a ) && ! A ( a ) } ) ) && f . type == CKEDITOR . NODE _ELEMENT && f . is ( CKEDITOR . dtd . $block ) ? f . getDtd ( ) [ "#" ] ? b . moveToElementEditStart ( f ) : b . moveToElementEditEnd ( a ) : f || e == CKEDITOR . ENTER _BR || ( f = b . fixBlock ( ! 0 , e == CKEDITOR . ENTER _DIV ? "div" : "p" ) , b . moveToElementEditStart ( f ) ) ) ) ; d . selectRanges ( [ b ] ) ; n ( this ) } , insertElementIntoSelection : function ( a ) { this . insertElement ( a ) } , insertElementIntoRange : function ( a , b ) { var c = this . editor , d = c . config . enterMode ,
e = a . getName ( ) , f = CKEDITOR . dtd . $block [ e ] ; if ( b . checkReadOnly ( ) ) return ! 1 ; b . deleteContents ( 1 ) ; b . startContainer . type == CKEDITOR . NODE _ELEMENT && ( b . startContainer . is ( { tr : 1 , table : 1 , tbody : 1 , thead : 1 , tfoot : 1 } ) ? m ( b ) : b . startContainer . is ( CKEDITOR . dtd . $list ) && J ( b ) ) ; var q , g ; if ( f ) for ( ; ( q = b . getCommonAncestor ( 0 , 1 ) ) && ( g = CKEDITOR . dtd [ q . getName ( ) ] ) && ( ! g || ! g [ e ] ) ; ) q . getName ( ) in CKEDITOR . dtd . span ? b . splitElement ( q ) : b . checkStartOfBlock ( ) && b . checkEndOfBlock ( ) ? ( b . setStartBefore ( q ) , b . collapse ( ! 0 ) , q . remove ( ) ) : b . splitBlock ( d == CKEDITOR . ENTER _DIV ?
"div" : "p" , c . editable ( ) ) ; b . insertNode ( a ) ; return ! 0 } , setData : function ( a , b ) { b || ( a = this . editor . dataProcessor . toHtml ( a ) ) ; this . setHtml ( a ) ; this . fixInitialSelection ( ) ; "unloaded" == this . status && ( this . status = "ready" ) ; this . editor . fire ( "dataReady" ) } , getData : function ( a ) { var b = this . getHtml ( ) ; a || ( b = this . editor . dataProcessor . toDataFormat ( b ) ) ; return b } , setReadOnly : function ( a ) { this . setAttribute ( "contenteditable" , ! a ) } , detach : function ( ) { this . removeClass ( "cke_editable" ) ; this . status = "detached" ; var a = this . editor ; this . _ . detach ( ) ;
delete a . document ; delete a . window } , isInline : function ( ) { return this . getDocument ( ) . equals ( CKEDITOR . document ) } , fixInitialSelection : function ( ) { function a ( ) { var b = c . getDocument ( ) . $ , d = b . getSelection ( ) , e ; a : if ( d . anchorNode && d . anchorNode == c . $ ) e = ! 0 ; else { if ( CKEDITOR . env . webkit && ( e = c . getDocument ( ) . getActive ( ) ) && e . equals ( c ) && ! d . anchorNode ) { e = ! 0 ; break a } e = void 0 } e && ( e = new CKEDITOR . dom . range ( c ) , e . moveToElementEditStart ( c ) , b = b . createRange ( ) , b . setStart ( e . startContainer . $ , e . startOffset ) , b . collapse ( ! 0 ) , d . removeAllRanges ( ) ,
d . addRange ( b ) ) } function b ( ) { var a = c . getDocument ( ) . $ , d = a . selection , e = c . getDocument ( ) . getActive ( ) ; "None" == d . type && e . equals ( c ) && ( d = new CKEDITOR . dom . range ( c ) , a = a . body . createTextRange ( ) , d . moveToElementEditStart ( c ) , d = d . startContainer , d . type != CKEDITOR . NODE _ELEMENT && ( d = d . getParent ( ) ) , a . moveToElementText ( d . $ ) , a . collapse ( ! 0 ) , a . select ( ) ) } var c = this ; if ( CKEDITOR . env . ie && ( 9 > CKEDITOR . env . version || CKEDITOR . env . quirks ) ) this . hasFocus && ( this . focus ( ) , b ( ) ) ; else if ( this . hasFocus ) this . focus ( ) , a ( ) ; else this . once ( "focus" ,
function ( ) { a ( ) } , null , null , - 999 ) } , getHtmlFromRange : function ( a ) { if ( a . collapsed ) return new CKEDITOR . dom . documentFragment ( a . document ) ; a = { doc : this . getDocument ( ) , range : a . clone ( ) } ; u . eol . detect ( a , this ) ; u . bogus . exclude ( a ) ; u . cell . shrink ( a ) ; a . fragment = a . range . cloneContents ( ) ; u . tree . rebuild ( a , this ) ; u . eol . fix ( a , this ) ; return new CKEDITOR . dom . documentFragment ( a . fragment . $ ) } , extractHtmlFromRange : function ( a , b ) { var c = K , d = { range : a , doc : a . document } , e = this . getHtmlFromRange ( a ) ; if ( a . collapsed ) return a . optimize ( ) , e ; a . enlarge ( CKEDITOR . ENLARGE _INLINE ,
1 ) ; c . table . detectPurge ( d ) ; d . bookmark = a . createBookmark ( ) ; delete d . range ; var f = this . editor . createRange ( ) ; f . moveToPosition ( d . bookmark . startNode , CKEDITOR . POSITION _BEFORE _START ) ; d . targetBookmark = f . createBookmark ( ) ; c . list . detectMerge ( d , this ) ; c . table . detectRanges ( d , this ) ; c . block . detectMerge ( d , this ) ; d . tableContentsRanges ? ( c . table . deleteRanges ( d ) , a . moveToBookmark ( d . bookmark ) , d . range = a ) : ( a . moveToBookmark ( d . bookmark ) , d . range = a , a . extractContents ( c . detectExtractMerge ( d ) ) ) ; a . moveToBookmark ( d . targetBookmark ) ; a . optimize ( ) ;
c . fixUneditableRangePosition ( a ) ; c . list . merge ( d , this ) ; c . table . purge ( d , this ) ; c . block . merge ( d , this ) ; if ( b ) { c = a . startPath ( ) ; if ( d = a . checkStartOfBlock ( ) && a . checkEndOfBlock ( ) && c . block && ! a . root . equals ( c . block ) ) { a : { var d = c . block . getElementsByTag ( "span" ) , f = 0 , t ; if ( d ) for ( ; t = d . getItem ( f ++ ) ; ) if ( ! z ( t ) ) { d = ! 0 ; break a } d = ! 1 } d = ! d } d && ( a . moveToPosition ( c . block , CKEDITOR . POSITION _BEFORE _START ) , c . block . remove ( ) ) } else c . autoParagraph ( this . editor , a ) , y ( a . startContainer ) && a . startContainer . appendBogus ( ) ; a . startContainer . mergeSiblings ( ) ;
c . fixUneditableRangePosition ( a ) ; c . list . merge ( d , this ) ; c . table . purge ( d , this ) ; c . block . merge ( d , this ) ; if ( b ) { c = a . startPath ( ) ; if ( d = a . checkStartOfBlock ( ) && a . checkEndOfBlock ( ) && c . block && ! a . root . equals ( c . block ) ) { a : { var d = c . block . getElementsByTag ( "span" ) , f = 0 , q ; if ( d ) for ( ; q = d . getItem ( f ++ ) ; ) if ( ! y ( q ) ) { d = ! 0 ; break a } d = ! 1 } d = ! d } d && ( a . moveToPosition ( c . block , CKEDITOR . POSITION _BEFORE _START ) , c . block . remove ( ) ) } else c . autoParagraph ( this . editor , a ) , v ( a . startContainer ) && a . startContainer . appendBogus ( ) ; a . startContainer . mergeSiblings ( ) ;
return e } , setup : function ( ) { var a = this . editor ; this . attachListener ( a , "beforeGetData" , function ( ) { var b = this . getData ( ) ; this . is ( "textarea" ) || ! 1 !== a . config . ignoreEmptyParagraph && ( b = b . replace ( D , function ( a , b ) { return b } ) ) ; a . setData ( b , null , 1 ) } , this ) ; this . attachListener ( a , "getSnapshot" , function ( a ) { a . data = this . getData ( 1 ) } , this ) ; this . attachListener ( a , "afterSetData" , function ( ) { this . setData ( a . getData ( 1 ) ) } , this ) ; this . attachListener ( a , "loadSnapshot" , function ( a ) { this . setData ( a . data , 1 ) } , this ) ; this . attachListener ( a ,
"beforeFocus" , function ( ) { var b = a . getSelection ( ) ; ( b = b && b . getNative ( ) ) && "Control" == b . type || this . focus ( ) } , this ) ; this . attachListener ( a , "insertHtml" , function ( a ) { this . insertHtml ( a . data . dataValue , a . data . mode , a . data . range ) } , this ) ; this . attachListener ( a , "insertElement" , function ( a ) { this . insertElement ( a . data ) } , this ) ; this . attachListener ( a , "insertText" , function ( a ) { this . insertText ( a . data ) } , this ) ; this . setReadOnly ( a . readOnly ) ; this . attachClass ( "cke_editable" ) ; a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? this . attachClass ( "cke_editable_inline" ) :
a . elementMode != CKEDITOR . ELEMENT _MODE _REPLACE && a . elementMode != CKEDITOR . ELEMENT _MODE _APPENDTO || this . attachClass ( "cke_editable_themed" ) ; this . attachClass ( "cke_contents_" + a . config . contentsLangDirection ) ; a . keystrokeHandler . blockedKeystrokes [ 8 ] = + a . readOnly ; a . keystrokeHandler . attach ( this ) ; this . on ( "blur" , function ( ) { this . hasFocus = ! 1 } , null , null , - 1 ) ; this . on ( "focus" , function ( ) { this . hasFocus = ! 0 } , null , null , - 1 ) ; if ( CKEDITOR . env . webkit ) this . on ( "scroll" , function ( ) { a . _ . previousScrollTop = a . editable ( ) . $ . scrollTop } , null ,
null , - 1 ) ; if ( CKEDITOR . env . edge && 14 < CKEDITOR . env . version ) { var d = function ( ) { var b = a . editable ( ) ; null != a . _ . previousScrollTop && b . getDocument ( ) . equals ( CKEDITOR . document ) && ( b . $ . scrollTop = a . _ . previousScrollTop , a . _ . previousScrollTop = null , this . removeListener ( "scroll" , d ) ) } ; this . on ( "scroll" , d ) } a . focusManager . add ( this ) ; this . equals ( CKEDITOR . document . getActive ( ) ) && ( this . hasFocus = ! 0 , a . once ( "contentDom" , function ( ) { a . focusManager . focus ( this ) } , this ) ) ; this . isInline ( ) && this . changeAttr ( "tabindex" , a . tabIndex ) ; if ( ! this . is ( "textarea" ) ) { a . document =
this . getDocument ( ) ; a . window = this . getWindow ( ) ; var f = a . document ; this . changeAttr ( "spellcheck" , ! a . config . disableNativeSpellChecker ) ; var g = a . config . contentsLangDirection ; this . getDirection ( 1 ) != g && this . changeAttr ( "dir" , g ) ; var k = CKEDITOR . getCss ( ) ; if ( k ) { var g = f . getHead ( ) , p = g . getCustomData ( "stylesheet" ) ; p ? k != p . getText ( ) && ( CKEDITOR . env . ie && 9 > CKEDITOR . env . version ? p . $ . styleSheet . cssText = k : p . setText ( k ) ) : ( k = f . appendStyleText ( k ) , k = new CKEDITOR . dom . element ( k . ownerNode || k . owningElement ) , g . setCustomData ( "stylesheet" ,
k ) , k . data ( "cke-temp" , 1 ) ) } g = f . getCustomData ( "stylesheet_ref" ) || 0 ; f . setCustomData ( "stylesheet_ref" , g + 1 ) ; this . setCustomData ( "cke_includeReadonly" , ! a . config . disableReadonlyStyling ) ; this . attachListener ( this , "click" , function ( a ) { a = a . data ; var b = ( new CKEDITOR . dom . elementPath ( a . getTarget ( ) , this ) ) . contains ( "a" ) ; b && 2 != a . $ . button && b . isReadOnly ( ) && a . preventDefault ( ) } ) ; var t = { 8 : 1 , 46 : 1 } ; this . attachListener ( a , "key" , function ( b ) { if ( a . readOnly ) return ! 0 ; var c = b . data . domEvent . getKey ( ) , d ; b = a . getSelection ( ) ; if ( 0 !== b . getRanges ( ) . length ) { if ( c in
t ) { var f , g = b . getRanges ( ) [ 0 ] , n = g . startPath ( ) , k , v , B , c = 8 == c ; CKEDITOR . env . ie && 11 > CKEDITOR . env . version && ( f = b . getSelectedElement ( ) ) || ( f = h ( b ) ) ? ( a . fire ( "saveSnapshot" ) , g . moveToPosition ( f , CKEDITOR . POSITION _BEFORE _START ) , f . remove ( ) , g . select ( ) , a . fire ( "saveSnapshot" ) , d = 1 ) : g . collapsed && ( ( k = n . block ) && ( B = k [ c ? "getPrevious" : "getNext" ] ( e ) ) && B . type == CKEDITOR . NODE _ELEMENT && B . is ( "table" ) && g [ c ? "checkStartOfBlock" : "checkEndOfBlock" ] ( ) ? ( a . fire ( "saveSnapshot" ) , g [ c ? "checkEndOfBlock" : "checkStartOfBlock" ] ( ) && k . remove ( ) , g [ "moveToElementEdit" +
( c ? "End" : "Start" ) ] ( B ) , g . select ( ) , a . fire ( "saveSnapshot" ) , d = 1 ) : n . blockLimit && n . blockLimit . is ( "td" ) && ( v = n . blockLimit . getAscendant ( "table" ) ) && g . checkBoundaryOfElement ( v , c ? CKEDITOR . START : CKEDITOR . END ) && ( B = v [ c ? "getPrevious" : "getNext" ] ( e ) ) ? ( a . fire ( "saveSnapshot" ) , g [ "moveToElementEdit" + ( c ? "End" : "Start" ) ] ( B ) , g . checkStartOfBlock ( ) && g . checkEndOfBlock ( ) ? B . remove ( ) : g . select ( ) , a . fire ( "saveSnapshot" ) , d = 1 ) : ( v = n . contains ( [ "td" , "th" , "caption" ] ) ) && g . checkBoundaryOfElement ( v , c ? CKEDITOR . START : CKEDITOR . END ) && ( d = 1 ) ) } return ! d } } ) ;
a . blockless && CKEDITOR . env . ie && CKEDITOR . env . needsBrFiller && this . attachListener ( this , "keyup" , function ( b ) { b . data . getKeystroke ( ) in t && ! this . getFirst ( c ) && ( this . appendBogus ( ) , b = a . createRange ( ) , b . moveToPosition ( this , CKEDITOR . POSITION _AFTER _START ) , b . select ( ) ) } ) ; this . attachListener ( this , "dblclick" , function ( b ) { if ( a . readOnly ) return ! 1 ; b = { element : b . data . getTarget ( ) } ; a . fire ( "doubleclick" , b ) } ) ; CKEDITOR . env . ie && this . attachListener ( this , "click" , b ) ; CKEDITOR . env . ie && ! CKEDITOR . env . edge || this . attachListener ( this , "mousedown" ,
function ( b ) { var c = b . data . getTarget ( ) ; c . is ( "img" , "hr" , "input" , "textarea" , "select" ) && ! c . isReadOnly ( ) && ( a . getSelection ( ) . selectElement ( c ) , c . is ( "input" , "textarea" , "select" ) && b . data . preventDefault ( ) ) } ) ; CKEDITOR . env . edge && this . attachListener ( this , "mouseup" , function ( b ) { ( b = b . data . getTarget ( ) ) && b . is ( "img" ) && a . getSelection ( ) . selectElement ( b ) } ) ; CKEDITOR . env . gecko && this . attachListener ( this , "mouseup" , function ( b ) { if ( 2 == b . data . $ . button && ( b = b . data . getTarget ( ) , ! b . getOuterHtml ( ) . replace ( D , "" ) ) ) { var c = a . createRange ( ) ;
c . moveToElementEditStart ( b ) ; c . select ( ! 0 ) } } ) ; CKEDITOR . env . webkit && ( this . attachListener ( this , "click" , function ( a ) { a . data . getTarget ( ) . is ( "input" , "select" ) && a . data . preventDefault ( ) } ) , this . attachListener ( this , "mouseup" , function ( a ) { a . data . getTarget ( ) . is ( "input" , "textarea" ) && a . data . preventDefault ( ) } ) ) ; CKEDITOR . env . webkit && this . attachListener ( a , "key" , function ( b ) { if ( a . readOnly ) return ! 0 ; var c = b . data . domEvent . getKey ( ) ; if ( c in t && ( b = a . getSelection ( ) , 0 !== b . getRanges ( ) . length ) ) { var c = 8 == c , d = b . getRanges ( ) [ 0 ] ; b = d . startPath ( ) ;
if ( d . collapsed ) a : { var e = b . block ; if ( e && d [ c ? "checkStartOfBlock" : "checkEndOfBlock" ] ( ) && d . moveToClosestEditablePosition ( e , ! c ) && d . collapsed ) { if ( d . startContainer . type == CKEDITOR . NODE _ELEMENT ) { var f = d . startContainer . getChild ( d . startOffset - ( c ? 1 : 0 ) ) ; if ( f && f . type == CKEDITOR . NODE _ELEMENT && f . is ( "hr" ) ) { a . fire ( "saveSnapshot" ) ; f . remove ( ) ; b = ! 0 ; break a } } d = d . startPath ( ) . block ; if ( ! d || d && d . contains ( e ) ) b = void 0 ; else { a . fire ( "saveSnapshot" ) ; var n ; ( n = ( c ? d : e ) . getBogus ( ) ) && n . remove ( ) ; n = a . getSelection ( ) ; f = n . createBookmarks ( ) ;
( c ? e : d ) . moveChildren ( c ? d : e , ! 1 ) ; b . lastElement . mergeSiblings ( ) ; r ( e , d , ! c ) ; n . selectBookmarks ( f ) ; b = ! 0 } } else b = ! 1 } else c = d , n = b . block , d = c . endPath ( ) . block , n && d && ! n . equals ( d ) ? ( a . fire ( "saveSnapshot" ) , ( e = n . getBogus ( ) ) && e . remove ( ) , c . enlarge ( CKEDITOR . ENLARGE _INLINE ) , c . deleteContents ( ) , d . getParent ( ) && ( d . moveChildren ( n , ! 1 ) , b . lastElement . mergeSiblings ( ) , r ( n , d , ! 0 ) ) , c = a . getSelection ( ) . getRanges ( ) [ 0 ] , c . collapse ( 1 ) , c . optimize ( ) , "" === c . startContainer . getHtml ( ) && c . startContainer . appendBogus ( ) , c . select ( ) , b = ! 0 ) : b = ! 1 ; if ( ! b ) return ;
this . getDocument ( ) ; a . window = this . getWindow ( ) ; var f = a . document ; this . changeAttr ( "spellcheck" , ! a . config . disableNativeSpellChecker ) ; var g = a . config . contentsLangDirection ; this . getDirection ( 1 ) != g && this . changeAttr ( "dir" , g ) ; var k = CKEDITOR . getCss ( ) ; if ( k ) { var g = f . getHead ( ) , m = g . getCustomData ( "stylesheet" ) ; m ? k != m . getText ( ) && ( CKEDITOR . env . ie && 9 > CKEDITOR . env . version ? m . $ . styleSheet . cssText = k : m . setText ( k ) ) : ( k = f . appendStyleText ( k ) , k = new CKEDITOR . dom . element ( k . ownerNode || k . owningElement ) , g . setCustomData ( "stylesheet" ,
k ) , k . data ( "cke-temp" , 1 ) ) } g = f . getCustomData ( "stylesheet_ref" ) || 0 ; f . setCustomData ( "stylesheet_ref" , g + 1 ) ; this . setCustomData ( "cke_includeReadonly" , ! a . config . disableReadonlyStyling ) ; this . attachListener ( this , "click" , function ( a ) { a = a . data ; var b = ( new CKEDITOR . dom . elementPath ( a . getTarget ( ) , this ) ) . contains ( "a" ) ; b && 2 != a . $ . button && b . isReadOnly ( ) && a . preventDefault ( ) } ) ; var q = { 8 : 1 , 46 : 1 } ; this . attachListener ( a , "key" , function ( b ) { if ( a . readOnly ) return ! 0 ; var c = b . data . domEvent . getKey ( ) , d ; b = a . getSelection ( ) ; if ( 0 !== b . getRanges ( ) . length ) { if ( c in
q ) { var f , g = b . getRanges ( ) [ 0 ] , p = g . startPath ( ) , k , w , B , c = 8 == c ; CKEDITOR . env . ie && 11 > CKEDITOR . env . version && ( f = b . getSelectedElement ( ) ) || ( f = h ( b ) ) ? ( a . fire ( "saveSnapshot" ) , g . moveToPosition ( f , CKEDITOR . POSITION _BEFORE _START ) , f . remove ( ) , g . select ( ) , a . fire ( "saveSnapshot" ) , d = 1 ) : g . collapsed && ( ( k = p . block ) && ( B = k [ c ? "getPrevious" : "getNext" ] ( e ) ) && B . type == CKEDITOR . NODE _ELEMENT && B . is ( "table" ) && g [ c ? "checkStartOfBlock" : "checkEndOfBlock" ] ( ) ? ( a . fire ( "saveSnapshot" ) , g [ c ? "checkEndOfBlock" : "checkStartOfBlock" ] ( ) && k . remove ( ) , g [ "moveToElementEdit" +
( c ? "End" : "Start" ) ] ( B ) , g . select ( ) , a . fire ( "saveSnapshot" ) , d = 1 ) : p . blockLimit && p . blockLimit . is ( "td" ) && ( w = p . blockLimit . getAscendant ( "table" ) ) && g . checkBoundaryOfElement ( w , c ? CKEDITOR . START : CKEDITOR . END ) && ( B = w [ c ? "getPrevious" : "getNext" ] ( e ) ) ? ( a . fire ( "saveSnapshot" ) , g [ "moveToElementEdit" + ( c ? "End" : "Start" ) ] ( B ) , g . checkStartOfBlock ( ) && g . checkEndOfBlock ( ) ? B . remove ( ) : g . select ( ) , a . fire ( "saveSnapshot" ) , d = 1 ) : ( w = p . contains ( [ "td" , "th" , "caption" ] ) ) && g . checkBoundaryOfElement ( w , c ? CKEDITOR . START : CKEDITOR . END ) && ( d = 1 ) ) } return ! d } } ) ;
a . blockless && CKEDITOR . env . ie && CKEDITOR . env . needsBrFiller && this . attachListener ( this , "keyup" , function ( b ) { b . data . getKeystroke ( ) in q && ! this . getFirst ( c ) && ( this . appendBogus ( ) , b = a . createRange ( ) , b . moveToPosition ( this , CKEDITOR . POSITION _AFTER _START ) , b . select ( ) ) } ) ; this . attachListener ( this , "dblclick" , function ( b ) { if ( a . readOnly ) return ! 1 ; b = { element : b . data . getTarget ( ) } ; a . fire ( "doubleclick" , b ) } ) ; CKEDITOR . env . ie && this . attachListener ( this , "click" , b ) ; CKEDITOR . env . ie && ! CKEDITOR . env . edge || this . attachListener ( this , "mousedown" ,
function ( b ) { var c = b . data . getTarget ( ) ; c . is ( "img" , "hr" , "input" , "textarea" , "select" ) && ! c . isReadOnly ( ) && ( a . getSelection ( ) . selectElement ( c ) , c . is ( "input" , "textarea" , "select" ) && b . data . preventDefault ( ) ) } ) ; CKEDITOR . env . edge && this . attachListener ( this , "mouseup" , function ( b ) { ( b = b . data . getTarget ( ) ) && b . is ( "img" ) && ! b . isReadOnly ( ) && a . getSelection ( ) . selectElement ( b ) } ) ; CKEDITOR . env . gecko && this . attachListener ( this , "mouseup" , function ( b ) { if ( 2 == b . data . $ . button && ( b = b . data . getTarget ( ) , ! b . getOuterHtml ( ) . replace ( D , "" ) ) ) { var c =
a . createRange ( ) ; c . moveToElementEditStart ( b ) ; c . select ( ! 0 ) } } ) ; CKEDITOR . env . webkit && ( this . attachListener ( this , "click" , function ( a ) { a . data . getTarget ( ) . is ( "input" , "select" ) && a . data . preventDefault ( ) } ) , this . attachListener ( this , "mouseup" , function ( a ) { a . data . getTarget ( ) . is ( "input" , "textarea" ) && a . data . preventDefault ( ) } ) ) ; CKEDITOR . env . webkit && this . attachListener ( a , "key" , function ( b ) { if ( a . readOnly ) return ! 0 ; var c = b . data . domEvent . getKey ( ) ; if ( c in q && ( b = a . getSelection ( ) , 0 !== b . getRanges ( ) . length ) ) { var c = 8 == c , d = b . getRanges ( ) [ 0 ] ;
b = d . startPath ( ) ; if ( d . collapsed ) a : { var e = b . block ; if ( e && d [ c ? "checkStartOfBlock" : "checkEndOfBlock" ] ( ) && d . moveToClosestEditablePosition ( e , ! c ) && d . collapsed ) { if ( d . startContainer . type == CKEDITOR . NODE _ELEMENT ) { var f = d . startContainer . getChild ( d . startOffset - ( c ? 1 : 0 ) ) ; if ( f && f . type == CKEDITOR . NODE _ELEMENT && f . is ( "hr" ) ) { a . fire ( "saveSnapshot" ) ; f . remove ( ) ; b = ! 0 ; break a } } d = d . startPath ( ) . block ; if ( ! d || d && d . contains ( e ) ) b = void 0 ; else { a . fire ( "saveSnapshot" ) ; var p ; ( p = ( c ? d : e ) . getBogus ( ) ) && p . remove ( ) ; p = a . getSelection ( ) ; f = p . createBookmarks ( ) ;
( c ? e : d ) . moveChildren ( c ? d : e , ! 1 ) ; b . lastElement . mergeSiblings ( ) ; r ( e , d , ! c ) ; p . selectBookmarks ( f ) ; b = ! 0 } } else b = ! 1 } else c = d , p = b . block , d = c . endPath ( ) . block , p && d && ! p . equals ( d ) ? ( a . fire ( "saveSnapshot" ) , ( e = p . getBogus ( ) ) && e . remove ( ) , c . enlarge ( CKEDITOR . ENLARGE _INLINE ) , c . deleteContents ( ) , d . getParent ( ) && ( d . moveChildren ( p , ! 1 ) , b . lastElement . mergeSiblings ( ) , r ( p , d , ! 0 ) ) , c = a . getSelection ( ) . getRanges ( ) [ 0 ] , c . collapse ( 1 ) , c . optimize ( ) , "" === c . startContainer . getHtml ( ) && c . startContainer . appendBogus ( ) , c . select ( ) , b = ! 0 ) : b = ! 1 ; if ( ! b ) return ;
a . getSelection ( ) . scrollIntoView ( ) ; a . fire ( "saveSnapshot" ) ; return ! 1 } } , this , null , 100 ) } } } , _ : { detach : function ( ) { this . editor . setData ( this . editor . getData ( ) , 0 , 1 ) ; this . clearListeners ( ) ; this . restoreAttrs ( ) ; var a ; if ( a = this . removeCustomData ( "classes" ) ) for ( ; a . length ; ) this . removeClass ( a . pop ( ) ) ; if ( ! this . is ( "textarea" ) ) { a = this . getDocument ( ) ; var b = a . getHead ( ) ; if ( b . getCustomData ( "stylesheet" ) ) { var c = a . getCustomData ( "stylesheet_ref" ) ; -- c ? a . setCustomData ( "stylesheet_ref" , c ) : ( a . removeCustomData ( "stylesheet_ref" ) , b . removeCustomData ( "stylesheet" ) . remove ( ) ) } } this . editor . fire ( "contentDomUnload" ) ;
delete this . editor } } } ) ; CKEDITOR . editor . prototype . editable = function ( a ) { var b = this . _ . editable ; if ( b && a ) return 0 ; arguments . length && ( b = this . _ . editable = a ? a instanceof CKEDITOR . editable ? a : new CKEDITOR . editable ( this , a ) : ( b && b . detach ( ) , null ) ) ; return b } ; CKEDITOR . on ( "instanceLoaded" , function ( b ) { var c = b . editor ; c . on ( "insertElement" , function ( a ) { a = a . data ; a . type == CKEDITOR . NODE _ELEMENT && ( a . is ( "input" ) || a . is ( "textarea" ) ) && ( "false" != a . getAttribute ( "contentEditable" ) && a . data ( "cke-editable" , a . hasAttribute ( "contenteditable" ) ?
"true" : "1" ) , a . setAttribute ( "contentEditable" , ! 1 ) ) } ) ; c . on ( "selectionChange" , function ( b ) { if ( ! c . readOnly ) { var d = c . getSelection ( ) ; d && ! d . isLocked && ( d = c . checkDirty ( ) , c . fire ( "lockSnapshot" ) , a ( b ) , c . fire ( "unlockSnapshot" ) , ! d && c . resetDirty ( ) ) } } ) } ) ; CKEDITOR . on ( "instanceCreated" , function ( a ) { var b = a . editor ; b . on ( "mode" , function ( ) { var a = b . editable ( ) ; if ( a && a . isInline ( ) ) { var c = b . title ; a . changeAttr ( "role" , "textbox" ) ; a . changeAttr ( "aria-label" , c ) ; c && a . changeAttr ( "title" , c ) ; var d = b . fire ( "ariaEditorHelpLabel" , { } ) . label ;
if ( d && ( c = this . ui . space ( this . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? "top" : "contents" ) ) ) { var e = CKEDITOR . tools . getNextId ( ) , d = CKEDITOR . dom . element . createFromHtml ( '\x3cspan id\x3d"' + e + '" class\x3d"cke_voice_label"\x3e' + d + "\x3c/span\x3e" ) ; c . append ( d ) ; a . changeAttr ( "aria-describedby" , e ) } } } ) } ) ; CKEDITOR . addCss ( ".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}" ) ; e = CKEDITOR . dom . walker . whitespaces ( ! 0 ) ; z = CKEDITOR . dom . walker . bookmark ( ! 1 , ! 0 ) ; y = CKEDITOR . dom . walker . empty ( ) ;
A = CKEDITOR . dom . walker . bogus ( ) ; D = /(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi ; x = function ( ) { function a ( b ) { return b . type == CKEDITOR . NODE _ELEMENT } function b ( c , d ) { var e , f , t , h , g = [ ] , w = d . range . startContainer ; e = d . range . startPath ( ) ; for ( var w = E [ w . getName ( ) ] , k = 0 , H = c . getChildren ( ) , p = H . count ( ) , m = - 1 , r = - 1 , P = 0 , C = e . contains ( E . $list ) ; k < p ; ++ k ) e = H . getItem ( k ) , a ( e ) ? ( t = e . getName ( ) , C && t in CKEDITOR . dtd . $list ? g = g . concat ( b ( e , d ) ) : ( h = ! ! w [ t ] ,
"br" != t || ! e . data ( "cke-eol" ) || k && k != p - 1 || ( P = ( f = k ? g [ k - 1 ] . node : H . getItem ( k + 1 ) ) && ( ! a ( f ) || ! f . is ( "br" ) ) , f = f && a ( f ) && E . $block [ f . getName ( ) ] ) , - 1 != m || h || ( m = k ) , h || ( r = k ) , g . push ( { isElement : 1 , isLineBreak : P , isBlock : e . isBlockBoundary ( ) , hasBlockSibling : f , node : e , name : t , allowed : h } ) , f = P = 0 ) ) : g . push ( { isElement : 0 , node : e , allowed : 1 } ) ; - 1 < m && ( g [ m ] . firstNotAllowed = 1 ) ; - 1 < r && ( g [ r ] . lastNotAllowed = 1 ) ; return g } function d ( b , c ) { var e = [ ] , f = b . getChildren ( ) , t = f . count ( ) , h , g = 0 , k = E [ c ] , w = ! b . is ( E . $inline ) || b . is ( "br" ) ; for ( w && e . push ( " " ) ; g < t ; g ++ ) h =
f . getItem ( g ) , a ( h ) && ! h . is ( k ) ? e = e . concat ( d ( h , c ) ) : e . push ( h ) ; w && e . push ( " " ) ; return e } function e ( b ) { return a ( b . startContainer ) && b . startContainer . getChild ( b . startOffset - 1 ) } function f ( b ) { return b && a ( b ) && ( b . is ( E . $removeEmpty ) || b . is ( "a" ) && ! b . isBlockBoundary ( ) ) } function h ( b , c , d , e ) { var f = b . clone ( ) , t , g ; f . setEndAt ( c , CKEDITOR . POSITION _BEFORE _END ) ; ( t = ( new CKEDITOR . dom . walker ( f ) ) . next ( ) ) && a ( t ) && w [ t . getName ( ) ] && ( g = t . getPrevious ( ) ) && a ( g ) && ! g . getParent ( ) . equals ( b . startContainer ) && d . contains ( g ) && e . contains ( t ) && t . isIdentical ( g ) &&
( t . moveChildren ( g ) , t . remove ( ) , h ( b , c , d , e ) ) } function t ( b , c ) { function d ( b , c ) { if ( c . isBlock && c . isElement && ! c . node . is ( "br" ) && a ( b ) && b . is ( "br" ) ) return b . remove ( ) , 1 } var e = c . endContainer . getChild ( c . endOffset ) , f = c . endContainer . getChild ( c . endOffset - 1 ) ; e && d ( e , b [ b . length - 1 ] ) ; f && d ( f , b [ 0 ] ) && ( c . setEnd ( c . endContainer , c . endOffset - 1 ) , c . collapse ( ) ) } var E = CKEDITOR . dtd , w = { p : 1 , div : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 , ul : 1 , ol : 1 , li : 1 , pre : 1 , dl : 1 , blockquote : 1 } , H = { p : 1 , div : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 } , p = CKEDITOR . tools . extend ( { } ,
E . $inline ) ; delete p . br ; return function ( w , n , N , v ) { var B = w . editor , G = ! 1 ; "unfiltered_html" == n && ( n = "html" , G = ! 0 ) ; if ( ! v . checkReadOnly ( ) ) { var I = ( new CKEDITOR . dom . elementPath ( v . startContainer , v . root ) ) . blockLimit || v . root ; w = { type : n , dontFilter : G , editable : w , editor : B , range : v , blockLimit : I , mergeCandidates : [ ] , zombies : [ ] } ; n = w . range ; v = w . mergeCandidates ; var m , r ; "text" == w . type && n . shrink ( CKEDITOR . SHRINK _ELEMENT , ! 0 , ! 1 ) && ( m = CKEDITOR . dom . element . createFromHtml ( "\x3cspan\x3e\x26nbsp;\x3c/span\x3e" , n . document ) , n . insertNode ( m ) ,
n . setStartAfter ( m ) ) ; G = new CKEDITOR . dom . elementPath ( n . startContainer ) ; w . endPath = I = new CKEDITOR . dom . elementPath ( n . endContainer ) ; if ( ! n . collapsed ) { var B = I . block || I . blockLimit , y = n . getCommonAncestor ( ) ; B && ! B . equals ( y ) && ! B . contains ( y ) && n . checkEndOfBlock ( ) && w . zombies . push ( B ) ; n . deleteContents ( ) } for ( ; ( r = e ( n ) ) && a ( r ) && r . isBlockBoundary ( ) && G . contains ( r ) ; ) n . moveToPosition ( r , CKEDITOR . POSITION _BEFORE _END ) ; h ( n , w . blockLimit , G , I ) ; m && ( n . setEndBefore ( m ) , n . collapse ( ) , m . remove ( ) ) ; m = n . startPath ( ) ; if ( B = m . contains ( f , ! 1 , 1 ) ) n . splitElement ( B ) ,
w . inlineStylesRoot = B , w . inlineStylesPeak = m . lastElement ; m = n . createBookmark ( ) ; ( B = m . startNode . getPrevious ( c ) ) && a ( B ) && f ( B ) && v . push ( B ) ; ( B = m . startNode . getNext ( c ) ) && a ( B ) && f ( B ) && v . push ( B ) ; for ( B = m . startNode ; ( B = B . getParent ( ) ) && f ( B ) ; ) v . push ( B ) ; n . moveToBookmark ( m ) ; if ( m = N ) { m = w . range ; if ( "text" == w . type && w . inlineStylesRoot ) { r = w . inlineStylesPeak ; n = r . getDocument ( ) . createText ( "{cke-peak}" ) ; for ( v = w . inlineStylesRoot . getParent ( ) ; ! r . equals ( v ) ; ) n = n . appendTo ( r . clone ( ) ) , r = r . getParent ( ) ; N = n . getOuterHtml ( ) . split ( "{cke-peak}" ) . join ( N ) } r =
w . blockLimit . getName ( ) ; if ( /^\s+|\s+$/ . test ( N ) && "span" in CKEDITOR . dtd [ r ] ) { var x = '\x3cspan data-cke-marker\x3d"1"\x3e\x26nbsp;\x3c/span\x3e' ; N = x + N + x } N = w . editor . dataProcessor . toHtml ( N , { context : null , fixForBody : ! 1 , protectedWhitespaces : ! ! x , dontFilter : w . dontFilter , filter : w . editor . activeFilter , enterMode : w . editor . activeEnterMode } ) ; r = m . document . createElement ( "body" ) ; r . setHtml ( N ) ; x && ( r . getFirst ( ) . remove ( ) , r . getLast ( ) . remove ( ) ) ; if ( ( x = m . startPath ( ) . block ) && ( 1 != x . getChildCount ( ) || ! x . getBogus ( ) ) ) a : { var z ; if ( 1 ==
r . getChildCount ( ) && a ( z = r . getFirst ( ) ) && z . is ( H ) && ! z . hasAttribute ( "contenteditable" ) ) { x = z . getElementsByTag ( "*" ) ; m = 0 ; for ( v = x . count ( ) ; m < v ; m ++ ) if ( n = x . getItem ( m ) , ! n . is ( p ) ) break a ; z . moveChildren ( z . getParent ( 1 ) ) ; z . remove ( ) } } w . dataWrapper = r ; m = N } if ( m ) { z = w . range ; m = z . document ; var u ; r = w . blockLimit ; v = 0 ; var A , x = [ ] , D , T ; N = B = 0 ; var J , K ; n = z . startContainer ; var G = w . endPath . elements [ 0 ] , W , I = G . getPosition ( n ) , y = ! ! G . getCommonAncestor ( n ) && I != CKEDITOR . POSITION _IDENTICAL && ! ( I & CKEDITOR . POSITION _CONTAINS + CKEDITOR . POSITION _IS _CONTAINED ) ;
n = b ( w . dataWrapper , w ) ; for ( t ( n , z ) ; v < n . length ; v ++ ) { I = n [ v ] ; if ( u = I . isLineBreak ) { u = z ; J = r ; var S = void 0 , Y = void 0 ; I . hasBlockSibling ? u = 1 : ( S = u . startContainer . getAscendant ( E . $block , 1 ) ) && S . is ( { div : 1 , p : 1 } ) ? ( Y = S . getPosition ( J ) , Y == CKEDITOR . POSITION _IDENTICAL || Y == CKEDITOR . POSITION _CONTAINS ? u = 0 : ( J = u . splitElement ( S ) , u . moveToPosition ( J , CKEDITOR . POSITION _AFTER _START ) , u = 1 ) ) : u = 0 } if ( u ) N = 0 < v ; else { u = z . startPath ( ) ; ! I . isBlock && k ( w . editor , u . block , u . blockLimit ) && ( T = g ( w . editor ) ) && ( T = m . createElement ( T ) , T . appendBogus ( ) , z . insertNode ( T ) ,
CKEDITOR . env . needsBrFiller && ( A = T . getBogus ( ) ) && A . remove ( ) , z . moveToPosition ( T , CKEDITOR . POSITION _BEFORE _END ) ) ; if ( ( u = z . startPath ( ) . block ) && ! u . equals ( D ) ) { if ( A = u . getBogus ( ) ) A . remove ( ) , x . push ( u ) ; D = u } I . firstNotAllowed && ( B = 1 ) ; if ( B && I . isElement ) { u = z . startContainer ; for ( J = null ; u && ! E [ u . getName ( ) ] [ I . name ] ; ) { if ( u . equals ( r ) ) { u = null ; break } J = u ; u = u . getParent ( ) } if ( u ) J && ( K = z . splitElement ( J ) , w . zombies . push ( K ) , w . zombies . push ( J ) ) ; else { J = r . getName ( ) ; W = ! v ; u = v == n . length - 1 ; J = d ( I . node , J ) ; for ( var S = [ ] , Y = J . length , Z = 0 , ba = void 0 ,
ca = 0 , U = - 1 ; Z < Y ; Z ++ ) ba = J [ Z ] , " " == ba ? ( ca || W && ! Z || ( S . push ( new CKEDITOR . dom . text ( " " ) ) , U = S . length ) , ca = 1 ) : ( S . push ( ba ) , ca = 0 ) ; u && U == S . length && S . pop ( ) ; W = S } } if ( W ) { for ( ; u = W . pop ( ) ; ) z . insertNode ( u ) ; W = 0 } else z . insertNode ( I . node ) ; I . lastNotAllowed && v < n . length - 1 && ( ( K = y ? G : K ) && z . setEndAt ( K , CKEDITOR . POSITION _AFTER _START ) , B = 0 ) ; z . collapse ( ) } } 1 != n . length ? A = ! 1 : ( A = n [ 0 ] , A = A . isElement && "false" == A . node . getAttribute ( "contenteditable" ) ) ; A && ( N = ! 0 , u = n [ 0 ] . node , z . setStartAt ( u , CKEDITOR . POSITION _BEFORE _START ) , z . setEndAt ( u , CKEDITOR . POSITION _AFTER _END ) ) ;
w . dontMoveCaret = N ; w . bogusNeededBlocks = x } A = w . range ; var R ; K = w . bogusNeededBlocks ; for ( W = A . createBookmark ( ) ; D = w . zombies . pop ( ) ; ) D . getParent ( ) && ( T = A . clone ( ) , T . moveToElementEditStart ( D ) , T . removeEmptyBlocksAtEnd ( ) ) ; if ( K ) for ( ; D = K . pop ( ) ; ) CKEDITOR . env . needsBrFiller ? D . appendBogus ( ) : D . append ( A . document . createText ( " " ) ) ; for ( ; D = w . mergeCandidates . pop ( ) ; ) D . mergeSiblings ( ) ; A . moveToBookmark ( W ) ; if ( ! w . dontMoveCaret ) { for ( D = e ( A ) ; D && a ( D ) && ! D . is ( E . $empty ) ; ) { if ( D . isBlockBoundary ( ) ) A . moveToPosition ( D , CKEDITOR . POSITION _BEFORE _END ) ;
else { if ( f ( D ) && D . getHtml ( ) . match ( /(\s| )$/g ) ) { R = null ; break } R = A . clone ( ) ; R . moveToPosition ( D , CKEDITOR . POSITION _BEFORE _END ) } D = D . getLast ( c ) } R && A . moveToRange ( R ) } } } } ( ) ; p = function ( ) { function a ( b ) { b = new CKEDITOR . dom . walker ( b ) ; b . guard = function ( a , b ) { if ( b ) return ! 1 ; if ( a . type == CKEDITOR . NODE _ELEMENT ) return a . is ( CKEDITOR . dtd . $tableContent ) } ; b . evaluator = function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT } ; return b } function b ( a , c , d ) { c = a . getDocument ( ) . createElement ( c ) ; a . append ( c , d ) ; return c } function c ( a ) { var b = a . count ( ) ,
d ; for ( b ; 0 < b -- ; ) d = a . getItem ( b ) , CKEDITOR . tools . trim ( d . getHtml ( ) ) || ( d . appendBogus ( ) , CKEDITOR . env . ie && 9 > CKEDITOR . env . version && d . getChildCount ( ) && d . getFirst ( ) . remove ( ) ) } return function ( d ) { var e = d . startContainer , f = e . getAscendant ( "table" , 1 ) , t = ! 1 ; c ( f . getElementsByTag ( "td" ) ) ; c ( f . getElementsByTag ( "th" ) ) ; f = d . clone ( ) ; f . setStart ( e , 0 ) ; f = a ( f ) . lastBackward ( ) ; f || ( f = d . clone ( ) , f . setEndAt ( e , CKEDITOR . POSITION _BEFORE _END ) , f = a ( f ) . lastForward ( ) , t = ! 0 ) ; f || ( f = e ) ; f . is ( "table" ) ? ( d . setStartAt ( f , CKEDITOR . POSITION _BEFORE _START ) ,
d . collapse ( ! 0 ) , f . remove ( ) ) : ( f . is ( { tbody : 1 , thead : 1 , tfoot : 1 } ) && ( f = b ( f , "tr" , t ) ) , f . is ( "tr" ) && ( f = b ( f , f . getParent ( ) . is ( "thead" ) ? "th" : "td" , t ) ) , ( e = f . getBogus ( ) ) && e . remove ( ) , d . moveToPosition ( f , t ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _END ) ) } } ( ) ; J = function ( ) { function a ( b ) { b = new CKEDITOR . dom . walker ( b ) ; b . guard = function ( a , b ) { if ( b ) return ! 1 ; if ( a . type == CKEDITOR . NODE _ELEMENT ) return a . is ( CKEDITOR . dtd . $list ) || a . is ( CKEDITOR . dtd . $listItem ) } ; b . evaluator = function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT &&
"true" : "1" ) , a . setAttribute ( "contentEditable" , ! 1 ) ) } ) ; c . on ( "selectionChange" , function ( b ) { if ( ! c . readOnly ) { var d = c . getSelection ( ) ; d && ! d . isLocked && ( d = c . checkDirty ( ) , c . fire ( "lockSnapshot" ) , a ( b ) , c . fire ( "unlockSnapshot" ) , ! d && c . resetDirty ( ) ) } } ) } ) ; CKEDITOR . on ( "instanceCreated" , function ( a ) { var b = a . editor ; b . on ( "mode" , function ( ) { var a = b . editable ( ) ; if ( a && a . isInline ( ) ) { var c = b . title ; a . changeAttr ( "role" , "textbox" ) ; a . changeAttr ( "aria-multiline" , "true" ) ; a . changeAttr ( "aria- label", c ) ; c && a . changeAttr ( "title" , c ) ; var d =
b . fire ( "ariaEditorHelpLabel" , { } ) . label ; if ( d && ( c = this . ui . space ( this . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? "top" : "contents" ) ) ) { var e = CKEDITOR . tools . getNextId ( ) , d = CKEDITOR . dom . element . createFromHtml ( '\x3cspan id\x3d"' + e + '" class\x3d"cke_voice_label"\x3e' + d + "\x3c/span\x3e" ) ; c . append ( d ) ; a . changeAttr ( "aria-describedby" , e ) } } } ) } ) ; CKEDITOR . addCss ( ".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}" ) ; e = CKEDITOR . dom . walker . whitespaces ( ! 0 ) ; y = CKEDITOR . dom . walker . bookmark ( ! 1 ,
! 0 ) ; v = CKEDITOR . dom . walker . empty ( ) ; A = CKEDITOR . dom . walker . bogus ( ) ; D = /(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi ; x = function ( ) { function a ( b ) { return b . type == CKEDITOR . NODE _ELEMENT } function b ( c , d ) { var e , f , g , q , h = [ ] , z = d . range . startContainer ; e = d . range . startPath ( ) ; for ( var z = E [ z . getName ( ) ] , k = 0 , H = c . getChildren ( ) , m = H . count ( ) , n = - 1 , r = - 1 , C = 0 , P = e . contains ( E . $list ) ; k < m ; ++ k ) e = H . getItem ( k ) , a ( e ) ? ( g = e . getName ( ) , P && g in CKEDITOR . dtd . $list ?
h = h . concat ( b ( e , d ) ) : ( q = ! ! z [ g ] , "br" != g || ! e . data ( "cke-eol" ) || k && k != m - 1 || ( C = ( f = k ? h [ k - 1 ] . node : H . getItem ( k + 1 ) ) && ( ! a ( f ) || ! f . is ( "br" ) ) , f = f && a ( f ) && E . $block [ f . getName ( ) ] ) , - 1 != n || q || ( n = k ) , q || ( r = k ) , h . push ( { isElement : 1 , isLineBreak : C , isBlock : e . isBlockBoundary ( ) , hasBlockSibling : f , node : e , name : g , allowed : q } ) , f = C = 0 ) ) : h . push ( { isElement : 0 , node : e , allowed : 1 } ) ; - 1 < n && ( h [ n ] . firstNotAllowed = 1 ) ; - 1 < r && ( h [ r ] . lastNotAllowed = 1 ) ; return h } function d ( b , c ) { var e = [ ] , f = b . getChildren ( ) , g = f . count ( ) , q , h = 0 , z = E [ c ] , k = ! b . is ( E . $inline ) || b . is ( "br" ) ;
for ( k && e . push ( " " ) ; h < g ; h ++ ) q = f . getItem ( h ) , a ( q ) && ! q . is ( z ) ? e = e . concat ( d ( q , c ) ) : e . push ( q ) ; k && e . push ( " " ) ; return e } function e ( b ) { return a ( b . startContainer ) && b . startContainer . getChild ( b . startOffset - 1 ) } function f ( b ) { return b && a ( b ) && ( b . is ( E . $removeEmpty ) || b . is ( "a" ) && ! b . isBlockBoundary ( ) ) } function h ( b , c , d , e ) { var f = b . clone ( ) , g , q ; f . setEndAt ( c , CKEDITOR . POSITION _BEFORE _END ) ; ( g = ( new CKEDITOR . dom . walker ( f ) ) . next ( ) ) && a ( g ) && z [ g . getName ( ) ] && ( q = g . getPrevious ( ) ) && a ( q ) && ! q . getParent ( ) . equals ( b . startContainer ) && d . contains ( q ) &&
e . contains ( g ) && g . isIdentical ( q ) && ( g . moveChildren ( q ) , g . remove ( ) , h ( b , c , d , e ) ) } function q ( b , c ) { function d ( b , c ) { if ( c . isBlock && c . isElement && ! c . node . is ( "br" ) && a ( b ) && b . is ( "br" ) ) return b . remove ( ) , 1 } var e = c . endContainer . getChild ( c . endOffset ) , f = c . endContainer . getChild ( c . endOffset - 1 ) ; e && d ( e , b [ b . length - 1 ] ) ; f && d ( f , b [ 0 ] ) && ( c . setEnd ( c . endContainer , c . endOffset - 1 ) , c . collapse ( ) ) } var E = CKEDITOR . dtd , z = { p : 1 , div : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 , ul : 1 , ol : 1 , li : 1 , pre : 1 , dl : 1 , blockquote : 1 } , H = { p : 1 , div : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 ,
h6 : 1 } , m = CKEDITOR . tools . extend ( { } , E . $inline ) ; delete m . br ; return function ( z , p , N , w ) { var B = z . editor , G = ! 1 ; "unfiltered_html" == p && ( p = "html" , G = ! 0 ) ; if ( ! w . checkReadOnly ( ) ) { var I = ( new CKEDITOR . dom . elementPath ( w . startContainer , w . root ) ) . blockLimit || w . root ; z = { type : p , dontFilter : G , editable : z , editor : B , range : w , blockLimit : I , mergeCandidates : [ ] , zombies : [ ] } ; p = z . range ; w = z . mergeCandidates ; var n , r ; "text" == z . type && p . shrink ( CKEDITOR . SHRINK _ELEMENT , ! 0 , ! 1 ) && ( n = CKEDITOR . dom . element . createFromHtml ( "\x3cspan\x3e\x26nbsp;\x3c/span\x3e" ,
p . document ) , p . insertNode ( n ) , p . setStartAfter ( n ) ) ; G = new CKEDITOR . dom . elementPath ( p . startContainer ) ; z . endPath = I = new CKEDITOR . dom . elementPath ( p . endContainer ) ; if ( ! p . collapsed ) { var B = I . block || I . blockLimit , v = p . getCommonAncestor ( ) ; B && ! B . equals ( v ) && ! B . contains ( v ) && p . checkEndOfBlock ( ) && z . zombies . push ( B ) ; p . deleteContents ( ) } for ( ; ( r = e ( p ) ) && a ( r ) && r . isBlockBoundary ( ) && G . contains ( r ) ; ) p . moveToPosition ( r , CKEDITOR . POSITION _BEFORE _END ) ; h ( p , z . blockLimit , G , I ) ; n && ( p . setEndBefore ( n ) , p . collapse ( ) , n . remove ( ) ) ; n = p . startPath ( ) ;
if ( B = n . contains ( f , ! 1 , 1 ) ) p . splitElement ( B ) , z . inlineStylesRoot = B , z . inlineStylesPeak = n . lastElement ; n = p . createBookmark ( ) ; ( B = n . startNode . getPrevious ( c ) ) && a ( B ) && f ( B ) && w . push ( B ) ; ( B = n . startNode . getNext ( c ) ) && a ( B ) && f ( B ) && w . push ( B ) ; for ( B = n . startNode ; ( B = B . getParent ( ) ) && f ( B ) ; ) w . push ( B ) ; p . moveToBookmark ( n ) ; if ( n = N ) { n = z . range ; if ( "text" == z . type && z . inlineStylesRoot ) { r = z . inlineStylesPeak ; p = r . getDocument ( ) . createText ( "{cke-peak}" ) ; for ( w = z . inlineStylesRoot . getParent ( ) ; ! r . equals ( w ) ; ) p = p . appendTo ( r . clone ( ) ) , r = r . getParent ( ) ;
N = p . getOuterHtml ( ) . split ( "{cke-peak}" ) . join ( N ) } r = z . blockLimit . getName ( ) ; if ( /^\s+|\s+$/ . test ( N ) && "span" in CKEDITOR . dtd [ r ] ) { var x = '\x3cspan data-cke-marker\x3d"1"\x3e\x26nbsp;\x3c/span\x3e' ; N = x + N + x } N = z . editor . dataProcessor . toHtml ( N , { context : null , fixForBody : ! 1 , protectedWhitespaces : ! ! x , dontFilter : z . dontFilter , filter : z . editor . activeFilter , enterMode : z . editor . activeEnterMode } ) ; r = n . document . createElement ( "body" ) ; r . setHtml ( N ) ; x && ( r . getFirst ( ) . remove ( ) , r . getLast ( ) . remove ( ) ) ; if ( ( x = n . startPath ( ) . block ) && ( 1 !=
x . getChildCount ( ) || ! x . getBogus ( ) ) ) a : { var y ; if ( 1 == r . getChildCount ( ) && a ( y = r . getFirst ( ) ) && y . is ( H ) && ! y . hasAttribute ( "contenteditable" ) ) { x = y . getElementsByTag ( "*" ) ; n = 0 ; for ( w = x . count ( ) ; n < w ; n ++ ) if ( p = x . getItem ( n ) , ! p . is ( m ) ) break a ; y . moveChildren ( y . getParent ( 1 ) ) ; y . remove ( ) } } z . dataWrapper = r ; n = N } if ( n ) { y = z . range ; n = y . document ; var u ; r = z . blockLimit ; w = 0 ; var A , x = [ ] , D , T ; N = B = 0 ; var J , K ; p = y . startContainer ; var G = z . endPath . elements [ 0 ] , W , I = G . getPosition ( p ) , v = ! ! G . getCommonAncestor ( p ) && I != CKEDITOR . POSITION _IDENTICAL && ! ( I & CKEDITOR . POSITION _CONTAINS +
CKEDITOR . POSITION _IS _CONTAINED ) ; p = b ( z . dataWrapper , z ) ; for ( q ( p , y ) ; w < p . length ; w ++ ) { I = p [ w ] ; if ( u = I . isLineBreak ) { u = y ; J = r ; var S = void 0 , Y = void 0 ; I . hasBlockSibling ? u = 1 : ( S = u . startContainer . getAscendant ( E . $block , 1 ) ) && S . is ( { div : 1 , p : 1 } ) ? ( Y = S . getPosition ( J ) , Y == CKEDITOR . POSITION _IDENTICAL || Y == CKEDITOR . POSITION _CONTAINS ? u = 0 : ( J = u . splitElement ( S ) , u . moveToPosition ( J , CKEDITOR . POSITION _AFTER _START ) , u = 1 ) ) : u = 0 } if ( u ) N = 0 < w ; else { u = y . startPath ( ) ; ! I . isBlock && k ( z . editor , u . block , u . blockLimit ) && ( T = g ( z . editor ) ) && ( T = n . createElement ( T ) ,
T . appendBogus ( ) , y . insertNode ( T ) , CKEDITOR . env . needsBrFiller && ( A = T . getBogus ( ) ) && A . remove ( ) , y . moveToPosition ( T , CKEDITOR . POSITION _BEFORE _END ) ) ; if ( ( u = y . startPath ( ) . block ) && ! u . equals ( D ) ) { if ( A = u . getBogus ( ) ) A . remove ( ) , x . push ( u ) ; D = u } I . firstNotAllowed && ( B = 1 ) ; if ( B && I . isElement ) { u = y . startContainer ; for ( J = null ; u && ! E [ u . getName ( ) ] [ I . name ] ; ) { if ( u . equals ( r ) ) { u = null ; break } J = u ; u = u . getParent ( ) } if ( u ) J && ( K = y . splitElement ( J ) , z . zombies . push ( K ) , z . zombies . push ( J ) ) ; else { J = r . getName ( ) ; W = ! w ; u = w == p . length - 1 ; J = d ( I . node , J ) ; for ( var S =
[ ] , Y = J . length , Z = 0 , ba = void 0 , ca = 0 , U = - 1 ; Z < Y ; Z ++ ) ba = J [ Z ] , " " == ba ? ( ca || W && ! Z || ( S . push ( new CKEDITOR . dom . text ( " " ) ) , U = S . length ) , ca = 1 ) : ( S . push ( ba ) , ca = 0 ) ; u && U == S . length && S . pop ( ) ; W = S } } if ( W ) { for ( ; u = W . pop ( ) ; ) y . insertNode ( u ) ; W = 0 } else y . insertNode ( I . node ) ; I . lastNotAllowed && w < p . length - 1 && ( ( K = v ? G : K ) && y . setEndAt ( K , CKEDITOR . POSITION _AFTER _START ) , B = 0 ) ; y . collapse ( ) } } 1 != p . length ? A = ! 1 : ( A = p [ 0 ] , A = A . isElement && "false" == A . node . getAttribute ( "contenteditable" ) ) ; A && ( N = ! 0 , u = p [ 0 ] . node , y . setStartAt ( u , CKEDITOR . POSITION _BEFORE _START ) ,
y . setEndAt ( u , CKEDITOR . POSITION _AFTER _END ) ) ; z . dontMoveCaret = N ; z . bogusNeededBlocks = x } A = z . range ; var R ; K = z . bogusNeededBlocks ; for ( W = A . createBookmark ( ) ; D = z . zombies . pop ( ) ; ) D . getParent ( ) && ( T = A . clone ( ) , T . moveToElementEditStart ( D ) , T . removeEmptyBlocksAtEnd ( ) ) ; if ( K ) for ( ; D = K . pop ( ) ; ) CKEDITOR . env . needsBrFiller ? D . appendBogus ( ) : D . append ( A . document . createText ( " " ) ) ; for ( ; D = z . mergeCandidates . pop ( ) ; ) D . mergeSiblings ( ) ; A . moveToBookmark ( W ) ; if ( ! z . dontMoveCaret ) { for ( D = e ( A ) ; D && a ( D ) && ! D . is ( E . $empty ) ; ) { if ( D . isBlockBoundary ( ) ) A . moveToPosition ( D ,
CKEDITOR . POSITION _BEFORE _END ) ; else { if ( f ( D ) && D . getHtml ( ) . match ( /(\s| )$/g ) ) { R = null ; break } R = A . clone ( ) ; R . moveToPosition ( D , CKEDITOR . POSITION _BEFORE _END ) } D = D . getLast ( c ) } R && A . moveToRange ( R ) } } } } ( ) ; m = function ( ) { function a ( b ) { b = new CKEDITOR . dom . walker ( b ) ; b . guard = function ( a , b ) { if ( b ) return ! 1 ; if ( a . type == CKEDITOR . NODE _ELEMENT ) return a . is ( CKEDITOR . dtd . $tableContent ) } ; b . evaluator = function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT } ; return b } function b ( a , c , d ) { c = a . getDocument ( ) . createElement ( c ) ; a . append ( c , d ) ; return c }
function c ( a ) { var b = a . count ( ) , d ; for ( b ; 0 < b -- ; ) d = a . getItem ( b ) , CKEDITOR . tools . trim ( d . getHtml ( ) ) || ( d . appendBogus ( ) , CKEDITOR . env . ie && 9 > CKEDITOR . env . version && d . getChildCount ( ) && d . getFirst ( ) . remove ( ) ) } return function ( d ) { var e = d . startContainer , f = e . getAscendant ( "table" , 1 ) , g = ! 1 ; c ( f . getElementsByTag ( "td" ) ) ; c ( f . getElementsByTag ( "th" ) ) ; f = d . clone ( ) ; f . setStart ( e , 0 ) ; f = a ( f ) . lastBackward ( ) ; f || ( f = d . clone ( ) , f . setEndAt ( e , CKEDITOR . POSITION _BEFORE _END ) , f = a ( f ) . lastForward ( ) , g = ! 0 ) ; f || ( f = e ) ; f . is ( "table" ) ? ( d . setStartAt ( f , CKEDITOR . POSITION _BEFORE _START ) ,
d . collapse ( ! 0 ) , f . remove ( ) ) : ( f . is ( { tbody : 1 , thead : 1 , tfoot : 1 } ) && ( f = b ( f , "tr" , g ) ) , f . is ( "tr" ) && ( f = b ( f , f . getParent ( ) . is ( "thead" ) ? "th" : "td" , g ) ) , ( e = f . getBogus ( ) ) && e . remove ( ) , d . moveToPosition ( f , g ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _END ) ) } } ( ) ; J = function ( ) { function a ( b ) { b = new CKEDITOR . dom . walker ( b ) ; b . guard = function ( a , b ) { if ( b ) return ! 1 ; if ( a . type == CKEDITOR . NODE _ELEMENT ) return a . is ( CKEDITOR . dtd . $list ) || a . is ( CKEDITOR . dtd . $listItem ) } ; b . evaluator = function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT &&
a . is ( CKEDITOR . dtd . $listItem ) } ; return b } return function ( b ) { var c = b . startContainer , d = ! 1 , e ; e = b . clone ( ) ; e . setStart ( c , 0 ) ; e = a ( e ) . lastBackward ( ) ; e || ( e = b . clone ( ) , e . setEndAt ( c , CKEDITOR . POSITION _BEFORE _END ) , e = a ( e ) . lastForward ( ) , d = ! 0 ) ; e || ( e = c ) ; e . is ( CKEDITOR . dtd . $list ) ? ( b . setStartAt ( e , CKEDITOR . POSITION _BEFORE _START ) , b . collapse ( ! 0 ) , e . remove ( ) ) : ( ( c = e . getBogus ( ) ) && c . remove ( ) , b . moveToPosition ( e , d ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _END ) , b . select ( ) ) } } ( ) ; u = { eol : { detect : function ( a , b ) { var c = a . range ,
d = c . clone ( ) , e = c . clone ( ) , f = new CKEDITOR . dom . elementPath ( c . startContainer , b ) , t = new CKEDITOR . dom . elementPath ( c . endContainer , b ) ; d . collapse ( 1 ) ; e . collapse ( ) ; f . block && d . checkBoundaryOfElement ( f . block , CKEDITOR . END ) && ( c . setStartAfter ( f . block ) , a . prependEolBr = 1 ) ; t . block && e . checkBoundaryOfElement ( t . block , CKEDITOR . START ) && ( c . setEndBefore ( t . block ) , a . appendEolBr = 1 ) } , fix : function ( a , b ) { var c = b . getDocument ( ) , d ; a . appendEolBr && ( d = this . createEolBr ( c ) , a . fragment . append ( d ) ) ; ! a . prependEolBr || d && ! d . getPrevious ( ) || a . fragment . append ( this . createEolBr ( c ) ,
1 ) } , createEolBr : function ( a ) { return a . createElement ( "br" , { attributes : { "data-cke-eol" : 1 } } ) } } , bogus : { exclude : function ( a ) { var b = a . range . getBoundaryNodes ( ) , c = b . startNode , b = b . endNode ; ! b || ! A ( b ) || c && c . equals ( b ) || a . range . setEndBefore ( b ) } } , tree : { rebuild : function ( a , b ) { var c = a . range , d = c . getCommonAncestor ( ) , e = new CKEDITOR . dom . elementPath ( d , b ) , f = new CKEDITOR . dom . elementPath ( c . startContainer , b ) , c = new CKEDITOR . dom . elementPath ( c . endContainer , b ) , t ; d . type == CKEDITOR . NODE _TEXT && ( d = d . getParent ( ) ) ; if ( e . blockLimit . is ( { tr : 1 ,
table : 1 } ) ) { var g = e . contains ( "table" ) . getParent ( ) ; t = function ( a ) { return ! a . equals ( g ) } } else if ( e . block && e . block . is ( CKEDITOR . dtd . $listItem ) && ( f = f . contains ( CKEDITOR . dtd . $list ) , c = c . contains ( CKEDITOR . dtd . $list ) , ! f . equals ( c ) ) ) { var w = e . contains ( CKEDITOR . dtd . $list ) . getParent ( ) ; t = function ( a ) { return ! a . equals ( w ) } } t || ( t = function ( a ) { return ! a . equals ( e . block ) && ! a . equals ( e . blockLimit ) } ) ; this . rebuildFragment ( a , b , d , t ) } , rebuildFragment : function ( a , b , c , d ) { for ( var e ; c && ! c . equals ( b ) && d ( c ) ; ) e = c . clone ( 0 , 1 ) , a . fragment . appendTo ( e ) ,
a . fragment = e , c = c . getParent ( ) } } , cell : { shrink : function ( a ) { a = a . range ; var b = a . startContainer , c = a . endContainer , d = a . startOffset , e = a . endOffset ; b . type == CKEDITOR . NODE _ELEMENT && b . equals ( c ) && b . is ( "tr" ) && ++ d == e && a . shrink ( CKEDITOR . SHRINK _TEXT ) } } } ; K = function ( ) { function a ( b , c ) { var d = b . getParent ( ) ; if ( d . is ( CKEDITOR . dtd . $inline ) ) b [ c ? "insertBefore" : "insertAfter" ] ( d ) } function b ( c , d , e ) { a ( d ) ; a ( e , 1 ) ; for ( var f ; f = e . getNext ( ) ; ) f . insertAfter ( d ) , d = f ; y ( c ) && c . remove ( ) } function c ( a , b ) { var d = new CKEDITOR . dom . range ( a ) ; d . setStartAfter ( b . startNode ) ;
d . setEndBefore ( b . endNode ) ; return d } return { list : { detectMerge : function ( a , b ) { var d = c ( b , a . bookmark ) , e = d . startPath ( ) , f = d . endPath ( ) , w = e . contains ( CKEDITOR . dtd . $list ) , g = f . contains ( CKEDITOR . dtd . $list ) ; a . mergeList = w && g && w . getParent ( ) . equals ( g . getParent ( ) ) && ! w . equals ( g ) ; a . mergeListItems = e . block && f . block && e . block . is ( CKEDITOR . dtd . $listItem ) && f . block . is ( CKEDITOR . dtd . $listItem ) ; if ( a . mergeList || a . mergeListItems ) d = d . clone ( ) , d . setStartBefore ( a . bookmark . startNode ) , d . setEndAfter ( a . bookmark . endNode ) , a . mergeListBookmark =
d . createBookmark ( ) } , merge : function ( a , c ) { if ( a . mergeListBookmark ) { var d = a . mergeListBookmark . startNode , e = a . mergeListBookmark . endNode , f = new CKEDITOR . dom . elementPath ( d , c ) , w = new CKEDITOR . dom . elementPath ( e , c ) ; if ( a . mergeList ) { var g = f . contains ( CKEDITOR . dtd . $list ) , h = w . contains ( CKEDITOR . dtd . $list ) ; g . equals ( h ) || ( h . moveChildren ( g ) , h . remove ( ) ) } a . mergeListItems && ( f = f . contains ( CKEDITOR . dtd . $listItem ) , w = w . contains ( CKEDITOR . dtd . $listItem ) , f . equals ( w ) || b ( w , d , e ) ) ; d . remove ( ) ; e . remove ( ) } } } , block : { detectMerge : function ( a ,
d = c . clone ( ) , e = c . clone ( ) , f = new CKEDITOR . dom . elementPath ( c . startContainer , b ) , g = new CKEDITOR . dom . elementPath ( c . endContainer , b ) ; d . collapse ( 1 ) ; e . collapse ( ) ; f . block && d . checkBoundaryOfElement ( f . block , CKEDITOR . END ) && ( c . setStartAfter ( f . block ) , a . prependEolBr = 1 ) ; g . block && e . checkBoundaryOfElement ( g . block , CKEDITOR . START ) && ( c . setEndBefore ( g . block ) , a . appendEolBr = 1 ) } , fix : function ( a , b ) { var c = b . getDocument ( ) , d ; a . appendEolBr && ( d = this . createEolBr ( c ) , a . fragment . append ( d ) ) ; ! a . prependEolBr || d && ! d . getPrevious ( ) || a . fragment . append ( this . createEolBr ( c ) ,
1 ) } , createEolBr : function ( a ) { return a . createElement ( "br" , { attributes : { "data-cke-eol" : 1 } } ) } } , bogus : { exclude : function ( a ) { var b = a . range . getBoundaryNodes ( ) , c = b . startNode , b = b . endNode ; ! b || ! A ( b ) || c && c . equals ( b ) || a . range . setEndBefore ( b ) } } , tree : { rebuild : function ( a , b ) { var c = a . range , d = c . getCommonAncestor ( ) , e = new CKEDITOR . dom . elementPath ( d , b ) , f = new CKEDITOR . dom . elementPath ( c . startContainer , b ) , c = new CKEDITOR . dom . elementPath ( c . endContainer , b ) , g ; d . type == CKEDITOR . NODE _TEXT && ( d = d . getParent ( ) ) ; if ( e . blockLimit . is ( { tr : 1 ,
table : 1 } ) ) { var h = e . contains ( "table" ) . getParent ( ) ; g = function ( a ) { return ! a . equals ( h ) } } else if ( e . block && e . block . is ( CKEDITOR . dtd . $listItem ) && ( f = f . contains ( CKEDITOR . dtd . $list ) , c = c . contains ( CKEDITOR . dtd . $list ) , ! f . equals ( c ) ) ) { var z = e . contains ( CKEDITOR . dtd . $list ) . getParent ( ) ; g = function ( a ) { return ! a . equals ( z ) } } g || ( g = function ( a ) { return ! a . equals ( e . block ) && ! a . equals ( e . blockLimit ) } ) ; this . rebuildFragment ( a , b , d , g ) } , rebuildFragment : function ( a , b , c , d ) { for ( var e ; c && ! c . equals ( b ) && d ( c ) ; ) e = c . clone ( 0 , 1 ) , a . fragment . appendTo ( e ) ,
a . fragment = e , c = c . getParent ( ) } } , cell : { shrink : function ( a ) { a = a . range ; var b = a . startContainer , c = a . endContainer , d = a . startOffset , e = a . endOffset ; b . type == CKEDITOR . NODE _ELEMENT && b . equals ( c ) && b . is ( "tr" ) && ++ d == e && a . shrink ( CKEDITOR . SHRINK _TEXT ) } } } ; K = function ( ) { function a ( b , c ) { var d = b . getParent ( ) ; if ( d . is ( CKEDITOR . dtd . $inline ) ) b [ c ? "insertBefore" : "insertAfter" ] ( d ) } function b ( c , d , e ) { a ( d ) ; a ( e , 1 ) ; for ( var f ; f = e . getNext ( ) ; ) f . insertAfter ( d ) , d = f ; v ( c ) && c . remove ( ) } function c ( a , b ) { var d = new CKEDITOR . dom . range ( a ) ; d . setStartAfter ( b . startNode ) ;
d . setEndBefore ( b . endNode ) ; return d } return { list : { detectMerge : function ( a , b ) { var d = c ( b , a . bookmark ) , e = d . startPath ( ) , f = d . endPath ( ) , g = e . contains ( CKEDITOR . dtd . $list ) , h = f . contains ( CKEDITOR . dtd . $list ) ; a . mergeList = g && h && g . getParent ( ) . equals ( h . getParent ( ) ) && ! g . equals ( h ) ; a . mergeListItems = e . block && f . block && e . block . is ( CKEDITOR . dtd . $listItem ) && f . block . is ( CKEDITOR . dtd . $listItem ) ; if ( a . mergeList || a . mergeListItems ) d = d . clone ( ) , d . setStartBefore ( a . bookmark . startNode ) , d . setEndAfter ( a . bookmark . endNode ) , a . mergeListBookmark =
d . createBookmark ( ) } , merge : function ( a , c ) { if ( a . mergeListBookmark ) { var d = a . mergeListBookmark . startNode , e = a . mergeListBookmark . endNode , f = new CKEDITOR . dom . elementPath ( d , c ) , g = new CKEDITOR . dom . elementPath ( e , c ) ; if ( a . mergeList ) { var h = f . contains ( CKEDITOR . dtd . $list ) , k = g . contains ( CKEDITOR . dtd . $list ) ; h . equals ( k ) || ( k . moveChildren ( h ) , k . remove ( ) ) } a . mergeListItems && ( f = f . contains ( CKEDITOR . dtd . $listItem ) , g = g . contains ( CKEDITOR . dtd . $listItem ) , f . equals ( g ) || b ( g , d , e ) ) ; d . remove ( ) ; e . remove ( ) } } } , block : { detectMerge : function ( a ,
b ) { if ( ! a . tableContentsRanges && ! a . mergeListBookmark ) { var c = new CKEDITOR . dom . range ( b ) ; c . setStartBefore ( a . bookmark . startNode ) ; c . setEndAfter ( a . bookmark . endNode ) ; a . mergeBlockBookmark = c . createBookmark ( ) } } , merge : function ( a , c ) { if ( a . mergeBlockBookmark && ! a . purgeTableBookmark ) { var d = a . mergeBlockBookmark . startNode , e = a . mergeBlockBookmark . endNode , f = new CKEDITOR . dom . elementPath ( d , c ) , g = new CKEDITOR . dom . elementPath ( e , c ) , f = f . block , g = g . block ; f && g && ! f . equals ( g ) && b ( g , d , e ) ; d . remove ( ) ; e . remove ( ) } } } , table : function ( ) { function a ( c ) { var e =
[ ] , f , g = new CKEDITOR . dom . walker ( c ) , h = c . startPath ( ) . contains ( d ) , k = c . endPath ( ) . contains ( d ) , n = { } ; g . guard = function ( a , g ) { if ( a . type == CKEDITOR . NODE _ELEMENT ) { var B = "visited_" + ( g ? "out" : "in" ) ; if ( a . getCustomData ( B ) ) return ; CKEDITOR . dom . element . setMarker ( n , a , B , 1 ) } if ( g && h && a . equals ( h ) ) f = c . clone ( ) , f . setEndAt ( h , CKEDITOR . POSITION _BEFORE _END ) , e . push ( f ) ; else if ( ! g && k && a . equals ( k ) ) f = c . clone ( ) , f . setStartAt ( k , CKEDITOR . POSITION _AFTER _START ) , e . push ( f ) ; else { if ( B = ! g ) B = a . type == CKEDITOR . NODE _ELEMENT && a . is ( d ) && ( ! h || b ( a , h ) ) && ( ! k ||
b ( a , k ) ) ; if ( ! B && ( B = g ) ) if ( a . is ( d ) ) var B = h && h . getAscendant ( "table" , ! 0 ) , l = k && k . getAscendant ( "table" , ! 0 ) , H = a . getAscendant ( "table" , ! 0 ) , B = B && B . contains ( H ) || l && l . contains ( H ) ; else B = void 0 ; B && ( f = c . clone ( ) , f . selectNodeContents ( a ) , e . push ( f ) ) } } ; g . lastForward ( ) ; CKEDITOR . dom . element . clearAllMarkers ( n ) ; return e } function b ( a , c ) { var d = CKEDITOR . POSITION _CONTAINS + CKEDITOR . POSITION _IS _CONTAINED , e = a . getPosition ( c ) ; return e === CKEDITOR . POSITION _IDENTICAL ? ! 1 : 0 === ( e & d ) } var d = { td : 1 , th : 1 , caption : 1 } ; return { detectPurge : function ( a ) { var b =
[ ] , f , g = new CKEDITOR . dom . walker ( c ) , h = c . startPath ( ) . contains ( d ) , k = c . endPath ( ) . contains ( d ) , p = { } ; g . guard = function ( a , g ) { if ( a . type == CKEDITOR . NODE _ELEMENT ) { var B = "visited_" + ( g ? "out" : "in" ) ; if ( a . getCustomData ( B ) ) return ; CKEDITOR . dom . element . setMarker ( p , a , B , 1 ) } if ( g && h && a . equals ( h ) ) f = c . clone ( ) , f . setEndAt ( h , CKEDITOR . POSITION _BEFORE _END ) , e . push ( f ) ; else if ( ! g && k && a . equals ( k ) ) f = c . clone ( ) , f . setStartAt ( k , CKEDITOR . POSITION _AFTER _START ) , e . push ( f ) ; else { if ( B = ! g ) B = a . type == CKEDITOR . NODE _ELEMENT && a . is ( d ) && ( ! h || b ( a , h ) ) && ( ! k ||
b ( a , k ) ) ; if ( ! B && ( B = g ) ) if ( a . is ( d ) ) var B = h && h . getAscendant ( "table" , ! 0 ) , l = k && k . getAscendant ( "table" , ! 0 ) , H = a . getAscendant ( "table" , ! 0 ) , B = B && B . contains ( H ) || l && l . contains ( H ) ; else B = void 0 ; B && ( f = c . clone ( ) , f . selectNodeContents ( a ) , e . push ( f ) ) } } ; g . lastForward ( ) ; CKEDITOR . dom . element . clearAllMarkers ( p ) ; return e } function b ( a , c ) { var d = CKEDITOR . POSITION _CONTAINS + CKEDITOR . POSITION _IS _CONTAINED , e = a . getPosition ( c ) ; return e === CKEDITOR . POSITION _IDENTICAL ? ! 1 : 0 === ( e & d ) } var d = { td : 1 , th : 1 , caption : 1 } ; return { detectPurge : function ( a ) { var b =
a . range , c = b . clone ( ) ; c . enlarge ( CKEDITOR . ENLARGE _ELEMENT ) ; var c = new CKEDITOR . dom . walker ( c ) , e = 0 ; c . evaluator = function ( a ) { a . type == CKEDITOR . NODE _ELEMENT && a . is ( d ) && ++ e } ; c . checkForward ( ) ; if ( 1 < e ) { var c = b . startPath ( ) . contains ( "table" ) , f = b . endPath ( ) . contains ( "table" ) ; c && f && b . checkBoundaryOfElement ( c , CKEDITOR . START ) && b . checkBoundaryOfElement ( f , CKEDITOR . END ) && ( b = a . range . clone ( ) , b . setStartBefore ( c ) , b . setEndAfter ( f ) , a . purgeTableBookmark = b . createBookmark ( ) ) } } , detectRanges : function ( e , f ) { var g = c ( f , e . bookmark ) , h = g . clone ( ) ,
k , l , n = g . getCommonAncestor ( ) ; n . is ( CKEDITOR . dtd . $tableContent ) && ! n . is ( d ) && ( n = n . getAscendant ( "table" , ! 0 ) ) ; l = n ; n = new CKEDITOR . dom . elementPath ( g . startContainer , l ) ; l = new CKEDITOR . dom . elementPath ( g . endContainer , l ) ; n = n . contains ( "table" ) ; l = l . contains ( "table" ) ; if ( n || l ) n && l && b ( n , l ) ? ( e . tableSurroundingRange = h , h . setStartAt ( n , CKEDITOR . POSITION _AFTER _END ) , h . setEndAt ( l , CKEDITOR . POSITION _BEFORE _START ) , h = g . clone ( ) , h . setEndAt ( n , CKEDITOR . POSITION _AFTER _END ) , k = g . clone ( ) , k . setStartAt ( l , CKEDITOR . POSITION _BEFORE _START ) ,
k = a ( h ) . concat ( a ( k ) ) ) : n ? l || ( e . tableSurroundingRange = h , h . setStartAt ( n , CKEDITOR . POSITION _AFTER _END ) , g . setEndAt ( n , CKEDITOR . POSITION _AFTER _END ) ) : ( e . tableSurroundingRange = h , h . setEndAt ( l , CKEDITOR . POSITION _BEFORE _START ) , g . setStartAt ( l , CKEDITOR . POSITION _AFTER _START ) ) , e . tableContentsRanges = k ? k : a ( g ) } , deleteRanges : function ( a ) { for ( var b ; b = a . tableContentsRanges . pop ( ) ; ) b . extractContents ( ) , y ( b . startContainer ) && b . startContainer . appendBogus ( ) ; a . tableSurroundingRange && a . tableSurroundingRange . extractContents ( ) } , purge : function ( a ) { if ( a . purgeTableBookmark ) { var b =
k , l , p = g . getCommonAncestor ( ) ; p . is ( CKEDITOR . dtd . $tableContent ) && ! p . is ( d ) && ( p = p . getAscendant ( "table" , ! 0 ) ) ; l = p ; p = new CKEDITOR . dom . elementPath ( g . startContainer , l ) ; l = new CKEDITOR . dom . elementPath ( g . endContainer , l ) ; p = p . contains ( "table" ) ; l = l . contains ( "table" ) ; if ( p || l ) p && l && b ( p , l ) ? ( e . tableSurroundingRange = h , h . setStartAt ( p , CKEDITOR . POSITION _AFTER _END ) , h . setEndAt ( l , CKEDITOR . POSITION _BEFORE _START ) , h = g . clone ( ) , h . setEndAt ( p , CKEDITOR . POSITION _AFTER _END ) , k = g . clone ( ) , k . setStartAt ( l , CKEDITOR . POSITION _BEFORE _START ) ,
k = a ( h ) . concat ( a ( k ) ) ) : p ? l || ( e . tableSurroundingRange = h , h . setStartAt ( p , CKEDITOR . POSITION _AFTER _END ) , g . setEndAt ( p , CKEDITOR . POSITION _AFTER _END ) ) : ( e . tableSurroundingRange = h , h . setEndAt ( l , CKEDITOR . POSITION _BEFORE _START ) , g . setStartAt ( l , CKEDITOR . POSITION _AFTER _START ) ) , e . tableContentsRanges = k ? k : a ( g ) } , deleteRanges : function ( a ) { for ( var b ; b = a . tableContentsRanges . pop ( ) ; ) b . extractContents ( ) , v ( b . startContainer ) && b . startContainer . appendBogus ( ) ; a . tableSurroundingRange && a . tableSurroundingRange . extractContents ( ) } , purge : function ( a ) { if ( a . purgeTableBookmark ) { var b =
a . doc , c = a . range . clone ( ) , b = b . createElement ( "p" ) ; b . insertBefore ( a . purgeTableBookmark . startNode ) ; c . moveToBookmark ( a . purgeTableBookmark ) ; c . deleteContents ( ) ; a . range . moveToPosition ( b , CKEDITOR . POSITION _AFTER _START ) } } } } ( ) , detectExtractMerge : function ( a ) { return ! ( a . range . startPath ( ) . contains ( CKEDITOR . dtd . $listItem ) && a . range . endPath ( ) . contains ( CKEDITOR . dtd . $listItem ) ) } , fixUneditableRangePosition : function ( a ) { a . startContainer . getDtd ( ) [ "#" ] || a . moveToClosestEditablePosition ( null , ! 0 ) } , autoParagraph : function ( a , b ) { var c =
b . startPath ( ) , d ; k ( a , c . block , c . blockLimit ) && ( d = g ( a ) ) && ( d = b . document . createElement ( d ) , d . appendBogus ( ) , b . insertNode ( d ) , b . moveToPosition ( d , CKEDITOR . POSITION _AFTER _START ) ) } } } ( ) } ) ( ) ;
( function ( ) { function a ( a ) { return CKEDITOR . plugins . widget && CKEDITOR . plugins . widget . isDomWidget ( a ) } function d ( b , c ) { if ( 0 === b . length || a ( b [ 0 ] . getEnclosedNode ( ) ) ) return ! 1 ; var d , e ; if ( ( d = ! c && 1 === b . length ) && ! ( d = b [ 0 ] . collapsed ) ) { var f = b [ 0 ] ; d = f . startContainer . getAscendant ( { td : 1 , th : 1 } , ! 0 ) ; var g = f . endContainer . getAscendant ( { td : 1 , th : 1 } , ! 0 ) ; e = CKEDITOR . tools . trim ; d && d . equals ( g ) && ! d . findOne ( "td, th, tr, tbody, table" ) ? ( f = f . cloneContents ( ) , d = f . getFirst ( ) ? e ( f . getFirst ( ) . getText ( ) ) !== e ( d . getText ( ) ) : ! 0 ) : d = ! 1 } if ( d ) return ! 1 ;
for ( e = 0 ; e < b . length ; e ++ ) if ( d = b [ e ] . _getTableElement ( ) , ! d ) return ! 1 ; return ! 0 } function b ( a ) { function b ( a ) { a = a . find ( "td, th" ) ; var c = [ ] , d ; for ( d = 0 ; d < a . count ( ) ; d ++ ) c . push ( a . getItem ( d ) ) ; return c } var c = [ ] , d , e ; for ( e = 0 ; e < a . length ; e ++ ) d = a [ e ] . _getTableElement ( ) , d . is && d . is ( { td : 1 , th : 1 } ) ? c . push ( d ) : c = c . concat ( b ( d ) ) ; return c } function c ( a ) { a = b ( a ) ; var c = "" , d = [ ] , e , f ; for ( f = 0 ; f < a . length ; f ++ ) e && ! e . equals ( a [ f ] . getAscendant ( "tr" ) ) ? ( c += d . join ( "\t" ) + "\n" , e = a [ f ] . getAscendant ( "tr" ) , d = [ ] ) : 0 === f && ( e = a [ f ] . getAscendant ( "tr" ) ) , d . push ( a [ f ] . getText ( ) ) ;
return c += d . join ( "\t" ) } function f ( a ) { var b = this . root . editor , d = b . getSelection ( 1 ) ; this . reset ( ) ; l = ! 0 ; d . root . once ( "selectionchange" , function ( a ) { a . cancel ( ) } , null , null , 0 ) ; d . selectRanges ( [ a [ 0 ] ] ) ; d = this . _ . cache ; d . ranges = new CKEDITOR . dom . rangeList ( a ) ; d . type = CKEDITOR . SELECTION _TEXT ; d . selectedElement = a [ 0 ] . _getTableElement ( ) ; d . selectedText = c ( a ) ; d . nativeSel = null ; this . isFake = 1 ; this . rev = J ++ ; b . _ . fakeSelection = this ; l = ! 1 ; this . root . fire ( "selectionchange" ) } function h ( ) { var b = this . _ . fakeSelection , c ; if ( b ) { c = this . getSelection ( 1 ) ;
var e ; if ( ! ( e = ! c ) && ( e = ! c . isHidden ( ) ) ) { e = b ; var f = c . getRanges ( ) , g = e . getRanges ( ) , h = f . length && f [ 0 ] . _getTableElement ( ) && f [ 0 ] . _getTableElement ( ) . getAscendant ( "table" , ! 0 ) , n = g . length && g [ 0 ] . _getTableElement ( ) && g [ 0 ] . _getTableElement ( ) . getAscendant ( "table" , ! 0 ) , k = 1 === f . length && f [ 0 ] . _getTableElement ( ) && f [ 0 ] . _getTableElement ( ) . is ( "table" ) , v = 1 === g . length && g [ 0 ] . _getTableElement ( ) && g [ 0 ] . _getTableElement ( ) . is ( "table" ) ; if ( a ( e . getSelectedElement ( ) ) ) e = ! 1 ; else { var l = 1 === f . length && f [ 0 ] . collapsed , g = d ( f , ! ! CKEDITOR . env . webkit ) &&
d ( g ) ; h = h && n ? h . equals ( n ) || n . contains ( h ) : ! 1 ; h && ( l || g ) ? ( k && ! v && e . selectRanges ( f ) , e = ! 0 ) : e = ! 1 } e = ! e } e && ( b . reset ( ) , b = 0 ) } if ( ! b && ( b = c || this . getSelection ( 1 ) , ! b || b . getType ( ) == CKEDITOR . SELECTION _NONE ) ) return ; this . fire ( "selectionCheck" , b ) ; c = this . elementPath ( ) ; c . compare ( this . _ . selectionPreviousPath ) || ( e = this . _ . selectionPreviousPath && this . _ . selectionPreviousPath . blockLimit . equals ( c . blockLimit ) , CKEDITOR . env . webkit && ! e && ( this . _ . previousActive = this . document . getActive ( ) ) , this . _ . selectionPreviousPath = c , this . fire ( "selectionChange" ,
{ selection : b , path : c } ) ) } function k ( ) { F = ! 0 ; q || ( g . call ( this ) , q = CKEDITOR . tools . setTimeout ( g , 200 , this ) ) } function g ( ) { q = null ; F && ( CKEDITOR . tools . setTimeout ( h , 0 , this ) , F = ! 1 ) } function m ( a ) { return L ( a ) || a . type == CKEDITOR . NODE _ELEMENT && ! a . is ( CKEDITOR . dtd . $empty ) ? ! 0 : ! 1 } function r ( a ) { function b ( c , d ) { return c && c . type != CKEDITOR . NODE _TEXT ? a . clone ( ) [ "moveToElementEdit" + ( d ? "End" : "Start" ) ] ( c ) : ! 1 } if ( ! ( a . root instanceof CKEDITOR . editable ) ) return ! 1 ; var c = a . startContainer , d = a . getPreviousNode ( m , null , c ) , e = a . getNextNode ( m , null ,
c ) ; return b ( d ) || b ( e , 1 ) || ! ( d || e || c . type == CKEDITOR . NODE _ELEMENT && c . isBlockBoundary ( ) && c . getBogus ( ) ) ? ! 0 : ! 1 } function e ( a ) { z ( a , ! 1 ) ; var b = a . getDocument ( ) . createText ( u ) ; a . setCustomData ( "cke-fillingChar" , b ) ; return b } function z ( a , b ) { var c = a && a . removeCustomData ( "cke-fillingChar" ) ; if ( c ) { if ( ! 1 !== b ) { var d = a . getDocument ( ) . getSelection ( ) . getNative ( ) , e = d && "None" != d . type && d . getRangeAt ( 0 ) , f = u . length ; if ( c . getLength ( ) > f && e && e . intersectsNode ( c . $ ) ) { var n = [ { node : d . anchorNode , offset : d . anchorOffset } , { node : d . focusNode , offset : d . focusOffset } ] ;
d . anchorNode == c . $ && d . anchorOffset > f && ( n [ 0 ] . offset -= f ) ; d . focusNode == c . $ && d . focusOffset > f && ( n [ 1 ] . offset -= f ) } } c . setText ( y ( c . getText ( ) , 1 ) ) ; n && ( c = a . getDocument ( ) . $ , d = c . getSelection ( ) , c = c . createRange ( ) , c . setStart ( n [ 0 ] . node , n [ 0 ] . offset ) , c . collapse ( ! 0 ) , d . removeAllRanges ( ) , d . addRange ( c ) , d . extend ( n [ 1 ] . node , n [ 1 ] . offset ) ) } } function y ( a , b ) { return b ? a . replace ( K , function ( a , b ) { return b ? " " : "" } ) : a . replace ( u , "" ) } function A ( a , b ) { var c = b && CKEDITOR . tools . htmlEncode ( b ) || "\x26nbsp;" , c = CKEDITOR . dom . element . createFromHtml ( '\x3cdiv data-cke-hidden-sel\x3d"1" data-cke-temp\x3d"1" style\x3d"' +
var e ; if ( ! ( e = ! c ) && ( e = ! c . isHidden ( ) ) ) { e = b ; var f = c . getRanges ( ) , g = e . getRanges ( ) , h = f . length && f [ 0 ] . _getTableElement ( ) && f [ 0 ] . _getTableElement ( ) . getAscendant ( "table" , ! 0 ) , p = g . length && g [ 0 ] . _getTableElement ( ) && g [ 0 ] . _getTableElement ( ) . getAscendant ( "table" , ! 0 ) , k = 1 === f . length && f [ 0 ] . _getTableElement ( ) && f [ 0 ] . _getTableElement ( ) . is ( "table" ) , w = 1 === g . length && g [ 0 ] . _getTableElement ( ) && g [ 0 ] . _getTableElement ( ) . is ( "table" ) ; if ( a ( e . getSelectedElement ( ) ) ) e = ! 1 ; else { var l = 1 === f . length && f [ 0 ] . collapsed , g = d ( f , ! ! CKEDITOR . env . webkit ) &&
d ( g ) ; h = h && p ? h . equals ( p ) || p . contains ( h ) : ! 1 ; h && ( l || g ) ? ( k && ! w && e . selectRanges ( f ) , e = ! 0 ) : e = ! 1 } e = ! e } e && ( b . reset ( ) , b = 0 ) } if ( ! b && ( b = c || this . getSelection ( 1 ) , ! b || b . getType ( ) == CKEDITOR . SELECTION _NONE ) ) return ; this . fire ( "selectionCheck" , b ) ; c = this . elementPath ( ) ; c . compare ( this . _ . selectionPreviousPath ) || ( e = this . _ . selectionPreviousPath && this . _ . selectionPreviousPath . blockLimit . equals ( c . blockLimit ) , CKEDITOR . env . webkit && ! e && ( this . _ . previousActive = this . document . getActive ( ) ) , this . _ . selectionPreviousPath = c , this . fire ( "selectionChange" ,
{ selection : b , path : c } ) ) } function k ( ) { F = ! 0 ; t || ( g . call ( this ) , t = CKEDITOR . tools . setTimeout ( g , 200 , this ) ) } function g ( ) { t = null ; F && ( CKEDITOR . tools . setTimeout ( h , 0 , this ) , F = ! 1 ) } function n ( a ) { return L ( a ) || a . type == CKEDITOR . NODE _ELEMENT && ! a . is ( CKEDITOR . dtd . $empty ) ? ! 0 : ! 1 } function r ( a ) { function b ( c , d ) { return c && c . type != CKEDITOR . NODE _TEXT ? a . clone ( ) [ "moveToElementEdit" + ( d ? "End" : "Start" ) ] ( c ) : ! 1 } if ( ! ( a . root instanceof CKEDITOR . editable ) ) return ! 1 ; var c = a . startContainer , d = a . getPreviousNode ( n , null , c ) , e = a . getNextNode ( n , null ,
c ) ; return b ( d ) || b ( e , 1 ) || ! ( d || e || c . type == CKEDITOR . NODE _ELEMENT && c . isBlockBoundary ( ) && c . getBogus ( ) ) ? ! 0 : ! 1 } function e ( a ) { y ( a , ! 1 ) ; var b = a . getDocument ( ) . createText ( u ) ; a . setCustomData ( "cke-fillingChar" , b ) ; return b } function y ( a , b ) { var c = a && a . removeCustomData ( "cke-fillingChar" ) ; if ( c ) { if ( ! 1 !== b ) { var d = a . getDocument ( ) . getSelection ( ) . getNative ( ) , e = d && "None" != d . type && d . getRangeAt ( 0 ) , f = u . length ; if ( c . getLength ( ) > f && e && e . intersectsNode ( c . $ ) ) { var g = [ { node : d . anchorNode , offset : d . anchorOffset } , { node : d . focusNode , offset : d . focusOffset } ] ;
d . anchorNode == c . $ && d . anchorOffset > f && ( g [ 0 ] . offset -= f ) ; d . focusNode == c . $ && d . focusOffset > f && ( g [ 1 ] . offset -= f ) } } c . setText ( v ( c . getText ( ) , 1 ) ) ; g && ( c = a . getDocument ( ) . $ , d = c . getSelection ( ) , c = c . createRange ( ) , c . setStart ( g [ 0 ] . node , g [ 0 ] . offset ) , c . collapse ( ! 0 ) , d . removeAllRanges ( ) , d . addRange ( c ) , d . extend ( g [ 1 ] . node , g [ 1 ] . offset ) ) } } function v ( a , b ) { return b ? a . replace ( K , function ( a , b ) { return b ? " " : "" } ) : a . replace ( u , "" ) } function A ( a , b ) { var c = b && CKEDITOR . tools . htmlEncode ( b ) || "\x26nbsp;" , c = CKEDITOR . dom . element . createFromHtml ( '\x3cdiv data-cke-hidden-sel\x3d"1" data-cke-temp\x3d"1" style\x3d"' +
( CKEDITOR . env . ie && 14 > CKEDITOR . env . version ? "display:none" : "position:fixed;top:0;left:-1000px" ) + '"\x3e' + c + "\x3c/div\x3e" , a . document ) ; a . fire ( "lockSnapshot" ) ; a . editable ( ) . append ( c ) ; var d = a . getSelection ( 1 ) , e = a . createRange ( ) , f = d . root . on ( "selectionchange" , function ( a ) { a . cancel ( ) } , null , null , 0 ) ; e . setStartAt ( c , CKEDITOR . POSITION _AFTER _START ) ; e . setEndAt ( c , CKEDITOR . POSITION _BEFORE _END ) ; d . selectRanges ( [ e ] ) ; f . removeListener ( ) ; a . fire ( "unlockSnapshot" ) ; a . _ . hiddenSelectionContainer = c } function D ( a ) { var b = { 37 : 1 , 39 : 1 ,
8 : 1 , 46 : 1 } ; return function ( c ) { var d = c . data . getKeystroke ( ) ; if ( b [ d ] ) { var e = a . getSelection ( ) . getRanges ( ) , f = e [ 0 ] ; 1 == e . length && f . collapsed && ( d = f [ 38 > d ? "getPreviousEditableNode" : "getNextEditableNode" ] ( ) ) && d . type == CKEDITOR . NODE _ELEMENT && "false" == d . getAttribute ( "contenteditable" ) && ( a . getSelection ( ) . fake ( d ) , c . data . preventDefault ( ) , c . cancel ( ) ) } } } function x ( a ) { for ( var b = 0 ; b < a . length ; b ++ ) { var c = a [ b ] ; c . getCommonAncestor ( ) . isReadOnly ( ) && a . splice ( b , 1 ) ; if ( ! c . collapsed ) { if ( c . startContainer . isReadOnly ( ) ) for ( var d = c . startContainer ,
e ; d && ! ( ( e = d . type == CKEDITOR . NODE _ELEMENT ) && d . is ( "body" ) || ! d . isReadOnly ( ) ) ; ) e && "false" == d . getAttribute ( "contentEditable" ) && c . setStartAfter ( d ) , d = d . getParent ( ) ; d = c . startContainer ; e = c . endContainer ; var f = c . startOffset , n = c . endOffset , g = c . clone ( ) ; d && d . type == CKEDITOR . NODE _TEXT && ( f >= d . getLength ( ) ? g . setStartAfter ( d ) : g . setStartBefore ( d ) ) ; e && e . type == CKEDITOR . NODE _TEXT && ( n ? g . setEndAfter ( e ) : g . setEndBefore ( e ) ) ; d = new CKEDITOR . dom . walker ( g ) ; d . evaluator = function ( d ) { if ( d . type == CKEDITOR . NODE _ELEMENT && d . isReadOnly ( ) ) { var e =
c . clone ( ) ; c . setEndBefore ( d ) ; c . collapsed && a . splice ( b -- , 1 ) ; d . getPosition ( g . endContainer ) & CKEDITOR . POSITION _CONTAINS || ( e . setStartAfter ( d ) , e . collapsed || a . splice ( b + 1 , 0 , e ) ) ; return ! 0 } return ! 1 } ; d . next ( ) } } return a } var p = "function" != typeof window . getSelection , J = 1 , u = CKEDITOR . tools . repeat ( " " , 7 ) , K = new RegExp ( u + "( )?" , "g" ) , l , q , F , L = CKEDITOR . dom . walker . invisible ( 1 ) , C = function ( ) { function a ( b ) { return function ( a ) { var c = a . editor . createRange ( ) ; c . moveToClosestEditablePosition ( a . selected , b ) && a . editor . getSelection ( ) . selectRanges ( [ c ] ) ;
e ; d && ! ( ( e = d . type == CKEDITOR . NODE _ELEMENT ) && d . is ( "body" ) || ! d . isReadOnly ( ) ) ; ) e && "false" == d . getAttribute ( "contentEditable" ) && c . setStartAfter ( d ) , d = d . getParent ( ) ; d = c . startContainer ; e = c . endContainer ; var f = c . startOffset , g = c . endOffset , h = c . clone ( ) ; d && d . type == CKEDITOR . NODE _TEXT && ( f >= d . getLength ( ) ? h . setStartAfter ( d ) : h . setStartBefore ( d ) ) ; e && e . type == CKEDITOR . NODE _TEXT && ( g ? h . setEndAfter ( e ) : h . setEndBefore ( e ) ) ; d = new CKEDITOR . dom . walker ( h ) ; d . evaluator = function ( d ) { if ( d . type == CKEDITOR . NODE _ELEMENT && d . isReadOnly ( ) ) { var e =
c . clone ( ) ; c . setEndBefore ( d ) ; c . collapsed && a . splice ( b -- , 1 ) ; d . getPosition ( h . endContainer ) & CKEDITOR . POSITION _CONTAINS || ( e . setStartAfter ( d ) , e . collapsed || a . splice ( b + 1 , 0 , e ) ) ; return ! 0 } return ! 1 } ; d . next ( ) } } return a } var m = "function" != typeof window . getSelection , J = 1 , u = CKEDITOR . tools . repeat ( " " , 7 ) , K = new RegExp ( u + "( )?" , "g" ) , l , t , F , L = CKEDITOR . dom . walker . invisible ( 1 ) , C = function ( ) { function a ( b ) { return function ( a ) { var c = a . editor . createRange ( ) ; c . moveToClosestEditablePosition ( a . selected , b ) && a . editor . getSelection ( ) . selectRanges ( [ c ] ) ;
return ! 1 } } function b ( a ) { return function ( b ) { var c = b . editor , d = c . createRange ( ) , e ; if ( ! c . readOnly ) return ( e = d . moveToClosestEditablePosition ( b . selected , a ) ) || ( e = d . moveToClosestEditablePosition ( b . selected , ! a ) ) , e && c . getSelection ( ) . selectRanges ( [ d ] ) , c . fire ( "saveSnapshot" ) , b . selected . remove ( ) , e || ( d . moveToElementEditablePosition ( c . editable ( ) ) , c . getSelection ( ) . selectRanges ( [ d ] ) ) , c . fire ( "saveSnapshot" ) , ! 1 } } var c = a ( ) , d = a ( 1 ) ; return { 37 : c , 38 : c , 39 : d , 40 : d , 8 : b ( ) , 46 : b ( 1 ) } } ( ) ; CKEDITOR . on ( "instanceCreated" , function ( a ) { function b ( ) { var a =
c . getSelection ( ) ; a && a . removeAllRanges ( ) } var c = a . editor ; c . on ( "contentDom" , function ( ) { function a ( ) { r = new CKEDITOR . dom . selection ( c . getSelection ( ) ) ; r . lock ( ) } function b ( ) { f . removeListener ( "mouseup" , b ) ; t . removeListener ( "mouseup" , b ) ; var a = CKEDITOR . document . $ . selection , c = a . createRange ( ) ; "None" != a . type && c . parentElement ( ) && c . parentElement ( ) . ownerDocument == e . $ && c . select ( ) } function d ( a ) { if ( CKEDITOR . env . ie ) { var b = ( a = a . getRanges ( ) [ 0 ] ) ? a . startContainer . getAscendant ( function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT &&
( "false" == a . getAttribute ( "contenteditable" ) || "true" == a . getAttribute ( "contenteditable" ) ) } , ! 0 ) : null ; return a && "false" == b . getAttribute ( "contenteditable" ) && b } } var e = c . document , f = CKEDITOR . document , g = c . editable ( ) , l = e . getBody ( ) , t = e . getDocumentElement ( ) , E = g . isInline ( ) , m , r ; CKEDITOR . env . gecko && g . attachListener ( g , "focus" , function ( a ) { a . removeListener ( ) ; 0 !== m && ( a = c . getSelection ( ) . getNative ( ) ) && a . isCollapsed && a . anchorNode == g . $ && ( a = c . createRange ( ) , a . moveToElementEditStart ( g ) , a . select ( ) ) } , null , null , - 2 ) ; g . attachListener ( g ,
CKEDITOR . env . webkit ? "DOMFocusIn" : "focus" , function ( ) { m && CKEDITOR . env . webkit && ( m = c . _ . previousActive && c . _ . previousActive . equals ( e . getActive ( ) ) ) && null != c . _ . previousScrollTop && c . _ . previousScrollTop != g . $ . scrollTop && ( g . $ . scrollTop = c . _ . previousScrollTop ) ; c . unlockSelection ( m ) ; m = 0 } , null , null , - 1 ) ; g . attachListener ( g , "mousedown" , function ( ) { m = 0 } ) ; if ( CKEDITOR . env . ie || E ) p ? g . attachListener ( g , "beforedeactivate" , a , null , null , - 1 ) : g . attachListener ( c , "selectionCheck" , a , null , null , - 1 ) , g . attachListener ( g , CKEDITOR . env . webkit ?
"DOMFocusOut" : "blur" , function ( ) { c . lockSelection ( r ) ; m = 1 } , null , null , - 1 ) , g . attachListener ( g , "mousedown" , function ( ) { m = 0 } ) ; if ( CKEDITOR . env . ie && ! E ) { var y ; g . attachListener ( g , "mousedown" , function ( a ) { 2 == a . data . $ . button && ( ( a = c . document . getSelection ( ) ) && a . getType ( ) != CKEDITOR . SELECTION _NONE || ( y = c . window . getScrollPosition ( ) ) ) } ) ; g . attachListener ( g , "mouseup" , function ( a ) { 2 == a . data . $ . button && y && ( c . document . $ . documentElement . scrollLeft = y . x , c . document . $ . documentElement . scrollTop = y . y ) ; y = null } ) ; if ( "BackCompat" != e . $ . compatMode ) { if ( CKEDITOR . env . ie7Compat ||
CKEDITOR . env . ie6Compat ) { var q , u ; t . on ( "mousedown" , function ( a ) { function b ( a ) { a = a . data . $ ; if ( q ) { var c = l . $ . createTextRange ( ) ; try { c . moveToPoint ( a . clientX , a . clientY ) } catch ( d ) { } q . setEndPoint ( 0 > u . compareEndPoints ( "StartToStart" , c ) ? "EndToEnd" : "StartToStart" , c ) ; q . select ( ) } } function c ( ) { t . removeListener ( "mousemove" , b ) ; f . removeListener ( "mouseup" , c ) ; t . removeListener ( "mouseup" , c ) ; q . select ( ) } a = a . data ; if ( a . getTarget ( ) . is ( "html" ) && a . $ . y < t . $ . clientHeight && a . $ . x < t . $ . clientWidth ) { q = l . $ . createTextRange ( ) ; try { q . moveToPoint ( a . $ . clientX ,
a . $ . clientY ) } catch ( d ) { } u = q . duplicate ( ) ; t . on ( "mousemove" , b ) ; f . on ( "mouseup" , c ) ; t . on ( "mouseup" , c ) } } ) } if ( 7 < CKEDITOR . env . version && 11 > CKEDITOR . env . version ) t . on ( "mousedown" , function ( a ) { a . data . getTarget ( ) . is ( "html" ) && ( f . on ( "mouseup" , b ) , t . on ( "mouseup" , b ) ) } ) } } g . attachListener ( g , "selectionchange" , h , c ) ; g . attachListener ( g , "keyup" , k , c ) ; g . attachListener ( g , "keydown" , function ( a ) { var b = this . getSelection ( 1 ) ; d ( b ) && ( b . selectElement ( d ( b ) ) , a . data . preventDefault ( ) ) } , c ) ; g . attachListener ( g , CKEDITOR . env . webkit ? "DOMFocusIn" :
c . getSelection ( ) ; a && a . removeAllRanges ( ) } var c = a . editor ; c . on ( "contentDom" , function ( ) { function a ( ) { r = new CKEDITOR . dom . selection ( c . getSelection ( ) ) ; r . lock ( ) } function b ( ) { f . removeListener ( "mouseup" , b ) ; q . removeListener ( "mouseup" , b ) ; var a = CKEDITOR . document . $ . selection , c = a . createRange ( ) ; "None" != a . type && c . parentElement ( ) && c . parentElement ( ) . ownerDocument == e . $ && c . select ( ) } function d ( a ) { if ( CKEDITOR . env . ie ) { var b = ( a = a . getRanges ( ) [ 0 ] ) ? a . startContainer . getAscendant ( function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT &&
( "false" == a . getAttribute ( "contenteditable" ) || "true" == a . getAttribute ( "contenteditable" ) ) } , ! 0 ) : null ; return a && "false" == b . getAttribute ( "contenteditable" ) && b } } var e = c . document , f = CKEDITOR . document , g = c . editable ( ) , l = e . getBody ( ) , q = e . getDocumentElement ( ) , E = g . isInline ( ) , n , r ; CKEDITOR . env . gecko && g . attachListener ( g , "focus" , function ( a ) { a . removeListener ( ) ; 0 !== n && ( a = c . getSelection ( ) . getNative ( ) ) && a . isCollapsed && a . anchorNode == g . $ && ( a = c . createRange ( ) , a . moveToElementEditStart ( g ) , a . select ( ) ) } , null , null , - 2 ) ; g . attachListener ( g ,
CKEDITOR . env . webkit ? "DOMFocusIn" : "focus" , function ( ) { n && CKEDITOR . env . webkit && ( n = c . _ . previousActive && c . _ . previousActive . equals ( e . getActive ( ) ) ) && null != c . _ . previousScrollTop && c . _ . previousScrollTop != g . $ . scrollTop && ( g . $ . scrollTop = c . _ . previousScrollTop ) ; c . unlockSelection ( n ) ; n = 0 } , null , null , - 1 ) ; g . attachListener ( g , "mousedown" , function ( ) { n = 0 } ) ; if ( CKEDITOR . env . ie || E ) m ? g . attachListener ( g , "beforedeactivate" , a , null , null , - 1 ) : g . attachListener ( c , "selectionCheck" , a , null , null , - 1 ) , g . attachListener ( g , CKEDITOR . env . webkit ?
"DOMFocusOut" : "blur" , function ( ) { c . lockSelection ( r ) ; n = 1 } , null , null , - 1 ) , g . attachListener ( g , "mousedown" , function ( ) { n = 0 } ) ; if ( CKEDITOR . env . ie && ! E ) { var v ; g . attachListener ( g , "mousedown" , function ( a ) { 2 == a . data . $ . button && ( ( a = c . document . getSelection ( ) ) && a . getType ( ) != CKEDITOR . SELECTION _NONE || ( v = c . window . getScrollPosition ( ) ) ) } ) ; g . attachListener ( g , "mouseup" , function ( a ) { 2 == a . data . $ . button && v && ( c . document . $ . documentElement . scrollLeft = v . x , c . document . $ . documentElement . scrollTop = v . y ) ; v = null } ) ; if ( "BackCompat" != e . $ . compatMode ) { if ( CKEDITOR . env . ie7Compat ||
CKEDITOR . env . ie6Compat ) { var t , u ; q . on ( "mousedown" , function ( a ) { function b ( a ) { a = a . data . $ ; if ( t ) { var c = l . $ . createTextRange ( ) ; try { c . moveToPoint ( a . clientX , a . clientY ) } catch ( d ) { } t . setEndPoint ( 0 > u . compareEndPoints ( "StartToStart" , c ) ? "EndToEnd" : "StartToStart" , c ) ; t . select ( ) } } function c ( ) { q . removeListener ( "mousemove" , b ) ; f . removeListener ( "mouseup" , c ) ; q . removeListener ( "mouseup" , c ) ; t . select ( ) } a = a . data ; if ( a . getTarget ( ) . is ( "html" ) && a . $ . y < q . $ . clientHeight && a . $ . x < q . $ . clientWidth ) { t = l . $ . createTextRange ( ) ; try { t . moveToPoint ( a . $ . clientX ,
a . $ . clientY ) } catch ( d ) { } u = t . duplicate ( ) ; q . on ( "mousemove" , b ) ; f . on ( "mouseup" , c ) ; q . on ( "mouseup" , c ) } } ) } if ( 7 < CKEDITOR . env . version && 11 > CKEDITOR . env . version ) q . on ( "mousedown" , function ( a ) { a . data . getTarget ( ) . is ( "html" ) && ( f . on ( "mouseup" , b ) , q . on ( "mouseup" , b ) ) } ) } } g . attachListener ( g , "selectionchange" , h , c ) ; g . attachListener ( g , "keyup" , k , c ) ; g . attachListener ( g , "keydown" , function ( a ) { var b = this . getSelection ( 1 ) ; d ( b ) && ( b . selectElement ( d ( b ) ) , a . data . preventDefault ( ) ) } , c ) ; g . attachListener ( g , CKEDITOR . env . webkit ? "DOMFocusIn" :
"focus" , function ( ) { c . forceNextSelectionCheck ( ) ; c . selectionChange ( 1 ) } ) ; if ( E && ( CKEDITOR . env . webkit || CKEDITOR . env . gecko ) ) { var x ; g . attachListener ( g , "mousedown" , function ( ) { x = 1 } ) ; g . attachListener ( e . getDocumentElement ( ) , "mouseup" , function ( ) { x && k . call ( c ) ; x = 0 } ) } else g . attachListener ( CKEDITOR . env . ie ? g : e . getDocumentElement ( ) , "mouseup" , k , c ) ; CKEDITOR . env . webkit && g . attachListener ( e , "keydown" , function ( a ) { switch ( a . data . getKey ( ) ) { case 13 : case 33 : case 34 : case 35 : case 36 : case 37 : case 39 : case 8 : case 45 : case 46 : g . hasFocus &&
z ( g ) } } , null , null , - 1 ) ; g . attachListener ( g , "keydown" , D ( c ) , null , null , - 1 ) } ) ; c . on ( "setData" , function ( ) { c . unlockSelection ( ) ; CKEDITOR . env . webkit && b ( ) } ) ; c . on ( "contentDomUnload" , function ( ) { c . unlockSelection ( ) } ) ; if ( CKEDITOR . env . ie9Compat ) c . on ( "beforeDestroy" , b , null , null , 9 ) ; c . on ( "dataReady" , function ( ) { delete c . _ . fakeSelection ; delete c . _ . hiddenSelectionContainer ; c . selectionChange ( 1 ) } ) ; c . on ( "loadSnapshot" , function ( ) { var a = CKEDITOR . dom . walker . nodeType ( CKEDITOR . NODE _ELEMENT ) , b = c . editable ( ) . getLast ( a ) ; b && b . hasAttribute ( "data-cke-hidden-sel" ) &&
y ( g ) } } , null , null , - 1 ) ; g . attachListener ( g , "keydown" , D ( c ) , null , null , - 1 ) } ) ; c . on ( "setData" , function ( ) { c . unlockSelection ( ) ; CKEDITOR . env . webkit && b ( ) } ) ; c . on ( "contentDomUnload" , function ( ) { c . unlockSelection ( ) } ) ; if ( CKEDITOR . env . ie9Compat ) c . on ( "beforeDestroy" , b , null , null , 9 ) ; c . on ( "dataReady" , function ( ) { delete c . _ . fakeSelection ; delete c . _ . hiddenSelectionContainer ; c . selectionChange ( 1 ) } ) ; c . on ( "loadSnapshot" , function ( ) { var a = CKEDITOR . dom . walker . nodeType ( CKEDITOR . NODE _ELEMENT ) , b = c . editable ( ) . getLast ( a ) ; b && b . hasAttribute ( "data-cke-hidden-sel" ) &&
( b . remove ( ) , CKEDITOR . env . gecko && ( a = c . editable ( ) . getFirst ( a ) ) && a . is ( "br" ) && a . getAttribute ( "_moz_editor_bogus_node" ) && a . remove ( ) ) } , null , null , 100 ) ; c . on ( "key" , function ( a ) { if ( "wysiwyg" == c . mode ) { var b = c . getSelection ( ) ; if ( b . isFake ) { var d = C [ a . data . keyCode ] ; if ( d ) return d ( { editor : c , selected : b . getSelectedElement ( ) , selection : b , keyEvent : a } ) } } } ) } ) ; if ( CKEDITOR . env . webkit ) CKEDITOR . on ( "instanceReady" , function ( a ) { var b = a . editor ; b . on ( "selectionChange" , function ( ) { var a = b . editable ( ) , c = a . getCustomData ( "cke-fillingChar" ) ;
c && ( c . getCustomData ( "ready" ) ? ( z ( a ) , a . editor . fire ( "selectionCheck" ) ) : c . setCustomData ( "ready" , 1 ) ) } , null , null , - 1 ) ; b . on ( "beforeSetMode" , function ( ) { z ( b . editable ( ) ) } , null , null , - 1 ) ; b . on ( "getSnapshot" , function ( a ) { a . data && ( a . data = y ( a . data ) ) } , b , null , 20 ) ; b . on ( "toDataFormat" , function ( a ) { a . data . dataValue = y ( a . data . dataValue ) } , null , null , 0 ) } ) ; CKEDITOR . editor . prototype . selectionChange = function ( a ) { ( a ? h : k ) . call ( this ) } ; CKEDITOR . editor . prototype . getSelection = function ( a ) { return ! this . _ . savedSelection && ! this . _ . fakeSelection ||
c && ( c . getCustomData ( "ready" ) ? ( y ( a ) , a . editor . fire ( "selectionCheck" ) ) : c . setCustomData ( "ready" , 1 ) ) } , null , null , - 1 ) ; b . on ( "beforeSetMode" , function ( ) { y ( b . editable ( ) ) } , null , null , - 1 ) ; b . on ( "getSnapshot" , function ( a ) { a . data && ( a . data = v ( a . data ) ) } , b , null , 20 ) ; b . on ( "toDataFormat" , function ( a ) { a . data . dataValue = v ( a . data . dataValue ) } , null , null , 0 ) } ) ; CKEDITOR . editor . prototype . selectionChange = function ( a ) { ( a ? h : k ) . call ( this ) } ; CKEDITOR . editor . prototype . getSelection = function ( a ) { return ! this . _ . savedSelection && ! this . _ . fakeSelection ||
a ? ( a = this . editable ( ) ) && "wysiwyg" == this . mode ? new CKEDITOR . dom . selection ( a ) : null : this . _ . savedSelection || this . _ . fakeSelection } ; CKEDITOR . editor . prototype . lockSelection = function ( a ) { a = a || this . getSelection ( 1 ) ; return a . getType ( ) != CKEDITOR . SELECTION _NONE ? ( ! a . isLocked && a . lock ( ) , this . _ . savedSelection = a , ! 0 ) : ! 1 } ; CKEDITOR . editor . prototype . unlockSelection = function ( a ) { var b = this . _ . savedSelection ; return b ? ( b . unlock ( a ) , delete this . _ . savedSelection , ! 0 ) : ! 1 } ; CKEDITOR . editor . prototype . forceNextSelectionCheck = function ( ) { delete this . _ . selectionPreviousPath } ;
CKEDITOR . dom . document . prototype . getSelection = function ( ) { return new CKEDITOR . dom . selection ( this ) } ; CKEDITOR . dom . range . prototype . select = function ( ) { var a = this . root instanceof CKEDITOR . editable ? this . root . editor . getSelection ( ) : new CKEDITOR . dom . selection ( this . root ) ; a . selectRanges ( [ this ] ) ; return a } ; CKEDITOR . SELECTION _NONE = 1 ; CKEDITOR . SELECTION _TEXT = 2 ; CKEDITOR . SELECTION _ELEMENT = 3 ; CKEDITOR . dom . selection = function ( a ) { if ( a instanceof CKEDITOR . dom . selection ) { var b = a ; a = a . root } var c = a instanceof CKEDITOR . dom . element ;
this . rev = b ? b . rev : J ++ ; this . document = a instanceof CKEDITOR . dom . document ? a : a . getDocument ( ) ; this . root = c ? a : this . document . getBody ( ) ; this . isLocked = 0 ; this . _ = { cache : { } } ; if ( b ) return CKEDITOR . tools . extend ( this . _ . cache , b . _ . cache ) , this . isFake = b . isFake , this . isLocked = b . isLocked , this ; a = this . getNative ( ) ; var d , e ; if ( a ) if ( a . getRangeAt ) d = ( e = a . rangeCount && a . getRangeAt ( 0 ) ) && new CKEDITOR . dom . node ( e . commonAncestorContainer ) ; else { try { e = a . createRange ( ) } catch ( f ) { } d = e && CKEDITOR . dom . element . get ( e . item && e . item ( 0 ) || e . parentElement ( ) ) } if ( ! d ||
d . type != CKEDITOR . NODE _ELEMENT && d . type != CKEDITOR . NODE _TEXT || ! this . root . equals ( d ) && ! this . root . contains ( d ) ) this . _ . cache . type = CKEDITOR . SELECTION _NONE , this . _ . cache . startElement = null , this . _ . cache . selectedElement = null , this . _ . cache . selectedText = "" , this . _ . cache . ranges = new CKEDITOR . dom . rangeList ; return this } ; var M = { img : 1 , hr : 1 , li : 1 , table : 1 , tr : 1 , td : 1 , th : 1 , embed : 1 , object : 1 , ol : 1 , ul : 1 , a : 1 , input : 1 , form : 1 , select : 1 , textarea : 1 , button : 1 , fieldset : 1 , thead : 1 , tfoot : 1 } ; CKEDITOR . tools . extend ( CKEDITOR . dom . selection , { _removeFillingCharSequenceString : y ,
_createFillingCharSequenceNode : e , FILLING _CHAR _SEQUENCE : u } ) ; CKEDITOR . dom . selection . prototype = { getNative : function ( ) { return void 0 !== this . _ . cache . nativeSel ? this . _ . cache . nativeSel : this . _ . cache . nativeSel = p ? this . document . $ . selection : this . document . getWindow ( ) . $ . getSelection ( ) } , getType : p ? function ( ) { var a = this . _ . cache ; if ( a . type ) return a . type ; var b = CKEDITOR . SELECTION _NONE ; try { var c = this . getNative ( ) , d = c . type ; "Text" == d && ( b = CKEDITOR . SELECTION _TEXT ) ; "Control" == d && ( b = CKEDITOR . SELECTION _ELEMENT ) ; c . createRange ( ) . parentElement ( ) &&
( b = CKEDITOR . SELECTION _TEXT ) } catch ( e ) { } return a . type = b } : function ( ) { var a = this . _ . cache ; if ( a . type ) return a . type ; var b = CKEDITOR . SELECTION _TEXT , c = this . getNative ( ) ; if ( ! c || ! c . rangeCount ) b = CKEDITOR . SELECTION _NONE ; else if ( 1 == c . rangeCount ) { var c = c . getRangeAt ( 0 ) , d = c . startContainer ; d == c . endContainer && 1 == d . nodeType && 1 == c . endOffset - c . startOffset && M [ d . childNodes [ c . startOffset ] . nodeName . toLowerCase ( ) ] && ( b = CKEDITOR . SELECTION _ELEMENT ) } return a . type = b } , getRanges : function ( ) { var a = p ? function ( ) { function a ( b ) { return ( new CKEDITOR . dom . node ( b ) ) . getIndex ( ) }
var b = function ( b , c ) { b = b . duplicate ( ) ; b . collapse ( c ) ; var d = b . parentElement ( ) ; if ( ! d . hasChildNodes ( ) ) return { container : d , offset : 0 } ; for ( var e = d . children , f , g , h = b . duplicate ( ) , k = 0 , l = e . length - 1 , t = - 1 , m , p ; k <= l ; ) if ( t = Math . floor ( ( k + l ) / 2 ) , f = e [ t ] , h . moveToElementText ( f ) , m = h . compareEndPoints ( "StartToStart" , b ) , 0 < m ) l = t - 1 ; else if ( 0 > m ) k = t + 1 ; else return { container : d , offset : a ( f ) } ; if ( - 1 == t || t == e . length - 1 && 0 > m ) { h . moveToElementText ( d ) ; h . setEndPoint ( "StartToStart" , b ) ; h = h . text . replace ( /(\r\n|\r)/g , "\n" ) . length ; e = d . childNodes ; if ( ! h ) return f =
e [ e . length - 1 ] , f . nodeType != CKEDITOR . NODE _TEXT ? { container : d , offset : e . length } : { container : f , offset : f . nodeValue . length } ; for ( d = e . length ; 0 < h && 0 < d ; ) g = e [ -- d ] , g . nodeType == CKEDITOR . NODE _TEXT && ( p = g , h -= g . nodeValue . length ) ; return { container : p , offset : - h } } h . collapse ( 0 < m ? ! 0 : ! 1 ) ; h . setEndPoint ( 0 < m ? "StartToStart" : "EndToStart" , b ) ; h = h . text . replace ( /(\r\n|\r)/g , "\n" ) . length ; if ( ! h ) return { container : d , offset : a ( f ) + ( 0 < m ? 0 : 1 ) } ; for ( ; 0 < h ; ) try { g = f [ 0 < m ? "previousSibling" : "nextSibling" ] , g . nodeType == CKEDITOR . NODE _TEXT && ( h -= g . nodeValue . length ,
p = g ) , f = g } catch ( r ) { return { container : d , offset : a ( f ) } } return { container : p , offset : 0 < m ? - h : p . nodeValue . length + h } } ; return function ( ) { var a = this . getNative ( ) , c = a && a . createRange ( ) , d = this . getType ( ) ; if ( ! a ) return [ ] ; if ( d == CKEDITOR . SELECTION _TEXT ) return a = new CKEDITOR . dom . range ( this . root ) , d = b ( c , ! 0 ) , a . setStart ( new CKEDITOR . dom . node ( d . container ) , d . offset ) , d = b ( c ) , a . setEnd ( new CKEDITOR . dom . node ( d . container ) , d . offset ) , a . endContainer . getPosition ( a . startContainer ) & CKEDITOR . POSITION _PRECEDING && a . endOffset <= a . startContainer . getIndex ( ) &&
d . type != CKEDITOR . NODE _ELEMENT && d . type != CKEDITOR . NODE _TEXT || ! this . root . equals ( d ) && ! this . root . contains ( d ) ) this . _ . cache . type = CKEDITOR . SELECTION _NONE , this . _ . cache . startElement = null , this . _ . cache . selectedElement = null , this . _ . cache . selectedText = "" , this . _ . cache . ranges = new CKEDITOR . dom . rangeList ; return this } ; var M = { img : 1 , hr : 1 , li : 1 , table : 1 , tr : 1 , td : 1 , th : 1 , embed : 1 , object : 1 , ol : 1 , ul : 1 , a : 1 , input : 1 , form : 1 , select : 1 , textarea : 1 , button : 1 , fieldset : 1 , thead : 1 , tfoot : 1 } ; CKEDITOR . tools . extend ( CKEDITOR . dom . selection , { _removeFillingCharSequenceString : v ,
_createFillingCharSequenceNode : e , FILLING _CHAR _SEQUENCE : u } ) ; CKEDITOR . dom . selection . prototype = { getNative : function ( ) { return void 0 !== this . _ . cache . nativeSel ? this . _ . cache . nativeSel : this . _ . cache . nativeSel = m ? this . document . $ . selection : this . document . getWindow ( ) . $ . getSelection ( ) } , getType : m ? function ( ) { var a = this . _ . cache ; if ( a . type ) return a . type ; var b = CKEDITOR . SELECTION _NONE ; try { var c = this . getNative ( ) , d = c . type ; "Text" == d && ( b = CKEDITOR . SELECTION _TEXT ) ; "Control" == d && ( b = CKEDITOR . SELECTION _ELEMENT ) ; c . createRange ( ) . parentElement ( ) &&
( b = CKEDITOR . SELECTION _TEXT ) } catch ( e ) { } return a . type = b } : function ( ) { var a = this . _ . cache ; if ( a . type ) return a . type ; var b = CKEDITOR . SELECTION _TEXT , c = this . getNative ( ) ; if ( ! c || ! c . rangeCount ) b = CKEDITOR . SELECTION _NONE ; else if ( 1 == c . rangeCount ) { var c = c . getRangeAt ( 0 ) , d = c . startContainer ; d == c . endContainer && 1 == d . nodeType && 1 == c . endOffset - c . startOffset && M [ d . childNodes [ c . startOffset ] . nodeName . toLowerCase ( ) ] && ( b = CKEDITOR . SELECTION _ELEMENT ) } return a . type = b } , getRanges : function ( ) { var a = m ? function ( ) { function a ( b ) { return ( new CKEDITOR . dom . node ( b ) ) . getIndex ( ) }
var b = function ( b , c ) { b = b . duplicate ( ) ; b . collapse ( c ) ; var d = b . parentElement ( ) ; if ( ! d . hasChildNodes ( ) ) return { container : d , offset : 0 } ; for ( var e = d . children , f , g , h = b . duplicate ( ) , k = 0 , l = e . length - 1 , q = - 1 , m , n ; k <= l ; ) if ( q = Math . floor ( ( k + l ) / 2 ) , f = e [ q ] , h . moveToElementText ( f ) , m = h . compareEndPoints ( "StartToStart" , b ) , 0 < m ) l = q - 1 ; else if ( 0 > m ) k = q + 1 ; else return { container : d , offset : a ( f ) } ; if ( - 1 == q || q == e . length - 1 && 0 > m ) { h . moveToElementText ( d ) ; h . setEndPoint ( "StartToStart" , b ) ; h = h . text . replace ( /(\r\n|\r)/g , "\n" ) . length ; e = d . childNodes ; if ( ! h ) return f =
e [ e . length - 1 ] , f . nodeType != CKEDITOR . NODE _TEXT ? { container : d , offset : e . length } : { container : f , offset : f . nodeValue . length } ; for ( d = e . length ; 0 < h && 0 < d ; ) g = e [ -- d ] , g . nodeType == CKEDITOR . NODE _TEXT && ( n = g , h -= g . nodeValue . length ) ; return { container : n , offset : - h } } h . collapse ( 0 < m ? ! 0 : ! 1 ) ; h . setEndPoint ( 0 < m ? "StartToStart" : "EndToStart" , b ) ; h = h . text . replace ( /(\r\n|\r)/g , "\n" ) . length ; if ( ! h ) return { container : d , offset : a ( f ) + ( 0 < m ? 0 : 1 ) } ; for ( ; 0 < h ; ) try { g = f [ 0 < m ? "previousSibling" : "nextSibling" ] , g . nodeType == CKEDITOR . NODE _TEXT && ( h -= g . nodeValue . length ,
n = g ) , f = g } catch ( r ) { return { container : d , offset : a ( f ) } } return { container : n , offset : 0 < m ? - h : n . nodeValue . length + h } } ; return function ( ) { var a = this . getNative ( ) , c = a && a . createRange ( ) , d = this . getType ( ) ; if ( ! a ) return [ ] ; if ( d == CKEDITOR . SELECTION _TEXT ) return a = new CKEDITOR . dom . range ( this . root ) , d = b ( c , ! 0 ) , a . setStart ( new CKEDITOR . dom . node ( d . container ) , d . offset ) , d = b ( c ) , a . setEnd ( new CKEDITOR . dom . node ( d . container ) , d . offset ) , a . endContainer . getPosition ( a . startContainer ) & CKEDITOR . POSITION _PRECEDING && a . endOffset <= a . startContainer . getIndex ( ) &&
a . collapse ( ) , [ a ] ; if ( d == CKEDITOR . SELECTION _ELEMENT ) { for ( var d = [ ] , e = 0 ; e < c . length ; e ++ ) { for ( var f = c . item ( e ) , g = f . parentNode , h = 0 , a = new CKEDITOR . dom . range ( this . root ) ; h < g . childNodes . length && g . childNodes [ h ] != f ; h ++ ) ; a . setStart ( new CKEDITOR . dom . node ( g ) , h ) ; a . setEnd ( new CKEDITOR . dom . node ( g ) , h + 1 ) ; d . push ( a ) } return d } return [ ] } } ( ) : function ( ) { var a = [ ] , b , c = this . getNative ( ) ; if ( ! c ) return a ; for ( var d = 0 ; d < c . rangeCount ; d ++ ) { var e = c . getRangeAt ( d ) ; b = new CKEDITOR . dom . range ( this . root ) ; b . setStart ( new CKEDITOR . dom . node ( e . startContainer ) ,
e . startOffset ) ; b . setEnd ( new CKEDITOR . dom . node ( e . endContainer ) , e . endOffset ) ; a . push ( b ) } return a } ; return function ( b ) { var c = this . _ . cache , d = c . ranges ; d || ( c . ranges = d = new CKEDITOR . dom . rangeList ( a . call ( this ) ) ) ; return b ? x ( new CKEDITOR . dom . rangeList ( d . slice ( ) ) ) : d } } ( ) , getStartElement : function ( ) { var a = this . _ . cache ; if ( void 0 !== a . startElement ) return a . startElement ; var b ; switch ( this . getType ( ) ) { case CKEDITOR . SELECTION _ELEMENT : return this . getSelectedElement ( ) ; case CKEDITOR . SELECTION _TEXT : var c = this . getRanges ( ) [ 0 ] ;
if ( c ) { if ( c . collapsed ) b = c . startContainer , b . type != CKEDITOR . NODE _ELEMENT && ( b = b . getParent ( ) ) ; else { for ( c . optimize ( ) ; b = c . startContainer , c . startOffset == ( b . getChildCount ? b . getChildCount ( ) : b . getLength ( ) ) && ! b . isBlockBoundary ( ) ; ) c . setStartAfter ( b ) ; b = c . startContainer ; if ( b . type != CKEDITOR . NODE _ELEMENT ) return b . getParent ( ) ; if ( ( b = b . getChild ( c . startOffset ) ) && b . type == CKEDITOR . NODE _ELEMENT ) for ( c = b . getFirst ( ) ; c && c . type == CKEDITOR . NODE _ELEMENT ; ) b = c , c = c . getFirst ( ) ; else b = c . startContainer } b = b . $ } } return a . startElement = b ?
new CKEDITOR . dom . element ( b ) : null } , getSelectedElement : function ( ) { var a = this . _ . cache ; if ( void 0 !== a . selectedElement ) return a . selectedElement ; var b = this , c = CKEDITOR . tools . tryThese ( function ( ) { return b . getNative ( ) . createRange ( ) . item ( 0 ) } , function ( ) { for ( var a = b . getRanges ( ) [ 0 ] . clone ( ) , c , d , e = 2 ; e && ! ( ( c = a . getEnclosedNode ( ) ) && c . type == CKEDITOR . NODE _ELEMENT && M [ c . getName ( ) ] && ( d = c ) ) ; e -- ) a . shrink ( CKEDITOR . SHRINK _ELEMENT ) ; return d && d . $ } ) ; return a . selectedElement = c ? new CKEDITOR . dom . element ( c ) : null } , getSelectedText : function ( ) { var a =
this . _ . cache ; if ( void 0 !== a . selectedText ) return a . selectedText ; var b = this . getNative ( ) , b = p ? "Control" == b . type ? "" : b . createRange ( ) . text : b . toString ( ) ; return a . selectedText = b } , lock : function ( ) { this . getRanges ( ) ; this . getStartElement ( ) ; this . getSelectedElement ( ) ; this . getSelectedText ( ) ; this . _ . cache . nativeSel = null ; this . isLocked = 1 } , unlock : function ( a ) { if ( this . isLocked ) { if ( a ) var b = this . getSelectedElement ( ) , c = this . getRanges ( ) , e = this . isFake ; this . isLocked = 0 ; this . reset ( ) ; a && ( a = b || c [ 0 ] && c [ 0 ] . getCommonAncestor ( ) ) && a . getAscendant ( "body" ,
this . _ . cache ; if ( void 0 !== a . selectedText ) return a . selectedText ; var b = this . getNative ( ) , b = m ? "Control" == b . type ? "" : b . createRange ( ) . text : b . toString ( ) ; return a . selectedText = b } , lock : function ( ) { this . getRanges ( ) ; this . getStartElement ( ) ; this . getSelectedElement ( ) ; this . getSelectedText ( ) ; this . _ . cache . nativeSel = null ; this . isLocked = 1 } , unlock : function ( a ) { if ( this . isLocked ) { if ( a ) var b = this . getSelectedElement ( ) , c = this . getRanges ( ) , e = this . isFake ; this . isLocked = 0 ; this . reset ( ) ; a && ( a = b || c [ 0 ] && c [ 0 ] . getCommonAncestor ( ) ) && a . getAscendant ( "body" ,
1 ) && ( d ( c ) ? f . call ( this , c ) : e ? this . fake ( b ) : b ? this . selectElement ( b ) : this . selectRanges ( c ) ) } } , reset : function ( ) { this . _ . cache = { } ; this . isFake = 0 ; var a = this . root . editor ; if ( a && a . _ . fakeSelection ) if ( this . rev == a . _ . fakeSelection . rev ) { delete a . _ . fakeSelection ; var b = a . _ . hiddenSelectionContainer ; if ( b ) { var c = a . checkDirty ( ) ; a . fire ( "lockSnapshot" ) ; b . remove ( ) ; a . fire ( "unlockSnapshot" ) ; ! c && a . resetDirty ( ) } delete a . _ . hiddenSelectionContainer } else CKEDITOR . warn ( "selection-fake-reset" ) ; this . rev = J ++ } , selectElement : function ( a ) { var b =
new CKEDITOR . dom . range ( this . root ) ; b . setStartBefore ( a ) ; b . setEndAfter ( a ) ; this . selectRanges ( [ b ] ) } , selectRanges : function ( a ) { var b = this . root . editor , c = b && b . _ . hiddenSelectionContainer ; this . reset ( ) ; if ( c ) for ( var c = this . root , g , h = 0 ; h < a . length ; ++ h ) g = a [ h ] , g . endContainer . equals ( c ) && ( g . endOffset = Math . min ( g . endOffset , c . getChildCount ( ) ) ) ; if ( a . length ) if ( this . isLocked ) { var k = CKEDITOR . document . getActive ( ) ; this . unlock ( ) ; this . selectRanges ( a ) ; this . lock ( ) ; k && ! k . equals ( this . root ) && k . focus ( ) } else { var n ; a : { var m , v ; if ( 1 == a . length &&
! ( v = a [ 0 ] ) . collapsed && ( n = v . getEnclosedNode ( ) ) && n . type == CKEDITOR . NODE _ELEMENT && ( v = v . clone ( ) , v . shrink ( CKEDITOR . SHRINK _ELEMENT , ! 0 ) , ( m = v . getEnclosedNode ( ) ) && m . type == CKEDITOR . NODE _ELEMENT && ( n = m ) , "false" == n . getAttribute ( "contenteditable" ) ) ) break a ; n = void 0 } if ( n ) this . fake ( n ) ; else if ( b && b . plugins . tableselection && CKEDITOR . plugins . tableselection . isSupportedEnvironment && d ( a ) && ! l ) f . call ( this , a ) ; else { if ( p ) { m = CKEDITOR . dom . walker . whitespaces ( ! 0 ) ; n = /\ufeff|\u00a0/ ; v = { table : 1 , tbody : 1 , tr : 1 } ; 1 < a . length && ( b = a [ a . length -
1 ] , a [ 0 ] . setEnd ( b . endContainer , b . endOffset ) ) ; b = a [ 0 ] ; a = b . collapsed ; var B , G , I ; if ( ( c = b . getEnclosedNode ( ) ) && c . type == CKEDITOR . NODE _ELEMENT && c . getName ( ) in M && ( ! c . is ( "a" ) || ! c . getText ( ) ) ) try { I = c . $ . createControlRange ( ) ; I . addElement ( c . $ ) ; I . select ( ) ; return } catch ( q ) { } if ( b . startContainer . type == CKEDITOR . NODE _ELEMENT && b . startContainer . getName ( ) in v || b . endContainer . type == CKEDITOR . NODE _ELEMENT && b . endContainer . getName ( ) in v ) b . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) , a = b . collapsed ; I = b . createBookmark ( ) ; v = I . startNode ; a || ( k = I . endNode ) ;
I = b . document . $ . body . createTextRange ( ) ; I . moveToElementText ( v . $ ) ; I . moveStart ( "character" , 1 ) ; k ? ( n = b . document . $ . body . createTextRange ( ) , n . moveToElementText ( k . $ ) , I . setEndPoint ( "EndToEnd" , n ) , I . moveEnd ( "character" , - 1 ) ) : ( B = v . getNext ( m ) , G = v . hasAscendant ( "pre" ) , B = ! ( B && B . getText && B . getText ( ) . match ( n ) ) && ( G || ! v . hasPrevious ( ) || v . getPrevious ( ) . is && v . getPrevious ( ) . is ( "br" ) ) , G = b . document . createElement ( "span" ) , G . setHtml ( "\x26#65279;" ) , G . insertBefore ( v ) , B && b . document . createText ( " " ) . insertBefore ( v ) ) ; b . setStartBefore ( v ) ;
v . remove ( ) ; a ? ( B ? ( I . moveStart ( "character" , - 1 ) , I . select ( ) , b . document . $ . selection . clear ( ) ) : I . select ( ) , b . moveToPosition ( G , CKEDITOR . POSITION _BEFORE _START ) , G . remove ( ) ) : ( b . setEndBefore ( k ) , k . remove ( ) , I . select ( ) ) } else { k = this . getNative ( ) ; if ( ! k ) return ; this . removeAllRanges ( ) ; for ( I = 0 ; I < a . length ; I ++ ) { if ( I < a . length - 1 && ( B = a [ I ] , G = a [ I + 1 ] , n = B . clone ( ) , n . setStart ( B . endContainer , B . endOffset ) , n . setEnd ( G . startContainer , G . startOffset ) , ! n . collapsed && ( n . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) , b = n . getCommonAncestor ( ) , n = n . getEnclosedNode ( ) ,
b . isReadOnly ( ) || n && n . isReadOnly ( ) ) ) ) { G . setStart ( B . startContainer , B . startOffset ) ; a . splice ( I -- , 1 ) ; continue } b = a [ I ] ; G = this . document . $ . createRange ( ) ; b . collapsed && CKEDITOR . env . webkit && r ( b ) && ( n = e ( this . root ) , b . insertNode ( n ) , ( B = n . getNext ( ) ) && ! n . getPrevious ( ) && B . type == CKEDITOR . NODE _ELEMENT && "br" == B . getName ( ) ? ( z ( this . root ) , b . moveToPosition ( B , CKEDITOR . POSITION _BEFORE _START ) ) : b . moveToPosition ( n , CKEDITOR . POSITION _AFTER _END ) ) ; G . setStart ( b . startContainer . $ , b . startOffset ) ; try { G . setEnd ( b . endContainer . $ , b . endOffset ) } catch ( y ) { if ( 0 <=
y . toString ( ) . indexOf ( "NS_ERROR_ILLEGAL_VALUE" ) ) b . collapse ( 1 ) , G . setEnd ( b . endContainer . $ , b . endOffset ) ; else throw y ; } k . addRange ( G ) } } this . reset ( ) ; this . root . fire ( "selectionchange" ) } } } , fake : function ( a , b ) { var c = this . root . editor ; void 0 === b && a . hasAttribute ( "aria-label" ) && ( b = a . getAttribute ( "aria-label" ) ) ; this . reset ( ) ; A ( c , b ) ; var d = this . _ . cache , e = new CKEDITOR . dom . range ( this . root ) ; e . setStartBefore ( a ) ; e . setEndAfter ( a ) ; d . ranges = new CKEDITOR . dom . rangeList ( e ) ; d . selectedElement = d . startElement = a ; d . type = CKEDITOR . SELECTION _ELEMENT ;
new CKEDITOR . dom . range ( this . root ) ; b . setStartBefore ( a ) ; b . setEndAfter ( a ) ; this . selectRanges ( [ b ] ) } , selectRanges : function ( a ) { var b = this . root . editor , c = b && b . _ . hiddenSelectionContainer ; this . reset ( ) ; if ( c ) for ( var c = this . root , g , h = 0 ; h < a . length ; ++ h ) g = a [ h ] , g . endContainer . equals ( c ) && ( g . endOffset = Math . min ( g . endOffset , c . getChildCount ( ) ) ) ; if ( a . length ) if ( this . isLocked ) { var k = CKEDITOR . document . getActive ( ) ; this . unlock ( ) ; this . selectRanges ( a ) ; this . lock ( ) ; k && ! k . equals ( this . root ) && k . focus ( ) } else { var p ; a : { var n , w ; if ( 1 == a . length &&
! ( w = a [ 0 ] ) . collapsed && ( p = w . getEnclosedNode ( ) ) && p . type == CKEDITOR . NODE _ELEMENT && ( w = w . clone ( ) , w . shrink ( CKEDITOR . SHRINK _ELEMENT , ! 0 ) , ( n = w . getEnclosedNode ( ) ) && n . type == CKEDITOR . NODE _ELEMENT && ( p = n ) , "false" == p . getAttribute ( "contenteditable" ) ) ) break a ; p = void 0 } if ( p ) this . fake ( p ) ; else if ( b && b . plugins . tableselection && CKEDITOR . plugins . tableselection . isSupportedEnvironment && d ( a ) && ! l ) f . call ( this , a ) ; else { if ( m ) { n = CKEDITOR . dom . walker . whitespaces ( ! 0 ) ; p = /\ufeff|\u00a0/ ; w = { table : 1 , tbody : 1 , tr : 1 } ; 1 < a . length && ( b = a [ a . length -
1 ] , a [ 0 ] . setEnd ( b . endContainer , b . endOffset ) ) ; b = a [ 0 ] ; a = b . collapsed ; var B , G , I ; if ( ( c = b . getEnclosedNode ( ) ) && c . type == CKEDITOR . NODE _ELEMENT && c . getName ( ) in M && ( ! c . is ( "a" ) || ! c . getText ( ) ) ) try { I = c . $ . createControlRange ( ) ; I . addElement ( c . $ ) ; I . select ( ) ; return } catch ( v ) { } if ( b . startContainer . type == CKEDITOR . NODE _ELEMENT && b . startContainer . getName ( ) in w || b . endContainer . type == CKEDITOR . NODE _ELEMENT && b . endContainer . getName ( ) in w ) b . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) , a = b . collapsed ; I = b . createBookmark ( ) ; w = I . startNode ; a || ( k = I . endNode ) ;
I = b . document . $ . body . createTextRange ( ) ; I . moveToElementText ( w . $ ) ; I . moveStart ( "character" , 1 ) ; k ? ( p = b . document . $ . body . createTextRange ( ) , p . moveToElementText ( k . $ ) , I . setEndPoint ( "EndToEnd" , p ) , I . moveEnd ( "character" , - 1 ) ) : ( B = w . getNext ( n ) , G = w . hasAscendant ( "pre" ) , B = ! ( B && B . getText && B . getText ( ) . match ( p ) ) && ( G || ! w . hasPrevious ( ) || w . getPrevious ( ) . is && w . getPrevious ( ) . is ( "br" ) ) , G = b . document . createElement ( "span" ) , G . setHtml ( "\x26#65279;" ) , G . insertBefore ( w ) , B && b . document . createText ( " " ) . insertBefore ( w ) ) ; b . setStartBefore ( w ) ;
w . remove ( ) ; a ? ( B ? ( I . moveStart ( "character" , - 1 ) , I . select ( ) , b . document . $ . selection . clear ( ) ) : I . select ( ) , b . moveToPosition ( G , CKEDITOR . POSITION _BEFORE _START ) , G . remove ( ) ) : ( b . setEndBefore ( k ) , k . remove ( ) , I . select ( ) ) } else { k = this . getNative ( ) ; if ( ! k ) return ; this . removeAllRanges ( ) ; for ( I = 0 ; I < a . length ; I ++ ) { if ( I < a . length - 1 && ( B = a [ I ] , G = a [ I + 1 ] , p = B . clone ( ) , p . setStart ( B . endContainer , B . endOffset ) , p . setEnd ( G . startContainer , G . startOffset ) , ! p . collapsed && ( p . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) , b = p . getCommonAncestor ( ) , p = p . getEnclosedNode ( ) ,
b . isReadOnly ( ) || p && p . isReadOnly ( ) ) ) ) { G . setStart ( B . startContainer , B . startOffset ) ; a . splice ( I -- , 1 ) ; continue } b = a [ I ] ; G = this . document . $ . createRange ( ) ; b . collapsed && CKEDITOR . env . webkit && r ( b ) && ( p = e ( this . root ) , b . insertNode ( p ) , ( B = p . getNext ( ) ) && ! p . getPrevious ( ) && B . type == CKEDITOR . NODE _ELEMENT && "br" == B . getName ( ) ? ( y ( this . root ) , b . moveToPosition ( B , CKEDITOR . POSITION _BEFORE _START ) ) : b . moveToPosition ( p , CKEDITOR . POSITION _AFTER _END ) ) ; G . setStart ( b . startContainer . $ , b . startOffset ) ; try { G . setEnd ( b . endContainer . $ , b . endOffset ) } catch ( t ) { if ( 0 <=
t . toString ( ) . indexOf ( "NS_ERROR_ILLEGAL_VALUE" ) ) b . collapse ( 1 ) , G . setEnd ( b . endContainer . $ , b . endOffset ) ; else throw t ; } k . addRange ( G ) } } this . reset ( ) ; this . root . fire ( "selectionchange" ) } } } , fake : function ( a , b ) { var c = this . root . editor ; void 0 === b && a . hasAttribute ( "aria-label" ) && ( b = a . getAttribute ( "aria-label" ) ) ; this . reset ( ) ; A ( c , b ) ; var d = this . _ . cache , e = new CKEDITOR . dom . range ( this . root ) ; e . setStartBefore ( a ) ; e . setEndAfter ( a ) ; d . ranges = new CKEDITOR . dom . rangeList ( e ) ; d . selectedElement = d . startElement = a ; d . type = CKEDITOR . SELECTION _ELEMENT ;
d . selectedText = d . nativeSel = null ; this . isFake = 1 ; this . rev = J ++ ; c . _ . fakeSelection = this ; this . root . fire ( "selectionchange" ) } , isHidden : function ( ) { var a = this . getCommonAncestor ( ) ; a && a . type == CKEDITOR . NODE _TEXT && ( a = a . getParent ( ) ) ; return ! ( ! a || ! a . data ( "cke-hidden-sel" ) ) } , isInTable : function ( a ) { return d ( this . getRanges ( ) , a ) } , isCollapsed : function ( ) { var a = this . getRanges ( ) ; return 1 === a . length && a [ 0 ] . collapsed } , createBookmarks : function ( a ) { a = this . getRanges ( ) . createBookmarks ( a ) ; this . isFake && ( a . isFake = 1 ) ; return a } , createBookmarks2 : function ( a ) { a =
this . getRanges ( ) . createBookmarks2 ( a ) ; this . isFake && ( a . isFake = 1 ) ; return a } , selectBookmarks : function ( a ) { for ( var b = [ ] , c , e = 0 ; e < a . length ; e ++ ) { var f = new CKEDITOR . dom . range ( this . root ) ; f . moveToBookmark ( a [ e ] ) ; b . push ( f ) } a . isFake && ( c = d ( b ) ? b [ 0 ] . _getTableElement ( ) : b [ 0 ] . getEnclosedNode ( ) , c && c . type == CKEDITOR . NODE _ELEMENT || ( CKEDITOR . warn ( "selection-not-fake" ) , a . isFake = 0 ) ) ; a . isFake && ! d ( b ) ? this . fake ( c ) : this . selectRanges ( b ) ; return this } , getCommonAncestor : function ( ) { var a = this . getRanges ( ) ; return a . length ? a [ 0 ] . startContainer . getCommonAncestor ( a [ a . length -
1 ] . endContainer ) : null } , scrollIntoView : function ( ) { this . type != CKEDITOR . SELECTION _NONE && this . getRanges ( ) [ 0 ] . scrollIntoView ( ) } , removeAllRanges : function ( ) { if ( this . getType ( ) != CKEDITOR . SELECTION _NONE ) { var a = this . getNative ( ) ; try { a && a [ p ? "empty" : "removeAllRanges" ] ( ) } catch ( b ) { } this . reset ( ) } } } } ) ( ) ; "use strict" ; CKEDITOR . STYLE _BLOCK = 1 ; CKEDITOR . STYLE _INLINE = 2 ; CKEDITOR . STYLE _OBJECT = 3 ;
1 ] . endContainer ) : null } , scrollIntoView : function ( ) { this . type != CKEDITOR . SELECTION _NONE && this . getRanges ( ) [ 0 ] . scrollIntoView ( ) } , removeAllRanges : function ( ) { if ( this . getType ( ) != CKEDITOR . SELECTION _NONE ) { var a = this . getNative ( ) ; try { a && a [ m ? "empty" : "removeAllRanges" ] ( ) } catch ( b ) { } this . reset ( ) } } } } ) ( ) ; "use strict" ; CKEDITOR . STYLE _BLOCK = 1 ; CKEDITOR . STYLE _INLINE = 2 ; CKEDITOR . STYLE _OBJECT = 3 ;
( function ( ) { function a ( a , b ) { for ( var c , d ; ( a = a . getParent ( ) ) && ! a . equals ( b ) ; ) if ( a . getAttribute ( "data-nostyle" ) ) c = a ; else if ( ! d ) { var e = a . getAttribute ( "contentEditable" ) ; "false" == e ? c = a : "true" == e && ( d = 1 ) } return c } function d ( a , b , c , d ) { return ( a . getPosition ( b ) | d ) == d && ( ! c . childRule || c . childRule ( a ) ) } function b ( c ) { var e = c . document ; if ( c . collapsed ) e = J ( this , e ) , c . insertNode ( e ) , c . moveToPosition ( e , CKEDITOR . POSITION _BEFORE _END ) ; else { var g = this . element , h = this . _ . definition , k , l = h . ignoreReadonly , m = l || h . includeReadonly ; null ==
m && ( m = c . root . getCustomData ( "cke_includeReadonly" ) ) ; var p = CKEDITOR . dtd [ g ] ; p || ( k = ! 0 , p = CKEDITOR . dtd . span ) ; c . enlarge ( CKEDITOR . ENLARGE _INLINE , 1 ) ; c . trim ( ) ; var r = c . createBookmark ( ) , t = r . startNode , y = r . endNode , q = t , u ; if ( ! l ) { var x = c . getCommonAncestor ( ) , l = a ( t , x ) , x = a ( y , x ) ; l && ( q = l . getNextSourceNode ( ! 0 ) ) ; x && ( y = x ) } for ( q . getPosition ( y ) == CKEDITOR . POSITION _FOLLOWING && ( q = 0 ) ; q ; ) { l = ! 1 ; if ( q . equals ( y ) ) q = null , l = ! 0 ; else { var z = q . type == CKEDITOR . NODE _ELEMENT ? q . getName ( ) : null , x = z && "false" == q . getAttribute ( "contentEditable" ) , A = z &&
q . getAttribute ( "data-nostyle" ) ; if ( z && q . data ( "cke-bookmark" ) ) { q = q . getNextSourceNode ( ! 0 ) ; continue } if ( x && m && CKEDITOR . dtd . $block [ z ] ) for ( var E = q , C = f ( E ) , F = void 0 , H = C . length , K = 0 , E = H && new CKEDITOR . dom . range ( E . getDocument ( ) ) ; K < H ; ++ K ) { var F = C [ K ] , L = CKEDITOR . filter . instances [ F . data ( "cke-filter" ) ] ; if ( L ? L . check ( this ) : 1 ) E . selectNodeContents ( F ) , b . call ( this , E ) } C = z ? ! p [ z ] || A ? 0 : x && ! m ? 0 : d ( q , y , h , P ) : 1 ; if ( C ) if ( F = q . getParent ( ) , C = h , H = g , K = k , ! F || ! ( F . getDtd ( ) || CKEDITOR . dtd . span ) [ H ] && ! K || C . parentRule && ! C . parentRule ( F ) ) l = ! 0 ; else { if ( u ||
z && CKEDITOR . dtd . $removeEmpty [ z ] && ( q . getPosition ( y ) | P ) != P || ( u = c . clone ( ) , u . setStartBefore ( q ) ) , z = q . type , z == CKEDITOR . NODE _TEXT || x || z == CKEDITOR . NODE _ELEMENT && ! q . getChildCount ( ) ) { for ( var z = q , M ; ( l = ! z . getNext ( w ) ) && ( M = z . getParent ( ) , p [ M . getName ( ) ] ) && d ( M , t , h , O ) ; ) z = M ; u . setEndAfter ( z ) } } else l = ! 0 ; q = q . getNextSourceNode ( A || x ) } if ( l && u && ! u . collapsed ) { for ( var l = J ( this , e ) , x = l . hasAttributes ( ) , A = u . getCommonAncestor ( ) , z = { } , C = { } , F = { } , H = { } , U , R , aa ; l && A ; ) { if ( A . getName ( ) == g ) { for ( U in h . attributes ) ! H [ U ] && ( aa = A . getAttribute ( R ) ) &&
( l . getAttribute ( U ) == aa ? C [ U ] = 1 : H [ U ] = 1 ) ; for ( R in h . styles ) ! F [ R ] && ( aa = A . getStyle ( R ) ) && ( l . getStyle ( R ) == aa ? z [ R ] = 1 : F [ R ] = 1 ) } A = A . getParent ( ) } for ( U in C ) l . removeAttribute ( U ) ; for ( R in z ) l . removeStyle ( R ) ; x && ! l . hasAttributes ( ) && ( l = null ) ; l ? ( u . extractContents ( ) . appendTo ( l ) , u . insertNode ( l ) , D . call ( this , l ) , l . mergeSiblings ( ) , CKEDITOR . env . ie || l . $ . normalize ( ) ) : ( l = new CKEDITOR . dom . element ( "span" ) , u . extractContents ( ) . appendTo ( l ) , u . insertNode ( l ) , D . call ( this , l ) , l . remove ( ! 0 ) ) ; u = null } } c . moveToBookmark ( r ) ; c . shrink ( CKEDITOR . SHRINK _TEXT ) ;
c . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) } } function c ( a ) { function b ( ) { for ( var a = new CKEDITOR . dom . elementPath ( d . getParent ( ) ) , c = new CKEDITOR . dom . elementPath ( p . getParent ( ) ) , e = null , f = null , g = 0 ; g < a . elements . length ; g ++ ) { var h = a . elements [ g ] ; if ( h == a . block || h == a . blockLimit ) break ; r . checkElementRemovable ( h , ! 0 ) && ( e = h ) } for ( g = 0 ; g < c . elements . length ; g ++ ) { h = c . elements [ g ] ; if ( h == c . block || h == c . blockLimit ) break ; r . checkElementRemovable ( h , ! 0 ) && ( f = h ) } f && p . breakParent ( f ) ; e && d . breakParent ( e ) } a . enlarge ( CKEDITOR . ENLARGE _INLINE , 1 ) ; var c =
m && ( m = c . root . getCustomData ( "cke_includeReadonly" ) ) ; var n = CKEDITOR . dtd [ g ] ; n || ( k = ! 0 , n = CKEDITOR . dtd . span ) ; c . enlarge ( CKEDITOR . ENLARGE _INLINE , 1 ) ; c . trim ( ) ; var r = c . createBookmark ( ) , v = r . startNode , t = r . endNode , q = v , u ; if ( ! l ) { var x = c . getCommonAncestor ( ) , l = a ( v , x ) , x = a ( t , x ) ; l && ( q = l . getNextSourceNode ( ! 0 ) ) ; x && ( t = x ) } for ( q . getPosition ( t ) == CKEDITOR . POSITION _FOLLOWING && ( q = 0 ) ; q ; ) { l = ! 1 ; if ( q . equals ( t ) ) q = null , l = ! 0 ; else { var y = q . type == CKEDITOR . NODE _ELEMENT ? q . getName ( ) : null , x = y && "false" == q . getAttribute ( "contentEditable" ) , A = y &&
q . getAttribute ( "data-nostyle" ) ; if ( y && q . data ( "cke-bookmark" ) ) { q = q . getNextSourceNode ( ! 0 ) ; continue } if ( x && m && CKEDITOR . dtd . $block [ y ] ) for ( var C = q , E = f ( C ) , F = void 0 , H = E . length , K = 0 , C = H && new CKEDITOR . dom . range ( C . getDocument ( ) ) ; K < H ; ++ K ) { var F = E [ K ] , L = CKEDITOR . filter . instances [ F . data ( "cke-filter" ) ] ; if ( L ? L . check ( this ) : 1 ) C . selectNodeContents ( F ) , b . call ( this , C ) } E = y ? ! n [ y ] || A ? 0 : x && ! m ? 0 : d ( q , t , h , P ) : 1 ; if ( E ) if ( F = q . getParent ( ) , E = h , H = g , K = k , ! F || ! ( F . getDtd ( ) || CKEDITOR . dtd . span ) [ H ] && ! K || E . parentRule && ! E . parentRule ( F ) ) l = ! 0 ; else { if ( u ||
y && CKEDITOR . dtd . $removeEmpty [ y ] && ( q . getPosition ( t ) | P ) != P || ( u = c . clone ( ) , u . setStartBefore ( q ) ) , y = q . type , y == CKEDITOR . NODE _TEXT || x || y == CKEDITOR . NODE _ELEMENT && ! q . getChildCount ( ) ) { for ( var y = q , M ; ( l = ! y . getNext ( z ) ) && ( M = y . getParent ( ) , n [ M . getName ( ) ] ) && d ( M , v , h , O ) ; ) y = M ; u . setEndAfter ( y ) } } else l = ! 0 ; q = q . getNextSourceNode ( A || x ) } if ( l && u && ! u . collapsed ) { for ( var l = J ( this , e ) , x = l . hasAttributes ( ) , A = u . getCommonAncestor ( ) , y = { } , E = { } , F = { } , H = { } , U , R , aa ; l && A ; ) { if ( A . getName ( ) == g ) { for ( U in h . attributes ) ! H [ U ] && ( aa = A . getAttribute ( R ) ) &&
( l . getAttribute ( U ) == aa ? E [ U ] = 1 : H [ U ] = 1 ) ; for ( R in h . styles ) ! F [ R ] && ( aa = A . getStyle ( R ) ) && ( l . getStyle ( R ) == aa ? y [ R ] = 1 : F [ R ] = 1 ) } A = A . getParent ( ) } for ( U in E ) l . removeAttribute ( U ) ; for ( R in y ) l . removeStyle ( R ) ; x && ! l . hasAttributes ( ) && ( l = null ) ; l ? ( u . extractContents ( ) . appendTo ( l ) , u . insertNode ( l ) , D . call ( this , l ) , l . mergeSiblings ( ) , CKEDITOR . env . ie || l . $ . normalize ( ) ) : ( l = new CKEDITOR . dom . element ( "span" ) , u . extractContents ( ) . appendTo ( l ) , u . insertNode ( l ) , D . call ( this , l ) , l . remove ( ! 0 ) ) ; u = null } } c . moveToBookmark ( r ) ; c . shrink ( CKEDITOR . SHRINK _TEXT ) ;
c . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) } } function c ( a ) { function b ( ) { for ( var a = new CKEDITOR . dom . elementPath ( d . getParent ( ) ) , c = new CKEDITOR . dom . elementPath ( n . getParent ( ) ) , e = null , f = null , g = 0 ; g < a . elements . length ; g ++ ) { var h = a . elements [ g ] ; if ( h == a . block || h == a . blockLimit ) break ; r . checkElementRemovable ( h , ! 0 ) && ( e = h ) } for ( g = 0 ; g < c . elements . length ; g ++ ) { h = c . elements [ g ] ; if ( h == c . block || h == c . blockLimit ) break ; r . checkElementRemovable ( h , ! 0 ) && ( f = h ) } f && n . breakParent ( f ) ; e && d . breakParent ( e ) } a . enlarge ( CKEDITOR . ENLARGE _INLINE , 1 ) ; var c =
a . createBookmark ( ) , d = c . startNode , e = this . _ . definition . alwaysRemoveElement ; if ( a . collapsed ) { for ( var f = new CKEDITOR . dom . elementPath ( d . getParent ( ) , a . root ) , g , h = 0 , k ; h < f . elements . length && ( k = f . elements [ h ] ) && k != f . block && k != f . blockLimit ; h ++ ) if ( this . checkElementRemovable ( k ) ) { var m ; ! e && a . collapsed && ( a . checkBoundaryOfElement ( k , CKEDITOR . END ) || ( m = a . checkBoundaryOfElement ( k , CKEDITOR . START ) ) ) ? ( g = k , g . match = m ? "start" : "end" ) : ( k . mergeSiblings ( ) , k . is ( this . element ) ? A . call ( this , k ) : x ( k , l ( this ) [ k . getName ( ) ] ) ) } if ( g ) { e = d ; for ( h =
0 ; ; h ++ ) { k = f . elements [ h ] ; if ( k . equals ( g ) ) break ; else if ( k . match ) continue ; else k = k . clone ( ) ; k . append ( e ) ; e = k } e [ "start" == g . match ? "insertBefore" : "insertAfter" ] ( g ) } } else { var p = c . endNode , r = this ; b ( ) ; for ( f = d ; ! f . equals ( p ) ; ) g = f . getNextSourceNode ( ) , f . type == CKEDITOR . NODE _ELEMENT && this . checkElementRemovable ( f ) && ( f . getName ( ) == this . element ? A . call ( this , f ) : x ( f , l ( this ) [ f . getName ( ) ] ) , g . type == CKEDITOR . NODE _ELEMENT && g . contains ( d ) && ( b ( ) , g = d . getNext ( ) ) ) , f = g } a . moveToBookmark ( c ) ; a . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) } function f ( a ) { var b =
0 ; ; h ++ ) { k = f . elements [ h ] ; if ( k . equals ( g ) ) break ; else if ( k . match ) continue ; else k = k . clone ( ) ; k . append ( e ) ; e = k } e [ "start" == g . match ? "insertBefore" : "insertAfter" ] ( g ) } } else { var n = c . endNode , r = this ; b ( ) ; for ( f = d ; ! f . equals ( n ) ; ) g = f . getNextSourceNode ( ) , f . type == CKEDITOR . NODE _ELEMENT && this . checkElementRemovable ( f ) && ( f . getName ( ) == this . element ? A . call ( this , f ) : x ( f , l ( this ) [ f . getName ( ) ] ) , g . type == CKEDITOR . NODE _ELEMENT && g . contains ( d ) && ( b ( ) , g = d . getNext ( ) ) ) , f = g } a . moveToBookmark ( c ) ; a . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) } function f ( a ) { var b =
[ ] ; a . forEach ( function ( a ) { if ( "true" == a . getAttribute ( "contenteditable" ) ) return b . push ( a ) , ! 1 } , CKEDITOR . NODE _ELEMENT , ! 0 ) ; return b } function h ( a ) { var b = a . getEnclosedNode ( ) || a . getCommonAncestor ( ! 1 , ! 0 ) ; ( a = ( new CKEDITOR . dom . elementPath ( b , a . root ) ) . contains ( this . element , 1 ) ) && ! a . isReadOnly ( ) && u ( a , this ) } function k ( a ) { var b = a . getCommonAncestor ( ! 0 , ! 0 ) ; if ( a = ( new CKEDITOR . dom . elementPath ( b , a . root ) ) . contains ( this . element , 1 ) ) { var b = this . _ . definition , c = b . attributes ; if ( c ) for ( var d in c ) a . removeAttribute ( d , c [ d ] ) ; if ( b . styles ) for ( var e in b . styles ) b . styles . hasOwnProperty ( e ) &&
a . removeStyle ( e ) } } function g ( a ) { var b = a . createBookmark ( ! 0 ) , c = a . createIterator ( ) ; c . enforceRealBlocks = ! 0 ; this . _ . enterMode && ( c . enlargeBr = this . _ . enterMode != CKEDITOR . ENTER _BR ) ; for ( var d , e = a . document , f ; d = c . getNextParagraph ( ) ; ) ! d . isReadOnly ( ) && ( c . activeFilter ? c . activeFilter . check ( this ) : 1 ) && ( f = J ( this , e , d ) , r ( d , f ) ) ; a . moveToBookmark ( b ) } function m ( a ) { var b = a . createBookmark ( 1 ) , c = a . createIterator ( ) ; c . enforceRealBlocks = ! 0 ; c . enlargeBr = this . _ . enterMode != CKEDITOR . ENTER _BR ; for ( var d , e ; d = c . getNextParagraph ( ) ; ) this . checkElementRemovable ( d ) &&
( d . is ( "pre" ) ? ( ( e = this . _ . enterMode == CKEDITOR . ENTER _BR ? null : a . document . createElement ( this . _ . enterMode == CKEDITOR . ENTER _P ? "p" : "div" ) ) && d . copyAttributes ( e ) , r ( d , e ) ) : A . call ( this , d ) ) ; a . moveToBookmark ( b ) } function r ( a , b ) { var c = ! b ; c && ( b = a . getDocument ( ) . createElement ( "div" ) , a . copyAttributes ( b ) ) ; var d = b && b . is ( "pre" ) , f = a . is ( "pre" ) , g = ! d && f ; if ( d && ! f ) { f = b ; ( g = a . getBogus ( ) ) && g . remove ( ) ; g = a . getHtml ( ) ; g = z ( g , /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g , "" ) ; g = g . replace ( /[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi , "$1" ) ; g = g . replace ( /([ \t\n\r]+| )/g ,
" " ) ; g = g . replace ( /<br\b[^>]*>/gi , "\n" ) ; if ( CKEDITOR . env . ie ) { var h = a . getDocument ( ) . createElement ( "div" ) ; h . append ( f ) ; f . $ . outerHTML = "\x3cpre\x3e" + g + "\x3c/pre\x3e" ; f . copyAttributes ( h . getFirst ( ) ) ; f = h . getFirst ( ) . remove ( ) } else f . setHtml ( g ) ; b = f } else g ? b = y ( c ? [ a . getHtml ( ) ] : e ( a ) , b ) : a . moveChildren ( b ) ; b . replace ( a ) ; if ( d ) { var c = b , k ; ( k = c . getPrevious ( H ) ) && k . type == CKEDITOR . NODE _ELEMENT && k . is ( "pre" ) && ( d = z ( k . getHtml ( ) , /\n$/ , "" ) + "\n\n" + z ( c . getHtml ( ) , /^\n/ , "" ) , CKEDITOR . env . ie ? c . $ . outerHTML = "\x3cpre\x3e" + d + "\x3c/pre\x3e" :
c . setHtml ( d ) , k . remove ( ) ) } else c && p ( b ) } function e ( a ) { var b = [ ] ; z ( a . getOuterHtml ( ) , /(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi , function ( a , b , c ) { return b + "\x3c/pre\x3e" + c + "\x3cpre\x3e" } ) . replace ( /<pre\b.*?>([\s\S]*?)<\/pre>/gi , function ( a , c ) { b . push ( c ) } ) ; return b } function z ( a , b , c ) { var d = "" , e = "" ; a = a . replace ( /(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi , function ( a , b , c ) { b && ( d = b ) ; c && ( e = c ) ; return "" } ) ; return d + a . replace ( b , c ) + e } function y ( a , b ) { var c ;
1 < a . length && ( c = new CKEDITOR . dom . documentFragment ( b . getDocument ( ) ) ) ; for ( var d = 0 ; d < a . length ; d ++ ) { var e = a [ d ] , e = e . replace ( /(\r\n|\r)/g , "\n" ) , e = z ( e , /^[ \t]*\n/ , "" ) , e = z ( e , /\n$/ , "" ) , e = z ( e , /^[ \t]+|[ \t]+$/g , function ( a , b ) { return 1 == a . length ? "\x26nbsp;" : b ? " " + CKEDITOR . tools . repeat ( "\x26nbsp;" , a . length - 1 ) : CKEDITOR . tools . repeat ( "\x26nbsp;" , a . length - 1 ) + " " } ) , e = e . replace ( /\n/g , "\x3cbr\x3e" ) , e = e . replace ( /[ \t]{2,}/g , function ( a ) { return CKEDITOR . tools . repeat ( "\x26nbsp;" , a . length - 1 ) + " " } ) ; if ( c ) { var f = b . clone ( ) ; f . setHtml ( e ) ;
c . append ( f ) } else b . setHtml ( e ) } return c || b } function A ( a , b ) { var c = this . _ . definition , d = c . attributes , c = c . styles , e = l ( this ) [ a . getName ( ) ] , f = CKEDITOR . tools . isEmpty ( d ) && CKEDITOR . tools . isEmpty ( c ) , g ; for ( g in d ) if ( "class" != g && ! this . _ . definition . fullMatch || a . getAttribute ( g ) == q ( g , d [ g ] ) ) b && "data-" == g . slice ( 0 , 5 ) || ( f = a . hasAttribute ( g ) , a . removeAttribute ( g ) ) ; for ( var h in c ) this . _ . definition . fullMatch && a . getStyle ( h ) != q ( h , c [ h ] , ! 0 ) || ( f = f || ! ! a . getStyle ( h ) , a . removeStyle ( h ) ) ; x ( a , e , C [ a . getName ( ) ] ) ; f && ( this . _ . definition . alwaysRemoveElement ?
p ( a , 1 ) : ! CKEDITOR . dtd . $block [ a . getName ( ) ] || this . _ . enterMode == CKEDITOR . ENTER _BR && ! a . hasAttributes ( ) ? p ( a ) : a . renameNode ( this . _ . enterMode == CKEDITOR . ENTER _P ? "p" : "div" ) ) } function D ( a ) { for ( var b = l ( this ) , c = a . getElementsByTag ( this . element ) , d , e = c . count ( ) ; 0 <= -- e ; ) d = c . getItem ( e ) , d . isReadOnly ( ) || A . call ( this , d , ! 0 ) ; for ( var f in b ) if ( f != this . element ) for ( c = a . getElementsByTag ( f ) , e = c . count ( ) - 1 ; 0 <= e ; e -- ) d = c . getItem ( e ) , d . isReadOnly ( ) || x ( d , b [ f ] ) } function x ( a , b , c ) { if ( b = b && b . attributes ) for ( var d = 0 ; d < b . length ; d ++ ) { var e = b [ d ] [ 0 ] ,
f ; if ( f = a . getAttribute ( e ) ) { var g = b [ d ] [ 1 ] ; ( null === g || g . test && g . test ( f ) || "string" == typeof g && f == g ) && a . removeAttribute ( e ) } } c || p ( a ) } function p ( a , b ) { if ( ! a . hasAttributes ( ) || b ) if ( CKEDITOR . dtd . $block [ a . getName ( ) ] ) { var c = a . getPrevious ( H ) , d = a . getNext ( H ) ; ! c || c . type != CKEDITOR . NODE _TEXT && c . isBlockBoundary ( { br : 1 } ) || a . append ( "br" , 1 ) ; ! d || d . type != CKEDITOR . NODE _TEXT && d . isBlockBoundary ( { br : 1 } ) || a . append ( "br" ) ; a . remove ( ! 0 ) } else c = a . getFirst ( ) , d = a . getLast ( ) , a . remove ( ! 0 ) , c && ( c . type == CKEDITOR . NODE _ELEMENT && c . mergeSiblings ( ) ,
a . removeStyle ( e ) } } function g ( a ) { var b = a . createBookmark ( ! 0 ) , c = a . createIterator ( ) ; c . enforceRealBlocks = ! 0 ; this . _ . enterMode && ( c . enlargeBr = this . _ . enterMode != CKEDITOR . ENTER _BR ) ; for ( var d , e = a . document , f ; d = c . getNextParagraph ( ) ; ) ! d . isReadOnly ( ) && ( c . activeFilter ? c . activeFilter . check ( this ) : 1 ) && ( f = J ( this , e , d ) , r ( d , f ) ) ; a . moveToBookmark ( b ) } function n ( a ) { var b = a . createBookmark ( 1 ) , c = a . createIterator ( ) ; c . enforceRealBlocks = ! 0 ; c . enlargeBr = this . _ . enterMode != CKEDITOR . ENTER _BR ; for ( var d , e ; d = c . getNextParagraph ( ) ; ) this . checkElementRemovable ( d ) &&
( d . is ( "pre" ) ? ( ( e = this . _ . enterMode == CKEDITOR . ENTER _BR ? null : a . document . createElement ( this . _ . enterMode == CKEDITOR . ENTER _P ? "p" : "div" ) ) && d . copyAttributes ( e ) , r ( d , e ) ) : A . call ( this , d ) ) ; a . moveToBookmark ( b ) } function r ( a , b ) { var c = ! b ; c && ( b = a . getDocument ( ) . createElement ( "div" ) , a . copyAttributes ( b ) ) ; var d = b && b . is ( "pre" ) , f = a . is ( "pre" ) , g = ! d && f ; if ( d && ! f ) { f = b ; ( g = a . getBogus ( ) ) && g . remove ( ) ; g = a . getHtml ( ) ; g = y ( g , /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g , "" ) ; g = g . replace ( /[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi , "$1" ) ; g = g . replace ( /([ \t\n\r]+| )/g ,
" " ) ; g = g . replace ( /<br\b[^>]*>/gi , "\n" ) ; if ( CKEDITOR . env . ie ) { var h = a . getDocument ( ) . createElement ( "div" ) ; h . append ( f ) ; f . $ . outerHTML = "\x3cpre\x3e" + g + "\x3c/pre\x3e" ; f . copyAttributes ( h . getFirst ( ) ) ; f = h . getFirst ( ) . remove ( ) } else f . setHtml ( g ) ; b = f } else g ? b = v ( c ? [ a . getHtml ( ) ] : e ( a ) , b ) : a . moveChildren ( b ) ; b . replace ( a ) ; if ( d ) { var c = b , k ; ( k = c . getPrevious ( H ) ) && k . type == CKEDITOR . NODE _ELEMENT && k . is ( "pre" ) && ( d = y ( k . getHtml ( ) , /\n$/ , "" ) + "\n\n" + y ( c . getHtml ( ) , /^\n/ , "" ) , CKEDITOR . env . ie ? c . $ . outerHTML = "\x3cpre\x3e" + d + "\x3c/pre\x3e" :
c . setHtml ( d ) , k . remove ( ) ) } else c && m ( b ) } function e ( a ) { var b = [ ] ; y ( a . getOuterHtml ( ) , /(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi , function ( a , b , c ) { return b + "\x3c/pre\x3e" + c + "\x3cpre\x3e" } ) . replace ( /<pre\b.*?>([\s\S]*?)<\/pre>/gi , function ( a , c ) { b . push ( c ) } ) ; return b } function y ( a , b , c ) { var d = "" , e = "" ; a = a . replace ( /(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi , function ( a , b , c ) { b && ( d = b ) ; c && ( e = c ) ; return "" } ) ; return d + a . replace ( b , c ) + e } function v ( a , b ) { var c ;
1 < a . length && ( c = new CKEDITOR . dom . documentFragment ( b . getDocument ( ) ) ) ; for ( var d = 0 ; d < a . length ; d ++ ) { var e = a [ d ] , e = e . replace ( /(\r\n|\r)/g , "\n" ) , e = y ( e , /^[ \t]*\n/ , "" ) , e = y ( e , /\n$/ , "" ) , e = y ( e , /^[ \t]+|[ \t]+$/g , function ( a , b ) { return 1 == a . length ? "\x26nbsp;" : b ? " " + CKEDITOR . tools . repeat ( "\x26nbsp;" , a . length - 1 ) : CKEDITOR . tools . repeat ( "\x26nbsp;" , a . length - 1 ) + " " } ) , e = e . replace ( /\n/g , "\x3cbr\x3e" ) , e = e . replace ( /[ \t]{2,}/g , function ( a ) { return CKEDITOR . tools . repeat ( "\x26nbsp;" , a . length - 1 ) + " " } ) ; if ( c ) { var f = b . clone ( ) ; f . setHtml ( e ) ;
c . append ( f ) } else b . setHtml ( e ) } return c || b } function A ( a , b ) { var c = this . _ . definition , d = c . attributes , c = c . styles , e = l ( this ) [ a . getName ( ) ] , f = CKEDITOR . tools . isEmpty ( d ) && CKEDITOR . tools . isEmpty ( c ) , g ; for ( g in d ) if ( "class" != g && ! this . _ . definition . fullMatch || a . getAttribute ( g ) == t ( g , d [ g ] ) ) b && "data-" == g . slice ( 0 , 5 ) || ( f = a . hasAttribute ( g ) , a . removeAttribute ( g ) ) ; for ( var h in c ) this . _ . definition . fullMatch && a . getStyle ( h ) != t ( h , c [ h ] , ! 0 ) || ( f = f || ! ! a . getStyle ( h ) , a . removeStyle ( h ) ) ; x ( a , e , C [ a . getName ( ) ] ) ; f && ( this . _ . definition . alwaysRemoveElement ?
m ( a , 1 ) : ! CKEDITOR . dtd . $block [ a . getName ( ) ] || this . _ . enterMode == CKEDITOR . ENTER _BR && ! a . hasAttributes ( ) ? m ( a ) : a . renameNode ( this . _ . enterMode == CKEDITOR . ENTER _P ? "p" : "div" ) ) } function D ( a ) { for ( var b = l ( this ) , c = a . getElementsByTag ( this . element ) , d , e = c . count ( ) ; 0 <= -- e ; ) d = c . getItem ( e ) , d . isReadOnly ( ) || A . call ( this , d , ! 0 ) ; for ( var f in b ) if ( f != this . element ) for ( c = a . getElementsByTag ( f ) , e = c . count ( ) - 1 ; 0 <= e ; e -- ) d = c . getItem ( e ) , d . isReadOnly ( ) || x ( d , b [ f ] ) } function x ( a , b , c ) { if ( b = b && b . attributes ) for ( var d = 0 ; d < b . length ; d ++ ) { var e = b [ d ] [ 0 ] ,
f ; if ( f = a . getAttribute ( e ) ) { var g = b [ d ] [ 1 ] ; ( null === g || g . test && g . test ( f ) || "string" == typeof g && f == g ) && a . removeAttribute ( e ) } } c || m ( a ) } function m ( a , b ) { if ( ! a . hasAttributes ( ) || b ) if ( CKEDITOR . dtd . $block [ a . getName ( ) ] ) { var c = a . getPrevious ( H ) , d = a . getNext ( H ) ; ! c || c . type != CKEDITOR . NODE _TEXT && c . isBlockBoundary ( { br : 1 } ) || a . append ( "br" , 1 ) ; ! d || d . type != CKEDITOR . NODE _TEXT && d . isBlockBoundary ( { br : 1 } ) || a . append ( "br" ) ; a . remove ( ! 0 ) } else c = a . getFirst ( ) , d = a . getLast ( ) , a . remove ( ! 0 ) , c && ( c . type == CKEDITOR . NODE _ELEMENT && c . mergeSiblings ( ) ,
d && ! c . equals ( d ) && d . type == CKEDITOR . NODE _ELEMENT && d . mergeSiblings ( ) ) } function J ( a , b , c ) { var d ; d = a . element ; "*" == d && ( d = "span" ) ; d = new CKEDITOR . dom . element ( d , b ) ; c && c . copyAttributes ( d ) ; d = u ( d , a ) ; b . getCustomData ( "doc_processing_style" ) && d . hasAttribute ( "id" ) ? d . removeAttribute ( "id" ) : b . setCustomData ( "doc_processing_style" , 1 ) ; return d } function u ( a , b ) { var c = b . _ . definition , d = c . attributes , c = CKEDITOR . style . getStyleText ( c ) ; if ( d ) for ( var e in d ) a . setAttribute ( e , d [ e ] ) ; c && a . setAttribute ( "style" , c ) ; return a } function K ( a ,
b ) { for ( var c in a ) a [ c ] = a [ c ] . replace ( E , function ( a , c ) { return b [ c ] } ) } function l ( a ) { if ( a . _ . overrides ) return a . _ . overrides ; var b = a . _ . overrides = { } , c = a . _ . definition . overrides ; if ( c ) { CKEDITOR . tools . isArray ( c ) || ( c = [ c ] ) ; for ( var d = 0 ; d < c . length ; d ++ ) { var e = c [ d ] , f , g ; "string" == typeof e ? f = e . toLowerCase ( ) : ( f = e . element ? e . element . toLowerCase ( ) : a . element , g = e . attributes ) ; e = b [ f ] || ( b [ f ] = { } ) ; if ( g ) { var e = e . attributes = e . attributes || [ ] , h ; for ( h in g ) e . push ( [ h . toLowerCase ( ) , g [ h ] ] ) } } } return b } function q ( a , b , c ) { var d = new CKEDITOR . dom . element ( "span" ) ;
b ) { for ( var c in a ) a [ c ] = a [ c ] . replace ( E , function ( a , c ) { return b [ c ] } ) } function l ( a ) { if ( a . _ . overrides ) return a . _ . overrides ; var b = a . _ . overrides = { } , c = a . _ . definition . overrides ; if ( c ) { CKEDITOR . tools . isArray ( c ) || ( c = [ c ] ) ; for ( var d = 0 ; d < c . length ; d ++ ) { var e = c [ d ] , f , g ; "string" == typeof e ? f = e . toLowerCase ( ) : ( f = e . element ? e . element . toLowerCase ( ) : a . element , g = e . attributes ) ; e = b [ f ] || ( b [ f ] = { } ) ; if ( g ) { var e = e . attributes = e . attributes || [ ] , h ; for ( h in g ) e . push ( [ h . toLowerCase ( ) , g [ h ] ] ) } } } return b } function t ( a , b , c ) { var d = new CKEDITOR . dom . element ( "span" ) ;
d [ c ? "setStyle" : "setAttribute" ] ( a , b ) ; return d [ c ? "getStyle" : "getAttribute" ] ( a ) } function F ( a , b ) { function c ( a , b ) { return "font-family" == b . toLowerCase ( ) ? a . replace ( /["']/g , "" ) : a } "string" == typeof a && ( a = CKEDITOR . tools . parseCssText ( a ) ) ; "string" == typeof b && ( b = CKEDITOR . tools . parseCssText ( b , ! 0 ) ) ; for ( var d in a ) if ( ! ( d in b ) || c ( b [ d ] , d ) != c ( a [ d ] , d ) && "inherit" != a [ d ] && "inherit" != b [ d ] ) return ! 1 ; return ! 0 } function L ( a , b , c ) { var d = a . document , e = a . getRanges ( ) ; b = b ? this . removeFromRange : this . applyToRange ; var f , g ; if ( a . isFake && a . isInTable ( ) ) for ( f =
[ ] , g = 0 ; g < e . length ; g ++ ) f . push ( e [ g ] . clone ( ) ) ; for ( var h = e . createIterator ( ) ; g = h . getNextRange ( ) ; ) b . call ( this , g , c ) ; a . selectRanges ( f || e ) ; d . removeCustomData ( "doc_processing_style" ) } var C = { address : 1 , div : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 , p : 1 , pre : 1 , section : 1 , header : 1 , footer : 1 , nav : 1 , article : 1 , aside : 1 , figure : 1 , dialog : 1 , hgroup : 1 , time : 1 , meter : 1 , menu : 1 , command : 1 , keygen : 1 , output : 1 , progress : 1 , details : 1 , datagrid : 1 , datalist : 1 } , M = { a : 1 , blockquote : 1 , embed : 1 , hr : 1 , img : 1 , li : 1 , object : 1 , ol : 1 , table : 1 , td : 1 , tr : 1 , th : 1 , ul : 1 , dl : 1 , dt : 1 ,
dd : 1 , form : 1 , audio : 1 , video : 1 } , t = /\s*(?:;\s*|$)/ , E = /#\((.+?)\)/g , w = CKEDITOR . dom . walker . bookmark ( 0 , 1 ) , H = CKEDITOR . dom . walker . whitespaces ( 1 ) ; CKEDITOR . style = function ( a , b ) { if ( "string" == typeof a . type ) return new CKEDITOR . style . customHandlers [ a . type ] ( a ) ; var c = a . attributes ; c && c . style && ( a . styles = CKEDITOR . tools . extend ( { } , a . styles , CKEDITOR . tools . parseCssText ( c . style ) ) , delete c . style ) ; b && ( a = CKEDITOR . tools . clone ( a ) , K ( a . attributes , b ) , K ( a . styles , b ) ) ; c = this . element = a . element ? "string" == typeof a . element ? a . element . toLowerCase ( ) :
dd : 1 , form : 1 , audio : 1 , video : 1 } , q = /\s*(?:;\s*|$)/ , E = /#\((.+?)\)/g , z = CKEDITOR . dom . walker . bookmark ( 0 , 1 ) , H = CKEDITOR . dom . walker . whitespaces ( 1 ) ; CKEDITOR . style = function ( a , b ) { if ( "string" == typeof a . type ) return new CKEDITOR . style . customHandlers [ a . type ] ( a ) ; var c = a . attributes ; c && c . style && ( a . styles = CKEDITOR . tools . extend ( { } , a . styles , CKEDITOR . tools . parseCssText ( c . style ) ) , delete c . style ) ; b && ( a = CKEDITOR . tools . clone ( a ) , K ( a . attributes , b ) , K ( a . styles , b ) ) ; c = this . element = a . element ? "string" == typeof a . element ? a . element . toLowerCase ( ) :
a . element : "*" ; this . type = a . type || ( C [ c ] ? CKEDITOR . STYLE _BLOCK : M [ c ] ? CKEDITOR . STYLE _OBJECT : CKEDITOR . STYLE _INLINE ) ; "object" == typeof this . element && ( this . type = CKEDITOR . STYLE _OBJECT ) ; this . _ = { definition : a } } ; CKEDITOR . style . prototype = { apply : function ( a ) { if ( a instanceof CKEDITOR . dom . document ) return L . call ( this , a . getSelection ( ) ) ; if ( this . checkApplicable ( a . elementPath ( ) , a ) ) { var b = this . _ . enterMode ; b || ( this . _ . enterMode = a . activeEnterMode ) ; L . call ( this , a . getSelection ( ) , 0 , a ) ; this . _ . enterMode = b } } , remove : function ( a ) { if ( a instanceof
CKEDITOR . dom . document ) return L . call ( this , a . getSelection ( ) , 1 ) ; if ( this . checkApplicable ( a . elementPath ( ) , a ) ) { var b = this . _ . enterMode ; b || ( this . _ . enterMode = a . activeEnterMode ) ; L . call ( this , a . getSelection ( ) , 1 , a ) ; this . _ . enterMode = b } } , applyToRange : function ( a ) { this . applyToRange = this . type == CKEDITOR . STYLE _INLINE ? b : this . type == CKEDITOR . STYLE _BLOCK ? g : this . type == CKEDITOR . STYLE _OBJECT ? h : null ; return this . applyToRange ( a ) } , removeFromRange : function ( a ) { this . removeFromRange = this . type == CKEDITOR . STYLE _INLINE ? c : this . type == CKEDITOR . STYLE _BLOCK ?
m : this . type == CKEDITOR . STYLE _OBJECT ? k : null ; return this . removeFromRange ( a ) } , applyToObject : function ( a ) { u ( a , this ) } , checkActive : function ( a , b ) { switch ( this . type ) { case CKEDITOR . STYLE _BLOCK : return this . checkElementRemovable ( a . block || a . blockLimit , ! 0 , b ) ; case CKEDITOR . STYLE _OBJECT : case CKEDITOR . STYLE _INLINE : for ( var c = a . elements , d = 0 , e ; d < c . length ; d ++ ) if ( e = c [ d ] , this . type != CKEDITOR . STYLE _INLINE || e != a . block && e != a . blockLimit ) { if ( this . type == CKEDITOR . STYLE _OBJECT ) { var f = e . getName ( ) ; if ( ! ( "string" == typeof this . element ?
n : this . type == CKEDITOR . STYLE _OBJECT ? k : null ; return this . removeFromRange ( a ) } , applyToObject : function ( a ) { u ( a , this ) } , checkActive : function ( a , b ) { switch ( this . type ) { case CKEDITOR . STYLE _BLOCK : return this . checkElementRemovable ( a . block || a . blockLimit , ! 0 , b ) ; case CKEDITOR . STYLE _OBJECT : case CKEDITOR . STYLE _INLINE : for ( var c = a . elements , d = 0 , e ; d < c . length ; d ++ ) if ( e = c [ d ] , this . type != CKEDITOR . STYLE _INLINE || e != a . block && e != a . blockLimit ) { if ( this . type == CKEDITOR . STYLE _OBJECT ) { var f = e . getName ( ) ; if ( ! ( "string" == typeof this . element ?
f == this . element : f in this . element ) ) continue } if ( this . checkElementRemovable ( e , ! 0 , b ) ) return ! 0 } } return ! 1 } , checkApplicable : function ( a , b , c ) { b && b instanceof CKEDITOR . filter && ( c = b ) ; if ( c && ! c . check ( this ) ) return ! 1 ; switch ( this . type ) { case CKEDITOR . STYLE _OBJECT : return ! ! a . contains ( this . element ) ; case CKEDITOR . STYLE _BLOCK : return ! ! a . blockLimit . getDtd ( ) [ this . element ] } return ! 0 } , checkElementMatch : function ( a , b ) { var c = this . _ . definition ; if ( ! a || ! c . ignoreReadonly && a . isReadOnly ( ) ) return ! 1 ; var d = a . getName ( ) ; if ( "string" == typeof this . element ?
d == this . element : d in this . element ) { if ( ! b && ! a . hasAttributes ( ) ) return ! 0 ; if ( d = c . _AC ) c = d ; else { var d = { } , e = 0 , f = c . attributes ; if ( f ) for ( var g in f ) e ++ , d [ g ] = f [ g ] ; if ( g = CKEDITOR . style . getStyleText ( c ) ) d . style || e ++ , d . style = g ; d . _length = e ; c = c . _AC = d } if ( c . _length ) { for ( var h in c ) if ( "_length" != h ) if ( d = a . getAttribute ( h ) || "" , "style" == h ? F ( c [ h ] , d ) : c [ h ] == d ) { if ( ! b ) return ! 0 } else if ( b ) return ! 1 ; if ( b ) return ! 0 } else return ! 0 } return ! 1 } , checkElementRemovable : function ( a , b , c ) { if ( this . checkElementMatch ( a , b , c ) ) return ! 0 ; if ( b = l ( this ) [ a . getName ( ) ] ) { var d ;
if ( ! ( b = b . attributes ) ) return ! 0 ; for ( c = 0 ; c < b . length ; c ++ ) if ( d = b [ c ] [ 0 ] , d = a . getAttribute ( d ) ) { var e = b [ c ] [ 1 ] ; if ( null === e ) return ! 0 ; if ( "string" == typeof e ) { if ( d == e ) return ! 0 } else if ( e . test ( d ) ) return ! 0 } } return ! 1 } , buildPreview : function ( a ) { var b = this . _ . definition , c = [ ] , d = b . element ; "bdo" == d && ( d = "span" ) ; var c = [ "\x3c" , d ] , e = b . attributes ; if ( e ) for ( var f in e ) c . push ( " " , f , '\x3d"' , e [ f ] , '"' ) ; ( e = CKEDITOR . style . getStyleText ( b ) ) && c . push ( ' style\x3d"' , e , '"' ) ; c . push ( "\x3e" , a || b . name , "\x3c/" , d , "\x3e" ) ; return c . join ( "" ) } , getDefinition : function ( ) { return this . _ . definition } } ;
CKEDITOR . style . getStyleText = function ( a ) { var b = a . _ST ; if ( b ) return b ; var b = a . styles , c = a . attributes && a . attributes . style || "" , d = "" ; c . length && ( c = c . replace ( t , ";" ) ) ; for ( var e in b ) { var f = b [ e ] , g = ( e + ":" + f ) . replace ( t , ";" ) ; "inherit" == f ? d += g : c += g } c . length && ( c = CKEDITOR . tools . normalizeCssText ( c , ! 0 ) ) ; return a . _ST = c + d } ; CKEDITOR . style . customHandlers = { } ; CKEDITOR . style . addCustomHandler = function ( a ) { var b = function ( a ) { this . _ = { definition : a } ; this . setup && this . setup ( a ) } ; b . prototype = CKEDITOR . tools . extend ( CKEDITOR . tools . prototypedCopy ( CKEDITOR . style . prototype ) ,
CKEDITOR . style . getStyleText = function ( a ) { var b = a . _ST ; if ( b ) return b ; var b = a . styles , c = a . attributes && a . attributes . style || "" , d = "" ; c . length && ( c = c . replace ( q , ";" ) ) ; for ( var e in b ) { var f = b [ e ] , g = ( e + ":" + f ) . replace ( q , ";" ) ; "inherit" == f ? d += g : c += g } c . length && ( c = CKEDITOR . tools . normalizeCssText ( c , ! 0 ) ) ; return a . _ST = c + d } ; CKEDITOR . style . customHandlers = { } ; CKEDITOR . style . addCustomHandler = function ( a ) { var b = function ( a ) { this . _ = { definition : a } ; this . setup && this . setup ( a ) } ; b . prototype = CKEDITOR . tools . extend ( CKEDITOR . tools . prototypedCopy ( CKEDITOR . style . prototype ) ,
{ assignedTo : CKEDITOR . STYLE _OBJECT } , a , ! 0 ) ; return this . customHandlers [ a . type ] = b } ; var P = CKEDITOR . POSITION _PRECEDING | CKEDITOR . POSITION _IDENTICAL | CKEDITOR . POSITION _IS _CONTAINED , O = CKEDITOR . POSITION _FOLLOWING | CKEDITOR . POSITION _IDENTICAL | CKEDITOR . POSITION _IS _CONTAINED } ) ( ) ; CKEDITOR . styleCommand = function ( a , d ) { this . requiredContent = this . allowedContent = this . style = a ; CKEDITOR . tools . extend ( this , d , ! 0 ) } ;
CKEDITOR . styleCommand . prototype . exec = function ( a ) { a . focus ( ) ; this . state == CKEDITOR . TRISTATE _OFF ? a . applyStyle ( this . style ) : this . state == CKEDITOR . TRISTATE _ON && a . removeStyle ( this . style ) } ; CKEDITOR . stylesSet = new CKEDITOR . resourceManager ( "" , "stylesSet" ) ; CKEDITOR . addStylesSet = CKEDITOR . tools . bind ( CKEDITOR . stylesSet . add , CKEDITOR . stylesSet ) ; CKEDITOR . loadStylesSet = function ( a , d , b ) { CKEDITOR . stylesSet . addExternal ( a , d , "" ) ; CKEDITOR . stylesSet . load ( a , b ) } ;
CKEDITOR . tools . extend ( CKEDITOR . editor . prototype , { attachStyleStateChange : function ( a , d ) { var b = this . _ . styleStateChangeCallbacks ; b || ( b = this . _ . styleStateChangeCallbacks = [ ] , this . on ( "selectionChange" , function ( a ) { for ( var d = 0 ; d < b . length ; d ++ ) { var h = b [ d ] , k = h . style . checkActive ( a . data . path , this ) ? CKEDITOR . TRISTATE _ON : CKEDITOR . TRISTATE _OFF ; h . fn . call ( this , k ) } } ) ) ; b . push ( { style : a , fn : d } ) } , applyStyle : function ( a ) { a . apply ( this ) } , removeStyle : function ( a ) { a . remove ( this ) } , getStylesSet : function ( a ) { if ( this . _ . stylesDefinitions ) a ( this . _ . stylesDefinitions ) ;
else { var d = this , b = d . config . stylesCombo _stylesSet || d . config . stylesSet ; if ( ! 1 === b ) a ( null ) ; else if ( b instanceof Array ) d . _ . stylesDefinitions = b , a ( b ) ; else { b || ( b = "default" ) ; var b = b . split ( ":" ) , c = b [ 0 ] ; CKEDITOR . stylesSet . addExternal ( c , b [ 1 ] ? b . slice ( 1 ) . join ( ":" ) : CKEDITOR . getUrl ( "styles.js" ) , "" ) ; CKEDITOR . stylesSet . load ( c , function ( b ) { d . _ . stylesDefinitions = b [ c ] ; a ( d . _ . stylesDefinitions ) } ) } } } } ) ;
CKEDITOR . dom . comment = function ( a , d ) { "string" == typeof a && ( a = ( d ? d . $ : document ) . createComment ( a ) ) ; CKEDITOR . dom . domObject . call ( this , a ) } ; CKEDITOR . dom . comment . prototype = new CKEDITOR . dom . node ; CKEDITOR . tools . extend ( CKEDITOR . dom . comment . prototype , { type : CKEDITOR . NODE _COMMENT , getOuterHtml : function ( ) { return "\x3c!--" + this . $ . nodeValue + "--\x3e" } } ) ; "use strict" ;
( function ( ) { var a = { } , d = { } , b ; for ( b in CKEDITOR . dtd . $blockLimit ) b in CKEDITOR . dtd . $list || ( a [ b ] = 1 ) ; for ( b in CKEDITOR . dtd . $block ) b in CKEDITOR . dtd . $blockLimit || b in CKEDITOR . dtd . $empty || ( d [ b ] = 1 ) ; CKEDITOR . dom . elementPath = function ( b , f ) { var h = null , k = null , g = [ ] , m = b , r ; f = f || b . getDocument ( ) . getBody ( ) ; m || ( m = f ) ; do if ( m . type == CKEDITOR . NODE _ELEMENT ) { g . push ( m ) ; if ( ! this . lastElement && ( this . lastElement = m , m . is ( CKEDITOR . dtd . $object ) || "false" == m . getAttribute ( "contenteditable" ) ) ) continue ; if ( m . equals ( f ) ) break ; if ( ! k && ( r = m . getName ( ) ,
"true" == m . getAttribute ( "contenteditable" ) ? k = m : ! h && d [ r ] && ( h = m ) , a [ r ] ) ) { if ( r = ! h && "div" == r ) { a : { r = m . getChildren ( ) ; for ( var e = 0 , z = r . count ( ) ; e < z ; e ++ ) { var y = r . getItem ( e ) ; if ( y . type == CKEDITOR . NODE _ELEMENT && CKEDITOR . dtd . $block [ y . getName ( ) ] ) { r = ! 0 ; break a } } r = ! 1 } r = ! r } r ? h = m : k = m } } while ( m = m . getParent ( ) ) ; k || ( k = f ) ; this . block = h ; this . blockLimit = k ; this . root = f ; this . elements = g } } ) ( ) ;
( function ( ) { var a = { } , d = { } , b ; for ( b in CKEDITOR . dtd . $blockLimit ) b in CKEDITOR . dtd . $list || ( a [ b ] = 1 ) ; for ( b in CKEDITOR . dtd . $block ) b in CKEDITOR . dtd . $blockLimit || b in CKEDITOR . dtd . $empty || ( d [ b ] = 1 ) ; CKEDITOR . dom . elementPath = function ( b , f ) { var h = null , k = null , g = [ ] , n = b , r ; f = f || b . getDocument ( ) . getBody ( ) ; n || ( n = f ) ; do if ( n . type == CKEDITOR . NODE _ELEMENT ) { g . push ( n ) ; if ( ! this . lastElement && ( this . lastElement = n , n . is ( CKEDITOR . dtd . $object ) || "false" == n . getAttribute ( "contenteditable" ) ) ) continue ; if ( n . equals ( f ) ) break ; if ( ! k && ( r = n . getName ( ) ,
"true" == n . getAttribute ( "contenteditable" ) ? k = n : ! h && d [ r ] && ( h = n ) , a [ r ] ) ) { if ( r = ! h && "div" == r ) { a : { r = n . getChildren ( ) ; for ( var e = 0 , y = r . count ( ) ; e < y ; e ++ ) { var v = r . getItem ( e ) ; if ( v . type == CKEDITOR . NODE _ELEMENT && CKEDITOR . dtd . $block [ v . getName ( ) ] ) { r = ! 0 ; break a } } r = ! 1 } r = ! r } r ? h = n : k = n } } while ( n = n . getParent ( ) ) ; k || ( k = f ) ; this . block = h ; this . blockLimit = k ; this . root = f ; this . elements = g } } ) ( ) ;
CKEDITOR . dom . elementPath . prototype = { compare : function ( a ) { var d = this . elements ; a = a && a . elements ; if ( ! a || d . length != a . length ) return ! 1 ; for ( var b = 0 ; b < d . length ; b ++ ) if ( ! d [ b ] . equals ( a [ b ] ) ) return ! 1 ; return ! 0 } , contains : function ( a , d , b ) { var c = 0 , f ; "string" == typeof a && ( f = function ( b ) { return b . getName ( ) == a } ) ; a instanceof CKEDITOR . dom . element ? f = function ( b ) { return b . equals ( a ) } : CKEDITOR . tools . isArray ( a ) ? f = function ( b ) { return - 1 < CKEDITOR . tools . indexOf ( a , b . getName ( ) ) } : "function" == typeof a ? f = a : "object" == typeof a && ( f = function ( b ) { return b . getName ( ) in
a } ) ; var h = this . elements , k = h . length ; d && ( b ? c += 1 : -- k ) ; b && ( h = Array . prototype . slice . call ( h , 0 ) , h . reverse ( ) ) ; for ( ; c < k ; c ++ ) if ( f ( h [ c ] ) ) return h [ c ] ; return null } , isContextFor : function ( a ) { var d ; return a in CKEDITOR . dtd . $block ? ( d = this . contains ( CKEDITOR . dtd . $intermediate ) || this . root . equals ( this . block ) && this . block || this . blockLimit , ! ! d . getDtd ( ) [ a ] ) : ! 0 } , direction : function ( ) { return ( this . block || this . blockLimit || this . root ) . getDirection ( 1 ) } } ;
CKEDITOR . dom . text = function ( a , d ) { "string" == typeof a && ( a = ( d ? d . $ : document ) . createTextNode ( a ) ) ; this . $ = a } ; CKEDITOR . dom . text . prototype = new CKEDITOR . dom . node ;
CKEDITOR . tools . extend ( CKEDITOR . dom . text . prototype , { type : CKEDITOR . NODE _TEXT , getLength : function ( ) { return this . $ . nodeValue . length } , getText : function ( ) { return this . $ . nodeValue } , setText : function ( a ) { this . $ . nodeValue = a } , split : function ( a ) { var d = this . $ . parentNode , b = d . childNodes . length , c = this . getLength ( ) , f = this . getDocument ( ) , h = new CKEDITOR . dom . text ( this . $ . splitText ( a ) , f ) ; d . childNodes . length == b && ( a >= c ? ( h = f . createText ( "" ) , h . insertAfter ( this ) ) : ( a = f . createText ( "" ) , a . insertAfter ( h ) , a . remove ( ) ) ) ; return h } , substring : function ( a ,
d ) { return "number" != typeof d ? this . $ . nodeValue . substr ( a ) : this . $ . nodeValue . substring ( a , d ) } } ) ;
( function ( ) { function a ( a , c , d ) { var h = a . serializable , k = c [ d ? "endContainer" : "startContainer" ] , g = d ? "endOffset" : "startOffset" , m = h ? c . document . getById ( a . startNode ) : a . startNode ; a = h ? c . document . getById ( a . endNode ) : a . endNode ; k . equals ( m . getPrevious ( ) ) ? ( c . startOffset = c . startOffset - k . getLength ( ) - a . getPrevious ( ) . getLength ( ) , k = a . getNext ( ) ) : k . equals ( a . getPrevious ( ) ) && ( c . startOffset -= k . getLength ( ) , k = a . getNext ( ) ) ; k . equals ( m . getParent ( ) ) && c [ g ] ++ ; k . equals ( a . getParent ( ) ) && c [ g ] ++ ; c [ d ? "endContainer" : "startContainer" ] = k ; return c }
CKEDITOR . dom . rangeList = function ( a ) { if ( a instanceof CKEDITOR . dom . rangeList ) return a ; a ? a instanceof CKEDITOR . dom . range && ( a = [ a ] ) : a = [ ] ; return CKEDITOR . tools . extend ( a , d ) } ; var d = { createIterator : function ( ) { var a = this , c = CKEDITOR . dom . walker . bookmark ( ) , d = [ ] , h ; return { getNextRange : function ( k ) { h = void 0 === h ? 0 : h + 1 ; var g = a [ h ] ; if ( g && 1 < a . length ) { if ( ! h ) for ( var m = a . length - 1 ; 0 <= m ; m -- ) d . unshift ( a [ m ] . createBookmark ( ! 0 ) ) ; if ( k ) for ( var r = 0 ; a [ h + r + 1 ] ; ) { var e = g . document ; k = 0 ; m = e . getById ( d [ r ] . endNode ) ; for ( e = e . getById ( d [ r + 1 ] . startNode ) ; ; ) { m =
m . getNextSourceNode ( ! 1 ) ; if ( e . equals ( m ) ) k = 1 ; else if ( c ( m ) || m . type == CKEDITOR . NODE _ELEMENT && m . isBlockBoundary ( ) ) continue ; break } if ( ! k ) break ; r ++ } for ( g . moveToBookmark ( d . shift ( ) ) ; r -- ; ) m = a [ ++ h ] , m . moveToBookmark ( d . shift ( ) ) , g . setEnd ( m . endContainer , m . endOffset ) } return g } } } , createBookmarks : function ( b ) { for ( var c = [ ] , d , h = 0 ; h < this . length ; h ++ ) { c . push ( d = this [ h ] . createBookmark ( b , ! 0 ) ) ; for ( var k = h + 1 ; k < this . length ; k ++ ) this [ k ] = a ( d , this [ k ] ) , this [ k ] = a ( d , this [ k ] , ! 0 ) } return c } , createBookmarks2 : function ( a ) { for ( var c = [ ] , d = 0 ; d <
( function ( ) { function a ( a , c , d ) { var h = a . serializable , k = c [ d ? "endContainer" : "startContainer" ] , g = d ? "endOffset" : "startOffset" , n = h ? c . document . getById ( a . startNode ) : a . startNode ; a = h ? c . document . getById ( a . endNode ) : a . endNode ; k . equals ( n . getPrevious ( ) ) ? ( c . startOffset = c . startOffset - k . getLength ( ) - a . getPrevious ( ) . getLength ( ) , k = a . getNext ( ) ) : k . equals ( a . getPrevious ( ) ) && ( c . startOffset -= k . getLength ( ) , k = a . getNext ( ) ) ; k . equals ( n . getParent ( ) ) && c [ g ] ++ ; k . equals ( a . getParent ( ) ) && c [ g ] ++ ; c [ d ? "endContainer" : "startContainer" ] = k ; return c }
CKEDITOR . dom . rangeList = function ( a ) { if ( a instanceof CKEDITOR . dom . rangeList ) return a ; a ? a instanceof CKEDITOR . dom . range && ( a = [ a ] ) : a = [ ] ; return CKEDITOR . tools . extend ( a , d ) } ; var d = { createIterator : function ( ) { var a = this , c = CKEDITOR . dom . walker . bookmark ( ) , d = [ ] , h ; return { getNextRange : function ( k ) { h = void 0 === h ? 0 : h + 1 ; var g = a [ h ] ; if ( g && 1 < a . length ) { if ( ! h ) for ( var n = a . length - 1 ; 0 <= n ; n -- ) d . unshift ( a [ n ] . createBookmark ( ! 0 ) ) ; if ( k ) for ( var r = 0 ; a [ h + r + 1 ] ; ) { var e = g . document ; k = 0 ; n = e . getById ( d [ r ] . endNode ) ; for ( e = e . getById ( d [ r + 1 ] . startNode ) ; ; ) { n =
n . getNextSourceNode ( ! 1 ) ; if ( e . equals ( n ) ) k = 1 ; else if ( c ( n ) || n . type == CKEDITOR . NODE _ELEMENT && n . isBlockBoundary ( ) ) continue ; break } if ( ! k ) break ; r ++ } for ( g . moveToBookmark ( d . shift ( ) ) ; r -- ; ) n = a [ ++ h ] , n . moveToBookmark ( d . shift ( ) ) , g . setEnd ( n . endContainer , n . endOffset ) } return g } } } , createBookmarks : function ( b ) { for ( var c = [ ] , d , h = 0 ; h < this . length ; h ++ ) { c . push ( d = this [ h ] . createBookmark ( b , ! 0 ) ) ; for ( var k = h + 1 ; k < this . length ; k ++ ) this [ k ] = a ( d , this [ k ] ) , this [ k ] = a ( d , this [ k ] , ! 0 ) } return c } , createBookmarks2 : function ( a ) { for ( var c = [ ] , d = 0 ; d <
this . length ; d ++ ) c . push ( this [ d ] . createBookmark2 ( a ) ) ; return c } , moveToBookmarks : function ( a ) { for ( var c = 0 ; c < this . length ; c ++ ) this [ c ] . moveToBookmark ( a [ c ] ) } } } ) ( ) ;
( function ( ) { function a ( ) { return CKEDITOR . getUrl ( CKEDITOR . skinName . split ( "," ) [ 1 ] || "skins/" + CKEDITOR . skinName . split ( "," ) [ 0 ] + "/" ) } function d ( b ) { var c = CKEDITOR . skin [ "ua_" + b ] , d = CKEDITOR . env ; if ( c ) for ( var c = c . split ( "," ) . sort ( function ( a , b ) { return a > b ? - 1 : 1 } ) , f = 0 , g ; f < c . length ; f ++ ) if ( g = c [ f ] , d . ie && ( g . replace ( /^ie/ , "" ) == d . version || d . quirks && "iequirks" == g ) && ( g = "ie" ) , d [ g ] ) { b += "_" + c [ f ] ; break } return CKEDITOR . getUrl ( a ( ) + b + ".css" ) } function b ( a , b ) { h [ a ] || ( CKEDITOR . document . appendStyleSheet ( d ( a ) ) , h [ a ] = 1 ) ; b && b ( ) } function c ( a ) { var b =
a . getById ( k ) ; b || ( b = a . getHead ( ) . append ( "style" ) , b . setAttribute ( "id" , k ) , b . setAttribute ( "type" , "text/css" ) ) ; return b } function f ( a , b , c ) { var d , f , g ; if ( CKEDITOR . env . webkit ) for ( b = b . split ( "}" ) . slice ( 0 , - 1 ) , f = 0 ; f < b . length ; f ++ ) b [ f ] = b [ f ] . split ( "{" ) ; for ( var h = 0 ; h < a . length ; h ++ ) if ( CKEDITOR . env . webkit ) for ( f = 0 ; f < b . length ; f ++ ) { g = b [ f ] [ 1 ] ; for ( d = 0 ; d < c . length ; d ++ ) g = g . replace ( c [ d ] [ 0 ] , c [ d ] [ 1 ] ) ; a [ h ] . $ . sheet . addRule ( b [ f ] [ 0 ] , g ) } else { g = b ; for ( d = 0 ; d < c . length ; d ++ ) g = g . replace ( c [ d ] [ 0 ] , c [ d ] [ 1 ] ) ; CKEDITOR . env . ie && 11 > CKEDITOR . env . version ?
a [ h ] . $ . styleSheet . cssText += g : a [ h ] . $ . innerHTML += g } } var h = { } ; CKEDITOR . skin = { path : a , loadPart : function ( c , d ) { CKEDITOR . skin . name != CKEDITOR . skinName . split ( "," ) [ 0 ] ? CKEDITOR . scriptLoader . load ( CKEDITOR . getUrl ( a ( ) + "skin.js" ) , function ( ) { b ( c , d ) } ) : b ( c , d ) } , getPath : function ( a ) { return CKEDITOR . getUrl ( d ( a ) ) } , icons : { } , addIcon : function ( a , b , c , d ) { a = a . toLowerCase ( ) ; this . icons [ a ] || ( this . icons [ a ] = { path : b , offset : c || 0 , bgsize : d || "16px" } ) } , getIconStyle : function ( a , b , c , d , f ) { var g ; a && ( a = a . toLowerCase ( ) , b && ( g = this . icons [ a + "-rtl" ] ) ,
g || ( g = this . icons [ a ] ) ) ; a = c || g && g . path || "" ; d = d || g && g . offset ; f = f || g && g . bgsize || "16px" ; a && ( a = a . replace ( /'/g , "\\'" ) ) ; return a && "background-image:url('" + CKEDITOR . getUrl ( a ) + "');background-position:0 " + d + "px;background-size:" + f + ";" } } ; CKEDITOR . tools . extend ( CKEDITOR . editor . prototype , { getUiColor : function ( ) { return this . uiColor } , setUiColor : function ( a ) { var b = c ( CKEDITOR . document ) ; return ( this . setUiColor = function ( a ) { this . uiColor = a ; var c = CKEDITOR . skin . chameleon , d = "" , h = "" ; "function" == typeof c && ( d = c ( this , "editor" ) , h =
c ( this , "panel" ) ) ; a = [ [ m , a ] ] ; f ( [ b ] , d , a ) ; f ( g , h , a ) } ) . call ( this , a ) } } ) ; var k = "cke_ui_color" , g = [ ] , m = /\$color/g ; CKEDITOR . on ( "instanceLoaded" , function ( a ) { if ( ! CKEDITOR . env . ie || ! CKEDITOR . env . quirks ) { var b = a . editor ; a = function ( a ) { a = ( a . data [ 0 ] || a . data ) . element . getElementsByTag ( "iframe" ) . getItem ( 0 ) . getFrameDocument ( ) ; if ( ! a . getById ( "cke_ui_color" ) ) { a = c ( a ) ; g . push ( a ) ; var d = b . getUiColor ( ) ; d && f ( [ a ] , CKEDITOR . skin . chameleon ( b , "panel" ) , [ [ m , d ] ] ) } } ; b . on ( "panelShow" , a ) ; b . on ( "menuShow" , a ) ; b . config . uiColor && b . setUiColor ( b . config . uiColor ) } } ) } ) ( ) ;
c ( this , "panel" ) ) ; a = [ [ n , a ] ] ; f ( [ b ] , d , a ) ; f ( g , h , a ) } ) . call ( this , a ) } } ) ; var k = "cke_ui_color" , g = [ ] , n = /\$color/g ; CKEDITOR . on ( "instanceLoaded" , function ( a ) { if ( ! CKEDITOR . env . ie || ! CKEDITOR . env . quirks ) { var b = a . editor ; a = function ( a ) { a = ( a . data [ 0 ] || a . data ) . element . getElementsByTag ( "iframe" ) . getItem ( 0 ) . getFrameDocument ( ) ; if ( ! a . getById ( "cke_ui_color" ) ) { a = c ( a ) ; g . push ( a ) ; var d = b . getUiColor ( ) ; d && f ( [ a ] , CKEDITOR . skin . chameleon ( b , "panel" ) , [ [ n , d ] ] ) } } ; b . on ( "panelShow" , a ) ; b . on ( "menuShow" , a ) ; b . config . uiColor && b . setUiColor ( b . config . uiColor ) } } ) } ) ( ) ;
( function ( ) { if ( CKEDITOR . env . webkit ) CKEDITOR . env . hc = ! 1 ; else { var a = CKEDITOR . dom . element . createFromHtml ( '\x3cdiv style\x3d"width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"\x3e\x3c/div\x3e' , CKEDITOR . document ) ; a . appendTo ( CKEDITOR . document . getHead ( ) ) ; try { var d = a . getComputedStyle ( "border-top-color" ) , b = a . getComputedStyle ( "border-right-color" ) ; CKEDITOR . env . hc = ! ( ! d || d != b ) } catch ( c ) { CKEDITOR . env . hc = ! 1 } a . remove ( ) } CKEDITOR . env . hc && ( CKEDITOR . env . cssClass += " cke_hc" ) ; CKEDITOR . document . appendStyleText ( ".cke{visibility:hidden;}" ) ;
CKEDITOR . status = "loaded" ; CKEDITOR . fireOnce ( "loaded" ) ; if ( a = CKEDITOR . _ . pending ) for ( delete CKEDITOR . _ . pending , d = 0 ; d < a . length ; d ++ ) CKEDITOR . editor . prototype . constructor . apply ( a [ d ] [ 0 ] , a [ d ] [ 1 ] ) , CKEDITOR . add ( a [ d ] [ 0 ] ) } ) ( ) ; / *
Copyright ( c ) 2003 - 2018 , CKSource - Frederico Knabben . All rights reserved .
@@ -690,58 +698,58 @@ h-(e.$.offsetHeight-g)+"px");b.fire("resize",{outerHeight:b.container.$.offsetHe
b . push ( '" onclick\x3d"CKEDITOR.tools.callFunction(' + C + ')"\x3e' , '\x3cspan class\x3d"cke_arrow"\x3e\x26#9650;\x3c/span\x3e' , "\x3c/a\x3e" ) } b . push ( "\x3c/span\x3e" ) ; c . data . html += b . join ( "" ) } } ) ; a . on ( "destroy" , function ( ) { if ( this . toolbox ) { var a , d = 0 , b , e , f ; for ( a = this . toolbox . toolbars ; d < a . length ; d ++ ) for ( e = a [ d ] . items , b = 0 ; b < e . length ; b ++ ) f = e [ b ] , f . clickFn && CKEDITOR . tools . removeFunction ( f . clickFn ) , f . keyDownFn && CKEDITOR . tools . removeFunction ( f . keyDownFn ) } } ) ; a . on ( "uiReady" , function ( ) { var c = a . ui . space ( "toolbox" ) ; c && a . focusManager . add ( c ,
1 ) } ) ; a . addCommand ( "toolbarFocus" , E ) ; a . setKeystroke ( CKEDITOR . ALT + 121 , "toolbarFocus" ) ; a . ui . add ( "-" , CKEDITOR . UI _SEPARATOR , { } ) ; a . ui . addHandler ( CKEDITOR . UI _SEPARATOR , { create : function ( ) { return { render : function ( a , d ) { d . push ( '\x3cspan class\x3d"cke_toolbar_separator" role\x3d"separator"\x3e\x3c/span\x3e' ) ; return { } } } } } ) } } ) ; CKEDITOR . ui . prototype . addToolbarGroup = function ( a , d , f ) { var c = v ( this . editor ) , h = 0 === d , b = { name : a } ; if ( f ) { if ( f = CKEDITOR . tools . search ( c , function ( a ) { return a . name == f } ) ) { ! f . groups && ( f . groups = [ ] ) ; if ( d &&
( d = CKEDITOR . tools . indexOf ( f . groups , d ) , 0 <= d ) ) { f . groups . splice ( d + 1 , 0 , a ) ; return } h ? f . groups . splice ( 0 , 0 , a ) : f . groups . push ( a ) ; return } d = null } d && ( d = CKEDITOR . tools . indexOf ( c , function ( a ) { return a . name == d } ) ) ; h ? c . splice ( 0 , 0 , a ) : "number" == typeof d ? c . splice ( d + 1 , 0 , b ) : c . push ( a ) } } ) ( ) ; CKEDITOR . UI _SEPARATOR = "separator" ; CKEDITOR . config . toolbarLocation = "top" ; ( function ( ) { function r ( a , b , c ) { b . type || ( b . type = "auto" ) ; if ( c && ! 1 === a . fire ( "beforePaste" , b ) || ! b . dataValue && b . dataTransfer . isEmpty ( ) ) return ! 1 ; b . dataValue || ( b . dataValue = "" ) ; if ( CKEDITOR . env . gecko && "drop" == b . method && a . toolbox ) a . once ( "afterPaste" , function ( ) { a . toolbox . focus ( ) } ) ; return a . fire ( "paste" , b ) } function x ( a ) { function b ( ) { var b = a . editable ( ) ; if ( CKEDITOR . plugins . clipboard . isCustomCopyCutSupported ) { var c = function ( b ) { a . getSelection ( ) . isCollapsed ( ) || ( a . readOnly && "cut" == b . name || p . initPasteDataTransfer ( b ,
a ) , b . data . preventDefault ( ) ) } ; b . on ( "copy" , c ) ; b . on ( "cut" , c ) ; b . on ( "cut" , function ( ) { a . readOnly || a . extractSelectedHtml ( ) } , null , null , 999 ) } b . on ( p . mainPasteEvent , function ( a ) { "beforepaste" == p . mainPasteEvent && m || l ( a ) } ) ; "beforepaste" == p . mainPasteEvent && ( b . on ( "paste" , function ( a ) { u || ( g ( ) , a . data . preventDefault ( ) , l ( a ) , e ( "paste" ) ) } ) , b . on ( "contextmenu" , h , null , null , 0 ) , b . on ( "beforepaste" , function ( a ) { ! a . data || a . data . $ . ctrlKey || a . data . $ . shiftKey || h ( ) } , null , null , 0 ) ) ; b . on ( "beforecut" , function ( ) { ! m && f ( a ) } ) ; var d ; b . attachListener ( CKEDITOR . env . ie ?
a ) , b . data . preventDefault ( ) ) } ; b . on ( "copy" , c ) ; b . on ( "cut" , c ) ; b . on ( "cut" , function ( ) { a . readOnly || a . extractSelectedHtml ( ) } , null , null , 999 ) } b . on ( p . mainPasteEvent , function ( a ) { "beforepaste" == p . mainPasteEvent && m || k ( a ) } ) ; "beforepaste" == p . mainPasteEvent && ( b . on ( "paste" , function ( a ) { u || ( g ( ) , a . data . preventDefault ( ) , k ( a ) , e ( "paste" ) ) } ) , b . on ( "contextmenu" , h , null , null , 0 ) , b . on ( "beforepaste" , function ( a ) { ! a . data || a . data . $ . ctrlKey || a . data . $ . shiftKey || h ( ) } , null , null , 0 ) ) ; b . on ( "beforecut" , function ( ) { ! m && f ( a ) } ) ; var d ; b . attachListener ( CKEDITOR . env . ie ?
b : a . document . getDocumentElement ( ) , "mouseup" , function ( ) { d = setTimeout ( function ( ) { t ( ) } , 0 ) } ) ; a . on ( "destroy" , function ( ) { clearTimeout ( d ) } ) ; b . on ( "keyup" , t ) } function c ( b ) { return { type : b , canUndo : "cut" == b , startDisabled : ! 0 , fakeKeystroke : "cut" == b ? CKEDITOR . CTRL + 88 : CKEDITOR . CTRL + 67 , exec : function ( ) { "cut" == this . type && f ( ) ; var b ; var c = this . type ; if ( CKEDITOR . env . ie ) b = e ( c ) ; else try { b = a . document . $ . execCommand ( c , ! 1 , null ) } catch ( d ) { b = ! 1 } b || a . showNotification ( a . lang . clipboard [ this . type + "Error" ] ) ; return b } } } function d ( ) { return { canUndo : ! 1 ,
async : ! 0 , fakeKeystroke : CKEDITOR . CTRL + 86 , exec : function ( a , b ) { function c ( b , h ) { h = "undefined" !== typeof h ? h : ! 0 ; b ? ( b . method = "paste" , b . dataTransfer || ( b . dataTransfer = p . initPasteDataTransfer ( ) ) , r ( a , b , h ) ) : e && ! a . _ . forcePasteDialog && a . showNotification ( n , "info" , a . config . clipboard _notificationDuration ) ; a . _ . forcePasteDialog = ! 1 ; a . fire ( "afterCommandExec" , { name : "paste" , command : d , returnValue : ! ! b } ) } b = "undefined" !== typeof b && null !== b ? b : { } ; var d = this , e = "undefined" !== typeof b . notification ? b . notification : ! 0 , h = b . type , f = CKEDITOR . tools . keystrokeToString ( a . lang . common . keyboard ,
a . getCommandKeystroke ( this ) ) , n = "string" === typeof e ? e : a . lang . clipboard . pasteNotification . replace ( /%1/ , '\x3ckbd aria-label\x3d"' + f . aria + '"\x3e' + f . display + "\x3c/kbd\x3e" ) , f = "string" === typeof b ? b : b . dataValue ; h && ! 0 !== a . config . forcePasteAsPlainText && "allow-word" !== a . config . forcePasteAsPlainText ? a . _ . nextPasteType = h : delete a . _ . nextPasteType ; "string" === typeof f ? c ( { dataValue : f } ) : a . getClipboardData ( c ) } } } function g ( ) { u = 1 ; setTimeout ( function ( ) { u = 0 } , 100 ) } function h ( ) { m = 1 ; setTimeout ( function ( ) { m = 0 } , 10 ) } function e ( b ) { var c =
a . document , d = c . getBody ( ) , e = ! 1 , h = function ( ) { e = ! 0 } ; d . on ( b , h ) ; 7 < CKEDITOR . env . version ? c . $ . execCommand ( b ) : c . $ . selection . createRange ( ) . execCommand ( b ) ; d . removeListener ( b , h ) ; return e } function f ( ) { if ( CKEDITOR . env . ie && ! CKEDITOR . env . quirks ) { var b = a . getSelection ( ) , c , d , e ; b . getType ( ) == CKEDITOR . SELECTION _ELEMENT && ( c = b . getSelectedElement ( ) ) && ( d = b . getRanges ( ) [ 0 ] , e = a . document . createText ( "" ) , e . insertBefore ( c ) , d . setStartBefore ( e ) , d . setEndAfter ( c ) , b . selectRanges ( [ d ] ) , setTimeout ( function ( ) { c . getParent ( ) && ( e . remove ( ) , b . selectElement ( c ) ) } ,
0 ) ) } } function k ( b , c ) { var d = a . document , e = a . editable ( ) , h = function ( a ) { a . cancel ( ) } , f ; if ( ! d . getById ( "cke_pastebin" ) ) { var n = a . getSelection ( ) , g = n . createBookmarks ( ) ; CKEDITOR . env . ie && n . root . fire ( "selectionchange" ) ; var l = new CKEDITOR . dom . element ( ! CKEDITOR . env . webkit && ! e . is ( "body" ) || CKEDITOR . env . ie ? "div" : "body" , d ) ; l . setAttributes ( { id : "cke_pastebin" , "data-cke-temp" : "1" } ) ; var k = 0 , d = d . getWindow ( ) ; CKEDITOR . env . webkit ? ( e . append ( l ) , l . addClass ( "cke_editable" ) , e . is ( "body" ) || ( k = "static" != e . getComputedStyle ( "position" ) ?
e : CKEDITOR . dom . element . get ( e . $ . offsetParent ) , k = k . getDocumentPosition ( ) . y ) ) : e . getAscendant ( CKEDITOR . env . ie ? "body" : "html" , 1 ) . append ( l ) ; l . setStyles ( { position : "absolute" , top : d . getScrollPosition ( ) . y - k + 10 + "px" , width : "1px" , height : Math . max ( 1 , d . getViewPaneSize ( ) . height - 20 ) + "px" , overflow : "hidden" , margin : 0 , padding : 0 } ) ; CKEDITOR . env . safari && l . setStyles ( CKEDITOR . tools . cssVendorPrefix ( "user-select" , "text" ) ) ; ( k = l . getParent ( ) . isReadOnly ( ) ) ? ( l . setOpacity ( 0 ) , l . setAttribute ( "contenteditable" , ! 0 ) ) : l . setStyle ( "ltr" == a . config . contentsLangDirection ?
"left" : "right" , "-10000px" ) ; a . on ( "selectionChange" , h , null , null , 0 ) ; if ( CKEDITOR . env . webkit || CKEDITOR . env . gecko ) f = e . once ( "blur" , h , null , null , - 100 ) ; k && l . focus ( ) ; k = new CKEDITOR . dom . range ( l ) ; k . selectNodeContents ( l ) ; var t = k . select ( ) ; CKEDITOR . env . ie && ( f = e . once ( "blur" , function ( ) { a . lockSelection ( t ) } ) ) ; var q = CKEDITOR . document . getWindow ( ) . getScrollPosition ( ) . y ; setTimeout ( function ( ) { CKEDITOR . env . webkit && ( CKEDITOR . document . getBody ( ) . $ . scrollTop = q ) ; f && f . removeListener ( ) ; CKEDITOR . env . ie && e . focus ( ) ; n . selectBookmarks ( g ) ;
l . remove ( ) ; var b ; CKEDITOR . env . webkit && ( b = l . getFirst ( ) ) && b . is && b . hasClass ( "Apple-style-span" ) && ( l = b ) ; a . removeListener ( "selectionChange" , h ) ; c ( l . getHtml ( ) ) } , 0 ) } } function y ( ) { if ( "paste" == p . mainPasteEvent ) return a . fire ( "beforePaste" , { type : "auto" , method : "paste" } ) , ! 1 ; a . focus ( ) ; g ( ) ; var b = a . focusManager ; b . lock ( ) ; if ( a . editable ( ) . fire ( p . mainPasteEvent ) && ! e ( "paste" ) ) return b . unlock ( ) , ! 1 ; b . unlock ( ) ; return ! 0 } function n ( b ) { if ( "wysiwyg" == a . mode ) switch ( b . data . keyCode ) { case CKEDITOR . CTRL + 86 : case CKEDITOR . SHIFT + 45 : b =
a . editable ( ) ; g ( ) ; "paste" == p . mainPasteEvent && b . fire ( "beforepaste" ) ; break ; case CKEDITOR . CTRL + 88 : case CKEDITOR . SHIFT + 46 : a . fire ( "saveSnapshot" ) , setTimeout ( function ( ) { a . fire ( "saveSnapshot" ) } , 50 ) } } function l ( b ) { var c = { type : "auto" , method : "paste" , dataTransfer : p . initPasteDataTransfer ( b ) } ; c . dataTransfer . cacheData ( ) ; var d = ! 1 !== a . fire ( "beforePaste" , c ) ; d && p . canClipboardApiBeTrusted ( c . dataTransfer , a ) ? ( b . data . preventDefault ( ) , setTimeout ( function ( ) { r ( a , c ) } , 0 ) ) : k ( b , function ( b ) { c . dataValue = b . replace ( /<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig ,
0 ) ) } } function l ( b , c ) { var d = a . document , e = a . editable ( ) , h = function ( a ) { a . cancel ( ) } , f ; if ( ! d . getById ( "cke_pastebin" ) ) { var n = a . getSelection ( ) , g = n . createBookmarks ( ) ; CKEDITOR . env . ie && n . root . fire ( "selectionchange" ) ; var k = new CKEDITOR . dom . element ( ! CKEDITOR . env . webkit && ! e . is ( "body" ) || CKEDITOR . env . ie ? "div" : "body" , d ) ; k . setAttributes ( { id : "cke_pastebin" , "data-cke-temp" : "1" } ) ; var l = 0 , d = d . getWindow ( ) ; CKEDITOR . env . webkit ? ( e . append ( k ) , k . addClass ( "cke_editable" ) , e . is ( "body" ) || ( l = "static" != e . getComputedStyle ( "position" ) ?
e : CKEDITOR . dom . element . get ( e . $ . offsetParent ) , l = l . getDocumentPosition ( ) . y ) ) : e . getAscendant ( CKEDITOR . env . ie ? "body" : "html" , 1 ) . append ( k ) ; k . setStyles ( { position : "absolute" , top : d . getScrollPosition ( ) . y - l + 10 + "px" , width : "1px" , height : Math . max ( 1 , d . getViewPaneSize ( ) . height - 20 ) + "px" , overflow : "hidden" , margin : 0 , padding : 0 } ) ; CKEDITOR . env . safari && k . setStyles ( CKEDITOR . tools . cssVendorPrefix ( "user-select" , "text" ) ) ; ( l = k . getParent ( ) . isReadOnly ( ) ) ? ( k . setOpacity ( 0 ) , k . setAttribute ( "contenteditable" , ! 0 ) ) : k . setStyle ( "ltr" == a . config . contentsLangDirection ?
"left" : "right" , "-10000px" ) ; a . on ( "selectionChange" , h , null , null , 0 ) ; if ( CKEDITOR . env . webkit || CKEDITOR . env . gecko ) f = e . once ( "blur" , h , null , null , - 100 ) ; l && k . focus ( ) ; l = new CKEDITOR . dom . range ( k ) ; l . selectNodeContents ( k ) ; var t = l . select ( ) ; CKEDITOR . env . ie && ( f = e . once ( "blur" , function ( ) { a . lockSelection ( t ) } ) ) ; var q = CKEDITOR . document . getWindow ( ) . getScrollPosition ( ) . y ; setTimeout ( function ( ) { CKEDITOR . env . webkit && ( CKEDITOR . document . getBody ( ) . $ . scrollTop = q ) ; f && f . removeListener ( ) ; CKEDITOR . env . ie && e . focus ( ) ; n . selectBookmarks ( g ) ;
k . remove ( ) ; var b ; CKEDITOR . env . webkit && ( b = k . getFirst ( ) ) && b . is && b . hasClass ( "Apple-style-span" ) && ( k = b ) ; a . removeListener ( "selectionChange" , h ) ; c ( k . getHtml ( ) ) } , 0 ) } } function y ( ) { if ( "paste" == p . mainPasteEvent ) return a . fire ( "beforePaste" , { type : "auto" , method : "paste" } ) , ! 1 ; a . focus ( ) ; g ( ) ; var b = a . focusManager ; b . lock ( ) ; if ( a . editable ( ) . fire ( p . mainPasteEvent ) && ! e ( "paste" ) ) return b . unlock ( ) , ! 1 ; b . unlock ( ) ; return ! 0 } function n ( b ) { if ( "wysiwyg" == a . mode ) switch ( b . data . keyCode ) { case CKEDITOR . CTRL + 86 : case CKEDITOR . SHIFT + 45 : b =
a . editable ( ) ; g ( ) ; "paste" == p . mainPasteEvent && b . fire ( "beforepaste" ) ; break ; case CKEDITOR . CTRL + 88 : case CKEDITOR . SHIFT + 46 : a . fire ( "saveSnapshot" ) , setTimeout ( function ( ) { a . fire ( "saveSnapshot" ) } , 50 ) } } function k ( b ) { var c = { type : "auto" , method : "paste" , dataTransfer : p . initPasteDataTransfer ( b ) } ; c . dataTransfer . cacheData ( ) ; var d = ! 1 !== a . fire ( "beforePaste" , c ) ; d && p . canClipboardApiBeTrusted ( c . dataTransfer , a ) ? ( b . data . preventDefault ( ) , setTimeout ( function ( ) { r ( a , c ) } , 0 ) ) : l ( b , function ( b ) { c . dataValue = b . replace ( /<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig ,
"" ) ; d && r ( a , c ) } ) } function t ( ) { if ( "wysiwyg" == a . mode ) { var b = q ( "paste" ) ; a . getCommand ( "cut" ) . setState ( q ( "cut" ) ) ; a . getCommand ( "copy" ) . setState ( q ( "copy" ) ) ; a . getCommand ( "paste" ) . setState ( b ) ; a . fire ( "pasteState" , b ) } } function q ( b ) { if ( v && b in { paste : 1 , cut : 1 } ) return CKEDITOR . TRISTATE _DISABLED ; if ( "paste" == b ) return CKEDITOR . TRISTATE _OFF ; b = a . getSelection ( ) ; var c = b . getRanges ( ) ; return b . getType ( ) == CKEDITOR . SELECTION _NONE || 1 == c . length && c [ 0 ] . collapsed ? CKEDITOR . TRISTATE _DISABLED : CKEDITOR . TRISTATE _OFF } var p = CKEDITOR . plugins . clipboard ,
m = 0 , u = 0 , v = 0 ; ( function ( ) { a . on ( "key" , n ) ; a . on ( "contentDom" , b ) ; a . on ( "selectionChange" , function ( a ) { v = a . data . selection . getRanges ( ) [ 0 ] . checkReadOnly ( ) ; t ( ) } ) ; if ( a . contextMenu ) { a . contextMenu . addListener ( function ( a , b ) { v = b . getRanges ( ) [ 0 ] . checkReadOnly ( ) ; return { cut : q ( "cut" ) , copy : q ( "copy" ) , paste : q ( "paste" ) } } ) ; var c = null ; a . on ( "menuShow" , function ( ) { c && ( c . removeListener ( ) , c = null ) ; var b = a . contextMenu . findItemByCommandName ( "paste" ) ; b && b . element && ( c = b . element . on ( "touchend" , function ( ) { a . _ . forcePasteDialog = ! 0 } ) ) } ) } if ( a . ui . addButton ) a . once ( "instanceReady" ,
function ( ) { a . _ . pasteButtons && CKEDITOR . tools . array . forEach ( a . _ . pasteButtons , function ( b ) { if ( b = a . ui . get ( b ) ) CKEDITOR . document . getById ( b . _ . id ) . on ( "touchend" , function ( ) { a . _ . forcePasteDialog = ! 0 } ) } ) } ) } ) ( ) ; ( function ( ) { function b ( c , d , e , h , f ) { var n = a . lang . clipboard [ d ] ; a . addCommand ( d , e ) ; a . ui . addButton && a . ui . addButton ( c , { label : n , command : d , toolbar : "clipboard," + h } ) ; a . addMenuItems && a . addMenuItem ( d , { label : n , command : d , group : "clipboard" , order : f } ) } b ( "Cut" , "cut" , c ( "cut" ) , 10 , 1 ) ; b ( "Copy" , "copy" , c ( "copy" ) , 20 , 4 ) ; b ( "Paste" ,
"paste" , d ( ) , 30 , 8 ) ; a . _ . pasteButtons || ( a . _ . pasteButtons = [ ] ) ; a . _ . pasteButtons . push ( "Paste" ) } ) ( ) ; a . getClipboardData = function ( b , c ) { function d ( a ) { a . removeListener ( ) ; a . cancel ( ) ; c ( a . data ) } function e ( a ) { a . removeListener ( ) ; a . cancel ( ) ; c ( { type : f , dataValue : a . data . dataValue , dataTransfer : a . data . dataTransfer , method : "paste" } ) } var h = ! 1 , f = "auto" ; c || ( c = b , b = null ) ; a . on ( "beforePaste" , function ( a ) { a . removeListener ( ) ; h = ! 0 ; f = a . data . type } , null , null , 1E3 ) ; a . on ( "paste" , d , null , null , 0 ) ; ! 1 === y ( ) && ( a . removeListener ( "paste" , d ) , a . _ . forcePasteDialog &&
h && a . fire ( "pasteDialog" ) ? ( a . on ( "pasteDialogCommit" , e ) , a . on ( "dialogHide" , function ( a ) { a . removeListener ( ) ; a . data . removeListener ( "pasteDialogCommit" , e ) ; a . data . _ . committed || c ( null ) } ) ) : c ( null ) ) } } function z ( a ) { if ( CKEDITOR . env . webkit ) { if ( ! a . match ( /^[^<]*$/g ) && ! a . match ( /^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi ) ) return "html" } else if ( CKEDITOR . env . ie ) { if ( ! a . match ( /^([^<]|<br( ?\/)?>)*$/gi ) && ! a . match ( /^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi ) ) return "html" } else if ( CKEDITOR . env . gecko ) { if ( ! a . match ( /^([^<]|<br( ?\/)?>)*$/gi ) ) return "html" } else return "html" ;
return "htmlifiedtext" } function A ( a , b ) { function c ( a ) { return CKEDITOR . tools . repeat ( "\x3c/p\x3e\x3cp\x3e" , ~ ~ ( a / 2 ) ) + ( 1 == a % 2 ? "\x3cbr\x3e" : "" ) } b = b . replace ( /\s+/g , " " ) . replace ( /> +</g , "\x3e\x3c" ) . replace ( /<br ?\/>/gi , "\x3cbr\x3e" ) ; b = b . replace ( /<\/?[A-Z]+>/g , function ( a ) { return a . toLowerCase ( ) } ) ; if ( b . match ( /^[^<]$/ ) ) return b ; CKEDITOR . env . webkit && - 1 < b . indexOf ( "\x3cdiv\x3e" ) && ( b = b . replace ( /^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g , "\x3cbr\x3e" ) . replace ( /^(<div>(<br>|)<\/div>){2}(?!$)/g , "\x3cdiv\x3e\x3c/div\x3e" ) ,
return "htmlifiedtext" } function A ( a , b ) { function c ( a ) { return CKEDITOR . tools . repeat ( "\x3c/p\x3e\x3cp\x3e" , ~ ~ ( a / 2 ) ) + ( 1 == a % 2 ? "\x3cbr\x3e" : "" ) } b = b . replace ( /(?!\u3000) \s+/g , " " ) . replace ( /> +</g , "\x3e\x3c" ) . replace ( /<br ?\/>/gi , "\x3cbr\x3e" ) ; b = b . replace ( /<\/?[A-Z]+>/g , function ( a ) { return a . toLowerCase ( ) } ) ; if ( b . match ( /^[^<]$/ ) ) return b ; CKEDITOR . env . webkit && - 1 < b . indexOf ( "\x3cdiv\x3e" ) && ( b = b . replace ( /^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g , "\x3cbr\x3e" ) . replace ( /^(<div>(<br>|)<\/div>){2}(?!$)/g , "\x3cdiv\x3e\x3c/div\x3e" ) ,
b . match ( /<div>(<br>|)<\/div>/ ) && ( b = "\x3cp\x3e" + b . replace ( /(<div>(<br>|)<\/div>)+/g , function ( a ) { return c ( a . split ( "\x3c/div\x3e\x3cdiv\x3e" ) . length + 1 ) } ) + "\x3c/p\x3e" ) , b = b . replace ( /<\/div><div>/g , "\x3cbr\x3e" ) , b = b . replace ( /<\/?div>/g , "" ) ) ; CKEDITOR . env . gecko && a . enterMode != CKEDITOR . ENTER _BR && ( CKEDITOR . env . gecko && ( b = b . replace ( /^<br><br>$/ , "\x3cbr\x3e" ) ) , - 1 < b . indexOf ( "\x3cbr\x3e\x3cbr\x3e" ) && ( b = "\x3cp\x3e" + b . replace ( /(<br>){2,}/g , function ( a ) { return c ( a . length / 4 ) } ) + "\x3c/p\x3e" ) ) ; return B ( a , b ) } function C ( ) { function a ( ) { var a =
{ } , b ; for ( b in CKEDITOR . dtd ) "$" != b . charAt ( 0 ) && "div" != b && "span" != b && ( a [ b ] = 1 ) ; return a } var b = { } ; return { get : function ( c ) { return "plain-text" == c ? b . plainText || ( b . plainText = new CKEDITOR . filter ( "br" ) ) : "semantic-content" == c ? ( ( c = b . semanticContent ) || ( c = new CKEDITOR . filter , c . allow ( { $1 : { elements : a ( ) , attributes : ! 0 , styles : ! 1 , classes : ! 1 } } ) , c = b . semanticContent = c ) , c ) : c ? new CKEDITOR . filter ( c ) : null } } } function w ( a , b , c ) { b = CKEDITOR . htmlParser . fragment . fromHtml ( b ) ; var d = new CKEDITOR . htmlParser . basicWriter ; c . applyTo ( b , ! 0 , ! 1 ,
a . activeEnterMode ) ; b . writeHtml ( d ) ; return d . getHtml ( ) } function B ( a , b ) { a . enterMode == CKEDITOR . ENTER _BR ? b = b . replace ( /(<\/p><p>)+/g , function ( a ) { return CKEDITOR . tools . repeat ( "\x3cbr\x3e" , a . length / 7 * 2 ) } ) . replace ( /<\/?p>/g , "" ) : a . enterMode == CKEDITOR . ENTER _DIV && ( b = b . replace ( /<(\/)?p>/g , "\x3c$1div\x3e" ) ) ; return b } function D ( a ) { a . data . preventDefault ( ) ; a . data . $ . dataTransfer . dropEffect = "none" } function E ( a ) { var b = CKEDITOR . plugins . clipboard ; a . on ( "contentDom" , function ( ) { function c ( b , c , e ) { c . select ( ) ; r ( a , { dataTransfer : e ,
method : "drop" } , 1 ) ; e . sourceEditor . fire ( "saveSnapshot" ) ; e . sourceEditor . editable ( ) . extractHtmlFromRange ( b ) ; e . sourceEditor . getSelection ( ) . selectRanges ( [ b ] ) ; e . sourceEditor . fire ( "saveSnapshot" ) } function d ( c , e ) { c . select ( ) ; r ( a , { dataTransfer : e , method : "drop" } , 1 ) ; b . resetDragDataTransfer ( ) } function g ( b , c , e ) { var d = { $ : b . data . $ , target : b . data . getTarget ( ) } ; c && ( d . dragRange = c ) ; e && ( d . dropRange = e ) ; ! 1 === a . fire ( b . name , d ) && b . data . preventDefault ( ) } function h ( a ) { a . type != CKEDITOR . NODE _ELEMENT && ( a = a . getParent ( ) ) ; return a . getChildCount ( ) }
var e = a . editable ( ) , f = CKEDITOR . plugins . clipboard . getDropTarget ( a ) , k = a . ui . space ( "top" ) , m = a . ui . space ( "bottom" ) ; b . preventDefaultDropOnElement ( k ) ; b . preventDefaultDropOnElement ( m ) ; e . attachListener ( f , "dragstart" , g ) ; e . attachListener ( a , "dragstart" , b . resetDragDataTransfer , b , null , 1 ) ; e . attachListener ( a , "dragstart" , function ( c ) { b . initDragDataTransfer ( c , a ) } , null , null , 2 ) ; e . attachListener ( a , "dragstart" , function ( ) { var c = b . dragRange = a . getSelection ( ) . getRanges ( ) [ 0 ] ; CKEDITOR . env . ie && 10 > CKEDITOR . env . version && ( b . dragStartContainerChildCount =
var e = a . editable ( ) , f = CKEDITOR . plugins . clipboard . getDropTarget ( a ) , l = a . ui . space ( "top" ) , m = a . ui . space ( "bottom" ) ; b . preventDefaultDropOnElement ( l ) ; b . preventDefaultDropOnElement ( m ) ; e . attachListener ( f , "dragstart" , g ) ; e . attachListener ( a , "dragstart" , b . resetDragDataTransfer , b , null , 1 ) ; e . attachListener ( a , "dragstart" , function ( c ) { b . initDragDataTransfer ( c , a ) } , null , null , 2 ) ; e . attachListener ( a , "dragstart" , function ( ) { var c = b . dragRange = a . getSelection ( ) . getRanges ( ) [ 0 ] ; CKEDITOR . env . ie && 10 > CKEDITOR . env . version && ( b . dragStartContainerChildCount =
c ? h ( c . startContainer ) : null , b . dragEndContainerChildCount = c ? h ( c . endContainer ) : null ) } , null , null , 100 ) ; e . attachListener ( f , "dragend" , g ) ; e . attachListener ( a , "dragend" , b . initDragDataTransfer , b , null , 1 ) ; e . attachListener ( a , "dragend" , b . resetDragDataTransfer , b , null , 100 ) ; e . attachListener ( f , "dragover" , function ( a ) { if ( CKEDITOR . env . edge ) a . data . preventDefault ( ) ; else { var b = a . data . getTarget ( ) ; b && b . is && b . is ( "html" ) ? a . data . preventDefault ( ) : CKEDITOR . env . ie && CKEDITOR . plugins . clipboard . isFileApiSupported && a . data . $ . dataTransfer . types . contains ( "Files" ) &&
a . data . preventDefault ( ) } } ) ; e . attachListener ( f , "drop" , function ( c ) { if ( ! c . data . $ . defaultPrevented ) { c . data . preventDefault ( ) ; var e = c . data . getTarget ( ) ; if ( ! e . isReadOnly ( ) || e . type == CKEDITOR . NODE _ELEMENT && e . is ( "html" ) ) { var e = b . getRangeAtDropPosition ( c , a ) , d = b . dragRange ; e && g ( c , d , e ) } } } , null , null , 9999 ) ; e . attachListener ( a , "drop" , b . initDragDataTransfer , b , null , 1 ) ; e . attachListener ( a , "drop" , function ( e ) { if ( e = e . data ) { var h = e . dropRange , f = e . dragRange , g = e . dataTransfer ; g . getTransferType ( a ) == CKEDITOR . DATA _TRANSFER _INTERNAL ?
setTimeout ( function ( ) { b . internalDrop ( f , h , g , a ) } , 0 ) : g . getTransferType ( a ) == CKEDITOR . DATA _TRANSFER _CROSS _EDITORS ? c ( f , h , g ) : d ( h , g ) } } , null , null , 9999 ) } ) } var m ; CKEDITOR . plugins . add ( "clipboard" , { requires : "dialog,notification,toolbar" , init : function ( a ) { var b , c = C ( ) ; a . config . forcePasteAsPlainText ? b = "plain-text" : a . config . pasteFilter ? b = a . config . pasteFilter : ! CKEDITOR . env . webkit || "pasteFilter" in a . config || ( b = "semantic-content" ) ; a . pasteFilter = c . get ( b ) ; x ( a ) ; E ( a ) ; CKEDITOR . dialog . add ( "paste" , CKEDITOR . getUrl ( this . path +
"dialogs/paste.js" ) ) ; if ( CKEDITOR . env . gecko ) { var d = [ "image/png" , "image/jpeg" , "image/gif" ] , g ; a . on ( "paste" , function ( b ) { var c = b . data , f = c . dataTransfer ; if ( ! c . dataValue && "paste" == c . method && f && 1 == f . getFilesCount ( ) && g != f . id && ( f = f . getFile ( 0 ) , - 1 != CKEDITOR . tools . indexOf ( d , f . type ) ) ) { var k = new FileReader ; k . addEventListener ( "load" , function ( ) { b . data . dataValue = '\x3cimg src\x3d"' + k . result + '" /\x3e' ; a . fire ( "paste" , b . data ) } , ! 1 ) ; k . addEventListener ( "abort" , function ( ) { a . fire ( "paste" , b . data ) } , ! 1 ) ; k . addEventListener ( "error" ,
function ( ) { a . fire ( "paste" , b . data ) } , ! 1 ) ; k . readAsDataURL ( f ) ; g = c . dataTransfer . id ; b . stop ( ) } } , null , null , 1 ) } a . on ( "paste" , function ( b ) { b . data . dataTransfer || ( b . data . dataTransfer = new CKEDITOR . plugins . clipboard . dataTransfer ) ; if ( ! b . data . dataValue ) { var c = b . data . dataTransfer , d = c . getData ( "text/html" ) ; if ( d ) b . data . dataValue = d , b . data . type = "html" ; else if ( d = c . getData ( "text/plain" ) ) b . data . dataValue = a . editable ( ) . transformPlainTextToHtml ( d ) , b . data . type = "text" } } , null , null , 1 ) ; a . on ( "paste" , function ( a ) { var b = a . data . dataValue ,
"dialogs/paste.js" ) ) ; if ( CKEDITOR . env . gecko ) { var d = [ "image/png" , "image/jpeg" , "image/gif" ] , g ; a . on ( "paste" , function ( b ) { var c = b . data , f = c . dataTransfer ; if ( ! c . dataValue && "paste" == c . method && f && 1 == f . getFilesCount ( ) && g != f . id && ( f = f . getFile ( 0 ) , - 1 != CKEDITOR . tools . indexOf ( d , f . type ) ) ) { var l = new FileReader ; l . addEventListener ( "load" , function ( ) { b . data . dataValue = '\x3cimg src\x3d"' + l . result + '" /\x3e' ; a . fire ( "paste" , b . data ) } , ! 1 ) ; l . addEventListener ( "abort" , function ( ) { a . fire ( "paste" , b . data ) } , ! 1 ) ; l . addEventListener ( "error" ,
function ( ) { a . fire ( "paste" , b . data ) } , ! 1 ) ; l . readAsDataURL ( f ) ; g = c . dataTransfer . id ; b . stop ( ) } } , null , null , 1 ) } a . on ( "paste" , function ( b ) { b . data . dataTransfer || ( b . data . dataTransfer = new CKEDITOR . plugins . clipboard . dataTransfer ) ; if ( ! b . data . dataValue ) { var c = b . data . dataTransfer , d = c . getData ( "text/html" ) ; if ( d ) b . data . dataValue = d , b . data . type = "html" ; else if ( d = c . getData ( "text/plain" ) ) b . data . dataValue = a . editable ( ) . transformPlainTextToHtml ( d ) , b . data . type = "text" } } , null , null , 1 ) ; a . on ( "paste" , function ( a ) { var b = a . data . dataValue ,
c = CKEDITOR . dtd . $block ; - 1 < b . indexOf ( "Apple-" ) && ( b = b . replace ( /<span class="Apple-converted-space"> <\/span>/gi , " " ) , "html" != a . data . type && ( b = b . replace ( /<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi , function ( a , b ) { return b . replace ( /\t/g , "\x26nbsp;\x26nbsp; \x26nbsp;" ) } ) ) , - 1 < b . indexOf ( '\x3cbr class\x3d"Apple-interchange-newline"\x3e' ) && ( a . data . startsWithEOL = 1 , a . data . preSniffing = "html" , b = b . replace ( /<br class="Apple-interchange-newline">/ , "" ) ) , b = b . replace ( /(<[^>]+) class="Apple-[^"]*"/gi , "$1" ) ) ;
if ( b . match ( /^<[^<]+cke_(editable|contents)/i ) ) { var d , g , n = new CKEDITOR . dom . element ( "div" ) ; for ( n . setHtml ( b ) ; 1 == n . getChildCount ( ) && ( d = n . getFirst ( ) ) && d . type == CKEDITOR . NODE _ELEMENT && ( d . hasClass ( "cke_editable" ) || d . hasClass ( "cke_contents" ) ) ; ) n = g = d ; g && ( b = g . getHtml ( ) . replace ( /<br>$/i , "" ) ) } CKEDITOR . env . ie ? b = b . replace ( /^ (?: |\r\n)?<(\w+)/g , function ( b , d ) { return d . toLowerCase ( ) in c ? ( a . data . preSniffing = "html" , "\x3c" + d ) : b } ) : CKEDITOR . env . webkit ? b = b . replace ( /<\/(\w+)><div><br><\/div>$/ , function ( b , d ) { return d in
c ? ( a . data . endsWithEOL = 1 , "\x3c/" + d + "\x3e" ) : b } ) : CKEDITOR . env . gecko && ( b = b . replace ( /(\s)<br>$/ , "$1" ) ) ; a . data . dataValue = b } , null , null , 3 ) ; a . on ( "paste" , function ( b ) { b = b . data ; var d = a . _ . nextPasteType || b . type , f = b . dataValue , g , m = a . config . clipboard _defaultContentType || "html" , n = b . dataTransfer . getTransferType ( a ) ; g = "html" == d || "html" == b . preSniffing ? "html" : z ( f ) ; delete a . _ . nextPasteType ; "htmlifiedtext" == g && ( f = A ( a . config , f ) ) ; "text" == d && "html" == g ? f = w ( a , f , c . get ( "plain-text" ) ) : n == CKEDITOR . DATA _TRANSFER _EXTERNAL && a . pasteFilter &&
! b . dontFilter && ( f = w ( a , f , a . pasteFilter ) ) ; b . startsWithEOL && ( f = '\x3cbr data-cke-eol\x3d"1"\x3e' + f ) ; b . endsWithEOL && ( f += '\x3cbr data-cke-eol\x3d"1"\x3e' ) ; "auto" == d && ( d = "html" == g || "html" == m ? "html" : "text" ) ; b . type = d ; b . dataValue = f ; delete b . preSniffing ; delete b . startsWithEOL ; delete b . endsWithEOL } , null , null , 6 ) ; a . on ( "paste" , function ( b ) { b = b . data ; b . dataValue && ( a . insertHtml ( b . dataValue , b . type , b . range ) , setTimeout ( function ( ) { a . fire ( "afterPaste" ) } , 0 ) ) } , null , null , 1E3 ) ; a . on ( "pasteDialog" , function ( b ) { setTimeout ( function ( ) { a . openDialog ( "paste" ,
b . data ) } , 0 ) } ) } } ) ; CKEDITOR . plugins . clipboard = { isCustomCopyCutSupported : ( ! CKEDITOR . env . ie || 16 <= CKEDITOR . env . version ) && ! CKEDITOR . env . iOS , isCustomDataTypesSupported : ! CKEDITOR . env . ie || 16 <= CKEDITOR . env . version , isFileApiSupported : ! CKEDITOR . env . ie || 9 < CKEDITOR . env . version , mainPasteEvent : CKEDITOR . env . ie && ! CKEDITOR . env . edge ? "beforepaste" : "paste" , addPasteButton : function ( a , b , c ) { a . ui . addButton && ( a . ui . addButton ( b , c ) , a . _ . pasteButtons || ( a . _ . pasteButtons = [ ] ) , a . _ . pasteButtons . push ( b ) ) } , canClipboardApiBeTrusted : function ( a ,
b ) { return a . getTransferType ( b ) != CKEDITOR . DATA _TRANSFER _EXTERNAL || CKEDITOR . env . chrome && ! a . isEmpty ( ) || CKEDITOR . env . gecko && ( a . getData ( "text/html" ) || a . getFilesCount ( ) ) || CKEDITOR . env . safari && 603 <= CKEDITOR . env . version && ! CKEDITOR . env . iOS || CKEDITOR . env . edge && 16 <= CKEDITOR . env . version ? ! 0 : ! 1 } , getDropTarget : function ( a ) { var b = a . editable ( ) ; return CKEDITOR . env . ie && 9 > CKEDITOR . env . version || b . isInline ( ) ? b : a . document } , fixSplitNodesAfterDrop : function ( a , b , c , d ) { function g ( a , c , d ) { var g = a ; g . type == CKEDITOR . NODE _TEXT && ( g =
a . getParent ( ) ) ; if ( g . equals ( c ) && d != c . getChildCount ( ) ) return a = b . startContainer . getChild ( b . startOffset - 1 ) , c = b . startContainer . getChild ( b . startOffset ) , a && a . type == CKEDITOR . NODE _TEXT && c && c . type == CKEDITOR . NODE _TEXT && ( d = a . getLength ( ) , a . setText ( a . getText ( ) + c . getText ( ) ) , c . remove ( ) , b . setStart ( a , d ) , b . collapse ( ! 0 ) ) , ! 0 } var h = b . startContainer ; "number" == typeof d && "number" == typeof c && h . type == CKEDITOR . NODE _ELEMENT && ( g ( a . startContainer , h , c ) || g ( a . endContainer , h , d ) ) } , isDropRangeAffectedByDragRange : function ( a , b ) { var c =
b . startContainer , d = b . endOffset ; return a . endContainer . equals ( c ) && a . endOffset <= d || a . startContainer . getParent ( ) . equals ( c ) && a . startContainer . getIndex ( ) < d || a . endContainer . getParent ( ) . equals ( c ) && a . endContainer . getIndex ( ) < d ? ! 0 : ! 1 } , internalDrop : function ( a , b , c , d ) { var g = CKEDITOR . plugins . clipboard , h = d . editable ( ) , e , f ; d . fire ( "saveSnapshot" ) ; d . fire ( "lockSnapshot" , { dontUpdate : 1 } ) ; CKEDITOR . env . ie && 10 > CKEDITOR . env . version && this . fixSplitNodesAfterDrop ( a , b , g . dragStartContainerChildCount , g . dragEndContainerChildCount ) ;
( f = this . isDropRangeAffectedByDragRange ( a , b ) ) || ( e = a . createBookmark ( ! 1 ) ) ; g = b . clone ( ) . createBookmark ( ! 1 ) ; f && ( e = a . createBookmark ( ! 1 ) ) ; a = e . startNode ; b = e . endNode ; f = g . startNode ; b && a . getPosition ( f ) & CKEDITOR . POSITION _PRECEDING && b . getPosition ( f ) & CKEDITOR . POSITION _FOLLOWING && f . insertBefore ( a ) ; a = d . createRange ( ) ; a . moveToBookmark ( e ) ; h . extractHtmlFromRange ( a , 1 ) ; b = d . createRange ( ) ; b . moveToBookmark ( g ) ; r ( d , { dataTransfer : c , method : "drop" , range : b } , 1 ) ; d . fire ( "unlockSnapshot" ) } , getRangeAtDropPosition : function ( a , b ) { var c =
a . data . $ , d = c . clientX , g = c . clientY , h = b . getSelection ( ! 0 ) . getRanges ( ) [ 0 ] , e = b . createRange ( ) ; if ( a . data . testRange ) return a . data . testRange ; if ( document . caretRangeFromPoint && b . document . $ . caretRangeFromPoint ( d , g ) ) c = b . document . $ . caretRangeFromPoint ( d , g ) , e . setStart ( CKEDITOR . dom . node ( c . startContainer ) , c . startOffset ) , e . collapse ( ! 0 ) ; else if ( c . rangeParent ) e . setStart ( CKEDITOR . dom . node ( c . rangeParent ) , c . rangeOffset ) , e . collapse ( ! 0 ) ; else { if ( CKEDITOR . env . ie && 8 < CKEDITOR . env . version && h && b . editable ( ) . hasFocus ) return h ; if ( document . body . createTextRange ) { b . focus ( ) ;
c = b . document . getBody ( ) . $ . createTextRange ( ) ; try { for ( var f = ! 1 , k = 0 ; 20 > k && ! f ; k ++ ) { if ( ! f ) try { c . moveToPoint ( d , g - k ) , f = ! 0 } catch ( m ) { } if ( ! f ) try { c . moveToPoint ( d , g + k ) , f = ! 0 } catch ( n ) { } } if ( f ) { var l = "cke-temp-" + ( new Date ) . getTime ( ) ; c . pasteHTML ( '\x3cspan id\x3d"' + l + '"\x3e \x3c/span\x3e' ) ; var t = b . document . getById ( l ) ; e . moveToPosition ( t , CKEDITOR . POSITION _BEFORE _START ) ; t . remove ( ) } else { var q = b . document . $ . elementFromPoint ( d , g ) , p = new CKEDITOR . dom . element ( q ) , r ; if ( p . equals ( b . editable ( ) ) || "html" == p . getName ( ) ) return h && h . startContainer &&
! h . startContainer . equals ( b . editable ( ) ) ? h : null ; r = p . getClientRect ( ) ; d < r . left ? e . setStartAt ( p , CKEDITOR . POSITION _AFTER _START ) : e . setStartAt ( p , CKEDITOR . POSITION _BEFORE _END ) ; e . collapse ( ! 0 ) } } catch ( u ) { return null } } else return null } return e } , initDragDataTransfer : function ( a , b ) { var c = a . data . $ ? a . data . $ . dataTransfer : null , d = new this . dataTransfer ( c , b ) ; "dragstart" === a . name && d . storeId ( ) ; c ? this . dragData && d . id == this . dragData . id ? d = this . dragData : this . dragData = d : this . dragData ? d = this . dragData : this . dragData = d ; a . data . dataTransfer =
d } , resetDragDataTransfer : function ( ) { this . dragData = null } , initPasteDataTransfer : function ( a , b ) { if ( this . isCustomCopyCutSupported ) { if ( a && a . data && a . data . $ ) { var c = a . data . $ . clipboardData , d = new this . dataTransfer ( c , b ) ; "copy" !== a . name && "cut" !== a . name || d . storeId ( ) ; this . copyCutData && d . id == this . copyCutData . id ? ( d = this . copyCutData , d . $ = c ) : this . copyCutData = d ; return d } return new this . dataTransfer ( null , b ) } return new this . dataTransfer ( CKEDITOR . env . edge && a && a . data . $ && a . data . $ . clipboardData || null , b ) } , preventDefaultDropOnElement : function ( a ) { a &&
a . on ( "dragover" , D ) } } ; m = CKEDITOR . plugins . clipboard . isCustomDataTypesSupported ? "cke/id" : "Text" ; CKEDITOR . plugins . clipboard . dataTransfer = function ( a , b ) { a && ( this . $ = a ) ; this . _ = { metaRegExp : /^<meta.*?>/i , bodyRegExp : /<body(?:[\s\S]*?)>([\s\S]*)<\/body>/i , fragmentRegExp : /\x3c!--(?:Start|End)Fragment--\x3e/g , data : { } , files : [ ] , nativeHtmlCache : "" , normalizeType : function ( a ) { a = a . toLowerCase ( ) ; return "text" == a || "text/plain" == a ? "Text" : "url" == a ? "URL" : a } } ; this . _ . fallbackDataTransfer = new CKEDITOR . plugins . clipboard . fallbackDataTransfer ( this ) ;
this . id = this . getData ( m ) ; this . id || ( this . id = "Text" == m ? "" : "cke-" + CKEDITOR . tools . getUniqueId ( ) ) ; b && ( this . sourceEditor = b , this . setData ( "text/html" , b . getSelectedHtml ( 1 ) ) , "Text" == m || this . getData ( "text/plain" ) || this . setData ( "text/plain" , b . getSelection ( ) . getSelectedText ( ) ) ) } ; CKEDITOR . DATA _TRANSFER _INTERNAL = 1 ; CKEDITOR . DATA _TRANSFER _CROSS _EDITORS = 2 ; CKEDITOR . DATA _TRANSFER _EXTERNAL = 3 ; CKEDITOR . plugins . clipboard . dataTransfer . prototype = { getData : function ( a , b ) { a = this . _ . normalizeType ( a ) ; var c = "text/html" == a && b ? this . _ . nativeHtmlCache :
this . _ . data [ a ] ; if ( void 0 === c || null === c || "" === c ) { if ( this . _ . fallbackDataTransfer . isRequired ( ) ) c = this . _ . fallbackDataTransfer . getData ( a , b ) ; else try { c = this . $ . getData ( a ) || "" } catch ( d ) { c = "" } "text/html" != a || b || ( c = this . _stripHtml ( c ) ) } "Text" == a && CKEDITOR . env . gecko && this . getFilesCount ( ) && "file://" == c . substring ( 0 , 7 ) && ( c = "" ) ; if ( "string" === typeof c ) var g = c . indexOf ( "\x3c/html\x3e" ) , c = - 1 !== g ? c . substring ( 0 , g + 7 ) : c ; return c } , setData : function ( a , b ) { a = this . _ . normalizeType ( a ) ; "text/html" == a ? ( this . _ . data [ a ] = this . _stripHtml ( b ) ,
this . _ . nativeHtmlCache = b ) : this . _ . data [ a ] = b ; if ( CKEDITOR . plugins . clipboard . isCustomDataTypesSupported || "URL" == a || "Text" == a ) if ( "Text" == m && "Text" == a && ( this . id = b ) , this . _ . fallbackDataTransfer . isRequired ( ) ) this . _ . fallbackDataTransfer . setData ( a , b ) ; else try { this . $ . setData ( a , b ) } catch ( c ) { } } , storeId : function ( ) { "Text" !== m && this . setData ( m , this . id ) } , getTransferType : function ( a ) { return this . sourceEditor ? this . sourceEditor == a ? CKEDITOR . DATA _TRANSFER _INTERNAL : CKEDITOR . DATA _TRANSFER _CROSS _EDITORS : CKEDITOR . DATA _TRANSFER _EXTERNAL } ,
cacheData : function ( ) { function a ( a ) { a = b . _ . normalizeType ( a ) ; var c = b . getData ( a ) ; "text/html" == a && ( b . _ . nativeHtmlCache = b . getData ( a , ! 0 ) , c = b . _stripHtml ( c ) ) ; c && ( b . _ . data [ a ] = c ) } if ( this . $ ) { var b = this , c , d ; if ( CKEDITOR . plugins . clipboard . isCustomDataTypesSupported ) { if ( this . $ . types ) for ( c = 0 ; c < this . $ . types . length ; c ++ ) a ( this . $ . types [ c ] ) } else a ( "Text" ) , a ( "URL" ) ; d = this . _getImageFromClipboard ( ) ; if ( this . $ && this . $ . files || d ) { this . _ . files = [ ] ; if ( this . $ . files && this . $ . files . length ) for ( c = 0 ; c < this . $ . files . length ; c ++ ) this . _ . files . push ( this . $ . files [ c ] ) ;
0 === this . _ . files . length && d && this . _ . files . push ( d ) } } } , getFilesCount : function ( ) { return this . _ . files . length ? this . _ . files . length : this . $ && this . $ . files && this . $ . files . length ? this . $ . files . length : this . _getImageFromClipboard ( ) ? 1 : 0 } , getFile : function ( a ) { return this . _ . files . length ? this . _ . files [ a ] : this . $ && this . $ . files && this . $ . files . length ? this . $ . files [ a ] : 0 === a ? this . _getImageFromClipboard ( ) : void 0 } , isEmpty : function ( ) { var a = { } , b ; if ( this . getFilesCount ( ) ) return ! 1 ; CKEDITOR . tools . array . forEach ( CKEDITOR . tools . objectKeys ( this . _ . data ) ,
function ( b ) { a [ b ] = 1 } ) ; if ( this . $ ) if ( CKEDITOR . plugins . clipboard . isCustomDataTypesSupported ) { if ( this . $ . types ) for ( var c = 0 ; c < this . $ . types . length ; c ++ ) a [ this . $ . types [ c ] ] = 1 } else a . Text = 1 , a . URL = 1 ; "Text" != m && ( a [ m ] = 0 ) ; for ( b in a ) if ( a [ b ] && "" !== this . getData ( b ) ) return ! 1 ; return ! 0 } , _getImageFromClipboard : function ( ) { var a ; if ( this . $ && this . $ . items && this . $ . items [ 0 ] ) try { if ( ( a = this . $ . items [ 0 ] . getAsFile ( ) ) && a . type ) return a } catch ( b ) { } } , _stripHtml : function ( a ) { if ( a && a . length ) { a = a . replace ( this . _ . metaRegExp , "" ) ; var b = this . _ . bodyRegExp . exec ( a ) ;
b && b . length && ( a = b [ 1 ] , a = a . replace ( this . _ . fragmentRegExp , "" ) ) } return a } } ; CKEDITOR . plugins . clipboard . fallbackDataTransfer = function ( a ) { this . _dataTransfer = a ; this . _customDataFallbackType = "text/html" } ; CKEDITOR . plugins . clipboard . fallbackDataTransfer . _isCustomMimeTypeSupported = null ; CKEDITOR . plugins . clipboard . fallbackDataTransfer . _customTypes = [ ] ; CKEDITOR . plugins . clipboard . fallbackDataTransfer . prototype = { isRequired : function ( ) { var a = CKEDITOR . plugins . clipboard . fallbackDataTransfer , b = this . _dataTransfer . $ ; if ( null ===
a . _isCustomMimeTypeSupported ) if ( b ) { a . _isCustomMimeTypeSupported = ! 1 ; try { b . setData ( "cke/mimetypetest" , "cke test value" ) , a . _isCustomMimeTypeSupported = "cke test value" === b . getData ( "cke/mimetypetest" ) , b . clearData ( "cke/mimetypetest" ) } catch ( c ) { } } else return ! 1 ; return ! a . _isCustomMimeTypeSupported } , getData : function ( a , b ) { var c = this . _getData ( this . _customDataFallbackType , ! 0 ) ; if ( b ) return c ; var c = this . _extractDataComment ( c ) , d = null , d = a === this . _customDataFallbackType ? c . content : c . data && c . data [ a ] ? c . data [ a ] : this . _getData ( a ,
! 0 ) ; return null !== d ? d : "" } , setData : function ( a , b ) { var c = a === this . _customDataFallbackType ; c && ( b = this . _applyDataComment ( b , this . _getFallbackTypeData ( ) ) ) ; var d = b , g = this . _dataTransfer . $ ; try { g . setData ( a , d ) , c && ( this . _dataTransfer . _ . nativeHtmlCache = d ) } catch ( h ) { if ( this . _isUnsupportedMimeTypeError ( h ) ) { c = CKEDITOR . plugins . clipboard . fallbackDataTransfer ; - 1 === CKEDITOR . tools . indexOf ( c . _customTypes , a ) && c . _customTypes . push ( a ) ; var c = this . _getFallbackTypeContent ( ) , e = this . _getFallbackTypeData ( ) ; e [ a ] = d ; try { d = this . _applyDataComment ( c ,
e ) , g . setData ( this . _customDataFallbackType , d ) , this . _dataTransfer . _ . nativeHtmlCache = d } catch ( f ) { d = "" } } } return d } , _getData : function ( a , b ) { var c = this . _dataTransfer . _ . data ; if ( ! b && c [ a ] ) return c [ a ] ; try { return this . _dataTransfer . $ . getData ( a ) } catch ( d ) { return null } } , _getFallbackTypeContent : function ( ) { var a = this . _dataTransfer . _ . data [ this . _customDataFallbackType ] ; a || ( a = this . _extractDataComment ( this . _getData ( this . _customDataFallbackType , ! 0 ) ) . content ) ; return a } , _getFallbackTypeData : function ( ) { var a = CKEDITOR . plugins . clipboard . fallbackDataTransfer . _customTypes ,
b = this . _extractDataComment ( this . _getData ( this . _customDataFallbackType , ! 0 ) ) . data || { } , c = this . _dataTransfer . _ . data ; CKEDITOR . tools . array . forEach ( a , function ( a ) { void 0 !== c [ a ] ? b [ a ] = c [ a ] : void 0 !== b [ a ] && ( b [ a ] = b [ a ] ) } , this ) ; return b } , _isUnsupportedMimeTypeError : function ( a ) { return a . message && - 1 !== a . message . search ( /element not found/gi ) } , _extractDataComment : function ( a ) { var b = { data : null , content : a || "" } ; if ( a && 16 < a . length ) { var c ; ( c = /\x3c!--cke-data:(.*?)--\x3e/g . exec ( a ) ) && c [ 1 ] && ( b . data = JSON . parse ( decodeURIComponent ( c [ 1 ] ) ) ,
b . content = a . replace ( c [ 0 ] , "" ) ) } return b } , _applyDataComment : function ( a , b ) { var c = "" ; b && CKEDITOR . tools . objectKeys ( b ) . length && ( c = "\x3c!--cke-data:" + encodeURIComponent ( JSON . stringify ( b ) ) + "--\x3e" ) ; return c + ( a && a . length ? a : "" ) } } } ) ( ) ; CKEDITOR . config . clipboard _notificationDuration = 1E4 ; CKEDITOR . plugins . add ( "panelbutton" , { requires : "button" , onLoad : function ( ) { function e ( c ) { var a = this . _ ; a . state != CKEDITOR . TRISTATE _DISABLED && ( this . createPanel ( c ) , a . on ? a . panel . hide ( ) : a . panel . showBlock ( this . _ . id , this . document . getById ( this . _ . id ) , 4 ) ) } CKEDITOR . ui . panelButton = CKEDITOR . tools . createClass ( { base : CKEDITOR . ui . button , $ : function ( c ) { var a = c . panel || { } ; delete c . panel ; this . base ( c ) ; this . document = a . parent && a . parent . getDocument ( ) || CKEDITOR . document ; a . block = { attributes : a . attributes } ; this . hasArrow = a . toolbarRelated =
c ? ( a . data . endsWithEOL = 1 , "\x3c/" + d + "\x3e" ) : b } ) : CKEDITOR . env . gecko && ( b = b . replace ( /(\s)<br>$/ , "$1" ) ) ; a . data . dataValue = b } , null , null , 3 ) ; a . on ( "paste" , function ( b ) { b = b . data ; var d = a . _ . nextPasteType || b . type , f = b . dataValue , g , m = a . config . clipboard _defaultContentType || "html" , n = b . dataTransfer . getTransferType ( a ) == CKEDITOR . DATA _TRANSFER _EXTERNAL , k = ! 0 === a . config . forcePasteAsPlainText ; g = "html" == d || "html" == b . preSniffing ? "html" : z ( f ) ; delete a . _ . nextPasteType ; "htmlifiedtext" == g && ( f = A ( a . config , f ) ) ; if ( "text" == d && "html" == g ) f =
w ( a , f , c . get ( "plain-text" ) ) ; else if ( n && a . pasteFilter && ! b . dontFilter || k ) f = w ( a , f , a . pasteFilter ) ; b . startsWithEOL && ( f = '\x3cbr data-cke-eol\x3d"1"\x3e' + f ) ; b . endsWithEOL && ( f += '\x3cbr data-cke-eol\x3d"1"\x3e' ) ; "auto" == d && ( d = "html" == g || "html" == m ? "html" : "text" ) ; b . type = d ; b . dataValue = f ; delete b . preSniffing ; delete b . startsWithEOL ; delete b . endsWithEOL } , null , null , 6 ) ; a . on ( "paste" , function ( b ) { b = b . data ; b . dataValue && ( a . insertHtml ( b . dataValue , b . type , b . range ) , setTimeout ( function ( ) { a . fire ( "afterPaste" ) } , 0 ) ) } , null , null ,
1E3 ) ; a . on ( "pasteDialog" , function ( b ) { setTimeout ( function ( ) { a . openDialog ( "paste" , b . data ) } , 0 ) } ) } } ) ; CKEDITOR . plugins . clipboard = { isCustomCopyCutSupported : ( ! CKEDITOR . env . ie || 16 <= CKEDITOR . env . version ) && ! CKEDITOR . env . iOS , isCustomDataTypesSupported : ! CKEDITOR . env . ie || 16 <= CKEDITOR . env . version , isFileApiSupported : ! CKEDITOR . env . ie || 9 < CKEDITOR . env . version , mainPasteEvent : CKEDITOR . env . ie && ! CKEDITOR . env . edge ? "beforepaste" : "paste" , addPasteButton : function ( a , b , c ) { a . ui . addButton && ( a . ui . addButton ( b , c ) , a . _ . pasteButtons ||
( a . _ . pasteButtons = [ ] ) , a . _ . pasteButtons . push ( b ) ) } , canClipboardApiBeTrusted : function ( a , b ) { return a . getTransferType ( b ) != CKEDITOR . DATA _TRANSFER _EXTERNAL || CKEDITOR . env . chrome && ! a . isEmpty ( ) || CKEDITOR . env . gecko && ( a . getData ( "text/html" ) || a . getFilesCount ( ) ) || CKEDITOR . env . safari && 603 <= CKEDITOR . env . version && ! CKEDITOR . env . iOS || CKEDITOR . env . edge && 16 <= CKEDITOR . env . version ? ! 0 : ! 1 } , getDropTarget : function ( a ) { var b = a . editable ( ) ; return CKEDITOR . env . ie && 9 > CKEDITOR . env . version || b . isInline ( ) ? b : a . document } , fixSplitNodesAfterDrop : function ( a ,
b , c , d ) { function g ( a , c , d ) { var g = a ; g . type == CKEDITOR . NODE _TEXT && ( g = a . getParent ( ) ) ; if ( g . equals ( c ) && d != c . getChildCount ( ) ) return a = b . startContainer . getChild ( b . startOffset - 1 ) , c = b . startContainer . getChild ( b . startOffset ) , a && a . type == CKEDITOR . NODE _TEXT && c && c . type == CKEDITOR . NODE _TEXT && ( d = a . getLength ( ) , a . setText ( a . getText ( ) + c . getText ( ) ) , c . remove ( ) , b . setStart ( a , d ) , b . collapse ( ! 0 ) ) , ! 0 } var h = b . startContainer ; "number" == typeof d && "number" == typeof c && h . type == CKEDITOR . NODE _ELEMENT && ( g ( a . startContainer , h , c ) || g ( a . endContainer ,
h , d ) ) } , isDropRangeAffectedByDragRange : function ( a , b ) { var c = b . startContainer , d = b . endOffset ; return a . endContainer . equals ( c ) && a . endOffset <= d || a . startContainer . getParent ( ) . equals ( c ) && a . startContainer . getIndex ( ) < d || a . endContainer . getParent ( ) . equals ( c ) && a . endContainer . getIndex ( ) < d ? ! 0 : ! 1 } , internalDrop : function ( a , b , c , d ) { var g = CKEDITOR . plugins . clipboard , h = d . editable ( ) , e , f ; d . fire ( "saveSnapshot" ) ; d . fire ( "lockSnapshot" , { dontUpdate : 1 } ) ; CKEDITOR . env . ie && 10 > CKEDITOR . env . version && this . fixSplitNodesAfterDrop ( a , b , g . dragStartContainerChildCount ,
g . dragEndContainerChildCount ) ; ( f = this . isDropRangeAffectedByDragRange ( a , b ) ) || ( e = a . createBookmark ( ! 1 ) ) ; g = b . clone ( ) . createBookmark ( ! 1 ) ; f && ( e = a . createBookmark ( ! 1 ) ) ; a = e . startNode ; b = e . endNode ; f = g . startNode ; b && a . getPosition ( f ) & CKEDITOR . POSITION _PRECEDING && b . getPosition ( f ) & CKEDITOR . POSITION _FOLLOWING && f . insertBefore ( a ) ; a = d . createRange ( ) ; a . moveToBookmark ( e ) ; h . extractHtmlFromRange ( a , 1 ) ; b = d . createRange ( ) ; b . moveToBookmark ( g ) ; r ( d , { dataTransfer : c , method : "drop" , range : b } , 1 ) ; d . fire ( "unlockSnapshot" ) } , getRangeAtDropPosition : function ( a ,
b ) { var c = a . data . $ , d = c . clientX , g = c . clientY , h = b . getSelection ( ! 0 ) . getRanges ( ) [ 0 ] , e = b . createRange ( ) ; if ( a . data . testRange ) return a . data . testRange ; if ( document . caretRangeFromPoint && b . document . $ . caretRangeFromPoint ( d , g ) ) c = b . document . $ . caretRangeFromPoint ( d , g ) , e . setStart ( CKEDITOR . dom . node ( c . startContainer ) , c . startOffset ) , e . collapse ( ! 0 ) ; else if ( c . rangeParent ) e . setStart ( CKEDITOR . dom . node ( c . rangeParent ) , c . rangeOffset ) , e . collapse ( ! 0 ) ; else { if ( CKEDITOR . env . ie && 8 < CKEDITOR . env . version && h && b . editable ( ) . hasFocus ) return h ;
if ( document . body . createTextRange ) { b . focus ( ) ; c = b . document . getBody ( ) . $ . createTextRange ( ) ; try { for ( var f = ! 1 , l = 0 ; 20 > l && ! f ; l ++ ) { if ( ! f ) try { c . moveToPoint ( d , g - l ) , f = ! 0 } catch ( m ) { } if ( ! f ) try { c . moveToPoint ( d , g + l ) , f = ! 0 } catch ( n ) { } } if ( f ) { var k = "cke-temp-" + ( new Date ) . getTime ( ) ; c . pasteHTML ( '\x3cspan id\x3d"' + k + '"\x3e \x3c/span\x3e' ) ; var t = b . document . getById ( k ) ; e . moveToPosition ( t , CKEDITOR . POSITION _BEFORE _START ) ; t . remove ( ) } else { var q = b . document . $ . elementFromPoint ( d , g ) , p = new CKEDITOR . dom . element ( q ) , r ; if ( p . equals ( b . editable ( ) ) ||
"html" == p . getName ( ) ) return h && h . startContainer && ! h . startContainer . equals ( b . editable ( ) ) ? h : null ; r = p . getClientRect ( ) ; d < r . left ? e . setStartAt ( p , CKEDITOR . POSITION _AFTER _START ) : e . setStartAt ( p , CKEDITOR . POSITION _BEFORE _END ) ; e . collapse ( ! 0 ) } } catch ( u ) { return null } } else return null } return e } , initDragDataTransfer : function ( a , b ) { var c = a . data . $ ? a . data . $ . dataTransfer : null , d = new this . dataTransfer ( c , b ) ; "dragstart" === a . name && d . storeId ( ) ; c ? this . dragData && d . id == this . dragData . id ? d = this . dragData : this . dragData = d : this . dragData ?
d = this . dragData : this . dragData = d ; a . data . dataTransfer = d } , resetDragDataTransfer : function ( ) { this . dragData = null } , initPasteDataTransfer : function ( a , b ) { if ( this . isCustomCopyCutSupported ) { if ( a && a . data && a . data . $ ) { var c = a . data . $ . clipboardData , d = new this . dataTransfer ( c , b ) ; "copy" !== a . name && "cut" !== a . name || d . storeId ( ) ; this . copyCutData && d . id == this . copyCutData . id ? ( d = this . copyCutData , d . $ = c ) : this . copyCutData = d ; return d } return new this . dataTransfer ( null , b ) } return new this . dataTransfer ( CKEDITOR . env . edge && a && a . data . $ &&
a . data . $ . clipboardData || null , b ) } , preventDefaultDropOnElement : function ( a ) { a && a . on ( "dragover" , D ) } } ; m = CKEDITOR . plugins . clipboard . isCustomDataTypesSupported ? "cke/id" : "Text" ; CKEDITOR . plugins . clipboard . dataTransfer = function ( a , b ) { a && ( this . $ = a ) ; this . _ = { metaRegExp : /^<meta.*?>/i , bodyRegExp : /<body(?:[\s\S]*?)>([\s\S]*)<\/body>/i , fragmentRegExp : /\x3c!--(?:Start|End)Fragment--\x3e/g , data : { } , files : [ ] , nativeHtmlCache : "" , normalizeType : function ( a ) { a = a . toLowerCase ( ) ; return "text" == a || "text/plain" == a ? "Text" : "url" == a ?
"URL" : a } } ; this . _ . fallbackDataTransfer = new CKEDITOR . plugins . clipboard . fallbackDataTransfer ( this ) ; this . id = this . getData ( m ) ; this . id || ( this . id = "Text" == m ? "" : "cke-" + CKEDITOR . tools . getUniqueId ( ) ) ; b && ( this . sourceEditor = b , this . setData ( "text/html" , b . getSelectedHtml ( 1 ) ) , "Text" == m || this . getData ( "text/plain" ) || this . setData ( "text/plain" , b . getSelection ( ) . getSelectedText ( ) ) ) } ; CKEDITOR . DATA _TRANSFER _INTERNAL = 1 ; CKEDITOR . DATA _TRANSFER _CROSS _EDITORS = 2 ; CKEDITOR . DATA _TRANSFER _EXTERNAL = 3 ; CKEDITOR . plugins . clipboard . dataTransfer . prototype =
{ getData : function ( a , b ) { a = this . _ . normalizeType ( a ) ; var c = "text/html" == a && b ? this . _ . nativeHtmlCache : this . _ . data [ a ] ; if ( void 0 === c || null === c || "" === c ) { if ( this . _ . fallbackDataTransfer . isRequired ( ) ) c = this . _ . fallbackDataTransfer . getData ( a , b ) ; else try { c = this . $ . getData ( a ) || "" } catch ( d ) { c = "" } "text/html" != a || b || ( c = this . _stripHtml ( c ) ) } "Text" == a && CKEDITOR . env . gecko && this . getFilesCount ( ) && "file://" == c . substring ( 0 , 7 ) && ( c = "" ) ; if ( "string" === typeof c ) var g = c . indexOf ( "\x3c/html\x3e" ) , c = - 1 !== g ? c . substring ( 0 , g + 7 ) : c ; return c } ,
setData : function ( a , b ) { a = this . _ . normalizeType ( a ) ; "text/html" == a ? ( this . _ . data [ a ] = this . _stripHtml ( b ) , this . _ . nativeHtmlCache = b ) : this . _ . data [ a ] = b ; if ( CKEDITOR . plugins . clipboard . isCustomDataTypesSupported || "URL" == a || "Text" == a ) if ( "Text" == m && "Text" == a && ( this . id = b ) , this . _ . fallbackDataTransfer . isRequired ( ) ) this . _ . fallbackDataTransfer . setData ( a , b ) ; else try { this . $ . setData ( a , b ) } catch ( c ) { } } , storeId : function ( ) { "Text" !== m && this . setData ( m , this . id ) } , getTransferType : function ( a ) { return this . sourceEditor ? this . sourceEditor ==
a ? CKEDITOR . DATA _TRANSFER _INTERNAL : CKEDITOR . DATA _TRANSFER _CROSS _EDITORS : CKEDITOR . DATA _TRANSFER _EXTERNAL } , cacheData : function ( ) { function a ( a ) { a = b . _ . normalizeType ( a ) ; var c = b . getData ( a ) ; "text/html" == a && ( b . _ . nativeHtmlCache = b . getData ( a , ! 0 ) , c = b . _stripHtml ( c ) ) ; c && ( b . _ . data [ a ] = c ) } if ( this . $ ) { var b = this , c , d ; if ( CKEDITOR . plugins . clipboard . isCustomDataTypesSupported ) { if ( this . $ . types ) for ( c = 0 ; c < this . $ . types . length ; c ++ ) a ( this . $ . types [ c ] ) } else a ( "Text" ) , a ( "URL" ) ; d = this . _getImageFromClipboard ( ) ; if ( this . $ && this . $ . files ||
d ) { this . _ . files = [ ] ; if ( this . $ . files && this . $ . files . length ) for ( c = 0 ; c < this . $ . files . length ; c ++ ) this . _ . files . push ( this . $ . files [ c ] ) ; 0 === this . _ . files . length && d && this . _ . files . push ( d ) } } } , getFilesCount : function ( ) { return this . _ . files . length ? this . _ . files . length : this . $ && this . $ . files && this . $ . files . length ? this . $ . files . length : this . _getImageFromClipboard ( ) ? 1 : 0 } , getFile : function ( a ) { return this . _ . files . length ? this . _ . files [ a ] : this . $ && this . $ . files && this . $ . files . length ? this . $ . files [ a ] : 0 === a ? this . _getImageFromClipboard ( ) :
void 0 } , isEmpty : function ( ) { var a = { } , b ; if ( this . getFilesCount ( ) ) return ! 1 ; CKEDITOR . tools . array . forEach ( CKEDITOR . tools . objectKeys ( this . _ . data ) , function ( b ) { a [ b ] = 1 } ) ; if ( this . $ ) if ( CKEDITOR . plugins . clipboard . isCustomDataTypesSupported ) { if ( this . $ . types ) for ( var c = 0 ; c < this . $ . types . length ; c ++ ) a [ this . $ . types [ c ] ] = 1 } else a . Text = 1 , a . URL = 1 ; "Text" != m && ( a [ m ] = 0 ) ; for ( b in a ) if ( a [ b ] && "" !== this . getData ( b ) ) return ! 1 ; return ! 0 } , _getImageFromClipboard : function ( ) { var a ; if ( this . $ && this . $ . items && this . $ . items [ 0 ] ) try { if ( ( a = this . $ . items [ 0 ] . getAsFile ( ) ) &&
a . type ) return a } catch ( b ) { } } , _stripHtml : function ( a ) { if ( a && a . length ) { a = a . replace ( this . _ . metaRegExp , "" ) ; var b = this . _ . bodyRegExp . exec ( a ) ; b && b . length && ( a = b [ 1 ] , a = a . replace ( this . _ . fragmentRegExp , "" ) ) } return a } } ; CKEDITOR . plugins . clipboard . fallbackDataTransfer = function ( a ) { this . _dataTransfer = a ; this . _customDataFallbackType = "text/html" } ; CKEDITOR . plugins . clipboard . fallbackDataTransfer . _isCustomMimeTypeSupported = null ; CKEDITOR . plugins . clipboard . fallbackDataTransfer . _customTypes = [ ] ; CKEDITOR . plugins . clipboard . fallbackDataTransfer . prototype =
{ isRequired : function ( ) { var a = CKEDITOR . plugins . clipboard . fallbackDataTransfer , b = this . _dataTransfer . $ ; if ( null === a . _isCustomMimeTypeSupported ) if ( b ) { a . _isCustomMimeTypeSupported = ! 1 ; try { b . setData ( "cke/mimetypetest" , "cke test value" ) , a . _isCustomMimeTypeSupported = "cke test value" === b . getData ( "cke/mimetypetest" ) , b . clearData ( "cke/mimetypetest" ) } catch ( c ) { } } else return ! 1 ; return ! a . _isCustomMimeTypeSupported } , getData : function ( a , b ) { var c = this . _getData ( this . _customDataFallbackType , ! 0 ) ; if ( b ) return c ; var c = this . _extractDataComment ( c ) ,
d = null , d = a === this . _customDataFallbackType ? c . content : c . data && c . data [ a ] ? c . data [ a ] : this . _getData ( a , ! 0 ) ; return null !== d ? d : "" } , setData : function ( a , b ) { var c = a === this . _customDataFallbackType ; c && ( b = this . _applyDataComment ( b , this . _getFallbackTypeData ( ) ) ) ; var d = b , g = this . _dataTransfer . $ ; try { g . setData ( a , d ) , c && ( this . _dataTransfer . _ . nativeHtmlCache = d ) } catch ( h ) { if ( this . _isUnsupportedMimeTypeError ( h ) ) { c = CKEDITOR . plugins . clipboard . fallbackDataTransfer ; - 1 === CKEDITOR . tools . indexOf ( c . _customTypes , a ) && c . _customTypes . push ( a ) ;
var c = this . _getFallbackTypeContent ( ) , e = this . _getFallbackTypeData ( ) ; e [ a ] = d ; try { d = this . _applyDataComment ( c , e ) , g . setData ( this . _customDataFallbackType , d ) , this . _dataTransfer . _ . nativeHtmlCache = d } catch ( f ) { d = "" } } } return d } , _getData : function ( a , b ) { var c = this . _dataTransfer . _ . data ; if ( ! b && c [ a ] ) return c [ a ] ; try { return this . _dataTransfer . $ . getData ( a ) } catch ( d ) { return null } } , _getFallbackTypeContent : function ( ) { var a = this . _dataTransfer . _ . data [ this . _customDataFallbackType ] ; a || ( a = this . _extractDataComment ( this . _getData ( this . _customDataFallbackType ,
! 0 ) ) . content ) ; return a } , _getFallbackTypeData : function ( ) { var a = CKEDITOR . plugins . clipboard . fallbackDataTransfer . _customTypes , b = this . _extractDataComment ( this . _getData ( this . _customDataFallbackType , ! 0 ) ) . data || { } , c = this . _dataTransfer . _ . data ; CKEDITOR . tools . array . forEach ( a , function ( a ) { void 0 !== c [ a ] ? b [ a ] = c [ a ] : void 0 !== b [ a ] && ( b [ a ] = b [ a ] ) } , this ) ; return b } , _isUnsupportedMimeTypeError : function ( a ) { return a . message && - 1 !== a . message . search ( /element not found/gi ) } , _extractDataComment : function ( a ) { var b = { data : null , content : a ||
"" } ; if ( a && 16 < a . length ) { var c ; ( c = /\x3c!--cke-data:(.*?)--\x3e/g . exec ( a ) ) && c [ 1 ] && ( b . data = JSON . parse ( decodeURIComponent ( c [ 1 ] ) ) , b . content = a . replace ( c [ 0 ] , "" ) ) } return b } , _applyDataComment : function ( a , b ) { var c = "" ; b && CKEDITOR . tools . objectKeys ( b ) . length && ( c = "\x3c!--cke-data:" + encodeURIComponent ( JSON . stringify ( b ) ) + "--\x3e" ) ; return c + ( a && a . length ? a : "" ) } } } ) ( ) ; CKEDITOR . config . clipboard _notificationDuration = 1E4 ; CKEDITOR . plugins . add ( "panelbutton" , { requires : "button" , onLoad : function ( ) { function e ( c ) { var a = this . _ ; a . state != CKEDITOR . TRISTATE _DISABLED && ( this . createPanel ( c ) , a . on ? a . panel . hide ( ) : a . panel . showBlock ( this . _ . id , this . document . getById ( this . _ . id ) , 4 ) ) } CKEDITOR . ui . panelButton = CKEDITOR . tools . createClass ( { base : CKEDITOR . ui . button , $ : function ( c ) { var a = c . panel || { } ; delete c . panel ; this . base ( c ) ; this . document = a . parent && a . parent . getDocument ( ) || CKEDITOR . document ; a . block = { attributes : a . attributes } ; this . hasArrow = a . toolbarRelated =
! 0 ; this . click = e ; this . _ = { panelDefinition : a } } , statics : { handler : { create : function ( c ) { return new CKEDITOR . ui . panelButton ( c ) } } } , proto : { createPanel : function ( c ) { var a = this . _ ; if ( ! a . panel ) { var f = this . _ . panelDefinition , e = this . _ . panelDefinition . block , g = f . parent || CKEDITOR . document . getBody ( ) , d = this . _ . panel = new CKEDITOR . ui . floatPanel ( c , g , f ) , f = d . addBlock ( a . id , e ) , b = this ; d . onShow = function ( ) { b . className && this . element . addClass ( b . className + "_panel" ) ; b . setState ( CKEDITOR . TRISTATE _ON ) ; a . on = 1 ; b . editorFocus && c . focus ( ) ; if ( b . onOpen ) b . onOpen ( ) } ;
d . onHide = function ( d ) { b . className && this . element . getFirst ( ) . removeClass ( b . className + "_panel" ) ; b . setState ( b . modes && b . modes [ c . mode ] ? CKEDITOR . TRISTATE _OFF : CKEDITOR . TRISTATE _DISABLED ) ; a . on = 0 ; if ( ! d && b . onClose ) b . onClose ( ) } ; d . onEscape = function ( ) { d . hide ( 1 ) ; b . document . getById ( a . id ) . focus ( ) } ; if ( this . onBlock ) this . onBlock ( d , f ) ; f . onHide = function ( ) { a . on = 0 ; b . setState ( CKEDITOR . TRISTATE _OFF ) } } } } } ) } , beforeInit : function ( e ) { e . ui . addHandler ( CKEDITOR . UI _PANELBUTTON , CKEDITOR . ui . panelButton . handler ) } } ) ;
CKEDITOR . UI _PANELBUTTON = "panelbutton" ; ( function ( ) { CKEDITOR . plugins . add ( "panel" , { beforeInit : function ( a ) { a . ui . addHandler ( CKEDITOR . UI _PANEL , CKEDITOR . ui . panel . handler ) } } ) ; CKEDITOR . UI _PANEL = "panel" ; CKEDITOR . ui . panel = function ( a , b ) { b && CKEDITOR . tools . extend ( this , b ) ; CKEDITOR . tools . extend ( this , { className : "" , css : [ ] } ) ; this . id = CKEDITOR . tools . getNextId ( ) ; this . document = a ; this . isFramed = this . forceIFrame || this . css . length ; this . _ = { blocks : { } } } ; CKEDITOR . ui . panel . handler = { create : function ( a ) { return new CKEDITOR . ui . panel ( a ) } } ; var g = CKEDITOR . addTemplate ( "panel" ,
@@ -805,21 +813,21 @@ function(d){if(!d.data.preventFormatStripping){var e=d.data.range,c=b._extractSt
function ( b ) { var e = CKEDITOR . plugins . copyformatting , c = e . _determineContext ( b . data . range ) ; "list" === c && a . copyFormatting . _isContextAllowed ( "list" ) ? e . _applyStylesToListContext ( b . editor , b . data . range , b . data . styles ) : "table" === c && a . copyFormatting . _isContextAllowed ( "table" ) ? e . _applyStylesToTableContext ( b . editor , b . data . range , b . data . styles ) : a . copyFormatting . _isContextAllowed ( "text" ) && e . _applyStylesToTextContext ( b . editor , b . data . range , b . data . styles ) } , null , null , 999 ) } } ) ; q . prototype . _isContextAllowed = function ( a ) { var b =
this . editor . config . copyFormatting _allowedContexts ; return ! 0 === b || - 1 !== l ( b , a ) } ; CKEDITOR . event . implementOn ( q . prototype ) ; CKEDITOR . plugins . copyformatting = { state : q , inlineBoundary : "h1 h2 h3 h4 h5 h6 p div" . split ( " " ) , excludedAttributes : [ "id" , "style" , "href" , "data-cke-saved-href" , "dir" ] , elementsForInlineTransform : [ "li" ] , excludedElementsFromInlineTransform : [ "table" , "thead" , "tbody" , "ul" , "ol" ] , excludedAttributesFromInlineTransform : [ "value" , "type" ] , preservedElements : "ul ol li td th tr thead tbody table" . split ( " " ) ,
breakOnElements : [ "ul" , "ol" , "table" ] , _initialKeystrokePasteCommand : null , commands : { copyFormatting : { exec : function ( a , b ) { var d = CKEDITOR . plugins . copyformatting , e = a . copyFormatting , c = b ? "keystrokeHandler" == b . from : ! 1 , f = b ? b . sticky || c : ! 1 , g = d . _getCursorContainer ( a ) , h = CKEDITOR . document . getDocumentElement ( ) ; if ( this . state === CKEDITOR . TRISTATE _ON ) return e . styles = null , e . sticky = ! 1 , g . removeClass ( "cke_copyformatting_active" ) , h . removeClass ( "cke_copyformatting_disabled" ) , h . removeClass ( "cke_copyformatting_tableresize_cursor" ) ,
d . _putScreenReaderMessage ( a , "canceled" ) , d . _detachPasteKeystrokeHandler ( a ) , this . setState ( CKEDITOR . TRISTATE _OFF ) ; e . styles = d . _extractStylesFromElement ( a , a . elementPath ( ) . lastElement ) ; this . setState ( CKEDITOR . TRISTATE _ON ) ; c || ( g . addClass ( "cke_copyformatting_active" ) , h . addClass ( "cke_copyformatting_tableresize_cursor" ) , a . config . copyFormatting _outerCursor && h . addClass ( "cke_copyformatting_disabled" ) ) ; e . sticky = f ; d . _putScreenReaderMessage ( a , "copied" ) ; d . _attachPasteKeystrokeHandler ( a ) } } , applyFormatting : { editorFocus : ! 1 ,
exec : function ( a , b ) { var d = a . getCommand ( "copyFormatting" ) , e = b ? "keystrokeHandler" == b . from : ! 1 , c = CKEDITOR . plugins . copyformatting , f = a . copyFormatting , g = c . _getCursorContainer ( a ) , h = CKEDITOR . document . getDocumentElement ( ) ; if ( e || d . state === CKEDITOR . TRISTATE _ON ) { if ( e && ! f . styles ) return c . _putScreenReaderMessage ( a , "failed" ) , c . _detachPasteKeystrokeHandler ( a ) , ! 1 ; e = c . _applyFormat ( a , f . styles ) ; f . sticky || ( f . styles = null , g . removeClass ( "cke_copyformatting_active" ) , h . removeClass ( "cke_copyformatting_disabled" ) , h . removeClass ( "cke_copyformatting_tableresize_cursor" ) ,
d . setState ( CKEDITOR . TRISTATE _OFF ) , c . _detachPasteKeystrokeHandler ( a ) ) ; c . _putScreenReaderMessage ( a , e ? "applied" : "canceled" ) } } } } , _getCursorContainer : function ( a ) { return a . elementMode === CKEDITOR . ELEMENT _MODE _INLINE ? a . editable ( ) : a . editable ( ) . getParent ( ) } , _convertElementToStyleDef : function ( a ) { var b = CKEDITOR . tools , d = a . getAttributes ( CKEDITOR . plugins . copyformatting . excludedAttributes ) , b = b . parseCssText ( a . getAttribute ( "style" ) , ! 0 , ! 0 ) ; return { element : a . getName ( ) , type : CKEDITOR . STYLE _INLINE , attributes : d , styles : b } } ,
_extractStylesFromElement : function ( a , b ) { var d = { } , e = [ ] ; do if ( b . type === CKEDITOR . NODE _ELEMENT && ! b . hasAttribute ( "data-cke-bookmark" ) && ( d . element = b , a . copyFormatting . fire ( "extractFormatting" , d , a ) && d . styleDef && e . push ( new CKEDITOR . style ( d . styleDef ) ) , b . getName && - 1 !== l ( CKEDITOR . plugins . copyformatting . breakOnElements , b . getName ( ) ) ) ) break ; while ( ( b = b . getParent ( ) ) && b . type === CKEDITOR . NODE _ELEMENT ) ; return e } , _extractStylesFromRange : function ( a , b ) { for ( var d = [ ] , e = new CKEDITOR . dom . walker ( b ) , c ; c = e . next ( ) ; ) d = d . concat ( CKEDITOR . plugins . copyformatting . _extractStylesFromElement ( a ,
c ) ) ; return d } , _removeStylesFromElementInRange : function ( a , b ) { for ( var d = - 1 !== l ( [ "ol" , "ul" , "table" ] , b ) , e = new CKEDITOR . dom . walker ( a ) , c ; c = e . next ( ) ; ) if ( c = c . getAscendant ( b , ! 0 ) ) if ( c . removeAttributes ( c . getAttributes ( ) ) , d ) break } , _getSelectedWordOffset : function ( a ) { function b ( a , b ) { return a [ b ? "getPrevious" : "getNext" ] ( function ( a ) { return a . type !== CKEDITOR . NODE _COMMENT } ) } function d ( a ) { return a . type == CKEDITOR . NODE _ELEMENT ? ( a = a . getHtml ( ) . replace ( /<span.*?> <\/span>/g , "" ) , a . replace ( /<.*?>/g , "" ) ) : a . getText ( ) } function e ( a ,
c ) { var f = a , g = /\s/g , h = "p br ol ul li td th div caption body" . split ( " " ) , m = ! 1 , k = ! 1 , p , n ; do { for ( p = b ( f , c ) ; ! p && f . getParent ( ) ; ) { f = f . getParent ( ) ; if ( - 1 !== l ( h , f . getName ( ) ) ) { k = m = ! 0 ; break } p = b ( f , c ) } if ( p && p . getName && - 1 !== l ( h , p . getName ( ) ) ) { m = ! 0 ; break } f = p } while ( f && f . getStyle && ( "none" == f . getStyle ( "display" ) || ! f . getText ( ) ) ) ; for ( f || ( f = a ) ; f . type !== CKEDITOR . NODE _TEXT ; ) f = ! m || c || k ? f . getChild ( 0 ) : f . getChild ( f . getChildCount ( ) - 1 ) ; for ( h = d ( f ) ; null != ( k = g . exec ( h ) ) && ( n = k . index , c ) ; ) ; if ( "number" !== typeof n && ! m ) return e ( f , c ) ; if ( m ) c ?
n = 0 : ( g = /([\.\b]*$)/ , n = ( k = g . exec ( h ) ) ? k . index : h . length ) ; else if ( c && ( n += 1 , n > h . length ) ) return e ( f ) ; return { node : f , offset : n } } var c = /\b\w+\b/ig , f , g , h , m , k ; h = m = k = a . startContainer ; for ( f = d ( h ) ; null != ( g = c . exec ( f ) ) ; ) if ( g . index + g [ 0 ] . length >= a . startOffset ) return a = g . index , c = g . index + g [ 0 ] . length , 0 === g . index && ( g = e ( h , ! 0 ) , m = g . node , a = g . offset ) , c >= f . length && ( f = e ( h ) , k = f . node , c = f . offset ) , { startNode : m , startOffset : a , endNode : k , endOffset : c } ; return null } , _filterStyles : function ( a ) { var b = CKEDITOR . tools . isEmpty , d = [ ] , e , c ; for ( c = 0 ; c <
a . length ; c ++ ) e = a [ c ] . _ . definition , - 1 !== CKEDITOR . tools . indexOf ( CKEDITOR . plugins . copyformatting . inlineBoundary , e . element ) && ( e . element = a [ c ] . element = "span" ) , "span" === e . element && b ( e . attributes ) && b ( e . styles ) || d . push ( a [ c ] ) ; return d } , _determineContext : function ( a ) { function b ( b ) { var e = new CKEDITOR . dom . walker ( a ) , c ; if ( a . startContainer . getAscendant ( b , ! 0 ) || a . endContainer . getAscendant ( b , ! 0 ) ) return ! 0 ; for ( ; c = e . next ( ) ; ) if ( c . getAscendant ( b , ! 0 ) ) return ! 0 } return b ( { ul : 1 , ol : 1 } ) ? "list" : b ( "table" ) ? "table" : "text" } , _applyStylesToTextContext : function ( a ,
b , d ) { var e = CKEDITOR . plugins . copyformatting , c = e . excludedAttributesFromInlineTransform , f , g ; CKEDITOR . env . webkit && ! CKEDITOR . env . chrome && a . getSelection ( ) . selectRanges ( [ b ] ) ; for ( f = 0 ; f < d . length ; f ++ ) if ( b = d [ f ] , - 1 === l ( e . excludedElementsFromInlineTransform , b . element ) ) { if ( - 1 !== l ( e . elementsForInlineTransform , b . element ) ) for ( b . element = b . _ . definition . element = "span" , g = 0 ; g < c . length ; g ++ ) b . _ . definition . attributes [ c [ g ] ] && delete b . _ . definition . attributes [ c [ g ] ] ; b . apply ( a ) } } , _applyStylesToListContext : function ( a , b , d ) { var e ,
c , f ; for ( f = 0 ; f < d . length ; f ++ ) e = d [ f ] , c = b . createBookmark ( ) , "ol" === e . element || "ul" === e . element ? k ( b , { ul : 1 , ol : 1 } , function ( a ) { var b = e ; a . getName ( ) !== b . element && a . renameNode ( b . element ) ; b . applyToObject ( a ) } , ! 0 ) : "li" === e . element ? k ( b , "li" , function ( a ) { e . applyToObject ( a ) } ) : CKEDITOR . plugins . copyformatting . _applyStylesToTextContext ( a , b , [ e ] ) , b . moveToBookmark ( c ) } , _applyStylesToTableContext : function ( a , b , d ) { function e ( a , b ) { a . getName ( ) !== b . element && ( b = b . getDefinition ( ) , b . element = a . getName ( ) , b = new CKEDITOR . style ( b ) ) ; b . applyToObject ( a ) }
var c , f , g ; for ( g = 0 ; g < d . length ; g ++ ) c = d [ g ] , f = b . createBookmark ( ) , - 1 !== l ( [ "table" , "tr" ] , c . element ) ? k ( b , c . element , function ( a ) { c . applyToObject ( a ) } ) : - 1 !== l ( [ "td" , "th" ] , c . element ) ? k ( b , { td : 1 , th : 1 } , function ( a ) { e ( a , c ) } ) : - 1 !== l ( [ "thead" , "tbody" ] , c . element ) ? k ( b , { thead : 1 , tbody : 1 } , function ( a ) { e ( a , c ) } ) : CKEDITOR . plugins . copyformatting . _applyStylesToTextContext ( a , b , [ c ] ) , b . moveToBookmark ( f ) } , _applyFormat : function ( a , b ) { var d = a . getSelection ( ) . getRanges ( ) [ 0 ] , e = CKEDITOR . plugins . copyformatting , c , f ; if ( ! d ) return ! 1 ; if ( d . collapsed ) { f =
a . getSelection ( ) . createBookmarks ( ) ; if ( ! ( c = e . _getSelectedWordOffset ( d ) ) ) return ; d = a . createRange ( ) ; d . setStart ( c . startNode , c . startOffset ) ; d . setEnd ( c . endNode , c . endOffset ) ; d . select ( ) } b = e . _filterStyles ( b ) ; if ( ! a . copyFormatting . fire ( "applyFormatting" , { styles : b , range : d , preventFormatStripping : ! 1 } , a ) ) return ! 1 ; f && a . getSelection ( ) . selectBookmarks ( f ) ; return ! 0 } , _putScreenReaderMessage : function ( a , b ) { var d = this . _getScreenReaderContainer ( ) ; d && d . setText ( a . lang . copyformatting . notification [ b ] ) } , _addScreenReaderContainer : function ( ) { if ( this . _getScreenReaderContainer ( ) ) return this . _getScreenReaderContainer ( ) ;
if ( ! CKEDITOR . env . ie6Compat && ! CKEDITOR . env . ie7Compat ) return CKEDITOR . document . getBody ( ) . append ( CKEDITOR . dom . element . createFromHtml ( '\x3cdiv class\x3d"cke_screen_reader_only cke_copyformatting_notification"\x3e\x3cdiv aria-live\x3d"polite"\x3e\x3c/div\x3e\x3c/div\x3e' ) ) . getChild ( 0 ) } , _getScreenReaderContainer : function ( ) { if ( ! CKEDITOR . env . ie6Compat && ! CKEDITOR . env . ie7Compat ) return CKEDITOR . document . getBody ( ) . findOne ( ".cke_copyformatting_notification div[aria-live]" ) } , _attachPasteKeystrokeHandler : function ( a ) { var b =
a . config . copyFormatting _keystrokePaste ; b && ( this . _initialKeystrokePasteCommand = a . keystrokeHandler . keystrokes [ b ] , a . setKeystroke ( b , "applyFormatting" ) ) } , _detachPasteKeystrokeHandler : function ( a ) { var b = a . config . copyFormatting _keystrokePaste ; b && a . setKeystroke ( b , this . _initialKeystrokePasteCommand || ! 1 ) } } ; CKEDITOR . config . copyFormatting _outerCursor = ! 0 ; CKEDITOR . config . copyFormatting _allowRules = "b s u i em strong span p div td th ol ul li(*)[*]{*}" ; CKEDITOR . config . copyFormatting _disallowRules = "*[data-cke-widget*,data-widget*,data-cke-realelement](cke_widget*)" ;
CKEDITOR . config . copyFormatting _allowedContexts = ! 0 ; CKEDITOR . config . copyFormatting _keystrokeCopy = CKEDITOR . CTRL + CKEDITOR . SHIFT + 67 ; CKEDITOR . config . copyFormatting _keystrokePaste = CKEDITOR . CTRL + CKEDITOR . SHIFT + 86 } ) ( ) ; ( function ( ) { CKEDITOR . plugins . add ( "div" , { requires : "dialog" , init : function ( a ) { if ( ! a . blockless ) { var c = a . lang . div , b = "div(*)" ; CKEDITOR . dialog . isTabEnabled ( a , "editdiv" , "advanced" ) && ( b += ";div[dir,id,lang,title]{*}" ) ; a . addCommand ( "creatediv" , new CKEDITOR . dialogCommand ( "creatediv" , { allowedContent : b , requiredContent : "div" , contextSensitive : ! 0 , contentTransformations : [ [ "div: alignmentToStyle" ] ] , refresh : function ( a , c ) { this . setState ( "div" in ( a . config . div _wrapTable ? c . root : c . blockLimit ) . getDtd ( ) ? CKEDITOR . TRISTATE _OFF :
d . _putScreenReaderMessage ( a , "canceled" ) , d . _detachPasteKeystrokeHandler ( a ) , this . setState ( CKEDITOR . TRISTATE _OFF ) ; e . styles = d . _extractStylesFromElement ( a , a . elementPath ( ) . lastElement ) ; this . setState ( CKEDITOR . TRISTATE _ON ) ; c || ( g . addClass ( "cke_copyformatting_active" ) , h . addClass ( "cke_copyformatting_tableresize_cursor" ) , a . config . copyFormatting _outerCursor && h . addClass ( "cke_copyformatting_disabled" ) ) ; e . sticky = f ; d . _putScreenReaderMessage ( a , "copied" ) ; d . _attachPasteKeystrokeHandler ( a ) } } , applyFormatting : { editorFocus : CKEDITOR . env . ie &&
! CKEDITOR . env . edge ? ! 1 : ! 0 , exec : function ( a , b ) { var d = a . getCommand ( "copyFormatting" ) , e = b ? "keystrokeHandler" == b . from : ! 1 , c = CKEDITOR . plugins . copyformatting , f = a . copyFormatting , g = c . _getCursorContainer ( a ) , h = CKEDITOR . document . getDocumentElement ( ) ; if ( e || d . state === CKEDITOR . TRISTATE _ON ) { if ( e && ! f . styles ) return c . _putScreenReaderMessage ( a , "failed" ) , c . _detachPasteKeystrokeHandler ( a ) , ! 1 ; e = c . _applyFormat ( a , f . styles ) ; f . sticky || ( f . styles = null , g . removeClass ( "cke_copyformatting_active" ) , h . removeClass ( "cke_copyformatting_disabled" ) ,
h . removeClass ( "cke_copyformatting_tableresize_cursor" ) , d . setState ( CKEDITOR . TRISTATE _OFF ) , c . _detachPasteKeystrokeHandler ( a ) ) ; c . _putScreenReaderMessage ( a , e ? "applied" : "canceled" ) } } } } , _getCursorContainer : function ( a ) { return a . elementMode === CKEDITOR . ELEMENT _MODE _INLINE ? a . editable ( ) : a . editable ( ) . getParent ( ) } , _convertElementToStyleDef : function ( a ) { var b = CKEDITOR . tools , d = a . getAttributes ( CKEDITOR . plugins . copyformatting . excludedAttributes ) , b = b . parseCssText ( a . getAttribute ( "style" ) , ! 0 , ! 0 ) ; return { element : a . getName ( ) ,
type : CKEDITOR . STYLE _INLINE , attributes : d , styles : b } } , _extractStylesFromElement : function ( a , b ) { var d = { } , e = [ ] ; do if ( b . type === CKEDITOR . NODE _ELEMENT && ! b . hasAttribute ( "data-cke-bookmark" ) && ( d . element = b , a . copyFormatting . fire ( "extractFormatting" , d , a ) && d . styleDef && e . push ( new CKEDITOR . style ( d . styleDef ) ) , b . getName && - 1 !== l ( CKEDITOR . plugins . copyformatting . breakOnElements , b . getName ( ) ) ) ) break ; while ( ( b = b . getParent ( ) ) && b . type === CKEDITOR . NODE _ELEMENT ) ; return e } , _extractStylesFromRange : function ( a , b ) { for ( var d = [ ] , e = new CKEDITOR . dom . walker ( b ) ,
c ; c = e . next ( ) ; ) d = d . concat ( CKEDITOR . plugins . copyformatting . _extractStylesFromElement ( a , c ) ) ; return d } , _removeStylesFromElementInRange : function ( a , b ) { for ( var d = - 1 !== l ( [ "ol" , "ul" , "table" ] , b ) , e = new CKEDITOR . dom . walker ( a ) , c ; c = e . next ( ) ; ) if ( c = c . getAscendant ( b , ! 0 ) ) if ( c . removeAttributes ( c . getAttributes ( ) ) , d ) break } , _getSelectedWordOffset : function ( a ) { function b ( a , b ) { return a [ b ? "getPrevious" : "getNext" ] ( function ( a ) { return a . type !== CKEDITOR . NODE _COMMENT } ) } function d ( a ) { return a . type == CKEDITOR . NODE _ELEMENT ? ( a = a . getHtml ( ) . replace ( /<span.*?> <\/span>/g ,
"" ) , a . replace ( /<.*?>/g , "" ) ) : a . getText ( ) } function e ( a , c ) { var f = a , g = /\s/g , h = "p br ol ul li td th div caption body" . split ( " " ) , m = ! 1 , k = ! 1 , p , n ; do { for ( p = b ( f , c ) ; ! p && f . getParent ( ) ; ) { f = f . getParent ( ) ; if ( - 1 !== l ( h , f . getName ( ) ) ) { k = m = ! 0 ; break } p = b ( f , c ) } if ( p && p . getName && - 1 !== l ( h , p . getName ( ) ) ) { m = ! 0 ; break } f = p } while ( f && f . getStyle && ( "none" == f . getStyle ( "display" ) || ! f . getText ( ) ) ) ; for ( f || ( f = a ) ; f . type !== CKEDITOR . NODE _TEXT ; ) f = ! m || c || k ? f . getChild ( 0 ) : f . getChild ( f . getChildCount ( ) - 1 ) ; for ( h = d ( f ) ; null != ( k = g . exec ( h ) ) && ( n = k . index ,
c ) ; ) ; if ( "number" !== typeof n && ! m ) return e ( f , c ) ; if ( m ) c ? n = 0 : ( g = /([\.\b]*$)/ , n = ( k = g . exec ( h ) ) ? k . index : h . length ) ; else if ( c && ( n += 1 , n > h . length ) ) return e ( f ) ; return { node : f , offset : n } } var c = /\b\w+\b/ig , f , g , h , m , k ; h = m = k = a . startContainer ; for ( f = d ( h ) ; null != ( g = c . exec ( f ) ) ; ) if ( g . index + g [ 0 ] . length >= a . startOffset ) return a = g . index , c = g . index + g [ 0 ] . length , 0 === g . index && ( g = e ( h , ! 0 ) , m = g . node , a = g . offset ) , c >= f . length && ( f = e ( h ) , k = f . node , c = f . offset ) , { startNode : m , startOffset : a , endNode : k , endOffset : c } ; return null } , _filterStyles : function ( a ) { var b =
CKEDITOR . tools . isEmpty , d = [ ] , e , c ; for ( c = 0 ; c < a . length ; c ++ ) e = a [ c ] . _ . definition , - 1 !== CKEDITOR . tools . indexOf ( CKEDITOR . plugins . copyformatting . inlineBoundary , e . element ) && ( e . element = a [ c ] . element = "span" ) , "span" === e . element && b ( e . attributes ) && b ( e . styles ) || d . push ( a [ c ] ) ; return d } , _determineContext : function ( a ) { function b ( b ) { var e = new CKEDITOR . dom . walker ( a ) , c ; if ( a . startContainer . getAscendant ( b , ! 0 ) || a . endContainer . getAscendant ( b , ! 0 ) ) return ! 0 ; for ( ; c = e . next ( ) ; ) if ( c . getAscendant ( b , ! 0 ) ) return ! 0 } return b ( { ul : 1 , ol : 1 } ) ?
"list" : b ( "table" ) ? "table" : "text" } , _applyStylesToTextContext : function ( a , b , d ) { var e = CKEDITOR . plugins . copyformatting , c = e . excludedAttributesFromInlineTransform , f , g ; CKEDITOR . env . webkit && ! CKEDITOR . env . chrome && a . getSelection ( ) . selectRanges ( [ b ] ) ; for ( f = 0 ; f < d . length ; f ++ ) if ( b = d [ f ] , - 1 === l ( e . excludedElementsFromInlineTransform , b . element ) ) { if ( - 1 !== l ( e . elementsForInlineTransform , b . element ) ) for ( b . element = b . _ . definition . element = "span" , g = 0 ; g < c . length ; g ++ ) b . _ . definition . attributes [ c [ g ] ] && delete b . _ . definition . attributes [ c [ g ] ] ;
b . apply ( a ) } } , _applyStylesToListContext : function ( a , b , d ) { var e , c , f ; for ( f = 0 ; f < d . length ; f ++ ) e = d [ f ] , c = b . createBookmark ( ) , "ol" === e . element || "ul" === e . element ? k ( b , { ul : 1 , ol : 1 } , function ( a ) { var b = e ; a . getName ( ) !== b . element && a . renameNode ( b . element ) ; b . applyToObject ( a ) } , ! 0 ) : "li" === e . element ? k ( b , "li" , function ( a ) { e . applyToObject ( a ) } ) : CKEDITOR . plugins . copyformatting . _applyStylesToTextContext ( a , b , [ e ] ) , b . moveToBookmark ( c ) } , _applyStylesToTableContext : function ( a , b , d ) { function e ( a , b ) { a . getName ( ) !== b . element && ( b = b . getDefinition ( ) ,
b . element = a . getName ( ) , b = new CKEDITOR . style ( b ) ) ; b . applyToObject ( a ) } var c , f , g ; for ( g = 0 ; g < d . length ; g ++ ) c = d [ g ] , f = b . createBookmark ( ) , - 1 !== l ( [ "table" , "tr" ] , c . element ) ? k ( b , c . element , function ( a ) { c . applyToObject ( a ) } ) : - 1 !== l ( [ "td" , "th" ] , c . element ) ? k ( b , { td : 1 , th : 1 } , function ( a ) { e ( a , c ) } ) : - 1 !== l ( [ "thead" , "tbody" ] , c . element ) ? k ( b , { thead : 1 , tbody : 1 } , function ( a ) { e ( a , c ) } ) : CKEDITOR . plugins . copyformatting . _applyStylesToTextContext ( a , b , [ c ] ) , b . moveToBookmark ( f ) } , _applyFormat : function ( a , b ) { var d = a . getSelection ( ) . getRanges ( ) [ 0 ] ,
e = CKEDITOR . plugins . copyformatting , c , f ; if ( ! d ) return ! 1 ; if ( d . collapsed ) { f = a . getSelection ( ) . createBookmarks ( ) ; if ( ! ( c = e . _getSelectedWordOffset ( d ) ) ) return ; d = a . createRange ( ) ; d . setStart ( c . startNode , c . startOffset ) ; d . setEnd ( c . endNode , c . endOffset ) ; d . select ( ) } b = e . _filterStyles ( b ) ; if ( ! a . copyFormatting . fire ( "applyFormatting" , { styles : b , range : d , preventFormatStripping : ! 1 } , a ) ) return ! 1 ; f && a . getSelection ( ) . selectBookmarks ( f ) ; return ! 0 } , _putScreenReaderMessage : function ( a , b ) { var d = this . _getScreenReaderContainer ( ) ; d && d . setText ( a . lang . copyformatting . notification [ b ] ) } ,
_addScreenReaderContainer : function ( ) { if ( this . _getScreenReaderContainer ( ) ) return this . _getScreenReaderContainer ( ) ; if ( ! CKEDITOR . env . ie6Compat && ! CKEDITOR . env . ie7Compat ) return CKEDITOR . document . getBody ( ) . append ( CKEDITOR . dom . element . createFromHtml ( '\x3cdiv class\x3d"cke_screen_reader_only cke_copyformatting_notification"\x3e\x3cdiv aria-live\x3d"polite"\x3e\x3c/div\x3e\x3c/div\x3e' ) ) . getChild ( 0 ) } , _getScreenReaderContainer : function ( ) { if ( ! CKEDITOR . env . ie6Compat && ! CKEDITOR . env . ie7Compat ) return CKEDITOR . document . getBody ( ) . findOne ( ".cke_copyformatting_notification div[aria-live]" ) } ,
_attachPasteKeystrokeHandler : function ( a ) { var b = a . config . copyFormatting _keystrokePaste ; b && ( this . _initialKeystrokePasteCommand = a . keystrokeHandler . keystrokes [ b ] , a . setKeystroke ( b , "applyFormatting" ) ) } , _detachPasteKeystrokeHandler : function ( a ) { var b = a . config . copyFormatting _keystrokePaste ; b && a . setKeystroke ( b , this . _initialKeystrokePasteCommand || ! 1 ) } } ; CKEDITOR . config . copyFormatting _outerCursor = ! 0 ; CKEDITOR . config . copyFormatting _allowRules = "b s u i em strong span p div td th ol ul li(*)[*]{*}" ; CKEDITOR . config . copyFormatting _disallowRules =
"*[data-cke-widget*,data-widget*,data-cke-realelement](cke_widget*)" ; CKEDITOR . config . copyFormatting _allowedContexts = ! 0 ; CKEDITOR . config . copyFormatting _keystrokeCopy = CKEDITOR . CTRL + CKEDITOR . SHIFT + 67 ; CKEDITOR . config . copyFormatting _keystrokePaste = CKEDITOR . CTRL + CKEDITOR . SHIFT + 86 } ) ( ) ; ( function ( ) { CKEDITOR . plugins . add ( "div" , { requires : "dialog" , init : function ( a ) { if ( ! a . blockless ) { var c = a . lang . div , b = "div(*)" ; CKEDITOR . dialog . isTabEnabled ( a , "editdiv" , "advanced" ) && ( b += ";div[dir,id,lang,title]{*}" ) ; a . addCommand ( "creatediv" , new CKEDITOR . dialogCommand ( "creatediv" , { allowedContent : b , requiredContent : "div" , contextSensitive : ! 0 , contentTransformations : [ [ "div: alignmentToStyle" ] ] , refresh : function ( a , c ) { this . setState ( "div" in ( a . config . div _wrapTable ? c . root : c . blockLimit ) . getDtd ( ) ? CKEDITOR . TRISTATE _OFF :
CKEDITOR . TRISTATE _DISABLED ) } } ) ) ; a . addCommand ( "editdiv" , new CKEDITOR . dialogCommand ( "editdiv" , { requiredContent : "div" } ) ) ; a . addCommand ( "removediv" , { requiredContent : "div" , exec : function ( a ) { function c ( b ) { ( b = CKEDITOR . plugins . div . getSurroundDiv ( a , b ) ) && ! b . data ( "cke-div-added" ) && ( f . push ( b ) , b . data ( "cke-div-added" ) ) } for ( var b = a . getSelection ( ) , g = b && b . getRanges ( ) , e , h = b . createBookmarks ( ) , f = [ ] , d = 0 ; d < g . length ; d ++ ) e = g [ d ] , e . collapsed ? c ( b . getStartElement ( ) ) : ( e = new CKEDITOR . dom . walker ( e ) , e . evaluator = c , e . lastForward ( ) ) ;
for ( d = 0 ; d < f . length ; d ++ ) f [ d ] . remove ( ! 0 ) ; b . selectBookmarks ( h ) } } ) ; a . ui . addButton && a . ui . addButton ( "CreateDiv" , { label : c . toolbar , command : "creatediv" , toolbar : "blocks,50" } ) ; a . addMenuItems && ( a . addMenuItems ( { editdiv : { label : c . edit , command : "editdiv" , group : "div" , order : 1 } , removediv : { label : c . remove , command : "removediv" , group : "div" , order : 5 } } ) , a . contextMenu && a . contextMenu . addListener ( function ( b ) { return ! b || b . isReadOnly ( ) ? null : CKEDITOR . plugins . div . getSurroundDiv ( a ) ? { editdiv : CKEDITOR . TRISTATE _OFF , removediv : CKEDITOR . TRISTATE _OFF } :
null } ) ) ; CKEDITOR . dialog . add ( "creatediv" , this . path + "dialogs/div.js" ) ; CKEDITOR . dialog . add ( "editdiv" , this . path + "dialogs/div.js" ) } } } ) ; CKEDITOR . plugins . div = { getSurroundDiv : function ( a , c ) { var b = a . elementPath ( c ) ; return a . elementPath ( b . blockLimit ) . contains ( function ( a ) { return a . is ( "div" ) && ! a . isReadOnly ( ) } , 1 ) } } } ) ( ) ; CKEDITOR . plugins . add ( "resize" , { init : function ( b ) { function f ( d ) { var e = c . width , m = c . height , f = e + ( d . data . $ . screenX - n . x ) * ( "rtl" == g ? - 1 : 1 ) ; d = m + ( d . data . $ . screenY - n . y ) ; h && ( e = Math . max ( a . resize _minWidth , Math . min ( f , a . resize _maxWidth ) ) ) ; p && ( m = Math . max ( a . resize _minHeight , Math . min ( d , a . resize _maxHeight ) ) ) ; b . resize ( h ? e : null , m ) } function k ( ) { CKEDITOR . document . removeListener ( "mousemove" , f ) ; CKEDITOR . document . removeListener ( "mouseup" , k ) ; b . document && ( b . document . removeListener ( "mousemove" , f ) , b . document . removeListener ( "mouseup" ,
@@ -863,8 +871,8 @@ c.length)for(var e,g=c.length;g--;)if(e=c[g],"hbox"!=e.type&&"vbox"!=e.type&&"fi
e [ "for" ] && ( f = e . filebrowser . url , void 0 === f && ( f = a . config [ "filebrowser" + k ( b ) + "UploadUrl" ] , void 0 === f && ( f = a . config . filebrowserUploadUrl ) ) , f ) ) { var h = e . onClick ; e . onClick = function ( b ) { var c = b . sender , d = c . getDialog ( ) . getContentElement ( this [ "for" ] [ 0 ] , this [ "for" ] [ 1 ] ) . getInputElement ( ) , e = CKEDITOR . fileTools && CKEDITOR . fileTools . isFileUploadSupported ; if ( h && ! 1 === h . call ( c , b ) ) return ! 1 ; if ( t . call ( c , b ) ) { if ( "form" !== a . config . filebrowserUploadMethod && e ) return b = a . uploadRepository . create ( d . $ . files [ 0 ] ) , b . on ( "uploaded" , function ( a ) { var b =
a . sender . responseData ; m . call ( a . sender . editor , b . url , b . message ) } ) , b . on ( "error" , n . bind ( this ) ) , b . on ( "abort" , n . bind ( this ) ) , b . loadAndUpload ( p ( f ) ) , "xhr" ; r ( d ) ; return ! 0 } return ! 1 } ; e . filebrowser . url = f ; e . hidden = ! 1 ; u ( a , d . getContents ( e [ "for" ] [ 0 ] ) . get ( e [ "for" ] [ 1 ] ) , e . filebrowser ) } } function n ( a ) { var b = { } ; try { b = JSON . parse ( a . sender . xhr . response ) || { } } catch ( d ) { } this . enable ( ) ; alert ( b . error ? b . error . message : a . sender . message ) } function h ( a , b , d ) { if ( - 1 !== d . indexOf ( ";" ) ) { d = d . split ( ";" ) ; for ( var c = 0 ; c < d . length ; c ++ ) if ( h ( a , b , d [ c ] ) ) return ! 0 ;
return ! 1 } return ( a = a . getContents ( b ) . get ( d ) . filebrowser ) && a . url } function m ( a , b ) { var d = this . _ . filebrowserSe . getDialog ( ) , c = this . _ . filebrowserSe [ "for" ] , e = this . _ . filebrowserSe . filebrowser . onSelect ; c && d . getContentElement ( c [ 0 ] , c [ 1 ] ) . reset ( ) ; if ( "function" != typeof b || ! 1 !== b . call ( this . _ . filebrowserSe ) ) if ( ! e || ! 1 !== e . call ( this . _ . filebrowserSe , a , b ) ) if ( "string" == typeof b && b && alert ( b ) , a && ( c = this . _ . filebrowserSe , d = c . getDialog ( ) , c = c . filebrowser . target || null ) ) if ( c = c . split ( ":" ) , e = d . getContentElement ( c [ 0 ] , c [ 1 ] ) ) e . setValue ( a ) ,
d . selectPage ( c [ 0 ] ) } CKEDITOR . plugins . add ( "filebrowser" , { requires : "popup,filetools" , init : function ( a ) { a . _ . filebrowserFn = CKEDITOR . tools . addFunction ( m , a ) ; a . on ( "destroy" , function ( ) { CKEDITOR . tools . removeFunction ( this . _ . filebrowserFn ) } ) } } ) ; CKEDITOR . on ( "dialogDefinition" , function ( a ) { if ( a . editor . plugins . filebrowser ) for ( var b = a . data . definition , d , c = 0 ; c < b . contents . length ; ++ c ) if ( d = b . contents [ c ] ) l ( a . editor , a . data . name , b , d . elements ) , d . hidden && d . filebrowser && ( d . hidden = ! h ( b , d . id , d . filebrowser ) ) } ) } ) ( ) ; CKEDITOR . plugins . add ( "find" , { requires : "dialog" , init : function ( a ) { var b = a . addCommand ( "find" , new CKEDITOR . dialogCommand ( "find" ) ) ; b . canUndo = ! 1 ; b . readOnly = 1 ; a . addCommand ( "replace" , new CKEDITOR . dialogCommand ( "replace" ) ) . canUndo = ! 1 ; a . ui . addButton && ( a . ui . addButton ( "Find" , { label : a . lang . find . find , command : "find" , toolbar : "find,10" } ) , a . ui . addButton ( "Replace" , { label : a . lang . find . replace , command : "replace" , toolbar : "find,20" } ) ) ; CKEDITOR . dialog . add ( "find" , this . path + "dialogs/find.js" ) ; CKEDITOR . dialog . add ( "replace" , this . path +
"dialogs/find.js" ) } } ) ; CKEDITOR . config . find _highlight = { element : "span" , styles : { "background-color" : "#004" , color : "#fff" } } ; ( function ( ) { function g ( a , b ) { var c = l . exec ( a ) , d = l . exec ( b ) ; if ( c ) { if ( ! c [ 2 ] && "px" == d [ 2 ] ) return d [ 1 ] ; if ( "px" == c [ 2 ] && ! d [ 2 ] ) return d [ 1 ] + "px" } return b } var k = CKEDITOR . htmlParser . cssStyle , h = CKEDITOR . tools . cssLength , l = /^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i , m = { elements : { $ : function ( a ) { var b = a . attributes ; if ( ( b = ( b = ( b = b && b [ "data-cke-realelement" ] ) && new CKEDITOR . htmlParser . fragment . fromHtml ( decodeURIComponent ( b ) ) ) && b . children [ 0 ] ) && a . attributes [ "data-cke-resizable" ] ) { var c = ( new k ( a ) ) . rules ; a = b . attributes ; var d = c . width ,
d . selectPage ( c [ 0 ] ) } CKEDITOR . plugins . add ( "filebrowser" , { requires : "popup,filetools" , init : function ( a ) { a . _ . filebrowserFn = CKEDITOR . tools . addFunction ( m , a ) ; a . on ( "destroy" , function ( ) { CKEDITOR . tools . removeFunction ( this . _ . filebrowserFn ) } ) } } ) ; CKEDITOR . on ( "dialogDefinition" , function ( a ) { if ( a . editor . plugins . filebrowser ) for ( var b = a . data . definition , d , c = 0 ; c < b . contents . length ; ++ c ) if ( d = b . contents [ c ] ) l ( a . editor , a . data . name , b , d . elements ) , d . hidden && d . filebrowser && ( d . hidden = ! h ( b , d . id , d . filebrowser ) ) } ) } ) ( ) ; CKEDITOR . plugins . add ( "find" , { requires : "dialog" , init : function ( a ) { var b = a . addCommand ( "find" , new CKEDITOR . dialogCommand ( "find" ) ) , c = a . addCommand ( "replace" , new CKEDITOR . dialogCommand ( "find" , { tabId : " replace"} ) ) ; b . canUndo = ! 1 ; b . readOnly = 1 ; c . canUndo = ! 1 ; a . ui . addButton && ( a . ui . addButton ( "Find" , { label : a . lang . find . find , command : "find" , toolbar : "find,10" } ) , a . ui . addButton ( "Replace" , { label : a . lang . find . replace , command : "replace" , toolbar : "find,20" } ) ) ; CKEDITOR . dialog . add ( "find" , this . path + "dialogs/find.js" ) } } ) ;
CKEDITOR . config . find _highlight = { element : "span" , styles : { "background-color" : "#004" , color : "#fff" } } ; ( function ( ) { function g ( a , b ) { var c = l . exec ( a ) , d = l . exec ( b ) ; if ( c ) { if ( ! c [ 2 ] && "px" == d [ 2 ] ) return d [ 1 ] ; if ( "px" == c [ 2 ] && ! d [ 2 ] ) return d [ 1 ] + "px" } return b } var k = CKEDITOR . htmlParser . cssStyle , h = CKEDITOR . tools . cssLength , l = /^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i , m = { elements : { $ : function ( a ) { var b = a . attributes ; if ( ( b = ( b = ( b = b && b [ "data-cke-realelement" ] ) && new CKEDITOR . htmlParser . fragment . fromHtml ( decodeURIComponent ( b ) ) ) && b . children [ 0 ] ) && a . attributes [ "data-cke-resizable" ] ) { var c = ( new k ( a ) ) . rules ; a = b . attributes ; var d = c . width ,
c = c . height ; d && ( a . width = g ( a . width , d ) ) ; c && ( a . height = g ( a . height , c ) ) } return b } } } ; CKEDITOR . plugins . add ( "fakeobjects" , { init : function ( a ) { a . filter . allow ( "img[!data-cke-realelement,src,alt,title](*){*}" , "fakeobjects" ) } , afterInit : function ( a ) { ( a = ( a = a . dataProcessor ) && a . htmlFilter ) && a . addRules ( m , { applyToAll : ! 0 } ) } } ) ; CKEDITOR . editor . prototype . createFakeElement = function ( a , b , c , d ) { var e = this . lang . fakeobjects , e = e [ c ] || e . unknown ; b = { "class" : b , "data-cke-realelement" : encodeURIComponent ( a . getOuterHtml ( ) ) , "data-cke-real-node-type" : a . type ,
alt : e , title : e , align : a . getAttribute ( "align" ) || "" } ; CKEDITOR . env . hc || ( b . src = CKEDITOR . tools . transparentImageData ) ; c && ( b [ "data-cke-real-element-type" ] = c ) ; d && ( b [ "data-cke-resizable" ] = d , c = new k , d = a . getAttribute ( "width" ) , a = a . getAttribute ( "height" ) , d && ( c . rules . width = h ( d ) ) , a && ( c . rules . height = h ( a ) ) , c . populate ( b ) ) ; return this . document . createElement ( "img" , { attributes : b } ) } ; CKEDITOR . editor . prototype . createFakeParserElement = function ( a , b , c , d ) { var e = this . lang . fakeobjects , e = e [ c ] || e . unknown , f ; f = new CKEDITOR . htmlParser . basicWriter ;
a . writeHtml ( f ) ; f = f . getHtml ( ) ; b = { "class" : b , "data-cke-realelement" : encodeURIComponent ( f ) , "data-cke-real-node-type" : a . type , alt : e , title : e , align : a . attributes . align || "" } ; CKEDITOR . env . hc || ( b . src = CKEDITOR . tools . transparentImageData ) ; c && ( b [ "data-cke-real-element-type" ] = c ) ; d && ( b [ "data-cke-resizable" ] = d , d = a . attributes , a = new k , c = d . width , d = d . height , void 0 !== c && ( a . rules . width = h ( c ) ) , void 0 !== d && ( a . rules . height = h ( d ) ) , a . populate ( b ) ) ; return new CKEDITOR . htmlParser . element ( "img" , b ) } ; CKEDITOR . editor . prototype . restoreRealElement =
@@ -1081,55 +1089,56 @@ this);e()});a.addCommand("source",f.commands.source);a.ui.addButton&&a.ui.addBut
insertHtml : function ( ) { } , insertElement : function ( ) { } , insertText : function ( ) { } , setReadOnly : function ( a ) { this [ ( a ? "set" : "remove" ) + "Attribute" ] ( "readOnly" , "readonly" ) } , detach : function ( ) { c . baseProto . detach . call ( this ) ; this . clearCustomData ( ) ; this . remove ( ) } } } ) } ) ( ) ;
CKEDITOR . plugins . sourcearea = { commands : { source : { modes : { wysiwyg : 1 , source : 1 } , editorFocus : ! 1 , readOnly : 1 , exec : function ( c ) { "wysiwyg" == c . mode && c . fire ( "saveSnapshot" ) ; c . getCommand ( "source" ) . setState ( CKEDITOR . TRISTATE _DISABLED ) ; c . setMode ( "source" == c . mode ? "wysiwyg" : "source" ) } , canUndo : ! 1 } } } ; CKEDITOR . plugins . add ( "specialchar" , { availableLangs : { af : 1 , ar : 1 , az : 1 , bg : 1 , ca : 1 , cs : 1 , cy : 1 , da : 1 , de : 1 , "de-ch" : 1 , el : 1 , en : 1 , "en-au" : 1 , "en-ca" : 1 , "en-gb" : 1 , eo : 1 , es : 1 , "es-mx" : 1 , et : 1 , eu : 1 , fa : 1 , fi : 1 , fr : 1 , "fr-ca" : 1 , gl : 1 , he : 1 , hr : 1 , hu : 1 , id : 1 , it : 1 , ja : 1 , km : 1 , ko : 1 , ku : 1 , lt : 1 , lv : 1 , nb : 1 , nl : 1 , no : 1 , oc : 1 , pl : 1 , pt : 1 , "pt-br" : 1 , ro : 1 , ru : 1 , si : 1 , sk : 1 , sl : 1 , sq : 1 , sv : 1 , th : 1 , tr : 1 , tt : 1 , ug : 1 , uk : 1 , vi : 1 , zh : 1 , "zh-cn" : 1 } , requires : "dialog" , init : function ( a ) { var c = this ; CKEDITOR . dialog . add ( "specialchar" , this . path + "dialogs/specialchar.js" ) ; a . addCommand ( "specialchar" ,
{ exec : function ( ) { var b = a . langCode , b = c . availableLangs [ b ] ? b : c . availableLangs [ b . replace ( /-.*/ , "" ) ] ? b . replace ( /-.*/ , "" ) : "en" ; CKEDITOR . scriptLoader . load ( CKEDITOR . getUrl ( c . path + "dialogs/lang/" + b + ".js" ) , function ( ) { CKEDITOR . tools . extend ( a . lang . specialchar , c . langEntries [ b ] ) ; a . openDialog ( "specialchar" ) } ) } , modes : { wysiwyg : 1 } , canUndo : ! 1 } ) ; a . ui . addButton && a . ui . addButton ( "SpecialChar" , { label : a . lang . specialchar . toolbar , command : "specialchar" , toolbar : "insert,50" } ) } } ) ; CKEDITOR . config . specialChars = "! \x26quot; # $ % \x26amp; ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; \x26lt; \x3d \x26gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ \x26euro; \x26lsquo; \x26rsquo; \x26ldquo; \x26rdquo; \x26ndash; \x26mdash; \x26iexcl; \x26cent; \x26pound; \x26curren; \x26yen; \x26brvbar; \x26sect; \x26uml; \x26copy; \x26ordf; \x26laquo; \x26not; \x26reg; \x26macr; \x26deg; \x26sup2; \x26sup3; \x26acute; \x26micro; \x26para; \x26middot; \x26cedil; \x26sup1; \x26ordm; \x26raquo; \x26frac14; \x26frac12; \x26frac34; \x26iquest; \x26Agrave; \x26Aacute; \x26Acirc; \x26Atilde; \x26Auml; \x26Aring; \x26AElig; \x26Ccedil; \x26Egrave; \x26Eacute; \x26Ecirc; \x26Euml; \x26Igrave; \x26Iacute; \x26Icirc; \x26Iuml; \x26ETH; \x26Ntilde; \x26Ograve; \x26Oacute; \x26Ocirc; \x26Otilde; \x26Ouml; \x26times; \x26Oslash; \x26Ugrave; \x26Uacute; \x26Ucirc; \x26Uuml; \x26Yacute; \x26THORN; \x26szlig; \x26agrave; \x26aacute; \x26acirc; \x26atilde; \x26auml; \x26aring; \x26aelig; \x26ccedil; \x26egrave; \x26eacute; \x26ecirc; \x26euml; \x26igrave; \x26iacute; \x26icirc; \x26iuml; \x26eth; \x26ntilde; \x26ograve; \x26oacute; \x26ocirc; \x26otilde; \x26ouml; \x26divide; \x26oslash; \x26ugrave; \x26uacute; \x26ucirc; \x26uuml; \x26yacute; \x26thorn; \x26yuml; \x26OElig; \x26oelig; \x26#372; \x26#374 \x26#373 \x26#375; \x26sbquo; \x26#8219; \x26bdquo; \x26hellip; \x26trade; \x26#9658; \x26bull; \x26rarr; \x26rArr; \x26hArr; \x26diams; \x26asymp;" . split ( " " ) ; CKEDITOR . plugins . add ( "scayt" , { requires : "menubutton,dialog" , tabToOpen : null , dialogName : "scaytDialog" , onLoad : function ( a ) { CKEDITOR . plugins . scayt . onLoadTimestamp = ( new Date ) . getTime ( ) ; "moono-lisa" == ( CKEDITOR . skinName || a . config . skin ) && CKEDITOR . document . appendStyleSheet ( this . path + "skins/" + CKEDITOR . skin . name + "/scayt.css" ) ; CKEDITOR . document . appendStyleSheet ( this . path + "dialogs/dialog.css" ) } , init : function ( a ) { var c = this , d = CKEDITOR . plugins . scayt ; this . bindEvents ( a ) ; this . parseConfig ( a ) ; this . addRule ( a ) ; CKEDITOR . dialog . add ( this . dialogName ,
CKEDITOR . getUrl ( this . path + "dialogs/options.js" ) ) ; this . addMenuItems ( a ) ; var b = a . lang . scayt , e = CKEDITOR . env ; a . ui . add ( "Scayt" , CKEDITOR . UI _MENUBUTTON , { label : b . text _title , title : a . plugins . wsc ? a . lang . wsc . title : b . text _title , modes : { wysiwyg : ! ( e . ie && ( 8 > e . version || e . quirks ) ) } , toolbar : "spellchecker,20" , refresh : function ( ) { var b = a . ui . instances . Scayt . getState ( ) ; a . scayt && ( b = d . state . scayt [ a . name ] ? CKEDITOR . TRISTATE _ON : CKEDITOR . TRISTATE _OFF ) ; a . fire ( "scaytButtonState" , b ) } , onRender : function ( ) { var d = this ; a . on ( "scaytButtonState" ,
function ( a ) { void 0 !== typeof a . data && d . setState ( a . data ) } ) } , onMenu : function ( ) { var b = a . scayt ; a . getMenuItem ( "scaytToggle" ) . label = a . lang . scayt [ b && d . state . scayt [ a . name ] ? "btn_disable" : "btn_enable" ] ; var c = { scaytToggle : CKEDITOR . TRISTATE _OFF , scaytOptions : b ? CKEDITOR . TRISTATE _OFF : CKEDITOR . TRISTATE _DISABLED , scaytLangs : b ? CKEDITOR . TRISTATE _OFF : CKEDITOR . TRISTATE _DISABLED , scaytDict : b ? CKEDITOR . TRISTATE _OFF : CKEDITOR . TRISTATE _DISABLED , scaytAbout : b ? CKEDITOR . TRISTATE _OFF : CKEDITOR . TRISTATE _DISABLED , WSC : a . plugins . wsc ? CKEDITOR . TRISTATE _OFF :
CKEDITOR . TRISTATE _DISABLED } ; a . config . scayt _uiTabs [ 0 ] || delete c . scaytOptions ; a . config . scayt _uiTabs [ 1 ] || delete c . scaytLangs ; a . config . scayt _uiTabs [ 2 ] || delete c . scaytDict ; b && ! CKEDITOR . plugins . scayt . isNewUdSupported ( b ) && ( delete c . scaytDict , a . config . scayt _uiTabs [ 2 ] = 0 , CKEDITOR . plugins . scayt . alarmCompatibilityMessage ( ) ) ; return c } } ) ; a . contextMenu && a . addMenuItems && ( a . contextMenu . addListener ( function ( b , d ) { var e = a . scayt , k , m ; e && ( m = e . getSelectionNode ( ) ) && ( k = c . menuGenerator ( a , m ) , e . showBanner ( "." + a . contextMenu . _ . definition . panel . className . split ( " " ) . join ( " ." ) ) ) ;
return k } ) , a . contextMenu . _ . onHide = CKEDITOR . tools . override ( a . contextMenu . _ . onHide , function ( b ) { return function ( ) { var d = a . scayt ; d && d . hideBanner ( ) ; return b . apply ( this ) } } ) ) } , addMenuItems : function ( a ) { var c = this , d = CKEDITOR . plugins . scayt ; a . addMenuGroup ( "scaytButton" ) ; for ( var b = a . config . scayt _contextMenuItemsOrder . split ( "|" ) , e = 0 ; e < b . length ; e ++ ) b [ e ] = "scayt_" + b [ e ] ; if ( ( b = [ "grayt_description" , "grayt_suggest" , "grayt_control" ] . concat ( b ) ) && b . length ) for ( e = 0 ; e < b . length ; e ++ ) a . addMenuGroup ( b [ e ] , e - 10 ) ; a . addCommand ( "scaytToggle" ,
{ exec : function ( a ) { var b = a . scayt ; d . state . scayt [ a . name ] = ! d . state . scayt [ a . name ] ; ! 0 === d . state . scayt [ a . name ] ? b || d . createScayt ( a ) : b && d . destroy ( a ) } } ) ; a . addCommand ( "scaytAbout" , { exec : function ( a ) { a . scayt . tabToOpen = "about" ; a . lockSelection ( ) ; a . openDialog ( c . dialogName ) } } ) ; a . addCommand ( "scaytOptions" , { exec : function ( a ) { a . scayt . tabToOpen = "options" ; a . lockSelection ( ) ; a . openDialog ( c . dialogName ) } } ) ; a . addCommand ( "scaytLangs" , { exec : function ( a ) { a . scayt . tabToOpen = "langs" ; a . lockSelection ( ) ; a . openDialog ( c . dialogName ) } } ) ;
a . addCommand ( "scaytDict" , { exec : function ( a ) { a . scayt . tabToOpen = "dictionaries" ; a . lockSelection ( ) ; a . openDialog ( c . dialogName ) } } ) ; b = { scaytToggle : { label : a . lang . scayt . btn _enable , group : "scaytButton" , command : "scaytToggle" } , scaytAbout : { label : a . lang . scayt . btn _about , group : "scaytButton" , command : "scaytAbout" } , scaytOptions : { label : a . lang . scayt . btn _options , group : "scaytButton" , command : "scaytOptions" } , scaytLangs : { label : a . lang . scayt . btn _langs , group : "scaytButton" , command : "scaytLangs" } , scaytDict : { label : a . lang . scayt . btn _dictionaries ,
group : "scaytButton" , command : "scaytDict" } } ; a . plugins . wsc && ( b . WSC = { label : a . lang . wsc . toolbar , group : "scaytButton" , onClick : function ( ) { var b = CKEDITOR . plugins . scayt , d = a . scayt , c = a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? a . container . getText ( ) : a . document . getBody ( ) . getText ( ) ; ( c = c . replace ( /\s/g , "" ) ) ? ( d && b . state . scayt [ a . name ] && d . setMarkupPaused && d . setMarkupPaused ( ! 0 ) , a . lockSelection ( ) , a . execCommand ( "checkspell" ) ) : alert ( "Nothing to check!" ) } } ) ; a . addMenuItems ( b ) } , bindEvents : function ( a ) { var c = CKEDITOR . plugins . scayt ,
d = a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE , b = function ( ) { c . destroy ( a ) } , e = function ( ) { ! c . state . scayt [ a . name ] || a . readOnly || a . scayt || c . createScayt ( a ) } , f = function ( ) { var b = a . editable ( ) ; b . attachListener ( b , "focus" , function ( b ) { CKEDITOR . plugins . scayt && ! a . scayt && setTimeout ( e , 0 ) ; b = CKEDITOR . plugins . scayt && CKEDITOR . plugins . scayt . state . scayt [ a . name ] && a . scayt ; var c , h ; if ( ( d || b ) && a . _ . savedSelection ) { b = a . _ . savedSelection . getSelectedElement ( ) ; b = ! b && a . _ . savedSelection . getRanges ( ) ; for ( var f = 0 ; f < b . length ; f ++ ) h = b [ f ] , "string" ===
typeof h . startContainer . $ . nodeValue && ( c = h . startContainer . getText ( ) . length , ( c < h . startOffset || c < h . endOffset ) && a . unlockSelection ( ! 1 ) ) } } , this , null , - 10 ) } , g = function ( ) { d ? a . config . scayt _inlineModeImmediateMarkup ? e ( ) : ( a . on ( "blur" , function ( ) { setTimeout ( b , 0 ) } ) , a . on ( "focus" , e ) , a . focusManager . hasFocus && e ( ) ) : e ( ) ; f ( ) ; var c = a . editable ( ) ; c . attachListener ( c , "mousedown" , function ( b ) { b = b . data . getTarget ( ) ; var d = a . widgets && a . widgets . getByElement ( b ) ; d && ( d . wrapper = b . getAscendant ( function ( a ) { return a . hasAttribute ( "data-cke-widget-wrapper" ) } ,
! 0 ) ) } , this , null , - 10 ) } ; a . on ( "contentDom" , g ) ; a . on ( "beforeCommandExec" , function ( b ) { var d = a . scayt , e = ! 1 , f = ! 1 , g = ! 0 ; b . data . name in c . options . disablingCommandExec && "wysiwyg" == a . mode ? d && ( c . destroy ( a ) , a . fire ( "scaytButtonState" , CKEDITOR . TRISTATE _DISABLED ) ) : "bold" !== b . data . name && "italic" !== b . data . name && "underline" !== b . data . name && "strike" !== b . data . name && "subscript" !== b . data . name && "superscript" !== b . data . name && "enter" !== b . data . name && "cut" !== b . data . name && "language" !== b . data . name || ! d || ( "cut" === b . data . name && ( g = ! 1 ,
f = ! 0 ) , "language" === b . data . name && ( f = e = ! 0 ) , a . fire ( "reloadMarkupScayt" , { removeOptions : { removeInside : g , forceBookmark : f , language : e } , timeout : 0 } ) ) } ) ; a . on ( "beforeSetMode" , function ( b ) { if ( "source" == b . data ) { if ( b = a . scayt ) c . destroy ( a ) , a . fire ( "scaytButtonState" , CKEDITOR . TRISTATE _DISABLED ) ; a . document && a . document . getBody ( ) . removeAttribute ( "_jquid" ) } } ) ; a . on ( "afterCommandExec" , function ( b ) { "wysiwyg" != a . mode || "undo" != b . data . name && "redo" != b . data . name || setTimeout ( function ( ) { c . reloadMarkup ( a . scayt ) } , 250 ) } ) ; a . on ( "readOnly" ,
function ( b ) { var d ; b && ( d = a . scayt , ! 0 === b . editor . readOnly ? d && d . fire ( "removeMarkupInDocument" , { } ) : d ? c . reloadMarkup ( d ) : "wysiwyg" == b . editor . mode && ! 0 === c . state . scayt [ b . editor . name ] && ( c . createScayt ( a ) , b . editor . fire ( "scaytButtonState" , CKEDITOR . TRISTATE _ON ) ) ) } ) ; a . on ( "beforeDestroy" , b ) ; a . on ( "setData" , function ( ) { b ( ) ; ( a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE || a . plugins . divarea ) && g ( ) } , this , null , 50 ) ; a . on ( "reloadMarkupScayt" , function ( b ) { var d = b . data && b . data . removeOptions , e = b . data && b . data . timeout , f = b . data && b . data . language ,
g = a . scayt ; g && setTimeout ( function ( ) { f && ( d . selectionNode = a . plugins . language . getCurrentLangElement ( a ) , d . selectionNode = d . selectionNode && d . selectionNode . $ || null ) ; g . removeMarkupInSelectionNode ( d ) ; c . reloadMarkup ( g ) } , e || 0 ) } ) ; a . on ( "insertElement" , function ( ) { a . fire ( "reloadMarkupScayt" , { removeOptions : { forceBookmark : ! 0 } } ) } , this , null , 50 ) ; a . on ( "insertHtml" , function ( ) { a . scayt && a . scayt . setFocused && a . scayt . setFocused ( ! 0 ) ; a . fire ( "reloadMarkupScayt" ) } , this , null , 50 ) ; a . on ( "insertText" , function ( ) { a . scayt && a . scayt . setFocused &&
a . scayt . setFocused ( ! 0 ) ; a . fire ( "reloadMarkupScayt" ) } , this , null , 50 ) ; a . on ( "scaytDialogShown" , function ( b ) { b . data . selectPage ( a . scayt . tabToOpen ) } ) } , parseConfig : function ( a ) { var c = CKEDITOR . plugins . scayt ; c . replaceOldOptionsNames ( a . config ) ; "boolean" !== typeof a . config . scayt _autoStartup && ( a . config . scayt _autoStartup = ! 1 ) ; c . state . scayt [ a . name ] = a . config . scayt _autoStartup ; "boolean" !== typeof a . config . grayt _autoStartup && ( a . config . grayt _autoStartup = ! 1 ) ; "boolean" !== typeof a . config . scayt _inlineModeImmediateMarkup && ( a . config . scayt _inlineModeImmediateMarkup =
! 1 ) ; c . state . grayt [ a . name ] = a . config . grayt _autoStartup ; a . config . scayt _contextCommands || ( a . config . scayt _contextCommands = "ignoreall|add" ) ; a . config . scayt _contextMenuItemsOrder || ( a . config . scayt _contextMenuItemsOrder = "suggest|moresuggest|control" ) ; a . config . scayt _sLang || ( a . config . scayt _sLang = "en_US" ) ; if ( void 0 === a . config . scayt _maxSuggestions || "number" != typeof a . config . scayt _maxSuggestions || 0 > a . config . scayt _maxSuggestions ) a . config . scayt _maxSuggestions = 3 ; if ( void 0 === a . config . scayt _minWordLength || "number" !=
typeof a . config . scayt _minWordLength || 1 > a . config . scayt _minWordLength ) a . config . scayt _minWordLength = 3 ; if ( void 0 === a . config . scayt _customDictionaryIds || "string" !== typeof a . config . scayt _customDictionaryIds ) a . config . scayt _customDictionaryIds = "" ; if ( void 0 === a . config . scayt _userDictionaryName || "string" !== typeof a . config . scayt _userDictionaryName ) a . config . scayt _userDictionaryName = null ; if ( "string" === typeof a . config . scayt _uiTabs && 3 === a . config . scayt _uiTabs . split ( "," ) . length ) { var d = [ ] , b = [ ] ; a . config . scayt _uiTabs =
a . config . scayt _uiTabs . split ( "," ) ; CKEDITOR . tools . search ( a . config . scayt _uiTabs , function ( a ) { 1 === Number ( a ) || 0 === Number ( a ) ? ( b . push ( ! 0 ) , d . push ( Number ( a ) ) ) : b . push ( ! 1 ) } ) ; null === CKEDITOR . tools . search ( b , ! 1 ) ? a . config . scayt _uiTabs = d : a . config . scayt _uiTabs = [ 1 , 1 , 1 ] } else a . config . scayt _uiTabs = [ 1 , 1 , 1 ] ; "string" != typeof a . config . scayt _serviceProtocol && ( a . config . scayt _serviceProtocol = null ) ; "string" != typeof a . config . scayt _serviceHost && ( a . config . scayt _serviceHost = null ) ; "string" != typeof a . config . scayt _servicePort && ( a . config . scayt _servicePort =
null ) ; "string" != typeof a . config . scayt _servicePath && ( a . config . scayt _servicePath = null ) ; a . config . scayt _moreSuggestions || ( a . config . scayt _moreSuggestions = "on" ) ; "string" !== typeof a . config . scayt _customerId && ( a . config . scayt _customerId = "1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2" ) ; "string" !== typeof a . config . scayt _customPunctuation && ( a . config . scayt _customPunctuation = "-" ) ; "string" !== typeof a . config . scayt _srcUrl && ( c = document . location . protocol , c = - 1 != c . search ( /https?:/ ) ? c : "http:" , a . config . scayt _srcUrl =
c + "//svc.webspellchecker.net/spellcheck31/lf/scayt3/ckscayt/ckscayt.js" ) ; "boolean" !== typeof CKEDITOR . config . scayt _handleCheckDirty && ( CKEDITOR . config . scayt _handleCheckDirty = ! 0 ) ; "boolean" !== typeof CKEDITOR . config . scayt _handleUndoRedo && ( CKEDITOR . config . scayt _handleUndoRedo = ! 0 ) ; CKEDITOR . config . scayt _handleUndoRedo = CKEDITOR . plugins . undo ? CKEDITOR . config . scayt _handleUndoRedo : ! 1 ; "boolean" !== typeof a . config . scayt _multiLanguageMode && ( a . config . scayt _multiLanguageMode = ! 1 ) ; "object" !== typeof a . config . scayt _multiLanguageStyles &&
( a . config . scayt _multiLanguageStyles = { } ) ; a . config . scayt _ignoreAllCapsWords && "boolean" !== typeof a . config . scayt _ignoreAllCapsWords && ( a . config . scayt _ignoreAllCapsWords = ! 1 ) ; a . config . scayt _ignoreDomainNames && "boolean" !== typeof a . config . scayt _ignoreDomainNames && ( a . config . scayt _ignoreDomainNames = ! 1 ) ; a . config . scayt _ignoreWordsWithMixedCases && "boolean" !== typeof a . config . scayt _ignoreWordsWithMixedCases && ( a . config . scayt _ignoreWordsWithMixedCases = ! 1 ) ; a . config . scayt _ignoreWordsWithNumbers && "boolean" !== typeof a . config . scayt _ignoreWordsWithNumbers &&
( a . config . scayt _ignoreWordsWithNumbers = ! 1 ) ; if ( a . config . scayt _disableOptionsStorage ) { var c = CKEDITOR . tools . isArray ( a . config . scayt _disableOptionsStorage ) ? a . config . scayt _disableOptionsStorage : "string" === typeof a . config . scayt _disableOptionsStorage ? [ a . config . scayt _disableOptionsStorage ] : void 0 , e = "all options lang ignore-all-caps-words ignore-domain-names ignore-words-with-mixed-cases ignore-words-with-numbers" . split ( " " ) , f = [ "lang" , "ignore-all-caps-words" , "ignore-domain-names" , "ignore-words-with-mixed-cases" ,
"ignore-words-with-numbers" ] , g = CKEDITOR . tools . search , h = CKEDITOR . tools . indexOf ; a . config . scayt _disableOptionsStorage = function ( a ) { for ( var b = [ ] , d = 0 ; d < a . length ; d ++ ) { var c = a [ d ] , n = ! ! g ( a , "options" ) ; if ( ! g ( e , c ) || n && g ( f , function ( a ) { if ( "lang" === a ) return ! 1 } ) ) return ; g ( f , c ) && f . splice ( h ( f , c ) , 1 ) ; if ( "all" === c || n && g ( a , "lang" ) ) return [ ] ; "options" === c && ( f = [ "lang" ] ) } return b = b . concat ( f ) } ( c ) } } , addRule : function ( a ) { var c = CKEDITOR . plugins . scayt , d = a . dataProcessor , b = d && d . htmlFilter , e = a . _ . elementsPath && a . _ . elementsPath . filters ,
d = d && d . dataFilter , f = a . addRemoveFormatFilter , g = function ( b ) { if ( a . scayt && ( b . hasAttribute ( c . options . data _attribute _name ) || b . hasAttribute ( c . options . problem _grammar _data _attribute ) ) ) return ! 1 } , h = function ( b ) { var d = ! 0 ; a . scayt && ( b . hasAttribute ( c . options . data _attribute _name ) || b . hasAttribute ( c . options . problem _grammar _data _attribute ) ) && ( d = ! 1 ) ; return d } ; e && e . push ( g ) ; d && d . addRules ( { elements : { span : function ( a ) { var b = a . hasClass ( c . options . misspelled _word _class ) && a . attributes [ c . options . data _attribute _name ] , d = a . hasClass ( c . options . problem _grammar _class ) &&
a . attributes [ c . options . problem _grammar _data _attribute ] ; c && ( b || d ) && delete a . name ; return a } } } ) ; b && b . addRules ( { elements : { span : function ( a ) { var b = a . hasClass ( c . options . misspelled _word _class ) && a . attributes [ c . options . data _attribute _name ] , d = a . hasClass ( c . options . problem _grammar _class ) && a . attributes [ c . options . problem _grammar _data _attribute ] ; c && ( b || d ) && delete a . name ; return a } } } ) ; f && f . call ( a , h ) } , scaytMenuDefinition : function ( a ) { var c = this ; a = a . scayt ; return { scayt : { scayt _ignore : { label : a . getLocal ( "btn_ignore" ) , group : "scayt_control" ,
order : 1 , exec : function ( a ) { a . scayt . ignoreWord ( ) } } , scayt _ignoreall : { label : a . getLocal ( "btn_ignoreAll " ) , group : "scayt_control" , order : 2 , exec : function ( a ) { a . scayt . ignoreAllWords ( ) } } , scayt _add : { label : a . getLocal ( "btn_addWord " ) , group : "scayt_control" , order : 3 , exec : function ( a ) { var b = a . scayt ; setTimeout ( function ( ) { b . addWordToUserDictionary ( ) } , 10 ) } } , scayt _option : { label : a . getLocal ( "btn_option s" ) , group : "scayt_control" , order : 4 , exec : function ( a ) { a . scayt . tabToOpen = "options" ; a . lockSelection ( ) ; a . openDialog ( c . dialogName ) } ,
verification : function ( a ) { return 1 == a . config . scayt _uiTabs [ 0 ] ? ! 0 : ! 1 } } , scayt _language : { label : a . getLocal ( "btn_lang s" ) , group : "scayt_control" , order : 5 , exec : function ( a ) { a . scayt . tabToOpen = "langs" ; a . lockSelection ( ) ; a . openDialog ( c . dialogName ) } , verification : function ( a ) { return 1 == a . config . scayt _uiTabs [ 1 ] ? ! 0 : ! 1 } } , scayt _dictionary : { label : a . getLocal ( "btn_dictionaries " ) , group : "scayt_control" , order : 6 , exec : function ( a ) { a . scayt . tabToOpen = "dictionaries" ; a . lockSelection ( ) ; a . openDialog ( c . dialogName ) } , verification : function ( a ) { return 1 ==
a . config . scayt _uiTabs [ 2 ] ? ! 0 : ! 1 } } , scayt _about : { label : a . getLocal ( "btn_about" ) , group : "scayt_control" , order : 7 , exec : function ( a ) { a . scayt . tabToOpen = "about" ; a . lockSelection ( ) ; a . openDialog ( c . dialogName ) } } } , grayt : { grayt _problemdescription : { label : "Grammar problem description" , group : "grayt_description" , order : 1 , state : CKEDITOR . TRISTATE _DISABLED , exec : function ( a ) { } } , grayt _ignore : { label : a . getLocal ( "btn_ignore" ) , group : "grayt_control" , order : 2 , exec : function ( a ) { a . scayt . ignorePhrase ( ) } } , grayt _ignoreall : { label : a . getLocal ( "btn_ignoreAll" ) ,
group : "gr ayt_control" , order : 3 , exec : function ( a ) { a . scayt . ignoreAllPhrases ( ) } } } } } , buildSuggestionMenuItems : function ( a , c , d ) { var b = { } , e = { } , f = d ? "word" : "phrase" , g = d ? "startGrammarCheck" : "startSpellCheck" , h = a . scayt ; if ( 0 < c . length && "no_any_suggestions" !== c [ 0 ] ) if ( d ) for ( d = 0 ; d < c . length ; d ++ ) { var k = "scayt_suggest_ " + CKEDITOR . plugins . scayt . suggestions [ d ] . replace ( " " , "_" ) ; a . addCommand ( k , this . createCommand ( CKEDITOR . plugins . scayt . suggestions [ d ] , f , g ) ) ; d < a . config . scayt _maxSuggestions ? ( a . addMenuItem ( k , { label : c [ d ] , command : k ,
group : "scayt_suggest" , order : d + 1 } ) , b [ k ] = CKEDITOR . TRISTATE _OFF ) : ( a . addMenuItem ( k , { label : c [ d ] , command : k , group : "sc ayt_more suggest" , order : d + 1 } ) , e [ k ] = CKEDITOR . TRISTATE _OFF , "on" === a . config . scayt _moreSuggestions && ( a . addMenuItem ( "scayt_moresuggest" , { label : h . getLocal ( "btn_moreSuggestions" ) , group : "sc ayt_more suggest" , order : 10 , getItems : function ( ) { return e } } ) , b . scayt _moresuggest = CKEDITOR . TRISTATE _OFF ) ) } else for ( d = 0 ; d < c . length ; d ++ ) k = "gr ayt_suggest_ "+ CKEDITOR . plugins . scayt . suggestions [ d ] . replace ( " " , "_" ) , a . addCommand ( k ,
this . createCommand ( CKEDITOR . plugins . scayt . suggestions [ d ] , f , g ) ) , a . addMenuItem ( k , { label : c [ d ] , command : k , group : "grayt_suggest" , order : d + 1 } ) , b [ k ] = CKEDITOR . TRISTATE _OFF ; else b . no _scayt _suggest = CKEDITOR . TRISTATE _DISABLED , a . addCommand ( "no_scayt_suggest" , { exec : function ( ) { } } ) , a . addMenuItem ( "no_scayt_suggest" , { label : h . getLocal ( "btn_noSuggestions" ) || "no_scayt_suggest" , command : "no_scayt_suggest" , group : "scayt_suggest" , order : 0 } ) ; return b } , menuGenerator : function ( a , c ) { var d = a . scayt , b = this . scaytMenuDefinition ( a ) , e =
{ } , f = a . config . scayt _contextCommands . split ( "|" ) , g = c . getAttribute ( d . getLangAttribute ( ) ) || d . getLang ( ) , h , k , m ; h = d . isScaytNode ( c ) ; k = d . isGraytNode ( c ) ; h ? ( b = b . scayt , e = c . getAttribute ( d . getScaytNodeAttributeName ( ) ) , d . fire ( "getSuggestionsList" , { lang : g , word : e } ) , e = this . buildSuggestionMenuItems ( a , CKEDITOR . plugins . scayt . suggestions , h ) ) : k && ( b = b . grayt , e = c . getAttribute ( d . getGraytNodeAttributeName ( ) ) , m = d . getProblemDescriptionText ( e , g ) , b . grayt _problemdescription && m && ( b . grayt _problemdescription . label = m ) , d . fire ( "getGrammarSuggestionsList" ,
{ lang : g , phrase : e } ) , e = this . buildSuggestionMenuItems ( a , CKEDITOR . plugins . scayt . suggestions , h ) ) ; if ( h && "off" == a . config . scayt _contextCommands ) return e ; for ( var l in b ) h && - 1 == CKEDITOR . tools . indexOf ( f , l . replace ( "scayt_" , "" ) ) && "all" != a . config . scayt _contextCommands || k && "grayt_problemdescription" !== l && - 1 == CKEDITOR . tools . indexOf ( f , l . replace ( "grayt_" , "" ) ) && "all" != a . config . scayt _contextCommands || ( e [ l ] = "undefined" != typeof b [ l ] . state ? b [ l ] . state : CKEDITOR . TRISTATE _OFF , "function" !== typeof b [ l ] . verification || b [ l ] . verification ( a ) ||
delete e [ l ] , a . addCommand ( l , { exec : b [ l ] . exec } ) , a . addMenuItem ( l , { label : a . lang . scayt [ b [ l ] . label ] || b [ l ] . label , command : l , group : b [ l ] . group , order : b [ l ] . order } ) ) ; return e } , createCommand : function ( a , c , d ) { return { exec : function ( b ) { b = b . scayt ; var e = { } ; e [ c ] = a ; b . replaceSelectionNode ( e ) ; "startGrammarCheck" === d && b . removeMarkupInSelectionNode ( { grammarOnly : ! 0 } ) ; b . fire ( d ) } } } } ) ;
CKEDITOR . getUrl ( this . path + "dialogs/options.js" ) ) ; this . addMenuItems ( a ) ; var b = a . lang . scayt , e = CKEDITOR . env ; a . ui . add ( "Scayt" , CKEDITOR . UI _MENUBUTTON , { label : b . text _title , title : a . plugins . wsc ? a . lang . wsc . title : b . text _title , modes : { wysiwyg : ! ( e . ie && ( 8 > e . version || e . quirks ) ) } , toolbar : "spellchecker,20" , refresh : function ( ) { var b = a . ui . instances . Scayt . getState ( ) ; a . scayt && ( b = d . state . scayt [ a . name ] ? CKEDITOR . TRISTATE _ON : CKEDITOR . TRISTATE _OFF ) ; a . fire ( "scaytButtonState" , b ) } , onRender : function ( ) { var b = this ; a . on ( "scaytButtonState" ,
function ( a ) { void 0 !== typeof a . data && b . setState ( a . data ) } ) } , onMenu : function ( ) { var b = a . scayt ; a . getMenuItem ( "scaytToggle" ) . label = a . lang . scayt [ b && d . state . scayt [ a . name ] ? "btn_disable" : "btn_enable" ] ; var c = { scaytToggle : CKEDITOR . TRISTATE _OFF , scaytOptions : b ? CKEDITOR . TRISTATE _OFF : CKEDITOR . TRISTATE _DISABLED , scaytLangs : b ? CKEDITOR . TRISTATE _OFF : CKEDITOR . TRISTATE _DISABLED , scaytDict : b ? CKEDITOR . TRISTATE _OFF : CKEDITOR . TRISTATE _DISABLED , scaytAbout : b ? CKEDITOR . TRISTATE _OFF : CKEDITOR . TRISTATE _DISABLED , WSC : a . plugins . wsc ? CKEDITOR . TRISTATE _OFF :
CKEDITOR . TRISTATE _DISABLED } ; a . config . scayt _uiTabs [ 0 ] || delete c . scaytOptions ; a . config . scayt _uiTabs [ 1 ] || delete c . scaytLangs ; a . config . scayt _uiTabs [ 2 ] || delete c . scaytDict ; b && ! CKEDITOR . plugins . scayt . isNewUdSupported ( b ) && ( delete c . scaytDict , a . config . scayt _uiTabs [ 2 ] = 0 , CKEDITOR . plugins . scayt . alarmCompatibilityMessage ( ) ) ; return c } } ) ; a . contextMenu && a . addMenuItems && ( a . contextMenu . addListener ( function ( b , d ) { var e = a . scayt , l , m ; e && ( m = e . getSelectionNode ( ) ) && ( l = c . menuGenerator ( a , m ) , e . showBanner ( "." + a . contextMenu . _ . definition . panel . className . split ( " " ) . join ( " ." ) ) ) ;
return l } ) , a . contextMenu . _ . onHide = CKEDITOR . tools . override ( a . contextMenu . _ . onHide , function ( b ) { return function ( ) { var d = a . scayt ; d && d . hideBanner ( ) ; return b . apply ( this ) } } ) ) } , addMenuItems : function ( a ) { var c = this , d = CKEDITOR . plugins . scayt ; a . addMenuGroup ( "scaytButton" ) ; for ( var b = a . config . scayt _contextMenuItemsOrder . split ( "|" ) , e = 0 ; e < b . length ; e ++ ) b [ e ] = "scayt_" + b [ e ] ; if ( ( b = [ "grayt_description" , "grayt_suggest" , "grayt_control" ] . concat ( b ) ) && b . length ) for ( e = 0 ; e < b . length ; e ++ ) a . addMenuGroup ( b [ e ] , e - 10 ) ; a . addCommand ( "scaytToggle" ,
{ exec : function ( a ) { var b = a . scayt ; d . state . scayt [ a . name ] = ! d . state . scayt [ a . name ] ; ! 0 === d . state . scayt [ a . name ] ? b || d . createScayt ( a ) : b && d . destroy ( a ) } } ) ; a . addCommand ( "scaytAbout" , { exec : function ( a ) { a . scayt . tabToOpen = "about" ; d . openDialog ( c . dialogName , a ) } } ) ; a . addCommand ( "scaytOptions" , { exec : function ( a ) { a . scayt . tabToOpen = "options" ; d . openDialog ( c . dialogName , a ) } } ) ; a . addCommand ( "scaytLangs" , { exec : function ( a ) { a . scayt . tabToOpen = "langs" ; d . openDialog ( c . dialogName , a ) } } ) ; a . addCommand ( "scaytDict" , { exec : function ( a ) { a . scayt . tabToOpen =
"dictionaries" ; d . openDialog ( c . dialogName , a ) } } ) ; b = { scaytToggle : { label : a . lang . scayt . btn _enable , group : "scaytButton" , command : "scaytToggle" } , scaytAbout : { label : a . lang . scayt . btn _about , group : "scaytButton" , command : "scaytAbout" } , scaytOptions : { label : a . lang . scayt . btn _options , group : "scaytButton" , command : "scaytOptions" } , scaytLangs : { label : a . lang . scayt . btn _langs , group : "scaytButton" , command : "scaytLangs" } , scaytDict : { label : a . lang . scayt . btn _dictionaries , group : "scaytButton" , command : "scaytDict" } } ; a . plugins . wsc && ( b . WSC =
{ label : a . lang . wsc . toolbar , group : "scaytButton" , onClick : function ( ) { var b = CKEDITOR . plugins . scayt , d = a . scayt , c = a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? a . container . getText ( ) : a . document . getBody ( ) . getText ( ) ; ( c = c . replace ( /\s/g , "" ) ) ? ( d && b . state . scayt [ a . name ] && d . setMarkupPaused && d . setMarkupPaused ( ! 0 ) , a . lockSelection ( ) , a . execCommand ( "checkspell" ) ) : alert ( "Nothing to check!" ) } } ) ; a . addMenuItems ( b ) } , bindEvents : function ( a ) { var c = CKEDITOR . plugins . scayt , d = a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE , b = function ( ) { c . destroy ( a ) } ,
e = function ( ) { ! c . state . scayt [ a . name ] || a . readOnly || a . scayt || c . createScayt ( a ) } , f = function ( ) { var b = a . editable ( ) ; b . attachListener ( b , "focus" , function ( b ) { CKEDITOR . plugins . scayt && ! a . scayt && setTimeout ( e , 0 ) ; b = CKEDITOR . plugins . scayt && CKEDITOR . plugins . scayt . state . scayt [ a . name ] && a . scayt ; var c , k ; if ( ( d || b ) && a . _ . savedSelection ) { b = a . _ . savedSelection . getSelectedElement ( ) ; b = ! b && a . _ . savedSelection . getRanges ( ) ; for ( var h = 0 ; h < b . length ; h ++ ) k = b [ h ] , "string" === typeof k . startContainer . $ . nodeValue && ( c = k . startContainer . getText ( ) . length ,
( c < k . startOffset || c < k . endOffset ) && a . unlockSelection ( ! 1 ) ) } } , this , null , - 10 ) } , g = function ( ) { d ? a . config . scayt _inlineModeImmediateMarkup ? e ( ) : ( a . on ( "blur" , function ( ) { setTimeout ( b , 0 ) } ) , a . on ( "focus" , e ) , a . focusManager . hasFocus && e ( ) ) : e ( ) ; f ( ) ; var c = a . editable ( ) ; c . attachListener ( c , "mousedown" , function ( b ) { b = b . data . getTarget ( ) ; var d = a . widgets && a . widgets . getByElement ( b ) ; d && ( d . wrapper = b . getAscendant ( function ( a ) { return a . hasAttribute ( "data-cke-widget-wrapper" ) } , ! 0 ) ) } , this , null , - 10 ) } ; a . on ( "contentDom" , g ) ; a . on ( "beforeCommandExec" ,
function ( b ) { var d = a . scayt , e = ! 1 , f = ! 1 , h = ! 0 ; b . data . name in c . options . disablingCommandExec && "wysiwyg" == a . mode ? d && ( c . destroy ( a ) , a . fire ( "scaytButtonState" , CKEDITOR . TRISTATE _DISABLED ) ) : "bold" !== b . data . name && "italic" !== b . data . name && "underline" !== b . data . name && "strike" !== b . data . name && "subscript" !== b . data . name && "superscript" !== b . data . name && "enter" !== b . data . name && "cut" !== b . data . name && "language" !== b . data . name || ! d || ( "cut" === b . data . name && ( h = ! 1 , f = ! 0 ) , "language" === b . data . name && ( f = e = ! 0 ) , a . fire ( "reloadMarkupScayt" ,
{ removeOptions : { removeInside : h , forceBookmark : f , language : e } , timeout : 0 } ) ) } ) ; a . on ( "beforeSetMode" , function ( b ) { if ( "source" == b . data ) { if ( b = a . scayt ) c . destroy ( a ) , a . fire ( "scaytButtonState" , CKEDITOR . TRISTATE _DISABLED ) ; a . document && a . document . getBody ( ) . removeAttribute ( "_jquid" ) } } ) ; a . on ( "afterCommandExec" , function ( b ) { "wysiwyg" != a . mode || "undo" != b . data . name && "redo" != b . data . name || setTimeout ( function ( ) { c . reloadMarkup ( a . scayt ) } , 250 ) } ) ; a . on ( "readOnly" , function ( b ) { var d ; b && ( d = a . scayt , ! 0 === b . editor . readOnly ? d && d . fire ( "removeMarkupInDocument" ,
{ } ) : d ? c . reloadMarkup ( d ) : "wysiwyg" == b . editor . mode && ! 0 === c . state . scayt [ b . editor . name ] && ( c . createScayt ( a ) , b . editor . fire ( "scaytButtonState" , CKEDITOR . TRISTATE _ON ) ) ) } ) ; a . on ( "beforeDestroy" , b ) ; a . on ( "setData" , function ( ) { b ( ) ; ( a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE || a . plugins . divarea ) && g ( ) } , this , null , 50 ) ; a . on ( "reloadMarkupScayt" , function ( b ) { var d = b . data && b . data . removeOptions , e = b . data && b . data . timeout , f = b . data && b . data . language , h = a . scayt ; h && setTimeout ( function ( ) { f && ( d . selectionNode = a . plugins . language . getCurrentLangElement ( a ) ,
d . selectionNode = d . selectionNode && d . selectionNode . $ || null ) ; h . removeMarkupInSelectionNode ( d ) ; c . reloadMarkup ( h ) } , e || 0 ) } ) ; a . on ( "insertElement" , function ( ) { a . fire ( "reloadMarkupScayt" , { removeOptions : { forceBookmark : ! 0 } } ) } , this , null , 50 ) ; a . on ( "insertHtml" , function ( ) { a . scayt && a . scayt . setFocused && a . scayt . setFocused ( ! 0 ) ; a . fire ( "reloadMarkupScayt" ) } , this , null , 50 ) ; a . on ( "insertText" , function ( ) { a . scayt && a . scayt . setFocused && a . scayt . setFocused ( ! 0 ) ; a . fire ( "reloadMarkupScayt" ) } , this , null , 50 ) ; a . on ( "scaytDialogShown" , function ( b ) { b . data . selectPage ( a . scayt . tabToOpen ) } ) } ,
parseConfig : function ( a ) { var c = CKEDITOR . plugins . scayt ; c . replaceOldOptionsNames ( a . config ) ; "boolean" !== typeof a . config . scayt _autoStartup && ( a . config . scayt _autoStartup = ! 1 ) ; c . state . scayt [ a . name ] = a . config . scayt _autoStartup ; "boolean" !== typeof a . config . grayt _autoStartup && ( a . config . grayt _autoStartup = ! 1 ) ; "boolean" !== typeof a . config . scayt _inlineModeImmediateMarkup && ( a . config . scayt _inlineModeImmediateMarkup = ! 1 ) ; c . state . grayt [ a . name ] = a . config . grayt _autoStartup ; a . config . scayt _contextCommands || ( a . config . scayt _contextCommands =
"ignoreall|add" ) ; a . config . scayt _contextMenuItemsOrder || ( a . config . scayt _contextMenuItemsOrder = "suggest|moresuggest|control" ) ; a . config . scayt _sLang || ( a . config . scayt _sLang = "en_US" ) ; if ( void 0 === a . config . scayt _maxSuggestions || "number" != typeof a . config . scayt _maxSuggestions || 0 > a . config . scayt _maxSuggestions ) a . config . scayt _maxSuggestions = 3 ; if ( void 0 === a . config . scayt _minWordLength || "number" != typeof a . config . scayt _minWordLength || 1 > a . config . scayt _minWordLength ) a . config . scayt _minWordLength = 3 ; if ( void 0 === a . config . scayt _customDictionaryIds ||
"string" !== typeof a . config . scayt _customDictionaryIds ) a . config . scayt _customDictionaryIds = "" ; if ( void 0 === a . config . scayt _userDictionaryName || "string" !== typeof a . config . scayt _userDictionaryName ) a . config . scayt _userDictionaryName = null ; if ( "string" === typeof a . config . scayt _uiTabs && 3 === a . config . scayt _uiTabs . split ( "," ) . length ) { var d = [ ] , b = [ ] ; a . config . scayt _uiTabs = a . config . scayt _uiTabs . split ( "," ) ; CKEDITOR . tools . search ( a . config . scayt _uiTabs , function ( a ) { 1 === Number ( a ) || 0 === Number ( a ) ? ( b . push ( ! 0 ) , d . push ( Number ( a ) ) ) :
b . push ( ! 1 ) } ) ; null === CKEDITOR . tools . search ( b , ! 1 ) ? a . config . scayt _uiTabs = d : a . config . scayt _uiTabs = [ 1 , 1 , 1 ] } else a . config . scayt _uiTabs = [ 1 , 1 , 1 ] ; "string" != typeof a . config . scayt _serviceProtocol && ( a . config . scayt _serviceProtocol = null ) ; "string" != typeof a . config . scayt _serviceHost && ( a . config . scayt _serviceHost = null ) ; "string" != typeof a . config . scayt _servicePort && ( a . config . scayt _servicePort = null ) ; "string" != typeof a . config . scayt _servicePath && ( a . config . scayt _servicePath = null ) ; a . config . scayt _moreSuggestions || ( a . config . scayt _moreSuggestions =
"on" ) ; "string" !== typeof a . config . scayt _customerId && ( a . config . scayt _customerId = "1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2" ) ; "string" !== typeof a . config . scayt _customPunctuation && ( a . config . scayt _customPunctuation = "-" ) ; "string" !== typeof a . config . scayt _srcUrl && ( c = document . location . protocol , c = - 1 != c . search ( /https?:/ ) ? c : "http:" , a . config . scayt _srcUrl = c + "//svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js" ) ; "boolean" !== typeof CKEDITOR . config . scayt _handleCheckDirty && ( CKEDITOR . config . scayt _handleCheckDirty =
! 0 ) ; "boolean" !== typeof CKEDITOR . config . scayt _handleUndoRedo && ( CKEDITOR . config . scayt _handleUndoRedo = ! 0 ) ; CKEDITOR . config . scayt _handleUndoRedo = CKEDITOR . plugins . undo ? CKEDITOR . config . scayt _handleUndoRedo : ! 1 ; "boolean" !== typeof a . config . scayt _multiLanguageMode && ( a . config . scayt _multiLanguageMode = ! 1 ) ; "object" !== typeof a . config . scayt _multiLanguageStyles && ( a . config . scayt _multiLanguageStyles = { } ) ; a . config . scayt _ignoreAllCapsWords && "boolean" !== typeof a . config . scayt _ignoreAllCapsWords && ( a . config . scayt _ignoreAllCapsWords =
! 1 ) ; a . config . scayt _ignoreDomainNames && "boolean" !== typeof a . config . scayt _ignoreDomainNames && ( a . config . scayt _ignoreDomainNames = ! 1 ) ; a . config . scayt _ignoreWordsWithMixedCases && "boolean" !== typeof a . config . scayt _ignoreWordsWithMixedCases && ( a . config . scayt _ignoreWordsWithMixedCases = ! 1 ) ; a . config . scayt _ignoreWordsWithNumbers && "boolean" !== typeof a . config . scayt _ignoreWordsWithNumbers && ( a . config . scayt _ignoreWordsWithNumbers = ! 1 ) ; if ( a . config . scayt _disableOptionsStorage ) { var c = CKEDITOR . tools . isArray ( a . config . scayt _disableOptionsStorage ) ?
a . config . scayt _disableOptionsStorage : "string" === typeof a . config . scayt _disableOptionsStorage ? [ a . config . scayt _disableOptionsStorage ] : void 0 , e = "all options lang ignore-all-caps-words ignore-domain-names ignore-words-with-mixed-cases ignore-words-with-numbers" . split ( " " ) , f = [ "lang" , "ignore-all-caps-words" , "ignore-domain-names" , "ignore-words-with-mixed-cases" , "ignore-words-with-numbers" ] , g = CKEDITOR . tools . search , k = CKEDITOR . tools . indexOf ; a . config . scayt _disableOptionsStorage = function ( a ) { for ( var b = [ ] , d = 0 ; d <
a . length ; d ++ ) { var c = a [ d ] , p = ! ! g ( a , "options" ) ; if ( ! g ( e , c ) || p && g ( f , function ( a ) { if ( "lang" === a ) return ! 1 } ) ) return ; g ( f , c ) && f . splice ( k ( f , c ) , 1 ) ; if ( "all" === c || p && g ( a , "lang" ) ) return [ ] ; "options" === c && ( f = [ "lang" ] ) } return b = b . concat ( f ) } ( c ) } } , addRule : function ( a ) { var c = CKEDITOR . plugins . scayt , d = a . dataProcessor , b = d && d . htmlFilter , e = a . _ . elementsPath && a . _ . elementsPath . filters , d = d && d . dataFilter , f = a . addRemoveFormatFilter , g = function ( b ) { if ( a . scayt && ( b . hasAttribute ( c . options . data _attribute _name ) || b . hasAttribute ( c . options . problem _grammar _data _attribute ) ) ) return ! 1 } ,
k = function ( b ) { var d = ! 0 ; a . scayt && ( b . hasAttribute ( c . options . data _attribute _name ) || b . hasAttribute ( c . options . problem _grammar _data _attribute ) ) && ( d = ! 1 ) ; return d } ; e && e . push ( g ) ; d && d . addRules ( { elements : { span : function ( a ) { var b = a . hasClass ( c . options . misspelled _word _class ) && a . attributes [ c . options . data _attribute _name ] , d = a . hasClass ( c . options . problem _grammar _class ) && a . attributes [ c . options . problem _grammar _data _attribute ] ; c && ( b || d ) && delete a . name ; return a } } } ) ; b && b . addRules ( { elements : { span : function ( a ) { var b = a . hasClass ( c . options . misspelled _word _class ) &&
a . attributes [ c . options . data _attribute _name ] , d = a . hasClass ( c . options . problem _grammar _class ) && a . attributes [ c . options . problem _grammar _data _attribute ] ; c && ( b || d ) && delete a . name ; return a } } } ) ; f && f . call ( a , k ) } , scaytMenuDefinition : function ( a ) { var c = this , d = CKEDITOR . plugins . scayt ; a = a . scayt ; return { scayt : { scayt _ignore : { label : a . getLocal ( "btn_ignore" ) , group : "scayt_control" , order : 1 , exec : function ( a ) { a . scayt . ignoreWord ( ) } } , scayt _ignoreall : { label : a . getLocal ( "btn_ignoreAll" ) , group : "scayt_control" , order : 2 , exec : function ( a ) { a . scayt . ignoreAllWords ( ) } } ,
scayt _add : { label : a . getLocal ( "btn_addWord " ) , group : "scayt_control" , order : 3 , exec : function ( a ) { var d = a . scayt ; setTimeout ( function ( ) { d . addWordToUserDictionary ( ) } , 10 ) } } , scayt _option : { label : a . getLocal ( "btn_options " ) , group : "scayt_control" , order : 4 , exec : function ( a ) { a . scayt . tabToOpen = "options" ; d . openDialog ( c . dialogName , a ) } , verification : function ( a ) { return 1 == a . config . scayt _uiTabs [ 0 ] ? ! 0 : ! 1 } } , scayt _language : { label : a . getLocal ( "btn_lang s" ) , group : "scayt_control" , order : 5 , exec : function ( a ) { a . scayt . tabToOpen = "langs" ; d . openDialog ( c . dialogName ,
a ) } , verification : function ( a ) { return 1 == a . config . scayt _uiTabs [ 1 ] ? ! 0 : ! 1 } } , scayt _dictionary : { label : a . getLocal ( "btn_dictionarie s" ) , group : "scayt_control" , order : 6 , exec : function ( a ) { a . scayt . tabToOpen = "dictionaries" ; d . openDialog ( c . dialogName , a ) } , verification : function ( a ) { return 1 == a . config . scayt _uiTabs [ 2 ] ? ! 0 : ! 1 } } , scayt _about : { label : a . getLocal ( "btn_about " ) , group : "scayt_control" , order : 7 , exec : function ( a ) { a . scayt . tabToOpen = "about" ; d . openDialog ( c . dialogName , a ) } } } , grayt : { grayt _problemdescription : { label : "Grammar problem description" ,
group : "grayt_description" , order : 1 , state : CKEDITOR . TRISTATE _DISABLED , exec : function ( a ) { } } , grayt _ignore : { label : a . getLocal ( "btn_ignore" ) , group : "grayt_control" , order : 2 , exec : function ( a ) { a . scayt . ignorePhrase ( ) } } , grayt _ignoreall : { label : a . getLocal ( "btn_ignoreAll" ) , group : "grayt_control" , order : 3 , exec : function ( a ) { a . scayt . ignoreAllPhrases ( ) } } } } } , buildSuggestionMenuItems : function ( a , c , d ) { var b = { } , e = { } , f = d ? "word" : "phrase" , g = d ? "startGrammarCheck" : "startSpellCheck" , k = a . scayt ; if ( 0 < c . length && "no_any_suggestions" !== c [ 0 ] ) if ( d ) for ( d =
0 ; d < c . length ; d ++ ) { var l = "sc ayt_suggest_" + CKEDITOR . plugins . scayt . suggestions [ d ] . replace ( " " , "_" ) ; a . addCommand ( l , this . createCommand ( CKEDITOR . plugins . scayt . suggestions [ d ] , f , g ) ) ; d < a . config . scayt _maxSuggestions ? ( a . addMenuItem ( l , { label : c [ d ] , command : l , group : "scayt_suggest" , order : d + 1 } ) , b [ l ] = CKEDITOR . TRISTATE _OFF ) : ( a . addMenuItem ( l , { label : c [ d ] , command : l , group : "scayt_more suggest" , order : d + 1 } ) , e [ l ] = CKEDITOR . TRISTATE _OFF , "on" === a . config . scayt _moreSuggestions && ( a . addMenuItem ( "scayt_moresuggest" , { label : k . getLocal ( "btn_moreSuggestions" ) ,
group : "scayt_more suggest" , order : 10 , getItems : function ( ) { return e } } ) , b . scayt _moresuggest = CKEDITOR . TRISTATE _OFF ) ) } else for ( d = 0 ; d < c . length ; d ++ ) l = "gr ayt_suggest_ " + CKEDITOR . plugins . scayt . suggestions [ d ] . replace ( " " , "_" ) , a . addCommand ( l , this . createCommand ( CKEDITOR . plugins . scayt . suggestions [ d ] , f , g ) ) , a . addMenuItem ( l , { label : c [ d ] , command : l , group : "gr ayt_suggest" , order : d + 1 } ) , b [ l ] = CKEDITOR . TRISTATE _OFF ; else b . no _scayt _suggest = CKEDITOR . TRISTATE _DISABLED , a . addCommand ( "no_sc ayt_suggest", { exec : function ( ) { } } ) , a . addMenuItem ( "no_scayt_suggest" ,
{ label : k . getLocal ( "btn_noSuggestions" ) || "no_scayt_suggest" , command : "no_scayt_suggest" , group : "scayt_suggest" , order : 0 } ) ; return b } , menuGenerator : function ( a , c ) { var d = a . scayt , b = this . scaytMenuDefinition ( a ) , e = { } , f = a . config . scayt _contextCommands . split ( "|" ) , g = c . getAttribute ( d . getLangAttribute ( ) ) || d . getLang ( ) , k , l , m , n ; l = d . isScaytNode ( c ) ; m = d . isGraytNode ( c ) ; l ? ( b = b . scayt , k = c . getAttribute ( d . getScaytNodeAttributeName ( ) ) , d . fire ( "getSuggestionsList" , { lang : g , word : k } ) , e = this . buildSuggestionMenuItems ( a , CKEDITOR . plugins . scayt . suggestions ,
l ) ) : m && ( b = b . grayt , e = c . getAttribute ( d . getGraytNodeAttributeName ( ) ) , d . getGraytNodeRuleAttributeName ? ( k = c . getAttribute ( d . getGraytNodeRuleAttributeName ( ) ) , d . getProblemDescriptionText ( e , k , g ) ) : d . getProblemDescriptionText ( e , g ) , n = d . getProblemDescriptionText ( e , k , g ) , b . grayt _problemdescription && n && ( n = n . replace ( /([.!?])\s/g , "$1\x3cbr\x3e" ) , b . grayt _problemdescription . label = n ) , d . fire ( "getGrammar SuggestionsList" , { lang : g , phrase : e , rule : k } ) , e = this . buildSuggestionMenuItems ( a , CKEDITOR . plugins . scayt . suggestions , l ) ) ; if ( l &&
"off" == a . config . scayt _contextCommands ) return e ; for ( var h in b ) l && - 1 == CKEDITOR . tools . indexOf ( f , h . replace ( "scayt_" , "" ) ) && "all" != a . config . scayt _contextCommands || m && "grayt_problemdescription" !== h && - 1 == CKEDITOR . tools . indexOf ( f , h . replace ( "grayt_" , "" ) ) && "all" != a . config . scayt _contextCommands || ( e [ h ] = "undefined" != typeof b [ h ] . state ? b [ h ] . state : CKEDITOR . TRISTATE _OFF , "function" !== typeof b [ h ] . verification || b [ h ] . verification ( a ) || delete e [ h ] , a . addCommand ( h , { exec : b [ h ] . exec } ) , a . addMenuItem ( h , { label : a . lang . scayt [ b [ h ] . label ] ||
b [ h ] . label , command : h , group : b [ h ] . group , order : b [ h ] . order } ) ) ; return e } , createCommand : function ( a , c , d ) { return { exec : function ( b ) { b = b . scayt ; var e = { } ; e [ c ] = a ; b . replaceSelectionNode ( e ) ; "startGrammarCheck" === d && b . removeMarkupInSelectionNode ( { grammarOnly : ! 0 } ) ; b . fire ( d ) } } } } ) ;
CKEDITOR . plugins . scayt = { charsToObserve : [ { charName : "cke-fillingChar" , charCode : function ( ) { var a = CKEDITOR . version . match ( /^\d(\.\d*)*/ ) , a = a && a [ 0 ] , c ; if ( a ) { c = "4.5.7" ; var d , a = a . replace ( /\./g , "" ) ; c = c . replace ( /\./g , "" ) ; d = a . length - c . length ; d = 0 <= d ? d : 0 ; c = parseInt ( a ) >= parseInt ( c ) * Math . pow ( 10 , d ) } return c ? Array ( 7 ) . join ( String . fromCharCode ( 8203 ) ) : String . fromCharCode ( 8203 ) } ( ) } ] , onLoadTimestamp : "" , state : { scayt : { } , grayt : { } } , warningCounter : 0 , suggestions : [ ] , options : { disablingCommandExec : { source : ! 0 , newpage : ! 0 , templates : ! 0 } ,
data _attribute _name : "data-scayt-word" , misspelled _word _class : "scayt-misspell-word" , problem _grammar _data _attribute : "data-grayt-phrase" , problem _grammar _class : "gramm-problem" } , backCompatibilityMap : { scayt _service _protocol : "scayt_serviceProtocol" , scayt _service _host : "scayt_serviceHost" , scayt _service _port : "scayt_servicePort" , scayt _service _path : "scayt_servicePath" , scayt _customerid : "scayt_customerId" } , alarmCompatibilityMessage : function ( ) { 5 > this . warningCounter && ( console . warn ( "You are using the latest version of SCAYT plugin for CKEditor with the old application version. In order to have access to the newest features, it is recommended to upgrade the application version to latest one as well. Contact us for more details at support@webspellchecker.net." ) ,
this . warningCounter += 1 ) } , isNewUdSupported : function ( a ) { return a . getUserDictionary ? ! 0 : ! 1 } , reloadMarkup : function ( a ) { var c ; a && ( c = a . getScaytLangList ( ) , a . reloadMarkup ? a . reloadMarkup ( ) : ( this . alarmCompatibilityMessage ( ) , c && c . ltr && c . rtl && a . fire ( "startSpellCheck, startGrammarCheck" ) ) ) } , replaceOldOptionsNames : function ( a ) { for ( var c in a ) c in this . backCompatibilityMap && ( a [ this . backCompatibilityMap [ c ] ] = a [ c ] , delete a [ c ] ) } , createScayt : function ( a ) { var c = this , d = CKEDITOR . plugins . scayt ; this . loadScaytLibrary ( a , function ( a ) { function e ( a ) { return new SCAYT . CKSCAYT ( a ,
function ( ) { } , function ( ) { } ) } var f = a . window && a . window . getFrame ( ) || a . editable ( ) ; if ( f ) { f = { lang : a . config . scayt _sLang , container : f . $ , customDictionary : a . config . scayt _customDictionaryIds , userDictionaryName : a . config . scayt _userDictionaryName , localization : a . langCode , customer _id : a . config . scayt _customerId , customPunctuation : a . config . scayt _customPunctuation , debug : a . config . scayt _debug , data _attribute _name : c . options . data _attribute _name , misspelled _word _class : c . options . misspelled _word _class , problem _grammar _data _attribute : c . options . problem _grammar _data _attribute ,
problem _grammar _class : c . options . problem _grammar _class , "options-to-restore" : a . config . scayt _disableOptionsStorage , focused : a . editable ( ) . hasFocus , ignoreElementsRegex : a . config . scayt _elementsToIgnore , ignoreGraytElementsRegex : a . config . grayt _elementsToIgnore , minWordLength : a . config . scayt _minWordLength , multiLanguageMode : a . config . scayt _multiLanguageMode , multiLanguageStyles : a . config . scayt _multiLanguageStyles , graytAutoStartup : a . config . grayt _autoStartup , charsToObserve : d . charsToObserve } ; a . config . scayt _serviceProtocol &&
( f . service _protocol = a . config . scayt _serviceProtocol ) ; a . config . scayt _serviceHost && ( f . service _host = a . config . scayt _serviceHost ) ; a . config . scayt _servicePort && ( f . service _port = a . config . scayt _servicePort ) ; a . config . scayt _servicePath && ( f . service _path = a . config . scayt _servicePath ) ; "boolean" === typeof a . config . scayt _ignoreAllCapsWords && ( f [ "ignore-all-caps-words" ] = a . config . scayt _ignoreAllCapsWords ) ; "boolean" === typeof a . config . scayt _ignoreDomainNames && ( f [ "ignore-domain-names" ] = a . config . scayt _ignoreDomainNames ) ; "boolean" ===
typeof a . config . scayt _ignoreWordsWithMixedCases && ( f [ "ignore-words-with-mixed-cases" ] = a . config . scayt _ignoreWordsWithMixedCases ) ; "boolean" === typeof a . config . scayt _ignoreWordsWithNumbers && ( f [ "ignore-words-with-number s" ] = a . config . scayt _ignoreWordsWithNumbers ) ; var g ; try { g = e ( f ) } catch ( h ) { c . alarmCompatibilityMessage ( ) , delete f . charsToObserve , g = e ( f ) } g . subscribe ( "suggestionListSend" , function ( a ) { for ( var b = { } , d = [ ] , c = 0 ; c < a . suggestionList . length ; c ++ ) b [ "word_" + a . suggestionList [ c ] ] || ( b [ "word_" + a . suggestionList [ c ] ] =
a . suggestionList [ c ] , d . push ( a . suggestionList [ c ] ) ) ; CKEDITOR . plugins . scayt . suggestions = d } ) ; g . subscribe ( "selectionIsChanged" , function ( d ) { a . getSelection ( ) . isLocked && "restoreSelectio n"! ==d . action && a . lockSelection ( ) ; "restoreSelection" === d . action && a . selectionChange ( ! 0 ) } ) ; g . subscribe ( "graytStateChange d", function ( c ) { d . state . grayt [ a . name ] = c . state } ) ; g . addMarkupHandler && g . addMarkupHandler ( function ( d ) { var c = a . editable ( ) , e = c . getCustomData ( d . charName ) ; e && ( e . $ = d . node , c . setCustomData ( d . charName , e ) ) } ) ; a . scayt = g ; a . fire ( "scaytButtonState" ,
a . readOnly ? CKEDITOR . TRISTATE _DISABLED : CKEDITOR . TRISTATE _ON ) } else d . state . scayt [ a . name ] = ! 1 } ) } , destroy : function ( a ) { a . scayt && a . scayt . destroy ( ) ; delete a . scayt ; a . fire ( "sc aytButtonState" , CKEDITOR . TRISTATE _OFF ) } , loadScaytLibrary : function ( a , c ) { var d , b = function ( ) { CKEDITOR . fireOnce ( "scaytReady" ) ; a . scayt || "function" === typeof c && c ( a ) } ; "undefined" === typeof window . SCAYT || "function" !== typeof window . SCAYT . CKSCAYT ? ( d = a . config . scayt _srcUrl + "?" + this . onLoadTimestamp , CKEDITOR . scriptLoader . load ( d , function ( a ) { a && b ( ) } ) ) :
window . SCAYT && "function" === typeof window . SCAYT . CKSCAYT && b ( ) } } ;
CKEDITOR . on ( "dialogDefinition" , function ( a ) { var c = a . data . name ; a = a . data . definition . dialog ; "scaytDialog" !== c && "checkspell" !== c && ( a . on ( "show" , function ( a ) { a = a . sender && a . sender . getParentEditor ( ) ; var b = CKEDITOR . plugins . scayt , c = a . scayt ; c && b . state . scayt [ a . name ] && c . setMarkupPaused && c . setMarkupPaused ( ! 0 ) } ) , a . on ( "hide" , function ( a ) { a = a . sender && a . sender . getParentEditor ( ) ; var b = CKEDITOR . plugins . scayt , c = a . scayt ; c && b . state . scayt [ a . name ] && c . setMarkupPaused && c . setMarkupPaused ( ! 1 ) } ) ) ; if ( "scaytDialog" === c ) a . on ( "cancel" ,
function ( a ) { return ! 1 } , this , null , - 1 ) ; if ( "checkspell" = ==c ) a . on ( "cancel " , function ( a ) { a = a . sender && a . sender . getParentEditor ( ) ; var b = CKEDITOR . plugins . scayt , c = a . scayt ; c && b . state . scayt [ a . name ] && c . setMarkupPaused && c . setMarkupPaused ( ! 1 ) ; a . unlockSelection ( ) } , this , null , - 2 ) ; if ( "link" === c ) a . on ( "ok " , function ( a ) { var b = a . sender && a . sender . getParentEditor ( ) ; b && setTimeout ( function ( ) { b . fire ( "reloadMarkupScayt" , { removeOptions : { removeInside : ! 0 , forceBookmark : ! 0 } , timeout : 0 } ) } , 0 ) } ) ; if ( "replace " === c ) a . on ( "hide " , function ( a ) { a =
a . sender && a . sender . getParentEditor ( ) ; var b = CKEDITOR . plugins . scayt , c = a . scayt ; a && setTimeout ( function ( ) { c && ( c . fire ( "remove MarkupInDocument" , { } ) , b . reloadMarkup ( c ) ) } , 0 ) } ) } ) ;
data _attribute _name : "data-scayt-word" , misspelled _word _class : "scayt-misspell-word" , problem _grammar _data _attribute : "data-grayt-phrase" , problem _grammar _class : "gramm-problem" } , backCompatibilityMap : { scayt _service _protocol : "scayt_serviceProtocol" , scayt _service _host : "scayt_serviceHost" , scayt _service _port : "scayt_servicePort" , scayt _service _path : "scayt_servicePath" , scayt _customerid : "scayt_customerId" } , openDialog : function ( a , c ) { var d = c . scayt ; d . isAllModulesReady && ! 1 === d . isAllModulesReady ( ) || ( c . lockSelection ( ) ,
c . openDialog ( a ) ) } , alarmCompatibilityMessage : function ( ) { 5 > this . warningCounter && ( console . warn ( "You are using the latest version of SCAYT plugin for CKEditor with the old application version. In order to have access to the newest features, it is recommended to upgrade the application version to latest one as well. Contact us for more details at support@webspellchecker.net." ) , this . warningCounter += 1 ) } , isNewUdSupported : function ( a ) { return a . getUserDictionary ? ! 0 : ! 1 } , reloadMarkup : function ( a ) { var c ; a && ( c = a . getScaytLangList ( ) ,
a . reloadMarkup ? a . reloadMarkup ( ) : ( this . alarmCompatibilityMessage ( ) , c && c . ltr && c . rtl && a . fire ( "startSpellCheck, startGrammarCheck" ) ) ) } , replaceOldOptionsNames : function ( a ) { for ( var c in a ) c in this . backCompatibilityMap && ( a [ this . backCompatibilityMap [ c ] ] = a [ c ] , delete a [ c ] ) } , createScayt : function ( a ) { var c = this , d = CKEDITOR . plugins . scayt ; this . loadScaytLibrary ( a , function ( a ) { function e ( a ) { return new SCAYT . CKSCAYT ( a , function ( ) { } , function ( ) { } ) } var f ; a . window && ( f = "BODY" == a . editable ( ) . $ . nodeName ? a . window . getFrame ( ) : a . editable ( ) ) ;
if ( f ) { f = { lang : a . config . scayt _sLang , container : f . $ , customDictionary : a . config . scayt _customDictionaryIds , userDictionaryName : a . config . scayt _userDictionaryName , localization : a . langCode , customer _id : a . config . scayt _customerId , customPunctuation : a . config . scayt _customPunctuation , debug : a . config . scayt _debug , data _attribute _name : c . options . data _attribute _name , misspelled _word _class : c . options . misspelled _word _class , problem _grammar _data _attribute : c . options . problem _grammar _data _attribute , problem _grammar _class : c . options . problem _grammar _class ,
"options-to-restore" : a . config . scayt _disableOptionsStorage , focused : a . editable ( ) . hasFocus , ignoreElementsRegex : a . config . scayt _elementsToIgnore , ignoreGraytElementsRegex : a . config . grayt _elementsToIgnore , minWordLength : a . config . scayt _minWordLength , multiLanguageMode : a . config . scayt _multiLanguageMode , multiLanguageStyles : a . config . scayt _multiLanguageStyles , graytAutoStartup : a . config . grayt _autoStartup , charsToObserve : d . charsToObserve } ; a . config . scayt _serviceProtocol && ( f . service _protocol = a . config . scayt _serviceProtocol ) ;
a . config . scayt _serviceHost && ( f . service _host = a . config . scayt _serviceHost ) ; a . config . scayt _servicePort && ( f . service _port = a . config . scayt _servicePort ) ; a . config . scayt _servicePath && ( f . service _path = a . config . scayt _servicePath ) ; "boolean" === typeof a . config . scayt _ignoreAllCapsWords && ( f [ "ignore-all-caps-word s" ] = a . config . scayt _ignoreAllCapsWords ) ; "boolean" === typeof a . config . scayt _ignoreDomainNames && ( f [ "ignore-domain-names" ] = a . config . scayt _ignoreDomainNames ) ; "boolean" === typeof a . config . scayt _ignoreWordsWithMixedCases &&
( f [ "ignore-words-with-mixed-cases" ] = a . config . scayt _ignoreWordsWithMixedCases ) ; "boolea n"= ==typeof a . config . scayt _ignoreWordsWithNumbers && ( f [ "ignore-words-with-numbers" ] = a . config . scayt _ignoreWordsWithNumbers ) ; var g ; try { g = e ( f ) } catch ( k ) { c . alarmCompatibilityMessage ( ) , delete f . charsToObserve , g = e ( f ) } g . subscribe ( "suggestionListSen d", function ( a ) { for ( var b = { } , d = [ ] , c = 0 ; c < a . suggestionList . length ; c ++ ) b [ "word_" + a . suggestionList [ c ] ] || ( b [ "word_" + a . suggestionList [ c ] ] = a . suggestionList [ c ] , d . push ( a . suggestionList [ c ] ) ) ;
CKEDITOR . plugins . scayt . suggestions = d } ) ; g . subscribe ( "selectionIsChanged" , function ( d ) { a . getSelection ( ) . isLocked && "restoreSelection" !== d . action && a . lockSelection ( ) ; "restoreSelection" === d . action && a . selectionChange ( ! 0 ) } ) ; g . subscribe ( "gr aytStateChanged" , function ( c ) { d . state . grayt [ a . name ] = c . state } ) ; g . addMarkupHandler && g . addMarkupHandler ( function ( d ) { var c = a . editable ( ) , e = c . getCustomData ( d . charName ) ; e && ( e . $ = d . node , c . setCustomData ( d . charName , e ) ) } ) ; a . scayt = g ; a . fire ( "scaytButtonState" , a . readOnly ? CKEDITOR . TRISTATE _DISABLED :
CKEDITOR . TRISTATE _ON ) } else d . state . scayt [ a . name ] = ! 1 } ) } , destroy : function ( a ) { a . scayt && a . scayt . destroy ( ) ; delete a . scayt ; a . fire ( "scaytButtonState" , CKEDITOR . TRISTATE _OFF ) } , loadScaytLibrary : function ( a , c ) { var d , b = function ( ) { CKEDITOR . fireOnce ( "scaytReady" ) ; a . scayt || "function" === typeof c && c ( a ) } ; "undefined" === typeof window . SCAYT || "function" !== typeof window . SCAYT . CKSCAYT ? ( d = a . config . scayt _srcUrl + "?" + this . onLoadTimestamp , CKEDITOR . scriptLoader . load ( d , function ( a ) { a && b ( ) } ) ) : window . SCAYT && "function" === typeof window . SCAYT . CKSCAYT &&
b ( ) } } ;
CKEDITOR . on ( "dialogDefinition" , function ( a ) { var c = a . data . name ; a = a . data . definition . dialog ; "scaytDialog" !== c && "checkspell" ! ==c && ( a . on ( "show " , function ( a ) { a = a . sender && a . sender . getParentEditor ( ) ; var b = CKEDITOR . plugins . scayt , c = a . scayt ; c && b . state . scayt [ a . name ] && c . setMarkupPaused && c . setMarkupPaused ( ! 0 ) } ) , a . on ( "hide " , function ( a ) { a = a . sender && a . sender . getParentEditor ( ) ; var b = CKEDITOR . plugins . scayt , c = a . scayt ; c && b . state . scayt [ a . name ] && c . setMarkupPaused && c . setMarkupPaused ( ! 1 ) } ) ) ; if ( "scaytDialog " === c ) a . on ( "cancel " , function ( a ) { return ! 1 } ,
this , null , - 1 ) ; if ( "checkspell" === c ) a . on ( "cancel" , function ( a ) { a = a . sender && a . sender . getParentEditor ( ) ; var b = CKEDITOR . plugins . scayt , c = a . scayt ; c && b . state . scayt [ a . name ] && c . setMarkupPaused && c . setMarkupPaused ( ! 1 ) ; a . unlockSelection ( ) } , this , null , - 2 ) ; if ( "link" === c ) a . on ( "ok" , function ( a ) { var b = a . sender && a . sender . getParentEditor ( ) ; b && setTimeout ( function ( ) { b . fire ( "reload MarkupScayt" , { removeOptions : { removeInside : ! 0 , forceBookmark : ! 0 } , timeout : 0 } ) } , 0 ) } ) ; if ( "replace" === c ) a . on ( "hide" , function ( a ) { a = a . sender && a . sender . getParentEditor ( ) ;
var b = CKEDITOR . plugins . scayt , c = a . scayt ; a && setTimeout ( function ( ) { c && ( c . fire ( "removeMarkupInDocument" , { } ) , b . reloadMarkup ( c ) ) } , 0 ) } ) } ) ;
CKEDITOR . on ( "scaytReady" , function ( ) { if ( ! 0 === CKEDITOR . config . scayt _handleCheckDirty ) { var a = CKEDITOR . editor . prototype ; a . checkDirty = CKEDITOR . tools . override ( a . checkDirty , function ( a ) { return function ( ) { var b = null , c = this . scayt ; if ( CKEDITOR . plugins . scayt && CKEDITOR . plugins . scayt . state . scayt [ this . name ] && this . scayt ) { if ( b = "ready" == this . status ) var f = c . removeMarkupFromString ( this . getSnapshot ( ) ) , c = c . removeMarkupFromString ( this . _ . previousValue ) , b = b && c !== f } else b = a . call ( this ) ; return b } } ) ; a . resetDirty = CKEDITOR . tools . override ( a . resetDirty ,
function ( a ) { return function ( ) { var b = this . scayt ; CKEDITOR . plugins . scayt && CKEDITOR . plugins . scayt . state . scayt [ this . name ] && this . scayt ? this . _ . previousValue = b . removeMarkupFromString ( this . getSnapshot ( ) ) : a . call ( this ) } } ) } if ( ! 0 === CKEDITOR . config . scayt _handleUndoRedo ) { var a = CKEDITOR . plugins . undo . Image . prototype , c = "function" == typeof a . equalsContent ? "equalsContent" : "equals" ; a [ c ] = CKEDITOR . tools . override ( a [ c ] , function ( a ) { return function ( b ) { var c = b . editor . scayt , f = this . contents , g = b . contents , h = null ; CKEDITOR . plugins . scayt &&
CKEDITOR . plugins . scayt . state . scayt [ b . editor . name ] && b . editor . scayt && ( this . contents = c . removeMarkupFromString ( f ) || "" , b . contents = c . removeMarkupFromString ( g ) || "" ) ; h = a . apply ( this , arguments ) ; this . contents = f ; b . contents = g ; return h } } ) } } ) ; ( function ( ) { CKEDITOR . plugins . add ( "stylescombo" , { requires : "richcombo" , init : function ( c ) { var l = c . config , g = c . lang . stylescombo , f = { } , k = [ ] , m = [ ] ; c . on ( "stylesSet" , function ( a ) { if ( a = a . data . styles ) { for ( var b , h , d , e = 0 , n = a . length ; e < n ; e ++ ) ( b = a [ e ] , c . blockless && b . element in CKEDITOR . dtd . $block || "string" == typeof b . type && ! CKEDITOR . style . customHandlers [ b . type ] || ( h = b . name , b = new CKEDITOR . style ( b ) , c . filter . customConfig && ! c . filter . check ( b ) ) ) || ( b . _name = h , b . _ . enterMode = l . enterMode , b . _ . type = d = b . assignedTo || b . type , b . _ . weight =
function ( a ) { return function ( ) { var b = this . scayt ; CKEDITOR . plugins . scayt && CKEDITOR . plugins . scayt . state . scayt [ this . name ] && this . scayt ? this . _ . previousValue = b . removeMarkupFromString ( this . getSnapshot ( ) ) : a . call ( this ) } } ) } if ( ! 0 === CKEDITOR . config . scayt _handleUndoRedo ) { var a = CKEDITOR . plugins . undo . Image . prototype , c = "function" == typeof a . equalsContent ? "equalsContent" : "equals" ; a [ c ] = CKEDITOR . tools . override ( a [ c ] , function ( a ) { return function ( b ) { var c = b . editor . scayt , f = this . contents , g = b . contents , k = null ; CKEDITOR . plugins . scayt &&
CKEDITOR . plugins . scayt . state . scayt [ b . editor . name ] && b . editor . scayt && ( this . contents = c . removeMarkupFromString ( f ) || "" , b . contents = c . removeMarkupFromString ( g ) || "" ) ; k = a . apply ( this , arguments ) ; this . contents = f ; b . contents = g ; return k } } ) } } ) ; ( function ( ) { CKEDITOR . plugins . add ( "stylescombo" , { requires : "richcombo" , init : function ( c ) { var l = c . config , g = c . lang . stylescombo , f = { } , k = [ ] , m = [ ] ; c . on ( "stylesSet" , function ( a ) { if ( a = a . data . styles ) { for ( var b , h , d , e = 0 , n = a . length ; e < n ; e ++ ) ( b = a [ e ] , c . blockless && b . element in CKEDITOR . dtd . $block || "string" == typeof b . type && ! CKEDITOR . style . customHandlers [ b . type ] || ( h = b . name , b = new CKEDITOR . style ( b ) , c . filter . customConfig && ! c . filter . check ( b ) ) ) || ( b . _name = h , b . _ . enterMode = l . enterMode , b . _ . type = d = b . assignedTo || b . type , b . _ . weight =
e + 1E3 * ( d == CKEDITOR . STYLE _OBJECT ? 1 : d == CKEDITOR . STYLE _BLOCK ? 2 : 3 ) , f [ h ] = b , k . push ( b ) , m . push ( b ) ) ; k . sort ( function ( a , b ) { return a . _ . weight - b . _ . weight } ) } } ) ; c . ui . addRichCombo ( "Styles" , { label : g . label , title : g . panelTitle , toolbar : "styles,10" , allowedContent : m , panel : { css : [ CKEDITOR . skin . getPath ( "editor" ) ] . concat ( l . contentsCss ) , multiSelect : ! 0 , attributes : { "aria-label" : g . panelTitle } } , init : function ( ) { var a , b , c , d , e , f ; e = 0 ; for ( f = k . length ; e < f ; e ++ ) a = k [ e ] , b = a . _name , d = a . _ . type , d != c && ( this . startGroup ( g [ "panelTitle" + String ( d ) ] ) ,
c = d ) , this . add ( b , a . type == CKEDITOR . STYLE _OBJECT ? b : a . buildPreview ( ) , b ) ; this . commit ( ) } , onClick : function ( a ) { c . focus ( ) ; c . fire ( "saveSnapshot" ) ; a = f [ a ] ; var b = c . elementPath ( ) ; if ( a . group && a . removeStylesFromSameGroup ( c ) ) c . applyStyle ( a ) ; else c [ a . checkActive ( b , c ) ? "removeStyle" : "applyStyle" ] ( a ) ; c . fire ( "saveSnapshot" ) } , onRender : function ( ) { c . on ( "selectionChange" , function ( a ) { var b = this . getValue ( ) ; a = a . data . path . elements ; for ( var h = 0 , d = a . length , e ; h < d ; h ++ ) { e = a [ h ] ; for ( var g in f ) if ( f [ g ] . checkElementRemovable ( e , ! 0 , c ) ) { g !=
b && this . setValue ( g ) ; return } } this . setValue ( "" ) } , this ) } , onOpen : function ( ) { var a = c . getSelection ( ) , a = a . getSelectedElement ( ) || a . getStartElement ( ) || c . editable ( ) , a = c . elementPath ( a ) , b = [ 0 , 0 , 0 , 0 ] ; this . showAll ( ) ; this . unmarkAll ( ) ; for ( var h in f ) { var d = f [ h ] , e = d . _ . type ; d . checkApplicable ( a , c , c . activeFilter ) ? b [ e ] ++ : this . hideItem ( h ) ; d . checkActive ( a , c ) && this . mark ( h ) } b [ CKEDITOR . STYLE _BLOCK ] || this . hideGroup ( g [ "panelTitle" + String ( CKEDITOR . STYLE _BLOCK ) ] ) ; b [ CKEDITOR . STYLE _INLINE ] || this . hideGroup ( g [ "panelTitle" + String ( CKEDITOR . STYLE _INLINE ) ] ) ;
@@ -1188,7 +1197,7 @@ function(a){a.sort(function(a,c){return a.getPosition(c)&CKEDITOR.POSITION_PRECE
k = new q ( u ( e , h ) ) , d . once ( "afterPaste" , function ( ) { var a ; if ( f ) { a = new CKEDITOR . dom . element ( f [ 0 ] [ 0 ] ) ; var b = f [ f . length - 1 ] ; a = x ( a , new CKEDITOR . dom . element ( b [ b . length - 1 ] ) ) } else a = k . cells . all ; t ( d , a ) } ) , m ? ( a . stop ( ) , l ? ( k . insertRow ( 1 , 1 === l , ! 0 ) , e . selectElement ( k . rows . first ) ) : ( k . emptyCells ( ) , t ( d , k . cells . all ) ) , a = k . getTableMap ( ) , f = CKEDITOR . tools . buildTableMap ( m ) , k . insertRow ( f . length - a . length ) , k . insertColumn ( b ( f ) - b ( a ) ) , a = k . getTableMap ( ) , this . pasteTable ( k , a , f ) , d . fire ( "saveSnapshot" ) , setTimeout ( function ( ) { d . fire ( "afterPaste" ) } ,
0 ) ) : ( c ( k . cells . first ) , d . once ( "afterPaste" , function ( ) { d . fire ( "lockSnapshot" ) ; k . emptyCells ( k . cells . all . slice ( 1 ) ) ; t ( d , k . cells . all ) ; d . fire ( "unlockSnapshot" ) } ) ) ) } , isBoundarySelection : function ( a ) { a = a . getRanges ( ) [ 0 ] ; var b = a . endContainer . getAscendant ( "tr" , ! 0 ) ; if ( b && a . collapsed ) { if ( a . checkBoundaryOfElement ( b , CKEDITOR . START ) ) return 1 ; if ( a . checkBoundaryOfElement ( b , CKEDITOR . END ) ) return 2 } return 0 } , findTableInPastedContent : function ( a , b ) { var c = a . dataProcessor , d = new CKEDITOR . dom . element ( "body" ) ; c || ( c = new CKEDITOR . htmlDataProcessor ( a ) ) ;
d . setHtml ( c . toHtml ( b ) , { fixForBody : ! 1 } ) ; return 1 < d . getChildCount ( ) ? null : d . findOne ( "table" ) } , pasteTable : function ( a , b , c ) { var d , e = A ( a . cells . first ) , h = a . _getTable ( ) , m = { } , l , k , f , p ; for ( f = 0 ; f < c . length ; f ++ ) for ( l = new CKEDITOR . dom . element ( h . $ . rows [ a . rows . first . $ . rowIndex + f ] ) , p = 0 ; p < c [ f ] . length ; p ++ ) if ( k = new CKEDITOR . dom . element ( c [ f ] [ p ] ) , d = b [ f ] && b [ f ] [ p ] ? new CKEDITOR . dom . element ( b [ f ] [ p ] ) : null , k && ! k . getCustomData ( "processed" ) ) { if ( d && d . getParent ( ) ) k . replace ( d ) ; else if ( 0 === p || c [ f ] [ p - 1 ] ) ( d = 0 !== p ? new CKEDITOR . dom . element ( c [ f ] [ p -
1 ] ) : null ) && l . equals ( d . getParent ( ) ) ? k . insertAfter ( d ) : 0 < e ? l . $ . cells [ e ] ? k . insertAfter ( new CKEDITOR . dom . element ( l . $ . cells [ e ] ) ) : l . append ( k ) : l . append ( k , ! 0 ) ; CKEDITOR . dom . element . setMarker ( m , k , "processed" , ! 0 ) } else k . getCustomData ( "processed" ) && d && d . remove ( ) ; CKEDITOR . dom . element . clearAllMarkers ( m ) } } ; CKEDITOR . plugins . tableselection = { getCellsBetween : x , keyboardIntegration : function ( a ) { function b ( a ) { var b = a . getEnclosedNode ( ) ; b && b . is ( { td : 1 , th : 1 } ) ? a . getEnclosedNode ( ) . setText ( "" ) : a . deleteContents ( ) ; CKEDITOR . tools . array . forEach ( a . _find ( "td" ) ,
1 ] ) : null ) && l . equals ( d . getParent ( ) ) ? k . insertAfter ( d ) : 0 < e ? l . $ . cells [ e ] ? k . insertAfter ( new CKEDITOR . dom . element ( l . $ . cells [ e ] ) ) : l . append ( k ) : l . append ( k , ! 0 ) ; CKEDITOR . dom . element . setMarker ( m , k , "processed" , ! 0 ) } else k . getCustomData ( "processed" ) && d && d . remove ( ) ; CKEDITOR . dom . element . clearAllMarkers ( m ) } } ; CKEDITOR . plugins . tableselection = { getCellsBetween : x , keyboardIntegration : function ( a ) { function b ( a ) { var b = a . getEnclosedNode ( ) ; b && "function" === typeof b . is && b . is ( { td : 1 , th : 1 } ) ? b . setText ( "" ) : a . deleteContents ( ) ; CKEDITOR . tools . array . forEach ( a . _find ( "td" ) ,
function ( a ) { a . appendBogus ( ) } ) } var c = a . editable ( ) ; c . attachListener ( c , "keydown" , function ( a ) { function c ( b , e ) { if ( ! e . length ) return null ; var f = a . createRange ( ) , h = CKEDITOR . dom . range . mergeRanges ( e ) ; CKEDITOR . tools . array . forEach ( h , function ( a ) { a . enlarge ( CKEDITOR . ENLARGE _ELEMENT ) } ) ; var r = h [ 0 ] . getBoundaryNodes ( ) , g = r . startNode , r = r . endNode ; if ( g && g . is && g . is ( m ) ) { for ( var q = g . getAscendant ( "table" , ! 0 ) , n = g . getPreviousSourceNode ( ! 1 , CKEDITOR . NODE _ELEMENT , q ) , t = ! 1 , u = function ( a ) { return ! g . contains ( a ) && a . is && a . is ( "td" , "th" ) } ; n &&
! u ( n ) ; ) n = n . getPreviousSourceNode ( ! 1 , CKEDITOR . NODE _ELEMENT , q ) ; ! n && r && r . is && ! r . is ( "table" ) && r . getNext ( ) && ( n = r . getNext ( ) . findOne ( "td, th" ) , t = ! 0 ) ; if ( n ) f [ "moveToElementEdit" + ( t ? "Start" : "End" ) ] ( n ) ; else f . setStartBefore ( g . getAscendant ( "table" , ! 0 ) ) , f . collapse ( ! 0 ) ; h [ 0 ] . deleteContents ( ) ; return [ f ] } if ( g ) return f . moveToElementEditablePosition ( g ) , [ f ] } var h = { 37 : 1 , 38 : 1 , 39 : 1 , 40 : 1 , 8 : 1 , 46 : 1 } , m = CKEDITOR . tools . extend ( { table : 1 } , CKEDITOR . dtd . $tableContent ) ; delete m . td ; delete m . th ; return function ( l ) { var k = l . data . getKey ( ) ,
f , m = 37 === k || 38 == k , g , n , q ; if ( h [ k ] && ( f = a . getSelection ( ) ) && f . isInTable ( ) && f . isFake ) if ( g = f . getRanges ( ) , n = g [ 0 ] . _getTableElement ( ) , q = g [ g . length - 1 ] . _getTableElement ( ) , l . data . preventDefault ( ) , l . cancel ( ) , 8 < k && 46 > k ) g [ 0 ] . moveToElementEditablePosition ( m ? n : q , ! m ) , f . selectRanges ( [ g [ 0 ] ] ) ; else { for ( l = 0 ; l < g . length ; l ++ ) b ( g [ l ] ) ; ( l = c ( n , g ) ) ? g = l : g [ 0 ] . moveToElementEditablePosition ( n ) ; f . selectRanges ( g ) ; a . fire ( "saveSnapshot" ) } } } ( a ) , null , null , - 1 ) ; c . attachListener ( c , "keypress" , function ( d ) { var c = a . getSelection ( ) , h = d . data . $ . charCode ||