-height:b.height}}return a},getLinkAttributesGetter:function(){return CKEDITOR.plugins.link.getLinkAttributes},getLinkAttributesParser:function(){return CKEDITOR.plugins.link.parseLinkAttributes}}}(),CKEDITOR.config.image2_captionedClass="image",function(){function a(a,h){var m,l;h.on("refresh",function(a){var d=[e],b;for(b in a.data.states)d.push(a.data.states[b]);this.setState(CKEDITOR.tools.search(d,c)?c:e)},h,null,100);h.on("exec",function(c){m=a.getSelection();l=m.createBookmarks(1);c.data||(c.data=
-{});c.data.done=!1},h,null,0);h.on("exec",function(){a.forceNextSelectionCheck();m.selectBookmarks(l)},h,null,100)}var e=CKEDITOR.TRISTATE_DISABLED,c=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(c){var e=CKEDITOR.plugins.indent.genericDefinition;a(c,c.addCommand("indent",new e(!0)));a(c,c.addCommand("outdent",new e));c.ui.addButton&&(c.ui.addButton("Indent",{label:c.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),c.ui.addButton("Outdent",{label:c.lang.indent.outdent,
-command:"outdent",directional:!0,toolbar:"indent,10"}));c.on("dirChanged",function(a){var e=c.createRange(),h=a.data.node;e.setStartBefore(h);e.setEndAfter(h);for(var d=new CKEDITOR.dom.walker(e),b;b=d.next();)if(b.type==CKEDITOR.NODE_ELEMENT)if(!b.equals(h)&&b.getDirection())e.setStartAfter(b),d=new CKEDITOR.dom.walker(e);else{var g=c.config.indentClasses;if(g)for(var n="ltr"==a.data.dir?["_rtl",""]:["","_rtl"],t=0;t<g.length;t++)b.hasClass(g[t]+n[0])&&(b.removeClass(g[t]+n[0]),b.addClass(g[t]+n[1]));
-g=b.getStyle("margin-right");n=b.getStyle("margin-left");g?b.setStyle("margin-left",g):b.removeStyle("margin-left");n?b.setStyle("margin-right",n):b.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(a){this.isIndent=!!a;this.startDisabled=!this.isIndent},specificDefinition:function(a,c,e){this.name=c;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,c){a.on("pluginsLoaded",function(){for(var a in c)(function(a,c){var d=a.getCommand(c.relatedGlobal),b;for(b in c.jobs)d.on("exec",function(d){d.data.done||(a.fire("lockSnapshot"),c.execJob(a,b)&&(d.data.done=!0),a.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(c.database))},this,null,b),d.on("refresh",function(d){d.data.states||(d.data.states={});d.data.states[c.name+"@"+b]=c.refreshJob(a,b,d.data.path)},this,null,b);a.addFeature(c)})(this,
-c[a])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(a,c){var m=this.jobs[c];if(m.state!=e)return m.exec.call(this,a)},refreshJob:function(a,c,m){c=this.jobs[c];a.activeFilter.checkFeature(this)?c.state=c.refresh.call(this,a,m):c.state=e;return c.state},getContext:function(a){return a.contains(this.context)}}}(),function(){function a(a){function d(d){for(var e=l.startContainer,m=l.endContainer;e&&
-!e.getParent().equals(d);)e=e.getParent();for(;m&&!m.getParent().equals(d);)m=m.getParent();if(!e||!m)return!1;for(var p=e,e=[],q=!1;!q;)p.equals(m)&&(q=!0),e.push(p),p=p.getNext();if(1>e.length)return!1;p=d.getParents(!0);for(m=0;m<p.length;m++)if(p[m].getName&&h[p[m].getName()]){d=p[m];break}for(var p=b.isIndent?1:-1,m=e[0],e=e[e.length-1],q=CKEDITOR.plugins.list.listToArray(d,f),w=q[e.getCustomData("listarray_index")].indent,m=m.getCustomData("listarray_index");m<=e.getCustomData("listarray_index");m++)if(q[m].indent+=
-p,0<p){var y=q[m].parent;q[m].parent=new CKEDITOR.dom.element(y.getName(),y.getDocument())}for(m=e.getCustomData("listarray_index")+1;m<q.length&&q[m].indent>w;m++)q[m].indent+=p;e=CKEDITOR.plugins.list.arrayToList(q,f,null,a.config.enterMode,d.getDirection());if(!b.isIndent){var x;if((x=d.getParent())&&x.is("li"))for(var p=e.listNode.getChildren(),u=[],C,m=p.count()-1;0<=m;m--)(C=p.getItem(m))&&C.is&&C.is("li")&&u.push(C)}e&&e.listNode.replace(d);if(u&&u.length)for(m=0;m<u.length;m++){for(C=d=u[m];(C=
-C.getNext())&&C.is&&C.getName()in h;)CKEDITOR.env.needsNbspFiller&&!d.getFirst(c)&&d.append(l.document.createText(" ")),d.append(C);d.insertAfter(x)}e&&a.fire("contentDomInvalidated");return!0}for(var b=this,f=this.database,h=this.context,l,m=a.getSelection(),m=(m&&m.getRanges()).createIterator();l=m.getNextRange();){for(var w=l.getCommonAncestor();w&&(w.type!=CKEDITOR.NODE_ELEMENT||!h[w.getName()]);){if(a.editable().equals(w)){w=!1;break}w=w.getParent()}w||(w=l.startPath().contains(h))&&l.setEndAt(w,
-CKEDITOR.POSITION_BEFORE_END);if(!w){var p=l.getEnclosedNode();p&&p.type==CKEDITOR.NODE_ELEMENT&&p.getName()in h&&(l.setStartAt(p,CKEDITOR.POSITION_AFTER_START),l.setEndAt(p,CKEDITOR.POSITION_BEFORE_END),w=p)}w&&l.startContainer.type==CKEDITOR.NODE_ELEMENT&&l.startContainer.getName()in h&&(p=new CKEDITOR.dom.walker(l),p.evaluator=e,l.startContainer=p.next());w&&l.endContainer.type==CKEDITOR.NODE_ELEMENT&&l.endContainer.getName()in h&&(p=new CKEDITOR.dom.walker(l),p.evaluator=e,l.endContainer=p.previous());
-if(w)return d(w)}return 0}function e(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}function c(a){return f(a)&&h(a)}var f=CKEDITOR.dom.walker.whitespaces(!0),h=CKEDITOR.dom.walker.bookmark(!1,!0),m=CKEDITOR.TRISTATE_DISABLED,l=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(c){function d(c){b.specificDefinition.apply(this,arguments);this.requiredContent=["ul","ol"];c.on("key",function(a){var b=c.elementPath();if("wysiwyg"==c.mode&&a.data.keyCode==this.indentKey&&
-b){var d=this.getContext(b);!d||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,b,d)||(c.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:m}:function(a,b){return!this.getContext(b)||this.isIndent?m:l},exec:CKEDITOR.tools.bind(a,this)}}var b=CKEDITOR.plugins.indent;b.registerCommands(c,{indentlist:new d(c,
-"indentlist",!0),outdentlist:new d(c,"outdentlist")});CKEDITOR.tools.extend(d.prototype,b.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(a,c,b){var f=c.contains(e);b||(b=c.contains(a));return b&&f&&f.equals(b.getFirst(e))}}(),function(){function a(a,c){c=void 0===c||c;var e;if(c)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&&c&&(e="rtl"==a.getComputedStyle("direction")?"right":"left");return e}function e(a,c,e){this.editor=a;this.name=c;this.value=e;this.context="p";c=a.config.justifyClasses;var l=a.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(c){switch(e){case "left":this.cssClassName=c[0];break;case "center":this.cssClassName=c[1];break;case "right":this.cssClassName=c[2];break;
-case "justify":this.cssClassName=c[3]}this.cssClassRegex=new RegExp("(?:^|\\s+)(?:"+c.join("|")+")(?\x3d$|\\s)");this.requiredContent=l+"("+this.cssClassName+")"}else this.requiredContent=l+"{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:!0,styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}};a.config.enterMode==CKEDITOR.ENTER_BR&&(this.allowedContent.div=!0)}function c(a){var c=a.editor,e=c.createRange();e.setStartBefore(a.data.node);
-e.setEndAfter(a.data.node);for(var l=new CKEDITOR.dom.walker(e),k;k=l.next();)if(k.type==CKEDITOR.NODE_ELEMENT)if(!k.equals(a.data.node)&&k.getDirection())e.setStartAfter(k),l=new CKEDITOR.dom.walker(e);else{var d=c.config.justifyClasses;d&&(k.hasClass(d[0])?(k.removeClass(d[0]),k.addClass(d[2])):k.hasClass(d[2])&&(k.removeClass(d[2]),k.addClass(d[0])));d=k.getStyle("text-align");"left"==d?k.setStyle("text-align","right"):"right"==d&&k.setStyle("text-align","left")}}e.prototype={exec:function(c){var e=
-c.getSelection(),m=c.config.enterMode;if(e){for(var l=e.createBookmarks(),k=e.getRanges(),d=this.cssClassName,b,g,n=c.config.useComputedState,n=void 0===n||n,t=k.length-1;0<=t;t--)for(b=k[t].createIterator(),b.enlargeBr=m!=CKEDITOR.ENTER_BR;g=b.getNextParagraph(m==CKEDITOR.ENTER_P?"p":"div");)if(!g.isReadOnly()){var u=g.getName(),w;w=c.activeFilter.check(u+"{text-align}");if((u=c.activeFilter.check(u+"("+d+")"))||w){g.removeAttribute("align");g.removeStyle("text-align");var p=d&&(g.$.className=CKEDITOR.tools.ltrim(g.$.className.replace(this.cssClassRegex,
-""))),r=this.state==CKEDITOR.TRISTATE_OFF&&(!n||a(g,!0)!=this.value);d&&u?r?g.addClass(d):p||g.removeAttribute("class"):r&&w&&g.setStyle("text-align",this.value)}}c.focus();c.forceNextSelectionCheck();e.selectBookmarks(l)}},refresh:function(c,e){var m=e.block||e.blockLimit,l=m.getName(),k=m.equals(c.editable()),l=this.cssClassName?c.activeFilter.check(l+"("+this.cssClassName+")"):c.activeFilter.check(l+"{text-align}");k&&1===e.elements.length?this.setState(CKEDITOR.TRISTATE_OFF):!k&&l?this.setState(a(m,
-this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)}};CKEDITOR.plugins.add("justify",{init:function(a){if(!a.blockless){var h=new e(a,"justifyleft","left"),m=new e(a,"justifycenter","center"),l=new e(a,"justifyright","right"),k=new e(a,"justifyblock","justify");a.addCommand("justifyleft",h);a.addCommand("justifycenter",m);a.addCommand("justifyright",l);a.addCommand("justifyblock",k);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",c)}}})}(),CKEDITOR.plugins.add("menubutton",{requires:"button,menu",onLoad:function(){var a=function(a){var c=
-this._,f=c.menu;c.state!==CKEDITOR.TRISTATE_DISABLED&&(c.on&&f?f.hide():(c.previousState=c.state,f||(f=c.menu=new CKEDITOR.menu(a,{panel:{className:"cke_menu_panel",attributes:{"aria-label":a.lang.common.options}}}),f.onHide=CKEDITOR.tools.bind(function(){var f=this.command?a.getCommand(this.command).modes:this.modes;this.setState(!f||f[a.mode]?c.previousState:CKEDITOR.TRISTATE_DISABLED);c.on=0},this),this.onMenu&&f.addListener(this.onMenu)),this.setState(CKEDITOR.TRISTATE_ON),c.on=1,setTimeout(function(){f.show(CKEDITOR.document.getById(c.id),
-4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(e){delete e.panel;this.base(e);this.hasArrow=!0;this.click=a},statics:{handler:{create:function(a){return new CKEDITOR.ui.menuButton(a)}}}})},beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}}),CKEDITOR.UI_MENUBUTTON="menubutton","use strict",function(){CKEDITOR.plugins.add("language",{requires:"menubutton",init:function(a){var e=a.config.language_list||["ar:Arabic:rtl",
-"fr:French","es:Spanish"],c=this,f=a.lang.language,h={},m,l,k,d;a.addCommand("language",{allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",contextSensitive:!0,exec:function(a,c){var d=h["language_"+c];if(d)a[d.style.checkActive(a.elementPath(),a)?"removeStyle":"applyStyle"](d.style)},refresh:function(a){this.setState(c.getCurrentLangElement(a)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}});for(d=0;d<e.length;d++)m=e[d].split(":"),l=m[0],k="language_"+l,h[k]={label:m[1],langId:l,group:"language",
-order:d,ltr:"rtl"!=(""+m[2]).toLowerCase(),onClick:function(){a.execCommand("language",this.langId)},role:"menuitemcheckbox"},h[k].style=new CKEDITOR.style({element:"span",attributes:{lang:l,dir:h[k].ltr?"ltr":"rtl"}});h.language_remove={label:f.remove,group:"language_remove",state:CKEDITOR.TRISTATE_DISABLED,order:h.length,onClick:function(){var b=c.getCurrentLangElement(a);b&&a.execCommand("language",b.getAttribute("lang"))}};a.addMenuGroup("language",1);a.addMenuGroup("language_remove");a.addMenuItems(h);
-a.ui.add("Language",CKEDITOR.UI_MENUBUTTON,{label:f.button,allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",toolbar:"bidi,30",command:"language",onMenu:function(){var b={},d=c.getCurrentLangElement(a),e;for(e in h)b[e]=CKEDITOR.TRISTATE_OFF;b.language_remove=d?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;d&&(b["language_"+d.getAttribute("lang")]=CKEDITOR.TRISTATE_ON);return b}})},getCurrentLangElement:function(a){var e=a.elementPath();a=e&&e.elements;var c;if(e)for(var f=0;f<
-a.length;f++)e=a[f],!c&&"span"==e.getName()&&e.hasAttribute("dir")&&e.hasAttribute("lang")&&(c=e);return c}})}(),function(){function a(a,b,c){function d(c){if(!(!(l=k[c?"getFirst":"getLast"]())||l.is&&l.isBlockBoundary()||!(m=b.root[c?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||m.is&&m.isBlockBoundary({br:1})))a.document.createElement("br")[c?"insertBefore":"insertAfter"](l)}for(var e=CKEDITOR.plugins.list.listToArray(b.root,c),f=[],g=0;g<b.contents.length;g++){var h=b.contents[g];
-(h=h.getAscendant("li",!0))&&!h.getCustomData("list_item_processed")&&(f.push(h),CKEDITOR.dom.element.setMarker(c,h,"list_item_processed",!0))}h=null;for(g=0;g<f.length;g++)h=f[g].getCustomData("listarray_index"),e[h].indent=-1;for(g=h+1;g<e.length;g++)if(e[g].indent>e[g-1].indent+1){f=e[g-1].indent+1-e[g].indent;for(h=e[g].indent;e[g]&&e[g].indent>=h;)e[g].indent+=f,g++;g--}var k=CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,l,m;d(!0);d();k.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 c(a,b,c,d){for(var e,f;e=a[d?"getLast":"getFirst"](u);)(f=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",f),e.remove(),c?e[d?"insertBefore":"insertAfter"](c):b.append(e,d)}function f(a){function b(d){var e=a[d?"getPrevious":"getNext"](g);e&&e.type==CKEDITOR.NODE_ELEMENT&&e.is(a.getName())&&(c(a,e,null,!d),a.remove(),a=e)}b();b(1)}function h(a){return a.type==
-CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function m(a,b,d){a.fire("saveSnapshot");d.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var e=d.extractContents();b.trim(!1,!0);var h=b.createBookmark(),k=new CKEDITOR.dom.elementPath(b.startContainer),m=k.block,k=k.lastElement.getAscendant("li",1)||m,z=new CKEDITOR.dom.elementPath(d.startContainer),y=z.contains(CKEDITOR.dtd.$listItem),z=z.contains(CKEDITOR.dtd.$list);m?
-(m=m.getBogus())&&m.remove():z&&(m=z.getPrevious(g))&&n(m)&&m.remove();(m=e.getLast())&&m.type==CKEDITOR.NODE_ELEMENT&&m.is("br")&&m.remove();(m=b.startContainer.getChild(b.startOffset))?e.insertBefore(m):b.startContainer.append(e);y&&(e=l(y))&&(k.contains(y)?(c(e,y.getParent(),y),e.remove()):k.append(e));for(;d.checkStartOfBlock()&&d.checkEndOfBlock();){z=d.startPath();e=z.block;if(!e)break;e.is("li")&&(k=e.getParent(),e.equals(k.getLast(g))&&e.equals(k.getFirst(g))&&(e=k));d.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);
-e.remove()}d=d.clone();e=a.editable();d.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=function(a){return g(a)&&!n(a)};(d=d.next())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in CKEDITOR.dtd.$list&&f(d);b.moveToBookmark(h);b.select();a.fire("saveSnapshot")}function l(a){return(a=a.getLast(g))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in k?a:null}var k={ol:1,ul:1},d=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.dom.walker.bookmark(),g=function(a){return!(d(a)||b(a))},
-n=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,b,c,d,e){if(!k[a.getName()])return[];d||(d=0);c||(c=[]);for(var f=0,g=a.getChildCount();f<g;f++){var h=a.getChild(f);h.type==CKEDITOR.NODE_ELEMENT&&h.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(h,b,c,d+1);if("li"==h.$.nodeName.toLowerCase()){var l={parent:a,indent:d,element:h,contents:[]};e?l.grandparent=e:(l.grandparent=a.getParent(),l.grandparent&&"li"==l.grandparent.$.nodeName.toLowerCase()&&(l.grandparent=
-l.grandparent.getParent()));b&&CKEDITOR.dom.element.setMarker(b,h,"listarray_index",c.length);c.push(l);for(var m=0,n=h.getChildCount(),t;m<n;m++)t=h.getChild(m),t.type==CKEDITOR.NODE_ELEMENT&&k[t.getName()]?CKEDITOR.plugins.list.listToArray(t,b,c,d+1,l.grandparent):l.contents.push(t)}}return c},arrayToList:function(a,c,d,e,f){d||(d=0);if(!a||a.length<d+1)return null;for(var h,l=a[d].parent.getDocument(),m=new CKEDITOR.dom.documentFragment(l),n=null,t=d,u=Math.max(a[d].indent,0),C=null,G,F,I=e==CKEDITOR.ENTER_P?
-"p":"div";;){var H=a[t];h=H.grandparent;G=H.element.getDirection(1);if(H.indent==u){n&&a[t].parent.getName()==n.getName()||(n=a[t].parent.clone(!1,1),f&&n.setAttribute("dir",f),m.append(n));C=n.append(H.element.clone(0,1));G!=n.getDirection(1)&&C.setAttribute("dir",G);for(h=0;h<H.contents.length;h++)C.append(H.contents[h].clone(1,1));t++}else if(H.indent==Math.max(u,0)+1)H=a[t-1].element.getDirection(1),t=CKEDITOR.plugins.list.arrayToList(a,null,t,e,H!=G?G:null),!C.getChildCount()&&CKEDITOR.env.needsNbspFiller&&
-7>=l.$.documentMode&&C.append(l.createText(" ")),C.append(t.listNode),t=t.nextIndex;else if(-1==H.indent&&!d&&h){k[h.getName()]?(C=H.element.clone(!1,!0),G!=h.getDirection(1)&&C.setAttribute("dir",G)):C=new CKEDITOR.dom.documentFragment(l);var n=h.getDirection(1)!=G,N=H.element,O=N.getAttribute("class"),E=N.getAttribute("style"),S=C.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(e!=CKEDITOR.ENTER_BR||n||E||O),L,P=H.contents.length,J;for(h=0;h<P;h++)if(L=H.contents[h],b(L)&&1<P)S?J=L.clone(1,1):C.append(L.clone(1,
-1));else if(L.type==CKEDITOR.NODE_ELEMENT&&L.isBlockBoundary()){n&&!L.getDirection()&&L.setAttribute("dir",G);F=L;var T=N.getAttribute("style");T&&F.setAttribute("style",T.replace(/([^;])$/,"$1;")+(F.getAttribute("style")||""));O&&L.addClass(O);F=null;J&&(C.append(J),J=null);C.append(L.clone(1,1))}else S?(F||(F=l.createElement(I),C.append(F),n&&F.setAttribute("dir",G)),E&&F.setAttribute("style",E),O&&F.setAttribute("class",O),J&&(F.append(J),J=null),F.append(L.clone(1,1))):C.append(L.clone(1,1));
-J&&((F||C).append(J),J=null);C.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&t!=a.length-1&&(CKEDITOR.env.needsBrFiller&&(G=C.getLast())&&G.type==CKEDITOR.NODE_ELEMENT&&G.is("br")&&G.remove(),(G=C.getLast(g))&&G.type==CKEDITOR.NODE_ELEMENT&&G.is(CKEDITOR.dtd.$block)||C.append(l.createElement("br")));G=C.$.nodeName.toLowerCase();"div"!=G&&"p"!=G||C.appendBogus();m.append(C);n=null;t++}else return null;F=null;if(a.length<=t||Math.max(a[t].indent,0)<u)break}if(c)for(a=m.getFirst();a;){if(a.type==CKEDITOR.NODE_ELEMENT&&
-(CKEDITOR.dom.element.clearMarkers(c,a),a.getName()in CKEDITOR.dtd.$listItem&&(d=a,l=f=e=void 0,e=d.getDirection()))){for(f=d.getParent();f&&!(l=f.getDirection());)f=f.getParent();e==l&&d.removeAttribute("dir")}a=a.getNextSourceNode()}return{listNode:m,nextIndex:t}}};var t=/^h[1-6]$/,u=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);e.prototype={exec:function(b){this.refresh(b,b.elementPath());var c=b.config,d=b.getSelection(),e=d&&d.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var h=b.editable();
-if(h.getFirst(g)){var l=1==e.length&&e[0];(c=l&&l.getEnclosedNode())&&c.is&&this.type==c.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else c.enterMode==CKEDITOR.ENTER_BR?h.appendBogus():e[0].fixBlock(1,c.enterMode==CKEDITOR.ENTER_P?"p":"div"),d.selectRanges(e)}for(var c=d.createBookmarks(!0),h=[],m={},e=e.createIterator(),n=0;(l=e.getNextRange())&&++n;){var y=l.getBoundaryNodes(),x=y.startNode,u=y.endNode;x.type==CKEDITOR.NODE_ELEMENT&&"td"==x.getName()&&l.setStartAt(y.startNode,CKEDITOR.POSITION_AFTER_START);
-u.type==CKEDITOR.NODE_ELEMENT&&"td"==u.getName()&&l.setEndAt(y.endNode,CKEDITOR.POSITION_BEFORE_END);l=l.createIterator();for(l.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;y=l.getNextParagraph();)if(!y.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(m,y,"list_block",1);for(var C=b.elementPath(y),x=C.elements,u=0,C=C.blockLimit,G,F=x.length-1;0<=F&&(G=x[F]);F--)if(k[G.getName()]&&C.contains(G)){C.removeCustomData("list_group_object_"+n);(x=G.getCustomData("list_group_object"))?x.contents.push(y):
-(x={root:G,contents:[y]},h.push(x),CKEDITOR.dom.element.setMarker(m,G,"list_group_object",x));u=1;break}u||(u=C,u.getCustomData("list_group_object_"+n)?u.getCustomData("list_group_object_"+n).contents.push(y):(x={root:u,contents:[y]},CKEDITOR.dom.element.setMarker(m,u,"list_group_object_"+n,x),h.push(x)))}}for(G=[];0<h.length;)if(x=h.shift(),this.state==CKEDITOR.TRISTATE_OFF)if(k[x.root.getName()]){e=b;n=x;x=m;l=G;u=CKEDITOR.plugins.list.listToArray(n.root,x);C=[];for(y=0;y<n.contents.length;y++)F=
-n.contents[y],(F=F.getAscendant("li",!0))&&!F.getCustomData("list_item_processed")&&(C.push(F),CKEDITOR.dom.element.setMarker(x,F,"list_item_processed",!0));for(var F=n.root.getDocument(),I=void 0,H=void 0,y=0;y<C.length;y++){var N=C[y].getCustomData("listarray_index"),I=u[N].parent;I.is(this.type)||(H=F.createElement(this.type),I.copyAttributes(H,{start:1,type:1}),H.removeStyle("list-style-type"),u[N].parent=H)}x=CKEDITOR.plugins.list.arrayToList(u,x,null,e.config.enterMode);u=void 0;C=x.listNode.getChildCount();
-for(y=0;y<C&&(u=x.listNode.getChild(y));y++)u.getName()==this.type&&l.push(u);x.listNode.replace(n.root);e.fire("contentDomInvalidated")}else{u=b;l=x;y=G;C=l.contents;e=l.root.getDocument();n=[];1==C.length&&C[0].equals(l.root)&&(x=e.createElement("div"),C[0].moveChildren&&C[0].moveChildren(x),C[0].append(x),C[0]=x);l=l.contents[0].getParent();for(F=0;F<C.length;F++)l=l.getCommonAncestor(C[F].getParent());I=u.config.useComputedState;u=x=void 0;I=void 0===I||I;for(F=0;F<C.length;F++)for(H=C[F];N=H.getParent();){if(N.equals(l)){n.push(H);
-!u&&H.getDirection()&&(u=1);H=H.getDirection(I);null!==x&&(x=x&&x!=H?null:H);break}H=N}if(!(1>n.length)){C=n[n.length-1].getNext();F=e.createElement(this.type);y.push(F);for(I=y=void 0;n.length;)y=n.shift(),I=e.createElement("li"),H=y,H.is("pre")||t.test(H.getName())||"false"==H.getAttribute("contenteditable")?y.appendTo(I):(y.copyAttributes(I),x&&y.getDirection()&&(I.removeStyle("direction"),I.removeAttribute("dir")),y.moveChildren(I),y.remove()),I.appendTo(F);x&&u&&F.setAttribute("dir",x);C?F.insertBefore(C):
-F.appendTo(l)}}else this.state==CKEDITOR.TRISTATE_ON&&k[x.root.getName()]&&a.call(this,b,x,m);for(F=0;F<G.length;F++)f(G[F]);CKEDITOR.dom.element.clearAllMarkers(m);d.selectBookmarks(c);b.focus()},refresh:function(a,b){var c=b.contains(k,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){a.blockless||(a.addCommand("numberedlist",
-new e("numberedlist","ol")),a.addCommand("bulletedlist",new e("bulletedlist","ul")),a.ui.addButton&&(a.ui.addButton("NumberedList",{label:a.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),a.ui.addButton("BulletedList",{label:a.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),a.on("key",function(b){var c=b.data.domEvent.getKey(),d;if("wysiwyg"==a.mode&&c in{8:1,46:1}){var e=a.getSelection().getRanges()[0],f=e&&e.startPath();if(e&&e.collapsed){var q=
-8==c,t=a.editable(),u=new CKEDITOR.dom.walker(e.clone());u.evaluator=function(a){return g(a)&&!n(a)};u.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};c=e.clone();if(q){var x;(x=f.contains(k))&&e.checkBoundaryOfElement(x,CKEDITOR.START)&&(x=x.getParent())&&x.is("li")&&(x=l(x))?(d=x,x=x.getPrevious(g),c.moveToPosition(x&&n(x)?x:d,CKEDITOR.POSITION_BEFORE_START)):(u.range.setStartAt(t,CKEDITOR.POSITION_AFTER_START),u.range.setEnd(e.startContainer,e.startOffset),(x=u.previous())&&
-x.type==CKEDITOR.NODE_ELEMENT&&(x.getName()in k||x.is("li"))&&(x.is("li")||(u.range.selectNodeContents(x),u.reset(),u.evaluator=h,x=u.previous()),d=x,c.moveToElementEditEnd(d),c.moveToPosition(c.endPath().block,CKEDITOR.POSITION_BEFORE_END)));if(d)m(a,c,e),b.cancel();else{var D=f.contains(k);D&&e.checkBoundaryOfElement(D,CKEDITOR.START)&&(d=D.getFirst(g),e.checkBoundaryOfElement(d,CKEDITOR.START)&&(x=D.getPrevious(g),l(d)?x&&(e.moveToElementEditEnd(x),e.select()):a.execCommand("outdent"),b.cancel()))}}else if(d=
-f.contains("li")){if(u.range.setEndAt(t,CKEDITOR.POSITION_BEFORE_END),q=(t=d.getLast(g))&&h(t)?t:d,f=0,(x=u.next())&&x.type==CKEDITOR.NODE_ELEMENT&&x.getName()in k&&x.equals(t)?(f=1,x=u.next()):e.checkBoundaryOfElement(q,CKEDITOR.END)&&(f=2),f&&x){e=e.clone();e.moveToElementEditStart(x);if(1==f&&(c.optimize(),!c.startContainer.equals(d))){for(d=c.startContainer;d.is(CKEDITOR.dtd.$inline);)D=d,d=d.getParent();D&&c.moveToPosition(D,CKEDITOR.POSITION_AFTER_END)}2==f&&(c.moveToPosition(c.endPath().block,
-CKEDITOR.POSITION_BEFORE_END),e.endPath().block&&e.moveToPosition(e.endPath().block,CKEDITOR.POSITION_AFTER_START));m(a,c,e);b.cancel()}}else u.range.setEndAt(t,CKEDITOR.POSITION_BEFORE_END),(x=u.next())&&x.type==CKEDITOR.NODE_ELEMENT&&x.is(k)&&(x=x.getFirst(g),f.block&&e.checkStartOfBlock()&&e.checkEndOfBlock()?(f.block.remove(),e.moveToElementEditStart(x),e.select()):l(x)?(e.moveToElementEditStart(x),e.select()):(e=e.clone(),e.moveToElementEditStart(x),m(a,c,e)),b.cancel());setTimeout(function(){a.selectionChange(1)})}}}))}})}(),
-"use strict",function(){function a(a,b,c){return n(b)&&n(c)&&c.equals(b.getNext(function(a){return!(ca(a)||da(a)||t(a))}))}function e(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}function c(a){var b=a.element;if(b&&n(b)&&(b=b.getAscendant(a.triggers,!0))&&a.editable.contains(b)){var c=l(b);if("true"==c.getAttribute("contenteditable"))return b;if(c.is(a.triggers))return c}return null}function f(a,b,c){q(a,b);q(a,c);a=b.size.bottom;c=c.size.top;return a&&c?0|(a+c)/2:a||c}function h(a,
-b,c){return b=b[c?"getPrevious":"getNext"](function(b){return b&&b.type==CKEDITOR.NODE_TEXT&&!ca(b)||n(b)&&!t(b)&&!g(a,b)})}function m(a,b,c){return a>b&&a<c}function l(a,b){if(a.data("cke-editable"))return null;for(b||(a=a.getParent());a&&!a.data("cke-editable");){if(a.hasAttribute("contenteditable"))return a;a=a.getParent()}return null}function k(a){var b=a.doc,c=G('\x3cspan contenteditable\x3d"false" style\x3d"'+U+"position:absolute;border-top:1px dashed "+a.boxColor+'"\x3e\x3c/span\x3e',b),e=
-CKEDITOR.getUrl(this.path+"images/"+(F.hidpi?"hidpi/":"")+"icon"+(a.rtl?"-rtl":"")+".png");D(c,{attach:function(){this.wrap.getParent()||this.wrap.appendTo(a.editable,!0);return this},lineChildren:[D(G('\x3cspan title\x3d"'+a.editor.lang.magicline.title+'" contenteditable\x3d"false"\x3e\x26#8629;\x3c/span\x3e',b),{base:U+"height:17px;width:17px;"+(a.rtl?"left":"right")+":17px;background:url("+e+") center no-repeat "+a.boxColor+";cursor:pointer;"+(F.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":
-"")+(F.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px; border-radius: 2px;","top:-17px; border-radius: 2px 2px 0px 0px;","top:-1px; border-radius: 0px 0px 2px 2px;"]}),D(G(ba,b),{base:R+"left:0px;border-left-color:"+a.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),D(G(ba,b),{base:R+"right:0px;border-right-color:"+a.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px",
-"border-width:0 8px 8px 0;top:0px"]})],detach:function(){this.wrap.getParent()&&this.wrap.remove();return this},mouseNear:function(){q(a,this);var b=a.holdDistance,c=this.size;return c&&m(a.mouse.y,c.top-b,c.bottom+b)&&m(a.mouse.x,c.left-b,c.right+b)?!0:!1},place:function(){var b=a.view,c=a.editable,d=a.trigger,e=d.upper,f=d.lower,g=e||f,h=g.getParent(),k={};this.trigger=d;e&&q(a,e,!0);f&&q(a,f,!0);q(a,h,!0);a.inInlineMode&&z(a,!0);h.equals(c)?(k.left=b.scroll.x,k.right=-b.scroll.x,k.width=""):(k.left=
-g.size.left-g.size.margin.left+b.scroll.x-(a.inInlineMode?b.editable.left+b.editable.border.left:0),k.width=g.size.outerWidth+g.size.margin.left+g.size.margin.right+b.scroll.x,k.right="");e&&f?k.top=e.size.margin.bottom===f.size.margin.top?0|e.size.bottom+e.size.margin.bottom/2:e.size.margin.bottom<f.size.margin.top?e.size.bottom+e.size.margin.bottom:e.size.bottom+e.size.margin.bottom-f.size.margin.top:e?f||(k.top=e.size.bottom+e.size.margin.bottom):k.top=f.size.top-f.size.margin.top;d.is(P)||m(k.top,
-b.scroll.y-15,b.scroll.y+5)?(k.top=a.inInlineMode?0:b.scroll.y,this.look(P)):d.is(J)||m(k.top,b.pane.bottom-5,b.pane.bottom+15)?(k.top=a.inInlineMode?b.editable.height+b.editable.padding.top+b.editable.padding.bottom:b.pane.bottom-1,this.look(J)):(a.inInlineMode&&(k.top-=b.editable.top+b.editable.border.top),this.look(T));a.inInlineMode&&(k.top--,k.top+=b.editable.scroll.top,k.left+=b.editable.scroll.left);for(var l in k)k[l]=CKEDITOR.tools.cssLength(k[l]);this.setStyles(k)},look:function(a){if(this.oldLook!=
-a){for(var b=this.lineChildren.length,c;b--;)(c=this.lineChildren[b]).setAttribute("style",c.base+c.looks[0|a/2]);this.oldLook=a}},wrap:new C("span",a.doc)});for(b=c.lineChildren.length;b--;)c.lineChildren[b].appendTo(c);c.look(T);c.appendTo(c.wrap);c.unselectable();c.lineChildren[0].on("mouseup",function(b){c.detach();d(a,function(b){var c=a.line.trigger;b[c.is(O)?"insertBefore":"insertAfter"](c.is(O)?c.lower:c.upper)},!0);a.editor.focus();F.ie||a.enterMode==CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();
-b.data.preventDefault(!0)});c.on("mousedown",function(a){a.data.preventDefault(!0)});a.line=c}function d(a,b,c){var d=new CKEDITOR.dom.range(a.doc),e=a.editor,f;F.ie&&a.enterMode==CKEDITOR.ENTER_BR?f=a.doc.createText(V):(f=(f=l(a.element,!0))&&f.data("cke-enter-mode")||a.enterMode,f=new C(N[f],a.doc),f.is("br")||a.doc.createText(V).appendTo(f));c&&e.fire("saveSnapshot");b(f);d.moveToPosition(f,CKEDITOR.POSITION_AFTER_START);e.getSelection().selectRanges([d]);a.hotNode=f;c&&e.fire("saveSnapshot")}
-function b(a,b){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function e(c){var f=F.ie&&9>F.version?" ":V,g=a.hotNode&&a.hotNode.getText()==f&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!b;d(a,function(d){g&&a.hotNode&&a.hotNode.remove();d[b?"insertAfter":"insertBefore"](c);d.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!b});a.lastCmdDirection=!!b});F.ie||a.enterMode==CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();a.line.detach()}return function(d){d=d.getSelection().getStartElement();
-var f;d=d.getAscendant(K,1);if(!p(a,d)&&d&&!d.equals(a.editable)&&!d.contains(a.editable)){(f=l(d))&&"false"==f.getAttribute("contenteditable")&&(d=f);a.element=d;f=h(a,d,!b);var g;n(f)&&f.is(a.triggers)&&f.is(M)&&(!h(a,f,!b)||(g=h(a,f,!b))&&n(g)&&g.is(a.triggers))?e(f):(g=c(a,d),n(g)&&(h(a,g,!b)?(d=h(a,g,!b))&&n(d)&&d.is(a.triggers)&&e(g):e(g)))}}}()}}function g(a,b){if(!b||b.type!=CKEDITOR.NODE_ELEMENT||!b.$)return!1;var c=a.line;return c.wrap.equals(b)||c.wrap.contains(b)}function n(a){return a&&
-a.type==CKEDITOR.NODE_ELEMENT&&a.$}function t(a){if(!n(a))return!1;var b;(b=u(a))||(n(a)?(b={left:1,right:1,center:1},b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])):b=!1);return b}function u(a){return!!{absolute:1,fixed:1}[a.getComputedStyle("position")]}function w(a,b){return n(b)?b.is(a.triggers):null}function p(a,b){if(!b)return!1;for(var c=b.getParents(1),d=c.length;d--;)for(var e=a.tabuList.length;e--;)if(c[d].hasAttribute(a.tabuList[e]))return!0;return!1}function r(a,b,c){b=
-b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&&!b.is(X)});if(!b)return!1;q(a,b);return c?b.size.top>a.mouse.y:b.size.bottom<a.mouse.y}function v(a){var b=a.editable,c=a.mouse,d=a.view,f=a.triggerOffset;z(a);var h=c.y>(a.inInlineMode?d.editable.top+d.editable.height/2:Math.min(d.editable.height,d.pane.height)/2),b=b[h?"getLast":"getFirst"](function(a){return!(ca(a)||da(a))});if(!b)return null;g(a,b)&&(b=a.line.wrap[h?"getPrevious":"getNext"](function(a){return!(ca(a)||da(a))}));if(!n(b)||
-t(b)||!w(a,b))return null;q(a,b);return!h&&0<=b.size.top&&m(c.y,0,b.size.top+f)?(a=a.inInlineMode||0===d.scroll.y?P:T,new e([null,b,O,L,a])):h&&b.size.bottom<=d.pane.height&&m(c.y,b.size.bottom-f,d.pane.height)?(a=a.inInlineMode||m(b.size.bottom,d.pane.height-f,d.pane.height)?J:T,new e([b,null,E,L,a])):null}function A(a){var b=a.mouse,d=a.view,f=a.triggerOffset,g=c(a);if(!g)return null;q(a,g);var f=Math.min(f,0|g.size.outerHeight/2),k=[],l,p;if(m(b.y,g.size.top-1,g.size.top+f))p=!1;else if(m(b.y,
-g.size.bottom-f,g.size.bottom+1))p=!0;else return null;if(t(g)||r(a,g,p)||g.getParent().is(W))return null;var v=h(a,g,!p);if(v){if(v&&v.type==CKEDITOR.NODE_TEXT)return null;if(n(v)){if(t(v)||!w(a,v)||v.getParent().is(W))return null;k=[v,g][p?"reverse":"concat"]().concat([S,L])}}else g.equals(a.editable[p?"getLast":"getFirst"](a.isRelevant))?(z(a),p&&m(b.y,g.size.bottom-f,d.pane.height)&&m(g.size.bottom,d.pane.height-f,d.pane.height)?l=J:m(b.y,0,g.size.top+f)&&(l=P)):l=T,k=[null,g][p?"reverse":"concat"]().concat([p?
-E:O,L,l,g.equals(a.editable[p?"getLast":"getFirst"](a.isRelevant))?p?J:P:T]);return 0 in k?new e(k):null}function B(a,b,c,d){for(var e=b.getDocumentPosition(),f={},g={},h={},k={},l=ea.length;l--;)f[ea[l]]=parseInt(b.getComputedStyle.call(b,"border-"+ea[l]+"-width"),10)||0,h[ea[l]]=parseInt(b.getComputedStyle.call(b,"padding-"+ea[l]),10)||0,g[ea[l]]=parseInt(b.getComputedStyle.call(b,"margin-"+ea[l]),10)||0;c&&!d||y(a,d);k.top=e.y-(c?0:a.view.scroll.y);k.left=e.x-(c?0:a.view.scroll.x);k.outerWidth=
-b.$.offsetWidth;k.outerHeight=b.$.offsetHeight;k.height=k.outerHeight-(h.top+h.bottom+f.top+f.bottom);k.width=k.outerWidth-(h.left+h.right+f.left+f.right);k.bottom=k.top+k.outerHeight;k.right=k.left+k.outerWidth;a.inInlineMode&&(k.scroll={top:b.$.scrollTop,left:b.$.scrollLeft});return D({border:f,padding:h,margin:g,ignoreScroll:c},k,!0)}function q(a,b,c){if(!n(b))return b.size=null;if(!b.size)b.size={};else if(b.size.ignoreScroll==c&&b.size.date>new Date-Q)return null;return D(b.size,B(a,b,c),{date:+new Date},
-!0)}function z(a,b){a.view.editable=B(a,a.editable,b,!0)}function y(a,b){a.view||(a.view={});var c=a.view;if(!(!b&&c&&c.date>new Date-Q)){var d=a.win,c=d.getScrollPosition(),d=d.getViewPaneSize();D(a.view,{scroll:{x:c.x,y:c.y,width:a.doc.$.documentElement.scrollWidth-d.width,height:a.doc.$.documentElement.scrollHeight-d.height},pane:{width:d.width,height:d.height,bottom:d.height+c.y},date:+new Date},!0)}}function x(a,b,c,d){for(var f=d,g=d,h=0,k=!1,l=!1,m=a.view.pane.height,p=a.mouse;p.y+h<m&&0<p.y-
-h;){k||(k=b(f,d));l||(l=b(g,d));!k&&0<p.y-h&&(f=c(a,{x:p.x,y:p.y-h}));!l&&p.y+h<m&&(g=c(a,{x:p.x,y:p.y+h}));if(k&&l)break;h+=2}return new e([f,g,null,null])}CKEDITOR.plugins.add("magicline",{init:function(a){var f=a.config,l=f.magicline_triggerOffset||30,m={editor:a,enterMode:f.enterMode,triggerOffset:l,holdDistance:0|l*(f.magicline_holdDistance||.5),boxColor:f.magicline_color||"#ff0000",rtl:"rtl"==f.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(f.magicline_tabuList||[]),triggers:f.magicline_everywhere?
-K:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},q,r,w;m.isRelevant=function(a){return n(a)&&!g(m,a)&&!t(a)};a.on("contentDom",function(){var l=a.editable(),n=a.document,t=a.window;D(m,{editable:l,inInlineMode:l.isInline(),doc:n,win:t,hotNode:null},!0);m.boundary=m.inInlineMode?m.editable:m.doc.getDocumentElement();l.is(H.$inline)||(m.inInlineMode&&!u(l)&&l.setStyles({position:"relative",top:null,left:null}),k.call(this,m),y(m),l.attachListener(a,"beforeUndoImage",function(){m.line.detach()}),
-l.attachListener(a,"beforeGetData",function(){m.line.wrap.getParent()&&(m.line.detach(),a.once("getData",function(){m.line.attach()},null,null,1E3))},null,null,0),l.attachListener(m.inInlineMode?n:n.getWindow().getFrame(),"mouseout",function(b){if("wysiwyg"==a.mode)if(m.inInlineMode){var c=b.data.$.clientX;b=b.data.$.clientY;y(m);z(m,!0);var d=m.view.editable,e=m.view.scroll;c>d.left-e.x&&c<d.right-e.x&&b>d.top-e.y&&b<d.bottom-e.y||(clearTimeout(w),w=null,m.line.detach())}else clearTimeout(w),w=null,
-m.line.detach()}),l.attachListener(l,"keyup",function(){m.hiddenMode=0}),l.attachListener(l,"keydown",function(b){if("wysiwyg"==a.mode)switch(b.data.getKeystroke()){case 2228240:case 16:m.hiddenMode=1,m.line.detach()}}),l.attachListener(m.inInlineMode?l:n,"mousemove",function(b){r=!0;if("wysiwyg"==a.mode&&!a.readOnly&&!w){var c={x:b.data.$.clientX,y:b.data.$.clientY};w=setTimeout(function(){m.mouse=c;w=m.trigger=null;y(m);r&&!m.hiddenMode&&a.focusManager.hasFocus&&!m.line.mouseNear()&&(m.element=
-Y(m,!0))&&((m.trigger=v(m)||A(m)||aa(m))&&!p(m,m.trigger.upper||m.trigger.lower)?m.line.attach().place():(m.trigger=null,m.line.detach()),r=!1)},30)}}),l.attachListener(t,"scroll",function(){"wysiwyg"==a.mode&&(m.line.detach(),F.webkit&&(m.hiddenMode=1,clearTimeout(q),q=setTimeout(function(){m.mouseDown||(m.hiddenMode=0)},50)))}),l.attachListener(I?n:t,"mousedown",function(){"wysiwyg"==a.mode&&(m.line.detach(),m.hiddenMode=1,m.mouseDown=1)}),l.attachListener(I?n:t,"mouseup",function(){m.hiddenMode=
-0;m.mouseDown=0}),a.addCommand("accessPreviousSpace",b(m)),a.addCommand("accessNextSpace",b(m,!0)),a.setKeystroke([[f.magicline_keystrokePrevious,"accessPreviousSpace"],[f.magicline_keystrokeNext,"accessNextSpace"]]),a.on("loadSnapshot",function(){var b,c,d,e;for(e in{p:1,br:1,div:1})for(b=a.document.getElementsByTag(e),d=b.count();d--;)if((c=b.getItem(d)).data("cke-magicline-hot")){m.hotNode=c;m.lastCmdDirection="true"===c.data("cke-magicline-dir")?!0:!1;return}}),this.backdoor={accessFocusSpace:d,
-boxTrigger:e,isLine:g,getAscendantTrigger:c,getNonEmptyNeighbour:h,getSize:B,that:m,triggerEdge:A,triggerEditable:v,triggerExpand:aa})},this)}});var D=CKEDITOR.tools.extend,C=CKEDITOR.dom.element,G=C.createFromHtml,F=CKEDITOR.env,I=CKEDITOR.env.ie&&9>CKEDITOR.env.version,H=CKEDITOR.dtd,N={},O=128,E=64,S=32,L=16,P=4,J=2,T=1,V=" ",W=H.$listItem,X=H.$tableContent,M=D({},H.$nonEditable,H.$empty),K=H.$block,Q=100,U="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",
-R=U+"border-color:transparent;display:block;border-style:solid;",ba="\x3cspan\x3e"+V+"\x3c/span\x3e";N[CKEDITOR.ENTER_BR]="br";N[CKEDITOR.ENTER_P]="p";N[CKEDITOR.ENTER_DIV]="div";e.prototype={set:function(a,b,c){this.properties=a+b+(c||T);return this},is:function(a){return(this.properties&a)==a}};var Y=function(){function a(b,c){var d=b.$.elementFromPoint(c.x,c.y);return d&&d.nodeType?new CKEDITOR.dom.element(d):null}return function(b,c,d){if(!b.mouse)return null;var e=b.doc,f=b.line.wrap;d=d||b.mouse;
-var h=a(e,d);c&&g(b,h)&&(f.hide(),h=a(e,d),f.show());return!h||h.type!=CKEDITOR.NODE_ELEMENT||!h.$||F.ie&&9>F.version&&!b.boundary.equals(h)&&!b.boundary.contains(h)?null:h}}(),ca=CKEDITOR.dom.walker.whitespaces(),da=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),aa=function(){function b(d){var e=d.element,g,h,k;if(!n(e)||e.contains(d.editable)||e.isReadOnly())return null;k=x(d,function(a,b){return!b.equals(a)},function(a,b){return Y(a,!0,b)},e);g=k.upper;h=k.lower;if(a(d,g,h))return k.set(S,
-8);if(g&&e.contains(g))for(;!g.getParent().equals(e);)g=g.getParent();else g=e.getFirst(function(a){return c(d,a)});if(h&&e.contains(h))for(;!h.getParent().equals(e);)h=h.getParent();else h=e.getLast(function(a){return c(d,a)});if(!g||!h)return null;q(d,g);q(d,h);if(!m(d.mouse.y,g.size.top,h.size.bottom))return null;for(var e=Number.MAX_VALUE,l,p,v,r;h&&!h.equals(g)&&(p=g.getNext(d.isRelevant));)l=Math.abs(f(d,g,p)-d.mouse.y),l<e&&(e=l,v=g,r=p),g=p,q(d,g);if(!v||!r||!m(d.mouse.y,v.size.top,r.size.bottom))return null;
-k.upper=v;k.lower=r;return k.set(S,8)}function c(a,b){return!(b&&b.type==CKEDITOR.NODE_TEXT||da(b)||t(b)||g(a,b)||b.type==CKEDITOR.NODE_ELEMENT&&b.$&&b.is("br"))}return function(c){var d=b(c),e;if(e=d){e=d.upper;var f=d.lower;e=!e||!f||t(f)||t(e)||f.equals(e)||e.equals(f)||f.contains(e)||e.contains(f)?!1:w(c,e)&&w(c,f)&&a(c,e,f)?!0:!1}return e?d:null}}(),ea=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51,CKEDITOR.config.magicline_keystrokeNext=
-CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function a(a){if(!a||a.type!=CKEDITOR.NODE_ELEMENT||"form"!=a.getName())return[];for(var c=[],e=["style","className"],d=0;d<e.length;d++){var b=a.$.elements.namedItem(e[d]);b&&(b=new CKEDITOR.dom.element(b),c.push([b,b.nextSibling]),b.remove())}return c}function e(a,c){if(a&&a.type==CKEDITOR.NODE_ELEMENT&&"form"==a.getName()&&0<c.length)for(var e=c.length-1;0<=e;e--){var d=c[e][0],b=c[e][1];b?d.insertBefore(b):d.appendTo(a)}}function c(c,f){var h=a(c),d=
-{},b=c.$;f||(d["class"]=b.className||"",b.className="");d.inline=b.style.cssText||"";f||(b.style.cssText="position: static; overflow: visible");e(h);return d}function f(c,f){var h=a(c),d=c.$;"class"in f&&(d.className=f["class"]);"inline"in f&&(d.style.cssText=f.inline);e(h)}function h(a){if(!a.editable().isInline()){var c=CKEDITOR.instances,e;for(e in c){var d=c[e];"wysiwyg"!=d.mode||d.readOnly||(d=d.document.getBody(),d.setAttribute("contentEditable",!1),d.setAttribute("contentEditable",!0))}a.editable().hasFocus&&
-(a.toolbox.focus(),a.focus())}}CKEDITOR.plugins.add("maximize",{init:function(a){function e(){var c=b.getViewPaneSize();a.resize(c.width,c.height,null,!0)}if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var k=a.lang,d=CKEDITOR.document,b=d.getWindow(),g,n,t,u=CKEDITOR.TRISTATE_OFF;a.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var w=a.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}),
-p=a.ui.space("contents");if("wysiwyg"==a.mode){var r=a.getSelection();g=r&&r.getRanges();n=b.getScrollPosition()}else{var v=a.editable().$;g=!CKEDITOR.env.ie&&[v.selectionStart,v.selectionEnd];n=[v.scrollLeft,v.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){b.on("resize",e);t=b.getScrollPosition();for(r=a.container;r=r.getParent();)r.setCustomData("maximize_saved_styles",c(r)),r.setStyle("z-index",a.config.baseFloatZIndex-5);p.setCustomData("maximize_saved_styles",c(p,!0));w.setCustomData("maximize_saved_styles",
-c(w,!0));p={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};d.getDocumentElement().setStyles(p);!CKEDITOR.env.gecko&&d.getDocumentElement().setStyle("position","fixed");CKEDITOR.env.gecko&&CKEDITOR.env.quirks||d.getBody().setStyles(p);CKEDITOR.env.ie?setTimeout(function(){b.$.scrollTo(0,0)},0):b.$.scrollTo(0,0);w.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");w.$.offsetLeft;w.setStyles({"z-index":a.config.baseFloatZIndex-5,left:"0px",top:"0px"});w.addClass("cke_maximized");
-e();p=w.getDocumentPosition();w.setStyles({left:-1*p.x+"px",top:-1*p.y+"px"});CKEDITOR.env.gecko&&h(a)}else if(this.state==CKEDITOR.TRISTATE_ON){b.removeListener("resize",e);for(var r=[p,w],A=0;A<r.length;A++)f(r[A],r[A].getCustomData("maximize_saved_styles")),r[A].removeCustomData("maximize_saved_styles");for(r=a.container;r=r.getParent();)f(r,r.getCustomData("maximize_saved_styles")),r.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){b.$.scrollTo(t.x,t.y)},0):b.$.scrollTo(t.x,
-t.y);w.removeClass("cke_maximized");CKEDITOR.env.webkit&&(w.setStyle("display","inline"),setTimeout(function(){w.setStyle("display","block")},0));a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:p.$.offsetHeight,outerWidth:a.container.$.offsetWidth})}this.toggleState();if(r=this.uiItems[0])p=this.state==CKEDITOR.TRISTATE_OFF?k.maximize.maximize:k.maximize.minimize,r=CKEDITOR.document.getById(r._.id),r.getChild(1).setHtml(p),r.setAttribute("title",p),r.setAttribute("href",'javascript:void("'+
-p+'");');"wysiwyg"==a.mode?g?(CKEDITOR.env.gecko&&h(a),a.getSelection().selectRanges(g),(v=a.getSelection().getStartElement())&&v.scrollIntoView(!0)):b.$.scrollTo(n.x,n.y):(g&&(v.selectionStart=g[0],v.selectionEnd=g[1]),v.scrollLeft=n[0],v.scrollTop=n[1]);g=n=null;u=this.state;a.fire("maximize",this.state)},canUndo:!1});a.ui.addButton&&a.ui.addButton("Maximize",{label:k.maximize.maximize,command:"maximize",toolbar:"tools,10"});a.on("mode",function(){var b=a.getCommand("maximize");b.setState(b.state==
-CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:u)},null,null,100)}}})}(),function(){function a(a,c,f){var h=CKEDITOR.cleanWord;h?f():(a=CKEDITOR.getUrl(a.config.pasteFromWordCleanupFile||c+"filter/default.js"),CKEDITOR.scriptLoader.load(a,f,null,!0));return!h}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(e){var c=0,f=this.path;e.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(a,e){c=1;a.execCommand("paste",{type:"html",notification:e&&"undefined"!==
-typeof e.notification?e.notification:!0})}});e.ui.addButton&&e.ui.addButton("PasteFromWord",{label:e.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});e.on("paste",function(h){var m=h.data,l=(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?m.dataTransfer.getData("text/html",!0):null)||m.dataValue,k={dataValue:l},d=/(class=\"?Mso|style=(?:\"|\')[^\"]*?\bmso\-|w:WordDocument|<o:\w+>|<\/font>)/,d=/<meta\s*name=(?:\"|\')?generator(?:\"|\')?\s*content=(?:\"|\')?microsoft/gi.test(l)||
-d.test(l);if(l&&(c||d)&&(!1!==e.fire("pasteFromWord",k)||c)){m.dontFilter=!0;var b=a(e,f,function(){if(b)e.fire("paste",m);else if(!e.config.pasteFromWordPromptCleanup||c||confirm(e.lang.pastefromword.confirmCleanup))k.dataValue=CKEDITOR.cleanWord(k.dataValue,e),e.fire("afterPasteFromWord",k),m.dataValue=k.dataValue;c=0});b&&h.cancel()}},null,null,3)}})}(),function(){var a={canUndo:!1,async:!0,exec:function(a,c){var f=a.lang,h=CKEDITOR.tools.keystrokeToString(f.common.keyboard,a.getCommandKeystroke(CKEDITOR.env.ie?
-a.commands.paste:this)),m=c&&"undefined"!==typeof c.notification?c.notification:!c||!c.from||"keystrokeHandler"===c.from&&CKEDITOR.env.ie,f=m&&"string"===typeof m?m:f.pastetext.pasteNotification.replace(/%1/,'\x3ckbd aria-label\x3d"'+h.aria+'"\x3e'+h.display+"\x3c/kbd\x3e");a.execCommand("paste",{type:"text",notification:m?f:!1})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(e){var c=CKEDITOR.env.safari?CKEDITOR.CTRL+CKEDITOR.ALT+CKEDITOR.SHIFT+86:CKEDITOR.CTRL+CKEDITOR.SHIFT+
-86;e.addCommand("pastetext",a);e.setKeystroke(c,"pastetext");e.ui.addButton&&e.ui.addButton("PasteText",{label:e.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(e.config.forcePasteAsPlainText)e.on("beforePaste",function(a){"html"!=a.data.type&&(a.data.type="text")});e.on("pasteState",function(a){e.getCommand("pastetext").setState(a.data)})}})}(),CKEDITOR.plugins.add("removeformat",{init:function(a){a.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);
-a.ui.addButton&&a.ui.addButton("RemoveFormat",{label:a.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(a){for(var e=a._.removeFormatRegex||(a._.removeFormatRegex=new RegExp("^(?:"+a.config.removeFormatTags.replace(/,/g,"|")+")$","i")),c=a._.removeAttributes||(a._.removeAttributes=a.config.removeFormatAttributes.split(",")),f=CKEDITOR.plugins.removeformat.filter,h=a.getSelection().getRanges(),m=h.createIterator(),
-l=function(a){return a.type==CKEDITOR.NODE_ELEMENT},k;k=m.getNextRange();){k.collapsed||k.enlarge(CKEDITOR.ENLARGE_ELEMENT);var d=k.createBookmark(),b=d.startNode,g=d.endNode,n=function(b){for(var c=a.elementPath(b),d=c.elements,g=1,h;(h=d[g])&&!h.equals(c.block)&&!h.equals(c.blockLimit);g++)e.test(h.getName())&&f(a,h)&&b.breakParent(h)};n(b);if(g)for(n(g),b=b.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);b&&!b.equals(g);)if(b.isReadOnly()){if(b.getPosition(g)&CKEDITOR.POSITION_CONTAINS)break;b=b.getNext(l)}else n=
-b.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==b.getName()&&b.data("cke-realelement")||!f(a,b)||(e.test(b.getName())?b.remove(1):(b.removeAttributes(c),a.fire("removeFormatCleanup",b))),b=n;k.moveToBookmark(d)}a.forceNextSelectionCheck();a.getSelection().selectRanges(h)}}},filter:function(a,e){for(var c=a._.removeFormatFilters||[],f=0;f<c.length;f++)if(!1===c[f](e))return!1;return!0}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(a){this._.removeFormatFilters||(this._.removeFormatFilters=
-[]);this._.removeFormatFilters.push(a)},CKEDITOR.config.removeFormatTags="b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var",CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign",function(){function a(a,f,h){var m,l;if(h="string"==typeof h?CKEDITOR.document.getById(h):new CKEDITOR.dom.element(h))if(m=a.fire("uiSpace",{space:f,html:""}).html)a.on("uiSpace",function(a){a.data.space==f&&a.cancel()},null,null,1),l=h.append(CKEDITOR.dom.element.createFromHtml(e.output({id:a.id,
-name:a.name,langDir:a.lang.dir,langCode:a.langCode,space:f,spaceId:a.ui.spaceId(f),content:m}))),h.getCustomData("cke_hasshared")?l.hide():h.setCustomData("cke_hasshared",1),l.unselectable(),l.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()}),a.focusManager.add(l,1),a.on("focus",function(){for(var a=0,c,b=h.getChildren();c=b.getItem(a);a++)c.type==CKEDITOR.NODE_ELEMENT&&!c.equals(l)&&c.hasClass("cke_shared")&&c.hide();l.show()}),a.on("destroy",function(){l.remove()})}
-var e=CKEDITOR.addTemplate("sharedcontainer",'\x3cdiv id\x3d"cke_{name}" class\x3d"cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_shared cke_detached cke_{langDir} '+CKEDITOR.env.cssClass+'" dir\x3d"{langDir}" title\x3d"'+(CKEDITOR.env.gecko?" ":"")+'" lang\x3d"{langCode}" role\x3d"presentation"\x3e\x3cdiv class\x3d"cke_inner"\x3e\x3cdiv id\x3d"{spaceId}" class\x3d"cke_{space}" role\x3d"presentation"\x3e{content}\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');CKEDITOR.plugins.add("sharedspace",{init:function(c){c.on("loaded",
-function(){var e=c.config.sharedSpaces;if(e)for(var h in e)a(c,h,e[h])},null,null,9)}})}(),function(){var a={readOnly:1,preserveState:!0,editorFocus:!1,exec:function(a){this.toggleState();this.refresh(a)},refresh:function(a){if(a.document){var c=this.state!=CKEDITOR.TRISTATE_ON||a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!a.focusManager.hasFocus?"removeClass":"attachClass";a.editable()[c]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){var a="p div pre address blockquote h1 h2 h3 h4 h5 h6".split(" "),
-c,f,h,m,l=CKEDITOR.getUrl(this.path),k=!(CKEDITOR.env.ie&&9>CKEDITOR.env.version),d=k?":not([contenteditable\x3dfalse]):not(.cke_show_blocks_off)":"",b,g;for(c=f=h=m="";b=a.pop();)g=a.length?",":"",c+=".cke_show_blocks "+b+d+g,h+=".cke_show_blocks.cke_contents_ltr "+b+d+g,m+=".cke_show_blocks.cke_contents_rtl "+b+d+g,f+=".cke_show_blocks "+b+d+"{background-image:url("+CKEDITOR.getUrl(l+"images/block_"+b+".png")+")}";CKEDITOR.addCss((c+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(f,
-h+"{background-position:top left;padding-left:8px}",m+"{background-position:top right;padding-right:8px}"));k||CKEDITOR.addCss(".cke_show_blocks [contenteditable\x3dfalse],.cke_show_blocks .cke_show_blocks_off{border:none;padding-top:0;background-image:none}.cke_show_blocks.cke_contents_rtl [contenteditable\x3dfalse],.cke_show_blocks.cke_contents_rtl .cke_show_blocks_off{padding-right:0}.cke_show_blocks.cke_contents_ltr [contenteditable\x3dfalse],.cke_show_blocks.cke_contents_ltr .cke_show_blocks_off{padding-left:0}")},
-init:function(e){function c(){f.refresh(e)}if(!e.blockless){var f=e.addCommand("showblocks",a);f.canUndo=!1;e.config.startupOutlineBlocks&&f.setState(CKEDITOR.TRISTATE_ON);e.ui.addButton&&e.ui.addButton("ShowBlocks",{label:e.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"});e.on("mode",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&f.refresh(e)});e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(e.on("focus",c),e.on("blur",c));e.on("contentDom",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&
-f.refresh(e)})}}})}(),function(){var a={preserveState:!0,editorFocus:!1,readOnly:1,exec:function(a){this.toggleState();this.refresh(a)},refresh:function(a){if(a.document){var c=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";a.editable()[c]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var a;a=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:".%1 table.%2,;.%1 table.%2 \x3e tr \x3e td, .%1 table.%2 \x3e tr \x3e th,;.%1 table.%2 \x3e tbody \x3e tr \x3e td, .%1 table.%2 \x3e tbody \x3e tr \x3e th,;.%1 table.%2 \x3e thead \x3e tr \x3e td, .%1 table.%2 \x3e thead \x3e tr \x3e th,;.%1 table.%2 \x3e tfoot \x3e tr \x3e td, .%1 table.%2 \x3e tfoot \x3e tr \x3e th;{;border : #d3d3d3 1px dotted;}".split(";")).join("").replace(/%2/g,
-"cke_show_border").replace(/%1/g,"cke_show_borders ");CKEDITOR.addCss(a)},init:function(e){var c=e.addCommand("showborders",a);c.canUndo=!1;!1!==e.config.startupShowBorders&&c.setState(CKEDITOR.TRISTATE_ON);e.on("mode",function(){c.state!=CKEDITOR.TRISTATE_DISABLED&&c.refresh(e)},null,null,100);e.on("contentDom",function(){c.state!=CKEDITOR.TRISTATE_DISABLED&&c.refresh(e)});e.on("removeFormatCleanup",function(a){a=a.data;e.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&a.is("table")&&(!a.hasAttribute("border")||
-0>=parseInt(a.getAttribute("border"),10))&&a.addClass("cke_show_border")})},afterInit:function(a){var c=a.dataProcessor;a=c&&c.dataFilter;c=c&&c.htmlFilter;a&&a.addRules({elements:{table:function(a){a=a.attributes;var c=a["class"],e=parseInt(a.border,10);e&&!(0>=e)||c&&-1!=c.indexOf("cke_show_border")||(a["class"]=(c||"")+" cke_show_border")}}});c&&c.addRules({elements:{table:function(a){a=a.attributes;var c=a["class"];c&&(a["class"]=c.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,
-""))}}})}});CKEDITOR.on("dialogDefinition",function(a){var c=a.data.name;if("table"==c||"tableProperties"==c)if(a=a.data.definition,c=a.getContents("info").get("txtBorder"),c.commit=CKEDITOR.tools.override(c.commit,function(a){return function(c,e){a.apply(this,arguments);var l=parseInt(this.getValue(),10);e[!l||0>=l?"addClass":"removeClass"]("cke_show_border")}}),a=(a=a.getContents("advanced"))&&a.get("advCSSClasses"))a.setup=CKEDITOR.tools.override(a.setup,function(a){return function(){a.apply(this,
-arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}}),a.commit=CKEDITOR.tools.override(a.commit,function(a){return function(c,e){a.apply(this,arguments);parseInt(e.getAttribute("border"),10)||e.addClass("cke_show_border")}})})}(),function(){CKEDITOR.plugins.add("sourcearea",{init:function(e){function c(){var a=h&&this.equals(CKEDITOR.document.getActive());this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+
-"px");this.show();a&&this.focus()}if(e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var f=CKEDITOR.plugins.sourcearea;e.addMode("source",function(f){var h=e.ui.space("contents").getDocument().createElement("textarea");h.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)));h.setAttribute("dir","ltr");h.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");
-e.ui.space("contents").append(h);h=e.editable(new a(e,h));h.setData(e.getData(1));CKEDITOR.env.ie&&(h.attachListener(e,"resize",c,h),h.attachListener(CKEDITOR.document.getWindow(),"resize",c,h),CKEDITOR.tools.setTimeout(c,0,h));e.fire("ariaWidget",this);f()});e.addCommand("source",f.commands.source);e.ui.addButton&&e.ui.addButton("Source",{label:e.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});e.on("mode",function(){e.getCommand("source").setState("source"==e.mode?CKEDITOR.TRISTATE_ON:
-CKEDITOR.TRISTATE_OFF)});var h=CKEDITOR.env.ie&&9==CKEDITOR.env.version}}});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){"wysiwyg"==a.mode&&a.fire("saveSnapshot");a.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);a.setMode("source"==a.mode?"wysiwyg":"source")},canUndo:!1}}},CKEDITOR.plugins.add("sourcedialog",{requires:"dialog",init:function(a){a.addCommand("sourcedialog",new CKEDITOR.dialogCommand("sourcedialog"));CKEDITOR.dialog.add("sourcedialog",this.path+"dialogs/sourcedialog.js");
-a.ui.addButton&&a.ui.addButton("Sourcedialog",{label:a.lang.sourcedialog.toolbar,command:"sourcedialog",toolbar:"mode,10"})}}),CKEDITOR.plugins.add("specialchar",{availableLangs:{af:1,ar:1,az:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-au":1,"en-ca":1,"en-gb":1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,nb:1,nl:1,no:1,oc:1,pl:1,pt:1,"pt-br":1,ru:1,si:1,sk:1,sl:1,sq:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},
-requires:"dialog",init:function(a){var e=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");a.addCommand("specialchar",{exec:function(){var c=a.langCode,c=e.availableLangs[c]?c:e.availableLangs[c.replace(/-.*/,"")]?c.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e.path+"dialogs/lang/"+c+".js"),function(){CKEDITOR.tools.extend(a.lang.specialchar,e.langEntries[c]);a.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1});a.ui.addButton&&a.ui.addButton("SpecialChar",
-{label:a.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! \x26quot; # $ % \x26amp; ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; \x26lt; \x3d \x26gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ \x26euro; \x26lsquo; \x26rsquo; \x26ldquo; \x26rdquo; \x26ndash; \x26mdash; \x26iexcl; \x26cent; \x26pound; \x26curren; \x26yen; \x26brvbar; \x26sect; \x26uml; \x26copy; \x26ordf; \x26laquo; \x26not; \x26reg; \x26macr; \x26deg; \x26sup2; \x26sup3; \x26acute; \x26micro; \x26para; \x26middot; \x26cedil; \x26sup1; \x26ordm; \x26raquo; \x26frac14; \x26frac12; \x26frac34; \x26iquest; \x26Agrave; \x26Aacute; \x26Acirc; \x26Atilde; \x26Auml; \x26Aring; \x26AElig; \x26Ccedil; \x26Egrave; \x26Eacute; \x26Ecirc; \x26Euml; \x26Igrave; \x26Iacute; \x26Icirc; \x26Iuml; \x26ETH; \x26Ntilde; \x26Ograve; \x26Oacute; \x26Ocirc; \x26Otilde; \x26Ouml; \x26times; \x26Oslash; \x26Ugrave; \x26Uacute; \x26Ucirc; \x26Uuml; \x26Yacute; \x26THORN; \x26szlig; \x26agrave; \x26aacute; \x26acirc; \x26atilde; \x26auml; \x26aring; \x26aelig; \x26ccedil; \x26egrave; \x26eacute; \x26ecirc; \x26euml; \x26igrave; \x26iacute; \x26icirc; \x26iuml; \x26eth; \x26ntilde; \x26ograve; \x26oacute; \x26ocirc; \x26otilde; \x26ouml; \x26divide; \x26oslash; \x26ugrave; \x26uacute; \x26ucirc; \x26uuml; \x26yacute; \x26thorn; \x26yuml; \x26OElig; \x26oelig; \x26#372; \x26#374 \x26#373 \x26#375; \x26sbquo; \x26#8219; \x26bdquo; \x26hellip; \x26trade; \x26#9658; \x26bull; \x26rarr; \x26rArr; \x26hArr; \x26diams; \x26asymp;".split(" "),
-function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(a){var e=a.config,c=a.lang.stylescombo,f={},h=[],m=[];a.on("stylesSet",function(c){if(c=c.data.styles){for(var k,d,b,g=0,n=c.length;g<n;g++)(k=c[g],a.blockless&&k.element in CKEDITOR.dtd.$block||"string"==typeof k.type&&!CKEDITOR.style.customHandlers[k.type]||(d=k.name,k=new CKEDITOR.style(k),a.filter.customConfig&&!a.filter.check(k)))||(k._name=d,k._.enterMode=e.enterMode,k._.type=b=k.assignedTo||k.type,k._.weight=
-g+1E3*(b==CKEDITOR.STYLE_OBJECT?1:b==CKEDITOR.STYLE_BLOCK?2:3),f[d]=k,h.push(k),m.push(k));h.sort(function(a,b){return a._.weight-b._.weight})}});a.ui.addRichCombo("Styles",{label:c.label,title:c.panelTitle,toolbar:"styles,10",allowedContent:m,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(e.contentsCss),multiSelect:!0,attributes:{"aria-label":c.panelTitle}},init:function(){var a,e,d,b,f,m;f=0;for(m=h.length;f<m;f++)a=h[f],e=a._name,b=a._.type,b!=d&&(this.startGroup(c["panelTitle"+String(b)]),
-d=b),this.add(e,a.type==CKEDITOR.STYLE_OBJECT?e:a.buildPreview(),e);this.commit()},onClick:function(c){a.focus();a.fire("saveSnapshot");c=f[c];var e=a.elementPath();if(c.group&&c.removeStylesFromSameGroup(a))a.applyStyle(c);else a[c.checkActive(e,a)?"removeStyle":"applyStyle"](c);a.fire("saveSnapshot")},onRender:function(){a.on("selectionChange",function(c){var e=this.getValue();c=c.data.path.elements;for(var d=0,b=c.length,g;d<b;d++){g=c[d];for(var h in f)if(f[h].checkElementRemovable(g,!0,a)){h!=
-e&&this.setValue(h);return}}this.setValue("")},this)},onOpen:function(){var e=a.getSelection().getSelectedElement()||a.editable(),e=a.elementPath(e),h=[0,0,0,0];this.showAll();this.unmarkAll();for(var d in f){var b=f[d],g=b._.type;b.checkApplicable(e,a,a.activeFilter)?h[g]++:this.hideItem(d);b.checkActive(e,a)&&this.mark(d)}h[CKEDITOR.STYLE_BLOCK]||this.hideGroup(c["panelTitle"+String(CKEDITOR.STYLE_BLOCK)]);h[CKEDITOR.STYLE_INLINE]||this.hideGroup(c["panelTitle"+String(CKEDITOR.STYLE_INLINE)]);h[CKEDITOR.STYLE_OBJECT]||
-this.hideGroup(c["panelTitle"+String(CKEDITOR.STYLE_OBJECT)])},refresh:function(){var c=a.elementPath();if(c){for(var e in f)if(f[e].checkApplicable(c,a,a.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){f={};h=[]}})}})}(),function(){function a(a){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(c){if(c.editable().hasFocus){var e=c.getSelection(),f;if(f=(new CKEDITOR.dom.elementPath(e.getCommonAncestor(),e.root)).contains({td:1,th:1},1)){var e=c.createRange(),
-d=CKEDITOR.tools.tryThese(function(){var b=f.getParent().$.cells[f.$.cellIndex+(a?-1:1)];b.parentNode.parentNode;return b},function(){var b=f.getParent(),b=b.getAscendant("table").$.rows[b.$.rowIndex+(a?-1:1)];return b.cells[a?b.cells.length-1:0]});if(d||a)if(d)d=new CKEDITOR.dom.element(d),e.moveToElementEditStart(d),e.checkStartOfBlock()&&e.checkEndOfBlock()||e.selectNodeContents(d);else return!0;else{for(var b=f.getAscendant("table").$,d=f.getParent().$.cells,b=new CKEDITOR.dom.element(b.insertRow(-1),
-c.document),g=0,n=d.length;g<n;g++)b.append((new CKEDITOR.dom.element(d[g],c.document)).clone(!1,!1)).appendBogus();e.moveToElementEditStart(b)}e.select(!0);return!0}}return!1}}}var e={editorFocus:!1,modes:{wysiwyg:1,source:1}},c={exec:function(a){a.container.focusNext(!0,a.tabIndex)}},f={exec:function(a){a.container.focusPrevious(!0,a.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(h){for(var m=!1!==h.config.enableTabKeyTools,l=h.config.tabSpaces||0,k="";l--;)k+=" ";if(k)h.on("key",function(a){9==
-a.data.keyCode&&(h.insertText(k),a.cancel())});if(m)h.on("key",function(a){(9==a.data.keyCode&&h.execCommand("selectNextCell")||a.data.keyCode==CKEDITOR.SHIFT+9&&h.execCommand("selectPreviousCell"))&&a.cancel()});h.addCommand("blur",CKEDITOR.tools.extend(c,e));h.addCommand("blurBack",CKEDITOR.tools.extend(f,e));h.addCommand("selectNextCell",a());h.addCommand("selectPreviousCell",a(!0))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(a,e){var c=void 0===e?this.getTabIndex():e,f,h,m,l,k,d;if(0>=
-c)for(k=this.getNextSourceNode(a,CKEDITOR.NODE_ELEMENT);k;){if(k.isVisible()&&0===k.getTabIndex()){m=k;break}k=k.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(k=this.getDocument().getBody().getFirst();k=k.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!f)if(!h&&k.equals(this)){if(h=!0,a){if(!(k=k.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;f=1}}else h&&!this.contains(k)&&(f=1);if(k.isVisible()&&!(0>(d=k.getTabIndex()))){if(f&&d==c){m=k;break}d>c&&(!m||!l||d<l)?(m=k,l=d):m||0!==d||
-(m=k,l=d)}}m&&m.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(a,e){for(var c=void 0===e?this.getTabIndex():e,f,h,m,l=0,k,d=this.getDocument().getBody().getLast();d=d.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!f)if(!h&&d.equals(this)){if(h=!0,a){if(!(d=d.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;f=1}}else h&&!this.contains(d)&&(f=1);if(d.isVisible()&&!(0>(k=d.getTabIndex())))if(0>=c){if(f&&0===k){m=d;break}k>l&&(m=d,l=k)}else{if(f&&k==c){m=d;break}k<c&&(!m||
-k>l)&&(m=d,l=k)}}m&&m.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(a){function e(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,c){this.setState(c.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!a.blockless){var c=a.lang.table;a.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];"+
-(a.plugins.dialogadvtab?"table"+a.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"],["td: splitBorderShorthand"],[{element:"table",right:function(a){a.styles&&(a.styles.border&&a.styles.border.match(/solid/)&&(a.attributes.border=1),"collapse"==a.styles["border-collapse"]&&(a.attributes.cellspacing=0))}}]]}));a.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",e()));a.addCommand("tableDelete",
-e({exec:function(a){var c=a.elementPath().contains("table",1);if(c){var e=c.getParent(),l=a.editable();1!=e.getChildCount()||e.is("td","th")||e.equals(l)||(c=e);a=a.createRange();a.moveToPosition(c,CKEDITOR.POSITION_BEFORE_START);c.remove();a.select()}}}));a.ui.addButton&&a.ui.addButton("Table",{label:c.toolbar,command:"table",toolbar:"insert,30"});CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");a.addMenuItems&&a.addMenuItems({table:{label:c.menu,
-command:"tableProperties",group:"table",order:5},tabledelete:{label:c.deleteTable,command:"tableDelete",group:"table",order:1}});a.on("doubleclick",function(a){a.data.element.is("table")&&(a.data.dialog="tableProperties")});a.contextMenu&&a.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function a(a,b){function c(a){return b?b.contains(a)&&a.getAscendant("table",!0).equals(b):!0}function d(a){0<e.length||a.type!=CKEDITOR.NODE_ELEMENT||
-!u.test(a.getName())||a.getCustomData("selected_cell")||(CKEDITOR.dom.element.setMarker(f,a,"selected_cell",!0),e.push(a))}var e=[],f={};if(!a)return e;for(var g=a.getRanges(),h=0;h<g.length;h++){var k=g[h];if(k.collapsed)(k=k.getCommonAncestor().getAscendant({td:1,th:1},!0))&&c(k)&&e.push(k);else{var k=new CKEDITOR.dom.walker(k),l;for(k.guard=d;l=k.next();)l.type==CKEDITOR.NODE_ELEMENT&&l.is(CKEDITOR.dtd.table)||(l=l.getAscendant({td:1,th:1},!0))&&!l.getCustomData("selected_cell")&&c(l)&&(CKEDITOR.dom.element.setMarker(f,
-l,"selected_cell",!0),e.push(l))}}CKEDITOR.dom.element.clearAllMarkers(f);return e}function e(b,c){for(var d=w(b)?b:a(b),e=d[0],f=e.getAscendant("table"),e=e.getDocument(),g=d[0].getParent(),h=g.$.rowIndex,d=d[d.length-1],k=d.getParent().$.rowIndex+d.$.rowSpan-1,d=new CKEDITOR.dom.element(f.$.rows[k]),h=c?h:k,g=c?g:d,d=CKEDITOR.tools.buildTableMap(f),f=d[h],h=c?d[h-1]:d[h+1],d=d[0].length,e=e.createElement("tr"),k=0;f[k]&&k<d;k++){var l;1<f[k].rowSpan&&h&&f[k]==h[k]?(l=f[k],l.rowSpan+=1):(l=(new CKEDITOR.dom.element(f[k])).clone(),
-l.removeAttribute("rowSpan"),l.appendBogus(),e.append(l),l=l.$);k+=l.colSpan-1}c?e.insertBefore(g):e.insertAfter(g);return e}function c(b){if(b instanceof CKEDITOR.dom.selection){var d=b.getRanges(),e=a(b),f=e[0].getAscendant("table"),g=CKEDITOR.tools.buildTableMap(f),h=e[0].getParent().$.rowIndex,e=e[e.length-1],k=e.getParent().$.rowIndex+e.$.rowSpan-1,e=[];b.reset();for(b=h;b<=k;b++){for(var l=g[b],m=new CKEDITOR.dom.element(f.$.rows[b]),n=0;n<l.length;n++){var t=new CKEDITOR.dom.element(l[n]),
-u=t.getParent().$.rowIndex;1==t.$.rowSpan?t.remove():(--t.$.rowSpan,u==b&&(u=g[b+1],u[n-1]?t.insertAfter(new CKEDITOR.dom.element(u[n-1])):(new CKEDITOR.dom.element(f.$.rows[b+1])).append(t,1)));n+=t.$.colSpan-1}e.push(m)}g=f.$.rows;d[0].moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);h=new CKEDITOR.dom.element(g[k+1]||(0<h?g[h-1]:null)||f.$.parentNode);for(b=e.length;0<=b;b--)c(e[b]);return f.$.parentNode?h:(d[0].select(),null)}b instanceof CKEDITOR.dom.element&&(f=b.getAscendant("table"),1==f.$.rows.length?
-f.remove():b.remove());return null}function f(a,b){for(var c=a.getParent().$.cells,d=0,e=0;e<c.length;e++){var f=c[e],d=d+(b?1:f.colSpan);if(f==a.$)break}return d-1}function h(a,b){for(var c=b?Infinity:0,d=0;d<a.length;d++){var e=f(a[d],b);if(b?e<c:e>c)c=e}return c}function m(b,c){for(var d=w(b)?b:a(b),e=d[0].getAscendant("table"),f=h(d,1),d=h(d),g=c?f:d,k=CKEDITOR.tools.buildTableMap(e),e=[],f=[],d=[],l=k.length,m=0;m<l;m++)e.push(k[m][g]),f.push(c?k[m][g-1]:k[m][g+1]);for(m=0;m<l;m++)e[m]&&(1<e[m].colSpan&&
-f[m]==e[m]?(k=e[m],k.colSpan+=1):(g=new CKEDITOR.dom.element(e[m]),k=g.clone(),k.removeAttribute("colSpan"),k.appendBogus(),k[c?"insertBefore":"insertAfter"].call(k,g),d.push(k),k=k.$),m+=k.rowSpan-1);return d}function l(a,b){var c=a.getStartElement().getAscendant({td:1,th:1},!0);if(c){var d=c.clone();d.appendBogus();b?d.insertBefore(c):d.insertAfter(c)}}function k(b){if(b instanceof CKEDITOR.dom.selection){var c=b.getRanges(),e=a(b),f=e[0]&&e[0].getAscendant("table"),g;a:{var h=0;g=e.length-1;for(var l=
-{},m,n;m=e[h++];)CKEDITOR.dom.element.setMarker(l,m,"delete_cell",!0);for(h=0;m=e[h++];)if((n=m.getPrevious())&&!n.getCustomData("delete_cell")||(n=m.getNext())&&!n.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(l);g=n;break a}CKEDITOR.dom.element.clearAllMarkers(l);h=e[0].getParent();(h=h.getPrevious())?g=h.getLast():(h=e[g].getParent(),g=(h=h.getNext())?h.getChild(0):null)}b.reset();for(b=e.length-1;0<=b;b--)k(e[b]);g?d(g,!0):f&&(c[0].moveToPosition(f,CKEDITOR.POSITION_BEFORE_START),
-c[0].select(),f.remove())}else b instanceof CKEDITOR.dom.element&&(c=b.getParent(),1==c.getChildCount()?c.remove():b.remove())}function d(a,b){var c=a.getDocument(),d=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(d.focus(),c.focus());c=new CKEDITOR.dom.range(c);c["moveToElementEdit"+(b?"End":"Start")](a)||(c.selectNodeContents(a),c.collapse(b?!1:!0));c.select(!0)}function b(a,b,c){a=a[b];if("undefined"==typeof c)return a;for(b=0;a&&b<a.length;b++){if(c.is&&a[b]==c.$)return b;if(b==
-c)return new CKEDITOR.dom.element(a[b])}return c.is?-1:null}function g(c,d,e){var f=a(c),g;if((d?1!=f.length:2>f.length)||(g=c.getCommonAncestor())&&g.type==CKEDITOR.NODE_ELEMENT&&g.is("table"))return!1;var h;c=f[0];g=c.getAscendant("table");var k=CKEDITOR.tools.buildTableMap(g),l=k.length,m=k[0].length,n=c.getParent().$.rowIndex,t=b(k,n,c);if(d){var u;try{var w=parseInt(c.getAttribute("rowspan"),10)||1;h=parseInt(c.getAttribute("colspan"),10)||1;u=k["up"==d?n-w:"down"==d?n+w:n]["left"==d?t-h:"right"==
-d?t+h:t]}catch(I){return!1}if(!u||c.$==u)return!1;f["up"==d||"left"==d?"unshift":"push"](new CKEDITOR.dom.element(u))}d=c.getDocument();var H=n,w=u=0,N=!e&&new CKEDITOR.dom.documentFragment(d),O=0;for(d=0;d<f.length;d++){h=f[d];var E=h.getParent(),S=h.getFirst(),L=h.$.colSpan,P=h.$.rowSpan,E=E.$.rowIndex,J=b(k,E,h),O=O+L*P,w=Math.max(w,J-t+L);u=Math.max(u,E-n+P);e||(L=h,(P=L.getBogus())&&P.remove(),L.trim(),h.getChildren().count()&&(E==H||!S||S.isBlockBoundary&&S.isBlockBoundary({br:1})||(H=N.getLast(CKEDITOR.dom.walker.whitespaces(!0)),
-!H||H.is&&H.is("br")||N.append("br")),h.moveChildren(N)),d?h.remove():h.setHtml(""));H=E}if(e)return u*w==O;N.moveChildren(c);c.appendBogus();w>=m?c.removeAttribute("rowSpan"):c.$.rowSpan=u;u>=l?c.removeAttribute("colSpan"):c.$.colSpan=w;e=new CKEDITOR.dom.nodeList(g.$.rows);f=e.count();for(d=f-1;0<=d;d--)g=e.getItem(d),g.$.cells.length||(g.remove(),f++);return c}function n(c,d){var e=a(c);if(1<e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(g),
-k=f.$.rowIndex,l=b(h,k,e),m=e.$.rowSpan,n;if(1<m){n=Math.ceil(m/2);for(var m=Math.floor(m/2),f=k+n,g=new CKEDITOR.dom.element(g.$.rows[f]),h=b(h,f),t,f=e.clone(),k=0;k<h.length;k++)if(t=h[k],t.parentNode==g.$&&k>l){f.insertBefore(new CKEDITOR.dom.element(t));break}else t=null;t||g.append(f)}else for(m=n=1,g=f.clone(),g.insertAfter(f),g.append(f=e.clone()),t=b(h,k),l=0;l<t.length;l++)t[l].rowSpan++;f.appendBogus();e.$.rowSpan=n;f.$.rowSpan=m;1==n&&e.removeAttribute("rowSpan");1==m&&f.removeAttribute("rowSpan");
-return f}function t(c,d){var e=a(c);if(1<e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(g),h=b(g,f.$.rowIndex,e),k=e.$.colSpan;if(1<k)f=Math.ceil(k/2),k=Math.floor(k/2);else{for(var k=f=1,l=[],m=0;m<g.length;m++){var n=g[m];l.push(n[h]);1<n[h].rowSpan&&(m+=n[h].rowSpan-1)}for(g=0;g<l.length;g++)l[g].colSpan++}g=e.clone();g.insertAfter(e);g.appendBogus();e.$.colSpan=f;g.$.colSpan=k;1==f&&e.removeAttribute("colSpan");1==k&&g.removeAttribute("colSpan");
-return g}var u=/^(?:td|th)$/,w=CKEDITOR.tools.isArray;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(b){function f(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function h(a,c){var d=b.addCommand(a,c);b.addFeature(d)}var u=b.lang.table,w=CKEDITOR.tools.style.parse;h("cellProperties",new CKEDITOR.dialogCommand("cellProperties",f({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",
-requiredContent:"table",contentTransformations:[[{element:"td",left:function(a){return a.styles.background&&w.background(a.styles.background).color},right:function(a){a.styles["background-color"]=w.background(a.styles.background).color}},{element:"td",check:"td{vertical-align}",left:function(a){return a.attributes&&a.attributes.valign},right:function(a){a.styles["vertical-align"]=a.attributes.valign;delete a.attributes.valign}}],[{element:"tr",check:"td{height}",left:function(a){return a.styles&&
-a.styles.height},right:function(a){CKEDITOR.tools.array.forEach(a.children,function(b){b.name in{td:1,th:1}&&(b.attributes["cke-row-height"]=a.styles.height)});delete a.styles.height}}],[{element:"td",check:"td{height}",left:function(a){return(a=a.attributes)&&a["cke-row-height"]},right:function(a){a.styles.height=a.attributes["cke-row-height"];delete a.attributes["cke-row-height"]}}]]})));CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js");h("rowDelete",f({requiredContent:"table",
-exec:function(a){a=a.getSelection();(a=c(a))&&d(a)}}));h("rowInsertBefore",f({requiredContent:"table",exec:function(b){b=b.getSelection();b=a(b);e(b,!0)}}));h("rowInsertAfter",f({requiredContent:"table",exec:function(b){b=b.getSelection();b=a(b);e(b)}}));h("columnDelete",f({requiredContent:"table",exec:function(b){var c=b.getSelection();b=c.getRanges();var e=a(c),f=e[0],g=e[e.length-1],e=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(e),k,l,m=[];c.reset();for(var n=0,c=h.length;n<c;n++)for(var p=
-0,u=h[n].length;p<u;p++)h[n][p]==f.$&&(k=p),h[n][p]==g.$&&(l=p);for(n=k;n<=l;n++)for(p=0;p<h.length;p++)g=h[p],f=new CKEDITOR.dom.element(e.$.rows[p]),g=new CKEDITOR.dom.element(g[n]),g.$&&(1==g.$.colSpan?g.remove():--g.$.colSpan,p+=g.$.rowSpan-1,f.$.cells.length||m.push(f));l=e.$.rows[0]&&e.$.rows[0].cells;k=new CKEDITOR.dom.element(l[k]||(k?l[k-1]:e.$.parentNode));m.length==c&&(b[0].moveToPosition(e,CKEDITOR.POSITION_AFTER_END),b[0].select(),e.remove());k&&d(k,!0)}}));h("columnInsertBefore",f({requiredContent:"table",
-exec:function(b){b=b.getSelection();b=a(b);m(b,!0)}}));h("columnInsertAfter",f({requiredContent:"table",exec:function(b){b=b.getSelection();b=a(b);m(b)}}));h("cellDelete",f({requiredContent:"table",exec:function(a){a=a.getSelection();k(a)}}));h("cellMerge",f({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(a,b){b.cell=g(a.getSelection());d(b.cell,!0)}}));h("cellMergeRight",f({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a,b){b.cell=
-g(a.getSelection(),"right");d(b.cell,!0)}}));h("cellMergeDown",f({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a,b){b.cell=g(a.getSelection(),"down");d(b.cell,!0)}}));h("cellVerticalSplit",f({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){d(t(a.getSelection()))}}));h("cellHorizontalSplit",f({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){d(n(a.getSelection()))}}));h("cellInsertBefore",f({requiredContent:"table",
-exec:function(a){a=a.getSelection();l(a,!0)}}));h("cellInsertAfter",f({requiredContent:"table",exec:function(a){a=a.getSelection();l(a)}}));b.addMenuItems&&b.addMenuItems({tablecell:{label:u.cell.menu,group:"tablecell",order:1,getItems:function(){var c=b.getSelection(),d=a(c);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:g(c,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:g(c,
-"right",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:g(c,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:t(c,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:n(c,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:0<d.length?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:u.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:u.cell.insertAfter,
-group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:u.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:u.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:u.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:u.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:u.cell.splitHorizontal,group:"tablecell",
-command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:u.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:u.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:u.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:u.row.insertBefore,
-group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:u.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:u.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:u.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:u.column.insertBefore,
-group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:u.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:u.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}});b.contextMenu&&b.contextMenu.addListener(function(a,b,c){return(a=c.contains({td:1,th:1},1))&&!a.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getCellColIndex:f,
-insertRow:e,insertColumn:m,getSelectedCells:a};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(a,e,c,f,h){a=a.$.rows;c=c||0;f="number"===typeof f?f:a.length-1;h="number"===typeof h?h:-1;var m=-1,l=[];for(e=e||0;e<=f;e++){m++;!l[m]&&(l[m]=[]);for(var k=-1,d=c;d<=(-1===h?a[e].cells.length-1:h);d++){var b=a[e].cells[d];if(!b)break;for(k++;l[m][k];)k++;for(var g=isNaN(b.colSpan)?1:b.colSpan,b=isNaN(b.rowSpan)?1:b.rowSpan,n=0;n<b&&!(e+n>f);n++){l[m+
-n]||(l[m+n]=[]);for(var t=0;t<g;t++)l[m+n][k+t]=a[e].cells[d]}k+=g-1;if(-1!==h&&k>=h)break}}return l},function(){function a(a){return CKEDITOR.env.ie?a.$.clientWidth:parseInt(a.getComputedStyle("width"),10)}function e(a,c){var d=a.getComputedStyle("border-"+c+"-width"),e={thin:"0px",medium:"1px",thick:"2px"};0>d.indexOf("px")&&(d=d in e&&"none"!=a.getComputedStyle("border-style")?e[d]:0);return parseInt(d,10)}function c(a){a=a.$.rows;for(var c=0,d,e,f,h=0,k=a.length;h<k;h++)f=a[h],d=f.cells.length,
-d>c&&(c=d,e=f);return e}function f(a){function d(a){a&&(a=new CKEDITOR.dom.element(a),k+=a.$.offsetHeight,l||(l=a.getDocumentPosition()))}var f=[],h=-1,k=0,l=null,m="rtl"==a.getComputedStyle("direction"),r=c(a);d(a.$.tHead);d(a.$.tBodies[0]);d(a.$.tFoot);if(r)for(var v=0,A=r.cells.length;v<A;v++){var B=new CKEDITOR.dom.element(r.cells[v]),q=r.cells[v+1]&&new CKEDITOR.dom.element(r.cells[v+1]),h=h+(B.$.colSpan||1),z,y,x=B.getDocumentPosition().x;m?y=x+e(B,"left"):z=x+B.$.offsetWidth-e(B,"right");q?
-(x=q.getDocumentPosition().x,m?z=x+q.$.offsetWidth-e(q,"right"):y=x+e(q,"left")):(x=a.getDocumentPosition().x,m?z=x:y=x+a.$.offsetWidth);B=Math.max(y-z,3);f.push({table:a,index:h,x:z,y:l.y,width:B,height:k,rtl:m})}return f}function h(a){(a.data||a).preventDefault()}function m(b){function c(){A=0;v.setOpacity(0);q&&f();var a=p.table;setTimeout(function(){a.removeCustomData("_cke_table_pillars")},0);r.removeListener("dragstart",h)}function f(){for(var c=p.rtl,d=c?x.length:y.length,g=0,h=0;h<d;h++){var l=
-y[h],m=x[h],n=p.table;CKEDITOR.tools.setTimeout(function(a,e,f,h,l,m){a&&a.setStyle("width",k(Math.max(e+m,1)));f&&f.setStyle("width",k(Math.max(h-m,1)));l&&n.setStyle("width",k(l+m*(c?-1:1)));++g==d&&b.fire("saveSnapshot")},0,this,[l,l&&a(l),m,m&&a(m),(!l||!m)&&a(n)+e(n,"left")+e(n,"right"),q])}}function l(c){h(c);b.fire("saveSnapshot");c=p.index;for(var d=CKEDITOR.tools.buildTableMap(p.table),e=[],f=[],g=Number.MAX_VALUE,k=g,n=p.rtl,t=0,z=d.length;t<z;t++){var P=d[t],J=P[c+(n?1:0)],P=P[c+(n?0:1)],
-J=J&&new CKEDITOR.dom.element(J),P=P&&new CKEDITOR.dom.element(P);J&&P&&J.equals(P)||(J&&(g=Math.min(g,a(J))),P&&(k=Math.min(k,a(P))),e.push(J),f.push(P))}y=e;x=f;D=p.x-g;C=p.x+k;v.setOpacity(.5);B=parseInt(v.getStyle("left"),10);q=0;A=1;v.on("mousemove",w);r.on("dragstart",h);r.on("mouseup",m,this)}function m(a){a.removeListener();c()}function w(a){z(a.data.getPageOffset().x)}var p,r,v,A,B,q,z,y,x,D,C;r=b.document;v=CKEDITOR.dom.element.createFromHtml('\x3cdiv data-cke-temp\x3d1 contenteditable\x3dfalse unselectable\x3don style\x3d"position:absolute;cursor:col-resize;filter:alpha(opacity\x3d0);opacity:0;padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"\x3e\x3c/div\x3e',
-r);b.on("destroy",function(){v.remove()});d||r.getDocumentElement().append(v);this.attachTo=function(a){A||(d&&(r.getBody().append(v),q=0),p=a,v.setStyles({width:k(a.width),height:k(a.height),left:k(a.x),top:k(a.y)}),d&&v.setOpacity(.25),v.on("mousedown",l,this),r.getBody().setStyle("cursor","col-resize"),v.show())};z=this.move=function(a){if(!p)return 0;if(!A&&(a<p.x||a>p.x+p.width))return p=null,A=q=0,r.removeListener("mouseup",m),v.removeListener("mousedown",l),v.removeListener("mousemove",w),
-r.getBody().setStyle("cursor","auto"),d?v.remove():v.hide(),0;a-=Math.round(v.$.offsetWidth/2);if(A){if(a==D||a==C)return 1;a=Math.max(a,D);a=Math.min(a,C);q=a-B}v.setStyle("left",k(a));return 1}}function l(a){var c=a.data.getTarget();if("mouseout"==a.name){if(!c.is("table"))return;for(var d=new CKEDITOR.dom.element(a.data.$.relatedTarget||a.data.$.toElement);d&&d.$&&!d.equals(c)&&!d.is("body");)d=d.getParent();if(!d||d.equals(c))return}c.getAscendant("table",1).removeCustomData("_cke_table_pillars");
-a.removeListener()}var k=CKEDITOR.tools.cssLength,d=CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks);CKEDITOR.plugins.add("tableresize",{requires:"tabletools",init:function(a){a.on("contentDom",function(){var c,d=a.editable();d.attachListener(d.isInline()?d:a.document,"mousemove",function(d){d=d.data;var e=d.getTarget();if(e.type==CKEDITOR.NODE_ELEMENT){var k=d.getPageOffset().x;if(c&&c.move(k))h(d);else if(e.is("table")||e.getAscendant({thead:1,tbody:1,tfoot:1},1))if(e=e.getAscendant("table",
-1),a.editable().contains(e)){(d=e.getCustomData("_cke_table_pillars"))||(e.setCustomData("_cke_table_pillars",d=f(e)),e.on("mouseout",l),e.on("mousedown",l));a:{for(var e=0,n=d.length;e<n;e++){var r=d[e];if(k>=r.x&&k<=r.x+r.width){k=r;break a}}k=null}k&&(!c&&(c=new m(a)),c.attachTo(k))}}})})}})}(),"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(e){function d(a){f.enabled&&!1!==a.data.command.canUndo&&
-f.save()}function b(){f.enabled=e.readOnly?!1:"wysiwyg"==e.mode;f.onChange()}var f=e.undoManager=new c(e),h=f.editingHandler=new m(f),l=e.addCommand("undo",{exec:function(){f.undo()&&(e.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),u=e.addCommand("redo",{exec:function(){f.redo()&&(e.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});e.setKeystroke([[a[0],"undo"],[a[1],"redo"],[a[2],"redo"]]);f.onChange=function(){l.setState(f.undoable()?CKEDITOR.TRISTATE_OFF:
-CKEDITOR.TRISTATE_DISABLED);u.setState(f.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};e.on("beforeCommandExec",d);e.on("afterCommandExec",d);e.on("saveSnapshot",function(a){f.save(a.data&&a.data.contentOnly)});e.on("contentDom",h.attachListeners,h);e.on("instanceReady",function(){e.fire("saveSnapshot")});e.on("beforeModeUnload",function(){"wysiwyg"==e.mode&&f.save(!0)});e.on("mode",b);e.on("readOnly",b);e.ui.addButton&&(e.ui.addButton("Undo",{label:e.lang.undo.undo,command:"undo",
-toolbar:"undo,10"}),e.ui.addButton("Redo",{label:e.lang.undo.redo,command:"redo",toolbar:"undo,20"}));e.resetUndo=function(){f.reset();e.fire("saveSnapshot")};e.on("updateSnapshot",function(){f.currentImage&&f.update()});e.on("lockSnapshot",function(a){a=a.data;f.lock(a&&a.dontUpdate,a&&a.forceUpdate)});e.on("unlockSnapshot",f.unlock,f)}});CKEDITOR.plugins.undo={};var c=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()};c.prototype={type:function(a,d){var b=c.getKeyGroup(a),e=this.strokesRecorded[b]+1;d=d||e>=this.strokesLimit;this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange());d?(e=0,this.editor.fire("saveSnapshot")):this.editor.fire("change");this.strokesRecorded[b]=e;this.previousKeyGroup=b},keyGroupChanged:function(a){return c.getKeyGroup(a)!=this.previousKeyGroup},reset:function(){this.snapshots=[];this.index=-1;this.currentImage=null;
-this.hasRedo=this.hasUndo=!1;this.locked=null;this.resetType()},resetType:function(){this.strokesRecorded=[0,0];this.typing=!1;this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(!0);this.hasRedo=!!this.getNextImage(!1);this.resetType();this.onChange()},save:function(a,c,b){var e=this.editor;if(this.locked||"ready"!=e.status||"wysiwyg"!=e.mode)return!1;var h=e.editable();if(!h||"ready"!=h.status)return!1;h=this.snapshots;c||(c=new f(e));if(!1===c.contents)return!1;if(this.currentImage)if(c.equalsContent(this.currentImage)){if(a||
-c.equalsSelection(this.currentImage))return!1}else!1!==b&&e.fire("change");h.splice(this.index+1,h.length-this.index-1);h.length==this.limit&&h.shift();this.index=h.push(c)-1;this.currentImage=c;!1!==b&&this.refreshState();return!0},restoreImage:function(a){var c=this.editor,b;a.bookmarks&&(c.focus(),b=c.getSelection());this.locked={level:999};this.editor.loadSnapshot(a.contents);a.bookmarks?b.selectBookmarks(a.bookmarks):CKEDITOR.env.ie&&(b=this.editor.document.getBody().$.createTextRange(),b.collapse(!0),
-b.select());this.locked=null;this.index=a.index;this.currentImage=this.snapshots[this.index];this.update();this.refreshState();c.fire("change")},getNextImage:function(a){var c=this.snapshots,b=this.currentImage,e;if(b)if(a)for(e=this.index-1;0<=e;e--){if(a=c[e],!b.equalsContent(a))return a.index=e,a}else for(e=this.index+1;e<c.length;e++)if(a=c[e],!b.equalsContent(a))return a.index=e,a;return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},
-undo:function(){if(this.undoable()){this.save(!0);var a=this.getNextImage(!0);if(a)return this.restoreImage(a),!0}return!1},redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var a=this.getNextImage(!1);if(a)return this.restoreImage(a),!0}return!1},update:function(a){if(!this.locked){a||(a=new f(this.editor));for(var c=this.index,b=this.snapshots;0<c&&this.currentImage.equalsContent(b[c-1]);)--c;b.splice(c,this.index-c+1,a);this.index=c;this.currentImage=a}},updateSelection:function(a){if(!this.snapshots.length)return!1;
-var c=this.snapshots,b=c[c.length-1];return b.equalsContent(a)&&!b.equalsSelection(a)?(this.currentImage=c[c.length-1]=a,!0):!1},lock:function(a,c){if(this.locked)this.locked.level++;else if(a)this.locked={level:1};else{var b=null;if(c)b=!0;else{var e=new f(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(e)&&(b=e)}this.locked={update:b,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var a=this.locked.update;this.locked=null;if(!0===a)this.update();else if(a){var c=
-new f(this.editor,!0);a.equalsContent(c)||this.update()}}}};c.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1};c.keyGroups={PRINTABLE:0,FUNCTIONAL:1};c.isNavigationKey=function(a){return!!c.navigationKeyCodes[a]};c.getKeyGroup=function(a){var d=c.keyGroups;return e[a]?d.FUNCTIONAL:d.PRINTABLE};c.getOppositeKeyGroup=function(a){var d=c.keyGroups;return a==d.FUNCTIONAL?d.PRINTABLE:d.FUNCTIONAL};c.ieFunctionalKeysBug=function(a){return CKEDITOR.env.ie&&c.getKeyGroup(a)==c.keyGroups.FUNCTIONAL};
-var f=CKEDITOR.plugins.undo.Image=function(a,c){this.editor=a;a.fire("beforeUndoImage");var b=a.getSnapshot();CKEDITOR.env.ie&&b&&(b=b.replace(/\s+data-cke-expando=".*?"/g,""));this.contents=b;c||(this.bookmarks=(b=b&&a.getSelection())&&b.createBookmarks2(!0));a.fire("afterUndoImage")},h=/\b(?:href|src|name)="[^"]*?"/gi;f.prototype={equalsContent:function(a){var c=this.contents;a=a.contents;CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(c=c.replace(h,""),a=a.replace(h,""));return c!=
-a?!1:!0},equalsSelection:function(a){var c=this.bookmarks;a=a.bookmarks;if(c||a){if(!c||!a||c.length!=a.length)return!1;for(var b=0;b<c.length;b++){var e=c[b],f=a[b];if(e.startOffset!=f.startOffset||e.endOffset!=f.endOffset||!CKEDITOR.tools.arrayCompare(e.start,f.start)||!CKEDITOR.tools.arrayCompare(e.end,f.end))return!1}}return!0}};var m=CKEDITOR.plugins.undo.NativeEditingHandler=function(a){this.undoManager=a;this.ignoreInputEvent=!1;this.keyEventsStack=new l;this.lastKeydownImage=null};m.prototype=
-{onKeydown:function(e){var d=e.data.getKey();if(229!==d)if(-1<CKEDITOR.tools.indexOf(a,e.data.getKeystroke()))e.data.preventDefault();else if(this.keyEventsStack.cleanUp(e),e=this.undoManager,this.keyEventsStack.getLast(d)||this.keyEventsStack.push(d),this.lastKeydownImage=new f(e.editor),c.isNavigationKey(d)||this.undoManager.keyGroupChanged(d))if(e.strokesRecorded[0]||e.strokesRecorded[1])e.save(!1,this.lastKeydownImage,!1),e.resetType()},onInput:function(){if(this.ignoreInputEvent)this.ignoreInputEvent=
-!1;else{var a=this.keyEventsStack.getLast();a||(a=this.keyEventsStack.push(0));this.keyEventsStack.increment(a.keyCode);this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit&&(this.undoManager.type(a.keyCode,!0),this.keyEventsStack.resetInputs())}},onKeyup:function(a){var d=this.undoManager;a=a.data.getKey();var b=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(a);if(!(c.ieFunctionalKeysBug(a)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new f(d.editor,
-!0))))if(0<b)d.type(a);else if(c.isNavigationKey(a))this.onNavigationKey(!0)},onNavigationKey:function(a){var c=this.undoManager;!a&&c.save(!0,null,!1)||c.updateSelection(new f(c.editor));c.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},attachListeners:function(){var a=this.undoManager.editor,d=a.editable(),b=this;d.attachListener(d,"keydown",function(a){b.onKeydown(a);if(c.ieFunctionalKeysBug(a.data.getKey()))b.onInput()},null,null,999);d.attachListener(d,CKEDITOR.env.ie?
-"keypress":"input",b.onInput,b,null,999);d.attachListener(d,"keyup",b.onKeyup,b,null,999);d.attachListener(d,"paste",b.ignoreInputEventListener,b,null,999);d.attachListener(d,"drop",b.ignoreInputEventListener,b,null,999);d.attachListener(d.isInline()?d:a.document.getDocumentElement(),"click",function(){b.onNavigationKey()},null,null,999);d.attachListener(this.undoManager.editor,"blur",function(){b.keyEventsStack.remove(9)},null,null,999)}};var l=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack=
-[]};l.prototype={push:function(a){a=this.stack.push({keyCode:a,inputs:0});return this.stack[a-1]},getLastIndex:function(a){if("number"!=typeof a)return this.stack.length-1;for(var c=this.stack.length;c--;)if(this.stack[c].keyCode==a)return c;return-1},getLast:function(a){a=this.getLastIndex(a);return-1!=a?this.stack[a]:null},increment:function(a){this.getLast(a).inputs++},remove:function(a){a=this.getLastIndex(a);-1!=a&&this.stack.splice(a,1)},resetInputs:function(a){if("number"==typeof a)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,c=0;a--;)c+=this.stack[a].inputs;return c},cleanUp:function(a){a=a.data.$;a.ctrlKey||a.metaKey||this.remove(17);a.shiftKey||this.remove(16);a.altKey||this.remove(18)}}}(),function(){function a(a){function c(a){var b=!1;g.attachListener(g,"keydown",function(){var c=k.getBody().getElementsByTag(a);if(!b){for(var d=0;d<c.count();d++)c.getItem(d).setCustomData("retain",!0);b=!0}},null,null,
-1);g.attachListener(g,"keyup",function(){var c=k.getElementsByTag(a);b&&(1!=c.count()||c.getItem(0).getCustomData("retain")||c.getItem(0).hasAttribute("data-cke-temp")||c.getItem(0).remove(1),b=!1)})}var f=this.editor,k=a.document,d=k.body,b=k.getElementById("cke_actscrpt");b&&b.parentNode.removeChild(b);(b=k.getElementById("cke_shimscrpt"))&&b.parentNode.removeChild(b);(b=k.getElementById("cke_basetagscrpt"))&&b.parentNode.removeChild(b);d.contentEditable=!0;CKEDITOR.env.ie&&(d.hideFocus=!0,d.disabled=
-!0,d.removeAttribute("disabled"));delete this._.isLoadingData;this.$=d;k=new CKEDITOR.dom.document(k);this.setup();this.fixInitialSelection();var g=this;CKEDITOR.env.ie&&!CKEDITOR.env.edge&&k.getDocumentElement().addClass(k.$.compatMode);CKEDITOR.env.ie&&!CKEDITOR.env.edge&&f.enterMode!=CKEDITOR.ENTER_P?c("p"):CKEDITOR.env.edge&&f.enterMode!=CKEDITOR.ENTER_DIV&&c("div");if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)k.getDocumentElement().on("mousedown",function(a){a.data.getTarget().is("html")&&
-setTimeout(function(){f.editable().focus()})});e(f);try{f.document.$.execCommand("2D-position",!1,!0)}catch(n){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==f.document.$.compatMode)&&this.attachListener(this,"keydown",function(a){var b=a.data.getKeystroke();if(33==b||34==b)if(CKEDITOR.env.ie)setTimeout(function(){f.getSelection().scrollIntoView()},0);else if(f.window.$.innerHeight>this.$.offsetHeight){var c=f.createRange();c[33==b?"moveToElementEditStart":"moveToElementEditEnd"](this);c.select();
-a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(k,"blur",function(){try{k.$.selection.empty()}catch(a){}});CKEDITOR.env.iOS&&this.attachListener(k,"touchend",function(){a.focus()});d=f.document.getElementsByTag("title").getItem(0);d.data("cke-title",d.getText());CKEDITOR.env.ie&&(f.document.$.title=this._.docTitle);CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready");f.fire("contentDom");this._.isPendingFocus&&(f.focus(),this._.isPendingFocus=!1);setTimeout(function(){f.fire("dataReady")},
-0)},0,this)}function e(a){function c(){var b;a.editable().attachListener(a,"selectionChange",function(){var c=a.getSelection().getSelectedElement();c&&(b&&(b.detachEvent("onresizestart",e),b=null),c.$.attachEvent("onresizestart",e),b=c.$)})}function e(a){a.returnValue=!1}if(CKEDITOR.env.gecko)try{var f=a.document.$;f.execCommand("enableObjectResizing",!1,!a.config.disableObjectResizing);f.execCommand("enableInlineTableEditing",!1,!a.config.disableNativeTableHandles)}catch(d){}else CKEDITOR.env.ie&&
-11>CKEDITOR.env.version&&a.config.disableObjectResizing&&c(a)}function c(){var a=[];if(8<=CKEDITOR.document.$.documentMode){a.push("html.CSS1Compat [contenteditable\x3dfalse]{min-height:0 !important}");var c=[],e;for(e in CKEDITOR.dtd.$removeEmpty)c.push("html.CSS1Compat "+e+"[contenteditable\x3dfalse]");a.push(c.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(a.push("html{height:100% !important}"),a.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"));
-a.push("html{cursor:text;*cursor:auto}");a.push("img,input,textarea{cursor:default}");return a.join("\n")}var f;CKEDITOR.plugins.add("wysiwygarea",{init:function(a){a.config.fullPage&&a.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"});a.addMode("wysiwyg",function(c){function e(b){b&&b.removeListener();a.editable(new f(a,d.$.contentWindow.document.body));a.setData(a.getData(1),c)}var k="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+
-")();":"")+"document.close();",k=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(k)+"}())":"",d=CKEDITOR.dom.element.createFromHtml('\x3ciframe src\x3d"'+k+'" frameBorder\x3d"0"\x3e\x3c/iframe\x3e');d.setStyles({width:"100%",height:"100%"});d.addClass("cke_wysiwyg_frame").addClass("cke_reset");k=a.ui.space("contents");k.append(d);var b=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;if(b)d.on("load",e);var g=a.title,
-n=a.fire("ariaEditorHelpLabel",{}).label;g&&(CKEDITOR.env.ie&&n&&(g+=", "+n),d.setAttribute("title",g));if(n){var g=CKEDITOR.tools.getNextId(),t=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+g+'" class\x3d"cke_voice_label"\x3e'+n+"\x3c/span\x3e");k.append(t,1);d.setAttribute("aria-describedby",g)}a.on("beforeModeUnload",function(a){a.removeListener();t&&t.remove()});d.setAttributes({tabIndex:a.tabIndex,allowTransparency:"true"});!b&&e();a.fire("ariaWidget",d)})}});CKEDITOR.editor.prototype.addContentsCss=
-function(a){var c=this.config,e=c.contentsCss;CKEDITOR.tools.isArray(e)||(c.contentsCss=e?[e]:[]);c.contentsCss.push(a)};f=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(c){CKEDITOR.tools.setTimeout(a,0,this,c)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(a,e){var f=this.editor;if(e)this.setHtml(a),this.fixInitialSelection(),f.fire("dataReady");
-else{this._.isLoadingData=!0;f._.dataStore={id:1};var k=f.config,d=k.fullPage,b=k.docType,g=CKEDITOR.tools.buildStyleHtml(c()).replace(/<style>/,'\x3cstyle data-cke-temp\x3d"1"\x3e');d||(g+=CKEDITOR.tools.buildStyleHtml(f.config.contentsCss));var n=k.baseHref?'\x3cbase href\x3d"'+k.baseHref+'" data-cke-temp\x3d"1" /\x3e':"";d&&(a=a.replace(/<!DOCTYPE[^>]*>/i,function(a){f.docType=b=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){f.xmlDeclaration=a;return""}));a=f.dataProcessor.toHtml(a);d?(/<body[\s|>]/.test(a)||
-(a="\x3cbody\x3e"+a),/<html[\s|>]/.test(a)||(a="\x3chtml\x3e"+a+"\x3c/html\x3e"),/<head[\s|>]/.test(a)?/<title[\s|>]/.test(a)||(a=a.replace(/<head[^>]*>/,"$\x26\x3ctitle\x3e\x3c/title\x3e")):a=a.replace(/<html[^>]*>/,"$\x26\x3chead\x3e\x3ctitle\x3e\x3c/title\x3e\x3c/head\x3e"),n&&(a=a.replace(/<head[^>]*?>/,"$\x26"+n)),a=a.replace(/<\/head\s*>/,g+"$\x26"),a=b+a):a=k.docType+'\x3chtml dir\x3d"'+k.contentsLangDirection+'" lang\x3d"'+(k.contentsLanguage||f.langCode)+'"\x3e\x3chead\x3e\x3ctitle\x3e'+
-this._.docTitle+"\x3c/title\x3e"+n+g+"\x3c/head\x3e\x3cbody"+(k.bodyId?' id\x3d"'+k.bodyId+'"':"")+(k.bodyClass?' class\x3d"'+k.bodyClass+'"':"")+"\x3e"+a+"\x3c/body\x3e\x3c/html\x3e";CKEDITOR.env.gecko&&(a=a.replace(/<body/,'\x3cbody contenteditable\x3d"true" '),2E4>CKEDITOR.env.version&&(a=a.replace(/<body[^>]*>/,"$\x26\x3c!-- cke-content-start --\x3e")));k='\x3cscript id\x3d"cke_actscrpt" type\x3d"text/javascript"'+(CKEDITOR.env.ie?' defer\x3d"defer" ':"")+"\x3evar wasLoaded\x3d0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+
-this._.frameLoadedHandler+",window);wasLoaded\x3d1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"\x3c/script\x3e";CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(k+='\x3cscript id\x3d"cke_shimscrpt"\x3ewindow.parent.CKEDITOR.tools.enableHtml5Elements(document)\x3c/script\x3e');n&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(k+='\x3cscript id\x3d"cke_basetagscrpt"\x3evar baseTag \x3d document.querySelector( "base" );baseTag.href \x3d baseTag.href;\x3c/script\x3e');
-a=a.replace(/(?=\s*<\/(:?head)>)/,k);this.clearCustomData();this.clearListeners();f.fire("contentDomUnload");var t=this.getDocument();try{t.write(a)}catch(u){setTimeout(function(){t.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();a=this.editor;var c=a.config,e=c.fullPage,f=e&&a.docType,d=e&&a.xmlDeclaration,b=this.getDocument(),e=e?b.getDocumentElement().getOuterHtml():b.getBody().getHtml();CKEDITOR.env.gecko&&c.enterMode!=CKEDITOR.ENTER_BR&&(e=e.replace(/<br>(?=\s*(:?$|<\/body>))/,
-""));e=a.dataProcessor.toDataFormat(e);d&&(e=d+"\n"+e);f&&(e=f+"\n"+e);return e},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:f.baseProto.focus.call(this)},detach:function(){var a=this.editor,c=a.document,e;try{e=a.window.getFrame()}catch(k){}f.baseProto.detach.call(this);this.clearCustomData();c.getDocumentElement().clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);e&&e.getParent()?(e.clearCustomData(),(a=e.removeCustomData("onResize"))&&a.removeListener(),
-e.remove()):CKEDITOR.warn("editor-destroy-iframe")}}})}(),CKEDITOR.config.disableObjectResizing=!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.plugins="dialogui,dialog,a11yhelp,about,autogrow,basicstyles,blockquote,notification,button,toolbar,clipboard,panel,floatpanel,menu,contextmenu,elementspath,enterkey,entities,popup,filebrowser,floatingspace,listblock,richcombo,format,horizontalrule,htmlwriter,lineutils,widgetselection,widget,image2,indent,indentlist,justify,menubutton,language,list,magicline,maximize,pastefromword,pastetext,removeformat,sharedspace,showblocks,showborders,sourcearea,sourcedialog,specialchar,stylescombo,tab,table,tabletools,tableresize,undo,wysiwygarea",
-CKEDITOR.config.skin="moono-lisa",function(){var a=function(a,c){var f=CKEDITOR.getUrl("plugins/"+c);a=a.split(",");for(var h=0;h<a.length;h++)CKEDITOR.skin.icons[a[h]]={path:f,offset:-a[++h],bgsize:a[++h]}};CKEDITOR.env.hidpi?a("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,blockquote,168,,copy-rtl,192,,copy,216,,cut-rtl,240,,cut,264,,paste-rtl,288,,paste,312,,horizontalrule,336,,image,360,,indent-rtl,384,,indent,408,,outdent-rtl,432,,outdent,456,,justifyblock,480,,justifycenter,504,,justifyleft,528,,justifyright,552,,language,576,,bulletedlist-rtl,600,,bulletedlist,624,,numberedlist-rtl,648,,numberedlist,672,,maximize,696,,pastefromword-rtl,720,,pastefromword,744,,pastetext-rtl,768,,pastetext,792,,removeformat,816,,showblocks-rtl,840,,showblocks,864,,source-rtl,888,,source,912,,sourcedialog-rtl,936,,sourcedialog,960,,specialchar,984,,table,1008,,redo-rtl,1032,,redo,1056,,undo-rtl,1080,,undo,1104,,simplebox,2256,auto",
-"icons_hidpi.png"):a("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,blockquote,168,auto,copy-rtl,192,auto,copy,216,auto,cut-rtl,240,auto,cut,264,auto,paste-rtl,288,auto,paste,312,auto,horizontalrule,336,auto,image,360,auto,indent-rtl,384,auto,indent,408,auto,outdent-rtl,432,auto,outdent,456,auto,justifyblock,480,auto,justifycenter,504,auto,justifyleft,528,auto,justifyright,552,auto,language,576,auto,bulletedlist-rtl,600,auto,bulletedlist,624,auto,numberedlist-rtl,648,auto,numberedlist,672,auto,maximize,696,auto,pastefromword-rtl,720,auto,pastefromword,744,auto,pastetext-rtl,768,auto,pastetext,792,auto,removeformat,816,auto,showblocks-rtl,840,auto,showblocks,864,auto,source-rtl,888,auto,source,912,auto,sourcedialog-rtl,936,auto,sourcedialog,960,auto,specialchar,984,auto,table,1008,auto,redo-rtl,1032,auto,redo,1056,auto,undo-rtl,1080,auto,undo,1104,auto,simplebox,1128,auto",
+height:b.height}}return a},getLinkAttributesGetter:function(){return CKEDITOR.plugins.link.getLinkAttributes},getLinkAttributesParser:function(){return CKEDITOR.plugins.link.parseLinkAttributes}}}(),CKEDITOR.config.image2_captionedClass="image",function(){function c(c,k){var m,l;k.on("refresh",function(b){var c=[g],d;for(d in b.data.states)c.push(b.data.states[d]);this.setState(CKEDITOR.tools.search(c,f)?f:g)},k,null,100);k.on("exec",function(b){m=c.getSelection();l=m.createBookmarks(1);b.data||(b.data=
+{});b.data.done=!1},k,null,0);k.on("exec",function(){c.forceNextSelectionCheck();m.selectBookmarks(l)},k,null,100)}var g=CKEDITOR.TRISTATE_DISABLED,f=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(e){var f=CKEDITOR.plugins.indent.genericDefinition;c(e,e.addCommand("indent",new f(!0)));c(e,e.addCommand("outdent",new f));e.ui.addButton&&(e.ui.addButton("Indent",{label:e.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),e.ui.addButton("Outdent",{label:e.lang.indent.outdent,
+command:"outdent",directional:!0,toolbar:"indent,10"}));e.on("dirChanged",function(c){var f=e.createRange(),b=c.data.node;f.setStartBefore(b);f.setEndAfter(b);for(var g=new CKEDITOR.dom.walker(f),d;d=g.next();)if(d.type==CKEDITOR.NODE_ELEMENT)if(!d.equals(b)&&d.getDirection())f.setStartAfter(d),g=new CKEDITOR.dom.walker(f);else{var a=e.config.indentClasses;if(a)for(var k="ltr"==c.data.dir?["_rtl",""]:["","_rtl"],t=0;t<a.length;t++)d.hasClass(a[t]+k[0])&&(d.removeClass(a[t]+k[0]),d.addClass(a[t]+k[1]));
+a=d.getStyle("margin-right");k=d.getStyle("margin-left");a?d.setStyle("margin-left",a):d.removeStyle("margin-left");k?d.setStyle("margin-right",k):d.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(c){this.isIndent=!!c;this.startDisabled=!this.isIndent},specificDefinition:function(c,f,g){this.name=f;this.editor=c;this.jobs={};this.enterBr=c.config.enterMode==CKEDITOR.ENTER_BR;this.isIndent=!!g;this.relatedGlobal=g?"indent":"outdent";this.indentKey=g?9:CKEDITOR.SHIFT+
+9;this.database={}},registerCommands:function(c,f){c.on("pluginsLoaded",function(){for(var c in f)(function(c,b){var e=c.getCommand(b.relatedGlobal),d;for(d in b.jobs)e.on("exec",function(a){a.data.done||(c.fire("lockSnapshot"),b.execJob(c,d)&&(a.data.done=!0),c.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(b.database))},this,null,d),e.on("refresh",function(a){a.data.states||(a.data.states={});a.data.states[b.name+"@"+d]=b.refreshJob(c,d,a.data.path)},this,null,d);c.addFeature(b)})(this,
+f[c])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(c,f){var m=this.jobs[f];if(m.state!=g)return m.exec.call(this,c)},refreshJob:function(c,f,m){f=this.jobs[f];c.activeFilter.checkFeature(this)?f.state=f.refresh.call(this,c,m):f.state=g;return f.state},getContext:function(c){return c.contains(this.context)}}}(),function(){function c(b){function c(g){for(var h=k.startContainer,l=k.endContainer;h&&
+!h.getParent().equals(g);)h=h.getParent();for(;l&&!l.getParent().equals(g);)l=l.getParent();if(!h||!l)return!1;for(var m=[],w=!1;!w;)h.equals(l)&&(w=!0),m.push(h),h=h.getNext();if(1>m.length)return!1;h=g.getParents(!0);for(l=0;l<h.length;l++)if(h[l].getName&&e[h[l].getName()]){g=h[l];break}for(var h=d.isIndent?1:-1,l=m[0],m=m[m.length-1],w=CKEDITOR.plugins.list.listToArray(g,a),x=w[m.getCustomData("listarray_index")].indent,l=l.getCustomData("listarray_index");l<=m.getCustomData("listarray_index");l++)if(w[l].indent+=
+h,0<h){for(var r=w[l].parent,C=l-1;0<=C;C--)if(w[C].indent===h){r=w[C].parent;break}w[l].parent=new CKEDITOR.dom.element(r.getName(),r.getDocument())}for(l=m.getCustomData("listarray_index")+1;l<w.length&&w[l].indent>x;l++)w[l].indent+=h;h=CKEDITOR.plugins.list.arrayToList(w,a,null,b.config.enterMode,g.getDirection());if(!d.isIndent){var y;if((y=g.getParent())&&y.is("li"))for(var m=h.listNode.getChildren(),p=[],E,l=m.count()-1;0<=l;l--)(E=m.getItem(l))&&E.is&&E.is("li")&&p.push(E)}h&&h.listNode.replace(g);
+if(p&&p.length)for(l=0;l<p.length;l++){for(E=g=p[l];(E=E.getNext())&&E.is&&E.getName()in e;)CKEDITOR.env.needsNbspFiller&&!g.getFirst(f)&&g.append(k.document.createText(" ")),g.append(E);g.insertAfter(y)}h&&b.fire("contentDomInvalidated");return!0}for(var d=this,a=this.database,e=this.context,k,l=b.getSelection(),l=(l&&l.getRanges()).createIterator();k=l.getNextRange();){for(var m=k.getCommonAncestor();m&&(m.type!=CKEDITOR.NODE_ELEMENT||!e[m.getName()]);){if(b.editable().equals(m)){m=!1;break}m=m.getParent()}m||
+(m=k.startPath().contains(e))&&k.setEndAt(m,CKEDITOR.POSITION_BEFORE_END);if(!m){var r=k.getEnclosedNode();r&&r.type==CKEDITOR.NODE_ELEMENT&&r.getName()in e&&(k.setStartAt(r,CKEDITOR.POSITION_AFTER_START),k.setEndAt(r,CKEDITOR.POSITION_BEFORE_END),m=r)}m&&k.startContainer.type==CKEDITOR.NODE_ELEMENT&&k.startContainer.getName()in e&&(r=new CKEDITOR.dom.walker(k),r.evaluator=g,k.startContainer=r.next());m&&k.endContainer.type==CKEDITOR.NODE_ELEMENT&&k.endContainer.getName()in e&&(r=new CKEDITOR.dom.walker(k),
+r.evaluator=g,k.endContainer=r.previous());if(m)return c(m)}return 0}function g(b){return b.type==CKEDITOR.NODE_ELEMENT&&b.is("li")}function f(b){return e(b)&&k(b)}var e=CKEDITOR.dom.walker.whitespaces(!0),k=CKEDITOR.dom.walker.bookmark(!1,!0),m=CKEDITOR.TRISTATE_DISABLED,l=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(b){function e(a){d.specificDefinition.apply(this,arguments);this.requiredContent=["ul","ol"];a.on("key",function(b){var c=a.elementPath();
+if("wysiwyg"==a.mode&&b.data.keyCode==this.indentKey&&c){var d=this.getContext(c);!d||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,c,d)||(a.execCommand(this.relatedGlobal),b.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:m}:function(a,b){return!this.getContext(b)||this.isIndent?m:l},exec:CKEDITOR.tools.bind(c,this)}}
+var d=CKEDITOR.plugins.indent;d.registerCommands(b,{indentlist:new e(b,"indentlist",!0),outdentlist:new e(b,"outdentlist")});CKEDITOR.tools.extend(e.prototype,d.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(b,c,d){var a=c.contains(g);d||(d=c.contains(b));return d&&a&&a.equals(d.getFirst(g))}}(),function(){function c(c,f){f=void 0===f||f;var g;if(f)g=c.getComputedStyle("text-align");else{for(;!c.hasAttribute||
+!c.hasAttribute("align")&&!c.getStyle("text-align");){g=c.getParent();if(!g)break;c=g}g=c.getStyle("text-align")||c.getAttribute("align")||""}g&&(g=g.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!g&&f&&(g="rtl"==c.getComputedStyle("direction")?"right":"left");return g}function g(c,f,g){this.editor=c;this.name=f;this.value=g;this.context="p";f=c.config.justifyClasses;var l=c.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(f){switch(g){case "left":this.cssClassName=f[0];break;case "center":this.cssClassName=
+f[1];break;case "right":this.cssClassName=f[2];break;case "justify":this.cssClassName=f[3]}this.cssClassRegex=new RegExp("(?:^|\\s+)(?:"+f.join("|")+")(?\x3d$|\\s)");this.requiredContent=l+"("+this.cssClassName+")"}else this.requiredContent=l+"{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:!0,styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}};c.config.enterMode==CKEDITOR.ENTER_BR&&(this.allowedContent.div=!0)}function f(c){var f=
+c.editor,g=f.createRange();g.setStartBefore(c.data.node);g.setEndAfter(c.data.node);for(var l=new CKEDITOR.dom.walker(g),b;b=l.next();)if(b.type==CKEDITOR.NODE_ELEMENT)if(!b.equals(c.data.node)&&b.getDirection())g.setStartAfter(b),l=new CKEDITOR.dom.walker(g);else{var h=f.config.justifyClasses;h&&(b.hasClass(h[0])?(b.removeClass(h[0]),b.addClass(h[2])):b.hasClass(h[2])&&(b.removeClass(h[2]),b.addClass(h[0])));h=b.getStyle("text-align");"left"==h?b.setStyle("text-align","right"):"right"==h&&b.setStyle("text-align",
+"left")}}g.prototype={exec:function(e){var f=e.getSelection(),g=e.config.enterMode;if(f){for(var l=f.createBookmarks(),b=f.getRanges(),h=this.cssClassName,d,a,n=e.config.useComputedState,n=void 0===n||n,t=b.length-1;0<=t;t--)for(d=b[t].createIterator(),d.enlargeBr=g!=CKEDITOR.ENTER_BR;a=d.getNextParagraph(g==CKEDITOR.ENTER_P?"p":"div");)if(!a.isReadOnly()){var p=a.getName(),x;x=e.activeFilter.check(p+"{text-align}");if((p=e.activeFilter.check(p+"("+h+")"))||x){a.removeAttribute("align");a.removeStyle("text-align");
+var r=h&&(a.$.className=CKEDITOR.tools.ltrim(a.$.className.replace(this.cssClassRegex,""))),q=this.state==CKEDITOR.TRISTATE_OFF&&(!n||c(a,!0)!=this.value);h&&p?q?a.addClass(h):r||a.removeAttribute("class"):q&&x&&a.setStyle("text-align",this.value)}}e.focus();e.forceNextSelectionCheck();f.selectBookmarks(l)}},refresh:function(e,f){var g=f.block||f.blockLimit,l=g.getName(),b=g.equals(e.editable()),l=this.cssClassName?e.activeFilter.check(l+"("+this.cssClassName+")"):e.activeFilter.check(l+"{text-align}");
+b&&1===f.elements.length?this.setState(CKEDITOR.TRISTATE_OFF):!b&&l?this.setState(c(g,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)}};CKEDITOR.plugins.add("justify",{init:function(c){if(!c.blockless){var k=new g(c,"justifyleft","left"),m=new g(c,"justifycenter","center"),l=new g(c,"justifyright","right"),b=new g(c,"justifyblock","justify");c.addCommand("justifyleft",k);c.addCommand("justifycenter",m);c.addCommand("justifyright",
+l);c.addCommand("justifyblock",b);c.ui.addButton&&(c.ui.addButton("JustifyLeft",{label:c.lang.justify.left,command:"justifyleft",toolbar:"align,10"}),c.ui.addButton("JustifyCenter",{label:c.lang.justify.center,command:"justifycenter",toolbar:"align,20"}),c.ui.addButton("JustifyRight",{label:c.lang.justify.right,command:"justifyright",toolbar:"align,30"}),c.ui.addButton("JustifyBlock",{label:c.lang.justify.block,command:"justifyblock",toolbar:"align,40"}));c.on("dirChanged",f)}}})}(),CKEDITOR.plugins.add("menubutton",
+{requires:"button,menu",onLoad:function(){var c=function(c){var f=this._,e=f.menu;f.state!==CKEDITOR.TRISTATE_DISABLED&&(f.on&&e?e.hide():(f.previousState=f.state,e||(e=f.menu=new CKEDITOR.menu(c,{panel:{className:"cke_menu_panel",attributes:{"aria-label":c.lang.common.options}}}),e.onHide=CKEDITOR.tools.bind(function(){var e=this.command?c.getCommand(this.command).modes:this.modes;this.setState(!e||e[c.mode]?f.previousState:CKEDITOR.TRISTATE_DISABLED);f.on=0},this),this.onMenu&&e.addListener(this.onMenu)),
+this.setState(CKEDITOR.TRISTATE_ON),f.on=1,setTimeout(function(){e.show(CKEDITOR.document.getById(f.id),4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(g){delete g.panel;this.base(g);this.hasArrow=!0;this.click=c},statics:{handler:{create:function(c){return new CKEDITOR.ui.menuButton(c)}}}})},beforeInit:function(c){c.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}}),CKEDITOR.UI_MENUBUTTON="menubutton","use strict",function(){CKEDITOR.plugins.add("language",
+{requires:"menubutton",init:function(c){var g=c.config.language_list||["ar:Arabic:rtl","fr:French","es:Spanish"],f=this,e=c.lang.language,k={},m,l,b,h;c.addCommand("language",{allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",contextSensitive:!0,exec:function(b,a){var c=k["language_"+a];if(c)b[c.style.checkActive(b.elementPath(),b)?"removeStyle":"applyStyle"](c.style)},refresh:function(b){this.setState(f.getCurrentLangElement(b)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}});for(h=
+0;h<g.length;h++)m=g[h].split(":"),l=m[0],b="language_"+l,k[b]={label:m[1],langId:l,group:"language",order:h,ltr:"rtl"!=(""+m[2]).toLowerCase(),onClick:function(){c.execCommand("language",this.langId)},role:"menuitemcheckbox"},k[b].style=new CKEDITOR.style({element:"span",attributes:{lang:l,dir:k[b].ltr?"ltr":"rtl"}});k.language_remove={label:e.remove,group:"language_remove",state:CKEDITOR.TRISTATE_DISABLED,order:k.length,onClick:function(){var b=f.getCurrentLangElement(c);b&&c.execCommand("language",
+b.getAttribute("lang"))}};c.addMenuGroup("language",1);c.addMenuGroup("language_remove");c.addMenuItems(k);c.ui.add("Language",CKEDITOR.UI_MENUBUTTON,{label:e.button,allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",toolbar:"bidi,30",command:"language",onMenu:function(){var b={},a=f.getCurrentLangElement(c),e;for(e in k)b[e]=CKEDITOR.TRISTATE_OFF;b.language_remove=a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;a&&(b["language_"+a.getAttribute("lang")]=CKEDITOR.TRISTATE_ON);return b}});
+c.addRemoveFormatFilter&&c.addRemoveFormatFilter(function(b){return!(b.is("span")&&b.getAttribute("dir")&&b.getAttribute("lang"))})},getCurrentLangElement:function(c){var g=c.elementPath();c=g&&g.elements;var f;if(g)for(var e=0;e<c.length;e++)g=c[e],!f&&"span"==g.getName()&&g.hasAttribute("dir")&&g.hasAttribute("lang")&&(f=g);return f}})}(),function(){function c(a,b,c){function d(c){if(!(!(l=k[c?"getFirst":"getLast"]())||l.is&&l.isBlockBoundary()||!(m=b.root[c?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||
+m.is&&m.isBlockBoundary({br:1})))a.document.createElement("br")[c?"insertBefore":"insertAfter"](l)}for(var e=CKEDITOR.plugins.list.listToArray(b.root,c),f=[],g=0;g<b.contents.length;g++){var h=b.contents[g];(h=h.getAscendant("li",!0))&&!h.getCustomData("list_item_processed")&&(f.push(h),CKEDITOR.dom.element.setMarker(c,h,"list_item_processed",!0))}h=null;for(g=0;g<f.length;g++)h=f[g].getCustomData("listarray_index"),e[h].indent=-1;for(g=h+1;g<e.length;g++)if(e[g].indent>e[g-1].indent+1){f=e[g-1].indent+
+1-e[g].indent;for(h=e[g].indent;e[g]&&e[g].indent>=h;)e[g].indent+=f,g++;g--}var k=CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,l,m;d(!0);d();k.replace(b.root);a.fire("contentDomInvalidated")}function g(a,b){this.name=a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function f(a,b,c,d){for(var e,f;e=a[d?"getLast":"getFirst"](p);)(f=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",f),e.remove(),c?e[d?"insertBefore":
+"insertAfter"](c):b.append(e,d)}function e(b){function c(d){var e=b[d?"getPrevious":"getNext"](a);e&&e.type==CKEDITOR.NODE_ELEMENT&&e.is(b.getName())&&(f(b,e,null,!d),b.remove(),b=e)}c();c(1)}function k(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function m(b,c,d){b.fire("saveSnapshot");d.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var g=d.extractContents();c.trim(!1,!0);var h=c.createBookmark(),
+k=new CKEDITOR.dom.elementPath(c.startContainer),m=k.block,k=k.lastElement.getAscendant("li",1)||m,B=new CKEDITOR.dom.elementPath(d.startContainer),A=B.contains(CKEDITOR.dtd.$listItem),B=B.contains(CKEDITOR.dtd.$list);m?(m=m.getBogus())&&m.remove():B&&(m=B.getPrevious(a))&&n(m)&&m.remove();(m=g.getLast())&&m.type==CKEDITOR.NODE_ELEMENT&&m.is("br")&&m.remove();(m=c.startContainer.getChild(c.startOffset))?g.insertBefore(m):c.startContainer.append(g);A&&(g=l(A))&&(k.contains(A)?(f(g,A.getParent(),A),
+g.remove()):k.append(g));for(;d.checkStartOfBlock()&&d.checkEndOfBlock();){B=d.startPath();g=B.block;if(!g)break;g.is("li")&&(k=g.getParent(),g.equals(k.getLast(a))&&g.equals(k.getFirst(a))&&(g=k));d.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START);g.remove()}d=d.clone();g=b.editable();d.setEndAt(g,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=function(b){return a(b)&&!n(b)};(d=d.next())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in CKEDITOR.dtd.$list&&e(d);c.moveToBookmark(h);
+c.select();b.fire("saveSnapshot")}function l(c){return(c=c.getLast(a))&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in b?c:null}var b={ol:1,ul:1},h=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(),a=function(a){return!(h(a)||d(a))},n=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,c,d,e,f){if(!b[a.getName()])return[];e||(e=0);d||(d=[]);for(var g=0,h=a.getChildCount();g<h;g++){var k=a.getChild(g);k.type==CKEDITOR.NODE_ELEMENT&&k.getName()in CKEDITOR.dtd.$list&&
+CKEDITOR.plugins.list.listToArray(k,c,d,e+1);if("li"==k.$.nodeName.toLowerCase()){var l={parent:a,indent:e,element:k,contents:[]};f?l.grandparent=f:(l.grandparent=a.getParent(),l.grandparent&&"li"==l.grandparent.$.nodeName.toLowerCase()&&(l.grandparent=l.grandparent.getParent()));c&&CKEDITOR.dom.element.setMarker(c,k,"listarray_index",d.length);d.push(l);for(var m=0,n=k.getChildCount(),t;m<n;m++)t=k.getChild(m),t.type==CKEDITOR.NODE_ELEMENT&&b[t.getName()]?CKEDITOR.plugins.list.listToArray(t,c,d,
+e+1,l.grandparent):l.contents.push(t)}}return d},arrayToList:function(c,e,f,g,h){f||(f=0);if(!c||c.length<f+1)return null;for(var k,l=c[f].parent.getDocument(),m=new CKEDITOR.dom.documentFragment(l),n=null,C=f,y=Math.max(c[f].indent,0),t=null,p,G,I=g==CKEDITOR.ENTER_P?"p":"div";;){var H=c[C];k=H.grandparent;p=H.element.getDirection(1);if(H.indent==y){n&&c[C].parent.getName()==n.getName()||(n=c[C].parent.clone(!1,1),h&&n.setAttribute("dir",h),m.append(n));t=n.append(H.element.clone(0,1));p!=n.getDirection(1)&&
+t.setAttribute("dir",p);for(k=0;k<H.contents.length;k++)t.append(H.contents[k].clone(1,1));C++}else if(H.indent==Math.max(y,0)+1)H=c[C-1].element.getDirection(1),C=CKEDITOR.plugins.list.arrayToList(c,null,C,g,H!=p?p:null),!t.getChildCount()&&CKEDITOR.env.needsNbspFiller&&7>=l.$.documentMode&&t.append(l.createText(" ")),t.append(C.listNode),C=C.nextIndex;else if(-1==H.indent&&!f&&k){b[k.getName()]?(t=H.element.clone(!1,!0),p!=k.getDirection(1)&&t.setAttribute("dir",p)):t=new CKEDITOR.dom.documentFragment(l);
+var n=k.getDirection(1)!=p,L=H.element,K=L.getAttribute("class"),D=L.getAttribute("style"),S=t.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(g!=CKEDITOR.ENTER_BR||n||D||K),N,P=H.contents.length,J;for(k=0;k<P;k++)if(N=H.contents[k],d(N)&&1<P)S?J=N.clone(1,1):t.append(N.clone(1,1));else if(N.type==CKEDITOR.NODE_ELEMENT&&N.isBlockBoundary()){n&&!N.getDirection()&&N.setAttribute("dir",p);G=N;var U=L.getAttribute("style");U&&G.setAttribute("style",U.replace(/([^;])$/,"$1;")+(G.getAttribute("style")||""));K&&
+N.addClass(K);G=null;J&&(t.append(J),J=null);t.append(N.clone(1,1))}else S?(G||(G=l.createElement(I),t.append(G),n&&G.setAttribute("dir",p)),D&&G.setAttribute("style",D),K&&G.setAttribute("class",K),J&&(G.append(J),J=null),G.append(N.clone(1,1))):t.append(N.clone(1,1));J&&((G||t).append(J),J=null);t.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&C!=c.length-1&&(CKEDITOR.env.needsBrFiller&&(p=t.getLast())&&p.type==CKEDITOR.NODE_ELEMENT&&p.is("br")&&p.remove(),(p=t.getLast(a))&&p.type==CKEDITOR.NODE_ELEMENT&&
+p.is(CKEDITOR.dtd.$block)||t.append(l.createElement("br")));p=t.$.nodeName.toLowerCase();"div"!=p&&"p"!=p||t.appendBogus();m.append(t);n=null;C++}else return null;G=null;if(c.length<=C||Math.max(c[C].indent,0)<y)break}if(e)for(c=m.getFirst();c;){if(c.type==CKEDITOR.NODE_ELEMENT&&(CKEDITOR.dom.element.clearMarkers(e,c),c.getName()in CKEDITOR.dtd.$listItem&&(f=c,l=h=g=void 0,g=f.getDirection()))){for(h=f.getParent();h&&!(l=h.getDirection());)h=h.getParent();g==l&&f.removeAttribute("dir")}c=c.getNextSourceNode()}return{listNode:m,
+nextIndex:C}}};var t=/^h[1-6]$/,p=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);g.prototype={exec:function(d){this.refresh(d,d.elementPath());var f=d.config,g=d.getSelection(),h=g&&g.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var k=d.editable();if(k.getFirst(a)){var l=1==h.length&&h[0];(f=l&&l.getEnclosedNode())&&f.is&&this.type==f.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else f.enterMode==CKEDITOR.ENTER_BR?k.appendBogus():h[0].fixBlock(1,f.enterMode==CKEDITOR.ENTER_P?"p":"div"),
+g.selectRanges(h)}for(var f=g.createBookmarks(!0),k=[],m={},h=h.createIterator(),n=0;(l=h.getNextRange())&&++n;){var A=l.getBoundaryNodes(),p=A.startNode,y=A.endNode;p.type==CKEDITOR.NODE_ELEMENT&&"td"==p.getName()&&l.setStartAt(A.startNode,CKEDITOR.POSITION_AFTER_START);y.type==CKEDITOR.NODE_ELEMENT&&"td"==y.getName()&&l.setEndAt(A.endNode,CKEDITOR.POSITION_BEFORE_END);l=l.createIterator();for(l.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;A=l.getNextParagraph();)if(!A.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(m,
+A,"list_block",1);for(var F=d.elementPath(A),p=F.elements,y=0,F=F.blockLimit,E,G=p.length-1;0<=G&&(E=p[G]);G--)if(b[E.getName()]&&F.contains(E)){F.removeCustomData("list_group_object_"+n);(p=E.getCustomData("list_group_object"))?p.contents.push(A):(p={root:E,contents:[A]},k.push(p),CKEDITOR.dom.element.setMarker(m,E,"list_group_object",p));y=1;break}y||(y=F,y.getCustomData("list_group_object_"+n)?y.getCustomData("list_group_object_"+n).contents.push(A):(p={root:y,contents:[A]},CKEDITOR.dom.element.setMarker(m,
+y,"list_group_object_"+n,p),k.push(p)))}}for(E=[];0<k.length;)if(p=k.shift(),this.state==CKEDITOR.TRISTATE_OFF)if(b[p.root.getName()]){h=d;n=p;p=m;l=E;y=CKEDITOR.plugins.list.listToArray(n.root,p);F=[];for(A=0;A<n.contents.length;A++)G=n.contents[A],(G=G.getAscendant("li",!0))&&!G.getCustomData("list_item_processed")&&(F.push(G),CKEDITOR.dom.element.setMarker(p,G,"list_item_processed",!0));for(var G=n.root.getDocument(),I=void 0,H=void 0,A=0;A<F.length;A++){var L=F[A].getCustomData("listarray_index"),
+I=y[L].parent;I.is(this.type)||(H=G.createElement(this.type),I.copyAttributes(H,{start:1,type:1}),H.removeStyle("list-style-type"),y[L].parent=H)}p=CKEDITOR.plugins.list.arrayToList(y,p,null,h.config.enterMode);y=void 0;F=p.listNode.getChildCount();for(A=0;A<F&&(y=p.listNode.getChild(A));A++)y.getName()==this.type&&l.push(y);p.listNode.replace(n.root);h.fire("contentDomInvalidated")}else{y=d;l=p;A=E;F=l.contents;h=l.root.getDocument();n=[];1==F.length&&F[0].equals(l.root)&&(p=h.createElement("div"),
+F[0].moveChildren&&F[0].moveChildren(p),F[0].append(p),F[0]=p);l=l.contents[0].getParent();for(G=0;G<F.length;G++)l=l.getCommonAncestor(F[G].getParent());I=y.config.useComputedState;y=p=void 0;I=void 0===I||I;for(G=0;G<F.length;G++)for(H=F[G];L=H.getParent();){if(L.equals(l)){n.push(H);!y&&H.getDirection()&&(y=1);H=H.getDirection(I);null!==p&&(p=p&&p!=H?null:H);break}H=L}if(!(1>n.length)){F=n[n.length-1].getNext();G=h.createElement(this.type);A.push(G);for(I=A=void 0;n.length;)A=n.shift(),I=h.createElement("li"),
+H=A,H.is("pre")||t.test(H.getName())||"false"==H.getAttribute("contenteditable")?A.appendTo(I):(A.copyAttributes(I),p&&A.getDirection()&&(I.removeStyle("direction"),I.removeAttribute("dir")),A.moveChildren(I),A.remove()),I.appendTo(G);p&&y&&G.setAttribute("dir",p);F?G.insertBefore(F):G.appendTo(l)}}else this.state==CKEDITOR.TRISTATE_ON&&b[p.root.getName()]&&c.call(this,d,p,m);for(G=0;G<E.length;G++)e(E[G]);CKEDITOR.dom.element.clearAllMarkers(m);g.selectBookmarks(f);d.focus()},refresh:function(a,
+c){var d=c.contains(b,1),e=c.blockLimit||c.root;d&&e.contains(d)?this.setState(d.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(c){c.blockless||(c.addCommand("numberedlist",new g("numberedlist","ol")),c.addCommand("bulletedlist",new g("bulletedlist","ul")),c.ui.addButton&&(c.ui.addButton("NumberedList",{label:c.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),
+c.ui.addButton("BulletedList",{label:c.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),c.on("key",function(d){var e=d.data.domEvent.getKey(),f;if("wysiwyg"==c.mode&&e in{8:1,46:1}){var g=c.getSelection().getRanges()[0],h=g&&g.startPath();if(g&&g.collapsed){var w=8==e,B=c.editable(),p=new CKEDITOR.dom.walker(g.clone());p.evaluator=function(b){return a(b)&&!n(b)};p.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};e=g.clone();if(w){var t;
+(t=h.contains(b))&&g.checkBoundaryOfElement(t,CKEDITOR.START)&&(t=t.getParent())&&t.is("li")&&(t=l(t))?(f=t,t=t.getPrevious(a),e.moveToPosition(t&&n(t)?t:f,CKEDITOR.POSITION_BEFORE_START)):(p.range.setStartAt(B,CKEDITOR.POSITION_AFTER_START),p.range.setEnd(g.startContainer,g.startOffset),(t=p.previous())&&t.type==CKEDITOR.NODE_ELEMENT&&(t.getName()in b||t.is("li"))&&(t.is("li")||(p.range.selectNodeContents(t),p.reset(),p.evaluator=k,t=p.previous()),f=t,e.moveToElementEditEnd(f),e.moveToPosition(e.endPath().block,
+CKEDITOR.POSITION_BEFORE_END)));if(f)m(c,e,g),d.cancel();else{var y=h.contains(b);y&&g.checkBoundaryOfElement(y,CKEDITOR.START)&&(f=y.getFirst(a),g.checkBoundaryOfElement(f,CKEDITOR.START)&&(t=y.getPrevious(a),l(f)?t&&(g.moveToElementEditEnd(t),g.select()):c.execCommand("outdent"),d.cancel()))}}else if(f=h.contains("li")){if(p.range.setEndAt(B,CKEDITOR.POSITION_BEFORE_END),w=(B=f.getLast(a))&&k(B)?B:f,h=0,(t=p.next())&&t.type==CKEDITOR.NODE_ELEMENT&&t.getName()in b&&t.equals(B)?(h=1,t=p.next()):g.checkBoundaryOfElement(w,
+CKEDITOR.END)&&(h=2),h&&t){g=g.clone();g.moveToElementEditStart(t);if(1==h&&(e.optimize(),!e.startContainer.equals(f))){for(f=e.startContainer;f.is(CKEDITOR.dtd.$inline);)y=f,f=f.getParent();y&&e.moveToPosition(y,CKEDITOR.POSITION_AFTER_END)}2==h&&(e.moveToPosition(e.endPath().block,CKEDITOR.POSITION_BEFORE_END),g.endPath().block&&g.moveToPosition(g.endPath().block,CKEDITOR.POSITION_AFTER_START));m(c,e,g);d.cancel()}}else p.range.setEndAt(B,CKEDITOR.POSITION_BEFORE_END),(t=p.next())&&t.type==CKEDITOR.NODE_ELEMENT&&
+t.is(b)&&(t=t.getFirst(a),h.block&&g.checkStartOfBlock()&&g.checkEndOfBlock()?(h.block.remove(),g.moveToElementEditStart(t),g.select()):l(t)?(g.moveToElementEditStart(t),g.select()):(g=g.clone(),g.moveToElementEditStart(t),m(c,e,g)),d.cancel());setTimeout(function(){c.selectionChange(1)})}}}))}})}(),"use strict",function(){function c(a,b,c){return n(b)&&n(c)&&c.equals(b.getNext(function(a){return!(da(a)||W(a)||t(a))}))}function g(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}
+function f(a){var b=a.element;if(b&&n(b)&&(b=b.getAscendant(a.triggers,!0))&&a.editable.contains(b)){var c=l(b);if("true"==c.getAttribute("contenteditable"))return b;if(c.is(a.triggers))return c}return null}function e(a,b,c){w(a,b);w(a,c);a=b.size.bottom;c=c.size.top;return a&&c?0|(a+c)/2:a||c}function k(b,c,d){return c=c[d?"getPrevious":"getNext"](function(c){return c&&c.type==CKEDITOR.NODE_TEXT&&!da(c)||n(c)&&!t(c)&&!a(b,c)})}function m(a,b,c){return a>b&&a<c}function l(a,b){if(a.data("cke-editable"))return null;
+for(b||(a=a.getParent());a&&!a.data("cke-editable");){if(a.hasAttribute("contenteditable"))return a;a=a.getParent()}return null}function b(a){var b=a.doc,c=E('\x3cspan contenteditable\x3d"false" style\x3d"'+V+"position:absolute;border-top:1px dashed "+a.boxColor+'"\x3e\x3c/span\x3e',b),d=CKEDITOR.getUrl(this.path+"images/"+(G.hidpi?"hidpi/":"")+"icon"+(a.rtl?"-rtl":"")+".png");y(c,{attach:function(){this.wrap.getParent()||this.wrap.appendTo(a.editable,!0);return this},lineChildren:[y(E('\x3cspan title\x3d"'+
+a.editor.lang.magicline.title+'" contenteditable\x3d"false"\x3e\x26#8629;\x3c/span\x3e',b),{base:V+"height:17px;width:17px;"+(a.rtl?"left":"right")+":17px;background:url("+d+") center no-repeat "+a.boxColor+";cursor:pointer;"+(G.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(G.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px; border-radius: 2px;","top:-17px; border-radius: 2px 2px 0px 0px;","top:-1px; border-radius: 0px 0px 2px 2px;"]}),y(E(Q,b),{base:T+
+"left:0px;border-left-color:"+a.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),y(E(Q,b),{base:T+"right:0px;border-right-color:"+a.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){this.wrap.getParent()&&this.wrap.remove();return this},mouseNear:function(){w(a,this);var b=a.holdDistance,c=this.size;return c&&m(a.mouse.y,
+c.top-b,c.bottom+b)&&m(a.mouse.x,c.left-b,c.right+b)?!0:!1},place:function(){var b=a.view,c=a.editable,d=a.trigger,e=d.upper,f=d.lower,g=e||f,h=g.getParent(),k={};this.trigger=d;e&&w(a,e,!0);f&&w(a,f,!0);w(a,h,!0);a.inInlineMode&&B(a,!0);h.equals(c)?(k.left=b.scroll.x,k.right=-b.scroll.x,k.width=""):(k.left=g.size.left-g.size.margin.left+b.scroll.x-(a.inInlineMode?b.editable.left+b.editable.border.left:0),k.width=g.size.outerWidth+g.size.margin.left+g.size.margin.right+b.scroll.x,k.right="");e&&f?
+k.top=e.size.margin.bottom===f.size.margin.top?0|e.size.bottom+e.size.margin.bottom/2:e.size.margin.bottom<f.size.margin.top?e.size.bottom+e.size.margin.bottom:e.size.bottom+e.size.margin.bottom-f.size.margin.top:e?f||(k.top=e.size.bottom+e.size.margin.bottom):k.top=f.size.top-f.size.margin.top;d.is(P)||m(k.top,b.scroll.y-15,b.scroll.y+5)?(k.top=a.inInlineMode?0:b.scroll.y,this.look(P)):d.is(J)||m(k.top,b.pane.bottom-5,b.pane.bottom+15)?(k.top=a.inInlineMode?b.editable.height+b.editable.padding.top+
+b.editable.padding.bottom:b.pane.bottom-1,this.look(J)):(a.inInlineMode&&(k.top-=b.editable.top+b.editable.border.top),this.look(U));a.inInlineMode&&(k.top--,k.top+=b.editable.scroll.top,k.left+=b.editable.scroll.left);for(var l in k)k[l]=CKEDITOR.tools.cssLength(k[l]);this.setStyles(k)},look:function(a){if(this.oldLook!=a){for(var b=this.lineChildren.length,c;b--;)(c=this.lineChildren[b]).setAttribute("style",c.base+c.looks[0|a/2]);this.oldLook=a}},wrap:new F("span",a.doc)});for(b=c.lineChildren.length;b--;)c.lineChildren[b].appendTo(c);
+c.look(U);c.appendTo(c.wrap);c.unselectable();c.lineChildren[0].on("mouseup",function(b){c.detach();h(a,function(b){var c=a.line.trigger;b[c.is(K)?"insertBefore":"insertAfter"](c.is(K)?c.lower:c.upper)},!0);a.editor.focus();G.ie||a.enterMode==CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();b.data.preventDefault(!0)});c.on("mousedown",function(a){a.data.preventDefault(!0)});a.line=c}function h(a,b,c){var d=new CKEDITOR.dom.range(a.doc),e=a.editor,f;G.ie&&a.enterMode==CKEDITOR.ENTER_BR?f=a.doc.createText(Y):
+(f=(f=l(a.element,!0))&&f.data("cke-enter-mode")||a.enterMode,f=new F(L[f],a.doc),f.is("br")||a.doc.createText(Y).appendTo(f));c&&e.fire("saveSnapshot");b(f);d.moveToPosition(f,CKEDITOR.POSITION_AFTER_START);e.getSelection().selectRanges([d]);a.hotNode=f;c&&e.fire("saveSnapshot")}function d(a,b){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function c(d){var e=G.ie&&9>G.version?" ":Y,f=a.hotNode&&a.hotNode.getText()==e&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!b;h(a,function(c){f&&
+a.hotNode&&a.hotNode.remove();c[b?"insertAfter":"insertBefore"](d);c.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!b});a.lastCmdDirection=!!b});G.ie||a.enterMode==CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();a.line.detach()}return function(d){d=d.getSelection().getStartElement();var e;d=d.getAscendant(R,1);if(!r(a,d)&&d&&!d.equals(a.editable)&&!d.contains(a.editable)){(e=l(d))&&"false"==e.getAttribute("contenteditable")&&(d=e);a.element=d;e=k(a,d,!b);var g;n(e)&&e.is(a.triggers)&&
+e.is(M)&&(!k(a,e,!b)||(g=k(a,e,!b))&&n(g)&&g.is(a.triggers))?c(e):(g=f(a,d),n(g)&&(k(a,g,!b)?(d=k(a,g,!b))&&n(d)&&d.is(a.triggers)&&c(g):c(g)))}}}()}}function a(a,b){if(!b||b.type!=CKEDITOR.NODE_ELEMENT||!b.$)return!1;var c=a.line;return c.wrap.equals(b)||c.wrap.contains(b)}function n(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.$}function t(a){if(!n(a))return!1;var b;(b=p(a))||(n(a)?(b={left:1,right:1,center:1},b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])):b=!1);return b}function p(a){return!!{absolute:1,
+fixed:1}[a.getComputedStyle("position")]}function x(a,b){return n(b)?b.is(a.triggers):null}function r(a,b){if(!b)return!1;for(var c=b.getParents(1),d=c.length;d--;)for(var e=a.tabuList.length;e--;)if(c[d].hasAttribute(a.tabuList[e]))return!0;return!1}function q(a,b,c){b=b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&&!b.is(aa)});if(!b)return!1;w(a,b);return c?b.size.top>a.mouse.y:b.size.bottom<a.mouse.y}function u(b){var c=b.editable,d=b.mouse,e=b.view,f=b.triggerOffset;B(b);var h=d.y>
+(b.inInlineMode?e.editable.top+e.editable.height/2:Math.min(e.editable.height,e.pane.height)/2),c=c[h?"getLast":"getFirst"](function(a){return!(da(a)||W(a))});if(!c)return null;a(b,c)&&(c=b.line.wrap[h?"getPrevious":"getNext"](function(a){return!(da(a)||W(a))}));if(!n(c)||t(c)||!x(b,c))return null;w(b,c);return!h&&0<=c.size.top&&m(d.y,0,c.size.top+f)?(b=b.inInlineMode||0===e.scroll.y?P:U,new g([null,c,K,N,b])):h&&c.size.bottom<=e.pane.height&&m(d.y,c.size.bottom-f,e.pane.height)?(b=b.inInlineMode||
+m(c.size.bottom,e.pane.height-f,e.pane.height)?J:U,new g([c,null,D,N,b])):null}function v(a){var b=a.mouse,c=a.view,d=a.triggerOffset,e=f(a);if(!e)return null;w(a,e);var d=Math.min(d,0|e.size.outerHeight/2),h=[],l,v;if(m(b.y,e.size.top-1,e.size.top+d))v=!1;else if(m(b.y,e.size.bottom-d,e.size.bottom+1))v=!0;else return null;if(t(e)||q(a,e,v)||e.getParent().is(Z))return null;var u=k(a,e,!v);if(u){if(u&&u.type==CKEDITOR.NODE_TEXT)return null;if(n(u)){if(t(u)||!x(a,u)||u.getParent().is(Z))return null;
+h=[u,e][v?"reverse":"concat"]().concat([S,N])}}else e.equals(a.editable[v?"getLast":"getFirst"](a.isRelevant))?(B(a),v&&m(b.y,e.size.bottom-d,c.pane.height)&&m(e.size.bottom,c.pane.height-d,c.pane.height)?l=J:m(b.y,0,e.size.top+d)&&(l=P)):l=U,h=[null,e][v?"reverse":"concat"]().concat([v?D:K,N,l,e.equals(a.editable[v?"getLast":"getFirst"](a.isRelevant))?v?J:P:U]);return 0 in h?new g(h):null}function z(a,b,c,d){for(var e=b.getDocumentPosition(),f={},g={},h={},k={},l=ea.length;l--;)f[ea[l]]=parseInt(b.getComputedStyle.call(b,
+"border-"+ea[l]+"-width"),10)||0,h[ea[l]]=parseInt(b.getComputedStyle.call(b,"padding-"+ea[l]),10)||0,g[ea[l]]=parseInt(b.getComputedStyle.call(b,"margin-"+ea[l]),10)||0;c&&!d||A(a,d);k.top=e.y-(c?0:a.view.scroll.y);k.left=e.x-(c?0:a.view.scroll.x);k.outerWidth=b.$.offsetWidth;k.outerHeight=b.$.offsetHeight;k.height=k.outerHeight-(h.top+h.bottom+f.top+f.bottom);k.width=k.outerWidth-(h.left+h.right+f.left+f.right);k.bottom=k.top+k.outerHeight;k.right=k.left+k.outerWidth;a.inInlineMode&&(k.scroll={top:b.$.scrollTop,
+left:b.$.scrollLeft});return y({border:f,padding:h,margin:g,ignoreScroll:c},k,!0)}function w(a,b,c){if(!n(b))return b.size=null;if(!b.size)b.size={};else if(b.size.ignoreScroll==c&&b.size.date>new Date-O)return null;return y(b.size,z(a,b,c),{date:+new Date},!0)}function B(a,b){a.view.editable=z(a,a.editable,b,!0)}function A(a,b){a.view||(a.view={});var c=a.view;if(!(!b&&c&&c.date>new Date-O)){var d=a.win,c=d.getScrollPosition(),d=d.getViewPaneSize();y(a.view,{scroll:{x:c.x,y:c.y,width:a.doc.$.documentElement.scrollWidth-
+d.width,height:a.doc.$.documentElement.scrollHeight-d.height},pane:{width:d.width,height:d.height,bottom:d.height+c.y},date:+new Date},!0)}}function C(a,b,c,d){for(var e=d,f=d,h=0,k=!1,l=!1,m=a.view.pane.height,n=a.mouse;n.y+h<m&&0<n.y-h;){k||(k=b(e,d));l||(l=b(f,d));!k&&0<n.y-h&&(e=c(a,{x:n.x,y:n.y-h}));!l&&n.y+h<m&&(f=c(a,{x:n.x,y:n.y+h}));if(k&&l)break;h+=2}return new g([e,f,null,null])}CKEDITOR.plugins.add("magicline",{init:function(c){var e=c.config,l=e.magicline_triggerOffset||30,m={editor:c,
+enterMode:e.enterMode,triggerOffset:l,holdDistance:0|l*(e.magicline_holdDistance||.5),boxColor:e.magicline_color||"#ff0000",rtl:"rtl"==e.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(e.magicline_tabuList||[]),triggers:e.magicline_everywhere?R:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},q,w,x;m.isRelevant=function(b){return n(b)&&!a(m,b)&&!t(b)};c.on("contentDom",function(){var l=c.editable(),n=c.document,t=c.window;y(m,{editable:l,inInlineMode:l.isInline(),doc:n,win:t,
+hotNode:null},!0);m.boundary=m.inInlineMode?m.editable:m.doc.getDocumentElement();l.is(H.$inline)||(m.inInlineMode&&!p(l)&&l.setStyles({position:"relative",top:null,left:null}),b.call(this,m),A(m),l.attachListener(c,"beforeUndoImage",function(){m.line.detach()}),l.attachListener(c,"beforeGetData",function(){m.line.wrap.getParent()&&(m.line.detach(),c.once("getData",function(){m.line.attach()},null,null,1E3))},null,null,0),l.attachListener(m.inInlineMode?n:n.getWindow().getFrame(),"mouseout",function(a){if("wysiwyg"==
+c.mode)if(m.inInlineMode){var b=a.data.$.clientX;a=a.data.$.clientY;A(m);B(m,!0);var d=m.view.editable,e=m.view.scroll;b>d.left-e.x&&b<d.right-e.x&&a>d.top-e.y&&a<d.bottom-e.y||(clearTimeout(x),x=null,m.line.detach())}else clearTimeout(x),x=null,m.line.detach()}),l.attachListener(l,"keyup",function(){m.hiddenMode=0}),l.attachListener(l,"keydown",function(a){if("wysiwyg"==c.mode)switch(a.data.getKeystroke()){case 2228240:case 16:m.hiddenMode=1,m.line.detach()}}),l.attachListener(m.inInlineMode?l:n,
+"mousemove",function(a){w=!0;if("wysiwyg"==c.mode&&!c.readOnly&&!x){var b={x:a.data.$.clientX,y:a.data.$.clientY};x=setTimeout(function(){m.mouse=b;x=m.trigger=null;A(m);w&&!m.hiddenMode&&c.focusManager.hasFocus&&!m.line.mouseNear()&&(m.element=X(m,!0))&&((m.trigger=u(m)||v(m)||ca(m))&&!r(m,m.trigger.upper||m.trigger.lower)?m.line.attach().place():(m.trigger=null,m.line.detach()),w=!1)},30)}}),l.attachListener(t,"scroll",function(){"wysiwyg"==c.mode&&(m.line.detach(),G.webkit&&(m.hiddenMode=1,clearTimeout(q),
+q=setTimeout(function(){m.mouseDown||(m.hiddenMode=0)},50)))}),l.attachListener(I?n:t,"mousedown",function(){"wysiwyg"==c.mode&&(m.line.detach(),m.hiddenMode=1,m.mouseDown=1)}),l.attachListener(I?n:t,"mouseup",function(){m.hiddenMode=0;m.mouseDown=0}),c.addCommand("accessPreviousSpace",d(m)),c.addCommand("accessNextSpace",d(m,!0)),c.setKeystroke([[e.magicline_keystrokePrevious,"accessPreviousSpace"],[e.magicline_keystrokeNext,"accessNextSpace"]]),c.on("loadSnapshot",function(){var a,b,d,e;for(e in{p:1,
+br:1,div:1})for(a=c.document.getElementsByTag(e),d=a.count();d--;)if((b=a.getItem(d)).data("cke-magicline-hot")){m.hotNode=b;m.lastCmdDirection="true"===b.data("cke-magicline-dir")?!0:!1;return}}),this.backdoor={accessFocusSpace:h,boxTrigger:g,isLine:a,getAscendantTrigger:f,getNonEmptyNeighbour:k,getSize:z,that:m,triggerEdge:v,triggerEditable:u,triggerExpand:ca})},this)}});var y=CKEDITOR.tools.extend,F=CKEDITOR.dom.element,E=F.createFromHtml,G=CKEDITOR.env,I=CKEDITOR.env.ie&&9>CKEDITOR.env.version,
+H=CKEDITOR.dtd,L={},K=128,D=64,S=32,N=16,P=4,J=2,U=1,Y=" ",Z=H.$listItem,aa=H.$tableContent,M=y({},H.$nonEditable,H.$empty),R=H.$block,O=100,V="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",T=V+"border-color:transparent;display:block;border-style:solid;",Q="\x3cspan\x3e"+Y+"\x3c/span\x3e";L[CKEDITOR.ENTER_BR]="br";L[CKEDITOR.ENTER_P]="p";L[CKEDITOR.ENTER_DIV]="div";g.prototype={set:function(a,b,c){this.properties=
+a+b+(c||U);return this},is:function(a){return(this.properties&a)==a}};var X=function(){function b(a,c){var d=a.$.elementFromPoint(c.x,c.y);return d&&d.nodeType?new CKEDITOR.dom.element(d):null}return function(c,d,e){if(!c.mouse)return null;var f=c.doc,g=c.line.wrap;e=e||c.mouse;var h=b(f,e);d&&a(c,h)&&(g.hide(),h=b(f,e),g.show());return!h||h.type!=CKEDITOR.NODE_ELEMENT||!h.$||G.ie&&9>G.version&&!c.boundary.equals(h)&&!c.boundary.contains(h)?null:h}}(),da=CKEDITOR.dom.walker.whitespaces(),W=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),
+ca=function(){function b(a){var f=a.element,g,h,k;if(!n(f)||f.contains(a.editable)||f.isReadOnly())return null;k=C(a,function(a,b){return!b.equals(a)},function(a,b){return X(a,!0,b)},f);g=k.upper;h=k.lower;if(c(a,g,h))return k.set(S,8);if(g&&f.contains(g))for(;!g.getParent().equals(f);)g=g.getParent();else g=f.getFirst(function(b){return d(a,b)});if(h&&f.contains(h))for(;!h.getParent().equals(f);)h=h.getParent();else h=f.getLast(function(b){return d(a,b)});if(!g||!h)return null;w(a,g);w(a,h);if(!m(a.mouse.y,
+g.size.top,h.size.bottom))return null;for(var f=Number.MAX_VALUE,l,q,v,u;h&&!h.equals(g)&&(q=g.getNext(a.isRelevant));)l=Math.abs(e(a,g,q)-a.mouse.y),l<f&&(f=l,v=g,u=q),g=q,w(a,g);if(!v||!u||!m(a.mouse.y,v.size.top,u.size.bottom))return null;k.upper=v;k.lower=u;return k.set(S,8)}function d(b,c){return!(c&&c.type==CKEDITOR.NODE_TEXT||W(c)||t(c)||a(b,c)||c.type==CKEDITOR.NODE_ELEMENT&&c.$&&c.is("br"))}return function(a){var d=b(a),e;if(e=d){e=d.upper;var f=d.lower;e=!e||!f||t(f)||t(e)||f.equals(e)||
+e.equals(f)||f.contains(e)||e.contains(f)?!1:x(a,e)&&x(a,f)&&c(a,e,f)?!0:!1}return e?d:null}}(),ea=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function c(c){if(!c||c.type!=CKEDITOR.NODE_ELEMENT||"form"!=c.getName())return[];for(var e=[],b=["style","className"],f=0;f<b.length;f++){var d=c.$.elements.namedItem(b[f]);d&&(d=new CKEDITOR.dom.element(d),e.push([d,
+d.nextSibling]),d.remove())}return e}function g(c,e){if(c&&c.type==CKEDITOR.NODE_ELEMENT&&"form"==c.getName()&&0<e.length)for(var b=e.length-1;0<=b;b--){var f=e[b][0],d=e[b][1];d?f.insertBefore(d):f.appendTo(c)}}function f(e,f){var b=c(e),h={},d=e.$;f||(h["class"]=d.className||"",d.className="");h.inline=d.style.cssText||"";f||(d.style.cssText="position: static; overflow: visible");g(b);return h}function e(e,f){var b=c(e),h=e.$;"class"in f&&(h.className=f["class"]);"inline"in f&&(h.style.cssText=
+f.inline);g(b)}function k(c){if(!c.editable().isInline()){var e=CKEDITOR.instances,b;for(b in e){var f=e[b];"wysiwyg"!=f.mode||f.readOnly||(f=f.document.getBody(),f.setAttribute("contentEditable",!1),f.setAttribute("contentEditable",!0))}c.editable().hasFocus&&(c.toolbox.focus(),c.focus())}}CKEDITOR.plugins.add("maximize",{init:function(c){function g(){var a=d.getViewPaneSize();c.resize(a.width,a.height,null,!0)}if(c.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var b=c.lang,h=CKEDITOR.document,d=h.getWindow(),
+a,n,t,p=CKEDITOR.TRISTATE_OFF;c.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var x=c.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}),r=c.ui.space("contents");if("wysiwyg"==c.mode){var q=c.getSelection();a=q&&q.getRanges();n=d.getScrollPosition()}else{var u=c.editable().$;a=!CKEDITOR.env.ie&&[u.selectionStart,u.selectionEnd];n=[u.scrollLeft,u.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){d.on("resize",
+g);t=d.getScrollPosition();for(q=c.container;q=q.getParent();)q.setCustomData("maximize_saved_styles",f(q)),q.setStyle("z-index",c.config.baseFloatZIndex-5);r.setCustomData("maximize_saved_styles",f(r,!0));x.setCustomData("maximize_saved_styles",f(x,!0));r={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};h.getDocumentElement().setStyles(r);!CKEDITOR.env.gecko&&h.getDocumentElement().setStyle("position","fixed");CKEDITOR.env.gecko&&CKEDITOR.env.quirks||h.getBody().setStyles(r);CKEDITOR.env.ie?
+setTimeout(function(){d.$.scrollTo(0,0)},0):d.$.scrollTo(0,0);x.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");x.$.offsetLeft;x.setStyles({"z-index":c.config.baseFloatZIndex-5,left:"0px",top:"0px"});x.addClass("cke_maximized");g();r=x.getDocumentPosition();x.setStyles({left:-1*r.x+"px",top:-1*r.y+"px"});CKEDITOR.env.gecko&&k(c)}else if(this.state==CKEDITOR.TRISTATE_ON){d.removeListener("resize",g);for(var q=[r,x],v=0;v<q.length;v++)e(q[v],q[v].getCustomData("maximize_saved_styles")),
+q[v].removeCustomData("maximize_saved_styles");for(q=c.container;q=q.getParent();)e(q,q.getCustomData("maximize_saved_styles")),q.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){d.$.scrollTo(t.x,t.y)},0):d.$.scrollTo(t.x,t.y);x.removeClass("cke_maximized");CKEDITOR.env.webkit&&(x.setStyle("display","inline"),setTimeout(function(){x.setStyle("display","block")},0));c.fire("resize",{outerHeight:c.container.$.offsetHeight,contentsHeight:r.$.offsetHeight,outerWidth:c.container.$.offsetWidth})}this.toggleState();
+if(q=this.uiItems[0])r=this.state==CKEDITOR.TRISTATE_OFF?b.maximize.maximize:b.maximize.minimize,q=CKEDITOR.document.getById(q._.id),q.getChild(1).setHtml(r),q.setAttribute("title",r),q.setAttribute("href",'javascript:void("'+r+'");');"wysiwyg"==c.mode?a?(CKEDITOR.env.gecko&&k(c),c.getSelection().selectRanges(a),(u=c.getSelection().getStartElement())&&u.scrollIntoView(!0)):d.$.scrollTo(n.x,n.y):(a&&(u.selectionStart=a[0],u.selectionEnd=a[1]),u.scrollLeft=n[0],u.scrollTop=n[1]);a=n=null;p=this.state;
+c.fire("maximize",this.state)},canUndo:!1});c.ui.addButton&&c.ui.addButton("Maximize",{label:b.maximize.maximize,command:"maximize",toolbar:"tools,10"});c.on("mode",function(){var a=c.getCommand("maximize");a.setState(a.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:p)},null,null,100)}}})}(),function(){function c(c,f,e){var k=CKEDITOR.cleanWord;k?e():(c=CKEDITOR.getUrl(c.config.pasteFromWordCleanupFile||f+"filter/default.js"),CKEDITOR.scriptLoader.load(c,e,null,!0));return!k}CKEDITOR.plugins.add("pastefromword",
+{requires:"clipboard",init:function(g){function f(c){var b=CKEDITOR.plugins.pastefromword&&CKEDITOR.plugins.pastefromword.images,e,d=[];if(b&&c.editor.filter.check("img[src]")&&(e=b.extractTagsFromHtml(c.data.dataValue),0!==e.length&&(b=b.extractFromRtf(c.data.dataTransfer["text/rtf"]),0!==b.length&&(CKEDITOR.tools.array.forEach(b,function(a){d.push(a.type?"data:"+a.type+";base64,"+CKEDITOR.tools.convertBytesToBase64(CKEDITOR.tools.convertHexStringToBytes(a.hex)):null)},this),e.length===d.length))))for(b=
+0;b<e.length;b++)0===e[b].indexOf("file://")&&d[b]&&(c.data.dataValue=c.data.dataValue.replace(e[b],d[b]))}var e=0,k=this.path,m=void 0===g.config.pasteFromWord_inlineImages?!0:g.config.pasteFromWord_inlineImages;g.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(c,b){e=1;c.execCommand("paste",{type:"html",notification:b&&"undefined"!==typeof b.notification?b.notification:!0})}});g.ui.addButton&&g.ui.addButton("PasteFromWord",{label:g.lang.pastefromword.toolbar,command:"pastefromword",
+toolbar:"clipboard,50"});g.on("paste",function(f){var b=f.data,h=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?b.dataTransfer.getData("text/html",!0):null,d=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?b.dataTransfer.getData("text/rtf"):null,h=h||b.dataValue,a={dataValue:h,dataTransfer:{"text/rtf":d}},d=/(class=\"?Mso|style=(?:\"|\')[^\"]*?\bmso\-|w:WordDocument|<o:\w+>|<\/font>)/,d=/<meta\s*name=(?:\"|\')?generator(?:\"|\')?\s*content=(?:\"|\')?microsoft/gi.test(h)||d.test(h);if(h&&
+(e||d)&&(!1!==g.fire("pasteFromWord",a)||e)){b.dontFilter=!0;var m=c(g,k,function(){if(m)g.fire("paste",b);else if(!g.config.pasteFromWordPromptCleanup||e||confirm(g.lang.pastefromword.confirmCleanup))a.dataValue=CKEDITOR.cleanWord(a.dataValue,g),g.fire("afterPasteFromWord",a),b.dataValue=a.dataValue;e=0});m&&f.cancel()}},null,null,3);if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported&&m)g.on("afterPasteFromWord",f)}})}(),function(){var c={canUndo:!1,async:!0,exec:function(c,f){var e=c.lang,
+k=CKEDITOR.tools.keystrokeToString(e.common.keyboard,c.getCommandKeystroke(CKEDITOR.env.ie?c.commands.paste:this)),m=f&&"undefined"!==typeof f.notification?f.notification:!f||!f.from||"keystrokeHandler"===f.from&&CKEDITOR.env.ie,e=m&&"string"===typeof m?m:e.pastetext.pasteNotification.replace(/%1/,'\x3ckbd aria-label\x3d"'+k.aria+'"\x3e'+k.display+"\x3c/kbd\x3e");c.execCommand("paste",{type:"text",notification:m?e:!1})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(g){var f=
+CKEDITOR.env.safari?CKEDITOR.CTRL+CKEDITOR.ALT+CKEDITOR.SHIFT+86:CKEDITOR.CTRL+CKEDITOR.SHIFT+86;g.addCommand("pastetext",c);g.setKeystroke(f,"pastetext");g.ui.addButton&&g.ui.addButton("PasteText",{label:g.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(g.config.forcePasteAsPlainText)g.on("beforePaste",function(c){"html"!=c.data.type&&(c.data.type="text")});g.on("pasteState",function(c){g.getCommand("pastetext").setState(c.data)})}})}(),CKEDITOR.plugins.add("removeformat",{init:function(c){c.addCommand("removeFormat",
+CKEDITOR.plugins.removeformat.commands.removeformat);c.ui.addButton&&c.ui.addButton("RemoveFormat",{label:c.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(c){for(var g=c._.removeFormatRegex||(c._.removeFormatRegex=new RegExp("^(?:"+c.config.removeFormatTags.replace(/,/g,"|")+")$","i")),f=c._.removeAttributes||(c._.removeAttributes=c.config.removeFormatAttributes.split(",")),e=CKEDITOR.plugins.removeformat.filter,
+k=c.getSelection().getRanges(),m=k.createIterator(),l=function(a){return a.type==CKEDITOR.NODE_ELEMENT},b;b=m.getNextRange();){b.collapsed||b.enlarge(CKEDITOR.ENLARGE_ELEMENT);var h=b.createBookmark(),d=h.startNode,a=h.endNode,n=function(a){for(var b=c.elementPath(a),d=b.elements,f=1,h;(h=d[f])&&!h.equals(b.block)&&!h.equals(b.blockLimit);f++)g.test(h.getName())&&e(c,h)&&a.breakParent(h)};n(d);if(a)for(n(a),d=d.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);d&&!d.equals(a);)if(d.isReadOnly()){if(d.getPosition(a)&
+CKEDITOR.POSITION_CONTAINS)break;d=d.getNext(l)}else n=d.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==d.getName()&&d.data("cke-realelement")||!e(c,d)||(g.test(d.getName())?d.remove(1):(d.removeAttributes(f),c.fire("removeFormatCleanup",d))),d=n;b.moveToBookmark(h)}c.forceNextSelectionCheck();c.getSelection().selectRanges(k)}}},filter:function(c,g){for(var f=c._.removeFormatFilters||[],e=0;e<f.length;e++)if(!1===f[e](g))return!1;return!0}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(c){this._.removeFormatFilters||
+(this._.removeFormatFilters=[]);this._.removeFormatFilters.push(c)},CKEDITOR.config.removeFormatTags="b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var",CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign",function(){function c(c,e,k){var m,l;if(k="string"==typeof k?CKEDITOR.document.getById(k):new CKEDITOR.dom.element(k))if(m=c.fire("uiSpace",{space:e,html:""}).html)c.on("uiSpace",function(b){b.data.space==e&&b.cancel()},
+null,null,1),l=k.append(CKEDITOR.dom.element.createFromHtml(g.output({id:c.id,name:c.name,langDir:c.lang.dir,langCode:c.langCode,space:e,spaceId:c.ui.spaceId(e),content:m}))),k.getCustomData("cke_hasshared")?l.hide():k.setCustomData("cke_hasshared",1),l.unselectable(),l.on("mousedown",function(b){b=b.data;b.getTarget().hasAscendant("a",1)||b.preventDefault()}),c.focusManager.add(l,1),c.on("focus",function(){for(var b=0,c,d=k.getChildren();c=d.getItem(b);b++)c.type==CKEDITOR.NODE_ELEMENT&&!c.equals(l)&&
+c.hasClass("cke_shared")&&c.hide();l.show()}),c.on("destroy",function(){l.remove()})}var g=CKEDITOR.addTemplate("sharedcontainer",'\x3cdiv id\x3d"cke_{name}" class\x3d"cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_shared cke_detached cke_{langDir} '+CKEDITOR.env.cssClass+'" dir\x3d"{langDir}" title\x3d"'+(CKEDITOR.env.gecko?" ":"")+'" lang\x3d"{langCode}" role\x3d"presentation"\x3e\x3cdiv class\x3d"cke_inner"\x3e\x3cdiv id\x3d"{spaceId}" class\x3d"cke_{space}" role\x3d"presentation"\x3e{content}\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
+CKEDITOR.plugins.add("sharedspace",{init:function(f){f.on("loaded",function(){var e=f.config.sharedSpaces;if(e)for(var g in e)c(f,g,e[g])},null,null,9)}})}(),function(){var c={readOnly:1,preserveState:!0,editorFocus:!1,exec:function(c){this.toggleState();this.refresh(c)},refresh:function(c){if(c.document){var f=this.state!=CKEDITOR.TRISTATE_ON||c.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!c.focusManager.hasFocus?"removeClass":"attachClass";c.editable()[f]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",
+{onLoad:function(){var c="p div pre address blockquote h1 h2 h3 h4 h5 h6".split(" "),f,e,k,m,l=CKEDITOR.getUrl(this.path),b=!(CKEDITOR.env.ie&&9>CKEDITOR.env.version),h=b?":not([contenteditable\x3dfalse]):not(.cke_show_blocks_off)":"",d,a;for(f=e=k=m="";d=c.pop();)a=c.length?",":"",f+=".cke_show_blocks "+d+h+a,k+=".cke_show_blocks.cke_contents_ltr "+d+h+a,m+=".cke_show_blocks.cke_contents_rtl "+d+h+a,e+=".cke_show_blocks "+d+h+"{background-image:url("+CKEDITOR.getUrl(l+"images/block_"+d+".png")+")}";
+CKEDITOR.addCss((f+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(e,k+"{background-position:top left;padding-left:8px}",m+"{background-position:top right;padding-right:8px}"));b||CKEDITOR.addCss(".cke_show_blocks [contenteditable\x3dfalse],.cke_show_blocks .cke_show_blocks_off{border:none;padding-top:0;background-image:none}.cke_show_blocks.cke_contents_rtl [contenteditable\x3dfalse],.cke_show_blocks.cke_contents_rtl .cke_show_blocks_off{padding-right:0}.cke_show_blocks.cke_contents_ltr [contenteditable\x3dfalse],.cke_show_blocks.cke_contents_ltr .cke_show_blocks_off{padding-left:0}")},
+init:function(g){function f(){e.refresh(g)}if(!g.blockless){var e=g.addCommand("showblocks",c);e.canUndo=!1;g.config.startupOutlineBlocks&&e.setState(CKEDITOR.TRISTATE_ON);g.ui.addButton&&g.ui.addButton("ShowBlocks",{label:g.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"});g.on("mode",function(){e.state!=CKEDITOR.TRISTATE_DISABLED&&e.refresh(g)});g.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(g.on("focus",f),g.on("blur",f));g.on("contentDom",function(){e.state!=CKEDITOR.TRISTATE_DISABLED&&
+e.refresh(g)})}}})}(),function(){var c={preserveState:!0,editorFocus:!1,readOnly:1,exec:function(c){this.toggleState();this.refresh(c)},refresh:function(c){if(c.document){var f=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";c.editable()[f]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var c;c=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:".%1 table.%2,;.%1 table.%2 \x3e tr \x3e td, .%1 table.%2 \x3e tr \x3e th,;.%1 table.%2 \x3e tbody \x3e tr \x3e td, .%1 table.%2 \x3e tbody \x3e tr \x3e th,;.%1 table.%2 \x3e thead \x3e tr \x3e td, .%1 table.%2 \x3e thead \x3e tr \x3e th,;.%1 table.%2 \x3e tfoot \x3e tr \x3e td, .%1 table.%2 \x3e tfoot \x3e tr \x3e th;{;border : #d3d3d3 1px dotted;}".split(";")).join("").replace(/%2/g,
+"cke_show_border").replace(/%1/g,"cke_show_borders ");CKEDITOR.addCss(c)},init:function(g){var f=g.addCommand("showborders",c);f.canUndo=!1;!1!==g.config.startupShowBorders&&f.setState(CKEDITOR.TRISTATE_ON);g.on("mode",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&f.refresh(g)},null,null,100);g.on("contentDom",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&f.refresh(g)});g.on("removeFormatCleanup",function(c){c=c.data;g.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&c.is("table")&&(!c.hasAttribute("border")||
+0>=parseInt(c.getAttribute("border"),10))&&c.addClass("cke_show_border")})},afterInit:function(c){var f=c.dataProcessor;c=f&&f.dataFilter;f=f&&f.htmlFilter;c&&c.addRules({elements:{table:function(c){c=c.attributes;var f=c["class"],g=parseInt(c.border,10);g&&!(0>=g)||f&&-1!=f.indexOf("cke_show_border")||(c["class"]=(f||"")+" cke_show_border")}}});f&&f.addRules({elements:{table:function(c){c=c.attributes;var f=c["class"];f&&(c["class"]=f.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,
+""))}}})}});CKEDITOR.on("dialogDefinition",function(c){var f=c.data.name;if("table"==f||"tableProperties"==f)if(c=c.data.definition,f=c.getContents("info").get("txtBorder"),f.commit=CKEDITOR.tools.override(f.commit,function(c){return function(f,g){c.apply(this,arguments);var l=parseInt(this.getValue(),10);g[!l||0>=l?"addClass":"removeClass"]("cke_show_border")}}),c=(c=c.getContents("advanced"))&&c.get("advCSSClasses"))c.setup=CKEDITOR.tools.override(c.setup,function(c){return function(){c.apply(this,
+arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}}),c.commit=CKEDITOR.tools.override(c.commit,function(c){return function(f,g){c.apply(this,arguments);parseInt(g.getAttribute("border"),10)||g.addClass("cke_show_border")}})})}(),function(){CKEDITOR.plugins.add("sourcearea",{init:function(g){function f(){var c=k&&this.equals(CKEDITOR.document.getActive());this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+
+"px");this.show();c&&this.focus()}if(g.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var e=CKEDITOR.plugins.sourcearea;g.addMode("source",function(e){var k=g.ui.space("contents").getDocument().createElement("textarea");k.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",g.config.sourceAreaTabSize||4)));k.setAttribute("dir","ltr");k.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");
+g.ui.space("contents").append(k);k=g.editable(new c(g,k));k.setData(g.getData(1));CKEDITOR.env.ie&&(k.attachListener(g,"resize",f,k),k.attachListener(CKEDITOR.document.getWindow(),"resize",f,k),CKEDITOR.tools.setTimeout(f,0,k));g.fire("ariaWidget",this);e()});g.addCommand("source",e.commands.source);g.ui.addButton&&g.ui.addButton("Source",{label:g.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});g.on("mode",function(){g.getCommand("source").setState("source"==g.mode?CKEDITOR.TRISTATE_ON:
+CKEDITOR.TRISTATE_OFF)});var k=CKEDITOR.env.ie&&9==CKEDITOR.env.version}}});var c=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(c){this.setValue(c);this.status="ready";this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(c){this[(c?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){c.baseProto.detach.call(this);this.clearCustomData();
+this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(c){"wysiwyg"==c.mode&&c.fire("saveSnapshot");c.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);c.setMode("source"==c.mode?"wysiwyg":"source")},canUndo:!1}}},CKEDITOR.plugins.add("sourcedialog",{requires:"dialog",init:function(c){c.addCommand("sourcedialog",new CKEDITOR.dialogCommand("sourcedialog"));CKEDITOR.dialog.add("sourcedialog",this.path+"dialogs/sourcedialog.js");
+c.ui.addButton&&c.ui.addButton("Sourcedialog",{label:c.lang.sourcedialog.toolbar,command:"sourcedialog",toolbar:"mode,10"})}}),CKEDITOR.plugins.add("specialchar",{availableLangs:{af:1,ar:1,az:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-au":1,"en-ca":1,"en-gb":1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,nb:1,nl:1,no:1,oc:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},
+requires:"dialog",init:function(c){var g=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");c.addCommand("specialchar",{exec:function(){var f=c.langCode,f=g.availableLangs[f]?f:g.availableLangs[f.replace(/-.*/,"")]?f.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(g.path+"dialogs/lang/"+f+".js"),function(){CKEDITOR.tools.extend(c.lang.specialchar,g.langEntries[f]);c.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1});c.ui.addButton&&c.ui.addButton("SpecialChar",
+{label:c.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! \x26quot; # $ % \x26amp; ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; \x26lt; \x3d \x26gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ \x26euro; \x26lsquo; \x26rsquo; \x26ldquo; \x26rdquo; \x26ndash; \x26mdash; \x26iexcl; \x26cent; \x26pound; \x26curren; \x26yen; \x26brvbar; \x26sect; \x26uml; \x26copy; \x26ordf; \x26laquo; \x26not; \x26reg; \x26macr; \x26deg; \x26sup2; \x26sup3; \x26acute; \x26micro; \x26para; \x26middot; \x26cedil; \x26sup1; \x26ordm; \x26raquo; \x26frac14; \x26frac12; \x26frac34; \x26iquest; \x26Agrave; \x26Aacute; \x26Acirc; \x26Atilde; \x26Auml; \x26Aring; \x26AElig; \x26Ccedil; \x26Egrave; \x26Eacute; \x26Ecirc; \x26Euml; \x26Igrave; \x26Iacute; \x26Icirc; \x26Iuml; \x26ETH; \x26Ntilde; \x26Ograve; \x26Oacute; \x26Ocirc; \x26Otilde; \x26Ouml; \x26times; \x26Oslash; \x26Ugrave; \x26Uacute; \x26Ucirc; \x26Uuml; \x26Yacute; \x26THORN; \x26szlig; \x26agrave; \x26aacute; \x26acirc; \x26atilde; \x26auml; \x26aring; \x26aelig; \x26ccedil; \x26egrave; \x26eacute; \x26ecirc; \x26euml; \x26igrave; \x26iacute; \x26icirc; \x26iuml; \x26eth; \x26ntilde; \x26ograve; \x26oacute; \x26ocirc; \x26otilde; \x26ouml; \x26divide; \x26oslash; \x26ugrave; \x26uacute; \x26ucirc; \x26uuml; \x26yacute; \x26thorn; \x26yuml; \x26OElig; \x26oelig; \x26#372; \x26#374 \x26#373 \x26#375; \x26sbquo; \x26#8219; \x26bdquo; \x26hellip; \x26trade; \x26#9658; \x26bull; \x26rarr; \x26rArr; \x26hArr; \x26diams; \x26asymp;".split(" "),
+function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(c){var g=c.config,f=c.lang.stylescombo,e={},k=[],m=[];c.on("stylesSet",function(f){if(f=f.data.styles){for(var b,h,d,a=0,n=f.length;a<n;a++)(b=f[a],c.blockless&&b.element in CKEDITOR.dtd.$block||"string"==typeof b.type&&!CKEDITOR.style.customHandlers[b.type]||(h=b.name,b=new CKEDITOR.style(b),c.filter.customConfig&&!c.filter.check(b)))||(b._name=h,b._.enterMode=g.enterMode,b._.type=d=b.assignedTo||b.type,b._.weight=
+a+1E3*(d==CKEDITOR.STYLE_OBJECT?1:d==CKEDITOR.STYLE_BLOCK?2:3),e[h]=b,k.push(b),m.push(b));k.sort(function(a,b){return a._.weight-b._.weight})}});c.ui.addRichCombo("Styles",{label:f.label,title:f.panelTitle,toolbar:"styles,10",allowedContent:m,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(g.contentsCss),multiSelect:!0,attributes:{"aria-label":f.panelTitle}},init:function(){var c,b,e,d,a,g;a=0;for(g=k.length;a<g;a++)c=k[a],b=c._name,d=c._.type,d!=e&&(this.startGroup(f["panelTitle"+String(d)]),
+e=d),this.add(b,c.type==CKEDITOR.STYLE_OBJECT?b:c.buildPreview(),b);this.commit()},onClick:function(f){c.focus();c.fire("saveSnapshot");f=e[f];var b=c.elementPath();if(f.group&&f.removeStylesFromSameGroup(c))c.applyStyle(f);else c[f.checkActive(b,c)?"removeStyle":"applyStyle"](f);c.fire("saveSnapshot")},onRender:function(){c.on("selectionChange",function(f){var b=this.getValue();f=f.data.path.elements;for(var g=0,d=f.length,a;g<d;g++){a=f[g];for(var k in e)if(e[k].checkElementRemovable(a,!0,c)){k!=
+b&&this.setValue(k);return}}this.setValue("")},this)},onOpen:function(){var g=c.getSelection(),g=g.getSelectedElement()||g.getStartElement()||c.editable(),g=c.elementPath(g),b=[0,0,0,0];this.showAll();this.unmarkAll();for(var h in e){var d=e[h],a=d._.type;d.checkApplicable(g,c,c.activeFilter)?b[a]++:this.hideItem(h);d.checkActive(g,c)&&this.mark(h)}b[CKEDITOR.STYLE_BLOCK]||this.hideGroup(f["panelTitle"+String(CKEDITOR.STYLE_BLOCK)]);b[CKEDITOR.STYLE_INLINE]||this.hideGroup(f["panelTitle"+String(CKEDITOR.STYLE_INLINE)]);
+b[CKEDITOR.STYLE_OBJECT]||this.hideGroup(f["panelTitle"+String(CKEDITOR.STYLE_OBJECT)])},refresh:function(){var f=c.elementPath();if(f){for(var b in e)if(e[b].checkApplicable(f,c,c.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){e={};k=[]}})}})}(),function(){function c(c){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(e){if(e.editable().hasFocus){var f=e.getSelection(),b;if(b=(new CKEDITOR.dom.elementPath(f.getCommonAncestor(),f.root)).contains({td:1,
+th:1},1)){var f=e.createRange(),g=CKEDITOR.tools.tryThese(function(){var a=b.getParent().$.cells[b.$.cellIndex+(c?-1:1)];a.parentNode.parentNode;return a},function(){var a=b.getParent(),a=a.getAscendant("table").$.rows[a.$.rowIndex+(c?-1:1)];return a.cells[c?a.cells.length-1:0]});if(g||c)if(g)g=new CKEDITOR.dom.element(g),f.moveToElementEditStart(g),f.checkStartOfBlock()&&f.checkEndOfBlock()||f.selectNodeContents(g);else return!0;else{for(var d=b.getAscendant("table").$,g=b.getParent().$.cells,d=
+new CKEDITOR.dom.element(d.insertRow(-1),e.document),a=0,n=g.length;a<n;a++)d.append((new CKEDITOR.dom.element(g[a],e.document)).clone(!1,!1)).appendBogus();f.moveToElementEditStart(d)}f.select(!0);return!0}}return!1}}}var g={editorFocus:!1,modes:{wysiwyg:1,source:1}},f={exec:function(c){c.container.focusNext(!0,c.tabIndex)}},e={exec:function(c){c.container.focusPrevious(!0,c.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(k){for(var m=!1!==k.config.enableTabKeyTools,l=k.config.tabSpaces||0,
+b="";l--;)b+=" ";if(b)k.on("key",function(c){9==c.data.keyCode&&(k.insertText(b),c.cancel())});if(m)k.on("key",function(b){(9==b.data.keyCode&&k.execCommand("selectNextCell")||b.data.keyCode==CKEDITOR.SHIFT+9&&k.execCommand("selectPreviousCell"))&&b.cancel()});k.addCommand("blur",CKEDITOR.tools.extend(f,g));k.addCommand("blurBack",CKEDITOR.tools.extend(e,g));k.addCommand("selectNextCell",c());k.addCommand("selectPreviousCell",c(!0))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(c,g){var f=
+void 0===g?this.getTabIndex():g,e,k,m,l,b,h;if(0>=f)for(b=this.getNextSourceNode(c,CKEDITOR.NODE_ELEMENT);b;){if(b.isVisible()&&0===b.getTabIndex()){m=b;break}b=b.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(b=this.getDocument().getBody().getFirst();b=b.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!e)if(!k&&b.equals(this)){if(k=!0,c){if(!(b=b.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;e=1}}else k&&!this.contains(b)&&(e=1);if(b.isVisible()&&!(0>(h=b.getTabIndex()))){if(e&&h==f){m=
+b;break}h>f&&(!m||!l||h<l)?(m=b,l=h):m||0!==h||(m=b,l=h)}}m&&m.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(c,g){for(var f=void 0===g?this.getTabIndex():g,e,k,m,l=0,b,h=this.getDocument().getBody().getLast();h=h.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!e)if(!k&&h.equals(this)){if(k=!0,c){if(!(h=h.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;e=1}}else k&&!this.contains(h)&&(e=1);if(h.isVisible()&&!(0>(b=h.getTabIndex())))if(0>=f){if(e&&0===b){m=h;break}b>l&&
+(m=h,l=b)}else{if(e&&b==f){m=h;break}b<f&&(!m||b>l)&&(m=h,l=b)}}m&&m.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(c){function g(c){return CKEDITOR.tools.extend(c||{},{contextSensitive:1,refresh:function(c,e){this.setState(e.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!c.blockless){var f=c.lang.table;c.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];"+
+(c.plugins.dialogadvtab?"table"+c.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"],["td: splitBorderShorthand"],[{element:"table",right:function(c){if(c.styles){var f;if(c.styles.border)f=CKEDITOR.tools.style.parse.border(c.styles.border);else if(CKEDITOR.env.ie&&8===CKEDITOR.env.version){var g=c.styles;g["border-left"]&&g["border-left"]===g["border-right"]&&g["border-right"]===g["border-top"]&&
+g["border-top"]===g["border-bottom"]&&(f=CKEDITOR.tools.style.parse.border(g["border-top"]))}f&&f.style&&"solid"===f.style&&f.width&&0!==parseFloat(f.width)&&(c.attributes.border=1);"collapse"==c.styles["border-collapse"]&&(c.attributes.cellspacing=0)}}}]]}));c.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",g()));c.addCommand("tableDelete",g({exec:function(c){var f=c.elementPath().contains("table",1);if(f){var g=f.getParent(),l=c.editable();1!=g.getChildCount()||g.is("td",
+"th")||g.equals(l)||(f=g);c=c.createRange();c.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);f.remove();c.select()}}}));c.ui.addButton&&c.ui.addButton("Table",{label:f.toolbar,command:"table",toolbar:"insert,30"});CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");c.addMenuItems&&c.addMenuItems({table:{label:f.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:f.deleteTable,command:"tableDelete",group:"table",
+order:1}});c.on("doubleclick",function(c){c.data.element.is("table")&&(c.data.dialog="tableProperties")});c.contextMenu&&c.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function c(a,b){function c(a){return b?b.contains(a)&&a.getAscendant("table",!0).equals(b):!0}function d(a){0<e.length||a.type!=CKEDITOR.NODE_ELEMENT||!x.test(a.getName())||a.getCustomData("selected_cell")||(CKEDITOR.dom.element.setMarker(f,a,"selected_cell",
+!0),e.push(a))}var e=[],f={};if(!a)return e;for(var g=a.getRanges(),h=0;h<g.length;h++){var k=g[h];if(k.collapsed)(k=k.getCommonAncestor().getAscendant({td:1,th:1},!0))&&c(k)&&e.push(k);else{var k=new CKEDITOR.dom.walker(k),l;for(k.guard=d;l=k.next();)l.type==CKEDITOR.NODE_ELEMENT&&l.is(CKEDITOR.dtd.table)||(l=l.getAscendant({td:1,th:1},!0))&&!l.getCustomData("selected_cell")&&c(l)&&(CKEDITOR.dom.element.setMarker(f,l,"selected_cell",!0),e.push(l))}}CKEDITOR.dom.element.clearAllMarkers(f);return e}
+function g(a,b){for(var d=r(a)?a:c(a),e=d[0],f=e.getAscendant("table"),e=e.getDocument(),g=d[0].getParent(),h=g.$.rowIndex,d=d[d.length-1],k=d.getParent().$.rowIndex+d.$.rowSpan-1,d=new CKEDITOR.dom.element(f.$.rows[k]),h=b?h:k,g=b?g:d,d=CKEDITOR.tools.buildTableMap(f),f=d[h],h=b?d[h-1]:d[h+1],d=d[0].length,e=e.createElement("tr"),k=0;f[k]&&k<d;k++){var l;1<f[k].rowSpan&&h&&f[k]==h[k]?(l=f[k],l.rowSpan+=1):(l=(new CKEDITOR.dom.element(f[k])).clone(),l.removeAttribute("rowSpan"),l.appendBogus(),e.append(l),
+l=l.$);k+=l.colSpan-1}b?e.insertBefore(g):e.insertAfter(g);return e}function f(a){if(a instanceof CKEDITOR.dom.selection){var b=a.getRanges(),d=c(a),e=d[0].getAscendant("table"),g=CKEDITOR.tools.buildTableMap(e),h=d[0].getParent().$.rowIndex,d=d[d.length-1],k=d.getParent().$.rowIndex+d.$.rowSpan-1,d=[];a.reset();for(a=h;a<=k;a++){for(var l=g[a],m=new CKEDITOR.dom.element(e.$.rows[a]),n=0;n<l.length;n++){var p=new CKEDITOR.dom.element(l[n]),t=p.getParent().$.rowIndex;1==p.$.rowSpan?p.remove():(--p.$.rowSpan,
+t==a&&(t=g[a+1],t[n-1]?p.insertAfter(new CKEDITOR.dom.element(t[n-1])):(new CKEDITOR.dom.element(e.$.rows[a+1])).append(p,1)));n+=p.$.colSpan-1}d.push(m)}g=e.$.rows;b[0].moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);h=new CKEDITOR.dom.element(g[k+1]||(0<h?g[h-1]:null)||e.$.parentNode);for(a=d.length;0<=a;a--)f(d[a]);return e.$.parentNode?h:(b[0].select(),null)}a instanceof CKEDITOR.dom.element&&(e=a.getAscendant("table"),1==e.$.rows.length?e.remove():a.remove());return null}function e(a){for(var b=
+a.getParent().$.cells,c=0,d=0;d<b.length;d++){var e=b[d],c=c+e.colSpan;if(e==a.$)break}return c-1}function k(a,b){for(var c=b?Infinity:0,d=0;d<a.length;d++){var f=e(a[d]);if(b?f<c:f>c)c=f}return c}function m(a,b){for(var d=r(a)?a:c(a),e=d[0].getAscendant("table"),f=k(d,1),d=k(d),g=b?f:d,h=CKEDITOR.tools.buildTableMap(e),e=[],f=[],d=[],l=h.length,m=0;m<l;m++)e.push(h[m][g]),f.push(b?h[m][g-1]:h[m][g+1]);for(m=0;m<l;m++)e[m]&&(1<e[m].colSpan&&f[m]==e[m]?(h=e[m],h.colSpan+=1):(g=new CKEDITOR.dom.element(e[m]),
+h=g.clone(),h.removeAttribute("colSpan"),h.appendBogus(),h[b?"insertBefore":"insertAfter"].call(h,g),d.push(h),h=h.$),m+=h.rowSpan-1);return d}function l(a){function b(a){var c,d,e;c=a.getRanges();if(1!==c.length)return a;c=c[0];if(c.collapsed||0!==c.endOffset)return a;d=c.endContainer;e=d.getName().toLowerCase();if("td"!==e&&"th"!==e)return a;for((e=d.getPrevious())||(e=d.getParent().getPrevious().getLast());e.type!==CKEDITOR.NODE_TEXT&&"br"!==e.getName().toLowerCase();)if(e=e.getLast(),!e)return a;
+c.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);return c.select()}CKEDITOR.env.webkit&&!a.isFake&&(a=b(a));var d=a.getRanges(),e=c(a),f=e[0],g=e[e.length-1],e=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(e),k,l,m=[];a.reset();var n=0;for(a=h.length;n<a;n++)for(var p=0,t=h[n].length;p<t;p++)void 0===k&&h[n][p]==f.$&&(k=p),h[n][p]==g.$&&(l=p);for(n=k;n<=l;n++)for(p=0;p<h.length;p++)g=h[p],f=new CKEDITOR.dom.element(e.$.rows[p]),g=new CKEDITOR.dom.element(g[n]),g.$&&(1==g.$.colSpan?g.remove():--g.$.colSpan,
+p+=g.$.rowSpan-1,f.$.cells.length||m.push(f));k=h[0].length-1>l?new CKEDITOR.dom.element(h[0][l+1]):k&&-1!==h[0][k-1].cellIndex?new CKEDITOR.dom.element(h[0][k-1]):new CKEDITOR.dom.element(e.$.parentNode);m.length==a&&(d[0].moveToPosition(e,CKEDITOR.POSITION_AFTER_END),d[0].select(),e.remove());return k}function b(a,b){var c=a.getStartElement().getAscendant({td:1,th:1},!0);if(c){var d=c.clone();d.appendBogus();b?d.insertBefore(c):d.insertAfter(c)}}function h(a){if(a instanceof CKEDITOR.dom.selection){var b=
+a.getRanges(),e=c(a),f=e[0]&&e[0].getAscendant("table"),g;a:{var k=0;g=e.length-1;for(var l={},m,n;m=e[k++];)CKEDITOR.dom.element.setMarker(l,m,"delete_cell",!0);for(k=0;m=e[k++];)if((n=m.getPrevious())&&!n.getCustomData("delete_cell")||(n=m.getNext())&&!n.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(l);g=n;break a}CKEDITOR.dom.element.clearAllMarkers(l);k=e[0].getParent();(k=k.getPrevious())?g=k.getLast():(k=e[g].getParent(),g=(k=k.getNext())?k.getChild(0):null)}a.reset();for(a=
+e.length-1;0<=a;a--)h(e[a]);g?d(g,!0):f&&(b[0].moveToPosition(f,CKEDITOR.POSITION_BEFORE_START),b[0].select(),f.remove())}else a instanceof CKEDITOR.dom.element&&(b=a.getParent(),1==b.getChildCount()?b.remove():a.remove())}function d(a,b){var c=a.getDocument(),d=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(d.focus(),c.focus());c=new CKEDITOR.dom.range(c);c["moveToElementEdit"+(b?"End":"Start")](a)||(c.selectNodeContents(a),c.collapse(b?!1:!0));c.select(!0)}function a(a,b,c){a=a[b];
+if("undefined"==typeof c)return a;for(b=0;a&&b<a.length;b++){if(c.is&&a[b]==c.$)return b;if(b==c)return new CKEDITOR.dom.element(a[b])}return c.is?-1:null}function n(b,d,e){var f=c(b),g;if((d?1!=f.length:2>f.length)||(g=b.getCommonAncestor())&&g.type==CKEDITOR.NODE_ELEMENT&&g.is("table"))return!1;var h;b=f[0];g=b.getAscendant("table");var k=CKEDITOR.tools.buildTableMap(g),l=k.length,m=k[0].length,n=b.getParent().$.rowIndex,p=a(k,n,b);if(d){var t;try{var r=parseInt(b.getAttribute("rowspan"),10)||1;
+h=parseInt(b.getAttribute("colspan"),10)||1;t=k["up"==d?n-r:"down"==d?n+r:n]["left"==d?p-h:"right"==d?p+h:p]}catch(x){return!1}if(!t||b.$==t)return!1;f["up"==d||"left"==d?"unshift":"push"](new CKEDITOR.dom.element(t))}d=b.getDocument();var L=n,r=t=0,K=!e&&new CKEDITOR.dom.documentFragment(d),D=0;for(d=0;d<f.length;d++){h=f[d];var S=h.getParent(),N=h.getFirst(),P=h.$.colSpan,J=h.$.rowSpan,S=S.$.rowIndex,U=a(k,S,h),D=D+P*J,r=Math.max(r,U-p+P);t=Math.max(t,S-n+J);e||(P=h,(J=P.getBogus())&&J.remove(),
+P.trim(),h.getChildren().count()&&(S==L||!N||N.isBlockBoundary&&N.isBlockBoundary({br:1})||(L=K.getLast(CKEDITOR.dom.walker.whitespaces(!0)),!L||L.is&&L.is("br")||K.append("br")),h.moveChildren(K)),d?h.remove():h.setHtml(""));L=S}if(e)return t*r==D;K.moveChildren(b);b.appendBogus();r>=m?b.removeAttribute("rowSpan"):b.$.rowSpan=t;t>=l?b.removeAttribute("colSpan"):b.$.colSpan=r;e=new CKEDITOR.dom.nodeList(g.$.rows);f=e.count();for(d=f-1;0<=d;d--)g=e.getItem(d),g.$.cells.length||(g.remove(),f++);return b}
+function t(b,d){var e=c(b);if(1<e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(g),k=f.$.rowIndex,l=a(h,k,e),m=e.$.rowSpan,n;if(1<m){n=Math.ceil(m/2);for(var m=Math.floor(m/2),f=k+n,g=new CKEDITOR.dom.element(g.$.rows[f]),h=a(h,f),p,f=e.clone(),k=0;k<h.length;k++)if(p=h[k],p.parentNode==g.$&&k>l){f.insertBefore(new CKEDITOR.dom.element(p));break}else p=null;p||g.append(f)}else for(m=n=1,g=f.clone(),g.insertAfter(f),g.append(f=e.clone()),
+p=a(h,k),l=0;l<p.length;l++)p[l].rowSpan++;f.appendBogus();e.$.rowSpan=n;f.$.rowSpan=m;1==n&&e.removeAttribute("rowSpan");1==m&&f.removeAttribute("rowSpan");return f}function p(b,d){var e=c(b);if(1<e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(g),h=a(g,f.$.rowIndex,e),k=e.$.colSpan;if(1<k)f=Math.ceil(k/2),k=Math.floor(k/2);else{for(var k=f=1,l=[],m=0;m<g.length;m++){var n=g[m];l.push(n[h]);1<n[h].rowSpan&&(m+=n[h].rowSpan-1)}for(g=
+0;g<l.length;g++)l[g].colSpan++}g=e.clone();g.insertAfter(e);g.appendBogus();e.$.colSpan=f;g.$.colSpan=k;1==f&&e.removeAttribute("colSpan");1==k&&g.removeAttribute("colSpan");return g}var x=/^(?:td|th)$/,r=CKEDITOR.tools.isArray;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(a){function e(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function k(b,
+c){var d=a.addCommand(b,c);a.addFeature(d)}var r=a.lang.table,x=CKEDITOR.tools.style.parse;k("cellProperties",new CKEDITOR.dialogCommand("cellProperties",e({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:"table",contentTransformations:[[{element:"td",left:function(a){return a.styles.background&&x.background(a.styles.background).color},right:function(a){a.styles["background-color"]=x.background(a.styles.background).color}},
+{element:"td",check:"td{vertical-align}",left:function(a){return a.attributes&&a.attributes.valign},right:function(a){a.styles["vertical-align"]=a.attributes.valign;delete a.attributes.valign}}],[{element:"tr",check:"td{height}",left:function(a){return a.styles&&a.styles.height},right:function(a){CKEDITOR.tools.array.forEach(a.children,function(b){b.name in{td:1,th:1}&&(b.attributes["cke-row-height"]=a.styles.height)});delete a.styles.height}}],[{element:"td",check:"td{height}",left:function(a){return(a=
+a.attributes)&&a["cke-row-height"]},right:function(a){a.styles.height=a.attributes["cke-row-height"];delete a.attributes["cke-row-height"]}}]]})));CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js");k("rowDelete",e({requiredContent:"table",exec:function(a){a=a.getSelection();(a=f(a))&&d(a)}}));k("rowInsertBefore",e({requiredContent:"table",exec:function(a){a=a.getSelection();a=c(a);g(a,!0)}}));k("rowInsertAfter",e({requiredContent:"table",exec:function(a){a=a.getSelection();a=c(a);
+g(a)}}));k("columnDelete",e({requiredContent:"table",exec:function(a){a=a.getSelection();(a=l(a))&&d(a,!0)}}));k("columnInsertBefore",e({requiredContent:"table",exec:function(a){a=a.getSelection();a=c(a);m(a,!0)}}));k("columnInsertAfter",e({requiredContent:"table",exec:function(a){a=a.getSelection();a=c(a);m(a)}}));k("cellDelete",e({requiredContent:"table",exec:function(a){a=a.getSelection();h(a)}}));k("cellMerge",e({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(a,
+b){b.cell=n(a.getSelection());d(b.cell,!0)}}));k("cellMergeRight",e({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a,b){b.cell=n(a.getSelection(),"right");d(b.cell,!0)}}));k("cellMergeDown",e({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a,b){b.cell=n(a.getSelection(),"down");d(b.cell,!0)}}));k("cellVerticalSplit",e({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){d(p(a.getSelection()))}}));k("cellHorizontalSplit",
+e({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){d(t(a.getSelection()))}}));k("cellInsertBefore",e({requiredContent:"table",exec:function(a){a=a.getSelection();b(a,!0)}}));k("cellInsertAfter",e({requiredContent:"table",exec:function(a){a=a.getSelection();b(a)}}));a.addMenuItems&&a.addMenuItems({tablecell:{label:r.cell.menu,group:"tablecell",order:1,getItems:function(){var b=a.getSelection(),d=c(b);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,
+tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:n(b,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:n(b,"right",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:n(b,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:p(b,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:t(b,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:0<d.length?CKEDITOR.TRISTATE_OFF:
+CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:r.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:r.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:r.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:r.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:r.cell.mergeRight,group:"tablecell",command:"cellMergeRight",
+order:17},tablecell_merge_down:{label:r.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:r.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:r.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:r.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:r.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,
+tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:r.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:r.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:r.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:r.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,
+tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:r.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:r.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:r.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}});a.contextMenu&&a.contextMenu.addListener(function(a,b,c){return(a=c.contains({td:1,th:1},
+1))&&!a.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getCellColIndex:e,insertRow:g,insertColumn:m,getSelectedCells:c};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(c,g,f,e,k){c=c.$.rows;f=f||0;e="number"===typeof e?e:c.length-1;k="number"===typeof k?k:-1;var m=-1,l=[];for(g=g||0;g<=e;g++){m++;!l[m]&&(l[m]=[]);for(var b=-1,h=f;h<=(-1===k?c[g].cells.length-1:k);h++){var d=
+c[g].cells[h];if(!d)break;for(b++;l[m][b];)b++;for(var a=isNaN(d.colSpan)?1:d.colSpan,d=isNaN(d.rowSpan)?1:d.rowSpan,n=0;n<d&&!(g+n>e);n++){l[m+n]||(l[m+n]=[]);for(var t=0;t<a;t++)l[m+n][b+t]=c[g].cells[h]}b+=a-1;if(-1!==k&&b>=k)break}}return l},function(){function c(b){return CKEDITOR.env.ie?b.$.clientWidth:parseInt(b.getComputedStyle("width"),10)}function g(b,a){var c=b.getComputedStyle("border-"+a+"-width"),e={thin:"0px",medium:"1px",thick:"2px"};0>c.indexOf("px")&&(c=c in e&&"none"!=b.getComputedStyle("border-style")?
+e[c]:0);return parseInt(c,10)}function f(b){b=b.$.rows;for(var a=0,c,e,f,g=0,h=b.length;g<h;g++)f=b[g],c=f.cells.length,c>a&&(a=c,e=f);return e}function e(b){function a(a){a&&(a=new CKEDITOR.dom.element(a),h+=a.$.offsetHeight,k||(k=a.getDocumentPosition()))}var c=[],e=-1,h=0,k=null,l="rtl"==b.getComputedStyle("direction"),m=f(b);a(b.$.tHead);a(b.$.tBodies[0]);a(b.$.tFoot);if(m)for(var u=0,v=m.cells.length;u<v;u++){var z=new CKEDITOR.dom.element(m.cells[u]),w=m.cells[u+1]&&new CKEDITOR.dom.element(m.cells[u+
+1]),e=e+(z.$.colSpan||1),B,A,C=z.getDocumentPosition().x;l?A=C+g(z,"left"):B=C+z.$.offsetWidth-g(z,"right");w?(C=w.getDocumentPosition().x,l?B=C+w.$.offsetWidth-g(w,"right"):A=C+g(w,"left")):(C=b.getDocumentPosition().x,l?B=C:A=C+b.$.offsetWidth);z=Math.max(A-B,3);c.push({table:b,index:e,x:B,y:k.y,width:z,height:h,rtl:l})}return c}function k(b){(b.data||b).preventDefault()}function m(d){function a(){v=0;u.setOpacity(0);w&&e();var a=r.table;setTimeout(function(){a.removeCustomData("_cke_table_pillars")},
+0);q.removeListener("dragstart",k)}function e(){for(var a=r.rtl,f=a?C.length:A.length,h=0,k=0;k<f;k++){var l=A[k],m=C[k],n=r.table;CKEDITOR.tools.setTimeout(function(c,e,g,k,l,m){c&&c.setStyle("width",b(Math.max(e+m,1)));g&&g.setStyle("width",b(Math.max(k-m,1)));l&&n.setStyle("width",b(l+m*(a?-1:1)));++h==f&&d.fire("saveSnapshot")},0,this,[l,l&&c(l),m,m&&c(m),(!l||!m)&&c(n)+g(n,"left")+g(n,"right"),w])}}function f(a){k(a);d.fire("saveSnapshot");a=r.index;for(var b=CKEDITOR.tools.buildTableMap(r.table),
+e=[],g=[],h=Number.MAX_VALUE,n=h,t=r.rtl,B=0,N=b.length;B<N;B++){var P=b[B],J=P[a+(t?1:0)],P=P[a+(t?0:1)],J=J&&new CKEDITOR.dom.element(J),P=P&&new CKEDITOR.dom.element(P);J&&P&&J.equals(P)||(J&&(h=Math.min(h,c(J))),P&&(n=Math.min(n,c(P))),e.push(J),g.push(P))}A=e;C=g;y=r.x-h;F=r.x+n;u.setOpacity(.5);z=parseInt(u.getStyle("left"),10);w=0;v=1;u.on("mousemove",m);q.on("dragstart",k);q.on("mouseup",l,this)}function l(b){b.removeListener();a()}function m(a){B(a.data.getPageOffset().x)}var r,q,u,v,z,w,
+B,A,C,y,F;q=d.document;u=CKEDITOR.dom.element.createFromHtml('\x3cdiv data-cke-temp\x3d1 contenteditable\x3dfalse unselectable\x3don style\x3d"position:absolute;cursor:col-resize;filter:alpha(opacity\x3d0);opacity:0;padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"\x3e\x3c/div\x3e',q);d.on("destroy",function(){u.remove()});h||q.getDocumentElement().append(u);this.attachTo=function(a){v||(h&&(q.getBody().append(u),w=0),r=a,u.setStyles({width:b(a.width),height:b(a.height),
+left:b(a.x),top:b(a.y)}),h&&u.setOpacity(.25),u.on("mousedown",f,this),q.getBody().setStyle("cursor","col-resize"),u.show())};B=this.move=function(a){if(!r)return 0;if(!v&&(a<r.x||a>r.x+r.width))return r=null,v=w=0,q.removeListener("mouseup",l),u.removeListener("mousedown",f),u.removeListener("mousemove",m),q.getBody().setStyle("cursor","auto"),h?u.remove():u.hide(),0;a-=Math.round(u.$.offsetWidth/2);if(v){if(a==y||a==F)return 1;a=Math.max(a,y);a=Math.min(a,F);w=a-z}u.setStyle("left",b(a));return 1}}
+function l(b){var a=b.data.getTarget();if("mouseout"==b.name){if(!a.is("table"))return;for(var c=new CKEDITOR.dom.element(b.data.$.relatedTarget||b.data.$.toElement);c&&c.$&&!c.equals(a)&&!c.is("body");)c=c.getParent();if(!c||c.equals(a))return}a.getAscendant("table",1).removeCustomData("_cke_table_pillars");b.removeListener()}var b=CKEDITOR.tools.cssLength,h=CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks);CKEDITOR.plugins.add("tableresize",{requires:"tabletools",init:function(b){b.on("contentDom",
+function(){var a,c=b.editable();c.attachListener(c.isInline()?c:b.document,"mousemove",function(c){c=c.data;var f=c.getTarget();if(f.type==CKEDITOR.NODE_ELEMENT){var g=c.getPageOffset().x;if(a&&a.move(g))k(c);else if(f.is("table")||f.getAscendant({thead:1,tbody:1,tfoot:1},1))if(f=f.getAscendant("table",1),b.editable().contains(f)){(c=f.getCustomData("_cke_table_pillars"))||(f.setCustomData("_cke_table_pillars",c=e(f)),f.on("mouseout",l),f.on("mousedown",l));a:{for(var f=0,h=c.length;f<h;f++){var n=
+c[f];if(g>=n.x&&g<=n.x+n.width){g=n;break a}}g=null}g&&(!a&&(a=new m(b)),a.attachTo(g))}}})})}})}(),"use strict",function(){var c=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],g={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(b){function e(b){a.enabled&&!1!==b.data.command.canUndo&&a.save()}function d(){a.enabled=b.readOnly?!1:"wysiwyg"==b.mode;a.onChange()}var a=b.undoManager=new f(b),g=a.editingHandler=new m(a),k=b.addCommand("undo",{exec:function(){a.undo()&&(b.selectionChange(),
+this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),l=b.addCommand("redo",{exec:function(){a.redo()&&(b.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});b.setKeystroke([[c[0],"undo"],[c[1],"redo"],[c[2],"redo"]]);a.onChange=function(){k.setState(a.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);l.setState(a.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};b.on("beforeCommandExec",e);b.on("afterCommandExec",e);b.on("saveSnapshot",function(b){a.save(b.data&&
+b.data.contentOnly)});b.on("contentDom",g.attachListeners,g);b.on("instanceReady",function(){b.fire("saveSnapshot")});b.on("beforeModeUnload",function(){"wysiwyg"==b.mode&&a.save(!0)});b.on("mode",d);b.on("readOnly",d);b.ui.addButton&&(b.ui.addButton("Undo",{label:b.lang.undo.undo,command:"undo",toolbar:"undo,10"}),b.ui.addButton("Redo",{label:b.lang.undo.redo,command:"redo",toolbar:"undo,20"}));b.resetUndo=function(){a.reset();b.fire("saveSnapshot")};b.on("updateSnapshot",function(){a.currentImage&&
+a.update()});b.on("lockSnapshot",function(b){b=b.data;a.lock(b&&b.dontUpdate,b&&b.forceUpdate)});b.on("unlockSnapshot",a.unlock,a)}});CKEDITOR.plugins.undo={};var f=CKEDITOR.plugins.undo.UndoManager=function(b){this.strokesRecorded=[0,0];this.locked=null;this.previousKeyGroup=-1;this.limit=b.config.undoStackSize||20;this.strokesLimit=25;this.editor=b;this.reset()};f.prototype={type:function(b,c){var d=f.getKeyGroup(b),a=this.strokesRecorded[d]+1;c=c||a>=this.strokesLimit;this.typing||(this.hasUndo=
+this.typing=!0,this.hasRedo=!1,this.onChange());c?(a=0,this.editor.fire("saveSnapshot")):this.editor.fire("change");this.strokesRecorded[d]=a;this.previousKeyGroup=d},keyGroupChanged:function(b){return f.getKeyGroup(b)!=this.previousKeyGroup},reset:function(){this.snapshots=[];this.index=-1;this.currentImage=null;this.hasRedo=this.hasUndo=!1;this.locked=null;this.resetType()},resetType:function(){this.strokesRecorded=[0,0];this.typing=!1;this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=
+!!this.getNextImage(!0);this.hasRedo=!!this.getNextImage(!1);this.resetType();this.onChange()},save:function(b,c,d){var a=this.editor;if(this.locked||"ready"!=a.status||"wysiwyg"!=a.mode)return!1;var f=a.editable();if(!f||"ready"!=f.status)return!1;f=this.snapshots;c||(c=new e(a));if(!1===c.contents)return!1;if(this.currentImage)if(c.equalsContent(this.currentImage)){if(b||c.equalsSelection(this.currentImage))return!1}else!1!==d&&a.fire("change");f.splice(this.index+1,f.length-this.index-1);f.length==
+this.limit&&f.shift();this.index=f.push(c)-1;this.currentImage=c;!1!==d&&this.refreshState();return!0},restoreImage:function(b){var c=this.editor,d;b.bookmarks&&(c.focus(),d=c.getSelection());this.locked={level:999};this.editor.loadSnapshot(b.contents);b.bookmarks?d.selectBookmarks(b.bookmarks):CKEDITOR.env.ie&&(d=this.editor.document.getBody().$.createTextRange(),d.collapse(!0),d.select());this.locked=null;this.index=b.index;this.currentImage=this.snapshots[this.index];this.update();this.refreshState();
+c.fire("change")},getNextImage:function(b){var c=this.snapshots,d=this.currentImage,a;if(d)if(b)for(a=this.index-1;0<=a;a--){if(b=c[a],!d.equalsContent(b))return b.index=a,b}else for(a=this.index+1;a<c.length;a++)if(b=c[a],!d.equalsContent(b))return b.index=a,b;return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(!0);var b=this.getNextImage(!0);if(b)return this.restoreImage(b),!0}return!1},
+redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var b=this.getNextImage(!1);if(b)return this.restoreImage(b),!0}return!1},update:function(b){if(!this.locked){b||(b=new e(this.editor));for(var c=this.index,d=this.snapshots;0<c&&this.currentImage.equalsContent(d[c-1]);)--c;d.splice(c,this.index-c+1,b);this.index=c;this.currentImage=b}},updateSelection:function(b){if(!this.snapshots.length)return!1;var c=this.snapshots,d=c[c.length-1];return d.equalsContent(b)&&!d.equalsSelection(b)?
+(this.currentImage=c[c.length-1]=b,!0):!1},lock:function(b,c){if(this.locked)this.locked.level++;else if(b)this.locked={level:1};else{var d=null;if(c)d=!0;else{var a=new e(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(a)&&(d=a)}this.locked={update:d,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var b=this.locked.update;this.locked=null;if(!0===b)this.update();else if(b){var c=new e(this.editor,!0);b.equalsContent(c)||this.update()}}}};f.navigationKeyCodes=
+{37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1};f.keyGroups={PRINTABLE:0,FUNCTIONAL:1};f.isNavigationKey=function(b){return!!f.navigationKeyCodes[b]};f.getKeyGroup=function(b){var c=f.keyGroups;return g[b]?c.FUNCTIONAL:c.PRINTABLE};f.getOppositeKeyGroup=function(b){var c=f.keyGroups;return b==c.FUNCTIONAL?c.PRINTABLE:c.FUNCTIONAL};f.ieFunctionalKeysBug=function(b){return CKEDITOR.env.ie&&f.getKeyGroup(b)==f.keyGroups.FUNCTIONAL};var e=CKEDITOR.plugins.undo.Image=function(b,c){this.editor=b;b.fire("beforeUndoImage");
+var d=b.getSnapshot();CKEDITOR.env.ie&&d&&(d=d.replace(/\s+data-cke-expando=".*?"/g,""));this.contents=d;c||(this.bookmarks=(d=d&&b.getSelection())&&d.createBookmarks2(!0));b.fire("afterUndoImage")},k=/\b(?:href|src|name)="[^"]*?"/gi;e.prototype={equalsContent:function(b){var c=this.contents;b=b.contents;CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(c=c.replace(k,""),b=b.replace(k,""));return c!=b?!1:!0},equalsSelection:function(b){var c=this.bookmarks;b=b.bookmarks;if(c||b){if(!c||
+!b||c.length!=b.length)return!1;for(var d=0;d<c.length;d++){var a=c[d],e=b[d];if(a.startOffset!=e.startOffset||a.endOffset!=e.endOffset||!CKEDITOR.tools.arrayCompare(a.start,e.start)||!CKEDITOR.tools.arrayCompare(a.end,e.end))return!1}}return!0}};var m=CKEDITOR.plugins.undo.NativeEditingHandler=function(b){this.undoManager=b;this.ignoreInputEvent=!1;this.keyEventsStack=new l;this.lastKeydownImage=null};m.prototype={onKeydown:function(b){var g=b.data.getKey();if(229!==g)if(-1<CKEDITOR.tools.indexOf(c,
+b.data.getKeystroke()))b.data.preventDefault();else if(this.keyEventsStack.cleanUp(b),b=this.undoManager,this.keyEventsStack.getLast(g)||this.keyEventsStack.push(g),this.lastKeydownImage=new e(b.editor),f.isNavigationKey(g)||this.undoManager.keyGroupChanged(g))if(b.strokesRecorded[0]||b.strokesRecorded[1])b.save(!1,this.lastKeydownImage,!1),b.resetType()},onInput:function(){if(this.ignoreInputEvent)this.ignoreInputEvent=!1;else{var b=this.keyEventsStack.getLast();b||(b=this.keyEventsStack.push(0));
+this.keyEventsStack.increment(b.keyCode);this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit&&(this.undoManager.type(b.keyCode,!0),this.keyEventsStack.resetInputs())}},onKeyup:function(b){var c=this.undoManager;b=b.data.getKey();var d=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(b);if(!(f.ieFunctionalKeysBug(b)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new e(c.editor,!0))))if(0<d)c.type(b);else if(f.isNavigationKey(b))this.onNavigationKey(!0)},
+onNavigationKey:function(b){var c=this.undoManager;!b&&c.save(!0,null,!1)||c.updateSelection(new e(c.editor));c.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},activateInputEventListener:function(){this.ignoreInputEvent=!1},attachListeners:function(){var b=this.undoManager.editor,c=b.editable(),d=this;c.attachListener(c,"keydown",function(a){d.onKeydown(a);if(f.ieFunctionalKeysBug(a.data.getKey()))d.onInput()},null,null,999);c.attachListener(c,CKEDITOR.env.ie?"keypress":
+"input",d.onInput,d,null,999);c.attachListener(c,"keyup",d.onKeyup,d,null,999);c.attachListener(c,"paste",d.ignoreInputEventListener,d,null,999);c.attachListener(c,"drop",d.ignoreInputEventListener,d,null,999);b.on("afterPaste",d.activateInputEventListener,d,null,999);c.attachListener(c.isInline()?c:b.document.getDocumentElement(),"click",function(){d.onNavigationKey()},null,null,999);c.attachListener(this.undoManager.editor,"blur",function(){d.keyEventsStack.remove(9)},null,null,999)}};var l=CKEDITOR.plugins.undo.KeyEventsStack=
+function(){this.stack=[]};l.prototype={push:function(b){b=this.stack.push({keyCode:b,inputs:0});return this.stack[b-1]},getLastIndex:function(b){if("number"!=typeof b)return this.stack.length-1;for(var c=this.stack.length;c--;)if(this.stack[c].keyCode==b)return c;return-1},getLast:function(b){b=this.getLastIndex(b);return-1!=b?this.stack[b]:null},increment:function(b){this.getLast(b).inputs++},remove:function(b){b=this.getLastIndex(b);-1!=b&&this.stack.splice(b,1)},resetInputs:function(b){if("number"==
+typeof b)this.getLast(b).inputs=0;else for(b=this.stack.length;b--;)this.stack[b].inputs=0},getTotalInputs:function(){for(var b=this.stack.length,c=0;b--;)c+=this.stack[b].inputs;return c},cleanUp:function(b){b=b.data.$;b.ctrlKey||b.metaKey||this.remove(17);b.shiftKey||this.remove(16);b.altKey||this.remove(18)}}}(),function(){function c(c){function e(c){var d=!1;a.attachListener(a,"keydown",function(){var a=b.getBody().getElementsByTag(c);if(!d){for(var e=0;e<a.count();e++)a.getItem(e).setCustomData("retain",
+!0);d=!0}},null,null,1);a.attachListener(a,"keyup",function(){var a=b.getElementsByTag(c);d&&(1==a.count()&&!a.getItem(0).getCustomData("retain")&&CKEDITOR.tools.isEmpty(a.getItem(0).getAttributes())&&a.getItem(0).remove(1),d=!1)})}var f=this.editor,b=c.document,h=b.body,d=b.getElementById("cke_actscrpt");d&&d.parentNode.removeChild(d);(d=b.getElementById("cke_shimscrpt"))&&d.parentNode.removeChild(d);(d=b.getElementById("cke_basetagscrpt"))&&d.parentNode.removeChild(d);h.contentEditable=!0;CKEDITOR.env.ie&&
+(h.hideFocus=!0,h.disabled=!0,h.removeAttribute("disabled"));delete this._.isLoadingData;this.$=h;b=new CKEDITOR.dom.document(b);this.setup();this.fixInitialSelection();var a=this;CKEDITOR.env.ie&&!CKEDITOR.env.edge&&b.getDocumentElement().addClass(b.$.compatMode);CKEDITOR.env.ie&&!CKEDITOR.env.edge&&f.enterMode!=CKEDITOR.ENTER_P?e("p"):CKEDITOR.env.edge&&15>CKEDITOR.env.version&&f.enterMode!=CKEDITOR.ENTER_DIV&&e("div");if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)b.getDocumentElement().on("mousedown",
+function(a){a.data.getTarget().is("html")&&setTimeout(function(){f.editable().focus()})});g(f);try{f.document.$.execCommand("2D-position",!1,!0)}catch(n){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==f.document.$.compatMode)&&this.attachListener(this,"keydown",function(a){var b=a.data.getKeystroke();if(33==b||34==b)if(CKEDITOR.env.ie)setTimeout(function(){f.getSelection().scrollIntoView()},0);else if(f.window.$.innerHeight>this.$.offsetHeight){var c=f.createRange();c[33==b?"moveToElementEditStart":
+"moveToElementEditEnd"](this);c.select();a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(b,"blur",function(){try{b.$.selection.empty()}catch(a){}});CKEDITOR.env.iOS&&this.attachListener(b,"touchend",function(){c.focus()});h=f.document.getElementsByTag("title").getItem(0);h.data("cke-title",h.getText());CKEDITOR.env.ie&&(f.document.$.title=this._.docTitle);CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready");f.fire("contentDom");this._.isPendingFocus&&
+(f.focus(),this._.isPendingFocus=!1);setTimeout(function(){f.fire("dataReady")},0)},0,this)}function g(c){function e(){var b;c.editable().attachListener(c,"selectionChange",function(){var a=c.getSelection().getSelectedElement();a&&(b&&(b.detachEvent("onresizestart",f),b=null),a.$.attachEvent("onresizestart",f),b=a.$)})}function f(b){b.returnValue=!1}if(CKEDITOR.env.gecko)try{var b=c.document.$;b.execCommand("enableObjectResizing",!1,!c.config.disableObjectResizing);b.execCommand("enableInlineTableEditing",
+!1,!c.config.disableNativeTableHandles)}catch(g){}else CKEDITOR.env.ie&&11>CKEDITOR.env.version&&c.config.disableObjectResizing&&e(c)}function f(){var c=[];if(8<=CKEDITOR.document.$.documentMode){c.push("html.CSS1Compat [contenteditable\x3dfalse]{min-height:0 !important}");var e=[],f;for(f in CKEDITOR.dtd.$removeEmpty)e.push("html.CSS1Compat "+f+"[contenteditable\x3dfalse]");c.push(e.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(c.push("html{height:100% !important}"),c.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"));
+c.push("html{cursor:text;*cursor:auto}");c.push("img,input,textarea{cursor:default}");return c.join("\n")}var e;CKEDITOR.plugins.add("wysiwygarea",{init:function(c){c.config.fullPage&&c.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"});c.addMode("wysiwyg",function(f){function g(a){a&&a.removeListener();c.editable(new e(c,h.$.contentWindow.document.body));c.setData(c.getData(1),f)}var b="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+
+")();":"")+"document.close();",b=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(b)+"}())":"",h=CKEDITOR.dom.element.createFromHtml('\x3ciframe src\x3d"'+b+'" frameBorder\x3d"0"\x3e\x3c/iframe\x3e');h.setStyles({width:"100%",height:"100%"});h.addClass("cke_wysiwyg_frame").addClass("cke_reset");b=c.ui.space("contents");b.append(h);var d=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;if(d)h.on("load",g);var a=c.title,
+n=c.fire("ariaEditorHelpLabel",{}).label;a&&(CKEDITOR.env.ie&&n&&(a+=", "+n),h.setAttribute("title",a));if(n){var a=CKEDITOR.tools.getNextId(),t=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+a+'" class\x3d"cke_voice_label"\x3e'+n+"\x3c/span\x3e");b.append(t,1);h.setAttribute("aria-describedby",a)}c.on("beforeModeUnload",function(a){a.removeListener();t&&t.remove()});h.setAttributes({tabIndex:c.tabIndex,allowTransparency:"true"});!d&&g();c.fire("ariaWidget",h)})}});CKEDITOR.editor.prototype.addContentsCss=
+function(c){var e=this.config,f=e.contentsCss;CKEDITOR.tools.isArray(f)||(e.contentsCss=f?[f]:[]);e.contentsCss.push(c)};e=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(e){CKEDITOR.tools.setTimeout(c,0,this,e)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(c,e){var g=this.editor;if(e)this.setHtml(c),this.fixInitialSelection(),g.fire("dataReady");
+else{this._.isLoadingData=!0;g._.dataStore={id:1};var b=g.config,h=b.fullPage,d=b.docType,a=CKEDITOR.tools.buildStyleHtml(f()).replace(/<style>/,'\x3cstyle data-cke-temp\x3d"1"\x3e');h||(a+=CKEDITOR.tools.buildStyleHtml(g.config.contentsCss));var n=b.baseHref?'\x3cbase href\x3d"'+b.baseHref+'" data-cke-temp\x3d"1" /\x3e':"";h&&(c=c.replace(/<!DOCTYPE[^>]*>/i,function(a){g.docType=d=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){g.xmlDeclaration=a;return""}));c=g.dataProcessor.toHtml(c);h?(/<body[\s|>]/.test(c)||
+(c="\x3cbody\x3e"+c),/<html[\s|>]/.test(c)||(c="\x3chtml\x3e"+c+"\x3c/html\x3e"),/<head[\s|>]/.test(c)?/<title[\s|>]/.test(c)||(c=c.replace(/<head[^>]*>/,"$\x26\x3ctitle\x3e\x3c/title\x3e")):c=c.replace(/<html[^>]*>/,"$\x26\x3chead\x3e\x3ctitle\x3e\x3c/title\x3e\x3c/head\x3e"),n&&(c=c.replace(/<head[^>]*?>/,"$\x26"+n)),c=c.replace(/<\/head\s*>/,a+"$\x26"),c=d+c):c=b.docType+'\x3chtml dir\x3d"'+b.contentsLangDirection+'" lang\x3d"'+(b.contentsLanguage||g.langCode)+'"\x3e\x3chead\x3e\x3ctitle\x3e'+
+this._.docTitle+"\x3c/title\x3e"+n+a+"\x3c/head\x3e\x3cbody"+(b.bodyId?' id\x3d"'+b.bodyId+'"':"")+(b.bodyClass?' class\x3d"'+b.bodyClass+'"':"")+"\x3e"+c+"\x3c/body\x3e\x3c/html\x3e";CKEDITOR.env.gecko&&(c=c.replace(/<body/,'\x3cbody contenteditable\x3d"true" '),2E4>CKEDITOR.env.version&&(c=c.replace(/<body[^>]*>/,"$\x26\x3c!-- cke-content-start --\x3e")));b='\x3cscript id\x3d"cke_actscrpt" type\x3d"text/javascript"'+(CKEDITOR.env.ie?' defer\x3d"defer" ':"")+"\x3evar wasLoaded\x3d0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+
+this._.frameLoadedHandler+",window);wasLoaded\x3d1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"\x3c/script\x3e";CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(b+='\x3cscript id\x3d"cke_shimscrpt"\x3ewindow.parent.CKEDITOR.tools.enableHtml5Elements(document)\x3c/script\x3e');n&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(b+='\x3cscript id\x3d"cke_basetagscrpt"\x3evar baseTag \x3d document.querySelector( "base" );baseTag.href \x3d baseTag.href;\x3c/script\x3e');
+c=c.replace(/(?=\s*<\/(:?head)>)/,b);this.clearCustomData();this.clearListeners();g.fire("contentDomUnload");var t=this.getDocument();try{t.write(c)}catch(p){setTimeout(function(){t.write(c)},0)}}},getData:function(c){if(c)return this.getHtml();c=this.editor;var e=c.config,f=e.fullPage,b=f&&c.docType,g=f&&c.xmlDeclaration,d=this.getDocument(),f=f?d.getDocumentElement().getOuterHtml():d.getBody().getHtml();CKEDITOR.env.gecko&&e.enterMode!=CKEDITOR.ENTER_BR&&(f=f.replace(/<br>(?=\s*(:?$|<\/body>))/,
+""));f=c.dataProcessor.toDataFormat(f);g&&(f=g+"\n"+f);b&&(f=b+"\n"+f);return f},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:e.baseProto.focus.call(this)},detach:function(){var c=this.editor,f=c.document,g;try{g=c.window.getFrame()}catch(b){}e.baseProto.detach.call(this);this.clearCustomData();f.getDocumentElement().clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);g&&g.getParent()?(g.clearCustomData(),(c=g.removeCustomData("onResize"))&&c.removeListener(),
+g.remove()):CKEDITOR.warn("editor-destroy-iframe")}}})}(),CKEDITOR.config.disableObjectResizing=!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.plugins="dialogui,dialog,a11yhelp,about,autogrow,basicstyles,blockquote,notification,button,toolbar,clipboard,panel,floatpanel,menu,contextmenu,elementspath,enterkey,entities,popup,filebrowser,floatingspace,listblock,richcombo,format,horizontalrule,htmlwriter,lineutils,widgetselection,widget,image2,indent,indentlist,justify,menubutton,language,list,magicline,maximize,pastefromword,pastetext,removeformat,sharedspace,showblocks,showborders,sourcearea,sourcedialog,specialchar,stylescombo,tab,table,tabletools,tableresize,undo,wysiwygarea",
+CKEDITOR.config.skin="moono-lisa",function(){var c=function(c,f){var e=CKEDITOR.getUrl("plugins/"+f);c=c.split(",");for(var k=0;k<c.length;k++)CKEDITOR.skin.icons[c[k]]={path:e,offset:-c[++k],bgsize:c[++k]}};CKEDITOR.env.hidpi?c("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,blockquote,168,,copy-rtl,192,,copy,216,,cut-rtl,240,,cut,264,,paste-rtl,288,,paste,312,,horizontalrule,336,,image,360,,indent-rtl,384,,indent,408,,outdent-rtl,432,,outdent,456,,justifyblock,480,,justifycenter,504,,justifyleft,528,,justifyright,552,,language,576,,bulletedlist-rtl,600,,bulletedlist,624,,numberedlist-rtl,648,,numberedlist,672,,maximize,696,,pastefromword-rtl,720,,pastefromword,744,,pastetext-rtl,768,,pastetext,792,,removeformat,816,,showblocks-rtl,840,,showblocks,864,,source-rtl,888,,source,912,,sourcedialog-rtl,936,,sourcedialog,960,,specialchar,984,,table,1008,,redo-rtl,1032,,redo,1056,,undo-rtl,1080,,undo,1104,,simplebox,2256,auto",
+"icons_hidpi.png"):c("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,blockquote,168,auto,copy-rtl,192,auto,copy,216,auto,cut-rtl,240,auto,cut,264,auto,paste-rtl,288,auto,paste,312,auto,horizontalrule,336,auto,image,360,auto,indent-rtl,384,auto,indent,408,auto,outdent-rtl,432,auto,outdent,456,auto,justifyblock,480,auto,justifycenter,504,auto,justifyleft,528,auto,justifyright,552,auto,language,576,auto,bulletedlist-rtl,600,auto,bulletedlist,624,auto,numberedlist-rtl,648,auto,numberedlist,672,auto,maximize,696,auto,pastefromword-rtl,720,auto,pastefromword,744,auto,pastetext-rtl,768,auto,pastetext,792,auto,removeformat,816,auto,showblocks-rtl,840,auto,showblocks,864,auto,source-rtl,888,auto,source,912,auto,sourcedialog-rtl,936,auto,sourcedialog,960,auto,specialchar,984,auto,table,1008,auto,redo-rtl,1032,auto,redo,1056,auto,undo-rtl,1080,auto,undo,1104,auto,simplebox,1128,auto",