mirror of
https://github.com/YunoHost-Apps/webtrees_ynh.git
synced 2024-09-03 18:26:37 +02:00
1 line
No EOL
540 KiB
JavaScript
1 line
No EOL
540 KiB
JavaScript
(function(){window.CKEDITOR&&window.CKEDITOR.dom||(window.CKEDITOR||(window.CKEDITOR=function(){var f=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,g={timestamp:"F74C",version:"4.5.2",revision:"09b0cca",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:f},status:"unloaded",basePath:function(){var a=window.CKEDITOR_BASEPATH||"";if(!a){for(var k=document.getElementsByTagName("script"),j=0;j<k.length;j++){var i=k[j].src.match(f);if(i){a=i[1];break}}}-1==a.indexOf(":/")&&"//"!=a.slice(0,2)&&(a=0===a.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+a:location.href.match(/^[^\?]*\/(?:)/)[0]+a);if(!a){throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.'}return a}(),getUrl:function(b){-1==b.indexOf(":/")&&0!==b.indexOf("/")&&(b=this.basePath+b);this.timestamp&&"/"!=b.charAt(b.length-1)&&!/[&?]t=/.test(b)&&(b+=(0<=b.indexOf("?")?"&":"?")+"t="+this.timestamp);return b},domReady:function(){function i(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",i,!1),e()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",i),e())}catch(a){}}function e(){for(var b;b=j.shift();){b()}}var j=[];return function(c){function k(){try{document.documentElement.doScroll("left")}catch(b){setTimeout(k,1);return}i()}j.push(c);"complete"===document.readyState&&setTimeout(i,1);if(1==j.length){if(document.addEventListener){document.addEventListener("DOMContentLoaded",i,!1),window.addEventListener("load",i,!1)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",i);window.attachEvent("onload",i);c=!1;try{c=!window.frameElement}catch(a){}document.documentElement.doScroll&&c&&k()}}}}}()},d=window.CKEDITOR_GETURL;if(d){var h=g.getUrl;g.getUrl=function(b){return d.call(g,b)||h.call(g,b)}}return g}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(d){var f=CKEDITOR.event.prototype,c;for(c in f){null==d[c]&&(d[c]=f[c])}},CKEDITOR.event.prototype=function(){function d(b){var e=f(this);return e[b]||(e[b]=new c(b))}var f=function(b){b=b.getPrivate&&b.getPrivate()||b._||(b._={});return b.events||(b.events={})},c=function(b){this.name=b;this.listeners=[]};c.prototype={getListenerIndex:function(h){for(var g=0,i=this.listeners;g<i.length;g++){if(i[g].fn==h){return g}}return -1}};return{define:function(a,h){var g=d.call(this,a);CKEDITOR.tools.extend(g,h,!0)},on:function(t,r,q,j,o){function k(b,l,m,e){b={name:t,sender:this,editor:b,data:l,listenerData:j,stop:m,cancel:e,removeListener:i};return !1===r.call(q,b)?!1:b.data}function i(){a.removeListener(t,r)}var n=d.call(this,t);if(0>n.getListenerIndex(r)){n=n.listeners;q||(q=this);isNaN(o)&&(o=10);var a=this;k.fn=r;k.priority=o;for(var u=n.length-1;0<=u;u--){if(n[u].priority<=o){return n.splice(u+1,0,k),{removeListener:i}}}n.unshift(k)}return{removeListener:i}},once:function(){var g=Array.prototype.slice.call(arguments),e=g[1];g[1]=function(b){b.removeListener();return e.apply(this,arguments)};return this.on.apply(this,g)},capture:function(){CKEDITOR.event.useCapture=1;var b=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return b},fire:function(){var h=0,e=function(){h=1},i=0,g=function(){i=1};return function(n,k,j){var l=f(this)[n];n=h;var b=i;h=i=0;if(l){var u=l.listeners;if(u.length){for(var u=u.slice(0),o,r=0;r<u.length;r++){if(l.errorProof){try{o=u[r].call(this,j,k,e,g)}catch(a){}}else{o=u[r].call(this,j,k,e,g)}!1===o?i=1:"undefined"!=typeof o&&(k=o);if(h||i){break}}}}k=i?!1:"undefined"==typeof k?!0:k;h=n;i=b;return k}}(),fireOnce:function(g,e,h){e=this.fire(g,e,h);delete f(this)[g];return e},removeListener:function(h,e){var i=f(this)[h];if(i){var g=i.getListenerIndex(e);0<=g&&i.listeners.splice(g,1)}},removeAllListeners:function(){var g=f(this),e;for(e in g){delete g[e]}},hasListeners:function(b){return(b=f(this)[b])&&0<b.listeners.length}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(b,c){b in {instanceReady:1,loaded:1}&&(this[b]=!0);return CKEDITOR.event.prototype.fire.call(this,b,c,this)},CKEDITOR.editor.prototype.fireOnce=function(b,c){b in {instanceReady:1,loaded:1}&&(this[b]=!0);return CKEDITOR.event.prototype.fireOnce.call(this,b,c,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var f=navigator.userAgent.toLowerCase(),g=f.match(/edge[ \/](\d+.?\d*)/),d=-1<f.indexOf("trident/"),d=!(!g&&!d),d={ie:d,edge:!!g,webkit:!d&&-1<f.indexOf(" applewebkit/"),air:-1<f.indexOf(" adobeair/"),mac:-1<f.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||10>document.documentMode),mobile:-1<f.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(f),isCustomDomain:function(){if(!this.ie){return !1}var e=document.domain,c=window.location.hostname;return e!=c&&e!="["+c+"]"},secure:"https:"==location.protocol};d.gecko="Gecko"==navigator.product&&!d.webkit&&!d.ie;d.webkit&&(-1<f.indexOf("chrome")?d.chrome=!0:d.safari=!0);var h=0;d.ie&&(h=g?parseFloat(g[1]):d.quirks||!document.documentMode?parseFloat(f.match(/msie (\d+)/)[1]):document.documentMode,d.ie9Compat=9==h,d.ie8Compat=8==h,d.ie7Compat=7==h,d.ie6Compat=7>h||d.quirks);d.gecko&&(g=f.match(/rv:([\d\.]+)/))&&(g=g[1].split("."),h=10000*g[0]+100*(g[1]||0)+1*(g[2]||0));d.air&&(h=parseFloat(f.match(/ adobeair\/(\d+)/)[1]));d.webkit&&(h=parseFloat(f.match(/ applewebkit\/(\d+)/)[1]));d.version=h;d.isCompatible=!(d.ie&&7>h)&&!(d.gecko&&40000>h)&&!(d.webkit&&534>h);d.hidpi=2<=window.devicePixelRatio;d.needsBrFiller=d.gecko||d.webkit||d.ie&&10<h;d.needsNbspFiller=d.ie&&11>h;d.cssClass="cke_browser_"+(d.ie?"ie":d.gecko?"gecko":d.webkit?"webkit":"unknown");d.quirks&&(d.cssClass+=" cke_browser_quirks");d.ie&&(d.cssClass+=" cke_browser_ie"+(d.quirks?"6 cke_browser_iequirks":d.version));d.air&&(d.cssClass+=" cke_browser_air");d.iOS&&(d.cssClass+=" cke_browser_ios");d.hidpi&&(d.cssClass+=" cke_hidpi");return d}()),"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status){CKEDITOR.loadFullCore._load=1}else{delete CKEDITOR.loadFullCore;var b=document.createElement("script");b.type="text/javascript";b.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(b)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(b){(this._.pending||(this._.pending=[])).push(b)};(function(){CKEDITOR.domReady(function(){var b=CKEDITOR.loadFullCore,c=CKEDITOR.loadFullCoreTimeout;b&&(CKEDITOR.status="basic_ready",b&&b._load?b():c&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1000*c))})})();CKEDITOR.status="basic_loaded"}(),CKEDITOR.dom={},function(){var r=[],n=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",q=/&/g,p=/>/g,o=/</g,i=/"/g,g=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,m={lt:"<",gt:">",amp:"&",quot:'"',nbsp:"\u00a0",shy:"\u00ad"},j=function(b,c){return"#"==c[0]?String.fromCharCode(parseInt(c.slice(1),10)):m[c]};CKEDITOR.on("reset",function(){r=[]});CKEDITOR.tools={arrayCompare:function(d,e){if(!d&&!e){return !0}if(!d||!e||d.length!=e.length){return !1}for(var c=0;c<d.length;c++){if(d[c]!=e[c]){return !1}}return !0},getIndex:function(d,e){for(var c=0;c<d.length;++c){if(e(d[c])){return c}}return -1},clone:function(d){var e;if(d&&d instanceof Array){e=[];for(var c=0;c<d.length;c++){e[c]=CKEDITOR.tools.clone(d[c])}return e}if(null===d||"object"!=typeof d||d instanceof String||d instanceof Number||d instanceof Boolean||d instanceof Date||d instanceof RegExp||d.nodeType||d.window===d){return d}e=new d.constructor;for(c in d){e[c]=CKEDITOR.tools.clone(d[c])}return e},capitalize:function(b,c){return b.charAt(0).toUpperCase()+(c?b.slice(1):b.slice(1).toLowerCase())},extend:function(k){var s=arguments.length,e,t;"boolean"==typeof(e=arguments[s-1])?s--:"boolean"==typeof(e=arguments[s-2])&&(t=arguments[s-1],s-=2);for(var l=1;l<s;l++){var v=arguments[l],u;for(u in v){if(!0===e||null==k[u]){if(!t||u in t){k[u]=v[u]}}}}return k},prototypedCopy:function(b){var c=function(){};c.prototype=b;return new c},copy:function(d){var e={},c;for(c in d){e[c]=d[c]}return e},isArray:function(b){return"[object Array]"==Object.prototype.toString.call(b)},isEmpty:function(b){for(var c in b){if(b.hasOwnProperty(c)){return !1}}return !0},cssVendorPrefix:function(d,e,c){if(c){return n+d+":"+e+";"+d+":"+e}c={};c[d]=e;c[n+d]=e;return c},cssStyleToDomStyle:function(){var b=document.createElement("div").style,c="undefined"!=typeof b.cssFloat?"cssFloat":"undefined"!=typeof b.styleFloat?"styleFloat":"float";return function(d){return"float"==d?c:d.replace(/-./g,function(e){return e.substr(1).toUpperCase()})}}(),buildStyleHtml:function(d){d=[].concat(d);for(var e,c=[],h=0;h<d.length;h++){if(e=d[h]){/@import|[{}]/.test(e)?c.push("<style>"+e+"</style>"):c.push('<link type="text/css" rel=stylesheet href="'+e+'">')}}return c.join("")},htmlEncode:function(b){return void 0===b||null===b?"":(""+b).replace(q,"&").replace(p,">").replace(o,"<")},htmlDecode:function(b){return b.replace(g,j)},htmlEncodeAttr:function(b){return CKEDITOR.tools.htmlEncode(b).replace(i,""")},htmlDecodeAttr:function(b){return CKEDITOR.tools.htmlDecode(b)},transformPlainTextToHtml:function(l,t){var k=t==CKEDITOR.ENTER_BR,u=this.htmlEncode(l.replace(/\r\n/g,"\n")),u=u.replace(/\t/g," "),s=t==CKEDITOR.ENTER_P?"p":"div";if(!k){var x=/\n{2}/g;if(x.test(u)){var w="<"+s+">",v="</"+s+">",u=w+u.replace(x,function(){return v+w})+v}}u=u.replace(/\n/g,"<br>");k||(u=u.replace(RegExp("<br>(?=</"+s+">)"),function(b){return CKEDITOR.tools.repeat(b,2)}));u=u.replace(/^ | $/g," ");return u=u.replace(/(>|\s) /g,function(b,c){return c+" "}).replace(/ (?=<)/g," ")},getNextNumber:function(){var b=0;return function(){return ++b}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var b="e",c=0;8>c;c++){b+=Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return b},override:function(d,e){var c=e(d);c.prototype=d.prototype;return c},setTimeout:function(d,k,c,l,e){e||(e=window);c||(c=e);return e.setTimeout(function(){l?d.apply(c,[].concat(l)):d.apply(c)},k||0)},trim:function(){var b=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(a){return a.replace(b,"")}}(),ltrim:function(){var b=/^[ \t\n\r]+/g;return function(a){return a.replace(b,"")}}(),rtrim:function(){var b=/[ \t\n\r]+$/g;return function(a){return a.replace(b,"")}}(),indexOf:function(d,e){if("function"==typeof e){for(var c=0,h=d.length;c<h;c++){if(e(d[c])){return c}}}else{if(d.indexOf){return d.indexOf(e)}c=0;for(h=d.length;c<h;c++){if(d[c]===e){return c}}}return -1},search:function(d,e){var c=CKEDITOR.tools.indexOf(d,e);return 0<=c?d[c]:null},bind:function(b,c){return function(){return b.apply(c,arguments)}},createClass:function(e){var l=e.$,d=e.base,s=e.privates||e._,k=e.proto;e=e.statics;!l&&(l=function(){d&&this.base.apply(this,arguments)});if(s){var t=l,l=function(){var f=this._||(this._={}),h;for(h in s){var c=s[h];f[h]="function"==typeof c?CKEDITOR.tools.bind(c,this):c}t.apply(this,arguments)}}d&&(l.prototype=this.prototypedCopy(d.prototype),l.prototype.constructor=l,l.base=d,l.baseProto=d.prototype,l.prototype.base=function(){this.base=d.prototype.base;d.apply(this,arguments);this.base=arguments.callee});k&&this.extend(l.prototype,k,!0);e&&this.extend(l,e,!0);return l},addFunction:function(a,c){return r.push(function(){return a.apply(c||this,arguments)})-1},removeFunction:function(a){r[a]=null},callFunction:function(a){var c=r[a];return c&&c.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var b=/^-?\d+\.?\d*px$/,c;return function(a){c=CKEDITOR.tools.trim(a+"")+"px";return b.test(c)?c:a||""}}(),convertToPx:function(){var b;return function(a){b||(b=CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',CKEDITOR.document),CKEDITOR.document.getBody().append(b));return/%$/.test(a)?a:(b.setStyle("width",a),b.$.clientWidth)}}(),repeat:function(b,c){return Array(c+1).join(b)},tryThese:function(){for(var d,k=0,c=arguments.length;k<c;k++){var l=arguments[k];try{d=l();break}catch(e){}}return d},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(b){return function(){var c=arguments,a=this;window.setTimeout(function(){b.apply(a,c)},0)}},normalizeCssText:function(d,k){var c=[],l,e=CKEDITOR.tools.parseCssText(d,!0,k);for(l in e){c.push(l+":"+e[l])}c.sort();return c.length?c.join(";")+";":""},convertRgbToHex:function(b){return b.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(d,c,k,e){d=[c,k,e];for(c=0;3>c;c++){d[c]=("0"+parseInt(d[c],10).toString(16)).slice(-2)}return"#"+d.join("")})},parseCssText:function(d,e,c){var h={};c&&(c=new CKEDITOR.dom.element("span"),c.setAttribute("style",d),d=CKEDITOR.tools.convertRgbToHex(c.getAttribute("style")||""));if(!d||";"==d){return h}d.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(k,f,l){e&&(f=f.toLowerCase(),"font-family"==f&&(l=l.toLowerCase().replace(/["']/g,"").replace(/\s*,\s*/g,",")),l=CKEDITOR.tools.trim(l));h[f]=l});return h},writeCssText:function(d,e){var c,h=[];for(c in d){h.push(c+":"+d[c])}e&&h.sort();return h.join("; ")},objectCompare:function(d,e,c){var h;if(!d&&!e){return !0}if(!d||!e){return !1}for(h in d){if(d[h]!=e[h]){return !1}}if(!c){for(h in e){if(d[h]!=e[h]){return !1}}}return !0},objectKeys:function(d){var e=[],c;for(c in d){e.push(c)}return e},convertArrayToObject:function(d,k){var c={};1==arguments.length&&(k=!0);for(var l=0,e=d.length;l<e;++l){c[d[l]]=k}return c},fixDomain:function(){for(var b;;){try{b=window.parent.document.domain;break}catch(c){b=b?b.replace(/.+?(?:\.|$)/,""):document.domain;if(!b){break}document.domain=b}}return !!b},eventsBuffer:function(e,l,d){function s(){t=(new Date).getTime();k=!1;d?l.call(d):l()}var k,t=0;return{input:function(){if(!k){var a=(new Date).getTime()-t;a<e?k=setTimeout(s,e-a):s()}},reset:function(){k&&clearTimeout(k);k=t=0}}},enableHtml5Elements:function(d,k){for(var c="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(" "),l=c.length,e;l--;){e=d.createElement(c[l]),k&&d.appendChild(e)}},checkIfAnyArrayItemMatches:function(d,e){for(var c=0,h=d.length;c<h;++c){if(d[c].match(e)){return !0}}return !1},checkIfAnyObjectPropertyMatches:function(d,e){for(var c in d){if(c.match(e)){return !0}}return !1},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw=="}}(),CKEDITOR.dtd=function(){var r=CKEDITOR.tools.extend,n=function(d,k){for(var c=CKEDITOR.tools.clone(d),l=1;l<arguments.length;l++){k=arguments[l];for(var e in k){delete c[e]}}return c},q={},p={},o={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},i={command:1,link:1,meta:1,noscript:1,script:1,style:1},g={},m={"#":1},j={center:1,dir:1,noframes:1};r(q,{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},m,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});r(p,o,q,j);n={a:n(q,{a:1,button:1}),abbr:q,address:p,area:g,article:p,aside:p,audio:r({source:1,track:1},p),b:q,base:g,bdi:q,bdo:q,blockquote:p,body:p,br:g,button:n(q,{a:1,button:1}),canvas:q,caption:p,cite:q,code:q,col:g,colgroup:{col:1},command:g,datalist:r({option:1},q),dd:p,del:q,details:r({summary:1},p),dfn:q,div:p,dl:{dt:1,dd:1},dt:p,em:q,embed:g,fieldset:r({legend:1},p),figcaption:p,figure:r({figcaption:1},p),footer:p,form:p,h1:q,h2:q,h3:q,h4:q,h5:q,h6:q,head:r({title:1,base:1},i),header:p,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:g,html:r({head:1,body:1},p,i),i:q,iframe:m,img:g,input:g,ins:q,kbd:q,keygen:g,label:q,legend:q,li:p,link:g,main:p,map:p,mark:q,menu:r({li:1},p),meta:g,meter:n(q,{meter:1}),nav:p,noscript:r({link:1,meta:1,style:1},q),object:r({param:1},q),ol:{li:1},optgroup:{option:1},option:m,output:q,p:q,param:g,pre:q,progress:n(q,{progress:1}),q:q,rp:q,rt:q,ruby:r({rp:1,rt:1},q),s:q,samp:q,script:m,section:p,select:{optgroup:1,option:1},small:q,source:g,span:q,strong:q,style:m,sub:q,summary:q,sup:q,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:p,textarea:m,tfoot:{tr:1},th:p,thead:{tr:1},time:n(q,{time:1}),title:m,tr:{th:1,td:1},track:g,u:q,ul:{li:1},"var":q,video:r({source:1,track:1},p),wbr:g,acronym:q,applet:r({param:1},p),basefont:g,big:q,center:p,dialog:g,dir:{li:1},font:q,isindex:g,noframes:p,strike:q,tt:q};r(n,{$block:r({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},o,j),$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:q,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:r({body:1,head:1,html:1},n.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 n}(),CKEDITOR.dom.event=function(b){this.$=b},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var b=this.getKey();if(this.$.ctrlKey||this.$.metaKey){b+=CKEDITOR.CTRL}this.$.shiftKey&&(b+=CKEDITOR.SHIFT);this.$.altKey&&(b+=CKEDITOR.ALT);return b},preventDefault:function(b){var c=this.$;c.preventDefault?c.preventDefault():c.returnValue=!1;b&&this.stopPropagation()},stopPropagation:function(){var b=this.$;b.stopPropagation?b.stopPropagation():b.cancelBubble=!0},getTarget:function(){var b=this.$.target||this.$.srcElement;return b?new CKEDITOR.dom.node(b):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var b=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(b.documentElement.scrollLeft||b.body.scrollLeft),y:this.$.pageY||this.$.clientY+(b.documentElement.scrollTop||b.body.scrollTop)}}},CKEDITOR.CTRL=1114112,CKEDITOR.SHIFT=2228224,CKEDITOR.ALT=4456448,CKEDITOR.EVENT_PHASE_CAPTURING=1,CKEDITOR.EVENT_PHASE_AT_TARGET=2,CKEDITOR.EVENT_PHASE_BUBBLING=3,CKEDITOR.dom.domObject=function(b){b&&(this.$=b)},CKEDITOR.dom.domObject.prototype=function(){var b=function(d,c){return function(a){"undefined"!=typeof CKEDITOR&&d.fire(c,new CKEDITOR.dom.event(a))}};return{getPrivate:function(){var c;(c=this.getCustomData("_"))||this.setCustomData("_",c={});return c},on:function(c){var a=this.getCustomData("_cke_nativeListeners");a||(a={},this.setCustomData("_cke_nativeListeners",a));a[c]||(a=a[c]=b(this,c),this.$.addEventListener?this.$.addEventListener(c,a,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+c,a));return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(e){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(e)){var d=this.getCustomData("_cke_nativeListeners"),f=d&&d[e];f&&(this.$.removeEventListener?this.$.removeEventListener(e,f,!1):this.$.detachEvent&&this.$.detachEvent("on"+e,f),delete d[e])}},removeAllListeners:function(){var e=this.getCustomData("_cke_nativeListeners"),d;for(d in e){var f=e[d];this.$.detachEvent?this.$.detachEvent("on"+d,f):this.$.removeEventListener&&this.$.removeEventListener(d,f,!1);delete e[d]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}(),function(b){var c={};CKEDITOR.on("reset",function(){c={}});b.equals=function(d){try{return d&&d.$===this.$}catch(e){return !1}};b.setCustomData=function(e,g){var f=this.getUniqueId();(c[f]||(c[f]={}))[e]=g;return this};b.getCustomData=function(d){var e=this.$["data-cke-expando"];return(e=e&&c[e])&&d in e?e[d]:null};b.removeCustomData=function(e){var h=this.$["data-cke-expando"],h=h&&c[h],g,f;h&&(g=h[e],f=e in h,delete h[e]);return f?g:null};b.clearCustomData=function(){this.removeAllListeners();var d=this.$["data-cke-expando"];d&&delete c[d]};b.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(b)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(b){return b?new CKEDITOR.dom[b.nodeType==CKEDITOR.NODE_DOCUMENT?"document":b.nodeType==CKEDITOR.NODE_ELEMENT?"element":b.nodeType==CKEDITOR.NODE_TEXT?"text":b.nodeType==CKEDITOR.NODE_COMMENT?"comment":b.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](b):this},CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=3,CKEDITOR.NODE_COMMENT=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,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(b,c){b.append(this,c);return b},clone:function(g,h){function f(b){b["data-cke-expando"]&&(b["data-cke-expando"]=!1);if(b.nodeType==CKEDITOR.NODE_ELEMENT||b.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(!h&&b.nodeType==CKEDITOR.NODE_ELEMENT&&b.removeAttribute("id",!1),g){b=b.childNodes;for(var a=0;a<b.length;a++){f(b[a])}}}}function j(a){if(a.type==CKEDITOR.NODE_ELEMENT||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(a.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var c=a.getName();":"==c[0]&&a.renameNode(c.substring(1))}if(g){for(c=0;c<a.getChildCount();c++){j(a.getChild(c))}}}}var i=this.$.cloneNode(g);f(i);i=new CKEDITOR.dom.node(i);CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&j(i);return i},hasPrevious:function(){return !!this.$.previousSibling},hasNext:function(){return !!this.$.nextSibling},insertAfter:function(b){b.$.parentNode.insertBefore(this.$,b.$.nextSibling);return b},insertBefore:function(b){b.$.parentNode.insertBefore(this.$,b.$);return b},insertBeforeMe:function(b){this.$.parentNode.insertBefore(b.$,this.$);return b},getAddress:function(g){for(var h=[],f=this.getDocument().$.documentElement,j=this.$;j&&j!=f;){var i=j.parentNode;i&&h.unshift(this.getIndex.call({$:j},g));j=i}return h},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(g){function h(d,c){var e=c?d.nextSibling:d.previousSibling;return e&&e.nodeType==CKEDITOR.NODE_TEXT?e.nodeValue?e:h(e,c):null}var f=this.$,j=-1,i;if(!this.$.parentNode||g&&f.nodeType==CKEDITOR.NODE_TEXT&&!f.nodeValue&&!h(f)&&!h(f,!0)){return -1}do{if(!g||f==this.$||f.nodeType!=CKEDITOR.NODE_TEXT||!i&&f.nodeValue){j++,i=f.nodeType==CKEDITOR.NODE_TEXT}}while(f=f.previousSibling);return j},getNextSourceNode:function(g,h,f){if(f&&!f.call){var j=f;f=function(b){return !b.equals(j)}}g=!g&&this.getFirst&&this.getFirst();var i;if(!g){if(this.type==CKEDITOR.NODE_ELEMENT&&f&&!1===f(this,!0)){return null}g=this.getNext()}for(;!g&&(i=(i||this).getParent());){if(f&&!1===f(i,!0)){return null}g=i.getNext()}return !g||f&&!1===f(g)?null:h&&h!=g.type?g.getNextSourceNode(!1,h,f):g},getPreviousSourceNode:function(g,h,f){if(f&&!f.call){var j=f;f=function(b){return !b.equals(j)}}g=!g&&this.getLast&&this.getLast();var i;if(!g){if(this.type==CKEDITOR.NODE_ELEMENT&&f&&!1===f(this,!0)){return null}g=this.getPrevious()}for(;!g&&(i=(i||this).getParent());){if(f&&!1===f(i,!0)){return null}g=i.getPrevious()}return !g||f&&!1===f(g)?null:h&&g.type!=h?g.getPreviousSourceNode(!1,h,f):g},getPrevious:function(d){var f=this.$,c;do{c=(f=f.previousSibling)&&10!=f.nodeType&&new CKEDITOR.dom.node(f)}while(c&&d&&!d(c));return c},getNext:function(d){var f=this.$,c;do{c=(f=f.nextSibling)&&new CKEDITOR.dom.node(f)}while(c&&d&&!d(c));return c},getParent:function(b){var c=this.$.parentNode;return c&&(c.nodeType==CKEDITOR.NODE_ELEMENT||b&&c.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(c):null},getParents:function(d){var f=this,c=[];do{c[d?"push":"unshift"](f)}while(f=f.getParent());return c},getCommonAncestor:function(b){if(b.equals(this)){return this}if(b.contains&&b.contains(this)){return b}var c=this.contains?this:this.getParent();do{if(c.contains(b)){return c}}while(c=c.getParent());return null},getPosition:function(f){var g=this.$,d=f.$;if(g.compareDocumentPosition){return g.compareDocumentPosition(d)}if(g==d){return CKEDITOR.POSITION_IDENTICAL}if(this.type==CKEDITOR.NODE_ELEMENT&&f.type==CKEDITOR.NODE_ELEMENT){if(g.contains){if(g.contains(d)){return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING}if(d.contains(g)){return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}}if("sourceIndex" in g){return 0>g.sourceIndex||0>d.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:g.sourceIndex<d.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}}g=this.getAddress();f=f.getAddress();for(var d=Math.min(g.length,f.length),h=0;h<=d-1;h++){if(g[h]!=f[h]){if(h<d){return g[h]<f[h]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}break}}return g.length<f.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(g,i){var f=this.$,l,j;i||(f=f.parentNode);"function"==typeof g?(j=!0,l=g):(j=!1,l=function(a){a="string"==typeof a.nodeName?a.nodeName.toLowerCase():"";return"string"==typeof g?a==g:a in g});for(;f;){if(l(j?new CKEDITOR.dom.node(f):f)){return new CKEDITOR.dom.node(f)}try{f=f.parentNode}catch(h){f=null}}return null},hasAscendant:function(d,f){var c=this.$;f||(c=c.parentNode);for(;c;){if(c.nodeName&&c.nodeName.toLowerCase()==d){return !0}c=c.parentNode}return !1},move:function(b,c){b.append(this.remove(),c)},remove:function(d){var f=this.$,c=f.parentNode;if(c){if(d){for(;d=f.firstChild;){c.insertBefore(f.removeChild(d),f)}}c.removeChild(f)}return this},replace:function(b){this.insertBefore(b);b.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var d;this.getFirst&&(d=this.getFirst());){if(d.type==CKEDITOR.NODE_TEXT){var f=CKEDITOR.tools.ltrim(d.getText()),c=d.getLength();if(f){f.length<c&&(d.split(c-f.length),this.$.removeChild(this.$.firstChild))}else{d.remove();continue}}break}},rtrim:function(){for(var d;this.getLast&&(d=this.getLast());){if(d.type==CKEDITOR.NODE_TEXT){var f=CKEDITOR.tools.rtrim(d.getText()),c=d.getLength();if(f){f.length<c&&(d.split(f.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild))}else{d.remove();continue}}break}CKEDITOR.env.needsBrFiller&&(d=this.$.lastChild)&&1==d.type&&"br"==d.nodeName.toLowerCase()&&d.parentNode.removeChild(d)},isReadOnly:function(b){var c=this;this.type!=CKEDITOR.NODE_ELEMENT&&(c=this.getParent());CKEDITOR.env.edge&&c&&c.is("textarea")&&(b=!0);if(!b&&c&&"undefined"!=typeof c.$.isContentEditable){return !(c.$.isContentEditable||c.data("cke-editable"))}for(;c;){if(c.data("cke-editable")){return !1}if(c.hasAttribute("contenteditable")){return"false"==c.getAttribute("contenteditable")}c=c.getParent()}return !0}}),CKEDITOR.dom.window=function(b){CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var b=this.$.document,c="CSS1Compat"==b.compatMode;return{width:(c?b.documentElement.clientWidth:b.body.clientWidth)||0,height:(c?b.documentElement.clientHeight:b.body.clientHeight)||0}},getScrollPosition:function(){var b=this.$;if("pageXOffset" in b){return{x:b.pageXOffset||0,y:b.pageYOffset||0}}b=b.document;return{x:b.documentElement.scrollLeft||b.body.scrollLeft||0,y:b.documentElement.scrollTop||b.body.scrollTop||0}},getFrame:function(){var b=this.$.frameElement;return b?new CKEDITOR.dom.element.get(b):null}}),CKEDITOR.dom.document=function(b){CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(b){if(this.$.createStyleSheet){this.$.createStyleSheet(b)}else{var c=new CKEDITOR.dom.element("link");c.setAttributes({rel:"stylesheet",type:"text/css",href:b});this.getHead().append(c)}},appendStyleText:function(d){if(this.$.createStyleSheet){var f=this.$.createStyleSheet("");f.cssText=d}else{var c=new CKEDITOR.dom.element("style",this);c.append(new CKEDITOR.dom.text(d,this));this.getHead().append(c)}return f||c.$.sheet},createElement:function(d,f){var c=new CKEDITOR.dom.element(d,this);f&&(f.attributes&&c.setAttributes(f.attributes),f.styles&&c.setStyles(f.styles));return c},createText:function(b){return new CKEDITOR.dom.text(b,this)},focus:function(){this.getWindow().focus()},getActive:function(){var b;try{b=this.$.activeElement}catch(c){return null}return new CKEDITOR.dom.element(b)},getById:function(b){return(b=this.$.getElementById(b))?new CKEDITOR.dom.element(b):null},getByAddress:function(i,n){for(var g=this.$.documentElement,p=0;g&&p<i.length;p++){var o=i[p];if(n){for(var j=-1,h=0;h<g.childNodes.length;h++){var m=g.childNodes[h];if(!0!==n||3!=m.nodeType||!m.previousSibling||3!=m.previousSibling.nodeType){if(j++,j==o){g=m;break}}}}else{g=g.childNodes[o]}}return g?new CKEDITOR.dom.node(g):null},getElementsByTag:function(b,c){CKEDITOR.env.ie&&8>=document.documentMode||!c||(b=c+":"+b);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(b))},getHead:function(){var b=this.$.getElementsByTagName("head")[0];return b?new CKEDITOR.dom.element(b):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(b){this.$.open("text/html","replace");CKEDITOR.env.ie&&(b=b.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+")();\x3c/script>"));this.$.write(b);this.$.close()},find:function(b){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(b))},findOne:function(b){return(b=this.$.querySelector(b))?new CKEDITOR.dom.element(b):null},_getHtml5ShivFrag:function(){var b=this.getCustomData("html5ShivFrag");b||(b=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(b,!0),this.setCustomData("html5ShivFrag",b));return b}}),CKEDITOR.dom.nodeList=function(b){this.$=b},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(b){return 0>b||b>=this.$.length?null:(b=this.$[b])?new CKEDITOR.dom.node(b):null}},CKEDITOR.dom.element=function(b,c){"string"==typeof b&&(b=(c?c.$:document).createElement(b));CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.element.get=function(b){return(b="string"==typeof b?document.getElementById(b)||document.getElementsByName(b)[0]:b)&&(b.$?b:new CKEDITOR.dom.element(b))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(d,f){var c=new CKEDITOR.dom.element("div",f);c.setHtml(d);return c.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(g,i,f,l){var j=i.getCustomData("list_marker_id")||i.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),h=i.getCustomData("list_marker_names")||i.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");g[j]=i;h[f]=1;return i.setCustomData(f,l)},CKEDITOR.dom.element.clearAllMarkers=function(b){for(var c in b){CKEDITOR.dom.element.clearMarkers(b,b[c],1)}},CKEDITOR.dom.element.clearMarkers=function(g,i,f){var l=i.getCustomData("list_marker_names"),j=i.getCustomData("list_marker_id"),h;for(h in l){i.removeCustomData(h)}i.removeCustomData("list_marker_names");f&&(i.removeCustomData("list_marker_id"),delete g[j])},function(){function h(d,c){return -1<(" "+d+" ").replace(i," ").indexOf(" "+c+" ")}function j(d){var c=!0;d.$.id||(d.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),c=!1);return function(){c||d.removeAttribute("id")}}function f(d,c){return"#"+d.$.id+" "+c.split(/,\s*/).join(", #"+d.$.id+" ")}function n(e){for(var d=0,l=0,k=g[e].length;l<k;l++){d+=parseInt(this.getComputedStyle(g[e][l])||0,10)||0}return d}var m=!!document.createElement("span").classList,i=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:m?function(b){this.$.classList.add(b);return this}:function(a){var c=this.$.className;c&&(h(c,a)||(c+=" "+a));this.$.className=c||a;return this},removeClass:m?function(d){var c=this.$;c.classList.remove(d);c.className||c.removeAttribute("class");return this}:function(a){var c=this.getAttribute("class");c&&h(c,a)&&((c=c.replace(RegExp("(?:^|\\s+)"+a+"(?=\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",c):this.removeAttribute("class"));return this},hasClass:function(a){return h(this.$.className,a)},append:function(d,c){"string"==typeof d&&(d=this.getDocument().createElement(d));c?this.$.insertBefore(d.$,this.$.firstChild):this.$.appendChild(d.$);return d},appendHtml:function(d){if(this.$.childNodes.length){var c=new CKEDITOR.dom.element("div",this.getDocument());c.setHtml(d);c.moveChildren(this)}else{this.setHtml(d)}},appendText:function(b){null!=this.$.text&&CKEDITOR.env.ie&&9>CKEDITOR.env.version?this.$.text+=b:this.append(new CKEDITOR.dom.text(b))},appendBogus:function(b){if(b||CKEDITOR.env.needsBrFiller){for(b=this.getLast();b&&b.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(b.getText());){b=b.getPrevious()}b&&b.is&&b.is("br")||(b=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&b.setAttribute("type","_moz"),this.append(b))}},breakParent:function(e,d){var l=new CKEDITOR.dom.range(this.getDocument());l.setStartAfter(this);l.setEndAfter(e);var k=l.extractContents(!1,d||!1);l.insertNode(this.remove());k.insertAfterNode(this)},contains:document.compareDocumentPosition?function(b){return !!(this.$.compareDocumentPosition(b.$)&16)}:function(d){var c=this.$;return d.type!=CKEDITOR.NODE_ELEMENT?c.contains(d.getParent().$):c!=d.$&&c.contains(d.$)},focus:function(){function b(){try{this.$.focus()}catch(a){}}return function(a){a?CKEDITOR.tools.setTimeout(b,100,this):b.call(this)}}(),getHtml:function(){var b=this.$.innerHTML;return CKEDITOR.env.ie?b.replace(/<\?[^>]*>/g,""):b},getOuterHtml:function(){if(this.$.outerHTML){return this.$.outerHTML.replace(/<\?[^>]*>/,"")}var b=this.$.ownerDocument.createElement("div");b.appendChild(this.$.cloneNode(!0));return b.innerHTML},getClientRect:function(){var b=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!b.width&&(b.width=b.right-b.left);!b.height&&(b.height=b.bottom-b.top);return b},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(e){try{var d=this.$;if(this.getParent()){return d.innerHTML=e}var l=this.getDocument()._getHtml5ShivFrag();l.appendChild(d);d.innerHTML=e;l.removeChild(d);return e}catch(k){this.$.innerHTML="";d=new CKEDITOR.dom.element("body",this.getDocument());d.$.innerHTML=e;for(d=d.getChildren();d.count();){this.append(d.getItem(0))}return e}}:function(b){return this.$.innerHTML=b},setText:function(){var b=document.createElement("p");b.innerHTML="x";b=b.textContent;return function(a){this.$[b?"textContent":"innerText"]=a}}(),getAttribute:function(){var b=function(c){return this.$.getAttribute(c,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(c){switch(c){case"class":c="className";break;case"http-equiv":c="httpEquiv";break;case"name":return this.$.name;case"tabindex":return c=this.$.getAttribute(c,2),0!==c&&0===this.$.tabIndex&&(c=null),c;case"checked":return c=this.$.attributes.getNamedItem(c),(c.specified?c.nodeValue:this.$.checked)?"checked":null;case"hspace":case"value":return this.$[c];case"style":return this.$.style.cssText;case"contenteditable":case"contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(c,2)}:b}(),getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(d){var c=this.getWindow().$.getComputedStyle(this.$,null);return c?c.getPropertyValue(d):""}:function(b){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(b)]},getDtd:function(){var b=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return b};return b},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:function(){var b=this.$.tabIndex;return 0!==b||CKEDITOR.dtd.$tabIndex[this.getName()]||0===parseInt(this.getAttribute("tabindex"),10)?b:-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 d=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&8>=document.documentMode){var c=this.$.scopeName;"HTML"!=c&&(d=c.toLowerCase()+":"+d)}this.getName=function(){return d};return this.getName()},getValue:function(){return this.$.value},getFirst:function(d){var c=this.$.firstChild;(c=c&&new CKEDITOR.dom.node(c))&&d&&!d(c)&&(c=c.getNext(d));return c},getLast:function(d){var c=this.$.lastChild;(c=c&&new CKEDITOR.dom.node(c))&&d&&!d(c)&&(c=c.getPrevious(d));return c},getStyle:function(b){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(b)]},is:function(){var d=this.getName();if("object"==typeof arguments[0]){return !!arguments[0][d]}for(var c=0;c<arguments.length;c++){if(arguments[c]==d){return !0}}return !1},isEditable:function(d){var c=this.getName();return this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||CKEDITOR.dtd.$nonEditable[c]||CKEDITOR.dtd.$empty[c]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount()?!1:!1!==d?(d=CKEDITOR.dtd[c]||CKEDITOR.dtd.span,!(!d||!d["#"])):!0},isIdentical:function(e){var d=this.clone(0,1);e=e.clone(0,1);d.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);e.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);if(d.$.isEqualNode){return d.$.style.cssText=CKEDITOR.tools.normalizeCssText(d.$.style.cssText),e.$.style.cssText=CKEDITOR.tools.normalizeCssText(e.$.style.cssText),d.$.isEqualNode(e.$)}d=d.getOuterHtml();e=e.getOuterHtml();if(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&this.is("a")){var k=this.getParent();k.type==CKEDITOR.NODE_ELEMENT&&(k=k.clone(),k.setHtml(d),d=k.getHtml(),k.setHtml(e),e=k.getHtml())}return d==e},isVisible:function(){var e=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility"),d,k;e&&CKEDITOR.env.webkit&&(d=this.getWindow(),!d.equals(CKEDITOR.document.getWindow())&&(k=d.$.frameElement)&&(e=(new CKEDITOR.dom.element(k)).isVisible()));return !!e},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()]){return !1}for(var e=this.getChildren(),d=0,l=e.count();d<l;d++){var k=e.getItem(d);if((k.type!=CKEDITOR.NODE_ELEMENT||!k.data("cke-bookmark"))&&(k.type==CKEDITOR.NODE_ELEMENT&&!k.isEmptyInlineRemoveable()||k.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(k.getText()))){return !1}}return !0},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var e=this.$.attributes,d=0;d<e.length;d++){var k=e[d];switch(k.nodeName){case"class":if(this.getAttribute("class")){return !0}case"data-cke-expando":continue;default:if(k.specified){return !0}}}return !1}:function(){var e=this.$.attributes,d=e.length,k={"data-cke-expando":1,_moz_dirty:1};return 0<d&&(2<d||!k[e[0].nodeName]||2==d&&!k[e[1].nodeName])},hasAttribute:function(){function b(a){var d=this.$.attributes.getNamedItem(a);if("input"==this.getName()){switch(a){case"class":return 0<this.$.className.length;case"checked":return !!this.$.checked;case"value":return a=this.getAttribute("type"),"checkbox"==a||"radio"==a?"on"!=this.$.value:!!this.$.value}}return d?d.specified:!1}return CKEDITOR.env.ie?8>CKEDITOR.env.version?function(a){return"name"==a?!!this.$.name:b.call(this,a)}:b:function(c){return !!this.$.attributes.getNamedItem(c)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(e,d){var l=this.$;e=e.$;if(l!=e){var k;if(d){for(;k=l.lastChild;){e.insertBefore(l.removeChild(k),e.firstChild)}}else{for(;k=l.firstChild;){e.appendChild(l.removeChild(k))}}}},mergeSiblings:function(){function b(a,o,e){if(o&&o.type==CKEDITOR.NODE_ELEMENT){for(var k=[];o.data("cke-bookmark")||o.isEmptyInlineRemoveable();){if(k.push(o),o=e?o.getNext():o.getPrevious(),!o||o.type!=CKEDITOR.NODE_ELEMENT){return}}if(a.isIdentical(o)){for(var l=e?a.getLast():a.getFirst();k.length;){k.shift().move(a,!e)}o.moveChildren(a,!e);o.remove();l&&l.type==CKEDITOR.NODE_ELEMENT&&l.mergeSiblings()}}}return function(a){if(!1===a||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a")){b(this,this.getNext(),!0),b(this,this.getPrevious())}}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var b=function(d,c){this.$.setAttribute(d,c);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a,d){"class"==a?this.$.className=d:"style"==a?this.$.style.cssText=d:"tabindex"==a?this.$.tabIndex=d:"checked"==a?this.$.checked=d:"contenteditable"==a?b.call(this,"contentEditable",d):b.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(a,e){if("src"==a&&e.match(/^http:\/\//)){try{b.apply(this,arguments)}catch(d){}}else{b.apply(this,arguments)}return this}:b}(),setAttributes:function(d){for(var c in d){this.setAttribute(c,d[c])}return this},setValue:function(b){this.$.value=b;return this},removeAttribute:function(){var b=function(c){this.$.removeAttribute(c)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(c){"class"==c?c="className":"tabindex"==c?c="tabIndex":"contenteditable"==c&&(c="contentEditable");this.$.removeAttribute(c)}:b}(),removeAttributes:function(d){if(CKEDITOR.tools.isArray(d)){for(var c=0;c<d.length;c++){this.removeAttribute(d[c])}}else{for(c in d){d.hasOwnProperty(c)&&this.removeAttribute(c)}}},removeStyle:function(l){var k=this.$.style;if(k.removeProperty||"border"!=l&&"margin"!=l&&"padding"!=l){k.removeProperty?k.removeProperty(l):k.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(l)),this.$.style.cssText||this.removeAttribute("style")}else{var r=["top","left","right","bottom"],o;"border"==l&&(o=["color","style","width"]);for(var k=[],q=0;q<r.length;q++){if(o){for(var p=0;p<o.length;p++){k.push([l,r[q],o[p]].join("-"))}}else{k.push([l,r[q]].join("-"))}}for(l=0;l<k.length;l++){this.removeStyle(k[l])}}},setStyle:function(d,c){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(d)]=c;return this},setStyles:function(d){for(var c in d){this.setStyle(c,d[c])}return this},setOpacity:function(b){CKEDITOR.env.ie&&9>CKEDITOR.env.version?(b=Math.round(100*b),this.setStyle("filter",100<=b?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+b+")")):this.setStyle("opacity",b)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none"));if(CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var e,d=this.getElementsByTag("*"),l=0,k=d.count();l<k;l++){e=d.getItem(l),e.setAttribute("unselectable","on")}}},getPositionedAncestor:function(){for(var b=this;"html"!=b.getName();){if("static"!=b.getComputedStyle("position")){return b}b=b.getParent()}return null},getDocumentPosition:function(y){var x=0,w=0,r=this.getDocument(),v=r.getBody(),s="BackCompat"==r.$.compatMode;if(document.documentElement.getBoundingClientRect){var q=this.$.getBoundingClientRect(),A=r.$.documentElement,p=A.clientTop||v.$.clientTop||0,o=A.clientLeft||v.$.clientLeft||0,z=!0;CKEDITOR.env.ie&&(z=r.getDocumentElement().contains(this),r=r.getBody().contains(this),z=s&&r||!s&&z);z&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(x=v.$.scrollLeft||A.scrollLeft,w=v.$.scrollTop||A.scrollTop):(w=s?v.$:A,x=w.scrollLeft,w=w.scrollTop),x=q.left+x-o,w=q.top+w-p)}else{for(p=this,o=null;p&&"body"!=p.getName()&&"html"!=p.getName();){x+=p.$.offsetLeft-p.$.scrollLeft;w+=p.$.offsetTop-p.$.scrollTop;p.equals(this)||(x+=p.$.clientLeft||0,w+=p.$.clientTop||0);for(;o&&!o.equals(p);){x-=o.$.scrollLeft,w-=o.$.scrollTop,o=o.getParent()}o=p;p=(q=p.$.offsetParent)?new CKEDITOR.dom.element(q):null}}y&&(q=this.getWindow(),p=y.getWindow(),!q.equals(p)&&q.$.frameElement&&(y=(new CKEDITOR.dom.element(q.$.frameElement)).getDocumentPosition(y),x+=y.x,w+=y.y));document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||s||(x+=this.$.clientLeft?1:0,w+=this.$.clientTop?1:0);return{x:x,y:w}},scrollIntoView:function(k){var e=this.getParent();if(e){do{if((e.$.clientWidth&&e.$.clientWidth<e.$.scrollWidth||e.$.clientHeight&&e.$.clientHeight<e.$.scrollHeight)&&!e.is("body")&&this.scrollIntoParent(e,k,1),e.is("html")){var p=e.getWindow();try{var l=p.$.frameElement;l&&(e=new CKEDITOR.dom.element(l))}catch(o){}}}while(e=e.getParent())}},scrollIntoParent:function(F,D,C){function s(a,c){/body|html/.test(F.getName())?F.getWindow().$.scrollBy(a,c):(F.$.scrollLeft+=a,F.$.scrollTop+=c)}function y(e,d){var k={x:0,y:0};if(!e.is(H?"body":"html")){var l=e.$.getBoundingClientRect();k.x=l.left;k.y=l.top}l=e.getWindow();l.equals(d)||(l=y(CKEDITOR.dom.element.get(l.$.frameElement),d),k.x+=l.x,k.y+=l.y);return k}function v(d,c){return parseInt(d.getComputedStyle("margin-"+c)||0,10)||0}var r,I,q,p;!F&&(F=this.getWindow());q=F.getDocument();var H="BackCompat"==q.$.compatMode;F instanceof CKEDITOR.dom.window&&(F=H?q.getBody():q.getDocumentElement());q=F.getWindow();I=y(this,q);var G=y(F,q),B=this.$.offsetHeight;r=this.$.offsetWidth;var E=F.$.clientHeight,o=F.$.clientWidth;q=I.x-v(this,"left")-G.x||0;p=I.y-v(this,"top")-G.y||0;r=I.x+r+v(this,"right")-(G.x+o)||0;I=I.y+B+v(this,"bottom")-(G.y+E)||0;(0>p||0<I)&&s(0,!0===D?p:!1===D?I:0>p?p:I);C&&(0>q||0<r)&&s(0>q?q:r,0)},setState:function(e,d,k){d=d||"cke";switch(e){case CKEDITOR.TRISTATE_ON:this.addClass(d+"_on");this.removeClass(d+"_off");this.removeClass(d+"_disabled");k&&this.setAttribute("aria-pressed",!0);k&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(d+"_disabled");this.removeClass(d+"_off");this.removeClass(d+"_on");k&&this.setAttribute("aria-disabled",!0);k&&this.removeAttribute("aria-pressed");break;default:this.addClass(d+"_off"),this.removeClass(d+"_on"),this.removeClass(d+"_disabled"),k&&this.removeAttribute("aria-pressed"),k&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var d=this.$;try{d.contentWindow.document}catch(c){d.src=d.src}return d&&new CKEDITOR.dom.document(d.contentWindow.document)},copyAttributes:function(o,l){var t=this.$.attributes;l=l||{};for(var q=0;q<t.length;q++){var s=t[q],r=s.nodeName.toLowerCase(),p;if(!(r in l)){if("checked"==r&&(p=this.getAttribute(r))){o.setAttribute(r,p)}else{if(!CKEDITOR.env.ie||this.hasAttribute(r)){p=this.getAttribute(r),null===p&&(p=s.nodeValue),o.setAttribute(r,p)}}}}""!==this.$.style.cssText&&(o.$.style.cssText=this.$.style.cssText)},renameNode:function(d){if(this.getName()!=d){var c=this.getDocument();d=new CKEDITOR.dom.element(d,c);this.copyAttributes(d);this.moveChildren(d);this.getParent(!0)&&this.$.parentNode.replaceChild(d.$,this.$);d.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=d.$;delete this.getName}},getChild:function(){function b(a,e){var d=a.childNodes;if(0<=e&&e<d.length){return d[e]}}return function(a){var d=this.$;if(a.slice){for(a=a.slice();0<a.length&&d;){d=b(d,a.shift())}}else{d=b(d,a)}return d?new CKEDITOR.dom.node(d):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){this.on("contextmenu",function(b){b.data.getTarget().hasClass("cke_enable_context_menu")||b.data.preventDefault()})},getDirection:function(b){return b?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(d,c){d="data-"+d;if(void 0===c){return this.getAttribute(d)}!1===c?this.removeAttribute(d):this.setAttribute(d,c);return null},getEditor:function(){var e=CKEDITOR.instances,d,k;for(d in e){if(k=e[d],k.element.equals(this)&&k.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){return k}}return null},find:function(b){var d=j(this);b=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(f(this,b)));d();return b},findOne:function(b){var d=j(this);b=this.$.querySelector(f(this,b));d();return b?new CKEDITOR.dom.element(b):null},forEach:function(k,e,p){if(!(p||e&&this.type!=e)){var l=k(this)}if(!1!==l){p=this.getChildren();for(var o=0;o<p.count();o++){l=p.getItem(o),l.type==CKEDITOR.NODE_ELEMENT?l.forEach(k,e):e&&l.type!=e||k(l)}}}});var g={width:["border-left-width","border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=function(e,c,k){"number"==typeof c&&(!k||CKEDITOR.env.ie&&CKEDITOR.env.quirks||(c-=n.call(this,e)),this.setStyle(e,c+"px"))};CKEDITOR.dom.element.prototype.getSize=function(e,c){var k=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(e)],this.$["client"+CKEDITOR.tools.capitalize(e)])||0;c&&(k-=n.call(this,e));return k}}(),CKEDITOR.dom.documentFragment=function(b){b=b||CKEDITOR.document;this.$=b.type==CKEDITOR.NODE_DOCUMENT?b.$.createDocumentFragment():b},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(b){b=b.$;b.parentNode.insertBefore(this.$,b.nextSibling)},getHtml:function(){var b=new CKEDITOR.dom.element("div");this.clone(1,1).appendTo(b);return b.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 v(P,O){var I=this.range;if(this._.end){return null}if(!this._.start){this._.start=1;if(I.collapsed){return this.end(),null}I.optimize()}var M,L=I.startContainer;M=I.endContainer;var J=I.startOffset,K=I.endOffset,G,E=this.guard,H=this.type,F=P?"getPreviousSourceNode":"getNextSourceNode";if(!P&&!this._.guardLTR){var N=M.type==CKEDITOR.NODE_ELEMENT?M:M.getParent(),x=M.type==CKEDITOR.NODE_ELEMENT?M.getChild(K):M.getNext();this._.guardLTR=function(d,c){return(!c||!N.equals(d))&&(!x||!d.equals(x))&&(d.type!=CKEDITOR.NODE_ELEMENT||!c||!d.equals(I.root))}}if(P&&!this._.guardRTL){var A=L.type==CKEDITOR.NODE_ELEMENT?L:L.getParent(),z=L.type==CKEDITOR.NODE_ELEMENT?J?L.getChild(J-1):null:L.getPrevious();this._.guardRTL=function(d,c){return(!c||!A.equals(d))&&(!z||!d.equals(z))&&(d.type!=CKEDITOR.NODE_ELEMENT||!c||!d.equals(I.root))}}var w=P?this._.guardRTL:this._.guardLTR;G=E?function(d,c){return !1===w(d,c)?!1:E(d,c)}:w;this.current?M=this.current[F](!1,H,G):(P?M.type==CKEDITOR.NODE_ELEMENT&&(M=0<K?M.getChild(K-1):!1===G(M,!0)?null:M.getPreviousSourceNode(!0,H,G)):(M=L,M.type!=CKEDITOR.NODE_ELEMENT||(M=M.getChild(J))||(M=!1===G(L,!0)?null:L.getNextSourceNode(!0,H,G))),M&&!1===G(M)&&(M=null));for(;M&&!this._.end;){this.current=M;if(!this.evaluator||!1!==this.evaluator(M)){if(!O){return M}}else{if(O&&this.evaluator){return !1}}M=M[F](!1,H,G)}this.end();return this.current=null}function r(a){for(var d,e=null;d=v.call(this,a);){e=d}return e}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(b){this.range=b;this._={}},proto:{end:function(){this._.end=1},next:function(){return v.call(this)},previous:function(){return v.call(this,1)},checkForward:function(){return !1!==v.call(this,0,1)},checkBackward:function(){return !1!==v.call(this,1,1)},lastForward:function(){return r.call(this)},lastBackward:function(){return r.call(this,1)},reset:function(){delete this.current;this._={}}}});var u={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},t={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(b){return"none"!=this.getComputedStyle("float")||this.getComputedStyle("position") in t||!u[this.getComputedStyle("display")]?!!(this.is(CKEDITOR.dtd.$block)||b&&this.is(b)):!0};CKEDITOR.dom.walker.blockBoundary=function(b){return function(a){return !(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary(b))}};CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(d,c){function e(b){return b&&b.getName&&"span"==b.getName()&&b.data("cke-bookmark")}return function(g){var b,a;b=g&&g.type!=CKEDITOR.NODE_ELEMENT&&(a=g.getParent())&&e(a);b=d?b:b||e(g);return !!(c^b)}};CKEDITOR.dom.walker.whitespaces=function(b){return function(a){var c;a&&a.type==CKEDITOR.NODE_TEXT&&(c=!CKEDITOR.tools.trim(a.getText())||CKEDITOR.env.webkit&&"\u200b"==a.getText());return !!(b^c)}};CKEDITOR.dom.walker.invisible=function(d){var c=CKEDITOR.dom.walker.whitespaces(),e=CKEDITOR.env.webkit?1:0;return function(a){c(a)?a=1:(a.type==CKEDITOR.NODE_TEXT&&(a=a.getParent()),a=a.$.offsetWidth<=e);return !!(d^a)}};CKEDITOR.dom.walker.nodeType=function(d,c){return function(a){return !!(c^a.type==d)}};CKEDITOR.dom.walker.bogus=function(d){function c(b){return !n(b)&&!j(b)}return function(a){var b=CKEDITOR.env.needsBrFiller?a.is&&a.is("br"):a.getText&&s.test(a.getText());b&&(b=a.getParent(),a=a.getNext(c),b=b.isBlockBoundary()&&(!a||a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary()));return !!(d^b)}};CKEDITOR.dom.walker.temp=function(b){return function(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());a=a&&a.hasAttribute("data-cke-temp");return !!(b^a)}};var s=/^[\t\r\n ]*(?: |\xa0)$/,n=CKEDITOR.dom.walker.whitespaces(),j=CKEDITOR.dom.walker.bookmark(),q=CKEDITOR.dom.walker.temp();CKEDITOR.dom.walker.ignored=function(b){return function(a){a=n(a)||j(a)||q(a);return !!(b^a)}};var o=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(b){return function(a){for(var d=0,e=a.getChildCount();d<e;++d){if(!o(a.getChild(d))){return !!b}}return !b}};var i=CKEDITOR.dom.walker.empty(),p=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(d){var c={},e;for(e in d){CKEDITOR.dtd[e]["#"]&&(c[e]=1)}return c}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=function(b){return function(a){return !!(b^(o(a)?0:a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&(a.is(CKEDITOR.dtd.$inline)||a.is("hr")||"false"==a.getAttribute("contenteditable")||!CKEDITOR.env.needsBrFiller&&a.is(p)&&i(a))?1:0))}};CKEDITOR.dom.element.prototype.getBogus=function(){var b=this;do{b=b.getPreviousSourceNode()}while(j(b)||n(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.is(CKEDITOR.dtd.$inline)&&!b.is(CKEDITOR.dtd.$empty));return b&&(CKEDITOR.env.needsBrFiller?b.is&&b.is("br"):b.getText&&s.test(b.getText()))?b:!1}}(),CKEDITOR.dom.range=function(b){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null;this.collapsed=!0;var c=b instanceof CKEDITOR.dom.document;this.document=c?b:b.getDocument();this.root=c?b.getBody():b},function(){function t(b){b.collapsed=b.startContainer&&b.endContainer&&b.startContainer.equals(b.endContainer)&&b.startOffset==b.endOffset}function p(at,ar,aq,ap,an){function ao(f,e,h,l){var k=h?f.getPrevious():f.getNext();if(l&&am){return k}X||l?e.append(f.clone(!0,an),h):(f.remove(),ak&&e.append(f));return k}function al(){var e,d,f,h=Math.min(Y.length,T.length);for(e=0;e<h;e++){if(d=Y[e],f=T[e],!d.equals(f)){return e}}return e-1}function aj(){var a=N-1,d=ad&&ab&&!ai.equals(V);a<P-1||a<z-1||d?(d?at.moveToPosition(V,CKEDITOR.POSITION_BEFORE_START):z==a+1&&ae?at.moveToPosition(T[a],CKEDITOR.POSITION_BEFORE_END):at.moveToPosition(T[a+1],CKEDITOR.POSITION_BEFORE_START),ap&&(a=Y[a+1])&&a.type==CKEDITOR.NODE_ELEMENT&&(d=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none"> </span>',at.document),d.insertAfter(a),a.mergeSiblings(!1),at.moveToBookmark({startNode:d}))):at.collapse(!0)}at.optimizeBookmark();var am=0===ar,ak=1==ar,X=2==ar;ar=X||ak;var ai=at.startContainer,V=at.endContainer,ag=at.startOffset,ah=at.endOffset,af,ae,ad,ab,ac,U;if(X&&V.type==CKEDITOR.NODE_TEXT&&ai.equals(V)){ai=at.document.createText(ai.substring(ag,ah)),aq.append(ai)}else{V.type==CKEDITOR.NODE_TEXT?X?U=!0:V=V.split(ah):0<V.getChildCount()?ah>=V.getChildCount()?(V=V.getChild(ah-1),ae=!0):V=V.getChild(ah):ab=ae=!0;ai.type==CKEDITOR.NODE_TEXT?X?ac=!0:ai.split(ag):0<ai.getChildCount()?0===ag?(ai=ai.getChild(ag),af=!0):ai=ai.getChild(ag-1):ad=af=!0;for(var Y=ai.getParents(),T=V.getParents(),N=al(),P=Y.length-1,z=T.length-1,Q=aq,v,au,u,I=-1,w=N;w<=P;w++){au=Y[w];u=au.getNext();for(w!=P||au.equals(T[w])&&P<z?ar&&(v=Q.append(au.clone(0,an))):af?ao(au,Q,!1,ad):ac&&Q.append(at.document.createText(au.substring(ag)));u;){if(u.equals(V)){I=w;break}if(u.equals(T[w])){I=w;break}u=ao(u,Q)}Q=v}Q=aq;for(w=N;w<=z;w++){if(aq=T[w],u=aq.getPrevious(),!aq.equals(Y[w])){w!=z||aq.equals(Y[w])&&z<P?ar&&(v=Q.append(aq.clone(0,an))):ae?ao(aq,Q,!1,ab):U&&Q.append(at.document.createText(aq.substring(0,ah)));if(w>I){for(;u;){u=ao(u,Q,!0)}}Q=v}}X||aj()}}function s(){var f=!1,e=CKEDITOR.dom.walker.whitespaces(),k=CKEDITOR.dom.walker.bookmark(!0),h=CKEDITOR.dom.walker.bogus();return function(a){return k(a)||e(a)?!0:h(a)&&!f?f=!0:a.type==CKEDITOR.NODE_TEXT&&(a.hasAscendant("pre")||CKEDITOR.tools.trim(a.getText()).length)||a.type==CKEDITOR.NODE_ELEMENT&&!a.is(j)?!1:!0}}function r(e){var d=CKEDITOR.dom.walker.whitespaces(),f=CKEDITOR.dom.walker.bookmark(1);return function(a){return f(a)||d(a)?!0:!e&&i(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$removeEmpty)}}function q(b){return function(){var a;return this[b?"getPreviousNode":"getNextNode"](function(c){!a&&g(c)&&(a=c);return n(c)&&!(i(c)&&c.equals(a))})}}var j={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},i=CKEDITOR.dom.walker.bogus(),o=/^[\t\r\n ]*(?: |\xa0)$/,n=CKEDITOR.dom.walker.editable(),g=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var b=new CKEDITOR.dom.range(this.root);b._setStartContainer(this.startContainer);b.startOffset=this.startOffset;b._setEndContainer(this.endContainer);b.endOffset=this.endOffset;b.collapsed=this.collapsed;return b},collapse:function(b){b?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),this.startOffset=this.endOffset);this.collapsed=!0},cloneContents:function(d){var c=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||p(this,2,c,!1,"undefined"==typeof d?!0:d);return c},deleteContents:function(b){this.collapsed||p(this,0,null,b)},extractContents:function(e,d){var f=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||p(this,1,f,e,"undefined"==typeof d?!0:d);return f},createBookmark:function(k){var h,v,u,l,m=this.collapsed;h=this.document.createElement("span");h.data("cke-bookmark",1);h.setStyle("display","none");h.setHtml(" ");k&&(u="cke_bm_"+CKEDITOR.tools.getNextNumber(),h.setAttribute("id",u+(m?"C":"S")));m||(v=h.clone(),v.setHtml(" "),k&&v.setAttribute("id",u+"E"),l=this.clone(),l.collapse(),l.insertNode(v));l=this.clone();l.collapse(!0);l.insertNode(h);v?(this.setStartAfter(h),this.setEndBefore(v)):this.moveToPosition(h,CKEDITOR.POSITION_AFTER_END);return{startNode:k?u+(m?"C":"S"):h,endNode:k?u+"E":v,serializable:k,collapsed:m}},createBookmark2:function(){function d(a){var l=a.container,k=a.offset,b;b=l;var h=k;if(b=b.type!=CKEDITOR.NODE_ELEMENT||0===h||h==b.getChildCount()?0:b.getChild(h-1).type==CKEDITOR.NODE_TEXT&&b.getChild(h).type==CKEDITOR.NODE_TEXT){l=l.getChild(k-1),k=l.getLength()}l.type==CKEDITOR.NODE_ELEMENT&&1<k&&(k=l.getChild(k-1).getIndex(!0)+1);if(l.type==CKEDITOR.NODE_TEXT){b=l;for(h=0;(b=b.getPrevious())&&b.type==CKEDITOR.NODE_TEXT;){h+=b.getLength()}b=h;l.getText()?k+=b:(h=l.getPrevious(c),b?(k=b,l=h?h.getNext():l.getParent().getFirst()):(l=l.getParent(),k=h?h.getIndex(!0)+1:0))}a.container=l;a.offset=k}var c=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,!0);return function(a){var k=this.collapsed,h={container:this.startContainer,offset:this.startOffset},e={container:this.endContainer,offset:this.endOffset};a&&(d(h),k||d(e));return{start:h.container.getAddress(a),end:k?null:e.container.getAddress(a),startOffset:h.offset,endOffset:e.offset,normalized:a,collapsed:k,is2:!0}}}(),moveToBookmark:function(f){if(f.is2){var e=this.document.getByAddress(f.start,f.normalized),k=f.startOffset,h=f.end&&this.document.getByAddress(f.end,f.normalized);f=f.endOffset;this.setStart(e,k);h?this.setEnd(h,f):this.collapse(!0)}else{e=(k=f.serializable)?this.document.getById(f.startNode):f.startNode,f=k?this.document.getById(f.endNode):f.endNode,this.setStartBefore(e),e.remove(),f?(this.setEndBefore(f),f.remove()):this.collapse(!0)}},getBoundaryNodes:function(){var h=this.startContainer,e=this.endContainer,m=this.startOffset,l=this.endOffset,k;if(h.type==CKEDITOR.NODE_ELEMENT){if(k=h.getChildCount(),k>m){h=h.getChild(m)}else{if(1>k){h=h.getPreviousSourceNode()}else{for(h=h.$;h.lastChild;){h=h.lastChild}h=new CKEDITOR.dom.node(h);h=h.getNextSourceNode()||h}}}if(e.type==CKEDITOR.NODE_ELEMENT){if(k=e.getChildCount(),k>l){e=e.getChild(l).getPreviousSourceNode(!0)}else{if(1>k){e=e.getPreviousSourceNode()}else{for(e=e.$;e.lastChild;){e=e.lastChild}e=new CKEDITOR.dom.node(e)}}}h.getPosition(e)&CKEDITOR.POSITION_FOLLOWING&&(h=e);return{startNode:h,endNode:e}},getCommonAncestor:function(f,e){var k=this.startContainer,h=this.endContainer,k=k.equals(h)?f&&k.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?k.getChild(this.startOffset):k:k.getCommonAncestor(h);return e&&!k.is?k.getParent():k},optimize:function(){var d=this.startContainer,c=this.startOffset;d.type!=CKEDITOR.NODE_ELEMENT&&(c?c>=d.getLength()&&this.setStartAfter(d):this.setStartBefore(d));d=this.endContainer;c=this.endOffset;d.type!=CKEDITOR.NODE_ELEMENT&&(c?c>=d.getLength()&&this.setEndAfter(d):this.setEndBefore(d))},optimizeBookmark:function(){var d=this.startContainer,c=this.endContainer;d.is&&d.is("span")&&d.data("cke-bookmark")&&this.setStartAt(d,CKEDITOR.POSITION_BEFORE_START);c&&c.is&&c.is("span")&&c.data("cke-bookmark")&&this.setEndAt(c,CKEDITOR.POSITION_AFTER_END)},trim:function(k,h){var v=this.startContainer,u=this.startOffset,l=this.collapsed;if((!k||l)&&v&&v.type==CKEDITOR.NODE_TEXT){if(u){if(u>=v.getLength()){u=v.getIndex()+1,v=v.getParent()}else{var m=v.split(u),u=v.getIndex()+1,v=v.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(m,this.endOffset-this.startOffset):v.equals(this.endContainer)&&(this.endOffset+=1)}}else{u=v.getIndex(),v=v.getParent()}this.setStart(v,u);if(l){this.collapse(!0);return}}v=this.endContainer;u=this.endOffset;h||l||!v||v.type!=CKEDITOR.NODE_TEXT||(u?(u>=v.getLength()||v.split(u),u=v.getIndex()+1):u=v.getIndex(),v=v.getParent(),this.setEnd(v,u))},enlarge:function(ai,ah){function ag(b){return b&&b.type==CKEDITOR.NODE_ELEMENT&&b.hasAttribute("contenteditable")?null:b}var af=RegExp(/[^\s\ufeff]/);switch(ai){case CKEDITOR.ENLARGE_INLINE:var ad=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed){break}var ae=this.getCommonAncestor(),ab=this.root,Z,ac,aa,N,Y,L=!1,W,X;W=this.startContainer;var V=this.startOffset;W.type==CKEDITOR.NODE_TEXT?(V&&(W=!CKEDITOR.tools.trim(W.substring(0,V)).length&&W,L=!!W),W&&!(N=W.getPrevious())&&(aa=W.getParent())):(V&&(N=W.getChild(V-1)||W.getLast()),N||(aa=W));for(aa=ag(aa);aa||N;){if(aa&&!N){!Y&&aa.equals(ae)&&(Y=!0);if(ad?aa.isBlockBoundary():!ab.contains(aa)){break}L&&"inline"==aa.getComputedStyle("display")||(L=!1,Y?Z=aa:this.setStartBefore(aa));N=aa.getPrevious()}for(;N;){if(W=!1,N.type==CKEDITOR.NODE_COMMENT){N=N.getPrevious()}else{if(N.type==CKEDITOR.NODE_TEXT){X=N.getText(),af.test(X)&&(N=null),W=/[\s\ufeff]$/.test(X)}else{if((N.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||ah&&N.is("br"))&&!N.data("cke-bookmark")){if(L&&CKEDITOR.dtd.$removeEmpty[N.getName()]){X=N.getText();if(af.test(X)){N=null}else{for(var V=N.$.getElementsByTagName("*"),U=0,T;T=V[U++];){if(!CKEDITOR.dtd.$removeEmpty[T.nodeName.toLowerCase()]){N=null;break}}}N&&(W=!!X.length)}else{N=null}}}W&&(L?Y?Z=aa:aa&&this.setStartBefore(aa):L=!0);if(N){W=N.getPrevious();if(!aa&&!W){aa=N;N=null;break}N=W}else{aa=null}}}aa&&(aa=ag(aa.getParent()))}W=this.endContainer;V=this.endOffset;aa=N=null;Y=L=!1;var Q=function(e,d){var h=new CKEDITOR.dom.range(ab);h.setStart(e,d);h.setEndAt(ab,CKEDITOR.POSITION_BEFORE_END);var h=new CKEDITOR.dom.walker(h),f;for(h.guard=function(b){return !(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary())};f=h.next();){if(f.type!=CKEDITOR.NODE_TEXT){return !1}X=f!=e?f.getText():f.substring(d);if(af.test(X)){return !1}}return !0};W.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(W.substring(V)).length?L=!0:(L=!W.getLength(),V==W.getLength()?(N=W.getNext())||(aa=W.getParent()):Q(W,V)&&(aa=W.getParent())):(N=W.getChild(V))||(aa=W);for(;aa||N;){if(aa&&!N){!Y&&aa.equals(ae)&&(Y=!0);if(ad?aa.isBlockBoundary():!ab.contains(aa)){break}L&&"inline"==aa.getComputedStyle("display")||(L=!1,Y?ac=aa:aa&&this.setEndAfter(aa));N=aa.getNext()}for(;N;){W=!1;if(N.type==CKEDITOR.NODE_TEXT){X=N.getText(),Q(N,0)||(N=null),W=/^[\s\ufeff]/.test(X)}else{if(N.type==CKEDITOR.NODE_ELEMENT){if((0<N.$.offsetWidth||ah&&N.is("br"))&&!N.data("cke-bookmark")){if(L&&CKEDITOR.dtd.$removeEmpty[N.getName()]){X=N.getText();if(af.test(X)){N=null}else{for(V=N.$.getElementsByTagName("*"),U=0;T=V[U++];){if(!CKEDITOR.dtd.$removeEmpty[T.nodeName.toLowerCase()]){N=null;break}}}N&&(W=!!X.length)}else{N=null}}}else{W=1}}W&&L&&(Y?ac=aa:this.setEndAfter(aa));if(N){W=N.getNext();if(!aa&&!W){aa=N;N=null;break}N=W}else{aa=null}}aa&&(aa=ag(aa.getParent()))}Z&&ac&&(ae=Z.contains(ac)?ac:Z,this.setStartBefore(ae),this.setEndAfter(ae));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:aa=new CKEDITOR.dom.range(this.root);ab=this.root;aa.setStartAt(ab,CKEDITOR.POSITION_AFTER_START);aa.setEnd(this.startContainer,this.startOffset);aa=new CKEDITOR.dom.walker(aa);var S,I,P=CKEDITOR.dom.walker.blockBoundary(ai==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),z=null,v=function(d){if(d.type==CKEDITOR.NODE_ELEMENT&&"false"==d.getAttribute("contenteditable")){if(z){if(z.equals(d)){z=null;return}}else{z=d}}else{if(z){return}}var c=P(d);c||(S=d);return c},ad=function(d){var c=v(d);!c&&d.is&&d.is("br")&&(I=d);return c};aa.guard=v;aa=aa.lastBackward();S=S||ab;this.setStartAt(S,!S.is("br")&&(!aa&&this.checkStartOfBlock()||aa&&S.contains(aa))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(ai==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){aa=this.clone();aa=new CKEDITOR.dom.walker(aa);var w=CKEDITOR.dom.walker.whitespaces(),u=CKEDITOR.dom.walker.bookmark();aa.evaluator=function(b){return !w(b)&&!u(b)};if((aa=aa.previous())&&aa.type==CKEDITOR.NODE_ELEMENT&&aa.is("br")){break}}aa=this.clone();aa.collapse();aa.setEndAt(ab,CKEDITOR.POSITION_BEFORE_END);aa=new CKEDITOR.dom.walker(aa);aa.guard=ai==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?ad:v;S=z=I=null;aa=aa.lastForward();S=S||ab;this.setEndAt(S,!aa&&this.checkEndOfBlock()||aa&&S.contains(aa)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);I&&this.setEndAfter(I)}},shrink:function(H,F,E){if(!this.collapsed){H=H||CKEDITOR.SHRINK_TEXT;var D=this.clone(),B=this.startContainer,C=this.endContainer,y=this.startOffset,v=this.endOffset,w=1,z=1;B&&B.type==CKEDITOR.NODE_TEXT&&(y?y>=B.getLength()?D.setStartAfter(B):(D.setStartBefore(B),w=0):D.setStartBefore(B));C&&C.type==CKEDITOR.NODE_TEXT&&(v?v>=C.getLength()?D.setEndAfter(C):(D.setEndAfter(C),z=0):D.setEndBefore(C));var D=new CKEDITOR.dom.walker(D),G=CKEDITOR.dom.walker.bookmark();D.evaluator=function(a){return a.type==(H==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var u;D.guard=function(a,c){if(G(a)){return !0}if(H==CKEDITOR.SHRINK_ELEMENT&&a.type==CKEDITOR.NODE_TEXT||c&&a.equals(u)||!1===E&&a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary()||a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")){return !1}!c&&a.type==CKEDITOR.NODE_ELEMENT&&(u=a);return !0};w&&(B=D[H==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(B,F?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);z&&(D.reset(),(D=D[H==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(D,F?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END));return !(!w&&!z)}},insertNode:function(e){this.optimizeBookmark();this.trim(!1,!0);var d=this.startContainer,f=d.getChild(this.startOffset);f?e.insertBefore(f):d.append(e);e.getParent()&&e.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(e)},moveToPosition:function(d,c){this.setStartAt(d,c);this.collapse(!0)},moveToRange:function(b){this.setStart(b.startContainer,b.startOffset);this.setEnd(b.endContainer,b.endOffset)},selectNodeContents:function(b){this.setStart(b,0);this.setEnd(b,b.type==CKEDITOR.NODE_TEXT?b.getLength():b.getChildCount())},setStart:function(a,d){a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]&&(d=a.getIndex(),a=a.getParent());this._setStartContainer(a);this.startOffset=d;this.endContainer||(this._setEndContainer(a),this.endOffset=d);t(this)},setEnd:function(a,d){a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]&&(d=a.getIndex()+1,a=a.getParent());this._setEndContainer(a);this.endOffset=d;this.startContainer||(this._setStartContainer(a),this.startOffset=d);t(this)},setStartAfter:function(b){this.setStart(b.getParent(),b.getIndex()+1)},setStartBefore:function(b){this.setStart(b.getParent(),b.getIndex())},setEndAfter:function(b){this.setEnd(b.getParent(),b.getIndex()+1)},setEndBefore:function(b){this.setEnd(b.getParent(),b.getIndex())},setStartAt:function(a,d){switch(d){case CKEDITOR.POSITION_AFTER_START:this.setStart(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setStart(a,a.getLength()):this.setStart(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(a)}t(this)},setEndAt:function(a,d){switch(d){case CKEDITOR.POSITION_AFTER_START:this.setEnd(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setEnd(a,a.getLength()):this.setEnd(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(a)}t(this)},fixBlock:function(h,e){var m=this.createBookmark(),l=this.document.createElement(e);this.collapse(h);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(l);l.trim();this.insertNode(l);var k=l.getBogus();k&&k.remove();l.appendBogus();this.moveToBookmark(m);return l},splitBlock:function(l,h){var x=new CKEDITOR.dom.elementPath(this.startContainer,this.root),w=new CKEDITOR.dom.elementPath(this.endContainer,this.root),u=x.block,v=w.block,m=null;if(!x.blockLimit.equals(w.blockLimit)){return null}"br"!=l&&(u||(u=this.fixBlock(!0,l),v=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),v||(v=this.fixBlock(!1,l)));x=u&&this.checkStartOfBlock();w=v&&this.checkEndOfBlock();this.deleteContents();u&&u.equals(v)&&(w?(m=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(v,CKEDITOR.POSITION_AFTER_END),v=null):x?(m=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(u,CKEDITOR.POSITION_BEFORE_START),u=null):(v=this.splitElement(u,h||!1),u.is("ul","ol")||u.appendBogus()));return{previousBlock:u,nextBlock:v,wasStartOfBlock:x,wasEndOfBlock:w,elementPath:m}},splitElement:function(f,e){if(!this.collapsed){return null}this.setEndAt(f,CKEDITOR.POSITION_BEFORE_END);var k=this.extractContents(!1,e||!1),h=f.clone(!1,e||!1);k.appendTo(h);h.insertAfter(f);this.moveToPosition(f,CKEDITOR.POSITION_AFTER_END);return h},removeEmptyBlocksAtEnd:function(){function e(a){return function(b){return d(b)||f(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.isEmptyInlineRemoveable()||a.is("table")&&b.is("caption")?!1:!0}}var d=CKEDITOR.dom.walker.whitespaces(),f=CKEDITOR.dom.walker.bookmark(!1);return function(a){for(var m=this.createBookmark(),l=this[a?"endPath":"startPath"](),h=l.block||l.blockLimit,k;h&&!h.equals(l.root)&&!h.getFirst(e(h));){k=h.getParent(),this[a?"setEndAt":"setStartAt"](h,CKEDITOR.POSITION_AFTER_END),h.remove(1),h=k}this.moveToBookmark(m)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(e,c){var k=c==CKEDITOR.START,h=this.clone();h.collapse(k);h[k?"setStartAt":"setEndAt"](e,k?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);h=new CKEDITOR.dom.walker(h);h.evaluator=r(k);return h[k?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var b=this.startContainer,d=this.startOffset;CKEDITOR.env.ie&&d&&b.type==CKEDITOR.NODE_TEXT&&(b=CKEDITOR.tools.ltrim(b.substring(0,d)),o.test(b)&&this.trim(0,1));this.trim();b=new CKEDITOR.dom.elementPath(this.startContainer,this.root);d=this.clone();d.collapse(!0);d.setStartAt(b.block||b.blockLimit,CKEDITOR.POSITION_AFTER_START);b=new CKEDITOR.dom.walker(d);b.evaluator=s();return b.checkBackward()},checkEndOfBlock:function(){var b=this.endContainer,d=this.endOffset;CKEDITOR.env.ie&&b.type==CKEDITOR.NODE_TEXT&&(b=CKEDITOR.tools.rtrim(b.substring(d)),o.test(b)&&this.trim(1,0));this.trim();b=new CKEDITOR.dom.elementPath(this.endContainer,this.root);d=this.clone();d.collapse(!1);d.setEndAt(b.block||b.blockLimit,CKEDITOR.POSITION_BEFORE_END);b=new CKEDITOR.dom.walker(d);b.evaluator=s();return b.checkForward()},getPreviousNode:function(f,e,k){var h=this.clone();h.collapse(1);h.setStartAt(k||this.root,CKEDITOR.POSITION_AFTER_START);k=new CKEDITOR.dom.walker(h);k.evaluator=f;k.guard=e;return k.previous()},getNextNode:function(f,e,k){var h=this.clone();h.collapse();h.setEndAt(k||this.root,CKEDITOR.POSITION_BEFORE_END);k=new CKEDITOR.dom.walker(h);k.evaluator=f;k.guard=e;return k.next()},checkReadOnly:function(){function b(a,d){for(;a;){if(a.type==CKEDITOR.NODE_ELEMENT){if("false"==a.getAttribute("contentEditable")&&!a.data("cke-editable")){return 0}if(a.is("html")||"true"==a.getAttribute("contentEditable")&&(a.contains(d)||a.equals(d))){break}}a=a.getParent()}return 1}return function(){var a=this.startContainer,d=this.endContainer;return !(b(a,d)&&b(d,a))}}(),moveToElementEditablePosition:function(h,f){if(h.type==CKEDITOR.NODE_ELEMENT&&!h.isEditable(!1)){return this.moveToPosition(h,f?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0}for(var v=0;h;){if(h.type==CKEDITOR.NODE_TEXT){f&&this.endContainer&&this.checkEndOfBlock()&&o.test(h.getText())?this.moveToPosition(h,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(h,f?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);v=1;break}if(h.type==CKEDITOR.NODE_ELEMENT){if(h.isEditable()){this.moveToPosition(h,f?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),v=1}else{if(f&&h.is("br")&&this.endContainer&&this.checkEndOfBlock()){this.moveToPosition(h,CKEDITOR.POSITION_BEFORE_START)}else{if("false"==h.getAttribute("contenteditable")&&h.is(CKEDITOR.dtd.$block)){return this.setStartBefore(h),this.setEndAfter(h),!0}}}}var u=h,m=v,l=void 0;u.type==CKEDITOR.NODE_ELEMENT&&u.isEditable(!1)&&(l=u[f?"getLast":"getFirst"](g));m||l||(l=u[f?"getPrevious":"getNext"](g));h=l}return !!v},moveToClosestEditablePosition:function(l,h){var x,w=0,u,v,m=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];l?(x=new CKEDITOR.dom.range(this.root),x.moveToPosition(l,m[h?0:1])):x=this.clone();if(l&&!l.is(CKEDITOR.dtd.$block)){w=1}else{if(u=x[h?"getNextEditableNode":"getPreviousEditableNode"]()){w=1,(v=u.type==CKEDITOR.NODE_ELEMENT)&&u.is(CKEDITOR.dtd.$block)&&"false"==u.getAttribute("contenteditable")?(x.setStartAt(u,CKEDITOR.POSITION_BEFORE_START),x.setEndAt(u,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&v&&u.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(x.setEnd(u,0),x.collapse()):x.moveToPosition(u,m[h?1:0])}}w&&this.moveToRange(x);return !!w},moveToElementEditStart:function(b){return this.moveToElementEditablePosition(b)},moveToElementEditEnd:function(b){return this.moveToElementEditablePosition(b,!0)},getEnclosedNode:function(){var f=this.clone();f.optimize();if(f.startContainer.type!=CKEDITOR.NODE_ELEMENT||f.endContainer.type!=CKEDITOR.NODE_ELEMENT){return null}var f=new CKEDITOR.dom.walker(f),e=CKEDITOR.dom.walker.bookmark(!1,!0),k=CKEDITOR.dom.walker.whitespaces(!0);f.evaluator=function(b){return k(b)&&e(b)};var h=f.next();f.reset();return h&&h.equals(f.previous())?h:null},getTouchedStartNode:function(){var b=this.startContainer;return this.collapsed||b.type!=CKEDITOR.NODE_ELEMENT?b:b.getChild(this.startOffset)||b},getTouchedEndNode:function(){var b=this.endContainer;return this.collapsed||b.type!=CKEDITOR.NODE_ELEMENT?b:b.getChild(this.endOffset-1)||b},getNextEditableNode:q(),getPreviousEditableNode:q(1),scrollIntoView:function(){var h=new CKEDITOR.dom.element.createFromHtml("<span> </span>",this.document),e,m,l,k=this.clone();k.optimize();(l=k.startContainer.type==CKEDITOR.NODE_TEXT)?(m=k.startContainer.getText(),e=k.startContainer.split(k.startOffset),h.insertAfter(k.startContainer)):k.insertNode(h);h.scrollIntoView();l&&(k.startContainer.setText(m),e.remove());h.remove()},_setStartContainer:function(b){this.startContainer=b},_setEndContainer:function(b){this.endContainer=b}}}(),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 r(b){1>arguments.length||(this.range=b,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function n(d){var c=[];d.forEach(function(b){if("true"==b.getAttribute("contenteditable")){return c.push(b),!1}},CKEDITOR.NODE_ELEMENT,!0);return c}function q(b,s,l,h){b:{null==h&&(h=n(l));for(var e;e=h.shift();){if(e.getDtd().p){h={element:e,remaining:h};break b}}h=null}if(!h){return 0}if((e=CKEDITOR.filter.instances[h.element.data("cke-filter")])&&!e.check(s)){return q(b,s,l,h.remaining)}s=new CKEDITOR.dom.range(h.element);s.selectNodeContents(h.element);s=s.createIterator();s.enlargeBr=b.enlargeBr;s.enforceRealBlocks=b.enforceRealBlocks;s.activeFilter=s.filter=e;b._.nestedEditable={element:h.element,container:l,remaining:h.remaining,iterator:s};return 1}function p(e,d,f){if(!d){return !1}e=e.clone();e.collapse(!f);return e.checkBoundaryOfElement(d,f?CKEDITOR.START:CKEDITOR.END)}var o=/^[\r\n\t ]+$/,i=CKEDITOR.dom.walker.bookmark(!1,!0),g=CKEDITOR.dom.walker.whitespaces(!0),m=function(b){return i(b)&&g(b)},j={dd:1,dt:1,li:1};r.prototype={getNextParagraph:function(B){var h,k,f,D,F;B=B||"p";if(this._.nestedEditable){if(h=this._.nestedEditable.iterator.getNextParagraph(B)){return this.activeFilter=this._.nestedEditable.iterator.activeFilter,h}this.activeFilter=this.filter;if(q(this,B,this._.nestedEditable.container,this._.nestedEditable.remaining)){return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(B)}this._.nestedEditable=null}if(!this.range.root.getDtd()[B]){return null}if(!this._.started){var b=this.range.clone();k=b.startPath();var d=b.endPath(),E=!b.collapsed&&p(b,k.block),C=!b.collapsed&&p(b,d.block,1);b.shrink(CKEDITOR.SHRINK_ELEMENT,!0);E&&b.setStartAt(k.block,CKEDITOR.POSITION_BEFORE_END);C&&b.setEndAt(d.block,CKEDITOR.POSITION_AFTER_START);k=b.endContainer.hasAscendant("pre",!0)||b.startContainer.hasAscendant("pre",!0);b.enlarge(this.forceBrBreak&&!k||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);b.collapsed||(k=new CKEDITOR.dom.walker(b.clone()),d=CKEDITOR.dom.walker.bookmark(!0,!0),k.evaluator=d,this._.nextNode=k.next(),k=new CKEDITOR.dom.walker(b.clone()),k.evaluator=d,k=k.previous(),this._.lastNode=k.getNextSourceNode(!0,null,b.root),this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&(d=this.range.clone(),d.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),d.checkEndOfBlock()&&(d=new CKEDITOR.dom.elementPath(d.endContainer,d.root),this._.lastNode=(d.block||d.blockLimit).getNextSourceNode(!0))),this._.lastNode&&b.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=b.document.createText(""),this._.lastNode.insertAfter(k)),b=null);this._.started=1;k=b}d=this._.nextNode;b=this._.lastNode;for(this._.nextNode=null;d;){var E=0,C=d.hasAscendant("pre"),s=d.type!=CKEDITOR.NODE_ELEMENT,y=0;if(s){d.type==CKEDITOR.NODE_TEXT&&o.test(d.getText())&&(s=0)}else{var c=d.getName();if(CKEDITOR.dtd.$block[c]&&"false"==d.getAttribute("contenteditable")){h=d;q(this,B,h);break}else{if(d.isBlockBoundary(this.forceBrBreak&&!C&&{br:1})){if("br"==c){s=1}else{if(!k&&!d.getChildCount()&&"hr"!=c){h=d;f=d.equals(b);break}}k&&(k.setEndAt(d,CKEDITOR.POSITION_BEFORE_START),"br"!=c&&(this._.nextNode=d));E=1}else{if(d.getFirst()){k||(k=this.range.clone(),k.setStartAt(d,CKEDITOR.POSITION_BEFORE_START));d=d.getFirst();continue}s=1}}}s&&!k&&(k=this.range.clone(),k.setStartAt(d,CKEDITOR.POSITION_BEFORE_START));f=(!E||s)&&d.equals(b);if(k&&!E){for(;!d.getNext(m)&&!f;){c=d.getParent();if(c.isBlockBoundary(this.forceBrBreak&&!C&&{br:1})){E=1;s=0;f||c.equals(b);k.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);break}d=c;s=1;f=d.equals(b);y=1}}s&&k.setEndAt(d,CKEDITOR.POSITION_AFTER_END);d=this._getNextSourceNode(d,y,b);if((f=!d)||E&&k){break}}if(!h){if(!k){return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null}h=new CKEDITOR.dom.elementPath(k.startContainer,k.root);d=h.blockLimit;E={div:1,th:1,td:1};h=h.block;!h&&d&&!this.enforceRealBlocks&&E[d.getName()]&&k.checkStartOfBlock()&&k.checkEndOfBlock()&&!d.equals(k.root)?h=d:!h||this.enforceRealBlocks&&h.is(j)?(h=this.range.document.createElement(B),k.extractContents().appendTo(h),h.trim(),k.insertNode(h),D=F=!0):"li"!=h.getName()?k.checkStartOfBlock()&&k.checkEndOfBlock()||(h=h.clone(!1),k.extractContents().appendTo(h),h.trim(),F=k.splitBlock(),D=!F.wasStartOfBlock,F=!F.wasEndOfBlock,k.insertNode(h)):f||(this._.nextNode=h.equals(b)?null:this._getNextSourceNode(k.getBoundaryNodes().endNode,1,b))}D&&(D=h.getPrevious())&&D.type==CKEDITOR.NODE_ELEMENT&&("br"==D.getName()?D.remove():D.getLast()&&"br"==D.getLast().$.nodeName.toLowerCase()&&D.getLast().remove());F&&(D=h.getLast())&&D.type==CKEDITOR.NODE_ELEMENT&&"br"==D.getName()&&(!CKEDITOR.env.needsBrFiller||D.getPrevious(i)||D.getNext(i))&&D.remove();this._.nextNode||(this._.nextNode=f||h.equals(b)||!b?null:this._getNextSourceNode(h,1,b));return h},_getNextSourceNode:function(h,e,s){function l(b){return !(b.equals(s)||b.equals(k))}var k=this.range.root;for(h=h.getNextSourceNode(e,null,l);!i(h);){h=h.getNextSourceNode(e,null,l)}return h}};CKEDITOR.dom.range.prototype.createIterator=function(){return new r(this)}}(),CKEDITOR.command=function(d,f){this.uiItems=[];this.exec=function(a){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed()){return !1}this.editorFocus&&d.focus();return !1===this.fire("exec")?!0:!1!==f.exec.call(this,d,a)};this.refresh=function(g,e){if(!this.readOnly&&g.readOnly){return !0}if(this.context&&!e.isContextFor(this.context)||!this.checkAllowed(!0)){return this.disable(),!0}this.startDisabled||this.enable();this.modes&&!this.modes[g.mode]&&this.disable();return !1===this.fire("refresh",{editor:g,path:e})?!0:f.refresh&&!1!==f.refresh.apply(this,arguments)};var c;this.checkAllowed=function(a){return a||"boolean"!=typeof c?c=d.activeFilter.checkFeature(this):c};CKEDITOR.tools.extend(this,f,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!f.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(b){if(this.state==b||b!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed()){return !1}this.previousState=this.state;this.state=b;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:"<!DOCTYPE html>",bodyId:"",bodyClass:"",fullPage:!1,height:200,extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:10000,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function aA(O,M,L,K,F){var G,J;O=[];for(G in M){J=M[G];J="boolean"==typeof J?{}:"function"==typeof J?{match:J}:T(J);"$"!=G.charAt(0)&&(J.elements=G);L&&(J.featureName=L.toLowerCase());var D=J;D.elements=aq(D.elements,/\s+/)||null;D.propertiesOnly=D.propertiesOnly||!0===D.elements;var E=/\s*,\s*/,C=void 0;for(C in P){D[C]=aq(D[C],E)||null;var v=D,l=o[C],A=aq(D[o[C]],E),B=D[C],z=[],u=!0,x=void 0;A?u=!1:A={};for(x in B){"!"==x.charAt(0)&&(x=x.slice(1),z.push(x),A[x]=!0,u=!1)}for(;x=z.pop();){B[x]=B["!"+x],delete B["!"+x]}v[l]=(u?!1:A)||null}D.match=D.match||null;K.push(J);O.push(J)}M=F.elements;F=F.generic;var s;L=0;for(K=O.length;L<K;++L){G=T(O[L]);J=!0===G.classes||!0===G.styles||!0===G.attributes;D=G;C=E=void 0;for(E in P){D[E]=ai(D[E])}v=!0;for(C in o){E=o[C];l=D[E];A=[];B=void 0;for(B in l){-1<B.indexOf("*")?A.push(RegExp("^"+B.replace(/\*/g,".*")+"$")):A.push(B)}l=A;l.length&&(D[E]=l,v=!1)}D.nothingRequired=v;D.noProperties=!(D.attributes||D.classes||D.styles);if(!0===G.elements||null===G.elements){F[J?"unshift":"push"](G)}else{for(s in D=G.elements,delete G.elements,D){if(M[s]){M[s][J?"unshift":"push"](G)}else{M[s]=[G]}}}}}function aw(b,q,p,m){if(!b.match||b.match(q)){if(m||av(b,q)){if(b.propertiesOnly||(p.valid=!0),p.allAttributes||(p.allAttributes=az(b.attributes,q.attributes,p.validAttributes)),p.allStyles||(p.allStyles=az(b.styles,q.styles,p.validStyles)),!p.allClasses){b=b.classes;q=q.classes;m=p.validClasses;if(b){if(!0===b){b=!0}else{for(var n=0,f=q.length,l;n<f;++n){l=q[n],m[l]||(m[l]=b(l))}b=!1}}else{b=!1}p.allClasses=b}}}}function az(f,e,h){if(!f){return !1}if(!0===f){return !0}for(var g in e){h[g]||(h[g]=f(g))}return !1}function ay(h,d,n){if(!h.match||h.match(d)){if(h.noProperties){return !1}n.hadInvalidAttribute=ax(h.attributes,d.attributes)||n.hadInvalidAttribute;n.hadInvalidStyle=ax(h.styles,d.styles)||n.hadInvalidStyle;h=h.classes;d=d.classes;if(h){for(var k=!1,l=!0===h,m=d.length;m--;){if(l||h(d[m])){d.splice(m,1),k=!0}}h=k}else{h=!1}n.hadInvalidClass=h||n.hadInvalidClass}}function ax(f,e){if(!f){return !1}var l=!1,k=!0===f,h;for(h in e){if(k||f(h)){delete e[h],l=!0}}return l}function ar(e,d,f){if(e.disabled||e.customConfig&&!f||!d){return !1}e._.cachedChecks={};return !0}function aq(f,e){if(!f){return !1}if(!0===f){return f}if("string"==typeof f){return f=U(f),"*"==f?!0:CKEDITOR.tools.convertArrayToObject(f.split(e))}if(CKEDITOR.tools.isArray(f)){return f.length?CKEDITOR.tools.convertArrayToObject(f):!1}var l={},k=0,h;for(h in f){l[h]=f[h],k++}return k?l:!1}function av(h,e){if(h.nothingRequired){return !0}var n,m,k,l;if(k=h.requiredClasses){for(l=e.classes,n=0;n<k.length;++n){if(m=k[n],"string"==typeof m){if(-1==CKEDITOR.tools.indexOf(l,m)){return !1}}else{if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(l,m)){return !1}}}}return at(e.styles,h.requiredStyles)&&at(e.attributes,h.requiredAttributes)}function at(f,e){if(!e){return !0}for(var h=0,g;h<e.length;++h){if(g=e[h],"string"==typeof g){if(!(g in f)){return !1}}else{if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(f,g)){return !1}}}return !0}function ap(d){if(!d){return{}}d=d.split(/\s*,\s*/).sort();for(var c={};d.length;){c[d.shift()]=Q}return c}function au(k){var h,q,p,l,m={},n=1;for(k=U(k);h=k.match(I);){(q=h[2])?(p=an(q,"styles"),l=an(q,"attrs"),q=an(q,"classes")):p=l=q=null,m["$"+n++]={elements:h[1],classes:q,styles:p,attributes:l},k=k.slice(h[0].length)}return m}function an(e,d){var f=e.match(j[d]);return f?U(f[1]):null}function ak(e){var d=e.styleBackup=e.attributes.style,f=e.classBackup=e.attributes["class"];e.styles||(e.styles=CKEDITOR.tools.parseCssText(d||"",1));e.classes||(e.classes=f?f.split(/\s+/):[])}function ah(W,R,O,L){var M=0,G;L.toHtml&&(R.name=R.name.replace(N,"$1"));if(L.doCallbacks&&W.elementCallbacks){var J=W.elementCallbacks,F=0,E=J.length,B;W:for(;F<E;++F){if(B=J[F](R)){G=B;break W}}if(G){return G}}if(L.doTransform&&(G=W._.transformations[R.name])){ak(R);for(J=0;J<G.length;++J){ab(W,R,G[J])}am(R)}if(L.doFilter){W:{J=R.name;F=W._;W=F.allowedRules.elements[J];G=F.allowedRules.generic;J=F.disallowedRules.elements[J];F=F.disallowedRules.generic;E=L.skipRequired;B={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1};var e,D;if(W||G){ak(R);if(J){for(e=0,D=J.length;e<D;++e){if(!1===ay(J[e],R,B)){W=null;break W}}}if(F){for(e=0,D=F.length;e<D;++e){ay(F[e],R,B)}}if(W){for(e=0,D=W.length;e<D;++e){aw(W[e],R,B,E)}}if(G){for(e=0,D=G.length;e<D;++e){aw(G[e],R,B,E)}}W=B}else{W=null}}if(!W||!W.valid){return O.push(R),V}D=W.validAttributes;var C=W.validStyles;G=W.validClasses;var J=R.attributes,A=R.styles,F=R.classes,E=R.classBackup,q=R.styleBackup,s,z,n=[];B=[];var c=/^data-cke-/;e=!1;delete J.style;delete J["class"];delete R.classBackup;delete R.styleBackup;if(!W.allAttributes){for(s in J){D[s]||(c.test(s)?s==(z=s.replace(/^data-cke-saved-/,""))||D[z]||(delete J[s],e=!0):(delete J[s],e=!0))}}if(!W.allStyles||W.hadInvalidStyle){for(s in A){W.allStyles||C[s]?n.push(s+":"+A[s]):e=!0}n.length&&(J.style=n.sort().join("; "))}else{q&&(J.style=q)}if(!W.allClasses||W.hadInvalidClass){for(s=0;s<F.length;++s){(W.allClasses||G[F[s]])&&B.push(F[s])}B.length&&(J["class"]=B.sort().join(" "));E&&B.length<E.split(/\s+/).length&&(e=!0)}else{E&&(J["class"]=E)}e&&(M=V);if(!L.skipFinalValidation&&!ao(R)){return O.push(R),V}}L.toHtml&&(R.name=R.name.replace(i,"cke:$1"));return M}function aj(e){var d=[],f;for(f in e){-1<f.indexOf("*")&&d.push(f.replace(/\*/g,".*"))}return d.length?RegExp("^(?:"+d.join("|")+")$"):null}function am(e){var d=e.attributes,f;delete d.style;delete d["class"];if(f=CKEDITOR.tools.writeCssText(e.styles,!0)){d.style=f}e.classes.length&&(d["class"]=e.classes.sort().join(" "))}function ao(b){switch(b.name){case"a":if(!b.children.length&&!b.attributes.name){return !1}break;case"img":if(!b.attributes.src){return !1}}return !0}function ai(d){if(!d){return !1}if(!0===d){return !0}var c=aj(d);return function(a){return a in d||c&&a.match(c)}}function ag(){return new CKEDITOR.htmlParser.element("br")}function ad(b){return b.type==CKEDITOR.NODE_ELEMENT&&("br"==b.name||X.$block[b.name])}function af(w,v,u){var t=w.name;if(X.$empty[t]||!w.children.length){"hr"==t&&"br"==v?w.replaceWith(ag()):(w.parent&&u.push({check:"it",el:w.parent}),w.remove())}else{if(X.$block[t]||"tr"==t){if("br"==v){w.previous&&!ad(w.previous)&&(v=ag(),v.insertBefore(w)),w.next&&!ad(w.next)&&(v=ag(),v.insertAfter(w)),w.replaceWithChildren()}else{var t=w.children,q;w:{q=X[v];for(var r=0,s=t.length,n;r<s;++r){if(n=t[r],n.type==CKEDITOR.NODE_ELEMENT&&!q[n.name]){q=!1;break w}}q=!0}if(q){w.name=v,w.attributes={},u.push({check:"parent-down",el:w})}else{q=w.parent;for(var r=q.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==q.name,p,m,s=t.length;0<s;){n=t[--s],r&&(n.type==CKEDITOR.NODE_TEXT||n.type==CKEDITOR.NODE_ELEMENT&&X.$inline[n.name])?(p||(p=new CKEDITOR.htmlParser.element(v),p.insertAfter(w),u.push({check:"parent-down",el:p})),p.add(n,0)):(p=null,m=X[q.name]||X.span,n.insertAfter(w),q.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&n.type==CKEDITOR.NODE_ELEMENT&&!m[n.name]&&u.push({check:"el-up",el:n}))}w.remove()}}}else{t in {style:1,script:1}?w.remove():(w.parent&&u.push({check:"it",el:w.parent}),w.replaceWithChildren())}}}function ab(f,e,l){var k,h;for(k=0;k<l.length;++k){if(h=l[k],!(h.check&&!f.check(h.check,!1)||h.left&&!h.left(e))){h.right(e,ac);break}}}function ae(u,t){var s=t.getDefinition(),r=s.attributes,n=s.styles,p,q,l,m;if(u.name!=s.element){return !1}for(p in r){if("class"==p){for(s=r[p].split(/\s+/),l=u.classes.join("|");m=s.pop();){if(-1==l.indexOf(m)){return !1}}}else{if(u.attributes[p]!=r[p]){return !1}}}for(q in n){if(u.styles[q]!=n[q]){return !1}}return !0}function al(f,e){var h,g;"string"==typeof f?h=f:f instanceof CKEDITOR.style?g=f:(h=f[0],g=f[1]);return[{element:h,left:g,right:function(b,d){d.transform(b,e)}}]}function Z(b){return function(a){return ae(a,b)}}function Y(b){return function(a,d){d[b](a)}}var X=CKEDITOR.dtd,V=1,T=CKEDITOR.tools.copy,U=CKEDITOR.tools.trim,Q="cke-test",S=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2;CKEDITOR.filter=function(d){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:{}};CKEDITOR.filter.instances[this.id]=this;if(d instanceof CKEDITOR.editor){d=this.editor=d;this.customConfig=!0;var c=d.config.allowedContent;!0===c?this.disabled=!0:(c||(this.customConfig=!1),this.allow(c,"config",1),this.allow(d.config.extraAllowedContent,"extra",1),this.allow(S[d.enterMode]+" "+S[d.shiftEnterMode],"default",1),this.disallow(d.config.disallowedContent))}else{this.customConfig=!1,this.allow(d,"default",1)}};CKEDITOR.filter.instances={};CKEDITOR.filter.prototype={allow:function(a,l,k){if(!ar(this,a,k)){return !1}var g,h;if("string"==typeof a){a=au(a)}else{if(a instanceof CKEDITOR.style){if(a.toAllowedContentRules){return this.allow(a.toAllowedContentRules(this.editor),l,k)}g=a.getDefinition();a={};k=g.attributes;a[g.element]=g={styles:g.styles,requiredStyles:g.styles&&CKEDITOR.tools.objectKeys(g.styles)};k&&(k=T(k),g.classes=k["class"]?k["class"].split(/\s+/):null,g.requiredClasses=g.classes,delete k["class"],g.attributes=k,g.requiredAttributes=k&&CKEDITOR.tools.objectKeys(k))}else{if(CKEDITOR.tools.isArray(a)){for(g=0;g<a.length;++g){h=this.allow(a[g],l,k)}return h}}}aA(this,a,l,this.allowedContent,this._.allowedRules);return !0},applyTo:function(z,y,x,w){if(this.disabled){return !1}var s=this,u=[],v=this.editor&&this.editor.config.protectedSource,q,r=!1,p={doFilter:!x,doTransform:!0,doCallbacks:!0,toHtml:y};z.forEach(function(e){if(e.type==CKEDITOR.NODE_ELEMENT){if("off"==e.attributes["data-cke-filter"]){return !1}if(!y||"span"!=e.name||!~CKEDITOR.tools.objectKeys(e.attributes).join("|").indexOf("data-cke-")){if(q=ah(s,e,u,p),q&V){r=!0}else{if(q&2){return !1}}}}else{if(e.type==CKEDITOR.NODE_COMMENT&&e.value.match(/^\{cke_protected\}(?!\{C\})/)){var k;e:{var g=decodeURIComponent(e.value.replace(/^\{cke_protected\}/,""));k=[];var b,f,h;if(v){for(f=0;f<v.length;++f){if((h=g.match(v[f]))&&h[0].length==g.length){k=!0;break e}}}g=CKEDITOR.htmlParser.fragment.fromHtml(g);1==g.children.length&&(b=g.children[0]).type==CKEDITOR.NODE_ELEMENT&&ah(s,b,k,p);k=!k.length}k||u.push(e)}}},null,!0);u.length&&(r=!0);var n;z=[];w=S[w||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];for(var A;x=u.pop();){x.type==CKEDITOR.NODE_ELEMENT?af(x,w,z):x.remove()}for(;n=z.pop();){if(x=n.el,x.parent){switch(A=X[x.parent.name]||X.span,n.check){case"it":X.$removeEmpty[x.name]&&!x.children.length?af(x,w,z):ao(x)||af(x,w,z);break;case"el-up":x.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!A[x.name]&&af(x,w,z);break;case"parent-down":x.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!A[x.name]&&af(x.parent,w,z)}}}return r},checkFeature:function(b){if(this.disabled||!b){return !0}b.toFeature&&(b=b.toFeature(this.editor));return !b.requiredContent||this.check(b.requiredContent)},disable:function(){this.disabled=!0},disallow:function(a){if(!ar(this,a,!0)){return !1}"string"==typeof a&&(a=au(a));aA(this,a,null,this.disallowedContent,this._.disallowedRules);return !0},addContentForms:function(f){if(!this.disabled&&f){var e,l,k=[],h;for(e=0;e<f.length&&!h;++e){l=f[e],("string"==typeof l||l instanceof CKEDITOR.style)&&this.check(l)&&(h=l)}if(h){for(e=0;e<f.length;++e){k.push(al(f[e],h))}this.addTransformations(k)}}},addElementCallback:function(b){this.elementCallbacks||(this.elementCallbacks=[]);this.elementCallbacks.push(b)},addFeature:function(b){if(this.disabled||!b){return !0}b.toFeature&&(b=b.toFeature(this.editor));this.allow(b.allowedContent,b.name);this.addTransformations(b.contentTransformations);this.addContentForms(b.contentForms);return b.requiredContent&&(this.customConfig||this.disallowedContent.length)?this.check(b.requiredContent):!0},addTransformations:function(y){var x,w;if(!this.disabled&&y){var v=this._.transformations,s;for(s=0;s<y.length;++s){x=y[s];var t=void 0,u=void 0,q=void 0,r=void 0,p=void 0,n=void 0;w=[];for(u=0;u<x.length;++u){q=x[u],"string"==typeof q?(q=q.split(/\s*:\s*/),r=q[0],p=null,n=q[1]):(r=q.check,p=q.left,n=q.right),t||(t=q,t=t.element?t.element:r?r.match(/^([a-z0-9]+)/i)[0]:t.left.getDefinition().element),p instanceof CKEDITOR.style&&(p=Z(p)),w.push({check:r==t?null:r,left:p,right:"string"==typeof n?Y(n):n})}x=t;v[x]||(v[x]=[]);v[x].push(w)}}},check:function(u,t,s){if(this.disabled){return !0}if(CKEDITOR.tools.isArray(u)){for(var r=u.length;r--;){if(this.check(u[r],t,s)){return !0}}return !1}var p,q;if("string"==typeof u){q=u+"<"+(!1===t?"0":"1")+(s?"1":"0")+">";if(q in this._.cachedChecks){return this._.cachedChecks[q]}r=au(u).$1;p=r.styles;var m=r.classes;r.name=r.elements;r.classes=m=m?m.split(/\s*,\s*/):[];r.styles=ap(p);r.attributes=ap(r.attributes);r.children=[];m.length&&(r.attributes["class"]=m.join(" "));p&&(r.attributes.style=CKEDITOR.tools.writeCssText(r.styles));p=r}else{r=u.getDefinition(),p=r.styles,m=r.attributes||{},p?(p=T(p),m.style=CKEDITOR.tools.writeCssText(p,!0)):p={},p={name:r.element,attributes:m,classes:m["class"]?m["class"].split(/\s+/):[],styles:p,children:[]}}var m=CKEDITOR.tools.clone(p),n=[],g;if(!1!==t&&(g=this._.transformations[p.name])){for(r=0;r<g.length;++r){ab(this,p,g[r])}am(p)}ah(this,m,n,{doFilter:!0,doTransform:!1!==t,skipRequired:!s,skipFinalValidation:!s});t=0<n.length?!1:CKEDITOR.tools.objectCompare(p.attributes,m.attributes,!0)?!0:!1;"string"==typeof u&&(this._.cachedChecks[q]=t);return t},getAllowedEnterMode:function(){var d=["p","div","br"],c={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(h,e){var a=d.slice(),b;if(this.check(S[h])){return h}for(e||(a=a.reverse());b=a.pop();){if(this.check(b)){return c[b]}}return CKEDITOR.ENTER_BR}}(),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"},I=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,j={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},N=/^cke:(object|embed|param)$/,i=/^(object|embed|param)$/,ac=CKEDITOR.filter.transformationsTools={sizeToStyle:function(b){this.lengthToStyle(b,"width");this.lengthToStyle(b,"height")},sizeToAttribute:function(b){this.lengthToAttribute(b,"width");this.lengthToAttribute(b,"height")},lengthToStyle:function(f,e,h){h=h||e;if(!(h in f.styles)){var g=f.attributes[e];g&&(/^\d+$/.test(g)&&(g+="px"),f.styles[h]=g)}delete f.attributes[e]},lengthToAttribute:function(f,e,l){l=l||e;if(!(l in f.attributes)){var k=f.styles[e],h=k&&k.match(/^(\d+)(?:\.\d*)?px$/);h?f.attributes[l]=h[1]:k==Q&&(f.attributes[l]=Q)}delete f.styles[e]},alignmentToStyle:function(d){if(!("float" in d.styles)){var c=d.attributes.align;if("left"==c||"right"==c){d.styles["float"]=c}}delete d.attributes.align},alignmentToAttribute:function(d){if(!("align" in d.attributes)){var c=d.styles["float"];if("left"==c||"right"==c){d.attributes.align=c}}delete d.styles["float"]},matchesStyle:ae,transform:function(u,t){if("string"==typeof t){u.name=t}else{var s=t.getDefinition(),r=s.styles,n=s.attributes,p,q,l,m;u.name=s.element;for(p in n){if("class"==p){for(s=u.classes.join("|"),l=n[p].split(/\s+/);m=l.pop();){-1==s.indexOf(m)&&u.classes.push(m)}}else{u.attributes[p]=n[p]}}for(q in r){u.styles[q]=r[q]}}}}}(),function(){CKEDITOR.focusManager=function(b){if(b.focusManager){return b.focusManager}this.hasFocus=!1;this.currentActive=null;this._={editor:b};return this};CKEDITOR.focusManager._={blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(b){this._.timer&&clearTimeout(this._.timer);b&&(this.currentActive=b);this.hasFocus||this._.locked||((b=CKEDITOR.currentInstance)&&b.focusManager.blur(1),this.hasFocus=!0,(b=this._.editor.container)&&b.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(d){function f(){if(this.hasFocus){this.hasFocus=!1;var b=this._.editor.container;b&&b.removeClass("cke_focus");this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var c=CKEDITOR.focusManager._.blurDelay;d||!c?f.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;f.call(this)},c,this)}},add:function(g,h){var f=g.getCustomData("focusmanager");if(!f||f!=this){f&&f.remove(g);var f="focus",j="blur";h&&(CKEDITOR.env.ie?(f="focusin",j="focusout"):CKEDITOR.event.useCapture=1);var i={blur:function(){g.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(g)}};g.on(f,i.focus,this);g.on(j,i.blur,this);h&&(CKEDITOR.event.useCapture=0);g.setCustomData("focusmanager",this);g.setCustomData("focusmanager_handlers",i)}},remove:function(b){b.removeCustomData("focusmanager");var c=b.removeCustomData("focusmanager_handlers");b.removeListener("blur",c.blur);b.removeListener("focus",c.focus)}}}(),CKEDITOR.keystrokeHandler=function(b){if(b.keystrokeHandler){return b.keystrokeHandler}this.keystrokes={};this.blockedKeystrokes={};this._={editor:b};return this},function(){var d,f=function(a){a=a.data;var i=a.getKeystroke(),h=this.keystrokes[i],g=this._.editor;d=!1===g.fire("key",{keyCode:i,domEvent:a});d||(h&&(d=!1!==g.execCommand(h,{from:"keystrokeHandler"})),d||(d=!!this.blockedKeystrokes[i]));d&&a.preventDefault(!0);return !d},c=function(a){d&&(d=!1,a.data.preventDefault(!0))};CKEDITOR.keystrokeHandler.prototype={attach:function(b){b.on("keydown",f,this);if(CKEDITOR.env.gecko&&CKEDITOR.env.mac){b.on("keypress",c,this)}}}}(),function(){CKEDITOR.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es: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,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(f,g,d){f&&CKEDITOR.lang.languages[f]||(f=this.detect(g,f));var h=this;g=function(){h[f].dir=h.rtl[f]?"rtl":"ltr";d(f,h[f])};this[f]?g():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+f+".js"),g,this)},detect:function(g,h){var f=this.languages;h=h||navigator.userLanguage||navigator.language||g;var j=h.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),i=j[1],j=j[2];f[i+"-"+j]?i=i+"-"+j:f[i]||(i=null);CKEDITOR.lang.detect=i?function(){return i}:function(b){return b};return i||g}}}(),CKEDITOR.scriptLoader=function(){var b={},c={};return{load:function(w,u,r,j){var i="string"==typeof w;i&&(w=[w]);r||(r=CKEDITOR);var q=w.length,n=[],e=[],o=function(d){u&&(i?u.call(r,d):u.call(r,n,e))};if(0===q){o(!0)}else{var a=function(f,d){(d?n:e).push(f);0>=--q&&(j&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),o(d))},z=function(f,l){b[f]=1;var k=c[f];delete c[f];for(var h=0;h<k.length;h++){k[h](f,l)}},x=function(f){if(b[f]){a(f,!0)}else{var k=c[f]||(c[f]=[]);k.push(a);if(!(1<k.length)){var h=new CKEDITOR.dom.element("script");h.setAttributes({type:"text/javascript",src:f});u&&(CKEDITOR.env.ie&&11>CKEDITOR.env.version?h.$.onreadystatechange=function(){if("loaded"==h.$.readyState||"complete"==h.$.readyState){h.$.onreadystatechange=null,z(f,!0)}}:(h.$.onload=function(){setTimeout(function(){z(f,!0)},0)},h.$.onerror=function(){z(f,!1)}));h.appendTo(CKEDITOR.document.getHead())}}};j&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var y=0;y<q;y++){x(w[y])}}},queue:function(){function d(){var a;(a=e[0])&&this.load(a.scriptUrl,a.callback,CKEDITOR,0)}var e=[];return function(g,f){var a=this;e.push({scriptUrl:g,callback:function(){f&&f.apply(this,arguments);e.shift();d.call(a)}});1==e.length&&d.call(this)}}()}}(),CKEDITOR.resourceManager=function(b,c){this.basePath=b;this.fileName=c;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(d,f){if(this.registered[d]){throw'[CKEDITOR.resourceManager.add] The resource name "'+d+'" is already registered.'}var c=this.registered[d]=f||{};c.name=d;c.path=this.getPath(d);CKEDITOR.fire(d+CKEDITOR.tools.capitalize(this.fileName)+"Ready",c);return this.get(d)},get:function(b){return this.registered[b]||null},getPath:function(b){var c=this.externals[b];return CKEDITOR.getUrl(c&&c.dir||this.basePath+b+"/")},getFilePath:function(b){var c=this.externals[b];return CKEDITOR.getUrl(this.getPath(b)+(c?c.file:this.fileName+".js"))},addExternal:function(g,h,f){g=g.split(",");for(var j=0;j<g.length;j++){var i=g[j];f||(h=h.replace(/[^\/]+$/,function(b){f=b;return""}));this.externals[i]={dir:h,file:f||this.fileName+".js"}}},load:function(v,r,u){CKEDITOR.tools.isArray(v)||(v=v?[v]:[]);for(var t=this.loaded,s=this.registered,n=[],j={},q={},o=0;o<v.length;o++){var i=v[o];if(i){if(t[i]||s[i]){q[i]=this.get(i)}else{var p=this.getFilePath(i);n.push(p);p in j||(j[p]=[]);j[p].push(i)}}}CKEDITOR.scriptLoader.load(n,function(c,w){if(w.length){throw'[CKEDITOR.resourceManager.load] Resource name "'+j[w[0]].join(",")+'" was not found at "'+w[0]+'".'}for(var l=0;l<c.length;l++){for(var e=j[c[l]],f=0;f<e.length;f++){var b=e[f];q[b]=this.get(b);t[b]=1}}r.call(u,q)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(b){var c={};return function(a,h,g){var f={},e=function(d){b.call(this,d,function(j){CKEDITOR.tools.extend(f,j);var i=[],n;for(n in j){var o=j[n],m=o&&o.requires;if(!c[n]){if(o.icons){for(var k=o.icons.split(","),l=k.length;l--;){CKEDITOR.skin.addIcon(k[l],o.path+"icons/"+(CKEDITOR.env.hidpi&&o.hidpi?"hidpi/":"")+k[l]+".png")}}c[n]=1}if(m){for(m.split&&(m=m.split(",")),o=0;o<m.length;o++){f[m[o]]||i.push(m[o])}}}if(i.length){e.call(this,i)}else{for(n in f){o=f[n],o.onLoad&&!o.onLoad._called&&(!1===o.onLoad()&&delete f[n],o.onLoad._called=1)}h&&h.call(g||window,f)}},this)};e.call(this,a)}}),CKEDITOR.plugins.setLang=function(f,g,d){var h=this.get(f);f=h.langEntries||(h.langEntries={});h=h.lang||(h.lang=[]);h.split&&(h=h.split(","));-1==CKEDITOR.tools.indexOf(h,g)&&h.push(g);f[g]=d},CKEDITOR.ui=function(b){if(b.ui){return b.ui}this.items={};this.instances={};this.editor=b;this._={handlers:{}};return this},CKEDITOR.ui.prototype={add:function(f,g,d){d.name=f.toLowerCase();var h=this.items[f]={type:g,command:d.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(h,d)},get:function(b){return this.instances[b]},create:function(f){var g=this.items[f],d=g&&this._.handlers[g.type],h=g&&g.command&&this.editor.getCommand(g.command),d=d&&d.create.apply(this,g.args);this.instances[f]=d;h&&h.uiItems.push(d);d&&!d.type&&(d.type=g.type);return d},addHandler:function(b,c){this._.handlers[b]=c},space:function(b){return CKEDITOR.document.getById(this.spaceId(b))},spaceId:function(b){return this.editor.id+"_"+b}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function z(b,e,d){CKEDITOR.event.call(this);b=b&&CKEDITOR.tools.clone(b);if(void 0!==e){if(e instanceof CKEDITOR.dom.element){if(!d){throw Error("One of the element modes must be specified.")}}else{throw Error("Expect element of type CKEDITOR.dom.element.")}if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&d==CKEDITOR.ELEMENT_MODE_INLINE){throw Error("Inline element mode is not supported on IE quirks.")}if(d==CKEDITOR.ELEMENT_MODE_INLINE?!e.is(CKEDITOR.dtd.$editable)&&!e.is("textarea"):d==CKEDITOR.ELEMENT_MODE_REPLACE&&e.is(CKEDITOR.dtd.$nonBodyContent)){throw Error('The specified element mode is not supported on element: "'+e.getName()+'".')}this.element=e;this.elementMode=d;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(e.getId()||e.getNameAtt())}else{this.elementMode=CKEDITOR.ELEMENT_MODE_NONE}this._={};this.commands={};this.templates={};this.name=this.name||u();this.id=CKEDITOR.tools.getNextId();this.status="unloaded";this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config);this.ui=new CKEDITOR.ui(this);this.focusManager=new CKEDITOR.focusManager(this);this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this);this.on("readOnly",y);this.on("selectionChange",function(c){w(this,c.data.path)});this.on("activeFilterChange",function(){w(this,this.elementPath(),!0)});this.on("mode",y);this.on("instanceReady",function(){this.config.startupFocus&&this.focus()});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);CKEDITOR.tools.setTimeout(function(){n(this,b)},0,this)}function u(){do{var b="editor"+ ++B}while(CKEDITOR.instances[b]);return b}function y(){var d=this.commands,c;for(c in d){x(this,d[c])}}function x(d,c){c[c.startDisabled?"disable":d.readOnly&&!c.readOnly?"disable":c.modes[d.mode]?"enable":"disable"]()}function w(h,e,p){if(e){var m,k,l=h.commands;for(k in l){m=l[k],(p||m.contextSensitive)&&m.refresh(h,e)}}}function o(e){var d=e.config.customConfig;if(!d){return !1}var d=CKEDITOR.getUrl(d),f=A[d]||(A[d]={});f.fn?(f.fn.call(e,e.config),CKEDITOR.getUrl(e.config.customConfig)!=d&&o(e)||e.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(d,function(){f.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};o(e)});return !0}function n(d,c){d.on("customConfigLoaded",function(){if(c){if(c.on){for(var a in c.on){d.on(a,c.on[a])}}CKEDITOR.tools.extend(d.config,c,!0);delete d.config.on}a=d.config;d.readOnly=a.readOnly?!0:d.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?d.element.is("textarea")?d.element.hasAttribute("disabled")||d.element.hasAttribute("readonly"):d.element.isReadOnly():d.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?d.element.hasAttribute("disabled")||d.element.hasAttribute("readonly"):!1;d.blockless=d.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?!(d.element.is("textarea")||CKEDITOR.dtd[d.element.getName()].p):!1;d.tabIndex=a.tabIndex||d.element&&d.element.getAttribute("tabindex")||0;d.activeEnterMode=d.enterMode=d.blockless?CKEDITOR.ENTER_BR:a.enterMode;d.activeShiftEnterMode=d.shiftEnterMode=d.blockless?CKEDITOR.ENTER_BR:a.shiftEnterMode;a.skin&&(CKEDITOR.skinName=a.skin);d.fireOnce("configLoaded");d.dataProcessor=new CKEDITOR.htmlDataProcessor(d);d.filter=d.activeFilter=new CKEDITOR.filter(d);t(d)});c&&null!=c.customConfig&&(d.config.customConfig=c.customConfig);o(d)||d.fireOnce("customConfigLoaded")}function t(b){CKEDITOR.skin.loadPart("editor",function(){q(b)})}function q(b){CKEDITOR.lang.load(b.config.language,b.config.defaultLanguage,function(a,f){var e=b.config.title;b.langCode=a;b.lang=CKEDITOR.tools.prototypedCopy(f);b.title="string"==typeof e||!1===e?e:[b.lang.editor,b.name].join(", ");b.config.contentsLangDirection||(b.config.contentsLangDirection=b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?b.element.getDirection(1):b.lang.dir);b.fire("langLoaded");j(b)})}function j(b){b.getStylesSet(function(a){b.once("loaded",function(){b.fire("stylesSet",{styles:a})},null,null,1);r(b)})}function r(k){var h=k.config,v=h.plugins,s=h.extraPlugins,l=h.removePlugins;if(s){var m=RegExp("(?:^|,)(?:"+s.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),v=v.replace(m,""),v=v+(","+s)}if(l){var p=RegExp("(?:^|,)(?:"+l.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),v=v.replace(p,"")}CKEDITOR.env.air&&(v+=",adobeair");CKEDITOR.plugins.load(v.split(","),function(I){var H=[],F=[],G=[];k.plugins=I;for(var D in I){var E=I[D],C=E.lang,e=null,a=E.requires,b;CKEDITOR.tools.isArray(a)&&(a=a.join(","));if(a&&(b=a.match(p))){for(;a=b.pop();){CKEDITOR.tools.setTimeout(function(d,c){throw Error('Plugin "'+d.replace(",","")+'" cannot be removed from the plugins list, because it\'s required by "'+c+'" plugin.')},0,null,[a,D])}}C&&!k.lang[D]&&(C.split&&(C=C.split(",")),0<=CKEDITOR.tools.indexOf(C,k.langCode)?e=k.langCode:(e=k.langCode.replace(/-.*/,""),e=e!=k.langCode&&0<=CKEDITOR.tools.indexOf(C,e)?e:0<=CKEDITOR.tools.indexOf(C,"en")?"en":C[0]),E.langEntries&&E.langEntries[e]?(k.lang[D]=E.langEntries[e],e=null):G.push(CKEDITOR.getUrl(E.path+"lang/"+e+".js")));F.push(e);H.push(E)}CKEDITOR.scriptLoader.load(G,function(){for(var K=["beforeInit","init","afterInit"],g=0;g<K.length;g++){for(var J=0;J<H.length;J++){var d=H[J];0===g&&F[J]&&d.lang&&d.langEntries&&(k.lang[d.name]=d.langEntries[F[J]]);if(d[K[g]]){d[K[g]](k)}}}k.fireOnce("pluginsLoaded");h.keystrokes&&k.setKeystroke(k.config.keystrokes);for(J=0;J<k.config.blockedKeystrokes.length;J++){k.keystrokeHandler.blockedKeystrokes[k.config.blockedKeystrokes[J]]=1}k.status="loaded";k.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,k)})})}function i(){var d=this.element;if(d&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var c=this.getData();this.config.htmlEncodeOutput&&(c=CKEDITOR.tools.htmlEncode(c));d.is("textarea")?d.setValue(c):d.setHtml(c);return !0}return !1}z.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=z;var B=0,A={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(e,c){c.name=e.toLowerCase();var f=new CKEDITOR.command(this,c);this.mode&&x(this,f);return this.commands[e]=f},_attachToForm:function(){function f(a){e.updateElement();e._.required&&!h.getValue()&&!1===e.fire("required")&&a.data.preventDefault()}var e=this,h=e.element,g=new CKEDITOR.dom.element(h.$.form);h.is("textarea")&&g&&(g.on("submit",f),g.$.submit&&g.$.submit.call&&g.$.submit.apply&&(g.$.submit=CKEDITOR.tools.override(g.$.submit,function(a){return function(){f();a.apply?a.apply(this):a()}})),e.on("destroy",function(){g.removeListener("submit",f)}))},destroy:function(b){this.fire("beforeDestroy");!b&&i.call(this);this.editable(null);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(b){if(!b){b=this.getSelection();if(!b){return null}b=b.getStartElement()}return b?new CKEDITOR.dom.elementPath(b,this.editable()):null},createRange:function(){var b=this.editable();return b?new CKEDITOR.dom.range(b):null},execCommand:function(f,e){var h=this.getCommand(f),g={name:f,commandData:e,command:h};return h&&h.state!=CKEDITOR.TRISTATE_DISABLED&&!1!==this.fire("beforeCommandExec",g)&&(g.returnValue=h.exec(g.commandData),!h.async&&!1!==this.fire("afterCommandExec",g))?g.returnValue:!1},getCommand:function(b){return this.commands[b]},getData:function(d){!d&&this.fire("beforeGetData");var c=this._.data;"string"!=typeof c&&(c=(c=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?c.is("textarea")?c.getValue():c.getHtml():"");c={dataValue:c};!d&&this.fire("getData",c);return c.dataValue},getSnapshot:function(){var b=this.fire("getSnapshot");"string"!=typeof b&&(b=(b=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?b.is("textarea")?b.getValue():b.getHtml():"");return b},loadSnapshot:function(b){this.fire("loadSnapshot",b)},setData:function(f,e,l){var k=!0,h=e;e&&"object"==typeof e&&(l=e.internal,h=e.callback,k=!e.noSnapshot);!l&&k&&this.fire("saveSnapshot");if(h||!l){this.once("dataReady",function(b){!l&&k&&this.fire("saveSnapshot");h&&h.call(b.editor)})}f={dataValue:f};!l&&this.fire("setData",f);this._.data=f.dataValue;!l&&this.fire("afterSetData",f)},setReadOnly:function(b){b=null==b||b;this.readOnly!=b&&(this.readOnly=b,this.keystrokeHandler.blockedKeystrokes[8]=+b,this.editable().setReadOnly(b),this.fire("readOnly"))},insertHtml:function(e,d,f){this.fire("insertHtml",{dataValue:e,mode:d,range:f})},insertText:function(b){this.fire("insertText",b)},insertElement:function(b){this.fire("insertElement",b)},getSelectedHtml:function(e){var d=this.editable(),f=this.getSelection(),f=f&&f.getRanges();if(!d||!f||0===f.length){return null}d=d.getHtmlFromRange(f[0]);return e?d.getHtml():d},extractSelectedHtml:function(f,e){var h=this.editable(),g=this.getSelection().getRanges();if(!h||0===g.length){return null}g=g[0];h=h.extractHtmlFromRange(g,e);e||this.getSelection().selectRanges([g]);return f?h.getHtml():h},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==this.status&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return i.call(this)},setKeystroke:function(){for(var f=this.keystrokeHandler.keystrokes,e=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],l,k,h=e.length;h--;){l=e[h],k=0,CKEDITOR.tools.isArray(l)&&(k=l[1],l=l[0]),k?f[l]=k:delete f[l]}},addFeature:function(b){return this.filter.addFeature(b)},setActiveFilter:function(b){b||(b=this.filter);this.activeFilter!==b&&(this.activeFilter=b,this.fire("activeFilterChange"),b===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(b.getAllowedEnterMode(this.enterMode),b.getAllowedEnterMode(this.shiftEnterMode,!0)))},setActiveEnterMode:function(d,c){d=d?this.blockless?CKEDITOR.ENTER_BR:d:this.enterMode;c=c?this.blockless?CKEDITOR.ENTER_BR:c:this.shiftEnterMode;if(this.activeEnterMode!=d||this.activeShiftEnterMode!=c){this.activeEnterMode=d,this.activeShiftEnterMode=c,this.fire("activeEnterModeChange")}},showNotification:function(b){alert(b)}})}(),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]*?)--\>)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},function(){var b=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,c={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(r){for(var q,p,i=0,e;q=this._.htmlPartsRegex.exec(r);){p=q.index;if(p>i){if(i=r.substring(i,p),e){e.push(i)}else{this.onText(i)}}i=this._.htmlPartsRegex.lastIndex;if(p=q[1]){if(p=p.toLowerCase(),e&&CKEDITOR.dtd.$cdata[p]&&(this.onCDATA(e.join("")),e=null),!e){this.onTagClose(p);continue}}if(e){e.push(q[0])}else{if(p=q[3]){if(p=p.toLowerCase(),!/="/.test(p)){var o={},j,a=q[4];q=!!q[5];if(a){for(;j=b.exec(a);){var n=j[1].toLowerCase();j=j[2]||j[3]||j[4]||"";o[n]=!j&&c[n]?n:CKEDITOR.tools.htmlDecodeAttr(j)}}this.onTagOpen(p,o,q);!e&&CKEDITOR.dtd.$cdata[p]&&(e=[])}}else{if(p=q[2]){this.onComment(p)}}}}if(r.length>i){this.onText(r.substring(i,r.length))}}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(b){this._.output.push("<",b)},openTagClose:function(b,c){c?this._.output.push(" />"):this._.output.push(">")},attribute:function(b,c){"string"==typeof c&&(c=CKEDITOR.tools.htmlEncodeAttr(c));this._.output.push(" ",b,'="',c,'"')},closeTag:function(b){this._.output.push("</",b,">")},text:function(b){this._.output.push(b)},comment:function(b){this._.output.push("\x3c!--",b,"--\x3e")},write:function(b){this._.output.push(b)},reset:function(){this._.output=[];this._.indent=!1},getHtml:function(b){var c=this._.output.join("");b&&this.reset();return c}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var f=this.parent.children,g=CKEDITOR.tools.indexOf(f,this),d=this.previous,h=this.next;d&&(d.next=h);h&&(h.previous=d);f.splice(g,1);this.parent=null},replaceWith:function(g){var h=this.parent.children,f=CKEDITOR.tools.indexOf(h,this),j=g.previous=this.previous,i=g.next=this.next;j&&(j.next=g);i&&(i.previous=g);h[f]=g;g.parent=this.parent;this.parent=null},insertAfter:function(f){var g=f.parent.children,d=CKEDITOR.tools.indexOf(g,f),h=f.next;g.splice(d+1,0,this);this.next=f.next;this.previous=f;f.next=this;h&&(h.previous=this);this.parent=f.parent},insertBefore:function(d){var f=d.parent.children,c=CKEDITOR.tools.indexOf(f,d);f.splice(c,0,this);this.next=d;(this.previous=d.previous)&&(d.previous.next=this);d.previous=this;this.parent=d.parent},getAscendant:function(d){var f="function"==typeof d?d:"string"==typeof d?function(a){return a.name==d}:function(a){return a.name in d},c=this.parent;for(;c&&c.type==CKEDITOR.NODE_ELEMENT;){if(f(c)){return c}c=c.parent}return null},wrapWith:function(b){this.replaceWith(b);b.add(this);return b},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(b){return b||{}}}}(),"use strict",CKEDITOR.htmlParser.comment=function(b){this.value=b;this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(d,f){var c=this.value;if(!(c=d.onComment(f,c,this))){return this.remove(),!1}if("string"!=typeof c){return this.replaceWith(c),!1}this.value=c;return !0},writeHtml:function(b,c){c&&this.filter(c);b.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(b){this.value=b;this._={isBlockLike:!1}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(b,c){if(!(this.value=b.onText(c,this.value,this))){return this.remove(),!1}},writeHtml:function(b,c){c&&this.filter(c);b.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(b){this.value=b};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(b){b.write(this.value)}})}(),"use strict",CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function g(b){return b.attributes["data-cke-survive"]?!1:"a"==b.name&&b.attributes.href||CKEDITOR.dtd.$removeEmpty[b.name]}var h=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),f={ol:1,ul:1},j=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),i={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(o,e,A){function r(l){var k;if(0<c.length){for(var s=0;s<c.length;s++){var q=c[s],m=q.name,n=CKEDITOR.dtd[m],p=D.name&&CKEDITOR.dtd[D.name];p&&!p[m]||l&&n&&!n[l]&&CKEDITOR.dtd[l]?m==D.name&&(b(D,D.parent,1),s--):(k||(d(),k=1),q=q.clone(),q.parent=D,D=q,c.splice(s,1),s--)}}}function d(){for(;F.length;){b(F.shift(),D)}}function y(l){if(l._.isBlockLike&&"pre"!=l.name&&"textarea"!=l.name){var k=l.children.length,n=l.children[k-1],m;n&&n.type==CKEDITOR.NODE_TEXT&&((m=CKEDITOR.tools.rtrim(n.value))?n.value=m:l.children.length=k-1)}}function b(k,n,m){n=n||D||a;var l=D;void 0===k.previous&&(H(n,k)&&(D=n,G.onTagOpen(A,{}),k.returnPoint=n=D),y(k),g(k)&&!k.children.length||n.add(k),"pre"==k.name&&(C=!1),"textarea"==k.name&&(B=!1));k.returnPoint?(D=k.returnPoint,delete k.returnPoint):D=m?n:l}function H(l,k){if((l==a||"body"==l.name)&&A&&(!l.name||CKEDITOR.dtd[l.name][A])){var n,m;return(n=k.attributes&&(m=k.attributes["data-cke-real-element-type"])?m:k.name)&&n in CKEDITOR.dtd.$inline&&!(n in CKEDITOR.dtd.head)&&!k.isOrphan||k.type==CKEDITOR.NODE_TEXT}}function E(l,k){return l in CKEDITOR.dtd.$listItem||l in CKEDITOR.dtd.$tableContent?l==k||"dt"==l&&"dd"==k||"dd"==l&&"dt"==k:!1}var G=new CKEDITOR.htmlParser,a=e instanceof CKEDITOR.htmlParser.element?e:"string"==typeof e?new CKEDITOR.htmlParser.element(e):new CKEDITOR.htmlParser.fragment,c=[],F=[],D=a,B="textarea"==a.name,C="pre"==a.name;G.onTagOpen=function(p,m,n,l){m=new CKEDITOR.htmlParser.element(p,m);m.isUnknown&&n&&(m.isEmpty=!0);m.isOptionalClose=l;if(g(m)){c.push(m)}else{if("pre"==p){C=!0}else{if("br"==p&&C){D.add(new CKEDITOR.htmlParser.text("\n"));return}"textarea"==p&&(B=!0)}if("br"==p){F.push(m)}else{for(;!(l=(n=D.name)?CKEDITOR.dtd[n]||(D._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):j,m.isUnknown||D.isUnknown||l[p]);){if(D.isOptionalClose){G.onTagClose(n)}else{if(p in f&&n in f){n=D.children,(n=n[n.length-1])&&"li"==n.name||b(n=new CKEDITOR.htmlParser.element("li"),D),!m.returnPoint&&(m.returnPoint=D),D=n}else{if(p in CKEDITOR.dtd.$listItem&&!E(p,n)){G.onTagOpen("li"==p?"ul":"dl",{},0,1)}else{if(n in h&&!E(p,n)){!m.returnPoint&&(m.returnPoint=D),D=D.parent}else{if(n in CKEDITOR.dtd.$inline&&c.unshift(D),D.parent){b(D,D.parent,1)}else{m.isOrphan=1;break}}}}}}r(p);d();m.parent=D;m.isEmpty?b(m):D=m}}};G.onTagClose=function(l){for(var k=c.length-1;0<=k;k--){if(l==c[k].name){c.splice(k,1);return}}for(var q=[],p=[],m=D;m!=a&&m.name!=l;){m._.isBlockLike||p.unshift(m),q.push(m),m=m.returnPoint||m.parent}if(m!=a){for(k=0;k<q.length;k++){var n=q[k];b(n,n.parent)}D=m;m._.isBlockLike&&d();b(m,m.parent);m==D&&(D=D.parent);c=c.concat(p)}"body"==l&&(A=!1)};G.onText=function(l){if(!(D._.hasInlineStarted&&!F.length||C||B)&&(l=CKEDITOR.tools.ltrim(l),0===l.length)){return}var k=D.name,m=k?CKEDITOR.dtd[k]||(D._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):j;if(!B&&!m["#"]&&k in h){G.onTagOpen(i[k]||""),G.onText(l)}else{d();r();C||B||(l=l.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));l=new CKEDITOR.htmlParser.text(l);if(H(D,l)){this.onTagOpen(A,{},0,1)}D.add(l)}};G.onCDATA=function(k){D.add(new CKEDITOR.htmlParser.cdata(k))};G.onComment=function(k){d();r();D.add(new CKEDITOR.htmlParser.comment(k))};G.parse(o);for(d();D!=a;){b(D,D.parent,1)}y(a);return a};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(e,d){isNaN(d)&&(d=this.children.length);var k=0<d?this.children[d-1]:null;if(k){if(e._.isBlockLike&&k.type==CKEDITOR.NODE_TEXT&&(k.value=CKEDITOR.tools.rtrim(k.value),0===k.value.length)){this.children.pop();this.add(e);return}k.next=e}e.previous=k;e.parent=this;this.children.splice(d,0,e);this._.hasInlineStarted||(this._.hasInlineStarted=e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&!e._.isBlockLike)},filter:function(d,c){c=this.getFilterContext(c);d.onRoot(c,this);this.filterChildren(d,!1,c)},filterChildren:function(e,d,k){if(this.childrenFilteredBy!=e.id){k=this.getFilterContext(k);if(d&&!this.parent){e.onRoot(k,this)}this.childrenFilteredBy=e.id;for(d=0;d<this.children.length;d++){!1===this.children[d].filter(e,k)&&d--}}},writeHtml:function(d,c){c&&this.filter(c);this.writeChildrenHtml(d)},writeChildrenHtml:function(k,e,m){var l=this.getFilterContext();if(m&&!this.parent&&e){e.onRoot(l,this)}e&&this.filterChildren(e,!1,l);e=0;m=this.children;for(l=m.length;e<l;e++){m[e].writeHtml(k)}},forEach:function(l,k,o){if(!(o||k&&this.type!=k)){var n=l(this)}if(!1!==n){o=this.children;for(var m=0;m<o.length;m++){n=o[m],n.type==CKEDITOR.NODE_ELEMENT?n.forEach(l,k):k&&n.type!=k||l(n)}}},getFilterContext:function(b){return b||{}}}}(),"use strict",function(){function b(){this.rules=[]}function c(a,k,j,i){var g,h;for(g in k){(h=a[g])||(h=a[g]=new b),h.add(k[g],j,i)}}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(a){this.id=CKEDITOR.tools.getNextNumber();this.elementNameRules=new b;this.attributeNameRules=new b;this.elementsRules={};this.attributesRules={};this.textRules=new b;this.commentRules=new b;this.rootRules=new b;a&&this.addRules(a,10)},proto:{addRules:function(e,g){var f;"number"==typeof g?f=g:g&&"priority" in g&&(f=g.priority);"number"!=typeof f&&(f=10);"object"!=typeof g&&(g={});e.elementNames&&this.elementNameRules.addMany(e.elementNames,f,g);e.attributeNames&&this.attributeNameRules.addMany(e.attributeNames,f,g);e.elements&&c(this.elementsRules,e.elements,f,g);e.attributes&&c(this.attributesRules,e.attributes,f,g);e.text&&this.textRules.add(e.text,f,g);e.comment&&this.commentRules.add(e.comment,f,g);e.root&&this.rootRules.add(e.root,f,g)},applyTo:function(d){d.filter(this)},onElementName:function(d,e){return this.elementNameRules.execOnName(d,e)},onAttributeName:function(d,e){return this.attributeNameRules.execOnName(d,e)},onText:function(e,g,f){return this.textRules.exec(e,g,f)},onComment:function(e,g,f){return this.commentRules.exec(e,g,f)},onRoot:function(d,e){return this.rootRules.exec(d,e)},onElement:function(g,j){for(var i=[this.elementsRules["^"],this.elementsRules[j.name],this.elementsRules.$],h,f=0;3>f;f++){if(h=i[f]){h=h.exec(g,j,this);if(!1===h){return null}if(h&&h!=j){return this.onNode(g,h)}if(j.parent&&!j.name){break}}}return j},onNode:function(e,g){var f=g.type;return f==CKEDITOR.NODE_ELEMENT?this.onElement(e,g):f==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(e,g.value)):f==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(e,g.value)):null},onAttribute:function(f,i,h,g){return(h=this.attributesRules[h])?h.exec(f,g,i,this):g}}});CKEDITOR.htmlParser.filterRulesGroup=b;b.prototype={add:function(e,g,f){this.rules.splice(this.findIndex(g),0,{value:e,priority:g,options:f})},addMany:function(h,m,k){for(var j=[this.findIndex(m),0],g=0,i=h.length;g<i;g++){j.push({value:h[g],priority:m,options:k})}this.rules.splice.apply(this.rules,j)},findIndex:function(e){for(var g=this.rules,f=g.length-1;0<=f&&e<g[f].priority;){f--}return f+1},exec:function(u,t){var s=t instanceof CKEDITOR.htmlParser.node||t instanceof CKEDITOR.htmlParser.fragment,r=Array.prototype.slice.call(arguments,1),k=this.rules,q=k.length,n,j,o,i;for(i=0;i<q;i++){if(s&&(n=t.type,j=t.name),o=k[i],!(u.nonEditable&&!o.options.applyToAll||u.nestedEditable&&o.options.excludeNestedEditable)){o=o.value.apply(null,r);if(!1===o||s&&o&&(o.name!=j||o.type!=n)){return o}null!=o&&(r[0]=t=o)}}return t},execOnName:function(h,m){for(var k=0,j=this.rules,g=j.length,i;m&&k<g;k++){i=j[k],h.nonEditable&&!i.options.applyToAll||h.nestedEditable&&i.options.excludeNestedEditable||(m=m.replace(i.value[0],i.value[1]))}return m}}}(),function(){function ap(r,k){function l(e){return e||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text("\u00a0"):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function n(e,f){return function(t){if(t.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var v=[],a=ao(t),h,u;if(a){for(d(a,1)&&v.push(a);a;){ah(a)&&(h=an(a))&&d(h)&&((u=an(h))&&!ah(u)?v.push(h):(l(q).insertAfter(h),h.remove())),a=a.previous}}for(a=0;a<v.length;a++){v[a].remove()}if(v=!e||!1!==("function"==typeof f?f(t):f)){q||CKEDITOR.env.needsBrFiller||t.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT?q||CKEDITOR.env.needsBrFiller||!(7<document.documentMode||t.name in CKEDITOR.dtd.tr||t.name in CKEDITOR.dtd.$listItem)?(v=ao(t),v=!v||"form"==t.name&&"input"==v.name):v=!1:v=!1}v&&t.add(l(e))}}}function d(f,e){if((!q||CKEDITOR.env.needsBrFiller)&&f.type==CKEDITOR.NODE_ELEMENT&&"br"==f.name&&!f.attributes["data-cke-eol"]){return !0}var g;return f.type==CKEDITOR.NODE_TEXT&&(g=f.value.match(ae))&&(g.index&&((new CKEDITOR.htmlParser.text(f.value.substring(0,g.index))).insertBefore(f),f.value=g[0]),!CKEDITOR.env.needsBrFiller&&q&&(!e||f.parent.name in b)||!q&&((g=f.previous)&&"br"==g.name||!g||ah(g)))?!0:!1}var c={elements:{}},q="html"==k,b=CKEDITOR.tools.extend({},M),s;for(s in b){"#" in P[s]||delete b[s]}for(s in b){c.elements[s]=n(q,r.config.fillEmptyBlocks)}c.root=n(q,!1);c.elements.br=function(e){return function(a){if(a.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var f=a.attributes;if("data-cke-bogus" in f||"data-cke-eol" in f){delete f["data-cke-bogus"]}else{for(f=a.next;f&&am(f);){f=f.next}var h=an(a);!f&&ah(a.parent)?ag(a.parent,l(e)):ah(f)&&h&&!ah(h)&&l(e).insertBefore(f)}}}}(q);return c}function al(d,c){return d!=CKEDITOR.ENTER_BR&&!1!==c?d==CKEDITOR.ENTER_DIV?"div":"p":!1}function ao(b){for(b=b.children[b.children.length-1];b&&am(b);){b=b.previous}return b}function an(b){for(b=b.previous;b&&am(b);){b=b.previous}return b}function am(b){return b.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(b.value)||b.type==CKEDITOR.NODE_ELEMENT&&b.attributes["data-cke-bookmark"]}function ah(b){return b&&(b.type==CKEDITOR.NODE_ELEMENT&&b.name in M||b.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function ag(e,d){var f=e.children[e.children.length-1];e.children.push(d);d.parent=e;f&&(f.next=d,d.previous=f)}function ak(b){b=b.attributes;"false"!=b.contenteditable&&(b["data-cke-editable"]=b.contenteditable?"true":1);b.contenteditable="false"}function ai(b){b=b.attributes;switch(b["data-cke-editable"]){case"true":b.contenteditable="true";break;case"1":delete b.contenteditable}}function af(b){return b.replace(Y,function(e,d,f){return"<"+d+f.replace(W,function(g,c){return U.test(c)&&-1==f.indexOf("data-cke-saved-"+c)?" data-cke-saved-"+g+" data-cke-"+CKEDITOR.rnd+"-"+g:g})+">"})}function aj(d,c){return d.replace(c,function(f,e,g){0===f.indexOf("<textarea")&&(f=e+R(g).replace(/</g,"<").replace(/>/g,">")+"</textarea>");return"<cke:encoded>"+encodeURIComponent(f)+"</cke:encoded>"})}function ad(b){return b.replace(I,function(d,c){return decodeURIComponent(c)})}function X(b){return b.replace(/<\!--(?!{cke_protected})[\s\S]+?--\>/g,function(c){return"\x3c!--"+T+"{C}"+encodeURIComponent(c).replace(/--/g,"%2D%2D")+"--\x3e"})}function R(b){return b.replace(/<\!--\{cke_protected\}\{C\}([\s\S]+?)--\>/g,function(d,c){return decodeURIComponent(c)})}function V(e,d){var f=d._.dataStore;return e.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(g,c){return decodeURIComponent(c)}).replace(/\{cke_protected_(\d+)\}/g,function(g,c){return f&&f[c]||""})}function ab(k,h){var q=[],p=h.config.protectedSource,l=h._.dataStore||(h._.dataStore={id:1}),m=/<\!--\{cke_temp(comment)?\}(\d*?)--\>/g,p=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(p);k=k.replace(/<\!--[\s\S]*?--\>/g,function(b){return"\x3c!--{cke_tempcomment}"+(q.push(b)-1)+"--\x3e"});for(var n=0;n<p.length;n++){k=k.replace(p[n],function(b){b=b.replace(m,function(e,c,f){return q[f]});return/cke_temp(comment)?/.test(b)?b:"\x3c!--{cke_temp}"+(q.push(b)-1)+"--\x3e"})}k=k.replace(m,function(e,c,f){return"\x3c!--"+T+(c?"{C}":"")+encodeURIComponent(q[f]).replace(/--/g,"%2D%2D")+"--\x3e"});k=k.replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,function(b){return b.replace(/<\!--\{cke_protected\}([^>]*)--\>/g,function(d,c){l[l.id]=decodeURIComponent(c);return"{cke_protected_"+l.id+++"}"})});return k=k.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(b,r,f,e){return"<"+r+f+">"+V(R(e),h)+"</"+r+">"})}CKEDITOR.htmlDataProcessor=function(a){var h,g,e=this;this.editor=a;this.dataFilter=h=new CKEDITOR.htmlParser.filter;this.htmlFilter=g=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;h.addRules(ac);h.addRules(L,{applyToAll:!0});h.addRules(ap(a,"data"),{applyToAll:!0});g.addRules(Z);g.addRules(aa,{applyToAll:!0});g.addRules(ap(a,"html"),{applyToAll:!0});a.on("toHtml",function(b){b=b.data;var m=b.dataValue,l,m=ab(m,a),m=aj(m,S),m=af(m),m=aj(m,Q),m=m.replace(N,"$1cke:$2"),m=m.replace(i,"<cke:$1$2></cke:$1>"),m=m.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),m=m.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");l=b.context||a.editable().getName();var k;CKEDITOR.env.ie&&9>CKEDITOR.env.version&&"pre"==l&&(l="div",m="<pre>"+m+"</pre>",k=1);l=a.document.createElement(l);l.setHtml("a"+m);m=l.getHtml().substr(1);m=m.replace(RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");k&&(m=m.replace(/^<pre>|<\/pre>$/gi,""));m=m.replace(j,"$1$2");m=ad(m);m=R(m);l=!1===b.fixForBody?!1:al(b.enterMode,a.config.autoParagraph);m=CKEDITOR.htmlParser.fragment.fromHtml(m,b.context,l);l&&(k=m,!k.children.length&&CKEDITOR.dtd[k.name][l]&&(l=new CKEDITOR.htmlParser.element(l),k.add(l)));b.dataValue=m},null,null,5);a.on("toHtml",function(b){b.data.filter.applyTo(b.data.dataValue,!0,b.data.dontFilter,b.data.enterMode)&&a.fire("dataFiltered")},null,null,6);a.on("toHtml",function(b){b.data.dataValue.filterChildren(e.dataFilter,!0)},null,null,10);a.on("toHtml",function(f){f=f.data;var d=f.dataValue,k=new CKEDITOR.htmlParser.basicWriter;d.writeChildrenHtml(k);d=k.getHtml(!0);f.dataValue=X(d)},null,null,15);a.on("toDataFormat",function(b){var d=b.data.dataValue;b.data.enterMode!=CKEDITOR.ENTER_BR&&(d=d.replace(/^<br *\/?>/i,""));b.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(d,b.data.context,al(b.data.enterMode,a.config.autoParagraph))},null,null,5);a.on("toDataFormat",function(b){b.data.dataValue.filterChildren(e.htmlFilter,!0)},null,null,10);a.on("toDataFormat",function(b){b.data.filter.applyTo(b.data.dataValue,!1,!0)},null,null,11);a.on("toDataFormat",function(b){var k=b.data.dataValue,f=e.writer;f.reset();k.writeChildrenHtml(f);k=f.getHtml(!0);k=R(k);k=V(k,a);b.data.dataValue=k},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(u,t,s,r){var n=this.editor,p,q,l,m;t&&"object"==typeof t?(p=t.context,s=t.fixForBody,r=t.dontFilter,q=t.filter,l=t.enterMode,m=t.protectedWhitespaces):p=t;!p&&null!==p&&(p=n.editable().getName());return n.fire("toHtml",{dataValue:u,context:p,fixForBody:s,dontFilter:r,filter:q||n.filter,enterMode:l||n.enterMode,protectedWhitespaces:m}).dataValue},toDataFormat:function(f,e){var l,k,h;e&&(l=e.context,k=e.filter,h=e.enterMode);!l&&null!==l&&(l=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:f,filter:k||this.editor.filter,context:l,enterMode:h||this.editor.enterMode}).dataValue}};var ae=/(?: |\xa0)$/,T="{cke_protected}",P=CKEDITOR.dtd,o="caption colgroup col thead tfoot tbody".split(" "),M=CKEDITOR.tools.extend({},P.$blockLimit,P.$block),ac={elements:{input:ak,textarea:ak}},L={attributeNames:[[/^on/,"data-cke-pa-on"],[/^data-cke-expando$/,""]]},Z={elements:{embed:function(e){var d=e.parent;if(d&&"object"==d.name){var f=d.attributes.width,d=d.attributes.height;f&&(e.attributes.width=f);d&&(e.attributes.height=d)}},a:function(b){if(!b.children.length&&!b.attributes.name&&!b.attributes["data-cke-saved-name"]){return !1}}}},aa={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(f){var e=f.attributes;if(e){if(e["data-cke-temp"]){return !1}for(var l=["name","href","src"],k,h=0;h<l.length;h++){k="data-cke-saved-"+l[h],k in e&&delete e[l[h]]}}return f},table:function(b){b.children.slice(0).sort(function(f,e){var h,g;f.type==CKEDITOR.NODE_ELEMENT&&e.type==f.type&&(h=CKEDITOR.tools.indexOf(o,f.name),g=CKEDITOR.tools.indexOf(o,e.name));-1<h&&-1<g&&h!=g||(h=f.parent?f.getIndex():-1,g=e.parent?e.getIndex():-1);return h>g?1:-1})},param:function(b){b.children=[];b.isEmpty=!0;return b},span:function(b){"Apple-style-span"==b.attributes["class"]&&delete b.name},html:function(b){delete b.attributes.contenteditable;delete b.attributes["class"]},body:function(b){delete b.attributes.spellcheck;delete b.attributes.contenteditable},style:function(d){var c=d.children[0];c&&c.value&&(c.value=CKEDITOR.tools.trim(c.value));d.attributes.type||(d.attributes.type="text/css")},title:function(d){var c=d.children[0];!c&&ag(d,c=new CKEDITOR.htmlParser.text);c.value=d.attributes["data-cke-title"]||""},input:ai,textarea:ai},attributes:{"class":function(b){return CKEDITOR.tools.ltrim(b.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};CKEDITOR.env.ie&&(aa.attributes.style=function(b){return b.replace(/(^|;)([^\:]+)/g,function(c){return c.toLowerCase()})});var Y=/<(a|area|img|input|source)\b([^>]*)>/gi,W=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,U=/^(href|src|name)$/i,Q=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,S=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,I=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,N=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,j=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,i=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),"use strict",CKEDITOR.htmlParser.element=function(f,g){this.name=f;this.attributes=g||{};this.children=[];var d=f||"",h=d.match(/^cke:(.*)/);h&&(d=h[1]);d=!!(CKEDITOR.dtd.$nonBodyContent[d]||CKEDITOR.dtd.$block[d]||CKEDITOR.dtd.$listItem[d]||CKEDITOR.dtd.$tableContent[d]||CKEDITOR.dtd.$nonEditable[d]||"br"==d);this.isEmpty=!!CKEDITOR.dtd.$empty[f];this.isUnknown=!CKEDITOR.dtd[f];this._={isBlockLike:d,hasInlineStarted:this.isEmpty||!d}},CKEDITOR.htmlParser.cssStyle=function(b){var c={};((b instanceof CKEDITOR.htmlParser.element?b.attributes.style:b)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,g,f){"font-family"==g&&(f=f.replace(/["']/g,""));c[g.toLowerCase()]=f});return{rules:c,populate:function(d){var e=this.toString();e&&(d instanceof CKEDITOR.dom.element?d.setAttribute("style",e):d instanceof CKEDITOR.htmlParser.element?d.attributes.style=e:d.style=e)},toString:function(){var d=[],e;for(e in c){c[e]&&d.push(e,":",c[e],";")}return d.join("")}}},function(){function d(b){return function(a){return a.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof b?a.name==b:a.name in b)}}var f=function(g,e){g=g[0];e=e[0];return g<e?-1:g>e?1:0},c=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:c.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(k,i){var p=this,j,o;i=p.getFilterContext(i);if(i.off){return !0}if(!p.parent){k.onRoot(i,p)}for(;;){j=p.name;if(!(o=k.onElementName(i,j))){return this.remove(),!1}p.name=o;if(!(p=k.onElement(i,p))){return this.remove(),!1}if(p!==this){return this.replaceWith(p),!1}if(p.name==j){break}if(p.type!=CKEDITOR.NODE_ELEMENT){return this.replaceWith(p),!1}if(!p.name){return this.replaceWithChildren(),!1}}j=p.attributes;var n,g;for(n in j){g=n;for(o=j[n];;){if(g=k.onAttributeName(i,n)){if(g!=n){delete j[n],n=g}else{break}}else{delete j[n];break}}g&&(!1===(o=k.onAttribute(i,p,g,o))?delete j[g]:j[g]=o)}p.isEmpty||this.filterChildren(k,!1,i);return !0},filterChildren:c.filterChildren,writeHtml:function(j,g){g&&this.filter(g);var n=this.name,i=[],p=this.attributes,o,e;j.openTag(n,p);for(o in p){i.push([o,p[o]])}j.sortAttributes&&i.sort(f);o=0;for(e=i.length;o<e;o++){p=i[o],j.attribute(p[0],p[1])}j.openTagClose(n,this.isEmpty);this.writeChildrenHtml(j);this.isEmpty||j.closeTag(n)},writeChildrenHtml:c.writeChildrenHtml,replaceWithChildren:function(){for(var g=this.children,e=g.length;e;){g[--e].insertAfter(this)}this.remove()},forEach:c.forEach,getFirst:function(a){if(!a){return this.children.length?this.children[0]:null}"function"!=typeof a&&(a=d(a));for(var h=0,g=this.children.length;h<g;++h){if(a(this.children[h])){return this.children[h]}}return null},getHtml:function(){var b=new CKEDITOR.htmlParser.basicWriter;this.writeChildrenHtml(b);return b.getHtml()},setHtml:function(h){h=this.children=CKEDITOR.htmlParser.fragment.fromHtml(h).children;for(var g=0,i=h.length;g<i;++g){h[g].parent=this}},getOuterHtml:function(){var b=new CKEDITOR.htmlParser.basicWriter;this.writeHtml(b);return b.getHtml()},split:function(i){for(var g=this.children.splice(i,this.children.length-i),j=this.clone(),h=0;h<g.length;++h){g[h].parent=j}j.children=g;g[0]&&(g[0].previous=null);0<i&&(this.children[i-1].next=null);this.parent.add(j,this.getIndex()+1);return j},addClass:function(g){if(!this.hasClass(g)){var e=this.attributes["class"]||"";this.attributes["class"]=e+(e?" ":"")+g}},removeClass:function(g){var e=this.attributes["class"];e&&((e=CKEDITOR.tools.trim(e.replace(RegExp("(?:\\s+|^)"+g+"(?:\\s+|$)")," ")))?this.attributes["class"]=e:delete this.attributes["class"])},hasClass:function(g){var e=this.attributes["class"];return e?RegExp("(?:^|\\s)"+g+"(?=\\s|$)").test(e):!1},getFilterContext:function(h){var g=[];h||(h={off:!1,nonEditable:!1,nestedEditable:!1});!h.off&&"off"==this.attributes["data-cke-processor"]&&g.push("off",!0);h.nonEditable||"false"!=this.attributes.contenteditable?h.nonEditable&&!h.nestedEditable&&"true"==this.attributes.contenteditable&&g.push("nestedEditable",!0):g.push("nonEditable",!0);if(g.length){h=CKEDITOR.tools.copy(h);for(var i=0;i<g.length;i+=2){h[g[i]]=g[i+1]}}return h}},!0)}(),function(){var g={},h=/{([^}]+)}/g,f=/([\\'])/g,j=/\n/g,i=/\r/g;CKEDITOR.template=function(b){if(g[b]){this.output=g[b]}else{var a=b.replace(f,"\\$1").replace(j,"\\n").replace(i,"\\r").replace(h,function(d,c){return"',data['"+c+"']==undefined?'{"+c+"}':data['"+c+"'],'"});this.output=g[b]=Function("data","buffer","return buffer?buffer.push('"+a+"'):['"+a+"'].join('');")}}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(b){CKEDITOR.instances[b.name]=b;b.on("focus",function(){CKEDITOR.currentInstance!=b&&(CKEDITOR.currentInstance=b,CKEDITOR.fire("currentInstance"))});b.on("blur",function(){CKEDITOR.currentInstance==b&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))});CKEDITOR.fire("instance",null,b)},CKEDITOR.remove=function(b){delete CKEDITOR.instances[b.name]},function(){var b={};CKEDITOR.addTemplate=function(d,a){var f=b[d];if(f){return f}f={name:d,source:a};CKEDITOR.fire("template",f);return b[d]=new CKEDITOR.template(f.source)};CKEDITOR.getTemplate=function(a){return b[a]}}(),function(){var b=[];CKEDITOR.addCss=function(a){b.push(a)};CKEDITOR.getCss=function(){return b.join("\n")}}(),CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&CKEDITOR.fire("reset")}),CKEDITOR.TRISTATE_ON=1,CKEDITOR.TRISTATE_OFF=2,CKEDITOR.TRISTATE_DISABLED=0,function(){CKEDITOR.inline=function(f,g){if(!CKEDITOR.env.isCompatible){return null}f=CKEDITOR.dom.element.get(f);if(f.getEditor()){throw'The editor instance "'+f.getEditor().name+'" is already attached to the provided element.'}var d=new CKEDITOR.editor(g,f,CKEDITOR.ELEMENT_MODE_INLINE),h=f.is("textarea")?f:null;h?(d.setData(h.getValue(),null,!0),f=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+!!d.readOnly+'" class="cke_textarea_inline">'+h.getValue()+"</div>",CKEDITOR.document),f.insertAfter(h),h.hide(),h.$.form&&d._attachToForm()):d.setData(f.getHtml(),null,!0);d.on("loaded",function(){d.fire("uiReady");d.editable(f);d.container=f;d.ui.contentsElement=f;d.setData(d.getData(1));d.resetDirty();d.fire("contentDom");d.mode="wysiwyg";d.fire("mode");d.status="ready";d.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,d)},null,null,10000);d.on("destroy",function(){h&&(d.container.clearCustomData(),d.container.remove(),h.show());d.element.clearCustomData();delete d.element});return d};CKEDITOR.inlineAll=function(){var g,i,f;for(f in CKEDITOR.dtd.$editable){for(var l=CKEDITOR.document.getElementsByTag(f),j=0,h=l.count();j<h;j++){g=l.getItem(j),"true"==g.getAttribute("contenteditable")&&(i={element:g,config:{}},!1!==CKEDITOR.fire("inline",i)&&CKEDITOR.inline(g,i.config))}}};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",function(){function d(e,i,g,b){if(!CKEDITOR.env.isCompatible){return null}e=CKEDITOR.dom.element.get(e);if(e.getEditor()){throw'The editor instance "'+e.getEditor().name+'" is already attached to the provided element.'}var h=new CKEDITOR.editor(i,e,b);b==CKEDITOR.ELEMENT_MODE_REPLACE&&(e.setStyle("visibility","hidden"),h._.required=e.hasAttribute("required"),e.removeAttribute("required"));g&&h.setData(g,null,!0);h.on("loaded",function(){c(h);b==CKEDITOR.ELEMENT_MODE_REPLACE&&h.config.autoUpdateElement&&e.$.form&&h._attachToForm();h.setMode(h.config.startupMode,function(){h.resetDirty();h.status="ready";h.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,h)})});h.on("destroy",f);return h}function f(){var g=this.container,e=this.element;g&&(g.clearCustomData(),g.remove());e&&(e.clearCustomData(),this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(e.show(),this._.required&&e.setAttribute("required","required")),delete this.element)}function c(k){var i=k.name,p=k.element,j=k.elementMode,o=k.fire("uiSpace",{space:"top",html:""}).html,n=k.fire("uiSpace",{space:"bottom",html:""}).html,g=new CKEDITOR.template('<{outerEl} id="cke_{name}" class="{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" lang="{langCode}" role="application"'+(k.title?' aria-labelledby="cke_{name}_arialbl"':"")+">"+(k.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':"")+'<{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation"></{outerEl}>{bottomHtml}</{outerEl}></{outerEl}>'),i=CKEDITOR.dom.element.createFromHtml(g.output({id:k.id,name:i,langDir:k.lang.dir,langCode:k.langCode,voiceLabel:k.title,topHtml:o?'<span id="'+k.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+o+"</span>":"",contentId:k.ui.spaceId("contents"),bottomHtml:n?'<span id="'+k.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+n+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));j==CKEDITOR.ELEMENT_MODE_REPLACE?(p.hide(),i.insertAfter(p)):p.append(i);k.container=i;k.ui.contentsElement=k.ui.space("contents");o&&k.ui.space("top").unselectable();n&&k.ui.space("bottom").unselectable();p=k.config.width;j=k.config.height;p&&i.setStyle("width",CKEDITOR.tools.cssLength(p));j&&k.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(j));i.disableContextMenu();CKEDITOR.env.webkit&&i.on("focus",function(){k.focus()});k.fireOnce("uiReady")}CKEDITOR.replace=function(a,e){return d(a,e,null,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.appendTo=function(a,h,g){return d(a,h,g,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var i=document.getElementsByTagName("textarea"),g=0;g<i.length;g++){var j=null,h=i[g];if(h.name||h.id){if("string"==typeof arguments[0]){if(!RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(h.className)){continue}}else{if("function"==typeof arguments[0]&&(j={},!1===arguments[0](h,j))){continue}}this.replace(h,j)}}};CKEDITOR.editor.prototype.addMode=function(g,e){(this._.modes||(this._.modes={}))[g]=e};CKEDITOR.editor.prototype.setMode=function(k,i){var p=this,j=this._.modes;if(k!=p.mode&&j&&j[k]){p.fire("beforeSetMode",k);if(p.mode){var o=p.checkDirty(),j=p._.previousModeData,n,g=0;p.fire("beforeModeUnload");p.editable(0);p._.previousMode=p.mode;p._.previousModeData=n=p.getData(1);"source"==p.mode&&j==n&&(p.fire("lockSnapshot",{forceUpdate:!0}),g=1);p.ui.space("contents").setHtml("");p.mode=""}else{p._.previousModeData=p.getData(1)}this._.modes[k](function(){p.mode=k;void 0!==o&&!o&&p.resetDirty();g?p.fire("unlockSnapshot"):"wysiwyg"==k&&p.fire("saveSnapshot");setTimeout(function(){p.fire("mode");i&&i.call(p)},0)})}};CKEDITOR.editor.prototype.resize=function(n,j,r,k){var q=this.container,o=this.ui.space("contents"),i=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;k=k?this.container.getFirst(function(b){return b.type==CKEDITOR.NODE_ELEMENT&&b.hasClass("cke_inner")}):q;k.setSize("width",n,!0);i&&(i.style.width="1%");var p=(k.$.offsetHeight||0)-(o.$.clientHeight||0),q=Math.max(j-(r?0:p),0);j=r?j+p:j;o.setStyle("height",q+"px");i&&(i.style.width="100%");this.fire("resize",{outerHeight:j,contentsHeight:q,outerWidth:n||k.getSize("width")})};CKEDITOR.editor.prototype.getResizable=function(b){return b?this.ui.space("contents"):this.container};CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){function R(k){var e=k.editor,q=k.data.path,n=q.blockLimit,p=k.data.selection,l=p.getRanges()[0],c;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller){if(p=N(p,q)){p.appendBogus(),c=CKEDITOR.env.ie}}I(e,q.block,n)&&l.collapsed&&!l.getCommonAncestor().isReadOnly()&&(q=l.clone(),q.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),n=new CKEDITOR.dom.walker(q),n.guard=function(b){return !P(b)||b.type==CKEDITOR.NODE_COMMENT||b.isReadOnly()},!n.checkForward()||q.checkStartOfBlock()&&q.checkEndOfBlock())&&(e=l.fixBlock(!0,e.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"),CKEDITOR.env.needsBrFiller||(e=e.getFirst(P))&&e.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(e.getText()).match(/^(?: |\xa0)$/)&&e.remove(),c=1,k.cancel());c&&l.select()}function N(e,c){if(e.isFake){return 0}var h=c.block||c.blockLimit,f=h&&h.getLast(P);if(h&&h.isBlockBoundary()&&!(f&&f.type==CKEDITOR.NODE_ELEMENT&&f.isBlockBoundary()||h.is("pre")||h.getBogus())){return h}}function Q(d){var c=d.data.getTarget();c.is("input")&&(c=c.getAttribute("type"),"submit"!=c&&"reset"!=c||d.data.preventDefault())}function P(b){return B(b)&&D(b)}function O(d,c){return function(b){var a=b.data.$.toElement||b.data.$.fromElement||b.data.$.relatedTarget;(a=a&&a.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(a):null)&&(c.equals(a)||c.contains(a))||d.call(this,b)}}function J(h){function c(b){return function(a,d){d&&a.type==CKEDITOR.NODE_ELEMENT&&a.is(m)&&(n=a);if(!(d||!P(a)||b&&y(a))){return !1}}}var n,k=h.getRanges()[0];h=h.root;var m={table:1,ul:1,ol:1,dl:1};if(k.startPath().contains(m)){var l=k.clone();l.collapse(1);l.setStartAt(h,CKEDITOR.POSITION_AFTER_START);h=new CKEDITOR.dom.walker(l);h.guard=c();h.checkBackward();if(n){return l=k.clone(),l.collapse(),l.setEndAt(n,CKEDITOR.POSITION_AFTER_END),h=new CKEDITOR.dom.walker(l),h.guard=c(!0),n=!1,h.checkForward(),n}}return null}function I(e,d,f){return !1!==e.config.autoParagraph&&e.activeEnterMode!=CKEDITOR.ENTER_BR&&e.editable().equals(f)&&!d||d&&"true"==d.getAttribute("contenteditable")}function M(b){return b.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==b.config.autoParagraph?b.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":!1}function K(d){var c=d.editor;c.getSelection().scrollIntoView();setTimeout(function(){c.fire("saveSnapshot")},0)}function H(f,e,h){var g=f.getCommonAncestor(e);for(e=f=h?e:f;(f=f.getParent())&&!g.equals(f)&&1==f.getChildCount();){e=f}e.remove()}var L,F,C,r;CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(d,c){this.base(c.$||c);this.editor=d;this.status="unloaded";this.hasFocus=!1;this.setup()},proto:{focus:function(){var d;if(CKEDITOR.env.webkit&&!this.hasFocus&&(d=this.editor._.previousActive||this.getDocument().getActive(),this.contains(d))){d.focus();return}try{this.$[CKEDITOR.env.ie&&this.getDocument().equals(CKEDITOR.document)?"setActive":"focus"]()}catch(c){if(!CKEDITOR.env.ie){throw c}}CKEDITOR.env.safari&&!this.isInline()&&(d=CKEDITOR.document.getActive(),d.equals(this.getWindow().getFrame())||this.getWindow().focus())},on:function(e,d){var f=Array.prototype.slice.call(arguments,0);CKEDITOR.env.ie&&/^focus|blur$/.exec(e)&&(e="focus"==e?"focusin":"focusout",d=O(d,this),f[0]=e,f[1]=d);return CKEDITOR.dom.element.prototype.on.apply(this,f)},attachListener:function(d){!this._.listeners&&(this._.listeners=[]);var c=Array.prototype.slice.call(arguments,1),c=d.on.apply(d,c);this._.listeners.push(c);return c},clearListeners:function(){var d=this._.listeners;try{for(;d.length;){d.pop().removeListener()}}catch(c){}},restoreAttrs:function(){var e=this._.attrChanges,d,f;for(f in e){e.hasOwnProperty(f)&&(d=e[f],null!==d?this.setAttribute(f,d):this.removeAttribute(f))}},attachClass:function(d){var c=this.getCustomData("classes");this.hasClass(d)||(!c&&(c=[]),c.push(d),this.setCustomData("classes",c),this.addClass(d))},changeAttr:function(e,d){var f=this.getAttribute(e);d!==f&&(!this._.attrChanges&&(this._.attrChanges={}),e in this._.attrChanges||(this._.attrChanges[e]=f),this.setAttribute(e,d))},insertText:function(b){this.editor.focus();this.insertHtml(this.transformPlainTextToHtml(b),"text")},transformPlainTextToHtml:function(d){var c=this.editor.getSelection().getStartElement().hasAscendant("pre",!0)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(d,c)},insertHtml:function(f,e,h){var g=this.editor;g.focus();g.fire("saveSnapshot");h||(h=g.getSelection().getRanges()[0]);i(this,e||"html",f,h);h.select();K(this);this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(e,d,f){i(this,f||"html",e,d);this.editor.fire("afterInsertHtml",{intoRange:d})},insertElement:function(e,c){var l=this.editor;l.focus();l.fire("saveSnapshot");var h=l.activeEnterMode,l=l.getSelection(),k=e.getName(),k=CKEDITOR.dtd.$block[k];c||(c=l.getRanges()[0]);this.insertElementIntoRange(e,c)&&(c.moveToPosition(e,CKEDITOR.POSITION_AFTER_END),k&&((k=e.getNext(function(b){return P(b)&&!y(b)}))&&k.type==CKEDITOR.NODE_ELEMENT&&k.is(CKEDITOR.dtd.$block)?k.getDtd()["#"]?c.moveToElementEditStart(k):c.moveToElementEditEnd(e):k||h==CKEDITOR.ENTER_BR||(k=c.fixBlock(!0,h==CKEDITOR.ENTER_DIV?"div":"p"),c.moveToElementEditStart(k))));l.selectRanges([c]);K(this)},insertElementIntoSelection:function(b){this.insertElement(b)},insertElementIntoRange:function(l,k){var t=this.editor,s=t.config.enterMode,n=l.getName(),p=CKEDITOR.dtd.$block[n];if(k.checkReadOnly()){return !1}k.deleteContents(1);k.startContainer.type==CKEDITOR.NODE_ELEMENT&&k.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})&&j(k);var q,m;if(p){for(;(q=k.getCommonAncestor(0,1))&&(m=CKEDITOR.dtd[q.getName()])&&(!m||!m[n]);){q.getName() in CKEDITOR.dtd.span?k.splitElement(q):k.checkStartOfBlock()&&k.checkEndOfBlock()?(k.setStartBefore(q),k.collapse(!0),q.remove()):k.splitBlock(s==CKEDITOR.ENTER_DIV?"div":"p",t.editable())}}k.insertNode(l);return !0},setData:function(d,c){c||(d=this.editor.dataProcessor.toHtml(d));this.setHtml(d);this.fixInitialSelection();"unloaded"==this.status&&(this.status="ready");this.editor.fire("dataReady")},getData:function(d){var c=this.getHtml();d||(c=this.editor.dataProcessor.toDataFormat(c));return c},setReadOnly:function(b){this.setAttribute("contenteditable",!b)},detach:function(){this.removeClass("cke_editable");this.status="detached";var b=this.editor;this._.detach();delete b.document;delete b.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function e(){var a=f.getDocument().$,k=a.getSelection(),c;if(k.anchorNode&&k.anchorNode==f.$){c=!0}else{if(CKEDITOR.env.webkit){var h=f.getDocument().getActive();h&&h.equals(f)&&!k.anchorNode&&(c=!0)}}c&&(c=new CKEDITOR.dom.range(f),c.moveToElementEditStart(f),a=a.createRange(),a.setStart(c.startContainer.$,c.startOffset),a.collapse(!0),k.removeAllRanges(),k.addRange(a))}function d(){var b=f.getDocument().$,h=b.selection,c=f.getDocument().getActive();"None"==h.type&&c.equals(f)&&(h=new CKEDITOR.dom.range(f),b=b.body.createTextRange(),h.moveToElementEditStart(f),h=h.startContainer,h.type!=CKEDITOR.NODE_ELEMENT&&(h=h.getParent()),b.moveToElementText(h.$),b.collapse(!0),b.select())}var f=this;if(CKEDITOR.env.ie&&(9>CKEDITOR.env.version||CKEDITOR.env.quirks)){this.hasFocus&&(this.focus(),d())}else{if(this.hasFocus){this.focus(),e()}else{this.once("focus",function(){e()},null,null,-999)}}},getHtmlFromRange:function(b){if(b.collapsed){return new CKEDITOR.dom.documentFragment(b.document)}b={doc:this.getDocument(),range:b.clone()};L.detect(b,this);F.exclude(b);C.shrink(b);b.fragment=b.range.cloneContents();r.rebuild(b,this);L.fix(b,this);return new CKEDITOR.dom.documentFragment(b.fragment.$)},extractHtmlFromRange:function(h,e){var n=E,m={range:h,doc:h.document},k=this.getHtmlFromRange(h);if(h.collapsed){return h.optimize(),k}h.enlarge(CKEDITOR.ENLARGE_INLINE,1);n.table.detectPurge(m);m.bookmark=h.createBookmark();delete m.range;var l=this.editor.createRange();l.moveToPosition(m.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);m.targetBookmark=l.createBookmark();n.list.detectMerge(m,this);n.table.detectRanges(m,this);n.block.detectMerge(m,this);m.tableContentsRanges?(n.table.deleteRanges(m),h.moveToBookmark(m.bookmark),m.range=h):(h.moveToBookmark(m.bookmark),m.range=h,h.extractContents(n.detectExtractMerge(m)));h.moveToBookmark(m.targetBookmark);h.optimize();n.fixUneditableRangePosition(h);n.list.merge(m,this);n.table.purge(m,this);n.block.merge(m,this);e?(n=h.startPath(),h.checkStartOfBlock()&&h.checkEndOfBlock()&&n.block&&!h.root.equals(n.block)&&(h.moveToPosition(n.block,CKEDITOR.POSITION_BEFORE_START),n.block.remove())):(n.autoParagraph(this.editor,h),G(h.startContainer)&&h.startContainer.appendBogus());h.startContainer.mergeSiblings();return k},setup:function(){var b=this.editor;this.attachListener(b,"beforeGetData",function(){var a=this.getData();this.is("textarea")||!1!==b.config.ignoreEmptyParagraph&&(a=a.replace(o,function(e,d){return d}));b.setData(a,null,1)},this);this.attachListener(b,"getSnapshot",function(d){d.data=this.getData(1)},this);this.attachListener(b,"afterSetData",function(){this.setData(b.getData(1))},this);this.attachListener(b,"loadSnapshot",function(d){this.setData(d.data,1)},this);this.attachListener(b,"beforeFocus",function(){var a=b.getSelection();(a=a&&a.getNative())&&"Control"==a.type||this.focus()},this);this.attachListener(b,"insertHtml",function(d){this.insertHtml(d.data.dataValue,d.data.mode,d.data.range)},this);this.attachListener(b,"insertElement",function(d){this.insertElement(d.data)},this);this.attachListener(b,"insertText",function(d){this.insertText(d.data)},this);this.setReadOnly(b.readOnly);this.attachClass("cke_editable");b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):(b.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE||b.elementMode==CKEDITOR.ELEMENT_MODE_APPENDTO)&&this.attachClass("cke_editable_themed");this.attachClass("cke_contents_"+b.config.contentsLangDirection);b.keystrokeHandler.blockedKeystrokes[8]=+b.readOnly;b.keystrokeHandler.attach(this);this.on("blur",function(){this.hasFocus=!1},null,null,-1);this.on("focus",function(){this.hasFocus=!0},null,null,-1);b.focusManager.add(this);this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,b.once("contentDom",function(){b.focusManager.focus(this)},this));this.isInline()&&this.changeAttr("tabindex",b.tabIndex);if(!this.is("textarea")){b.document=this.getDocument();b.window=this.getWindow();var l=b.document;this.changeAttr("spellcheck",!b.config.disableNativeSpellChecker);var c=b.config.contentsLangDirection;this.getDirection(1)!=c&&this.changeAttr("dir",c);var h=CKEDITOR.getCss();h&&(c=l.getHead(),c.getCustomData("stylesheet")||(h=l.appendStyleText(h),h=new CKEDITOR.dom.element(h.ownerNode||h.owningElement),c.setCustomData("stylesheet",h),h.data("cke-temp",1)));c=l.getCustomData("stylesheet_ref")||0;l.setCustomData("stylesheet_ref",c+1);this.setCustomData("cke_includeReadonly",!b.config.disableReadonlyStyling);this.attachListener(this,"click",function(e){e=e.data;var d=(new CKEDITOR.dom.elementPath(e.getTarget(),this)).contains("a");d&&2!=e.$.button&&d.isReadOnly()&&e.preventDefault()});var k={8:1,46:1};this.attachListener(b,"key",function(w){if(b.readOnly){return !0}var v=w.data.domEvent.getKey(),u;if(v in k){w=b.getSelection();var s,t=w.getRanges()[0],q=t.startPath(),e,n,a,v=8==v;CKEDITOR.env.ie&&11>CKEDITOR.env.version&&(s=w.getSelectedElement())||(s=J(w))?(b.fire("saveSnapshot"),t.moveToPosition(s,CKEDITOR.POSITION_BEFORE_START),s.remove(),t.select(),b.fire("saveSnapshot"),u=1):t.collapsed&&((e=q.block)&&(a=e[v?"getPrevious":"getNext"](B))&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table")&&t[v?"checkStartOfBlock":"checkEndOfBlock"]()?(b.fire("saveSnapshot"),t[v?"checkEndOfBlock":"checkStartOfBlock"]()&&e.remove(),t["moveToElementEdit"+(v?"End":"Start")](a),t.select(),b.fire("saveSnapshot"),u=1):q.blockLimit&&q.blockLimit.is("td")&&(n=q.blockLimit.getAscendant("table"))&&t.checkBoundaryOfElement(n,v?CKEDITOR.START:CKEDITOR.END)&&(a=n[v?"getPrevious":"getNext"](B))?(b.fire("saveSnapshot"),t["moveToElementEdit"+(v?"End":"Start")](a),t.checkStartOfBlock()&&t.checkEndOfBlock()?a.remove():t.select(),b.fire("saveSnapshot"),u=1):(n=q.contains(["td","th","caption"]))&&t.checkBoundaryOfElement(n,v?CKEDITOR.START:CKEDITOR.END)&&(u=1))}return !u});b.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&this.attachListener(this,"keyup",function(a){a.data.getKeystroke() in k&&!this.getFirst(P)&&(this.appendBogus(),a=b.createRange(),a.moveToPosition(this,CKEDITOR.POSITION_AFTER_START),a.select())});this.attachListener(this,"dblclick",function(a){if(b.readOnly){return !1}a={element:a.data.getTarget()};b.fire("doubleclick",a)});CKEDITOR.env.ie&&this.attachListener(this,"click",Q);CKEDITOR.env.ie||this.attachListener(this,"mousedown",function(a){var d=a.data.getTarget();d.is("img","hr","input","textarea","select")&&!d.isReadOnly()&&(b.getSelection().selectElement(d),d.is("input","textarea","select")&&a.data.preventDefault())});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(a){if(2==a.data.$.button&&(a=a.data.getTarget(),!a.getOuterHtml().replace(o,""))){var d=b.createRange();d.moveToElementEditStart(a);d.select(!0)}});CKEDITOR.env.webkit&&(this.attachListener(this,"click",function(d){d.data.getTarget().is("input","select")&&d.data.preventDefault()}),this.attachListener(this,"mouseup",function(d){d.data.getTarget().is("input","textarea")&&d.data.preventDefault()}));CKEDITOR.env.webkit&&this.attachListener(b,"key",function(a){if(b.readOnly){return !0}a=a.data.domEvent.getKey();if(a in k){var s=8==a,q=b.getSelection().getRanges()[0];a=q.startPath();if(q.collapsed){var n;b:{var p=a.block;if(p){if(q[s?"checkStartOfBlock":"checkEndOfBlock"]()){if(q.moveToClosestEditablePosition(p,!s)&&q.collapsed){if(q.startContainer.type==CKEDITOR.NODE_ELEMENT){var m=q.startContainer.getChild(q.startOffset-(s?1:0));if(m&&m.type==CKEDITOR.NODE_ELEMENT&&m.is("hr")){b.fire("saveSnapshot");m.remove();n=!0;break b}}if((q=q.startPath().block)&&(!q||!q.contains(p))){b.fire("saveSnapshot");var e;(e=(s?q:p).getBogus())&&e.remove();n=b.getSelection();e=n.createBookmarks();(s?p:q).moveChildren(s?q:p,!1);a.lastElement.mergeSiblings();H(p,q,!s);n.selectBookmarks(e);n=!0}}else{n=!1}}else{n=!1}}else{n=!1}}if(!n){return}}else{if(s=q,n=a.block,e=s.endPath().block,n&&e&&!n.equals(e)?(b.fire("saveSnapshot"),(p=n.getBogus())&&p.remove(),s.enlarge(CKEDITOR.ENLARGE_INLINE),s.deleteContents(),e.getParent()&&(e.moveChildren(n,!1),a.lastElement.mergeSiblings(),H(n,e,!0)),s=b.getSelection().getRanges()[0],s.collapse(1),s.optimize(),""===s.startContainer.getHtml()&&s.startContainer.appendBogus(),s.select(),a=!0):a=!1,!a){return}}b.getSelection().scrollIntoView();b.fire("saveSnapshot");return !1}},this,null,100)}}},_:{detach:function(){this.editor.setData(this.editor.getData(),0,1);this.clearListeners();this.restoreAttrs();var e;if(e=this.removeCustomData("classes")){for(;e.length;){this.removeClass(e.pop())}}if(!this.is("textarea")){e=this.getDocument();var d=e.getHead();if(d.getCustomData("stylesheet")){var f=e.getCustomData("stylesheet_ref");--f?e.setCustomData("stylesheet_ref",f):(e.removeCustomData("stylesheet_ref"),d.removeCustomData("stylesheet").remove())}}this.editor.fire("contentDomUnload");delete this.editor}}});CKEDITOR.editor.prototype.editable=function(d){var c=this._.editable;if(c&&d){return 0}arguments.length&&(c=this._.editable=d?d instanceof CKEDITOR.editable?d:new CKEDITOR.editable(this,d):(c&&c.detach(),null));return c};CKEDITOR.on("instanceLoaded",function(a){var d=a.editor;d.on("insertElement",function(b){b=b.data;b.type==CKEDITOR.NODE_ELEMENT&&(b.is("input")||b.is("textarea"))&&("false"!=b.getAttribute("contentEditable")&&b.data("cke-editable",b.hasAttribute("contenteditable")?"true":"1"),b.setAttribute("contentEditable",!1))});d.on("selectionChange",function(c){if(!d.readOnly){var e=d.getSelection();e&&!e.isLocked&&(e=d.checkDirty(),d.fire("lockSnapshot"),R(c),d.fire("unlockSnapshot"),!e&&d.resetDirty())}})});CKEDITOR.on("instanceCreated",function(d){var c=d.editor;c.on("mode",function(){var b=c.editable();if(b&&b.isInline()){var h=c.title;b.changeAttr("role","textbox");b.changeAttr("aria-label",h);h&&b.changeAttr("title",h);var f=c.fire("ariaEditorHelpLabel",{}).label;if(f&&(h=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var e=CKEDITOR.tools.getNextId(),f=CKEDITOR.dom.element.createFromHtml('<span id="'+e+'" class="cke_voice_label">'+f+"</span>");h.append(f);b.changeAttr("aria-describedby",e)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");var B=CKEDITOR.dom.walker.whitespaces(!0),D=CKEDITOR.dom.walker.bookmark(!1,!0),G=CKEDITOR.dom.walker.empty(),y=CKEDITOR.dom.walker.bogus(),o=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,i=function(){function w(a){return a.type==CKEDITOR.NODE_ELEMENT}function v(W,V){var S,T,U,A,z=[],m=V.range.startContainer;S=V.range.startPath();for(var m=f[m.getName()],a=0,ab=W.getChildren(),Z=ab.count(),b=-1,aa=-1,Y=0,X=S.contains(f.$list);a<Z;++a){S=ab.getItem(a),w(S)?(U=S.getName(),X&&U in CKEDITOR.dtd.$list?z=z.concat(v(S,V)):(A=!!m[U],"br"!=U||!S.data("cke-eol")||a&&a!=Z-1||(Y=(T=a?z[a-1].node:ab.getItem(a+1))&&(!w(T)||!T.is("br")),T=T&&w(T)&&f.$block[T.getName()]),-1==b&&!A&&(b=a),A||(aa=a),z.push({isElement:1,isLineBreak:Y,isBlock:S.isBlockBoundary(),hasBlockSibling:T,node:S,name:U,allowed:A}),T=Y=0)):z.push({isElement:0,node:S,allowed:1})}-1<b&&(z[b].firstNotAllowed=1);-1<aa&&(z[aa].lastNotAllowed=1);return z}function u(U,T){var z=[],A=U.getChildren(),S=A.count(),t,m=0,d=f[T],a=!U.is(f.$inline)||U.is("br");for(a&&z.push(" ");m<S;m++){t=A.getItem(m),w(t)&&!t.is(d)?z=z.concat(u(t,T)):z.push(t)}a&&z.push(" ");return z}function q(a){return a&&w(a)&&(a.is(f.$removeEmpty)||a.is("a")&&!a.isBlockBoundary())}function s(e,A,z,p){var t=e.clone(),k,a;t.setEndAt(A,CKEDITOR.POSITION_BEFORE_END);(k=(new CKEDITOR.dom.walker(t)).next())&&w(k)&&l[k.getName()]&&(a=k.getPrevious())&&w(a)&&!a.getParent().equals(e.startContainer)&&z.contains(a)&&p.contains(k)&&k.isIdentical(a)&&(k.moveChildren(a),k.remove(),s(e,A,z,p))}function n(a,m){function k(d,g){if(g.isBlock&&g.isElement&&!g.node.is("br")&&w(d)&&d.is("br")){return d.remove(),1}}var e=m.endContainer.getChild(m.endOffset),h=m.endContainer.getChild(m.endOffset-1);e&&k(e,a[a.length-1]);h&&k(h,a[0])&&(m.setEnd(m.endContainer,m.endOffset-1),m.collapse())}var f=CKEDITOR.dtd,l={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},c={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},x=CKEDITOR.tools.extend({},f.$inline);delete x.br;return function(am,al,af,ac){var ab=am.editor,ad=!1;"unfiltered_html"==al&&(al="html",ad=!0);if(!ac.checkReadOnly()){var ah=(new CKEDITOR.dom.elementPath(ac.startContainer,ac.root)).blockLimit||ac.root;am={type:al,dontFilter:ad,editable:am,editor:ab,range:ac,blockLimit:ah,mergeCandidates:[],zombies:[]};al=am.range;ac=am.mergeCandidates;var ag,ai;"text"==am.type&&al.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(ag=CKEDITOR.dom.element.createFromHtml("<span> </span>",al.document),al.insertNode(ag),al.setStartAfter(ag));ad=new CKEDITOR.dom.elementPath(al.startContainer);am.endPath=ah=new CKEDITOR.dom.elementPath(al.endContainer);if(!al.collapsed){var ab=ah.block||ah.blockLimit,Z=al.getCommonAncestor();ab&&!ab.equals(Z)&&!ab.contains(Z)&&al.checkEndOfBlock()&&am.zombies.push(ab);al.deleteContents()}for(;(ai=w(al.startContainer)&&al.startContainer.getChild(al.startOffset-1))&&w(ai)&&ai.isBlockBoundary()&&ad.contains(ai);){al.moveToPosition(ai,CKEDITOR.POSITION_BEFORE_END)}s(al,am.blockLimit,ad,ah);ag&&(al.setEndBefore(ag),al.collapse(),ag.remove());ag=al.startPath();if(ab=ag.contains(q,!1,1)){al.splitElement(ab),am.inlineStylesRoot=ab,am.inlineStylesPeak=ag.lastElement}ag=al.createBookmark();(ab=ag.startNode.getPrevious(P))&&w(ab)&&q(ab)&&ac.push(ab);(ab=ag.startNode.getNext(P))&&w(ab)&&q(ab)&&ac.push(ab);for(ab=ag.startNode;(ab=ab.getParent())&&q(ab);){ac.push(ab)}al.moveToBookmark(ag);if(ag=af){ag=am.range;if("text"==am.type&&am.inlineStylesRoot){ai=am.inlineStylesPeak;al=ai.getDocument().createText("{cke-peak}");for(ac=am.inlineStylesRoot.getParent();!ai.equals(ac);){al=al.appendTo(ai.clone()),ai=ai.getParent()}af=al.getOuterHtml().split("{cke-peak}").join(af)}ai=am.blockLimit.getName();if(/^\s+|\s+$/.test(af)&&"span" in CKEDITOR.dtd[ai]){var ae='<span data-cke-marker="1"> </span>';af=ae+af+ae}af=am.editor.dataProcessor.toHtml(af,{context:null,fixForBody:!1,protectedWhitespaces:!!ae,dontFilter:am.dontFilter,filter:am.editor.activeFilter,enterMode:am.editor.activeEnterMode});ai=ag.document.createElement("body");ai.setHtml(af);ae&&(ai.getFirst().remove(),ai.getLast().remove());if((ae=ag.startPath().block)&&(1!=ae.getChildCount()||!ae.getBogus())){w:{var W;if(1==ai.getChildCount()&&w(W=ai.getFirst())&&W.is(c)&&!W.hasAttribute("contenteditable")){ae=W.getElementsByTag("*");ag=0;for(ac=ae.count();ag<ac;ag++){if(al=ae.getItem(ag),!al.is(x)){break w}}W.moveChildren(W.getParent(1));W.remove()}}}am.dataWrapper=ai;ag=af}if(ag){W=am.range;ag=W.document;var aa;ai=am.blockLimit;ac=0;var t,ae=[],m,d;af=ab=0;var g,p;al=W.startContainer;var ad=am.endPath.elements[0],e,ah=ad.getPosition(al),Z=!!ad.getCommonAncestor(al)&&ah!=CKEDITOR.POSITION_IDENTICAL&&!(ah&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);al=v(am.dataWrapper,am);for(n(al,W);ac<al.length;ac++){ah=al[ac];if(aa=ah.isLineBreak){aa=W;g=ai;var b=void 0,aj=void 0;ah.hasBlockSibling?aa=1:(b=aa.startContainer.getAscendant(f.$block,1))&&b.is({div:1,p:1})?(aj=b.getPosition(g),aj==CKEDITOR.POSITION_IDENTICAL||aj==CKEDITOR.POSITION_CONTAINS?aa=0:(g=aa.splitElement(b),aa.moveToPosition(g,CKEDITOR.POSITION_AFTER_START),aa=1)):aa=0}if(aa){af=0<ac}else{aa=W.startPath();!ah.isBlock&&I(am.editor,aa.block,aa.blockLimit)&&(d=M(am.editor))&&(d=ag.createElement(d),d.appendBogus(),W.insertNode(d),CKEDITOR.env.needsBrFiller&&(t=d.getBogus())&&t.remove(),W.moveToPosition(d,CKEDITOR.POSITION_BEFORE_END));if((aa=W.startPath().block)&&!aa.equals(m)){if(t=aa.getBogus()){t.remove(),ae.push(aa)}m=aa}ah.firstNotAllowed&&(ab=1);if(ab&&ah.isElement){aa=W.startContainer;for(g=null;aa&&!f[aa.getName()][ah.name];){if(aa.equals(ai)){aa=null;break}g=aa;aa=aa.getParent()}if(aa){g&&(p=W.splitElement(g),am.zombies.push(p),am.zombies.push(g))}else{g=ai.getName();e=!ac;aa=ac==al.length-1;g=u(ah.node,g);for(var b=[],aj=g.length,h=0,a=void 0,an=0,S=-1;h<aj;h++){a=g[h]," "==a?(an||e&&!h||(b.push(new CKEDITOR.dom.text(" ")),S=b.length),an=1):(b.push(a),an=0)}aa&&S==b.length&&b.pop();e=b}}if(e){for(;aa=e.pop();){W.insertNode(aa)}e=0}else{W.insertNode(ah.node)}ah.lastNotAllowed&&ac<al.length-1&&((p=Z?ad:p)&&W.setEndAt(p,CKEDITOR.POSITION_AFTER_START),ab=0);W.collapse()}}1!=al.length?t=!1:(t=al[0],t=t.isElement&&"false"==t.node.getAttribute("contenteditable"));t&&(af=!0,aa=al[0].node,W.setStartAt(aa,CKEDITOR.POSITION_BEFORE_START),W.setEndAt(aa,CKEDITOR.POSITION_AFTER_END));am.dontMoveCaret=af;am.bogusNeededBlocks=ae}t=am.range;var ak;p=am.bogusNeededBlocks;for(e=t.createBookmark();m=am.zombies.pop();){m.getParent()&&(d=t.clone(),d.moveToElementEditStart(m),d.removeEmptyBlocksAtEnd())}if(p){for(;m=p.pop();){CKEDITOR.env.needsBrFiller?m.appendBogus():m.append(t.document.createText("\u00a0"))}}for(;m=am.mergeCandidates.pop();){m.mergeSiblings()}t.moveToBookmark(e);if(!am.dontMoveCaret){for(m=w(t.startContainer)&&t.startContainer.getChild(t.startOffset-1);m&&w(m)&&!m.is(f.$empty);){if(m.isBlockBoundary()){t.moveToPosition(m,CKEDITOR.POSITION_BEFORE_END)}else{if(q(m)&&m.getHtml().match(/(\s| )$/g)){ak=null;break}ak=t.clone();ak.moveToPosition(m,CKEDITOR.POSITION_BEFORE_END)}m=m.getLast(P)}ak&&t.moveToRange(ak)}}}}(),j=function(){function e(a){a=new CKEDITOR.dom.walker(a);a.guard=function(g,c){if(c){return !1}if(g.type==CKEDITOR.NODE_ELEMENT){return g.is(CKEDITOR.dtd.$tableContent)}};a.evaluator=function(b){return b.type==CKEDITOR.NODE_ELEMENT};return a}function d(b,h,g){h=b.getDocument().createElement(h);b.append(h,g);return h}function f(g){var c=g.count(),h;for(c;0<c--;){h=g.getItem(c),CKEDITOR.tools.trim(h.getHtml())||(h.appendBogus(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&h.getChildCount()&&h.getFirst().remove())}}return function(h){var a=h.startContainer,b=a.getAscendant("table",1),c=!1;f(b.getElementsByTag("td"));f(b.getElementsByTag("th"));b=h.clone();b.setStart(a,0);b=e(b).lastBackward();b||(b=h.clone(),b.setEndAt(a,CKEDITOR.POSITION_BEFORE_END),b=e(b).lastForward(),c=!0);b||(b=a);b.is("table")?(h.setStartAt(b,CKEDITOR.POSITION_BEFORE_START),h.collapse(!0),b.remove()):(b.is({tbody:1,thead:1,tfoot:1})&&(b=d(b,"tr",c)),b.is("tr")&&(b=d(b,b.getParent().is("thead")?"th":"td",c)),(a=b.getBogus())&&a.remove(),h.moveToPosition(b,c?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}();L={detect:function(k,h){var q=k.range,p=q.clone(),l=q.clone(),m=new CKEDITOR.dom.elementPath(q.startContainer,h),n=new CKEDITOR.dom.elementPath(q.endContainer,h);p.collapse(1);l.collapse();m.block&&p.checkBoundaryOfElement(m.block,CKEDITOR.END)&&(q.setStartAfter(m.block),k.prependEolBr=1);n.block&&l.checkBoundaryOfElement(n.block,CKEDITOR.START)&&(q.setEndBefore(n.block),k.appendEolBr=1)},fix:function(f,e){var h=e.getDocument(),g;f.appendEolBr&&(g=this.createEolBr(h),f.fragment.append(g));f.prependEolBr&&(!g||g.getPrevious())&&f.fragment.append(this.createEolBr(h),1)},createEolBr:function(b){return b.createElement("br",{attributes:{"data-cke-eol":1}})}};F={exclude:function(e){var d=e.range.getBoundaryNodes(),f=d.startNode;!(d=d.endNode)||!y(d)||f&&f.equals(d)||e.range.setEndBefore(d)}};r={rebuild:function(v,u){var t=v.range,s=t.getCommonAncestor(),n=new CKEDITOR.dom.elementPath(s,u),p=new CKEDITOR.dom.elementPath(t.startContainer,u),t=new CKEDITOR.dom.elementPath(t.endContainer,u),q;s.type==CKEDITOR.NODE_TEXT&&(s=s.getParent());if(n.blockLimit.is({tr:1,table:1})){var m=n.contains("table").getParent();q=function(b){return !b.equals(m)}}else{if(n.block&&n.block.is(CKEDITOR.dtd.$listItem)&&(p=p.contains(CKEDITOR.dtd.$list),t=t.contains(CKEDITOR.dtd.$list),!p.equals(t))){var l=n.contains(CKEDITOR.dtd.$list).getParent();q=function(b){return !b.equals(l)}}}q||(q=function(b){return !b.equals(n.block)&&!b.equals(n.blockLimit)});this.rebuildFragment(v,u,s,q)},rebuildFragment:function(f,e,l,k){for(var h;l&&!l.equals(e)&&k(l);){h=l.clone(0,1),f.fragment.appendTo(h),f.fragment=h,l=l.getParent()}}};C={shrink:function(f){f=f.range;var e=f.startContainer,l=f.endContainer,k=f.startOffset,h=f.endOffset;e.type==CKEDITOR.NODE_ELEMENT&&e.equals(l)&&e.is("tr")&&++k==h&&f.shrink(CKEDITOR.SHRINK_TEXT)}};var E=function(){function e(a,h){var g=a.getParent();if(g.is(CKEDITOR.dtd.$inline)){a[h?"insertBefore":"insertAfter"](g)}}function d(k,h,a){e(h);e(a,1);for(var b;b=a.getNext();){b.insertAfter(h),h=b}G(k)&&k.remove()}function f(g,c){var h=new CKEDITOR.dom.range(g);h.setStartAfter(c.startNode);h.setEndBefore(c.endNode);return h}return{list:{detectMerge:function(k,c){var q=f(c,k.bookmark),m=q.startPath(),n=q.endPath(),p=m.contains(CKEDITOR.dtd.$list),l=n.contains(CKEDITOR.dtd.$list);k.mergeList=p&&l&&p.getParent().equals(l.getParent())&&!p.equals(l);k.mergeListItems=m.block&&n.block&&m.block.is(CKEDITOR.dtd.$listItem)&&n.block.is(CKEDITOR.dtd.$listItem);if(k.mergeList||k.mergeListItems){q=q.clone(),q.setStartBefore(k.bookmark.startNode),q.setEndAfter(k.bookmark.endNode),k.mergeListBookmark=q.createBookmark()}},merge:function(b,t){if(b.mergeListBookmark){var s=b.mergeListBookmark.startNode,n=b.mergeListBookmark.endNode,p=new CKEDITOR.dom.elementPath(s,t),q=new CKEDITOR.dom.elementPath(n,t);if(b.mergeList){var m=p.contains(CKEDITOR.dtd.$list),l=q.contains(CKEDITOR.dtd.$list);m.equals(l)||(l.moveChildren(m),l.remove())}b.mergeListItems&&(p=p.contains(CKEDITOR.dtd.$listItem),q=q.contains(CKEDITOR.dtd.$listItem),p.equals(q)||d(q,s,n));s.remove();n.remove()}}},block:{detectMerge:function(h,g){if(!h.tableContentsRanges&&!h.mergeListBookmark){var k=new CKEDITOR.dom.range(g);k.setStartBefore(h.bookmark.startNode);k.setEndAfter(h.bookmark.endNode);h.mergeBlockBookmark=k.createBookmark()}},merge:function(b,n){if(b.mergeBlockBookmark&&!b.purgeTableBookmark){var m=b.mergeBlockBookmark.startNode,h=b.mergeBlockBookmark.endNode,k=new CKEDITOR.dom.elementPath(m,n),l=new CKEDITOR.dom.elementPath(h,n),k=k.block,l=l.block;k&&l&&!k.equals(l)&&d(l,m,h);m.remove();h.remove()}}},table:function(){function g(s){var n=[],p,q=new CKEDITOR.dom.walker(s),l=s.startPath().contains(h),b=s.endPath().contains(h),a={};q.guard=function(m,t){if(m.type==CKEDITOR.NODE_ELEMENT){var k="visited_"+(t?"out":"in");if(m.getCustomData(k)){return}CKEDITOR.dom.element.setMarker(a,m,k,1)}t&&l&&m.equals(l)?(p=s.clone(),p.setEndAt(l,CKEDITOR.POSITION_BEFORE_END),n.push(p)):!t&&b&&m.equals(b)?(p=s.clone(),p.setStartAt(b,CKEDITOR.POSITION_AFTER_START),n.push(p)):t||m.type!=CKEDITOR.NODE_ELEMENT||!m.is(h)||l&&!c(m,l)||b&&!c(m,b)||(p=s.clone(),p.selectNodeContents(m),n.push(p))};q.lastForward();CKEDITOR.dom.element.clearAllMarkers(a);return n}function c(b,m){var l=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,k=b.getPosition(m);return k===CKEDITOR.POSITION_IDENTICAL?!1:0===(k&l)}var h={td:1,th:1,caption:1};return{detectPurge:function(l){var k=l.range,p=k.clone();p.enlarge(CKEDITOR.ENLARGE_ELEMENT);var p=new CKEDITOR.dom.walker(p),m=0;p.evaluator=function(b){b.type==CKEDITOR.NODE_ELEMENT&&b.is(h)&&++m};p.checkForward();if(1<m){var p=k.startPath().contains("table"),n=k.endPath().contains("table");p&&n&&k.checkBoundaryOfElement(p,CKEDITOR.START)&&k.checkBoundaryOfElement(n,CKEDITOR.END)&&(k=l.range.clone(),k.setStartBefore(p),k.setEndAfter(n),l.purgeTableBookmark=k.createBookmark())}},detectRanges:function(q,s){var t=f(s,q.bookmark),p=t.clone(),n,a,b=t.getCommonAncestor();b.is(CKEDITOR.dtd.$tableContent)&&!b.is(h)&&(b=b.getAscendant("table",!0));a=b;b=new CKEDITOR.dom.elementPath(t.startContainer,a);a=new CKEDITOR.dom.elementPath(t.endContainer,a);b=b.contains("table");a=a.contains("table");if(b||a){b&&a&&c(b,a)?(q.tableSurroundingRange=p,p.setStartAt(b,CKEDITOR.POSITION_AFTER_END),p.setEndAt(a,CKEDITOR.POSITION_BEFORE_START),p=t.clone(),p.setEndAt(b,CKEDITOR.POSITION_AFTER_END),n=t.clone(),n.setStartAt(a,CKEDITOR.POSITION_BEFORE_START),n=g(p).concat(g(n))):b?a||(q.tableSurroundingRange=p,p.setStartAt(b,CKEDITOR.POSITION_AFTER_END),t.setEndAt(b,CKEDITOR.POSITION_AFTER_END)):(q.tableSurroundingRange=p,p.setEndAt(a,CKEDITOR.POSITION_BEFORE_START),t.setStartAt(a,CKEDITOR.POSITION_AFTER_START)),q.tableContentsRanges=n?n:g(t)}},deleteRanges:function(l){for(var k;k=l.tableContentsRanges.pop();){k.extractContents(),G(k.startContainer)&&k.startContainer.appendBogus()}l.tableSurroundingRange&&l.tableSurroundingRange.extractContents()},purge:function(l){if(l.purgeTableBookmark){var k=l.doc,m=l.range.clone(),k=k.createElement("p");k.insertBefore(l.purgeTableBookmark.startNode);m.moveToBookmark(l.purgeTableBookmark);m.deleteContents();l.range.moveToPosition(k,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(b){return !(b.range.startPath().contains(CKEDITOR.dtd.$listItem)&&b.range.endPath().contains(CKEDITOR.dtd.$listItem))},fixUneditableRangePosition:function(b){b.startContainer.getDtd()["#"]||b.moveToClosestEditablePosition(null,!0)},autoParagraph:function(h,g){var l=g.startPath(),k;I(h,l.block,l.blockLimit)&&(k=M(h))&&(k=g.document.createElement(k),k.appendBogus(),g.insertNode(k),g.moveToPosition(k,CKEDITOR.POSITION_AFTER_START))}}}()}(),function(){function N(){var d=this._.fakeSelection,c;d&&(c=this.getSelection(1),c&&c.isHidden()||(d.reset(),d=0));if(!d&&(d=c||this.getSelection(1),!d||d.getType()==CKEDITOR.SELECTION_NONE)){return}this.fire("selectionCheck",d);c=this.elementPath();c.compare(this._.selectionPreviousPath)||(CKEDITOR.env.webkit&&(this._.previousActive=this.document.getActive()),this._.selectionPreviousPath=c,this.fire("selectionChange",{selection:d,path:c}))}function J(){x=!0;o||(M.call(this),o=CKEDITOR.tools.setTimeout(M,200,this))}function M(){o=null;x&&(CKEDITOR.tools.setTimeout(N,0,this),x=!1)}function L(b){return A(b)||b.type==CKEDITOR.NODE_ELEMENT&&!b.is(CKEDITOR.dtd.$empty)?!0:!1}function K(e){function c(b,a){return b&&b.type!=CKEDITOR.NODE_TEXT?e.clone()["moveToElementEdit"+(a?"End":"Start")](b):!1}if(!(e.root instanceof CKEDITOR.editable)){return !1}var l=e.startContainer,h=e.getPreviousNode(L,null,l),k=e.getNextNode(L,null,l);return c(h)||c(k,1)||!(h||k||l.type==CKEDITOR.NODE_ELEMENT&&l.isBlockBoundary()&&l.getBogus())?!0:!1}function F(b){return b.getCustomData("cke-fillingChar")}function E(h,f){var n=h&&h.removeCustomData("cke-fillingChar");if(n){if(!1!==f){var m,k=h.getDocument().getSelection().getNative(),l=k&&"None"!=k.type&&k.getRangeAt(0);1<n.getLength()&&l&&l.intersectsNode(n.$)&&(m=G(k),l=k.focusNode==n.$&&0<k.focusOffset,k.anchorNode==n.$&&0<k.anchorOffset&&m[0].offset--,l&&m[1].offset--)}n.setText(I(n.getText()));m&&D(h.getDocument().$,m)}}function I(b){return b.replace(/\u200B( )?/g,function(c){return c[1]?"\u00a0":""})}function G(b){return[{node:b.anchorNode,offset:b.anchorOffset},{node:b.focusNode,offset:b.focusOffset}]}function D(f,e){var h=f.getSelection(),g=f.createRange();g.setStart(e[0].node,e[0].offset);g.collapse(!0);h.removeAllRanges();h.addRange(g);h.extend(e[1].node,e[1].offset)}function H(f){var e=CKEDITOR.dom.element.createFromHtml('<div data-cke-hidden-sel="1" data-cke-temp="1" style="'+(CKEDITOR.env.ie?"display:none":"position:fixed;top:0;left:-1000px")+'"> </div>',f.document);f.fire("lockSnapshot");f.editable().append(e);var l=f.getSelection(1),k=f.createRange(),h=l.root.on("selectionchange",function(b){b.cancel()},null,null,0);k.setStartAt(e,CKEDITOR.POSITION_AFTER_START);k.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);l.selectRanges([k]);h.removeListener();f.fire("unlockSnapshot");f._.hiddenSelectionContainer=e}function B(d){var c={37:1,39:1,8:1,46:1};return function(h){var e=h.data.getKeystroke();if(c[e]){var a=d.getSelection().getRanges(),b=a[0];1==a.length&&b.collapsed&&(e=b[38>e?"getPreviousEditableNode":"getNextEditableNode"]())&&e.type==CKEDITOR.NODE_ELEMENT&&"false"==e.getAttribute("contenteditable")&&(d.getSelection().fake(e),h.data.preventDefault(),h.cancel())}}}function y(l){for(var k=0;k<l.length;k++){var t=l[k];t.getCommonAncestor().isReadOnly()&&l.splice(k,1);if(!t.collapsed){if(t.startContainer.isReadOnly()){for(var s=t.startContainer,n;s&&!((n=s.type==CKEDITOR.NODE_ELEMENT)&&s.is("body")||!s.isReadOnly());){n&&"false"==s.getAttribute("contentEditable")&&t.setStartAfter(s),s=s.getParent()}}s=t.startContainer;n=t.endContainer;var p=t.startOffset,q=t.endOffset,m=t.clone();s&&s.type==CKEDITOR.NODE_TEXT&&(p>=s.getLength()?m.setStartAfter(s):m.setStartBefore(s));n&&n.type==CKEDITOR.NODE_TEXT&&(q?m.setEndAfter(n):m.setEndBefore(n));s=new CKEDITOR.dom.walker(m);s.evaluator=function(b){if(b.type==CKEDITOR.NODE_ELEMENT&&b.isReadOnly()){var a=t.clone();t.setEndBefore(b);t.collapsed&&l.splice(k--,1);b.getPosition(m.endContainer)&CKEDITOR.POSITION_CONTAINS||(a.setStartAfter(b),a.collapsed||l.splice(k+1,0,a));return !0}return !1};s.next()}}return l}var o,x,A=CKEDITOR.dom.walker.invisible(1),C=function(){function f(a){return function(b){var d=b.editor.createRange();d.moveToClosestEditablePosition(b.selected,a)&&b.editor.getSelection().selectRanges([d]);return !1}}function e(b){return function(a){var m=a.editor,l=m.createRange(),k;(k=l.moveToClosestEditablePosition(a.selected,b))||(k=l.moveToClosestEditablePosition(a.selected,!b));k&&m.getSelection().selectRanges([l]);m.fire("saveSnapshot");a.selected.remove();k||(l.moveToElementEditablePosition(m.editable()),m.getSelection().selectRanges([l]));m.fire("saveSnapshot");return !1}}var h=f(),g=f(1);return{37:h,38:h,39:g,40:g,8:e(),46:e(1)}}();CKEDITOR.on("instanceCreated",function(a){function f(){var b=e.getSelection();b&&b.removeAllRanges()}var e=a.editor;e.on("contentDom",function(){function Q(){R=new CKEDITOR.dom.selection(e.getSelection());R.lock()}function P(){O.removeListener("mouseup",P);p.removeListener("mouseup",P);var g=CKEDITOR.document.$.selection,c=g.createRange();"None"!=g.type&&c.parentElement().ownerDocument==z.$&&c.select()}var z=e.document,O=CKEDITOR.document,u=e.editable(),s=z.getBody(),p=z.getDocumentElement(),T=u.isInline(),l,R;CKEDITOR.env.gecko&&u.attachListener(u,"focus",function(b){b.removeListener();0!==l&&(b=e.getSelection().getNative())&&b.isCollapsed&&b.anchorNode==u.$&&(b=e.createRange(),b.moveToElementEditStart(u),b.select())},null,null,-2);u.attachListener(u,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){l&&CKEDITOR.env.webkit&&(l=e._.previousActive&&e._.previousActive.equals(z.getActive()));e.unlockSelection(l);l=0},null,null,-1);u.attachListener(u,"mousedown",function(){l=0});if(CKEDITOR.env.ie||T){r?u.attachListener(u,"beforedeactivate",Q,null,null,-1):u.attachListener(e,"selectionCheck",Q,null,null,-1),u.attachListener(u,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){e.lockSelection(R);l=1},null,null,-1),u.attachListener(u,"mousedown",function(){l=0})}if(CKEDITOR.env.ie&&!T){var S;u.attachListener(u,"mousedown",function(b){2==b.data.$.button&&((b=e.document.getSelection())&&b.getType()!=CKEDITOR.SELECTION_NONE||(S=e.window.getScrollPosition()))});u.attachListener(u,"mouseup",function(b){2==b.data.$.button&&S&&(e.document.$.documentElement.scrollLeft=S.x,e.document.$.documentElement.scrollTop=S.y);S=null});if("BackCompat"!=z.$.compatMode){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat){p.on("mousedown",function(k){function h(b){b=b.data.$;if(q){var w=s.$.createTextRange();try{w.moveToPoint(b.clientX,b.clientY)}catch(v){}q.setEndPoint(0>n.compareEndPoints("StartToStart",w)?"EndToEnd":"StartToStart",w);q.select()}}function t(){p.removeListener("mousemove",h);O.removeListener("mouseup",t);p.removeListener("mouseup",t);q.select()}k=k.data;if(k.getTarget().is("html")&&k.$.y<p.$.clientHeight&&k.$.x<p.$.clientWidth){var q=s.$.createTextRange();try{q.moveToPoint(k.$.clientX,k.$.clientY)}catch(m){}var n=q.duplicate();p.on("mousemove",h);O.on("mouseup",t);p.on("mouseup",t)}})}if(7<CKEDITOR.env.version&&11>CKEDITOR.env.version){p.on("mousedown",function(b){b.data.getTarget().is("html")&&(O.on("mouseup",P),p.on("mouseup",P))})}}}u.attachListener(u,"selectionchange",N,e);u.attachListener(u,"keyup",J,e);u.attachListener(u,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){e.forceNextSelectionCheck();e.selectionChange(1)});if(T&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var d;u.attachListener(u,"mousedown",function(){d=1});u.attachListener(z.getDocumentElement(),"mouseup",function(){d&&J.call(e);d=0})}else{u.attachListener(CKEDITOR.env.ie?u:z.getDocumentElement(),"mouseup",J,e)}CKEDITOR.env.webkit&&u.attachListener(z,"keydown",function(b){switch(b.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:E(u)}},null,null,-1);u.attachListener(u,"keydown",B(e),null,null,-1)});e.on("setData",function(){e.unlockSelection();CKEDITOR.env.webkit&&f()});e.on("contentDomUnload",function(){e.unlockSelection()});if(CKEDITOR.env.ie9Compat){e.on("beforeDestroy",f,null,null,9)}e.on("dataReady",function(){delete e._.fakeSelection;delete e._.hiddenSelectionContainer;e.selectionChange(1)});e.on("loadSnapshot",function(){var d=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),c=e.editable().getLast(d);c&&c.hasAttribute("data-cke-hidden-sel")&&(c.remove(),CKEDITOR.env.gecko&&(d=e.editable().getFirst(d))&&d.is("br")&&d.getAttribute("_moz_editor_bogus_node")&&d.remove())},null,null,100);e.on("key",function(g){if("wysiwyg"==e.mode){var d=e.getSelection();if(d.isFake){var h=C[g.data.keyCode];if(h){return h({editor:e,selected:d.getSelectedElement(),selection:d,keyEvent:g})}}}})});CKEDITOR.on("instanceReady",function(h){function f(){var b=m.editable();if(b&&(b=F(b))){var d=m.document.$.getSelection();"None"==d.type||d.anchorNode!=b.$&&d.focusNode!=b.$||(l=G(d));k=b.getText();b.setText(I(k))}}function n(){var b=m.editable();b&&(b=F(b))&&(b.setText(k),l&&(D(m.document.$,l),l=null))}var m=h.editor,k,l;CKEDITOR.env.webkit&&(m.on("selectionChange",function(){var d=m.editable(),c=F(d);c&&(c.getCustomData("ready")?E(d):c.setCustomData("ready",1))},null,null,-1),m.on("beforeSetMode",function(){E(m.editable())},null,null,-1),m.on("beforeUndoImage",f),m.on("afterUndoImage",n),m.on("beforeGetData",f,null,null,0),m.on("getData",n))});CKEDITOR.editor.prototype.selectionChange=function(a){(a?N:J).call(this)};CKEDITOR.editor.prototype.getSelection=function(b){return !this._.savedSelection&&!this._.fakeSelection||b?(b=this.editable())&&"wysiwyg"==this.mode?new CKEDITOR.dom.selection(b):null:this._.savedSelection||this._.fakeSelection};CKEDITOR.editor.prototype.lockSelection=function(b){b=b||this.getSelection(1);return b.getType()!=CKEDITOR.SELECTION_NONE?(!b.isLocked&&b.lock(),this._.savedSelection=b,!0):!1};CKEDITOR.editor.prototype.unlockSelection=function(d){var c=this._.savedSelection;return c?(c.unlock(d),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 b=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);b.selectRanges([this]);return b};CKEDITOR.SELECTION_NONE=1;CKEDITOR.SELECTION_TEXT=2;CKEDITOR.SELECTION_ELEMENT=3;var r="function"!=typeof window.getSelection,j=1;CKEDITOR.dom.selection=function(h){if(h instanceof CKEDITOR.dom.selection){var e=h;h=h.root}var n=h instanceof CKEDITOR.dom.element;this.rev=e?e.rev:j++;this.document=h instanceof CKEDITOR.dom.document?h:h.getDocument();this.root=n?h:this.document.getBody();this.isLocked=0;this._={cache:{}};if(e){return CKEDITOR.tools.extend(this._.cache,e._.cache),this.isFake=e.isFake,this.isLocked=e.isLocked,this}h=this.getNative();var m,k;if(h){if(h.getRangeAt){m=(k=h.rangeCount&&h.getRangeAt(0))&&new CKEDITOR.dom.node(k.commonAncestorContainer)}else{try{k=h.createRange()}catch(l){}m=k&&CKEDITOR.dom.element.get(k.item&&k.item(0)||k.parentElement())}}if(!m||m.type!=CKEDITOR.NODE_ELEMENT&&m.type!=CKEDITOR.NODE_TEXT||!this.root.equals(m)&&!this.root.contains(m)){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 i={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.dom.selection.prototype={getNative:function(){return void 0!==this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=r?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:r?function(){var f=this._.cache;if(f.type){return f.type}var e=CKEDITOR.SELECTION_NONE;try{var l=this.getNative(),k=l.type;"Text"==k&&(e=CKEDITOR.SELECTION_TEXT);"Control"==k&&(e=CKEDITOR.SELECTION_ELEMENT);l.createRange().parentElement()&&(e=CKEDITOR.SELECTION_TEXT)}catch(h){}return f.type=e}:function(){var f=this._.cache;if(f.type){return f.type}var e=CKEDITOR.SELECTION_TEXT,h=this.getNative();if(!h||!h.rangeCount){e=CKEDITOR.SELECTION_NONE}else{if(1==h.rangeCount){var h=h.getRangeAt(0),g=h.startContainer;g==h.endContainer&&1==g.nodeType&&1==h.endOffset-h.startOffset&&i[g.childNodes[h.startOffset].nodeName.toLowerCase()]&&(e=CKEDITOR.SELECTION_ELEMENT)}}return f.type=e},getRanges:function(){var b=r?function(){function d(a){return(new CKEDITOR.dom.node(a)).getIndex()}var c=function(S,R){S=S.duplicate();S.collapse(R);var Q=S.parentElement();if(!Q.hasChildNodes()){return{container:Q,offset:0}}for(var z=Q.children,O,P,w=S.duplicate(),v=0,s=z.length-1,u=-1,a,q;v<=s;){if(u=Math.floor((v+s)/2),O=z[u],w.moveToElementText(O),a=w.compareEndPoints("StartToStart",S),0<a){s=u-1}else{if(0>a){v=u+1}else{return{container:Q,offset:d(O)}}}}if(-1==u||u==z.length-1&&0>a){w.moveToElementText(Q);w.setEndPoint("StartToStart",S);w=w.text.replace(/(\r\n|\r)/g,"\n").length;z=Q.childNodes;if(!w){return O=z[z.length-1],O.nodeType!=CKEDITOR.NODE_TEXT?{container:Q,offset:z.length}:{container:O,offset:O.nodeValue.length}}for(Q=z.length;0<w&&0<Q;){P=z[--Q],P.nodeType==CKEDITOR.NODE_TEXT&&(q=P,w-=P.nodeValue.length)}return{container:q,offset:-w}}w.collapse(0<a?!0:!1);w.setEndPoint(0<a?"StartToStart":"EndToStart",S);w=w.text.replace(/(\r\n|\r)/g,"\n").length;if(!w){return{container:Q,offset:d(O)+(0<a?0:1)}}for(;0<w;){try{P=O[0<a?"previousSibling":"nextSibling"],P.nodeType==CKEDITOR.NODE_TEXT&&(w-=P.nodeValue.length,q=P),O=P}catch(T){return{container:Q,offset:d(O)}}}return{container:q,offset:0<a?-w:q.nodeValue.length+w}};return function(){var k=this.getNative(),s=k&&k.createRange(),q=this.getType();if(!k){return[]}if(q==CKEDITOR.SELECTION_TEXT){return k=new CKEDITOR.dom.range(this.root),q=c(s,!0),k.setStart(new CKEDITOR.dom.node(q.container),q.offset),q=c(s),k.setEnd(new CKEDITOR.dom.node(q.container),q.offset),k.endContainer.getPosition(k.startContainer)&CKEDITOR.POSITION_PRECEDING&&k.endOffset<=k.startContainer.getIndex()&&k.collapse(),[k]}if(q==CKEDITOR.SELECTION_ELEMENT){for(var q=[],m=0;m<s.length;m++){for(var n=s.item(m),p=n.parentNode,l=0,k=new CKEDITOR.dom.range(this.root);l<p.childNodes.length&&p.childNodes[l]!=n;l++){}k.setStart(new CKEDITOR.dom.node(p),l);k.setEnd(new CKEDITOR.dom.node(p),l+1);q.push(k)}return q}return[]}}():function(){var f=[],e,l=this.getNative();if(!l){return f}for(var k=0;k<l.rangeCount;k++){var h=l.getRangeAt(k);e=new CKEDITOR.dom.range(this.root);e.setStart(new CKEDITOR.dom.node(h.startContainer),h.startOffset);e.setEnd(new CKEDITOR.dom.node(h.endContainer),h.endOffset);f.push(e)}return f};return function(a){var f=this._.cache,e=f.ranges;e||(f.ranges=e=new CKEDITOR.dom.rangeList(b.call(this)));return a?y(new CKEDITOR.dom.rangeList(e.slice())):e}}(),getStartElement:function(){var e=this._.cache;if(void 0!==e.startElement){return e.startElement}var d;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var f=this.getRanges()[0];if(f){if(f.collapsed){d=f.startContainer,d.type!=CKEDITOR.NODE_ELEMENT&&(d=d.getParent())}else{for(f.optimize();d=f.startContainer,f.startOffset==(d.getChildCount?d.getChildCount():d.getLength())&&!d.isBlockBoundary();){f.setStartAfter(d)}d=f.startContainer;if(d.type!=CKEDITOR.NODE_ELEMENT){return d.getParent()}if((d=d.getChild(f.startOffset))&&d.type==CKEDITOR.NODE_ELEMENT){for(f=d.getFirst();f&&f.type==CKEDITOR.NODE_ELEMENT;){d=f,f=f.getFirst()}}else{d=f.startContainer}}d=d.$}}return e.startElement=d?new CKEDITOR.dom.element(d):null},getSelectedElement:function(){var e=this._.cache;if(void 0!==e.selectedElement){return e.selectedElement}var d=this,f=CKEDITOR.tools.tryThese(function(){return d.getNative().createRange().item(0)},function(){for(var b=d.getRanges()[0].clone(),l,k,h=2;h&&!((l=b.getEnclosedNode())&&l.type==CKEDITOR.NODE_ELEMENT&&i[l.getName()]&&(k=l));h--){b.shrink(CKEDITOR.SHRINK_ELEMENT)}return k&&k.$});return e.selectedElement=f?new CKEDITOR.dom.element(f):null},getSelectedText:function(){var d=this._.cache;if(void 0!==d.selectedText){return d.selectedText}var c=this.getNative(),c=r?"Control"==c.type?"":c.createRange().text:c.toString();return d.selectedText=c},lock:function(){this.getRanges();this.getStartElement();this.getSelectedElement();this.getSelectedText();this._.cache.nativeSel=null;this.isLocked=1},unlock:function(f){if(this.isLocked){if(f){var e=this.getSelectedElement(),h=!e&&this.getRanges(),g=this.isFake}this.isLocked=0;this.reset();f&&(f=e||h[0]&&h[0].getCommonAncestor())&&f.getAscendant("body",1)&&(g?this.fake(e):e?this.selectElement(e):this.selectRanges(h))}},reset:function(){this._.cache={};this.isFake=0;var e=this.root.editor;if(e&&e._.fakeSelection&&this.rev==e._.fakeSelection.rev){delete e._.fakeSelection;var d=e._.hiddenSelectionContainer;if(d){var f=e.checkDirty();e.fire("lockSnapshot");d.remove();e.fire("unlockSnapshot");!f&&e.resetDirty()}delete e._.hiddenSelectionContainer}this.rev=j++},selectElement:function(d){var c=new CKEDITOR.dom.range(this.root);c.setStartBefore(d);c.setEndAfter(d);this.selectRanges([c])},selectRanges:function(R){var Q=this.root.editor,Q=Q&&Q._.hiddenSelectionContainer;this.reset();if(Q){for(var Q=this.root,P,v=0;v<R.length;++v){P=R[v],P.endContainer.equals(Q)&&(P.endOffset=Math.min(P.endOffset,Q.getChildCount()))}}if(R.length){if(this.isLocked){var z=CKEDITOR.document.getActive();this.unlock();this.selectRanges(R);this.lock();z&&!z.equals(this.root)&&z.focus()}else{var O;R:{var u,s;if(1==R.length&&!(s=R[0]).collapsed&&(O=s.getEnclosedNode())&&O.type==CKEDITOR.NODE_ELEMENT&&(s=s.clone(),s.shrink(CKEDITOR.SHRINK_ELEMENT,!0),(u=s.getEnclosedNode())&&u.type==CKEDITOR.NODE_ELEMENT&&(O=u),"false"==O.getAttribute("contenteditable"))){break R}O=void 0}if(O){this.fake(O)}else{if(r){s=CKEDITOR.dom.walker.whitespaces(!0);u=/\ufeff|\u00a0/;Q={table:1,tbody:1,tr:1};1<R.length&&(O=R[R.length-1],R[0].setEnd(O.endContainer,O.endOffset));O=R[0];R=O.collapsed;var q,d,l;if((P=O.getEnclosedNode())&&P.type==CKEDITOR.NODE_ELEMENT&&P.getName() in i&&(!P.is("a")||!P.getText())){try{l=P.$.createControlRange();l.addElement(P.$);l.select();return}catch(T){}}if(O.startContainer.type==CKEDITOR.NODE_ELEMENT&&O.startContainer.getName() in Q||O.endContainer.type==CKEDITOR.NODE_ELEMENT&&O.endContainer.getName() in Q){O.shrink(CKEDITOR.NODE_ELEMENT,!0),R=O.collapsed}l=O.createBookmark();Q=l.startNode;R||(z=l.endNode);l=O.document.$.body.createTextRange();l.moveToElementText(Q.$);l.moveStart("character",1);z?(u=O.document.$.body.createTextRange(),u.moveToElementText(z.$),l.setEndPoint("EndToEnd",u),l.moveEnd("character",-1)):(q=Q.getNext(s),d=Q.hasAscendant("pre"),q=!(q&&q.getText&&q.getText().match(u))&&(d||!Q.hasPrevious()||Q.getPrevious().is&&Q.getPrevious().is("br")),d=O.document.createElement("span"),d.setHtml(""),d.insertBefore(Q),q&&O.document.createText("\ufeff").insertBefore(Q));O.setStartBefore(Q);Q.remove();R?(q?(l.moveStart("character",-1),l.select(),O.document.$.selection.clear()):l.select(),O.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START),d.remove()):(O.setEndBefore(z),z.remove(),l.select())}else{z=this.getNative();if(!z){return}this.removeAllRanges();for(l=0;l<R.length;l++){if(l<R.length-1&&(q=R[l],d=R[l+1],u=q.clone(),u.setStart(q.endContainer,q.endOffset),u.setEnd(d.startContainer,d.startOffset),!u.collapsed&&(u.shrink(CKEDITOR.NODE_ELEMENT,!0),O=u.getCommonAncestor(),u=u.getEnclosedNode(),O.isReadOnly()||u&&u.isReadOnly()))){d.setStart(q.startContainer,q.startOffset);R.splice(l--,1);continue}O=R[l];d=this.document.$.createRange();O.collapsed&&CKEDITOR.env.webkit&&K(O)&&(q=this.root,E(q,!1),u=q.getDocument().createText("\u200b"),q.setCustomData("cke-fillingChar",u),O.insertNode(u),(q=u.getNext())&&!u.getPrevious()&&q.type==CKEDITOR.NODE_ELEMENT&&"br"==q.getName()?(E(this.root),O.moveToPosition(q,CKEDITOR.POSITION_BEFORE_START)):O.moveToPosition(u,CKEDITOR.POSITION_AFTER_END));d.setStart(O.startContainer.$,O.startOffset);try{d.setEnd(O.endContainer.$,O.endOffset)}catch(S){if(0<=S.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")){O.collapse(1),d.setEnd(O.endContainer.$,O.endOffset)}else{throw S}}z.addRange(d)}}this.reset();this.root.fire("selectionchange")}}}},fake:function(f){var e=this.root.editor;this.reset();H(e);var h=this._.cache,g=new CKEDITOR.dom.range(this.root);g.setStartBefore(f);g.setEndAfter(f);h.ranges=new CKEDITOR.dom.rangeList(g);h.selectedElement=h.startElement=f;h.type=CKEDITOR.SELECTION_ELEMENT;h.selectedText=h.nativeSel=null;this.isFake=1;this.rev=j++;e._.fakeSelection=this;this.root.fire("selectionchange")},isHidden:function(){var b=this.getCommonAncestor();b&&b.type==CKEDITOR.NODE_TEXT&&(b=b.getParent());return !(!b||!b.data("cke-hidden-sel"))},createBookmarks:function(b){b=this.getRanges().createBookmarks(b);this.isFake&&(b.isFake=1);return b},createBookmarks2:function(b){b=this.getRanges().createBookmarks2(b);this.isFake&&(b.isFake=1);return b},selectBookmarks:function(f){for(var e=[],l,k=0;k<f.length;k++){var h=new CKEDITOR.dom.range(this.root);h.moveToBookmark(f[k]);e.push(h)}f.isFake&&(l=e[0].getEnclosedNode(),l&&l.type==CKEDITOR.NODE_ELEMENT||(f.isFake=0));f.isFake?this.fake(l):this.selectRanges(e);return this},getCommonAncestor:function(){var b=this.getRanges();return b.length?b[0].startContainer.getCommonAncestor(b[b.length-1].endContainer):null},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var d=this.getNative();try{d&&d[r?"empty":"removeAllRanges"]()}catch(c){}this.reset()}}}}(),"use strict",CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function ah(f,e){for(var l,k;(f=f.getParent())&&!f.equals(e);){if(f.getAttribute("data-nostyle")){l=f}else{if(!k){var h=f.getAttribute("contentEditable");"false"==h?l=f:"true"==h&&(k=1)}}}return l}function ad(ay){var ax=ay.document;if(ay.collapsed){ax=W(this,ax),ay.insertNode(ax),ay.moveToPosition(ax,CKEDITOR.POSITION_BEFORE_END)}else{var av=this.element,aw=this._.definition,au,at=aw.ignoreReadonly,aq=at||aw.includeReadonly;null==aq&&(aq=ay.root.getCustomData("cke_includeReadonly"));var ar=CKEDITOR.dtd[av];ar||(au=!0,ar=CKEDITOR.dtd.span);ay.enlarge(CKEDITOR.ENLARGE_INLINE,1);ay.trim();var ao=ay.createBookmark(),G=ao.startNode,E=ao.endNode,F=G,am;if(!at){var ai=ay.getCommonAncestor(),at=ah(G,ai),ai=ah(E,ai);at&&(F=at.getNextSourceNode(!0));ai&&(E=ai)}for(F.getPosition(E)==CKEDITOR.POSITION_FOLLOWING&&(F=0);F;){at=!1;if(F.equals(E)){F=null,at=!0}else{var n=F.type==CKEDITOR.NODE_ELEMENT?F.getName():null,ai=n&&"false"==F.getAttribute("contentEditable"),D=n&&F.getAttribute("data-nostyle");if(n&&F.data("cke-bookmark")){F=F.getNextSourceNode(!0);continue}if(ai&&aq&&CKEDITOR.dtd.$block[n]){for(var an=F,v=af(an),ak=void 0,al=v.length,aj=0,an=al&&new CKEDITOR.dom.range(an.getDocument());aj<al;++aj){var ak=v[aj],c=CKEDITOR.filter.instances[ak.data("cke-filter")];if(c?c.check(this):1){an.selectNodeContents(ak),ad.call(this,an)}}}if(v=n?!ar[n]||D?0:ai&&!aq?0:(F.getPosition(E)|I)==I&&(!aw.childRule||aw.childRule(F)):1){if(!(v=F.getParent())||!(v.getDtd()||CKEDITOR.dtd.span)[av]&&!au||aw.parentRule&&!aw.parentRule(v)){at=!0}else{if(am||n&&CKEDITOR.dtd.$removeEmpty[n]&&(F.getPosition(E)|I)!=I||(am=ay.clone(),am.setStartBefore(F)),n=F.type,n==CKEDITOR.NODE_TEXT||ai||n==CKEDITOR.NODE_ELEMENT&&!F.getChildCount()){for(var n=F,ap;(at=!n.getNext(O))&&(ap=n.getParent(),ar[ap.getName()])&&(ap.getPosition(G)|K)==K&&(!aw.childRule||aw.childRule(ap));){n=ap}am.setEndAfter(n)}}}else{at=!0}F=F.getNextSourceNode(D||ai)}if(at&&am&&!am.collapsed){for(var at=W(this,ax),ai=at.hasAttributes(),D=am.getCommonAncestor(),n={},v={},ak={},al={},e,a,az;at&&D;){if(D.getName()==av){for(e in aw.attributes){!al[e]&&(az=D.getAttribute(a))&&(at.getAttribute(e)==az?v[e]=1:al[e]=1)}for(a in aw.styles){!ak[a]&&(az=D.getStyle(a))&&(at.getStyle(a)==az?n[a]=1:ak[a]=1)}}D=D.getParent()}for(e in v){at.removeAttribute(e)}for(a in n){at.removeStyle(a)}ai&&!at.hasAttributes()&&(at=null);at?(am.extractContents().appendTo(at),am.insertNode(at),J.call(this,at),at.mergeSiblings(),CKEDITOR.env.ie||at.$.normalize()):(at=new CKEDITOR.dom.element("span"),am.extractContents().appendTo(at),am.insertNode(at),J.call(this,at),at.remove(!0));am=null}}ay.moveToBookmark(ao);ay.shrink(CKEDITOR.SHRINK_TEXT);ay.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function ag(y){function x(){for(var b=new CKEDITOR.dom.elementPath(v.getParent()),z=new CKEDITOR.dom.elementPath(n.getParent()),k=null,l=null,m=0;m<b.elements.length;m++){var d=b.elements[m];if(d==b.block||d==b.blockLimit){break}p.checkElementRemovable(d,!0)&&(k=d)}for(m=0;m<z.elements.length;m++){d=z.elements[m];if(d==z.block||d==z.blockLimit){break}p.checkElementRemovable(d,!0)&&(l=d)}l&&n.breakParent(l);k&&v.breakParent(k)}y.enlarge(CKEDITOR.ENLARGE_INLINE,1);var w=y.createBookmark(),v=w.startNode;if(y.collapsed){for(var s=new CKEDITOR.dom.elementPath(v.getParent(),y.root),t,u=0,r;u<s.elements.length&&(r=s.elements[u])&&r!=s.block&&r!=s.blockLimit;u++){if(this.checkElementRemovable(r)){var q;y.collapsed&&(y.checkBoundaryOfElement(r,CKEDITOR.END)||(q=y.checkBoundaryOfElement(r,CKEDITOR.START)))?(t=r,t.match=q?"start":"end"):(r.mergeSiblings(),r.is(this.element)?P.call(this,r):N(r,i(this)[r.getName()]))}}if(t){r=v;for(u=0;;u++){q=s.elements[u];if(q.equals(t)){break}else{if(q.match){continue}else{q=q.clone()}}q.append(r);r=q}r["start"==t.match?"insertBefore":"insertAfter"](t)}}else{var n=w.endNode,p=this;x();for(s=v;!s.equals(n);){t=s.getNextSourceNode(),s.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(s)&&(s.getName()==this.element?P.call(this,s):N(s,i(this)[s.getName()]),t.type==CKEDITOR.NODE_ELEMENT&&t.contains(v)&&(x(),t=v.getNext())),s=t}}y.moveToBookmark(w);y.shrink(CKEDITOR.NODE_ELEMENT,!0)}function af(d){var c=[];d.forEach(function(b){if("true"==b.getAttribute("contenteditable")){return c.push(b),!1}},CKEDITOR.NODE_ELEMENT,!0);return c}function ae(d){var c=d.getEnclosedNode()||d.getCommonAncestor(!1,!0);(d=(new CKEDITOR.dom.elementPath(c,d.root)).contains(this.element,1))&&!d.isReadOnly()&&L(d,this)}function Z(f){var e=f.getCommonAncestor(!0,!0);if(f=(new CKEDITOR.dom.elementPath(e,f.root)).contains(this.element,1)){var e=this._.definition,l=e.attributes;if(l){for(var k in l){f.removeAttribute(k,l[k])}}if(e.styles){for(var h in e.styles){e.styles.hasOwnProperty(h)&&f.removeStyle(h)}}}}function Y(h){var e=h.createBookmark(!0),n=h.createIterator();n.enforceRealBlocks=!0;this._.enterMode&&(n.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var m,k=h.document,l;m=n.getNextParagraph();){!m.isReadOnly()&&(n.activeFilter?n.activeFilter.check(this):1)&&(l=W(this,k,m),aa(m,l))}h.moveToBookmark(e)}function ac(f){var e=f.createBookmark(1),l=f.createIterator();l.enforceRealBlocks=!0;l.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var k,h;k=l.getNextParagraph();){this.checkElementRemovable(k)&&(k.is("pre")?((h=this._.enterMode==CKEDITOR.ENTER_BR?null:f.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&k.copyAttributes(h),aa(k,h)):P.call(this,k))}f.moveToBookmark(e)}function aa(l,g){var s=!g;s&&(g=l.getDocument().createElement("div"),l.copyAttributes(g));var r=g&&g.is("pre"),p=l.is("pre"),q=!r&&p;if(r&&!p){p=g;(q=l.getBogus())&&q.remove();q=l.getHtml();q=ab(q,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");q=q.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");q=q.replace(/([ \t\n\r]+| )/g," ");q=q.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var n=l.getDocument().createElement("div");n.append(p);p.$.outerHTML="<pre>"+q+"</pre>";p.copyAttributes(n.getFirst());p=n.getFirst().remove()}else{p.setHtml(q)}g=p}else{q?g=V(s?[l.getHtml()]:X(l),g):l.moveChildren(g)}g.replace(l);if(r){var s=g,m;(m=s.getPrevious(M))&&m.type==CKEDITOR.NODE_ELEMENT&&m.is("pre")&&(r=ab(m.getHtml(),/\n$/,"")+"\n\n"+ab(s.getHtml(),/^\n/,""),CKEDITOR.env.ie?s.$.outerHTML="<pre>"+r+"</pre>":s.setHtml(r),m.remove())}else{s&&T(g)}}function X(d){var c=[];ab(d.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(f,e,g){return e+"</pre>"+g+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(b,e){c.push(e)});return c}function ab(f,e,l){var k="",h="";f=f.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(g,d,m){d&&(k=d);m&&(h=m);return""});return k+f.replace(e,l)+h}function V(h,g){var n;1<h.length&&(n=new CKEDITOR.dom.documentFragment(g.getDocument()));for(var m=0;m<h.length;m++){var k=h[m],k=k.replace(/(\r\n|\r)/g,"\n"),k=ab(k,/^[ \t]*\n/,""),k=ab(k,/\n$/,""),k=ab(k,/^[ \t]+|[ \t]+$/g,function(d,c){return 1==d.length?" ":c?" "+CKEDITOR.tools.repeat(" ",d.length-1):CKEDITOR.tools.repeat(" ",d.length-1)+" "}),k=k.replace(/\n/g,"<br>"),k=k.replace(/[ \t]{2,}/g,function(b){return CKEDITOR.tools.repeat(" ",b.length-1)+" "});if(n){var l=g.clone();l.setHtml(k);n.append(l)}else{g.setHtml(k)}}return n||g}function P(l,k){var s=this._.definition,r=s.attributes,s=s.styles,n=i(this)[l.getName()],p=CKEDITOR.tools.isEmpty(r)&&CKEDITOR.tools.isEmpty(s),q;for(q in r){("class"==q||this._.definition.fullMatch)&&l.getAttribute(q)!=o(q,r[q])||k&&"data-"==q.slice(0,5)||(p=l.hasAttribute(q),l.removeAttribute(q))}for(var m in s){this._.definition.fullMatch&&l.getStyle(m)!=o(m,s[m],!0)||(p=p||!!l.getStyle(m),l.removeStyle(m))}N(l,n,j[l.getName()]);p&&(this._.definition.alwaysRemoveElement?T(l,1):!CKEDITOR.dtd.$block[l.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!l.hasAttributes()?T(l):l.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function J(h){for(var e=i(this),n=h.getElementsByTag(this.element),m,k=n.count();0<=--k;){m=n.getItem(k),m.isReadOnly()||P.call(this,m,!0)}for(var l in e){if(l!=this.element){for(n=h.getElementsByTag(l),k=n.count()-1;0<=k;k--){m=n.getItem(k),m.isReadOnly()||N(m,e[l])}}}}function N(k,h,q){if(h=h&&h.attributes){for(var p=0;p<h.length;p++){var l=h[p][0],m;if(m=k.getAttribute(l)){var n=h[p][1];(null===n||n.test&&n.test(m)||"string"==typeof n&&m==n)&&k.removeAttribute(l)}}}q||T(k)}function T(f,e){if(!f.hasAttributes()||e){if(CKEDITOR.dtd.$block[f.getName()]){var h=f.getPrevious(M),g=f.getNext(M);!h||h.type!=CKEDITOR.NODE_TEXT&&h.isBlockBoundary({br:1})||f.append("br",1);!g||g.type!=CKEDITOR.NODE_TEXT&&g.isBlockBoundary({br:1})||f.append("br");f.remove(!0)}else{h=f.getFirst(),g=f.getLast(),f.remove(!0),h&&(h.type==CKEDITOR.NODE_ELEMENT&&h.mergeSiblings(),g&&!h.equals(g)&&g.type==CKEDITOR.NODE_ELEMENT&&g.mergeSiblings())}}}function W(f,e,h){var g;g=f.element;"*"==g&&(g="span");g=new CKEDITOR.dom.element(g,e);h&&h.copyAttributes(g);g=L(g,f);e.getCustomData("doc_processing_style")&&g.hasAttribute("id")?g.removeAttribute("id"):e.setCustomData("doc_processing_style",1);return g}function L(f,e){var l=e._.definition,k=l.attributes,l=CKEDITOR.style.getStyleText(l);if(k){for(var h in k){f.setAttribute(h,k[h])}}l&&f.setAttribute("style",l);return f}function H(e,d){for(var f in e){e[f]=e[f].replace(Q,function(b,g){return d[g]})}}function i(l){if(l._.overrides){return l._.overrides}var k=l._.overrides={},s=l._.definition.overrides;if(s){CKEDITOR.tools.isArray(s)||(s=[s]);for(var r=0;r<s.length;r++){var n=s[r],p,q;"string"==typeof n?p=n.toLowerCase():(p=n.element?n.element.toLowerCase():l.element,q=n.attributes);n=k[p]||(k[p]={});if(q){var n=n.attributes=n.attributes||[],m;for(m in q){n.push([m.toLowerCase(),q[m]])}}}}return k}function o(f,e,h){var g=new CKEDITOR.dom.element("span");g[h?"setStyle":"setAttribute"](f,e);return g[h?"getStyle":"getAttribute"](f)}function U(k,h,q){var p=k.document,l=k.getRanges();h=h?this.removeFromRange:this.applyToRange;for(var m,n=l.createIterator();m=n.getNextRange();){h.call(this,m,q)}k.selectRanges(l);p.removeCustomData("doc_processing_style")}var j={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},R={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},S=/\s*(?:;\s*|$)/,Q=/#\((.+?)\)/g,O=CKEDITOR.dom.walker.bookmark(0,1),M=CKEDITOR.dom.walker.whitespaces(1);CKEDITOR.style=function(e,d){if("string"==typeof e.type){return new CKEDITOR.style.customHandlers[e.type](e)}var f=e.attributes;f&&f.style&&(e.styles=CKEDITOR.tools.extend({},e.styles,CKEDITOR.tools.parseCssText(f.style)),delete f.style);d&&(e=CKEDITOR.tools.clone(e),H(e.attributes,d),H(e.styles,d));f=this.element=e.element?"string"==typeof e.element?e.element.toLowerCase():e.element:"*";this.type=e.type||(j[f]?CKEDITOR.STYLE_BLOCK:R[f]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);"object"==typeof this.element&&(this.type=CKEDITOR.STYLE_OBJECT);this._={definition:e}};CKEDITOR.style.prototype={apply:function(d){if(d instanceof CKEDITOR.dom.document){return U.call(this,d.getSelection())}if(this.checkApplicable(d.elementPath(),d)){var c=this._.enterMode;c||(this._.enterMode=d.activeEnterMode);U.call(this,d.getSelection(),0,d);this._.enterMode=c}},remove:function(d){if(d instanceof CKEDITOR.dom.document){return U.call(this,d.getSelection(),1)}if(this.checkApplicable(d.elementPath(),d)){var c=this._.enterMode;c||(this._.enterMode=d.activeEnterMode);U.call(this,d.getSelection(),1,d);this._.enterMode=c}},applyToRange:function(b){this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?ad:this.type==CKEDITOR.STYLE_BLOCK?Y:this.type==CKEDITOR.STYLE_OBJECT?ae:null;return this.applyToRange(b)},removeFromRange:function(b){this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?ag:this.type==CKEDITOR.STYLE_BLOCK?ac:this.type==CKEDITOR.STYLE_OBJECT?Z:null;return this.removeFromRange(b)},applyToObject:function(b){L(b,this)},checkActive:function(h,e){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(h.block||h.blockLimit,!0,e);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var n=h.elements,m=0,k;m<n.length;m++){if(k=n[m],this.type!=CKEDITOR.STYLE_INLINE||k!=h.block&&k!=h.blockLimit){if(this.type==CKEDITOR.STYLE_OBJECT){var l=k.getName();if(!("string"==typeof this.element?l==this.element:l in this.element)){continue}}if(this.checkElementRemovable(k,!0,e)){return !0}}}}return !1},checkApplicable:function(e,d,f){d&&d instanceof CKEDITOR.filter&&(f=d);if(f&&!f.check(this)){return !1}switch(this.type){case CKEDITOR.STYLE_OBJECT:return !!e.contains(this.element);case CKEDITOR.STYLE_BLOCK:return !!e.blockLimit.getDtd()[this.element]}return !0},checkElementMatch:function(l,k){var s=this._.definition;if(!l||!s.ignoreReadonly&&l.isReadOnly()){return !1}var r=l.getName();if("string"==typeof this.element?r==this.element:r in this.element){if(!k&&!l.hasAttributes()){return !0}if(r=s._AC){s=r}else{var r={},n=0,p=s.attributes;if(p){for(var q in p){n++,r[q]=p[q]}}if(q=CKEDITOR.style.getStyleText(s)){r.style||n++,r.style=q}r._length=n;s=s._AC=r}if(s._length){for(var m in s){if("_length"!=m){n=l.getAttribute(m)||"";if("style"==m){l:{r=s[m];"string"==typeof r&&(r=CKEDITOR.tools.parseCssText(r));"string"==typeof n&&(n=CKEDITOR.tools.parseCssText(n,!0));q=void 0;for(q in r){if(!(q in n)||n[q]!=r[q]&&"inherit"!=r[q]&&"inherit"!=n[q]){r=!1;break l}}r=!0}}else{r=s[m]==n}if(r){if(!k){return !0}}else{if(k){return !1}}}}if(k){return !0}}else{return !0}}return !1},checkElementRemovable:function(f,e,l){if(this.checkElementMatch(f,e,l)){return !0}if(e=i(this)[f.getName()]){var k;if(!(e=e.attributes)){return !0}for(l=0;l<e.length;l++){if(k=e[l][0],k=f.getAttribute(k)){var h=e[l][1];if(null===h){return !0}if("string"==typeof h){if(k==h){return !0}}else{if(h.test(k)){return !0}}}}}return !1},buildPreview:function(h){var e=this._.definition,n=[],m=e.element;"bdo"==m&&(m="span");var n=["<",m],k=e.attributes;if(k){for(var l in k){n.push(" ",l,'="',k[l],'"')}}(k=CKEDITOR.style.getStyleText(e))&&n.push(' style="',k,'"');n.push(">",h||e.name,"</",m,">");return n.join("")},getDefinition:function(){return this._.definition}};CKEDITOR.style.getStyleText=function(k){var h=k._ST;if(h){return h}var h=k.styles,q=k.attributes&&k.attributes.style||"",p="";q.length&&(q=q.replace(S,";"));for(var l in h){var m=h[l],n=(l+":"+m).replace(S,";");"inherit"==m?p+=n:q+=n}q.length&&(q=CKEDITOR.tools.normalizeCssText(q,!0));return k._ST=q+p};CKEDITOR.style.customHandlers={};CKEDITOR.style.addCustomHandler=function(d){var c=function(b){this._={definition:b};this.setup&&this.setup(b)};c.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},d,!0);return this.customHandlers[d.type]=c};var I=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,K=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(b,c){this.requiredContent=this.allowedContent=this.style=b;CKEDITOR.tools.extend(this,c,!0)},CKEDITOR.styleCommand.prototype.exec=function(b){b.focus();this.state==CKEDITOR.TRISTATE_OFF?b.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&b.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(d,f,c){CKEDITOR.stylesSet.addExternal(d,f,"");CKEDITOR.stylesSet.load(d,c)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(d,f){var c=this._.styleStateChangeCallbacks;c||(c=this._.styleStateChangeCallbacks=[],this.on("selectionChange",function(g){for(var i=0;i<c.length;i++){var h=c[i],b=h.style.checkActive(g.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;h.fn.call(this,b)}}));c.push({style:d,fn:f})},applyStyle:function(b){b.apply(this)},removeStyle:function(b){b.remove(this)},getStylesSet:function(f){if(this._.stylesDefinitions){f(this._.stylesDefinitions)}else{var g=this,d=g.config.stylesCombo_stylesSet||g.config.stylesSet;if(!1===d){f(null)}else{if(d instanceof Array){g._.stylesDefinitions=d,f(d)}else{d||(d="default");var d=d.split(":"),h=d[0];CKEDITOR.stylesSet.addExternal(h,d[1]?d.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(h,function(a){g._.stylesDefinitions=a[h];f(g._.stylesDefinitions)})}}}}}),CKEDITOR.dom.comment=function(b,c){"string"==typeof b&&(b=(c?c.$:document).createComment(b));CKEDITOR.dom.domObject.call(this,b)},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 d={},f={},c;for(c in CKEDITOR.dtd.$blockLimit){c in CKEDITOR.dtd.$list||(d[c]=1)}for(c in CKEDITOR.dtd.$block){c in CKEDITOR.dtd.$blockLimit||c in CKEDITOR.dtd.$empty||(f[c]=1)}CKEDITOR.dom.elementPath=function(t,r){var j=null,i=null,q=[],n=t,e;r=r||t.getDocument().getBody();do{if(n.type==CKEDITOR.NODE_ELEMENT){q.push(n);if(!this.lastElement&&(this.lastElement=n,n.is(CKEDITOR.dtd.$object)||"false"==n.getAttribute("contenteditable"))){continue}if(n.equals(r)){break}if(!i&&(e=n.getName(),"true"==n.getAttribute("contenteditable")?i=n:!j&&f[e]&&(j=n),d[e])){var o;if(o=!j){if(e="div"==e){d:{e=n.getChildren();o=0;for(var a=e.count();o<a;o++){var u=e.getItem(o);if(u.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[u.getName()]){e=!0;break d}}e=!1}e=!e}o=e}o?j=n:i=n}}}while(n=n.getParent());i||(i=r);this.block=j;this.blockLimit=i;this.root=r;this.elements=q}}(),CKEDITOR.dom.elementPath.prototype={compare:function(d){var f=this.elements;d=d&&d.elements;if(!d||f.length!=d.length){return !1}for(var c=0;c<f.length;c++){if(!f[c].equals(d[c])){return !1}}return !0},contains:function(g,i,f){var l;"string"==typeof g&&(l=function(a){return a.getName()==g});g instanceof CKEDITOR.dom.element?l=function(a){return a.equals(g)}:CKEDITOR.tools.isArray(g)?l=function(a){return -1<CKEDITOR.tools.indexOf(g,a.getName())}:"function"==typeof g?l=g:"object"==typeof g&&(l=function(a){return a.getName() in g});var j=this.elements,h=j.length;i&&h--;f&&(j=Array.prototype.slice.call(j,0),j.reverse());for(i=0;i<h;i++){if(l(j[i])){return j[i]}}return null},isContextFor:function(b){var c;return b in CKEDITOR.dtd.$block?(c=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit,!!c.getDtd()[b]):!0},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},CKEDITOR.dom.text=function(b,c){"string"==typeof b&&(b=(c?c.$:document).createTextNode(b));this.$=b},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(b){this.$.nodeValue=b},split:function(g){var i=this.$.parentNode,f=i.childNodes.length,l=this.getLength(),j=this.getDocument(),h=new CKEDITOR.dom.text(this.$.splitText(g),j);i.childNodes.length==f&&(g>=l?(h=j.createText(""),h.insertAfter(this)):(g=j.createText(""),g.insertAfter(h),g.remove()));return h},substring:function(b,c){return"number"!=typeof c?this.$.nodeValue.substr(b):this.$.nodeValue.substring(b,c)}}),function(){function b(i,o,n){var m=i.serializable,g=o[n?"endContainer":"startContainer"],k=n?"endOffset":"startOffset",j=m?o.document.getById(i.startNode):i.startNode;i=m?o.document.getById(i.endNode):i.endNode;g.equals(j.getPrevious())?(o.startOffset=o.startOffset-g.getLength()-i.getPrevious().getLength(),g=i.getNext()):g.equals(i.getPrevious())&&(o.startOffset-=g.getLength(),g=i.getNext());g.equals(j.getParent())&&o[k]++;g.equals(i.getParent())&&o[k]++;o[n?"endContainer":"startContainer"]=g;return o}CKEDITOR.dom.rangeList=function(d){if(d instanceof CKEDITOR.dom.rangeList){return d}d?d instanceof CKEDITOR.dom.range&&(d=[d]):d=[];return CKEDITOR.tools.extend(d,c)};var c={createIterator:function(){var f=this,i=CKEDITOR.dom.walker.bookmark(),h=[],g;return{getNextRange:function(d){g=void 0===g?0:g+1;var k=f[g];if(k&&1<f.length){if(!g){for(var e=f.length-1;0<=e;e--){h.unshift(f[e].createBookmark(!0))}}if(d){for(var a=0;f[g+a+1];){var j=k.document;d=0;e=j.getById(h[a].endNode);for(j=j.getById(h[a+1].startNode);;){e=e.getNextSourceNode(!1);if(j.equals(e)){d=1}else{if(i(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()){continue}}break}if(!d){break}a++}}for(k.moveToBookmark(h.shift());a--;){e=f[++g],e.moveToBookmark(h.shift()),k.setEnd(e.endContainer,e.endOffset)}}return k}}},createBookmarks:function(a){for(var i=[],h,g=0;g<this.length;g++){i.push(h=this[g].createBookmark(a,!0));for(var f=g+1;f<this.length;f++){this[f]=b(h,this[f]),this[f]=b(h,this[f],!0)}}return i},createBookmarks2:function(e){for(var g=[],f=0;f<this.length;f++){g.push(this[f].createBookmark2(e))}return g},moveToBookmarks:function(d){for(var e=0;e<this.length;e++){this[e].moveToBookmark(d[e])}}}}(),function(){function r(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function n(a){var s=CKEDITOR.skin["ua_"+a],l=CKEDITOR.env;if(s){for(var s=s.split(",").sort(function(d,c){return d>c?-1:1}),h=0,k;h<s.length;h++){if(k=s[h],l.ie&&(k.replace(/^ie/,"")==l.version||l.quirks&&"iequirks"==k)&&(k="ie"),l[k]){a+="_"+s[h];break}}}return CKEDITOR.getUrl(r()+a+".css")}function q(d,c){i[d]||(CKEDITOR.document.appendStyleSheet(n(d)),i[d]=1);c&&c()}function p(d){var c=d.getById(g);c||(c=d.getHead().append("style"),c.setAttribute("id",g),c.setAttribute("type","text/css"));return c}function o(l,k,w){var v,t,u;if(CKEDITOR.env.webkit){for(k=k.split("}").slice(0,-1),t=0;t<k.length;t++){k[t]=k[t].split("{")}}for(var s=0;s<l.length;s++){if(CKEDITOR.env.webkit){for(t=0;t<k.length;t++){u=k[t][1];for(v=0;v<w.length;v++){u=u.replace(w[v][0],w[v][1])}l[s].$.sheet.addRule(k[t][0],u)}}else{u=k;for(v=0;v<w.length;v++){u=u.replace(w[v][0],w[v][1])}CKEDITOR.env.ie&&11>CKEDITOR.env.version?l[s].$.styleSheet.cssText+=u:l[s].$.innerHTML+=u}}}var i={};CKEDITOR.skin={path:r,loadPart:function(b,a){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(r()+"skin.js"),function(){q(b,a)}):q(b,a)},getPath:function(b){return CKEDITOR.getUrl(n(b))},icons:{},addIcon:function(f,e,k,h){f=f.toLowerCase();this.icons[f]||(this.icons[f]={path:e,offset:k||0,bgsize:h||"16px"})},getIconStyle:function(k,h,u,t,l){var s;k&&(k=k.toLowerCase(),h&&(s=this.icons[k+"-rtl"]),s||(s=this.icons[k]));k=u||s&&s.path||"";t=t||s&&s.offset;l=l||s&&s.bgsize||"16px";return k&&"background-image:url("+CKEDITOR.getUrl(k)+");background-position:0 "+t+"px;background-size:"+l+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(d){var c=p(CKEDITOR.document);return(this.setUiColor=function(b){this.uiColor=b;var l=CKEDITOR.skin.chameleon,h="",f="";"function"==typeof l&&(h=l(this,"editor"),f=l(this,"panel"));b=[[j,b]];o([c],h,b);o(m,f,b)}).call(this,d)}});var g="cke_ui_color",m=[],j=/\$color/g;CKEDITOR.on("instanceLoaded",function(d){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var c=d.editor;d=function(b){b=(b.data[0]||b.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();if(!b.getById("cke_ui_color")){b=p(b);m.push(b);var f=c.getUiColor();f&&o([b],CKEDITOR.skin.chameleon(c,"panel"),[[j,f]])}};c.on("panelShow",d);c.on("menuShow",d);c.config.uiColor&&c.setUiColor(c.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit){CKEDITOR.env.hc=!1}else{var f=CKEDITOR.dom.element.createFromHtml('<div style="width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"></div>',CKEDITOR.document);f.appendTo(CKEDITOR.document.getHead());try{var g=f.getComputedStyle("border-top-color"),d=f.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!g||g!=d)}catch(h){CKEDITOR.env.hc=!1}f.remove()}CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc");CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(f=CKEDITOR._.pending){for(delete CKEDITOR._.pending,g=0;g<f.length;g++){CKEDITOR.editor.prototype.constructor.apply(f[g][0],f[g][1]),CKEDITOR.add(f[g][0])}}}(),CKEDITOR.skin.name="moono",CKEDITOR.skin.ua_editor="ie,iequirks,ie7,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie7,ie8",CKEDITOR.skin.chameleon=function(){var d=function(){return function(k,i){for(var p=k.match(/[^#]./g),j=0;3>j;j++){var o=p,n=j,g;g=parseInt(p[j],16);g=("0"+(0>i?0|g*(1+i):0|g+(255-g)*i).toString(16)).slice(-2);o[n]=g}return"#"+p.join("")}}(),f=function(){var b=new CKEDITOR.template("background:#{to};background-image:linear-gradient(to bottom,{from},{to});filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='{from}',endColorstr='{to}');");return function(a,g){return b.output({from:a,to:g})}}(),c={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ {defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_bottom [{defaultGradient}border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [{defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [{defaultGradient}outline-color:{defaultBorder};border-top-color:{defaultBorder};] {id} .cke_dialog_tab [{lightGradient}border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [{mediumGradient}] {id} .cke_dialog_contents [border-top-color:{defaultBorder};] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [background:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};] {id} .cke_toolgroup [{lightGradient}border-color:{defaultBorder};] {id} a.cke_button_off:hover, {id} a.cke_button_off:focus, {id} a.cke_button_off:active [{mediumGradient}] {id} .cke_button_on [{ckeButtonOn}] {id} .cke_toolbar_separator [background-color: {ckeToolbarSeparator};] {id} .cke_combo_button [border-color:{defaultBorder};{lightGradient}] {id} a.cke_combo_button:hover, {id} a.cke_combo_button:focus, {id} .cke_combo_on a.cke_combo_button [border-color:{defaultBorder};{mediumGradient}] {id} .cke_path_item [color:{elementsPathColor};] {id} a.cke_path_item:hover, {id} a.cke_path_item:focus, {id} a.cke_path_item:active [background-color:{elementsPathBg};] {id}.cke_panel [border-color:{defaultBorder};] "),panel:new CKEDITOR.template(".cke_panel_grouptitle [{lightGradient}border-color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background-color:{menubuttonIconHover};] .cke_menuseparator [background-color:{menubuttonIcon};] a:hover.cke_colorbox, a:focus.cke_colorbox, a:active.cke_colorbox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_colormore, a:focus.cke_colorauto, a:focus.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defaultBorder};] ")};return function(e,b){var a=e.uiColor,a={id:"."+e.id,defaultBorder:d(a,-0.1),defaultGradient:f(d(a,0.9),a),lightGradient:f(d(a,1),d(a,0.7)),mediumGradient:f(d(a,0.8),d(a,0.5)),ckeButtonOn:f(d(a,0.6),d(a,0.7)),ckeResizer:d(a,-0.4),ckeToolbarSeparator:d(a,0.5),ckeColorauto:d(a,0.8),dialogBody:d(a,0.7),dialogTabSelected:f("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:d(a,-0.6),elementsPathBg:a,menubuttonIcon:d(a,0.5),menubuttonIconHover:d(a,0.3)};return c[b].output(a).replace(/\[/g,"{").replace(/\]/g,"}")}}(),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var i=function(e){this._||(this._={});this._["default"]=this._.initValue=e["default"]||"";this._.required=e.required||!1;for(var d=[this._],f=1;f<arguments.length;f++){d.push(arguments[f])}d.push(!0);CKEDITOR.tools.extend.apply(CKEDITOR.tools,d);return this._},n={build:function(e,d,f){return new CKEDITOR.ui.dialog.textInput(e,d,f)}},g={build:function(e,d,f){return new CKEDITOR.ui.dialog[d.type](e,d,f)}},p={isChanged:function(){return this.getValue()!=this.getInitValue()},reset:function(b){this.setValue(this.getInitValue(),b)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._["default"]},getInitValue:function(){return this._.initValue}},o=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(d,c){this._.domOnChangeRegistered||(d.on("load",function(){this.getInputElement().on("change",function(){d.parts.dialog.isVisible()&&this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0);this.on("change",c)}},!0),j=/^on([A-Z]\w+)/,h=function(d){for(var c in d){(j.test(c)||"title"==c||"type"==c)&&delete d[c]}return d},m=function(b){b=b.data.getKeystroke();b==CKEDITOR.SHIFT+CKEDITOR.ALT+36?this.setDirectionMarker("ltr"):b==CKEDITOR.SHIFT+CKEDITOR.ALT+35&&this.setDirectionMarker("rtl")};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(a,t,s,q){if(!(4>arguments.length)){var r=i.call(this,t);r.labelId=CKEDITOR.tools.getNextId()+"_label";this._.children=[];var l={role:t.role||"presentation"};t.includeLabel&&(l["aria-labelledby"]=r.labelId);CKEDITOR.ui.dialog.uiElement.call(this,a,t,s,"div",null,l,function(){var b=[],c=t.required?" cke_required":"";"horizontal"!=t.labelLayout?b.push('<label class="cke_dialog_ui_labeled_label'+c+'" ',' id="'+r.labelId+'"',r.inputId?' for="'+r.inputId+'"':"",(t.labelStyle?' style="'+t.labelStyle+'"':"")+">",t.label,"</label>",'<div class="cke_dialog_ui_labeled_content"',t.controlStyle?' style="'+t.controlStyle+'"':"",' role="presentation">',q.call(this,a,t),"</div>"):(c={type:"hbox",widths:t.widths,padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+c+'" id="'+r.labelId+'" for="'+r.inputId+'"'+(t.labelStyle?' style="'+t.labelStyle+'"':"")+">"+CKEDITOR.tools.htmlEncode(t.label)+"</label>"},{type:"html",html:'<span class="cke_dialog_ui_labeled_content"'+(t.controlStyle?' style="'+t.controlStyle+'"':"")+">"+q.call(this,a,t)+"</span>"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(a,c,b));return b.join("")})}},textInput:function(a,v,u){if(!(3>arguments.length)){i.call(this,v);var s=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",q={"class":"cke_dialog_ui_input_"+v.type,id:s,type:v.type};v.validate&&(this.validate=v.validate);v.maxLength&&(q.maxlength=v.maxLength);v.size&&(q.size=v.size);v.inputStyle&&(q.style=v.inputStyle);var f=this,r=!1;a.on("load",function(){f.getInputElement().on("keydown",function(b){13==b.data.getKeystroke()&&(r=!0)});f.getInputElement().on("keyup",function(b){13==b.data.getKeystroke()&&r&&(a.getButton("ok")&&setTimeout(function(){a.getButton("ok").click()},0),r=!1);f.bidi&&m.call(f,b)},null,null,1000)});CKEDITOR.ui.dialog.labeledElement.call(this,a,v,u,function(){var d=['<div class="cke_dialog_ui_input_',v.type,'" role="presentation"'];v.width&&d.push('style="width:'+v.width+'" ');d.push("><input ");q["aria-labelledby"]=this._.labelId;this._.required&&(q["aria-required"]=this._.required);for(var c in q){d.push(c+'="'+q[c]+'" ')}d.push(" /></div>");return d.join("")})}},textarea:function(a,t,s){if(!(3>arguments.length)){i.call(this,t);var r=this,q=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",f={};t.validate&&(this.validate=t.validate);f.rows=t.rows||5;f.cols=t.cols||20;f["class"]="cke_dialog_ui_input_textarea "+(t["class"]||"");"undefined"!=typeof t.inputStyle&&(f.style=t.inputStyle);t.dir&&(f.dir=t.dir);if(r.bidi){a.on("load",function(){r.getInputElement().on("keyup",m)},r)}CKEDITOR.ui.dialog.labeledElement.call(this,a,t,s,function(){f["aria-labelledby"]=this._.labelId;this._.required&&(f["aria-required"]=this._.required);var d=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',q,'" '],c;for(c in f){d.push(c+'="'+CKEDITOR.tools.htmlEncode(f[c])+'" ')}d.push(">",CKEDITOR.tools.htmlEncode(r._["default"]),"</textarea></div>");return d.join("")})}},checkbox:function(a,l,k){if(!(3>arguments.length)){var e=i.call(this,l,{"default":!!l["default"]});l.validate&&(this.validate=l.validate);CKEDITOR.ui.dialog.uiElement.call(this,a,l,k,"span",null,null,function(){var b=CKEDITOR.tools.extend({},l,{id:l.id?l.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),q=[],c=CKEDITOR.tools.getNextId()+"_label",f={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":c};h(b);l["default"]&&(f.checked="checked");"undefined"!=typeof b.inputStyle&&(b.style=b.inputStyle);e.checkbox=new CKEDITOR.ui.dialog.uiElement(a,b,q,"input",null,f);q.push(' <label id="',c,'" for="',f.id,'"'+(l.labelStyle?' style="'+l.labelStyle+'"':"")+">",CKEDITOR.tools.htmlEncode(l.label),"</label>");return q.join("")})}},radio:function(a,r,q){if(!(3>arguments.length)){i.call(this,r);this._["default"]||(this._["default"]=this._.initValue=r.items[0][1]);r.validate&&(this.validate=r.validate);var k=[],l=this;r.role="radiogroup";r.includeLabel=!0;CKEDITOR.ui.dialog.labeledElement.call(this,a,r,q,function(){for(var B=[],s=[],f=(r.id?r.id:CKEDITOR.tools.getNextId())+"_radio",e=0;e<r.items.length;e++){var E=r.items[e],D=void 0!==E[2]?E[2]:E[0],t=void 0!==E[1]?E[1]:E[0],C=CKEDITOR.tools.getNextId()+"_radio_input",c=C+"_label",C=CKEDITOR.tools.extend({},r,{id:C,title:null,type:null},!0),D=CKEDITOR.tools.extend({},C,{title:D},!0),v={type:"radio","class":"cke_dialog_ui_radio_input",name:f,value:t,"aria-labelledby":c},b=[];l._["default"]==t&&(v.checked="checked");h(C);h(D);"undefined"!=typeof C.inputStyle&&(C.style=C.inputStyle);C.keyboardFocusable=!0;k.push(new CKEDITOR.ui.dialog.uiElement(a,C,b,"input",null,v));b.push(" ");new CKEDITOR.ui.dialog.uiElement(a,D,b,"label",null,{id:c,"for":v.id},E[0]);B.push(b.join(""))}new CKEDITOR.ui.dialog.hbox(a,k,B,s);return s.join("")});this._.children=k}},button:function(a,t,s){if(arguments.length){"function"==typeof t&&(t=t(a.getParentEditor()));i.call(this,t,{disabled:t.disabled||!1});CKEDITOR.event.implementOn(this);var q=this;a.on("load",function(){var b=this.getElement();(function(){b.on("click",function(c){q.click();c.data.preventDefault()});b.on("keydown",function(c){c.data.getKeystroke() in {32:1}&&(q.click(),c.data.preventDefault())})})();b.unselectable()},this);var r=CKEDITOR.tools.extend({},t);delete r.style;var l=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,a,r,s,"a",null,{style:t.style,href:"javascript:void(0)",title:t.label,hidefocus:"true","class":t["class"],role:"button","aria-labelledby":l},'<span id="'+l+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(t.label)+"</span>")}},select:function(a,l,k){if(!(3>arguments.length)){var e=i.call(this,l);l.validate&&(this.validate=l.validate);e.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,a,l,k,function(){var b=CKEDITOR.tools.extend({},l,{id:l.id?l.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),s=[],q=[],r={id:e.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};s.push('<div class="cke_dialog_ui_input_',l.type,'" role="presentation"');l.width&&s.push('style="width:'+l.width+'" ');s.push(">");void 0!==l.size&&(r.size=l.size);void 0!==l.multiple&&(r.multiple=l.multiple);h(b);for(var c=0,f;c<l.items.length&&(f=l.items[c]);c++){q.push('<option value="',CKEDITOR.tools.htmlEncode(void 0!==f[1]?f[1]:f[0]).replace(/"/g,"""),'" /> ',CKEDITOR.tools.htmlEncode(f[0]))}"undefined"!=typeof b.inputStyle&&(b.style=b.inputStyle);e.select=new CKEDITOR.ui.dialog.uiElement(a,b,s,"select",null,r,q.join(""));s.push("</div>");return s.join("")})}},file:function(a,l,k){if(!(3>arguments.length)){void 0===l["default"]&&(l["default"]="");var e=CKEDITOR.tools.extend(i.call(this,l),{definition:l,buttons:[]});l.validate&&(this.validate=l.validate);a.on("load",function(){CKEDITOR.document.getById(e.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,a,l,k,function(){e.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var b=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',e.frameId,'" title="',l.label,'" src="javascript:void('];b.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0");b.push(')"></iframe>');return b.join("")})}},fileButton:function(a,t,s){var q=this;if(!(3>arguments.length)){i.call(this,t);t.validate&&(this.validate=t.validate);var r=CKEDITOR.tools.extend({},t),l=r.onClick;r.className=(r.className?r.className+" ":"")+"cke_dialog_ui_button";r.onClick=function(b){var c=t["for"];l&&!1===l.call(this,b)||(a.getContentElement(c[0],c[1]).submit(),this.disable())};a.on("load",function(){a.getContentElement(t["for"][0],t["for"][1])._.buttons.push(q)});CKEDITOR.ui.dialog.button.call(this,a,r,s)}},html:function(){var e=/^\s*<[\w:]+\s+([^>]*)?>/,d=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,f=/\/$/;return function(s,q,r){if(!(3>arguments.length)){var b=[],a=q.html;"<"!=a.charAt(0)&&(a="<span>"+a+"</span>");var t=q.focus;if(t){var c=this.focus;this.focus=function(){("function"==typeof t?t:c).call(this);this.fire("focus")};q.isFocusable&&(this.isFocusable=this.isFocusable);this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,s,q,b,"span",null,null,"");b=b.join("").match(e);a=a.match(d)||["","",""];f.test(a[1])&&(a[1]=a[1].slice(0,-1),a[2]="/"+a[2]);r.push([a[1]," ",b[1]||"",a[2]].join(""))}}}(),fieldset:function(l,k,t,s,q){var r=q.label;this._={children:k};CKEDITOR.ui.dialog.uiElement.call(this,l,q,s,"fieldset",null,null,function(){var d=[];r&&d.push("<legend"+(q.labelStyle?' style="'+q.labelStyle+'"':"")+">"+r+"</legend>");for(var c=0;c<t.length;c++){d.push(t[c])}return d.join("")})}},!0);CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement;CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setLabel:function(d){var c=CKEDITOR.document.getById(this._.labelId);1>c.getChildCount()?(new CKEDITOR.dom.text(d,CKEDITOR.document)).appendTo(c):c.getChild(0).$.nodeValue=d;return this},getLabel:function(){var b=CKEDITOR.document.getById(this._.labelId);return !b||1>b.getChildCount()?"":b.getChild(0).getText()},eventProcessors:o},!0);CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return this._.disabled?!1:this.fire("click",{dialog:this._.dialog})},enable:function(){this._.disabled=!1;var b=this.getElement();b&&b.removeClass("cke_disabled")},disable:function(){this._.disabled=!0;this.getElement().addClass("cke_disabled")},isVisible:function(){return this.getElement().getFirst().isVisible()},isEnabled:function(){return !this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(d,c){this.on("click",function(){c.apply(this,arguments)})}},!0),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:!0},!0);CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)},focus:function(){var b=this.selectParentTab();setTimeout(function(){var a=b.getInputElement();a&&a.$.focus()},0)},select:function(){var b=this.selectParentTab();setTimeout(function(){var a=b.getInputElement();a&&(a.$.focus(),a.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(d){if(this.bidi){var c=d&&d.charAt(0);(c="\u202a"==c?"ltr":"\u202b"==c?"rtl":null)&&(d=d.slice(1));this.setDirectionMarker(c)}d||(d="");return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},getValue:function(){var d=CKEDITOR.ui.dialog.uiElement.prototype.getValue.call(this);if(this.bidi&&d){var c=this.getDirectionMarker();c&&(d=("ltr"==c?"\u202a":"\u202b")+d)}return d},setDirectionMarker:function(d){var c=this.getInputElement();d?c.setAttributes({dir:d,"data-cke-dir-marker":d}):this.getDirectionMarker()&&c.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:!0},p,!0);CKEDITOR.ui.dialog.textarea.prototype=new CKEDITOR.ui.dialog.textInput;CKEDITOR.ui.dialog.select.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return this._.select.getElement()},add:function(k,e,r){var q=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),l=this.getInputElement().$;q.$.text=k;q.$.value=void 0===e||null===e?k:e;void 0===r||null===r?CKEDITOR.env.ie?l.add(q.$):l.add(q.$,null):l.add(q.$,r);return this},remove:function(b){this.getInputElement().$.remove(b);return this},clear:function(){for(var b=this.getInputElement().$;0<b.length;){b.remove(0)}return this},keyboardFocusable:!0},p,!0);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(d,c){this.getInputElement().$.checked=d;!c&&this.fire("change",{value:d})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(d,c){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version){return o.onChange.apply(this,arguments)}d.on("load",function(){var b=this._.checkbox.getElement();b.on("propertychange",function(a){a=a.data.$;"checked"==a.propertyName&&this.fire("change",{value:b.$.checked})},this)},this);this.on("change",c);return null}},keyboardFocusable:!0},p,!0);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(k,e){for(var r=this._.children,q,l=0;l<r.length&&(q=r[l]);l++){q.getElement().$.checked=q.getValue()==k}!e&&this.fire("change",{value:k})},getValue:function(){for(var d=this._.children,c=0;c<d.length;c++){if(d[c].getElement().$.checked){return d[c].getValue()}}return null},accessKeyUp:function(){var d=this._.children,c;for(c=0;c<d.length;c++){if(d[c].getElement().$.checked){d[c].getElement().focus();return}}d[0].getElement().focus()},eventProcessors:{onChange:function(d,c){if(CKEDITOR.env.ie){d.on("load",function(){for(var f=this._.children,e=this,k=0;k<f.length;k++){f[k].getElement().on("propertychange",function(b){b=b.data.$;"checked"==b.propertyName&&this.$.checked&&e.fire("change",{value:this.getAttribute("value")})})}},this),this.on("change",c)}else{return o.onChange.apply(this,arguments)}return null}}},p,!0);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,p,{getInputElement:function(){var b=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return 0<b.$.forms.length?new CKEDITOR.dom.element(b.$.forms[0].elements[0]):this.getElement()},submit:function(){this.getInputElement().getParent().$.submit();return this},getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(k){var e=/^on([A-Z]\w+)/,r,q=function(s,f,u,t){s.on("formLoaded",function(){s.getInputElement().on(u,t,s)})},l;for(l in k){if(r=l.match(e)){this.eventProcessors[l]?this.eventProcessors[l].call(this,this._.dialog,k[l]):q(this,this._.dialog,r[1].toLowerCase(),k[l])}}return this},reset:function(){function y(){w.$.open();var b="";v.size&&(b=v.size-(CKEDITOR.env.ie?7:0));var a=x.frameId+"_input";w.$.write(['<html dir="'+r+'" lang="'+q+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+r+'" lang="'+q+'" action="',CKEDITOR.tools.htmlEncode(v.action),'"><label id="',x.labelId,'" for="',a,'" style="display:none">',CKEDITOR.tools.htmlEncode(v.label),'</label><input style="width:100%" id="',a,'" aria-labelledby="',x.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(v.id||"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(0<b?b:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+u+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+s+")}","\x3c/script>"].join(""));w.$.close();for(b=0;b<t.length;b++){t[b].enable()}}var x=this._,w=CKEDITOR.document.getById(x.frameId).getFrameDocument(),v=x.definition,t=x.buttons,u=this.formLoadedNumber,s=this.formUnloadNumber,r=x.dialog._.editor.lang.dir,q=x.dialog._.editor.langCode;u||(u=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this),s=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this),this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(u);CKEDITOR.tools.removeFunction(s)}));CKEDITOR.env.gecko?setTimeout(y,500):y()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(d,c){this._.domOnChangeRegistered||(this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0);this.on("change",c)}},keyboardFocusable:!0},!0);CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button;CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype);CKEDITOR.dialog.addUIElement("text",n);CKEDITOR.dialog.addUIElement("password",n);CKEDITOR.dialog.addUIElement("textarea",g);CKEDITOR.dialog.addUIElement("checkbox",g);CKEDITOR.dialog.addUIElement("radio",g);CKEDITOR.dialog.addUIElement("button",g);CKEDITOR.dialog.addUIElement("select",g);CKEDITOR.dialog.addUIElement("file",g);CKEDITOR.dialog.addUIElement("fileButton",g);CKEDITOR.dialog.addUIElement("html",g);CKEDITOR.dialog.addUIElement("fieldset",{build:function(y,x,w){for(var v=x.children,t,u=[],s=[],r=0;r<v.length&&(t=v[r]);r++){var q=[];u.push(q);s.push(CKEDITOR.dialog._.uiElementBuilders[t.type].build(y,t,q))}return new CKEDITOR.ui.dialog[x.type](y,s,u,w,x)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,CKEDITOR.DIALOG_STATE_IDLE=1,CKEDITOR.DIALOG_STATE_BUSY=2,function(){function aj(){for(var e=this._.tabIdList.length,d=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+e,f=d-1;f>d-e;f--){if(this._.tabs[this._.tabIdList[f%e]][0].$.offsetHeight){return this._.tabIdList[f%e]}}return null}function af(){for(var e=this._.tabIdList.length,d=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),f=d+1;f<d+e;f++){if(this._.tabs[this._.tabIdList[f%e]][0].$.offsetHeight){return this._.tabIdList[f%e]}}return null}function ai(h,e){for(var n=h.$.getElementsByTagName("input"),m=0,l=n.length;m<l;m++){var k=new CKEDITOR.dom.element(n[m]);"text"==k.getAttribute("type").toLowerCase()&&(e?(k.setAttribute("value",k.getCustomData("fake_value")||""),k.removeCustomData("fake_value")):(k.setCustomData("fake_value",k.getAttribute("value")),k.setAttribute("value","")))}}function ah(e,d){var f=this.getInputElement();f&&(e?f.removeAttribute("aria-invalid"):f.setAttribute("aria-invalid",!0));e||(this.select?this.select():this.focus());d&&alert(d);this.fire("validated",{valid:e,msg:d})}function ag(){var b=this.getInputElement();b&&b.removeAttribute("aria-invalid")}function ab(g){var e=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",V).output({id:CKEDITOR.tools.getNextNumber(),editorId:g.id,langDir:g.lang.dir,langCode:g.langCode,editorDialogClass:"cke_editor_"+g.name.replace(/\./g,"\\.")+"_dialog",closeTitle:g.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),l=e.getChild([0,0,0,0,0]),k=l.getChild(0),h=l.getChild(1);g.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(l);CKEDITOR.env.ie&&!CKEDITOR.env.quirks&&!CKEDITOR.env.edge&&(g="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())",CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+g+'" tabIndex="-1"></iframe>').appendTo(l.getParent()));k.unselectable();h.unselectable();return{element:e,parts:{dialog:e.getChild(0),title:k,close:h,tabs:l.getChild(2),contents:l.getChild([3,0,0,0]),footer:l.getChild([3,0,1,0])}}}function aa(e,d,f){this.element=d;this.focusIndex=f;this.tabIndex=0;this.isFocusable=function(){return !d.getAttribute("disabled")&&d.isVisible()};this.focus=function(){e._.currentFocusIndex=this.focusIndex;this.element.focus()};d.on("keydown",function(b){b.data.getKeystroke() in {32:1,13:1}&&this.fire("click")});d.on("focus",function(){this.fire("mouseover")});d.on("blur",function(){this.fire("mouseout")})}function ae(e){function d(){e.layout()}var f=CKEDITOR.document.getWindow();f.on("resize",d);e.on("hide",function(){f.removeListener("resize",d)})}function ac(d,c){this._={dialog:d};CKEDITOR.tools.extend(this,c)}function Z(l){function h(k){var e=l.getSize(),b=CKEDITOR.document.getWindow().getViewPaneSize(),a=k.data.$.screenX,f=k.data.$.screenY,g=a-r.x,d=f-r.y;r={x:a,y:f};p.x+=g;p.y+=d;l.move(p.x+m[3]<q?-m[3]:p.x-m[1]>b.width-e.width-q?b.width-e.width+("rtl"==n.lang.dir?0:m[1]):p.x,p.y+m[0]<q?-m[0]:p.y-m[2]>b.height-e.height-q?b.height-e.height+m[2]:p.y,1);k.data.preventDefault()}function s(){CKEDITOR.document.removeListener("mousemove",h);CKEDITOR.document.removeListener("mouseup",s);if(CKEDITOR.env.ie6Compat){var b=T.getChild(0).getFrameDocument();b.removeListener("mousemove",h);b.removeListener("mouseup",s)}}var r=null,p=null,n=l.getParentEditor(),q=n.config.dialog_magnetDistance,m=CKEDITOR.skin.margins||[0,0,0,0];"undefined"==typeof q&&(q=20);l.parts.title.on("mousedown",function(a){r={x:a.data.$.screenX,y:a.data.$.screenY};CKEDITOR.document.on("mousemove",h);CKEDITOR.document.on("mouseup",s);p=l.getPosition();if(CKEDITOR.env.ie6Compat){var b=T.getChild(0).getFrameDocument();b.on("mousemove",h);b.on("mouseup",s)}a.data.preventDefault()},l)}function ad(D){function C(k){var h="rtl"==v.lang.dir,d=q.width,a=q.height,e=d+(k.data.$.screenX-A)*(h?-1:1)*(D._.moved?1:2),b=a+(k.data.$.screenY-y)*(D._.moved?1:2),f=D._.element.getFirst(),f=h&&f.getComputedStyle("right"),g=D.getPosition();g.y+b>s.height&&(b=s.height-g.y);(h?f:g.x)+e>s.width&&(e=s.width-(h?f:g.x));if(z==CKEDITOR.DIALOG_RESIZE_WIDTH||z==CKEDITOR.DIALOG_RESIZE_BOTH){d=Math.max(x.minWidth||0,e-w)}if(z==CKEDITOR.DIALOG_RESIZE_HEIGHT||z==CKEDITOR.DIALOG_RESIZE_BOTH){a=Math.max(x.minHeight||0,b-t)}D.resize(d,a);D._.moved||D.layout();k.data.preventDefault()}function B(){CKEDITOR.document.removeListener("mouseup",B);CKEDITOR.document.removeListener("mousemove",C);r&&(r.remove(),r=null);if(CKEDITOR.env.ie6Compat){var b=T.getChild(0).getFrameDocument();b.removeListener("mouseup",B);b.removeListener("mousemove",C)}}var A,y,x=D.definition,z=x.resizable;if(z!=CKEDITOR.DIALOG_RESIZE_NONE){var v=D.getParentEditor(),w,t,s,q,r,E=CKEDITOR.tools.addFunction(function(a){q=D.getSize();var b=D.parts.contents;b.$.getElementsByTagName("iframe").length&&(r=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>'),b.append(r));t=q.height-D.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks));w=q.width-D.parts.contents.getSize("width",1);A=a.screenX;y=a.screenY;s=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",C);CKEDITOR.document.on("mouseup",B);CKEDITOR.env.ie6Compat&&(b=T.getChild(0).getFrameDocument(),b.on("mousemove",C),b.on("mouseup",B));a.preventDefault&&a.preventDefault()});D.on("load",function(){var a="";z==CKEDITOR.DIALOG_RESIZE_WIDTH?a=" cke_resizer_horizontal":z==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(a=" cke_resizer_vertical");a=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+a+" cke_resizer_"+v.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(v.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+E+', event )">'+("ltr"==v.lang.dir?"\u25e2":"\u25e3")+"</div>");D.parts.footer.append(a,1)});v.on("destroy",function(){CKEDITOR.tools.removeFunction(E)})}}function X(b){b.data.preventDefault(1)}function R(u){var t=CKEDITOR.document.getWindow(),s=u.config,r=s.dialog_backgroundCoverColor||"white",p=s.dialog_backgroundCoverOpacity,n=s.baseFloatZIndex,s=CKEDITOR.tools.genKey(r,p,n),q=o[s];q?q.show():(n=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",n,"; top: 0px; left: 0px; ",CKEDITOR.env.ie6Compat?"":"background-color: "+r,'" class="cke_dialog_background_cover">'],CKEDITOR.env.ie6Compat&&(r="<html><body style=\\'background-color:"+r+";\\'></body></html>",n.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:'),n.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+r+"' );document.close();")+"})())"),n.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')),n.push("</div>"),q=CKEDITOR.dom.element.createFromHtml(n.join("")),q.setOpacity(void 0!==p?p:0.5),q.on("keydown",X),q.on("keypress",X),q.on("keyup",X),q.appendTo(CKEDITOR.document.getBody()),o[s]=q);u.focusManager.add(q);T=q;u=function(){var b=t.getViewPaneSize();q.setStyles({width:b.width+"px",height:b.height+"px"})};var l=function(){var b=t.getScrollPosition(),d=CKEDITOR.dialog._.currentTop;q.setStyles({left:b.x+"px",top:b.y+"px"});if(d){do{b=d.getPosition(),d.move(b.x,b.y)}while(d=d._.parentDialog)}};W=u;t.on("resize",u);u();CKEDITOR.env.mac&&CKEDITOR.env.webkit||q.focus();if(CKEDITOR.env.ie6Compat){var m=function(){l();arguments.callee.prevScrollHandler.apply(this,arguments)};t.$.setTimeout(function(){m.prevScrollHandler=window.onscroll||function(){};window.onscroll=m},0);l()}}function L(b){T&&(b.focusManager.remove(T),b=CKEDITOR.document.getWindow(),T.hide(),b.removeListener("resize",W),CKEDITOR.env.ie6Compat&&b.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0),W=null)}var P=CKEDITOR.tools.cssLength,V='<div class="cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir="{langDir}" lang="{langCode}" role="dialog" aria-labelledby="cke_dialog_title_{id}"><table class="cke_dialog '+CKEDITOR.env.cssClass+' cke_{langDir}" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="cke_dialog_body" role="presentation"><div id="cke_dialog_title_{id}" class="cke_dialog_title" role="presentation"></div><a id="cke_dialog_close_button_{id}" class="cke_dialog_close_button" href="javascript:void(0)" title="{closeTitle}" role="button"><span class="cke_label">X</span></a><div id="cke_dialog_tabs_{id}" class="cke_dialog_tabs" role="tablist"></div><table class="cke_dialog_contents" role="presentation"><tr><td id="cke_dialog_contents_{id}" class="cke_dialog_contents_body" role="presentation"></td></tr><tr><td id="cke_dialog_footer_{id}" class="cke_dialog_footer" role="presentation"></td></tr></table></div></td></tr></table></div>';CKEDITOR.dialog=function(F,x){function n(){var h=a._.focusList;h.sort(function(q,p){return q.tabIndex!=p.tabIndex?p.tabIndex-q.tabIndex:q.focusIndex-p.focusIndex});for(var f=h.length,l=0;l<f;l++){h[l].focusIndex=l}}function m(l){var h=a._.focusList;l=l||0;if(!(1>h.length)){var s=a._.currentFocusIndex;a._.tabBarMode&&0>l&&(s=0);try{h[s].getInputElement().$.blur()}catch(r){}var q=s,p=1<a._.pageCount;do{q+=l;if(p&&!a._.tabBarMode&&(q==h.length||-1==q)){a._.tabBarMode=!0;a._.tabs[a._.currentTabId][0].focus();a._.currentFocusIndex=-1;return}q=(q+h.length)%h.length;if(q==s){break}}while(l&&!h[q].isFocusable());h[q].focus();"text"==h[q].type&&h[q].select()}}function g(p){if(a==CKEDITOR.dialog._.currentTop){var l=p.data.getKeystroke(),h="rtl"==F.lang.dir,b=[37,38,39,40];am=k=0;if(9==l||l==CKEDITOR.SHIFT+9){m(l==CKEDITOR.SHIFT+9?-1:1),am=1}else{if(l==CKEDITOR.ALT+121&&!a._.tabBarMode&&1<a.getPageCount()){a._.tabBarMode=!0,a._.tabs[a._.currentTabId][0].focus(),a._.currentFocusIndex=-1,am=1}else{if(-1!=CKEDITOR.tools.indexOf(b,l)&&a._.tabBarMode){l=-1!=CKEDITOR.tools.indexOf([h?39:37,38],l)?aj.call(a):af.call(a),a.selectPage(l),a._.tabs[l][0].focus(),am=1}else{if(13!=l&&32!=l||!a._.tabBarMode){if(13==l){l=p.data.getTarget(),l.is("a","button","select","textarea")||l.is("input")&&"button"==l.$.type||((l=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(l.click,0,l),am=1),k=1}else{if(27==l){(l=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(l.click,0,l):!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),k=1}else{return}}}else{this.selectPage(this._.currentTabId),this._.tabBarMode=!1,this._.currentFocusIndex=-1,m(1),am=1}}}}ak(p)}}function ak(b){am?b.data.preventDefault(1):k&&b.data.stopPropagation()}var G=CKEDITOR.dialog._.dialogDefinitions[x],al=CKEDITOR.tools.clone(Y),J=F.config.dialog_buttonsOrder||"OS",d=F.lang.dir,D={},am,k;("OS"==J&&CKEDITOR.env.mac||"rtl"==J&&"ltr"==d||"ltr"==J&&"rtl"==d)&&al.buttons.reverse();G=CKEDITOR.tools.extend(G(F),al);G=CKEDITOR.tools.clone(G);G=new H(this,G);al=ab(F);this._={editor:F,element:al.element,name:x,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],currentFocusIndex:0,hasFocus:!1};this.parts=al.parts;CKEDITOR.tools.setTimeout(function(){F.fire("ariaWidget",this.parts.contents)},0,this);al={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};al["rtl"==d?"right":"left"]=0;this.parts.dialog.setStyles(al);CKEDITOR.event.call(this);this.definition=G=CKEDITOR.fire("dialogDefinition",{name:x,definition:G},F).definition;if(!("removeDialogTabs" in F._)&&F.config.removeDialogTabs){al=F.config.removeDialogTabs.split(";");for(d=0;d<al.length;d++){if(J=al[d].split(":"),2==J.length){var E=J[0];D[E]||(D[E]=[]);D[E].push(J[1])}}F._.removeDialogTabs=D}if(F._.removeDialogTabs&&(D=F._.removeDialogTabs[x])){for(d=0;d<D.length;d++){G.removeContents(D[d])}}if(G.onLoad){this.on("load",G.onLoad)}if(G.onShow){this.on("show",G.onShow)}if(G.onHide){this.on("hide",G.onHide)}if(G.onOk){this.on("ok",function(b){F.fire("saveSnapshot");setTimeout(function(){F.fire("saveSnapshot")},0);!1===G.onOk.call(this,b)&&(b.data.hide=!1)})}this.state=CKEDITOR.DIALOG_STATE_IDLE;if(G.onCancel){this.on("cancel",function(b){!1===G.onCancel.call(this,b)&&(b.data.hide=!1)})}var a=this,e=function(h){var f=a._.contents,p;for(p in f){for(var l in f[p]){if(h.call(this,f[p][l])){return}}}};this.on("ok",function(b){e(function(h){if(h.validate){var p=h.validate(this),l="string"==typeof p||!1===p;l&&(b.data.hide=!1,b.stop());ah.call(h,!l,"string"==typeof p?p:void 0);return l}})},this,null,0);this.on("cancel",function(b){e(function(f){if(f.isChanged()){return !F.config.dialog_noConfirmCancel&&!confirm(F.lang.common.confirmCancel)&&(b.data.hide=!1),!0}})},this,null,0);this.parts.close.on("click",function(b){!1!==this.fire("cancel",{hide:!0}).hide&&this.hide();b.data.preventDefault()},this);this.changeFocus=m;var c=this._.element;F.focusManager.add(c,1);this.on("show",function(){c.on("keydown",g,this);if(CKEDITOR.env.gecko){c.on("keypress",ak,this)}});this.on("hide",function(){c.removeListener("keydown",g);CKEDITOR.env.gecko&&c.removeListener("keypress",ak);e(function(b){ag.apply(b)})});this.on("iframeAdded",function(b){(new CKEDITOR.dom.document(b.data.iframe.$.contentWindow.document)).on("keydown",g,this,null,0)});this.on("show",function(){n();var b=1<a._.pageCount;F.config.dialog_startupFocusTab&&b?(a._.tabBarMode=!0,a._.tabs[a._.currentTabId][0].focus(),a._.currentFocusIndex=-1):this._.hasFocus||(this._.currentFocusIndex=b?-1:this._.focusList.length-1,G.onFocus?(b=G.onFocus.call(this))&&b.focus():m(1))},this,null,4294967295);if(CKEDITOR.env.ie6Compat){this.on("load",function(){var h=this.getElement(),f=h.getFirst();f.remove();f.appendTo(h)},this)}Z(this);ad(this);(new CKEDITOR.dom.text(G.title,CKEDITOR.document)).appendTo(this.parts.title);for(d=0;d<G.contents.length;d++){(D=G.contents[d])&&this.addPage(D)}this.parts.tabs.on("click",function(h){var f=h.data.getTarget();f.hasClass("cke_dialog_tab")&&(f=f.$.id,this.selectPage(f.substring(4,f.lastIndexOf("_"))),this._.tabBarMode&&(this._.tabBarMode=!1,this._.currentFocusIndex=-1,m(1)),h.data.preventDefault())},this);d=[];D=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:G.buttons},d).getChild();this.parts.footer.setHtml(d.join(""));for(d=0;d<D.length;d++){this._.buttons[D[d].id]=D[d]}};CKEDITOR.dialog.prototype={destroy:function(){this.hide();this._.element.remove()},resize:function(){return function(d,c){this._.contentSize&&this._.contentSize.width==d&&this._.contentSize.height==c||(CKEDITOR.dialog.fire("resize",{dialog:this,width:d,height:c},this._.editor),this.fire("resize",{width:d,height:c},this._.editor),this.parts.contents.setStyles({width:d+"px",height:c+"px"}),"rtl"==this._.editor.lang.dir&&this._.position&&(this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10)),this._.contentSize={width:d,height:c})}}(),getSize:function(){var b=this._.element.getFirst();return{width:b.$.offsetWidth||0,height:b.$.offsetHeight||0}},move:function(h,e,n){var m=this._.element.getFirst(),l="rtl"==this._.editor.lang.dir,k="fixed"==m.getComputedStyle("position");CKEDITOR.env.ie&&m.setStyle("zoom","100%");k&&this._.position&&this._.position.x==h&&this._.position.y==e||(this._.position={x:h,y:e},k||(k=CKEDITOR.document.getWindow().getScrollPosition(),h+=k.x,e+=k.y),l&&(k=this.getSize(),h=CKEDITOR.document.getWindow().getViewPaneSize().width-k.width-h),e={top:(0<e?e:0)+"px"},e[l?"right":"left"]=(0<h?h:0)+"px",m.setStyles(e),n&&(this._.moved=1))},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var l=this._.element,f=this.definition;l.getParent()&&l.getParent().equals(CKEDITOR.document.getBody())?l.setStyle("display","block"):l.appendTo(CKEDITOR.document.getBody());this.resize(this._.contentSize&&this._.contentSize.width||f.width||f.minWidth,this._.contentSize&&this._.contentSize.height||f.height||f.minHeight);this.reset();this.selectPage(this.definition.contents[0].id);null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex);this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10);null===CKEDITOR.dialog._.currentTop?(CKEDITOR.dialog._.currentTop=this,this._.parentDialog=null,R(this._.editor)):(this._.parentDialog=CKEDITOR.dialog._.currentTop,this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2),CKEDITOR.dialog._.currentTop=this);l.on("keydown",S);l.on("keyup",Q);this._.hasFocus=!1;for(var s in f.contents){if(f.contents[s]){var l=f.contents[s],r=this._.tabs[l.id],p=l.requiredContent,q=0;if(r){for(var m in this._.contents[l.id]){var n=this._.contents[l.id][m];"hbox"==n.type||"vbox"==n.type||!n.getInputElement()||(n.requiredContent&&!this._.editor.activeFilter.check(n.requiredContent)?n.disable():(n.enable(),q++))}!q||p&&!this._.editor.activeFilter.check(p)?r[0].addClass("cke_dialog_tab_disabled"):r[0].removeClass("cke_dialog_tab_disabled")}}}CKEDITOR.tools.setTimeout(function(){this.layout();ae(this);this.parts.dialog.setStyle("visibility","");this.fireOnce("load",{});CKEDITOR.ui.fire("ready",this);this.fire("show",{});this._.editor.fire("dialogShow",this);this._.parentDialog||this._.editor.focusManager.lock();this.foreach(function(b){b.setInitValue&&b.setInitValue()})},100,this)},layout:function(){var g=this.parts.dialog,e=this.getSize(),l=CKEDITOR.document.getWindow().getViewPaneSize(),k=(l.width-e.width)/2,h=(l.height-e.height)/2;CKEDITOR.env.ie6Compat||(e.height+(0<h?h:0)>l.height||e.width+(0<k?k:0)>l.width?g.setStyle("position","absolute"):g.setStyle("position","fixed"));this.move(this._.moved?this._.position.x:k,this._.moved?this._.position.y:h)},foreach:function(e){for(var d in this._.contents){for(var f in this._.contents[d]){e.call(this,this._.contents[d][f])}}return this},reset:function(){var b=function(c){c.reset&&c.reset(1)};return function(){this.foreach(b);return this}}(),setupContent:function(){var b=arguments;this.foreach(function(a){a.setup&&a.setup.apply(a,b)})},commitContent:function(){var b=arguments;this.foreach(function(a){CKEDITOR.env.ie&&this._.currentFocusIndex==a.focusIndex&&a.getInputElement().$.blur();a.commit&&a.commit.apply(a,b)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{});this._.editor.fire("dialogHide",this);this.selectPage(this._.tabIdList[0]);var e=this._.element;e.setStyle("display","none");this.parts.dialog.setStyle("visibility","hidden");for(K(this);CKEDITOR.dialog._.currentTop!=this;){CKEDITOR.dialog._.currentTop.hide()}if(this._.parentDialog){var d=this._.parentDialog.getElement().getFirst();d.setStyle("z-index",parseInt(d.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else{L(this._.editor)}if(CKEDITOR.dialog._.currentTop=this._.parentDialog){CKEDITOR.dialog._.currentZIndex-=10}else{CKEDITOR.dialog._.currentZIndex=null;e.removeListener("keydown",S);e.removeListener("keyup",Q);var f=this._.editor;f.focus();setTimeout(function(){f.focusManager.unlock();CKEDITOR.env.iOS&&f.window.focus()},0)}delete this._.parentDialog;this.foreach(function(b){b.resetInitValue&&b.resetInitValue()});this.setState(CKEDITOR.DIALOG_STATE_IDLE)}},addPage:function(k){if(!k.requiredContent||this._.editor.filter.check(k.requiredContent)){for(var h=[],q=k.label?' title="'+CKEDITOR.tools.htmlEncode(k.label)+'"':"",p=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",children:k.elements,expand:!!k.expand,padding:k.padding,style:k.style||"width: 100%;"},h),m=this._.contents[k.id]={},l=p.getChild(),n=0;p=l.shift();){!p.notAllowed&&"hbox"!=p.type&&"vbox"!=p.type&&n++,m[p.id]=p,"function"==typeof p.getChild&&l.push.apply(l,p.getChild())}n||(k.hidden=!0);h=CKEDITOR.dom.element.createFromHtml(h.join(""));h.setAttribute("role","tabpanel");p=CKEDITOR.env;m="cke_"+k.id+"_"+CKEDITOR.tools.getNextNumber();q=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',0<this._.pageCount?" cke_last":"cke_first",q,k.hidden?' style="display:none"':"",' id="',m,'"',p.gecko&&!p.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',k.label,"</a>"].join(""));h.setAttribute("aria-labelledby",m);this._.tabs[k.id]=[q,h];this._.tabIdList.push(k.id);!k.hidden&&this._.pageCount++;this._.lastTab=q;this.updateStyle();h.setAttribute("name",k.id);h.appendTo(this.parts.contents);q.unselectable();this.parts.tabs.append(q);k.accessKey&&(O(this,this,"CTRL+"+k.accessKey,j,M),this._.accessKeyMap["CTRL+"+k.accessKey]=k.id)}},selectPage:function(b){if(this._.currentTabId!=b&&!this._.tabs[b][0].hasClass("cke_dialog_tab_disabled")&&!1!==this.fire("selectPage",{page:b,currentPage:this._.currentTabId})){for(var l in this._.tabs){var k=this._.tabs[l][0],h=this._.tabs[l][1];l!=b&&(k.removeClass("cke_dialog_tab_selected"),h.hide());h.setAttribute("aria-hidden",l!=b)}var e=this._.tabs[b];e[0].addClass("cke_dialog_tab_selected");CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?(ai(e[1]),e[1].show(),setTimeout(function(){ai(e[1],1)},0)):e[1].show();this._.currentTabId=b;this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,b)}},updateStyle:function(){this.parts.dialog[(1===this._.pageCount?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(a){var d=this._.tabs[a]&&this._.tabs[a][0];d&&1!=this._.pageCount&&d.isVisible()&&(a==this._.currentTabId&&this.selectPage(aj.call(this)),d.hide(),this._.pageCount--,this.updateStyle())},showPage:function(b){if(b=this._.tabs[b]&&this._.tabs[b][0]){b.show(),this._.pageCount++,this.updateStyle()}},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(e,d){var f=this._.contents[e];return f&&f[d]},getValueOf:function(d,c){return this.getContentElement(d,c).getValue()},setValueOf:function(e,d,f){return this.getContentElement(e,d).setValue(f)},getButton:function(b){return this._.buttons[b]},click:function(b){return this._.buttons[b].click()},disableButton:function(b){return this._.buttons[b].disable()},enableButton:function(b){return this._.buttons[b].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(e,d){if("undefined"==typeof d){d=this._.focusList.length,this._.focusList.push(new aa(this,e,d))}else{this._.focusList.splice(d,0,new aa(this,e,d));for(var f=d+1;f<this._.focusList.length;f++){this._.focusList[f].focusIndex++}}},setState:function(e){if(this.state!=e){this.state=e;if(e==CKEDITOR.DIALOG_STATE_BUSY){if(!this.parts.spinner){var d=this.getParentEditor().lang.dir,f={attributes:{"class":"cke_dialog_spinner"},styles:{"float":"rtl"==d?"right":"left"}};f.styles["margin-"+("rtl"==d?"left":"right")]="8px";this.parts.spinner=CKEDITOR.document.createElement("div",f);this.parts.spinner.setHtml("⌛");this.parts.spinner.appendTo(this.parts.title,1)}this.parts.spinner.show();this.getButton("ok").disable()}else{e==CKEDITOR.DIALOG_STATE_IDLE&&(this.parts.spinner&&this.parts.spinner.hide(),this.getButton("ok").enable())}this.fire("state",e)}}};CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(d,c){this._.dialogDefinitions[d]&&"function"!=typeof c||(this._.dialogDefinitions[d]=c)},exists:function(b){return !!this._.dialogDefinitions[b]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(e,d,f){e=e.config.removeDialogTabs;return !(e&&e.match(RegExp("(?:^|;)"+d+":"+f+"(?:$|;)","i")))},okButton:function(){var b=function(d,c){c=c||{};return CKEDITOR.tools.extend({id:"ok",type:"button",label:d.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(e){e=e.data.dialog;!1!==e.fire("ok",{hide:!0}).hide&&e.hide()}},c,!0)};b.type="button";b.override=function(a){return CKEDITOR.tools.extend(function(d){return b(d,a)},{type:"button"},!0)};return b}(),cancelButton:function(){var b=function(d,c){c=c||{};return CKEDITOR.tools.extend({id:"cancel",type:"button",label:d.lang.common.cancel,"class":"cke_dialog_ui_button_cancel",onClick:function(e){e=e.data.dialog;!1!==e.fire("cancel",{hide:!0}).hide&&e.hide()}},c,!0)};b.type="button";b.override=function(a){return CKEDITOR.tools.extend(function(d){return b(d,a)},{type:"button"},!0)};return b}(),addUIElement:function(d,c){this._.uiElementBuilders[d]=c}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog);CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);var Y={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},N=function(g,e,l){for(var k=0,h;h=g[k];k++){if(h.id==e||l&&h[l]&&(h=N(h[l],e,l))){return h}}return null},I=function(k,h,q,p,m){if(q){for(var l=0,n;n=k[l];l++){if(n.id==q){return k.splice(l,0,h),h}if(p&&n[p]&&(n=I(n[p],h,q,p,!0))){return n}}if(m){return null}}k.push(h);return h},i=function(g,e,l){for(var k=0,h;h=g[k];k++){if(h.id==e){return g.splice(k,1)}if(l&&h[l]&&(h=i(h[l],e,l))){return h}}return null},H=function(g,e){this.dialog=g;for(var l=e.contents,k=0,h;h=l[k];k++){l[k]=h&&new ac(g,h)}CKEDITOR.tools.extend(this,e)};H.prototype={getContents:function(b){return N(this.contents,b)},getButton:function(b){return N(this.buttons,b)},addContents:function(d,c){return I(this.contents,d,c)},addButton:function(d,c){return I(this.buttons,d,c)},removeContents:function(b){i(this.contents,b)},removeButton:function(b){i(this.buttons,b)}};ac.prototype={get:function(b){return N(this.elements,b,"children")},add:function(d,c){return I(this.elements,d,c,"children")},remove:function(b){i(this.elements,b,"children")}};var W,o={},T,U={},S=function(g){var e=g.data.$.ctrlKey||g.data.$.metaKey,l=g.data.$.altKey,k=g.data.$.shiftKey,h=String.fromCharCode(g.data.$.keyCode);(e=U[(e?"CTRL+":"")+(l?"ALT+":"")+(k?"SHIFT+":"")+h])&&e.length&&(e=e[e.length-1],e.keydown&&e.keydown.call(e.uiElement,e.dialog,e.key),g.data.preventDefault())},Q=function(g){var e=g.data.$.ctrlKey||g.data.$.metaKey,l=g.data.$.altKey,k=g.data.$.shiftKey,h=String.fromCharCode(g.data.$.keyCode);(e=U[(e?"CTRL+":"")+(l?"ALT+":"")+(k?"SHIFT+":"")+h])&&e.length&&(e=e[e.length-1],e.keyup&&(e.keyup.call(e.uiElement,e.dialog,e.key),g.data.preventDefault()))},O=function(g,e,l,k,h){(U[l]||(U[l]=[])).push({uiElement:g,dialog:e,key:l,keyup:h||g.accessKeyUp,keydown:k||g.accessKeyDown})},K=function(f){for(var e in U){for(var h=U[e],g=h.length-1;0<=g;g--){h[g].dialog!=f&&h[g].uiElement!=f||h.splice(g,1)}0===h.length&&delete U[e]}},M=function(d,c){d._.accessKeyMap[c]&&d.selectPage(d._.accessKeyMap[c])},j=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(F,E,D,C,A,z,B){if(!(4>arguments.length)){var x=(C.call?C(E):C)||"div",y=["<",x," "],v=(A&&A.call?A(E):A)||{},s=(z&&z.call?z(E):z)||{},q=(B&&B.call?B.call(this,F,E):B)||"",r=this.domId=s.id||CKEDITOR.tools.getNextId()+"_uiElement";E.requiredContent&&!F.getParentEditor().filter.check(E.requiredContent)&&(v.display="none",this.notAllowed=!0);s.id=r;var G={};E.type&&(G["cke_dialog_ui_"+E.type]=1);E.className&&(G[E.className]=1);E.disabled&&(G.cke_disabled=1);for(var J=s["class"]&&s["class"].split?s["class"].split(" "):[],r=0;r<J.length;r++){J[r]&&(G[J[r]]=1)}J=[];for(r in G){J.push(r)}s["class"]=J.join(" ");E.title&&(s.title=E.title);G=(E.style||"").split(";");E.align&&(J=E.align,v["margin-left"]="left"==J?0:"auto",v["margin-right"]="right"==J?0:"auto");for(r in v){G.push(r+":"+v[r])}E.hidden&&G.push("display:none");for(r=G.length-1;0<=r;r--){""===G[r]&&G.splice(r,1)}0<G.length&&(s.style=(s.style?s.style+"; ":"")+G.join("; "));for(r in s){y.push(r+'="'+CKEDITOR.tools.htmlEncode(s[r])+'" ')}y.push(">",q,"</",x,">");D.push(y.join(""));(this._||(this._={})).dialog=F;"boolean"==typeof E.isChanged&&(this.isChanged=function(){return E.isChanged});"function"==typeof E.isChanged&&(this.isChanged=E.isChanged);"function"==typeof E.setValue&&(this.setValue=CKEDITOR.tools.override(this.setValue,function(b){return function(a){b.call(this,E.setValue.call(this,a))}}));"function"==typeof E.getValue&&(this.getValue=CKEDITOR.tools.override(this.getValue,function(b){return function(){return E.getValue.call(this,b.call(this))}}));CKEDITOR.event.implementOn(this);this.registerEvents(E);this.accessKeyUp&&this.accessKeyDown&&E.accessKey&&O(this,F,"CTRL+"+E.accessKey);var ak=this;F.on("load",function(){var a=ak.getInputElement();if(a){var d=ak.type in {checkbox:1,ratio:1}&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?"cke_dialog_ui_focused":"";a.on("focus",function(){F._.tabBarMode=!1;F._.hasFocus=!0;ak.fire("focus");d&&this.addClass(d)});a.on("blur",function(){ak.fire("blur");d&&this.removeClass(d)})}});CKEDITOR.tools.extend(this,E);this.keyboardFocusable&&(this.tabIndex=E.tabIndex||0,this.focusIndex=F._.focusList.push(this)-1,this.on("focus",function(){F._.currentFocusIndex=ak.focusIndex}))}},hbox:function(w,v,u,t,r){if(!(4>arguments.length)){this._||(this._={});var q=this._.children=v,s=r&&r.widths||null,n=r&&r.height||null,p,m={role:"presentation"};r&&r.align&&(m.align=r.align);CKEDITOR.ui.dialog.uiElement.call(this,w,r||{type:"hbox"},t,"table",{},m,function(){var e=['<tbody><tr class="cke_dialog_ui_hbox">'];for(p=0;p<u.length;p++){var c="cke_dialog_ui_hbox_child",f=[];0===p&&(c="cke_dialog_ui_hbox_first");p==u.length-1&&(c="cke_dialog_ui_hbox_last");e.push('<td class="',c,'" role="presentation" ');s?s[p]&&f.push("width:"+P(s[p])):f.push("width:"+Math.floor(100/u.length)+"%");n&&f.push("height:"+P(n));r&&void 0!==r.padding&&f.push("padding:"+P(r.padding));CKEDITOR.env.ie&&CKEDITOR.env.quirks&&q[p].align&&f.push("text-align:"+q[p].align);0<f.length&&e.push('style="'+f.join("; ")+'" ');e.push(">",u[p],"</td>")}e.push("</tr></tbody>");return e.join("")})}},vbox:function(l,h,s,r,p){if(!(3>arguments.length)){this._||(this._={});var n=this._.children=h,q=p&&p.width||null,m=p&&p.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,l,p||{type:"vbox"},r,"div",null,{role:"presentation"},function(){var a=['<table role="presentation" cellspacing="0" border="0" '];a.push('style="');p&&p.expand&&a.push("height:100%;");a.push("width:"+P(q||"100%"),";");CKEDITOR.env.webkit&&a.push("float:none;");a.push('"');a.push('align="',CKEDITOR.tools.htmlEncode(p&&p.align||("ltr"==l.getParentEditor().lang.dir?"left":"right")),'" ');a.push("><tbody>");for(var e=0;e<s.length;e++){var c=[];a.push('<tr><td role="presentation" ');q&&c.push("width:"+P(q||"100%"));m?c.push("height:"+P(m[e])):p&&p.expand&&c.push("height:"+Math.floor(100/s.length)+"%");p&&void 0!==p.padding&&c.push("padding:"+P(p.padding));CKEDITOR.env.ie&&CKEDITOR.env.quirks&&n[e].align&&c.push("text-align:"+n[e].align);0<c.length&&a.push('style="',c.join("; "),'" ');a.push(' class="cke_dialog_ui_vbox_child">',s[e],"</td></tr>")}a.push("</tbody></table>");return a.join("")})}}}})();CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(d,c){this.getInputElement().setValue(d);!c&&this.fire("change",{value:d});return this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return !1},selectParentTab:function(){for(var b=this.getInputElement();(b=b.getParent())&&-1==b.$.className.search("cke_dialog_page_contents");){}if(!b){return this}b=b.getAttribute("name");this._.dialog._.currentTabId!=b&&this._.dialog.selectPage(b);return this},focus:function(){this.selectParentTab().getInputElement().focus();return this},registerEvents:function(g){var e=/^on([A-Z]\w+)/,l,k=function(m,f,p,n){f.on("load",function(){m.getInputElement().on(p,n,m)})},h;for(h in g){if(l=h.match(e)){this.eventProcessors[h]?this.eventProcessors[h].call(this,this._.dialog,g[h]):k(this,this._.dialog,l[1].toLowerCase(),g[h])}}return this},eventProcessors:{onLoad:function(d,c){d.on("load",c,this)},onShow:function(d,c){d.on("show",c,this)},onHide:function(d,c){d.on("hide",c,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var b=this.getElement();this.getInputElement().setAttribute("disabled","true");b.addClass("cke_disabled")},enable:function(){var b=this.getElement();this.getInputElement().removeAttribute("disabled");b.removeClass("cke_disabled")},isEnabled:function(){return !this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return this.isEnabled()&&this.isVisible()?!0:!1}};CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getChild:function(b){if(1>arguments.length){return this._.children.concat()}b.splice||(b=[b]);return 2>b.length?this._.children[b[0]]:this._.children[b[0]]&&this._.children[b[0]].getChild?this._.children[b[0]].getChild(b.slice(1,b.length)):null}},!0);CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox;(function(){var b={build:function(u,t,s){for(var r=t.children,p,n=[],q=[],l=0;l<r.length&&(p=r[l]);l++){var m=[];n.push(m);q.push(CKEDITOR.dialog._.uiElementBuilders[p.type].build(u,p,m))}return new CKEDITOR.ui.dialog[t.type](u,q,n,s,t)}};CKEDITOR.dialog.addUIElement("hbox",b);CKEDITOR.dialog.addUIElement("vbox",b)})();CKEDITOR.dialogCommand=function(d,c){this.dialogName=d;CKEDITOR.tools.extend(this,c,!0)};CKEDITOR.dialogCommand.prototype={exec:function(b){b.openDialog(this.dialogName)},canUndo:!1,editorFocus:1};(function(){var h=/^([a]|[^a])+$/,e=/^\d*$/,n=/^\d*(?:\.\d+)?$/,m=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,l=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,k=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;CKEDITOR.VALIDATE_OR=1;CKEDITOR.VALIDATE_AND=2;CKEDITOR.dialog.validate={functions:function(){var b=arguments;return function(){var a=this&&this.getValue?this.getValue():b[0],t,s=CKEDITOR.VALIDATE_AND,q=[],p;for(p=0;p<b.length;p++){if("function"==typeof b[p]){q.push(b[p])}else{break}}p<b.length&&"string"==typeof b[p]&&(t=b[p],p++);p<b.length&&"number"==typeof b[p]&&(s=b[p]);var r=s==CKEDITOR.VALIDATE_AND?!0:!1;for(p=0;p<q.length;p++){r=s==CKEDITOR.VALIDATE_AND?r&&q[p](a):r||q[p](a)}return r?!0:t}},regex:function(d,c){return function(a){a=this&&this.getValue?this.getValue():a;return d.test(a)?!0:c}},notEmpty:function(a){return this.regex(h,a)},integer:function(b){return this.regex(e,b)},number:function(b){return this.regex(n,b)},cssLength:function(b){return this.functions(function(c){return l.test(CKEDITOR.tools.trim(c))},b)},htmlLength:function(b){return this.functions(function(c){return m.test(CKEDITOR.tools.trim(c))},b)},inlineStyle:function(b){return this.functions(function(c){return k.test(CKEDITOR.tools.trim(c))},b)},equals:function(d,c){return this.functions(function(a){return a==d},c)},notEqual:function(d,c){return this.functions(function(a){return a!=d},c)}};CKEDITOR.on("instanceDestroyed",function(g){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var f;f=CKEDITOR.dialog._.currentTop;){f.hide()}for(var q in o){o[q].remove()}o={}}g=g.editor._.storedDialogs;for(var p in g){g[p].destroy()}})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(f,e){var h=null,g=CKEDITOR.dialog._.dialogDefinitions[f];null===CKEDITOR.dialog._.currentTop&&R(this);if("function"==typeof g){h=this._.storedDialogs||(this._.storedDialogs={}),h=h[f]||(h[f]=new CKEDITOR.dialog(this,f)),e&&e.call(h,h),h.show()}else{if("failed"==g){throw L(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+f+'" failed when loading definition.')}"string"==typeof g&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(g),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[f]&&(CKEDITOR.dialog._.dialogDefinitions[f]="failed");this.openDialog(f,e)},this,0,1)}CKEDITOR.skin.loadPart("dialog");return h}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(b){b.on("doubleclick",function(a){a.data.dialog&&b.openDialog(a.data.dialog)},null,null,999)}}),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(b){var c=b.addCommand("about",new CKEDITOR.dialogCommand("about"));c.modes={wysiwyg:1,source:1};c.canUndo=!1;c.readOnly=1;b.ui.addButton&&b.ui.addButton("About",{label:b.lang.about.title,command:"about",toolbar:"about"});CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),function(){CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{af:1,ar:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,fa:1,fi:1,fo:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},init:function(b){var c=this;b.addCommand("a11yHelp",{exec:function(){var a=b.langCode,a=c.availableLangs[a]?a:c.availableLangs[a.replace(/-.*/,"")]?a.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(c.path+"dialogs/lang/"+a+".js"),function(){b.lang.a11yhelp=c.langEntries[a];b.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:!1});b.setKeystroke(CKEDITOR.ALT+48,"a11yHelp");CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js");b.on("ariaEditorHelpLabel",function(a){a.data.label=b.lang.common.editorHelp})}})}(),function(){function d(g){var e=this.att;g=g&&g.hasAttribute(e)&&g.getAttribute(e)||"";void 0!==g&&this.setValue(g)}function f(){for(var h,g=0;g<arguments.length;g++){if(arguments[g] instanceof CKEDITOR.dom.element){h=arguments[g];break}}if(h){var g=this.att,i=this.getValue();i?h.setAttribute(g,i):h.removeAttribute(g,i)}}var c={id:1,dir:1,classes:1,styles:1};CKEDITOR.plugins.add("dialogadvtab",{requires:"dialog",allowedContent:function(b){b||(b=c);var h=[];b.id&&h.push("id");b.dir&&h.push("dir");var g="";h.length&&(g+="["+h.join(",")+"]");b.classes&&(g+="(*)");b.styles&&(g+="{*}");return g},createAdvancedTab:function(j,i,b){i||(i=c);var a=j.lang.common,g={id:"advanced",label:a.advancedTab,title:a.advancedTab,elements:[{type:"vbox",padding:1,children:[]}]},e=[];if(i.id||i.dir){i.id&&e.push({id:"advId",att:"id",type:"text",requiredContent:b?b+"[id]":null,label:a.id,setup:d,commit:f}),i.dir&&e.push({id:"advLangDir",att:"dir",type:"select",requiredContent:b?b+"[dir]":null,label:a.langDir,"default":"",style:"width:100%",items:[[a.notSet,""],[a.langDirLTR,"ltr"],[a.langDirRTL,"rtl"]],setup:d,commit:f}),g.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(e)})}if(i.styles||i.classes){e=[],i.styles&&e.push({id:"advStyles",att:"style",type:"text",requiredContent:b?b+"{cke-xyz}":null,label:a.styles,"default":"",validate:CKEDITOR.dialog.validate.inlineStyle(a.invalidInlineStyle),onChange:function(){},getStyle:function(k,h){var l=this.getValue().match(RegExp("(?:^|;)\\s*"+k+"\\s*:\\s*([^;]*)","i"));return l?l[1]:h},updateStyle:function(k,h){var m=this.getValue(),l=j.document.createElement("span");l.setAttribute("style",m);l.setStyle(k,h);m=CKEDITOR.tools.normalizeCssText(l.getAttribute("style"));this.setValue(m,1)},setup:d,commit:f}),i.classes&&e.push({type:"hbox",widths:["45%","55%"],children:[{id:"advCSSClasses",att:"class",type:"text",requiredContent:b?b+"(cke-xyz)":null,label:a.cssClasses,"default":"",setup:d,commit:f}]}),g.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(e)})}return g}})}(),CKEDITOR.plugins.add("basicstyles",{init:function(g){var i=0,f=function(c,o,e,a){if(a){a=new CKEDITOR.style(a);var n=l[e];n.unshift(a);g.attachStyleStateChange(a,function(d){!g.readOnly&&g.getCommand(e).setState(d)});g.addCommand(e,new CKEDITOR.styleCommand(a,{contentForms:n}));g.ui.addButton&&g.ui.addButton(c,{label:o,command:e,toolbar:"basicstyles,"+(i+=10)})}},l={bold:["strong","b",["span",function(b){b=b.styles["font-weight"];return"bold"==b||700<=+b}]],italic:["em","i",["span",function(b){return"italic"==b.styles["font-style"]}]],underline:["u",["span",function(b){return"underline"==b.styles["text-decoration"]}]],strike:["s","strike",["span",function(b){return"line-through"==b.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},j=g.config,h=g.lang.basicstyles;f("Bold",h.bold,"bold",j.coreStyles_bold);f("Italic",h.italic,"italic",j.coreStyles_italic);f("Underline",h.underline,"underline",j.coreStyles_underline);f("Strike",h.strike,"strike",j.coreStyles_strike);f("Subscript",h.subscript,"subscript",j.coreStyles_subscript);f("Superscript",h.superscript,"superscript",j.coreStyles_superscript);g.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},CKEDITOR.config.coreStyles_superscript={element:"sup"},function(){function t(h,e,m,l){if(!h.isReadOnly()&&!h.equals(m.editable())){CKEDITOR.dom.element.setMarker(l,h,"bidi_processed",1);l=h;for(var k=m.editable();(l=l.getParent())&&!l.equals(k);){if(l.getCustomData("bidi_processed")){h.removeStyle("direction");h.removeAttribute("dir");return}}l="useComputedState" in m.config?m.config.useComputedState:1;(l?h.getComputedStyle("direction"):h.getStyle("direction")||h.hasAttribute("dir"))!=e&&(h.removeStyle("direction"),l?(h.removeAttribute("dir"),e!=h.getComputedStyle("direction")&&h.setAttribute("dir",e)):h.setAttribute("dir",e),m.forceNextSelectionCheck())}}function p(h,e,m){var l=h.getCommonAncestor(!1,!0);h=h.clone();h.enlarge(m==CKEDITOR.ENTER_BR?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(h.checkBoundaryOfElement(l,CKEDITOR.START)&&h.checkBoundaryOfElement(l,CKEDITOR.END)){for(var k;l&&l.type==CKEDITOR.NODE_ELEMENT&&(k=l.getParent())&&1==k.getChildCount()&&!(l.getName() in e);){l=k}return l.type==CKEDITOR.NODE_ELEMENT&&l.getName() in e&&l}}function s(a){return{context:"p",allowedContent:{"h1 h2 h3 h4 h5 h6 table ul ol blockquote div tr p div li td":{propertiesOnly:!0,attributes:"dir"}},requiredContent:"p[dir]",refresh:function(k,h){var v=k.config.useComputedState,u,v=void 0===v||v;if(!v){u=h.lastElement;for(var l=k.editable();u&&!(u.getName() in i||u.equals(l));){var m=u.getParent();if(!m){break}u=m}}u=u||h.block||h.blockLimit;u.equals(k.editable())&&(l=k.getSelection().getRanges()[0].getEnclosedNode())&&l.type==CKEDITOR.NODE_ELEMENT&&(u=l);u&&(v=v?u.getComputedStyle("direction"):u.getStyle("direction")||u.getAttribute("dir"),k.getCommand("bidirtl").setState("rtl"==v?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),k.getCommand("bidiltr").setState("ltr"==v?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF));v=(h.block||h.blockLimit||k.editable()).getDirection(1);v!=(k._.selDir||k.lang.dir)&&(k._.selDir=v,k.fire("contentDirChanged",v))},exec:function(D){var B=D.getSelection(),v=D.config.enterMode,k=B.getRanges();if(k&&k.length){for(var e={},d=B.createBookmarks(),k=k.createIterator(),H,G=0;H=k.getNextRange(1);){var C=H.getEnclosedNode();C&&(!C||C.type==CKEDITOR.NODE_ELEMENT&&C.getName() in j)||(C=p(H,q,v));C&&t(C,a,D,e);var F=new CKEDITOR.dom.walker(H),b=d[G].startNode,E=d[G++].endNode;F.evaluator=function(h){var f=v==CKEDITOR.ENTER_P?"p":"div",l;if(!(l=!(h&&h.type==CKEDITOR.NODE_ELEMENT))){if(l=h.getName() in q){(f=!h.is(f))||(f=h.getParent(),f=!(f&&f.type==CKEDITOR.NODE_ELEMENT)||!h.getParent().is("blockquote")),l=f&&h.getPosition(b)&CKEDITOR.POSITION_FOLLOWING&&(h.getPosition(E)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_CONTAINS)==CKEDITOR.POSITION_PRECEDING}l=!l}return !l};for(;C=F.next();){t(C,a,D,e)}H=H.createIterator();for(H.enlargeBr=v!=CKEDITOR.ENTER_BR;C=H.getNextParagraph(v==CKEDITOR.ENTER_P?"p":"div");){t(C,a,D,e)}}CKEDITOR.dom.element.clearAllMarkers(e);D.forceNextSelectionCheck();B.selectBookmarks(d);D.focus()}}}}function r(f){var e=f==o.setAttribute,k=f==o.removeAttribute,h=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/;return function(c,d){if(!this.isReadOnly()){var a;if(a=c==(e||k?"dir":"direction")||"style"==c&&(k||h.test(d))){f:{a=this;for(var b=a.getDocument().getBody().getParent();a;){if(a.equals(b)){a=!1;break f}a=a.getParent()}a=!0}a=!a}if(a&&(a=this.getDirection(1),b=f.apply(this,arguments),a!=this.getDirection(1))){return this.getDocument().fire("dirChanged",this),b}}return f.apply(this,arguments)}}var q={table:1,ul:1,ol:1,blockquote:1,div:1},j={},i={};CKEDITOR.tools.extend(j,q,{tr:1,p:1,div:1,li:1});CKEDITOR.tools.extend(i,j,{td:1});CKEDITOR.plugins.add("bidi",{init:function(b){function f(a,m,h,l,c){b.addCommand(h,new CKEDITOR.command(b,l));b.ui.addButton&&b.ui.addButton(a,{label:m,command:h,toolbar:"bidi,"+c})}if(!b.blockless){var e=b.lang.bidi;f("BidiLtr",e.ltr,"bidiltr",s("ltr"),10);f("BidiRtl",e.rtl,"bidirtl",s("rtl"),20);b.on("contentDom",function(){b.document.on("dirChanged",function(a){b.fire("dirChanged",{node:a.data,dir:a.data.getDirection(1)})})});b.on("contentDirChanged",function(a){a=(b.lang.dir!=a.data?"add":"remove")+"Class";var d=b.ui.space(b.config.toolbarLocation);if(d){d[a]("cke_mixed_dir_content")}})}}});for(var o=CKEDITOR.dom.element.prototype,n=["setStyle","removeStyle","setAttribute","removeAttribute"],g=0;g<n.length;g++){o[n[g]]=CKEDITOR.tools.override(o[n[g]],r)}}(),function(){var b={exec:function(v){var u=v.getCommand("blockquote").state,t=v.getSelection(),s=t&&t.getRanges()[0];if(s){var n=t.createBookmarks();if(CKEDITOR.env.ie){var j=n[0].startNode,r=n[0].endNode,o;if(j&&"blockquote"==j.getParent().getName()){for(o=j;o=o.getNext();){if(o.type==CKEDITOR.NODE_ELEMENT&&o.isBlockBoundary()){j.move(o,!0);break}}}if(r&&"blockquote"==r.getParent().getName()){for(o=r;o=o.getPrevious();){if(o.type==CKEDITOR.NODE_ELEMENT&&o.isBlockBoundary()){r.move(o);break}}}}var i=s.createIterator();i.enlargeBr=v.config.enterMode!=CKEDITOR.ENTER_BR;if(u==CKEDITOR.TRISTATE_OFF){for(j=[];u=i.getNextParagraph();){j.push(u)}1>j.length&&(u=v.document.createElement(v.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),r=n.shift(),s.insertNode(u),u.append(new CKEDITOR.dom.text("\ufeff",v.document)),s.moveToBookmark(r),s.selectNodeContents(u),s.collapse(!0),r=s.createBookmark(),j.push(u),n.unshift(r));o=j[0].getParent();s=[];for(r=0;r<j.length;r++){u=j[r],o=o.getCommonAncestor(u.getParent())}for(u={table:1,tbody:1,tr:1,ol:1,ul:1};u[o.getName()];){o=o.getParent()}for(r=null;0<j.length;){for(u=j.shift();!u.getParent().equals(o);){u=u.getParent()}u.equals(r)||s.push(u);r=u}for(;0<s.length;){if(u=s.shift(),"blockquote"==u.getName()){for(r=new CKEDITOR.dom.documentFragment(v.document);u.getFirst();){r.append(u.getFirst().remove()),j.push(r.getLast())}r.replace(u)}else{j.push(u)}}s=v.document.createElement("blockquote");for(s.insertBefore(j[0]);0<j.length;){u=j.shift(),s.append(u)}}else{if(u==CKEDITOR.TRISTATE_ON){r=[];for(o={};u=i.getNextParagraph();){for(j=s=null;u.getParent();){if("blockquote"==u.getParent().getName()){s=u.getParent();j=u;break}u=u.getParent()}s&&j&&!j.getCustomData("blockquote_moveout")&&(r.push(j),CKEDITOR.dom.element.setMarker(o,j,"blockquote_moveout",!0))}CKEDITOR.dom.element.clearAllMarkers(o);u=[];j=[];for(o={};0<r.length;){i=r.shift(),s=i.getParent(),i.getPrevious()?i.getNext()?(i.breakParent(i.getParent()),j.push(i.getNext())):i.remove().insertAfter(s):i.remove().insertBefore(s),s.getCustomData("blockquote_processed")||(j.push(s),CKEDITOR.dom.element.setMarker(o,s,"blockquote_processed",!0)),u.push(i)}CKEDITOR.dom.element.clearAllMarkers(o);for(r=j.length-1;0<=r;r--){s=j[r];v:{o=s;for(var i=0,q=o.getChildCount(),e=void 0;i<q&&(e=o.getChild(i));i++){if(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()){o=!1;break v}}o=!0}o&&s.remove()}if(v.config.enterMode==CKEDITOR.ENTER_BR){for(s=!0;u.length;){if(i=u.shift(),"div"==i.getName()){r=new CKEDITOR.dom.documentFragment(v.document);s&&i.getPrevious()&&(i.getPrevious().type!=CKEDITOR.NODE_ELEMENT||!i.getPrevious().isBlockBoundary())&&r.append(v.document.createElement("br"));for(s=i.getNext()&&!(i.getNext().type==CKEDITOR.NODE_ELEMENT&&i.getNext().isBlockBoundary());i.getFirst();){i.getFirst().remove().appendTo(r)}s&&r.append(v.document.createElement("br"));r.replace(i);s=!1}}}}}t.selectBookmarks(n);v.focus()}},refresh:function(d,c){this.setState(d.elementPath(c.block||c.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(a){a.blockless||(a.addCommand("blockquote",b),a.ui.addButton&&a.ui.addButton("Blockquote",{label:a.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}})}(),function(){function t(e,d,f){d.type||(d.type="auto");if(f&&!1===e.fire("beforePaste",d)||!d.dataValue&&d.dataTransfer.isEmpty()){return !1}d.dataValue||(d.dataValue="");if(CKEDITOR.env.gecko&&"drop"==d.method&&e.toolbox){e.once("afterPaste",function(){e.toolbox.focus()})}return e.fire("paste",d)}function p(S){function R(){var b=S.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var e=function(d){I.initPasteDataTransfer(d,S);d.data.preventDefault()};b.on("copy",e);b.on("cut",e);b.on("cut",function(){S.extractSelectedHtml()},null,null,999)}b.on(I.mainPasteEvent,function(d){"beforepaste"==I.mainPasteEvent&&G||J(d)});"beforepaste"==I.mainPasteEvent&&(b.on("paste",function(d){F||(P(),d.data.preventDefault(),J(d),N("paste")||S.openDialog("paste"))}),b.on("contextmenu",M,null,null,0),b.on("beforepaste",function(d){d.data&&!d.data.$.ctrlKey&&!d.data.$.shiftKey&&M()},null,null,0));b.on("beforecut",function(){!G&&L(S)});var c;b.attachListener(CKEDITOR.env.ie?b:S.document.getDocumentElement(),"mouseup",function(){c=setTimeout(function(){u()},0)});S.on("destroy",function(){clearTimeout(c)});b.on("keyup",u)}function Q(b){return{type:b,canUndo:"cut"==b,startDisabled:!0,exec:function(){"cut"==this.type&&L();var e,h=this.type;if(CKEDITOR.env.ie){e=N(h)}else{try{e=S.document.$.execCommand(h,!1,null)}catch(f){e=!1}}e||S.showNotification(S.lang.clipboard[this.type+"Error"]);return e}}}function O(){return{canUndo:!1,async:!0,exec:function(e,l){var k=function(f,b){f&&t(e,f,!!b);e.fire("afterCommandExec",{name:"paste",command:h,returnValue:!!f})},h=this;"string"==typeof l?k({dataValue:l,method:"paste",dataTransfer:I.initPasteDataTransfer()},1):e.getClipboardData(k)}}}function P(){F=1;setTimeout(function(){F=0},100)}function M(){G=1;setTimeout(function(){G=0},10)}function N(b){var m=S.document,l=m.getBody(),h=!1,k=function(){h=!0};l.on(b,k);7<CKEDITOR.env.version?m.$.execCommand(b):m.$.selection.createRange().execCommand(b);l.removeListener(b,k);return h}function L(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var b=S.getSelection(),k,h,e;b.getType()==CKEDITOR.SELECTION_ELEMENT&&(k=b.getSelectedElement())&&(h=b.getRanges()[0],e=S.document.createText(""),e.insertBefore(k),h.setStartBefore(e),h.setEndAfter(k),b.selectRanges([h]),setTimeout(function(){k.getParent()&&(e.remove(),b.selectElement(k))},0))}}function K(E,D){var C=S.document,A=S.editable(),B=function(c){c.cancel()},y;if(!C.getById("cke_pastebin")){var z=S.getSelection(),x=z.createBookmarks();CKEDITOR.env.ie&&z.root.fire("selectionchange");var m=new CKEDITOR.dom.element(!CKEDITOR.env.webkit&&!A.is("body")||CKEDITOR.env.ie?"div":"body",C);m.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var b=0,C=C.getWindow();CKEDITOR.env.webkit?(A.append(m),m.addClass("cke_editable"),A.is("body")||(b="static"!=A.getComputedStyle("position")?A:CKEDITOR.dom.element.get(A.$.offsetParent),b=b.getDocumentPosition().y)):A.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(m);m.setStyles({position:"absolute",top:C.getScrollPosition().y-b+10+"px",width:"1px",height:Math.max(1,C.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0});CKEDITOR.env.safari&&m.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text"));(b=m.getParent().isReadOnly())?(m.setOpacity(0),m.setAttribute("contenteditable",!0)):m.setStyle("ltr"==S.config.contentsLangDirection?"left":"right","-1000px");S.on("selectionChange",B,null,null,0);if(CKEDITOR.env.webkit||CKEDITOR.env.gecko){y=A.once("blur",B,null,null,-100)}b&&m.focus();b=new CKEDITOR.dom.range(m);b.selectNodeContents(m);var T=b.select();CKEDITOR.env.ie&&(y=A.once("blur",function(){S.lockSelection(T)}));var U=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=U);y&&y.removeListener();CKEDITOR.env.ie&&A.focus();z.selectBookmarks(x);m.remove();var c;CKEDITOR.env.webkit&&(c=m.getFirst())&&c.is&&c.hasClass("Apple-style-span")&&(m=c);S.removeListener("selectionChange",B);D(m.getHtml())},0)}}function a(){if("paste"==I.mainPasteEvent){return S.fire("beforePaste",{type:"auto",method:"paste"}),!1}S.focus();P();var b=S.focusManager;b.lock();if(S.editable().fire(I.mainPasteEvent)&&!N("paste")){return b.unlock(),!1}b.unlock();return !0}function v(b){if("wysiwyg"==S.mode){switch(b.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:b=S.editable();P();"paste"==I.mainPasteEvent&&b.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:S.fire("saveSnapshot"),setTimeout(function(){S.fire("saveSnapshot")},50)}}}function J(h){var e={type:"auto",method:"paste",dataTransfer:I.initPasteDataTransfer(h)};e.dataTransfer.cacheData();var b=!1!==S.fire("beforePaste",e);b&&I.canClipboardApiBeTrusted(e.dataTransfer,S)?(h.data.preventDefault(),setTimeout(function(){t(S,e)},0)):K(h,function(d){e.dataValue=d.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");b&&t(S,e)})}function u(){if("wysiwyg"==S.mode){var b=H("paste");S.getCommand("cut").setState(H("cut"));S.getCommand("copy").setState(H("copy"));S.getCommand("paste").setState(b);S.fire("pasteState",b)}}function H(b){if(w&&b in {paste:1,cut:1}){return CKEDITOR.TRISTATE_DISABLED}if("paste"==b){return CKEDITOR.TRISTATE_OFF}b=S.getSelection();var d=b.getRanges();return b.getType()==CKEDITOR.SELECTION_NONE||1==d.length&&d[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var I=CKEDITOR.plugins.clipboard,G=0,F=0,w=0;(function(){S.on("key",v);S.on("contentDom",R);S.on("selectionChange",function(b){w=b.data.selection.getRanges()[0].checkReadOnly();u()});S.contextMenu&&S.contextMenu.addListener(function(d,c){w=c.getRanges()[0].checkReadOnly();return{cut:H("cut"),copy:H("copy"),paste:H("paste")}})})();(function(){function b(A,z,x,y,l){var m=S.lang.clipboard[z];S.addCommand(z,x);S.ui.addButton&&S.ui.addButton(A,{label:m,command:z,toolbar:"clipboard,"+y});S.addMenuItems&&S.addMenuItem(z,{label:m,command:z,group:"clipboard",order:l})}b("Cut","cut",Q("cut"),10,1);b("Copy","copy",Q("copy"),20,4);b("Paste","paste",O(),30,8)})();S.getClipboardData=function(m,C){function B(c){c.removeListener();c.cancel();C(c.data)}function z(c){c.removeListener();c.cancel();b=!0;C({type:y,dataValue:c.data,method:"paste"})}function A(){this.customTitle=m&&m.title}var x=!1,y="auto",b=!1;C||(C=m,m=null);S.on("paste",B,null,null,0);S.on("beforePaste",function(c){c.removeListener();x=!0;y=c.data.type},null,null,1000);!1===a()&&(S.removeListener("paste",B),x&&S.fire("pasteDialog",A)?(S.on("pasteDialogCommit",z),S.on("dialogHide",function(c){c.removeListener();c.data.removeListener("pasteDialogCommit",z);setTimeout(function(){b||C(null)},10)})):C(null))}}function s(b){if(CKEDITOR.env.webkit){if(!b.match(/^[^<]*$/g)&&!b.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi)){return"html"}}else{if(CKEDITOR.env.ie){if(!b.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!b.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi)){return"html"}}else{if(CKEDITOR.env.gecko){if(!b.match(/^([^<]|<br( ?\/)?>)*$/gi)){return"html"}}else{return"html"}}}return"htmlifiedtext"}function r(e,d){function f(b){return CKEDITOR.tools.repeat("</p><p>",~~(b/2))+(1==b%2?"<br>":"")}d=d.replace(/\s+/g," ").replace(/> +</g,"><").replace(/<br ?\/>/gi,"<br>");d=d.replace(/<\/?[A-Z]+>/g,function(b){return b.toLowerCase()});if(d.match(/^[^<]$/)){return d}CKEDITOR.env.webkit&&-1<d.indexOf("<div>")&&(d=d.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"<br>").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"<div></div>"),d.match(/<div>(<br>|)<\/div>/)&&(d="<p>"+d.replace(/(<div>(<br>|)<\/div>)+/g,function(b){return f(b.split("</div><div>").length+1)})+"</p>"),d=d.replace(/<\/div><div>/g,"<br>"),d=d.replace(/<\/?div>/g,""));CKEDITOR.env.gecko&&e.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(d=d.replace(/^<br><br>$/,"<br>")),-1<d.indexOf("<br><br>")&&(d="<p>"+d.replace(/(<br>){2,}/g,function(b){return f(b.length/4)})+"</p>"));return i(e,d)}function q(){function e(){var a={},h;for(h in CKEDITOR.dtd){"$"!=h.charAt(0)&&"div"!=h&&"span"!=h&&(a[h]=1)}return a}var d,f;return{get:function(a){return"plain-text"==a?d||(d=new CKEDITOR.filter("br")):"semantic-content"==a?((a=f)||(a=new CKEDITOR.filter,a.allow({$1:{elements:e(),attributes:!0,styles:!1,classes:!1}}),a=f=a),a):a?new CKEDITOR.filter(a):null}}}function j(f,e,k){e=CKEDITOR.htmlParser.fragment.fromHtml(e);var h=new CKEDITOR.htmlParser.basicWriter;k.applyTo(e,!0,!1,f.activeEnterMode);e.writeHtml(h);return h.getHtml()}function i(d,c){d.enterMode==CKEDITOR.ENTER_BR?c=c.replace(/(<\/p><p>)+/g,function(b){return CKEDITOR.tools.repeat("<br>",b.length/7*2)}).replace(/<\/?p>/g,""):d.enterMode==CKEDITOR.ENTER_DIV&&(c=c.replace(/<(\/)?p>/g,"<$1div>"));return c}function o(b){b.data.preventDefault();b.data.$.dataTransfer.dropEffect="none"}function n(a){var d=CKEDITOR.plugins.clipboard;a.on("contentDom",function(){function A(l,h,k){h.select();t(a,{dataTransfer:k,method:"drop"},1);k.sourceEditor.fire("saveSnapshot");k.sourceEditor.editable().extractHtmlFromRange(l);k.sourceEditor.getSelection().selectRanges([l]);k.sourceEditor.fire("saveSnapshot")}function w(h,f){h.select();t(a,{dataTransfer:f,method:"drop"},1);d.resetDragDataTransfer()}function x(e,l,k){var h={$:e.data.$,target:e.data.getTarget()};l&&(h.dragRange=l);k&&(h.dropRange=k);!1===a.fire(e.name,h)&&e.data.preventDefault()}function u(e){e.type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent());return e.getChildCount()}var v=a.editable(),c=CKEDITOR.plugins.clipboard.getDropTarget(a),b=a.ui.space("top"),y=a.ui.space("bottom");d.preventDefaultDropOnElement(b);d.preventDefaultDropOnElement(y);v.attachListener(c,"dragstart",x);v.attachListener(a,"dragstart",d.resetDragDataTransfer,d,null,1);v.attachListener(a,"dragstart",function(e){d.initDragDataTransfer(e,a);e=d.dragRange=a.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(d.dragStartContainerChildCount=e?u(e.startContainer):null,d.dragEndContainerChildCount=e?u(e.endContainer):null)},null,null,2);v.attachListener(c,"dragend",x);v.attachListener(a,"dragend",d.initDragDataTransfer,d,null,1);v.attachListener(a,"dragend",d.resetDragDataTransfer,d,null,100);v.attachListener(c,"dragover",function(f){var e=f.data.getTarget();e&&e.is&&e.is("html")?f.data.preventDefault():CKEDITOR.env.ie&&CKEDITOR.plugins.clipboard.isFileApiSupported&&f.data.$.dataTransfer.types.contains("Files")&&f.data.preventDefault()});v.attachListener(c,"drop",function(e){e.data.preventDefault();var k=e.data.getTarget();if(!k.isReadOnly()||k.type==CKEDITOR.NODE_ELEMENT&&k.is("html")){var k=d.getRangeAtDropPosition(e,a),h=d.dragRange;k&&x(e,h,k)}});v.attachListener(a,"drop",d.initDragDataTransfer,d,null,1);v.attachListener(a,"drop",function(f){if(f=f.data){var z=f.dropRange,l=f.dragRange,m=f.dataTransfer;m.getTransferType(a)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){d.internalDrop(l,z,m,a)},0):m.getTransferType(a)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?A(l,z,m):w(z,m)}},null,null,9999)})}CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(c){var d,b=q();c.config.forcePasteAsPlainText?d="plain-text":c.config.pasteFilter?d=c.config.pasteFilter:CKEDITOR.env.webkit&&!("pasteFilter" in c.config)&&(d="semantic-content");c.pasteFilter=b.get(d);p(c);n(c);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js"));c.on("paste",function(a){a.data.dataTransfer||(a.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer);if(!a.data.dataValue){var f=a.data.dataTransfer,e=f.getData("text/html");if(e){a.data.dataValue=e,a.data.type="html"}else{if(e=f.getData("text/plain")){a.data.dataValue=c.editable().transformPlainTextToHtml(e),a.data.type="text"}}}},null,null,1);c.on("paste",function(k){var h=k.data.dataValue,v=CKEDITOR.dtd.$block;-1<h.indexOf("Apple-")&&(h=h.replace(/<span class="Apple-converted-space"> <\/span>/gi," "),"html"!=k.data.type&&(h=h.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(f,e){return e.replace(/\t/g," ")})),-1<h.indexOf('<br class="Apple-interchange-newline">')&&(k.data.startsWithEOL=1,k.data.preSniffing="html",h=h.replace(/<br class="Apple-interchange-newline">/,"")),h=h.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1"));if(h.match(/^<[^<]+cke_(editable|contents)/i)){var u,l,m=new CKEDITOR.dom.element("div");for(m.setHtml(h);1==m.getChildCount()&&(u=m.getFirst())&&u.type==CKEDITOR.NODE_ELEMENT&&(u.hasClass("cke_editable")||u.hasClass("cke_contents"));){m=l=u}l&&(h=l.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?h=h.replace(/^ (?: |\r\n)?<(\w+)/g,function(a,e){return e.toLowerCase() in v?(k.data.preSniffing="html","<"+e):a}):CKEDITOR.env.webkit?h=h.replace(/<\/(\w+)><div><br><\/div>$/,function(a,e){return e in v?(k.data.endsWithEOL=1,"</"+e+">"):a}):CKEDITOR.env.gecko&&(h=h.replace(/(\s)<br>$/,"$1"));k.data.dataValue=h},null,null,3);c.on("paste",function(x){x=x.data;var u=x.type,v=x.dataValue,l,a=c.config.clipboard_defaultContentType||"html",k=x.dataTransfer.getTransferType(c);l="html"==u||"html"==x.preSniffing?"html":s(v);"htmlifiedtext"==l&&(v=r(c.config,v));"text"==u&&"html"==l?v=j(c,v,b.get("plain-text")):k==CKEDITOR.DATA_TRANSFER_EXTERNAL&&c.pasteFilter&&!x.dontFilter&&(v=j(c,v,c.pasteFilter));x.startsWithEOL&&(v='<br data-cke-eol="1">'+v);x.endsWithEOL&&(v+='<br data-cke-eol="1">');"auto"==u&&(u="html"==l||"html"==a?"html":"text");x.type=u;x.dataValue=v;delete x.preSniffing;delete x.startsWithEOL;delete x.endsWithEOL},null,null,6);c.on("paste",function(a){a=a.data;a.dataValue&&(c.insertHtml(a.dataValue,a.type,a.range),setTimeout(function(){c.fire("afterPaste")},0))},null,null,1000);c.on("pasteDialog",function(a){setTimeout(function(){c.openDialog("paste",a.data)},0)})}});CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:!CKEDITOR.env.ie&&!CKEDITOR.env.iOS,isCustomDataTypesSupported:!CKEDITOR.env.ie,isFileApiSupported:!CKEDITOR.env.ie||9<CKEDITOR.env.version,mainPasteEvent:CKEDITOR.env.ie&&!CKEDITOR.env.edge?"beforepaste":"paste",canClipboardApiBeTrusted:function(d,c){return d.getTransferType(c)!=CKEDITOR.DATA_TRANSFER_EXTERNAL||CKEDITOR.env.chrome&&!d.isEmpty()||CKEDITOR.env.gecko&&(d.getData("text/html")||d.getFilesCount())?!0:!1},getDropTarget:function(d){var c=d.editable();return CKEDITOR.env.ie&&9>CKEDITOR.env.version||c.isInline()?c:d.document},fixSplitNodesAfterDrop:function(k,h,v,u){function l(b,x,w){var f=b;f.type==CKEDITOR.NODE_TEXT&&(f=b.getParent());if(f.equals(x)&&w!=x.getChildCount()){return b=h,x=b.startContainer.getChild(b.startOffset-1),w=b.startContainer.getChild(b.startOffset),x&&x.type==CKEDITOR.NODE_TEXT&&w&&w.type==CKEDITOR.NODE_TEXT&&(f=x.getLength(),x.setText(x.getText()+w.getText()),w.remove(),b.setStart(x,f),b.collapse(!0)),!0}}var m=h.startContainer;"number"==typeof u&&"number"==typeof v&&m.type==CKEDITOR.NODE_ELEMENT&&!l(k.startContainer,m,v)&&l(k.endContainer,m,u)},isDropRangeAffectedByDragRange:function(f,e){var k=e.startContainer,h=e.endOffset;return f.endContainer.equals(k)&&f.endOffset<=h||f.startContainer.getParent().equals(k)&&f.startContainer.getIndex()<h||f.endContainer.getParent().equals(k)&&f.endContainer.getIndex()<h?!0:!1},internalDrop:function(a,z,y,w){var x=CKEDITOR.plugins.clipboard,u=w.editable(),v,m;w.fire("saveSnapshot");w.fire("lockSnapshot",{dontUpdate:1});CKEDITOR.env.ie&&10>CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(a,z,x.dragStartContainerChildCount,x.dragEndContainerChildCount);(m=this.isDropRangeAffectedByDragRange(a,z))||(v=a.createBookmark(1));x=z.clone().createBookmark(1);m&&(v=a.createBookmark(1));a=w.createRange();a.moveToBookmark(v);u.extractHtmlFromRange(a,1);z=w.createRange();z.moveToBookmark(x);t(w,{dataTransfer:y,method:"drop",range:z},1);w.fire("unlockSnapshot")},getRangeAtDropPosition:function(Q,O){var M=Q.data.$,L=M.clientX,J=M.clientY,K=O.getSelection(!0).getRanges()[0],H=O.createRange();if(Q.data.testRange){return Q.data.testRange}if(document.caretRangeFromPoint){M=O.document.$.caretRangeFromPoint(L,J),H.setStart(CKEDITOR.dom.node(M.startContainer),M.startOffset),H.collapse(!0)}else{if(M.rangeParent){H.setStart(CKEDITOR.dom.node(M.rangeParent),M.rangeOffset),H.collapse(!0)}else{if(CKEDITOR.env.ie&&8<CKEDITOR.env.version&&K&&O.editable().hasFocus){return K}if(document.body.createTextRange){O.focus();M=O.document.getBody().$.createTextRange();try{for(var I=!1,G=0;20>G&&!I;G++){if(!I){try{M.moveToPoint(L,J-G),I=!0}catch(F){}}if(!I){try{M.moveToPoint(L,J+G),I=!0}catch(P){}}}if(I){var E="cke-temp-"+(new Date).getTime();M.pasteHTML('<span id="'+E+'">\u200b</span>');var N=O.document.getById(E);H.moveToPosition(N,CKEDITOR.POSITION_BEFORE_START);N.remove()}else{var v=O.document.$.elementFromPoint(L,J),z=new CKEDITOR.dom.element(v),w;if(z.equals(O.editable())||"html"==z.getName()){return K&&K.startContainer&&!K.startContainer.equals(O.editable())?K:null}w=z.getClientRect();L<w.left?H.setStartAt(z,CKEDITOR.POSITION_AFTER_START):H.setStartAt(z,CKEDITOR.POSITION_BEFORE_END);H.collapse(!0)}}catch(u){return null}}else{return null}}}return H},initDragDataTransfer:function(f,e){var k=f.data.$?f.data.$.dataTransfer:null,h=new this.dataTransfer(k,e);k?this.dragData&&h.id==this.dragData.id?h=this.dragData:this.dragData=h:this.dragData?h=this.dragData:this.dragData=h;f.data.dataTransfer=h},resetDragDataTransfer:function(){this.dragData=null},initPasteDataTransfer:function(e,d){if(this.isCustomCopyCutSupported&&e&&e.data&&e.data.$){var f=new this.dataTransfer(e.data.$.clipboardData,d);this.copyCutData&&f.id==this.copyCutData.id?(f=this.copyCutData,f.$=e.data.$.clipboardData):this.copyCutData=f;return f}return new this.dataTransfer(null,d)},preventDefaultDropOnElement:function(b){b&&b.on("dragover",o)}};var g=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(e,d){e&&(this.$=e);this._={metaRegExp:/^<meta.*?>/,bodyRegExp:/<body(?:[\s\S]*?)>([\s\S]*)<\/body>/,fragmentRegExp:/<\!--(?:Start|End)Fragment--\>/g,data:{},files:[],normalizeType:function(b){b=b.toLowerCase();return"text"==b||"text/plain"==b?"Text":"url"==b?"URL":b}};(this.id=this.getData(g))||(this.id="Text"==g?"":"cke-"+CKEDITOR.tools.getUniqueId());if("Text"!=g){try{this.$.setData(g,this.id)}catch(f){}}d&&(this.sourceEditor=d,this.setData("text/html",d.getSelectedHtml(1)),"Text"!=g&&!this.getData("text/plain")&&this.setData("text/plain",d.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(e){e=this._.normalizeType(e);var d=this._.data[e];if(void 0===d||null===d||""===d){try{d=this.$.getData(e)}catch(f){}}if(void 0===d||null===d||""===d){d=""}if("text/html"==e){if(d=d.replace(this._.metaRegExp,""),(e=this._.bodyRegExp.exec(d))&&e.length){d=e[1],d=d.replace(this._.fragmentRegExp,"")}}else{"Text"==e&&CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==d.substring(0,7)&&(d="")}return d},setData:function(e,d){e=this._.normalizeType(e);this._.data[e]=d;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||"URL"==e||"Text"==e){"Text"==g&&"Text"==e&&(this.id=d);try{this.$.setData(e,d)}catch(f){}}},getTransferType:function(b){return this.sourceEditor?this.sourceEditor==b?CKEDITOR.DATA_TRANSFER_INTERNAL:CKEDITOR.DATA_TRANSFER_CROSS_EDITORS:CKEDITOR.DATA_TRANSFER_EXTERNAL},cacheData:function(){function f(b){b=e._.normalizeType(b);var a=e.getData(b);a&&(e._.data[b]=a)}if(this.$){var e=this,k,h;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types){for(k=0;k<this.$.types.length;k++){f(this.$.types[k])}}}else{f("Text"),f("URL")}h=this._getImageFromClipboard();if(this.$&&this.$.files||h){this._.files=[];for(k=0;k<this.$.files.length;k++){this._.files.push(this.$.files[k])}0===this._.files.length&&h&&this._.files.push(h)}}},getFilesCount:function(){return this._.files.length?this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?1:0},getFile:function(b){return this._.files.length?this._.files[b]:this.$&&this.$.files&&this.$.files.length?this.$.files[b]:0===b?this._getImageFromClipboard():void 0},isEmpty:function(){var e={},d;if(this.getFilesCount()){return !1}for(d in this._.data){e[d]=1}if(this.$){if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types){for(var f=0;f<this.$.types.length;f++){e[this.$.types[f]]=1}}}else{e.Text=1,e.URL=1}}"Text"!=g&&(e[g]=0);for(d in e){if(e[d]&&""!==this.getData(d)){return !1}}return !0},_getImageFromClipboard:function(){var d;if(this.$&&this.$.items&&this.$.items[0]){try{if((d=this.$.items[0].getAsFile())&&d.type){return d}}catch(c){}}}}}(),function(){var d='<a id="{id}" class="cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' title="{title}" tabindex="-1" hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="{hasArrow}" aria-disabled="{ariaDisabled}"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(d+=' onkeypress="return false;"');CKEDITOR.env.gecko&&(d+=' onblur="this.style.cssText = this.style.cssText;"');var d=d+(' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"'),d=d+'> </span><span id="{id}_label" class="cke_button_label cke_button__{name}_label" aria-hidden="false">{label}</span>{arrowHtml}</a>',f=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"▼":"")+"</span>"),c=CKEDITOR.addTemplate("button",d);CKEDITOR.plugins.add("button",{beforeInit:function(b){b.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(b){CKEDITOR.tools.extend(this,b,{title:b.label,click:b.click||function(a){a.execCommand(b.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(b){return new CKEDITOR.ui.button(b)}};CKEDITOR.ui.button.prototype={render:function(A,z){function r(){var a=A.mode;a&&(a=this.modes[a]?void 0!==b[a]?b[a]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,a=A.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:a,this.setState(a),this.refresh&&this.refresh())}var o=CKEDITOR.env,y=this._.id=CKEDITOR.tools.getNextId(),w="",j=this.command,x;this._.editor=A;var e={id:y,button:this,editor:A,focus:function(){CKEDITOR.document.getById(y).focus()},execute:function(){this.button.click(A)},attach:function(g){this.button.attach(g)}},E=CKEDITOR.tools.addFunction(function(g){if(e.onkey){return g=new CKEDITOR.dom.event(g),!1!==e.onkey(e,g.getKeystroke())}}),B=CKEDITOR.tools.addFunction(function(h){var g;e.onfocus&&(g=!1!==e.onfocus(e,new CKEDITOR.dom.event(h)));return g}),D=0;e.clickFn=x=CKEDITOR.tools.addFunction(function(){D&&(A.unlockSelection(1),D=0);e.execute();o.iOS&&A.focus()});if(this.modes){var b={};A.on("beforeModeUnload",function(){A.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(b[A.mode]=this._.state)},this);A.on("activeFilterChange",r,this);A.on("mode",r,this);!this.readOnly&&A.on("readOnly",r,this)}else{j&&(j=A.getCommand(j))&&(j.on("state",function(){this.setState(j.state)},this),w+=j.state==CKEDITOR.TRISTATE_ON?"on":j.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off")}if(this.directional){A.on("contentDirChanged",function(a){var h=CKEDITOR.document.getById(this._.id),g=h.getFirst();a=a.data;a!=A.lang.dir?h.addClass("cke_"+a):h.removeClass("cke_ltr").removeClass("cke_rtl");g.setAttribute("style",CKEDITOR.skin.getIconStyle(C,"rtl"==a,this.icon,this.iconOffset))},this)}j||(w+="off");var i=this.name||this.command,C=i;this.icon&&!/\./.test(this.icon)&&(C=this.icon,this.icon=null);w={id:y,name:i,iconName:C,label:this.label,cls:this.className||"",state:w,ariaDisabled:"disabled"==w?"true":"false",title:this.title,titleJs:o.gecko&&!o.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:E,focusFn:B,clickFn:x,style:CKEDITOR.skin.getIconStyle(C,"rtl"==A.lang.dir,this.icon,this.iconOffset),arrowHtml:this.hasArrow?f.output():""};c.output(w,z);if(this.onRender){this.onRender()}return e},setState:function(g){if(this._.state==g){return !1}this._.state=g;var e=CKEDITOR.document.getById(this._.id);return e?(e.setState(g,"cke_button"),g==CKEDITOR.TRISTATE_DISABLED?e.setAttribute("aria-disabled",!0):e.removeAttribute("aria-disabled"),this.hasArrow?(g=g==CKEDITOR.TRISTATE_ON?this._.editor.lang.button.selectedLabel.replace(/%1/g,this.label):this.label,CKEDITOR.document.getById(this._.id+"_label").setText(g)):g==CKEDITOR.TRISTATE_ON?e.setAttribute("aria-pressed",!0):e.removeAttribute("aria-pressed"),!0):!1},getState:function(){return this._.state},toFeature:function(g){if(this._.feature){return this._.feature}var e=this;!this.allowedContent&&!this.requiredContent&&this.command&&(e=g.getCommand(this.command)||e);return this._.feature=e}};CKEDITOR.ui.prototype.addButton=function(g,e){this.add(g,CKEDITOR.UI_BUTTON,e)}}(),CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function b(d){var c=this._;c.state!=CKEDITOR.TRISTATE_DISABLED&&(this.createPanel(d),c.on?c.panel.hide():c.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=b;this._={panelDefinition:a}},statics:{handler:{create:function(c){return new CKEDITOR.ui.panelButton(c)}}},proto:{createPanel:function(h){var e=this._;if(!e.panel){var n=this._.panelDefinition,m=this._.panelDefinition.block,i=n.parent||CKEDITOR.document.getBody(),g=this._.panel=new CKEDITOR.ui.floatPanel(h,i,n),n=g.addBlock(e.id,m),j=this;g.onShow=function(){j.className&&this.element.addClass(j.className+"_panel");j.setState(CKEDITOR.TRISTATE_ON);e.on=1;j.editorFocus&&h.focus();if(j.onOpen){j.onOpen()}};g.onHide=function(a){j.className&&this.element.getFirst().removeClass(j.className+"_panel");j.setState(j.modes&&j.modes[h.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);e.on=0;if(!a&&j.onClose){j.onClose()}};g.onEscape=function(){g.hide(1);j.document.getById(e.id).focus()};if(this.onBlock){this.onBlock(g,n)}n.onHide=function(){e.on=0;j.setState(CKEDITOR.TRISTATE_OFF)}}}}})},beforeInit:function(b){b.ui.addHandler(CKEDITOR.UI_PANELBUTTON,CKEDITOR.ui.panelButton.handler)}}),CKEDITOR.UI_PANELBUTTON="panelbutton",function(){CKEDITOR.plugins.add("panel",{beforeInit:function(b){b.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}});CKEDITOR.UI_PANEL="panel";CKEDITOR.ui.panel=function(g,e){e&&CKEDITOR.tools.extend(this,e);CKEDITOR.tools.extend(this,{className:"",css:[]});this.id=CKEDITOR.tools.getNextId();this.document=g;this.isFramed=this.forceIFrame||this.css.length;this._={blocks:{}}};CKEDITOR.ui.panel.handler={create:function(b){return new CKEDITOR.ui.panel(b)}};var d=CKEDITOR.addTemplate("panel",'<div lang="{langCode}" id="{id}" dir={dir} class="cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style="z-index:{z-index}" role="presentation">{frame}</div>'),f=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="presentation" frameborder="0" src="{src}"></iframe>'),c=CKEDITOR.addTemplate("panel-frame-inner",'<!DOCTYPE html><html class="cke_panel_container {env}" dir="{dir}" lang="{langCode}"><head>{css}</head><body class="cke_{dir}" style="margin:0;padding:0" onload="{onload}"></body></html>');CKEDITOR.ui.panel.prototype={render:function(g,e){this.getHolderElement=function(){var h=this._.holder;if(!h){if(this.isFramed){var h=this.document.getById(this.id+"_frame"),i=h.getParent(),h=h.getFrameDocument();CKEDITOR.env.iOS&&i.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});i=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0;if(this.onLoad){this.onLoad()}},this));h.write(c.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+i+");"},b)));h.getWindow().$.CKEDITOR=CKEDITOR;h.on("keydown",function(k){var j=k.data.getKeystroke(),l=this.document.getById(this.id).getAttribute("dir");this._.onKeyDown&&!1===this._.onKeyDown(j)?k.data.preventDefault():(27==j||j==("rtl"==l?39:37))&&this.onEscape&&!1===this.onEscape(j)&&k.data.preventDefault()},this);h=h.getBody();h.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(i)}else{h=this.document.getById(this.id)}this._.holder=h}return h};var b={editorId:g.id,id:this.id,langCode:g.langCode,dir:g.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":g.config.baseFloatZIndex+1};if(this.isFramed){var a=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";b.frame=f.output({id:this.id+"_frame",src:a})}a=d.output(b);e&&e.push(a);return a},addBlock:function(g,e){e=this._.blocks[g]=e instanceof CKEDITOR.ui.panel.block?e:new CKEDITOR.ui.panel.block(this.getHolderElement(),e);this._.currentBlock||this.showBlock(g);return e},getBlock:function(b){return this._.blocks[b]},showBlock:function(h){h=this._.blocks[h];var g=this._.currentBlock,i=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");g&&g.hide();this._.currentBlock=h;CKEDITOR.fire("ariaWidget",i);h._.focusIndex=-1;this._.onKeyDown=h.onKeyDown&&CKEDITOR.tools.bind(h.onKeyDown,h);h.show();return h},destroy:function(){this.element&&this.element.remove()}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(g,e){this.element=g.append(g.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));e&&CKEDITOR.tools.extend(this,e);this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]});this.keys={};this._.focusIndex=-1;this.element.disableContextMenu()},_:{markItem:function(b){-1!=b&&(b=this.element.getElementsByTag("a").getItem(this._.focusIndex=b),CKEDITOR.env.webkit&&b.getDocument().getWindow().focus(),b.focus(),this.onMark&&this.onMark(b))}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){this.onHide&&!0===this.onHide.call(this)||this.element.setStyle("display","none")},onKeyDown:function(i,g){var k=this.keys[i];switch(k){case"next":for(var h=this._.focusIndex,k=this.element.getElementsByTag("a"),j;j=k.getItem(++h);){if(j.getAttribute("_cke_focus")&&j.$.offsetWidth){this._.focusIndex=h;j.focus();break}}return j||g?!1:(this._.focusIndex=-1,this.onKeyDown(i,1));case"prev":h=this._.focusIndex;for(k=this.element.getElementsByTag("a");0<h&&(j=k.getItem(--h));){if(j.getAttribute("_cke_focus")&&j.$.offsetWidth){this._.focusIndex=h;j.focus();break}j=null}return j||g?!1:(this._.focusIndex=k.count(),this.onKeyDown(i,1));case"click":case"mouseup":return h=this._.focusIndex,(j=0<=h&&this.element.getElementsByTag("a").getItem(h))&&(j.$[k]?j.$[k]():j.$["on"+k]()),!1}return !0}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function b(g,m,j,h,e){e=CKEDITOR.tools.genKey(m.getUniqueId(),j.getUniqueId(),g.lang.dir,g.uiColor||"",h.css||"",e||"");var i=c[e];i||(i=c[e]=new CKEDITOR.ui.panel(m,h),i.element=j.append(CKEDITOR.dom.element.createFromHtml(i.render(g),m)),i.element.setStyles({display:"none",position:"absolute"}));return i}var c={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(r,q,p,o){function i(){k.hide()}p.forceIFrame=1;p.toolbarRelated&&r.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(q=CKEDITOR.document.getById("cke_"+r.name));var n=q.getDocument();o=b(r,n,q,p,o||0);var j=o.element,a=j.getFirst(),k=this;j.disableContextMenu();this.element=j;this._={editor:r,panel:o,parentElement:q,definition:p,document:n,iframe:a,children:[],dir:r.lang.dir};r.on("mode",i);r.on("resize",i);if(!CKEDITOR.env.iOS){n.getWindow().on("resize",i)}},proto:{addBlock:function(d,e){return this._.panel.addBlock(d,e)},addListBlock:function(d,e){return this._.panel.addListBlock(d,e)},getBlock:function(d){return this._.panel.getBlock(d)},showBlock:function(B,A,z,y,r,x){var u=this._.panel,o=u.showBlock(B);this.allowBlur(!1);B=this._.editor.editable();this._.returnFocus=B.hasFocus?B:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);this._.hideTimeout=0;var w=this.element;B=this._.iframe;B=CKEDITOR.env.ie&&!CKEDITOR.env.edge?B:new CKEDITOR.dom.window(B.$.contentWindow);var j=w.getDocument(),E=this._.parentElement.getPositionedAncestor(),C=A.getDocumentPosition(j),j=E?E.getDocumentPosition(j):{x:0,y:0},D="rtl"==this._.dir,i=C.x+(y||0)-j.x,k=C.y+(r||0)-j.y;!D||1!=z&&4!=z?D||2!=z&&3!=z||(i+=A.$.offsetWidth-1):i+=A.$.offsetWidth;if(3==z||4==z){k+=A.$.offsetHeight-1}this._.panel._.offsetParentId=A.getId();w.setStyles({top:k+"px",left:0,display:""});w.setOpacity(0);w.getFirst().removeStyle("width");this._.editor.focusManager.add(B);this._.blurSet||(CKEDITOR.event.useCapture=!0,B.on("blur",function(e){function d(){delete this._.returnFocus;this.hide()}this.allowBlur()&&e.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&this.visible&&!this._.activeChild&&(CKEDITOR.env.iOS?this._.hideTimeout||(this._.hideTimeout=CKEDITOR.tools.setTimeout(d,0,this)):d.call(this))},this),B.on("focus",function(){this._.focused=!0;this.hideChild();this.allowBlur(!0)},this),CKEDITOR.env.iOS&&(B.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),B.on("touchend",function(){this._.hideTimeout=0;this.focus()},this)),CKEDITOR.event.useCapture=!1,this._.blurSet=1);u.onEscape=CKEDITOR.tools.bind(function(d){if(this.onEscape&&!1===this.onEscape(d)){return !1}},this);CKEDITOR.tools.setTimeout(function(){var d=CKEDITOR.tools.bind(function(){w.removeStyle("width");if(o.autoSize){var h=o.element.getDocument(),h=(CKEDITOR.env.webkit?o.element:h.getBody()).$.scrollWidth;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<h&&(h+=(w.$.offsetWidth||0)-(w.$.clientWidth||0)+3);w.setStyle("width",h+10+"px");h=o.element.$.scrollHeight;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<h&&(h+=(w.$.offsetHeight||0)-(w.$.clientHeight||0)+3);w.setStyle("height",h+"px");u._.currentBlock.element.setStyle("display","none").removeStyle("display")}else{w.removeStyle("height")}D&&(i-=w.$.offsetWidth);w.setStyle("left",i+"px");var f=u.element.getWindow(),h=w.$.getBoundingClientRect(),f=f.getViewPaneSize(),q=h.width||h.right-h.left,p=h.height||h.bottom-h.top,n=D?h.right:f.width-h.left,m=D?f.width-h.right:h.left;D?n<q&&(i=m>q?i+q:f.width>q?i-h.left:i-h.right+f.width):n<q&&(i=m>q?i-q:f.width>q?i-h.right+f.width:i-h.left);q=h.top;f.height-h.top<p&&(k=q>p?k-p:f.height>p?k-h.bottom+f.height:k-h.top);CKEDITOR.env.ie&&(f=h=new CKEDITOR.dom.element(w.$.offsetParent),"html"==f.getName()&&(f=f.getDocument().getBody()),"rtl"==f.getComputedStyle("direction")&&(i=CKEDITOR.env.ie8Compat?i-2*w.getDocument().getDocumentElement().$.scrollLeft:i-(h.$.scrollWidth-h.$.clientWidth)));var h=w.getFirst(),g;(g=h.getCustomData("activePanel"))&&g.onHide&&g.onHide.call(this,1);h.setCustomData("activePanel",this);w.setStyles({top:k+"px",left:i+"px"});w.setOpacity(1);x&&x()},this);u.isLoaded?d():u.onLoad=d;CKEDITOR.tools.setTimeout(function(){var e=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus();o.element.focus();CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=e);this.allowBlur(!0);this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this);this.visible=1;this.onShow&&this.onShow.call(this)},focus:function(){if(CKEDITOR.env.webkit){var d=CKEDITOR.document.getActive();d&&!d.equals(this._.iframe)&&d.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var d=this._.iframe.getFrameDocument().getActive();d&&d.is("a")&&(this._.lastFocused=d)},hide:function(d){if(this.visible&&(!this.onHide||!0!==this.onHide.call(this))){this.hideChild();CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur();this.element.setStyle("display","none");this.visible=0;this.element.getFirst().removeCustomData("activePanel");if(d=d&&this._.returnFocus){CKEDITOR.env.webkit&&d.type&&d.getWindow().$.focus(),d.focus()}delete this._.lastFocused;this._.editor.fire("panelHide",this)}},allowBlur:function(d){var e=this._.panel;void 0!==d&&(e.allowBlur=d);return e.allowBlur},showAsChild:function(h,m,k,j,g,i){this._.activeChild==h&&h._.panel._.offsetParentId==k.getId()||(this.hideChild(),h.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=h,this._.focused=!1,h.showBlock(m,k,j,g,i),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){h.element.getChild(0).$.style.cssText+=""},100))},hideChild:function(d){var e=this._.activeChild;e&&(delete e.onHide,delete this._.activeChild,e.hide(),d&&this.focus())}}});CKEDITOR.on("instanceDestroyed",function(){var e=CKEDITOR.tools.isEmpty(CKEDITOR.instances),g;for(g in c){var f=c[g];e?f.destroy():f.element.hide()}e&&(c={})})}(),CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(g){function i(o,d,n,a){var b=new CKEDITOR.style(j["colorButton_"+d+"Style"]),k=CKEDITOR.tools.getNextId()+"_colorBox";g.ui.add(o,CKEDITOR.UI_PANELBUTTON,{label:n,title:n,modes:{wysiwyg:1},editorFocus:0,toolbar:"colors,"+a,allowedContent:b,requiredContent:b,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":h.panelTitle}},onBlock:function(r,q){q.autoSize=!0;q.element.addClass("cke_colorblock");q.element.setHtml(f(r,d,k));q.element.getDocument().getBody().setStyle("overflow","hidden");CKEDITOR.ui.fire("ready",this);var p=q.keys,m="rtl"==g.lang.dir;p[m?37:39]="next";p[40]="next";p[9]="next";p[m?39:37]="prev";p[38]="prev";p[CKEDITOR.SHIFT+9]="prev";p[32]="click"},refresh:function(){g.activeFilter.check(b)||this.setState(CKEDITOR.TRISTATE_DISABLED)},onOpen:function(){var e=g.getSelection(),e=e&&e.getStartElement(),e=g.elementPath(e),m;if(e){e=e.block||e.blockLimit||g.document.getBody();do{m=e&&e.getComputedStyle("back"==d?"background-color":"color")||"transparent"}while("back"==d&&"transparent"==m&&e&&(e=e.getParent()));m&&"transparent"!=m||(m="#ffffff");this._.panel._.iframe.getFrameDocument().getById(k).setStyle("background-color",m);return m}}})}function f(w,r,u){var k=[],o=j.colorButton_colors.split(","),c=g.plugins.colordialog&&!1!==j.colorButton_enableMore,z=o.length+(c?2:1),x=CKEDITOR.tools.addFunction(function(p,q){function n(e){this.removeListener("ok",n);this.removeListener("cancel",n);"ok"==e.name&&b(this.getContentElement("picker","selectedColor").getValue(),q)}var b=arguments.callee;if("?"==p){g.openDialog("colordialog",function(){this.on("ok",n);this.on("cancel",n)})}else{g.focus();w.hide();g.fire("saveSnapshot");g.removeStyle(new CKEDITOR.style(j["colorButton_"+q+"Style"],{color:"inherit"}));if(p){var m=j["colorButton_"+q+"Style"];m.childRule="back"==q?function(e){return l(e)}:function(e){return !(e.is("a")||e.getElementsByTag("a").count())||l(e)};g.applyStyle(new CKEDITOR.style(m,{color:p}))}g.fire("saveSnapshot")}});k.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',h.auto,'" onclick="CKEDITOR.tools.callFunction(',x,",null,'",r,"');return false;\" href=\"javascript:void('",h.auto,'\')" role="option" aria-posinset="1" aria-setsize="',z,'"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" id="',u,'"></span></td><td colspan=7 align=center>',h.auto,'</td></tr></table></a><table role="presentation" cellspacing=0 cellpadding=0 width="100%">');for(u=0;u<o.length;u++){0===u%8&&k.push("</tr><tr>");var y=o[u].split("/"),a=y[0],d=y[1]||a;y[1]||(a="#"+a.replace(/^(.)(.)(.)$/,"$1$1$2$2$3$3"));y=g.lang.colorbutton.colors[d]||d;k.push('<td><a class="cke_colorbox" _cke_focus=1 hidefocus=true title="',y,'" onclick="CKEDITOR.tools.callFunction(',x,",'",a,"','",r,"'); return false;\" href=\"javascript:void('",y,'\')" role="option" aria-posinset="',u+2,'" aria-setsize="',z,'"><span class="cke_colorbox" style="background-color:#',d,'"></span></a></td>')}c&&k.push('</tr><tr><td colspan=8 align=center><a class="cke_colormore" _cke_focus=1 hidefocus=true title="',h.more,'" onclick="CKEDITOR.tools.callFunction(',x,",'?','",r,"');return false;\" href=\"javascript:void('",h.more,"')\"",' role="option" aria-posinset="',z,'" aria-setsize="',z,'">',h.more,"</a></td>");k.push("</tr></table>");return k.join("")}function l(b){return"false"==b.getAttribute("contentEditable")||b.getAttribute("data-nostyle")}var j=g.config,h=g.lang.colorbutton;CKEDITOR.env.hc||(i("TextColor","fore",h.textColorTitle,10),i("BGColor","back",h.bgColorTitle,20))}}),CKEDITOR.config.colorButton_colors="000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF",CKEDITOR.config.colorButton_foreStyle={element:"span",styles:{color:"#(color)"},overrides:[{element:"font",attributes:{color:null}}]},CKEDITOR.config.colorButton_backStyle={element:"span",styles:{"background-color":"#(color)"}},CKEDITOR.plugins.colordialog={requires:"dialog",init:function(b){var c=new CKEDITOR.dialogCommand("colordialog");c.editorFocus=!1;b.addCommand("colordialog",c);CKEDITOR.dialog.add("colordialog",this.path+"dialogs/colordialog.js");b.getColorFromDialog=function(a,h){var g=function(d){this.removeListener("ok",g);this.removeListener("cancel",g);d="ok"==d.name?this.getValueOf("picker","selectedColor"):null;a.call(h,d)},f=function(d){d.on("ok",g);d.on("cancel",g)};b.execCommand("colordialog");if(b._.storedDialogs&&b._.storedDialogs.colordialog){f(b._.storedDialogs.colordialog)}else{CKEDITOR.on("dialogDefinition",function(e){if("colordialog"==e.data.name){var d=e.data.definition;e.removeListener();d.onLoad=CKEDITOR.tools.override(d.onLoad,function(i){return function(){f(this);d.onLoad=i;"function"==typeof i&&i.call(this)}})}})}}}},CKEDITOR.plugins.add("colordialog",CKEDITOR.plugins.colordialog),function(){CKEDITOR.plugins.add("templates",{requires:"dialog",init:function(d){CKEDITOR.dialog.add("templates",CKEDITOR.getUrl(this.path+"dialogs/templates.js"));d.addCommand("templates",new CKEDITOR.dialogCommand("templates"));d.ui.addButton&&d.ui.addButton("Templates",{label:d.lang.templates.button,command:"templates",toolbar:"doctools,10"})}});var b={},c={};CKEDITOR.addTemplates=function(a,d){b[a]=d};CKEDITOR.getTemplates=function(a){return b[a]};CKEDITOR.loadTemplates=function(f,i){for(var h=[],g=0,e=f.length;g<e;g++){c[f[g]]||(h.push(f[g]),c[f[g]]=1)}h.length?CKEDITOR.scriptLoader.load(h,i):setTimeout(i,0)}}(),CKEDITOR.config.templates_files=[CKEDITOR.getUrl("plugins/templates/templates/default.js")],CKEDITOR.config.templates_replaceContent=!0,CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(g){for(var h=g.config.menu_groups.split(","),f=g._.menuGroups={},j=g._.menuItems={},i=0;i<h.length;i++){f[h[i]]=i+1}g.addMenuGroup=function(b,d){f[b]=d||100};g.addMenuItem=function(b,c){f[c.group]&&(j[b]=new CKEDITOR.menuItem(this,b,c))};g.addMenuItems=function(d){for(var c in d){this.addMenuItem(c,d[c])}};g.getMenuItem=function(b){return j[b]};g.removeMenuItem=function(b){delete j[b]}}}),function(){function f(b){b.sort(function(e,c){return e.group<c.group?-1:e.group>c.group?1:e.order<c.order?-1:e.order>c.order?1:0})}var g='<span class="cke_menuitem"><a id="{id}" class="cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href="{href}" title="{title}" tabindex="-1"_cke_focus=1 hidefocus="true" role="{role}" aria-haspopup="{hasPopup}" aria-disabled="{disabled}" {ariaChecked}';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(g+=' onkeypress="return false;"');CKEDITOR.env.gecko&&(g+=' onblur="this.style.cssText = this.style.cssText;"');var g=g+(' onmouseover="CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout="CKEDITOR.tools.callFunction({moveOutFn},{index});" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},{index}); return false;">'),d=CKEDITOR.addTemplate("menuItem",g+'<span class="cke_menubutton_inner"><span class="cke_menubutton_icon"><span class="cke_button_icon cke_button__{iconName}_icon" style="{iconStyle}"></span></span><span class="cke_menubutton_label">{label}</span>{arrowHtml}</span></a></span>'),h=CKEDITOR.addTemplate("menuArrow",'<span class="cke_menuarrow"><span>{label}</span></span>');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(i,e){e=this._.definition=e||{};this.id=CKEDITOR.tools.getNextId();this.editor=i;this.items=[];this._.listeners=[];this._.level=e.level||1;var k=CKEDITOR.tools.extend({},e.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),j=k.block.attributes=k.attributes||{};!j.role&&(j.role="menu");this._.panelDefinition=k},_:{onShow:function(){var k=this.editor.getSelection(),j=k&&k.getStartElement(),r=this.editor.elementPath(),n=this._.listeners;this.removeAll();for(var q=0;q<n.length;q++){var i=n[q](j,k,r);if(i){for(var l in i){var o=this.editor.getMenuItem(l);!o||o.command&&!this.editor.getCommand(o.command).state||(o.state=i[l],this.add(o))}}}},onClick:function(b){this.hide();if(b.onClick){b.onClick()}else{b.command&&this.editor.execCommand(b.command)}},onEscape:function(e){var c=this.parent;c?c._.panel.hideChild(1):27==e&&this.hide(1);return !1},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(k){var j=this._.subMenu,o=this.items[k];if(o=o.getItems&&o.getItems()){j?j.removeAll():(j=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},!0)),j.parent=this,j._.onClick=CKEDITOR.tools.bind(this._.onClick,this));for(var l in o){var n=this.editor.getMenuItem(l);n&&(n.state=o[l],j.add(n))}var i=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+(""+k));setTimeout(function(){j.show(i,2)},0)}else{this._.panel.hideChild(1)}}},proto:{add:function(b){b.order||(b.order=this.items.length);this.items.push(b)},removeAll:function(){this.items=[]},show:function(x,w,u,r){if(this.parent||(this._.onShow(),this.items.length)){w=w||("rtl"==this.editor.lang.dir?2:1);var l=this.items,k=this.editor,o=this._.panel,i=this._.element;if(!o){o=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level);o.onEscape=CKEDITOR.tools.bind(function(b){if(!1===this._.onEscape(b)){return !1}},this);o.onShow=function(){o._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")};o.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);i=o.addBlock(this.id,this._.panelDefinition.block);i.autoSize=!0;var A=i.keys;A[40]="next";A[9]="next";A[38]="prev";A[CKEDITOR.SHIFT+9]="prev";A["rtl"==k.lang.dir?37:39]=CKEDITOR.env.ie?"mouseup":"click";A[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(A[13]="mouseup");i=this._.element=i.element;A=i.getDocument();A.getBody().setStyle("overflow","hidden");A.getElementsByTag("html").getItem(0).setStyle("overflow","hidden");this._.itemOverFn=CKEDITOR.tools.addFunction(function(b){clearTimeout(this._.showSubTimeout);this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,k.config.menu_subMenuDelay||400,this,[b])},this);this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},this);this._.itemClickFn=CKEDITOR.tools.addFunction(function(e){var c=this.items[e];if(c.state==CKEDITOR.TRISTATE_DISABLED){this.hide(1)}else{if(c.getItems){this._.showSubMenu(e)}else{this._.onClick(c)}}},this)}f(l);for(var A=k.elementPath(),A=['<div class="cke_menu'+(A&&A.direction()!=k.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],y=l.length,z=y&&l[0].group,a=0;a<y;a++){var j=l[a];z!=j.group&&(A.push('<div class="cke_menuseparator" role="separator"></div>'),z=j.group);j.render(this,a,A)}A.push("</div>");i.setHtml(A.join(""));CKEDITOR.ui.fire("ready",this);this.parent?this.parent._.panel.showAsChild(o,this.id,x,w,u,r):o.showBlock(this.id,x,w,u,r);k.fire("menuShow",[o])}},addListener:function(b){this._.listeners.push(b)},hide:function(b){this._.onHide&&this._.onHide();this._.panel&&this._.panel.hide(b)}}});CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(i,e,j){CKEDITOR.tools.extend(this,j,{order:0,className:"cke_menubutton__"+e});this.group=i._.menuGroups[this.group];this.editor=i;this.name=e},proto:{render:function(q,o,i){var n=q.id+(""+o),j="undefined"==typeof this.state?CKEDITOR.TRISTATE_OFF:this.state,c="",k=j==CKEDITOR.TRISTATE_ON?"on":j==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";this.role in {menuitemcheckbox:1,menuitemradio:1}&&(c=' aria-checked="'+(j==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var b=this.getItems,t="&#"+("rtl"==this.editor.lang.dir?"9668":"9658")+";",r=this.name;this.icon&&!/\./.test(this.icon)&&(r=this.icon);q={id:n,name:this.name,iconName:r,label:this.label,cls:this.className||"",state:k,hasPopup:b?"true":"false",disabled:j==CKEDITOR.TRISTATE_DISABLED,title:this.label,href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:q._.itemOverFn,moveOutFn:q._.itemOutFn,clickFn:q._.itemClickFn,index:o,iconStyle:CKEDITOR.skin.getIconStyle(r,"rtl"==this.editor.lang.dir,r==this.icon?null:this.icon,this.iconOffset),arrowHtml:b?h.output({label:t}):"",role:this.role?this.role:"menuitem",ariaChecked:c};d.output(q,i)}}})}(),CKEDITOR.config.menu_groups="clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div",CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(b){this.base.call(this,b,{panel:{className:"cke_menu_panel",attributes:{"aria-label":b.lang.contextmenu.options}}})},proto:{addTarget:function(f,g){f.on("contextmenu",function(i){i=i.data;var n=CKEDITOR.env.webkit?d:CKEDITOR.env.mac?i.$.metaKey:i.$.ctrlKey;if(!g||!n){i.preventDefault();if(CKEDITOR.env.mac&&CKEDITOR.env.webkit){var n=this.editor,e=(new CKEDITOR.dom.elementPath(i.getTarget(),n.editable())).contains(function(c){return c.hasAttribute("contenteditable")},!0);e&&"false"==e.getAttribute("contenteditable")&&n.getSelection().fake(e)}var e=i.getTarget().getDocument(),k=i.getTarget().getDocument().getDocumentElement(),n=!e.equals(CKEDITOR.document),e=e.getWindow().getScrollPosition(),j=n?i.$.clientX:i.$.pageX||e.x+i.$.clientX,b=n?i.$.clientY:i.$.pageY||e.y+i.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(k,null,j,b)},CKEDITOR.env.ie?200:0,this)}},this);if(CKEDITOR.env.webkit){var d,h=function(){d=0};f.on("keydown",function(b){d=CKEDITOR.env.mac?b.data.$.metaKey:b.data.$.ctrlKey});f.on("keyup",h);f.on("contextmenu",h)}},open:function(f,g,d,h){this.editor.focus();f=f||CKEDITOR.document.getDocumentElement();this.editor.selectionChange(1);this.show(f,g,d,h)}}})},beforeInit:function(b){var c=b.contextMenu=new CKEDITOR.plugins.contextMenu(b);b.on("contentDom",function(){c.addTarget(b.editable(),!1!==b.config.browserContextMenuOnCtrl)});b.addCommand("contextMenu",{exec:function(){b.contextMenu.open(b.document.getBody())}});b.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu");b.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),function(){CKEDITOR.plugins.add("div",{requires:"dialog",init:function(d){if(!d.blockless){var f=d.lang.div,c="div(*)";CKEDITOR.dialog.isTabEnabled(d,"editdiv","advanced")&&(c+=";div[dir,id,lang,title]{*}");d.addCommand("creatediv",new CKEDITOR.dialogCommand("creatediv",{allowedContent:c,requiredContent:"div",contextSensitive:!0,refresh:function(g,e){this.setState("div" in (g.config.div_wrapTable?e.root:e.blockLimit).getDtd()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}}));d.addCommand("editdiv",new CKEDITOR.dialogCommand("editdiv",{requiredContent:"div"}));d.addCommand("removediv",{requiredContent:"div",exec:function(n){function j(a){(a=CKEDITOR.plugins.div.getSurroundDiv(n,a))&&!a.data("cke-div-added")&&(i.push(a),a.data("cke-div-added"))}for(var r=n.getSelection(),k=r&&r.getRanges(),q,o=r.createBookmarks(),i=[],p=0;p<k.length;p++){q=k[p],q.collapsed?j(r.getStartElement()):(q=new CKEDITOR.dom.walker(q),q.evaluator=j,q.lastForward())}for(p=0;p<i.length;p++){i[p].remove(!0)}r.selectBookmarks(o)}});d.ui.addButton&&d.ui.addButton("CreateDiv",{label:f.toolbar,command:"creatediv",toolbar:"blocks,50"});d.addMenuItems&&(d.addMenuItems({editdiv:{label:f.edit,command:"editdiv",group:"div",order:1},removediv:{label:f.remove,command:"removediv",group:"div",order:5}}),d.contextMenu&&d.contextMenu.addListener(function(a){return !a||a.isReadOnly()?null:CKEDITOR.plugins.div.getSurroundDiv(d)?{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(d,f){var c=d.elementPath(f);return d.elementPath(c.blockLimit).contains(function(b){return b.is("div")&&!b.isReadOnly()},1)}}}(),CKEDITOR.plugins.add("resize",{init:function(z){function u(a){var f=x,d=w,c=f+(a.data.$.screenX-o)*("rtl"==j?-1:1);a=d+(a.data.$.screenY-n);i&&(f=Math.max(t.resize_minWidth,Math.min(c,t.resize_maxWidth)));B&&(d=Math.max(t.resize_minHeight,Math.min(a,t.resize_maxHeight)));z.resize(i?f:null,d)}function y(){CKEDITOR.document.removeListener("mousemove",u);CKEDITOR.document.removeListener("mouseup",y);z.document&&(z.document.removeListener("mousemove",u),z.document.removeListener("mouseup",y))}var x,w,o,n,t=z.config,q=z.ui.spaceId("resizer"),j=z.element?z.element.getDirection(1):"ltr";!t.resize_dir&&(t.resize_dir="vertical");void 0===t.resize_maxWidth&&(t.resize_maxWidth=3000);void 0===t.resize_maxHeight&&(t.resize_maxHeight=3000);void 0===t.resize_minWidth&&(t.resize_minWidth=750);void 0===t.resize_minHeight&&(t.resize_minHeight=250);if(!1!==t.resize_enabled){var r=null,i=("both"==t.resize_dir||"horizontal"==t.resize_dir)&&t.resize_minWidth!=t.resize_maxWidth,B=("both"==t.resize_dir||"vertical"==t.resize_dir)&&t.resize_minHeight!=t.resize_maxHeight,A=CKEDITOR.tools.addFunction(function(a){r||(r=z.getResizable());x=r.$.offsetWidth||0;w=r.$.offsetHeight||0;o=a.screenX;n=a.screenY;t.resize_minWidth>x&&(t.resize_minWidth=x);t.resize_minHeight>w&&(t.resize_minHeight=w);CKEDITOR.document.on("mousemove",u);CKEDITOR.document.on("mouseup",y);z.document&&(z.document.on("mousemove",u),z.document.on("mouseup",y));a.preventDefault&&a.preventDefault()});z.on("destroy",function(){CKEDITOR.tools.removeFunction(A)});z.on("uiSpace",function(a){if("bottom"==a.data.space){var f="";i&&!B&&(f=" cke_resizer_horizontal");!i&&B&&(f=" cke_resizer_vertical");var e='<span id="'+q+'" class="cke_resizer'+f+" cke_resizer_"+j+'" title="'+CKEDITOR.tools.htmlEncode(z.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+A+', event)">'+("ltr"==j?"\u25e2":"\u25e3")+"</span>";"ltr"==j&&"ltr"==f?a.data.html+=e:a.data.html=e+a.data.html}},z,null,100);z.on("maximize",function(a){z.ui.space("resizer")[a.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),function(){function f(j){function i(){for(var r=o(),p=CKEDITOR.tools.clone(j.config.toolbarGroups)||g(j),b=0;b<p.length;b++){var a=p[b];if("/"!=a){"string"==typeof a&&(a=p[b]={name:a});var s,t=a.groups;if(t){for(var c=0;c<t.length;c++){s=t[c],(s=r[s])&&n(a,s)}}(s=r[a.name])&&n(a,s)}}return p}function o(){var a={},m,p,c;for(m in j.ui.items){p=j.ui.items[m],c=p.toolbar||"others",c=c.split(","),p=c[0],c=parseInt(c[1]||-1,10),a[p]||(a[p]=[]),a[p].push({name:m,order:c})}for(p in a){a[p]=a[p].sort(function(r,q){return r.order==q.order?0:0>q.order?-1:0>r.order?1:r.order<q.order?-1:1})}return a}function n(a,p){if(p.length){a.items?a.items.push(j.ui.create("-")):a.items=[];for(var m;m=p.shift();){(m="string"==typeof m?m:m.name,e&&-1!=CKEDITOR.tools.indexOf(e,m))||(m=j.ui.create(m))&&j.addFeature(m)&&a.items.push(m)}}}function k(p){var m=[],s,r,q;for(s=0;s<p.length;++s){r=p[s],q={},"/"==r?m.push(r):CKEDITOR.tools.isArray(r)?(n(q,CKEDITOR.tools.clone(r)),m.push(q)):r.items&&(n(q,CKEDITOR.tools.clone(r.items)),q.name=r.name,m.push(q))}return m}var e=j.config.removeButtons,e=e&&e.split(","),l=j.config.toolbar;"string"==typeof l&&(l=j.config["toolbar_"+l]);return j.toolbar=l?k(l):i()}function g(b){return b._.toolbarGroups||(b._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var d=function(){this.toolbars=[];this.focusCommandExecuted=!1};d.prototype.focus=function(){for(var i=0,e;e=this.toolbars[i++];){for(var k=0,j;j=e.items[k++];){if(j.focus){j.focus();return}}}};var h={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(b){b.toolbox&&(b.toolbox.focusCommandExecuted=!0,CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){b.toolbox.focus()},100):b.toolbox.focus())}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(c){var b,a=function(i,e){var m,k="rtl"==c.lang.dir,l=c.config.toolbarGroupCycling,j=k?37:39,k=k?39:37,l=void 0===l||l;switch(e){case 9:case CKEDITOR.SHIFT+9:for(;!m||!m.items.length;){if(m=9==e?(m?m.next:i.toolbar.next)||c.toolbox.toolbars[0]:(m?m.previous:i.toolbar.previous)||c.toolbox.toolbars[c.toolbox.toolbars.length-1],m.items.length){for(i=m.items[b?m.items.length-1:0];i&&!i.focus;){(i=b?i.previous:i.next)||(m=0)}}}i&&i.focus();return !1;case j:m=i;do{m=m.next,!m&&l&&(m=i.toolbar.items[0])}while(m&&!m.focus);m?m.focus():a(i,9);return !1;case 40:return i.button&&i.button.hasArrow?(c.once("panelShow",function(n){n.data._.panel._.currentBlock.onKeyDown(40)}),i.execute()):a(i,40==e?j:k),!1;case k:case 38:m=i;do{m=m.previous,!m&&l&&(m=i.toolbar.items[i.toolbar.items.length-1])}while(m&&!m.focus);m?m.focus():(b=1,a(i,CKEDITOR.SHIFT+9),b=0);return !1;case 27:return c.focus(),!1;case 13:case 32:return i.execute(),!1}return !0};c.on("uiSpace",function(O){if(O.data.space==c.config.toolbarLocation){O.removeListener();c.toolbox=new d;var N=CKEDITOR.tools.getNextId(),L=['<span id="',N,'" class="cke_voice_label">',c.lang.toolbar.toolbars,"</span>",'<span id="'+c.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',N,'" onmousedown="return false;">'],N=!1!==c.config.toolbarStartupExpanded,M,J;c.config.toolbarCanCollapse&&c.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&L.push('<span class="cke_toolbox_main"'+(N?">":' style="display:none">'));for(var E=c.toolbox.toolbars,o=f(c),D=0;D<o.length;D++){var H,K=0,C,m=o[D],i;if(m){if(M&&(L.push("</span>"),J=M=0),"/"===m){L.push('<span class="cke_toolbar_break"></span>')}else{i=m.items||m;for(var l=0;l<i.length;l++){var I=i[l],j;if(I){if(I.type==CKEDITOR.UI_SEPARATOR){J=M&&I}else{j=!1!==I.canGroup;if(!K){H=CKEDITOR.tools.getNextId();K={id:H,items:[]};C=m.name&&(c.lang.toolbar.toolbarGroups[m.name]||m.name);L.push('<span id="',H,'" class="cke_toolbar"',C?' aria-labelledby="'+H+'_label"':"",' role="toolbar">');C&&L.push('<span id="',H,'_label" class="cke_voice_label">',C,"</span>");L.push('<span class="cke_toolbar_start"></span>');var F=E.push(K)-1;0<F&&(K.previous=E[F-1],K.previous.next=K)}j?M||(L.push('<span class="cke_toolgroup" role="presentation">'),M=1):M&&(L.push("</span>"),M=0);H=function(e){e=e.render(c,L);F=K.items.push(e)-1;0<F&&(e.previous=K.items[F-1],e.previous.next=e);e.toolbar=K;e.onkey=a;e.onfocus=function(){c.toolbox.focusCommandExecuted||c.focus()}};J&&(H(J),J=0);H(I)}}}M&&(L.push("</span>"),J=M=0);K&&L.push('<span class="cke_toolbar_end"></span></span>')}}}c.config.toolbarCanCollapse&&L.push("</span>");if(c.config.toolbarCanCollapse&&c.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var G=CKEDITOR.tools.addFunction(function(){c.execCommand("toolbarCollapse")});c.on("destroy",function(){CKEDITOR.tools.removeFunction(G)});c.addCommand("toolbarCollapse",{readOnly:1,exec:function(n){var k=n.ui.space("toolbar_collapser"),u=k.getPrevious(),t=n.ui.space("contents"),s=u.getParent(),r=parseInt(t.$.style.height,10),q=s.$.offsetHeight,p=k.hasClass("cke_toolbox_collapser_min");p?(u.show(),k.removeClass("cke_toolbox_collapser_min"),k.setAttribute("title",n.lang.toolbar.toolbarCollapse)):(u.hide(),k.addClass("cke_toolbox_collapser_min"),k.setAttribute("title",n.lang.toolbar.toolbarExpand));k.getFirst().setText(p?"\u25b2":"\u25c0");t.setStyle("height",r-(s.$.offsetHeight-q)+"px");n.fire("resize",{outerHeight:n.container.$.offsetHeight,contentsHeight:t.$.offsetHeight,outerWidth:n.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}});c.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");L.push('<a title="'+(N?c.lang.toolbar.toolbarCollapse:c.lang.toolbar.toolbarExpand)+'" id="'+c.ui.spaceId("toolbar_collapser")+'" tabIndex="-1" class="cke_toolbox_collapser');N||L.push(" cke_toolbox_collapser_min");L.push('" onclick="CKEDITOR.tools.callFunction('+G+')">','<span class="cke_arrow">▲</span>',"</a>")}L.push("</span>");O.data.html+=L.join("")}});c.on("destroy",function(){if(this.toolbox){var j,i=0,m,l,k;for(j=this.toolbox.toolbars;i<j.length;i++){for(l=j[i].items,m=0;m<l.length;m++){k=l[m],k.clickFn&&CKEDITOR.tools.removeFunction(k.clickFn),k.keyDownFn&&CKEDITOR.tools.removeFunction(k.keyDownFn)}}}});c.on("uiReady",function(){var e=c.ui.space("toolbox");e&&c.focusManager.add(e,1)});c.addCommand("toolbarFocus",h);c.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");c.ui.add("-",CKEDITOR.UI_SEPARATOR,{});c.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(i,e){e.push('<span class="cke_toolbar_separator" role="separator"></span>');return{}}}}})}});CKEDITOR.ui.prototype.addToolbarGroup=function(j,i,n){var l=g(this.editor),k=0===i,e={name:j};if(n){if(n=CKEDITOR.tools.search(l,function(b){return b.name==n})){!n.groups&&(n.groups=[]);if(i&&(i=CKEDITOR.tools.indexOf(n.groups,i),0<=i)){n.groups.splice(i+1,0,j);return}k?n.groups.splice(0,0,j):n.groups.push(j);return}i=null}i&&(i=CKEDITOR.tools.indexOf(l,function(b){return b.name==i}));k?l.splice(0,0,j):"number"==typeof i?l.splice(i+1,0,e):l.push(j)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top",function(){function g(o,n){function l(a){a=b.list[a];if(a.equals(o.editable())||"true"==a.getAttribute("contenteditable")){var m=o.createRange();m.selectNodeContents(a);m.select()}else{o.getSelection().selectElement(a)}o.focus()}function e(){k&&k.setHtml(f);delete b.list}var d=o.ui.spaceId("path"),k,b=o._.elementsPath,u=b.idBase;n.html+='<span id="'+d+'_label" class="cke_voice_label">'+o.lang.elementspath.eleLabel+'</span><span id="'+d+'" class="cke_path" role="group" aria-labelledby="'+d+'_label">'+f+"</span>";o.on("uiReady",function(){var a=o.ui.space("path");a&&o.focusManager.add(a,1)});b.onClick=l;var q=CKEDITOR.tools.addFunction(l),r=CKEDITOR.tools.addFunction(function(a,s){var p=b.idBase,m;s=new CKEDITOR.dom.event(s);m="rtl"==o.lang.dir;switch(s.getKeystroke()){case m?39:37:case 9:return(m=CKEDITOR.document.getById(p+(a+1)))||(m=CKEDITOR.document.getById(p+"0")),m.focus(),!1;case m?37:39:case CKEDITOR.SHIFT+9:return(m=CKEDITOR.document.getById(p+(a-1)))||(m=CKEDITOR.document.getById(p+(b.list.length-1))),m.focus(),!1;case 27:return o.focus(),!1;case 13:case 32:return l(a),!1}return !0});o.on("selectionChange",function(){for(var F=[],E=b.list=[],z=[],w=b.filters,v=!0,H=o.elementPath().elements,t,G=H.length;G--;){var m=H[G],s=0;t=m.data("cke-display-name")?m.data("cke-display-name"):m.data("cke-real-element-type")?m.data("cke-real-element-type"):m.getName();(v=m.hasAttribute("contenteditable")?"true"==m.getAttribute("contenteditable"):v)||m.hasAttribute("contenteditable")||(s=1);for(var p=0;p<w.length;p++){var a=w[p](m,t);if(!1===a){s=1;break}t=a||t}s||(E.unshift(m),z.unshift(t))}E=E.length;for(w=0;w<E;w++){t=z[w],v=o.lang.elementspath.eleTitle.replace(/%1/,t),t=i.output({id:u+w,label:v,text:t,jsTitle:"javascript:void('"+t+"')",index:w,keyDownFn:r,clickFn:q}),F.unshift(t)}k||(k=CKEDITOR.document.getById(d));z=k;z.setHtml(F.join("")+f);o.fire("elementsPathUpdate",{space:z})});o.on("readOnly",e);o.on("contentDomUnload",e);o.addCommand("elementsPathFocus",h);o.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}var h;h={editorFocus:!1,readOnly:1,exec:function(b){(b=CKEDITOR.document.getById(b._.elementsPath.idBase+"0"))&&b.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}};var f='<span class="cke_path_empty"> </span>',j="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(j+=' onkeypress="return false;"');CKEDITOR.env.gecko&&(j+=' onblur="this.style.cssText = this.style.cssText;"');var i=CKEDITOR.addTemplate("pathItem",'<a id="{id}" href="{jsTitle}" tabindex="-1" class="cke_path_item" title="{label}"'+j+' hidefocus="true" onkeydown="return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick="CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role="button" aria-label="{label}">{text}</a>');CKEDITOR.plugins.add("elementspath",{init:function(a){a._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",filters:[]};a.on("uiSpace",function(b){"bottom"==b.data.space&&g(a,b.data)})}})}(),function(){function r(e,d,f){f=e.config.forceEnterMode||f;"wysiwyg"==e.mode&&(d||(d=e.activeEnterMode),e.elementPath().isContextFor("p")||(d=CKEDITOR.ENTER_BR,f=1),e.fire("saveSnapshot"),d==CKEDITOR.ENTER_BR?g(e,d,null,f):m(e,d,null,f),e.fire("saveSnapshot"))}function n(d){d=d.getSelection().getRanges(!0);for(var c=d.length-1;0<c;c--){d[c].deleteContents()}return d[0]}function q(d){var c=d.startContainer.getAscendant(function(b){return b.type==CKEDITOR.NODE_ELEMENT&&"true"==b.getAttribute("contenteditable")},!0);if(d.root.equals(c)){return d}c=new CKEDITOR.dom.range(c);c.moveToRange(d);return c}CKEDITOR.plugins.add("enterkey",{init:function(a){a.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(c){r(c)}});a.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(c){r(c,c.activeShiftEnterMode,1)}});a.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var p=CKEDITOR.dom.walker.whitespaces(),o=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(E,l,h,J){if(h=h||n(E)){h=q(h);var G=h.document,I=h.checkStartOfBlock(),c=h.checkEndOfBlock(),e=E.elementPath(h.startContainer),H=e.block,F=l==CKEDITOR.ENTER_DIV?"div":"p",B;if(I&&c){if(H&&(H.is("li")||H.getParent().is("li"))){H.is("li")||(H=H.getParent());h=H.getParent();B=h.getParent();J=!H.hasPrevious();var D=!H.hasNext(),F=E.getSelection(),d=F.createBookmarks(),I=H.getDirection(1),c=H.getAttribute("class"),C=H.getAttribute("style"),b=B.getDirection(1)!=I;E=E.enterMode!=CKEDITOR.ENTER_BR||b||C||c;if(B.is("li")){J||D?(J&&D&&h.remove(),H[D?"insertAfter":"insertBefore"](B)):H.breakParent(B)}else{if(E){if(e.block.is("li")?(B=G.createElement(l==CKEDITOR.ENTER_P?"p":"div"),b&&B.setAttribute("dir",I),C&&B.setAttribute("style",C),c&&B.setAttribute("class",c),H.moveChildren(B)):B=e.block,J||D){B[J?"insertBefore":"insertAfter"](h)}else{H.breakParent(h),B.insertAfter(h)}}else{if(H.appendBogus(!0),J||D){for(;G=H[J?"getFirst":"getLast"]();){G[J?"insertBefore":"insertAfter"](h)}}else{for(H.breakParent(h);G=H.getLast();){G.insertAfter(h)}}}H.remove()}F.selectBookmarks(d);return}if(H&&H.getParent().is("blockquote")){H.breakParent(H.getParent());H.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||H.getPrevious().remove();H.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||H.getNext().remove();h.moveToElementEditStart(H);h.select();return}}else{if(H&&H.is("pre")&&!c){g(E,l,h,J);return}}if(I=h.splitBlock(F)){l=I.previousBlock;H=I.nextBlock;e=I.wasStartOfBlock;E=I.wasEndOfBlock;H?(d=H.getParent(),d.is("li")&&(H.breakParent(d),H.move(H.getNext(),1))):l&&(d=l.getParent())&&d.is("li")&&(l.breakParent(d),d=l.getNext(),h.moveToElementEditStart(d),l.move(l.getPrevious()));if(e||E){if(l){if(l.is("li")||!j.test(l.getName())&&!l.is("pre")){B=l.clone()}}else{H&&(B=H.clone())}B?J&&!B.is("li")&&B.renameNode(F):d&&d.is("li")?B=d:(B=G.createElement(F),l&&(D=l.getDirection())&&B.setAttribute("dir",D));if(G=I.elementPath){for(J=0,F=G.elements.length;J<F;J++){d=G.elements[J];if(d.equals(G.block)||d.equals(G.blockLimit)){break}CKEDITOR.dtd.$removeEmpty[d.getName()]&&(d=d.clone(),B.moveChildren(d),B.append(d))}}B.appendBogus();B.getParent()||h.insertNode(B);B.is("li")&&B.removeAttribute("value");!CKEDITOR.env.ie||!e||E&&l.getChildCount()||(h.moveToElementEditStart(E?l:B),h.select());h.moveToElementEditStart(e&&!E?H:B)}else{H.is("li")&&(B=h.clone(),B.selectNodeContents(H),B=new CKEDITOR.dom.walker(B),B.evaluator=function(f){return !(o(f)||p(f)||f.type==CKEDITOR.NODE_ELEMENT&&f.getName() in CKEDITOR.dtd.$inline&&!(f.getName() in CKEDITOR.dtd.$empty))},(d=B.next())&&d.type==CKEDITOR.NODE_ELEMENT&&d.is("ul","ol")&&(CKEDITOR.env.needsBrFiller?G.createElement("br"):G.createText("\u00a0")).insertBefore(d)),H&&h.moveToElementEditStart(H)}h.select();h.scrollIntoView()}}},enterBr:function(x,w,v,t){if(v=v||n(x)){var s=v.document,h=v.checkEndOfBlock(),e=new CKEDITOR.dom.elementPath(x.getSelection().getStartElement()),f=e.block,y=f&&e.block.getName();t||"li"!=y?(!t&&h&&j.test(y)?(h=f.getDirection())?(s=s.createElement("div"),s.setAttribute("dir",h),s.insertAfter(f),v.setStart(s,0)):(s.createElement("br").insertAfter(f),CKEDITOR.env.gecko&&s.createText("").insertAfter(f),v.setStartAt(f.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(x="pre"==y&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?s.createText("\r"):s.createElement("br"),v.deleteContents(),v.insertNode(x),CKEDITOR.env.needsBrFiller?(s.createText("\ufeff").insertAfter(x),h&&(f||e.blockLimit).appendBogus(),x.getNext().$.nodeValue="",v.setStartAt(x.getNext(),CKEDITOR.POSITION_AFTER_START)):v.setStartAt(x,CKEDITOR.POSITION_AFTER_END)),v.collapse(!0),v.select(),v.scrollIntoView()):m(x,w,v,t)}}};var i=CKEDITOR.plugins.enterkey,g=i.enterBr,m=i.enterBlock,j=/^h[1-6]$/}(),function(){function b(i,e){var p={},o=[],j={nbsp:"\u00a0",shy:"\u00ad",gt:">",lt:"<",amp:"&",apos:"'",quot:'"'};i=i.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(c,d){var h=e?"&"+d+";":j[d];p[h]=e?j[d]:"&"+d+";";o.push(h);return""});if(!e&&i){i=i.split(",");var g=document.createElement("div"),n;g.innerHTML="&"+i.join(";&")+";";n=g.innerHTML;g=null;for(g=0;g<n.length;g++){var m=n.charAt(g);p[m]="&"+i[g]+";";o.push(m)}}p.regex=o.join(e?"|":"");return p}CKEDITOR.plugins.add("entities",{afterInit:function(o){function r(c){return j[c]}function q(c){return"force"!=p.entities_processNumerical&&g[c]?g[c]:"&#"+c.charCodeAt(0)+";"}var p=o.config;if(o=(o=o.dataProcessor)&&o.htmlFilter){var i=[];!1!==p.basicEntities&&i.push("nbsp,gt,lt,amp");p.entities&&(i.length&&i.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro"),p.entities_latin&&i.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml"),p.entities_greek&&i.push("Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv"),p.entities_additional&&i.push(p.entities_additional));var g=b(i.join(",")),n=g.regex?"["+g.regex+"]":"a^";delete g.regex;p.entities&&p.entities_processNumerical&&(n="[^ -~]|"+n);var n=RegExp(n,"g"),j=b("nbsp,gt,lt,amp,shy",!0),a=RegExp(j.regex,"g");o.addRules({text:function(c){return c.replace(a,r).replace(n,q)}},{applyToAll:!0,excludeNestedEditable:!0})}}})}(),CKEDITOR.config.basicEntities=!0,CKEDITOR.config.entities=!0,CKEDITOR.config.entities_latin=!0,CKEDITOR.config.entities_greek=!0,CKEDITOR.config.entities_additional="#39",CKEDITOR.plugins.add("popup"),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(i,n,g,p){n=n||"80%";g=g||"70%";"string"==typeof n&&1<n.length&&"%"==n.substr(n.length-1,1)&&(n=parseInt(window.screen.width*parseInt(n,10)/100,10));"string"==typeof g&&1<g.length&&"%"==g.substr(g.length-1,1)&&(g=parseInt(window.screen.height*parseInt(g,10)/100,10));640>n&&(n=640);420>g&&(g=420);var o=parseInt((window.screen.height-g)/2,10),j=parseInt((window.screen.width-n)/2,10);p=(p||"location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes")+",width="+n+",height="+g+",top="+o+",left="+j;var h=window.open("",null,p,!0);if(!h){return !1}try{-1==navigator.userAgent.toLowerCase().indexOf(" chrome/")&&(h.moveTo(j,o),h.resizeTo(n,g)),h.focus(),h.location.href=i}catch(m){window.open(i,null,p,!0)}return !0}}),function(){function i(f,e){var l=[];if(e){for(var k in e){l.push(k+"="+encodeURIComponent(e[k]))}}else{return f}return f+(-1!=f.indexOf("?")?"&":"?")+l.join("&")}function n(b){b+="";return b.charAt(0).toUpperCase()+b.substr(1)}function g(){var a=this.getDialog(),l=a.getParentEditor();l._.filebrowserSe=this;var k=l.config["filebrowser"+n(a.getName())+"WindowWidth"]||l.config.filebrowserWindowWidth||"80%",a=l.config["filebrowser"+n(a.getName())+"WindowHeight"]||l.config.filebrowserWindowHeight||"70%",e=this.filebrowser.params||{};e.CKEditor=l.name;e.CKEditorFuncNum=l._.filebrowserFn;e.langCode||(e.langCode=l.langCode);e=i(this.filebrowser.url,e);l.popup(e,k,a,l.config.filebrowserWindowFeatures||l.config.fileBrowserWindowFeatures)}function p(){var b=this.getDialog();b.getParentEditor()._.filebrowserSe=this;return b.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value&&b.getContentElement(this["for"][0],this["for"][1]).getAction()?!0:!1}function o(a,l,k){var e=k.params||{};e.CKEditor=a.name;e.CKEditorFuncNum=a._.filebrowserFn;e.langCode||(e.langCode=a.langCode);l.action=i(k.url,e);l.filebrowser=k}function j(c,w,r,b){if(b&&b.length){for(var k,d=b.length;d--;){if(k=b[d],("hbox"==k.type||"vbox"==k.type||"fieldset"==k.type)&&j(c,w,r,k.children),k.filebrowser){if("string"==typeof k.filebrowser&&(k.filebrowser={action:"fileButton"==k.type?"QuickUpload":"Browse",target:k.filebrowser}),"Browse"==k.filebrowser.action){var e=k.filebrowser.url;void 0===e&&(e=c.config["filebrowser"+n(w)+"BrowseUrl"],void 0===e&&(e=c.config.filebrowserBrowseUrl));e&&(k.onClick=g,k.filebrowser.url=e,k.hidden=!1)}else{if("QuickUpload"==k.filebrowser.action&&k["for"]&&(e=k.filebrowser.url,void 0===e&&(e=c.config["filebrowser"+n(w)+"UploadUrl"],void 0===e&&(e=c.config.filebrowserUploadUrl)),e)){var u=k.onClick;k.onClick=function(l){var f=l.sender;return u&&!1===u.call(f,l)?!1:p.call(f,l)};k.filebrowser.url=e;k.hidden=!1;o(c,r.getContents(k["for"][0]).get(k["for"][1]),k.filebrowser)}}}}}}function h(f,e,l){if(-1!==l.indexOf(";")){l=l.split(";");for(var k=0;k<l.length;k++){if(h(f,e,l[k])){return !0}}return !1}return(f=f.getContents(e).get(l).filebrowser)&&f.url}function m(k,e){var r=this._.filebrowserSe.getDialog(),q=this._.filebrowserSe["for"],l=this._.filebrowserSe.filebrowser.onSelect;q&&r.getContentElement(q[0],q[1]).reset();!("function"==typeof e&&!1===e.call(this._.filebrowserSe)||l&&!1===l.call(this._.filebrowserSe,k,e))&&("string"==typeof e&&e&&alert(e),k&&(q=this._.filebrowserSe,r=q.getDialog(),q=q.filebrowser.target||null))&&(q=q.split(":"),l=r.getContentElement(q[0],q[1]))&&(l.setValue(k),r.selectPage(q[0]))}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(b){b._.filebrowserFn=CKEDITOR.tools.addFunction(m,b);b.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}});CKEDITOR.on("dialogDefinition",function(f){if(f.editor.plugins.filebrowser){for(var e=f.data.definition,l,k=0;k<e.contents.length;++k){if(l=e.contents[k]){j(f.editor,f.data.name,e,l.elements),l.hidden&&l.filebrowser&&(l.hidden=!h(e,l.id,l.filebrowser))}}}})}(),CKEDITOR.plugins.add("find",{requires:"dialog",init:function(b){var c=b.addCommand("find",new CKEDITOR.dialogCommand("find"));c.canUndo=!1;c.readOnly=1;b.addCommand("replace",new CKEDITOR.dialogCommand("replace")).canUndo=!1;b.ui.addButton&&(b.ui.addButton("Find",{label:b.lang.find.find,command:"find",toolbar:"find,10"}),b.ui.addButton("Replace",{label:b.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(k,c){var m=j.exec(k),l=j.exec(c);if(m){if(!m[2]&&"px"==l[2]){return l[1]}if("px"==m[2]&&!l[2]){return l[1]+"px"}}return c}var h=CKEDITOR.htmlParser.cssStyle,f=CKEDITOR.tools.cssLength,j=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,i={elements:{$:function(a){var l=a.attributes;if((l=(l=(l=l&&l["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(l)))&&l.children[0])&&a.attributes["data-cke-resizable"]){var k=(new h(a)).rules;a=l.attributes;var e=k.width,k=k.height;e&&(a.width=g(a.width,e));k&&(a.height=g(a.height,k))}return l}}};CKEDITOR.plugins.add("fakeobjects",{init:function(b){b.filter.allow("img[!data-cke-realelement,src,alt,title](*){*}","fakeobjects")},afterInit:function(b){(b=(b=b.dataProcessor)&&b.htmlFilter)&&b.addRules(i,{applyToAll:!0})}});CKEDITOR.editor.prototype.createFakeElement=function(e,n,l,k){var b=this.lang.fakeobjects,b=b[l]||b.unknown;n={"class":n,"data-cke-realelement":encodeURIComponent(e.getOuterHtml()),"data-cke-real-node-type":e.type,alt:b,title:b,align:e.getAttribute("align")||""};CKEDITOR.env.hc||(n.src=CKEDITOR.tools.transparentImageData);l&&(n["data-cke-real-element-type"]=l);k&&(n["data-cke-resizable"]=k,l=new h,k=e.getAttribute("width"),e=e.getAttribute("height"),k&&(l.rules.width=f(k)),e&&(l.rules.height=f(e)),l.populate(n));return this.document.createElement("img",{attributes:n})};CKEDITOR.editor.prototype.createFakeParserElement=function(e,o,n,k){var b=this.lang.fakeobjects,b=b[n]||b.unknown,l;l=new CKEDITOR.htmlParser.basicWriter;e.writeHtml(l);l=l.getHtml();o={"class":o,"data-cke-realelement":encodeURIComponent(l),"data-cke-real-node-type":e.type,alt:b,title:b,align:e.attributes.align||""};CKEDITOR.env.hc||(o.src=CKEDITOR.tools.transparentImageData);n&&(o["data-cke-real-element-type"]=n);k&&(o["data-cke-resizable"]=k,k=e.attributes,e=new h,n=k.width,k=k.height,void 0!==n&&(e.rules.width=f(n)),void 0!==k&&(e.rules.height=f(k)),e.populate(o));return new CKEDITOR.htmlParser.element("img",o)};CKEDITOR.editor.prototype.restoreRealElement=function(a){if(a.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT){return null}var k=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(a.data("cke-realelement")),this.document);if(a.data("cke-resizable")){var e=a.getStyle("width");a=a.getStyle("height");e&&k.setAttribute("width",g(k.getAttribute("width"),e));a&&k.setAttribute("height",g(k.getAttribute("height"),a))}return k}}(),function(){function d(b){b=b.attributes;return"application/x-shockwave-flash"==b.type||c.test(b.src||"")}function f(g,e){return g.createFakeParserElement(e,"cke_flash","flash",!0)}var c=/\.swf(?:$|\?)/i;CKEDITOR.plugins.add("flash",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_flash{background-image: url("+CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(g){var e="object[classid,codebase,height,hspace,vspace,width];param[name,value];embed[height,hspace,pluginspage,src,type,vspace,width]";CKEDITOR.dialog.isTabEnabled(g,"flash","properties")&&(e+=";object[align]; embed[allowscriptaccess,quality,scale,wmode]");CKEDITOR.dialog.isTabEnabled(g,"flash","advanced")&&(e+=";object[id]{*}; embed[bgcolor]{*}(*)");g.addCommand("flash",new CKEDITOR.dialogCommand("flash",{allowedContent:e,requiredContent:"embed"}));g.ui.addButton&&g.ui.addButton("Flash",{label:g.lang.common.flash,command:"flash",toolbar:"insert,20"});CKEDITOR.dialog.add("flash",this.path+"dialogs/flash.js");g.addMenuItems&&g.addMenuItems({flash:{label:g.lang.flash.properties,command:"flash",group:"flash"}});g.on("doubleclick",function(i){var h=i.data.element;h.is("img")&&"flash"==h.data("cke-real-element-type")&&(i.data.dialog="flash")});g.contextMenu&&g.contextMenu.addListener(function(b){if(b&&b.is("img")&&!b.isReadOnly()&&"flash"==b.data("cke-real-element-type")){return{flash:CKEDITOR.TRISTATE_OFF}}})},afterInit:function(a){var e=a.dataProcessor;(e=e&&e.dataFilter)&&e.addRules({elements:{"cke:object":function(g){var b=g.attributes;if(!(b.classid&&(""+b.classid).toLowerCase()||d(g))){for(b=0;b<g.children.length;b++){if("cke:embed"==g.children[b].name){if(!d(g.children[b])){break}return f(a,g)}}return null}return f(a,g)},"cke:embed":function(b){return d(b)?f(a,b):null}}},5)}})}(),CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:!1,flashAddEmbedTag:!0,flashConvertOnEdit:!1}),function(){function d(i){var q=i.config,j=i.fire("uiSpace",{space:"top",html:""}).html,e=function(){function C(g,m,k){n.setStyle(m,c(k));n.setStyle("position",g)}function B(k){var g=t.getDocumentPosition();switch(k){case"top":C("absolute","top",g.y-G-l);break;case"pin":C("fixed","top",a);break;case"bottom":C("absolute","top",g.y+(s.height||s.bottom-s.top)+l)}v=k}var v,t,h,s,H,G,D,F=q.floatSpaceDockedOffsetX||0,l=q.floatSpaceDockedOffsetY||0,E=q.floatSpacePinnedOffsetX||0,a=q.floatSpacePinnedOffsetY||0;return function(g){if(t=i.editable()){var k=g&&"focus"==g.name;k&&n.show();i.fire("floatingSpaceLayout",{show:k});n.removeStyle("left");n.removeStyle("right");h=n.getClientRect();s=t.getClientRect();H=f.getViewPaneSize();G=h.height;D="pageXOffset" in f.$?f.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft;v?(G+l<=s.top?B("top"):G+l>H.height-s.bottom?B("pin"):B("bottom"),g=H.width/2,g=q.floatSpacePreferRight?"right":0<s.left&&s.right<H.width&&s.width>h.width?"rtl"==q.contentsLangDirection?"right":"left":g-s.left>s.right-g?"left":"right",h.width>H.width?(g="left",k=0):(k="left"==g?0<s.left?s.left:0:s.right<H.width?H.width-s.right:0,k+h.width>H.width&&(g="left"==g?"right":"left",k=0)),n.setStyle(g,c(("pin"==v?E:F)+k+("pin"==v?0:"left"==g?D:-D)))):(v="pin",B("pin"),e(g))}}}();if(j){var p=new CKEDITOR.template('<div id="cke_{name}" class="cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="application" style="{style}"'+(i.title?' aria-labelledby="cke_{name}_arialbl"':" ")+">"+(i.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':" ")+'<div class="cke_inner"><div id="{topId}" class="cke_top" role="presentation">{content}</div></div></div>'),n=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(p.output({content:j,id:i.id,langDir:i.lang.dir,langCode:i.langCode,name:i.name,style:"display:none;z-index:"+(q.baseFloatZIndex-1),topId:i.ui.spaceId("top"),voiceLabel:i.title}))),b=CKEDITOR.tools.eventsBuffer(500,e),o=CKEDITOR.tools.eventsBuffer(100,e);n.unselectable();n.on("mousedown",function(g){g=g.data;g.getTarget().hasAscendant("a",1)||g.preventDefault()});i.on("focus",function(a){e(a);i.on("change",b.input);f.on("scroll",o.input);f.on("resize",o.input)});i.on("blur",function(){n.hide();i.removeListener("change",b.input);f.removeListener("scroll",o.input);f.removeListener("resize",o.input)});i.on("destroy",function(){f.removeListener("scroll",o.input);f.removeListener("resize",o.input);n.clearCustomData();n.remove()});i.focusManager.hasFocus&&n.show();i.focusManager.add(n,1)}}var f=CKEDITOR.document.getWindow(),c=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(a){a.on("loaded",function(){d(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var f=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),g=CKEDITOR.addTemplate("panel-list-item",'<li id="{id}" class="cke_panel_listItem" role=presentation><a id="{id}_option" _cke_focus=1 hidefocus=true title="{title}" href="javascript:void(\'{val}\')" {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role="option">{text}</a></li>'),d=CKEDITOR.addTemplate("panel-list-group",'<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>'),h=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(e,c){return this.addBlock(e,new CKEDITOR.ui.listBlock(this.getHolderElement(),c))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(i,e){e=e||{};var j=e.attributes||(e.attributes={});(this.multiSelect=!!e.multiSelect)&&(j["aria-multiselectable"]=!0);!j.role&&(j.role="listbox");this.base.apply(this,arguments);this.element.setAttribute("role",j.role);j=this.keys;j[40]="next";j[9]="next";j[38]="prev";j[CKEDITOR.SHIFT+9]="prev";j[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(j[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var a=f.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(a);delete this._.started}},getClick:function(){this._.click||(this._.click=CKEDITOR.tools.addFunction(function(e){var c=this.toggle(e);if(this.onClick){this.onClick(e,c)}},this));return this._.click}},proto:{add:function(i,c,e){var k=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0);this._.items[i]=k;var j;j=CKEDITOR.tools.htmlEncodeAttr(i).replace(h,"\\'");i={id:k,val:j,onclick:CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(e||i),text:c||i};this._.pendingList.push(g.output(i))},startGroup:function(b){this._.close();var e=CKEDITOR.tools.getNextId();this._.groups[b]=e;this._.pendingHtml.push(d.output({id:e,label:b}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(e){var c=this.isMarked(e);c?this.unmark(e):this.mark(e);return !c},hideGroup:function(e){var c=(e=this.element.getDocument().getById(this._.groups[e]))&&e.getNext();e&&(e.setStyle("display","none"),c&&"ul"==c.getName()&&c.setStyle("display","none"))},hideItem:function(b){this.element.getDocument().getById(this._.items[b]).setStyle("display","none")},showAll:function(){var j=this._.items,i=this._.groups,m=this.element.getDocument(),k;for(k in j){m.getById(j[k]).setStyle("display","")}for(var l in i){j=m.getById(i[l]),k=j.getNext(),j.setStyle("display",""),k&&"ul"==k.getName()&&k.setStyle("display","")}},mark:function(e){this.multiSelect||this.unmarkAll();e=this._.items[e];var c=this.element.getDocument().getById(e);c.addClass("cke_selected");this.element.getDocument().getById(e+"_option").setAttribute("aria-selected",!0);this.onMark&&this.onMark(c)},unmark:function(i){var e=this.element.getDocument();i=this._.items[i];var j=e.getById(i);j.removeClass("cke_selected");e.getById(i+"_option").removeAttribute("aria-selected");this.onUnmark&&this.onUnmark(j)},unmarkAll:function(){var i=this._.items,e=this.element.getDocument(),k;for(k in i){var j=i[k];e.getById(j).removeClass("cke_selected");e.getById(j+"_option").removeAttribute("aria-selected")}this.onUnmark&&this.onUnmark()},isMarked:function(b){return this.element.getDocument().getById(this._.items[b]).hasClass("cke_selected")},focus:function(i){this._.focusIndex=-1;var e=this.element.getElementsByTag("a"),k,j=-1;if(i){for(k=this.element.getDocument().getById(this._.items[i]).getFirst();i=e.getItem(++j);){if(i.equals(k)){this._.focusIndex=j;break}}}else{this.element.focus()}k&&setTimeout(function(){k.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(b){b.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}}),function(){var b='<span id="{id}" class="cke_combo cke_combo__{name} {cls}" role="presentation"><span id="{id}_label" class="cke_combo_label">{label}</span><a class="cke_combo_button" title="{title}" tabindex="-1"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="true"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(b+=' onkeypress="return false;"');CKEDITOR.env.gecko&&(b+=' onblur="this.style.cssText = this.style.cssText;"');var b=b+(' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span id="{id}_text" class="cke_combo_text cke_combo_inlinelabel">{label}</span><span class="cke_combo_open"><span class="cke_combo_arrow">'+(CKEDITOR.env.hc?"▼":CKEDITOR.env.air?" ":"")+"</span></span></a></span>"),c=CKEDITOR.addTemplate("combo",b);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(d){CKEDITOR.tools.extend(this,d,{canGroup:!1,title:d.label,modes:{wysiwyg:1},editorFocus:1});d=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=d.parent&&d.parent.getDocument()||CKEDITOR.document;d.className="cke_combopanel";d.block={multiSelect:d.multiSelect,attributes:d.attributes};d.toolbarRelated=!0;this._={panelDefinition:d,items:{}}},proto:{renderHtml:function(d){var e=[];this.render(d,e);return e.join("")},render:function(v,u){function t(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var a=this.modes[v.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;v.readOnly&&!this.readOnly&&(a=CKEDITOR.TRISTATE_DISABLED);this.setState(a);this.setValue("");a!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var n=CKEDITOR.env,j="cke_"+this.id,r=CKEDITOR.tools.addFunction(function(a){w&&(v.unlockSelection(1),w=0);i.execute(a)},this),o=this,i={id:j,combo:this,focus:function(){CKEDITOR.document.getById(j).getChild(1).focus()},execute:function(h){var g=o._;if(g.state!=CKEDITOR.TRISTATE_DISABLED){if(o.createPanel(v),g.on){g.panel.hide()}else{o.commit();var a=o.getValue();a?g.list.mark(a):g.list.unmarkAll();g.panel.showBlock(o.id,new CKEDITOR.dom.element(h),4)}}},clickFn:r};v.on("activeFilterChange",t,this);v.on("mode",t,this);v.on("selectionChange",t,this);!this.readOnly&&v.on("readOnly",t,this);var q=CKEDITOR.tools.addFunction(function(g,f){g=new CKEDITOR.dom.event(g);var a=g.getKeystroke();if(40==a){v.once("panelShow",function(d){d.data._.panel._.currentBlock.onKeyDown(40)})}switch(a){case 13:case 32:case 40:CKEDITOR.tools.callFunction(r,f);break;default:i.onkey(i,a)}g.preventDefault()}),e=CKEDITOR.tools.addFunction(function(){i.onfocus&&i.onfocus()}),w=0;i.keyDownFn=q;n={id:j,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:n.gecko&&!n.hc?"":(this.title||"").replace("'",""),keydownFn:q,focusFn:e,clickFn:r};c.output(n,u);if(this.onRender){this.onRender()}return i},createPanel:function(j){if(!this._.panel){var q=this._.panelDefinition,p=this._.panelDefinition.block,o=q.parent||CKEDITOR.document.getBody(),i="cke_combopanel__"+this.name,n=new CKEDITOR.ui.floatPanel(j,o,q),k=n.addListBlock(this.id,p),g=this;n.onShow=function(){this.element.addClass(i);g.setState(CKEDITOR.TRISTATE_ON);g._.on=1;g.editorFocus&&!j.focusManager.hasFocus&&j.focus();if(g.onOpen){g.onOpen()}j.once("panelShow",function(){k.focus(!k.multiSelect&&g.getValue())})};n.onHide=function(a){this.element.removeClass(i);g.setState(g.modes&&g.modes[j.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);g._.on=0;if(!a&&g.onClose){g.onClose()}};n.onEscape=function(){n.hide(1)};k.onClick=function(e,d){g.onClick&&g.onClick.call(g,e,d);n.hide()};this._.panel=n;this._.list=k;n.getBlock(this.id).onHide=function(){g._.on=0;g.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(e,g){this._.value=e;var f=this.document.getById("cke_"+this.id+"_text");f&&(e||g?f.removeClass("cke_combo_inlinelabel"):(g=this.label,f.addClass("cke_combo_inlinelabel")),f.setText("undefined"!=typeof g?g:e))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(d){this._.list.mark(d)},hideItem:function(d){this._.list.hideItem(d)},hideGroup:function(d){this._.list.hideGroup(d)},showAll:function(){this._.list.showAll()},add:function(e,g,f){this._.items[e]=f||e;this._.list.add(e,g,f)},startGroup:function(d){this._.list.startGroup(d)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this));this._.committed=1},setState:function(d){if(this._.state!=d){var e=this.document.getById("cke_"+this.id);e.setState(d,"cke_combo");d==CKEDITOR.TRISTATE_DISABLED?e.setAttribute("aria-disabled",!0):e.removeAttribute("aria-disabled");this._.state=d}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))}},statics:{handler:{create:function(d){return new CKEDITOR.ui.richCombo(d)}}}});CKEDITOR.ui.prototype.addRichCombo=function(d,e){this.add(d,CKEDITOR.UI_RICHCOMBO,e)}}(),function(){function b(C,B,A,w,r,z,x,o){var y=C.config,i=new CKEDITOR.style(x),G=r.split(";");r=[];for(var D={},F=0;F<G.length;F++){var e=G[F];if(e){var e=e.split("/"),j={},E=G[F]=e[0];j[A]=r[F]=e[1]||E;D[E]=new CKEDITOR.style(x,j);D[E]._.definition.name=E}else{G.splice(F--,1)}}C.ui.addRichCombo(B,{label:w.label,title:w.panelTitle,toolbar:"styles,"+o,allowedContent:i,requiredContent:i,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(y.contentsCss),multiSelect:!1,attributes:{"aria-label":w.panelTitle}},init:function(){this.startGroup(w.panelTitle);for(var f=0;f<G.length;f++){var d=G[f];this.add(d,D[d].buildPreview(),d)}},onClick:function(I){C.focus();C.fire("saveSnapshot");var H=this.getValue(),v=D[I];if(H&&I!=H){var u=D[H],t=C.getSelection().getRanges()[0];if(t.collapsed){var s=C.elementPath(),q=s.contains(function(d){return u.checkElementRemovable(d)});if(q){var p=t.checkBoundaryOfElement(q,CKEDITOR.START),a=t.checkBoundaryOfElement(q,CKEDITOR.END);if(p&&a){for(p=t.createBookmark();s=q.getFirst();){s.insertBefore(q)}q.remove();t.moveToBookmark(p)}else{p?t.moveToPosition(q,CKEDITOR.POSITION_BEFORE_START):a?t.moveToPosition(q,CKEDITOR.POSITION_AFTER_END):(t.splitElement(q),t.moveToPosition(q,CKEDITOR.POSITION_AFTER_END),c(t,s.elements.slice(),q))}C.getSelection().selectRanges([t])}}else{C.removeStyle(u)}}C[H==I?"removeStyle":"applyStyle"](v);C.fire("saveSnapshot")},onRender:function(){C.on("selectionChange",function(m){var l=this.getValue();m=m.data.path.elements;for(var k=0,f;k<m.length;k++){f=m[k];for(var a in D){if(D[a].checkElementMatch(f,!0,C)){a!=l&&this.setValue(a);return}}}this.setValue("",z)},this)},refresh:function(){C.activeFilter.check(i)||this.setState(CKEDITOR.TRISTATE_DISABLED)}})}function c(e,h,g){var f=h.pop();if(f){if(g){return c(e,h,f.equals(g)?null:g)}g=f.clone();e.insertNode(g);e.moveToPosition(g,CKEDITOR.POSITION_AFTER_START);c(e,h)}}CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(a){var d=a.config;b(a,"Font","family",a.lang.font,d.font_names,d.font_defaultLabel,d.font_style,30);b(a,"FontSize","size",a.lang.font.fontSize,d.fontSize_sizes,d.fontSize_defaultLabel,d.fontSize_style,40)}})}(),CKEDITOR.config.font_names="Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif",CKEDITOR.config.font_defaultLabel="",CKEDITOR.config.font_style={element:"span",styles:{"font-family":"#(family)"},overrides:[{element:"font",attributes:{face:null}}]},CKEDITOR.config.fontSize_sizes="8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px",CKEDITOR.config.fontSize_defaultLabel="",CKEDITOR.config.fontSize_style={element:"span",styles:{"font-size":"#(size)"},overrides:[{element:"font",attributes:{size:null}}]},CKEDITOR.plugins.add("forms",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss(".cke_editable form{border: 1px dotted #FF0000;padding: 2px;}\n");CKEDITOR.addCss("img.cke_hidden{background-image: url("+CKEDITOR.getUrl(this.path+"images/hiddenfield.gif")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 16px !important;height: 16px !important;}")},init:function(r){var n=r.lang,q=0,p={email:1,password:1,search:1,tel:1,text:1,url:1},o={checkbox:"input[type,name,checked,required]",radio:"input[type,name,checked,required]",textfield:"input[type,name,value,size,maxlength,required]",textarea:"textarea[cols,rows,name,required]",select:"select[name,size,multiple,required]; option[value,selected]",button:"input[type,name,value]",form:"form[action,name,id,enctype,target,method]",hiddenfield:"input[type,name,value]",imagebutton:"input[type,alt,src]{width,height,border,border-width,border-style,margin,float}"},i={checkbox:"input",radio:"input",textfield:"input",textarea:"textarea",select:"select",button:"input",form:"form",hiddenfield:"input",imagebutton:"input"},g=function(e,d,b){var a={allowedContent:o[d],requiredContent:i[d]};"form"==d&&(a.context="form");r.addCommand(d,new CKEDITOR.dialogCommand(d,a));r.ui.addButton&&r.ui.addButton(e,{label:n.common[e.charAt(0).toLowerCase()+e.slice(1)],command:d,toolbar:"forms,"+(q+=10)});CKEDITOR.dialog.add(d,b)},m=this.path+"dialogs/";!r.blockless&&g("Form","form",m+"form.js");g("Checkbox","checkbox",m+"checkbox.js");g("Radio","radio",m+"radio.js");g("TextField","textfield",m+"textfield.js");g("Textarea","textarea",m+"textarea.js");g("Select","select",m+"select.js");g("Button","button",m+"button.js");var j=r.plugins.image;j&&!r.plugins.image2&&g("ImageButton","imagebutton",CKEDITOR.plugins.getPath("image")+"dialogs/image.js");g("HiddenField","hiddenfield",m+"hiddenfield.js");r.addMenuItems&&(g={checkbox:{label:n.forms.checkboxAndRadio.checkboxTitle,command:"checkbox",group:"checkbox"},radio:{label:n.forms.checkboxAndRadio.radioTitle,command:"radio",group:"radio"},textfield:{label:n.forms.textfield.title,command:"textfield",group:"textfield"},hiddenfield:{label:n.forms.hidden.title,command:"hiddenfield",group:"hiddenfield"},button:{label:n.forms.button.title,command:"button",group:"button"},select:{label:n.forms.select.title,command:"select",group:"select"},textarea:{label:n.forms.textarea.title,command:"textarea",group:"textarea"}},j&&(g.imagebutton={label:n.image.titleButton,command:"imagebutton",group:"imagebutton"}),!r.blockless&&(g.form={label:n.forms.form.menu,command:"form",group:"form"}),r.addMenuItems(g));r.contextMenu&&(!r.blockless&&r.contextMenu.addListener(function(e,d,f){if((e=f.contains("form",1))&&!e.isReadOnly()){return{form:CKEDITOR.TRISTATE_OFF}}}),r.contextMenu.addListener(function(e){if(e&&!e.isReadOnly()){var c=e.getName();if("select"==c){return{select:CKEDITOR.TRISTATE_OFF}}if("textarea"==c){return{textarea:CKEDITOR.TRISTATE_OFF}}if("input"==c){var f=e.getAttribute("type")||"text";switch(f){case"button":case"submit":case"reset":return{button:CKEDITOR.TRISTATE_OFF};case"checkbox":return{checkbox:CKEDITOR.TRISTATE_OFF};case"radio":return{radio:CKEDITOR.TRISTATE_OFF};case"image":return j?{imagebutton:CKEDITOR.TRISTATE_OFF}:null}if(p[f]){return{textfield:CKEDITOR.TRISTATE_OFF}}}if("img"==c&&"hiddenfield"==e.data("cke-real-element-type")){return{hiddenfield:CKEDITOR.TRISTATE_OFF}}}}));r.on("doubleclick",function(a){var c=a.data.element;if(!r.blockless&&c.is("form")){a.data.dialog="form"}else{if(c.is("select")){a.data.dialog="select"}else{if(c.is("textarea")){a.data.dialog="textarea"}else{if(c.is("img")&&"hiddenfield"==c.data("cke-real-element-type")){a.data.dialog="hiddenfield"}else{if(c.is("input")){c=c.getAttribute("type")||"text";switch(c){case"button":case"submit":case"reset":a.data.dialog="button";break;case"checkbox":a.data.dialog="checkbox";break;case"radio":a.data.dialog="radio";break;case"image":a.data.dialog="imagebutton"}p[c]&&(a.data.dialog="textfield")}}}}}})},afterInit:function(d){var f=d.dataProcessor,c=f&&f.htmlFilter,f=f&&f.dataFilter;CKEDITOR.env.ie&&c&&c.addRules({elements:{input:function(g){g=g.attributes;var e=g.type;e||(g.type="text");"checkbox"!=e&&"radio"!=e||"on"!=g.value||delete g.value}}},{applyToAll:!0});f&&f.addRules({elements:{input:function(a){if("hidden"==a.attributes.type){return d.createFakeParserElement(a,"cke_hidden","hiddenfield")}}}},{applyToAll:!0})}}),CKEDITOR.plugins.add("format",{requires:"richcombo",init:function(t){if(!t.blockless){for(var p=t.config,s=t.lang.format,r=p.format_tags.split(";"),q={},j=0,i=[],o=0;o<r.length;o++){var n=r[o],g=new CKEDITOR.style(p["format_"+n]);if(!t.filter.customConfig||t.filter.check(g)){j++,q[n]=g,q[n]._.enterMode=t.config.enterMode,i.push(g)}}0!==j&&t.ui.addRichCombo("Format",{label:s.label,title:s.panelTitle,toolbar:"styles,20",allowedContent:i,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(p.contentsCss),multiSelect:!1,attributes:{"aria-label":s.panelTitle}},init:function(){this.startGroup(s.panelTitle);for(var b in q){var d=s["tag_"+b];this.add(b,q[b].buildPreview(d),d)}},onClick:function(a){t.focus();t.fire("saveSnapshot");a=q[a];var d=t.elementPath();t[a.checkActive(d,t)?"removeStyle":"applyStyle"](a);setTimeout(function(){t.fire("saveSnapshot")},0)},onRender:function(){t.on("selectionChange",function(a){var e=this.getValue();a=a.data.path;this.refresh();for(var d in q){if(q[d].checkActive(a,t)){d!=e&&this.setValue(d,t.lang.format["tag_"+d]);return}}this.setValue("")},this)},onOpen:function(){this.showAll();for(var a in q){t.activeFilter.check(q[a])||this.hideItem(a)}},refresh:function(){var a=t.elementPath();if(a){if(a.isContextFor("p")){for(var d in q){if(t.activeFilter.check(q[d])){return}}}this.setState(CKEDITOR.TRISTATE_DISABLED)}}})}}}),CKEDITOR.config.format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div",CKEDITOR.config.format_p={element:"p"},CKEDITOR.config.format_div={element:"div"},CKEDITOR.config.format_pre={element:"pre"},CKEDITOR.config.format_address={element:"address"},CKEDITOR.config.format_h1={element:"h1"},CKEDITOR.config.format_h2={element:"h2"},CKEDITOR.config.format_h3={element:"h3"},CKEDITOR.config.format_h4={element:"h4"},CKEDITOR.config.format_h5={element:"h5"},CKEDITOR.config.format_h6={element:"h6"},function(){var b={canUndo:!1,exec:function(d){var c=d.document.createElement("hr");d.insertElement(c)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(a){a.blockless||(a.addCommand("horizontalrule",b),a.ui.addButton&&a.ui.addButton("HorizontalRule",{label:a.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"}))}})}(),CKEDITOR.plugins.add("htmlwriter",{init:function(b){var c=new CKEDITOR.htmlWriter;c.forceSimpleAmpersand=b.config.forceSimpleAmpersand;c.indentationChars=b.config.dataIndentationChars||"\t";b.dataProcessor.writer=c}}),CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){this.base();this.indentationChars="\t";this.selfClosingEnd=" />";this.lineBreakChars="\n";this.sortAttributes=1;this._.indent=0;this._.indentation="";this._.inPre=0;this._.rules={};var b=CKEDITOR.dtd,c;for(c in CKEDITOR.tools.extend({},b.$nonBodyContent,b.$block,b.$listItem,b.$tableContent)){this.setRules(c,{indent:!b[c]["#"],breakBeforeOpen:1,breakBeforeClose:!b[c]["#"],breakAfterClose:1,needsSpace:c in b.$block&&!(c in {li:1,dt:1,dd:1})})}this.setRules("br",{breakAfterOpen:1});this.setRules("title",{indent:0,breakAfterOpen:0});this.setRules("style",{indent:0,breakBeforeClose:1});this.setRules("pre",{breakAfterOpen:1,indent:0})},proto:{openTag:function(b){var c=this._.rules[b];this._.afterCloser&&c&&c.needsSpace&&this._.needsSpace&&this._.output.push("\n");this._.indent?this.indentation():c&&c.breakBeforeOpen&&(this.lineBreak(),this.indentation());this._.output.push("<",b);this._.afterCloser=0},openTagClose:function(d,f){var c=this._.rules[d];f?(this._.output.push(this.selfClosingEnd),c&&c.breakAfterClose&&(this._.needsSpace=c.needsSpace)):(this._.output.push(">"),c&&c.indent&&(this._.indentation+=this.indentationChars));c&&c.breakAfterOpen&&this.lineBreak();"pre"==d&&(this._.inPre=1)},attribute:function(b,c){"string"==typeof c&&(this.forceSimpleAmpersand&&(c=c.replace(/&/g,"&")),c=CKEDITOR.tools.htmlEncodeAttr(c));this._.output.push(" ",b,'="',c,'"')},closeTag:function(b){var c=this._.rules[b];c&&c.indent&&(this._.indentation=this._.indentation.substr(this.indentationChars.length));this._.indent?this.indentation():c&&c.breakBeforeClose&&(this.lineBreak(),this.indentation());this._.output.push("</",b,">");"pre"==b&&(this._.inPre=0);c&&c.breakAfterClose&&(this.lineBreak(),this._.needsSpace=c.needsSpace);this._.afterCloser=1},text:function(b){this._.indent&&(this.indentation(),!this._.inPre&&(b=CKEDITOR.tools.ltrim(b)));this._.output.push(b)},comment:function(b){this._.indent&&this.indentation();this._.output.push("\x3c!--",b,"--\x3e")},lineBreak:function(){!this._.inPre&&0<this._.output.length&&this._.output.push(this.lineBreakChars);this._.indent=1},indentation:function(){!this._.inPre&&this._.indentation&&this._.output.push(this._.indentation);this._.indent=0},reset:function(){this._.output=[];this._.indent=0;this._.indentation="";this._.afterCloser=0;this._.inPre=0},setRules:function(d,f){var c=this._.rules[d];c?CKEDITOR.tools.extend(c,f,!0):this._.rules[d]=f}}}),function(){CKEDITOR.plugins.add("iframe",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_iframe{background-image: url("+CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(d){var f=d.lang.iframe,c="iframe[align,longdesc,frameborder,height,name,scrolling,src,title,width]";d.plugins.dialogadvtab&&(c+=";iframe"+d.plugins.dialogadvtab.allowedContent({id:1,classes:1,styles:1}));CKEDITOR.dialog.add("iframe",this.path+"dialogs/iframe.js");d.addCommand("iframe",new CKEDITOR.dialogCommand("iframe",{allowedContent:c,requiredContent:"iframe"}));d.ui.addButton&&d.ui.addButton("Iframe",{label:f.toolbar,command:"iframe",toolbar:"insert,80"});d.on("doubleclick",function(g){var e=g.data.element;e.is("img")&&"iframe"==e.data("cke-real-element-type")&&(g.data.dialog="iframe")});d.addMenuItems&&d.addMenuItems({iframe:{label:f.title,command:"iframe",group:"image"}});d.contextMenu&&d.contextMenu.addListener(function(b){if(b&&b.is("img")&&"iframe"==b.data("cke-real-element-type")){return{iframe:CKEDITOR.TRISTATE_OFF}}})},afterInit:function(b){var c=b.dataProcessor;(c=c&&c.dataFilter)&&c.addRules({elements:{iframe:function(a){return b.createFakeParserElement(a,"cke_iframe","iframe",!0)}}})}})}(),function(){function f(j){var i=this.editor,n=j.document,l=n.body,k=n.getElementById("cke_actscrpt");k&&k.parentNode.removeChild(k);(k=n.getElementById("cke_shimscrpt"))&&k.parentNode.removeChild(k);(k=n.getElementById("cke_basetagscrpt"))&&k.parentNode.removeChild(k);l.contentEditable=!0;CKEDITOR.env.ie&&(l.hideFocus=!0,l.disabled=!0,l.removeAttribute("disabled"));delete this._.isLoadingData;this.$=l;n=new CKEDITOR.dom.document(n);this.setup();this.fixInitialSelection();CKEDITOR.env.ie&&(n.getDocumentElement().addClass(n.$.compatMode),i.config.enterMode!=CKEDITOR.ENTER_P&&this.attachListener(n,"selectionchange",function(){var b=n.getBody(),m=i.getSelection(),c=m&&m.getRanges()[0];c&&b.getHtml().match(/^<p>(?: |<br>)<\/p>$/i)&&c.startContainer.equals(b)&&setTimeout(function(){c=i.getSelection().getRanges()[0];c.startContainer.equals("body")||(b.getFirst().remove(1),c.moveToElementEditEnd(b),c.select())},0)}));if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version){n.getDocumentElement().on("mousedown",function(b){b.data.getTarget().is("html")&&setTimeout(function(){i.editable().focus()})})}g(i);try{i.document.$.execCommand("2D-position",!1,!0)}catch(e){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==i.document.$.compatMode)&&this.attachListener(this,"keydown",function(b){var o=b.data.getKeystroke();if(33==o||34==o){if(CKEDITOR.env.ie){setTimeout(function(){i.getSelection().scrollIntoView()},0)}else{if(i.window.$.innerHeight>this.$.offsetHeight){var m=i.createRange();m[33==o?"moveToElementEditStart":"moveToElementEditEnd"](this);m.select();b.data.preventDefault()}}}});CKEDITOR.env.ie&&this.attachListener(n,"blur",function(){try{n.$.selection.empty()}catch(b){}});CKEDITOR.env.iOS&&this.attachListener(n,"touchend",function(){j.focus()});l=i.document.getElementsByTag("title").getItem(0);l.data("cke-title",l.getText());CKEDITOR.env.ie&&(i.document.$.title=this._.docTitle);CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready");i.fire("contentDom");this._.isPendingFocus&&(i.focus(),this._.isPendingFocus=!1);setTimeout(function(){i.fire("dataReady")},0)},0,this)}function g(j){function i(){var a;j.editable().attachListener(j,"selectionChange",function(){var c=j.getSelection().getSelectedElement();c&&(a&&(a.detachEvent("onresizestart",m),a=null),c.$.attachEvent("onresizestart",m),a=c.$)})}function m(b){b.returnValue=!1}if(CKEDITOR.env.gecko){try{var k=j.document.$;k.execCommand("enableObjectResizing",!1,!j.config.disableObjectResizing);k.execCommand("enableInlineTableEditing",!1,!j.config.disableNativeTableHandles)}catch(l){}}else{CKEDITOR.env.ie&&11>CKEDITOR.env.version&&j.config.disableObjectResizing&&i(j)}}function d(){var i=[];if(8<=CKEDITOR.document.$.documentMode){i.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");var e=[],j;for(j in CKEDITOR.dtd.$removeEmpty){e.push("html.CSS1Compat "+j+"[contenteditable=false]")}i.push(e.join(",")+"{display:inline-block}")}else{CKEDITOR.env.gecko&&(i.push("html{height:100% !important}"),i.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"))}i.push("html{cursor:text;*cursor:auto}");i.push("img,input,textarea{cursor:default}");return i.join("\n")}CKEDITOR.plugins.add("wysiwygarea",{init:function(b){b.config.fullPage&&b.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"});b.addMode("wysiwyg",function(c){function o(e){e&&e.removeListener();b.editable(new h(b,j.$.contentWindow.document.body));b.setData(b.getData(1),c)}var l="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",l=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(l)+"}())":"",j=CKEDITOR.dom.element.createFromHtml('<iframe src="'+l+'" frameBorder="0"></iframe>');j.setStyles({width:"100%",height:"100%"});j.addClass("cke_wysiwyg_frame").addClass("cke_reset");l=b.ui.space("contents");l.append(j);var a=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;if(a){j.on("load",o)}var k=b.title,n=b.fire("ariaEditorHelpLabel",{}).label;k&&(CKEDITOR.env.ie&&n&&(k+=", "+n),j.setAttribute("title",k));if(n){var k=CKEDITOR.tools.getNextId(),i=CKEDITOR.dom.element.createFromHtml('<span id="'+k+'" class="cke_voice_label">'+n+"</span>");l.append(i,1);j.setAttribute("aria-describedby",k)}b.on("beforeModeUnload",function(e){e.removeListener();i&&i.remove()});j.setAttributes({tabIndex:b.tabIndex,allowTransparency:"true"});!a&&o();b.fire("ariaWidget",j)})}});CKEDITOR.editor.prototype.addContentsCss=function(i){var e=this.config,j=e.contentsCss;CKEDITOR.tools.isArray(j)||(e.contentsCss=j?[j]:[]);e.contentsCss.push(i)};var h=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(a){CKEDITOR.tools.setTimeout(f,0,this,a)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(q,o){var n=this.editor;if(o){this.setHtml(q),this.fixInitialSelection(),n.fire("dataReady")}else{this._.isLoadingData=!0;n._.dataStore={id:1};var l=n.config,j=l.fullPage,i=l.docType,k=CKEDITOR.tools.buildStyleHtml(d()).replace(/<style>/,'<style data-cke-temp="1">');j||(k+=CKEDITOR.tools.buildStyleHtml(n.config.contentsCss));var b=l.baseHref?'<base href="'+l.baseHref+'" data-cke-temp="1" />':"";j&&(q=q.replace(/<!DOCTYPE[^>]*>/i,function(c){n.docType=i=c;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(c){n.xmlDeclaration=c;return""}));q=n.dataProcessor.toHtml(q);j?(/<body[\s|>]/.test(q)||(q="<body>"+q),/<html[\s|>]/.test(q)||(q="<html>"+q+"</html>"),/<head[\s|>]/.test(q)?/<title[\s|>]/.test(q)||(q=q.replace(/<head[^>]*>/,"$&<title></title>")):q=q.replace(/<html[^>]*>/,"$&<head><title></title></head>"),b&&(q=q.replace(/<head[^>]*?>/,"$&"+b)),q=q.replace(/<\/head\s*>/,k+"$&"),q=i+q):q=l.docType+'<html dir="'+l.contentsLangDirection+'" lang="'+(l.contentsLanguage||n.langCode)+'"><head><title>'+this._.docTitle+"</title>"+b+k+"</head><body"+(l.bodyId?' id="'+l.bodyId+'"':"")+(l.bodyClass?' class="'+l.bodyClass+'"':"")+">"+q+"</body></html>";CKEDITOR.env.gecko&&(q=q.replace(/<body/,'<body contenteditable="true" '),20000>CKEDITOR.env.version&&(q=q.replace(/<body[^>]*>/,"$&\x3c!-- cke-content-start --\x3e")));l='<script id="cke_actscrpt" type="text/javascript"'+(CKEDITOR.env.ie?' defer="defer" ':"")+">var wasLoaded=0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+this._.frameLoadedHandler+",window);wasLoaded=1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"\x3c/script>";CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(l+='<script id="cke_shimscrpt">window.parent.CKEDITOR.tools.enableHtml5Elements(document)\x3c/script>');b&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(l+='<script id="cke_basetagscrpt">var baseTag = document.querySelector( "base" );baseTag.href = baseTag.href;\x3c/script>');q=q.replace(/(?=\s*<\/(:?head)>)/,l);this.clearCustomData();this.clearListeners();n.fire("contentDomUnload");var t=this.getDocument();try{t.write(q)}catch(r){setTimeout(function(){t.write(q)},0)}}},getData:function(k){if(k){return this.getHtml()}k=this.editor;var j=k.config,o=j.fullPage,l=o&&k.docType,n=o&&k.xmlDeclaration,i=this.getDocument(),o=o?i.getDocumentElement().getOuterHtml():i.getBody().getHtml();CKEDITOR.env.gecko&&j.enterMode!=CKEDITOR.ENTER_BR&&(o=o.replace(/<br>(?=\s*(:?$|<\/body>))/,""));o=k.dataProcessor.toDataFormat(o);n&&(o=n+"\n"+o);l&&(o=l+"\n"+o);return o},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:h.baseProto.focus.call(this)},detach:function(){var e=this.editor,c=e.document,e=e.window.getFrame();h.baseProto.detach.call(this);this.clearCustomData();c.getDocumentElement().clearCustomData();e.clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);(c=e.removeCustomData("onResize"))&&c.removeListener();e.remove()}}})}(),CKEDITOR.config.disableObjectResizing=!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.contentsCss=CKEDITOR.getUrl("contents.css"),function(){function b(d,e){e||(e=d.getSelection().getSelectedElement());if(e&&e.is("img")&&!e.data("cke-realelement")&&!e.isReadOnly()){return e}}function c(d){var e=d.getStyle("float");if("inherit"==e||"none"==e){e=0}e||(e=d.getAttribute("align"));return e}CKEDITOR.plugins.add("image",{requires:"dialog",init:function(a){if(!a.plugins.image2){CKEDITOR.dialog.add("image",this.path+"dialogs/image.js");var d="img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}";CKEDITOR.dialog.isTabEnabled(a,"image","advanced")&&(d="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)");a.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:d,requiredContent:"img[alt,src]",contentTransformations:[["img{width}: sizeToStyle","img[width]: sizeToAttribute"],["img{float}: alignmentToStyle","img[align]: alignmentToAttribute"]]}));a.ui.addButton&&a.ui.addButton("Image",{label:a.lang.common.image,command:"image",toolbar:"insert,10"});a.on("doubleclick",function(f){var e=f.data.element;e.is("img")&&!e.data("cke-realelement")&&!e.isReadOnly()&&(f.data.dialog="image")});a.addMenuItems&&a.addMenuItems({image:{label:a.lang.image.menu,command:"image",group:"image"}});a.contextMenu&&a.contextMenu.addListener(function(e){if(b(a,e)){return{image:CKEDITOR.TRISTATE_OFF}}})}},afterInit:function(a){function d(f){var e=a.getCommand("justify"+f);if(e){if("left"==f||"right"==f){e.on("exec",function(g){var j=b(a),i;j&&(i=c(j),i==f?(j.removeStyle("float"),f==c(j)&&j.removeAttribute("align")):j.setStyle("float",f),g.cancel())})}e.on("refresh",function(g){var h=b(a);h&&(h=c(h),this.setState(h==f?CKEDITOR.TRISTATE_ON:"right"==f||"left"==f?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),g.cancel())})}}a.plugins.image2||(d("left"),d("right"),d("center"),d("block"))}})}(),CKEDITOR.config.image_removeLinkByEmptyURL=!0,function(){function d(e,h){var g,b;h.on("refresh",function(i){var k=[f],j;for(j in i.data.states){k.push(i.data.states[j])}this.setState(CKEDITOR.tools.search(k,c)?c:f)},h,null,100);h.on("exec",function(a){g=e.getSelection();b=g.createBookmarks(1);a.data||(a.data={});a.data.done=!1},h,null,0);h.on("exec",function(){e.forceNextSelectionCheck();g.selectBookmarks(b)},h,null,100)}var f=CKEDITOR.TRISTATE_DISABLED,c=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(a){var e=CKEDITOR.plugins.indent.genericDefinition;d(a,a.addCommand("indent",new e(!0)));d(a,a.addCommand("outdent",new e));a.ui.addButton&&(a.ui.addButton("Indent",{label:a.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),a.ui.addButton("Outdent",{label:a.lang.indent.outdent,command:"outdent",directional:!0,toolbar:"indent,10"}));a.on("dirChanged",function(h){var o=a.createRange(),k=h.data.node;o.setStartBefore(k);o.setEndAfter(k);for(var n=new CKEDITOR.dom.walker(o),b;b=n.next();){if(b.type==CKEDITOR.NODE_ELEMENT){if(!b.equals(k)&&b.getDirection()){o.setStartAfter(b),n=new CKEDITOR.dom.walker(o)}else{var j=a.config.indentClasses;if(j){for(var l="ltr"==h.data.dir?["_rtl",""]:["","_rtl"],i=0;i<j.length;i++){b.hasClass(j[i]+l[0])&&(b.removeClass(j[i]+l[0]),b.addClass(j[i]+l[1]))}}j=b.getStyle("margin-right");l=b.getStyle("margin-left");j?b.setStyle("margin-left",j):b.removeStyle("margin-left");l?b.setStyle("margin-right",l):b.removeStyle("margin-right")}}}})}});CKEDITOR.plugins.indent={genericDefinition:function(b){this.isIndent=!!b;this.startDisabled=!this.isIndent},specificDefinition:function(h,g,i){this.name=g;this.editor=h;this.jobs={};this.enterBr=h.config.enterMode==CKEDITOR.ENTER_BR;this.isIndent=!!i;this.relatedGlobal=i?"indent":"outdent";this.indentKey=i?9:CKEDITOR.SHIFT+9;this.database={}},registerCommands:function(g,e){g.on("pluginsLoaded",function(){for(var b in e){(function(i,h){var k=i.getCommand(h.relatedGlobal),j;for(j in h.jobs){k.on("exec",function(a){a.data.done||(i.fire("lockSnapshot"),h.execJob(i,j)&&(a.data.done=!0),i.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(h.database))},this,null,j),k.on("refresh",function(a){a.data.states||(a.data.states={});a.data.states[h.name+"@"+j]=h.refreshJob(i,j,a.data.path)},this,null,j)}i.addFeature(h)})(this,e[b])}})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(g,e){var h=this.jobs[e];if(h.state!=f){return h.exec.call(this,g)}},refreshJob:function(g,e,h){e=this.jobs[e];e.state=g.activeFilter.checkFeature(this)?e.refresh.call(this,g,h):f;return e.state},getContext:function(b){return b.contains(this.context)}}}(),function(){function g(m,e,q){if(!m.getCustomData("indent_processed")){var p=this.editor,o=this.isIndent;if(e){p=m.$.className.match(this.classNameRegex);q=0;p&&(p=p[1],q=CKEDITOR.tools.indexOf(e,p)+1);if(0>(q+=o?1:-1)){return}q=Math.min(q,e.length);q=Math.max(q,0);m.$.className=CKEDITOR.tools.ltrim(m.$.className.replace(this.classNameRegex,""));0<q&&m.addClass(e[q-1])}else{e=i(m,q);q=parseInt(m.getStyle(e),10);var n=p.config.indentOffset||40;isNaN(q)&&(q=0);q+=(o?1:-1)*n;if(0>q){return}q=Math.max(q,0);q=Math.ceil(q/n)*n;m.setStyle(e,q?q+(p.config.indentUnit||"px"):"");""===m.getAttribute("style")&&m.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,m,"indent_processed",1)}}function i(d,c){return"ltr"==(c||d.getComputedStyle("direction"))?"margin-left":"margin-right"}var f=CKEDITOR.dtd.$listItem,l=CKEDITOR.dtd.$list,j=CKEDITOR.TRISTATE_DISABLED,h=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(b){function d(){c.specificDefinition.apply(this,arguments);this.allowedContent={"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:!0,styles:a?null:"margin-left,margin-right",classes:a||null}};this.enterBr&&(this.allowedContent.div=!0);this.requiredContent=(this.enterBr?"div":"p")+(a?"("+a.join(",")+")":"{margin-left}");this.jobs={20:{refresh:function(k,o){var n=o.block||o.blockLimit;if(!n.is(f)){var m=n.getAscendant(f),n=m&&o.contains(m)||n}n.is(f)&&(n=n.getParent());if(!this.enterBr&&!this.getContext(o)){return j}if(a){var m=a,n=n.$.className.match(this.classNameRegex),e=this.isIndent;return(m=n?e?n[1]!=m.slice(-1):!0:e)?h:j}return this.isIndent?h:n?CKEDITOR[0>=(parseInt(n.getStyle(i(n)),10)||0)?"TRISTATE_DISABLED":"TRISTATE_OFF"]:j},exec:function(e){var m=e.getSelection(),m=m&&m.getRanges()[0],k;if(k=e.elementPath().contains(l)){g.call(this,k,a)}else{for(m=m.createIterator(),e=e.config.enterMode,m.enforceRealBlocks=!0,m.enlargeBr=e!=CKEDITOR.ENTER_BR;k=m.getNextParagraph(e==CKEDITOR.ENTER_P?"p":"div");){k.isReadOnly()||g.call(this,k,a)}}return !0}}}}var c=CKEDITOR.plugins.indent,a=b.config.indentClasses;c.registerCommands(b,{indentblock:new d(b,"indentblock",!0),outdentblock:new d(b,"outdentblock")});CKEDITOR.tools.extend(d.prototype,c.specificDefinition.prototype,{context:{div:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,p:1,pre:1,table:1},classNameRegex:a?RegExp("(?:^|\\s+)("+a.join("|")+")(?=$|\\s)"):null})}})}(),function(){function h(u){function s(B){for(var z=w.startContainer,v=w.endContainer;z&&!z.getParent().equals(B);){z=z.getParent()}for(;v&&!v.getParent().equals(B);){v=v.getParent()}if(!z||!v){return !1}for(var E=z,z=[],d=!1;!d;){E.equals(v)&&(d=!0),z.push(E),E=E.getNext()}if(1>z.length){return !1}E=B.getParents(!0);for(v=0;v<E.length;v++){if(E[v].getName&&o[E[v].getName()]){B=E[v];break}}for(var E=r.isIndent?1:-1,v=z[0],z=z[z.length-1],d=CKEDITOR.plugins.list.listToArray(B,p),k=d[z.getCustomData("listarray_index")].indent,v=v.getCustomData("listarray_index");v<=z.getCustomData("listarray_index");v++){if(d[v].indent+=E,0<E){var D=d[v].parent;d[v].parent=new CKEDITOR.dom.element(D.getName(),D.getDocument())}}for(v=z.getCustomData("listarray_index")+1;v<d.length&&d[v].indent>k;v++){d[v].indent+=E}z=CKEDITOR.plugins.list.arrayToList(d,p,null,u.config.enterMode,B.getDirection());if(!r.isIndent){var a;if((a=B.getParent())&&a.is("li")){for(var E=z.listNode.getChildren(),F=[],c,v=E.count()-1;0<=v;v--){(c=E.getItem(v))&&c.is&&c.is("li")&&F.push(c)}}}z&&z.listNode.replace(B);if(F&&F.length){for(v=0;v<F.length;v++){for(c=B=F[v];(c=c.getNext())&&c.is&&c.getName() in o;){CKEDITOR.env.needsNbspFiller&&!B.getFirst(f)&&B.append(w.document.createText("\u00a0")),B.append(c)}B.insertAfter(a)}}z&&u.fire("contentDomInvalidated");return !0}for(var r=this,p=this.database,o=this.context,e=u.getSelection(),e=(e&&e.getRanges()).createIterator(),w;w=e.getNextRange();){for(var x=w.getCommonAncestor();x&&(x.type!=CKEDITOR.NODE_ELEMENT||!o[x.getName()]);){if(u.editable().equals(x)){x=!1;break}x=x.getParent()}x||(x=w.startPath().contains(o))&&w.setEndAt(x,CKEDITOR.POSITION_BEFORE_END);if(!x){var b=w.getEnclosedNode();b&&b.type==CKEDITOR.NODE_ELEMENT&&b.getName() in o&&(w.setStartAt(b,CKEDITOR.POSITION_AFTER_START),w.setEndAt(b,CKEDITOR.POSITION_BEFORE_END),x=b)}x&&w.startContainer.type==CKEDITOR.NODE_ELEMENT&&w.startContainer.getName() in o&&(b=new CKEDITOR.dom.walker(w),b.evaluator=j,w.startContainer=b.next());x&&w.endContainer.type==CKEDITOR.NODE_ELEMENT&&w.endContainer.getName() in o&&(b=new CKEDITOR.dom.walker(w),b.evaluator=j,w.endContainer=b.previous());if(x){return s(x)}}return 0}function j(b){return b.type==CKEDITOR.NODE_ELEMENT&&b.is("li")}function f(b){return n(b)&&m(b)}var n=CKEDITOR.dom.walker.whitespaces(!0),m=CKEDITOR.dom.walker.bookmark(!1,!0),i=CKEDITOR.TRISTATE_DISABLED,g=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(a){function k(c){e.specificDefinition.apply(this,arguments);this.requiredContent=["ul","ol"];c.on("key",function(b){if("wysiwyg"==c.mode&&b.data.keyCode==this.indentKey){var d=this.getContext(c.elementPath());!d||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,c.elementPath(),d)||(c.execCommand(this.relatedGlobal),b.cancel())}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(o,l){var q=this.getContext(l),p=CKEDITOR.plugins.indentList.firstItemInPath(this.context,l,q);return q&&this.isIndent&&!p?g:i}:function(l,d){return !this.getContext(d)||this.isIndent?i:g},exec:CKEDITOR.tools.bind(h,this)}}var e=CKEDITOR.plugins.indent;e.registerCommands(a,{indentlist:new k(a,"indentlist",!0),outdentlist:new k(a,"outdentlist")});CKEDITOR.tools.extend(k.prototype,e.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(k,e,o){var l=e.contains(j);o||(o=e.contains(k));return o&&l&&l.equals(o.getFirst(j))}}(),CKEDITOR.plugins.add("smiley",{requires:"dialog",init:function(b){b.config.smiley_path=b.config.smiley_path||this.path+"images/";b.addCommand("smiley",new CKEDITOR.dialogCommand("smiley",{allowedContent:"img[alt,height,!src,title,width]",requiredContent:"img"}));b.ui.addButton&&b.ui.addButton("Smiley",{label:b.lang.smiley.toolbar,command:"smiley",toolbar:"insert,50"});CKEDITOR.dialog.add("smiley",this.path+"dialogs/smiley.js")}}),CKEDITOR.config.smiley_images="regular_smile.png sad_smile.png wink_smile.png teeth_smile.png confused_smile.png tongue_smile.png embarrassed_smile.png omg_smile.png whatchutalkingabout_smile.png angry_smile.png angel_smile.png shades_smile.png devil_smile.png cry_smile.png lightbulb.png thumbs_down.png thumbs_up.png heart.png broken_heart.png kiss.png envelope.png".split(" "),CKEDITOR.config.smiley_descriptions="smiley;sad;wink;laugh;frown;cheeky;blush;surprise;indecision;angry;angel;cool;devil;crying;enlightened;no;yes;heart;broken heart;kiss;mail".split(";"),function(){function d(h,g){g=void 0===g||g;var i;if(g){i=h.getComputedStyle("text-align")}else{for(;!h.hasAttribute||!h.hasAttribute("align")&&!h.getStyle("text-align");){i=h.getParent();if(!i){break}h=i}i=h.getStyle("text-align")||h.getAttribute("align")||""}i&&(i=i.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!i&&g&&(i="rtl"==h.getComputedStyle("direction")?"right":"left");return i}function f(i,g,j){this.editor=i;this.name=g;this.value=j;this.context="p";g=i.config.justifyClasses;var h=i.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(g){switch(j){case"left":this.cssClassName=g[0];break;case"center":this.cssClassName=g[1];break;case"right":this.cssClassName=g[2];break;case"justify":this.cssClassName=g[3]}this.cssClassRegex=RegExp("(?:^|\\s+)(?:"+g.join("|")+")(?=$|\\s)");this.requiredContent=h+"("+this.cssClassName+")"}else{this.requiredContent=h+"{text-align}"}this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:!0,styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}};i.config.enterMode==CKEDITOR.ENTER_BR&&(this.allowedContent.div=!0)}function c(j){var g=j.editor,n=g.createRange();n.setStartBefore(j.data.node);n.setEndAfter(j.data.node);for(var i=new CKEDITOR.dom.walker(n),m;m=i.next();){if(m.type==CKEDITOR.NODE_ELEMENT){if(!m.equals(j.data.node)&&m.getDirection()){n.setStartAfter(m),i=new CKEDITOR.dom.walker(n)}else{var k=g.config.justifyClasses;k&&(m.hasClass(k[0])?(m.removeClass(k[0]),m.addClass(k[2])):m.hasClass(k[2])&&(m.removeClass(k[2]),m.addClass(k[0])));k=m.getStyle("text-align");"left"==k?m.setStyle("text-align","right"):"right"==k&&m.setStyle("text-align","left")}}}}f.prototype={exec:function(u){var r=u.getSelection(),q=u.config.enterMode;if(r){for(var j=r.createBookmarks(),o=r.getRanges(),k=this.cssClassName,i,n,a=u.config.useComputedState,a=void 0===a||a,y=o.length-1;0<=y;y--){for(i=o[y].createIterator(),i.enlargeBr=q!=CKEDITOR.ENTER_BR;n=i.getNextParagraph(q==CKEDITOR.ENTER_P?"p":"div");){if(!n.isReadOnly()){n.removeAttribute("align");n.removeStyle("text-align");var w=k&&(n.$.className=CKEDITOR.tools.ltrim(n.$.className.replace(this.cssClassRegex,""))),x=this.state==CKEDITOR.TRISTATE_OFF&&(!a||d(n,!0)!=this.value);k?x?n.addClass(k):w||n.removeAttribute("class"):x&&n.setStyle("text-align",this.value)}}}u.focus();u.forceNextSelectionCheck();r.selectBookmarks(j)}},refresh:function(a,h){var g=h.block||h.blockLimit;this.setState("body"!=g.getName()&&d(g,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("justify",{init:function(e){if(!e.blockless){var i=new f(e,"justifyleft","left"),g=new f(e,"justifycenter","center"),b=new f(e,"justifyright","right"),h=new f(e,"justifyblock","justify");e.addCommand("justifyleft",i);e.addCommand("justifycenter",g);e.addCommand("justifyright",b);e.addCommand("justifyblock",h);e.ui.addButton&&(e.ui.addButton("JustifyLeft",{label:e.lang.justify.left,command:"justifyleft",toolbar:"align,10"}),e.ui.addButton("JustifyCenter",{label:e.lang.justify.center,command:"justifycenter",toolbar:"align,20"}),e.ui.addButton("JustifyRight",{label:e.lang.justify.right,command:"justifyright",toolbar:"align,30"}),e.ui.addButton("JustifyBlock",{label:e.lang.justify.block,command:"justifyblock",toolbar:"align,40"}));e.on("dirChanged",c)}}})}(),CKEDITOR.plugins.add("menubutton",{requires:"button,menu",onLoad:function(){var b=function(e){var d=this._,f=d.menu;d.state!==CKEDITOR.TRISTATE_DISABLED&&(d.on&&f?f.hide():(d.previousState=d.state,f||(f=d.menu=new CKEDITOR.menu(e,{panel:{className:"cke_menu_panel",attributes:{"aria-label":e.lang.common.options}}}),f.onHide=CKEDITOR.tools.bind(function(){var a=this.command?e.getCommand(this.command).modes:this.modes;this.setState(!a||a[e.mode]?d.previousState:CKEDITOR.TRISTATE_DISABLED);d.on=0},this),this.onMenu&&f.addListener(this.onMenu)),this.setState(CKEDITOR.TRISTATE_ON),d.on=1,setTimeout(function(){f.show(CKEDITOR.document.getById(d.id),4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(a){delete a.panel;this.base(a);this.hasArrow=!0;this.click=b},statics:{handler:{create:function(c){return new CKEDITOR.ui.menuButton(c)}}}})},beforeInit:function(b){b.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}}),CKEDITOR.UI_MENUBUTTON="menubutton",function(){CKEDITOR.plugins.add("language",{requires:"menubutton",init:function(r){var n=r.config.language_list||["ar:Arabic:rtl","fr:French","es:Spanish"],q=this,p=r.lang.language,o={},i,g,m,j;r.addCommand("language",{allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",contextSensitive:!0,exec:function(e,d){var f=o["language_"+d];if(f){e[f.style.checkActive(e.elementPath(),e)?"removeStyle":"applyStyle"](f.style)}},refresh:function(b){this.setState(q.getCurrentLangElement(b)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}});for(j=0;j<n.length;j++){i=n[j].split(":"),g=i[0],m="language_"+g,o[m]={label:i[1],langId:g,group:"language",order:j,ltr:"rtl"!=(""+i[2]).toLowerCase(),onClick:function(){r.execCommand("language",this.langId)},role:"menuitemcheckbox"},o[m].style=new CKEDITOR.style({element:"span",attributes:{lang:g,dir:o[m].ltr?"ltr":"rtl"}})}o.language_remove={label:p.remove,group:"language_remove",state:CKEDITOR.TRISTATE_DISABLED,order:o.length,onClick:function(){var a=q.getCurrentLangElement(r);a&&r.execCommand("language",a.getAttribute("lang"))}};r.addMenuGroup("language",1);r.addMenuGroup("language_remove");r.addMenuItems(o);r.ui.add("Language",CKEDITOR.UI_MENUBUTTON,{label:p.button,allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",toolbar:"bidi,30",command:"language",onMenu:function(){var d={},b=q.getCurrentLangElement(r),a;for(a in o){d[a]=CKEDITOR.TRISTATE_OFF}d.language_remove=b?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;b&&(d["language_"+b.getAttribute("lang")]=CKEDITOR.TRISTATE_ON);return d}})},getCurrentLangElement:function(f){var g=f.elementPath();f=g&&g.elements;var d;if(g){for(var h=0;h<f.length;h++){g=f[h],!d&&"span"==g.getName()&&g.hasAttribute("dir")&&g.hasAttribute("lang")&&(d=g)}}return d}})}(),function(){function C(b){return b.replace(/'/g,"\\$&")}function y(g){for(var f,l=g.length,k=[],h=0;h<l;h++){f=g.charCodeAt(h),k.push(f)}return"String.fromCharCode("+k.join(",")+")"}function B(a,s){var q=a.plugins.link,p=q.compiledProtectionFunction.params,m,l;l=[q.compiledProtectionFunction.name,"("];for(var k=0;k<p.length;k++){q=p[k].toLowerCase(),m=s[q],0<k&&l.push(","),l.push("'",m?C(encodeURIComponent(s[q])):"","'")}l.push(")");return l.join("")}function A(d){d=d.config.emailProtection||"";var c;d&&"encode"!=d&&(c={},d.replace(/^([^(]+)\(([^)]+)\)$/,function(b,f,e){c.name=f;c.params=[];e.replace(/[^,\s]+/g,function(g){c.params.push(g)})}));return c}CKEDITOR.plugins.add("link",{requires:"dialog,fakeobjects",onLoad:function(){function e(a){return f.replace(/%1/g,"rtl"==a?"right":"left").replace(/%2/g,"cke_contents_"+a)}var d="background:url("+CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",f=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+d+"padding-%1:18px;cursor:auto;}.%2 img.cke_anchor{"+d+"width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}";CKEDITOR.addCss(e("ltr")+e("rtl"))},init:function(d){var c="a[!href]";CKEDITOR.dialog.isTabEnabled(d,"link","advanced")&&(c=c.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type]{*}(*)"));CKEDITOR.dialog.isTabEnabled(d,"link","target")&&(c=c.replace("]",",target,onclick]"));d.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:c,requiredContent:"a[href]"}));d.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"}));d.addCommand("unlink",new CKEDITOR.unlinkCommand);d.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand);d.setKeystroke(CKEDITOR.CTRL+76,"link");d.ui.addButton&&(d.ui.addButton("Link",{label:d.lang.link.toolbar,command:"link",toolbar:"links,10"}),d.ui.addButton("Unlink",{label:d.lang.link.unlink,command:"unlink",toolbar:"links,20"}),d.ui.addButton("Anchor",{label:d.lang.link.anchor.toolbar,command:"anchor",toolbar:"links,30"}));CKEDITOR.dialog.add("link",this.path+"dialogs/link.js");CKEDITOR.dialog.add("anchor",this.path+"dialogs/anchor.js");d.on("doubleclick",function(a){var e=CKEDITOR.plugins.link.getSelectedLink(d)||a.data.element;e.isReadOnly()||(e.is("a")?(a.data.dialog=!e.getAttribute("name")||e.getAttribute("href")&&e.getChildCount()?"link":"anchor",a.data.link=e):CKEDITOR.plugins.link.tryRestoreFakeAnchor(d,e)&&(a.data.dialog="anchor"))},null,null,0);d.on("doubleclick",function(a){a.data.dialog in {link:1,anchor:1}&&a.data.link&&d.getSelection().selectElement(a.data.link)},null,null,20);d.addMenuItems&&d.addMenuItems({anchor:{label:d.lang.link.anchor.menu,command:"anchor",group:"anchor",order:1},removeAnchor:{label:d.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:d.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:d.lang.link.unlink,command:"unlink",group:"link",order:5}});d.contextMenu&&d.contextMenu.addListener(function(a){if(!a||a.isReadOnly()){return null}a=CKEDITOR.plugins.link.tryRestoreFakeAnchor(d,a);if(!a&&!(a=CKEDITOR.plugins.link.getSelectedLink(d))){return null}var e={};a.getAttribute("href")&&a.getChildCount()&&(e={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF});a&&a.hasAttribute("name")&&(e.anchor=e.removeAnchor=CKEDITOR.TRISTATE_OFF);return e});this.compiledProtectionFunction=A(d)},afterInit:function(d){d.dataProcessor.dataFilter.addRules({elements:{a:function(a){return a.attributes.name?a.children.length?null:d.createFakeParserElement(a,"cke_anchor","anchor"):null}}});var c=d._.elementsPath&&d._.elementsPath.filters;c&&c.push(function(a,e){if("a"==e&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(d,a)||a.getAttribute("name")&&(!a.getAttribute("href")||!a.getChildCount()))){return"anchor"}})}});var z=/^javascript:/,r=/^mailto:([^?]+)(?:\?(.+))?$/,o=/subject=([^;?:@&=$,\/]*)/,x=/body=([^;?:@&=$,\/]*)/,u=/^#(.*)$/,n=/^((?:http|https|ftp|news):\/\/)?(.*)$/,w=/^(_(?:self|top|parent|blank))$/,j=/^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/,F=/^javascript:([^(]+)\(([^)]+)\)$/,D=/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/,E=/(?:^|,)([^=]+)=(\d+|yes|no)/gi,i={id:"advId",dir:"advLangDir",accessKey:"advAccessKey",name:"advName",lang:"advLangCode",tabindex:"advTabIndex",title:"advTitle",type:"advContentType","class":"advCSSClasses",charset:"advCharset",style:"advStyles",rel:"advRel"};CKEDITOR.plugins.link={getSelectedLink:function(e){var d=e.getSelection(),f=d.getSelectedElement();return f&&f.is("a")?f:(d=d.getRanges()[0])?(d.shrink(CKEDITOR.SHRINK_TEXT),e.elementPath(d.getCommonAncestor()).contains("a",1)):null},getEditorAnchors:function(h){for(var g=h.editable(),p=g.isInline()&&!h.plugins.divarea?h.document:g,g=p.getElementsByTag("a"),p=p.getElementsByTag("img"),m=[],l=0,k;k=g.getItem(l++);){(k.data("cke-saved-name")||k.hasAttribute("name"))&&m.push({name:k.data("cke-saved-name")||k.getAttribute("name"),id:k.getAttribute("id")})}for(l=0;k=p.getItem(l++);){(k=this.tryRestoreFakeAnchor(h,k))&&m.push({name:k.getAttribute("name"),id:k.getAttribute("id")})}return m},fakeAnchor:!0,tryRestoreFakeAnchor:function(e,d){if(d&&d.data("cke-real-element-type")&&"anchor"==d.data("cke-real-element-type")){var f=e.restoreRealElement(d);if(f.data("cke-saved-name")){return f}}},parseLinkAttributes:function(p,m){var k=m&&(m.data("cke-saved-href")||m.getAttribute("href"))||"",h=p.plugins.link.compiledProtectionFunction,q=p.config.emailProtection,g,l={};k.match(z)&&("encode"==q?k=k.replace(j,function(s,e,t){return"mailto:"+String.fromCharCode.apply(String,e.split(","))+(t&&t.replace(/\\'/g,"'"))}):q&&k.replace(F,function(s,e,I){if(e==h.name){l.type="email";s=l.email={};e=/(^')|('$)/g;I=I.match(/[^,\s]+/g);for(var H=I.length,G,v,t=0;t<H;t++){G=decodeURIComponent,v=I[t].replace(e,"").replace(/\\'/g,"'"),v=G(v),G=h.params[t].toLowerCase(),s[G]=v}s.address=[s.name,s.domain].join("@")}}));if(!l.type){if(q=k.match(u)){l.type="anchor",l.anchor={},l.anchor.name=l.anchor.id=q[1]}else{if(q=k.match(r)){g=k.match(o);k=k.match(x);l.type="email";var d=l.email={};d.address=q[1];g&&(d.subject=decodeURIComponent(g[1]));k&&(d.body=decodeURIComponent(k[1]))}else{k&&(g=k.match(n))&&(l.type="url",l.url={},l.url.protocol=g[1],l.url.url=g[2])}}}if(m){if(k=m.getAttribute("target")){l.target={type:k.match(w)?k:"frame",name:k}}else{if(k=(k=m.data("cke-pa-onclick")||m.getAttribute("onclick"))&&k.match(D)){for(l.target={type:"popup",name:k[1]};q=E.exec(k[2]);){"yes"!=q[2]&&"1"!=q[2]||q[1] in {height:1,width:1,top:1,left:1}?isFinite(q[2])&&(l.target[q[1]]=q[2]):l.target[q[1]]=!0}}}var k={},f;for(f in i){(q=m.getAttribute(f))&&(k[i[f]]=q)}if(f=m.data("cke-saved-name")||k.advName){k.advName=f}CKEDITOR.tools.isEmpty(k)||(l.advanced=k)}return l},getLinkAttributes:function(J,I){var H=J.config.emailProtection||"",G={};switch(I.type){case"url":var H=I.url&&void 0!==I.url.protocol?I.url.protocol:"http://",s=I.url&&CKEDITOR.tools.trim(I.url.url)||"";G["data-cke-saved-href"]=0===s.indexOf("/")?s:H+s;break;case"anchor":H=I.anchor&&I.anchor.id;G["data-cke-saved-href"]="#"+(I.anchor&&I.anchor.name||H||"");break;case"email":var q=I.email,s=q.address;switch(H){case"":case"encode":var e=encodeURIComponent(q.subject||""),b=encodeURIComponent(q.body||""),q=[];e&&q.push("subject="+e);b&&q.push("body="+b);q=q.length?"?"+q.join("&"):"";"encode"==H?(H=["javascript:void(location.href='mailto:'+",y(s)],q&&H.push("+'",C(q),"'"),H.push(")")):H=["mailto:",s,q];break;default:H=s.split("@",2),q.name=H[0],q.domain=H[1],H=["javascript:",B(J,q)]}G["data-cke-saved-href"]=H.join("")}if(I.target){if("popup"==I.target.type){for(var H=["window.open(this.href, '",I.target.name||"","', '"],L="resizable status location toolbar menubar fullscreen scrollbars dependent".split(" "),s=L.length,e=function(c){I.target[c]&&L.push(c+"="+I.target[c])},q=0;q<s;q++){L[q]+=I.target[L[q]]?"=yes":"=no"}e("width");e("left");e("height");e("top");H.push(L.join(","),"'); return false;");G["data-cke-pa-onclick"]=H.join("")}else{"notSet"!=I.target.type&&I.target.name&&(G.target=I.target.name)}}if(I.advanced){for(var a in i){(H=I.advanced[i[a]])&&(G[a]=H)}G.name&&(G["data-cke-saved-name"]=G.name)}G["data-cke-saved-href"]&&(G.href=G["data-cke-saved-href"]);a={target:1,onclick:1,"data-cke-pa-onclick":1,"data-cke-saved-name":1};I.advanced&&CKEDITOR.tools.extend(a,i);for(var K in G){delete a[K]}return{set:G,removed:CKEDITOR.tools.objectKeys(a)}}};CKEDITOR.unlinkCommand=function(){};CKEDITOR.unlinkCommand.prototype={exec:function(d){var c=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});d.removeStyle(c)},refresh:function(e,d){var f=d.lastElement&&d.lastElement.getAscendant("a",!0);f&&"a"==f.getName()&&f.getAttribute("href")&&f.getChildCount()?this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)},contextSensitive:1,startDisabled:1,requiredContent:"a[href]"};CKEDITOR.removeAnchorCommand=function(){};CKEDITOR.removeAnchorCommand.prototype={exec:function(f){var e=f.getSelection(),h=e.createBookmarks(),g;if(e&&(g=e.getSelectedElement())&&(g.getChildCount()?g.is("a"):CKEDITOR.plugins.link.tryRestoreFakeAnchor(f,g))){g.remove(1)}else{if(g=CKEDITOR.plugins.link.getSelectedLink(f)){g.hasAttribute("href")?(g.removeAttributes({name:1,"data-cke-saved-name":1}),g.removeClass("cke_anchor")):g.remove(1)}}e.selectBookmarks(h)},requiredContent:"a[name]"};CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0})}(),function(){function z(J,I,H){function G(a){if((s=v[a?"getFirst":"getLast"]())&&!(s.is&&s.isBlockBoundary()||!(p=I.root[a?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||p.is&&p.isBlockBoundary({br:1}))){J.document.createElement("br")[a?"insertBefore":"insertAfter"](s)}}for(var F=CKEDITOR.plugins.list.listToArray(I.root,H),E=[],D=0;D<I.contents.length;D++){var C=I.contents[D];(C=C.getAscendant("li",!0))&&!C.getCustomData("list_item_processed")&&(E.push(C),CKEDITOR.dom.element.setMarker(H,C,"list_item_processed",!0))}C=null;for(D=0;D<E.length;D++){C=E[D].getCustomData("listarray_index"),F[C].indent=-1}for(D=C+1;D<F.length;D++){if(F[D].indent>F[D-1].indent+1){E=F[D-1].indent+1-F[D].indent;for(C=F[D].indent;F[D]&&F[D].indent>=C;){F[D].indent+=E,D++}D--}}var v=CKEDITOR.plugins.list.arrayToList(F,H,null,J.config.enterMode,I.root.getAttribute("dir")).listNode,s,p;G(!0);G();v.replace(I.root);J.fire("contentDomInvalidated")}function u(d,c){this.name=d;this.context=this.type=c;this.allowedContent=c+" li";this.requiredContent=c}function y(h,g,p,m){for(var l,k;l=h[m?"getLast":"getFirst"](A);){(k=l.getDirection(1))!==g.getDirection(1)&&l.setAttribute("dir",k),l.remove(),p?l[m?"insertBefore":"insertAfter"](p):g.append(l,m)}}function x(b){function d(c){var a=b[c?"getPrevious":"getNext"](r);a&&a.type==CKEDITOR.NODE_ELEMENT&&a.is(b.getName())&&(y(b,a,null,!c),b.remove(),b=a)}d();d(1)}function w(b){return b.type==CKEDITOR.NODE_ELEMENT&&(b.getName() in CKEDITOR.dtd.$block||b.getName() in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[b.getName()]["#"]}function o(D,s,p){D.fire("saveSnapshot");p.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var l=p.extractContents();s.trim(!1,!0);var g=s.createBookmark(),c=new CKEDITOR.dom.elementPath(s.startContainer),b=c.block,c=c.lastElement.getAscendant("li",1)||b,E=new CKEDITOR.dom.elementPath(p.startContainer),C=E.contains(CKEDITOR.dtd.$listItem),E=E.contains(CKEDITOR.dtd.$list);b?(b=b.getBogus())&&b.remove():E&&(b=E.getPrevious(r))&&i(b)&&b.remove();(b=l.getLast())&&b.type==CKEDITOR.NODE_ELEMENT&&b.is("br")&&b.remove();(b=s.startContainer.getChild(s.startOffset))?l.insertBefore(b):s.startContainer.append(l);for(C&&(l=n(C))&&(c.contains(C)?(y(l,C.getParent(),C),l.remove()):c.append(l));p.checkStartOfBlock()&&p.checkEndOfBlock();){E=p.startPath();l=E.block;if(!l){break}l.is("li")&&(c=l.getParent(),l.equals(c.getLast(r))&&l.equals(c.getFirst(r))&&(l=c));p.moveToPosition(l,CKEDITOR.POSITION_BEFORE_START);l.remove()}p=p.clone();l=D.editable();p.setEndAt(l,CKEDITOR.POSITION_BEFORE_END);p=new CKEDITOR.dom.walker(p);p.evaluator=function(d){return r(d)&&!i(d)};(p=p.next())&&p.type==CKEDITOR.NODE_ELEMENT&&p.getName() in CKEDITOR.dtd.$list&&x(p);s.moveToBookmark(g);s.select();D.fire("saveSnapshot")}function n(b){return(b=b.getLast(r))&&b.type==CKEDITOR.NODE_ELEMENT&&b.getName() in t?b:null}var t={ol:1,ul:1},q=CKEDITOR.dom.walker.whitespaces(),j=CKEDITOR.dom.walker.bookmark(),r=function(b){return !(q(b)||j(b))},i=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(K,J,I,H,G){if(!t[K.getName()]){return[]}H||(H=0);I||(I=[]);for(var F=0,E=K.getChildCount();F<E;F++){var D=K.getChild(F);D.type==CKEDITOR.NODE_ELEMENT&&D.getName() in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(D,J,I,H+1);if("li"==D.$.nodeName.toLowerCase()){var C={parent:K,indent:H,element:D,contents:[]};G?C.grandparent=G:(C.grandparent=K.getParent(),C.grandparent&&"li"==C.grandparent.$.nodeName.toLowerCase()&&(C.grandparent=C.grandparent.getParent()));J&&CKEDITOR.dom.element.setMarker(J,D,"listarray_index",I.length);I.push(C);for(var s=0,f=D.getChildCount(),L;s<f;s++){L=D.getChild(s),L.type==CKEDITOR.NODE_ELEMENT&&t[L.getName()]?CKEDITOR.plugins.list.listToArray(L,J,I,H+1,C.grandparent):C.contents.push(L)}}}return I},arrayToList:function(ai,ah,ag,af,ae){ag||(ag=0);if(!ai||ai.length<ag+1){return null}for(var ad,ac=ai[ag].parent.getDocument(),ab=new CKEDITOR.dom.documentFragment(ac),aa=null,Z=ag,T=Math.max(ai[ag].indent,0),X=null,Y,V,S=af==CKEDITOR.ENTER_P?"p":"div";;){var U=ai[Z];ad=U.grandparent;Y=U.element.getDirection(1);if(U.indent==T){aa&&ai[Z].parent.getName()==aa.getName()||(aa=ai[Z].parent.clone(!1,1),ae&&aa.setAttribute("dir",ae),ab.append(aa));X=aa.append(U.element.clone(0,1));Y!=aa.getDirection(1)&&X.setAttribute("dir",Y);for(ad=0;ad<U.contents.length;ad++){X.append(U.contents[ad].clone(1,1))}Z++}else{if(U.indent==Math.max(T,0)+1){U=ai[Z-1].element.getDirection(1),Z=CKEDITOR.plugins.list.arrayToList(ai,null,Z,af,U!=Y?Y:null),!X.getChildCount()&&CKEDITOR.env.needsNbspFiller&&7>=ac.$.documentMode&&X.append(ac.createText("\u00a0")),X.append(Z.listNode),Z=Z.nextIndex}else{if(-1==U.indent&&!ag&&ad){t[ad.getName()]?(X=U.element.clone(!1,!0),Y!=ad.getDirection(1)&&X.setAttribute("dir",Y)):X=new CKEDITOR.dom.documentFragment(ac);var aa=ad.getDirection(1)!=Y,P=U.element,Q=P.getAttribute("class"),N=P.getAttribute("style"),m=X.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(af!=CKEDITOR.ENTER_BR||aa||N||Q),C,g=U.contents.length,I;for(ad=0;ad<g;ad++){if(C=U.contents[ad],j(C)&&1<g){m?I=C.clone(1,1):X.append(C.clone(1,1))}else{if(C.type==CKEDITOR.NODE_ELEMENT&&C.isBlockBoundary()){aa&&!C.getDirection()&&C.setAttribute("dir",Y);V=C;var f=P.getAttribute("style");f&&V.setAttribute("style",f.replace(/([^;])$/,"$1;")+(V.getAttribute("style")||""));Q&&C.addClass(Q);V=null;I&&(X.append(I),I=null);X.append(C.clone(1,1))}else{m?(V||(V=ac.createElement(S),X.append(V),aa&&V.setAttribute("dir",Y)),N&&V.setAttribute("style",N),Q&&V.setAttribute("class",Q),I&&(V.append(I),I=null),V.append(C.clone(1,1))):X.append(C.clone(1,1))}}}I&&((V||X).append(I),I=null);X.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT||Z==ai.length-1||(CKEDITOR.env.needsBrFiller&&(Y=X.getLast())&&Y.type==CKEDITOR.NODE_ELEMENT&&Y.is("br")&&Y.remove(),Y=X.getLast(r),Y&&Y.type==CKEDITOR.NODE_ELEMENT&&Y.is(CKEDITOR.dtd.$block)||X.append(ac.createElement("br")));Y=X.$.nodeName.toLowerCase();"div"!=Y&&"p"!=Y||X.appendBogus();ab.append(X);aa=null;Z++}else{return null}}}V=null;if(ai.length<=Z||Math.max(ai[Z].indent,0)<T){break}}if(ah){for(ai=ab.getFirst();ai;){if(ai.type==CKEDITOR.NODE_ELEMENT&&(CKEDITOR.dom.element.clearMarkers(ah,ai),ai.getName() in CKEDITOR.dtd.$listItem&&(ag=ai,ac=af=void 0,af=ag.getDirection()))){for(ae=ag.getParent();ae&&!(ac=ae.getDirection());){ae=ae.getParent()}af==ac&&ag.removeAttribute("dir")}ai=ai.getNextSourceNode()}}return{listNode:ab,nextIndex:Z}}};var B=/^h[1-6]$/,A=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);u.prototype={exec:function(O){this.refresh(O,O.elementPath());var N=O.config,M=O.getSelection(),L=M&&M.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var K=O.editable();if(K.getFirst(r)){var I=1==L.length&&L[0];(N=I&&I.getEnclosedNode())&&N.is&&this.type==N.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else{N.enterMode==CKEDITOR.ENTER_BR?K.appendBogus():L[0].fixBlock(1,N.enterMode==CKEDITOR.ENTER_P?"p":"div"),M.selectRanges(L)}}for(var N=M.createBookmarks(!0),K=[],H={},L=L.createIterator(),s=0;(I=L.getNextRange())&&++s;){var Q=I.getBoundaryNodes(),c=Q.startNode,g=Q.endNode;c.type==CKEDITOR.NODE_ELEMENT&&"td"==c.getName()&&I.setStartAt(Q.startNode,CKEDITOR.POSITION_AFTER_START);g.type==CKEDITOR.NODE_ELEMENT&&"td"==g.getName()&&I.setEndAt(Q.endNode,CKEDITOR.POSITION_BEFORE_END);I=I.createIterator();for(I.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;Q=I.getNextParagraph();){if(!Q.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(H,Q,"list_block",1);for(var f=O.elementPath(Q),c=f.elements,g=0,f=f.blockLimit,a,T=c.length-1;0<=T&&(a=c[T]);T--){if(t[a.getName()]&&f.contains(a)){f.removeCustomData("list_group_object_"+s);(c=a.getCustomData("list_group_object"))?c.contents.push(Q):(c={root:a,contents:[Q]},K.push(c),CKEDITOR.dom.element.setMarker(H,a,"list_group_object",c));g=1;break}}g||(g=f,g.getCustomData("list_group_object_"+s)?g.getCustomData("list_group_object_"+s).contents.push(Q):(c={root:g,contents:[Q]},CKEDITOR.dom.element.setMarker(H,g,"list_group_object_"+s,c),K.push(c)))}}}for(a=[];0<K.length;){if(c=K.shift(),this.state==CKEDITOR.TRISTATE_OFF){if(t[c.root.getName()]){L=O;s=c;c=H;I=a;g=CKEDITOR.plugins.list.listToArray(s.root,c);f=[];for(Q=0;Q<s.contents.length;Q++){if(T=s.contents[Q],(T=T.getAscendant("li",!0))&&!T.getCustomData("list_item_processed")){f.push(T),CKEDITOR.dom.element.setMarker(c,T,"list_item_processed",!0)}}for(var T=s.root.getDocument(),R=void 0,S=void 0,Q=0;Q<f.length;Q++){var P=f[Q].getCustomData("listarray_index"),R=g[P].parent;R.is(this.type)||(S=T.createElement(this.type),R.copyAttributes(S,{start:1,type:1}),S.removeStyle("list-style-type"),g[P].parent=S)}c=CKEDITOR.plugins.list.arrayToList(g,c,null,L.config.enterMode);g=void 0;f=c.listNode.getChildCount();for(Q=0;Q<f&&(g=c.listNode.getChild(Q));Q++){g.getName()==this.type&&I.push(g)}c.listNode.replace(s.root);L.fire("contentDomInvalidated")}else{g=O;Q=c;I=a;f=Q.contents;L=Q.root.getDocument();s=[];1==f.length&&f[0].equals(Q.root)&&(c=L.createElement("div"),f[0].moveChildren&&f[0].moveChildren(c),f[0].append(c),f[0]=c);Q=Q.contents[0].getParent();for(T=0;T<f.length;T++){Q=Q.getCommonAncestor(f[T].getParent())}R=g.config.useComputedState;g=c=void 0;R=void 0===R||R;for(T=0;T<f.length;T++){for(S=f[T];P=S.getParent();){if(P.equals(Q)){s.push(S);!g&&S.getDirection()&&(g=1);S=S.getDirection(R);null!==c&&(c=c&&c!=S?null:S);break}S=P}}if(!(1>s.length)){f=s[s.length-1].getNext();T=L.createElement(this.type);for(I.push(T);s.length;){I=s.shift(),R=L.createElement("li"),I.is("pre")||B.test(I.getName())||"false"==I.getAttribute("contenteditable")?I.appendTo(R):(I.copyAttributes(R),c&&I.getDirection()&&(R.removeStyle("direction"),R.removeAttribute("dir")),I.moveChildren(R),I.remove()),R.appendTo(T)}c&&g&&T.setAttribute("dir",c);f?T.insertBefore(f):T.appendTo(Q)}}}else{this.state==CKEDITOR.TRISTATE_ON&&t[c.root.getName()]&&z.call(this,O,c,H)}}for(T=0;T<a.length;T++){x(a[T])}CKEDITOR.dom.element.clearAllMarkers(H);M.selectBookmarks(N);O.focus()},refresh:function(f,e){var h=e.contains(t,1),g=e.blockLimit||e.root;h&&g.contains(h)?this.setState(h.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(b){b.blockless||(b.addCommand("numberedlist",new u("numberedlist","ol")),b.addCommand("bulletedlist",new u("bulletedlist","ul")),b.ui.addButton&&(b.ui.addButton("NumberedList",{label:b.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),b.ui.addButton("BulletedList",{label:b.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),b.on("key",function(C){var l=C.data.domEvent.getKey(),k;if("wysiwyg"==b.mode&&l in {8:1,46:1}){var g=b.getSelection().getRanges()[0],f=g&&g.startPath();if(g&&g.collapsed){var D=8==l,E=b.editable(),p=new CKEDITOR.dom.walker(g.clone());p.evaluator=function(c){return r(c)&&!i(c)};p.guard=function(e,c){return !(c&&e.type==CKEDITOR.NODE_ELEMENT&&e.is("table"))};l=g.clone();if(D){var a;(a=f.contains(t))&&g.checkBoundaryOfElement(a,CKEDITOR.START)&&(a=a.getParent())&&a.is("li")&&(a=n(a))?(k=a,a=a.getPrevious(r),l.moveToPosition(a&&i(a)?a:k,CKEDITOR.POSITION_BEFORE_START)):(p.range.setStartAt(E,CKEDITOR.POSITION_AFTER_START),p.range.setEnd(g.startContainer,g.startOffset),(a=p.previous())&&a.type==CKEDITOR.NODE_ELEMENT&&(a.getName() in t||a.is("li"))&&(a.is("li")||(p.range.selectNodeContents(a),p.reset(),p.evaluator=w,a=p.previous()),k=a,l.moveToElementEditEnd(k),l.moveToPosition(l.endPath().block,CKEDITOR.POSITION_BEFORE_END)));if(k){o(b,l,g),C.cancel()}else{var d=f.contains(t);d&&g.checkBoundaryOfElement(d,CKEDITOR.START)&&(k=d.getFirst(r),g.checkBoundaryOfElement(k,CKEDITOR.START)&&(a=d.getPrevious(r),n(k)?a&&(g.moveToElementEditEnd(a),g.select()):b.execCommand("outdent"),C.cancel()))}}else{if(k=f.contains("li")){if(p.range.setEndAt(E,CKEDITOR.POSITION_BEFORE_END),D=(E=k.getLast(r))&&w(E)?E:k,f=0,(a=p.next())&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName() in t&&a.equals(E)?(f=1,a=p.next()):g.checkBoundaryOfElement(D,CKEDITOR.END)&&(f=2),f&&a){g=g.clone();g.moveToElementEditStart(a);if(1==f&&(l.optimize(),!l.startContainer.equals(k))){for(k=l.startContainer;k.is(CKEDITOR.dtd.$inline);){d=k,k=k.getParent()}d&&l.moveToPosition(d,CKEDITOR.POSITION_AFTER_END)}2==f&&(l.moveToPosition(l.endPath().block,CKEDITOR.POSITION_BEFORE_END),g.endPath().block&&g.moveToPosition(g.endPath().block,CKEDITOR.POSITION_AFTER_START));o(b,l,g);C.cancel()}}else{p.range.setEndAt(E,CKEDITOR.POSITION_BEFORE_END),(a=p.next())&&a.type==CKEDITOR.NODE_ELEMENT&&a.is(t)&&(a=a.getFirst(r),f.block&&g.checkStartOfBlock()&&g.checkEndOfBlock()?(f.block.remove(),g.moveToElementEditStart(a),g.select()):n(a)?(g.moveToElementEditStart(a),g.select()):(g=g.clone(),g.moveToElementEditStart(a),o(b,l,g)),C.cancel())}}setTimeout(function(){b.selectionChange(1)})}}}))}})}(),function(){CKEDITOR.plugins.liststyle={requires:"dialog,contextmenu",init:function(b){if(!b.blockless){var c;c=new CKEDITOR.dialogCommand("numberedListStyle",{requiredContent:"ol",allowedContent:"ol{list-style-type}[start]"});c=b.addCommand("numberedListStyle",c);b.addFeature(c);CKEDITOR.dialog.add("numberedListStyle",this.path+"dialogs/liststyle.js");c=new CKEDITOR.dialogCommand("bulletedListStyle",{requiredContent:"ul",allowedContent:"ul{list-style-type}"});c=b.addCommand("bulletedListStyle",c);b.addFeature(c);CKEDITOR.dialog.add("bulletedListStyle",this.path+"dialogs/liststyle.js");b.addMenuGroup("list",108);b.addMenuItems({numberedlist:{label:b.lang.liststyle.numberedTitle,group:"list",command:"numberedListStyle"},bulletedlist:{label:b.lang.liststyle.bulletedTitle,group:"list",command:"bulletedListStyle"}});b.contextMenu.addListener(function(d){if(!d||d.isReadOnly()){return null}for(;d;){var e=d.getName();if("ol"==e){return{numberedlist:CKEDITOR.TRISTATE_OFF}}if("ul"==e){return{bulletedlist:CKEDITOR.TRISTATE_OFF}}d=d.getParent()}return null})}}};CKEDITOR.plugins.add("liststyle",CKEDITOR.plugins.liststyle)}(),function(){function aU(e,d,f){return aO(d)&&aO(f)&&f.equals(d.getNext(function(b){return !(X(b)||ab(b)||aI(b))}))}function aQ(b){this.upper=b[0];this.lower=b[1];this.set.apply(this,b.slice(2))}function aT(e){var d=e.element;if(d&&aO(d)&&(d=d.getAscendant(e.triggers,!0))&&e.editable.contains(d)){var f=aM(d);if("true"==f.getAttribute("contenteditable")){return d}if(f.is(e.triggers)){return f}}return null}function aS(e,d,f){ay(e,d);ay(e,f);e=d.size.bottom;f=f.size.top;return e&&f?0|(e+f)/2:e||f}function aR(e,d,f){return d=d[f?"getPrevious":"getNext"](function(a){return a&&a.type==CKEDITOR.NODE_TEXT&&!X(a)||aO(a)&&!aI(a)&&!aK(e,a)})}function aM(d,c){if(d.data("cke-editable")){return null}for(c||(d=d.getParent());d&&!d.data("cke-editable");){if(d.hasAttribute("contenteditable")){return d}d=d.getParent()}return null}function aL(f){var e=f.doc,h=at('<span contenteditable="false" style="'+ah+"position:absolute;border-top:1px dashed "+f.boxColor+'"></span>',e),g=CKEDITOR.getUrl(this.path+"images/"+(ar.hidpi?"hidpi/":"")+"icon"+(f.rtl?"-rtl":"")+".png");aG(h,{attach:function(){this.wrap.getParent()||this.wrap.appendTo(f.editable,!0);return this},lineChildren:[aG(at('<span title="'+f.editor.lang.magicline.title+'" contenteditable="false">↵</span>',e),{base:ah+"height:17px;width:17px;"+(f.rtl?"left":"right")+":17px;background:url("+g+") center no-repeat "+f.boxColor+";cursor:pointer;"+(ar.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(ar.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px; border-radius: 2px;","top:-17px; border-radius: 2px 2px 0px 0px;","top:-1px; border-radius: 0px 0px 2px 2px;"]}),aG(at(af,e),{base:am+"left:0px;border-left-color:"+f.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),aG(at(af,e),{base:am+"right:0px;border-right-color:"+f.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){this.wrap.getParent()&&this.wrap.remove();return this},mouseNear:function(){ay(f,this);var a=f.holdDistance,d=this.size;return d&&f.mouse.y>d.top-a&&f.mouse.y<d.bottom+a&&f.mouse.x>d.left-a&&f.mouse.x<d.right+a?!0:!1},place:function(){var u=f.view,t=f.editable,s=f.trigger,r=s.upper,q=s.lower,p=r||q,n=p.getParent(),m={};this.trigger=s;r&&ay(f,r,!0);q&&ay(f,q,!0);ay(f,n,!0);f.inInlineMode&&aA(f,!0);n.equals(t)?(m.left=u.scroll.x,m.right=-u.scroll.x,m.width=""):(m.left=p.size.left-p.size.margin.left+u.scroll.x-(f.inInlineMode?u.editable.left+u.editable.border.left:0),m.width=p.size.outerWidth+p.size.margin.left+p.size.margin.right+u.scroll.x,m.right="");r&&q?m.top=r.size.margin.bottom===q.size.margin.top?0|r.size.bottom+r.size.margin.bottom/2:r.size.margin.bottom<q.size.margin.top?r.size.bottom+r.size.margin.bottom:r.size.bottom+r.size.margin.bottom-q.size.margin.top:r?q||(m.top=r.size.bottom+r.size.margin.bottom):m.top=q.size.top-q.size.margin.top;s.is(ai)||m.top>u.scroll.y-15&&m.top<u.scroll.y+5?(m.top=f.inInlineMode?0:u.scroll.y,this.look(ai)):s.is(ad)||m.top>u.pane.bottom-5&&m.top<u.pane.bottom+15?(m.top=f.inInlineMode?u.editable.height+u.editable.padding.top+u.editable.padding.bottom:u.pane.bottom-1,this.look(ad)):(f.inInlineMode&&(m.top-=u.editable.top+u.editable.border.top),this.look(aj));f.inInlineMode&&(m.top--,m.top+=u.editable.scroll.top,m.left+=u.editable.scroll.left);for(var a in m){m[a]=CKEDITOR.tools.cssLength(m[a])}this.setStyles(m)},look:function(k){if(this.oldLook!=k){for(var d=this.lineChildren.length,l;d--;){(l=this.lineChildren[d]).setAttribute("style",l.base+l.looks[0|k/2])}this.oldLook=k}},wrap:new au("span",f.doc)});for(e=h.lineChildren.length;e--;){h.lineChildren[e].appendTo(h)}h.look(aj);h.appendTo(h.wrap);h.unselectable();h.lineChildren[0].on("mouseup",function(a){h.detach();aP(f,function(d){var k=f.line.trigger;d[k.is(al)?"insertBefore":"insertAfter"](k.is(al)?k.lower:k.upper)},!0);f.editor.focus();!ar.ie&&f.enterMode!=CKEDITOR.ENTER_BR&&f.hotNode.scrollIntoView();a.data.preventDefault(!0)});h.on("mousedown",function(b){b.data.preventDefault(!0)});f.line=h}function aP(h,g,n){var m=new CKEDITOR.dom.range(h.doc),l=h.editor,k;ar.ie&&h.enterMode==CKEDITOR.ENTER_BR?k=h.doc.createText(o):(k=(k=aM(h.element,!0))&&k.data("cke-enter-mode")||h.enterMode,k=new au(ap[k],h.doc),k.is("br")||h.doc.createText(o).appendTo(k));n&&l.fire("saveSnapshot");g(k);m.moveToPosition(k,CKEDITOR.POSITION_AFTER_START);l.getSelection().selectRanges([m]);h.hotNode=k;n&&l.fire("saveSnapshot")}function aN(b,d){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function a(c){var f=ar.ie&&9>ar.version?" ":o,e=b.hotNode&&b.hotNode.getText()==f&&b.element.equals(b.hotNode)&&b.lastCmdDirection===!!d;aP(b,function(g){e&&b.hotNode&&b.hotNode.remove();g[d?"insertAfter":"insertBefore"](c);g.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!d});b.lastCmdDirection=!!d});!ar.ie&&b.enterMode!=CKEDITOR.ENTER_BR&&b.hotNode.scrollIntoView();b.line.detach()}return function(g){g=g.getSelection().getStartElement();var e;g=g.getAscendant(ac,1);if(!aE(b,g)&&g&&!g.equals(b.editable)&&!g.contains(b.editable)){(e=aM(g))&&"false"==e.getAttribute("contenteditable")&&(g=e);b.element=g;e=aR(b,g,!d);var c;aO(e)&&e.is(b.triggers)&&e.is(i)&&(!aR(b,e,!d)||(c=aR(b,e,!d))&&aO(c)&&c.is(b.triggers))?a(e):(c=aT(b,g),aO(c)&&(aR(b,c,!d)?(g=aR(b,c,!d))&&aO(g)&&g.is(b.triggers)&&a(c):a(c)))}}}()}}function aK(e,d){if(!d||d.type!=CKEDITOR.NODE_ELEMENT||!d.$){return !1}var f=e.line;return f.wrap.equals(d)||f.wrap.contains(d)}function aO(b){return b&&b.type==CKEDITOR.NODE_ELEMENT&&b.$}function aI(d){if(!aO(d)){return !1}var c;(c=aF(d))||(aO(d)?(c={left:1,right:1,center:1},c=!(!c[d.getComputedStyle("float")]&&!c[d.getAttribute("align")])):c=!1);return c}function aF(b){return !!{absolute:1,fixed:1}[b.getComputedStyle("position")]}function aC(d,c){return aO(c)?c.is(d.triggers):null}function aE(g,f){if(!f){return !1}for(var l=f.getParents(1),k=l.length;k--;){for(var h=g.tabuList.length;h--;){if(l[k].hasAttribute(g.tabuList[h])){return !0}}}return !1}function aH(e,d,f){d=d[f?"getLast":"getFirst"](function(a){return e.isRelevant(a)&&!a.is(j)});if(!d){return !1}ay(e,d);return f?d.size.top>e.mouse.y:d.size.bottom<e.mouse.y}function aJ(g){var e=g.editable,n=g.mouse,m=g.view,l=g.triggerOffset;aA(g);var k=n.y>(g.inInlineMode?m.editable.top+m.editable.height/2:Math.min(m.editable.height,m.pane.height)/2),e=e[k?"getLast":"getFirst"](function(b){return !(X(b)||ab(b))});if(!e){return null}aK(g,e)&&(e=g.line.wrap[k?"getPrevious":"getNext"](function(b){return !(X(b)||ab(b))}));if(!aO(e)||aI(e)||!aC(g,e)){return null}ay(g,e);return !k&&0<=e.size.top&&0<n.y&&n.y<e.size.top+l?(g=g.inInlineMode||0===m.scroll.y?ai:aj,new aQ([null,e,al,ag,g])):k&&e.size.bottom<=m.pane.height&&n.y>e.size.bottom-l&&n.y<m.pane.height?(g=g.inInlineMode||e.size.bottom>m.pane.height-l&&e.size.bottom<m.pane.height?ad:aj,new aQ([e,null,an,ag,g])):null}function aD(s){var r=s.mouse,q=s.view,p=s.triggerOffset,g=aT(s);if(!g){return null}ay(s,g);var p=Math.min(p,0|g.size.outerHeight/2),e=[],d,b;if(r.y>g.size.top-1&&r.y<g.size.top+p){b=!1}else{if(r.y>g.size.bottom-p&&r.y<g.size.bottom+1){b=!0}else{return null}}if(aI(g)||aH(s,g,b)||g.getParent().is(aw)){return null}var t=aR(s,g,!b);if(t){if(t&&t.type==CKEDITOR.NODE_TEXT){return null}if(aO(t)){if(aI(t)||!aC(s,t)||t.getParent().is(aw)){return null}e=[t,g][b?"reverse":"concat"]().concat([ak,ag])}}else{g.equals(s.editable[b?"getLast":"getFirst"](s.isRelevant))?(aA(s),b&&r.y>g.size.bottom-p&&r.y<q.pane.height&&g.size.bottom>q.pane.height-p&&g.size.bottom<q.pane.height?d=ad:0<r.y&&r.y<g.size.top+p&&(d=ai)):d=aj,e=[null,g][b?"reverse":"concat"]().concat([b?an:al,ag,d,g.equals(s.editable[b?"getLast":"getFirst"](s.isRelevant))?b?ad:ai:aj])}return 0 in e?new aQ(e):null}function aB(w,v,u,t){for(var s=v.getDocumentPosition(),r={},q={},p={},n={},m=Y.length;m--;){r[Y[m]]=parseInt(v.getComputedStyle.call(v,"border-"+Y[m]+"-width"),10)||0,p[Y[m]]=parseInt(v.getComputedStyle.call(v,"padding-"+Y[m]),10)||0,q[Y[m]]=parseInt(v.getComputedStyle.call(v,"margin-"+Y[m]),10)||0}u&&!t||av(w,t);n.top=s.y-(u?0:w.view.scroll.y);n.left=s.x-(u?0:w.view.scroll.x);n.outerWidth=v.$.offsetWidth;n.outerHeight=v.$.offsetHeight;n.height=n.outerHeight-(p.top+p.bottom+r.top+r.bottom);n.width=n.outerWidth-(p.left+p.right+r.left+r.right);n.bottom=n.top+n.outerHeight;n.right=n.left+n.outerWidth;w.inInlineMode&&(n.scroll={top:v.$.scrollTop,left:v.$.scrollLeft});return aG({border:r,padding:p,margin:q,ignoreScroll:u},n,!0)}function ay(e,d,f){if(!aO(d)){return d.size=null}if(d.size){if(d.size.ignoreScroll==f&&d.size.date>new Date-ax){return null}}else{d.size={}}return aG(d.size,aB(e,d,f),{date:+new Date},!0)}function aA(d,c){d.view.editable=aB(d,d.editable,c,!0)}function av(f,e){f.view||(f.view={});var h=f.view;if(e||!(h&&h.date>new Date-ax)){var g=f.win,h=g.getScrollPosition(),g=g.getViewPaneSize();aG(f.view,{scroll:{x:h.x,y:h.y,width:f.doc.$.documentElement.scrollWidth-g.width,height:f.doc.$.documentElement.scrollHeight-g.height},pane:{width:g.width,height:g.height,bottom:g.height+h.y},date:+new Date},!0)}}function az(y,x,w,v){for(var u=v,t=v,s=0,r=!1,q=!1,p=y.view.pane.height,e=y.mouse;e.y+s<p&&0<e.y-s;){r||(r=x(u,v));q||(q=x(t,v));!r&&0<e.y-s&&(u=w(y,{x:e.x,y:e.y-s}));!q&&e.y+s<p&&(t=w(y,{x:e.x,y:e.y+s}));if(r&&q){break}s+=2}return new aQ([u,t,null,null])}CKEDITOR.plugins.add("magicline",{init:function(b){var l=b.config,e=l.magicline_triggerOffset||30,f={editor:b,enterMode:l.enterMode,triggerOffset:e,holdDistance:0|e*(l.magicline_holdDistance||0.5),boxColor:l.magicline_color||"#ff0000",rtl:"rtl"==l.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(l.magicline_tabuList||[]),triggers:l.magicline_everywhere?ac:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},d,g,h;f.isRelevant=function(c){return aO(c)&&!aK(f,c)&&!aI(c)};b.on("contentDom",function(){var c=b.editable(),a=b.document,m=b.window;aG(f,{editable:c,inInlineMode:c.isInline(),doc:a,win:m,hotNode:null},!0);f.boundary=f.inInlineMode?f.editable:f.doc.getDocumentElement();c.is(ao.$inline)||(f.inInlineMode&&!aF(c)&&c.setStyles({position:"relative",top:null,left:null}),aL.call(this,f),av(f),c.attachListener(b,"beforeUndoImage",function(){f.line.detach()}),c.attachListener(b,"beforeGetData",function(){f.line.wrap.getParent()&&(f.line.detach(),b.once("getData",function(){f.line.attach()},null,null,1000))},null,null,0),c.attachListener(f.inInlineMode?a:a.getWindow().getFrame(),"mouseout",function(k){if("wysiwyg"==b.mode){if(f.inInlineMode){var q=k.data.$.clientX;k=k.data.$.clientY;av(f);aA(f,!0);var p=f.view.editable,n=f.view.scroll;q>p.left-n.x&&q<p.right-n.x&&k>p.top-n.y&&k<p.bottom-n.y||(clearTimeout(h),h=null,f.line.detach())}else{clearTimeout(h),h=null,f.line.detach()}}}),c.attachListener(c,"keyup",function(){f.hiddenMode=0}),c.attachListener(c,"keydown",function(k){if("wysiwyg"==b.mode){switch(k.data.getKeystroke()){case 2228240:case 16:f.hiddenMode=1,f.line.detach()}}}),c.attachListener(f.inInlineMode?c:a,"mousemove",function(k){g=!0;if("wysiwyg"==b.mode&&!b.readOnly&&!h){var n={x:k.data.$.clientX,y:k.data.$.clientY};h=setTimeout(function(){f.mouse=n;h=f.trigger=null;av(f);g&&!f.hiddenMode&&b.focusManager.hasFocus&&!f.line.mouseNear()&&(f.element=ae(f,!0))&&((f.trigger=aJ(f)||aD(f)||aV(f))&&!aE(f,f.trigger.upper||f.trigger.lower)?f.line.attach().place():(f.trigger=null,f.line.detach()),g=!1)},30)}}),c.attachListener(m,"scroll",function(){"wysiwyg"==b.mode&&(f.line.detach(),ar.webkit&&(f.hiddenMode=1,clearTimeout(d),d=setTimeout(function(){f.mouseDown||(f.hiddenMode=0)},50)))}),c.attachListener(aq?a:m,"mousedown",function(){"wysiwyg"==b.mode&&(f.line.detach(),f.hiddenMode=1,f.mouseDown=1)}),c.attachListener(aq?a:m,"mouseup",function(){f.hiddenMode=0;f.mouseDown=0}),b.addCommand("accessPreviousSpace",aN(f)),b.addCommand("accessNextSpace",aN(f,!0)),b.setKeystroke([[l.magicline_keystrokePrevious,"accessPreviousSpace"],[l.magicline_keystrokeNext,"accessNextSpace"]]),b.on("loadSnapshot",function(){var k,q,p,n;for(n in {p:1,br:1,div:1}){for(k=b.document.getElementsByTag(n),p=k.count();p--;){if((q=k.getItem(p)).data("cke-magicline-hot")){f.hotNode=q;f.lastCmdDirection="true"===q.data("cke-magicline-dir")?!0:!1;return}}}}),this.backdoor={accessFocusSpace:aP,boxTrigger:aQ,isLine:aK,getAscendantTrigger:aT,getNonEmptyNeighbour:aR,getSize:aB,that:f,triggerEdge:aD,triggerEditable:aJ,triggerExpand:aV})},this)}});var aG=CKEDITOR.tools.extend,au=CKEDITOR.dom.element,at=au.createFromHtml,ar=CKEDITOR.env,aq=CKEDITOR.env.ie&&9>CKEDITOR.env.version,ao=CKEDITOR.dtd,ap={},al=128,an=64,ak=32,ag=16,ai=4,ad=2,aj=1,o="\u00a0",aw=ao.$listItem,j=ao.$tableContent,i=aG({},ao.$nonEditable,ao.$empty),ac=ao.$block,ax=100,ah="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",am=ah+"border-color:transparent;display:block;border-style:solid;",af="<span>"+o+"</span>";ap[CKEDITOR.ENTER_BR]="br";ap[CKEDITOR.ENTER_P]="p";ap[CKEDITOR.ENTER_DIV]="div";aQ.prototype={set:function(e,d,f){this.properties=e+d+(f||aj);return this},is:function(b){return(this.properties&b)==b}};var ae=function(){function b(a,f){var e=a.$.elementFromPoint(f.x,f.y);return e&&e.nodeType?new CKEDITOR.dom.element(e):null}return function(a,n,m){if(!a.mouse){return null}var l=a.doc,k=a.line.wrap;m=m||a.mouse;var h=b(l,m);n&&aK(a,h)&&(k.hide(),h=b(l,m),k.show());return !h||h.type!=CKEDITOR.NODE_ELEMENT||!h.$||ar.ie&&9>ar.version&&!a.boundary.equals(h)&&!a.boundary.contains(h)?null:h}}(),X=CKEDITOR.dom.walker.whitespaces(),ab=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),aV=function(){function a(v){var t=v.element,s,r,p;if(!aO(t)||t.contains(v.editable)||t.isReadOnly()){return null}p=az(v,function(f,e){return !e.equals(f)},function(f,e){return ae(f,!0,e)},t);s=p.upper;r=p.lower;if(aU(v,s,r)){return p.set(ak,8)}if(s&&t.contains(s)){for(;!s.getParent().equals(t);){s=s.getParent()}}else{s=t.getFirst(function(e){return c(v,e)})}if(r&&t.contains(r)){for(;!r.getParent().equals(t);){r=r.getParent()}}else{r=t.getLast(function(e){return c(v,e)})}if(!s||!r){return null}ay(v,s);ay(v,r);if(!(v.mouse.y>s.size.top&&v.mouse.y<r.size.bottom)){return null}for(var t=Number.MAX_VALUE,g,d,b,w;r&&!r.equals(s)&&(d=s.getNext(v.isRelevant));){g=Math.abs(aS(v,s,d)-v.mouse.y),g<t&&(t=g,b=s,w=d),s=d,ay(v,s)}if(!(b&&w&&v.mouse.y>b.size.top&&v.mouse.y<w.size.bottom)){return null}p.upper=b;p.lower=w;return p.set(ak,8)}function c(e,d){return !(d&&d.type==CKEDITOR.NODE_TEXT||ab(d)||aI(d)||aK(e,d)||d.type==CKEDITOR.NODE_ELEMENT&&d.$&&d.is("br"))}return function(k){var h=a(k),g;if(g=h){g=h.upper;var b=h.lower;g=!g||!b||aI(b)||aI(g)||b.equals(g)||g.equals(b)||b.contains(g)||g.contains(b)?!1:aC(k,g)&&aC(k,b)&&aU(k,g,b)?!0:!1}return g?h:null}}(),Y=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function g(l){if(!l||l.type!=CKEDITOR.NODE_ELEMENT||"form"!=l.getName()){return[]}for(var k=[],o=["style","className"],n=0;n<o.length;n++){var m=l.$.elements.namedItem(o[n]);m&&(m=new CKEDITOR.dom.element(m),k.push([m,m.nextSibling]),m.remove())}return k}function h(l,k){if(l&&l.type==CKEDITOR.NODE_ELEMENT&&"form"==l.getName()&&0<k.length){for(var o=k.length-1;0<=o;o--){var n=k[o][0],m=k[o][1];m?n.insertBefore(m):n.appendTo(l)}}}function f(e,n){var l=g(e),k={},a=e.$;n||(k["class"]=a.className||"",a.className="");k.inline=a.style.cssText||"";n||(a.style.cssText="position: static; overflow: visible");h(l);return k}function j(a,l){var k=g(a),e=a.$;"class" in l&&(e.className=l["class"]);"inline" in l&&(e.style.cssText=l.inline);h(k)}function i(k){if(!k.editable().isInline()){var e=CKEDITOR.instances,m;for(m in e){var l=e[m];"wysiwyg"==l.mode&&!l.readOnly&&(l=l.document.getBody(),l.setAttribute("contentEditable",!1),l.setAttribute("contentEditable",!0))}k.editable().hasFocus&&(k.toolbox.focus(),k.focus())}}CKEDITOR.plugins.add("maximize",{init:function(o){function n(){var a=c.getViewPaneSize();o.resize(a.width,a.height,null,!0)}if(o.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var l=o.lang,d=CKEDITOR.document,c=d.getWindow(),k,b,r,q=CKEDITOR.TRISTATE_OFF;o.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var m=o.container.getFirst(function(t){return t.type==CKEDITOR.NODE_ELEMENT&&t.hasClass("cke_inner")}),p=o.ui.space("contents");if("wysiwyg"==o.mode){var s=o.getSelection();k=s&&s.getRanges();b=c.getScrollPosition()}else{var e=o.editable().$;k=!CKEDITOR.env.ie&&[e.selectionStart,e.selectionEnd];b=[e.scrollLeft,e.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){c.on("resize",n);r=c.getScrollPosition();for(s=o.container;s=s.getParent();){s.setCustomData("maximize_saved_styles",f(s)),s.setStyle("z-index",o.config.baseFloatZIndex-5)}p.setCustomData("maximize_saved_styles",f(p,!0));m.setCustomData("maximize_saved_styles",f(m,!0));p={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};d.getDocumentElement().setStyles(p);!CKEDITOR.env.gecko&&d.getDocumentElement().setStyle("position","fixed");CKEDITOR.env.gecko&&CKEDITOR.env.quirks||d.getBody().setStyles(p);CKEDITOR.env.ie?setTimeout(function(){c.$.scrollTo(0,0)},0):c.$.scrollTo(0,0);m.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");m.$.offsetLeft;m.setStyles({"z-index":o.config.baseFloatZIndex-5,left:"0px",top:"0px"});m.addClass("cke_maximized");n();p=m.getDocumentPosition();m.setStyles({left:-1*p.x+"px",top:-1*p.y+"px"});CKEDITOR.env.gecko&&i(o)}else{if(this.state==CKEDITOR.TRISTATE_ON){c.removeListener("resize",n);for(var s=[p,m],a=0;a<s.length;a++){j(s[a],s[a].getCustomData("maximize_saved_styles")),s[a].removeCustomData("maximize_saved_styles")}for(s=o.container;s=s.getParent();){j(s,s.getCustomData("maximize_saved_styles")),s.removeCustomData("maximize_saved_styles")}CKEDITOR.env.ie?setTimeout(function(){c.$.scrollTo(r.x,r.y)},0):c.$.scrollTo(r.x,r.y);m.removeClass("cke_maximized");CKEDITOR.env.webkit&&(m.setStyle("display","inline"),setTimeout(function(){m.setStyle("display","block")},0));o.fire("resize",{outerHeight:o.container.$.offsetHeight,contentsHeight:p.$.offsetHeight,outerWidth:o.container.$.offsetWidth})}}this.toggleState();if(s=this.uiItems[0]){p=this.state==CKEDITOR.TRISTATE_OFF?l.maximize.maximize:l.maximize.minimize,s=CKEDITOR.document.getById(s._.id),s.getChild(1).setHtml(p),s.setAttribute("title",p),s.setAttribute("href",'javascript:void("'+p+'");')}"wysiwyg"==o.mode?k?(CKEDITOR.env.gecko&&i(o),o.getSelection().selectRanges(k),(e=o.getSelection().getStartElement())&&e.scrollIntoView(!0)):c.$.scrollTo(b.x,b.y):(k&&(e.selectionStart=k[0],e.selectionEnd=k[1]),e.scrollLeft=b[0],e.scrollTop=b[1]);k=b=null;q=this.state;o.fire("maximize",this.state)},canUndo:!1});o.ui.addButton&&o.ui.addButton("Maximize",{label:l.maximize.maximize,command:"maximize",toolbar:"tools,10"});o.on("mode",function(){var a=o.getCommand("maximize");a.setState(a.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:q)},null,null,100)}}})}(),CKEDITOR.plugins.add("newpage",{init:function(b){b.addCommand("newpage",{modes:{wysiwyg:1,source:1},exec:function(d){var c=this;d.setData(d.config.newpage_html||"",function(){d.focus();setTimeout(function(){d.fire("afterCommandExec",{name:"newpage",command:c});d.selectionChange()},200)})},async:!0});b.ui.addButton&&b.ui.addButton("NewPage",{label:b.lang.newpage.toolbar,command:"newpage",toolbar:"document,20"})}}),function(){function b(c){return{"aria-label":c,"class":"cke_pagebreak",contenteditable:"false","data-cke-display-name":"pagebreak","data-cke-pagebreak":1,style:"page-break-after: always",title:c}}CKEDITOR.plugins.add("pagebreak",{requires:"fakeobjects",onLoad:function(){var c=("background:url("+CKEDITOR.getUrl(this.path+"images/pagebreak.gif")+") no-repeat center center;clear:both;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;padding:0;height:5px;cursor:default;").replace(/;/g," !important;");CKEDITOR.addCss("div.cke_pagebreak{"+c+"}")},init:function(c){c.blockless||(c.addCommand("pagebreak",CKEDITOR.plugins.pagebreakCmd),c.ui.addButton&&c.ui.addButton("PageBreak",{label:c.lang.pagebreak.toolbar,command:"pagebreak",toolbar:"insert,70"}),CKEDITOR.env.webkit&&c.on("contentDom",function(){c.document.on("click",function(a){a=a.data.getTarget();a.is("div")&&a.hasClass("cke_pagebreak")&&c.getSelection().selectElement(a)})}))},afterInit:function(h){function a(c){CKEDITOR.tools.extend(c.attributes,b(h.lang.pagebreak.alt),!0);c.children.length=0}var j=h.dataProcessor,i=j&&j.dataFilter,j=j&&j.htmlFilter,g=/page-break-after\s*:\s*always/i,f=/display\s*:\s*none/i;j&&j.addRules({attributes:{"class":function(k,e){var m=k.replace("cke_pagebreak","");if(m!=k){var l=CKEDITOR.htmlParser.fragment.fromHtml('<span style="display: none;"> </span>').children[0];e.children.length=0;e.add(l);l=e.attributes;delete l["aria-label"];delete l.contenteditable;delete l.title}return m}}},{applyToAll:!0,priority:5});i&&i.addRules({elements:{div:function(d){if(d.attributes["data-cke-pagebreak"]){a(d)}else{if(g.test(d.attributes.style)){var e=d.children[0];e&&"span"==e.name&&f.test(e.attributes.style)&&a(d)}}}}})}});CKEDITOR.plugins.pagebreakCmd={exec:function(c){var a=c.document.createElement("div",{attributes:b(c.lang.pagebreak.alt)});c.insertElement(a)},context:"div",allowedContent:{div:{styles:"!page-break-after"},span:{match:function(c){return(c=c.parent)&&"div"==c.name&&c.styles&&c.styles["page-break-after"]},styles:"display"}},requiredContent:"div{page-break-after}"}}(),function(){var b={canUndo:!1,async:!0,exec:function(a){a.getClipboardData({title:a.lang.pastetext.title},function(c){c&&a.fire("paste",{type:"text",dataValue:c.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()});a.fire("afterCommandExec",{name:"pastetext",command:b,returnValue:!!c})})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(a){a.addCommand("pastetext",b);a.ui.addButton&&a.ui.addButton("PasteText",{label:a.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(a.config.forcePasteAsPlainText){a.on("beforePaste",function(c){"html"!=c.data.type&&(c.data.type="text")})}a.on("pasteState",function(c){a.getCommand("pastetext").setState(c.data)})}})}(),function(){function b(f,i,h){var g=CKEDITOR.cleanWord;g?h():(f=CKEDITOR.getUrl(f.config.pasteFromWordCleanupFile||i+"filter/default.js"),CKEDITOR.scriptLoader.load(f,h,null,!0));return !g}function c(d){d.data.type="html"}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(a){var f=0,e=this.path;a.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(g){var d=this;f=1;g.once("beforePaste",c);g.getClipboardData({title:g.lang.pastefromword.title},function(h){h&&g.fire("paste",{type:"html",dataValue:h.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()});g.fire("afterCommandExec",{name:"pastefromword",command:d,returnValue:!!h})})}});a.ui.addButton&&a.ui.addButton("PasteFromWord",{label:a.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});a.on("pasteState",function(d){a.getCommand("pastefromword").setState(d.data)});a.on("paste",function(j){var d=j.data,i=d.dataValue;if(i&&(f||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(i))){d.dontFilter=!0;var g=b(a,e,function(){if(g){a.fire("paste",d)}else{if(!a.config.pasteFromWordPromptCleanup||f||confirm(a.lang.pastefromword.confirmCleanup)){d.dataValue=CKEDITOR.cleanWord(i,a)}}f=0});g&&j.cancel()}},null,null,3)}})}(),function(){var b,c={modes:{wysiwyg:1,source:1},canUndo:!1,readOnly:1,exec:function(g){var p,o=g.config,n=o.baseHref?'<base href="'+o.baseHref+'"/>':"";if(o.fullPage){p=g.getData().replace(/<head>/,"$&"+n).replace(/[^>]*(?=<\/title>)/,"$& — "+g.lang.preview.preview)}else{var o="<body ",i=g.document&&g.document.getBody();i&&(i.getAttribute("id")&&(o+='id="'+i.getAttribute("id")+'" '),i.getAttribute("class")&&(o+='class="'+i.getAttribute("class")+'" '));p=g.config.docType+'<html dir="'+g.config.contentsLangDirection+'"><head>'+n+"<title>"+g.lang.preview.preview+"</title>"+CKEDITOR.tools.buildStyleHtml(g.config.contentsCss)+"</head>"+(o+">")+g.getData()+"</body></html>"}n=640;o=420;i=80;try{var k=window.screen,n=Math.round(0.8*k.width),o=Math.round(0.7*k.height),i=Math.round(0.1*k.width)}catch(j){}if(!1===g.fire("contentPreview",g={dataValue:p})){return !1}var k="",a;CKEDITOR.env.ie&&(window._cke_htmlToLoad=g.dataValue,a="javascript:void( (function(){document.open();"+("("+CKEDITOR.tools.fixDomain+")();").replace(/\/\/.*?\n/g,"").replace(/parent\./g,"window.opener.")+"document.write( window.opener._cke_htmlToLoad );document.close();window.opener._cke_htmlToLoad = null;})() )",k="");CKEDITOR.env.gecko&&(window._cke_htmlToLoad=g.dataValue,k=CKEDITOR.getUrl(b+"preview.html"));k=window.open(k,null,"toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+n+",height="+o+",left="+i);CKEDITOR.env.ie&&k&&(k.location=a);CKEDITOR.env.ie||CKEDITOR.env.gecko||(a=k.document,a.open(),a.write(g.dataValue),a.close());return !0}};CKEDITOR.plugins.add("preview",{init:function(a){a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&(b=this.path,a.addCommand("preview",c),a.ui.addButton&&a.ui.addButton("Preview",{label:a.lang.preview.preview,command:"preview",toolbar:"document,40"}))}})}(),CKEDITOR.plugins.add("print",{init:function(b){b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&(b.addCommand("print",CKEDITOR.plugins.print),b.ui.addButton&&b.ui.addButton("Print",{label:b.lang.print.toolbar,command:"print",toolbar:"document,50"}))}}),CKEDITOR.plugins.print={exec:function(b){CKEDITOR.env.gecko?b.window.$.print():b.document.$.execCommand("Print")},canUndo:!1,readOnly:1,modes:{wysiwyg:1}},CKEDITOR.plugins.add("removeformat",{init:function(b){b.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);b.ui.addButton&&b.ui.addButton("RemoveFormat",{label:b.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(x){for(var t=x._.removeFormatRegex||(x._.removeFormatRegex=RegExp("^(?:"+x.config.removeFormatTags.replace(/,/g,"|")+")$","i")),w=x._.removeAttributes||(x._.removeAttributes=x.config.removeFormatAttributes.split(",")),v=CKEDITOR.plugins.removeformat.filter,u=x.getSelection().getRanges(),o=u.createIterator(),n=function(b){return b.type==CKEDITOR.NODE_ELEMENT},s;s=o.getNextRange();){s.collapsed||s.enlarge(CKEDITOR.ENLARGE_ELEMENT);var q=s.createBookmark(),j=q.startNode,r=q.endNode,i=function(a){for(var l=x.elementPath(a),k=l.elements,e=1,c;(c=k[e])&&!c.equals(l.block)&&!c.equals(l.blockLimit);e++){t.test(c.getName())&&v(x,c)&&a.breakParent(c)}};i(j);if(r){for(i(r),j=j.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);j&&!j.equals(r);){if(j.isReadOnly()){if(j.getPosition(r)&CKEDITOR.POSITION_CONTAINS){break}j=j.getNext(n)}else{i=j.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),("img"!=j.getName()||!j.data("cke-realelement"))&&v(x,j)&&(t.test(j.getName())?j.remove(1):(j.removeAttributes(w),x.fire("removeFormatCleanup",j))),j=i}}}s.moveToBookmark(q)}x.forceNextSelectionCheck();x.getSelection().selectRanges(u)}}},filter:function(f,g){for(var d=f._.removeFormatFilters||[],h=0;h<d.length;h++){if(!1===d[h](g)){return !1}}return !0}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(b){this._.removeFormatFilters||(this._.removeFormatFilters=[]);this._.removeFormatFilters.push(b)},CKEDITOR.config.removeFormatTags="b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var",CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign",function(){var b={readOnly:1,exec:function(d){if(d.fire("save")&&(d=d.element.$.form)){try{d.submit()}catch(c){d.submit.click&&d.submit.click()}}}};CKEDITOR.plugins.add("save",{init:function(a){a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(a.addCommand("save",b).modes={wysiwyg:!!a.element.$.form},a.ui.addButton&&a.ui.addButton("Save",{label:a.lang.save.toolbar,command:"save",toolbar:"document,10"}))}})}(),function(){CKEDITOR.plugins.add("selectall",{init:function(b){b.addCommand("selectAll",{modes:{wysiwyg:1,source:1},exec:function(e){var d=e.editable();if(d.is("textarea")){e=d.$,CKEDITOR.env.ie?e.createTextRange().execCommand("SelectAll"):(e.selectionStart=0,e.selectionEnd=e.value.length),e.focus()}else{if(d.is("body")){e.document.$.execCommand("SelectAll",!1,null)}else{var f=e.createRange();f.selectNodeContents(d);f.select()}e.forceNextSelectionCheck();e.selectionChange()}},canUndo:!1});b.ui.addButton&&b.ui.addButton("SelectAll",{label:b.lang.selectall.toolbar,command:"selectAll",toolbar:"selection,10"})}})}(),function(){var b={readOnly:1,preserveState:!0,editorFocus:!1,exec:function(c){this.toggleState();this.refresh(c)},refresh:function(d){if(d.document){var c=this.state!=CKEDITOR.TRISTATE_ON||d.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!d.focusManager.hasFocus?"removeClass":"attachClass";d.editable()[c]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){var t="p div pre address blockquote h1 h2 h3 h4 h5 h6".split(" "),s,r,q,j,i=CKEDITOR.getUrl(this.path),p=!(CKEDITOR.env.ie&&9>CKEDITOR.env.version),n=p?":not([contenteditable=false]):not(.cke_show_blocks_off)":"",e,o;for(s=r=q=j="";e=t.pop();){o=t.length?",":"",s+=".cke_show_blocks "+e+n+o,q+=".cke_show_blocks.cke_contents_ltr "+e+n+o,j+=".cke_show_blocks.cke_contents_rtl "+e+n+o,r+=".cke_show_blocks "+e+n+"{background-image:url("+CKEDITOR.getUrl(i+"images/block_"+e+".png")+")}"}CKEDITOR.addCss((s+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(r,q+"{background-position:top left;padding-left:8px}",j+"{background-position:top right;padding-right:8px}"));p||CKEDITOR.addCss(".cke_show_blocks [contenteditable=false],.cke_show_blocks .cke_show_blocks_off{border:none;padding-top:0;background-image:none}.cke_show_blocks.cke_contents_rtl [contenteditable=false],.cke_show_blocks.cke_contents_rtl .cke_show_blocks_off{padding-right:0}.cke_show_blocks.cke_contents_ltr [contenteditable=false],.cke_show_blocks.cke_contents_ltr .cke_show_blocks_off{padding-left:0}")},init:function(d){function a(){f.refresh(d)}if(!d.blockless){var f=d.addCommand("showblocks",b);f.canUndo=!1;d.config.startupOutlineBlocks&&f.setState(CKEDITOR.TRISTATE_ON);d.ui.addButton&&d.ui.addButton("ShowBlocks",{label:d.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"});d.on("mode",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&f.refresh(d)});d.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(d.on("focus",a),d.on("blur",a));d.on("contentDom",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&f.refresh(d)})}}})}(),function(){var b={preserveState:!0,editorFocus:!1,readOnly:1,exec:function(c){this.toggleState();this.refresh(c)},refresh:function(d){if(d.document){var c=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";d.editable()[c]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var c;c=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:".%1 table.%2,;.%1 table.%2 > tr > td, .%1 table.%2 > tr > th,;.%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,;.%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,;.%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th;{;border : #d3d3d3 1px dotted;}".split(";")).join("").replace(/%2/g,"cke_show_border").replace(/%1/g,"cke_show_borders ");CKEDITOR.addCss(c)},init:function(c){var a=c.addCommand("showborders",b);a.canUndo=!1;!1!==c.config.startupShowBorders&&a.setState(CKEDITOR.TRISTATE_ON);c.on("mode",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(c)},null,null,100);c.on("contentDom",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(c)});c.on("removeFormatCleanup",function(d){d=d.data;c.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&d.is("table")&&(!d.hasAttribute("border")||0>=parseInt(d.getAttribute("border"),10))&&d.addClass("cke_show_border")})},afterInit:function(d){var c=d.dataProcessor;d=c&&c.dataFilter;c=c&&c.htmlFilter;d&&d.addRules({elements:{table:function(g){g=g.attributes;var f=g["class"],h=parseInt(g.border,10);h&&!(0>=h)||f&&-1!=f.indexOf("cke_show_border")||(g["class"]=(f||"")+" cke_show_border")}}});c&&c.addRules({elements:{table:function(f){f=f.attributes;var e=f["class"];e&&(f["class"]=e.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,""))}}})}});CKEDITOR.on("dialogDefinition",function(d){var c=d.data.name;if("table"==c||"tableProperties"==c){if(d=d.data.definition,c=d.getContents("info").get("txtBorder"),c.commit=CKEDITOR.tools.override(c.commit,function(e){return function(a,g){e.apply(this,arguments);var f=parseInt(this.getValue(),10);g[!f||0>=f?"addClass":"removeClass"]("cke_show_border")}}),d=(d=d.getContents("advanced"))&&d.get("advCSSClasses")){d.setup=CKEDITOR.tools.override(d.setup,function(e){return function(){e.apply(this,arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}}),d.commit=CKEDITOR.tools.override(d.commit,function(e){return function(a,f){e.apply(this,arguments);parseInt(f.getAttribute("border"),10)||f.addClass("cke_show_border")}})}}})}(),function(){CKEDITOR.plugins.add("sourcearea",{init:function(f){function a(){var c=g&&this.equals(CKEDITOR.document.getActive());this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+"px");this.show();c&&this.focus()}if(f.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var h=CKEDITOR.plugins.sourcearea;f.addMode("source",function(i){var e=f.ui.space("contents").getDocument().createElement("textarea");e.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",f.config.sourceAreaTabSize||4)));e.setAttribute("dir","ltr");e.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");f.ui.space("contents").append(e);e=f.editable(new b(f,e));e.setData(f.getData(1));CKEDITOR.env.ie&&(e.attachListener(f,"resize",a,e),e.attachListener(CKEDITOR.document.getWindow(),"resize",a,e),CKEDITOR.tools.setTimeout(a,0,e));f.fire("ariaWidget",this);i()});f.addCommand("source",h.commands.source);f.ui.addButton&&f.ui.addButton("Source",{label:f.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});f.on("mode",function(){f.getCommand("source").setState("source"==f.mode?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var g=CKEDITOR.env.ie&&9==CKEDITOR.env.version}}});var b=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(c){this.setValue(c);this.status="ready";this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(c){this[(c?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){b.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(b){"wysiwyg"==b.mode&&b.fire("saveSnapshot");b.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);b.setMode("source"==b.mode?"wysiwyg":"source")},canUndo:!1}}},CKEDITOR.plugins.add("specialchar",{availableLangs:{af:1,ar:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,en:1,"en-gb":1,eo:1,es:1,et: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,pl:1,pt:1,"pt-br":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(b){var c=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");b.addCommand("specialchar",{exec:function(){var a=b.langCode,a=c.availableLangs[a]?a:c.availableLangs[a.replace(/-.*/,"")]?a.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(c.path+"dialogs/lang/"+a+".js"),function(){CKEDITOR.tools.extend(b.lang.specialchar,c.langEntries[a]);b.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1});b.ui.addButton&&b.ui.addButton("SpecialChar",{label:b.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! " # $ % & ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ 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 { | } ~ € ‘ ’ “ ” – — ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ Œ œ Ŵ Ŷ ŵ ŷ ‚ ‛ „ … ™ ► • → ⇒ ⇔ ♦ ≈".split(" "),CKEDITOR.plugins.add("scayt",{requires:"menubutton,dialog",tabToOpen:null,dialogName:"scaytDialog",init:function(g){var h=this,f=CKEDITOR.plugins.scayt;this.bindEvents(g);this.parseConfig(g);this.addRule(g);CKEDITOR.dialog.add(this.dialogName,CKEDITOR.getUrl(this.path+"dialogs/options.js"));this.addMenuItems(g);var j=g.lang.scayt,i=CKEDITOR.env;g.ui.add("Scayt",CKEDITOR.UI_MENUBUTTON,{label:j.text_title,title:g.plugins.wsc?g.lang.wsc.title:j.text_title,modes:{wysiwyg:!(i.ie&&(8>i.version||i.quirks))},toolbar:"spellchecker,20",refresh:function(){var a=g.ui.instances.Scayt.getState();g.scayt&&(a=f.state[g.name]?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF);g.fire("scaytButtonState",a)},onRender:function(){var a=this;g.on("scaytButtonState",function(b){void 0!==typeof b.data&&a.setState(b.data)})},onMenu:function(){var a=g.scayt;g.getMenuItem("scaytToggle").label=g.lang.scayt[a&&f.state[g.name]?"btn_disable":"btn_enable"];a={scaytToggle:CKEDITOR.TRISTATE_OFF,scaytOptions:a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytLangs:a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytDict:a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytAbout:a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,WSC:g.plugins.wsc?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED};g.config.scayt_uiTabs[0]||delete a.scaytOptions;g.config.scayt_uiTabs[1]||delete a.scaytLangs;g.config.scayt_uiTabs[2]||delete a.scaytDict;return a}});g.contextMenu&&g.addMenuItems&&(g.contextMenu.addListener(function(){var a=g.scayt,k;if(a){var e=a.getSelectionNode();if(e=e?e.getAttribute(a.getNodeAttribute()):e){k=h.menuGenerator(g,e,h),a.showBanner("."+g.contextMenu._.definition.panel.className.split(" ").join(" ."))}}return k}),g.contextMenu._.onHide=CKEDITOR.tools.override(g.contextMenu._.onHide,function(a){return function(){var b=g.scayt;b&&b.hideBanner();return a.apply(this)}}))},addMenuItems:function(g){var h=this,f=CKEDITOR.plugins.scayt;g.addMenuGroup("scaytButton");var j=g.config.scayt_contextMenuItemsOrder.split("|");if(j&&j.length){for(var i=0;i<j.length;i++){g.addMenuGroup("scayt_"+j[i],i-10)}}g.addCommand("scaytToggle",{exec:function(b){var d=b.scayt;f.state[b.name]=!f.state[b.name];!0===f.state[b.name]?d||f.createScayt(b):d&&f.destroy(b)}});g.addCommand("scaytAbout",{exec:function(b){b.scayt.tabToOpen="about";b.lockSelection();b.openDialog(h.dialogName)}});g.addCommand("scaytOptions",{exec:function(b){b.scayt.tabToOpen="options";b.lockSelection();b.openDialog(h.dialogName)}});g.addCommand("scaytLangs",{exec:function(b){b.scayt.tabToOpen="langs";b.lockSelection();b.openDialog(h.dialogName)}});g.addCommand("scaytDict",{exec:function(b){b.scayt.tabToOpen="dictionaries";b.lockSelection();b.openDialog(h.dialogName)}});j={scaytToggle:{label:g.lang.scayt.btn_enable,group:"scaytButton",command:"scaytToggle"},scaytAbout:{label:g.lang.scayt.btn_about,group:"scaytButton",command:"scaytAbout"},scaytOptions:{label:g.lang.scayt.btn_options,group:"scaytButton",command:"scaytOptions"},scaytLangs:{label:g.lang.scayt.btn_langs,group:"scaytButton",command:"scaytLangs"},scaytDict:{label:g.lang.scayt.btn_dictionaries,group:"scaytButton",command:"scaytDict"}};g.plugins.wsc&&(j.WSC={label:g.lang.wsc.toolbar,group:"scaytButton",onClick:function(){var a=CKEDITOR.plugins.scayt,d=g.scayt;(g.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?g.container.getText():g.document.getBody().getText()).replace(/\s/g,"")?(d&&a.state[g.name]&&d.setMarkupPaused&&d.setMarkupPaused(!0),g.lockSelection(),g.execCommand("checkspell")):alert("Nothing to check!")}});g.addMenuItems(j)},bindEvents:function(i){function n(){var a=i.scayt;a&&(a.removeMarkupInSelectionNode(),a.fire("startSpellCheck"))}var g=CKEDITOR.plugins.scayt,p=i.elementMode==CKEDITOR.ELEMENT_MODE_INLINE,o=function(){g.destroy(i)},j=function(){g.state[i.name]&&!i.readOnly&&!i.scayt&&g.createScayt(i)},h=function(){var a=i.editable();a.attachListener(a,"focus",function(){CKEDITOR.plugins.scayt&&!i.scayt&&setTimeout(j,0);var c=CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state[i.name]&&i.scayt,q,l;if((p||c)&&i._.savedSelection){for(var c=i._.savedSelection.getSelectedElement(),c=!c&&i._.savedSelection.getRanges(),k=0;k<c.length;k++){l=c[k],"string"===typeof l.startContainer.$.nodeValue&&(q=l.startContainer.getText().length,(q<l.startOffset||q<l.endOffset)&&i.unlockSelection(!1))}}},this,null,-10)},m=function(){p?(i.on("blur",o),i.on("focus",j),i.focusManager.hasFocus&&j()):j();h()};i.on("contentDom",m);i.on("beforeCommandExec",function(b){var a;if(b.data.name in g.options.disablingCommandExec&&"wysiwyg"==i.mode){if(a=i.scayt){g.destroy(i),i.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED)}}else{if("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){if(a=i.scayt){a.removeMarkupInSelectionNode(),setTimeout(function(){a.fire("startSpellCheck")},0)}}}});i.on("beforeSetMode",function(a){"source"==a.data&&(i.scayt&&(g.destroy(i),i.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED)),i.document&&i.document.getBody().removeAttribute("_jquid"))});i.on("afterCommandExec",function(a){var d;"wysiwyg"!=i.mode||"undo"!=a.data.name&&"redo"!=a.data.name||(d=i.scayt)&&setTimeout(function(){d.fire("startSpellCheck")},250)});i.on("readOnly",function(b){var a;b&&(a=i.scayt,!0===b.editor.readOnly?a&&a.fire("removeMarkupInDocument",{}):a?a.fire("startSpellCheck"):"wysiwyg"==b.editor.mode&&!0===g.state[b.editor.name]&&(g.createScayt(i),b.editor.fire("scaytButtonState",CKEDITOR.TRISTATE_ON)))});i.on("beforeDestroy",o);i.on("setData",function(){o();(i.elementMode==CKEDITOR.ELEMENT_MODE_INLINE||i.plugins.divarea)&&m()},this,null,50);i.on("insertElement",function(){CKEDITOR.env.ie?setTimeout(function(){n()},50):n()},this,null,50);i.on("insertHtml",function(){n()},this,null,50);i.on("insertText",function(){n()},this,null,50);i.on("scaytDialogShown",function(a){a.data.selectPage(i.scayt.tabToOpen)});i.on("paste",function(){var a=i.scayt;a&&a.removeMarkupInSelectionNode()},null,null,0)},parseConfig:function(i){var n=CKEDITOR.plugins.scayt;n.replaceOldOptionsNames(i.config);"boolean"!==typeof i.config.scayt_autoStartup&&(i.config.scayt_autoStartup=!1);n.state[i.name]=i.config.scayt_autoStartup;i.config.scayt_contextCommands||(i.config.scayt_contextCommands="ignore|ignoreall|add");i.config.scayt_contextMenuItemsOrder||(i.config.scayt_contextMenuItemsOrder="suggest|moresuggest|control");i.config.scayt_sLang||(i.config.scayt_sLang="en_US");if(void 0===i.config.scayt_maxSuggestions||"number"!=typeof i.config.scayt_maxSuggestions||0>i.config.scayt_maxSuggestions){i.config.scayt_maxSuggestions=5}if(void 0===i.config.scayt_minWordLength||"number"!=typeof i.config.scayt_minWordLength||1>i.config.scayt_minWordLength){i.config.scayt_minWordLength=4}if(void 0===i.config.scayt_customDictionaryIds||"string"!==typeof i.config.scayt_customDictionaryIds){i.config.scayt_customDictionaryIds=""}if(void 0===i.config.scayt_userDictionaryName||"string"!==typeof i.config.scayt_userDictionaryName){i.config.scayt_userDictionaryName=null}if("string"===typeof i.config.scayt_uiTabs&&3===i.config.scayt_uiTabs.split(",").length){var g=[],p=[];i.config.scayt_uiTabs=i.config.scayt_uiTabs.split(",");CKEDITOR.tools.search(i.config.scayt_uiTabs,function(b){1===Number(b)||0===Number(b)?(p.push(!0),g.push(Number(b))):p.push(!1)});i.config.scayt_uiTabs=null===CKEDITOR.tools.search(p,!1)?g:[1,1,1]}else{i.config.scayt_uiTabs=[1,1,1]}"string"!=typeof i.config.scayt_serviceProtocol&&(i.config.scayt_serviceProtocol=null);"string"!=typeof i.config.scayt_serviceHost&&(i.config.scayt_serviceHost=null);"string"!=typeof i.config.scayt_servicePort&&(i.config.scayt_servicePort=null);"string"!=typeof i.config.scayt_servicePath&&(i.config.scayt_servicePath=null);i.config.scayt_moreSuggestions||(i.config.scayt_moreSuggestions="on");"string"!==typeof i.config.scayt_customerId&&(i.config.scayt_customerId="1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2");"string"!==typeof i.config.scayt_srcUrl&&(n=document.location.protocol,n=-1!=n.search(/https?:/)?n:"http:",i.config.scayt_srcUrl=n+"//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);if(i.config.scayt_disableOptionsStorage){var n=CKEDITOR.tools.isArray(i.config.scayt_disableOptionsStorage)?i.config.scayt_disableOptionsStorage:"string"===typeof i.config.scayt_disableOptionsStorage?[i.config.scayt_disableOptionsStorage]:void 0,o="all options lang ignore-all-caps-words ignore-domain-names ignore-words-with-mixed-cases ignore-words-with-numbers".split(" "),j=["lang","ignore-all-caps-words","ignore-domain-names","ignore-words-with-mixed-cases","ignore-words-with-numbers"],h=CKEDITOR.tools.search,m=CKEDITOR.tools.indexOf;i.config.scayt_disableOptionsStorage=function(f){for(var d=[],q=0;q<f.length;q++){var l=f[q],k=!!h(f,"options");if(!h(o,l)||k&&h(j,function(b){if("lang"===b){return !1}})){return}h(j,l)&&j.splice(m(j,l),1);if("all"===l||k&&h(f,"lang")){return[]}"options"===l&&(j=["lang"])}return d=d.concat(j)}(n)}},addRule:function(h){var j=h.dataProcessor,f=j&&j.htmlFilter,n=h._.elementsPath&&h._.elementsPath.filters,j=j&&j.dataFilter,m=h.addRemoveFormatFilter,i=function(a){var d=CKEDITOR.plugins.scayt;if(h.scayt&&a.hasAttribute(d.options.data_attribute_name)){return !1}},g=function(a){var k=CKEDITOR.plugins.scayt,e=!0;h.scayt&&a.hasAttribute(k.options.data_attribute_name)&&(e=!1);return e};n&&n.push(i);j&&j.addRules({elements:{span:function(a){var d=CKEDITOR.plugins.scayt;d&&d.state[h.name]&&a.classes&&CKEDITOR.tools.search(a.classes,d.options.misspelled_word_class)&&(a.classes&&a.parent.type===CKEDITOR.NODE_DOCUMENT_FRAGMENT?(delete a.attributes.style,delete a.name):delete a.classes[CKEDITOR.tools.indexOf(a.classes,d.options.misspelled_word_class)]);return a}}});f&&f.addRules({elements:{span:function(a){var d=CKEDITOR.plugins.scayt;d&&d.state[h.name]&&a.hasClass(d.options.misspelled_word_class)&&a.attributes[d.options.data_attribute_name]&&(a.removeClass(d.options.misspelled_word_class),delete a.attributes[d.options.data_attribute_name],delete a.name);return a}}});m&&m.call(h,g)},scaytMenuDefinition:function(b){var c=this;b=b.scayt;return{scayt_ignore:{label:b.getLocal("btn_ignore"),group:"scayt_control",order:1,exec:function(d){d.scayt.ignoreWord()}},scayt_ignoreall:{label:b.getLocal("btn_ignoreAll"),group:"scayt_control",order:2,exec:function(d){d.scayt.ignoreAllWords()}},scayt_add:{label:b.getLocal("btn_addWord"),group:"scayt_control",order:3,exec:function(d){var e=d.scayt;setTimeout(function(){e.addWordToUserDictionary()},10)}},option:{label:b.getLocal("btn_options"),group:"scayt_control",order:4,exec:function(d){d.scayt.tabToOpen="options";d.lockSelection();d.openDialog(c.dialogName)},verification:function(d){return 1==d.config.scayt_uiTabs[0]?!0:!1}},language:{label:b.getLocal("btn_langs"),group:"scayt_control",order:5,exec:function(d){d.scayt.tabToOpen="langs";d.lockSelection();d.openDialog(c.dialogName)},verification:function(d){return 1==d.config.scayt_uiTabs[1]?!0:!1}},dictionary:{label:b.getLocal("btn_dictionaries"),group:"scayt_control",order:6,exec:function(d){d.scayt.tabToOpen="dictionaries";d.lockSelection();d.openDialog(c.dialogName)},verification:function(d){return 1==d.config.scayt_uiTabs[2]?!0:!1}},about:{label:b.getLocal("btn_about"),group:"scayt_control",order:7,exec:function(d){d.scayt.tabToOpen="about";d.lockSelection();d.openDialog(c.dialogName)}}}},buildSuggestionMenuItems:function(h,j){var f={},n={},m=h.scayt;if(0<j.length&&"no_any_suggestions"!==j[0]){for(var i=0;i<j.length;i++){var g="scayt_suggest_"+CKEDITOR.plugins.scayt.suggestions[i].replace(" ","_");h.addCommand(g,this.createCommand(CKEDITOR.plugins.scayt.suggestions[i]));i<h.config.scayt_maxSuggestions?(h.addMenuItem(g,{label:j[i],command:g,group:"scayt_suggest",order:i+1}),f[g]=CKEDITOR.TRISTATE_OFF):(h.addMenuItem(g,{label:j[i],command:g,group:"scayt_moresuggest",order:i+1}),n[g]=CKEDITOR.TRISTATE_OFF,"on"===h.config.scayt_moreSuggestions&&(h.addMenuItem("scayt_moresuggest",{label:m.getLocal("btn_moreSuggestions"),group:"scayt_moresuggest",order:10,getItems:function(){return n}}),f.scayt_moresuggest=CKEDITOR.TRISTATE_OFF))}}else{f.no_scayt_suggest=CKEDITOR.TRISTATE_DISABLED,h.addCommand("no_scayt_suggest",{exec:function(){}}),h.addMenuItem("no_scayt_suggest",{label:m.getLocal("btn_noSuggestions")||"no_scayt_suggest",command:"no_scayt_suggest",group:"scayt_suggest",order:0})}return f},menuGenerator:function(h,j){var f=h.scayt,n=this.scaytMenuDefinition(h),m={},i=h.config.scayt_contextCommands.split("|");f.fire("getSuggestionsList",{lang:f.getLang(),word:j});m=this.buildSuggestionMenuItems(h,CKEDITOR.plugins.scayt.suggestions);if("off"==h.config.scayt_contextCommands){return m}for(var g in n){-1==CKEDITOR.tools.indexOf(i,g.replace("scayt_",""))&&"all"!=h.config.scayt_contextCommands||(m[g]=CKEDITOR.TRISTATE_OFF,"function"===typeof n[g].verification&&!n[g].verification(h)&&delete m[g],h.addCommand(g,{exec:n[g].exec}),h.addMenuItem(g,{label:h.lang.scayt[n[g].label]||n[g].label,command:g,group:n[g].group,order:n[g].order}))}return m},createCommand:function(b){return{exec:function(a){a.scayt.replaceSelectionNode({word:b})}}}}),CKEDITOR.plugins.scayt={state:{},suggestions:[],loadingHelper:{loadOrder:[]},isLoading:!1,options:{disablingCommandExec:{source:!0,newpage:!0,templates:!0},data_attribute_name:"data-scayt-word",misspelled_word_class:"scayt-misspell-word"},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"},replaceOldOptionsNames:function(b){for(var c in b){c in this.backCompatibilityMap&&(b[this.backCompatibilityMap[c]]=b[c],delete b[c])}},createScayt:function(b){var c=this;this.loadScaytLibrary(b,function(d){var e={lang:d.config.scayt_sLang,container:"BODY"==d.editable().$.nodeName?d.document.getWindow().$.frameElement:d.editable().$,customDictionary:d.config.scayt_customDictionaryIds,userDictionaryName:d.config.scayt_userDictionaryName,localization:d.langCode,customer_id:d.config.scayt_customerId,debug:d.config.scayt_debug,data_attribute_name:c.options.data_attribute_name,misspelled_word_class:c.options.misspelled_word_class,"options-to-restore":d.config.scayt_disableOptionsStorage,focused:d.editable().hasFocus,ignoreElementsRegex:d.config.scayt_elementsToIgnore,minWordLength:d.config.scayt_minWordLength};d.config.scayt_serviceProtocol&&(e.service_protocol=d.config.scayt_serviceProtocol);d.config.scayt_serviceHost&&(e.service_host=d.config.scayt_serviceHost);d.config.scayt_servicePort&&(e.service_port=d.config.scayt_servicePort);d.config.scayt_servicePath&&(e.service_path=d.config.scayt_servicePath);e=new SCAYT.CKSCAYT(e,function(){},function(){});e.subscribe("suggestionListSend",function(g){for(var f={},i=[],h=0;h<g.suggestionList.length;h++){f["word_"+g.suggestionList[h]]||(f["word_"+g.suggestionList[h]]=g.suggestionList[h],i.push(g.suggestionList[h]))}CKEDITOR.plugins.scayt.suggestions=i});e.subscribe("selectionIsChanged",function(){d.getSelection().isLocked&&d.lockSelection()});d.scayt=e;d.fire("scaytButtonState",d.readOnly?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_ON)})},destroy:function(b){b.scayt&&b.scayt.destroy();delete b.scayt;b.fire("scaytButtonState",CKEDITOR.TRISTATE_OFF)},loadScaytLibrary:function(f,g){var d=this,h;"undefined"===typeof window.SCAYT||"function"!==typeof window.SCAYT.CKSCAYT?this.loadingHelper[f.name]||(this.loadingHelper[f.name]=g,this.loadingHelper.loadOrder.push(f.name),h=new Date,h=h.getTime(),h=f.config.scayt_srcUrl+"?"+h,CKEDITOR.scriptLoader.load(h,function(){var b;CKEDITOR.fireOnce("scaytReady");for(var e=0;e<d.loadingHelper.loadOrder.length;e++){b=d.loadingHelper.loadOrder[e];if("function"===typeof d.loadingHelper[b]){d.loadingHelper[b](CKEDITOR.instances[b])}delete d.loadingHelper[b]}d.loadingHelper.loadOrder=[]})):window.SCAYT&&"function"===typeof window.SCAYT.CKSCAYT&&(CKEDITOR.fireOnce("scaytReady"),f.scayt||"function"===typeof g&&g(f))}},CKEDITOR.on("dialogDefinition",function(b){if("scaytDialog"===b.data.name){b.data.definition.dialog.on("cancel",function(){return !1},this,null,-1)}}),CKEDITOR.on("scaytReady",function(){if(!0===CKEDITOR.config.scayt_handleCheckDirty){var b=CKEDITOR.editor.prototype;b.checkDirty=CKEDITOR.tools.override(b.checkDirty,function(d){return function(){var g=null,f=this.scayt;if(!CKEDITOR.plugins.scayt||!CKEDITOR.plugins.scayt.state[this.name]||!this.scayt){g=d.call(this)}else{if(g="ready"==this.status){var a=f.removeMarkupFromString(this.getSnapshot()),f=f.removeMarkupFromString(this._.previousValue),g=g&&f!==a}}return g}});b.resetDirty=CKEDITOR.tools.override(b.resetDirty,function(d){return function(){var a=this.scayt;CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state[this.name]&&this.scayt?this._.previousValue=a.removeMarkupFromString(this.getSnapshot()):d.call(this)}})}if(!0===CKEDITOR.config.scayt_handleUndoRedo){var b=CKEDITOR.plugins.undo.Image.prototype,c="function"==typeof b.equalsContent?"equalsContent":"equals";b[c]=CKEDITOR.tools.override(b[c],function(d){return function(j){var i=j.editor.scayt,h=this.contents,a=j.contents,g=null;CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state[j.editor.name]&&j.editor.scayt&&(this.contents=i.removeMarkupFromString(h)||"",j.contents=i.removeMarkupFromString(a)||"");g=d.apply(this,arguments);this.contents=h;j.contents=a;return g}})}}),function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(g){var i=g.config,f=g.lang.stylescombo,l={},j=[],h=[];g.on("stylesSet",function(c){if(c=c.data.styles){for(var k,d,a,e=0,n=c.length;e<n;e++){(k=c[e],g.blockless&&k.element in CKEDITOR.dtd.$block||(d=k.name,k=new CKEDITOR.style(k),g.filter.customConfig&&!g.filter.check(k)))||(k._name=d,k._.enterMode=i.enterMode,k._.type=a=k.assignedTo||k.type,k._.weight=e+1000*(a==CKEDITOR.STYLE_OBJECT?1:a==CKEDITOR.STYLE_BLOCK?2:3),l[d]=k,j.push(k),h.push(k))}j.sort(function(o,m){return o._.weight-m._.weight})}});g.ui.addRichCombo("Styles",{label:f.label,title:f.panelTitle,toolbar:"styles,10",allowedContent:h,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(i.contentsCss),multiSelect:!0,attributes:{"aria-label":f.panelTitle}},init:function(){var b,q,o,d,m,n;m=0;for(n=j.length;m<n;m++){b=j[m],q=b._name,d=b._.type,d!=o&&(this.startGroup(f["panelTitle"+d]),o=d),this.add(q,b.type==CKEDITOR.STYLE_OBJECT?q:b.buildPreview(),q)}this.commit()},onClick:function(a){g.focus();g.fire("saveSnapshot");a=l[a];var c=g.elementPath();g[a.checkActive(c,g)?"removeStyle":"applyStyle"](a);g.fire("saveSnapshot")},onRender:function(){g.on("selectionChange",function(a){var q=this.getValue();a=a.data.path.elements;for(var o=0,c=a.length,m;o<c;o++){m=a[o];for(var n in l){if(l[n].checkElementRemovable(m,!0,g)){n!=q&&this.setValue(n);return}}}this.setValue("")},this)},onOpen:function(){var n=g.getSelection().getSelectedElement(),n=g.elementPath(n),m=[0,0,0,0];this.showAll();this.unmarkAll();for(var b in l){var a=l[b],c=a._.type;a.checkApplicable(n,g,g.activeFilter)?m[c]++:this.hideItem(b);a.checkActive(n,g)&&this.mark(b)}m[CKEDITOR.STYLE_BLOCK]||this.hideGroup(f["panelTitle"+CKEDITOR.STYLE_BLOCK]);m[CKEDITOR.STYLE_INLINE]||this.hideGroup(f["panelTitle"+CKEDITOR.STYLE_INLINE]);m[CKEDITOR.STYLE_OBJECT]||this.hideGroup(f["panelTitle"+CKEDITOR.STYLE_OBJECT])},refresh:function(){var a=g.elementPath();if(a){for(var c in l){if(l[c].checkApplicable(a,g,g.activeFilter)){return}}this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){l={};j=[]}})}})}(),function(){function f(b){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(i){if(i.editable().hasFocus){var o=i.getSelection(),n;if(n=(new CKEDITOR.dom.elementPath(o.getCommonAncestor(),o.root)).contains({td:1,th:1},1)){var o=i.createRange(),j=CKEDITOR.tools.tryThese(function(){var c=n.getParent().$.cells[n.$.cellIndex+(b?-1:1)];c.parentNode.parentNode;return c},function(){var c=n.getParent(),c=c.getAscendant("table").$.rows[c.$.rowIndex+(b?-1:1)];return c.cells[b?c.cells.length-1:0]});if(j||b){if(j){j=new CKEDITOR.dom.element(j),o.moveToElementEditStart(j),o.checkStartOfBlock()&&o.checkEndOfBlock()||o.selectNodeContents(j)}else{return !0}}else{for(var a=n.getAscendant("table").$,j=n.getParent().$.cells,a=new CKEDITOR.dom.element(a.insertRow(-1),i.document),k=0,l=j.length;k<l;k++){a.append((new CKEDITOR.dom.element(j[k],i.document)).clone(!1,!1)).appendBogus()}o.moveToElementEditStart(a)}o.select(!0);return !0}}return !1}}}var g={editorFocus:!1,modes:{wysiwyg:1,source:1}},d={exec:function(b){b.container.focusNext(!0,b.tabIndex)}},h={exec:function(b){b.container.focusPrevious(!0,b.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(e){for(var b=!1!==e.config.enableTabKeyTools,a=e.config.tabSpaces||0,c="";a--;){c+="\u00a0"}if(c){e.on("key",function(i){9==i.data.keyCode&&(e.insertText(c),i.cancel())})}if(b){e.on("key",function(i){(9==i.data.keyCode&&e.execCommand("selectNextCell")||i.data.keyCode==CKEDITOR.SHIFT+9&&e.execCommand("selectPreviousCell"))&&i.cancel()})}e.addCommand("blur",CKEDITOR.tools.extend(d,g));e.addCommand("blurBack",CKEDITOR.tools.extend(h,g));e.addCommand("selectNextCell",f());e.addCommand("selectPreviousCell",f(!0))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(r,n){var q=void 0===n?this.getTabIndex():n,p,o,i,g,m,j;if(0>=q){for(m=this.getNextSourceNode(r,CKEDITOR.NODE_ELEMENT);m;){if(m.isVisible()&&0===m.getTabIndex()){i=m;break}m=m.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}}else{for(m=this.getDocument().getBody().getFirst();m=m.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!p){if(!o&&m.equals(this)){if(o=!0,r){if(!(m=m.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT))){break}p=1}}else{o&&!this.contains(m)&&(p=1)}}if(m.isVisible()&&!(0>(j=m.getTabIndex()))){if(p&&j==q){i=m;break}j>q&&(!i||!g||j<g)?(i=m,g=j):!i&&0===j&&(i=m,g=j)}}}i&&i.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(r,n){for(var q=void 0===n?this.getTabIndex():n,p,o,i,g=0,m,j=this.getDocument().getBody().getLast();j=j.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!p){if(!o&&j.equals(this)){if(o=!0,r){if(!(j=j.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT))){break}p=1}}else{o&&!this.contains(j)&&(p=1)}}if(j.isVisible()&&!(0>(m=j.getTabIndex()))){if(0>=q){if(p&&0===m){i=j;break}m>g&&(i=j,g=m)}else{if(p&&m==q){i=j;break}m<q&&(!i||m>g)&&(i=j,g=m)}}}i&&i.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(d){function f(b){return CKEDITOR.tools.extend(b||{},{contextSensitive:1,refresh:function(g,e){this.setState(e.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!d.blockless){var c=d.lang.table;d.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];"+(d.plugins.dialogadvtab?"table"+d.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"]]}));d.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",f()));d.addCommand("tableDelete",f({exec:function(i){var g=i.elementPath().contains("table",1);if(g){var j=g.getParent(),h=i.editable();1!=j.getChildCount()||j.is("td","th")||j.equals(h)||(g=j);i=i.createRange();i.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START);g.remove();i.select()}}}));d.ui.addButton&&d.ui.addButton("Table",{label:c.toolbar,command:"table",toolbar:"insert,30"});CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");d.addMenuItems&&d.addMenuItems({table:{label:c.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:c.deleteTable,command:"tableDelete",group:"table",order:1}});d.on("doubleclick",function(b){b.data.element.is("table")&&(b.data.dialog="tableProperties")});d.contextMenu&&d.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function y(k){function h(b){0<A.length||b.type!=CKEDITOR.NODE_ELEMENT||!z.test(b.getName())||b.getCustomData("selected_cell")||(CKEDITOR.dom.element.setMarker(s,b,"selected_cell",!0),A.push(b))}k=k.getRanges();for(var A=[],s={},p=0;p<k.length;p++){var m=k[p];if(m.collapsed){m=m.getCommonAncestor(),(m=m.getAscendant("td",!0)||m.getAscendant("th",!0))&&A.push(m)}else{var m=new CKEDITOR.dom.walker(m),l;for(m.guard=h;l=m.next();){l.type==CKEDITOR.NODE_ELEMENT&&l.is(CKEDITOR.dtd.table)||!(l=l.getAscendant("td",!0)||l.getAscendant("th",!0))||l.getCustomData("selected_cell")||(CKEDITOR.dom.element.setMarker(s,l,"selected_cell",!0),A.push(l))}}}CKEDITOR.dom.element.clearAllMarkers(s);return A}function u(E,D){for(var C=y(E),B=C[0],A=B.getAscendant("table"),B=B.getDocument(),s=C[0].getParent(),p=s.$.rowIndex,C=C[C.length-1],m=C.getParent().$.rowIndex+C.$.rowSpan-1,C=new CKEDITOR.dom.element(A.$.rows[m]),p=D?p:m,s=D?s:C,C=CKEDITOR.tools.buildTableMap(A),A=C[p],p=D?C[p-1]:C[p+1],C=C[0].length,B=B.createElement("tr"),m=0;A[m]&&m<C;m++){var a;1<A[m].rowSpan&&p&&A[m]==p[m]?(a=A[m],a.rowSpan+=1):(a=(new CKEDITOR.dom.element(A[m])).clone(),a.removeAttribute("rowSpan"),a.appendBogus(),B.append(a),a=a.$);m+=a.colSpan-1}D?B.insertBefore(s):B.insertAfter(s)}function x(H){if(H instanceof CKEDITOR.dom.selection){var G=y(H),F=G[0].getAscendant("table"),E=CKEDITOR.tools.buildTableMap(F);H=G[0].getParent().$.rowIndex;for(var G=G[G.length-1],D=G.getParent().$.rowIndex+G.$.rowSpan-1,G=[],C=H;C<=D;C++){for(var B=E[C],A=new CKEDITOR.dom.element(F.$.rows[C]),s=0;s<B.length;s++){var b=new CKEDITOR.dom.element(B[s]),a=b.getParent().$.rowIndex;1==b.$.rowSpan?b.remove():(b.$.rowSpan-=1,a==C&&(a=E[C+1],a[s-1]?b.insertAfter(new CKEDITOR.dom.element(a[s-1])):(new CKEDITOR.dom.element(F.$.rows[C+1])).append(b,1)));s+=b.$.colSpan-1}G.push(A)}E=F.$.rows;F=new CKEDITOR.dom.element(E[D+1]||(0<H?E[H-1]:null)||F.$.parentNode);for(C=G.length;0<=C;C--){x(G[C])}return F}H instanceof CKEDITOR.dom.element&&(F=H.getAscendant("table"),1==F.$.rows.length?F.remove():H.remove());return null}function w(G,F){for(var E=F?Infinity:0,D=0;D<G.length;D++){var C;C=G[D];for(var B=F,A=C.getParent().$.cells,s=0,p=0;p<A.length;p++){var m=A[p],s=s+(B?1:m.colSpan);if(m==C.$){break}}C=s-1;if(F?C<E:C>E){E=C}}return E}function v(a,C){for(var B=y(a),A=B[0].getAscendant("table"),s=w(B,1),B=w(B),s=C?s:B,p=CKEDITOR.tools.buildTableMap(A),A=[],B=[],m=p.length,c=0;c<m;c++){A.push(p[c][s]),B.push(C?p[c][s-1]:p[c][s+1])}for(c=0;c<m;c++){A[c]&&(1<A[c].colSpan&&B[c]==A[c]?(s=A[c],s.colSpan+=1):(s=(new CKEDITOR.dom.element(A[c])).clone(),s.removeAttribute("colSpan"),s.appendBogus(),s[C?"insertBefore":"insertAfter"].call(s,new CKEDITOR.dom.element(A[c])),s=s.$),c+=s.rowSpan-1)}}function o(f,e){var h=f.getStartElement();if(h=h.getAscendant("td",1)||h.getAscendant("th",1)){var g=h.clone();g.appendBogus();e?g.insertBefore(h):g.insertAfter(h)}}function n(a){if(a instanceof CKEDITOR.dom.selection){a=y(a);var A=a[0]&&a[0].getAscendant("table"),s;y:{var p=0;s=a.length-1;for(var m={},l,f;l=a[p++];){CKEDITOR.dom.element.setMarker(m,l,"delete_cell",!0)}for(p=0;l=a[p++];){if((f=l.getPrevious())&&!f.getCustomData("delete_cell")||(f=l.getNext())&&!f.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(m);s=f;break y}}CKEDITOR.dom.element.clearAllMarkers(m);f=a[0].getParent();(f=f.getPrevious())?s=f.getLast():(f=a[s].getParent(),s=(f=f.getNext())?f.getChild(0):null)}for(f=a.length-1;0<=f;f--){n(a[f])}s?t(s,!0):A&&A.remove()}else{a instanceof CKEDITOR.dom.element&&(A=a.getParent(),1==A.getChildCount()?A.remove():a.remove())}}function t(f,e){var h=f.getDocument(),g=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(g.focus(),h.focus());h=new CKEDITOR.dom.range(h);h["moveToElementEdit"+(e?"End":"Start")](f)||(h.selectNodeContents(f),h.collapse(e?!1:!0));h.select(!0)}function q(e,d,f){e=e[d];if("undefined"==typeof f){return e}for(d=0;e&&d<e.length;d++){if(f.is&&e[d]==f.$){return d}if(d==f){return new CKEDITOR.dom.element(e[d])}}return f.is?-1:null}function j(ad,ac,ab){var aa=y(ad),Z;if((ac?1!=aa.length:2>aa.length)||(Z=ad.getCommonAncestor())&&Z.type==CKEDITOR.NODE_ELEMENT&&Z.is("table")){return !1}var Y;ad=aa[0];Z=ad.getAscendant("table");var X=CKEDITOR.tools.buildTableMap(Z),W=X.length,V=X[0].length,U=ad.getParent().$.rowIndex,T=q(X,U,ad);if(ac){var Q;try{var S=parseInt(ad.getAttribute("rowspan"),10)||1;Y=parseInt(ad.getAttribute("colspan"),10)||1;Q=X["up"==ac?U-S:"down"==ac?U+S:U]["left"==ac?T-Y:"right"==ac?T+Y:T]}catch(R){return !1}if(!Q||ad.$==Q){return !1}aa["up"==ac||"left"==ac?"unshift":"push"](new CKEDITOR.dom.element(Q))}ac=ad.getDocument();var P=U,S=Q=0,L=!ab&&new CKEDITOR.dom.documentFragment(ac),N=0;for(ac=0;ac<aa.length;ac++){Y=aa[ac];var B=Y.getParent(),I=Y.getFirst(),A=Y.$.colSpan,a=Y.$.rowSpan,B=B.$.rowIndex,h=q(X,B,Y),N=N+A*a,S=Math.max(S,h-T+A);Q=Math.max(Q,B-U+a);ab||(A=Y,(a=A.getBogus())&&a.remove(),A.trim(),Y.getChildren().count()&&(B==P||!I||I.isBlockBoundary&&I.isBlockBoundary({br:1})||!(P=L.getLast(CKEDITOR.dom.walker.whitespaces(!0)))||P.is&&P.is("br")||L.append("br"),Y.moveChildren(L)),ac?Y.remove():Y.setHtml(""));P=B}if(ab){return Q*S==N}L.moveChildren(ad);ad.appendBogus();S>=V?ad.removeAttribute("rowSpan"):ad.$.rowSpan=Q;Q>=W?ad.removeAttribute("colSpan"):ad.$.colSpan=S;ab=new CKEDITOR.dom.nodeList(Z.$.rows);aa=ab.count();for(ac=aa-1;0<=ac;ac--){Z=ab.getItem(ac),Z.$.cells.length||(Z.remove(),aa++)}return ad}function r(H,G){var F=y(H);if(1<F.length){return !1}if(G){return !0}var F=F[0],E=F.getParent(),D=E.getAscendant("table"),C=CKEDITOR.tools.buildTableMap(D),B=E.$.rowIndex,A=q(C,B,F),s=F.$.rowSpan,h;if(1<s){h=Math.ceil(s/2);for(var s=Math.floor(s/2),E=B+h,D=new CKEDITOR.dom.element(D.$.rows[E]),C=q(C,E),a,E=F.clone(),B=0;B<C.length;B++){if(a=C[B],a.parentNode==D.$&&B>A){E.insertBefore(new CKEDITOR.dom.element(a));break}else{a=null}}a||D.append(E)}else{for(s=h=1,D=E.clone(),D.insertAfter(E),D.append(E=F.clone()),a=q(C,B),A=0;A<a.length;A++){a[A].rowSpan++}}E.appendBogus();F.$.rowSpan=h;E.$.rowSpan=s;1==h&&F.removeAttribute("rowSpan");1==s&&E.removeAttribute("rowSpan");return E}function i(G,F){var E=y(G);if(1<E.length){return !1}if(F){return !0}var E=E[0],D=E.getParent(),C=D.getAscendant("table"),C=CKEDITOR.tools.buildTableMap(C),B=q(C,D.$.rowIndex,E),A=E.$.colSpan;if(1<A){D=Math.ceil(A/2),A=Math.floor(A/2)}else{for(var A=D=1,s=[],h=0;h<C.length;h++){var a=C[h];s.push(a[B]);1<a[B].rowSpan&&(h+=a[B].rowSpan-1)}for(C=0;C<s.length;C++){s[C].colSpan++}}C=E.clone();C.insertAfter(E);C.appendBogus();E.$.colSpan=D;C.$.colSpan=A;1==D&&E.removeAttribute("colSpan");1==A&&C.removeAttribute("colSpan");return C}var z=/^(?:td|th)$/;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(e){function a(c){return CKEDITOR.tools.extend(c||{},{contextSensitive:1,refresh:function(g,f){this.setState(f.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function b(f,c){var g=e.addCommand(f,c);e.addFeature(g)}var d=e.lang.table;b("cellProperties",new CKEDITOR.dialogCommand("cellProperties",a({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:"table"})));CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js");b("rowDelete",a({requiredContent:"table",exec:function(c){c=c.getSelection();t(x(c))}}));b("rowInsertBefore",a({requiredContent:"table",exec:function(c){c=c.getSelection();u(c,!0)}}));b("rowInsertAfter",a({requiredContent:"table",exec:function(c){c=c.getSelection();u(c)}}));b("columnDelete",a({requiredContent:"table",exec:function(I){I=I.getSelection();I=y(I);var H=I[0],G=I[I.length-1];I=H.getAscendant("table");for(var F=CKEDITOR.tools.buildTableMap(I),E,D,C=[],B=0,A=F.length;B<A;B++){for(var s=0,f=F[B].length;s<f;s++){F[B][s]==H.$&&(E=s),F[B][s]==G.$&&(D=s)}}for(B=E;B<=D;B++){for(s=0;s<F.length;s++){G=F[s],H=new CKEDITOR.dom.element(I.$.rows[s]),G=new CKEDITOR.dom.element(G[B]),G.$&&(1==G.$.colSpan?G.remove():G.$.colSpan-=1,s+=G.$.rowSpan-1,H.$.cells.length||C.push(H))}}D=I.$.rows[0]&&I.$.rows[0].cells;E=new CKEDITOR.dom.element(D[E]||(E?D[E-1]:I.$.parentNode));C.length==A&&I.remove();E&&t(E,!0)}}));b("columnInsertBefore",a({requiredContent:"table",exec:function(c){c=c.getSelection();v(c,!0)}}));b("columnInsertAfter",a({requiredContent:"table",exec:function(c){c=c.getSelection();v(c)}}));b("cellDelete",a({requiredContent:"table",exec:function(c){c=c.getSelection();n(c)}}));b("cellMerge",a({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(c){t(j(c.getSelection()),!0)}}));b("cellMergeRight",a({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(c){t(j(c.getSelection(),"right"),!0)}}));b("cellMergeDown",a({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(c){t(j(c.getSelection(),"down"),!0)}}));b("cellVerticalSplit",a({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(c){t(i(c.getSelection()))}}));b("cellHorizontalSplit",a({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(c){t(r(c.getSelection()))}}));b("cellInsertBefore",a({requiredContent:"table",exec:function(c){c=c.getSelection();o(c,!0)}}));b("cellInsertAfter",a({requiredContent:"table",exec:function(c){c=c.getSelection();o(c)}}));e.addMenuItems&&e.addMenuItems({tablecell:{label:d.cell.menu,group:"tablecell",order:1,getItems:function(){var c=e.getSelection(),f=y(c);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:j(c,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:j(c,"right",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:j(c,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:i(c,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:r(c,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:0<f.length?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:d.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:d.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:d.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:d.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:d.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:d.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:d.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:d.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:d.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:d.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:d.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:d.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:d.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:d.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:d.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:d.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:d.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}});e.contextMenu&&e.contextMenu.addListener(function(g,f,h){return(g=h.contains({td:1,th:1},1))&&!g.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getSelectedCells:y};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(t){t=t.$.rows;for(var p=-1,s=[],r=0;r<t.length;r++){p++;!s[p]&&(s[p]=[]);for(var q=-1,j=0;j<t[r].cells.length;j++){var i=t[r].cells[j];for(q++;s[p][q];){q++}for(var o=isNaN(i.colSpan)?1:i.colSpan,i=isNaN(i.rowSpan)?1:i.rowSpan,n=0;n<i;n++){s[p+n]||(s[p+n]=[]);for(var g=0;g<o;g++){s[p+n][q+g]=t[r].cells[j]}}q+=o-1}}return s},function(){var h=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],j={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(r){function q(c){o.enabled&&!1!==c.data.command.canUndo&&o.save()}function p(){o.enabled=r.readOnly?!1:"wysiwyg"==r.mode;o.onChange()}var o=r.undoManager=new f(r),a=o.editingHandler=new i(o),k=r.addCommand("undo",{exec:function(){o.undo()&&(r.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),b=r.addCommand("redo",{exec:function(){o.redo()&&(r.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});r.setKeystroke([[h[0],"undo"],[h[1],"redo"],[h[2],"redo"]]);o.onChange=function(){k.setState(o.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);b.setState(o.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};r.on("beforeCommandExec",q);r.on("afterCommandExec",q);r.on("saveSnapshot",function(c){o.save(c.data&&c.data.contentOnly)});r.on("contentDom",a.attachListeners,a);r.on("instanceReady",function(){r.fire("saveSnapshot")});r.on("beforeModeUnload",function(){"wysiwyg"==r.mode&&o.save(!0)});r.on("mode",p);r.on("readOnly",p);r.ui.addButton&&(r.ui.addButton("Undo",{label:r.lang.undo.undo,command:"undo",toolbar:"undo,10"}),r.ui.addButton("Redo",{label:r.lang.undo.redo,command:"redo",toolbar:"undo,20"}));r.resetUndo=function(){o.reset();r.fire("saveSnapshot")};r.on("updateSnapshot",function(){o.currentImage&&o.update()});r.on("lockSnapshot",function(c){c=c.data;o.lock(c&&c.dontUpdate,c&&c.forceUpdate)});r.on("unlockSnapshot",o.unlock,o)}});CKEDITOR.plugins.undo={};var f=CKEDITOR.plugins.undo.UndoManager=function(b){this.strokesRecorded=[0,0];this.locked=null;this.previousKeyGroup=-1;this.limit=b.config.undoStackSize||20;this.strokesLimit=25;this.editor=b;this.reset()};f.prototype={type:function(b,o){var l=f.getKeyGroup(b),k=this.strokesRecorded[l]+1;o=o||k>=this.strokesLimit;this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange());o?(k=0,this.editor.fire("saveSnapshot")):this.editor.fire("change");this.strokesRecorded[l]=k;this.previousKeyGroup=l},keyGroupChanged:function(b){return f.getKeyGroup(b)!=this.previousKeyGroup},reset:function(){this.snapshots=[];this.index=-1;this.currentImage=null;this.hasRedo=this.hasUndo=!1;this.locked=null;this.resetType()},resetType:function(){this.strokesRecorded=[0,0];this.typing=!1;this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(!0);this.hasRedo=!!this.getNextImage(!1);this.resetType();this.onChange()},save:function(l,c,q){var p=this.editor;if(this.locked||"ready"!=p.status||"wysiwyg"!=p.mode){return !1}var o=p.editable();if(!o||"ready"!=o.status){return !1}o=this.snapshots;c||(c=new n(p));if(!1===c.contents){return !1}if(this.currentImage){if(c.equalsContent(this.currentImage)){if(l||c.equalsSelection(this.currentImage)){return !1}}else{!1!==q&&p.fire("change")}}o.splice(this.index+1,o.length-this.index-1);o.length==this.limit&&o.shift();this.index=o.push(c)-1;this.currentImage=c;!1!==q&&this.refreshState();return !0},restoreImage:function(e){var d=this.editor,k;e.bookmarks&&(d.focus(),k=d.getSelection());this.locked={level:999};this.editor.loadSnapshot(e.contents);e.bookmarks?k.selectBookmarks(e.bookmarks):CKEDITOR.env.ie&&(k=this.editor.document.getBody().$.createTextRange(),k.collapse(!0),k.select());this.locked=null;this.index=e.index;this.currentImage=this.snapshots[this.index];this.update();this.refreshState();d.fire("change")},getNextImage:function(k){var e=this.snapshots,o=this.currentImage,l;if(o){if(k){for(l=this.index-1;0<=l;l--){if(k=e[l],!o.equalsContent(k)){return k.index=l,k}}}else{for(l=this.index+1;l<e.length;l++){if(k=e[l],!o.equalsContent(k)){return k.index=l,k}}}}return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(!0);var b=this.getNextImage(!0);if(b){return this.restoreImage(b),!0}}return !1},redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var b=this.getNextImage(!1);if(b){return this.restoreImage(b),!0}}return !1},update:function(e){if(!this.locked){e||(e=new n(this.editor));for(var c=this.index,k=this.snapshots;0<c&&this.currentImage.equalsContent(k[c-1]);){c-=1}k.splice(c,this.index-c+1,e);this.index=c;this.currentImage=e}},updateSelection:function(e){if(!this.snapshots.length){return !1}var d=this.snapshots,k=d[d.length-1];return k.equalsContent(e)&&!k.equalsSelection(e)?(this.currentImage=d[d.length-1]=e,!0):!1},lock:function(k,c){if(this.locked){this.locked.level++}else{if(k){this.locked={level:1}}else{var o=null;if(c){o=!0}else{var l=new n(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(l)&&(o=l)}this.locked={update:o,level:1}}}},unlock:function(){if(this.locked&&!--this.locked.level){var d=this.locked.update;this.locked=null;if(!0===d){this.update()}else{if(d){var c=new n(this.editor,!0);d.equalsContent(c)||this.update()}}}}};f.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1};f.keyGroups={PRINTABLE:0,FUNCTIONAL:1};f.isNavigationKey=function(b){return !!f.navigationKeyCodes[b]};f.getKeyGroup=function(b){var d=f.keyGroups;return j[b]?d.FUNCTIONAL:d.PRINTABLE};f.getOppositeKeyGroup=function(b){var d=f.keyGroups;return b==d.FUNCTIONAL?d.PRINTABLE:d.FUNCTIONAL};f.ieFunctionalKeysBug=function(b){return CKEDITOR.env.ie&&f.getKeyGroup(b)==f.keyGroups.FUNCTIONAL};var n=CKEDITOR.plugins.undo.Image=function(e,d){this.editor=e;e.fire("beforeUndoImage");var k=e.getSnapshot();CKEDITOR.env.ie&&k&&(k=k.replace(/\s+data-cke-expando=".*?"/g,""));this.contents=k;d||(this.bookmarks=(k=k&&e.getSelection())&&k.createBookmarks2(!0));e.fire("afterUndoImage")},m=/\b(?:href|src|name)="[^"]*?"/gi;n.prototype={equalsContent:function(d){var c=this.contents;d=d.contents;CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(c=c.replace(m,""),d=d.replace(m,""));return c!=d?!1:!0},equalsSelection:function(l){var k=this.bookmarks;l=l.bookmarks;if(k||l){if(!k||!l||k.length!=l.length){return !1}for(var q=0;q<k.length;q++){var p=k[q],o=l[q];if(p.startOffset!=o.startOffset||p.endOffset!=o.endOffset||!CKEDITOR.tools.arrayCompare(p.start,o.start)||!CKEDITOR.tools.arrayCompare(p.end,o.end)){return !1}}}return !0}};var i=CKEDITOR.plugins.undo.NativeEditingHandler=function(b){this.undoManager=b;this.ignoreInputEvent=!1;this.keyEventsStack=new g;this.lastKeydownImage=null};i.prototype={onKeydown:function(b){var a=b.data.getKey();if(229!==a){if(-1<CKEDITOR.tools.indexOf(h,b.data.getKeystroke())){b.data.preventDefault()}else{if(this.keyEventsStack.cleanUp(b),b=this.undoManager,this.keyEventsStack.getLast(a)||this.keyEventsStack.push(a),this.lastKeydownImage=new n(b.editor),f.isNavigationKey(a)||this.undoManager.keyGroupChanged(a)){if(b.strokesRecorded[0]||b.strokesRecorded[1]){b.save(!1,this.lastKeydownImage,!1),b.resetType()}}}}},onInput:function(){if(this.ignoreInputEvent){this.ignoreInputEvent=!1}else{var b=this.keyEventsStack.getLast();b||(b=this.keyEventsStack.push(0));this.keyEventsStack.increment(b.keyCode);this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit&&(this.undoManager.type(b.keyCode,!0),this.keyEventsStack.resetInputs())}},onKeyup:function(b){var k=this.undoManager;b=b.data.getKey();var c=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(b);if(!f.ieFunctionalKeysBug(b)||!this.lastKeydownImage||!this.lastKeydownImage.equalsContent(new n(k.editor,!0))){if(0<c){k.type(b)}else{if(f.isNavigationKey(b)){this.onNavigationKey(!0)}}}},onNavigationKey:function(d){var c=this.undoManager;!d&&c.save(!0,null,!1)||c.updateSelection(new n(c.editor));c.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},attachListeners:function(){var b=this.undoManager.editor,k=b.editable(),e=this;k.attachListener(k,"keydown",function(c){e.onKeydown(c);if(f.ieFunctionalKeysBug(c.data.getKey())){e.onInput()}},null,null,999);k.attachListener(k,CKEDITOR.env.ie?"keypress":"input",e.onInput,e,null,999);k.attachListener(k,"keyup",e.onKeyup,e,null,999);k.attachListener(k,"paste",e.ignoreInputEventListener,e,null,999);k.attachListener(k,"drop",e.ignoreInputEventListener,e,null,999);k.attachListener(k.isInline()?k:b.document.getDocumentElement(),"click",function(){e.onNavigationKey()},null,null,999);k.attachListener(this.undoManager.editor,"blur",function(){e.keyEventsStack.remove(9)},null,null,999)}};var g=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack=[]};g.prototype={push:function(b){return this.stack[this.stack.push({keyCode:b,inputs:0})-1]},getLastIndex:function(d){if("number"!=typeof d){return this.stack.length-1}for(var c=this.stack.length;c--;){if(this.stack[c].keyCode==d){return c}}return -1},getLast:function(b){b=this.getLastIndex(b);return -1!=b?this.stack[b]:null},increment:function(b){this.getLast(b).inputs++},remove:function(b){b=this.getLastIndex(b);-1!=b&&this.stack.splice(b,1)},resetInputs:function(b){if("number"==typeof b){this.getLast(b).inputs=0}else{for(b=this.stack.length;b--;){this.stack[b].inputs=0}}},getTotalInputs:function(){for(var d=this.stack.length,c=0;d--;){c+=this.stack[d].inputs}return c},cleanUp:function(b){b=b.data.$;b.ctrlKey||b.metaKey||this.remove(17);b.shiftKey||this.remove(16);b.altKey||this.remove(18)}}}(),CKEDITOR.plugins.add("wsc",{requires:"dialog",parseApi:function(b){b.config.wsc_onFinish="function"===typeof b.config.wsc_onFinish?b.config.wsc_onFinish:function(){};b.config.wsc_onClose="function"===typeof b.config.wsc_onClose?b.config.wsc_onClose:function(){}},parseConfig:function(b){b.config.wsc_customerId=b.config.wsc_customerId||CKEDITOR.config.wsc_customerId||"1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk";b.config.wsc_customDictionaryIds=b.config.wsc_customDictionaryIds||CKEDITOR.config.wsc_customDictionaryIds||"";b.config.wsc_userDictionaryName=b.config.wsc_userDictionaryName||CKEDITOR.config.wsc_userDictionaryName||"";b.config.wsc_customLoaderScript=b.config.wsc_customLoaderScript||CKEDITOR.config.wsc_customLoaderScript;CKEDITOR.config.wsc_cmd=b.config.wsc_cmd||CKEDITOR.config.wsc_cmd||"spell";CKEDITOR.config.wsc_version="v4.3.0-master-d769233";CKEDITOR.config.wsc_removeGlobalVariable=!0},init:function(b){var c=CKEDITOR.env;this.parseConfig(b);this.parseApi(b);b.addCommand("checkspell",new CKEDITOR.dialogCommand("checkspell")).modes={wysiwyg:!CKEDITOR.env.opera&&!CKEDITOR.env.air&&document.domain==window.location.hostname&&!(c.ie&&(8>c.version||c.quirks))};"undefined"==typeof b.plugins.scayt&&b.ui.addButton&&b.ui.addButton("SpellChecker",{label:b.lang.wsc.toolbar,click:function(d){(d.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?d.container.getText():d.document.getBody().getText()).replace(/\s/g,"")?d.execCommand("checkspell"):alert("Nothing to check!")},toolbar:"spellchecker,10"});CKEDITOR.dialog.add("checkspell",this.path+(CKEDITOR.env.ie&&7>=CKEDITOR.env.version?"dialogs/wsc_ie.js":window.postMessage?"dialogs/wsc.js":"dialogs/wsc_ie.js"))}}),CKEDITOR.config.plugins="dialogui,dialog,about,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,templates,menu,contextmenu,div,resize,toolbar,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,forms,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,smiley,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastetext,pastefromword,preview,print,removeformat,save,selectall,showblocks,showborders,sourcearea,specialchar,scayt,stylescombo,tab,table,tabletools,undo,wsc",CKEDITOR.config.skin="moono",function(){var b=function(f,e){var h=CKEDITOR.getUrl("plugins/"+e);f=f.split(",");for(var g=0;g<f.length;g++){CKEDITOR.skin.icons[f[g]]={path:h,offset:-f[++g],bgsize:f[++g]}}};CKEDITOR.env.hidpi?b("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,bidiltr,168,,bidirtl,192,,blockquote,216,,copy-rtl,240,,copy,264,,cut-rtl,288,,cut,312,,paste-rtl,336,,paste,360,,bgcolor,384,,textcolor,408,,templates-rtl,432,,templates,456,,creatediv,480,,find-rtl,504,,find,528,,replace,552,,flash,576,,button,600,,checkbox,624,,form,648,,hiddenfield,672,,imagebutton,696,,radio,720,,select-rtl,744,,select,768,,textarea-rtl,792,,textarea,816,,textfield-rtl,840,,textfield,864,,horizontalrule,888,,iframe,912,,image,936,,indent-rtl,960,,indent,984,,outdent-rtl,1008,,outdent,1032,,smiley,1056,,justifyblock,1080,,justifycenter,1104,,justifyleft,1128,,justifyright,1152,,language,1176,,anchor-rtl,1200,,anchor,1224,,link,1248,,unlink,1272,,bulletedlist-rtl,1296,,bulletedlist,1320,,numberedlist-rtl,1344,,numberedlist,1368,,maximize,1392,,newpage-rtl,1416,,newpage,1440,,pagebreak-rtl,1464,,pagebreak,1488,,pastetext-rtl,1512,,pastetext,1536,,pastefromword-rtl,1560,,pastefromword,1584,,preview-rtl,1608,,preview,1632,,print,1656,,removeformat,1680,,save,1704,,selectall,1728,,showblocks-rtl,1752,,showblocks,1776,,source-rtl,1800,,source,1824,,specialchar,1848,,scayt,1872,,table,1896,,redo-rtl,1920,,redo,1944,,undo-rtl,1968,,undo,1992,,spellchecker,2016,","icons_hidpi.png"):b("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,bidiltr,168,auto,bidirtl,192,auto,blockquote,216,auto,copy-rtl,240,auto,copy,264,auto,cut-rtl,288,auto,cut,312,auto,paste-rtl,336,auto,paste,360,auto,bgcolor,384,auto,textcolor,408,auto,templates-rtl,432,auto,templates,456,auto,creatediv,480,auto,find-rtl,504,auto,find,528,auto,replace,552,auto,flash,576,auto,button,600,auto,checkbox,624,auto,form,648,auto,hiddenfield,672,auto,imagebutton,696,auto,radio,720,auto,select-rtl,744,auto,select,768,auto,textarea-rtl,792,auto,textarea,816,auto,textfield-rtl,840,auto,textfield,864,auto,horizontalrule,888,auto,iframe,912,auto,image,936,auto,indent-rtl,960,auto,indent,984,auto,outdent-rtl,1008,auto,outdent,1032,auto,smiley,1056,auto,justifyblock,1080,auto,justifycenter,1104,auto,justifyleft,1128,auto,justifyright,1152,auto,language,1176,auto,anchor-rtl,1200,auto,anchor,1224,auto,link,1248,auto,unlink,1272,auto,bulletedlist-rtl,1296,auto,bulletedlist,1320,auto,numberedlist-rtl,1344,auto,numberedlist,1368,auto,maximize,1392,auto,newpage-rtl,1416,auto,newpage,1440,auto,pagebreak-rtl,1464,auto,pagebreak,1488,auto,pastetext-rtl,1512,auto,pastetext,1536,auto,pastefromword-rtl,1560,auto,pastefromword,1584,auto,preview-rtl,1608,auto,preview,1632,auto,print,1656,auto,removeformat,1680,auto,save,1704,auto,selectall,1728,auto,showblocks-rtl,1752,auto,showblocks,1776,auto,source-rtl,1800,auto,source,1824,auto,specialchar,1848,auto,scayt,1872,auto,table,1896,auto,redo-rtl,1920,auto,redo,1944,auto,undo-rtl,1968,auto,undo,1992,auto,spellchecker,2016,auto","icons.png")}(),CKEDITOR.lang.languages={af:1,sq:1,ar:1,eu:1,bn:1,bs:1,bg:1,ca:1,"zh-cn":1,zh:1,hr:1,cs:1,da:1,nl:1,en:1,"en-au":1,"en-ca":1,"en-gb":1,eo:1,et:1,fo:1,fi:1,fr:1,"fr-ca":1,gl:1,ka:1,de:1,el:1,gu:1,he:1,hi:1,hu:1,is:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lv:1,lt:1,mk:1,ms:1,mn:1,no:1,nb:1,fa:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,sr:1,"sr-latn":1,si:1,sk:1,sl:1,es:1,sv:1,tt:1,th:1,tr:1,ug:1,uk:1,vi:1,cy:1})})(); |