!function(){function e(e,t){var n=CKEDITOR.getUrl("plugins/"+t);e=e.split(",");for(var i=0;ithis.$.offsetHeight&&((t=i.createRange())[33==n?"moveToElementEditStart":"moveToElementEditEnd"](this),t.select(),e.data.preventDefault()))}),CKEDITOR.env.ie&&this.attachListener(o,"blur",function(){try{o.$.selection.empty()}catch(e){}}),CKEDITOR.env.iOS&&this.attachListener(o,"touchend",function(){e.focus()}),(n=i.document.getElementsByTag("title").getItem(0)).data("cke-title",n.getText()),CKEDITOR.env.ie&&(i.document.$.title=this._.docTitle),CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready"),i.fire("contentDom"),this._.isPendingFocus&&(i.focus(),this._.isPendingFocus=!1),setTimeout(function(){i.fire("dataReady")},0)},0,this)}}var c,u,d,o,a,r,n,i,s,l,h,f,g,m,E,O,D,p,T,C,I,R,v,b,y,K,_,k,w,N,S,x,A,L,F,P,B,M,$,H,q,U,z,V,W,j,G,X,Y,Z,J,Q,ee,te,ne,ie,oe,ae,re,se,le,ce,de,ue,he,fe,ge,me,Ee,pe,Te,Ce,Ie,Oe,De,Re,ve,be,ye,Ke,_e,ke,we,Ne,Se,xe,Ae,Le,Fe,Pe,Be,Me,$e,He,qe,Ue,ze,Ve,We,je,Ge,Xe,Ye;function Ze(e){return e<=9&&(e="0"+e),String(e)}function Je(e,t,n){this.editor=e,this.notification=null,this._message=new CKEDITOR.template(t),this._singularMessage=n?new CKEDITOR.template(n):null,this._tasks=[],this._doneTasks=this._doneWeights=this._totalWeights=0}function Qe(e){this._weight=e||1,this._doneWeight=0,this._isCanceled=!1}function et(e){return e.getName&&!e.hasAttribute("data-cke-temp")}function tt(e,t){function n(e){return!t||t.contains(e)&&e.getAscendant("table",!0).equals(t)}function i(e){0n?new CKEDITOR.dom.element(s[0][n+1]):t&&-1!==s[0][t-1].cellIndex?new CKEDITOR.dom.element(s[0][t-1]):new CKEDITOR.dom.element(r.$.parentNode),l.length==e&&(i[0].moveToPosition(r,CKEDITOR.POSITION_AFTER_END),i[0].select(),r.remove()),t}function st(e,t){var n=e.getStartElement().getAscendant({td:1,th:1},!0);n&&((e=n.clone()).appendBogus(),t?e.insertBefore(n):e.insertAfter(n))}function lt(e,t){var n=e.getDocument(),i=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(i.focus(),n.focus()),(n=new CKEDITOR.dom.range(n))["moveToElementEdit"+(t?"End":"Start")](e)||(n.selectNodeContents(e),n.collapse(!t)),n.select(!0)}function ct(e,t,n){if(e=e[t],void 0===n)return e;for(t=0;e&&t",lt:"<",amp:"&",apos:"'",quot:'"'};if(e=(e=e.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(e,t){var n=i?"&"+t+";":r[t];return o[n]=i?r[t]:"&"+t+";",a.push(n),""})).replace(/,$/,""),!i&&e){e=e.split(",");var t,n=document.createElement("div");for(n.innerHTML="&"+e.join(";&")+";",t=n.innerHTML,n=null,n=0;nr;n++)o[n].indent+=t;if(t=CKEDITOR.plugins.list.arrayToList(o,g,null,u.config.enterMode,e.getDirection()),!f.isIndent&&(a=e.getParent())&&a.is("li"))for(var c,d=[],n=(i=t.listNode.getChildren()).count()-1;0<=n;n--)(c=i.getItem(n))&&c.is&&c.is("li")&&d.push(c);if(t&&t.listNode.replace(e),d&&d.length)for(n=0;n]+data-cke-bookmark[^<]*?<\/span>/gi,""),n&&Bt(h,t)})}function c(){var e;"wysiwyg"==h.mode&&(e=d("paste"),h.getCommand("cut").setState(d("cut")),h.getCommand("copy").setState(d("copy")),h.getCommand("paste").setState(e),h.fire("pasteState",e))}function d(e){var t=(t=h.getSelection())&&t.getRanges()[0];return(h.readOnly||t&&t.checkReadOnly())&&e in{paste:1,cut:1}?CKEDITOR.TRISTATE_DISABLED:"paste"==e?CKEDITOR.TRISTATE_OFF:(t=(e=h.getSelection()).getRanges(),e.getType()==CKEDITOR.SELECTION_NONE||1==t.length&&t[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF)}var u,f=CKEDITOR.plugins.clipboard,g=0,m=0;function E(e,t,n,i,o){var a=h.lang.clipboard[t];h.addCommand(t,n),h.ui.addButton&&h.ui.addButton(e,{label:a,command:t,toolbar:"clipboard,"+i}),h.addMenuItems&&h.addMenuItem(t,{label:a,command:t,group:"clipboard",order:o})}h.on("key",n),h.on("contentDom",e),h.on("selectionChange",c),h.contextMenu&&(h.contextMenu.addListener(function(){return{cut:d("cut"),copy:d("copy"),paste:d("paste")}}),u=null,h.on("menuShow",function(){u&&(u.removeListener(),u=null);var e=h.contextMenu.findItemByCommandName("paste");e&&e.element&&(u=e.element.on("touchend",function(){h._.forcePasteDialog=!0}))})),h.ui.addButton&&h.once("instanceReady",function(){h._.pasteButtons&&CKEDITOR.tools.array.forEach(h._.pasteButtons,function(e){(e=h.ui.get(e))&&(e=CKEDITOR.document.getById(e._.id))&&e.on("touchend",function(){h._.forcePasteDialog=!0})})}),E("Cut","cut",t("cut"),10,1),E("Copy","copy",t("copy"),20,4),E("Paste","paste",{canUndo:!1,async:!0,fakeKeystroke:CKEDITOR.CTRL+86,exec:function(n,e){function t(e,t){t=void 0===t||t,e?(e.method="paste",e.dataTransfer||(e.dataTransfer=f.initPasteDataTransfer()),Bt(n,e,t)):o&&!n._.forcePasteDialog&&n.showNotification(s,"info",n.config.clipboard_notificationDuration),n._.forcePasteDialog=!1,n.fire("afterCommandExec",{name:"paste",command:i,returnValue:!!e})}var i=this,o=void 0===(e=null!=e?e:{}).notification||e.notification,a=e.type,r=CKEDITOR.tools.keystrokeToString(n.lang.common.keyboard,n.getCommandKeystroke(this)),s="string"==typeof o?o:n.lang.clipboard.pasteNotification.replace(/%1/,''+r.display+""),r="string"==typeof e?e:e.dataValue;a&&!0!==n.config.forcePasteAsPlainText&&"allow-word"!==n.config.forcePasteAsPlainText?n._.nextPasteType=a:delete n._.nextPasteType,"string"==typeof r?t({dataValue:r}):n.getClipboardData(t)}},30,8),h._.pasteButtons||(h._.pasteButtons=[]),h._.pasteButtons.push("Paste"),h.getClipboardData=function(e,t){function n(e){e.removeListener(),e.cancel(),t(e.data)}function i(e){e.removeListener(),e.cancel(),t({type:a,dataValue:e.data.dataValue,dataTransfer:e.data.dataTransfer,method:"paste"})}var o=!1,a="auto";t||(t=e,e=null),h.on("beforePaste",function(e){e.removeListener(),o=!0,a=e.data.type},null,null,1e3),h.on("paste",n,null,null,0),!1===function(){if("paste"==f.mainPasteEvent)return h.fire("beforePaste",{type:"auto",method:"paste"}),!1;h.focus(),r();var e=h.focusManager;return e.lock(),h.editable().fire(f.mainPasteEvent)&&!s("paste")?(e.unlock(),!1):(e.unlock(),!0)}()&&(h.removeListener("paste",n),h._.forcePasteDialog&&o&&h.fire("pasteDialog")?(h.on("pasteDialogCommit",i),h.on("dialogHide",function(e){e.removeListener(),e.data.removeListener("pasteDialogCommit",i),e.data._.committed||t(null)})):t(null))}}function $t(e,t){function n(e){return CKEDITOR.tools.repeat("
",~~(e/2))+(1==e%2?"
":"")}return(t=(t=t.replace(/(?!\u3000)\s+/g," ").replace(/> +<").replace(/
/gi,"
")).replace(/<\/?[A-Z]+>/g,function(e){return e.toLowerCase()})).match(/^[^<]$/)||(CKEDITOR.env.webkit&&-1")&&((t=t.replace(/^((
|)<\/div>)(?!$|(
(
|)<\/div>))/g,"
").replace(/^(
(
|)<\/div>){2}(?!$)/g,"
")).match(/
(
|)<\/div>/)&&(t="
"+t.replace(/(
(
|)<\/div>)+/g,function(e){return n(e.split("
").length+1)})+""),t=(t=t.replace(/<\/div>
/g,"
")).replace(/<\/?div>/g,"")),CKEDITOR.env.gecko&&e.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(t=t.replace(/^
$/,"
")),-1
")&&(t=""+t.replace(/(
){2,}/g,function(e){return n(e.length/4)})+"
")),t=t,(e=e).enterMode==CKEDITOR.ENTER_BR?t=t.replace(/(<\/p>)+/g,function(e){return CKEDITOR.tools.repeat("
",e.length/7*2)}).replace(/<\/?p>/g,""):e.enterMode==CKEDITOR.ENTER_DIV&&(t=t.replace(/<(\/)?p>/g,"<$1div>"))),t}function Ht(t){var n={};return{get:function(e){return"plain-text"==e?n.plainText||(n.plainText=new CKEDITOR.filter(t,"br")):"semantic-content"==e?((e=n.semanticContent)||((e=new CKEDITOR.filter(t,{})).allow({$1:{elements:function(){var e,t={};for(e in CKEDITOR.dtd)"$"!=e.charAt(0)&&"div"!=e&&"span"!=e&&(t[e]=1);return t}(),attributes:!0,styles:!1,classes:!1}}),e=n.semanticContent=e),e):e?new CKEDITOR.filter(t,e):null}}}function qt(e,t,n){t=CKEDITOR.htmlParser.fragment.fromHtml(t);var i=new CKEDITOR.htmlParser.basicWriter;return n.applyTo(t,!0,!1,e.activeEnterMode),t.writeHtml(i),i.getHtml()}function Ut(e){e.data.preventDefault(),e.data.$.dataTransfer.dropEffect="none"}function zt(r){var s=CKEDITOR.plugins.clipboard;r.on("contentDom",function(){function i(e,t,n){var i={$:e.data.$,target:e.data.getTarget()};t&&(i.dragRange=t),n&&(i.dropRange=n),!1===r.fire(e.name,i)&&e.data.preventDefault()}function t(e){return e.type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent()),e.getChildCount()}var e=r.editable(),n=CKEDITOR.plugins.clipboard.getDropTarget(r),o=r.ui.space("top"),a=r.ui.space("bottom");s.preventDefaultDropOnElement(o),s.preventDefaultDropOnElement(a),e.attachListener(n,"dragstart",i),e.attachListener(r,"dragstart",s.resetDragDataTransfer,s,null,1),e.attachListener(r,"dragstart",function(e){s.initDragDataTransfer(e,r)},null,null,2),e.attachListener(r,"dragstart",function(){var e=s.dragRange=r.getSelection().getRanges()[0];CKEDITOR.env.ie&&CKEDITOR.env.version<10&&(s.dragStartContainerChildCount=e?t(e.startContainer):null,s.dragEndContainerChildCount=e?t(e.endContainer):null)},null,null,100),e.attachListener(n,"dragend",i),e.attachListener(r,"dragend",s.initDragDataTransfer,s,null,1),e.attachListener(r,"dragend",s.resetDragDataTransfer,s,null,100),e.attachListener(n,"dragover",function(e){var t;(CKEDITOR.env.edge||(t=e.data.getTarget())&&t.is&&t.is("html")||CKEDITOR.env.ie&&CKEDITOR.plugins.clipboard.isFileApiSupported&&e.data.$.dataTransfer.types.contains("Files"))&&e.data.preventDefault()}),e.attachListener(n,"drop",function(e){var t,n;e.data.$.defaultPrevented||(e.data.preventDefault(),r.readOnly)||(!(t=e.data.getTarget()).isReadOnly()||t.type==CKEDITOR.NODE_ELEMENT&&t.is("html"))&&(t=s.getRangeAtDropPosition(e,r),n=s.dragRange,t&&i(e,n,t))},null,null,9999),e.attachListener(r,"drop",s.initDragDataTransfer,s,null,1),e.attachListener(r,"drop",function(e){var t,n,i,o;(e=e.data)&&(t=e.dropRange,n=e.dragRange,(i=e.dataTransfer).getTransferType(r)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){s.internalDrop(n,t,i,r)},0):i.getTransferType(r)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?(e=n,o=i,t.select(),Bt(r,{dataTransfer:o,method:"drop"},1),o.sourceEditor.fire("saveSnapshot"),o.sourceEditor.editable().extractHtmlFromRange(e),o.sourceEditor.getSelection().selectRanges([e]),o.sourceEditor.fire("saveSnapshot")):(o=i,t.select(),Bt(r,{dataTransfer:o,method:"drop"},1),s.resetDragDataTransfer()))},null,null,9999)})}function Vt(e,t){CKEDITOR.tools.extend(this,t,{editor:e,id:"cke-"+CKEDITOR.tools.getUniqueId(),area:e._.notificationArea}),t.type||(this.type="info"),this.element=this._createElement(),e.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(this.element)}function Wt(e){var t=this;this.editor=e,this.notifications=[],this.element=this._createElement(),this._uiBuffer=CKEDITOR.tools.eventsBuffer(10,this._layout,this),this._changeBuffer=CKEDITOR.tools.eventsBuffer(500,this._layout,this),e.on("destroy",function(){t._removeListeners(),t.element.remove()})}function jt(e,t){return Xt(e)?e=Math.round(t*(parseFloat(e)/100)):"string"==typeof e&&e.match(/^\d+$/gm)&&(e=parseInt(e,10)),e}function Gt(e,t){return Xt(e)?e=t*(parseFloat(e)/100):"string"==typeof e&&e.match(/^\d?\.\d+/gm)&&(e=parseFloat(e)),e}function Xt(e){return"string"==typeof e&&e.match(/^((\d*\.\d+)|(\d+))%{1}$/gm)}function Yt(e,t,n){return!isNaN(e)&&t<=e&&e<=n}function Zt(e){return 1==(e=e.toString(16)).length?"0"+e:e}function Jt(e){var t,n=e.editor,i=e.data.path,o=i.blockLimit,a=e.data.selection,r=a.getRanges()[0];(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)&&(a=function(e,t){if(e.isFake)return 0;e=t.block||t.blockLimit,t=e&&e.getLast(en);if(!(!e||!e.isBlockBoundary()||t&&t.type==CKEDITOR.NODE_ELEMENT&&t.isBlockBoundary()||e.is("pre")||e.getBogus()))return e}(a,i))&&(a.appendBogus(),t=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.edge&&n._.previousActive),tn(n,i.block,o)&&r.collapsed&&!r.getCommonAncestor().isReadOnly()&&((i=r.clone()).enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),(o=new CKEDITOR.dom.walker(i)).guard=function(e){return!en(e)||e.type==CKEDITOR.NODE_COMMENT||e.isReadOnly()},!o.checkForward()||i.checkStartOfBlock()&&i.checkEndOfBlock())&&(n=r.fixBlock(!0,n.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"),CKEDITOR.env.needsBrFiller||(n=n.getFirst(en))&&n.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(n.getText()).match(/^(?: |\xa0)$/)&&n.remove(),t=1,e.cancel()),t&&r.select()}function Qt(e){var t=e.data.getTarget();t.is("input")&&("submit"!=(t=t.getAttribute("type"))&&"reset"!=t||e.data.preventDefault())}function en(e){return S(e)&&x(e)}function tn(e,t,n){return!1!==e.config.autoParagraph&&e.activeEnterMode!=CKEDITOR.ENTER_BR&&(e.editable().equals(n)&&!t||t&&"true"==t.getAttribute("contenteditable"))}function nn(e){return e.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==e.config.autoParagraph&&(e.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p")}function on(e){e&&e.isEmptyInlineRemoveable()&&e.remove()}function an(e){var t=e.editor;t.getSelection().scrollIntoView(),setTimeout(function(){t.fire("saveSnapshot")},0)}function rn(e,t,n){var i=e.getCommonAncestor(t);for(t=e=n?t:e;(e=e.getParent())&&!i.equals(e)&&1==e.getChildCount();)t=e;t.remove()}function sn(e){return e.type==CKEDITOR.NODE_ELEMENT}function ln(e){return sn(e.startContainer)&&e.startContainer.getChild(e.startOffset-1)}function cn(e){return e&&sn(e)&&(e.is(q.$removeEmpty)||e.is("a")&&!e.isBlockBoundary())}function dn(e){return(e=new CKEDITOR.dom.walker(e)).guard=function(e,t){return!t&&(e.type==CKEDITOR.NODE_ELEMENT?e.is(CKEDITOR.dtd.$tableContent):void 0)},e.evaluator=function(e){return e.type==CKEDITOR.NODE_ELEMENT},e}function un(e,t,n){return t=e.getDocument().createElement(t),e.append(t,n),t}function hn(e){for(var t,n=e.count();0"+(e.title?'{voiceLabel}':"")+'<{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation">{outerEl}>{bottomHtml}{outerEl}>{outerEl}>'),t=CKEDITOR.dom.element.createFromHtml(r.output({id:e.id,name:t,langDir:e.lang.dir,langCode:e.langCode,voiceLabel:e.title,topHtml:o?''+o+"":"",contentId:e.ui.spaceId("contents"),bottomHtml:a?''+a+"":"",outerEl:CKEDITOR.env.ie?"span":"div"})),i==CKEDITOR.ELEMENT_MODE_REPLACE?(n.hide(),t.insertAfter(n)):n.append(t),e.container=t,e.ui.contentsElement=e.ui.space("contents"),o&&e.ui.space("top").unselectable(),a&&e.ui.space("bottom").unselectable(),n=e.config.width,i=e.config.height,n&&t.setStyle("width",CKEDITOR.tools.cssLength(n)),i&&e.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(i)),t.disableContextMenu(),CKEDITOR.env.webkit&&t.on("focus",function(){e.focus()}),e.fireOnce("uiReady"),l==CKEDITOR.ELEMENT_MODE_REPLACE&&c.config.autoUpdateElement&&s.$.form&&c._attachToForm(),c.setMode(c.config.startupMode,function(){c.resetDirty(),c.status="ready",c.fireOnce("instanceReady"),CKEDITOR.fire("instanceReady",null,c)}))}),c.on("destroy",In),c}function In(){var e=this.container,t=this.element;e&&(e.clearCustomData(),e.remove()),t&&(t.clearCustomData(),this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(t.show(),this._.required&&t.setAttribute("required","required")),delete this.element)}function On(e,t){return(e=e[0])<(t=t[0])?-1:t=T.getChildCount()?(T=T.getChild(I-1),d=!0):T=T.getChild(I):h=d=!0,p.type==CKEDITOR.NODE_TEXT?l?f=!0:p.split(C):0 ',e.document)).insertAfter(m),m.mergeSiblings(!1),e.moveToBookmark({startNode:E}))):e.collapse(!0))}}function An(){var t=!1,n=CKEDITOR.dom.walker.whitespaces(),i=CKEDITOR.dom.walker.bookmark(!0),o=CKEDITOR.dom.walker.bogus();return function(e){return!(!i(e)&&!n(e))||(o(e)&&!t?t=!0:!(e.type==CKEDITOR.NODE_TEXT&&(e.hasAscendant("pre")||CKEDITOR.tools.trim(e.getText()).length)||e.type==CKEDITOR.NODE_ELEMENT&&!e.is(fe)))}}function Ln(e){return function(){var t;return this[e?"getPreviousNode":"getNextNode"](function(e){return!t&&pe(e)&&(t=e),Ee(e)&&!(ge(e)&&e.equals(t))})}}function Fn(e,t){for(;e;){if(e.type==CKEDITOR.NODE_ELEMENT){if("false"==e.getAttribute("contentEditable")&&!e.data("cke-editable"))return;if(e.is("html")||"true"==e.getAttribute("contentEditable")&&(e.contains(t)||e.equals(t)))break}e=e.getParent()}return 1}function Pn(e){var t=e.container,n=e.offset,i=t,o=n;if((i=i.type!=CKEDITOR.NODE_ELEMENT||0===o||o==i.getChildCount()?0:i.getChild(o-1).type==CKEDITOR.NODE_TEXT&&i.getChild(o).type==CKEDITOR.NODE_TEXT)&&(n=(t=t.getChild(n-1)).getLength()),t.type==CKEDITOR.NODE_ELEMENT&&0/g,$e=/",amp:"&",quot:'"',nbsp:" ",shy:""},CKEDITOR.on("reset",function(){Fe=[]}),CKEDITOR.tools={arrayCompare:function(e,t){if(!e&&!t)return!0;if(!e||!t||e.length!=t.length)return!1;for(var n=0;n"+t+""):n.push(''));return n.join("")},htmlEncode:function(e){return null==e?"":String(e).replace(Be,"&").replace(Me,">").replace($e,"<")},htmlDecode:function(e){return e.replace(qe,Hn)},htmlEncodeAttr:function(e){return CKEDITOR.tools.htmlEncode(e).replace(He,""")},htmlDecodeAttr:function(e){return CKEDITOR.tools.htmlDecode(e)},transformPlainTextToHtml:function(e,t){var n,i,o=t==CKEDITOR.ENTER_BR,a=(a=this.htmlEncode(e.replace(/\r\n/g,"\n"))).replace(/\t/g," "),e=t==CKEDITOR.ENTER_P?"p":"div";return o||(t=/\n{2}/g).test(a)&&(i=""+e+">",a=(n="<"+e+">")+a.replace(t,function(){return i+n})+i),a=a.replace(/\n/g,"
"),o||(a=a.replace(new RegExp("
(?="+e+">)"),function(e){return CKEDITOR.tools.repeat(e,2)})),(a=a.replace(/^ | $/g," ")).replace(/(>|\s) /g,function(e,t){return t+" "}).replace(/ (?=<)/g," ")},getNextNumber:(xe=0,function(){return++xe}),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var e="e",t=0;t<8;t++)e+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return e},override:function(e,t){t=t(e);return t.prototype=e.prototype,t},setTimeout:function(e,t,n,i,o){return o=o||window,n=n||o,o.setTimeout(function(){i?e.apply(n,[].concat(i)):e.apply(n)},t||0)},throttle:function(e,t,n){return new this.buffers.throttle(e,t,n)},trim:(Se=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,function(e){return e.replace(Se,"")}),ltrim:(Ne=/^[ \t\n\r]+/g,function(e){return e.replace(Ne,"")}),rtrim:(we=/[ \t\n\r]+$/g,function(e){return e.replace(we,"")}),indexOf:function(e,t){if("function"==typeof t){for(var n=0,i=e.length;n
',CKEDITOR.document),CKEDITOR.document.getBody().append(Ke)),/%$/.test(e))return e;var t=parseFloat(e)<0;return t&&(e=e.replace("-","")),Ke.setStyle("width",e),e=Ke.$.clientWidth,t?-e:e},repeat:function(e,t){return Array(t+1).join(e)},tryThese:function(){for(var e,t=0,n=arguments.length;t
>2,s[1]=(3&a[0])<<4|a[1]>>4,s[2]=(15&a[1])<<2|(192&a[2])>>6,s[3]=63&a[2],o=0;o<4;o++)t=o<=r?t+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(s[o]):t+"="}return t},style:{parse:{_borderStyle:"none hidden dotted dashed solid double groove ridge inset outset".split(" "),_widthRegExp:/^(thin|medium|thick|[\+-]?\d+(\.\d+)?[a-z%]+|[\+-]?0+(\.0+)?|\.\d+[a-z%]+)$/,_rgbaRegExp:/rgba?\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*(?:,\s*[0-9.]+\s*)?\)/gi,_hslaRegExp:/hsla?\(\s*[0-9.]+\s*,\s*\d+%\s*,\s*\d+%\s*(?:,\s*[0-9.]+\s*)?\)/gi,background:function(t){var e={},n=this._findColor(t);return n.length&&(e.color=n[0],CKEDITOR.tools.array.forEach(n,function(e){t=t.replace(e,"")})),(t=CKEDITOR.tools.trim(t))&&(e.unprocessed=t),e},margin:function(e){return CKEDITOR.tools.style.parse.sideShorthand(e,function(e){return e.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset|revert)/g)||["0px"]})},sideShorthand:function(e,t){function n(e){i.top=o[e[0]],i.right=o[e[1]],i.bottom=o[e[2]],i.left=o[e[3]]}var i={},o=t?t(e):e.split(/\s+/);switch(o.length){case 1:n([0,0,0,0]);break;case 2:n([0,1,0,1]);break;case 3:n([0,1,2,1]);break;case 4:n([0,1,2,3])}return i},border:function(e){return CKEDITOR.tools.style.border.fromCssRule(e)},_findColor:function(e){var t=[],n=CKEDITOR.tools.array;return(t=(t=t.concat(e.match(this._rgbaRegExp)||[])).concat(e.match(this._hslaRegExp)||[])).concat(n.filter(e.split(/\s+/),function(e){return!!e.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)||e.toLowerCase()in CKEDITOR.tools.style.parse._colors}))}}},array:{filter:function(n,i,o){var a=[];return this.forEach(n,function(e,t){i.call(o,e,t,n)&&a.push(e)}),a},find:function(e,t,n){for(var i=e.length,o=0;o]*?>)|^/i,'$&\n