/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){if(!window.CKEDITOR||!window.CKEDITOR.dom)window.CKEDITOR||(window.CKEDITOR=function(){var a=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,e={timestamp:"FAKG",version:"DEV",revision:"0",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:a},status:"unloaded",basePath:function(){var d=window.CKEDITOR_BASEPATH||"";if(!d)for(var b=document.getElementsByTagName("script"),e=0;e<b.length;e++){var h=b[e].src.match(a);if(h){d=h[1];break}}-1==d.indexOf(":/")&&"//"!=d.slice(0,2)&&
(d=0===d.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+d:location.href.match(/^[^\?]*\/(?:)/)[0]+d);if(!d)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return d}(),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),d()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),d())}catch(h){}}function d(){for(var a;a=b.shift();)a()}var b=[];return function(h){function d(){try{document.documentElement.doScroll("left")}catch(f){setTimeout(d,1);return}a()}b.push(h);"complete"===document.readyState&&setTimeout(a,1);if(1==b.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);h=!1;try{h=!window.frameElement}catch(c){}document.documentElement.doScroll&&h&&d()}}}()},b=window.CKEDITOR_GETURL;if(b){var d=e.getUrl;e.getUrl=function(a){return b.call(e,a)||d.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 g=
e(this);return g[a]||(g[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(d,b){var e=a.call(this,d);CKEDITOR.tools.extend(e,b,true)},on:function(d,b,e,i,h){function k(f,j,a,h){f={name:d,sender:this,editor:f,data:j,listenerData:i,stop:a,cancel:h,removeListener:c};
return b.call(e,f)===false?false:f.data}function c(){j.removeListener(d,b)}var f=a.call(this,d);if(f.getListenerIndex(b)<0){f=f.listeners;e||(e=this);isNaN(h)&&(h=10);var j=this;k.fn=b;k.priority=h;for(var t=f.length-1;t>=0;t--)if(f[t].priority<=h){f.splice(t+1,0,k);return{removeListener:c}}f.unshift(k)}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},l=0,i=function(){l=1};return function(h,k,c){var f=e(this)[h],h=a,j=l;a=l=0;if(f){var t=f.listeners;if(t.length)for(var t=t.slice(0),n,m=0;m<t.length;m++){if(f.errorProof)try{n=t[m].call(this,c,k,b,i)}catch(r){}else n=t[m].call(this,c,k,b,i);n===false?l=1:typeof n!="undefined"&&(k=n);if(a||l)break}}k=l?false:typeof k=="undefined"?true:k;a=h;l=j;return k}}(),fireOnce:function(a,b,l){b=
this.fire(a,b,l);delete e(this)[a];return b},removeListener:function(a,b){var l=e(this)[a];if(l){var i=l.getListenerIndex(b);i>=0&&l.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 d=0;if(b.ie){d=e?parseFloat(e[1]):
b.quirks||!document.documentMode?parseFloat(a.match(/msie (\d+)/)[1]):document.documentMode;b.ie9Compat=d==9;b.ie8Compat=d==8;b.ie7Compat=d==7;b.ie6Compat=d<7||b.quirks}if(b.gecko)if(e=a.match(/rv:([\d\.]+)/)){e=e[1].split(".");d=e[0]*1E4+(e[1]||0)*100+(e[2]||0)*1}b.air&&(d=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));b.webkit&&(d=parseFloat(a.match(/ applewebkit\/(\d+)/)[1]));b.version=d;b.isCompatible=!(b.ie&&d<7)&&!(b.gecko&&d<4E4)&&!(b.webkit&&d<534);b.hidpi=window.devicePixelRatio>=2;b.needsBrFiller=
b.gecko||b.webkit||b.ie&&d>10;b.needsNbspFiller=b.ie&&d<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"}(),"use strict",CKEDITOR.VERBOSITY_WARN=1,CKEDITOR.VERBOSITY_ERROR=2,CKEDITOR.verbosity=CKEDITOR.VERBOSITY_WARN|CKEDITOR.VERBOSITY_ERROR,CKEDITOR.warn=function(a,e){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:a,additionalData:e})},CKEDITOR.error=function(a,e){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",
{type:"error",errorCode:a,additionalData:e})},CKEDITOR.on("log",function(a){if(window.console&&window.console.log){var e=console[a.data.type]?a.data.type:"log",b=a.data.errorCode;if(a=a.data.additionalData)console[e]("[CKEDITOR] Error code: "+b+".",a);else console[e]("[CKEDITOR] Error code: "+b+".");console[e]("[CKEDITOR] For more information about this error go to http://docs.ckeditor.com/#!/guide/dev_errors-section-"+b)}},null,null,999),CKEDITOR.dom={},function(){var a=[],e=CKEDITOR.env.gecko?"-moz-":
CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",b=/&/g,d=/>/g,g=/</g,l=/"/g,i=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,h={lt:"<",gt:">",amp:"&",quot:'"',nbsp:" ",shy:"­"},k=function(c,f){return f[0]=="#"?String.fromCharCode(parseInt(f.slice(1),10)):h[f]};CKEDITOR.on("reset",function(){a=[]});CKEDITOR.tools={arrayCompare:function(c,f){if(!c&&!f)return true;if(!c||!f||c.length!=f.length)return false;for(var j=0;j<c.length;j++)if(c[j]!=f[j])return false;return true},getIndex:function(c,f){for(var j=
0;j<c.length;++j)if(f(c[j]))return j;return-1},clone:function(c){var f;if(c&&c instanceof Array){f=[];for(var j=0;j<c.length;j++)f[j]=CKEDITOR.tools.clone(c[j]);return f}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;f=new c.constructor;for(j in c)f[j]=CKEDITOR.tools.clone(c[j]);return f},capitalize:function(c,f){return c.charAt(0).toUpperCase()+(f?c.slice(1):c.slice(1).toLowerCase())},
extend:function(c){var f=arguments.length,j,a;if(typeof(j=arguments[f-1])=="boolean")f--;else if(typeof(j=arguments[f-2])=="boolean"){a=arguments[f-1];f=f-2}for(var h=1;h<f;h++){var b=arguments[h],d;for(d in b)if(j===true||c[d]==null)if(!a||d in a)c[d]=b[d]}return c},prototypedCopy:function(c){var f=function(){};f.prototype=c;return new f},copy:function(c){var f={},j;for(j in c)f[j]=c[j];return f},isArray:function(c){return Object.prototype.toString.call(c)=="[object Array]"},isEmpty:function(c){for(var f in c)if(c.hasOwnProperty(f))return false;
return true},cssVendorPrefix:function(c,f,j){if(j)return e+c+":"+f+";"+c+":"+f;j={};j[c]=f;j[e+c]=f;return j},cssStyleToDomStyle:function(){var c=document.createElement("div").style,f=typeof c.cssFloat!="undefined"?"cssFloat":typeof c.styleFloat!="undefined"?"styleFloat":"float";return function(c){return c=="float"?f:c.replace(/-./g,function(f){return f.substr(1).toUpperCase()})}}(),buildStyleHtml:function(c){for(var c=[].concat(c),f,j=[],a=0;a<c.length;a++)if(f=c[a])/@import|[{}]/.test(f)?j.push("<style>"+
f+"</style>"):j.push('<link type="text/css" rel=stylesheet href="'+f+'">');return j.join("")},htmlEncode:function(c){return c===void 0||c===null?"":(""+c).replace(b,"&amp;").replace(d,"&gt;").replace(g,"&lt;")},htmlDecode:function(c){return c.replace(i,k)},htmlEncodeAttr:function(c){return CKEDITOR.tools.htmlEncode(c).replace(l,"&quot;")},htmlDecodeAttr:function(c){return CKEDITOR.tools.htmlDecode(c)},transformPlainTextToHtml:function(c,f){var j=f==CKEDITOR.ENTER_BR,a=this.htmlEncode(c.replace(/\r\n/g,
"\n")),a=a.replace(/\t/g,"&nbsp;&nbsp; &nbsp;"),h=f==CKEDITOR.ENTER_P?"p":"div";if(!j){var b=/\n{2}/g;if(b.test(a))var d="<"+h+">",k="</"+h+">",a=d+a.replace(b,function(){return k+d})+k}a=a.replace(/\n/g,"<br>");j||(a=a.replace(RegExp("<br>(?=</"+h+">)"),function(f){return CKEDITOR.tools.repeat(f,2)}));a=a.replace(/^ | $/g,"&nbsp;");return a=a.replace(/(>|\s) /g,function(f,c){return c+"&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",f=0;f<8;f++)c=c+Math.floor((1+Math.random())*65536).toString(16).substring(1);return c},override:function(c,f){var j=f(c);j.prototype=c.prototype;return j},setTimeout:function(c,f,j,a,h){h||(h=window);j||(j=h);return h.setTimeout(function(){a?c.apply(j,[].concat(a)):c.apply(j)},f||0)},trim:function(){var c=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(f){return f.replace(c,"")}}(),ltrim:function(){var c=/^[ \t\n\r]+/g;return function(f){return f.replace(c,
"")}}(),rtrim:function(){var c=/[ \t\n\r]+$/g;return function(f){return f.replace(c,"")}}(),indexOf:function(c,f){if(typeof f=="function")for(var j=0,a=c.length;j<a;j++){if(f(c[j]))return j}else{if(c.indexOf)return c.indexOf(f);j=0;for(a=c.length;j<a;j++)if(c[j]===f)return j}return-1},search:function(c,f){var j=CKEDITOR.tools.indexOf(c,f);return j>=0?c[j]:null},bind:function(c,f){return function(){return c.apply(f,arguments)}},createClass:function(c){var f=c.$,j=c.base,a=c.privates||c._,h=c.proto,
c=c.statics;!f&&(f=function(){j&&this.base.apply(this,arguments)});if(a)var b=f,f=function(){var f=this._||(this._={}),c;for(c in a){var j=a[c];f[c]=typeof j=="function"?CKEDITOR.tools.bind(j,this):j}b.apply(this,arguments)};if(j){f.prototype=this.prototypedCopy(j.prototype);f.prototype.constructor=f;f.base=j;f.baseProto=j.prototype;f.prototype.base=function(){this.base=j.prototype.base;j.apply(this,arguments);this.base=arguments.callee}}h&&this.extend(f.prototype,h,true);c&&this.extend(f,c,true);
return f},addFunction:function(c,f){return a.push(function(){return c.apply(f||this,arguments)})-1},removeFunction:function(c){a[c]=null},callFunction:function(c){var f=a[c];return f&&f.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var c=/^-?\d+\.?\d*px$/,f;return function(j){f=CKEDITOR.tools.trim(j+"")+"px";return c.test(f)?f:j||""}}(),convertToPx:function(){var c;return function(f){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(f)){c.setStyle("width",f);return c.$.clientWidth}return f}}(),repeat:function(c,f){return Array(f+1).join(c)},tryThese:function(){for(var c,f=0,j=arguments.length;f<j;f++){var a=arguments[f];try{c=a();break}catch(h){}}return c},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(c){return function(){var f=arguments,j=this;window.setTimeout(function(){c.apply(j,f)},0)}},normalizeCssText:function(c,
f){var j=[],a,h=CKEDITOR.tools.parseCssText(c,true,f);for(a in h)j.push(a+":"+h[a]);j.sort();return j.length?j.join(";")+";":""},convertRgbToHex:function(c){return c.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(f,c,a,h){f=[c,a,h];for(c=0;c<3;c++)f[c]=("0"+parseInt(f[c],10).toString(16)).slice(-2);return"#"+f.join("")})},parseCssText:function(c,f,a){var h={};if(a){a=new CKEDITOR.dom.element("span");a.setAttribute("style",c);c=CKEDITOR.tools.convertRgbToHex(a.getAttribute("style")||
"")}if(!c||c==";")return h;c.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(c,a,j){if(f){a=a.toLowerCase();a=="font-family"&&(j=j.toLowerCase().replace(/["']/g,"").replace(/\s*,\s*/g,","));j=CKEDITOR.tools.trim(j)}h[a]=j});return h},writeCssText:function(c,f){var a,h=[];for(a in c)h.push(a+":"+c[a]);f&&h.sort();return h.join("; ")},objectCompare:function(c,f,a){var h;if(!c&&!f)return true;if(!c||!f)return false;for(h in c)if(c[h]!=f[h])return false;if(!a)for(h in f)if(c[h]!=
f[h])return false;return true},objectKeys:function(c){var f=[],a;for(a in c)f.push(a);return f},convertArrayToObject:function(c,f){var a={};arguments.length==1&&(f=true);for(var h=0,b=c.length;h<b;++h)a[c[h]]=f;return a},fixDomain:function(){for(var c;;)try{c=window.parent.document.domain;break}catch(f){c=c?c.replace(/.+?(?:\.|$)/,""):document.domain;if(!c)break;document.domain=c}return!!c},eventsBuffer:function(c,f,a){function h(){d=(new Date).getTime();b=false;a?f.call(a):f()}var b,d=0;return{input:function(){if(!b){var f=
(new Date).getTime()-d;f<c?b=setTimeout(h,c-f):h()}},reset:function(){b&&clearTimeout(b);b=d=0}}},enableHtml5Elements:function(c,f){for(var a=["abbr","article","aside","audio","bdi","canvas","data","datalist","details","figcaption","figure","footer","header","hgroup","main","mark","meter","nav","output","progress","section","summary","time","video"],h=a.length,b;h--;){b=c.createElement(a[h]);f&&c.appendChild(b)}},checkIfAnyArrayItemMatches:function(c,f){for(var a=0,h=c.length;a<h;++a)if(c[a].match(f))return true;
return false},checkIfAnyObjectPropertyMatches:function(c,f){for(var a in c)if(a.match(f))return true;return false},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw=="}}(),CKEDITOR.dtd=function(){var a=CKEDITOR.tools.extend,e=function(c,f){for(var a=CKEDITOR.tools.clone(c),h=1;h<arguments.length;h++){var f=arguments[h],b;for(b in f)delete a[b]}return a},b={},d={},g={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},l={command:1,link:1,meta:1,noscript:1,script:1,style:1},i={},h={"#":1},k={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},h,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});a(d,g,b,k);e={a:e(b,{a:1,button:1}),abbr:b,address:d,area:i,article:d,aside:d,audio:a({source:1,track:1},d),b:b,base:i,bdi:b,bdo:b,blockquote:d,body:d,br:i,button:e(b,{a:1,button:1}),canvas:b,caption:d,cite:b,code:b,col:i,colgroup:{col:1},command:i,datalist:a({option:1},b),dd:d,del:b,details:a({summary:1},d),dfn:b,div:d,dl:{dt:1,
dd:1},dt:d,em:b,embed:i,fieldset:a({legend:1},d),figcaption:d,figure:a({figcaption:1},d),footer:d,form:d,h1:b,h2:b,h3:b,h4:b,h5:b,h6:b,head:a({title:1,base:1},l),header:d,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:i,html:a({head:1,body:1},d,l),i:b,iframe:h,img:i,input:i,ins:b,kbd:b,keygen:i,label:b,legend:b,li:d,link:i,main:d,map:d,mark:b,menu:a({li:1},d),meta:i,meter:e(b,{meter:1}),nav:d,noscript:a({link:1,meta:1,style:1},b),object:a({param:1},b),ol:{li:1},optgroup:{option:1},option:h,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:h,section:d,select:{optgroup:1,option:1},small:b,source:i,span:b,strong:b,style:h,sub:b,summary:a({h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},b),sup:b,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:d,textarea:h,tfoot:{tr:1},th:d,thead:{tr:1},time:e(b,{time:1}),title:h,tr:{th:1,td:1},track:i,u:b,ul:{li:1},"var":b,video:a({source:1,track:1},d),wbr:i,acronym:b,applet:a({param:1},d),basefont:i,
big:b,center:d,dialog:i,dir:{li:1},font:b,isindex:i,noframes:d,strike:b,tt:b};a(e,{$block:a({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},g,k),$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(d){typeof CKEDITOR!="undefined"&&a.fire(b,new CKEDITOR.dom.event(d))}};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"),
d=b&&b[a];if(d){this.$.removeEventListener?this.$.removeEventListener(a,d,false):this.$.detachEvent&&this.$.detachEvent("on"+a,d);delete b[a]}}},removeAllListeners:function(){var a=this.getCustomData("_cke_nativeListeners"),b;for(b in a){var d=a[b];this.$.detachEvent?this.$.detachEvent("on"+b,d):this.$.removeEventListener&&this.$.removeEventListener(b,d,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(d){return false}};a.setCustomData=function(a,d){var g=this.getUniqueId();(e[g]||(e[g]={}))[a]=d;return this};a.getCustomData=function(a){var d=this.$["data-cke-expando"];return(d=d&&e[d])&&a in d?d[a]:null};a.removeCustomData=function(a){var d=this.$["data-cke-expando"],d=d&&e[d],g,l;if(d){g=d[a];l=a in d;delete d[a]}return l?g: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,g=0;g<d.length;g++)b(d[g])}}function d(b){if(!(b.type!=CKEDITOR.NODE_ELEMENT&&b.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)){if(b.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var g=b.getName();g[0]==":"&&b.renameNode(g.substring(1))}if(a)for(g=0;g<b.getChildCount();g++)d(b.getChild(g))}}var g=this.$.cloneNode(a);b(g);g=new CKEDITOR.dom.node(g);CKEDITOR.env.ie&&(CKEDITOR.env.version<
9&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT))&&d(g);return g},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,
d=this.$;d&&d!=b;){var g=d.parentNode;g&&e.unshift(this.getIndex.call({$:d},a));d=g}return e},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(a){function e(a,b){var h=b?a.nextSibling:a.previousSibling;return!h||h.nodeType!=CKEDITOR.NODE_TEXT?null:h.nodeValue?h:e(h,b)}var b=this.$,d=-1,g;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&&(g||!b.nodeValue))){d++;g=b.nodeType==CKEDITOR.NODE_TEXT}while(b=b.previousSibling);return d},getNextSourceNode:function(a,e,b){if(b&&!b.call)var d=b,b=function(a){return!a.equals(d)};var a=!a&&this.getFirst&&this.getFirst(),g;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;a=this.getNext()}for(;!a&&(g=(g||this).getParent());){if(b&&b(g,true)===false)return null;a=g.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 d=b,b=function(a){return!a.equals(d)};var a=!a&&this.getLast&&this.getLast(),g;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;a=this.getPrevious()}for(;!a&&(g=(g||this).getParent());){if(b&&b(g,true)===false)return null;a=g.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),d=0;d<b;d++)if(e[d]!=a[d])return e[d]<a[d]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;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.$,d,g;if(!e)b=b.parentNode;if(typeof a=="function"){g=true;d=a}else{g=false;d=function(b){b=typeof b.nodeName=="string"?b.nodeName.toLowerCase():"";return typeof a=="string"?b==a:b in a}}for(;b;){if(d(g?new CKEDITOR.dom.node(b):b))return new CKEDITOR.dom.node(b);try{b=b.parentNode}catch(l){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());CKEDITOR.env.edge&&
(e&&e.is("textarea","input"))&&(a=true);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,d=0;b&&d<a.length;d++){var g=a[d];if(e)for(var l=-1,i=0;i<b.childNodes.length;i++){var h=b.childNodes[i];if(!(e===true&&h.nodeType==3&&h.previousSibling&&h.previousSibling.nodeType==3)){l++;if(l==g){b=h;break}}}else b=b.childNodes[g]}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,d){var g=e.getCustomData("list_marker_id")||e.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),l=e.getCustomData("list_marker_names")||e.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");
a[g]=e;l[b]=1;return e.setCustomData(b,d)},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 d=e.getCustomData("list_marker_names"),g=e.getCustomData("list_marker_id"),l;for(l in d)e.removeCustomData(l);e.removeCustomData("list_marker_names");if(b){e.removeCustomData("list_marker_id");delete a[g]}},function(){function a(a,b){return(" "+a+" ").replace(l," ").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 d(a){for(var b=0,c=0,f=i[a].length;c<f;c++)b=b+(parseInt(this.getComputedStyle(i[a][c])||0,10)||0);return b}var g=document.createElement("_").classList,g=typeof g!=="undefined"&&(""+g.add).match(/\[Native code\]/gi)!==null,l=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,
addClass:g?function(a){this.$.classList.add(a);return this}:function(h){var b=this.$.className;b&&(a(b,h)||(b=b+(" "+h)));this.$.className=b||h;return this},removeClass:g?function(a){var b=this.$;b.classList.remove(a);b.className||b.removeAttribute("class");return this}:function(h){var b=this.getAttribute("class");if(b&&a(b,h))(b=b.replace(RegExp("(?:^|\\s+)"+h+"(?=\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",b):this.removeAttribute("class");return this},hasClass:function(h){return a(this.$.className,
h)},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 f=c.extractContents(false,b||false);c.insertNode(this.remove());f.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(f){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 f=a.getItem(b);if(!(f.type==CKEDITOR.NODE_ELEMENT&&f.data("cke-bookmark"))&&(f.type==CKEDITOR.NODE_ELEMENT&&!f.isEmptyInlineRemoveable()||f.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(f.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 f;if(b)for(;f=c.lastChild;)a.insertBefore(c.removeChild(f),a.firstChild);else for(;f=c.firstChild;)a.appendChild(c.removeChild(f))}},mergeSiblings:function(){function a(b,
c,f){if(c&&c.type==CKEDITOR.NODE_ELEMENT){for(var j=[];c.data("cke-bookmark")||c.isEmptyInlineRemoveable();){j.push(c);c=f?c.getNext():c.getPrevious();if(!c||c.type!=CKEDITOR.NODE_ELEMENT)return}if(b.isIdentical(c)){for(var d=f?b.getLast():b.getFirst();j.length;)j.shift().move(b,!f);c.moveChildren(b,!f);c.remove();d&&d.type==CKEDITOR.NODE_ELEMENT&&d.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(f){}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"],f;a=="border"&&(f=["color","style","width"]);for(var b=[],j=0;j<c.length;j++)if(f)for(var d=0;d<f.length;d++)b.push([a,c[j],f[d]].join("-"));else b.push([a,c[j]].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,f=b.count();c<f;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,f=this.getDocument(),j=f.getBody(),d=f.$.compatMode=="BackCompat";if(document.documentElement.getBoundingClientRect){var g=this.$.getBoundingClientRect(),m=f.$.documentElement,e=m.clientTop||j.$.clientTop||0,l=m.clientLeft||j.$.clientLeft||0,i=true;if(CKEDITOR.env.ie){i=f.getDocumentElement().contains(this);f=f.getBody().contains(this);i=d&&f||!d&&i}if(i){if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&CKEDITOR.env.version>=12){b=j.$.scrollLeft||m.scrollLeft;c=j.$.scrollTop||m.scrollTop}else{c=d?j.$:
m;b=c.scrollLeft;c=c.scrollTop}b=g.left+b-l;c=g.top+c-e}}else{e=this;for(l=null;e&&!(e.getName()=="body"||e.getName()=="html");){b=b+(e.$.offsetLeft-e.$.scrollLeft);c=c+(e.$.offsetTop-e.$.scrollTop);if(!e.equals(this)){b=b+(e.$.clientLeft||0);c=c+(e.$.clientTop||0)}for(;l&&!l.equals(e);){b=b-l.$.scrollLeft;c=c-l.$.scrollTop;l=l.getParent()}l=e;e=(g=e.$.offsetParent)?new CKEDITOR.dom.element(g):null}}if(a){g=this.getWindow();e=a.getWindow();if(!g.equals(e)&&g.$.frameElement){a=(new CKEDITOR.dom.element(g.$.frameElement)).getDocumentPosition(a);
b=b+a.x;c=c+a.y}}if(!document.documentElement.getBoundingClientRect&&CKEDITOR.env.gecko&&!d){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 f=c.$.frameElement;f&&(b=new CKEDITOR.dom.element(f))}catch(j){}}}while(b=b.getParent())
}},scrollIntoParent:function(a,b,c){var f,j,d,g;function m(f,c){if(/body|html/.test(a.getName()))a.getWindow().$.scrollBy(f,c);else{a.$.scrollLeft=a.$.scrollLeft+f;a.$.scrollTop=a.$.scrollTop+c}}function e(a,f){var c={x:0,y:0};if(!a.is(i?"body":"html")){var b=a.$.getBoundingClientRect();c.x=b.left;c.y=b.top}b=a.getWindow();if(!b.equals(f)){b=e(CKEDITOR.dom.element.get(b.$.frameElement),f);c.x=c.x+b.x;c.y=c.y+b.y}return c}function l(a,f){return parseInt(a.getComputedStyle("margin-"+f)||0,10)||0}!a&&
(a=this.getWindow());d=a.getDocument();var i=d.$.compatMode=="BackCompat";a instanceof CKEDITOR.dom.window&&(a=i?d.getBody():d.getDocumentElement());d=a.getWindow();j=e(this,d);var v=e(a,d),u=this.$.offsetHeight;f=this.$.offsetWidth;var q=a.$.clientHeight,y=a.$.clientWidth;d=j.x-l(this,"left")-v.x||0;g=j.y-l(this,"top")-v.y||0;f=j.x+f+l(this,"right")-(v.x+y)||0;j=j.y+u+l(this,"bottom")-(v.y+q)||0;if(g<0||j>0)m(0,b===true?g:b===false?j:g<0?g:j);if(c&&(d<0||f>0))m(d<0?d:f,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||{},f=0;f<c.length;f++){var j=c[f],d=j.nodeName.toLowerCase(),g;if(!(d in b))if(d=="checked"&&(g=this.getAttribute(d)))a.setAttribute(d,g);else if(!CKEDITOR.env.ie||this.hasAttribute(d)){g=this.getAttribute(d);
if(g===null)g=j.nodeValue;a.setAttribute(d,g)}}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 f=b.childNodes;if(c>=0&&c<f.length)return f[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(){function a(b){return b.type==CKEDITOR.NODE_ELEMENT&&b.hasClass("cke_enable_context_menu")}this.on("contextmenu",function(b){b.data.getTarget().getAscendant(a,true)||b.data.preventDefault()})},getDirection:function(a){return a?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&
this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(a,b){a="data-"+a;if(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 f=a(this);if(f!==false)for(var c=this.getChildren(),j=0;j<c.count();j++){f=c.getItem(j);f.type==CKEDITOR.NODE_ELEMENT?f.forEach(a,b):(!b||f.type==b)&&a(f)}}});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-d.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-d.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,f){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 c,d=b.startContainer;c=b.endContainer;var g=b.startOffset,h=b.endOffset,e,l=this.guard,k=this.type,i=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var w=c.type==CKEDITOR.NODE_ELEMENT?c:c.getParent(),o=c.type==
CKEDITOR.NODE_ELEMENT?c.getChild(h):c.getNext();this._.guardLTR=function(a,f){return(!f||!w.equals(a))&&(!o||!a.equals(o))&&(a.type!=CKEDITOR.NODE_ELEMENT||!f||!a.equals(b.root))}}if(a&&!this._.guardRTL){var z=d.type==CKEDITOR.NODE_ELEMENT?d:d.getParent(),x=d.type==CKEDITOR.NODE_ELEMENT?g?d.getChild(g-1):null:d.getPrevious();this._.guardRTL=function(a,f){return(!f||!z.equals(a))&&(!x||!a.equals(x))&&(a.type!=CKEDITOR.NODE_ELEMENT||!f||!a.equals(b.root))}}var C=a?this._.guardRTL:this._.guardLTR;e=
l?function(a,f){return C(a,f)===false?false:l(a,f)}:C;if(this.current)c=this.current[i](false,k,e);else{if(a)c.type==CKEDITOR.NODE_ELEMENT&&(c=h>0?c.getChild(h-1):e(c,true)===false?null:c.getPreviousSourceNode(true,k,e));else{c=d;if(c.type==CKEDITOR.NODE_ELEMENT&&!(c=c.getChild(g)))c=e(d,true)===false?null:d.getNextSourceNode(true,k,e)}c&&e(c)===false&&(c=null)}for(;c&&!this._.end;){this.current=c;if(!this.evaluator||this.evaluator(c)!==false){if(!f)return c}else if(f&&this.evaluator)return false;
c=c[i](false,k,e)}this.end();return this.current=null}function e(f){for(var c,b=null;c=a.call(this,f);)b=c;return b}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},d={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(a){return this.getComputedStyle("float")=="none"&&!(this.getComputedStyle("position")in d)&&b[this.getComputedStyle("display")]?true:!!(this.is(CKEDITOR.dtd.$block)||a&&this.is(a))};
CKEDITOR.dom.walker.blockBoundary=function(a){return function(f){return!(f.type==CKEDITOR.NODE_ELEMENT&&f.isBlockBoundary(a))}};CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(a,f){function c(a){return a&&a.getName&&a.getName()=="span"&&a.data("cke-bookmark")}return function(b){var d,g;d=b&&b.type!=CKEDITOR.NODE_ELEMENT&&(g=b.getParent())&&c(g);d=a?d:d||c(b);return!!(f^d)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(f){var c;
f&&f.type==CKEDITOR.NODE_TEXT&&(c=!CKEDITOR.tools.trim(f.getText())||CKEDITOR.env.webkit&&f.getText()=="​");return!!(a^c)}};CKEDITOR.dom.walker.invisible=function(a){var f=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.env.webkit?1:0;return function(b){if(f(b))b=1;else{b.type==CKEDITOR.NODE_TEXT&&(b=b.getParent());b=b.$.offsetWidth<=c}return!!(a^b)}};CKEDITOR.dom.walker.nodeType=function(a,f){return function(b){return!!(f^b.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function f(a){return!l(a)&&
!i(a)}return function(b){var c=CKEDITOR.env.needsBrFiller?b.is&&b.is("br"):b.getText&&g.test(b.getText());if(c){c=b.getParent();b=b.getNext(f);c=c.isBlockBoundary()&&(!b||b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary())}return!!(a^c)}};CKEDITOR.dom.walker.temp=function(a){return function(f){f.type!=CKEDITOR.NODE_ELEMENT&&(f=f.getParent());f=f&&f.hasAttribute("data-cke-temp");return!!(a^f)}};var g=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,l=CKEDITOR.dom.walker.whitespaces(),i=CKEDITOR.dom.walker.bookmark(),
h=CKEDITOR.dom.walker.temp();CKEDITOR.dom.walker.ignored=function(a){return function(f){f=l(f)||i(f)||h(f);return!!(a^f)}};var k=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(a){return function(f){for(var b=0,c=f.getChildCount();b<c;++b)if(!k(f.getChild(b)))return!!a;return!a}};var c=CKEDITOR.dom.walker.empty(),f=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(a){var f={},b;for(b in a)CKEDITOR.dtd[b]["#"]&&(f[b]=1);return f}(CKEDITOR.dtd.$block),{caption:1,
td:1,th:1});CKEDITOR.dom.walker.editable=function(a){return function(b){return!!(a^(k(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(f)&&c(b))?1:0))}};CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(i(a)||l(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&&g.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,b,c,d,m){function g(a,f,b,c){var j=b?a.getPrevious():a.getNext();
if(c&&k)return j;if(i||c)f.append(a.clone(true,m),b);else{a.remove();l&&f.append(a)}return j}function h(){var a,f,b,c=Math.min(B.length,J.length);for(a=0;a<c;a++){f=B[a];b=J[a];if(!f.equals(b))return a}return a-1}function e(){var b=N-1,c=A&&G&&!y.equals(w);if(b<I-1||b<Q-1||c){c?a.moveToPosition(w,CKEDITOR.POSITION_BEFORE_START):Q==b+1&&C?a.moveToPosition(J[b],CKEDITOR.POSITION_BEFORE_END):a.moveToPosition(J[b+1],CKEDITOR.POSITION_BEFORE_START);if(d)if((b=B[b+1])&&b.type==CKEDITOR.NODE_ELEMENT){c=
CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none">&nbsp;</span>',a.document);c.insertAfter(b);b.mergeSiblings(false);a.moveToBookmark({startNode:c})}}else a.collapse(true)}a.optimizeBookmark();var k=b===0,l=b==1,i=b==2,b=i||l,y=a.startContainer,w=a.endContainer,o=a.startOffset,z=a.endOffset,x,C,A,G,D,L;if(i&&w.type==CKEDITOR.NODE_TEXT&&y.equals(w)){y=a.document.createText(y.substring(o,z));c.append(y)}else{if(w.type==CKEDITOR.NODE_TEXT)i?L=true:w=w.split(z);else if(w.getChildCount()>
0)if(z>=w.getChildCount()){w=w.getChild(z-1);C=true}else w=w.getChild(z);else G=C=true;if(y.type==CKEDITOR.NODE_TEXT)i?D=true:y.split(o);else if(y.getChildCount()>0)if(o===0){y=y.getChild(o);x=true}else y=y.getChild(o-1);else A=x=true;for(var B=y.getParents(),J=w.getParents(),N=h(),I=B.length-1,Q=J.length-1,K=c,T,U,O,$=-1,P=N;P<=I;P++){U=B[P];O=U.getNext();for(P==I&&!(U.equals(J[P])&&I<Q)?x?g(U,K,false,A):D&&K.append(a.document.createText(U.substring(o))):b&&(T=K.append(U.clone(0,m)));O;){if(O.equals(J[P])){$=
P;break}O=g(O,K)}K=T}K=c;for(P=N;P<=Q;P++){c=J[P];O=c.getPrevious();if(c.equals(B[P]))b&&(K=K.getChild(0));else{P==Q&&!(c.equals(B[P])&&Q<I)?C?g(c,K,false,G):L&&K.append(a.document.createText(c.substring(0,z))):b&&(T=K.append(c.clone(0,m)));if(P>$)for(;O;)O=g(O,K,true);K=T}}i||e()}}function b(){var a=false,b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(true),d=CKEDITOR.dom.walker.bogus();return function(m){if(c(m)||b(m))return true;if(d(m)&&!a)return a=true;return m.type==CKEDITOR.NODE_TEXT&&
(m.hasAscendant("pre")||CKEDITOR.tools.trim(m.getText()).length)||m.type==CKEDITOR.NODE_ELEMENT&&!m.is(l)?false:true}}function d(a){var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(1);return function(d){return c(d)||b(d)?true:!a&&i(d)||d.type==CKEDITOR.NODE_ELEMENT&&d.is(CKEDITOR.dtd.$removeEmpty)}}function g(a){return function(){var b;return this[a?"getPreviousNode":"getNextNode"](function(a){!b&&c(a)&&(b=a);return k(a)&&!(i(a)&&a.equals(b))})}}var l={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(),h=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,k=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 b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||e(this,2,b,false,typeof a=="undefined"?true:a);return b},deleteContents:function(a){this.collapsed||e(this,0,null,a)},extractContents:function(a,b){var c=new CKEDITOR.dom.documentFragment(this.document);
this.collapsed||e(this,1,c,a,typeof b=="undefined"?true:b);return c},createBookmark:function(a){var b,c,d,m,g=this.collapsed;b=this.document.createElement("span");b.data("cke-bookmark",1);b.setStyle("display","none");b.setHtml("&nbsp;");if(a){d="cke_bm_"+CKEDITOR.tools.getNextNumber();b.setAttribute("id",d+(g?"C":"S"))}if(!g){c=b.clone();c.setHtml("&nbsp;");a&&c.setAttribute("id",d+"E");m=this.clone();m.collapse();m.insertNode(c)}m=this.clone();m.collapse(true);m.insertNode(b);if(c){this.setStartAfter(b);
this.setEndBefore(c)}else this.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);return{startNode:a?d+(g?"C":"S"):b,endNode:a?d+"E":c,serializable:a,collapsed:g}},createBookmark2:function(){function a(f){var c=f.container,d=f.offset,g;g=c;var h=d;g=g.type!=CKEDITOR.NODE_ELEMENT||h===0||h==g.getChildCount()?0:g.getChild(h-1).type==CKEDITOR.NODE_TEXT&&g.getChild(h).type==CKEDITOR.NODE_TEXT;if(g){c=c.getChild(d-1);d=c.getLength()}c.type==CKEDITOR.NODE_ELEMENT&&d>1&&(d=c.getChild(d-1).getIndex(true)+1);if(c.type==
CKEDITOR.NODE_TEXT){g=c;for(h=0;(g=g.getPrevious())&&g.type==CKEDITOR.NODE_TEXT;)h=h+g.getLength();g=h;if(c.getText())d=d+g;else{h=c.getPrevious(b);if(g){d=g;c=h?h.getNext():c.getParent().getFirst()}else{c=c.getParent();d=h?h.getIndex(true)+1:0}}}f.container=c;f.offset=d}var b=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,true);return function(b){var c=this.collapsed,d={container:this.startContainer,offset:this.startOffset},j={container:this.endContainer,offset:this.endOffset};if(b){a(d);c||a(j)}return{start:d.container.getAddress(b),
end:c?null:j.container.getAddress(b),startOffset:d.offset,endOffset:j.offset,normalized:b,collapsed:c,is2:true}}}(),moveToBookmark:function(a){if(a.is2){var b=this.document.getByAddress(a.start,a.normalized),c=a.startOffset,d=a.end&&this.document.getByAddress(a.end,a.normalized),a=a.endOffset;this.setStart(b,c);d?this.setEnd(d,a):this.collapse(true)}else{b=(c=a.serializable)?this.document.getById(a.startNode):a.startNode;a=c?this.document.getById(a.endNode):a.endNode;this.setStartBefore(b);b.remove();
if(a){this.setEndBefore(a);a.remove()}else this.collapse(true)}},getBoundaryNodes:function(){var a=this.startContainer,b=this.endContainer,c=this.startOffset,d=this.endOffset,g;if(a.type==CKEDITOR.NODE_ELEMENT){g=a.getChildCount();if(g>c)a=a.getChild(c);else if(g<1)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a);a=a.getNextSourceNode()||a}}if(b.type==CKEDITOR.NODE_ELEMENT){g=b.getChildCount();if(g>d)b=b.getChild(d).getPreviousSourceNode(true);else if(g<
1)b=b.getPreviousSourceNode();else{for(b=b.$;b.lastChild;)b=b.lastChild;b=new CKEDITOR.dom.node(b)}}a.getPosition(b)&CKEDITOR.POSITION_FOLLOWING&&(a=b);return{startNode:a,endNode:b}},getCommonAncestor:function(a,b){var c=this.startContainer,d=this.endContainer,c=c.equals(d)?a&&c.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?c.getChild(this.startOffset):c:c.getCommonAncestor(d);return b&&!c.is?c.getParent():c},optimize:function(){var a=this.startContainer,b=this.startOffset;a.type!=
CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setStartAfter(a):this.setStartBefore(a));a=this.endContainer;b=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))},optimizeBookmark:function(){var a=this.startContainer,b=this.endContainer;a.is&&(a.is("span")&&a.data("cke-bookmark"))&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);b&&(b.is&&b.is("span")&&b.data("cke-bookmark"))&&this.setEndAt(b,CKEDITOR.POSITION_AFTER_END)},trim:function(a,
b){var c=this.startContainer,d=this.startOffset,g=this.collapsed;if((!a||g)&&c&&c.type==CKEDITOR.NODE_TEXT){if(d)if(d>=c.getLength()){d=c.getIndex()+1;c=c.getParent()}else{var h=c.split(d),d=c.getIndex()+1,c=c.getParent();if(this.startContainer.equals(this.endContainer))this.setEnd(h,this.endOffset-this.startOffset);else if(c.equals(this.endContainer))this.endOffset=this.endOffset+1}else{d=c.getIndex();c=c.getParent()}this.setStart(c,d);if(g){this.collapse(true);return}}c=this.endContainer;d=this.endOffset;
if(!b&&!g&&c&&c.type==CKEDITOR.NODE_TEXT){if(d){d>=c.getLength()||c.split(d);d=c.getIndex()+1}else d=c.getIndex();c=c.getParent();this.setEnd(c,d)}},enlarge:function(a,b){function c(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")?null:a}var d=RegExp(/[^\s\ufeff]/);switch(a){case CKEDITOR.ENLARGE_INLINE:var g=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed)break;var h=this.getCommonAncestor(),e=this.root,l,k,i,q,y,w=false,o,z;o=this.startContainer;var x=this.startOffset;
if(o.type==CKEDITOR.NODE_TEXT){if(x){o=!CKEDITOR.tools.trim(o.substring(0,x)).length&&o;w=!!o}if(o&&!(q=o.getPrevious()))i=o.getParent()}else{x&&(q=o.getChild(x-1)||o.getLast());q||(i=o)}for(i=c(i);i||q;){if(i&&!q){!y&&i.equals(h)&&(y=true);if(g?i.isBlockBoundary():!e.contains(i))break;if(!w||i.getComputedStyle("display")!="inline"){w=false;y?l=i:this.setStartBefore(i)}q=i.getPrevious()}for(;q;){o=false;if(q.type==CKEDITOR.NODE_COMMENT)q=q.getPrevious();else{if(q.type==CKEDITOR.NODE_TEXT){z=q.getText();
d.test(z)&&(q=null);o=/[\s\ufeff]$/.test(z)}else if((q.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||b&&q.is("br"))&&!q.data("cke-bookmark"))if(w&&CKEDITOR.dtd.$removeEmpty[q.getName()]){z=q.getText();if(d.test(z))q=null;else for(var x=q.$.getElementsByTagName("*"),C=0,A;A=x[C++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){q=null;break}q&&(o=!!z.length)}else q=null;o&&(w?y?l=i:i&&this.setStartBefore(i):w=true);if(q){o=q.getPrevious();if(!i&&!o){i=q;q=null;break}q=o}else i=null}}i&&(i=c(i.getParent()))}o=
this.endContainer;x=this.endOffset;i=q=null;y=w=false;var G=function(a,b){var c=new CKEDITOR.dom.range(e);c.setStart(a,b);c.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);var c=new CKEDITOR.dom.walker(c),f;for(c.guard=function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};f=c.next();){if(f.type!=CKEDITOR.NODE_TEXT)return false;z=f!=a?f.getText():f.substring(b);if(d.test(z))return false}return true};if(o.type==CKEDITOR.NODE_TEXT)if(CKEDITOR.tools.trim(o.substring(x)).length)w=true;else{w=
!o.getLength();if(x==o.getLength()){if(!(q=o.getNext()))i=o.getParent()}else G(o,x)&&(i=o.getParent())}else(q=o.getChild(x))||(i=o);for(;i||q;){if(i&&!q){!y&&i.equals(h)&&(y=true);if(g?i.isBlockBoundary():!e.contains(i))break;if(!w||i.getComputedStyle("display")!="inline"){w=false;y?k=i:i&&this.setEndAfter(i)}q=i.getNext()}for(;q;){o=false;if(q.type==CKEDITOR.NODE_TEXT){z=q.getText();G(q,0)||(q=null);o=/^[\s\ufeff]/.test(z)}else if(q.type==CKEDITOR.NODE_ELEMENT){if((q.$.offsetWidth>0||b&&q.is("br"))&&
!q.data("cke-bookmark"))if(w&&CKEDITOR.dtd.$removeEmpty[q.getName()]){z=q.getText();if(d.test(z))q=null;else{x=q.$.getElementsByTagName("*");for(C=0;A=x[C++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){q=null;break}}q&&(o=!!z.length)}else q=null}else o=1;o&&w&&(y?k=i:this.setEndAfter(i));if(q){o=q.getNext();if(!i&&!o){i=q;q=null;break}q=o}else i=null}i&&(i=c(i.getParent()))}if(l&&k){h=l.contains(k)?k:l;this.setStartBefore(h);this.setEndAfter(h)}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 D,L,B=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),J=null,N=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&a.getAttribute("contenteditable")=="false")if(J){if(J.equals(a)){J=null;return}}else J=a;else if(J)return;var b=B(a);b||(D=a);return b},g=function(a){var b=N(a);!b&&(a.is&&a.is("br"))&&
(L=a);return b};i.guard=N;i=i.lastBackward();D=D||e;this.setStartAt(D,!D.is("br")&&(!i&&this.checkStartOfBlock()||i&&D.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 I=CKEDITOR.dom.walker.whitespaces(),Q=CKEDITOR.dom.walker.bookmark();i.evaluator=function(a){return!I(a)&&!Q(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?g:N;D=J=L=null;i=i.lastForward();D=D||e;this.setEndAt(D,!i&&this.checkEndOfBlock()||i&&D.contains(i)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);L&&this.setEndAfter(L)}},shrink:function(a,b,c){if(!this.collapsed){var a=a||CKEDITOR.SHRINK_TEXT,d=this.clone(),g=this.startContainer,h=this.endContainer,e=this.startOffset,l=this.endOffset,k=1,i=1;if(g&&g.type==CKEDITOR.NODE_TEXT)if(e)if(e>=
g.getLength())d.setStartAfter(g);else{d.setStartBefore(g);k=0}else d.setStartBefore(g);if(h&&h.type==CKEDITOR.NODE_TEXT)if(l)if(l>=h.getLength())d.setEndAfter(h);else{d.setEndAfter(h);i=0}else d.setEndBefore(h);var d=new CKEDITOR.dom.walker(d),q=CKEDITOR.dom.walker.bookmark();d.evaluator=function(b){return b.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var y;d.guard=function(b,d){if(q(b))return true;if(a==CKEDITOR.SHRINK_ELEMENT&&b.type==CKEDITOR.NODE_TEXT||d&&b.equals(y)||
c===false&&b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()||b.type==CKEDITOR.NODE_ELEMENT&&b.hasAttribute("contenteditable"))return false;!d&&b.type==CKEDITOR.NODE_ELEMENT&&(y=b);return true};if(k)(g=d[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(g,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);if(i){d.reset();(d=d[a==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(d,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)}return!(!k&&
!i)}},insertNode:function(a){this.optimizeBookmark();this.trim(false,true);var b=this.startContainer,c=b.getChild(this.startOffset);c?a.insertBefore(c):b.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,b){this.setStartAt(a,b);this.collapse(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(b,c){if(b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]){c=b.getIndex();b=b.getParent()}this._setStartContainer(b);this.startOffset=c;if(!this.endContainer){this._setEndContainer(b);this.endOffset=c}a(this)},setEnd:function(b,c){if(b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]){c=b.getIndex()+1;b=b.getParent()}this._setEndContainer(b);this.endOffset=c;if(!this.startContainer){this._setStartContainer(b);
this.startOffset=c}a(this)},setStartAfter:function(a){this.setStart(a.getParent(),a.getIndex()+1)},setStartBefore:function(a){this.setStart(a.getParent(),a.getIndex())},setEndAfter:function(a){this.setEnd(a.getParent(),a.getIndex()+1)},setEndBefore:function(a){this.setEnd(a.getParent(),a.getIndex())},setStartAt:function(b,c){switch(c){case CKEDITOR.POSITION_AFTER_START:this.setStart(b,0);break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setStart(b,b.getLength()):this.setStart(b,
b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(b);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(b)}a(this)},setEndAt:function(b,c){switch(c){case CKEDITOR.POSITION_AFTER_START:this.setEnd(b,0);break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setEnd(b,b.getLength()):this.setEnd(b,b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(b);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(b)}a(this)},fixBlock:function(a,
b){var c=this.createBookmark(),d=this.document.createElement(b);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(d);d.trim();this.insertNode(d);var g=d.getBogus();g&&g.remove();d.appendBogus();this.moveToBookmark(c);return d},splitBlock:function(a,b){var c=new CKEDITOR.dom.elementPath(this.startContainer,this.root),d=new CKEDITOR.dom.elementPath(this.endContainer,this.root),g=c.block,h=d.block,e=null;if(!c.blockLimit.equals(d.blockLimit))return null;if(a!=
"br"){if(!g){g=this.fixBlock(true,a);h=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block}h||(h=this.fixBlock(false,a))}c=g&&this.checkStartOfBlock();d=h&&this.checkEndOfBlock();this.deleteContents();if(g&&g.equals(h))if(d){e=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(h,CKEDITOR.POSITION_AFTER_END);h=null}else if(c){e=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START);g=null}else{h=this.splitElement(g,
b||false);g.is("ul","ol")||g.appendBogus()}return{previousBlock:g,nextBlock:h,wasStartOfBlock:c,wasEndOfBlock:d,elementPath:e}},splitElement:function(a,b){if(!this.collapsed)return null;this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var c=this.extractContents(false,b||false),d=a.clone(false,b||false);c.appendTo(d);d.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return d},removeEmptyBlocksAtEnd:function(){function a(f){return function(a){return b(a)||(c(a)||a.type==CKEDITOR.NODE_ELEMENT&&
a.isEmptyInlineRemoveable())||f.is("table")&&a.is("caption")?false:true}}var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(false);return function(b){for(var c=this.createBookmark(),d=this[b?"endPath":"startPath"](),j=d.block||d.blockLimit,g;j&&!j.equals(d.root)&&!j.getFirst(a(j));){g=j.getParent();this[b?"setEndAt":"setStartAt"](j,CKEDITOR.POSITION_AFTER_END);j.remove(1);j=g}this.moveToBookmark(c)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,
this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(a,b){var c=b==CKEDITOR.START,g=this.clone();g.collapse(c);g[c?"setStartAt":"setEndAt"](a,c?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);g=new CKEDITOR.dom.walker(g);g.evaluator=d(c);return g[c?"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));h.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));h.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,b,c){var d=this.clone();d.collapse(1);d.setStartAt(c||this.root,CKEDITOR.POSITION_AFTER_START);c=new CKEDITOR.dom.walker(d);c.evaluator=a;c.guard=b;return c.previous()},getNextNode:function(a,b,c){var d=this.clone();d.collapse();d.setEndAt(c||this.root,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(d);
c.evaluator=a;c.guard=b;return c.next()},checkReadOnly:function(){function a(b,c){for(;b;){if(b.type==CKEDITOR.NODE_ELEMENT){if(b.getAttribute("contentEditable")=="false"&&!b.data("cke-editable"))return 0;if(b.is("html")||b.getAttribute("contentEditable")=="true"&&(b.contains(c)||b.equals(c)))break}b=b.getParent()}return 1}return function(){var b=this.startContainer,c=this.endContainer;return!(a(b,c)&&a(c,b))}}(),moveToElementEditablePosition:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable(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()&&h.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 g=a,e=d,k=void 0;g.type==CKEDITOR.NODE_ELEMENT&&g.isEditable(false)&&(k=g[b?"getLast":"getFirst"](c));!e&&!k&&(k=g[b?"getPrevious":"getNext"](c));a=k}return!!d},moveToClosestEditablePosition:function(a,b){var c,d=0,g,h,e=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];if(a){c=
new CKEDITOR.dom.range(this.root);c.moveToPosition(a,e[b?0:1])}else c=this.clone();if(a&&!a.is(CKEDITOR.dtd.$block))d=1;else if(g=c[b?"getNextEditableNode":"getPreviousEditableNode"]()){d=1;if((h=g.type==CKEDITOR.NODE_ELEMENT)&&g.is(CKEDITOR.dtd.$block)&&g.getAttribute("contenteditable")=="false"){c.setStartAt(g,CKEDITOR.POSITION_BEFORE_START);c.setEndAt(g,CKEDITOR.POSITION_AFTER_END)}else if(!CKEDITOR.env.needsBrFiller&&h&&g.is(CKEDITOR.dom.walker.validEmptyBlockContainers)){c.setEnd(g,0);c.collapse()}else c.moveToPosition(g,
e[b?1:0])}d&&this.moveToRange(c);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),b=CKEDITOR.dom.walker.bookmark(false,true),c=CKEDITOR.dom.walker.whitespaces(true);a.evaluator=function(a){return c(a)&&
b(a)};var d=a.next();a.reset();return d&&d.equals(a.previous())?d:null},getTouchedStartNode:function(){var a=this.startContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.startOffset)||a},getTouchedEndNode:function(){var a=this.endContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.endOffset-1)||a},getNextEditableNode:g(),getPreviousEditableNode:g(1),scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("<span>&nbsp;</span>",
this.document),b,c,d,g=this.clone();g.optimize();if(d=g.startContainer.type==CKEDITOR.NODE_TEXT){c=g.startContainer.getText();b=g.startContainer.split(g.startOffset);a.insertAfter(g.startContainer)}else g.insertNode(a);a.scrollIntoView();if(d){g.startContainer.setText(c);b.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,f,d,g){a:{g==null&&(g=e(d));for(var h;h=g.shift();)if(h.getDtd().p){g={element:h,remaining:g};break a}g=null}if(!g)return 0;if((h=CKEDITOR.filter.instances[g.element.data("cke-filter")])&&!h.check(f))return b(a,f,d,g.remaining);f=new CKEDITOR.dom.range(g.element);f.selectNodeContents(g.element);f=f.createIterator();f.enlargeBr=a.enlargeBr;f.enforceRealBlocks=a.enforceRealBlocks;f.activeFilter=f.filter=h;a._.nestedEditable={element:g.element,container:d,remaining:g.remaining,
iterator:f};return 1}function d(a,b,d){if(!b)return false;a=a.clone();a.collapse(!d);return a.checkBoundaryOfElement(b,d?CKEDITOR.START:CKEDITOR.END)}var g=/^[\r\n\t ]+$/,l=CKEDITOR.dom.walker.bookmark(false,true),i=CKEDITOR.dom.walker.whitespaces(true),h=function(a){return l(a)&&i(a)},k={dd:1,dt:1,li:1};a.prototype={getNextParagraph:function(a){var f,j,e,i,m,a=a||"p";if(this._.nestedEditable){if(f=this._.nestedEditable.iterator.getNextParagraph(a)){this.activeFilter=this._.nestedEditable.iterator.activeFilter;
return f}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 r=this.range.clone();j=r.startPath();var p=r.endPath(),s=!r.collapsed&&d(r,j.block),v=!r.collapsed&&d(r,p.block,1);r.shrink(CKEDITOR.SHRINK_ELEMENT,true);s&&r.setStartAt(j.block,
CKEDITOR.POSITION_BEFORE_END);v&&r.setEndAt(p.block,CKEDITOR.POSITION_AFTER_START);j=r.endContainer.hasAscendant("pre",true)||r.startContainer.hasAscendant("pre",true);r.enlarge(this.forceBrBreak&&!j||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(!r.collapsed){j=new CKEDITOR.dom.walker(r.clone());p=CKEDITOR.dom.walker.bookmark(true,true);j.evaluator=p;this._.nextNode=j.next();j=new CKEDITOR.dom.walker(r.clone());j.evaluator=p;j=j.previous();this._.lastNode=
j.getNextSourceNode(true,null,r.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||!r.root.contains(this._.lastNode)){this._.lastNode=this._.docEndMarker=
r.document.createText("");this._.lastNode.insertAfter(j)}r=null}this._.started=1;j=r}p=this._.nextNode;r=this._.lastNode;for(this._.nextNode=null;p;){var s=0,v=p.hasAscendant("pre"),u=p.type!=CKEDITOR.NODE_ELEMENT,q=0;if(u)p.type==CKEDITOR.NODE_TEXT&&g.test(p.getText())&&(u=0);else{var y=p.getName();if(CKEDITOR.dtd.$block[y]&&p.getAttribute("contenteditable")=="false"){f=p;b(this,a,f);break}else if(p.isBlockBoundary(this.forceBrBreak&&!v&&{br:1})){if(y=="br")u=1;else if(!j&&!p.getChildCount()&&y!=
"hr"){f=p;e=p.equals(r);break}if(j){j.setEndAt(p,CKEDITOR.POSITION_BEFORE_START);if(y!="br")this._.nextNode=p}s=1}else{if(p.getFirst()){if(!j){j=this.range.clone();j.setStartAt(p,CKEDITOR.POSITION_BEFORE_START)}p=p.getFirst();continue}u=1}}if(u&&!j){j=this.range.clone();j.setStartAt(p,CKEDITOR.POSITION_BEFORE_START)}e=(!s||u)&&p.equals(r);if(j&&!s)for(;!p.getNext(h)&&!e;){y=p.getParent();if(y.isBlockBoundary(this.forceBrBreak&&!v&&{br:1})){s=1;u=0;e||y.equals(r);j.setEndAt(y,CKEDITOR.POSITION_BEFORE_END);
break}p=y;u=1;e=p.equals(r);q=1}u&&j.setEndAt(p,CKEDITOR.POSITION_AFTER_END);p=this._getNextSourceNode(p,q,r);if((e=!p)||s&&j)break}if(!f){if(!j){this._.docEndMarker&&this._.docEndMarker.remove();return this._.nextNode=null}f=new CKEDITOR.dom.elementPath(j.startContainer,j.root);p=f.blockLimit;s={div:1,th:1,td:1};f=f.block;if(!f&&p&&!this.enforceRealBlocks&&s[p.getName()]&&j.checkStartOfBlock()&&j.checkEndOfBlock()&&!p.equals(j.root))f=p;else if(!f||this.enforceRealBlocks&&f.is(k)){f=this.range.document.createElement(a);
j.extractContents().appendTo(f);f.trim();j.insertNode(f);i=m=true}else if(f.getName()!="li"){if(!j.checkStartOfBlock()||!j.checkEndOfBlock()){f=f.clone(false);j.extractContents().appendTo(f);f.trim();m=j.splitBlock();i=!m.wasStartOfBlock;m=!m.wasEndOfBlock;j.insertNode(f)}}else if(!e)this._.nextNode=f.equals(r)?null:this._getNextSourceNode(j.getBoundaryNodes().endNode,1,r)}if(i)(i=f.getPrevious())&&i.type==CKEDITOR.NODE_ELEMENT&&(i.getName()=="br"?i.remove():i.getLast()&&i.getLast().$.nodeName.toLowerCase()==
"br"&&i.getLast().remove());if(m)(i=f.getLast())&&i.type==CKEDITOR.NODE_ELEMENT&&i.getName()=="br"&&(!CKEDITOR.env.needsBrFiller||i.getPrevious(l)||i.getNext(l))&&i.remove();if(!this._.nextNode)this._.nextNode=e||f.equals(r)||!r?null:this._getNextSourceNode(f,1,r);return f},_getNextSourceNode:function(a,b,d){function g(a){return!(a.equals(d)||a.equals(h))}for(var h=this.range.root,a=a.getNextSourceNode(b,null,g);!l(a);)a=a.getNextSourceNode(b,null,g);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(d){return!d&&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,contentsCss:CKEDITOR.getUrl("contents.css"),extraPlugins:"",removePlugins:"",
protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1E4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function a(a,b,c,f,d){var g,j,a=[];for(g in b){j=b[g];j=typeof j=="boolean"?{}:typeof j=="function"?{match:j}:G(j);if(g.charAt(0)!="$")j.elements=g;if(c)j.featureName=c.toLowerCase();var h=j;h.elements=i(h.elements,/\s+/)||null;h.propertiesOnly=h.propertiesOnly||h.elements===true;var e=/\s*,\s*/,w=void 0;for(w in J){h[w]=i(h[w],e)||null;var m=h,B=N[w],k=i(h[N[w]],
e),o=h[w],l=[],r=true,x=void 0;k?r=false:k={};for(x in o)if(x.charAt(0)=="!"){x=x.slice(1);l.push(x);k[x]=true;r=false}for(;x=l.pop();){o[x]=o["!"+x];delete o["!"+x]}m[B]=(r?false:k)||null}h.match=h.match||null;f.push(j);a.push(j)}for(var b=d.elements,d=d.generic,I,c=0,f=a.length;c<f;++c){g=G(a[c]);j=g.classes===true||g.styles===true||g.attributes===true;h=g;w=B=e=void 0;for(e in J)h[e]=s(h[e]);m=true;for(w in N){e=N[w];B=h[e];k=[];o=void 0;for(o in B)o.indexOf("*")>-1?k.push(RegExp("^"+o.replace(/\*/g,
".*")+"$")):k.push(o);B=k;if(B.length){h[e]=B;m=false}}h.nothingRequired=m;h.noProperties=!(h.attributes||h.classes||h.styles);if(g.elements===true||g.elements===null)d[j?"unshift":"push"](g);else{h=g.elements;delete g.elements;for(I in h)if(b[I])b[I][j?"unshift":"push"](g);else b[I]=[g]}}}function e(a,c,f,d){if(!a.match||a.match(c))if(d||h(a,c)){if(!a.propertiesOnly)f.valid=true;if(!f.allAttributes)f.allAttributes=b(a.attributes,c.attributes,f.validAttributes);if(!f.allStyles)f.allStyles=b(a.styles,
c.styles,f.validStyles);if(!f.allClasses){a=a.classes;c=c.classes;d=f.validClasses;if(a)if(a===true)a=true;else{for(var g=0,j=c.length,e;g<j;++g){e=c[g];d[e]||(d[e]=a(e))}a=false}else a=false;f.allClasses=a}}}function b(a,b,c){if(!a)return false;if(a===true)return true;for(var f in b)c[f]||(c[f]=a(f));return false}function d(a,b,c){if(!a.match||a.match(b)){if(a.noProperties)return false;c.hadInvalidAttribute=g(a.attributes,b.attributes)||c.hadInvalidAttribute;c.hadInvalidStyle=g(a.styles,b.styles)||
c.hadInvalidStyle;a=a.classes;b=b.classes;if(a){for(var f=false,d=a===true,j=b.length;j--;)if(d||a(b[j])){b.splice(j,1);f=true}a=f}else a=false;c.hadInvalidClass=a||c.hadInvalidClass}}function g(a,b){if(!a)return false;var c=false,f=a===true,d;for(d in b)if(f||a(d)){delete b[d];c=true}return c}function l(a,b,c){if(a.disabled||a.customConfig&&!c||!b)return false;a._.cachedChecks={};return true}function i(a,b){if(!a)return false;if(a===true)return a;if(typeof a=="string"){a=D(a);return a=="*"?true:
CKEDITOR.tools.convertArrayToObject(a.split(b))}if(CKEDITOR.tools.isArray(a))return a.length?CKEDITOR.tools.convertArrayToObject(a):false;var c={},f=0,d;for(d in a){c[d]=a[d];f++}return f?c:false}function h(a,b){if(a.nothingRequired)return true;var c,f,d,g;if(d=a.requiredClasses){g=b.classes;for(c=0;c<d.length;++c){f=d[c];if(typeof f=="string"){if(CKEDITOR.tools.indexOf(g,f)==-1)return false}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(g,f))return false}}return k(b.styles,a.requiredStyles)&&
k(b.attributes,a.requiredAttributes)}function k(a,b){if(!b)return true;for(var c=0,f;c<b.length;++c){f=b[c];if(typeof f=="string"){if(!(f in a))return false}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(a,f))return false}return true}function c(a){if(!a)return{};for(var a=a.split(/\s*,\s*/).sort(),b={};a.length;)b[a.shift()]=L;return b}function f(a){for(var b,c,f,d,g={},h=1,a=D(a);b=a.match(I);){if(c=b[2]){f=j(c,"styles");d=j(c,"attrs");c=j(c,"classes")}else f=d=c=null;g["$"+h++]={elements:b[1],
classes:c,styles:f,attributes:d};a=a.slice(b[0].length)}return g}function j(a,b){var c=a.match(Q[b]);return c?D(c[1]):null}function t(a){var b=a.styleBackup=a.attributes.style,c=a.classBackup=a.attributes["class"];if(!a.styles)a.styles=CKEDITOR.tools.parseCssText(b||"",1);if(!a.classes)a.classes=c?c.split(/\s+/):[]}function n(a,b,c,f){var g=0,j;if(f.toHtml)b.name=b.name.replace(K,"$1");if(f.doCallbacks&&a.elementCallbacks){a:for(var h=a.elementCallbacks,w=0,m=h.length,B;w<m;++w)if(B=h[w](b)){j=B;
break a}if(j)return j}if(f.doTransform)if(j=a._.transformations[b.name]){t(b);for(h=0;h<j.length;++h)y(a,b,j[h]);r(b)}if(f.doFilter){a:{h=b.name;w=a._;a=w.allowedRules.elements[h];j=w.allowedRules.generic;h=w.disallowedRules.elements[h];w=w.disallowedRules.generic;m=f.skipRequired;B={valid:false,validAttributes:{},validClasses:{},validStyles:{},allAttributes:false,allClasses:false,allStyles:false,hadInvalidAttribute:false,hadInvalidClass:false,hadInvalidStyle:false};var o,k;if(!a&&!j)a=null;else{t(b);
if(h){o=0;for(k=h.length;o<k;++o)if(d(h[o],b,B)===false){a=null;break a}}if(w){o=0;for(k=w.length;o<k;++o)d(w[o],b,B)}if(a){o=0;for(k=a.length;o<k;++o)e(a[o],b,B,m)}if(j){o=0;for(k=j.length;o<k;++o)e(j[o],b,B,m)}a=B}}if(!a){c.push(b);return A}if(!a.valid){c.push(b);return A}k=a.validAttributes;var i=a.validStyles;j=a.validClasses;var h=b.attributes,l=b.styles,w=b.classes,m=b.classBackup,J=b.styleBackup,x,I,q=[];B=[];var N=/^data-cke-/;o=false;delete h.style;delete h["class"];delete b.classBackup;
delete b.styleBackup;if(!a.allAttributes)for(x in h)if(!k[x])if(N.test(x)){if(x!=(I=x.replace(/^data-cke-saved-/,""))&&!k[I]){delete h[x];o=true}}else{delete h[x];o=true}if(!a.allStyles||a.hadInvalidStyle){for(x in l)a.allStyles||i[x]?q.push(x+":"+l[x]):o=true;if(q.length)h.style=q.sort().join("; ")}else if(J)h.style=J;if(!a.allClasses||a.hadInvalidClass){for(x=0;x<w.length;++x)(a.allClasses||j[w[x]])&&B.push(w[x]);B.length&&(h["class"]=B.sort().join(" "));m&&B.length<m.split(/\s+/).length&&(o=true)}else m&&
(h["class"]=m);o&&(g=A);if(!f.skipFinalValidation&&!p(b)){c.push(b);return A}}if(f.toHtml)b.name=b.name.replace(T,"cke:$1");return g}function m(a){var b=[],c;for(c in a)c.indexOf("*")>-1&&b.push(c.replace(/\*/g,".*"));return b.length?RegExp("^(?:"+b.join("|")+")$"):null}function r(a){var b=a.attributes,c;delete b.style;delete b["class"];if(c=CKEDITOR.tools.writeCssText(a.styles,true))b.style=c;a.classes.length&&(b["class"]=a.classes.sort().join(" "))}function p(a){switch(a.name){case "a":if(!a.children.length&&
!a.attributes.name&&!a.attributes.id)return false;break;case "img":if(!a.attributes.src)return false}return true}function s(a){if(!a)return false;if(a===true)return true;var b=m(a);return function(c){return c in a||b&&c.match(b)}}function v(){return new CKEDITOR.htmlParser.element("br")}function u(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.name=="br"||C.$block[a.name])}function q(a,b,c){var f=a.name;if(C.$empty[f]||!a.children.length)if(f=="hr"&&b=="br")a.replaceWith(v());else{a.parent&&c.push({check:"it",
el:a.parent});a.remove()}else if(C.$block[f]||f=="tr")if(b=="br"){if(a.previous&&!u(a.previous)){b=v();b.insertBefore(a)}if(a.next&&!u(a.next)){b=v();b.insertAfter(a)}a.replaceWithChildren()}else{var f=a.children,d;b:{d=C[b];for(var g=0,j=f.length,h;g<j;++g){h=f[g];if(h.type==CKEDITOR.NODE_ELEMENT&&!d[h.name]){d=false;break b}}d=true}if(d){a.name=b;a.attributes={};c.push({check:"parent-down",el:a})}else{d=a.parent;for(var g=d.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||d.name=="body",e,w,j=f.length;j>
0;){h=f[--j];if(g&&(h.type==CKEDITOR.NODE_TEXT||h.type==CKEDITOR.NODE_ELEMENT&&C.$inline[h.name])){if(!e){e=new CKEDITOR.htmlParser.element(b);e.insertAfter(a);c.push({check:"parent-down",el:e})}e.add(h,0)}else{e=null;w=C[d.name]||C.span;h.insertAfter(a);d.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(h.type==CKEDITOR.NODE_ELEMENT&&!w[h.name])&&c.push({check:"el-up",el:h})}}a.remove()}}else if(f in{style:1,script:1})a.remove();else{a.parent&&c.push({check:"it",el:a.parent});a.replaceWithChildren()}}function y(a,
b,c){var f,d;for(f=0;f<c.length;++f){d=c[f];if((!d.check||a.check(d.check,false))&&(!d.left||d.left(b))){d.right(b,U);break}}}function w(a,b){var c=b.getDefinition(),f=c.attributes,d=c.styles,g,j,h,e;if(a.name!=c.element)return false;for(g in f)if(g=="class"){c=f[g].split(/\s+/);for(h=a.classes.join("|");e=c.pop();)if(h.indexOf(e)==-1)return false}else if(a.attributes[g]!=f[g])return false;for(j in d)if(a.styles[j]!=d[j])return false;return true}function o(a,b){var c,f;if(typeof a=="string")c=a;else if(a instanceof
CKEDITOR.style)f=a;else{c=a[0];f=a[1]}return[{element:c,left:f,right:function(a,c){c.transform(a,b)}}]}function z(a){return function(b){return w(b,a)}}function x(a){return function(b,c){c[a](b)}}var C=CKEDITOR.dtd,A=1,G=CKEDITOR.tools.copy,D=CKEDITOR.tools.trim,L="cke-test",B=["","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 b=a.config.allowedContent;if(b===true)this.disabled=true;else{if(!b)this.customConfig=false;this.allow(b,"config",1);this.allow(a.config.extraAllowedContent,"extra",1);this.allow(B[a.enterMode]+" "+B[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(b,c,d){if(!l(this,b,d))return false;var g,j;if(typeof b=="string")b=f(b);else if(b instanceof CKEDITOR.style){if(b.toAllowedContentRules)return this.allow(b.toAllowedContentRules(this.editor),c,d);g=b.getDefinition();b={};d=g.attributes;b[g.element]=g={styles:g.styles,requiredStyles:g.styles&&CKEDITOR.tools.objectKeys(g.styles)};if(d){d=G(d);g.classes=d["class"]?d["class"].split(/\s+/):null;g.requiredClasses=
g.classes;delete d["class"];g.attributes=d;g.requiredAttributes=d&&CKEDITOR.tools.objectKeys(d)}}else if(CKEDITOR.tools.isArray(b)){for(g=0;g<b.length;++g)j=this.allow(b[g],c,d);return j}a(this,b,c,this.allowedContent,this._.allowedRules);return true},applyTo:function(a,b,c,f){if(this.disabled)return false;var d=this,g=[],j=this.editor&&this.editor.config.protectedSource,h,e=false,w={doFilter:!c,doTransform:true,doCallbacks:true,toHtml:b};a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if(a.attributes["data-cke-filter"]==
"off")return false;if(!b||!(a.name=="span"&&~CKEDITOR.tools.objectKeys(a.attributes).join("|").indexOf("data-cke-"))){h=n(d,a,g,w);if(h&A)e=true;else if(h&2)return false}}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var c;a:{var f=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));c=[];var m,B,o;if(j)for(B=0;B<j.length;++B)if((o=f.match(j[B]))&&o[0].length==f.length){c=true;break a}f=CKEDITOR.htmlParser.fragment.fromHtml(f);f.children.length==1&&(m=
f.children[0]).type==CKEDITOR.NODE_ELEMENT&&n(d,m,c,w);c=!c.length}c||g.push(a)}},null,true);g.length&&(e=true);for(var m,a=[],f=B[f||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)],o;c=g.pop();)c.type==CKEDITOR.NODE_ELEMENT?q(c,f,a):c.remove();for(;m=a.pop();){c=m.el;if(c.parent){o=C[c.parent.name]||C.span;switch(m.check){case "it":C.$removeEmpty[c.name]&&!c.children.length?q(c,f,a):p(c)||q(c,f,a);break;case "el-up":c.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!o[c.name]&&q(c,f,a);break;
case "parent-down":c.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!o[c.name]&&q(c.parent,f,a)}}}return e},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(b){if(!l(this,b,true))return false;typeof b=="string"&&(b=f(b));a(this,b,null,this.disallowedContent,this._.disallowedRules);return true},addContentForms:function(a){if(!this.disabled&&
a){var b,c,f=[],d;for(b=0;b<a.length&&!d;++b){c=a[b];if((typeof c=="string"||c instanceof CKEDITOR.style)&&this.check(c))d=c}if(d){for(b=0;b<a.length;++b)f.push(o(a[b],d));this.addTransformations(f)}}},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 b,c;if(!this.disabled&&a){var f=this._.transformations,d;for(d=0;d<a.length;++d){b=a[d];var g=void 0,j=void 0,h=void 0,e=void 0,w=void 0,m=void 0;c=[];for(j=0;j<b.length;++j){h=b[j];if(typeof h=="string"){h=h.split(/\s*:\s*/);e=h[0];w=null;m=h[1]}else{e=h.check;w=h.left;m=h.right}if(!g){g=h;g=g.element?g.element:e?e.match(/^([a-z0-9]+)/i)[0]:g.left.getDefinition().element}w instanceof
CKEDITOR.style&&(w=z(w));c.push({check:e==g?null:e,left:w,right:typeof m=="string"?x(m):m})}b=g;f[b]||(f[b]=[]);f[b].push(c)}}},check:function(a,b,d){if(this.disabled)return true;if(CKEDITOR.tools.isArray(a)){for(var g=a.length;g--;)if(this.check(a[g],b,d))return true;return false}var j,h;if(typeof a=="string"){h=a+"<"+(b===false?"0":"1")+(d?"1":"0")+">";if(h in this._.cachedChecks)return this._.cachedChecks[h];g=f(a).$1;j=g.styles;var e=g.classes;g.name=g.elements;g.classes=e=e?e.split(/\s*,\s*/):
[];g.styles=c(j);g.attributes=c(g.attributes);g.children=[];e.length&&(g.attributes["class"]=e.join(" "));if(j)g.attributes.style=CKEDITOR.tools.writeCssText(g.styles);j=g}else{g=a.getDefinition();j=g.styles;e=g.attributes||{};if(j){j=G(j);e.style=CKEDITOR.tools.writeCssText(j,true)}else j={};j={name:g.element,attributes:e,classes:e["class"]?e["class"].split(/\s+/):[],styles:j,children:[]}}var e=CKEDITOR.tools.clone(j),w=[],m;if(b!==false&&(m=this._.transformations[j.name])){for(g=0;g<m.length;++g)y(this,
j,m[g]);r(j)}n(this,e,w,{doFilter:true,doTransform:b!==false,skipRequired:!d,skipFinalValidation:!d});b=w.length>0?false:CKEDITOR.tools.objectCompare(j.attributes,e.attributes,true)?true:false;typeof a=="string"&&(this._.cachedChecks[h]=b);return b},getAllowedEnterMode:function(){var a=["p","div","br"],b={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(c,f){var d=a.slice(),g;if(this.check(B[c]))return c;for(f||(d=d.reverse());g=d.pop();)if(this.check(g))return b[g];
return CKEDITOR.ENTER_BR}}(),destroy:function(){delete CKEDITOR.filter.instances[this.id];delete this._;delete this.allowedContent;delete this.disallowedContent}};var J={styles:1,attributes:1,classes:1},N={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},I=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,Q={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},K=/^cke:(object|embed|param)$/,
T=/^(object|embed|param)$/,U=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,b,c){c=c||b;if(!(c in a.styles)){var f=a.attributes[b];if(f){/^\d+$/.test(f)&&(f=f+"px");a.styles[c]=f}}delete a.attributes[b]},lengthToAttribute:function(a,b,c){c=c||b;if(!(c in a.attributes)){var f=a.styles[b],d=f&&f.match(/^(\d+)(?:\.\d*)?px$/);
d?a.attributes[c]=d[1]:f==L&&(a.attributes[c]=L)}delete a.styles[b]},alignmentToStyle:function(a){if(!("float"in a.styles)){var b=a.attributes.align;if(b=="left"||b=="right")a.styles["float"]=b}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var b=a.styles["float"];if(b=="left"||b=="right")a.attributes.align=b}delete a.styles["float"]},matchesStyle:w,transform:function(a,b){if(typeof b=="string")a.name=b;else{var c=b.getDefinition(),f=c.styles,d=c.attributes,
g,j,h,e;a.name=c.element;for(g in d)if(g=="class"){c=a.classes.join("|");for(h=d[g].split(/\s+/);e=h.pop();)c.indexOf(e)==-1&&a.classes.push(e)}else a.attributes[g]=d[g];for(j in f)a.styles[j]=f[j]}}}}(),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",d="blur";if(e)if(CKEDITOR.env.ie){b="focusin";d="focusout"}else CKEDITOR.event.useCapture=1;var g={blur:function(){a.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(a)}};a.on(b,g.focus,this);a.on(d,g.blur,this);if(e)CKEDITOR.event.useCapture=0;a.setCustomData("focusmanager",
this);a.setCustomData("focusmanager_handlers",g)}},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,g=b.getKeystroke(),e=this.keystrokes[g],i=this._.editor;a=i.fire("key",
{keyCode:g,domEvent:b})===false;if(!a){e&&(a=i.execCommand(e,{from:"keystrokeHandler"})!==false);a||(a=!!this.blockedKeystrokes[g])}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 d=this,e=function(){d[a].dir=d.rtl[a]?"rtl":"ltr";b(a,d[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,d=e.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),g=d[1],d=d[2];b[g+"-"+d]?g=g+"-"+d:b[g]||(g=null);CKEDITOR.lang.detect=g?function(){return g}:function(a){return a};return g||a}}}(),CKEDITOR.scriptLoader=function(){var a={},e={};return{load:function(b,d,g,l){var i=typeof b=="string";i&&(b=[b]);g||(g=CKEDITOR);var h=b.length,k=[],c=[],f=function(a){d&&(i?d.call(g,a):d.call(g,k,c))};if(h===
0)f(true);else{var j=function(a,b){(b?k:c).push(a);if(--h<=0){l&&CKEDITOR.document.getDocumentElement().removeStyle("cursor");f(b)}},t=function(b,c){a[b]=1;var f=e[b];delete e[b];for(var d=0;d<f.length;d++)f[d](b,c)},n=function(b){if(a[b])j(b,true);else{var c=e[b]||(e[b]=[]);c.push(j);if(!(c.length>1)){var f=new CKEDITOR.dom.element("script");f.setAttributes({type:"text/javascript",src:b});if(d)if(CKEDITOR.env.ie&&CKEDITOR.env.version<11)f.$.onreadystatechange=function(){if(f.$.readyState=="loaded"||
f.$.readyState=="complete"){f.$.onreadystatechange=null;t(b,true)}};else{f.$.onload=function(){setTimeout(function(){t(b,true)},0)};f.$.onerror=function(){t(b,false)}}f.appendTo(CKEDITOR.document.getHead())}}};l&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var m=0;m<h;m++)n(b[m])}},queue:function(){function a(){var b;(b=d[0])&&this.load(b.scriptUrl,b.callback,CKEDITOR,0)}var d=[];return function(g,e){var i=this;d.push({scriptUrl:g,callback:function(){e&&e.apply(this,arguments);
d.shift();a.call(i)}});d.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 Error('[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(","),d=0;d<a.length;d++){var g=a[d];b||(e=e.replace(/[^\/]+$/,function(a){b=a;return""}));this.externals[g]={dir:e,file:b||this.fileName+".js"}}},load:function(a,e,
b){CKEDITOR.tools.isArray(a)||(a=a?[a]:[]);for(var d=this.loaded,g=this.registered,l=[],i={},h={},k=0;k<a.length;k++){var c=a[k];if(c)if(!d[c]&&!g[c]){var f=this.getFilePath(c);l.push(f);f in i||(i[f]=[]);i[f].push(c)}else h[c]=this.get(c)}CKEDITOR.scriptLoader.load(l,function(a,c){if(c.length)throw Error('[CKEDITOR.resourceManager.load] Resource name "'+i[c[0]].join(",")+'" was not found at "'+c[0]+'".');for(var f=0;f<a.length;f++)for(var g=i[a[f]],k=0;k<g.length;k++){var l=g[k];h[l]=this.get(l);
d[l]=1}e.call(b,h)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(a){var e={};return function(b,d,g){var l={},i=function(b){a.call(this,b,function(a){CKEDITOR.tools.extend(l,a);var b=[],f;for(f in a){var j=a[f],h=j&&j.requires;if(!e[f]){if(j.icons)for(var n=j.icons.split(","),m=n.length;m--;)CKEDITOR.skin.addIcon(n[m],j.path+"icons/"+(CKEDITOR.env.hidpi&&j.hidpi?"hidpi/":"")+n[m]+".png");e[f]=
1}if(h){h.split&&(h=h.split(","));for(j=0;j<h.length;j++)l[h[j]]||b.push(h[j])}}if(b.length)i.call(this,b);else{for(f in l){j=l[f];if(j.onLoad&&!j.onLoad._called){j.onLoad()===false&&delete l[f];j.onLoad._called=1}}d&&d.call(g||window,l)}},this)};i.call(this,b)}}),CKEDITOR.plugins.setLang=function(a,e,b){var d=this.get(a),a=d.langEntries||(d.langEntries={}),d=d.lang||(d.lang=[]);d.split&&(d=d.split(","));CKEDITOR.tools.indexOf(d,e)==-1&&d.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 d=this.items[a]={type:e,command:b.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(d,b)},get:function(a){return this.instances[a]},create:function(a){var e=this.items[a],b=e&&this._.handlers[e.type],d=e&&e.command&&this.editor.getCommand(e.command),b=b&&b.create.apply(this,e.args);this.instances[a]=b;d&&d.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){g(this,a.data.path)});this.on("activeFilterChange",function(){g(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(){this.status!=="destroyed"?i(this,a):CKEDITOR.warn("editor-incorrect-destroy")},0,this)}function e(){do var a="editor"+ ++t;while(CKEDITOR.instances[a]);return a}function b(){var a=this.commands,b;for(b in a)d(this,a[b])}function d(a,b){b[b.startDisabled?"disable":a.readOnly&&!b.readOnly?"disable":b.modes[a.mode]?
"enable":"disable"]()}function g(a,b,c){if(b){var f,d,g=a.commands;for(d in g){f=g[d];(c||f.contextSensitive)&&f.refresh(a,b)}}}function l(a){var b=a.config.customConfig;if(!b)return false;var b=CKEDITOR.getUrl(b),c=n[b]||(n[b]={});if(c.fn){c.fn.call(a,a.config);(CKEDITOR.getUrl(a.config.customConfig)==b||!l(a))&&a.fireOnce("customConfigLoaded")}else CKEDITOR.scriptLoader.queue(b,function(){c.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};l(a)});return true}function i(a,b){a.on("customConfigLoaded",
function(){if(b){if(b.on)for(var c in b.on)a.on(c,b.on[c]);CKEDITOR.tools.extend(a.config,b,true);delete a.config.on}c=a.config;a.readOnly=c.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=c.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;a.activeEnterMode=a.enterMode=a.blockless?CKEDITOR.ENTER_BR:c.enterMode;a.activeShiftEnterMode=a.shiftEnterMode=a.blockless?CKEDITOR.ENTER_BR:c.shiftEnterMode;if(c.skin)CKEDITOR.skinName=c.skin;a.fireOnce("configLoaded");a.dataProcessor=new CKEDITOR.htmlDataProcessor(a);a.filter=a.activeFilter=new CKEDITOR.filter(a);h(a)});if(b&&b.customConfig!=null)a.config.customConfig=b.customConfig;
l(a)||a.fireOnce("customConfigLoaded")}function h(a){CKEDITOR.skin.loadPart("editor",function(){k(a)})}function k(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b,f){var d=a.config.title;a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(f);a.title=typeof d=="string"||d===false?d:[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(b){a.once("loaded",function(){a.fire("stylesSet",{styles:b})},null,null,1);f(a)})}function f(a){var b=a.config,c=b.plugins,f=b.extraPlugins,d=b.removePlugins;if(f)var g=RegExp("(?:^|,)(?:"+f.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),c=c.replace(g,""),c=c+(","+f);if(d)var j=RegExp("(?:^|,)(?:"+d.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),c=c.replace(j,"");CKEDITOR.env.air&&(c=c+",adobeair");CKEDITOR.plugins.load(c.split(","),function(c){var f=[],d=[],g=[];a.plugins=
c;for(var h in c){var e=c[h],k=e.lang,i=null,l=e.requires,n;CKEDITOR.tools.isArray(l)&&(l=l.join(","));if(l&&(n=l.match(j)))for(;l=n.pop();)CKEDITOR.error("editor-plugin-required",{plugin:l.replace(",",""),requiredBy:h});if(k&&!a.lang[h]){k.split&&(k=k.split(","));if(CKEDITOR.tools.indexOf(k,a.langCode)>=0)i=a.langCode;else{i=a.langCode.replace(/-.*/,"");i=i!=a.langCode&&CKEDITOR.tools.indexOf(k,i)>=0?i:CKEDITOR.tools.indexOf(k,"en")>=0?"en":k[0]}if(!e.langEntries||!e.langEntries[i])g.push(CKEDITOR.getUrl(e.path+
"lang/"+i+".js"));else{a.lang[h]=e.langEntries[i];i=null}}d.push(i);f.push(e)}CKEDITOR.scriptLoader.load(g,function(){for(var c=["beforeInit","init","afterInit"],g=0;g<c.length;g++)for(var j=0;j<f.length;j++){var h=f[j];g===0&&(d[j]&&h.lang&&h.langEntries)&&(a.lang[h.name]=h.langEntries[d[j]]);if(h[c[g]])h[c[g]](a)}a.fireOnce("pluginsLoaded");b.keystrokes&&a.setKeystroke(a.config.keystrokes);for(j=0;j<a.config.blockedKeystrokes.length;j++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[j]]=
1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function j(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var b=this.getData();this.config.htmlEncodeOutput&&(b=CKEDITOR.tools.htmlEncode(b));a.is("textarea")?a.setValue(b):a.setHtml(b);return true}return false}a.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=a;var t=0,n={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(a,b){b.name=a.toLowerCase();var c=new CKEDITOR.command(this,
b);this.mode&&d(this,c);return this.commands[a]=c},_attachToForm:function(){function a(f){b.updateElement();b._.required&&(!c.getValue()&&b.fire("required")===false)&&f.data.preventDefault()}var b=this,c=b.element,f=new CKEDITOR.dom.element(c.$.form);if(c.is("textarea")&&f){f.on("submit",a);if(f.$.submit&&f.$.submit.call&&f.$.submit.apply)f.$.submit=CKEDITOR.tools.override(f.$.submit,function(b){return function(){a();b.apply?b.apply(this):b()}});b.on("destroy",function(){f.removeListener("submit",
a)})}},destroy:function(a){this.fire("beforeDestroy");!a&&j.call(this);this.editable(null);if(this.filter){this.filter.destroy();delete this.filter}delete this.activeFilter;this.status="destroyed";this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(a){if(!a){a=this.getSelection();if(!a)return null;a=a.getStartElement()}return a?new CKEDITOR.dom.elementPath(a,this.editable()):null},createRange:function(){var a=this.editable();
return a?new CKEDITOR.dom.range(a):null},execCommand:function(a,b){var c=this.getCommand(a),f={name:a,commandData:b,command:c};if(c&&c.state!=CKEDITOR.TRISTATE_DISABLED&&this.fire("beforeCommandExec",f)!==false){f.returnValue=c.exec(f.commandData);if(!c.async&&this.fire("afterCommandExec",f)!==false)return f.returnValue}return false},getCommand:function(a){return this.commands[a]},getData:function(a){!a&&this.fire("beforeGetData");var b=this._.data;if(typeof b!="string")b=(b=this.element)&&this.elementMode==
CKEDITOR.ELEMENT_MODE_REPLACE?b.is("textarea")?b.getValue():b.getHtml():"";b={dataValue:b};!a&&this.fire("getData",b);return b.dataValue},getSnapshot:function(){var a=this.fire("getSnapshot");if(typeof a!="string")a=(a=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.is("textarea")?a.getValue():a.getHtml():"";return a},loadSnapshot:function(a){this.fire("loadSnapshot",a)},setData:function(a,b,c){var f=true,d=b;if(b&&typeof b=="object"){c=b.internal;d=b.callback;f=!b.noSnapshot}!c&&
f&&this.fire("saveSnapshot");if(d||!c)this.once("dataReady",function(a){!c&&f&&this.fire("saveSnapshot");d&&d.call(a.editor)});a={dataValue:a};!c&&this.fire("setData",a);this._.data=a.dataValue;!c&&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,b,c){this.fire("insertHtml",{dataValue:a,mode:b,range:c})},insertText:function(a){this.fire("insertText",
a)},insertElement:function(a){this.fire("insertElement",a)},getSelectedHtml:function(a){var b=this.editable(),c=this.getSelection(),c=c&&c.getRanges();if(!b||!c||c.length===0)return null;b=b.getHtmlFromRange(c[0]);return a?b.getHtml():b},extractSelectedHtml:function(a,b){var c=this.editable(),f=this.getSelection().getRanges();if(!c||f.length===0)return null;f=f[0];c=c.extractHtmlFromRange(f,b);b||this.getSelection().selectRanges([f]);return a?c.getHtml():c},focus:function(){this.fire("beforeFocus")},
checkDirty:function(){return this.status=="ready"&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return j.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,b=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],c,f,d=b.length;d--;){c=b[d];f=0;if(CKEDITOR.tools.isArray(c)){f=c[1];c=c[0]}f?a[c]=f:delete a[c]}},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,b){a=a?this.blockless?CKEDITOR.ENTER_BR:a:this.enterMode;b=b?this.blockless?CKEDITOR.ENTER_BR:b:this.shiftEnterMode;if(this.activeEnterMode!=a||this.activeShiftEnterMode!=b){this.activeEnterMode=
a;this.activeShiftEnterMode=b;this.fire("activeEnterModeChange")}},showNotification:function(a){alert(a)}})}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--\>)|(?:([^\/\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 d,g,l=0,i;d=this._.htmlPartsRegex.exec(b);){g=d.index;if(g>l){l=b.substring(l,g);if(i)i.push(l);else this.onText(l)}l=this._.htmlPartsRegex.lastIndex;if(g=d[1]){g=g.toLowerCase();if(i&&CKEDITOR.dtd.$cdata[g]){this.onCDATA(i.join(""));
i=null}if(!i){this.onTagClose(g);continue}}if(i)i.push(d[0]);else if(g=d[3]){g=g.toLowerCase();if(!/="/.test(g)){var h={},k,c=d[4];d=!!d[5];if(c)for(;k=a.exec(c);){var f=k[1].toLowerCase();k=k[2]||k[3]||k[4]||"";h[f]=!k&&e[f]?f:CKEDITOR.tools.htmlDecodeAttr(k)}this.onTagOpen(g,h,d);!i&&CKEDITOR.dtd.$cdata[g]&&(i=[])}}else if(g=d[2])this.onComment(g)}if(b.length>l)this.onText(b.substring(l,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,d=this.next;b&&(b.next=d);d&&(d.previous=b);a.splice(e,1);this.parent=null},replaceWith:function(a){var e=this.parent.children,b=CKEDITOR.tools.indexOf(e,this),d=a.previous=this.previous,g=a.next=this.next;d&&(d.next=a);g&&(g.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),d=a.next;e.splice(b+1,0,this);this.next=a.next;this.previous=a;a.next=this;d&&(d.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},d=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),g={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=
function(l,i,h){function k(a){var b;if(p.length>0)for(var f=0;f<p.length;f++){var d=p[f],g=d.name,h=CKEDITOR.dtd[g],e=v.name&&CKEDITOR.dtd[v.name];if((!e||e[g])&&(!a||!h||h[a]||!CKEDITOR.dtd[a])){if(!b){c();b=1}d=d.clone();d.parent=v;v=d;p.splice(f,1);f--}else if(g==v.name){j(v,v.parent,1);f--}}}function c(){for(;s.length;)j(s.shift(),v)}function f(a){if(a._.isBlockLike&&a.name!="pre"&&a.name!="textarea"){var b=a.children.length,c=a.children[b-1],f;if(c&&c.type==CKEDITOR.NODE_TEXT)(f=CKEDITOR.tools.rtrim(c.value))?
c.value=f:a.children.length=b-1}}function j(b,c,d){var c=c||v||r,g=v;if(b.previous===void 0){if(t(c,b)){v=c;m.onTagOpen(h,{});b.returnPoint=c=v}f(b);(!a(b)||b.children.length)&&c.add(b);b.name=="pre"&&(q=false);b.name=="textarea"&&(u=false)}if(b.returnPoint){v=b.returnPoint;delete b.returnPoint}else v=d?c:g}function t(a,b){if((a==r||a.name=="body")&&h&&(!a.name||CKEDITOR.dtd[a.name][h])){var c,f;return(c=b.attributes&&(f=b.attributes["data-cke-real-element-type"])?f:b.name)&&c in CKEDITOR.dtd.$inline&&
!(c in CKEDITOR.dtd.head)&&!b.isOrphan||b.type==CKEDITOR.NODE_TEXT}}function n(a,b){return a in CKEDITOR.dtd.$listItem||a in CKEDITOR.dtd.$tableContent?a==b||a=="dt"&&b=="dd"||a=="dd"&&b=="dt":false}var m=new CKEDITOR.htmlParser,r=i instanceof CKEDITOR.htmlParser.element?i:typeof i=="string"?new CKEDITOR.htmlParser.element(i):new CKEDITOR.htmlParser.fragment,p=[],s=[],v=r,u=r.name=="textarea",q=r.name=="pre";m.onTagOpen=function(f,g,h,i){g=new CKEDITOR.htmlParser.element(f,g);if(g.isUnknown&&h)g.isEmpty=
true;g.isOptionalClose=i;if(a(g))p.push(g);else{if(f=="pre")q=true;else{if(f=="br"&&q){v.add(new CKEDITOR.htmlParser.text("\n"));return}f=="textarea"&&(u=true)}if(f=="br")s.push(g);else{for(;;){i=(h=v.name)?CKEDITOR.dtd[h]||(v._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):d;if(!g.isUnknown&&!v.isUnknown&&!i[f])if(v.isOptionalClose)m.onTagClose(h);else if(f in b&&h in b){h=v.children;(h=h[h.length-1])&&h.name=="li"||j(h=new CKEDITOR.htmlParser.element("li"),v);!g.returnPoint&&(g.returnPoint=v);
v=h}else if(f in CKEDITOR.dtd.$listItem&&!n(f,h))m.onTagOpen(f=="li"?"ul":"dl",{},0,1);else if(h in e&&!n(f,h)){!g.returnPoint&&(g.returnPoint=v);v=v.parent}else{h in CKEDITOR.dtd.$inline&&p.unshift(v);if(v.parent)j(v,v.parent,1);else{g.isOrphan=1;break}}else break}k(f);c();g.parent=v;g.isEmpty?j(g):v=g}}};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 f=[],d=[],g=v;g!=r&&g.name!=a;){g._.isBlockLike||d.unshift(g);f.push(g);g=g.returnPoint||g.parent}if(g!=
r){for(b=0;b<f.length;b++){var e=f[b];j(e,e.parent)}v=g;g._.isBlockLike&&c();j(g,g.parent);if(g==v)v=v.parent;p=p.concat(d)}a=="body"&&(h=false)};m.onText=function(a){if((!v._.hasInlineStarted||s.length)&&!q&&!u){a=CKEDITOR.tools.ltrim(a);if(a.length===0)return}var b=v.name,f=b?CKEDITOR.dtd[b]||(v._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):d;if(!u&&!f["#"]&&b in e){m.onTagOpen(g[b]||"");m.onText(a)}else{c();k();!q&&!u&&(a=a.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));a=new CKEDITOR.htmlParser.text(a);
if(t(v,a))this.onTagOpen(h,{},0,1);v.add(a)}};m.onCDATA=function(a){v.add(new CKEDITOR.htmlParser.cdata(a))};m.onComment=function(a){c();k();v.add(new CKEDITOR.htmlParser.comment(a))};m.parse(l);for(c();v!=r;)j(v,v.parent,1);f(r);return r};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 g=this.getFilterContext();if(d&&!this.parent&&b)b.onRoot(g,this);b&&this.filterChildren(b,false,g);b=0;d=this.children;for(g=d.length;b<g;b++)d[b].writeHtml(a)},forEach:function(a,b,d){if(!d&&(!b||this.type==b))var g=a(this);if(g!==false)for(var d=this.children,c=0;c<d.length;c++){g=d[c];g.type==CKEDITOR.NODE_ELEMENT?g.forEach(a,b):(!b||g.type==b)&&a(g)}},getFilterContext:function(a){return a||
{}}}}(),"use strict",function(){function a(){this.rules=[]}function e(b,d,g,e){var i,h;for(i in d){(h=b[i])||(h=b[i]=new a);h.add(d[i],g,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,d){var g;if(typeof d=="number")g=
d;else if(d&&"priority"in d)g=d.priority;typeof g!="number"&&(g=10);typeof d!="object"&&(d={});a.elementNames&&this.elementNameRules.addMany(a.elementNames,g,d);a.attributeNames&&this.attributeNameRules.addMany(a.attributeNames,g,d);a.elements&&e(this.elementsRules,a.elements,g,d);a.attributes&&e(this.attributesRules,a.attributes,g,d);a.text&&this.textRules.add(a.text,g,d);a.comment&&this.commentRules.add(a.comment,g,d);a.root&&this.rootRules.add(a.root,g,d)},applyTo:function(a){a.filter(this)},onElementName:function(a,
d){return this.elementNameRules.execOnName(a,d)},onAttributeName:function(a,d){return this.attributeNameRules.execOnName(a,d)},onText:function(a,d,g){return this.textRules.exec(a,d,g)},onComment:function(a,d,g){return this.commentRules.exec(a,d,g)},onRoot:function(a,d){return this.rootRules.exec(a,d)},onElement:function(a,d){for(var g=[this.elementsRules["^"],this.elementsRules[d.name],this.elementsRules.$],e,i=0;i<3;i++)if(e=g[i]){e=e.exec(a,d,this);if(e===false)return null;if(e&&e!=d)return this.onNode(a,
e);if(d.parent&&!d.name)break}return d},onNode:function(a,d){var g=d.type;return g==CKEDITOR.NODE_ELEMENT?this.onElement(a,d):g==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(a,d.value)):g==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(a,d.value)):null},onAttribute:function(a,d,g,e){return(g=this.attributesRules[g])?g.exec(a,e,d,this):e}}});CKEDITOR.htmlParser.filterRulesGroup=a;a.prototype={add:function(a,d,g){this.rules.splice(this.findIndex(d),0,{value:a,priority:d,
options:g})},addMany:function(a,d,g){for(var e=[this.findIndex(d),0],i=0,h=a.length;i<h;i++)e.push({value:a[i],priority:d,options:g});this.rules.splice.apply(this.rules,e)},findIndex:function(a){for(var d=this.rules,g=d.length-1;g>=0&&a<d[g].priority;)g--;return g+1},exec:function(a,d){var g=d instanceof CKEDITOR.htmlParser.node||d instanceof CKEDITOR.htmlParser.fragment,e=Array.prototype.slice.call(arguments,1),i=this.rules,h=i.length,k,c,f,j;for(j=0;j<h;j++){if(g){k=d.type;c=d.name}f=i[j];if(!(a.nonEditable&&
!f.options.applyToAll||a.nestedEditable&&f.options.excludeNestedEditable)){f=f.value.apply(null,e);if(f===false||g&&f&&(f.name!=c||f.type!=k))return f;f!=null&&(e[0]=d=f)}}return d},execOnName:function(a,d){for(var g=0,e=this.rules,i=e.length,h;d&&g<i;g++){h=e[g];!(a.nonEditable&&!h.options.applyToAll||a.nestedEditable&&h.options.excludeNestedEditable)&&(d=d.replace(h.value[0],h.value[1]))}return d}}}(),function(){function a(a,c){function f(a){return a||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):
new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function j(a,c){return function(g){if(g.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var j=[],e=b(g),B,k;if(e)for(h(e,1)&&j.push(e);e;){if(l(e)&&(B=d(e))&&h(B))if((k=d(B))&&!l(k))j.push(B);else{f(w).insertAfter(B);B.remove()}e=e.previous}for(e=0;e<j.length;e++)j[e].remove();if(j=!a||(typeof c=="function"?c(g):c)!==false)if(!w&&!CKEDITOR.env.needsBrFiller&&g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)j=false;else if(!w&&!CKEDITOR.env.needsBrFiller&&(document.documentMode>
7||g.name in CKEDITOR.dtd.tr||g.name in CKEDITOR.dtd.$listItem))j=false;else{j=b(g);j=!j||g.name=="form"&&j.name=="input"}j&&g.add(f(a))}}}function h(a,b){if((!w||CKEDITOR.env.needsBrFiller)&&a.type==CKEDITOR.NODE_ELEMENT&&a.name=="br"&&!a.attributes["data-cke-eol"])return true;var c;if(a.type==CKEDITOR.NODE_TEXT&&(c=a.value.match(p))){if(c.index){(new CKEDITOR.htmlParser.text(a.value.substring(0,c.index))).insertBefore(a);a.value=c[0]}if(!CKEDITOR.env.needsBrFiller&&w&&(!b||a.parent.name in B))return true;
if(!w)if((c=a.previous)&&c.name=="br"||!c||l(c))return true}return false}var e={elements:{}},w=c=="html",B=CKEDITOR.tools.extend({},q),k;for(k in B)"#"in v[k]||delete B[k];for(k in B)e.elements[k]=j(w,a.config.fillEmptyBlocks);e.root=j(w,false);e.elements.br=function(a){return function(b){if(b.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var c=b.attributes;if("data-cke-bogus"in c||"data-cke-eol"in c)delete c["data-cke-bogus"];else{for(c=b.next;c&&g(c);)c=c.next;var j=d(b);!c&&l(b.parent)?i(b.parent,
f(a)):l(c)&&(j&&!l(j))&&f(a).insertBefore(c)}}}}(w);return e}function e(a,b){return a!=CKEDITOR.ENTER_BR&&b!==false?a==CKEDITOR.ENTER_DIV?"div":"p":false}function b(a){for(a=a.children[a.children.length-1];a&&g(a);)a=a.previous;return a}function d(a){for(a=a.previous;a&&g(a);)a=a.previous;return a}function g(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&a.attributes["data-cke-bookmark"]}function l(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in
q||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function i(a,b){var c=a.children[a.children.length-1];a.children.push(b);b.parent=a;if(c){c.next=b;b.previous=c}}function h(a){a=a.attributes;a.contenteditable!="false"&&(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable="false"}function k(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(x,function(a,b,c){return"<"+b+c.replace(C,
function(a,b){return A.test(b)&&c.indexOf("data-cke-saved-"+b)==-1?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+">"})}function f(a,b){return a.replace(b,function(a,b,c){a.indexOf("<textarea")===0&&(a=b+n(c).replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</textarea>");return"<cke:encoded>"+encodeURIComponent(a)+"</cke:encoded>"})}function j(a){return a.replace(L,function(a,b){return decodeURIComponent(b)})}function t(a){return a.replace(/<\!--(?!{cke_protected})[\s\S]+?--\>/g,function(a){return"<\!--"+
s+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\>"})}function n(a){return a.replace(/<\!--\{cke_protected\}\{C\}([\s\S]+?)--\>/g,function(a,b){return decodeURIComponent(b)})}function m(a,b){var c=b._.dataStore;return a.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(a,b){return decodeURIComponent(b)}).replace(/\{cke_protected_(\d+)\}/g,function(a,b){return c&&c[b]||""})}function r(a,b){for(var c=[],f=b.config.protectedSource,d=b._.dataStore||(b._.dataStore={id:1}),g=/<\!--\{cke_temp(comment)?\}(\d*?)--\>/g,
f=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(f),a=a.replace(/<\!--[\s\S]*?--\>/g,function(a){return"<\!--{cke_tempcomment}"+(c.push(a)-1)+"--\>"}),j=0;j<f.length;j++)a=a.replace(f[j],function(a){a=a.replace(g,function(a,b,f){return c[f]});return/cke_temp(comment)?/.test(a)?a:"<\!--{cke_temp}"+(c.push(a)-1)+"--\>"});a=a.replace(g,function(a,b,f){return"<\!--"+s+(b?"{C}":"")+encodeURIComponent(c[f]).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,b){d[d.id]=decodeURIComponent(b);return"{cke_protected_"+d.id++ +"}"})});return a=a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(a,c,f,d){return"<"+c+f+">"+m(n(d),b)+"</"+c+">"})}CKEDITOR.htmlDataProcessor=function(b){var d,g,h=this;this.editor=b;this.dataFilter=d=new CKEDITOR.htmlParser.filter;this.htmlFilter=g=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;d.addRules(y);
d.addRules(w,{applyToAll:true});d.addRules(a(b,"data"),{applyToAll:true});g.addRules(o);g.addRules(z,{applyToAll:true});g.addRules(a(b,"html"),{applyToAll:true});b.on("toHtml",function(a){var a=a.data,d=a.dataValue,g,d=r(d,b),d=f(d,D),d=c(d),d=f(d,G),d=d.replace(B,"$1cke:$2"),d=d.replace(N,"<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");g=a.context||b.editable().getName();var h;if(CKEDITOR.env.ie&&
CKEDITOR.env.version<9&&g=="pre"){g="div";d="<pre>"+d+"</pre>";h=1}g=b.document.createElement(g);g.setHtml("a"+d);d=g.getHtml().substr(1);d=d.replace(RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");h&&(d=d.replace(/^<pre>|<\/pre>$/gi,""));d=d.replace(J,"$1$2");d=j(d);d=n(d);g=a.fixForBody===false?false:e(a.enterMode,b.config.autoParagraph);d=CKEDITOR.htmlParser.fragment.fromHtml(d,a.context,g);if(g){h=d;if(!h.children.length&&CKEDITOR.dtd[h.name][g]){g=new CKEDITOR.htmlParser.element(g);h.add(g)}}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(h.dataFilter,true)},null,null,10);b.on("toHtml",function(a){var a=a.data,b=a.dataValue,c=new CKEDITOR.htmlParser.basicWriter;b.writeChildrenHtml(c);b=c.getHtml(true);a.dataValue=t(b)},null,null,15);b.on("toDataFormat",function(a){var c=a.data.dataValue;a.data.enterMode!=CKEDITOR.ENTER_BR&&
(c=c.replace(/^<br *\/?>/i,""));a.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(c,a.data.context,e(a.data.enterMode,b.config.autoParagraph))},null,null,5);b.on("toDataFormat",function(a){a.data.dataValue.filterChildren(h.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,f=h.writer;f.reset();c.writeChildrenHtml(f);c=f.getHtml(true);c=n(c);c=m(c,b);a.data.dataValue=
c},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,b,c,f){var d=this.editor,g,j,h,e;if(b&&typeof b=="object"){g=b.context;c=b.fixForBody;f=b.dontFilter;j=b.filter;h=b.enterMode;e=b.protectedWhitespaces}else g=b;!g&&g!==null&&(g=d.editable().getName());return d.fire("toHtml",{dataValue:a,context:g,fixForBody:c,dontFilter:f,filter:j||d.filter,enterMode:h||d.enterMode,protectedWhitespaces:e}).dataValue},toDataFormat:function(a,b){var c,f,d;if(b){c=b.context;f=b.filter;d=b.enterMode}!c&&
c!==null&&(c=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:a,filter:f||this.editor.filter,context:c,enterMode:d||this.editor.enterMode}).dataValue}};var p=/(?:&nbsp;|\xa0)$/,s="{cke_protected}",v=CKEDITOR.dtd,u=["caption","colgroup","col","thead","tfoot","tbody"],q=CKEDITOR.tools.extend({},v.$blockLimit,v.$block),y={elements:{input:h,textarea:h}},w={attributeNames:[[/^on/,"data-cke-pa-on"],[/^data-cke-expando$/,""]]},o={elements:{embed:function(a){var b=a.parent;
if(b&&b.name=="object"){var c=b.attributes.width,b=b.attributes.height;if(c)a.attributes.width=c;if(b)a.attributes.height=b}},a:function(a){var b=a.attributes;if(!a.children.length&&!b.name&&!b.id&&!a.attributes["data-cke-saved-name"])return false}}},z={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(a){var b=a.attributes;if(b){if(b["data-cke-temp"])return false;for(var c=["name","href","src"],
f,d=0;d<c.length;d++){f="data-cke-saved-"+c[d];f in b&&delete b[c[d]]}}return a},table:function(a){a.children.slice(0).sort(function(a,b){var c,f;if(a.type==CKEDITOR.NODE_ELEMENT&&b.type==a.type){c=CKEDITOR.tools.indexOf(u,a.name);f=CKEDITOR.tools.indexOf(u,b.name)}if(!(c>-1&&f>-1&&c!=f)){c=a.parent?a.getIndex():-1;f=b.parent?b.getIndex():-1}return c>f?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 b=a.children[0];if(b&&b.value)b.value=CKEDITOR.tools.trim(b.value);if(!a.attributes.type)a.attributes.type="text/css"},title:function(a){var b=a.children[0];!b&&i(a,b=new CKEDITOR.htmlParser.text);b.value=a.attributes["data-cke-title"]||""},input:k,textarea:k},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 x=/<(a|area|img|input|source)\b([^>]*)>/gi,C=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,A=/^(href|src|name)$/i,G=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,D=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,L=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,B=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,J=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,
N=/<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||"",d=b.match(/^cke:(.*)/);d&&(b=d[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,d,g){d=="font-family"&&(g=g.replace(/["']/g,""));e[d.toLowerCase()]=g});return{rules:e,populate:function(a){var d=this.toString();if(d)a instanceof CKEDITOR.dom.element?a.setAttribute("style",d):a instanceof CKEDITOR.htmlParser.element?a.attributes.style=d:a.style=d},toString:function(){var a=[],d;
for(d in e)e[d]&&a.push(d,":",e[d],";");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,h,b=e.getFilterContext(b);if(b.off)return true;if(!e.parent)a.onRoot(b,e);for(;;){i=e.name;if(!(h=a.onElementName(b,i))){this.remove();return false}e.name=h;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 k,c;for(k in i){c=k;for(h=i[k];;)if(c=a.onAttributeName(b,k))if(c!=k){delete i[k];
k=c}else break;else{delete i[k];break}c&&((h=a.onAttribute(b,e,c,h))===false?delete i[c]:i[c]=h)}e.isEmpty||this.filterChildren(a,false,b);return true},filterChildren:b.filterChildren,writeHtml:function(a,b){b&&this.filter(b);var l=this.name,i=[],h=this.attributes,k,c;a.openTag(l,h);for(k in h)i.push([k,h[k]]);a.sortAttributes&&i.sort(e);k=0;for(c=i.length;k<c;k++){h=i[k];a.attribute(h[0],h[1])}a.openTagClose(l,this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(l)},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 g=0,e=this.children.length;g<e;++g)if(b(this.children[g]))return this.children[g];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,d=/\n/g,g=/\r/g;CKEDITOR.template=function(l){if(a[l])this.output=a[l];else{var i=l.replace(b,"\\$1").replace(d,"\\n").replace(g,"\\r").replace(e,function(a,b){return"',data['"+b+"']==undefined?'{"+b+"}':data['"+
b+"'],'"});this.output=a[l]=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 d=a[e];if(d)return d;d={name:e,source:b};CKEDITOR.fire("template",d);return a[e]=new CKEDITOR.template(d.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),d=a.is("textarea")?a:null;if(d){b.setData(d.getValue(),null,true);a=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+
!!b.readOnly+'" class="cke_textarea_inline">'+d.getValue()+"</div>",CKEDITOR.document);a.insertAfter(d);d.hide();d.$.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(d){b.container.clearCustomData();
b.container.remove();d.show()}b.element.clearCustomData();delete b.element});return b};CKEDITOR.inlineAll=function(){var a,e,b;for(b in CKEDITOR.dtd.$editable)for(var d=CKEDITOR.document.getElementsByTag(b),g=0,l=d.count();g<l;g++){a=d.getItem(g);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,
g,l,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 h=new CKEDITOR.editor(g,a,i);if(i==CKEDITOR.ELEMENT_MODE_REPLACE){a.setStyle("visibility","hidden");h._.required=a.hasAttribute("required");a.removeAttribute("required")}l&&h.setData(l,null,true);h.on("loaded",function(){b(h);i==CKEDITOR.ELEMENT_MODE_REPLACE&&(h.config.autoUpdateElement&&a.$.form)&&h._attachToForm();
h.setMode(h.config.startupMode,function(){h.resetDirty();h.status="ready";h.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,h)})});h.on("destroy",e);return h}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,h=a.fire("uiSpace",{space:"top",
html:""}).html,k=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:h?'<span id="'+a.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+h+"</span>":"",contentId:a.ui.spaceId("contents"),bottomHtml:k?'<span id="'+a.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+k+"</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");h&&a.ui.space("top").unselectable();k&&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,g){return a(b,g,null,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.appendTo=function(b,
g,e){return a(b,g,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 h=e.checkDirty(),i=e._.previousModeData,k,c=0;e.fire("beforeModeUnload");e.editable(0);e._.previousMode=e.mode;e._.previousModeData=k=e.getData(1);if(e.mode=="source"&&i==k){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;h!==void 0&&!h&&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 h=this.container,k=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")}):h;i.setSize("width",a,true);c&&(c.style.width="1%");var f=(i.$.offsetHeight||0)-(k.$.clientHeight||0),h=Math.max(b-(e?0:f),
0),b=e?b+f:b;k.setStyle("height",h+"px");c&&(c.style.width="100%");this.fire("resize",{outerHeight:b,contentsHeight:h,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,d;function g(a){var b=a.editor,c=a.data.path,d=c.blockLimit,g=a.data.selection,j=g.getRanges()[0],
e;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)if(g=l(g,c)){g.appendBogus();e=CKEDITOR.env.ie}if(f(b,c.block,d)&&j.collapsed&&!j.getCommonAncestor().isReadOnly()){c=j.clone();c.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);d=new CKEDITOR.dom.walker(c);d.guard=function(a){return!h(a)||a.type==CKEDITOR.NODE_COMMENT||a.isReadOnly()};if(!d.checkForward()||c.checkStartOfBlock()&&c.checkEndOfBlock()){b=j.fixBlock(true,b.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p");if(!CKEDITOR.env.needsBrFiller)(b=
b.getFirst(h))&&(b.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(b.getText()).match(/^(?:&nbsp;|\xa0)$/))&&b.remove();e=1;a.cancel()}}e&&j.select()}function l(a,b){if(a.isFake)return 0;var c=b.block||b.blockLimit,f=c&&c.getLast(h);if(c&&c.isBlockBoundary()&&(!f||!(f.type==CKEDITOR.NODE_ELEMENT&&f.isBlockBoundary()))&&!c.is("pre")&&!c.getBogus())return c}function i(a){var b=a.data.getTarget();if(b.is("input")){b=b.getAttribute("type");(b=="submit"||b=="reset")&&a.data.preventDefault()}}function h(a){return m(a)&&
r(a)}function k(a,b){return function(c){var f=c.data.$.toElement||c.data.$.fromElement||c.data.$.relatedTarget,f=f&&f.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(f):null;(!f||!b.equals(f)&&!b.contains(f))&&a.call(this,c)}}function c(a){function b(a){return function(b,f){f&&(b.type==CKEDITOR.NODE_ELEMENT&&b.is(d))&&(c=b);if(!f&&h(b)&&(!a||!s(b)))return false}}var c,f=a.getRanges()[0],a=a.root,d={table:1,ul:1,ol:1,dl:1};if(f.startPath().contains(d)){var g=f.clone();g.collapse(1);g.setStartAt(a,
CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(g);a.guard=b();a.checkBackward();if(c){g=f.clone();g.collapse();g.setEndAt(c,CKEDITOR.POSITION_AFTER_END);a=new CKEDITOR.dom.walker(g);a.guard=b(true);c=false;a.checkForward();return c}}return null}function f(a,b,c){return a.config.autoParagraph!==false&&a.activeEnterMode!=CKEDITOR.ENTER_BR&&(a.editable().equals(c)&&!b||b&&b.getAttribute("contenteditable")=="true")}function j(a){return a.activeEnterMode!=CKEDITOR.ENTER_BR&&a.config.autoParagraph!==
false?a.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":false}function t(a){var b=a.editor;b.getSelection().scrollIntoView();setTimeout(function(){b.fire("saveSnapshot")},0)}function n(a,b,c){for(var f=a.getCommonAncestor(b),b=a=c?b:a;(a=a.getParent())&&!f.equals(a)&&a.getChildCount()==1;)b=a;b.remove()}CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(a,b){this.base(b.$||b);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(b){if(!CKEDITOR.env.ie)throw b;}if(CKEDITOR.env.safari&&!this.isInline()){a=CKEDITOR.document.getActive();a.equals(this.getWindow().getFrame())||this.getWindow().focus()}},on:function(a,b){var c=Array.prototype.slice.call(arguments,0);if(CKEDITOR.env.ie&&/^focus|blur$/.exec(a)){a=
a=="focus"?"focusin":"focusout";b=k(b,this);c[0]=a;c[1]=b}return CKEDITOR.dom.element.prototype.on.apply(this,c)},attachListener:function(a){!this._.listeners&&(this._.listeners=[]);var b=Array.prototype.slice.call(arguments,1),b=a.on.apply(a,b);this._.listeners.push(b);return b},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(b){}},restoreAttrs:function(){var a=this._.attrChanges,b,c;for(c in a)if(a.hasOwnProperty(c)){b=a[c];b!==null?this.setAttribute(c,
b):this.removeAttribute(c)}},attachClass:function(a){var b=this.getCustomData("classes");if(!this.hasClass(a)){!b&&(b=[]);b.push(a);this.setCustomData("classes",b);this.addClass(a)}},changeAttr:function(a,b){var c=this.getAttribute(a);if(b!==c){!this._.attrChanges&&(this._.attrChanges={});a in this._.attrChanges||(this._.attrChanges[a]=c);this.setAttribute(a,b)}},insertText:function(a){this.editor.focus();this.insertHtml(this.transformPlainTextToHtml(a),"text")},transformPlainTextToHtml:function(a){var b=
this.editor.getSelection().getStartElement().hasAscendant("pre",true)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(a,b)},insertHtml:function(a,b,c){var f=this.editor;f.focus();f.fire("saveSnapshot");c||(c=f.getSelection().getRanges()[0]);u(this,b||"html",a,c);c.select();t(this);this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(a,b,c){u(this,c||"html",a,b);this.editor.fire("afterInsertHtml",{intoRange:b})},insertElement:function(a,
b){var c=this.editor;c.focus();c.fire("saveSnapshot");var f=c.activeEnterMode,c=c.getSelection(),d=a.getName(),d=CKEDITOR.dtd.$block[d];b||(b=c.getRanges()[0]);if(this.insertElementIntoRange(a,b)){b.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);if(d)if((d=a.getNext(function(a){return h(a)&&!s(a)}))&&d.type==CKEDITOR.NODE_ELEMENT&&d.is(CKEDITOR.dtd.$block))d.getDtd()["#"]?b.moveToElementEditStart(d):b.moveToElementEditEnd(a);else if(!d&&f!=CKEDITOR.ENTER_BR){d=b.fixBlock(true,f==CKEDITOR.ENTER_DIV?
"div":"p");b.moveToElementEditStart(d)}}c.selectRanges([b]);t(this)},insertElementIntoSelection:function(a){this.insertElement(a)},insertElementIntoRange:function(a,b){var c=this.editor,f=c.config.enterMode,d=a.getName(),g=CKEDITOR.dtd.$block[d];if(b.checkReadOnly())return false;b.deleteContents(1);b.startContainer.type==CKEDITOR.NODE_ELEMENT&&b.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})&&q(b);var j,e;if(g)for(;(j=b.getCommonAncestor(0,1))&&(e=CKEDITOR.dtd[j.getName()])&&(!e||!e[d]);)if(j.getName()in
CKEDITOR.dtd.span)b.splitElement(j);else if(b.checkStartOfBlock()&&b.checkEndOfBlock()){b.setStartBefore(j);b.collapse(true);j.remove()}else b.splitBlock(f==CKEDITOR.ENTER_DIV?"div":"p",c.editable());b.insertNode(a);return true},setData:function(a,b){b||(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 b=this.getHtml();a||(b=this.editor.dataProcessor.toDataFormat(b));
return b},setReadOnly:function(a){this.setAttribute("contenteditable",!a)},detach:function(){this.removeClass("cke_editable");this.status="detached";var a=this.editor;this._.detach();delete a.document;delete a.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function a(){var b=c.getDocument().$,f=b.getSelection(),d;if(f.anchorNode&&f.anchorNode==c.$)d=true;else if(CKEDITOR.env.webkit){var g=c.getDocument().getActive();g&&(g.equals(c)&&
!f.anchorNode)&&(d=true)}if(d){d=new CKEDITOR.dom.range(c);d.moveToElementEditStart(c);b=b.createRange();b.setStart(d.startContainer.$,d.startOffset);b.collapse(true);f.removeAllRanges();f.addRange(b)}}function b(){var a=c.getDocument().$,f=a.selection,d=c.getDocument().getActive();if(f.type=="None"&&d.equals(c)){f=new CKEDITOR.dom.range(c);a=a.body.createTextRange();f.moveToElementEditStart(c);f=f.startContainer;f.type!=CKEDITOR.NODE_ELEMENT&&(f=f.getParent());a.moveToElementText(f.$);a.collapse(true);
a.select()}}var c=this;if(CKEDITOR.env.ie&&(CKEDITOR.env.version<9||CKEDITOR.env.quirks)){if(this.hasFocus){this.focus();b()}}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();d.rebuild(c,this);a.fix(c,this);return new CKEDITOR.dom.documentFragment(c.fragment.$)},
extractHtmlFromRange:function(a,b){var c=y,f={range:a,doc:a.document},d=this.getHtmlFromRange(a);if(a.collapsed){a.optimize();return d}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);c.table.detectPurge(f);f.bookmark=a.createBookmark();delete f.range;var g=this.editor.createRange();g.moveToPosition(f.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);f.targetBookmark=g.createBookmark();c.list.detectMerge(f,this);c.table.detectRanges(f,this);c.block.detectMerge(f,this);if(f.tableContentsRanges){c.table.deleteRanges(f);
a.moveToBookmark(f.bookmark);f.range=a}else{a.moveToBookmark(f.bookmark);f.range=a;a.extractContents(c.detectExtractMerge(f))}a.moveToBookmark(f.targetBookmark);a.optimize();c.fixUneditableRangePosition(a);c.list.merge(f,this);c.table.purge(f,this);c.block.merge(f,this);if(b){c=a.startPath();if(f=a.checkStartOfBlock())if(f=a.checkEndOfBlock())if(f=c.block)if(f=!a.root.equals(c.block)){a:{var f=c.block.getElementsByTag("span"),g=0,j;if(f)for(;j=f.getItem(g++);)if(!r(j)){f=true;break a}f=false}f=!f}if(f){a.moveToPosition(c.block,
CKEDITOR.POSITION_BEFORE_START);c.block.remove()}}else{c.autoParagraph(this.editor,a);p(a.startContainer)&&a.startContainer.appendBogus()}a.startContainer.mergeSiblings();return d},setup:function(){var a=this.editor;this.attachListener(a,"beforeGetData",function(){var b=this.getData();this.is("textarea")||a.config.ignoreEmptyParagraph!==false&&(b=b.replace(v,function(a,b){return b}));a.setData(b,null,1)},this);this.attachListener(a,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(a,
"afterSetData",function(){this.setData(a.getData(1))},this);this.attachListener(a,"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(a,"beforeFocus",function(){var b=a.getSelection();(b=b&&b.getNative())&&b.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 f=a.config.contentsLangDirection;this.getDirection(1)!=
f&&this.changeAttr("dir",f);var d=CKEDITOR.getCss();if(d){f=b.getHead();if(!f.getCustomData("stylesheet")){d=b.appendStyleText(d);d=new CKEDITOR.dom.element(d.ownerNode||d.owningElement);f.setCustomData("stylesheet",d);d.data("cke-temp",1)}}f=b.getCustomData("stylesheet_ref")||0;b.setCustomData("stylesheet_ref",f+1);this.setCustomData("cke_includeReadonly",!a.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){var a=a.data,b=(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a");
b&&(a.$.button!=2&&b.isReadOnly())&&a.preventDefault()});var g={8:1,46:1};this.attachListener(a,"key",function(b){if(a.readOnly)return true;var f=b.data.domEvent.getKey(),d;if(f in g){var b=a.getSelection(),j,e=b.getRanges()[0],h=e.startPath(),k,i,q,f=f==8;if(CKEDITOR.env.ie&&CKEDITOR.env.version<11&&(j=b.getSelectedElement())||(j=c(b))){a.fire("saveSnapshot");e.moveToPosition(j,CKEDITOR.POSITION_BEFORE_START);j.remove();e.select();a.fire("saveSnapshot");d=1}else if(e.collapsed)if((k=h.block)&&(q=
k[f?"getPrevious":"getNext"](m))&&q.type==CKEDITOR.NODE_ELEMENT&&q.is("table")&&e[f?"checkStartOfBlock":"checkEndOfBlock"]()){a.fire("saveSnapshot");e[f?"checkEndOfBlock":"checkStartOfBlock"]()&&k.remove();e["moveToElementEdit"+(f?"End":"Start")](q);e.select();a.fire("saveSnapshot");d=1}else if(h.blockLimit&&h.blockLimit.is("td")&&(i=h.blockLimit.getAscendant("table"))&&e.checkBoundaryOfElement(i,f?CKEDITOR.START:CKEDITOR.END)&&(q=i[f?"getPrevious":"getNext"](m))){a.fire("saveSnapshot");e["moveToElementEdit"+
(f?"End":"Start")](q);e.checkStartOfBlock()&&e.checkEndOfBlock()?q.remove():e.select();a.fire("saveSnapshot");d=1}else if((i=h.contains(["td","th","caption"]))&&e.checkBoundaryOfElement(i,f?CKEDITOR.START:CKEDITOR.END))d=1}return!d});a.blockless&&(CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)&&this.attachListener(this,"keyup",function(b){if(b.data.getKeystroke()in g&&!this.getFirst(h)){this.appendBogus();b=a.createRange();b.moveToPosition(this,CKEDITOR.POSITION_AFTER_START);b.select()}});this.attachListener(this,
"dblclick",function(b){if(a.readOnly)return false;b={element:b.data.getTarget()};a.fire("doubleclick",b)});CKEDITOR.env.ie&&this.attachListener(this,"click",i);(!CKEDITOR.env.ie||CKEDITOR.env.edge)&&this.attachListener(this,"mousedown",function(b){var c=b.data.getTarget();if(c.is("img","hr","input","textarea","select")&&!c.isReadOnly()){a.getSelection().selectElement(c);c.is("input","textarea","select")&&b.data.preventDefault()}});CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(b){(b=
b.data.getTarget())&&b.is("img")&&a.getSelection().selectElement(b)});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(b){if(b.data.$.button==2){b=b.data.getTarget();if(!b.getOuterHtml().replace(v,"")){var c=a.createRange();c.moveToElementEditStart(b);c.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(b){if(a.readOnly)return true;b=b.data.domEvent.getKey();if(b in g){var c=b==8,f=a.getSelection().getRanges()[0],b=f.startPath();if(f.collapsed){var d;a:{var j=b.block;if(j)if(f[c?"checkStartOfBlock":"checkEndOfBlock"]())if(!f.moveToClosestEditablePosition(j,!c)||!f.collapsed)d=false;else{if(f.startContainer.type==CKEDITOR.NODE_ELEMENT){var e=f.startContainer.getChild(f.startOffset-(c?1:0));if(e&&e.type==CKEDITOR.NODE_ELEMENT&&
e.is("hr")){a.fire("saveSnapshot");e.remove();d=true;break a}}if((f=f.startPath().block)&&(!f||!f.contains(j))){a.fire("saveSnapshot");var h;(h=(c?f:j).getBogus())&&h.remove();d=a.getSelection();h=d.createBookmarks();(c?j:f).moveChildren(c?f:j,false);b.lastElement.mergeSiblings();n(j,f,!c);d.selectBookmarks(h);d=true}}else d=false;else d=false}if(!d)return}else{c=f;d=b.block;h=c.endPath().block;if(!d||!h||d.equals(h))b=false;else{a.fire("saveSnapshot");(j=d.getBogus())&&j.remove();c.enlarge(CKEDITOR.ENLARGE_INLINE);
c.deleteContents();if(h.getParent()){h.moveChildren(d,false);b.lastElement.mergeSiblings();n(d,h,true)}c=a.getSelection().getRanges()[0];c.collapse(1);c.optimize();c.startContainer.getHtml()===""&&c.startContainer.appendBogus();c.select();b=true}if(!b)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 b=a.getHead();if(b.getCustomData("stylesheet")){var c=a.getCustomData("stylesheet_ref");if(--c)a.setCustomData("stylesheet_ref",c);else{a.removeCustomData("stylesheet_ref");b.removeCustomData("stylesheet").remove()}}}this.editor.fire("contentDomUnload");delete this.editor}}});CKEDITOR.editor.prototype.editable=function(a){var b=this._.editable;if(b&&a)return 0;if(arguments.length)b=this._.editable=a?a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,
a):(b&&b.detach(),null);return b};CKEDITOR.on("instanceLoaded",function(a){var b=a.editor;b.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)}});b.on("selectionChange",function(a){if(!b.readOnly){var c=b.getSelection();if(c&&!c.isLocked){c=b.checkDirty();b.fire("lockSnapshot");g(a);b.fire("unlockSnapshot");
!c&&b.resetDirty()}}})});CKEDITOR.on("instanceCreated",function(a){var b=a.editor;b.on("mode",function(){var a=b.editable();if(a&&a.isInline()){var c=b.title;a.changeAttr("role","textbox");a.changeAttr("aria-label",c);c&&a.changeAttr("title",c);var f=b.fire("ariaEditorHelpLabel",{}).label;if(f)if(c=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents")){var d=CKEDITOR.tools.getNextId(),f=CKEDITOR.dom.element.createFromHtml('<span id="'+d+'" class="cke_voice_label">'+f+"</span>");
c.append(f);a.changeAttr("aria-describedby",d)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");var m=CKEDITOR.dom.walker.whitespaces(true),r=CKEDITOR.dom.walker.bookmark(false,true),p=CKEDITOR.dom.walker.empty(),s=CKEDITOR.dom.walker.bogus(),v=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,u=function(){function a(b){return b.type==CKEDITOR.NODE_ELEMENT}
function b(c,f){var d,g,j,e,h=[],B=f.range.startContainer;d=f.range.startPath();for(var B=k[B.getName()],i=0,m=c.getChildren(),q=m.count(),l=-1,n=-1,t=0,x=d.contains(k.$list);i<q;++i){d=m.getItem(i);if(a(d)){j=d.getName();if(x&&j in CKEDITOR.dtd.$list)h=h.concat(b(d,f));else{e=!!B[j];if(j=="br"&&d.data("cke-eol")&&(!i||i==q-1)){t=(g=i?h[i-1].node:m.getItem(i+1))&&(!a(g)||!g.is("br"));g=g&&a(g)&&k.$block[g.getName()]}l==-1&&!e&&(l=i);e||(n=i);h.push({isElement:1,isLineBreak:t,isBlock:d.isBlockBoundary(),
hasBlockSibling:g,node:d,name:j,allowed:e});g=t=0}}else h.push({isElement:0,node:d,allowed:1})}if(l>-1)h[l].firstNotAllowed=1;if(n>-1)h[n].lastNotAllowed=1;return h}function c(b,f){var d=[],g=b.getChildren(),j=g.count(),e,h=0,B=k[f],i=!b.is(k.$inline)||b.is("br");for(i&&d.push(" ");h<j;h++){e=g.getItem(h);a(e)&&!e.is(B)?d=d.concat(c(e,f)):d.push(e)}i&&d.push(" ");return d}function d(b){return b&&a(b)&&(b.is(k.$removeEmpty)||b.is("a")&&!b.isBlockBoundary())}function g(b,c,f,d){var j=b.clone(),e,h;
j.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);if((e=(new CKEDITOR.dom.walker(j)).next())&&a(e)&&i[e.getName()]&&(h=e.getPrevious())&&a(h)&&!h.getParent().equals(b.startContainer)&&f.contains(h)&&d.contains(e)&&e.isIdentical(h)){e.moveChildren(h);e.remove();g(b,c,f,d)}}function e(b,c){function f(b,c){if(c.isBlock&&c.isElement&&!c.node.is("br")&&a(b)&&b.is("br")){b.remove();return 1}}var d=c.endContainer.getChild(c.endOffset),g=c.endContainer.getChild(c.endOffset-1);d&&f(d,b[b.length-1]);if(g&&f(g,b[0])){c.setEnd(c.endContainer,
c.endOffset-1);c.collapse()}}var k=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},m={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},B=CKEDITOR.tools.extend({},k.$inline);delete B.br;return function(i,q,l,n){var t=i.editor,r=false;if(q=="unfiltered_html"){q="html";r=true}if(!n.checkReadOnly()){var y=(new CKEDITOR.dom.elementPath(n.startContainer,n.root)).blockLimit||n.root,i={type:q,dontFilter:r,editable:i,editor:t,range:n,blockLimit:y,mergeCandidates:[],
zombies:[]},q=i.range,n=i.mergeCandidates,p,s;if(i.type=="text"&&q.shrink(CKEDITOR.SHRINK_ELEMENT,true,false)){p=CKEDITOR.dom.element.createFromHtml("<span>&nbsp;</span>",q.document);q.insertNode(p);q.setStartAfter(p)}r=new CKEDITOR.dom.elementPath(q.startContainer);i.endPath=y=new CKEDITOR.dom.elementPath(q.endContainer);if(!q.collapsed){var t=y.block||y.blockLimit,v=q.getCommonAncestor();t&&(!t.equals(v)&&!t.contains(v)&&q.checkEndOfBlock())&&i.zombies.push(t);q.deleteContents()}for(;(s=a(q.startContainer)&&
q.startContainer.getChild(q.startOffset-1))&&a(s)&&s.isBlockBoundary()&&r.contains(s);)q.moveToPosition(s,CKEDITOR.POSITION_BEFORE_END);g(q,i.blockLimit,r,y);if(p){q.setEndBefore(p);q.collapse();p.remove()}p=q.startPath();if(t=p.contains(d,false,1)){q.splitElement(t);i.inlineStylesRoot=t;i.inlineStylesPeak=p.lastElement}p=q.createBookmark();(t=p.startNode.getPrevious(h))&&a(t)&&d(t)&&n.push(t);(t=p.startNode.getNext(h))&&a(t)&&d(t)&&n.push(t);for(t=p.startNode;(t=t.getParent())&&d(t);)n.push(t);q.moveToBookmark(p);
if(p=l){p=i.range;if(i.type=="text"&&i.inlineStylesRoot){s=i.inlineStylesPeak;q=s.getDocument().createText("{cke-peak}");for(n=i.inlineStylesRoot.getParent();!s.equals(n);){q=q.appendTo(s.clone());s=s.getParent()}l=q.getOuterHtml().split("{cke-peak}").join(l)}s=i.blockLimit.getName();if(/^\s+|\s+$/.test(l)&&"span"in CKEDITOR.dtd[s])var H='<span data-cke-marker="1">&nbsp;</span>',l=H+l+H;l=i.editor.dataProcessor.toHtml(l,{context:null,fixForBody:false,protectedWhitespaces:!!H,dontFilter:i.dontFilter,
filter:i.editor.activeFilter,enterMode:i.editor.activeEnterMode});s=p.document.createElement("body");s.setHtml(l);if(H){s.getFirst().remove();s.getLast().remove()}if((H=p.startPath().block)&&!(H.getChildCount()==1&&H.getBogus()))a:{var F;if(s.getChildCount()==1&&a(F=s.getFirst())&&F.is(m)&&!F.hasAttribute("contenteditable")){H=F.getElementsByTag("*");p=0;for(n=H.count();p<n;p++){q=H.getItem(p);if(!q.is(B))break a}F.moveChildren(F.getParent(1));F.remove()}}i.dataWrapper=s;p=l}if(p){F=i.range;p=F.document;
var E;s=i.blockLimit;var n=0,M,H=[],u,D,l=t=0,R,V,q=F.startContainer,r=i.endPath.elements[0],W,y=r.getPosition(q),v=!!r.getCommonAncestor(q)&&y!=CKEDITOR.POSITION_IDENTICAL&&!(y&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED),q=b(i.dataWrapper,i);for(e(q,F);n<q.length;n++){y=q[n];if(E=y.isLineBreak){E=F;R=s;var S=void 0,Y=void 0;if(y.hasBlockSibling)E=1;else{S=E.startContainer.getAscendant(k.$block,1);if(!S||!S.is({div:1,p:1}))E=0;else{Y=S.getPosition(R);if(Y==CKEDITOR.POSITION_IDENTICAL||
Y==CKEDITOR.POSITION_CONTAINS)E=0;else{R=E.splitElement(S);E.moveToPosition(R,CKEDITOR.POSITION_AFTER_START);E=1}}}}if(E)l=n>0;else{E=F.startPath();if(!y.isBlock&&f(i.editor,E.block,E.blockLimit)&&(D=j(i.editor))){D=p.createElement(D);D.appendBogus();F.insertNode(D);CKEDITOR.env.needsBrFiller&&(M=D.getBogus())&&M.remove();F.moveToPosition(D,CKEDITOR.POSITION_BEFORE_END)}if((E=F.startPath().block)&&!E.equals(u)){if(M=E.getBogus()){M.remove();H.push(E)}u=E}y.firstNotAllowed&&(t=1);if(t&&y.isElement){E=
F.startContainer;for(R=null;E&&!k[E.getName()][y.name];){if(E.equals(s)){E=null;break}R=E;E=E.getParent()}if(E){if(R){V=F.splitElement(R);i.zombies.push(V);i.zombies.push(R)}}else{R=s.getName();W=!n;E=n==q.length-1;R=c(y.node,R);for(var S=[],Y=R.length,aa=0,ba=void 0,X=0,ca=-1;aa<Y;aa++){ba=R[aa];if(ba==" "){if(!X&&(!W||aa)){S.push(new CKEDITOR.dom.text(" "));ca=S.length}X=1}else{S.push(ba);X=0}}E&&ca==S.length&&S.pop();W=S}}if(W){for(;E=W.pop();)F.insertNode(E);W=0}else F.insertNode(y.node);if(y.lastNotAllowed&&
n<q.length-1){(V=v?r:V)&&F.setEndAt(V,CKEDITOR.POSITION_AFTER_START);t=0}F.collapse()}}if(q.length!=1)M=false;else{M=q[0];M=M.isElement&&M.node.getAttribute("contenteditable")=="false"}if(M){l=true;E=q[0].node;F.setStartAt(E,CKEDITOR.POSITION_BEFORE_START);F.setEndAt(E,CKEDITOR.POSITION_AFTER_END)}i.dontMoveCaret=l;i.bogusNeededBlocks=H}M=i.range;var Z;V=i.bogusNeededBlocks;for(W=M.createBookmark();u=i.zombies.pop();)if(u.getParent()){D=M.clone();D.moveToElementEditStart(u);D.removeEmptyBlocksAtEnd()}if(V)for(;u=
V.pop();)CKEDITOR.env.needsBrFiller?u.appendBogus():u.append(M.document.createText(" "));for(;u=i.mergeCandidates.pop();)u.mergeSiblings();M.moveToBookmark(W);if(!i.dontMoveCaret){for(u=a(M.startContainer)&&M.startContainer.getChild(M.startOffset-1);u&&a(u)&&!u.is(k.$empty);){if(u.isBlockBoundary())M.moveToPosition(u,CKEDITOR.POSITION_BEFORE_END);else{if(d(u)&&u.getHtml().match(/(\s|&nbsp;)$/g)){Z=null;break}Z=M.clone();Z.moveToPosition(u,CKEDITOR.POSITION_BEFORE_END)}u=u.getLast(h)}Z&&M.moveToRange(Z)}}}}(),
q=function(){function a(b){b=new CKEDITOR.dom.walker(b);b.guard=function(a,b){if(b)return false;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$tableContent)};b.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT};return b}function b(a,c,f){c=a.getDocument().createElement(c);a.append(c,f);return c}function c(a){var b=a.count(),f;for(b;b-- >0;){f=a.getItem(b);if(!CKEDITOR.tools.trim(f.getHtml())){f.appendBogus();CKEDITOR.env.ie&&(CKEDITOR.env.version<9&&f.getChildCount())&&f.getFirst().remove()}}}
return function(f){var d=f.startContainer,g=d.getAscendant("table",1),e=false;c(g.getElementsByTag("td"));c(g.getElementsByTag("th"));g=f.clone();g.setStart(d,0);g=a(g).lastBackward();if(!g){g=f.clone();g.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);g=a(g).lastForward();e=true}g||(g=d);if(g.is("table")){f.setStartAt(g,CKEDITOR.POSITION_BEFORE_START);f.collapse(true);g.remove()}else{g.is({tbody:1,thead:1,tfoot:1})&&(g=b(g,"tr",e));g.is("tr")&&(g=b(g,g.getParent().is("thead")?"th":"td",e));(d=g.getBogus())&&
d.remove();f.moveToPosition(g,e?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END)}}}();a={detect:function(a,b){var c=a.range,f=c.clone(),d=c.clone(),g=new CKEDITOR.dom.elementPath(c.startContainer,b),e=new CKEDITOR.dom.elementPath(c.endContainer,b);f.collapse(1);d.collapse();if(g.block&&f.checkBoundaryOfElement(g.block,CKEDITOR.END)){c.setStartAfter(g.block);a.prependEolBr=1}if(e.block&&d.checkBoundaryOfElement(e.block,CKEDITOR.START)){c.setEndBefore(e.block);a.appendEolBr=1}},fix:function(a,
b){var c=b.getDocument(),f;if(a.appendEolBr){f=this.createEolBr(c);a.fragment.append(f)}a.prependEolBr&&(!f||f.getPrevious())&&a.fragment.append(this.createEolBr(c),1)},createEolBr:function(a){return a.createElement("br",{attributes:{"data-cke-eol":1}})}};e={exclude:function(a){var b=a.range.getBoundaryNodes(),c=b.startNode;(b=b.endNode)&&(s(b)&&(!c||!c.equals(b)))&&a.range.setEndBefore(b)}};d={rebuild:function(a,b){var c=a.range,f=c.getCommonAncestor(),d=new CKEDITOR.dom.elementPath(f,b),g=new CKEDITOR.dom.elementPath(c.startContainer,
b),c=new CKEDITOR.dom.elementPath(c.endContainer,b),e;f.type==CKEDITOR.NODE_TEXT&&(f=f.getParent());if(d.blockLimit.is({tr:1,table:1})){var j=d.contains("table").getParent();e=function(a){return!a.equals(j)}}else if(d.block&&d.block.is(CKEDITOR.dtd.$listItem)){g=g.contains(CKEDITOR.dtd.$list);c=c.contains(CKEDITOR.dtd.$list);if(!g.equals(c)){var h=d.contains(CKEDITOR.dtd.$list).getParent();e=function(a){return!a.equals(h)}}}e||(e=function(a){return!a.equals(d.block)&&!a.equals(d.blockLimit)});this.rebuildFragment(a,
b,f,e)},rebuildFragment:function(a,b,c,f){for(var d;c&&!c.equals(b)&&f(c);){d=c.clone(0,1);a.fragment.appendTo(d);a.fragment=d;c=c.getParent()}}};b={shrink:function(a){var a=a.range,b=a.startContainer,c=a.endContainer,f=a.startOffset,d=a.endOffset;b.type==CKEDITOR.NODE_ELEMENT&&(b.equals(c)&&b.is("tr")&&++f==d)&&a.shrink(CKEDITOR.SHRINK_TEXT)}};var y=function(){function a(b,c){var f=b.getParent();if(f.is(CKEDITOR.dtd.$inline))b[c?"insertBefore":"insertAfter"](f)}function b(c,f,d){a(f);a(d,1);for(var g;g=
d.getNext();){g.insertAfter(f);f=g}p(c)&&c.remove()}function c(a,b){var f=new CKEDITOR.dom.range(a);f.setStartAfter(b.startNode);f.setEndBefore(b.endNode);return f}return{list:{detectMerge:function(a,b){var f=c(b,a.bookmark),d=f.startPath(),g=f.endPath(),e=d.contains(CKEDITOR.dtd.$list),j=g.contains(CKEDITOR.dtd.$list);a.mergeList=e&&j&&e.getParent().equals(j.getParent())&&!e.equals(j);a.mergeListItems=d.block&&g.block&&d.block.is(CKEDITOR.dtd.$listItem)&&g.block.is(CKEDITOR.dtd.$listItem);if(a.mergeList||
a.mergeListItems){f=f.clone();f.setStartBefore(a.bookmark.startNode);f.setEndAfter(a.bookmark.endNode);a.mergeListBookmark=f.createBookmark()}},merge:function(a,c){if(a.mergeListBookmark){var f=a.mergeListBookmark.startNode,d=a.mergeListBookmark.endNode,g=new CKEDITOR.dom.elementPath(f,c),e=new CKEDITOR.dom.elementPath(d,c);if(a.mergeList){var j=g.contains(CKEDITOR.dtd.$list),h=e.contains(CKEDITOR.dtd.$list);if(!j.equals(h)){h.moveChildren(j);h.remove()}}if(a.mergeListItems){g=g.contains(CKEDITOR.dtd.$listItem);
e=e.contains(CKEDITOR.dtd.$listItem);g.equals(e)||b(e,f,d)}f.remove();d.remove()}}},block:{detectMerge:function(a,b){if(!a.tableContentsRanges&&!a.mergeListBookmark){var c=new CKEDITOR.dom.range(b);c.setStartBefore(a.bookmark.startNode);c.setEndAfter(a.bookmark.endNode);a.mergeBlockBookmark=c.createBookmark()}},merge:function(a,c){if(a.mergeBlockBookmark&&!a.purgeTableBookmark){var f=a.mergeBlockBookmark.startNode,d=a.mergeBlockBookmark.endNode,g=new CKEDITOR.dom.elementPath(f,c),e=new CKEDITOR.dom.elementPath(d,
c),g=g.block,e=e.block;g&&(e&&!g.equals(e))&&b(e,f,d);f.remove();d.remove()}}},table:function(){function a(c){var d=[],g,e=new CKEDITOR.dom.walker(c),j=c.startPath().contains(f),h=c.endPath().contains(f),i={};e.guard=function(a,e){if(a.type==CKEDITOR.NODE_ELEMENT){var k="visited_"+(e?"out":"in");if(a.getCustomData(k))return;CKEDITOR.dom.element.setMarker(i,a,k,1)}if(e&&j&&a.equals(j)){g=c.clone();g.setEndAt(j,CKEDITOR.POSITION_BEFORE_END);d.push(g)}else if(!e&&h&&a.equals(h)){g=c.clone();g.setStartAt(h,
CKEDITOR.POSITION_AFTER_START);d.push(g)}else if(!e&&a.type==CKEDITOR.NODE_ELEMENT&&a.is(f)&&(!j||b(a,j))&&(!h||b(a,h))){g=c.clone();g.selectNodeContents(a);d.push(g)}};e.lastForward();CKEDITOR.dom.element.clearAllMarkers(i);return d}function b(a,c){var f=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,d=a.getPosition(c);return d===CKEDITOR.POSITION_IDENTICAL?false:(d&f)===0}var f={td:1,th:1,caption:1};return{detectPurge:function(a){var b=a.range,c=b.clone();c.enlarge(CKEDITOR.ENLARGE_ELEMENT);
var c=new CKEDITOR.dom.walker(c),d=0;c.evaluator=function(a){a.type==CKEDITOR.NODE_ELEMENT&&a.is(f)&&++d};c.checkForward();if(d>1){var c=b.startPath().contains("table"),g=b.endPath().contains("table");if(c&&g&&b.checkBoundaryOfElement(c,CKEDITOR.START)&&b.checkBoundaryOfElement(g,CKEDITOR.END)){b=a.range.clone();b.setStartBefore(c);b.setEndAfter(g);a.purgeTableBookmark=b.createBookmark()}}},detectRanges:function(d,g){var e=c(g,d.bookmark),j=e.clone(),h,i,k=e.getCommonAncestor();k.is(CKEDITOR.dtd.$tableContent)&&
!k.is(f)&&(k=k.getAscendant("table",true));i=k;k=new CKEDITOR.dom.elementPath(e.startContainer,i);i=new CKEDITOR.dom.elementPath(e.endContainer,i);k=k.contains("table");i=i.contains("table");if(k||i){if(k&&i&&b(k,i)){d.tableSurroundingRange=j;j.setStartAt(k,CKEDITOR.POSITION_AFTER_END);j.setEndAt(i,CKEDITOR.POSITION_BEFORE_START);j=e.clone();j.setEndAt(k,CKEDITOR.POSITION_AFTER_END);h=e.clone();h.setStartAt(i,CKEDITOR.POSITION_BEFORE_START);h=a(j).concat(a(h))}else if(k){if(!i){d.tableSurroundingRange=
j;j.setStartAt(k,CKEDITOR.POSITION_AFTER_END);e.setEndAt(k,CKEDITOR.POSITION_AFTER_END)}}else{d.tableSurroundingRange=j;j.setEndAt(i,CKEDITOR.POSITION_BEFORE_START);e.setStartAt(i,CKEDITOR.POSITION_AFTER_START)}d.tableContentsRanges=h?h:a(e)}},deleteRanges:function(a){for(var b;b=a.tableContentsRanges.pop();){b.extractContents();p(b.startContainer)&&b.startContainer.appendBogus()}a.tableSurroundingRange&&a.tableSurroundingRange.extractContents()},purge:function(a){if(a.purgeTableBookmark){var b=a.doc,
c=a.range.clone(),b=b.createElement("p");b.insertBefore(a.purgeTableBookmark.startNode);c.moveToBookmark(a.purgeTableBookmark);c.deleteContents();a.range.moveToPosition(b,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(a){return!(a.range.startPath().contains(CKEDITOR.dtd.$listItem)&&a.range.endPath().contains(CKEDITOR.dtd.$listItem))},fixUneditableRangePosition:function(a){a.startContainer.getDtd()["#"]||a.moveToClosestEditablePosition(null,true)},autoParagraph:function(a,b){var c=
b.startPath(),d;if(f(a,c.block,c.blockLimit)&&(d=j(a))){d=b.document.createElement(d);d.appendBogus();b.insertNode(d);b.moveToPosition(d,CKEDITOR.POSITION_AFTER_START)}}}}()}(),function(){function a(){var a=this._.fakeSelection,b;if(a){b=this.getSelection(1);if(!b||!b.isHidden()){a.reset();a=0}}if(!a){a=b||this.getSelection(1);if(!a||a.getType()==CKEDITOR.SELECTION_NONE)return}this.fire("selectionCheck",a);b=this.elementPath();if(!b.compare(this._.selectionPreviousPath)){if(CKEDITOR.env.webkit)this._.previousActive=
this.document.getActive();this._.selectionPreviousPath=b;this.fire("selectionChange",{selection:a,path:b})}}function e(){m=true;if(!n){b.call(this);n=CKEDITOR.tools.setTimeout(b,200,this)}}function b(){n=null;if(m){CKEDITOR.tools.setTimeout(a,0,this);m=false}}function d(a){return r(a)||a.type==CKEDITOR.NODE_ELEMENT&&!a.is(CKEDITOR.dtd.$empty)?true:false}function g(a){function b(c,f){return!c||c.type==CKEDITOR.NODE_TEXT?false:a.clone()["moveToElementEdit"+(f?"End":"Start")](c)}if(!(a.root instanceof
CKEDITOR.editable))return false;var c=a.startContainer,f=a.getPreviousNode(d,null,c),g=a.getNextNode(d,null,c);return b(f)||b(g,1)||!f&&!g&&!(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()&&c.getBogus())?true:false}function l(a){return a.getCustomData("cke-fillingChar")}function i(a,b){var f=a&&a.removeCustomData("cke-fillingChar");if(f){if(b!==false){var d,g=a.getDocument().getSelection().getNative(),e=g&&g.type!="None"&&g.getRangeAt(0);if(f.getLength()>1&&e&&e.intersectsNode(f.$)){d=k(g);e=
g.focusNode==f.$&&g.focusOffset>0;g.anchorNode==f.$&&g.anchorOffset>0&&d[0].offset--;e&&d[1].offset--}}f.setText(h(f.getText()));d&&c(a.getDocument().$,d)}}function h(a){return a.replace(/\u200B( )?/g,function(a){return a[1]?" ":""})}function k(a){return[{node:a.anchorNode,offset:a.anchorOffset},{node:a.focusNode,offset:a.focusOffset}]}function c(a,b){var c=a.getSelection(),f=a.createRange();f.setStart(b[0].node,b[0].offset);f.collapse(true);c.removeAllRanges();c.addRange(f);try{c.extend(b[1].node,
b[1].offset)}catch(d){}}function f(a){var b=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(b);var c=a.getSelection(1),f=a.createRange(),d=c.root.on("selectionchange",function(a){a.cancel()},null,null,0);f.setStartAt(b,CKEDITOR.POSITION_AFTER_START);f.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);c.selectRanges([f]);d.removeListener();
a.fire("unlockSnapshot");a._.hiddenSelectionContainer=b}function j(a){var b={37:1,39:1,8:1,46:1};return function(c){var f=c.data.getKeystroke();if(b[f]){var d=a.getSelection().getRanges(),g=d[0];if(d.length==1&&g.collapsed)if((f=g[f<38?"getPreviousEditableNode":"getNextEditableNode"]())&&f.type==CKEDITOR.NODE_ELEMENT&&f.getAttribute("contenteditable")=="false"){a.getSelection().fake(f);c.data.preventDefault();c.cancel()}}}}function t(a){for(var b=0;b<a.length;b++){var c=a[b];c.getCommonAncestor().isReadOnly()&&
a.splice(b,1);if(!c.collapsed){if(c.startContainer.isReadOnly())for(var f=c.startContainer,d;f;){if((d=f.type==CKEDITOR.NODE_ELEMENT)&&f.is("body")||!f.isReadOnly())break;d&&f.getAttribute("contentEditable")=="false"&&c.setStartAfter(f);f=f.getParent()}f=c.startContainer;d=c.endContainer;var g=c.startOffset,e=c.endOffset,j=c.clone();f&&f.type==CKEDITOR.NODE_TEXT&&(g>=f.getLength()?j.setStartAfter(f):j.setStartBefore(f));d&&d.type==CKEDITOR.NODE_TEXT&&(e?j.setEndAfter(d):j.setEndBefore(d));f=new CKEDITOR.dom.walker(j);
f.evaluator=function(f){if(f.type==CKEDITOR.NODE_ELEMENT&&f.isReadOnly()){var d=c.clone();c.setEndBefore(f);c.collapsed&&a.splice(b--,1);if(!(f.getPosition(j.endContainer)&CKEDITOR.POSITION_CONTAINS)){d.setStartAfter(f);d.collapsed||a.splice(b+1,0,d)}return true}return false};f.next()}}return a}var n,m,r=CKEDITOR.dom.walker.invisible(1),p=function(){function a(b){return function(a){var c=a.editor.createRange();c.moveToClosestEditablePosition(a.selected,b)&&a.editor.getSelection().selectRanges([c]);
return false}}function b(a){return function(b){var c=b.editor,f=c.createRange(),d;if(!(d=f.moveToClosestEditablePosition(b.selected,a)))d=f.moveToClosestEditablePosition(b.selected,!a);d&&c.getSelection().selectRanges([f]);c.fire("saveSnapshot");b.selected.remove();if(!d){f.moveToElementEditablePosition(c.editable());c.getSelection().selectRanges([f])}c.fire("saveSnapshot");return false}}var c=a(),f=a(1);return{37:c,38:c,39:f,40:f,8:b(),46:b(1)}}();CKEDITOR.on("instanceCreated",function(b){function c(){var a=
f.getSelection();a&&a.removeAllRanges()}var f=b.editor;f.on("contentDom",function(){function b(){q=new CKEDITOR.dom.selection(f.getSelection());q.lock()}function c(){g.removeListener("mouseup",c);m.removeListener("mouseup",c);var a=CKEDITOR.document.$.selection,b=a.createRange();a.type!="None"&&b.parentElement().ownerDocument==d.$&&b.select()}var d=f.document,g=CKEDITOR.document,h=f.editable(),k=d.getBody(),m=d.getDocumentElement(),l=h.isInline(),B,q;CKEDITOR.env.gecko&&h.attachListener(h,"focus",
function(a){a.removeListener();if(B!==0)if((a=f.getSelection().getNative())&&a.isCollapsed&&a.anchorNode==h.$){a=f.createRange();a.moveToElementEditStart(h);a.select()}},null,null,-2);h.attachListener(h,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){B&&CKEDITOR.env.webkit&&(B=f._.previousActive&&f._.previousActive.equals(d.getActive()));f.unlockSelection(B);B=0},null,null,-1);h.attachListener(h,"mousedown",function(){B=0});if(CKEDITOR.env.ie||l){s?h.attachListener(h,"beforedeactivate",b,null,
null,-1):h.attachListener(f,"selectionCheck",b,null,null,-1);h.attachListener(h,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){f.lockSelection(q);B=1},null,null,-1);h.attachListener(h,"mousedown",function(){B=0})}if(CKEDITOR.env.ie&&!l){var n;h.attachListener(h,"mousedown",function(a){if(a.data.$.button==2){a=f.document.getSelection();if(!a||a.getType()==CKEDITOR.SELECTION_NONE)n=f.window.getScrollPosition()}});h.attachListener(h,"mouseup",function(a){if(a.data.$.button==2&&n){f.document.$.documentElement.scrollLeft=
n.x;f.document.$.documentElement.scrollTop=n.y}n=null});if(d.$.compatMode!="BackCompat"){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)m.on("mousedown",function(a){function b(a){a=a.data.$;if(f){var c=k.$.createTextRange();try{c.moveToPoint(a.clientX,a.clientY)}catch(d){}f.setEndPoint(e.compareEndPoints("StartToStart",c)<0?"EndToEnd":"StartToStart",c);f.select()}}function c(){m.removeListener("mousemove",b);g.removeListener("mouseup",c);m.removeListener("mouseup",c);f.select()}a=a.data;if(a.getTarget().is("html")&&
a.$.y<m.$.clientHeight&&a.$.x<m.$.clientWidth){var f=k.$.createTextRange();try{f.moveToPoint(a.$.clientX,a.$.clientY)}catch(d){}var e=f.duplicate();m.on("mousemove",b);g.on("mouseup",c);m.on("mouseup",c)}});if(CKEDITOR.env.version>7&&CKEDITOR.env.version<11)m.on("mousedown",function(a){if(a.data.getTarget().is("html")){g.on("mouseup",c);m.on("mouseup",c)}})}}h.attachListener(h,"selectionchange",a,f);h.attachListener(h,"keyup",e,f);h.attachListener(h,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){f.forceNextSelectionCheck();
f.selectionChange(1)});if(l&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var t;h.attachListener(h,"mousedown",function(){t=1});h.attachListener(d.getDocumentElement(),"mouseup",function(){t&&e.call(f);t=0})}else h.attachListener(CKEDITOR.env.ie?h:d.getDocumentElement(),"mouseup",e,f);CKEDITOR.env.webkit&&h.attachListener(d,"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(h)}},null,null,-1);h.attachListener(h,"keydown",j(f),
null,null,-1)});f.on("setData",function(){f.unlockSelection();CKEDITOR.env.webkit&&c()});f.on("contentDomUnload",function(){f.unlockSelection()});if(CKEDITOR.env.ie9Compat)f.on("beforeDestroy",c,null,null,9);f.on("dataReady",function(){delete f._.fakeSelection;delete f._.hiddenSelectionContainer;f.selectionChange(1)});f.on("loadSnapshot",function(){var a=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),b=f.editable().getLast(a);if(b&&b.hasAttribute("data-cke-hidden-sel")){b.remove();if(CKEDITOR.env.gecko)(a=
f.editable().getFirst(a))&&(a.is("br")&&a.getAttribute("_moz_editor_bogus_node"))&&a.remove()}},null,null,100);f.on("key",function(a){if(f.mode=="wysiwyg"){var b=f.getSelection();if(b.isFake){var c=p[a.data.keyCode];if(c)return c({editor:f,selected:b.getSelectedElement(),selection:b,keyEvent:a})}}})});CKEDITOR.on("instanceReady",function(a){function b(){var a=d.editable();if(a)if(a=l(a)){var c=d.document.$.getSelection();if(c.type!="None"&&(c.anchorNode==a.$||c.focusNode==a.$))e=k(c);g=a.getText();
a.setText(h(g))}}function f(){var a=d.editable();if(a)if(a=l(a)){a.setText(g);if(e){c(d.document.$,e);e=null}}}var d=a.editor,g,e;if(CKEDITOR.env.webkit){d.on("selectionChange",function(){var a=d.editable(),b=l(a);b&&(b.getCustomData("ready")?i(a):b.setCustomData("ready",1))},null,null,-1);d.on("beforeSetMode",function(){i(d.editable())},null,null,-1);d.on("beforeUndoImage",b);d.on("afterUndoImage",f);d.on("beforeGetData",b,null,null,0);d.on("getData",f)}});CKEDITOR.editor.prototype.selectionChange=
function(b){(b?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 b=this._.savedSelection;if(b){b.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 s=typeof window.getSelection!="function",v=1;CKEDITOR.dom.selection=function(a){if(a instanceof CKEDITOR.dom.selection)var b=a,a=a.root;var c=a instanceof CKEDITOR.dom.element;this.rev=b?b.rev:v++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=c?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(b){CKEDITOR.tools.extend(this._.cache,b._.cache);this.isFake=b.isFake;this.isLocked=
b.isLocked;return this}var a=this.getNative(),f,d;if(a)if(a.getRangeAt)f=(d=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(d.commonAncestorContainer);else{try{d=a.createRange()}catch(g){}f=d&&CKEDITOR.dom.element.get(d.item&&d.item(0)||d.parentElement())}if(!f||!(f.type==CKEDITOR.NODE_ELEMENT||f.type==CKEDITOR.NODE_TEXT)||!this.root.equals(f)&&!this.root.contains(f)){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 u={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=s?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:s?function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_NONE;
try{var c=this.getNative(),f=c.type;if(f=="Text")b=CKEDITOR.SELECTION_TEXT;if(f=="Control")b=CKEDITOR.SELECTION_ELEMENT;if(c.createRange().parentElement())b=CKEDITOR.SELECTION_TEXT}catch(d){}return a.type=b}:function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_TEXT,c=this.getNative();if(!c||!c.rangeCount)b=CKEDITOR.SELECTION_NONE;else if(c.rangeCount==1){var c=c.getRangeAt(0),f=c.startContainer;if(f==c.endContainer&&f.nodeType==1&&c.endOffset-c.startOffset==1&&u[f.childNodes[c.startOffset].nodeName.toLowerCase()])b=
CKEDITOR.SELECTION_ELEMENT}return a.type=b},getRanges:function(){var a=s?function(){function a(b){return(new CKEDITOR.dom.node(b)).getIndex()}var b=function(b,c){b=b.duplicate();b.collapse(c);var f=b.parentElement();if(!f.hasChildNodes())return{container:f,offset:0};for(var d=f.children,g,e,j=b.duplicate(),h=0,i=d.length-1,k=-1,m,l;h<=i;){k=Math.floor((h+i)/2);g=d[k];j.moveToElementText(g);m=j.compareEndPoints("StartToStart",b);if(m>0)i=k-1;else if(m<0)h=k+1;else return{container:f,offset:a(g)}}if(k==
-1||k==d.length-1&&m<0){j.moveToElementText(f);j.setEndPoint("StartToStart",b);j=j.text.replace(/(\r\n|\r)/g,"\n").length;d=f.childNodes;if(!j){g=d[d.length-1];return g.nodeType!=CKEDITOR.NODE_TEXT?{container:f,offset:d.length}:{container:g,offset:g.nodeValue.length}}for(f=d.length;j>0&&f>0;){e=d[--f];if(e.nodeType==CKEDITOR.NODE_TEXT){l=e;j=j-e.nodeValue.length}}return{container:l,offset:-j}}j.collapse(m>0?true:false);j.setEndPoint(m>0?"StartToStart":"EndToStart",b);j=j.text.replace(/(\r\n|\r)/g,
"\n").length;if(!j)return{container:f,offset:a(g)+(m>0?0:1)};for(;j>0;)try{e=g[m>0?"previousSibling":"nextSibling"];if(e.nodeType==CKEDITOR.NODE_TEXT){j=j-e.nodeValue.length;l=e}g=e}catch(n){return{container:f,offset:a(g)}}return{container:l,offset:m>0?-j:l.nodeValue.length+j}};return function(){var a=this.getNative(),c=a&&a.createRange(),f=this.getType();if(!a)return[];if(f==CKEDITOR.SELECTION_TEXT){a=new CKEDITOR.dom.range(this.root);f=b(c,true);a.setStart(new CKEDITOR.dom.node(f.container),f.offset);
f=b(c);a.setEnd(new CKEDITOR.dom.node(f.container),f.offset);a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse();return[a]}if(f==CKEDITOR.SELECTION_ELEMENT){for(var f=[],d=0;d<c.length;d++){for(var g=c.item(d),e=g.parentNode,j=0,a=new CKEDITOR.dom.range(this.root);j<e.childNodes.length&&e.childNodes[j]!=g;j++);a.setStart(new CKEDITOR.dom.node(e),j);a.setEnd(new CKEDITOR.dom.node(e),j+1);f.push(a)}return f}return[]}}():function(){var a=
[],b,c=this.getNative();if(!c)return a;for(var f=0;f<c.rangeCount;f++){var d=c.getRangeAt(f);b=new CKEDITOR.dom.range(this.root);b.setStart(new CKEDITOR.dom.node(d.startContainer),d.startOffset);b.setEnd(new CKEDITOR.dom.node(d.endContainer),d.endOffset);a.push(b)}return a};return function(b){var c=this._.cache,f=c.ranges;if(!f)c.ranges=f=new CKEDITOR.dom.rangeList(a.call(this));return!b?f:t(new CKEDITOR.dom.rangeList(f.slice()))}}(),getStartElement:function(){var a=this._.cache;if(a.startElement!==
void 0)return a.startElement;var b;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var c=this.getRanges()[0];if(c){if(c.collapsed){b=c.startContainer;b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent())}else{for(c.optimize();;){b=c.startContainer;if(c.startOffset==(b.getChildCount?b.getChildCount():b.getLength())&&!b.isBlockBoundary())c.setStartAfter(b);else break}b=c.startContainer;if(b.type!=CKEDITOR.NODE_ELEMENT)return b.getParent();
b=b.getChild(c.startOffset);if(!b||b.type!=CKEDITOR.NODE_ELEMENT)b=c.startContainer;else for(c=b.getFirst();c&&c.type==CKEDITOR.NODE_ELEMENT;){b=c;c=c.getFirst()}}b=b.$}}return a.startElement=b?new CKEDITOR.dom.element(b):null},getSelectedElement:function(){var a=this._.cache;if(a.selectedElement!==void 0)return a.selectedElement;var b=this,c=CKEDITOR.tools.tryThese(function(){return b.getNative().createRange().item(0)},function(){for(var a=b.getRanges()[0].clone(),c,f,d=2;d&&(!(c=a.getEnclosedNode())||
!(c.type==CKEDITOR.NODE_ELEMENT&&u[c.getName()]&&(f=c)));d--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return f&&f.$});return a.selectedElement=c?new CKEDITOR.dom.element(c):null},getSelectedText:function(){var a=this._.cache;if(a.selectedText!==void 0)return a.selectedText;var b=this.getNative(),b=s?b.type=="Control"?"":b.createRange().text:b.toString();return a.selectedText=b},lock:function(){this.getRanges();this.getStartElement();this.getSelectedElement();this.getSelectedText();this._.cache.nativeSel=
null;this.isLocked=1},unlock:function(a){if(this.isLocked){if(a)var b=this.getSelectedElement(),c=!b&&this.getRanges(),f=this.isFake;this.isLocked=0;this.reset();if(a)(a=b||c[0]&&c[0].getCommonAncestor())&&a.getAscendant("body",1)&&(f?this.fake(b):b?this.selectElement(b):this.selectRanges(c))}},reset:function(){this._.cache={};this.isFake=0;var a=this.root.editor;if(a&&a._.fakeSelection)if(this.rev==a._.fakeSelection.rev){delete a._.fakeSelection;var b=a._.hiddenSelectionContainer;if(b){var c=a.checkDirty();
a.fire("lockSnapshot");b.remove();a.fire("unlockSnapshot");!c&&a.resetDirty()}delete a._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=v++},selectElement:function(a){var b=new CKEDITOR.dom.range(this.root);b.setStartBefore(a);b.setEndAfter(a);this.selectRanges([b])},selectRanges:function(a){var b=this.root.editor,b=b&&b._.hiddenSelectionContainer;this.reset();if(b)for(var b=this.root,c,f=0;f<a.length;++f){c=a[f];if(c.endContainer.equals(b))c.endOffset=Math.min(c.endOffset,
b.getChildCount())}if(a.length)if(this.isLocked){var d=CKEDITOR.document.getActive();this.unlock();this.selectRanges(a);this.lock();d&&!d.equals(this.root)&&d.focus()}else{var e;a:{var j,h;if(a.length==1&&!(h=a[0]).collapsed&&(e=h.getEnclosedNode())&&e.type==CKEDITOR.NODE_ELEMENT){h=h.clone();h.shrink(CKEDITOR.SHRINK_ELEMENT,true);if((j=h.getEnclosedNode())&&j.type==CKEDITOR.NODE_ELEMENT)e=j;if(e.getAttribute("contenteditable")=="false")break a}e=void 0}if(e)this.fake(e);else{if(s){h=CKEDITOR.dom.walker.whitespaces(true);
j=/\ufeff|\u00a0/;b={table:1,tbody:1,tr:1};if(a.length>1){e=a[a.length-1];a[0].setEnd(e.endContainer,e.endOffset)}e=a[0];var a=e.collapsed,k,m,l;if((c=e.getEnclosedNode())&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in u&&(!c.is("a")||!c.getText()))try{l=c.$.createControlRange();l.addElement(c.$);l.select();return}catch(B){}if(e.startContainer.type==CKEDITOR.NODE_ELEMENT&&e.startContainer.getName()in b||e.endContainer.type==CKEDITOR.NODE_ELEMENT&&e.endContainer.getName()in b){e.shrink(CKEDITOR.NODE_ELEMENT,
true);a=e.collapsed}l=e.createBookmark();b=l.startNode;if(!a)d=l.endNode;l=e.document.$.body.createTextRange();l.moveToElementText(b.$);l.moveStart("character",1);if(d){j=e.document.$.body.createTextRange();j.moveToElementText(d.$);l.setEndPoint("EndToEnd",j);l.moveEnd("character",-1)}else{k=b.getNext(h);m=b.hasAscendant("pre");k=!(k&&k.getText&&k.getText().match(j))&&(m||!b.hasPrevious()||b.getPrevious().is&&b.getPrevious().is("br"));m=e.document.createElement("span");m.setHtml("&#65279;");m.insertBefore(b);
k&&e.document.createText("﻿").insertBefore(b)}e.setStartBefore(b);b.remove();if(a){if(k){l.moveStart("character",-1);l.select();e.document.$.selection.clear()}else l.select();e.moveToPosition(m,CKEDITOR.POSITION_BEFORE_START);m.remove()}else{e.setEndBefore(d);d.remove();l.select()}}else{d=this.getNative();if(!d)return;this.removeAllRanges();for(l=0;l<a.length;l++){if(l<a.length-1){k=a[l];m=a[l+1];j=k.clone();j.setStart(k.endContainer,k.endOffset);j.setEnd(m.startContainer,m.startOffset);if(!j.collapsed){j.shrink(CKEDITOR.NODE_ELEMENT,
true);e=j.getCommonAncestor();j=j.getEnclosedNode();if(e.isReadOnly()||j&&j.isReadOnly()){m.setStart(k.startContainer,k.startOffset);a.splice(l--,1);continue}}}e=a[l];m=this.document.$.createRange();if(e.collapsed&&CKEDITOR.env.webkit&&g(e)){k=this.root;i(k,false);j=k.getDocument().createText("​");k.setCustomData("cke-fillingChar",j);e.insertNode(j);if((k=j.getNext())&&!j.getPrevious()&&k.type==CKEDITOR.NODE_ELEMENT&&k.getName()=="br"){i(this.root);e.moveToPosition(k,CKEDITOR.POSITION_BEFORE_START)}else e.moveToPosition(j,
CKEDITOR.POSITION_AFTER_END)}m.setStart(e.startContainer.$,e.startOffset);try{m.setEnd(e.endContainer.$,e.endOffset)}catch(n){if(n.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")>=0){e.collapse(1);m.setEnd(e.endContainer.$,e.endOffset)}else throw n;}d.addRange(m)}}this.reset();this.root.fire("selectionchange")}}},fake:function(a){var b=this.root.editor;this.reset();f(b);var c=this._.cache,d=new CKEDITOR.dom.range(this.root);d.setStartBefore(a);d.setEndAfter(a);c.ranges=new CKEDITOR.dom.rangeList(d);
c.selectedElement=c.startElement=a;c.type=CKEDITOR.SELECTION_ELEMENT;c.selectedText=c.nativeSel=null;this.isFake=1;this.rev=v++;b._.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 b=[],c,f=0;f<a.length;f++){var d=new CKEDITOR.dom.range(this.root);d.moveToBookmark(a[f]);b.push(d)}if(a.isFake){c=b[0].getEnclosedNode();if(!c||c.type!=CKEDITOR.NODE_ELEMENT){CKEDITOR.warn("selection-not-fake");a.isFake=0}}a.isFake?this.fake(c):this.selectRanges(b);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[s?"empty":"removeAllRanges"]()}catch(b){}this.reset()}}}}(),"use strict",CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function a(a,b){for(var c,f;a=a.getParent();){if(a.equals(b))break;if(a.getAttribute("data-nostyle"))c=a;else if(!f){var d=a.getAttribute("contentEditable");d=="false"?c=a:d=="true"&&
(f=1)}}return c}function e(b){var c=b.document;if(b.collapsed){c=p(this,c);b.insertNode(c);b.moveToPosition(c,CKEDITOR.POSITION_BEFORE_END)}else{var f=this.element,g=this._.definition,j,h=g.ignoreReadonly,k=h||g.includeReadonly;k==null&&(k=b.root.getCustomData("cke_includeReadonly"));var i=CKEDITOR.dtd[f];if(!i){j=true;i=CKEDITOR.dtd.span}b.enlarge(CKEDITOR.ENLARGE_INLINE,1);b.trim();var m=b.createBookmark(),l=m.startNode,t=m.endNode,r=l,H;if(!h){var F=b.getCommonAncestor(),h=a(l,F),F=a(t,F);h&&(r=
h.getNextSourceNode(true));F&&(t=F)}for(r.getPosition(t)==CKEDITOR.POSITION_FOLLOWING&&(r=0);r;){h=false;if(r.equals(t)){r=null;h=true}else{var E=r.type==CKEDITOR.NODE_ELEMENT?r.getName():null,F=E&&r.getAttribute("contentEditable")=="false",s=E&&r.getAttribute("data-nostyle");if(E&&r.data("cke-bookmark")){r=r.getNextSourceNode(true);continue}if(F&&k&&CKEDITOR.dtd.$block[E])for(var q=r,v=d(q),u=void 0,o=v.length,w=0,q=o&&new CKEDITOR.dom.range(q.getDocument());w<o;++w){var u=v[w],y=CKEDITOR.filter.instances[u.data("cke-filter")];
if(y?y.check(this):1){q.selectNodeContents(u);e.call(this,q)}}v=E?!i[E]||s?0:F&&!k?0:(r.getPosition(t)|G)==G&&(!g.childRule||g.childRule(r)):1;if(v)if((v=r.getParent())&&((v.getDtd()||CKEDITOR.dtd.span)[f]||j)&&(!g.parentRule||g.parentRule(v))){if(!H&&(!E||!CKEDITOR.dtd.$removeEmpty[E]||(r.getPosition(t)|G)==G)){H=b.clone();H.setStartBefore(r)}E=r.type;if(E==CKEDITOR.NODE_TEXT||F||E==CKEDITOR.NODE_ELEMENT&&!r.getChildCount()){for(var E=r,x;(h=!E.getNext(C))&&(x=E.getParent(),i[x.getName()])&&(x.getPosition(l)|
D)==D&&(!g.childRule||g.childRule(x));)E=x;H.setEndAfter(E)}}else h=true;else h=true;r=r.getNextSourceNode(s||F)}if(h&&H&&!H.collapsed){for(var h=p(this,c),F=h.hasAttributes(),s=H.getCommonAncestor(),E={},v={},u={},o={},z,A,X;h&&s;){if(s.getName()==f){for(z in g.attributes)if(!o[z]&&(X=s.getAttribute(A)))h.getAttribute(z)==X?v[z]=1:o[z]=1;for(A in g.styles)if(!u[A]&&(X=s.getStyle(A)))h.getStyle(A)==X?E[A]=1:u[A]=1}s=s.getParent()}for(z in v)h.removeAttribute(z);for(A in E)h.removeStyle(A);F&&!h.hasAttributes()&&
(h=null);if(h){H.extractContents().appendTo(h);H.insertNode(h);n.call(this,h);h.mergeSiblings();CKEDITOR.env.ie||h.$.normalize()}else{h=new CKEDITOR.dom.element("span");H.extractContents().appendTo(h);H.insertNode(h);n.call(this,h);h.remove(true)}H=null}}b.moveToBookmark(m);b.shrink(CKEDITOR.SHRINK_TEXT);b.shrink(CKEDITOR.NODE_ELEMENT,true)}}function b(a){function b(){for(var a=new CKEDITOR.dom.elementPath(f.getParent()),c=new CKEDITOR.dom.elementPath(k.getParent()),d=null,g=null,e=0;e<a.elements.length;e++){var j=
a.elements[e];if(j==a.block||j==a.blockLimit)break;i.checkElementRemovable(j,true)&&(d=j)}for(e=0;e<c.elements.length;e++){j=c.elements[e];if(j==c.block||j==c.blockLimit)break;i.checkElementRemovable(j,true)&&(g=j)}g&&k.breakParent(g);d&&f.breakParent(d)}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var c=a.createBookmark(),f=c.startNode;if(a.collapsed){for(var d=new CKEDITOR.dom.elementPath(f.getParent(),a.root),g,e=0,j;e<d.elements.length&&(j=d.elements[e]);e++){if(j==d.block||j==d.blockLimit)break;if(this.checkElementRemovable(j)){var h;
if(a.collapsed&&(a.checkBoundaryOfElement(j,CKEDITOR.END)||(h=a.checkBoundaryOfElement(j,CKEDITOR.START)))){g=j;g.match=h?"start":"end"}else{j.mergeSiblings();j.is(this.element)?t.call(this,j):m(j,u(this)[j.getName()])}}}if(g){j=f;for(e=0;;e++){h=d.elements[e];if(h.equals(g))break;else if(h.match)continue;else h=h.clone();h.append(j);j=h}j[g.match=="start"?"insertBefore":"insertAfter"](g)}}else{var k=c.endNode,i=this;b();for(d=f;!d.equals(k);){g=d.getNextSourceNode();if(d.type==CKEDITOR.NODE_ELEMENT&&
this.checkElementRemovable(d)){d.getName()==this.element?t.call(this,d):m(d,u(this)[d.getName()]);if(g.type==CKEDITOR.NODE_ELEMENT&&g.contains(f)){b();g=f.getNext()}}d=g}}a.moveToBookmark(c);a.shrink(CKEDITOR.NODE_ELEMENT,true)}function d(a){var b=[];a.forEach(function(a){if(a.getAttribute("contenteditable")=="true"){b.push(a);return false}},CKEDITOR.NODE_ELEMENT,true);return b}function g(a){var b=a.getEnclosedNode()||a.getCommonAncestor(false,true);(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,
1))&&!a.isReadOnly()&&s(a,this)}function l(a){var b=a.getCommonAncestor(true,true);if(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1)){var b=this._.definition,c=b.attributes;if(c)for(var f in c)a.removeAttribute(f,c[f]);if(b.styles)for(var d in b.styles)b.styles.hasOwnProperty(d)&&a.removeStyle(d)}}function i(a){var b=a.createBookmark(true),c=a.createIterator();c.enforceRealBlocks=true;if(this._.enterMode)c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var f,d=a.document,g;f=
c.getNextParagraph();)if(!f.isReadOnly()&&(c.activeFilter?c.activeFilter.check(this):1)){g=p(this,d,f);k(f,g)}a.moveToBookmark(b)}function h(a){var b=a.createBookmark(1),c=a.createIterator();c.enforceRealBlocks=true;c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var f,d;f=c.getNextParagraph();)if(this.checkElementRemovable(f))if(f.is("pre")){(d=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&f.copyAttributes(d);k(f,d)}else t.call(this,
f);a.moveToBookmark(b)}function k(a,b){var d=!b;if(d){b=a.getDocument().createElement("div");a.copyAttributes(b)}var g=b&&b.is("pre"),e=a.is("pre"),h=!g&&e;if(g&&!e){e=b;(h=a.getBogus())&&h.remove();h=a.getHtml();h=f(h,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");h=h.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");h=h.replace(/([ \t\n\r]+|&nbsp;)/g," ");h=h.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var k=a.getDocument().createElement("div");k.append(e);e.$.outerHTML="<pre>"+h+"</pre>";e.copyAttributes(k.getFirst());
e=k.getFirst().remove()}else e.setHtml(h);b=e}else h?b=j(d?[a.getHtml()]:c(a),b):a.moveChildren(b);b.replace(a);if(g){var d=b,i;if((i=d.getPrevious(A))&&i.type==CKEDITOR.NODE_ELEMENT&&i.is("pre")){g=f(i.getHtml(),/\n$/,"")+"\n\n"+f(d.getHtml(),/^\n/,"");CKEDITOR.env.ie?d.$.outerHTML="<pre>"+g+"</pre>":d.setHtml(g);i.remove()}}else d&&r(b)}function c(a){var b=[];f(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(a,b,c){return b+"</pre>"+c+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,
function(a,c){b.push(c)});return b}function f(a,b,c){var f="",d="",a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,b,c){b&&(f=b);c&&(d=c);return""});return f+a.replace(b,c)+d}function j(a,b){var c;a.length>1&&(c=new CKEDITOR.dom.documentFragment(b.getDocument()));for(var d=0;d<a.length;d++){var g=a[d],g=g.replace(/(\r\n|\r)/g,"\n"),g=f(g,/^[ \t]*\n/,""),g=f(g,/\n$/,""),g=f(g,/^[ \t]+|[ \t]+$/g,function(a,b){return a.length==1?"&nbsp;":b?
" "+CKEDITOR.tools.repeat("&nbsp;",a.length-1):CKEDITOR.tools.repeat("&nbsp;",a.length-1)+" "}),g=g.replace(/\n/g,"<br>"),g=g.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat("&nbsp;",a.length-1)+" "});if(c){var e=b.clone();e.setHtml(g);c.append(e)}else b.setHtml(g)}return c||b}function t(a,b){var c=this._.definition,f=c.attributes,c=c.styles,d=u(this)[a.getName()],g=CKEDITOR.tools.isEmpty(f)&&CKEDITOR.tools.isEmpty(c),e;for(e in f)if(!((e=="class"||this._.definition.fullMatch)&&a.getAttribute(e)!=
q(e,f[e]))&&!(b&&e.slice(0,5)=="data-")){g=a.hasAttribute(e);a.removeAttribute(e)}for(var j in c)if(!(this._.definition.fullMatch&&a.getStyle(j)!=q(j,c[j],true))){g=g||!!a.getStyle(j);a.removeStyle(j)}m(a,d,w[a.getName()]);g&&(this._.definition.alwaysRemoveElement?r(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?r(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function n(a){for(var b=u(this),c=a.getElementsByTag(this.element),f,d=c.count();--d>=
0;){f=c.getItem(d);f.isReadOnly()||t.call(this,f,true)}for(var g in b)if(g!=this.element){c=a.getElementsByTag(g);for(d=c.count()-1;d>=0;d--){f=c.getItem(d);f.isReadOnly()||m(f,b[g])}}}function m(a,b,c){if(b=b&&b.attributes)for(var f=0;f<b.length;f++){var d=b[f][0],g;if(g=a.getAttribute(d)){var e=b[f][1];(e===null||e.test&&e.test(g)||typeof e=="string"&&g==e)&&a.removeAttribute(d)}}c||r(a)}function r(a,b){if(!a.hasAttributes()||b)if(CKEDITOR.dtd.$block[a.getName()]){var c=a.getPrevious(A),f=a.getNext(A);
c&&(c.type==CKEDITOR.NODE_TEXT||!c.isBlockBoundary({br:1}))&&a.append("br",1);f&&(f.type==CKEDITOR.NODE_TEXT||!f.isBlockBoundary({br:1}))&&a.append("br");a.remove(true)}else{c=a.getFirst();f=a.getLast();a.remove(true);if(c){c.type==CKEDITOR.NODE_ELEMENT&&c.mergeSiblings();f&&(!c.equals(f)&&f.type==CKEDITOR.NODE_ELEMENT)&&f.mergeSiblings()}}}function p(a,b,c){var f;f=a.element;f=="*"&&(f="span");f=new CKEDITOR.dom.element(f,b);c&&c.copyAttributes(f);f=s(f,a);b.getCustomData("doc_processing_style")&&
f.hasAttribute("id")?f.removeAttribute("id"):b.setCustomData("doc_processing_style",1);return f}function s(a,b){var c=b._.definition,f=c.attributes,c=CKEDITOR.style.getStyleText(c);if(f)for(var d in f)a.setAttribute(d,f[d]);c&&a.setAttribute("style",c);return a}function v(a,b){for(var c in a)a[c]=a[c].replace(x,function(a,c){return b[c]})}function u(a){if(a._.overrides)return a._.overrides;var b=a._.overrides={},c=a._.definition.overrides;if(c){CKEDITOR.tools.isArray(c)||(c=[c]);for(var f=0;f<c.length;f++){var d=
c[f],g,e;if(typeof d=="string")g=d.toLowerCase();else{g=d.element?d.element.toLowerCase():a.element;e=d.attributes}d=b[g]||(b[g]={});if(e){var d=d.attributes=d.attributes||[],j;for(j in e)d.push([j.toLowerCase(),e[j]])}}}return b}function q(a,b,c){var f=new CKEDITOR.dom.element("span");f[c?"setStyle":"setAttribute"](a,b);return f[c?"getStyle":"getAttribute"](a)}function y(a,b,c){for(var f=a.document,d=a.getRanges(),b=b?this.removeFromRange:this.applyToRange,g,e=d.createIterator();g=e.getNextRange();)b.call(this,
g,c);a.selectRanges(d);f.removeCustomData("doc_processing_style")}var w={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},o={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*|$)/,x=/#\((.+?)\)/g,C=CKEDITOR.dom.walker.bookmark(0,1),A=CKEDITOR.dom.walker.whitespaces(1);
CKEDITOR.style=function(a,b){if(typeof a.type=="string")return new CKEDITOR.style.customHandlers[a.type](a);var c=a.attributes;if(c&&c.style){a.styles=CKEDITOR.tools.extend({},a.styles,CKEDITOR.tools.parseCssText(c.style));delete c.style}if(b){a=CKEDITOR.tools.clone(a);v(a.attributes,b);v(a.styles,b)}c=this.element=a.element?typeof a.element=="string"?a.element.toLowerCase():a.element:"*";this.type=a.type||(w[c]?CKEDITOR.STYLE_BLOCK:o[c]?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 y.call(this,a.getSelection());if(this.checkApplicable(a.elementPath(),a)){var b=this._.enterMode;if(!b)this._.enterMode=a.activeEnterMode;y.call(this,a.getSelection(),0,a);this._.enterMode=b}},remove:function(a){if(a instanceof CKEDITOR.dom.document)return y.call(this,a.getSelection(),1);if(this.checkApplicable(a.elementPath(),a)){var b=this._.enterMode;
if(!b)this._.enterMode=a.activeEnterMode;y.call(this,a.getSelection(),1,a);this._.enterMode=b}},applyToRange:function(a){this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?e:this.type==CKEDITOR.STYLE_BLOCK?i:this.type==CKEDITOR.STYLE_OBJECT?g:null;return this.applyToRange(a)},removeFromRange:function(a){this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?b:this.type==CKEDITOR.STYLE_BLOCK?h:this.type==CKEDITOR.STYLE_OBJECT?l:null;return this.removeFromRange(a)},applyToObject:function(a){s(a,this)},
checkActive:function(a,b){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||a.blockLimit,true,b);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var c=a.elements,f=0,d;f<c.length;f++){d=c[f];if(!(this.type==CKEDITOR.STYLE_INLINE&&(d==a.block||d==a.blockLimit))){if(this.type==CKEDITOR.STYLE_OBJECT){var g=d.getName();if(!(typeof this.element=="string"?g==this.element:g in this.element))continue}if(this.checkElementRemovable(d,true,b))return true}}}return false},
checkApplicable:function(a,b,c){b&&b instanceof CKEDITOR.filter&&(c=b);if(c&&!c.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,b){var c=this._.definition;if(!a||!c.ignoreReadonly&&a.isReadOnly())return false;var f=a.getName();if(typeof this.element=="string"?f==this.element:f in this.element){if(!b&&!a.hasAttributes())return true;if(f=
c._AC)c=f;else{var f={},d=0,g=c.attributes;if(g)for(var e in g){d++;f[e]=g[e]}if(e=CKEDITOR.style.getStyleText(c)){f.style||d++;f.style=e}f._length=d;c=c._AC=f}if(c._length){for(var j in c)if(j!="_length"){d=a.getAttribute(j)||"";if(j=="style")a:{f=c[j];typeof f=="string"&&(f=CKEDITOR.tools.parseCssText(f));typeof d=="string"&&(d=CKEDITOR.tools.parseCssText(d,true));e=void 0;for(e in f)if(!(e in d&&(d[e]==f[e]||f[e]=="inherit"||d[e]=="inherit"))){f=false;break a}f=true}else f=c[j]==d;if(f){if(!b)return true}else if(b)return false}if(b)return true}else return true}return false},
checkElementRemovable:function(a,b,c){if(this.checkElementMatch(a,b,c))return true;if(b=u(this)[a.getName()]){var f;if(!(b=b.attributes))return true;for(c=0;c<b.length;c++){f=b[c][0];if(f=a.getAttribute(f)){var d=b[c][1];if(d===null)return true;if(typeof d=="string"){if(f==d)return true}else if(d.test(f))return true}}}return false},buildPreview:function(a){var b=this._.definition,c=[],f=b.element;f=="bdo"&&(f="span");var c=["<",f],d=b.attributes;if(d)for(var g in d)c.push(" ",g,'="',d[g],'"');(d=
CKEDITOR.style.getStyleText(b))&&c.push(' style="',d,'"');c.push(">",a||b.name,"</",f,">");return c.join("")},getDefinition:function(){return this._.definition}};CKEDITOR.style.getStyleText=function(a){var b=a._ST;if(b)return b;var b=a.styles,c=a.attributes&&a.attributes.style||"",f="";c.length&&(c=c.replace(z,";"));for(var d in b){var g=b[d],e=(d+":"+g).replace(z,";");g=="inherit"?f=f+e:c=c+e}c.length&&(c=CKEDITOR.tools.normalizeCssText(c,true));return a._ST=c+f};CKEDITOR.style.customHandlers={};
CKEDITOR.style.addCustomHandler=function(a){var b=function(a){this._={definition:a};this.setup&&this.setup(a)};b.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},a,true);return this.customHandlers[a.type]=b};var G=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,D=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 g=0;g<b.length;g++){var e=b[g],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(":"),d=b[0];CKEDITOR.stylesSet.addExternal(d,b[1]?b.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(d,function(b){e._.stylesDefinitions=b[d];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,g){var l=null,i=null,h=[],k=b,c,g=g||b.getDocument().getBody();
do if(k.type==CKEDITOR.NODE_ELEMENT){h.push(k);if(!this.lastElement){this.lastElement=k;if(k.is(CKEDITOR.dtd.$object)||k.getAttribute("contenteditable")=="false")continue}if(k.equals(g))break;if(!i){c=k.getName();k.getAttribute("contenteditable")=="true"?i=k:!l&&e[c]&&(l=k);if(a[c]){var f;if(f=!l){if(c=c=="div"){a:{c=k.getChildren();f=0;for(var j=c.count();f<j;f++){var t=c.getItem(f);if(t.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[t.getName()]){c=true;break a}}c=false}c=!c}f=c}f?l=k:i=k}}}while(k=
k.getParent());i||(i=g);this.block=l;this.blockLimit=i;this.root=g;this.elements=h}}(),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 d;typeof a=="string"&&(d=function(b){return b.getName()==a});a instanceof CKEDITOR.dom.element?d=function(b){return b.equals(a)}:CKEDITOR.tools.isArray(a)?d=function(b){return CKEDITOR.tools.indexOf(a,
b.getName())>-1}:typeof a=="function"?d=a:typeof a=="object"&&(d=function(b){return b.getName()in a});var g=this.elements,l=g.length;e&&l--;if(b){g=Array.prototype.slice.call(g,0);g.reverse()}for(e=0;e<l;e++)if(d(g[e]))return g[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,d=this.getLength(),g=this.getDocument(),l=new CKEDITOR.dom.text(this.$.splitText(a),
g);if(e.childNodes.length==b)if(a>=d){l=g.createText("");l.insertAfter(this)}else{a=g.createText("");a.insertAfter(l);a.remove()}return l},substring:function(a,e){return typeof e!="number"?this.$.nodeValue.substr(a):this.$.nodeValue.substring(a,e)}}),function(){function a(a,d,g){var e=a.serializable,i=d[g?"endContainer":"startContainer"],h=g?"endOffset":"startOffset",k=e?d.document.getById(a.startNode):a.startNode,a=e?d.document.getById(a.endNode):a.endNode;if(i.equals(k.getPrevious())){d.startOffset=
d.startOffset-i.getLength()-a.getPrevious().getLength();i=a.getNext()}else if(i.equals(a.getPrevious())){d.startOffset=d.startOffset-i.getLength();i=a.getNext()}i.equals(k.getParent())&&d[h]++;i.equals(a.getParent())&&d[h]++;d[g?"endContainer":"startContainer"]=i;return d}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,d=CKEDITOR.dom.walker.bookmark(),
g=[],e;return{getNextRange:function(i){e=e===void 0?0:e+1;var h=a[e];if(h&&a.length>1){if(!e)for(var k=a.length-1;k>=0;k--)g.unshift(a[k].createBookmark(true));if(i)for(var c=0;a[e+c+1];){for(var f=h.document,i=0,k=f.getById(g[c].endNode),f=f.getById(g[c+1].startNode);;){k=k.getNextSourceNode(false);if(f.equals(k))i=1;else if(d(k)||k.type==CKEDITOR.NODE_ELEMENT&&k.isBlockBoundary())continue;break}if(!i)break;c++}for(h.moveToBookmark(g.shift());c--;){k=a[++e];k.moveToBookmark(g.shift());h.setEnd(k.endContainer,
k.endOffset)}}return h}}},createBookmarks:function(b){for(var d=[],g,e=0;e<this.length;e++){d.push(g=this[e].createBookmark(b,true));for(var i=e+1;i<this.length;i++){this[i]=a(g,this[i]);this[i]=a(g,this[i],true)}}return d},createBookmarks2:function(a){for(var d=[],g=0;g<this.length;g++)d.push(this[g].createBookmark2(a));return d},moveToBookmarks:function(a){for(var d=0;d<this.length;d++)this[d].moveToBookmark(a[d])}}}(),function(){function a(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||
"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function e(b){var f=CKEDITOR.skin["ua_"+b],d=CKEDITOR.env;if(f)for(var f=f.split(",").sort(function(a,b){return a>b?-1:1}),g=0,e;g<f.length;g++){e=f[g];if(d.ie&&(e.replace(/^ie/,"")==d.version||d.quirks&&e=="iequirks"))e="ie";if(d[e]){b=b+("_"+f[g]);break}}return CKEDITOR.getUrl(a()+b+".css")}function b(a,b){if(!l[a]){CKEDITOR.document.appendStyleSheet(e(a));l[a]=1}b&&b()}function d(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 g(a,b,d){var g,e,h;if(CKEDITOR.env.webkit){b=b.split("}").slice(0,-1);for(e=0;e<b.length;e++)b[e]=b[e].split("{")}for(var k=0;k<a.length;k++)if(CKEDITOR.env.webkit)for(e=0;e<b.length;e++){h=b[e][1];for(g=0;g<d.length;g++)h=h.replace(d[g][0],d[g][1]);a[k].$.sheet.addRule(b[e][0],h)}else{h=b;for(g=0;g<d.length;g++)h=h.replace(d[g][0],d[g][1]);CKEDITOR.env.ie&&CKEDITOR.env.version<11?a[k].$.styleSheet.cssText=a[k].$.styleSheet.cssText+h:a[k].$.innerHTML=
a[k].$.innerHTML+h}}var l={};CKEDITOR.skin={path:a,loadPart:function(c,f){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(a()+"skin.js"),function(){b(c,f)}):b(c,f)},getPath:function(a){return CKEDITOR.getUrl(e(a))},icons:{},addIcon:function(a,b,d,g){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:b,offset:d||0,bgsize:g||"16px"})},getIconStyle:function(a,b,d,g,e){var h;if(a){a=a.toLowerCase();b&&(h=this.icons[a+"-rtl"]);h||(h=this.icons[a])}a=d||
h&&h.path||"";g=g||h&&h.offset;e=e||h&&h.bgsize||"16px";a&&(a=a.replace(/'/g,"\\'"));return a&&"background-image:url('"+CKEDITOR.getUrl(a)+"');background-position:0 "+g+"px;background-size:"+e+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(a){var b=d(CKEDITOR.document);return(this.setUiColor=function(a){this.uiColor=a;var c=CKEDITOR.skin.chameleon,d="",e="";if(typeof c=="function"){d=c(this,"editor");e=c(this,"panel")}a=[[k,a]];
g([b],d,a);g(h,e,a)}).call(this,a)}});var i="cke_ui_color",h=[],k=/\$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=d(a);h.push(a);var c=b.getUiColor();c&&g([a],CKEDITOR.skin.chameleon(b,"panel"),[[k,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(d){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 h=e,k=i,c;c=parseInt(e[i],16);c=("0"+(b<0?
0|c*(1+b):0|c+(255-c)*b).toString(16)).slice(-2);h[k]=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(d,g){var l=d.uiColor,l={id:"."+d.id,defaultBorder:a(l,-0.1),defaultGradient:e(a(l,0.9),l),lightGradient:e(a(l,1),a(l,0.7)),mediumGradient:e(a(l,0.8),a(l,0.5)),ckeButtonOn:e(a(l,0.6),a(l,0.7)),ckeResizer:a(l,-0.4),ckeToolbarSeparator:a(l,0.5),ckeColorauto:a(l,0.8),dialogBody:a(l,0.7),dialogTabSelected:e("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:a(l,-0.6),elementsPathBg:l,menubuttonIcon:a(l,0.5),menubuttonIconHover:a(l,0.3)};return b[g].output(l).replace(/\[/g,
"{").replace(/\]/g,"}")}}(),CKEDITOR.plugins.add("basicstyles",{init:function(a){var e=0,b=function(b,g,k,c){if(c){var c=new CKEDITOR.style(c),f=d[k];f.unshift(c);a.attachStyleStateChange(c,function(b){!a.readOnly&&a.getCommand(k).setState(b)});a.addCommand(k,new CKEDITOR.styleCommand(c,{contentForms:f}));a.ui.addButton&&a.ui.addButton(b,{label:g,command:k,toolbar:"basicstyles,"+(e=e+10)})}},d={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"]},g=a.config,l=a.lang.basicstyles;b("Bold",l.bold,"bold",g.coreStyles_bold);b("Italic",l.italic,"italic",g.coreStyles_italic);b("Underline",l.underline,"underline",g.coreStyles_underline);b("Strike",l.strike,"strike",
g.coreStyles_strike);b("Subscript",l.subscript,"subscript",g.coreStyles_subscript);b("Superscript",l.superscript,"superscript",g.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"},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 b=[this._],f=1;f<arguments.length;f++)b.push(arguments[f]);b.push(true);CKEDITOR.tools.extend.apply(CKEDITOR.tools,b);return this._},e={build:function(a,b,f){return new CKEDITOR.ui.dialog.textInput(a,b,f)}},b={build:function(a,
b,f){return new CKEDITOR.ui.dialog[b.type](a,b,f)}},d={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}},g=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(a,b){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",b)}},true),l=/^on([A-Z]\w+)/,i=function(a){for(var b in a)(l.test(b)||b=="title"||b=="type")&&delete a[b];return a},h=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,f,d){if(!(arguments.length<4)){var g=a.call(this,c);g.labelId=CKEDITOR.tools.getNextId()+"_label";this._.children=[];var e={role:c.role||"presentation"};if(c.includeLabel)e["aria-labelledby"]=g.labelId;CKEDITOR.ui.dialog.uiElement.call(this,b,c,f,"div",null,e,function(){var a=[],f=c.required?" cke_required":"";if(c.labelLayout!="horizontal")a.push('<label class="cke_dialog_ui_labeled_label'+f+'" ',' id="'+g.labelId+'"',g.inputId?' for="'+g.inputId+'"':"",(c.labelStyle?' style="'+c.labelStyle+'"':
"")+">",c.label,"</label>",'<div class="cke_dialog_ui_labeled_content"',c.controlStyle?' style="'+c.controlStyle+'"':"",' role="presentation">',d.call(this,b,c),"</div>");else{f={type:"hbox",widths:c.widths,padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+f+'" id="'+g.labelId+'" for="'+g.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+'"':"")+">"+d.call(this,b,c)+"</span>"}]};CKEDITOR.dialog._.uiElementBuilders.hbox.build(b,f,a)}return a.join("")})}},textInput:function(b,c,f){if(!(arguments.length<3)){a.call(this,c);var d=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",g={"class":"cke_dialog_ui_input_"+c.type,id:d,type:c.type};if(c.validate)this.validate=c.validate;if(c.maxLength)g.maxlength=c.maxLength;if(c.size)g.size=c.size;if(c.inputStyle)g.style=c.inputStyle;var e=this,i=false;b.on("load",
function(){e.getInputElement().on("keydown",function(a){a.data.getKeystroke()==13&&(i=true)});e.getInputElement().on("keyup",function(a){if(a.data.getKeystroke()==13&&i){b.getButton("ok")&&setTimeout(function(){b.getButton("ok").click()},0);i=false}e.bidi&&h.call(e,a)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,b,c,f,function(){var a=['<div class="cke_dialog_ui_input_',c.type,'" role="presentation"'];c.width&&a.push('style="width:'+c.width+'" ');a.push("><input ");g["aria-labelledby"]=
this._.labelId;this._.required&&(g["aria-required"]=this._.required);for(var b in g)a.push(b+'="'+g[b]+'" ');a.push(" /></div>");return a.join("")})}},textarea:function(b,c,f){if(!(arguments.length<3)){a.call(this,c);var d=this,g=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",e={};if(c.validate)this.validate=c.validate;e.rows=c.rows||5;e.cols=c.cols||20;e["class"]="cke_dialog_ui_input_textarea "+(c["class"]||"");if(typeof c.inputStyle!="undefined")e.style=c.inputStyle;if(c.dir)e.dir=c.dir;
if(d.bidi)b.on("load",function(){d.getInputElement().on("keyup",h)},d);CKEDITOR.ui.dialog.labeledElement.call(this,b,c,f,function(){e["aria-labelledby"]=this._.labelId;this._.required&&(e["aria-required"]=this._.required);var a=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',g,'" '],b;for(b in e)a.push(b+'="'+CKEDITOR.tools.htmlEncode(e[b])+'" ');a.push(">",CKEDITOR.tools.htmlEncode(d._["default"]),"</textarea></div>");return a.join("")})}},checkbox:function(b,c,f){if(!(arguments.length<
3)){var d=a.call(this,c,{"default":!!c["default"]});if(c.validate)this.validate=c.validate;CKEDITOR.ui.dialog.uiElement.call(this,b,c,f,"span",null,null,function(){var a=CKEDITOR.tools.extend({},c,{id:c.id?c.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},true),f=[],g=CKEDITOR.tools.getNextId()+"_label",e={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":g};i(a);if(c["default"])e.checked="checked";if(typeof a.inputStyle!="undefined")a.style=a.inputStyle;d.checkbox=new CKEDITOR.ui.dialog.uiElement(b,
a,f,"input",null,e);f.push(' <label id="',g,'" for="',e.id,'"'+(c.labelStyle?' style="'+c.labelStyle+'"':"")+">",CKEDITOR.tools.htmlEncode(c.label),"</label>");return f.join("")})}},radio:function(b,c,f){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 d=[],g=this;c.role="radiogroup";c.includeLabel=true;CKEDITOR.ui.dialog.labeledElement.call(this,b,c,f,function(){for(var a=[],f=[],e=(c.id?c.id:
CKEDITOR.tools.getNextId())+"_radio",h=0;h<c.items.length;h++){var l=c.items[h],v=l[2]!==void 0?l[2]:l[0],u=l[1]!==void 0?l[1]:l[0],q=CKEDITOR.tools.getNextId()+"_radio_input",y=q+"_label",q=CKEDITOR.tools.extend({},c,{id:q,title:null,type:null},true),v=CKEDITOR.tools.extend({},q,{title:v},true),w={type:"radio","class":"cke_dialog_ui_radio_input",name:e,value:u,"aria-labelledby":y},o=[];if(g._["default"]==u)w.checked="checked";i(q);i(v);if(typeof q.inputStyle!="undefined")q.style=q.inputStyle;q.keyboardFocusable=
true;d.push(new CKEDITOR.ui.dialog.uiElement(b,q,o,"input",null,w));o.push(" ");new CKEDITOR.ui.dialog.uiElement(b,v,o,"label",null,{id:y,"for":w.id},l[0]);a.push(o.join(""))}new CKEDITOR.ui.dialog.hbox(b,d,a,f);return f.join("")});this._.children=d}},button:function(b,c,f){if(arguments.length){typeof c=="function"&&(c=c(b.getParentEditor()));a.call(this,c,{disabled:c.disabled||false});CKEDITOR.event.implementOn(this);var d=this;b.on("load",function(){var a=this.getElement();(function(){a.on("click",
function(a){d.click();a.data.preventDefault()});a.on("keydown",function(a){if(a.data.getKeystroke()in{32:1}){d.click();a.data.preventDefault()}})})();a.unselectable()},this);var g=CKEDITOR.tools.extend({},c);delete g.style;var e=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,b,g,f,"a",null,{style:c.style,href:"javascript:void(0)",title:c.label,hidefocus:"true","class":c["class"],role:"button","aria-labelledby":e},'<span id="'+e+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(c.label)+
"</span>")}},select:function(b,c,f){if(!(arguments.length<3)){var d=a.call(this,c);if(c.validate)this.validate=c.validate;d.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,b,c,f,function(){var a=CKEDITOR.tools.extend({},c,{id:c.id?c.id+"_select":CKEDITOR.tools.getNextId()+"_select"},true),f=[],g=[],e={id:d.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};f.push('<div class="cke_dialog_ui_input_',c.type,'" role="presentation"');
c.width&&f.push('style="width:'+c.width+'" ');f.push(">");if(c.size!==void 0)e.size=c.size;if(c.multiple!==void 0)e.multiple=c.multiple;i(a);for(var h=0,l;h<c.items.length&&(l=c.items[h]);h++)g.push('<option value="',CKEDITOR.tools.htmlEncode(l[1]!==void 0?l[1]:l[0]).replace(/"/g,"&quot;"),'" /> ',CKEDITOR.tools.htmlEncode(l[0]));if(typeof a.inputStyle!="undefined")a.style=a.inputStyle;d.select=new CKEDITOR.ui.dialog.uiElement(b,a,f,"select",null,e,g.join(""));f.push("</div>");return f.join("")})}},
file:function(b,c,f){if(!(arguments.length<3)){c["default"]===void 0&&(c["default"]="");var d=CKEDITOR.tools.extend(a.call(this,c),{definition:c,buttons:[]});if(c.validate)this.validate=c.validate;b.on("load",function(){CKEDITOR.document.getById(d.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,b,c,f,function(){d.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var a=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',
d.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,f){var d=this;if(!(arguments.length<3)){a.call(this,c);if(c.validate)this.validate=c.validate;var g=CKEDITOR.tools.extend({},c),e=g.onClick;g.className=(g.className?g.className+" ":"")+"cke_dialog_ui_button";g.onClick=function(a){var f=
c["for"];if(!e||e.call(this,a)!==false){b.getContentElement(f[0],f[1]).submit();this.disable()}};b.on("load",function(){b.getContentElement(c["for"][0],c["for"][1])._.buttons.push(d)});CKEDITOR.ui.dialog.button.call(this,b,g,f)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,b=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,f=/\/$/;return function(d,g,e){if(!(arguments.length<3)){var h=[],i=g.html;i.charAt(0)!="<"&&(i="<span>"+i+"</span>");var l=g.focus;if(l){var s=this.focus;this.focus=function(){(typeof l==
"function"?l:s).call(this);this.fire("focus")};if(g.isFocusable)this.isFocusable=this.isFocusable;this.keyboardFocusable=true}CKEDITOR.ui.dialog.uiElement.call(this,d,g,h,"span",null,null,"");h=h.join("").match(a);i=i.match(b)||["","",""];if(f.test(i[1])){i[1]=i[1].slice(0,-1);i[2]="/"+i[2]}e.push([i[1]," ",h[1]||"",i[2]].join(""))}}}(),fieldset:function(a,b,f,d,g){var e=g.label;this._={children:b};CKEDITOR.ui.dialog.uiElement.call(this,a,g,d,"fieldset",null,null,function(){var a=[];e&&a.push("<legend"+
(g.labelStyle?' style="'+g.labelStyle+'"':"")+">"+e+"</legend>");for(var b=0;b<f.length;b++)a.push(f[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:g},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},d,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,f){var d=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),g=this.getInputElement().$;d.$.text=a;d.$.value=b===void 0||b===null?a:b;f===void 0||f===null?CKEDITOR.env.ie?g.add(d.$):g.add(d.$,null):g.add(d.$,f);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},d,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 g.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},d,true);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(a,b){for(var f=this._.children,
d,g=0;g<f.length&&(d=f[g]);g++)d.getElement().$.checked=d.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||CKEDITOR.env.version>8)return g.onChange.apply(this,
arguments);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);return null}}},d,true);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,d,{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+)/,f,d=function(a,b,c,f){a.on("formLoaded",function(){a.getInputElement().on(c,f,a)})},g;for(g in a)if(f=g.match(b))this.eventProcessors[g]?this.eventProcessors[g].call(this,this._.dialog,a[g]):d(this,this._.dialog,f[1].toLowerCase(),
a[g]);return this},reset:function(){function a(){f.$.open();var k="";d.size&&(k=d.size-(CKEDITOR.env.ie?7:0));var v=b.frameId+"_input";f.$.write(['<html dir="'+i+'" lang="'+l+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+i+'" lang="'+l+'" action="',CKEDITOR.tools.htmlEncode(d.action),'"><label id="',b.labelId,'" for="',v,'" style="display:none">',CKEDITOR.tools.htmlEncode(d.label),'</label><input style="width:100%" id="',
v,'" aria-labelledby="',b.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(d.id||"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(k>0?k:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+e+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+h+")}","<\/script>"].join(""));f.$.close();for(k=0;k<g.length;k++)g[k].enable()}var b=this._,f=CKEDITOR.document.getById(b.frameId).getFrameDocument(),
d=b.definition,g=b.buttons,e=this.formLoadedNumber,h=this.formUnloadNumber,i=b.dialog._.editor.lang.dir,l=b.dialog._.editor.langCode;if(!e){e=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this);h=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this);this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(e);CKEDITOR.tools.removeFunction(h)})}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,f){for(var d=b.children,g,e=[],h=[],i=0;i<d.length&&(g=d[i]);i++){var l=[];e.push(l);h.push(CKEDITOR.dialog._.uiElementBuilders[g.type].build(a,g,l))}return new CKEDITOR.ui.dialog[b.type](a,h,e,f,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"),f=0,d=c.length;f<d;f++){var g=new CKEDITOR.dom.element(c[f]);if(g.getAttribute("type").toLowerCase()==
"text")if(b){g.setAttribute("value",g.getCustomData("fake_value")||"");g.removeCustomData("fake_value")}else{g.setCustomData("fake_value",g.getAttribute("value"));g.setAttribute("value","")}}}function d(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 g(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}function l(a){var b=
CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",r).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":""})),c=b.getChild([0,0,0,0,0]),f=c.getChild(0),d=c.getChild(1);a.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(c);if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks&&!CKEDITOR.env.edge){a=
"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())";CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+a+'" tabIndex="-1"></iframe>').appendTo(c.getParent())}f.unselectable();d.unselectable();return{element:b,parts:{dialog:b.getChild(0),title:f,close:d,tabs:c.getChild(2),contents:c.getChild([3,0,0,0]),footer:c.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 h(a){function b(){a.layout()}var c=CKEDITOR.document.getWindow();c.on("resize",b);a.on("hide",function(){c.removeListener("resize",b)})}function k(a,b){this._=
{dialog:a};CKEDITOR.tools.extend(this,b)}function c(a){function b(c){var j=a.getSize(),i=CKEDITOR.document.getWindow().getViewPaneSize(),k=c.data.$.screenX,l=c.data.$.screenY,m=k-f.x,n=l-f.y;f={x:k,y:l};d.x=d.x+m;d.y=d.y+n;a.move(d.x+h[3]<e?-h[3]:d.x-h[1]>i.width-j.width-e?i.width-j.width+(g.lang.dir=="rtl"?0:h[1]):d.x,d.y+h[0]<e?-h[0]:d.y-h[2]>i.height-j.height-e?i.height-j.height+h[2]:d.y,1);c.data.preventDefault()}function c(){CKEDITOR.document.removeListener("mousemove",b);CKEDITOR.document.removeListener("mouseup",
c);if(CKEDITOR.env.ie6Compat){var a=o.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",c)}}var f=null,d=null,g=a.getParentEditor(),e=g.config.dialog_magnetDistance,h=CKEDITOR.skin.margins||[0,0,0,0];typeof e=="undefined"&&(e=20);a.parts.title.on("mousedown",function(g){f={x:g.data.$.screenX,y:g.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",c);d=a.getPosition();if(CKEDITOR.env.ie6Compat){var e=o.getChild(0).getFrameDocument();
e.on("mousemove",b);e.on("mouseup",c)}g.data.preventDefault()},a)}function f(a){var b,c;function f(d){var m=h.lang.dir=="rtl",n=l.width,p=l.height,t=n+(d.data.$.screenX-b)*(m?-1:1)*(a._.moved?1:2),E=p+(d.data.$.screenY-c)*(a._.moved?1:2),F=a._.element.getFirst(),F=m&&F.getComputedStyle("right"),q=a.getPosition();q.y+E>k.height&&(E=k.height-q.y);if((m?F:q.x)+t>k.width)t=k.width-(m?F:q.x);if(e==CKEDITOR.DIALOG_RESIZE_WIDTH||e==CKEDITOR.DIALOG_RESIZE_BOTH)n=Math.max(g.minWidth||0,t-j);if(e==CKEDITOR.DIALOG_RESIZE_HEIGHT||
e==CKEDITOR.DIALOG_RESIZE_BOTH)p=Math.max(g.minHeight||0,E-i);a.resize(n,p);a._.moved||a.layout();d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mouseup",d);CKEDITOR.document.removeListener("mousemove",f);if(m){m.remove();m=null}if(CKEDITOR.env.ie6Compat){var a=o.getChild(0).getFrameDocument();a.removeListener("mouseup",d);a.removeListener("mousemove",f)}}var g=a.definition,e=g.resizable;if(e!=CKEDITOR.DIALOG_RESIZE_NONE){var h=a.getParentEditor(),j,i,k,l,m,n=CKEDITOR.tools.addFunction(function(g){l=
a.getSize();var e=a.parts.contents;if(e.$.getElementsByTagName("iframe").length){m=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>');e.append(m)}i=l.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks));j=l.width-a.parts.contents.getSize("width",1);b=g.screenX;c=g.screenY;k=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",f);CKEDITOR.document.on("mouseup",
d);if(CKEDITOR.env.ie6Compat){e=o.getChild(0).getFrameDocument();e.on("mousemove",f);e.on("mouseup",d)}g.preventDefault&&g.preventDefault()});a.on("load",function(){var b="";e==CKEDITOR.DIALOG_RESIZE_WIDTH?b=" cke_resizer_horizontal":e==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(b=" cke_resizer_vertical");b=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+b+" cke_resizer_"+h.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(h.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+n+', event )">'+
(h.lang.dir=="ltr"?"◢":"◣")+"</div>");a.parts.footer.append(b,1)});h.on("destroy",function(){CKEDITOR.tools.removeFunction(n)})}}function j(a){a.data.preventDefault(1)}function t(a){var b=CKEDITOR.document.getWindow(),c=a.config,f=c.dialog_backgroundCoverColor||"white",d=c.dialog_backgroundCoverOpacity,g=c.baseFloatZIndex,c=CKEDITOR.tools.genKey(f,d,g),e=w[c];if(e)e.show();else{g=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",g,"; top: 0px; left: 0px; ",
!CKEDITOR.env.ie6Compat?"background-color: "+f:"",'" class="cke_dialog_background_cover">'];if(CKEDITOR.env.ie6Compat){f="<html><body style=\\'background-color:"+f+";\\'></body></html>";g.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:');g.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+f+"' );document.close();")+"})())");g.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')}g.push("</div>");
e=CKEDITOR.dom.element.createFromHtml(g.join(""));e.setOpacity(d!==void 0?d:0.5);e.on("keydown",j);e.on("keypress",j);e.on("keyup",j);e.appendTo(CKEDITOR.document.getBody());w[c]=e}a.focusManager.add(e);o=e;var a=function(){var a=b.getViewPaneSize();e.setStyles({width:a.width+"px",height:a.height+"px"})},h=function(){var a=b.getScrollPosition(),c=CKEDITOR.dialog._.currentTop;e.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)}};y=a;b.on("resize",
a);a();(!CKEDITOR.env.mac||!CKEDITOR.env.webkit)&&e.focus();if(CKEDITOR.env.ie6Compat){var i=function(){h();arguments.callee.prevScrollHandler.apply(this,arguments)};b.$.setTimeout(function(){i.prevScrollHandler=window.onscroll||function(){};window.onscroll=i},0);h()}}function n(a){if(o){a.focusManager.remove(o);a=CKEDITOR.document.getWindow();o.hide();a.removeListener("resize",y);CKEDITOR.env.ie6Compat&&a.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||
null},0);y=null}}var m=CKEDITOR.tools.cssLength,r='<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,h){function j(){var a=u._.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 i(a){var b=u._.focusList,a=a||0;if(!(b.length<1)){var c=u._.currentFocusIndex;u._.tabBarMode&&a<0&&(c=0);try{b[c].getInputElement().$.blur()}catch(f){}var d=c,g=u._.pageCount>1;do{d=d+a;if(g&&!u._.tabBarMode&&(d==b.length||d==-1)){u._.tabBarMode=true;u._.tabs[u._.currentTabId][0].focus();
u._.currentFocusIndex=-1;return}d=(d+b.length)%b.length;if(d==c)break}while(a&&!b[d].isFocusable());b[d].focus();b[d].type=="text"&&b[d].select()}}function k(c){if(u==CKEDITOR.dialog._.currentTop){var f=c.data.getKeystroke(),d=b.lang.dir=="rtl",g=[37,38,39,40];H=F=0;if(f==9||f==CKEDITOR.SHIFT+9){i(f==CKEDITOR.SHIFT+9?-1:1);H=1}else if(f==CKEDITOR.ALT+121&&!u._.tabBarMode&&u.getPageCount()>1){u._.tabBarMode=true;u._.tabs[u._.currentTabId][0].focus();u._.currentFocusIndex=-1;H=1}else if(CKEDITOR.tools.indexOf(g,
f)!=-1&&u._.tabBarMode){f=CKEDITOR.tools.indexOf([d?39:37,38],f)!=-1?a.call(u):e.call(u);u.selectPage(f);u._.tabs[f][0].focus();H=1}else if((f==13||f==32)&&u._.tabBarMode){this.selectPage(this._.currentTabId);this._.tabBarMode=false;this._.currentFocusIndex=-1;i(1);H=1}else if(f==13){f=c.data.getTarget();if(!f.is("a","button","select","textarea")&&(!f.is("input")||f.$.type!="button")){(f=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(f.click,0,f);H=1}F=1}else if(f==27){(f=this.getButton("cancel"))?
CKEDITOR.tools.setTimeout(f.click,0,f):this.fire("cancel",{hide:true}).hide!==false&&this.hide();F=1}else return;m(c)}}function m(a){H?a.data.preventDefault(1):F&&a.data.stopPropagation()}var n=CKEDITOR.dialog._.dialogDefinitions[h],t=CKEDITOR.tools.clone(p),r=b.config.dialog_buttonsOrder||"OS",v=b.lang.dir,s={},H,F;(r=="OS"&&CKEDITOR.env.mac||r=="rtl"&&v=="ltr"||r=="ltr"&&v=="rtl")&&t.buttons.reverse();n=CKEDITOR.tools.extend(n(b),t);n=CKEDITOR.tools.clone(n);n=new q(this,n);t=l(b);this._={editor:b,
element:t.element,name:h,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=t.parts;CKEDITOR.tools.setTimeout(function(){b.fire("ariaWidget",this.parts.contents)},0,this);t={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};t[v=="rtl"?"right":"left"]=0;this.parts.dialog.setStyles(t);
CKEDITOR.event.call(this);this.definition=n=CKEDITOR.fire("dialogDefinition",{name:h,definition:n},b).definition;if(!("removeDialogTabs"in b._)&&b.config.removeDialogTabs){t=b.config.removeDialogTabs.split(";");for(v=0;v<t.length;v++){r=t[v].split(":");if(r.length==2){var E=r[0];s[E]||(s[E]=[]);s[E].push(r[1])}}b._.removeDialogTabs=s}if(b._.removeDialogTabs&&(s=b._.removeDialogTabs[h]))for(v=0;v<s.length;v++)n.removeContents(s[v]);if(n.onLoad)this.on("load",n.onLoad);if(n.onShow)this.on("show",n.onShow);
if(n.onHide)this.on("hide",n.onHide);if(n.onOk)this.on("ok",function(a){b.fire("saveSnapshot");setTimeout(function(){b.fire("saveSnapshot")},0);if(n.onOk.call(this,a)===false)a.data.hide=false});this.state=CKEDITOR.DIALOG_STATE_IDLE;if(n.onCancel)this.on("cancel",function(a){if(n.onCancel.call(this,a)===false)a.data.hide=false});var u=this,o=function(a){var b=u._.contents,c=false,f;for(f in b)for(var d in b[f])if(c=a.call(this,b[f][d]))return};this.on("ok",function(a){o(function(b){if(b.validate){var c=
b.validate(this),f=typeof c=="string"||c===false;if(f){a.data.hide=false;a.stop()}d.call(b,!f,typeof c=="string"?c:void 0);return f}})},this,null,0);this.on("cancel",function(a){o(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=i;var w=this._.element;
b.focusManager.add(w,1);this.on("show",function(){w.on("keydown",k,this);if(CKEDITOR.env.gecko)w.on("keypress",m,this)});this.on("hide",function(){w.removeListener("keydown",k);CKEDITOR.env.gecko&&w.removeListener("keypress",m);o(function(a){g.apply(a)})});this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",k,this,null,0)});this.on("show",function(){j();var a=u._.pageCount>1;if(b.config.dialog_startupFocusTab&&a){u._.tabBarMode=true;u._.tabs[u._.currentTabId][0].focus();
u._.currentFocusIndex=-1}else if(!this._.hasFocus){this._.currentFocusIndex=a?-1:this._.focusList.length-1;if(n.onFocus)(a=n.onFocus.call(this))&&a.focus();else i(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);f(this);(new CKEDITOR.dom.text(n.title,CKEDITOR.document)).appendTo(this.parts.title);for(v=0;v<n.contents.length;v++)(s=n.contents[v])&&this.addPage(s);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;i(1)}a.data.preventDefault()}},this);v=[];s=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:n.buttons},v).getChild();this.parts.footer.setHtml(v.join(""));for(v=0;v<s.length;v++)this._.buttons[s[v].id]=s[v]};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 f=this._.element.getFirst(),d=this._.editor.lang.dir=="rtl",g=f.getComputedStyle("position")=="fixed";CKEDITOR.env.ie&&f.setStyle("zoom","100%");if(!g||!this._.position||!(this._.position.x==a&&this._.position.y==b)){this._.position={x:a,y:b};if(!g){g=CKEDITOR.document.getWindow().getScrollPosition();
a=a+g.x;b=b+g.y}if(d){g=this.getSize();a=CKEDITOR.document.getWindow().getViewPaneSize().width-g.width-a}b={top:(b>0?b:0)+"px"};b[d?"right":"left"]=(a>0?a:0)+"px";f.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;t(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",x);a.on("keyup",C);this._.hasFocus=false;for(var c in b.contents)if(b.contents[c]){var a=b.contents[c],f=this._.tabs[a.id],d=a.requiredContent,g=0;if(f){for(var e in this._.contents[a.id]){var j=this._.contents[a.id][e];if(!(j.type=="hbox"||j.type=="vbox"||!j.getInputElement()))if(j.requiredContent&&!this._.editor.activeFilter.check(j.requiredContent))j.disable();
else{j.enable();g++}}!g||d&&!this._.editor.activeFilter.check(d)?f[0].addClass("cke_dialog_tab_disabled"):f[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout();h(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(),f=(c.width-b.width)/2,d=(c.height-b.height)/2;CKEDITOR.env.ie6Compat||(b.height+(d>0?d:0)>c.height||b.width+(f>0?f:0)>c.width?a.setStyle("position","absolute"):a.setStyle("position","fixed"));this.move(this._.moved?this._.position.x:f,this._.moved?this._.position.y:d)},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(G(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 n(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex=CKEDITOR.dialog._.currentZIndex-10;
else{CKEDITOR.dialog._.currentZIndex=null;a.removeListener("keydown",x);a.removeListener("keyup",C);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)+
'"':"",f=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),d=this._.contents[a.id]={},g=f.getChild(),e=0;f=g.shift();){!f.notAllowed&&(f.type!="hbox"&&f.type!="vbox")&&e++;d[f.id]=f;typeof f.getChild=="function"&&g.push.apply(g,f.getChild())}if(!e)a.hidden=true;b=CKEDITOR.dom.element.createFromHtml(b.join(""));b.setAttribute("role","tabpanel");f=CKEDITOR.env;
d="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="',d,'"',f.gecko&&!f.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',a.label,"</a>"].join(""));b.setAttribute("aria-labelledby",d);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,L,D);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 f=this._.tabs[c][0],d=this._.tabs[c][1];if(c!=a){f.removeClass("cke_dialog_tab_selected");d.hide()}d.setAttribute("aria-hidden",
c!=a)}var g=this._.tabs[a];g[0].addClass("cke_dialog_tab_selected");if(CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat){b(g[1]);g[1].show();setTimeout(function(){b(g[1],1)},0)}else g[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){var b=this.getParentEditor().lang.dir,c={attributes:{"class":"cke_dialog_spinner"},styles:{"float":b=="rtl"?"right":"left"}};c.styles["margin-"+(b=="rtl"?"left":"right")]="8px";this.parts.spinner=CKEDITOR.document.createElement("div",c);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]},s=function(a,b,c){for(var f=0,d;d=a[f];f++){if(d.id==b)return d;if(c&&d[c])if(d=s(d[c],b,c))return d}return null},v=function(a,b,c,f,d){if(c){for(var g=0,e;e=a[g];g++){if(e.id==c){a.splice(g,0,b);return b}if(f&&e[f])if(e=v(e[f],b,c,f,true))return e}if(d)return null}a.push(b);return b},u=function(a,b,c){for(var f=
0,d;d=a[f];f++){if(d.id==b)return a.splice(f,1);if(c&&d[c])if(d=u(d[c],b,c))return d}return null},q=function(a,b){this.dialog=a;for(var c=b.contents,f=0,d;d=c[f];f++)c[f]=d&&new k(a,d);CKEDITOR.tools.extend(this,b)};q.prototype={getContents:function(a){return s(this.contents,a)},getButton:function(a){return s(this.buttons,a)},addContents:function(a,b){return v(this.contents,a,b)},addButton:function(a,b){return v(this.buttons,a,b)},removeContents:function(a){u(this.contents,a)},removeButton:function(a){u(this.buttons,
a)}};k.prototype={get:function(a){return s(this.elements,a,"children")},add:function(a,b){return v(this.elements,a,b,"children")},remove:function(a){u(this.elements,a,"children")}};var y,w={},o,z={},x=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,f=a.data.$.shiftKey,d=String.fromCharCode(a.data.$.keyCode);if((b=z[(b?"CTRL+":"")+(c?"ALT+":"")+(f?"SHIFT+":"")+d])&&b.length){b=b[b.length-1];b.keydown&&b.keydown.call(b.uiElement,b.dialog,b.key);a.data.preventDefault()}},C=function(a){var b=
a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,f=a.data.$.shiftKey,d=String.fromCharCode(a.data.$.keyCode);if((b=z[(b?"CTRL+":"")+(c?"ALT+":"")+(f?"SHIFT+":"")+d])&&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,f,d){(z[c]||(z[c]=[])).push({uiElement:a,dialog:b,key:c,keyup:d||a.accessKeyUp,keydown:f||a.accessKeyDown})},G=function(a){for(var b in z){for(var c=z[b],f=c.length-1;f>=0;f--)(c[f].dialog==a||c[f].uiElement==
a)&&c.splice(f,1);c.length===0&&delete z[b]}},D=function(a,b){a._.accessKeyMap[b]&&a.selectPage(a._.accessKeyMap[b])},L=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(a,b,c,f,d,g,e){if(!(arguments.length<4)){var h=(f.call?f(b):f)||"div",j=["<",h," "],i=(d&&d.call?d(b):d)||{},k=(g&&g.call?g(b):g)||{},l=(e&&e.call?e.call(this,a,b):e)||"",m=this.domId=k.id||CKEDITOR.tools.getNextId()+"_uiElement";if(b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)){i.display="none";
this.notAllowed=true}k.id=m;var n={};b.type&&(n["cke_dialog_ui_"+b.type]=1);b.className&&(n[b.className]=1);if(b.disabled)n.cke_disabled=1;for(var t=k["class"]&&k["class"].split?k["class"].split(" "):[],m=0;m<t.length;m++)t[m]&&(n[t[m]]=1);t=[];for(m in n)t.push(m);k["class"]=t.join(" ");if(b.title)k.title=b.title;n=(b.style||"").split(";");if(b.align){t=b.align;i["margin-left"]=t=="left"?0:"auto";i["margin-right"]=t=="right"?0:"auto"}for(m in i)n.push(m+":"+i[m]);b.hidden&&n.push("display:none");
for(m=n.length-1;m>=0;m--)n[m]===""&&n.splice(m,1);if(n.length>0)k.style=(k.style?k.style+"; ":"")+n.join("; ");for(m in k)j.push(m+'="'+CKEDITOR.tools.htmlEncode(k[m])+'" ');j.push(">",l,"</",h,">");c.push(j.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 p=this;a.on("load",function(){var b=p.getInputElement();if(b){var c=p.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;p.fire("focus");c&&this.addClass(c)});b.on("blur",function(){p.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=p.focusIndex})}}},hbox:function(a,b,c,f,d){if(!(arguments.length<4)){this._||(this._={});var g=this._.children=b,e=d&&d.widths||null,h=d&&d.height||null,j,i={role:"presentation"};
d&&d.align&&(i.align=d.align);CKEDITOR.ui.dialog.uiElement.call(this,a,d||{type:"hbox"},f,"table",{},i,function(){var a=['<tbody><tr class="cke_dialog_ui_hbox">'];for(j=0;j<c.length;j++){var b="cke_dialog_ui_hbox_child",f=[];j===0&&(b="cke_dialog_ui_hbox_first");j==c.length-1&&(b="cke_dialog_ui_hbox_last");a.push('<td class="',b,'" role="presentation" ');e?e[j]&&f.push("width:"+m(e[j])):f.push("width:"+Math.floor(100/c.length)+"%");h&&f.push("height:"+m(h));d&&d.padding!==void 0&&f.push("padding:"+
m(d.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&g[j].align)&&f.push("text-align:"+g[j].align);f.length>0&&a.push('style="'+f.join("; ")+'" ');a.push(">",c[j],"</td>")}a.push("</tr></tbody>");return a.join("")})}},vbox:function(a,b,c,f,d){if(!(arguments.length<3)){this._||(this._={});var g=this._.children=b,e=d&&d.width||null,h=d&&d.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,d||{type:"vbox"},f,"div",null,{role:"presentation"},function(){var b=['<table role="presentation" cellspacing="0" border="0" '];
b.push('style="');d&&d.expand&&b.push("height:100%;");b.push("width:"+m(e||"100%"),";");CKEDITOR.env.webkit&&b.push("float:none;");b.push('"');b.push('align="',CKEDITOR.tools.htmlEncode(d&&d.align||(a.getParentEditor().lang.dir=="ltr"?"left":"right")),'" ');b.push("><tbody>");for(var f=0;f<c.length;f++){var j=[];b.push('<tr><td role="presentation" ');e&&j.push("width:"+m(e||"100%"));h?j.push("height:"+m(h[f])):d&&d.expand&&j.push("height:"+Math.floor(100/c.length)+"%");d&&d.padding!==void 0&&j.push("padding:"+
m(d.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&g[f].align)&&j.push("text-align:"+g[f].align);j.length>0&&b.push('style="',j.join("; "),'" ');b.push(' class="cke_dialog_ui_vbox_child">',c[f],"</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,f=function(a,b,c,f){b.on("load",function(){a.getInputElement().on(c,f,a)})},d;for(d in a)if(c=d.match(b))this.eventProcessors[d]?this.eventProcessors[d].call(this,this._.dialog,a[d]):f(this,this._.dialog,c[1].toLowerCase(),a[d]);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 f=b.children,d,g=[],e=[],h=0;h<f.length&&(d=f[h]);h++){var j=[];g.push(j);e.push(CKEDITOR.dialog._.uiElementBuilders[d.type].build(a,d,j))}return new CKEDITOR.ui.dialog[b.type](a,
e,g,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+)?$/,f=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,d=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,g=/^(\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,f=CKEDITOR.VALIDATE_AND,d=[],g;for(g=0;g<a.length;g++)if(typeof a[g]=="function")d.push(a[g]);else break;if(g<a.length&&typeof a[g]=="string"){c=a[g];g++}g<a.length&&typeof a[g]=="number"&&(f=a[g]);var e=f==CKEDITOR.VALIDATE_AND?true:false;for(g=0;g<d.length;g++)e=f==CKEDITOR.VALIDATE_AND?e&&d[g](b):e||d[g](b);return!e?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 d.test(CKEDITOR.tools.trim(a))},a)},htmlLength:function(a){return this.functions(function(a){return f.test(CKEDITOR.tools.trim(a))},a)},inlineStyle:function(a){return this.functions(function(a){return g.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 w)w[c].remove();w={}}var a=a.editor._.storedDialogs,f;for(f in a)a[f].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a,b){var c=null,f=CKEDITOR.dialog._.dialogDefinitions[a];
CKEDITOR.dialog._.currentTop===null&&t(this);if(typeof f=="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(f=="failed"){n(this);throw Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');}typeof f=="string"&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(f),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)}}),"use strict",function(){function a(a,b,c){if(!b.type)b.type="auto";if(c&&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 c(){var a=b.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var d=function(a){(!b.readOnly||a.name!="cut")&&z.initPasteDataTransfer(a,b);a.data.preventDefault()};a.on("copy",d);a.on("cut",d);a.on("cut",function(){b.readOnly||b.extractSelectedHtml()},null,null,999)}a.on(z.mainPasteEvent,function(a){z.mainPasteEvent=="beforepaste"&&x||y(a)});if(z.mainPasteEvent=="beforepaste"){a.on("paste",function(a){if(!C){e();a.data.preventDefault();
y(a);i("paste")||b.openDialog("paste")}});a.on("contextmenu",h,null,null,0);a.on("beforepaste",function(a){a.data&&(!a.data.$.ctrlKey&&!a.data.$.shiftKey)&&h()},null,null,0)}a.on("beforecut",function(){!x&&k(b)});var g;a.attachListener(CKEDITOR.env.ie?a:b.document.getDocumentElement(),"mouseup",function(){g=setTimeout(function(){w()},0)});b.on("destroy",function(){clearTimeout(g)});a.on("keyup",w)}function d(a){return{type:a,canUndo:a=="cut",startDisabled:true,exec:function(){this.type=="cut"&&k();
var a;var c=this.type;if(CKEDITOR.env.ie)a=i(c);else try{a=b.document.$.execCommand(c,false,null)}catch(d){a=false}a||b.showNotification(b.lang.clipboard[this.type+"Error"]);return a}}}function g(){return{canUndo:false,async:true,exec:function(b,c){var f=function(c,f){c&&a(b,c,!!f);b.fire("afterCommandExec",{name:"paste",command:d,returnValue:!!c})},d=this;typeof c=="string"?f({dataValue:c,method:"paste",dataTransfer:z.initPasteDataTransfer()},1):b.getClipboardData(f)}}}function e(){C=1;setTimeout(function(){C=
0},100)}function h(){x=1;setTimeout(function(){x=0},10)}function i(a){var c=b.document,d=c.getBody(),g=false,e=function(){g=true};d.on(a,e);CKEDITOR.env.version>7?c.$.execCommand(a):c.$.selection.createRange().execCommand(a);d.removeListener(a,e);return g}function k(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var a=b.getSelection(),c,d,g;if(a.getType()==CKEDITOR.SELECTION_ELEMENT&&(c=a.getSelectedElement())){d=a.getRanges()[0];g=b.document.createText("");g.insertBefore(c);d.setStartBefore(g);d.setEndAfter(c);
a.selectRanges([d]);setTimeout(function(){if(c.getParent()){g.remove();a.selectElement(c)}},0)}}}function l(a,c){var d=b.document,g=b.editable(),e=function(a){a.cancel()},h;if(!d.getById("cke_pastebin")){var j=b.getSelection(),i=j.createBookmarks();CKEDITOR.env.ie&&j.root.fire("selectionchange");var k=new CKEDITOR.dom.element((CKEDITOR.env.webkit||g.is("body"))&&!CKEDITOR.env.ie?"body":"div",d);k.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var m=0,d=d.getWindow();if(CKEDITOR.env.webkit){g.append(k);
k.addClass("cke_editable");if(!g.is("body")){m=g.getComputedStyle("position")!="static"?g:CKEDITOR.dom.element.get(g.$.offsetParent);m=m.getDocumentPosition().y}}else g.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(k);k.setStyles({position:"absolute",top:d.getScrollPosition().y-m+10+"px",width:"1px",height:Math.max(1,d.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0});CKEDITOR.env.safari&&k.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text"));if(m=k.getParent().isReadOnly()){k.setOpacity(0);
k.setAttribute("contenteditable",true)}else k.setStyle(b.config.contentsLangDirection=="ltr"?"left":"right","-1000px");b.on("selectionChange",e,null,null,0);if(CKEDITOR.env.webkit||CKEDITOR.env.gecko)h=g.once("blur",e,null,null,-100);m&&k.focus();m=new CKEDITOR.dom.range(k);m.selectNodeContents(k);var n=m.select();CKEDITOR.env.ie&&(h=g.once("blur",function(){b.lockSelection(n)}));var t=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){if(CKEDITOR.env.webkit)CKEDITOR.document.getBody().$.scrollTop=
t;h&&h.removeListener();CKEDITOR.env.ie&&g.focus();j.selectBookmarks(i);k.remove();var a;if(CKEDITOR.env.webkit&&(a=k.getFirst())&&a.is&&a.hasClass("Apple-style-span"))k=a;b.removeListener("selectionChange",e);c(k.getHtml())},0)}}function u(){if(z.mainPasteEvent=="paste"){b.fire("beforePaste",{type:"auto",method:"paste"});return false}b.focus();e();var a=b.focusManager;a.lock();if(b.editable().fire(z.mainPasteEvent)&&!i("paste")){a.unlock();return false}a.unlock();return true}function q(a){if(b.mode==
"wysiwyg")switch(a.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:a=b.editable();e();z.mainPasteEvent=="paste"&&a.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:b.fire("saveSnapshot");setTimeout(function(){b.fire("saveSnapshot")},50)}}function y(c){var d={type:"auto",method:"paste",dataTransfer:z.initPasteDataTransfer(c)};d.dataTransfer.cacheData();var g=b.fire("beforePaste",d)!==false;if(g&&z.canClipboardApiBeTrusted(d.dataTransfer,b)){c.data.preventDefault();
setTimeout(function(){a(b,d)},0)}else l(c,function(c){d.dataValue=c.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");g&&a(b,d)})}function w(){if(b.mode=="wysiwyg"){var a=o("paste");b.getCommand("cut").setState(o("cut"));b.getCommand("copy").setState(o("copy"));b.getCommand("paste").setState(a);b.fire("pasteState",a)}}function o(a){if(A&&a in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if(a=="paste")return CKEDITOR.TRISTATE_OFF;var a=b.getSelection(),c=a.getRanges();return a.getType()==
CKEDITOR.SELECTION_NONE||c.length==1&&c[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var z=CKEDITOR.plugins.clipboard,x=0,C=0,A=0;(function(){b.on("key",q);b.on("contentDom",c);b.on("selectionChange",function(a){A=a.data.selection.getRanges()[0].checkReadOnly();w()});b.contextMenu&&b.contextMenu.addListener(function(a,b){A=b.getRanges()[0].checkReadOnly();return{cut:o("cut"),copy:o("copy"),paste:o("paste")}})})();(function(){function a(c,d,g,e,h){var j=b.lang.clipboard[d];b.addCommand(d,
g);b.ui.addButton&&b.ui.addButton(c,{label:j,command:d,toolbar:"clipboard,"+e});b.addMenuItems&&b.addMenuItem(d,{label:j,command:d,group:"clipboard",order:h})}a("Cut","cut",d("cut"),10,1);a("Copy","copy",d("copy"),20,4);a("Paste","paste",g(),30,8)})();b.getClipboardData=function(a,c){function d(a){a.removeListener();a.cancel();c(a.data)}function g(a){a.removeListener();a.cancel();i=true;c({type:j,dataValue:a.data.dataValue,dataTransfer:a.data.dataTransfer,method:"paste"})}function e(){this.customTitle=
a&&a.title}var h=false,j="auto",i=false;if(!c){c=a;a=null}b.on("paste",d,null,null,0);b.on("beforePaste",function(a){a.removeListener();h=true;j=a.data.type},null,null,1E3);if(u()===false){b.removeListener("paste",d);if(h&&b.fire("pasteDialog",e)){b.on("pasteDialogCommit",g);b.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",g);setTimeout(function(){i||c(null)},10)})}else c(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 d(a,b){function c(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 c(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 c(a.length/4)})+"</p>")}return i(a,b)}function g(){function a(){var b={},c;for(c in CKEDITOR.dtd)c.charAt(0)!="$"&&(c!="div"&&c!="span")&&(b[c]=1);return b}var b,c;return{get:function(d){if(d=="plain-text")return b||(b=new CKEDITOR.filter("br"));if(d=="semantic-content"){if(!(d=c)){d=new CKEDITOR.filter;d.allow({$1:{elements:a(),attributes:true,styles:false,classes:false}});d=c=d}return d}return d?new CKEDITOR.filter(d):null}}}function l(a,b,c){var b=CKEDITOR.htmlParser.fragment.fromHtml(b),
d=new CKEDITOR.htmlParser.basicWriter;c.applyTo(b,true,false,a.activeEnterMode);b.writeHtml(d);return d.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 h(a){a.data.preventDefault();a.data.$.dataTransfer.dropEffect="none"}function k(b){var c=CKEDITOR.plugins.clipboard;b.on("contentDom",function(){function d(c,
g,e){g.select();a(b,{dataTransfer:e,method:"drop"},1);e.sourceEditor.fire("saveSnapshot");e.sourceEditor.editable().extractHtmlFromRange(c);e.sourceEditor.getSelection().selectRanges([c]);e.sourceEditor.fire("saveSnapshot")}function g(d,e){d.select();a(b,{dataTransfer:e,method:"drop"},1);c.resetDragDataTransfer()}function e(a,c,d){var g={$:a.data.$,target:a.data.getTarget()};if(c)g.dragRange=c;if(d)g.dropRange=d;b.fire(a.name,g)===false&&a.data.preventDefault()}function h(a){a.type!=CKEDITOR.NODE_ELEMENT&&
(a=a.getParent());return a.getChildCount()}var i=b.editable(),k=CKEDITOR.plugins.clipboard.getDropTarget(b),l=b.ui.space("top"),u=b.ui.space("bottom");c.preventDefaultDropOnElement(l);c.preventDefaultDropOnElement(u);i.attachListener(k,"dragstart",e);i.attachListener(b,"dragstart",c.resetDragDataTransfer,c,null,1);i.attachListener(b,"dragstart",function(a){c.initDragDataTransfer(a,b)},null,null,2);i.attachListener(b,"dragstart",function(){var a=c.dragRange=b.getSelection().getRanges()[0];if(CKEDITOR.env.ie&&
CKEDITOR.env.version<10){c.dragStartContainerChildCount=a?h(a.startContainer):null;c.dragEndContainerChildCount=a?h(a.endContainer):null}},null,null,100);i.attachListener(k,"dragend",e);i.attachListener(b,"dragend",c.initDragDataTransfer,c,null,1);i.attachListener(b,"dragend",c.resetDragDataTransfer,c,null,100);i.attachListener(k,"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()});i.attachListener(k,"drop",function(a){if(!a.data.$.defaultPrevented){a.data.preventDefault();var d=a.data.getTarget();if(!d.isReadOnly()||d.type==CKEDITOR.NODE_ELEMENT&&d.is("html")){var d=c.getRangeAtDropPosition(a,b),g=c.dragRange;d&&e(a,g,d)}}},null,null,9999);i.attachListener(b,"drop",c.initDragDataTransfer,c,null,1);i.attachListener(b,"drop",function(a){if(a=a.data){var e=a.dropRange,h=a.dragRange,i=a.dataTransfer;i.getTransferType(b)==CKEDITOR.DATA_TRANSFER_INTERNAL?
setTimeout(function(){c.internalDrop(h,e,i,b)},0):i.getTransferType(b)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?d(h,e,i):g(e,i)}},null,null,9999)})}CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(a){var c,h=g();a.config.forcePasteAsPlainText?c="plain-text":a.config.pasteFilter?c=a.config.pasteFilter:CKEDITOR.env.webkit&&!("pasteFilter"in a.config)&&(c="semantic-content");a.pasteFilter=h.get(c);e(a);k(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 c=b.data.dataTransfer,d=c.getData("text/html");if(d){b.data.dataValue=d;b.data.type="html"}else if(d=c.getData("text/plain")){b.data.dataValue=a.editable().transformPlainTextToHtml(d);b.data.type="text"}}},null,null,1);a.on("paste",function(a){var b=a.data.dataValue,c=CKEDITOR.dtd.$block;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 f,d,g=new CKEDITOR.dom.element("div");for(g.setHtml(b);g.getChildCount()==1&&(f=
g.getFirst())&&f.type==CKEDITOR.NODE_ELEMENT&&(f.hasClass("cke_editable")||f.hasClass("cke_contents"));)g=d=f;d&&(b=d.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?b=b.replace(/^&nbsp;(?: |\r\n)?<(\w+)/g,function(b,f){if(f.toLowerCase()in c){a.data.preSniffing="html";return"<"+f}return b}):CKEDITOR.env.webkit?b=b.replace(/<\/(\w+)><div><br><\/div>$/,function(b,f){if(f in c){a.data.endsWithEOL=1;return"</"+f+">"}return b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)<br>$/,"$1"));a.data.dataValue=b},null,
null,3);a.on("paste",function(c){var c=c.data,g=c.type,e=c.dataValue,j,i=a.config.clipboard_defaultContentType||"html",k=c.dataTransfer.getTransferType(a);j=g=="html"||c.preSniffing=="html"?"html":b(e);j=="htmlifiedtext"&&(e=d(a.config,e));g=="text"&&j=="html"?e=l(a,e,h.get("plain-text")):k==CKEDITOR.DATA_TRANSFER_EXTERNAL&&(a.pasteFilter&&!c.dontFilter)&&(e=l(a,e,a.pasteFilter));c.startsWithEOL&&(e='<br data-cke-eol="1">'+e);c.endsWithEOL&&(e=e+'<br data-cke-eol="1">');g=="auto"&&(g=j=="html"||i==
"html"?"html":"text");c.type=g;c.dataValue=e;delete c.preSniffing;delete c.startsWithEOL;delete c.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,mainPasteEvent:CKEDITOR.env.ie&&!CKEDITOR.env.edge?"beforepaste":"paste",canClipboardApiBeTrusted:function(a,b){return a.getTransferType(b)!=CKEDITOR.DATA_TRANSFER_EXTERNAL||CKEDITOR.env.chrome&&!a.isEmpty()||CKEDITOR.env.gecko&&(a.getData("text/html")||a.getFilesCount())?true:false},getDropTarget:function(a){var b=a.editable();return CKEDITOR.env.ie&&CKEDITOR.env.version<9||b.isInline()?b:a.document},fixSplitNodesAfterDrop:function(a,b,
c,d){function g(a,c,f){var d=a;d.type==CKEDITOR.NODE_TEXT&&(d=a.getParent());if(d.equals(c)&&f!=c.getChildCount()){a=b;c=a.startContainer.getChild(a.startOffset-1);f=a.startContainer.getChild(a.startOffset);if(c&&c.type==CKEDITOR.NODE_TEXT&&f&&f.type==CKEDITOR.NODE_TEXT){d=c.getLength();c.setText(c.getText()+f.getText());f.remove();a.setStart(c,d);a.collapse(true)}return true}}var e=b.startContainer;!(typeof d!="number"||typeof c!="number")&&(e.type==CKEDITOR.NODE_ELEMENT&&!g(a.startContainer,e,c))&&
g(a.endContainer,e,d)},isDropRangeAffectedByDragRange:function(a,b){var c=b.startContainer,d=b.endOffset;return a.endContainer.equals(c)&&a.endOffset<=d||a.startContainer.getParent().equals(c)&&a.startContainer.getIndex()<d||a.endContainer.getParent().equals(c)&&a.endContainer.getIndex()<d?true:false},internalDrop:function(b,c,d,g){var e=CKEDITOR.plugins.clipboard,h=g.editable(),i,k;g.fire("saveSnapshot");g.fire("lockSnapshot",{dontUpdate:1});CKEDITOR.env.ie&&CKEDITOR.env.version<10&&this.fixSplitNodesAfterDrop(b,
c,e.dragStartContainerChildCount,e.dragEndContainerChildCount);(k=this.isDropRangeAffectedByDragRange(b,c))||(i=b.createBookmark(false));e=c.clone().createBookmark(false);k&&(i=b.createBookmark(false));b=i.startNode;c=i.endNode;k=e.startNode;c&&(b.getPosition(k)&CKEDITOR.POSITION_PRECEDING&&c.getPosition(k)&CKEDITOR.POSITION_FOLLOWING)&&k.insertBefore(b);b=g.createRange();b.moveToBookmark(i);h.extractHtmlFromRange(b,1);c=g.createRange();c.moveToBookmark(e);a(g,{dataTransfer:d,method:"drop",range:c},
1);g.fire("unlockSnapshot")},getRangeAtDropPosition:function(a,b){var c=a.data.$,d=c.clientX,g=c.clientY,e=b.getSelection(true).getRanges()[0],h=b.createRange();if(a.data.testRange)return a.data.testRange;if(document.caretRangeFromPoint){c=b.document.$.caretRangeFromPoint(d,g);h.setStart(CKEDITOR.dom.node(c.startContainer),c.startOffset);h.collapse(true)}else if(c.rangeParent){h.setStart(CKEDITOR.dom.node(c.rangeParent),c.rangeOffset);h.collapse(true)}else{if(CKEDITOR.env.ie&&CKEDITOR.env.version>
8&&e&&b.editable().hasFocus)return e;if(document.body.createTextRange){b.focus();c=b.document.getBody().$.createTextRange();try{for(var i=false,k=0;k<20&&!i;k++){if(!i)try{c.moveToPoint(d,g-k);i=true}catch(l){}if(!i)try{c.moveToPoint(d,g+k);i=true}catch(q){}}if(i){var y="cke-temp-"+(new Date).getTime();c.pasteHTML('<span id="'+y+'">​</span>');var w=b.document.getById(y);h.moveToPosition(w,CKEDITOR.POSITION_BEFORE_START);w.remove()}else{var o=b.document.$.elementFromPoint(d,g),z=new CKEDITOR.dom.element(o),
x;if(!z.equals(b.editable())&&z.getName()!="html"){x=z.getClientRect();d<x.left?h.setStartAt(z,CKEDITOR.POSITION_AFTER_START):h.setStartAt(z,CKEDITOR.POSITION_BEFORE_END);h.collapse(true)}else return e&&e.startContainer&&!e.startContainer.equals(b.editable())?e:null}}catch(C){return null}}else return null}return h},initDragDataTransfer:function(a,b){var c=a.data.$?a.data.$.dataTransfer:null,d=new this.dataTransfer(c,b);c?this.dragData&&d.id==this.dragData.id?d=this.dragData:this.dragData=d:this.dragData?
d=this.dragData:this.dragData=d;a.data.dataTransfer=d},resetDragDataTransfer:function(){this.dragData=null},initPasteDataTransfer:function(a,b){if(this.isCustomCopyCutSupported&&a&&a.data&&a.data.$){var c=new this.dataTransfer(a.data.$.clipboardData,b);if(this.copyCutData&&c.id==this.copyCutData.id){c=this.copyCutData;c.$=a.data.$.clipboardData}else this.copyCutData=c;return c}return new this.dataTransfer(null,b)},preventDefaultDropOnElement:function(a){a&&a.on("dragover",h)}};var c=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?
"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(a,b){if(a)this.$=a;this._={metaRegExp:/^<meta.*?>/i,bodyRegExp:/<body(?:[\s\S]*?)>([\s\S]*)<\/body>/i,fragmentRegExp:/<\!--(?:Start|End)Fragment--\>/g,data:{},files:[],normalizeType:function(a){a=a.toLowerCase();return a=="text"||a=="text/plain"?"Text":a=="url"?"URL":a}};this.id=this.getData(c);if(!this.id)this.id=c=="Text"?"":"cke-"+CKEDITOR.tools.getUniqueId();if(c!="Text")try{this.$.setData(c,this.id)}catch(d){}if(b){this.sourceEditor=
b;this.setData("text/html",b.getSelectedHtml(1));c!="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(c){}if(b===void 0||b===null||b==="")b="";if(a=="text/html"){b=
b.replace(this._.metaRegExp,"");if((a=this._.bodyRegExp.exec(b))&&a.length){b=a[1];b=b.replace(this._.fragmentRegExp,"")}}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")){if(c=="Text"&&a=="Text")this.id=b;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,c,d;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(c=0;c<this.$.types.length;c++)a(this.$.types[c])}else{a("Text");a("URL")}d=this._getImageFromClipboard();if(this.$&&this.$.files||d){this._.files=[];for(c=0;c<this.$.files.length;c++)this._.files.push(this.$.files[c]);
this._.files.length===0&&d&&this._.files.push(d)}}},getFilesCount:function(){return this._.files.length?this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?1:0},getFile:function(a){return this._.files.length?this._.files[a]:this.$&&this.$.files&&this.$.files.length?this.$.files[a]: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}c!="Text"&&(a[c]=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,g){function l(){var b=a.mode;if(b){b=this.modes[b]?r[b]!==void 0?r[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,h=this._.id=CKEDITOR.tools.getNextId(),k="",c=this.command,f;this._.editor=
a;var j={id:h,button:this,editor:a,focus:function(){CKEDITOR.document.getById(h).focus()},execute:function(){this.button.click(a)},attach:function(a){this.button.attach(a)}},t=CKEDITOR.tools.addFunction(function(a){if(j.onkey){a=new CKEDITOR.dom.event(a);return j.onkey(j,a.getKeystroke())!==false}}),n=CKEDITOR.tools.addFunction(function(a){var b;j.onfocus&&(b=j.onfocus(j,new CKEDITOR.dom.event(a))!==false);return b}),m=0;j.clickFn=f=CKEDITOR.tools.addFunction(function(){if(m){a.unlockSelection(1);
m=0}j.execute();i.iOS&&a.focus()});if(this.modes){var r={};a.on("beforeModeUnload",function(){if(a.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED)r[a.mode]=this._.state},this);a.on("activeFilterChange",l,this);a.on("mode",l,this);!this.readOnly&&a.on("readOnly",l,this)}else if(c)if(c=a.getCommand(c)){c.on("state",function(){this.setState(c.state)},this);k=k+(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),f=c.getFirst(),b=b.data;b!=a.lang.dir?c.addClass("cke_"+b):c.removeClass("cke_ltr").removeClass("cke_rtl");f.setAttribute("style",CKEDITOR.skin.getIconStyle(s,b=="rtl",this.icon,this.iconOffset))},this);c||(k=k+"off");var p=this.name||this.command,s=p;if(this.icon&&!/\./.test(this.icon)){s=this.icon;this.icon=null}k={id:h,name:p,iconName:s,label:this.label,cls:this.className||"",state:k,ariaDisabled:k=="disabled"?"true":"false",title:this.title,titleJs:i.gecko&&
!i.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:t,focusFn:n,clickFn:f,style:CKEDITOR.skin.getIconStyle(s,a.lang.dir=="rtl",this.icon,this.iconOffset),arrowHtml:this.hasArrow?e.output():""};b.output(k,g);if(this.onRender)this.onRender();return j},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 d=this._.panelDefinition,g=this._.panelDefinition.block,l=d.parent||CKEDITOR.document.getBody(),i=this._.panel=new CKEDITOR.ui.floatPanel(a,l,d),d=i.addBlock(b.id,g),h=this;i.onShow=function(){h.className&&
this.element.addClass(h.className+"_panel");h.setState(CKEDITOR.TRISTATE_ON);b.on=1;h.editorFocus&&a.focus();if(h.onOpen)h.onOpen()};i.onHide=function(d){h.className&&this.element.getFirst().removeClass(h.className+"_panel");h.setState(h.modes&&h.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);b.on=0;if(!d&&h.onClose)h.onClose()};i.onEscape=function(){i.hide(1);h.document.getById(b.id).focus()};if(this.onBlock)this.onBlock(i,d);d.onHide=function(){b.on=0;h.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(d,g){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+");"},l)));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 l={editorId:d.id,id:this.id,langCode:d.langCode,dir:d.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":d.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();")+"}())":"";l.frame=e.output({id:this.id+"_frame",src:i})}i=a.output(l);g&&g.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"),
h;h=e.getItem(++i);)if(h.getAttribute("_cke_focus")&&h.$.offsetWidth){this._.focusIndex=i;h.focus();break}if(!h&&!b){this._.focusIndex=-1;return this.onKeyDown(a,1)}return false;case "prev":i=this._.focusIndex;for(e=this.element.getElementsByTag("a");i>0&&(h=e.getItem(--i));){if(h.getAttribute("_cke_focus")&&h.$.offsetWidth){this._.focusIndex=i;h.focus();break}h=null}if(!h&&!b){this._.focusIndex=e.count();return this.onKeyDown(a,1)}return false;case "click":case "mouseup":i=this._.focusIndex;(h=i>=
0&&this.element.getElementsByTag("a").getItem(i))&&(h.$[e]?h.$[e]():h.$["on"+e]());return false}return true}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function a(a,d,g,l,i){var i=CKEDITOR.tools.genKey(d.getUniqueId(),g.getUniqueId(),a.lang.dir,a.uiColor||"",l.css||"",i||""),h=e[i];if(!h){h=e[i]=new CKEDITOR.ui.panel(d,l);h.element=g.append(CKEDITOR.dom.element.createFromHtml(h.render(a),d));h.element.setStyles({display:"none",position:"absolute"})}return h}var e={};CKEDITOR.ui.floatPanel=
CKEDITOR.tools.createClass({$:function(b,d,g,e){function i(){f.hide()}g.forceIFrame=1;g.toolbarRelated&&b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(d=CKEDITOR.document.getById("cke_"+b.name));var h=d.getDocument(),e=a(b,h,d,g,e||0),k=e.element,c=k.getFirst(),f=this;k.disableContextMenu();this.element=k;this._={editor:b,panel:e,parentElement:d,definition:g,document:h,iframe:c,children:[],dir:b.lang.dir,showBlockParams:null};b.on("mode",i);b.on("resize",i);h.getWindow().on("resize",function(){this.reposition()},
this)},proto:{addBlock:function(a,d){return this._.panel.addBlock(a,d)},addListBlock:function(a,d){return this._.panel.addListBlock(a,d)},getBlock:function(a){return this._.panel.getBlock(a)},showBlock:function(a,d,g,e,i,h){var k=this._.panel,c=k.showBlock(a);this._.showBlockParams=[].slice.call(arguments);this.allowBlur(false);var f=this._.editor.editable();this._.returnFocus=f.hasFocus?f:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);this._.hideTimeout=0;var j=this.element,f=this._.iframe,
f=CKEDITOR.env.ie&&!CKEDITOR.env.edge?f:new CKEDITOR.dom.window(f.$.contentWindow),t=j.getDocument(),n=this._.parentElement.getPositionedAncestor(),m=d.getDocumentPosition(t),t=n?n.getDocumentPosition(t):{x:0,y:0},r=this._.dir=="rtl",p=m.x+(e||0)-t.x,s=m.y+(i||0)-t.y;if(r&&(g==1||g==4))p=p+d.$.offsetWidth;else if(!r&&(g==2||g==3))p=p+(d.$.offsetWidth-1);if(g==3||g==4)s=s+(d.$.offsetHeight-1);this._.panel._.offsetParentId=d.getId();j.setStyles({top:s+"px",left:0,display:""});j.setOpacity(0);j.getFirst().removeStyle("width");
this._.editor.focusManager.add(f);if(!this._.blurSet){CKEDITOR.event.useCapture=true;f.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);f.on("focus",function(){this._.focused=true;this.hideChild();this.allowBlur(true)},this);if(CKEDITOR.env.iOS){f.on("touchstart",
function(){clearTimeout(this._.hideTimeout)},this);f.on("touchend",function(){this._.hideTimeout=0;this.focus()},this)}CKEDITOR.event.useCapture=false;this._.blurSet=1}k.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(){var a=j;a.removeStyle("width");if(c.autoSize){var b=c.element.getDocument(),b=(CKEDITOR.env.webkit?c.element:b.getBody()).$.scrollWidth;CKEDITOR.env.ie&&
(CKEDITOR.env.quirks&&b>0)&&(b=b+((a.$.offsetWidth||0)-(a.$.clientWidth||0)+3));a.setStyle("width",b+10+"px");b=c.element.$.scrollHeight;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&b>0)&&(b=b+((a.$.offsetHeight||0)-(a.$.clientHeight||0)+3));a.setStyle("height",b+"px");k._.currentBlock.element.setStyle("display","none").removeStyle("display")}else a.removeStyle("height");r&&(p=p-j.$.offsetWidth);j.setStyle("left",p+"px");var b=k.element.getWindow(),a=j.$.getBoundingClientRect(),b=b.getViewPaneSize(),f=
a.width||a.right-a.left,d=a.height||a.bottom-a.top,g=r?a.right:b.width-a.left,e=r?b.width-a.right:a.left;r?g<f&&(p=e>f?p+f:b.width>f?p-a.left:p-a.right+b.width):g<f&&(p=e>f?p-f:b.width>f?p-a.right+b.width:p-a.left);f=a.top;b.height-a.top<d&&(s=f>d?s-d:b.height>d?s-a.bottom+b.height:s-a.top);if(CKEDITOR.env.ie){b=a=new CKEDITOR.dom.element(j.$.offsetParent);b.getName()=="html"&&(b=b.getDocument().getBody());b.getComputedStyle("direction")=="rtl"&&(p=CKEDITOR.env.ie8Compat?p-j.getDocument().getDocumentElement().$.scrollLeft*
2:p-(a.$.scrollWidth-a.$.clientWidth))}var a=j.getFirst(),i;(i=a.getCustomData("activePanel"))&&i.onHide&&i.onHide.call(this,1);a.setCustomData("activePanel",this);j.setStyles({top:s+"px",left:p+"px"});j.setOpacity(1);h&&h()},this);k.isLoaded?a():k.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)},reposition:function(){var a=this._.showBlockParams;if(this.visible&&this._.showBlockParams){this.hide();this.showBlock.apply(this,a)}},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._.showBlockParams=null;this._.editor.fire("panelHide",this)}},allowBlur:function(a){var d=
this._.panel;if(a!==void 0)d.allowBlur=a;return d.allowBlur},showAsChild:function(a,d,g,e,i,h){if(!(this._.activeChild==a&&a._.panel._.offsetParentId==g.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(d,g,e,i,h);this.blur();(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){a.element.getChild(0).$.style.cssText+=""},100)}},hideChild:function(a){var d=
this._.activeChild;if(d){delete d.onHide;delete this._.activeChild;d.hide();a&&this.focus()}}}});CKEDITOR.on("instanceDestroyed",function(){var a=CKEDITOR.tools.isEmpty(CKEDITOR.instances),d;for(d in e){var g=e[d];a?g.destroy():g.element.hide()}a&&(e={})})}(),CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(a){function e(d,e,k,c){var f=new CKEDITOR.style(g["colorButton_"+e+"Style"]),j=CKEDITOR.tools.getNextId()+"_colorBox";a.ui.add(d,CKEDITOR.UI_PANELBUTTON,{label:k,
title:k,modes:{wysiwyg:1},editorFocus:0,toolbar:"colors,"+c,allowedContent:f,requiredContent:f,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":l.panelTitle}},onBlock:function(c,f){f.autoSize=true;f.element.addClass("cke_colorblock");f.element.setHtml(b(c,e,j));f.element.getDocument().getBody().setStyle("overflow","hidden");CKEDITOR.ui.fire("ready",this);var d=f.keys,g=a.lang.dir=="rtl";d[g?37:39]="next";d[40]="next";d[9]="next";d[g?39:37]="prev";d[38]="prev";d[CKEDITOR.SHIFT+
9]="prev";d[32]="click"},refresh:function(){a.activeFilter.check(f)||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(e=="back"?"background-color":"color")||"transparent";while(e=="back"&&c=="transparent"&&b&&(b=b.getParent()));if(!c||c=="transparent")c="#ffffff";this._.panel._.iframe.getFrameDocument().getById(j).setStyle("background-color",
c);return c}}})}function b(b,e,k){var c=[],f=g.colorButton_colors.split(","),j=a.plugins.colordialog&&g.colorButton_enableMore!==false,t=f.length+(j?2:1),n=CKEDITOR.tools.addFunction(function(c,f){function e(a){this.removeListener("ok",e);this.removeListener("cancel",e);a.name=="ok"&&h(this.getContentElement("picker","selectedColor").getValue(),f)}var h=arguments.callee;if(c=="?")a.openDialog("colordialog",function(){this.on("ok",e);this.on("cancel",e)});else{a.focus();b.hide();a.fire("saveSnapshot");
a.removeStyle(new CKEDITOR.style(g["colorButton_"+f+"Style"],{color:"inherit"}));if(c){var j=g["colorButton_"+f+"Style"];j.childRule=f=="back"?function(a){return d(a)}:function(a){return!(a.is("a")||a.getElementsByTag("a").count())||d(a)};a.applyStyle(new CKEDITOR.style(j,{color:c}))}a.fire("saveSnapshot")}});c.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',l.auto,'" onclick="CKEDITOR.tools.callFunction(',n,",null,'",e,"');return false;\" href=\"javascript:void('",l.auto,'\')" role="option" aria-posinset="1" aria-setsize="',
t,'"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" id="',k,'"></span></td><td colspan=7 align=center>',l.auto,'</td></tr></table></a><table role="presentation" cellspacing=0 cellpadding=0 width="100%">');for(k=0;k<f.length;k++){k%8===0&&c.push("</tr><tr>");var m=f[k].split("/"),r=m[0],p=m[1]||r;m[1]||(r="#"+r.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(',n,",'",r,"','",e,"'); return false;\" href=\"javascript:void('",m,'\')" role="option" aria-posinset="',k+2,'" aria-setsize="',t,'"><span class="cke_colorbox" style="background-color:#',p,'"></span></a></td>')}j&&c.push('</tr><tr><td colspan=8 align=center><a class="cke_colormore" _cke_focus=1 hidefocus=true title="',l.more,'" onclick="CKEDITOR.tools.callFunction(',n,",'?','",e,"');return false;\" href=\"javascript:void('",l.more,"')\"",' role="option" aria-posinset="',
t,'" aria-setsize="',t,'">',l.more,"</a></td>");c.push("</tr></table>");return c.join("")}function d(a){return a.getAttribute("contentEditable")=="false"||a.getAttribute("data-nostyle")}var g=a.config,l=a.lang.colorbutton;if(!CKEDITOR.env.hc){e("TextColor","fore",l.textColorTitle,10);e("BGColor","back",l.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.add("divarea",{afterInit:function(a){a.addMode("wysiwyg",function(e){var b=CKEDITOR.dom.element.createFromHtml('<div class="cke_wysiwyg_div cke_reset cke_enable_context_menu" hidefocus="true"></div>');a.ui.space("contents").append(b);b=a.editable(b);b.detach=
CKEDITOR.tools.override(b.detach,function(a){return function(){a.apply(this,arguments);this.remove()}});a.setData(a.getData(1),e);a.fire("contentDom")})}}),function(){var a;function e(d,e){function h(a){a=j.list[a];if(a.equals(d.editable())||a.getAttribute("contenteditable")=="true"){var b=d.createRange();b.selectNodeContents(a);b.select()}else d.getSelection().selectElement(a);d.focus()}function k(){f&&f.setHtml(b);delete j.list}var c=d.ui.spaceId("path"),f,j=d._.elementsPath,t=j.idBase;e.html=e.html+
('<span id="'+c+'_label" class="cke_voice_label">'+d.lang.elementspath.eleLabel+'</span><span id="'+c+'" class="cke_path" role="group" aria-labelledby="'+c+'_label">'+b+"</span>");d.on("uiReady",function(){var a=d.ui.space("path");a&&d.focusManager.add(a,1)});j.onClick=h;var n=CKEDITOR.tools.addFunction(h),m=CKEDITOR.tools.addFunction(function(a,b){var c=j.idBase,f,b=new CKEDITOR.dom.event(b);f=d.lang.dir=="rtl";switch(b.getKeystroke()){case f?39:37:case 9:(f=CKEDITOR.document.getById(c+(a+1)))||
(f=CKEDITOR.document.getById(c+"0"));f.focus();return false;case f?37:39:case CKEDITOR.SHIFT+9:(f=CKEDITOR.document.getById(c+(a-1)))||(f=CKEDITOR.document.getById(c+(j.list.length-1)));f.focus();return false;case 27:d.focus();return false;case 13:case 32:h(a);return false}return true});d.on("selectionChange",function(){for(var a=[],e=j.list=[],h=[],i=j.filters,k=true,q=d.elementPath().elements,y,w=q.length;w--;){var o=q[w],z=0;y=o.data("cke-display-name")?o.data("cke-display-name"):o.data("cke-real-element-type")?
o.data("cke-real-element-type"):o.getName();k=o.hasAttribute("contenteditable")?o.getAttribute("contenteditable")=="true":k;!k&&!o.hasAttribute("contenteditable")&&(z=1);for(var x=0;x<i.length;x++){var C=i[x](o,y);if(C===false){z=1;break}y=C||y}if(!z){e.unshift(o);h.unshift(y)}}e=e.length;for(i=0;i<e;i++){y=h[i];k=d.lang.elementspath.eleTitle.replace(/%1/,y);y=g.output({id:t+i,label:k,text:y,jsTitle:"javascript:void('"+y+"')",index:i,keyDownFn:m,clickFn:n});a.unshift(y)}f||(f=CKEDITOR.document.getById(c));
h=f;h.setHtml(a.join("")+b);d.fire("elementsPathUpdate",{space:h})});d.on("readOnly",k);d.on("contentDomUnload",k);d.addCommand("elementsPathFocus",a);d.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}a={editorFocus:false,readOnly:1,exec:function(a){(a=CKEDITOR.document.getById(a._.elementsPath.idBase+"0"))&&a.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}};var b='<span class="cke_path_empty">&nbsp;</span>',d="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(d=d+' onkeypress="return false;"');CKEDITOR.env.gecko&&
(d=d+' onblur="this.style.cssText = this.style.cssText;"');var g=CKEDITOR.addTemplate("pathItem",'<a id="{id}" href="{jsTitle}" tabindex="-1" class="cke_path_item" title="{label}"'+d+' hidefocus="true"  onkeydown="return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick="CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role="button" aria-label="{label}">{text}</a>');CKEDITOR.plugins.add("elementspath",{init:function(a){a._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+
"_",filters:[]};a.on("uiSpace",function(b){b.data.space=="bottom"&&e(a,b.data)})}})}(),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):h(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 d=CKEDITOR.dom.walker.whitespaces(),
g=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(a,f,h,l){if(h=h||e(a)){var h=b(h),n=h.document,m=h.checkStartOfBlock(),r=h.checkEndOfBlock(),p=a.elementPath(h.startContainer),s=p.block,v=f==CKEDITOR.ENTER_DIV?"div":"p",u;if(m&&r){if(s&&(s.is("li")||s.getParent().is("li"))){s.is("li")||(s=s.getParent());h=s.getParent();u=h.getParent();var l=!s.hasPrevious(),q=!s.hasNext(),v=a.getSelection(),y=v.createBookmarks(),m=s.getDirection(1),r=s.getAttribute("class"),w=s.getAttribute("style"),
o=u.getDirection(1)!=m,a=a.enterMode!=CKEDITOR.ENTER_BR||o||w||r;if(u.is("li"))if(l||q){l&&q&&h.remove();s[q?"insertAfter":"insertBefore"](u)}else s.breakParent(u);else{if(a){if(p.block.is("li")){u=n.createElement(f==CKEDITOR.ENTER_P?"p":"div");o&&u.setAttribute("dir",m);w&&u.setAttribute("style",w);r&&u.setAttribute("class",r);s.moveChildren(u)}else u=p.block;if(l||q)u[l?"insertBefore":"insertAfter"](h);else{s.breakParent(h);u.insertAfter(h)}}else{s.appendBogus(true);if(l||q)for(;n=s[l?"getFirst":
"getLast"]();)n[l?"insertBefore":"insertAfter"](h);else for(s.breakParent(h);n=s.getLast();)n.insertAfter(h)}s.remove()}v.selectBookmarks(y);return}if(s&&s.getParent().is("blockquote")){s.breakParent(s.getParent());s.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||s.getPrevious().remove();s.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||s.getNext().remove();h.moveToElementEditStart(s);h.select();return}}else if(s&&s.is("pre")&&!r){i(a,f,h,l);return}if(m=h.splitBlock(v)){f=m.previousBlock;
s=m.nextBlock;p=m.wasStartOfBlock;a=m.wasEndOfBlock;if(s){y=s.getParent();if(y.is("li")){s.breakParent(y);s.move(s.getNext(),1)}}else if(f&&(y=f.getParent())&&y.is("li")){f.breakParent(y);y=f.getNext();h.moveToElementEditStart(y);f.move(f.getPrevious())}if(!p&&!a){if(s.is("li")){u=h.clone();u.selectNodeContents(s);u=new CKEDITOR.dom.walker(u);u.evaluator=function(a){return!(g(a)||d(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in CKEDITOR.dtd.$inline&&!(a.getName()in CKEDITOR.dtd.$empty))};(y=u.next())&&
(y.type==CKEDITOR.NODE_ELEMENT&&y.is("ul","ol"))&&(CKEDITOR.env.needsBrFiller?n.createElement("br"):n.createText(" ")).insertBefore(y)}s&&h.moveToElementEditStart(s)}else{if(f){if(f.is("li")||!k.test(f.getName())&&!f.is("pre"))u=f.clone()}else s&&(u=s.clone());if(u)l&&!u.is("li")&&u.renameNode(v);else if(y&&y.is("li"))u=y;else{u=n.createElement(v);f&&(q=f.getDirection())&&u.setAttribute("dir",q)}if(n=m.elementPath){l=0;for(v=n.elements.length;l<v;l++){y=n.elements[l];if(y.equals(n.block)||y.equals(n.blockLimit))break;
if(CKEDITOR.dtd.$removeEmpty[y.getName()]){y=y.clone();u.moveChildren(y);u.append(y)}}}u.appendBogus();u.getParent()||h.insertNode(u);u.is("li")&&u.removeAttribute("value");if(CKEDITOR.env.ie&&p&&(!a||!f.getChildCount())){h.moveToElementEditStart(a?f:u);h.select()}h.moveToElementEditStart(p&&!a?s:u)}h.select();h.scrollIntoView()}}},enterBr:function(a,b,d,g){if(d=d||e(a)){var i=d.document,l=d.checkEndOfBlock(),r=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),p=r.block,s=p&&r.block.getName();
if(!g&&s=="li")h(a,b,d,g);else{if(!g&&l&&k.test(s))if(l=p.getDirection()){i=i.createElement("div");i.setAttribute("dir",l);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=s=="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);
l&&(p||r.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 l=CKEDITOR.plugins.enterkey,i=l.enterBr,h=l.enterBlock,k=/^h[1-6]$/}(),function(){function a(a,b){var d={},g=[],l={nbsp:" ",shy:"­",gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},a=a.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(a,f){var e=b?"&"+f+";":l[f];d[e]=b?l[f]:"&"+
f+";";g.push(e);return""});if(!b&&a){var a=a.split(","),i=document.createElement("div"),h;i.innerHTML="&"+a.join(";&")+";";h=i.innerHTML;i=null;for(i=0;i<h.length;i++){var k=h.charAt(i);d[k]="&"+a[i]+";";g.push(k)}}d.regex=g.join(b?"|":"");return d}CKEDITOR.plugins.add("entities",{afterInit:function(e){function b(a){return k[a]}function d(a){return g.entities_processNumerical=="force"||!i[a]?"&#"+a.charCodeAt(0)+";":i[a]}var g=e.config;if(e=(e=e.dataProcessor)&&e.htmlFilter){var l=[];g.basicEntities!==
false&&l.push("nbsp,gt,lt,amp");if(g.entities){l.length&&l.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");
g.entities_latin&&l.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");g.entities_greek&&l.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");
g.entities_additional&&l.push(g.entities_additional)}var i=a(l.join(",")),h=i.regex?"["+i.regex+"]":"a^";delete i.regex;g.entities&&g.entities_processNumerical&&(h="[^ -~]|"+h);var h=RegExp(h,"g"),k=a("nbsp,gt,lt,amp,shy",true),c=RegExp(k.regex,"g");e.addRules({text:function(a){return a.replace(c,b).replace(h,d)}},{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",function(){function a(a){var g=a.config,l=a.fire("uiSpace",{space:"top",html:""}).html,i=function(){function c(a,d,f){k.setStyle(d,b(f));k.setStyle("position",a)}function f(a){var b=l.getDocumentPosition();switch(a){case "top":c("absolute","top",b.y-v-y);break;case "pin":c("fixed","top",o);break;case "bottom":c("absolute","top",b.y+(p.height||p.bottom-p.top)+y)}h=a}var h,l,r,p,s,v,u,q=g.floatSpaceDockedOffsetX||0,y=g.floatSpaceDockedOffsetY||0,w=g.floatSpacePinnedOffsetX||0,o=g.floatSpacePinnedOffsetY||
0;return function(c){if(l=a.editable()){var j=c&&c.name=="focus";j&&k.show();a.fire("floatingSpaceLayout",{show:j});k.removeStyle("left");k.removeStyle("right");r=k.getClientRect();p=l.getClientRect();s=e.getViewPaneSize();v=r.height;u="pageXOffset"in e.$?e.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft;if(h){v+y<=p.top?f("top"):v+y>s.height-p.bottom?f("pin"):f("bottom");c=s.width/2;c=g.floatSpacePreferRight?"right":p.left>0&&p.right<s.width&&p.width>r.width?g.contentsLangDirection==
"rtl"?"right":"left":c-p.left>p.right-c?"left":"right";if(r.width>s.width){c="left";j=0}else{j=c=="left"?p.left>0?p.left:0:p.right<s.width?s.width-p.right:0;if(j+r.width>s.width){c=c=="left"?"right":"left";j=0}}k.setStyle(c,b((h=="pin"?w:q)+j+(h=="pin"?0:c=="left"?u:-u)))}else{h="pin";f("pin");i(c)}}}}();if(l){var h=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>'),k=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(h.output({content:l,id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+
(g.baseFloatZIndex-1),topId:a.ui.spaceId("top"),voiceLabel:a.title}))),c=CKEDITOR.tools.eventsBuffer(500,i),f=CKEDITOR.tools.eventsBuffer(100,i);k.unselectable();k.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",f.input);e.on("resize",f.input)});a.on("blur",function(){k.hide();a.removeListener("change",c.input);e.removeListener("scroll",f.input);e.removeListener("resize",f.input)});a.on("destroy",
function(){e.removeListener("scroll",f.input);e.removeListener("resize",f.input);k.clearCustomData();k.remove()});a.focusManager.hasFocus&&k.show();a.focusManager.add(k,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>'),d=/\'/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||{},d=b.attributes||(b.attributes={});(this.multiSelect=!!b.multiSelect)&&(d["aria-multiselectable"]=true);!d.role&&(d.role="listbox");this.base.apply(this,arguments);this.element.setAttribute("role",d.role);d=this.keys;d[40]="next";d[9]="next";d[38]="prev";d[CKEDITOR.SHIFT+9]="prev";d[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(d[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 h=CKEDITOR.tools.getNextId();if(!this._.started){this._.started=
1;this._.size=this._.size||0}this._.items[a]=h;var k;k=CKEDITOR.tools.htmlEncodeAttr(a).replace(d,"\\'");a={id:h,val:k,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 d=CKEDITOR.tools.getNextId();this._.groups[a]=d;this._.pendingHtml.push(b.output({id:d,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,d=this.element.getDocument(),e;for(e in a)d.getById(a[e]).setStyle("display",
"");for(var k in b){a=d.getById(b[k]);e=a.getNext();a.setStyle("display","");e&&e.getName()=="ul"&&e.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],d=b.getById(a);d.removeClass("cke_selected");b.getById(a+
"_option").removeAttribute("aria-selected");this.onUnmark&&this.onUnmark(d)},unmarkAll:function(){var a=this._.items,b=this.element.getDocument(),d;for(d in a){var e=a[d];b.getById(e).removeClass("cke_selected");b.getById(e+"_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"),d,e=-1;if(a)for(d=
this.element.getDocument().getById(this._.items[a]).getFirst();a=b.getItem(++e);){if(a.equals(d)){this._.focusIndex=e;break}}else this.element.focus();d&&setTimeout(function(){d.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 d=[];this.render(a,d);return d.join("")},render:function(a,d){function g(){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 l=CKEDITOR.env,i="cke_"+this.id,h=CKEDITOR.tools.addFunction(function(d){if(t){a.unlockSelection(1);t=0}c.execute(d)},this),k=this,c={id:i,combo:this,focus:function(){CKEDITOR.document.getById(i).getChild(1).focus()},execute:function(c){var d=k._;if(d.state!=CKEDITOR.TRISTATE_DISABLED){k.createPanel(a);if(d.on)d.panel.hide();
else{k.commit();var f=k.getValue();f?d.list.mark(f):d.list.unmarkAll();d.panel.showBlock(k.id,new CKEDITOR.dom.element(c),4)}}},clickFn:h};a.on("activeFilterChange",g,this);a.on("mode",g,this);a.on("selectionChange",g,this);!this.readOnly&&a.on("readOnly",g,this);var f=CKEDITOR.tools.addFunction(function(d,f){var d=new CKEDITOR.dom.event(d),e=d.getKeystroke();if(e==40)a.once("panelShow",function(a){a.data._.panel._.currentBlock.onKeyDown(40)});switch(e){case 13:case 32:case 40:CKEDITOR.tools.callFunction(h,
f);break;default:c.onkey(c,e)}d.preventDefault()}),j=CKEDITOR.tools.addFunction(function(){c.onfocus&&c.onfocus()}),t=0;c.keyDownFn=f;l={id:i,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:l.gecko&&!l.hc?"":(this.title||"").replace("'",""),keydownFn:f,focusFn:j,clickFn:h};e.output(l,d);if(this.onRender)this.onRender();return c},createPanel:function(a){if(!this._.panel){var d=this._.panelDefinition,e=this._.panelDefinition.block,l=d.parent||CKEDITOR.document.getBody(),
i="cke_combopanel__"+this.name,h=new CKEDITOR.ui.floatPanel(a,l,d),k=h.addListBlock(this.id,e),c=this;h.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(){k.focus(!k.multiSelect&&c.getValue())})};h.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()};
h.onEscape=function(){h.hide(1)};k.onClick=function(a,b){c.onClick&&c.onClick.call(c,a,b);h.hide()};this._.panel=h;this._.list=k;h.getBlock(this.id).onHide=function(){c._.on=0;c.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,d){this._.value=a;var e=this.document.getById("cke_"+this.id+"_text");if(e){if(!a&&!d){d=this.label;e.addClass("cke_combo_inlinelabel")}else e.removeClass("cke_combo_inlinelabel");e.setText(typeof d!="undefined"?d: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,d,e){this._.items[a]=e||a;this._.list.add(a,d,e)},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 d=this.document.getById("cke_"+this.id);d.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED?d.setAttribute("aria-disabled",true):d.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,d){this.add(a,CKEDITOR.UI_RICHCOMBO,d)}}(),function(){function a(a,d,g,l,i,h,k,c){for(var f=a.config,j=new CKEDITOR.style(k),t=i.split(";"),i=[],n={},m=0;m<t.length;m++){var r=t[m];if(r){var r=r.split("/"),p={},s=t[m]=r[0];p[g]=i[m]=r[1]||s;n[s]=new CKEDITOR.style(k,p);n[s]._.definition.name=s}else t.splice(m--,1)}a.ui.addRichCombo(d,{label:l.label,title:l.panelTitle,toolbar:"styles,"+c,allowedContent:j,requiredContent:j,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(f.contentsCss),
multiSelect:false,attributes:{"aria-label":l.panelTitle}},init:function(){this.startGroup(l.panelTitle);for(var a=0;a<t.length;a++){var b=t[a];this.add(b,n[b].buildPreview(),b)}},onClick:function(c){a.focus();a.fire("saveSnapshot");var d=this.getValue(),f=n[c];if(d&&c!=d){var g=n[d],h=a.getSelection().getRanges()[0];if(h.collapsed){var j=a.elementPath(),i=j.contains(function(a){return g.checkElementRemovable(a)});if(i){var k=h.checkBoundaryOfElement(i,CKEDITOR.START),l=h.checkBoundaryOfElement(i,
CKEDITOR.END);if(k&&l){for(k=h.createBookmark();j=i.getFirst();)j.insertBefore(i);i.remove();h.moveToBookmark(k)}else if(k)h.moveToPosition(i,CKEDITOR.POSITION_BEFORE_START);else if(l)h.moveToPosition(i,CKEDITOR.POSITION_AFTER_END);else{h.splitElement(i);h.moveToPosition(i,CKEDITOR.POSITION_AFTER_END);e(h,j.elements.slice(),i)}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,f=0,e;f<c.length;f++){e=c[f];for(var g in n)if(n[g].checkElementMatch(e,true,a)){g!=d&&this.setValue(g);return}}this.setValue("",h)},this)},refresh:function(){a.activeFilter.check(j)||this.setState(CKEDITOR.TRISTATE_DISABLED)}})}function e(a,d,g){var l=d.pop();if(l){if(g)return e(a,d,l.equals(g)?null:g);g=l.clone();a.insertNode(g);a.moveToPosition(g,CKEDITOR.POSITION_AFTER_START);e(a,d)}}CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(b){var d=
b.config;a(b,"Font","family",b.lang.font,d.font_names,d.font_defaultLabel,d.font_style,30);a(b,"FontSize","size",b.lang.font.fontSize,d.fontSize_sizes,d.fontSize_defaultLabel,d.fontSize_style,40)}})}(),CKEDITOR.config.font_names="Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif",
CKEDITOR.config.font_defaultLabel="",CKEDITOR.config.font_style={element:"span",styles:{"font-family":"#(family)"},overrides:[{element:"font",attributes:{face:null}}]},CKEDITOR.config.fontSize_sizes="8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px",CKEDITOR.config.fontSize_defaultLabel="",CKEDITOR.config.fontSize_style={element:"span",styles:{"font-size":"#(size)"},overrides:[{element:"font",attributes:{size:null}}]},CKEDITOR.plugins.add("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(){function a(a,g){var l,i;g.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)},g,null,100);g.on("exec",function(b){l=a.getSelection();i=l.createBookmarks(1);if(!b.data)b.data={};b.data.done=false},g,null,0);g.on("exec",function(){a.forceNextSelectionCheck();
l.selectBookmarks(i)},g,null,100)}var e=CKEDITOR.TRISTATE_DISABLED,b=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(b){var e=CKEDITOR.plugins.indent.genericDefinition;a(b,b.addCommand("indent",new e(true)));a(b,b.addCommand("outdent",new e));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 e=b.createRange(),g=a.data.node;e.setStartBefore(g);e.setEndAfter(g);for(var k=new CKEDITOR.dom.walker(e),c;c=k.next();)if(c.type==CKEDITOR.NODE_ELEMENT)if(!c.equals(g)&&c.getDirection()){e.setStartAfter(c);k=new CKEDITOR.dom.walker(e)}else{var f=b.config.indentClasses;if(f)for(var j=a.data.dir=="ltr"?["_rtl",""]:["","_rtl"],t=0;t<f.length;t++)if(c.hasClass(f[t]+j[0])){c.removeClass(f[t]+j[0]);c.addClass(f[t]+j[1])}f=c.getStyle("margin-right");j=c.getStyle("margin-left");f?c.setStyle("margin-left",
f):c.removeStyle("margin-left");j?c.setStyle("margin-right",j):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 l=this.jobs[b];if(l.state!=e)return l.exec.call(this,a)},refreshJob:function(a,b,l){b=this.jobs[b];b.state=a.activeFilter.checkFeature(this)?b.refresh.call(this,a,l):e;return b.state},getContext:function(a){return a.contains(this.context)}}}(),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),g=c.config.indentOffset||40;isNaN(d)&&(d=0);d=d+(f?1:-1)*g;if(d<0)return;d=Math.max(d,0);d=Math.ceil(d/g)*g;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,d=CKEDITOR.dtd.$list,g=CKEDITOR.TRISTATE_DISABLED,l=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(i){function h(){k.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,d){var h=d.block||d.blockLimit;if(!h.is(b))var i=h.getAscendant(b),h=i&&d.contains(i)||h;h.is(b)&&(h=h.getParent());if(!this.enterBr&&!this.getContext(d))return g;if(c){var i=c,h=h.$.className.match(this.classNameRegex),k=this.isIndent,i=h?k?h[1]!=i.slice(-1):true:k;return i?l:g}return this.isIndent?l:h?CKEDITOR[(parseInt(h.getStyle(e(h)),10)||0)<=0?"TRISTATE_DISABLED":"TRISTATE_OFF"]:g},exec:function(b){var e=b.getSelection(),e=e&&
e.getRanges()[0],g;if(g=b.elementPath().contains(d))a.call(this,g,c);else{e=e.createIterator();b=b.config.enterMode;e.enforceRealBlocks=true;for(e.enlargeBr=b!=CKEDITOR.ENTER_BR;g=e.getNextParagraph(b==CKEDITOR.ENTER_P?"p":"div");)g.isReadOnly()||a.call(this,g,c)}return true}}}}var k=CKEDITOR.plugins.indent,c=i.config.indentClasses;k.registerCommands(i,{indentblock:new h(i,"indentblock",true),outdentblock:new h(i,"outdentblock")});CKEDITOR.tools.extend(h.prototype,k.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){function d(e){for(var i=l.startContainer,k=l.endContainer;i&&!i.getParent().equals(e);)i=i.getParent();for(;k&&!k.getParent().equals(e);)k=k.getParent();if(!i||!k)return false;for(var m=i,i=[],r=false;!r;){m.equals(k)&&(r=true);i.push(m);m=m.getNext()}if(i.length<1)return false;m=e.getParents(true);for(k=0;k<m.length;k++)if(m[k].getName&&
g[m[k].getName()]){e=m[k];break}for(var m=c.isIndent?1:-1,k=i[0],i=i[i.length-1],r=CKEDITOR.plugins.list.listToArray(e,f),t=r[i.getCustomData("listarray_index")].indent,k=k.getCustomData("listarray_index");k<=i.getCustomData("listarray_index");k++){r[k].indent=r[k].indent+m;if(m>0){var w=r[k].parent;r[k].parent=new CKEDITOR.dom.element(w.getName(),w.getDocument())}}for(k=i.getCustomData("listarray_index")+1;k<r.length&&r[k].indent>t;k++)r[k].indent=r[k].indent+m;i=CKEDITOR.plugins.list.arrayToList(r,
f,null,a.config.enterMode,e.getDirection());if(!c.isIndent){var o;if((o=e.getParent())&&o.is("li"))for(var m=i.listNode.getChildren(),z=[],x,k=m.count()-1;k>=0;k--)(x=m.getItem(k))&&(x.is&&x.is("li"))&&z.push(x)}i&&i.listNode.replace(e);if(z&&z.length)for(k=0;k<z.length;k++){for(x=e=z[k];(x=x.getNext())&&x.is&&x.getName()in g;){CKEDITOR.env.needsNbspFiller&&!e.getFirst(b)&&e.append(l.document.createText(" "));e.append(x)}e.insertAfter(o)}i&&a.fire("contentDomInvalidated");return true}for(var c=this,
f=this.database,g=this.context,i=a.getSelection(),i=(i&&i.getRanges()).createIterator(),l;l=i.getNextRange();){for(var m=l.getCommonAncestor();m&&!(m.type==CKEDITOR.NODE_ELEMENT&&g[m.getName()]);){if(a.editable().equals(m)){m=false;break}m=m.getParent()}m||(m=l.startPath().contains(g))&&l.setEndAt(m,CKEDITOR.POSITION_BEFORE_END);if(!m){var r=l.getEnclosedNode();if(r&&r.type==CKEDITOR.NODE_ELEMENT&&r.getName()in g){l.setStartAt(r,CKEDITOR.POSITION_AFTER_START);l.setEndAt(r,CKEDITOR.POSITION_BEFORE_END);
m=r}}if(m&&l.startContainer.type==CKEDITOR.NODE_ELEMENT&&l.startContainer.getName()in g){r=new CKEDITOR.dom.walker(l);r.evaluator=e;l.startContainer=r.next()}if(m&&l.endContainer.type==CKEDITOR.NODE_ELEMENT&&l.endContainer.getName()in g){r=new CKEDITOR.dom.walker(l);r.evaluator=e;l.endContainer=r.previous()}if(m)return d(m)}return 0}function e(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}function b(a){return d(a)&&g(a)}var d=CKEDITOR.dom.walker.whitespaces(true),g=CKEDITOR.dom.walker.bookmark(false,
true),l=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?l:i}:function(a,b){return!this.getContext(b)||this.isIndent?l: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){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),h;h=i.next();)if(h.type==CKEDITOR.NODE_ELEMENT)if(!h.equals(a.data.node)&&h.getDirection()){e.setStartAfter(h);
i=new CKEDITOR.dom.walker(e)}else{var k=b.config.justifyClasses;if(k)if(h.hasClass(k[0])){h.removeClass(k[0]);h.addClass(k[2])}else if(h.hasClass(k[2])){h.removeClass(k[2]);h.addClass(k[0])}k=h.getStyle("text-align");k=="left"?h.setStyle("text-align","right"):k=="right"&&h.setStyle("text-align","left")}}e.prototype={exec:function(b){var e=b.getSelection(),l=b.config.enterMode;if(e){for(var i=e.createBookmarks(),h=e.getRanges(),k=this.cssClassName,c,f,j=b.config.useComputedState,j=j===void 0||j,t=
h.length-1;t>=0;t--){c=h[t].createIterator();for(c.enlargeBr=l!=CKEDITOR.ENTER_BR;f=c.getNextParagraph(l==CKEDITOR.ENTER_P?"p":"div");)if(!f.isReadOnly()){f.removeAttribute("align");f.removeStyle("text-align");var n=k&&(f.$.className=CKEDITOR.tools.ltrim(f.$.className.replace(this.cssClassRegex,""))),m=this.state==CKEDITOR.TRISTATE_OFF&&(!j||a(f,true)!=this.value);k?m?f.addClass(k):n||f.removeAttribute("class"):m&&f.setStyle("text-align",this.value)}}b.focus();b.forceNextSelectionCheck();e.selectBookmarks(i)}},
refresh:function(b,e){var l=e.block||e.blockLimit;this.setState(l.getName()!="body"&&a(l,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("justify",{init:function(a){if(!a.blockless){var g=new e(a,"justifyleft","left"),l=new e(a,"justifycenter","center"),i=new e(a,"justifyright","right"),h=new e(a,"justifyblock","justify");a.addCommand("justifyleft",g);a.addCommand("justifycenter",l);a.addCommand("justifyright",i);a.addCommand("justifyblock",
h);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)}}})}(),function(){function a(a,b,c){function d(c){if((i=
j[c?"getFirst":"getLast"]())&&(!i.is||!i.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"](i)}for(var f=CKEDITOR.plugins.list.listToArray(b.root,c),e=[],g=0;g<b.contents.length;g++){var h=b.contents[g];if((h=h.getAscendant("li",true))&&!h.getCustomData("list_item_processed")){e.push(h);CKEDITOR.dom.element.setMarker(c,h,"list_item_processed",true)}}h=null;
for(g=0;g<e.length;g++){h=e[g].getCustomData("listarray_index");f[h].indent=-1}for(g=h+1;g<f.length;g++)if(f[g].indent>f[g-1].indent+1){e=f[g-1].indent+1-f[g].indent;for(h=f[g].indent;f[g]&&f[g].indent>=h;){f[g].indent=f[g].indent+e;g++}g--}var j=CKEDITOR.plugins.list.arrayToList(f,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,i,k;d(true);d();j.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 f,e;f=a[d?"getLast":"getFirst"](n);){(e=f.getDirection(1))!==b.getDirection(1)&&f.setAttribute("dir",e);f.remove();c?f[d?"insertBefore":"insertAfter"](c):b.append(f,d)}}function d(a){function c(d){var e=a[d?"getPrevious":"getNext"](f);if(e&&e.type==CKEDITOR.NODE_ELEMENT&&e.is(a.getName())){b(a,e,null,!d);a.remove();a=e}}c();c(1)}function g(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}
function l(a,c,e){a.fire("saveSnapshot");e.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var g=e.extractContents();c.trim(false,true);var h=c.createBookmark(),k=new CKEDITOR.dom.elementPath(c.startContainer),l=k.block,k=k.lastElement.getAscendant("li",1)||l,n=new CKEDITOR.dom.elementPath(e.startContainer),t=n.contains(CKEDITOR.dtd.$listItem),n=n.contains(CKEDITOR.dtd.$list);if(l)(l=l.getBogus())&&l.remove();else if(n)(l=n.getPrevious(f))&&j(l)&&l.remove();(l=g.getLast())&&(l.type==CKEDITOR.NODE_ELEMENT&&
l.is("br"))&&l.remove();(l=c.startContainer.getChild(c.startOffset))?g.insertBefore(l):c.startContainer.append(g);if(t)if(g=i(t))if(k.contains(t)){b(g,t.getParent(),t);g.remove()}else k.append(g);for(;e.checkStartOfBlock()&&e.checkEndOfBlock();){n=e.startPath();g=n.block;if(!g)break;if(g.is("li")){k=g.getParent();g.equals(k.getLast(f))&&g.equals(k.getFirst(f))&&(g=k)}e.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START);g.remove()}e=e.clone();g=a.editable();e.setEndAt(g,CKEDITOR.POSITION_BEFORE_END);
e=new CKEDITOR.dom.walker(e);e.evaluator=function(a){return f(a)&&!j(a)};(e=e.next())&&(e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in CKEDITOR.dtd.$list)&&d(e);c.moveToBookmark(h);c.select();a.fire("saveSnapshot")}function i(a){return(a=a.getLast(f))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in h?a:null}var h={ol:1,ul:1},k=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(),f=function(a){return!(k(a)||c(a))},j=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,
b,c,d,f){if(!h[a.getName()])return[];d||(d=0);c||(c=[]);for(var e=0,g=a.getChildCount();e<g;e++){var j=a.getChild(e);j.type==CKEDITOR.NODE_ELEMENT&&j.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(j,b,c,d+1);if(j.$.nodeName.toLowerCase()=="li"){var i={parent:a,indent:d,element:j,contents:[]};if(f)i.grandparent=f;else{i.grandparent=a.getParent();if(i.grandparent&&i.grandparent.$.nodeName.toLowerCase()=="li")i.grandparent=i.grandparent.getParent()}b&&CKEDITOR.dom.element.setMarker(b,
j,"listarray_index",c.length);c.push(i);for(var k=0,l=j.getChildCount(),n;k<l;k++){n=j.getChild(k);n.type==CKEDITOR.NODE_ELEMENT&&h[n.getName()]?CKEDITOR.plugins.list.listToArray(n,b,c,d+1,i.grandparent):i.contents.push(n)}}}return c},arrayToList:function(a,b,d,e,g){d||(d=0);if(!a||a.length<d+1)return null;for(var j,i=a[d].parent.getDocument(),k=new CKEDITOR.dom.documentFragment(i),l=null,n=d,t=Math.max(a[d].indent,0),x=null,C,A,G=e==CKEDITOR.ENTER_P?"p":"div";;){var D=a[n];j=D.grandparent;C=D.element.getDirection(1);
if(D.indent==t){if(!l||a[n].parent.getName()!=l.getName()){l=a[n].parent.clone(false,1);g&&l.setAttribute("dir",g);k.append(l)}x=l.append(D.element.clone(0,1));C!=l.getDirection(1)&&x.setAttribute("dir",C);for(j=0;j<D.contents.length;j++)x.append(D.contents[j].clone(1,1));n++}else if(D.indent==Math.max(t,0)+1){D=a[n-1].element.getDirection(1);n=CKEDITOR.plugins.list.arrayToList(a,null,n,e,D!=C?C:null);!x.getChildCount()&&(CKEDITOR.env.needsNbspFiller&&i.$.documentMode<=7)&&x.append(i.createText(" "));
x.append(n.listNode);n=n.nextIndex}else if(D.indent==-1&&!d&&j){if(h[j.getName()]){x=D.element.clone(false,true);C!=j.getDirection(1)&&x.setAttribute("dir",C)}else x=new CKEDITOR.dom.documentFragment(i);var l=j.getDirection(1)!=C,L=D.element,B=L.getAttribute("class"),J=L.getAttribute("style"),N=x.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(e!=CKEDITOR.ENTER_BR||l||J||B),I,Q=D.contents.length,K;for(j=0;j<Q;j++){I=D.contents[j];if(c(I)&&Q>1)N?K=I.clone(1,1):x.append(I.clone(1,1));else if(I.type==CKEDITOR.NODE_ELEMENT&&
I.isBlockBoundary()){l&&!I.getDirection()&&I.setAttribute("dir",C);A=I;var T=L.getAttribute("style");T&&A.setAttribute("style",T.replace(/([^;])$/,"$1;")+(A.getAttribute("style")||""));B&&I.addClass(B);A=null;if(K){x.append(K);K=null}x.append(I.clone(1,1))}else if(N){if(!A){A=i.createElement(G);x.append(A);l&&A.setAttribute("dir",C)}J&&A.setAttribute("style",J);B&&A.setAttribute("class",B);if(K){A.append(K);K=null}A.append(I.clone(1,1))}else x.append(I.clone(1,1))}if(K){(A||x).append(K);K=null}if(x.type==
CKEDITOR.NODE_DOCUMENT_FRAGMENT&&n!=a.length-1){if(CKEDITOR.env.needsBrFiller)(C=x.getLast())&&(C.type==CKEDITOR.NODE_ELEMENT&&C.is("br"))&&C.remove();C=x.getLast(f);(!C||!(C.type==CKEDITOR.NODE_ELEMENT&&C.is(CKEDITOR.dtd.$block)))&&x.append(i.createElement("br"))}C=x.$.nodeName.toLowerCase();(C=="div"||C=="p")&&x.appendBogus();k.append(x);l=null;n++}else return null;A=null;if(a.length<=n||Math.max(a[n].indent,0)<t)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;i=g=e=void 0;if(e=d.getDirection()){for(g=d.getParent();g&&!(i=g.getDirection());)g=g.getParent();e==i&&d.removeAttribute("dir")}}}a=a.getNextSourceNode()}return{listNode:k,nextIndex:n}}};var t=/^h[1-6]$/,n=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);e.prototype={exec:function(b){this.refresh(b,b.elementPath());var c=b.config,e=b.getSelection(),g=e&&e.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var j=b.editable();if(j.getFirst(f)){var i=
g.length==1&&g[0];(c=i&&i.getEnclosedNode())&&(c.is&&this.type==c.getName())&&this.setState(CKEDITOR.TRISTATE_ON)}else{c.enterMode==CKEDITOR.ENTER_BR?j.appendBogus():g[0].fixBlock(1,c.enterMode==CKEDITOR.ENTER_P?"p":"div");e.selectRanges(g)}}for(var c=e.createBookmarks(true),j=[],k={},g=g.createIterator(),l=0;(i=g.getNextRange())&&++l;){var n=i.getBoundaryNodes(),o=n.startNode,z=n.endNode;o.type==CKEDITOR.NODE_ELEMENT&&o.getName()=="td"&&i.setStartAt(n.startNode,CKEDITOR.POSITION_AFTER_START);z.type==
CKEDITOR.NODE_ELEMENT&&z.getName()=="td"&&i.setEndAt(n.endNode,CKEDITOR.POSITION_BEFORE_END);i=i.createIterator();for(i.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;n=i.getNextParagraph();)if(!n.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(k,n,"list_block",1);for(var x=b.elementPath(n),o=x.elements,z=0,x=x.blockLimit,C,A=o.length-1;A>=0&&(C=o[A]);A--)if(h[C.getName()]&&x.contains(C)){x.removeCustomData("list_group_object_"+l);if(o=C.getCustomData("list_group_object"))o.contents.push(n);
else{o={root:C,contents:[n]};j.push(o);CKEDITOR.dom.element.setMarker(k,C,"list_group_object",o)}z=1;break}if(!z){z=x;if(z.getCustomData("list_group_object_"+l))z.getCustomData("list_group_object_"+l).contents.push(n);else{o={root:z,contents:[n]};CKEDITOR.dom.element.setMarker(k,z,"list_group_object_"+l,o);j.push(o)}}}}for(C=[];j.length>0;){o=j.shift();if(this.state==CKEDITOR.TRISTATE_OFF)if(h[o.root.getName()]){g=b;l=o;o=k;i=C;z=CKEDITOR.plugins.list.listToArray(l.root,o);x=[];for(n=0;n<l.contents.length;n++){A=
l.contents[n];if((A=A.getAscendant("li",true))&&!A.getCustomData("list_item_processed")){x.push(A);CKEDITOR.dom.element.setMarker(o,A,"list_item_processed",true)}}for(var A=l.root.getDocument(),G=void 0,D=void 0,n=0;n<x.length;n++){var L=x[n].getCustomData("listarray_index"),G=z[L].parent;if(!G.is(this.type)){D=A.createElement(this.type);G.copyAttributes(D,{start:1,type:1});D.removeStyle("list-style-type");z[L].parent=D}}o=CKEDITOR.plugins.list.arrayToList(z,o,null,g.config.enterMode);z=void 0;x=
o.listNode.getChildCount();for(n=0;n<x&&(z=o.listNode.getChild(n));n++)z.getName()==this.type&&i.push(z);o.listNode.replace(l.root);g.fire("contentDomInvalidated")}else{z=b;n=o;i=C;x=n.contents;g=n.root.getDocument();l=[];if(x.length==1&&x[0].equals(n.root)){o=g.createElement("div");x[0].moveChildren&&x[0].moveChildren(o);x[0].append(o);x[0]=o}n=n.contents[0].getParent();for(A=0;A<x.length;A++)n=n.getCommonAncestor(x[A].getParent());G=z.config.useComputedState;z=o=void 0;G=G===void 0||G;for(A=0;A<
x.length;A++)for(D=x[A];L=D.getParent();){if(L.equals(n)){l.push(D);!z&&D.getDirection()&&(z=1);D=D.getDirection(G);o!==null&&(o=o&&o!=D?null:D);break}D=L}if(!(l.length<1)){x=l[l.length-1].getNext();A=g.createElement(this.type);i.push(A);for(G=i=void 0;l.length;){i=l.shift();G=g.createElement("li");if(i.is("pre")||t.test(i.getName())||i.getAttribute("contenteditable")=="false")i.appendTo(G);else{i.copyAttributes(G);if(o&&i.getDirection()){G.removeStyle("direction");G.removeAttribute("dir")}i.moveChildren(G);
i.remove()}G.appendTo(A)}o&&z&&A.setAttribute("dir",o);x?A.insertBefore(x):A.appendTo(n)}}else this.state==CKEDITOR.TRISTATE_ON&&h[o.root.getName()]&&a.call(this,b,o,k)}for(A=0;A<C.length;A++)d(C[A]);CKEDITOR.dom.element.clearAllMarkers(k);e.selectBookmarks(c);b.focus()},refresh:function(a,b){var c=b.contains(h,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(),d;if(a.mode=="wysiwyg"&&c in{8:1,46:1}){var e=
a.getSelection().getRanges()[0],k=e&&e.startPath();if(e&&e.collapsed){var n=c==8,t=a.editable(),w=new CKEDITOR.dom.walker(e.clone());w.evaluator=function(a){return f(a)&&!j(a)};w.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};c=e.clone();if(n){var o;if((o=k.contains(h))&&e.checkBoundaryOfElement(o,CKEDITOR.START)&&(o=o.getParent())&&o.is("li")&&(o=i(o))){d=o;o=o.getPrevious(f);c.moveToPosition(o&&j(o)?o:d,CKEDITOR.POSITION_BEFORE_START)}else{w.range.setStartAt(t,CKEDITOR.POSITION_AFTER_START);
w.range.setEnd(e.startContainer,e.startOffset);if((o=w.previous())&&o.type==CKEDITOR.NODE_ELEMENT&&(o.getName()in h||o.is("li"))){if(!o.is("li")){w.range.selectNodeContents(o);w.reset();w.evaluator=g;o=w.previous()}d=o;c.moveToElementEditEnd(d);c.moveToPosition(c.endPath().block,CKEDITOR.POSITION_BEFORE_END)}}if(d){l(a,c,e);b.cancel()}else{var z=k.contains(h);if(z&&e.checkBoundaryOfElement(z,CKEDITOR.START)){d=z.getFirst(f);if(e.checkBoundaryOfElement(d,CKEDITOR.START)){o=z.getPrevious(f);if(i(d)){if(o){e.moveToElementEditEnd(o);
e.select()}}else a.execCommand("outdent");b.cancel()}}}}else if(d=k.contains("li")){w.range.setEndAt(t,CKEDITOR.POSITION_BEFORE_END);n=(t=d.getLast(f))&&g(t)?t:d;k=0;if((o=w.next())&&o.type==CKEDITOR.NODE_ELEMENT&&o.getName()in h&&o.equals(t)){k=1;o=w.next()}else e.checkBoundaryOfElement(n,CKEDITOR.END)&&(k=2);if(k&&o){e=e.clone();e.moveToElementEditStart(o);if(k==1){c.optimize();if(!c.startContainer.equals(d)){for(d=c.startContainer;d.is(CKEDITOR.dtd.$inline);){z=d;d=d.getParent()}z&&c.moveToPosition(z,
CKEDITOR.POSITION_AFTER_END)}}if(k==2){c.moveToPosition(c.endPath().block,CKEDITOR.POSITION_BEFORE_END);e.endPath().block&&e.moveToPosition(e.endPath().block,CKEDITOR.POSITION_AFTER_START)}l(a,c,e);b.cancel()}}else{w.range.setEndAt(t,CKEDITOR.POSITION_BEFORE_END);if((o=w.next())&&o.type==CKEDITOR.NODE_ELEMENT&&o.is(h)){o=o.getFirst(f);if(k.block&&e.checkStartOfBlock()&&e.checkEndOfBlock()){k.block.remove();e.moveToElementEditStart(o);e.select()}else if(i(o)){e.moveToElementEditStart(o);e.select()}else{e=
e.clone();e.moveToElementEditStart(o);l(a,c,e)}b.cancel()}}setTimeout(function(){a.selectionChange(1)})}}})}}})}(),function(){CKEDITOR.plugins.add("sourcearea",{init:function(e){function b(){var a=g&&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 d=CKEDITOR.plugins.sourcearea;e.addMode("source",
function(d){var g=e.ui.space("contents").getDocument().createElement("textarea");g.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)));g.setAttribute("dir","ltr");g.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");e.ui.space("contents").append(g);g=e.editable(new a(e,g));g.setData(e.getData(1));if(CKEDITOR.env.ie){g.attachListener(e,
"resize",b,g);g.attachListener(CKEDITOR.document.getWindow(),"resize",b,g);CKEDITOR.tools.setTimeout(b,0,g)}e.fire("ariaWidget",this);d()});e.addCommand("source",d.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 g=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}}},function(){function a(a){function b(){for(var c=d(),f=CKEDITOR.tools.clone(a.config.toolbarGroups)||e(a),k=0;k<f.length;k++){var l=f[k];if(l!="/"){typeof l=="string"&&(l=f[k]={name:l});var r,p=l.groups;if(p)for(var s=0;s<p.length;s++){r=p[s];(r=c[r])&&h(l,r)}(r=c[l.name])&&h(l,r)}}return f}function d(){var b={},c,f,e;for(c in a.ui.items){f=a.ui.items[c];
e=f.toolbar||"others";e=e.split(",");f=e[0];e=parseInt(e[1]||-1,10);b[f]||(b[f]=[]);b[f].push({name:c,order:e})}for(f in b)b[f]=b[f].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 h(b,d){if(d.length){b.items?b.items.push(a.ui.create("-")):b.items=[];for(var f;f=d.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 k(a){var b=[],c,d,f;for(c=0;c<
a.length;++c){d=a[c];f={};if(d=="/")b.push(d);else if(CKEDITOR.tools.isArray(d)){h(f,CKEDITOR.tools.clone(d));b.push(f)}else if(d.items){h(f,CKEDITOR.tools.clone(d.items));f.name=d.name;b.push(f)}}return b}var c=a.config.removeButtons,c=c&&c.split(","),f=a.config.toolbar;typeof f=="string"&&(f=a.config["toolbar_"+f]);return a.toolbar=f?k(f):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 d=0,e;e=b.items[d++];)if(e.focus){e.focus();
return}};var d={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(e){var l,i=function(a,b){var c,d=e.lang.dir=="rtl",j=e.config.toolbarGroupCycling,t=d?37:39,d=d?39:37,j=j===void 0||j;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!c||!c.items.length;){c=b==9?(c?c.next:a.toolbar.next)||
e.toolbox.toolbars[0]:(c?c.previous:a.toolbar.previous)||e.toolbox.toolbars[e.toolbox.toolbars.length-1];if(c.items.length)for(a=c.items[l?c.items.length-1:0];a&&!a.focus;)(a=l?a.previous:a.next)||(c=0)}a&&a.focus();return false;case t:c=a;do{c=c.next;!c&&j&&(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){e.once("panelShow",function(a){a.data._.panel._.currentBlock.onKeyDown(40)});a.execute()}else i(a,b==40?t:d);return false;case d:case 38:c=
a;do{c=c.previous;!c&&j&&(c=a.toolbar.items[a.toolbar.items.length-1])}while(c&&!c.focus);if(c)c.focus();else{l=1;i(a,CKEDITOR.SHIFT+9);l=0}return false;case 27:e.focus();return false;case 13:case 32:a.execute();return false}return true};e.on("uiSpace",function(d){if(d.data.space==e.config.toolbarLocation){d.removeListener();e.toolbox=new b;var k=CKEDITOR.tools.getNextId(),c=['<span id="',k,'" class="cke_voice_label">',e.lang.toolbar.toolbars,"</span>",'<span id="'+e.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',
k,'" onmousedown="return false;">'],k=e.config.toolbarStartupExpanded!==false,f,j;e.config.toolbarCanCollapse&&e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&c.push('<span class="cke_toolbox_main"'+(k?">":' style="display:none">'));for(var l=e.toolbox.toolbars,n=a(e),m=0;m<n.length;m++){var r,p=0,s,v=n[m],u;if(v){if(f){c.push("</span>");j=f=0}if(v==="/")c.push('<span class="cke_toolbar_break"></span>');else{u=v.items||v;for(var q=0;q<u.length;q++){var y=u[q],w;if(y)if(y.type==CKEDITOR.UI_SEPARATOR)j=
f&&y;else{w=y.canGroup!==false;if(!p){r=CKEDITOR.tools.getNextId();p={id:r,items:[]};s=v.name&&(e.lang.toolbar.toolbarGroups[v.name]||v.name);c.push('<span id="',r,'" class="cke_toolbar"',s?' aria-labelledby="'+r+'_label"':"",' role="toolbar">');s&&c.push('<span id="',r,'_label" class="cke_voice_label">',s,"</span>");c.push('<span class="cke_toolbar_start"></span>');var o=l.push(p)-1;if(o>0){p.previous=l[o-1];p.previous.next=p}}if(w){if(!f){c.push('<span class="cke_toolgroup" role="presentation">');
f=1}}else if(f){c.push("</span>");f=0}r=function(a){a=a.render(e,c);o=p.items.push(a)-1;if(o>0){a.previous=p.items[o-1];a.previous.next=a}a.toolbar=p;a.onkey=i;a.onfocus=function(){e.toolbox.focusCommandExecuted||e.focus()}};if(j){r(j);j=0}r(y)}}if(f){c.push("</span>");j=f=0}p&&c.push('<span class="cke_toolbar_end"></span></span>')}}}e.config.toolbarCanCollapse&&c.push("</span>");if(e.config.toolbarCanCollapse&&e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var z=CKEDITOR.tools.addFunction(function(){e.execCommand("toolbarCollapse")});
e.on("destroy",function(){CKEDITOR.tools.removeFunction(z)});e.addCommand("toolbarCollapse",{readOnly:1,exec:function(a){var b=a.ui.space("toolbar_collapser"),c=b.getPrevious(),d=a.ui.space("contents"),f=c.getParent(),e=parseInt(d.$.style.height,10),g=f.$.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",e-(f.$.offsetHeight-g)+"px");a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:d.$.offsetHeight,outerWidth:a.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}});e.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");c.push('<a title="'+(k?e.lang.toolbar.toolbarCollapse:e.lang.toolbar.toolbarExpand)+'" id="'+e.ui.spaceId("toolbar_collapser")+'" tabIndex="-1" class="cke_toolbox_collapser');
k||c.push(" cke_toolbox_collapser_min");c.push('" onclick="CKEDITOR.tools.callFunction('+z+')">','<span class="cke_arrow">&#9650;</span>',"</a>")}c.push("</span>");d.data.html=d.data.html+c.join("")}});e.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)}}}});e.on("uiReady",function(){var a=e.ui.space("toolbox");
a&&e.focusManager.add(a,1)});e.addCommand("toolbarFocus",d);e.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");e.ui.add("-",CKEDITOR.UI_SEPARATOR,{});e.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,d){var h=e(this.editor),k=b===0,c={name:a};if(d){if(d=CKEDITOR.tools.search(h,function(a){return a.name==d})){!d.groups&&(d.groups=
[]);if(b){b=CKEDITOR.tools.indexOf(d.groups,b);if(b>=0){d.groups.splice(b+1,0,a);return}}k?d.groups.splice(0,0,a):d.groups.push(a);return}b=null}b&&(b=CKEDITOR.tools.indexOf(h,function(a){return a.name==b}));k?h.splice(0,0,a):typeof b=="number"?h.splice(b+1,0,c):h.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),g=f.editingHandler=new l(f),i=d.addCommand("undo",{exec:function(){if(f.undo()){d.selectionChange();this.fire("afterUndo")}},startDisabled:true,canUndo:false}),n=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(){i.setState(f.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);n.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",g.attachListeners,g);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),f=this.strokesRecorded[c]+1,d=d||f>=this.strokesLimit;if(!this.typing){this.hasUndo=this.typing=true;this.hasRedo=false;this.onChange()}if(d){f=0;this.editor.fire("saveSnapshot")}else this.editor.fire("change");this.strokesRecorded[c]=f;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 f=this.editor;if(this.locked||f.status!="ready"||f.mode!="wysiwyg")return false;var e=f.editable();if(!e||e.status!=
"ready")return false;e=this.snapshots;b||(b=new d(f));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&&f.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 d(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 f=new d(this.editor,true);this.currentImage&&this.currentImage.equalsContent(f)&&(c=f)}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 d(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 d=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")},g=/\b(?:href|src|name)="[^"]*?"/gi;d.prototype={equalsContent:function(a){var b=this.contents,a=a.contents;if(CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)){b=b.replace(g,"");a=a.replace(g,"")}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 l=CKEDITOR.plugins.undo.NativeEditingHandler=function(a){this.undoManager=a;this.ignoreInputEvent=false;this.keyEventsStack=new i;this.lastKeydownImage=null};l.prototype={onKeydown:function(e){var g=e.data.getKey();if(g!==229)if(CKEDITOR.tools.indexOf(a,e.data.getKeystroke())>-1)e.data.preventDefault();else{this.keyEventsStack.cleanUp(e);e=this.undoManager;this.keyEventsStack.getLast(g)||
this.keyEventsStack.push(g);this.lastKeydownImage=new d(e.editor);if(b.isNavigationKey(g)||this.undoManager.keyGroupChanged(g))if(e.strokesRecorded[0]||e.strokesRecorded[1]){e.save(false,this.lastKeydownImage,false);e.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 e=this.undoManager,a=a.data.getKey(),c=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(a);if(!b.ieFunctionalKeysBug(a)||!this.lastKeydownImage||!this.lastKeydownImage.equalsContent(new d(e.editor,true)))if(c>0)e.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 d(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,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 d=a.editable();CKEDITOR.tools.extend(this,{editor:a,editable:d,inline:d.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 e=CKEDITOR.tools.bind(this.queryViewport,this),h=CKEDITOR.tools.bind(this.hideVisible,this),k=CKEDITOR.tools.bind(this.removeAll,this);d.attachListener(this.winTop,"resize",e);d.attachListener(this.winTop,"scroll",e);d.attachListener(this.winTop,"resize",h);d.attachListener(this.win,"scroll",h);d.attachListener(this.inline?d: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);d.attachListener(a,"resize",e);d.attachListener(a,"mode",k);a.on("destroy",k);this.lineTpl=(new CKEDITOR.template(i)).output({lineStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},l,this.lineStyle,true)),tipLeftStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},g,{left:"0px",
"border-left-color":"red","border-width":"6px 0 6px 6px"},this.tipCss,this.tipLeftStyle,true)),tipRightStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},g,{right:"0px","border-right-color":"red","border-width":"6px 6px 6px 0"},this.tipCss,this.tipRightStyle,true))})}function d(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&!(h[a.getComputedStyle("float")]||h[a.getAttribute("align")])&&!k[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,g,h,i,k,l=CKEDITOR.tools.eventsBuffer(50,function(){if(!(d.readOnly||d.mode!="wysiwyg")){b.relations={};if((h=e.$.elementFromPoint(i,k))&&h.nodeType){g=new CKEDITOR.dom.element(h);b.traverseSearch(g);isNaN(i+k)||b.pixelSearch(g,i,k);a&&a(b.relations,i,k)}}});this.listener=this.editable.attachListener(this.target,"mousemove",function(a){i=a.data.$.clientX;k=a.data.$.clientY;l.input()});this.editable.attachListener(this.inline?
this.editable:this.frame,"mouseout",function(){l.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,e){var g;if(e&CKEDITOR.LINEUTILS_AFTER&&d(g=b.getNext())&&g.isVisible()){a(g,CKEDITOR.LINEUTILS_BEFORE,this.relations);e=e^CKEDITOR.LINEUTILS_AFTER}if(e&CKEDITOR.LINEUTILS_INSIDE&&d(g=b.getFirst())&&g.isVisible()){a(g,CKEDITOR.LINEUTILS_BEFORE,this.relations);e=e^CKEDITOR.LINEUTILS_INSIDE}a(b,e,this.relations)}}(),traverseSearch:function(a){var b,e,g;do{g=a.$["data-cke-expando"];if(!(g&&g in this.relations)){if(a.equals(this.editable))break;
if(d(a))for(b in this.lookups)(e=this.lookups[b](a))&&this.store(a,e)}}while(!(a&&a.type==CKEDITOR.NODE_ELEMENT&&a.getAttribute("contenteditable")=="true")&&(a=a.getParent()))},pixelSearch:function(){function a(c,e,g,h,i){for(var k=0,l;i(g);){g=g+h;if(++k==25)break;if(l=this.doc.$.elementFromPoint(e,g))if(l==c)k=0;else if(b(c,l)){k=0;if(d(l=new CKEDITOR.dom.element(l)))return l}}}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,f,e){var g=this.win.getViewPaneSize().height,h=a.call(this,b.$,f,e,-1,function(a){return a>0}),f=a.call(this,b.$,f,e,1,function(a){return a<g});if(h)for(this.traverseSearch(h);!h.getParent().equals(b);)h=h.getParent();if(f)for(this.traverseSearch(f);!f.getParent().equals(b);)f=f.getParent();for(;h||f;){h&&(h=h.getNext(d));if(!h||h.equals(f))break;this.traverseSearch(h);f&&(f=f.getPrevious(d));if(!f||f.equals(h))break;this.traverseSearch(f)}}}(),greedySearch:function(){this.relations=
{};for(var a=this.editable.getElementsByTag("*"),b=0,e,g,h;e=a.getItem(b++);)if(!e.equals(this.editable)&&e.type==CKEDITOR.NODE_ELEMENT&&(e.hasAttribute("contenteditable")||!e.isReadOnly())&&d(e)&&e.isVisible())for(h in this.lookups)(g=this.lookups[h](e))&&this.store(e,g);return this.relations}};e.prototype={locate:function(){function a(b,c){var e=b.element[c===CKEDITOR.LINEUTILS_BEFORE?"getPrevious":"getNext"]();if(e&&d(e)){b.siblingRect=e.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(g,h){a=this.locations;b=[];for(var i in a)for(var k in a[i]){d=Math.abs(g-a[i][k]);if(b.length){for(e=0;e<b.length;e++)if(d<b[e].dist){b.splice(e,0,{uid:+i,type:k,dist:d});break}e==b.length&&b.push({uid:+i,type:k,dist:d})}else b.push({uid:+i,type:k,dist:d})}return typeof h!="undefined"?b.slice(0,h):b}}(),store:function(a,b,d){this.locations[a]||(this.locations[a]={});this.locations[a][b]=
d}};var g={display:"block",width:"0px",height:"0px","border-color":"transparent","border-style":"solid",position:"absolute",top:"-6px"},l={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,g;if(d=this.getStyle(a.uid,a.type)){for(g in this.visible)if(this.visible[g].getCustomData("hash")!==this.hash){e=this.visible[g];break}if(!e)for(g in this.hidden)if(this.hidden[g].getCustomData("hash")!==
this.hash){this.showLine(e=this.hidden[g]);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],g={};g.width=d.siblingRect?Math.max(d.siblingRect.width,d.elementRect.width):d.elementRect.width;g.top=this.inline?e+this.winTopScroll.y-this.rect.relativeY:this.rect.top+this.winTopScroll.y+e;if(g.top-this.winTopScroll.y<this.rect.top||g.top-this.winTopScroll.y>
this.rect.bottom)return false;if(this.inline)g.left=d.elementRect.left-this.rect.relativeX;else{if(d.elementRect.left>0)g.left=this.rect.left+d.elementRect.left;else{g.width=g.width+d.elementRect.left;g.left=this.rect.left}if((d=g.left+g.width-(this.rect.left+this.winPane.width))>0)g.width=g.width-d}g.left=g.left+this.winTopScroll.x;for(var h in g)g[h]=CKEDITOR.tools.cssLength(g[h]);return g},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 h={left:1,right:1,center:1},k={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:{}};w(this);y(this);this.on("checkWidgets",i);this.editor.on("contentDomInvalidated",this.checkWidgets,this);q(this);s(this);v(this);p(this);u(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);K(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;U(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 d(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 g(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 l(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)c[d].isReady()&&!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=t;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 h(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 k(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 f(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 f(e,b,c)}}a.add(c,b)}function j(a,b){return typeof a.inline=="boolean"?a.inline:!!CKEDITOR.dtd.$inline[b]}function t(a){return a.hasAttribute("data-cke-temp")}function n(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 r(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=d.getTransferType(b),d=b.createRange();if(e!==""&&f===CKEDITOR.DATA_TRANSFER_CROSS_EDITORS)c.cancel();else if(!(e===""||f!=CKEDITOR.DATA_TRANSFER_INTERNAL))if(e=a.instances[e]){d.setStartBefore(e.wrapper);d.setEndAfter(e.wrapper);c.data.dragRange=d;delete CKEDITOR.plugins.clipboard.dragStartContainerChildCount;delete CKEDITOR.plugins.clipboard.dragEndContainerChildCount;
c.data.dataTransfer.setData("text/html",b.editable().getHtmlFromRange(d).getHtml());b.widgets.destroy(e,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)&&!a._.draggedWidget.wrapper.contains(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 s(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(c){var d=c.data.getTarget();if(!d.type)return false;
f=a.getByElement(d);g=0;if(f)if(f.inline&&d.type==CKEDITOR.NODE_ELEMENT&&d.hasAttribute("data-cke-widget-drag-handler")){g=1;a.focused!=f&&b.getSelection().removeAllRanges()}else if(e.getNestedEditable(f.wrapper,d))f=null;else{c.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 v(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 u(a){function b(c){a.focused&&C(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 q(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)){n(a,f,null);d&&c&&n(a,d,c)}}else d&&c&&n(a,d,c)});b.on("dataReady",function(){o(a).commit()});b.on("blur",function(){var b;(b=a.focused)&&l(a,b);(b=a.widgetHoldingFocusedEditable)&&n(a,b,null)})}function y(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 w(a){var b=a.editor,c,d;b.on("toHtml",function(b){var d=k(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($,r);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 o(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)&&l(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 x(a){a.cancel()}function C(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",x,null,null,0),j=a.repository.on("checkSelection",x,null,null,0);if(e)var k=d.getDocumentElement().$,l=k.scrollTop;h=c.createRange();h.selectNodeContents(f);h.select();if(e)k.scrollTop=
l;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 G(){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 D(){CKEDITOR.env.gecko&&this.editor.unlockSelection();if(!CKEDITOR.env.webkit){this.editor.forceNextSelectionCheck();
this.editor.selectionChange(1)}}function L(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 B(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:O,title:b.lang.widget.move,height:O});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",J,a);if(CKEDITOR.env.ie&&CKEDITOR.env.version<9)d.on("dragstart",function(a){a.data.preventDefault(true)})}a.dragHandlerContainer=c}}function J(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.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(){l=d.locate(j);i=d.sort(m,1);if(i.length){e.prepare(j,l);e.placeLine(i[0]);e.cleanup()}}),l,m;g.addClass("cke_widget_dragging");h.push(g.on("mousemove",function(a){m=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 N(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 I(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 Q(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 K(a,b){T(a);Q(a);N(a);I(a);B(a);L(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){C(a,
b==CKEDITOR.CTRL+88);return}if(b in P||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 T(a){(a.wrapper=a.element.getParent()).setAttribute("data-cke-widget-id",a.id)}function U(a){a.element.data("cke-widget-data",encodeURIComponent(JSON.stringify(a.data)))}var O=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:"+
O+"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:"+O+"px;transition:none}.cke_widget_drag_handler_container:hover{opacity:1}img.cke_widget_drag_handler{cursor:move;width:"+O+"px;height:"+O+"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);d(this.editor,b);g(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=o(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&&n(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,g;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);g=j(e,a.getName());d=new CKEDITOR.dom.element(g?"span":"div");d.setAttributes(c(g));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);g=j(e,a.name);d=new CKEDITOR.htmlParser.element(g?"span":"div",c(g));d.attributes["data-cke-display-name"]=e.pathName?e.pathName:a.name;e=a.parent;var h;if(e){h=a.getIndex();a.remove()}d.add(a);e&&f(e,h,d)}return d},_tests_createEditableFilter:h};
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",D);c.removeListener("blur",G);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:h.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",D,this);CKEDITOR.env.ie&&d.on("blur",G,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){U(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-O};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 $=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)>)?$',"i"),P={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}(),CKEDITOR.config.plugins="basicstyles,dialogui,dialog,clipboard,button,panelbutton,panel,floatpanel,colorbutton,divarea,elementspath,enterkey,entities,floatingspace,listblock,richcombo,font,htmlwriter,indent,indentblock,indentlist,justify,list,sourcearea,toolbar,undo,lineutils,widget",
CKEDITOR.config.skin="moono",function(){var a=function(a,b){for(var d=CKEDITOR.getUrl("plugins/"+b),a=a.split(","),g=0;g<a.length;g++)CKEDITOR.skin.icons[a[g]]={path:d,offset:-a[++g],bgsize:a[++g]}};CKEDITOR.env.hidpi?a("bold,0,,italic,24,,strike,48,,subscript,72,,superscript,96,,underline,120,,copy-rtl,144,,copy,168,,cut-rtl,192,,cut,216,,paste-rtl,240,,paste,264,,bgcolor,288,,textcolor,312,,indent-rtl,336,,indent,360,,outdent-rtl,384,,outdent,408,,ipscode,432,,ipsemoticon,456,,ipsimage,480,,ipslink,504,,unlink,528,,ipspage,1104,auto,pastetext,576,,ipsquote,600,,ipsspoiler,624,,justifyblock,648,,justifycenter,672,,justifyleft,696,,justifyright,720,,bulletedlist-rtl,744,,bulletedlist,768,,numberedlist-rtl,792,,numberedlist,816,,removeformat,840,,source-rtl,864,,source,888,,redo-rtl,912,,redo,936,,undo-rtl,960,,undo,984,,simplebox,2016,auto",
"icons_hidpi.png"):a("bold,0,auto,italic,24,auto,strike,48,auto,subscript,72,auto,superscript,96,auto,underline,120,auto,copy-rtl,144,auto,copy,168,auto,cut-rtl,192,auto,cut,216,auto,paste-rtl,240,auto,paste,264,auto,bgcolor,288,auto,textcolor,312,auto,indent-rtl,336,auto,indent,360,auto,outdent-rtl,384,auto,outdent,408,auto,ipscode,432,auto,ipsemoticon,456,auto,ipsimage,480,auto,ipslink,504,auto,unlink,528,auto,ipspage,552,auto,pastetext,576,auto,ipsquote,600,auto,ipsspoiler,624,auto,justifyblock,648,auto,justifycenter,672,auto,justifyleft,696,auto,justifyright,720,auto,bulletedlist-rtl,744,auto,bulletedlist,768,auto,numberedlist-rtl,792,auto,numberedlist,816,auto,removeformat,840,auto,source-rtl,864,auto,source,888,auto,redo-rtl,912,auto,redo,936,auto,undo-rtl,960,auto,undo,984,auto,simplebox,1008,auto",
"icons.png")}(),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:1,"en-au":1,"en-ca":1,"en-gb":1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,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: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}})();