/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){function ca(a,e){CKEDITOR.tools.extend(this,e,{editor:a,id:"cke-"+CKEDITOR.tools.getUniqueId(),area:a._.notificationArea});e.type||(this.type="info");this.element=this._createElement()}function ea(a){var e=this;this.editor=a;this.notifications=[];this.element=this._createElement();this._uiBuffer=CKEDITOR.tools.eventsBuffer(10,this._layout,this);this._changeBuffer=CKEDITOR.tools.eventsBuffer(500,this._layout,this);a.on("destroy",function(){e._removeListeners();e.element.remove()})}if(!window.CKEDITOR||
!window.CKEDITOR.dom)window.CKEDITOR||(window.CKEDITOR=function(){var a=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,e={timestamp:"F6D8",version:"4.5.1",revision:"a513a92",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:a},status:"unloaded",basePath:function(){var b=window.CKEDITOR_BASEPATH||"";if(!b)for(var f=document.getElementsByTagName("script"),e=0;e<f.length;e++){var g=f[e].src.match(a);if(g){b=g[1];break}}-1==b.indexOf(":/")&&"//"!=b.slice(0,2)&&(b=0===b.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+
b:location.href.match(/^[^\?]*\/(?:)/)[0]+b);if(!b)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return b}(),getUrl:function(a){-1==a.indexOf(":/")&&0!==a.indexOf("/")&&(a=this.basePath+a);this.timestamp&&("/"!=a.charAt(a.length-1)&&!/[&?]t=/.test(a))&&(a+=(0<=a.indexOf("?")?"&":"?")+"t="+this.timestamp);return a},domReady:function(){function a(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",
a,!1),b()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),b())}catch(g){}}function b(){for(var a;a=f.shift();)a()}var f=[];return function(g){function b(){try{document.documentElement.doScroll("left")}catch(c){setTimeout(b,1);return}a()}f.push(g);"complete"===document.readyState&&setTimeout(a,1);if(1==f.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",a,!1),window.addEventListener("load",a,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",
a);window.attachEvent("onload",a);g=!1;try{g=!window.frameElement}catch(c){}document.documentElement.doScroll&&g&&b()}}}()},b=window.CKEDITOR_GETURL;if(b){var f=e.getUrl;e.getUrl=function(a){return b.call(e,a)||f.call(e,a)}}return e}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(a){var e=CKEDITOR.event.prototype,b;for(b in e)a[b]==null&&(a[b]=e[b])},CKEDITOR.event.prototype=function(){function a(a){var d=e(this);return d[a]||(d[a]=new b(a))}var e=function(a){a=
a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},b=function(a){this.name=a;this.listeners=[]};b.prototype={getListenerIndex:function(a){for(var b=0,e=this.listeners;b<e.length;b++)if(e[b].fn==a)return b;return-1}};return{define:function(b,d){var e=a.call(this,b);CKEDITOR.tools.extend(e,d,true)},on:function(b,d,e,i,g){function j(h,a,g,j){h={name:b,sender:this,editor:h,data:a,listenerData:i,stop:g,cancel:j,removeListener:c};return d.call(e,h)===false?false:h.data}function c(){l.removeListener(b,
d)}var h=a.call(this,b);if(h.getListenerIndex(d)<0){h=h.listeners;e||(e=this);isNaN(g)&&(g=10);var l=this;j.fn=d;j.priority=g;for(var o=h.length-1;o>=0;o--)if(h[o].priority<=g){h.splice(o+1,0,j);return{removeListener:c}}h.unshift(j)}return{removeListener:c}},once:function(){var a=Array.prototype.slice.call(arguments),b=a[1];a[1]=function(a){a.removeListener();return b.apply(this,arguments)};return this.on.apply(this,a)},capture:function(){CKEDITOR.event.useCapture=1;var a=this.on.apply(this,arguments);
CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,b=function(){a=1},k=0,i=function(){k=1};return function(g,j,c){var h=e(this)[g],g=a,l=k;a=k=0;if(h){var o=h.listeners;if(o.length)for(var o=o.slice(0),q,m=0;m<o.length;m++){if(h.errorProof)try{q=o[m].call(this,c,j,b,i)}catch(n){}else q=o[m].call(this,c,j,b,i);q===false?k=1:typeof q!="undefined"&&(j=q);if(a||k)break}}j=k?false:typeof j=="undefined"?true:j;a=g;k=l;return j}}(),fireOnce:function(a,b,k){b=this.fire(a,b,k);delete e(this)[a];
return b},removeListener:function(a,b){var k=e(this)[a];if(k){var i=k.getListenerIndex(b);i>=0&&k.listeners.splice(i,1)}},removeAllListeners:function(){var a=e(this),b;for(b in a)delete a[b]},hasListeners:function(a){return(a=e(this)[a])&&a.listeners.length>0}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(a,e){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fire.call(this,
a,e,this)},CKEDITOR.editor.prototype.fireOnce=function(a,e){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fireOnce.call(this,a,e,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var a=navigator.userAgent.toLowerCase(),e=a.match(/edge[ \/](\d+.?\d*)/),b=a.indexOf("trident/")>-1,b=!(!e&&!b),b={ie:b,edge:!!e,webkit:!b&&a.indexOf(" applewebkit/")>-1,air:a.indexOf(" adobeair/")>-1,mac:a.indexOf("macintosh")>-1,quirks:document.compatMode==
"BackCompat"&&(!document.documentMode||document.documentMode<10),mobile:a.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(a),isCustomDomain:function(){if(!this.ie)return false;var a=document.domain,b=window.location.hostname;return a!=b&&a!="["+b+"]"},secure:location.protocol=="https:"};b.gecko=navigator.product=="Gecko"&&!b.webkit&&!b.ie;if(b.webkit)a.indexOf("chrome")>-1?b.chrome=true:b.safari=true;var f=0;if(b.ie){f=e?parseFloat(e[1]):b.quirks||!document.documentMode?parseFloat(a.match(/msie (\d+)/)[1]):
document.documentMode;b.ie9Compat=f==9;b.ie8Compat=f==8;b.ie7Compat=f==7;b.ie6Compat=f<7||b.quirks}if(b.gecko)if(e=a.match(/rv:([\d\.]+)/)){e=e[1].split(".");f=e[0]*1E4+(e[1]||0)*100+(e[2]||0)*1}b.air&&(f=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));b.webkit&&(f=parseFloat(a.match(/ applewebkit\/(\d+)/)[1]));b.version=f;b.isCompatible=!(b.ie&&f<7)&&!(b.gecko&&f<4E4)&&!(b.webkit&&f<534);b.hidpi=window.devicePixelRatio>=2;b.needsBrFiller=b.gecko||b.webkit||b.ie&&f>10;b.needsNbspFiller=b.ie&&f<11;b.cssClass=
"cke_browser_"+(b.ie?"ie":b.gecko?"gecko":b.webkit?"webkit":"unknown");if(b.quirks)b.cssClass=b.cssClass+" cke_browser_quirks";if(b.ie)b.cssClass=b.cssClass+(" cke_browser_ie"+(b.quirks?"6 cke_browser_iequirks":b.version));if(b.air)b.cssClass=b.cssClass+" cke_browser_air";if(b.iOS)b.cssClass=b.cssClass+" cke_browser_ios";if(b.hidpi)b.cssClass=b.cssClass+" cke_hidpi";return b}()),"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if(CKEDITOR.status!=
"basic_ready")CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var a=document.createElement("script");a.type="text/javascript";a.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(a)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(a){(this._.pending||(this._.pending=[])).push(a)};(function(){CKEDITOR.domReady(function(){var a=CKEDITOR.loadFullCore,e=CKEDITOR.loadFullCoreTimeout;if(a){CKEDITOR.status="basic_ready";a&&a._load?a():e&&setTimeout(function(){CKEDITOR.loadFullCore&&
CKEDITOR.loadFullCore()},e*1E3)}})})();CKEDITOR.status="basic_loaded"}(),CKEDITOR.dom={},function(){var a=[],e=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",b=/&/g,f=/>/g,d=/</g,k=/"/g,i=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,g={lt:"<",gt:">",amp:"&",quot:'"',nbsp:" ",shy:"­"},j=function(c,h){return h[0]=="#"?String.fromCharCode(parseInt(h.slice(1),10)):g[h]};CKEDITOR.on("reset",function(){a=[]});CKEDITOR.tools={arrayCompare:function(c,h){if(!c&&!h)return true;
if(!c||!h||c.length!=h.length)return false;for(var a=0;a<c.length;a++)if(c[a]!=h[a])return false;return true},getIndex:function(c,h){for(var a=0;a<c.length;++a)if(h(c[a]))return a;return-1},clone:function(c){var h;if(c&&c instanceof Array){h=[];for(var a=0;a<c.length;a++)h[a]=CKEDITOR.tools.clone(c[a]);return h}if(c===null||typeof c!="object"||c instanceof String||c instanceof Number||c instanceof Boolean||c instanceof Date||c instanceof RegExp||c.nodeType||c.window===c)return c;h=new c.constructor;
for(a in c)h[a]=CKEDITOR.tools.clone(c[a]);return h},capitalize:function(c,h){return c.charAt(0).toUpperCase()+(h?c.slice(1):c.slice(1).toLowerCase())},extend:function(c){var h=arguments.length,a,g;if(typeof(a=arguments[h-1])=="boolean")h--;else if(typeof(a=arguments[h-2])=="boolean"){g=arguments[h-1];h=h-2}for(var b=1;b<h;b++){var j=arguments[b],d;for(d in j)if(a===true||c[d]==null)if(!g||d in g)c[d]=j[d]}return c},prototypedCopy:function(c){var h=function(){};h.prototype=c;return new h},copy:function(c){var h=
{},a;for(a in c)h[a]=c[a];return h},isArray:function(c){return Object.prototype.toString.call(c)=="[object Array]"},isEmpty:function(c){for(var h in c)if(c.hasOwnProperty(h))return false;return true},cssVendorPrefix:function(c,h,a){if(a)return e+c+":"+h+";"+c+":"+h;a={};a[c]=h;a[e+c]=h;return a},cssStyleToDomStyle:function(){var c=document.createElement("div").style,h=typeof c.cssFloat!="undefined"?"cssFloat":typeof c.styleFloat!="undefined"?"styleFloat":"float";return function(c){return c=="float"?
h:c.replace(/-./g,function(c){return c.substr(1).toUpperCase()})}}(),buildStyleHtml:function(c){for(var c=[].concat(c),h,a=[],g=0;g<c.length;g++)if(h=c[g])/@import|[{}]/.test(h)?a.push("<style>"+h+"</style>"):a.push('<link type="text/css" rel=stylesheet href="'+h+'">');return a.join("")},htmlEncode:function(c){return c===void 0||c===null?"":(""+c).replace(b,"&amp;").replace(f,"&gt;").replace(d,"&lt;")},htmlDecode:function(c){return c.replace(i,j)},htmlEncodeAttr:function(c){return CKEDITOR.tools.htmlEncode(c).replace(k,
"&quot;")},htmlDecodeAttr:function(c){return CKEDITOR.tools.htmlDecode(c)},transformPlainTextToHtml:function(c,h){var a=h==CKEDITOR.ENTER_BR,g=this.htmlEncode(c.replace(/\r\n/g,"\n")),g=g.replace(/\t/g,"&nbsp;&nbsp; &nbsp;"),b=h==CKEDITOR.ENTER_P?"p":"div";if(!a){var j=/\n{2}/g;if(j.test(g))var d="<"+b+">",f="</"+b+">",g=d+g.replace(j,function(){return f+d})+f}g=g.replace(/\n/g,"<br>");a||(g=g.replace(RegExp("<br>(?=</"+b+">)"),function(c){return CKEDITOR.tools.repeat(c,2)}));g=g.replace(/^ | $/g,
"&nbsp;");return g=g.replace(/(>|\s) /g,function(c,h){return h+"&nbsp;"}).replace(/ (?=<)/g,"&nbsp;")},getNextNumber:function(){var c=0;return function(){return++c}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var c="e",h=0;h<8;h++)c=c+Math.floor((1+Math.random())*65536).toString(16).substring(1);return c},override:function(c,h){var a=h(c);a.prototype=c.prototype;return a},setTimeout:function(c,h,a,g,b){b||(b=window);a||(a=b);return b.setTimeout(function(){g?
c.apply(a,[].concat(g)):c.apply(a)},h||0)},trim:function(){var c=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(h){return h.replace(c,"")}}(),ltrim:function(){var c=/^[ \t\n\r]+/g;return function(h){return h.replace(c,"")}}(),rtrim:function(){var c=/[ \t\n\r]+$/g;return function(h){return h.replace(c,"")}}(),indexOf:function(c,h){if(typeof h=="function")for(var a=0,g=c.length;a<g;a++){if(h(c[a]))return a}else{if(c.indexOf)return c.indexOf(h);a=0;for(g=c.length;a<g;a++)if(c[a]===h)return a}return-1},
search:function(c,h){var a=CKEDITOR.tools.indexOf(c,h);return a>=0?c[a]:null},bind:function(c,h){return function(){return c.apply(h,arguments)}},createClass:function(c){var h=c.$,a=c.base,g=c.privates||c._,b=c.proto,c=c.statics;!h&&(h=function(){a&&this.base.apply(this,arguments)});if(g)var j=h,h=function(){var c=this._||(this._={}),h;for(h in g){var a=g[h];c[h]=typeof a=="function"?CKEDITOR.tools.bind(a,this):a}j.apply(this,arguments)};if(a){h.prototype=this.prototypedCopy(a.prototype);h.prototype.constructor=
h;h.base=a;h.baseProto=a.prototype;h.prototype.base=function(){this.base=a.prototype.base;a.apply(this,arguments);this.base=arguments.callee}}b&&this.extend(h.prototype,b,true);c&&this.extend(h,c,true);return h},addFunction:function(c,h){return a.push(function(){return c.apply(h||this,arguments)})-1},removeFunction:function(c){a[c]=null},callFunction:function(c){var h=a[c];return h&&h.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var c=/^-?\d+\.?\d*px$/,h;return function(a){h=
CKEDITOR.tools.trim(a+"")+"px";return c.test(h)?h:a||""}}(),convertToPx:function(){var c;return function(h){if(!c){c=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(c)}if(!/%$/.test(h)){c.setStyle("width",h);return c.$.clientWidth}return h}}(),repeat:function(c,h){return Array(h+1).join(c)},tryThese:function(){for(var c,h=0,a=arguments.length;h<a;h++){var g=
arguments[h];try{c=g();break}catch(b){}}return c},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(c){return function(){var h=arguments,a=this;window.setTimeout(function(){c.apply(a,h)},0)}},normalizeCssText:function(c,h){var a=[],g,b=CKEDITOR.tools.parseCssText(c,true,h);for(g in b)a.push(g+":"+b[g]);a.sort();return a.length?a.join(";")+";":""},convertRgbToHex:function(c){return c.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(c,a,g,b){c=
[a,g,b];for(a=0;a<3;a++)c[a]=("0"+parseInt(c[a],10).toString(16)).slice(-2);return"#"+c.join("")})},parseCssText:function(c,h,a){var g={};if(a){a=new CKEDITOR.dom.element("span");a.setAttribute("style",c);c=CKEDITOR.tools.convertRgbToHex(a.getAttribute("style")||"")}if(!c||c==";")return g;c.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(c,a,b){if(h){a=a.toLowerCase();a=="font-family"&&(b=b.toLowerCase().replace(/["']/g,"").replace(/\s*,\s*/g,","));b=CKEDITOR.tools.trim(b)}g[a]=
b});return g},writeCssText:function(c,h){var a,g=[];for(a in c)g.push(a+":"+c[a]);h&&g.sort();return g.join("; ")},objectCompare:function(c,h,a){var g;if(!c&&!h)return true;if(!c||!h)return false;for(g in c)if(c[g]!=h[g])return false;if(!a)for(g in h)if(c[g]!=h[g])return false;return true},objectKeys:function(c){var h=[],a;for(a in c)h.push(a);return h},convertArrayToObject:function(c,a){var g={};arguments.length==1&&(a=true);for(var b=0,j=c.length;b<j;++b)g[c[b]]=a;return g},fixDomain:function(){for(var c;;)try{c=
window.parent.document.domain;break}catch(a){c=c?c.replace(/.+?(?:\.|$)/,""):document.domain;if(!c)break;document.domain=c}return!!c},eventsBuffer:function(c,a,g){function b(){d=(new Date).getTime();j=false;g?a.call(g):a()}var j,d=0;return{input:function(){if(!j){var a=(new Date).getTime()-d;a<c?j=setTimeout(b,c-a):b()}},reset:function(){j&&clearTimeout(j);j=d=0}}},enableHtml5Elements:function(c,a){for(var g=["abbr","article","aside","audio","bdi","canvas","data","datalist","details","figcaption",
"figure","footer","header","hgroup","main","mark","meter","nav","output","progress","section","summary","time","video"],b=g.length,j;b--;){j=c.createElement(g[b]);a&&c.appendChild(j)}},checkIfAnyArrayItemMatches:function(c,a){for(var g=0,b=c.length;g<b;++g)if(c[g].match(a))return true;return false},checkIfAnyObjectPropertyMatches:function(c,a){for(var g in c)if(g.match(a))return true;return false},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw=="}}(),
CKEDITOR.dtd=function(){var a=CKEDITOR.tools.extend,e=function(c,a){for(var g=CKEDITOR.tools.clone(c),b=1;b<arguments.length;b++){var a=arguments[b],j;for(j in a)delete g[j]}return g},b={},f={},d={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},k={command:1,link:1,meta:1,noscript:1,script:1,style:1},i={},g={"#":1},j={center:1,dir:1,noframes:1};
a(b,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},g,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});a(f,d,b,j);e={a:e(b,{a:1,button:1}),abbr:b,address:f,
area:i,article:f,aside:f,audio:a({source:1,track:1},f),b:b,base:i,bdi:b,bdo:b,blockquote:f,body:f,br:i,button:e(b,{a:1,button:1}),canvas:b,caption:f,cite:b,code:b,col:i,colgroup:{col:1},command:i,datalist:a({option:1},b),dd:f,del:b,details:a({summary:1},f),dfn:b,div:f,dl:{dt:1,dd:1},dt:f,em:b,embed:i,fieldset:a({legend:1},f),figcaption:f,figure:a({figcaption:1},f),footer:f,form:f,h1:b,h2:b,h3:b,h4:b,h5:b,h6:b,head:a({title:1,base:1},k),header:f,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:i,html:a({head:1,
body:1},f,k),i:b,iframe:g,img:i,input:i,ins:b,kbd:b,keygen:i,label:b,legend:b,li:f,link:i,main:f,map:f,mark:b,menu:a({li:1},f),meta:i,meter:e(b,{meter:1}),nav:f,noscript:a({link:1,meta:1,style:1},b),object:a({param:1},b),ol:{li:1},optgroup:{option:1},option:g,output:b,p:b,param:i,pre:b,progress:e(b,{progress:1}),q:b,rp:b,rt:b,ruby:a({rp:1,rt:1},b),s:b,samp:b,script:g,section:f,select:{optgroup:1,option:1},small:b,source:i,span:b,strong:b,style:g,sub:b,summary:b,sup:b,table:{caption:1,colgroup:1,thead:1,
tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:f,textarea:g,tfoot:{tr:1},th:f,thead:{tr:1},time:e(b,{time:1}),title:g,tr:{th:1,td:1},track:i,u:b,ul:{li:1},"var":b,video:a({source:1,track:1},f),wbr:i,acronym:b,applet:a({param:1},f),basefont:i,big:b,center:f,dialog:i,dir:{li:1},font:b,isindex:i,noframes:f,strike:b,tt:b};a(e,{$block:a({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},d,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:b,$list:{dl:1,ol:1,
ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:a({body:1,head:1,html:1},e.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 e}(),CKEDITOR.dom.event=function(a){this.$=a},CKEDITOR.dom.event.prototype=
{getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var a=this.getKey();if(this.$.ctrlKey||this.$.metaKey)a=a+CKEDITOR.CTRL;this.$.shiftKey&&(a=a+CKEDITOR.SHIFT);this.$.altKey&&(a=a+CKEDITOR.ALT);return a},preventDefault:function(a){var e=this.$;e.preventDefault?e.preventDefault():e.returnValue=false;a&&this.stopPropagation()},stopPropagation:function(){var a=this.$;a.stopPropagation?a.stopPropagation():a.cancelBubble=true},getTarget:function(){var a=this.$.target||this.$.srcElement;
return a?new CKEDITOR.dom.node(a):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var a=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(a.documentElement.scrollLeft||a.body.scrollLeft),y:this.$.pageY||this.$.clientY+(a.documentElement.scrollTop||a.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(a){if(a)this.$=a},CKEDITOR.dom.domObject.prototype=function(){var a=function(a,b){return function(f){typeof CKEDITOR!="undefined"&&a.fire(b,new CKEDITOR.dom.event(f))}};return{getPrivate:function(){var a;if(!(a=this.getCustomData("_")))this.setCustomData("_",a={});return a},on:function(e){var b=this.getCustomData("_cke_nativeListeners");if(!b){b={};this.setCustomData("_cke_nativeListeners",b)}if(!b[e]){b=b[e]=a(this,e);this.$.addEventListener?this.$.addEventListener(e,b,!!CKEDITOR.event.useCapture):
this.$.attachEvent&&this.$.attachEvent("on"+e,b)}return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(a){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(a)){var b=this.getCustomData("_cke_nativeListeners"),f=b&&b[a];if(f){this.$.removeEventListener?this.$.removeEventListener(a,f,false):this.$.detachEvent&&this.$.detachEvent("on"+a,f);delete b[a]}}},removeAllListeners:function(){var a=this.getCustomData("_cke_nativeListeners"),b;for(b in a){var f=
a[b];this.$.detachEvent?this.$.detachEvent("on"+b,f):this.$.removeEventListener&&this.$.removeEventListener(b,f,false);delete a[b]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}(),function(a){var e={};CKEDITOR.on("reset",function(){e={}});a.equals=function(a){try{return a&&a.$===this.$}catch(f){return false}};a.setCustomData=function(a,f){var d=this.getUniqueId();(e[d]||(e[d]={}))[a]=f;return this};a.getCustomData=function(a){var f=this.$["data-cke-expando"];return(f=f&&e[f])&&a in f?f[a]:
null};a.removeCustomData=function(a){var f=this.$["data-cke-expando"],f=f&&e[f],d,k;if(f){d=f[a];k=a in f;delete f[a]}return k?d:null};a.clearCustomData=function(){this.removeAllListeners();var a=this.$["data-cke-expando"];a&&delete e[a]};a.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(a)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(a){return a?new CKEDITOR.dom[a.nodeType==CKEDITOR.NODE_DOCUMENT?
"document":a.nodeType==CKEDITOR.NODE_ELEMENT?"element":a.nodeType==CKEDITOR.NODE_TEXT?"text":a.nodeType==CKEDITOR.NODE_COMMENT?"comment":a.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](a):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(a,e){a.append(this,e);return a},clone:function(a,e){function b(d){d["data-cke-expando"]&&(d["data-cke-expando"]=false);if(!(d.nodeType!=CKEDITOR.NODE_ELEMENT&&d.nodeType!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)){!e&&d.nodeType==CKEDITOR.NODE_ELEMENT&&d.removeAttribute("id",false);if(a)for(var d=d.childNodes,f=0;f<d.length;f++)b(d[f])}}function f(b){if(!(b.type!=CKEDITOR.NODE_ELEMENT&&
b.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)){if(b.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var d=b.getName();d[0]==":"&&b.renameNode(d.substring(1))}if(a)for(d=0;d<b.getChildCount();d++)f(b.getChild(d))}}var d=this.$.cloneNode(a);b(d);d=new CKEDITOR.dom.node(d);CKEDITOR.env.ie&&(CKEDITOR.env.version<9&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT))&&f(d);return d},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(a){a.$.parentNode.insertBefore(this.$,
a.$.nextSibling);return a},insertBefore:function(a){a.$.parentNode.insertBefore(this.$,a.$);return a},insertBeforeMe:function(a){this.$.parentNode.insertBefore(a.$,this.$);return a},getAddress:function(a){for(var e=[],b=this.getDocument().$.documentElement,f=this.$;f&&f!=b;){var d=f.parentNode;d&&e.unshift(this.getIndex.call({$:f},a));f=d}return e},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(a){function e(a,b){var g=
b?a.nextSibling:a.previousSibling;return!g||g.nodeType!=CKEDITOR.NODE_TEXT?null:g.nodeValue?g:e(g,b)}var b=this.$,f=-1,d;if(!this.$.parentNode||a&&b.nodeType==CKEDITOR.NODE_TEXT&&!b.nodeValue&&!e(b)&&!e(b,true))return-1;do if(!a||!(b!=this.$&&b.nodeType==CKEDITOR.NODE_TEXT&&(d||!b.nodeValue))){f++;d=b.nodeType==CKEDITOR.NODE_TEXT}while(b=b.previousSibling);return f},getNextSourceNode:function(a,e,b){if(b&&!b.call)var f=b,b=function(a){return!a.equals(f)};var a=!a&&this.getFirst&&this.getFirst(),d;
if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;a=this.getNext()}for(;!a&&(d=(d||this).getParent());){if(b&&b(d,true)===false)return null;a=d.getNext()}return!a||b&&b(a)===false?null:e&&e!=a.type?a.getNextSourceNode(false,e,b):a},getPreviousSourceNode:function(a,e,b){if(b&&!b.call)var f=b,b=function(a){return!a.equals(f)};var a=!a&&this.getLast&&this.getLast(),d;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;a=this.getPrevious()}for(;!a&&
(d=(d||this).getParent());){if(b&&b(d,true)===false)return null;a=d.getPrevious()}return!a||b&&b(a)===false?null:e&&a.type!=e?a.getPreviousSourceNode(false,e,b):a},getPrevious:function(a){var e=this.$,b;do b=(e=e.previousSibling)&&e.nodeType!=10&&new CKEDITOR.dom.node(e);while(b&&a&&!a(b));return b},getNext:function(a){var e=this.$,b;do b=(e=e.nextSibling)&&new CKEDITOR.dom.node(e);while(b&&a&&!a(b));return b},getParent:function(a){var e=this.$.parentNode;return e&&(e.nodeType==CKEDITOR.NODE_ELEMENT||
a&&e.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(e):null},getParents:function(a){var e=this,b=[];do b[a?"push":"unshift"](e);while(e=e.getParent());return b},getCommonAncestor:function(a){if(a.equals(this))return this;if(a.contains&&a.contains(this))return a;var e=this.contains?this:this.getParent();do if(e.contains(a))return e;while(e=e.getParent());return null},getPosition:function(a){var e=this.$,b=a.$;if(e.compareDocumentPosition)return e.compareDocumentPosition(b);if(e==
b)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&a.type==CKEDITOR.NODE_ELEMENT){if(e.contains){if(e.contains(b))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(b.contains(e))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in e)return e.sourceIndex<0||b.sourceIndex<0?CKEDITOR.POSITION_DISCONNECTED:e.sourceIndex<b.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}for(var e=this.getAddress(),a=a.getAddress(),
b=Math.min(e.length,a.length),f=0;f<=b-1;f++)if(e[f]!=a[f]){if(f<b)return e[f]<a[f]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;break}return e.length<a.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(a,e){var b=this.$,f,d;if(!e)b=b.parentNode;if(typeof a=="function"){d=true;f=a}else{d=false;f=function(b){b=typeof b.nodeName=="string"?b.nodeName.toLowerCase():"";return typeof a=="string"?b==
a:b in a}}for(;b;){if(f(d?new CKEDITOR.dom.node(b):b))return new CKEDITOR.dom.node(b);try{b=b.parentNode}catch(k){b=null}}return null},hasAscendant:function(a,e){var b=this.$;if(!e)b=b.parentNode;for(;b;){if(b.nodeName&&b.nodeName.toLowerCase()==a)return true;b=b.parentNode}return false},move:function(a,e){a.append(this.remove(),e)},remove:function(a){var e=this.$,b=e.parentNode;if(b){if(a)for(;a=e.firstChild;)b.insertBefore(e.removeChild(a),e);b.removeChild(e)}return this},replace:function(a){this.insertBefore(a);
a.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var a;this.getFirst&&(a=this.getFirst());){if(a.type==CKEDITOR.NODE_TEXT){var e=CKEDITOR.tools.ltrim(a.getText()),b=a.getLength();if(e){if(e.length<b){a.split(b-e.length);this.$.removeChild(this.$.firstChild)}}else{a.remove();continue}}break}},rtrim:function(){for(var a;this.getLast&&(a=this.getLast());){if(a.type==CKEDITOR.NODE_TEXT){var e=CKEDITOR.tools.rtrim(a.getText()),b=a.getLength();if(e){if(e.length<b){a.split(e.length);
this.$.lastChild.parentNode.removeChild(this.$.lastChild)}}else{a.remove();continue}}break}if(CKEDITOR.env.needsBrFiller)(a=this.$.lastChild)&&(a.type==1&&a.nodeName.toLowerCase()=="br")&&a.parentNode.removeChild(a)},isReadOnly:function(a){var e=this;this.type!=CKEDITOR.NODE_ELEMENT&&(e=this.getParent());if(!a&&e&&typeof e.$.isContentEditable!="undefined")return!(e.$.isContentEditable||e.data("cke-editable"));for(;e;){if(e.data("cke-editable"))return false;if(e.hasAttribute("contenteditable"))return e.getAttribute("contenteditable")==
"false";e=e.getParent()}return true}}),CKEDITOR.dom.window=function(a){CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var a=this.$.document,e=a.compatMode=="CSS1Compat";return{width:(e?a.documentElement.clientWidth:a.body.clientWidth)||0,height:(e?a.documentElement.clientHeight:a.body.clientHeight)||0}},getScrollPosition:function(){var a=this.$;
if("pageXOffset"in a)return{x:a.pageXOffset||0,y:a.pageYOffset||0};a=a.document;return{x:a.documentElement.scrollLeft||a.body.scrollLeft||0,y:a.documentElement.scrollTop||a.body.scrollTop||0}},getFrame:function(){var a=this.$.frameElement;return a?new CKEDITOR.dom.element.get(a):null}}),CKEDITOR.dom.document=function(a){CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,
appendStyleSheet:function(a){if(this.$.createStyleSheet)this.$.createStyleSheet(a);else{var e=new CKEDITOR.dom.element("link");e.setAttributes({rel:"stylesheet",type:"text/css",href:a});this.getHead().append(e)}},appendStyleText:function(a){if(this.$.createStyleSheet){var e=this.$.createStyleSheet("");e.cssText=a}else{var b=new CKEDITOR.dom.element("style",this);b.append(new CKEDITOR.dom.text(a,this));this.getHead().append(b)}return e||b.$.sheet},createElement:function(a,e){var b=new CKEDITOR.dom.element(a,
this);if(e){e.attributes&&b.setAttributes(e.attributes);e.styles&&b.setStyles(e.styles)}return b},createText:function(a){return new CKEDITOR.dom.text(a,this)},focus:function(){this.getWindow().focus()},getActive:function(){var a;try{a=this.$.activeElement}catch(e){return null}return new CKEDITOR.dom.element(a)},getById:function(a){return(a=this.$.getElementById(a))?new CKEDITOR.dom.element(a):null},getByAddress:function(a,e){for(var b=this.$.documentElement,f=0;b&&f<a.length;f++){var d=a[f];if(e)for(var k=
-1,i=0;i<b.childNodes.length;i++){var g=b.childNodes[i];if(!(e===true&&g.nodeType==3&&g.previousSibling&&g.previousSibling.nodeType==3)){k++;if(k==d){b=g;break}}}else b=b.childNodes[d]}return b?new CKEDITOR.dom.node(b):null},getElementsByTag:function(a,e){!(CKEDITOR.env.ie&&document.documentMode<=8)&&e&&(a=e+":"+a);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(a))},getHead:function(){var a=this.$.getElementsByTagName("head")[0];return a=a?new CKEDITOR.dom.element(a):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),
true)},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(a){this.$.open("text/html","replace");CKEDITOR.env.ie&&(a=a.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+")();<\/script>"));this.$.write(a);this.$.close()},find:function(a){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(a))},
findOne:function(a){return(a=this.$.querySelector(a))?new CKEDITOR.dom.element(a):null},_getHtml5ShivFrag:function(){var a=this.getCustomData("html5ShivFrag");if(!a){a=this.$.createDocumentFragment();CKEDITOR.tools.enableHtml5Elements(a,true);this.setCustomData("html5ShivFrag",a)}return a}}),CKEDITOR.dom.nodeList=function(a){this.$=a},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(a){if(a<0||a>=this.$.length)return null;return(a=this.$[a])?new CKEDITOR.dom.node(a):
null}},CKEDITOR.dom.element=function(a,e){typeof a=="string"&&(a=(e?e.$:document).createElement(a));CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.element.get=function(a){return(a=typeof a=="string"?document.getElementById(a)||document.getElementsByName(a)[0]:a)&&(a.$?a:new CKEDITOR.dom.element(a))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(a,e){var b=new CKEDITOR.dom.element("div",e);b.setHtml(a);return b.getFirst().remove()},CKEDITOR.dom.element.setMarker=
function(a,e,b,f){var d=e.getCustomData("list_marker_id")||e.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),k=e.getCustomData("list_marker_names")||e.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");a[d]=e;k[b]=1;return e.setCustomData(b,f)},CKEDITOR.dom.element.clearAllMarkers=function(a){for(var e in a)CKEDITOR.dom.element.clearMarkers(a,a[e],1)},CKEDITOR.dom.element.clearMarkers=function(a,e,b){var f=e.getCustomData("list_marker_names"),
d=e.getCustomData("list_marker_id"),k;for(k in f)e.removeCustomData(k);e.removeCustomData("list_marker_names");if(b){e.removeCustomData("list_marker_id");delete a[d]}},function(){function a(a,b){return(" "+a+" ").replace(k," ").indexOf(" "+b+" ")>-1}function e(a){var b=true;if(!a.$.id){a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber();b=false}return function(){b||a.removeAttribute("id")}}function b(a,b){return"#"+a.$.id+" "+b.split(/,\s*/).join(", #"+a.$.id+" ")}function f(a){for(var b=0,c=0,h=i[a].length;c<
h;c++)b=b+(parseInt(this.getComputedStyle(i[a][c])||0,10)||0);return b}var d=!!document.createElement("span").classList,k=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:d?function(a){this.$.classList.add(a);return this}:function(g){var b=this.$.className;b&&(a(b,g)||(b=b+(" "+g)));this.$.className=b||g;return this},removeClass:d?function(a){var b=this.$;b.classList.remove(a);b.className||b.removeAttribute("class");return this}:function(b){var d=
this.getAttribute("class");if(d&&a(d,b))(d=d.replace(RegExp("(?:^|\\s+)"+b+"(?=\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",d):this.removeAttribute("class");return this},hasClass:function(b){return a(this.$.className,b)},append:function(a,b){typeof a=="string"&&(a=this.getDocument().createElement(a));b?this.$.insertBefore(a.$,this.$.firstChild):this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var b=new CKEDITOR.dom.element("div",this.getDocument());
b.setHtml(a);b.moveChildren(this)}else this.setHtml(a)},appendText:function(a){this.$.text!=null&&CKEDITOR.env.ie&&CKEDITOR.env.version<9?this.$.text=this.$.text+a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(a){if(a||CKEDITOR.env.needsBrFiller){for(a=this.getLast();a&&a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();if(!a||!a.is||!a.is("br")){a=this.getDocument().createElement("br");CKEDITOR.env.gecko&&a.setAttribute("type","_moz");this.append(a)}}},
breakParent:function(a,b){var c=new CKEDITOR.dom.range(this.getDocument());c.setStartAfter(this);c.setEndAfter(a);var h=c.extractContents(false,b||false);c.insertNode(this.remove());h.insertAfterNode(this)},contains:!document.compareDocumentPosition?function(a){var b=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?b.contains(a.getParent().$):b!=a.$&&b.contains(a.$)}:function(a){return!!(this.$.compareDocumentPosition(a.$)&16)},focus:function(){function a(){try{this.$.focus()}catch(b){}}return function(b){b?
CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML;return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");a.appendChild(this.$.cloneNode(true));return a.innerHTML},getClientRect:function(){var a=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!a.width&&(a.width=a.right-a.left);!a.height&&(a.height=a.bottom-
a.top);return a},setHtml:CKEDITOR.env.ie&&CKEDITOR.env.version<9?function(a){try{var b=this.$;if(this.getParent())return b.innerHTML=a;var c=this.getDocument()._getHtml5ShivFrag();c.appendChild(b);b.innerHTML=a;c.removeChild(b);return a}catch(h){this.$.innerHTML="";b=new CKEDITOR.dom.element("body",this.getDocument());b.$.innerHTML=a;for(b=b.getChildren();b.count();)this.append(b.getItem(0));return a}}:function(a){return this.$.innerHTML=a},setText:function(){var a=document.createElement("p");a.innerHTML=
"x";a=a.textContent;return function(b){this.$[a?"textContent":"innerText"]=b}}(),getAttribute:function(){var a=function(a){return this.$.getAttribute(a,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){switch(a){case "class":a="className";break;case "http-equiv":a="httpEquiv";break;case "name":return this.$.name;case "tabindex":a=this.$.getAttribute(a,2);a!==0&&this.$.tabIndex===0&&(a=null);return a;case "checked":a=this.$.attributes.getNamedItem(a);return(a.specified?
a.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[a];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(a,2)}:a}(),getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(a){var b=this.getWindow().$.getComputedStyle(this.$,
null);return b?b.getPropertyValue(a):""}:function(a){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(a)]},getDtd:function(){var a=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return a};return a},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:function(){var a=this.$.tabIndex;return a===0&&!CKEDITOR.dtd.$tabIndex[this.getName()]&&parseInt(this.getAttribute("tabindex"),10)!==0?-1:a},getText:function(){return this.$.textContent||this.$.innerText||""},
getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var a=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&document.documentMode<=8){var b=this.$.scopeName;b!="HTML"&&(a=b.toLowerCase()+":"+a)}this.getName=function(){return a};return this.getName()},getValue:function(){return this.$.value},getFirst:function(a){var b=this.$.firstChild;(b=b&&new CKEDITOR.dom.node(b))&&(a&&!a(b))&&(b=
b.getNext(a));return b},getLast:function(a){var b=this.$.lastChild;(b=b&&new CKEDITOR.dom.node(b))&&(a&&!a(b))&&(b=b.getPrevious(a));return b},getStyle:function(a){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]},is:function(){var a=this.getName();if(typeof arguments[0]=="object")return!!arguments[0][a];for(var b=0;b<arguments.length;b++)if(arguments[b]==a)return true;return false},isEditable:function(a){var b=this.getName();if(this.isReadOnly()||this.getComputedStyle("display")=="none"||
this.getComputedStyle("visibility")=="hidden"||CKEDITOR.dtd.$nonEditable[b]||CKEDITOR.dtd.$empty[b]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())return false;if(a!==false){a=CKEDITOR.dtd[b]||CKEDITOR.dtd.span;return!(!a||!a["#"])}return true},isIdentical:function(a){var b=this.clone(0,1),a=a.clone(0,1);b.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);a.removeAttributes(["_moz_dirty","data-cke-expando",
"data-cke-saved-href","data-cke-saved-name"]);if(b.$.isEqualNode){b.$.style.cssText=CKEDITOR.tools.normalizeCssText(b.$.style.cssText);a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText);return b.$.isEqualNode(a.$)}b=b.getOuterHtml();a=a.getOuterHtml();if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&this.is("a")){var c=this.getParent();if(c.type==CKEDITOR.NODE_ELEMENT){c=c.clone();c.setHtml(b);b=c.getHtml();c.setHtml(a);a=c.getHtml()}}return b==a},isVisible:function(){var a=(this.$.offsetHeight||
this.$.offsetWidth)&&this.getComputedStyle("visibility")!="hidden",b,c;if(a&&CKEDITOR.env.webkit){b=this.getWindow();if(!b.equals(CKEDITOR.document.getWindow())&&(c=b.$.frameElement))a=(new CKEDITOR.dom.element(c)).isVisible()}return!!a},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return false;for(var a=this.getChildren(),b=0,c=a.count();b<c;b++){var h=a.getItem(b);if(!(h.type==CKEDITOR.NODE_ELEMENT&&h.data("cke-bookmark"))&&(h.type==CKEDITOR.NODE_ELEMENT&&!h.isEmptyInlineRemoveable()||
h.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(h.getText())))return false}return true},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var a=this.$.attributes,b=0;b<a.length;b++){var c=a[b];switch(c.nodeName){case "class":if(this.getAttribute("class"))return true;case "data-cke-expando":continue;default:if(c.specified)return true}}return false}:function(){var a=this.$.attributes,b=a.length,c={"data-cke-expando":1,_moz_dirty:1};return b>0&&(b>2||!c[a[0].nodeName]||
b==2&&!c[a[1].nodeName])},hasAttribute:function(){function a(b){var c=this.$.attributes.getNamedItem(b);if(this.getName()=="input")switch(b){case "class":return this.$.className.length>0;case "checked":return!!this.$.checked;case "value":b=this.getAttribute("type");return b=="checkbox"||b=="radio"?this.$.value!="on":!!this.$.value}return!c?false:c.specified}return CKEDITOR.env.ie?CKEDITOR.env.version<8?function(b){return b=="name"?!!this.$.name:a.call(this,b)}:a:function(a){return!!this.$.attributes.getNamedItem(a)}}(),
hide:function(){this.setStyle("display","none")},moveChildren:function(a,b){var c=this.$,a=a.$;if(c!=a){var h;if(b)for(;h=c.lastChild;)a.insertBefore(c.removeChild(h),a.firstChild);else for(;h=c.firstChild;)a.appendChild(c.removeChild(h))}},mergeSiblings:function(){function a(b,c,h){if(c&&c.type==CKEDITOR.NODE_ELEMENT){for(var d=[];c.data("cke-bookmark")||c.isEmptyInlineRemoveable();){d.push(c);c=h?c.getNext():c.getPrevious();if(!c||c.type!=CKEDITOR.NODE_ELEMENT)return}if(b.isIdentical(c)){for(var g=
h?b.getLast():b.getFirst();d.length;)d.shift().move(b,!h);c.moveChildren(b,!h);c.remove();g&&g.type==CKEDITOR.NODE_ELEMENT&&g.mergeSiblings()}}}return function(b){if(b===false||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a")){a(this,this.getNext(),true);a(this,this.getPrevious())}}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var a=function(a,c){this.$.setAttribute(a,c);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?
function(b,c){b=="class"?this.$.className=c:b=="style"?this.$.style.cssText=c:b=="tabindex"?this.$.tabIndex=c:b=="checked"?this.$.checked=c:b=="contenteditable"?a.call(this,"contentEditable",c):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(b,c){if(b=="src"&&c.match(/^http:\/\//))try{a.apply(this,arguments)}catch(h){}else a.apply(this,arguments);return this}:a}(),setAttributes:function(a){for(var b in a)this.setAttribute(b,a[b]);return this},setValue:function(a){this.$.value=
a;return this},removeAttribute:function(){var a=function(a){this.$.removeAttribute(a)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){a=="class"?a="className":a=="tabindex"?a="tabIndex":a=="contenteditable"&&(a="contentEditable");this.$.removeAttribute(a)}:a}(),removeAttributes:function(a){if(CKEDITOR.tools.isArray(a))for(var b=0;b<a.length;b++)this.removeAttribute(a[b]);else for(b in a)a.hasOwnProperty(b)&&this.removeAttribute(b)},removeStyle:function(a){var b=
this.$.style;if(!b.removeProperty&&(a=="border"||a=="margin"||a=="padding")){var c=["top","left","right","bottom"],h;a=="border"&&(h=["color","style","width"]);for(var b=[],d=0;d<c.length;d++)if(h)for(var f=0;f<h.length;f++)b.push([a,c[d],h[f]].join("-"));else b.push([a,c[d]].join("-"));for(a=0;a<b.length;a++)this.removeStyle(b[a])}else{b.removeProperty?b.removeProperty(a):b.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(a));this.$.style.cssText||this.removeAttribute("style")}},setStyle:function(a,
b){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]=b;return this},setStyles:function(a){for(var b in a)this.setStyle(b,a[b]);return this},setOpacity:function(a){if(CKEDITOR.env.ie&&CKEDITOR.env.version<9){a=Math.round(a*100);this.setStyle("filter",a>=100?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+a+")")}else this.setStyle("opacity",a)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none"));if(CKEDITOR.env.ie){this.setAttribute("unselectable","on");
for(var a,b=this.getElementsByTag("*"),c=0,h=b.count();c<h;c++){a=b.getItem(c);a.setAttribute("unselectable","on")}}},getPositionedAncestor:function(){for(var a=this;a.getName()!="html";){if(a.getComputedStyle("position")!="static")return a;a=a.getParent()}return null},getDocumentPosition:function(a){var b=0,c=0,h=this.getDocument(),d=h.getBody(),f=h.$.compatMode=="BackCompat";if(document.documentElement.getBoundingClientRect){var e=this.$.getBoundingClientRect(),m=h.$.documentElement,k=m.clientTop||
d.$.clientTop||0,i=m.clientLeft||d.$.clientLeft||0,r=true;if(CKEDITOR.env.ie){r=h.getDocumentElement().contains(this);h=h.getBody().contains(this);r=f&&h||!f&&r}if(r){if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&CKEDITOR.env.version>=12){b=d.$.scrollLeft||m.scrollLeft;c=d.$.scrollTop||m.scrollTop}else{c=f?d.$:m;b=c.scrollLeft;c=c.scrollTop}b=e.left+b-i;c=e.top+c-k}}else{k=this;for(i=null;k&&!(k.getName()=="body"||k.getName()=="html");){b=b+(k.$.offsetLeft-k.$.scrollLeft);c=c+(k.$.offsetTop-k.$.scrollTop);
if(!k.equals(this)){b=b+(k.$.clientLeft||0);c=c+(k.$.clientTop||0)}for(;i&&!i.equals(k);){b=b-i.$.scrollLeft;c=c-i.$.scrollTop;i=i.getParent()}i=k;k=(e=k.$.offsetParent)?new CKEDITOR.dom.element(e):null}}if(a){e=this.getWindow();k=a.getWindow();if(!e.equals(k)&&e.$.frameElement){a=(new CKEDITOR.dom.element(e.$.frameElement)).getDocumentPosition(a);b=b+a.x;c=c+a.y}}if(!document.documentElement.getBoundingClientRect&&CKEDITOR.env.gecko&&!f){b=b+(this.$.clientLeft?1:0);c=c+(this.$.clientTop?1:0)}return{x:b,
y:c}},scrollIntoView:function(a){var b=this.getParent();if(b){do{(b.$.clientWidth&&b.$.clientWidth<b.$.scrollWidth||b.$.clientHeight&&b.$.clientHeight<b.$.scrollHeight)&&!b.is("body")&&this.scrollIntoParent(b,a,1);if(b.is("html")){var c=b.getWindow();try{var h=c.$.frameElement;h&&(b=new CKEDITOR.dom.element(h))}catch(d){}}}while(b=b.getParent())}},scrollIntoParent:function(a,b,c){var h,d,f,e;function m(c,b){if(/body|html/.test(a.getName()))a.getWindow().$.scrollBy(c,b);else{a.$.scrollLeft=a.$.scrollLeft+
c;a.$.scrollTop=a.$.scrollTop+b}}function k(a,c){var b={x:0,y:0};if(!a.is(r?"body":"html")){var h=a.$.getBoundingClientRect();b.x=h.left;b.y=h.top}h=a.getWindow();if(!h.equals(c)){h=k(CKEDITOR.dom.element.get(h.$.frameElement),c);b.x=b.x+h.x;b.y=b.y+h.y}return b}function i(a,c){return parseInt(a.getComputedStyle("margin-"+c)||0,10)||0}!a&&(a=this.getWindow());f=a.getDocument();var r=f.$.compatMode=="BackCompat";a instanceof CKEDITOR.dom.window&&(a=r?f.getBody():f.getDocumentElement());f=a.getWindow();
d=k(this,f);var u=k(a,f),w=this.$.offsetHeight;h=this.$.offsetWidth;var t=a.$.clientHeight,x=a.$.clientWidth;f=d.x-i(this,"left")-u.x||0;e=d.y-i(this,"top")-u.y||0;h=d.x+h+i(this,"right")-(u.x+x)||0;d=d.y+w+i(this,"bottom")-(u.y+t)||0;if(e<0||d>0)m(0,b===true?e:b===false?d:e<0?e:d);if(c&&(f<0||h>0))m(f<0?f:h,0)},setState:function(a,b,c){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+"_off");this.removeClass(b+"_disabled");c&&this.setAttribute("aria-pressed",
true);c&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(b+"_disabled");this.removeClass(b+"_off");this.removeClass(b+"_on");c&&this.setAttribute("aria-disabled",true);c&&this.removeAttribute("aria-pressed");break;default:this.addClass(b+"_off");this.removeClass(b+"_on");this.removeClass(b+"_disabled");c&&this.removeAttribute("aria-pressed");c&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(b){a.src=
a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a,b){for(var c=this.$.attributes,b=b||{},h=0;h<c.length;h++){var d=c[h],f=d.nodeName.toLowerCase(),e;if(!(f in b))if(f=="checked"&&(e=this.getAttribute(f)))a.setAttribute(f,e);else if(!CKEDITOR.env.ie||this.hasAttribute(f)){e=this.getAttribute(f);if(e===null)e=d.nodeValue;a.setAttribute(f,e)}}if(this.$.style.cssText!=="")a.$.style.cssText=this.$.style.cssText},renameNode:function(a){if(this.getName()!=a){var b=
this.getDocument(),a=new CKEDITOR.dom.element(a,b);this.copyAttributes(a);this.moveChildren(a);this.getParent(true)&&this.$.parentNode.replaceChild(a.$,this.$);a.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=a.$;delete this.getName}},getChild:function(){function a(b,c){var h=b.childNodes;if(c>=0&&c<h.length)return h[c]}return function(b){var c=this.$;if(b.slice)for(b=b.slice();b.length>0&&c;)c=a(c,b.shift());else c=a(c,b);return c?new CKEDITOR.dom.node(c):null}}(),getChildCount:function(){return this.$.childNodes.length},
disableContextMenu:function(){this.on("contextmenu",function(a){a.data.getTarget().hasClass("cke_enable_context_menu")||a.data.preventDefault()})},getDirection:function(a){return a?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(a,b){a="data-"+a;if(b===void 0)return this.getAttribute(a);b===false?this.removeAttribute(a):this.setAttribute(a,
b);return null},getEditor:function(){var a=CKEDITOR.instances,b,c;for(b in a){c=a[b];if(c.element.equals(this)&&c.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO)return c}return null},find:function(a){var d=e(this),a=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(b(this,a)));d();return a},findOne:function(a){var d=e(this),a=this.$.querySelector(b(this,a));d();return a?new CKEDITOR.dom.element(a):null},forEach:function(a,b,c){if(!c&&(!b||this.type==b))var h=a(this);if(h!==false)for(var c=this.getChildren(),
d=0;d<c.count();d++){h=c.getItem(d);h.type==CKEDITOR.NODE_ELEMENT?h.forEach(a,b):(!b||h.type==b)&&a(h)}}});var i={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(a,b,c){if(typeof b=="number"){if(c&&(!CKEDITOR.env.ie||!CKEDITOR.env.quirks))b=b-f.call(this,a);this.setStyle(a,b+"px")}};CKEDITOR.dom.element.prototype.getSize=function(a,b){var c=
Math.max(this.$["offset"+CKEDITOR.tools.capitalize(a)],this.$["client"+CKEDITOR.tools.capitalize(a)])||0;b&&(c=c-f.call(this,a));return c}}(),CKEDITOR.dom.documentFragment=function(a){a=a||CKEDITOR.document;this.$=a.type==CKEDITOR.NODE_DOCUMENT?a.$.createDocumentFragment():a},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(a){a=a.$;a.parentNode.insertBefore(this.$,a.nextSibling)},getHtml:function(){var a=
new CKEDITOR.dom.element("div");this.clone(1,1).appendTo(a);return a.getHtml().replace(/\s*data-cke-expando=".*?"/g,"")}},!0,{append:1,appendBogus:1,clone:1,getFirst:1,getHtml:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1}),function(){function a(a,c){var b=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(b.collapsed){this.end();
return null}b.optimize()}var h,d=b.startContainer;h=b.endContainer;var f=b.startOffset,e=b.endOffset,g,k=this.guard,j=this.type,i=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var v=h.type==CKEDITOR.NODE_ELEMENT?h:h.getParent(),s=h.type==CKEDITOR.NODE_ELEMENT?h.getChild(e):h.getNext();this._.guardLTR=function(a,c){return(!c||!v.equals(a))&&(!s||!a.equals(s))&&(a.type!=CKEDITOR.NODE_ELEMENT||!c||!a.equals(b.root))}}if(a&&!this._.guardRTL){var z=d.type==CKEDITOR.NODE_ELEMENT?
d:d.getParent(),y=d.type==CKEDITOR.NODE_ELEMENT?f?d.getChild(f-1):null:d.getPrevious();this._.guardRTL=function(a,c){return(!c||!z.equals(a))&&(!y||!a.equals(y))&&(a.type!=CKEDITOR.NODE_ELEMENT||!c||!a.equals(b.root))}}var B=a?this._.guardRTL:this._.guardLTR;g=k?function(a,c){return B(a,c)===false?false:k(a,c)}:B;if(this.current)h=this.current[i](false,j,g);else{if(a)h.type==CKEDITOR.NODE_ELEMENT&&(h=e>0?h.getChild(e-1):g(h,true)===false?null:h.getPreviousSourceNode(true,j,g));else{h=d;if(h.type==
CKEDITOR.NODE_ELEMENT&&!(h=h.getChild(f)))h=g(d,true)===false?null:d.getNextSourceNode(true,j,g)}h&&g(h)===false&&(h=null)}for(;h&&!this._.end;){this.current=h;if(!this.evaluator||this.evaluator(h)!==false){if(!c)return h}else if(c&&this.evaluator)return false;h=h[i](false,j,g)}this.end();return this.current=null}function e(c){for(var b,h=null;b=a.call(this,c);)h=b;return h}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(a){this.range=a;this._={}},proto:{end:function(){this._.end=1},next:function(){return a.call(this)},
previous:function(){return a.call(this,1)},checkForward:function(){return a.call(this,0,1)!==false},checkBackward:function(){return a.call(this,1,1)!==false},lastForward:function(){return e.call(this)},lastBackward:function(){return e.call(this,1)},reset:function(){delete this.current;this._={}}}});var b={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},f={absolute:1,
fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(a){return this.getComputedStyle("float")=="none"&&!(this.getComputedStyle("position")in f)&&b[this.getComputedStyle("display")]?true:!!(this.is(CKEDITOR.dtd.$block)||a&&this.is(a))};CKEDITOR.dom.walker.blockBoundary=function(a){return function(c){return!(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary(a))}};CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(a,c){function b(a){return a&&
a.getName&&a.getName()=="span"&&a.data("cke-bookmark")}return function(h){var d,f;d=h&&h.type!=CKEDITOR.NODE_ELEMENT&&(f=h.getParent())&&b(f);d=a?d:d||b(h);return!!(c^d)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(c){var b;c&&c.type==CKEDITOR.NODE_TEXT&&(b=!CKEDITOR.tools.trim(c.getText())||CKEDITOR.env.webkit&&c.getText()=="​");return!!(a^b)}};CKEDITOR.dom.walker.invisible=function(a){var c=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.env.webkit?1:0;return function(h){if(c(h))h=
1;else{h.type==CKEDITOR.NODE_TEXT&&(h=h.getParent());h=h.$.offsetWidth<=b}return!!(a^h)}};CKEDITOR.dom.walker.nodeType=function(a,c){return function(b){return!!(c^b.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function c(a){return!k(a)&&!i(a)}return function(b){var h=CKEDITOR.env.needsBrFiller?b.is&&b.is("br"):b.getText&&d.test(b.getText());if(h){h=b.getParent();b=b.getNext(c);h=h.isBlockBoundary()&&(!b||b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary())}return!!(a^h)}};CKEDITOR.dom.walker.temp=
function(a){return function(c){c.type!=CKEDITOR.NODE_ELEMENT&&(c=c.getParent());c=c&&c.hasAttribute("data-cke-temp");return!!(a^c)}};var d=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,k=CKEDITOR.dom.walker.whitespaces(),i=CKEDITOR.dom.walker.bookmark(),g=CKEDITOR.dom.walker.temp();CKEDITOR.dom.walker.ignored=function(a){return function(c){c=k(c)||i(c)||g(c);return!!(a^c)}};var j=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(a){return function(c){for(var b=0,h=c.getChildCount();b<h;++b)if(!j(c.getChild(b)))return!!a;
return!a}};var c=CKEDITOR.dom.walker.empty(),h=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(a){var c={},b;for(b in a)CKEDITOR.dtd[b]["#"]&&(c[b]=1);return c}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=function(a){return function(b){return!!(a^(j(b)?0:b.type==CKEDITOR.NODE_TEXT||b.type==CKEDITOR.NODE_ELEMENT&&(b.is(CKEDITOR.dtd.$inline)||(b.is("hr")||b.getAttribute("contenteditable")=="false")||!CKEDITOR.env.needsBrFiller&&b.is(h)&&c(b))?
1:0))}};CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(i(a)||k(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$inline)&&!a.is(CKEDITOR.dtd.$empty));return a&&(CKEDITOR.env.needsBrFiller?a.is&&a.is("br"):a.getText&&d.test(a.getText()))?a:false}}(),CKEDITOR.dom.range=function(a){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null;this.collapsed=true;var e=a instanceof CKEDITOR.dom.document;this.document=e?a:a.getDocument();
this.root=e?a.getBody():a},function(){function a(a){a.collapsed=a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset}function e(a,c,b,d,f){function g(a,c,b,h){var d=b?a.getPrevious():a.getNext();if(h&&j)return d;if(t||h)c.append(a.clone(true,f),b);else{a.remove();i&&c.append(a)}return d}function e(){var a,c,b,h=Math.min(D.length,H.length);for(a=0;a<h;a++){c=D[a];b=H[a];if(!c.equals(b))return a}return a-1}function k(){var c=L-1,b=A&&E&&!x.equals(v);
if(c<K-1||c<S-1||b){b?a.moveToPosition(v,CKEDITOR.POSITION_BEFORE_START):S==c+1&&B?a.moveToPosition(H[c],CKEDITOR.POSITION_BEFORE_END):a.moveToPosition(H[c+1],CKEDITOR.POSITION_BEFORE_START);if(d)if((c=D[c+1])&&c.type==CKEDITOR.NODE_ELEMENT){b=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none">&nbsp;</span>',a.document);b.insertAfter(c);c.mergeSiblings(false);a.moveToBookmark({startNode:b})}}else a.collapse(true)}a.optimizeBookmark();var j=c===0,i=c==1,t=c==2,c=
t||i,x=a.startContainer,v=a.endContainer,s=a.startOffset,z=a.endOffset,y,B,A,E,C,F;if(t&&v.type==CKEDITOR.NODE_TEXT&&x.equals(v)){x=a.document.createText(x.substring(s,z));b.append(x)}else{if(v.type==CKEDITOR.NODE_TEXT)t?F=true:v=v.split(z);else if(v.getChildCount()>0)if(z>=v.getChildCount()){v=v.getChild(z-1);B=true}else v=v.getChild(z);else E=B=true;if(x.type==CKEDITOR.NODE_TEXT)t?C=true:x.split(s);else if(x.getChildCount()>0)if(s===0){x=x.getChild(s);y=true}else x=x.getChild(s-1);else A=y=true;
for(var D=x.getParents(),H=v.getParents(),L=e(),K=D.length-1,S=H.length-1,J=b,U,R,M,Y=-1,N=L;N<=K;N++){R=D[N];M=R.getNext();for(N==K&&!(R.equals(H[N])&&K<S)?y?g(R,J,false,A):C&&J.append(a.document.createText(R.substring(s))):c&&(U=J.append(R.clone(0,f)));M;){if(M.equals(v)){Y=N;break}if(M.equals(H[N])){Y=N;break}M=g(M,J)}J=U}J=b;for(N=L;N<=S;N++){b=H[N];M=b.getPrevious();if(!b.equals(D[N])){N==S&&!(b.equals(D[N])&&S<K)?B?g(b,J,false,E):F&&J.append(a.document.createText(b.substring(0,z))):c&&(U=J.append(b.clone(0,
f)));if(N>Y)for(;M;)M=g(M,J,true);J=U}}t||k()}}function b(){var a=false,c=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.dom.walker.bookmark(true),d=CKEDITOR.dom.walker.bogus();return function(f){if(b(f)||c(f))return true;if(d(f)&&!a)return a=true;return f.type==CKEDITOR.NODE_TEXT&&(f.hasAscendant("pre")||CKEDITOR.tools.trim(f.getText()).length)||f.type==CKEDITOR.NODE_ELEMENT&&!f.is(k)?false:true}}function f(a){var c=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.dom.walker.bookmark(1);return function(d){return b(d)||
c(d)?true:!a&&i(d)||d.type==CKEDITOR.NODE_ELEMENT&&d.is(CKEDITOR.dtd.$removeEmpty)}}function d(a){return function(){var b;return this[a?"getPreviousNode":"getNextNode"](function(a){!b&&c(a)&&(b=a);return j(a)&&!(i(a)&&a.equals(b))})}}var k={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(),g=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,j=CKEDITOR.dom.walker.editable(),
c=CKEDITOR.dom.walker.ignored(true);CKEDITOR.dom.range.prototype={clone:function(){var a=new CKEDITOR.dom.range(this.root);a._setStartContainer(this.startContainer);a.startOffset=this.startOffset;a._setEndContainer(this.endContainer);a.endOffset=this.endOffset;a.collapsed=this.collapsed;return a},collapse:function(a){if(a){this._setEndContainer(this.startContainer);this.endOffset=this.startOffset}else{this._setStartContainer(this.endContainer);this.startOffset=this.endOffset}this.collapsed=true},
cloneContents:function(a){var c=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||e(this,2,c,false,typeof a=="undefined"?true:a);return c},deleteContents:function(a){this.collapsed||e(this,0,null,a)},extractContents:function(a,c){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||e(this,1,b,a,typeof c=="undefined"?true:c);return b},createBookmark:function(a){var c,b,d,f,g=this.collapsed;c=this.document.createElement("span");c.data("cke-bookmark",1);c.setStyle("display",
"none");c.setHtml("&nbsp;");if(a){d="cke_bm_"+CKEDITOR.tools.getNextNumber();c.setAttribute("id",d+(g?"C":"S"))}if(!g){b=c.clone();b.setHtml("&nbsp;");a&&b.setAttribute("id",d+"E");f=this.clone();f.collapse();f.insertNode(b)}f=this.clone();f.collapse(true);f.insertNode(c);if(b){this.setStartAfter(c);this.setEndBefore(b)}else this.moveToPosition(c,CKEDITOR.POSITION_AFTER_END);return{startNode:a?d+(g?"C":"S"):c,endNode:a?d+"E":b,serializable:a,collapsed:g}},createBookmark2:function(){function a(b){var h=
b.container,d=b.offset,f;f=h;var g=d;f=f.type!=CKEDITOR.NODE_ELEMENT||g===0||g==f.getChildCount()?0:f.getChild(g-1).type==CKEDITOR.NODE_TEXT&&f.getChild(g).type==CKEDITOR.NODE_TEXT;if(f){h=h.getChild(d-1);d=h.getLength()}h.type==CKEDITOR.NODE_ELEMENT&&d>1&&(d=h.getChild(d-1).getIndex(true)+1);if(h.type==CKEDITOR.NODE_TEXT){f=h;for(g=0;(f=f.getPrevious())&&f.type==CKEDITOR.NODE_TEXT;)g=g+f.getLength();f=g;if(h.getText())d=d+f;else{g=h.getPrevious(c);if(f){d=f;h=g?g.getNext():h.getParent().getFirst()}else{h=
h.getParent();d=g?g.getIndex(true)+1:0}}}b.container=h;b.offset=d}var c=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,true);return function(c){var b=this.collapsed,d={container:this.startContainer,offset:this.startOffset},f={container:this.endContainer,offset:this.endOffset};if(c){a(d);b||a(f)}return{start:d.container.getAddress(c),end:b?null:f.container.getAddress(c),startOffset:d.offset,endOffset:f.offset,normalized:c,collapsed:b,is2:true}}}(),moveToBookmark:function(a){if(a.is2){var c=this.document.getByAddress(a.start,
a.normalized),b=a.startOffset,d=a.end&&this.document.getByAddress(a.end,a.normalized),a=a.endOffset;this.setStart(c,b);d?this.setEnd(d,a):this.collapse(true)}else{c=(b=a.serializable)?this.document.getById(a.startNode):a.startNode;a=b?this.document.getById(a.endNode):a.endNode;this.setStartBefore(c);c.remove();if(a){this.setEndBefore(a);a.remove()}else this.collapse(true)}},getBoundaryNodes:function(){var a=this.startContainer,c=this.endContainer,b=this.startOffset,d=this.endOffset,f;if(a.type==CKEDITOR.NODE_ELEMENT){f=
a.getChildCount();if(f>b)a=a.getChild(b);else if(f<1)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a);a=a.getNextSourceNode()||a}}if(c.type==CKEDITOR.NODE_ELEMENT){f=c.getChildCount();if(f>d)c=c.getChild(d).getPreviousSourceNode(true);else if(f<1)c=c.getPreviousSourceNode();else{for(c=c.$;c.lastChild;)c=c.lastChild;c=new CKEDITOR.dom.node(c)}}a.getPosition(c)&CKEDITOR.POSITION_FOLLOWING&&(a=c);return{startNode:a,endNode:c}},getCommonAncestor:function(a,
c){var b=this.startContainer,d=this.endContainer,b=b.equals(d)?a&&b.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?b.getChild(this.startOffset):b:b.getCommonAncestor(d);return c&&!b.is?b.getParent():b},optimize:function(){var a=this.startContainer,c=this.startOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(c?c>=a.getLength()&&this.setStartAfter(a):this.setStartBefore(a));a=this.endContainer;c=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(c?c>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))},
optimizeBookmark:function(){var a=this.startContainer,c=this.endContainer;a.is&&(a.is("span")&&a.data("cke-bookmark"))&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);c&&(c.is&&c.is("span")&&c.data("cke-bookmark"))&&this.setEndAt(c,CKEDITOR.POSITION_AFTER_END)},trim:function(a,c){var b=this.startContainer,d=this.startOffset,f=this.collapsed;if((!a||f)&&b&&b.type==CKEDITOR.NODE_TEXT){if(d)if(d>=b.getLength()){d=b.getIndex()+1;b=b.getParent()}else{var g=b.split(d),d=b.getIndex()+1,b=b.getParent();
if(this.startContainer.equals(this.endContainer))this.setEnd(g,this.endOffset-this.startOffset);else if(b.equals(this.endContainer))this.endOffset=this.endOffset+1}else{d=b.getIndex();b=b.getParent()}this.setStart(b,d);if(f){this.collapse(true);return}}b=this.endContainer;d=this.endOffset;if(!c&&!f&&b&&b.type==CKEDITOR.NODE_TEXT){if(d){d>=b.getLength()||b.split(d);d=b.getIndex()+1}else d=b.getIndex();b=b.getParent();this.setEnd(b,d)}},enlarge:function(a,c){function b(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&
a.hasAttribute("contenteditable")?null:a}var d=RegExp(/[^\s\ufeff]/);switch(a){case CKEDITOR.ENLARGE_INLINE:var f=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed)break;var g=this.getCommonAncestor(),e=this.root,k,j,i,t,x,v=false,s,z;s=this.startContainer;var y=this.startOffset;if(s.type==CKEDITOR.NODE_TEXT){if(y){s=!CKEDITOR.tools.trim(s.substring(0,y)).length&&s;v=!!s}if(s&&!(t=s.getPrevious()))i=s.getParent()}else{y&&(t=s.getChild(y-1)||s.getLast());t||(i=s)}for(i=b(i);i||t;){if(i&&!t){!x&&i.equals(g)&&
(x=true);if(f?i.isBlockBoundary():!e.contains(i))break;if(!v||i.getComputedStyle("display")!="inline"){v=false;x?k=i:this.setStartBefore(i)}t=i.getPrevious()}for(;t;){s=false;if(t.type==CKEDITOR.NODE_COMMENT)t=t.getPrevious();else{if(t.type==CKEDITOR.NODE_TEXT){z=t.getText();d.test(z)&&(t=null);s=/[\s\ufeff]$/.test(z)}else if((t.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||c&&t.is("br"))&&!t.data("cke-bookmark"))if(v&&CKEDITOR.dtd.$removeEmpty[t.getName()]){z=t.getText();if(d.test(z))t=null;else for(var y=
t.$.getElementsByTagName("*"),B=0,A;A=y[B++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){t=null;break}t&&(s=!!z.length)}else t=null;s&&(v?x?k=i:i&&this.setStartBefore(i):v=true);if(t){s=t.getPrevious();if(!i&&!s){i=t;t=null;break}t=s}else i=null}}i&&(i=b(i.getParent()))}s=this.endContainer;y=this.endOffset;i=t=null;x=v=false;var E=function(a,c){var b=new CKEDITOR.dom.range(e);b.setStart(a,c);b.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);var b=new CKEDITOR.dom.walker(b),h;for(b.guard=function(a){return!(a.type==
CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};h=b.next();){if(h.type!=CKEDITOR.NODE_TEXT)return false;z=h!=a?h.getText():h.substring(c);if(d.test(z))return false}return true};if(s.type==CKEDITOR.NODE_TEXT)if(CKEDITOR.tools.trim(s.substring(y)).length)v=true;else{v=!s.getLength();if(y==s.getLength()){if(!(t=s.getNext()))i=s.getParent()}else E(s,y)&&(i=s.getParent())}else(t=s.getChild(y))||(i=s);for(;i||t;){if(i&&!t){!x&&i.equals(g)&&(x=true);if(f?i.isBlockBoundary():!e.contains(i))break;if(!v||i.getComputedStyle("display")!=
"inline"){v=false;x?j=i:i&&this.setEndAfter(i)}t=i.getNext()}for(;t;){s=false;if(t.type==CKEDITOR.NODE_TEXT){z=t.getText();E(t,0)||(t=null);s=/^[\s\ufeff]/.test(z)}else if(t.type==CKEDITOR.NODE_ELEMENT){if((t.$.offsetWidth>0||c&&t.is("br"))&&!t.data("cke-bookmark"))if(v&&CKEDITOR.dtd.$removeEmpty[t.getName()]){z=t.getText();if(d.test(z))t=null;else{y=t.$.getElementsByTagName("*");for(B=0;A=y[B++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){t=null;break}}t&&(s=!!z.length)}else t=null}else s=
1;s&&v&&(x?j=i:this.setEndAfter(i));if(t){s=t.getNext();if(!i&&!s){i=t;t=null;break}t=s}else i=null}i&&(i=b(i.getParent()))}if(k&&j){g=k.contains(j)?j:k;this.setStartBefore(g);this.setEndAfter(g)}break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:i=new CKEDITOR.dom.range(this.root);e=this.root;i.setStartAt(e,CKEDITOR.POSITION_AFTER_START);i.setEnd(this.startContainer,this.startOffset);i=new CKEDITOR.dom.walker(i);var C,F,D=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?
{br:1}:null),H=null,L=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&a.getAttribute("contenteditable")=="false")if(H){if(H.equals(a)){H=null;return}}else H=a;else if(H)return;var c=D(a);c||(C=a);return c},f=function(a){var c=L(a);!c&&(a.is&&a.is("br"))&&(F=a);return c};i.guard=L;i=i.lastBackward();C=C||e;this.setStartAt(C,!C.is("br")&&(!i&&this.checkStartOfBlock()||i&&C.contains(i))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){i=this.clone();
i=new CKEDITOR.dom.walker(i);var K=CKEDITOR.dom.walker.whitespaces(),S=CKEDITOR.dom.walker.bookmark();i.evaluator=function(a){return!K(a)&&!S(a)};if((i=i.previous())&&i.type==CKEDITOR.NODE_ELEMENT&&i.is("br"))break}i=this.clone();i.collapse();i.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);i=new CKEDITOR.dom.walker(i);i.guard=a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?f:L;C=H=F=null;i=i.lastForward();C=C||e;this.setEndAt(C,!i&&this.checkEndOfBlock()||i&&C.contains(i)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);
F&&this.setEndAfter(F)}},shrink:function(a,c,b){if(!this.collapsed){var a=a||CKEDITOR.SHRINK_TEXT,d=this.clone(),f=this.startContainer,g=this.endContainer,e=this.startOffset,k=this.endOffset,i=1,j=1;if(f&&f.type==CKEDITOR.NODE_TEXT)if(e)if(e>=f.getLength())d.setStartAfter(f);else{d.setStartBefore(f);i=0}else d.setStartBefore(f);if(g&&g.type==CKEDITOR.NODE_TEXT)if(k)if(k>=g.getLength())d.setEndAfter(g);else{d.setEndAfter(g);j=0}else d.setEndBefore(g);var d=new CKEDITOR.dom.walker(d),t=CKEDITOR.dom.walker.bookmark();
d.evaluator=function(c){return c.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var x;d.guard=function(c,d){if(t(c))return true;if(a==CKEDITOR.SHRINK_ELEMENT&&c.type==CKEDITOR.NODE_TEXT||d&&c.equals(x)||b===false&&c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()||c.type==CKEDITOR.NODE_ELEMENT&&c.hasAttribute("contenteditable"))return false;!d&&c.type==CKEDITOR.NODE_ELEMENT&&(x=c);return true};if(i)(f=d[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(f,
c?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);if(j){d.reset();(d=d[a==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(d,c?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)}return!(!i&&!j)}},insertNode:function(a){this.optimizeBookmark();this.trim(false,true);var c=this.startContainer,b=c.getChild(this.startOffset);b?a.insertBefore(b):c.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,
c){this.setStartAt(a,c);this.collapse(true)},moveToRange:function(a){this.setStart(a.startContainer,a.startOffset);this.setEnd(a.endContainer,a.endOffset)},selectNodeContents:function(a){this.setStart(a,0);this.setEnd(a,a.type==CKEDITOR.NODE_TEXT?a.getLength():a.getChildCount())},setStart:function(c,b){if(c.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[c.getName()]){b=c.getIndex();c=c.getParent()}this._setStartContainer(c);this.startOffset=b;if(!this.endContainer){this._setEndContainer(c);this.endOffset=
b}a(this)},setEnd:function(c,b){if(c.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[c.getName()]){b=c.getIndex()+1;c=c.getParent()}this._setEndContainer(c);this.endOffset=b;if(!this.startContainer){this._setStartContainer(c);this.startOffset=b}a(this)},setStartAfter:function(a){this.setStart(a.getParent(),a.getIndex()+1)},setStartBefore:function(a){this.setStart(a.getParent(),a.getIndex())},setEndAfter:function(a){this.setEnd(a.getParent(),a.getIndex()+1)},setEndBefore:function(a){this.setEnd(a.getParent(),
a.getIndex())},setStartAt:function(c,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setStart(c,0);break;case CKEDITOR.POSITION_BEFORE_END:c.type==CKEDITOR.NODE_TEXT?this.setStart(c,c.getLength()):this.setStart(c,c.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(c);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(c)}a(this)},setEndAt:function(c,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setEnd(c,0);break;case CKEDITOR.POSITION_BEFORE_END:c.type==
CKEDITOR.NODE_TEXT?this.setEnd(c,c.getLength()):this.setEnd(c,c.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(c);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(c)}a(this)},fixBlock:function(a,c){var b=this.createBookmark(),d=this.document.createElement(c);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(d);d.trim();this.insertNode(d);var f=d.getBogus();f&&f.remove();d.appendBogus();this.moveToBookmark(b);return d},
splitBlock:function(a,c){var b=new CKEDITOR.dom.elementPath(this.startContainer,this.root),d=new CKEDITOR.dom.elementPath(this.endContainer,this.root),f=b.block,g=d.block,e=null;if(!b.blockLimit.equals(d.blockLimit))return null;if(a!="br"){if(!f){f=this.fixBlock(true,a);g=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block}g||(g=this.fixBlock(false,a))}b=f&&this.checkStartOfBlock();d=g&&this.checkEndOfBlock();this.deleteContents();if(f&&f.equals(g))if(d){e=new CKEDITOR.dom.elementPath(this.startContainer,
this.root);this.moveToPosition(g,CKEDITOR.POSITION_AFTER_END);g=null}else if(b){e=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);f=null}else{g=this.splitElement(f,c||false);f.is("ul","ol")||f.appendBogus()}return{previousBlock:f,nextBlock:g,wasStartOfBlock:b,wasEndOfBlock:d,elementPath:e}},splitElement:function(a,c){if(!this.collapsed)return null;this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var b=this.extractContents(false,c||false),
d=a.clone(false,c||false);b.appendTo(d);d.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return d},removeEmptyBlocksAtEnd:function(){function a(h){return function(a){return c(a)||(b(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable())||h.is("table")&&a.is("caption")?false:true}}var c=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.dom.walker.bookmark(false);return function(c){for(var b=this.createBookmark(),d=this[c?"endPath":"startPath"](),f=d.block||d.blockLimit,g;f&&
!f.equals(d.root)&&!f.getFirst(a(f));){g=f.getParent();this[c?"setEndAt":"setStartAt"](f,CKEDITOR.POSITION_AFTER_END);f.remove(1);f=g}this.moveToBookmark(b)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(a,c){var b=c==CKEDITOR.START,d=this.clone();d.collapse(b);d[b?"setStartAt":"setEndAt"](a,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);
d=new CKEDITOR.dom.walker(d);d.evaluator=f(b);return d[b?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var a=this.startContainer,c=this.startOffset;if(CKEDITOR.env.ie&&c&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.ltrim(a.substring(0,c));g.test(a)&&this.trim(0,1)}this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,this.root);c=this.clone();c.collapse(true);c.setStartAt(a.block||a.blockLimit,CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(c);a.evaluator=b();
return a.checkBackward()},checkEndOfBlock:function(){var a=this.endContainer,c=this.endOffset;if(CKEDITOR.env.ie&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.rtrim(a.substring(c));g.test(a)&&this.trim(1,0)}this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer,this.root);c=this.clone();c.collapse(false);c.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END);a=new CKEDITOR.dom.walker(c);a.evaluator=b();return a.checkForward()},getPreviousNode:function(a,c,b){var d=this.clone();d.collapse(1);
d.setStartAt(b||this.root,CKEDITOR.POSITION_AFTER_START);b=new CKEDITOR.dom.walker(d);b.evaluator=a;b.guard=c;return b.previous()},getNextNode:function(a,c,b){var d=this.clone();d.collapse();d.setEndAt(b||this.root,CKEDITOR.POSITION_BEFORE_END);b=new CKEDITOR.dom.walker(d);b.evaluator=a;b.guard=c;return b.next()},checkReadOnly:function(){function a(c,b){for(;c;){if(c.type==CKEDITOR.NODE_ELEMENT){if(c.getAttribute("contentEditable")=="false"&&!c.data("cke-editable"))return 0;if(c.is("html")||c.getAttribute("contentEditable")==
"true"&&(c.contains(b)||c.equals(b)))break}c=c.getParent()}return 1}return function(){var c=this.startContainer,b=this.endContainer;return!(a(c,b)&&a(b,c))}}(),moveToElementEditablePosition:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable(false)){this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);return true}for(var d=0;a;){if(a.type==CKEDITOR.NODE_TEXT){b&&this.endContainer&&this.checkEndOfBlock()&&g.test(a.getText())?this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START):
this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);d=1;break}if(a.type==CKEDITOR.NODE_ELEMENT)if(a.isEditable()){this.moveToPosition(a,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START);d=1}else if(b&&a.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START);else if(a.getAttribute("contenteditable")=="false"&&a.is(CKEDITOR.dtd.$block)){this.setStartBefore(a);this.setEndAfter(a);return true}var f=a,e=d,k=
void 0;f.type==CKEDITOR.NODE_ELEMENT&&f.isEditable(false)&&(k=f[b?"getLast":"getFirst"](c));!e&&!k&&(k=f[b?"getPrevious":"getNext"](c));a=k}return!!d},moveToClosestEditablePosition:function(a,c){var b,d=0,f,g,e=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];if(a){b=new CKEDITOR.dom.range(this.root);b.moveToPosition(a,e[c?0:1])}else b=this.clone();if(a&&!a.is(CKEDITOR.dtd.$block))d=1;else if(f=b[c?"getNextEditableNode":"getPreviousEditableNode"]()){d=1;if((g=f.type==CKEDITOR.NODE_ELEMENT)&&
f.is(CKEDITOR.dtd.$block)&&f.getAttribute("contenteditable")=="false"){b.setStartAt(f,CKEDITOR.POSITION_BEFORE_START);b.setEndAt(f,CKEDITOR.POSITION_AFTER_END)}else if(!CKEDITOR.env.needsBrFiller&&g&&f.is(CKEDITOR.dom.walker.validEmptyBlockContainers)){b.setEnd(f,0);b.collapse()}else b.moveToPosition(f,e[c?1:0])}d&&this.moveToRange(b);return!!d},moveToElementEditStart:function(a){return this.moveToElementEditablePosition(a)},moveToElementEditEnd:function(a){return this.moveToElementEditablePosition(a,
true)},getEnclosedNode:function(){var a=this.clone();a.optimize();if(a.startContainer.type!=CKEDITOR.NODE_ELEMENT||a.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var a=new CKEDITOR.dom.walker(a),c=CKEDITOR.dom.walker.bookmark(false,true),b=CKEDITOR.dom.walker.whitespaces(true);a.evaluator=function(a){return b(a)&&c(a)};var d=a.next();a.reset();return d&&d.equals(a.previous())?d:null},getTouchedStartNode:function(){var a=this.startContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?
a:a.getChild(this.startOffset)||a},getTouchedEndNode:function(){var a=this.endContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.endOffset-1)||a},getNextEditableNode:d(),getPreviousEditableNode:d(1),scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("<span>&nbsp;</span>",this.document),c,b,d,f=this.clone();f.optimize();if(d=f.startContainer.type==CKEDITOR.NODE_TEXT){b=f.startContainer.getText();c=f.startContainer.split(f.startOffset);a.insertAfter(f.startContainer)}else f.insertNode(a);
a.scrollIntoView();if(d){f.startContainer.setText(b);c.remove()}a.remove()},_setStartContainer:function(a){this.startContainer=a},_setEndContainer:function(a){this.endContainer=a}}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT=
2,"use strict",function(){function a(a){if(!(arguments.length<1)){this.range=a;this.forceBrBreak=0;this.enlargeBr=1;this.enforceRealBlocks=0;this._||(this._={})}}function e(a){var b=[];a.forEach(function(a){if(a.getAttribute("contenteditable")=="true"){b.push(a);return false}},CKEDITOR.NODE_ELEMENT,true);return b}function b(a,d,f,g){a:{g==null&&(g=e(f));for(var k;k=g.shift();)if(k.getDtd().p){g={element:k,remaining:g};break a}g=null}if(!g)return 0;if((k=CKEDITOR.filter.instances[g.element.data("cke-filter")])&&
!k.check(d))return b(a,d,f,g.remaining);d=new CKEDITOR.dom.range(g.element);d.selectNodeContents(g.element);d=d.createIterator();d.enlargeBr=a.enlargeBr;d.enforceRealBlocks=a.enforceRealBlocks;d.activeFilter=d.filter=k;a._.nestedEditable={element:g.element,container:f,remaining:g.remaining,iterator:d};return 1}function f(a,b,d){if(!b)return false;a=a.clone();a.collapse(!d);return a.checkBoundaryOfElement(b,d?CKEDITOR.START:CKEDITOR.END)}var d=/^[\r\n\t ]+$/,k=CKEDITOR.dom.walker.bookmark(false,true),
i=CKEDITOR.dom.walker.whitespaces(true),g=function(a){return k(a)&&i(a)},j={dd:1,dt:1,li:1};a.prototype={getNextParagraph:function(a){var h,e,i,q,m,a=a||"p";if(this._.nestedEditable){if(h=this._.nestedEditable.iterator.getNextParagraph(a)){this.activeFilter=this._.nestedEditable.iterator.activeFilter;return h}this.activeFilter=this.filter;if(b(this,a,this._.nestedEditable.container,this._.nestedEditable.remaining)){this.activeFilter=this._.nestedEditable.iterator.activeFilter;return this._.nestedEditable.iterator.getNextParagraph(a)}this._.nestedEditable=
null}if(!this.range.root.getDtd()[a])return null;if(!this._.started){var n=this.range.clone();e=n.startPath();var p=n.endPath(),r=!n.collapsed&&f(n,e.block),u=!n.collapsed&&f(n,p.block,1);n.shrink(CKEDITOR.SHRINK_ELEMENT,true);r&&n.setStartAt(e.block,CKEDITOR.POSITION_BEFORE_END);u&&n.setEndAt(p.block,CKEDITOR.POSITION_AFTER_START);e=n.endContainer.hasAscendant("pre",true)||n.startContainer.hasAscendant("pre",true);n.enlarge(this.forceBrBreak&&!e||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:
CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(!n.collapsed){e=new CKEDITOR.dom.walker(n.clone());p=CKEDITOR.dom.walker.bookmark(true,true);e.evaluator=p;this._.nextNode=e.next();e=new CKEDITOR.dom.walker(n.clone());e.evaluator=p;e=e.previous();this._.lastNode=e.getNextSourceNode(true,null,n.root);if(this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()){p=this.range.clone();p.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END);
if(p.checkEndOfBlock()){p=new CKEDITOR.dom.elementPath(p.endContainer,p.root);this._.lastNode=(p.block||p.blockLimit).getNextSourceNode(true)}}if(!this._.lastNode||!n.root.contains(this._.lastNode)){this._.lastNode=this._.docEndMarker=n.document.createText("");this._.lastNode.insertAfter(e)}n=null}this._.started=1;e=n}p=this._.nextNode;n=this._.lastNode;for(this._.nextNode=null;p;){var r=0,u=p.hasAscendant("pre"),w=p.type!=CKEDITOR.NODE_ELEMENT,t=0;if(w)p.type==CKEDITOR.NODE_TEXT&&d.test(p.getText())&&
(w=0);else{var x=p.getName();if(CKEDITOR.dtd.$block[x]&&p.getAttribute("contenteditable")=="false"){h=p;b(this,a,h);break}else if(p.isBlockBoundary(this.forceBrBreak&&!u&&{br:1})){if(x=="br")w=1;else if(!e&&!p.getChildCount()&&x!="hr"){h=p;i=p.equals(n);break}if(e){e.setEndAt(p,CKEDITOR.POSITION_BEFORE_START);if(x!="br")this._.nextNode=p}r=1}else{if(p.getFirst()){if(!e){e=this.range.clone();e.setStartAt(p,CKEDITOR.POSITION_BEFORE_START)}p=p.getFirst();continue}w=1}}if(w&&!e){e=this.range.clone();
e.setStartAt(p,CKEDITOR.POSITION_BEFORE_START)}i=(!r||w)&&p.equals(n);if(e&&!r)for(;!p.getNext(g)&&!i;){x=p.getParent();if(x.isBlockBoundary(this.forceBrBreak&&!u&&{br:1})){r=1;w=0;i||x.equals(n);e.setEndAt(x,CKEDITOR.POSITION_BEFORE_END);break}p=x;w=1;i=p.equals(n);t=1}w&&e.setEndAt(p,CKEDITOR.POSITION_AFTER_END);p=this._getNextSourceNode(p,t,n);if((i=!p)||r&&e)break}if(!h){if(!e){this._.docEndMarker&&this._.docEndMarker.remove();return this._.nextNode=null}h=new CKEDITOR.dom.elementPath(e.startContainer,
e.root);p=h.blockLimit;r={div:1,th:1,td:1};h=h.block;if(!h&&p&&!this.enforceRealBlocks&&r[p.getName()]&&e.checkStartOfBlock()&&e.checkEndOfBlock()&&!p.equals(e.root))h=p;else if(!h||this.enforceRealBlocks&&h.is(j)){h=this.range.document.createElement(a);e.extractContents().appendTo(h);h.trim();e.insertNode(h);q=m=true}else if(h.getName()!="li"){if(!e.checkStartOfBlock()||!e.checkEndOfBlock()){h=h.clone(false);e.extractContents().appendTo(h);h.trim();m=e.splitBlock();q=!m.wasStartOfBlock;m=!m.wasEndOfBlock;
e.insertNode(h)}}else if(!i)this._.nextNode=h.equals(n)?null:this._getNextSourceNode(e.getBoundaryNodes().endNode,1,n)}if(q)(q=h.getPrevious())&&q.type==CKEDITOR.NODE_ELEMENT&&(q.getName()=="br"?q.remove():q.getLast()&&q.getLast().$.nodeName.toLowerCase()=="br"&&q.getLast().remove());if(m)(q=h.getLast())&&q.type==CKEDITOR.NODE_ELEMENT&&q.getName()=="br"&&(!CKEDITOR.env.needsBrFiller||q.getPrevious(k)||q.getNext(k))&&q.remove();if(!this._.nextNode)this._.nextNode=i||h.equals(n)||!n?null:this._getNextSourceNode(h,
1,n);return h},_getNextSourceNode:function(a,b,d){function f(a){return!(a.equals(d)||a.equals(g))}for(var g=this.range.root,a=a.getNextSourceNode(b,null,f);!k(a);)a=a.getNextSourceNode(b,null,f);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new a(this)}}(),CKEDITOR.command=function(a,e){this.uiItems=[];this.exec=function(b){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return false;this.editorFocus&&a.focus();return this.fire("exec")===false?true:e.exec.call(this,
a,b)!==false};this.refresh=function(a,b){if(!this.readOnly&&a.readOnly)return true;if(this.context&&!b.isContextFor(this.context)){this.disable();return true}if(!this.checkAllowed(true)){this.disable();return true}this.startDisabled||this.enable();this.modes&&!this.modes[a.mode]&&this.disable();return this.fire("refresh",{editor:a,path:b})===false?true:e.refresh&&e.refresh.apply(this,arguments)!==false};var b;this.checkAllowed=function(f){return!f&&typeof b=="boolean"?b:b=a.activeFilter.checkFeature(this)};
CKEDITOR.tools.extend(this,e,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!e.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||typeof this.previousState=="undefined"?CKEDITOR.TRISTATE_OFF:this.previousState)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(a){if(this.state==a||a!=CKEDITOR.TRISTATE_DISABLED&&
!this.checkAllowed())return false;this.previousState=this.state;this.state=a;this.fire("state");return true},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:1E4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function a(a,c,b,d,f){var h,g,a=[];for(h in c){g=c[h];g=typeof g=="boolean"?{}:typeof g=="function"?{match:g}:E(g);if(h.charAt(0)!="$")g.elements=h;if(b)g.featureName=b.toLowerCase();
var e=g;e.elements=i(e.elements,/\s+/)||null;e.propertiesOnly=e.propertiesOnly||e.elements===true;var k=/\s*,\s*/,j=void 0;for(j in H){e[j]=i(e[j],k)||null;var v=e,m=L[j],p=i(e[L[j]],k),l=e[j],n=[],s=true,D=void 0;p?s=false:p={};for(D in l)if(D.charAt(0)=="!"){D=D.slice(1);n.push(D);p[D]=true;s=false}for(;D=n.pop();){l[D]=l["!"+D];delete l["!"+D]}v[m]=(s?false:p)||null}e.match=e.match||null;d.push(g);a.push(g)}for(var c=f.elements,f=f.generic,o,b=0,d=a.length;b<d;++b){h=E(a[b]);g=h.classes===true||
h.styles===true||h.attributes===true;e=h;j=m=k=void 0;for(k in H)e[k]=r(e[k]);v=true;for(j in L){k=L[j];m=e[k];p=[];l=void 0;for(l in m)l.indexOf("*")>-1?p.push(RegExp("^"+l.replace(/\*/g,".*")+"$")):p.push(l);m=p;if(m.length){e[k]=m;v=false}}e.nothingRequired=v;e.noProperties=!(e.attributes||e.classes||e.styles);if(h.elements===true||h.elements===null)f[g?"unshift":"push"](h);else{e=h.elements;delete h.elements;for(o in e)if(c[o])c[o][g?"unshift":"push"](h);else c[o]=[h]}}}function e(a,c,d,f){if(!a.match||
a.match(c))if(f||g(a,c)){if(!a.propertiesOnly)d.valid=true;if(!d.allAttributes)d.allAttributes=b(a.attributes,c.attributes,d.validAttributes);if(!d.allStyles)d.allStyles=b(a.styles,c.styles,d.validStyles);if(!d.allClasses){a=a.classes;c=c.classes;f=d.validClasses;if(a)if(a===true)a=true;else{for(var h=0,e=c.length,k;h<e;++h){k=c[h];f[k]||(f[k]=a(k))}a=false}else a=false;d.allClasses=a}}}function b(a,c,b){if(!a)return false;if(a===true)return true;for(var d in c)b[d]||(b[d]=a(d));return false}function f(a,
c,b){if(!a.match||a.match(c)){if(a.noProperties)return false;b.hadInvalidAttribute=d(a.attributes,c.attributes)||b.hadInvalidAttribute;b.hadInvalidStyle=d(a.styles,c.styles)||b.hadInvalidStyle;a=a.classes;c=c.classes;if(a){for(var f=false,h=a===true,e=c.length;e--;)if(h||a(c[e])){c.splice(e,1);f=true}a=f}else a=false;b.hadInvalidClass=a||b.hadInvalidClass}}function d(a,c){if(!a)return false;var b=false,d=a===true,f;for(f in c)if(d||a(f)){delete c[f];b=true}return b}function k(a,c,b){if(a.disabled||
a.customConfig&&!b||!c)return false;a._.cachedChecks={};return true}function i(a,c){if(!a)return false;if(a===true)return a;if(typeof a=="string"){a=C(a);return a=="*"?true:CKEDITOR.tools.convertArrayToObject(a.split(c))}if(CKEDITOR.tools.isArray(a))return a.length?CKEDITOR.tools.convertArrayToObject(a):false;var b={},d=0,f;for(f in a){b[f]=a[f];d++}return d?b:false}function g(a,c){if(a.nothingRequired)return true;var b,d,f,h;if(f=a.requiredClasses){h=c.classes;for(b=0;b<f.length;++b){d=f[b];if(typeof d==
"string"){if(CKEDITOR.tools.indexOf(h,d)==-1)return false}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(h,d))return false}}return j(c.styles,a.requiredStyles)&&j(c.attributes,a.requiredAttributes)}function j(a,c){if(!c)return true;for(var b=0,d;b<c.length;++b){d=c[b];if(typeof d=="string"){if(!(d in a))return false}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(a,d))return false}return true}function c(a){if(!a)return{};for(var a=a.split(/\s*,\s*/).sort(),c={};a.length;)c[a.shift()]=
F;return c}function h(a){for(var c,b,d,f,h={},e=1,a=C(a);c=a.match(K);){if(b=c[2]){d=l(b,"styles");f=l(b,"attrs");b=l(b,"classes")}else d=f=b=null;h["$"+e++]={elements:c[1],classes:b,styles:d,attributes:f};a=a.slice(c[0].length)}return h}function l(a,c){var b=a.match(S[c]);return b?C(b[1]):null}function o(a){var c=a.styleBackup=a.attributes.style,b=a.classBackup=a.attributes["class"];if(!a.styles)a.styles=CKEDITOR.tools.parseCssText(c||"",1);if(!a.classes)a.classes=b?b.split(/\s+/):[]}function q(a,
c,b,d){var h=0,g;if(d.toHtml)c.name=c.name.replace(J,"$1");if(d.doCallbacks&&a.elementCallbacks){a:for(var k=a.elementCallbacks,i=0,j=k.length,v;i<j;++i)if(v=k[i](c)){g=v;break a}if(g)return g}if(d.doTransform)if(g=a._.transformations[c.name]){o(c);for(k=0;k<g.length;++k)x(a,c,g[k]);n(c)}if(d.doFilter){a:{k=c.name;i=a._;a=i.allowedRules.elements[k];g=i.allowedRules.generic;k=i.disallowedRules.elements[k];i=i.disallowedRules.generic;j=d.skipRequired;v={valid:false,validAttributes:{},validClasses:{},
validStyles:{},allAttributes:false,allClasses:false,allStyles:false,hadInvalidAttribute:false,hadInvalidClass:false,hadInvalidStyle:false};var m,l;if(!a&&!g)a=null;else{o(c);if(k){m=0;for(l=k.length;m<l;++m)if(f(k[m],c,v)===false){a=null;break a}}if(i){m=0;for(l=i.length;m<l;++m)f(i[m],c,v)}if(a){m=0;for(l=a.length;m<l;++m)e(a[m],c,v,j)}if(g){m=0;for(l=g.length;m<l;++m)e(g[m],c,v,j)}a=v}}if(!a){b.push(c);return A}if(!a.valid){b.push(c);return A}l=a.validAttributes;var r=a.validStyles;g=a.validClasses;
var k=c.attributes,s=c.styles,i=c.classes,j=c.classBackup,D=c.styleBackup,t,u,q=[];v=[];var H=/^data-cke-/;m=false;delete k.style;delete k["class"];delete c.classBackup;delete c.styleBackup;if(!a.allAttributes)for(t in k)if(!l[t])if(H.test(t)){if(t!=(u=t.replace(/^data-cke-saved-/,""))&&!l[u]){delete k[t];m=true}}else{delete k[t];m=true}if(!a.allStyles||a.hadInvalidStyle){for(t in s)a.allStyles||r[t]?q.push(t+":"+s[t]):m=true;if(q.length)k.style=q.sort().join("; ")}else if(D)k.style=D;if(!a.allClasses||
a.hadInvalidClass){for(t=0;t<i.length;++t)(a.allClasses||g[i[t]])&&v.push(i[t]);v.length&&(k["class"]=v.sort().join(" "));j&&v.length<j.split(/\s+/).length&&(m=true)}else j&&(k["class"]=j);m&&(h=A);if(!d.skipFinalValidation&&!p(c)){b.push(c);return A}}if(d.toHtml)c.name=c.name.replace(U,"cke:$1");return h}function m(a){var c=[],b;for(b in a)b.indexOf("*")>-1&&c.push(b.replace(/\*/g,".*"));return c.length?RegExp("^(?:"+c.join("|")+")$"):null}function n(a){var c=a.attributes,b;delete c.style;delete c["class"];
if(b=CKEDITOR.tools.writeCssText(a.styles,true))c.style=b;a.classes.length&&(c["class"]=a.classes.sort().join(" "))}function p(a){switch(a.name){case "a":if(!a.children.length&&!a.attributes.name)return false;break;case "img":if(!a.attributes.src)return false}return true}function r(a){if(!a)return false;if(a===true)return true;var c=m(a);return function(b){return b in a||c&&b.match(c)}}function u(){return new CKEDITOR.htmlParser.element("br")}function w(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.name==
"br"||B.$block[a.name])}function t(a,c,b){var d=a.name;if(B.$empty[d]||!a.children.length)if(d=="hr"&&c=="br")a.replaceWith(u());else{a.parent&&b.push({check:"it",el:a.parent});a.remove()}else if(B.$block[d]||d=="tr")if(c=="br"){if(a.previous&&!w(a.previous)){c=u();c.insertBefore(a)}if(a.next&&!w(a.next)){c=u();c.insertAfter(a)}a.replaceWithChildren()}else{var d=a.children,f;b:{f=B[c];for(var h=0,g=d.length,e;h<g;++h){e=d[h];if(e.type==CKEDITOR.NODE_ELEMENT&&!f[e.name]){f=false;break b}}f=true}if(f){a.name=
c;a.attributes={};b.push({check:"parent-down",el:a})}else{f=a.parent;for(var h=f.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||f.name=="body",k,i,g=d.length;g>0;){e=d[--g];if(h&&(e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&B.$inline[e.name])){if(!k){k=new CKEDITOR.htmlParser.element(c);k.insertAfter(a);b.push({check:"parent-down",el:k})}k.add(e,0)}else{k=null;i=B[f.name]||B.span;e.insertAfter(a);f.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(e.type==CKEDITOR.NODE_ELEMENT&&!i[e.name])&&b.push({check:"el-up",
el:e})}}a.remove()}}else if(d in{style:1,script:1})a.remove();else{a.parent&&b.push({check:"it",el:a.parent});a.replaceWithChildren()}}function x(a,c,b){var d,f;for(d=0;d<b.length;++d){f=b[d];if((!f.check||a.check(f.check,false))&&(!f.left||f.left(c))){f.right(c,R);break}}}function v(a,c){var b=c.getDefinition(),d=b.attributes,f=b.styles,h,e,g,k;if(a.name!=b.element)return false;for(h in d)if(h=="class"){b=d[h].split(/\s+/);for(g=a.classes.join("|");k=b.pop();)if(g.indexOf(k)==-1)return false}else if(a.attributes[h]!=
d[h])return false;for(e in f)if(a.styles[e]!=f[e])return false;return true}function s(a,c){var b,d;if(typeof a=="string")b=a;else if(a instanceof CKEDITOR.style)d=a;else{b=a[0];d=a[1]}return[{element:b,left:d,right:function(a,b){b.transform(a,c)}}]}function z(a){return function(c){return v(c,a)}}function y(a){return function(c,b){b[a](c)}}var B=CKEDITOR.dtd,A=1,E=CKEDITOR.tools.copy,C=CKEDITOR.tools.trim,F="cke-test",D=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2;CKEDITOR.filter=function(a){this.allowedContent=
[];this.disallowedContent=[];this.elementCallbacks=null;this.disabled=false;this.editor=null;this.id=CKEDITOR.tools.getNextNumber();this._={allowedRules:{elements:{},generic:[]},disallowedRules:{elements:{},generic:[]},transformations:{},cachedTests:{}};CKEDITOR.filter.instances[this.id]=this;if(a instanceof CKEDITOR.editor){a=this.editor=a;this.customConfig=true;var c=a.config.allowedContent;if(c===true)this.disabled=true;else{if(!c)this.customConfig=false;this.allow(c,"config",1);this.allow(a.config.extraAllowedContent,
"extra",1);this.allow(D[a.enterMode]+" "+D[a.shiftEnterMode],"default",1);this.disallow(a.config.disallowedContent)}}else{this.customConfig=false;this.allow(a,"default",1)}};CKEDITOR.filter.instances={};CKEDITOR.filter.prototype={allow:function(c,b,d){if(!k(this,c,d))return false;var f,e;if(typeof c=="string")c=h(c);else if(c instanceof CKEDITOR.style){if(c.toAllowedContentRules)return this.allow(c.toAllowedContentRules(this.editor),b,d);f=c.getDefinition();c={};d=f.attributes;c[f.element]=f={styles:f.styles,
requiredStyles:f.styles&&CKEDITOR.tools.objectKeys(f.styles)};if(d){d=E(d);f.classes=d["class"]?d["class"].split(/\s+/):null;f.requiredClasses=f.classes;delete d["class"];f.attributes=d;f.requiredAttributes=d&&CKEDITOR.tools.objectKeys(d)}}else if(CKEDITOR.tools.isArray(c)){for(f=0;f<c.length;++f)e=this.allow(c[f],b,d);return e}a(this,c,b,this.allowedContent,this._.allowedRules);return true},applyTo:function(a,c,b,d){if(this.disabled)return false;var f=this,h=[],e=this.editor&&this.editor.config.protectedSource,
g,k=false,i={doFilter:!b,doTransform:true,doCallbacks:true,toHtml:c};a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if(a.attributes["data-cke-filter"]=="off")return false;if(!c||!(a.name=="span"&&~CKEDITOR.tools.objectKeys(a.attributes).join("|").indexOf("data-cke-"))){g=q(f,a,h,i);if(g&A)k=true;else if(g&2)return false}}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var b;a:{var d=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));b=[];var j,
v,m;if(e)for(v=0;v<e.length;++v)if((m=d.match(e[v]))&&m[0].length==d.length){b=true;break a}d=CKEDITOR.htmlParser.fragment.fromHtml(d);d.children.length==1&&(j=d.children[0]).type==CKEDITOR.NODE_ELEMENT&&q(f,j,b,i);b=!b.length}b||h.push(a)}},null,true);h.length&&(k=true);for(var j,a=[],d=D[d||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)],v;b=h.pop();)b.type==CKEDITOR.NODE_ELEMENT?t(b,d,a):b.remove();for(;j=a.pop();){b=j.el;if(b.parent){v=B[b.parent.name]||B.span;switch(j.check){case "it":B.$removeEmpty[b.name]&&
!b.children.length?t(b,d,a):p(b)||t(b,d,a);break;case "el-up":b.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!v[b.name]&&t(b,d,a);break;case "parent-down":b.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!v[b.name]&&t(b.parent,d,a)}}}return k},checkFeature:function(a){if(this.disabled||!a)return true;a.toFeature&&(a=a.toFeature(this.editor));return!a.requiredContent||this.check(a.requiredContent)},disable:function(){this.disabled=true},disallow:function(c){if(!k(this,c,true))return false;typeof c==
"string"&&(c=h(c));a(this,c,null,this.disallowedContent,this._.disallowedRules);return true},addContentForms:function(a){if(!this.disabled&&a){var c,b,d=[],f;for(c=0;c<a.length&&!f;++c){b=a[c];if((typeof b=="string"||b instanceof CKEDITOR.style)&&this.check(b))f=b}if(f){for(c=0;c<a.length;++c)d.push(s(a[c],f));this.addTransformations(d)}}},addElementCallback:function(a){if(!this.elementCallbacks)this.elementCallbacks=[];this.elementCallbacks.push(a)},addFeature:function(a){if(this.disabled||!a)return true;
a.toFeature&&(a=a.toFeature(this.editor));this.allow(a.allowedContent,a.name);this.addTransformations(a.contentTransformations);this.addContentForms(a.contentForms);return a.requiredContent&&(this.customConfig||this.disallowedContent.length)?this.check(a.requiredContent):true},addTransformations:function(a){var c,b;if(!this.disabled&&a){var d=this._.transformations,f;for(f=0;f<a.length;++f){c=a[f];var h=void 0,e=void 0,g=void 0,k=void 0,i=void 0,j=void 0;b=[];for(e=0;e<c.length;++e){g=c[e];if(typeof g==
"string"){g=g.split(/\s*:\s*/);k=g[0];i=null;j=g[1]}else{k=g.check;i=g.left;j=g.right}if(!h){h=g;h=h.element?h.element:k?k.match(/^([a-z0-9]+)/i)[0]:h.left.getDefinition().element}i instanceof CKEDITOR.style&&(i=z(i));b.push({check:k==h?null:k,left:i,right:typeof j=="string"?y(j):j})}c=h;d[c]||(d[c]=[]);d[c].push(b)}}},check:function(a,b,d){if(this.disabled)return true;if(CKEDITOR.tools.isArray(a)){for(var f=a.length;f--;)if(this.check(a[f],b,d))return true;return false}var e,g;if(typeof a=="string"){g=
a+"<"+(b===false?"0":"1")+(d?"1":"0")+">";if(g in this._.cachedChecks)return this._.cachedChecks[g];f=h(a).$1;e=f.styles;var k=f.classes;f.name=f.elements;f.classes=k=k?k.split(/\s*,\s*/):[];f.styles=c(e);f.attributes=c(f.attributes);f.children=[];k.length&&(f.attributes["class"]=k.join(" "));if(e)f.attributes.style=CKEDITOR.tools.writeCssText(f.styles);e=f}else{f=a.getDefinition();e=f.styles;k=f.attributes||{};if(e){e=E(e);k.style=CKEDITOR.tools.writeCssText(e,true)}else e={};e={name:f.element,attributes:k,
classes:k["class"]?k["class"].split(/\s+/):[],styles:e,children:[]}}var k=CKEDITOR.tools.clone(e),i=[],j;if(b!==false&&(j=this._.transformations[e.name])){for(f=0;f<j.length;++f)x(this,e,j[f]);n(e)}q(this,k,i,{doFilter:true,doTransform:b!==false,skipRequired:!d,skipFinalValidation:!d});b=i.length>0?false:CKEDITOR.tools.objectCompare(e.attributes,k.attributes,true)?true:false;typeof a=="string"&&(this._.cachedChecks[g]=b);return b},getAllowedEnterMode:function(){var a=["p","div","br"],c={p:CKEDITOR.ENTER_P,
div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(b,d){var f=a.slice(),h;if(this.check(D[b]))return b;for(d||(f=f.reverse());h=f.pop();)if(this.check(h))return c[h];return CKEDITOR.ENTER_BR}}(),destroy:function(){delete CKEDITOR.filter.instances[this.id];delete this._;delete this.allowedContent;delete this.disallowedContent}};var H={styles:1,attributes:1,classes:1},L={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},K=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,
S={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},J=/^cke:(object|embed|param)$/,U=/^(object|embed|param)$/,R=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,c,b){b=b||c;if(!(b in a.styles)){var d=a.attributes[c];if(d){/^\d+$/.test(d)&&(d=d+"px");a.styles[b]=d}}delete a.attributes[c]},
lengthToAttribute:function(a,c,b){b=b||c;if(!(b in a.attributes)){var d=a.styles[c],f=d&&d.match(/^(\d+)(?:\.\d*)?px$/);f?a.attributes[b]=f[1]:d==F&&(a.attributes[b]=F)}delete a.styles[c]},alignmentToStyle:function(a){if(!("float"in a.styles)){var c=a.attributes.align;if(c=="left"||c=="right")a.styles["float"]=c}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var c=a.styles["float"];if(c=="left"||c=="right")a.attributes.align=c}delete a.styles["float"]},matchesStyle:v,
transform:function(a,c){if(typeof c=="string")a.name=c;else{var b=c.getDefinition(),d=b.styles,f=b.attributes,h,e,g,k;a.name=b.element;for(h in f)if(h=="class"){b=a.classes.join("|");for(g=f[h].split(/\s+/);k=g.pop();)b.indexOf(k)==-1&&a.classes.push(k)}else a.attributes[h]=f[h];for(e in d)a.styles[e]=d[e]}}}}(),function(){CKEDITOR.focusManager=function(a){if(a.focusManager)return a.focusManager;this.hasFocus=false;this.currentActive=null;this._={editor:a};return this};CKEDITOR.focusManager._={blurDelay:200};
CKEDITOR.focusManager.prototype={focus:function(a){this._.timer&&clearTimeout(this._.timer);if(a)this.currentActive=a;if(!this.hasFocus&&!this._.locked){(a=CKEDITOR.currentInstance)&&a.focusManager.blur(1);this.hasFocus=true;(a=this._.editor.container)&&a.addClass("cke_focus");this._.editor.fire("focus")}},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(a){function e(){if(this.hasFocus){this.hasFocus=false;var a=this._.editor.container;a&&a.removeClass("cke_focus");
this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var b=CKEDITOR.focusManager._.blurDelay;a||!b?e.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;e.call(this)},b,this)}},add:function(a,e){var b=a.getCustomData("focusmanager");if(!b||b!=this){b&&b.remove(a);var b="focus",f="blur";if(e)if(CKEDITOR.env.ie){b="focusin";f="focusout"}else CKEDITOR.event.useCapture=1;var d={blur:function(){a.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(a)}};
a.on(b,d.focus,this);a.on(f,d.blur,this);if(e)CKEDITOR.event.useCapture=0;a.setCustomData("focusmanager",this);a.setCustomData("focusmanager_handlers",d)}},remove:function(a){a.removeCustomData("focusmanager");var e=a.removeCustomData("focusmanager_handlers");a.removeListener("blur",e.blur);a.removeListener("focus",e.focus)}}}(),CKEDITOR.keystrokeHandler=function(a){if(a.keystrokeHandler)return a.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes={};this._={editor:a};return this},function(){var a,
e=function(b){var b=b.data,d=b.getKeystroke(),e=this.keystrokes[d],i=this._.editor;a=i.fire("key",{keyCode:d,domEvent:b})===false;if(!a){e&&(a=i.execCommand(e,{from:"keystrokeHandler"})!==false);a||(a=!!this.blockedKeystrokes[d])}a&&b.preventDefault(true);return!a},b=function(b){if(a){a=false;b.data.preventDefault(true)}};CKEDITOR.keystrokeHandler.prototype={attach:function(a){a.on("keydown",e,this);if(CKEDITOR.env.gecko&&CKEDITOR.env.mac)a.on("keypress",b,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(a,e,b){if(!a||!CKEDITOR.lang.languages[a])a=this.detect(e,a);var f=this,e=function(){f[a].dir=
f.rtl[a]?"rtl":"ltr";b(a,f[a])};this[a]?e():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+a+".js"),e,this)},detect:function(a,e){var b=this.languages,e=e||navigator.userLanguage||navigator.language||a,f=e.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),d=f[1],f=f[2];b[d+"-"+f]?d=d+"-"+f:b[d]||(d=null);CKEDITOR.lang.detect=d?function(){return d}:function(a){return a};return d||a}}}(),CKEDITOR.scriptLoader=function(){var a={},e={};return{load:function(b,f,d,k){var i=typeof b=="string";i&&(b=[b]);
d||(d=CKEDITOR);var g=b.length,j=[],c=[],h=function(a){f&&(i?f.call(d,a):f.call(d,j,c))};if(g===0)h(true);else{var l=function(a,b){(b?j:c).push(a);if(--g<=0){k&&CKEDITOR.document.getDocumentElement().removeStyle("cursor");h(b)}},o=function(c,b){a[c]=1;var d=e[c];delete e[c];for(var f=0;f<d.length;f++)d[f](c,b)},q=function(c){if(a[c])l(c,true);else{var b=e[c]||(e[c]=[]);b.push(l);if(!(b.length>1)){var d=new CKEDITOR.dom.element("script");d.setAttributes({type:"text/javascript",src:c});if(f)if(CKEDITOR.env.ie&&
CKEDITOR.env.version<11)d.$.onreadystatechange=function(){if(d.$.readyState=="loaded"||d.$.readyState=="complete"){d.$.onreadystatechange=null;o(c,true)}};else{d.$.onload=function(){setTimeout(function(){o(c,true)},0)};d.$.onerror=function(){o(c,false)}}d.appendTo(CKEDITOR.document.getHead())}}};k&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var m=0;m<g;m++)q(b[m])}},queue:function(){function a(){var b;(b=f[0])&&this.load(b.scriptUrl,b.callback,CKEDITOR,0)}var f=[];return function(d,
e){var i=this;f.push({scriptUrl:d,callback:function(){e&&e.apply(this,arguments);f.shift();a.call(i)}});f.length==1&&a.call(this)}}()}}(),CKEDITOR.resourceManager=function(a,e){this.basePath=a;this.fileName=e;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(a,e){if(this.registered[a])throw'[CKEDITOR.resourceManager.add] The resource name "'+a+'" is already registered.';var b=this.registered[a]=e||{};b.name=a;b.path=this.getPath(a);
CKEDITOR.fire(a+CKEDITOR.tools.capitalize(this.fileName)+"Ready",b);return this.get(a)},get:function(a){return this.registered[a]||null},getPath:function(a){var e=this.externals[a];return CKEDITOR.getUrl(e&&e.dir||this.basePath+a+"/")},getFilePath:function(a){var e=this.externals[a];return CKEDITOR.getUrl(this.getPath(a)+(e?e.file:this.fileName+".js"))},addExternal:function(a,e,b){for(var a=a.split(","),f=0;f<a.length;f++){var d=a[f];b||(e=e.replace(/[^\/]+$/,function(a){b=a;return""}));this.externals[d]=
{dir:e,file:b||this.fileName+".js"}}},load:function(a,e,b){CKEDITOR.tools.isArray(a)||(a=a?[a]:[]);for(var f=this.loaded,d=this.registered,k=[],i={},g={},j=0;j<a.length;j++){var c=a[j];if(c)if(!f[c]&&!d[c]){var h=this.getFilePath(c);k.push(h);h in i||(i[h]=[]);i[h].push(c)}else g[c]=this.get(c)}CKEDITOR.scriptLoader.load(k,function(a,c){if(c.length)throw'[CKEDITOR.resourceManager.load] Resource name "'+i[c[0]].join(",")+'" was not found at "'+c[0]+'".';for(var d=0;d<a.length;d++)for(var h=i[a[d]],
k=0;k<h.length;k++){var j=h[k];g[j]=this.get(j);f[j]=1}e.call(b,g)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(a){var e={};return function(b,f,d){var k={},i=function(b){a.call(this,b,function(a){CKEDITOR.tools.extend(k,a);var c=[],b;for(b in a){var g=a[b],o=g&&g.requires;if(!e[b]){if(g.icons)for(var q=g.icons.split(","),m=q.length;m--;)CKEDITOR.skin.addIcon(q[m],g.path+"icons/"+(CKEDITOR.env.hidpi&&
g.hidpi?"hidpi/":"")+q[m]+".png");e[b]=1}if(o){o.split&&(o=o.split(","));for(g=0;g<o.length;g++)k[o[g]]||c.push(o[g])}}if(c.length)i.call(this,c);else{for(b in k){g=k[b];if(g.onLoad&&!g.onLoad._called){g.onLoad()===false&&delete k[b];g.onLoad._called=1}}f&&f.call(d||window,k)}},this)};i.call(this,b)}}),CKEDITOR.plugins.setLang=function(a,e,b){var f=this.get(a),a=f.langEntries||(f.langEntries={}),f=f.lang||(f.lang=[]);f.split&&(f=f.split(","));CKEDITOR.tools.indexOf(f,e)==-1&&f.push(e);a[e]=b},CKEDITOR.ui=
function(a){if(a.ui)return a.ui;this.items={};this.instances={};this.editor=a;this._={handlers:{}};return this},CKEDITOR.ui.prototype={add:function(a,e,b){b.name=a.toLowerCase();var f=this.items[a]={type:e,command:b.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(f,b)},get:function(a){return this.instances[a]},create:function(a){var e=this.items[a],b=e&&this._.handlers[e.type],f=e&&e.command&&this.editor.getCommand(e.command),b=b&&b.create.apply(this,e.args);this.instances[a]=
b;f&&f.uiItems.push(b);if(b&&!b.type)b.type=e.type;return b},addHandler:function(a,e){this._.handlers[a]=e},space:function(a){return CKEDITOR.document.getById(this.spaceId(a))},spaceId:function(a){return this.editor.id+"_"+a}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function a(a,c,f){CKEDITOR.event.call(this);a=a&&CKEDITOR.tools.clone(a);if(c!==void 0){if(c instanceof CKEDITOR.dom.element){if(!f)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&&f==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!(f==CKEDITOR.ELEMENT_MODE_INLINE?c.is(CKEDITOR.dtd.$editable)||c.is("textarea"):f==CKEDITOR.ELEMENT_MODE_REPLACE?!c.is(CKEDITOR.dtd.$nonBodyContent):1))throw Error('The specified element mode is not supported on element: "'+c.getName()+'".');this.element=c;this.elementMode=f;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(c.getId()||c.getNameAtt())}else this.elementMode=
CKEDITOR.ELEMENT_MODE_NONE;this._={};this.commands={};this.templates={};this.name=this.name||e();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",b);this.on("selectionChange",function(a){d(this,a.data.path)});this.on("activeFilterChange",function(){d(this,this.elementPath(),true)});
this.on("mode",b);this.on("instanceReady",function(){this.config.startupFocus&&this.focus()});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);CKEDITOR.tools.setTimeout(function(){i(this,a)},0,this)}function e(){do var a="editor"+ ++o;while(CKEDITOR.instances[a]);return a}function b(){var a=this.commands,c;for(c in a)f(this,a[c])}function f(a,c){c[c.startDisabled?"disable":a.readOnly&&!c.readOnly?"disable":c.modes[a.mode]?"enable":"disable"]()}function d(a,c,b){if(c){var d,f,h=a.commands;
for(f in h){d=h[f];(b||d.contextSensitive)&&d.refresh(a,c)}}}function k(a){var c=a.config.customConfig;if(!c)return false;var c=CKEDITOR.getUrl(c),b=q[c]||(q[c]={});if(b.fn){b.fn.call(a,a.config);(CKEDITOR.getUrl(a.config.customConfig)==c||!k(a))&&a.fireOnce("customConfigLoaded")}else CKEDITOR.scriptLoader.queue(c,function(){b.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};k(a)});return true}function i(a,c){a.on("customConfigLoaded",function(){if(c){if(c.on)for(var b in c.on)a.on(b,c.on[b]);
CKEDITOR.tools.extend(a.config,c,true);delete a.config.on}b=a.config;a.readOnly=b.readOnly?true:a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.is("textarea")?a.element.hasAttribute("disabled")||a.element.hasAttribute("readonly"):a.element.isReadOnly():a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.element.hasAttribute("disabled")||a.element.hasAttribute("readonly"):false;a.blockless=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?!(a.element.is("textarea")||CKEDITOR.dtd[a.element.getName()].p):
false;a.tabIndex=b.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;a.activeEnterMode=a.enterMode=a.blockless?CKEDITOR.ENTER_BR:b.enterMode;a.activeShiftEnterMode=a.shiftEnterMode=a.blockless?CKEDITOR.ENTER_BR:b.shiftEnterMode;if(b.skin)CKEDITOR.skinName=b.skin;a.fireOnce("configLoaded");a.dataProcessor=new CKEDITOR.htmlDataProcessor(a);a.filter=a.activeFilter=new CKEDITOR.filter(a);g(a)});if(c&&c.customConfig!=null)a.config.customConfig=c.customConfig;k(a)||a.fireOnce("customConfigLoaded")}
function g(a){CKEDITOR.skin.loadPart("editor",function(){j(a)})}function j(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b,d){var f=a.config.title;a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(d);a.title=typeof f=="string"||f===false?f:[a.lang.editor,a.name].join(", ");if(!a.config.contentsLangDirection)a.config.contentsLangDirection=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.getDirection(1):a.lang.dir;a.fire("langLoaded");c(a)})}function c(a){a.getStylesSet(function(c){a.once("loaded",
function(){a.fire("stylesSet",{styles:c})},null,null,1);h(a)})}function h(a){var c=a.config,b=c.plugins,d=c.extraPlugins,f=c.removePlugins;if(d)var h=RegExp("(?:^|,)(?:"+d.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),b=b.replace(h,""),b=b+(","+d);if(f)var e=RegExp("(?:^|,)(?:"+f.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),b=b.replace(e,"");CKEDITOR.env.air&&(b=b+",adobeair");CKEDITOR.plugins.load(b.split(","),function(b){var d=[],f=[],h=[];a.plugins=b;for(var g in b){var k=b[g],i=k.lang,j=null,p=k.requires,
l;CKEDITOR.tools.isArray(p)&&(p=p.join(","));if(p&&(l=p.match(e)))for(;p=l.pop();)CKEDITOR.tools.setTimeout(function(a,c){throw Error('Plugin "'+a.replace(",","")+'" cannot be removed from the plugins list, because it\'s required by "'+c+'" plugin.');},0,null,[p,g]);if(i&&!a.lang[g]){i.split&&(i=i.split(","));if(CKEDITOR.tools.indexOf(i,a.langCode)>=0)j=a.langCode;else{j=a.langCode.replace(/-.*/,"");j=j!=a.langCode&&CKEDITOR.tools.indexOf(i,j)>=0?j:CKEDITOR.tools.indexOf(i,"en")>=0?"en":i[0]}if(!k.langEntries||
!k.langEntries[j])h.push(CKEDITOR.getUrl(k.path+"lang/"+j+".js"));else{a.lang[g]=k.langEntries[j];j=null}}f.push(j);d.push(k)}CKEDITOR.scriptLoader.load(h,function(){for(var b=["beforeInit","init","afterInit"],h=0;h<b.length;h++)for(var e=0;e<d.length;e++){var g=d[e];h===0&&(f[e]&&g.lang&&g.langEntries)&&(a.lang[g.name]=g.langEntries[f[e]]);if(g[b[h]])g[b[h]](a)}a.fireOnce("pluginsLoaded");c.keystrokes&&a.setKeystroke(a.config.keystrokes);for(e=0;e<a.config.blockedKeystrokes.length;e++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[e]]=
1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function l(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var c=this.getData();this.config.htmlEncodeOutput&&(c=CKEDITOR.tools.htmlEncode(c));a.is("textarea")?a.setValue(c):a.setHtml(c);return true}return false}a.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=a;var o=0,q={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(a,c){c.name=a.toLowerCase();var b=new CKEDITOR.command(this,
c);this.mode&&f(this,b);return this.commands[a]=b},_attachToForm:function(){function a(d){c.updateElement();c._.required&&(!b.getValue()&&c.fire("required")===false)&&d.data.preventDefault()}var c=this,b=c.element,d=new CKEDITOR.dom.element(b.$.form);if(b.is("textarea")&&d){d.on("submit",a);if(d.$.submit&&d.$.submit.call&&d.$.submit.apply)d.$.submit=CKEDITOR.tools.override(d.$.submit,function(c){return function(){a();c.apply?c.apply(this):c()}});c.on("destroy",function(){d.removeListener("submit",
a)})}},destroy:function(a){this.fire("beforeDestroy");!a&&l.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(a){if(!a){a=this.getSelection();if(!a)return null;a=a.getStartElement()}return a?new CKEDITOR.dom.elementPath(a,this.editable()):null},createRange:function(){var a=this.editable();return a?
new CKEDITOR.dom.range(a):null},execCommand:function(a,c){var b=this.getCommand(a),d={name:a,commandData:c,command:b};if(b&&b.state!=CKEDITOR.TRISTATE_DISABLED&&this.fire("beforeCommandExec",d)!==false){d.returnValue=b.exec(d.commandData);if(!b.async&&this.fire("afterCommandExec",d)!==false)return d.returnValue}return false},getCommand:function(a){return this.commands[a]},getData:function(a){!a&&this.fire("beforeGetData");var c=this._.data;if(typeof c!="string")c=(c=this.element)&&this.elementMode==
CKEDITOR.ELEMENT_MODE_REPLACE?c.is("textarea")?c.getValue():c.getHtml():"";c={dataValue:c};!a&&this.fire("getData",c);return c.dataValue},getSnapshot:function(){var a=this.fire("getSnapshot");if(typeof a!="string"){var c=this.element;c&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(a=c.is("textarea")?c.getValue():c.getHtml())}return a},loadSnapshot:function(a){this.fire("loadSnapshot",a)},setData:function(a,c,b){var d=true,f=c;if(c&&typeof c=="object"){b=c.internal;f=c.callback;d=!c.noSnapshot}!b&&
d&&this.fire("saveSnapshot");if(f||!b)this.once("dataReady",function(a){!b&&d&&this.fire("saveSnapshot");f&&f.call(a.editor)});a={dataValue:a};!b&&this.fire("setData",a);this._.data=a.dataValue;!b&&this.fire("afterSetData",a)},setReadOnly:function(a){a=a==null||a;if(this.readOnly!=a){this.readOnly=a;this.keystrokeHandler.blockedKeystrokes[8]=+a;this.editable().setReadOnly(a);this.fire("readOnly")}},insertHtml:function(a,c,b){this.fire("insertHtml",{dataValue:a,mode:c,range:b})},insertText:function(a){this.fire("insertText",
a)},insertElement:function(a){this.fire("insertElement",a)},getSelectedHtml:function(a){var c=this.editable(),b=this.getSelection(),b=b&&b.getRanges();if(!c||!b||b.length===0)return null;c=c.getHtmlFromRange(b[0]);return a?c.getHtml():c},extractSelectedHtml:function(a,c){var b=this.editable(),d=this.getSelection().getRanges();if(!b||d.length===0)return null;d=d[0];b=b.extractHtmlFromRange(d,c);c||this.getSelection().selectRanges([d]);return a?b.getHtml():b},focus:function(){this.fire("beforeFocus")},
checkDirty:function(){return this.status=="ready"&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return l.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,c=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],b,d,f=c.length;f--;){b=c[f];d=0;if(CKEDITOR.tools.isArray(b)){d=b[1];b=b[0]}d?a[b]=d:delete a[b]}},addFeature:function(a){return this.filter.addFeature(a)},
setActiveFilter:function(a){if(!a)a=this.filter;if(this.activeFilter!==a){this.activeFilter=a;this.fire("activeFilterChange");a===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(a.getAllowedEnterMode(this.enterMode),a.getAllowedEnterMode(this.shiftEnterMode,true))}},setActiveEnterMode:function(a,c){a=a?this.blockless?CKEDITOR.ENTER_BR:a:this.enterMode;c=c?this.blockless?CKEDITOR.ENTER_BR:c:this.shiftEnterMode;if(this.activeEnterMode!=a||this.activeShiftEnterMode!=c){this.activeEnterMode=
a;this.activeShiftEnterMode=c;this.fire("activeEnterModeChange")}},showNotification:function(a){alert(a)}})}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--\>)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},function(){var a=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,
e={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(b){for(var f,d,k=0,i;f=this._.htmlPartsRegex.exec(b);){d=f.index;if(d>k){k=b.substring(k,d);if(i)i.push(k);else this.onText(k)}k=this._.htmlPartsRegex.lastIndex;if(d=f[1]){d=d.toLowerCase();if(i&&CKEDITOR.dtd.$cdata[d]){this.onCDATA(i.join(""));
i=null}if(!i){this.onTagClose(d);continue}}if(i)i.push(f[0]);else if(d=f[3]){d=d.toLowerCase();if(!/="/.test(d)){var g={},j,c=f[4];f=!!f[5];if(c)for(;j=a.exec(c);){var h=j[1].toLowerCase();j=j[2]||j[3]||j[4]||"";g[h]=!j&&e[h]?h:CKEDITOR.tools.htmlDecodeAttr(j)}this.onTagOpen(d,g,f);!i&&CKEDITOR.dtd.$cdata[d]&&(i=[])}}else if(d=f[2])this.onComment(d)}if(b.length>k)this.onText(b.substring(k,b.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},
proto:{openTag:function(a){this._.output.push("<",a)},openTagClose:function(a,e){e?this._.output.push(" />"):this._.output.push(">")},attribute:function(a,e){typeof e=="string"&&(e=CKEDITOR.tools.htmlEncodeAttr(e));this._.output.push(" ",a,'="',e,'"')},closeTag:function(a){this._.output.push("</",a,">")},text:function(a){this._.output.push(a)},comment:function(a){this._.output.push("<\!--",a,"--\>")},write:function(a){this._.output.push(a)},reset:function(){this._.output=[];this._.indent=false},getHtml:function(a){var e=
this._.output.join("");a&&this.reset();return e}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var a=this.parent.children,e=CKEDITOR.tools.indexOf(a,this),b=this.previous,f=this.next;b&&(b.next=f);f&&(f.previous=b);a.splice(e,1);this.parent=null},replaceWith:function(a){var e=this.parent.children,b=CKEDITOR.tools.indexOf(e,this),f=a.previous=this.previous,d=a.next=this.next;f&&(f.next=a);d&&(d.previous=a);e[b]=a;a.parent=this.parent;
this.parent=null},insertAfter:function(a){var e=a.parent.children,b=CKEDITOR.tools.indexOf(e,a),f=a.next;e.splice(b+1,0,this);this.next=a.next;this.previous=a;a.next=this;f&&(f.previous=this);this.parent=a.parent},insertBefore:function(a){var e=a.parent.children,b=CKEDITOR.tools.indexOf(e,a);e.splice(b,0,this);this.next=a;(this.previous=a.previous)&&(a.previous.next=this);a.previous=this;this.parent=a.parent},getAscendant:function(a){var e=typeof a=="function"?a:typeof a=="string"?function(b){return b.name==
a}:function(b){return b.name in a},b=this.parent;for(;b&&b.type==CKEDITOR.NODE_ELEMENT;){if(e(b))return b;b=b.parent}return null},wrapWith:function(a){this.replaceWith(a);a.add(this);return a},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(a){return a||{}}}}(),"use strict",CKEDITOR.htmlParser.comment=function(a){this.value=a;this._={isBlockLike:false}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,
{type:CKEDITOR.NODE_COMMENT,filter:function(a,e){var b=this.value;if(!(b=a.onComment(e,b,this))){this.remove();return false}if(typeof b!="string"){this.replaceWith(b);return false}this.value=b;return true},writeHtml:function(a,e){e&&this.filter(e);a.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(a){this.value=a;this._={isBlockLike:false}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(a,
e){if(!(this.value=a.onText(e,this.value,this))){this.remove();return false}},writeHtml:function(a,e){e&&this.filter(e);a.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(a){this.value=a};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(a){a.write(this.value)}})}(),"use strict",CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,
hasInlineStarted:false}},function(){function a(a){return a.attributes["data-cke-survive"]?false:a.name=="a"&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.name]}var e=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),b={ol:1,ul:1},f=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),d={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=
function(k,i,g){function j(a){var b;if(p.length>0)for(var d=0;d<p.length;d++){var f=p[d],h=f.name,e=CKEDITOR.dtd[h],g=u.name&&CKEDITOR.dtd[u.name];if((!g||g[h])&&(!a||!e||e[a]||!CKEDITOR.dtd[a])){if(!b){c();b=1}f=f.clone();f.parent=u;u=f;p.splice(d,1);d--}else if(h==u.name){l(u,u.parent,1);d--}}}function c(){for(;r.length;)l(r.shift(),u)}function h(a){if(a._.isBlockLike&&a.name!="pre"&&a.name!="textarea"){var c=a.children.length,b=a.children[c-1],d;if(b&&b.type==CKEDITOR.NODE_TEXT)(d=CKEDITOR.tools.rtrim(b.value))?
b.value=d:a.children.length=c-1}}function l(c,b,d){var b=b||u||n,f=u;if(c.previous===void 0){if(o(b,c)){u=b;m.onTagOpen(g,{});c.returnPoint=b=u}h(c);(!a(c)||c.children.length)&&b.add(c);c.name=="pre"&&(t=false);c.name=="textarea"&&(w=false)}if(c.returnPoint){u=c.returnPoint;delete c.returnPoint}else u=d?b:f}function o(a,c){if((a==n||a.name=="body")&&g&&(!a.name||CKEDITOR.dtd[a.name][g])){var b,d;return(b=c.attributes&&(d=c.attributes["data-cke-real-element-type"])?d:c.name)&&b in CKEDITOR.dtd.$inline&&
!(b in CKEDITOR.dtd.head)&&!c.isOrphan||c.type==CKEDITOR.NODE_TEXT}}function q(a,c){return a in CKEDITOR.dtd.$listItem||a in CKEDITOR.dtd.$tableContent?a==c||a=="dt"&&c=="dd"||a=="dd"&&c=="dt":false}var m=new CKEDITOR.htmlParser,n=i instanceof CKEDITOR.htmlParser.element?i:typeof i=="string"?new CKEDITOR.htmlParser.element(i):new CKEDITOR.htmlParser.fragment,p=[],r=[],u=n,w=n.name=="textarea",t=n.name=="pre";m.onTagOpen=function(d,h,g,k){h=new CKEDITOR.htmlParser.element(d,h);if(h.isUnknown&&g)h.isEmpty=
true;h.isOptionalClose=k;if(a(h))p.push(h);else{if(d=="pre")t=true;else{if(d=="br"&&t){u.add(new CKEDITOR.htmlParser.text("\n"));return}d=="textarea"&&(w=true)}if(d=="br")r.push(h);else{for(;;){k=(g=u.name)?CKEDITOR.dtd[g]||(u._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):f;if(!h.isUnknown&&!u.isUnknown&&!k[d])if(u.isOptionalClose)m.onTagClose(g);else if(d in b&&g in b){g=u.children;(g=g[g.length-1])&&g.name=="li"||l(g=new CKEDITOR.htmlParser.element("li"),u);!h.returnPoint&&(h.returnPoint=u);
u=g}else if(d in CKEDITOR.dtd.$listItem&&!q(d,g))m.onTagOpen(d=="li"?"ul":"dl",{},0,1);else if(g in e&&!q(d,g)){!h.returnPoint&&(h.returnPoint=u);u=u.parent}else{g in CKEDITOR.dtd.$inline&&p.unshift(u);if(u.parent)l(u,u.parent,1);else{h.isOrphan=1;break}}else break}j(d);c();h.parent=u;h.isEmpty?l(h):u=h}}};m.onTagClose=function(a){for(var b=p.length-1;b>=0;b--)if(a==p[b].name){p.splice(b,1);return}for(var d=[],f=[],h=u;h!=n&&h.name!=a;){h._.isBlockLike||f.unshift(h);d.push(h);h=h.returnPoint||h.parent}if(h!=
n){for(b=0;b<d.length;b++){var e=d[b];l(e,e.parent)}u=h;h._.isBlockLike&&c();l(h,h.parent);if(h==u)u=u.parent;p=p.concat(f)}a=="body"&&(g=false)};m.onText=function(a){if((!u._.hasInlineStarted||r.length)&&!t&&!w){a=CKEDITOR.tools.ltrim(a);if(a.length===0)return}var b=u.name,h=b?CKEDITOR.dtd[b]||(u._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):f;if(!w&&!h["#"]&&b in e){m.onTagOpen(d[b]||"");m.onText(a)}else{c();j();!t&&!w&&(a=a.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));a=new CKEDITOR.htmlParser.text(a);
if(o(u,a))this.onTagOpen(g,{},0,1);u.add(a)}};m.onCDATA=function(a){u.add(new CKEDITOR.htmlParser.cdata(a))};m.onComment=function(a){c();j();u.add(new CKEDITOR.htmlParser.comment(a))};m.parse(k);for(c();u!=n;)l(u,u.parent,1);h(n);return n};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,b){isNaN(b)&&(b=this.children.length);var d=b>0?this.children[b-1]:null;if(d){if(a._.isBlockLike&&d.type==CKEDITOR.NODE_TEXT){d.value=CKEDITOR.tools.rtrim(d.value);if(d.value.length===
0){this.children.pop();this.add(a);return}}d.next=a}a.previous=d;a.parent=this;this.children.splice(b,0,a);if(!this._.hasInlineStarted)this._.hasInlineStarted=a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&!a._.isBlockLike},filter:function(a,b){b=this.getFilterContext(b);a.onRoot(b,this);this.filterChildren(a,false,b)},filterChildren:function(a,b,d){if(this.childrenFilteredBy!=a.id){d=this.getFilterContext(d);if(b&&!this.parent)a.onRoot(d,this);this.childrenFilteredBy=a.id;for(b=0;b<this.children.length;b++)this.children[b].filter(a,
d)===false&&b--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,b,d){var f=this.getFilterContext();if(d&&!this.parent&&b)b.onRoot(f,this);b&&this.filterChildren(b,false,f);b=0;d=this.children;for(f=d.length;b<f;b++)d[b].writeHtml(a)},forEach:function(a,b,d){if(!d&&(!b||this.type==b))var f=a(this);if(f!==false)for(var d=this.children,c=0;c<d.length;c++){f=d[c];f.type==CKEDITOR.NODE_ELEMENT?f.forEach(a,b):(!b||f.type==b)&&a(f)}},getFilterContext:function(a){return a||
{}}}}(),"use strict",function(){function a(){this.rules=[]}function e(b,f,d,e){var i,g;for(i in f){(g=b[i])||(g=b[i]=new a);g.add(f[i],d,e)}}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(b){this.id=CKEDITOR.tools.getNextNumber();this.elementNameRules=new a;this.attributeNameRules=new a;this.elementsRules={};this.attributesRules={};this.textRules=new a;this.commentRules=new a;this.rootRules=new a;b&&this.addRules(b,10)},proto:{addRules:function(a,f){var d;if(typeof f=="number")d=
f;else if(f&&"priority"in f)d=f.priority;typeof d!="number"&&(d=10);typeof f!="object"&&(f={});a.elementNames&&this.elementNameRules.addMany(a.elementNames,d,f);a.attributeNames&&this.attributeNameRules.addMany(a.attributeNames,d,f);a.elements&&e(this.elementsRules,a.elements,d,f);a.attributes&&e(this.attributesRules,a.attributes,d,f);a.text&&this.textRules.add(a.text,d,f);a.comment&&this.commentRules.add(a.comment,d,f);a.root&&this.rootRules.add(a.root,d,f)},applyTo:function(a){a.filter(this)},onElementName:function(a,
f){return this.elementNameRules.execOnName(a,f)},onAttributeName:function(a,f){return this.attributeNameRules.execOnName(a,f)},onText:function(a,f,d){return this.textRules.exec(a,f,d)},onComment:function(a,f,d){return this.commentRules.exec(a,f,d)},onRoot:function(a,f){return this.rootRules.exec(a,f)},onElement:function(a,f){for(var d=[this.elementsRules["^"],this.elementsRules[f.name],this.elementsRules.$],e,i=0;i<3;i++)if(e=d[i]){e=e.exec(a,f,this);if(e===false)return null;if(e&&e!=f)return this.onNode(a,
e);if(f.parent&&!f.name)break}return f},onNode:function(a,f){var d=f.type;return d==CKEDITOR.NODE_ELEMENT?this.onElement(a,f):d==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(a,f.value)):d==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(a,f.value)):null},onAttribute:function(a,f,d,e){return(d=this.attributesRules[d])?d.exec(a,e,f,this):e}}});CKEDITOR.htmlParser.filterRulesGroup=a;a.prototype={add:function(a,f,d){this.rules.splice(this.findIndex(f),0,{value:a,priority:f,
options:d})},addMany:function(a,f,d){for(var e=[this.findIndex(f),0],i=0,g=a.length;i<g;i++)e.push({value:a[i],priority:f,options:d});this.rules.splice.apply(this.rules,e)},findIndex:function(a){for(var f=this.rules,d=f.length-1;d>=0&&a<f[d].priority;)d--;return d+1},exec:function(a,f){var d=f instanceof CKEDITOR.htmlParser.node||f instanceof CKEDITOR.htmlParser.fragment,e=Array.prototype.slice.call(arguments,1),i=this.rules,g=i.length,j,c,h,l;for(l=0;l<g;l++){if(d){j=f.type;c=f.name}h=i[l];if(!(a.nonEditable&&
!h.options.applyToAll||a.nestedEditable&&h.options.excludeNestedEditable)){h=h.value.apply(null,e);if(h===false||d&&h&&(h.name!=c||h.type!=j))return h;h!=null&&(e[0]=f=h)}}return f},execOnName:function(a,f){for(var d=0,e=this.rules,i=e.length,g;f&&d<i;d++){g=e[d];!(a.nonEditable&&!g.options.applyToAll||a.nestedEditable&&g.options.excludeNestedEditable)&&(f=f.replace(g.value[0],g.value[1]))}return f}}}(),function(){function a(a,c){function h(a){return a||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):
new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function e(a,c){return function(d){if(d.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var e=[],j=b(d),i,l;if(j)for(g(j,1)&&e.push(j);j;){if(k(j)&&(i=f(j))&&g(i))if((l=f(i))&&!k(l))e.push(i);else{h(v).insertAfter(i);i.remove()}j=j.previous}for(j=0;j<e.length;j++)e[j].remove();if(e=!a||(typeof c=="function"?c(d):c)!==false)if(!v&&!CKEDITOR.env.needsBrFiller&&d.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)e=false;else if(!v&&!CKEDITOR.env.needsBrFiller&&(document.documentMode>
7||d.name in CKEDITOR.dtd.tr||d.name in CKEDITOR.dtd.$listItem))e=false;else{e=b(d);e=!e||d.name=="form"&&e.name=="input"}e&&d.add(h(a))}}}function g(a,c){if((!v||CKEDITOR.env.needsBrFiller)&&a.type==CKEDITOR.NODE_ELEMENT&&a.name=="br"&&!a.attributes["data-cke-eol"])return true;var b;if(a.type==CKEDITOR.NODE_TEXT&&(b=a.value.match(p))){if(b.index){(new CKEDITOR.htmlParser.text(a.value.substring(0,b.index))).insertBefore(a);a.value=b[0]}if(!CKEDITOR.env.needsBrFiller&&v&&(!c||a.parent.name in l))return true;
if(!v)if((b=a.previous)&&b.name=="br"||!b||k(b))return true}return false}var j={elements:{}},v=c=="html",l=CKEDITOR.tools.extend({},t),D;for(D in l)"#"in u[D]||delete l[D];for(D in l)j.elements[D]=e(v,a.config.fillEmptyBlocks);j.root=e(v,false);j.elements.br=function(a){return function(c){if(c.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var b=c.attributes;if("data-cke-bogus"in b||"data-cke-eol"in b)delete b["data-cke-bogus"];else{for(b=c.next;b&&d(b);)b=b.next;var e=f(c);!b&&k(c.parent)?i(c.parent,
h(a)):k(b)&&(e&&!k(e))&&h(a).insertBefore(b)}}}}(v);return j}function e(a,c){return a!=CKEDITOR.ENTER_BR&&c!==false?a==CKEDITOR.ENTER_DIV?"div":"p":false}function b(a){for(a=a.children[a.children.length-1];a&&d(a);)a=a.previous;return a}function f(a){for(a=a.previous;a&&d(a);)a=a.previous;return a}function d(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&a.attributes["data-cke-bookmark"]}function k(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in
t||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function i(a,c){var b=a.children[a.children.length-1];a.children.push(c);c.parent=a;if(b){b.next=c;c.previous=b}}function g(a){a=a.attributes;a.contenteditable!="false"&&(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable="false"}function j(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}function c(a){return a.replace(y,function(a,c,b){return"<"+c+b.replace(B,
function(a,c){return A.test(c)&&b.indexOf("data-cke-saved-"+c)==-1?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+">"})}function h(a,c){return a.replace(c,function(a,c,b){a.indexOf("<textarea")===0&&(a=c+q(b).replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</textarea>");return"<cke:encoded>"+encodeURIComponent(a)+"</cke:encoded>"})}function l(a){return a.replace(F,function(a,c){return decodeURIComponent(c)})}function o(a){return a.replace(/<\!--(?!{cke_protected})[\s\S]+?--\>/g,function(a){return"<\!--"+
r+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\>"})}function q(a){return a.replace(/<\!--\{cke_protected\}\{C\}([\s\S]+?)--\>/g,function(a,c){return decodeURIComponent(c)})}function m(a,c){var b=c._.dataStore;return a.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(a,c){return decodeURIComponent(c)}).replace(/\{cke_protected_(\d+)\}/g,function(a,c){return b&&b[c]||""})}function n(a,c){for(var b=[],d=c.config.protectedSource,f=c._.dataStore||(c._.dataStore={id:1}),h=/<\!--\{cke_temp(comment)?\}(\d*?)--\>/g,
d=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(d),a=a.replace(/<\!--[\s\S]*?--\>/g,function(a){return"<\!--{cke_tempcomment}"+(b.push(a)-1)+"--\>"}),e=0;e<d.length;e++)a=a.replace(d[e],function(a){a=a.replace(h,function(a,c,d){return b[d]});return/cke_temp(comment)?/.test(a)?a:"<\!--{cke_temp}"+(b.push(a)-1)+"--\>"});a=a.replace(h,function(a,c,d){return"<\!--"+r+(c?"{C}":"")+encodeURIComponent(b[d]).replace(/--/g,"%2D%2D")+"--\>"});a=a.replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,
function(a){return a.replace(/<\!--\{cke_protected\}([^>]*)--\>/g,function(a,c){f[f.id]=decodeURIComponent(c);return"{cke_protected_"+f.id++ +"}"})});return a=a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(a,b,d,f){return"<"+b+d+">"+m(q(f),c)+"</"+b+">"})}CKEDITOR.htmlDataProcessor=function(b){var d,f,g=this;this.editor=b;this.dataFilter=d=new CKEDITOR.htmlParser.filter;this.htmlFilter=f=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;d.addRules(x);
d.addRules(v,{applyToAll:true});d.addRules(a(b,"data"),{applyToAll:true});f.addRules(s);f.addRules(z,{applyToAll:true});f.addRules(a(b,"html"),{applyToAll:true});b.on("toHtml",function(a){var a=a.data,d=a.dataValue,f,d=n(d,b),d=h(d,C),d=c(d),d=h(d,E),d=d.replace(D,"$1cke:$2"),d=d.replace(L,"<cke:$1$2></cke:$1>"),d=d.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),d=d.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");f=a.context||b.editable().getName();var g;if(CKEDITOR.env.ie&&
CKEDITOR.env.version<9&&f=="pre"){f="div";d="<pre>"+d+"</pre>";g=1}f=b.document.createElement(f);f.setHtml("a"+d);d=f.getHtml().substr(1);d=d.replace(RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");g&&(d=d.replace(/^<pre>|<\/pre>$/gi,""));d=d.replace(H,"$1$2");d=l(d);d=q(d);f=a.fixForBody===false?false:e(a.enterMode,b.config.autoParagraph);d=CKEDITOR.htmlParser.fragment.fromHtml(d,a.context,f);if(f){g=d;if(!g.children.length&&CKEDITOR.dtd[g.name][f]){f=new CKEDITOR.htmlParser.element(f);g.add(f)}}a.dataValue=
d},null,null,5);b.on("toHtml",function(a){a.data.filter.applyTo(a.data.dataValue,true,a.data.dontFilter,a.data.enterMode)&&b.fire("dataFiltered")},null,null,6);b.on("toHtml",function(a){a.data.dataValue.filterChildren(g.dataFilter,true)},null,null,10);b.on("toHtml",function(a){var a=a.data,c=a.dataValue,b=new CKEDITOR.htmlParser.basicWriter;c.writeChildrenHtml(b);c=b.getHtml(true);a.dataValue=o(c)},null,null,15);b.on("toDataFormat",function(a){var c=a.data.dataValue;a.data.enterMode!=CKEDITOR.ENTER_BR&&
(c=c.replace(/^<br *\/?>/i,""));a.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(c,a.data.context,e(a.data.enterMode,b.config.autoParagraph))},null,null,5);b.on("toDataFormat",function(a){a.data.dataValue.filterChildren(g.htmlFilter,true)},null,null,10);b.on("toDataFormat",function(a){a.data.filter.applyTo(a.data.dataValue,false,true)},null,null,11);b.on("toDataFormat",function(a){var c=a.data.dataValue,d=g.writer;d.reset();c.writeChildrenHtml(d);c=d.getHtml(true);c=q(c);c=m(c,b);a.data.dataValue=
c},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,c,b,d){var f=this.editor,h,e,g,k;if(c&&typeof c=="object"){h=c.context;b=c.fixForBody;d=c.dontFilter;e=c.filter;g=c.enterMode;k=c.protectedWhitespaces}else h=c;!h&&h!==null&&(h=f.editable().getName());return f.fire("toHtml",{dataValue:a,context:h,fixForBody:b,dontFilter:d,filter:e||f.filter,enterMode:g||f.enterMode,protectedWhitespaces:k}).dataValue},toDataFormat:function(a,c){var b,d,f;if(c){b=c.context;d=c.filter;f=c.enterMode}!b&&
b!==null&&(b=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:a,filter:d||this.editor.filter,context:b,enterMode:f||this.editor.enterMode}).dataValue}};var p=/(?:&nbsp;|\xa0)$/,r="{cke_protected}",u=CKEDITOR.dtd,w=["caption","colgroup","col","thead","tfoot","tbody"],t=CKEDITOR.tools.extend({},u.$blockLimit,u.$block),x={elements:{input:g,textarea:g}},v={attributeNames:[[/^on/,"data-cke-pa-on"],[/^data-cke-expando$/,""]]},s={elements:{embed:function(a){var c=a.parent;
if(c&&c.name=="object"){var b=c.attributes.width,c=c.attributes.height;if(b)a.attributes.width=b;if(c)a.attributes.height=c}},a:function(a){if(!a.children.length&&!a.attributes.name&&!a.attributes["data-cke-saved-name"])return false}}},z={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(a){var c=a.attributes;if(c){if(c["data-cke-temp"])return false;for(var b=["name","href","src"],d,f=0;f<b.length;f++){d=
"data-cke-saved-"+b[f];d in c&&delete c[b[f]]}}return a},table:function(a){a.children.slice(0).sort(function(a,c){var b,d;if(a.type==CKEDITOR.NODE_ELEMENT&&c.type==a.type){b=CKEDITOR.tools.indexOf(w,a.name);d=CKEDITOR.tools.indexOf(w,c.name)}if(!(b>-1&&d>-1&&b!=d)){b=a.parent?a.getIndex():-1;d=c.parent?c.getIndex():-1}return b>d?1:-1})},param:function(a){a.children=[];a.isEmpty=true;return a},span:function(a){a.attributes["class"]=="Apple-style-span"&&delete a.name},html:function(a){delete a.attributes.contenteditable;
delete a.attributes["class"]},body:function(a){delete a.attributes.spellcheck;delete a.attributes.contenteditable},style:function(a){var c=a.children[0];if(c&&c.value)c.value=CKEDITOR.tools.trim(c.value);if(!a.attributes.type)a.attributes.type="text/css"},title:function(a){var c=a.children[0];!c&&i(a,c=new CKEDITOR.htmlParser.text);c.value=a.attributes["data-cke-title"]||""},input:j,textarea:j},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,""))||false}}};
if(CKEDITOR.env.ie)z.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})};var y=/<(a|area|img|input|source)\b([^>]*)>/gi,B=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,A=/^(href|src|name)$/i,E=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,C=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,F=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,D=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,H=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,
L=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),"use strict",CKEDITOR.htmlParser.element=function(a,e){this.name=a;this.attributes=e||{};this.children=[];var b=a||"",f=b.match(/^cke:(.*)/);f&&(b=f[1]);b=!(!CKEDITOR.dtd.$nonBodyContent[b]&&!CKEDITOR.dtd.$block[b]&&!CKEDITOR.dtd.$listItem[b]&&!CKEDITOR.dtd.$tableContent[b]&&!(CKEDITOR.dtd.$nonEditable[b]||b=="br"));this.isEmpty=!!CKEDITOR.dtd.$empty[a];this.isUnknown=!CKEDITOR.dtd[a];this._={isBlockLike:b,hasInlineStarted:this.isEmpty||!b}},
CKEDITOR.htmlParser.cssStyle=function(a){var e={};((a instanceof CKEDITOR.htmlParser.element?a.attributes.style:a)||"").replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,f,d){f=="font-family"&&(d=d.replace(/["']/g,""));e[f.toLowerCase()]=d});return{rules:e,populate:function(a){var f=this.toString();if(f)a instanceof CKEDITOR.dom.element?a.setAttribute("style",f):a instanceof CKEDITOR.htmlParser.element?a.attributes.style=f:a.style=f},toString:function(){var a=[],f;
for(f in e)e[f]&&a.push(f,":",e[f],";");return a.join("")}}},function(){function a(a){return function(b){return b.type==CKEDITOR.NODE_ELEMENT&&(typeof a=="string"?b.name==a:b.name in a)}}var e=function(a,b){a=a[0];b=b[0];return a<b?-1:a>b?1:0},b=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:b.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a,
b){var e=this,i,g,b=e.getFilterContext(b);if(b.off)return true;if(!e.parent)a.onRoot(b,e);for(;;){i=e.name;if(!(g=a.onElementName(b,i))){this.remove();return false}e.name=g;if(!(e=a.onElement(b,e))){this.remove();return false}if(e!==this){this.replaceWith(e);return false}if(e.name==i)break;if(e.type!=CKEDITOR.NODE_ELEMENT){this.replaceWith(e);return false}if(!e.name){this.replaceWithChildren();return false}}i=e.attributes;var j,c;for(j in i){c=j;for(g=i[j];;)if(c=a.onAttributeName(b,j))if(c!=j){delete i[j];
j=c}else break;else{delete i[j];break}c&&((g=a.onAttribute(b,e,c,g))===false?delete i[c]:i[c]=g)}e.isEmpty||this.filterChildren(a,false,b);return true},filterChildren:b.filterChildren,writeHtml:function(a,b){b&&this.filter(b);var k=this.name,i=[],g=this.attributes,j,c;a.openTag(k,g);for(j in g)i.push([j,g[j]]);a.sortAttributes&&i.sort(e);j=0;for(c=i.length;j<c;j++){g=i[j];a.attribute(g[0],g[1])}a.openTagClose(k,this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(k)},writeChildrenHtml:b.writeChildrenHtml,
replaceWithChildren:function(){for(var a=this.children,b=a.length;b;)a[--b].insertAfter(this);this.remove()},forEach:b.forEach,getFirst:function(b){if(!b)return this.children.length?this.children[0]:null;typeof b!="function"&&(b=a(b));for(var d=0,e=this.children.length;d<e;++d)if(b(this.children[d]))return this.children[d];return null},getHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeChildrenHtml(a);return a.getHtml()},setHtml:function(a){for(var a=this.children=CKEDITOR.htmlParser.fragment.fromHtml(a).children,
b=0,e=a.length;b<e;++b)a[b].parent=this},getOuterHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeHtml(a);return a.getHtml()},split:function(a){for(var b=this.children.splice(a,this.children.length-a),e=this.clone(),i=0;i<b.length;++i)b[i].parent=e;e.children=b;if(b[0])b[0].previous=null;if(a>0)this.children[a-1].next=null;this.parent.add(e,this.getIndex()+1);return e},addClass:function(a){if(!this.hasClass(a)){var b=this.attributes["class"]||"";this.attributes["class"]=b+(b?" ":
"")+a}},removeClass:function(a){var b=this.attributes["class"];if(b)(b=CKEDITOR.tools.trim(b.replace(RegExp("(?:\\s+|^)"+a+"(?:\\s+|$)")," ")))?this.attributes["class"]=b:delete this.attributes["class"]},hasClass:function(a){var b=this.attributes["class"];return!b?false:RegExp("(?:^|\\s)"+a+"(?=\\s|$)").test(b)},getFilterContext:function(a){var b=[];a||(a={off:false,nonEditable:false,nestedEditable:false});!a.off&&this.attributes["data-cke-processor"]=="off"&&b.push("off",true);!a.nonEditable&&this.attributes.contenteditable==
"false"?b.push("nonEditable",true):a.nonEditable&&(!a.nestedEditable&&this.attributes.contenteditable=="true")&&b.push("nestedEditable",true);if(b.length)for(var a=CKEDITOR.tools.copy(a),e=0;e<b.length;e=e+2)a[b[e]]=b[e+1];return a}},true)}(),function(){var a={},e=/{([^}]+)}/g,b=/([\\'])/g,f=/\n/g,d=/\r/g;CKEDITOR.template=function(k){if(a[k])this.output=a[k];else{var i=k.replace(b,"\\$1").replace(f,"\\n").replace(d,"\\r").replace(e,function(a,b){return"',data['"+b+"']==undefined?'{"+b+"}':data['"+
b+"'],'"});this.output=a[k]=Function("data","buffer","return buffer?buffer.push('"+i+"'):['"+i+"'].join('');")}}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(a){CKEDITOR.instances[a.name]=a;a.on("focus",function(){if(CKEDITOR.currentInstance!=a){CKEDITOR.currentInstance=a;CKEDITOR.fire("currentInstance")}});a.on("blur",function(){if(CKEDITOR.currentInstance==a){CKEDITOR.currentInstance=null;CKEDITOR.fire("currentInstance")}});
CKEDITOR.fire("instance",null,a)},CKEDITOR.remove=function(a){delete CKEDITOR.instances[a.name]},function(){var a={};CKEDITOR.addTemplate=function(e,b){var f=a[e];if(f)return f;f={name:e,source:b};CKEDITOR.fire("template",f);return a[e]=new CKEDITOR.template(f.source)};CKEDITOR.getTemplate=function(e){return a[e]}}(),function(){var a=[];CKEDITOR.addCss=function(e){a.push(e)};CKEDITOR.getCss=function(){return a.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(a,e){if(!CKEDITOR.env.isCompatible)return null;a=CKEDITOR.dom.element.get(a);if(a.getEditor())throw'The editor instance "'+a.getEditor().name+'" is already attached to the provided element.';var b=new CKEDITOR.editor(e,a,CKEDITOR.ELEMENT_MODE_INLINE),f=a.is("textarea")?a:null;if(f){b.setData(f.getValue(),null,true);a=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+
!!b.readOnly+'" class="cke_textarea_inline">'+f.getValue()+"</div>",CKEDITOR.document);a.insertAfter(f);f.hide();f.$.form&&b._attachToForm()}else b.setData(a.getHtml(),null,true);b.on("loaded",function(){b.fire("uiReady");b.editable(a);b.container=a;b.ui.contentsElement=a;b.setData(b.getData(1));b.resetDirty();b.fire("contentDom");b.mode="wysiwyg";b.fire("mode");b.status="ready";b.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,b)},null,null,1E4);b.on("destroy",function(){if(f){b.container.clearCustomData();
b.container.remove();f.show()}b.element.clearCustomData();delete b.element});return b};CKEDITOR.inlineAll=function(){var a,e,b;for(b in CKEDITOR.dtd.$editable)for(var f=CKEDITOR.document.getElementsByTag(b),d=0,k=f.count();d<k;d++){a=f.getItem(d);if(a.getAttribute("contenteditable")=="true"){e={element:a,config:{}};CKEDITOR.fire("inline",e)!==false&&CKEDITOR.inline(a,e.config)}}};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",function(){function a(a,
d,k,i){if(!CKEDITOR.env.isCompatible)return null;a=CKEDITOR.dom.element.get(a);if(a.getEditor())throw'The editor instance "'+a.getEditor().name+'" is already attached to the provided element.';var g=new CKEDITOR.editor(d,a,i);if(i==CKEDITOR.ELEMENT_MODE_REPLACE){a.setStyle("visibility","hidden");g._.required=a.hasAttribute("required");a.removeAttribute("required")}k&&g.setData(k,null,true);g.on("loaded",function(){b(g);i==CKEDITOR.ELEMENT_MODE_REPLACE&&(g.config.autoUpdateElement&&a.$.form)&&g._attachToForm();
g.setMode(g.config.startupMode,function(){g.resetDirty();g.status="ready";g.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,g)})});g.on("destroy",e);return g}function e(){var a=this.container,b=this.element;if(a){a.clearCustomData();a.remove()}if(b){b.clearCustomData();if(this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE){b.show();this._.required&&b.setAttribute("required","required")}delete this.element}}function b(a){var b=a.name,e=a.element,i=a.elementMode,g=a.fire("uiSpace",{space:"top",
html:""}).html,j=a.fire("uiSpace",{space:"bottom",html:""}).html,c=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"'+(a.title?' aria-labelledby="cke_{name}_arialbl"':"")+">"+(a.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}>'),
b=CKEDITOR.dom.element.createFromHtml(c.output({id:a.id,name:b,langDir:a.lang.dir,langCode:a.langCode,voiceLabel:a.title,topHtml:g?'<span id="'+a.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+g+"</span>":"",contentId:a.ui.spaceId("contents"),bottomHtml:j?'<span id="'+a.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+j+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));if(i==CKEDITOR.ELEMENT_MODE_REPLACE){e.hide();b.insertAfter(e)}else e.append(b);
a.container=b;a.ui.contentsElement=a.ui.space("contents");g&&a.ui.space("top").unselectable();j&&a.ui.space("bottom").unselectable();e=a.config.width;i=a.config.height;e&&b.setStyle("width",CKEDITOR.tools.cssLength(e));i&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(i));b.disableContextMenu();CKEDITOR.env.webkit&&b.on("focus",function(){a.focus()});a.fireOnce("uiReady")}CKEDITOR.replace=function(b,d){return a(b,d,null,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.appendTo=function(b,
d,e){return a(b,d,e,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"),b=0;b<a.length;b++){var e=null,i=a[b];if(i.name||i.id){if(typeof arguments[0]=="string"){if(!RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(i.className))continue}else if(typeof arguments[0]=="function"){e={};if(arguments[0](i,e)===false)continue}this.replace(i,e)}}};CKEDITOR.editor.prototype.addMode=function(a,b){(this._.modes||(this._.modes={}))[a]=b};CKEDITOR.editor.prototype.setMode=
function(a,b){var e=this,i=this._.modes;if(!(a==e.mode||!i||!i[a])){e.fire("beforeSetMode",a);if(e.mode){var g=e.checkDirty(),i=e._.previousModeData,j,c=0;e.fire("beforeModeUnload");e.editable(0);e._.previousMode=e.mode;e._.previousModeData=j=e.getData(1);if(e.mode=="source"&&i==j){e.fire("lockSnapshot",{forceUpdate:true});c=1}e.ui.space("contents").setHtml("");e.mode=""}else e._.previousModeData=e.getData(1);this._.modes[a](function(){e.mode=a;g!==void 0&&!g&&e.resetDirty();c?e.fire("unlockSnapshot"):
a=="wysiwyg"&&e.fire("saveSnapshot");setTimeout(function(){e.fire("mode");b&&b.call(e)},0)})}};CKEDITOR.editor.prototype.resize=function(a,b,e,i){var g=this.container,j=this.ui.space("contents"),c=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement,i=i?this.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}):g;i.setSize("width",a,true);c&&(c.style.width="1%");var h=(i.$.offsetHeight||0)-(j.$.clientHeight||0),g=Math.max(b-(e?0:h),
0),b=e?b+h:b;j.setStyle("height",g+"px");c&&(c.style.width="100%");this.fire("resize",{outerHeight:b,contentsHeight:g,outerWidth:a||i.getSize("width")})};CKEDITOR.editor.prototype.getResizable=function(a){return a?this.ui.space("contents"):this.container};CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){var a,e,b,f;function d(a){var c=a.editor,b=a.data.path,d=b.blockLimit,e=a.data.selection,f=e.getRanges()[0],
j;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)if(e=k(e,b)){e.appendBogus();j=CKEDITOR.env.ie}if(h(c,b.block,d)&&f.collapsed&&!f.getCommonAncestor().isReadOnly()){b=f.clone();b.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);d=new CKEDITOR.dom.walker(b);d.guard=function(a){return!g(a)||a.type==CKEDITOR.NODE_COMMENT||a.isReadOnly()};if(!d.checkForward()||b.checkStartOfBlock()&&b.checkEndOfBlock()){c=f.fixBlock(true,c.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p");if(!CKEDITOR.env.needsBrFiller)(c=
c.getFirst(g))&&(c.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(c.getText()).match(/^(?:&nbsp;|\xa0)$/))&&c.remove();j=1;a.cancel()}}j&&f.select()}function k(a,c){if(a.isFake)return 0;var b=c.block||c.blockLimit,d=b&&b.getLast(g);if(b&&b.isBlockBoundary()&&(!d||!(d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary()))&&!b.is("pre")&&!b.getBogus())return b}function i(a){var c=a.data.getTarget();if(c.is("input")){c=c.getAttribute("type");(c=="submit"||c=="reset")&&a.data.preventDefault()}}function g(a){return m(a)&&
n(a)}function j(a,c){return function(b){var d=b.data.$.toElement||b.data.$.fromElement||b.data.$.relatedTarget,d=d&&d.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(d):null;(!d||!c.equals(d)&&!c.contains(d))&&a.call(this,b)}}function c(a){function c(a){return function(c,d){d&&(c.type==CKEDITOR.NODE_ELEMENT&&c.is(h))&&(b=c);if(!d&&g(c)&&(!a||!r(c)))return false}}var b,d=a.getRanges()[0],a=a.root,h={table:1,ul:1,ol:1,dl:1};if(d.startPath().contains(h)){var e=d.clone();e.collapse(1);e.setStartAt(a,
CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(e);a.guard=c();a.checkBackward();if(b){e=d.clone();e.collapse();e.setEndAt(b,CKEDITOR.POSITION_AFTER_END);a=new CKEDITOR.dom.walker(e);a.guard=c(true);b=false;a.checkForward();return b}}return null}function h(a,c,b){return a.config.autoParagraph!==false&&a.activeEnterMode!=CKEDITOR.ENTER_BR&&a.editable().equals(b)&&!c||c&&c.getAttribute("contenteditable")=="true"}function l(a){return a.activeEnterMode!=CKEDITOR.ENTER_BR&&a.config.autoParagraph!==
false?a.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":false}function o(a){var c=a.editor;c.getSelection().scrollIntoView();setTimeout(function(){c.fire("saveSnapshot")},0)}function q(a,c,b){for(var d=a.getCommonAncestor(c),c=a=b?c:a;(a=a.getParent())&&!d.equals(a)&&a.getChildCount()==1;)c=a;c.remove()}CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(a,c){this.base(c.$||c);this.editor=a;this.status="unloaded";this.hasFocus=false;this.setup()},proto:{focus:function(){var a;
if(CKEDITOR.env.webkit&&!this.hasFocus){a=this.editor._.previousActive||this.getDocument().getActive();if(this.contains(a)){a.focus();return}}try{this.$[CKEDITOR.env.ie&&this.getDocument().equals(CKEDITOR.document)?"setActive":"focus"]()}catch(c){if(!CKEDITOR.env.ie)throw c;}if(CKEDITOR.env.safari&&!this.isInline()){a=CKEDITOR.document.getActive();a.equals(this.getWindow().getFrame())||this.getWindow().focus()}},on:function(a,c){var b=Array.prototype.slice.call(arguments,0);if(CKEDITOR.env.ie&&/^focus|blur$/.exec(a)){a=
a=="focus"?"focusin":"focusout";c=j(c,this);b[0]=a;b[1]=c}return CKEDITOR.dom.element.prototype.on.apply(this,b)},attachListener:function(a){!this._.listeners&&(this._.listeners=[]);var c=Array.prototype.slice.call(arguments,1),c=a.on.apply(a,c);this._.listeners.push(c);return c},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(c){}},restoreAttrs:function(){var a=this._.attrChanges,c,b;for(b in a)if(a.hasOwnProperty(b)){c=a[b];c!==null?this.setAttribute(b,
c):this.removeAttribute(b)}},attachClass:function(a){var c=this.getCustomData("classes");if(!this.hasClass(a)){!c&&(c=[]);c.push(a);this.setCustomData("classes",c);this.addClass(a)}},changeAttr:function(a,c){var b=this.getAttribute(a);if(c!==b){!this._.attrChanges&&(this._.attrChanges={});a in this._.attrChanges||(this._.attrChanges[a]=b);this.setAttribute(a,c)}},insertText:function(a){this.editor.focus();this.insertHtml(this.transformPlainTextToHtml(a),"text")},transformPlainTextToHtml:function(a){var c=
this.editor.getSelection().getStartElement().hasAscendant("pre",true)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(a,c)},insertHtml:function(a,c,b){var d=this.editor;d.focus();d.fire("saveSnapshot");b||(b=d.getSelection().getRanges()[0]);w(this,c||"html",a,b);b.select();o(this);this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(a,c,b){w(this,b||"html",a,c);this.editor.fire("afterInsertHtml",{intoRange:c})},insertElement:function(a,
c){var b=this.editor;b.focus();b.fire("saveSnapshot");var d=b.activeEnterMode,b=b.getSelection(),h=a.getName(),h=CKEDITOR.dtd.$block[h];c||(c=b.getRanges()[0]);if(this.insertElementIntoRange(a,c)){c.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);if(h)if((h=a.getNext(function(a){return g(a)&&!r(a)}))&&h.type==CKEDITOR.NODE_ELEMENT&&h.is(CKEDITOR.dtd.$block))h.getDtd()["#"]?c.moveToElementEditStart(h):c.moveToElementEditEnd(a);else if(!h&&d!=CKEDITOR.ENTER_BR){h=c.fixBlock(true,d==CKEDITOR.ENTER_DIV?
"div":"p");c.moveToElementEditStart(h)}}b.selectRanges([c]);o(this)},insertElementIntoSelection:function(a){this.insertElement(a)},insertElementIntoRange:function(a,c){var b=this.editor,d=b.config.enterMode,h=a.getName(),e=CKEDITOR.dtd.$block[h];if(c.checkReadOnly())return false;c.deleteContents(1);c.startContainer.type==CKEDITOR.NODE_ELEMENT&&c.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})&&t(c);var f,g;if(e)for(;(f=c.getCommonAncestor(0,1))&&(g=CKEDITOR.dtd[f.getName()])&&(!g||!g[h]);)if(f.getName()in
CKEDITOR.dtd.span)c.splitElement(f);else if(c.checkStartOfBlock()&&c.checkEndOfBlock()){c.setStartBefore(f);c.collapse(true);f.remove()}else c.splitBlock(d==CKEDITOR.ENTER_DIV?"div":"p",b.editable());c.insertNode(a);return true},setData:function(a,c){c||(a=this.editor.dataProcessor.toHtml(a));this.setHtml(a);this.fixInitialSelection();if(this.status=="unloaded")this.status="ready";this.editor.fire("dataReady")},getData:function(a){var c=this.getHtml();a||(c=this.editor.dataProcessor.toDataFormat(c));
return c},setReadOnly:function(a){this.setAttribute("contenteditable",!a)},detach:function(){this.removeClass("cke_editable");this.status="detached";var a=this.editor;this._.detach();delete a.document;delete a.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function a(){var c=b.getDocument().$,d=c.getSelection(),h;if(d.anchorNode&&d.anchorNode==b.$)h=true;else if(CKEDITOR.env.webkit){var e=b.getDocument().getActive();e&&(e.equals(b)&&
!d.anchorNode)&&(h=true)}if(h){h=new CKEDITOR.dom.range(b);h.moveToElementEditStart(b);c=c.createRange();c.setStart(h.startContainer.$,h.startOffset);c.collapse(true);d.removeAllRanges();d.addRange(c)}}function c(){var a=b.getDocument().$,d=a.selection,h=b.getDocument().getActive();if(d.type=="None"&&h.equals(b)){d=new CKEDITOR.dom.range(b);a=a.body.createTextRange();d.moveToElementEditStart(b);d=d.startContainer;d.type!=CKEDITOR.NODE_ELEMENT&&(d=d.getParent());a.moveToElementText(d.$);a.collapse(true);
a.select()}}var b=this;if(CKEDITOR.env.ie&&(CKEDITOR.env.version<9||CKEDITOR.env.quirks)){if(this.hasFocus){this.focus();c()}}else if(this.hasFocus){this.focus();a()}else this.once("focus",function(){a()},null,null,-999)},getHtmlFromRange:function(c){if(c.collapsed)return new CKEDITOR.dom.documentFragment(c.document);c={doc:this.getDocument(),range:c.clone()};a.detect(c,this);e.exclude(c);b.shrink(c);c.fragment=c.range.cloneContents();f.rebuild(c,this);a.fix(c,this);return new CKEDITOR.dom.documentFragment(c.fragment.$)},
extractHtmlFromRange:function(a,c){var b=x,d={range:a,doc:a.document},h=this.getHtmlFromRange(a);if(a.collapsed){a.optimize();return h}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);b.table.detectPurge(d);d.bookmark=a.createBookmark();delete d.range;var e=this.editor.createRange();e.moveToPosition(d.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);d.targetBookmark=e.createBookmark();b.list.detectMerge(d,this);b.table.detectRanges(d,this);b.block.detectMerge(d,this);if(d.tableContentsRanges){b.table.deleteRanges(d);
a.moveToBookmark(d.bookmark);d.range=a}else{a.moveToBookmark(d.bookmark);d.range=a;a.extractContents(b.detectExtractMerge(d))}a.moveToBookmark(d.targetBookmark);a.optimize();b.fixUneditableRangePosition(a);b.list.merge(d,this);b.table.purge(d,this);b.block.merge(d,this);if(c){b=a.startPath();if(a.checkStartOfBlock()&&a.checkEndOfBlock()&&b.block&&!a.root.equals(b.block)){a.moveToPosition(b.block,CKEDITOR.POSITION_BEFORE_START);b.block.remove()}}else{b.autoParagraph(this.editor,a);p(a.startContainer)&&
a.startContainer.appendBogus()}a.startContainer.mergeSiblings();return h},setup:function(){var a=this.editor;this.attachListener(a,"beforeGetData",function(){var c=this.getData();this.is("textarea")||a.config.ignoreEmptyParagraph!==false&&(c=c.replace(u,function(a,c){return c}));a.setData(c,null,1)},this);this.attachListener(a,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(a,"afterSetData",function(){this.setData(a.getData(1))},this);this.attachListener(a,"loadSnapshot",
function(a){this.setData(a.data,1)},this);this.attachListener(a,"beforeFocus",function(){var c=a.getSelection();(c=c&&c.getNative())&&c.type=="Control"||this.focus()},this);this.attachListener(a,"insertHtml",function(a){this.insertHtml(a.data.dataValue,a.data.mode,a.data.range)},this);this.attachListener(a,"insertElement",function(a){this.insertElement(a.data)},this);this.attachListener(a,"insertText",function(a){this.insertText(a.data)},this);this.setReadOnly(a.readOnly);this.attachClass("cke_editable");
a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):(a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE||a.elementMode==CKEDITOR.ELEMENT_MODE_APPENDTO)&&this.attachClass("cke_editable_themed");this.attachClass("cke_contents_"+a.config.contentsLangDirection);a.keystrokeHandler.blockedKeystrokes[8]=+a.readOnly;a.keystrokeHandler.attach(this);this.on("blur",function(){this.hasFocus=false},null,null,-1);this.on("focus",function(){this.hasFocus=true},null,null,-1);a.focusManager.add(this);
if(this.equals(CKEDITOR.document.getActive())){this.hasFocus=true;a.once("contentDom",function(){a.focusManager.focus(this)},this)}this.isInline()&&this.changeAttr("tabindex",a.tabIndex);if(!this.is("textarea")){a.document=this.getDocument();a.window=this.getWindow();var b=a.document;this.changeAttr("spellcheck",!a.config.disableNativeSpellChecker);var d=a.config.contentsLangDirection;this.getDirection(1)!=d&&this.changeAttr("dir",d);var h=CKEDITOR.getCss();if(h){d=b.getHead();if(!d.getCustomData("stylesheet")){h=
b.appendStyleText(h);h=new CKEDITOR.dom.element(h.ownerNode||h.owningElement);d.setCustomData("stylesheet",h);h.data("cke-temp",1)}}d=b.getCustomData("stylesheet_ref")||0;b.setCustomData("stylesheet_ref",d+1);this.setCustomData("cke_includeReadonly",!a.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){var a=a.data,c=(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a");c&&(a.$.button!=2&&c.isReadOnly())&&a.preventDefault()});var e={8:1,46:1};this.attachListener(a,
"key",function(b){if(a.readOnly)return true;var d=b.data.domEvent.getKey(),h;if(d in e){var b=a.getSelection(),f,g=b.getRanges()[0],j=g.startPath(),i,k,l,d=d==8;if(CKEDITOR.env.ie&&CKEDITOR.env.version<11&&(f=b.getSelectedElement())||(f=c(b))){a.fire("saveSnapshot");g.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);f.remove();g.select();a.fire("saveSnapshot");h=1}else if(g.collapsed)if((i=j.block)&&(l=i[d?"getPrevious":"getNext"](m))&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("table")&&g[d?"checkStartOfBlock":
"checkEndOfBlock"]()){a.fire("saveSnapshot");g[d?"checkEndOfBlock":"checkStartOfBlock"]()&&i.remove();g["moveToElementEdit"+(d?"End":"Start")](l);g.select();a.fire("saveSnapshot");h=1}else if(j.blockLimit&&j.blockLimit.is("td")&&(k=j.blockLimit.getAscendant("table"))&&g.checkBoundaryOfElement(k,d?CKEDITOR.START:CKEDITOR.END)&&(l=k[d?"getPrevious":"getNext"](m))){a.fire("saveSnapshot");g["moveToElementEdit"+(d?"End":"Start")](l);g.checkStartOfBlock()&&g.checkEndOfBlock()?l.remove():g.select();a.fire("saveSnapshot");
h=1}else if((k=j.contains(["td","th","caption"]))&&g.checkBoundaryOfElement(k,d?CKEDITOR.START:CKEDITOR.END))h=1}return!h});a.blockless&&(CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)&&this.attachListener(this,"keyup",function(c){if(c.data.getKeystroke()in e&&!this.getFirst(g)){this.appendBogus();c=a.createRange();c.moveToPosition(this,CKEDITOR.POSITION_AFTER_START);c.select()}});this.attachListener(this,"dblclick",function(c){if(a.readOnly)return false;c={element:c.data.getTarget()};a.fire("doubleclick",
c)});CKEDITOR.env.ie&&this.attachListener(this,"click",i);CKEDITOR.env.ie||this.attachListener(this,"mousedown",function(c){var b=c.data.getTarget();if(b.is("img","hr","input","textarea","select")&&!b.isReadOnly()){a.getSelection().selectElement(b);b.is("input","textarea","select")&&c.data.preventDefault()}});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(c){if(c.data.$.button==2){c=c.data.getTarget();if(!c.getOuterHtml().replace(u,"")){var b=a.createRange();b.moveToElementEditStart(c);
b.select(true)}}});if(CKEDITOR.env.webkit){this.attachListener(this,"click",function(a){a.data.getTarget().is("input","select")&&a.data.preventDefault()});this.attachListener(this,"mouseup",function(a){a.data.getTarget().is("input","textarea")&&a.data.preventDefault()})}CKEDITOR.env.webkit&&this.attachListener(a,"key",function(c){if(a.readOnly)return true;c=c.data.domEvent.getKey();if(c in e){var b=c==8,d=a.getSelection().getRanges()[0],c=d.startPath();if(d.collapsed){var h;a:{var f=c.block;if(f)if(d[b?
"checkStartOfBlock":"checkEndOfBlock"]())if(!d.moveToClosestEditablePosition(f,!b)||!d.collapsed)h=false;else{if(d.startContainer.type==CKEDITOR.NODE_ELEMENT){var g=d.startContainer.getChild(d.startOffset-(b?1:0));if(g&&g.type==CKEDITOR.NODE_ELEMENT&&g.is("hr")){a.fire("saveSnapshot");g.remove();h=true;break a}}if((d=d.startPath().block)&&(!d||!d.contains(f))){a.fire("saveSnapshot");var j;(j=(b?d:f).getBogus())&&j.remove();h=a.getSelection();j=h.createBookmarks();(b?f:d).moveChildren(b?d:f,false);
c.lastElement.mergeSiblings();q(f,d,!b);h.selectBookmarks(j);h=true}}else h=false;else h=false}if(!h)return}else{b=d;h=c.block;j=b.endPath().block;if(!h||!j||h.equals(j))c=false;else{a.fire("saveSnapshot");(f=h.getBogus())&&f.remove();b.enlarge(CKEDITOR.ENLARGE_INLINE);b.deleteContents();if(j.getParent()){j.moveChildren(h,false);c.lastElement.mergeSiblings();q(h,j,true)}b=a.getSelection().getRanges()[0];b.collapse(1);b.optimize();b.startContainer.getHtml()===""&&b.startContainer.appendBogus();b.select();
c=true}if(!c)return}a.getSelection().scrollIntoView();a.fire("saveSnapshot");return false}},this,null,100)}}},_:{detach:function(){this.editor.setData(this.editor.getData(),0,1);this.clearListeners();this.restoreAttrs();var a;if(a=this.removeCustomData("classes"))for(;a.length;)this.removeClass(a.pop());if(!this.is("textarea")){a=this.getDocument();var c=a.getHead();if(c.getCustomData("stylesheet")){var b=a.getCustomData("stylesheet_ref");if(--b)a.setCustomData("stylesheet_ref",b);else{a.removeCustomData("stylesheet_ref");
c.removeCustomData("stylesheet").remove()}}}this.editor.fire("contentDomUnload");delete this.editor}}});CKEDITOR.editor.prototype.editable=function(a){var c=this._.editable;if(c&&a)return 0;if(arguments.length)c=this._.editable=a?a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,a):(c&&c.detach(),null);return c};CKEDITOR.on("instanceLoaded",function(a){var c=a.editor;c.on("insertElement",function(a){a=a.data;if(a.type==CKEDITOR.NODE_ELEMENT&&(a.is("input")||a.is("textarea"))){a.getAttribute("contentEditable")!=
"false"&&a.data("cke-editable",a.hasAttribute("contenteditable")?"true":"1");a.setAttribute("contentEditable",false)}});c.on("selectionChange",function(a){if(!c.readOnly){var b=c.getSelection();if(b&&!b.isLocked){b=c.checkDirty();c.fire("lockSnapshot");d(a);c.fire("unlockSnapshot");!b&&c.resetDirty()}}})});CKEDITOR.on("instanceCreated",function(a){var c=a.editor;c.on("mode",function(){var a=c.editable();if(a&&a.isInline()){var b=c.title;a.changeAttr("role","textbox");a.changeAttr("aria-label",b);
b&&a.changeAttr("title",b);var d=c.fire("ariaEditorHelpLabel",{}).label;if(d)if(b=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents")){var h=CKEDITOR.tools.getNextId(),d=CKEDITOR.dom.element.createFromHtml('<span id="'+h+'" class="cke_voice_label">'+d+"</span>");b.append(d);a.changeAttr("aria-describedby",h)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");var m=CKEDITOR.dom.walker.whitespaces(true),
n=CKEDITOR.dom.walker.bookmark(false,true),p=CKEDITOR.dom.walker.empty(),r=CKEDITOR.dom.walker.bogus(),u=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,w=function(){function a(c){return c.type==CKEDITOR.NODE_ELEMENT}function c(b,d){var h,e,f,g,i=[],k=d.range.startContainer;h=d.range.startPath();for(var k=j[k.getName()],l=0,p=b.getChildren(),m=p.count(),o=-1,r=-1,D=0,t=h.contains(j.$list);l<m;++l){h=p.getItem(l);if(a(h)){f=
h.getName();if(t&&f in CKEDITOR.dtd.$list)i=i.concat(c(h,d));else{g=!!k[f];if(f=="br"&&h.data("cke-eol")&&(!l||l==m-1)){D=(e=l?i[l-1].node:p.getItem(l+1))&&(!a(e)||!e.is("br"));e=e&&a(e)&&j.$block[e.getName()]}o==-1&&!g&&(o=l);g||(r=l);i.push({isElement:1,isLineBreak:D,isBlock:h.isBlockBoundary(),hasBlockSibling:e,node:h,name:f,allowed:g});e=D=0}}else i.push({isElement:0,node:h,allowed:1})}if(o>-1)i[o].firstNotAllowed=1;if(r>-1)i[r].lastNotAllowed=1;return i}function b(c,d){var h=[],e=c.getChildren(),
f=e.count(),g,i=0,k=j[d],l=!c.is(j.$inline)||c.is("br");for(l&&h.push(" ");i<f;i++){g=e.getItem(i);a(g)&&!g.is(k)?h=h.concat(b(g,d)):h.push(g)}l&&h.push(" ");return h}function d(c){return c&&a(c)&&(c.is(j.$removeEmpty)||c.is("a")&&!c.isBlockBoundary())}function e(c,b,d,h){var f=c.clone(),g,j;f.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);if((g=(new CKEDITOR.dom.walker(f)).next())&&a(g)&&i[g.getName()]&&(j=g.getPrevious())&&a(j)&&!j.getParent().equals(c.startContainer)&&d.contains(j)&&h.contains(g)&&g.isIdentical(j)){g.moveChildren(j);
g.remove();e(c,b,d,h)}}function f(c,b){function d(c,b){if(b.isBlock&&b.isElement&&!b.node.is("br")&&a(c)&&c.is("br")){c.remove();return 1}}var h=b.endContainer.getChild(b.endOffset),e=b.endContainer.getChild(b.endOffset-1);h&&d(h,c[c.length-1]);if(e&&d(e,c[0])){b.setEnd(b.endContainer,b.endOffset-1);b.collapse()}}var j=CKEDITOR.dtd,i={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},k={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},p=CKEDITOR.tools.extend({},j.$inline);delete p.br;
return function(i,m,o,r){var t=i.editor,q=false;if(m=="unfiltered_html"){m="html";q=true}if(!r.checkReadOnly()){var u=(new CKEDITOR.dom.elementPath(r.startContainer,r.root)).blockLimit||r.root,i={type:m,dontFilter:q,editable:i,editor:t,range:r,blockLimit:u,mergeCandidates:[],zombies:[]},m=i.range,r=i.mergeCandidates,n,x;if(i.type=="text"&&m.shrink(CKEDITOR.SHRINK_ELEMENT,true,false)){n=CKEDITOR.dom.element.createFromHtml("<span>&nbsp;</span>",m.document);m.insertNode(n);m.setStartAfter(n)}q=new CKEDITOR.dom.elementPath(m.startContainer);
i.endPath=u=new CKEDITOR.dom.elementPath(m.endContainer);if(!m.collapsed){var t=u.block||u.blockLimit,w=m.getCommonAncestor();t&&(!t.equals(w)&&!t.contains(w)&&m.checkEndOfBlock())&&i.zombies.push(t);m.deleteContents()}for(;(x=a(m.startContainer)&&m.startContainer.getChild(m.startOffset-1))&&a(x)&&x.isBlockBoundary()&&q.contains(x);)m.moveToPosition(x,CKEDITOR.POSITION_BEFORE_END);e(m,i.blockLimit,q,u);if(n){m.setEndBefore(n);m.collapse();n.remove()}n=m.startPath();if(t=n.contains(d,false,1)){m.splitElement(t);
i.inlineStylesRoot=t;i.inlineStylesPeak=n.lastElement}n=m.createBookmark();(t=n.startNode.getPrevious(g))&&a(t)&&d(t)&&r.push(t);(t=n.startNode.getNext(g))&&a(t)&&d(t)&&r.push(t);for(t=n.startNode;(t=t.getParent())&&d(t);)r.push(t);m.moveToBookmark(n);if(n=o){n=i.range;if(i.type=="text"&&i.inlineStylesRoot){x=i.inlineStylesPeak;m=x.getDocument().createText("{cke-peak}");for(r=i.inlineStylesRoot.getParent();!x.equals(r);){m=m.appendTo(x.clone());x=x.getParent()}o=m.getOuterHtml().split("{cke-peak}").join(o)}x=
i.blockLimit.getName();if(/^\s+|\s+$/.test(o)&&"span"in CKEDITOR.dtd[x])var O='<span data-cke-marker="1">&nbsp;</span>',o=O+o+O;o=i.editor.dataProcessor.toHtml(o,{context:null,fixForBody:false,protectedWhitespaces:!!O,dontFilter:i.dontFilter,filter:i.editor.activeFilter,enterMode:i.editor.activeEnterMode});x=n.document.createElement("body");x.setHtml(o);if(O){x.getFirst().remove();x.getLast().remove()}if((O=n.startPath().block)&&!(O.getChildCount()==1&&O.getBogus()))a:{var I;if(x.getChildCount()==
1&&a(I=x.getFirst())&&I.is(k)&&!I.hasAttribute("contenteditable")){O=I.getElementsByTag("*");n=0;for(r=O.count();n<r;n++){m=O.getItem(n);if(!m.is(p))break a}I.moveChildren(I.getParent(1));I.remove()}}i.dataWrapper=x;n=o}if(n){I=i.range;n=I.document;var G;x=i.blockLimit;var r=0,P,O=[],Q,C,o=t=0,V,W,m=I.startContainer,q=i.endPath.elements[0],$,u=q.getPosition(m),w=!!q.getCommonAncestor(m)&&u!=CKEDITOR.POSITION_IDENTICAL&&!(u&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED),m=c(i.dataWrapper,
i);for(f(m,I);r<m.length;r++){u=m[r];if(G=u.isLineBreak){G=I;V=x;var T=void 0,aa=void 0;if(u.hasBlockSibling)G=1;else{T=G.startContainer.getAscendant(j.$block,1);if(!T||!T.is({div:1,p:1}))G=0;else{aa=T.getPosition(V);if(aa==CKEDITOR.POSITION_IDENTICAL||aa==CKEDITOR.POSITION_CONTAINS)G=0;else{V=G.splitElement(T);G.moveToPosition(V,CKEDITOR.POSITION_AFTER_START);G=1}}}}if(G)o=r>0;else{G=I.startPath();if(!u.isBlock&&h(i.editor,G.block,G.blockLimit)&&(C=l(i.editor))){C=n.createElement(C);C.appendBogus();
I.insertNode(C);CKEDITOR.env.needsBrFiller&&(P=C.getBogus())&&P.remove();I.moveToPosition(C,CKEDITOR.POSITION_BEFORE_END)}if((G=I.startPath().block)&&!G.equals(Q)){if(P=G.getBogus()){P.remove();O.push(G)}Q=G}u.firstNotAllowed&&(t=1);if(t&&u.isElement){G=I.startContainer;for(V=null;G&&!j[G.getName()][u.name];){if(G.equals(x)){G=null;break}V=G;G=G.getParent()}if(G){if(V){W=I.splitElement(V);i.zombies.push(W);i.zombies.push(V)}}else{V=x.getName();$=!r;G=r==m.length-1;V=b(u.node,V);for(var T=[],aa=V.length,
Z=0,X=void 0,ba=0,fa=-1;Z<aa;Z++){X=V[Z];if(X==" "){if(!ba&&(!$||Z)){T.push(new CKEDITOR.dom.text(" "));fa=T.length}ba=1}else{T.push(X);ba=0}}G&&fa==T.length&&T.pop();$=T}}if($){for(;G=$.pop();)I.insertNode(G);$=0}else I.insertNode(u.node);if(u.lastNotAllowed&&r<m.length-1){(W=w?q:W)&&I.setEndAt(W,CKEDITOR.POSITION_AFTER_START);t=0}I.collapse()}}if(m.length!=1)P=false;else{P=m[0];P=P.isElement&&P.node.getAttribute("contenteditable")=="false"}if(P){o=true;G=m[0].node;I.setStartAt(G,CKEDITOR.POSITION_BEFORE_START);
I.setEndAt(G,CKEDITOR.POSITION_AFTER_END)}i.dontMoveCaret=o;i.bogusNeededBlocks=O}P=i.range;var da;W=i.bogusNeededBlocks;for($=P.createBookmark();Q=i.zombies.pop();)if(Q.getParent()){C=P.clone();C.moveToElementEditStart(Q);C.removeEmptyBlocksAtEnd()}if(W)for(;Q=W.pop();)CKEDITOR.env.needsBrFiller?Q.appendBogus():Q.append(P.document.createText(" "));for(;Q=i.mergeCandidates.pop();)Q.mergeSiblings();P.moveToBookmark($);if(!i.dontMoveCaret){for(Q=a(P.startContainer)&&P.startContainer.getChild(P.startOffset-
1);Q&&a(Q)&&!Q.is(j.$empty);){if(Q.isBlockBoundary())P.moveToPosition(Q,CKEDITOR.POSITION_BEFORE_END);else{if(d(Q)&&Q.getHtml().match(/(\s|&nbsp;)$/g)){da=null;break}da=P.clone();da.moveToPosition(Q,CKEDITOR.POSITION_BEFORE_END)}Q=Q.getLast(g)}da&&P.moveToRange(da)}}}}(),t=function(){function a(c){c=new CKEDITOR.dom.walker(c);c.guard=function(a,c){if(c)return false;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$tableContent)};c.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT};
return c}function c(a,b,d){b=a.getDocument().createElement(b);a.append(b,d);return b}function b(a){var c=a.count(),d;for(c;c-- >0;){d=a.getItem(c);if(!CKEDITOR.tools.trim(d.getHtml())){d.appendBogus();CKEDITOR.env.ie&&(CKEDITOR.env.version<9&&d.getChildCount())&&d.getFirst().remove()}}}return function(d){var h=d.startContainer,e=h.getAscendant("table",1),f=false;b(e.getElementsByTag("td"));b(e.getElementsByTag("th"));e=d.clone();e.setStart(h,0);e=a(e).lastBackward();if(!e){e=d.clone();e.setEndAt(h,
CKEDITOR.POSITION_BEFORE_END);e=a(e).lastForward();f=true}e||(e=h);if(e.is("table")){d.setStartAt(e,CKEDITOR.POSITION_BEFORE_START);d.collapse(true);e.remove()}else{e.is({tbody:1,thead:1,tfoot:1})&&(e=c(e,"tr",f));e.is("tr")&&(e=c(e,e.getParent().is("thead")?"th":"td",f));(h=e.getBogus())&&h.remove();d.moveToPosition(e,f?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END)}}}();a={detect:function(a,c){var b=a.range,d=b.clone(),h=b.clone(),e=new CKEDITOR.dom.elementPath(b.startContainer,c),
f=new CKEDITOR.dom.elementPath(b.endContainer,c);d.collapse(1);h.collapse();if(e.block&&d.checkBoundaryOfElement(e.block,CKEDITOR.END)){b.setStartAfter(e.block);a.prependEolBr=1}if(f.block&&h.checkBoundaryOfElement(f.block,CKEDITOR.START)){b.setEndBefore(f.block);a.appendEolBr=1}},fix:function(a,c){var b=c.getDocument(),d;if(a.appendEolBr){d=this.createEolBr(b);a.fragment.append(d)}a.prependEolBr&&(!d||d.getPrevious())&&a.fragment.append(this.createEolBr(b),1)},createEolBr:function(a){return a.createElement("br",
{attributes:{"data-cke-eol":1}})}};e={exclude:function(a){var c=a.range.getBoundaryNodes(),b=c.startNode;(c=c.endNode)&&(r(c)&&(!b||!b.equals(c)))&&a.range.setEndBefore(c)}};f={rebuild:function(a,c){var b=a.range,d=b.getCommonAncestor(),h=new CKEDITOR.dom.elementPath(d,c),e=new CKEDITOR.dom.elementPath(b.startContainer,c),b=new CKEDITOR.dom.elementPath(b.endContainer,c),f;d.type==CKEDITOR.NODE_TEXT&&(d=d.getParent());if(h.blockLimit.is({tr:1,table:1})){var g=h.contains("table").getParent();f=function(a){return!a.equals(g)}}else if(h.block&&
h.block.is(CKEDITOR.dtd.$listItem)){e=e.contains(CKEDITOR.dtd.$list);b=b.contains(CKEDITOR.dtd.$list);if(!e.equals(b)){var i=h.contains(CKEDITOR.dtd.$list).getParent();f=function(a){return!a.equals(i)}}}f||(f=function(a){return!a.equals(h.block)&&!a.equals(h.blockLimit)});this.rebuildFragment(a,c,d,f)},rebuildFragment:function(a,c,b,d){for(var h;b&&!b.equals(c)&&d(b);){h=b.clone(0,1);a.fragment.appendTo(h);a.fragment=h;b=b.getParent()}}};b={shrink:function(a){var a=a.range,c=a.startContainer,b=a.endContainer,
d=a.startOffset,h=a.endOffset;c.type==CKEDITOR.NODE_ELEMENT&&(c.equals(b)&&c.is("tr")&&++d==h)&&a.shrink(CKEDITOR.SHRINK_TEXT)}};var x=function(){function a(c,b){var d=c.getParent();if(d.is(CKEDITOR.dtd.$inline))c[b?"insertBefore":"insertAfter"](d)}function c(b,d,h){a(d);a(h,1);for(var e;e=h.getNext();){e.insertAfter(d);d=e}p(b)&&b.remove()}function b(a,c){var d=new CKEDITOR.dom.range(a);d.setStartAfter(c.startNode);d.setEndBefore(c.endNode);return d}return{list:{detectMerge:function(a,c){var d=b(c,
a.bookmark),h=d.startPath(),e=d.endPath(),f=h.contains(CKEDITOR.dtd.$list),g=e.contains(CKEDITOR.dtd.$list);a.mergeList=f&&g&&f.getParent().equals(g.getParent())&&!f.equals(g);a.mergeListItems=h.block&&e.block&&h.block.is(CKEDITOR.dtd.$listItem)&&e.block.is(CKEDITOR.dtd.$listItem);if(a.mergeList||a.mergeListItems){d=d.clone();d.setStartBefore(a.bookmark.startNode);d.setEndAfter(a.bookmark.endNode);a.mergeListBookmark=d.createBookmark()}},merge:function(a,b){if(a.mergeListBookmark){var d=a.mergeListBookmark.startNode,
h=a.mergeListBookmark.endNode,e=new CKEDITOR.dom.elementPath(d,b),f=new CKEDITOR.dom.elementPath(h,b);if(a.mergeList){var g=e.contains(CKEDITOR.dtd.$list),i=f.contains(CKEDITOR.dtd.$list);if(!g.equals(i)){i.moveChildren(g);i.remove()}}if(a.mergeListItems){e=e.contains(CKEDITOR.dtd.$listItem);f=f.contains(CKEDITOR.dtd.$listItem);e.equals(f)||c(f,d,h)}d.remove();h.remove()}}},block:{detectMerge:function(a,c){if(!a.tableContentsRanges&&!a.mergeListBookmark){var b=new CKEDITOR.dom.range(c);b.setStartBefore(a.bookmark.startNode);
b.setEndAfter(a.bookmark.endNode);a.mergeBlockBookmark=b.createBookmark()}},merge:function(a,b){if(a.mergeBlockBookmark&&!a.purgeTableBookmark){var d=a.mergeBlockBookmark.startNode,h=a.mergeBlockBookmark.endNode,e=new CKEDITOR.dom.elementPath(d,b),f=new CKEDITOR.dom.elementPath(h,b),e=e.block,f=f.block;e&&(f&&!e.equals(f))&&c(f,d,h);d.remove();h.remove()}}},table:function(){function a(b){var h=[],e,f=new CKEDITOR.dom.walker(b),g=b.startPath().contains(d),i=b.endPath().contains(d),j={};f.guard=function(a,
f){if(a.type==CKEDITOR.NODE_ELEMENT){var k="visited_"+(f?"out":"in");if(a.getCustomData(k))return;CKEDITOR.dom.element.setMarker(j,a,k,1)}if(f&&g&&a.equals(g)){e=b.clone();e.setEndAt(g,CKEDITOR.POSITION_BEFORE_END);h.push(e)}else if(!f&&i&&a.equals(i)){e=b.clone();e.setStartAt(i,CKEDITOR.POSITION_AFTER_START);h.push(e)}else if(!f&&a.type==CKEDITOR.NODE_ELEMENT&&a.is(d)&&(!g||c(a,g))&&(!i||c(a,i))){e=b.clone();e.selectNodeContents(a);h.push(e)}};f.lastForward();CKEDITOR.dom.element.clearAllMarkers(j);
return h}function c(a,b){var d=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,h=a.getPosition(b);return h===CKEDITOR.POSITION_IDENTICAL?false:(h&d)===0}var d={td:1,th:1,caption:1};return{detectPurge:function(a){var c=a.range,b=c.clone();b.enlarge(CKEDITOR.ENLARGE_ELEMENT);var b=new CKEDITOR.dom.walker(b),h=0;b.evaluator=function(a){a.type==CKEDITOR.NODE_ELEMENT&&a.is(d)&&++h};b.checkForward();if(h>1){var b=c.startPath().contains("table"),e=c.endPath().contains("table");if(b&&e&&c.checkBoundaryOfElement(b,
CKEDITOR.START)&&c.checkBoundaryOfElement(e,CKEDITOR.END)){c=a.range.clone();c.setStartBefore(b);c.setEndAfter(e);a.purgeTableBookmark=c.createBookmark()}}},detectRanges:function(h,e){var f=b(e,h.bookmark),g=f.clone(),i,j,k=f.getCommonAncestor();k.is(CKEDITOR.dtd.$tableContent)&&!k.is(d)&&(k=k.getAscendant("table",true));j=k;k=new CKEDITOR.dom.elementPath(f.startContainer,j);j=new CKEDITOR.dom.elementPath(f.endContainer,j);k=k.contains("table");j=j.contains("table");if(k||j){if(k&&j&&c(k,j)){h.tableSurroundingRange=
g;g.setStartAt(k,CKEDITOR.POSITION_AFTER_END);g.setEndAt(j,CKEDITOR.POSITION_BEFORE_START);g=f.clone();g.setEndAt(k,CKEDITOR.POSITION_AFTER_END);i=f.clone();i.setStartAt(j,CKEDITOR.POSITION_BEFORE_START);i=a(g).concat(a(i))}else if(k){if(!j){h.tableSurroundingRange=g;g.setStartAt(k,CKEDITOR.POSITION_AFTER_END);f.setEndAt(k,CKEDITOR.POSITION_AFTER_END)}}else{h.tableSurroundingRange=g;g.setEndAt(j,CKEDITOR.POSITION_BEFORE_START);f.setStartAt(j,CKEDITOR.POSITION_AFTER_START)}h.tableContentsRanges=i?
i:a(f)}},deleteRanges:function(a){for(var c;c=a.tableContentsRanges.pop();){c.extractContents();p(c.startContainer)&&c.startContainer.appendBogus()}a.tableSurroundingRange&&a.tableSurroundingRange.extractContents()},purge:function(a){if(a.purgeTableBookmark){var c=a.doc,b=a.range.clone(),c=c.createElement("p");c.insertBefore(a.purgeTableBookmark.startNode);b.moveToBookmark(a.purgeTableBookmark);b.deleteContents();a.range.moveToPosition(c,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(a){return!(a.range.startPath().contains(CKEDITOR.dtd.$listItem)&&
a.range.endPath().contains(CKEDITOR.dtd.$listItem))},fixUneditableRangePosition:function(a){a.startContainer.getDtd()["#"]||a.moveToClosestEditablePosition(null,true)},autoParagraph:function(a,c){var b=c.startPath(),d;if(h(a,b.block,b.blockLimit)&&(d=l(a))){d=c.document.createElement(d);d.appendBogus();c.insertNode(d);c.moveToPosition(d,CKEDITOR.POSITION_AFTER_START)}}}}()}(),function(){function a(){var a=this._.fakeSelection,c;if(a){c=this.getSelection(1);if(!c||!c.isHidden()){a.reset();a=0}}if(!a){a=
c||this.getSelection(1);if(!a||a.getType()==CKEDITOR.SELECTION_NONE)return}this.fire("selectionCheck",a);c=this.elementPath();if(!c.compare(this._.selectionPreviousPath)){if(CKEDITOR.env.webkit)this._.previousActive=this.document.getActive();this._.selectionPreviousPath=c;this.fire("selectionChange",{selection:a,path:c})}}function e(){m=true;if(!q){b.call(this);q=CKEDITOR.tools.setTimeout(b,200,this)}}function b(){q=null;if(m){CKEDITOR.tools.setTimeout(a,0,this);m=false}}function f(a){return n(a)||
a.type==CKEDITOR.NODE_ELEMENT&&!a.is(CKEDITOR.dtd.$empty)?true:false}function d(a){function c(b,d){return!b||b.type==CKEDITOR.NODE_TEXT?false:a.clone()["moveToElementEdit"+(d?"End":"Start")](b)}if(!(a.root instanceof CKEDITOR.editable))return false;var b=a.startContainer,d=a.getPreviousNode(f,null,b),h=a.getNextNode(f,null,b);return c(d)||c(h,1)||!d&&!h&&!(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()&&b.getBogus())?true:false}function k(a){return a.getCustomData("cke-fillingChar")}function i(a,
b){var d=a&&a.removeCustomData("cke-fillingChar");if(d){if(b!==false){var h,e=a.getDocument().getSelection().getNative(),f=e&&e.type!="None"&&e.getRangeAt(0);if(d.getLength()>1&&f&&f.intersectsNode(d.$)){h=j(e);f=e.focusNode==d.$&&e.focusOffset>0;e.anchorNode==d.$&&e.anchorOffset>0&&h[0].offset--;f&&h[1].offset--}}d.setText(g(d.getText()));h&&c(a.getDocument().$,h)}}function g(a){return a.replace(/\u200B( )?/g,function(a){return a[1]?" ":""})}function j(a){return[{node:a.anchorNode,offset:a.anchorOffset},
{node:a.focusNode,offset:a.focusOffset}]}function c(a,c){var b=a.getSelection(),d=a.createRange();d.setStart(c[0].node,c[0].offset);d.collapse(true);b.removeAllRanges();b.addRange(d);b.extend(c[1].node,c[1].offset)}function h(a){var c=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")+'">&nbsp;</div>',a.document);a.fire("lockSnapshot");a.editable().append(c);var b=a.getSelection(1),d=a.createRange(),
h=b.root.on("selectionchange",function(a){a.cancel()},null,null,0);d.setStartAt(c,CKEDITOR.POSITION_AFTER_START);d.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);b.selectRanges([d]);h.removeListener();a.fire("unlockSnapshot");a._.hiddenSelectionContainer=c}function l(a){var c={37:1,39:1,8:1,46:1};return function(b){var d=b.data.getKeystroke();if(c[d]){var h=a.getSelection().getRanges(),e=h[0];if(h.length==1&&e.collapsed)if((d=e[d<38?"getPreviousEditableNode":"getNextEditableNode"]())&&d.type==CKEDITOR.NODE_ELEMENT&&
d.getAttribute("contenteditable")=="false"){a.getSelection().fake(d);b.data.preventDefault();b.cancel()}}}}function o(a){for(var c=0;c<a.length;c++){var b=a[c];b.getCommonAncestor().isReadOnly()&&a.splice(c,1);if(!b.collapsed){if(b.startContainer.isReadOnly())for(var d=b.startContainer,h;d;){if((h=d.type==CKEDITOR.NODE_ELEMENT)&&d.is("body")||!d.isReadOnly())break;h&&d.getAttribute("contentEditable")=="false"&&b.setStartAfter(d);d=d.getParent()}d=b.startContainer;h=b.endContainer;var e=b.startOffset,
f=b.endOffset,g=b.clone();d&&d.type==CKEDITOR.NODE_TEXT&&(e>=d.getLength()?g.setStartAfter(d):g.setStartBefore(d));h&&h.type==CKEDITOR.NODE_TEXT&&(f?g.setEndAfter(h):g.setEndBefore(h));d=new CKEDITOR.dom.walker(g);d.evaluator=function(d){if(d.type==CKEDITOR.NODE_ELEMENT&&d.isReadOnly()){var h=b.clone();b.setEndBefore(d);b.collapsed&&a.splice(c--,1);if(!(d.getPosition(g.endContainer)&CKEDITOR.POSITION_CONTAINS)){h.setStartAfter(d);h.collapsed||a.splice(c+1,0,h)}return true}return false};d.next()}}return a}
var q,m,n=CKEDITOR.dom.walker.invisible(1),p=function(){function a(c){return function(a){var b=a.editor.createRange();b.moveToClosestEditablePosition(a.selected,c)&&a.editor.getSelection().selectRanges([b]);return false}}function c(a){return function(c){var b=c.editor,d=b.createRange(),h;if(!(h=d.moveToClosestEditablePosition(c.selected,a)))h=d.moveToClosestEditablePosition(c.selected,!a);h&&b.getSelection().selectRanges([d]);b.fire("saveSnapshot");c.selected.remove();if(!h){d.moveToElementEditablePosition(b.editable());
b.getSelection().selectRanges([d])}b.fire("saveSnapshot");return false}}var b=a(),d=a(1);return{37:b,38:b,39:d,40:d,8:c(),46:c(1)}}();CKEDITOR.on("instanceCreated",function(c){function b(){var a=d.getSelection();a&&a.removeAllRanges()}var d=c.editor;d.on("contentDom",function(){function c(){o=new CKEDITOR.dom.selection(d.getSelection());o.lock()}function b(){f.removeListener("mouseup",b);k.removeListener("mouseup",b);var a=CKEDITOR.document.$.selection,c=a.createRange();a.type!="None"&&c.parentElement().ownerDocument==
h.$&&c.select()}var h=d.document,f=CKEDITOR.document,g=d.editable(),j=h.getBody(),k=h.getDocumentElement(),p=g.isInline(),m,o;CKEDITOR.env.gecko&&g.attachListener(g,"focus",function(a){a.removeListener();if(m!==0)if((a=d.getSelection().getNative())&&a.isCollapsed&&a.anchorNode==g.$){a=d.createRange();a.moveToElementEditStart(g);a.select()}},null,null,-2);g.attachListener(g,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){m&&CKEDITOR.env.webkit&&(m=d._.previousActive&&d._.previousActive.equals(h.getActive()));
d.unlockSelection(m);m=0},null,null,-1);g.attachListener(g,"mousedown",function(){m=0});if(CKEDITOR.env.ie||p){r?g.attachListener(g,"beforedeactivate",c,null,null,-1):g.attachListener(d,"selectionCheck",c,null,null,-1);g.attachListener(g,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){d.lockSelection(o);m=1},null,null,-1);g.attachListener(g,"mousedown",function(){m=0})}if(CKEDITOR.env.ie&&!p){var u;g.attachListener(g,"mousedown",function(a){if(a.data.$.button==2){a=d.document.getSelection();if(!a||
a.getType()==CKEDITOR.SELECTION_NONE)u=d.window.getScrollPosition()}});g.attachListener(g,"mouseup",function(a){if(a.data.$.button==2&&u){d.document.$.documentElement.scrollLeft=u.x;d.document.$.documentElement.scrollTop=u.y}u=null});if(h.$.compatMode!="BackCompat"){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)k.on("mousedown",function(a){function c(a){a=a.data.$;if(d){var b=j.$.createTextRange();try{b.moveToPoint(a.clientX,a.clientY)}catch(h){}d.setEndPoint(e.compareEndPoints("StartToStart",
b)<0?"EndToEnd":"StartToStart",b);d.select()}}function b(){k.removeListener("mousemove",c);f.removeListener("mouseup",b);k.removeListener("mouseup",b);d.select()}a=a.data;if(a.getTarget().is("html")&&a.$.y<k.$.clientHeight&&a.$.x<k.$.clientWidth){var d=j.$.createTextRange();try{d.moveToPoint(a.$.clientX,a.$.clientY)}catch(h){}var e=d.duplicate();k.on("mousemove",c);f.on("mouseup",b);k.on("mouseup",b)}});if(CKEDITOR.env.version>7&&CKEDITOR.env.version<11)k.on("mousedown",function(a){if(a.data.getTarget().is("html")){f.on("mouseup",
b);k.on("mouseup",b)}})}}g.attachListener(g,"selectionchange",a,d);g.attachListener(g,"keyup",e,d);g.attachListener(g,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){d.forceNextSelectionCheck();d.selectionChange(1)});if(p&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var q;g.attachListener(g,"mousedown",function(){q=1});g.attachListener(h.getDocumentElement(),"mouseup",function(){q&&e.call(d);q=0})}else g.attachListener(CKEDITOR.env.ie?g:h.getDocumentElement(),"mouseup",e,d);CKEDITOR.env.webkit&&
g.attachListener(h,"keydown",function(a){switch(a.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:i(g)}},null,null,-1);g.attachListener(g,"keydown",l(d),null,null,-1)});d.on("setData",function(){d.unlockSelection();CKEDITOR.env.webkit&&b()});d.on("contentDomUnload",function(){d.unlockSelection()});if(CKEDITOR.env.ie9Compat)d.on("beforeDestroy",b,null,null,9);d.on("dataReady",function(){delete d._.fakeSelection;delete d._.hiddenSelectionContainer;d.selectionChange(1)});
d.on("loadSnapshot",function(){var a=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),c=d.editable().getLast(a);if(c&&c.hasAttribute("data-cke-hidden-sel")){c.remove();if(CKEDITOR.env.gecko)(a=d.editable().getFirst(a))&&(a.is("br")&&a.getAttribute("_moz_editor_bogus_node"))&&a.remove()}},null,null,100);d.on("key",function(a){if(d.mode=="wysiwyg"){var c=d.getSelection();if(c.isFake){var b=p[a.data.keyCode];if(b)return b({editor:d,selected:c.getSelectedElement(),selection:c,keyEvent:a})}}})});CKEDITOR.on("instanceReady",
function(a){function b(){var a=h.editable();if(a)if(a=k(a)){var c=h.document.$.getSelection();if(c.type!="None"&&(c.anchorNode==a.$||c.focusNode==a.$))f=j(c);e=a.getText();a.setText(g(e))}}function d(){var a=h.editable();if(a)if(a=k(a)){a.setText(e);if(f){c(h.document.$,f);f=null}}}var h=a.editor,e,f;if(CKEDITOR.env.webkit){h.on("selectionChange",function(){var a=h.editable(),c=k(a);c&&(c.getCustomData("ready")?i(a):c.setCustomData("ready",1))},null,null,-1);h.on("beforeSetMode",function(){i(h.editable())},
null,null,-1);h.on("beforeUndoImage",b);h.on("afterUndoImage",d);h.on("beforeGetData",b,null,null,0);h.on("getData",d)}});CKEDITOR.editor.prototype.selectionChange=function(c){(c?a:e).call(this)};CKEDITOR.editor.prototype.getSelection=function(a){if((this._.savedSelection||this._.fakeSelection)&&!a)return this._.savedSelection||this._.fakeSelection;return(a=this.editable())&&this.mode=="wysiwyg"?new CKEDITOR.dom.selection(a):null};CKEDITOR.editor.prototype.lockSelection=function(a){a=a||this.getSelection(1);
if(a.getType()!=CKEDITOR.SELECTION_NONE){!a.isLocked&&a.lock();this._.savedSelection=a;return true}return false};CKEDITOR.editor.prototype.unlockSelection=function(a){var c=this._.savedSelection;if(c){c.unlock(a);delete this._.savedSelection;return true}return false};CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath};CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)};CKEDITOR.dom.range.prototype.select=function(){var a=
this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);a.selectRanges([this]);return a};CKEDITOR.SELECTION_NONE=1;CKEDITOR.SELECTION_TEXT=2;CKEDITOR.SELECTION_ELEMENT=3;var r=typeof window.getSelection!="function",u=1;CKEDITOR.dom.selection=function(a){if(a instanceof CKEDITOR.dom.selection)var c=a,a=a.root;var b=a instanceof CKEDITOR.dom.element;this.rev=c?c.rev:u++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=
b?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(c){CKEDITOR.tools.extend(this._.cache,c._.cache);this.isFake=c.isFake;this.isLocked=c.isLocked;return this}var a=this.getNative(),d,h;if(a)if(a.getRangeAt)d=(h=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(h.commonAncestorContainer);else{try{h=a.createRange()}catch(e){}d=h&&CKEDITOR.dom.element.get(h.item&&h.item(0)||h.parentElement())}if(!d||!(d.type==CKEDITOR.NODE_ELEMENT||d.type==CKEDITOR.NODE_TEXT)||!this.root.equals(d)&&
!this.root.contains(d)){this._.cache.type=CKEDITOR.SELECTION_NONE;this._.cache.startElement=null;this._.cache.selectedElement=null;this._.cache.selectedText="";this._.cache.ranges=new CKEDITOR.dom.rangeList}return this};var w={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 this._.cache.nativeSel!==void 0?this._.cache.nativeSel:this._.cache.nativeSel=
r?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:r?function(){var a=this._.cache;if(a.type)return a.type;var c=CKEDITOR.SELECTION_NONE;try{var b=this.getNative(),d=b.type;if(d=="Text")c=CKEDITOR.SELECTION_TEXT;if(d=="Control")c=CKEDITOR.SELECTION_ELEMENT;if(b.createRange().parentElement())c=CKEDITOR.SELECTION_TEXT}catch(h){}return a.type=c}:function(){var a=this._.cache;if(a.type)return a.type;var c=CKEDITOR.SELECTION_TEXT,b=this.getNative();if(!b||!b.rangeCount)c=CKEDITOR.SELECTION_NONE;
else if(b.rangeCount==1){var b=b.getRangeAt(0),d=b.startContainer;if(d==b.endContainer&&d.nodeType==1&&b.endOffset-b.startOffset==1&&w[d.childNodes[b.startOffset].nodeName.toLowerCase()])c=CKEDITOR.SELECTION_ELEMENT}return a.type=c},getRanges:function(){var a=r?function(){function a(c){return(new CKEDITOR.dom.node(c)).getIndex()}var c=function(c,b){c=c.duplicate();c.collapse(b);var d=c.parentElement();if(!d.hasChildNodes())return{container:d,offset:0};for(var h=d.children,e,f,g=c.duplicate(),i=0,
j=h.length-1,k=-1,l,p;i<=j;){k=Math.floor((i+j)/2);e=h[k];g.moveToElementText(e);l=g.compareEndPoints("StartToStart",c);if(l>0)j=k-1;else if(l<0)i=k+1;else return{container:d,offset:a(e)}}if(k==-1||k==h.length-1&&l<0){g.moveToElementText(d);g.setEndPoint("StartToStart",c);g=g.text.replace(/(\r\n|\r)/g,"\n").length;h=d.childNodes;if(!g){e=h[h.length-1];return e.nodeType!=CKEDITOR.NODE_TEXT?{container:d,offset:h.length}:{container:e,offset:e.nodeValue.length}}for(d=h.length;g>0&&d>0;){f=h[--d];if(f.nodeType==
CKEDITOR.NODE_TEXT){p=f;g=g-f.nodeValue.length}}return{container:p,offset:-g}}g.collapse(l>0?true:false);g.setEndPoint(l>0?"StartToStart":"EndToStart",c);g=g.text.replace(/(\r\n|\r)/g,"\n").length;if(!g)return{container:d,offset:a(e)+(l>0?0:1)};for(;g>0;)try{f=e[l>0?"previousSibling":"nextSibling"];if(f.nodeType==CKEDITOR.NODE_TEXT){g=g-f.nodeValue.length;p=f}e=f}catch(m){return{container:d,offset:a(e)}}return{container:p,offset:l>0?-g:p.nodeValue.length+g}};return function(){var a=this.getNative(),
b=a&&a.createRange(),d=this.getType();if(!a)return[];if(d==CKEDITOR.SELECTION_TEXT){a=new CKEDITOR.dom.range(this.root);d=c(b,true);a.setStart(new CKEDITOR.dom.node(d.container),d.offset);d=c(b);a.setEnd(new CKEDITOR.dom.node(d.container),d.offset);a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse();return[a]}if(d==CKEDITOR.SELECTION_ELEMENT){for(var d=[],h=0;h<b.length;h++){for(var e=b.item(h),f=e.parentNode,g=0,a=new CKEDITOR.dom.range(this.root);g<
f.childNodes.length&&f.childNodes[g]!=e;g++);a.setStart(new CKEDITOR.dom.node(f),g);a.setEnd(new CKEDITOR.dom.node(f),g+1);d.push(a)}return d}return[]}}():function(){var a=[],c,b=this.getNative();if(!b)return a;for(var d=0;d<b.rangeCount;d++){var h=b.getRangeAt(d);c=new CKEDITOR.dom.range(this.root);c.setStart(new CKEDITOR.dom.node(h.startContainer),h.startOffset);c.setEnd(new CKEDITOR.dom.node(h.endContainer),h.endOffset);a.push(c)}return a};return function(c){var b=this._.cache,d=b.ranges;if(!d)b.ranges=
d=new CKEDITOR.dom.rangeList(a.call(this));return!c?d:o(new CKEDITOR.dom.rangeList(d.slice()))}}(),getStartElement:function(){var a=this._.cache;if(a.startElement!==void 0)return a.startElement;var c;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var b=this.getRanges()[0];if(b){if(b.collapsed){c=b.startContainer;c.type!=CKEDITOR.NODE_ELEMENT&&(c=c.getParent())}else{for(b.optimize();;){c=b.startContainer;if(b.startOffset==(c.getChildCount?
c.getChildCount():c.getLength())&&!c.isBlockBoundary())b.setStartAfter(c);else break}c=b.startContainer;if(c.type!=CKEDITOR.NODE_ELEMENT)return c.getParent();c=c.getChild(b.startOffset);if(!c||c.type!=CKEDITOR.NODE_ELEMENT)c=b.startContainer;else for(b=c.getFirst();b&&b.type==CKEDITOR.NODE_ELEMENT;){c=b;b=b.getFirst()}}c=c.$}}return a.startElement=c?new CKEDITOR.dom.element(c):null},getSelectedElement:function(){var a=this._.cache;if(a.selectedElement!==void 0)return a.selectedElement;var c=this,
b=CKEDITOR.tools.tryThese(function(){return c.getNative().createRange().item(0)},function(){for(var a=c.getRanges()[0].clone(),b,d,h=2;h&&(!(b=a.getEnclosedNode())||!(b.type==CKEDITOR.NODE_ELEMENT&&w[b.getName()]&&(d=b)));h--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return d&&d.$});return a.selectedElement=b?new CKEDITOR.dom.element(b):null},getSelectedText:function(){var a=this._.cache;if(a.selectedText!==void 0)return a.selectedText;var c=this.getNative(),c=r?c.type=="Control"?"":c.createRange().text:
c.toString();return a.selectedText=c},lock:function(){this.getRanges();this.getStartElement();this.getSelectedElement();this.getSelectedText();this._.cache.nativeSel=null;this.isLocked=1},unlock:function(a){if(this.isLocked){if(a)var c=this.getSelectedElement(),b=!c&&this.getRanges(),d=this.isFake;this.isLocked=0;this.reset();if(a)(a=c||b[0]&&b[0].getCommonAncestor())&&a.getAscendant("body",1)&&(d?this.fake(c):c?this.selectElement(c):this.selectRanges(b))}},reset:function(){this._.cache={};this.isFake=
0;var a=this.root.editor;if(a&&a._.fakeSelection&&this.rev==a._.fakeSelection.rev){delete a._.fakeSelection;var c=a._.hiddenSelectionContainer;if(c){var b=a.checkDirty();a.fire("lockSnapshot");c.remove();a.fire("unlockSnapshot");!b&&a.resetDirty()}delete a._.hiddenSelectionContainer}this.rev=u++},selectElement:function(a){var c=new CKEDITOR.dom.range(this.root);c.setStartBefore(a);c.setEndAfter(a);this.selectRanges([c])},selectRanges:function(a){var c=this.root.editor,c=c&&c._.hiddenSelectionContainer;
this.reset();if(c)for(var c=this.root,b,h=0;h<a.length;++h){b=a[h];if(b.endContainer.equals(c))b.endOffset=Math.min(b.endOffset,c.getChildCount())}if(a.length)if(this.isLocked){var e=CKEDITOR.document.getActive();this.unlock();this.selectRanges(a);this.lock();e&&!e.equals(this.root)&&e.focus()}else{var f;a:{var g,j;if(a.length==1&&!(j=a[0]).collapsed&&(f=j.getEnclosedNode())&&f.type==CKEDITOR.NODE_ELEMENT){j=j.clone();j.shrink(CKEDITOR.SHRINK_ELEMENT,true);if((g=j.getEnclosedNode())&&g.type==CKEDITOR.NODE_ELEMENT)f=
g;if(f.getAttribute("contenteditable")=="false")break a}f=void 0}if(f)this.fake(f);else{if(r){j=CKEDITOR.dom.walker.whitespaces(true);g=/\ufeff|\u00a0/;c={table:1,tbody:1,tr:1};if(a.length>1){f=a[a.length-1];a[0].setEnd(f.endContainer,f.endOffset)}f=a[0];var a=f.collapsed,k,l,p;if((b=f.getEnclosedNode())&&b.type==CKEDITOR.NODE_ELEMENT&&b.getName()in w&&(!b.is("a")||!b.getText()))try{p=b.$.createControlRange();p.addElement(b.$);p.select();return}catch(m){}if(f.startContainer.type==CKEDITOR.NODE_ELEMENT&&
f.startContainer.getName()in c||f.endContainer.type==CKEDITOR.NODE_ELEMENT&&f.endContainer.getName()in c){f.shrink(CKEDITOR.NODE_ELEMENT,true);a=f.collapsed}p=f.createBookmark();c=p.startNode;if(!a)e=p.endNode;p=f.document.$.body.createTextRange();p.moveToElementText(c.$);p.moveStart("character",1);if(e){g=f.document.$.body.createTextRange();g.moveToElementText(e.$);p.setEndPoint("EndToEnd",g);p.moveEnd("character",-1)}else{k=c.getNext(j);l=c.hasAscendant("pre");k=!(k&&k.getText&&k.getText().match(g))&&
(l||!c.hasPrevious()||c.getPrevious().is&&c.getPrevious().is("br"));l=f.document.createElement("span");l.setHtml("&#65279;");l.insertBefore(c);k&&f.document.createText("﻿").insertBefore(c)}f.setStartBefore(c);c.remove();if(a){if(k){p.moveStart("character",-1);p.select();f.document.$.selection.clear()}else p.select();f.moveToPosition(l,CKEDITOR.POSITION_BEFORE_START);l.remove()}else{f.setEndBefore(e);e.remove();p.select()}}else{e=this.getNative();if(!e)return;this.removeAllRanges();for(p=0;p<a.length;p++){if(p<
a.length-1){k=a[p];l=a[p+1];g=k.clone();g.setStart(k.endContainer,k.endOffset);g.setEnd(l.startContainer,l.startOffset);if(!g.collapsed){g.shrink(CKEDITOR.NODE_ELEMENT,true);f=g.getCommonAncestor();g=g.getEnclosedNode();if(f.isReadOnly()||g&&g.isReadOnly()){l.setStart(k.startContainer,k.startOffset);a.splice(p--,1);continue}}}f=a[p];l=this.document.$.createRange();if(f.collapsed&&CKEDITOR.env.webkit&&d(f)){k=this.root;i(k,false);g=k.getDocument().createText("​");k.setCustomData("cke-fillingChar",
g);f.insertNode(g);if((k=g.getNext())&&!g.getPrevious()&&k.type==CKEDITOR.NODE_ELEMENT&&k.getName()=="br"){i(this.root);f.moveToPosition(k,CKEDITOR.POSITION_BEFORE_START)}else f.moveToPosition(g,CKEDITOR.POSITION_AFTER_END)}l.setStart(f.startContainer.$,f.startOffset);try{l.setEnd(f.endContainer.$,f.endOffset)}catch(o){if(o.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")>=0){f.collapse(1);l.setEnd(f.endContainer.$,f.endOffset)}else throw o;}e.addRange(l)}}this.reset();this.root.fire("selectionchange")}}},
fake:function(a){var c=this.root.editor;this.reset();h(c);var b=this._.cache,d=new CKEDITOR.dom.range(this.root);d.setStartBefore(a);d.setEndAfter(a);b.ranges=new CKEDITOR.dom.rangeList(d);b.selectedElement=b.startElement=a;b.type=CKEDITOR.SELECTION_ELEMENT;b.selectedText=b.nativeSel=null;this.isFake=1;this.rev=u++;c._.fakeSelection=this;this.root.fire("selectionchange")},isHidden:function(){var a=this.getCommonAncestor();a&&a.type==CKEDITOR.NODE_TEXT&&(a=a.getParent());return!(!a||!a.data("cke-hidden-sel"))},
createBookmarks:function(a){a=this.getRanges().createBookmarks(a);this.isFake&&(a.isFake=1);return a},createBookmarks2:function(a){a=this.getRanges().createBookmarks2(a);this.isFake&&(a.isFake=1);return a},selectBookmarks:function(a){for(var c=[],b,d=0;d<a.length;d++){var h=new CKEDITOR.dom.range(this.root);h.moveToBookmark(a[d]);c.push(h)}if(a.isFake){b=c[0].getEnclosedNode();if(!b||b.type!=CKEDITOR.NODE_ELEMENT)a.isFake=0}a.isFake?this.fake(b):this.selectRanges(c);return this},getCommonAncestor:function(){var a=
this.getRanges();return!a.length?null:a[0].startContainer.getCommonAncestor(a[a.length-1].endContainer)},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var a=this.getNative();try{a&&a[r?"empty":"removeAllRanges"]()}catch(c){}this.reset()}}}}(),"use strict",CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function a(a,c){for(var b,d;a=a.getParent();){if(a.equals(c))break;
if(a.getAttribute("data-nostyle"))b=a;else if(!d){var h=a.getAttribute("contentEditable");h=="false"?b=a:h=="true"&&(d=1)}}return b}function e(c){var b=c.document;if(c.collapsed){b=p(this,b);c.insertNode(b);c.moveToPosition(b,CKEDITOR.POSITION_BEFORE_END)}else{var d=this.element,h=this._.definition,g,j=h.ignoreReadonly,i=j||h.includeReadonly;i==null&&(i=c.root.getCustomData("cke_includeReadonly"));var k=CKEDITOR.dtd[d];if(!k){g=true;k=CKEDITOR.dtd.span}c.enlarge(CKEDITOR.ENLARGE_INLINE,1);c.trim();
var l=c.createBookmark(),m=l.startNode,o=l.endNode,r=m,u;if(!j){var n=c.getCommonAncestor(),j=a(m,n),n=a(o,n);j&&(r=j.getNextSourceNode(true));n&&(o=n)}for(r.getPosition(o)==CKEDITOR.POSITION_FOLLOWING&&(r=0);r;){j=false;if(r.equals(o)){r=null;j=true}else{var w=r.type==CKEDITOR.NODE_ELEMENT?r.getName():null,n=w&&r.getAttribute("contentEditable")=="false",t=w&&r.getAttribute("data-nostyle");if(w&&r.data("cke-bookmark")){r=r.getNextSourceNode(true);continue}if(n&&i&&CKEDITOR.dtd.$block[w])for(var x=
r,v=f(x),s=void 0,y=v.length,z=0,x=y&&new CKEDITOR.dom.range(x.getDocument());z<y;++z){var s=v[z],A=CKEDITOR.filter.instances[s.data("cke-filter")];if(A?A.check(this):1){x.selectNodeContents(s);e.call(this,x)}}v=w?!k[w]||t?0:n&&!i?0:(r.getPosition(o)|E)==E&&(!h.childRule||h.childRule(r)):1;if(v)if((v=r.getParent())&&((v.getDtd()||CKEDITOR.dtd.span)[d]||g)&&(!h.parentRule||h.parentRule(v))){if(!u&&(!w||!CKEDITOR.dtd.$removeEmpty[w]||(r.getPosition(o)|E)==E)){u=c.clone();u.setStartBefore(r)}w=r.type;
if(w==CKEDITOR.NODE_TEXT||n||w==CKEDITOR.NODE_ELEMENT&&!r.getChildCount()){for(var w=r,aa;(j=!w.getNext(B))&&(aa=w.getParent(),k[aa.getName()])&&(aa.getPosition(m)|C)==C&&(!h.childRule||h.childRule(aa));)w=aa;u.setEndAfter(w)}}else j=true;else j=true;r=r.getNextSourceNode(t||n)}if(j&&u&&!u.collapsed){for(var j=p(this,b),n=j.hasAttributes(),t=u.getCommonAncestor(),w={},v={},s={},y={},Z,X,ba;j&&t;){if(t.getName()==d){for(Z in h.attributes)if(!y[Z]&&(ba=t.getAttribute(X)))j.getAttribute(Z)==ba?v[Z]=
1:y[Z]=1;for(X in h.styles)if(!s[X]&&(ba=t.getStyle(X)))j.getStyle(X)==ba?w[X]=1:s[X]=1}t=t.getParent()}for(Z in v)j.removeAttribute(Z);for(X in w)j.removeStyle(X);n&&!j.hasAttributes()&&(j=null);if(j){u.extractContents().appendTo(j);u.insertNode(j);q.call(this,j);j.mergeSiblings();CKEDITOR.env.ie||j.$.normalize()}else{j=new CKEDITOR.dom.element("span");u.extractContents().appendTo(j);u.insertNode(j);q.call(this,j);j.remove(true)}u=null}}c.moveToBookmark(l);c.shrink(CKEDITOR.SHRINK_TEXT);c.shrink(CKEDITOR.NODE_ELEMENT,
true)}}function b(a){function c(){for(var a=new CKEDITOR.dom.elementPath(d.getParent()),b=new CKEDITOR.dom.elementPath(i.getParent()),h=null,e=null,f=0;f<a.elements.length;f++){var g=a.elements[f];if(g==a.block||g==a.blockLimit)break;k.checkElementRemovable(g,true)&&(h=g)}for(f=0;f<b.elements.length;f++){g=b.elements[f];if(g==b.block||g==b.blockLimit)break;k.checkElementRemovable(g,true)&&(e=g)}e&&i.breakParent(e);h&&d.breakParent(h)}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var b=a.createBookmark(),d=
b.startNode;if(a.collapsed){for(var h=new CKEDITOR.dom.elementPath(d.getParent(),a.root),e,f=0,g;f<h.elements.length&&(g=h.elements[f]);f++){if(g==h.block||g==h.blockLimit)break;if(this.checkElementRemovable(g)){var j;if(a.collapsed&&(a.checkBoundaryOfElement(g,CKEDITOR.END)||(j=a.checkBoundaryOfElement(g,CKEDITOR.START)))){e=g;e.match=j?"start":"end"}else{g.mergeSiblings();g.is(this.element)?o.call(this,g):m(g,w(this)[g.getName()])}}}if(e){g=d;for(f=0;;f++){j=h.elements[f];if(j.equals(e))break;else if(j.match)continue;
else j=j.clone();j.append(g);g=j}g[e.match=="start"?"insertBefore":"insertAfter"](e)}}else{var i=b.endNode,k=this;c();for(h=d;!h.equals(i);){e=h.getNextSourceNode();if(h.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(h)){h.getName()==this.element?o.call(this,h):m(h,w(this)[h.getName()]);if(e.type==CKEDITOR.NODE_ELEMENT&&e.contains(d)){c();e=d.getNext()}}h=e}}a.moveToBookmark(b);a.shrink(CKEDITOR.NODE_ELEMENT,true)}function f(a){var c=[];a.forEach(function(a){if(a.getAttribute("contenteditable")==
"true"){c.push(a);return false}},CKEDITOR.NODE_ELEMENT,true);return c}function d(a){var c=a.getEnclosedNode()||a.getCommonAncestor(false,true);(a=(new CKEDITOR.dom.elementPath(c,a.root)).contains(this.element,1))&&!a.isReadOnly()&&r(a,this)}function k(a){var c=a.getCommonAncestor(true,true);if(a=(new CKEDITOR.dom.elementPath(c,a.root)).contains(this.element,1)){var c=this._.definition,b=c.attributes;if(b)for(var d in b)a.removeAttribute(d,b[d]);if(c.styles)for(var h in c.styles)c.styles.hasOwnProperty(h)&&
a.removeStyle(h)}}function i(a){var c=a.createBookmark(true),b=a.createIterator();b.enforceRealBlocks=true;if(this._.enterMode)b.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var d,h=a.document,e;d=b.getNextParagraph();)if(!d.isReadOnly()&&(b.activeFilter?b.activeFilter.check(this):1)){e=p(this,h,d);j(d,e)}a.moveToBookmark(c)}function g(a){var c=a.createBookmark(1),b=a.createIterator();b.enforceRealBlocks=true;b.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var d,h;d=b.getNextParagraph();)if(this.checkElementRemovable(d))if(d.is("pre")){(h=
this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&d.copyAttributes(h);j(d,h)}else o.call(this,d);a.moveToBookmark(c)}function j(a,b){var d=!b;if(d){b=a.getDocument().createElement("div");a.copyAttributes(b)}var e=b&&b.is("pre"),f=a.is("pre"),g=!e&&f;if(e&&!f){f=b;(g=a.getBogus())&&g.remove();g=a.getHtml();g=h(g,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");g=g.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");g=g.replace(/([ \t\n\r]+|&nbsp;)/g,
" ");g=g.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var j=a.getDocument().createElement("div");j.append(f);f.$.outerHTML="<pre>"+g+"</pre>";f.copyAttributes(j.getFirst());f=j.getFirst().remove()}else f.setHtml(g);b=f}else g?b=l(d?[a.getHtml()]:c(a),b):a.moveChildren(b);b.replace(a);if(e){var d=b,i;if((i=d.getPrevious(A))&&i.type==CKEDITOR.NODE_ELEMENT&&i.is("pre")){e=h(i.getHtml(),/\n$/,"")+"\n\n"+h(d.getHtml(),/^\n/,"");CKEDITOR.env.ie?d.$.outerHTML="<pre>"+e+"</pre>":d.setHtml(e);i.remove()}}else d&&
n(b)}function c(a){var c=[];h(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(a,c,b){return c+"</pre>"+b+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(a,b){c.push(b)});return c}function h(a,c,b){var d="",h="",a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,c,b){c&&(d=c);b&&(h=b);return""});return d+a.replace(c,b)+h}function l(a,c){var b;a.length>1&&(b=new CKEDITOR.dom.documentFragment(c.getDocument()));
for(var d=0;d<a.length;d++){var e=a[d],e=e.replace(/(\r\n|\r)/g,"\n"),e=h(e,/^[ \t]*\n/,""),e=h(e,/\n$/,""),e=h(e,/^[ \t]+|[ \t]+$/g,function(a,c){return a.length==1?"&nbsp;":c?" "+CKEDITOR.tools.repeat("&nbsp;",a.length-1):CKEDITOR.tools.repeat("&nbsp;",a.length-1)+" "}),e=e.replace(/\n/g,"<br>"),e=e.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat("&nbsp;",a.length-1)+" "});if(b){var f=c.clone();f.setHtml(e);b.append(f)}else c.setHtml(e)}return b||c}function o(a,c){var b=this._.definition,
d=b.attributes,b=b.styles,h=w(this)[a.getName()],e=CKEDITOR.tools.isEmpty(d)&&CKEDITOR.tools.isEmpty(b),f;for(f in d)if(!((f=="class"||this._.definition.fullMatch)&&a.getAttribute(f)!=t(f,d[f]))&&!(c&&f.slice(0,5)=="data-")){e=a.hasAttribute(f);a.removeAttribute(f)}for(var g in b)if(!(this._.definition.fullMatch&&a.getStyle(g)!=t(g,b[g],true))){e=e||!!a.getStyle(g);a.removeStyle(g)}m(a,h,v[a.getName()]);e&&(this._.definition.alwaysRemoveElement?n(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==
CKEDITOR.ENTER_BR&&!a.hasAttributes()?n(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function q(a){for(var c=w(this),b=a.getElementsByTag(this.element),d,h=b.count();--h>=0;){d=b.getItem(h);d.isReadOnly()||o.call(this,d,true)}for(var e in c)if(e!=this.element){b=a.getElementsByTag(e);for(h=b.count()-1;h>=0;h--){d=b.getItem(h);d.isReadOnly()||m(d,c[e])}}}function m(a,c,b){if(c=c&&c.attributes)for(var d=0;d<c.length;d++){var h=c[d][0],e;if(e=a.getAttribute(h)){var f=c[d][1];(f===null||
f.test&&f.test(e)||typeof f=="string"&&e==f)&&a.removeAttribute(h)}}b||n(a)}function n(a,c){if(!a.hasAttributes()||c)if(CKEDITOR.dtd.$block[a.getName()]){var b=a.getPrevious(A),d=a.getNext(A);b&&(b.type==CKEDITOR.NODE_TEXT||!b.isBlockBoundary({br:1}))&&a.append("br",1);d&&(d.type==CKEDITOR.NODE_TEXT||!d.isBlockBoundary({br:1}))&&a.append("br");a.remove(true)}else{b=a.getFirst();d=a.getLast();a.remove(true);if(b){b.type==CKEDITOR.NODE_ELEMENT&&b.mergeSiblings();d&&(!b.equals(d)&&d.type==CKEDITOR.NODE_ELEMENT)&&
d.mergeSiblings()}}}function p(a,c,b){var d;d=a.element;d=="*"&&(d="span");d=new CKEDITOR.dom.element(d,c);b&&b.copyAttributes(d);d=r(d,a);c.getCustomData("doc_processing_style")&&d.hasAttribute("id")?d.removeAttribute("id"):c.setCustomData("doc_processing_style",1);return d}function r(a,c){var b=c._.definition,d=b.attributes,b=CKEDITOR.style.getStyleText(b);if(d)for(var h in d)a.setAttribute(h,d[h]);b&&a.setAttribute("style",b);return a}function u(a,c){for(var b in a)a[b]=a[b].replace(y,function(a,
b){return c[b]})}function w(a){if(a._.overrides)return a._.overrides;var c=a._.overrides={},b=a._.definition.overrides;if(b){CKEDITOR.tools.isArray(b)||(b=[b]);for(var d=0;d<b.length;d++){var h=b[d],e,f;if(typeof h=="string")e=h.toLowerCase();else{e=h.element?h.element.toLowerCase():a.element;f=h.attributes}h=c[e]||(c[e]={});if(f){var h=h.attributes=h.attributes||[],g;for(g in f)h.push([g.toLowerCase(),f[g]])}}}return c}function t(a,c,b){var d=new CKEDITOR.dom.element("span");d[b?"setStyle":"setAttribute"](a,
c);return d[b?"getStyle":"getAttribute"](a)}function x(a,c,b){for(var d=a.document,h=a.getRanges(),c=c?this.removeFromRange:this.applyToRange,e,f=h.createIterator();e=f.getNextRange();)c.call(this,e,b);a.selectRanges(h);d.removeCustomData("doc_processing_style")}var v={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},s=
{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},z=/\s*(?:;\s*|$)/,y=/#\((.+?)\)/g,B=CKEDITOR.dom.walker.bookmark(0,1),A=CKEDITOR.dom.walker.whitespaces(1);CKEDITOR.style=function(a,c){if(typeof a.type=="string")return new CKEDITOR.style.customHandlers[a.type](a);var b=a.attributes;if(b&&b.style){a.styles=CKEDITOR.tools.extend({},a.styles,CKEDITOR.tools.parseCssText(b.style));delete b.style}if(c){a=CKEDITOR.tools.clone(a);u(a.attributes,
c);u(a.styles,c)}b=this.element=a.element?typeof a.element=="string"?a.element.toLowerCase():a.element:"*";this.type=a.type||(v[b]?CKEDITOR.STYLE_BLOCK:s[b]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);if(typeof this.element=="object")this.type=CKEDITOR.STYLE_OBJECT;this._={definition:a}};CKEDITOR.style.prototype={apply:function(a){if(a instanceof CKEDITOR.dom.document)return x.call(this,a.getSelection());if(this.checkApplicable(a.elementPath(),a)){var c=this._.enterMode;if(!c)this._.enterMode=a.activeEnterMode;
x.call(this,a.getSelection(),0,a);this._.enterMode=c}},remove:function(a){if(a instanceof CKEDITOR.dom.document)return x.call(this,a.getSelection(),1);if(this.checkApplicable(a.elementPath(),a)){var c=this._.enterMode;if(!c)this._.enterMode=a.activeEnterMode;x.call(this,a.getSelection(),1,a);this._.enterMode=c}},applyToRange:function(a){this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?e:this.type==CKEDITOR.STYLE_BLOCK?i:this.type==CKEDITOR.STYLE_OBJECT?d:null;return this.applyToRange(a)},removeFromRange:function(a){this.removeFromRange=
this.type==CKEDITOR.STYLE_INLINE?b:this.type==CKEDITOR.STYLE_BLOCK?g:this.type==CKEDITOR.STYLE_OBJECT?k:null;return this.removeFromRange(a)},applyToObject:function(a){r(a,this)},checkActive:function(a,c){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||a.blockLimit,true,c);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var b=a.elements,d=0,h;d<b.length;d++){h=b[d];if(!(this.type==CKEDITOR.STYLE_INLINE&&(h==a.block||h==a.blockLimit))){if(this.type==
CKEDITOR.STYLE_OBJECT){var e=h.getName();if(!(typeof this.element=="string"?e==this.element:e in this.element))continue}if(this.checkElementRemovable(h,true,c))return true}}}return false},checkApplicable:function(a,c,b){c&&c instanceof CKEDITOR.filter&&(b=c);if(b&&!b.check(this))return false;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!a.contains(this.element);case CKEDITOR.STYLE_BLOCK:return!!a.blockLimit.getDtd()[this.element]}return true},checkElementMatch:function(a,c){var b=this._.definition;
if(!a||!b.ignoreReadonly&&a.isReadOnly())return false;var d=a.getName();if(typeof this.element=="string"?d==this.element:d in this.element){if(!c&&!a.hasAttributes())return true;if(d=b._AC)b=d;else{var d={},h=0,e=b.attributes;if(e)for(var f in e){h++;d[f]=e[f]}if(f=CKEDITOR.style.getStyleText(b)){d.style||h++;d.style=f}d._length=h;b=b._AC=d}if(b._length){for(var g in b)if(g!="_length"){h=a.getAttribute(g)||"";if(g=="style")a:{d=b[g];typeof d=="string"&&(d=CKEDITOR.tools.parseCssText(d));typeof h==
"string"&&(h=CKEDITOR.tools.parseCssText(h,true));f=void 0;for(f in d)if(!(f in h&&(h[f]==d[f]||d[f]=="inherit"||h[f]=="inherit"))){d=false;break a}d=true}else d=b[g]==h;if(d){if(!c)return true}else if(c)return false}if(c)return true}else return true}return false},checkElementRemovable:function(a,c,b){if(this.checkElementMatch(a,c,b))return true;if(c=w(this)[a.getName()]){var d;if(!(c=c.attributes))return true;for(b=0;b<c.length;b++){d=c[b][0];if(d=a.getAttribute(d)){var h=c[b][1];if(h===null)return true;
if(typeof h=="string"){if(d==h)return true}else if(h.test(d))return true}}}return false},buildPreview:function(a){var c=this._.definition,b=[],d=c.element;d=="bdo"&&(d="span");var b=["<",d],h=c.attributes;if(h)for(var e in h)b.push(" ",e,'="',h[e],'"');(h=CKEDITOR.style.getStyleText(c))&&b.push(' style="',h,'"');b.push(">",a||c.name,"</",d,">");return b.join("")},getDefinition:function(){return this._.definition}};CKEDITOR.style.getStyleText=function(a){var c=a._ST;if(c)return c;var c=a.styles,b=
a.attributes&&a.attributes.style||"",d="";b.length&&(b=b.replace(z,";"));for(var h in c){var e=c[h],f=(h+":"+e).replace(z,";");e=="inherit"?d=d+f:b=b+f}b.length&&(b=CKEDITOR.tools.normalizeCssText(b,true));return a._ST=b+d};CKEDITOR.style.customHandlers={};CKEDITOR.style.addCustomHandler=function(a){var c=function(a){this._={definition:a};this.setup&&this.setup(a)};c.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},a,true);
return this.customHandlers[a.type]=c};var E=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,C=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(a,e){this.requiredContent=this.allowedContent=this.style=a;CKEDITOR.tools.extend(this,e,true)},CKEDITOR.styleCommand.prototype.exec=function(a){a.focus();this.state==CKEDITOR.TRISTATE_OFF?a.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&
a.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(a,e,b){CKEDITOR.stylesSet.addExternal(a,e,"");CKEDITOR.stylesSet.load(a,b)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(a,e){var b=this._.styleStateChangeCallbacks;if(!b){b=this._.styleStateChangeCallbacks=[];this.on("selectionChange",function(a){for(var d=
0;d<b.length;d++){var e=b[d],i=e.style.checkActive(a.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;e.fn.call(this,i)}})}b.push({style:a,fn:e})},applyStyle:function(a){a.apply(this)},removeStyle:function(a){a.remove(this)},getStylesSet:function(a){if(this._.stylesDefinitions)a(this._.stylesDefinitions);else{var e=this,b=e.config.stylesCombo_stylesSet||e.config.stylesSet;if(b===false)a(null);else if(b instanceof Array){e._.stylesDefinitions=b;a(b)}else{b||(b="default");var b=b.split(":"),
f=b[0];CKEDITOR.stylesSet.addExternal(f,b[1]?b.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(f,function(b){e._.stylesDefinitions=b[f];a(e._.stylesDefinitions)})}}}}),CKEDITOR.dom.comment=function(a,e){typeof a=="string"&&(a=(e?e.$:document).createComment(a));CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"<\!--"+this.$.nodeValue+
"--\>"}}),"use strict",function(){var a={},e={},b;for(b in CKEDITOR.dtd.$blockLimit)b in CKEDITOR.dtd.$list||(a[b]=1);for(b in CKEDITOR.dtd.$block)b in CKEDITOR.dtd.$blockLimit||b in CKEDITOR.dtd.$empty||(e[b]=1);CKEDITOR.dom.elementPath=function(b,d){var k=null,i=null,g=[],j=b,c,d=d||b.getDocument().getBody();do if(j.type==CKEDITOR.NODE_ELEMENT){g.push(j);if(!this.lastElement){this.lastElement=j;if(j.is(CKEDITOR.dtd.$object)||j.getAttribute("contenteditable")=="false")continue}if(j.equals(d))break;
if(!i){c=j.getName();j.getAttribute("contenteditable")=="true"?i=j:!k&&e[c]&&(k=j);if(a[c]){var h;if(h=!k){if(c=c=="div"){a:{c=j.getChildren();h=0;for(var l=c.count();h<l;h++){var o=c.getItem(h);if(o.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[o.getName()]){c=true;break a}}c=false}c=!c}h=c}h?k=j:i=j}}}while(j=j.getParent());i||(i=d);this.block=k;this.blockLimit=i;this.root=d;this.elements=g}}(),CKEDITOR.dom.elementPath.prototype={compare:function(a){var e=this.elements,a=a&&a.elements;if(!a||
e.length!=a.length)return false;for(var b=0;b<e.length;b++)if(!e[b].equals(a[b]))return false;return true},contains:function(a,e,b){var f;typeof a=="string"&&(f=function(b){return b.getName()==a});a instanceof CKEDITOR.dom.element?f=function(b){return b.equals(a)}:CKEDITOR.tools.isArray(a)?f=function(b){return CKEDITOR.tools.indexOf(a,b.getName())>-1}:typeof a=="function"?f=a:typeof a=="object"&&(f=function(b){return b.getName()in a});var d=this.elements,k=d.length;e&&k--;if(b){d=Array.prototype.slice.call(d,
0);d.reverse()}for(e=0;e<k;e++)if(f(d[e]))return d[e];return null},isContextFor:function(a){var e;if(a in CKEDITOR.dtd.$block){e=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit;return!!e.getDtd()[a]}return true},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},CKEDITOR.dom.text=function(a,e){typeof a=="string"&&(a=(e?e.$:document).createTextNode(a));this.$=a},CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node,
CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(a){this.$.nodeValue=a},split:function(a){var e=this.$.parentNode,b=e.childNodes.length,f=this.getLength(),d=this.getDocument(),k=new CKEDITOR.dom.text(this.$.splitText(a),d);if(e.childNodes.length==b)if(a>=f){k=d.createText("");k.insertAfter(this)}else{a=d.createText("");a.insertAfter(k);a.remove()}return k},substring:function(a,
e){return typeof e!="number"?this.$.nodeValue.substr(a):this.$.nodeValue.substring(a,e)}}),function(){function a(a,e,d){var k=a.serializable,i=e[d?"endContainer":"startContainer"],g=d?"endOffset":"startOffset",j=k?e.document.getById(a.startNode):a.startNode,a=k?e.document.getById(a.endNode):a.endNode;if(i.equals(j.getPrevious())){e.startOffset=e.startOffset-i.getLength()-a.getPrevious().getLength();i=a.getNext()}else if(i.equals(a.getPrevious())){e.startOffset=e.startOffset-i.getLength();i=a.getNext()}i.equals(j.getParent())&&
e[g]++;i.equals(a.getParent())&&e[g]++;e[d?"endContainer":"startContainer"]=i;return e}CKEDITOR.dom.rangeList=function(a){if(a instanceof CKEDITOR.dom.rangeList)return a;a?a instanceof CKEDITOR.dom.range&&(a=[a]):a=[];return CKEDITOR.tools.extend(a,e)};var e={createIterator:function(){var a=this,e=CKEDITOR.dom.walker.bookmark(),d=[],k;return{getNextRange:function(i){k=k===void 0?0:k+1;var g=a[k];if(g&&a.length>1){if(!k)for(var j=a.length-1;j>=0;j--)d.unshift(a[j].createBookmark(true));if(i)for(var c=
0;a[k+c+1];){for(var h=g.document,i=0,j=h.getById(d[c].endNode),h=h.getById(d[c+1].startNode);;){j=j.getNextSourceNode(false);if(h.equals(j))i=1;else if(e(j)||j.type==CKEDITOR.NODE_ELEMENT&&j.isBlockBoundary())continue;break}if(!i)break;c++}for(g.moveToBookmark(d.shift());c--;){j=a[++k];j.moveToBookmark(d.shift());g.setEnd(j.endContainer,j.endOffset)}}return g}}},createBookmarks:function(b){for(var e=[],d,k=0;k<this.length;k++){e.push(d=this[k].createBookmark(b,true));for(var i=k+1;i<this.length;i++){this[i]=
a(d,this[i]);this[i]=a(d,this[i],true)}}return e},createBookmarks2:function(a){for(var e=[],d=0;d<this.length;d++)e.push(this[d].createBookmark2(a));return e},moveToBookmarks:function(a){for(var e=0;e<this.length;e++)this[e].moveToBookmark(a[e])}}}(),function(){function a(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function e(c){var b=CKEDITOR.skin["ua_"+c],d=CKEDITOR.env;if(b)for(var b=b.split(",").sort(function(a,c){return a>c?-1:1}),e=
0,f;e<b.length;e++){f=b[e];if(d.ie&&(f.replace(/^ie/,"")==d.version||d.quirks&&f=="iequirks"))f="ie";if(d[f]){c=c+("_"+b[e]);break}}return CKEDITOR.getUrl(a()+c+".css")}function b(a,b){if(!k[a]){CKEDITOR.document.appendStyleSheet(e(a));k[a]=1}b&&b()}function f(a){var b=a.getById(i);if(!b){b=a.getHead().append("style");b.setAttribute("id",i);b.setAttribute("type","text/css")}return b}function d(a,b,d){var e,f,g;if(CKEDITOR.env.webkit){b=b.split("}").slice(0,-1);for(f=0;f<b.length;f++)b[f]=b[f].split("{")}for(var j=
0;j<a.length;j++)if(CKEDITOR.env.webkit)for(f=0;f<b.length;f++){g=b[f][1];for(e=0;e<d.length;e++)g=g.replace(d[e][0],d[e][1]);a[j].$.sheet.addRule(b[f][0],g)}else{g=b;for(e=0;e<d.length;e++)g=g.replace(d[e][0],d[e][1]);CKEDITOR.env.ie&&CKEDITOR.env.version<11?a[j].$.styleSheet.cssText=a[j].$.styleSheet.cssText+g:a[j].$.innerHTML=a[j].$.innerHTML+g}}var k={};CKEDITOR.skin={path:a,loadPart:function(c,d){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(a()+
"skin.js"),function(){b(c,d)}):b(c,d)},getPath:function(a){return CKEDITOR.getUrl(e(a))},icons:{},addIcon:function(a,b,d,e){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:b,offset:d||0,bgsize:e||"16px"})},getIconStyle:function(a,b,d,e,f){var g;if(a){a=a.toLowerCase();b&&(g=this.icons[a+"-rtl"]);g||(g=this.icons[a])}a=d||g&&g.path||"";e=e||g&&g.offset;f=f||g&&g.bgsize||"16px";return a&&"background-image:url("+CKEDITOR.getUrl(a)+");background-position:0 "+e+"px;background-size:"+f+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,
{getUiColor:function(){return this.uiColor},setUiColor:function(a){var b=f(CKEDITOR.document);return(this.setUiColor=function(a){this.uiColor=a;var c=CKEDITOR.skin.chameleon,e="",f="";if(typeof c=="function"){e=c(this,"editor");f=c(this,"panel")}a=[[j,a]];d([b],e,a);d(g,f,a)}).call(this,a)}});var i="cke_ui_color",g=[],j=/\$color/g;CKEDITOR.on("instanceLoaded",function(a){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var b=a.editor,a=function(a){a=(a.data[0]||a.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();
if(!a.getById("cke_ui_color")){a=f(a);g.push(a);var c=b.getUiColor();c&&d([a],CKEDITOR.skin.chameleon(b,"panel"),[[j,c]])}};b.on("panelShow",a);b.on("menuShow",a);b.config.uiColor&&b.setUiColor(b.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=false;else{var a=CKEDITOR.dom.element.createFromHtml('<div style="width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"></div>',CKEDITOR.document);a.appendTo(CKEDITOR.document.getHead());try{var e=a.getComputedStyle("border-top-color"),
b=a.getComputedStyle("border-right-color");CKEDITOR.env.hc=!!(e&&e==b)}catch(f){CKEDITOR.env.hc=false}a.remove()}if(CKEDITOR.env.hc)CKEDITOR.env.cssClass=CKEDITOR.env.cssClass+" cke_hc";CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(a=CKEDITOR._.pending){delete CKEDITOR._.pending;for(e=0;e<a.length;e++){CKEDITOR.editor.prototype.constructor.apply(a[e][0],a[e][1]);CKEDITOR.add(a[e][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 a=function(){return function(a,b){for(var e=a.match(/[^#]./g),i=0;i<3;i++){var g=e,j=i,c;c=parseInt(e[i],16);c=("0"+(b<0?0|c*(1+b):0|c+(255-c)*b).toString(16)).slice(-2);g[j]=c}return"#"+e.join("")}}(),e=function(){var a=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(b,e){return a.output({from:b,to:e})}}(),b={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(f,d){var k=f.uiColor,k={id:"."+f.id,defaultBorder:a(k,-0.1),defaultGradient:e(a(k,0.9),k),lightGradient:e(a(k,1),a(k,0.7)),mediumGradient:e(a(k,0.8),a(k,0.5)),ckeButtonOn:e(a(k,0.6),a(k,0.7)),ckeResizer:a(k,-0.4),ckeToolbarSeparator:a(k,0.5),ckeColorauto:a(k,0.8),dialogBody:a(k,0.7),dialogTabSelected:e("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:a(k,-0.6),elementsPathBg:k,menubuttonIcon:a(k,0.5),menubuttonIconHover:a(k,0.3)};return b[d].output(k).replace(/\[/g,
"{").replace(/\]/g,"}")}}(),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var a=function(a){this._||(this._={});this._["default"]=this._.initValue=a["default"]||"";this._.required=a.required||false;for(var c=[this._],b=1;b<arguments.length;b++)c.push(arguments[b]);c.push(true);CKEDITOR.tools.extend.apply(CKEDITOR.tools,c);return this._},e={build:function(a,c,b){return new CKEDITOR.ui.dialog.textInput(a,c,b)}},b={build:function(a,c,b){return new CKEDITOR.ui.dialog[c.type](a,c,b)}},f={isChanged:function(){return this.getValue()!=
this.getInitValue()},reset:function(a){this.setValue(this.getInitValue(),a)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._["default"]},getInitValue:function(){return this._.initValue}},d=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(a,c){if(!this._.domOnChangeRegistered){a.on("load",function(){this.getInputElement().on("change",function(){a.parts.dialog.isVisible()&&this.fire("change",
{value:this.getValue()})},this)},this);this._.domOnChangeRegistered=true}this.on("change",c)}},true),k=/^on([A-Z]\w+)/,i=function(a){for(var c in a)(k.test(c)||c=="title"||c=="type")&&delete a[c];return a},g=function(a){a=a.data.getKeystroke();a==CKEDITOR.SHIFT+CKEDITOR.ALT+36?this.setDirectionMarker("ltr"):a==CKEDITOR.SHIFT+CKEDITOR.ALT+35&&this.setDirectionMarker("rtl")};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(b,c,d,e){if(!(arguments.length<4)){var f=a.call(this,c);f.labelId=
CKEDITOR.tools.getNextId()+"_label";this._.children=[];var g={role:c.role||"presentation"};if(c.includeLabel)g["aria-labelledby"]=f.labelId;CKEDITOR.ui.dialog.uiElement.call(this,b,c,d,"div",null,g,function(){var a=[],d=c.required?" cke_required":"";if(c.labelLayout!="horizontal")a.push('<label class="cke_dialog_ui_labeled_label'+d+'" ',' id="'+f.labelId+'"',f.inputId?' for="'+f.inputId+'"':"",(c.labelStyle?' style="'+c.labelStyle+'"':"")+">",c.label,"</label>",'<div class="cke_dialog_ui_labeled_content"',
c.controlStyle?' style="'+c.controlStyle+'"':"",' role="presentation">',e.call(this,b,c),"</div>");else{d={type:"hbox",widths:c.widths,padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+d+'" id="'+f.labelId+'" for="'+f.inputId+'"'+(c.labelStyle?' style="'+c.labelStyle+'"':"")+">"+CKEDITOR.tools.htmlEncode(c.label)+"</label>"},{type:"html",html:'<span class="cke_dialog_ui_labeled_content"'+(c.controlStyle?' style="'+c.controlStyle+'"':"")+">"+e.call(this,b,c)+"</span>"}]};
CKEDITOR.dialog._.uiElementBuilders.hbox.build(b,d,a)}return a.join("")})}},textInput:function(b,c,d){if(!(arguments.length<3)){a.call(this,c);var e=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",f={"class":"cke_dialog_ui_input_"+c.type,id:e,type:c.type};if(c.validate)this.validate=c.validate;if(c.maxLength)f.maxlength=c.maxLength;if(c.size)f.size=c.size;if(c.inputStyle)f.style=c.inputStyle;var i=this,k=false;b.on("load",function(){i.getInputElement().on("keydown",function(a){a.data.getKeystroke()==
13&&(k=true)});i.getInputElement().on("keyup",function(a){if(a.data.getKeystroke()==13&&k){b.getButton("ok")&&setTimeout(function(){b.getButton("ok").click()},0);k=false}i.bidi&&g.call(i,a)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,b,c,d,function(){var a=['<div class="cke_dialog_ui_input_',c.type,'" role="presentation"'];c.width&&a.push('style="width:'+c.width+'" ');a.push("><input ");f["aria-labelledby"]=this._.labelId;this._.required&&(f["aria-required"]=this._.required);for(var b in f)a.push(b+
'="'+f[b]+'" ');a.push(" /></div>");return a.join("")})}},textarea:function(b,c,d){if(!(arguments.length<3)){a.call(this,c);var e=this,f=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",i={};if(c.validate)this.validate=c.validate;i.rows=c.rows||5;i.cols=c.cols||20;i["class"]="cke_dialog_ui_input_textarea "+(c["class"]||"");if(typeof c.inputStyle!="undefined")i.style=c.inputStyle;if(c.dir)i.dir=c.dir;if(e.bidi)b.on("load",function(){e.getInputElement().on("keyup",g)},e);CKEDITOR.ui.dialog.labeledElement.call(this,
b,c,d,function(){i["aria-labelledby"]=this._.labelId;this._.required&&(i["aria-required"]=this._.required);var a=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',f,'" '],b;for(b in i)a.push(b+'="'+CKEDITOR.tools.htmlEncode(i[b])+'" ');a.push(">",CKEDITOR.tools.htmlEncode(e._["default"]),"</textarea></div>");return a.join("")})}},checkbox:function(b,c,d){if(!(arguments.length<3)){var e=a.call(this,c,{"default":!!c["default"]});if(c.validate)this.validate=c.validate;CKEDITOR.ui.dialog.uiElement.call(this,
b,c,d,"span",null,null,function(){var a=CKEDITOR.tools.extend({},c,{id:c.id?c.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},true),d=[],h=CKEDITOR.tools.getNextId()+"_label",f={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":h};i(a);if(c["default"])f.checked="checked";if(typeof a.inputStyle!="undefined")a.style=a.inputStyle;e.checkbox=new CKEDITOR.ui.dialog.uiElement(b,a,d,"input",null,f);d.push(' <label id="',h,'" for="',f.id,'"'+(c.labelStyle?' style="'+c.labelStyle+
'"':"")+">",CKEDITOR.tools.htmlEncode(c.label),"</label>");return d.join("")})}},radio:function(b,c,d){if(!(arguments.length<3)){a.call(this,c);if(!this._["default"])this._["default"]=this._.initValue=c.items[0][1];if(c.validate)this.validate=c.validate;var e=[],f=this;c.role="radiogroup";c.includeLabel=true;CKEDITOR.ui.dialog.labeledElement.call(this,b,c,d,function(){for(var a=[],d=[],h=(c.id?c.id:CKEDITOR.tools.getNextId())+"_radio",g=0;g<c.items.length;g++){var k=c.items[g],u=k[2]!==void 0?k[2]:
k[0],w=k[1]!==void 0?k[1]:k[0],t=CKEDITOR.tools.getNextId()+"_radio_input",x=t+"_label",t=CKEDITOR.tools.extend({},c,{id:t,title:null,type:null},true),u=CKEDITOR.tools.extend({},t,{title:u},true),v={type:"radio","class":"cke_dialog_ui_radio_input",name:h,value:w,"aria-labelledby":x},s=[];if(f._["default"]==w)v.checked="checked";i(t);i(u);if(typeof t.inputStyle!="undefined")t.style=t.inputStyle;t.keyboardFocusable=true;e.push(new CKEDITOR.ui.dialog.uiElement(b,t,s,"input",null,v));s.push(" ");new CKEDITOR.ui.dialog.uiElement(b,
u,s,"label",null,{id:x,"for":v.id},k[0]);a.push(s.join(""))}new CKEDITOR.ui.dialog.hbox(b,e,a,d);return d.join("")});this._.children=e}},button:function(b,c,d){if(arguments.length){typeof c=="function"&&(c=c(b.getParentEditor()));a.call(this,c,{disabled:c.disabled||false});CKEDITOR.event.implementOn(this);var e=this;b.on("load",function(){var a=this.getElement();(function(){a.on("click",function(a){e.click();a.data.preventDefault()});a.on("keydown",function(a){if(a.data.getKeystroke()in{32:1}){e.click();
a.data.preventDefault()}})})();a.unselectable()},this);var f=CKEDITOR.tools.extend({},c);delete f.style;var g=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,b,f,d,"a",null,{style:c.style,href:"javascript:void(0)",title:c.label,hidefocus:"true","class":c["class"],role:"button","aria-labelledby":g},'<span id="'+g+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(c.label)+"</span>")}},select:function(b,c,d){if(!(arguments.length<3)){var e=a.call(this,c);if(c.validate)this.validate=
c.validate;e.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,b,c,d,function(){var a=CKEDITOR.tools.extend({},c,{id:c.id?c.id+"_select":CKEDITOR.tools.getNextId()+"_select"},true),d=[],h=[],f={id:e.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};d.push('<div class="cke_dialog_ui_input_',c.type,'" role="presentation"');c.width&&d.push('style="width:'+c.width+'" ');d.push(">");if(c.size!==void 0)f.size=c.size;if(c.multiple!==void 0)f.multiple=
c.multiple;i(a);for(var g=0,k;g<c.items.length&&(k=c.items[g]);g++)h.push('<option value="',CKEDITOR.tools.htmlEncode(k[1]!==void 0?k[1]:k[0]).replace(/"/g,"&quot;"),'" /> ',CKEDITOR.tools.htmlEncode(k[0]));if(typeof a.inputStyle!="undefined")a.style=a.inputStyle;e.select=new CKEDITOR.ui.dialog.uiElement(b,a,d,"select",null,f,h.join(""));d.push("</div>");return d.join("")})}},file:function(b,c,d){if(!(arguments.length<3)){c["default"]===void 0&&(c["default"]="");var e=CKEDITOR.tools.extend(a.call(this,
c),{definition:c,buttons:[]});if(c.validate)this.validate=c.validate;b.on("load",function(){CKEDITOR.document.getById(e.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,b,c,d,function(){e.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var a=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',e.frameId,'" title="',c.label,'" src="javascript:void('];a.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+
CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0");a.push(')"></iframe>');return a.join("")})}},fileButton:function(b,c,d){var e=this;if(!(arguments.length<3)){a.call(this,c);if(c.validate)this.validate=c.validate;var f=CKEDITOR.tools.extend({},c),g=f.onClick;f.className=(f.className?f.className+" ":"")+"cke_dialog_ui_button";f.onClick=function(a){var d=c["for"];if(!g||g.call(this,a)!==false){b.getContentElement(d[0],d[1]).submit();this.disable()}};b.on("load",function(){b.getContentElement(c["for"][0],
c["for"][1])._.buttons.push(e)});CKEDITOR.ui.dialog.button.call(this,b,f,d)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,b=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,d=/\/$/;return function(e,f,g){if(!(arguments.length<3)){var i=[],k=f.html;k.charAt(0)!="<"&&(k="<span>"+k+"</span>");var p=f.focus;if(p){var r=this.focus;this.focus=function(){(typeof p=="function"?p:r).call(this);this.fire("focus")};if(f.isFocusable)this.isFocusable=this.isFocusable;this.keyboardFocusable=true}CKEDITOR.ui.dialog.uiElement.call(this,
e,f,i,"span",null,null,"");i=i.join("").match(a);k=k.match(b)||["","",""];if(d.test(k[1])){k[1]=k[1].slice(0,-1);k[2]="/"+k[2]}g.push([k[1]," ",i[1]||"",k[2]].join(""))}}}(),fieldset:function(a,b,d,e,f){var g=f.label;this._={children:b};CKEDITOR.ui.dialog.uiElement.call(this,a,f,e,"fieldset",null,null,function(){var a=[];g&&a.push("<legend"+(f.labelStyle?' style="'+f.labelStyle+'"':"")+">"+g+"</legend>");for(var b=0;b<d.length;b++)a.push(d[b]);return a.join("")})}},true);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(a){var b=CKEDITOR.document.getById(this._.labelId);b.getChildCount()<1?(new CKEDITOR.dom.text(a,CKEDITOR.document)).appendTo(b):b.getChild(0).$.nodeValue=a;return this},getLabel:function(){var a=CKEDITOR.document.getById(this._.labelId);return!a||a.getChildCount()<1?"":a.getChild(0).getText()},eventProcessors:d},true);CKEDITOR.ui.dialog.button.prototype=
CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return!this._.disabled?this.fire("click",{dialog:this._.dialog}):false},enable:function(){this._.disabled=false;var a=this.getElement();a&&a.removeClass("cke_disabled")},disable:function(){this._.disabled=true;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(a,b){this.on("click",function(){b.apply(this,arguments)})}},true),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:true},true);CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)},focus:function(){var a=this.selectParentTab();setTimeout(function(){var b=a.getInputElement();b&&b.$.focus()},0)},select:function(){var a=
this.selectParentTab();setTimeout(function(){var b=a.getInputElement();if(b){b.$.focus();b.$.select()}},0)},accessKeyUp:function(){this.select()},setValue:function(a){if(this.bidi){var b=a&&a.charAt(0);(b=b=="‪"?"ltr":b=="‫"?"rtl":null)&&(a=a.slice(1));this.setDirectionMarker(b)}a||(a="");return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},getValue:function(){var a=CKEDITOR.ui.dialog.uiElement.prototype.getValue.call(this);if(this.bidi&&a){var b=this.getDirectionMarker();
b&&(a=(b=="ltr"?"‪":"‫")+a)}return a},setDirectionMarker:function(a){var b=this.getInputElement();a?b.setAttributes({dir:a,"data-cke-dir-marker":a}):this.getDirectionMarker()&&b.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:true},f,true);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(a,b,d){var e=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),f=this.getInputElement().$;e.$.text=a;e.$.value=b===void 0||b===null?a:b;d===void 0||d===null?CKEDITOR.env.ie?f.add(e.$):f.add(e.$,null):f.add(e.$,d);return this},remove:function(a){this.getInputElement().$.remove(a);return this},clear:function(){for(var a=this.getInputElement().$;a.length>0;)a.remove(0);return this},keyboardFocusable:true},
f,true);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(a,b){this.getInputElement().$.checked=a;!b&&this.fire("change",{value:a})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(a,b){if(!CKEDITOR.env.ie||CKEDITOR.env.version>8)return d.onChange.apply(this,arguments);a.on("load",
function(){var a=this._.checkbox.getElement();a.on("propertychange",function(b){b=b.data.$;b.propertyName=="checked"&&this.fire("change",{value:a.$.checked})},this)},this);this.on("change",b);return null}},keyboardFocusable:true},f,true);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(a,b){for(var d=this._.children,e,f=0;f<d.length&&(e=d[f]);f++)e.getElement().$.checked=e.getValue()==a;!b&&this.fire("change",{value:a})},getValue:function(){for(var a=
this._.children,b=0;b<a.length;b++)if(a[b].getElement().$.checked)return a[b].getValue();return null},accessKeyUp:function(){var a=this._.children,b;for(b=0;b<a.length;b++)if(a[b].getElement().$.checked){a[b].getElement().focus();return}a[0].getElement().focus()},eventProcessors:{onChange:function(a,b){if(CKEDITOR.env.ie){a.on("load",function(){for(var a=this._.children,b=this,c=0;c<a.length;c++)a[c].getElement().on("propertychange",function(a){a=a.data.$;a.propertyName=="checked"&&this.$.checked&&
b.fire("change",{value:this.getAttribute("value")})})},this);this.on("change",b)}else return d.onChange.apply(this,arguments);return null}}},f,true);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,f,{getInputElement:function(){var a=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return a.$.forms.length>0?new CKEDITOR.dom.element(a.$.forms[0].elements[0]):this.getElement()},submit:function(){this.getInputElement().getParent().$.submit();return this},
getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(a){var b=/^on([A-Z]\w+)/,d,e=function(a,b,c,d){a.on("formLoaded",function(){a.getInputElement().on(c,d,a)})},f;for(f in a)if(d=f.match(b))this.eventProcessors[f]?this.eventProcessors[f].call(this,this._.dialog,a[f]):e(this,this._.dialog,d[1].toLowerCase(),a[f]);return this},reset:function(){function a(){d.$.open();var j="";e.size&&(j=e.size-(CKEDITOR.env.ie?7:0));var u=b.frameId+"_input";d.$.write(['<html dir="'+
k+'" lang="'+p+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+k+'" lang="'+p+'" action="',CKEDITOR.tools.htmlEncode(e.action),'"><label id="',b.labelId,'" for="',u,'" style="display:none">',CKEDITOR.tools.htmlEncode(e.label),'</label><input style="width:100%" id="',u,'" aria-labelledby="',b.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(e.id||"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(j>
0?j:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+g+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+i+")}","<\/script>"].join(""));d.$.close();for(j=0;j<f.length;j++)f[j].enable()}var b=this._,d=CKEDITOR.document.getById(b.frameId).getFrameDocument(),e=b.definition,f=b.buttons,g=this.formLoadedNumber,i=this.formUnloadNumber,k=b.dialog._.editor.lang.dir,p=b.dialog._.editor.langCode;
if(!g){g=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this);i=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this);this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(g);CKEDITOR.tools.removeFunction(i)})}CKEDITOR.env.gecko?setTimeout(a,500):a()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(a,
b){if(!this._.domOnChangeRegistered){this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this);this._.domOnChangeRegistered=true}this.on("change",b)}},keyboardFocusable:true},true);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",e);CKEDITOR.dialog.addUIElement("password",
e);CKEDITOR.dialog.addUIElement("textarea",b);CKEDITOR.dialog.addUIElement("checkbox",b);CKEDITOR.dialog.addUIElement("radio",b);CKEDITOR.dialog.addUIElement("button",b);CKEDITOR.dialog.addUIElement("select",b);CKEDITOR.dialog.addUIElement("file",b);CKEDITOR.dialog.addUIElement("fileButton",b);CKEDITOR.dialog.addUIElement("html",b);CKEDITOR.dialog.addUIElement("fieldset",{build:function(a,b,d){for(var e=b.children,f,g=[],i=[],k=0;k<e.length&&(f=e[k]);k++){var p=[];g.push(p);i.push(CKEDITOR.dialog._.uiElementBuilders[f.type].build(a,
f,p))}return new CKEDITOR.ui.dialog[b.type](a,i,g,d,b)}})}}),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 a(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+a,c=b-1;c>b-a;c--)if(this._.tabs[this._.tabIdList[c%a]][0].$.offsetHeight)return this._.tabIdList[c%a];return null}function e(){for(var a=
this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),c=b+1;c<b+a;c++)if(this._.tabs[this._.tabIdList[c%a]][0].$.offsetHeight)return this._.tabIdList[c%a];return null}function b(a,b){for(var c=a.$.getElementsByTagName("input"),d=0,e=c.length;d<e;d++){var h=new CKEDITOR.dom.element(c[d]);if(h.getAttribute("type").toLowerCase()=="text")if(b){h.setAttribute("value",h.getCustomData("fake_value")||"");h.removeCustomData("fake_value")}else{h.setCustomData("fake_value",h.getAttribute("value"));
h.setAttribute("value","")}}}function f(a,b){var c=this.getInputElement();c&&(a?c.removeAttribute("aria-invalid"):c.setAttribute("aria-invalid",true));a||(this.select?this.select():this.focus());b&&alert(b);this.fire("validated",{valid:a,msg:b})}function d(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}function k(a){var a=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",n).output({id:CKEDITOR.tools.getNextNumber(),editorId:a.id,langDir:a.lang.dir,langCode:a.langCode,
editorDialogClass:"cke_editor_"+a.name.replace(/\./g,"\\.")+"_dialog",closeTitle:a.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),b=a.getChild([0,0,0,0,0]),c=b.getChild(0),d=b.getChild(1);if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var e="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())";CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+e+'" tabIndex="-1"></iframe>').appendTo(b.getParent())}c.unselectable();
d.unselectable();return{element:a,parts:{dialog:a.getChild(0),title:c,close:d,tabs:b.getChild(2),contents:b.getChild([3,0,0,0]),footer:b.getChild([3,0,1,0])}}}function i(a,b,c){this.element=b;this.focusIndex=c;this.tabIndex=0;this.isFocusable=function(){return!b.getAttribute("disabled")&&b.isVisible()};this.focus=function(){a._.currentFocusIndex=this.focusIndex;this.element.focus()};b.on("keydown",function(a){a.data.getKeystroke()in{32:1,13:1}&&this.fire("click")});b.on("focus",function(){this.fire("mouseover")});
b.on("blur",function(){this.fire("mouseout")})}function g(a){function b(){a.layout()}var c=CKEDITOR.document.getWindow();c.on("resize",b);a.on("hide",function(){c.removeListener("resize",b)})}function j(a,b){this._={dialog:a};CKEDITOR.tools.extend(this,b)}function c(a){function b(c){var i=a.getSize(),k=CKEDITOR.document.getWindow().getViewPaneSize(),j=c.data.$.screenX,p=c.data.$.screenY,l=j-d.x,r=p-d.y;d={x:j,y:p};e.x=e.x+l;e.y=e.y+r;a.move(e.x+g[3]<f?-g[3]:e.x-g[1]>k.width-i.width-f?k.width-i.width+
(h.lang.dir=="rtl"?0:g[1]):e.x,e.y+g[0]<f?-g[0]:e.y-g[2]>k.height-i.height-f?k.height-i.height+g[2]:e.y,1);c.data.preventDefault()}function c(){CKEDITOR.document.removeListener("mousemove",b);CKEDITOR.document.removeListener("mouseup",c);if(CKEDITOR.env.ie6Compat){var a=s.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",c)}}var d=null,e=null,h=a.getParentEditor(),f=h.config.dialog_magnetDistance,g=CKEDITOR.skin.margins||[0,0,0,0];typeof f=="undefined"&&(f=
20);a.parts.title.on("mousedown",function(h){d={x:h.data.$.screenX,y:h.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",c);e=a.getPosition();if(CKEDITOR.env.ie6Compat){var f=s.getChild(0).getFrameDocument();f.on("mousemove",b);f.on("mouseup",c)}h.data.preventDefault()},a)}function h(a){var b,c;function d(e){var l=g.lang.dir=="rtl",r=p.width,m=p.height,u=r+(e.data.$.screenX-b)*(l?-1:1)*(a._.moved?1:2),o=m+(e.data.$.screenY-c)*(a._.moved?1:2),n=a._.element.getFirst(),
n=l&&n.getComputedStyle("right"),q=a.getPosition();q.y+o>j.height&&(o=j.height-q.y);if((l?n:q.x)+u>j.width)u=j.width-(l?n:q.x);if(f==CKEDITOR.DIALOG_RESIZE_WIDTH||f==CKEDITOR.DIALOG_RESIZE_BOTH)r=Math.max(h.minWidth||0,u-i);if(f==CKEDITOR.DIALOG_RESIZE_HEIGHT||f==CKEDITOR.DIALOG_RESIZE_BOTH)m=Math.max(h.minHeight||0,o-k);a.resize(r,m);a._.moved||a.layout();e.data.preventDefault()}function e(){CKEDITOR.document.removeListener("mouseup",e);CKEDITOR.document.removeListener("mousemove",d);if(l){l.remove();
l=null}if(CKEDITOR.env.ie6Compat){var a=s.getChild(0).getFrameDocument();a.removeListener("mouseup",e);a.removeListener("mousemove",d)}}var h=a.definition,f=h.resizable;if(f!=CKEDITOR.DIALOG_RESIZE_NONE){var g=a.getParentEditor(),i,k,j,p,l,r=CKEDITOR.tools.addFunction(function(h){p=a.getSize();var f=a.parts.contents;if(f.$.getElementsByTagName("iframe").length){l=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>');
f.append(l)}k=p.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks));i=p.width-a.parts.contents.getSize("width",1);b=h.screenX;c=h.screenY;j=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",d);CKEDITOR.document.on("mouseup",e);if(CKEDITOR.env.ie6Compat){f=s.getChild(0).getFrameDocument();f.on("mousemove",d);f.on("mouseup",e)}h.preventDefault&&h.preventDefault()});a.on("load",function(){var b="";f==CKEDITOR.DIALOG_RESIZE_WIDTH?
b=" cke_resizer_horizontal":f==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(b=" cke_resizer_vertical");b=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+b+" cke_resizer_"+g.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(g.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+r+', event )">'+(g.lang.dir=="ltr"?"◢":"◣")+"</div>");a.parts.footer.append(b,1)});g.on("destroy",function(){CKEDITOR.tools.removeFunction(r)})}}function l(a){a.data.preventDefault(1)}function o(a){var b=CKEDITOR.document.getWindow(),
c=a.config,d=c.dialog_backgroundCoverColor||"white",e=c.dialog_backgroundCoverOpacity,h=c.baseFloatZIndex,c=CKEDITOR.tools.genKey(d,e,h),f=v[c];if(f)f.show();else{h=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",h,"; top: 0px; left: 0px; ",!CKEDITOR.env.ie6Compat?"background-color: "+d:"",'" class="cke_dialog_background_cover">'];if(CKEDITOR.env.ie6Compat){d="<html><body style=\\'background-color:"+d+";\\'></body></html>";h.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:');
h.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+d+"' );document.close();")+"})())");h.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')}h.push("</div>");f=CKEDITOR.dom.element.createFromHtml(h.join(""));f.setOpacity(e!==void 0?e:0.5);f.on("keydown",l);f.on("keypress",l);f.on("keyup",l);f.appendTo(CKEDITOR.document.getBody());v[c]=f}a.focusManager.add(f);
s=f;var a=function(){var a=b.getViewPaneSize();f.setStyles({width:a.width+"px",height:a.height+"px"})},g=function(){var a=b.getScrollPosition(),c=CKEDITOR.dialog._.currentTop;f.setStyles({left:a.x+"px",top:a.y+"px"});if(c){do{a=c.getPosition();c.move(a.x,a.y)}while(c=c._.parentDialog)}};x=a;b.on("resize",a);a();(!CKEDITOR.env.mac||!CKEDITOR.env.webkit)&&f.focus();if(CKEDITOR.env.ie6Compat){var i=function(){g();arguments.callee.prevScrollHandler.apply(this,arguments)};b.$.setTimeout(function(){i.prevScrollHandler=
window.onscroll||function(){};window.onscroll=i},0);g()}}function q(a){if(s){a.focusManager.remove(s);a=CKEDITOR.document.getWindow();s.hide();a.removeListener("resize",x);CKEDITOR.env.ie6Compat&&a.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0);x=null}}var m=CKEDITOR.tools.cssLength,n='<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(b,g){function i(){var a=s._.focusList;a.sort(function(a,b){return a.tabIndex!=b.tabIndex?b.tabIndex-a.tabIndex:a.focusIndex-b.focusIndex});for(var b=a.length,c=0;c<b;c++)a[c].focusIndex=c}function j(a){var b=s._.focusList,a=a||0;if(!(b.length<1)){var c=s._.currentFocusIndex;s._.tabBarMode&&a<0&&(c=0);try{b[c].getInputElement().$.blur()}catch(d){}var e=c,h=s._.pageCount>1;do{e=e+a;if(h&&!s._.tabBarMode&&(e==b.length||e==-1)){s._.tabBarMode=true;s._.tabs[s._.currentTabId][0].focus();
s._.currentFocusIndex=-1;return}e=(e+b.length)%b.length;if(e==c)break}while(a&&!b[e].isFocusable());b[e].focus();b[e].type=="text"&&b[e].select()}}function l(c){if(s==CKEDITOR.dialog._.currentTop){var d=c.data.getKeystroke(),h=b.lang.dir=="rtl",f=[37,38,39,40];w=x=0;if(d==9||d==CKEDITOR.SHIFT+9){j(d==CKEDITOR.SHIFT+9?-1:1);w=1}else if(d==CKEDITOR.ALT+121&&!s._.tabBarMode&&s.getPageCount()>1){s._.tabBarMode=true;s._.tabs[s._.currentTabId][0].focus();s._.currentFocusIndex=-1;w=1}else if(CKEDITOR.tools.indexOf(f,
d)!=-1&&s._.tabBarMode){d=CKEDITOR.tools.indexOf([h?39:37,38],d)!=-1?a.call(s):e.call(s);s.selectPage(d);s._.tabs[d][0].focus();w=1}else if((d==13||d==32)&&s._.tabBarMode){this.selectPage(this._.currentTabId);this._.tabBarMode=false;this._.currentFocusIndex=-1;j(1);w=1}else if(d==13){d=c.data.getTarget();if(!d.is("a","button","select","textarea")&&(!d.is("input")||d.$.type!="button")){(d=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(d.click,0,d);w=1}x=1}else if(d==27){(d=this.getButton("cancel"))?
CKEDITOR.tools.setTimeout(d.click,0,d):this.fire("cancel",{hide:true}).hide!==false&&this.hide();x=1}else return;r(c)}}function r(a){w?a.data.preventDefault(1):x&&a.data.stopPropagation()}var m=CKEDITOR.dialog._.dialogDefinitions[g],u=CKEDITOR.tools.clone(p),o=b.config.dialog_buttonsOrder||"OS",n=b.lang.dir,q={},w,x;(o=="OS"&&CKEDITOR.env.mac||o=="rtl"&&n=="ltr"||o=="ltr"&&n=="rtl")&&u.buttons.reverse();m=CKEDITOR.tools.extend(m(b),u);m=CKEDITOR.tools.clone(m);m=new t(this,m);u=k(b);this._={editor:b,
element:u.element,name:g,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:false,focusList:[],currentFocusIndex:0,hasFocus:false};this.parts=u.parts;CKEDITOR.tools.setTimeout(function(){b.fire("ariaWidget",this.parts.contents)},0,this);u={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};u[n=="rtl"?"right":"left"]=0;this.parts.dialog.setStyles(u);
CKEDITOR.event.call(this);this.definition=m=CKEDITOR.fire("dialogDefinition",{name:g,definition:m},b).definition;if(!("removeDialogTabs"in b._)&&b.config.removeDialogTabs){u=b.config.removeDialogTabs.split(";");for(n=0;n<u.length;n++){o=u[n].split(":");if(o.length==2){var v=o[0];q[v]||(q[v]=[]);q[v].push(o[1])}}b._.removeDialogTabs=q}if(b._.removeDialogTabs&&(q=b._.removeDialogTabs[g]))for(n=0;n<q.length;n++)m.removeContents(q[n]);if(m.onLoad)this.on("load",m.onLoad);if(m.onShow)this.on("show",m.onShow);
if(m.onHide)this.on("hide",m.onHide);if(m.onOk)this.on("ok",function(a){b.fire("saveSnapshot");setTimeout(function(){b.fire("saveSnapshot")},0);if(m.onOk.call(this,a)===false)a.data.hide=false});this.state=CKEDITOR.DIALOG_STATE_IDLE;if(m.onCancel)this.on("cancel",function(a){if(m.onCancel.call(this,a)===false)a.data.hide=false});var s=this,y=function(a){var b=s._.contents,c=false,d;for(d in b)for(var e in b[d])if(c=a.call(this,b[d][e]))return};this.on("ok",function(a){y(function(b){if(b.validate){var c=
b.validate(this),d=typeof c=="string"||c===false;if(d){a.data.hide=false;a.stop()}f.call(b,!d,typeof c=="string"?c:void 0);return d}})},this,null,0);this.on("cancel",function(a){y(function(c){if(c.isChanged()){if(!b.config.dialog_noConfirmCancel&&!confirm(b.lang.common.confirmCancel))a.data.hide=false;return true}})},this,null,0);this.parts.close.on("click",function(a){this.fire("cancel",{hide:true}).hide!==false&&this.hide();a.data.preventDefault()},this);this.changeFocus=j;var z=this._.element;
b.focusManager.add(z,1);this.on("show",function(){z.on("keydown",l,this);if(CKEDITOR.env.gecko)z.on("keypress",r,this)});this.on("hide",function(){z.removeListener("keydown",l);CKEDITOR.env.gecko&&z.removeListener("keypress",r);y(function(a){d.apply(a)})});this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",l,this,null,0)});this.on("show",function(){i();var a=s._.pageCount>1;if(b.config.dialog_startupFocusTab&&a){s._.tabBarMode=true;s._.tabs[s._.currentTabId][0].focus();
s._.currentFocusIndex=-1}else if(!this._.hasFocus){this._.currentFocusIndex=a?-1:this._.focusList.length-1;if(m.onFocus)(a=m.onFocus.call(this))&&a.focus();else j(1)}},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var a=this.getElement(),b=a.getFirst();b.remove();b.appendTo(a)},this);c(this);h(this);(new CKEDITOR.dom.text(m.title,CKEDITOR.document)).appendTo(this.parts.title);for(n=0;n<m.contents.length;n++)(q=m.contents[n])&&this.addPage(q);this.parts.tabs.on("click",
function(a){var b=a.data.getTarget();if(b.hasClass("cke_dialog_tab")){b=b.$.id;this.selectPage(b.substring(4,b.lastIndexOf("_")));if(this._.tabBarMode){this._.tabBarMode=false;this._.currentFocusIndex=-1;j(1)}a.data.preventDefault()}},this);n=[];q=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:m.buttons},n).getChild();this.parts.footer.setHtml(n.join(""));for(n=0;n<q.length;n++)this._.buttons[q[n].id]=q[n]};CKEDITOR.dialog.prototype=
{destroy:function(){this.hide();this._.element.remove()},resize:function(){return function(a,b){if(!this._.contentSize||!(this._.contentSize.width==a&&this._.contentSize.height==b)){CKEDITOR.dialog.fire("resize",{dialog:this,width:a,height:b},this._.editor);this.fire("resize",{width:a,height:b},this._.editor);this.parts.contents.setStyles({width:a+"px",height:b+"px"});if(this._.editor.lang.dir=="rtl"&&this._.position)this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-
parseInt(this._.element.getFirst().getStyle("right"),10);this._.contentSize={width:a,height:b}}}}(),getSize:function(){var a=this._.element.getFirst();return{width:a.$.offsetWidth||0,height:a.$.offsetHeight||0}},move:function(a,b,c){var d=this._.element.getFirst(),e=this._.editor.lang.dir=="rtl",h=d.getComputedStyle("position")=="fixed";CKEDITOR.env.ie&&d.setStyle("zoom","100%");if(!h||!this._.position||!(this._.position.x==a&&this._.position.y==b)){this._.position={x:a,y:b};if(!h){h=CKEDITOR.document.getWindow().getScrollPosition();
a=a+h.x;b=b+h.y}if(e){h=this.getSize();a=CKEDITOR.document.getWindow().getViewPaneSize().width-h.width-a}b={top:(b>0?b:0)+"px"};b[e?"right":"left"]=(a>0?a:0)+"px";d.setStyles(b);c&&(this._.moved=1)}},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var a=this._.element,b=this.definition;!a.getParent()||!a.getParent().equals(CKEDITOR.document.getBody())?a.appendTo(CKEDITOR.document.getBody()):a.setStyle("display","block");this.resize(this._.contentSize&&this._.contentSize.width||
b.width||b.minWidth,this._.contentSize&&this._.contentSize.height||b.height||b.minHeight);this.reset();this.selectPage(this.definition.contents[0].id);if(CKEDITOR.dialog._.currentZIndex===null)CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex;this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex=CKEDITOR.dialog._.currentZIndex+10);if(CKEDITOR.dialog._.currentTop===null){CKEDITOR.dialog._.currentTop=this;this._.parentDialog=null;o(this._.editor)}else{this._.parentDialog=
CKEDITOR.dialog._.currentTop;this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2);CKEDITOR.dialog._.currentTop=this}a.on("keydown",y);a.on("keyup",B);this._.hasFocus=false;for(var c in b.contents)if(b.contents[c]){var a=b.contents[c],d=this._.tabs[a.id],e=a.requiredContent,h=0;if(d){for(var f in this._.contents[a.id]){var i=this._.contents[a.id][f];if(!(i.type=="hbox"||i.type=="vbox"||!i.getInputElement()))if(i.requiredContent&&!this._.editor.activeFilter.check(i.requiredContent))i.disable();
else{i.enable();h++}}!h||e&&!this._.editor.activeFilter.check(e)?d[0].addClass("cke_dialog_tab_disabled"):d[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout();g(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(a){a.setInitValue&&a.setInitValue()})},100,this)},layout:function(){var a=
this.parts.dialog,b=this.getSize(),c=CKEDITOR.document.getWindow().getViewPaneSize(),d=(c.width-b.width)/2,e=(c.height-b.height)/2;CKEDITOR.env.ie6Compat||(b.height+(e>0?e:0)>c.height||b.width+(d>0?d:0)>c.width?a.setStyle("position","absolute"):a.setStyle("position","fixed"));this.move(this._.moved?this._.position.x:d,this._.moved?this._.position.y:e)},foreach:function(a){for(var b in this._.contents)for(var c in this._.contents[b])a.call(this,this._.contents[b][c]);return this},reset:function(){var a=
function(a){a.reset&&a.reset(1)};return function(){this.foreach(a);return this}}(),setupContent:function(){var a=arguments;this.foreach(function(b){b.setup&&b.setup.apply(b,a)})},commitContent:function(){var a=arguments;this.foreach(function(b){CKEDITOR.env.ie&&this._.currentFocusIndex==b.focusIndex&&b.getInputElement().$.blur();b.commit&&b.commit.apply(b,a)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{});this._.editor.fire("dialogHide",this);this.selectPage(this._.tabIdList[0]);
var a=this._.element;a.setStyle("display","none");this.parts.dialog.setStyle("visibility","hidden");for(E(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var b=this._.parentDialog.getElement().getFirst();b.setStyle("z-index",parseInt(b.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else q(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex=CKEDITOR.dialog._.currentZIndex-10;
else{CKEDITOR.dialog._.currentZIndex=null;a.removeListener("keydown",y);a.removeListener("keyup",B);var c=this._.editor;c.focus();setTimeout(function(){c.focusManager.unlock();CKEDITOR.env.iOS&&c.window.focus()},0)}delete this._.parentDialog;this.foreach(function(a){a.resetInitValue&&a.resetInitValue()});this.setState(CKEDITOR.DIALOG_STATE_IDLE)}},addPage:function(a){if(!a.requiredContent||this._.editor.filter.check(a.requiredContent)){for(var b=[],c=a.label?' title="'+CKEDITOR.tools.htmlEncode(a.label)+
'"':"",d=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",children:a.elements,expand:!!a.expand,padding:a.padding,style:a.style||"width: 100%;"},b),e=this._.contents[a.id]={},h=d.getChild(),f=0;d=h.shift();){!d.notAllowed&&(d.type!="hbox"&&d.type!="vbox")&&f++;e[d.id]=d;typeof d.getChild=="function"&&h.push.apply(h,d.getChild())}if(!f)a.hidden=true;b=CKEDITOR.dom.element.createFromHtml(b.join(""));b.setAttribute("role","tabpanel");d=CKEDITOR.env;
e="cke_"+a.id+"_"+CKEDITOR.tools.getNextNumber();c=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',this._.pageCount>0?" cke_last":"cke_first",c,a.hidden?' style="display:none"':"",' id="',e,'"',d.gecko&&!d.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',a.label,"</a>"].join(""));b.setAttribute("aria-labelledby",e);this._.tabs[a.id]=[c,b];this._.tabIdList.push(a.id);!a.hidden&&this._.pageCount++;this._.lastTab=c;this.updateStyle();b.setAttribute("name",
a.id);b.appendTo(this.parts.contents);c.unselectable();this.parts.tabs.append(c);if(a.accessKey){A(this,this,"CTRL+"+a.accessKey,F,C);this._.accessKeyMap["CTRL+"+a.accessKey]=a.id}}},selectPage:function(a){if(this._.currentTabId!=a&&!this._.tabs[a][0].hasClass("cke_dialog_tab_disabled")&&this.fire("selectPage",{page:a,currentPage:this._.currentTabId})!==false){for(var c in this._.tabs){var d=this._.tabs[c][0],e=this._.tabs[c][1];if(c!=a){d.removeClass("cke_dialog_tab_selected");e.hide()}e.setAttribute("aria-hidden",
c!=a)}var h=this._.tabs[a];h[0].addClass("cke_dialog_tab_selected");if(CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat){b(h[1]);h[1].show();setTimeout(function(){b(h[1],1)},0)}else h[1].show();this._.currentTabId=a;this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,a)}},updateStyle:function(){this.parts.dialog[(this._.pageCount===1?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(b){var c=this._.tabs[b]&&this._.tabs[b][0];if(c&&this._.pageCount!=1&&c.isVisible()){b==this._.currentTabId&&
this.selectPage(a.call(this));c.hide();this._.pageCount--;this.updateStyle()}},showPage:function(a){if(a=this._.tabs[a]&&this._.tabs[a][0]){a.show();this._.pageCount++;this.updateStyle()}},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(a,b){var c=this._.contents[a];return c&&c[b]},getValueOf:function(a,b){return this.getContentElement(a,b).getValue()},setValueOf:function(a,b,c){return this.getContentElement(a,b).setValue(c)},getButton:function(a){return this._.buttons[a]},
click:function(a){return this._.buttons[a].click()},disableButton:function(a){return this._.buttons[a].disable()},enableButton:function(a){return this._.buttons[a].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(a,b){if(typeof b=="undefined"){b=this._.focusList.length;this._.focusList.push(new i(this,a,b))}else{this._.focusList.splice(b,
0,new i(this,a,b));for(var c=b+1;c<this._.focusList.length;c++)this._.focusList[c].focusIndex++}},setState:function(a){if(this.state!=a){this.state=a;if(a==CKEDITOR.DIALOG_STATE_BUSY){if(!this.parts.spinner){this.parts.spinner=CKEDITOR.document.createElement("div",{attributes:{"class":"cke_dialog_spinner"},styles:{"float":"left","margin-right":"8px"}});this.parts.spinner.setHtml("&#8987;");this.parts.spinner.appendTo(this.parts.title,1)}this.parts.spinner.show();this.getButton("ok").disable()}else if(a==
CKEDITOR.DIALOG_STATE_IDLE){this.parts.spinner&&this.parts.spinner.hide();this.getButton("ok").enable()}this.fire("state",a)}}};CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(a,b){if(!this._.dialogDefinitions[a]||typeof b=="function")this._.dialogDefinitions[a]=b},exists:function(a){return!!this._.dialogDefinitions[a]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(a,b,c){a=a.config.removeDialogTabs;return!(a&&a.match(RegExp("(?:^|;)"+b+":"+c+"(?:$|;)","i")))},
okButton:function(){var a=function(a,b){b=b||{};return CKEDITOR.tools.extend({id:"ok",type:"button",label:a.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(a){a=a.data.dialog;a.fire("ok",{hide:true}).hide!==false&&a.hide()}},b,true)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(c){return a(c,b)},{type:"button"},true)};return a}(),cancelButton:function(){var a=function(a,b){b=b||{};return CKEDITOR.tools.extend({id:"cancel",type:"button",label:a.lang.common.cancel,
"class":"cke_dialog_ui_button_cancel",onClick:function(a){a=a.data.dialog;a.fire("cancel",{hide:true}).hide!==false&&a.hide()}},b,true)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(c){return a(c,b)},{type:"button"},true)};return a}(),addUIElement:function(a,b){this._.uiElementBuilders[a]=b}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog);CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);
var p={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},r=function(a,b,c){for(var d=0,e;e=a[d];d++){if(e.id==b)return e;if(c&&e[c])if(e=r(e[c],b,c))return e}return null},u=function(a,b,c,d,e){if(c){for(var h=0,f;f=a[h];h++){if(f.id==c){a.splice(h,0,b);return b}if(d&&f[d])if(f=u(f[d],b,c,d,true))return f}if(e)return null}a.push(b);return b},w=function(a,b,c){for(var d=0,e;e=a[d];d++){if(e.id==b)return a.splice(d,1);if(c&&
e[c])if(e=w(e[c],b,c))return e}return null},t=function(a,b){this.dialog=a;for(var c=b.contents,d=0,e;e=c[d];d++)c[d]=e&&new j(a,e);CKEDITOR.tools.extend(this,b)};t.prototype={getContents:function(a){return r(this.contents,a)},getButton:function(a){return r(this.buttons,a)},addContents:function(a,b){return u(this.contents,a,b)},addButton:function(a,b){return u(this.buttons,a,b)},removeContents:function(a){w(this.contents,a)},removeButton:function(a){w(this.buttons,a)}};j.prototype={get:function(a){return r(this.elements,
a,"children")},add:function(a,b){return u(this.elements,a,b,"children")},remove:function(a){w(this.elements,a,"children")}};var x,v={},s,z={},y=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,d=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);if((b=z[(b?"CTRL+":"")+(c?"ALT+":"")+(d?"SHIFT+":"")+e])&&b.length){b=b[b.length-1];b.keydown&&b.keydown.call(b.uiElement,b.dialog,b.key);a.data.preventDefault()}},B=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,
d=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);if((b=z[(b?"CTRL+":"")+(c?"ALT+":"")+(d?"SHIFT+":"")+e])&&b.length){b=b[b.length-1];if(b.keyup){b.keyup.call(b.uiElement,b.dialog,b.key);a.data.preventDefault()}}},A=function(a,b,c,d,e){(z[c]||(z[c]=[])).push({uiElement:a,dialog:b,key:c,keyup:e||a.accessKeyUp,keydown:d||a.accessKeyDown})},E=function(a){for(var b in z){for(var c=z[b],d=c.length-1;d>=0;d--)(c[d].dialog==a||c[d].uiElement==a)&&c.splice(d,1);c.length===0&&delete z[b]}},C=function(a,
b){a._.accessKeyMap[b]&&a.selectPage(a._.accessKeyMap[b])},F=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(a,b,c,d,e,h,f){if(!(arguments.length<4)){var g=(d.call?d(b):d)||"div",i=["<",g," "],k=(e&&e.call?e(b):e)||{},j=(h&&h.call?h(b):h)||{},p=(f&&f.call?f.call(this,a,b):f)||"",l=this.domId=j.id||CKEDITOR.tools.getNextId()+"_uiElement";if(b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)){k.display="none";this.notAllowed=true}j.id=l;var r={};b.type&&(r["cke_dialog_ui_"+
b.type]=1);b.className&&(r[b.className]=1);if(b.disabled)r.cke_disabled=1;for(var m=j["class"]&&j["class"].split?j["class"].split(" "):[],l=0;l<m.length;l++)m[l]&&(r[m[l]]=1);m=[];for(l in r)m.push(l);j["class"]=m.join(" ");if(b.title)j.title=b.title;r=(b.style||"").split(";");if(b.align){m=b.align;k["margin-left"]=m=="left"?0:"auto";k["margin-right"]=m=="right"?0:"auto"}for(l in k)r.push(l+":"+k[l]);b.hidden&&r.push("display:none");for(l=r.length-1;l>=0;l--)r[l]===""&&r.splice(l,1);if(r.length>0)j.style=
(j.style?j.style+"; ":"")+r.join("; ");for(l in j)i.push(l+'="'+CKEDITOR.tools.htmlEncode(j[l])+'" ');i.push(">",p,"</",g,">");c.push(i.join(""));(this._||(this._={})).dialog=a;if(typeof b.isChanged=="boolean")this.isChanged=function(){return b.isChanged};if(typeof b.isChanged=="function")this.isChanged=b.isChanged;if(typeof b.setValue=="function")this.setValue=CKEDITOR.tools.override(this.setValue,function(a){return function(c){a.call(this,b.setValue.call(this,c))}});if(typeof b.getValue=="function")this.getValue=
CKEDITOR.tools.override(this.getValue,function(a){return function(){return b.getValue.call(this,a.call(this))}});CKEDITOR.event.implementOn(this);this.registerEvents(b);this.accessKeyUp&&(this.accessKeyDown&&b.accessKey)&&A(this,a,"CTRL+"+b.accessKey);var u=this;a.on("load",function(){var b=u.getInputElement();if(b){var c=u.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?"cke_dialog_ui_focused":"";b.on("focus",function(){a._.tabBarMode=false;a._.hasFocus=true;u.fire("focus");
c&&this.addClass(c)});b.on("blur",function(){u.fire("blur");c&&this.removeClass(c)})}});CKEDITOR.tools.extend(this,b);if(this.keyboardFocusable){this.tabIndex=b.tabIndex||0;this.focusIndex=a._.focusList.push(this)-1;this.on("focus",function(){a._.currentFocusIndex=u.focusIndex})}}},hbox:function(a,b,c,d,e){if(!(arguments.length<4)){this._||(this._={});var h=this._.children=b,f=e&&e.widths||null,g=e&&e.height||null,i,k={role:"presentation"};e&&e.align&&(k.align=e.align);CKEDITOR.ui.dialog.uiElement.call(this,
a,e||{type:"hbox"},d,"table",{},k,function(){var a=['<tbody><tr class="cke_dialog_ui_hbox">'];for(i=0;i<c.length;i++){var b="cke_dialog_ui_hbox_child",d=[];i===0&&(b="cke_dialog_ui_hbox_first");i==c.length-1&&(b="cke_dialog_ui_hbox_last");a.push('<td class="',b,'" role="presentation" ');f?f[i]&&d.push("width:"+m(f[i])):d.push("width:"+Math.floor(100/c.length)+"%");g&&d.push("height:"+m(g));e&&e.padding!==void 0&&d.push("padding:"+m(e.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&h[i].align)&&d.push("text-align:"+
h[i].align);d.length>0&&a.push('style="'+d.join("; ")+'" ');a.push(">",c[i],"</td>")}a.push("</tr></tbody>");return a.join("")})}},vbox:function(a,b,c,d,e){if(!(arguments.length<3)){this._||(this._={});var h=this._.children=b,f=e&&e.width||null,g=e&&e.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"vbox"},d,"div",null,{role:"presentation"},function(){var b=['<table role="presentation" cellspacing="0" border="0" '];b.push('style="');e&&e.expand&&b.push("height:100%;");b.push("width:"+
m(f||"100%"),";");CKEDITOR.env.webkit&&b.push("float:none;");b.push('"');b.push('align="',CKEDITOR.tools.htmlEncode(e&&e.align||(a.getParentEditor().lang.dir=="ltr"?"left":"right")),'" ');b.push("><tbody>");for(var d=0;d<c.length;d++){var i=[];b.push('<tr><td role="presentation" ');f&&i.push("width:"+m(f||"100%"));g?i.push("height:"+m(g[d])):e&&e.expand&&i.push("height:"+Math.floor(100/c.length)+"%");e&&e.padding!==void 0&&i.push("padding:"+m(e.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&h[d].align)&&
i.push("text-align:"+h[d].align);i.length>0&&b.push('style="',i.join("; "),'" ');b.push(' class="cke_dialog_ui_vbox_child">',c[d],"</td></tr>")}b.push("</tbody></table>");return b.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(a,b){this.getInputElement().setValue(a);!b&&this.fire("change",{value:a});return this},
getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return false},selectParentTab:function(){for(var a=this.getInputElement();(a=a.getParent())&&a.$.className.search("cke_dialog_page_contents")==-1;);if(!a)return this;a=a.getAttribute("name");this._.dialog._.currentTabId!=a&&this._.dialog.selectPage(a);return this},focus:function(){this.selectParentTab().getInputElement().focus();return this},registerEvents:function(a){var b=/^on([A-Z]\w+)/,c,d=function(a,b,c,d){b.on("load",
function(){a.getInputElement().on(c,d,a)})},e;for(e in a)if(c=e.match(b))this.eventProcessors[e]?this.eventProcessors[e].call(this,this._.dialog,a[e]):d(this,this._.dialog,c[1].toLowerCase(),a[e]);return this},eventProcessors:{onLoad:function(a,b){a.on("load",b,this)},onShow:function(a,b){a.on("show",b,this)},onHide:function(a,b){a.on("hide",b,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var a=this.getElement();this.getInputElement().setAttribute("disabled",
"true");a.addClass("cke_disabled")},enable:function(){var a=this.getElement();this.getInputElement().removeAttribute("disabled");a.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return!this.isEnabled()||!this.isVisible()?false:true}};CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getChild:function(a){if(arguments.length<
1)return this._.children.concat();a.splice||(a=[a]);return a.length<2?this._.children[a[0]]:this._.children[a[0]]&&this._.children[a[0]].getChild?this._.children[a[0]].getChild(a.slice(1,a.length)):null}},true);CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox;(function(){var a={build:function(a,b,c){for(var d=b.children,e,h=[],f=[],g=0;g<d.length&&(e=d[g]);g++){var i=[];h.push(i);f.push(CKEDITOR.dialog._.uiElementBuilders[e.type].build(a,e,i))}return new CKEDITOR.ui.dialog[b.type](a,
f,h,c,b)}};CKEDITOR.dialog.addUIElement("hbox",a);CKEDITOR.dialog.addUIElement("vbox",a)})();CKEDITOR.dialogCommand=function(a,b){this.dialogName=a;CKEDITOR.tools.extend(this,b,true)};CKEDITOR.dialogCommand.prototype={exec:function(a){a.openDialog(this.dialogName)},canUndo:false,editorFocus:1};(function(){var a=/^([a]|[^a])+$/,b=/^\d*$/,c=/^\d*(?:\.\d+)?$/,d=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,e=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,h=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;CKEDITOR.VALIDATE_OR=
1;CKEDITOR.VALIDATE_AND=2;CKEDITOR.dialog.validate={functions:function(){var a=arguments;return function(){var b=this&&this.getValue?this.getValue():a[0],c,d=CKEDITOR.VALIDATE_AND,e=[],h;for(h=0;h<a.length;h++)if(typeof a[h]=="function")e.push(a[h]);else break;if(h<a.length&&typeof a[h]=="string"){c=a[h];h++}h<a.length&&typeof a[h]=="number"&&(d=a[h]);var f=d==CKEDITOR.VALIDATE_AND?true:false;for(h=0;h<e.length;h++)f=d==CKEDITOR.VALIDATE_AND?f&&e[h](b):f||e[h](b);return!f?c:true}},regex:function(a,
b){return function(c){c=this&&this.getValue?this.getValue():c;return!a.test(c)?b:true}},notEmpty:function(b){return this.regex(a,b)},integer:function(a){return this.regex(b,a)},number:function(a){return this.regex(c,a)},cssLength:function(a){return this.functions(function(a){return e.test(CKEDITOR.tools.trim(a))},a)},htmlLength:function(a){return this.functions(function(a){return d.test(CKEDITOR.tools.trim(a))},a)},inlineStyle:function(a){return this.functions(function(a){return h.test(CKEDITOR.tools.trim(a))},
a)},equals:function(a,b){return this.functions(function(b){return b==a},b)},notEqual:function(a,b){return this.functions(function(b){return b!=a},b)}};CKEDITOR.on("instanceDestroyed",function(a){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var b;b=CKEDITOR.dialog._.currentTop;)b.hide();for(var c in v)v[c].remove();v={}}var a=a.editor._.storedDialogs,d;for(d in a)a[d].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a,b){var c=null,d=CKEDITOR.dialog._.dialogDefinitions[a];
CKEDITOR.dialog._.currentTop===null&&o(this);if(typeof d=="function"){c=this._.storedDialogs||(this._.storedDialogs={});c=c[a]||(c[a]=new CKEDITOR.dialog(this,a));b&&b.call(c,c);c.show()}else{if(d=="failed"){q(this);throw Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');}typeof d=="string"&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(d),function(){typeof CKEDITOR.dialog._.dialogDefinitions[a]!="function"&&(CKEDITOR.dialog._.dialogDefinitions[a]="failed");this.openDialog(a,
b)},this,0,1)}CKEDITOR.skin.loadPart("dialog");return c}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(a){a.on("doubleclick",function(e){e.data.dialog&&a.openDialog(e.data.dialog)},null,null,999)}}),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,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(a){var e=this;a.addCommand("a11yHelp",{exec:function(){var b=a.langCode,b=e.availableLangs[b]?b:e.availableLangs[b.replace(/-.*/,"")]?b.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e.path+"dialogs/lang/"+b+".js"),function(){a.lang.a11yhelp=e.langEntries[b];a.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:false});a.setKeystroke(CKEDITOR.ALT+
48,"a11yHelp");CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js");a.on("ariaEditorHelpLabel",function(b){b.data.label=a.lang.common.editorHelp})}})}(),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(a){var e=a.addCommand("about",new CKEDITOR.dialogCommand("about"));e.modes={wysiwyg:1,source:1};e.canUndo=false;e.readOnly=1;a.ui.addButton&&a.ui.addButton("About",{label:a.lang.about.title,command:"about",toolbar:"about"});CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),
CKEDITOR.plugins.add("basicstyles",{init:function(a){var e=0,b=function(b,d,k,c){if(c){var c=new CKEDITOR.style(c),h=f[k];h.unshift(c);a.attachStyleStateChange(c,function(b){!a.readOnly&&a.getCommand(k).setState(b)});a.addCommand(k,new CKEDITOR.styleCommand(c,{contentForms:h}));a.ui.addButton&&a.ui.addButton(b,{label:d,command:k,toolbar:"basicstyles,"+(e=e+10)})}},f={bold:["strong","b",["span",function(a){a=a.styles["font-weight"];return a=="bold"||+a>=700}]],italic:["em","i",["span",function(a){return a.styles["font-style"]==
"italic"}]],underline:["u",["span",function(a){return a.styles["text-decoration"]=="underline"}]],strike:["s","strike",["span",function(a){return a.styles["text-decoration"]=="line-through"}]],subscript:["sub"],superscript:["sup"]},d=a.config,k=a.lang.basicstyles;b("Bold",k.bold,"bold",d.coreStyles_bold);b("Italic",k.italic,"italic",d.coreStyles_italic);b("Underline",k.underline,"underline",d.coreStyles_underline);b("Strike",k.strike,"strike",d.coreStyles_strike);b("Subscript",k.subscript,"subscript",
d.coreStyles_subscript);b("Superscript",k.superscript,"superscript",d.coreStyles_superscript);a.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 a(a,b,c,d){if(!a.isReadOnly()&&!a.equals(c.editable())){CKEDITOR.dom.element.setMarker(d,a,"bidi_processed",1);for(var d=a,e=c.editable();(d=d.getParent())&&!d.equals(e);)if(d.getCustomData("bidi_processed")){a.removeStyle("direction");a.removeAttribute("dir");return}d="useComputedState"in c.config?c.config.useComputedState:1;if((d?a.getComputedStyle("direction"):a.getStyle("direction")||a.hasAttribute("dir"))!=b){a.removeStyle("direction");if(d){a.removeAttribute("dir");
b!=a.getComputedStyle("direction")&&a.setAttribute("dir",b)}else a.setAttribute("dir",b);c.forceNextSelectionCheck()}}}function e(a,b,c){var d=a.getCommonAncestor(false,true),a=a.clone();a.enlarge(c==CKEDITOR.ENTER_BR?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(a.checkBoundaryOfElement(d,CKEDITOR.START)&&a.checkBoundaryOfElement(d,CKEDITOR.END)){for(var e;d&&d.type==CKEDITOR.NODE_ELEMENT&&(e=d.getParent())&&e.getChildCount()==1&&!(d.getName()in b);)d=e;return d.type==CKEDITOR.NODE_ELEMENT&&
d.getName()in b&&d}}function b(b){return{context:"p",allowedContent:{"h1 h2 h3 h4 h5 h6 table ul ol blockquote div tr p div li td":{propertiesOnly:true,attributes:"dir"}},requiredContent:"p[dir]",refresh:function(a,b){var c=a.config.useComputedState,d,c=c===void 0||c;if(!c){d=b.lastElement;for(var e=a.editable();d&&!(d.getName()in i||d.equals(e));){var h=d.getParent();if(!h)break;d=h}}d=d||b.block||b.blockLimit;if(d.equals(a.editable()))(e=a.getSelection().getRanges()[0].getEnclosedNode())&&e.type==
CKEDITOR.NODE_ELEMENT&&(d=e);if(d){c=c?d.getComputedStyle("direction"):d.getStyle("direction")||d.getAttribute("dir");a.getCommand("bidirtl").setState(c=="rtl"?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF);a.getCommand("bidiltr").setState(c=="ltr"?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}c=(b.block||b.blockLimit||a.editable()).getDirection(1);if(c!=(a._.selDir||a.lang.dir)){a._.selDir=c;a.fire("contentDirChanged",c)}},exec:function(c){var f=c.getSelection(),g=c.config.enterMode,i=f.getRanges();if(i&&
i.length){for(var j={},p=f.createBookmarks(),i=i.createIterator(),r,u=0;r=i.getNextRange(1);){var w=r.getEnclosedNode();if(!w||w&&!(w.type==CKEDITOR.NODE_ELEMENT&&w.getName()in k))w=e(r,d,g);w&&a(w,b,c,j);var t=new CKEDITOR.dom.walker(r),x=p[u].startNode,v=p[u++].endNode;t.evaluator=function(a){var b=g==CKEDITOR.ENTER_P?"p":"div",c;if(c=a?a.type==CKEDITOR.NODE_ELEMENT:false)if(c=a.getName()in d){if(b=a.is(b))b=((b=a.getParent())?b.type==CKEDITOR.NODE_ELEMENT:false)&&a.getParent().is("blockquote");
c=!b&&a.getPosition(x)&CKEDITOR.POSITION_FOLLOWING&&(a.getPosition(v)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_CONTAINS)==CKEDITOR.POSITION_PRECEDING}return!!c};for(;w=t.next();)a(w,b,c,j);r=r.createIterator();for(r.enlargeBr=g!=CKEDITOR.ENTER_BR;w=r.getNextParagraph(g==CKEDITOR.ENTER_P?"p":"div");)a(w,b,c,j)}CKEDITOR.dom.element.clearAllMarkers(j);c.forceNextSelectionCheck();f.selectBookmarks(p);c.focus()}}}}function f(a){var b=a==g.setAttribute,c=a==g.removeAttribute,d=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/;
return function(e,f){if(!this.isReadOnly()){var g;if(g=e==(b||c?"dir":"direction")||e=="style"&&(c||d.test(f))){a:{g=this;for(var i=g.getDocument().getBody().getParent();g;){if(g.equals(i)){g=false;break a}g=g.getParent()}g=true}g=!g}if(g){g=this.getDirection(1);i=a.apply(this,arguments);if(g!=this.getDirection(1)){this.getDocument().fire("dirChanged",this);return i}}}return a.apply(this,arguments)}}var d={table:1,ul:1,ol:1,blockquote:1,div:1},k={},i={};CKEDITOR.tools.extend(k,d,{tr:1,p:1,div:1,li:1});
CKEDITOR.tools.extend(i,k,{td:1});CKEDITOR.plugins.add("bidi",{init:function(a){function c(b,d,e,f,g){a.addCommand(e,new CKEDITOR.command(a,f));a.ui.addButton&&a.ui.addButton(b,{label:d,command:e,toolbar:"bidi,"+g})}if(!a.blockless){var d=a.lang.bidi;c("BidiLtr",d.ltr,"bidiltr",b("ltr"),10);c("BidiRtl",d.rtl,"bidirtl",b("rtl"),20);a.on("contentDom",function(){a.document.on("dirChanged",function(b){a.fire("dirChanged",{node:b.data,dir:b.data.getDirection(1)})})});a.on("contentDirChanged",function(b){var b=
(a.lang.dir!=b.data?"add":"remove")+"Class",c=a.ui.space(a.config.toolbarLocation);if(c)c[b]("cke_mixed_dir_content")})}}});for(var g=CKEDITOR.dom.element.prototype,j=["setStyle","removeStyle","setAttribute","removeAttribute"],c=0;c<j.length;c++)g[j[c]]=CKEDITOR.tools.override(g[j[c]],f)}(),function(){var a={exec:function(a){var b=a.getCommand("blockquote").state,f=a.getSelection(),d=f&&f.getRanges()[0];if(d){var k=f.createBookmarks();if(CKEDITOR.env.ie){var i=k[0].startNode,g=k[0].endNode,j;if(i&&
i.getParent().getName()=="blockquote")for(j=i;j=j.getNext();)if(j.type==CKEDITOR.NODE_ELEMENT&&j.isBlockBoundary()){i.move(j,true);break}if(g&&g.getParent().getName()=="blockquote")for(j=g;j=j.getPrevious();)if(j.type==CKEDITOR.NODE_ELEMENT&&j.isBlockBoundary()){g.move(j);break}}var c=d.createIterator();c.enlargeBr=a.config.enterMode!=CKEDITOR.ENTER_BR;if(b==CKEDITOR.TRISTATE_OFF){for(i=[];b=c.getNextParagraph();)i.push(b);if(i.length<1){b=a.document.createElement(a.config.enterMode==CKEDITOR.ENTER_P?
"p":"div");g=k.shift();d.insertNode(b);b.append(new CKEDITOR.dom.text("﻿",a.document));d.moveToBookmark(g);d.selectNodeContents(b);d.collapse(true);g=d.createBookmark();i.push(b);k.unshift(g)}j=i[0].getParent();d=[];for(g=0;g<i.length;g++){b=i[g];j=j.getCommonAncestor(b.getParent())}for(b={table:1,tbody:1,tr:1,ol:1,ul:1};b[j.getName()];)j=j.getParent();for(g=null;i.length>0;){for(b=i.shift();!b.getParent().equals(j);)b=b.getParent();b.equals(g)||d.push(b);g=b}for(;d.length>0;){b=d.shift();if(b.getName()==
"blockquote"){for(g=new CKEDITOR.dom.documentFragment(a.document);b.getFirst();){g.append(b.getFirst().remove());i.push(g.getLast())}g.replace(b)}else i.push(b)}d=a.document.createElement("blockquote");for(d.insertBefore(i[0]);i.length>0;){b=i.shift();d.append(b)}}else if(b==CKEDITOR.TRISTATE_ON){g=[];for(j={};b=c.getNextParagraph();){for(i=d=null;b.getParent();){if(b.getParent().getName()=="blockquote"){d=b.getParent();i=b;break}b=b.getParent()}if(d&&i&&!i.getCustomData("blockquote_moveout")){g.push(i);
CKEDITOR.dom.element.setMarker(j,i,"blockquote_moveout",true)}}CKEDITOR.dom.element.clearAllMarkers(j);b=[];i=[];for(j={};g.length>0;){c=g.shift();d=c.getParent();if(c.getPrevious())if(c.getNext()){c.breakParent(c.getParent());i.push(c.getNext())}else c.remove().insertAfter(d);else c.remove().insertBefore(d);if(!d.getCustomData("blockquote_processed")){i.push(d);CKEDITOR.dom.element.setMarker(j,d,"blockquote_processed",true)}b.push(c)}CKEDITOR.dom.element.clearAllMarkers(j);for(g=i.length-1;g>=0;g--){d=
i[g];a:{j=d;for(var c=0,h=j.getChildCount(),l=void 0;c<h&&(l=j.getChild(c));c++)if(l.type==CKEDITOR.NODE_ELEMENT&&l.isBlockBoundary()){j=false;break a}j=true}j&&d.remove()}if(a.config.enterMode==CKEDITOR.ENTER_BR)for(d=true;b.length;){c=b.shift();if(c.getName()=="div"){g=new CKEDITOR.dom.documentFragment(a.document);d&&(c.getPrevious()&&!(c.getPrevious().type==CKEDITOR.NODE_ELEMENT&&c.getPrevious().isBlockBoundary()))&&g.append(a.document.createElement("br"));for(d=c.getNext()&&!(c.getNext().type==
CKEDITOR.NODE_ELEMENT&&c.getNext().isBlockBoundary());c.getFirst();)c.getFirst().remove().appendTo(g);d&&g.append(a.document.createElement("br"));g.replace(c);d=false}}}f.selectBookmarks(k);a.focus()}},refresh:function(a,b){this.setState(a.elementPath(b.block||b.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(e){if(!e.blockless){e.addCommand("blockquote",
a);e.ui.addButton&&e.ui.addButton("Blockquote",{label:e.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"})}}})}(),"use strict",function(){function a(a,b,d){if(!b.type)b.type="auto";if(d&&a.fire("beforePaste",b)===false||!b.dataValue&&b.dataTransfer.isEmpty())return false;if(!b.dataValue)b.dataValue="";if(CKEDITOR.env.gecko&&b.method=="drop"&&a.toolbox)a.once("afterPaste",function(){a.toolbox.focus()});return a.fire("paste",b)}function e(b){function d(){var a=b.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var e=
function(a){s.initPasteDataTransfer(a,b);a.data.preventDefault()};a.on("copy",e);a.on("cut",e);a.on("cut",function(){b.extractSelectedHtml()},null,null,999)}a.on(A,function(a){(!CKEDITOR.env.ie||!z)&&t(a)});CKEDITOR.env.ie&&a.on("paste",function(a){if(!y){g();a.data.preventDefault();t(a);k("paste")||b.openDialog("paste")}});if(CKEDITOR.env.ie){a.on("contextmenu",i,null,null,0);a.on("beforepaste",function(a){a.data&&(!a.data.$.ctrlKey&&!a.data.$.shiftKey)&&i()},null,null,0)}a.on("beforecut",function(){!z&&
j(b)});var f;a.attachListener(CKEDITOR.env.ie?a:b.document.getDocumentElement(),"mouseup",function(){f=setTimeout(function(){x()},0)});b.on("destroy",function(){clearTimeout(f)});a.on("keyup",x)}function e(a){return{type:a,canUndo:a=="cut",startDisabled:true,exec:function(){this.type=="cut"&&j();var a;var d=this.type;if(CKEDITOR.env.ie)a=k(d);else try{a=b.document.$.execCommand(d,false,null)}catch(e){a=false}a||b.showNotification(b.lang.clipboard[this.type+"Error"]);return a}}}function f(){return{canUndo:false,
async:true,exec:function(b,c){var d=function(c,d){c&&a(b,c,!!d);b.fire("afterCommandExec",{name:"paste",command:e,returnValue:!!c})},e=this;typeof c=="string"?d({dataValue:c,method:"paste",dataTransfer:s.initPasteDataTransfer()},1):b.getClipboardData(d)}}}function g(){y=1;setTimeout(function(){y=0},100)}function i(){z=1;setTimeout(function(){z=0},10)}function k(a){var d=b.document,e=d.getBody(),f=false,h=function(){f=true};e.on(a,h);CKEDITOR.env.version>7?d.$.execCommand(a):d.$.selection.createRange().execCommand(a);
e.removeListener(a,h);return f}function j(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var a=b.getSelection(),d,e,f;if(a.getType()==CKEDITOR.SELECTION_ELEMENT&&(d=a.getSelectedElement())){e=a.getRanges()[0];f=b.document.createText("");f.insertBefore(d);e.setStartBefore(f);e.setEndAfter(d);a.selectRanges([e]);setTimeout(function(){if(d.getParent()){f.remove();a.selectElement(d)}},0)}}}function r(a,d){var e=b.document,f=b.editable(),h=function(a){a.cancel()},g;if(!e.getById("cke_pastebin")){var i=b.getSelection(),
k=i.createBookmarks();CKEDITOR.env.ie&&i.root.fire("selectionchange");var j=new CKEDITOR.dom.element((CKEDITOR.env.webkit||f.is("body"))&&!CKEDITOR.env.ie?"body":"div",e);j.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var p=0,e=e.getWindow();if(CKEDITOR.env.webkit){f.append(j);j.addClass("cke_editable");if(!f.is("body")){p=f.getComputedStyle("position")!="static"?f:CKEDITOR.dom.element.get(f.$.offsetParent);p=p.getDocumentPosition().y}}else f.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(j);
j.setStyles({position:"absolute",top:e.getScrollPosition().y-p+10+"px",width:"1px",height:Math.max(1,e.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0});CKEDITOR.env.safari&&j.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text"));if(p=j.getParent().isReadOnly()){j.setOpacity(0);j.setAttribute("contenteditable",true)}else j.setStyle(b.config.contentsLangDirection=="ltr"?"left":"right","-1000px");b.on("selectionChange",h,null,null,0);if(CKEDITOR.env.webkit||CKEDITOR.env.gecko)g=
f.once("blur",h,null,null,-100);p&&j.focus();p=new CKEDITOR.dom.range(j);p.selectNodeContents(j);var l=p.select();CKEDITOR.env.ie&&(g=f.once("blur",function(){b.lockSelection(l)}));var r=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){if(CKEDITOR.env.webkit)CKEDITOR.document.getBody().$.scrollTop=r;g&&g.removeListener();CKEDITOR.env.ie&&f.focus();i.selectBookmarks(k);j.remove();var a;if(CKEDITOR.env.webkit&&(a=j.getFirst())&&a.is&&a.hasClass("Apple-style-span"))j=a;b.removeListener("selectionChange",
h);d(j.getHtml())},0)}}function u(){if(!CKEDITOR.env.ie){b.fire("beforePaste",{type:"auto",method:"paste"});return false}b.focus();g();var a=b.focusManager;a.lock();if(b.editable().fire(A)&&!k("paste")){a.unlock();return false}a.unlock();return true}function w(a){if(b.mode=="wysiwyg")switch(a.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:a=b.editable();g();!CKEDITOR.env.ie&&a.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:b.fire("saveSnapshot");setTimeout(function(){b.fire("saveSnapshot")},
50)}}function t(d){var e={type:"auto",method:"paste",dataTransfer:s.initPasteDataTransfer(d)},f=!CKEDITOR.env.ie&&!CKEDITOR.env.safari,h=e.dataTransfer.getTransferType(b)===CKEDITOR.DATA_TRANSFER_EXTERNAL;e.dataTransfer.cacheData();var g=b.fire("beforePaste",e)!==false;if(g&&(f||!h)&&!e.dataTransfer.isEmpty()){d.data.preventDefault();setTimeout(function(){a(b,e)},0)}else r(d,function(d){e.dataValue=d.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");g&&a(b,e)})}function x(){if(b.mode=="wysiwyg"){var a=
v("paste");b.getCommand("cut").setState(v("cut"));b.getCommand("copy").setState(v("copy"));b.getCommand("paste").setState(a);b.fire("pasteState",a)}}function v(a){if(B&&a in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if(a=="paste")return CKEDITOR.TRISTATE_OFF;var a=b.getSelection(),d=a.getRanges();return a.getType()==CKEDITOR.SELECTION_NONE||d.length==1&&d[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var s=CKEDITOR.plugins.clipboard,z=0,y=0,B=0,A=CKEDITOR.env.ie?"beforepaste":
"paste";(function(){b.on("key",w);b.on("contentDom",d);b.on("selectionChange",function(a){B=a.data.selection.getRanges()[0].checkReadOnly();x()});b.contextMenu&&b.contextMenu.addListener(function(a,b){B=b.getRanges()[0].checkReadOnly();return{cut:v("cut"),copy:v("copy"),paste:v("paste")}})})();(function(){function a(d,e,f,h,g){var i=b.lang.clipboard[e];b.addCommand(e,f);b.ui.addButton&&b.ui.addButton(d,{label:i,command:e,toolbar:"clipboard,"+h});b.addMenuItems&&b.addMenuItem(e,{label:i,command:e,
group:"clipboard",order:g})}a("Cut","cut",e("cut"),10,1);a("Copy","copy",e("copy"),20,4);a("Paste","paste",f(),30,8)})();b.getClipboardData=function(a,d){function e(a){a.removeListener();a.cancel();d(a.data)}function f(a){a.removeListener();a.cancel();k=true;d({type:i,dataValue:a.data,method:"paste"})}function h(){this.customTitle=a&&a.title}var g=false,i="auto",k=false;if(!d){d=a;a=null}b.on("paste",e,null,null,0);b.on("beforePaste",function(a){a.removeListener();g=true;i=a.data.type},null,null,
1E3);if(u()===false){b.removeListener("paste",e);if(g&&b.fire("pasteDialog",h)){b.on("pasteDialogCommit",f);b.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",f);setTimeout(function(){k||d(null)},10)})}else d(null)}}}function b(a){if(CKEDITOR.env.webkit){if(!a.match(/^[^<]*$/g)&&!a.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!a.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else if(CKEDITOR.env.gecko){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}else return"html";
return"htmlifiedtext"}function f(a,b){function d(a){return CKEDITOR.tools.repeat("</p><p>",~~(a/2))+(a%2==1?"<br>":"")}b=b.replace(/\s+/g," ").replace(/> +</g,"><").replace(/<br ?\/>/gi,"<br>");b=b.replace(/<\/?[A-Z]+>/g,function(a){return a.toLowerCase()});if(b.match(/^[^<]$/))return b;if(CKEDITOR.env.webkit&&b.indexOf("<div>")>-1){b=b.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"<br>").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"<div></div>");b.match(/<div>(<br>|)<\/div>/)&&(b="<p>"+
b.replace(/(<div>(<br>|)<\/div>)+/g,function(a){return d(a.split("</div><div>").length+1)})+"</p>");b=b.replace(/<\/div><div>/g,"<br>");b=b.replace(/<\/?div>/g,"")}if(CKEDITOR.env.gecko&&a.enterMode!=CKEDITOR.ENTER_BR){CKEDITOR.env.gecko&&(b=b.replace(/^<br><br>$/,"<br>"));b.indexOf("<br><br>")>-1&&(b="<p>"+b.replace(/(<br>){2,}/g,function(a){return d(a.length/4)})+"</p>")}return i(a,b)}function d(){function a(){var b={},c;for(c in CKEDITOR.dtd)c.charAt(0)!="$"&&(c!="div"&&c!="span")&&(b[c]=1);return b}
var b,d;return{get:function(e){if(e=="plain-text")return b||(b=new CKEDITOR.filter("br"));if(e=="semantic-content"){if(!(e=d)){e=new CKEDITOR.filter;e.allow({$1:{elements:a(),attributes:true,styles:false,classes:false}});e=d=e}return e}return e?new CKEDITOR.filter(e):null}}}function k(a,b,d){var b=CKEDITOR.htmlParser.fragment.fromHtml(b),e=new CKEDITOR.htmlParser.basicWriter;d.applyTo(b,true,false,a.activeEnterMode);b.writeHtml(e);return e.getHtml()}function i(a,b){a.enterMode==CKEDITOR.ENTER_BR?
b=b.replace(/(<\/p><p>)+/g,function(a){return CKEDITOR.tools.repeat("<br>",a.length/7*2)}).replace(/<\/?p>/g,""):a.enterMode==CKEDITOR.ENTER_DIV&&(b=b.replace(/<(\/)?p>/g,"<$1div>"));return b}function g(b){var d=CKEDITOR.plugins.clipboard;b.on("contentDom",function(){function e(a){a.data.preventDefault();a.data.$.dataTransfer.dropEffect="none"}function f(d,e,h){e.select();a(b,{dataTransfer:h,method:"drop"},1);h.sourceEditor.fire("saveSnapshot");h.sourceEditor.editable().extractHtmlFromRange(d);h.sourceEditor.getSelection().selectRanges([d]);
h.sourceEditor.fire("saveSnapshot")}function g(e,f){e.select();a(b,{dataTransfer:f,method:"drop"},1);d.resetDragDataTransfer()}function i(a,d,e){var f={$:a.data.$,target:a.data.getTarget()};if(d)f.dragRange=d;if(e)f.dropRange=e;b.fire(a.name,f)===false&&a.data.preventDefault()}function k(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());return a.getChildCount()}var j=b.editable(),r=CKEDITOR.plugins.clipboard.getDropTarget(b),u=b.ui.space("top"),w=b.ui.space("bottom");u&&u.on("dragover",e);w&&w.on("dragover",
e);j.attachListener(r,"dragstart",i);j.attachListener(b,"dragstart",d.resetDragDataTransfer,d,null,1);j.attachListener(b,"dragstart",function(a){d.initDragDataTransfer(a,b);if((d.dragRange=b.getSelection().getRanges()[0])&&CKEDITOR.env.ie&&CKEDITOR.env.version<10){d.dragStartContainerChildCount=k(d.dragRange.startContainer);d.dragEndContainerChildCount=k(d.dragRange.endContainer)}},null,null,2);j.attachListener(r,"dragend",i);j.attachListener(b,"dragend",d.initDragDataTransfer,d,null,1);j.attachListener(b,
"dragend",d.resetDragDataTransfer,d,null,100);j.attachListener(r,"dragover",function(a){var b=a.data.getTarget();b&&b.is&&b.is("html")?a.data.preventDefault():CKEDITOR.env.ie&&(CKEDITOR.plugins.clipboard.isFileApiSupported&&a.data.$.dataTransfer.types.contains("Files"))&&a.data.preventDefault()});j.attachListener(r,"drop",function(a){a.data.preventDefault();var e=a.data.getTarget();if(!e.isReadOnly()||e.type==CKEDITOR.NODE_ELEMENT&&e.is("html")){var e=d.getRangeAtDropPosition(a,b),f=d.dragRange;e&&
i(a,f,e)}});j.attachListener(b,"drop",d.initDragDataTransfer,d,null,1);j.attachListener(b,"drop",function(a){if(a=a.data){var e=a.dropRange,i=a.dragRange,k=a.dataTransfer;k.getTransferType(b)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){d.internalDrop(i,e,k,b)},0):k.getTransferType(b)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?f(i,e,k):g(e,k)}},null,null,9999)})}CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(a){var h,i=d();a.config.forcePasteAsPlainText?h="plain-text":a.config.pasteFilter?
h=a.config.pasteFilter:CKEDITOR.env.webkit&&!("pasteFilter"in a.config)&&(h="semantic-content");a.pasteFilter=i.get(h);e(a);g(a);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js"));a.on("paste",function(b){if(!b.data.dataTransfer)b.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer;if(!b.data.dataValue){var d=b.data.dataTransfer,e=d.getData("text/html");if(e){b.data.dataValue=e;b.data.type="html"}else if(e=d.getData("text/plain")){b.data.dataValue=a.editable().transformPlainTextToHtml(e);
b.data.type="text"}}},null,null,1);a.on("paste",function(a){var b=a.data.dataValue,c=CKEDITOR.dtd.$block;if(b.indexOf("Apple-")>-1){b=b.replace(/<span class="Apple-converted-space">&nbsp;<\/span>/gi," ");a.data.type!="html"&&(b=b.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(a,b){return b.replace(/\t/g,"&nbsp;&nbsp; &nbsp;")}));if(b.indexOf('<br class="Apple-interchange-newline">')>-1){a.data.startsWithEOL=1;a.data.preSniffing="html";b=b.replace(/<br class="Apple-interchange-newline">/,
"")}b=b.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1")}if(b.match(/^<[^<]+cke_(editable|contents)/i)){var d,e,f=new CKEDITOR.dom.element("div");for(f.setHtml(b);f.getChildCount()==1&&(d=f.getFirst())&&d.type==CKEDITOR.NODE_ELEMENT&&(d.hasClass("cke_editable")||d.hasClass("cke_contents"));)f=e=d;e&&(b=e.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?b=b.replace(/^&nbsp;(?: |\r\n)?<(\w+)/g,function(b,d){if(d.toLowerCase()in c){a.data.preSniffing="html";return"<"+d}return b}):CKEDITOR.env.webkit?b=
b.replace(/<\/(\w+)><div><br><\/div>$/,function(b,d){if(d in c){a.data.endsWithEOL=1;return"</"+d+">"}return b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)<br>$/,"$1"));a.data.dataValue=b},null,null,3);a.on("paste",function(d){var d=d.data,e=d.type,h=d.dataValue,g,j=a.config.clipboard_defaultContentType||"html",r=d.dataTransfer.getTransferType(a);g=e=="html"||d.preSniffing=="html"?"html":b(h);g=="htmlifiedtext"&&(h=f(a.config,h));e=="text"&&g=="html"?h=k(a,h,i.get("plain-text")):r==CKEDITOR.DATA_TRANSFER_EXTERNAL&&
(a.pasteFilter&&!d.dontFilter)&&(h=k(a,h,a.pasteFilter));d.startsWithEOL&&(h='<br data-cke-eol="1">'+h);d.endsWithEOL&&(h=h+'<br data-cke-eol="1">');e=="auto"&&(e=g=="html"||j=="html"?"html":"text");d.type=e;d.dataValue=h;delete d.preSniffing;delete d.startsWithEOL;delete d.endsWithEOL},null,null,6);a.on("paste",function(b){b=b.data;if(b.dataValue){a.insertHtml(b.dataValue,b.type,b.range);setTimeout(function(){a.fire("afterPaste")},0)}},null,null,1E3);a.on("pasteDialog",function(b){setTimeout(function(){a.openDialog("paste",
b.data)},0)})}});CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:!CKEDITOR.env.ie&&!CKEDITOR.env.iOS,isCustomDataTypesSupported:!CKEDITOR.env.ie,isFileApiSupported:!CKEDITOR.env.ie||CKEDITOR.env.version>9,getDropTarget:function(a){var b=a.editable();return CKEDITOR.env.ie&&CKEDITOR.env.version<9||b.isInline()?b:a.document},fixSplitNodesAfterDrop:function(a,b,d,e){function f(a,c,d){var e=a;e.type==CKEDITOR.NODE_TEXT&&(e=a.getParent());if(e.equals(c)&&d!=c.getChildCount()){a=b;c=a.startContainer.getChild(a.startOffset-
1);d=a.startContainer.getChild(a.startOffset);if(c&&c.type==CKEDITOR.NODE_TEXT&&d&&d.type==CKEDITOR.NODE_TEXT){e=c.getLength();c.setText(c.getText()+d.getText());d.remove();a.setStart(c,e);a.collapse(true)}return true}}var g=b.startContainer;!(typeof e!="number"||typeof d!="number")&&(g.type==CKEDITOR.NODE_ELEMENT&&!f(a.startContainer,g,d))&&f(a.endContainer,g,e)},isDropRangeAffectedByDragRange:function(a,b){var d=b.startContainer,e=b.endOffset;return a.endContainer.equals(d)&&a.endOffset<=e||a.startContainer.getParent().equals(d)&&
a.startContainer.getIndex()<e||a.endContainer.getParent().equals(d)&&a.endContainer.getIndex()<e?true:false},internalDrop:function(b,d,e,f){var g=CKEDITOR.plugins.clipboard,i=f.editable(),k,j;f.fire("saveSnapshot");f.fire("lockSnapshot",{dontUpdate:1});CKEDITOR.env.ie&&CKEDITOR.env.version<10&&this.fixSplitNodesAfterDrop(b,d,g.dragStartContainerChildCount,g.dragEndContainerChildCount);(j=this.isDropRangeAffectedByDragRange(b,d))||(k=b.createBookmark(1));g=d.clone().createBookmark(1);j&&(k=b.createBookmark(1));
b=f.createRange();b.moveToBookmark(k);i.extractHtmlFromRange(b,1);d=f.createRange();d.moveToBookmark(g);a(f,{dataTransfer:e,method:"drop",range:d},1);f.fire("unlockSnapshot")},getRangeAtDropPosition:function(a,b){var d=a.data.$,e=d.clientX,f=d.clientY,g=b.getSelection(true).getRanges()[0],i=b.createRange();if(a.data.testRange)return a.data.testRange;if(document.caretRangeFromPoint){d=b.document.$.caretRangeFromPoint(e,f);i.setStart(CKEDITOR.dom.node(d.startContainer),d.startOffset);i.collapse(true)}else if(d.rangeParent){i.setStart(CKEDITOR.dom.node(d.rangeParent),
d.rangeOffset);i.collapse(true)}else{if(CKEDITOR.env.ie&&CKEDITOR.env.version>8&&g&&b.editable().hasFocus)return g;if(document.body.createTextRange){b.focus();d=b.document.getBody().$.createTextRange();try{for(var k=false,j=0;j<20&&!k;j++){if(!k)try{d.moveToPoint(e,f-j);k=true}catch(u){}if(!k)try{d.moveToPoint(e,f+j);k=true}catch(w){}}if(k){var t="cke-temp-"+(new Date).getTime();d.pasteHTML('<span id="'+t+'">​</span>');var x=b.document.getById(t);i.moveToPosition(x,CKEDITOR.POSITION_BEFORE_START);
x.remove()}else{var v=b.document.$.elementFromPoint(e,f),s=new CKEDITOR.dom.element(v),z;if(!s.equals(b.editable())&&s.getName()!="html"){z=s.getClientRect();e<z.left?i.setStartAt(s,CKEDITOR.POSITION_AFTER_START):i.setStartAt(s,CKEDITOR.POSITION_BEFORE_END);i.collapse(true)}else return g&&g.startContainer&&!g.startContainer.equals(b.editable())?g:null}}catch(y){return null}}else return null}return i},initDragDataTransfer:function(a,b){var d=a.data.$?a.data.$.dataTransfer:null,e=new this.dataTransfer(d,
b);d?this.dragData&&e.id==this.dragData.id?e=this.dragData:this.dragData=e:this.dragData?e=this.dragData:this.dragData=e;a.data.dataTransfer=e},resetDragDataTransfer:function(){this.dragData=null},initPasteDataTransfer:function(a,b){if(this.isCustomCopyCutSupported&&a&&a.data&&a.data.$){var d=new this.dataTransfer(a.data.$.clipboardData,b);if(this.copyCutData&&d.id==this.copyCutData.id){d=this.copyCutData;d.$=a.data.$.clipboardData}else this.copyCutData=d;return d}return new this.dataTransfer(null,
b)}};var j=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(a,b){if(a)this.$=a;this._={chromeLinuxRegExp:/^<meta.*?>/,chromeWindowsRegExp:/<\!--StartFragment--\>([\s\S]*)<\!--EndFragment--\>/,data:{},files:[],normalizeType:function(a){a=a.toLowerCase();return a=="text"||a=="text/plain"?"Text":a=="url"?"URL":a}};this.id=this.getData(j);if(!this.id)this.id=j=="Text"?"":"cke-"+CKEDITOR.tools.getUniqueId();if(j!="Text")try{this.$.setData(j,
this.id)}catch(d){}if(b){this.sourceEditor=b;this.setData("text/html",b.getSelectedHtml(1));j!="Text"&&!this.getData("text/plain")&&this.setData("text/plain",b.getSelection().getSelectedText())}};CKEDITOR.DATA_TRANSFER_INTERNAL=1;CKEDITOR.DATA_TRANSFER_CROSS_EDITORS=2;CKEDITOR.DATA_TRANSFER_EXTERNAL=3;CKEDITOR.plugins.clipboard.dataTransfer.prototype={getData:function(a){var a=this._.normalizeType(a),b=this._.data[a];if(b===void 0||b===null||b==="")try{b=this.$.getData(a)}catch(d){}if(b===void 0||
b===null||b==="")b="";if(a=="text/html"&&CKEDITOR.env.chrome){b=b.replace(this._.chromeLinuxRegExp,"");(a=this._.chromeWindowsRegExp.exec(b))&&a.length>1&&(b=a[1])}else a=="Text"&&(CKEDITOR.env.gecko&&this.getFilesCount()&&b.substring(0,7)=="file://")&&(b="");return b},setData:function(a,b){a=this._.normalizeType(a);this._.data[a]=b;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||!(a!="URL"&&a!="Text"))try{this.$.setData(a,b)}catch(d){}},getTransferType:function(a){return this.sourceEditor?
this.sourceEditor==a?CKEDITOR.DATA_TRANSFER_INTERNAL:CKEDITOR.DATA_TRANSFER_CROSS_EDITORS:CKEDITOR.DATA_TRANSFER_EXTERNAL},cacheData:function(){function a(c){var c=b._.normalizeType(c),d=b.getData(c);d&&(b._.data[c]=d)}if(this.$){var b=this,d,e;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(d=0;d<this.$.types.length;d++)a(this.$.types[d])}else{a("Text");a("URL")}e=this._getImageFromClipboard();if(this.$&&this.$.files||e){this._.files=[];for(d=0;d<this.$.files.length;d++)this._.files.push(this.$.files[d]);
this._.files.length===0&&e&&this._.files.push(e)}}},getFilesCount:function(){return this._.files.length?this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?1:0},getFile:function(a){return this._.files.length?this._.files[a]:this.$&&this.$.files&&this.$.files.length?this.$.files[a]:a===0?this._getImageFromClipboard():void 0},isEmpty:function(){var a={},b;if(this.getFilesCount())return false;for(b in this._.data)a[b]=1;if(this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var d=
0;d<this.$.types.length;d++)a[this.$.types[d]]=1}else{a.Text=1;a.URL=1}j!="Text"&&(a[j]=0);for(b in a)if(a[b]&&this.getData(b)!=="")return false;return true},_getImageFromClipboard:function(){var a;if(this.$&&this.$.items&&this.$.items[0])try{if((a=this.$.items[0].getAsFile())&&a.type)return a}catch(b){}}}}(),function(){var a='<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&&(a=a+' onkeypress="return false;"');CKEDITOR.env.gecko&&(a=a+' onblur="this.style.cssText = this.style.cssText;"');var a=a+(' 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}"'),a=a+
'>&nbsp;</span><span id="{id}_label" class="cke_button_label cke_button__{name}_label" aria-hidden="false">{label}</span>{arrowHtml}</a>',e=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"&#9660;":"")+"</span>"),b=CKEDITOR.addTemplate("button",a);CKEDITOR.plugins.add("button",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(a){CKEDITOR.tools.extend(this,a,{title:a.label,
click:a.click||function(b){b.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}};CKEDITOR.ui.button.prototype={render:function(a,d){function k(){var b=a.mode;if(b){b=this.modes[b]?n[b]!==void 0?n[b]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;b=a.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:b;this.setState(b);this.refresh&&this.refresh()}}var i=CKEDITOR.env,g=this._.id=CKEDITOR.tools.getNextId(),j="",c=this.command,h;this._.editor=
a;var l={id:g,button:this,editor:a,focus:function(){CKEDITOR.document.getById(g).focus()},execute:function(){this.button.click(a)},attach:function(a){this.button.attach(a)}},o=CKEDITOR.tools.addFunction(function(a){if(l.onkey){a=new CKEDITOR.dom.event(a);return l.onkey(l,a.getKeystroke())!==false}}),q=CKEDITOR.tools.addFunction(function(a){var b;l.onfocus&&(b=l.onfocus(l,new CKEDITOR.dom.event(a))!==false);return b}),m=0;l.clickFn=h=CKEDITOR.tools.addFunction(function(){if(m){a.unlockSelection(1);
m=0}l.execute();i.iOS&&a.focus()});if(this.modes){var n={};a.on("beforeModeUnload",function(){if(a.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED)n[a.mode]=this._.state},this);a.on("activeFilterChange",k,this);a.on("mode",k,this);!this.readOnly&&a.on("readOnly",k,this)}else if(c)if(c=a.getCommand(c)){c.on("state",function(){this.setState(c.state)},this);j=j+(c.state==CKEDITOR.TRISTATE_ON?"on":c.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off")}if(this.directional)a.on("contentDirChanged",function(b){var c=
CKEDITOR.document.getById(this._.id),d=c.getFirst(),b=b.data;b!=a.lang.dir?c.addClass("cke_"+b):c.removeClass("cke_ltr").removeClass("cke_rtl");d.setAttribute("style",CKEDITOR.skin.getIconStyle(r,b=="rtl",this.icon,this.iconOffset))},this);c||(j=j+"off");var p=this.name||this.command,r=p;if(this.icon&&!/\./.test(this.icon)){r=this.icon;this.icon=null}j={id:g,name:p,iconName:r,label:this.label,cls:this.className||"",state:j,ariaDisabled:j=="disabled"?"true":"false",title:this.title,titleJs:i.gecko&&
!i.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:o,focusFn:q,clickFn:h,style:CKEDITOR.skin.getIconStyle(r,a.lang.dir=="rtl",this.icon,this.iconOffset),arrowHtml:this.hasArrow?e.output():""};b.output(j,d);if(this.onRender)this.onRender();return l},setState:function(a){if(this._.state==a)return false;this._.state=a;var b=CKEDITOR.document.getById(this._.id);if(b){b.setState(a,"cke_button");a==CKEDITOR.TRISTATE_DISABLED?b.setAttribute("aria-disabled",true):b.removeAttribute("aria-disabled");
if(this.hasArrow){a=a==CKEDITOR.TRISTATE_ON?this._.editor.lang.button.selectedLabel.replace(/%1/g,this.label):this.label;CKEDITOR.document.getById(this._.id+"_label").setText(a)}else a==CKEDITOR.TRISTATE_ON?b.setAttribute("aria-pressed",true):b.removeAttribute("aria-pressed");return true}return false},getState:function(){return this._.state},toFeature:function(a){if(this._.feature)return this._.feature;var b=this;!this.allowedContent&&(!this.requiredContent&&this.command)&&(b=a.getCommand(this.command)||
b);return this._.feature=b}};CKEDITOR.ui.prototype.addButton=function(a,b){this.add(a,CKEDITOR.UI_BUTTON,b)}}(),CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function a(a){var b=this._;if(b.state!=CKEDITOR.TRISTATE_DISABLED){this.createPanel(a);b.on?b.panel.hide():b.panel.showBlock(this._.id,this.document.getById(this._.id),4)}}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(e){var b=e.panel||{};delete e.panel;this.base(e);this.document=
b.parent&&b.parent.getDocument()||CKEDITOR.document;b.block={attributes:b.attributes};this.hasArrow=b.toolbarRelated=true;this.click=a;this._={panelDefinition:b}},statics:{handler:{create:function(a){return new CKEDITOR.ui.panelButton(a)}}},proto:{createPanel:function(a){var b=this._;if(!b.panel){var f=this._.panelDefinition,d=this._.panelDefinition.block,k=f.parent||CKEDITOR.document.getBody(),i=this._.panel=new CKEDITOR.ui.floatPanel(a,k,f),f=i.addBlock(b.id,d),g=this;i.onShow=function(){g.className&&
this.element.addClass(g.className+"_panel");g.setState(CKEDITOR.TRISTATE_ON);b.on=1;g.editorFocus&&a.focus();if(g.onOpen)g.onOpen()};i.onHide=function(d){g.className&&this.element.getFirst().removeClass(g.className+"_panel");g.setState(g.modes&&g.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);b.on=0;if(!d&&g.onClose)g.onClose()};i.onEscape=function(){i.hide(1);g.document.getById(b.id).focus()};if(this.onBlock)this.onBlock(i,f);f.onHide=function(){b.on=0;g.setState(CKEDITOR.TRISTATE_OFF)}}}}})},
beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_PANELBUTTON,CKEDITOR.ui.panelButton.handler)}}),CKEDITOR.UI_PANELBUTTON="panelbutton",function(){CKEDITOR.plugins.add("panel",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}});CKEDITOR.UI_PANEL="panel";CKEDITOR.ui.panel=function(a,b){b&&CKEDITOR.tools.extend(this,b);CKEDITOR.tools.extend(this,{className:"",css:[]});this.id=CKEDITOR.tools.getNextId();this.document=a;this.isFramed=this.forceIFrame||this.css.length;
this._={blocks:{}}};CKEDITOR.ui.panel.handler={create:function(a){return new CKEDITOR.ui.panel(a)}};var a=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>'),e=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="presentation" frameborder="0" src="{src}"></iframe>'),b=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(f,d){this.getHolderElement=function(){var a=this._.holder;if(!a){if(this.isFramed){var a=this.document.getById(this.id+"_frame"),d=a.getParent(),a=a.getFrameDocument();CKEDITOR.env.iOS&&d.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});d=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=true;if(this.onLoad)this.onLoad()},this));a.write(b.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),
onload:"window.parent.CKEDITOR.tools.callFunction("+d+");"},k)));a.getWindow().$.CKEDITOR=CKEDITOR;a.on("keydown",function(a){var b=a.data.getKeystroke(),d=this.document.getById(this.id).getAttribute("dir");this._.onKeyDown&&this._.onKeyDown(b)===false?a.data.preventDefault():(b==27||b==(d=="rtl"?39:37))&&this.onEscape&&this.onEscape(b)===false&&a.data.preventDefault()},this);a=a.getBody();a.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(d)}else a=this.document.getById(this.id);this._.holder=
a}return a};var k={editorId:f.id,id:this.id,langCode:f.langCode,dir:f.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":f.config.baseFloatZIndex+1};if(this.isFramed){var i=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";k.frame=e.output({id:this.id+"_frame",src:i})}i=a.output(k);d&&d.push(i);return i},addBlock:function(a,b){b=this._.blocks[a]=
b instanceof CKEDITOR.ui.panel.block?b:new CKEDITOR.ui.panel.block(this.getHolderElement(),b);this._.currentBlock||this.showBlock(a);return b},getBlock:function(a){return this._.blocks[a]},showBlock:function(a){var a=this._.blocks[a],b=this._.currentBlock,e=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");b&&b.hide();this._.currentBlock=a;CKEDITOR.fire("ariaWidget",e);a._.focusIndex=-1;this._.onKeyDown=a.onKeyDown&&CKEDITOR.tools.bind(a.onKeyDown,a);a.show();
return a},destroy:function(){this.element&&this.element.remove()}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(a,b){this.element=a.append(a.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));b&&CKEDITOR.tools.extend(this,b);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(a){if(a!=-1){a=this.element.getElementsByTag("a").getItem(this._.focusIndex=a);CKEDITOR.env.webkit&&a.getDocument().getWindow().focus();a.focus();this.onMark&&this.onMark(a)}}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){(!this.onHide||this.onHide.call(this)!==true)&&this.element.setStyle("display","none")},onKeyDown:function(a,b){var e=this.keys[a];switch(e){case "next":for(var i=this._.focusIndex,e=this.element.getElementsByTag("a"),
g;g=e.getItem(++i);)if(g.getAttribute("_cke_focus")&&g.$.offsetWidth){this._.focusIndex=i;g.focus();break}if(!g&&!b){this._.focusIndex=-1;return this.onKeyDown(a,1)}return false;case "prev":i=this._.focusIndex;for(e=this.element.getElementsByTag("a");i>0&&(g=e.getItem(--i));){if(g.getAttribute("_cke_focus")&&g.$.offsetWidth){this._.focusIndex=i;g.focus();break}g=null}if(!g&&!b){this._.focusIndex=e.count();return this.onKeyDown(a,1)}return false;case "click":case "mouseup":i=this._.focusIndex;(g=i>=
0&&this.element.getElementsByTag("a").getItem(i))&&(g.$[e]?g.$[e]():g.$["on"+e]());return false}return true}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function a(a,f,d,k,i){var i=CKEDITOR.tools.genKey(f.getUniqueId(),d.getUniqueId(),a.lang.dir,a.uiColor||"",k.css||"",i||""),g=e[i];if(!g){g=e[i]=new CKEDITOR.ui.panel(f,k);g.element=d.append(CKEDITOR.dom.element.createFromHtml(g.render(a),f));g.element.setStyles({display:"none",position:"absolute"})}return g}var e={};CKEDITOR.ui.floatPanel=
CKEDITOR.tools.createClass({$:function(b,e,d,k){function i(){h.hide()}d.forceIFrame=1;d.toolbarRelated&&b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(e=CKEDITOR.document.getById("cke_"+b.name));var g=e.getDocument(),k=a(b,g,e,d,k||0),j=k.element,c=j.getFirst(),h=this;j.disableContextMenu();this.element=j;this._={editor:b,panel:k,parentElement:e,definition:d,document:g,iframe:c,children:[],dir:b.lang.dir};b.on("mode",i);b.on("resize",i);if(!CKEDITOR.env.iOS)g.getWindow().on("resize",i)},proto:{addBlock:function(a,
e){return this._.panel.addBlock(a,e)},addListBlock:function(a,e){return this._.panel.addListBlock(a,e)},getBlock:function(a){return this._.panel.getBlock(a)},showBlock:function(a,e,d,k,i,g){var j=this._.panel,c=j.showBlock(a);this.allowBlur(false);a=this._.editor.editable();this._.returnFocus=a.hasFocus?a:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);this._.hideTimeout=0;var h=this.element,a=this._.iframe,a=CKEDITOR.env.ie?a:new CKEDITOR.dom.window(a.$.contentWindow),l=h.getDocument(),
o=this._.parentElement.getPositionedAncestor(),q=e.getDocumentPosition(l),l=o?o.getDocumentPosition(l):{x:0,y:0},m=this._.dir=="rtl",n=q.x+(k||0)-l.x,p=q.y+(i||0)-l.y;if(m&&(d==1||d==4))n=n+e.$.offsetWidth;else if(!m&&(d==2||d==3))n=n+(e.$.offsetWidth-1);if(d==3||d==4)p=p+(e.$.offsetHeight-1);this._.panel._.offsetParentId=e.getId();h.setStyles({top:p+"px",left:0,display:""});h.setOpacity(0);h.getFirst().removeStyle("width");this._.editor.focusManager.add(a);if(!this._.blurSet){CKEDITOR.event.useCapture=
true;a.on("blur",function(a){function b(){delete this._.returnFocus;this.hide()}if(this.allowBlur()&&a.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&this.visible&&!this._.activeChild)if(CKEDITOR.env.iOS){if(!this._.hideTimeout)this._.hideTimeout=CKEDITOR.tools.setTimeout(b,0,this)}else b.call(this)},this);a.on("focus",function(){this._.focused=true;this.hideChild();this.allowBlur(true)},this);if(CKEDITOR.env.iOS){a.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this);a.on("touchend",
function(){this._.hideTimeout=0;this.focus()},this)}CKEDITOR.event.useCapture=false;this._.blurSet=1}j.onEscape=CKEDITOR.tools.bind(function(a){if(this.onEscape&&this.onEscape(a)===false)return false},this);CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.tools.bind(function(){h.removeStyle("width");if(c.autoSize){var a=c.element.getDocument(),a=(CKEDITOR.env.webkit?c.element:a.getBody()).$.scrollWidth;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+((h.$.offsetWidth||0)-(h.$.clientWidth||0)+
3));h.setStyle("width",a+10+"px");a=c.element.$.scrollHeight;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+((h.$.offsetHeight||0)-(h.$.clientHeight||0)+3));h.setStyle("height",a+"px");j._.currentBlock.element.setStyle("display","none").removeStyle("display")}else h.removeStyle("height");m&&(n=n-h.$.offsetWidth);h.setStyle("left",n+"px");var b=j.element.getWindow(),a=h.$.getBoundingClientRect(),b=b.getViewPaneSize(),d=a.width||a.right-a.left,e=a.height||a.bottom-a.top,f=m?a.right:b.width-a.left,
i=m?b.width-a.right:a.left;m?f<d&&(n=i>d?n+d:b.width>d?n-a.left:n-a.right+b.width):f<d&&(n=i>d?n-d:b.width>d?n-a.right+b.width:n-a.left);d=a.top;b.height-a.top<e&&(p=d>e?p-e:b.height>e?p-a.bottom+b.height:p-a.top);if(CKEDITOR.env.ie){b=a=new CKEDITOR.dom.element(h.$.offsetParent);b.getName()=="html"&&(b=b.getDocument().getBody());b.getComputedStyle("direction")=="rtl"&&(n=CKEDITOR.env.ie8Compat?n-h.getDocument().getDocumentElement().$.scrollLeft*2:n-(a.$.scrollWidth-a.$.clientWidth))}var a=h.getFirst(),
k;(k=a.getCustomData("activePanel"))&&k.onHide&&k.onHide.call(this,1);a.setCustomData("activePanel",this);h.setStyles({top:p+"px",left:n+"px"});h.setOpacity(1);g&&g()},this);j.isLoaded?a():j.onLoad=a;CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus();c.element.focus();if(CKEDITOR.env.webkit)CKEDITOR.document.getBody().$.scrollTop=a;this.allowBlur(true);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 a=CKEDITOR.document.getActive();a&&!a.equals(this._.iframe)&&a.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var a=this._.iframe.getFrameDocument().getActive();a&&a.is("a")&&(this._.lastFocused=a)},hide:function(a){if(this.visible&&(!this.onHide||this.onHide.call(this)!==true)){this.hideChild();CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur();
this.element.setStyle("display","none");this.visible=0;this.element.getFirst().removeCustomData("activePanel");if(a=a&&this._.returnFocus){CKEDITOR.env.webkit&&a.type&&a.getWindow().$.focus();a.focus()}delete this._.lastFocused;this._.editor.fire("panelHide",this)}},allowBlur:function(a){var e=this._.panel;if(a!==void 0)e.allowBlur=a;return e.allowBlur},showAsChild:function(a,e,d,k,i,g){if(!(this._.activeChild==a&&a._.panel._.offsetParentId==d.getId())){this.hideChild();a.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||
this.hide()},0,this)},this);this._.activeChild=a;this._.focused=false;a.showBlock(e,d,k,i,g);this.blur();(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){a.element.getChild(0).$.style.cssText+=""},100)}},hideChild:function(a){var e=this._.activeChild;if(e){delete e.onHide;delete this._.activeChild;e.hide();a&&this.focus()}}}});CKEDITOR.on("instanceDestroyed",function(){var a=CKEDITOR.tools.isEmpty(CKEDITOR.instances),f;for(f in e){var d=e[f];a?d.destroy():d.element.hide()}a&&
(e={})})}(),CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(a){function e(e,f,j,c){var h=new CKEDITOR.style(d["colorButton_"+f+"Style"]),l=CKEDITOR.tools.getNextId()+"_colorBox";a.ui.add(e,CKEDITOR.UI_PANELBUTTON,{label:j,title:j,modes:{wysiwyg:1},editorFocus:0,toolbar:"colors,"+c,allowedContent:h,requiredContent:h,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":k.panelTitle}},onBlock:function(c,d){d.autoSize=true;d.element.addClass("cke_colorblock");
d.element.setHtml(b(c,f,l));d.element.getDocument().getBody().setStyle("overflow","hidden");CKEDITOR.ui.fire("ready",this);var e=d.keys,h=a.lang.dir=="rtl";e[h?37:39]="next";e[40]="next";e[9]="next";e[h?39:37]="prev";e[38]="prev";e[CKEDITOR.SHIFT+9]="prev";e[32]="click"},refresh:function(){a.activeFilter.check(h)||this.setState(CKEDITOR.TRISTATE_DISABLED)},onOpen:function(){var b=a.getSelection(),b=b&&b.getStartElement(),b=a.elementPath(b),c;if(b){b=b.block||b.blockLimit||a.document.getBody();do c=
b&&b.getComputedStyle(f=="back"?"background-color":"color")||"transparent";while(f=="back"&&c=="transparent"&&b&&(b=b.getParent()));if(!c||c=="transparent")c="#ffffff";this._.panel._.iframe.getFrameDocument().getById(l).setStyle("background-color",c);return c}}})}function b(b,e,j){var c=[],h=d.colorButton_colors.split(","),l=a.plugins.colordialog&&d.colorButton_enableMore!==false,o=h.length+(l?2:1),q=CKEDITOR.tools.addFunction(function(c,e){function h(a){this.removeListener("ok",h);this.removeListener("cancel",
h);a.name=="ok"&&g(this.getContentElement("picker","selectedColor").getValue(),e)}var g=arguments.callee;if(c=="?")a.openDialog("colordialog",function(){this.on("ok",h);this.on("cancel",h)});else{a.focus();b.hide();a.fire("saveSnapshot");a.removeStyle(new CKEDITOR.style(d["colorButton_"+e+"Style"],{color:"inherit"}));if(c){var k=d["colorButton_"+e+"Style"];k.childRule=e=="back"?function(a){return f(a)}:function(a){return!(a.is("a")||a.getElementsByTag("a").count())||f(a)};a.applyStyle(new CKEDITOR.style(k,
{color:c}))}a.fire("saveSnapshot")}});c.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',k.auto,'" onclick="CKEDITOR.tools.callFunction(',q,",null,'",e,"');return false;\" href=\"javascript:void('",k.auto,'\')" role="option" aria-posinset="1" aria-setsize="',o,'"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" id="',j,'"></span></td><td colspan=7 align=center>',k.auto,'</td></tr></table></a><table role="presentation" cellspacing=0 cellpadding=0 width="100%">');
for(j=0;j<h.length;j++){j%8===0&&c.push("</tr><tr>");var m=h[j].split("/"),n=m[0],p=m[1]||n;m[1]||(n="#"+n.replace(/^(.)(.)(.)$/,"$1$1$2$2$3$3"));m=a.lang.colorbutton.colors[p]||p;c.push('<td><a class="cke_colorbox" _cke_focus=1 hidefocus=true title="',m,'" onclick="CKEDITOR.tools.callFunction(',q,",'",n,"','",e,"'); return false;\" href=\"javascript:void('",m,'\')" role="option" aria-posinset="',j+2,'" aria-setsize="',o,'"><span class="cke_colorbox" style="background-color:#',p,'"></span></a></td>')}l&&
c.push('</tr><tr><td colspan=8 align=center><a class="cke_colormore" _cke_focus=1 hidefocus=true title="',k.more,'" onclick="CKEDITOR.tools.callFunction(',q,",'?','",e,"');return false;\" href=\"javascript:void('",k.more,"')\"",' role="option" aria-posinset="',o,'" aria-setsize="',o,'">',k.more,"</a></td>");c.push("</tr></table>");return c.join("")}function f(a){return a.getAttribute("contentEditable")=="false"||a.getAttribute("data-nostyle")}var d=a.config,k=a.lang.colorbutton;if(!CKEDITOR.env.hc){e("TextColor",
"fore",k.textColorTitle,10);e("BGColor","back",k.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(a){var e=new CKEDITOR.dialogCommand("colordialog");e.editorFocus=false;a.addCommand("colordialog",e);CKEDITOR.dialog.add("colordialog",this.path+"dialogs/colordialog.js");a.getColorFromDialog=function(b,e){var d=function(a){this.removeListener("ok",d);this.removeListener("cancel",d);a=a.name=="ok"?this.getValueOf("picker","selectedColor"):null;
b.call(e,a)},k=function(a){a.on("ok",d);a.on("cancel",d)};a.execCommand("colordialog");if(a._.storedDialogs&&a._.storedDialogs.colordialog)k(a._.storedDialogs.colordialog);else CKEDITOR.on("dialogDefinition",function(a){if(a.data.name=="colordialog"){var b=a.data.definition;a.removeListener();b.onLoad=CKEDITOR.tools.override(b.onLoad,function(a){return function(){k(this);b.onLoad=a;typeof a=="function"&&a.call(this)}})}})}}},CKEDITOR.plugins.add("colordialog",CKEDITOR.plugins.colordialog),CKEDITOR.plugins.add("menu",
{requires:"floatpanel",beforeInit:function(a){for(var e=a.config.menu_groups.split(","),b=a._.menuGroups={},f=a._.menuItems={},d=0;d<e.length;d++)b[e[d]]=d+1;a.addMenuGroup=function(a,d){b[a]=d||100};a.addMenuItem=function(a,d){b[d.group]&&(f[a]=new CKEDITOR.menuItem(this,a,d))};a.addMenuItems=function(a){for(var b in a)this.addMenuItem(b,a[b])};a.getMenuItem=function(a){return f[a]};a.removeMenuItem=function(a){delete f[a]}}}),function(){function a(a){a.sort(function(a,b){return a.group<b.group?
-1:a.group>b.group?1:a.order<b.order?-1:a.order>b.order?1:0})}var e='<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&&(e=e+' onkeypress="return false;"');CKEDITOR.env.gecko&&(e=e+' onblur="this.style.cssText = this.style.cssText;"');var e=e+
(' 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;">'),b=CKEDITOR.addTemplate("menuItem",e+'<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>'),
f=CKEDITOR.addTemplate("menuArrow",'<span class="cke_menuarrow"><span>{label}</span></span>');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(a,b){b=this._.definition=b||{};this.id=CKEDITOR.tools.getNextId();this.editor=a;this.items=[];this._.listeners=[];this._.level=b.level||1;var e=CKEDITOR.tools.extend({},b.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),f=e.block.attributes=e.attributes||{};!f.role&&(f.role="menu");this._.panelDefinition=e},_:{onShow:function(){var a=
this.editor.getSelection(),b=a&&a.getStartElement(),e=this.editor.elementPath(),f=this._.listeners;this.removeAll();for(var j=0;j<f.length;j++){var c=f[j](b,a,e);if(c)for(var h in c){var l=this.editor.getMenuItem(h);if(l&&(!l.command||this.editor.getCommand(l.command).state)){l.state=c[h];this.add(l)}}}},onClick:function(a){this.hide();if(a.onClick)a.onClick();else a.command&&this.editor.execCommand(a.command)},onEscape:function(a){var b=this.parent;b?b._.panel.hideChild(1):a==27&&this.hide(1);return false},
onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(a){var b=this._.subMenu,e=this.items[a];if(e=e.getItems&&e.getItems()){if(b)b.removeAll();else{b=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},true));b.parent=this;b._.onClick=CKEDITOR.tools.bind(this._.onClick,this)}for(var f in e){var j=this.editor.getMenuItem(f);if(j){j.state=e[f];b.add(j)}}var c=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+
(""+a));setTimeout(function(){b.show(c,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(a){if(!a.order)a.order=this.items.length;this.items.push(a)},removeAll:function(){this.items=[]},show:function(b,e,f,g){if(!this.parent){this._.onShow();if(!this.items.length)return}var e=e||(this.editor.lang.dir=="rtl"?2:1),j=this.items,c=this.editor,h=this._.panel,l=this._.element;if(!h){h=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level);
h.onEscape=CKEDITOR.tools.bind(function(a){if(this._.onEscape(a)===false)return false},this);h.onShow=function(){h._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")};h.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);l=h.addBlock(this.id,this._.panelDefinition.block);l.autoSize=true;var o=l.keys;o[40]="next";o[9]="next";o[38]="prev";o[CKEDITOR.SHIFT+9]="prev";o[c.lang.dir=="rtl"?37:39]=CKEDITOR.env.ie?"mouseup":"click";o[32]=CKEDITOR.env.ie?
"mouseup":"click";CKEDITOR.env.ie&&(o[13]="mouseup");l=this._.element=l.element;o=l.getDocument();o.getBody().setStyle("overflow","hidden");o.getElementsByTag("html").getItem(0).setStyle("overflow","hidden");this._.itemOverFn=CKEDITOR.tools.addFunction(function(a){clearTimeout(this._.showSubTimeout);this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,c.config.menu_subMenuDelay||400,this,[a])},this);this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},
this);this._.itemClickFn=CKEDITOR.tools.addFunction(function(a){var b=this.items[a];if(b.state==CKEDITOR.TRISTATE_DISABLED)this.hide(1);else if(b.getItems)this._.showSubMenu(a);else this._.onClick(b)},this)}a(j);for(var o=c.elementPath(),o=['<div class="cke_menu'+(o&&o.direction()!=c.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],q=j.length,m=q&&j[0].group,n=0;n<q;n++){var p=j[n];if(m!=p.group){o.push('<div class="cke_menuseparator" role="separator"></div>');m=p.group}p.render(this,
n,o)}o.push("</div>");l.setHtml(o.join(""));CKEDITOR.ui.fire("ready",this);this.parent?this.parent._.panel.showAsChild(h,this.id,b,e,f,g):h.showBlock(this.id,b,e,f,g);c.fire("menuShow",[h])},addListener:function(a){this._.listeners.push(a)},hide:function(a){this._.onHide&&this._.onHide();this._.panel&&this._.panel.hide(a)}}});CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(a,b,e){CKEDITOR.tools.extend(this,e,{order:0,className:"cke_menubutton__"+b});this.group=a._.menuGroups[this.group];
this.editor=a;this.name=b},proto:{render:function(a,e,i){var g=a.id+(""+e),j=typeof this.state=="undefined"?CKEDITOR.TRISTATE_OFF:this.state,c="",h=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 l=this.getItems,o="&#"+(this.editor.lang.dir=="rtl"?"9668":"9658")+";",q=this.name;if(this.icon&&!/\./.test(this.icon))q=this.icon;a={id:g,name:this.name,iconName:q,
label:this.label,cls:this.className||"",state:h,hasPopup:l?"true":"false",disabled:j==CKEDITOR.TRISTATE_DISABLED,title:this.label,href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:a._.itemOverFn,moveOutFn:a._.itemOutFn,clickFn:a._.itemClickFn,index:e,iconStyle:CKEDITOR.skin.getIconStyle(q,this.editor.lang.dir=="rtl",q==this.icon?null:this.icon,this.iconOffset),arrowHtml:l?f.output({label:o}):"",role:this.role?this.role:"menuitem",ariaChecked:c};b.output(a,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(a){this.base.call(this,a,{panel:{className:"cke_menu_panel",attributes:{"aria-label":a.lang.contextmenu.options}}})},proto:{addTarget:function(a,e){a.on("contextmenu",function(a){var a=
a.data,f=CKEDITOR.env.webkit?b:CKEDITOR.env.mac?a.$.metaKey:a.$.ctrlKey;if(!e||!f){a.preventDefault();if(CKEDITOR.env.mac&&CKEDITOR.env.webkit){var f=this.editor,i=(new CKEDITOR.dom.elementPath(a.getTarget(),f.editable())).contains(function(a){return a.hasAttribute("contenteditable")},true);i&&i.getAttribute("contenteditable")=="false"&&f.getSelection().fake(i)}var i=a.getTarget().getDocument(),g=a.getTarget().getDocument().getDocumentElement(),f=!i.equals(CKEDITOR.document),i=i.getWindow().getScrollPosition(),
j=f?a.$.clientX:a.$.pageX||i.x+a.$.clientX,c=f?a.$.clientY:a.$.pageY||i.y+a.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(g,null,j,c)},CKEDITOR.env.ie?200:0,this)}},this);if(CKEDITOR.env.webkit){var b,f=function(){b=0};a.on("keydown",function(a){b=CKEDITOR.env.mac?a.data.$.metaKey:a.data.$.ctrlKey});a.on("keyup",f);a.on("contextmenu",f)}},open:function(a,e,b,f){this.editor.focus();a=a||CKEDITOR.document.getDocumentElement();this.editor.selectionChange(1);this.show(a,e,b,f)}}})},beforeInit:function(a){var e=
a.contextMenu=new CKEDITOR.plugins.contextMenu(a);a.on("contentDom",function(){e.addTarget(a.editable(),a.config.browserContextMenuOnCtrl!==false)});a.addCommand("contextMenu",{exec:function(){a.contextMenu.open(a.document.getBody())}});a.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu");a.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),function(){function a(a){var b=this.att,a=a&&a.hasAttribute(b)&&a.getAttribute(b)||"";a!==void 0&&this.setValue(a)}function e(){for(var a,b=0;b<arguments.length;b++)if(arguments[b]instanceof
CKEDITOR.dom.element){a=arguments[b];break}if(a){var b=this.att,e=this.getValue();e?a.setAttribute(b,e):a.removeAttribute(b,e)}}var b={id:1,dir:1,classes:1,styles:1};CKEDITOR.plugins.add("dialogadvtab",{requires:"dialog",allowedContent:function(a){a||(a=b);var d=[];a.id&&d.push("id");a.dir&&d.push("dir");var e="";d.length&&(e=e+("["+d.join(",")+"]"));a.classes&&(e=e+"(*)");a.styles&&(e=e+"{*}");return e},createAdvancedTab:function(f,d,k){d||(d=b);var i=f.lang.common,g={id:"advanced",label:i.advancedTab,
title:i.advancedTab,elements:[{type:"vbox",padding:1,children:[]}]},j=[];if(d.id||d.dir){d.id&&j.push({id:"advId",att:"id",type:"text",requiredContent:k?k+"[id]":null,label:i.id,setup:a,commit:e});d.dir&&j.push({id:"advLangDir",att:"dir",type:"select",requiredContent:k?k+"[dir]":null,label:i.langDir,"default":"",style:"width:100%",items:[[i.notSet,""],[i.langDirLTR,"ltr"],[i.langDirRTL,"rtl"]],setup:a,commit:e});g.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(j)})}if(d.styles||
d.classes){j=[];d.styles&&j.push({id:"advStyles",att:"style",type:"text",requiredContent:k?k+"{cke-xyz}":null,label:i.styles,"default":"",validate:CKEDITOR.dialog.validate.inlineStyle(i.invalidInlineStyle),onChange:function(){},getStyle:function(a,b){var d=this.getValue().match(RegExp("(?:^|;)\\s*"+a+"\\s*:\\s*([^;]*)","i"));return d?d[1]:b},updateStyle:function(a,b){var d=this.getValue(),e=f.document.createElement("span");e.setAttribute("style",d);e.setStyle(a,b);d=CKEDITOR.tools.normalizeCssText(e.getAttribute("style"));
this.setValue(d,1)},setup:a,commit:e});d.classes&&j.push({type:"hbox",widths:["45%","55%"],children:[{id:"advCSSClasses",att:"class",type:"text",requiredContent:k?k+"(cke-xyz)":null,label:i.cssClasses,"default":"",setup:a,commit:e}]});g.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(j)})}return g}})}(),function(){CKEDITOR.plugins.add("div",{requires:"dialog",init:function(a){if(!a.blockless){var e=a.lang.div,b="div(*)";CKEDITOR.dialog.isTabEnabled(a,"editdiv","advanced")&&
(b=b+";div[dir,id,lang,title]{*}");a.addCommand("creatediv",new CKEDITOR.dialogCommand("creatediv",{allowedContent:b,requiredContent:"div",contextSensitive:true,refresh:function(a,b){this.setState("div"in(a.config.div_wrapTable?b.root:b.blockLimit).getDtd()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}}));a.addCommand("editdiv",new CKEDITOR.dialogCommand("editdiv",{requiredContent:"div"}));a.addCommand("removediv",{requiredContent:"div",exec:function(a){function b(d){if((d=CKEDITOR.plugins.div.getSurroundDiv(a,
d))&&!d.data("cke-div-added")){c.push(d);d.data("cke-div-added")}}for(var e=a.getSelection(),i=e&&e.getRanges(),g,j=e.createBookmarks(),c=[],h=0;h<i.length;h++){g=i[h];if(g.collapsed)b(e.getStartElement());else{g=new CKEDITOR.dom.walker(g);g.evaluator=b;g.lastForward()}}for(h=0;h<c.length;h++)c[h].remove(true);e.selectBookmarks(j)}});a.ui.addButton&&a.ui.addButton("CreateDiv",{label:e.toolbar,command:"creatediv",toolbar:"blocks,50"});if(a.addMenuItems){a.addMenuItems({editdiv:{label:e.edit,command:"editdiv",
group:"div",order:1},removediv:{label:e.remove,command:"removediv",group:"div",order:5}});a.contextMenu&&a.contextMenu.addListener(function(b){return!b||b.isReadOnly()?null:CKEDITOR.plugins.div.getSurroundDiv(a)?{editdiv:CKEDITOR.TRISTATE_OFF,removediv:CKEDITOR.TRISTATE_OFF}:null})}CKEDITOR.dialog.add("creatediv",this.path+"dialogs/div.js");CKEDITOR.dialog.add("editdiv",this.path+"dialogs/div.js")}}});CKEDITOR.plugins.div={getSurroundDiv:function(a,e){var b=a.elementPath(e);return a.elementPath(b.blockLimit).contains(function(a){return a.is("div")&&
!a.isReadOnly()},1)}}}(),function(){function a(a,b,d){d=a.config.forceEnterMode||d;if(a.mode=="wysiwyg"){if(!b)b=a.activeEnterMode;if(!a.elementPath().isContextFor("p")){b=CKEDITOR.ENTER_BR;d=1}a.fire("saveSnapshot");b==CKEDITOR.ENTER_BR?i(a,b,null,d):g(a,b,null,d);a.fire("saveSnapshot")}}function e(a){for(var a=a.getSelection().getRanges(true),b=a.length-1;b>0;b--)a[b].deleteContents();return a[0]}function b(a){var b=a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&
a.getAttribute("contenteditable")=="true"},true);if(a.root.equals(b))return a;b=new CKEDITOR.dom.range(b);b.moveToRange(a);return b}CKEDITOR.plugins.add("enterkey",{init:function(b){b.addCommand("enter",{modes:{wysiwyg:1},editorFocus:false,exec:function(b){a(b)}});b.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:false,exec:function(b){a(b,b.activeShiftEnterMode,1)}});b.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var f=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark();
CKEDITOR.plugins.enterkey={enterBlock:function(a,g,k,o){if(k=k||e(a)){var k=b(k),q=k.document,m=k.checkStartOfBlock(),n=k.checkEndOfBlock(),p=a.elementPath(k.startContainer),r=p.block,u=g==CKEDITOR.ENTER_DIV?"div":"p",w;if(m&&n){if(r&&(r.is("li")||r.getParent().is("li"))){r.is("li")||(r=r.getParent());k=r.getParent();w=k.getParent();var o=!r.hasPrevious(),t=!r.hasNext(),u=a.getSelection(),x=u.createBookmarks(),m=r.getDirection(1),n=r.getAttribute("class"),v=r.getAttribute("style"),s=w.getDirection(1)!=
m,a=a.enterMode!=CKEDITOR.ENTER_BR||s||v||n;if(w.is("li"))if(o||t){o&&t&&k.remove();r[t?"insertAfter":"insertBefore"](w)}else r.breakParent(w);else{if(a){if(p.block.is("li")){w=q.createElement(g==CKEDITOR.ENTER_P?"p":"div");s&&w.setAttribute("dir",m);v&&w.setAttribute("style",v);n&&w.setAttribute("class",n);r.moveChildren(w)}else w=p.block;if(o||t)w[o?"insertBefore":"insertAfter"](k);else{r.breakParent(k);w.insertAfter(k)}}else{r.appendBogus(true);if(o||t)for(;q=r[o?"getFirst":"getLast"]();)q[o?"insertBefore":
"insertAfter"](k);else for(r.breakParent(k);q=r.getLast();)q.insertAfter(k)}r.remove()}u.selectBookmarks(x);return}if(r&&r.getParent().is("blockquote")){r.breakParent(r.getParent());r.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||r.getPrevious().remove();r.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||r.getNext().remove();k.moveToElementEditStart(r);k.select();return}}else if(r&&r.is("pre")&&!n){i(a,g,k,o);return}if(m=k.splitBlock(u)){g=m.previousBlock;r=m.nextBlock;p=m.wasStartOfBlock;
a=m.wasEndOfBlock;if(r){x=r.getParent();if(x.is("li")){r.breakParent(x);r.move(r.getNext(),1)}}else if(g&&(x=g.getParent())&&x.is("li")){g.breakParent(x);x=g.getNext();k.moveToElementEditStart(x);g.move(g.getPrevious())}if(!p&&!a){if(r.is("li")){w=k.clone();w.selectNodeContents(r);w=new CKEDITOR.dom.walker(w);w.evaluator=function(a){return!(d(a)||f(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in CKEDITOR.dtd.$inline&&!(a.getName()in CKEDITOR.dtd.$empty))};(x=w.next())&&(x.type==CKEDITOR.NODE_ELEMENT&&
x.is("ul","ol"))&&(CKEDITOR.env.needsBrFiller?q.createElement("br"):q.createText(" ")).insertBefore(x)}r&&k.moveToElementEditStart(r)}else{if(g){if(g.is("li")||!j.test(g.getName())&&!g.is("pre"))w=g.clone()}else r&&(w=r.clone());if(w)o&&!w.is("li")&&w.renameNode(u);else if(x&&x.is("li"))w=x;else{w=q.createElement(u);g&&(t=g.getDirection())&&w.setAttribute("dir",t)}if(q=m.elementPath){o=0;for(u=q.elements.length;o<u;o++){x=q.elements[o];if(x.equals(q.block)||x.equals(q.blockLimit))break;if(CKEDITOR.dtd.$removeEmpty[x.getName()]){x=
x.clone();w.moveChildren(x);w.append(x)}}}w.appendBogus();w.getParent()||k.insertNode(w);w.is("li")&&w.removeAttribute("value");if(CKEDITOR.env.ie&&p&&(!a||!g.getChildCount())){k.moveToElementEditStart(a?g:w);k.select()}k.moveToElementEditStart(p&&!a?r:w)}k.select();k.scrollIntoView()}}},enterBr:function(a,b,d,f){if(d=d||e(a)){var i=d.document,k=d.checkEndOfBlock(),n=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),p=n.block,r=p&&n.block.getName();if(!f&&r=="li")g(a,b,d,f);else{if(!f&&
k&&j.test(r))if(k=p.getDirection()){i=i.createElement("div");i.setAttribute("dir",k);i.insertAfter(p);d.setStart(i,0)}else{i.createElement("br").insertAfter(p);CKEDITOR.env.gecko&&i.createText("").insertAfter(p);d.setStartAt(p.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)}else{a=r=="pre"&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?i.createText("\r"):i.createElement("br");d.deleteContents();d.insertNode(a);if(CKEDITOR.env.needsBrFiller){i.createText("﻿").insertAfter(a);
k&&(p||n.blockLimit).appendBogus();a.getNext().$.nodeValue="";d.setStartAt(a.getNext(),CKEDITOR.POSITION_AFTER_START)}else d.setStartAt(a,CKEDITOR.POSITION_AFTER_END)}d.collapse(true);d.select();d.scrollIntoView()}}}};var k=CKEDITOR.plugins.enterkey,i=k.enterBr,g=k.enterBlock,j=/^h[1-6]$/}(),function(){function a(a,b){var f={},d=[],k={nbsp:" ",shy:"­",gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},a=a.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(a,e){var g=b?"&"+e+";":k[e];f[g]=b?k[e]:"&"+
e+";";d.push(g);return""});if(!b&&a){var a=a.split(","),i=document.createElement("div"),g;i.innerHTML="&"+a.join(";&")+";";g=i.innerHTML;i=null;for(i=0;i<g.length;i++){var j=g.charAt(i);f[j]="&"+a[i]+";";d.push(j)}}f.regex=d.join(b?"|":"");return f}CKEDITOR.plugins.add("entities",{afterInit:function(e){function b(a){return j[a]}function f(a){return d.entities_processNumerical=="force"||!i[a]?"&#"+a.charCodeAt(0)+";":i[a]}var d=e.config;if(e=(e=e.dataProcessor)&&e.htmlFilter){var k=[];d.basicEntities!==
false&&k.push("nbsp,gt,lt,amp");if(d.entities){k.length&&k.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");
d.entities_latin&&k.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");d.entities_greek&&k.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");
d.entities_additional&&k.push(d.entities_additional)}var i=a(k.join(",")),g=i.regex?"["+i.regex+"]":"a^";delete i.regex;d.entities&&d.entities_processNumerical&&(g="[^ -~]|"+g);var g=RegExp(g,"g"),j=a("nbsp,gt,lt,amp,shy",true),c=RegExp(j.regex,"g");e.addRules({text:function(a){return a.replace(c,b).replace(g,f)}},{applyToAll:true,excludeNestedEditable:true})}}})}(),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(a,e,b,f){e=e||"80%";b=b||"70%";typeof e=="string"&&(e.length>1&&e.substr(e.length-1,1)=="%")&&(e=parseInt(window.screen.width*parseInt(e,10)/100,10));typeof b=="string"&&(b.length>1&&b.substr(b.length-1,1)=="%")&&(b=parseInt(window.screen.height*parseInt(b,10)/100,10));e<640&&(e=640);b<420&&(b=420);var d=parseInt((window.screen.height-b)/2,10),k=parseInt((window.screen.width-e)/2,10),f=(f||"location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes")+
",width="+e+",height="+b+",top="+d+",left="+k,i=window.open("",null,f,true);if(!i)return false;try{if(navigator.userAgent.toLowerCase().indexOf(" chrome/")==-1){i.moveTo(k,d);i.resizeTo(e,b)}i.focus();i.location.href=a}catch(g){window.open(a,null,f,true)}return true}}),function(){function a(a,b){var d=[];if(b)for(var e in b)d.push(e+"="+encodeURIComponent(b[e]));else return a;return a+(a.indexOf("?")!=-1?"&":"?")+d.join("&")}function e(a){a=a+"";return a.charAt(0).toUpperCase()+a.substr(1)}function b(){var b=
this.getDialog(),c=b.getParentEditor();c._.filebrowserSe=this;var d=c.config["filebrowser"+e(b.getName())+"WindowWidth"]||c.config.filebrowserWindowWidth||"80%",b=c.config["filebrowser"+e(b.getName())+"WindowHeight"]||c.config.filebrowserWindowHeight||"70%",f=this.filebrowser.params||{};f.CKEditor=c.name;f.CKEditorFuncNum=c._.filebrowserFn;if(!f.langCode)f.langCode=c.langCode;f=a(this.filebrowser.url,f);c.popup(f,d,b,c.config.filebrowserWindowFeatures||c.config.fileBrowserWindowFeatures)}function f(){var a=
this.getDialog();a.getParentEditor()._.filebrowserSe=this;return!a.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value||!a.getContentElement(this["for"][0],this["for"][1]).getAction()?false:true}function d(b,c,d){var e=d.params||{};e.CKEditor=b.name;e.CKEditorFuncNum=b._.filebrowserFn;if(!e.langCode)e.langCode=b.langCode;c.action=a(d.url,e);c.filebrowser=d}function k(a,c,g,i){if(i&&i.length)for(var o,q=i.length;q--;){o=i[q];(o.type=="hbox"||o.type=="vbox"||o.type=="fieldset")&&
k(a,c,g,o.children);if(o.filebrowser){if(typeof o.filebrowser=="string")o.filebrowser={action:o.type=="fileButton"?"QuickUpload":"Browse",target:o.filebrowser};if(o.filebrowser.action=="Browse"){var m=o.filebrowser.url;if(m===void 0){m=a.config["filebrowser"+e(c)+"BrowseUrl"];if(m===void 0)m=a.config.filebrowserBrowseUrl}if(m){o.onClick=b;o.filebrowser.url=m;o.hidden=false}}else if(o.filebrowser.action=="QuickUpload"&&o["for"]){m=o.filebrowser.url;if(m===void 0){m=a.config["filebrowser"+e(c)+"UploadUrl"];
if(m===void 0)m=a.config.filebrowserUploadUrl}if(m){var n=o.onClick;o.onClick=function(a){var b=a.sender;return n&&n.call(b,a)===false?false:f.call(b,a)};o.filebrowser.url=m;o.hidden=false;d(a,g.getContents(o["for"][0]).get(o["for"][1]),o.filebrowser)}}}}}function i(a,b,d){if(d.indexOf(";")!==-1){for(var d=d.split(";"),e=0;e<d.length;e++)if(i(a,b,d[e]))return true;return false}return(a=a.getContents(b).get(d).filebrowser)&&a.url}function g(a,b){var d=this._.filebrowserSe.getDialog(),e=this._.filebrowserSe["for"],
f=this._.filebrowserSe.filebrowser.onSelect;e&&d.getContentElement(e[0],e[1]).reset();if(!(typeof b=="function"&&b.call(this._.filebrowserSe)===false)&&!(f&&f.call(this._.filebrowserSe,a,b)===false)){typeof b=="string"&&b&&alert(b);if(a){e=this._.filebrowserSe;d=e.getDialog();if(e=e.filebrowser.target||null){e=e.split(":");if(f=d.getContentElement(e[0],e[1])){f.setValue(a);d.selectPage(e[0])}}}}}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(a){a._.filebrowserFn=CKEDITOR.tools.addFunction(g,
a);a.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}});CKEDITOR.on("dialogDefinition",function(a){if(a.editor.plugins.filebrowser)for(var b=a.data.definition,d,e=0;e<b.contents.length;++e)if(d=b.contents[e]){k(a.editor,a.data.name,b,d.elements);if(d.hidden&&d.filebrowser)d.hidden=!i(b,d.id,d.filebrowser)}})}(),CKEDITOR.plugins.add("find",{requires:"dialog",init:function(a){var e=a.addCommand("find",new CKEDITOR.dialogCommand("find"));e.canUndo=false;e.readOnly=1;a.addCommand("replace",
new CKEDITOR.dialogCommand("replace")).canUndo=false;if(a.ui.addButton){a.ui.addButton("Find",{label:a.lang.find.find,command:"find",toolbar:"find,10"});a.ui.addButton("Replace",{label:a.lang.find.replace,command:"replace",toolbar:"find,20"})}CKEDITOR.dialog.add("find",this.path+"dialogs/find.js");CKEDITOR.dialog.add("replace",this.path+"dialogs/find.js")}}),CKEDITOR.config.find_highlight={element:"span",styles:{"background-color":"#004",color:"#fff"}},function(){function a(a,b){var d=f.exec(a),e=
f.exec(b);if(d){if(!d[2]&&e[2]=="px")return e[1];if(d[2]=="px"&&!e[2])return e[1]+"px"}return b}var e=CKEDITOR.htmlParser.cssStyle,b=CKEDITOR.tools.cssLength,f=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,d={elements:{$:function(b){var d=b.attributes;if((d=(d=(d=d&&d["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(d)))&&d.children[0])&&b.attributes["data-cke-resizable"]){var f=(new e(b)).rules,b=d.attributes,j=f.width,f=f.height;j&&(b.width=a(b.width,j));f&&(b.height=
a(b.height,f))}return d}}};CKEDITOR.plugins.add("fakeobjects",{init:function(a){a.filter.allow("img[!data-cke-realelement,src,alt,title](*){*}","fakeobjects")},afterInit:function(a){(a=(a=a.dataProcessor)&&a.htmlFilter)&&a.addRules(d,{applyToAll:true})}});CKEDITOR.editor.prototype.createFakeElement=function(a,d,f,j){var c=this.lang.fakeobjects,c=c[f]||c.unknown,d={"class":d,"data-cke-realelement":encodeURIComponent(a.getOuterHtml()),"data-cke-real-node-type":a.type,alt:c,title:c,align:a.getAttribute("align")||
""};if(!CKEDITOR.env.hc)d.src=CKEDITOR.tools.transparentImageData;f&&(d["data-cke-real-element-type"]=f);if(j){d["data-cke-resizable"]=j;f=new e;j=a.getAttribute("width");a=a.getAttribute("height");j&&(f.rules.width=b(j));a&&(f.rules.height=b(a));f.populate(d)}return this.document.createElement("img",{attributes:d})};CKEDITOR.editor.prototype.createFakeParserElement=function(a,d,f,j){var c=this.lang.fakeobjects,c=c[f]||c.unknown,h;h=new CKEDITOR.htmlParser.basicWriter;a.writeHtml(h);h=h.getHtml();
d={"class":d,"data-cke-realelement":encodeURIComponent(h),"data-cke-real-node-type":a.type,alt:c,title:c,align:a.attributes.align||""};if(!CKEDITOR.env.hc)d.src=CKEDITOR.tools.transparentImageData;f&&(d["data-cke-real-element-type"]=f);if(j){d["data-cke-resizable"]=j;j=a.attributes;a=new e;f=j.width;j=j.height;f!==void 0&&(a.rules.width=b(f));j!==void 0&&(a.rules.height=b(j));a.populate(d)}return new CKEDITOR.htmlParser.element("img",d)};CKEDITOR.editor.prototype.restoreRealElement=function(b){if(b.data("cke-real-node-type")!=
CKEDITOR.NODE_ELEMENT)return null;var d=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(b.data("cke-realelement")),this.document);if(b.data("cke-resizable")){var e=b.getStyle("width"),b=b.getStyle("height");e&&d.setAttribute("width",a(d.getAttribute("width"),e));b&&d.setAttribute("height",a(d.getAttribute("height"),b))}return d}}(),function(){function a(a){a=a.attributes;return a.type=="application/x-shockwave-flash"||b.test(a.src||"")}function e(a,b){return a.createFakeParserElement(b,"cke_flash",
"flash",true)}var b=/\.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(a){var b="object[classid,codebase,height,hspace,vspace,width];param[name,value];embed[height,hspace,pluginspage,src,type,vspace,width]";CKEDITOR.dialog.isTabEnabled(a,
"flash","properties")&&(b=b+";object[align]; embed[allowscriptaccess,quality,scale,wmode]");CKEDITOR.dialog.isTabEnabled(a,"flash","advanced")&&(b=b+";object[id]{*}; embed[bgcolor]{*}(*)");a.addCommand("flash",new CKEDITOR.dialogCommand("flash",{allowedContent:b,requiredContent:"embed"}));a.ui.addButton&&a.ui.addButton("Flash",{label:a.lang.common.flash,command:"flash",toolbar:"insert,20"});CKEDITOR.dialog.add("flash",this.path+"dialogs/flash.js");a.addMenuItems&&a.addMenuItems({flash:{label:a.lang.flash.properties,
command:"flash",group:"flash"}});a.on("doubleclick",function(a){var b=a.data.element;if(b.is("img")&&b.data("cke-real-element-type")=="flash")a.data.dialog="flash"});a.contextMenu&&a.contextMenu.addListener(function(a){if(a&&a.is("img")&&!a.isReadOnly()&&a.data("cke-real-element-type")=="flash")return{flash:CKEDITOR.TRISTATE_OFF}})},afterInit:function(b){var d=b.dataProcessor;(d=d&&d.dataFilter)&&d.addRules({elements:{"cke:object":function(d){var i=d.attributes;if((!i.classid||!(""+i.classid).toLowerCase())&&
!a(d)){for(i=0;i<d.children.length;i++)if(d.children[i].name=="cke:embed"){if(!a(d.children[i]))break;return e(b,d)}return null}return e(b,d)},"cke:embed":function(d){return!a(d)?null:e(b,d)}}},5)}})}(),CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:!1,flashAddEmbedTag:!0,flashConvertOnEdit:!1}),function(){function a(a){var d=a.config,k=a.fire("uiSpace",{space:"top",html:""}).html,i=function(){function c(a,d,e){j.setStyle(d,b(e));j.setStyle("position",a)}function g(a){var b=k.getDocumentPosition();
switch(a){case "top":c("absolute","top",b.y-u-x);break;case "pin":c("fixed","top",s);break;case "bottom":c("absolute","top",b.y+(p.height||p.bottom-p.top)+x)}h=a}var h,k,n,p,r,u,w,t=d.floatSpaceDockedOffsetX||0,x=d.floatSpaceDockedOffsetY||0,v=d.floatSpacePinnedOffsetX||0,s=d.floatSpacePinnedOffsetY||0;return function(c){if(k=a.editable()){var l=c&&c.name=="focus";l&&j.show();a.fire("floatingSpaceLayout",{show:l});j.removeStyle("left");j.removeStyle("right");n=j.getClientRect();p=k.getClientRect();
r=e.getViewPaneSize();u=n.height;w="pageXOffset"in e.$?e.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft;if(h){u+x<=p.top?g("top"):u+x>r.height-p.bottom?g("pin"):g("bottom");c=r.width/2;c=d.floatSpacePreferRight?"right":p.left>0&&p.right<r.width&&p.width>n.width?d.contentsLangDirection=="rtl"?"right":"left":c-p.left>p.right-c?"left":"right";if(n.width>r.width){c="left";l=0}else{l=c=="left"?p.left>0?p.left:0:p.right<r.width?r.width-p.right:0;if(l+n.width>r.width){c=c=="left"?"right":"left";
l=0}}j.setStyle(c,b((h=="pin"?v:t)+l+(h=="pin"?0:c=="left"?w:-w)))}else{h="pin";g("pin");i(c)}}}}();if(k){var g=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}"'+(a.title?' aria-labelledby="cke_{name}_arialbl"':" ")+">"+(a.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>'),j=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(g.output({content:k,id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+(d.baseFloatZIndex-1),topId:a.ui.spaceId("top"),voiceLabel:a.title}))),c=CKEDITOR.tools.eventsBuffer(500,i),h=CKEDITOR.tools.eventsBuffer(100,i);j.unselectable();j.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",
1)||a.preventDefault()});a.on("focus",function(b){i(b);a.on("change",c.input);e.on("scroll",h.input);e.on("resize",h.input)});a.on("blur",function(){j.hide();a.removeListener("change",c.input);e.removeListener("scroll",h.input);e.removeListener("resize",h.input)});a.on("destroy",function(){e.removeListener("scroll",h.input);e.removeListener("resize",h.input);j.clearCustomData();j.remove()});a.focusManager.hasFocus&&j.show();a.focusManager.add(j,1)}}var e=CKEDITOR.document.getWindow(),b=CKEDITOR.tools.cssLength;
CKEDITOR.plugins.add("floatingspace",{init:function(b){b.on("loaded",function(){a(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var a=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),e=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>'),
b=CKEDITOR.addTemplate("panel-list-group",'<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>'),f=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(a,b){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),b))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,b){var b=b||{},e=b.attributes||(b.attributes={});(this.multiSelect=!!b.multiSelect)&&(e["aria-multiselectable"]=true);!e.role&&(e.role="listbox");
this.base.apply(this,arguments);this.element.setAttribute("role",e.role);e=this.keys;e[40]="next";e[9]="next";e[38]="prev";e[CKEDITOR.SHIFT+9]="prev";e[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(e[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var b=a.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(b);delete this._.started}},getClick:function(){if(!this._.click)this._.click=
CKEDITOR.tools.addFunction(function(a){var b=this.toggle(a);if(this.onClick)this.onClick(a,b)},this);return this._.click}},proto:{add:function(a,b,i){var g=CKEDITOR.tools.getNextId();if(!this._.started){this._.started=1;this._.size=this._.size||0}this._.items[a]=g;var j;j=CKEDITOR.tools.htmlEncodeAttr(a).replace(f,"\\'");a={id:g,val:j,onclick:CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(i||a),text:b||a};this._.pendingList.push(e.output(a))},
startGroup:function(a){this._.close();var e=CKEDITOR.tools.getNextId();this._.groups[a]=e;this._.pendingHtml.push(b.output({id:e,label:a}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(a){var b=this.isMarked(a);b?this.unmark(a):this.mark(a);return!b},hideGroup:function(a){var b=(a=this.element.getDocument().getById(this._.groups[a]))&&a.getNext();if(a){a.setStyle("display","none");b&&b.getName()=="ul"&&
b.setStyle("display","none")}},hideItem:function(a){this.element.getDocument().getById(this._.items[a]).setStyle("display","none")},showAll:function(){var a=this._.items,b=this._.groups,e=this.element.getDocument(),f;for(f in a)e.getById(a[f]).setStyle("display","");for(var j in b){a=e.getById(b[j]);f=a.getNext();a.setStyle("display","");f&&f.getName()=="ul"&&f.setStyle("display","")}},mark:function(a){this.multiSelect||this.unmarkAll();var a=this._.items[a],b=this.element.getDocument().getById(a);
b.addClass("cke_selected");this.element.getDocument().getById(a+"_option").setAttribute("aria-selected",true);this.onMark&&this.onMark(b)},unmark:function(a){var b=this.element.getDocument(),a=this._.items[a],e=b.getById(a);e.removeClass("cke_selected");b.getById(a+"_option").removeAttribute("aria-selected");this.onUnmark&&this.onUnmark(e)},unmarkAll:function(){var a=this._.items,b=this.element.getDocument(),e;for(e in a){var f=a[e];b.getById(f).removeClass("cke_selected");b.getById(f+"_option").removeAttribute("aria-selected")}this.onUnmark&&
this.onUnmark()},isMarked:function(a){return this.element.getDocument().getById(this._.items[a]).hasClass("cke_selected")},focus:function(a){this._.focusIndex=-1;var b=this.element.getElementsByTag("a"),e,f=-1;if(a)for(e=this.element.getDocument().getById(this._.items[a]).getFirst();a=b.getItem(++f);){if(a.equals(e)){this._.focusIndex=f;break}}else this.element.focus();e&&setTimeout(function(){e.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_RICHCOMBO,
CKEDITOR.ui.richCombo.handler)}}),function(){var a='<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&&(a=a+' onkeypress="return false;"');CKEDITOR.env.gecko&&
(a=a+' onblur="this.style.cssText = this.style.cssText;"');var a=a+(' 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?"&#9660;":
CKEDITOR.env.air?"&nbsp;":"")+"</span></span></a></span>"),e=CKEDITOR.addTemplate("combo",a);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(a){CKEDITOR.tools.extend(this,a,{canGroup:false,title:a.label,modes:{wysiwyg:1},editorFocus:1});a=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=a.parent&&a.parent.getDocument()||CKEDITOR.document;a.className="cke_combopanel";a.block={multiSelect:a.multiSelect,attributes:a.attributes};
a.toolbarRelated=true;this._={panelDefinition:a,items:{}}},proto:{renderHtml:function(a){var e=[];this.render(a,e);return e.join("")},render:function(a,f){function d(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var c=this.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;if(a.readOnly&&!this.readOnly)c=CKEDITOR.TRISTATE_DISABLED;this.setState(c);this.setValue("");c!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var k=CKEDITOR.env,i="cke_"+this.id,g=CKEDITOR.tools.addFunction(function(d){if(o){a.unlockSelection(1);
o=0}c.execute(d)},this),j=this,c={id:i,combo:this,focus:function(){CKEDITOR.document.getById(i).getChild(1).focus()},execute:function(c){var d=j._;if(d.state!=CKEDITOR.TRISTATE_DISABLED){j.createPanel(a);if(d.on)d.panel.hide();else{j.commit();var e=j.getValue();e?d.list.mark(e):d.list.unmarkAll();d.panel.showBlock(j.id,new CKEDITOR.dom.element(c),4)}}},clickFn:g};a.on("activeFilterChange",d,this);a.on("mode",d,this);a.on("selectionChange",d,this);!this.readOnly&&a.on("readOnly",d,this);var h=CKEDITOR.tools.addFunction(function(d,
e){var d=new CKEDITOR.dom.event(d),f=d.getKeystroke();if(f==40)a.once("panelShow",function(a){a.data._.panel._.currentBlock.onKeyDown(40)});switch(f){case 13:case 32:case 40:CKEDITOR.tools.callFunction(g,e);break;default:c.onkey(c,f)}d.preventDefault()}),l=CKEDITOR.tools.addFunction(function(){c.onfocus&&c.onfocus()}),o=0;c.keyDownFn=h;k={id:i,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:k.gecko&&!k.hc?"":(this.title||"").replace("'",""),keydownFn:h,
focusFn:l,clickFn:g};e.output(k,f);if(this.onRender)this.onRender();return c},createPanel:function(a){if(!this._.panel){var e=this._.panelDefinition,d=this._.panelDefinition.block,k=e.parent||CKEDITOR.document.getBody(),i="cke_combopanel__"+this.name,g=new CKEDITOR.ui.floatPanel(a,k,e),j=g.addListBlock(this.id,d),c=this;g.onShow=function(){this.element.addClass(i);c.setState(CKEDITOR.TRISTATE_ON);c._.on=1;c.editorFocus&&!a.focusManager.hasFocus&&a.focus();if(c.onOpen)c.onOpen();a.once("panelShow",
function(){j.focus(!j.multiSelect&&c.getValue())})};g.onHide=function(d){this.element.removeClass(i);c.setState(c.modes&&c.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);c._.on=0;if(!d&&c.onClose)c.onClose()};g.onEscape=function(){g.hide(1)};j.onClick=function(a,b){c.onClick&&c.onClick.call(c,a,b);g.hide()};this._.panel=g;this._.list=j;g.getBlock(this.id).onHide=function(){c._.on=0;c.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,e){this._.value=a;var d=
this.document.getById("cke_"+this.id+"_text");if(d){if(!a&&!e){e=this.label;d.addClass("cke_combo_inlinelabel")}else d.removeClass("cke_combo_inlinelabel");d.setText(typeof e!="undefined"?e:a)}},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(a){this._.list.mark(a)},hideItem:function(a){this._.list.hideItem(a)},hideGroup:function(a){this._.list.hideGroup(a)},showAll:function(){this._.list.showAll()},add:function(a,e,d){this._.items[a]=d||a;
this._.list.add(a,e,d)},startGroup:function(a){this._.list.startGroup(a)},commit:function(){if(!this._.committed){this._.list.commit();this._.committed=1;CKEDITOR.ui.fire("ready",this)}this._.committed=1},setState:function(a){if(this._.state!=a){var e=this.document.getById("cke_"+this.id);e.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED?e.setAttribute("aria-disabled",true):e.removeAttribute("aria-disabled");this._.state=a}},getState:function(){return this._.state},enable:function(){this._.state==
CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){if(this._.state!=CKEDITOR.TRISTATE_DISABLED){this._.lastState=this._.state;this.setState(CKEDITOR.TRISTATE_DISABLED)}}},statics:{handler:{create:function(a){return new CKEDITOR.ui.richCombo(a)}}}});CKEDITOR.ui.prototype.addRichCombo=function(a,e){this.add(a,CKEDITOR.UI_RICHCOMBO,e)}}(),function(){function a(a,f,d,k,i,g,j,c){for(var h=a.config,l=new CKEDITOR.style(j),o=i.split(";"),i=[],q={},m=0;m<o.length;m++){var n=o[m];
if(n){var n=n.split("/"),p={},r=o[m]=n[0];p[d]=i[m]=n[1]||r;q[r]=new CKEDITOR.style(j,p);q[r]._.definition.name=r}else o.splice(m--,1)}a.ui.addRichCombo(f,{label:k.label,title:k.panelTitle,toolbar:"styles,"+c,allowedContent:l,requiredContent:l,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(h.contentsCss),multiSelect:false,attributes:{"aria-label":k.panelTitle}},init:function(){this.startGroup(k.panelTitle);for(var a=0;a<o.length;a++){var b=o[a];this.add(b,q[b].buildPreview(),b)}},onClick:function(c){a.focus();
a.fire("saveSnapshot");var d=this.getValue(),f=q[c];if(d&&c!=d){var g=q[d],h=a.getSelection().getRanges()[0];if(h.collapsed){var i=a.elementPath(),j=i.contains(function(a){return g.checkElementRemovable(a)});if(j){var k=h.checkBoundaryOfElement(j,CKEDITOR.START),p=h.checkBoundaryOfElement(j,CKEDITOR.END);if(k&&p){for(k=h.createBookmark();i=j.getFirst();)i.insertBefore(j);j.remove();h.moveToBookmark(k)}else if(k)h.moveToPosition(j,CKEDITOR.POSITION_BEFORE_START);else if(p)h.moveToPosition(j,CKEDITOR.POSITION_AFTER_END);
else{h.splitElement(j);h.moveToPosition(j,CKEDITOR.POSITION_AFTER_END);e(h,i.elements.slice(),j)}a.getSelection().selectRanges([h])}}else a.removeStyle(g)}a[d==c?"removeStyle":"applyStyle"](f);a.fire("saveSnapshot")},onRender:function(){a.on("selectionChange",function(c){for(var d=this.getValue(),c=c.data.path.elements,e=0,f;e<c.length;e++){f=c[e];for(var h in q)if(q[h].checkElementMatch(f,true,a)){h!=d&&this.setValue(h);return}}this.setValue("",g)},this)},refresh:function(){a.activeFilter.check(l)||
this.setState(CKEDITOR.TRISTATE_DISABLED)}})}function e(a,f,d){var k=f.pop();if(k){if(d)return e(a,f,k.equals(d)?null:d);d=k.clone();a.insertNode(d);a.moveToPosition(d,CKEDITOR.POSITION_AFTER_START);e(a,f)}}CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(b){var e=b.config;a(b,"Font","family",b.lang.font,e.font_names,e.font_defaultLabel,e.font_style,30);a(b,"FontSize","size",b.lang.font.fontSize,e.fontSize_sizes,e.fontSize_defaultLabel,e.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("format",{requires:"richcombo",init:function(a){if(!a.blockless){for(var e=a.config,b=a.lang.format,f=e.format_tags.split(";"),
d={},k=0,i=[],g=0;g<f.length;g++){var j=f[g],c=new CKEDITOR.style(e["format_"+j]);if(!a.filter.customConfig||a.filter.check(c)){k++;d[j]=c;d[j]._.enterMode=a.config.enterMode;i.push(c)}}k!==0&&a.ui.addRichCombo("Format",{label:b.label,title:b.panelTitle,toolbar:"styles,20",allowedContent:i,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(e.contentsCss),multiSelect:false,attributes:{"aria-label":b.panelTitle}},init:function(){this.startGroup(b.panelTitle);for(var a in d){var c=b["tag_"+a];this.add(a,
d[a].buildPreview(c),c)}},onClick:function(b){a.focus();a.fire("saveSnapshot");var b=d[b],c=a.elementPath();a[b.checkActive(c,a)?"removeStyle":"applyStyle"](b);setTimeout(function(){a.fire("saveSnapshot")},0)},onRender:function(){a.on("selectionChange",function(b){var c=this.getValue(),b=b.data.path;this.refresh();for(var e in d)if(d[e].checkActive(b,a)){e!=c&&this.setValue(e,a.lang.format["tag_"+e]);return}this.setValue("")},this)},onOpen:function(){this.showAll();for(var b in d)a.activeFilter.check(d[b])||
this.hideItem(b)},refresh:function(){var b=a.elementPath();if(b){if(b.isContextFor("p"))for(var c in d)if(a.activeFilter.check(d[c]))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"},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(a){var e=a.lang,b=0,f={email:1,password:1,search:1,tel:1,text:1,url:1},d={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}"},
k={checkbox:"input",radio:"input",textfield:"input",textarea:"textarea",select:"select",button:"input",form:"form",hiddenfield:"input",imagebutton:"input"},i=function(c,f,g){var i={allowedContent:d[f],requiredContent:k[f]};f=="form"&&(i.context="form");a.addCommand(f,new CKEDITOR.dialogCommand(f,i));a.ui.addButton&&a.ui.addButton(c,{label:e.common[c.charAt(0).toLowerCase()+c.slice(1)],command:f,toolbar:"forms,"+(b=b+10)});CKEDITOR.dialog.add(f,g)},g=this.path+"dialogs/";!a.blockless&&i("Form","form",
g+"form.js");i("Checkbox","checkbox",g+"checkbox.js");i("Radio","radio",g+"radio.js");i("TextField","textfield",g+"textfield.js");i("Textarea","textarea",g+"textarea.js");i("Select","select",g+"select.js");i("Button","button",g+"button.js");var j=a.plugins.image;j&&!a.plugins.image2&&i("ImageButton","imagebutton",CKEDITOR.plugins.getPath("image")+"dialogs/image.js");i("HiddenField","hiddenfield",g+"hiddenfield.js");if(a.addMenuItems){i={checkbox:{label:e.forms.checkboxAndRadio.checkboxTitle,command:"checkbox",
group:"checkbox"},radio:{label:e.forms.checkboxAndRadio.radioTitle,command:"radio",group:"radio"},textfield:{label:e.forms.textfield.title,command:"textfield",group:"textfield"},hiddenfield:{label:e.forms.hidden.title,command:"hiddenfield",group:"hiddenfield"},button:{label:e.forms.button.title,command:"button",group:"button"},select:{label:e.forms.select.title,command:"select",group:"select"},textarea:{label:e.forms.textarea.title,command:"textarea",group:"textarea"}};if(j)i.imagebutton={label:e.image.titleButton,
command:"imagebutton",group:"imagebutton"};!a.blockless&&(i.form={label:e.forms.form.menu,command:"form",group:"form"});a.addMenuItems(i)}if(a.contextMenu){!a.blockless&&a.contextMenu.addListener(function(a,b,d){if((a=d.contains("form",1))&&!a.isReadOnly())return{form:CKEDITOR.TRISTATE_OFF}});a.contextMenu.addListener(function(a){if(a&&!a.isReadOnly()){var b=a.getName();if(b=="select")return{select:CKEDITOR.TRISTATE_OFF};if(b=="textarea")return{textarea:CKEDITOR.TRISTATE_OFF};if(b=="input"){var d=
a.getAttribute("type")||"text";switch(d){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(f[d])return{textfield:CKEDITOR.TRISTATE_OFF}}if(b=="img"&&a.data("cke-real-element-type")=="hiddenfield")return{hiddenfield:CKEDITOR.TRISTATE_OFF}}})}a.on("doubleclick",function(b){var d=b.data.element;if(!a.blockless&&
d.is("form"))b.data.dialog="form";else if(d.is("select"))b.data.dialog="select";else if(d.is("textarea"))b.data.dialog="textarea";else if(d.is("img")&&d.data("cke-real-element-type")=="hiddenfield")b.data.dialog="hiddenfield";else if(d.is("input")){d=d.getAttribute("type")||"text";switch(d){case "button":case "submit":case "reset":b.data.dialog="button";break;case "checkbox":b.data.dialog="checkbox";break;case "radio":b.data.dialog="radio";break;case "image":b.data.dialog="imagebutton"}if(f[d])b.data.dialog=
"textfield"}})},afterInit:function(a){var e=a.dataProcessor,b=e&&e.htmlFilter,e=e&&e.dataFilter;CKEDITOR.env.ie&&b&&b.addRules({elements:{input:function(a){var a=a.attributes,b=a.type;if(!b)a.type="text";(b=="checkbox"||b=="radio")&&a.value=="on"&&delete a.value}}},{applyToAll:true});e&&e.addRules({elements:{input:function(b){if(b.attributes.type=="hidden")return a.createFakeParserElement(b,"cke_hidden","hiddenfield")}}},{applyToAll:true})}}),function(){var a={canUndo:false,exec:function(a){var b=
a.document.createElement("hr");a.insertElement(b)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(e){if(!e.blockless){e.addCommand("horizontalrule",a);e.ui.addButton&&e.ui.addButton("HorizontalRule",{label:e.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"})}}})}(),CKEDITOR.plugins.add("htmlwriter",{init:function(a){var e=new CKEDITOR.htmlWriter;e.forceSimpleAmpersand=a.config.forceSimpleAmpersand;e.indentationChars=a.config.dataIndentationChars||
"\t";a.dataProcessor.writer=e}}),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 a=CKEDITOR.dtd,e;for(e in CKEDITOR.tools.extend({},a.$nonBodyContent,a.$block,a.$listItem,a.$tableContent))this.setRules(e,{indent:!a[e]["#"],breakBeforeOpen:1,breakBeforeClose:!a[e]["#"],
breakAfterClose:1,needsSpace:e in a.$block&&!(e 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(a){var e=this._.rules[a];this._.afterCloser&&(e&&e.needsSpace&&this._.needsSpace)&&this._.output.push("\n");if(this._.indent)this.indentation();else if(e&&e.breakBeforeOpen){this.lineBreak();this.indentation()}this._.output.push("<",
a);this._.afterCloser=0},openTagClose:function(a,e){var b=this._.rules[a];if(e){this._.output.push(this.selfClosingEnd);if(b&&b.breakAfterClose)this._.needsSpace=b.needsSpace}else{this._.output.push(">");if(b&&b.indent)this._.indentation=this._.indentation+this.indentationChars}b&&b.breakAfterOpen&&this.lineBreak();a=="pre"&&(this._.inPre=1)},attribute:function(a,e){if(typeof e=="string"){this.forceSimpleAmpersand&&(e=e.replace(/&amp;/g,"&"));e=CKEDITOR.tools.htmlEncodeAttr(e)}this._.output.push(" ",
a,'="',e,'"')},closeTag:function(a){var e=this._.rules[a];if(e&&e.indent)this._.indentation=this._.indentation.substr(this.indentationChars.length);if(this._.indent)this.indentation();else if(e&&e.breakBeforeClose){this.lineBreak();this.indentation()}this._.output.push("</",a,">");a=="pre"&&(this._.inPre=0);if(e&&e.breakAfterClose){this.lineBreak();this._.needsSpace=e.needsSpace}this._.afterCloser=1},text:function(a){if(this._.indent){this.indentation();!this._.inPre&&(a=CKEDITOR.tools.ltrim(a))}this._.output.push(a)},
comment:function(a){this._.indent&&this.indentation();this._.output.push("<\!--",a,"--\>")},lineBreak:function(){!this._.inPre&&this._.output.length>0&&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(a,e){var b=this._.rules[a];b?CKEDITOR.tools.extend(b,
e,true):this._.rules[a]=e}}}),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(a){var e=a.lang.iframe,b="iframe[align,longdesc,frameborder,height,name,scrolling,src,title,width]";a.plugins.dialogadvtab&&(b=b+(";iframe"+
a.plugins.dialogadvtab.allowedContent({id:1,classes:1,styles:1})));CKEDITOR.dialog.add("iframe",this.path+"dialogs/iframe.js");a.addCommand("iframe",new CKEDITOR.dialogCommand("iframe",{allowedContent:b,requiredContent:"iframe"}));a.ui.addButton&&a.ui.addButton("Iframe",{label:e.toolbar,command:"iframe",toolbar:"insert,80"});a.on("doubleclick",function(a){var b=a.data.element;if(b.is("img")&&b.data("cke-real-element-type")=="iframe")a.data.dialog="iframe"});a.addMenuItems&&a.addMenuItems({iframe:{label:e.title,
command:"iframe",group:"image"}});a.contextMenu&&a.contextMenu.addListener(function(a){if(a&&a.is("img")&&a.data("cke-real-element-type")=="iframe")return{iframe:CKEDITOR.TRISTATE_OFF}})},afterInit:function(a){var e=a.dataProcessor;(e=e&&e.dataFilter)&&e.addRules({elements:{iframe:function(b){return a.createFakeParserElement(b,"cke_iframe","iframe",true)}}})}})}(),"use strict",function(){function a(a,b){CKEDITOR.tools.extend(this,{editor:a,editable:a.editable(),doc:a.document,win:a.window},b,true);
this.inline=this.editable.isInline();if(!this.inline)this.frame=this.win.getFrame();this.target=this[this.inline?"editable":"doc"]}function e(a,b){CKEDITOR.tools.extend(this,b,{editor:a},true)}function b(a,b){var e=a.editable();CKEDITOR.tools.extend(this,{editor:a,editable:e,inline:e.isInline(),doc:a.document,win:a.window,container:CKEDITOR.document.getBody(),winTop:CKEDITOR.document.getWindow()},b,true);this.hidden={};this.visible={};if(!this.inline)this.frame=this.win.getFrame();this.queryViewport();
var f=CKEDITOR.tools.bind(this.queryViewport,this),g=CKEDITOR.tools.bind(this.hideVisible,this),j=CKEDITOR.tools.bind(this.removeAll,this);e.attachListener(this.winTop,"resize",f);e.attachListener(this.winTop,"scroll",f);e.attachListener(this.winTop,"resize",g);e.attachListener(this.win,"scroll",g);e.attachListener(this.inline?e:this.frame,"mouseout",function(a){var b=a.data.$.clientX,a=a.data.$.clientY;this.queryViewport();(b<=this.rect.left||b>=this.rect.right||a<=this.rect.top||a>=this.rect.bottom)&&
this.hideVisible();(b<=0||b>=this.winTopPane.width||a<=0||a>=this.winTopPane.height)&&this.hideVisible()},this);e.attachListener(a,"resize",f);e.attachListener(a,"mode",j);a.on("destroy",j);this.lineTpl=(new CKEDITOR.template(i)).output({lineStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},k,this.lineStyle,true)),tipLeftStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},d,{left:"0px","border-left-color":"red","border-width":"6px 0 6px 6px"},this.tipCss,this.tipLeftStyle,true)),tipRightStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},
d,{right:"0px","border-right-color":"red","border-width":"6px 6px 6px 0"},this.tipCss,this.tipRightStyle,true))})}function f(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&!(g[a.getComputedStyle("float")]||g[a.getAttribute("align")])&&!j[a.getComputedStyle("position")]}CKEDITOR.plugins.add("lineutils");CKEDITOR.LINEUTILS_BEFORE=1;CKEDITOR.LINEUTILS_AFTER=2;CKEDITOR.LINEUTILS_INSIDE=4;a.prototype={start:function(a){var b=this,d=this.editor,e=this.doc,f,g,i,j,k=CKEDITOR.tools.eventsBuffer(50,function(){if(!(d.readOnly||
d.mode!="wysiwyg")){b.relations={};if((g=e.$.elementFromPoint(i,j))&&g.nodeType){f=new CKEDITOR.dom.element(g);b.traverseSearch(f);isNaN(i+j)||b.pixelSearch(f,i,j);a&&a(b.relations,i,j)}}});this.listener=this.editable.attachListener(this.target,"mousemove",function(a){i=a.data.$.clientX;j=a.data.$.clientY;k.input()});this.editable.attachListener(this.inline?this.editable:this.frame,"mouseout",function(){k.reset()})},stop:function(){this.listener&&this.listener.removeListener()},getRange:function(){var a=
{};a[CKEDITOR.LINEUTILS_BEFORE]=CKEDITOR.POSITION_BEFORE_START;a[CKEDITOR.LINEUTILS_AFTER]=CKEDITOR.POSITION_AFTER_END;a[CKEDITOR.LINEUTILS_INSIDE]=CKEDITOR.POSITION_AFTER_START;return function(b){var d=this.editor.createRange();d.moveToPosition(this.relations[b.uid].element,a[b.type]);return d}}(),store:function(){function a(b,c,d){var e=b.getUniqueId();e in d?d[e].type=d[e].type|c:d[e]={element:b,type:c}}return function(b,d){var e;if(d&CKEDITOR.LINEUTILS_AFTER&&f(e=b.getNext())&&e.isVisible()){a(e,
CKEDITOR.LINEUTILS_BEFORE,this.relations);d=d^CKEDITOR.LINEUTILS_AFTER}if(d&CKEDITOR.LINEUTILS_INSIDE&&f(e=b.getFirst())&&e.isVisible()){a(e,CKEDITOR.LINEUTILS_BEFORE,this.relations);d=d^CKEDITOR.LINEUTILS_INSIDE}a(b,d,this.relations)}}(),traverseSearch:function(a){var b,d,e;do{e=a.$["data-cke-expando"];if(!(e&&e in this.relations)){if(a.equals(this.editable))break;if(f(a))for(b in this.lookups)(d=this.lookups[b](a))&&this.store(a,d)}}while(!(a&&a.type==CKEDITOR.NODE_ELEMENT&&a.getAttribute("contenteditable")==
"true")&&(a=a.getParent()))},pixelSearch:function(){function a(c,d,e,g,i){for(var j=0,k;i(e);){e=e+g;if(++j==25)break;if(k=this.doc.$.elementFromPoint(d,e))if(k==c)j=0;else if(b(c,k)){j=0;if(f(k=new CKEDITOR.dom.element(k)))return k}}}var b=CKEDITOR.env.ie||CKEDITOR.env.webkit?function(a,b){return a.contains(b)}:function(a,b){return!!(a.compareDocumentPosition(b)&16)};return function(b,d,e){var g=this.win.getViewPaneSize().height,h=a.call(this,b.$,d,e,-1,function(a){return a>0}),d=a.call(this,b.$,
d,e,1,function(a){return a<g});if(h)for(this.traverseSearch(h);!h.getParent().equals(b);)h=h.getParent();if(d)for(this.traverseSearch(d);!d.getParent().equals(b);)d=d.getParent();for(;h||d;){h&&(h=h.getNext(f));if(!h||h.equals(d))break;this.traverseSearch(h);d&&(d=d.getPrevious(f));if(!d||d.equals(h))break;this.traverseSearch(d)}}}(),greedySearch:function(){this.relations={};for(var a=this.editable.getElementsByTag("*"),b=0,d,e,g;d=a.getItem(b++);)if(!d.equals(this.editable)&&d.type==CKEDITOR.NODE_ELEMENT&&
(d.hasAttribute("contenteditable")||!d.isReadOnly())&&f(d)&&d.isVisible())for(g in this.lookups)(e=this.lookups[g](d))&&this.store(d,e);return this.relations}};e.prototype={locate:function(){function a(b,c){var d=b.element[c===CKEDITOR.LINEUTILS_BEFORE?"getPrevious":"getNext"]();if(d&&f(d)){b.siblingRect=d.getClientRect();return c==CKEDITOR.LINEUTILS_BEFORE?(b.siblingRect.bottom+b.elementRect.top)/2:(b.elementRect.bottom+b.siblingRect.top)/2}return c==CKEDITOR.LINEUTILS_BEFORE?b.elementRect.top:b.elementRect.bottom}
return function(b){var d;this.locations={};for(var e in b){d=b[e];d.elementRect=d.element.getClientRect();d.type&CKEDITOR.LINEUTILS_BEFORE&&this.store(e,CKEDITOR.LINEUTILS_BEFORE,a(d,CKEDITOR.LINEUTILS_BEFORE));d.type&CKEDITOR.LINEUTILS_AFTER&&this.store(e,CKEDITOR.LINEUTILS_AFTER,a(d,CKEDITOR.LINEUTILS_AFTER));d.type&CKEDITOR.LINEUTILS_INSIDE&&this.store(e,CKEDITOR.LINEUTILS_INSIDE,(d.elementRect.top+d.elementRect.bottom)/2)}return this.locations}}(),sort:function(){var a,b,d,e;return function(f,
g){a=this.locations;b=[];for(var i in a)for(var j in a[i]){d=Math.abs(f-a[i][j]);if(b.length){for(e=0;e<b.length;e++)if(d<b[e].dist){b.splice(e,0,{uid:+i,type:j,dist:d});break}e==b.length&&b.push({uid:+i,type:j,dist:d})}else b.push({uid:+i,type:j,dist:d})}return typeof g!="undefined"?b.slice(0,g):b}}(),store:function(a,b,d){this.locations[a]||(this.locations[a]={});this.locations[a][b]=d}};var d={display:"block",width:"0px",height:"0px","border-color":"transparent","border-style":"solid",position:"absolute",
top:"-6px"},k={height:"0px","border-top":"1px dashed red",position:"absolute","z-index":9999},i='<div data-cke-lineutils-line="1" class="cke_reset_all" style="{lineStyle}"><span style="{tipLeftStyle}">&nbsp;</span><span style="{tipRightStyle}">&nbsp;</span></div>';b.prototype={removeAll:function(){for(var a in this.hidden){this.hidden[a].remove();delete this.hidden[a]}for(a in this.visible){this.visible[a].remove();delete this.visible[a]}},hideLine:function(a){var b=a.getUniqueId();a.hide();this.hidden[b]=
a;delete this.visible[b]},showLine:function(a){var b=a.getUniqueId();a.show();this.visible[b]=a;delete this.hidden[b]},hideVisible:function(){for(var a in this.visible)this.hideLine(this.visible[a])},placeLine:function(a,b){var d,e,f;if(d=this.getStyle(a.uid,a.type)){for(f in this.visible)if(this.visible[f].getCustomData("hash")!==this.hash){e=this.visible[f];break}if(!e)for(f in this.hidden)if(this.hidden[f].getCustomData("hash")!==this.hash){this.showLine(e=this.hidden[f]);break}e||this.showLine(e=
this.addLine());e.setCustomData("hash",this.hash);this.visible[e.getUniqueId()]=e;e.setStyles(d);b&&b(e)}},getStyle:function(a,b){var d=this.relations[a],e=this.locations[a][b],f={};f.width=d.siblingRect?Math.max(d.siblingRect.width,d.elementRect.width):d.elementRect.width;f.top=this.inline?e+this.winTopScroll.y-this.rect.relativeY:this.rect.top+this.winTopScroll.y+e;if(f.top-this.winTopScroll.y<this.rect.top||f.top-this.winTopScroll.y>this.rect.bottom)return false;if(this.inline)f.left=d.elementRect.left-
this.rect.relativeX;else{if(d.elementRect.left>0)f.left=this.rect.left+d.elementRect.left;else{f.width=f.width+d.elementRect.left;f.left=this.rect.left}if((d=f.left+f.width-(this.rect.left+this.winPane.width))>0)f.width=f.width-d}f.left=f.left+this.winTopScroll.x;for(var g in f)f[g]=CKEDITOR.tools.cssLength(f[g]);return f},addLine:function(){var a=CKEDITOR.dom.element.createFromHtml(this.lineTpl);a.appendTo(this.container);return a},prepare:function(a,b){this.relations=a;this.locations=b;this.hash=
Math.random()},cleanup:function(){var a,b;for(b in this.visible){a=this.visible[b];a.getCustomData("hash")!==this.hash&&this.hideLine(a)}},queryViewport:function(){this.winPane=this.win.getViewPaneSize();this.winTopScroll=this.winTop.getScrollPosition();this.winTopPane=this.winTop.getViewPaneSize();this.rect=this.getClientRect(this.inline?this.editable:this.frame)},getClientRect:function(a){var a=a.getClientRect(),b=this.container.getDocumentPosition(),d=this.container.getComputedStyle("position");
a.relativeX=a.relativeY=0;if(d!="static"){a.relativeY=b.y;a.relativeX=b.x;a.top=a.top-a.relativeY;a.bottom=a.bottom-a.relativeY;a.left=a.left-a.relativeX;a.right=a.right-a.relativeX}return a}};var g={left:1,right:1,center:1},j={absolute:1,fixed:1};CKEDITOR.plugins.lineutils={finder:a,locator:e,liner:b}}(),"use strict",function(){function a(a){this.editor=a;this.registered={};this.instances={};this.selected=[];this.widgetHoldingFocusedEditable=this.focused=null;this._={nextId:0,upcasts:[],upcastCallbacks:[],
filters:{}};v(this);x(this);this.on("checkWidgets",i);this.editor.on("contentDomInvalidated",this.checkWidgets,this);t(this);r(this);u(this);p(this);w(this)}function e(a,b,c,d,f){var g=a.editor;CKEDITOR.tools.extend(this,d,{editor:g,id:b,inline:c.getParent().getName()=="span",element:c,data:CKEDITOR.tools.extend({},typeof d.defaults=="function"?d.defaults():d.defaults),dataReady:false,inited:false,ready:false,edit:e.prototype.edit,focusedEditable:null,definition:d,repository:a,draggable:d.draggable!==
false,_:{downcastFn:d.downcast&&typeof d.downcast=="string"?d.downcasts[d.downcast]:d.downcast}},true);a.fire("instanceCreated",this);J(this,d);this.init&&this.init();this.inited=true;(a=this.element.data("cke-widget-data"))&&this.setData(JSON.parse(decodeURIComponent(a)));f&&this.setData(f);this.data.classes||this.setData("classes",this.getClasses());this.dataReady=true;R(this);this.fire("data",this.data);if(this.isInited()&&g.editable().contains(this.wrapper)){this.ready=true;this.fire("ready")}}
function b(a,b,c){CKEDITOR.dom.element.call(this,b.$);this.editor=a;this._={};b=this.filter=c.filter;if(CKEDITOR.dtd[this.getName()].p){this.enterMode=b?b.getAllowedEnterMode(a.enterMode):a.enterMode;this.shiftEnterMode=b?b.getAllowedEnterMode(a.shiftEnterMode,true):a.shiftEnterMode}else this.enterMode=this.shiftEnterMode=CKEDITOR.ENTER_BR}function f(a,b){a.addCommand(b.name,{exec:function(a,c){function d(){a.widgets.finalizeCreation(h)}var e=a.widgets.focused;if(e&&e.name==b.name)e.edit();else if(b.insert)b.insert();
else if(b.template){var e=typeof b.defaults=="function"?b.defaults():b.defaults,e=CKEDITOR.dom.element.createFromHtml(b.template.output(e)),f,g=a.widgets.wrapElement(e,b.name),h=new CKEDITOR.dom.documentFragment(g.getDocument());h.append(g);if(f=a.widgets.initOn(e,b,c&&c.startupData)){e=f.once("edit",function(b){if(b.data.dialog)f.once("dialog",function(b){var b=b.data,c,e;c=b.once("ok",d,null,null,20);e=b.once("cancel",function(b){b.data&&b.data.hide===false||a.widgets.destroy(f,true)});b.once("hide",
function(){c.removeListener();e.removeListener()})});else d()},null,null,999);f.edit();e.removeListener()}else d()}},allowedContent:b.allowedContent,requiredContent:b.requiredContent,contentForms:b.contentForms,contentTransformations:b.contentTransformations})}function d(a,b){function c(b,d,e){var f=CKEDITOR.tools.getIndex(a._.upcasts,function(a){return a[2]>e});if(f<0)f=a._.upcasts.length;a._.upcasts.splice(f,0,[b,d,e])}var d=b.upcast,e=b.upcastPriority||10;if(d)if(typeof d=="string")for(d=d.split(",");d.length;)c(b.upcasts[d.pop()],
b.name,e);else c(d,b.name,e)}function k(a,b){a.focused=null;if(b.isInited()){var c=b.editor.checkDirty();a.fire("widgetBlurred",{widget:b});b.setFocused(false);!c&&b.editor.resetDirty()}}function i(a){a=a.data;if(this.editor.mode=="wysiwyg"){var b=this.editor.editable(),c=this.instances,d,f,g,h;if(b){for(d in c)b.contains(c[d].wrapper)||this.destroy(c[d],true);if(a&&a.initOnlyNew)c=this.initOnAll();else{var i=b.find(".cke_widget_wrapper"),c=[];d=0;for(f=i.count();d<f;d++){g=i.getItem(d);if(h=!this.getByElement(g,
true)){a:{h=o;for(var j=g;j=j.getParent();)if(h(j)){h=true;break a}h=false}h=!h&&b.contains(g)}if(h){g.addClass("cke_widget_new");c.push(this.initOn(g.getFirst(e.isDomWidgetElement)))}}}a&&(a.focusInited&&c.length==1)&&c[0].focus()}}}function g(a,b,c){if(!c.allowedContent)return null;var d=this._.filters[a];d||(this._.filters[a]=d={});(a=d[b])||(d[b]=a=new CKEDITOR.filter(c.allowedContent));return a}function j(a){var b=[],c=a._.upcasts,d=a._.upcastCallbacks;return{toBeWrapped:b,iterator:function(a){var f,
g,h,i,j;if("data-cke-widget-wrapper"in a.attributes){(a=a.getFirst(e.isParserWidgetElement))&&b.push([a]);return false}if("data-widget"in a.attributes){b.push([a]);return false}if(j=c.length){if(a.attributes["data-cke-widget-upcasted"])return false;i=0;for(f=d.length;i<f;++i)if(d[i](a)===false)return;for(i=0;i<j;++i){f=c[i];h={};if(g=f[0](a,h)){g instanceof CKEDITOR.htmlParser.element&&(a=g);a.attributes["data-cke-widget-data"]=encodeURIComponent(JSON.stringify(h));a.attributes["data-cke-widget-upcasted"]=
1;b.push([a,f[1]]);return false}}}}}}function c(a){return{tabindex:-1,contenteditable:"false","data-cke-widget-wrapper":1,"data-cke-filter":"off","class":"cke_widget_wrapper cke_widget_new cke_widget_"+(a?"inline":"block")}}function h(a,b,c){if(a.type==CKEDITOR.NODE_ELEMENT){var d=CKEDITOR.dtd[a.name];if(d&&!d[c.name]){var d=a.split(b),e=a.parent,b=d.getIndex();if(!a.children.length){b=b-1;a.remove()}d.children.length||d.remove();return h(e,b,c)}}a.add(c,b)}function l(a,b){return typeof a.inline==
"boolean"?a.inline:!!CKEDITOR.dtd.$inline[b]}function o(a){return a.hasAttribute("data-cke-temp")}function q(a,b,c,d){var e=a.editor;e.fire("lockSnapshot");if(c){d=c.data("cke-widget-editable");d=b.editables[d];a.widgetHoldingFocusedEditable=b;b.focusedEditable=d;c.addClass("cke_widget_editable_focused");d.filter&&e.setActiveFilter(d.filter);e.setActiveEnterMode(d.enterMode,d.shiftEnterMode)}else{d||b.focusedEditable.removeClass("cke_widget_editable_focused");b.focusedEditable=null;a.widgetHoldingFocusedEditable=
null;e.setActiveFilter(null);e.setActiveEnterMode(null,null)}e.fire("unlockSnapshot")}function m(a){a.contextMenu&&a.contextMenu.addListener(function(b){if(b=a.widgets.getByElement(b,true))return b.fire("contextMenu",{})})}function n(a,b){return CKEDITOR.tools.trim(b)}function p(a){var b=a.editor,c=CKEDITOR.plugins.lineutils;b.on("dragstart",function(c){var d=c.data.target;if(e.isDomDragHandler(d)){d=a.getByElement(d);c.data.dataTransfer.setData("cke/widget-id",d.id);b.focus();d.focus()}});b.on("drop",
function(c){var d=c.data.dataTransfer,e=d.getData("cke/widget-id"),f=b.createRange();if(!(e===""||d.getTransferType(b)!=CKEDITOR.DATA_TRANSFER_INTERNAL))if(d=a.instances[e]){f.setStartBefore(d.wrapper);f.setEndAfter(d.wrapper);c.data.dragRange=f;delete CKEDITOR.plugins.clipboard.dragStartContainerChildCount;delete CKEDITOR.plugins.clipboard.dragEndContainerChildCount;c.data.dataTransfer.setData("text/html",b.editable().getHtmlFromRange(f).getHtml());b.widgets.destroy(d,true)}});b.on("contentDom",
function(){var d=b.editable();CKEDITOR.tools.extend(a,{finder:new c.finder(b,{lookups:{"default":function(b){if(!b.is(CKEDITOR.dtd.$listItem)&&b.is(CKEDITOR.dtd.$block)&&!e.isDomNestedEditable(b)){var c=e.getNestedEditable(d,b);if(c){b=a._.draggedWidget;if(a.getByElement(c)==b)return;c=CKEDITOR.filter.instances[c.data("cke-filter")];b=b.requiredContent;if(c&&b&&!c.check(b))return}return CKEDITOR.LINEUTILS_BEFORE|CKEDITOR.LINEUTILS_AFTER}}}}),locator:new c.locator(b),liner:new c.liner(b,{lineStyle:{cursor:"move !important",
"border-top-color":"#666"},tipLeftStyle:{"border-left-color":"#666"},tipRightStyle:{"border-right-color":"#666"}})},true)})}function r(a){var b=a.editor;b.on("contentDom",function(){var c=b.editable(),d=c.isInline()?c:b.document,f,g;c.attachListener(d,"mousedown",function(b){var c=b.data.getTarget();if(!c.type)return false;f=a.getByElement(c);g=0;if(f)if(f.inline&&c.type==CKEDITOR.NODE_ELEMENT&&c.hasAttribute("data-cke-widget-drag-handler"))g=1;else if(e.getNestedEditable(f.wrapper,c))f=null;else{b.data.preventDefault();
CKEDITOR.env.ie||f.focus()}});c.attachListener(d,"mouseup",function(){if(g&&f&&f.wrapper){g=0;f.focus()}});CKEDITOR.env.ie&&c.attachListener(d,"mouseup",function(){setTimeout(function(){if(f&&f.wrapper&&c.contains(f.wrapper)){f.focus();f=null}})})});b.on("doubleclick",function(b){var c=a.getByElement(b.data.element);if(c&&!e.getNestedEditable(c.wrapper,b.data.element))return c.fire("doubleclick",{element:b.data.element})},null,null,1)}function u(a){a.editor.on("key",function(b){var c=a.focused,d=
a.widgetHoldingFocusedEditable,e;if(c)e=c.fire("key",{keyCode:b.data.keyCode});else if(d){c=b.data.keyCode;b=d.focusedEditable;if(c==CKEDITOR.CTRL+65){c=b.getBogus();d=d.editor.createRange();d.selectNodeContents(b);c&&d.setEndAt(c,CKEDITOR.POSITION_BEFORE_START);d.select();e=false}else if(c==8||c==46){e=d.editor.getSelection().getRanges();d=e[0];e=!(e.length==1&&d.collapsed&&d.checkBoundaryOfElement(b,CKEDITOR[c==8?"START":"END"]))}else e=void 0}return e},null,null,1)}function w(a){function b(c){a.focused&&
B(a.focused,c.name=="cut")}var c=a.editor;c.on("contentDom",function(){var a=c.editable();a.attachListener(a,"copy",b);a.attachListener(a,"cut",b)})}function t(a){var b=a.editor;b.on("selectionCheck",function(){a.fire("checkSelection")});a.on("checkSelection",a.checkSelection,a);b.on("selectionChange",function(c){var d=(c=e.getNestedEditable(b.editable(),c.data.selection.getStartElement()))&&a.getByElement(c),f=a.widgetHoldingFocusedEditable;if(f){if(f!==d||!f.focusedEditable.equals(c)){q(a,f,null);
d&&c&&q(a,d,c)}}else d&&c&&q(a,d,c)});b.on("dataReady",function(){s(a).commit()});b.on("blur",function(){var b;(b=a.focused)&&k(a,b);(b=a.widgetHoldingFocusedEditable)&&q(a,b,null)})}function x(a){var b=a.editor,c={};b.on("toDataFormat",function(b){var d=CKEDITOR.tools.getNextNumber(),f=[];b.data.downcastingSessionId=d;c[d]=f;b.data.dataValue.forEach(function(b){var c=b.attributes,d;if("data-cke-widget-id"in c){if(c=a.instances[c["data-cke-widget-id"]]){d=b.getFirst(e.isParserWidgetElement);f.push({wrapper:b,
element:d,widget:c,editables:{}});d.attributes["data-cke-widget-keep-attr"]!="1"&&delete d.attributes["data-widget"]}}else if("data-cke-widget-editable"in c){f[f.length-1].editables[c["data-cke-widget-editable"]]=b;return false}},CKEDITOR.NODE_ELEMENT,true)},null,null,8);b.on("toDataFormat",function(a){if(a.data.downcastingSessionId)for(var a=c[a.data.downcastingSessionId],b,d,e,f,g,h;b=a.shift();){d=b.widget;e=b.element;f=d._.downcastFn&&d._.downcastFn.call(d,e);for(h in b.editables){g=b.editables[h];
delete g.attributes.contenteditable;g.setHtml(d.editables[h].getData())}f||(f=e);b.wrapper.replaceWith(f)}},null,null,13);b.on("contentDomUnload",function(){a.destroyAll(true)})}function v(a){var b=a.editor,c,d;b.on("toHtml",function(b){var d=j(a),f;for(b.data.dataValue.forEach(d.iterator,CKEDITOR.NODE_ELEMENT,true);f=d.toBeWrapped.pop();){var g=f[0],h=g.parent;h.type==CKEDITOR.NODE_ELEMENT&&h.attributes["data-cke-widget-wrapper"]&&h.replaceWith(g);a.wrapElement(f[0],f[1])}c=b.data.protectedWhitespaces?
b.data.dataValue.children.length==3&&e.isParserWidgetWrapper(b.data.dataValue.children[1]):b.data.dataValue.children.length==1&&e.isParserWidgetWrapper(b.data.dataValue.children[0])},null,null,8);b.on("dataReady",function(){if(d)for(var c=b.editable().find(".cke_widget_wrapper"),f,g,h=0,i=c.count();h<i;++h){f=c.getItem(h);g=f.getFirst(e.isDomWidgetElement);if(g.type==CKEDITOR.NODE_ELEMENT&&g.data("widget")){g.replace(f);a.wrapElement(g)}else f.remove()}d=0;a.destroyAll(true);a.initOnAll()});b.on("loadSnapshot",
function(b){/data-cke-widget/.test(b.data)&&(d=1);a.destroyAll(true)},null,null,9);b.on("paste",function(a){a=a.data;a.dataValue=a.dataValue.replace(Y,n);if(a.range)if(a=e.getNestedEditable(b.editable(),a.range.startContainer))(a=CKEDITOR.filter.instances[a.data("cke-filter")])&&b.setActiveFilter(a)});b.on("afterInsertHtml",function(d){if(d.data.intoRange)a.checkWidgets({initOnlyNew:true});else{b.fire("lockSnapshot");a.checkWidgets({initOnlyNew:true,focusInited:c});b.fire("unlockSnapshot")}})}function s(a){var b=
a.selected,c=[],d=b.slice(0),e=null;return{select:function(a){CKEDITOR.tools.indexOf(b,a)<0&&c.push(a);a=CKEDITOR.tools.indexOf(d,a);a>=0&&d.splice(a,1);return this},focus:function(a){e=a;return this},commit:function(){var f=a.focused!==e,g,h;a.editor.fire("lockSnapshot");for(f&&(g=a.focused)&&k(a,g);g=d.pop();){b.splice(CKEDITOR.tools.indexOf(b,g),1);if(g.isInited()){h=g.editor.checkDirty();g.setSelected(false);!h&&g.editor.resetDirty()}}if(f&&e){h=a.editor.checkDirty();a.focused=e;a.fire("widgetFocused",
{widget:e});e.setFocused(true);!h&&a.editor.resetDirty()}for(;g=c.pop();){b.push(g);g.setSelected(true)}a.editor.fire("unlockSnapshot")}}}function z(a,b,c){var d=0,b=A(b),e=a.data.classes||{},f;if(b){for(e=CKEDITOR.tools.clone(e);f=b.pop();)if(c)e[f]||(d=e[f]=1);else if(e[f]){delete e[f];d=1}d&&a.setData("classes",e)}}function y(a){a.cancel()}function B(a,b){var c=a.editor,d=c.document;if(!d.getById("cke_copybin")){var e=c.blockless||CKEDITOR.env.ie?"span":"div",f=d.createElement(e),g=d.createElement(e),
e=CKEDITOR.env.ie&&CKEDITOR.env.version<9;g.setAttributes({id:"cke_copybin","data-cke-temp":"1"});f.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"});f.setStyle(c.config.contentsLangDirection=="ltr"?"left":"right","-5000px");var h=c.createRange();h.setStartBefore(a.wrapper);h.setEndAfter(a.wrapper);f.setHtml('<span data-cke-copybin-start="1">​</span>'+c.editable().getHtmlFromRange(h).getHtml()+'<span data-cke-copybin-end="1">​</span>');c.fire("saveSnapshot");c.fire("lockSnapshot");
g.append(f);c.editable().append(g);var i=c.on("selectionChange",y,null,null,0),j=a.repository.on("checkSelection",y,null,null,0);if(e)var k=d.getDocumentElement().$,p=k.scrollTop;h=c.createRange();h.selectNodeContents(f);h.select();if(e)k.scrollTop=p;setTimeout(function(){b||a.focus();g.remove();i.removeListener();j.removeListener();c.fire("unlockSnapshot");if(b){a.repository.del(a);c.fire("saveSnapshot")}},100)}}function A(a){return(a=(a=a.getDefinition().attributes)&&a["class"])?a.split(/\s+/):
null}function E(){var a=CKEDITOR.document.getActive(),b=this.editor,c=b.editable();(c.isInline()?c:b.document.getWindow().getFrame()).equals(a)&&b.focusManager.focus(c)}function C(){CKEDITOR.env.gecko&&this.editor.unlockSelection();if(!CKEDITOR.env.webkit){this.editor.forceNextSelectionCheck();this.editor.selectionChange(1)}}function F(a){var b=null;a.on("data",function(){var a=this.data.classes,c;if(b!=a){for(c in b)(!a||!a[c])&&this.removeClass(c);for(c in a)this.addClass(c);b=a}})}function D(a){if(a.draggable){var b=
a.editor,c=a.wrapper.getLast(e.isDomDragHandlerContainer),d;if(c)d=c.findOne("img");else{c=new CKEDITOR.dom.element("span",b.document);c.setAttributes({"class":"cke_reset cke_widget_drag_handler_container",style:"background:rgba(220,220,220,0.5);background-image:url("+b.plugins.widget.path+"images/handle.png)"});d=new CKEDITOR.dom.element("img",b.document);d.setAttributes({"class":"cke_reset cke_widget_drag_handler","data-cke-widget-drag-handler":"1",src:CKEDITOR.tools.transparentImageData,width:M,
title:b.lang.widget.move,height:M});a.inline&&d.setAttribute("draggable","true");c.append(d);a.wrapper.append(c)}a.wrapper.on("dragover",function(a){a.data.preventDefault()});a.wrapper.on("mouseenter",a.updateDragHandlerPosition,a);setTimeout(function(){a.on("data",a.updateDragHandlerPosition,a)},50);if(!a.inline){d.on("mousedown",H,a);if(CKEDITOR.env.ie&&CKEDITOR.env.version<9)d.on("dragstart",function(a){a.data.preventDefault(true)})}a.dragHandlerContainer=c}}function H(a){function b(){var c;for(k.reset();c=
h.pop();)c.removeListener();var d=i;c=a.sender;var e=this.repository.finder,f=this.repository.liner,g=this.editor,j=this.editor.editable();if(!CKEDITOR.tools.isEmpty(f.visible)){d=e.getRange(d[0]);this.focus();g.getSelection().reset();g.fire("drop",{dropRange:d,target:d.startContainer})}j.removeClass("cke_widget_dragging");f.hideVisible();g.fire("dragend",{target:c})}var c=this.repository.finder,d=this.repository.locator,e=this.repository.liner,f=this.editor,g=f.editable(),h=[],i=[];this.repository._.draggedWidget=
this;var j=c.greedySearch(),k=CKEDITOR.tools.eventsBuffer(50,function(){p=d.locate(j);i=d.sort(r,1);if(i.length){e.prepare(j,p);e.placeLine(i[0]);e.cleanup()}}),p,r;g.addClass("cke_widget_dragging");h.push(g.on("mousemove",function(a){r=a.data.$.clientY;k.input()}));f.fire("dragstart",{target:a.sender});h.push(f.document.once("mouseup",b,this));g.isInline()||h.push(CKEDITOR.document.once("mouseup",b,this))}function L(a){var b,c,d=a.editables;a.editables={};if(a.editables)for(b in d){c=d[b];a.initEditable(b,
typeof c=="string"?{selector:c}:c)}}function K(a){if(a.mask){var b=a.wrapper.findOne(".cke_widget_mask");if(!b){b=new CKEDITOR.dom.element("img",a.editor.document);b.setAttributes({src:CKEDITOR.tools.transparentImageData,"class":"cke_reset cke_widget_mask"});a.wrapper.append(b)}a.mask=b}}function S(a){if(a.parts){var b={},c,d;for(d in a.parts){c=a.wrapper.findOne(a.parts[d]);b[d]=c}a.parts=b}}function J(a,b){U(a);S(a);L(a);K(a);D(a);F(a);if(CKEDITOR.env.ie&&CKEDITOR.env.version<9)a.wrapper.on("dragstart",
function(b){var c=b.data.getTarget();!e.getNestedEditable(a,c)&&(!a.inline||!e.isDomDragHandler(c))&&b.data.preventDefault()});a.wrapper.removeClass("cke_widget_new");a.element.addClass("cke_widget_element");a.on("key",function(b){b=b.data.keyCode;if(b==13)a.edit();else{if(b==CKEDITOR.CTRL+67||b==CKEDITOR.CTRL+88){B(a,b==CKEDITOR.CTRL+88);return}if(b in N||CKEDITOR.CTRL&b||CKEDITOR.ALT&b)return}return false},null,null,999);a.on("doubleclick",function(b){a.edit()&&b.cancel()});if(b.data)a.on("data",
b.data);if(b.edit)a.on("edit",b.edit)}function U(a){(a.wrapper=a.element.getParent()).setAttribute("data-cke-widget-id",a.id)}function R(a){a.element.data("cke-widget-data",encodeURIComponent(JSON.stringify(a.data)))}var M=15;CKEDITOR.plugins.add("widget",{requires:"lineutils,clipboard",onLoad:function(){CKEDITOR.addCss(".cke_widget_wrapper{position:relative;outline:none}.cke_widget_inline{display:inline-block}.cke_widget_wrapper:hover>.cke_widget_element{outline:2px solid yellow;cursor:default}.cke_widget_wrapper:hover .cke_widget_editable{outline:2px solid yellow}.cke_widget_wrapper.cke_widget_focused>.cke_widget_element,.cke_widget_wrapper .cke_widget_editable.cke_widget_editable_focused{outline:2px solid #ace}.cke_widget_editable{cursor:text}.cke_widget_drag_handler_container{position:absolute;width:"+
M+"px;height:0;display:none;opacity:0.75;transition:height 0s 0.2s;line-height:0}.cke_widget_wrapper:hover>.cke_widget_drag_handler_container{height:"+M+"px;transition:none}.cke_widget_drag_handler_container:hover{opacity:1}img.cke_widget_drag_handler{cursor:move;width:"+M+"px;height:"+M+"px;display:inline-block}.cke_widget_mask{position:absolute;top:0;left:0;width:100%;height:100%;display:block}.cke_editable.cke_widget_dragging, .cke_editable.cke_widget_dragging *{cursor:move !important}")},beforeInit:function(b){b.widgets=
new a(b)},afterInit:function(a){var b=a.widgets.registered,c,d,e;for(d in b){c=b[d];(e=c.button)&&a.ui.addButton&&a.ui.addButton(CKEDITOR.tools.capitalize(c.name,true),{label:e,command:c.name,toolbar:"insert,10"})}m(a)}});a.prototype={MIN_SELECTION_CHECK_INTERVAL:500,add:function(a,b){b=CKEDITOR.tools.prototypedCopy(b);b.name=a;b._=b._||{};this.editor.fire("widgetDefinition",b);if(b.template)b.template=new CKEDITOR.template(b.template);f(this.editor,b);d(this,b);return this.registered[a]=b},addUpcastCallback:function(a){this._.upcastCallbacks.push(a)},
checkSelection:function(){var a=this.editor.getSelection(),b=a.getSelectedElement(),c=s(this),d;if(b&&(d=this.getByElement(b,true)))return c.focus(d).select(d).commit();a=a.getRanges()[0];if(!a||a.collapsed)return c.commit();a=new CKEDITOR.dom.walker(a);for(a.evaluator=e.isDomWidgetWrapper;b=a.next();)c.select(this.getByElement(b));c.commit()},checkWidgets:function(a){this.fire("checkWidgets",CKEDITOR.tools.copy(a||{}))},del:function(a){if(this.focused===a){var b=a.editor,c=b.createRange(),d;if(!(d=
c.moveToClosestEditablePosition(a.wrapper,true)))d=c.moveToClosestEditablePosition(a.wrapper,false);d&&b.getSelection().selectRanges([c])}a.wrapper.remove();this.destroy(a,true)},destroy:function(a,b){this.widgetHoldingFocusedEditable===a&&q(this,a,null,b);a.destroy(b);delete this.instances[a.id];this.fire("instanceDestroyed",a)},destroyAll:function(a,b){var c,d,e=this.instances;if(b&&!a){d=b.find(".cke_widget_wrapper");for(var e=d.count(),f=0;f<e;++f)(c=this.getByElement(d.getItem(f),true))&&this.destroy(c)}else for(d in e){c=
e[d];this.destroy(c,a)}},finalizeCreation:function(a){if((a=a.getFirst())&&e.isDomWidgetWrapper(a)){this.editor.insertElement(a);a=this.getByElement(a);a.ready=true;a.fire("ready");a.focus()}},getByElement:function(){var a={div:1,span:1};return function(b,c){if(!b)return null;var d=b.is(a)&&b.data("cke-widget-id");if(!c&&!d){var e=this.editor.editable();do b=b.getParent();while(b&&!b.equals(e)&&!(d=b.is(a)&&b.data("cke-widget-id")))}return this.instances[d]||null}}(),initOn:function(a,b,c){b?typeof b==
"string"&&(b=this.registered[b]):b=this.registered[a.data("widget")];if(!b)return null;var d=this.wrapElement(a,b.name);if(d){if(d.hasClass("cke_widget_new")){a=new e(this,this._.nextId++,a,b,c);if(a.isInited())return this.instances[a.id]=a;return null}return this.getByElement(a)}return null},initOnAll:function(a){for(var a=(a||this.editor.editable()).find(".cke_widget_new"),b=[],c,d=a.count();d--;)(c=this.initOn(a.getItem(d).getFirst(e.isDomWidgetElement)))&&b.push(c);return b},onWidget:function(a){var b=
Array.prototype.slice.call(arguments);b.shift();for(var c in this.instances){var d=this.instances[c];d.name==a&&d.on.apply(d,b)}this.on("instanceCreated",function(c){c=c.data;c.name==a&&c.on.apply(c,b)})},parseElementClasses:function(a){if(!a)return null;for(var a=CKEDITOR.tools.trim(a).split(/\s+/),b,c={},d=0;b=a.pop();)b.indexOf("cke_")==-1&&(c[b]=d=1);return d?c:null},wrapElement:function(a,b){var d=null,e,f;if(a instanceof CKEDITOR.dom.element){e=this.registered[b||a.data("widget")];if(!e)return null;
if((d=a.getParent())&&d.type==CKEDITOR.NODE_ELEMENT&&d.data("cke-widget-wrapper"))return d;a.hasAttribute("data-cke-widget-keep-attr")||a.data("cke-widget-keep-attr",a.data("widget")?1:0);b&&a.data("widget",b);f=l(e,a.getName());d=new CKEDITOR.dom.element(f?"span":"div");d.setAttributes(c(f));d.data("cke-display-name",e.pathName?e.pathName:a.getName());a.getParent(true)&&d.replace(a);a.appendTo(d)}else if(a instanceof CKEDITOR.htmlParser.element){e=this.registered[b||a.attributes["data-widget"]];
if(!e)return null;if((d=a.parent)&&d.type==CKEDITOR.NODE_ELEMENT&&d.attributes["data-cke-widget-wrapper"])return d;"data-cke-widget-keep-attr"in a.attributes||(a.attributes["data-cke-widget-keep-attr"]=a.attributes["data-widget"]?1:0);b&&(a.attributes["data-widget"]=b);f=l(e,a.name);d=new CKEDITOR.htmlParser.element(f?"span":"div",c(f));d.attributes["data-cke-display-name"]=e.pathName?e.pathName:a.name;e=a.parent;var g;if(e){g=a.getIndex();a.remove()}d.add(a);e&&h(e,g,d)}return d},_tests_createEditableFilter:g};
CKEDITOR.event.implementOn(a.prototype);e.prototype={addClass:function(a){this.element.addClass(a)},applyStyle:function(a){z(this,a,1)},checkStyleActive:function(a){var a=A(a),b;if(!a)return false;for(;b=a.pop();)if(!this.hasClass(b))return false;return true},destroy:function(a){this.fire("destroy");if(this.editables)for(var b in this.editables)this.destroyEditable(b,a);if(!a){this.element.data("cke-widget-keep-attr")=="0"&&this.element.removeAttribute("data-widget");this.element.removeAttributes(["data-cke-widget-data",
"data-cke-widget-keep-attr"]);this.element.removeClass("cke_widget_element");this.element.replace(this.wrapper)}this.wrapper=null},destroyEditable:function(a,b){var c=this.editables[a];c.removeListener("focus",C);c.removeListener("blur",E);this.editor.focusManager.remove(c);if(!b){this.repository.destroyAll(false,c);c.removeClass("cke_widget_editable");c.removeClass("cke_widget_editable_focused");c.removeAttributes(["contenteditable","data-cke-widget-editable","data-cke-enter-mode"])}delete this.editables[a]},
edit:function(){var a={dialog:this.dialog},b=this;if(this.fire("edit",a)===false||!a.dialog)return false;this.editor.openDialog(a.dialog,function(a){var c,d;if(b.fire("dialog",a)!==false){c=a.on("show",function(){a.setupContent(b)});d=a.on("ok",function(){var c,d=b.on("data",function(a){c=1;a.cancel()},null,null,0);b.editor.fire("saveSnapshot");a.commitContent(b);d.removeListener();if(c){b.fire("data",b.data);b.editor.fire("saveSnapshot")}});a.once("hide",function(){c.removeListener();d.removeListener()})}});
return true},getClasses:function(){return this.repository.parseElementClasses(this.element.getAttribute("class"))},hasClass:function(a){return this.element.hasClass(a)},initEditable:function(a,c){var d=this._findOneNotNested(c.selector);if(d&&d.is(CKEDITOR.dtd.$editable)){d=new b(this.editor,d,{filter:g.call(this.repository,this.name,a,c)});this.editables[a]=d;d.setAttributes({contenteditable:"true","data-cke-widget-editable":a,"data-cke-enter-mode":d.enterMode});d.filter&&d.data("cke-filter",d.filter.id);
d.addClass("cke_widget_editable");d.removeClass("cke_widget_editable_focused");c.pathName&&d.data("cke-display-name",c.pathName);this.editor.focusManager.add(d);d.on("focus",C,this);CKEDITOR.env.ie&&d.on("blur",E,this);d._.initialSetData=true;d.setData(d.getHtml());return true}return false},_findOneNotNested:function(a){for(var a=this.wrapper.find(a),b,c,d=0;d<a.count();d++){b=a.getItem(d);c=b.getAscendant(e.isDomWidgetWrapper);if(this.wrapper.equals(c))return b}return null},isInited:function(){return!(!this.wrapper||
!this.inited)},isReady:function(){return this.isInited()&&this.ready},focus:function(){var a=this.editor.getSelection();if(a){var b=this.editor.checkDirty();a.fake(this.wrapper);!b&&this.editor.resetDirty()}this.editor.focus()},removeClass:function(a){this.element.removeClass(a)},removeStyle:function(a){z(this,a,0)},setData:function(a,b){var c=this.data,d=0;if(typeof a=="string"){if(c[a]!==b){c[a]=b;d=1}}else{var e=a;for(a in e)if(c[a]!==e[a]){d=1;c[a]=e[a]}}if(d&&this.dataReady){R(this);this.fire("data",
c)}return this},setFocused:function(a){this.wrapper[a?"addClass":"removeClass"]("cke_widget_focused");this.fire(a?"focus":"blur");return this},setSelected:function(a){this.wrapper[a?"addClass":"removeClass"]("cke_widget_selected");this.fire(a?"select":"deselect");return this},updateDragHandlerPosition:function(){var a=this.editor,b=this.element.$,c=this._.dragHandlerOffset,b={x:b.offsetLeft,y:b.offsetTop-M};if(!c||!(b.x==c.x&&b.y==c.y)){c=a.checkDirty();a.fire("lockSnapshot");this.dragHandlerContainer.setStyles({top:b.y+
"px",left:b.x+"px",display:"block"});a.fire("unlockSnapshot");!c&&a.resetDirty();this._.dragHandlerOffset=b}}};CKEDITOR.event.implementOn(e.prototype);e.getNestedEditable=function(a,b){return!b||b.equals(a)?null:e.isDomNestedEditable(b)?b:e.getNestedEditable(a,b.getParent())};e.isDomDragHandler=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-drag-handler")};e.isDomDragHandlerContainer=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_widget_drag_handler_container")};
e.isDomNestedEditable=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-editable")};e.isDomWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-widget")};e.isDomWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-wrapper")};e.isParserWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-widget"]};e.isParserWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&
!!a.attributes["data-cke-widget-wrapper"]};b.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.dom.element.prototype),{setData:function(a){this._.initialSetData||this.editor.widgets.destroyAll(false,this);this._.initialSetData=false;a=this.editor.dataProcessor.toHtml(a,{context:this.getName(),filter:this.filter,enterMode:this.enterMode});this.setHtml(a);this.editor.widgets.initOnAll(this)},getData:function(){return this.editor.dataProcessor.toDataFormat(this.getHtml(),{context:this.getName(),
filter:this.filter,enterMode:this.enterMode})}});var Y=RegExp('^(?:<(?:div|span)(?: data-cke-temp="1")?(?: id="cke_copybin")?(?: data-cke-temp="1")?>)?(?:<(?:div|span)(?: style="[^"]+")?>)?<span [^>]*data-cke-copybin-start="1"[^>]*>.?</span>([\\s\\S]+)<span [^>]*data-cke-copybin-end="1"[^>]*>.?</span>(?:</(?:div|span)>)?(?:</(?:div|span)>)?$'),N={37:1,38:1,39:1,40:1,8:1,46:1};(function(){function a(){}function b(a,c,d){if(!d||!this.checkElement(a))return false;return(a=d.widgets.getByElement(a,true))&&
a.checkStyleActive(this)}CKEDITOR.style.addCustomHandler({type:"widget",setup:function(a){this.widget=a.widget},apply:function(a){a instanceof CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&a.widgets.focused.applyStyle(this)},remove:function(a){a instanceof CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&a.widgets.focused.removeStyle(this)},checkActive:function(a,b){return this.checkElementMatch(a.lastElement,0,b)},checkApplicable:function(a,b){return!(b instanceof CKEDITOR.editor)?
false:this.checkElement(a.lastElement)},checkElementMatch:b,checkElementRemovable:b,checkElement:function(a){if(!e.isDomWidgetWrapper(a))return false;return(a=a.getFirst(e.isDomWidgetElement))&&a.data("widget")==this.widget},buildPreview:function(a){return a||this._.definition.name},toAllowedContentRules:function(a){if(!a)return null;var a=a.widgets.registered[this.widget],b,c={};if(!a)return null;if(a.styleableElements){b=this.getClassesArray();if(!b)return null;c[a.styleableElements]={classes:b,
propertiesOnly:true};return c}return a.styleToAllowedContentRules?a.styleToAllowedContentRules(this):null},getClassesArray:function(){var a=this._.definition.attributes&&this._.definition.attributes["class"];return a?CKEDITOR.tools.trim(a).split(/\s+/):null},applyToRange:a,removeFromRange:a,applyToObject:a})})();CKEDITOR.plugins.widget=e;e.repository=a;e.nestedEditable=b}(),"use strict",function(){function a(a){function d(){if(!this.deflated){if(a.widgets.focused==this.widget)this.focused=true;a.widgets.destroy(this.widget);
this.deflated=true}}function f(){var b=a.editable(),c=a.document;if(this.deflated){this.widget=a.widgets.initOn(this.element,"image",this.widget.data);if(this.widget.inline&&!(new CKEDITOR.dom.elementPath(this.widget.wrapper,b)).block){b=c.createElement(a.activeEnterMode==CKEDITOR.ENTER_P?"p":"div");b.replace(this.widget.wrapper);this.widget.wrapper.move(b)}if(this.focused){this.widget.focus();delete this.focused}delete this.deflated}else{var d=this.widget,b=g,c=d.wrapper,e=d.data.align,d=d.data.hasCaption;
if(b){for(var h=3;h--;)c.removeClass(b[h]);e=="center"?d&&c.addClass(b[1]):e!="none"&&c.addClass(b[m[e]])}else if(e=="center"){d?c.setStyle("text-align","center"):c.removeStyle("text-align");c.removeStyle("float")}else{e=="none"?c.removeStyle("float"):c.setStyle("float",e);c.removeStyle("text-align")}}}var g=a.config.image2_alignClasses,i=a.config.image2_captionedClass;return{allowedContent:c(a),requiredContent:"img[src,alt]",features:h(a),styleableElements:"img figure",contentTransformations:[["img[width]: sizeToAttribute"]],
editables:{caption:{selector:"figcaption",allowedContent:"br em strong sub sup u s; a[!href]"}},parts:{image:"img",caption:"figcaption"},dialog:"image2",template:o,data:function(){var b=this.features;if(this.data.hasCaption&&!a.filter.checkFeature(b.caption))this.data.hasCaption=false;if(this.data.align!="none"&&!a.filter.checkFeature(b.align))this.data.align="none";this.shiftState({widget:this,element:this.element,oldData:this.oldData,newData:this.data,deflate:d,inflate:f});if(this.data.link){if(!this.parts.link)this.parts.link=
this.parts.image.getParent()}else this.parts.link&&delete this.parts.link;this.parts.image.setAttributes({src:this.data.src,"data-cke-saved-src":this.data.src,alt:this.data.alt});if(this.oldData&&!this.oldData.hasCaption&&this.data.hasCaption)for(var c in this.data.classes)this.parts.image.removeClass(c);if(a.filter.checkFeature(b.dimension)){b=this.data;b={width:b.width,height:b.height};c=this.parts.image;for(var e in b)b[e]?c.setAttribute(e,b[e]):c.removeAttribute(e)}this.oldData=CKEDITOR.tools.extend({},
this.data)},init:function(){var b=CKEDITOR.plugins.image2,c=this.parts.image,d={hasCaption:!!this.parts.caption,src:c.getAttribute("src"),alt:c.getAttribute("alt")||"",width:c.getAttribute("width")||"",height:c.getAttribute("height")||"",lock:this.ready?b.checkHasNaturalRatio(c):true},e=c.getAscendant("a");if(e&&this.wrapper.contains(e))this.parts.link=e;if(!d.align){c=d.hasCaption?this.element:c;if(g){if(c.hasClass(g[0]))d.align="left";else if(c.hasClass(g[2]))d.align="right";d.align?c.removeClass(g[m[d.align]]):
d.align="none"}else{d.align=c.getStyle("float")||"none";c.removeStyle("float")}}if(a.plugins.link&&this.parts.link){d.link=CKEDITOR.plugins.link.parseLinkAttributes(a,this.parts.link);if((c=d.link.advanced)&&c.advCSSClasses)c.advCSSClasses=CKEDITOR.tools.trim(c.advCSSClasses.replace(/cke_\S+/,""))}this.wrapper[(d.hasCaption?"remove":"add")+"Class"]("cke_image_nocaption");this.setData(d);a.filter.checkFeature(this.features.dimension)&&a.config.image2_disableResizer!==true&&k(this);this.shiftState=
b.stateShifter(this.editor);this.on("contextMenu",function(a){a.data.image=CKEDITOR.TRISTATE_OFF;if(this.parts.link||this.wrapper.getAscendant("a"))a.data.link=a.data.unlink=CKEDITOR.TRISTATE_OFF});this.on("dialog",function(a){a.data.widget=this},this)},addClass:function(a){l(this).addClass(a)},hasClass:function(a){return l(this).hasClass(a)},removeClass:function(a){l(this).removeClass(a)},getClasses:function(){var a=RegExp("^("+[].concat(i,g).join("|")+")$");return function(){var b=this.repository.parseElementClasses(l(this).getAttribute("class")),
c;for(c in b)a.test(c)&&delete b[c];return b}}(),upcast:e(a),downcast:b(a)}}function e(a){var b=f(a),c=a.config.image2_captionedClass;return function(a,e){var f={width:1,height:1},g=a.name,h;if(!a.attributes["data-cke-realelement"]){if(b(a)){if(g=="div")if(h=a.getFirst("figure")){a.replaceWith(h);a=h}e.align="center";h=a.getFirst("img")||a.getFirst("a").getFirst("img")}else g=="figure"&&a.hasClass(c)?h=a.getFirst("img")||a.getFirst("a").getFirst("img"):d(a)&&(h=a.name=="a"?a.children[0]:a);if(h){for(var i in f)(g=
h.attributes[i])&&g.match(n)&&delete h.attributes[i];return a}}}}function b(a){var b=a.config.image2_alignClasses;return function(a){var c=a.name=="a"?a.getFirst():a,d=c.attributes,e=this.data.align;if(!this.inline){var f=a.getFirst("span");f&&f.replaceWith(f.getFirst({img:1,a:1}))}if(e&&e!="none"){f=CKEDITOR.tools.parseCssText(d.style||"");e=="center"&&a.name=="figure"?a=a.wrapWith(new CKEDITOR.htmlParser.element("div",b?{"class":b[1]}:{style:"text-align:center"})):e in{left:1,right:1}&&(b?c.addClass(b[m[e]]):
f["float"]=e);if(!b&&!CKEDITOR.tools.isEmpty(f))d.style=CKEDITOR.tools.writeCssText(f)}return a}}function f(a){var b=a.config.image2_captionedClass,c=a.config.image2_alignClasses,e={figure:1,a:1,img:1};return function(f){if(!(f.name in{div:1,p:1}))return false;var g=f.children;if(g.length!==1)return false;g=g[0];if(!(g.name in e))return false;if(f.name=="p"){if(!d(g))return false}else if(g.name=="figure"){if(!g.hasClass(b))return false}else if(a.enterMode==CKEDITOR.ENTER_P||!d(g))return false;return(c?
f.hasClass(c[1]):CKEDITOR.tools.parseCssText(f.attributes.style||"",true)["text-align"]=="center")?true:false}}function d(a){return a.name=="img"?true:a.name=="a"?a.children.length==1&&a.getFirst("img"):false}function k(a){var b=a.editor,c=b.editable(),d=b.document,e=a.resizer=d.createElement("span");e.addClass("cke_image_resizer");e.setAttribute("title",b.lang.image2.resizer);e.append(new CKEDITOR.dom.text("​",d));if(a.inline)a.wrapper.append(e);else{var f=a.parts.link||a.parts.image,g=f.getParent(),
h=d.createElement("span");h.addClass("cke_image_resizer_wrapper");h.append(f);h.append(e);a.element.append(h,true);g.is("span")&&g.remove()}e.on("mousedown",function(f){function g(a,b,c){var e=CKEDITOR.document,f=[];d.equals(e)||f.push(e.on(a,b));f.push(d.on(a,b));if(c)for(a=f.length;a--;)c.push(f.pop())}function h(){R=l+k*N;M=Math.round(R/o)}function i(){M=q-O;R=Math.round(M*o)}var j=a.parts.image,k=a.data.align=="right"?-1:1,m=f.data.$.screenX,n=f.data.$.screenY,l=j.$.clientWidth,q=j.$.clientHeight,
o=l/q,x=[],s="cke_image_s"+(!~k?"w":"e"),v,R,M,Y,N,O,I;b.fire("saveSnapshot");g("mousemove",function(a){v=a.data.$;N=v.screenX-m;O=n-v.screenY;I=Math.abs(N/O);k==1?N<=0?O<=0?h():I>=o?h():i():O<=0?I>=o?i():h():i():N<=0?O<=0?I>=o?i():h():i():O<=0?h():I>=o?h():i();if(R>=15&&M>=15){j.setAttributes({width:R,height:M});Y=true}else Y=false},x);g("mouseup",function(){for(var d;d=x.pop();)d.removeListener();c.removeClass(s);e.removeClass("cke_image_resizing");if(Y){a.setData({width:R,height:M});b.fire("saveSnapshot")}Y=
false},x);c.addClass(s);e.addClass("cke_image_resizing")});a.on("data",function(){e[a.data.align=="right"?"addClass":"removeClass"]("cke_image_resizer_left")})}function i(a){var b=[],c;return function(d){var e=a.getCommand("justify"+d);if(e){b.push(function(){e.refresh(a,a.elementPath())});if(d in{right:1,left:1,center:1})e.on("exec",function(c){var e=j(a);if(e){e.setData("align",d);for(e=b.length;e--;)b[e]();c.cancel()}});e.on("refresh",function(b){var e=j(a),f={right:1,left:1,center:1};if(e){c===
void 0&&(c=a.filter.checkFeature(a.widgets.registered.image.features.align));c?this.setState(e.data.align==d?CKEDITOR.TRISTATE_ON:d in f?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED):this.setState(CKEDITOR.TRISTATE_DISABLED);b.cancel()}})}}}function g(a){if(a.plugins.link){CKEDITOR.on("dialogDefinition",function(b){b=b.data;if(b.name=="link"){var b=b.definition,c=b.onShow,d=b.onOk;b.onShow=function(){var b=j(a);b&&(b.inline?!b.wrapper.getAscendant("a"):1)?this.setupContent(b.data.link||{}):c.apply(this,
arguments)};b.onOk=function(){var b=j(a);if(b&&(b.inline?!b.wrapper.getAscendant("a"):1)){var c={};this.commitContent(c);b.setData("link",c)}else d.apply(this,arguments)}}});a.getCommand("unlink").on("exec",function(b){var c=j(a);if(c&&c.parts.link){c.setData("link",null);this.refresh(a,a.elementPath());b.cancel()}});a.getCommand("unlink").on("refresh",function(b){var c=j(a);if(c){this.setState(c.data.link||c.wrapper.getAscendant("a")?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);b.cancel()}})}}
function j(a){return(a=a.widgets.focused)&&a.name=="image"?a:null}function c(a){var b=a.config.image2_alignClasses,a={div:{match:f(a)},p:{match:f(a)},img:{attributes:"!src,alt,width,height"},figure:{classes:"!"+a.config.image2_captionedClass},figcaption:true};if(b){a.div.classes=b[1];a.p.classes=a.div.classes;a.img.classes=b[0]+","+b[2];a.figure.classes=a.figure.classes+(","+a.img.classes)}else{a.div.styles="text-align";a.p.styles="text-align";a.img.styles="float";a.figure.styles="float,display"}return a}
function h(a){a=a.config.image2_alignClasses;return{dimension:{requiredContent:"img[width,height]"},align:{requiredContent:"img"+(a?"("+a[0]+")":"{float}")},caption:{requiredContent:"figcaption"}}}function l(a){return a.data.hasCaption?a.element:a.parts.image}var o='<img alt="" src="" />',q=new CKEDITOR.template('<figure class="{captionedClass}">'+o+"<figcaption>{captionPlaceholder}</figcaption></figure>"),m={left:0,center:1,right:2},n=/^\s*(\d+\%)\s*$/i;CKEDITOR.plugins.add("image2",{requires:"widget,dialog",
icons:"image",hidpi:true,onLoad:function(){CKEDITOR.addCss(".cke_image_nocaption{line-height:0}.cke_editable.cke_image_sw, .cke_editable.cke_image_sw *{cursor:sw-resize !important}.cke_editable.cke_image_se, .cke_editable.cke_image_se *{cursor:se-resize !important}.cke_image_resizer{display:none;position:absolute;width:10px;height:10px;bottom:-5px;right:-5px;background:#000;outline:1px solid #fff;line-height:0;cursor:se-resize;}.cke_image_resizer_wrapper{position:relative;display:inline-block;line-height:0;}.cke_image_resizer.cke_image_resizer_left{right:auto;left:-5px;cursor:sw-resize;}.cke_widget_wrapper:hover .cke_image_resizer,.cke_image_resizer.cke_image_resizing{display:block}.cke_widget_wrapper>a{display:inline-block}")},
init:function(b){var c=b.config,d=b.lang.image2,e=a(b);c.filebrowserImage2BrowseUrl=c.filebrowserImageBrowseUrl;c.filebrowserImage2UploadUrl=c.filebrowserImageUploadUrl;e.pathName=d.pathName;e.editables.caption.pathName=d.pathNameCaption;b.widgets.add("image",e);b.ui.addButton&&b.ui.addButton("Image",{label:b.lang.common.image,command:"image",toolbar:"insert,10"});if(b.contextMenu){b.addMenuGroup("image",10);b.addMenuItem("image",{label:d.menu,command:"image",group:"image"})}CKEDITOR.dialog.add("image2",
this.path+"dialogs/image2.js")},afterInit:function(a){var b={left:1,right:1,center:1,block:1},c=i(a),d;for(d in b)c(d);g(a)}});CKEDITOR.plugins.image2={stateShifter:function(a){function b(a,f){var g={};e?g.attributes={"class":e[1]}:g.styles={"text-align":"center"};g=d.createElement(a.activeEnterMode==CKEDITOR.ENTER_P?"p":"div",g);c(g,f);f.move(g);return g}function c(b,d){if(d.getParent()){var e=a.createRange();e.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START);d.remove();g.insertElementIntoRange(b,
e)}else b.replace(d)}var d=a.document,e=a.config.image2_alignClasses,f=a.config.image2_captionedClass,g=a.editable(),h=["hasCaption","align","link"],i={align:function(c,d,f){var g=c.element;if(c.changed.align){if(!c.newData.hasCaption){if(f=="center"){c.deflate();c.element=b(a,g)}if(!c.changed.hasCaption&&d=="center"&&f!="center"){c.deflate();d=g.findOne("a,img");d.replace(g);c.element=d}}}else if(f=="center"&&c.changed.hasCaption&&!c.newData.hasCaption){c.deflate();c.element=b(a,g)}!e&&g.is("figure")&&
(f=="center"?g.setStyle("display","inline-block"):g.removeStyle("display"))},hasCaption:function(b,e,g){if(b.changed.hasCaption){e=b.element.is({img:1,a:1})?b.element:b.element.findOne("a,img");b.deflate();if(g){g=CKEDITOR.dom.element.createFromHtml(q.output({captionedClass:f,captionPlaceholder:a.lang.image2.captionPlaceholder}),d);c(g,b.element);e.replace(g.findOne("img"));b.element=g}else{e.replace(b.element);b.element=e}}},link:function(b,c,e){if(b.changed.link){var f=b.element.is("img")?b.element:
b.element.findOne("img"),g=b.element.is("a")?b.element:b.element.findOne("a"),h=b.element.is("a")&&!e||b.element.is("img")&&e,i;h&&b.deflate();if(e){if(!c){i=d.createElement("a",{attributes:{href:b.newData.link.url}});i.replace(f);f.move(i)}e=CKEDITOR.plugins.link.getLinkAttributes(a,e);CKEDITOR.tools.isEmpty(e.set)||(i||g).setAttributes(e.set);e.removed.length&&(i||g).removeAttributes(e.removed)}else{e=g.findOne("img");e.replace(g);i=e}if(h)b.element=i}}};return function(a){var b,c;a.changed={};
for(c=0;c<h.length;c++){b=h[c];a.changed[b]=a.oldData?a.oldData[b]!==a.newData[b]:false}for(c=0;c<h.length;c++){b=h[c];i[b](a,a.oldData?a.oldData[b]:null,a.newData[b])}a.inflate()}},checkHasNaturalRatio:function(a){var b=a.$,a=this.getNatural(a);return Math.round(b.clientWidth/a.width*a.height)==b.clientHeight||Math.round(b.clientHeight/a.height*a.width)==b.clientWidth},getNatural:function(a){if(a.$.naturalWidth)a={width:a.$.naturalWidth,height:a.$.naturalHeight};else{var b=new Image;b.src=a.getAttribute("src");
a={width:b.width,height:b.height}}return a}}}(),CKEDITOR.config.image2_captionedClass="image",function(){function a(a,d){var k,i;d.on("refresh",function(a){var d=[e],c;for(c in a.data.states)d.push(a.data.states[c]);this.setState(CKEDITOR.tools.search(d,b)?b:e)},d,null,100);d.on("exec",function(b){k=a.getSelection();i=k.createBookmarks(1);if(!b.data)b.data={};b.data.done=false},d,null,0);d.on("exec",function(){a.forceNextSelectionCheck();k.selectBookmarks(i)},d,null,100)}var e=CKEDITOR.TRISTATE_DISABLED,
b=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(b){var d=CKEDITOR.plugins.indent.genericDefinition;a(b,b.addCommand("indent",new d(true)));a(b,b.addCommand("outdent",new d));if(b.ui.addButton){b.ui.addButton("Indent",{label:b.lang.indent.indent,command:"indent",directional:true,toolbar:"indent,20"});b.ui.addButton("Outdent",{label:b.lang.indent.outdent,command:"outdent",directional:true,toolbar:"indent,10"})}b.on("dirChanged",function(a){var d=b.createRange(),e=a.data.node;d.setStartBefore(e);
d.setEndAfter(e);for(var j=new CKEDITOR.dom.walker(d),c;c=j.next();)if(c.type==CKEDITOR.NODE_ELEMENT)if(!c.equals(e)&&c.getDirection()){d.setStartAfter(c);j=new CKEDITOR.dom.walker(d)}else{var h=b.config.indentClasses;if(h)for(var l=a.data.dir=="ltr"?["_rtl",""]:["","_rtl"],o=0;o<h.length;o++)if(c.hasClass(h[o]+l[0])){c.removeClass(h[o]+l[0]);c.addClass(h[o]+l[1])}h=c.getStyle("margin-right");l=c.getStyle("margin-left");h?c.setStyle("margin-left",h):c.removeStyle("margin-left");l?c.setStyle("margin-right",
l):c.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(a){this.isIndent=!!a;this.startDisabled=!this.isIndent},specificDefinition:function(a,b,e){this.name=b;this.editor=a;this.jobs={};this.enterBr=a.config.enterMode==CKEDITOR.ENTER_BR;this.isIndent=!!e;this.relatedGlobal=e?"indent":"outdent";this.indentKey=e?9:CKEDITOR.SHIFT+9;this.database={}},registerCommands:function(a,b){a.on("pluginsLoaded",function(){for(var a in b)(function(a,b){var d=a.getCommand(b.relatedGlobal),
c;for(c in b.jobs){d.on("exec",function(d){if(!d.data.done){a.fire("lockSnapshot");if(b.execJob(a,c))d.data.done=true;a.fire("unlockSnapshot");CKEDITOR.dom.element.clearAllMarkers(b.database)}},this,null,c);d.on("refresh",function(d){if(!d.data.states)d.data.states={};d.data.states[b.name+"@"+c]=b.refreshJob(a,c,d.data.path)},this,null,c)}a.addFeature(b)})(this,b[a])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype=
{execJob:function(a,b){var k=this.jobs[b];if(k.state!=e)return k.exec.call(this,a)},refreshJob:function(a,b,k){b=this.jobs[b];b.state=a.activeFilter.checkFeature(this)?b.refresh.call(this,a,k):e;return b.state},getContext:function(a){return a.contains(this.context)}}}(),function(){function a(a){function d(e){for(var j=q.startContainer,k=q.endContainer;j&&!j.getParent().equals(e);)j=j.getParent();for(;k&&!k.getParent().equals(e);)k=k.getParent();if(!j||!k)return false;for(var m=j,j=[],n=false;!n;){m.equals(k)&&
(n=true);j.push(m);m=m.getNext()}if(j.length<1)return false;m=e.getParents(true);for(k=0;k<m.length;k++)if(m[k].getName&&i[m[k].getName()]){e=m[k];break}for(var m=c.isIndent?1:-1,k=j[0],j=j[j.length-1],n=CKEDITOR.plugins.list.listToArray(e,f),o=n[j.getCustomData("listarray_index")].indent,k=k.getCustomData("listarray_index");k<=j.getCustomData("listarray_index");k++){n[k].indent=n[k].indent+m;if(m>0){var v=n[k].parent;n[k].parent=new CKEDITOR.dom.element(v.getName(),v.getDocument())}}for(k=j.getCustomData("listarray_index")+
1;k<n.length&&n[k].indent>o;k++)n[k].indent=n[k].indent+m;j=CKEDITOR.plugins.list.arrayToList(n,f,null,a.config.enterMode,e.getDirection());if(!c.isIndent){var s;if((s=e.getParent())&&s.is("li"))for(var m=j.listNode.getChildren(),z=[],y,k=m.count()-1;k>=0;k--)(y=m.getItem(k))&&(y.is&&y.is("li"))&&z.push(y)}j&&j.listNode.replace(e);if(z&&z.length)for(k=0;k<z.length;k++){for(y=e=z[k];(y=y.getNext())&&y.is&&y.getName()in i;){CKEDITOR.env.needsNbspFiller&&!e.getFirst(b)&&e.append(q.document.createText(" "));
e.append(y)}e.insertAfter(s)}j&&a.fire("contentDomInvalidated");return true}for(var c=this,f=this.database,i=this.context,k=a.getSelection(),k=(k&&k.getRanges()).createIterator(),q;q=k.getNextRange();){for(var m=q.getCommonAncestor();m&&!(m.type==CKEDITOR.NODE_ELEMENT&&i[m.getName()]);){if(a.editable().equals(m)){m=false;break}m=m.getParent()}m||(m=q.startPath().contains(i))&&q.setEndAt(m,CKEDITOR.POSITION_BEFORE_END);if(!m){var n=q.getEnclosedNode();if(n&&n.type==CKEDITOR.NODE_ELEMENT&&n.getName()in
i){q.setStartAt(n,CKEDITOR.POSITION_AFTER_START);q.setEndAt(n,CKEDITOR.POSITION_BEFORE_END);m=n}}if(m&&q.startContainer.type==CKEDITOR.NODE_ELEMENT&&q.startContainer.getName()in i){n=new CKEDITOR.dom.walker(q);n.evaluator=e;q.startContainer=n.next()}if(m&&q.endContainer.type==CKEDITOR.NODE_ELEMENT&&q.endContainer.getName()in i){n=new CKEDITOR.dom.walker(q);n.evaluator=e;q.endContainer=n.previous()}if(m)return d(m)}return 0}function e(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}function b(a){return f(a)&&
d(a)}var f=CKEDITOR.dom.walker.whitespaces(true),d=CKEDITOR.dom.walker.bookmark(false,true),k=CKEDITOR.TRISTATE_DISABLED,i=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(b){function d(b){c.specificDefinition.apply(this,arguments);this.requiredContent=["ul","ol"];b.on("key",function(a){if(b.mode=="wysiwyg"&&a.data.keyCode==this.indentKey){var c=this.getContext(b.elementPath());if(c&&(!this.isIndent||!CKEDITOR.plugins.indentList.firstItemInPath(this.context,
b.elementPath(),c))){b.execCommand(this.relatedGlobal);a.cancel()}}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(a,b){var c=this.getContext(b),d=CKEDITOR.plugins.indentList.firstItemInPath(this.context,b,c);return!c||!this.isIndent||d?k:i}:function(a,b){return!this.getContext(b)||this.isIndent?k:i},exec:CKEDITOR.tools.bind(a,this)}}var c=CKEDITOR.plugins.indent;c.registerCommands(b,{indentlist:new d(b,"indentlist",true),outdentlist:new d(b,"outdentlist")});CKEDITOR.tools.extend(d.prototype,
c.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(a,b,c){var d=b.contains(e);c||(c=b.contains(a));return c&&d&&d.equals(c.getFirst(e))}}(),function(){function a(a,b,d){if(!a.getCustomData("indent_processed")){var c=this.editor,f=this.isIndent;if(b){c=a.$.className.match(this.classNameRegex);d=0;if(c){c=c[1];d=CKEDITOR.tools.indexOf(b,c)+1}if((d=d+(f?1:-1))<0)return;d=Math.min(d,b.length);d=Math.max(d,0);a.$.className=
CKEDITOR.tools.ltrim(a.$.className.replace(this.classNameRegex,""));d>0&&a.addClass(b[d-1])}else{var b=e(a,d),d=parseInt(a.getStyle(b),10),k=c.config.indentOffset||40;isNaN(d)&&(d=0);d=d+(f?1:-1)*k;if(d<0)return;d=Math.max(d,0);d=Math.ceil(d/k)*k;a.setStyle(b,d?d+(c.config.indentUnit||"px"):"");a.getAttribute("style")===""&&a.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,a,"indent_processed",1)}}function e(a,b){return(b||a.getComputedStyle("direction"))=="ltr"?"margin-left":
"margin-right"}var b=CKEDITOR.dtd.$listItem,f=CKEDITOR.dtd.$list,d=CKEDITOR.TRISTATE_DISABLED,k=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(i){function g(){j.specificDefinition.apply(this,arguments);this.allowedContent={"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:true,styles:!c?"margin-left,margin-right":null,classes:c||null}};if(this.enterBr)this.allowedContent.div=true;this.requiredContent=(this.enterBr?"div":"p")+(c?"("+c.join(",")+")":"{margin-left}");
this.jobs={20:{refresh:function(a,f){var g=f.block||f.blockLimit;if(!g.is(b))var i=g.getAscendant(b),g=i&&f.contains(i)||g;g.is(b)&&(g=g.getParent());if(!this.enterBr&&!this.getContext(f))return d;if(c){var i=c,g=g.$.className.match(this.classNameRegex),j=this.isIndent,i=g?j?g[1]!=i.slice(-1):true:j;return i?k:d}return this.isIndent?k:g?CKEDITOR[(parseInt(g.getStyle(e(g)),10)||0)<=0?"TRISTATE_DISABLED":"TRISTATE_OFF"]:d},exec:function(b){var d=b.getSelection(),d=d&&d.getRanges()[0],e;if(e=b.elementPath().contains(f))a.call(this,
e,c);else{d=d.createIterator();b=b.config.enterMode;d.enforceRealBlocks=true;for(d.enlargeBr=b!=CKEDITOR.ENTER_BR;e=d.getNextParagraph(b==CKEDITOR.ENTER_P?"p":"div");)e.isReadOnly()||a.call(this,e,c)}return true}}}}var j=CKEDITOR.plugins.indent,c=i.config.indentClasses;j.registerCommands(i,{indentblock:new g(i,"indentblock",true),outdentblock:new g(i,"outdentblock")});CKEDITOR.tools.extend(g.prototype,j.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:c?RegExp("(?:^|\\s+)("+c.join("|")+")(?=$|\\s)"):null})}})}(),function(){function a(a,b){var b=b===void 0||b,e;if(b)e=a.getComputedStyle("text-align");else{for(;!a.hasAttribute||!a.hasAttribute("align")&&!a.getStyle("text-align");){e=a.getParent();if(!e)break;a=e}e=a.getStyle("text-align")||a.getAttribute("align")||""}e&&(e=e.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!e&&b&&(e=a.getComputedStyle("direction")=="rtl"?"right":"left");return e}function e(a,b,e){this.editor=
a;this.name=b;this.value=e;this.context="p";var b=a.config.justifyClasses,i=a.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(b){switch(e){case "left":this.cssClassName=b[0];break;case "center":this.cssClassName=b[1];break;case "right":this.cssClassName=b[2];break;case "justify":this.cssClassName=b[3]}this.cssClassRegex=RegExp("(?:^|\\s+)(?:"+b.join("|")+")(?=$|\\s)");this.requiredContent=i+"("+this.cssClassName+")"}else this.requiredContent=i+"{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:true,
styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}};if(a.config.enterMode==CKEDITOR.ENTER_BR)this.allowedContent.div=true}function b(a){var b=a.editor,e=b.createRange();e.setStartBefore(a.data.node);e.setEndAfter(a.data.node);for(var i=new CKEDITOR.dom.walker(e),g;g=i.next();)if(g.type==CKEDITOR.NODE_ELEMENT)if(!g.equals(a.data.node)&&g.getDirection()){e.setStartAfter(g);i=new CKEDITOR.dom.walker(e)}else{var j=b.config.justifyClasses;if(j)if(g.hasClass(j[0])){g.removeClass(j[0]);
g.addClass(j[2])}else if(g.hasClass(j[2])){g.removeClass(j[2]);g.addClass(j[0])}j=g.getStyle("text-align");j=="left"?g.setStyle("text-align","right"):j=="right"&&g.setStyle("text-align","left")}}e.prototype={exec:function(b){var d=b.getSelection(),e=b.config.enterMode;if(d){for(var i=d.createBookmarks(),g=d.getRanges(),j=this.cssClassName,c,h,l=b.config.useComputedState,l=l===void 0||l,o=g.length-1;o>=0;o--){c=g[o].createIterator();for(c.enlargeBr=e!=CKEDITOR.ENTER_BR;h=c.getNextParagraph(e==CKEDITOR.ENTER_P?
"p":"div");)if(!h.isReadOnly()){h.removeAttribute("align");h.removeStyle("text-align");var q=j&&(h.$.className=CKEDITOR.tools.ltrim(h.$.className.replace(this.cssClassRegex,""))),m=this.state==CKEDITOR.TRISTATE_OFF&&(!l||a(h,true)!=this.value);j?m?h.addClass(j):q||h.removeAttribute("class"):m&&h.setStyle("text-align",this.value)}}b.focus();b.forceNextSelectionCheck();d.selectBookmarks(i)}},refresh:function(b,d){var e=d.block||d.blockLimit;this.setState(e.getName()!="body"&&a(e,this.editor.config.useComputedState)==
this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("justify",{init:function(a){if(!a.blockless){var d=new e(a,"justifyleft","left"),k=new e(a,"justifycenter","center"),i=new e(a,"justifyright","right"),g=new e(a,"justifyblock","justify");a.addCommand("justifyleft",d);a.addCommand("justifycenter",k);a.addCommand("justifyright",i);a.addCommand("justifyblock",g);if(a.ui.addButton){a.ui.addButton("JustifyLeft",{label:a.lang.justify.left,command:"justifyleft",toolbar:"align,10"});
a.ui.addButton("JustifyCenter",{label:a.lang.justify.center,command:"justifycenter",toolbar:"align,20"});a.ui.addButton("JustifyRight",{label:a.lang.justify.right,command:"justifyright",toolbar:"align,30"});a.ui.addButton("JustifyBlock",{label:a.lang.justify.block,command:"justifyblock",toolbar:"align,40"})}a.on("dirChanged",b)}}})}(),"use strict",function(){function a(a){return a.replace(/'/g,"\\$&")}function e(a){for(var b,c=a.length,d=[],e=0;e<c;e++){b=a.charCodeAt(e);d.push(b)}return"String.fromCharCode("+
d.join(",")+")"}function b(b,c){var d=b.plugins.link,e=d.compiledProtectionFunction.params,f,g;g=[d.compiledProtectionFunction.name,"("];for(var h=0;h<e.length;h++){d=e[h].toLowerCase();f=c[d];h>0&&g.push(",");g.push("'",f?a(encodeURIComponent(c[d])):"","'")}g.push(")");return g.join("")}function f(a){var a=a.config.emailProtection||"",b;if(a&&a!="encode"){b={};a.replace(/^([^(]+)\(([^)]+)\)$/,function(a,c,d){b.name=c;b.params=[];d.replace(/[^,\s]+/g,function(a){b.params.push(a)})})}return b}CKEDITOR.plugins.add("link",
{requires:"dialog,fakeobjects",onLoad:function(){function a(b){return c.replace(/%1/g,b=="rtl"?"right":"left").replace(/%2/g,"cke_contents_"+b)}var b="background:url("+CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",c=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+b+"padding-%1:18px;cursor:auto;}.%2 img.cke_anchor{"+b+"width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}";
CKEDITOR.addCss(a("ltr")+a("rtl"))},init:function(a){var b="a[!href]";CKEDITOR.dialog.isTabEnabled(a,"link","advanced")&&(b=b.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type]{*}(*)"));CKEDITOR.dialog.isTabEnabled(a,"link","target")&&(b=b.replace("]",",target,onclick]"));a.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:b,requiredContent:"a[href]"}));a.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"}));
a.addCommand("unlink",new CKEDITOR.unlinkCommand);a.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand);a.setKeystroke(CKEDITOR.CTRL+76,"link");if(a.ui.addButton){a.ui.addButton("Link",{label:a.lang.link.toolbar,command:"link",toolbar:"links,10"});a.ui.addButton("Unlink",{label:a.lang.link.unlink,command:"unlink",toolbar:"links,20"});a.ui.addButton("Anchor",{label:a.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");a.on("doubleclick",function(b){var c=CKEDITOR.plugins.link.getSelectedLink(a)||b.data.element;if(!c.isReadOnly())if(c.is("a")){b.data.dialog=c.getAttribute("name")&&(!c.getAttribute("href")||!c.getChildCount())?"anchor":"link";b.data.link=c}else if(CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,c))b.data.dialog="anchor"},null,null,0);a.on("doubleclick",function(b){b.data.dialog in{link:1,anchor:1}&&b.data.link&&a.getSelection().selectElement(b.data.link)},null,null,20);
a.addMenuItems&&a.addMenuItems({anchor:{label:a.lang.link.anchor.menu,command:"anchor",group:"anchor",order:1},removeAnchor:{label:a.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:a.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:a.lang.link.unlink,command:"unlink",group:"link",order:5}});a.contextMenu&&a.contextMenu.addListener(function(b){if(!b||b.isReadOnly())return null;b=CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,b);if(!b&&!(b=CKEDITOR.plugins.link.getSelectedLink(a)))return null;
var c={};b.getAttribute("href")&&b.getChildCount()&&(c={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF});if(b&&b.hasAttribute("name"))c.anchor=c.removeAnchor=CKEDITOR.TRISTATE_OFF;return c});this.compiledProtectionFunction=f(a)},afterInit:function(a){a.dataProcessor.dataFilter.addRules({elements:{a:function(b){return!b.attributes.name?null:!b.children.length?a.createFakeParserElement(b,"cke_anchor","anchor"):null}}});var b=a._.elementsPath&&a._.elementsPath.filters;b&&b.push(function(b,c){if(c==
"a"&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,b)||b.getAttribute("name")&&(!b.getAttribute("href")||!b.getChildCount())))return"anchor"})}});var d=/^javascript:/,k=/^mailto:([^?]+)(?:\?(.+))?$/,i=/subject=([^;?:@&=$,\/]*)/,g=/body=([^;?:@&=$,\/]*)/,j=/^#(.*)$/,c=/^((?:http|https|ftp|news):\/\/)?(.*)$/,h=/^(_(?:self|top|parent|blank))$/,l=/^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/,o=/^javascript:([^(]+)\(([^)]+)\)$/,q=/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/,
m=/(?:^|,)([^=]+)=(\d+|yes|no)/gi,n={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(a){var b=a.getSelection(),c=b.getSelectedElement();if(c&&c.is("a"))return c;if(b=b.getRanges()[0]){b.shrink(CKEDITOR.SHRINK_TEXT);return a.elementPath(b.getCommonAncestor()).contains("a",1)}return null},
getEditorAnchors:function(a){for(var b=a.editable(),c=b.isInline()&&!a.plugins.divarea?a.document:b,b=c.getElementsByTag("a"),c=c.getElementsByTag("img"),d=[],e=0,f;f=b.getItem(e++);)if(f.data("cke-saved-name")||f.hasAttribute("name"))d.push({name:f.data("cke-saved-name")||f.getAttribute("name"),id:f.getAttribute("id")});for(e=0;f=c.getItem(e++);)(f=this.tryRestoreFakeAnchor(a,f))&&d.push({name:f.getAttribute("name"),id:f.getAttribute("id")});return d},fakeAnchor:true,tryRestoreFakeAnchor:function(a,
b){if(b&&b.data("cke-real-element-type")&&b.data("cke-real-element-type")=="anchor"){var c=a.restoreRealElement(b);if(c.data("cke-saved-name"))return c}},parseLinkAttributes:function(a,b){var e=b&&(b.data("cke-saved-href")||b.getAttribute("href"))||"",f=a.plugins.link.compiledProtectionFunction,t=a.config.emailProtection,x,v={};e.match(d)&&(t=="encode"?e=e.replace(l,function(a,b,c){return"mailto:"+String.fromCharCode.apply(String,b.split(","))+(c&&c.replace(/\\'/g,"'"))}):t&&e.replace(o,function(a,
b,c){if(b==f.name){v.type="email";for(var a=v.email={},b=/(^')|('$)/g,c=c.match(/[^,\s]+/g),d=c.length,e,g,h=0;h<d;h++){e=decodeURIComponent;g=c[h].replace(b,"").replace(/\\'/g,"'");g=e(g);e=f.params[h].toLowerCase();a[e]=g}a.address=[a.name,a.domain].join("@")}}));if(!v.type)if(t=e.match(j)){v.type="anchor";v.anchor={};v.anchor.name=v.anchor.id=t[1]}else if(t=e.match(k)){x=e.match(i);e=e.match(g);v.type="email";var s=v.email={};s.address=t[1];x&&(s.subject=decodeURIComponent(x[1]));e&&(s.body=decodeURIComponent(e[1]))}else if(e&&
(x=e.match(c))){v.type="url";v.url={};v.url.protocol=x[1];v.url.url=x[2]}if(b){if(e=b.getAttribute("target"))v.target={type:e.match(h)?e:"frame",name:e};else if(e=(e=b.data("cke-pa-onclick")||b.getAttribute("onclick"))&&e.match(q))for(v.target={type:"popup",name:e[1]};t=m.exec(e[2]);)(t[2]=="yes"||t[2]=="1")&&!(t[1]in{height:1,width:1,top:1,left:1})?v.target[t[1]]=true:isFinite(t[2])&&(v.target[t[1]]=t[2]);var e={},z;for(z in n)(t=b.getAttribute(z))&&(e[n[z]]=t);if(z=b.data("cke-saved-name")||e.advName)e.advName=
z;if(!CKEDITOR.tools.isEmpty(e))v.advanced=e}return v},getLinkAttributes:function(c,d){var f=c.config.emailProtection||"",g={};switch(d.type){case "url":var f=d.url&&d.url.protocol!==void 0?d.url.protocol:"http://",h=d.url&&CKEDITOR.tools.trim(d.url.url)||"";g["data-cke-saved-href"]=h.indexOf("/")===0?h:f+h;break;case "anchor":f=d.anchor&&d.anchor.id;g["data-cke-saved-href"]="#"+(d.anchor&&d.anchor.name||f||"");break;case "email":var i=d.email,h=i.address;switch(f){case "":case "encode":var j=encodeURIComponent(i.subject||
""),k=encodeURIComponent(i.body||""),i=[];j&&i.push("subject="+j);k&&i.push("body="+k);i=i.length?"?"+i.join("&"):"";if(f=="encode"){f=["javascript:void(location.href='mailto:'+",e(h)];i&&f.push("+'",a(i),"'");f.push(")")}else f=["mailto:",h,i];break;default:f=h.split("@",2);i.name=f[0];i.domain=f[1];f=["javascript:",b(c,i)]}g["data-cke-saved-href"]=f.join("")}if(d.target)if(d.target.type=="popup"){for(var f=["window.open(this.href, '",d.target.name||"","', '"],m=["resizable","status","location",
"toolbar","menubar","fullscreen","scrollbars","dependent"],h=m.length,j=function(a){d.target[a]&&m.push(a+"="+d.target[a])},i=0;i<h;i++)m[i]=m[i]+(d.target[m[i]]?"=yes":"=no");j("width");j("left");j("height");j("top");f.push(m.join(","),"'); return false;");g["data-cke-pa-onclick"]=f.join("")}else if(d.target.type!="notSet"&&d.target.name)g.target=d.target.name;if(d.advanced){for(var l in n)(f=d.advanced[n[l]])&&(g[l]=f);if(g.name)g["data-cke-saved-name"]=g.name}if(g["data-cke-saved-href"])g.href=
g["data-cke-saved-href"];l={target:1,onclick:1,"data-cke-pa-onclick":1,"data-cke-saved-name":1};d.advanced&&CKEDITOR.tools.extend(l,n);for(var q in g)delete l[q];return{set:g,removed:CKEDITOR.tools.objectKeys(l)}}};CKEDITOR.unlinkCommand=function(){};CKEDITOR.unlinkCommand.prototype={exec:function(a){var b=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});a.removeStyle(b)},refresh:function(a,b){var c=b.lastElement&&b.lastElement.getAscendant("a",true);c&&c.getName()==
"a"&&c.getAttribute("href")&&c.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(a){var b=a.getSelection(),c=b.createBookmarks(),d;if(b&&(d=b.getSelectedElement())&&(!d.getChildCount()?CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,d):d.is("a")))d.remove(1);else if(d=CKEDITOR.plugins.link.getSelectedLink(a))if(d.hasAttribute("href")){d.removeAttributes({name:1,
"data-cke-saved-name":1});d.removeClass("cke_anchor")}else d.remove(1);b.selectBookmarks(c)},requiredContent:"a[name]"};CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:true,linkShowTargetTab:true})}(),function(){function a(a,b,c){function d(c){if((j=i[c?"getFirst":"getLast"]())&&(!j.is||!j.isBlockBoundary())&&(k=b.root[c?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(true)))&&(!k.is||!k.isBlockBoundary({br:1})))a.document.createElement("br")[c?"insertBefore":"insertAfter"](j)}for(var e=
CKEDITOR.plugins.list.listToArray(b.root,c),f=[],g=0;g<b.contents.length;g++){var h=b.contents[g];if((h=h.getAscendant("li",true))&&!h.getCustomData("list_item_processed")){f.push(h);CKEDITOR.dom.element.setMarker(c,h,"list_item_processed",true)}}h=null;for(g=0;g<f.length;g++){h=f[g].getCustomData("listarray_index");e[h].indent=-1}for(g=h+1;g<e.length;g++)if(e[g].indent>e[g-1].indent+1){f=e[g-1].indent+1-e[g].indent;for(h=e[g].indent;e[g]&&e[g].indent>=h;){e[g].indent=e[g].indent+f;g++}g--}var i=
CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,j,k;d(true);d();i.replace(b.root);a.fire("contentDomInvalidated")}function e(a,b){this.name=a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function b(a,b,c,d){for(var e,f;e=a[d?"getLast":"getFirst"](q);){(f=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",f);e.remove();c?e[d?"insertBefore":"insertAfter"](c):b.append(e,d)}}function f(a){function c(d){var e=a[d?
"getPrevious":"getNext"](h);if(e&&e.type==CKEDITOR.NODE_ELEMENT&&e.is(a.getName())){b(a,e,null,!d);a.remove();a=e}}c();c(1)}function d(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function k(a,c,d){a.fire("saveSnapshot");d.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var e=d.extractContents();c.trim(false,true);var g=c.createBookmark(),j=new CKEDITOR.dom.elementPath(c.startContainer),k=j.block,j=
j.lastElement.getAscendant("li",1)||k,q=new CKEDITOR.dom.elementPath(d.startContainer),o=q.contains(CKEDITOR.dtd.$listItem),q=q.contains(CKEDITOR.dtd.$list);if(k)(k=k.getBogus())&&k.remove();else if(q)(k=q.getPrevious(h))&&l(k)&&k.remove();(k=e.getLast())&&(k.type==CKEDITOR.NODE_ELEMENT&&k.is("br"))&&k.remove();(k=c.startContainer.getChild(c.startOffset))?e.insertBefore(k):c.startContainer.append(e);if(o)if(e=i(o))if(j.contains(o)){b(e,o.getParent(),o);e.remove()}else j.append(e);for(;d.checkStartOfBlock()&&
d.checkEndOfBlock();){q=d.startPath();e=q.block;if(!e)break;if(e.is("li")){j=e.getParent();e.equals(j.getLast(h))&&e.equals(j.getFirst(h))&&(e=j)}d.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);e.remove()}d=d.clone();e=a.editable();d.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=function(a){return h(a)&&!l(a)};(d=d.next())&&(d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in CKEDITOR.dtd.$list)&&f(d);c.moveToBookmark(g);c.select();a.fire("saveSnapshot")}function i(a){return(a=
a.getLast(h))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in g?a:null}var g={ol:1,ul:1},j=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(),h=function(a){return!(j(a)||c(a))},l=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,b,c,d,e){if(!g[a.getName()])return[];d||(d=0);c||(c=[]);for(var f=0,h=a.getChildCount();f<h;f++){var i=a.getChild(f);i.type==CKEDITOR.NODE_ELEMENT&&i.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(i,b,c,d+1);if(i.$.nodeName.toLowerCase()==
"li"){var j={parent:a,indent:d,element:i,contents:[]};if(e)j.grandparent=e;else{j.grandparent=a.getParent();if(j.grandparent&&j.grandparent.$.nodeName.toLowerCase()=="li")j.grandparent=j.grandparent.getParent()}b&&CKEDITOR.dom.element.setMarker(b,i,"listarray_index",c.length);c.push(j);for(var k=0,l=i.getChildCount(),q;k<l;k++){q=i.getChild(k);q.type==CKEDITOR.NODE_ELEMENT&&g[q.getName()]?CKEDITOR.plugins.list.listToArray(q,b,c,d+1,j.grandparent):j.contents.push(q)}}}return c},arrayToList:function(a,
b,d,e,f){d||(d=0);if(!a||a.length<d+1)return null;for(var i,j=a[d].parent.getDocument(),k=new CKEDITOR.dom.documentFragment(j),l=null,q=d,o=Math.max(a[d].indent,0),y=null,B,A,E=e==CKEDITOR.ENTER_P?"p":"div";;){var C=a[q];i=C.grandparent;B=C.element.getDirection(1);if(C.indent==o){if(!l||a[q].parent.getName()!=l.getName()){l=a[q].parent.clone(false,1);f&&l.setAttribute("dir",f);k.append(l)}y=l.append(C.element.clone(0,1));B!=l.getDirection(1)&&y.setAttribute("dir",B);for(i=0;i<C.contents.length;i++)y.append(C.contents[i].clone(1,
1));q++}else if(C.indent==Math.max(o,0)+1){C=a[q-1].element.getDirection(1);q=CKEDITOR.plugins.list.arrayToList(a,null,q,e,C!=B?B:null);!y.getChildCount()&&(CKEDITOR.env.needsNbspFiller&&j.$.documentMode<=7)&&y.append(j.createText(" "));y.append(q.listNode);q=q.nextIndex}else if(C.indent==-1&&!d&&i){if(g[i.getName()]){y=C.element.clone(false,true);B!=i.getDirection(1)&&y.setAttribute("dir",B)}else y=new CKEDITOR.dom.documentFragment(j);var l=i.getDirection(1)!=B,F=C.element,D=F.getAttribute("class"),
H=F.getAttribute("style"),L=y.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(e!=CKEDITOR.ENTER_BR||l||H||D),K,S=C.contents.length,J;for(i=0;i<S;i++){K=C.contents[i];if(c(K)&&S>1)L?J=K.clone(1,1):y.append(K.clone(1,1));else if(K.type==CKEDITOR.NODE_ELEMENT&&K.isBlockBoundary()){l&&!K.getDirection()&&K.setAttribute("dir",B);A=K;var U=F.getAttribute("style");U&&A.setAttribute("style",U.replace(/([^;])$/,"$1;")+(A.getAttribute("style")||""));D&&K.addClass(D);A=null;if(J){y.append(J);J=null}y.append(K.clone(1,
1))}else if(L){if(!A){A=j.createElement(E);y.append(A);l&&A.setAttribute("dir",B)}H&&A.setAttribute("style",H);D&&A.setAttribute("class",D);if(J){A.append(J);J=null}A.append(K.clone(1,1))}else y.append(K.clone(1,1))}if(J){(A||y).append(J);J=null}if(y.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&q!=a.length-1){if(CKEDITOR.env.needsBrFiller)(B=y.getLast())&&(B.type==CKEDITOR.NODE_ELEMENT&&B.is("br"))&&B.remove();B=y.getLast(h);(!B||!(B.type==CKEDITOR.NODE_ELEMENT&&B.is(CKEDITOR.dtd.$block)))&&y.append(j.createElement("br"))}B=
y.$.nodeName.toLowerCase();(B=="div"||B=="p")&&y.appendBogus();k.append(y);l=null;q++}else return null;A=null;if(a.length<=q||Math.max(a[q].indent,0)<o)break}if(b)for(a=k.getFirst();a;){if(a.type==CKEDITOR.NODE_ELEMENT){CKEDITOR.dom.element.clearMarkers(b,a);if(a.getName()in CKEDITOR.dtd.$listItem){d=a;j=f=e=void 0;if(e=d.getDirection()){for(f=d.getParent();f&&!(j=f.getDirection());)f=f.getParent();e==j&&d.removeAttribute("dir")}}}a=a.getNextSourceNode()}return{listNode:k,nextIndex:q}}};var o=/^h[1-6]$/,
q=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);e.prototype={exec:function(b){this.refresh(b,b.elementPath());var c=b.config,d=b.getSelection(),e=d&&d.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var i=b.editable();if(i.getFirst(h)){var j=e.length==1&&e[0];(c=j&&j.getEnclosedNode())&&(c.is&&this.type==c.getName())&&this.setState(CKEDITOR.TRISTATE_ON)}else{c.enterMode==CKEDITOR.ENTER_BR?i.appendBogus():e[0].fixBlock(1,c.enterMode==CKEDITOR.ENTER_P?"p":"div");d.selectRanges(e)}}for(var c=
d.createBookmarks(true),i=[],k={},e=e.createIterator(),l=0;(j=e.getNextRange())&&++l;){var q=j.getBoundaryNodes(),s=q.startNode,z=q.endNode;s.type==CKEDITOR.NODE_ELEMENT&&s.getName()=="td"&&j.setStartAt(q.startNode,CKEDITOR.POSITION_AFTER_START);z.type==CKEDITOR.NODE_ELEMENT&&z.getName()=="td"&&j.setEndAt(q.endNode,CKEDITOR.POSITION_BEFORE_END);j=j.createIterator();for(j.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;q=j.getNextParagraph();)if(!q.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(k,
q,"list_block",1);for(var y=b.elementPath(q),s=y.elements,z=0,y=y.blockLimit,B,A=s.length-1;A>=0&&(B=s[A]);A--)if(g[B.getName()]&&y.contains(B)){y.removeCustomData("list_group_object_"+l);if(s=B.getCustomData("list_group_object"))s.contents.push(q);else{s={root:B,contents:[q]};i.push(s);CKEDITOR.dom.element.setMarker(k,B,"list_group_object",s)}z=1;break}if(!z){z=y;if(z.getCustomData("list_group_object_"+l))z.getCustomData("list_group_object_"+l).contents.push(q);else{s={root:z,contents:[q]};CKEDITOR.dom.element.setMarker(k,
z,"list_group_object_"+l,s);i.push(s)}}}}for(B=[];i.length>0;){s=i.shift();if(this.state==CKEDITOR.TRISTATE_OFF)if(g[s.root.getName()]){e=b;l=s;s=k;j=B;z=CKEDITOR.plugins.list.listToArray(l.root,s);y=[];for(q=0;q<l.contents.length;q++){A=l.contents[q];if((A=A.getAscendant("li",true))&&!A.getCustomData("list_item_processed")){y.push(A);CKEDITOR.dom.element.setMarker(s,A,"list_item_processed",true)}}for(var A=l.root.getDocument(),E=void 0,C=void 0,q=0;q<y.length;q++){var F=y[q].getCustomData("listarray_index"),
E=z[F].parent;if(!E.is(this.type)){C=A.createElement(this.type);E.copyAttributes(C,{start:1,type:1});C.removeStyle("list-style-type");z[F].parent=C}}s=CKEDITOR.plugins.list.arrayToList(z,s,null,e.config.enterMode);z=void 0;y=s.listNode.getChildCount();for(q=0;q<y&&(z=s.listNode.getChild(q));q++)z.getName()==this.type&&j.push(z);s.listNode.replace(l.root);e.fire("contentDomInvalidated")}else{z=b;q=s;j=B;y=q.contents;e=q.root.getDocument();l=[];if(y.length==1&&y[0].equals(q.root)){s=e.createElement("div");
y[0].moveChildren&&y[0].moveChildren(s);y[0].append(s);y[0]=s}q=q.contents[0].getParent();for(A=0;A<y.length;A++)q=q.getCommonAncestor(y[A].getParent());E=z.config.useComputedState;z=s=void 0;E=E===void 0||E;for(A=0;A<y.length;A++)for(C=y[A];F=C.getParent();){if(F.equals(q)){l.push(C);!z&&C.getDirection()&&(z=1);C=C.getDirection(E);s!==null&&(s=s&&s!=C?null:C);break}C=F}if(!(l.length<1)){y=l[l.length-1].getNext();A=e.createElement(this.type);j.push(A);for(E=j=void 0;l.length;){j=l.shift();E=e.createElement("li");
if(j.is("pre")||o.test(j.getName())||j.getAttribute("contenteditable")=="false")j.appendTo(E);else{j.copyAttributes(E);if(s&&j.getDirection()){E.removeStyle("direction");E.removeAttribute("dir")}j.moveChildren(E);j.remove()}E.appendTo(A)}s&&z&&A.setAttribute("dir",s);y?A.insertBefore(y):A.appendTo(q)}}else this.state==CKEDITOR.TRISTATE_ON&&g[s.root.getName()]&&a.call(this,b,s,k)}for(A=0;A<B.length;A++)f(B[A]);CKEDITOR.dom.element.clearAllMarkers(k);d.selectBookmarks(c);b.focus()},refresh:function(a,
b){var c=b.contains(g,1),d=b.blockLimit||b.root;c&&d.contains(c)?this.setState(c.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(a){if(!a.blockless){a.addCommand("numberedlist",new e("numberedlist","ol"));a.addCommand("bulletedlist",new e("bulletedlist","ul"));if(a.ui.addButton){a.ui.addButton("NumberedList",{label:a.lang.list.numberedlist,command:"numberedlist",directional:true,toolbar:"list,10"});
a.ui.addButton("BulletedList",{label:a.lang.list.bulletedlist,command:"bulletedlist",directional:true,toolbar:"list,20"})}a.on("key",function(b){var c=b.data.domEvent.getKey(),e;if(a.mode=="wysiwyg"&&c in{8:1,46:1}){var f=a.getSelection().getRanges()[0],j=f&&f.startPath();if(f&&f.collapsed){var q=c==8,o=a.editable(),v=new CKEDITOR.dom.walker(f.clone());v.evaluator=function(a){return h(a)&&!l(a)};v.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};c=f.clone();if(q){var s;
if((s=j.contains(g))&&f.checkBoundaryOfElement(s,CKEDITOR.START)&&(s=s.getParent())&&s.is("li")&&(s=i(s))){e=s;s=s.getPrevious(h);c.moveToPosition(s&&l(s)?s:e,CKEDITOR.POSITION_BEFORE_START)}else{v.range.setStartAt(o,CKEDITOR.POSITION_AFTER_START);v.range.setEnd(f.startContainer,f.startOffset);if((s=v.previous())&&s.type==CKEDITOR.NODE_ELEMENT&&(s.getName()in g||s.is("li"))){if(!s.is("li")){v.range.selectNodeContents(s);v.reset();v.evaluator=d;s=v.previous()}e=s;c.moveToElementEditEnd(e);c.moveToPosition(c.endPath().block,
CKEDITOR.POSITION_BEFORE_END)}}if(e){k(a,c,f);b.cancel()}else if((c=j.contains(g))&&f.checkBoundaryOfElement(c,CKEDITOR.START)){e=c.getFirst(h);if(f.checkBoundaryOfElement(e,CKEDITOR.START)){s=c.getPrevious(h);if(i(e)){if(s){f.moveToElementEditEnd(s);f.select()}}else a.execCommand("outdent");b.cancel()}}}else if(e=j.contains("li")){v.range.setEndAt(o,CKEDITOR.POSITION_BEFORE_END);o=(j=e.getLast(h))&&d(j)?j:e;e=0;if((s=v.next())&&s.type==CKEDITOR.NODE_ELEMENT&&s.getName()in g&&s.equals(j)){e=1;s=v.next()}else f.checkBoundaryOfElement(o,
CKEDITOR.END)&&(e=2);if(e&&s){f=f.clone();f.moveToElementEditStart(s);if(e==2){c.moveToPosition(c.endPath().block,CKEDITOR.POSITION_BEFORE_END);f.endPath().block&&f.moveToPosition(f.endPath().block,CKEDITOR.POSITION_AFTER_START)}k(a,c,f);b.cancel()}}else{v.range.setEndAt(o,CKEDITOR.POSITION_BEFORE_END);if((s=v.next())&&s.type==CKEDITOR.NODE_ELEMENT&&s.is(g)){s=s.getFirst(h);if(j.block&&f.checkStartOfBlock()&&f.checkEndOfBlock()){j.block.remove();f.moveToElementEditStart(s);f.select()}else if(i(s)){f.moveToElementEditStart(s);
f.select()}else{f=f.clone();f.moveToElementEditStart(s);k(a,c,f)}b.cancel()}}setTimeout(function(){a.selectionChange(1)})}}})}}})}(),function(){CKEDITOR.plugins.liststyle={requires:"dialog,contextmenu",init:function(a){if(!a.blockless){var e;e=new CKEDITOR.dialogCommand("numberedListStyle",{requiredContent:"ol",allowedContent:"ol{list-style-type}[start]"});e=a.addCommand("numberedListStyle",e);a.addFeature(e);CKEDITOR.dialog.add("numberedListStyle",this.path+"dialogs/liststyle.js");e=new CKEDITOR.dialogCommand("bulletedListStyle",
{requiredContent:"ul",allowedContent:"ul{list-style-type}"});e=a.addCommand("bulletedListStyle",e);a.addFeature(e);CKEDITOR.dialog.add("bulletedListStyle",this.path+"dialogs/liststyle.js");a.addMenuGroup("list",108);a.addMenuItems({numberedlist:{label:a.lang.liststyle.numberedTitle,group:"list",command:"numberedListStyle"},bulletedlist:{label:a.lang.liststyle.bulletedTitle,group:"list",command:"bulletedListStyle"}});a.contextMenu.addListener(function(a){if(!a||a.isReadOnly())return null;for(;a;){var e=
a.getName();if(e=="ol")return{numberedlist:CKEDITOR.TRISTATE_OFF};if(e=="ul")return{bulletedlist:CKEDITOR.TRISTATE_OFF};a=a.getParent()}return null})}}};CKEDITOR.plugins.add("liststyle",CKEDITOR.plugins.liststyle)}(),"use strict",function(){function a(a,b,c){return h(b)&&h(c)&&c.equals(b.getNext(function(a){return!(V(a)||W(a)||l(a))}))}function e(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}function b(a){var b=a.element;if(b&&h(b))if((b=b.getAscendant(a.triggers,true))&&a.editable.contains(b)){var c=
k(b);if(c.getAttribute("contenteditable")=="true")return b;if(c.is(a.triggers))return c}return null}function f(a,b,c){w(a,b);w(a,c);a=b.size.bottom;c=c.size.top;return a&&c?0|(a+c)/2:a||c}function d(a,b,d){return b=b[d?"getPrevious":"getNext"](function(b){return b&&b.type==CKEDITOR.NODE_TEXT&&!V(b)||h(b)&&!l(b)&&!c(a,b)})}function k(a,b){if(a.data("cke-editable"))return null;for(b||(a=a.getParent());a;){if(a.data("cke-editable"))break;if(a.hasAttribute("contenteditable"))return a;a=a.getParent()}return null}
function i(a){var b=a.doc,c=y('<span contenteditable="false" style="'+G+"position:absolute;border-top:1px dashed "+a.boxColor+'"></span>',b),d=CKEDITOR.getUrl(this.path+"images/"+(B.hidpi?"hidpi/":"")+"icon"+(a.rtl?"-rtl":"")+".png");s(c,{attach:function(){this.wrap.getParent()||this.wrap.appendTo(a.editable,true);return this},lineChildren:[s(y('<span title="'+a.editor.lang.magicline.title+'" contenteditable="false">&#8629;</span>',b),{base:G+"height:17px;width:17px;"+(a.rtl?"left":"right")+":17px;background:url("+
d+") center no-repeat "+a.boxColor+";cursor:pointer;"+(B.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(B.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;"]}),s(y(Q,b),{base:P+"left:0px;border-left-color:"+a.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"]}),s(y(Q,b),
{base:P+"right:0px;border-right-color:"+a.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(){w(a,this);var b=a.holdDistance,c=this.size;return c&&a.mouse.y>c.top-b&&a.mouse.y<c.bottom+b&&a.mouse.x>c.left-b&&a.mouse.x<c.right+b?true:false},place:function(){var b=a.view,c=a.editable,d=a.trigger,e=d.upper,f=d.lower,g=e||f,h=g.getParent(),
i={};this.trigger=d;e&&w(a,e,true);f&&w(a,f,true);w(a,h,true);a.inInlineMode&&t(a,true);if(h.equals(c)){i.left=b.scroll.x;i.right=-b.scroll.x;i.width=""}else{i.left=g.size.left-g.size.margin.left+b.scroll.x-(a.inInlineMode?b.editable.left+b.editable.border.left:0);i.width=g.size.outerWidth+g.size.margin.left+g.size.margin.right+b.scroll.x;i.right=""}if(e&&f)i.top=e.size.margin.bottom===f.size.margin.top?0|e.size.bottom+e.size.margin.bottom/2:e.size.margin.bottom<f.size.margin.top?e.size.bottom+e.size.margin.bottom:
e.size.bottom+e.size.margin.bottom-f.size.margin.top;else if(e){if(!f)i.top=e.size.bottom+e.size.margin.bottom}else i.top=f.size.top-f.size.margin.top;if(d.is(S)||i.top>b.scroll.y-15&&i.top<b.scroll.y+5){i.top=a.inInlineMode?0:b.scroll.y;this.look(S)}else if(d.is(J)||i.top>b.pane.bottom-5&&i.top<b.pane.bottom+15){i.top=a.inInlineMode?b.editable.height+b.editable.padding.top+b.editable.padding.bottom:b.pane.bottom-1;this.look(J)}else{if(a.inInlineMode)i.top=i.top-(b.editable.top+b.editable.border.top);
this.look(U)}if(a.inInlineMode){i.top--;i.top=i.top+b.editable.scroll.top;i.left=i.left+b.editable.scroll.left}for(var j in i)i[j]=CKEDITOR.tools.cssLength(i[j]);this.setStyles(i)},look:function(a){if(this.oldLook!=a){for(var b=this.lineChildren.length,c;b--;)(c=this.lineChildren[b]).setAttribute("style",c.base+c.looks[0|a/2]);this.oldLook=a}},wrap:new z("span",a.doc)});for(b=c.lineChildren.length;b--;)c.lineChildren[b].appendTo(c);c.look(U);c.appendTo(c.wrap);c.unselectable();c.lineChildren[0].on("mouseup",
function(b){c.detach();g(a,function(b){var c=a.line.trigger;b[c.is(F)?"insertBefore":"insertAfter"](c.is(F)?c.lower:c.upper)},true);a.editor.focus();!B.ie&&a.enterMode!=CKEDITOR.ENTER_BR&&a.hotNode.scrollIntoView();b.data.preventDefault(true)});c.on("mousedown",function(a){a.data.preventDefault(true)});a.line=c}function g(a,b,c){var d=new CKEDITOR.dom.range(a.doc),e=a.editor,f;if(B.ie&&a.enterMode==CKEDITOR.ENTER_BR)f=a.doc.createText(R);else{f=(f=k(a.element,true))&&f.data("cke-enter-mode")||a.enterMode;
f=new z(C[f],a.doc);f.is("br")||a.doc.createText(R).appendTo(f)}c&&e.fire("saveSnapshot");b(f);d.moveToPosition(f,CKEDITOR.POSITION_AFTER_START);e.getSelection().selectRanges([d]);a.hotNode=f;c&&e.fire("saveSnapshot")}function j(a,c){return{canUndo:true,modes:{wysiwyg:1},exec:function(){function e(b){var d=B.ie&&B.version<9?" ":R,f=a.hotNode&&a.hotNode.getText()==d&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!c;g(a,function(d){f&&a.hotNode&&a.hotNode.remove();d[c?"insertAfter":"insertBefore"](b);
d.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!c});a.lastCmdDirection=!!c});!B.ie&&a.enterMode!=CKEDITOR.ENTER_BR&&a.hotNode.scrollIntoView();a.line.detach()}return function(f){var f=f.getSelection().getStartElement(),g,f=f.getAscendant(O,1);if(!m(a,f)&&f&&!f.equals(a.editable)&&!f.contains(a.editable)){if((g=k(f))&&g.getAttribute("contenteditable")=="false")f=g;a.element=f;g=d(a,f,!c);var i;if(h(g)&&g.is(a.triggers)&&g.is(N)&&(!d(a,g,!c)||(i=d(a,g,!c))&&h(i)&&i.is(a.triggers)))e(g);
else{i=b(a,f);if(h(i))if(d(a,i,!c))(f=d(a,i,!c))&&(h(f)&&f.is(a.triggers))&&e(i);else e(i)}}}}()}}function c(a,b){if(!b||!(b.type==CKEDITOR.NODE_ELEMENT&&b.$))return false;var c=a.line;return c.wrap.equals(b)||c.wrap.contains(b)}function h(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.$}function l(a){if(!h(a))return false;var b;if(!(b=o(a)))if(h(a)){b={left:1,right:1,center:1};b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])}else b=false;return b}function o(a){return!!{absolute:1,
fixed:1}[a.getComputedStyle("position")]}function q(a,b){return h(b)?b.is(a.triggers):null}function m(a,b){if(!b)return false;for(var c=b.getParents(1),d=c.length;d--;)for(var e=a.tabuList.length;e--;)if(c[d].hasAttribute(a.tabuList[e]))return true;return false}function n(a,b,c){b=b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&&!b.is(Y)});if(!b)return false;w(a,b);return c?b.size.top>a.mouse.y:b.size.bottom<a.mouse.y}function p(a){var b=a.editable,d=a.mouse,f=a.view,g=a.triggerOffset;
t(a);var i=d.y>(a.inInlineMode?f.editable.top+f.editable.height/2:Math.min(f.editable.height,f.pane.height)/2),b=b[i?"getLast":"getFirst"](function(a){return!(V(a)||W(a))});if(!b)return null;c(a,b)&&(b=a.line.wrap[i?"getPrevious":"getNext"](function(a){return!(V(a)||W(a))}));if(!h(b)||l(b)||!q(a,b))return null;w(a,b);if(!i&&b.size.top>=0&&d.y>0&&d.y<b.size.top+g){a=a.inInlineMode||f.scroll.y===0?S:U;return new e([null,b,F,L,a])}if(i&&b.size.bottom<=f.pane.height&&d.y>b.size.bottom-g&&d.y<f.pane.height){a=
a.inInlineMode||b.size.bottom>f.pane.height-g&&b.size.bottom<f.pane.height?J:U;return new e([b,null,D,L,a])}return null}function r(a){var c=a.mouse,f=a.view,g=a.triggerOffset,i=b(a);if(!i)return null;w(a,i);var g=Math.min(g,0|i.size.outerHeight/2),j=[],k,m;if(c.y>i.size.top-1&&c.y<i.size.top+g)m=false;else if(c.y>i.size.bottom-g&&c.y<i.size.bottom+1)m=true;else return null;if(l(i)||n(a,i,m)||i.getParent().is(M))return null;var r=d(a,i,!m);if(r){if(r&&r.type==CKEDITOR.NODE_TEXT)return null;if(h(r)){if(l(r)||
!q(a,r)||r.getParent().is(M))return null;j=[r,i][m?"reverse":"concat"]().concat([H,L])}}else{if(i.equals(a.editable[m?"getLast":"getFirst"](a.isRelevant))){t(a);m&&c.y>i.size.bottom-g&&c.y<f.pane.height&&i.size.bottom>f.pane.height-g&&i.size.bottom<f.pane.height?k=J:c.y>0&&c.y<i.size.top+g&&(k=S)}else k=U;j=[null,i][m?"reverse":"concat"]().concat([m?D:F,L,k,i.equals(a.editable[m?"getLast":"getFirst"](a.isRelevant))?m?J:S:U])}return 0 in j?new e(j):null}function u(a,b,c,d){for(var e=b.getDocumentPosition(),
f={},g={},h={},i={},j=T.length;j--;){f[T[j]]=parseInt(b.getComputedStyle.call(b,"border-"+T[j]+"-width"),10)||0;h[T[j]]=parseInt(b.getComputedStyle.call(b,"padding-"+T[j]),10)||0;g[T[j]]=parseInt(b.getComputedStyle.call(b,"margin-"+T[j]),10)||0}(!c||d)&&x(a,d);i.top=e.y-(c?0:a.view.scroll.y);i.left=e.x-(c?0:a.view.scroll.x);i.outerWidth=b.$.offsetWidth;i.outerHeight=b.$.offsetHeight;i.height=i.outerHeight-(h.top+h.bottom+f.top+f.bottom);i.width=i.outerWidth-(h.left+h.right+f.left+f.right);i.bottom=
i.top+i.outerHeight;i.right=i.left+i.outerWidth;if(a.inInlineMode)i.scroll={top:b.$.scrollTop,left:b.$.scrollLeft};return s({border:f,padding:h,margin:g,ignoreScroll:c},i,true)}function w(a,b,c){if(!h(b))return b.size=null;if(b.size){if(b.size.ignoreScroll==c&&b.size.date>new Date-I)return null}else b.size={};return s(b.size,u(a,b,c),{date:+new Date},true)}function t(a,b){a.view.editable=u(a,a.editable,b,true)}function x(a,b){if(!a.view)a.view={};var c=a.view;if(b||!(c&&c.date>new Date-I)){var d=
a.win,c=d.getScrollPosition(),d=d.getViewPaneSize();s(a.view,{scroll:{x:c.x,y:c.y,width:a.doc.$.documentElement.scrollWidth-d.width,height:a.doc.$.documentElement.scrollHeight-d.height},pane:{width:d.width,height:d.height,bottom:d.height+c.y},date:+new Date},true)}}function v(a,b,c,d){for(var f=d,g=d,h=0,i=false,j=false,k=a.view.pane.height,m=a.mouse;m.y+h<k&&m.y-h>0;){i||(i=b(f,d));j||(j=b(g,d));!i&&m.y-h>0&&(f=c(a,{x:m.x,y:m.y-h}));!j&&m.y+h<k&&(g=c(a,{x:m.x,y:m.y+h}));if(i&&j)break;h=h+2}return new e([f,
g,null,null])}CKEDITOR.plugins.add("magicline",{init:function(a){var f=a.config,k=f.magicline_triggerOffset||30,n={editor:a,enterMode:f.enterMode,triggerOffset:k,holdDistance:0|k*(f.magicline_holdDistance||0.5),boxColor:f.magicline_color||"#ff0000",rtl:f.contentsLangDirection=="rtl",tabuList:["data-cke-hidden-sel"].concat(f.magicline_tabuList||[]),triggers:f.magicline_everywhere?O:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},q,w,v;n.isRelevant=function(a){return h(a)&&!c(n,a)&&!l(a)};
a.on("contentDom",function(){var h=a.editable(),k=a.document,l=a.window;s(n,{editable:h,inInlineMode:h.isInline(),doc:k,win:l,hotNode:null},true);n.boundary=n.inInlineMode?n.editable:n.doc.getDocumentElement();if(!h.is(E.$inline)){n.inInlineMode&&!o(h)&&h.setStyles({position:"relative",top:null,left:null});i.call(this,n);x(n);h.attachListener(a,"beforeUndoImage",function(){n.line.detach()});h.attachListener(a,"beforeGetData",function(){if(n.line.wrap.getParent()){n.line.detach();a.once("getData",
function(){n.line.attach()},null,null,1E3)}},null,null,0);h.attachListener(n.inInlineMode?k:k.getWindow().getFrame(),"mouseout",function(b){if(a.mode=="wysiwyg")if(n.inInlineMode){var c=b.data.$.clientX,b=b.data.$.clientY;x(n);t(n,true);var d=n.view.editable,e=n.view.scroll;if(!(c>d.left-e.x&&c<d.right-e.x)||!(b>d.top-e.y&&b<d.bottom-e.y)){clearTimeout(v);v=null;n.line.detach()}}else{clearTimeout(v);v=null;n.line.detach()}});h.attachListener(h,"keyup",function(){n.hiddenMode=0});h.attachListener(h,
"keydown",function(b){if(a.mode=="wysiwyg")switch(b.data.getKeystroke()){case 2228240:case 16:n.hiddenMode=1;n.line.detach()}});h.attachListener(n.inInlineMode?h:k,"mousemove",function(b){w=true;if(!(a.mode!="wysiwyg"||a.readOnly||v)){var c={x:b.data.$.clientX,y:b.data.$.clientY};v=setTimeout(function(){n.mouse=c;v=n.trigger=null;x(n);if(w&&!n.hiddenMode&&a.focusManager.hasFocus&&!n.line.mouseNear()&&(n.element=ca(n,true))){if((n.trigger=p(n)||r(n)||$(n))&&!m(n,n.trigger.upper||n.trigger.lower))n.line.attach().place();
else{n.trigger=null;n.line.detach()}w=false}},30)}});h.attachListener(l,"scroll",function(){if(a.mode=="wysiwyg"){n.line.detach();if(B.webkit){n.hiddenMode=1;clearTimeout(q);q=setTimeout(function(){if(!n.mouseDown)n.hiddenMode=0},50)}}});h.attachListener(A?k:l,"mousedown",function(){if(a.mode=="wysiwyg"){n.line.detach();n.hiddenMode=1;n.mouseDown=1}});h.attachListener(A?k:l,"mouseup",function(){n.hiddenMode=0;n.mouseDown=0});a.addCommand("accessPreviousSpace",j(n));a.addCommand("accessNextSpace",
j(n,true));a.setKeystroke([[f.magicline_keystrokePrevious,"accessPreviousSpace"],[f.magicline_keystrokeNext,"accessNextSpace"]]);a.on("loadSnapshot",function(){var b,c,d,e;for(e in{p:1,br:1,div:1}){b=a.document.getElementsByTag(e);for(d=b.count();d--;)if((c=b.getItem(d)).data("cke-magicline-hot")){n.hotNode=c;n.lastCmdDirection=c.data("cke-magicline-dir")==="true"?true:false;return}}});this.backdoor={accessFocusSpace:g,boxTrigger:e,isLine:c,getAscendantTrigger:b,getNonEmptyNeighbour:d,getSize:u,that:n,
triggerEdge:r,triggerEditable:p,triggerExpand:$}}},this)}});var s=CKEDITOR.tools.extend,z=CKEDITOR.dom.element,y=z.createFromHtml,B=CKEDITOR.env,A=CKEDITOR.env.ie&&CKEDITOR.env.version<9,E=CKEDITOR.dtd,C={},F=128,D=64,H=32,L=16,K=8,S=4,J=2,U=1,R=" ",M=E.$listItem,Y=E.$tableContent,N=s({},E.$nonEditable,E.$empty),O=E.$block,I=100,G="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",P=G+"border-color:transparent;display:block;border-style:solid;",
Q="<span>"+R+"</span>";C[CKEDITOR.ENTER_BR]="br";C[CKEDITOR.ENTER_P]="p";C[CKEDITOR.ENTER_DIV]="div";e.prototype={set:function(a,b,c){this.properties=a+b+(c||U);return this},is:function(a){return(this.properties&a)==a}};var ca=function(){function a(b,c){var d=b.$.elementFromPoint(c.x,c.y);return d&&d.nodeType?new CKEDITOR.dom.element(d):null}return function(b,d,e){if(!b.mouse)return null;var f=b.doc,g=b.line.wrap,e=e||b.mouse,h=a(f,e);if(d&&c(b,h)){g.hide();h=a(f,e);g.show()}return!h||!(h.type==CKEDITOR.NODE_ELEMENT&&
h.$)||B.ie&&B.version<9&&!b.boundary.equals(h)&&!b.boundary.contains(h)?null:h}}(),V=CKEDITOR.dom.walker.whitespaces(),W=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),$=function(){function b(c){var e=c.element,g,i,j;if(!h(e)||e.contains(c.editable)||e.isReadOnly())return null;j=v(c,function(a,b){return!b.equals(a)},function(a,b){return ca(a,true,b)},e);g=j.upper;i=j.lower;if(a(c,g,i))return j.set(H,K);if(g&&e.contains(g))for(;!g.getParent().equals(e);)g=g.getParent();else g=e.getFirst(function(a){return d(c,
a)});if(i&&e.contains(i))for(;!i.getParent().equals(e);)i=i.getParent();else i=e.getLast(function(a){return d(c,a)});if(!g||!i)return null;w(c,g);w(c,i);if(!(c.mouse.y>g.size.top&&c.mouse.y<i.size.bottom))return null;for(var e=Number.MAX_VALUE,k,m,n,l;i&&!i.equals(g);){if(!(m=g.getNext(c.isRelevant)))break;k=Math.abs(f(c,g,m)-c.mouse.y);if(k<e){e=k;n=g;l=m}g=m;w(c,g)}if(!n||!l||!(c.mouse.y>n.size.top&&c.mouse.y<l.size.bottom))return null;j.upper=n;j.lower=l;return j.set(H,K)}function d(a,b){return!(b&&
b.type==CKEDITOR.NODE_TEXT||W(b)||l(b)||c(a,b)||b.type==CKEDITOR.NODE_ELEMENT&&b.$&&b.is("br"))}return function(c){var d=b(c),e;if(e=d){e=d.upper;var f=d.lower;e=!e||!f||l(f)||l(e)||f.equals(e)||e.equals(f)||f.contains(e)||e.contains(f)?false:q(c,e)&&q(c,f)&&a(c,e,f)?true:false}return e?d:null}}(),T=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function a(a){if(!a||
a.type!=CKEDITOR.NODE_ELEMENT||a.getName()!="form")return[];for(var b=[],d=["style","className"],e=0;e<d.length;e++){var c=a.$.elements.namedItem(d[e]);if(c){c=new CKEDITOR.dom.element(c);b.push([c,c.nextSibling]);c.remove()}}return b}function e(a,b){if(a&&!(a.type!=CKEDITOR.NODE_ELEMENT||a.getName()!="form")&&b.length>0)for(var d=b.length-1;d>=0;d--){var e=b[d][0],c=b[d][1];c?e.insertBefore(c):e.appendTo(a)}}function b(b,d){var f=a(b),j={},c=b.$;if(!d){j["class"]=c.className||"";c.className=""}j.inline=
c.style.cssText||"";if(!d)c.style.cssText="position: static; overflow: visible";e(f);return j}function f(b,d){var f=a(b),j=b.$;if("class"in d)j.className=d["class"];if("inline"in d)j.style.cssText=d.inline;e(f)}function d(a){if(!a.editable().isInline()){var b=CKEDITOR.instances,d;for(d in b){var e=b[d];if(e.mode=="wysiwyg"&&!e.readOnly){e=e.document.getBody();e.setAttribute("contentEditable",false);e.setAttribute("contentEditable",true)}}if(a.editable().hasFocus){a.toolbox.focus();a.focus()}}}CKEDITOR.plugins.add("maximize",
{init:function(a){function e(){var b=c.getViewPaneSize();a.resize(b.width,b.height,null,true)}if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var g=a.lang,j=CKEDITOR.document,c=j.getWindow(),h,l,o,q=CKEDITOR.TRISTATE_OFF;a.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:false,exec:function(){var m=a.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}),n=a.ui.space("contents");if(a.mode=="wysiwyg"){var p=
a.getSelection();h=p&&p.getRanges();l=c.getScrollPosition()}else{var r=a.editable().$;h=!CKEDITOR.env.ie&&[r.selectionStart,r.selectionEnd];l=[r.scrollLeft,r.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){c.on("resize",e);o=c.getScrollPosition();for(p=a.container;p=p.getParent();){p.setCustomData("maximize_saved_styles",b(p));p.setStyle("z-index",a.config.baseFloatZIndex-5)}n.setCustomData("maximize_saved_styles",b(n,true));m.setCustomData("maximize_saved_styles",b(m,true));n={overflow:CKEDITOR.env.webkit?
"":"hidden",width:0,height:0};j.getDocumentElement().setStyles(n);!CKEDITOR.env.gecko&&j.getDocumentElement().setStyle("position","fixed");(!CKEDITOR.env.gecko||!CKEDITOR.env.quirks)&&j.getBody().setStyles(n);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":a.config.baseFloatZIndex-5,left:"0px",top:"0px"});m.addClass("cke_maximized");e();n=m.getDocumentPosition();
m.setStyles({left:-1*n.x+"px",top:-1*n.y+"px"});CKEDITOR.env.gecko&&d(a)}else if(this.state==CKEDITOR.TRISTATE_ON){c.removeListener("resize",e);for(var p=[n,m],u=0;u<p.length;u++){f(p[u],p[u].getCustomData("maximize_saved_styles"));p[u].removeCustomData("maximize_saved_styles")}for(p=a.container;p=p.getParent();){f(p,p.getCustomData("maximize_saved_styles"));p.removeCustomData("maximize_saved_styles")}CKEDITOR.env.ie?setTimeout(function(){c.$.scrollTo(o.x,o.y)},0):c.$.scrollTo(o.x,o.y);m.removeClass("cke_maximized");
if(CKEDITOR.env.webkit){m.setStyle("display","inline");setTimeout(function(){m.setStyle("display","block")},0)}a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:n.$.offsetHeight,outerWidth:a.container.$.offsetWidth})}this.toggleState();if(p=this.uiItems[0]){n=this.state==CKEDITOR.TRISTATE_OFF?g.maximize.maximize:g.maximize.minimize;p=CKEDITOR.document.getById(p._.id);p.getChild(1).setHtml(n);p.setAttribute("title",n);p.setAttribute("href",'javascript:void("'+n+'");')}if(a.mode==
"wysiwyg")if(h){CKEDITOR.env.gecko&&d(a);a.getSelection().selectRanges(h);(r=a.getSelection().getStartElement())&&r.scrollIntoView(true)}else c.$.scrollTo(l.x,l.y);else{if(h){r.selectionStart=h[0];r.selectionEnd=h[1]}r.scrollLeft=l[0];r.scrollTop=l[1]}h=l=null;q=this.state;a.fire("maximize",this.state)},canUndo:false});a.ui.addButton&&a.ui.addButton("Maximize",{label:g.maximize.maximize,command:"maximize",toolbar:"tools,10"});a.on("mode",function(){var b=a.getCommand("maximize");b.setState(b.state==
CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:q)},null,null,100)}}})}(),CKEDITOR.plugins.add("newpage",{init:function(a){a.addCommand("newpage",{modes:{wysiwyg:1,source:1},exec:function(a){var b=this;a.setData(a.config.newpage_html||"",function(){a.focus();setTimeout(function(){a.fire("afterCommandExec",{name:"newpage",command:b});a.selectionChange()},200)})},async:true});a.ui.addButton&&a.ui.addButton("NewPage",{label:a.lang.newpage.toolbar,command:"newpage",toolbar:"document,20"})}}),"use strict",
function(){function a(a){return{"aria-label":a,"class":"cke_pagebreak",contenteditable:"false","data-cke-display-name":"pagebreak","data-cke-pagebreak":1,style:"page-break-after: always",title:a}}CKEDITOR.plugins.add("pagebreak",{requires:"fakeobjects",onLoad:function(){var a=("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{"+a+"}")},init:function(a){if(!a.blockless){a.addCommand("pagebreak",CKEDITOR.plugins.pagebreakCmd);a.ui.addButton&&a.ui.addButton("PageBreak",{label:a.lang.pagebreak.toolbar,command:"pagebreak",toolbar:"insert,70"});CKEDITOR.env.webkit&&a.on("contentDom",function(){a.document.on("click",function(b){b=b.data.getTarget();b.is("div")&&b.hasClass("cke_pagebreak")&&a.getSelection().selectElement(b)})})}},afterInit:function(e){function b(b){CKEDITOR.tools.extend(b.attributes,
a(e.lang.pagebreak.alt),true);b.children.length=0}var f=e.dataProcessor,d=f&&f.dataFilter,f=f&&f.htmlFilter,k=/page-break-after\s*:\s*always/i,i=/display\s*:\s*none/i;f&&f.addRules({attributes:{"class":function(a,b){var c=a.replace("cke_pagebreak","");if(c!=a){var d=CKEDITOR.htmlParser.fragment.fromHtml('<span style="display: none;">&nbsp;</span>').children[0];b.children.length=0;b.add(d);d=b.attributes;delete d["aria-label"];delete d.contenteditable;delete d.title}return c}}},{applyToAll:true,priority:5});
d&&d.addRules({elements:{div:function(a){if(a.attributes["data-cke-pagebreak"])b(a);else if(k.test(a.attributes.style)){var d=a.children[0];d&&(d.name=="span"&&i.test(d.attributes.style))&&b(a)}}}})}});CKEDITOR.plugins.pagebreakCmd={exec:function(e){var b=e.document.createElement("div",{attributes:a(e.lang.pagebreak.alt)});e.insertElement(b)},context:"div",allowedContent:{div:{styles:"!page-break-after"},span:{match:function(a){return(a=a.parent)&&a.name=="div"&&a.styles&&a.styles["page-break-after"]},
styles:"display"}},requiredContent:"div{page-break-after}"}}(),function(){function a(a,e,d){var k=CKEDITOR.cleanWord;if(k)d();else{a=CKEDITOR.getUrl(a.config.pasteFromWordCleanupFile||e+"filter/default.js");CKEDITOR.scriptLoader.load(a,d,null,true)}return!k}function e(a){a.data.type="html"}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(b){var f=0,d=this.path;b.addCommand("pastefromword",{canUndo:false,async:true,exec:function(a){var b=this;f=1;a.once("beforePaste",e);a.getClipboardData({title:a.lang.pastefromword.title},
function(d){d&&a.fire("paste",{type:"html",dataValue:d.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()});a.fire("afterCommandExec",{name:"pastefromword",command:b,returnValue:!!d})})}});b.ui.addButton&&b.ui.addButton("PasteFromWord",{label:b.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});b.on("pasteState",function(a){b.getCommand("pastefromword").setState(a.data)});b.on("paste",function(e){var i=e.data,g=i.dataValue;if(g&&(f||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(g))){i.dontFilter=
true;var j=a(b,d,function(){if(j)b.fire("paste",i);else if(!b.config.pasteFromWordPromptCleanup||f||confirm(b.lang.pastefromword.confirmCleanup))i.dataValue=CKEDITOR.cleanWord(g,b);f=0});j&&e.cancel()}},null,null,3)}})}(),function(){var a={canUndo:false,async:true,exec:function(e){e.getClipboardData({title:e.lang.pastetext.title},function(b){b&&e.fire("paste",{type:"text",dataValue:b.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()});e.fire("afterCommandExec",
{name:"pastetext",command:a,returnValue:!!b})})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(e){e.addCommand("pastetext",a);e.ui.addButton&&e.ui.addButton("PasteText",{label:e.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(e.config.forcePasteAsPlainText)e.on("beforePaste",function(a){if(a.data.type!="html")a.data.type="text"});e.on("pasteState",function(a){e.getCommand("pastetext").setState(a.data)})}})}(),function(){var a,e={modes:{wysiwyg:1,source:1},
canUndo:false,readOnly:1,exec:function(b){var e,d=b.config,k=d.baseHref?'<base href="'+d.baseHref+'"/>':"";if(d.fullPage)e=b.getData().replace(/<head>/,"$&"+k).replace(/[^>]*(?=<\/title>)/,"$& &mdash; "+b.lang.preview.preview);else{var d="<body ",i=b.document&&b.document.getBody();if(i){i.getAttribute("id")&&(d=d+('id="'+i.getAttribute("id")+'" '));i.getAttribute("class")&&(d=d+('class="'+i.getAttribute("class")+'" '))}e=b.config.docType+'<html dir="'+b.config.contentsLangDirection+'"><head>'+k+"<title>"+
b.lang.preview.preview+"</title>"+CKEDITOR.tools.buildStyleHtml(b.config.contentsCss)+"</head>"+(d+">")+b.getData()+"</body></html>"}k=640;d=420;i=80;try{var g=window.screen,k=Math.round(g.width*0.8),d=Math.round(g.height*0.7),i=Math.round(g.width*0.1)}catch(j){}if(b.fire("contentPreview",b={dataValue:e})===false)return false;var g="",c;if(CKEDITOR.env.ie){window._cke_htmlToLoad=b.dataValue;c="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;})() )";g=""}if(CKEDITOR.env.gecko){window._cke_htmlToLoad=b.dataValue;g=CKEDITOR.getUrl(a+"preview.html")}g=window.open(g,null,"toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+k+",height="+d+",left="+i);if(CKEDITOR.env.ie&&g)g.location=c;if(!CKEDITOR.env.ie&&!CKEDITOR.env.gecko){c=g.document;c.open();c.write(b.dataValue);
c.close()}return true}};CKEDITOR.plugins.add("preview",{init:function(b){if(b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){a=this.path;b.addCommand("preview",e);b.ui.addButton&&b.ui.addButton("Preview",{label:b.lang.preview.preview,command:"preview",toolbar:"document,40"})}}})}(),CKEDITOR.plugins.add("print",{init:function(a){if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){a.addCommand("print",CKEDITOR.plugins.print);a.ui.addButton&&a.ui.addButton("Print",{label:a.lang.print.toolbar,command:"print",
toolbar:"document,50"})}}}),CKEDITOR.plugins.print={exec:function(a){CKEDITOR.env.gecko?a.window.$.print():a.document.$.execCommand("Print")},canUndo:!1,readOnly:1,modes:{wysiwyg:1}},CKEDITOR.plugins.add("removeformat",{init:function(a){a.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);a.ui.addButton&&a.ui.addButton("RemoveFormat",{label:a.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(a){for(var e=
a._.removeFormatRegex||(a._.removeFormatRegex=RegExp("^(?:"+a.config.removeFormatTags.replace(/,/g,"|")+")$","i")),b=a._.removeAttributes||(a._.removeAttributes=a.config.removeFormatAttributes.split(",")),f=CKEDITOR.plugins.removeformat.filter,d=a.getSelection().getRanges(),k=d.createIterator(),i=function(a){return a.type==CKEDITOR.NODE_ELEMENT},g;g=k.getNextRange();){g.collapsed||g.enlarge(CKEDITOR.ENLARGE_ELEMENT);var j=g.createBookmark(),c=j.startNode,h=j.endNode,l=function(b){for(var c=a.elementPath(b),
d=c.elements,g=1,h;h=d[g];g++){if(h.equals(c.block)||h.equals(c.blockLimit))break;e.test(h.getName())&&f(a,h)&&b.breakParent(h)}};l(c);if(h){l(h);for(c=c.getNextSourceNode(true,CKEDITOR.NODE_ELEMENT);c;){if(c.equals(h))break;if(c.isReadOnly()){if(c.getPosition(h)&CKEDITOR.POSITION_CONTAINS)break;c=c.getNext(i)}else{l=c.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT);if(!(c.getName()=="img"&&c.data("cke-realelement"))&&f(a,c))if(e.test(c.getName()))c.remove(1);else{c.removeAttributes(b);a.fire("removeFormatCleanup",
c)}c=l}}}g.moveToBookmark(j)}a.forceNextSelectionCheck();a.getSelection().selectRanges(d)}}},filter:function(a,e){for(var b=a._.removeFormatFilters||[],f=0;f<b.length;f++)if(b[f](e)===false)return false;return true}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(a){if(!this._.removeFormatFilters)this._.removeFormatFilters=[];this._.removeFormatFilters.push(a)},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",CKEDITOR.plugins.add("resize",{init:function(a){var e,b,f,d;function k(h){var i=e,j=b,k=i+(h.data.$.screenX-f)*(c=="rtl"?-1:1),h=j+(h.data.$.screenY-d);l&&(i=Math.max(g.resize_minWidth,Math.min(k,g.resize_maxWidth)));o&&(j=Math.max(g.resize_minHeight,Math.min(h,g.resize_maxHeight)));a.resize(l?i:null,j)}function i(){CKEDITOR.document.removeListener("mousemove",k);CKEDITOR.document.removeListener("mouseup",i);
if(a.document){a.document.removeListener("mousemove",k);a.document.removeListener("mouseup",i)}}var g=a.config,j=a.ui.spaceId("resizer"),c=a.element?a.element.getDirection(1):"ltr";!g.resize_dir&&(g.resize_dir="vertical");g.resize_maxWidth===void 0&&(g.resize_maxWidth=3E3);g.resize_maxHeight===void 0&&(g.resize_maxHeight=3E3);g.resize_minWidth===void 0&&(g.resize_minWidth=750);g.resize_minHeight===void 0&&(g.resize_minHeight=250);if(g.resize_enabled!==false){var h=null,l=(g.resize_dir=="both"||g.resize_dir==
"horizontal")&&g.resize_minWidth!=g.resize_maxWidth,o=(g.resize_dir=="both"||g.resize_dir=="vertical")&&g.resize_minHeight!=g.resize_maxHeight,q=CKEDITOR.tools.addFunction(function(c){h||(h=a.getResizable());e=h.$.offsetWidth||0;b=h.$.offsetHeight||0;f=c.screenX;d=c.screenY;g.resize_minWidth>e&&(g.resize_minWidth=e);g.resize_minHeight>b&&(g.resize_minHeight=b);CKEDITOR.document.on("mousemove",k);CKEDITOR.document.on("mouseup",i);if(a.document){a.document.on("mousemove",k);a.document.on("mouseup",
i)}c.preventDefault&&c.preventDefault()});a.on("destroy",function(){CKEDITOR.tools.removeFunction(q)});a.on("uiSpace",function(b){if(b.data.space=="bottom"){var d="";l&&!o&&(d=" cke_resizer_horizontal");!l&&o&&(d=" cke_resizer_vertical");var e='<span id="'+j+'" class="cke_resizer'+d+" cke_resizer_"+c+'" title="'+CKEDITOR.tools.htmlEncode(a.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+q+', event)">'+(c=="ltr"?"◢":"◣")+"</span>";c=="ltr"&&d=="ltr"?b.data.html=b.data.html+e:b.data.html=
e+b.data.html}},a,null,100);a.on("maximize",function(b){a.ui.space("resizer")[b.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),function(){var a={readOnly:1,exec:function(a){if(a.fire("save"))if(a=a.element.$.form)try{a.submit()}catch(b){a.submit.click&&a.submit.click()}}};CKEDITOR.plugins.add("save",{init:function(e){if(e.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE){e.addCommand("save",a).modes={wysiwyg:!!e.element.$.form};e.ui.addButton&&e.ui.addButton("Save",{label:e.lang.save.toolbar,command:"save",
toolbar:"document,10"})}}})}(),function(){CKEDITOR.plugins.add("selectall",{init:function(a){a.addCommand("selectAll",{modes:{wysiwyg:1,source:1},exec:function(a){var b=a.editable();if(b.is("textarea")){a=b.$;if(CKEDITOR.env.ie)a.createTextRange().execCommand("SelectAll");else{a.selectionStart=0;a.selectionEnd=a.value.length}a.focus()}else{if(b.is("body"))a.document.$.execCommand("SelectAll",false,null);else{var f=a.createRange();f.selectNodeContents(b);f.select()}a.forceNextSelectionCheck();a.selectionChange()}},
canUndo:false});a.ui.addButton&&a.ui.addButton("SelectAll",{label:a.lang.selectall.toolbar,command:"selectAll",toolbar:"selection,10"})}})}(),function(){var a={readOnly:1,preserveState:true,editorFocus:false,exec:function(a){this.toggleState();this.refresh(a)},refresh:function(a){if(a.document){var b=this.state==CKEDITOR.TRISTATE_ON&&(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE||a.focusManager.hasFocus)?"attachClass":"removeClass";a.editable()[b]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",
{onLoad:function(){var a=["p","div","pre","address","blockquote","h1","h2","h3","h4","h5","h6"],b,f,d,k,i=CKEDITOR.getUrl(this.path),g=!(CKEDITOR.env.ie&&CKEDITOR.env.version<9),j=g?":not([contenteditable=false]):not(.cke_show_blocks_off)":"",c,h;for(b=f=d=k="";c=a.pop();){h=a.length?",":"";b=b+(".cke_show_blocks "+c+j+h);d=d+(".cke_show_blocks.cke_contents_ltr "+c+j+h);k=k+(".cke_show_blocks.cke_contents_rtl "+c+j+h);f=f+(".cke_show_blocks "+c+j+"{background-image:url("+CKEDITOR.getUrl(i+"images/block_"+
c+".png")+")}")}CKEDITOR.addCss((b+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(f,d+"{background-position:top left;padding-left:8px}",k+"{background-position:top right;padding-right:8px}"));g||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(e){function b(){f.refresh(e)}if(!e.blockless){var f=e.addCommand("showblocks",a);f.canUndo=false;e.config.startupOutlineBlocks&&f.setState(CKEDITOR.TRISTATE_ON);e.ui.addButton&&e.ui.addButton("ShowBlocks",{label:e.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"});e.on("mode",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&f.refresh(e)});if(e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE){e.on("focus",b);e.on("blur",b)}e.on("contentDom",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&
f.refresh(e)})}}})}(),function(){var a={preserveState:true,editorFocus:false,readOnly:1,exec:function(a){this.toggleState();this.refresh(a)},refresh:function(a){if(a.document){var b=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";a.editable()[b]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var a;a=(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","}"]).join("").replace(/%2/g,"cke_show_border").replace(/%1/g,"cke_show_borders ");CKEDITOR.addCss(a)},init:function(e){var b=e.addCommand("showborders",a);b.canUndo=false;e.config.startupShowBorders!==false&&b.setState(CKEDITOR.TRISTATE_ON);e.on("mode",function(){b.state!=
CKEDITOR.TRISTATE_DISABLED&&b.refresh(e)},null,null,100);e.on("contentDom",function(){b.state!=CKEDITOR.TRISTATE_DISABLED&&b.refresh(e)});e.on("removeFormatCleanup",function(a){a=a.data;e.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&(a.is("table")&&(!a.hasAttribute("border")||parseInt(a.getAttribute("border"),10)<=0))&&a.addClass("cke_show_border")})},afterInit:function(a){var b=a.dataProcessor,a=b&&b.dataFilter,b=b&&b.htmlFilter;a&&a.addRules({elements:{table:function(a){var a=a.attributes,
b=a["class"],e=parseInt(a.border,10);if((!e||e<=0)&&(!b||b.indexOf("cke_show_border")==-1))a["class"]=(b||"")+" cke_show_border"}}});b&&b.addRules({elements:{table:function(a){var a=a.attributes,b=a["class"];b&&(a["class"]=b.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,""))}}})}});CKEDITOR.on("dialogDefinition",function(a){var b=a.data.name;if(b=="table"||b=="tableProperties"){a=a.data.definition;b=a.getContents("info").get("txtBorder");b.commit=CKEDITOR.tools.override(b.commit,
function(a){return function(b,e){a.apply(this,arguments);var i=parseInt(this.getValue(),10);e[!i||i<=0?"addClass":"removeClass"]("cke_show_border")}});if(a=(a=a.getContents("advanced"))&&a.get("advCSSClasses")){a.setup=CKEDITOR.tools.override(a.setup,function(a){return function(){a.apply(this,arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}});a.commit=CKEDITOR.tools.override(a.commit,function(a){return function(b,e){a.apply(this,arguments);parseInt(e.getAttribute("border"),
10)||e.addClass("cke_show_border")}})}}})}(),CKEDITOR.plugins.add("smiley",{requires:"dialog",init:function(a){a.config.smiley_path=a.config.smiley_path||this.path+"images/";a.addCommand("smiley",new CKEDITOR.dialogCommand("smiley",{allowedContent:"img[alt,height,!src,title,width]",requiredContent:"img"}));a.ui.addButton&&a.ui.addButton("Smiley",{label:a.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(){CKEDITOR.plugins.add("sourcearea",{init:function(e){function b(){var a=d&&this.equals(CKEDITOR.document.getActive());this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+"px");this.show();a&&this.focus()}if(e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var f=CKEDITOR.plugins.sourcearea;e.addMode("source",function(d){var f=e.ui.space("contents").getDocument().createElement("textarea");f.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?
"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",e.config.sourceAreaTabSize||4)));f.setAttribute("dir","ltr");f.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");e.ui.space("contents").append(f);f=e.editable(new a(e,f));f.setData(e.getData(1));if(CKEDITOR.env.ie){f.attachListener(e,"resize",b,f);f.attachListener(CKEDITOR.document.getWindow(),"resize",b,f);CKEDITOR.tools.setTimeout(b,0,f)}e.fire("ariaWidget",
this);d()});e.addCommand("source",f.commands.source);e.ui.addButton&&e.ui.addButton("Source",{label:e.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});e.on("mode",function(){e.getCommand("source").setState(e.mode=="source"?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var d=CKEDITOR.env.ie&&CKEDITOR.env.version==9}}});var a=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(a){this.setValue(a);this.status="ready";this.editor.fire("dataReady")},getData:function(){return this.getValue()},
insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(a){this[(a?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){a.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(a){a.mode=="wysiwyg"&&a.fire("saveSnapshot");a.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);a.setMode(a.mode=="source"?"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,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(a){var e=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");a.addCommand("specialchar",{exec:function(){var b=
a.langCode,b=e.availableLangs[b]?b:e.availableLangs[b.replace(/-.*/,"")]?b.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e.path+"dialogs/lang/"+b+".js"),function(){CKEDITOR.tools.extend(a.lang.specialchar,e.langEntries[b]);a.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:false});a.ui.addButton&&a.ui.addButton("SpecialChar",{label:a.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! &quot; # $ % &amp; ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; &lt; = &gt; ? @ 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 { | } ~ &euro; &lsquo; &rsquo; &ldquo; &rdquo; &ndash; &mdash; &iexcl; &cent; &pound; &curren; &yen; &brvbar; &sect; &uml; &copy; &ordf; &laquo; &not; &reg; &macr; &deg; &sup2; &sup3; &acute; &micro; &para; &middot; &cedil; &sup1; &ordm; &raquo; &frac14; &frac12; &frac34; &iquest; &Agrave; &Aacute; &Acirc; &Atilde; &Auml; &Aring; &AElig; &Ccedil; &Egrave; &Eacute; &Ecirc; &Euml; &Igrave; &Iacute; &Icirc; &Iuml; &ETH; &Ntilde; &Ograve; &Oacute; &Ocirc; &Otilde; &Ouml; &times; &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; &divide; &oslash; &ugrave; &uacute; &ucirc; &uuml; &yacute; &thorn; &yuml; &OElig; &oelig; &#372; &#374 &#373 &#375; &sbquo; &#8219; &bdquo; &hellip; &trade; &#9658; &bull; &rarr; &rArr; &hArr; &diams; &asymp;".split(" "),
function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(a){var e=a.config,b=a.lang.stylescombo,f={},d=[],k=[];a.on("stylesSet",function(b){if(b=b.data.styles){for(var g,j,c,h=0,l=b.length;h<l;h++){g=b[h];if(!(a.blockless&&g.element in CKEDITOR.dtd.$block)){j=g.name;g=new CKEDITOR.style(g);if(!a.filter.customConfig||a.filter.check(g)){g._name=j;g._.enterMode=e.enterMode;g._.type=c=g.assignedTo||g.type;g._.weight=h+(c==CKEDITOR.STYLE_OBJECT?1:c==CKEDITOR.STYLE_BLOCK?2:3)*1E3;
f[j]=g;d.push(g);k.push(g)}}}d.sort(function(a,b){return a._.weight-b._.weight})}});a.ui.addRichCombo("Styles",{label:b.label,title:b.panelTitle,toolbar:"styles,10",allowedContent:k,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(e.contentsCss),multiSelect:true,attributes:{"aria-label":b.panelTitle}},init:function(){var a,e,f,c,h,k;h=0;for(k=d.length;h<k;h++){a=d[h];e=a._name;c=a._.type;if(c!=f){this.startGroup(b["panelTitle"+c]);f=c}this.add(e,a.type==CKEDITOR.STYLE_OBJECT?e:a.buildPreview(),
e)}this.commit()},onClick:function(b){a.focus();a.fire("saveSnapshot");var b=f[b],d=a.elementPath();a[b.checkActive(d,a)?"removeStyle":"applyStyle"](b);a.fire("saveSnapshot")},onRender:function(){a.on("selectionChange",function(b){for(var d=this.getValue(),b=b.data.path.elements,e=0,c=b.length,h;e<c;e++){h=b[e];for(var k in f)if(f[k].checkElementRemovable(h,true,a)){k!=d&&this.setValue(k);return}}this.setValue("")},this)},onOpen:function(){var d=a.getSelection().getSelectedElement(),d=a.elementPath(d),
e=[0,0,0,0];this.showAll();this.unmarkAll();for(var j in f){var c=f[j],h=c._.type;c.checkApplicable(d,a,a.activeFilter)?e[h]++:this.hideItem(j);c.checkActive(d,a)&&this.mark(j)}e[CKEDITOR.STYLE_BLOCK]||this.hideGroup(b["panelTitle"+CKEDITOR.STYLE_BLOCK]);e[CKEDITOR.STYLE_INLINE]||this.hideGroup(b["panelTitle"+CKEDITOR.STYLE_INLINE]);e[CKEDITOR.STYLE_OBJECT]||this.hideGroup(b["panelTitle"+CKEDITOR.STYLE_OBJECT])},refresh:function(){var b=a.elementPath();if(b){for(var d in f)if(f[d].checkApplicable(b,
a,a.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){f={};d=[]}})}})}(),function(){function a(a){return{editorFocus:false,canUndo:false,modes:{wysiwyg:1},exec:function(b){if(b.editable().hasFocus){var e=b.getSelection(),f;if(f=(new CKEDITOR.dom.elementPath(e.getCommonAncestor(),e.root)).contains({td:1,th:1},1)){var e=b.createRange(),j=CKEDITOR.tools.tryThese(function(){var b=f.getParent().$.cells[f.$.cellIndex+(a?-1:1)];b.parentNode.parentNode;return b},function(){var b=
f.getParent(),b=b.getAscendant("table").$.rows[b.$.rowIndex+(a?-1:1)];return b.cells[a?b.cells.length-1:0]});if(!j&&!a){for(var c=f.getAscendant("table").$,j=f.getParent().$.cells,c=new CKEDITOR.dom.element(c.insertRow(-1),b.document),h=0,l=j.length;h<l;h++)c.append((new CKEDITOR.dom.element(j[h],b.document)).clone(false,false)).appendBogus();e.moveToElementEditStart(c)}else if(j){j=new CKEDITOR.dom.element(j);e.moveToElementEditStart(j);(!e.checkStartOfBlock()||!e.checkEndOfBlock())&&e.selectNodeContents(j)}else return true;
e.select(true);return true}}return false}}}var e={editorFocus:false,modes:{wysiwyg:1,source:1}},b={exec:function(a){a.container.focusNext(true,a.tabIndex)}},f={exec:function(a){a.container.focusPrevious(true,a.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(d){for(var k=d.config.enableTabKeyTools!==false,i=d.config.tabSpaces||0,g="";i--;)g=g+" ";if(g)d.on("key",function(a){if(a.data.keyCode==9){d.insertText(g);a.cancel()}});if(k)d.on("key",function(a){(a.data.keyCode==9&&d.execCommand("selectNextCell")||
a.data.keyCode==CKEDITOR.SHIFT+9&&d.execCommand("selectPreviousCell"))&&a.cancel()});d.addCommand("blur",CKEDITOR.tools.extend(b,e));d.addCommand("blurBack",CKEDITOR.tools.extend(f,e));d.addCommand("selectNextCell",a());d.addCommand("selectPreviousCell",a(true))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(a,e){var b=e===void 0?this.getTabIndex():e,f,d,k,i,g,j;if(b<=0)for(g=this.getNextSourceNode(a,CKEDITOR.NODE_ELEMENT);g;){if(g.isVisible()&&g.getTabIndex()===0){k=g;break}g=g.getNextSourceNode(false,
CKEDITOR.NODE_ELEMENT)}else for(g=this.getDocument().getBody().getFirst();g=g.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT);){if(!f)if(!d&&g.equals(this)){d=true;if(a){if(!(g=g.getNextSourceNode(true,CKEDITOR.NODE_ELEMENT)))break;f=1}}else d&&!this.contains(g)&&(f=1);if(g.isVisible()&&!((j=g.getTabIndex())<0)){if(f&&j==b){k=g;break}if(j>b&&(!k||!i||j<i)){k=g;i=j}else if(!k&&j===0){k=g;i=j}}}k&&k.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(a,e){for(var b=e===void 0?this.getTabIndex():
e,f,d,k,i=0,g,j=this.getDocument().getBody().getLast();j=j.getPreviousSourceNode(false,CKEDITOR.NODE_ELEMENT);){if(!f)if(!d&&j.equals(this)){d=true;if(a){if(!(j=j.getPreviousSourceNode(true,CKEDITOR.NODE_ELEMENT)))break;f=1}}else d&&!this.contains(j)&&(f=1);if(j.isVisible()&&!((g=j.getTabIndex())<0))if(b<=0){if(f&&g===0){k=j;break}if(g>i){k=j;i=g}}else{if(f&&g==b){k=j;break}if(g<b&&(!k||g>i)){k=j;i=g}}}k&&k.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(a){function e(a){return CKEDITOR.tools.extend(a||
{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!a.blockless){var b=a.lang.table;a.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];"+(a.plugins.dialogadvtab?"table"+a.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle",
"table[width]: sizeToAttribute"]]}));a.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",e()));a.addCommand("tableDelete",e({exec:function(a){var b=a.elementPath().contains("table",1);if(b){var e=b.getParent(),i=a.editable();e.getChildCount()==1&&(!e.is("td","th")&&!e.equals(i))&&(b=e);a=a.createRange();a.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START);b.remove();a.select()}}}));a.ui.addButton&&a.ui.addButton("Table",{label:b.toolbar,command:"table",toolbar:"insert,30"});
CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");a.addMenuItems&&a.addMenuItems({table:{label:b.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:b.deleteTable,command:"tableDelete",group:"table",order:1}});a.on("doubleclick",function(a){if(a.data.element.is("table"))a.data.dialog="tableProperties"});a.contextMenu&&a.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),
function(){function a(a){function b(a){if(!(c.length>0)&&a.type==CKEDITOR.NODE_ELEMENT&&o.test(a.getName())&&!a.getCustomData("selected_cell")){CKEDITOR.dom.element.setMarker(d,a,"selected_cell",true);c.push(a)}}for(var a=a.getRanges(),c=[],d={},e=0;e<a.length;e++){var f=a[e];if(f.collapsed){f=f.getCommonAncestor();(f=f.getAscendant("td",true)||f.getAscendant("th",true))&&c.push(f)}else{var f=new CKEDITOR.dom.walker(f),g;for(f.guard=b;g=f.next();)if(g.type!=CKEDITOR.NODE_ELEMENT||!g.is(CKEDITOR.dtd.table))if((g=
g.getAscendant("td",true)||g.getAscendant("th",true))&&!g.getCustomData("selected_cell")){CKEDITOR.dom.element.setMarker(d,g,"selected_cell",true);c.push(g)}}}CKEDITOR.dom.element.clearAllMarkers(d);return c}function e(b,c){for(var d=a(b),e=d[0],f=e.getAscendant("table"),e=e.getDocument(),g=d[0].getParent(),h=g.$.rowIndex,d=d[d.length-1],i=d.getParent().$.rowIndex+d.$.rowSpan-1,d=new CKEDITOR.dom.element(f.$.rows[i]),h=c?h:i,g=c?g:d,d=CKEDITOR.tools.buildTableMap(f),f=d[h],h=c?d[h-1]:d[h+1],d=d[0].length,
e=e.createElement("tr"),i=0;f[i]&&i<d;i++){var j;if(f[i].rowSpan>1&&h&&f[i]==h[i]){j=f[i];j.rowSpan=j.rowSpan+1}else{j=(new CKEDITOR.dom.element(f[i])).clone();j.removeAttribute("rowSpan");j.appendBogus();e.append(j);j=j.$}i=i+(j.colSpan-1)}c?e.insertBefore(g):e.insertAfter(g)}function b(c){if(c instanceof CKEDITOR.dom.selection){for(var d=a(c),e=d[0].getAscendant("table"),f=CKEDITOR.tools.buildTableMap(e),c=d[0].getParent().$.rowIndex,d=d[d.length-1],g=d.getParent().$.rowIndex+d.$.rowSpan-1,d=[],
h=c;h<=g;h++){for(var i=f[h],j=new CKEDITOR.dom.element(e.$.rows[h]),k=0;k<i.length;k++){var l=new CKEDITOR.dom.element(i[k]),o=l.getParent().$.rowIndex;if(l.$.rowSpan==1)l.remove();else{l.$.rowSpan=l.$.rowSpan-1;if(o==h){o=f[h+1];o[k-1]?l.insertAfter(new CKEDITOR.dom.element(o[k-1])):(new CKEDITOR.dom.element(e.$.rows[h+1])).append(l,1)}}k=k+(l.$.colSpan-1)}d.push(j)}f=e.$.rows;e=new CKEDITOR.dom.element(f[g+1]||(c>0?f[c-1]:null)||e.$.parentNode);for(h=d.length;h>=0;h--)b(d[h]);return e}if(c instanceof
CKEDITOR.dom.element){e=c.getAscendant("table");e.$.rows.length==1?e.remove():c.remove()}return null}function f(a,b){for(var c=b?Infinity:0,d=0;d<a.length;d++){var e;e=a[d];for(var f=b,g=e.getParent().$.cells,h=0,i=0;i<g.length;i++){var j=g[i],h=h+(f?1:j.colSpan);if(j==e.$)break}e=h-1;if(b?e<c:e>c)c=e}return c}function d(b,c){for(var d=a(b),e=d[0].getAscendant("table"),g=f(d,1),d=f(d),g=c?g:d,h=CKEDITOR.tools.buildTableMap(e),e=[],d=[],i=h.length,j=0;j<i;j++){e.push(h[j][g]);d.push(c?h[j][g-1]:h[j][g+
1])}for(j=0;j<i;j++)if(e[j]){if(e[j].colSpan>1&&d[j]==e[j]){g=e[j];g.colSpan=g.colSpan+1}else{g=(new CKEDITOR.dom.element(e[j])).clone();g.removeAttribute("colSpan");g.appendBogus();g[c?"insertBefore":"insertAfter"].call(g,new CKEDITOR.dom.element(e[j]));g=g.$}j=j+(g.rowSpan-1)}}function k(a,b){var c=a.getStartElement();if(c=c.getAscendant("td",1)||c.getAscendant("th",1)){var d=c.clone();d.appendBogus();b?d.insertBefore(c):d.insertAfter(c)}}function i(b){if(b instanceof CKEDITOR.dom.selection){var b=
a(b),c=b[0]&&b[0].getAscendant("table"),d;a:{var e=0;d=b.length-1;for(var f={},h,j;h=b[e++];)CKEDITOR.dom.element.setMarker(f,h,"delete_cell",true);for(e=0;h=b[e++];)if((j=h.getPrevious())&&!j.getCustomData("delete_cell")||(j=h.getNext())&&!j.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(f);d=j;break a}CKEDITOR.dom.element.clearAllMarkers(f);j=b[0].getParent();if(j=j.getPrevious())d=j.getLast();else{j=b[d].getParent();d=(j=j.getNext())?j.getChild(0):null}}for(j=b.length-1;j>=
0;j--)i(b[j]);d?g(d,true):c&&c.remove()}else if(b instanceof CKEDITOR.dom.element){c=b.getParent();c.getChildCount()==1?c.remove():b.remove()}}function g(a,b){var c=a.getDocument(),d=CKEDITOR.document;if(CKEDITOR.env.ie&&CKEDITOR.env.version==10){d.focus();c.focus()}c=new CKEDITOR.dom.range(c);if(!c["moveToElementEdit"+(b?"End":"Start")](a)){c.selectNodeContents(a);c.collapse(b?false:true)}c.select(true)}function j(a,b,c){a=a[b];if(typeof c=="undefined")return a;for(b=0;a&&b<a.length;b++){if(c.is&&
a[b]==c.$)return b;if(b==c)return new CKEDITOR.dom.element(a[b])}return c.is?-1:null}function c(b,c,d){var e=a(b),f;if((c?e.length!=1:e.length<2)||(f=b.getCommonAncestor())&&f.type==CKEDITOR.NODE_ELEMENT&&f.is("table"))return false;var g,b=e[0];f=b.getAscendant("table");var h=CKEDITOR.tools.buildTableMap(f),i=h.length,k=h[0].length,l=b.getParent().$.rowIndex,o=j(h,l,b);if(c){var z;try{var y=parseInt(b.getAttribute("rowspan"),10)||1;g=parseInt(b.getAttribute("colspan"),10)||1;z=h[c=="up"?l-y:c=="down"?
l+y:l][c=="left"?o-g:c=="right"?o+g:o]}catch(B){return false}if(!z||b.$==z)return false;e[c=="up"||c=="left"?"unshift":"push"](new CKEDITOR.dom.element(z))}for(var c=b.getDocument(),A=l,y=z=0,E=!d&&new CKEDITOR.dom.documentFragment(c),C=0,c=0;c<e.length;c++){g=e[c];var F=g.getParent(),D=g.getFirst(),H=g.$.colSpan,L=g.$.rowSpan,F=F.$.rowIndex,K=j(h,F,g),C=C+H*L,y=Math.max(y,K-o+H);z=Math.max(z,F-l+L);if(!d){H=g;(L=H.getBogus())&&L.remove();H.trim();if(g.getChildren().count()){if(F!=A&&D&&(!D.isBlockBoundary||
!D.isBlockBoundary({br:1})))(A=E.getLast(CKEDITOR.dom.walker.whitespaces(true)))&&(!A.is||!A.is("br"))&&E.append("br");g.moveChildren(E)}c?g.remove():g.setHtml("")}A=F}if(d)return z*y==C;E.moveChildren(b);b.appendBogus();y>=k?b.removeAttribute("rowSpan"):b.$.rowSpan=z;z>=i?b.removeAttribute("colSpan"):b.$.colSpan=y;d=new CKEDITOR.dom.nodeList(f.$.rows);e=d.count();for(c=e-1;c>=0;c--){f=d.getItem(c);if(!f.$.cells.length){f.remove();e++}}return b}function h(b,c){var d=a(b);if(d.length>1)return false;
if(c)return true;var d=d[0],e=d.getParent(),f=e.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(f),h=e.$.rowIndex,i=j(g,h,d),k=d.$.rowSpan,l;if(k>1){l=Math.ceil(k/2);for(var k=Math.floor(k/2),e=h+l,f=new CKEDITOR.dom.element(f.$.rows[e]),g=j(g,e),o,e=d.clone(),h=0;h<g.length;h++){o=g[h];if(o.parentNode==f.$&&h>i){e.insertBefore(new CKEDITOR.dom.element(o));break}else o=null}o||f.append(e)}else{k=l=1;f=e.clone();f.insertAfter(e);f.append(e=d.clone());o=j(g,h);for(i=0;i<o.length;i++)o[i].rowSpan++}e.appendBogus();
d.$.rowSpan=l;e.$.rowSpan=k;l==1&&d.removeAttribute("rowSpan");k==1&&e.removeAttribute("rowSpan");return e}function l(b,c){var d=a(b);if(d.length>1)return false;if(c)return true;var d=d[0],e=d.getParent(),f=e.getAscendant("table"),f=CKEDITOR.tools.buildTableMap(f),g=j(f,e.$.rowIndex,d),h=d.$.colSpan;if(h>1){e=Math.ceil(h/2);h=Math.floor(h/2)}else{for(var h=e=1,i=[],k=0;k<f.length;k++){var l=f[k];i.push(l[g]);l[g].rowSpan>1&&(k=k+(l[g].rowSpan-1))}for(f=0;f<i.length;f++)i[f].colSpan++}f=d.clone();
f.insertAfter(d);f.appendBogus();d.$.colSpan=e;f.$.colSpan=h;e==1&&d.removeAttribute("colSpan");h==1&&f.removeAttribute("colSpan");return f}var o=/^(?:td|th)$/;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(f){function j(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function n(a,b){var c=f.addCommand(a,b);f.addFeature(c)}var o=f.lang.table;
n("cellProperties",new CKEDITOR.dialogCommand("cellProperties",j({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");n("rowDelete",j({requiredContent:"table",exec:function(a){a=a.getSelection();g(b(a))}}));n("rowInsertBefore",j({requiredContent:"table",exec:function(a){a=a.getSelection();e(a,true)}}));n("rowInsertAfter",j({requiredContent:"table",
exec:function(a){a=a.getSelection();e(a)}}));n("columnDelete",j({requiredContent:"table",exec:function(b){for(var b=b.getSelection(),b=a(b),c=b[0],d=b[b.length-1],b=c.getAscendant("table"),e=CKEDITOR.tools.buildTableMap(b),f,h,i=[],j=0,k=e.length;j<k;j++)for(var l=0,m=e[j].length;l<m;l++){e[j][l]==c.$&&(f=l);e[j][l]==d.$&&(h=l)}for(j=f;j<=h;j++)for(l=0;l<e.length;l++){d=e[l];c=new CKEDITOR.dom.element(b.$.rows[l]);d=new CKEDITOR.dom.element(d[j]);if(d.$){d.$.colSpan==1?d.remove():d.$.colSpan=d.$.colSpan-
1;l=l+(d.$.rowSpan-1);c.$.cells.length||i.push(c)}}h=b.$.rows[0]&&b.$.rows[0].cells;f=new CKEDITOR.dom.element(h[f]||(f?h[f-1]:b.$.parentNode));i.length==k&&b.remove();f&&g(f,true)}}));n("columnInsertBefore",j({requiredContent:"table",exec:function(a){a=a.getSelection();d(a,true)}}));n("columnInsertAfter",j({requiredContent:"table",exec:function(a){a=a.getSelection();d(a)}}));n("cellDelete",j({requiredContent:"table",exec:function(a){a=a.getSelection();i(a)}}));n("cellMerge",j({allowedContent:"td[colspan,rowspan]",
requiredContent:"td[colspan,rowspan]",exec:function(a){g(c(a.getSelection()),true)}}));n("cellMergeRight",j({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){g(c(a.getSelection(),"right"),true)}}));n("cellMergeDown",j({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){g(c(a.getSelection(),"down"),true)}}));n("cellVerticalSplit",j({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){g(l(a.getSelection()))}}));n("cellHorizontalSplit",
j({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){g(h(a.getSelection()))}}));n("cellInsertBefore",j({requiredContent:"table",exec:function(a){a=a.getSelection();k(a,true)}}));n("cellInsertAfter",j({requiredContent:"table",exec:function(a){a=a.getSelection();k(a)}}));f.addMenuItems&&f.addMenuItems({tablecell:{label:o.cell.menu,group:"tablecell",order:1,getItems:function(){var b=f.getSelection(),d=a(b);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,
tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:c(b,null,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:c(b,"right",true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:c(b,"down",true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:l(b,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:h(b,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:d.length>0?CKEDITOR.TRISTATE_OFF:
CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:o.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:o.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:o.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:o.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:o.cell.mergeRight,group:"tablecell",command:"cellMergeRight",
order:17},tablecell_merge_down:{label:o.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:o.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:o.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:o.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:o.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:o.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:o.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:o.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:o.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:o.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:o.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:o.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}});f.contextMenu&&f.contextMenu.addListener(function(a,b,c){return(a=c.contains({td:1,th:1},
1))&&!a.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getSelectedCells:a};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(a){for(var a=a.$.rows,e=-1,b=[],f=0;f<a.length;f++){e++;!b[e]&&(b[e]=[]);for(var d=-1,k=0;k<a[f].cells.length;k++){var i=a[f].cells[k];for(d++;b[e][d];)d++;for(var g=isNaN(i.colSpan)?1:i.colSpan,i=isNaN(i.rowSpan)?1:i.rowSpan,j=0;j<i;j++){b[e+j]||(b[e+
j]=[]);for(var c=0;c<g;c++)b[e+j][d+c]=a[f].cells[k]}d=d+(g-1)}}return b},function(){CKEDITOR.plugins.add("templates",{requires:"dialog",init:function(a){CKEDITOR.dialog.add("templates",CKEDITOR.getUrl(this.path+"dialogs/templates.js"));a.addCommand("templates",new CKEDITOR.dialogCommand("templates"));a.ui.addButton&&a.ui.addButton("Templates",{label:a.lang.templates.button,command:"templates",toolbar:"doctools,10"})}});var a={},e={};CKEDITOR.addTemplates=function(b,e){a[b]=e};CKEDITOR.getTemplates=
function(b){return a[b]};CKEDITOR.loadTemplates=function(a,f){for(var d=[],k=0,i=a.length;k<i;k++)if(!e[a[k]]){d.push(a[k]);e[a[k]]=1}d.length?CKEDITOR.scriptLoader.load(d,f):setTimeout(f,0)}}(),CKEDITOR.config.templates_files=[CKEDITOR.getUrl("plugins/templates/templates/default.js")],CKEDITOR.config.templates_replaceContent=!0,function(){function a(a){function b(){for(var c=f(),h=CKEDITOR.tools.clone(a.config.toolbarGroups)||e(a),j=0;j<h.length;j++){var k=h[j];if(k!="/"){typeof k=="string"&&(k=
h[j]={name:k});var n,p=k.groups;if(p)for(var r=0;r<p.length;r++){n=p[r];(n=c[n])&&g(k,n)}(n=c[k.name])&&g(k,n)}}return h}function f(){var b={},c,e,g;for(c in a.ui.items){e=a.ui.items[c];g=e.toolbar||"others";g=g.split(",");e=g[0];g=parseInt(g[1]||-1,10);b[e]||(b[e]=[]);b[e].push({name:c,order:g})}for(e in b)b[e]=b[e].sort(function(a,b){return a.order==b.order?0:b.order<0?-1:a.order<0?1:a.order<b.order?-1:1});return b}function g(b,e){if(e.length){b.items?b.items.push(a.ui.create("-")):b.items=[];for(var f;f=
e.shift();){f=typeof f=="string"?f:f.name;if(!c||CKEDITOR.tools.indexOf(c,f)==-1)(f=a.ui.create(f))&&a.addFeature(f)&&b.items.push(f)}}}function j(a){var b=[],c,d,e;for(c=0;c<a.length;++c){d=a[c];e={};if(d=="/")b.push(d);else if(CKEDITOR.tools.isArray(d)){g(e,CKEDITOR.tools.clone(d));b.push(e)}else if(d.items){g(e,CKEDITOR.tools.clone(d.items));e.name=d.name;b.push(e)}}return b}var c=a.config.removeButtons,c=c&&c.split(","),h=a.config.toolbar;typeof h=="string"&&(h=a.config["toolbar_"+h]);return a.toolbar=
h?j(h):b()}function e(a){return a._.toolbarGroups||(a._.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 b=function(){this.toolbars=
[];this.focusCommandExecuted=false};b.prototype.focus=function(){for(var a=0,b;b=this.toolbars[a++];)for(var e=0,f;f=b.items[e++];)if(f.focus){f.focus();return}};var f={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(a){if(a.toolbox){a.toolbox.focusCommandExecuted=true;CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){a.toolbox.focus()},100):a.toolbox.focus()}}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(d){var e,i=function(a,b){var c,f=d.lang.dir=="rtl",l=d.config.toolbarGroupCycling,
o=f?37:39,f=f?39:37,l=l===void 0||l;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!c||!c.items.length;){c=b==9?(c?c.next:a.toolbar.next)||d.toolbox.toolbars[0]:(c?c.previous:a.toolbar.previous)||d.toolbox.toolbars[d.toolbox.toolbars.length-1];if(c.items.length)for(a=c.items[e?c.items.length-1:0];a&&!a.focus;)(a=e?a.previous:a.next)||(c=0)}a&&a.focus();return false;case o:c=a;do{c=c.next;!c&&l&&(c=a.toolbar.items[0])}while(c&&!c.focus);c?c.focus():i(a,9);return false;case 40:if(a.button&&a.button.hasArrow){d.once("panelShow",
function(a){a.data._.panel._.currentBlock.onKeyDown(40)});a.execute()}else i(a,b==40?o:f);return false;case f:case 38:c=a;do{c=c.previous;!c&&l&&(c=a.toolbar.items[a.toolbar.items.length-1])}while(c&&!c.focus);if(c)c.focus();else{e=1;i(a,CKEDITOR.SHIFT+9);e=0}return false;case 27:d.focus();return false;case 13:case 32:a.execute();return false}return true};d.on("uiSpace",function(e){if(e.data.space==d.config.toolbarLocation){e.removeListener();d.toolbox=new b;var f=CKEDITOR.tools.getNextId(),c=['<span id="',
f,'" class="cke_voice_label">',d.lang.toolbar.toolbars,"</span>",'<span id="'+d.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',f,'" onmousedown="return false;">'],f=d.config.toolbarStartupExpanded!==false,h,k;d.config.toolbarCanCollapse&&d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&c.push('<span class="cke_toolbox_main"'+(f?">":' style="display:none">'));for(var o=d.toolbox.toolbars,q=a(d),m=0;m<q.length;m++){var n,p=0,r,u=q[m],w;if(u){if(h){c.push("</span>");k=h=0}if(u===
"/")c.push('<span class="cke_toolbar_break"></span>');else{w=u.items||u;for(var t=0;t<w.length;t++){var x=w[t],v;if(x)if(x.type==CKEDITOR.UI_SEPARATOR)k=h&&x;else{v=x.canGroup!==false;if(!p){n=CKEDITOR.tools.getNextId();p={id:n,items:[]};r=u.name&&(d.lang.toolbar.toolbarGroups[u.name]||u.name);c.push('<span id="',n,'" class="cke_toolbar"',r?' aria-labelledby="'+n+'_label"':"",' role="toolbar">');r&&c.push('<span id="',n,'_label" class="cke_voice_label">',r,"</span>");c.push('<span class="cke_toolbar_start"></span>');
var s=o.push(p)-1;if(s>0){p.previous=o[s-1];p.previous.next=p}}if(v){if(!h){c.push('<span class="cke_toolgroup" role="presentation">');h=1}}else if(h){c.push("</span>");h=0}n=function(a){a=a.render(d,c);s=p.items.push(a)-1;if(s>0){a.previous=p.items[s-1];a.previous.next=a}a.toolbar=p;a.onkey=i;a.onfocus=function(){d.toolbox.focusCommandExecuted||d.focus()}};if(k){n(k);k=0}n(x)}}if(h){c.push("</span>");k=h=0}p&&c.push('<span class="cke_toolbar_end"></span></span>')}}}d.config.toolbarCanCollapse&&c.push("</span>");
if(d.config.toolbarCanCollapse&&d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var z=CKEDITOR.tools.addFunction(function(){d.execCommand("toolbarCollapse")});d.on("destroy",function(){CKEDITOR.tools.removeFunction(z)});d.addCommand("toolbarCollapse",{readOnly:1,exec:function(a){var b=a.ui.space("toolbar_collapser"),c=b.getPrevious(),d=a.ui.space("contents"),e=c.getParent(),f=parseInt(d.$.style.height,10),g=e.$.offsetHeight,h=b.hasClass("cke_toolbox_collapser_min");if(h){c.show();b.removeClass("cke_toolbox_collapser_min");
b.setAttribute("title",a.lang.toolbar.toolbarCollapse)}else{c.hide();b.addClass("cke_toolbox_collapser_min");b.setAttribute("title",a.lang.toolbar.toolbarExpand)}b.getFirst().setText(h?"▲":"◀");d.setStyle("height",f-(e.$.offsetHeight-g)+"px");a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:d.$.offsetHeight,outerWidth:a.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}});d.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");c.push('<a title="'+
(f?d.lang.toolbar.toolbarCollapse:d.lang.toolbar.toolbarExpand)+'" id="'+d.ui.spaceId("toolbar_collapser")+'" tabIndex="-1" class="cke_toolbox_collapser');f||c.push(" cke_toolbox_collapser_min");c.push('" onclick="CKEDITOR.tools.callFunction('+z+')">','<span class="cke_arrow">&#9650;</span>',"</a>")}c.push("</span>");e.data.html=e.data.html+c.join("")}});d.on("destroy",function(){if(this.toolbox){var a,b=0,c,d,e;for(a=this.toolbox.toolbars;b<a.length;b++){d=a[b].items;for(c=0;c<d.length;c++){e=d[c];
e.clickFn&&CKEDITOR.tools.removeFunction(e.clickFn);e.keyDownFn&&CKEDITOR.tools.removeFunction(e.keyDownFn)}}}});d.on("uiReady",function(){var a=d.ui.space("toolbox");a&&d.focusManager.add(a,1)});d.addCommand("toolbarFocus",f);d.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");d.ui.add("-",CKEDITOR.UI_SEPARATOR,{});d.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(a,b){b.push('<span class="cke_toolbar_separator" role="separator"></span>');return{}}}}})}});CKEDITOR.ui.prototype.addToolbarGroup=
function(a,b,f){var g=e(this.editor),j=b===0,c={name:a};if(f){if(f=CKEDITOR.tools.search(g,function(a){return a.name==f})){!f.groups&&(f.groups=[]);if(b){b=CKEDITOR.tools.indexOf(f.groups,b);if(b>=0){f.groups.splice(b+1,0,a);return}}j?f.groups.splice(0,0,a):f.groups.push(a);return}b=null}b&&(b=CKEDITOR.tools.indexOf(g,function(a){return a.name==b}));j?g.splice(0,0,a):typeof b=="number"?g.splice(b+1,0,c):g.push(a)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top","use strict",
function(){var a=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],e={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(d){function e(a){f.enabled&&a.data.command.canUndo!==false&&f.save()}function c(){f.enabled=d.readOnly?false:d.mode=="wysiwyg";f.onChange()}var f=d.undoManager=new b(d),i=f.editingHandler=new k(f),o=d.addCommand("undo",{exec:function(){if(f.undo()){d.selectionChange();this.fire("afterUndo")}},startDisabled:true,canUndo:false}),q=d.addCommand("redo",{exec:function(){if(f.redo()){d.selectionChange();
this.fire("afterRedo")}},startDisabled:true,canUndo:false});d.setKeystroke([[a[0],"undo"],[a[1],"redo"],[a[2],"redo"]]);f.onChange=function(){o.setState(f.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);q.setState(f.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};d.on("beforeCommandExec",e);d.on("afterCommandExec",e);d.on("saveSnapshot",function(a){f.save(a.data&&a.data.contentOnly)});d.on("contentDom",i.attachListeners,i);d.on("instanceReady",function(){d.fire("saveSnapshot")});
d.on("beforeModeUnload",function(){d.mode=="wysiwyg"&&f.save(true)});d.on("mode",c);d.on("readOnly",c);if(d.ui.addButton){d.ui.addButton("Undo",{label:d.lang.undo.undo,command:"undo",toolbar:"undo,10"});d.ui.addButton("Redo",{label:d.lang.undo.redo,command:"redo",toolbar:"undo,20"})}d.resetUndo=function(){f.reset();d.fire("saveSnapshot")};d.on("updateSnapshot",function(){f.currentImage&&f.update()});d.on("lockSnapshot",function(a){a=a.data;f.lock(a&&a.dontUpdate,a&&a.forceUpdate)});d.on("unlockSnapshot",
f.unlock,f)}});CKEDITOR.plugins.undo={};var b=CKEDITOR.plugins.undo.UndoManager=function(a){this.strokesRecorded=[0,0];this.locked=null;this.previousKeyGroup=-1;this.limit=a.config.undoStackSize||20;this.strokesLimit=25;this.editor=a;this.reset()};b.prototype={type:function(a,d){var c=b.getKeyGroup(a),e=this.strokesRecorded[c]+1,d=d||e>=this.strokesLimit;if(!this.typing){this.hasUndo=this.typing=true;this.hasRedo=false;this.onChange()}if(d){e=0;this.editor.fire("saveSnapshot")}else this.editor.fire("change");
this.strokesRecorded[c]=e;this.previousKeyGroup=c},keyGroupChanged:function(a){return b.getKeyGroup(a)!=this.previousKeyGroup},reset:function(){this.snapshots=[];this.index=-1;this.currentImage=null;this.hasRedo=this.hasUndo=false;this.locked=null;this.resetType()},resetType:function(){this.strokesRecorded=[0,0];this.typing=false;this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(true);this.hasRedo=!!this.getNextImage(false);this.resetType();this.onChange()},save:function(a,
b,c){var d=this.editor;if(this.locked||d.status!="ready"||d.mode!="wysiwyg")return false;var e=d.editable();if(!e||e.status!="ready")return false;e=this.snapshots;b||(b=new f(d));if(b.contents===false)return false;if(this.currentImage)if(b.equalsContent(this.currentImage)){if(a||b.equalsSelection(this.currentImage))return false}else c!==false&&d.fire("change");e.splice(this.index+1,e.length-this.index-1);e.length==this.limit&&e.shift();this.index=e.push(b)-1;this.currentImage=b;c!==false&&this.refreshState();
return true},restoreImage:function(a){var b=this.editor,c;if(a.bookmarks){b.focus();c=b.getSelection()}this.locked={level:999};this.editor.loadSnapshot(a.contents);if(a.bookmarks)c.selectBookmarks(a.bookmarks);else if(CKEDITOR.env.ie){c=this.editor.document.getBody().$.createTextRange();c.collapse(true);c.select()}this.locked=null;this.index=a.index;this.currentImage=this.snapshots[this.index];this.update();this.refreshState();b.fire("change")},getNextImage:function(a){var b=this.snapshots,c=this.currentImage,
d;if(c)if(a)for(d=this.index-1;d>=0;d--){a=b[d];if(!c.equalsContent(a)){a.index=d;return a}}else for(d=this.index+1;d<b.length;d++){a=b[d];if(!c.equalsContent(a)){a.index=d;return a}}return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(true);var a=this.getNextImage(true);if(a)return this.restoreImage(a),true}return false},redo:function(){if(this.redoable()){this.save(true);if(this.redoable()){var a=
this.getNextImage(false);if(a)return this.restoreImage(a),true}}return false},update:function(a){if(!this.locked){a||(a=new f(this.editor));for(var b=this.index,c=this.snapshots;b>0&&this.currentImage.equalsContent(c[b-1]);)b=b-1;c.splice(b,this.index-b+1,a);this.index=b;this.currentImage=a}},updateSelection:function(a){if(!this.snapshots.length)return false;var b=this.snapshots,c=b[b.length-1];if(c.equalsContent(a)&&!c.equalsSelection(a)){this.currentImage=b[b.length-1]=a;return true}return false},
lock:function(a,b){if(this.locked)this.locked.level++;else if(a)this.locked={level:1};else{var c=null;if(b)c=true;else{var d=new f(this.editor,true);this.currentImage&&this.currentImage.equalsContent(d)&&(c=d)}this.locked={update:c,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var a=this.locked.update;this.locked=null;if(a===true)this.update();else if(a){var b=new f(this.editor,true);a.equalsContent(b)||this.update()}}}};b.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,
34:1};b.keyGroups={PRINTABLE:0,FUNCTIONAL:1};b.isNavigationKey=function(a){return!!b.navigationKeyCodes[a]};b.getKeyGroup=function(a){var d=b.keyGroups;return e[a]?d.FUNCTIONAL:d.PRINTABLE};b.getOppositeKeyGroup=function(a){var d=b.keyGroups;return a==d.FUNCTIONAL?d.PRINTABLE:d.FUNCTIONAL};b.ieFunctionalKeysBug=function(a){return CKEDITOR.env.ie&&b.getKeyGroup(a)==b.keyGroups.FUNCTIONAL};var f=CKEDITOR.plugins.undo.Image=function(a,b){this.editor=a;a.fire("beforeUndoImage");var c=a.getSnapshot();
CKEDITOR.env.ie&&c&&(c=c.replace(/\s+data-cke-expando=".*?"/g,""));this.contents=c;if(!b)this.bookmarks=(c=c&&a.getSelection())&&c.createBookmarks2(true);a.fire("afterUndoImage")},d=/\b(?:href|src|name)="[^"]*?"/gi;f.prototype={equalsContent:function(a){var b=this.contents,a=a.contents;if(CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)){b=b.replace(d,"");a=a.replace(d,"")}return b!=a?false:true},equalsSelection:function(a){var b=this.bookmarks,a=a.bookmarks;if(b||a){if(!b||!a||b.length!=
a.length)return false;for(var c=0;c<b.length;c++){var d=b[c],e=a[c];if(d.startOffset!=e.startOffset||d.endOffset!=e.endOffset||!CKEDITOR.tools.arrayCompare(d.start,e.start)||!CKEDITOR.tools.arrayCompare(d.end,e.end))return false}}return true}};var k=CKEDITOR.plugins.undo.NativeEditingHandler=function(a){this.undoManager=a;this.ignoreInputEvent=false;this.keyEventsStack=new i;this.lastKeydownImage=null};k.prototype={onKeydown:function(d){var e=d.data.getKey();if(e!==229)if(CKEDITOR.tools.indexOf(a,
d.data.getKeystroke())>-1)d.data.preventDefault();else{this.keyEventsStack.cleanUp(d);d=this.undoManager;this.keyEventsStack.getLast(e)||this.keyEventsStack.push(e);this.lastKeydownImage=new f(d.editor);if(b.isNavigationKey(e)||this.undoManager.keyGroupChanged(e))if(d.strokesRecorded[0]||d.strokesRecorded[1]){d.save(false,this.lastKeydownImage,false);d.resetType()}}},onInput:function(){if(this.ignoreInputEvent)this.ignoreInputEvent=false;else{var a=this.keyEventsStack.getLast();a||(a=this.keyEventsStack.push(0));
this.keyEventsStack.increment(a.keyCode);if(this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit){this.undoManager.type(a.keyCode,true);this.keyEventsStack.resetInputs()}}},onKeyup:function(a){var d=this.undoManager,a=a.data.getKey(),c=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(a);if(!b.ieFunctionalKeysBug(a)||!this.lastKeydownImage||!this.lastKeydownImage.equalsContent(new f(d.editor,true)))if(c>0)d.type(a);else if(b.isNavigationKey(a))this.onNavigationKey(true)},
onNavigationKey:function(a){var b=this.undoManager;(a||!b.save(true,null,false))&&b.updateSelection(new f(b.editor));b.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=true},attachListeners:function(){var a=this.undoManager.editor,d=a.editable(),c=this;d.attachListener(d,"keydown",function(a){c.onKeydown(a);if(b.ieFunctionalKeysBug(a.data.getKey()))c.onInput()},null,null,999);d.attachListener(d,CKEDITOR.env.ie?"keypress":"input",c.onInput,c,null,999);d.attachListener(d,"keyup",
c.onKeyup,c,null,999);d.attachListener(d,"paste",c.ignoreInputEventListener,c,null,999);d.attachListener(d,"drop",c.ignoreInputEventListener,c,null,999);d.attachListener(d.isInline()?d:a.document.getDocumentElement(),"click",function(){c.onNavigationKey()},null,null,999);d.attachListener(this.undoManager.editor,"blur",function(){c.keyEventsStack.remove(9)},null,null,999)}};var i=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack=[]};i.prototype={push:function(a){return this.stack[this.stack.push({keyCode:a,
inputs:0})-1]},getLastIndex:function(a){if(typeof a!="number")return this.stack.length-1;for(var b=this.stack.length;b--;)if(this.stack[b].keyCode==a)return b;return-1},getLast:function(a){a=this.getLastIndex(a);return a!=-1?this.stack[a]:null},increment:function(a){this.getLast(a).inputs++},remove:function(a){a=this.getLastIndex(a);a!=-1&&this.stack.splice(a,1)},resetInputs:function(a){if(typeof a=="number")this.getLast(a).inputs=0;else for(a=this.stack.length;a--;)this.stack[a].inputs=0},getTotalInputs:function(){for(var a=
this.stack.length,b=0;a--;)b=b+this.stack[a].inputs;return b},cleanUp:function(a){a=a.data.$;!a.ctrlKey&&!a.metaKey&&this.remove(17);a.shiftKey||this.remove(16);a.altKey||this.remove(18)}}}(),"use strict",function(){function a(a){this.editor=a;this.loaders=[]}function e(a,e,f){this.editor=a;this.lang=a.lang;if(typeof e==="string"){this.data=e;this.file=b(this.data);this.loaded=this.total=this.file.size}else{this.data=null;this.file=e;this.total=this.file.size;this.loaded=0}this.fileName=f?f:this.file.name?
this.file.name:this.file.type.replace("/",".");this.uploaded=0;this.status="created";this.abort=function(){this.changeStatus("abort")}}function b(a){var b=a.match(f)[1],a=a.replace(f,""),a=atob(a),e=[],g,j,c,h;for(g=0;g<a.length;g=g+512){j=a.slice(g,g+512);c=Array(j.length);for(h=0;h<j.length;h++)c[h]=j.charCodeAt(h);j=new Uint8Array(c);e.push(j)}return new Blob(e,{type:b})}CKEDITOR.plugins.add("filetools",{beforeInit:function(b){b.uploadRepository=new a(b);b.on("fileUploadRequest",function(a){a=
a.data.fileLoader;a.xhr.open("POST",a.uploadUrl,true)},null,null,5);b.on("fileUploadRequest",function(a){var a=a.data.fileLoader,b=new FormData;b.append("upload",a.file,a.fileName);a.xhr.send(b)},null,null,999);b.on("fileUploadResponse",function(a){var b=a.data.fileLoader,d=b.xhr,e=a.data;try{var c=JSON.parse(d.responseText);if(c.error&&c.error.message)e.message=c.error.message;if(c.uploaded){e.fileName=c.fileName;e.url=c.url}else a.cancel()}catch(f){e.message=b.lang.filetools.responseError;window.console&&
window.console.log(d.responseText);a.cancel()}},null,null,999)}});a.prototype={create:function(a,b){var f=this.loaders.length,g=new e(this.editor,a,b);g.id=f;this.loaders[f]=g;this.fire("instanceCreated",g);return g},isFinished:function(){for(var a=0;a<this.loaders.length;++a)if(!this.loaders[a].isFinished())return false;return true}};e.prototype={loadAndUpload:function(a){var b=this;this.once("loaded",function(e){e.cancel();b.once("update",function(a){a.cancel()},null,null,0);b.upload(a)},null,null,
0);this.load()},load:function(){var a=this,b=this.reader=new FileReader;a.changeStatus("loading");this.abort=function(){a.reader.abort()};b.onabort=function(){a.changeStatus("abort")};b.onerror=function(){a.message=a.lang.filetools.loadError;a.changeStatus("error")};b.onprogress=function(b){a.loaded=b.loaded;a.update()};b.onload=function(){a.loaded=a.total;a.data=b.result;a.changeStatus("loaded")};b.readAsDataURL(this.file)},upload:function(a){if(a){this.uploadUrl=a;this.xhr=new XMLHttpRequest;this.attachRequestListeners();
this.editor.fire("fileUploadRequest",{fileLoader:this})&&this.changeStatus("uploading")}else{this.message=this.lang.filetools.noUrlError;this.changeStatus("error")}},attachRequestListeners:function(){var a=this,b=this.xhr;a.abort=function(){b.abort()};b.onabort=function(){a.changeStatus("abort")};b.onerror=function(){a.message=a.lang.filetools.networkError;a.changeStatus("error")};b.onprogress=function(b){a.uploaded=b.loaded;a.update()};b.onload=function(){a.uploaded=a.total;if(b.status<200||b.status>
299){a.message=a.lang.filetools["httpError"+b.status];if(!a.message)a.message=a.lang.filetools.httpError.replace("%1",b.status);a.changeStatus("error")}else{for(var e={fileLoader:a},f=["message","fileName","url"],j=a.editor.fire("fileUploadResponse",e),c=0;c<f.length;c++){var h=f[c];typeof e[h]==="string"&&(a[h]=e[h])}j===false?a.changeStatus("error"):a.changeStatus("uploaded")}}},changeStatus:function(a){this.status=a;if(a=="error"||a=="abort"||a=="loaded"||a=="uploaded")this.abort=function(){};
this.fire(a);this.update()},update:function(){this.fire("update")},isFinished:function(){return!!this.status.match(/^(?:loaded|uploaded|error|abort)$/)}};CKEDITOR.event.implementOn(a.prototype);CKEDITOR.event.implementOn(e.prototype);var f=/^data:(\S*?);base64,/;if(!CKEDITOR.fileTools)CKEDITOR.fileTools={};CKEDITOR.tools.extend(CKEDITOR.fileTools,{uploadRepository:a,fileLoader:e,getUploadUrl:function(a,b){var e=CKEDITOR.tools.capitalize;return b&&a[b+"UploadUrl"]?a[b+"UploadUrl"]:a.uploadUrl?a.uploadUrl:
b&&a["filebrowser"+e(b,1)+"UploadUrl"]?a["filebrowser"+e(b,1)+"UploadUrl"]+"&responseType=json":a.filebrowserUploadUrl?a.filebrowserUploadUrl+"&responseType=json":null},isTypeSupported:function(a,b){return!!a.type.match(b)}})}(),"use strict",CKEDITOR.plugins.add("notification",{requires:"toolbar",init:function(a){function e(a){var e=new CKEDITOR.dom.element("div");e.setStyles({position:"fixed","margin-left":"-9999px"});e.setAttributes({"aria-live":"assertive","aria-atomic":"true"});e.setText(a);CKEDITOR.document.getBody().append(e);
setTimeout(function(){e.remove()},100)}a._.notificationArea=new ea(a);a.showNotification=function(b,e,d){var k,i;e=="progress"?k=d:i=d;b=new CKEDITOR.plugins.notification(a,{message:b,type:e,progress:k,duration:i});b.show();return b};a.on("key",function(b){if(b.data.keyCode==27){var f=a._.notificationArea.notifications;if(f.length){e(a.lang.notification.closed);f[f.length-1].hide();b.cancel()}}})}}),ca.prototype={show:function(){if(this.editor.fire("notificationShow",{notification:this})!==false){this.area.add(this);
this._hideAfterTimeout()}},update:function(a){var e=true;this.editor.fire("notificationUpdate",{notification:this,options:a})===false&&(e=false);var b=this.element,f=b.findOne(".cke_notification_message"),d=b.findOne(".cke_notification_progress"),k=a.type;b.removeAttribute("role");a.progress&&this.type!="progress"&&(k="progress");if(k){b.removeClass(this._getClass());b.removeAttribute("aria-label");this.type=k;b.addClass(this._getClass());b.setAttribute("aria-label",this.type);if(this.type=="progress"&&
!d){d=this._createProgressElement();d.insertBefore(f)}else this.type!="progress"&&d&&d.remove()}if(a.message!==void 0){this.message=a.message;f.setHtml(this.message)}if(a.progress!==void 0){this.progress=a.progress;d&&d.setStyle("width",this._getPercentageProgress())}if(e&&a.important){b.setAttribute("role","alert");this.isVisible()||this.area.add(this)}this.duration=a.duration;this._hideAfterTimeout()},hide:function(){this.editor.fire("notificationHide",{notification:this})!==false&&this.area.remove(this)},
isVisible:function(){return CKEDITOR.tools.indexOf(this.area.notifications,this)>=0},_createElement:function(){var a=this,e,b,f=this.editor.lang.common.close;e=new CKEDITOR.dom.element("div");e.addClass("cke_notification");e.addClass(this._getClass());e.setAttributes({id:this.id,role:"alert","aria-label":this.type});this.type=="progress"&&e.append(this._createProgressElement());b=new CKEDITOR.dom.element("p");b.addClass("cke_notification_message");b.setHtml(this.message);e.append(b);b=CKEDITOR.dom.element.createFromHtml('<a class="cke_notification_close" href="javascript:void(0)" title="'+
f+'" role="button" tabindex="-1"><span class="cke_label">X</span></a>');e.append(b);b.on("click",function(){a.editor.focus();a.hide()});return e},_getClass:function(){return this.type=="progress"?"cke_notification_info":"cke_notification_"+this.type},_createProgressElement:function(){var a=new CKEDITOR.dom.element("span");a.addClass("cke_notification_progress");a.setStyle("width",this._getPercentageProgress());return a},_getPercentageProgress:function(){return Math.round((this.progress||0)*100)+"%"},
_hideAfterTimeout:function(){var a=this,e;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId);if(typeof this.duration=="number")e=this.duration;else if(this.type=="info"||this.type=="success")e=typeof this.editor.config.notification_duration=="number"?this.editor.config.notification_duration:5E3;if(e)a._hideTimeoutId=setTimeout(function(){a.hide()},e)}},ea.prototype={add:function(a){this.notifications.push(a);this.element.append(a.element);if(this.element.getChildCount()==1){CKEDITOR.document.getBody().append(this.element);
this._attachListeners()}this._layout()},remove:function(a){var e=CKEDITOR.tools.indexOf(this.notifications,a);if(!(e<0)){this.notifications.splice(e,1);a.element.remove();if(!this.element.getChildCount()){this._removeListeners();this.element.remove()}}},_createElement:function(){var a=this.editor,e=a.config,b=new CKEDITOR.dom.element("div");b.addClass("cke_notifications_area");b.setAttribute("id","cke_notifications_area_"+a.name);b.setStyle("z-index",e.baseFloatZIndex-2);return b},_attachListeners:function(){var a=
CKEDITOR.document.getWindow(),e=this.editor;a.on("scroll",this._uiBuffer.input);a.on("resize",this._uiBuffer.input);e.on("change",this._changeBuffer.input);e.on("floatingSpaceLayout",this._layout,this,null,20);e.on("blur",this._layout,this,null,20)},_removeListeners:function(){var a=CKEDITOR.document.getWindow(),e=this.editor;a.removeListener("scroll",this._uiBuffer.input);a.removeListener("resize",this._uiBuffer.input);e.removeListener("change",this._changeBuffer.input);e.removeListener("floatingSpaceLayout",
this._layout);e.removeListener("blur",this._layout)},_layout:function(){function a(){e.setStyle("left",m(n+f.width-j-c))}var e=this.element,b=this.editor,f=b.ui.contentsElement.getClientRect(),d=b.ui.contentsElement.getDocumentPosition(),b=b.ui.space("top"),k=b.getClientRect(),i=e.getClientRect(),g,j=this._notificationWidth,c=this._notificationMargin;g=CKEDITOR.document.getWindow();var h=g.getScrollPosition(),l=g.getViewPaneSize(),o=CKEDITOR.document.getBody(),q=o.getDocumentPosition(),m=CKEDITOR.tools.cssLength;
if(!j||!c){g=this.element.getChild(0);j=this._notificationWidth=g.getClientRect().width;c=this._notificationMargin=parseInt(g.getComputedStyle("margin-left"),10)+parseInt(g.getComputedStyle("margin-right"),10)}b.isVisible()&&k.bottom>f.top&&k.bottom<f.bottom-i.height?e.setStyles({position:"fixed",top:m(k.bottom)}):f.top>0?e.setStyles({position:"absolute",top:m(d.y)}):d.y+f.height-i.height>h.y?e.setStyles({position:"fixed",top:0}):e.setStyles({position:"absolute",top:m(d.y+f.height-i.height)});var n=
e.getStyle("position")=="fixed"?f.left:o.getComputedStyle("position")!="static"?d.x-q.x:d.x;f.width<j+c?d.x+j+c>h.x+l.width?a():e.setStyle("left",m(n)):d.x+j+c>h.x+l.width?e.setStyle("left",m(n)):d.x+f.width/2+j/2+c>h.x+l.width?e.setStyle("left",m(n-d.x+h.x+l.width-j-c)):f.left+f.width-j-c<0?a():f.left+f.width/2-j/2<0?e.setStyle("left",m(n-d.x+h.x)):e.setStyle("left",m(n+f.width/2-j/2-c/2))}},CKEDITOR.plugins.notification=ca,function(){function a(a,e,d){this.editor=a;this.notification=null;this._message=
new CKEDITOR.template(e);this._singularMessage=d?new CKEDITOR.template(d):null;this._tasks=[];this._doneTasks=this._doneWeights=this._totalWeights=0}function e(a){this._weight=a||1;this._doneWeight=0}CKEDITOR.plugins.add("notificationaggregator",{requires:"notification"});a.prototype={createTask:function(a){var a=a||{},e=!this.notification,d;if(e)this.notification=this._createNotification();d=this._addTask(a);d.on("updated",this._onTaskUpdate,this);d.on("done",this._onTaskDone,this);d.on("canceled",
function(){this._removeTask(d)},this);this.update();e&&this.notification.show();return d},update:function(){this._updateNotification();this.isFinished()&&this.fire("finished")},getPercentage:function(){return this.getTaskCount()===0?1:this._doneWeights/this._totalWeights},isFinished:function(){return this.getDoneTaskCount()===this.getTaskCount()},getTaskCount:function(){return this._tasks.length},getDoneTaskCount:function(){return this._doneTasks},_updateNotification:function(){this.notification.update({message:this._getNotificationMessage(),
progress:this.getPercentage()})},_getNotificationMessage:function(){var a=this.getTaskCount(),e={current:this.getDoneTaskCount(),max:a,percentage:Math.round(this.getPercentage()*100)};return(a==1&&this._singularMessage?this._singularMessage:this._message).output(e)},_createNotification:function(){return new CKEDITOR.plugins.notification(this.editor,{type:"progress"})},_addTask:function(a){a=new e(a.weight);this._tasks.push(a);this._totalWeights=this._totalWeights+a._weight;return a},_removeTask:function(a){var e=
CKEDITOR.tools.indexOf(this._tasks,a);if(e!==-1){if(a._doneWeight)this._doneWeights=this._doneWeights-a._doneWeight;this._totalWeights=this._totalWeights-a._weight;this._tasks.splice(e,1);this.update()}},_onTaskUpdate:function(a){this._doneWeights=this._doneWeights+a.data;this.update()},_onTaskDone:function(){this._doneTasks=this._doneTasks+1;this.update()}};CKEDITOR.event.implementOn(a.prototype);e.prototype={done:function(){this.update(this._weight)},update:function(a){if(!this.isDone()){var a=
Math.min(this._weight,a),e=a-this._doneWeight;this._doneWeight=a;this.fire("updated",e);this.isDone()&&this.fire("done")}},cancel:function(){this.fire("canceled")},isDone:function(){return this._weight===this._doneWeight}};CKEDITOR.event.implementOn(e.prototype);CKEDITOR.plugins.notificationAggregator=a;CKEDITOR.plugins.notificationAggregator.task=e}(),"use strict",function(){CKEDITOR.plugins.add("uploadwidget",{requires:"widget,clipboard,filetools,notificationaggregator",init:function(a){a.filter.allow("*[!data-widget,!data-cke-upload-id]")}});
if(!CKEDITOR.fileTools)CKEDITOR.fileTools={};CKEDITOR.tools.extend(CKEDITOR.fileTools,{addUploadWidget:function(a,e,b){var f=CKEDITOR.fileTools,d=a.uploadRepository,k=b.supportedTypes?10:20;if(b.fileToElement)a.on("paste",function(i){var i=i.data,g=i.dataTransfer,j=g.getFilesCount(),c=b.loadMethod||"loadAndUpload",h,k;if(!i.dataValue&&j)for(k=0;k<j;k++){h=g.getFile(k);if(!b.supportedTypes||f.isTypeSupported(h,b.supportedTypes)){var o=b.fileToElement(h);h=d.create(h);if(o){h[c](b.uploadUrl);CKEDITOR.fileTools.markElement(o,
e,h.id);(c=="loadAndUpload"||c=="upload")&&CKEDITOR.fileTools.bindNotifications(a,h);i.dataValue=i.dataValue+o.getOuterHtml()}}}},null,null,k);CKEDITOR.tools.extend(b,{downcast:function(){return new CKEDITOR.htmlParser.text("")},init:function(){var b=this,e=this.wrapper.findOne("[data-cke-upload-id]").data("cke-upload-id"),f=d.loaders[e],c=CKEDITOR.tools.capitalize,h,k;f.on("update",function(d){if(!b.wrapper||!b.wrapper.getParent()){a.editable().find('[data-cke-upload-id="'+e+'"]').count()||f.abort();
d.removeListener()}else{a.fire("lockSnapshot");d="on"+c(f.status);if(!(typeof b[d]==="function"&&b[d](f)===false)){k="cke_upload_"+f.status;if(b.wrapper&&k!=h){h&&b.wrapper.removeClass(h);b.wrapper.addClass(k);h=k}(f.status=="error"||f.status=="abort")&&a.widgets.del(b)}a.fire("unlockSnapshot")}});f.update()},replaceWith:function(b,d){if(b.trim()==="")a.widgets.del(this);else{var e=this==a.widgets.focused,c=a.editable(),f=a.createRange(),k,o;e||(o=a.getSelection().createBookmarks());f.setStartBefore(this.wrapper);
f.setEndAfter(this.wrapper);e&&(k=f.createBookmark());c.insertHtmlIntoRange(b,f,d);a.widgets.checkWidgets({initOnlyNew:true});a.widgets.destroy(this,true);if(e){f.moveToBookmark(k);f.select()}else a.getSelection().selectBookmarks(o)}}});a.widgets.add(e,b)},markElement:function(a,e,b){a.setAttributes({"data-cke-upload-id":b,"data-widget":e})},bindNotifications:function(a,e){var b=a._.uploadWidgetNotificaionAggregator;if(!b||b.isFinished()){b=a._.uploadWidgetNotificaionAggregator=new CKEDITOR.plugins.notificationAggregator(a,
a.lang.uploadwidget.uploadMany,a.lang.uploadwidget.uploadOne);b.once("finished",function(){var d=b.getTaskCount();d===0?b.notification.hide():b.notification.update({message:d==1?a.lang.uploadwidget.doneOne:a.lang.uploadwidget.doneMany.replace("%1",d),type:"success",important:1})})}var f=b.createTask({weight:e.total});e.on("update",function(){f&&e.status=="uploading"&&f.update(e.uploaded)});e.on("uploaded",function(){f&&f.done()});e.on("error",function(){f&&f.cancel();a.showNotification(e.message,
"warning")});e.on("abort",function(){f&&f.cancel();a.showNotification(a.lang.uploadwidget.abort,"info")})}})}(),"use strict",function(){CKEDITOR.plugins.add("uploadimage",{requires:"uploadwidget",onLoad:function(){CKEDITOR.addCss(".cke_upload_uploading img{opacity: 0.3}")},init:function(e){if(CKEDITOR.plugins.clipboard.isFileApiSupported){var b=CKEDITOR.fileTools,f=b.getUploadUrl(e.config,"image");if(f){b.addUploadWidget(e,"uploadimage",{supportedTypes:/image\/(jpeg|png|gif)/,uploadUrl:f,fileToElement:function(){var b=
new CKEDITOR.dom.element("img");b.setAttribute("src",a);return b},parts:{img:"img"},onUploading:function(a){this.parts.img.setAttribute("src",a.data)},onUploaded:function(a){this.replaceWith('<img src="'+a.url+'" width="'+this.parts.img.$.naturalWidth+'" height="'+this.parts.img.$.naturalHeight+'">')}});e.on("paste",function(a){if(a.data.dataValue.match(/<img[\s\S]+data:/i)){var a=a.data,k=document.implementation.createHTMLDocument(""),k=new CKEDITOR.dom.element(k.body),i,g,j;k.data("cke-editable",
1);k.appendHtml(a.dataValue);i=k.find("img");for(j=0;j<i.count();j++){g=i.getItem(j);var c=g.getAttribute("src")&&g.getAttribute("src").substring(0,5)=="data:",h=g.data("cke-realelement")===null;if(c&&h&&!g.data("cke-upload-id")&&!g.isReadOnly(1)){c=e.uploadRepository.create(g.getAttribute("src"));c.upload(f);b.markElement(g,"uploadimage",c.id);b.bindNotifications(e,c)}}a.dataValue=k.getHtml()}})}else window.console&&window.console.log("Error: Upload URL for the Upload Image feature was not defined. For more information see: http://docs.ckeditor.com/#!/guide/dev_file_upload")}}});
var a="data:image/gif;base64,R0lGODlhDgAOAIAAAAAAAP///yH5BAAAAAAALAAAAAAOAA4AAAIMhI+py+0Po5y02qsKADs="}(),function(){function a(a){var b=this.editor,f=a.document,g=f.body,j=f.getElementById("cke_actscrpt");j&&j.parentNode.removeChild(j);(j=f.getElementById("cke_shimscrpt"))&&j.parentNode.removeChild(j);(j=f.getElementById("cke_basetagscrpt"))&&j.parentNode.removeChild(j);g.contentEditable=true;if(CKEDITOR.env.ie){g.hideFocus=true;g.disabled=true;g.removeAttribute("disabled")}delete this._.isLoadingData;
this.$=g;f=new CKEDITOR.dom.document(f);this.setup();this.fixInitialSelection();if(CKEDITOR.env.ie){f.getDocumentElement().addClass(f.$.compatMode);b.config.enterMode!=CKEDITOR.ENTER_P&&this.attachListener(f,"selectionchange",function(){var a=f.getBody(),c=b.getSelection(),d=c&&c.getRanges()[0];d&&(a.getHtml().match(/^<p>(?:&nbsp;|<br>)<\/p>$/i)&&d.startContainer.equals(a))&&setTimeout(function(){d=b.getSelection().getRanges()[0];if(!d.startContainer.equals("body")){a.getFirst().remove(1);d.moveToElementEditEnd(a);
d.select()}},0)})}if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&CKEDITOR.env.version>10)f.getDocumentElement().on("mousedown",function(a){a.data.getTarget().is("html")&&setTimeout(function(){b.editable().focus()})});e(b);try{b.document.$.execCommand("2D-position",false,true)}catch(c){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&b.document.$.compatMode=="CSS1Compat")&&this.attachListener(this,"keydown",function(a){var c=a.data.getKeystroke();if(c==33||c==34)if(CKEDITOR.env.ie)setTimeout(function(){b.getSelection().scrollIntoView()},
0);else if(b.window.$.innerHeight>this.$.offsetHeight){var d=b.createRange();d[c==33?"moveToElementEditStart":"moveToElementEditEnd"](this);d.select();a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(f,"blur",function(){try{f.$.selection.empty()}catch(a){}});CKEDITOR.env.iOS&&this.attachListener(f,"touchend",function(){a.focus()});g=b.document.getElementsByTag("title").getItem(0);g.data("cke-title",g.getText());if(CKEDITOR.env.ie)b.document.$.title=this._.docTitle;CKEDITOR.tools.setTimeout(function(){if(this.status==
"unloaded")this.status="ready";b.fire("contentDom");if(this._.isPendingFocus){b.focus();this._.isPendingFocus=false}setTimeout(function(){b.fire("dataReady")},0)},0,this)}function e(a){function b(){var c;a.editable().attachListener(a,"selectionChange",function(){var b=a.getSelection().getSelectedElement();if(b){if(c){c.detachEvent("onresizestart",e);c=null}b.$.attachEvent("onresizestart",e);c=b.$}})}function e(a){a.returnValue=false}if(CKEDITOR.env.gecko)try{var f=a.document.$;f.execCommand("enableObjectResizing",
false,!a.config.disableObjectResizing);f.execCommand("enableInlineTableEditing",false,!a.config.disableNativeTableHandles)}catch(j){}else CKEDITOR.env.ie&&(CKEDITOR.env.version<11&&a.config.disableObjectResizing)&&b(a)}function b(){var a=[];if(CKEDITOR.document.$.documentMode>=8){a.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");var b=[],e;for(e in CKEDITOR.dtd.$removeEmpty)b.push("html.CSS1Compat "+e+"[contenteditable=false]");a.push(b.join(",")+"{display:inline-block}")}else if(CKEDITOR.env.gecko){a.push("html{height:100% !important}");
a.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")}a.push("html{cursor:text;*cursor:auto}");a.push("img,input,textarea{cursor:default}");return a.join("\n")}CKEDITOR.plugins.add("wysiwygarea",{init:function(a){a.config.fullPage&&a.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"});a.addMode("wysiwyg",function(b){function e(c){c&&c.removeListener();a.editable(new f(a,j.$.contentWindow.document.body));
a.setData(a.getData(1),b)}var g="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",g=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent(g)+"}())":"",j=CKEDITOR.dom.element.createFromHtml('<iframe src="'+g+'" frameBorder="0"></iframe>');j.setStyles({width:"100%",height:"100%"});j.addClass("cke_wysiwyg_frame").addClass("cke_reset");var c=a.ui.space("contents");c.append(j);if(g=CKEDITOR.env.ie||CKEDITOR.env.gecko)j.on("load",
e);var h=a.title,l=a.fire("ariaEditorHelpLabel",{}).label;if(h){CKEDITOR.env.ie&&l&&(h=h+(", "+l));j.setAttribute("title",h)}if(l){var h=CKEDITOR.tools.getNextId(),o=CKEDITOR.dom.element.createFromHtml('<span id="'+h+'" class="cke_voice_label">'+l+"</span>");c.append(o,1);j.setAttribute("aria-describedby",h)}a.on("beforeModeUnload",function(a){a.removeListener();o&&o.remove()});j.setAttributes({tabIndex:a.tabIndex,allowTransparency:"true"});!g&&e();if(CKEDITOR.env.webkit){g=function(){c.setStyle("width",
"100%");j.hide();j.setSize("width",c.getSize("width"));c.removeStyle("width");j.show()};j.setCustomData("onResize",g);CKEDITOR.document.getWindow().on("resize",g)}a.fire("ariaWidget",j)})}});CKEDITOR.editor.prototype.addContentsCss=function(a){var b=this.config,e=b.contentsCss;if(!CKEDITOR.tools.isArray(e))b.contentsCss=e?[e]:[];b.contentsCss.push(a)};var f=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(b){CKEDITOR.tools.setTimeout(a,
0,this,b)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(a,e){var f=this.editor;if(e){this.setHtml(a);this.fixInitialSelection();f.fire("dataReady")}else{this._.isLoadingData=true;f._.dataStore={id:1};var g=f.config,j=g.fullPage,c=g.docType,h=CKEDITOR.tools.buildStyleHtml(b()).replace(/<style>/,'<style data-cke-temp="1">');j||(h=h+CKEDITOR.tools.buildStyleHtml(f.config.contentsCss));var l=g.baseHref?'<base href="'+g.baseHref+
'" data-cke-temp="1" />':"";j&&(a=a.replace(/<!DOCTYPE[^>]*>/i,function(a){f.docType=c=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){f.xmlDeclaration=a;return""}));a=f.dataProcessor.toHtml(a);if(j){/<body[\s|>]/.test(a)||(a="<body>"+a);/<html[\s|>]/.test(a)||(a="<html>"+a+"</html>");/<head[\s|>]/.test(a)?/<title[\s|>]/.test(a)||(a=a.replace(/<head[^>]*>/,"$&<title></title>")):a=a.replace(/<html[^>]*>/,"$&<head><title></title></head>");l&&(a=a.replace(/<head[^>]*?>/,"$&"+l));a=a.replace(/<\/head\s*>/,
h+"$&");a=c+a}else a=g.docType+'<html dir="'+g.contentsLangDirection+'" lang="'+(g.contentsLanguage||f.langCode)+'"><head><title>'+this._.docTitle+"</title>"+l+h+"</head><body"+(g.bodyId?' id="'+g.bodyId+'"':"")+(g.bodyClass?' class="'+g.bodyClass+'"':"")+">"+a+"</body></html>";if(CKEDITOR.env.gecko){a=a.replace(/<body/,'<body contenteditable="true" ');CKEDITOR.env.version<2E4&&(a=a.replace(/<body[^>]*>/,"$&<\!-- cke-content-start --\>"))}g='<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 );')+"<\/script>";CKEDITOR.env.ie&&CKEDITOR.env.version<9&&(g=g+'<script id="cke_shimscrpt">window.parent.CKEDITOR.tools.enableHtml5Elements(document)<\/script>');l&&(CKEDITOR.env.ie&&CKEDITOR.env.version<10)&&(g=g+'<script id="cke_basetagscrpt">var baseTag = document.querySelector( "base" );baseTag.href = baseTag.href;<\/script>');
a=a.replace(/(?=\s*<\/(:?head)>)/,g);this.clearCustomData();this.clearListeners();f.fire("contentDomUnload");var o=this.getDocument();try{o.write(a)}catch(q){setTimeout(function(){o.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();var a=this.editor,b=a.config,e=b.fullPage,f=e&&a.docType,j=e&&a.xmlDeclaration,c=this.getDocument(),e=e?c.getDocumentElement().getOuterHtml():c.getBody().getHtml();CKEDITOR.env.gecko&&b.enterMode!=CKEDITOR.ENTER_BR&&(e=e.replace(/<br>(?=\s*(:?$|<\/body>))/,
""));e=a.dataProcessor.toDataFormat(e);j&&(e=j+"\n"+e);f&&(e=f+"\n"+e);return e},focus:function(){this._.isLoadingData?this._.isPendingFocus=true:f.baseProto.focus.call(this)},detach:function(){var a=this.editor,b=a.document,a=a.window.getFrame();f.baseProto.detach.call(this);this.clearCustomData();b.getDocumentElement().clearCustomData();a.clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);(b=a.removeCustomData("onResize"))&&b.removeListener();a.remove()}}})}(),CKEDITOR.config.disableObjectResizing=
!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.contentsCss=CKEDITOR.getUrl("contents.css"),CKEDITOR.config.plugins="dialogui,dialog,a11yhelp,about,basicstyles,bidi,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,menu,contextmenu,dialogadvtab,div,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,format,forms,horizontalrule,htmlwriter,iframe,lineutils,widget,image2,indent,indentlist,indentblock,justify,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastefromword,pastetext,preview,print,removeformat,resize,save,selectall,showblocks,showborders,smiley,sourcearea,specialchar,stylescombo,tab,table,tabletools,templates,toolbar,undo,filetools,notification,notificationaggregator,uploadwidget,uploadimage,wysiwygarea",
CKEDITOR.config.skin="moono",function(){var a=function(a,b){for(var f=CKEDITOR.getUrl("plugins/"+b),a=a.split(","),d=0;d<a.length;d++)CKEDITOR.skin.icons[a[d]]={path:f,offset:-a[++d],bgsize:a[++d]}};CKEDITOR.env.hidpi?a("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,,codesnippet,384,,bgcolor,408,,textcolor,432,,creatediv,456,,docprops-rtl,480,,docprops,504,,embed,528,,embedsemantic,552,,find-rtl,576,,find,600,,replace,624,,flash,648,,button,672,,checkbox,696,,form,720,,hiddenfield,744,,imagebutton,768,,radio,792,,select-rtl,816,,select,840,,textarea-rtl,864,,textarea,888,,textfield-rtl,912,,textfield,936,,horizontalrule,960,,iframe,984,,image,1008,,indent-rtl,1032,,indent,1056,,outdent-rtl,1080,,outdent,1104,,justifyblock,1128,,justifycenter,1152,,justifyleft,1176,,justifyright,1200,,language,1224,,anchor-rtl,1248,,anchor,1272,,link,1296,,unlink,1320,,bulletedlist-rtl,1344,,bulletedlist,1368,,numberedlist-rtl,1392,,numberedlist,1416,,mathjax,1440,,maximize,1464,,newpage-rtl,1488,,newpage,1512,,pagebreak-rtl,1536,,pagebreak,1560,,pastefromword-rtl,1584,,pastefromword,1608,,pastetext-rtl,1632,,pastetext,1656,,placeholder,1680,,preview-rtl,1704,,preview,1728,,print,1752,,removeformat,1776,,save,1800,,selectall,1824,,showblocks-rtl,1848,,showblocks,1872,,smiley,1896,,source-rtl,1920,,source,1944,,sourcedialog-rtl,1968,,sourcedialog,1992,,specialchar,2016,,table,2040,,templates-rtl,2064,,templates,2088,,uicolor,2112,,redo-rtl,2136,,redo,2160,,undo-rtl,2184,,undo,2208,,simplebox,4464,auto",
"icons_hidpi.png"):a("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,codesnippet,384,auto,bgcolor,408,auto,textcolor,432,auto,creatediv,456,auto,docprops-rtl,480,auto,docprops,504,auto,embed,528,auto,embedsemantic,552,auto,find-rtl,576,auto,find,600,auto,replace,624,auto,flash,648,auto,button,672,auto,checkbox,696,auto,form,720,auto,hiddenfield,744,auto,imagebutton,768,auto,radio,792,auto,select-rtl,816,auto,select,840,auto,textarea-rtl,864,auto,textarea,888,auto,textfield-rtl,912,auto,textfield,936,auto,horizontalrule,960,auto,iframe,984,auto,image,1008,auto,indent-rtl,1032,auto,indent,1056,auto,outdent-rtl,1080,auto,outdent,1104,auto,justifyblock,1128,auto,justifycenter,1152,auto,justifyleft,1176,auto,justifyright,1200,auto,language,1224,auto,anchor-rtl,1248,auto,anchor,1272,auto,link,1296,auto,unlink,1320,auto,bulletedlist-rtl,1344,auto,bulletedlist,1368,auto,numberedlist-rtl,1392,auto,numberedlist,1416,auto,mathjax,1440,auto,maximize,1464,auto,newpage-rtl,1488,auto,newpage,1512,auto,pagebreak-rtl,1536,auto,pagebreak,1560,auto,pastefromword-rtl,1584,auto,pastefromword,1608,auto,pastetext-rtl,1632,auto,pastetext,1656,auto,placeholder,1680,auto,preview-rtl,1704,auto,preview,1728,auto,print,1752,auto,removeformat,1776,auto,save,1800,auto,selectall,1824,auto,showblocks-rtl,1848,auto,showblocks,1872,auto,smiley,1896,auto,source-rtl,1920,auto,source,1944,auto,sourcedialog-rtl,1968,auto,sourcedialog,1992,auto,specialchar,2016,auto,table,2040,auto,templates-rtl,2064,auto,templates,2088,auto,uicolor,2112,auto,redo-rtl,2136,auto,redo,2160,auto,undo-rtl,2184,auto,undo,2208,auto,simplebox,2232,auto",
"icons.png")}()})();