PageSourceSearch

https://www.smallchange.co/assets/jquery-rails-43a04f3644f15b1680f…a40fcf89c55e5328596bc1fd1da7a6183c9fcf7e.js

js smallchange.co collected 2026-09-25 18:42:07 UTC 817,870 bytes, 25 lines download raw bytes

vendor: 8,070 bytes, line 1
1!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(v,e){function s(e){var t=!!e&&"length"in e&&e.length,n=fe.type(e);return"function"!==n&&!fe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function t(e,n,i){if(fe.isFunction(n))return fe.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return fe.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(ve.test(n))return fe.filter(n,e,i);n=fe.filter(n,e)}return fe.grep(e,function(e){return-1<fe.inArray(e,n)!==i})}function n(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function d(e){var n={};return fe.each(e.match(we)||[],function(e,t){n[t]=!0}),n}function o(){ie.addEventListener?(ie.removeEventListener("DOMContentLoaded",a),v.removeEventListener("load",a)):(ie.detachEvent("onreadystatechange",a),v.detachEvent("onload",a))}function a(){(ie.addEventListener||"load"===v.event.type||"complete"===ie.readyState)&&(o(),fe.ready())}function l(e,t,n){if(n===undefined&&1===e.nodeType){var i="data-"+t.replace(Ae,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ne.test(n)?fe.parseJSON(n):n)}catch(o){}fe.data(e,t,n)}else n=undefined}return n}function c(e){var t;for(t in e)if(("data"!==t||!fe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function i(e,t,n,i){if(xe(e)){var o,a,r=fe.expando,s=e.nodeType,l=s?fe.cache:e,c=s?e[r]:e[r]&&r;if(c&&l[c]&&(i||l[c].data)||n!==undefined||"string"!=typeof t)return c||(c=s?e[r]=ne.pop()||fe.guid++:r),l[c]||(l[c]=s?{}:{toJSON:fe.noop}),"object"!=typeof t&&"function"!=typeof t||(i?l[c]=fe.extend(l[c],t):l[c].data=fe.extend(l[c].data,t)),a=l[c],i||(a.data||(a.data={}),a=a.data),n!==undefined&&(a[fe.camelCase(t)]=n),"string"==typeof t?null==(o=a[t])&&(o=a[fe.camelCase(t)]):o=a,o}}function r(e,t,n){if(xe(e)){var i,o,a=e.nodeType,r=a?fe.cache:e,s=a?e[fe.expando]:fe.expando;if(r[s]){if(t&&(i=n?r[s]:r[s].data)){o=(t=fe.isArray(t)?t.concat(fe.map(t,fe.camelCase)):t in i?[t]:(t=fe.camelCase(t))in i?[t]:t.split(" ")).length;for(;o--;)delete i[t[o]];if(n?!c(i):!fe.isEmptyObject(i))return}(n||(delete r[s].data,c(r[s])))&&(a?fe.cleanData([e],!0):ue.deleteExpando||r!=r.window?delete r[s]:r[s]=undefined)}}}function u(e,t,n,i){var o,a=1,r=20,s=i?function(){return i.cur()}:function(){return fe.css(e,t,"")},l=s(),c=n&&n[3]||(fe.cssNumber[t]?"":"px"),d=(fe.cssNumber[t]||"px"!==c&&+l)&&Me.exec(fe.css(e,t));if(d&&d[3]!==c)for(c=c||d[3],n=n||[],d=+l||1;d/=a=a||".5",fe.style(e,t,d+c),a!==(a=s()/l)&&1!==a&&--r;);return n&&(d=+d||+l||0,o=n[1]?d+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=d,i.end=o)),o}function g(e){var t=Ve.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function E(e,t){var n,i,o=0,a="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):undefined;if(!a)for(a=[],n=e.childNodes||e;null!=(i=n[o]);o++)!t||fe.nodeName(i,t)?a.push(i):fe.merge(a,E(i,t));return t===undefined||t&&fe.nodeName(e,t)?fe.merge([e],a):a}function T(e,t){for(var n,i=0;null!=(n=e[i]);i++)fe._data(n,"globalEval",!t||fe._data(t[i],"globalEval"))}function C(e){je.test(e.type)&&(e.defaultChecked=e.checked)}function p(e,t,n,i,o){for(var a,r,s,l,c,d,u,h=e.length,f=g(t),m=[],p=0;p<h;p++)if((r=e[p])||0===r)if("object"===fe.type(r))fe.merge(m,r.nodeType?[r]:r);else if(Xe.test(r)){for(l=l||f.appendChild(t.createElement("div")),c=(ze.exec(r)||["",""])[1].toLowerCase(),u=Ge[c]||Ge._default,l.innerHTML=u[1]+fe.htmlPrefilter(r)+u[2],a=u[0];a--;)l=l.lastChild;if(!ue.leadingWhitespace&&We.test(r)&&m.push(t.createTextNode(We.exec(r)[0])),!ue.tbody)for(a=(r="table"!==c||Ye.test(r)?"<table>"!==u[1]||Ye.test(r)?0:l:l.firstChild)&&r.childNodes.length;a--;)fe.nodeName(d=r.childNodes[a],"tbody")&&!d.childNodes.length&&r.removeChild(d);for(fe.merge(m,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=f.lastChild}else m.push(t.createTextNode(r));for(l&&f.removeChild(l),ue.appendChecked||fe.grep(E(m,"input"),C),p=0;r=m[p++];)if(i&&-1<fe.inArray(r,i))o&&o.push(r);else if(s=fe.contains(r.ownerDocument,r),l=E(f.appendChild(r),"script"),s&&T(l),n)for(a=0;r=l[a++];)Ue.test(r.type||"")&&n.push(r);return l=null,f}function h(){return!0}function f(){return!1}function m(){try{return ie.activeElement}catch(e){}}function I(e,t,n,i,o,a){var r,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=undefined),t)I(e,s,n,i,t[s],a);return e}if(null==i&&null==o?(o=n,i=n=undefined):null==o&&("string"==typeof n?(o=i,i=undefined):(o=i,i=n,n=undefined)),!1===o)o=f;else if(!o)return e;return 1===a&&(r=o,(o=function(e){return fe().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=fe.guid++)),e.each(function(){fe.event.add(this,t,o,i,n)})}function O(e,t){return fe.nodeName(e,"table")&&fe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function D(e){return e.type=(null!==fe.find.attr(e,"type"))+"/"+e.type,e}function b(e){var t=st.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function R(e,t){if(1===t.nodeType&&fe.hasData(e)){var n,i,o,a=fe._data(e),r=fe._data(t,a),s=a.events;if(s)for(n in delete r.handle,r.events={},s)for(i=0,o=s[n].length;i<o;i++)fe.event.add(t,n,s[n][i]);r.data&&(r.data=fe.extend({},r.data))}}function y(e,t){var n,i,o;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ue.noCloneEvent&&t[fe.expando]){for(i in(o=fe._data(t)).events)fe.removeEvent(t,i,o.handle);t.removeAttribute(fe.expando)}"script"===n&&t.text!==e.text?(D(t).text=e.text,b(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ue.html5Clone&&e.innerHTML&&!fe.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&je.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function _(n,i,o,a){i=ae.apply([],i);var e,t,r,s,l,c,d=0,u=n.length,h=u-1,f=i[0],m=fe.isFunction(f);if(m||1<u&&"string"==typeof f&&!ue.checkClone&&rt.test(f))return n.each(function(e){var t=n.eq(e);m&&(i[0]=f.call(this,e,t.html())),_(t,i,o,a)});if(u&&(e=(c=p(i,n[0].ownerDocument,!1,n,a)).firstChild,1===c.childNodes.length&&(c=e),e||a)){for(r=(s=fe.map(E(c,"script"),D)).length;d<u;d++)t=c,d!==h&&(t=fe.clone(t,!0,!0),r&&fe.merge(s,E(t,"script"))),o.call(n[d],t,d);if(r)for(l=s[s.length-1].ownerDocument,fe.map(s,b),d=0;d<r;d++)t=s[d],Ue.test(t.type||"")&&!fe._data(t,"globalEval")&&fe.contains(l,t)&&(t.src?fe._evalUrl&&fe._evalUrl(t.src):fe.globalEval((t.text||t.textContent||t.innerHTML||"").replace(lt,"")));c=e=null}return n}function K(e,t,n){for(var i,o=t?fe.filter(t,e):e,a=0;null!=(i=o[a]);a++)n||1!==i.nodeType||fe.cleanData(E(i)),i.parentNode&&(n&&fe.contains(i.ownerDocument,i)&&T(E(i,"script")),i.parentNode.removeChild(i));return e}function k(e,t){var n=fe(t.createElement(e)).appendTo(t.body),i=fe.css(n[0],"display");return n.detach(),i}function w(e){var t=ie,n=ut[e];return n||("none"!==(n=k(e,t))&&n||((t=((dt=(dt||fe("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||dt[0].contentDocument).document).write(),t.close(),n=k(e,t),dt.detach()),ut[e]=n),n}function S(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function x(e){if(e in yt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Rt.length;n--;)if((e=Rt[n]+t)in yt)return e}function N(e,t){for(var n,i,o,a=[],r=0,s=e.length;r<s;r++)(i=e[r]).style&&(a[r]=fe._data(i,"olddisplay"),n=i.style.display,t?(a[r]||"none"!==n||(i.style.display=""),""===i.style.display&&He(i)&&(a[r]=fe._data(i,"olddisplay",w(i.nodeName)))):(o=He(i),(n&&"none"!==n||!o)&&fe._data(i,"olddisplay",o?n:fe.css(i,"dis
1play"))));for(r=0;r<s;r++)(i=e[r]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?a[r]||"":"none"));return e}function A(e,t,n){var i=Dt.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function L(e,t,n,i,o){for(var a=n===(i?"border":"content")?4:"width"===t?1:0,r=0;a<4;a+=2)"margin"===n&&(r+=fe.css(e,n+$e[a],!0,o)),i?("content"===n&&(r-=fe.css(e,"padding"+$e[a],!0,o)),"margin"!==n&&(r-=fe.css(e,"border"+$e[a]+"Width",!0,o))):(r+=fe.css(e,"padding"+$e[a],!0,o),"padding"!==n&&(r+=fe.css(e,"border"+$e[a]+"Width",!0,o)));return r}function F(e,t,n){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,a=gt(e),r=ue.boxSizing&&"border-box"===fe.css(e,"boxSizing",!1,a);if(o<=0||null==o){if(((o=Et(e,t,a))<0||null==o)&&(o=e.style[t]),ft.test(o))return o;i=r&&(ue.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+L(e,t,n||(r?"border":"content"),i,a)+"px"}function B(e,t,n,i,o){return new B.prototype.init(e,t,n,i,o)}function P(){return v.setTimeout(function(){_t=undefined}),_t=fe.now()}function M(e,t){var n,i={height:e},o=0;for(t=t?1:0;o<4;o+=2-t)i["margin"+(n=$e[o])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function $(e,t,n){for(var i,o=(j.tweeners[t]||[]).concat(j.tweeners["*"]),a=0,r=o.length;a<r;a++)if(i=o[a].call(n,t,e))return i}function H(t,e,n){var i,o,a,r,s,l,c,d=this,u={},h=t.style,f=t.nodeType&&He(t),m=fe._data(t,"fxshow");for(i in n.queue||(null==(s=fe._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,fe.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(c=fe.css(t,"display"))?fe._data(t,"olddisplay")||w(t.nodeName):c)&&"none"===fe.css(t,"float")&&(ue.inlineBlockNeedsLayout&&"inline"!==w(t.nodeName)?h.zoom=1:h.display="inline-block")),n.overflow&&(h.overflow="hidden",ue.shrinkWrapBlocks()||d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),e)if(o=e[i],At.exec(o)){if(delete e[i],a=a||"toggle"===o,o===(f?"hide":"show")){if("show"!==o||
vendor: 10,507 bytes, line 1
1!m||m[i]===undefined)continue;f=!0}u[i]=m&&m[i]||fe.style(t,i)}else c=undefined;if(fe.isEmptyObject(u))"inline"===("none"===c?w(t.nodeName):c)&&(h.display=c);else for(i in m?"hidden"in m&&(f=m.hidden):m=fe._data(t,"fxshow",{}),a&&(m.hidden=!f),f?fe(t).show():d.done(function(){fe(t).hide()}),d.done(function(){var e;for(e in fe._removeData(t,"fxshow"),u)fe.style(t,e,u[e])}),u)r=$(f?m[i]:0,i,d),i in m||(m[i]=r.start,f&&(r.end=r.start,r.start="width"===i||"height"===i?1:0))}function q(e,t){var n,i,o,a,r;for(n in e)if(o=t[i=fe.camelCase(n)],a=e[n],fe.isArray(a)&&(o=a[1],a=e[n]=a[0]),n!==i&&(e[i]=a,delete e[n]),(r=fe.cssHooks[i])&&"expand"in r)for(n in a=r.expand(a),delete e[i],a)n in e||(e[n]=a[n],t[n]=o);else t[i]=o}function j(a,e,t){var n,r,i=0,o=j.prefilters.length,s=fe.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=_t||P(),t=Math.max(0,c.startTime+c.duration-e),n=1-(t/c.duration||0),i=0,o=c.tweens.length;i<o;i++)c.tweens[i].run(n);return s.notifyWith(a,[c,n,t]),n<1&&o?t:(s.resolveWith(a,[c]),!1)},c=s.promise({elem:a,props:fe.extend({},e),opts:fe.extend(!0,{specialEasing:{},easing:fe.easing._default},t),originalProperties:e,originalOptions:t,startTime:_t||P(),duration:t.duration,tweens:[],createTween:function(e,t){var n=fe.Tween(a,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var t=0,n=e?c.tweens.length:0;if(r)return this;for(r=!0;t<n;t++)c.tweens[t].run(1);return e?(s.notifyWith(a,[c,1,0]),s.resolveWith(a,[c,e])):s.rejectWith(a,[c,e]),this}}),d=c.props;for(q(d,c.opts.specialEasing);i<o;i++)if(n=j.prefilters[i].call(c,a,d,c.opts))return fe.isFunction(n.stop)&&(fe._queueHooks(c.elem,c.opts.queue).stop=fe.proxy(n.stop,n)),n;return fe.map(d,$,c),fe.isFunction(c.opts.start)&&c.opts.start.call(a,c),fe.fx.timer(fe.extend(l,{elem:a,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function z(e){return fe.attr(e,"class")||""}function U(a){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,o=e.toLowerCase().match(we)||[];if(fe.isFunction(t))for(;n=o[i++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(a[n]=a[n]||[]).unshift(t)):(a[n]=a[n]||[]).push(t)}}function W(t,o,a,r){function s(e){var i;return l[e]=!0,fe.each(t[e]||[],function(e,t){var n=t(o,a,r);return"string"!=typeof n||c||l[n]?c?!(i=n):void 0:(o.dataTypes.unshift(n),s(n),!1)}),i}var l={},c=t===rn;return s(o.dataTypes[0])||!l["*"]&&s("*")}function V(e,t){var n,i,o=fe.ajaxSettings.flatOptions||{};for(i in t)t[i]!==undefined&&((o[i]?e:n||(n={}))[i]=t[i]);return n&&fe.extend(!0,e,n),e}function G(e,t,n){for(var i,o,a,r,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),o===undefined&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in s)if(s[r]&&s[r].test(o)){l.unshift(r);break}if(l[0]in n)a=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){a=r;break}i||(i=r)}a=a||i}if(a)return a!==l[0]&&l.unshift(a),n[a]}function X(e,t,n,i){var o,a,r,s,l,c={},d=e.dataTypes.slice();if(d[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(a=d.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=d.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(r=c[l+" "+a]||c["* "+a]))for(o in c)if((s=o.split(" "))[1]===a&&(r=c[l+" "+s[0]]||c["* "+s[0]])){!0===r?r=c[o]:!0!==c[o]&&(a=s[0],d.unshift(s[1]));break}if(!0!==r)if(r&&e["throws"])t=r(t);else try{t=r(t)}catch(u){return{state:"parsererror",error:r?u:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}function Y(e){return e.style&&e.style.display||fe.css(e,"display")}function J(e){if(!fe.contains(e.ownerDocument||ie,e))return!0;for(;e&&1===e.nodeType;){if("none"===Y(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}function Z(n,e,i,o){var t;if(fe.isArray(e))fe.each(e,function(e,t){i||un.test(n)?o(n,t):Z(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,o)});else if(i||"object"!==fe.type(e))o(n,e);else for(t in e)Z(n+"["+t+"]",e[t],i,o)}function Q(){try{return new v.XMLHttpRequest}catch(e){}}function ee(){try{return new v.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function te(e){return fe.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var ne=[],ie=v.document,oe=ne.slice,ae=ne.concat,re=ne.push,se=ne.indexOf,le={},ce=le.toString,de=le.hasOwnProperty,ue={},he="1.12.4",fe=function(e,t){return new fe.fn.init(e,t)},me=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,pe=/^-ms-/,ge=/-([\da-z])/gi,Ee=function(e,t){return t.toUpperCase()};fe.fn=fe.prototype={jquery:he,constructor:fe,selector:"",length:0,toArray:function(){return oe.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:oe.call(this)},pushStack:function(e){var t=fe.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return fe.each(this,e)},map:function(n){return this.pushStack(fe.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(oe.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:re,sort:ne.sort,splice:ne.splice},fe.extend=fe.fn.extend=function(e){var t,n,i,o,a,r,s=e||{},l=1,c=arguments.length,d=!1;for("boolean"==typeof s&&(d=s,s=arguments[l]||{},l++),"object"==typeof s||fe.isFunction(s)||(s={}),l===c&&(s=this,l--);l<c;l++)if(null!=(a=arguments[l]))for(o in a)t=s[o],s!==(i=a[o])&&(d&&i&&(fe.isPlainObject(i)||(n=fe.isArray(i)))?(n?(n=!1,r=t&&fe.isArray(t)?t:[]):r=t&&fe.isPlainObject(t)?t:{},s[o]=fe.extend(d,r,i)):i!==undefined&&(s[o]=i));return s},fe.extend({expando:"jQuery"+(he+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===fe.type(e)},isArray:Array.isArray||function(e){return"array"===fe.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!fe.isArray(e)&&0<=t-parseFloat(t)+1},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==fe.type(e)||e.nodeType||fe.isWindow(e))return!1;try{if(e.constructor&&!de.call(e,"constructor")&&!de.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!ue.ownFirst)for(t in e)return de.call(e,t);for(t in e);return t===undefined||de.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?le[ce.call(e)]||"object":typeof e},globalEval:function(e){e&&fe.trim(e)&&(v.execScript||function(e){v.eval.call(v,e)})(e)},camelCase:function(e){return e.replace(pe,"ms-").replace(ge,Ee)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(s(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(me,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(s(Object(e))?fe.merge(n,"string"==typeof e?[e]:e):re.call(n,e)),n},inArray:function(e,t,n){var i;if(t){if(se)return se.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;)e[o++]=t[i++];if(n!=n)for(;t[i]!==undefined;)e[o++]=t[i++];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,a=e.length,r=!n;o<a;o++)!t(e[o],o)!==r&&i.push(e[o]);return i},map:function(e,t,n){var i,o,a=0,r=[];if(s(e))for(i=e.length;a<i;a++)null!=(o=t(e[a],a,n))&&r.push(o);else for(a in e)null!=(o=t(e[a],a,n))&&r.push(o);return ae.apply([],r)},guid:1,proxy:function(e,t){var n,i,o;return"string"==typeof t&&(o=e[t],t=e,e=o),fe.isFunction(e)?(n=oe.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(oe.call(arguments)))}).guid=e.guid=e.guid||fe.guid++,i):undefined},now:function(){return+new Date},support:ue}),"function"==typeof Symbol&&(fe.fn[Symbol.iterator]=ne[Symbol.iterator]),fe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){le["[object "+t+"]"]=t.toLowerCase()});var Te=function(n){function I(e,t,n,i){var o,a,r,s,l,c,d,u,h=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!i&&((t?t.ownerDocument||t:$)!==x&&S(t),t=t||x,A)){if(11!==f&&(c=Ee.exec(e)))if(o=c[1]){if(9===f){if(!(r=t.getElementById(o)))return n;if(r.id===o)return n.push(r),n}else if(h&&(r=h.getElementById(o))&&P(t,r)&&r.id===o)return n.push(r),n}else{if(c[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((o=c[3])&&E.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(o)),n}if(E.qsa&&!U[e+" "]&&(!L||!L.test(e))){if(1!==f)h=t,u=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(Ce,"\\$&"):t.setAttribute("id",s=M),a=(d=R(e)).length,l=he.test(s)?"#"+s:"[id='"+s+"']";a--;)d[a]=l+" "+g(d[a]);u=d.join(","),h=Te.test(e)&&p(t.parentNode)||t}if(u)try{return Z.apply(n,h.querySelectorAll(u)),n}catch(m){}finally{s===M&&t.removeAttribute("id")}}}return _(e.replace(se,"$1"),t,n,i)}function e(){function n(e,t){return i.push(e+" ")>D.cacheLength&&delete n[i.shift()],n[e+" "]=t}var i=[];return n}function l(e){return e[M]=!0,e}function o(e){var t=x.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function t(e,t){for(var n=e.split("|"),i=n.length;i--;)D.attrHandle[n[i]]=t}function c(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function i(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function a(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function r(r){return l(function(a){return a=+a,l(function(e,t){for(var n,i=r([],e.length,a),o=i.length;o--;)e[n=i[o]]&&(e[n]=!(t[n]=e[n]))})})}function p(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function s(){}function g(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function u(s,e,t){var l=e.dir,c=t&&"parentNode"===l,d=q++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||c)return s(e,t,n)}:function(e,t,n){var i,o,a,r=[H,d];if(n){for(;e=e[l];
vendor: 10,080 bytes, line 1
1)if((1===e.nodeType||c)&&s(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||c){if((i=(o=(a=e[M]||(e[M]={}))[e.uniqueID]||(a[e.uniqueID]={}))[l])&&i[0]===H&&i[1]===d)return r[2]=i[2];if((o[l]=r)[2]=s(e,t,n))return!0}}}function h(o){return 1<o.length?function(e,t,n){for(var i=o.length;i--;)if(!o[i](e,t,n))return!1;return!0}:o[0]}function T(e,t,n){for(var i=0,o=t.length;i<o;i++)I(e,t[i],n);return n}function O(e,t,n,i,o){for(var a,r=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,i,o)||(r.push(a),c&&t.push(s)));return r}function C(f,m,p,g,E,e){return g&&!g[M]&&(g=C(g)),E&&!E[M]&&(E=C(E,e)),l(function(e,t,n,i){var o,a,r,s=[],l=[],c=t.length,d=e||T(m||"*",n.nodeType?[n]:n,[]),u=!f||!e&&m?d:O(d,s,f,n,i),h=p?E||(e?f:c||g)?[]:t:u;if(p&&p(u,h,n,i),g)for(o=O(h,l),g(o,[],n,i),a=o.length;a--;)(r=o[a])&&(h[l[a]]=!(u[l[a]]=r));if(e){if(E||f){if(E){for(o=[],a=h.length;a--;)(r=h[a])&&o.push(u[a]=r);E(null,h=[],o,i)}for(a=h.length;a--;)(r=h[a])&&-1<(o=E?ee(e,r):s[a])&&(e[o]=!(t[o]=r))}}else h=O(h===t?h.splice(c,h.length):h),E?E(null,t,h,i):Z.apply(t,h)})}function f(e){for(var o,t,n,i=e.length,a=D.relative[e[0].type],r=a||D.relative[" "],s=a?1:0,l=u(function(e){return e===o},r,!0),c=u(function(e){return-1<ee(o,e)},r,!0),d=[function(e,t,n){var i=!a&&(n||t!==K)||((o=t).nodeType?l(e,t,n):c(e,t,n));return o=null,i}];s<i;s++)if(t=D.relative[e[s].type])d=[u(h(d),t)];else{if((t=D.filter[e[s].type].apply(null,e[s].matches))[M]){for(n=++s;n<i&&!D.relative[e[n].type];n++);return C(1<s&&h(d),1<s&&g(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),t,s<n&&f(e.slice(s,n)),n<i&&f(e=e.slice(n)),n<i&&g(e))}d.push(t)}return h(d)}function d(g,E){var T=0<E.length,C=0<g.length,e=function(e,t,n,i,o){var a,r,s,l=0,c="0",d=e&&[],u=[],h=K,f=e||C&&D.find.TAG("*",o),m=H+=null==h?1:Math.random()||.1,p=f.length;for(o&&(K=t===x||t||o);c!==p&&null!=(a=f[c]);c++){if(C&&a){for(r=0,t||a.ownerDocument===x||(S(a),n=!A);s=g[r++];)if(s(a,t||x,n)){i.push(a);break}o&&(H=m)}T&&((a=!s&&a)&&l--,e&&d.push(a))}if(l+=c,T&&c!==l){for(r=0;s=E[r++];)s(d,u,t,n);if(e){if(0<l)for(;c--;)d[c]||u[c]||(u[c]=Y.call(i));u=O(u)}Z.apply(i,u),o&&!e&&0<u.length&&1<l+E.length&&I.uniqueSort(i)}return o&&(H=m,K=h),d};return T?l(e):e}var m,E,D,v,b,R,y,_,K,k,w,S,x,N,A,L,F,B,P,M="sizzle"+1*new Date,$=n.document,H=0,q=0,j=e(),z=e(),U=e(),W=function(e,t){return e===t&&(w=!0),0},V=1<<31,G={}.hasOwnProperty,X=[],Y=X.pop,J=X.push,Z=X.push,Q=X.slice,ee=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",oe="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",ae=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",re=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),de=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),ue=new RegExp(ae),he=new RegExp("^"+ie+"$"),fe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},me=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,Ee=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Te=/[+~]/,Ce=/'|\\/g,Ie=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),Oe=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},De=function(){S()};try{Z.apply(X=Q.call($.childNodes),$.childNodes),X[$.childNodes.length].nodeType}catch(ve){Z={apply:X.length?function(e,t){J.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}for(m in E=I.support={},b=I.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},S=I.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:$;return i!==x&&9===i.nodeType&&i.documentElement&&(N=(x=i).documentElement,A=!b(x),(n=x.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",De,!1):n.attachEvent&&n.attachEvent("onunload",De)),E.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),E.getElementsByTagName=o(function(e){return e.appendChild(x.createComment("")),!e.getElementsByTagName("*").length}),E.getElementsByClassName=ge.test(x.getElementsByClassName),E.getById=o(function(e){return N.appendChild(e).id=M,!x.getElementsByName||!x.getElementsByName(M).length}),E.getById?(D.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&A){var n=t.getElementById(e);return n?[n]:[]}},D.filter.ID=function(e){var t=e.replace(Ie,Oe);return function(e){return e.getAttribute("id")===t}}):(delete D.find.ID,D.filter.ID=function(e){var n=e.replace(Ie,Oe);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),D.find.TAG=E.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):E.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[o++];)1===n.nodeType&&i.push(n);return i}return a},D.find.CLASS=E.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&A)return t.getElementsByClassName(e)},F=[],L=[],(E.qsa=ge.test(x.querySelectorAll))&&(o(function(e){N.appendChild(e).innerHTML="<a id='"+M+"'></a><select id='"+M+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||L.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+M+"-]").length||L.push("~="),e.querySelectorAll(":checked").length||L.push(":checked"),e.querySelectorAll("a#"+M+"+*").length||L.push(".#.+[+~]")}),o(function(e){var t=x.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&L.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),L.push(",.*:")})),(E.matchesSelector=ge.test(B=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&o(function(e){E.disconnectedMatch=B.call(e,"div"),B.call(e,"[s!='']:x"),F.push("!=",ae)}),L=L.length&&new RegExp(L.join("|")),F=F.length&&new RegExp(F.join("|")),t=ge.test(N.compareDocumentPosition),P=t||ge.test(N.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return w=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!E.sortDetached&&t.compareDocumentPosition(e)===n?e===x||e.ownerDocument===$&&P($,e)?-1:t===x||t.ownerDocument===$&&P($,t)?1:k?ee(k,e)-ee(k,t):0:4&n?-1:1)}:function(e,t){if(e===t)return w=!0,0;var n,i=0,o=e.parentNode,a=t.parentNode,r=[e],s=[t];if(!o||!a)return e===x?-1:t===x?1:o?-1:a?1:k?ee(k,e)-ee(k,t):0;if(o===a)return c(e,t);for(n=e;n=n.parentNode;)r.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;r[i]===s[i];)i++;return i?c(r[i],s[i]):r[i]===$?-1:s[i]===$?1:0}),x},I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if((e.ownerDocument||e)!==x&&S(e),t=t.replace(de,"='$1']"),E.matchesSelector&&A&&!U[t+" "]&&(!F||!F.test(t))&&(!L||!L.test(t)))try{var n=B.call(e,t);if(n||E.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(ve){}return 0<I(t,x,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!==x&&S(e),P(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!==x&&S(e);var n=D.attrHandle[t.toLowerCase()],i=n&&G.call(D.attrHandle,t.toLowerCase())?n(e,t,!A):undefined;return i!==undefined?i:E.attributes||!A?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},I.uniqueSort=function(e){var t,n=[],i=0,o=0;if(w=!E.detectDuplicates,k=!E.sortStable&&e.slice(0),e.sort(W),w){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return k=null,e},v=I.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=v(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=v(t);return n},(D=I.selectors={cacheLength:50,createPseudo:l,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Ie,Oe),e[3]=(e[3]||e[4]||e[5]||"").replace(Ie,Oe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ue.test(n)&&(t=R(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Ie,Oe).toLowerCase();return"*"===e?function(){return!0}
vendor: 7,421 bytes, lines 1-2
1:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=j[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&j(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,o){return function(e){var t=I.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===o:"!="===i?t!==o:"^="===i?o&&0===t.indexOf(o):"*="===i?o&&-1<t.indexOf(o):"$="===i?o&&t.slice(-o.length)===o:"~="===i?-1<(" "+t.replace(re," ")+" ").indexOf(o):"|="===i&&(t===o||t.slice(0,o.length+1)===o+"-"))}},CHILD:function(m,e,t,p,g){var E="nth"!==m.slice(0,3),T="last"!==m.slice(-4),C="of-type"===e;return 1===p&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var i,o,a,r,s,l,c=E!==T?"nextSibling":"previousSibling",d=e.parentNode,u=C&&e.nodeName.toLowerCase(),h=!n&&!C,f=!1;if(d){if(E){for(;c;){for(r=e;r=r[c];)if(C?r.nodeName.toLowerCase()===u:1===r.nodeType)return!1;l=c="only"===m&&!l&&"nextSibling"}return!0}if(l=[T?d.firstChild:d.lastChild],T&&h){for(f=(s=(i=(o=(a=(r=d)[M]||(r[M]={}))[r.uniqueID]||(a[r.uniqueID]={}))[m]||[])[0]===H&&i[1])&&i[2],r=s&&d.childNodes[s];r=++s&&r&&r[c]||(f=s=0)||l.pop();)if(1===r.nodeType&&++f&&r===e){o[m]=[H,s,f];break}}else if(h&&(f=s=(i=(o=(a=(r=e)[M]||(r[M]={}))[r.uniqueID]||(a[r.uniqueID]={}))[m]||[])[0]===H&&i[1]),!1===f)for(;(r=++s&&r&&r[c]||(f=s=0)||l.pop())&&((C?r.nodeName.toLowerCase()!==u:1!==r.nodeType)||!++f||(h&&((o=(a=r[M]||(r[M]={}))[r.uniqueID]||(a[r.uniqueID]={}))[m]=[H,f]),r!==e)););return(f-=g)===p||f%p==0&&0<=f/p}}},PSEUDO:function(e,a){var t,r=D.pseudos[e]||D.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return r[M]?r(a):1<r.length?(t=[e,e,"",a],D.setFilters.hasOwnProperty(e.toLowerCase())?l(function(e,t){for(var n,i=r(e,a),o=i.length;o--;)e[n=ee(e,i[o])]=!(t[n]=i[o])}):function(e){return r(e,0,t)}):r}},pseudos:{
2not:l(function(e){var i=[],o=[],s=y(e.replace(se,"$1"));return s[M]?l(function(e,t,n,i){for(var o,a=s(e,null,i,[]),r=e.length;r--;)(o=a[r])&&(e[r]=!(t[r]=o))}):function(e,t,n){return i[0]=e,s(i,null,n,o),i[0]=null,!o.pop()}}),has:l(function(t){return function(e){return 0<I(t,e).length}}),contains:l(function(t){return t=t.replace(Ie,Oe),function(e){return-1<(e.textContent||e.innerText||v(e)).indexOf(t)}}),lang:l(function(n){return he.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(Ie,Oe).toLowerCase(),function(e){var t;do{if(t=A?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===N},focus:function(e){return e===x.activeElement&&(!x.hasFocus||x.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!D.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return me.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:r(function(){return[0]}),last:r(function(e,t){return[t-1]}),eq:r(function(e,t,n){return[n<0?n+t:n]}),even:r(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:r(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:r(function(e,t,n){for(var i=n<0?n+t:n;0<=--i;)e.push(i);return e}),gt:r(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=D.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})D.pseudos[m]=i(m);for(m in{submit:!0,reset:!0})D.pseudos[m]=a(m);return s.prototype=D.filters=D.pseudos,D.setFilters=new s,R=I.tokenize=function(e,t){var n,i,o,a,r,s,l,c=z[e+" "];if(c)return t?0:c.slice(0);for(r=e,s=[],l=D.preFilter;r;){for(a in n&&!(i=le.exec(r))||(i&&(r=r.slice(i[0].length)||r),s.push(o=[])),n=!1,(i=ce.exec(r))&&(n=i.shift(),o.push({value:n,type:i[0].replace(se," ")}),r=r.slice(n.length)),D.filter)!(i=fe[a].exec(r))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),r=r.slice(n.length));if(!n)break}return t?r.length:r?I.error(e):z(e,s).slice(0)},y=I.compile=function(e,t){var n,i=[],o=[],a=U[e+" "];if(!a){for(t||(t=R(e)),n=t.length;n--;)(a=f(t[n]))[M]?i.push(a):o.push(a);(a=U(e,d(o,i))).selector=e}return a},_=I.select=function(e,t,n,i){var o,a,r,s,l,c="function"==typeof e&&e,d=!i&&R(e=c.selector||e);if(n=n||[],1===d.length){if(2<(a=d[0]=d[0].slice(0)).length&&"ID"===(r=a[0]).type&&E.getById&&9===t.nodeType&&A&&D.relative[a[1].type]){if(!(t=(D.find.ID(r.matches[0].replace(Ie,Oe),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(o=fe.needsContext.test(e)?0:a.length;o--&&(r=a[o],!D.relative[s=r.type]);)if((l=D.find[s])&&(i=l(r.matches[0].replace(Ie,Oe),Te.test(a[0].type)&&p(t.parentNode)||t))){if(a.splice(o,1),!(e=i.length&&g(a)))return Z.apply(n,i),n;break}}return(c||y(e,d))(i,t,!A,n,!t||Te.test(e)&&p(t.parentNode)||t),n},E.sortStable=M.split("").sort(W).join("")===M,E.detectDuplicates=!!w,S(),E.sortDetached=o(function(e){return 1&e.compareDocumentPosition(x.createElement("div"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||t("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),E.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||t("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||t(te,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),I}(v);fe.find=Te,fe.expr=Te.selectors,fe.expr[":"]=fe.expr.pseudos,fe.uniqueSort=fe.unique=Te.uniqueSort,fe.text=Te.getText,fe.isXMLDoc=Te.isXML,fe.contains=Te.contains;var Ce=function(e,t,n){for(var i=[],o=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&fe(e).is(n))break;i.push(e)}return i},Ie=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Oe=fe.expr.match.needsContext,De=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ve=/^.[^:#\[\.,]*$/;fe.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?fe.find.matchesSelector(i,e)?[i]:[]:fe.find.matches(e,fe.grep(t,function(e){return 1===e.nodeType}))},fe.fn.extend({find:function(e){var t,n=[],i=this,o=i.length;if("string"!=typeof e)return this.pushStack(fe(e).filter(function(){for(t=0;t<o;t++)if(fe.contains(i[t],this))return!0}));for(t=0;t<o;t++)fe.find(e,i[t],n);return(n=this.pushStack(1<o?fe.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(t(this,e||[],!1))},not:function(e){return this.pushStack(t(this,e||[],!0))},is:function(e){return!!t(this,"string"==typeof e&&Oe.test(e)?fe(e):e||[],!1).length}});
vendor: 57,370 bytes, lines 2-3
2var be,Re=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(fe.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||be,"string"==typeof e){if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Re.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof fe?t[0]:t,fe.merge(this,fe.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:ie,!0)),De.test(i[1])&&fe.isPlainObject(t))for(i in t)fe.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((o=ie.getElementById(i[2]))&&o.parentNode){if(o.id!==i[2])return be.find(e);this.length=1,this[0]=o}return this.context=ie,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):fe.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(fe):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),fe.makeArray(e,this))}).prototype=fe.fn,be=fe(ie);var ye=/^(?:parents|prev(?:Until|All))/,_e={children:!0,contents:!0,next:!0,prev:!0};fe.fn.extend({has:function(e){var t,n=fe(e,this),i=n.length;return this.filter(function(){for(t=0;t<i;t++)if(fe.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,o=this.length,a=[],r=Oe.test(e)||"string"!=typeof e?fe(e,t||this.context):0;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(r?-1<r.index(n):1===n.nodeType&&fe.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(1<a.length?fe.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?fe.inArray(this[0],fe(e)):fe.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(fe.uniqueSort(fe.merge(this.get(),fe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),fe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ce(e,"parentNode")},parentsUntil:function(e,t,n){return Ce(e,"parentNode",n)},next:function(e){return n(e,"nextSibling")},prev:function(e){return n(e,"previousSibling")},nextAll:function(e){return Ce(e,"nextSibling")},prevAll:function(e){return Ce(e,"previousSibling")},nextUntil:function(e,t,n){return Ce(e,"nextSibling",n)},prevUntil:function(e,t,n){return Ce(e,"previousSibling",n)},siblings:function(e){return Ie((e.parentNode||{}).firstChild,e)},children:function(e){return Ie(e.firstChild)},contents:function(e){return fe.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:fe.merge([],e.childNodes)}},function(i,o){fe.fn[i]=function(e,t){var n=fe.map(this,o,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=fe.filter(t,n)),1<this.length&&(_e[i]||(n=fe.uniqueSort(n)),ye.test(i)&&(n=n.reverse())),this.pushStack(n)}});var Ke,ke,we=/\S+/g;for(ke in fe.Callbacks=function(i){i="string"==typeof i?d(i):fe.extend({},i);var o,e,t,n,a=[],r=[],s=-1,l=function(){for(n=i.once,t=o=!0;r.length;s=-1)for(e=r.shift();++s<a.length;)!1===a[s].apply(e[0],e[1])&&i.stopOnFalse&&(s=a.length,e=!1);i.memory||(e=!1),o=!1,n&&(a=e?[]:"")},c={add:function(){return a&&(e&&!o&&(s=a.length-1,r.push(e)),function n(e){fe.each(e,function(e,t){fe.isFunction(t)?i.unique&&c.has(t)||a.push(t):t&&t.length&&"string"!==fe.type(t)&&n(t)})}(arguments),e&&!o&&l()),this},remove:function(){return fe.each(arguments,function(e,t){for(var n;-1<(n=fe.inArray(t,a,n));)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?-1<fe.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return n=r=[],a=e="",this},disabled:function(){return!a},lock:function(){return n=!0,e||c.disable(),this},locked:function(){return!!n},fireWith:function(e,t){return n||(t=[e,(t=t||[]).slice?t.slice():t],r.push(t),o||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!t}};return c},fe.extend({Deferred:function(e){var a=[["resolve","done",fe.Callbacks("once memory"),"resolved"],["reject","fail",fe.Callbacks("once memory"),"rejected"],["notify","progress",fe.Callbacks("memory")]],o="pending",r={state:function(){return o},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var o=arguments;return fe.Deferred(function(i){fe.each(a,function(e,t){var n=fe.isFunction(o[e])&&o[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&fe.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this===r?i.promise():this,n?[e]:arguments)})}),o=null}).promise()},promise:function(e){return null!=e?fe.extend(e,r):r}},s={};return r.pipe=r.then,fe.each(a,function(e,t){var n=t[2],i=t[3];r[t[1]]=n.add,i&&n.add(function(){o=i},a[1^e][2].disable,a[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?r:this,arguments),this},s[t[0]+"With"]=n.fireWith}),r.promise(s),e&&e.call(s,s),s},when:function(e){var o,t,n,i=0,a=oe.call(arguments),r=a.length,s=1!==r||e&&fe.isFunction(e.promise)?r:0,l=1===s?e:fe.Deferred(),c=function(t,n,i){return function(e){n[t]=this,i[t]=1<arguments.length?oe.call(arguments):e,i===o?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(1<r)for(o=new Array(r),t=new Array(r),n=new Array(r);i<r;i++)a[i]&&fe.isFunction(a[i].promise)?a[i].promise().progress(c(i,t,o)).done(c(i,n,a)).fail(l.reject):--s;return s||l.resolveWith(n,a),l.promise()}}),fe.fn.ready=function(e){return fe.ready.promise().done(e),this},fe.extend({isReady:!1,readyWait:1,holdReady:function(e){e?fe.readyWait++:fe.ready(!0)},ready:function(e){(!0===e?--fe.readyWait:fe.isReady)||(fe.isReady=!0)!==e&&0<--fe.readyWait||(Ke.resolveWith(ie,[fe]),fe.fn.triggerHandler&&(fe(ie).triggerHandler("ready"),fe(ie).off("ready")))}}),fe.ready.promise=function(t){if(!Ke)if(Ke=fe.Deferred(),"complete"===ie.readyState||"loading"!==ie.readyState&&!ie.documentElement.doScroll)v.setTimeout(fe.ready);else if(ie.addEventListener)ie.addEventListener("DOMContentLoaded",a),v.addEventListener("load",a);else{ie.attachEvent("onreadystatechange",a),v.attachEvent("onload",a);var n=!1;try{n=null==v.frameElement&&ie.documentElement}catch(i){}n&&n.doScroll&&function e(){if(!fe.isReady){try{n.doScroll("left")}catch(i){return v.setTimeout(e,50)}o(),fe.ready()}}()}return Ke.promise(t)},fe.ready.promise(),fe(ue))break;ue.ownFirst="0"===ke,ue.inlineBlockNeedsLayout=!1,fe(function(){var e,t,n,i;(n=ie.getElementsByTagName("body")[0])&&n.style&&(t=ie.createElement("div"),(i=ie.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ue.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))}),function(){var e=ie.createElement("div");ue.deleteExpando=!0;try{delete e.test}catch(t){ue.deleteExpando=!1}e=null}();var Se,xe=function(e){var t=fe.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)},Ne=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ae=/([A-Z])/g;fe.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?fe.cache[e[fe.expando]]:e[fe.expando])&&!c(e)},data:function(e,t,n){return i(e,t,n)},removeData:function(e,t){return r(e,t)},_data:function(e,t,n){return i(e,t,n,!0)},_removeData:function(e,t){return r(e,t,!0)}}),fe.fn.extend({data:function(e,t){var n,i,o,a=this[0],r=a&&a.attributes;if(e===undefined){if(this.length&&(o=fe.data(a),1===a.nodeType&&!fe._data(a,"parsedAttrs"))){for(n=r.length;n--;)r[n]&&0===(i=r[n].name).indexOf("data-")&&l(a,i=fe.camelCase(i.slice(5)),o[i]);fe._data(a,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){fe.data(this,e)}):1<arguments.length?this.each(function(){fe.data(this,e,t)}):a?l(a,e,fe.data(a,e)):undefined},removeData:function(e){return this.each(function(){fe.removeData(this,e)})}}),fe.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=fe._data(e,t),n&&(!i||fe.isArray(n)?i=fe._data(e,t,fe.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=fe.queue(e,t),i=n.length,o=n.shift(),a=fe._queueHooks(e,t),r=function(){fe.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete a.stop,o.call(e,r,a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return fe._data(e,n)||fe._data(e,n,{empty:fe.Callbacks("once memory").add(function(){fe._removeData(e,t+"queue"),fe._removeData(e,n)})})}}),fe.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?fe.queue(this[0],t):n===undefined?this:this.each(function(){var e=fe.queue(this,t,n);fe._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&fe.dequeue(this,t)})},dequeue:function(e){return this.each(function(){fe.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=fe.Deferred(),a=this,r=this.length,s=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=undefined),e=e||"fx";r--;)(n=fe._data(a[r],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(t)}}),ue.shrinkWrapBlocks=function(){return null!=Se?Se:(Se=!1,(t=ie.getElementsByTagName("body")[0])&&t.style?(e=ie.createElement("div"),(n=ie.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(ie.createElement("div")).style.width="5px",Se=3!==e.offsetWidth),t.removeChild(n),Se):void 0);var e,t,n};var Le,Fe,Be,Pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Me=new RegExp("^(?:([+-])=|)("+Pe+")([a-z%]*)$","i"),$e=["Top","Right","Bottom","Left"],He=function(e,t){return e=t||e,"none"===fe.css(e,"display")||!fe.contains(e.ownerDocument,e)},qe=function(e,t,n,i,o,a,r){var s=0,l=e.length,c=null==n;if("object"===fe.type(n))for(s in o=!0,n)qe(e,t,s,n[s],!0,a,r);else if(i!==undefined&&(o=!0,fe.isFunction(i)||(r=!0),c&&(r?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(fe(e),n)})),t))for(;s<l;s++)t(e[s],n,r?i:i.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):a},je=/^(?:checkbox|radio)$/i,ze=/<([\w:-]+)/,Ue=/^$|\/(?:java|ecma)script/i,We=/^\s+/,Ve="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";Le=ie.createElement("div"),Fe=ie.createDocumentFragment(),Be=ie.createElement("input"),Le.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ue.leadingWhitespace=3===Le.firstChild.nodeType,ue.tbody=!Le.getElementsByTagName("tbody").length,ue.htmlSerialize=!!Le.getElementsByTagName("link").length,ue.html5Clone="<:nav></:nav>"!==ie.createElement("nav").cloneNode(!0).outerHTML,Be.type="checkbox",Be.checked=!0,Fe.appendChild(Be),ue.appendChecked=Be.checked,Le.innerHTML="<textarea>x</textarea>",ue.noCloneChecked=!!Le.cloneNode(!0).lastChild.defaultValue,Fe.appendChild(Le),(Be=ie.createElement("input")).setAttribute("type","radio"),Be.setAttribute("checked","checked"),Be.setAttribute("name","t"),Le.appendChild(Be),ue.checkClone=Le.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.noCloneEvent=!!Le.addEventListener,Le[fe.expando]=1,ue.attributes=!Le.getAttribute(fe.expando);var Ge={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ue.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Ge.optgroup=Ge.option,Ge.tbody=Ge.tfoot=Ge.colgroup=Ge.caption=Ge.thead,Ge.th=Ge.td;var Xe=/<|&#?\w+;/,Ye=/<tbody/i;!function(){var e,t,n=ie.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(ue[e]=t in v)||(n.setAttribute(t,"t"),ue[e]=!1===n.attributes[t].expando);n=null}();var Je=/^(?:input|select|textarea)$/i,Ze=/^key/,Qe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,et=/^(?:focusinfocus|focusoutblur)$/,tt=/^([^.]*)(?:\.(.+)|)/;fe.event={global:{},add:function(e,t,n,i,o){var a,r,s,l,c,d,u,h,f,m,p,g=fe._data(e);if(g){for(n.handler&&(n=(l=n).handler,o=l.selector),n.guid||(n.guid=fe.guid++),(r=g.events)||(r=g.events={}),(d=g.handle)||((d=g.handle=function(e){return void 0===fe||e&&fe.event.triggered===e.type?undefined:fe.event.dispatch.apply(d.elem,arguments)}).elem=e),s=(t=(t||"").match(we)||[""]).length;s--;)f=p=(a=tt.exec(t[s])||[])[1],m=(a[2]||"").split(".").sort(),f&&(c=fe.event.special[f]||{},f=(o?c.delegateType:c.bindType)||f,c=fe.event.special[f]||{},u=fe.extend({type:f,origType:p,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&fe.expr.match.needsContext.test(o),namespace:m.join(".")},l),(h=r[f])||((h=r[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,m,d)||(e.addEventListener?e.addEventListener(f,d,!1):e.attachEvent&&e.attachEvent("on"+f,d))),c.add&&(c.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),fe.event.global[f]=!0);e=null}},remove:function(e,t,n,i,o){var a,r,s,l,c,d,u,h,f,m,p,g=fe.hasData(e)&&fe._data(e);if(g&&(d=g.events)){for(c=(t=(t||"").match(we)||[""]).length;c--;)if(f=p=(s=tt.exec(t[c])||[])[1],m=(s[2]||"").split(".").sort(),f){for(u=fe.event.special[f]||{},h=d[f=(i?u.delegateType:u.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=a=h.length;a--;)r=h[a],!o&&p!==r.origType||n&&n.guid!==r.guid||s&&!s.test(r.namespace)||i&&i!==r.selector&&("**"!==i||!r.selector)||(h.splice(a,1),r.selector&&h.delegateCount--,u.remove&&u.remove.call(e,r));l&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,m,g.handle)||fe.removeEvent(e,f,g.handle),delete d[f])}else for(f in d)fe.event.remove(e,f+t[c],n,i,!0);fe.isEmptyObject(d)&&(delete g.handle,fe._removeData(e,"events"))}},trigger:function(e,t,n,i){var o,a,r,s,l,c,d,u=[n||ie],h=de.call(e,"type")?e.type:e,f=de.call(e,"namespace")?e.namespace.split("."):[];if(r=c=n=n||ie,3!==n.nodeType&&8!==n.nodeType&&!et.test(h+fe.event.triggered)&&(-1<h.indexOf(".")&&(h=(f=h.split(".")).shift(),f.sort()),a=h.indexOf(":")<0&&"on"+h,(e=e[fe.expando]?e:new fe.Event(h,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=n),t=null==t?[e]:fe.makeArray(t,[e]),l=fe.event.special[h]||{},i||!l.trigger||!1!==l.trigger.apply(n,t))){if(!i&&!l.noBubble&&!fe.isWindow(n)){for(s=l.delegateType||h,et.test(s+h)||(r=r.parentNode);r;r=r.parentNode)u.push(r),c=r;c===(n.ownerDocument||ie)&&u.push(c.defaultView||c.parentWindow||v)}for(d=0;(r=u[d++])&&!e.isPropagationStopped();)e.type=1<d?s:l.bindType||h,(o=(fe._data(r,"events")||{})[e.type]&&fe._data(r,"handle"))&&o.apply(r,t),(o=a&&r[a])&&o.apply&&xe(r)&&(e.result=o.apply(r,t),!1===e.result&&e.preventDefault());if(e.type=h,!i&&!e.isDefaultPrevented()&&(!l._default||!1===l._default.apply(u.pop(),t))&&xe(n)&&a&&n[h]&&!fe.isWindow(n)){(c=n[a])&&(n[a]=null),fe.event.triggered=h;try{n[h]()}catch(m){}fe.event.triggered=undefined,c&&(n[a]=c)}return e.result}},dispatch:function(e){e=fe.event.fix(e);var t,n,i,o,a,r=[],s=oe.call(arguments),l=(fe._data(this,"events")||{})[e.type]||[],c=fe.event.special[e.type]||{};if((s[0]=e).delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(r=fe.event.handlers.call(this,e,l),t=0;(o=r[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(a=o.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(a.namespace)||(e.handleObj=a,e.data=a.data,(i=((fe.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,s))!==undefined&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,o,a,r=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],n=0;n<s;n++)i[o=(a=t[n]).selector+" "]===undefined&&(i[o]=a.needsContext?-1<fe(o,this).index(l):fe.find(o,this,null,[l]).length),i[o]&&i.push(a);i.length&&r.push({elem:l,handlers:i})}return s<t.length&&r.push({elem:this,handlers:t.slice(s)}),r},fix:function(e){if(e[fe.expando])return e;var t,n,i,o=e.type,a=e,r=this.fixHooks[o];for(r||(this.fixHooks[o]=r=Qe.test(o)?this.mouseHooks:Ze.test(o)?this.keyHooks:{}),i=r.props?this.props.concat(r.props):this.props,e=new fe.Event(a),t=i.length;t--;)e[n=i[t]]=a[n];return e.target||(e.target=a.srcElement||ie),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,r.filter?r.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,o,a=t.button,r=t.fromElement;return null==e.pageX&&null!=t.clientX&&(o=(i=e.target.ownerDocument||ie).documentElement,n=i.body,e.pageX=t.clientX+(o&&o.scrollLeft||n&&n.scrollLeft||0)-(o&&o.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(o&&o.scrollTop||n&&n.scrollTop||0)-(o&&o.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&r&&(e.relatedTarget=r===e.target?t.toElement:r),e.which||a===undefined||(e.which=1&a?1:2&a?3:4&a?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==m()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===m()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(fe.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return fe.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var i=fe.extend(new fe.Event,n,{type:e,isSimulated:!0});fe.event.trigger(i,null,t),i.isDefaultPrevented()&&n.preventDefault()}},fe.removeEvent=ie.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var i="on"+t;e.detachEvent&&("undefined"==typeof e[i]&&(e[i]=null),e.detachEvent(i,n))},fe.Event=function(e,t){if(!(this instanceof fe.Event))return new fe.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&!1===e.returnValue?h:f):this.type=e,t&&fe.extend(this,t),this.timeStamp=e&&e.timeStamp||fe.now(),this[fe.expando]=!0},fe.Event.prototype={constructor:fe.Event,isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=h,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=h,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=h,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},fe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,a){fe.event.special[e]={delegateType:a,bindType:a,handle:function(e){var t,n=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===n||fe.contains(n,i))||(e.type=o.origType,t=o.handler.apply(this,arguments),e.type=a),t}}}),ue.submit||(fe.event.special.submit={setup:function(){if(fe.nodeName(this,"form"))return!1;fe.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=fe.nodeName(t,"input")||fe.nodeName(t,"button")?fe.prop(t,"form"):undefined;n&&!fe._data(n,"submit")&&(fe.event.add(n,"submit._submit",function(e){e._submitBubble=!0}),fe._data(n,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&fe.event.simulate("submit",this.parentNode,e))},teardown:function(){if(fe.nodeName(this,"form"))return!1;fe.event.remove(this,"._submit")}}),ue.change||(fe.event.special.change={setup:function(){if(Je.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(fe.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),fe.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),fe.event.simulate("change",this,e)})),!1;fe.event.add(this,"beforeactivate._change",function(e){var t=e.target;Je.test(t.nodeName)&&!fe._data(t,"change")&&(fe.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||fe.event.simulate("change",this.parentNode,e)}),fe._data(t,"change",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return fe.event.remove(this,"._change"),!Je.test(this.nodeName)}}),ue.focusin||fe.each({focus:"focusin",blur:"focusout"},function(n,i){var o=function(e){fe.event.simulate(i,e.target,fe.event.fix(e))};fe.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=fe._data(e,i);t||e.addEventListener(n,o,!0),fe._data(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=fe._data(e,i)-1;t?fe._data(e,i,t):(e.removeEventListener(n,o,!0),fe._removeData(e,i))}}}),fe.fn.extend({on:function(e,t,n,i){return I(this,e,t,n,i)},one:function(e,t,n,i){return I(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,fe(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=undefined),!1===n&&(n=f),this.each(function(){fe.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){fe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return fe.event.trigger(e,t,n,!0)}});var nt=/ jQuery\d+="(?:null|\d+)"/g,it=new RegExp("<(?:"+Ve+")[\\s/>]","i"),ot=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,at=/<script|<style|<link/i,rt=/checked\s*(?:[^=]|=\s*.checked.)/i,st=/^true\/(.*)/,lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ct=g(ie).appendChild(ie.createElement("div"));fe.extend({htmlPrefilter:function(e){return e.replace(ot,"<$1></$2>")},clone:function(e,t,n){var i,o,a,r,s,l=fe.contains(e.ownerDocument,e);if(ue.html5Clone||fe.isXMLDoc(e)||!it.test("<"+e.nodeName+">")?a=e.cloneNode(!0):(ct.innerHTML=e.outerHTML,ct.removeChild(a=ct.firstChild)),!(ue.noCloneEvent&&ue.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||fe.isXMLDoc(e)))for(i=E(a),s=E(e),r=0;null!=(o=s[r]);++r)i[r]&&y(o,i[r]);if(t)if(n)for(s=s||E(e),i=i||E(a),r=0;null!=(o=s[r]);r++)R(o,i[r]);else R(e,a);return 0<(i=E(a,"script")).length&&T(i,!l&&E(e,"script")),i=s=o=null,a},cleanData:function(e,t){for(var n,i,o,a,r=0,s=fe.expando,l=fe.cache,c=ue.attributes,d=fe.event.special;null!=(n=e[r]);r++)if((t||xe(n))&&(a=(o=n[s])&&l[o])){if(a.events)for(i in a.events)d[i]?fe.event.remove(n,i):fe.removeEvent(n,i,a.handle);l[o]&&(delete l[o],c||"undefined"==typeof n.removeAttribute?n[s]=undefined:n.removeAttribute(s),ne.push(o))}}}),fe.fn.extend({domManip:_,detach:function(e){return K(this,e,!0)},remove:function(e){return K(this,e)},text:function(e){return qe(this,function(e){return e===undefined?fe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ie).createTextNode(e))},null,e,arguments.length)},append:function(){return _(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||O(this,e).appendChild(e)})},prepend:function(){return _(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=O(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return _(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return _(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&fe.cleanData(E(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&fe.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return fe.clone(this,e,t)})},html:function(e){return qe(this,function(e){var t=this[0]||{},n=0,i=this.length;if(e===undefined)return 1===t.nodeType?t.innerHTML.replace(nt,""):undefined;if("string"==typeof e&&!at.test(e)&&(ue.htmlSerialize||!it.test(e))&&(ue.leadingWhitespace||!We.test(e))&&!Ge[(ze.exec(e)||["",""])[1].toLowerCase()]){e=fe.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(fe.cleanData(E(t,!1)),t.innerHTML=e);t=0}catch(o){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return _(this,arguments,function(e){var t=this.parentNode;fe.inArray(this,n)<0&&(fe.cleanData(E(this)),t&&t.replaceChild(e,this))},n)}}),fe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,r){fe.fn[e]=function(e){for(var t,n=0,i=[],o=fe(e),a=o.length-1;n<=a;n++)t=n===a?this:this.clone(!0),fe(o[n])[r](t),re.apply(i,t.get());return this.pushStack(i)}});var dt,ut={HTML:"block",BODY:"block"},ht=/^margin/,ft=new RegExp("^("+Pe+")(?!px)[a-z%]+$","i"),mt=function(e,t,n,i){var o,a,r={};for(a in t)r[a]=e.style[a],e.style[a]=t[a];for(a in o=n.apply(e,i||[]),t)e.style[a]=r[a];return o},pt=ie.documentElement;!function(){function e(){var e,t,n=ie.documentElement;n.appendChild(c),d.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i=a=l=!1,o=s=!0,v.getComputedStyle&&(t=v.getComputedStyle(d),i="1%"!==(t||{}).top,l="2px"===(t||{}).marginLeft,a="4px"===(t||{width:"4px"}).width,d.style.marginRight="50%",o="4px"===(t||{marginRight:"4px"}).marginRight,(e=d.appendChild(ie.createElement("div"))).style.cssText=d.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",d.style.width="1px",s=!parseFloat((v.getComputedStyle(e)||{}).marginRight),d.removeChild(e)),d.style.display="none",(r=0===d.getClientRects().length)&&(d.style.display="",d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",d.childNodes[0].style.borderCollapse="separate",
3(e=d.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(r=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",r=0===e[0].offsetHeight)),n.removeChild(c)}var i,o,a,r,s,l,c=ie.createElement("div"),d=ie.createElement("div");d.style&&(d.style.cssText="float:left;opacity:.5",ue.opacity="0.5"===d.style.opacity,ue.cssFloat=!!d.style.cssFloat,d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",ue.clearCloneStyle="content-box"===d.style.backgroundClip,(c=ie.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",d.innerHTML="",c.appendChild(d),ue.boxSizing=""===d.style.boxSizing||""===d.style.MozBoxSizing||""===d.style.WebkitBoxSizing,fe.extend(ue,{reliableHiddenOffsets:function(){return null==i&&e(),r},boxSizingReliable:function(){return null==i&&e(),a},pixelMarginRight:function(){return null==i&&e(),o},pixelPosition:function(){return null==i&&e(),i},reliableMarginRight:function(){return null==i&&e(),s},reliableMarginLeft:function(){return null==i&&e(),l}}))}();var gt,Et,Tt=/^(top|right|bottom|left)$/;v.getComputedStyle?(gt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=v),t.getComputedStyle(e)},Et=function(e,t,n){var i,o,a,r,s=e.style;return""!==(r=(n=n||gt(e))?n.getPropertyValue(t)||n[t]:undefined)&&r!==undefined||fe.contains(e.ownerDocument,e)||(r=fe.style(e,t)),n&&!ue.pixelMarginRight()&&ft.test(r)&&ht.test(t)&&(i=s.width,o=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=r,r=n.width,s.width=i,s.minWidth=o,s.maxWidth=a),r===undefined?r:r+""}):pt.currentStyle&&(gt=function(e){return e.currentStyle},Et=function(e,t,n){var i,o,a,r,s=e.style;return null==(r=(n=n||gt(e))?n[t]:undefined)&&s&&s[t]&&(r=s[t]),ft.test(r)&&!Tt.test(t)&&(i=s.left,(a=(o=e.runtimeStyle)&&o.left)&&(o.left=e.currentStyle.left),s.left="fontSize"===t?"1em":r,r=s.pixelLeft+"px",s.left=i,a&&(o.left=a)),r===undefined?r:r+""||"auto"});var Ct=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/i,Ot=/^(none|table(?!-c[ea]).+)/,Dt=new RegExp("^("+Pe+")(.*)$","i"),vt={position:"absolute",visibility:"hidden",display:"block"},bt={letterSpacing:"0",fontWeight:"400"},Rt=["Webkit","O","Moz","ms"],yt=ie.createElement("div").style;fe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Et(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":ue.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,r,s=fe.camelCase(t),l=e.style;if(t=fe.cssProps[s]||(fe.cssProps[s]=x(s)||s),r=fe.cssHooks[t]||fe.cssHooks[s],n===undefined)return r&&"get"in r&&(o=r.get(e,!1,i))!==undefined?o:l[t];if("string"===(a=typeof n)&&(o=Me.exec(n))&&o[1]&&(n=u(e,t,o),a="number"),null!=n&&n==n&&("number"===a&&(n+=o&&o[3]||(fe.cssNumber[s]?"":"px")),ue.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(r&&"set"in r&&(n=r.set(e,n,i))===undefined)))try{l[t]=n}catch(c){}}},css:function(e,t,n,i){var o,a,r,s=fe.camelCase(t);return t=fe.cssProps[s]||(fe.cssProps[s]=x(s)||s),(r=fe.cssHooks[t]||fe.cssHooks[s])&&"get"in r&&(a=r.get(e,!0,n)),a===undefined&&(a=Et(e,t,i)),"normal"===a&&t in bt&&(a=bt[t]),""===n||n?(o=parseFloat(a),!0===n||isFinite(o)?o||0:a):a}}),fe.each(["height","width"],function(e,o){fe.cssHooks[o]={get:function(e,t,n){if(t)return Ot.test(fe.css(e,"display"))&&0===e.offsetWidth?mt(e,vt,function(){return F(e,o,n)}):F(e,o,n)},set:function(e,t,n){var i=n&&gt(e);return A(e,t,n?L(e,o,n,ue.boxSizing&&"border-box"===fe.css(e,"boxSizing",!1,i),i):0)}}}),ue.opacity||(fe.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,o=fe.isNumeric(t)?"alpha(opacity="+100*t+")":"",a=i&&i.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===fe.trim(a.replace(Ct,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=Ct.test(a)?a.replace(Ct,o):a+" "+o)}}),fe.cssHooks.marginRight=S(ue.reliableMarginRight,function(e,t){if(t)return mt(e,{display:"inline-block"},Et,[e,"marginRight"])}),fe.cssHooks.marginLeft=S(ue.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Et(e,"marginLeft"))||(fe.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-mt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),fe.each({margin:"",padding:"",border:"Width"},function(o,a){fe.cssHooks[o+a]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[o+$e[t]+a]=i[t]||i[t-2]||i[0];return n}},ht.test(o)||(fe.cssHooks[o+a].set=A)}),fe.fn.extend({css:function(e,t){return qe(this,function(e,t,n){var i,o,a={},r=0;if(fe.isArray(t)){for(i=gt(e),o=t.length;r<o;r++)a[t[r]]=fe.css(e,t[r],!1,i);return a}return n!==undefined?fe.style(e,t,n):fe.css(e,t)},e,t,1<arguments.length)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){He(this)?fe(this).show():fe(this).hide()})}}),(fe.Tween=B).prototype={constructor:B,init:function(e,t,n,i,o,a){this.elem=e,this.prop=n,this.easing=o||fe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(fe.cssNumber[n]?"":"px")},cur:function(){var e=B.propHooks[this.prop];return e&&e.get?e.get(this):B.propHooks._default.get(this)},run:function(e){var t,n=B.propHooks[this.prop];return this.options.duration?this.pos=t=fe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=fe.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){fe.fx.step[e.prop]?fe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[fe.cssProps[e.prop]]&&!fe.cssHooks[e.prop]?e.elem[e.prop]=e.now:fe.style(e.elem,e.prop,e.now+e.unit)}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},fe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},fe.fx=B.prototype.init,fe.fx.step={};var _t,Kt,kt,wt,St,xt,Nt,At=/^(?:toggle|show|hide)$/,Lt=/queueHooks$/;fe.Animation=fe.extend(j,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return u(n.elem,e,Me.exec(t),n),n}]},tweener:function(e,t){fe.isFunction(e)?(t=e,e=["*"]):e=e.match(we);for(var n,i=0,o=e.length;i<o;i++)n=e[i],j.tweeners[n]=j.tweeners[n]||[],j.tweeners[n].unshift(t)},prefilters:[H],prefilter:function(e,t){t?j.prefilters.unshift(e):j.prefilters.push(e)}}),fe.speed=function(e,t,n){var i=e&&"object"==typeof e?fe.extend({},e):{complete:n||!n&&t||fe.isFunction(e)&&e,duration:e,easing:n&&t||t&&!fe.isFunction(t)&&t};return i.duration=fe.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in fe.fx.speeds?fe.fx.speeds[i.duration]:fe.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){fe.isFunction(i.old)&&i.old.call(this),i.queue&&fe.dequeue(this,i.queue)},i},fe.fn.extend({fadeTo:function(e,t,n,i){return this.filter(He).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var o=fe.isEmptyObject(t),a=fe.speed(e,n,i),r=function(){var e=j(this,fe.extend({},t),a);(o||fe._data(this,"finish"))&&e.stop(!0)};return r.finish=r,o||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(o,e,a){var r=function(e){var t=e.stop;delete e.stop,t(a)};return"string"!=typeof o&&(a=e,e=o,o=undefined),e&&!1!==o&&this.queue(o||"fx",[]),this.each(function(){var e=!0,t=null!=o&&o+"queueHooks",n=fe.timers,i=fe._data(this);if(t)i[t]&&i[t].stop&&r(i[t]);else for(t in i)i[t]&&i[t].stop&&Lt.test(t)&&r(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=o&&n[t].queue!==o||(n[t].anim.stop(a),e=!1,n.splice(t,1));!e&&a||fe.dequeue(this,o)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var e,t=fe._data(this),n=t[r+"queue"],i=t[r+"queueHooks"],o=fe.timers,a=n?n.length:0;for(t.finish=!0,fe.queue(this,r,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===r&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),fe.each(["toggle","show","hide"],function(e,i){var o=fe.fn[i];fe.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(M(i,!0),e,t,n)}}),fe.each({slideDown:M("show"),slideUp:M("hide"),slideToggle:M("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){fe.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),fe.timers=[],fe.fx.tick=function(){var e,t=fe.timers,n=0;for(_t=fe.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||fe.fx.stop(),_t=undefined},fe.fx.timer=function(e){fe.timers.push(e),e()?fe.fx.start():fe.timers.pop()},fe.fx.interval=13,fe.fx.start=function(){Kt||(Kt=v.setInterval(fe.fx.tick,fe.fx.interval))},fe.fx.stop=function(){v.clearInterval(Kt),Kt=null},fe.fx.speeds={slow:600,fast:200,_default:400},fe.fn.delay=function(i,e){return i=fe.fx&&fe.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=v.setTimeout(e,i);t.stop=function(){v.clearTimeout(n)}})},wt=ie.createElement("input"),St=ie.createElement("div"),xt=ie.createElement("select"),Nt=xt.appendChild(ie.createElement("option")),(St=ie.createElement("div")).setAttribute("className","t"),St.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",kt=St.getElementsByTagName("a")[0],wt.setAttribute("type","checkbox"),St.appendChild(wt),(kt=St.getElementsByTagName("a")[0]).style.cssText="top:1px",ue.getSetAttribute="t"!==St.className,ue.style=/top/.test(kt.getAttribute("style")),ue.hrefNormalized="/a"===kt.getAttribute("href"),ue.checkOn=!!wt.value,ue.optSelected=Nt.selected,ue.enctype=!!ie.createElement("form").enctype,xt.disabled=!0,ue.optDisabled=!Nt.disabled,(wt=ie.createElement("input")).setAttribute("value",""),ue.input=""===wt.getAttribute("value"),wt.value="t",wt.setAttribute("type","radio"),ue.radioValue="t"===wt.value;var Ft=/\r/g,Bt=/[\x20\t\r\n\f]+/g;fe.fn.extend({val:function(n){var i,e,o,t=this[0];return arguments.length?(o=fe.isFunction(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=o?n.call(this,e,fe(this).val()):n)?t="":"number"==typeof t?t+="":fe.isArray(t)&&(t=fe.map(t,function(e){return null==e?"":e+""})),(i=fe.valHooks[this.type]||fe.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&i.set(this,t,"value")!==undefined||(this.value=t))})):t?(i=fe.valHooks[t.type]||fe.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&(e=i.get(t,"value"))!==undefined?e:"string"==typeof(e=t.value)?e.replace(Ft,""):null==e?"":e:void 0}}),fe.extend({valHooks:{option:{get:function(e){var t=fe.find.attr(e,"value");return null!=t?t:fe.trim(fe.text(e)).replace(Bt," ")}},select:{get:function(e){for(var t,n,i=e.options,o=e.selectedIndex,a="select-one"===e.type||o<0,r=a?null:[],s=a?o+1:i.length,l=o<0?s:a?o:0;l<s;l++)if(((n=i[l]).selected||l===o)&&(ue.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!fe.nodeName(n.parentNode,"optgroup"))){if(t=fe(n).val(),a)return t;r.push(t)}return r},set:function(e,t){for(var n,i,o=e.options,a=fe.makeArray(t),r=o.length;r--;)if(i=o[r],-1<fe.inArray(fe.valHooks.option.get(i),a))try{i.selected=n=!0}catch(s){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),o}}}}),fe.each(["radio","checkbox"],function(){fe.valHooks[this]={set:function(e,t){if(fe.isArray(t))return e.checked=-1<fe.inArray(fe(e).val(),t)}},ue.checkOn||(fe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Pt,Mt,$t=fe.expr.attrHandle,Ht=/^(?:checked|selected)$/i,qt=ue.getSetAttribute,jt=ue.input;fe.fn.extend({attr:function(e,t){return qe(this,fe.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){fe.removeAttr(this,e)})}}),fe.extend({attr:function(e,t,n){var i,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof e.getAttribute?fe.prop(e,t,n):(1===a&&fe.isXMLDoc(e)||(t=t.toLowerCase(),o=fe.attrHooks[t]||(fe.expr.match.bool.test(t)?Mt:Pt)),n!==undefined?null===n?void fe.removeAttr(e,t):o&&"set"in o&&(i=o.set(e,n,t))!==undefined?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=fe.find.attr(e,t))?undefined:i)},attrHooks:{type:{set:function(e,t){if(!ue.radioValue&&"radio"===t&&fe.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,o=0,a=t&&t.match(we);if(a&&1===e.nodeType)for(;n=a[o++];)i=fe.propFix[n]||n,fe.expr.match.bool.test(n)?jt&&qt||!Ht.test(n)?e[i]=!1:e[fe.camelCase("default-"+n)]=e[i]=!1:fe.attr(e,n,""),e.removeAttribute(qt?n:i)}}),Mt={set:function(e,t,n){return!1===t?fe.removeAttr(e,n):jt&&qt||!Ht.test(n)?e.setAttribute(!qt&&fe.propFix[n]||n,n):e[fe.camelCase("default-"+n)]=e[n]=!0,n}},fe.each(fe.expr.match.bool.source.match(/\w+/g),function(e,t){var a=$t[t]||fe.find.attr;jt&&qt||!Ht.test(t)?$t[t]=function(e,t,n){var i,o;return n||(o=$t[t],$t[t]=i,i=null!=a(e,t,n)?t.toLowerCase():null,$t[t]=o),i}:$t[t]=function(e,t,n){if(!n)return e[fe.camelCase("default-"+t)]?t.toLowerCase():null}}),jt&&qt||(fe.attrHooks.value={set:function(e,t,n){if(!fe.nodeName(e,"input"))return Pt&&Pt.set(e,t,n);e.defaultValue=t}}),qt||(Pt={set:function(e,t,n){var i=e.getAttributeNode(n);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n))return t}},$t.id=$t.name=$t.coords=function(e,t,n){var i;if(!n)return(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},fe.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:Pt.set},fe.attrHooks.contenteditable={set:function(e,t,n){Pt.set(e,""!==t&&t,n)}},fe.each(["width","height"],function(e,n){fe.attrHooks[n]={set:function(e,t){if(""===t)return e.setAttribute(n,"auto"),t}}})),ue.style||(fe.attrHooks.style={get:function(e){return e.style.cssText||undefined},set:function(e,t){return e.style.cssText=t+""}});var zt=/^(?:input|select|textarea|button|object)$/i,Ut=/^(?:a|area)$/i;fe.fn.extend({prop:function(e,t){return qe(this,fe.prop,e,t,1<arguments.length)},removeProp:function(t){return t=fe.propFix[t]||t,this.each(function(){try{this[t]=undefined,delete this[t]}catch(e){}})}}),fe.extend({prop:function(e,t,n){var i,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&fe.isXMLDoc(e)||(t=fe.propFix[t]||t,o=fe.propHooks[t]),n!==undefined?o&&"set"in o&&(i=o.set(e,n,t))!==undefined?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=fe.find.attr(e,"tabindex");return t?parseInt(t,10):zt.test(e.nodeName)||Ut.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ue.hrefNormalized||fe.each(["href","src"],function(e,t){fe.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),ue.optSelected||(fe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),fe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){fe.propFix[this.toLowerCase()]=this}),ue.enctype||(fe.propFix.enctype="encoding");var Wt=/[\t\r\n\f]/g;fe.fn.extend({addClass:function(t){var e,n,i,o,a,r,s,l=0;if(fe.isFunction(t))return this.each(function(e){fe(this).addClass(t.call(this,e,z(this)))});if("string"==typeof t&&t)for(e=t.match(we)||[];n=this[l++];)if(o=z(n),i=1===n.nodeType&&(" "+o+" ").replace(Wt," ")){for(r=0;a=e[r++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");o!==(s=fe.trim(i))&&fe.attr(n,"class",s)}return this},removeClass:function(t){var e,n,i,o,a,r,s,l=0;if(fe.isFunction(t))return this.each(function(e){fe(this).removeClass(t.call(this,e,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(we)||[];n=this[l++];)if(o=z(n),i=1===n.nodeType&&(" "+o+" ").replace(Wt," ")){for(r=0;a=e[r++];)for(;-1<i.indexOf(" "+a+" ");)i=i.replace(" "+a+" "," ");o!==(s=fe.trim(i))&&fe.attr(n,"class",s)}return this},toggleClass:function(o,t){var a=typeof o;return"boolean"==typeof t&&"string"===a?t?this.addClass(o):this.removeClass(o):fe.isFunction(o)?this.each(function(e){fe(this).toggleClass(o.call(this,e,z(this),t),t)}):this.each(function(){var e,t,n,i;if("string"===a)for(t=0,n=fe(this),i=o.match(we)||[];e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else o!==undefined&&"boolean"!==a||((e=z(this))&&fe._data(this,"__className__",e),fe.attr(this,"class",e||!1===o?"":fe._data(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+z(n)+" ").replace(Wt," ").indexOf(t))return!0;return!1}}),fe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){fe.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),fe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Vt=v.location,Gt=fe.now(),Xt=/\?/,Yt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;fe.parseJSON=function(e){if(v.JSON&&v.JSON.parse)return v.JSON.parse(e+"");var o,a=null,t=fe.trim(e+"");return t&&!fe.trim(t.replace(Yt,function(e,t,n,i){return o&&t&&(a=0),0===a?e:(o=n||t,a+=!i-!n,"")}))?Function("return "+t)():fe.error("Invalid JSON: "+e)},fe.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{v.DOMParser?t=(new v.DOMParser).parseFromString(e,"text/xml"):((t=new v.ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(n){t=undefined}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||fe.error("Invalid XML: "+e),t};var Jt=/#.*$/,Zt=/([?&])_=[^&]*/,Qt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,en=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,tn=/^(?:GET|HEAD)$/,nn=/^\/\//,on=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,an={},rn={},sn="*/".concat("*"),ln=Vt.href,cn=on.exec(ln.toLowerCase())||[];fe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ln,type:"GET",isLocal:en.test(cn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":sn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":fe.parseJSON,"text xml":fe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?V(V(e,fe.ajaxSettings),t):V(fe.ajaxSettings,e)},ajaxPrefilter:U(an),ajaxTransport:U(rn),ajax:function(e,t){function n(e,t,n,i){var o,a,r,s,l,c=t;2!==O&&(O=2,h&&v.clearTimeout(h),m=undefined,u=i||"",D.readyState=0<e?4:0,o=200<=e&&e<300||304===e,n&&(s=G(p,D,n)),s=X(p,s,D,o),o?(p.ifModified&&((l=D.getResponseHeader("Last-Modified"))&&(fe.lastModified[d]=l),(l=D.getResponseHeader("etag"))&&(fe.etag[d]=l)),204===e||"HEAD"===p.type?c="nocontent":304===e?c="notmodified":(c=s.state,a=s.data,o=!(r=s.error))):(r=c,!e&&c||(c="error",e<0&&(e=0))),D.status=e,D.statusText=(t||c)+"",o?T.resolveWith(g,[a,c,D]):T.rejectWith(g,[D,c,r]),D.statusCode(I),I=undefined,f&&E.trigger(o?"ajaxSuccess":"ajaxError",[D,p,o?a:r]),C.fireWith(g,[D,c]),f&&(E.trigger("ajaxComplete",[D,p]),--fe.active||fe.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=undefined),t=t||{};var i,o,d,u,h,f,m,a,p=fe.ajaxSetup({},t),g=p.context||p,E=p.context&&(g.nodeType||g.jquery)?fe(g):fe.event,T=fe.Deferred(),C=fe.Callbacks("once memory"),I=p.statusCode||{},r={},s={},O=0,l="canceled",D={readyState:0,getResponseHeader:function(e){var t;if(2===O){if(!a)for(a={};t=Qt.exec(u);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===O?u:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return O||(e=s[n]=s[n]||e,r[e]=t),this},overrideMimeType:function(e){return O||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(O<2)for(t in e)I[t]=[I[t],e[t]];else D.always(e[D.status]);return this},abort:function(e){var t=e||l;return m&&m.abort(t),n(0,t),this}};if(T.promise(D).complete=C.add,D.success=D.done,D.error=D.fail,p.url=((e||p.url||ln)+"").replace(Jt,"").replace(nn,cn[1]+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=fe.trim(p.dataType||"*").toLowerCase().match(we)||[""],null==p.crossDomain&&(i=on.exec(p.url.toLowerCase()),p.crossDomain=!(!i||i[1]===cn[1]&&i[2]===cn[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(cn[3]||("http:"===cn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=fe.param(p.data,p.traditional)),W(an,p,t,D),2===O)return D;for(o in(f=fe.event&&p.global)&&0==fe.active++&&fe.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!tn.test(p.type),d=p.url,p.hasContent||(p.data&&(d=p.url+=(Xt.test(d)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=Zt.test(d)?d.replace(Zt,"$1_="+Gt++):d+(Xt.test(d)?"&":"?")+"_="+Gt++)),p.ifModified&&(fe.lastModified[d]&&D.setRequestHeader("If-Modified-Since",fe.lastModified[d]),fe.etag[d]&&D.setRequestHeader("If-None-Match",fe.etag[d])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&D.setRequestHeader("Content-Type",p.contentType),D.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+sn+"; q=0.01":""):p.accepts["*"]),p.headers)D.setRequestHeader(o,p.headers[o]);if(p.beforeSend&&(!1===p.beforeSend.call(g,D,p)||2===O))return D.abort();for(o in l="abort",{success:1,error:1,complete:1})D[o](p[o]);if(m=W(rn,p,t,D)){if(D.readyState=1,f&&E.trigger("ajaxSend",[D,p]),2===O)return D;p.async&&0<p.timeout&&(h=v.setTimeout(function(){D.abort("timeout")},p.timeout));try{O=1,m.send(r,n)}catch(c){if(!(O<2))throw c;n(-1,c)}}else n(-1,"No Transport");return D},getJSON:function(e,t,n){return fe.get(e,t,n,"json")},getScript:function(e,t){return fe.get(e,undefined,t,"script")}}),fe.each(["get","post"],function(e,o){fe[o]=function(e,t,n,i){return fe.isFunction(t)&&(i=i||n,n=t,t=undefined),fe.ajax(fe.extend({url:e,type:o,dataType:i,data:t,success:n},fe.isPlainObject(e)&&e))}}),fe._evalUrl=function(e){return fe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},fe.fn.extend({wrapAll:function(t){if(fe.isFunction(t))return this.each(function(e){fe(this).wrapAll(t.call(this,e))});if(this[0]){var e=fe(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(n){return fe.isFunction(n)?this.each(function(e){fe(this).wrapInner(n.call(this,e))}):this.each(function(){var e=fe(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=fe.isFunction(t);return this.each(function(e){fe(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){fe.nodeName(this,"body")||fe(this).replaceWith(this.childNodes)}).end()}}),fe.expr.filters.hidden=function(e){return ue.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:J(e)},fe.expr.filters.visible=function(e){return!fe.expr.filters.hidden(e)};var dn=/%20/g,un=/\[\]$/,hn=/\r?\n/g,fn=/^(?:submit|button|image|reset|file)$/i,mn=/^(?:input|select|textarea|keygen)/i;fe.param=function(e,t){var n,i=[],o=function(e,t){t=fe.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===undefined&&(t=fe.ajaxSettings&&fe.ajaxSettings.traditional),fe.isArray(e)||e.jquery&&!fe.isPlainObject(e))fe.each(e,function(){o(this.name,this.value)});else for(n in e)Z(n,e[n],t,o);return i.join("&").replace(dn,"+")},fe.fn.extend({serialize:function(){return fe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=fe.prop(this,"elements");return e?fe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!fe(this).is(":disabled")&&mn.test(this.nodeName)&&!fn.test(e)&&(this.checked||!je.test(e))}).map(function(e,t){var n=fe(this).val();return null==n?null:fe.isArray(n)?fe.map(n,function(e){return{name:t.name,value:e.replace(hn,"\r\n")}}):{name:t.name,value:n.replace(hn,"\r\n")}}).get()}}),fe.ajaxSettings.xhr=v.ActiveXObject!==undefined?function(){return this.isLocal?ee():8<ie.documentMode?Q():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Q()||ee()}:Q;var pn=0,gn={},En=fe.ajaxSettings.xhr();v.attachEvent&&v.attachEvent("onunload",function(){for(var e in gn)gn[e](undefined,!0)}),ue.cors=!!En&&"withCredentials"in En,(En=ue.ajax=!!En)&&fe.ajaxTransport(function(c){var d;if(!c.crossDomain||ue.cors)return{send:function(e,r){var t,s=c.xhr(),l=++pn;if(s.open(c.type,c.url,c.async,c.username,c.password),c.xhrFields)for(t in c.xhrFields)s[t]=c.xhrFields[t];for(t in c.mimeType&&s.overrideMimeType&&s.overrideMimeType(c.mimeType),c.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)e[t]!==undefined&&s.setRequestHeader(t,e[t]+"");s.send(c.hasContent&&c.data||null),d=function(e,t){var n,i,o;if(d&&(t||4===s.readyState))if(delete gn[l],d=undefined,s.onreadystatechange=fe.noop,t)4!==s.readyState&&s.abort();else{o={},n=s.status,"string"==typeof s.responseText&&(o.text=s.responseText);try{i=s.statusText}catch(a){i=""}n||!c.isLocal||c.crossDomain?1223===n&&(n=204):n=o.text?200:404}o&&r(n,i,o,s.getAllResponseHeaders())},c.async?4===s.readyState?v.setTimeout(d):s.onreadystatechange=gn[l]=d:d()},abort:function(){d&&d(undefined,!0)}}}),fe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return fe.globalEval(e),e}}}),fe.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),fe.ajaxTransport("script",function(t){if(t.crossDomain){var i,o=ie.head||fe("head")[0]||ie.documentElement;return{send:function(e,n){(i=ie.createElement("script")).async=!0,t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(e,t){(t||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,t||n(200,"success"))},o.insertBefore(i,o.firstChild)},abort:function(){i&&i.onload(undefined,!0)}}}});var Tn=[],Cn=/(=)\?(?=&|$)|\?\?/;fe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Tn.pop()||fe.expando+"_"+Gt++;return this[e]=!0,e}}),fe.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,a,r=!1!==e.jsonp&&(Cn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Cn.test(e.data)&&"data");if(r||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=fe.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(Cn,"$1"+i):!1!==e.jsonp&&(e.url+=(Xt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||fe.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=v[i],v[i]=function(){a=arguments},n.always(function(){o===undefined?fe(v).removeProp(i):v[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Tn.push(i)),a&&fe.isFunction(o)&&o(a[0]),a=o=undefined}),"script"}),fe.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||ie;var i=De.exec(e),o=!n&&[];return i?[t.createElement(i[1])]:(i=p([e],t,o),o&&o.length&&fe(o).remove(),fe.merge([],i.childNodes))};var In=fe.fn.load;fe.fn.load=function(e,t,n){if("string"!=typeof e&&In)return In.apply(this,arguments);var i,o,a,r=this,s=e.indexOf(" ");return-1<s&&(i=fe.trim(e.slice(s,e.length)),e=e.slice(0,s)),fe.isFunction(t)?(n=t,t=undefined):t&&"object"==typeof t&&(o="POST"),0<r.length&&fe.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){a=arguments,r.html(i?fe("<div>").append(fe.parseHTML(e)).find(i):e)}).always(n&&function(e,t){r.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},fe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){fe.fn[t]=function(e){return this.on(t,e)}}),fe.expr.filters.animated=function(t){return fe.grep(fe.timers,function(e){return t===e.elem}).length},fe.offset={setOffset:function(e,t,n){var i,o,a,r,s,l,c=fe.css(e,"position"),d=fe(e),u={};"static"===c&&(e.style.position="relative"),s=d.offset(),a=fe.css(e,"top"),l=fe.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<fe.inArray("auto",[a,l])?(r=(i=d.position()).top,o=i.left):(r=parseFloat(a)||0,o=parseFloat(l)||0),fe.isFunction(t)&&(t=t.call(e,n,fe.extend({},s))),null!=t.top&&(u.top=t.top-s.top+r),null!=t.left&&(u.left=t.left-s.left+o),"using"in t?t.using.call(e,u):d.css(u)}},fe.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){fe.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},o=this[0],a=o&&o.ownerDocument;return a?(e=a.documentElement,fe.contains(e,o)?("undefined"!=typeof o.getBoundingClientRect&&(i=o.getBoundingClientRect()),n=te(a),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left
3:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===fe.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),fe.nodeName(e[0],"html")||(n=e.offset()),n.top+=fe.css(e[0],"borderTopWidth",!0),n.left+=fe.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-fe.css(i,"marginTop",!0),left:t.left-n.left-fe.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!fe.nodeName(e,"html")&&"static"===fe.css(e,"position");)e=e.offsetParent;return e||pt})}}),fe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var a=/Y/.test(o);fe.fn[t]=function(e){return qe(this,function(e,t,n){var i=te(e);if(n===undefined)return i?o in i?i[o]:i.document.documentElement[t]:e[t];i?i.scrollTo(a?fe(i).scrollLeft():n,a?n:fe(i).scrollTop()):e[t]=n},t,e,arguments.length,null)}}),fe.each(["top","left"],function(e,n){fe.cssHooks[n]=S(ue.pixelPosition,function(e,t){if(t)return t=Et(e,n),ft.test(t)?fe(e).position()[n]+"px":t})}),fe.each({Height:"height",Width:"width"},function(a,r){fe.each({padding:"inner"+a,content:r,"":"outer"+a},function(i,e){fe.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),o=i||(!0===e||!0===t?"margin":"border");return qe(this,function(e,t,n){var i;return fe.isWindow(e)?e.document.documentElement["client"+a]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+a],i["scroll"+a],e.body["offset"+a],i["offset"+a],i["client"+a])):n===undefined?fe.css(e,t,o):fe.style(e,t,n,o)},r,n?e:undefined,n,null)}})}),fe.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),fe.fn.size=function(){return this.length},fe.fn.andSelf=fe.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return fe});var On=v.jQuery,Dn=v.$;return fe.noConflict=function(e){return v.$===fe&&(v.$=Dn),e&&v.jQuery===fe&&(v.jQuery=On),fe},e||(v.jQuery=v.$=fe),fe}),function(d,l){"use strict";var c;d.rails!==l&&d.error("jquery-ujs has already been loaded!");var e=d(document);d.rails=c={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",
4inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return d("meta[name=csrf-token]").attr("content")},csrfParam:function(){return d("meta[name=csrf-param]").attr("content")},CSRFProtection:function(e){var t=c.csrfToken();t&&e.setRequestHeader("X-CSRF-Token",t)},refreshCSRFTokens:function(){d('form input[name="'+c.csrfParam()+'"]').val(c.csrfToken())},fire:function(e,t,n){var i=d.Event(t);return e.trigger(i,n),!1!==i.result},confirm:function(e){return confirm(e)},ajax:function(e){return d.ajax(e)},href:function(e){return e[0].href},isRemote:function(e){return e.data("remote")!==l&&!1!==e.data("remote")},handleRemote:function(i){var e,t,n,o,a,r;if(c.fire(i,"ajax:before")){if(o=i.data("with-credentials")||null,a=i.data("type")||d.ajaxSettings&&d.ajaxSettings.dataType,i.is("form")){e=i.data("ujs:submit-button-formmethod")||i.attr("method"),t=i.data("ujs:submit-button-formaction")||i.attr("action"),n=d(i[0]).serializeArray();var s=i.data("ujs:submit-button");s&&(n.push(s),i.data("ujs:submit-button",null)),i.data("ujs:submit-button-formmethod",null),i.data("ujs:submit-button-formaction",null)}else i.is(c.inputChangeSelector)?(e=i.data("method"),t=i.data("url"),n=i.serialize(),i.data("params")&&(n=n+"&"+i.data("params"))):i.is(c.buttonClickSelector)?(e=i.data("method")||"get",t=i.data("url"),n=i.serialize(),i.data("params")&&(n=n+"&"+i.data("params"))):(e=i.data("method"),t=c.href(i),n=i.data("params")||null);return r={type:e||"GET",data:n,dataType:a,beforeSend:function(e,t){if(t.dataType===l&&e.setRequestHeader("accept","*/*;q=0.5, "+t.accepts.script),!c.fire(i,"ajax:beforeSend",[e,t]))return!1;i.trigger("ajax:send",e)},success:function(e,t,n){i.trigger("ajax:success",[e,t,n])},complete:function(e,t){i.trigger("ajax:complete",[e,t])},error:function(e,t,n){i.trigger("ajax:error",[e,t,n])},crossDomain:c.isCrossDomain(t)},o&&(r.xhrFields={withCredentials:o}),t&&(r.url=t),c.ajax(r)}return!1},isCrossDomain:function(e){var t=document.createElement("a");t.href=location.href;var n=document.createElement("a");try{return n.href=e,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(i){return!0}},handleMethod:function(e){var t=c.href(e),n=e.data("method"),i=e.attr("target"),o=c.csrfToken(),a=c.csrfParam(),r=d('<form method="post" action="'+t+'"></form>'),s='<input name="_method" value="'+n+'" type="hidden" />';a===l||o===l||c.isCrossDomain(t)||(s+='<input name="'+a+'" value="'+o+'" type="hidden" />'),i&&r.attr("target",i),r.hide().append(s).appendTo("body"),r.submit()},formElements:function(e,t){return e.is("form")?d(e[0].elements).filter(t):e.find(t)},disableFormElements:function(e){c.formElements(e,c.disableSelector).each(function(){c.disableFormElement(d(this))})},disableFormElement:function(e){var t,n;t=e.is("button")?"html":"val",(n=e.data("disable-with"))!==l&&(e.data("ujs:enable-with",e[t]()),e[t](n)),e.prop("disabled",!0),e.data("ujs:disabled",!0)},enableFormElements:function(e){c.formElements(e,c.enableSelector).each(function(){c.enableFormElement(d(this))})},enableFormElement:function(e){var t=e.is("button")?"html":"val";e.data("ujs:enable-with")!==l&&(e[t](e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.prop("disabled",!1),e.removeData("ujs:disabled")},allowAction:function(e){var t,n=e.data("confirm"),i=!1;if(!n)return!0;
4if(c.fire(e,"confirm")){try{i=c.confirm(n)}catch(o){(console.error||console.log).call(console,o.stack||o)}t=c.fire(e,"confirm:complete",[i])}return i&&t},blankInputs:function(e,t,n){var i,o,a,r=d(),s=t||"input,textarea",l=e.find(s),c={};return l.each(function(){(i=d(this)).is("input[type=radio]")?(a=i.attr("name"),c[a]||(0===e.find('input[type=radio]:checked[name="'+a+'"]').length&&(o=e.find('input[type=radio][name="'+a+'"]'),r=r.add(o)),c[a]=a)):(i.is("input[type=checkbox],input[type=radio]")?i.is(":checked"):!!i.val())===n&&(r=r.add(i))}),!!r.length&&r},nonBlankInputs:function(e,t){return c.blankInputs(e,t,!0)},stopEverything:function(e){return d(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(e){var t=e.data("disable-with");t!==l&&(e.data("ujs:enable-with",e.html()),e.html(t)),e.bind("click.railsDisable",function(e){return c.stopEverything(e)}),e.data("ujs:disabled",!0)},enableElement:function(e){e.data("ujs:enable-with")!==l&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.unbind("click.railsDisable"),e.removeData("ujs:disabled")}},c.fire(e,"rails:attachBindings")&&(d.ajaxPrefilter(function(e,t,n){e.crossDomain||c.CSRFProtection(n)}),d(window).on("pageshow.rails",function(){d(d.rails.enableSelector).each(function(){var e=d(this);e.data("ujs:disabled")&&d.rails.enableFormElement(e)}),d(d.rails.linkDisableSelector).each(function(){var e=d(this);e.data("ujs:disabled")&&d.rails.enableElement(e)})}),e.on("ajax:complete",c.linkDisableSelector,function(){c.enableElement(d(this))}),e.on("ajax:complete",c.buttonDisableSelector,function(){c.enableFormElement(d(this))}),e.on("click.rails",c.linkClickSelector,function(e){var t=d(this),n=t.data("method"),i=t.data("params"),o=e.metaKey||e.ctrlKey;if(!c.allowAction(t))return c.stopEverything(e);if(!o&&t.is(c.linkDisableSelector)&&c.disableElement(t),c.isRemote(t)){if(o&&(!n||"GET"===n)&&!i)return!0;var a=c.handleRemote(t);return!1===a?c.enableElement(t):a.fail(function(){c.enableElement(t)}),!1}return n?(c.handleMethod(t),!1):void 0}),e.on("click.rails",c.buttonClickSelector,function(e){var t=d(this);if(!c.allowAction(t)||!c.isRemote(t))return c.stopEverything(e);t.is(c.buttonDisableSelector)&&c.disableFormElement(t);var n=c.handleRemote(t);return!1===n?c.enableFormElement(t):n.fail(function(){c.enableFormElement(t)}),!1}),e.on("change.rails",c.inputChangeSelector,function(e){var t=d(this);return c.allowAction(t)&&c.isRemote(t)?(c.handleRemote(t),!1):c.stopEverything(e)}),e.on("submit.rails",c.formSubmitSelector,function(e){var t,n,i=d(this),o=c.isRemote(i);if(!c.allowAction(i))return c.stopEverything(e);if(i.attr("novalidate")===l)if(i.data("ujs:formnovalidate-button")===l){if((t=c.blankInputs(i,c.requiredInputSelector,!1))&&c.fire(i,"ajax:aborted:required",[t]))return c.stopEverything(e)}else i.data("ujs:formnovalidate-button",l);if(o){if(n=c.nonBlankInputs(i,c.fileInputSelector)){setTimeout(function(){c.disableFormElements(i)},13);var a=c.fire(i,"ajax:aborted:file",[n]);return a||setTimeout(function(){c.enableFormElements(i)},13),a}return c.handleRemote(i),!1}setTimeout(function(){c.disableFormElements(i)},13)}),e.on("click.rails",c.formInputClickSelector,function(e){var t=d(this);if(!c.allowAction(t))return c.stopEverything(e);var n=t.attr("name"),i=n?{name:n,value:t.val()}:null,o=t.closest("form");0===o.length&&(o=d("#"+t.attr("form"))),o.data("ujs:submit-button",i),o.data("ujs:formnovalidate-button",t.attr("formnovalidate")),o.data("ujs:submit-button-formaction",t.attr("formaction")),o.data("ujs:submit-button-formmethod",t.attr("formmethod"))}),e.on("ajax:send.rails",c.formSubmitSelector,function(e){this===e.target&&c.disableFormElements(d(this))}),e.on("ajax:complete.rails",c.formSubmitSelector,function(e){this===e.target&&c.enableFormElements(d(this))}),d(function(){c.refreshCSRFTokens()}))}(jQuery),function(c){"use strict";c.ajaxPrefilter(function(e){if(e.iframe)return e.originalURL=e.url,"iframe"}),c.ajaxTransport("iframe",function(e,t){function l(){a.each(function(e,t){var n=c(t);n.data("clone").replaceWith(n)}),n.remove(),i.one("load",function(){i.remove()}),i.attr("src","about:blank")}var n=null,i=null,o="iframe-"+c.now(),a=c(e.files).filter(":file:enabled"),r=null;if(e.dataTypes.shift(),e.data=t.data,a.length)return n=c("<form enctype='multipart/form-data' method='post'></form>").hide().attr({action:e.originalURL,target:o}),"string"==typeof e.data&&0<e.data.length&&c.error("data must not be serialized"),c.each(e.data||{},function(e,t){c.isPlainObject(t)&&(e=t.name,t=t.value),c("<input type='hidden' />").attr({name:e,value:t}).appendTo(n)}),c("<input type='hidden' value='IFrame' name='X-Requested-With' />").appendTo(n),r=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+("*"!==e.dataTypes[0]?", */*; q=0.01":""):e.accepts["*"],c("<input type='hidden' name='X-HTTP-Accept'>").attr("value",r).appendTo(n),a.after(function(){var e=c(this),t=e.clone().prop("disabled",!0);return e.data("clone",t),t}).next(),a.appendTo(n),{send:function(e,s){(i=c("<iframe src='about:blank' name='"+o+"' id='"+o+"' style='display:none'></iframe>")).one("load",function(){i.one("load",function(){var e=this.contentWindow?this.contentWindow.document:this.contentDocument?this.contentDocument:this.document,t=e.documentElement?e.documentElement:e.body,n=t.getElementsByTagName("textarea")[0],i=n&&n.getAttribute("data-type")||null,o=n&&n.getAttribute("data-status")||200,a=n&&n.getAttribute("data-statusText")||"OK",r={html:t.innerHTML,text:i?n.value:t?t.textContent||t.innerText:null};l(),s(o,a,r,i?"Content-Type: "+i:null)}),n[0].submit()}),c("body").append(n,i)},abort:function(){null!==i&&(i.unbind("load").attr("src","about:blank"),l())}}})}(jQuery),function(l){var c;l.remotipart=c={setup:function(n){var o=n.data("ujs:submit-button"),a=l('meta[name="csrf-param"]').attr("content"),r=l('meta[name="csrf-token"]').attr("content"),s=n.find('input[name="'+a+'"]').length;n.one("ajax:beforeSend.remotipart",function(e,t,i){return delete i.beforeSend,i.iframe=!0,i.files=l(l.rails.fileInputSelector,n),i.data=n.serializeArray(),o&&i.data.push(o),i.files.each(function(e,t){for(var n=i.data.length-1;0<=n;n--)i.data[n].name==t.name&&i.data.splice(n,1)}),i.processData=!1,i.dataType===undefined&&(i.dataType="script *"),i.data.push({name:"remotipart_submitted",value:!0}),r&&a&&!s&&i.data.push({name:a,value:r}),l.rails.fire(n,"ajax:remotipartSubmit",[t,i])&&(l.rails.ajax(i).always(function(e){l.rails.fire(n,"ajax:remotipartComplete",[e])}),setTimeout(function(){l.rails.disableFormElements(n)},20)),c.teardown(n),!1}).data("remotipartSubmitted",!0)},teardown:function(e){e.unbind("ajax:beforeSend.remotipart").removeData("remotipartSubmitted")}},l(document).on("ajax:aborted:file","form",function(){var e=l(this);return c.setup(e),l.rails.handleRemote(e),!1})}(jQuery),function(g){var e=0,E=function(){return(new Date).getTime()+e++},T=function(e){return"["+e+"]$1"},C=function(e){return"_"+e+"_$1"},I=function(e,t,n){return e?"function"==typeof e?(t&&console.warn("association-insertion-traversal is ignored, because association-insertion-node is given as a function."),e(n)):"string"==typeof e?t?n[t](e):"this"==e?n:g(e):void 0:n.parent()};
4g(document).on("click",".add_fields",function(e){e.preventDefault(),e.stopPropagation();var t=g(this),n=t.data("association"),i=t.data("associations"),o=t.data("association-insertion-template"),a=t.data("association-insertion-method")||t.data("association-insertion-position")||"before",r=t.data("association-insertion-node"),s=t.data("association-insertion-traversal"),l=parseInt(t.data("count"),10),c=new RegExp("\\[new_"+n+"\\](.*?\\s)","g"),d=new RegExp("_new_"+n+"_(\\w*)","g"),u=E(),h=o.replace(c,T(u)),f=[],m=e;for(h==o&&(c=new RegExp("\\[new_"+i+"\\](.*?\\s)","g"),d=new RegExp("_new_"+i+"_(\\w*)","g"),h=o.replace(c,T(u))),f=[h=h.replace(d,C(u))],l=isNaN(l)?1:Math.max(l,1),l-=1;l;)u=E(),h=(h=o.replace(c,T(u))).replace(d,C(u)),f.push(h),l-=1;var p=I(r,s,t);p&&0!=p.length||console.warn("Couldn't find the element to insert the template. Make sure your `data-association-insertion-*` on `link_to_add_association` is correct."),g.each(f,function(e,t){var n=g(t),i=jQuery.Event("cocoon:before-insert");if(p.trigger(i,[n,m]),!i.isDefaultPrevented()){p[a](n);p.trigger("cocoon:after-insert",[n,m])}})}),g(document).on("click",".remove_fields.dynamic, .remove_fields.existing",function(e){var t=g(this),n=t.data("wrapper-class")||"nested-fields",i=t.closest("."+n),o=i.parent(),a=e;e.preventDefault(),e.stopPropagation();var r=jQuery.Event("cocoon:before-remove");if(o.trigger(r,[i,a]),!r.isDefaultPrevented()){var s=o.data("remove-timeout")||0;setTimeout(function(){t.hasClass("dynamic")?i.detach():(t.prev("input[type=hidden]").val("1"),i.hide()),o.trigger("cocoon:after-remove",[i,a])},s)}}),g(document).on("ready page:load turbolinks:load",function(){g(".remove_fields.existing.destroyed").each(function(){var e=g(this),t=e.data("wrapper-class")||"nested-fields";e.closest("."+t).hide()})})}(jQuery),function(){"undefined"!=typeof window.CKEDITOR_BASEPATH&&null!==window.CKEDITOR_BASEPATH||(window.CKEDITOR_BASEPATH="/assets/ckeditor/")}.call(this),function(){var e,t,n,i,o,a,r,s,l,c,d,u,h,f,m,p,g,E,T,C,I,O,D,v,b,R,y,_,K,k,w,S,x,N;window.CKEDITOR&&window.CKEDITOR.dom||(window.CKEDITOR||(window.CKEDITOR=function(){var o=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,a={timestamp:"IA8F",version:"4.11.1",revision:"c264cac",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:o},status:"unloaded",basePath:function(){var e=window.CKEDITOR_BASEPATH||"";if(!e)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n++){var i=t[n].src.match(o);if(i){e=i[1];break}}if(-1==e.indexOf(":/")&&"//"!=e.slice(0,2)&&(e=0===e.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+e:location.href.match(/^[^\?]*\/(?:)/)[0]+e),!e)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return e}(),getUrl:function(e){return-1==e.indexOf(":/")&&0!==e.indexOf("/")&&(e=this.basePath+e),this.timestamp&&"/"!=e.charAt(e.length-1)&&!/[&?]t=/.test(e)&&(e+=(0<=e.indexOf("?")?"&":"?")+"t="+this.timestamp),e},domReady:function(){function n(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",n,!1),e()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",n),e())}catch(i){}}function e(){for(var e;e=i.shift();)e()}var i=[];return function(e){function t(){try{document.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}n()}if(i.push(e),"complete"===document.readyState&&setTimeout(n,1),1==i.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",n),window.attachEvent("onload",n),e=!1;try{e=!window.frameElement}catch(a){}document.documentElement.doScroll&&e&&t()}}}()},t=window.CKEDITOR_GETURL;if(t){var n=a.getUrl;a.getUrl=function(e){return t.call(a,e)||n.call(a,e)}}return a}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(e){var t,n=CKEDITOR.event.prototype;for(t in n)null==e[t]&&(e[t]=n[t])},CKEDITOR.event.prototype=function(){function d(e){var t=m(this);return t[e]||(t[e]=new n(e))}var c,u,h,f,m=function(e){return(e=e.getPrivate&&e.getPrivate()||e._||(e._={})).events||(e.events={})},n=function(e){this.name=e,this.listeners=[]};return n.prototype={getListenerIndex:function(e){for(var t=0,n=this.listeners;t<n.length;t++)if(n[t].fn==e)return t;return-1}},{define:function(e,t){var n=d.call(this,e);CKEDITOR.tools.extend(n,t,!0)},on:function(o,a,r,s,e){function t(e,t,n,i){return e={name:o,sender:this,editor:e,data:t,listenerData:s,stop:n,cancel:i,removeListener:l},!1!==a.call(r,e)&&e.data}function l(){i.removeListener(o,a)}var n=d.call(this,o);if(n.getListenerIndex(a)<0){n=n.listeners,r||(r=this),isNaN(e)&&(e=10);var i=this;t.fn=a,t.priority=e;for(var c=n.length-1;0<=c;c--)if(n[c].priority<=e)return n.splice(c+1,0,t),{removeListener:l};n.unshift(t)}return{removeListener:l}},once:function(){var e=Array.prototype.slice.call(arguments),t=e[1];return e[1]=function(e){return e.removeListener(),t.apply(this,arguments)},this.on.apply(this,e)},capture:function(){CKEDITOR.event.useCapture=1;var e=this.on.apply(this,arguments);return CKEDITOR.event.useCapture=0,e},fire:(c=0,u=function(){c=1},h=0,f=function(){h=1},function(e,t,n){var i=m(this)[e];e=c;var o=h;
4if(c=h=0,i&&(r=i.listeners).length)for(var a,r=r.slice(0),s=0;s<r.length;s++){if(i.errorProof)try{a=r[s].call(this,n,t,u,f)}catch(l){}else a=r[s].call(this,n,t,u,f);if(!1===a?h=1:void 0!==a&&(t=a),c||h)break}return t=!h&&(void 0===t||t),c=e,h=o,t}),fireOnce:function(e,t,n){return t=this.fire(e,t,n),delete m(this)[e],t},removeListener:function(e,t){var n=m(this)[e];if(n){var i=n.getListenerIndex(t);0<=i&&n.listeners.splice(i,1)}},removeAllListeners:function(){var e,t=m(this);for(e in t)delete t[e]},hasListeners:function(e){return(e=m(this)[e])&&0<e.listeners.length}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]),CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(e,t){return e in{instanceReady:1,loaded:1}&&(this[e]=!0),CKEDITOR.event.prototype.fire.call(this,e,t,this)},CKEDITOR.editor.prototype.fireOnce=function(e,t){return e in{instanceReady:1,loaded:1}&&(this[e]=!0),CKEDITOR.event.prototype.fireOnce.call(this,e,t,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var e=navigator.userAgent.toLowerCase(),t=e.match(/edge[ \/](\d+.?\d*)/),n=-1<e.indexOf("trident/");(n={ie:n=!(!t&&!n),edge:!!t,webkit:!n&&-1<e.indexOf(" applewebkit/"),air:-1<e.indexOf(" adobeair/"),mac:-1<e.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||document.documentMode<10),mobile:-1<e.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(e),isCustomDomain:function(){if(!this.ie)return!1;var e=document.domain,t=window.location.hostname;return e!=t&&e!="["+t+"]"},secure:"https:"==location.protocol}).gecko="Gecko"==navigator.product&&!n.webkit&&!n.ie,n.webkit&&(-1<e.indexOf("chrome")?n.chrome=!0:n.safari=!0);var i=0;return n.ie&&(i=t?parseFloat(t[1]):n.quirks||!document.documentMode?parseFloat(e.match(/msie (\d+)/)[1]):document.documentMode,n.ie9Compat=9==i,n.ie8Compat=8==i,n.ie7Compat=7==i,n.ie6Compat=i<7||n.quirks),n.gecko&&(t=e.match(/rv:([\d\.]+)/))&&(i=1e4*(t=t[1].split("."))[0]+100*(t[1]||0)+1*(t[2]||0)),n.air&&(i=parseFloat(e.match(/ adobeair\/(\d+)/)[1])),n.webkit&&(i=parseFloat(e.match(/ applewebkit\/(\d+)/)[1])),n.version=i,n.isCompatible=!(n.ie&&i<7||n.gecko&&i<4e4||n.webkit&&i<534),n.hidpi=2<=window.devicePixelRatio,n.needsBrFiller=n.gecko||n.webkit||n.ie&&10<i,n.needsNbspFiller=n.ie&&i<11,n.cssClass="cke_browser_"+(n.ie?"ie":n.gecko?"gecko":n.webkit?"webkit":"unknown"),n.quirks&&(n.cssClass+=" cke_browser_quirks"),n.ie&&(n.cssClass+=" cke_browser_ie"+(n.quirks?"6 cke_browser_iequirks":n.version)),n.air&&(n.cssClass+=" cke_browser_air"),n.iOS&&(n.cssClass+=" cke_browser_ios"),n.hidpi&&(n.cssClass+=" cke_hidpi"),n}()),"unloaded"==CKEDITOR.status&&(CKEDITOR.event.implementOn(CKEDITOR),CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status)CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var e=document.createElement("script");e.type="text/javascript",e.src=CKEDITOR.basePath+"ckeditor.js",document.getElementsByTagName("head")[0].appendChild(e)}},CKEDITOR.loadFullCoreTimeout=0,CKEDITOR.add=function(e){(this._.pending||(this._.pending=[])).push(e)},CKEDITOR.domReady(function(){var e=CKEDITOR.loadFullCore,t=CKEDITOR.loadFullCoreTimeout;e&&(CKEDITOR.status="basic_ready",e&&e._load?e():t&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1e3*t))}),CKEDITOR.status="basic_loaded"),CKEDITOR.VERBOSITY_WARN=1,CKEDITOR.VERBOSITY_ERROR=2,CKEDITOR.verbosity=CKEDITOR.VERBOSITY_WARN|CKEDITOR.VERBOSITY_ERROR,CKEDITOR.warn=function(e,t){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:e,additionalData:t})},CKEDITOR.error=function(e,t){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",{type:"error",errorCode:e,additionalData:t})},CKEDITOR.on("log",function(e){if(window.console&&window.console.log){var t=console[e.data.type]?e.data.type:"log",n=e.data.errorCode;(e=e.data.additionalData)?console[t]("[CKEDITOR] Error code: "+n+".",e):console[t]("[CKEDITOR] Error code: "+n+"."),console[t]("[CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#"+n)}},null,null,999),CKEDITOR.dom={},function(){function o(e,t,n){this._minInterval=e,this._context=n,this._lastOutput=this._scheduledTimer=0,this._output=CKEDITOR.tools.bind(t,n||{});var i=this;this.input=function(){function e(){i._lastOutput=(new Date).getTime(),i._scheduledTimer=0,i._call()}if(!i._scheduledTimer||!1!==i._reschedule()){var t=(new Date).getTime()-i._lastOutput;t<i._minInterval?i._scheduledTimer=setTimeout(e,i._minInterval-t):e()}}}function e(e,t,n){o.call(this,e,t,n),this._args=[];var i=this;this.input=CKEDITOR.tools.override(this.input,function(e){return function(){i._args=Array.prototype.slice.call(arguments),e.call(this)}})}var n,t,i,a,r,s,l,c,d,u=[],h=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",f=/&/g,m=/>/g,p=/</g,g=/"/g,E=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,T={lt:"<",gt:">",amp:"&",quot:'"',nbsp:"\xa0",shy:"\xad"},C=function(e,t){return"#"==t[0]?String.fromCharCode(parseInt(t.slice(1),10)):T[t]};CKEDITOR.on("reset",function(){u=[]}),CKEDITOR.tools={arrayCompare:function(e,t){if(!e&&!t)return!0;
4if(!e||!t||e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0},getIndex:function(e,t){for(var n=0;n<e.length;++n)if(t(e[n]))return n;return-1},clone:function(e){var t;if(e&&e instanceof Array){t=[];for(var n=0;n<e.length;n++)t[n]=CKEDITOR.tools.clone(e[n]);return t}if(null===e||"object"!=typeof e||e instanceof String||e instanceof Number||e instanceof Boolean||e instanceof Date||e instanceof RegExp||e.nodeType||e.window===e)return e;for(n in t=new e.constructor,e)t[n]=CKEDITOR.tools.clone(e[n]);return t},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},extend:function(e){var t,n,i=arguments.length;"boolean"==typeof(t=arguments[i-1])?i--:"boolean"==typeof(t=arguments[i-2])&&(n=arguments[i-1],i-=2);for(var o=1;o<i;o++){var a,r=arguments[o];for(a in r)!0!==t&&null!=e[a]||(!n||a in n)&&(e[a]=r[a])}return e},prototypedCopy:function(e){var t=function(){};return t.prototype=e,new t},copy:function(e){var t,n={};for(t in e)n[t]=e[t];return n},isArray:function(e){return"[object Array]"==Object.prototype.toString.call(e)},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},cssVendorPrefix:function(e,t,n){return n?h+e+":"+t+";"+e+":"+t:((n={})[e]=t,n[h+e]=t,n)},cssStyleToDomStyle:(c=document.createElement("div").style,d="undefined"!=typeof c.cssFloat?"cssFloat":"undefined"!=typeof c.styleFloat?"styleFloat":"float",function(e){return"float"==e?d:e.replace(/-./g,function(e){return e.substr(1).toUpperCase()})}),buildStyleHtml:function(e){e=[].concat(e);for(var t,n=[],i=0;i<e.length;i++)(t=e[i])&&(/@import|[{}]/.test(t)?n.push("<style>"+t+"</style>"):n.push('<link type="text/css" rel=stylesheet href="'+t+'">'));return n.join("")},htmlEncode:function(e){return null==e?"":String(e).replace(f,"&amp;").replace(m,"&gt;").replace(p,"&lt;")},htmlDecode:function(e){return e.replace(E,C)},htmlEncodeAttr:function(e){return CKEDITOR.tools.htmlEncode(e).replace(g,"&quot;")},htmlDecodeAttr:function(e){return CKEDITOR.tools.htmlDecode(e)},transformPlainTextToHtml:function(e,t){var n=t==CKEDITOR.ENTER_BR,i=(i=this.htmlEncode(e.replace(/\r\n/g,"\n"))).replace(/\t/g,"&nbsp;&nbsp; &nbsp;"),o=t==CKEDITOR.ENTER_P?"p":"div";if(!n){var a=/\n{2}/g;if(a.test(i)){var r="<"+o+">",s="</"+o+">";i=r+i.replace(a,function(){return s+r})+s}}return i=i.replace(/\n/g,"<br>"),n||(i=i.replace(new RegExp("<br>(?=</"+o+">)"),function(e){return CKEDITOR.tools.repeat(e,2)})),(i=i.replace(/^ | $/g,"&nbsp;")).replace(/(>|\s) /g,function(e,t){return t+"&nbsp;"}).replace(/ (?=<)/g,"&nbsp;")},getNextNumber:(l=0,function(){return++l}),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){var n=t(e);return n.prototype=e.prototype,n},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:(s=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,function(e){return e.replace(s,"")}),ltrim:(r=/^[ \t\n\r]+/g,function(e){return e.replace(r,"")}),rtrim:(a=/[ \t\n\r]+$/g,function(e){return e.replace(a,"")}),indexOf:function(e,t){if("function"==typeof t){for(var n=0,i=e.length;n<i;n++)if(t(e[n]))return n}else{if(e.indexOf)return e.indexOf(t);for(n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1},search:function(e,t){var n=CKEDITOR.tools.indexOf(e,t);return 0<=n?e[n]:null},bind:function(e,t){return function(){return e.apply(t,arguments)}},createClass:function(e){var t=e.$,n=e.base,i=e.privates||e._,o=e.proto;if(e=e.statics,!t&&(t=function(){n&&this.base.apply(this,arguments)}),i){var a=t;t=function(){var e,t=this._||(this._={});for(e in i){var n=i[e];t[e]="function"==typeof n?CKEDITOR.tools.bind(n,this):n}a.apply(this,arguments)}}return n&&(t.prototype=this.prototypedCopy(n.prototype),(t.prototype.constructor=t).base=n,t.baseProto=n.prototype,t.prototype.base=function(){this.base=n.prototype.base,n.apply(this,arguments),this.base=arguments.callee}),o&&this.extend(t.prototype,o,!0),e&&this.extend(t,e,!0),t},addFunction:function(e,t){return u.push(function(){return e.apply(t||this,arguments)})-1},removeFunction:function(e){u[e]=null},callFunction:function(e){var t=u[e];
4return t&&t.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:(i=/^-?\d+\.?\d*px$/,function(e){return t=CKEDITOR.tools.trim(e+"")+"px",i.test(t)?t:e||""}),convertToPx:function(e){if(n||(n=CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',CKEDITOR.document),CKEDITOR.document.getBody().append(n)),!/%$/.test(e)){var t=parseFloat(e)<0;return t&&(e=e.replace("-","")),n.setStyle("width",e),e=n.$.clientWidth,t?-e:e}return e},repeat:function(e,t){return Array(t+1).join(e)},tryThese:function(){for(var e,t=0,n=arguments.length;t<n;t++){var i=arguments[t];try{e=i();break}catch(g){}}return e},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(n){return function(){var e=arguments,t=this;window.setTimeout(function(){n.apply(t,e)},0)}},normalizeCssText:function(e,t){var n,i=[],o=CKEDITOR.tools.parseCssText(e,!0,t);for(n in o)i.push(n+":"+o[n]);return i.sort(),i.length?i.join(";")+";":""},convertRgbToHex:function(e){return e.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(e,t,n,i){for(e=[t,n,i],t=0;t<3;t++)e[t]=("0"+parseInt(e[t],10).toString(16)).slice(-2);return"#"+e.join("")})},normalizeHex:function(e){return e.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(e,t,n,i){return 3==(e=t.toLowerCase()).length&&(e=[(e=e.split(""))[0],e[0],e[1],e[1],e[2],e[2]].join("")),"#"+e+i})},parseCssText:function(e,i,t){var o={};return t&&(e=new CKEDITOR.dom.element("span").setAttribute("style",e).getAttribute("style")||""),e&&(e=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(e))),e&&";"!=e&&e.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,t,n){i&&("font-family"==(t=t.toLowerCase())&&(n=n.replace(/\s*,\s*/g,",")),n=CKEDITOR.tools.trim(n)),o[t]=n}),o},writeCssText:function(e,t){var n,i=[];for(n in e)i.push(n+":"+e[n]);return t&&i.sort(),i.join("; ")},objectCompare:function(e,t,n){var i;if(!e&&!t)return!0;if(!e||!t)return!1;for(i in e)if(e[i]!=t[i])return!1;if(!n)for(i in t)if(e[i]!=t[i])return!1;return!0},objectKeys:function(e){var t,n=[];for(t in e)n.push(t);return n},convertArrayToObject:function(e,t){var n={};1==arguments.length&&(t=!0);for(var i=0,o=e.length;i<o;++i)n[e[i]]=t;return n},fixDomain:function(){for(var e;;)try{e=window.parent.document.domain;break}catch(u){if(!(e=e?e.replace(/.+?(?:\.|$)/,""):document.domain))break;document.domain=e}return!!e},eventsBuffer:function(e,t,n){return new this.buffers.event(e,t,n)},enableHtml5Elements:function(e,t){for(var n,i="abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video".split(" "),o=i.length;o--;)n=e.createElement(i[o]),t&&e.appendChild(n)},checkIfAnyArrayItemMatches:function(e,t){for(var n=0,i=e.length;n<i;++n)if(e[n].match(t))return!0;return!1},checkIfAnyObjectPropertyMatches:function(e,t){for(var n in e)if(n.match(t))return!0;return!1},keystrokeToString:function(e,t){var n=this.keystrokeToArray(e,t);return n.display=n.display.join("+"),n.aria=n.aria.join("+"),n},keystrokeToArray:function(e,t){var n=16711680&t,i=65535&t,o=CKEDITOR.env.mac,a=[],r=[];return n&CKEDITOR.CTRL&&(a.push(o?"\u2318":e[17]),r.push(o?e[224]:e[17])),n&CKEDITOR.ALT&&(a.push(o?"\u2325":e[18]),r.push(e[18])),n&CKEDITOR.SH
4IFT&&(a.push(o?"\u21e7":e[16]),r.push(e[16])),i&&(e[i]?(a.push(e[i]),r.push(e[i])):(a.push(String.fromCharCode(i)),r.push(String.fromCharCode(i)))),{display:a,aria:r}},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==",getCookie:function(e){e=e.toLowerCase();for(var t,n=document.cookie.split(";"),i=0;i<n.length;i++)if(t=n[i].split("="),decodeURIComponent(CKEDITOR.tools.trim(t[0]).toLowerCase())===e)return decodeURIComponent(1<t.length?t[1]:"");return null},setCookie:function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/"},getCsrfToken:function(){if(!(e=CKEDITOR.tools.getCookie("ckCsrfToken"))||40!=e.length){var e=[],t="";if(window.crypto&&window.crypto.getRandomValues)e=new Uint8Array(40),window.crypto.getRandomValues(e);else for(var n=0;n<40;n++)e.push(Math.floor(256*Math.random()));for(n=0;n<e.length;n++){var i="abcdefghijklmnopqrstuvwxyz0123456789".charAt(e[n]%36);t=t+(.5<Math.random()?i.toUpperCase():i)}e=t,CKEDITOR.tools.setCookie("ckCsrfToken",e)}return e},escapeCss:function(e){return e?window.CSS&&CSS.escape?CSS.escape(e):isNaN(parseInt(e.charAt(0),10))?e:"\\3"+e.charAt(0)+" "+e.substring(1,e.length):""},getMouseButton:function(e){var t=(e=e.data)&&e.$;return!(!e||!t)&&(CKEDITOR.env.ie&&CKEDITOR.env.version<9?4===t.button?CKEDITOR.MOUSE_BUTTON_MIDDLE:1===t.button?CKEDITOR.MOUSE_BUTTON_LEFT:CKEDITOR.MOUSE_BUTTON_RIGHT:t.button)},convertHexStringToBytes:function(e){var t,n=[],i=e.length/2;for(t=0;t<i;t++)n.push(parseInt(e.substr(2*t,2),16));return n},convertBytesToBase64:function(e){var t,n="",i=e.length;for(t=0;t<i;t+=3){var o,a=e.slice(t,t+3),r=a.length,s=[];if(r<3)for(o=r;o<3;o++)a[o]=0;for(s[0]=(252&a[0])>>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++)n=o<=r?n+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(s[o]):n+"="}return n},style:{parse:{_colors:{aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",
5darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},_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*(?
5:,\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){function t(e){n.top=i[e[0]],n.right=i[e[1]],n.bottom=i[e[2]],n.left=i[e[3]]}var n={},i=e.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset)/g)||["0px"];switch(i.length){case 1:t([0,0,0,0]);break;case 2:t([0,1,0,1]);break;case 3:t([0,1,2,1]);break;case 4:t([0,1,2,3])}return n},border:function(e){var t={},n=e.split(/\s+/g);return(e=CKEDITOR.tools.style.parse._findColor(e)).length&&(t.color=e[0]),CKEDITOR.tools.array.forEach(n,function(e){t.style||-1===CKEDITOR.tools.indexOf(CKEDITOR.tools.style.parse._borderStyle,e)?!t.width&&CKEDITOR.tools.style.parse._widthRegExp.test(e)&&(t.width=e):t.style=e}),t},_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}
5,forEach:function(e,t,n){var i,o=e.length;for(i=0;i<o;i++)t.call(n,e[i],i,e)},map:function(e,t,n){for(var i=[],o=0;o<e.length;o++)i.push(t.call(n,e[o],o,e));return i},reduce:function(e,t,n,i){for(var o=0;o<e.length;o++)n=t.call(i,n,e[o],o,e);return n},every:function(e,t,n){return!e.length||(t=this.filter(e,t,n),e.length===t.length)}},object:{findKey:function(e,t){if("object"!=typeof e)return null;for(var n in e)if(e[n]===t)return n;return null},merge:function(e,t){var n=CKEDITOR.tools,i=n.clone(e),o=n.clone(t);return n.array.forEach(n.objectKeys(o),function(e){i[e]="object"==typeof o[e]&&"object"==typeof i[e]?n.object.merge(i[e],o[e]):o[e]}),i}},getAbsoluteRectPosition:function(e,t){function n(e){if(e){var t=e.getClientRect();i.top+=t.top,i.left+=t.left,"x"in i&&"y"in i&&(i.x+=t.x,i.y+=t.y),n(e.getWindow().getFrame())}}var i=CKEDITOR.tools.copy(t);n(e.getFrame());var o=CKEDITOR.document.getWindow().getScrollPosition();return i.top+=o.y,i.left+=o.x,"x"in i&&"y"in i&&(i.y+=o.y,i.x+=o.x),i.right=i.left+i.width,i.bottom=i.top+i.height,i}},o.prototype={reset:function(){this._lastOutput=0,this._clearTimer()},_reschedule:function(){return!1},_call:function(){this._output()},_clearTimer:function(){this._scheduledTimer&&clearTimeout(this._scheduledTimer),this._scheduledTimer=0}},e.prototype=CKEDITOR.tools.prototypedCopy(o.prototype),e.prototype._reschedule=function(){this._scheduledTimer&&this._clearTimer()},e.prototype._call=function(){this._output.apply(this._context,this._args)},CKEDITOR.tools.buffers={},CKEDITOR.tools.buffers.event=o,CKEDITOR.tools.buffers.throttle=e,CKEDITOR.tools.array.indexOf=CKEDITOR.tools.indexOf,CKEDITOR.tools.array.isArray=CKEDITOR.tools.isArray,CKEDITOR.MOUSE_BUTTON_LEFT=0,CKEDITOR.MOUSE_BUTTON_MIDDLE=1,CKEDITOR.MOUSE_BUTTON_RIGHT=2}(),CKEDITOR.dtd=(e=CKEDITOR.tools.extend,t=function(e){for(var t=CKEDITOR.tools.clone(e),n=1;n<arguments.length;n++)for(var i in arguments[n])delete t[i];return t},i={},o={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,main:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},a={command:1,link:1,meta:1,noscript:1,script:1,style:1},r={},l={center:1,dir:1,noframes:1},e(n={},{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},s={"#":1},{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1}),e(i,o,n,l),e(t={a:t(n,{a:1,button:1}),abbr:n,address:i,area:r,article:i,aside:i,audio:e({source:1,track:1},i),b:n,base:r,bdi:n,bdo:n,blockquote:i,body:i,br:r,button:t(n,{a:1,button:1}),canvas:n,caption:i,cite:n,code:n,col:r,colgroup:{col:1},command:r,datalist:e({option:1},n),dd:i,del:n,details:e({summary:1},i),dfn:n,div:i,dl:{dt:1,dd:1},dt:i,em:n,embed:r,fieldset:e({legend:1},i),figcaption:i,figure:e({figcaption:1},i),footer:i,form:i,h1:n,h2:n,h3:n,h4:n,h5:n,h6:n,head:e({title:1,base:1},a),header:i,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:r,html:e({head:1,body:1},i,a),i:n,iframe:s,img:r,input:r,ins:n,kbd:n,keygen:r,label:n,legend:n,li:i,link:r,main:i,map:i,mark:n,menu:e({li:1},i),meta:r,meter:t(n,{meter:1}),nav:i,noscript:e({link:1,meta:1,style:1},n),object:e({param:1},n),ol:{li:1},optgroup:{option:1},option:s,output:n,p:n,param:r,pre:n,progress:t(n,{progress:1}),q:n,rp:n,rt:n,ruby:e({rp:1,rt:1},n),s:n,samp:n,script:s,section:i,select:{optgroup:1,option:1},small:n,source:r,span:n,strong:n,style:s,sub:n,summary:e({h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},n),sup:n,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:i,textarea:s,tfoot:{tr:1},th:i,thead:{tr:1},time:t(n,{time:1}),title:s,tr:{th:1,td:1},track:r,u:n,ul:{li:1},"var":n,video:e({source:1,track:1},i),wbr:r,acronym:n,applet:e({param:1},i),basefont:r,big:n,center:i,dialog:r,dir:{li:1},font:n,isindex:r,noframes:i,strike:n,tt:n},{$block:e({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},o,l),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,main:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1}
5,$inline:n,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:e({body:1,head:1,html:1},t.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,time:1,tt:1,u:1,"var":1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}}),t),CKEDITOR.dom.event=function(e){this.$=e},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var e=this.getKey();return(this.$.ctrlKey||this.$.metaKey)&&(e+=CKEDITOR.CTRL),this.$.shiftKey&&(e+=CKEDITOR.SHIFT),this.$.altKey&&(e+=CKEDITOR.ALT),e},preventDefault:function(e){var t=this.$;t.preventDefault?t.preventDefault():t.returnValue=!1,e&&this.stopPropagation()},stopPropagation:function(){var e=this.$;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},getTarget:function(){var e=this.$.target||this.$.srcElement;return e?new CKEDITOR.dom.node(e):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var e=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(e.documentElement.scrollLeft||e.body.scrollLeft),y:this.$.pageY||this.$.clientY+(e.documentElement.scrollTop||e.body.scrollTop)}}}
5,CKEDITOR.CTRL=1114112,CKEDITOR.SHIFT=2228224,CKEDITOR.ALT=4456448,CKEDITOR.EVENT_PHASE_CAPTURING=1,CKEDITOR.EVENT_PHASE_AT_TARGET=2,CKEDITOR.EVENT_PHASE_BUBBLING=3,CKEDITOR.dom.domObject=function(e){e&&(this.$=e)},CKEDITOR.dom.domObject.prototype=(c=function(t,n){return function(e){"undefined"!=typeof CKEDITOR&&t.fire(n,new CKEDITOR.dom.event(e))}},{getPrivate:function(){var e;return(e=this.getCustomData("_"))||this.setCustomData("_",e={}),e},on:function(e){var t=this.getCustomData("_cke_nativeListeners");return t||(t={},this.setCustomData("_cke_nativeListeners",t)),t[e]||(t=t[e]=c(this,e),this.$.addEventListener?this.$.addEventListener(e,t,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+e,t)),CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(e){if(CKEDITOR.event.prototype.removeListener.apply(this,arguments),!this.hasListeners(e)){var t=this.getCustomData("_cke_nativeListeners"),n=t&&t[e];n&&(this.$.removeEventListener?this.$.removeEventListener(e,n,!1):this.$.detachEvent&&this.$.detachEvent("on"+e,n),delete t[e])}},removeAllListeners:function(){var e,t=this.getCustomData("_cke_nativeListeners");for(e in t){var n=t[e];this.$.detachEvent?this.$.detachEvent("on"+e,n):this.$.removeEventListener&&this.$.removeEventListener(e,n,!1),delete t[e]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}),d=CKEDITOR.dom.domObject.prototype,u={},CKEDITOR.on("reset",function(){u={}}),d.equals=function(e){try{return e&&e.$===this.$}catch(t){return!1}},d.setCustomData=function(e,t){var n=this.getUniqueId();return(u[n]||(u[n]={}))[e]=t,this},d.getCustomData=function(e){var t=this.$["data-cke-expando"];return(t=t&&u[t])&&e in t?t[e]:null},d.removeCustomData=function(e){var t,n,i;return(t=(t=this.$["data-cke-expando"])&&u[t])&&(n=t[e],i=e in t,delete t[e]),i?n:null},d.clearCustomData=function(){this.removeAllListeners();var e=this.$["data-cke-expando"];e&&delete u[e]},d.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())},CKEDITOR.event.implementOn(d),CKEDITOR.dom.node=function(e){return e?new CKEDITOR.dom[e.nodeType==CKEDITOR.NODE_DOCUMENT?"document":e.nodeType==CKEDITOR.NODE_ELEMENT?"element":e.nodeType==CKEDITOR.NODE_TEXT?"text":e.nodeType==CKEDITOR.NODE_COMMENT?"comment":e.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](e):this},CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=3,CKEDITOR.NODE_COMMENT=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,CKEDITOR.POSITION_IDENTICAL=0,CKEDITOR.POSITION_DISCONNECTED=1,CKEDITOR.POSITION_FOLLOWING=2,CKEDITOR.POSITION_PRECEDING=4,CKEDITOR.POSITION_IS_CONTAINED=8,CKEDITOR.POSITION_CONTAINS=16,CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(e,t){return e.append(this,t),e},clone:function(n,i){function o(e){if(e["data-cke-expando"]&&(e["data-cke-expando"]=!1),(e.nodeType==CKEDITOR.NODE_ELEMENT||e.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&(i||e.nodeType!=CKEDITOR.NODE_ELEMENT||e.removeAttribute("id",!1),n)){e=e.childNodes;for(var t=0;t<e.length;t++)o(e[t])}}function a(e){if(e.type==CKEDITOR.NODE_ELEMENT||e.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(e.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var t=e.getName();":"==t[0]&&e.renameNode(t.substring(1))}if(n)for(t=0;t<e.getChildCount();t++)a(e.getChild(t))}}var e=this.$.cloneNode(n);return o(e),e=new CKEDITOR.dom.node(e),CKEDITOR.env.ie&&CKEDITOR.env.version<9&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&a(e),e},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(e){return e.$.parentNode.insertBefore(this.$,e.$.nextSibling),e},insertBefore:function(e){return e.$.parentNode.insertBefore(this.$,e.$),e},insertBeforeMe:function(e){return this.$.parentNode.insertBefore(e.$,this.$),e},getAddress:function(e){for(var t=[],n=this.getDocument().$.documentElement,i=this.$;i&&i!=n;){var o=i.parentNode;o&&t.unshift(this.getIndex.call({$:i},e)),i=o}return t},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(e){function i(e,t){var n=t?e.nextSibling:e.previousSibling;return n&&n.nodeType==CKEDITOR.NODE_TEXT?o(n)?i(n,t):n:null}function o(e){return!e.nodeValue||e.nodeValue==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE}var t,n=this.$,a=-1;if(!this.$.parentNode||e&&n.nodeType==CKEDITOR.NODE_TEXT&&o(n)&&!i(n)&&!i(n,!0))return-1;for(;e&&n!=this.$&&n.nodeType==CKEDITOR.NODE_TEXT&&(t||o(n))||(a++,t=n.nodeType==CKEDITOR.NODE_TEXT),n=n.previousSibling;);return a},getNextSourceNode:function(e,t,n){if(n&&!n.call){var i=n;n=function(e){return!e.equals(i)}}var o;
vendor: 11,065 bytes, line 5
5if(!(e=!e&&this.getFirst&&this.getFirst())){if(this.type==CKEDITOR.NODE_ELEMENT&&n&&!1===n(this,!0))return null;e=this.getNext()}for(;!e&&(o=(o||this).getParent());){if(n&&!1===n(o,!0))return null;e=o.getNext()}return!e||n&&!1===n(e)?null:t&&t!=e.type?e.getNextSourceNode(!1,t,n):e},getPreviousSourceNode:function(e,t,n){if(n&&!n.call){var i=n;n=function(e){return!e.equals(i)}}var o;if(!(e=!e&&this.getLast&&this.getLast())){if(this.type==CKEDITOR.NODE_ELEMENT&&n&&!1===n(this,!0))return null;e=this.getPrevious()}for(;!e&&(o=(o||this).getParent());){if(n&&!1===n(o,!0))return null;e=o.getPrevious()}return!e||n&&!1===n(e)?null:t&&e.type!=t?e.getPreviousSourceNode(!1,t,n):e},getPrevious:function(e){for(var t,n=this.$;(t=(n=n.previousSibling)&&10!=n.nodeType&&new CKEDITOR.dom.node(n))&&e&&!e(t););return t},getNext:function(e){for(var t,n=this.$;(t=(n=n.nextSibling)&&new CKEDITOR.dom.node(n))&&e&&!e(t););return t},getParent:function(e){var t=this.$.parentNode;return t&&(t.nodeType==CKEDITOR.NODE_ELEMENT||e&&t.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(t):null},getParents:function(e){for(var t=this,n=[];n[e?"push":"unshift"](t),t=t.getParent(););return n},getCommonAncestor:function(e){if(e.equals(this))return this;if(e.contains&&e.contains(this))return e;var t=this.contains?this:this.getParent();do{if(t.contains(e))return t}while(t=t.getParent());return null},getPosition:function(e){var t=this.$,n=e.$;if(t.compareDocumentPosition)return t.compareDocumentPosition(n);if(t==n)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&e.type==CKEDITOR.NODE_ELEMENT){if(t.contains){if(t.contains(n))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(n.contains(t))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in t)return t.sourceIndex<0||n.sourceIndex<0?CKEDITOR.POSITION_DISCONNECTED:t.sourceIndex<n.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}t=this.getAddress(),e=e.getAddress();n=Math.min(t.length,e.length);for(var i=0;i<n;i++)if(t[i]!=e[i])return t[i]<e[i]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return t.length<e.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(t,e){var n,i,o=this.$;for(e||(o=o.parentNode),"function"==typeof t?(i=!0,n=t):(i=!1,n=function(e){return e="string"==typeof e.nodeName?e.nodeName.toLowerCase():"","string"==typeof t?e==t:e in t});o;){if(n(i?new CKEDITOR.dom.node(o):o))return new CKEDITOR.dom.node(o);try{o=o.parentNode}catch(a){o=null}}return null},hasAscendant:function(e,t){var n=this.$;for(t||(n=n.parentNode);n;){if(n.nodeName&&n.nodeName.toLowerCase()==e)return!0;n=n.parentNode}return!1},move:function(e,t){e.append(this.remove(),t)},remove:function(e){var t=this.$,n=t.parentNode;if(n){if(e)for(;e=t.firstChild;)n.insertBefore(t.removeChild(e),t);n.removeChild(t)}return this},replace:function(e){this.insertBefore(e),e.remove()},trim:function(){this.ltrim(),this.rtrim()},ltrim:function(){for(var e;this.getFirst&&(e=this.getFirst());){if(e.type==CKEDITOR.NODE_TEXT){var t=CKEDITOR.tools.ltrim(e.getText()),n=e.getLength();if(!t){e.remove();continue}t.length<n&&(e.split(n-t.length),this.$.removeChild(this.$.firstChild))}break}},rtrim:function(){for(var e;this.getLast&&(e=this.getLast());){if(e.type==CKEDITOR.NODE_TEXT){var t=CKEDITOR.tools.rtrim(e.getText()),n=e.getLength();if(!t){e.remove();continue}t.length<n&&(e.split(t.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild))}break}CKEDITOR.env.needsBrFiller&&(e=this.$.lastChild)&&1==e.type&&"br"==e.nodeName.toLowerCase()&&e.parentNode.removeChild(e)},isReadOnly:function(e){var t=this;if(this.type!=CKEDITOR.NODE_ELEMENT&&(t=this.getParent()),CKEDITOR.env.edge&&t&&t.is("textarea","input")&&(e=!0),!e&&t&&"undefined"!=typeof t.$.isContentEditable)return!(t.$.isContentEditable||t.data("cke-editable"));for(;t;){if(t.data("cke-editable"))return!1;if(t.hasAttribute("contenteditable"))return"false"==t.getAttribute("contenteditable");t=t.getParent()}return!0}}),CKEDITOR.dom.window=function(e){CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var e=this.$.document,t="CSS1Compat"==e.compatMode;return{width:(t?e.documentElement.clientWidth:e.body.clientWidth)||0,height:(t?e.documentElement.clientHeight:e.body.clientHeight)||0}},getScrollPosition:function(){var e=this.$;return"pageXOffset"in e?{x:e.pageXOffset||0,y:e.pageYOffset||0}:{x:(e=e.document).documentElement.scrollLeft||e.body.scrollLeft||0,y:e.documentElement.scrollTop||e.body.scrollTop||0}},getFrame:function(){var e=this.$.frameElement;return e?new CKEDITOR.dom.element.get(e):null}}),CKEDITOR.dom.document=function(e){CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(e){if(this.$.createStyleSheet)this.$.createStyleSheet(e);else{var t=new CKEDITOR.dom.element("link");t.setAttributes({rel:"stylesheet",type:"text/css",href:e}),this.getHead().append(t)}},appendStyleText:function(e){if(this.$.createStyleSheet){var t=this.$.createStyleSheet("");t.cssText=e}else{var n=new CKEDITOR.dom.element("style",this);n.append(new CKEDITOR.dom.text(e,this)),this.getHead().append(n)}return t||n.$.sheet},createElement:function(e,t){var n=new CKEDITOR.dom.element(e,this);return t&&(t.attributes&&n.setAttributes(t.attributes),t.styles&&n.setStyles(t.styles)),n},createText:function(e){return new CKEDITOR.dom.text(e,this)},focus:function(){this.getWindow().focus()},getActive:function(){var e;try{e=this.$.activeElement}catch(t){return null}return new CKEDITOR.dom.element(e)},getById:function(e){return(e=this.$.getElementById(e))?new CKEDITOR.dom.element(e):null},getByAddress:function(e,t){for(var n=this.$.documentElement,i=0;n&&i<e.length;i++){var o=e[i];if(t)for(var a=-1,r=0;r<n.childNodes.length;r++){var s=n.childNodes[r];if((!0!==t||3!=s.nodeType||!s.previousSibling||3!=s.previousSibling.nodeType)&&++a==o){n=s;break}}else n=n.childNodes[o]}return n?new CKEDITOR.dom.node(n):null},getElementsByTag:function(e,t){return CKEDITOR.env.ie&&document.documentMode<=8||!t||(e=t+":"+e),new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(e))},getHead:function(){var e=this.$.getElementsByTagName("head")[0];return e?new CKEDITOR.dom.element(e):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(e){this.$.open("text/html","replace"),CKEDITOR.env.ie&&(e=e.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+")();</script>")),this.$.write(e),this.$.close()},find:function(e){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(e))},findOne:function(e){return(e=this.$.querySelector(e))?new CKEDITOR.dom.element(e):null},_getHtml5ShivFrag:function(){var e=this.getCustomData("html5ShivFrag");return e||(e=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(e,!0),this.setCustomData("html5ShivFrag",e)),e}}),CKEDITOR.dom.nodeList=function(e){this.$=e},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(e){return e<0||e>=this.$.length?null:(e=this.$[e])?new CKEDITOR.dom.node(e):null},toArray:function(){return CKEDITOR.tools.array.map(this.$,function(e){return new CKEDITOR.dom.node(e)})}},CKEDITOR.dom.element=function(e,t){"string"==typeof e&&(e=(t?t.$:document).createElement(e)),CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.element.get=function(e){return(e="string"==typeof e?document.getElementById(e)||document.getElementsByName(e)[0]:e)&&(e.$?e:new CKEDITOR.dom.element(e))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(e,t){var n=new CKEDITOR.dom.element("div",t);return n.setHtml(e),n.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(e,t,n,i){var o=t.getCustomData("list_marker_id")||t.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),a=t.getCustomData("list_marker_names")||t.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");return e[o]=t,a[n]=1,t.setCustomData(n,i)},CKEDITOR.dom.element.clearAllMarkers=function(e){for(var t in e)CKEDITOR.dom.element.clearMarkers(e,e[t],1)},CKEDITOR.dom.element.clearMarkers=function(e,t,n){var i,o=t.getCustomData("list_marker_names"),a=t.getCustomData("list_marker_id");for(i in o)t.removeCustomData(i);t.removeCustomData("list_marker_names"),n&&(t.removeCustomData("list_marker_id"),delete e[a])},function(){function n(e,t){return-1<(" "+e+" ").replace(c," ").indexOf(" "+t+" ")}function o(e){var t=!0;return e.$.id||(e.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),t=!1),function(){t||e.removeAttribute("id")}}function i(e,t){var n=CKEDITOR.tools.escapeCss(e.$.id);return"#"+n+" "+t.split(/,\s*/).join(", #"+n+" ")}function a(e){for(var t=0,n=0,i=d[e].length;n<i;n++)t+=parseFloat(this.getComputedStyle(d[e][n])||0,10)||0;return t}var e,r,t,s,l=void 0!==(l=document.createElement("_").classList)&&null!==String(l.add).match(/\[Native code\]/gi),c=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:l?function(e){return this.$.classList.add(e),this}:function(e){var t=this.$.className;return t&&(n(t,e)||(t+=" "+e)),this.$.className=t||e,this},removeClass:l?function(e){var t=this.$;return t.classList.remove(e),t.className||t.removeAttribute("class"),this}:function(e){var t=this.getAttribute("class");return t&&n(t,e)&&((t=t.replace(new RegExp("(?:^|\\s+)"+e+"(?=\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",t):this.removeAttribute("class")),this},hasClass:function(e){return n(this.$.className,e)},append:function(e,t){return"string"==typeof e&&(e=this.getDocument().createElement(e)),t?this.$.insertBefore(e.$,this.$.firstChild):this.$.appendChild(e.$),e},appendHtml:function(e){if(this.$.childNodes.length){var t=new CKEDITOR.dom.element("div",this.getDocument());t.setHtml(e),t.moveChildren(this)}else this.setHtml(e)},appendText:function(e){null!=this.$.text&&CKEDITOR.env.ie&&CKEDITOR.env.version<9?this.$.text+=e:this.append(new CKEDITOR.dom.text(e))},appendBogus:function(e){if(e||CKEDITOR.env.needsBrFiller){for(e=this.getLast();e&&e.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(e.getText());)e=e.getPrevious();e&&e.is&&e.is("br")||(e=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&e.setAttribute("type","_moz"),this.append(e))}},breakParent:function(e,t){var n=new CKEDITOR.dom.range(this.getDocument());n.setStartAfter(this),n.setEndAfter(e);var i,o=n.extractContents(!1,t||!1);
5if(n.insertNode(this.remove()),CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(n=new CKEDITOR.dom.element("div");i=o.getFirst();)i.$.style.backgroundColor&&(i.$.style.backgroundColor=i.$.style.backgroundColor),n.append(i);n.insertAfter(this),n.remove(!0)}else o.insertAfterNode(this)},contains:document.compareDocumentPosition?function(e){return!!(16&this.$.compareDocumentPosition(e.$))}:function(e){var t=this.$;return e.type!=CKEDITOR.NODE_ELEMENT?t.contains(e.getParent().$):t!=e.$&&t.contains(e.$)},focus:function(){function t(){try{this.$.focus()}catch(i){}}return function(e){e?CKEDITOR.tools.setTimeout(t,100,this):t.call(this)}}(),getHtml:function(){var e=this.$.innerHTML;return CKEDITOR.env.ie?e.replace(/<\?[^>]*>/g,""):e},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var e=this.$.ownerDocument.createElement("div");return e.appendChild(this.$.cloneNode(!0)),e.innerHTML},getClientRect:function(e){var t=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());return!t.width&&(t.width=t.right-t.left),!t.height&&(t.height=t.bottom-t.top),e?CKEDITOR.tools.getAbsoluteRectPosition(this.getWindow(),t):t},setHtml:CKEDITOR.env.ie&&CKEDITOR.env.version<9?function(e){try{var t=this.$;if(this.getParent())return t.innerHTML=e;var n=this.getDocument()._getHtml5ShivFrag();return n.appendChild(t),t.innerHTML=e,n.removeChild(t),e}catch(i){for(this.$.innerHTML="",(t=new CKEDITOR.dom.element("body",this.getDocument())).$.innerHTML=e,t=t.getChildren();t.count();)this.append(t.getItem(0));return e}}:function(e){return this.$.innerHTML=e},setText:(s=document.createElement("p"),s.innerHTML="x",s=s.textContent,function(e){this.$[s?"textContent":"innerText"]=e}),getAttribute:(t=function(e){return this.$.getAttribute(e,2)},CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(e){switch(e){case"class":e="className";break;case"http-equiv":e="httpEquiv";break;case"name":return this.$.name;case"tabindex":return 0!==(e=this.$.getAttribute(e,2))&&0===this.$.tabIndex&&(e=null),e;case"checked":return((e=this.$.attributes.getNamedItem(e)).specified?e.nodeValue:this.$.checked)?"checked":null;case"hspace":case"value":return this.$[e];case"style":return this.$.style.cssText;case"contenteditable":case"contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(e,2)}:t),getAttributes:function(e){var t,n={},i=this.$.attributes;for(e=CKEDITOR.tools.isArray(e)?e:[],t=0;t<i.length;t++)-1===CKEDITOR.tools.indexOf(e,i[t].name)&&(n[i[t].name]=i[t].value);return n},getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(e){var t=this.getWindow().$.getComputedStyle(this.$,null);return t?t.getPropertyValue(e):""}:function(e){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(e)]},getDtd:function(){var e=CKEDITOR.dtd[this.getName()];return this.getDtd=function(){return e},e},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:function(){var e=this.$.tabIndex;return 0!==e||CKEDITOR.dtd.$tabIndex[this.getName()]||0===parseInt(this.getAttribute("tabindex"),10)?e:-1},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var e=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&document.documentMode<=8){var t=this.$.scopeName;"HTML"!=t&&(e=t.toLowerCase()+":"+e)}return this.getName=function(){return e},this.getName()},getValue:function(){return this.$.value},getFirst:function(e){var t=this.$.firstChild;return(t=t&&new CKEDITOR.dom.node(t))&&e&&!e(t)&&(t=t.getNext(e)),t},getLast:function(e){var t=this.$.lastChild;return(t=t&&new CKEDITOR.dom.node(t))&&e&&!e(t)&&(t=t.getPrevious(e)),t},getStyle:function(e){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(e)]},is:function(e){var t=this.getName();if("object"==typeof e)return!!e[t];for(var n=0;n<arguments.length;
5n++)if(arguments[n]==t)return!0;return!1},isEditable:function(e){var t=this.getName();return!(this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||CKEDITOR.dtd.$nonEditable[t]||CKEDITOR.dtd.$empty[t]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())&&(!1===e||!(!(e=CKEDITOR.dtd[t]||CKEDITOR.dtd.span)||!e["#"]))},isIdentical:function(e){var t=this.clone(0,1);if(e=e.clone(0,1),t.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]),e.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]),t.$.isEqualNode)return t.$.style.cssText=CKEDITOR.tools.normalizeCssText(t.$.style.cssText),e.$.style.cssText=CKEDITOR.tools.normalizeCssText(e.$.style.cssText),t.$.isEqualNode(e.$);if(t=t.getOuterHtml(),e=e.getOuterHtml(),CKEDITOR.env.ie&&CKEDITOR.env.version<9&&this.is("a")){var n=this.getParent();n.type==CKEDITOR.NODE_ELEMENT&&((n=n.clone()).setHtml(t),t=n.getHtml(),n.setHtml(e),e=n.getHtml())}return t==e},isVisible:function(){var e,t,n=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility");return n&&CKEDITOR.env.webkit&&(!(e=this.getWindow()).equals(CKEDITOR.document.getWindow())&&(t=e.$.frameElement)&&(n=new CKEDITOR.dom.element(t).isVisible())),!!n},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return!1;for(var e=this.getChildren(),t=0,n=e.count();t<n;t++){var i=e.getItem(t);if((i.type!=CKEDITOR.NODE_ELEMENT||!i.data("cke-bookmark"))&&(i.type==CKEDITOR.NODE_ELEMENT&&!i.isEmptyInlineRemoveable()||i.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(i.getText())))return!1}return!0},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var e=this.$.attributes,t=0;t<e.length;t++){var n=e[t];switch(n.nodeName){case"class":if(this.getAttribute("class"))return!0;case"data-cke-expando":continue;default:if(n.specified)return!0}}return!1}:function(){var e=this.$.attributes,t=e.length,n={"data-cke-expando":1,_moz_dirty:1};return 0<t&&(2<t||!n[e[0].nodeName]||2==t&&!n[e[1].nodeName])},hasAttribute:function(){function t(e){var t=this.$.attributes.getNamedItem(e);if("input"==this.getName())switch(e){case"class":return 0<this.$.className.length;case"checked":
6return!!this.$.checked;case"value":return"checkbox"==(e=this.getAttribute("type"))||"radio"==e?"on"!=this.$.value:!!this.$.value}return!!t&&t.specified}return CKEDITOR.env.ie?CKEDITOR.env.version<8?function(e){return"name"==e?!!this.$.name:t.call(this,e)}:t:function(e){return!!this.$.attributes.getNamedItem(e)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(e,t){var n,i=this.$;if(i!=(e=e.$))if(t)for(;n=i.lastChild;)e.insertBefore(i.removeChild(n),e.firstChild);else for(;n=i.firstChild;)e.appendChild(i.removeChild(n))},mergeSiblings:function(){function t(e,t,n){if(t&&t.type==CKEDITOR.NODE_ELEMENT){for(var i=[];t.data("cke-bookmark")||t.isEmptyInlineRemoveable();)if(i.push(t),!(t=n?t.getNext():t.getPrevious())||t.type!=CKEDITOR.NODE_ELEMENT)return;if(e.isIdentical(t)){for(var o=n?e.getLast():e.getFirst();i.length;)i.shift().move(e,!n);t.moveChildren(e,!n),t.remove(),o&&o.type==CKEDITOR.NODE_ELEMENT&&o.mergeSiblings()}}}return function(e){(!1===e||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a"))&&(t(this,this.getNext(),!0),t(this,this.getPrevious()))}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:(r=function(e,t){return this.$.setAttribute(e,t),this},CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(e,t){return"class"==e?this.$.className=t:"style"==e?this.$.style.cssText=t:"tabindex"==e?this.$.tabIndex=t:"checked"==e?this.$.checked=t:"contenteditable"==e?r.call(this,"contentEditable",t):r.apply(this,arguments),this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(e,t){if("src"==e&&t.match(/^http:\/\//))try{r.apply(this,arguments)}catch(n){}else r.apply(this,arguments);return this}:r),setAttributes:function(e){for(var t in e)this.setAttribute(t,e[t]);return this},setValue:function(e){return this.$.value=e,this},removeAttribute:(e=function(e){this.$.removeAttribute(e)},CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(e){"class"==e?e="className":"tabindex"==e?e="tabIndex":"contenteditable"==e&&(e="contentEditable"),this.$.removeAttribute(e)}:e),removeAttributes:function(e){if(CKEDITOR.tools.isArray(e))for(var t=0;t<e.length;t++)this.removeAttribute(e[t]);else for(t in e=e||this.getAttributes())e.hasOwnProperty(t)&&this.removeAttribute(t)},removeStyle:function(e){if((i=this.$.style).removeProperty||"border"!=e&&"margin"!=e&&"padding"!=e)i.removeProperty?i.removeProperty(e):i.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(e)),this.$.style.cssText||this.removeAttribute("style");else{var t,n=["top","left","right","bottom"];"border"==e&&(t=["color","style","width"]);for(var i=[],o=0;o<n.length;o++)if(t)for(var a=0;a<t.length;a++)i.push([e,n[o],t[a]].join("-"));else i.push([e,n[o]].join("-"));for(e=0;e<i.length;e++)this.removeStyle(i[e])}},setStyle:function(e,t){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(e)]=t,this},setStyles:function(e){for(var t in e)this.setStyle(t,e[t]);return this},setOpacity:function(e){CKEDITOR.env.ie&&CKEDITOR.env.version<9?(e=Math.round(100*e),this.setStyle("filter",100<=e?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+e+")")):this.setStyle("opacity",e)},unselectable:function(){if(this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none")),CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var e=this.getElementsByTag("*"),t=0,n=e.count();t<n;t++)e.getItem(t).setAttribute("unselectable","on")}},getPositionedAncestor:function(){for(var e=this;"html"!=e.getName();){if("static"!=e.getComputedStyle("position"))return e;e=e.getParent()}return null},getDocumentPosition:function(e){var t=0,n=0,i=this.getDocument(),o=i.getBody(),a="BackCompat"==i.$.compatMode;if(!document.documentElement.getBoundingClientRect||CKEDITOR.env.ie&&8===CKEDITOR.env.version)for(l=this,c=null;l&&"body"!=l.getName()&&"html"!=l.getName();){for(t+=l.$.offsetLeft-l.$.scrollLeft,n+=l.$.offsetTop-l.$.scrollTop,l.equals(this)||(t+=l.$.clientLeft||0,n+=l.$.clientTop||0);c&&!c.equals(l);)t-=c.$.scrollLeft,n-=c.$.scrollTop,c=c.getParent();l=(r=(c=l).$.offsetParent)?new CKEDITOR.dom.element(r):null}else{var r=this.$.getBoundingClientRect(),s=i.$.documentElement,l=s.clientTop||o.$.clientTop||0,c=s.clientLeft||o.$.clientLeft||0,d=!0;CKEDITOR.env.ie&&(d=i.getDocumentElement().contains(this),i=i.getBody().contains(this),d=a&&i||!a&&d),d&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(t=o.$.scrollLeft||s.scrollLeft,n=o.$.scrollTop||s.scrollTop):(t=(n=a?o.$:s).scrollLeft,n=n.scrollTop),t=r.left+t-c,n=r.top+n-l)}return e&&(r=this.getWindow(),l=e.getWindow(),!r.equals(l)&&r.$.frameElement&&(t+=(e=new CKEDITOR.dom.element(r.$.frameElement).getDocumentPosition(e)).x,n+=e.y)),document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||a||(t+=this.$.clientLeft?1:0,n+=this.$.clientTop?1:0),{x:t,y:n}},scrollIntoView:function(e){var t=this.getParent();
6if(t)do{if((t.$.clientWidth&&t.$.clientWidth<t.$.scrollWidth||t.$.clientHeight&&t.$.clientHeight<t.$.scrollHeight)&&!t.is("body")&&this.scrollIntoParent(t,e,1),t.is("html")){var n=t.getWindow();try{var i=n.$.frameElement;i&&(t=new CKEDITOR.dom.element(i))}catch(o){}}}while(t=t.getParent())},scrollIntoParent:function(n,e,t){function i(e,t){/body|html/.test(n.getName())?n.getWindow().$.scrollBy(e,t):(n.$.scrollLeft+=e,n.$.scrollTop+=t)}function o(e,t){var n={x:0,y:0};if(!e.is(d?"body":"html")){var i=e.$.getBoundingClientRect();n.x=i.left,n.y=i.top}return(i=e.getWindow()).equals(t)||(i=o(CKEDITOR.dom.element.get(i.$.frameElement),t),n.x+=i.x,n.y+=i.y),n}function a(e,t){return parseInt(e.getComputedStyle("margin-"+t)||0,10)||0}var r,s,l,c;!n&&(n=this.getWindow());var d="BackCompat"==(l=n.getDocument()).$.compatMode;n instanceof CKEDITOR.dom.window&&(n=d?l.getBody():l.getDocumentElement()),CKEDITOR.env.webkit&&(l=this.getEditor(!1))&&(l._.previousScrollTop=null),s=o(this,l=n.getWindow());var u=o(n,l),h=this.$.offsetHeight;r=this.$.offsetWidth;var f=n.$.clientHeight,m=n.$.clientWidth;l=s.x-a(this,"left")-u.x||0,c=s.y-a(this,"top")-u.y||0,r=s.x+r+a(this,"right")-(u.x+m)||0,s=s.y+h+a(this,"bottom")-(u.y+f)||0,(c<0||0<s)&&i(0,!0===e?c:!1===e?s:c<0?c:s),t&&(l<0||0<r)&&i(l<0?l:r,0)},setState:function(e,t,n){switch(t=t||"cke",e){case CKEDITOR.TRISTATE_ON:this.addClass(t+"_on"),this.removeClass(t+"_off"),this.removeClass(t+"_disabled"),n&&this.setAttribute("aria-pressed",!0),n&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(t+"_disabled"),this.removeClass(t+"_off"),this.removeClass(t+"_on"),n&&this.setAttribute("aria-disabled",!0),n&&this.removeAttribute("aria-pressed");break;default:this.addClass(t+"_off"),this.removeClass(t+"_on"),this.removeClass(t+"_disabled"),n&&this.removeAttribute("aria-pressed"),n&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var e=this.$;try{e.contentWindow.document}catch(i){e.src=e.src}return e&&new CKEDITOR.dom.document(e.contentWindow.document)},copyAttributes:function(e,t){var n=this.$.attributes;t=t||{};for(var i=0;i<n.length;i++){var o,a=n[i],r=a.nodeName.toLowerCase();r in t||("checked"==r&&(o=this.getAttribute(r))?e.setAttribute(r,o):CKEDITOR.env.ie&&!this.hasAttribute(r)||(null===(o=this.getAttribute(r))&&(o=a.nodeValue),e.setAttribute(r,o)))}""!==this.$.style.cssText&&(e.$.style.cssText=this.$.style.cssText)},renameNode:function(e){if(this.getName()!=e){var t=this.getDocument();e=new CKEDITOR.dom.element(e,t),this.copyAttributes(e),this.moveChildren(e),this.getParent(!0)&&this.$.parentNode.replaceChild(e.$,this.$),e.$["data-cke-expando"]=this.$["data-cke-expando"],this.$=e.$,delete this.getName}},getChild:function(){function n(e,t){var n=e.childNodes;if(0<=t&&t<n.length)return n[t]}return function(e){var t=this.$;if(e.slice)for(e=e.slice();0<e.length&&t;)t=n(t,e.shift());else t=n(t,e);return t?new CKEDITOR.dom.node(t):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){function t(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasClass("cke_enable_context_menu")}this.on("contextmenu",function(e){e.data.getTarget().getAscendant(t,!0)||e.data.preventDefault()})},getDirection:function(e){return e?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(e,t){return e="data-"+e,void 0===t?this.getAttribute(e):(!1===t?this.removeAttribute(e):this.setAttribute(e,t),null)},getEditor:function(e){var t,n,i,o=CKEDITOR.instances;for(t in e=e||void 0===e,o)if((n=o[t]).element.equals(this)&&n.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||!e&&(i=n.editable())&&(i.equals(this)||i.contains(this)))return n;return null},find:function(e){var t=o(this);return e=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(i(this,e))),t(),e},findOne:function(e){var t=o(this);return e=this.$.querySelector(i(this,e)),t(),e?new CKEDITOR.dom.element(e):null},forEach:function(e,t,n){if(!(n||t&&this.type!=t))var i=e(this);if(!1!==i){n=this.getChildren();for(var o=0;o<n.count();
6o++)(i=n.getItem(o)).type==CKEDITOR.NODE_ELEMENT?i.forEach(e,t):t&&i.type!=t||e(i)}}});var d={width:["border-left-width","border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=function(e,t,n){"number"==typeof t&&(!n||CKEDITOR.env.ie&&CKEDITOR.env.quirks||(t-=a.call(this,e)),this.setStyle(e,t+"px"))},CKEDITOR.dom.element.prototype.getSize=function(e,t){var n=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(e)],this.$["client"+CKEDITOR.tools.capitalize(e)])||0;return t&&(n-=a.call(this,e)),n}}(),CKEDITOR.dom.documentFragment=function(e){e=e||CKEDITOR.document,this.$=e.type==CKEDITOR.NODE_DOCUMENT?e.$.createDocumentFragment():e},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(e){(e=e.$).parentNode.insertBefore(this.$,e.nextSibling)},getHtml:function(){var e=new CKEDITOR.dom.element("div");return this.clone(1,1).appendTo(e),e.getHtml().replace(/\s*data-cke-expando=".*?"/g,"")}},!0,{append:1,appendBogus:1,clone:1,getFirst:1,getHtml:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1}),function(){function i(e,t){var n=this.range;if(this._.end)return null;if(!this._.start){if(this._.start=1,n.collapsed)return this.end(),null;n.optimize()}var i,o=n.startContainer;i=n.endContainer;var a,r=n.startOffset,s=n.endOffset,l=this.guard,c=this.type,d=e?"getPreviousSourceNode":"getNextSourceNode";if(!e&&!this._.guardLTR){var u=i.type==CKEDITOR.NODE_ELEMENT?i:i.getParent(),h=i.type==CKEDITOR.NODE_ELEMENT?i.getChild(s):i.getNext();this._.guardLTR=function(e,t){return!(t&&u.equals(e)||h&&e.equals(h)||e.type==CKEDITOR.NODE_ELEMENT&&t&&e.equals(n.root))}}if(e&&!this._.guardRTL){var f=o.type==CKEDITOR.NODE_ELEMENT?o:o.getParent(),m=o.type==CKEDITOR.NODE_ELEMENT?r?o.getChild(r-1):null:o.getPrevious();this._.guardRTL=function(e,t){return!(t&&f.equals(e)||m&&e.equals(m)||e.type==CKEDITOR.NODE_ELEMENT&&t&&e.equals(n.root))}}var p=e?this._.guardRTL:this._.guardLTR;for(a=l?function(e,t){return!1!==p(e,t)&&l(e,t)}:p,this.current?i=this.current[d](!1,c,a):(e?i.type==CKEDITOR.NODE_ELEMENT&&(i=0<s?i.getChild(s-1):!1===a(i,!0)?null:i.getPreviousSourceNode(!0,c,a)):(i=o).type==CKEDITOR.NODE_ELEMENT&&((i=i.getChild(r))||(i=!1===a(o,!0)?null:o.getNextSourceNode(!0,c,a))),i&&!1===a(i)&&(i=null));i&&!this._.end;){if(this.current=i,this.evaluator&&!1===this.evaluator(i)){if(t&&this.evaluator)return!1}else if(!t)return i;i=i[d](!1,c,a)}return this.end(),this.current=null}function e(e){for(var t,n=null;t=i.call(this,e);)n=t;return n}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(e){this.range=e,this._={}},proto:{end:function(){this._.end=1},next:function(){return i.call(this)},previous:function(){return i.call(this,1)},checkForward:function(){return!1!==i.call(this,0,1)},checkBackward:function(){return!1!==i.call(this,1,1)},lastForward:function(){return e.call(this)},lastBackward:function(){return e.call(this,1)},reset:function(){delete this.current,this._={}}}});var t={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},n={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(e){return!("none"!=this.getComputedStyle("float")||this.getComputedStyle("position")in n||!t[this.getComputedStyle("display")])||!!(this.is(CKEDITOR.dtd.$block)||e&&this.is(e))},CKEDITOR.dom.walker.blockBoundary=function(t){return function(e){return!(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary(t))}},CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})},CKEDITOR.dom.walker.bookmark=function(i,o){function a(e){return e&&e.getName&&"span"==e.getName()&&e.data("cke-bookmark")}return function(e){var t,n;return t=e&&e.type!=CKEDITOR.NODE_ELEMENT&&(n=e.getParent())&&a(n),t=i?t:t||a(e),!!(o^t)}}
6,CKEDITOR.dom.walker.whitespaces=function(n){return function(e){var t;return e&&e.type==CKEDITOR.NODE_TEXT&&(t=!CKEDITOR.tools.trim(e.getText())||CKEDITOR.env.webkit&&e.getText()==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE),!!(n^t)}},CKEDITOR.dom.walker.invisible=function(t){var n=CKEDITOR.dom.walker.whitespaces(),i=CKEDITOR.env.webkit?1:0;return function(e){return n(e)?e=1:(e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent()),e=e.$.offsetWidth<=i),!!(t^e)}},CKEDITOR.dom.walker.nodeType=function(t,n){return function(e){return!!(n^e.type==t)}},CKEDITOR.dom.walker.bogus=function(n){function i(e){return!a(e)&&!r(e)}return function(e){var t=CKEDITOR.env.needsBrFiller?e.is&&e.is("br"):e.getText&&o.test(e.getText());return t&&(t=e.getParent(),e=e.getNext(i),t=t.isBlockBoundary()&&(!e||e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary())),!!(n^t)}},CKEDITOR.dom.walker.temp=function(t){return function(e){return e.type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent()),e=e&&e.hasAttribute("data-cke-temp"),!!(t^e)}};var o=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,a=CKEDITOR.dom.walker.whitespaces(),r=CKEDITOR.dom.walker.bookmark(),s=CKEDITOR.dom.walker.temp(),l=function(e){return r(e)||a(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$inline)&&!e.is(CKEDITOR.dtd.$empty)};CKEDITOR.dom.walker.ignored=function(t){return function(e){return e=a(e)||r(e)||s(e),!!(t^e)}};var c=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(i){return function(e){for(var t=0,n=e.getChildCount();t<n;++t)if(!c(e.getChild(t)))return!!i;return!i}};var d=CKEDITOR.dom.walker.empty(),u=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(e){var t,n={};for(t in e)CKEDITOR.dtd[t]["#"]&&(n[t]=1);return n}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=function(t){return function(e){return e=!c(e)&&!!(e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&(e.is(CKEDITOR.dtd.$inline)||e.is("hr")||"false"==e.getAttribute("contenteditable")||!CKEDITOR.env.needsBrFiller&&e.is(u)&&d(e))),!!(t^e)}},CKEDITOR.dom.element.prototype.getBogus=function(){for(var e=this;e=e.getPreviousSourceNode(),l(e););return!(!e||!(CKEDITOR.env.needsBrFiller?e.is&&e.is("br"):e.getText&&o.test(e.getText())))&&e}}(),CKEDITOR.dom.range=function(e){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null,this.collapsed=!0;var t=e instanceof CKEDITOR.dom.document;this.document=t?e:e.getDocument(),this.root=t?e.getBody():e},function(){function n(e){e.collapsed=e.startContainer&&e.endContainer&&e.startContainer.equals(e.endContainer)&&e.startOffset==e.endOffset}function i(n,e,t,i,a){function o(e,t,n,i){var o=n?e.getPrevious():e.getNext();return i&&l||(d||i?t.append(e.clone(!0,a),n):(e.remove(),c&&t.append(e,n))),o}function r(){var e,t,n,i=Math.min(b.length,R.length);for(e=0;e<i;e++)if(t=b[e],n=R[e],!t.equals(n))return e;return e-1}function s(){var e=y-1,t=f&&m&&!E.equals(T);e<_-1||e<K-1||t?(t?n.moveToPosition(T,CKEDITOR.POSITION_BEFORE_START):K==e+1&&h?n.moveToPosition(R[e],CKEDITOR.POSITION_BEFORE_END):n.moveToPosition(R[e+1],CKEDITOR.POSITION_BEFORE_START),i&&(e=b[e+1])&&e.type==CKEDITOR.NODE_ELEMENT&&((t=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none">&nbsp;</span>',n.document)).insertAfter(e),e.mergeSiblings(!1),n.moveToBookmark({startNode:t}))):n.collapse(!0)}n.optimizeBookmark();var l=0===e,c=1==e,d=2==e;e=d||c;var u,h,f,m,p,g,E=n.startContainer,T=n.endContainer,C=n.startOffset,I=n.endOffset;if(d&&T.type==CKEDITOR.NODE_TEXT&&(E.equals(T)||E.type===CKEDITOR.NODE_ELEMENT&&E.getFirst().equals(T)))t.append(n.document.createText(T.substring(C,I)));else{T.type==CKEDITOR.NODE_TEXT?d?g=!0:T=T.split(I):0<T.getChildCount()?I>=T.getChildCount()?(T=T.getChild(I-1),h=!0):T=T.getChild(I):m=h=!0,E.type==CKEDITOR.NODE_TEXT?d?p=!0:E.split(C):0<E.getChildCount()?0===C?(E=E.getChild(C),u=!0):E=E.getChild(C-1):f=u=!0;for(var O,D,v,b=E.getParents(),R=T.getParents(),y=r(),_=b.length-1,K=R.length-1,k=t,w=-1,S=y;S<=_;S++){for(v=(D=b[S]).getNext(),S!=_||D.equals(R[S])&&_<K?e&&(O=k.append(D.clone(0,a))):u?o(D,k,!1,f):p&&k.append(n.document.createText(D.substring(C)));v;){if(v.equals(R[S])){w=S;break}v=o(v,k)}k=O}for(k=t,S=y;S<=K;S++)if(v=(t=R[S]).getPrevious(),t.equals(b[S]))e&&(k=k.getChild(0));else{if(S!=K||t.equals(b[S])&&K<_?e&&(O=k.append(t.clone(0,a))):h?o(t,k,!1,m):g&&k.append(n.document.createText(t.substring(0,I))),w<S)for(;v;)v=o(v,k,!0);k=O}d||s()}}
6function o(){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(r)))}}function a(t){var n=CKEDITOR.dom.walker.whitespaces(),i=CKEDITOR.dom.walker.bookmark(1);return function(e){return!(!i(e)&&!n(e))||(!t&&s(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$removeEmpty))}}function e(e){return function(){var t;return this[e?"getPreviousNode":"getNextNode"](function(e){return!t&&d(e)&&(t=e),c(e)&&!(s(e)&&e.equals(t))})}}var r={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},s=CKEDITOR.dom.walker.bogus(),l=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,c=CKEDITOR.dom.walker.editable(),d=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var e=new CKEDITOR.dom.range(this.root);return e._setStartContainer(this.startContainer),e.startOffset=this.startOffset,e._setEndContainer(this.endContainer),e.endOffset=this.endOffset,e.collapsed=this.collapsed,e},collapse:function(e){e?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),this.startOffset=this.endOffset),this.collapsed=!0},cloneContents:function(e){var t=new CKEDITOR.dom.documentFragment(this.document);return this.collapsed||i(this,2,t,!1,void 0===e||e),t},deleteContents:function(e){this.collapsed||i(this,0,null,e)},extractContents:function(e,t){var n=new CKEDITOR.dom.documentFragment(this.document);return this.collapsed||i(this,1,n,e,void 0===t||t),n},createBookmark:function(e){var t,n,i,o,a=this.collapsed;return(t=this.document.createElement("span")).data("cke-bookmark",1),t.setStyle("display","none"),t.setHtml("&nbsp;"),e&&(i="cke_bm_"+CKEDITOR.tools.getNextNumber(),t.setAttribute("id",i+(a?"C":"S"))),a||((n=t.clone()).setHtml("&nbsp;"),e&&n.setAttribute("id",i+"E"),(o=this.clone()).collapse(),o.insertNode(n)),(o=this.clone()).collapse(!0),o.insertNode(t),n?(this.setStartAfter(t),this.setEndBefore(n)):this.moveToPosition(t,CKEDITOR.POSITION_AFTER_END),{startNode:e?i+(a?"C":"S"):t,endNode:e?i+"E":n,serializable:e,collapsed:a}},createBookmark2:function(){function o(e){var t,n=e.container,i=e.offset,o=i;if((t=(t=n).type!=CKEDITOR.NODE_ELEMENT||0===o||o==t.getChildCount()?0:t.getChild(o-1).type==CKEDITOR.NODE_TEXT&&t.getChild(o).type==CKEDITOR.NODE_TEXT)&&(i=(n=n.getChild(i-1)).getLength()),n.type==CKEDITOR.NODE_ELEMENT&&0<i){e:{for(t=n;i--;)if(0<=(o=t.getChild(i).getIndex(!0))){i=o;break e}i=-1}i+=1}if(n.type==CKEDITOR.NODE_TEXT){for(t=n,o=0;(t=t.getPrevious())&&t.type==CKEDITOR.NODE_TEXT;)o+=t.getText().replace(CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE,"").length;t=o,n.getText()?i+=t:(o=n.getPrevious(r),t?(i=t,n=o?o.getNext():n.getParent().getFirst()):(n=n.getParent(),i=o?o.getIndex(!0)+1:0))}e.container=n,e.offset=i}function a(e,t){var n=t.getCustomData("cke-fillingChar");if(n){var i=e.container;n.equals(i)&&(e.offset-=CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE.length,e.offset<=0&&(e.offset=i.getIndex(),e.container=i.getParent()))}}var r=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,!0);return function(e){var t=this.collapsed,n={container:this.startContainer,offset:this.startOffset},i={container:this.endContainer,offset:this.endOffset};return e&&(o(n),a(n,this.root),t||(o(i),a(i,this.root))),{start:n.container.getAddress(e),end:t?null:i.container.getAddress(e),startOffset:n.offset,endOffset:i.offset,normalized:e,collapsed:t,is2:!0}}}(),moveToBookmark:function(e){if(e.is2){var t=this.document.getByAddress(e.start,e.normalized),n=e.startOffset,i=e.end&&this.document.getByAddress(e.end,e.normalized);e=e.endOffset,this.setStart(t,n),i?this.setEnd(i,e):this.collapse(!0)}else t=(n=e.serializable)?this.document.getById(e.startNode):e.startNode,e=n?this.document.getById(e.endNode):e.endNode,this.setStartBefore(t),t.remove(),e?(this.setEndBefore(e),e.remove()):this.collapse(!0)},getBoundaryNodes:function(){var e,t=this.startContainer,n=this.endContainer,i=this.startOffset,o=this.endOffset;if(t.type==CKEDITOR.NODE_ELEMENT)if(i<(e=t.getChildCount()))t=t.getChild(i);else if(e<1)t=t.getPreviousSourceNode();else{for(t=t.$;t.lastChild;)t=t.lastChild;t=(t=new CKEDITOR.dom.node(t)).getNextSourceNode()||t}if(n.type==CKEDITOR.NODE_ELEMENT)if(o<(e=n.getChildCount()))n=n.getChild(o).getPreviousSourceNode(!0);else if(e<1)n=n.getPreviousSourceNode();else{for(n=n.$;n.lastChild;)n=n.lastChild;n=new CKEDITOR.dom.node(n)}return t.getPosition(n)&CKEDITOR.POSITION_FOLLOWING&&(t=n),{startNode:t,endNode:n}},getCommonAncestor:function(e,t){var n=this.startContainer,i=this.endContainer;n=n.equals(i)?e&&n.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?n.getChild(this.startOffset):n:n.getCommonAncestor(i);return t&&!n.is?n.getParent():n},optimize:function(){var e=this.startContainer,t=this.startOffset;e.type!=CKEDITOR.NODE_ELEMENT&&(t?t>=e.getLength()&&this.setStartAfter(e):this.setStartBefore(e)),e=this.endContainer,t=this.endOffset,e.type!=CKEDITOR.NODE_ELEMENT&&(t?t>=e.getLength()&&this.setEndAfter(e):this.setEndBefore(e))},optimizeBookmark:function(){var e=this.startContainer,t=this.endContainer;e.is&&e.is("span")&&e.data("cke-bookmark")&&this.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),t&&t.is&&t.is("span")&&t.data("cke-bookmark")&&this.setEndAt(t,CKEDITOR.POSITION_AFTER_END)},trim:function(e,t){var n=this.startContainer,i=this.startOffset,o=this.collapsed;if((!e||o)&&n&&n.type==CKEDITOR.NODE_TEXT){if(i)if(i>=n.getLength())i=n.getIndex()+1,n=n.getParent();else{var a=n.split(i);i=n.getIndex()+1,n=n.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(a,this.endOffset-this.startOffset):n.equals(this.endContainer)&&(this.endOffset+=1)}else i=n.getIndex(),n=n.getParent();if(this.setStart(n,i),o)return void this.collapse(!0)}n=this.endContainer,i=this.endOffset,t||o||!n||n.type!=CKEDITOR.NODE_TEXT||(i?(i>=n.getLength()||n.split(i),i=n.getIndex()+1):i=n.getIndex(),n=n.getParent(),this.setEnd(n,i))},enlarge:function(e,t){function n(e){return e&&e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("contenteditable")?null:e}var o=new RegExp(/[^\s\ufeff]/);switch(e){case CKEDITOR.ENLARGE_INLINE:var i=1;case CKEDITOR.ENLARGE_ELEMENT:var a=function(e,t){var n,i;for((n=new CKEDITOR.dom.range(m)).setStart(e,t),n.setEndAt(m,CKEDITOR.POSITION_BEFORE_END),(n=new CKEDITOR.dom.walker(n)).guard=function(e){return!(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary())};i=n.next();){if(i.type!=CKEDITOR.NODE_TEXT)return!1;if(h=i!=e?i.getText():i.substring(t),o.test(h))return!1}return!0};if(this.collapsed)break;var r,s,l,c,d,u,h,f=this.getCommonAncestor(),m=this.root,p=!1;u=this.startContainer;var g=this.startOffset;for(u.type==CKEDITOR.NODE_TEXT?(g&&(p=!!(u=!CKEDITOR.tools.trim(u.substring(0,g)).length&&u)),u&&((c=u.getPrevious())||(l=u.getParent()))):(g&&(c=u.getChild(g-1)||u.getLast()),c||(l=u)),l=n(l);l||c;){if(l&&!c){if(!d&&l.equals(f)&&(d=!0),i?l.isBlockBoundary():!m.contains(l))break;p&&"inline"==l.getComputedStyle("display")||(p=!1,d?r=l:this.setStartBefore(l)),c=l.getPrevious()}for(;c;)if(u=!1,c.type==CKEDITOR.NODE_COMMENT)c=c.getPrevious();else{if(c.type==CKEDITOR.NODE_TEXT)h=c.getText(),o.test(h)&&(c=null),u=/[\s\ufeff]$/.test(h);else if((c.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||t&&c.is("br"))&&!c.data("cke-bookmark"))if(p&&CKEDITOR.dtd.$removeEmpty[c.getName()]){if
6(h=c.getText(),o.test(h))c=null;else{g=c.$.getElementsByTagName("*");for(var E,T=0;E=g[T++];)if(!CKEDITOR.dtd.$removeEmpty[E.nodeName.toLowerCase()]){c=null;break}}c&&(u=!!h.length)}else c=null;if(u&&(p?d?r=l:l&&this.setStartBefore(l):p=!0),c){if(u=c.getPrevious(),!l&&!u){l=c,c=null;break}c=u}else l=null}l&&(l=n(l.getParent()))}for(u=this.endContainer,g=this.endOffset,l=c=null,d=p=!1,u.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(u.substring(g)).length?p=!0:(p=!u.getLength(),g==u.getLength()?(c=u.getNext())||(l=u.getParent()):a(u,g)&&(l=u.getParent())):(c=u.getChild(g))||(l=u);l||c;){if(l&&!c){if(!d&&l.equals(f)&&(d=!0),i?l.isBlockBoundary():!m.contains(l))break;p&&"inline"==l.getComputedStyle("display")||(p=!1,d?s=l:l&&this.setEndAfter(l)),c=l.getNext()}for(;c;){if(u=!1,c.type==CKEDITOR.NODE_TEXT)h=c.getText(),a(c,0)||(c=null),u=/^[\s\ufeff]/.test(h);else if(c.type==CKEDITOR.NODE_ELEMENT){if((0<c.$.offsetWidth||t&&c.is("br"))&&!c.data("cke-bookmark"))if(p&&CKEDITOR.dtd.$removeEmpty[c.getName()]){if(h=c.getText(),o.test(h))c=null;else for(g=c.$.getElementsByTagName("*"),T=0;E=g[T++];)if(!CKEDITOR.dtd.$removeEmpty[E.nodeName.toLowerCase()]){c=null;break}c&&(u=!!h.length)}else c=null}else u=1;if(u&&p&&(d?s=l:this.setEndAfter(l)),c){if(u=c.getNext(),!l&&!u){l=c,c=null;break}c=u}else l=null}l&&(l=n(l.getParent()))}r&&s&&(f=r.contains(s)?s:r,this.setStartBefore(f),this.setEndAfter(f));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:l=new CKEDITOR.dom.range(this.root),m=this.root,l.setStartAt(m,CKEDITOR.POSITION_AFTER_START),l.setEnd(this.startContainer,this.startOffset),l=new CKEDITOR.dom.walker(l);var C,I,O=CKEDITOR.dom.walker.blockBoundary(e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),D=null,v=function(e){if(e.type==CKEDITOR.NODE_ELEMENT&&"false"==e.getAttribute("contenteditable"))if(D){if(D.equals(e))return void(D=null)}else D=e;else if(D)return;var t=O(e);return t||(C=e),t};i=function(e){var t=v(e);return!t&&e.is&&e.is("br")&&(I=e),t};if(l.guard=v,l=l.lastBackward(),C=C||m,this.setStartAt(C,!C.is("br")&&(!l&&this.checkStartOfBlock()||l&&C.contains(l))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END),e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){l=this.clone(),l=new CKEDITOR.dom.walker(l);var b=CKEDITOR.dom.walker.whitespaces(),R=CKEDITOR.dom.walker.bookmark();if(l.evaluator=function(e){return!b(e)&&!R(e)},(l=l.previous())&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("br"))break}(l=this.clone()).collapse(),l.setEndAt(m,CKEDITOR.POSITION_BEFORE_END),(l=new CKEDITOR.dom.walker(l)).guard=e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?i:v,C=D=I=null,l=l.lastForward(),C=C||m,this.setEndAt(C,!l&&this.checkEndOfBlock()||l&&C.contains(l)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START),I&&this.setEndAfter(I)}},shrink:function(n,e,t){var i="boolean"==typeof t?t:!t||"boolean"!=typeof t.shrinkOnBlockBoundary||t.shrinkOnBlockBoundary,o=t&&t.skipBogus;if(!this.collapsed){n=n||CKEDITOR.SHRINK_TEXT;var a=this.clone(),r=this.startContainer,s=this.endContainer,l=this.startOffset,c=this.endOffset,d=t=1;r&&r.type==CKEDITOR.NODE_TEXT&&(l?l>=r.getLength()?a.setStartAfter(r):(a.setStartBefore(r),t=0):a.setStartBefore(r)),s&&s.type==CKEDITOR.NODE_TEXT&&(c?c>=s.getLength()?a.setEndAfter(s):(a.setEndAfter(s),d=0):a.setEndBefore(s));a=new CKEDITOR.dom.walker(a);var u,h=CKEDITOR.dom.walker.bookmark(),f=CKEDITOR.dom.walker.bogus();return a.evaluator=function(e){return e.type==(n==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)},a.guard=function(e,t){return!!(o&&f(e)||h(e))||!(n==CKEDITOR.SHRINK_ELEMENT&&e.type==CKEDITOR.NODE_TEXT||t&&e.equals(u)||!1===i&&e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()||e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("contenteditable"))&&(t||e.type!=CKEDITOR.NODE_ELEMENT||(u=e),!0)},t&&(r=a[n==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(r,e?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START),d&&(a.reset(),(a=a[n==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(a,e?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)),!(!t&&!d)}},insertNode:function(e){this.optimizeBookmark(),this.trim(!1,!0);var t=this.startContainer,n=t.getChild(this.startOffset);n?e.insertBefore(n):t.append(e),e.getParent()&&e.getParent().equals(this.endContainer)&&this.endOffset++,this.setStartBefore(e)},moveToPosition:function(e,t){this.setStartAt(e,t),this.collapse(!0)},moveToRange:function(e){this.setStart(e.startContainer,e.startOffset),this.setEnd(e.endContainer,e.endOffset)},selectNodeContents:function(e){this.setStart(e,0),this.setEnd(e,e.type==CKEDITOR.NODE_TEXT?e.getLength():e.getChildCount())},setStart:function(e,t){e.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[e.getName()]&&(t=e.getIndex(),e=e.getParent()),this._setStartContainer(e),this.startOffset=t,this.endContainer||(this._setEndContainer(e),this.endOffset=t),n(this)},setEnd:function(e,t){e.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[e.getName()]&&(t=e.getIndex()+1,e=e.getParent()),this._setEndContainer(e),this.endOffset=t,this.startContainer||(this._setStartContainer(e),this.startOffset=t),n(this)},setStartAfter:function(e){this.setStart(e.getParent(),e.getIndex()+1)},setStartBefore:function(e){this.setStart(e.getParent(),e.getIndex())},setEndAfter:function(e){this.setEnd(e.getParent(),e.getIndex()+1)},setEndBefore:function(e){this.setEnd(e.getParent(),e.getIndex())},setStartAt:function(e,t){switch(t){case CKEDITOR.POSITION_AFTER_START:this.setStart(e,0);break;case CKEDITOR.POSITION_BEFORE_END:e.type==CKEDITOR.NODE_TEXT?this.setStart(e,e.getLength()):this.setStart(e,e.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(e);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(e)}n(this)},setEndAt:function(e,t){switch(t){case CKEDITOR.POSITION_AFTER_START:this.setEnd(e,0);break;case CKEDITOR.POSITION_BEFORE_END:e.type==CKEDITOR.NODE_TEXT?this.setEnd(e,e.getLength()):this.setEnd(e,e.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(e);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(e)}n(this)},fixBlock:function(e,t){var n=this.createBookmark(),i=this.document.createElement(t);this.collapse(e),this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),this.extractContents().appendTo(i),i.trim(),this.insertNode(i);var o=i.getBogus();return o&&o.remove(),i.appendBogus(),this.moveToBookmark(n),i},splitBlock:function(e,t){var n=new CKEDITOR.dom.elementPath(this.startContainer,this.root),i=new CKEDITOR.dom.elementPath(this.endContainer,this.root),o=n.block,a=i.block,r=null;return n.blockLimit.equals(i.blockLimit)?("br"!=e&&(o||(o=this.fixBlock(!0,e),a=new CKEDITOR.dom.elementPath(this.endContainer,this.root).block),a||(a=this.fixBlock(!1,e))),n=o&&this.checkStartOfBlock(),i=a&&this.checkEndOfBlock(),this.deleteContents(),o&&o.equals(a)&&(i?(r=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END),a=null):n?(r=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(o,CKEDITOR.POSITION_BEFORE_START),o=null):(a=this.splitElement(o,t||!1),o.is("ul","ol")||o.appendBogus())),{previousBlock:o,nextBlock:a,wasStartOfBlock:n,wasEndOfBlock:i,elementPath:r}):null},splitElement:function(e,t){if(!this.collapsed)return null;this.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);var n=this.extractContents(!1,t||!1),i=e.clone(!1,t||!1);return n.appendTo(i),i.insertAfter(e),
7this.moveToPosition(e,CKEDITOR.POSITION_AFTER_END),i},removeEmptyBlocksAtEnd:function(){function a(t){return function(e){return!(n(e)||i(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.isEmptyInlineRemoveable()||t.is("table")&&e.is("caption"))}}
7var n=CKEDITOR.dom.walker.whitespaces(),i=CKEDITOR.dom.walker.bookmark(!1);return function(e){for(var t,n=this.createBookmark(),i=this[e?"endPath":"startPath"](),o=i.block||i.blockLimit;o&&!o.equals(i.root)&&!o.getFirst(a(o));)t=o.getParent(),this[e?"setEndAt":"setStartAt"](o,CKEDITOR.POSITION_AFTER_END),o.remove(1),o=t;this.moveToBookmark(n)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(e,t){var n=t==CKEDITOR.START,i=this.clone();return i.collapse(n),i[n?"setStartAt":"setEndAt"](e,n?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),(i=new CKEDITOR.dom.walker(i)).evaluator=a(n),i[n?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var e=this.startContainer,t=this.startOffset;return CKEDITOR.env.ie&&t&&e.type==CKEDITOR.NODE_TEXT&&(e=CKEDITOR.tools.ltrim(e.substring(0,t)),l.test(e)&&this.trim(0,1)),this.trim(),e=new CKEDITOR.dom.elementPath(this.startContainer,this.root),(t=this.clone()).collapse(!0),t.setStartAt(e.block||e.blockLimit,CKEDITOR.POSITION_AFTER_START),(e=new CKEDITOR.dom.walker(t)).evaluator=o(),e.checkBackward()},checkEndOfBlock:function(){var e=this.endContainer,t=this.endOffset;return CKEDITOR.env.ie&&e.type==CKEDITOR.NODE_TEXT&&(e=CKEDITOR.tools.rtrim(e.substring(t)),l.test(e)&&this.trim(1,0)),this.trim(),e=new CKEDITOR.dom.elementPath(this.endContainer,this.root),(t=this.clone()).collapse(!1),t.setEndAt(e.block||e.blockLimit,CKEDITOR.POSITION_BEFORE_END),(e=new CKEDITOR.dom.walker(t)).evaluator=o(),e.checkForward()},getPreviousNode:function(e,t,n){var i=this.clone();return i.collapse(1),i.setStartAt(n||this.root,CKEDITOR.POSITION_AFTER_START),(n=new CKEDITOR.dom.walker(i)).evaluator=e,n.guard=t,n.previous()},getNextNode:function(e,t,n){var i=this.clone();return i.collapse(),i.setEndAt(n||this.root,CKEDITOR.POSITION_BEFORE_END),(n=new CKEDITOR.dom.walker(i)).evaluator=e,n.guard=t,n.next()},checkReadOnly:function(){function n(e,t){for(;e;){if(e.type==CKEDITOR.NODE_ELEMENT){if("false"==e.getAttribute("contentEditable")&&!e.data("cke-editable"))return 0;if(e.is("html")||"true"==e.getAttribute("contentEditable")&&(e.contains(t)||e.equals(t)))break}e=e.getParent()}return 1}return function(){var e=this.startContainer,t=this.endContainer;return!(n(e,t)&&n(t,e))}}(),moveToElementEditablePosition:function(e,t){if(e.type==CKEDITOR.NODE_ELEMENT&&!e.isEditable(!1))return this.moveToPosition(e,t?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var n=0;e;){if(e.type==CKEDITOR.NODE_TEXT){t&&this.endContainer&&this.checkEndOfBlock()&&l.test(e.getText())?this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(e,t?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),n=1;break}if(e.type==CKEDITOR.NODE_ELEMENT)if(e.isEditable())this.moveToPosition(e,t?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),n=1;else if(t&&e.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);else if("false"==e.getAttribute("contenteditable")&&e.is(CKEDITOR.dtd.$block))return this.setStartBefore(e),this.setEndAfter(e),!0;var i=e,o=n,a=void 0;i.type==CKEDITOR.NODE_ELEMENT&&i.isEditable(!1)&&(a=i[t?"getLast":"getFirst"](d)),o||a||(a=i[t?"getPrevious":"getNext"](d)),e=a}return!!n},moveToClosestEditablePosition:function(e,t){var n,i,o,a=0,r=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];return e?(n=new CKEDITOR.dom.range(this.root)).moveToPosition(e,r[t?0:1]):n=this.clone(),e&&!e.is(CKEDITOR.dtd.$block)?a=1:(i=n[t?"getNextEditableNode":"getPreviousEditableNode"]())&&(a=1,(o=i.type==CKEDITOR.NODE_ELEMENT)&&i.is(CKEDITOR.dtd.$block)&&"false"==i.getAttribute("contenteditable")?(n.setStartAt(i,CKEDITOR.POSITION_BEFORE_START),n.setEndAt(i,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&o&&i.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(n.setEnd(i,0),n.collapse()):n.moveToPosition(i,r[t?1:0])),a&&this.moveToRange(n),!!a},moveToElementEditStart:function(e){return this.moveToElementEditablePosition(e)},moveToElementEditEnd:function(e){return this.moveToElementEditablePosition(e,!0)},getEnclosedNode:function(){if((e=this.clone()).optimize(),e.startContainer.type!=CKEDITOR.NODE_ELEMENT||e.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var e=new CKEDITOR.dom.walker(e),t=CKEDITOR.dom.walker.bookmark(!1,!0),n=CKEDITOR.dom.walker.whitespace
7s(!0);e.evaluator=function(e){return n(e)&&t(e)};var i=e.next();return e.reset(),i&&i.equals(e.previous())?i:null},getTouchedStartNode:function(){var e=this.startContainer;return this.collapsed||e.type!=CKEDITOR.NODE_ELEMENT?e:e.getChild(this.startOffset)||e},getTouchedEndNode:function(){var e=this.endContainer;return this.collapsed||e.type!=CKEDITOR.NODE_ELEMENT?e:e.getChild(this.endOffset-1)||e},getNextEditableNode:e(),getPreviousEditableNode:e(1),_getTableElement:function(e){e=e||{td:1,th:1,tr:1,tbody:1,thead:1,tfoot:1,table:1};var t=this.startContainer,n=this.endContainer,i=t.getAscendant("table",!0),o=n.getAscendant("table",!0);return CKEDITOR.env.safari&&i&&n.equals(this.root)?t.getAscendant(e,!0):this.getEnclosedNode()?this.getEnclosedNode().getAscendant(e,!0):i&&o&&(i.equals(o)||i.contains(o)||o.contains(i))?t.getAscendant(e,!0):null},scrollIntoView:function(){var e,t,n,i=new CKEDITOR.dom.element.createFromHtml("<span>&nbsp;</span>",this.document),o=this.clone();o.optimize(),(n=o.startContainer.type==CKEDITOR.NODE_TEXT)?(t=o.startContainer.getText(),e=o.startContainer.split(o.startOffset),i.insertAfter(o.startContainer)):o.insertNode(i),i.scrollIntoView(),n&&(o.startContainer.setText(t),e.remove()),i.remove()},getClientRects:function(){function i(e,n){var i,t,o,r=CKEDITOR.tools.array.map(e,function(e){return e}),a=new CKEDITOR.dom.range(n.root);if(n.startContainer instanceof CKEDITOR.dom.element&&(t=0===n.startOffset&&n.startContainer.hasAttribute("data-widget")),n.endContainer instanceof CKEDITOR.dom.element&&(o=(o=n.endOffset===(n.endContainer.getChildCount?n.endContainer.getChildCount():n.endContainer.length))&&n.endContainer.hasAttribute("data-widget")),t&&a.setStart(n.startContainer.getParent(),n.startContainer.getIndex()),o&&a.setEnd(n.endContainer.getParent(),n.endContainer.getIndex()+1),(t||o)&&(n=a),a=n.cloneContents(),a=CKEDITOR.dom.document.prototype.find.call(a,"[data-cke-widget-id]").toArray(),a=CKEDITOR.tools.array.map(a,function(e){var t=n.root.editor;return e=e.getAttribute("data-cke-widget-id"),t.widgets.instances[e].element}))return a=CKEDITOR.tools.array.map(a,function(e){var t;return t=e.getParent().hasClass("cke_widget_wrapper")?e.getParent():e,(i=this.root.getDocument().$.createRange()).setStart(t.getParent().$,t.getIndex()),i.setEnd(t.getParent().$,t.getIndex()+1),(t=i.getClientRects()).widgetRect=e.getClientRect(),t},n),CKEDITOR.tools.array.forEach(a,function(o){function e(i){CKEDITOR.tools.array.forEach(r,function(e,t){var n=CKEDITOR.tools.objectCompare(o[i],e);n||(n=CKEDITOR.tools.objectCompare(o.widgetRect,e)),n&&(Array.prototype.splice.call(r,t,o.length-i,o.widgetRect),a=!0)}),a||(i<r.length-1?e(i+1):r.push(o.widgetRect))}var a;e(0)}),r}function o(e,t,n){var i;return t.collapsed?n.startContainer instanceof CKEDITOR.dom.element?(e=n.checkStartOfBlock(),i=new CKEDITOR.dom.text("\u200b"),e?n.startContainer.append(i,!0):0===n.startOffset?i.insertBefore(n.startContainer.getFirst()):(n=n.startContainer.getChildren().getItem(n.startOffset-1),i.insertAfter(n)),t.setStart(i.$,0),t.setEnd(i.$,0),e=t.getClientRects(),i.remove()):n.startContainer instanceof CKEDITOR.dom.text&&(""===n.startContainer.getText()?(n.startContainer.setText("\u200b"),e=t.getClientRects(),n.startContainer.setText("")):e=[r(n.createBookmark())]):e=[r(n.createBookmark())],e}function a(e,t,n){return e=CKEDITOR.tools.extend({},e),t&&(e=CKEDITOR.tools.getAbsoluteRectPosition(n.document.getWindow(),e)),!e.width&&(e.width=e.right-e.left),!e.height&&(e.height=e.bottom-e.top),e}function r(e){var t,n=e.startNode;return e=e.endNode,n.setText("\u200b"),n.removeStyle("display"),e?(e.setText("\u200b"),e.removeStyle("display"),t=[n.getClientRect(),e.getClientRect()],e.remove()):t=[n.getClientRect(),n.getClientRect()],n.remove(),{right:Math.max(t[0].right,t[1].right),bottom:Math.max(t[0].bottom,t[1].bottom),left:Math.min(t[0].left,t[1].left),top:Math.min(t[0].top,t[1].top),width:Math.abs(t[0].left-t[1].left),height:Math.max(t[0].bottom,t[1].bottom)-Math.min(t[0].top,t[1].top)}}return void 0!==this.document.getSelection?function(t){var e,n=this.root.getDocument().$.createRange();return n.setStart(this.startContainer.$,this.startOffset),n.setEnd(this.endContainer.$,this.endOffset),(e=i(e=n.getClientRects(),this)).length||(e=o(e,n,this)),CKEDITOR.tools.array.map(e,function(e){return a(e,t,this)},this)}:function(e){return[a(r(this.createBookmark()),e,this)]}}(),_setStartContainer:function(e){this.startContainer=e},_setEndContainer:function(e){this.endContainer=e},_find:function(e,t){var n,i,o,a,r=this.getCommonAncestor(),s=this.getBoundaryNodes(),l=[];
7if(r&&r.find)for(i=r.find(e),n=0;n<i.count();n++)r=i.getItem(n),(t||!r.isReadOnly())&&(o=r.getPosition(s.startNode)&CKEDITOR.POSITION_FOLLOWING||s.startNode.equals(r),a=r.getPosition(s.endNode)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IS_CONTAINED||s.endNode.equals(r),o&&a&&l.push(r));return l}},CKEDITOR.dom.range.mergeRanges=function(e){return CKEDITOR.tools.array.reduce(e,function(e,t){var n=e[e.length-1],i=!1;if((t=t.clone()).enlarge(CKEDITOR.ENLARGE_ELEMENT),n){var o=new CKEDITOR.dom.range(t.root),a=(i=new CKEDITOR.dom.walker(o),CKEDITOR.dom.walker.whitespaces());for(o.setStart(n.endContainer,n.endOffset),o.setEnd(t.startContainer,t.startOffset),o=i.next();a(o)||t.endContainer.equals(o);)o=i.next();i=!o}return i?n.setEnd(t.endContainer,t.endOffset):e.push(t),e},[])}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT=2,function(){function e(e){arguments.length<1||(this.range=e,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function a(e){var t=[];return e.forEach(function(e){if("true"==e.getAttribute("contenteditable"))return t.push(e),!1},CKEDITOR.NODE_ELEMENT,!0),t}function f(e,t,n,i){e:{null==i&&(i=a(n));for(var o;o=i.shift();)if(o.getDtd().p){i={element:o,remaining:i};break e}i=null}return i?(o=CKEDITOR.filter.instances[i.element.data("cke-filter")])&&!o.check(t)?f(e,t,n,i.remaining):((t=new CKEDITOR.dom.range(i.element)).selectNodeContents(i.element),(t=t.createIterator()).enlargeBr=e.enlargeBr,t.enforceRealBlocks=e.enforceRealBlocks,t.activeFilter=t.filter=o,e._.nestedEditable={element:i.element,container:n,remaining:i.remaining,iterator:t},1):0}function m(e,t,n){return!!t&&((e=e.clone()).collapse(!n),e.checkBoundaryOfElement(t,n?CKEDITOR.START:CKEDITOR.END))}var p=/^[\r\n\t ]+$/,g=CKEDITOR.dom.walker.bookmark(!1,!0),t=CKEDITOR.dom.walker.whitespaces(!0),E=function(e){return g(e)&&t(e)},T={dd:1,dt:1,li:1};e.prototype={getNextParagraph:function(e){var t,n,i,o,a;if(e=e||"p",this._.nestedEditable){if(t=this._.nestedEditable.iterator.getNextParagraph(e))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,t;if(this.activeFilter=this.filter,f(this,e,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(e);this._.nestedEditable=null}if(!this.range.root.getDtd()[e])return null;if(!this._.started){var r=this.range.clone();n=r.startPath();var s=r.endPath(),l=!r.collapsed&&m(r,n.block),c=!r.collapsed&&m(r,s.block,1);r.shrink(CKEDITOR.SHRINK_ELEMENT,!0),l&&r.setStartAt(n.block,CKEDITOR.POSITION_BEFORE_END),c&&r.setEndAt(s.block,CKEDITOR.POSITION_AFTER_START),n=r.endContainer.hasAscendant("pre",!0)||r.startContainer.hasAscendant("pre",!0),r.enlarge(this.forceBrBreak&&!n||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS),r.collapsed||(n=new CKEDITOR.dom.walker(r.clone()),s=CKEDITOR.dom.walker.bookmark(!0,!0),n.evaluator=s,this._.nextNode=n.next(),(n=new CKEDITOR.dom.walker(r.clone())).evaluator=s,n=n.previous(),this._.lastNode=n.getNextSourceNode(!0,null,r.root),this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&((s=this.range.clone()).moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),s.checkEndOfBlock()&&(s=new CKEDITOR.dom.elementPath(s.endContainer,s.root),this._.lastNode=(s.block||s.blockLimit).getNextSourceNode(!0))),this._.lastNode&&r.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=r.document.createText(""),this._.lastNode.insertAfter(n)),r=null),this._.started=1,n=r}for(s=this._.nextNode,r=this._.lastNode,this._.nextNode=null;s;){l=0,c=s.hasAscendant("pre");var d=s.type!=CKEDITOR.NODE_ELEMENT,u=0;if(d)s.type==CKEDITOR.NODE_TEXT&&p.test(s.getText())&&(d=0);else{var h=s.getName();if(CKEDITOR.dtd.$block[h]&&"false"==s.getAttribute("contenteditable")){f(this,e,t=s);break}if(s.isBlockBoundary(this.forceBrBreak&&!c&&{br:1})){if("br"==h)d=1;else if(!n&&!s.getChildCount()&&"hr"!=h){i=(t=s).equals(r);break}n&&(n.setEndAt(s,CKEDITOR.POSITION_BEFORE_START),"br"!=h&&(this._.nextNode=s)),l=1}else{if(s.getFirst()){n||(n=this.range.clone()).setStartAt(s,CKEDITOR.POSITION_BEFORE_START),s=s.getFirst();continue}d=1}}if(d&&!n&&(n=this.range.clone()).setStartAt(s,CKEDITOR.POSITION_BEFORE_START),i=(!l||d)&&s.equals(r),n&&
7!l)for(;!s.getNext(E)&&!i;){if((h=s.getParent()).isBlockBoundary(this.forceBrBreak&&!c&&{br:1})){l=1,d=0,i||h.equals(r),n.setEndAt(h,CKEDITOR.POSITION_BEFORE_END);break}d=1,i=(s=h).equals(r),u=1}if(d&&n.setEndAt(s,CKEDITOR.POSITION_AFTER_END),(i=!(s=this._getNextSourceNode(s,u,r)))||l&&n)break}if(!t){if(!n)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;s=(t=new CKEDITOR.dom.elementPath(n.startContainer,n.root)).blockLimit,l={div:1,th:1,td:1},!(t=t.block)&&s&&!this.enforceRealBlocks&&l[s.getName()]&&n.checkStartOfBlock()&&n.checkEndOfBlock()&&!s.equals(n.root)?t=s:!t||this.enforceRealBlocks&&t.is(T)?(t=this.range.document.createElement(e),n.extractContents().appendTo(t),t.trim(),n.insertNode(t),o=a=!0):"li"!=t.getName()?n.checkStartOfBlock()&&n.checkEndOfBlock()||(t=t.clone(!1),n.extractContents().appendTo(t),t.trim(),o=!(a=n.splitBlock()).wasStartOfBlock,a=!a.wasEndOfBlock,n.insertNode(t)):i||(this._.nextNode=t.equals(r)?null:this._getNextSourceNode(n.getBoundaryNodes().endNode,1,r))}return o&&(o=t.getPrevious())&&o.type==CKEDITOR.NODE_ELEMENT&&("br"==o.getName()?o.remove():o.getLast()&&"br"==o.getLast().$.nodeName.toLowerCase()&&o.getLast().remove()),a&&(o=t.getLast())&&o.type==CKEDITOR.NODE_ELEMENT&&"br"==o.getName()&&(!CKEDITOR.env.needsBrFiller||o.getPrevious(g)||o.getNext(g))&&o.remove(),this._.nextNode||(this._.nextNode=i||t.equals(r)||!r?null:this._getNextSourceNode(t,1,r)),t},_getNextSourceNode:function(e,t,n){function i(e){return!(e.equals(n)||e.equals(o))}var o=this.range.root;for(e=e.getNextSourceNode(t,null,i);!g(e);)e=e.getNextSourceNode(t,null,i);return e}},CKEDITOR.dom.range.prototype.createIterator=function(){return new e(this)}}(),CKEDITOR.command=function(t,n){var i;this.uiItems=[],this.exec=function(e){return!(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())&&(this.editorFocus&&t.focus(),!1===this.fire("exec")||!1!==n.exec.call(this,t,e))},this.refresh=function(e,t){return!(this.readOnly||!e.readOnly)||(this.context&&!t.isContextFor(this.context)||!this.checkAllowed(!0)?(this.disable(),!0):(this.startDisabled||this.enable(),this.modes&&!this.modes[e.mode]&&this.disable(),!1===this.fire("refresh",{editor:e,path:t})||n.refresh&&!1!==n.refresh.apply(this,arguments)))},this.checkAllowed=function(e){return e||"boolean"!=typeof i?i=t.activeFilter.checkFeature(this):i},CKEDITOR.tools.extend(this,n,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!n.context,state:CKEDITOR.TRISTATE_DISABLED}),CKEDITOR.event.call(this)},CKEDITOR.command.prototype={enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(this.preserveState&&"undefined"!=typeof this.previousState?this.previousState:CKEDITOR.TRISTATE_OFF)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(e){return!(this.state==e||e!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())&&(this.previousState=this.state,this.state=e,this.fire("state"),!0)},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"<!DOCTYPE html>",bodyId:"",bodyClass:"",fullPage:!1,height:200,contentsCss:CKEDITOR.getUrl("contents.css"),extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1e4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function a(e,t,n,i,o){var a,r,s;for(a in e=[],t){r="boolean"==typeof(r=t[a])?{}:"function"==typeof r?{match:r}:S(r),"$"!=a.charAt(0)&&(r.elements=a),n&&(r.featureName=n.toLowerCase());var l=r;l.elements=T(l.elements,/\s+/)||null,l.propertiesOnly=l.propertiesOnly||!0===l.elements;var c=/\s*,\s*/,d=void 0;for(d in L){l[d]=T(l[d],c)||null;var u=l,h=F[d],f=T(l[F[d]],c),m=l[d],p=[],g=!0,E=void 0;for(E in f?g=!1:f={},m)"!"==E.charAt(0)&&(E=E.slice(1),p.push(E),f[E]=!0,g=!1);for(;E=p.pop();)m[E]=m["!"+E],delete m["!"+E];u[h]=!g&&f||null}l.match=l.match||null,i.push(r),e.push(r)}for(t=o.elements,o=o.generic,n=0,i=e.length;n<i;++n){for(c in r=!0===(a=S(e[n])).classes||!0===a.styles||!0===a.attributes,l=a,d=h=c=void 0,L)l[c]=b(l[c]);for(d in u=!0,F){for(m in f=[],m=void 0,h=l[c=F[d]])-1<m.indexOf("*")?f.push(new RegExp("^"+m.replace(/\*/g,".*")+"$")):f.push(m);(h=f).length&&(l[c]=h,u=!1)}if(l.nothingRequired=u,l.noProperties=!(l.attributes||l.classes||l.styles),!0===a.elements||null===a.elements)
7o[r?"unshift":"push"](a);else for(s in l=a.elements,delete a.elements,l)t[s]?t[s][r?"unshift":"push"](a):t[s]=[a]}}function C(e,t,n,i){if((!e.match||e.match(t))&&(i||c(e,t))&&(e.propertiesOnly||(n.valid=!0),n.allAttributes||(n.allAttributes=s(e.attributes,t.attributes,n.validAttributes)),n.allStyles||(n.allStyles=s(e.styles,t.styles,n.validStyles)),!n.allClasses)){if(e=e.classes,t=t.classes,i=n.validClasses,e)if(!0===e)e=!0;else{for(var o,a=0,r=t.length;a<r;++a)i[o=t[a]]||(i[o]=e(o));e=!1}else e=!1;n.allClasses=e}}function s(e,t,n){if(!e)return!1;if(!0===e)return!0;for(var i in t)n[i]||(n[i]=e(i));return!1}function I(e,t,n){if(!e.match||e.match(t)){if(e.noProperties)return!1;if(n.hadInvalidAttribute=r(e.attributes,t.attributes)||n.hadInvalidAttribute,n.hadInvalidStyle=r(e.styles,t.styles)||n.hadInvalidStyle,e=e.classes,t=t.classes,e){for(var i=!1,o=!0===e,a=t.length;a--;)(o||e(t[a]))&&(t.splice(a,1),i=!0);e=i}else e=!1;n.hadInvalidClass=e||n.hadInvalidClass}}function r(e,t){if(!e)return!1;var n,i=!1,o=!0===e;for(n in t)(o||e(n))&&(delete t[n],i=!0);return i}function l(e,t,n){return!(e.disabled||e.customConfig&&!n||!t)&&(e._.cachedChecks={},!0)}function T(e,t){if(!e)return!1;if(!0===e)return e;if("string"==typeof e)return"*"==(e=x(e))||CKEDITOR.tools.convertArrayToObject(e.split(t));if(CKEDITOR.tools.isArray(e))return!!e.length&&CKEDITOR.tools.convertArrayToObject(e);var n,i={},o=0;for(n in e)i[n]=e[n],o++;return!!o&&i}function c(e,t){if(e.nothingRequired)return!0;var n,i,o,a;if(o=e.requiredClasses)for(a=t.classes,n=0;n<o.length;++n)if("string"==typeof(i=o[n])){if(-1==CKEDITOR.tools.indexOf(a,i))return!1}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(a,i))return!1;return d(t.styles,e.requiredStyles)&&d(t.attributes,e.requiredAttributes)}function d(e,t){if(!t)return!0;for(var n,i=0;i<t.length;++i)if("string"==typeof(n=t[i])){if(!(n in e))return!1}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(e,n))return!1;return!0}function u(e){if(!e)return{};e=e.split(/\s*,\s*/).sort();for(var t={};e.length;)t[e.shift()]="cke-test";return t}function h(e){var t,n,i,o,a={},r=1;for(e=x(e);t=e.match(B);)(n=t[2])?(i=f(n,"styles"),o=f(n,"attrs"),n=f(n,"classes")):i=o=n=null,a["$"+r++]={elements:t[1],classes:n,styles:i,attributes:o},e=e.slice(t[0].length);return a}function f(e,t){var n=e.match(i[t]);return n?x(n[1]):null}function O(e){var t=e.styleBackup=e.attributes.style,n=e.classBackup=e.attributes["class"];e.styles||(e.styles=CKEDITOR.tools.parseCssText(t||"",1)),e.classes||(e.classes=n?n.split(/\s+/):[])}function m(e,t,n,i){var o,a=0;if(i.toHtml&&(t.name=t.name.replace(P,"$1")),i.doCallbacks&&e.elementCallbacks){e:{for(var r,s=0,l=(o=e.elementCallbacks).length;s<l;++s)if(r=o[s](t)){o=r;break e}o=void 0}if(o)return o}if(i.doTransform&&(o=e._.transformations[t.name])){for(O(t),s=0;s<o.length;++s)R(e,t,o[s]);D(t)}if(i.doFilter){e:{s=t.name,e=(l=e._).allowedRules.elements[s],o=l.allowedRules.generic,s=l.disallowedRules.elements[s],l=l.disallowedRules.generic,r=i.skipRequired;var c,d,u={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1};if(e||o){if(O(t),s)for(c=0,d=s.length;c<d;++c)if(!1===I(s[c],t,u)){e=null;break e}if(l)for(c=0,d=l.length;c<d;++c)I(l[c],t,u);if(e)for(c=0,d=e.length;c<d;++c)C(e[c],t,u,r);if(o)for(c=0,d=o.length;c<d;++c)C(o[c],t,u,r);e=u}else e=null}if(!e||!e.valid)return n.push(t),1;d=e.validAttributes;var h=e.validStyles;o=e.validClasses;s=t.attributes;var f=t.styles;l=t.classes;r=t.classBackup;var m,p,g=t.styleBackup,E=[],T=(u=[],/^data-cke-/);if(c=!1,delete s.style,delete s["class"],delete t.classBackup,delete t.styleBackup,!e.allAttributes)for(m in s)d[m]||T.test(m)&&(m==(p=m.replace(/^data-cke-saved-/,""))||d[p])||(delete s[m],c=!0);if(!e.allStyles||e.hadInvalidStyle){for(m in f)e.allStyles||h[m]?E.push(m+":"+f[m]):c=!0;E.length&&(s.style=E.sort().join("; "))}else g&&(s.style=g);if(!e.allClasses||e.hadInvalidClass){for(m=0;m<l.length;++m)(e.allClasses||o[l[m]])&&u.push(l[m]);u.length&&(s["class"]=u.sort().join(" ")),r&&u.length<r.split(/\s+/).length&&(c=!0)}else r&&(s["class"]=r);if(c&&(a=1),!i.skipFinalValidation&&!v(t))return n.push(t),1}return i.toHtml&&(t.name=t.name.replace(M,"cke:$1")),a}function e(e){var t,n=[];for(t in e)-1<t.indexOf("*")&&n.push(t.replace(/\*/g,".*"));return n.length?new RegExp("^(?:"+n.join("|")+")$"):null}function D(e){var t,n=e.attributes;delete n.style,delete n["class"],(t=CKEDITOR.tools.writeCssText(e.styles,!0))&&(n.style=t),e.classes.length&&(n["class"]=e.classes.sort().join(" "))}function v(e){switch(e.name){case"a":if(!(e.children.length||e.attributes.name||e.attributes.id))return!1;break;case"img":if(!e.attributes.src)return!1}return!0}function b(t){if(!t)return!1;if(!0===t)return!0;var n=e(t);return function(e){return e in t||n&&e.match(n)}}function p(){return new CKEDITOR.htmlParser.element("br")}function g(e){return e.type==CKEDITOR.NODE_ELEMENT&&("br"==e.name||w.$block[e.name])}function E(e,t,n){var i=e.name;if(w.$empty[i]||!e.children.length)"hr"==i&&"br"==t?e.replaceWith(p()):(e.parent&&n.push({check:"it",el:e.parent}),e.remove());else if(w.$block[i]||"tr"==i)if("br"==t)e.previous&&!g(e.previous)&&(t=p()).insertBefore(e),e.next&&!g(e.next)&&(t=p()).insertAfter(e),e.replaceWithChildren();else{var o;i=e.children;e:{o=w[t];for(var a,r=0,s=i.length;r<s;++r)if((a=i[r]).type==CKEDITOR.NODE_ELEMENT&&!o[a.name]){o=!1;break e}o=!0}if(o)e.name=t,e.attributes={},n.push({check:"parent-down",el:e});else{var l,c;for(r=(o=e.parent).type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==o.name,s=i.length;0<s;)a=i[--s],r&&(a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&w.$inline[a.name])?(l||((l=new CKEDITOR.htmlParser.element(t)).insertAfter(e),n.push({check:"parent-down",el:l})),l.add(a,0)):(l=null,c=w[o.name]||w.span,a.insertAfter(e),o.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||a.type!=CKEDITOR.NODE_ELEMENT||c[a.name]||n.push({check:"el-up",el:a}));e.remove()}}else i in{style:1,script:1}?e.remove():(e.parent&&n.push({check:"it",el:e.parent}),e.replaceWithChildren())}function R(e,t,n){var i,o;for(i=0;i<n.length;
7++i)if(!((o=n[i]).check&&!e.check(o.check,!1)||o.left&&!o.left(t))){o.right(t,A);break}}function n(e,t){var n,i,o,a,r=t.getDefinition(),s=r.attributes,l=r.styles;if(e.name!=r.element)return!1;for(n in s)if("class"==n){for(r=s[n].split(/\s+/),o=e.classes.join("|");a=r.pop();)if(-1==o.indexOf(a))return!1}else if(e.attributes[n]!=s[n])return!1;for(i in l)if(e.styles[i]!=l[i])return!1;return!0}function y(e,n){var t,i;return"string"==typeof e?t=e:e instanceof CKEDITOR.style?i=e:(t=e[0],i=e[1]),[{element:t,left:i,right:function(e,t){t.transform(e,n)}}]}function _(t){return function(e){return n(e,t)}}function K(n){return function(e,t){t[n](e)}}var o,k,w=CKEDITOR.dtd,S=CKEDITOR.tools.copy,x=CKEDITOR.tools.trim,N=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2,CKEDITOR.filter=function(e,t){this.allowedContent=[],this.disallowedContent=[],this.elementCallbacks=null,this.disabled=!1,this.editor=null,this.id=CKEDITOR.tools.getNextNumber(),this._={allowedRules:{elements:{},generic:[]},disallowedRules:{elements:{},generic:[]},transformations:{},cachedTests:{},cachedChecks:{}};var n=(CKEDITOR.filter.instances[this.id]=this).editor=e instanceof CKEDITOR.editor?e:null;if(n&&!t){this.customConfig=!0;var i=n.config.allowedContent;!0===i?this.disabled=!0:(i||(this.customConfig=!1),this.allow(i,"config",1),this.allow(n.config.extraAllowedContent,"extra",1),this.allow(N[n.enterMode]+" "+N[n.shiftEnterMode],"default",1),this.disallow(n.config.disallowedContent))}else this.customConfig=!1,this.allow(t||e,"default",1)},CKEDITOR.filter.instances={},CKEDITOR.filter.prototype={allow:function(e,t,n){if(!l(this,e,n))return!1;var i,o;if("string"==typeof e)e=h(e);else if(e instanceof CKEDITOR.style){if(e.toAllowedContentRules)return this.allow(e.toAllowedContentRules(this.editor),t,n);i=e.getDefinition(),e={},n=i.attributes,e[i.element]=i={styles:i.styles,requiredStyles:i.styles&&CKEDITOR.tools.objectKeys(i.styles)},n&&(n=S(n),i.classes=n["class"]?n["class"].split(/\s+/):null,i.requiredClasses=i.classes,delete n["class"],i.attributes=n,i.requiredAttributes=n&&CKEDITOR.tools.objectKeys(n))}else if(CKEDITOR.tools.isArray(e)){for(i=0;i<e.length;++i)o=this.allow(e[i],t,n);return o}return a(this,e,t,this.allowedContent,this._.allowedRules),!0},applyTo:function(e,r,t,n){if(this.disabled)return!1;var s,i,o,l=this,c=[],d=this.editor&&this.editor.config.protectedSource,u=!1,h={doFilter:!t,doTransform:!0,doCallbacks:!0,toHtml:r};for(e.forEach(function(e){if(e.type==CKEDITOR.NODE_ELEMENT){if("off"==e.attributes["data-cke-filter"])return!1;if(!r||"span"!=e.name||!~CKEDITOR.tools.objectKeys(e.attributes).join("|").indexOf("data-cke-"))if(1&(s=m(l,e,c,h)))u=!0;else if(2&s)return!1}else if(e.type==CKEDITOR.NODE_COMMENT&&e.value.match(/^\{cke_protected\}(?!\{C\})/)){var t;e:{var n,i,o,a=decodeURIComponent(e.value.replace(/^\{cke_protected\}/,""));if(t=[],d)for(i=0;i<d.length;++i)if((o=a.match(d[i]))&&o[0].length==a.length){t=!0;break e}1==(a=CKEDITOR.htmlParser.fragment.fromHtml(a)).children.length&&(n=a.children[0]).type==CKEDITOR.NODE_ELEMENT&&m(l,n,t,h),t=!t.length}t||c.push(e)}},null,!0),c.length&&(u=!0),e=[],n=N[n||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];t=c.pop();)t.type==CKEDITOR.NODE_ELEMENT?E(t,n,e):t.remove();for(;i=e.pop();)if((t=i.el).parent)switch(o=w[t.parent.name]||w.span,i.check){case"it":w.$removeEmpty[t.name]&&!t.children.length?E(t,n,e):v(t)||E(t,n,e);break;case"el-up":t.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||o[t.name]||E(t,n,e);break;case"parent-down":t.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||o[t.name]||E(t.parent,n,e)}return u},checkFeature:function(e){return!(!this.disabled&&e)||(e.toFeature&&(e=e.toFeature(this.editor)),!e.requiredContent||this.check(e.requiredContent))},disable:function(){this.disabled=!0},disallow:function(e){return!!l(this,e,!0)&&("string"==typeof e&&(e=h(e)),a(this,e,null,this.disallowedContent,this._.disallowedRules),!0)},addContentForms:function(e){if(!this.disabled&&e){var t,n,i,o=[];for(t=0;t<e.length&&!i;++t)("string"==typeof(n=e[t])||n instanceof CKEDITOR.style)&&this.check(n)&&(i=n);if(i){for(t=0;t<e.length;++t)o.push(y(e[t],i));this.addTransformations(o)}}},addElementCallback:function(e){this.elementCallbacks||(this.elementCallbacks=[]),this.elementCallbacks.push(e)},addFeature:function(e){return!(!this.disabled&&e)||(e.toFeature&&(e=e.toFeature(this.editor)),this.allow(e.allowedContent,e.name),this.addTransformations(e.contentTransformations),this.addContentForms(e.contentForms),!e.requiredContent||!this.customConfig&&!this.disallowedContent.length||this.check(e.requiredContent))},addTransformations:function(e){var t,n;if(!this.disabled&&e){var i,o=this._.transformations;for(i=0;i<e.length;++i){t=e[i];var a=void 0,r=void 0,s=void 0,l=void 0,c=void 0,d=void 0;for(n=[],r=0;r<t.length;
7++r)"string"==typeof(s=t[r])?(l=(s=s.split(/\s*:\s*/))[0],c=null,d=s[1]):(l=s.check,c=s.left,d=s.right),a||(a=(a=s).element?a.element:l?l.match(/^([a-z0-9]+)/i)[0]:a.left.getDefinition().element),c instanceof CKEDITOR.style&&(c=_(c)),n.push({check:l==a?null:l,left:c,right:"string"==typeof d?K(d):d});o[t=a]||(o[t]=[]),o[t].push(n)}}},check:function(e,t,n){if(this.disabled)return!0;if(CKEDITOR.tools.isArray(e)){for(var i=e.length;i--;)if(this.check(e[i],t,n))return!0;return!1}var o,a;if("string"==typeof e){if((a=e+"<"+(!1===t?"0":"1")+(n?"1":"0")+">")in this._.cachedChecks)return this._.cachedChecks[a];var r=(o=h(e).$1).styles;i=o.classes;o.name=o.elements,o.classes=i=i?i.split(/\s*,\s*/):[],o.styles=u(r),o.attributes=u(o.attributes),o.children=[],i.length&&(o.attributes["class"]=i.join(" ")),r&&(o.attributes.style=CKEDITOR.tools.writeCssText(o.styles))}else r=(o=e.getDefinition()).styles,i=o.attributes||{},r&&!CKEDITOR.tools.isEmpty(r)?(r=S(r),i.style=CKEDITOR.tools.writeCssText(r,!0)):r={},o={name:o.element,attributes:i,classes:i["class"]?i["class"].split(/\s+/):[],styles:r,children:[]};r=CKEDITOR.tools.clone(o);var s,l=[];if(!1!==t&&(s=this._.transformations[o.name])){for(i=0;i<s.length;++i)R(this,o,s[i]);D(o)}return m(this,r,l,{doFilter:!0,doTransform:!1!==t,skipRequired:!n,skipFinalValidation:!n}),0<l.length?n=!1:((t=o.attributes["class"])&&(o.attributes["class"]=o.attributes["class"].split(" ").sort().join(" ")),n=CKEDITOR.tools.objectCompare(o.attributes,r.attributes,!0),t&&(o.attributes["class"]=t)),"string"==typeof e&&(this._.cachedChecks[a]=n),n},getAllowedEnterMode:(o=["p","div","br"],k={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR},function(e,t){var n,i=o.slice();if(this.check(N[e]))return e;for(t||(i=i.reverse());n=i.pop();)if(this.check(n))return k[n];return CKEDITOR.ENTER_BR}),clone:function(){var e=new CKEDITOR.filter,t=CKEDITOR.tools.clone;return e.allowedContent=t(this.allowedContent),e._.allowedRules=t(this._.allowedRules),e.disallowedContent=t(this.disallowedContent),e._.disallowedRules=t(this._.disallowedRules),e._.transformations=t(this._.transformations),e.disabled=this.disabled,e.editor=this.editor,e},destroy:function(){delete CKEDITOR.filter.instances[this.id],delete this._,delete this.allowedContent,delete this.disallowedContent}};var A,L={styles:1,attributes:1,classes:1},F={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},B=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,i={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},P=/^cke:(object|embed|param)$/,M=/^(object|embed|param)$/;A=CKEDITOR.filter.transformationsTools={sizeToStyle:function(e){this.lengthToStyle(e,"width"),this.lengthToStyle(e,"height")},sizeToAttribute:function(e){this.lengthToAttribute(e,"width"),this.lengthToAttribute(e,"height")},lengthToStyle:function(e,t,n){if(!((n=n||t)in e.styles)){
8var i=e.attributes[t];i&&(/^\d+$/.test(i)&&(i+="px"),e.styles[n]=i)}delete e.attributes[t]},lengthToAttribute:function(e,t,n){if(!((n=n||t)in e.attributes)){var i=e.styles[t],o=i&&i.match(/^(\d+)(?:\.\d*)?px$/);o?e.attributes[n]=o[1]:"cke-test"==i&&(e.attributes[n]="cke-test")}delete e.styles[t]},alignmentToStyle:function(e){if(!("float"in e.styles)){var t=e.attributes.align;"left"!=t&&"right"!=t||(e.styles["float"]=t)}delete e.attributes.align},alignmentToAttribute:function(e){if(!("align"in e.attributes)){var t=e.styles["float"];"left"!=t&&"right"!=t||(e.attributes.align=t)}delete e.styles["float"]},splitBorderShorthand:function(e){if(e.styles.border){var t=CKEDITOR.tools.style.parse.border(e.styles.border);t.color&&(e.styles["border-color"]=t.color),t.style&&(e.styles["border-style"]=t.style),t.width&&(e.styles["border-width"]=t.width),delete e.styles.border}},listTypeToStyle:function(e){if(e.attributes.type)switch(e.attributes.type){case"a":e.styles["list-style-type"]="lower-alpha";break;case"A":e.styles["list-style-type"]="upper-alpha";break;case"i":e.styles["list-style-type"]="lower-roman";break;case"I":e.styles["list-style-type"]="upper-roman";break;case"1":e.styles["list-style-type"]="decimal";break;default:e.styles["list-style-type"]=e.attributes.type}},splitMarginShorthand:function(t){function e(e){t.styles["margin-top"]=n[e[0]],t.styles["margin-right"]=n[e[1]],t.styles["margin-bottom"]=n[e[2]],t.styles["margin-left"]=n[e[3]]}if(t.styles.margin){var n=t.styles.margin.match(/(\-?[\.\d]+\w+)/g)||["0px"];switch(n.length){case 1:e([0,0,0,0]);break;case 2:e([0,1,0,1]);break;case 3:e([0,1,2,1]);break;case 4:e([0,1,2,3])}delete t.styles.margin}},matchesStyle:n,transform:function(e,t){if("string"==typeof t)e.name=t;else{var n,i,o,a,r=t.getDefinition(),s=r.styles,l=r.attributes;for(n in e.name=r.element,l)if("class"==n)for(r=e.classes.join("|"),o=l[n].split(/\s+/);a=o.pop();)-1==r.indexOf(a)&&e.classes.push(a);else e.attributes[n]=l[n];for(i in s)e.styles[i]=s[i]}}}}(),CKEDITOR.focusManager=function(e){return e.focusManager?e.focusManager:(this.hasFocus=!1,this.currentActive=null,this._={editor:e},this)},CKEDITOR.focusManager._={blurDelay:200},CKEDITOR.focusManager.prototype={focus:function(e){this._.timer&&clearTimeout(this._.timer),e&&(this.currentActive=e),this.hasFocus||this._.locked||((e=CKEDITOR.currentInstance)&&e.focusManager.blur(1),this.hasFocus=!0,(e=this._.editor.container)&&e.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(e){function t(){if(this.hasFocus){this.hasFocus=!1;var e=this._.editor.container;e&&e.removeClass("cke_focus"),this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var n=CKEDITOR.focusManager._.blurDelay;e||!n?t.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer,t.call(this)},n,this)}},add:function(e,t){if(!(n=e.getCustomData("focusmanager"))||n!=this){n&&n.remove(e);var n="focus",i="blur";t&&(CKEDITOR.env.ie?(n="focusin",i="focusout"):CKEDITOR.event.useCapture=1);var o={blur:function(){e.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(e)}};e.on(n,o.focus,this),e.on(i,o.blur,this),t&&(CKEDITOR.event.useCapture=0),e.setCustomData("focusmanager",this),e.setCustomData("focusmanager_handlers",o)}},remove:function(e){e.removeCustomData("focusmanager");var t=e.removeCustomData("focusmanager_handlers");e.removeListener("blur",t.blur),e.removeListener("focus",t.focus)}},CKEDITOR.keystrokeHandler=function(e){return e.keystrokeHandler?e.keystrokeHandler:(this.keystrokes={},this.blockedKeystrokes={},this._={editor:e},this)},f=function(e){var t=(e=e.data).getKeystroke(),n=this.keystrokes[t],i=this._.editor;return(h=!1===i.fire("key",{keyCode:t,domEvent:e}))||(n&&(h=!1!==i.execCommand(n,{from:"keystrokeHandler"})),h||(h=!!this.blockedKeystrokes[t])),h&&e.preventDefault(!0),!h},m=function(e){h&&(h=!1,e.data.preventDefault(!0))},CKEDITOR.keystrokeHandler.prototype={attach:function(e){e.on("key
8down",f,this),CKEDITOR.env.gecko&&CKEDITOR.env.mac&&e.on("keypress",m,this)}},CKEDITOR.lang={languages:{af:1,ar:1,az:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,ms:1,nb:1,nl:1,no:1,oc:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(e,t,n){e&&CKEDITOR.lang.languages[e]||(e=this.detect(t,e));var i=this;t=function(){i[e].dir=i.rtl[e]?"rtl":"ltr",n(e,i[e])},this[e]?t():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+e+".js"),t,this)},detect:function(e,t){var n=this.languages,i=(o=(t=t||navigator.userLanguage||navigator.language||e).toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/))[1],o=o[2];return n[i+"-"+o]?i=i+"-"+o:n[i]||(i=null),CKEDITOR.lang.detect=i?function(){return i}:function(e){return e},i||e}},CKEDITOR.scriptLoader=(p={},g={},{load:function(e,i,t,n){var o="string"==typeof e;o&&(e=[e]),t||(t=CKEDITOR);var a=e.length,r=[],s=[],l=function(e){i&&(o?i.call(t,e):i.call(t,r,s))};if(0===a)l(!0);else{var c=function(e,t){(t?r:s).push(e),--a<=0&&(n&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),l(t))},d=function(e,t){p[e]=1;var n=g[e];delete g[e];for(var i=0;i<n.length;i++)n[i](e,t)},u=function(e){if(p[e])c(e,!0);else{var t=g[e]||(g[e]=[]);if(t.push(c),!(1<t.length)){var n=new CKEDITOR.dom.element("script");n.setAttributes({type:"text/javascript",src:e}),i&&(CKEDITOR.env.ie&&(CKEDITOR.env.version<=8||CKEDITOR.env.ie9Compat)?n.$.onreadystatechange=function(){"loaded"!=n.$.readyState&&"complete"!=n.$.readyState||(n.$.onreadystatechange=null,d(e,!0))}:(n.$.onload=function(){setTimeout(function(){d(e,!0)},0)},n.$.onerror=function(){d(e,!1)})),n.appendTo(CKEDITOR.document.getHead())}}};n&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var h=0;h<a;h++)u(e[h])}},queue:function(){function i(){var e;(e=o[0])&&this.load(e.scriptUrl,e.callback,CKEDITOR,0)}var o=[];return function(e,t){var n=this;o.push({scriptUrl:e,callback:function(){t&&t.apply(this,arguments),o.shift(),i.call(n)}}),1==o.length&&i.call(this)}}()}),CKEDITOR.resourceManager=function(e,t){this.basePath=e,this.fileName=t,this.registered={},this.loaded={},this.externals={},this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(e,t){if(this.registered[e])throw Error('[CKEDITOR.resourceManager.add] The resource name "'+e+'" is already registered.');var n=this.registered[e]=t||{};return n.name=e,n.path=this.getPath(e),CKEDITOR.fire(e+CKEDITOR.tools.capitalize(this.fileName)+"Ready",n),this.get(e)},get:function(e){return this.registered[e]||null},getPath:function(e){var t=this.externals[e];return CKEDITOR.getUrl(t&&t.dir||this.basePath+e+"/")},getFilePath:function(e){var t=this.externals[e];return CKEDITOR.getUrl(this.getPath(e)+(t?t.file:this.fileName+".js"))},addExternal:function(e,t,n){e=e.split(",");for(var i=0;i<e.length;i++){var o=e[i];n||(t=t.replace(/[^\/]+$/,function(e){return n=e,""})),this.externals[o]={dir:t,file:n||this.fileName+".js"}}},load:function(e,r,s){CKEDITOR.tools.isArray(e)||(e=e?[e]:[]);for(var l=this.loaded,t=this.registered,n=[],c={},d={},i=0;i<e.length;i++){var o=e[i];if(o)if(l[o]||t[o])d[o]=this.get(o);else{var a=this.getFilePath(o);n.push(a),a in c||(c[a]=[]),c[a].push(o)}}CKEDITOR.scriptLoader.load(n,function(e,t){if(t.length)throw Error('[CKEDITOR.resourceManager.load] Resource name "'+c[t[0]].join(",")+'" was not found at "'+t[0]+'".');for(var n=0;n<e.length;n++)for(var i=c[e[n]],o=0;o<i.length;o++){var a=i[o];d[a]=this.get(a),l[a]=1}r.call(s,d)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(t){var u={};return function(e,s,l){var c={},d=function(e){t.call(this,e,function(e){CKEDITOR.tools.extend(c,e);var t,n=[];for(t in e){var i=e[t],o=i&&i.requires;if(!u[t]){if(i.icons)for(var a=i.icons.split(","),r=a.length;r--;)CKEDITOR.skin.addIcon(a[r],i.path+"icons/"+(CKEDITOR.env.hidpi&&i.hidpi?"hidpi/":"")+a[r]+".png");u[t]=1}if(o)for(o.split&&(o=o.split(",")),i=0;i<o.length;i++)c[o[i]]||n.push(o[i])}if(n.length)d.call(this,n);
8else{for(t in c)(i=c[t]).onLoad&&!i.onLoad._called&&(!1===i.onLoad()&&delete c[t],i.onLoad._called=1);s&&s.call(l||window,c)}},this)};d.call(this,e)}}),CKEDITOR.plugins.setLang=function(e,t,n){var i=this.get(e);e=i.langEntries||(i.langEntries={}),(i=i.lang||(i.lang=[])).split&&(i=i.split(",")),-1==CKEDITOR.tools.indexOf(i,t)&&i.push(t),e[t]=n},CKEDITOR.ui=function(e){return e.ui?e.ui:(this.items={},this.instances={},this.editor=e,this._={handlers:{}},this)},CKEDITOR.ui.prototype={add:function(e,t,n){n.name=e.toLowerCase();var i=this.items[e]={type:t,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(i,n)},get:function(e){return this.instances[e]},create:function(e){var t=this.items[e],n=t&&this._.handlers[t.type],i=t&&t.command&&this.editor.getCommand(t.command);n=n&&n.create.apply(this,t.args);return this.instances[e]=n,i&&i.uiItems.push(n),n&&!n.type&&(n.type=t.type),n},addHandler:function(e,t){this._.handlers[e]=t},space:function(e){return CKEDITOR.document.getById(this.spaceId(e))},spaceId:function(e){return this.editor.id+"_"+e}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function e(e,t,n){if(CKEDITOR.event.call(this),e=e&&CKEDITOR.tools.clone(e),void 0!==t){if(!(t instanceof CKEDITOR.dom.element))throw Error("Expect element of type CKEDITOR.dom.element.");if(!n)throw Error("One of the element modes must be specified.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&n==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!o(t,n))throw Error('The specified element mode is not supported on element: "'+t.getName()+'".');this.element=t,this.elementMode=n,this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(t.getId()||t.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE;this._={},this.commands={},this.templates={},this.name=this.name||i(),this.id=CKEDITOR.tools.getNextId(),this.status="unloaded",this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config),this.ui=new CKEDITOR.ui(this),this.focusManager=new CKEDITOR.focusManager(this),this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this),this.on("readOnly",a),this.on("selectionChange",function(e){s(this,e.data.path)}),this.on("activeFilterChange",function(){s(this,this.elementPath(),!0)}),this.on("mode",a),this.on("instanceReady",function(){if(this.config.startupFocus){if("end"===this.config.startupFocus){var e=this.createRange();e.selectNodeContents(this.editable()),e.shrink(CKEDITOR.SHRINK_ELEMENT,!0),e.collapse(),this.getSelection().selectRanges([e])}this.focus()}}),CKEDITOR.fire("instanceCreated",null,this),CKEDITOR.add(this),CKEDITOR.tools.setTimeout(function(){"destroyed"!==this.status?c(this,e):CKEDITOR.warn("editor-incorrect-destroy")},0,this)}function i(){do{var e="editor"+ ++m}while(CKEDITOR.instances[e]);return e}function o(e,t){return t==CKEDITOR.ELEMENT_MODE_INLINE?e.is(CKEDITOR.dtd.$editable)||e.is("textarea"):t==CKEDITOR.ELEMENT_MODE_REPLACE?!e.is(CKEDITOR.dtd.$nonBodyContent):1}function a(){var e,t=this.commands;for(e in t)r(this,t[e])}function r(e,t){t[t.startDisabled?"disable":e.readOnly&&!t.readOnly?"disable":t.modes[e.mode]?"enable":"disable"]()}function s(e,t,n){if(t){var i,o,a=e.commands;for(o in a)i=a[o],(n||i.contextSensitive)&&i.refresh(e,t)}}function l(e){if(!(t=e.config.customConfig))return!1;var t=CKEDITOR.getUrl(t),n=p[t]||(p[t]={});return n.fn?(n.fn.call(e,e.config),CKEDITOR.getUrl(e.config.customConfig)!=t&&l(e)||e.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(t,function(){n.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){},l(e)}),!0}function c(t,n){t.on("customConfigLoaded",function(){if(n){if(n.on)for(var e in n.on)t.on(e,n.on[e]);CKEDITOR.tools.extend(t.config,n,!0),delete t.config.on}e=t.config,t.readOnly=!!e.readOnly||(t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?t.element.is("textarea")?t.element.hasAttribute("disabled")||t.element.hasAttribute("readonly"):t.element.isReadOnly():t.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(t.element.hasAttribute("disabled")||t.element.hasAttribute("readonly"))),t.blockless=t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!(t.element.is("textarea")||CKEDITOR.dtd[t.element.getName()].p),t.tabIndex=e.tabIndex||t.element&&t.element.getAttribute("tabindex")||0,t.activeEnterMode=t.enterMode=t.blockless?CKEDITOR.ENTER_BR:e.enterMode,t.activeShiftEnterMode=t.shiftEnterMode=t.blockless?CKEDITOR.ENTER_BR:e.shiftEnterMode,e.skin&&(CKEDITOR.skinName=e.skin),t.fireOnce("configLoaded"),t.dataProcessor=new CKEDITOR.htmlDataProcessor(t),t.filter=t.activeFilter=new CKEDITOR.filter(t),d(t)}),n&&null!=n.customConfig&&(t.config.customConfig=n.customConfig),l(t)||t.fireOnce("customConfigLoaded")}function d(e){CKEDITOR.skin.loadPart("editor",function(){t(e)})}function t(i){CKEDITOR.lang.load(i.config.language,i.config.defaultLanguage,function(e,t){var n=i.config.title;i.langCode=e,i.lang=CKEDITOR.tools.prototypedCopy(t),i.title="string"==typeof n||!1===n?n:[i.lang.editor,i.name].join(", "),i.c
8onfig.contentsLangDirection||(i.config.contentsLangDirection=i.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?i.element.getDirection(1):i.lang.dir),i.fire("langLoaded"),u(i)})}function u(t){t.getStylesSet(function(e){t.once("loaded",function(){t.fire("stylesSet",{styles:e})},null,null,1),n(t)})}function n(d){function e(e){return e?(CKEDITOR.tools.isArray(e)&&(e=e.join(",")),e.replace(/\s/g,"")):""}var u=d.config,t=e(u.plugins),n=e(u.extraPlugins),i=e(u.removePlugins);if(n){var o=new RegExp("(?:^|,)(?:"+n.replace(/,/g,"|")+")(?=,|$)","g");t=(t=t.replace(o,""))+","+n}if(i){var h=new RegExp("(?:^|,)(?:"+i.replace(/,/g,"|")+")(?=,|$)","g");t=t.replace(h,"")}CKEDITOR.env.air&&(t+=",adobeair"),CKEDITOR.plugins.load(t.split(","),function(e){var o=[],a=[],t=[];for(var n in d.plugins=CKEDITOR.tools.extend({},d.plugins,e),e){var i,r=e[n],s=r.lang,l=null,c=r.requires;if(CKEDITOR.tools.isArray(c)&&(c=c.join(",")),c&&(i=c.match(h)))for(;c=i.pop();)CKEDITOR.error("editor-plugin-required",{plugin:c.replace(",",""),requiredBy:n});s&&!d.lang[n]&&(s.split&&(s=s.split(",")),0<=CKEDITOR.tools.indexOf(s,d.langCode)?l=d.langCode:l=(l=d.langCode.replace(/-.*/,""))!=d.langCode&&0<=CKEDITOR.tools.indexOf(s,l)?l:0<=CKEDITOR.tools.indexOf(s,"en")?"en":s[0],r.langEntries&&r.langEntries[l]?(d.lang[n]=r.langEntries[l],l=null):t.push(CKEDITOR.getUrl(r.path+"lang/"+l+".js"))),a.push(l),o.push(r)}CKEDITOR.scriptLoader.load(t,function(){for(var e=["beforeInit","init","afterInit"],t=0;t<e.length;t++)for(var n=0;n<o.length;n++){var i=o[n];0===t&&a[n]&&i.lang&&i.langEntries&&(d.lang[i.name]=i.langEntries[a[n]]),i[e[t]]&&i[e[t]](d)}for(d.fireOnce("pluginsLoaded"),u.keystrokes&&d.setKeystroke(d.config.keystrokes),n=0;n<d.config.blockedKeystrokes.length;n++)d.keystrokeHandler.blockedKeystrokes[d.config.blockedKeystrokes[n]]=1;d.status="loaded",d.fireOnce("loaded"),CKEDITOR.fire("instanceLoaded",null,d)})})}function h(){var e=this.element;if(e&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var t=this.getData();return this.config.htmlEncodeOutput&&(t=CKEDITOR.tools.htmlEncode(t)),e.is("textarea")?e.setValue(t):e.setHtml(t),!0}return!1}function f(e,t){function n(e){var t=e.startContainer,n=e.endContainer;return!(!t.is||!(t.is("tr")||t.is("td")&&t.equals(n)&&e.endOffset===t.getChildCount()))}function i(e){var t=e.startContainer;return t.is("tr")?e.cloneContents():t.clone(!0)}for(var o,a,r,s=new CKEDITOR.dom.documentFragment,l=0;l<e.length;l++){var c=e[l],d=c.startContainer.getAscendant("tr",!0);n(c)?(o||((o=d.getAscendant("table").clone()).append(d.getAscendant({thead:1,tbody:1,tfoot:1}).clone()),s.append(o),o=o.findOne("thead, tbody, tfoot")),a&&a.equals(d)||(r=(a=d).clone(),o.append(r)),r.append(i(c))):s.append(c.cloneContents())}return o?s:t.getHtmlFromRange(e[0])}e.prototype=CKEDITOR.editor.prototype,CKEDITOR.editor=e;var m=0,p={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{plugins:{detectConflict:function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(this[i])return CKEDITOR.warn("editor-plugin-conflict",{plugin:e,replacedWith:i}),!0}return!1}},addCommand:function(e,t){t.name=e.toLowerCase();var n=t instanceof CKEDITOR.command?t:new CKEDITOR.command(this,t);return this.mode&&r(this,n),this.commands[e]=n},_attachToForm:function(){function t(e){n.updateElement(),n._.required&&!i.getValue()&&!1===n.fire("required")&&e.data.preventDefault()}function e(e){return!!(e&&e.call&&e.apply)}var n=this,i=n.element,o=new CKEDITOR.dom.element(i.$.form);i.is("textarea")&&o&&(o.on("submit",t),e(o.$.submit)&&(o.$.submit=CKEDITOR.tools.override(o.$.submit,function(e){return function(){t(),e.apply?e.apply(this):e()}})),n.on("destroy",function(){o.removeListener("submit",t)}))},destroy:function(e){var t=CKEDITOR.filter.instances,n=this;this.fire("beforeDestroy"),!e&&h.call(this),this.editable(null),this.filter&&delete this.filter,CKEDITOR.tools.array.forEach(CKEDITOR.tools.objectKeys(t),function(e){e=t[e],n===e.editor&&e.destroy()}),delete this.activeFilter,this.status="destroyed",this.fire("destroy"),this.removeAllListeners(),CKEDITOR.remove(this),CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(e){if(!e){if(!(e=this.getSelection()))return null;e=e.getStartElement()}return e?new CKEDITOR.dom.elementPath(e,this.editable()):null},createRange:function(){var e=this.editable();return e?new CKEDITOR.dom.range(e):null},execCommand:function(e,t){var n=this.getCommand(e),i={name:e,commandData:t||{},command:n};return!(!n||n.state==CKEDITOR.TRISTATE_DISABLED||!1===this.fire("beforeCommandExec",i)||(i.returnValue=n.exec(i.commandData),n.async||!1===this.fire("afterCommandExec",i)))&&i.returnValue},getCommand:function(e){return this.commands[e]},getData:function(e){!e&&this.fire("beforeGetData");var t=this._.data;return"string"!=typeof t&&(t=(t=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?t.is("textarea")?t.getValue():t.getHtml():""),t={dataValue:t},!e&&this.fire("getData",t),t.dataValue},getSnapshot:function(){var e=this.fire("getSnapshot");return"string"!=typeof e&&(e=(e=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?e.is("textarea")?e.getValue():e.getHtml():""),e}
8,loadSnapshot:function(e){this.fire("loadSnapshot",e)},setData:function(e,t,n){var i=!0,o=t;t&&"object"==typeof t&&(n=t.internal,o=t.callback,i=!t.noSnapshot),!n&&i&&this.fire("saveSnapshot"),!o&&n||this.once("dataReady",function(e){!n&&i&&this.fire("saveSnapshot"),o&&o.call(e.editor)}),e={dataValue:e},!n&&this.fire("setData",e),this._.data=e.dataValue,!n&&this.fire("afterSetData",e)},setReadOnly:function(e){e=null==e||e,this.readOnly!=e&&(this.readOnly=e,this.keystrokeHandler.blockedKeystrokes[8]=+e,this.editable().setReadOnly(e),this.fire("readOnly"))},insertHtml:function(e,t,n){this.fire("insertHtml",{dataValue:e,mode:t,range:n})},insertText:function(e){this.fire("insertText",e)},insertElement:function(e){this.fire("insertElement",e)},getSelectedHtml:function(e){var t=this.editable(),n=(n=this.getSelection())&&n.getRanges();return t&&n&&0!==n.length?(t=f(n,t),e?t.getHtml():t):null},extractSelectedHtml:function(e,t){var n,i=this.editable(),o=this.getSelection().getRanges(),a=new CKEDITOR.dom.documentFragment;if(!i||0===o.length)return null;for(n=0;n<o.length;n++)a.append(i.extractHtmlFromRange(o[n],t));
8return t||this.getSelection().selectRanges([o[0]]),e?a.getHtml():a},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==this.status&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return h.call(this)},setKeystroke:function(e){for(var t,n,i=this.keystrokeHandler.keystrokes,o=CKEDITOR.tools.isArray(e)?e:[[].slice.call(arguments,0)],a=o.length;a--;)t=o[a],n=0,CKEDITOR.tools.isArray(t)&&(n=t[1],t=t[0]),n?i[t]=n:delete i[t]},getCommandKeystroke:function(e,t){var n="string"==typeof e?this.getCommand(e):e,i=[];if(n){var o=CKEDITOR.tools.object.findKey(this.commands,n),a=this.keystrokeHandler.keystrokes;if(n.fakeKeystroke)i.push(n.fakeKeystroke);else for(var r in a)a[r]===o&&i.push(r)}return t?i:i[0]||null},addFeature:function(e){return this.filter.addFeature(e)},setActiveFilter:function(e){e||(e=this.filter),this.activeFilter!==e&&(this.activeFilter=e,this.fire("activeFilterChange"),e===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(e.getAllowedEnterMode(this.enterMode),e.getAllowedEnterMode(this.shiftEnterMode,!0)))},setActiveEnterMode:function(e,t){e=e?this.blockless?CKEDITOR.ENTER_BR:e:this.enterMode,t=t?this.blockless?CKEDITOR.ENTER_BR:t:this.shiftEnterMode,this.activeEnterMode==e&&this.activeShiftEnterMode==t||(this.activeEnterMode=e,this.activeShiftEnterMode=t,this.fire("activeEnterModeChange"))},showNotification:function(e){alert(e)}})}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--\x3e)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},E=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,T={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1},CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(e){for(var t,n,i,o=0;t=this._.htmlPartsRegex.exec(e);)if(o<(n=t.index)&&(o=e.substring(o,n),i?i.push(o):this.onText(o)),o=this._.htmlPartsRegex.lastIndex,!(n=t[1])||(n=n.toLowerCase(),i&&CKEDITOR.dtd.$cdata[n]&&(this.onCDATA(i.join("")),i=null),i))if(i)i.push(t[0]);else if(n=t[3]){if(n=n.toLowerCase(),!/="/.test(n)){var a,r={},s=t[4];if(t=!!t[5],s)for(;a=E.exec(s);){var l=a[1].toLowerCase();a=a[2]||a[3]||a[4]||"",r[l]=!a&&T[l]?l:CKEDITOR.tools.htmlDecodeAttr(a)}this.onTagOpen(n,r,t),!i&&CKEDITOR.dtd.$cdata[n]&&(i=[])}}else(n=t[2])&&this.onComment(n);else this.onTagClose(n);e.length>o&&this.onText(e.substring(o,e.length))}},CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(e){this._.output.push("<",e)},openTagClose:function(e,t){t?this._.output.push(" />"):this._.output.push(">")},attribute:function(e,t){"string"==typeof t&&(t=CKEDITOR.tools.htmlEncodeAttr(t)),this._.output.push(" ",e,'="',t,'"')},closeTag:function(e){this._.output.push("</",e,">")},text:function(e){this._.output.push(e)},comment:function(e){this._.output.push("<!--",e,"-->")},write:function(e){this._.output.push(e)},reset:function(){this._.output=[],this._.indent=!1},getHtml:function(e){var t=this._.output.join("");return e&&this.reset(),t}}}),CKEDITOR.htmlParser.node=function(){},CKEDITOR.htmlParser.node.prototype={remove:function(){var e=this.parent.children,t=CKEDITOR.tools.indexOf(e,this),n=this.previous,i=this.next;n&&(n.next=i),i&&(i.previous=n),e.splice(t,1),this.parent=null},replaceWith:function(e){var t=this.parent.children,n=CKEDITOR.tools.indexOf(t,this),i=e.previous=this.previous,o=e.next=this.next;i&&(i.next=e),o&&(o.previous=e),(t[n]=e).parent=this.parent,this.parent=null},insertAfter:function(e){var t=e.parent.children,n=CKEDITOR.tools.indexOf(t,e),i=e.next;t.splice(n+1,0,this),this.next=e.next,(this.previous=e).next=this,i&&(i.previous=this),this.parent=e.parent},insertBefore:function(e){var t=e.parent.children,n=CKEDITOR.tools.indexOf(t,e);t.splice(n,0,this),this.next=e,(this.previous=e.previous)&&(e.previous.next=this),(e.previous=this).parent=e.parent},getAscendant:function(t){for(var e="function"==typeof t?t:"string"==typeof t?function(e){return e.name==t}:function(e){return e.name in t},n=this.parent;n&&n.type==CKEDITOR.NODE_ELEMENT;){if(e(n))return n;n=n.parent}return null},wrapWith:function(e){return this.replaceWith(e),e.add(this),e},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(e){return e||{}}},CKEDITOR.htmlParser.comment=function(e){this.value=e,this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(e,t){var n=this.value;return(n=e.onComment(t,n,this))?"string"!=typeof n?(this.replaceWith(n),!1):(this.value=n,!0):(this.remove(),!1)},writeHtml:function(e,t){t&&this.filter(t),e.comment(this.value)}}),CKEDITOR.htmlParser.text=function(e){this.value=e,this._={isBlockLike:!1}},CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(e,t){if(!(this.value=e.onText(t,this.value,this)))return this.remove(),!1},writeHtml:function(e,t){t&&this.filter(t),e.text(this.value)}}),CKEDITOR.htmlParser.cdata=function(e){this.value=e},CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(e){e.write(this.value)}}),CKEDITOR.htmlParser.fragment=function(){this.children=[],this.parent=null,this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function T(e){return!e.attributes["data-cke-survive"]&&("a"==e.name&&e.attributes.href||CKEDITOR.dtd.$removeEmpty[e.name])}var C=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),I={ol:1,ul:1},O=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),i={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(e,t,r){function o(e){var t;if(0<f.length)for(var n=0;n<f.length;n++){var i=f[n],o=i.name,a=CKEDITOR.dtd[o],r=p.name&&CKEDITOR.dtd[p.name];r&&!r[o]||e&&a&&!a[e]&&CKEDITOR.dtd[e]?o==p.name&&(l(p,p.parent,1),n--):(t||(s(),t=1),(i=i.clone()).parent=p,p=i,f.splice(n,1),n--)}}function s(){for(;m.length;)l(m.shift(),p)}function a(e){if(e._.isBlockLike&&"pre"!=e.name&&"textarea"!=e.name){var t,n=e.children.length,i=e.children[n-1];i&&i.type==CKEDITOR.NODE_TEXT&&((t=CKEDITOR.tools.rtrim(i.value))?i.value=t:e.children.length=n-1)}}function l(e,t,n){t=t||p||h;var i=p;void 0===e.previous&&(c(t,e)&&(p=t,u.onTagOpen(r,{}),e.returnPoint=t=p),a(e),T(e)&&!e.children.length||t.add(e),"pre"==e.name&&(E=!1),"textarea"==e.name&&(g=!1)),e.returnPoint?(p=e.returnPoint,delete e.returnPoint):p=n?t:i}function c(e,t){var n,i;if((e==h||"body"==e.name)&&r&&(!e.name||CKEDITOR.dtd[e.name][r]))return(n=t.attributes&&(i=t.attributes["data-cke-real-element-type"])?i:t.name)&&n in CKEDITOR.dtd.$inline&&!(n in CKEDITOR.dtd.head)&&!t.isOrphan||t.type==CKEDITOR.NODE_TEXT}function d(e,t){return(e in CKEDITOR.dtd.$listItem||e in CKEDITOR.dtd.$tableContent)&&(e==t||"dt"==e&&"dd"==t||"dd"==e&&"dt"==t)}var u=new CKEDITOR.htmlParser,h=t instanceof CKEDITOR.htmlParser.element?t:"string"==typeof t?new CKEDITOR.htmlParser.element(t):new CKEDITOR.htmlParser.fragment,f=[],m=[],p=h,g="textarea"==h.name,E="pre"==h.name;for(u.onTagOpen=function(e,t,n,i){if((t=new CKEDITOR.htmlParser.element(e,t)).isUnknown&&n&&(t.isEmpty=!0),t.isOptionalClose=i,T(t))f.push(t);else{if("pre"==e)E=!0;else{if("br"==e&&E)return void p.add(new CKEDITOR.htmlParser.text("\n"));"textarea"==e&&(g=!0)}if("br"==e)m.push(t);else{for(;i=(n=p.name)?CKEDITOR.dtd[n]||(p._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):O,!(t.isUnknown||p.isUnknown||i[e]);)if(p.isOptionalClose)u.onTagClose(n);else if(e in I&&n in I)(n=(n=p.children)[n.length-1])&&"li"==n.name||l(n=new CKEDITOR.htmlParser.element("li"),p),!t.returnPoint&&(t.returnPoint=p),p=n;else if(e in CKEDITOR.dtd.$listItem&&!d(e,n))u.onTagOpen("li"==e?"ul":"dl",{},0,1);else if(n in C&&!d(e,n))!t.returnPoint&&(t.returnPoint=p),p=p.parent;else{if(n in CKEDITOR.dtd.$inline&&f.unshift(p),!p.parent){t.isOrphan=1;break}l(p,p.parent,1)}o(e),s(),t.parent=p,t.isEmpty?l(t):p=t}}},u.onTagClose=function(e){for(var t=f.length-1;0<=t;t--)if(e==f[t].name)return void f.splice(t,1);for(var n=[],i=[],o=p;o!=h&&o.name!=e;)o._.isBlockLike||i.unshift(o),n.push(o),o=o.returnPoint||o.parent;if(o!=h){for(t=0;t<n.length;t++){var a=n[t];l(a,a.parent)}(p=o)._.isBlockLike&&s(),l(o,o.parent),o==p&&(p=p.parent),f=f.concat(i)}"body"==e&&(r=!1)},u.onText=function(e){if(p._.hasInlineStarted&&!m.length||E||g||0!==(e=CKEDITOR.tools.ltrim(e)).length){var t=p.name,n=t?CKEDITOR.dtd[t]||(p._.
8isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):O;!g&&!n["#"]&&t in C?(u.onTagOpen(i[t]||""),u.onText(e)):(s(),o(),E||g||(e=e.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," ")),e=new CKEDITOR.htmlParser.text(e),c(p,e)&&this.onTagOpen(r,{},0,1),p.add(e))}},u.onCDATA=function(e){p.add(new CKEDITOR.htmlParser.cdata(e))},u.onComment=function(e){s(),o(),p.add(new CKEDITOR.htmlParser.comment(e))},u.parse(e),s();p!=h;)l(p,p.parent,1);return a(h),h},CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(e,t){isNaN(t)&&(t=this.children.length);var n=0<t?this.children[t-1]:null;if(n){if(e._.isBlockLike&&n.type==CKEDITOR.NODE_TEXT&&(n.value=CKEDITOR.tools.rtrim(n.value),0===n.value.length))return this.children.pop(),void this.add(e);n.next=e}e.previous=n,(e.parent=this).children.splice(t,0,e),this._.hasInlineStarted||(this._.hasInlineStarted=e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&!e._.isBlockLike)},filter:function(e,t){t=this.getFilterContext(t),e.onRoot(t,this),this.filterChildren(e,!1,t)},filterChildren:function(e,t,n){if(this.childrenFilteredBy!=e.id)for(n=this.getFilterContext(n),t&&!this.parent&&e.onRoot(n,this),this.childrenFilteredBy=e.id,t=0;t<this.children.length;t++)!1===this.children[t].filter(e,n)&&t--},writeHtml:function(e,t){t&&this.filter(t),this.writeChildrenHtml(e)},writeChildrenHtml:function(e,t,n){var i=this.getFilterContext();for(n&&!this.parent&&t&&t.onRoot(i,this),t&&this.filterChildren(t,!1,i),t=0,i=(n=this.children).length;t<i;t++)n[t].writeHtml(e)},forEach:function(e,t,n){if(!(n||t&&this.type!=t))var i=e(this);if(!1!==i){n=this.children;for(var o=0;o<n.length;o++)(i=n[o]).type==CKEDITOR.NODE_ELEMENT?i.forEach(e,t):t&&i.type!=t||e(i)}},getFilterContext:function(e){return e||{}}}}(),function(){function r(){this.rules=[]}function i(e,t,n,i){var o,a;for(o in t)(a=e[o])||(a=e[o]=new r),a.add(t[o],n,i)}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(e){this.id=CKEDITOR.tools.getNextNumber(),this.elementNameRules=new r,this.attributeNameRules=new r,this.elementsRules={},this.attributesRules={},this.textRules=new r,this.commentRules=new r,this.rootRules=new r,e&&this.addRules(e,10)},proto:{addRules:function(e,t){var n;"number"==typeof t?n=t:t&&"priority"in t&&(n=t.priority),"number"!=typeof n&&(n=10),"object"!=typeof t&&(t={}),e.elementNames&&this.elementNameRules.addMany(e.elementNames,n,t),e.attributeNames&&this.attributeNameRules.addMany(e.attributeNames,n,t),e.elements&&i(this.elementsRules,e.elements,n,t),e.attributes&&i(this.attributesRules,e.attributes,n,t),e.text&&this.textRules.add(e.text,n,t),e.comment&&this.commentRules.add(e.comment,n,t),e.root&&this.rootRules.add(e.root,n,t)},applyTo:function(e){e.filter(this)},onElementName:function(e,t){return this.elementNameRules.execOnName(e,t)},onAttributeName:function(e,t){return this.attributeNameRules.execOnName(e,t)},onText:function(e,t,n){return this.textRules.exec(e,t,n)},onComment:function(e,t,n){return this.commentRules.exec(e,t,n)},onRoot:function(e,t){return this.rootRules.exec(e,t)},onElement:function(e,t){for(var n,i=[this.elementsRules["^"],this.elementsRules[t.n
8ame],this.elementsRules.$],o=0;o<3;o++)if(n=i[o]){if(!1===(n=n.exec(e,t,this)))return null;if(n&&n!=t)return this.onNode(e,n);if(t.parent&&!t.name)break}return t},onNode:function(e,t){var n=t.type;return n==CKEDITOR.NODE_ELEMENT?this.onElement(e,t):n==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(e,t.value)):n==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(e,t.value)):null},onAttribute:function(e,t,n,i){return(n=this.attributesRules[n])?n.exec(e,i,t,this):i}}}),(CKEDITOR.htmlParser.filterRulesGroup=r).prototype={add:function(e,t,n){this.rules.splice(this.findIndex(t),0,{value:e,priority:t,options:n})},addMany:function(e,t,n){for(var i=[this.findIndex(t),0],o=0,a=e.length;o<a;o++)i.push({value:e[o],priority:t,options:n})
9;this.rules.splice.apply(this.rules,i)},findIndex:function(e){for(var t=this.rules,n=t.length-1;0<=n&&e<t[n].priority;)n--;return n+1},exec:function(e,t){var n,i,o,a,r=t instanceof CKEDITOR.htmlParser.node||t instanceof CKEDITOR.htmlParser.fragment,s=Array.prototype.slice.call(arguments,1),l=this.rules,c=l.length;for(a=0;a<c;a++)if(r&&(n=t.type,i=t.name),o=l[a],!(e.nonEditable&&!o.options.applyToAll||e.nestedEditable&&o.options.excludeNestedEditable)){if(!1===(o=o.value.apply(null,s))||r&&o&&(o.name!=i||o.type!=n))return o;null!=o&&(s[0]=t=o)}return t},execOnName:function(e,t){for(var n,i=0,o=this.rules,a=o.length;t&&i<a;i++)n=o[i],e.nonEditable&&!n.options.applyToAll||e.nestedEditable&&n.options.excludeNestedEditable||(t=t.replace(n.value[0],n.value[1]));return t}}}(),function(){function n(e,t){function s(e){return e||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text("\xa0"):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function n(a,r){return function(e){if(e.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var t,n,i=[],o=d(e);if(o)for(l(o,1)&&i.push(o);o;)f(o)&&(t=u(o))&&l(t)&&((n=u(t))&&!f(n)?i.push(t):(s(c).insertAfter(t),t.remove())),o=o.previous;for(o=0;o<i.length;o++)i[o].remove();(i=!a||!1!==("function"==typeof r?r(e):r))&&((c||CKEDITOR.env.needsBrFiller||e.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&(c||CKEDITOR.env.needsBrFiller||!(7<document.documentMode||e.name in CKEDITOR.dtd.tr||e.name in CKEDITOR.dtd.$listItem))?i=!(i=d(e))||"form"==e.name&&"input"==i.name:i=!1),i&&e.add(s(a))}}}function l(e,t){return!(c&&!CKEDITOR.env.needsBrFiller||e.type!=CKEDITOR.NODE_ELEMENT||"br"!=e.name||e.attributes["data-cke-eol"])||!!(e.type==CKEDITOR.NODE_TEXT&&(n=e.value.match(C))&&(n.index&&(new CKEDITOR.htmlParser.text(e.value.substring(0,n.index)).insertBefore(e),e.value=n[0]),!CKEDITOR.env.needsBrFiller&&c&&(!t||e.parent.name in r)||!c&&((n=e.previous)&&"br"==n.name||!n||f(n))));var n}var i,o,a={elements:{}},c="html"==t,r=CKEDITOR.tools.extend({},D);for(i in r)"#"in O[i]||delete r[i];for(i in r)a.elements[i]=n(c,e.config.fillEmptyBlocks);return a.root=n(c,!1),a.elements.br=(o=c,function(e){if(e.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var t=e.attributes;if("data-cke-bogus"in t||"data-cke-eol"in t)delete t["data-cke-bogus"];else{for(t=e.next;t&&h(t);)t=t.next;var n=u(e);!t&&f(e.parent)?m(e.parent,s(o)):f(t)&&n&&!f(n)&&s(o).insertBefore(t)}}}),a}function a(e,t){return e!=CKEDITOR.ENTER_BR&&!1!==t&&(e==CKEDITOR.ENTER_DIV?"div":"p")}function d(e){for(e=e.children[e.children.length-1];e&&h(e);)e=e.previous;return e}function u(e){for(e=e.previous;e&&h(e);)e=e.previous;return e}function h(e){return e.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(e.value)||e.type==CKEDITOR.NODE_ELEMENT&&e.attributes["data-cke-bookmark"]}function f(e){return e&&(e.type==CKEDITOR.NODE_ELEMENT&&e.name in D||e.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function m(e,t){var n=e.children[e.children.length-1];e.children.push(t),t.parent=e,n&&((n.next=t).previous=n)}function e(e){"false"!=(e=e.attributes).contenteditable&&(e["data-cke-editable"]=e.contenteditable?"true":1),e.contenteditable="false"}function t(e){switch((e=e.attributes)["data-cke-editable"]){case"true":e.contenteditable="true";break;case"1":delete e.contenteditable}}function r(e){return e.replace(_,function(e,t,n){return"<"+t+n.replace(K,function(e,t){return k.test(t)&&-1==n.indexOf("data-cke-saved-"+t)?" data-cke-saved-"+e+" data-cke-"+CKEDITOR.rn
9d+"-"+e:e})+">"})}function s(e,t){return e.replace(t,function(e,t,n){return 0===e.indexOf("<textarea")&&(e=t+g(n).replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</textarea>"),"<cke:encoded>"+encodeURIComponent(e)+"</cke:encoded>"})}function l(e){return e.replace(x,function(e,t){return decodeURIComponent(t)})}function c(e){return e.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,function(e){return"<!--"+I+"{C}"+encodeURIComponent(e).replace(/--/g,"%2D%2D")+"-->"})}function i(e){return CKEDITOR.tools.array.reduce(e.split(""),function(e,t){var n=t.toLowerCase(),i=t.toUpperCase(),o=p(n);return n!==i&&(o+="|"+p(i)),e+"("+o+")"},"")}function p(e){var t,n=(t=e.charCodeAt(0)).toString(16);for(var i in t={htmlCode:"&#"+t+";?",hex:"&#x0*"+n+";?",entity:{"<":"&lt;",">":"&gt;",":":"&colon;"}[e]})t[i]&&(e+="|"+t[i]);return e}function g(e){return e.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(e,t){return decodeURIComponent(t)})}function E(e,t){var n=t._.dataStore;return e.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(e,t){return decodeURIComponent(t)}).replace(/\{cke_protected_(\d+)\}/g,function(e,t){return n&&n[t]||""})}function T(e,o){var i=[],t=o.config.protectedSource,n=o._.dataStore||(o._.dataStore={id:1}),a=/<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g;t=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(t);e=e.replace(/\x3c!--[\s\S]*?--\x3e/g,function(e){return"<!--{cke_tempcomment}"+(i.push(e)-1)+"-->"});for(var r=0;r<t.length;r++)e=e.replace(t[r],function(e){return e=e.replace(a,function(e,t,n){return i[n]}),/cke_temp(comment)?/.test(e)?e:"<!--{cke_temp}"+(i.push(e)-1)+"-->"});return(e=(e=e.replace(a,function(e,t,n){return"<!--"+I+(t?"{C}":"")+encodeURIComponent(i[n]).replace(/--/g,"%2D%2D")+"-->"})).replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,function(e){return e.replace(/\x3c!--\{cke_protected\}([^>]*)--\x3e/g,function(e,t){return n[n.id]=decodeURIComponent(t),"{cke_protected_"+n.id+++"}"})})).replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(e,t,n,i){return"<"+t+n+">"+E(g(i),o)+"</"+t+">"})}CKEDITOR.htmlDataProcessor=function(o){var e,t,i=this;this.editor=o,this.dataFilter=e=new CKEDITOR.htmlParser.filter,this.htmlFilter=t=new CKEDITOR.htmlParser.filter,this.writer=new CKEDITOR.htmlParser.basicWriter,e.addRules(v),e.addRules(b,{applyToAll:!0}),e.addRules(n(o,"data"),{applyToAll:!0}),t.addRules(R),t.addRules(y,{applyToAll:!0}),t.addRules(n(o,"html"),{applyToAll:!0}),o.on("toHtml",function(e){var t,n,i=(i=(i=(i=(i=s(i=r(i=s(i=T(i=(i=(e=e.data).dataValue).replace(N,""),o),S)),w)).replace(A,"$1cke:$2")).replace(F,"<cke:$1$2></cke:$1>")).replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2")).replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");t=e.context||o.editable().getName(),CKEDITOR.env.ie&&CKEDITOR.env.version<9&&"pre"==t&&(t="div",i="<pre>"+i+"</pre>",n=1),(t=o.document.createElement(t)).setHtml("a"+i),i=(i=t.getHtml().substr(1)).replace(new RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),""),n&&(i=i.replace(/^<pre>|<\/pre>$/gi,"")),i=g(i=l(i=i.replace(L,"$1$2"))),t=!1!==e.fixForBody&&a(e.enterMode,o.config.autoParagraph),i=CKEDITOR.htmlParser.fragment.fromHtml(i,e.context,t),t&&(!(n=i).children.length&&CKEDITOR.dtd[n.name][t]&&(t=new CKEDITOR.htmlParser.element(t),n.add(t))),e.dataValue=i},null,null,5),o.on("toHtml",function(e){e.data.filter.applyTo(e.data.dataValue,!0,e.data.dontFilter,e.data.enterMode)&&o.fire("dataFiltered")},null,null,6),o.on("toHtml",function(e){e.data.dataValue.filterChildren(i.dataFilter,!0)},null,null,10),o.on("toHtml",function(e){var t=(e=e.data).dataValue,n=new CKEDITOR.htmlParser.basicWriter;t.writeChildrenHtml(n),t=n.getHtml(!0),e.dataValue=c(t)},null,null,15),o.on("toDataFormat",function(e){var t=e.data.dataValue;e.data.enterMode!=CKEDITOR.ENTER_BR&&(t=t.replace(/^<br *\/?>/i,"")),e.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(t,e.data.context,a(e.data.enterMode,o.config.autoParagraph))},null,null,5),o.on("toDataFormat",function(e){e.data.dataValue.filterChildren(i.htmlFilter,!0)},null,null,10),o.on("toDataFormat",function(e){e.data.filter.applyTo(e.data.dataValue,!1,!0)},null,null,11),o.on("toDataFormat",function(e){var t=e.data.dataValue,n=i.writer;n.reset(),t.writeChildrenHtml(n),t=E(t=g(t=n.getHtml(!0)),o),e.data.dataValue=t},null,null,15)},CKEDITOR.htmlDataProcessor.prototype={toHtml:function(e,t,n,i){var o,a,r,s,l=this.editor;return t&&"object"==typeof t?(o=t.context,n=t.fixForBody,i=t.dontFilter,a=t.filter,r=t.enterMode,s=t.protectedWhitespace
9s):o=t,o||null===o||(o=l.editable().getName()),l.fire("toHtml",{dataValue:e,context:o,fixForBody:n,dontFilter:i,filter:a||l.filter,enterMode:r||l.enterMode,protectedWhitespaces:s}).dataValue},toDataFormat:function(e,t){var n,i,o;return t&&(n=t.context,i=t.filter,o=t.enterMode),n||null===n||(n=this.editor.editable().getName()),this.editor.fire("toDataFormat",{dataValue:e,filter:i||this.editor.filter,context:n,enterMode:o||this.editor.enterMode}).dataValue}};var C=/(?:&nbsp;|\xa0)$/,I="{cke_protected}",O=CKEDITOR.dtd,o="caption colgroup col thead tfoot tbody".split(" "),D=CKEDITOR.tools.extend({},O.$blockLimit,O.$block),v={elements:{input:e,textarea:e}},b={attributeNames:[[/^on/,"data-cke-pa-on"],[/^srcdoc/,"data-cke-pa-srcdoc"],[/^data-cke-expando$/,""]],elements:{iframe:function(e){if(e.attributes&&e.attributes.src){var t=e.attributes.src.toLowerCase().replace(/[^a-z]/gi,"");0!==t.indexOf("javascript")&&0!==t.indexOf("data")||(e.attributes["data-cke-pa-src"]=e.attributes.src,delete e.attributes.src)}}}},R={elements:{embed:function(e){if((n=e.parent)&&"object"==n.name){var t=n.attributes.width,n=n.attributes.height;t&&(e.attributes.width=t),n&&(e.attributes.height=n)}},a:function(e){var t=e.attributes;if(!(e.children.length||t.name||t.id||e.attributes["data-cke-saved-name"]))return!1}}},y={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(e){var t=e.attributes;if(t){if(t["data-cke-temp"])return!1;for(var n=["name","href","src"],i=0;i<n.length;i++)"data-cke-saved-"+n[i]in t&&delete t[n[i]]}return e},table:function(e){e.children.slice(0).sort(function(e,t){var n,i;return e.type==CKEDITOR.NODE_ELEMENT&&t.type==e.type&&(n=CKEDITOR.tools.indexOf(o,e.name),i=CKEDITOR.tools.indexOf(o,t.name)),-1<n&&-1<i&&n!=i||(n=e.parent?e.getIndex():-1,i=t.parent?t.getIndex():-1),i<n?1:-1})},param:function(e){return e.children=[],e.isEmpty=!0,e},span:function(e){"Apple-style-span"==e.attributes["class"]&&delete e.name},html:function(e){delete e.attributes.contenteditable,delete e.attributes["class"]},body:function(e){delete e.attributes.spellcheck,delete e.attributes.contenteditable},style:function(e){var t=e.children[0];t&&t.value&&(t.value=CKEDITOR.tools.trim(t.value)),e.attributes.type||(e.attributes.type="text/css")},title:function(e){var t=e.children[0];!t&&m(e,t=new CKEDITOR.htmlParser.text),t.value=e.attributes["data-cke-title"]||""},input:t,textarea:t},attributes:{"class":function(e){return CKEDITOR.tools.ltrim(e.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};CKEDITOR.env.ie&&(y.attributes.style=function(e){return e.replace(/(^|;)([^\:]+)/g,function(e){return e.toLowerCase()})});var _=/<(a|area|img|input|source)\b([^>]*)>/gi,K=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,k=/^(href|src|name)$/i,w=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,S=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,x=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,N=new RegExp("("+i("<cke:encoded>")+"(.*?)"+i("</cke:encoded>")+")|("+i("<")+i("/")+"?"+i("cke:encoded>")+")","gi"),A=/(<\/?)((?:object|embed|param|html|body|head|title)([\s][^>]*)?>)/gi,L=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,F=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),CKEDITOR.htmlParser.element=function(e,t){this.name=e,this.attributes=t||{},this.children=[];var n=e||"",i=n.match(/^cke:(.*)/);i&&(n=i[1]),n=!!(CKEDITOR.dtd.$nonBodyContent[n]||CKEDITOR.dtd.$block[n]||CKEDITOR.dtd.$listItem[n]||CKEDITOR.dtd.$tableContent[n]||CKEDITOR.dtd.$nonEditable[n]||"br"==n),this.isEmpty=!!CKEDITOR.dtd.$empty[e],this.isUnknown=!CKEDITOR.dtd[e],this._={isBlockLike:n,hasInlineStarted:this.isEmpty||!n}},CKEDITOR.htmlParser.cssStyle=function(e){var i={};return((e instanceof CKEDITOR.htmlParser.element?e.attributes.style:e)||"").replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,t,n){"font-family"==t&&(n=n.replace(/["']/g,"")),i[t.toLowerCase()]=n}),{rules:i,populate:function(e){var t=this.toString();t&&(e instanceof CKEDITOR.dom.element?e.setAttribute("style",t):e instanceof CKEDITOR.htmlParser.element?e.attributes.style=t:e.style=t)},toString:function(){var e,t=[];for(e in i)i[e]&&t.push(e,":",i[e],";");return t.join("")}}},function(){function i(t){return function(e){return e.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof t?e.name==t:e.name in t)}}var s=function(e,t){return(e=e[0])<(t=t[0])?-1:t<e?1:0},e=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:e.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(e,t){var n,i,o,a,r=this;for(t=r.getFilterContext(t),r.parent||e.onRoot(t,r);;){if(n=r.name,!(i=e.onElementName(t,n)))return this.remove(),!1;if(r.name=i,!(r=e.onElement(t,r)))return this.remove(),!1;if(r!==this)return this.replaceWith(r),!1;if(r.name==n)break;if(r.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(r),!1;if(!r.name)return this.replaceWithChildren(),!1}for(o in n=r.attributes){for(i=n[o];;){if(!(a=e.onAttributeName(t,o))){delete n[o];break}if(a==o)break;delete n[o],o=a}a&&(!1===(i=e.onAttribute(t,r,a,i))?delete n[a]:n[a]=i)}return r.isEmpty||this.filterChildren(e,!1,t),!0},filterChildren:e.filterChildren,writeHtml:function(e,t){t&&this.filter(t);var n,i,o=this.name,a=[],r=this.attributes;for(n in e.openTag(o,r),r)a.push([n,r[n]]);for(e.sortAttributes&&a.sort(s),n=0,i=a.length;n<i;n++)r=a[n],e.attribute(r[0],r[1]);e.openTagClose(o,this.isEmpty),this.writeChildrenHtml(e),this.isEmpty||e.closeTag(o)},writeChildrenHtml:e.writeChildrenHtml,replaceWithChildren:function(){for(var e=this.children,t=e.length;t;)e[--t].insertAfter(this);this.remove()}
9,forEach:e.forEach,getFirst:function(e){if(!e)return this.children.length?this.children[0]:null;"function"!=typeof e&&(e=i(e));for(var t=0,n=this.children.length;t<n;++t)if(e(this.children[t]))return this.children[t];return null},getHtml:function(){var e=new CKEDITOR.htmlParser.basicWriter;return this.writeChildrenHtml(e),e.getHtml()},setHtml:function(e){for(var t=0,n=(e=this.children=CKEDITOR.htmlParser.fragment.fromHtml(e).children).length;t<n;++t)e[t].parent=this},getOuterHtml:function(){var e=new CKEDITOR.htmlParser.basicWriter;return this.writeHtml(e),e.getHtml()},split:function(e){for(var t=this.children.splice(e,this.children.length-e),n=this.clone(),i=0;i<t.length;++i)t[i].parent=n;return(n.children=t)[0]&&(t[0].previous=null),0<e&&(this.children[e-1].next=null),this.parent.add(n,this.getIndex()+1),n},find:function(e,t){void 0===t&&(t=!1);var n,i=[];for(n=0;n<this.children.length;n++){var o=this.children[n];"function"==typeof e&&e(o)?i.push(o):"string"==typeof e&&o.name===e&&i.push(o),t&&o.find&&(i=i.concat(o.find(e,t)))}return i},addClass:function(e){if(!this.hasClass(e)){var t=this.attributes["class"]||"";this.attributes["class"]=t+(t?" ":"")+e}},removeClass:function(e){var t=this.attributes["class"];t&&((t=CKEDITOR.tools.trim(t.replace(new RegExp("(?:\\s+|^)"+e+"(?:\\s+|$)")," ")))?this.attributes["class"]=t:delete this.attributes["class"])},hasClass:function(e){var t=this.attributes["class"];return!!t&&new RegExp("(?:^|\\s)"+e+"(?=\\s|$)").test(t)},getFilterContext:function(e){var t=[];if(e||(e={nonEditable:!1,nestedEditable:!1}),e.nonEditable||"false"!=this.attributes.contenteditable?e.nonEditable&&!e.nestedEditable&&"true"==this.attributes.contenteditable&&t.push("nestedEditable",!0):t.push("nonEditable",!0),t.length){e=CKEDITOR.tools.copy(e);for(var n=0;n<t.length;n+=2)e[t[n]]=t[n+1]}return e}},!0)}(),C=/{([^}]+)}/g,CKEDITOR.template=function(e){this.source=String(e)},CKEDITOR.template.prototype.output=function(n,e){var t=this.source.replace(C,function(e,t){return void 0!==n[t]?n[t]:e});return e?e.push(t):t},delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(e){(CKEDITOR.instances[e.name]=e).on("focus",function(){CKEDITOR.currentInstance!=e&&(CKEDITOR.currentInstance=e,CKEDITOR.fire("currentInstance"))}),e.on("blur",function(){CKEDITOR.currentInstance==e&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))}),CKEDITOR.fire("instance",null,e)},CKEDITOR.remove=function(e){delete CKEDITOR.instances[e.name]},I={},CKEDITOR.addTemplate=function(e,t){var n=I[e];return n||(n={name:e,source:t},CKEDITOR.fire("template",n),I[e]=new CKEDITOR.template(n.source))},CKEDITOR.getTemplate=function(e){return I[e]},O=[],CKEDITOR.addCss=function(e){O.push(e)},CKEDITOR.getCss=function(){return O.join("\n")},CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&CKEDITOR.fire("reset")}),CKEDITOR.TRISTATE_ON=1,CKEDITOR.TRISTATE_OFF=2,CKEDITOR.TRISTATE_DISABLED=0,CKEDITOR.inline=function(e,t){if(!CKEDITOR.env.isCompatible)return null;if((e=CKEDITOR.dom.element.get(e)).getEditor())throw'The editor instance "'+e.getEditor().name+'" is already attached to the provided element.';var n=new CKEDITOR.editor(t,e,CKEDITOR.ELEMENT_MODE_INLINE),i=e.is("textarea")?e:null;return i?(n.setData(i.getValue(),null,!0),(e=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+!!n.readOnly+'" class="cke_textarea_inline">'+i.getValue()+"</div>",CKEDITOR.document)).insertAfter(i),i.hide(),i.$.form&&n._attachToForm()):n.setData(e.getHtml(),null,!0),n.on("loaded",function(){n.fire("uiReady"),n.editable(e),n.container=e,n.ui.contentsElement=e,n.setData(n.getData(1)),n.resetDirty(),n.fire("contentDom"),n.mode="wysiwyg",n.fire("mode"),n.status="ready",n.fireOnce("instanceReady"),CKEDITOR.fire("instanceReady",null,n)},null,null,1e4),n.on("destroy",function(){i&&(n.container.clearCustomData(),n.container.remove(),i.show()),n.element.clearCustomData(),delete n.element}),n},CKEDITOR.inlineAll=function(){var e,t,n;for(n in CKEDITOR.dtd.$editable)for(var i=CKEDITOR.document.getElementsByTag(n),o=0,a=i.count();o<a;o++)"true"==(e=i.getItem(o)).getAttribute("contenteditable")&&(t={element:e,config:{}},!1!==CKEDITOR.fire("inline",t)&&CKEDITOR.inline(e,t.config))},CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()}),CKEDITOR.replaceClass="ckeditor",function(){function i(e,t,n,i){if(!CKEDITOR.env.isCompatible)return null;if((e=CKEDITOR.dom.element.get(e)).getEditor())throw'The editor instance "'+e.getEditor().name+'" is already attached to the provided element.';var o=new CKEDITOR.editor(t,e,i);return i==CKEDITOR.ELEMENT_MODE_REPLACE&&(e.setStyle("visibility","hidden"),o._.required=e.hasAttribute("required"),e.removeAttribute("required")),n&&o.setData(n,null,!0),o.on("loaded",function(){r(o),i==CKEDITOR.ELEMENT_MODE_REPLACE&&o.config.autoUpdateElement&&e.$.form&&o._attachToForm(),o.setMode(o.config.startupMode,function(){o.resetDirty(),o.status="ready",o.fireOnce("instanceReady"),CKEDITOR.fire("instanceReady",null,o)})}),o.on("destroy",a),o}function a(){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 r(e){var t=e.name,n=e.element,i=e.elementMode,o=e.fire("uiSpace",{space:"top",html:""}).html,a=e.fire("uiSpace",{space:"bottom",html:""}).html,r=new CKEDITOR.template('<{outerEl} id="cke_{name}" class="{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'"  dir="{langDir}" lang="{langCode}" role="application"'+(e.title?' aria-labelledby="cke_{name}_arialbl"':"")+">"+(e.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':"")+'<{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation"></{outerEl}>{bottomHtml}</{outerEl}></{outerEl}>');t=CKEDITOR.dom.element.createFromHtml(r.output({id:e.id,name:t,langDir:e.lang.dir,langCode:e.langCode,voiceLabel:e.title,topHtml:o?'<span id="'+e.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+o+"</span>":"",contentId:e.ui.spaceId("contents"),bottomHtml:a?'<span id="'+e.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+a+"</span>":"",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")}CKEDITOR.replace=function(e,t){return i(e,t,null,CKEDITOR.ELEMENT_MODE_REPLACE)},CKEDITOR.appendTo=function(e,t,n){return i(e,t,n,CKEDITOR.ELEMENT_MODE_APPENDTO)},CKEDITOR.replaceAll=function(e){for(var t=document.getElementsByTagName("textarea"),n=0;n<t.length;n++){var i=null,o=t[n];if(o.name||o.id){if("string"==typeof e){if(!new RegExp("(?:^|\\s)"+e+"(?:$|\\s)").test(o.className))continue}else if("function"==typeof e&&!1===e(o,i={}))continue;this.replace(o,i)}}},CKEDITOR.editor.prototype.addMode=function(e,t){(this._.modes||
9(this._.modes={}))[e]=t},CKEDITOR.editor.prototype.setMode=function(e,t){var n=this,i=this._.modes;if(e!=n.mode&&i&&i[e]){if(n.fire("beforeSetMode",e),n.mode){var o,a=n.checkDirty(),r=(i=n._.previousModeData,0);n.fire("beforeModeUnload"),n.editable(0),n._.previousMode=n.mode,n._.previousModeData=o=n.getData(1),"source"==n.mode&&i==o&&(n.fire("lockSnapshot",{forceUpdate:!0}),r=1),n.ui.space("contents").setHtml(""),n.mode=""}else n._.previousModeData=n.getData(1);this._.modes[e](function(){n.mode=e,void 0!==a&&!a&&n.resetDirty(),r?n.fire("unlockSnapshot"):"wysiwyg"==e&&n.fire("saveSnapshot"),setTimeout(function(){n.fire("mode"),t&&t.call(n)},0)})}},CKEDITOR.editor.prototype.resize=function(e,t,n,i){var o=this.container,a=this.ui.space("contents"),r=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;(i=i?this.container.getFirst(function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasClass("cke_inner")}):o).setSize("width",e,!0),r&&(r.style.width="1%");var s=(i.$.offsetHeight||0)-(a.$.clientHeight||0);o=Math.max(t-(n?0:s),0);t=n?t+s:t,a.setStyle("height",o+"px"),r&&(r.style.width="100%"),this.fire("resize",{outerHeight:t,contentsHeight:o,outerWidth:e||i.getSize("width")})},CKEDITOR.editor.prototype.getResizable=function(e){return e?this.ui.space("contents"):this.container},CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){function i(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=s(a,i))&&(a.appendBogus(),t=CKEDITOR.env.ie),B(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!F(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(F))&&n.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(n.getText()).match(/^(?:&nbsp;|\xa0)$/)&&n.remove(),t=1,e.cancel()),t&&r.select()}function s(e,t){if(e.isFake)return 0;var n=t.block||t.blockLimit,i=n&&n.getLast(F);return!n||!n.isBlockBoundary()||i&&i.type==CKEDITOR.NODE_ELEMENT&&i.isBlockBoundary()||n.is("pre")||n.getBogus()?void 0:n}function a(e){var t=e.data.getTarget();t.is("input")&&("submit"!=(t=t.getAttribute("type"))&&"reset"!=t||e.data.preventDefault())}function F(e){return h(e)&&c(e)}function o(n,i){return function(e){var t=e.data.$.toElement||e.data.$.fromElement||e.data.$.relatedTarget;(t=t&&t.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(t):null)&&(i.equals(t)||i.contains(t))||n.call(this,e)}}function u(e){function t(n){return function(e,t){if(t&&e.type==CKEDITOR.NODE_ELEMENT&&e.is(o)&&(i=e),!(t||!F(e)||n&&f(e)))return!1}}var i,n=e.getRanges()[0];e=e.root;var o={table:1,ul:1,ol:1,dl:1};if(n.startPath().contains(o)){var a=n.clone();if(a.collapse(1),a.setStartAt(e,CKEDITOR.POSITION_AFTER_START),(e=new CKEDITOR.dom.walker(a)).guard=t(),e.checkBackward(),i)return(a=n.clone()).collapse(),a.setEndAt(i,CKEDITOR.POSITION_AFTER_END),(e=new CKEDITOR.dom.walker(a)).guard=t(!0),i=!1,e.checkForward(),i}return null}function B(e,t,n){return!1!==e.config.autoParagraph&&e.activeEnterMode!=CKEDITOR.ENTER_BR&&(e.editable().equals(n)&&!t||t&&"true"==t.getAttribute("contenteditable"))}function P(e){return e.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==e.config.autoParagraph&&(e.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p")}function r(e){var t=e.editor;t.getSelection().scrollIntoView(),setTimeout(function(){t.fire("saveSnapshot")},0)}function l(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()}var h,c,d,f,m,p,g,E,t,T;CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(e,t){this.base(t.$||t),this.editor=e,this.status="unloaded",this.hasFocus=!1,this.setup()},proto:{focus:function(){var e;if(CKEDITOR.env.webkit&&!this.hasFocus&&(e=this.editor._.previousActive||this.getDocument().getActive(),this.contains(e)))e.focus();else{CKEDITOR.env.edge&&14<CKEDITOR.env.version&&!this.hasFocus&&this.getDocument().equals(CKEDITOR.document)&&(this.editor._.previousScrollTop=this.$.scrollTop);try{if(!CKEDITOR.env.ie||CKEDITOR.env.edge&&14<CKEDITOR.env.version||!this.getDocument().equals(CKEDITOR.document))if(CKEDITOR.env.chrome){var t=this.$.scrollTop;
9this.$.focus(),this.$.scrollTop=t}else this.$.focus();else this.$.setActive()}catch(F){if(!CKEDITOR.env.ie)throw F}CKEDITOR.env.safari&&!this.isInline()&&((e=CKEDITOR.document.getActive()).equals(this.getWindow().getFrame())||this.getWindow().focus())}},on:function(e,t){var n=Array.prototype.slice.call(arguments,0);return CKEDITOR.env.ie&&/^focus|blur$/.exec(e)&&(e="focus"==e?"focusin":"focusout",t=o(t,this),n[0]=e,n[1]=t),CKEDITOR.dom.element.prototype.on.apply(this,n)},attachListener:function(e){!this._.listeners&&(this._.listeners=[]);var t=Array.prototype.slice.call(arguments,1);t=e.on.apply(e,t);return this._.listeners.push(t),t},clearListeners:function(){var e=this._.listeners;try{for(;e.length;)e.pop().removeListener()}catch(a){}},restoreAttrs:function(){var e,t,n=this._.attrChanges;for(t in n)n.hasOwnProperty(t)&&(null!==(e=n[t])?this.setAttribute(t,e):this.removeAttribute(t))},attachClass:function(e){var t=this.getCustomData("classes");this.hasClass(e)||(!t&&(t=[]),t.push(e),this.setCustomData("classes",t),this.addClass(e))},changeAttr:function(e,t){var n=this.getAttribute(e);t!==n&&(!this._.attrChanges&&(this._.attrChanges={}),e in this._.attrChanges||(this._.attrChanges[e]=n),this.setAttribute(e,t))},insertText:function(e){this.editor.focus(),this.insertHtml(this.transformPlainTextToHtml(e),"text")},transformPlainTextToHtml:function(e){var t=this.editor.getSelection().getStartElement().hasAscendant("pre",!0)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(e,t)},insertHtml:function(e,t,n){var i=this.editor;i.focus(),i.fire("saveSnapshot"),n||(n=i.getSelection().getRanges()[0]),p(this,t||"html",e,n),n.select(),r(this),this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(e,t,n){p(this,n||"html",e,t),this.editor.fire("afterInsertHtml",{intoRange:t})},insertElement:function(e,t){(i=this.editor).focus(),i.fire("saveSnapshot");var n=i.activeEnterMode,i=i.getSelection(),o=e.getName();o=CKEDITOR.dtd.$block[o];t||(t=i.getRanges()[0]),this.insertElementIntoRange(e,t)&&(t.moveToPosition(e,CKEDITOR.POSITION_AFTER_END),o&&((o=e.getNext(function(e){return F(e)&&!f(e)}))&&o.type==CKEDITOR.NODE_ELEMENT&&o.is(CKEDITOR.dtd.$block)?o.getDtd()["#"]?t.moveToElementEditStart(o):t.moveToElementEditEnd(e):o||n==CKEDITOR.ENTER_BR||(o=t.fixBlock(!0,n==CKEDITOR.ENTER_DIV?"div":"p"),t.moveToElementEditStart(o)))),i.selectRanges([t]),r(this)},insertElementIntoSelection:function(e){this.insertElement(e)},insertElementIntoRange:function(e,t){var n,i,o=this.editor,a=o.config.enterMode,r=e.getName(),s=CKEDITOR.dtd.$block[r];if(t.checkReadOnly())return!1;if(t.deleteContents(1),t.startContainer.type==CKEDITOR.NODE_ELEMENT&&(t.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})?g(t):t.startContainer.is(CKEDITOR.dtd.$list)&&E(t)),s)for(;(n=t.getCommonAncestor(0,1))&&(i=CKEDITOR.dtd[n.getName()])&&(!i||!i[r]);)n.getName()in CKEDITOR.dtd.span?t.splitElement(n):t.checkStartOfBlock()&&t.checkEndOfBlock()?(t.setStartBefore(n),t.collapse(!0),n.remove()):t.splitBlock(a==CKEDITOR.ENTER_DIV?"div":"p",o.editable());return t.insertNode(e),!0},setData:function(e,t){t||(e=this.editor.dataProcessor.toHtml(e)),this.setHtml(e),this.fixInitialSelection(),"unloaded"==this.status&&(this.status="ready"),this.editor.fire("dataReady")},getData:function(e){var t=this.getHtml();return e||(t=this.editor.dataProcessor.toDataFormat(t)),t},setReadOnly:function(e){this.setAttribute("contenteditable",!e)},detach:function(){this.removeClass("cke_editable"),this.status="detached";var e=this.editor;this._.detach(),delete e.document,delete e.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function e(){var e,t=i.getDocument().$,n=t.getSelection();e:if(n.anchorNode&&n.anchorNode==i.$)e=!0;else{if(CKEDITOR.env.webkit&&(e=i.getDocument().getActive())&&e.equals(i)&&!n.anchorNode){e=!0;break e}e=void 0}e&&((e=new CKEDITOR.dom.range(i)).moveToElementEditStart(i),(t=t.createRange()).setStart(e.startContainer.$,e.startOffset),t.collapse(!0),n.removeAllRanges(),n.addRange(t))}
9function t(){var e=i.getDocument().$,t=e.selection,n=i.getDocument().getActive();"None"==t.type&&n.equals(i)&&(t=new CKEDITOR.dom.range(i),e=e.body.createTextRange(),t.moveToElementEditStart(i),(t=t.startContainer).type!=CKEDITOR.NODE_ELEMENT&&(t=t.getParent()),e.moveToElementText(t.$),e.collapse(!0),e.select())}var i=this;CKEDITOR.env.ie&&(CKEDITOR.env.version<9||CKEDITOR.env.quirks)?this.hasFocus&&(this.focus(),t()):this.hasFocus?(this.focus(),e()):this.once("focus",function(){e()},null,null,-999)},getHtmlFromRange:function(e){return e.collapsed?new CKEDITOR.dom.documentFragment(e.document):(e={doc:this.getDocument(),range:e.clone()},t.eol.detect(e,this),t.bogus.exclude(e),t.cell.shrink(e),e.fragment=e.range.cloneContents(),t.tree.rebuild(e,this),t.eol.fix(e,this),new CKEDITOR.dom.documentFragment(e.fragment.$))},extractHtmlFromRange:function(e,t){var n=T,i={range:e,doc:e.document},o=this.getHtmlFromRange(e);if(e.collapsed)return e.optimize(),o;if(e.enlarge(CKEDITOR.ENLARGE_INLINE,1),n.table.detectPurge(i),i.bookmark=e.createBookmark(),delete i.range,(r=this.editor.createRange()).moveToPosition(i.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START),i.targetBookmark=r.createBookmark(),n.list.detectMerge(i,this),n.table.detectRanges(i,this),n.block.detectMerge(i,this),i.tableContentsRanges?(n.table.deleteRanges(i),e.moveToBookmark(i.bookmark),i.range=e):(e.moveToBookmark(i.bookmark),(i.range=e).extractContents(n.detectExtractMerge(i))),e.moveToBookmark(i.targetBookmark),e.optimize(),n.fixUneditableRangePosition(e),n.list.merge(i,this),n.table.purge(i,this),n.block.merge(i,this),t){if(n=e.startPath(),i=e.checkStartOfBlock()&&e.checkEndOfBlock()&&n.block&&!e.root.equals(n.block)){e:{var a,r=0;if(i=n.block.getElementsByTag("span"))for(;a=i.getItem(r++);)if(!c(a)){i=!0;break e}i=!1}i=!i}i&&(e.moveToPosition(n.block,CKEDITOR.POSITION_BEFORE_START),n.block.remove())}else n.autoParagraph(this.editor,e),d(e.startContainer)&&e.startContainer.appendBogus();return e.startContainer.mergeSiblings(),o},setup:function(){var c=this.editor;if(this.attachListener(c,"beforeGetData",function(){var e=this.getData();this.is("textarea")||!1!==c.config.ignoreEmptyParagraph&&(e=e.replace(m,function(e,t){return t})),c.setData(e,null,1)},this),this.attachListener(c,"getSnapshot",function(e){e.data=this.getData(1)},this),this.attachListener(c,"afterSetData",function(){this.setData(c.getData(1))},this),this.attachListener(c,"loadSnapshot",function(e){this.setData(e.data,1)},this),this.attachListener(c,"beforeFocus",function(){var e=c.getSelection();(e=e&&e.getNative())&&"Control"==e.type||this.focus()},this),
10this.attachListener(c,"insertHtml",function(e){this.insertHtml(e.data.dataValue,e.data.mode,e.data.range)},this),this.attachListener(c,"insertElement",function(e){this.insertElement(e.data)},this),this.attachListener(c,"insertText",function(e){this.insertText(e.data)},this),this.setReadOnly(c.readOnly),this.attachClass("cke_editable"),c.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):c.elementMode!=CKEDITOR.ELEMENT_MODE_REPLACE&&c.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||this.attachClass("cke_editable_themed"),this.attachClass("cke_contents_"+c.config.contentsLangDirection),c.keystrokeHandler.blockedKeystrokes[8]=+c.readOnly,c.keystrokeHandler.attach(this),this.on("blur",function(){this.hasFocus=!1},null,null,-1),this.on("focus",function(){this.hasFocus=!0},null,null,-1),CKEDITOR.env.webkit&&this.on("scroll",function(){c._.previousScrollTop=c.editable().$.scrollTop},null,null,-1),CKEDITOR.env.edge&&14<CKEDITOR.env.version){var t=function(){var e=c.editable();null!=c._.previousScrollTop&&e.getDocument().equals(CKEDITOR.document)&&(e.$.scrollTop=c._.previousScrollTop,c._.previousScrollTop=null,this.removeListener("scroll",t))};this.on("scroll",t)}if(c.focusManager.add(this),this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,c.once("contentDom",function(){c.focusManager.focus(this)},this)),this.isInline()&&this.changeAttr("tabindex",c.tabIndex),!this.is("textarea")){c.document=this.getDocument(),c.window=this.getWindow();var e=c.document;this.changeAttr("spellcheck",!c.config.disableNativeSpellChecker);var n=c.config.contentsLangDirection;this.getDirection(1)!=n&&this.changeAttr("dir",n);var i=CKEDITOR.getCss();if(i){var o=(n=e.getHead()).getCustomData("stylesheet");o?i!=o.getText()&&(CKEDITOR.env.ie&&CKEDITOR.env.version<9?o.$.styleSheet.cssText=i:o.setText(i)):(i=e.appendStyleText(i),i=new CKEDITOR.dom.element(i.ownerNode||i.owningElement),n.setCustomData("stylesheet",i),i.data("cke-temp",1))}n=e.getCustomData("stylesheet_ref")||0,e.setCustomData("stylesheet_ref",n+1),this.setCustomData("cke_includeReadonly",!c.config.disableReadonlyStyling),this.attachListener(this,"click",function(e){e=e.data;var t=new CKEDITOR.dom.elementPath(e.getTarget(),this).contains("a");t&&2!=e.$.button&&t.isReadOnly()&&e.preventDefault()});var d={8:1,46:1};this.attachListener(c,"key",function(e){if(c.readOnly)return!0;var t,n=e.data.domEvent.getKey();
10if(0!==(e=c.getSelection()).getRanges().length){if(n in d){var i,o,a,r,s=e.getRanges()[0],l=s.startPath();n=8==n;CKEDITOR.env.ie&&CKEDITOR.env.version<11&&(i=e.getSelectedElement())||(i=u(e))?(c.fire("saveSnapshot"),s.moveToPosition(i,CKEDITOR.POSITION_BEFORE_START),i.remove(),s.select(),c.fire("saveSnapshot"),t=1):s.collapsed&&((o=l.block)&&(r=o[n?"getPrevious":"getNext"](h))&&r.type==CKEDITOR.NODE_ELEMENT&&r.is("table")&&s[n?"checkStartOfBlock":"checkEndOfBlock"]()?(c.fire("saveSnapshot"),s[n?"checkEndOfBlock":"checkStartOfBlock"]()&&o.remove(),s["moveToElementEdit"+(n?"End":"Start")](r),s.select(),c.fire("saveSnapshot"),t=1):l.blockLimit&&l.blockLimit.is("td")&&(a=l.blockLimit.getAscendant("table"))&&s.checkBoundaryOfElement(a,n?CKEDITOR.START:CKEDITOR.END)&&(r=a[n?"getPrevious":"getNext"](h))?(c.fire("saveSnapshot"),s["moveToElementEdit"+(n?"End":"Start")](r),s.checkStartOfBlock()&&s.checkEndOfBlock()?r.remove():s.select(),c.fire("saveSnapshot"),t=1):(a=l.contains(["td","th","caption"]))&&s.checkBoundaryOfElement(a,n?CKEDITOR.START:CKEDITOR.END)&&(t=1))}return!t}}),c.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&this.attachListener(this,"keyup",function(e){e.data.getKeystroke()in d&&!this.getFirst(F)&&(this.appendBogus(),(e=c.createRange()).moveToPosition(this,CKEDITOR.POSITION_AFTER_START),e.select())}),this.attachListener(this,"dblclick",function(e){if(c.readOnly)return!1;e={element:e.data.getTarget()},c.fire("doubleclick",e)}),CKEDITOR.env.ie&&this.attachListener(this,"click",a),CKEDITOR.env.ie&&!CKEDITOR.env.edge||this.attachListener(this,"mousedown",function(e){var t=e.data.getTarget();t.is("img","hr","input","textarea","select")&&!t.isReadOnly()&&(c.getSelection().selectElement(t),t.is("input","textarea","select")&&e.data.preventDefault())}),CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(e){(e=e.data.getTarget())&&e.is("img")&&!e.isReadOnly()&&c.getSelection().selectElement(e)}),CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(e){if(2==e.data.$.button&&(!(e=e.data.getTarget()).getAscendant("table")&&!e.getOuterHtml().replace(m,""))){var t=c.createRange();t.moveToElementEditStart(e),t.select(!0)}}),CKEDITOR.env.webkit&&(this.attachListener(this,"click",function(e){e.data.getTarget().is("input","select")&&e.data.preventDefault()}),this.attachListener(this,"mouseup",function(e){e.data.getTarget().is("input","textarea")&&e.data.preventDefault()})),CKEDITOR.env.webkit&&this.attachListener(c,"key",function(e){if(c.readOnly)return!0;if((t=e.data.domEvent.getKey())in d&&0!==(e=c.getSelection()).getRanges().length){var t=8==t,n=e.getRanges()[0];if(e=n.startPath(),n.collapsed)e:{var i=e.block;if(i&&n[t?"checkStartOfBlock":"checkEndOfBlock"]()&&n.moveToClosestEditablePosition(i,!t)&&n.collapsed){if(n.startContainer.type==CKEDITOR.NODE_ELEMENT){var o=n.startContainer.getChild(n.startOffset-(t?1:0));if(o&&o.type==CKEDITOR.NODE_ELEMENT&&o.is("hr")){c.fire("saveSnapshot"),o.remove(),e=!0;break e}}var a;if(!(n=n.startPath().block)||n&&n.contains(i))e=void 0;else c.fire("saveSnapshot"),(a=(t?n:i).getBogus())&&a.remove(),o=(a=c.getSelection()).createBookmarks(),(t?i:n).moveChildren(t?n:i,!1),e.lastElement.mergeSiblings(),l(i,n,!t),a.selectBookmarks(o),e=!0}else e=!1}else t=n,a=e.block,n=t.endPath().block,a&&n&&!a.equals(n)?(c.fire("saveSnapshot"),(i=a.getBogus())&&i.remove(),t.enlarge(CKEDITOR.ENLARGE_INLINE),t.deleteContents(),n.getParent()&&(n.moveChildren(a,!1),e.lastElement.mergeSiblings(),l(a,n,!0)),(t=c.getSelection().getRanges()[0]).collapse(1),t.optimize(),""===t.startContainer.getHtml()&&t.startContainer.appendBogus(),t.select(),e=!0):e=!1;if(!e)return;return c.getSelection().scrollIntoView(),c.fire("saveSnapshot"),!1}},this,null,100)}}},_:{detach:function(){var e;if(this.editor.setData(this.editor.getData(),0,1),this.clearListeners(),this.restoreAttrs(),e=this.removeCustomData("classes"))for(;e.length;)this.removeClass(e.pop());if(!this.is("textarea")){var t=(e=this.getDocument()).getHead();if(t.getCustomData("stylesheet")){var n=e.getCustomData("stylesheet_ref");--n?e.setCustomData("stylesheet_ref",n):(e.removeCustomData("stylesheet_ref"),t.removeCustomData("stylesheet").remove())}}this.editor.fire("contentDomUnload"),delete this.editor}}}),CKEDITOR.editor.prototype.editable=function(e){var t=this._.editable;return t&&e?0:(arguments.length&&(t=this._.editable=e?e instanceof CKEDITOR.editable?e:new CKEDITOR.editable(this,e):(t&&t.detach(),null)),t)},CKEDITOR.on("instanceLoaded",function(e){var n=e.editor;n.on("insertElement",function(e){(e=e.data).type==CKEDITOR.NODE_ELEMENT&&(e.is("input")||e.is("textarea"))&&("false"!=e.getAttribute("contentEditable")&&e.data("cke-editable",e.hasAttribute("contenteditable")?"true":"1"),e.setAttribute("contentEditable",!1))}),n.on("selectionChange",function(e){if(!n.readOnly){var t=n.getSelection();t&&!t.isLocked&&(t=n.checkDirty(),n.fire("lockSnapshot"),i(e),n.fire("unlockSnapshot"),!t&&n.resetDirty())}})}),CKEDITOR.on("instanceCreated",function(e){var o=e.editor;o.on("mode",function(){var e=o.editable();if(e&&e.isInline()){var t=o.title;if(e.changeAttr("role","textbox"),e.changeAttr("aria-multiline","true"),e.changeAttr("aria-label",t),t&&e.changeAttr("title",t),(i=o.fire("ariaEditorHelpLabel",{}).label)&&(t=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var n=CKEDITOR.tools.getNextId(),i=CKEDITOR.dom.element.createFromHtml('<span id="'+n+'" class="cke_voice_label">'+i+"</span>");t.append(i),e.changeAttr("aria-describedby",n)}}})}),CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}
10"),h=CKEDITOR.dom.walker.whitespaces(!0),c=CKEDITOR.dom.walker.bookmark(!1,!0),d=CKEDITOR.dom.walker.empty(),f=CKEDITOR.dom.walker.bogus(),m=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,p=function(){function y(e){return e.type==CKEDITOR.NODE_ELEMENT}function _(e,t){var n,i,o,a,r=[],s=t.range.startContainer;n=t.range.startPath();s=N[s.getName()];for(var l=0,c=e.getChildren(),d=c.count(),u=-1,h=-1,f=0,m=n.contains(N.$list);l<d;++l)y(n=c.getItem(l))?(o=n.getName(),m&&o in CKEDITOR.dtd.$list?r=r.concat(_(n,t)):(a=!!s[o],"br"!=o||!n.data("cke-eol")||l&&l!=d-1||(f=(i=l?r[l-1].node:c.getItem(l+1))&&(!y(i)||!i.is("br")),i=i&&y(i)&&N.$block[i.getName()]),-1!=u||a||(u=l),a||(h=l),r.push({isElement:1,isLineBreak:f,isBlock:n.isBlockBoundary(),hasBlockSibling:i,node:n,name:o,allowed:a}),i=f=0)):r.push({isElement:0,node:n,allowed:1});return-1<u&&(r[u].firstNotAllowed=1),-1<h&&(r[h].lastNotAllowed=1),r}function K(e,t){var n,i=[],o=e.getChildren(),a=o.count(),r=0,s=N[t],l=!e.is(N.$inline)||e.is("br");for(l&&i.push(" ");r<a;r++)y(n=o.getItem(r))&&!n.is(s)?i=i.concat(K(n,t)):i.push(n);return l&&i.push(" "),i}function k(e){return y(e.startContainer)&&e.startContainer.getChild(e.startOffset-1)}function w(e){return e&&y(e)&&(e.is(N.$removeEmpty)||e.is("a")&&!e.isBlockBoundary())}function S(e,t,n,i){var o,a,r=e.clone();r.setEndAt(t,CKEDITOR.POSITION_BEFORE_END),(o=new CKEDITOR.dom.walker(r).next())&&y(o)&&s[o.getName()]&&(a=o.getPrevious())&&y(a)&&!a.getParent().equals(e.startContainer)&&n.contains(a)&&i.contains(o)&&o.isIdentical(a)&&(o.moveChildren(a),o.remove(),S(e,t,n,i))}function x(e,t){function n(e,t){if(t.isBlock&&t.isElement&&!t.node.is("br")&&y(e)&&e.is("br"))return e.remove(),1}var i=t.endContainer.getChild(t.endOffset),o=t.endContainer.getChild(t.endOffset-1);i&&n(i,e[e.length-1]),o&&n(o,e[0])&&(t.setEnd(t.endContainer,t.endOffset-1),t.collapse())}var N=CKEDITOR.dtd,s={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},A={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},L=CKEDITOR.tools.extend({},N.$inline);return delete L.br,function(e,t,n,i){var o=e.editor,a=!1;if("unfiltered_html"==t&&(t="html",a=!0),!i.checkReadOnly()){var r,s,l;if(t=(e={type:t,dontFilter:a,editable:e,editor:o,range:i,blockLimit:C=new CKEDITOR.dom.elementPath(i.startContainer,i.root).blockLimit||i.root,mergeCandidates:[],zombies:[]}).range,i=e.mergeCandidates,"text"==e.type&&t.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(r=CKEDITOR.dom.element.createFromHtml("<span>&nbsp;</span>",t.document),t.insertNode(r),t.setStartAfter(r)),a=new CKEDITOR.dom.elementPath(t.startContainer),e.endPath=C=new CKEDITOR.dom.elementPath(t.endContainer),!t.collapsed){o=C.block||C.blockLimit;var c=t.getCommonAncestor();o&&!o.equals(c)&&!o.contains(c)&&t.checkEndOfBlock()&&e.zombies.push(o),t.deleteContents()}for(;(s=k(t))&&y(s)&&s.isBlockBoundary()&&a.contains(s);)t.moveToPosition(s,CKEDITOR.POSITION_BEFORE_END);for(S(t,e.blockLimit,a,C),r&&(t.setEndBefore(r),t.collapse(),r.remove()),(o=(r=t.startPath()).contains(w,!1,1))&&(t.splitElement(o),e.inlineStylesRoot=o,e.inlineStylesPeak=r.lastElement),(o=(r=t.createBookmark()).startNode.getPrevious(F))&&y(o)&&w(o)&&i.push(o),(o=r.startNode.getNext(F))&&y(o)&&w(o)&&i.push(o),o=r.startNode;(o=o.getParent())&&w(o);)i.push(o);if(t.moveToBookmark(r),r=n){if(r=e.range,"text"==e.type&&e.inlineStylesRoot){for(t=(s=e.inlineStylesPeak).getDocument().createText("{cke-peak}"),i=e.inlineStylesRoot.getParent();!s.equals(i);)t=t.appendTo(s.clone()),s=s.getParent();n=t.getOuterHtml().split("{cke-peak}").join(n)}if(s=e.blockLimit.getName(),/^\s+|\s+$/.test(n)&&"span"in CKEDITOR.dtd[s])n=(E='<span data-cke-marker="1">&nbsp;</span>')+n+E;if(n=e.editor.dataProcessor.toHtml(n,{context:null,fixForBody:!1,protectedWhitespaces:!!E,dontFilter:e.dontFilter,filter:e.editor.activeFilter,enterMode:e.editor.activeEnterMode}),(s=r.document.createElement("body")).setHtml(n),E&&(s.getFirst().remove(),s.getLast().remove()),(E=r.startPath().block)&&(1!=E.getChildCount()||!E.getBogus()))e:{var d;
10if(1==s.getChildCount()&&y(d=s.getFirst())&&d.is(A)&&!d.hasAttribute("contenteditable")){for(r=0,i=(E=d.getElementsByTag("*")).count();r<i;r++)if(!(t=E.getItem(r)).is(L))break e;d.moveChildren(d.getParent(1)),d.remove()}}e.dataWrapper=s,r=n}if(r){var u;r=(d=e.range).document,s=e.blockLimit;var h,f,m,p,g,E=[];n=o=i=0,t=d.startContainer;var T,C=(a=e.endPath.elements[0]).getPosition(t);c=!(!a.getCommonAncestor(t)||C==CKEDITOR.POSITION_IDENTICAL||C&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);for(x(t=_(e.dataWrapper,e),d);i<t.length;i++){if(u=(C=t[i]).isLineBreak){u=d,p=s;var I=void 0,O=void 0;C.hasBlockSibling?u=1:(I=u.startContainer.getAscendant(N.$block,1))&&I.is({div:1,p:1})?(O=I.getPosition(p))==CKEDITOR.POSITION_IDENTICAL||O==CKEDITOR.POSITION_CONTAINS?u=0:(p=u.splitElement(I),u.moveToPosition(p,CKEDITOR.POSITION_AFTER_START),u=1):u=0}if(u)n=0<i;else{if(u=d.startPath(),!C.isBlock&&B(e.editor,u.block,u.blockLimit)&&(m=P(e.editor))&&((m=r.createElement(m)).appendBogus(),d.insertNode(m),CKEDITOR.env.needsBrFiller&&(h=m.getBogus())&&h.remove(),d.moveToPosition(m,CKEDITOR.POSITION_BEFORE_END)),(u=d.startPath().block)&&!u.equals(f)&&((h=u.getBogus())&&(h.remove(),E.push(u)),f=u),C.firstNotAllowed&&(o=1),o&&C.isElement){for(u=d.startContainer,p=null;u&&!N[u.getName()][C.name];){if(u.equals(s)){u=null;break}u=(p=u).getParent()}if(u)p&&(g=d.splitElement(p),e.zombies.push(g),e.zombies.push(p));else{p=s.getName(),T=!i,u=i==t.length-1;I=[],O=(p=K(C.node,p)).length;for(var D=0,v=void 0,b=0,R=-1;D<O;D++)" "==(v=p[D])?(b||T&&!D||(I.push(new CKEDITOR.dom.text(" ")),R=I.length),b=1):(I.push(v),b=0);u&&R==I.length&&I.pop(),T=I}}if(T){for(;u=T.pop();)d.insertNode(u);T=0}else d.insertNode(C.node);C.lastNotAllowed&&i<t.length-1&&((g=c?a:g)&&d.setEndAt(g,CKEDITOR.POSITION_AFTER_START),o=0),d.collapse()}}1!=t.length?h=!1:h=(h=t[0]).isElement&&"false"==h.node.getAttribute("contenteditable"),h&&(n=!0,u=t[0].node,d.setStartAt(u,CKEDITOR.POSITION_BEFORE_START),d.setEndAt(u,CKEDITOR.POSITION_AFTER_END)),e.dontMoveCaret=n,e.bogusNeededBlocks=E}for(h=e.range,g=e.bogusNeededBlocks,T=h.createBookmark();f=e.zombies.pop();)f.getParent()&&((m=h.clone()).moveToElementEditStart(f),m.removeEmptyBlocksAtEnd());if(g)for(;f=g.pop();)CKEDITOR.env.needsBrFiller?f.appendBogus():f.append(h.document.createText("\xa0"));for(;f=e.mergeCandidates.pop();)f.mergeSiblings();if(h.moveToBookmark(T),!e.dontMoveCaret){for(f=k(h);f&&y(f)&&!f.is(N.$empty);){if(f.isBlockBoundary())h.moveToPosition(f,CKEDITOR.POSITION_BEFORE_END);else{if(w(f)&&f.getHtml().match(/(\s|&nbsp;)$/g)){l=null;break}(l=h.clone()).moveToPosition(f,CKEDITOR.POSITION_BEFORE_END)}f=f.getLast(F)}l&&h.moveToRange(l)}}}}(),g=function(){function o(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 a(e,t,n){return t=e.getDocument().createElement(t),e.append(t,n),t}function r(e){for(var t,n=e.count();0<n--;)t=e.getItem(n),CKEDITOR.tools.trim(t.getHtml())||(t.appendBogus(),CKEDITOR.env.ie&&CKEDITOR.env.version<9&&t.getChildCount()&&t.getFirst().remove())}return function(e){var t=e.startContainer,n=t.getAscendant("table",1),i=!1;r(n.getElementsByTag("td")),r(n.getElementsByTag("th")),(n=e.clone()).setStart(t,0),(n=o(n).lastBackward())||((n=e.clone()).setEndAt(t,CKEDITOR.POSITION_BEFORE_END),n=o(n).lastForward(),i=!0),n||(n=t),n.is("table")?(e.setStartAt(n,CKEDITOR.POSITION_BEFORE_START),e.collapse(!0),n.remove()):(n.is({tbody:1,thead:1,tfoot:1})&&(n=a(n,"tr",i)),n.is("tr")&&(n=a(n,n.getParent().is("thead")?"th":"td",i)),(t=n.getBogus())&&t.remove(),e.moveToPosition(n,i?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}(),E=function(){function o(e){return(e=new CKEDITOR.dom.walker(e)).guard=function(e,t){return!t&&(e.type==CKEDITOR.NODE_ELEMENT?e.is(CKEDITOR.dtd.$list)||e.is(CKEDITOR.dtd.$listItem):void 0)},e.evaluator=function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$listItem)},e}return function(e){var t,n=e.startContainer,i=!1;(t=e.clone()).setStart(n,0),(t=o(t).lastBackward())||((t=e.clone()).setEndAt(n,CKEDITOR.POSITION_BEFORE_END),t=o(t).lastForward(),i=!0),t||(t=n),t.is(CKEDITOR.dtd.$list)?(e.setStartAt(t,CKEDITOR.POSITION_BEFORE_START),e.collapse(!0),t.remove()):((n=t.getBogus())&&n.remove(),e.moveToPosition(t,i?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),e.select())}}
10(),t={eol:{detect:function(e,t){var n=e.range,i=n.clone(),o=n.clone(),a=new CKEDITOR.dom.elementPath(n.startContainer,t),r=new CKEDITOR.dom.elementPath(n.endContainer,t);i.collapse(1),o.collapse(),a.block&&i.checkBoundaryOfElement(a.block,CKEDITOR.END)&&(n.setStartAfter(a.block),e.prependEolBr=1),r.block&&o.checkBoundaryOfElement(r.block,CKEDITOR.START)&&(n.setEndBefore(r.block),e.appendEolBr=1)},fix:function(e,t){var n,i=t.getDocument();e.appendEolBr&&(n=this.createEolBr(i),e.fragment.append(n)),!e.prependEolBr||n&&!n.getPrevious()||e.fragment.append(this.createEolBr(i),1)},createEolBr:function(e){return e.createElement("br",{attributes:{"data-cke-eol":1}})}},bogus:{exclude:function(e){var t,n=(t=e.range.getBoundaryNodes()).startNode;!(t=t.endNode)||!f(t)||n&&n.equals(t)||e.range.setEndBefore(t)}},tree:{rebuild:function(e,t){var n,i=(r=e.range).getCommonAncestor(),o=new CKEDITOR.dom.elementPath(i,t),a=new CKEDITOR.dom.elementPath(r.startContainer,t),r=new CKEDITOR.dom.elementPath(r.endContainer,t);if(i.type==CKEDITOR.NODE_TEXT&&(i=i.getParent()),o.blockLimit.is({tr:1,table:1})){var s=o.contains("table").getParent();n=function(e){return!e.equals(s)}}else if(o.block&&o.block.is(CKEDITOR.dtd.$listItem)&&(a=a.contains(CKEDITOR.dtd.$list),r=r.contains(CKEDITOR.dtd.$list),!a.equals(r))){var l=o.contains(CKEDITOR.dtd.$list).getParent();n=function(e){return!e.equals(l)}}n||(n=function(e){return!e.equals(o.block)&&!e.equals(o.blockLimit)}),this.rebuildFragment(e,t,i,n)},rebuildFragment:function(e,t,n,i){for(var o;n&&!n.equals(t)&&i(n);)o=n.clone(0,1),e.fragment.appendTo(o),e.fragment=o,n=n.getParent()}},cell:{shrink:function(e){var t=(e=e.range).startContainer,n=e.endContainer,i=e.startOffset,o=e.endOffset;t.type==CKEDITOR.NODE_ELEMENT&&t.equals(n)&&t.is("tr")&&++i==o&&e.shrink(CKEDITOR.SHRINK_TEXT)}}},T=function(){function o(e,t){var n=e.getParent();n.is(CKEDITOR.dtd.$inline)&&e[t?"insertBefore":"insertAfter"](n)}function l(e,t,n){o(t),o(n,1);for(var i;i=n.getNext();)i.insertAfter(t),t=i;d(e)&&e.remove()}function c(e,t){var n=new CKEDITOR.dom.range(e);return n.setStartAfter(t.startNode),n.setEndBefore(t.endNode),n}return{list:{detectMerge:function(e,t){var n=c(t,e.bookmark),i=n.startPath(),o=n.endPath(),a=i.contains(CKEDITOR.dtd.$list),r=o.contains(CKEDITOR.dtd.$list);e.mergeList=a&&r&&a.getParent().equals(r.getParent())&&!a.equals(r),e.mergeListItems=i.block&&o.block&&i.block.is(CKEDITOR.dtd.$listItem)&&o.block.is(CKEDITOR.dtd.$listItem),(e.mergeList||e.mergeListItems)&&((n=n.clone()).setStartBefore(e.bookmark.startNode),n.setEndAfter(e.bookmark.endNode),e.mergeListBookmark=n.createBookmark())},merge:function(e,t){if(e.mergeListBookmark){var n=e.mergeListBookmark.startNode,i=e.mergeListBookmark.endNode,o=new CKEDITOR.dom.elementPath(n,t),a=new CKEDITOR.dom.elementPath(i,t);if(e.mergeList){var r=o.contains(CKEDITOR.dtd.$list),s=a.contains(CKEDITOR.dtd.$list);r.equals(s)||(s.moveChildren(r),s.remove())}e.mergeListItems&&(o=o.contains(CKEDITOR.dtd.$listItem),a=a.contains(CKEDITOR.dtd.$listItem),o.equals(a)||l(a,n,i)),n.remove(),i.remove()}}},block:{detectMerge:function(e,t){if(!e.tableContentsRanges&&!e.mergeListBookmark){var n=new CKEDITOR.dom.range(t);n.setStartBefore(e.bookmark.startNode),n.setEndAfter(e.bookmark.endNode),e.mergeBlockBookmark=n.createBookmark()}},merge:function(e,t){if(e.mergeBlockBookmark&&!e.purgeTableBookmark){var n=e.mergeBlockBookmark.startNode,i=e.mergeBlockBookmark.endNode,o=new CKEDITOR.dom.elementPath(n,t),a=new CKEDITOR.dom.elementPath(i,t);o=o.block,a=a.block;o&&a&&!o.equals(a)&&l(a,n,i),n.remove(),i.remove()}}},table:function(){function s(a){var r,s=[],e=new CKEDITOR.dom.walker(a),l=a.startPath().contains(h),c=a.endPath().contains(h),d={};return e.guard=function(e,t){if(e.type==CKEDITOR.NODE_ELEMENT){var n="visited_"+(t?"out":"in");if(e.getCustomData(n))return;CKEDITOR.dom.element.setMarker(d,e,n,1)}if(t&&l&&e.equals(l))(r=a.clone()).setEndAt(l,CKEDITOR.POSITION_BEFORE_END),s.push(r);else if(!t&&c&&e.equals(c))(r=a.clone()).setStartAt(c,CKEDITOR.POSITION_AFTER_START),s.push(r);else{if((n=!t)&&(n=e.type==CKEDITOR.NODE_ELEMENT&&e.is(h)&&(!l||u(e,l))&&(!c||u(e,c))),!n&&(n=t))if(e.is(h)){n=l&&l.getAscendant("table",!0);var i=c&&c.getAscendant("table",!0),o=e.getAscendant("table",!0);n=n&&n.contains(o)||i&&i.contains(o)}else n=void 0;n&&((r=a.clone()).selectNodeContents(e),s.push(r))}},e.lastForward(),CKEDITOR.dom.element.clearAllMarkers(d),s}function u(e,t){var n=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,i=e.getPosition(t);return i!==CKEDITOR.POSITION_IDENTICAL&&0==(i&n)}var h={td:1,th:1,caption:1};return{detectPurge:function(e){var t=e.range;(n=t.clone()).enlarge(CKEDITOR.ENLARGE_ELEMENT);var n=new CKEDITOR.dom.walker(n),i=0;if(n.evaluator=function(e){e.type==CKEDITOR.NODE_ELEMENT&&e.is(h)&&++i},n.checkForward(),1<i){n=t.startPath().contains("table");var o=t.endPath().contains("table");n&&o&&t.checkBoundaryOfElement(n,CKEDITOR.START)&&t.checkBoundaryOfElement(o,CKEDITOR.END)&&((t=e.range.clone()).setStartBefore(n),t.setEndAfter(o),e.purgeTableBookmark=t.createBookmark())}},detectRanges:function(e,t){var n,i,o=c(t,e.bookmark),a=o.clone(),r=o.getCommonAncestor();r.is(CKEDITOR.dtd.$tableContent)&&!r.is(h)&&(r=r.getAscendant("table",!0)),i=r,r=new CKEDITOR.dom.elementPath(o.startContainer,i),i=new CKEDITOR.dom.elementPath(o.endContainer,i),r=r.contains("table"),i=i.contains("table"),(r||i)&&(r&&i&&u(r,i)?((e.tableSurroundingRange=a).setStartAt(r,CKEDITOR.POSITION_AFTER_END),a.setEndAt(i,CKEDITOR.POSITION_BEFORE_START),(a=o.clone()).setEndAt(r,CKEDITOR.POSITION_AFTER_END),(n=o.clone()).setStartAt(i,CKEDITOR.POSITION_BEFORE_START),n=s(a).concat(s(n))):r?i||((e.tableSurroundingRange=a).setStartAt(r,CKEDITOR.POSITION_AFTER_END),o.setEndAt(r,CKEDITOR.POSITION_AFTER_END)):((e.tableSurroundingRange=a).setEndAt(i,CKEDITOR.POSITION_BEFORE_START),o.setStartAt(i,CKEDITOR.POSITION_AFTER_START)),e.tableContentsRanges=n||s(o))},deleteRanges:function(e){for(var t;t=e.tableContentsRanges.pop();)t.extractContents(),d(t.startContainer)&&t.startContainer.appendBogus();e.tableSurroundingRange&&e.tableSurroundingRange.extractContents()},purge:function(e){if(e.purgeTableBookmark){var t=e.doc,n=e.range.clone();(t=t.createElement("p")).insertBefore(e.purgeTableBookmark.startNode),n.moveToBookmark(e.purgeTableBookmark),n.deleteContents(),e.range.moveToPosition(t,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(e){return!(e.range.startPath().contains(CKEDITOR.dtd.$listItem)&&e.range.endPath().contains(CKEDITOR.dtd.$listItem))},fixUneditableRangePosition:function(e){e.startContainer.getDtd()["#"]||e.moveToClose
10stEditablePosition(null,!0)},autoParagraph:function(e,t){var n,i=t.startPath();B(e,i.block,i.blockLimit)&&(n=P(e))&&((n=t.document.createElement(n)).appendBogus(),t.insertNode(n),t.moveToPosition(n,CKEDITOR.POSITION_AFTER_START))}}}()}(),function(){function d(e){return CKEDITOR.plugins.widget&&CKEDITOR.plugins.widget.isDomWidget(e)}function h(e,t){if(0===e.length||d(e[0].getEnclosedNode()))return!1;var n,i;if((n=!t&&1===e.length)&&!(n=e[0].collapsed)){var o=e[0];n=o.startContainer.getAscendant({td:1,th:1},!0);var a=o.endContainer.getAscendant({td:1,th:1},!0);i=CKEDITOR.tools.trim,n&&n.equals(a)&&!n.findOne("td, th, tr, tbody, table")?n=!(o=o.cloneContents()).getFirst()||i(o.getFirst().getText())!==i(n.getText()):n=!1}if(n)return!1;for(i=0;i<e.length;i++)if(!(n=e[i]._getTableElement()))return!1;return!0}function a(e){function t(e){e=e.find("td, th");var t,n=[];for(t=0;t<e.count();t++)n.push(e.getItem(t));return n}var n,i,o=[];for(i=0;i<e.length;i++)(n=e[i]._getTableElement()).is&&n.is({td:1,th:1})?o.push(n):o=o.concat(t(n));return o}function i(e){e=a(e);var t,n,i="",o=[];for(n=0;n<e.length;n++)t&&!t.equals(e[n].getAscendant("tr"))?(i+=o.join("\t")+"\n",t=e[n].getAscendant("tr"),o=[]):0===n&&(t=e[n].getAscendant("tr")),o.push(e[n].getText());return i+o.join("\t")}function f(e){var t=this.root.editor,n=t.getSelection(1);this.reset(),D=!0,n.root.once("selectionchange",function(e){e.cancel()},null,null,0),n.selectRanges([e[0]]),(n=this._.cache).ranges=new CKEDITOR.dom.rangeList(e),n.type=CKEDITOR.SELECTION_TEXT,n.selectedElement=e[0]._getTableElement(),n.selectedText=i(e),n.nativeSel=null,this.isFake=1,this.rev=s++,t._.fakeSelection=this,D=!1,this.root.fire("selectionchange")}function g(){var e,t=this._.fakeSelection;if(t){var n;if(!(n=!(e=this.getSelection(1)))&&(n=!e.isHidden())){n=t;var i=e.getRanges(),o=n.getRanges(),a=i.length&&i[0]._getTableElement()&&i[0]._getTableElement().getAscendant("table",!0),r=o.length&&o[0]._getTableElement()&&o[0]._getTableElement().getAscendant("table",!0),s=1===i.length&&i[0]._getTableElement()&&i[0]._getTableElement().is("table"),l=1===o.length&&o[0]._getTableElement()&&o[0]._getTableElement().is("table");if(d(n.getSelectedElement()))n=!1;else{var c=1===i.length&&i[0].collapsed;o=h(i,!!CKEDITOR.env.webkit)&&h(o);(a=!(!a||!r)&&(a.equals(r)||r.contains(a)))&&(c||o)?(s&&!l&&n.selectRanges(i),n=!0):n=!1}n=!n}n&&(t.reset(),t=0)}(t||(t=e||this.getSelection(1))&&t.getType()!=CKEDITOR.SELECTION_NONE)&&(this.fire("selectionCheck",t),(e=this.elementPath()).compare(this._.selectionPreviousPath)||(n=this._.selectionPreviousPath&&this._.selectionPreviousPath.blockLimit.equals(e.blockLimit),!CKEDITOR.env.webkit&&!CKEDITOR.env.gecko||n||(this._.previousActive=this.document.getActive()),this._.selectionPreviousPath=e,this.fire("selectionChange",{selection:t,path:e})))}function E(){t=!0,v||(e.call(this),v=CKEDITOR.tools.setTimeout(e,200,this))}function e(){v=null,t&&(CKEDITOR.tools.setTimeout(g,0,this),t=!1)}function m(e){return!(!c(e)&&(e.type!=CKEDITOR.NODE_ELEMENT||e.is(CKEDITOR.dtd.$empty)))}function p(n){function e(e,t){return!(!e||e.type==CKEDITOR.NODE_TEXT)&&n.clone()["moveToElementEdit"+(t?"End":"Start")](e)}if(!(n.root instanceof CKEDITOR.editable))return!1;var t=n.startContainer,i=n.getPreviousNode(m,null,t),o=n.getNextNode(m,null,t);return!(!e(i)&&!e(o,1)&&(i||o||t.type==CKEDITOR.NODE_ELEMENT&&t.isBlockBoundary()&&t.getBogus()))}function T(e){C(e,!1);var t=e.getDocument().createText(l);return e.setCustomData("cke-fillingChar",t),t}function C(e,t){var n=e&&e.removeCustomData("cke-fillingChar");if(n){if(!1!==t){var i=e.getDocument().getSelection().getNative(),o=i&&"None"!=i.type&&i.getRangeAt(0),a=l.length;if(n.getLength()>a&&o&&o.intersectsNode(n.$)){var r=[{node:i.anchorNode,offset:i.anchorOffset},{node:i.focusNode,offset:i.focusOffset}];i.anchorNode==n.$&&i.anchorOffset>a&&(r[0].offset-=a),i.focusNode==n.$&&i.focusOffset>a&&(r[1].offset-=a)}}n.setText(I(n.getText(),1)),r&&(i=(n=e.getDocument().$).getSelection(),(n=n.createRange()).setStart(r[0].node,r[0].offset),n.collapse(!0),i.removeAllRanges(),i.addRange(n),i.extend(r[1].node,r[1].offset))}}function I(e,t){return t?e.replace(n,function(e,t){return t?"\xa0":""}):e.replace(l,"")}function r(e,t){var n=t&&CKEDITOR.tools.htmlEncode(t)||"&nbsp;";n=CKEDITOR.dom.element.createFromHtml('<div data-cke-hidden-sel="1" data-cke-temp="1" style="'+(CKEDITOR.env.ie&&CKEDITOR.env.version<14?"display:none":"position:fixed;top:0;left:-1000px;width:0;height:0;overflow:hidden;")+'">'+n+"</div>",e.document);e.fire("lockSnapshot"),e.editable().append(n);var i=e.getSelection(1),o=e.createRange(),a=i.root.on("selectionchange",function(e){e.cancel()},null,null,0);o.setStartAt(n,CKEDITOR.POSITION_AFTER_START),o.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),i.selectRanges([o]),a.removeListener(),e.fire("unlockSnapshot"),e._.hiddenSelectionContainer=n}function O(o){var a={37:1,39:1,8:1,46:1};return function(e){var t=e.data.getKeystroke();if(a[t]){var n=o.getSelection().getRanges(),i=n[0];1==n.length&&i.collapsed&&(t=i[t<38?"getPreviousEditableNode":"getNextEditableNode"]())&&t.type==CKEDITOR.NODE_ELEMENT&&"false"==t.getAttribute("contenteditable")&&(o.getSelection().fake(t),e.data.preventDefault(),e.cancel())}}}function o(n){for(var i=0;i<n.length;i++){var o=n[i];if(o.getCommonAncestor().isReadOnly()&&n.splice(i,1),!o.collapsed){if(o.startContainer.isReadOnly())for(var e,t=o.startContainer;t&&!((e=t.type==CKEDITOR.NODE_ELEMENT)&&t.is("body")||!t.isReadOnly());)e&&"false"==t.getAttribute("contentEditable")&&o.setStartAfter(t),t=t.getParent();t=o.startContainer,e=o.endContainer;var a=o.startOffset,r=o.endOffset,s=o.clone();t&&t.type==CKEDITOR.NODE_TEXT&&(a>=t.getLength()?s.setStartAfter(t):s.setStartBefore(t)),e&&e.type==CKEDITOR.NODE_TEXT&&(r?s.setEndAfter(e):s.setEndBefore(e)),(t=new CKEDITOR.dom.walker(s)).evaluator=function(e){if(e.type==CKEDITOR.NODE_ELEMENT&&e.isReadOnly()){var t=o.clone();return o.setEndBefore(e),o.collapsed&&n.splice(i--,1),e.getPosition(s.endContainer)&CKEDITOR.POSITION_CONTAINS||(t.setStartAfter(e),t.collapsed||n.splice(i+1,0,t)),!0}return!1},t.next()}}return n}var D,v,t,b="function"!=typeof window.getSelection,s=1,l=CKEDITOR.tools.repeat("\u200b",7),n=new RegExp(l+"( )?","g"),c=CKEDITOR.dom.walker.invisible(1),u=function(){function e(n){return function(e){var t=e.editor.createRange();
10return t.moveToClosestEditablePosition(e.selected,n)&&e.editor.getSelection().selectRanges([t]),!1}}function t(o){return function(e){var t,n=e.editor,i=n.createRange();if(!n.readOnly)return(t=i.moveToClosestEditablePosition(e.selected,o))||(t=i.moveToClosestEditablePosition(e.selected,!o)),t&&n.getSelection().selectRanges([i]),n.fire("saveSnapshot"),e.selected.remove(),t||(i.moveToElementEditablePosition(n.editable()),n.getSelection().selectRanges([i])),n.fire("saveSnapshot"),!1}}var n=e(),i=e(1);return{37:n,38:n,39:i,40:i,8:t(),46:t(1)}}();CKEDITOR.on("instanceCreated",function(e){function t(){var e=p.getSelection();e&&e.removeAllRanges()}var p=e.editor;p.on("contentDom",function(){function e(){(o=new CKEDITOR.dom.selection(p.getSelection())).lock()}function n(){l.removeListener("mouseup",n),u.removeListener("mouseup",n);var e=CKEDITOR.document.$.selection,t=e.createRange();"None"!=e.type&&t.parentElement()&&t.parentElement().ownerDocument==s.$&&t.select()}function i(e){return(e=e.getRanges()[0])&&(e=e.startContainer.getAscendant(function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("contenteditable")},!0))&&"false"===e.getAttribute("contenteditable")?e:null}var t,o,a,r,s=p.document,l=CKEDITOR.document,c=p.editable(),d=s.getBody(),u=s.getDocumentElement(),h=c.isInline();if((CKEDITOR.env.gecko&&c.attachListener(c,"focus",function(e){e.removeListener(),0!==t&&(e=p.getSelection().getNative())&&e.isCollapsed&&e.anchorNode==c.$&&((e=p.createRange()).moveToElementEditStart(c),e.select())},null,null,-2),c.attachListener(c,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){if(t&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){t=p._.previousActive&&p._.previousActive.equals(s.getActive());var e=null!=p._.previousScrollTop&&p._.previousScrollTop!=c.$.scrollTop;CKEDITOR.env.webkit&&t&&e&&(c.$.scrollTop=p._.previousScrollTop)}p.unlockSelection(t),t=0},null,null,-1),c.attachListener(c,"mousedown",function(){t=0}),(CKEDITOR.env.ie||h)&&(b?c.attachListener(c,"beforedeactivate",e,null,null,-1):c.attachListener(p,"selectionCheck",e,null,null,-1),c.attachListener(c,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusout":"blur",function(){p.lockSelection(o),t=1},null,null,-1),c.attachListener(c,"mousedown",function(){t=0})),CKEDITOR.env.ie&&!h)&&(c.attachListener(c,"mousedown",function(e){2==e.data.$.button&&((e=p.document.getSelection())&&e.getType()!=CKEDITOR.SELECTION_NONE||(a=p.window.getScrollPosition()))}),c.attachListener(c,"mouseup",function(e){2==e.data.$.button&&a&&(p.document.$.documentElement.scrollLeft=a.x,p.document.$.documentElement.scrollTop=a.y),a=null}),"BackCompat"!=s.$.compatMode)){var f,m;if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)u.on("mousedown",function(e){function t(e){if(e=e.data.$,f){var t=d.$.createTextRange();try{t.moveToPoint(e.clientX,e.clientY)}catch(i){}f.setEndPoint(m.compareEndPoints("StartToStart",t)<0?"EndToEnd":"StartToStart",t),f.select()}}function n(){u.removeListener("mousemove",t),l.removeListener("mouseup",n),u.removeListener("mouseup",n),
11f.select()}if((e=e.data).getTarget().is("html")&&e.$.y<u.$.clientHeight&&e.$.x<u.$.clientWidth){f=d.$.createTextRange();try{f.moveToPoint(e.$.clientX,e.$.clientY)}catch(i){}m=f.duplicate(),u.on("mousemove",t),l.on("mouseup",n),u.on("mouseup",n)}});7<CKEDITOR.env.version&&CKEDITOR.env.version<11&&u.on("mousedown",function(e){e.data.getTarget().is("html")&&(l.on("mouseup",n),u.on("mouseup",n))})}(c.attachListener(c,"selectionchange",g,p),c.attachListener(c,"keyup",E,p),c.attachListener(c,"touchstart",E,p),c.attachListener(c,"touchend",E,p),CKEDITOR.env.ie&&c.attachListener(c,"keydown",function(e){var t=this.getSelection(1),n=i(t);n&&!n.equals(c)&&(t.selectElement(n),e.data.preventDefault())},p),c.attachListener(c,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){p.forceNextSelectionCheck(),p.selectionChange(1)}),h&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko))?(c.attachListener(c,"mousedown",function(){r=1}),c.attachListener(s.getDocumentElement(),"mouseup",function(){r&&E.call(p),r=0})):c.attachListener(CKEDITOR.env.ie?c:s.getDocumentElement(),"mouseup",E,p);CKEDITOR.env.webkit&&c.attachListener(s,"keydown",function(e){switch(e.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:c.hasFocus&&C(c)}},null,null,-1),c.attachListener(c,"keydown",O(p),null,null,-1)}),p.on("setData",function(){p.unlockSelection(),CKEDITOR.env.webkit&&t()}),p.on("contentDomUnload",function(){p.unlockSelection()}),CKEDITOR.env.ie9Compat&&p.on("beforeDestroy",t,null,null,9),p.on("dataReady",function(){delete p._.fakeSelection,delete p._.hiddenSelectionContainer,p.selectionChange(1)}
11),p.on("loadSnapshot",function(){var e=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),t=p.editable().getLast(e);t&&t.hasAttribute("data-cke-hidden-sel")&&(t.remove(),CKEDITOR.env.gecko&&(e=p.editable().getFirst(e))&&e.is("br")&&e.getAttribute("_moz_editor_bogus_node")&&e.remove())},null,null,100),p.on("key",function(e){if("wysiwyg"==p.mode){var t=p.getSelection();if(t.isFake){var n=u[e.data.keyCode];if(n)return n({editor:p,selected:t.getSelectedElement(),selection:t,keyEvent:e})}}})}),CKEDITOR.env.webkit&&CKEDITOR.on("instanceReady",function(e){var n=e.editor;n.on("selectionChange",function(){var e=n.editable(),t=e.getCustomData("cke-fillingChar");t&&(t.getCustomData("ready")?(C(e),e.editor.fire("selectionCheck")):t.setCustomData("ready",1))},null,null,-1),n.on("beforeSetMode",function(){C(n.editable())},null,null,-1),n.on("getSnapshot",function(e){e.data&&(e.data=I(e.data))},n,null,20),n.on("toDataFormat",function(e){e.data.dataValue=I(e.data.dataValue)},null,null,0)}),CKEDITOR.editor.prototype.selectionChange=function(e){(e?g:E).call(this)},CKEDITOR.editor.prototype.getSelection=function(e){return!this._.savedSelection&&!this._.fakeSelection||e?(e=this.editable())&&"wysiwyg"==this.mode?new CKEDITOR.dom.selection(e):null:this._.savedSelection||this._.fakeSelection},CKEDITOR.editor.prototype.lockSelection=function(e){return(e=e||this.getSelection(1)).getType()!=CKEDITOR.SELECTION_NONE&&(!e.isLocked&&e.lock(),this._.savedSelection=e,!0)},CKEDITOR.editor.prototype.unlockSelection=function(e){var t=this._.savedSelection;return!!t&&(t.unlock(e),delete this._.savedSelection,!0)},CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath},CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)},CKEDITOR.dom.range.prototype.select=function(){var e=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);return e.selectRanges([this]),e},CKEDITOR.SELECTION_NONE=1,CKEDITOR.SELECTION_TEXT=2,CKEDITOR.SELECTION_ELEMENT=3,CKEDITOR.dom.selection=function(e){if(e instanceof CKEDITOR.dom.selection){var t=e;e=e.root}var n,i,o=e instanceof CKEDITOR.dom.element;if(this.rev=t?t.rev:s++,this.document=e instanceof CKEDITOR.dom.document?e:e.getDocument(),this.root=o?e:this.document.getBody(),this.isLocked=0,this._={cache:{}},t)return CKEDITOR.tools.extend(this._.cache,t._.cache),this.isFake=t.isFake,this.isLocked=t.isLocked,this;if(e=this.getNative())if(e.getRangeAt)n=(i=e.rangeCount&&e.getRangeAt(0))&&new CKEDITOR.dom.node(i.commonAncestorContainer);else{try{i=e.createRange()}catch(f){}n=i&&CKEDITOR.dom.element.get(i.item&&i.item(0)||i.parentElement())}return(!n||n.type!=CKEDITOR.NODE_ELEMENT&&n.type!=CKEDITOR.NODE_TEXT||!this.root.equals(n)&&!this.root.contains(n))&&(this._.cache.type=CKEDITOR.SELECTION_NONE,this._.cache.startElement=null,this._.cache.selectedElement=null,this._.cache.selectedText="",this._.cache.ranges=new CKEDITOR.dom.rangeList),this};var R,y={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};CKEDITOR.tools.extend(CKEDITOR.dom.selection,{_removeFillingCharSequenceString:I,_createFillingCharSequenceNode:T,FILLING_CHAR_SEQUENCE:l}),CKEDITOR.dom.selection.prototype={getNative:function(){return void 0!==this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=b?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:b?function(){var e=this._.cache;if(e.type)return e.type;var t=CKEDITOR.SELECTION_NONE;try{var n=this.getNative(),i=n.type;"Text"==i&&(t=CKEDITOR.SELECTION_TEXT),"Control"==i&&(t=CKEDITOR.SELECTION_ELEMENT),n.createRange().parentElement()&&(t=CKEDITOR.SELECTION_TEXT)}catch(T){}return e.type=t}:function(){var e=this._.cache;if(e.type)return e.type;var t=CKEDITOR.SELECTION_TEXT;if((n=this.getNative())&&n.rangeCount){if(1==n.rangeCount){var n,i=(n=n.getRangeAt(0)).startContainer;i==n.endContainer&&1==i.nodeType&&1==n.endOffset-n.startOffset&&y[i.childNodes[n.startOffset].nodeName.toLowerCase()]&&(t=CKEDITOR.SELECTION_ELEMENT)}}else t=CKEDITOR.SELECTION_NONE;return e.type=t},getRanges:(R=b?function(){function h(e){return new CKEDITOR.dom.node(e).getIndex()}var s=function(e,t){(e=e.duplicate()).collapse(t);var n=e.parentElement();if(!n.hasChildNodes())return{container:n,offset:0};for(var i,o,a,r,s=n.children,l=e.duplicate(),c=0,d=s.length-1,u=-1;c<=d;)if(i=s[u=Math.floor((c+d)/2)],l.moveToElementText(i),0<(a=l.compareEndPoints("StartToStart",e)))d=u-1;else{if(!(a<0))return{container:n,offset:h(i)};c=u+1}if(-1==u||u==s.length-1&&a<0){if(l.moveToElementText(n),l.setEndPoint("StartToStart",e),l=l.text.replace(/(\r\n|\r)/g,"\n").length,s=n.childNodes,!l)return(i=s[s.length-1]).nodeType!=CKEDITOR.NODE_TEXT?{container:n,offset:s.length}:{container:i,offset:i.nodeValue.length};for(n=s.length;0<l&&0<n;)(o=s[--n]).nodeType==CKEDITOR.NODE_TEXT&&(l-=(r=o).nodeValue.length);return{container:r,offset:-l}}if(l.collapse(0<a),l.setEndPoint(0<a?"StartToStart":"EndToStart",e),!(l=l.text.replace(/(\r\n|\r)/g,"\n").length))return{container:n,offset:h(i)+(0<a?0:1)};for(;0<l;)try{(o=i[0<a?"previousSibling":"nextSibling"]).nodeType==CKEDITOR.NODE_TEXT&&(l-=o.nodeValue.length,r=o),i=o}catch(m){return{container:n,offset:h(i)}}return{container:r,offset:0<a?-l:r.nodeValue.length+l}};return function(){var e=(r=this.getNative())&&r.createRange(),t=this.getType();if(!r)return[];if(t==CKEDITOR.SELECTION_TEXT)return r=new CKEDITOR.dom.range(this.root),t=s(e,!0),r.setStart(new CKEDITOR.dom.node(t.container),t.offset),t=s(e),r.setEnd(new CKEDITOR.dom.node(t.container),t.offset),r.endContainer.getPosition(r.startContainer)&CKEDITOR.POSITION_PRECEDING&&r.endOffset<=r.startContainer.getIndex()&&r.collapse(),[r];if(t==CKEDITOR.SELECTION_ELEMENT){t=[];for(var n=0;n<e.length;n++){for(var i=e.item(n),o=i.parentNode,a=0,r=new CKEDITOR.dom.range(this.root);a<o.childNodes.length&&o.childNodes[a]!=i;a++);r.setStart(new CKEDITOR.dom.node(o),a),r.setEnd(new CKEDITOR.dom.node(o),a+1),t.push(r)}return t}return[]}}():function(){var e,t=[],n=this.getNative();if(!n)return t;for(var i=0;i<n.rangeCount;i++){var o=n.getRangeAt(i);(e=new CKEDITOR.dom.range(this.root)).setStart(new CKEDITOR.dom.node(o.startContainer),o.startOffset),e.setEnd(new CKEDITOR.dom.node(o.endContainer),o.endOffset),t.push(e)}return t},function(e){var t=this._.cache,n=t.ranges;return n||(t.ranges=n=new CKEDITOR.dom.rangeList(R.call(this))),e?o(new CKEDITOR.dom.rangeList(n.slice())):n}),getStartElement:function(){var e,t=this._.cache;if(void 0!==t.startElement)return t.startElement;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.get
11SelectedElement();case CKEDITOR.SELECTION_TEXT:var n=this.getRanges()[0];if(n){if(n.collapsed)(e=n.startContainer).type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent());else{for(n.optimize();e=n.startContainer,n.startOffset==(e.getChildCount?e.getChildCount():e.getLength())&&!e.isBlockBoundary();)n.setStartAfter(e);if((e=n.startContainer).type!=CKEDITOR.NODE_ELEMENT)return e.getParent();if((e=e.getChild(n.startOffset))&&e.type==CKEDITOR.NODE_ELEMENT)for(n=e.getFirst();n&&n.type==CKEDITOR.NODE_ELEMENT;)n=(e=n).getFirst();else e=n.startContainer}e=e.$}}return t.startElement=e?new CKEDITOR.dom.element(e):null},getSelectedElement:function(){var e=this._.cache;if(void 0!==e.selectedElement)return e.selectedElement;var o=this,t=CKEDITOR.tools.tryThese(function(){return o.getNative().createRange().item(0)},function(){for(var e,t,n=o.getRanges()[0].clone(),i=2;i&&!((e=n.getEnclosedNode())&&e.type==CKEDITOR.NODE_ELEMENT&&y[e.getName()]&&(t=e));i--)n.shrink(CKEDITOR.SHRINK_ELEMENT);return t&&t.$});return e.selectedElement=t?new CKEDITOR.dom.element(t):null},getSelectedText:function(){var e=this._.cache;if(void 0!==e.selectedText)return e.selectedText;var t=this.getNative();t=b?"Control"==t.type?"":t.createRange().text:t.toString();return e.selectedText=t},lock:function(){this.getRanges(),this.getStartElement(),this.getSelectedElement(),this.getSelectedText(),this._.cache.nativeSel=null,this.isLocked=1},unlock:function(e){if(this.isLocked){if(e)var t=this.getSelectedElement(),n=this.getRanges(),i=this.isFake;this.isLocked=0,this.reset(),e&&(e=t||n[0]&&n[0].getCommonAncestor())&&e.getAscendant("body",1)&&(h(n)?f.call(this,n):i?this.fake(t):t?this.selectElement(t):this.selectRanges(n))}},reset:function(){this._.cache={},this.isFake=0;var e=this.root.editor;if(e&&e._.fakeSelection)if(this.rev==e._.fakeSelection.rev){delete e._.fakeSelection;var t=e._.hiddenSelectionContainer;if(t){var n=e.checkDirty();e.fire("lockSnapshot"),t.remove(),e.fire("unlockSnapshot"),!n&&e.resetDirty()}delete e._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=s++},selectElement:function(e){var t=new CKEDITOR.dom.range(this.root);t.setStartBefore(e),t.setEndAfter(e),this.selectRanges([t])},selectRanges:function(e){var t=this.root.editor,n=t&&t._.hiddenSelectionContainer;if(this.reset(),n){n=this.root;for(var i,o=0;o<e.length;++o)(i=e[o]).endContainer.equals(n)&&(i.endOffset=Math.min(i.endOffset,n.getChildCount()))}if(e.length)if(this.isLocked){var a=CKEDITOR.document.getActive();this.unlock(),this.selectRanges(e),this.lock(),a&&!a.equals(this.root)&&a.focus()}else{var r,s,l;if(1==e.length&&!(l=e[0]).collapsed&&(r=l.getEnclosedNode())&&r.type==CKEDITOR.NODE_ELEMENT&&((l=l.clone()).shrink(CKEDITOR.SHRINK_ELEMENT,!0),(s=l.getEnclosedNode())&&s.type==CKEDITOR.NODE_ELEMENT&&(r=s),"false"==r.getAttribute("contenteditable"))||(r=void 0),r)this.fake(r);else if(t&&t.plugins.tableselection&&CKEDITOR.plugins.tableselection.isSupportedEnvironment&&h(e)&&!D)f.call(this,e);else{if(b){var c,d,u;if(s=CKEDITOR.dom.walker.whitespaces(!0),r=/\ufeff|\u00a0/,l={table:1,tbody:1,tr:1},1<e.length&&(t=e[e.length-1],e[0].setEnd(t.endContainer,t.endOffset)),e=(t=e[0]).collapsed,(n=t.getEnclosedNode())&&n.type==CKEDITOR.NODE_ELEMENT&&n.getName()in y&&(!n.is("a")||!n.getText()))try{return(u=n.$.createControlRange()).addElement(n.$),void u.select()}catch(I){}(t.startContainer.type==CKEDITOR.NODE_ELEMENT&&t.startContainer.getName()in l||t.endContainer.type==CKEDITOR.NODE_ELEMENT&&t.endContainer.getName()in l)&&(t.shrink(CKEDITOR.NODE_ELEMENT,!0),e=t.collapsed),l=(u=t.createBookmark()).startNode,e||(a=u.endNode),(u=t.document.$.body.createTextRange()).moveToElementText(l.$),u.moveStart("character",1),a?((r=t.document.$.body.createTextRange()).moveToElementText(a.$),u.setEndPoint("EndToEnd",r),u.moveEnd("character",-1)):(c=l.getNext(s),d=l.hasAscendant("pre"),c=!(c&&c.getText&&c.getText().match(r))&&(d||!l.hasPrevious()||l.getPrevious().is&&l.getPrevious().is("br")),(d=t.document.createElement("span")).setHtml("&#65279;"),d.insertBefore(l),c&&t.document.createText("\ufeff").insertBefore(l)),t.setStartBefore(l),l.remove(),e?(c?(u.moveStart("character",-1),u.select(),t.document.$.selection.clear()):u.select(),t.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START),d.remove()):(t.setEndBefore(a),a.remove(),u.select())}else{if(!(a=this.getNative()))return;for(this.removeAllRanges(),u=0;u<e.length;u++)if(u<e.length-1&&(c=e[u],d=e[u+1],(r=c.clone()).setStart(c.endContainer,c.endOffset),r.setEnd(d.startContainer,d.startOffset),!r.collapsed&&(r.shrink(CKEDITOR.NODE_ELEMENT,!0),t=r.getCommonAncestor(),r=r.getEnclosedNode(),t.isReadOnly()||r&&r.isReadOnly())))d.setStart(c.startContainer,c.startOffset),e.splice(u--,1);else{t=e[u],d=this.document.$.createRange(),t.collapsed&&CKEDITOR.env.webkit&&p(t)&&(r=T(this.root),t.insertN
11ode(r),(c=r.getNext())&&!r.getPrevious()&&c.type==CKEDITOR.NODE_ELEMENT&&"br"==c.getName()?(C(this.root),t.moveToPosition(c,CKEDITOR.POSITION_BEFORE_START)):t.moveToPosition(r,CKEDITOR.POSITION_AFTER_END)),d.setStart(t.startContainer.$,t.startOffset);try{d.setEnd(t.endContainer.$,t.endOffset)}catch(v){if(!(0<=v.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")))throw v;t.collapse(1),d.setEnd(t.endContainer.$,t.endOffset)}a.addRange(d)}}this.reset(),this.root.fire("selectionchange")}}},fake:function(e,t){var n=this.root.editor;void 0===t&&e.hasAttribute("aria-label")&&(t=e.getAttribute("aria-label")),this.reset(),r(n,t);var i=this._.cache,o=new CKEDITOR.dom.range(this.root);o.setStartBefore(e),o.setEndAfter(e),i.ranges=new CKEDITOR.dom.rangeList(o),i.selectedElement=i.startElement=e,i.type=CKEDITOR.SELECTION_ELEMENT,i.selectedText=i.nativeSel=null,this.isFake=1,this.rev=s++,(n._.fakeSelection=this).root.fire("selectionchange")},isHidden:function(){var e=this.getCommonAncestor();return e&&e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent()),!(!e||!e.data("cke-hidden-sel"))},isInTable:function(e){return h(this.getRanges(),e)},isCollapsed:function(){var e=this.getRanges();return 1===e.length&&e[0].collapsed},createBookmarks:function(e){return e=this.getRanges().createBookmarks(e),this.isFake&&(e.isFake=1),e},createBookmarks2:function(e){return e=this.getRanges().createBookmarks2(e),this.isFake&&(e.isFake=1),e},selectBookmarks:function(e){for(var t,n=[],i=0;i<e.length;i++){var o=new CKEDITOR.dom.range(this.root);o.moveToBookmark(e[i]),n.push(o)}return e.isFake&&((t=h(n)?n[0]._getTableElement():n[0].getEnclosedNode())&&t.type==CKEDITOR.NODE_ELEMENT||(CKEDITOR.warn("selection-not-fake"),e.isFake=0)),e.isFake&&!h(n)?this.fake(t):this.selectRanges(n),this},getCommonAncestor:function(){var e=this.getRanges();return e.length?e[0].startContainer.getCommonAncestor(e[e.length-1].endContainer):null},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var e=this.getNative();try{e&&e[b?"empty":"removeAllRanges"]()}catch(a){}this.reset()}}}}(),CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function y(e,t){for(var n,i;(e=e.getParent())&&!e.equals(t);)if(e.getAttribute("data-nostyle"))n=e;else if(!i){var o=e.getAttribute("contentEditable");"false"==o?n=e:"true"==o&&(i=1)}return n}function _(e,t,n,i){return(e.getPosition(t)|i)==i&&(!n.childRule||n.childRule(e))}function K(e){var t=e.document;if(e.collapsed)t=S(this,t),e.insertNode(t),e.moveToPosition(t,CKEDITOR.POSITION_BEFORE_END);else{var n,i=this.element,o=this._.definition,a=(h=o.ignoreReadonly)||o.includeReadonly;null==a&&(a=e.root.getCustomData("cke_includeReadonly"));var r=CKEDITOR.dtd[i];r||(n=!0,r=CKEDITOR.dtd.span),e.enlarge(CKEDITOR.ENLARGE_INLINE,1),e.trim();var s,l=e.createBookmark(),c=l.startNode,d=l.endNode,u=c;if(!h){var h=y(c,f=e.getCommonAncestor()),f=y(d,f);h&&(u=h.getNextSourceNode(!0)),f&&(d=f)}for(u.getPosition(d)==CKEDITOR.POSITION_FOLLOWING&&(u=0);u;){if(h=!1,u.equals(d))u=null,h=!0;else{f=(I=u.type==CKEDITOR.NODE_ELEMENT?u.getName():null)&&"false"==u.getAttribute("contentEditable");var m=I&&u.getAttribute("data-nostyle");if(I&&u.data("cke-bookmark")||u.type===CKEDITOR.NODE_COMMENT){u=u.getNextSourceNode(!0);continue}if(f&&a&&CKEDITOR.dtd.$block[I])for(var p=void 0,g=0,E=(R=(b=k(E=u)).length)&&new CKEDITOR.dom.range(E.getDocument());g<R;++g){p=b[g];var T=CKEDITOR.filter.instances[p.data("cke-filter")];T&&!T.check(this)||(E.selectNodeContents(p),K.call(this,E))}if(b=I?!r[I]||m?0:f&&!a?0:_(u,d,o,N):1){if(b=o,R=i,g=n,!(p=u.getParent())||!(p.getDtd()||CKEDITOR.dtd.span)[R]&&!g||b.parentRule&&!b.parentRule(p))h=!0;else if(s||I&&CKEDITOR.dtd.$removeEmpty[I]&&(u.getPosition(d)|N)!=N||(s=e.clone()).setStartBefore(u),(I=u.type)==CKEDITOR.NODE_TEXT||f||I==CKEDITOR.NODE_ELEMENT&&!u.getChildCount()){for(var C,I=u;(h=!I.getNext(x))&&r[(C=I.getParent()).getName()]&&_(C,c,o,A);)I=C;s.setEndAfter(I)}}else h=!0;u=u.getNextSourceNode(m||f)}if(h&&s&&!s.collapsed){f=(h=S(this,t)).hasAttributes(),m=s.getCommonAncestor(),I={};for(var O,D,v,b={},R=(p={},{});h&&m;){if(m.getName()==i){for(O in o.attributes)!R[O]&&(v=m.getAttribute(D))&&(h.getAttribute(O)==v?b[O]=1:R[O]=1);for(D in o.styles)!p[D]&&(v=m.getStyle(D))&&(h.getStyle(D)==v?I[D]=1:p[D]=1)}m=m.getParent()}for(O in b)h.removeAttribute(O);for(D in I)h.removeStyle(D);f&&!h.hasAttributes()&&(h=null),h?(s.extractContents().appendTo(h),s.insertNode(h),w.call(this,h),h.mergeSiblings(),CKEDITOR.env.ie||h.$.normalize()):(h=new CKEDITOR.dom.element("span"),s.extractContents().appendTo(h),s.insertNode(h),w.call(this,h),h.remove(!0)),s=null}}e.moveToBookmark(l),e.shrink(CKEDITOR.SHRINK_TEXT),e.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function t(e){function t(){for(var e=new CKEDITOR.dom.elementPath(r.getParent()),t=new CKEDITOR.dom.elementPath(d.getParent()),n=null,i=null,o=0;o<e.elements.length;o++){var a=e.elements[o];if(a==e.block||a==e.blockLimit)break;u.checkElementRemovable(a,!0)&&(n=a)}for(o=0;o<t.elements.length&&((a=t.elements[o])!=t.block&&a!=t.blockLimit);o++)u.checkElementRemovable(a,!0)&&(i=a);i&&d.breakParent(i),n&&r.breakParent(n)}e.enlarge(CKEDITOR.ENLARGE_INLINE,1);var n=e.createBookmark(),r=n.startNode,i=this._.definition.alwaysRemoveElement;if(e.collapsed){for(var o,a,s=new CKEDITOR.dom.elementPath(r.getParent(),e.root),l=0;l<s.elements.length&&(a=s.elements[l])&&a!=s.block&&a!=s.blockLimit;l++)if(this.checkElementRemovable(a)){var c;!i&&e.collapsed&&(e.checkBoundaryOfElement(a,CKEDITOR.END)||(c=e.checkBoundaryOfElement(a,CKEDITOR.START)))?(o=a).match=c?"start":"end":(a.mergeSiblings(),a.is(this.element)?h.call(this,a):f(a,p(this)[a.getName()]))}if(o){for(i=r,l=0;!(a=s.elements[l]).equals(o);l++)a.match||((a=a.clone()).append(i),i=a);i["start"==o.match?"insertBefore":"insertAfter"](o)}}else{var d=n.endNode,u=this;for(t(),s=r;!s.equals(d);)o=s.getNextSourceNode(),s.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(s)&&(s.getName()==this.element?h.call(this,s):f(s,p(this)[s.getName()]),o.type==CKEDITOR.NODE_ELEMENT&&o.contains(r)&&(t(),o=r.getNext())),s=o}e.moveToBookmark(n),e.shrink(CKEDITOR.NODE_ELEMENT,!0)}function k(e){var t=[];return e.forEach(function(e){if("true"==e.getAttribute("contenteditable"))return t.push(e),!1},CKEDITOR.NODE_ELEMENT,!0),t}function n(e){var t=e.getEnclosedNode()||e.getCommonAncestor(!1,!0);(e=new CKEDITOR.dom.elementPath(t,e.root).contains(this.element,1)
11)&&!e.isReadOnly()&&s(e,this)}function i(e){var t=e.getCommonAncestor(!0,!0);if(e=new CKEDITOR.dom.elementPath(t,e.root).contains(this.element,1)){var n=(t=this._.definition).attributes;if(n)for(var i in n)e.removeAttribute(i,n[i]);if(t.styles)for(var o in t.styles)t.styles.hasOwnProperty(o)&&e.removeStyle(o)}}function o(e){var t=e.createBookmark(!0),n=e.createIterator();n.enforceRealBlocks=!0,this._.enterMode&&(n.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var i,o=e.document;i=n.getNextParagraph();)!i.isReadOnly()&&(!n.activeFilter||n.activeFilter.check(this))&&r(i,S(this,o,i));e.moveToBookmark(t)}function a(e){var t,n,i=e.createBookmark(1),o=e.createIterator();for(o.enforceRealBlocks=!0,o.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;t=o.getNextParagraph();)this.checkElementRemovable(t)&&(t.is("pre")?((n=this._.enterMode==CKEDITOR.ENTER_BR?null:e.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&t.copyAttributes(n),r(t,n)):h.call(this,t));e.moveToBookmark(i)}function r(e,t){(n=!t)&&(t=e.getDocument().createElement("div"),e.copyAttributes(t));var n,i,o=t&&t.is("pre"),a=e.is("pre"),r=!o&&a;if(o&&!a){if(a=t,(r=e.getBogus())&&r.remove(),r=(r=(r=(r=c(r=e.getHtml(),/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"")).replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1")).replace(/([ \t\n\r]+|&nbsp;)/g," ")).replace(/<br\b[^>]*>/gi,"\n"),CKEDITOR.env.ie){var s=e.getDocument().createElement("div");s.append(a),a.$.outerHTML="<pre>"+r+"</pre>",a.copyAttributes(s.getFirst()),a=s.getFirst().remove()}else a.setHtml(r);t=a}else r?t=d(n?[e.getHtml()]:l(e),t):e.moveChildren(t);(t.replace(e),o)?(i=(n=t).getPrevious(v))&&i.type==CKEDITOR.NODE_ELEMENT&&i.is("pre")&&(o=c(i.getHtml(),/\n$/,"")+"\n\n"+c(n.getHtml(),/^\n/,""),CKEDITOR.env.ie?n.$.outerHTML="<pre>"+o+"</pre>":n.setHtml(o),i.remove()):n&&u(t)}function l(e){var n=[];return c(e.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(e,t,n){return t+"</pre>"+n+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(e,t){n.push(t)}),n}function c(e,t,n){var i="",o="";return e=e.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(e,t,n){return t&&(i=t),n&&(o=n),""}),i+e.replace(t,n)+o}function d(e,t){var n;1<e.length&&(n=new CKEDITOR.dom.documentFragment(t.getDocument()));for(var i=0;i<e.length;i++){var o=(o=(o=c(o=c(o=c(o=(o=e[i]).replace(/(\r\n|\r)/g,"\n"),/^[ \t]*\n/,""),/\n$/,""),/^[ \t]+|[ \t]+$/g,function(e,t){return 1==e.length?"&nbsp;":t?" "+CKEDITOR.tools.repeat("&nbsp;",e.length-1):CKEDITOR.tools.repeat("&nbsp;",e.length-1)+" "})).replace(/\n/g,"<br>")).replace(/[ \t]{2,}/g,function(e){return CKEDITOR.tools.repeat("&nbsp;",e.length-1)+" "});if(n){var a=t.clone();a.setHtml(o),n.append(a)}else t.setHtml(o)}return n||t}function h(e,t){var n,i=(o=this._.definition).attributes,o=o.styles,a=p(this)[e.getName()],r=CKEDITOR.tools.isEmpty(i)&&CKEDITOR.tools.isEmpty(o);for(n in i)("class"!=n&&!this._.definition.fullMatch||e.getAttribute(n)==g(n,i[n]))&&(t&&"data-"==n.slice(0,5)||(r=e.hasAttribute(n),e.removeAttribute(n)));for(var s in o)this._.definition.fullMatch&&e.getStyle(s)!=g(s,o[s],!0)||(r=r||!!e.getStyle(s),e.removeStyle(s));f(e,a,C[e.getName()]),r&&(this._.definition.alwaysRemoveElement?u(e,1):!CKEDITOR.dtd.$block[e.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!e.hasAttributes()?u(e):e.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function w(e){for(var t,n=p(this),i=e.getElementsByTag(this.element),o=i.count();0<=--o;)(t=i.getItem(o)).isReadOnly()||h.call(this,t,!0);for(var a in n)if(a!=this.element)for(o=(i=e.getElementsByTag(a)).count()-1;0<=o;o--)(t=i.getItem(o)).isReadOnly()||f(t,n[a])}function f(e,t,n){if(t=t&&t.attributes)for(var i=0;i<t.length;i++){var o,a=t[i][0];if(o=e.getAttribute(a)){var r=t[i][1];(null===r||r.test&&r.test(o)||"string"==typeof r&&o==r)&&e.removeAttribute(a)}}n||u(e)}function u(e,t){if(!e.hasAttributes()||t)if(CKEDITOR.dtd.$block[e.getName()]){var n=e.getPrevious(v),i=e.getNext(v);!n||n.type!=CKEDITOR.NODE_TEXT&&n.isBlockBoundary({br:1})||e.append("br",1),!i||i.type!=CKEDITOR.NODE_TEXT&&i.isBlockBoundary({br:1})||e.append("br"),e.remove(!0)}else n=e.getFirst(),i=e.getLast(),e.remove(!0),n&&(n.type==CKEDITOR.NODE_ELEMENT&&n.mergeSiblings(),i&&!n.equals(i)&&i.type==CKEDITOR.NODE_ELEMENT&&i.mergeSiblings())}function S(e,t,n){var i;return"*"==(i=e.element)&&(i="span"),i=new CKEDITOR.dom.element(i,t),n&&n.copyAttributes(i),i=s(i,e),t.getCustomData("doc_processing_style")&&i.hasAttribute("id")?i.removeAttribute("id"):t.setCustomData("doc_processing_style",1),i}function s(e,t){var n=(i=t._.definition).attributes,i=CKEDITOR.style.getStyleText(i);if(n)for(var o in n)e.setAttribute(o,n[o]);return i&&e.setAttribute("style",i),e.getDocument().removeCustomData("doc_processing_style"),e}function m(e,n){for(var t in e)e[t]=e[t].replace(D,function(e,t){return n[t]})}function p(e){if(e._.overrides)return e._.overrides;var t=e._.overrides={},n=e._.definition.overrides;if(n){CKEDITOR.tools.isArray(n)||(n=[n]);for(var i=0;i<n.length;i++){var o,a;if("string"==typeof(s=n[i])?o=s.toLowerCase():(o=s.element?s.element.toLowerCase():e.element,a=s.attributes),s=t[o]||(t[o]={}),a){var r,s=s.attributes=s.attributes||[];for(r in a)s.push([r.toLowerCase(),a[r]])}}}return t}function g(e,t,n){var i=new CKEDITOR.dom.element("span");return i[n?"setStyle":"setAttribute"](e,t),i[n?"getStyle":"getAttribute"](e)}function E(e,t){function n(e,t){return"font-family"==t.toLowerCase()?e.replace(/["']/g,""):e}for(var i in"string"==typeof e&&(e=CKEDITOR.tools.parseCssText(e)),"string"==typeof t&&(t=CKEDITOR.tools.parseCssText(t,!0)),e)if(!(i in t)||n(t[i],i)!=n(e[i],i)&&"inherit"!=e[i]&&"inherit"!=t[i])return!1;return!0}function T(e,t,n){var i,o,a=e.getRanges();if(t=t?this.removeFromRange:this.applyToRange,e.isFake&&e.isInTable())for(i=[],o=0;o<a.length;o++)i.push(a[o].clone());for(var r=a.createIterator();o=r.getNextRange();)t.call(this,o,n);e.selectRanges(i||a)}var C={address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,details:1,datagrid:1,datalist:1},I={a:1,blockquote:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1},O=/\s*(?:;\s*|$)/,D=/#\((.+?)\)/g,x=CKEDITOR.dom.walker.bookmark(0,1),v=CKEDITOR.dom.walker.whitespace
11s(1);CKEDITOR.style=function(e,t){if("string"==typeof e.type)return new CKEDITOR.style.customHandlers[e.type](e);var n=e.attributes;n&&n.style&&(e.styles=CKEDITOR.tools.extend({},e.styles,CKEDITOR.tools.parseCssText(n.style)),delete n.style),t&&(m((e=CKEDITOR.tools.clone(e)).attributes,t),m(e.styles,t)),n=this.element=e.element?"string"==typeof e.element?e.element.toLowerCase():e.element:"*",this.type=e.type||(C[n]?CKEDITOR.STYLE_BLOCK:I[n]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE),"object"==typeof this.element&&(this.type=CKEDITOR.STYLE_OBJECT),this._={definition:e}},CKEDITOR.style.prototype={apply:function(e){if(e instanceof CKEDITOR.dom.document)return T.call(this,e.getSelection());if(this.checkApplicable(e.elementPath(),e)){var t=this._.enterMode;t||(this._.enterMode=e.activeEnterMode),T.call(this,e.getSelection(),0,e),this._.enterMode=t}},remove:function(e){if(e instanceof CKEDITOR.dom.document)return T.call(this,e.getSelection(),1);if(this.checkApplicable(e.elementPath(),e)){var t=this._.enterMode;t||(this._.enterMode=e.activeEnterMode),T.call(this,e.getSelection(),1,e),this._.enterMode=t}},applyToRange:function(e){return this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?K:this.type==CKEDITOR.STYLE_BLOCK?o:this.type==CKEDITOR.STYLE_OBJECT?n:null,this.applyToRange(e)},removeFromRange:function(e){return this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?t:this.type==CKEDITOR.STYLE_BLOCK?a:this.type==CKEDITOR.STYLE_OBJECT?i:null,this.removeFromRange(e)},applyToObject:function(e){s(e,this)},checkActive:function(e,t){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(e.block||e.blockLimit,!0,t);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var n,i=e.elements,o=0;o<i.length;o++)if(n=i[o],this.type!=CKEDITOR.STYLE_INLINE||n!=e.block&&n!=e.blockLimit){if(this.type==CKEDITOR.STYLE_OBJECT){var a=n.getName();if(!("string"==typeof this.element?a==this.element:a in this.element))continue}if(this.checkElementRemovable(n,!0,t))return!0}}return!1},checkApplicable:function(e,t,n){if(t&&t instanceof CKEDITOR.filter&&(n=t),n&&!n.check(this))return!1;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!e.contains(this.element);case CKEDITOR.STYLE_BLOCK:return!!e.blockLimit.getDtd()[this.element]}return!0},checkElementMatch:function(e,t){var n=this._.definition;if(!e||!n.ignoreReadonly&&e.isReadOnly())return!1;var i=e.getName();if("string"==typeof this.element?i==this.element:i in this.element){if(!t&&!e.hasAttributes())return!0;if(i=n._AC)n=i;else{i={};var o=0,a=n.attributes;if(a)for(var r in a)o++,i[r]=a[r];(r=CKEDITOR.style.getStyleText(n))&&(i.style||o++,i.style=r),i._length=o,n=n._AC=i}if(!n._length)return!0;for(var s in n)if("_length"!=s)if(i=e.getAttribute(s)||"","style"==s?E(n[s],i):n[s]==i){if(!t)return!0}else if(t)return!1;if(t)return!0}return!1},checkElementRemovable:function(e,t,n){if(this.checkElementMatch(e,t,n))return!0;if(t=p(this)[e.getName()]){var i;if(!(t=t.attributes))return!0;for(n=0;n<t.length;n++)if(i=t[n][0],i=e.getAttribute(i)){var o=t[n][1];if(null===o)return!0;if("string"==typeof o){if(i==o)return!0}else if(o.test(i))return!0}}return!1},buildPreview:function(e){var t=this._.definition,n=[],i=t.element;"bdo"==i&&(i="span");n=["<",i];var o=t.attributes;if(o)for(var a in o)n.push(" ",a,'="',o[a],'"');return(o=CKEDITOR.style.getStyleText(t))&&n.push(' style="',o,'"'),n.push(">",e||t.name,"</",i,">"),n.join("")},getDefinition:function(){return this._.definition}},CKEDITOR.style.getStyleText=function(e){if(t=e._ST)return t;var t=e.styles,n=e.attributes&&e.attributes.style||"",i="";for(var o in n.length&&(n=n.replace(O,";")),t){var a=t[o],r=(o+":"+a).replace(O,";");"inherit"==a?i+=r:n+=r}return n.length&&(n=CKEDITOR.tools.normalizeCssText(n,!0)),e._ST=n+i},CKEDITOR.style.customHandlers={},CKEDITOR.style.addCustomHandler=function(e){var t=function(e){this._={definition:e},this.setup&&this.setup(e)};return t.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},e,!0),this.customHandlers[e.type]=t};var N=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,A=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(e,t){this.requiredContent=this.allowedContent=this.style=e,CKEDITOR.tools.extend(this,t,!0)},CKEDITOR.styleCommand.prototype.exec=function(e){e.focus(),this.state==CKEDITOR.TRISTATE_OFF?e.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&e.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(e,t,n){CKEDITOR.stylesSet.addExternal(e,t,""),CKEDITOR.stylesSet.load(e,n)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(e,t){var o=this._.styleStateChangeCallbacks;o||(o=this._.styleStateChangeCallbacks=[],this.on("selectionChange",function(e){for(var t=0;t<o.length;t++){var n=o[t],i=n.style.checkActive(e.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;n.fn.call(this,i)}})),o.push({style:e,fn:t})},applyStyle:function(e){e.apply(this)},removeStyle:function(e){e.remove(this)},getStylesSet:function(t){if(this._.stylesDefinitions)t(this._.stylesDefinitions);else{var n=this;
11if(!1===(e=n.config.stylesCombo_stylesSet||n.config.stylesSet))t(null);else if(e instanceof Array)n._.stylesDefinitions=e,t(e);else{e||(e="default");var e,i=(e=e.split(":"))[0];CKEDITOR.stylesSet.addExternal(i,e[1]?e.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),""),CKEDITOR.stylesSet.load(i,function(e){n._.stylesDefinitions=e[i],t(n._.stylesDefinitions)})}}}}),CKEDITOR.dom.comment=function(e,t){"string"==typeof e&&(e=(t?t.$:document).createComment(e)),CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"<!--"+this.$.nodeValue+"-->"}}),function(){var e,d={},u={};for(e in CKEDITOR.dtd.$blockLimit)e in CKEDITOR.dtd.$list||(d[e]=1);for(e in CKEDITOR.dtd.$block)e in CKEDITOR.dtd.$blockLimit||e in CKEDITOR.dtd.$empty||(u[e]=1);CKEDITOR.dom.elementPath=function(e,t){var n,i=null,o=null,a=[],r=e;t=t||e.getDocument().getBody(),r||(r=t);do{if(r.type==CKEDITOR.NODE_ELEMENT){if(a.push(r),
12!this.lastElement&&((this.lastElement=r).is(CKEDITOR.dtd.$object)||"false"==r.getAttribute("contenteditable")))continue;if(r.equals(t))break;if(!o&&(n=r.getName(),"true"==r.getAttribute("contenteditable")?o=r:!i&&u[n]&&(i=r),d[n])){if(n=!i&&"div"==n){e:{for(var s=0,l=(n=r.getChildren()).count();s<l;s++){var c=n.getItem(s);if(c.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[c.getName()]){n=!0;break e}}n=!1}n=!n}n?i=r:o=r}}}while(r=r.getParent());o||(o=t),this.block=i,this.blockLimit=o,this.root=t,this.elements=a}}(),CKEDITOR.dom.elementPath.prototype={compare:function(e){var t=this.elements;if(!(e=e&&e.elements)||t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].equals(e[n]))return!1;return!0},contains:function(t,e,n){var i,o=0;"string"==typeof t&&(i=function(e){return e.getName()==t}),t instanceof CKEDITOR.dom.element?i=function(e){return e.equals(t)}:CKEDITOR.tools.isArray(t)?i=function(e){return-1<CKEDITOR.tools.indexOf(t,e.getName())}:"function"==typeof t?i=t:"object"==typeof t&&(i=function(e){return e.getName()in t});var a=this.elements,r=a.length;for(e&&(n?o+=1:--r),n&&(a=Array.prototype.slice.call(a,0)).reverse();o<r;o++)if(i(a[o]))return a[o];return null},isContextFor:function(e){return!(e in CKEDITOR.dtd.$block)||!!(this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit).getDtd()[e]},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},CKEDITOR.dom.text=function(e,t){"string"==typeof e&&(e=(t?t.$:document).createTextNode(e)),this.$=e},CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(e){this.$.nodeValue=e},split:function(e){var t=this.$.parentNode,n=t.childNodes.length,i=this.getLength(),o=this.getDocument(),a=new CKEDITOR.dom.text(this.$.splitText(e),o);return t.childNodes.length==n&&(i<=e?(a=o.createText("")).insertAfter(this):((e=o.createText("")).insertAfter(a),e.remove())),a},substring:function(e,t){return"number"!=typeof t?this.$.nodeValue.substr(e):this.$.nodeValue.substring(e,t)}}),function(){function a(e,t,n){var i=e.serializable,o=t[n?"endContainer":"startContainer"],a=n?"endOffset":"startOffset",r=i?t.document.getById(e.startNode):e.startNode;return e=i?t.document.getById(e.endNode):e.endNode,o.equals(r.getPrevious())?(t.startOffset=t.startOffset-o.getLength()-e.getPrevious().getLength(),o=e.getNext()):o.equals(e.getPrevious())&&(t.startOffset-=o.getLength(),o=e.getNext()),o.equals(r.getParent())&&t[a]++,o.equals(e.getParent())&&t[a]++,t[n?"endContainer":"startContainer"]=o,t}CKEDITOR.dom.rangeList=function(e){return e instanceof CKEDITOR.dom.rangeList?e:(e?e instanceof CKEDITOR.dom.range&&(e=[e]):e=[],CKEDITOR.tools.extend(e,t))};var t={createIterator:function(){var a,r=this,s=CKEDITOR.dom.walker.bookmark(),l=[];return{getNextRange:function(e){var t=r[a=void 0===a?0:a+1];if(t&&1<r.length){if(!a)for(var n=r.length-1;0<=n;n--)l.unshift(r[n].createBookmark(!0));if(e)for(var i=0;r[a+i+1];){var o=t.document;for(e=0,n=o.getById(l[i].endNode),o=o.getById(l[i+1].startNode);;){if(n=n.getNextSourceNode(!1),o.equals(n))e=1;else if(s(n)||n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary())continue;break}if(!e)break;i++}for(t.moveToBookmark(l.shift());i--;)(n=r[++a]).moveToBookmark(l.shift()),t.setEnd(n.endContainer,n.endOffset)}return t}}},createBookmarks:function(e){for(var t,n=[],i=0;i<this.length;i++){n.push(t=this[i].createBookmark(e,!0));for(var o=i+1;o<this.length;o++)this[o]=a(t,this[o]),this[o]=a(t,this[o],!0)}return n},createBookmarks2:function(e){for(var t=[],n=0;n<this.length;n++)t.push(this[n].createBookmark2(e));return t},moveToBookmarks:function(e){for(var t=0;t<this.length;t++)this[t].moveToBookmark(e[t])}}}(),function(){function a(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function n(e){var t=CKEDITOR.skin["ua_"+e],n=CKEDITOR.env;if(t){t=t.split(",").sort(function(e,t){return t<e?-1:1});for(var i,o=0;o<t.length;
12o++)if(i=t[o],n.ie&&(i.replace(/^ie/,"")==n.version||n.quirks&&"iequirks"==i)&&(i="ie"),n[i]){e+="_"+t[o];break}}return CKEDITOR.getUrl(a()+e+".css")}function i(e,t){o[e]||(CKEDITOR.document.appendStyleSheet(n(e)),o[e]=1),t&&t()}function r(e){var t=e.getById(l);return t||((t=e.getHead().append("style")).setAttribute("id",l),t.setAttribute("type","text/css")),t}function s(e,t,n){var i,o,a;if(CKEDITOR.env.webkit)for(t=t.split("}").slice(0,-1),o=0;o<t.length;o++)t[o]=t[o].split("{");for(var r=0;r<e.length;r++)if(CKEDITOR.env.webkit)for(o=0;o<t.length;o++){for(a=t[o][1],i=0;i<n.length;i++)a=a.replace(n[i][0],n[i][1]);e[r].$.sheet.addRule(t[o][0],a)}else{for(a=t,i=0;i<n.length;i++)a=a.replace(n[i][0],n[i][1]);CKEDITOR.env.ie&&CKEDITOR.env.version<11?e[r].$.styleSheet.cssText+=a:e[r].$.innerHTML+=a}}var o={};CKEDITOR.skin={path:a,loadPart:function(e,t){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(a()+"skin.js"),function(){i(e,t)}):i(e,t)},getPath:function(e){return CKEDITOR.getUrl(n(e))},icons:{},addIcon:function(e,t,n,i){e=e.toLowerCase(),this.icons[e]||(this.icons[e]={path:t,offset:n||0,bgsize:i||"16px"})},getIconStyle:function(e,t,n,i,o){var a;return e&&(e=e.toLowerCase(),t&&(a=this.icons[e+"-rtl"]),a||(a=this.icons[e])),e=n||a&&a.path||"",i=i||a&&a.offset,o=o||a&&a.bgsize||"16px",e&&(e=e.replace(/'/g,"\\'")),e&&"background-image:url('"+CKEDITOR.getUrl(e)+"');background-position:0 "+i+"px;background-size:"+o+";"}},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(e){var o=r(CKEDITOR.document);return(this.setUiColor=function(e){this.uiColor=e;var t=CKEDITOR.skin.chameleon,n="",i="";"function"==typeof t&&(n=t(this,"editor"),i=t(this,"panel")),s([o],n,e=[[d,e]]),s(c,i,e)}).call(this,e)}});var l="cke_ui_color",c=[],d=/\$color/g;CKEDITOR.on("instanceLoaded",function(e){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var n=e.editor;e=function(e){if(!(e=(e.data[0]||e.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument()).getById("cke_ui_color")){e=r(e),c.push(e);var t=n.getUiColor();t&&s([e],CKEDITOR.skin.chameleon(n,"panel"),[[d,t]])}},n.on("panelShow",e),n.on("menuShow",e),n.config.uiColor&&n.setUiColor(n.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=!1;else{var e=CKEDITOR.dom.element.createFromHtml('<div style="width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"></div>',CKEDITOR.document);e.appendTo(CKEDITOR.document.getHead());try{var t=e.getComputedStyle("border-top-color"),n=e.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!t||t!=n)}catch(i){CKEDITOR.env.hc=!1}e.remove()}if(CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc"),CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}"),CKEDITOR.status="loaded",CKEDITOR.fireOnce("loaded"),e=CKEDITOR._.pending)for(delete CKEDITOR._.pending,t=0;t<e.length;t++)CKEDITOR.editor.prototype.constructor.apply(e[t][0],e[t][1]),CKEDITOR.add(e[t][0])}(),CKEDITOR.skin.name="moono-lisa",CKEDITOR.skin.ua_editor="ie,iequirks,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie8",CKEDITOR.skin.chameleon=(D=function(e,t){for(var n=e.match(/[^#]./g),i=0;i<3;i++){var o,a=i;o=parseInt(n[i],16),o=("0"+(t<0?0|o*(1+t):0|o+(255-o)*t).toString(16)).slice(-2),n[a]=o}return"#"+n.join("")},v
vendor: 2,820 bytes, line 12
12={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ background-color:{defaultBackground};border-bottom-color:{defaultBorder};] {id} .cke_bottom [background-color:{defaultBackground};border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [background-color:{defaultBackground};border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [background-color:{defaultBackground};outline-color:{defaultBorder};] {id} .cke_dialog_tab [background-color:{dialogTab};border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [background-color:{lightBackground};] {id} .cke_dialog_contents [border-top-color:{defaultBorder};] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [background:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};] {id} a.cke_button_off:hover,{id} a.cke_button_off:focus,{id} a.cke_button_off:active [background-color:{darkBackground};border-color:{toolbarElementsBorder};] {id} .cke_button_on [background-color:{ckeButtonOn};border-color:{toolbarElementsBorder};] {id} .cke_toolbar_separator,{id} .cke_toolgroup a.cke_button:last-child:after,{id} .cke_toolgroup a.cke_button.cke_button_disabled:hover:last-child:after [background-color: {toolbarElementsBorder};border-color: {toolbarElementsBorder};] {id} a.cke_combo_button:hover,{id} a.cke_combo_button:focus,{id} .cke_combo_on a.cke_combo_button [border-color:{toolbarElementsBorder};background-color:{darkBackground};] {id} .cke_combo:after [border-color:{toolbarElementsBorder};] {id} .cke_path_item [color:{elementsPathColor};] {id} a.cke_path_item:hover,{id} a.cke_path_item:focus,{id} a.cke_path_item:active [background-color:{darkBackground};] {id}.cke_panel [border-color:{defaultBorder};] "),panel:new CKEDITOR.template(".cke_panel_grouptitle [background-color:{lightBackground};border-color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menubutton:hover,.cke_menubutton:focus,.cke_menubutton:active [background-color:{menubuttonHover};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background-color:{menubuttonIconHover};] .cke_menubutton_disabled:hover .cke_menubutton_icon,.cke_menubutton_disabled:focus .cke_menubutton_icon,.cke_menubutton_disabled:active .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menuseparator [background-color:{menubuttonIcon};] a:hover.cke_colorbox, a:active.cke_colorbox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defaultBorder};] ")}
vendor: 3,732 bytes, line 12
12,function(e,t){var n=D(e.uiColor,.4);return n={id:"."+e.id,defaultBorder:D(n,-.2),toolbarElementsBorder:D(n,-.25),defaultBackground:n,lightBackground:D(n,.8),darkBackground:D(n,-.15),ckeButtonOn:D(n,.4),ckeResizer:D(n,-.4),ckeColorauto:D(n,.8),dialogBody:D(n,.7),dialogTab:D(n,.65),dialogTabSelected:"#FFF",dialogTabSelectedBorder:"#FFF",elementsPathColor:D(n,-.6),menubuttonHover:D(n,.1),menubuttonIcon:D(n,.5),menubuttonIconHover:D(n,.3)},v[t].output(n).replace(/\[/g,"{").replace(/\]/g,"}")}),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var s,l,c,d=function(e){this._||(this._={}),this._["default"]=this._.initValue=e["default"]||"",this._.required=e.required||!1;for(var t=[this._],n=1;n<arguments.length;n++)t.push(arguments[n]);return t.push(!0),CKEDITOR.tools.extend.apply(CKEDITOR.tools,t),this._},e={build:function(e,t,n){return new CKEDITOR.ui.dialog.textInput(e,t,n)}},t={build:function(e,t,n){return new CKEDITOR.ui.dialog[t.type](e,t,n)}},n={isChanged:function(){return this.getValue()!=this.getInitValue()},reset:function(e){this.setValue(this.getInitValue(),e)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._["default"]},getInitValue:function(){return this._.initValue}},i=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(e,t){this._.domOnChangeRegistered||(e.on("load",function(){this.getInputElement().on("change",function(){e.parts.dialog.isVisible()&&this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0),this.on("change",t)}},!0),o=/^on([A-Z]\w+)/,p=function(e){for(var t in e)(o.test(t)||"title"==t||"type"==t)&&delete e[t];return e},u=function(e){(e=e.data.getKeystroke())==CKEDITOR.SHIFT+CKEDITOR.ALT+36?this.setDirectionMarker("ltr"):e==CKEDITOR.SHIFT+CKEDITOR.ALT+35&&this.setDirectionMarker("rtl")};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(n,i,e,o){if(!(arguments.length<4)){var a=d.call(this,i);a.labelId=CKEDITOR.tools.getNextId()+"_label",this._.children=[];var t={role:i.role||"presentation"};i.includeLabel&&(t["aria-labelledby"]=a.labelId),CKEDITOR.ui.dialog.uiElement.call(this,n,i,e,"div",null,t,function(){var e=[],t=i.required?" cke_required":"";return"horizontal"!=i.labelLayout?e.push('<label class="cke_dialog_ui_labeled_label'+t+'" ',' id="'+a.labelId+'"',a.inputId?' for="'+a.inputId+'"':"",(i.labelStyle?' style="'+i.labelStyle+'"':"")+">",i.label,"</label>",'<div class="cke_dialog_ui_labeled_content"',i.controlStyle?' style="'+i.controlStyle+'"':"",' role="presentation">',o.call(this,n,i),"</div>"):(t={type:"hbox",widths:i.widths,padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+t+'" id="'+a.labelId+'" for="'+a.inputId+'"'+(i.labelStyle?' style="'+i.labelStyle+'"':"")+">"+CKEDITOR.tools.htmlEncode(i.label)+"</label>"},{type:"html",html:'<span class="cke_dialog_ui_labeled_content"'+(i.controlStyle?' style="'+i.controlStyle+'"':"")+">"+o.call(this,n,i)+"</span>"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(n,t,e)),e.join("")})}},textInput:function(t,n,e){if(!(arguments.length<3)){d.call(this,n);var i=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",o={"class":"cke_dialog_ui_input_"+n.type,id:i,type:n.type};n.validate&&(this.validate=n.validate),n.maxLength&&(o.maxlength=n.maxLength),n.size&&(o.size=n.size),n.inputStyle&&(o.style=n.inputStyle);var a=this,r=!1;t.on("load",function(){a.getInputElement().on("keydown",function(e){13==e.data.getKeystroke()&&(r=!0)}),a.getInputElement().on("keyup",function(e){13==e.data.getKeystroke()&&r&&(t.getButton("ok")&&setTimeout(function(){t.getButton("ok").click()},0),r=!1),a.bidi&&u.call(a,e)},null,null,1e3)}
12),CKEDITOR.ui.dialog.labeledElement.call(this,t,n,e,function(){var e=['<div class="cke_dialog_ui_input_',n.type,'" role="presentation"'];for(var t in n.width&&e.push('style="width:'+n.width+'" '),e.push("><input "),o["aria-labelledby"]=this._.labelId,this._.required&&(o["aria-required"]=this._.required),o)e.push(t+'="'+o[t]+'" ');return e.push(" /></div>"),e.join("")})}},textarea:function(e,t,n){if(!(arguments.length<3)){d.call(this,t);var i=this,o=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",a={};t.validate&&(this.validate=t.validate),a.rows=t.rows||5,a.cols=t.cols||20,a["class"]="cke_dialog_ui_input_textarea "+(t["class"]||""),"undefined"!=typeof t.inputStyle&&(a.style=t.inputStyle),t.dir&&(a.dir=t.dir),i.bidi&&e.on("load",function(){i.getInputElement().on("keyup",u)},i),CKEDITOR.ui.dialog.labeledElement.call(this,e,t,n,function(){a["aria-labelledby"]=this._.labelId,this._.required&&(a["aria-required"]=this._.required);var e,t=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',o,'" '];for(e in a)t.push(e+'="'+CKEDITOR.tools.htmlEncode(a[e])+'" ');return t.push(">",CKEDITOR.tools.htmlEncode(i._["default"]),"</textarea></div>"),t.join("")})}},checkbox:function(o,a,e){if(!(arguments.length<3)){var r=d.call(this,a,{"default":!!a["default"]});a.validate&&(this.validate=a.validate),CKEDITOR.ui.dialog.uiElement.call(this,o,a,e,"span",null,null,function(){var e=CKEDITOR.tools.extend({},a,{id:a.id?a.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),t=[],n=CKEDITOR.tools.getNextId()+"_label",i={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":n};return p(e),a["default"]&&(i.checked="checked"),"undefined"!=typeof e.inputStyle&&(e.style=e.inputStyle),r.checkbox=new CKEDITOR.ui.dialog.uiElement(o,e,t,"input",null,i),t.push(' <label id="',n,'" for="',i.id,'"'+(a.labelStyle?' style="'+a.labelStyle+'"':"")+">",CKEDITOR.tools.htmlEncode(a.label),"</label>"),t.join("")})}},radio:function(u,h,e){if(!(arguments.length<3)){d.call(this,h),this._["default"]||(this._["default"]=this._.initValue=h.items[0][1]),h.validate&&(this.validate=h.validate);var f=[],m=this;h.role="radiogroup",h.includeLabel=!0,CKEDITOR.ui.dialog.labeledElement.call(this,u,h,e,function(){for(var e=[],t=[],n=(h.id?h.id:CKEDITOR.tools.getNextId())+"_radio",i=0;i<h.items.length;i++){var o=h.items[i],a=void 0!==o[2]?o[2]:o[0],r=void 0!==o[1]?o[1]:o[0],s=(l=CKEDITOR.tools.getNextId()+"_radio_input")+"_label",l=CKEDITOR.tools.extend({},h,{id:l,title:null,type:null},!0),c=(a=CKEDITOR.tools.extend({},l,{title:a},!0),{type:"radio","class":"cke_dialog_ui_radio_input",name:n,value:r,"aria-labelledby":s}),d=[];m._["default"]==r&&(c.checked="checked"),p(l),p(a),"undefined"!=typeof l.inputStyle&&(l.style=l.inputStyle),l.keyboardFocusable=!0,f.push(new CKEDITOR.ui.dialog.uiElement(u,l,d,"input",null,c)),d.push(" "),new CKEDITOR.ui.dialog.uiElement(u,a,d,"label",null,{id:s,"for":c.id},o[0]),e.push(d.join(""))}return new CKEDITOR.ui.dialog.hbox(u,f,e,t),t.join("")}),this._.children=f}},button:function(e,t,n){if(arguments.length){"function"==typeof t&&(t=t(e.getParentEditor())),d.call(this,t,{disabled:t.disabled||!1}),CKEDITOR.event.implementOn(this);var i=this;e.on("load",function(){var e=this.getElement();e.on("click",function(e){i.click(),e.data.preventDefault()}),e.on("keydown",function(e){e.data.getKeystroke()in{32:1}&&(i.click(),e.data.preventDefault())}),e.unselectable()},this);var o=CKEDITOR.tools.extend({},t);delete o.style;var a=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,e,o,n,"a",null,{style:t.style,href:"javascript:void(0)",title:t.label,hidefocus:"true","class":t["class"],role:"button","aria-labelledby":a},'<span id="'+a+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(t.label)+"</span>")}},select:function(r,s,e){if(!(arguments.length<3)){var l=d.call(this,s);s.validate&&(this.validate=s.validate),l.inputId=CKEDITOR.tools.getNextId()+"_select",CKEDITOR.ui.dialog.labeledElement.call(this,r,s,e,function(){var e=CKEDITOR.tools.extend({},s,{id:s.id?s.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),t=[],n=[],i={id:l.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};t.push('<div class="cke_dialog_ui_input_',s.type,'" role="presentation"'),s.width&&t.push('style="width:'+s.width+'" '),t.pu
12sh(">"),void 0!==s.size&&(i.size=s.size),void 0!==s.multiple&&(i.multiple=s.multiple),p(e);for(var o,a=0;a<s.items.length&&(o=s.items[a]);a++)n.push('<option value="',CKEDITOR.tools.htmlEncode(void 0!==o[1]?o[1]:o[0]).replace(/"/g,"&quot;"),'" /> ',CKEDITOR.tools.htmlEncode(o[0]));return"undefined"!=typeof e.inputStyle&&(e.style=e.inputStyle),l.select=new CKEDITOR.ui.dialog.uiElement(r,e,t,"select",null,i,n.join("")),t.push("</div>"),t.join("")})}},file:function(e,t,n){if(!(arguments.length<3)){void 0===t["default"]&&(t["default"]="");var i=CKEDITOR.tools.extend(d.call(this,t),{definition:t,buttons:[]});t.validate&&(this.validate=t.validate),e.on("load",function(){CKEDITOR.document.getById(i.frameId).getParent().addClass("cke_dialog_ui_input_file")}),CKEDITOR.ui.dialog.labeledElement.call(this,e,t,n,function(){i.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var e=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',i.frameId,'" title="',t.label,'" src="javascript:void('];return e.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0"),e.push(')"></iframe>'),e.join("")})}},fileButton:function(n,i,e){var t=this;if(!(arguments.length<3)){d.call(this,i),i.validate&&(this.validate=i.validate);var o=CKEDITOR.tools.extend({},i),a=o.onClick;o.className=(o.className?o.className+" ":"")+"cke_dialog_ui_button",o.onClick=function(e){var t=i["for"];!1!==(e=!!a&&a.call(this,e))&&("xhr"!==e&&n.getContentElement(t[0],t[1]).submit(),this.disable())},n.on("load",function(){n.getContentElement(i["for"][0],i["for"][1])._.buttons.push(t)}),CKEDITOR.ui.dialog.button.call(this,n,o,e)}},html:(s=/^\s*<[\w:]+\s+([^>]*)?>/,l=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,c=/\/$/,function(e,t,n){if(!(arguments.length<3)){var i=[],o=t.html;"<"!=o.charAt(0)&&(o="<span>"+o+"</span>");var a=t.focus;if(a){var r=this.focus;this.focus=function(){("function"==typeof a?a:r).call(this),this.fire("focus")},t.isFocusable&&(this.isFocusable=this.isFocusable),this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,e,t,i,"span",null,null,""),i=i.join("").match(s),o=o.match(l)||["","",""],c.test(o[1])&&(o[1]=o[1].slice(0,-1),o[2]="/"+o[2]),n.push([o[1]," ",i[1]||"",o[2]].join(""))}}),fieldset:function(e,t,n,i,o){var a=o.label;this._={children:t},CKEDITOR.ui.dialog.uiElement.call(this,e,o,i,"fieldset",null,null,function(){var e=[];a&&e.push("<legend"+(o.labelStyle?' style="'+o.labelStyle+'"':"")+">"+a+"</legend>");for(var t=0;t<n.length;t++)e.push(n[t]);return e.join("")})}},!0),CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement,CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setLabel:function(e){var t=CKEDITOR.document.getById(this._.labelId);return t.getChildCount()<1?new CKEDITOR.dom.text(e,CKEDITOR.document).appendTo(t):t.getChild(0).$.nodeValue=e,this},getLabel:function(){var e=CKEDITOR.document.getById(this._.labelId);return!e||e.getChildCount()<1?"":e.getChild(0).getText()},eventProcessors:i},!0),CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return!this._.disabled&&this.fire("click",{dialog:this._.dialog})},enable:function(){this._.disabled=!1;var e=this.getElement();e&&e.removeClass("cke_disabled")},disable:function(){this._.disabled=!0,this.getElement().addClass("cke_disabled")},isVisible:function(){return this.getElement().getFirst().isVisible()},isEnabled:function(){return!this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(e,t){this.on("click",function(){t.apply(this,arguments)})}},!0),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:!0},!0),CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)},focus:function(){var t=this.selectParentTab();
vendor: 7,596 bytes, line 12
12setTimeout(function(){var e=t.getInputElement();e&&e.$.focus()},0)},select:function(){var t=this.selectParentTab();setTimeout(function(){var e=t.getInputElement();e&&(e.$.focus(),e.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(e){if(this.bidi){var t=e&&e.charAt(0);(t="\u202a"==t?"ltr":"\u202b"==t?"rtl":null)&&(e=e.slice(1)),this.setDirectionMarker(t)}return e||(e=""),CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},getValue:function(){var e=CKEDITOR.ui.dialog.uiElement.prototype.getValue.call(this);if(this.bidi&&e){var t=this.getDirectionMarker();t&&(e=("ltr"==t?"\u202a":"\u202b")+e)}return e},setDirectionMarker:function(e){var t=this.getInputElement();e?t.setAttributes({dir:e,"data-cke-dir-marker":e}):this.getDirectionMarker()&&t.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:!0},n,!0),CKEDITOR.ui.dialog.textarea.prototype=new CKEDITOR.ui.dialog.textInput,CKEDITOR.ui.dialog.select.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return this._.select.getElement()},add:function(e,t,n){var i=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),o=this.getInputElement().$;return i.$.text=e,i.$.value=null==t?e:t,null==n?CKEDITOR.env.ie?o.add(i.$):o.add(i.$,null):o.add(i.$,n),this},remove:function(e){return this.getInputElement().$.remove(e),this},clear:function(){for(var e=this.getInputElement().$;0<e.length;)e.remove(0);return this},keyboardFocusable:!0},n,!0),CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(e,t){this.getInputElement().$.checked=e,!t&&this.fire("change",{value:e})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(e,t){return!CKEDITOR.env.ie||8<CKEDITOR.env.version?i.onChange.apply(this,arguments):(e.on("load",function(){var t=this._.checkbox.getElement();t.on("propertychange",function(e){"checked"==(e=e.data.$).propertyName&&this.fire("change",{value:t.$.checked})},this)},this),this.on("change",t),null)}},keyboardFocusable:!0},n,!0),CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(e,t){for(var n,i=this._.children,o=0;o<i.length&&(n=i[o]);o++)n.getElement().$.checked=n.getValue()==e;!t&&this.fire("change",{value:e})},getValue:function(){for(var e=this._.children,t=0;t<e.length;t++)if(e[t].getElement().$.checked)return e[t].getValue();return null},accessKeyUp:function(){var e,t=this._.children;for(e=0;e<t.length;e++)if(t[e].getElement().$.checked)return void t[e].getElement().focus();t[0].getElement().focus()},eventProcessors:{onChange:function(e,t){return!CKEDITOR.env.ie||8<CKEDITOR.env.version?i.onChange.apply(this,arguments):(e.on("load",function(){for(var e=this._.children,t=this,n=0;n<e.length;n++)e[n].getElement().on("propertychange",function(e){"checked"==(e=e.data.$).propertyName&&this.$.checked&&t.fire("change",{value:this.getAttribute("value")})})},this),this.on("change",t),null)}}},n,!0),CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,n,{getInputElement:function(){var e=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return 0<e.$.forms.length?new CKEDITOR.dom.element(e.$.forms[0].elements[0]):this.getElement()},submit:function(){return this.getInputElement().getParent().$.submit(),this},getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(e){var t,n,i=/^on([A-Z]\w+)/,o=function(e,t,n,i){e.on("formLoaded",function(){e.getInputElement().on(n,i,e)})};for(n in e)(t=n.match(i))&&(this.eventProcessors[n]?this.eventProcessors[n].call(this,this._.dialog,e[n]):o(this,this._.dialog,t[1].toLowerCase(),e[n]));return this},reset:function(){function e(){i.$.open();var e="";o.size&&(e=o.size-(CKEDITOR.env.ie?7:0));var t=n.frameId+"_input";for(i.$.write(['<html dir="'+l+'" lang="'+c+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+l+'" lang="'+c+'" action="',CKEDITOR.tools.htmlEncode(o.action),'"><label id="',n.labelId,'" for="',t,'" style="display:none">',CKEDITOR.tools.htmlEncode(o.label),'</label><input style="width:100%" id="',t,'" aria-labelledby="',n.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(o.id||"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(0<e?e:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+r+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+s+")}","</script>"].join("")),i.$.close(),e=0;e<a.length;e++)a[e].enable()}var n=this._,i=CKEDITOR.document.getById(n.frameId).getFrameDocument(),o=n.definition,a=n.buttons,r=this.formLoadedNumber,s=this.formUnloadNumber,l=n.dialog._.editor.lang.dir,c=n.dialog._.editor.langCode;r||(r=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this),s=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this),this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(r),CKEDITOR.tools.removeFunction(s)})),CKEDITOR.env.gecko?setTimeout(e,500):e()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(e,t){this._.domOnChangeRegistered||(this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0),this.on("change",t)}},keyboardFocusable:!0},!0),CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button,CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype),CKEDITOR.dialog.addUIElement("text",e),CKEDITOR.dialog.addUIElement("password",e),CKEDITOR.dialog.addUIElement("tel",e),CKEDITOR.dialog.addUIElement("textarea",t),CKEDITOR.dialog.addUIElement("checkbox",t),CKEDITOR.dialog.addUIElement("radio",t),CKEDITOR.dialog.addUIElement("button",t),CKEDITOR.dialog.addUIElement("select",t),CKEDITOR.dialog.addUIElement("file",t),CKEDITOR.dialog.addUIElement("fileButton",t),CKEDITOR.dialog.addUIElement("html",t),CKEDITOR.dialog.addUIElement("fieldset",{build:function(e,t,n){for(var i,o=t.children,a=[],r=[],s=0;s<o.length&&(i=o[s]);s++){var l=[];a.push(l),r.push(CKEDITOR.dialog._.uiElementBuilders[i.type].build(e,i,l))}return new CKEDITOR.ui.dialog[t.type](e,r,a,n,t)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,CKEDITOR.DIALOG_STATE_IDLE=1,CKEDITOR.DIALOG_STATE_BUSY=2,function(){function E(){for(var e=this._.tabIdList.length,t=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+e,n=t-1;t-e<n;n--)if(this._.tabs[this._.tabIdList[n%e]][0].$.offsetHeight)return this._.tabIdList[n%e];return null}function T(){for(var e=this._.tabIdList.length,t=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),n=t+1;n<t+e;n++)if(this._.tabs[this._.tabIdList[n%e]][0].$.offsetHeight)return this._.tabIdList[n%e];return null}function a(e,t){for(var n=e.$.getElementsByTagName("input"),i=0,o=n.length;i<o;i++){var a=new CKEDITOR.dom.element(n[i]);
12"text"==a.getAttribute("type").toLowerCase()&&(t?(a.setAttribute("value",a.getCustomData("fake_value")||""),a.removeCustomData("fake_value")):(a.setCustomData("fake_value",a.getAttribute("value")),a.setAttribute("value","")))}}function C(e,t){var n=this.getInputElement();n&&(e?n.removeAttribute("aria-invalid"):n.setAttribute("aria-invalid",!0)),e||(this.select?this.select():this.focus()),t&&alert(t),this.fire("validated",{valid:e,msg:t})}function I(){var e=this.getInputElement();e&&e.removeAttribute("aria-invalid")}function O(e){var t=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",h).output({id:CKEDITOR.tools.getNextNumber(),editorId:e.id,langDir:e.lang.dir,langCode:e.langCode,editorDialogClass:"cke_editor_"+e.name.replace(/\./g,"\\.")+"_dialog",closeTitle:e.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),n=t.getChild([0,0,0,0,0]),i=n.getChild(0),o=n.getChild(1);return e.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(n),!CKEDITOR.env.ie||CKEDITOR.env.quirks||CKEDITOR.env.edge||(e="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())",CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+e+'" tabIndex="-1"></iframe>').appendTo(n.getParent())),i.unselectable(),o.unselectable(),{element:t,parts:{dialog:t.getChild(0),title:i,close:o,tabs:n.getChild(2),contents:n.getChild([3,0,0,0]),footer:n.getChild([3,0,1,0])}}}function i(e,t,n){this.element=t,this.focusIndex=n,this.tabIndex=0,this.isFocusable=function(){return!t.getAttribute("disabled")&&t.isVisible()},this.focus=function(){e._.currentFocusIndex=this.focusIndex,this.element.focus()},t.on("keydown",function(e){e.data.getKeystroke()in{32:1,13:1}&&this.fire("click")}),t.on("focus",function(){this.fire("mouseover")}),t.on("blur",function(){this.fire("mouseout")})}function l(e){function t(){e.layout()}var n=CKEDITOR.document.getWindow();n.on("resize",t),e.on("hide",function(){n.removeListener("resize",t)})}function r(e,t){this._={dialog:e},CKEDITOR.tools.extend(this,t)}function D(s){function n(e){var t=s.getSize(),n=CKEDITOR.document.getWindow().getViewPaneSize(),i=e.data.$.screenX,o=e.data.$.screenY,a=i-l.x,r=o-l.y;l={x:i,y:o},c.x+=a,c.y+=r,s.move(c.x+h[3]<u?-h[3]:c.x-h[1]>n.width-t.width-u?n.width-t.width+("rtl"==d.lang.dir?0:h[1]):c.x,c.y+h[0]<u?-h[0]:c.y-h[2]>n.height-t.height-u?n.height-t.height+h[2]:c.y,1),e.data.preventDefault()}function i(){if(CKEDITOR.document.removeListener("mousemove",n),CKEDITOR.document.removeListener("mouseup",i),CKEDITOR.env.ie6Compat){var e=y.getChild(0).getFrameDocument()
13;e.removeListener("mousemove",n),e.removeListener("mouseup",i)}}var l=null,c=null,d=s.getParentEditor(),u=d.config.dialog_magnetDistance,h=CKEDITOR.skin.margins||[0,0,0,0];void 0===u&&(u=20),s.parts.title.on("mousedown",function(e){if(l={x:e.data.$.screenX,y:e.data.$.screenY},CKEDITOR.document.on("mousemove",n),CKEDITOR.document.on("mouseup",i),c=s.getPosition(),CKEDITOR.env.ie6Compat){var t=y.getChild(0).getFrameDocument();t.on("mousemove",n),t.on("mouseup",i)}e.data.preventDefault()},s)}function v(l){function n(e){var t="rtl"==g.lang.dir,n=p.width,i=p.height,o=n+(e.data.$.screenX-m.x)*(t?-1:1)*(l._.moved?1:2),a=i+(e.data.$.screenY-m.y)*(l._.moved?1:2),r=l._.element.getFirst(),s=(r=t&&r.getComputedStyle("right"),l.getPosition());s.y+a>f.height&&(a=f.height-s.y),(t?r:s.x)+o>f.width&&(o=f.width-(t?r:s.x)),d!=CKEDITOR.DIALOG_RESIZE_WIDTH&&d!=CKEDITOR.DIALOG_RESIZE_BOTH||(n=Math.max(c.minWidth||0,o-u)),d!=CKEDITOR.DIALOG_RESIZE_HEIGHT&&d!=CKEDITOR.DIALOG_RESIZE_BOTH||(i=Math.max(c.minHeight||0,a-h)),l.resize(n,i),l._.moved||l.layout(),e.data.preventDefault()}function i(){if(CKEDITOR.document.removeListener("mouseup",i),CKEDITOR.document.removeListener("mousemove",n),o&&(o.remove(),o=null),CKEDITOR.env.ie6Compat){var e=y.getChild(0).getFrameDocument();e.removeListener("mouseup",i),e.removeListener("mousemove",n)}}var c=l.definition,d=c.resizable;if(d!=CKEDITOR.DIALOG_RESIZE_NONE){var u,h,f,m,p,o,g=l.getParentEditor(),t=CKEDITOR.tools.addFunction(function(e){p=l.getSize();var t=l.parts.contents;t.$.getElementsByTagName("iframe").length&&(o=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>'),t.append(o)),h=p.height-l.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks)),u=p.width-l.parts.contents.getSize("width",1),m={x:e.screenX,y:e.screenY},f=CKEDITOR.document.getWindow().getViewPaneSize(),CKEDITOR.document.on("mousemove",n),CKEDITOR.document.on("mouseup",i),CKEDITOR.env.ie6Compat&&((t=y.getChild(0).getFrameDocument()).on("mousemove",n),t.on("mouseup",i)),e.preventDefault&&e.preventDefault()});l.on("load",function(){var e="";d==CKEDITOR.DIALOG_RESIZE_WIDTH?e=" cke_resizer_horizontal":d==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(e=" cke_resizer_vertical"),e=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+e+" cke_resizer_"+g.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(g.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+t+', event )">'+("ltr"==g.lang.dir?"\u25e2":"\u25e3")+"</div>"),l.parts.footer.append(e,1)}),g.on("destroy",function(){CKEDITOR.tools.removeFunction(t)})}}function c(e){e.data.preventDefault(1)}function d(e){var n=CKEDITOR.document.getWindow(),t=e.config,i=CKEDITOR.skinName||e.config.skin,o=t.dialog_backgroundCoverColor||("moono-lisa"==i?"black":"white"),a=(i=t.dialog_backgroundCoverOpacity,t.baseFloatZIndex),r=(t=CKEDITOR.tools.genKey(o,i,a),N[t]);r?r.show():(a=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",a,"; top: 0px; left: 0px; ",CKEDITOR.env.ie6Compat?"":"background-color: "+o,'" class="cke_dialog_background_cover">'],CKEDITOR.env.ie6Compat&&(o="<html><body style=\\'background-color:"+o+";\\'></body></html>",a.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:'),a.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+o+"' );document.close();")+"})())"),a.push('" style="position:absolute;
13left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')),a.push("</div>"),(r=CKEDITOR.dom.element.createFromHtml(a.join(""))).setOpacity(void 0!==i?i:.5),r.on("keydown",c),r.on("keypress",c),r.on("keyup",c),r.appendTo(CKEDITOR.document.getBody()),N[t]=r),e.focusManager.add(r),y=r;var s=function(){var e=n.getScrollPosition(),t=CKEDITOR.dialog._.currentTop;if(r.setStyles({left:e.x+"px",top:e.y+"px"}),t)for(;e=t.getPosition(),t.move(e.x,e.y),t=t._.parentDialog;);};if(g=e=function(){var e=n.getViewPaneSize();r.setStyles({width:e.width+"px",height:e.height+"px"})},n.on("resize",e),e(),CKEDITOR.env.mac&&CKEDITOR.env.webkit||r.focus(),CKEDITOR.env.ie6Compat){var l=function(){s(),arguments.callee.prevScrollHandler.apply(this,arguments)};n.$.setTimeout(function(){l.prevScrollHandler=window.onscroll||function(){},window.onscroll=l},0),s()}}function o(e){y&&(e.focusManager.remove(y),e=CKEDITOR.document.getWindow(),y.hide(),e.removeListener("resize",g),CKEDITOR.env.ie6Compat&&e.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0),g=null)}var e,n,s,u=CKEDITOR.tools.cssLength,h='<div class="cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir="{langDir}" lang="{langCode}" role="dialog" aria-labelledby="cke_dialog_title_{id}"><table class="cke_dialog '+CKEDITOR.env.cssClass+' cke_{langDir}" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="cke_dialog_body" role="presentation"><div id="cke_dialog_title_{id}" class="cke_dialog_title" role="presentation"></div><a id="cke_dialog_close_button_{id}" class="cke_dialog_close_button" href="javascript:void(0)" title="{closeTitle}" role="button"><span class="cke_label">X</span></a><div id="cke_dialog_tabs_{id}" class="cke_dialog_tabs" role="tablist"></div><table class="cke_dialog_contents" role="presentation"><tr><td id="cke_dialog_contents_{id}" class="cke_dialog_contents_body" role="presentation"></td></tr><tr><td id="cke_dialog_footer_{id}" class="cke_dialog_footer" role="presentation"></td></tr></table></div></td></tr></table></div>';CKEDITOR.dialog=function(o,e){function t(){var e=m._.focusList;e.sort(function(e,t){return e.tabIndex!=t.tabIndex?t.tabIndex-e.tabIndex:e.focusIndex-t.focusIndex});for(var t=e.length,n=0;n<t;n++)e[n].focusIndex=n}function a(e){var t=m._.focusList;if(e=e||0,!(t.length<1)){var n=m._.currentFocusIndex;m._.tabBarMode&&e<0&&(n=0);try{t[n].getInputElement().$.blur()}catch(r){}var i=n,o=1<m._.pageCount;do{if(i+=e,o&&!m._.tabBarMode&&(i==t.length||-1==i))return m._.tabBarMode=!0,m._.tabs[m._.currentTabId][0].focus(),void(m._.currentFocusIndex=-1);if((i=(i+t.length)%t.length)==n)break}while(e&&!t[i].isFocusable());t[i].focus(),"text"==t[i].type&&t[i].select()}}function r(e){if(m==CKEDITOR.dialog._.currentTop){var t=e.data.getKeystroke(),n="rtl"==o.lang.dir,i=[37,38,39,40];if(l=c=0,9==t||t==CKEDITOR.SHIFT+9)a(t==CKEDITOR.SHIFT+9?-1:1),l=1;else if(t==CKEDITOR.ALT+121&&!m._.tabBarMode&&1<m.getPageCount())m._.tabBarMode=!0,m._.tabs[m._.currentTabId][0].focus(),m._.currentFocusIndex=-1,l=1;else if(-1!=CKEDITOR.tools.indexOf(i,t)&&m._.tabBarMode)t=-1!=CKEDITOR.tools.indexOf([n?39:37,38],t)?E.call(m):T.call(m),m.selectPage(t),m._.tabs[t][0].focus(),l=1;else if(13!=t&&32!=t||!m._.tabBarMode)if(13==t)(t=e.data.getTarget()).is("a","button","select","textarea")||t.is("input")&&"button"==t.$.type||((t=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(t.click,0,t),l=1),c=1;else{if(27!=t)return;(t=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(t.click,0,t):!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),c=1}else this.selectPage(this._.currentTabId),this._.tabBarMode=!1,this._.currentFocusIndex=-1,a(1),l=1;s(e)}}function s(e){l?e.data.preventDefault(1):c&&e.data.stopPropagation()}var l,c,n=CKEDITOR.dialog._.dialogDefinitions[e],i=CKEDITOR.tools.clone(b),d=o.config.dialog_buttonsOrder||"OS",u=o.lang.dir,h={};if(("OS"==d&&CKEDITOR.env.mac||"rtl"==d&&"ltr"==u||"ltr"==d&&"rtl"==u)&&i.buttons.reverse(),n=CKEDITOR.tools.extend(n(o),i),n=CKEDITOR.tools.clone(n),n=new R(this,n),i=O(o),this._={editor:o,element:i.element,name:e,contentSize:{
13width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],currentFocusIndex:0,hasFocus:!1},this.parts=i.parts,CKEDITOR.tools.setTimeout(function(){o.fire("ariaWidget",this.parts.contents)},0,this),(i={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"})["rtl"==u?"right":"left"]=0,this.parts.dialog.setStyles(i),CKEDITOR.event.call(this),this.definition=n=CKEDITOR.fire("dialogDefinition",{name:e,definition:n},o).definition,!("removeDialogTabs"in o._)&&o.config.removeDialogTabs){for(i=o.config.removeDialogTabs.split(";"),u=0;u<i.length;u++)if(2==(d=i[u].split(":")).length){var f=d[0];h[f]||(h[f]=[]),h[f].push(d[1])}o._.removeDialogTabs=h}if(o._.removeDialogTabs&&(h=o._.removeDialogTabs[e]))for(u=0;u<h.length;u++)n.removeContents(h[u]);n.onLoad&&this.on("load",n.onLoad),n.onShow&&this.on("show",n.onShow),n.onHide&&this.on("hide",n.onHide),n.onOk&&this.on("ok",function(e){o.fire("saveSnapshot"),setTimeout(function(){o.fire("saveSnapshot")},0),!1===n.onOk.call(this,e)&&(e.data.hide=!1)}),this.state=CKEDITOR.DIALOG_STATE_IDLE,n.onCancel&&this.on("cancel",function(e){!1===n.onCancel.call(this,e)&&(e.data.hide=!1)});var m=this,p=function(e){var t,n=m._.contents;for(t in n)for(var i in n[t])if(e.call(this,n[t][i]))return};this.on("ok",function(i){p(function(e){if(e.validate){var t=e.validate(this),n="string"==typeof t||!1===t;return n&&(i.data.hide=!1,i.stop()),C.call(e,!n,"string"==typeof t?t:void 0),n}})},this,null,0),this.on("cancel",function(t){p(function(e){if(e.isChanged())return o.config.dialog_noConfirmCancel||confirm(o.lang.common.confirmCancel)||(t.data.hide=!1),!0})},this,null,0),this.parts.close.on("click",function(e){!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),e.data.preventDefault()},this),this.changeFocus=a;var g=this._.element;
13for(o.focusManager.add(g,1),this.on("show",function(){g.on("keydown",r,this),CKEDITOR.env.gecko&&g.on("keypress",s,this)}),this.on("hide",function(){g.removeListener("keydown",r),CKEDITOR.env.gecko&&g.removeListener("keypress",s),p(function(e){I.apply(e)})}),this.on("iframeAdded",function(e){new CKEDITOR.dom.document(e.data.iframe.$.contentWindow.document).on("keydown",r,this,null,0)}),this.on("show",function(){t();var e=1<m._.pageCount;o.config.dialog_startupFocusTab&&e?(m._.tabBarMode=!0,m._.tabs[m._.currentTabId][0].focus(),m._.currentFocusIndex=-1):this._.hasFocus||(this._.currentFocusIndex=e?-1:this._.focusList.length-1,n.onFocus?(e=n.onFocus.call(this))&&e.focus():a(1))},this,null,4294967295),CKEDITOR.env.ie6Compat&&this.on("load",function(){var e=this.getElement(),t=e.getFirst();t.remove(),t.appendTo(e)},this),D(this),v(this),new CKEDITOR.dom.text(n.title,CKEDITOR.document).appendTo(this.parts.title),u=0;u<n.contents.length;u++)(h=n.contents[u])&&this.addPage(h);for(this.parts.tabs.on("click",function(e){var t=e.data.getTarget();t.hasClass("cke_dialog_tab")&&(t=t.$.id,this.selectPage(t.substring(4,t.lastIndexOf("_"))),this._.tabBarMode&&(this._.tabBarMode=!1,this._.currentFocusIndex=-1,a(1)),e.data.preventDefault())},this),u=[],h=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:n.buttons},u).getChild(),this.parts.footer.setHtml(u.join("")),u=0;u<h.length;u++)this._.buttons[h[u].id]=h[u]},CKEDITOR.dialog.prototype={destroy:function(){this.hide(),this._.element.remove()},resize:function(e,t){this._.contentSize&&this._.contentSize.width==e&&this._.contentSize.height==t||(CKEDITOR.dialog.fire("resize",{dialog:this,width:e,height:t},this._.editor),this.fire("resize",{width:e,height:t},this._.editor),this.parts.contents.setStyles({width:e+"px",height:t+"px"}),"rtl"==this._.editor.lang.dir&&this._.position&&(this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10)),this._.contentSize={width:e,height:t})},getSize:function(){var e=this._.element.getFirst();return{width:e.$.offsetWidth||0,height:e.$.offsetHeight||0}},move:function(e,t,n){var i=this._.element.getFirst(),o="rtl"==this._.editor.lang.dir,a="fixed"==i.getComputedStyle("position");CKEDITOR.env.ie&&i.setStyle("zoom","100%"),a&&this._.position&&this._.position.x==e&&this._.position.y==t||(this._.position={x:e,y:t},a||(e+=(a=CKEDITOR.document.getWindow().getScrollPosition()).x,t+=a.y),o&&(a=this.getSize(),e=CKEDITOR.document.getWindow().getViewPaneSize().width-a.width-e),(t={top:(0<t?t:0)+"px"})[o?"right":"left"]=(0<e?e:0)+"px",i.setStyles(t),n&&(this._.moved=1))},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var e=this._.element,t=this.definition;for(var n in e.getParent()&&e.getParent().equals(CKEDITOR.document.getBody())?e.setStyle("display","block"):e.appendTo(CKEDITOR.document.getBody()),this.resize(this._.contentSize&&this._.contentSize.width||t.width||t.minWidth,this._.contentSize&&this._.contentSize.height||t.height||t.minHeight),this.reset(),null===this._.currentTabId&&this.selectPage(this.definition.contents[0].id),null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex),this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10),null===CKEDITOR.dialog._.currentTop?((CKEDITOR.dialog._.currentTop=this)._.parentDialog=null,d(this._.editor)):(this._.parentDialog=CKEDITOR.dialog._.currentTop,this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2),CKEDITOR.dialog._.currentTop=this),e.on("keydown",L),e.on("keyup",F),this._.hasFocus=!1,t.contents)if(t.contents[n]){e=t.contents[n];var i=this._.tabs[e.id],o=e.requiredContent,a=0;if(i){for(var r in this._.contents[e.id]){var s=this._.contents[e.id][r];"hbox"!=s.type&&"vbox"!=s.type&&s.getInputElement()&&(s.requiredContent&&!this._.editor.activeFilter.check(s.requiredContent)?s.disable():(s.enable(),a++))}!a||o&&!this._.editor.activeFilter.check(o)?i[0].addClass("cke_dialog_tab_disabled"):i[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout(),l(this),this.parts.dialog.setStyle("visibility",""),this.fireOnce("load",{}),CKEDITOR.ui.fire("ready",this),this.fire("show",{}),this._.editor.fire("dialogShow",this),this._.parentDialog||this._.editor.focusManager.lock(),this.foreach(function(e){e.setInitValue&&e.setInitValue()})},100,this)},layout:function(){var e=this.parts.dialog,t=this.getSize(),n=CKEDITOR.document.getWindow().getViewPaneSize(),i=(n.width-t.width)/2,o=(n.height-t.height)/2;CKEDITOR.env.ie6Compat||(t.height+(0<o?o:0)>n.height||t.width+(0<i?i:0)>n.width?e.setStyle("position","absolute"):e.setStyle("position","fixed")),this.move(this._.moved?this._.position.x:i,this._.moved?this._.position.y:o)},foreach:function(e){for(var t in this._.contents)for(var n in this._.contents[t])e.call(this,this._.contents[t][n]);return this},reset:(e=function(e){e.reset&&e.reset(1)},function(){return this.foreach(e),this}),setupContent:function(){var t=arguments;this.foreach(function(e){e.setup&&e.setup.apply(e,t)})},commitContent:function(){var t=arguments;this.foreach(function(e){CKEDITOR.env.ie&&this._.currentFocusIndex==e.focusIndex&&e.getInputElement().$.blur(),e.commit&&e.commit.apply(e,t)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{}),this._.editor.fire("dialogHide",this),this.selectPage(this._.tabIdList[0]);var e=this._.element;for(e.setStyle("display","none"),this.parts.dialog.setStyle("visibility","hidden"),P(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var t=this._.parentDialog.getElement().getFirst();t.setStyle("z-index",parseInt(t.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else o(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex-=10;
vendor: 9,490 bytes, line 13
13else{CKEDITOR.dialog._.currentZIndex=null,e.removeListener("keydown",L),e.removeListener("keyup",F);var n=this._.editor;n.focus(),setTimeout(function(){n.focusManager.unlock(),CKEDITOR.env.iOS&&n.window.focus()},0)}delete this._.parentDialog,this.foreach(function(e){e.resetInitValue&&e.resetInitValue()}),this.setState(CKEDITOR.DIALOG_STATE_IDLE)}},addPage:function(e){if(!e.requiredContent||this._.editor.filter.check(e.requiredContent)){for(var t=[],n=e.label?' title="'+CKEDITOR.tools.htmlEncode(e.label)+'"':"",i=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",children:e.elements,expand:!!e.expand,padding:e.padding,style:e.style||"width: 100%;"},t),o=this._.contents[e.id]={},a=i.getChild(),r=0;i=a.shift();)i.notAllowed||"hbox"==i.type||"vbox"==i.type||r++,"function"==typeof(o[i.id]=i).getChild&&a.push.apply(a,i.getChild());r||(e.hidden=!0),(t=CKEDITOR.dom.element.createFromHtml(t.join(""))).setAttribute("role","tabpanel"),i=CKEDITOR.env,o="cke_"+e.id+"_"+CKEDITOR.tools.getNextNumber(),n=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',0<this._.pageCount?" cke_last":"cke_first",n,e.hidden?' style="display:none"':"",' id="',o,'"',i.gecko&&!i.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',e.label,"</a>"].join("")),t.setAttribute("aria-labelledby",o),this._.tabs[e.id]=[n,t],this._.tabIdList.push(e.id),!e.hidden&&this._.pageCount++,this._.lastTab=n,this.updateStyle(),t.setAttribute("name",e.id),t.appendTo(this.parts.contents),n.unselectable(),this.parts.tabs.append(n),e.accessKey&&(B(this,this,"CTRL+"+e.accessKey,$,M),this._.accessKeyMap["CTRL+"+e.accessKey]=e.id)}},selectPage:function(e){if(this._.currentTabId!=e&&!this._.tabs[e][0].hasClass("cke_dialog_tab_disabled")&&!1!==this.fire("selectPage",{page:e,currentPage:this._.currentTabId})){for(var t in this._.tabs){var n=this._.tabs[t][0],i=this._.tabs[t][1];t!=e&&(n.removeClass("cke_dialog_tab_selected"),i.hide()),i.setAttribute("aria-hidden",t!=e)}var o=this._.tabs[e];o[0].addClass("cke_dialog_tab_selected"),CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?(a(o[1]),o[1].show(),setTimeout(function(){a(o[1],1)},0)):o[1].show(),this._.currentTabId=e,this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,e)}},updateStyle:function(){this.parts.dialog[(1===this._.pageCount?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(e){var t=this._.tabs[e]&&this._.tabs[e][0];t&&1!=this._.pageCount&&t.isVisible()&&(e==this._.currentTabId&&this.selectPage(E.call(this)),t.hide(),this._.pageCount--,this.updateStyle())},showPage:function(e){(e=this._.tabs[e]&&this._.tabs[e][0])&&(e.show(),this._.pageCount++,this.updateStyle())},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(e,t){var n=this._.contents[e];return n&&n[t]},getValueOf:function(e,t){return this.getContentElement(e,t).getValue()},setValueOf:function(e,t,n){return this.getContentElement(e,t).setValue(n)},getButton:function(e){return this._.buttons[e]},click:function(e){return this._.buttons[e].click()},disableButton:function(e){return this._.buttons[e].disable()},enableButton:function(e){return this._.buttons[e].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(e,t){if(void 0===t)t=this._.focusList.length,this._.focusList.push(new i(this,e,t));else{this._.focusList.splice(t,0,new i(this,e,t));for(var n=t+1;n<this._.focusList.length;n++)this._.focusList[n].focusIndex++}},setState:function(e){if(this.state!=e){if((this.state=e)==CKEDITOR.DIALOG_STATE_BUSY){if(!this.parts.spinner){var t=this.getParentEditor().lang.dir,n={attributes:{"class":"cke_dialog_spinner"},styles:{"float":"rtl"==t?"right":"left"}};n.styles["margin-"+("rtl"==t?"left":"right")]="8px",this.parts.spinner=CKEDITOR.document.createElement("div",n),this.parts.spinner.setHtml("&#8987;"),this.parts.spinner.appendTo(this.parts.title,1)}this.parts.spinner.show(),this.getButton("ok").disable()}else e==CKEDITOR.DIALOG_STATE_IDLE&&(this.parts.spinner&&this.parts.spinner.hide(),this.getButton("ok").enable());this.fire("state",e)}}},CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(e,t){this._.dialogDefinitions[e]&&"function"!=typeof t||(this._.dialogDefinitions[e]=t)},exists:function(e){return!!this._.dialogDefinitions[e]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(e,t,n){return!((e=e.config.removeDialogTabs)&&e.match(new RegExp("(?:^|;)"+t+":"+n+"(?:$|;)","i")))},okButton:(s=function(e,t){return t=t||{},CKEDITOR.tools.extend({id:"ok",type:"button",label:e.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(e){!1!==(e=e.data.dialog).fire("ok",{hide:!0}).hide&&e.hide()}},t,!0)},s.type="button",s.override=function(t){return CKEDITOR.tools.extend(function(e){return s(e,t)},{type:"button"},!0)},s),cancelButton:(n=function(e,t){return t=t||{},CKEDITOR.tools.extend({id:"cancel",type:"button",label:e.lang.common.cancel,"class":"cke_dialog_ui_button_cancel",onClick:function(e){!1!==(e=e.data.dialog).fire("cancel",{hide:!0}).hide&&e.hide()}},t,!0)},n.type="button",n.override=function(t){return CKEDITOR.tools.extend(function(e){return n(e,t)},{type:"button"},!0)},n),addUIElement:function(e,t){this._.uiElementBuilders[e]=t}}),CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null},CKEDITOR.event.implementOn(CKEDITOR.dialog),CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);var b={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},f=function(e,t,n){for(var i,o=0;i=e[o];o++)if(i.id==t||n&&i[n]&&(i=f(i[n],t,n)))return i;return null},m=function(e,t,n,i,o){if(n){for(var a,r=0;a=e[r];r++){if(a.id==n)return e.splice(r,0,t),t;if(i&&a[i]&&(a=m(a[i],t,n,i,!0)))return a}if(o)return null}return e.push(t),t},p=function(e,t,n){for(var i,o=0;i=e[o];o++){if(i.id==t)return e.splice(o,1);if(n&&i[n]&&(i=p(i[n],t,n)))return i}return null},R=function(e,t){this.dialog=e;for(var n,i=t.contents,o=0;n=i[o];o++)i[o]=n&&new r(e,n);CKEDITOR.tools.extend(this,t)};R.prototype={getContents:function(e){return f(this.contents,e)},getButton:function(e){return f(this.buttons,e)},addContents:function(e,t){return m(this.contents,e,t)},addButton:function(e,t){return m(this.buttons,e,t)},removeContents:function(e){p(this.contents,e)},removeButton:function(e){p(this.buttons,e)}},r.prototype={get:function(e){return f(this.elements,e,"children")},add:function(e,t){return m(this.elements,e,t,"children")},remove:function(e){p(this.elements,e,"children")}};var g,y,t,_,K,k,w,S,x,N={},A={},L=function(e){var t=e.data.$.ctrlKey||e.data.$.metaKey,n=e.data.$.altKey,i=e.data.$.shiftKey,o=String.fromCharCode(e.data.$.keyCode);(t=A[(t?"CTRL+":"")+(n?"ALT+":"")+(i?"SHIFT+":"")+o])&&t.length&&((t=t[t.length-1]).keydown&&t.keydown.call(t.uiElement,t.dialog,t.key),e.data.preventDefault())},F=function(e){var t=e.data.$.ctrlKey||e.data.$.metaKey,n=e.data.$.altKey,i=e.data.$.shiftKey,o=String.fromCharCode(e.data.$.keyCode);(t=A[(t?"CTRL+":"")+(n?"ALT+":"")+(i?"SHIFT+":"")+o])&&t.length&&((t=t[t.length-1]).keyup&&(t.keyup.call(t.uiElement,t.dialog,t.key),e.data.preventDefault()))},B=function(e,t,n,i,o){(A[n]||(A[n]=[])).push({uiElement:e,dialog:t,key:n,keyup:o||e.accessKeyUp,keydown:i||e.accessKeyDown})},P=function(e){for(var t in A){for(var n=A[t],i=n.length-1;0<=i;i--)n[i].dialog!=e&&n[i].uiElement!=e||n.splice(i,1);0===n.length&&delete A[t]}},M=function(e,t){e._.accessKeyMap[t]&&e.selectPage(e._.accessKeyMap[t])},$=function(){};CKEDITOR.ui.dialog={uiElement:function(n,i,e,t,o,a,r){if(!(arguments.length<4)){var s=(t.call?t(i):t)||"div",l=["<",s," "],c=(o&&o.call?o(i):o)||{},d=(a&&a.call?a(i):a)||{},u=(r&&r.call?r.call(this,n,i):r)||"",h=this.domId=d.id||CKEDITOR.tools.getNextId()+"_uiElement";i.requiredContent&&!n.getParentEditor().filter.check(i.requiredContent)&&(c.display="none",this.notAllowed=!0),d.id=h;var f={};i.type&&(f["cke_dialog_ui_"+i.type]=1),i.className&&(f[i.className]=1),i.disabled&&(f.cke_disabled=1);var m=d["class"]&&d["class"].split?d["class"].split(" "):[];for(h=0;h<m.length;h++)m[h]&&(f[m[h]]=1);for(h in m=[],f)m.push(h);for(h in d["class"]=m.join(" "),i.title&&(d.title=i.title),f=(i.style||"").split(";"),i.align&&(m=i.align,c["margin-left"]="left"==m?0:"auto",c["margin-right"]="right"==m?0:"auto"),c)f.push(h+":"+c[h]);for(i.hidden&&f.push("display:none"),h=f.length-1;0<=h;h--)""===f[h]&&f.splice(h,1);for(h in 0<f.length&&(d.style=(d.style?d.style+"; ":"")+f.join("; ")),d)l.push(h+'="'+CKEDITOR.tools.htmlEncode(d[h])+'" ');l.push(">",u,"</",s,">"),e.push(l.join("")),(this._||(this._={})).dialog=n,"boolean"==typeof i.isChanged&&(this.isChanged=function(){return i.isChanged}),"function"==typeof i.isChanged&&(this.isChanged=i.isChanged),"function"==typeof i.setValue&&(this.setValue=CKEDITOR.tools.override(this.setValue,function(t){return function(e){t.call(this,i.setValue.call(this,e))}})),"function"==typeof i.getValue&&(this.getValue=CKEDITOR.tools.override(this.getValue,function(e){return function(){return i.getValue.call(this,e.call(this))}})),CKEDITOR.event.implementOn(this),this.registerEvents(i),this.accessKeyUp&&this.accessKeyDown&&i.accessKey&&B(this,n,"CTRL+"+i.accessKey);var p=this;
13n.on("load",function(){var e=p.getInputElement();if(e){var t=p.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?"cke_dialog_ui_focused":"";e.on("focus",function(){n._.tabBarMode=!1,n._.hasFocus=!0,p.fire("focus"),t&&this.addClass(t)}),e.on("blur",function(){p.fire("blur"),t&&this.removeClass(t)})}}),CKEDITOR.tools.extend(this,i),this.keyboardFocusable&&(this.tabIndex=i.tabIndex||0,this.focusIndex=n._.focusList.push(this)-1,this.on("focus",function(){n._.currentFocusIndex=p.focusIndex}))}},hbox:function(e,t,i,n,o){if(!(arguments.length<4)){this._||(this._={});var a,r=this._.children=t,s=o&&o.widths||null,l=o&&o.height||null,c={role:"presentation"};o&&o.align&&(c.align=o.align),CKEDITOR.ui.dialog.uiElement.call(this,e,o||{type:"hbox"},n,"table",{},c,function(){var e=['<tbody><tr class="cke_dialog_ui_hbox">'];for(a=0;a<i.length;a++){var t="cke_dialog_ui_hbox_child",n=[];0===a&&(t="cke_dialog_ui_hbox_first"),a==i.length-1&&(t="cke_dialog_ui_hbox_last"),e.push('<td class="',t,'" role="presentation" '),s?s[a]&&n.push("width:"+u(s[a])):n.push("width:"+Math.floor(100/i.length)+"%"),l&&n.push("height:"+u(l)),o&&void 0!==o.padding&&n.push("padding:"+u(o.padding)),CKEDITOR.env.ie&&CKEDITOR.env.quirks&&r[a].align&&n.push("text-align:"+r[a].align),0<n.length&&e.push('style="'+n.join("; ")+'" '),e.push(">",i[a],"</td>")}return e.push("</tr></tbody>"),e.join("")})}},vbox:function(i,e,o,t,a){if(!(arguments.length<3)){this._||(this._={});var r=this._.children=e,s=a&&a.width||null,l=a&&a.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,i,a||{type:"vbox"},t,"div",null,{role:"presentation"},function(){var e=['<table role="presentation" cellspacing="0" border="0" '];e.push('style="'),a&&a.expand&&e.push("height:100%;"),e.push("width:"+u(s||"100%"),";"),CKEDITOR.env.webkit&&e.push("float:none;"),e.push('"'),e.push('align="',CKEDITOR.tools.htmlEncode(a&&a.align||("ltr"==i.getParentEditor().lang.dir?"left":"right")),'" '),e.push("><tbody>");for(var t=0;t<o.length;t++){var n=[];e.push('<tr><td role="presentation" '),s&&n.push("width:"+u(s||"100%")),l?n.push("height:"+u(l[t])):a&&a.expand&&n.push("height:"+Math.floor(100/o.length)+"%"),a&&void 0!==a.padding&&n.push("padding:"+u(a.padding)),CKEDITOR.env.ie&&CKEDITOR.env.quirks&&r[t].align&&n.push("text-align:"+r[t].align),0<n.length&&e.push('style="',n.join("; "),'" '),e.push(' class="cke_dialog_ui_vbox_child">',o[t],"</td></tr>")}return e.push("</tbody></table>"),e.join("")})}}},CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(e,t){return this.getInputElement().setValue(e),!t&&this.fire("change",{value:e}),this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return!1},selectParentTab:function(){for(var e=this.getInputElement();(e=e.getParent())&&-1==e.$.className.search("cke_dialog_page_contents"););return e&&(e=e.getAttribute("name"),this._.dialog._.currentTabId!=e&&this._.dialog.selectPage(e)),this},focus:function(){return this.selectParentTab().getInputElement().focus(),this},registerEvents:function(e){var t,n,i=/^on([A-Z]\w+)/,o=function(e,t,n,i){t.on("load",function(){e.getInputElement().on(n,i,e)})};for(n in e)(t=n.match(i))&&(this.eventProcessors[n]?this.eventProcessors[n].call(this,this._.dialog,e[n]):o(this,this._.dialog,t[1].toLowerCase(),e[n]));return this},eventProcessors:{onLoad:function(e,t){e.on("load",t,this)},onShow:function(e,t){e.on("show",t,this)},onHide:function(e,t){e.on("hide",t,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var e=this.getElement();this.getInputElement().setAttribute("disabled","true"),e.addClass("cke_disabled")},enable:function(){var e=this.getElement();this.getInputElement().removeAttribute("disabled"),e.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return!(!this.isEnabled()||!this.isVisible())}},CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getChild:function(e){return arguments.length<1?this._.children.concat():(e.splice||(e=[e]),e.length<2?this._.children[e[0]]:this._.children[e[0]]&&this._.children[e[0]].getChild?this._.children[e[0]].getChild(e.slice(1,e.length)):null)}},!0),CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox,t={build:function(e,t,n){for(var i,o=t.children,a=[],r=[],s=0;s<o.length&&(i=o[s]);s++){var l=[];a.push(l),r.push(CKEDITOR.dialog._.uiElementBuilders[i.type].build(e,i,l))}return new CKEDITOR.ui.dialog[t.type](e,r,a,n,t)}},CKEDITOR.dialog.addUIElement("hbox",t),CKEDITOR.dialog.addUIElement("vbox",t),CKEDITOR.dialogCommand=function(e,t){this.dialogName=e,CKEDITOR.tools.extend(this,t,!0)},CKEDITOR.dialogCommand.prototype={exec:function(e){var t=this.tabId;e.openDialog(this.dialogName,function(e){t&&e.selectPage(t)})},canUndo:!1,editorFocus:1},_=/^([a]|[^a])+$/,K=/^\d*$/,k=/^\d*(?:\.\d+)?$/,w=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,S=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,x=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/,CKEDITOR.VALIDATE_OR=1,CKEDITOR.VALIDATE_AND=2,CKEDITOR.dialog.validate={functions:function(){var r=arguments;return function(){var e,t,n=this&&this.getValue?this.getValue():r[0],i=CKEDITOR.VALIDATE_AND,o=[];for(t=0;t<r.length&&"function"==typeof r[t];t++)o.push(r[t]);t<r.length&&"string"==typeof r[t]&&(e=r[t],t++),t<r.length&&"number"==typeof r[t]&&(i=r[t]);var a=i==CKEDITOR.VALIDATE_AND;for(t=0;t<o.length;t++)a=i==CKEDITOR.VALIDATE_AND?a&&o[t](n):a||o[t](n);return!!a||e}},regex:function(t,n){return function(e){return e=this&&this.getValue?this.getValue():e,!!t.test(e)||n}},notEmpty:function(e){return this.regex(_,e)},integer:function(e){return this.regex(K,e)},number:function(e){return this.regex(k,e)},cssLength:function(e){return this.functions(function(e){return S.test(CKEDITOR.tools.trim(e))},e)},htmlLength:function(e){return this.functions(function(e){return w.test(CKEDITOR.tools.trim(e))},e)},inlineStyle:function(e){return this.functions(function(e){return x.test(CKEDITOR.tools.trim(e))},e)},equals:function(t,e){return this.functions(function(e){return e==t},e)},notEqual:function(t,e){return this.functions(function(e){return e!=t},e)}},CKEDITOR.on("instanceDestroyed",function(e){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var t;t=CKEDITOR.dialog._.currentTop;)t.hide();for(var n in N)N[n].remove();N={}}for(var i in e=e.editor._.storedDialogs)e[i].destroy()}),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(e,t){var n=null,i=CKEDITOR.dialog._.dialogDefinitions[e];if(null===CKEDITOR.dialog._.currentTop&&d(this),"function"==typeof i)n=(n=this._.storedDialogs||(this._.storedDialogs={}))[e]||(n[e]=new CKEDITOR.dialog(this,e)),t&&t.call(n,n),n.show();else{if("failed"==i)throw o(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+e+'" failed when loading definition.');"string"==typeof i&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(i),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[e]&&(CKEDITOR.dialog._.dialogDefinitions[e]="failed"),this.openDialog(e,t)},this,0,1)}return CKEDITOR.skin.loadPart("dialog"),n}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(t){t.on("doubleclick",function(e){
14e.data.dialog&&t.openDialog(e.data.dialog)},null,null,999)}}),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(e){var t=e.addCommand("about",new CKEDITOR.dialogCommand("about"));t.modes={wysiwyg:1,source:1},t.canUndo=!1,t.readOnly=1,e.ui.addButton&&e.ui.addButton("About",{label:e.lang.about.dlgTitle,command:"about",toolbar:"about"}),CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",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-gb":1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fo:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn: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,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},init:function(t){var n=this;t.addCommand("a11yHelp",{exec:function(){var e=t.langCode;e=n.availableLangs[e]?e:n.availableLangs[e.replace(/-.*/,"")]?e.replace(/-.*/,""):"en",CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(n.path+"dialogs/lang/"+e+".js"),function(){t.lang.a11yhelp=n.langEntries[e],t.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:!1}),t.setKeystroke(CKEDITOR.ALT+48,"a11yHelp"),CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js"),t.on("ariaEditorHelpLabel",function(e){e.data.label=t.lang.common.editorHelp})}}),function(){function r(e){var t=this.att;void 0!==(e=e&&e.hasAttribute(t)&&e.getAttribute(t)||"")&&this.setValue(e)}function s(){for(var e,t=0;t<arguments.length;t++)if(arguments[t]instanceof CKEDITOR.dom.element){e=arguments[t];break}if(e){t=this.att;var n=this.getValue();n?e.setAttribute(t,n):e.removeAttribute(t,n)}}var l={id:1,dir:1,classes:1,styles:1};CKEDITOR.plugins.add("dialogadvtab",{requires:"dialog",allowedContent:function(e){e||(e=l);var t=[];
14e.id&&t.push("id"),e.dir&&t.push("dir");var n="";return t.length&&(n+="["+t.join(",")+"]"),e.classes&&(n+="(*)"),e.styles&&(n+="{*}"),n},createAdvancedTab:function(o,e,t){e||(e=l);var n=o.lang.common,i={id:"advanced",label:n.advancedTab,title:n.advancedTab,elements:[{type:"vbox",padding:1,children:[]}]},a=[];return(e.id||e.dir)&&(e.id&&a.push({id:"advId",att:"id",type:"text",requiredContent:t?t+"[id]":null,label:n.id,setup:r,commit:s}),e.dir&&a.push({id:"advLangDir",att:"dir",type:"select",requiredContent:t?t+"[dir]":null,label:n.langDir,"default":"",style:"width:100%",items:[[n.notSet,""],[n.langDirLTR,"ltr"],[n.langDirRTL,"rtl"]],setup:r,commit:s}),i.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(a)})),(e.styles||e.classes)&&(a=[],e.styles&&a.push({id:"advStyles",att:"style",type:"text",requiredContent:t?t+"{cke-xyz}":null,label:n.styles,"default":"",validate:CKEDITOR.dialog.validate.inlineStyle(n.invalidInlineStyle),onChange:function(){},getStyle:function(e,t){var n=this.getValue().match(new RegExp("(?:^|;)\\s*"+e+"\\s*:\\s*([^;]*)","i"));return n?n[1]:t},updateStyle:function(e,t){var n=this.getValue(),i=o.document.createElement("span");i.setAttribute("style",n),i.setStyle(e,t),n=CKEDITOR.tools.normalizeCssText(i.getAttribute("style")),this.setValue(n,1)},setup:r,commit:s}),e.classes&&a.push({type:"hbox",widths:["45%","55%"],children:[{id:"advCSSClasses",att:"class",type:"text",requiredContent:t?t+"(cke-xyz)":null,label:n.cssClasses,"default":"",setup:r,commit:s}]}),i.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(a)})),i}})}(),CKEDITOR.plugins.add("basicstyles",{init:function(a){var r=0,e=function(e,t,n,i){if(i){i=new CKEDITOR.style(i);var o=s[n];o.unshift(i),a.attachStyleStateChange(i,function(e){!a.readOnly&&a.getCommand(n).setState(e)}),a.addCommand(n,new CKEDITOR.styleCommand(i,{contentForms:o})),a.ui.addButton&&a.ui.addButton(e,{label:t,command:n,toolbar:"basicstyles,"+(r+=10)})}},s={bold:["strong","b",["span",function(e){return"bold"==(e=e.styles["font-weight"])||700<=+e}]],italic:["em","i",["span",function(e){return"italic"==e.styles["font-style"]}]],underline:["u",["span",function(e){return"underline"==e.styles["text-decoration"]}]],strike:["s","strike",["span",function(e){return"line-through"==e.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},t=a.config,n=a.lang.basicstyles;e("Bold",n.bold,"bold",t.coreStyles_bold),e("Italic",n.italic,"italic",t.coreStyles_italic),e("Underline",n.underline,"underline",t.coreStyles_underline),e("Strike",n.strike,"strike",t.coreStyles_strike),e("Subscript",n.subscript,"subscript",t.coreStyles_subscript),e("Superscript",n.superscript,"superscript",t.coreStyles_superscript),a.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},CKEDITOR.config.coreStyles_superscript={element:"sup"},function(){function f(e,t,n,i){if(!e.isReadOnly()&&!e.equals(n.editable())){CKEDITOR.dom.element.setMarker(i,e,"bidi_processed",1),i=e;for(var o=n.editable();(i=i.getParent())&&!i.equals(o);)if(i.getCustomData("bidi_processed"))return e.removeStyle("direction"),void e.removeAttribute("dir");((i="useComputedState"in n.config?n.config.useComputedState:1)?e.getComputedStyle("direction"):e.getStyle("direction")||e.hasAttribute("dir"))!=t&&(e.removeStyle("direction"),i?(e.removeAttribute("dir"),t!=e.getComputedStyle("direction")&&e.setAttribute("dir",t)):e.setAttribute("dir",t),n.forceNextSelectionCheck())}}function m(e,t,n){var i=e.getCommonAncestor(!1,!0);if((e=e.clone()).enlarge(n==CKEDITOR.ENTER_BR?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS),e.checkBoundaryOfElement(i,CKEDITOR.START)&&e.checkBoundaryOfElement(i,CKEDITOR.END)){for(var o;i&&i.type==CKEDITOR.NODE_ELEMENT&&(o=i.getParent())&&1==o.getChildCount()&&!(i.getName()in t);)i=o;return i.type==CKEDITOR.NODE_ELEMENT&&i.getName()in t&&i}}function n(h){return{context:"p",allowedContent:{"h1 h2 h3 h4 h5 h6 table ul ol blockquote div tr p div li td":{propertiesOnly:!0,attributes:"dir"}},requiredContent:"p[dir]",refresh:function(e,t){var n,i;if(!(i=void 0===(i=e.config.useComputedState)||i)){n=t.lastElement;for(var o=e.editable();n&&!(n.getName()in r||n.equals(o));){var a=n.getParent();if(!a)break;n=a}}(n=n||t.block||t.blockLimit).equals(e.editable())&&(o=e.getSelection().getRanges()[0].getEnclosedNode())&&o.type==CKEDITOR.NODE_ELEMENT&&(n=o),n&&(i=i?n.getComputedStyle("direction"):n.get
14Style("direction")||n.getAttribute("dir"),e.getCommand("bidirtl").setState("rtl"==i?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),e.getCommand("bidiltr").setState("ltr"==i?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)),(i=(t.block||t.blockLimit||e.editable()).getDirection(1))!=(e._.selDir||e.lang.dir)&&(e._.selDir=i,e.fire("contentDirChanged",i))},exec:function(e){var t=e.getSelection(),i=e.config.enterMode;if((r=t.getRanges())&&r.length){for(var n,o={},a=t.createBookmarks(),r=r.createIterator(),s=0;n=r.getNextRange(1);){var l=n.getEnclosedNode();l&&(!l||l.type==CKEDITOR.NODE_ELEMENT&&l.getName()in g)||(l=m(n,p,i)),l&&f(l,h,e,o);var c=new CKEDITOR.dom.walker(n),d=a[s].startNode,u=a[s++].endNode;for(c.evaluator=function(e){var t,n=i==CKEDITOR.ENTER_P?"p":"div";return(t=!!e&&e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in p)&&((n=e.is(n))&&(n=!!(n=e.getParent())&&n.type==CKEDITOR.NODE_ELEMENT),t=!(n&&e.getParent().is("blockquote"))),!!(t&&e.getPosition(d)&CKEDITOR.POSITION_FOLLOWING&&(e.getPosition(u)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_CONTAINS)==CKEDITOR.POSITION_PRECEDING)};l=c.next();)f(l,h,e,o);for((n=n.createIterator()).enlargeBr=i!=CKEDITOR.ENTER_BR;l=n.getNextParagraph(i==CKEDITOR.ENTER_P?"p":"div");)f(l,h,e,o)}CKEDITOR.dom.element.clearAllMarkers(o),e.forceNextSelectionCheck(),t.selectBookmarks(a),e.focus()}}}}function e(o){var a=o==t.setAttribute,r=o==t.removeAttribute,s=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/;return function(e,t){if(!this.isReadOnly()){var n;if(n=e==(a||r?"dir":"direction")||"style"==e&&(r||s.test(t))){e:{for(var i=(n=this).getDocument().getBody().getParent();n;){if(n.equals(i)){n=!1;break e}n=n.getParent()}n=!0}n=!n}if(n&&(n=this.getDirection(1),i=o.apply(this,arguments),n!=this.getDirection(1)))return this.getDocument().fire("dirChanged",this),i}return o.apply(this,arguments)}}var p={table:1,ul:1,ol:1,blockquote:1,div:1},g={},r={};CKEDITOR.tools.extend(g,p,{tr:1,p:1,div:1,li:1}),CKEDITOR.tools.extend(r,g,{td:1}),CKEDITOR.plugins.add("bidi",{init:function(a){function e(e,t,n,i,o){a.addCommand(n,new CKEDITOR.command(a,i)),a.ui.addButton&&a.ui.addButton(e,{label:t,command:n,toolbar:"bidi,"+o})}if(!a.blockless){var t=a.lang.bidi;e("BidiLtr",t.ltr,"bidiltr",n("ltr"),10),e("BidiRtl",t.rtl,"bidirtl",n("rtl"),20),a.on("contentDom",function(){a.document.on("dirChanged",function(e){a.fire("dirChanged",{node:e.data,dir:e.data.getDirection(1)})})}),a.on("contentDirChanged",function(e){e=(a.lang.dir!=e.data?"add":"remove")+"Class";var t=a.ui.space(a.config.toolbarLocation);t&&t[e]("cke_mixed_dir_content")})}}});for(var t=CKEDITOR.dom.element.prototype,i=["setStyle","removeStyle","setAttribute","removeAttribute"],o=0;o<i.length;o++)t[i[o]]=CKEDITOR.tools.override(t[i[o]],e)}(),b={exec:function(e){var t=e.getCommand("blockquote").state,n=e.getSelection(),i=n&&n.getRanges()[0];if(i){var o=n.createBookmarks();if(CKEDITOR.env.ie){var a,r=o[0].startNode,s=o[0].endNode;if(r&&"blockquote"==r.getParent().getName())for(a=r;a=a.getNext();)if(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary()){r.move(a,!0);break}if(s&&"blockquote"==s.getParent().getName())for(a=s;a=a.getPrevious();)if(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary()){s.move(a);break}}if((l=i.createIterator()).enlargeBr=e.config.enterMode!=CKEDITOR.ENTER_BR,t==CKEDITOR.TRISTATE_OFF){for(r=[];t=l.getNextParagraph();)r.push(t);for(r.length<1&&(t=e.document.createElement(e.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),s=o.shift(),i.insertNode(t),t.append(new CKEDITOR.dom.text("\ufeff",e.document)),i.moveToBookmark(s),i.selectNodeContents(t),i.collapse(!0),s=i.createBookmark(),r.push(t),o.unshift(s)),a=r[0].getParent(),i=[],s=0;s<r.length;s++)t=r[s],a=a.getCommonAncestor(t.getParent());for(t={table:1,tbody:1,tr:1,ol:1,ul:1};t[a.getName()];)a=a.getParent();for(s=null;0<r.length;){for(t=r.shift();!t.getParent().equals(a);)t=t.getParent();t.equals(s)||i.push(t),s=t}for(;0<i.length;)if("blockquote"==(t=i.shift()).getName()){for(s=new CKEDITOR.dom.documentFragment(e.document);t.getFirst();)s.append(t.getFirst().remove()),r.push(s.getLast());s.replace(t)}else r.push(t);for((i=e.document.createElement("blockquote")).insertBefore(r[0]);0<r.length;)t=r.shift(),i.append(t)}else if(t==CKEDITOR.TRISTATE_ON){for(s=[],a={};t=l.getNextParagraph();){for(r=i=null;t.getParent();){if("blockquote"==t.getParent().getName()){i=t.getParent(),r=t;break}t=t.getParent()}i&&r&&!r.getCustomData("blockquote_moveout")&&(s.push(r),CKEDITOR.dom.element.setMarker(a,r,"blockquote_moveout",!0))}for(CKEDITOR.dom.element.clearAllMarkers(a),t=[],r=[],a={};0<s.length;)i=(l=s.shift()).getParent(),l.getPrevious()?l.getNext()?(l.breakParent(l.getParent()),r.push(l.getNext())):l.remove().insertAfter(i):l.remove().insertBefore(i),i.getCustomData("blockquote_processed")||(r.push(i),CKEDITOR.dom.element.setMarker(a,i,"blockquote_processed",!0)),t.push(l);for(CKEDITOR.dom.element.clearAllMarkers(a),s=r.length-1;0<=s;s--){e:{for(var l=0,c=(a=i=r[s]).getChildCount(),d=void 0;l<c&&(d=a.getChild(l));l++)if(d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary()){a=!1;break e}a=!0}a&&i.remove()}if(e.config.enterMode==CKEDITOR.ENTER_BR)for(i=!0;t.length;)if("div"==(l=t.shift()).getName()){for(s=new CKEDITOR.dom.documentFragment(e.document),!i||!l.getPrevious()||l.getPrevious().type==CKEDITOR.NODE_ELEMENT&&l.getPrevious().isBlockBoundary()||s.append(e.document.createElement("br")),i=l.getNext()&&!(l.getNext().type==CKEDITOR.NODE_ELEMENT&&l.getNext().isBlockBoundary());l.getFirst();)l.getFirst().remove().appendTo(s);i&&s.append(e.document.createElement("br")),s.replace(l),i=!1}}n.selectBookmarks(o),e.focus()}},refresh:function(e,t){this.setState(e.elementPath(t.block||t.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"},CKEDITOR.plugins.add("blockquote",{init:function(e){e.blockless||(e.addCommand("blockquote",b),e.ui.addButton&&e.ui.addButton("Blockquote",{label:e.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}}),function(){function e(e,t){CKEDITOR.tools.extend(this,t,{editor:e,id:"cke-"+CKEDITOR.tools.getUniqueId(),area:e._.notificationArea}
14),t.type||(this.type="info"),this.element=this._createElement(),e.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(this.element)}function t(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()})}CKEDITOR.plugins.add("notification",{init:function(a){function n(e){var t=new CKEDITOR.dom.element("div");t.setStyles({position:"fixed","margin-left":"-9999px"}),t.setAttributes({"aria-live":"assertive","aria-atomic":"true"}),t.setText(e),CKEDITOR.document.getBody().append(t),setTimeout(function(){t.remove()},100)}a._.notificationArea=new t(a),a.showNotification=function(e,t,n){var i,o;return"progress"==t?i=n:o=n,(e=new CKEDITOR.plugins.notification(a,{message:e,type:t,progress:i,duration:o})).show(),e},a.on("key",function(e){if(27==e.data.keyCode){var t=a._.notificationArea.notifications;t.length&&(n(a.lang.notification.closed),t[t.length-1].hide(),e.cancel())}})}}),e.prototype={show:function(){!1!==this.editor.fire("notificationShow",{notification:this})&&(this.area.add(this),this._hideAfterTimeout())},update:function(e){var t=!0;!1===this.editor.fire("notificationUpdate",{notification:this,options:e})&&(t=!1);var n=this.element,i=n.findOne(".cke_notification_message"),o=n.findOne(".cke_notification_progress"),a=e.type;n.removeAttribute("role"),e.progress&&"progress"!=this.type&&(a="progress"),a&&(n.removeClass(this._getClass()),n.removeAttribute("aria-label"),this.type=a,n.addClass(this._getClass()),n.setAttribute("aria-label",this.type),"progress"!=this.type||o?"progress"!=this.type&&o&&o.remove():(o=this._createProgressElement()).insertBefore(i)),void 0!==e.message&&(this.message=e.message,i.setHtml(this.message)),void 0!==e.progress&&(this.progress=e.progress,o&&o.setStyle("width",this._getPercentageProgress())),t&&e.important&&(n.setAttribute("role","alert"),this.isVisible()||this.area.add(this)),this.duration=e.duration,this._hideAfterTimeout()},hide:function(){!1!==this.editor.fire("notificationHide",{notification:this})&&this.area.remove(this)},isVisible:function(){return 0<=CKEDITOR.tools.indexOf(this.area.notifications,this)},_createElement:function(){var e,t,n=this,i=this.editor.lang.common.close;return(e=new CKEDITOR.dom.element("div")).addClass("cke_notification"),e.addClass(this._getClass()),e.setAttributes({id:this.id,role:"alert","aria-label":this.type}),"progress"==this.type&&e.append(this._createProgressElement()),(t=new CKEDITOR.dom.element("p")).addClass("cke_notification_message"),t.setHtml(this.message),e.append(t),t=CKEDITOR.dom.element.createFromHtml('<a class="cke_notification_close" href="javascript:void(0)" title="'+i+'" role="button" tabindex="-1"><span class="cke_label">X</span></a>'),e.append(t),t.on("click",function(){n.editor.focus(),n.hide()}),e},_getClass:function(){return"progress"==this.type?"cke_notification_info":"cke_notification_"+this.type},_createProgressElement:function(){var e=new CKEDITOR.dom.element("span");return e.addClass("cke_notification_progress"),e.setStyle("width",this._getPercentageProgress()),e},_getPercentageProgress:function(){return Math.round(100*(this.progress||0))+"%"},_hideAfterTimeout:function(){var e,t=this;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),"number"==typeof this.duration?e=this.duration:"info"!=this.type&&"success"!=this.type||(e="number"==typeof this.editor.config.notification_duration?this.editor.config.notification_duration:5e3),e&&(t._hideTimeoutId=setTimeout(function(){t.hide()},e))}},t.prototype={add:function(e){this.notifications.push(e),this.element.append(e.element),1==this.element.getChildCount()&&(CKEDITOR.document.getBody().append(this.element),this._attachListeners()),this._layout()},remove:function(e){var t=CKEDITOR.tools.indexOf(this.notifications,e);t<0||(this.notifications.splice(t,1),e.element.remove(),this.element.getChildCount()||(this._removeListeners(),this.element.remove()))},_createElement:function(){var e=this.editor,t=e.config,n=new CKEDITOR.dom.element("div");return n.addClass("cke_notifications_area"),n.setAttribute("id","cke_notifications_area_"+e.name),n.setStyle("z-index",t.baseFloatZIndex-2),n},_attachListeners:function(){var e=CKEDITOR.document.getWindow(),t=this.editor;e.on("scroll",this._uiBuffer.input),e.on("resize",this._uiBuffer.input),t.on("change",this._changeBuffer.input),t.on("floatingSpaceLayout",this._layout,this,null,20),t.on("blur",this._layout,this,null,20)},_removeListeners:function(){var e=CKEDITOR.document.getWindow(),t=this.editor;e.removeListener("scroll",this._uiBuffer.input),e.removeListener("resize",this._uiBuffer.input),t.removeListener("change",this._changeBuffer.input),t.removeListener("floatingSpaceLayout",this._layout),t.removeListener("blur",this._layout)},_layout:function(){function e(){o.setStyle("left",p(g+r.width-c-d))}var t,n,i,o=this.element,a=this.editor,r=a.ui.contentsElement.getClientRect(),s=a.ui.contentsElement.getDocumentPosition(),l=o.getClientRect(),c=this._notificationWidth,d=this._notificationMargin,u=(i=CKEDITOR.document.getWindow()).getScrollPosition(),h=i.getViewPaneSize(),f=CKEDITOR.document.getBody(),m=f.getDocumentPosition(),p=CKEDITOR.tools.cssLength;c&&d||(i=this.element.getChild(0),c=this._notificationWidth=i.getClientRect().width,d=this._notificationMargin=parseInt(i.getComputedStyle("margin-left"),10)+parseInt(i.getComputedStyle("margin-right"),10)),a.toolbar&&(n=(t=a.ui.space("top")).getClientRect()),t&&t.isVisible()&&n.bottom>r.top&&n.bottom<r.bottom-l.height?o.setStyles({position:"fixed",top:p(n.bottom)}):0<r.top?o.setStyles({position:"absolute",top:p(s.y)}):s.y+r.height-l.height>u.y?o.setStyles({position:"fixed",top:0}):o.setStyles({position:"absolute",top:p(s.y+r.height-l.height)});var g="fixed"==o.getStyle("position")?r.left:"static"!=f.getComputedStyle("position")?s.x-m.x:s.x;r.width<c+d?s.x+c+d>u.x+h.width?e():o.setStyle("left",p(g)):s.x+c+d>u.x+h.width?o.setStyle("left",p(g)):s.x+r.width/2+c/2+d>u.x+h.width?o.setStyle("left",p(g-s.x+u.x+h.width-c-d)):r.left+r.
14width-c-d<0?e():r.left+r.width/2-c/2<0?o.setStyle("left",p(g-s.x+u.x)):o.setStyle("left",p(g+r.width/2-c/2-d/2))}},CKEDITOR.plugins.notification=e}(),function(){var e='<a id="{id}" class="cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' title="{title}" tabindex="-1" hidefocus="true" role="button" aria-labelledby="{id}_label" aria-describedby="{id}_description" aria-haspopup="{hasArrow}" aria-disabled="{ariaDisabled}"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;"');e=(e=e+' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"')+'>&nbsp;</span><span id="{id}_label" class="cke_button_label cke_button__{name}_label" aria-hidden="false">{label}</span><span id="{id}_description" class="cke_button_label" aria-hidden="false">{ariaShortcut}</span>{arrowHtml}</a>';var T=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"&#9660;":"")+"</span>"),C=CKEDITOR.addTemplate("button",e);CKEDITOR.plugins.add("button",{beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}}),CKEDITOR.UI_BUTTON="button",CKEDITOR.ui.button=function(t){CKEDITOR.tools.extend(this,t,{title:t.label,click:t.click||function(e){e.execCommand(t.command)}}),this._={}},CKEDITOR.ui.button.handler={create:function(e){return new CKEDITOR.ui.button(e)}},CKEDITOR.ui.button.prototype={render:function(i,e){function t(){var e=i.mode;e&&(e=this.modes[e]?void 0!==r[e]?r[e]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,e=i.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:e,this.setState(e),this.refresh&&this.refresh())}var n,o,a,r=null,s=CKEDITOR.env,l=this._.id=CKEDITOR.tools.getNextId(),c="",d=this.command;this._.editor=i;var u,h={id:l,button:this,editor:i,focus:function(){CKEDITOR.document.getById(l).focus()},execute:function(){this.button.click(i)},attach:function(e){this.button.attach(e)}},f=CKEDITOR.tools.addFunction(function(e){if(h.onkey)return e=new CKEDITOR.dom.event(e),!1!==h.onkey(h,e.getKeystroke())}),m=CKEDITOR.tools.addFunction(function(e){var t;return h.onfocus&&(t=!1!==h.onfocus(h,new CKEDITOR.dom.event(e))),t}),p=0;h.clickFn=n=CKEDITOR.tools.addFunction(function(){p&&(i.unlockSelection(1),p=0),h.execute(),s.iOS&&i.focus()}),this.modes?(r={},i.on("beforeModeUnload",function(){i.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(r[i.mode]=this._.state)},this),i.on("activeFilterChange",t,this),i.on("mode",t,this),!this.readOnly&&i.on("readOnly",t,this)):d&&(d=i.getCommand(d))&&(d.on("state",function(){this.setState(d.state)},this),c+=d.state==CKEDITOR.TRISTATE_ON?"on":d.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off"),this.directional&&i.on("contentDirChanged",function(e){var t=CKEDITOR.document.getById(this._.id),n=t.getFirst();(e=e.data)!=i.lang.dir?t.addClass("cke_"+e):t.removeClass("cke_ltr").removeClass("cke_rtl"),n.setAttribute("style",CKEDITOR.skin.getIconStyle(u,"rtl"==e,this.icon,this.iconOffset))},this),d?(o=i.getCommandKeystroke(d))&&(a=CKEDITOR.tools.keystrokeToString(i.lang.common.keyboard,o)):c+="off",o=this.name||this.command;var g=null,E=this.icon;return u=o,this.icon&&!/\./.test(this.icon)?(u=this.icon,E=null):(this.icon&&(g=this.icon),CKEDITOR.env.hidpi&&this.iconHiDpi&&(g=this.iconHiDpi)),g?(CKEDITOR.skin.addIcon(g,g),E=null):g=u,c={id:l,name:o,iconName:u,label:this.label,cls:(this.hasArrow?"cke_button_expandable ":"")+(this.className||""),state:c,ariaDisabled:"disabled"==c?"true":"false",title:this.title+(a?" ("+a.display+")":""),ariaShortcut:a?i.lang.common.keyboardShortcut+" "+a.aria:"",titleJs:s.gecko&&!s.hc?"":(this.title||"").replace("'",""),hasArrow:"string"==typeof this.hasArrow&&this.hasArrow||(this.hasArrow?"true":"false"),keydownFn:f,focusFn:m,clickFn:n,style:CKEDITOR.skin.getIconStyle(g,"rtl"==i.lang.dir,E,this.iconOffset),arrowHtml:this.hasArrow?T.output():""},C.output(c,e),this.onRender&&this.onRender(),h},setState:function(e){if(this._.state==e)return!1;this._.state=e;var t=CKEDITOR.document.getById(this._.id);return!!t&&(t.setState(e,"cke_button"),t.setAttribute("aria-disabled",e==CKEDITOR.TRISTATE_DISABLED),this.hasArrow?t.setAttribute("aria-expanded",e==CKEDITOR.TRISTATE_ON):e===CKEDITOR.TRISTATE_ON?t.setAttribute("aria-pressed",!0):t.removeAttribute("aria-pressed"),!0)},getState:function(){return this._.state},toFeature:function(e){if(this._.feature)return this._.feature;var t=this;return this.allowedContent||this.requiredContent||!this.command||(t=e.getCommand(this.command)||t),this._.feature=t}},CKEDITOR.ui.prototype.addButton=function(e,t){this.add(e,CKEDITOR.UI_BUTTON,t)}}(),function(){function v(s){function e(){for(var e=l(),t=CKEDITOR.tools.clone(s.config.toolbarGroups)||d(s),n=0;n<t.length;n++){var i=t[n];
14if("/"!=i){"string"==typeof i&&(i=t[n]={name:i});var o,a=i.groups;if(a)for(var r=0;r<a.length;r++)(o=e[o=a[r]])&&c(i,o);(o=e[i.name])&&c(i,o)}}return t}function l(){var e,t,n,i={};for(e in s.ui.items)t=(n=(n=(t=s.ui.items[e]).toolbar||"others").split(","))[0],n=parseInt(n[1]||-1,10),i[t]||(i[t]=[]),i[t].push({name:e,order:n});for(t in i)i[t]=i[t].sort(function(e,t){return e.order==t.order?0:t.order<0?-1:e.order<0?1:e.order<t.order?-1:1});return i}function c(e,t){if(t.length){e.items?e.items.push(s.ui.create("-")):e.items=[];for(var n;n=t.shift();)n="string"==typeof n?n:n.name,i&&-1!=CKEDITOR.tools.indexOf(i,n)||(n=s.ui.create(n))&&s.addFeature(n)&&e.items.push(n)}}function t(e){var t,n,i,o=[];for(t=0;t<e.length;++t)i={},"/"==(n=e[t])?o.push(n):CKEDITOR.tools.isArray(n)?(c(i,CKEDITOR.tools.clone(n)),o.push(i)):n.items&&(c(i,CKEDITOR.tools.clone(n.items)),i.name=n.name,o.push(i));return o}var i=(i=s.config.removeButtons)&&i.split(","),n=s.config.toolbar;return"string"==typeof n&&(n=s.config["toolbar_"+n]),s.toolbar=n?t(n):e()}function d(e){return e._.toolbarGroups||(e._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var b=function(){this.toolbars=[],this.focusCommandExecuted=!1};b.prototype.focus=function(){for(var e,t=0;e=this.toolbars[t++];)for(var n,i=0;n=e.items[i++];)if(n.focus)return void n.focus()};var e={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(e){e.toolbox&&(e.toolbox.focusCommandExecuted=!0,CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){e.toolbox.focus()},100):e.toolbox.focus())}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(O){var r,D=function(e,t){var n,i=(o="rtl"==O.lang.dir)?37:39,o=o?39:37,a=void 0===(a=O.config.toolbarGroupCycling)||a;switch(t){case 9:case CKEDITOR.SHIFT+9:for(;!n||!n.items.length;)if((n=9==t?(n?n.next:e.toolbar.next)||O.toolbox.toolbars[0]:(n?n.previous:e.toolbar.previous)||O.toolbox.toolbars[O.toolbox.toolbars.length-1]).items.length)for(e=n.items[r?n.items.length-1:0];e&&!e.focus;)(e=r?e.previous:e.next)||(n=0);return e&&e.focus(),!1;case i:for(n=e;!(n=n.next)&&a&&(n=e.toolbar.items[0]),n&&!n.focus;);return n?n.focus():D(e,9),!1;case 40:return e.button&&e.button.hasArrow?e.execute():D(e,40==t?i:o),!1;case o:case 38:for(n=e;!(n=n.previous)&&a&&(n=e.toolbar.items[e.toolbar.items.length-1]),n&&!n.focus;);
14return n?n.focus():(r=1,D(e,CKEDITOR.SHIFT+9),r=0),!1;case 27:return O.focus(),!1;case 13:case 32:return e.execute(),!1}return!0};O.on("uiSpace",function(e){if(e.data.space==O.config.toolbarLocation){e.removeListener(),O.toolbox=new b;var t,n,i=['<span id="',o=CKEDITOR.tools.getNextId(),'" class="cke_voice_label">',O.lang.toolbar.toolbars,"</span>",'<span id="'+O.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',o,'" onmousedown="return false;">'],o=!1!==O.config.toolbarStartupExpanded;O.config.toolbarCanCollapse&&O.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&i.push('<span class="cke_toolbox_main"'+(o?">":' style="display:none">'));for(var a=O.toolbox.toolbars,r=v(O),s=r.length,l=0;l<s;l++){var c,d,u,h=0,f=r[l],m="/"!==f&&("/"===r[l+1]||l==s-1);if(f)if(t&&(i.push("</span>"),n=t=0),"/"===f)i.push('<span class="cke_toolbar_break"></span>');else{u=f.items||f;for(var p=0;p<u.length;p++){var g,E=u[p];if(E){var T=function(e){e=e.render(O,i),0<(C=h.items.push(e)-1)&&(e.previous=h.items[C-1],e.previous.next=e),e.toolbar=h,e.onkey=D,e.onfocus=function(){O.toolbox.focusCommandExecuted||O.focus()}};if(E.type==CKEDITOR.UI_SEPARATOR)n=t&&E;else{if(g=!1!==E.canGroup,!h){c=CKEDITOR.tools.getNextId(),h={id:c,items:[]},d=f.name&&(O.lang.toolbar.toolbarGroups[f.name]||f.name),i.push('<span id="',c,'" class="cke_toolbar'+(m?' cke_toolbar_last"':'"'),d?' aria-labelledby="'+c+'_label"':"",' role="toolbar">'),d&&i.push('<span id="',c,'_label" class="cke_voice_label">',d,"</span>"),i.push('<span class="cke_toolbar_start"></span>');var C=a.push(h)-1;0<C&&(h.previous=a[C-1],h.previous.next=h)}g?t||(i.push('<span class="cke_toolgroup" role="presentation">'),t=1):t&&(i.push("</span>"),t=0),n&&(T(n),n=0),T(E)}}}t&&(i.push("</span>"),n=t=0),h&&i.push('<span class="cke_toolbar_end"></span></span>')}}if(O.config.toolbarCanCollapse&&i.push("</span>"),O.config.toolbarCanCollapse&&O.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var I=CKEDITOR.tools.addFunction(function(){O.execCommand("toolbarCollapse")});O.on("destroy",function(){CKEDITOR.tools.removeFunction(I)}),O.addCommand("toolbarCollapse",{readOnly:1,exec:function(e){var t=e.ui.space("toolbar_collapser"),n=t.getPrevious(),i=e.ui.space("contents"),o=n.getParent(),a=parseInt(i.$.style.height,10),r=o.$.offsetHeight,s=t.hasClass("cke_toolbox_collapser_min");s?(n.show(),t.removeClass("cke_toolbox_collapser_min"),t.setAttribute("title",e.lang.toolbar.toolbarCollapse)):(n.hide(),t.addClass("cke_toolbox_collapser_min"),t.setAttribute("title",e.lang.toolbar.toolbarExpand)),t.getFirst().setText(s?"\u25b2":"\u25c0"),i.setStyle("height",a-(o.$.offsetHeight-r)+"px"),e.fire("resize",{outerHeight:e.container.$.offsetHeight,contentsHeight:i.$.offsetHeight,outerWidth:e.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}}),O.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse"),i.push('<a title="'+(o?O.lang.toolbar.toolbarCollapse:O.lang.toolbar.toolbarExpand)+'" id="'+O.ui.spaceId("toolbar_collapser")+'" tabIndex="-1" class="cke_toolbox_collapser'),o||i.push(" cke_toolbox_collapser_min"),i.push('" onclick="CKEDITOR.tools.callFunction('+I+')">','<span class="cke_arrow">&#9650;</span>',"</a>")}i.push("</span>"),e.data.html+=i.join("")}}),O.on("destroy",function(){if(this.toolbox){var e,t,n,i,o=0;for(e=this.toolbox.toolbars;o<e.length;o++)for(n=e[o].items,t=0;t<n.length;t++)(i=n[t]).clickFn&&CKEDITOR.tools.removeFunction(i.clickFn),i.keyDownFn&&CKEDITOR.tools.removeFunction(i.keyDownFn)}}),O.on("uiReady",function(){var e=O.ui.space("toolbox");e&&O.focusManager.add(e,1)}),O.addCommand("toolbarFocus",e),O.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus"),O.ui.add("-",CKEDITOR.UI_SEPARATOR,{}),O.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(e,t){return t.push('<span class="cke_toolbar_separator" role="separator"></span>'),{}}}}})}}),CKEDITOR.ui.prototype.addToolbarGroup=function(e,t,n){var i=d(this.editor),o=0===t,a={name:e};if(n){if(n=CKEDITOR.tools.search(i,function(e){return e.name==n}))return!n.groups&&(n.groups=[]),t&&0<=(t=CKEDITOR.tools.indexOf(n.groups,t))?void n.groups.splice(t+1,0,e):void(o?n.groups.splice(0,0,e):n.groups.push(e));t=null}t&&(t=CKEDITOR.tools.indexOf(i,function(e){return e.name==t})),o?i.splice(0,0,e):"number"==typeof t?i.splice(t+1,0,a):i.push(e)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top",function(){function T(e,t,n){return t.type||(t.type="auto"),!(n&&!1===e.fire("beforePaste",t)||!t.dataValue&&t.dataTransfer.isEmpty())&&(t.dataValue||(t.dataValue=""),CKEDITOR.env.gecko&&"drop"==t.method&&e.toolbox&&e.once("afterPaste",function(){e.toolbox.focus()}),e.fire("paste",t))}function t(h){function e(){var e,t=h.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var n=function(e){h.getSelection().isCollapsed()||(h.readOnly&&"cut"==e.name||m.initPasteDataTransfer(e,h),e.data.preventDefault())};t.on("copy",n),t.on("cut",n),t.on("cut",function(){h.readOnly||h.extractSelectedHtml()},null,null,999)}t.on(m.mainPasteEvent,function(e){"beforepaste"==m.mainPasteEvent&&p||d(e)}),"beforepaste"==m.mainPasteEvent&&(t.on("paste",function(e){g||(i(),e.data.preventDefault(),d(e),a("paste"))}),t.on("contextmenu",o,null,null,0),t.on("beforepaste",function(e){!e.data||e.data.$.ctrlKey||e.data.$.shiftKey||o()},null,null,0)),t.on("beforecut",function(){!p&&r(h)}),t.attachListener(CKEDITOR.env.ie?t:h.document.getDocumentElement(),"mouseup",function(){e=setTimeout(function(){u()},0)}),h.on("destroy",function(){clearTimeout(e)}),t.on("keyup",u)}function t(e){return{type:e,canUndo:"cut"==e,startDisabled:!0,fakeKeystroke:"cut"==e?CKEDITOR.CTRL+88:CKEDITOR.CTRL+67,exec:function(){var e;"cut"==this.type&&r();
14var t=this.type;if(CKEDITOR.env.ie)e=a(t);else try{e=h.document.$.execCommand(t,!1,null)}catch(n){e=!1}
15return e||h.showNotification(h.lang.clipboard[this.type+"Error"]),e}}}function n(){return{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=m.initPasteDataTransfer()),T(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="undefined"==typeof(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/,'<kbd aria-label="'+r.aria+'">'+r.display+"</kbd>");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)}}}function i(){g=1,setTimeout(function(){g=0},100)}function o(){p=1,setTimeout(function(){p=0},10)}function a(e){var t=h.document,n=t.getBody(),i=!1,o=function(){i=!0};return n.on(e,o),7<CKEDITOR.env.version?t.$.execCommand(e):t.$.selection.createRange().execCommand(e),n.removeListener(e,o),i}function r(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var e,t,n,i=h.getSelection();i.getType()==CKEDITOR.SELECTION_ELEMENT&&(e=i.getSelectedElement())&&(t=i.getRanges()[0],(n=h.document.createText("")).insertBefore(e),t.setStartBefore(n),t.setEndAfter(e),i.selectRanges([t]),setTimeout(function(){e.getParent()&&(n.remove(),i.selectElement(e))},0))}}function s(e,t){var n,i=h.document,o=h.editable(),a=function(e){e.cancel()};if(!i.getById("cke_pastebin")){var r=h.getSelection(),s=r.createBookmarks();CKEDITOR.env.ie&&r.root.fire("selectionchange");var l=new CKEDITOR.dom.element(!CKEDITOR.env.webkit&&!o.is("body")||CKEDITOR.env.ie?"div":"body",i);l.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var c=0;i=i.getWindow();CKEDITOR.env.webkit?(o.append(l),l.addClass("cke_editable"),o.is("body")||(c=(c="static"!=o.getComputedStyle("position")?o:CKEDITOR.dom.element.get(o.$.offsetParent)).getDocumentPosition().y)):o.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(l),l.setStyles({position:"absolute",top:i.getScrollPosition().y-c+10+"px",width:"1px",height:Math.max(1,i.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0}),CKEDITOR.env.safari&&l.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text")),(c=l.getParent().isReadOnly())?(l.setOpacity(0),l.setAttribute("contenteditable",!0)):l.setStyle("ltr"==h.config.contentsLangDirection?"left":"right","-10000px"),h.on("selectionChange",a,null,null,0),(CKEDITOR.env.webkit||CKEDITOR.env.gecko)&&(n=o.once("blur",a,null,null,-100)),c&&l.focus(),(c=new CKEDITOR.dom.range(l)).selectNodeContents(l);var d=c.select();CKEDITOR.env.ie&&(n=o.once("blur",function(){h.lockSelection(d)}));var u=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){var e;CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=u),n&&n.removeListener(),CKEDITOR.env.ie&&o.focus(),r.selectBookmarks(s),l.remove(),CKEDITOR.env.webkit&&(e=l.getFirst())&&e.is&&e.hasClass("Apple-style-span")&&(l=e),h.removeListener("selectionChange",a),t(l.getHtml())},0)}}function l(){if("paste"==m.mainPasteEvent)return h.fire("beforePaste",{type:"auto",method:"paste"}),!1;h.focus(),i();var e=h.focusManager;return e.lock(),h.editable().fire(m.mainPasteEvent)&&!a("paste")?(e.unlock(),!1):(e.unlock(),!0)}function c(e){if("wysiwyg"==h.mode)switch(e.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:e=h.editable(),i(),"paste"==m.mainPasteEvent&&e.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:h.fire("saveSnapshot"),setTimeout(function(){h.fire("saveSnapshot")},50)}}function d(e){var t={type:"auto",method:"paste",dataTransfer:m.initPasteDataTransfer(e)};t.dataTransfer.cacheData();var n=!1!==h.fire("beforePaste",t);n&&m.canClipboardApiBeTrusted(t.dataTransfer,h)?(e.data.preventDefault(),setTimeout(function(){T(h,t)},0)):s(e,function(e){t.dataValue=e.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/gi,""),n&&T(h,t)})}function u(){if("wysiwyg"==h.mode){var e=f("paste");h.getCommand("cut").setState(f("cut")),h.getCommand("copy").setState(f("copy")),h.getCommand("paste").setState(e),h.fire("pasteState",e)}}function f(e){if(E&&e in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==e)return CKEDITOR.TRISTATE_OFF;var t=(e=h.getSelection()).getRanges();return e.getType()==CKEDITOR.SELECTION_NONE||1==t.length&&t[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var m=CKEDITOR.plugins.clipboard,p=0,g=0,E=0;!function(){if(h.on("key",c),h.on("contentDom",e),h.on("selectionChange",function(e){E=e.data.selection.getRanges()[0].checkReadOnly(),u()}),h.contextMenu){h.contextMenu.addListener(function(e,t){return E=t.getRanges()[0].checkReadOnly(),{cut:f("cut"),copy:f("copy"),paste:f("paste")}});var t=null;h.on("menuShow",function(){t&&(t.removeListener(),t=null);var e=h.contextMenu.findItemByCommandName("paste");e&&e.element&&(t=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})})})}(),function(){function e(e,t,n,i,o){var a=h.lang.clipboard[t];
15h.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})}e("Cut","cut",t("cut"),10,1),e("Copy","copy",t("copy"),20,4),e("Paste","paste",n(),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===l()&&(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 c(e){if(CKEDITOR.env.webkit){if(!e.match(/^[^<]*$/g)&&!e.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!e.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!e.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else{if(!CKEDITOR.env.gecko)return"html";if(!e.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}return"htmlifiedtext"}function d(e,t){function n(e){return CKEDITOR.tools.repeat("</p><p>",~~(e/2))+(1==e%2?"<br>":"")}return(t=(t=t.replace(/(?!\u3000)\s+/g," ").replace(/> +</g,"><").replace(/<br ?\/>/gi,"<br>")).replace(/<\/?[A-Z]+>/g,function(e){return e.toLowerCase()})).match(/^[^<]$/)?t:(CKEDITOR.env.webkit&&-1<t.indexOf("<div>")&&((t=t.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"<br>").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"<div></div>")).match(/<div>(<br>|)<\/div>/)&&(t="<p>"+t.replace(/(<div>(<br>|)<\/div>)+/g,function(e){return n(e.split("</div><div>").length+1)})+"</p>"),t=(t=t.replace(/<\/div><div>/g,"<br>")).replace(/<\/?div>/g,"")),CKEDITOR.env.gecko&&e.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(t=t.replace(/^<br><br>$/,"<br>")),-1<t.indexOf("<br><br>")&&(t="<p>"+t.replace(/(<br>){2,}/g,function(e){return n(e.length/4)})+"</p>")),i(e,t))}function n(t){function n(){var e,t={};for(e in CKEDITOR.dtd)"$"!=e.charAt(0)&&"div"!=e&&"span"!=e&&(t[e]=1);return t}var i={};return{get:function(e){return"plain-text"==e?i.plainText||(i.plainText=new CKEDITOR.filter(t,"br")):"semantic-content"==e?((e=i.semanticContent)||((e=new CKEDITOR.filter(t,{})).allow({$1:{elements:n(),attributes:!0,styles:!1,classes:!1}}),e=i.semanticContent=e),e):e?new CKEDITOR.filter(t,e):null}}}function u(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 i(e,t){return e.enterMode==CKEDITOR.ENTER_BR?t=t.replace(/(<\/p><p>)+/g,function(e){return CKEDITOR.tools.repeat("<br>",e.length/7*2)}).replace(/<\/?p>/g,""):e.enterMode==CKEDITOR.ENTER_DIV&&(t=t.replace(/<(\/)?p>/g,"<$1div>")),t}function o(e){e.data.preventDefault(),e.data.$.dataTransfer.dropEffect="none"}function r(l){var c=CKEDITOR.plugins.clipboard;l.on("contentDom",function(){function o(e,t,n){t.select(),T(l,{dataTransfer:n,method:"drop"},1),n.sourceEditor.fire("saveSnapshot"),n.sourceEditor.editable().extractHtmlFromRange(e),n.sourceEditor.getSelection().selectRanges([e]),n.sourceEditor.fire("saveSnapshot")}function a(e,t){e.select(),T(l,{dataTransfer:t,method:"drop"},1),c.resetDragDataTransfer()}function i(e,t,n){var i={$:e.data.$,target:e.data.getTarget()};t&&(i.dragRange=t),n&&(i.dropRange=n),!1===l.fire(e.name,i)&&e.data.preventDefault()}function t(e){return e.type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent()),e.getChildCount()}var e=l.editable(),n=CKEDITOR.plugins.clipboard.getDropTarget(l),r=l.ui.space("top"),s=l.ui.space("bottom");c.preventDefaultDropOnElement(r),c.preventDefaultDropOnElement(s),e.attachListener(n,"dragstart",i),e.attachListener(l,"dragstart",c.resetDragDataTransfer,c,null,1),e.attachListener(l,"dragstart",function(e){c.initDragDataTransfer(e,l)},null,null,2),e.attachListener(l,"dragstart",function(){var e=c.dragRange=l.getSelection().getRanges()[0];CKEDITOR.env.ie&&CKEDITOR.env.version<10&&(c.dragStartContainerChildCount=e?t(e.startContainer):null,c.dragEndContainerChildCount=e?t(e.endContainer):null)},null,null,100),e.attachListener(n,"dragend",i),e.attachListener(l,"dragend",c.initDragDataTransfer,c,null,1),e.attachListener(l,"dragend",c.resetDragDataTransfer,c,null,100),e.attachListener(n,"dragover",function(e){if(CKEDITOR.env.edge)e.data.preventDefault();else{var t=e.data.getTarget();t&&t.is&&t.is("html")?e.data.preventDefault():CKEDITOR.env.ie&&CKEDITOR.plugins.clipboard.isFileApiSupported&&e.data.$.dataTransfer.types.contains("Files")&&e.data.preventDefault()}}),e.attachListener(n,"drop",function(e){if(!e.data.$.defaultPrevented&&(e.data.preventDefault(),!(t=e.data.getTarget()).isReadOnly()||t.type==CKEDITOR.NODE_ELEMENT&&t.is("html"))){var t=c.getRangeAtDropPosition(e,l),n=c.dragRange;t&&i(e,n,t)}},null,null,9999),e.attachListener(l,"drop",c.initDragDataTransfer,c,null,1),e.attachListener(l,"drop",function(e){if(e=e.data){var t=e.dropRange,n=e.dragRange,i=e.dataTransfer;i.getTransferType(l)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){c.internalDrop(n,t,i,l)},0):i.getTransferType(l)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?o(n,t,i):a(t,i)}},null,null,9999)})}var p;CKEDITOR.plugins.add("clipboard",{requires:"dialog,notification,toolbar",init:function(s){var e,l=n(s);if(s.config.forcePasteAsPlainText?e="plain-text":s.config.pasteFilter?e=s.config.pasteFilter:!CKEDITOR.env.webkit||"pasteFilter"in s.config||(e="semantic-content"),s.pasteFilter=l.get(e),t(s),r(s),CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js")),CKEDITOR.env.gecko){var o,a=["image/png","image/jpeg","image/gif"];s.on("paste",function(e){var t=e.data,n=t.dataTransfer;if(!t.dataValue&&"paste"==t.method&&n&&1==n.getFilesCount()&&o!=n.id&&(n=n.getFile(0),-1!=CKEDITOR.tools.indexOf(a,n.type))){var i=new FileReader;i.addEventListener("load",function(){e.data.dataValue='<img src="'+i.result+'" />',s.fire("paste",e.data)},!1),i.addEventListener("abort",function(){s.fire("paste",e.data)},!1),i.addEventListener("error",function(){s.fire("paste",e.data)},!1),i.readAsDataURL(n),o=t.dataTransfer.id,e.stop()}},null,null,1)}s.on("paste",function(e){if(e.data.dataTransfer||(e.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer),!e.data.dataValue){var t=e.data.dataTransfer,n=t.getData("text/html");n?(e.data.dataValue=n,e.data.type="html"):(n=t.getData("text/plain"))&&(e.data.dataValue=s.editable().transformPlainTextToHtml(n),e.data.type="text")}},null,null,1),s.on("paste",function(n){var e=n.data.dataValue,i=CKEDITOR.dtd.$block;if(-1<e.indexOf("Apple-")&&(e=e.replace(/<span class="Apple-converted-s
15pace">&nbsp;<\/span>/gi," "),"html"!=n.data.type&&(e=e.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(e,t){return t.replace(/\t/g,"&nbsp;&nbsp; &nbsp;")})),-1<e.indexOf('<br class="Apple-interchange-newline">')&&(n.data.startsWithEOL=1,n.data.preSniffing="html",e=e.replace(/<br class="Apple-interchange-newline">/,"")),e=e.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1")),e.match(/^<[^<]+cke_(editable|contents)/i)){var t,o,a=new CKEDITOR.dom.element("div");for(a.setHtml(e);1==a.getChildCount()&&(t=a.getFirst())&&t.type==CKEDITOR.NODE_ELEMENT&&(t.hasClass("cke_editable")||t.hasClass("cke_contents"));)a=o=t;o&&(e=o.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?e=e.replace(/^&nbsp;(?: |\r\n)?<(\w+)/g,function(e,t){return t.toLowerCase()in i?(n.data.preSniffing="html","<"+t):e}):CKEDITOR.env.webkit?e=e.replace(/<\/(\w+)><div><br><\/div>$/,function(e,t){return t in i?(n.data.endsWithEOL=1,"</"+t+">"):e}):CKEDITOR.env.gecko&&(e=e.replace(/(\s)<br>$/,"$1")),n.data.dataValue=e},null,null,3),s.on("paste",function(e){e=e.data;var t,n=s._.nextPasteType||e.type,i=e.dataValue,o=s.config.clipboard_defaultContentType||"html",a=e.dataTransfer.getTransferType(s)==CKEDITOR.DATA_TRANSFER_EXTERNAL,r=!0===s.config.forcePasteAsPlainText;t="html"==n||"html"==e.preSniffing?"html":c(i),delete s._.nextPasteType,"htmlifiedtext"==t&&(i=d(s.config,i)),"text"==n&&"html"==t?i=u(s,i,l.get("plain-text")):(a&&s.pasteFilter&&!e.dontFilter||r)&&(i=u(s,i,s.pasteFilter)),e.startsWithEOL&&(i='<br data-cke-eol="1">'+i),e.endsWithEOL&&(i+='<br data-cke-eol="1">'),"auto"==n&&(n="html"==t||"html"==o?"html":"text"),e.type=n,e.dataValue=i,delete e.preSniffing,delete e.startsWithEOL,delete e.endsWithEOL},null,null,6),s.on("paste",function(e){(e=e.data).dataValue&&(s.insertHtml(e.dataValue,e.type,e.range),setTimeout(function(){s.fire("afterPaste")},0))},null,null,1e3),s.on("pasteDialog",function(e){setTimeout(function(){s.openDialog("paste",e.data)},0)})}}),CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:(!CKEDITOR.env.ie||16<=CKEDITOR.env.version)&&!CKEDITOR.env.iOS,isCustomDataTypesSupported:!CKEDITOR.env.ie||16<=CKEDITOR.env.version,isFileApiSupported:!CKEDITOR.env.ie||9<CKEDITOR.env.version,mainPasteEvent:CKEDITOR.env.ie&&!CKEDITOR.env.edge?"beforepaste":"paste",addPasteButton:function(e,t,n){e.ui.addButton&&(e.ui.addButton(t,n),e._.pasteButtons||(e._.pasteButtons=[]),e._.pasteButtons.push(t))},canClipboardApiBeTrusted:function(e,t){return!!(e.getTransferType(t)!=CKEDITOR.DATA_TRANSFER_EXTERNAL||CKEDITOR.env.chrome&&!e.isEmpty()||CKEDITOR.env.gecko&&(e.getData("text/html")||e.getFilesCount())||CKEDITOR.env.safari&&603<=CKEDITOR.env.version&&!CKEDITOR.env.iOS||CKEDITOR.env.edge&&16<=CKEDITOR.env.version)},getDropTarget:function(e){var t=e.editable();return CKEDITOR.env.ie&&CKEDITOR.env.version<9||t.isInline()?t:e.document},fixSplitNodesAfterDrop:function(e,o,t,n){function i(e,t,n){var i=e;if(i.type==CKEDITOR.NODE_TEXT&&(i=e.getParent()),i.equals(t)&&n!=t.getChildCount())return e=o.startContainer.getChild(o.startOffset-1),t=o.startContainer.getChild(o.startOffset),e&&e.type==CKEDITOR.NODE_TEXT&&t&&t.type==CKEDITOR.NODE_TEXT&&(n=e.getLength(),e.setText(e.getText()+t.getText()),t.remove(),o.setStart(e,n),o.collapse(!0)),!0}var a=o.startContainer;"number"==typeof n&&"number"==typeof t&&a.type==CKEDITOR.NODE_ELEMENT&&(i(e.startContainer,a,t)||i(e.endContainer,a,n))},isDropRangeAffectedByDragRange:function(e,t){var n=t.startContainer,i=t.endOffset;return!!(e.endContainer.equals(n)&&e.endOffset<=i||e.startContainer.getParent().equals(n)&&e.startContainer.getIndex()<i||e.endContainer.getParent().equals(n)&&e.endContainer.getIndex()<i)},internalDrop:function(e,t,n,i){var o,a,r=CKEDITOR.plugins.clipboard,s=i.editable();i.fire("saveSnapshot"),i.fire("lockSnapshot",{dontUpdate:1}),CKEDITOR.env.ie&&CKEDITOR.env.version<10&&this.fixSplitNodesAfterDrop(e,t,r.dragStartContainerChildCount,r.dragEndContainerChildCount),(a=this.isDropRangeAffectedByDragRange(e,t))||(o=e.createBookmark(!1)),r=t.clone().createBookmark(!1),a&&(o=e.createBookmark(!1)),e=o.startNode,t
15=o.endNode,a=r.startNode,t&&e.getPosition(a)&CKEDITOR.POSITION_PRECEDING&&t.getPosition(a)&CKEDITOR.POSITION_FOLLOWING&&a.insertBefore(e),(e=i.createRange()).moveToBookmark(o),s.extractHtmlFromRange(e,1),(t=i.createRange()).moveToBookmark(r),T(i,{dataTransfer:n,method:"drop",range:t},1),i.fire("unlockSnapshot")},getRangeAtDropPosition:function(e,t){var n=e.data.$,i=n.clientX,o=n.clientY,a=t.getSelection(!0).getRanges()[0],r=t.createRange();if(e.data.testRange)return e.data.testRange;if(document.caretRangeFromPoint&&t.document.$.caretRangeFromPoint(i,o))n=t.document.$.caretRangeFromPoint(i,o),r.setStart(CKEDITOR.dom.node(n.startContainer),n.startOffset),r.collapse(!0);else if(n.rangeParent)r.setStart(CKEDITOR.dom.node(n.rangeParent),n.rangeOffset),r.collapse(!0);else{if(CKEDITOR.env.ie&&8<CKEDITOR.env.version&&a&&t.editable().hasFocus)return a;if(!document.body.createTextRange)return null;t.focus(),n=t.document.getBody().$.createTextRange();try{for(var s=!1,l=0;l<20&&!s;l++){if(!s)try{n.moveToPoint(i,o-l),s=!0}catch(p){}if(!s)try{n.moveToPoint(i,o+l),s=!0}catch(f){}}if(s){var c="cke-temp-"+(new Date).getTime();n.pasteHTML('<span id="'+c+'">\u200b</span>');var d=t.document.getById(c);r.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START),d.remove()}else{var u=t.document.$.elementFromPoint(i,o),h=new CKEDITOR.dom.element(u);if(h.equals(t.editable())||"html"==h.getName())return a&&a.startContainer&&!a.startContainer.equals(t.editable())?a:null;i<h.getClientRect().left?r.setStartAt(h,CKEDITOR.POSITION_AFTER_START):r.setStartAt(h,CKEDITOR.POSITION_BEFORE_END),r.collapse(!0)}}catch(m){return null}}return r},initDragDataTransfer:function(e,t){var n=e.data.$?e.data.$.dataTransfer:null,i=new this.dataTransfer(n,t);"dragstart"===e.name&&i.storeId(),n?this.dragData&&i.id==this.dragData.id?i=this.dragData:this.dragData=i:this.dragData?i=this.dragData:this.dragData=i,e.data.dataTransfer=i},resetDragDataTransfer:function(){this.dragData=null},initPasteDataTransfer:function(e,t){if(this.isCustomCopyCutSupported){if(e&&e.data&&e.data.$){var n=e.data.$.clipboardData,i=new this.dataTransfer(n,t);return"copy"!==e.name&&"cut"!==e.name||i.storeId(),this.copyCutData&&i.id==this.copyCutData.id?(i=this.copyCutData).$=n:this.copyCutData=i,i}return new this.dataTransfer(null,t)}return new this.dataTransfer(CKEDITOR.env.edge&&e&&e.data.$&&e.data.$.clipboardData||null,t)},preventDefaultDropOnElement:function(e){e&&e.on("dragover",o)}},p=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text",CKEDITOR.plugins.clipboard.dataTransfer=function(e,t){e&&(this.$=e),this._={metaRegExp:/^<meta.*?>/i,bodyRegExp:/<body(?:[\s\S]*?)>([\s\S]*)<\/body>/i,fragmentRegExp:/\x3c!--(?:Start|End)Fragment--\x3e/g,data:{},files:[],nativeHtmlCache:"",normalizeType:function(e){return"text"==(e=e.toLowerCase())||"text/plain"==e?"Text":"url"==e?"URL":e}},this._.fallbackDataTransfer=new CKEDITOR.plugins.clipboard.fallbackDataTransfer(this),this.id=this.getData(p),this.id||(this.id="Text"==p?"":"cke-"+CKEDITOR.tools.getUniqueId()),t&&(this.sourceEditor=t,this.setData("text/html",t.getSelectedHtml(1)),"Text"==p||this.getData("text/plain")||this.setData("text/plain",t.getSelection().getSelectedText()))},CKEDITOR.DATA_TRANSFER_INTERNAL=1,CKEDITOR.DATA_TRANSFER_CROSS_EDITORS=2,CKEDITOR.DATA_TRANSFER_EXTERNAL=3,CKEDITOR.plugins.clipboard.dataTransfer.prototype={getData:function(e,t){if(null==(i="text/html"==(e=this._.normalizeType(e))&&t?this._.nativeHtmlCache:this._.data[e])||""===i){if(this._.fallbackDataTransfer.isRequired())i=this._.fallbackDataTransfer.getData(e,t);else try{i=this.$.getData(e)||""}catch(o){i=""}"text/html"!=e||t||(i=this._stripHtml(i))}if("Text"==e&&CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==i.substring(0,7)&&(i=""),"string"==typeof i)var n=i.indexOf("</html>"),i=-1!==n?i.substring(0,n+7):i;return i},setData:function(e,t){if("text/html"==(e=this._.normalizeType(e))?(this._.data[e]=this._stripHtml(t),this._.nativeHtmlCache=t):this._.data[e]=t,CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||"URL"==e||"Text"==e)if("Text"==p&&"Text"==e&&(this.id=t),this._.fallbackDataTransfer.isRequired())this._.fallbackDataTransfer.setData(e,t);else try{this.$.setData(e,t)}catch(n){}},storeId:function(){"Text"!==p&&this.setData(p,this.id)},getTransferType:function(e){return this.sourceEditor?this.sourceEditor==e?CKEDITOR.DATA_TRANSFER_INTERNAL:CKEDITOR.DATA_TRANSFER_CROSS_EDITORS:CKEDITOR.DATA_TRANSFER_EXTERNAL},cacheData:function(){function e(e){e=i._.normalizeType(e);var t=i.getData(e);"text/html"==e&&(i._.nativeHtmlCache=i.getData(e,!0),t=i._stripHtml(t)),t&&(i._.data[e]=t)}if(this.$){var t,n,i=this;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(t=0;t<this.$.types.length;t++)e(this.$.types[t])}else e("Text"),e("URL");if(n=this._getImageFromClipboard(),this.$&&this.$.files||n){if(this._.files=[],this.$.files&&this.$.files.length)for(t=0;t<this.$.files.length;t++)this._.files.push(this.$.files[t]);0===this._.files.length&&n&&this._.files.push(n)}}},getFilesCount:function(){return this._.files.length?this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?1:0},getFile:function(e){return this._.files.length?this._.files[e]:this.$&&this.$.files&&this.$.files.length?this.$.files[e]:0===e?this._getImageFromClipboard():void 0},isEmpty:function(){var e,t={};if(this.getFilesCount())return!1;if(CKEDITOR.tools.array.forEach(CKEDITOR.tools.objectKeys(this._.data),function(e){t[e]=1}),this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var n=0;n<this.$.types.length;n++)t[this.$.types[n]]=1}else t.Text=1,t.URL=1;for(e in"Text"!=p&&(t[p]=0),t)if(t[e]&&""!==this.getData(e))return!1;return!0},_getImageFromClipboard:function(){var e;
15if(this.$&&this.$.items&&this.$.items[0])try{if((e=this.$.items[0].getAsFile())&&e.type)return e}catch(t){}},_stripHtml:function(e){if(e&&e.length){e=e.replace(this._.metaRegExp,"");var t=this._.bodyRegExp.exec(e);t&&t.length&&(e=(e=t[1]).replace(this._.fragmentRegExp,""))}return e}},CKEDITOR.plugins.clipboard.fallbackDataTransfer=function(e){this._dataTransfer=e,this._customDataFallbackType="text/html"},CKEDITOR.plugins.clipboard.fallbackDataTransfer._isCustomMimeTypeSupported=null,CKEDITOR.plugins.clipboard.fallbackDataTransfer._customTypes=[],CKEDITOR.plugins.clipboard.fallbackDataTransfer.prototype={isRequired:function(){var e=CKEDITOR.plugins.clipboard.fallbackDataTransfer,t=this._dataTransfer.$;if(null===e._isCustomMimeTypeSupported){if(!t)return!1;if(e._isCustomMimeTypeSupported=!1,CKEDITOR.env.edge&&17<=CKEDITOR.env.version)return!0;try{t.setData("cke/mimetypetest","cke test value"),e._isCustomMimeTypeSupported="cke test value"===t.getData("cke/mimetypetest"),t.clearData("cke/mimetypetest")}catch(n){}}return!e._isCustomMimeTypeSupported},getData:function(e,t){var n=this._getData(this._customDataFallbackType,!0);if(t)return n;n=this._extractDataComment(n);var i=null;return null!==(i=e===this._customDataFallbackType?n.content:n.data&&n.data[e]?n.data[e]:this._getData(e,!0))?i:""},setData:function(e,t){(o=e===this._customDataFallbackType)&&(t=this._applyDataComment(t,this._getFallbackTypeData()));var n=t,i=this._dataTransfer.$;try{i.setData(e,n),o&&(this._dataTransfer._.nativeHtmlCache=n)}catch(r){if(this._isUnsupportedMimeTypeError(r)){o=CKEDITOR.plugins.clipboard.fallbackDataTransfer,-1===CKEDITOR.tools.indexOf(o._customTypes,e)&&o._customTypes.push(e);var o=this._getFallbackTypeContent(),a=this._getFallbackTypeData();a[e]=n;try{n=this._applyDataComment(o,a),i.setData(this._customDataFallbackType,n),this._dataTransfer._.nativeHtmlCache=n}catch(s){n=""}}}return n},_getData:function(e,t){var n=this._dataTransfer._.data;if(!t&&n[e])return n[e];try{return this._dataTransfer.$.getData(e)}catch(i){return null}},_getFallbackTypeContent:function(){var e=this._dataTransfer._.data[this._customDataFallbackType];return e||(e=this._extractDataComment(this._getData(this._customDataFallbackType,!0)).content),e},_getFallbackTypeData:function(){var e=CKEDITOR.plugins.clipboard.fallbackDataTransfer._customTypes,t=this._extractDataComment(this._getData(this._customDataFallbackType,!0)).data||{},n=this._dataTransfer._.data;return CKEDITOR.tools.array.forEach(e,function(e){void 0!==n[e]?t[e]=n[e]:void 0!==t[e]&&(t[e]=t[e])},this),t},_isUnsupportedMimeTypeError:function(e){return e.message&&-1!==e.message.search(/element not found/gi)},_extractDataComment:function(e){var t,n={data:null,content:e||""};e&&16<e.length&&((t=/\x3c!--cke-data:(.*?)--\x3e/g.exec(e))&&t[1]&&(n.data=JSON.parse(decodeURIComponent(t[1])),n.content=e.replace(t[0],"")));return n},_applyDataComment:function(e,t){var n="";return t&&CKEDITOR.tools.objectKeys(t).length&&(n="<!--cke-data:"+encodeURIComponent(JSON.stringify(t))+"-->"),n+(e&&e.length?e:"")}}}(),CKEDITOR.config.clipboard_notificationDuration=1e4,CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function n(e){var t=this._;t.state!=CKEDITOR.TRISTATE_DISABLED&&(this.createPanel(e),t.on?t.panel.hide():t.panel.showBlock(this._.id,this.document.getById(this._.id),4))}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(e){var t=e.panel||{};delete e.panel,this.base(e),this.document=t.parent&&t.parent.getDocument()||CKEDITOR.document,t.block={attributes:t.attributes},t.toolbarRelated=!0,this.hasArrow="listbox",this.click=n,this._={panelDefinition:t}},statics:{handler:{create:function(e){return new CKEDITOR.ui.panelButton(e)}}},proto:{createPanel:function(t){var n=this._;if(!n.panel){var e=this._.panelDefinition,i=this._.panelDefinition.block,o=e.parent||CKEDITOR.document.getBody(),a=this._.panel=new CKEDITOR.ui.floatPanel(t,o,e),r=(e=a.addBlock(n.id,i),this);a.onShow=function(){r.className&&this.element.addClass(r.className+"_panel"),r.setState(CKEDITOR.TRISTATE_ON),n.on=1,r.editorFocus&&t.focu
15s(),r.onOpen&&r.onOpen()},a.onHide=function(e){r.className&&this.element.getFirst().removeClass(r.className+"_panel"),r.setState(r.modes&&r.modes[t.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),n.on=0,!e&&r.onClose&&r.onClose()},a.onEscape=function(){a.hide(1),r.document.getById(n.id).focus()},this.onBlock&&this.onBlock(a,e),e.onHide=function(){n.on=0,r.setState(CKEDITOR.TRISTATE_OFF)}}}}})},beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_PANELBUTTON,CKEDITOR.ui.panelButton.handler)}}),CKEDITOR.UI_PANELBUTTON="panelbutton",function(){CKEDITOR.plugins.add("panel",{beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}}),CKEDITOR.UI_PANEL="panel",CKEDITOR.ui.panel=function(e,t){t&&CKEDITOR.tools.extend(this,t),CKEDITOR.tools.extend(this,{className:"",css:[]}),this.id=CKEDITOR.tools.getNextId(),this.document=e,this.isFramed=this.forceIFrame||this.css.length,this._={blocks:{}}},CKEDITOR.ui.panel.handler={create:function(e){return new CKEDITOR.ui.panel(e)}};var o=CKEDITOR.addTemplate("panel",'<div lang="{langCode}" id="{id}" dir={dir} class="cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style="z-index:{z-index}" role="presentation">{frame}</div>'),a=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="presentation" frameborder="0" src="{src}"></iframe>'),r=CKEDITOR.addTemplate("panel-frame-inner",'<!DOCTYPE html><html class="cke_panel_container {env}" dir="{dir}" lang="{langCode}"><head>{css}</head><body class="cke_{dir}" style="margin:0;padding:0" onload="{onload}"></body></html>');CKEDITOR.ui.panel.prototype={render:function(e,t){var n={editorId:e.id,id:this.id,langCode:e.langCode,dir:e.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":e.config.baseFloatZIndex+1};if(this.getHolderElement=function(){if(!(t=this._.holder)){if(this.isFramed){var e=(t=this.document.getById(this.id+"_frame")).getParent(),t=t.getFrameDocument();CKEDITOR.env.iOS&&e.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"}),e=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0,this.onLoad&&this.onLoad()},this)),t.write(r.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+e+");"},n))),t.getWindow().$.CKEDITOR=CKEDITOR,t.on("keydown",function(e){var t=e.data.getKeystroke(),n=this.document.getById(this.id).getAttribute("dir");("input"!==e.data.getTarget().getName()||37!==t&&39!==t)&&(this._.onKeyDown&&!1===this._.onKeyDown(t)?"input"===e.data.getTarget().getName()&&32===t||e.data.preventDefault():(27==t||t==("rtl"==n?39:37))&&this.onEscape&&!1===this.onEscape(t)&&e.data.preventDefault())},this),(t=t.getBody()).unselectable(),CKEDITOR.env.air&&CKEDITOR.tools.callFunction(e)}else t=this.document.getById(this.id);this._.holder=t}return t},this.isFramed){var i=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";n.frame=a.output({id:this.id+"_frame",src:i})}return i=o.output(n),t&&t.push(i),i},addBlock:function(e,t){return t=this._.blocks[e]=t instanceof CKEDITOR.ui.panel.block?t:new CKEDITOR.ui.panel.block(this.getHolderElement(),t),this._.currentBlock||this.showBlock(e),t},getBlock:function(e){return this._.blocks[e]},showBlock:function(e){e=this._.blocks[e];var t=this._.currentBlock,n=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");return t&&t.hide(),this._.currentBlock=e,CKEDITOR.fire("ariaWidget",n),e._.focusIndex=-1,this._.onKeyDown=e.onKeyDown&&CKEDITOR.tools.bind(e.onKeyDown,e),e.show(),e},destroy:function(){this.element&&this.element.remove()}},CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(e,t){this.element=e.append(e.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}})),t&&CKEDITOR.tools.extend(this,t),this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]}),this.keys={},this._.focusIndex=-1,this.element.disableContextMenu()},_:{markItem:function(e){-1!=e&&(e=this._.getItems().getItem(this._.focusIndex=e),CKEDITOR.env.webkit&&e.getDocument().getWindow().focus(),e.focus(),this.onMark&&this.onMark(e))},markFirstDisplayed:function(e){for(var t,n,i=function(e){return e.type==CKEDITOR.NODE_ELEMENT&&"none"==e.getStyle("display")},o=this._.getItems(),a=o.count()-1;0<=a;a--)if((t=o.getItem(a)).getAscendant(i)||(n=t,this._.focusIndex=a),"true"==t.getAttribute("aria-selected")){n=t,this._.focusIndex=a;break}n&&(e&&e(),CKEDITOR.env.webkit&&n.getDocument().getWindow().focus(),n.focus(),this.onMark&&this.onMark(n))},getItems:function(){return this.element.find("a,input")}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){this.onHide&&!0===this.onHide.call(this)||this.element.setStyle("display","none")},onKeyDown:function(e,t){switch(o=this.keys[e]){case"next":for(var n,i=this._.focusIndex,o=this._.getItems();n=o.getItem(++i);)if(n.getAttribute("_cke_focus")&&n.$.offsetWidth){this._.focusIndex=i,n.focus(!0);break}return!n&&!t&&(this._.focusIndex=-1,this.onKeyDown(e,1));case"prev":for(i=this._.focusIndex,o=this._.getItems();0<i&&(n=o.getItem(--i));){if(n.getAttribute("_cke_focus")&&n.$.offsetWidth){this._.focusIndex=i,n.focus(!0);break}n=null}return!n&&!t&&(this._.focusIndex=o.count(),this.onKeyDown(e,1));case"click":case"mouseup":return(n=0<=(i=this._.focusIndex)&&this._.getItems().getItem(i))&&(n.$[o]?n.$[o]():n.$["on"+o]()),!1}return!0}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function c(e,t,n,i,o){o=CKEDITOR.tools.genKey(t.getUniqueId(),n.getUniqueId(),e.lang.dir,e.uiColor||"",i.css||"",o||"");var a=r[o];return a||((a=r[o]=new CKEDITOR.ui.panel(t,i)).element=n.append(CKEDITOR.dom.element.createFromHtml(a.render(e),t)),a.element.setStyles({display:"none",position:"absolute"})),a}var r={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(e,t,n,i){function o(){l.hide()}n.forceIFrame=1,
16n.toolbarRelated&&e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(t=CKEDITOR.document.getById("cke_"+e.name));var a=t.getDocument(),r=(i=c(e,a,t,n,i||0)).element,s=r.getFirst(),l=this;r.disableContextMenu(),this.element=r,this._={editor:e,panel:i,parentElement:t,definition:n,document:a,iframe:s,children:[],dir:e.lang.dir,showBlockParams:null,markFirst:void 0===n.markFirst||n.markFirst},e.on("mode",o),e.on("resize",o),a.getWindow().on("resize",function(){this.reposition()},this)},proto:{addBlock:function(e,t){return this._.panel.addBlock(e,t)},addListBlock:function(e,t){return this._.panel.addListBlock(e,t)},getBlock:function(e){return this._.panel.getBlock(e)},showBlock:function(e,t,n,i,o,s){var l=this._.panel,c=l.showBlock(e);this._.showBlockParams=[].slice.call(arguments),this.allowBlur(!1);var a=this._.editor.editable();this._.returnFocus=a.hasFocus?a:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement),this._.hideTimeout=0;var d=this.element,r=(a=this._.iframe,a=CKEDITOR.env.ie&&!CKEDITOR.env.edge?a:new CKEDITOR.dom.window(a.$.contentWindow),d.getDocument()),u=this._.parentElement.getPositionedAncestor(),h=t.getDocumentPosition(r),f=(r=u?u.getDocumentPosition(r):{x:0,y:0},"rtl"==this._.dir),m=h.x+(i||0)-r.x,p=h.y+(o||0)-r.y;!f||1!=n&&4!=n?f||2!=n&&3!=n||(m+=t.$.offsetWidth-1):m+=t.$.offsetWidth,3!=n&&4!=n||(p+=t.$.offsetHeight-1),this._.panel._.offsetParentId=t.getId(),d.setStyles({top:p+"px",left:0,display:""}),d.setOpacity(0),d.getFirst().removeStyle("width"),this._.editor.focusManager.add(a),this._.blurSet||(CKEDITOR.event.useCapture=!0,a.on("blur",function(e){function t(){delete this._.returnFocus,this.hide()}this.allowBlur()&&e.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&this.visible&&!this._.activeChild&&(CKEDITOR.env.iOS?this._.hideTimeout||(this._.hideTimeout=CKEDITOR.tools.setTimeout(t,0,this)):t.call(this))},this),a.on("focus",function(){this._.focused=!0,this.hideChild(),this.allowBlur(!0)},this),CKEDITOR.env.iOS&&(a.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),a.on("touchend",function(){this._.hideTimeout=0,this.focus()},this)),CKEDITOR.event.useCapture=!1,this._.blurSet=1),l.onEscape=CKEDITOR.tools.bind(function(e){if(this.onEscape&&!1===this.onEscape(e))return!1},this),CKEDITOR.tools.setTimeout(function(){var e=CKEDITOR.tools.bind(function(){if((n=d).removeStyle("width"),c.autoSize){var e=c.element.getDocument();e=(CKEDITOR.env.webkit||CKEDITOR.env.edge?c.element:e.getBody()).$.scrollWidth;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<e&&(e+=(n.$.offsetWidth||0)-(n.$.clientWidth||0)+3),n.setStyle("width",e+10+"px"),e=c.element.$.scrollHeight,CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<e&&(e+=(n.$.offsetHeight||0)-(n.$.clientHeight||0)+3),n.setStyle("height",e+"px"),l._.currentBlock.element.setStyle("display","none").removeStyle("display")}else n.removeStyle("height");f&&(m-=d.$.offsetWidth),d.setStyle("left",m+"px");e=l.element.getWindow();var t,n=d.$.getBoundingClientRect(),i=(e=e.getViewPaneSize(),n.width||n.right-n.left),o=n.height||n.bottom-n.top,a=f?n.right:e.width-n.left,r=f?e.width-n.right:n.left;f?a<i&&(m=i<r?m+i:e.width>i?m-n.left:m-n.right+e.width):a<i&&(m=i<r?m-i:e.width>i?m-n.right+e.width:m-n.left),i=n.top,e.height-n.top<o&&(p=o<i?p-o:e.height>o?p-n.bottom+e.height:p-n.top),CKEDITOR.env.ie&&!CKEDITOR.env.edge&&("html"==(e=n=new CKEDITOR.dom.element(d.$.offsetParent)).getName()&&(e=e.getDocument().getBody()),"rtl"==e.getComputedStyle("direction")&&(m=CKEDITOR.env.ie8Compat?m-2*d.getDocument().getDocumentElement().$.scrollLeft:m-(n.$.scrollWidth-n.$.clientWidth))),(t=(n=d.getFirst()).getCustomData("activePanel"))&&t.onHide&&t.onHide.call(this,1),n.setCustomData("activePanel",this),d.setStyles({top:p+"px",left:m+"px"}),d.setOpacity(1),s&&s()},this);l.isLoaded?e():l.onLoad=e,CKEDITOR.tools.setTimeout(function(){var e=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus(),c.element.focus(),CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=e),this.allowBlur(!0),this._.markFirst&&(CKEDITOR.env.ie?CKEDITOR.tools.setTimeout(function(){c.markFirstDisplayed?c.markFirstDisplayed():c._.markFirstDisplayed()},0):c.markFirstDisplayed?c.markFirstDisplayed():c._.markFirstDisplayed()),this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this),this.visible=1,this.onShow&&this.onShow.call(this)},reposition:function(){var e=this._.showBlockParams;this.visible&&this._.showBlockParams&&(this.hide(),this.showBlock.apply(this,e))},focus:function(){if(CKEDITOR.env.webkit){var e=CKEDITOR.document.getActive();e&&!e.equals(this._.iframe)&&e.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var e=this._.iframe.getFrameDocument().getActive();e&&e.is("a")&&(this._.lastFocused=e)},hide:function(e){!this.visible||this.onHide&&!0===this.onHide.call(this)||(this.hideChild(),CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur(),this.element.setStyle("display","none"),this.visible=0,this.element.getFirst().removeCustomData("activePanel"),(e=e&&this._.returnFocus)&&(CKEDITOR.env.webkit&&e.type&&e.getWindow().$.focus(),e.focus()),delete this._.lastFocused,this._.showBlockParams=null,this._.editor.fire("panelHide",this))},allowBlur:function(e){var t=this._.panel;return void 0!==e&&(t.allowBlur=e),t.allowBlur},showAsChild:function(e,t,n,i,o,a){this._.activeChild==e&&e._.panel._.offsetParentId==n.getId()||(this.hideChild(),e.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=e,this._.focused=!1,e.showBlock(t,n,i,o,a),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){e.element.getChild(0).$.style.cssText+=""},100))},hideChild:function(e){var t=this._.activeChild;t&&(delete t.onHide,delete this._.activeChild,t.hide(),e&&this.focus())}}}),CKEDITOR.on("instanceDestroyed",function(){var e,t=CKEDITOR.tools.isEmpty(CKEDITOR.instances);for(e in r){var n=r[e];t?n.destroy():n.element.hide()}t&&(r={})})}(),CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(u){function e(e,a,t,n,i){var r,o=new CKEDITOR.style(f["colorButton_"+a+"Style"]),s=CKEDITOR.tools.getNextId()+"_colorBox";i=i||{},u.ui.add(e,CKEDITOR.UI_PANELBUTTON,{label:t,title:t,modes:{wysiwyg:1},editorFocus:0,toolbar:"colors,"+n,allowedContent:o,requiredContent:o,contentTransformations:i.contentTransformations,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":m.panelTitle}},onBlock:function(e,t){(r=t).autoSize=!0,t.element.addClass("cke_colorblock"),t.element.setHtml(l(e,a,s)),t.element.getDocument().getBody().setStyle("overflow","hidden"),CKEDITOR.ui.fire("ready",this);var n=t.keys,i="rtl"==u.lang.dir;n[i?37:39]="next",n[40]="next",n[9]="next",n[i?39:37]="prev",n[38]="prev",n[CKEDITOR.SH
16IFT+9]="prev",n[32]="click"},refresh:function(){u.activeFilter.check(o)||this.setState(CKEDITOR.TRISTATE_DISABLED)},onOpen:function(){var e=(n=u.getSelection())&&n.getStartElement(),t=u.elementPath(e);if(t){for(e=t.block||t.blockLimit||u.document.getBody();t=e&&e.getComputedStyle("back"==a?"background-color":"color")||"transparent","back"==a&&"transparent"==t&&e&&(e=e.getParent()););if(t&&"transparent"!=t||(t="#ffffff"),!1!==f.colorButton_enableAutomatic&&this._.panel._.iframe.getFrameDocument().getById(s).setStyle("background-color",t),e=n&&n.getRanges()[0]){var n=new CKEDITOR.dom.walker(e),i=e.collapsed?e.startContainer:n.next();for(e="";i;){if(i.type!==CKEDITOR.NODE_ELEMENT&&(i=i.getParent()),i=c(i.getComputedStyle("back"==a?"background-color":"color")),(e=e||i)!==i){e="";break}i=n.next()}for(n=e,e=r._.getItems(),i=0;i<e.count();i++){var o=e.getItem(i);o.removeAttribute("aria-selected"),n&&n==c(o.getAttribute("data-value"))&&o.setAttribute("aria-selected",!0)}}return t}}})}function l(e,t,n){e=[];var i=f.colorButton_colors.split(","),o=f.colorButton_colorsPerRow||6,a=u.plugins.colordialog&&!1!==f.colorButton_enableMore,r=i.length+(a?2:1),s=CKEDITOR.tools.addFunction(function(e,n){function t(e){var t=f["colorButton_"+n+"Style"];u.removeStyle(new CKEDITOR.style(t,{color:"inherit"})),t.childRule="back"==n?function(e){return h(e)}:function(e){return!(e.is("a")||e.getElementsByTag("a").count())||h(e)},u.focus(),e&&u.applyStyle(new CKEDITOR.style(t,{color:e})),u.fire("saveSnapshot")}if(u.focus(),u.fire("saveSnapshot"),"?"!=e)return t(e);u.getColorFromDialog(function(e){if(e)return t(e)})});for(!1!==f.colorButton_enableAutomatic&&e.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',m.auto,'" onclick="CKEDITOR.tools.callFunction(',s,",null,'",t,"');return false;\" href=\"javascript:void('",m.auto,'\')" role="option" aria-posinset="1" aria-setsize="',r,'"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td colspan="'+o+'" align="center"><span class="cke_colorbox" id="',n,'"></span>',m.auto,"</td></tr></table></a>"),e.push('<table role="presentation" cellspacing=0 cellpadding=0 width="100%">'),n=0;n<i.length;n++){0==n%o&&e.push("</tr><tr>");var l=i[n].split("/"),c=l[0],d=l[1]||c;l[1]?l=c:(c="#"+c.replace(/^(.)(.)(.)$/,"$1$1$2$2$3$3"),l=u.lang.colorbutton.colors[d]||d),e.push('<td><a class="cke_colorbox" _cke_focus=1 hidefocus=true title="',l,'" onclick="CKEDITOR.tools.callFunction(',s,",'",c,"','",t,"'); return false;\" href=\"javascript:void('",l,'\')" data-value="'+d+'" role="option" aria-posinset="',n+2,'" aria-setsize="',r,'"><span class="cke_colorbox" style="background-color:#',d,'"></span></a></td>')}return a&&e.push('</tr><tr><td colspan="'+o+'" align="center"><a class="cke_colormore" _cke_focus=1 hidefocus=true title="',m.more,'" onclick="CKEDITOR.tools.callFunction(',s,",'?','",t,"');return false;\" href=\"javascript:void('",m.more,"')\"",' role="option" aria-posinset="',r,'" aria-setsize="',r,'">',m.more,"</a></td>"),e.push("</tr></table>"),e.join("")}function h(e){return"false"==e.getAttribute("contentEditable")||e.getAttribute("data-nostyle")}function c(e){return CKEDITOR.tools.normalizeHex("#"+CKEDITOR.tools.convertRgbToHex(e||"")).replace(/#/g,"")}var f=u.config,m=u.lang.colorbutton;if(!CKEDITOR.env.hc){e("TextColor","fore",m.textColorTitle,10,{contentTransformations:[[{element:"font",check:"span{color}",left:function(e){return!!e.attributes.color},right:function(e){e.name="span",e.attributes.color&&(e.styles.color=e.attributes.color),delete e.attributes.color}}]]});var t={}
16,n=u.config.colorButton_normalizeBackground;(void 0===n||n)&&(t.contentTransformations=[[{element:"span",left:function(e){var t=CKEDITOR.tools;return!("span"!=e.name||!e.styles||!e.styles.background)&&((e=t.style.parse.background(e.styles.background)).color&&1===t.objectKeys(e).length)},right:function(e){var t=new CKEDITOR.style(u.config.colorButton_backStyle,{color:e.styles.background}).getDefinition();return e.name=t.element,e.styles=t.styles,e.attributes=t.attributes||{},e}}]]),e("BGColor","back",m.bgColorTitle,20,t)}}}),CKEDITOR.config.colorButton_colors="1ABC9C,2ECC71,3498DB,9B59B6,4E5F70,F1C40F,16A085,27AE60,2980B9,8E44AD,2C3E50,F39C12,E67E22,E74C3C,ECF0F1,95A5A6,DDD,FFF,D35400,C0392B,BDC3C7,7F8C8D,999,000",CKEDITOR.config.colorButton_foreStyle={element:"span",styles:{color:"#(color)"},overrides:[{element:"font",attributes:{color:null}}]},CKEDITOR.config.colorButton_backStyle={element:"span",styles:{"background-color":"#(color)"}},CKEDITOR.plugins.colordialog={requires:"dialog",init:function(e){var t=new CKEDITOR.dialogCommand("colordialog");t.editorFocus=!1,e.addCommand("colordialog",t),CKEDITOR.dialog.add("colordialog",this.path+"dialogs/colordialog.js"),e.getColorFromDialog=function(t,n){var i,o,a;i=function(e){o(this),e="ok"==e.name?this.getValueOf("picker","selectedColor"):null,/^[0-9a-f]{3}([0-9a-f]{3})?$/i.test(e)&&(e="#"+e),t.call(n,e)},o=function(e){e.removeListener("ok",i),e.removeListener("cancel",i)},a=function(e){e.on("ok",i),e.on("cancel",i)},e.execCommand("colordialog"),e._.storedDialogs&&e._.storedDialogs.colordialog?a(e._.storedDialogs.colordialog):CKEDITOR.on("dialogDefinition",function(e){if("colordialog"==e.data.name){var t=e.data.definition;e.removeListener(),t.onLoad=CKEDITOR.tools.override(t.onLoad,function(e){return function(){a(this),"function"==typeof(t.onLoad=e)&&e.call(this)}})}})}}},CKEDITOR.plugins.add("colordialog",CKEDITOR.plugins.colordialog),function(){CKEDITOR.plugins.add("templates",{requires:"dialog",init:function(e){CKEDITOR.dialog.add("templates",CKEDITOR.getUrl(this.path+"dialogs/templates.js")),e.addCommand("templates",new CKEDITOR.dialogCommand("templates")),e.ui.addButton&&e.ui.addButton("Templates",{label:e.lang.templates.button,command:"templates",toolbar:"doctools,10"})}});var n={},a={};CKEDITOR.addTemplates=function(e,t){n[e]=t},CKEDITOR.getTemplates=function(e){return n[e]},CKEDITOR.loadTemplates=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++)a[e[i]]||(n.push(e[i]),a[e[i]]=1);n.length?CKEDITOR.scriptLoader.load(n,t):setTimeout(t,0)}}(),CKEDITOR.config.templates_files=[CKEDITOR.getUrl("plugins/templates/templates/default.js")],CKEDITOR.config.templates_replaceContent=!0,CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(e){for(var t=e.config.menu_groups.split(","),n=e._.menuGroups={},i=e._.menuItems={},o=0;o<t.length;o++)n[t[o]]=o+1;e.addMenuGroup=function(e,t){n[e]=t||100},e.addMenuItem=function(e,t){n[t.group]&&(i[e]=new CKEDITOR.menuItem(this,e,t))},e.addMenuItems=function(e){for(var t in e)this.addMenuItem(t,e[t])},e.getMenuItem=function(e){return i[e]},e.removeMenuItem=function(e){delete i[e]}}}),function(){function f(e){e.sort(function(e,t){return e.group<t.group?-1:e.group>t.group?1:e.order<t.order?-1:e.order>t.order?1:0})}var e='<span class="cke_menuitem"><a id="{id}" class="cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href="{href}" title="{title}" tabindex="-1" _cke_focus=1 hidefocus="true" role="{role}" aria-label="{label}" aria-describedby="{id}_description" aria-haspopup="{hasPopup}" aria-disabled="{disabled}" {ariaChecked} draggable="false"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;" ondragstart="return false;"');e=e+' onmouseover="CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout="CKEDITOR.tools.callFunction({moveOutFn},{index});" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},{index}); return false;">';var m=CKEDITOR.addTemplate("menuItem",e+'<span class="cke_menubutton_inner"><span class="cke_menubutton_icon"><span class="cke_button_icon cke_button__{iconName}_icon" style="{iconStyle}"></span></span><span class="cke_menubutton_label">{label}</span>{shortcutHtml}{arrowHtml}</span></a><span id="{id}_description" class="cke_voice_label" aria-hidden="false">{ariaShortcut}</span></span>'),p=CKEDITOR.addTemplate("menuArrow",'<span class="cke_menuarrow"><span>{label}</span></span>'),g=CKEDITOR.addTemplate("menuShortcut",'<span class="cke_menubutton_label cke_menubutton_shortcut">{shortcut}</span>');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(e,t){t=this._.definition=t||{},this.id=CKEDITOR.tools.getNextId(),this.editor=e,this.items=[],this._.listeners=[],this._.level=t.level||1;var n=CKEDITOR.tools.extend({},t.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),i=n.block.attributes=n.attributes||{};!i.role&&(i.role="menu"),this._.panelDefinition=n},_:{onShow:function(){var e=this.editor.getSelection(),t=e&&e.getStartElement(),n=this.editor.elementPath(),i=this._.listeners;this.removeAll();for(var o=0;o<i.length;o++){var a=i[o](t,e,n);if(a)for(var r in a){var s=this.editor.getMenuItem(r);!s||s.command&&!this.editor.getCommand(s.command).state||(s.state=a[r],this.add(s))}}},onClick:function(e){this.hide(),e.onClick?e.onClick():e.command&&this.editor.execCommand(e.command)},onEscape:function(e){var t=this.parent;return t?t._.panel.hideChild(1):27==e&&this.hide(1),!1},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(e){var t=this._.subMenu,n=this.items[e];if(n=n.getItems&&n.getItems()){for(var i in t?t.removeAll():((t=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({}
16,this._.definition,{level:this._.level+1},!0))).parent=this,t._.onClick=CKEDITOR.tools.bind(this._.onClick,this)),n){var o=this.editor.getMenuItem(i);o&&(o.state=n[i],t.add(o))}var a=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+String(e));setTimeout(function(){t.show(a,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(e){e.order||(e.order=this.items.length),this.items.push(e)},removeAll:function(){this.items=[]},show:function(e,t,n,i){if(this.parent||(this._.onShow(),this.items.length)){t=t||("rtl"==this.editor.lang.dir?2:1);var o=this.items,a=this.editor,r=this._.panel,s=this._.element;if(!r)(r=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level)).onEscape=CKEDITOR.tools.bind(function(e){if(!1===this._.onEscape(e))return!1},this),r.onShow=function(){r._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")},r.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this),(s=r.addBlock(this.id,this._.panelDefinition.block)).autoSize=!0,(l=s.keys)[40]="next",l[9]="next",l[38]="prev",l[CKEDITOR.SH
16IFT+9]="prev",l["rtl"==a.lang.dir?37:39]=CKEDITOR.env.ie?"mouseup":"click",l[32]=CKEDITOR.env.ie?"mouseup":"click",CKEDITOR.env.ie&&(l[13]="mouseup"),(l=(s=this._.element=s.element).getDocument()).getBody().setStyle("overflow","hidden"),l.getElementsByTag("html").getItem(0).setStyle("overflow","hidden"),this._.itemOverFn=CKEDITOR.tools.addFunction(function(e){clearTimeout(this._.showSubTimeout),this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,a.config.menu_subMenuDelay||400,this,[e])},this),this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},this),this._.itemClickFn=CKEDITOR.tools.addFunction(function(e){var t=this.items[e];t.state==CKEDITOR.TRISTATE_DISABLED?this.hide(1):t.getItems?this._.showSubMenu(e):this._.onClick(t)},this);f(o);for(var l=['<div class="cke_menu'+((l=a.elementPath())&&l.direction()!=a.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],c=o.length,d=c&&o[0].group,u=0;u<c;u++){var h=o[u];d!=h.group&&(l.push('<div class="cke_menuseparator" role="separator"></div>'),d=h.group),h.render(this,u,l)}l.push("</div>"),s.setHtml(l.join("")),CKEDITOR.ui.fire("ready",this),this.parent?this.parent._.panel.showAsChild(r,this.id,e,t,n,i):r.showBlock(this.id,e,t,n,i),a.fire("menuShow",[r])}},addListener:function(e){this._.listeners.push(e)},hide:function(e){this._.onHide&&this._.onHide(),this._.panel&&this._.panel.hide(e)},findItemByCommandName:function(t){var e=CKEDITOR.tools.array.filter(this.items,function(e){return t===e.command});return e.length?{item:e=e[0],element:this._.element.findOne("."+e.className)}:null}}}),CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(e,t,n){CKEDITOR.tools.extend(this,n,{order:0,className:"cke_menubutton__"+t}),this.group=e._.menuGroups[this.group],this.editor=e,this.name=t},proto:{render:function(e,t,n){var i,o,a=e.id+String(t),r="undefined"==typeof this.state?CKEDITOR.TRISTATE_OFF:this.state,s="",l=this.editor,c=r==CKEDITOR.TRISTATE_ON?"on":r==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";this.role in{menuitemcheckbox:1,menuitemradio:1}&&(s=' aria-checked="'+(r==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var d=this.getItems,u="&#"+("rtl"==this.editor.lang.dir?"9668":"9658")+";",h=this.name;this.icon&&!/\./.test(this.icon)&&(h=this.icon),this.command&&(i=l.getCommand(this.command),(i=l.getCommandKeystroke(i))&&(o=CKEDITOR.tools.keystrokeToString(l.lang.common.keyboard,i))),e={id:a,name:this.name,iconName:h,label:this.label,cls:this.className||"",state:c,hasPopup:d?"true":"false",disabled:r==CKEDITOR.TRISTATE_DISABLED,title:this.label+(o?" ("+o.display+")":""),ariaShortcut:o?l.lang.common.keyboardShortcut+" "+o.aria:"",href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:e._.itemOverFn,moveOutFn:e._.itemOutFn,clickFn:e._.itemClickFn,index:t,iconStyle:CKEDITOR.skin.getIconStyle(h,"rtl"==this.editor.lang.dir,h==this.icon?null:this.icon,this.iconOffset),shortcutHtml:o?g.output({shortcut:o.display}):"",arrowHtml:d?p.output({label:u}):"",role:this.role?this.role:"menuitem",ariaChecked:s},m.output(e,n)}}})}(),CKEDITOR.config.menu_groups="clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div",CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(e){this.base.call(this,e,{panel:{css:e.config.contextmenu_contentsCss,className:"cke_menu_panel",attributes:{"aria-label":e.lang.contextmenu.options}}})},proto:{addTarget:function(e,r){function t(){l=!1}var s,l;if(e.on("contextmenu",function(e){e=e.data;var t=CKEDITOR.env.webkit?s:CKEDITOR.env.mac?e.$.metaKey:e.$.ctrlKey;if(!(r&&t||(e.preventDefault(),l))){if(CKEDITOR.env.mac&&CKEDITOR.env.webkit){t=this.editor;(n=new CKEDITOR.dom.elementPath(e.getTarget(),t.editable()).contains(function(e){return e.hasAttribute("contenteditable")},!0))&&"false"==n.getAttribute("contenteditable")&&t.getSelection().fake(n)}var n=e.getTarget().getDocument(),i=e.getTarget().getDocument().getDocumentElement(),o=(t=!n.equals(CKEDITOR.document),n=n.getWindow().getScrollPosition(),t?e.$.clientX:e.$.pageX||n.x+e.$.clientX),a=t?e.$.clientY:e.$.pageY||n.y+e.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(i,null,o,a)},CKEDITOR.env.ie?200:0,this)}},this),CKEDITOR.env.webkit){var n=function(){s=0};
16e.on("keydown",function(e){s=CKEDITOR.env.mac?e.data.$.metaKey:e.data.$.ctrlKey}),e.on("keyup",n),e.on("contextmenu",n)}CKEDITOR.env.gecko&&!CKEDITOR.env.mac&&(e.on("keydown",function(e){e.data.$.shiftKey&&121===e.data.$.keyCode&&(l=!0)},null,null,0),e.on("keyup",t),e.on("contextmenu",t))},open:function(e,t,n,i){!1!==this.editor.config.enableContextMenu&&this.editor.getSelection().getType()!==CKEDITOR.SELECTION_NONE&&(this.editor.focus(),e=e||CKEDITOR.document.getDocumentElement(),this.editor.selectionChange(1),this.show(e,t,n,i))}}})},beforeInit:function(e){var t=e.contextMenu=new CKEDITOR.plugins.contextMenu(e);e.on("contentDom",function(){t.addTarget(e.editable(),!1!==e.config.browserContextMenuOnCtrl)}),e.addCommand("contextMenu",{exec:function(e){var t,n=0,i=0;(t=(t=(t=e.getSelection().getRanges())[t.length-1].getClientRects(e.editable().isInline()))[t.length-1])&&(n=t["rtl"===e.lang.dir?"left":"right"],i=t.bottom),e.contextMenu.open(e.document.getBody().getParent(),null,n,i)}}),e.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu"),e.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),function(){function s(e,t,n,i){var o=new CKEDITOR.dom.walker(e);if(!(e=e.startContainer.getAscendant(t,!0)||e.endContainer.getAscendant(t,!0))||(n(e),!i))for(;(e=o.next())&&(!(e=e.getAscendant(t,!0))||(n(e),!i)););}function l(t,e){var n={ul:"ol",ol:"ul"};return-1!==h(e,function(e){return e.element===t||e.element===n[t]})}function e(e){this.styles=null,this.sticky=!1,this.editor=e,this.filter=new CKEDITOR.filter(e,e.config.copyFormatting_allowRules),!0===e.config.copyFormatting_allowRules&&(this.filter.disabled=!0),e.config.copyFormatting_disallowRules&&this.filter.disallow(e.config.copyFormatting_disallowRules)}var h=CKEDITOR.tools.indexOf,i=CKEDITOR.tools.getMouseButton,t=!1;CKEDITOR.plugins.add("copyformatting",{lang:"az,de,en,it,ja,nb,nl,oc,pl,pt-br,ru,sv,tr,zh,zh-cn",icons:"copyformatting",hidpi:!0,init:function(r){var s=CKEDITOR.plugins.copyformatting;s._addScreenReaderContainer(),t||(CKEDITOR.document.appendStyleSheet(this.path+"styles/copyformatting.css"),t=!0),r.addContentsCss&&r.addContentsCss(this.path+"styles/copyformatting.css"),r.copyFormatting=new s.state(r),r.addCommand("copyFormatting",s.commands.copyFormatting),r.addCommand("applyFormatting",s.commands.applyFormatting),r.ui.addButton("CopyFormatting",{label:r.lang.copyformatting.label,command:"copyFormatting",toolbar:"cleanup,0"}),r.on("contentDom",function(){var n=r.editable(),e=n.isInline()?n:r.document,t=r.ui.get("CopyFormatting");n.attachListener(e,"mouseup",function(e){i(e)===CKEDITOR.MOUSE_BUTTON_LEFT&&r.execCommand("applyFormatting")}),n.attachListener(CKEDITOR.document,"mouseup",function(e){var t=r.getCommand("copyFormatting");i(e)!==CKEDITOR.MOUSE_BUTTON_LEFT||t.state!==CKEDITOR.TRISTATE_ON||n.contains(e.data.getTarget())||r.execCommand("copyFormatting")}),t&&(e=CKEDITOR.document.getById(t._.id),n.attachListener(e,"dblclick",function(){r.execCommand("copyFormatting",{sticky:!0})}),n.attachListener(e,"mouseup",function(e){e.data.stopPropagation()}))}),r.config.copyFormatting_keystrokeCopy&&r.setKeystroke(r.config.copyFormatting_keystrokeCopy,"copyFormatting"),r.on("key",function(e){var t=r.getCommand("copyFormatting");(e=e.data.domEvent).getKeystroke&&27===e.getKeystroke()&&t.state===CKEDITOR.TRISTATE_ON&&r.execCommand("copyFormatting")}),r.copyFormatting.on("extractFormatting",function(e){var t=e.data.element;return t.contains(r.editable())||t.equals(r.editable())?e.cancel():(t=s._convertElementToStyleDef(t),r.copyFormatting.filter.check(new CKEDITOR.style(t),!0,!0)?void(e.data.styleDef=t):e.cancel())}),r.copyFormatting.on("applyFormatting",function(e){if(!e.data.preventFormatStripping){var t,n,i=e.data.range,o=s._extractStylesFromRange(r,i),a=s._determineContext(i);if(r.copyFormatting._isContextAllowed(a))for(n=0;n<o.length;n++)a=o[n],t=i.createBookmark(),-1===h(s.preservedElements,a.element)?CKEDITOR.env.webkit&&!CKEDITOR.env.chrome?o[n].removeFromRange(e.data.range,e.editor):o[n].remove(e.editor):l(a.element,e.data.styles)&&s._removeStylesFromElementInRange(i,a.element),i.moveToBookmark(t)}}),r.copyFormatting.on("applyFormatting",function(e){var t=CKEDITOR.plugins.copyformatting,n=t._determineContext(e.data.range);"list"===n&&r.copyFormatting._isContextAllowed("list")?t._applyStylesToListContext(e.editor,e.data.range,e.data.styles):"table"===n&&r.copyFormatting._isContextAllowed("table")?t._applyStylesToTableContext(e.editor,e.data.range,e.data.styles):r.copyFormatting._isContextAllowed("text")&&t._applyStylesToTextContext(e.editor,e.data.range,e.data.styles)},null,null,999)}}),e.prototype._isContextAllowed=function(e){var t=this.editor.config.copyFormatting_allowedContexts;return!0===t||-1!==h(t,e)},CKEDITOR.event.implementOn(e.prototype),CKEDITOR.plugins.copyformatting={state:e,inlineBoundary:"h1 h2 h3 h4 h5 h6 p div".split(" "),excludedAttributes:["id","style","href","data-cke-saved-href","dir"],elementsForInlineTransform:["li"],excludedElementsFromInlineTransform:["table","thead","tbody","ul","ol"],excludedAttributesFromInlineTransform:["value","type"],preservedElements:"ul ol li td th tr thead tbody table".split(" "),breakOnElements:["ul","ol","table"],_initialKeystrokePasteCommand:null,commands:{copyFormatting:{exec:function(e,t){var n=CKEDITOR.plugins.copyformatting,i=e.copyFormatting,o=!!t&&"keystrokeHandler"==t.from,a=!!t&&(t.sticky||o),r=n._getCursorContainer(e),s=CKEDITOR.document.getDocumentElement();if(this.state===CKEDITOR.TRISTATE_ON)return i.styles=null,i.sticky=!1,r.removeClass("cke_copyformatting_active"),s.removeClass("cke_copyformatting_disabled"),s.removeClass("cke_copyformatting_tableresize_cursor"),n._putScreenReaderMessage(e,"canceled"),n._detachPasteKeystrokeHandler(e),this.setState(CKEDITOR.TRISTATE_OFF);i.styles=n._extractStylesFromElement(e,e.elementPath().lastElement),this.setState(CKEDITOR.TRISTATE_ON),o||(r.addClass("cke_copyformatting_active"),s.addClass("cke_copyformatting_tableresize_cursor"),e.config.copyFormatting_outerCursor&&s.addClass("cke_copyformatting_disabled")),i.sticky=a,n._putScreenReaderMessage(e,"copied"),n._attachPasteKeystrokeHandler(e)}},applyFormatting:{editorFocus:!(CKEDITOR.env.ie&&!CKEDITOR.env.edge),exec:function(e,t){var n=e.getCommand("copyFormatting"),i=!!t&&"keystrokeHandler"==t.from,o=CKEDITOR.plugins.copyformatting,a=e.copyFormatting,r=o._getCursorContainer(e),s=CKEDITOR.document.getDocumentElement();if(i||n.state===CKEDITOR.TRISTATE_ON){if(i&&!a.styles)return o._putScreenReaderMessage(e,"failed"),o._detachPasteKeystrokeHandler(e),!1;i=o._applyFormat(e,a.styles),a.sticky||(a.styles=null,r.removeClass("cke_copyformatting_active"),s.removeClass("cke_copyformatting_disabled"),s.removeClass("cke_copyformatting_tableresize_cursor"),n.setState(CKEDITOR.TRISTATE_OFF),o._detachPasteKeystrokeHandler(e)),o._putScreenReaderMessage(e,i?"applied":"canceled")}}}},_getCursorContainer:function(e){return e.elementMode===CKEDITOR.ELEMENT_MODE_INLINE?e.editable():e.editable().getParent()},_convertElementToStyleDef:function(e){var t=CKEDITOR.tools,n=e.getAttributes(CKEDITOR.plugins.copyformatting.excludedAttributes);t=t.parseCssText(e.getAttribute("style"),!0,!0);return{element:e.getName(),type:CKEDITOR.STYLE_INLINE,attributes:n,styles:t}},_extractStylesFromElement:function(e,t){var n={},i=[];do{if(t.type===CKEDITOR.NODE_ELEMENT&&!t.hasAttribute("data-cke-bookmark")&&(n.element=t,e.copyFormatting.fire("extractFormatting",n,e)&&n.styleDef&&i.push(new CKEDITOR.style(n.styleDef)),t.getName&&-1!==h(CKEDITOR.plugins.copyformatting.breakOnElements,t.getName())))break}while((t=t.getParent())&&t.type===CKEDITOR.NODE_ELEMENT);return i},_extractStylesFromRange:function(e,t){for(var n,i=[],o=new CKEDITOR.dom.walker(t);n=o.next();)i=i.concat(CKEDITOR.plugins.copyformatting._extractStylesFromElement(e,n));return i},_removeStylesFromElementInRange:function(e,t){for(var n,i=-1!==h(["ol","ul","table"],t),o=new CKEDITOR.dom.walker(e);
16(n=o.next())&&(!(n=n.getAscendant(t,!0))||(n.removeAttributes(n.getAttributes()),!i)););},_getSelectedWordOffset:function(e){function c(e,t){return e[t?"getPrevious":"getNext"](function(e){return e.type!==CKEDITOR.NODE_COMMENT})}function d(e){return e.type==CKEDITOR.NODE_ELEMENT?(e=e.getHtml().replace(/<span.*?>&nbsp;<\/span>/g,"")).replace(/<.*?>/g,""):e.getText()}function u(e,t){var n,i,o=e,a=/\s/g,r="p br ol ul li td th div caption body".split(" "),s=!1,l=!1;do{for(n=c(o,t);!n&&o.getParent();){if(o=o.getParent(),-1!==h(r,o.getName())){l=s=!0;break}n=c(o,t)}if(n&&n.getName&&-1!==h(r,n.getName())){s=!0;break}o=n}while(o&&o.getStyle&&("none"==o.getStyle("display")||!o.getText()));for(o||(o=e);o.type!==CKEDITOR.NODE_TEXT;)o=!s||t||l?o.getChild(0):o.getChild(o.getChildCount()-1);for(r=d(o);null!=(l=a.exec(r))&&(i=l.index,t););if("number"!=typeof i&&!s)return u(o,t);if(s)t?i=0:i=(l=(a=/([\.\b]*$)/).exec(r))?l.index:r.length;else if(t&&(i+=1)>r.length)return u(o);return{node:o,offset:i}}var t,n,i,o,a,r=/\b\w+\b/gi;for(t=d(i=o=a=e.startContainer);null!=(n=r.exec(t));)if(n.index+n[0].length>=e.startOffset)return e=n.index,r=n.index+n[0].length,0===n.index&&(o=(n=u(i,!0)).node,e=n.offset),r>=t.length&&(a=(t=u(i)).node,r=t.offset),{startNode:o,startOffset:e,endNode:a,endOffset:r};return null},_filterStyles:function(e){var t,n,i=CKEDITOR.tools.isEmpty,o=[];for(n=0;n<e.length;n++)t=e[n]._.definition,-1!==CKEDITOR.tools.indexOf(CKEDITOR.plugins.copyformatting.inlineBoundary,t.element)&&(t.element=e[n].element="span"),"span"===t.element&&i(t.attributes)&&i(t.styles)||o.push(e[n]);return o},_determineContext:function(i){function e(e){var t,n=new CKEDITOR.dom.walker(i);if(i.startContainer.getAscendant(e,!0)||i.endContainer.getAscendant(e,!0))return!0;for(;t=n.next();)if(t.getAscendant(e,!0))return!0}return e({ul:1,ol:1})?"list":e("table")?"table":"text"},_applyStylesToTextContext:function(e,t,n){var i,o,a=CKEDITOR.plugins.copyformatting,r=a.excludedAttributesFromInlineTransform;for(CKEDITOR.env.webkit&&!CKEDITOR.env.chrome&&e.getSelection().selectRanges([t]),i=0;i<n.length;i++)if(t=n[i],-1===h(a.excludedElementsFromInlineTransform,t.element)){if(-1!==h(a.elementsForInlineTransform,t.element))for(t.element=t._.definition.element="span",o=0;o<r.length;o++)t._.definition.attributes[r[o]]&&delete t._.definition.attributes[r[o]];t.apply(e)}},_applyStylesToListContext:function(e,t,n){var i,o,a;for(a=0;a<n.length;a++)i=n[a],o=t.createBookmark(),"ol"===i.element||"ul"===i.element?s(t,{ul:1,ol:1},function(e){var t=i;e.getName()!==t.element&&e.renameNode(t.element),t.applyToObject(e)},!0):"li"===i.element?s(t,"li",function(e){i.applyToObject(e)}):CKEDITOR.plugins.copyformatting._applyStylesToTextContext(e,t,[i]),t.moveToBookmark(o)},_applyStylesToTableContext:function(e,t,n){function i(e,t){e.getName()!==t.element&&((t=t.getDefinition()).element=e.getName(),t=new CKEDITOR.style(t)),
17t.applyToObject(e)}var o,a,r;for(r=0;r<n.length;r++)o=n[r],a=t.createBookmark(),-1!==h(["table","tr"],o.element)?s(t,o.element,function(e){o.applyToObject(e)}):-1!==h(["td","th"],o.element)?s(t,{td:1,th:1},function(e){i(e,o)}):-1!==h(["thead","tbody"],o.element)?s(t,{thead:1,tbody:1},function(e){i(e,o)}):CKEDITOR.plugins.copyformatting._applyStylesToTextContext(e,t,[o]),t.moveToBookmark(a)},_applyFormat:function(e,t){var n,i,o=e.getSelection().getRanges()[0],a=CKEDITOR.plugins.copyformatting;if(!o)return!1;if(o.collapsed){if(i=e.getSelection().createBookmarks(),!(n=a._getSelectedWordOffset(o)))return;(o=e.createRange()).setStart(n.startNode,n.startOffset),o.setEnd(n.endNode,n.endOffset),o.select()}return t=a._filterStyles(t),!!e.copyFormatting.fire("applyFormatting",{styles:t,range:o,preventFormatStripping:!1},e)&&(i&&e.getSelection().selectBookmarks(i),!0)},_putScreenReaderMessage:function(e,t){var n=this._getScreenReaderContainer();n&&n.setText(e.lang.copyformatting.notification[t])},_addScreenReaderContainer:function(){return this._getScreenReaderContainer()?this._getScreenReaderContainer():CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?void 0:CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml('<div class="cke_screen_reader_only cke_copyformatting_notification"><div aria-live="polite"></div></div>')).getChild(0)},_getScreenReaderContainer:function(){if(!CKEDITOR.env.ie6Compat&&!CKEDITOR.env.ie7Compat)return CKEDITOR.document.getBody().findOne(".cke_copyformatting_notification div[aria-live]")},_attachPasteKeystrokeHandler:function(e){var t=e.config.copyFormatting_keystrokePaste;t&&(this._initialKeystrokePasteCommand=e.keystrokeHandler.keystrokes[t],e.setKeystroke(t,"applyFormatting"))},_detachPasteKeystrokeHandler:function(e){var t=e.config.copyFormatting_keystrokePaste;t&&e.setKeystroke(t,this._initialKeystrokePasteCommand||!1)}},CKEDITOR.config.copyFormatting_outerCursor=!0,CKEDITOR.config.copyFormatting_allowRules="b s u i em strong span p div td th ol ul li(*)[*]{*}",CKEDITOR.config.copyFormatting_disallowRules="*[data-cke-widget*,data-widget*,data-cke-realelement](cke_widget*)",CKEDITOR.config.copyFormatting_allowedContexts=!0,CKEDITOR.config.copyFormatting_keystrokeCopy=CKEDITOR.CTRL+CKEDITOR.SH
17IFT+67,CKEDITOR.config.copyFormatting_keystrokePaste=CKEDITOR.CTRL+CKEDITOR.SHIFT+86}(),CKEDITOR.plugins.add("div",{requires:"dialog",init:function(t){if(!t.blockless){var e=t.lang.div,n="div(*)";CKEDITOR.dialog.isTabEnabled(t,"editdiv","advanced")&&(n+=";div[dir,id,lang,title]{*}"),t.addCommand("creatediv",new CKEDITOR.dialogCommand("creatediv",{allowedContent:n,requiredContent:"div",contextSensitive:!0,contentTransformations:[["div: alignmentToStyle"]],refresh:function(e,t){this.setState("div"in(e.config.div_wrapTable?t.root:t.blockLimit).getDtd()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})),t.addCommand("editdiv",new CKEDITOR.dialogCommand("editdiv",{requiredContent:"div"})),t.addCommand("removediv",{requiredContent:"div",exec:function(t){function e(e){(e=CKEDITOR.plugins.div.getSurroundDiv(t,e))&&!e.data("cke-div-added")&&(r.push(e),e.data("cke-div-added"))}for(var n,i=t.getSelection(),o=i&&i.getRanges(),a=i.createBookmarks(),r=[],s=0;s<o.length;s++)(n=o[s]).collapsed?e(i.getStartElement()):((n=new CKEDITOR.dom.walker(n)).evaluator=e,n.lastForward());for(s=0;s<r.length;s++)r[s].remove(!0);i.selectBookmarks(a)}}),t.ui.addButton&&t.ui.addButton("CreateDiv",{label:e.toolbar,command:"creatediv",toolbar:"blocks,50"}),t.addMenuItems&&(t.addMenuItems({editdiv:{label:e.edit,command:"editdiv",group:"div",order:1},removediv:{label:e.remove,command:"removediv",group:"div",order:5}}),t.contextMenu&&t.contextMenu.addListener(function(e){return!e||e.isReadOnly()?null:CKEDITOR.plugins.div.getSurroundDiv(t)?{editdiv:CKEDITOR.TRISTATE_OFF,removediv:CKEDITOR.TRISTATE_OFF}:null})),CKEDITOR.dialog.add("creatediv",this.path+"dialogs/div.js"),CKEDITOR.dialog.add("editdiv",this.path+"dialogs/div.js")}}}),CKEDITOR.plugins.div={getSurroundDiv:function(e,t){var n=e.elementPath(t);return e.elementPath(n.blockLimit).contains(function(e){return e.is("div")&&!e.isReadOnly()},1)}},CKEDITOR.plugins.add("resize",{init:function(o){function t(e){var t=l.width,n=l.height,i=t+(e.data.$.screenX-s.x)*("rtl"==r?-1:1);e=n+(e.data.$.screenY-s.y),d&&(t=Math.max(a.resize_minWidth,Math.min(i,a.resize_maxWidth))),u&&(n=Math.max(a.resize_minHeight,Math.min(e,a.resize_maxHeight))),o.resize(d?t:null,n)}function n(){CKEDITOR.document.removeListener("mousemove",t),CKEDITOR.document.removeListener("mouseup",n),o.document&&(o.document.removeListener("mousemove",t),o.document.removeListener("mouseup",n))}var a=o.config,i=o.ui.spaceId("resizer"),r=o.element?o.element.getDirection(1):"ltr";if(!a.resize_dir&&(a.resize_dir="vertical"),void 0===a.resize_maxWidth&&(a.resize_maxWidth=3e3),void 0===a.resize_maxHeight&&(a.resize_maxHeight=3e3),void 0===a.resize_minWidth&&(a.resize_minWidth=750),void 0===a.resize_minHeight&&(a.resize_minHeight=250),!1!==a.resize_enabled){var s,l,c=null,d=("both"==a.resize_dir||"horizontal"==a.resize_dir)&&a.resize_minWidth!=a.resize_maxWidth,u=("both"==a.resize_dir||"vertical"==a.resize_dir)&&a.resize_minHeight!=a.resize_maxHeight,h=CKEDITOR.tools.addFunction(function(e){c||(c=o.getResizable()),l={width:c.$.offsetWidth||0,height:c.$.offsetHeight||0},s={x:e.screenX,y:e.screenY},a.resize_minWidth>l.width&&(a.resize_minWidth=l.width),a.resize_minHeight>l.height&&(a.resize_minHeight=l.height),CKEDITOR.document.on("mousemove",t),CKEDITOR.document.on("mouseup",n),o.document&&(o.document.on("mousemove",t),o.document.on("mouseup",n)),e.preventDefault&&e.preventDefault()});o.on("destroy",function(){CKEDITOR.tools.removeFunction(h)}),o.on("uiSpace",function(e){if("bottom"==e.data.space){var t="";d&&!u&&(t=" cke_resizer_horizontal"),!d&&u&&(t=" cke_resizer_vertical");var n='<span id="'+i+'" class="cke_resizer'+t+" cke_resizer_"+r+'" title="'+CKEDITOR.tools.htmlEncode(o.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+h+', event)">'+("ltr"==r?"\u25e2":"\u25e3")+"</span>";"ltr"==r&&"ltr"==t?e.data.html+=n:e.data.html=n+e.data.html}},o,null,100),o.on("maximize",function(e){o.ui.space("resizer")[e.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),function(){function n(h,e){function o(e){var t;(e=p.list[e]).equals(h.editable())||"true"==e.getAttribute("contenteditable")?((t=h.createRange()).selectNodeContents(e),t=t.select()):(t=h.getSelection()).selectElement(e),CKEDITOR.env.ie&&h.fire("selectionChange",{selection:t,path:new CKEDITOR.dom.elementPath(e)}),h.focus()}function t(){f&&f.setHtml('<span class="cke_path_empty">&nbsp;</span>'),delete p.list}var f,m=h.ui.spaceId("path"),p=h._.elementsPath,g=p.idBase;
vendor: 3,530 bytes, line 17
17e.html+='<span id="'+m+'_label" class="cke_voice_label">'+h.lang.elementspath.eleLabel+'</span><span id="'+m+'" class="cke_path" role="group" aria-labelledby="'+m+'_label"><span class="cke_path_empty">&nbsp;</span></span>',h.on("uiReady",function(){var e=h.ui.space("path");e&&h.focusManager.add(e,1)}),p.onClick=o;var E=CKEDITOR.tools.addFunction(o),T=CKEDITOR.tools.addFunction(function(e,t){var n,i=p.idBase;switch(t=new CKEDITOR.dom.event(t),n="rtl"==h.lang.dir,t.getKeystroke()){case n?39:37:case 9:return(n=CKEDITOR.document.getById(i+(e+1)))||(n=CKEDITOR.document.getById(i+"0")),n.focus(),!1;case n?37:39:case CKEDITOR.SHIFT+9:return(n=CKEDITOR.document.getById(i+(e-1)))||(n=CKEDITOR.document.getById(i+(p.list.length-1))),n.focus(),!1;case 27:return h.focus(),!1;case 13:case 32:return o(e),!1}return!0});h.on("selectionChange",function(e){for(var t=[],n=p.list=[],i=[],o=p.filters,a=!0,r=e.data.path.elements,s=r.length;s--;){var l=r[s],c=0;e=l.data("cke-display-name")?l.data("cke-display-name"):l.data("cke-real-element-type")?l.data("cke-real-element-type"):l.getName(),(a=l.hasAttribute("contenteditable")?"true"==l.getAttribute("contenteditable"):a)||l.hasAttribute("contenteditable")||(c=1);for(var d=0;d<o.length;d++){var u=o[d](l,e);if(!1===u){c=1;break}e=u||e}c||(n.unshift(l),i.unshift(e))}for(n=n.length,o=0;o<n;o++)e=i[o],a=h.lang.elementspath.eleTitle.replace(/%1/,e),e=C.output({id:g+o,label:a,text:e,jsTitle:"javascript:void('"+e+"')",index:o,keyDownFn:T,clickFn:E}),t.unshift(e);f||(f=CKEDITOR.document.getById(m)),(i=f).setHtml(t.join("")+'<span class="cke_path_empty">&nbsp;</span>'),h.fire("elementsPathUpdate",{space:i})}),h.on("readOnly",t),h.on("contentDomUnload",t),h.addCommand("elementsPathFocus",i.toolbarFocus),h.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}var i={toolbarFocus:{editorFocus:!1,readOnly:1,exec:function(e){(e=CKEDITOR.document.getById(e._.elementsPath.idBase+"0"))&&e.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}}},e="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;"');var C=CKEDITOR.addTemplate("pathItem",'<a id="{id}" href="{jsTitle}" tabindex="-1" class="cke_path_item" title="{label}"'+e+' hidefocus="true"  onkeydown="return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick="CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role="button" aria-label="{label}">{text}</a>');CKEDITOR.plugins.add("elementspath",{init:function(t){t._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",filters:[]},t.on("uiSpace",function(e){"bottom"==e.data.space&&n(t,e.data)})}})}(),function(){function t(e,t,n){if(n=e.config.forceEnterMode||n,"wysiwyg"==e.mode){t||(t=e.activeEnterMode);var i=e.elementPath();i&&!i.isContextFor("p")&&(t=CKEDITOR.ENTER_BR,n=1),e.fire("saveSnapshot"),t==CKEDITOR.ENTER_BR?T(e,t,null,n):c(e,t,null,n),e.fire("saveSnapshot")}}function g(e){for(var t=(e=e.getSelection().getRanges(!0)).length-1;0<t;t--)e[t].deleteContents();return e[0]}function E(e){var t=e.startContainer.getAscendant(function(e){return e.type==CKEDITOR.NODE_ELEMENT&&"true"==e.getAttribute("contenteditable")},!0);return e.root.equals(t)?e:((t=new CKEDITOR.dom.range(t)).moveToRange(e),t)}CKEDITOR.plugins.add("enterkey",{init:function(e){e.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(e){t(e)}}),e.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(e){t(e,e.activeShiftEnterMode,1)}}
17),e.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var e,T,c,C,I=CKEDITOR.dom.walker.whitespaces(),O=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(e,t,n,i){function o(e){var t;return e!==CKEDITOR.ENTER_BR&&-1!==CKEDITOR.tools.indexOf(["td","th"],c.lastElement.getName())&&1===c.lastElement.getChildCount()&&((t=(e=c.lastElement.getChild(0).clone(!0)).getBogus())&&t.remove(),!e.getText().length)}if(n=n||g(e)){var a,r=(n=E(n)).document,s=n.checkStartOfBlock(),l=n.checkEndOfBlock(),c=e.elementPath(n.startContainer),d=c.block,u=t==CKEDITOR.ENTER_DIV?"div":"p";if(s&&l){if(d&&(d.is("li")||d.getParent().is("li"))){d.is("li")||(d=d.getParent()),a=(n=d.getParent()).getParent(),i=!d.hasPrevious();l=!d.hasNext(),s=(u=e.getSelection()).createBookmarks();var h=d.getDirection(1),f=d.getAttribute("class"),m=d.getAttribute("style"),p=a.getDirection(1)!=h;if(e=e.enterMode!=CKEDITOR.ENTER_BR||p||m||f,a.is("li"))i||l?(i&&l&&n.remove(),d[l?"insertAfter":"insertBefore"](a)):d.breakParent(a);else{if(e)c.block.is("li")?(a=r.createElement(t==CKEDITOR.ENTER_P?"p":"div"),p&&a.setAttribute("dir",h),m&&a.setAttribute("style",m),f&&a.setAttribute("class",f),d.moveChildren(a)):a=c.block,i||l?a[i?"insertBefore":"insertAfter"](n):(d.breakParent(n),a.insertAfter(n));else if(d.appendBogus(!0),i||l)for(;r=d[i?"getFirst":"getLast"]();)r[i?"insertBefore":"insertAfter"](n);else for(d.breakParent(n);r=d.getLast();)r.insertAfter(n);d.remove()}return void u.selectBookmarks(s)}if(d&&d.getParent().is("blockquote"))return d.breakParent(d.getParent()),d.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||d.getPrevious().remove(),d.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||d.getNext().remove(),n.moveToElementEditStart(d),void n.select()}else if(d&&d.is("pre")&&!l)return void T(e,t,n,i);if(m=n.splitBlock(u)){if(e=m.previousBlock,d=m.nextBlock,s=m.wasStartOfBlock,l=m.wasEndOfBlock,d?(h=d.getParent()).is("li")&&(d.breakParent(h),d.move(d.getNext(),1)):e&&(h=e.getParent())&&h.is("li")&&(e.breakParent(h),h=e.getNext(),n.moveToElementEditStart(h),e.move(e.getPrevious())),s||l)if(o(t))n.moveToElementEditStart(n.getTouchedStartNode());else{if(e?(e.is("li")||!C.test(e.getName())&&!e.is("pre"))&&(a=e.clone()):d&&(a=d.clone()),a?i&&!a.is("li")&&a.renameNode(u):h&&h.is("li")?a=h:(a=r.createElement(u),e&&(f=e.getDirection())&&a.setAttribute("dir",f)),r=m.elementPath)for(t=0,i=r.elements.length;t<i&&(!(u=r.elements[t]).equals(r.block)&&!u.equals(r.blockLimit));t++)CKEDITOR.dtd.$removeEmpty[u.getName()]&&(u=u.clone(),a.moveChildren(u),a.append(u));a.appendBogus(),a.getParent()||n.insertNode(a),a.is("li")&&a.removeAttribute("value"),!CKEDITOR.env.ie||!s||l&&e.getChildCount()||(n.moveToElementEditStart(l?e:a),n.select()),n.moveToElementEditStart(s&&!l?d:a)}else d.is("li")&&((a=n.clone()).selectNodeContents(d),(a=new CKEDITOR.dom.walker(a)).evaluator=function(e){return!(O(e)||I(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in CKEDITOR.dtd.$inline&&!(e.getName()in CKEDITOR.dtd.$empty))},(h=a.next())&&h.type==CKEDITOR.NODE_ELEMENT&&h.is("ul","ol")&&(CKEDITOR.env.needsBrFiller?r.createElement("br"):r.createText("\xa0")).insertBefore(h)),d&&n.moveToElementEditStart(d);n.select(),n.scrollIntoView()}}},enterBr:function(e,t,n,i){if(n=n||g(e)){var o=n.document,a=n.checkEndOfBlock(),r=new CKEDITOR.dom.elementPath(e.getSelection().getStartElement()),s=r.block,l=s&&r.block.getName();i||"li"!=l?(!i&&a&&C.test(l)?(a=s.getDirection())?((o=o.createElement("div")).setAttribute("dir",a),o.insertAfter(s),n.setStart(o,0)):(o.createElement("br").insertAfter(s),CKEDITOR.env.gecko&&o.createText("").insertAfter(s),n.setStartAt(s.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(e="pre"==l&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?o.createText("\r"):o.createElement("br"),n.deleteContents(),n.insertNode(e),CKEDITOR.env.needsBrFiller?(o.createText("\ufeff").insertAfter(e),a&&(s||r.blockLimit).appendBogus(),e.getNext().$.nodeValue="",n.setStartAt(e.getNext(),CKEDITOR.POSITION_AFTER_START)):n.setStartAt(e,CKEDITOR.POSITION_AFTER_END)),n.collapse(!0),n.select(),n.scrollIntoView()):c(e,t,n,i)}}},e=CKEDITOR.plugins.enterkey,T=e.enterBr,c=e.enterBlock,C=/^h[1-6]$/}(),function(){function c(e,i){var o={},a=[],r={nbsp:"\xa0",shy:"\xad",gt:">",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;n<t.length;n++){var s=t.charAt(n);o[s]="&"+e[n]+";",a.push(s)}}return o.regex=a.join(i?"|":""),o}CKEDITOR.plugins.add("entities",{afterInit:function(e){function t(e){return s[e]}function n(e){return"force"!=i.entities_processNumerical&&a[e]?a[e]:"&#"+e.charCodeAt(0)+";"}var i=e.config;if(e=(e=e.dataProcessor)&&e.htmlFilter){var o=[];!1!==i.basicEntities&&o.push("nbsp,gt,lt,amp"),i.entities&&(o.length&&o.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro"),i.entities_latin&&o.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml"),i.entities_greek&&o.push("Alp
17ha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv"),i.entities_additional&&o.push(i.entities_additional));var a=c(o.join(",")),r=a.regex?"["+a.regex+"]":"a^";delete a.regex,i.entities&&i.entities_processNumerical&&(r="[^ -~]|"+r);r=new RegExp(r,"g");var s=c("nbsp,gt,lt,amp,shy",!0),l=new RegExp(s.regex,"g");e.addRules({text:function(e){return e.replace(l,t).replace(r,n)}},{applyToAll:!0,excludeNestedEditable:!0})}}})}(),CKEDITOR.config.basicEntities=!0,CKEDITOR.config.entities=!0,CKEDITOR.config.entities_latin=!0,CKEDITOR.config.entities_greek=!0,CKEDITOR.config.entities_additional="#39",CKEDITOR.plugins.add("popup"),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(e,t,n,i){n=n||"70%","string"==typeof(t=t||"80%")&&1<t.length&&"%"==t.substr(t.length-1,1)&&(t=parseInt(window.screen.width*parseInt(t,10)/100,10)),"string"==typeof n&&1<n.length&&"%"==n.substr(n.length-1,1)&&(n=parseInt(window.screen.height*parseInt(n,10)/100,10)),t<640&&(t=640),n<420&&(n=420);var o=parseInt((window.screen.height-n)/2,10),a=parseInt((window.screen.width-t)/2,10);i=(i||"location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes")+",width="+t+",height="+n+",top="+o+",left="+a;var r=window.open("",null,i,!0);if(!r)return!1;try{-1==navigator.userAgent.toLowerCase().indexOf(" chrome/")&&(r.moveTo(a,o),r.resizeTo(t,n)),r.focus(),r.location.href=e}catch(s){window.open(e,null,i,!0)}return!0}}),function(){function e(e){this.editor=e,this.loaders=[]}function o(e,t,n){var i=e.config.fileTools_defaultFileName;this.editor=e,this.lang=e.lang,"string"==typeof t?(this.data=t,this.file=a(this.data),this.loaded=this.total=this.file.size):(this.data=null,this.file=t,this.total=this.file.size,this.loaded=0),n?this.fileName=n:this.file.name?this.fileName=this.file.name:(e=this.file.type.split("/"),i&&(e[0]=i),this.fileName=e.join(".")),this.uploaded=0,this.responseData=this.uploadTotal=null,this.status="created",this.abort=function(){this.changeStatus("abort")}}function a(e){var t=e.match(s)[1];e=e.replace(s,""),e=atob(e);var n,i,o,a,r=[];for(n=0;n<e.length;n+=512){for(i=e.slice(n,n+512),o=Array(i.length),a=0;a<i.length;a++)o[a]=i.charCodeAt(a);i=new Uint8Array(o),r.push(i)}return new Blob(r,{type:t})}CKEDITOR.plugins.add("filetools",{beforeInit:function(s){s.uploadRepository=new e(s),s.on("fileUploadRequest",function(e){var t=e.data.fileLoader;t.xhr.open("POST",t.uploadUrl,!0),e.data.requestData.upload={file:t.file,name:t.fileName}},null,null,5),s.on("fileUploadRequest",function(e){var t=e.data.fileLoader,n=new FormData;e=e.data.requestData;var i,o,a=s.config.fileTools_requestHeaders;for(o in e){var r=e[o];"object"==typeof r&&r.file?n.append(o,r.file,r.name):n.append(o,r)}if(n.append("ckCsrfToken",CKEDITOR.tools.getCsrfToken()),a)for(i in a)t.xhr.setRequestHeader(i,a[i]);t.xhr.send(n)},null,null,999),s.on("fileUploadResponse",function(e){var t=e.data.fileLoader,n=t.xhr,i=e.data;try{var o=JSON.parse(n.responseText);if(o.error&&o.error.message&&(i.message=o.error.message),o.uploaded)for(var a in o)i[a]=o[a];else e.cancel()}catch(r){i.message=t.lang.filetools.responseError,CKEDITOR.warn("filetools-response-error",{responseText:n.responseText}),e.cancel()}},null,null,999)}}),e.prototype={create:function(e,t,n){n=n||o;var i=this.loaders.length;return(e=new n(this.editor,e,t)).id=i,this.loaders[i]=e,this.fire("instanceCreated",e),e},isFinished:function(){for(var e=0;e<this.loaders.length;++e)if(!this.loaders[e].isFinished())return!1;return!0}},o.prototype={loadAndUpload:function(t,n){var i=this;this.once("loaded",function(e){e.cancel(),i.once("update",function(e){e.cancel()},null,null,0),i.upload(t,n)},null,null,0),this.load()},load:function(){var t=this,e=this.reader=new FileReader;t.changeStatus("loading"),this.abort=function(){t.reader.abort()},e.onabort=function(){t.changeStatus("abort")},e.onerror=function(){t.message=t.lang.filetools.loadError,t.changeStatus("error")}
17,e.onprogress=function(e){t.loaded=e.loaded,t.update()},e.onload=function(){t.loaded=t.total,t.data=e.result,t.changeStatus("loaded")},e.readAsDataURL(this.file)},upload:function(e,t){var n=t||{};e?(this.uploadUrl=e,this.xhr=new XMLHttpRequest,this.attachRequestListeners(),this.editor.fire("fileUploadRequest",{fileLoader:this,requestData:n})&&this.changeStatus("uploading")):(this.message=this.lang.filetools.noUrlError,this.changeStatus("error"))},attachRequestListeners:function(){function e(){"error"!=a.status&&(a.message=a.lang.filetools.networkError,a.changeStatus("error"))}function t(){"abort"!=a.status&&a.changeStatus("abort")}var a=this,r=this.xhr;a.abort=function(){r.abort(),t()},r.onerror=e,r.onabort=t,r.upload?(r.upload.onprogress=function(e){e.lengthComputable&&(a.uploadTotal||(a.uploadTotal=e.total),a.uploaded=e.loaded,a.update())},r.upload.onerror=e,r.upload.onabort=t):(a.uploadTotal=a.total,a.update()),r.onload=function(){if(a.update(),"abort"!=a.status)if(a.uploaded=a.uploadTotal,r.status<200||299<r.status)a.message=a.lang.filetools["httpError"+r.status],a.message||(a.message=a.lang.filetools.httpError.replace("%1",r.status)),a.changeStatus("error");else{for(var e={fileLoader:a},t=["message","fileName","url"],n=a.editor.fire("fileUploadResponse",e),i=0;i<t.length;i++){var o=t[i];"string"==typeof e[o]&&(a[o]=e[o])}a.responseData=e,delete a.responseData.fileLoader,!1===n?a.changeStatus("error"):a.changeStatus("uploaded")}}},changeStatus:function(e){"error"!=(this.status=e)&&"abort"!=e&&"loaded"!=e&&"uploaded"!=e||(this.abort=function(){}),this.fire(e),this.update()},update:function(){this.fire("update")},isFinished:function(){return!!this.status.match(/^(?:loaded|uploaded|error|abort)$/)}},CKEDITOR.event.implementOn(e.prototype),CKEDITOR.event.implementOn(o.prototype);var s=/^data:(\S*?);base64,/;CKEDITOR.fileTools||(CKEDITOR.fileTools={}),CKEDITOR.tools.extend(CKEDITOR.fileTools,{uploadRepository:e,fileLoader:o,getUploadUrl:function(e,t){var n=CKEDITOR.tools.capitalize;return t&&e[t+"UploadUrl"]?e[t+"UploadUrl"]:e.uploadUrl?e.uploadUrl:t&&e["filebrowser"+n(t,1)+"UploadUrl"]?e["filebrowser"+n(t,1)+"UploadUrl"]+"&responseType=json":e.filebrowserUploadUrl?e.filebrowserUploadUrl+"&responseType=json":null},isTypeSupported:function(e,t){return!!e.type.match(t)},isFileUploadSupported:"function"==typeof FileReader&&"function"==typeof(new FileReader).readAsDataURL&&"function"==typeof FormData&&"function"==typeof(new FormData).append&&"function"==typeof XMLHttpRequest&&"function"==typeof Blob})}(),function(){function o(e,t){var n=[];if(!t)return e;for(var i in t)n.push(i+"="+encodeURIComponent(t[i]));return e+(-1!=e.indexOf("?")?"&":"?")+n.join("&")}function l(e){return!e.match(/command=QuickUpload/)||e.match(/(\?|&)responseType=json/)?e:o(e,{responseType:"json"})}function c(e){return(e+="").charAt(0).toUpperCase()+e.substr(1)}function d(){var e=(n=this.getDialog()).getParentEditor();e._.filebrowserSe=this;var t=e.config["filebrowser"+c(n.getName())+"WindowWidth"]||e.config.filebrowserWindowWidth||"80%",n=e.config["filebrowser"+c(n.getName())+"WindowHeight"]||e.config.filebrowserWindowHeight||"70%",i=this.filebrowser.params||{};
17i.CKEditor=e.name,i.CKEditorFuncNum=e._.filebrowserFn,i.langCode||(i.langCode=e.langCode),i=o(this.filebrowser.url,i),e.popup(i,t,n,e.config.filebrowserWindowFeatures||e.config.fileBrowserWindowFeatures)}function u(e){var t=new CKEDITOR.dom.element(e.$.form);t&&((e=t.$.elements.ckCsrfToken)?e=new CKEDITOR.dom.element(e):((e=new CKEDITOR.dom.element("input")).setAttributes({name:"ckCsrfToken",type:"hidden"}),t.append(e)),e.setAttribute("value",CKEDITOR.tools.getCsrfToken()))}function h(){var e=this.getDialog();return e.getParentEditor()._.filebrowserSe=this,!(!e.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value||!e.getContentElement(this["for"][0],this["for"][1]).getAction())}function f(e,t,n){var i=n.params||{};i.CKEditor=e.name,i.CKEditorFuncNum=e._.filebrowserFn,i.langCode||(i.langCode=e.langCode),t.action=o(n.url,i),t.filebrowser=n}function m(o,e,t,n){if(n&&n.length)for(var i,a=n.length;a--;)if("hbox"!=(i=n[a]).type&&"vbox"!=i.type&&"fieldset"!=i.type||m(o,e,t,i.children),i.filebrowser)if("string"==typeof i.filebrowser&&(i.filebrowser={action:"fileButton"==i.type?"QuickUpload":"Browse",target:i.filebrowser}),"Browse"==i.filebrowser.action){var r=i.filebrowser.url;void 0===r&&(void 0===(r=o.config["filebrowser"+c(e)+"BrowseUrl"])&&(r=o.config.filebrowserBrowseUrl)),r&&(i.onClick=d,i.filebrowser.url=r,i.hidden=!1)}else if("QuickUpload"==i.filebrowser.action&&i["for"]&&(void 0===(r=i.filebrowser.url)&&(void 0===(r=o.config["filebrowser"+c(e)+"UploadUrl"])&&(r=o.config.filebrowserUploadUrl)),r)){var s=i.onClick;i.onClick=function(e){var t=e.sender,n=t.getDialog().getContentElement(this["for"][0],this["for"][1]).getInputElement(),i=CKEDITOR.fileTools&&CKEDITOR.fileTools.isFileUploadSupported;return(!s||!1!==s.call(t,e))&&(!!h.call(t,e)&&("form"!==o.config.filebrowserUploadMethod&&i?((e=o.uploadRepository.create(n.$.files[0])).on("uploaded",function(e){var t=e.sender.responseData;g.call(e.sender.editor,t.url,t.message)}),e.on("error",p.bind(this)),e.on("abort",p.bind(this)),e.loadAndUpload(l(r)),"xhr"):(u(n),!0)))},i.filebrowser.url=r,i.hidden=!1,f(o,t.getContents(i["for"][0]).get(i["for"][1]),i.filebrowser)}}function p(e){var t={};try{t=JSON.parse(e.sender.xhr.response)||{}}catch(n){}this.enable(),alert(t.error?t.error.message:e.sender.message)}function a(e,t,n){if(-1!==n.indexOf(";")){n=n.split(";");for(var i=0;i<n.length;i++)if(a(e,t,n[i]))return!0;return!1}return(e=e.getContents(t).get(n).filebrowser)&&e.url}function g(e,t){var n=this._.filebrowserSe.getDialog(),i=this._.filebrowserSe["for"],o=this._.filebrowserSe.filebrowser.onSelect;i&&n.getContentElement(i[0],i[1]).reset(),"function"==typeof t&&!1===t.call(this._.filebrowserSe)||o&&!1===o.call(this._.filebrowserSe,e,t)||("string"==typeof t&&t&&alert(t),e&&(n=(i=this._.filebrowserSe).getDialog(),i=i.filebrowser.target||null)&&(i=i.split(":"),(o=n.getContentElement(i[0],i[1]))&&(o.setValue(e),n.selectPage(i[0]))))}CKEDITOR.plugins.add("filebrowser",{requires:"popup,filetools",init:function(e){e._.filebrowserFn=CKEDITOR.tools.addFunction(g,e),e.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}}),CKEDITOR.on("dialogDefinition",function(e){if(e.editor.plugins.filebrowser)for(var t,n=e.data.definition,i=0;i<n.contents.length;++i)(t=n.contents[i])&&(m(e.editor,e.data.name,n,t.elements),t.hidden&&t.filebrowser&&(t.hidden=!a(n,t.id,t.filebrowser)))})}(),CKEDITOR.plugins.add("find",{requires:"dialog",init:function(e){var t=e.addCommand("find",new CKEDITOR.dialogCommand("find")),n=e.addCommand("replace",new CKEDITOR.dialogCommand("find",{tabId:"replace"}));t.canUndo=!1,t.readOnly=1,n.canUndo=!1,e.ui.addButton&&(e.ui.addButton("Find",{label:e.lang.find.find,command:"find",toolbar:"find,10"}),e.ui.addButton("Replace",{label:e.lang.find.replace,command:"replace",toolbar:"find,20"})),CKEDITOR.dialog.add("find",this.path+"dialogs/find.js")}}),CKEDITOR.config.find_highlight={element:"span",styles:{"background-color":"#004",color:"#fff"}},function(){function o(e,t){var n=a.exec(e),i=a.exec(t);if(n){if(!n[2]&&"px"==i[2])return i[1];if("px"==n[2]&&!i[2])return i[1]+"px"}return t}var r=CKEDITOR.htmlParser.cssStyle,s=CKEDITOR.tools.cssLength,a=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,t={elements:{$:function(e){var t=e.attributes;if((t=(t=(t=t&&t["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(t)))&&t.children[0])&&e.attributes["data-cke-resizable"]){var n=new r(e).rules;e=t.attributes;var i=n.width;n=n.height;i&&(e.width=o(e.width,i)),n&&(e.height=o(e.height,n))}return t}}};CKEDITOR.plugins.add("fakeobjects",{init:function(e){e.filter.allow("img[!data-cke-realelement,src,alt,title](*){*}","fakeobjects")},afterInit:function(e){(e=(e=e.dataProcessor)&&e.htmlFilter)&&e.addRules(t,{applyToAll:!0})}}),CKEDITOR.editor.prototype.createFakeElement=function(e,t,n,i){var o=(o=this.lang.fakeobjects)[n]||o.unknown;return t={"class":t,"data-cke-realelement":encodeURIComponent(e.getOuterHtml()),"data-cke-real-node-type":e.type,alt:o,title:o,align:e.getAttribute("align")||""},CKEDITOR.env.hc||(t.src=CKEDITOR.tools.transparentImageData),n&&(t["data-cke-real-element-type"]=n),i&&(t["data-cke-resizable"]=i,n=new r,i=e.getAttribute("width"),e=e.getAttribute("height"),i&&(n.rules.width=s(i)),e&&(n.rules.height=s(e)),n.populate(t)),this.document.createElement("img",{attributes:t})},CKEDITOR.editor.prototype.createFakeParserElement=function(e,t,n,i){var o,a=(a=this.lang.fakeobjects)[n]||a.unknown;return o=new CKEDITOR.htmlParser.basicWriter,e.writeHtml(o),o=o.getHtml(),t={"class":t,"data-cke-realelement":encodeURIComponent(o),"data-cke-real-node-type":e.type,alt:a,title:a,align:e.attributes.align||""},CKEDITOR.env.hc||(t.src=CKEDITOR.tools.transparentImageData),n&&(t["data-cke-real-element-type"]=n),i&&(t["data-cke-resizable"]=i,i=e.attributes,e=new r,n=i.width,i=i.height,void 0!==n&&(e.rules.width=s(n)),void 0!==i&&(e.rules.height=s(i)),e.populate(t)),new CKEDITOR.htmlParser.element("img",t)},CKEDITOR.editor.prototype.restoreRealElement=function(e){if(e.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT)return null;var t=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(e.data("cke-realelement")),this.document);if(e.data("cke-resizable")){var n=e.getStyle("width");e=e.getStyle("height"),n&&t.setAttribute("width",o(t.getAttribute("width"),n)),e&&t.setAttribute("height",o(t.getAttribute("height"),e))}return t}}(),function(){function i(e){return"application/x-shockwave-flash"==(e=e.attributes).type||t.test(e.src||"")}function o(e,t){return e.createFakeParserElement(t,"cke_flash","flash",!0)}var t=/\.swf(?:$|\?)/i;CKEDITOR.plugins.add("flash",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_flash{background-image: url("+CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(e){var t="object[classid,codebase,height,hspace,vspace,width];param[name,value];embed[height,hspace,pluginspage,src,type,vspace,width]";CKEDITOR.dialog.isTabEnabled(e,"flash","properties")&&(t+=";object[align];
17 embed[allowscriptaccess,quality,scale,wmode]"),CKEDITOR.dialog.isTabEnabled(e,"flash","advanced")&&(t+=";object[id]{*}; embed[bgcolor]{*}(*)"),e.addCommand("flash",new CKEDITOR.dialogCommand("flash",{allowedContent:t,requiredContent:"embed"})),e.ui.addButton&&e.ui.addButton("Flash",{label:e.lang.common.flash,command:"flash",toolbar:"insert,20"}),CKEDITOR.dialog.add("flash",this.path+"dialogs/flash.js"),e.addMenuItems&&e.addMenuItems({flash:{label:e.lang.flash.properties,command:"flash",group:"flash"}}),e.on("doubleclick",function(e){var t=e.data.element;t.is("img")&&"flash"==t.data("cke-real-element-type")&&(e.data.dialog="flash")}),e.contextMenu&&e.contextMenu.addListener(function(e){if(e&&e.is("img")&&!e.isReadOnly()&&"flash"==e.data("cke-real-element-type"))return{flash:CKEDITOR.TRISTATE_OFF}})},afterInit:function(n){var e=n.dataProcessor;(e=e&&e.dataFilter)&&e.addRules({elements:{"cke:object":function(e){var t=e.attributes;if(!(t.classid&&String(t.classid).toLowerCase()||i(e))){for(t=0;t<e.children.length;t++)if("cke:embed"==e.children[t].name){if(!i(e.children[t]))break;return o(n,e)}return null}return o(n,e)},"cke:embed":function(e){return i(e)?o(n,e):null}}},5)}})}(),CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:!1,flashAddEmbedTag:!0,flashConvertOnEdit:!1}),function(){function t(p){var g=p.config,e=p.fire("uiSpace",{space:"top",html:""}).html,E=function(){function n(e,t,n){T.setStyle(t,I(n)),T.setStyle("position",e)}function i(e){var t=a.getDocumentPosition();switch(e){case"top":n("absolute","top",t.y-c-h);break;case"pin":n("fixed","top",m);break;case"bottom":n("absolute","top",t.y+(s.height||s.bottom-s.top)+h)}o=e}
18var o,a,r,s,l,c,d,u=g.floatSpaceDockedOffsetX||0,h=g.floatSpaceDockedOffsetY||0,f=g.floatSpacePinnedOffsetX||0,m=g.floatSpacePinnedOffsetY||0;return function(e){if(a=p.editable()){var t=e&&"focus"==e.name;t&&T.show(),p.fire("floatingSpaceLayout",{show:t}),T.removeStyle("left"),T.removeStyle("right"),r=T.getClientRect(),s=a.getClientRect(),l=C.getViewPaneSize(),c=r.height,d="pageXOffset"in C.$?C.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft,o?(c+h<=s.top?i("top"):c+h>l.height-s.bottom?i("pin"):i("bottom"),e=l.width/2,e=g.floatSpacePreferRight?"right":0<s.left&&s.right<l.width&&s.width>r.width?"rtl"==g.contentsLangDirection?"right":"left":e-s.left>s.right-e?"left":"right",r.width>l.width?(e="left",t=0):(t="left"==e?0<s.left?s.left:0:s.right<l.width?l.width-s.right:0)+r.width>l.width&&(e="left"==e?"right":"left",t=0),T.setStyle(e,I(("pin"==o?f:u)+t+("pin"==o?0:"left"==e?d:-d)))):(i(o="pin"),E(e))}}}();if(e){var t=new CKEDITOR.template('<div id="cke_{name}" class="cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="application" style="{style}"'+(p.title?' aria-labelledby="cke_{name}_arialbl"':" ")+">"+(p.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':" ")+'<div class="cke_inner"><div id="{topId}" class="cke_top" role="presentation">{content}</div></div></div>'),T=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(t.output({content:e,id:p.id,langDir:p.lang.dir,langCode:p.langCode,name:p.name,style:"display:none;z-index:"+(g.baseFloatZIndex-1),topId:p.ui.spaceId("top"),voiceLabel:p.title}))),n=CKEDITOR.tools.eventsBuffer(500,E),i=CKEDITOR.tools.eventsBuffer(100,E);T.unselectable(),T.on("mousedown",function(e){(e=e.data).getTarget().hasAscendant("a",1)||e.preventDefault()}),p.on("focus",function(e){E(e),p.on("change",n.input),C.on("scroll",i.input),C.on("resize",i.input)}),p.on("blur",function(){T.hide(),p.removeListener("change",n.input),C.removeListener("scroll",i.input),C.removeListener("resize",i.input)}),p.on("destroy",function(){C.removeListener("scroll",i.input),C.removeListener("resize",i.input),T.clearCustomData(),T.remove()}),p.focusManager.hasFocus&&T.show(),p.focusManager.add(T,1)}}var C=CKEDITOR.document.getWindow(),I=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(e){e.on("loaded",function(){t(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var t=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),o=CKEDITOR.addTemplate("panel-list-item",'<li id="{id}" class="cke_panel_listItem" role=presentation><a id="{id}_option" _cke_focus=1 hidefocus=true title="{title}" href="javascript:void(\'{val}\')"  {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role="option">{text}</a></li>'),n=CKEDITOR.addTemplate("panel-list-group",'<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>'),a=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(e,t){return this.addBlock(e,new CKEDITOR.ui.listBlock(this.getHolderElement(),t))},CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(e,t){var n=(t=t||{}).attributes||(t.attributes={});(this.multiSelect=!!t.multiSelect)&&(n["aria-multiselectable"]=!0),!n.role&&(n.role="listbox"),this.base.apply(this,arguments),this.element.setAttribute("role",n.role),(n=this.keys)[40]="next",n[9]="next",n[38]="prev",n[CKEDITOR.SH
18IFT+9]="prev",n[32]=CKEDITOR.env.ie?"mouseup":"click",CKEDITOR.env.ie&&(n[13]="mouseup"),this._.pendingHtml=[],this._.pendingList=[],this._.items={},this._.groups={}},_:{close:function(){if(this._.started){var e=t.output({items:this._.pendingList.join("")});this._.pendingList=[],this._.pendingHtml.push(e),delete this._.started}},getClick:function(){return this._.click||(this._.click=CKEDITOR.tools.addFunction(function(e){var t=this.toggle(e);this.onClick&&this.onClick(e,t)},this)),this._.click}},proto:{add:function(e,t,n){var i=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0),e={id:this._.items[e]=i,val:CKEDITOR.tools.htmlEncodeAttr(e).replace(a,"\\'"),onclick:CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(n||e),text:t||e},this._.pendingList.push(o.output(e))},startGroup:function(e){this._.close();var t=CKEDITOR.tools.getNextId();this._.groups[e]=t,this._.pendingHtml.push(n.output({id:t,label:e}))},commit:function(){this._.close(),this.element.appendHtml(this._.pendingHtml.join("")),delete this._.size,this._.pendingHtml=[]},toggle:function(e){var t=this.isMarked(e);return t?this.unmark(e):this.mark(e),!t},hideGroup:function(e){var t=(e=this.element.getDocument().getById(this._.groups[e]))&&e.getNext();e&&(e.setStyle("display","none"),t&&"ul"==t.getName()&&t.setStyle("display","none"))},hideItem:function(e){this.element.getDocument().getById(this._.items[e]).setStyle("display","none")},showAll:function(){var e,t=this._.items,n=this._.groups,i=this.element.getDocument();for(e in t)i.getById(t[e]).setStyle("display","");for(var o in n)e=(t=i.getById(n[o])).getNext(),t.setStyle("display",""),e&&"ul"==e.getName()&&e.setStyle("display","")},mark:function(e){this.multiSelect||this.unmarkAll(),e=this._.items[e];var t=this.element.getDocument().getById(e);t.addClass("cke_selected"),this.element.getDocument().getById(e+"_option").setAttribute("aria-selected",!0),this.onMark&&this.onMark(t)},markFirstDisplayed:function(){var e=this;this._.markFirstDisplayed(function(){e.multiSelect||e.unmarkAll()})},unmark:function(e){var t=this.element.getDocument();e=this._.items[e];var n=t.getById(e);n.removeClass("cke_selected"),t.getById(e+"_option").removeAttribute("aria-selected"),this.onUnmark&&this.onUnmark(n)},unmarkAll:function(){var e,t=this._.items,n=this.element.getDocument();for(e in t){var i=t[e];n.getById(i).removeClass("cke_selected"),n.getById(i+"_option").removeAttribute("aria-selected")}this.onUnmark&&this.onUnmark()},isMarked:function(e){return this.element.getDocument().getById(this._.items[e]).hasClass("cke_selected")},focus:function(e){this._.focusIndex=-1;var t,n=this.element.getElementsByTag("a"),i=-1;if(e){for(t=this.element.getDocument().getById(this._.items[e]).getFirst();e=n.getItem(++i);)if(e.equals(t)){this._.focusIndex=i;break}}else this.element.focus();t&&setTimeout(function(){t.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}}),function(){var e='<span id="{id}" class="cke_combo cke_combo__{name} {cls}" role="presentation"><span id="{id}_label" class="cke_combo_label">{label}</span><a class="cke_combo_button" title="{title}" tabindex="-1"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="listbox"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;"');e=e+' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span id="{id}_text" class="cke_combo_text cke_combo_inlinelabel">{label}</span><span class="cke_combo_open"><span class="cke_combo_arrow">'+(CKEDITOR.env.hc?"&#9660;":CKEDITOR.env.air?"&nbsp;":"")+"</span></span></a></span>";var u=CKEDITOR.addTemplate("combo",e);CKEDITOR.UI_RICHCOMBO="richcombo",CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(e){CKEDITOR.tools.extend(this,e,{canGroup:!1,title:e.label,modes:{wysiwyg:1},editorFocus:1}),e=this.panel||{},delete this.panel,this.id=CKEDITOR.tools.getNextNumber(),this.document=e.parent&&e.parent.getDocument()||CKEDITOR.document,e.className="
18cke_combopanel",e.block={multiSelect:e.multiSelect,attributes:e.attributes},e.toolbarRelated=!0,this._={panelDefinition:e,items:{},listeners:[]}},proto:{renderHtml:function(e){var t=[];return this.render(e,t),t.join("")},render:function(i,e){function t(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var e=this.modes[i.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;i.readOnly&&!this.readOnly&&(e=CKEDITOR.TRISTATE_DISABLED),this.setState(e),this.setValue(""),e!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var n=CKEDITOR.env,o="cke_"+this.id,a=CKEDITOR.tools.addFunction(function(e){d&&(i.unlockSelection(1),d=0),s.execute(e)},this),r=this,s={id:o,combo:this,focus:function(){CKEDITOR.document.getById(o).getChild(1).focus()},execute:function(e){var t=r._;if(t.state!=CKEDITOR.TRISTATE_DISABLED)if(r.createPanel(i),t.on)t.panel.hide();else{r.commit();var n=r.getValue();n?t.list.mark(n):t.list.unmarkAll(),t.panel.showBlock(r.id,new CKEDITOR.dom.element(e),4)}},clickFn:a};this._.listeners.push(i.on("activeFilterChange",t,this)),this._.listeners.push(i.on("mode",t,this)),this._.listeners.push(i.on("selectionChange",t,this)),!this.readOnly&&this._.listeners.push(i.on("readOnly",t,this));var l=CKEDITOR.tools.addFunction(function(e,t){var n=(e=new CKEDITOR.dom.event(e)).getKeystroke();switch(n){case 13:case 32:case 40:CKEDITOR.tools.callFunction(a,t);break;default:s.onkey(s,n)}e.preventDefault()}),c=CKEDITOR.tools.addFunction(function(){s.onfocus&&s.onfocus()}),d=0;return s.keyDownFn=l,n={id:o,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:n.gecko&&!n.hc?"":(this.title||"").replace("'",""),keydownFn:l,focusFn:c,clickFn:a},u.output(n,e),this.onRender&&this.onRender(),s},createPanel:function(t){if(!this._.panel){var e=this._.panelDefinition,n=this._.panelDefinition.block,i=e.parent||CKEDITOR.document.getBody(),o="cke_combopanel__"+this.name,a=new CKEDITOR.ui.floatPanel(t,i,e),r=(e=a.addListBlock(this.id,n),this);a.onShow=function(){this.element.addClass(o),r.setState(CKEDITOR.TRISTATE_ON),r._.on=1,r.editorFocus&&!t.focusManager.hasFocus&&t.focus(),r.onOpen&&r.onOpen()},a.onHide=function(e){this.element.removeClass(o),r.setState(r.modes&&r.modes[t.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),r._.on=0,!e&&r.onClose&&r.onClose()},a.onEscape=function(){a.hide(1)},e.onClick=function(e,t){r.onClick&&r.onClick.call(r,e,t),a.hide()},this._.panel=a,this._.list=e,a.getBlock(this.id).onHide=function(){r._.on=0,r.setState(CKEDITOR.TRISTATE_OFF)},this.init&&this.init()}},setValue:function(e,t){this._.value=e;var n=this.document.getById("cke_"+this.id+"_text");n&&(e||t?n.removeClass("cke_combo_inlinelabel"):(t=this.label,n.addClass("cke_combo_inlinelabel")),n.setText(void 0!==t?t:e))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(e){this._.list.mark(e)},hideItem:function(e){this._.list.hideItem(e)},hideGroup:function(e){this._.list.hideGroup(e)},showAll:function(){this._.list.showAll()},add:function(e,t,n){this._.items[e]=n||e,this._.list.add(e,t,n)},startGroup:function(e){this._.list.startGroup(e)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this)),this._.committed=1},setState:function(e){if(this._.state!=e){var t=this.document.getById("cke_"+this.id);t.setState(e,"cke_combo"),e==CKEDITOR.TRISTATE_DISABLED?t.setAttribute("aria-disabled",!0):t.removeAttribute("aria-disabled"),this._.state=e}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))},destroy:function(){CKEDITOR.tools.array.forEach(this._.listeners,function(e){e.removeListener()}),this._.listeners=[]}},statics:{handler:{create:function(e){return new CKEDITOR.ui.richCombo(e)}}}}),CKEDITOR.ui.prototype.addRichCombo=function(e,t){this.add(e,CKEDITOR.UI_RICHCOMBO,t)}}(),function(){function n(l,e,t,n,i,a,o,r){var s=l.config,c=new CKEDITOR.style(o),d=i.split(";");i=[];for(var u={},h=0;h<d.length;h++){if(f=d[h]){var f=f.split("/"),m={},p=d[h]=f[0];m[t]=i[h]=f[1]||p,u[p]=new CKEDITOR.style(o,m),u[p]._.definition.name=p}else d.splice(h--,1)}l.ui.addRichCombo(e,{label:n.label,title:n.panelTitle,toolbar:"styles,"+r,defaultValue:"cke-default",allowedContent:c,requiredContent:c,contentTransformations:"span"===o.element?[[{element:"font",check:"span",left:function(e){return!!e.attributes.size||!!e.attributes.align||!!e.attributes.face},right:function(e){var t=" x-small small medium large x-large xx-large 48px".split(" ");e.name="span",e.attributes.size&&(e.styles["font-size"]=t[e.attributes.size],delete e.attributes.size),e.attributes.align&&(e.styles["text-align"]=e.attributes.align,delete e.attributes.align),e.attributes.face&&(e.styles["font-family"]=e.attributes.face,delete e.attributes.face)}}]]:null,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(s.contentsCss),multiSelect:!1,attributes:{"aria-label":n.panelTitle}},init:function(){var e;e="("+l.lang.common.optionDefault+")",this.startGroup(n.panelTitle),this.add(this.defaultValue,e,e);for(var t=0;t<d.length;t++)e=d[t],this.add(e,u[e].buildPreview(),e)},onClick:function(e){l.focus(),l.fire("saveSnapshot");var t,n,i,o,a,r=this.getValue(),s=u[e];
18if(r&&e!=r)if(t=u[r],(r=l.getSelection().getRanges()[0]).collapsed){if(i=(n=l.elementPath()).contains(function(e){return t.checkElementRemovable(e)})){if(o=r.checkBoundaryOfElement(i,CKEDITOR.START),a=r.checkBoundaryOfElement(i,CKEDITOR.END),o&&a){for(o=r.createBookmark();n=i.getFirst();)n.insertBefore(i);i.remove(),r.moveToBookmark(o)}else o||a?r.moveToPosition(i,o?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_END):(r.splitElement(i),r.moveToPosition(i,CKEDITOR.POSITION_AFTER_END)),g(r,n.elements.slice(),i);l.getSelection().selectRanges([r])}}else l.removeStyle(t);e===this.defaultValue?t&&l.removeStyle(t):l.applyStyle(s),l.fire("saveSnapshot")},onRender:function(){l.on("selectionChange",function(e){var t=this.getValue();e=e.data.path.elements;for(var n,i=0;i<e.length;i++)for(var o in n=e[i],u)if(u[o].checkElementMatch(n,!0,l))return void(o!=t&&this.setValue(o));this.setValue("",a)},this)},refresh:function(){l.activeFilter.check(c)||this.setState(CKEDITOR.TRISTATE_DISABLED)}})}function g(e,t,n){var i=t.pop();if(i){if(n)return g(e,t,i.equals(n)?null:n);
vendor: 10,709 bytes, line 18
18n=i.clone(),e.insertNode(n),e.moveToPosition(n,CKEDITOR.POSITION_AFTER_START),g(e,t)}}CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(e){var t=e.config;n(e,"Font","family",e.lang.font,t.font_names,t.font_defaultLabel,t.font_style,30),n(e,"FontSize","size",e.lang.font.fontSize,t.fontSize_sizes,t.fontSize_defaultLabel,t.fontSize_style,40)}})}(),CKEDITOR.config.font_names="Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif",CKEDITOR.config.font_defaultLabel="",CKEDITOR.config.font_style={element:"span",styles:{"font-family":"#(family)"},overrides:[{element:"font",attributes:{face:null}}]},CKEDITOR.config.fontSize_sizes="8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px",CKEDITOR.config.fontSize_defaultLabel="",CKEDITOR.config.fontSize_style={element:"span",styles:{"font-size":"#(size)"},overrides:[{element:"font",attributes:{size:null}}]},CKEDITOR.plugins.add("forms",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss(".cke_editable form{border: 1px dotted #FF0000;padding: 2px;}\n"),CKEDITOR.addCss("img.cke_hidden{background-image: url("+CKEDITOR.getUrl(this.path+"images/hiddenfield.gif")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 16px !important;height: 16px !important;}")},init:function(o){var a=o.lang,r=0,i={email:1,password:1,search:1,tel:1,text:1,url:1},s={checkbox:"input[type,name,checked,required]",radio:"input[type,name,checked,required]",textfield:"input[type,name,value,size,maxlength,required]",textarea:"textarea[cols,rows,name,required]",select:"select[name,size,multiple,required]; option[value,selected]",button:"input[type,name,value]",form:"form[action,name,id,enctype,target,method]",hiddenfield:"input[type,name,value]",imagebutton:"input[type,alt,src]{width,height,border,border-width,border-style,margin,float}"},l={checkbox:"input",radio:"input",textfield:"input",textarea:"textarea",select:"select",button:"input",form:"form",hiddenfield:"input",imagebutton:"input"},e=function(e,t,n){var i={allowedContent:s[t],requiredContent:l[t]};"form"==t&&(i.context="form"),o.addCommand(t,new CKEDITOR.dialogCommand(t,i)),o.ui.addButton&&o.ui.addButton(e,{label:a.common[e.charAt(0).toLowerCase()+e.slice(1)],command:t,toolbar:"forms,"+(r+=10)}),CKEDITOR.dialog.add(t,n)},t=this.path+"dialogs/";!o.blockless&&e("Form","form",t+"form.js"),e("Checkbox","checkbox",t+"checkbox.js"),e("Radio","radio",t+"radio.js"),e("TextField","textfield",t+"textfield.js"),e("Textarea","textarea",t+"textarea.js"),e("Select","select",t+"select.js"),e("Button","button",t+"button.js");var c=o.plugins.image;c&&!o.plugins.image2&&e("ImageButton","imagebutton",CKEDITOR.plugins.getPath("image")+"dialogs/image.js"),e("HiddenField","hiddenfield",t+"hiddenfield.js"),o.addMenuItems&&(e={checkbox:{label:a.forms.checkboxAndRadio.checkboxTitle,command:"checkbox",group:"checkbox"},radio:{label:a.forms.checkboxAndRadio.radioTitle,command:"radio",group:"radio"},textfield:{label:a.forms.textfield.title,command:"textfield",group:"textfield"},hiddenfield:{label:a.forms.hidden.title,command:"hiddenfield",group:"hiddenfield"},button:{label:a.forms.button.title,command:"button",group:"button"},select:{label:a.forms.select.title,command:"select",group:"select"},textarea:{label:a.forms.textarea.title,command:"textarea",group:"textarea"}},c&&(e.imagebutton={label:a.image.titleButton,command:"imagebutton",group:"imagebutton"}),!o.blockless&&(e.form={label:a.forms.form.menu,command:"form",group:"form"}),o.addMenuItems(e)),o.contextMenu&&(!o.blockless&&o.contextMenu.addListener(function(e,t,n){if((e=n.contains("form",1))&&!e.isReadOnly())return{form:CKEDITOR.TRISTATE_OFF}}),o.contextMenu.addListener(function(e){if(e&&!e.isReadOnly()){var t=e.getName();if("select"==t)return{select:CKEDITOR.TRISTATE_OFF};if("textarea"==t)return{textarea:CKEDITOR.TRISTATE_OFF};if("input"==t){var n=e.getAttribute("type")||"text";switch(n){case"button":case"submit":case"reset":return{button:CKEDITOR.TRISTATE_OFF};case"checkbox":return{checkbox:CKEDITOR.TRISTATE_OFF};case"radio":return{radio:CKEDITOR.TRISTATE_OFF};case"image":return c?{imagebutton:CKEDITOR.TRISTATE_OFF}:null}if(i[n])return{textfield:CKEDITOR.TRISTATE_OFF}}if("img"==t&&"hiddenfield"==e.data("cke-real-element-type"))return{hiddenfield:CKEDITOR.TRISTATE_OFF}}})),o.on("doubleclick",function(e){var t=e.data.element;if(!o.blockless&&t.is("form"))e.data.dialog="form";else if(t.is("select"))e.data.dialog="select";else if(t.is("textarea"))e.data.dialog="textarea";else if(t.is("img")&&"hiddenfield"==t.data("cke-real-element-type"))e.data.dialog="hiddenfield";else if(t.is("input")){switch(t=t.getAttribute("type")||"text"){case"button":case"submit":case"reset":e.data.dialog="button";break;case"checkbox":e.data.dialog="checkbox";break;case"radio":e.data.dialog="radio";break;case"image":e.data.dialog="imagebutton"}i[t]&&(e.data.dialog="textfield")}})},afterInit:function(t){var e=(n=t.dataProcessor)&&n.htmlFilter,n=n&&n.dataFilter;CKEDITOR.env.ie&&e&&e.addRules({elements:{input:function(e){var t=(e=e.attributes).type;t||(e.type="text"),"checkbox"!=t&&"radio"!=t||"on"!=e.value||delete e.value}}},{applyToAll:!0}),n&&n.addRules({elements:{input:function(e){if("hidden"==e.attributes.type)return t.createFakeParserElement(e,"cke_hidden","hiddenfield")}}},{applyToAll:!0})}}),CKEDITOR.plugins.forms={_setupRequiredAttribute:function(e){this.setValue(e.hasAttribute("required"))}},CKEDITOR.plugins.add("format",{requires:"richcombo",init:function(i){if(!i.blockless){for(var e=i.config,n=i.lang.format,t=e.format_tags.split(";"),o={},a=0,r=[],s=0;s<t.length;s++){var l=t[s],c=new CKEDITOR.style(e["format_"+l]);i.filter.customConfig&&!i.filter.check(c)||(a++,o[l]=c,o[l]._.enterMode=i.config.enterMode,r.push(c))}0!==a&&i.ui.addRichCombo("Format",{label:n.label,title:n.panelTitle,toolbar:"styles,20",allowedContent:r,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(e.contentsCss),multiSelect:!1,attributes:{"aria-label":n.panelTitle}},init:function(){for(var e in this.startGroup(n.panelTitle),o){var t=n["tag_"+e];this.add(e,o[e].buildPreview(t),t)}},onClick:function(e){i.focus(),i.fire("saveSnapshot"),e=o[e];var t=i.elementPath();e.checkActive(t,i)||i.applyStyle(e),setTimeout(function(){i.fire("saveSnapshot")},0)},onRender:function(){i.on("selectionChange",function(e){var t=this.getValue();for(var n in e=e.data.path,this.refresh(),o)if(o[n].checkActive(e,i))return void(n!=t&&this.setValue(n,i.lang.format["tag_"+n]));this.setValue("")},this)},onOpen:function(){for(var e in this.showAll(),o)i.activeFilter.check(o[e])||this.hideItem(e)},refresh:function(){var e=i.elementPath();if(e){if(e.isContextFor("p"))for(var t in o)if(i.activeFilter.check(o[t]))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}}})}}}),CKEDITOR.config.format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div",CKEDITOR.config.format_p={element:"p"},CKEDITOR.config.format_div={element:"div"},CKEDITOR.config.format_pre={element:"pre"},CKEDITOR.config.format_address={element:"address"},CKEDITOR.config.format_h1={element:"h1"},CKEDITOR.config.format_h2={element:"h2"},CKEDITOR.config.format_h3={element:"h3"},CKEDITOR.config.format_h4={element:"h4"},CKEDITOR.config.format_h5={element:"h5"},CKEDITOR.config.format_h6={element:"h6"},R={canUndo:!1,exec:function(e){var t=e.document.createElement("hr");e.insertElement(t)},allowedContent:"hr",requiredContent:"hr"},CKEDITOR.plugins.add("horizontalrule",{init:function(e){e.blockless||(e.addCommand("horizontalrule",R),e.ui.addButton&&e.ui.addButton("HorizontalRule",{label:e.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"}))}}),CKEDITOR.plugins.add("htmlwriter",{init:function(e){var t=new CKEDITOR.htmlWriter;t.forceSimpleAmpersand=e.config.forceSimpleAmpersand,t.indentationChars=e.config.dataIndentationChars||"\t",e.dataProcessor.writer=t}}),CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){this.base(),this.indentationChars="\t",this.selfClosingEnd=" />",this.lineBreakChars="\n",this.sortAttributes=1,this._.indent=0,this._.indentation="",this._.inPre=0,this._.rules={};var e,t=CKEDITOR.dtd;for(e in CKEDITOR.tools.extend({},t.$nonBodyContent,t.$block,t.$listItem,t.$tableContent))this.setRules(e,{indent:!t[e]["#"],breakBeforeOpen:1,breakBeforeClose:!t[e]["#"],breakAfterClose:1,needsSpace:e in t.$block&&!(e in{li:1,dt:1,dd:1})});this.setRules("br",{breakAfterOpen:1}),this.setRules("title",{indent:0,breakAfterOpen:0}),this.setRules("style",{indent:0,breakBeforeClose:1}),this.setRules("pre",{breakAfterOpen:1,indent:0})},proto:{openTag:function(e){var t=this._.rules[e];this._.afterCloser&&t&&t.needsSpace&&this._.needsSpace&&this._.output.push("\n"),this._.indent?this.indentation():t&&t.breakBeforeOpen&&(this.lineBreak(),this.indentation()),this._.output.push("<",e),this._.afterCloser=0},openTagClose:function(e,t){var n=this._.rules[e];t?(this._.output.push(this.selfClosingEnd),n&&n.breakAfterClose&&(this._.needsSpace=n.needsSpace)):(this._.output.push(">"),n&&n.indent&&(this._.indentation+=this.indentationChars)),n&&n.breakAfterOpen&&this.lineBreak(),"pre"==e&&(this._.inPre=1)},attribute:function(e,t){"string"==typeof t&&(t=CKEDITOR.tools.htmlEncodeAttr(t),this.forceSimpleAmpersand&&(t=t.replace(/&amp;/g,"&"))),this._.output.push(" ",e,'="',t,'"')},closeTag:function(e){var t=this._.rules[e];t&&t.indent&&(this._.indentation=this._.indentation.substr(this.indentationChars.length)),this._.indent?this.indentation():t&&t.breakBeforeClose&&(this.lineBreak(),this.indentation()),this._.output.push("</",e,">"),"pre"==e&&(this._.inPre=0),t&&t.breakAfterClose&&(this.lineBreak(),this._.needsSpace=t.needsSpace),this._.afterCloser=1},text:function(e){this._.indent&&(this.indentation(),!this._.inPre&&(e=CKEDITOR.tools.ltrim(e))),this._.output.push(e)},comment:function(e){this._.indent&&this.indentation(),this._.output.push("<!--",e,"-->")},lineBreak:function(){!this._.inPre&&0<this._.output.length&&this._.output.push(this.lineBreakChars),this._.indent=1},indentation:function(){!this._.inPre&&this._.indentation&&this._.output.push(this._.indentation),this._.indent=0},reset:function(){this._.output=[],this._.indent=0,this._.indentation="",this._.afterCloser=0,this._.inPre=0,this._.needsSpace=0},setRules:function(e,t){var n=this._.rules[e];
18n?CKEDITOR.tools.extend(n,t,!0):this._.rules[e]=t}}}),CKEDITOR.plugins.add("iframe",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_iframe{background-image: url("+CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(e){var t=e.lang.iframe,n="iframe[align,longdesc,frameborder,height,name,scrolling,src,title,width]";e.plugins.dialogadvtab&&(n+=";iframe"+e.plugins.dialogadvtab.allowedContent({id:1,classes:1,styles:1})),CKEDITOR.dialog.add("iframe",this.path+"dialogs/iframe.js"),e.addCommand("iframe",new CKEDITOR.dialogCommand("iframe",{allowedContent:n,requiredContent:"iframe"})),e.ui.addButton&&e.ui.addButton("Iframe",{label:t.toolbar,command:"iframe",toolbar:"insert,80"}),e.on("doubleclick",function(e){var t=e.data.element;t.is("img")&&"iframe"==t.data("cke-real-element-type")&&(e.data.dialog="iframe")}),e.addMenuItems&&e.addMenuItems({iframe:{label:t.title,command:"iframe",group:"image"}}),e.contextMenu&&e.contextMenu.addListener(function(e){if(e&&e.is("img")&&"iframe"==e.data("cke-real-element-type"))return{iframe:CKEDITOR.TRISTATE_OFF}})},afterInit:function(t){var e=t.dataProcessor;(e=e&&e.dataFilter)&&e.addRules({elements:{iframe:function(e){return t.createFakeParserElement(e,"cke_iframe","iframe",!0)}}})}}),function(){function t(e){function t(n){var i=!1;r.attachListener(r,"keydown",function(){var e=o.getBody().getElementsByTag(n);if(!i){for(var t=0;t<e.count();t++)e.getItem(t).setCustomData("retain",!0);i=!0}},null,null,1),r.attachListener(r,"keyup",function(){var e=o.getElementsByTag(n);i&&(1==e.count()&&!e.getItem(0).getCustomData("retain")&&CKEDITOR.tools.isEmpty(e.getItem(0).getAttributes())&&e.getItem(0).remove(1),i=!1)})}var i=this.editor,o=e.document,n=o.body,a=o.getElementById("cke_actscrpt");a&&a.parentNode.removeChild(a),(a=o.getElementById("cke_shimscrpt"))&&a.parentNode.removeChild(a),(a=o.getElementById("cke_basetagscrpt"))&&a.parentNode.removeChild(a),n.contentEditable=!0,CKEDITOR.env.ie&&(n.hideFocus=!0,n.disabled=!0,n.removeAttribute("disabled")),delete this._.isLoadingData,this.$=n,o=new CKEDITOR.dom.document(o),this.setup(),this.fixInitialSelection();var r=this;CKEDITOR.env.ie&&!CKEDITOR.env.edge&&o.getDocumentElement().addClass(o.$.compatMode),CKEDITOR.env.ie&&!CKEDITOR.env.edge&&i.enterMode!=CKEDITOR.ENTER_P?t("p"):CKEDITOR.env.edge&&CKEDITOR.env.version<15&&i.enterMode!=CKEDITOR.ENTER_DIV&&t("div"),(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)&&o.getDocumentElement().on("mousedown",function(e){e.data.getTarget().is("html")&&setTimeout(function(){i.editable().focus()})}),l(i);try{i.document.$.execCommand("2D-position",!1,!0)}catch(s){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==i.document.$.compatMode)&&this.attachListener(this,"keydown",function(e){var t=e.data.getKeystroke();if(33==t||34==t)if(CKEDITOR.env.ie)setTimeout(function(){i.getSelection().scrollIntoView()},0);else if(i.window.$.innerHeight>this.$.offsetHeight){var n=i.createRange();n[33==t?"moveToElementEditStart":"moveToElementEditEnd"](this),n.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)}function l(n){function e(){var t;n.editable().attachListener(n,"selectionChange",function(){var e=n.getSelection().getSelectedElement();e&&(t&&(t.detachEvent("onresizestart",i),t=null),e.$.attachEvent("onresizestart",i),t=e.$)})}function i(e){e.returnValue=!1}if(CKEDITOR.env.gecko)try{var t=n.document.$;t.execCommand("enableObjectResizing",!1,!n.config.disableObjectResizing),t.execCommand("enableInlineTableEditing",!1,!n.config.disableNativeTableHandles)}catch(o){}
18else CKEDITOR.env.ie&&CKEDITOR.env.version<11&&n.config.disableObjectResizing&&e(n)}function c(){var e=[];if(8<=CKEDITOR.document.$.documentMode){e.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");var t,n=[];for(t in CKEDITOR.dtd.$removeEmpty)n.push("html.CSS1Compat "+t+"[contenteditable=false]");e.push(n.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(e.push("html{height:100% !important}"),e.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"));return e.push("html{cursor:text;*cursor:auto}"),e.push("img,input,textarea{cursor:default}"),e.join("\n")}var d;CKEDITOR.plugins.add("wysiwygarea",{init:function(l){l.config.fullPage&&l.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"}),l.addMode("wysiwyg",function(t){function e(e){e&&e.removeListener(),l.editable(new d(l,i.$.contentWindow.document.body)),l.setData(l.getData(1),t)}var n="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",i=(n=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(n)+"}())":"",CKEDITOR.dom.element.createFromHtml('<iframe src="'+n+'" frameBorder="0"></iframe>'));i.setStyles({width:"100%",height:"100%"}),i.addClass("cke_wysiwyg_frame").addClass("cke_reset"),(n=l.ui.space("contents")).append(i);var o=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;o&&i.on("load",e);var a=l.title,r=l.fire("ariaEditorHelpLabel",{}).label;if(a&&(CKEDITOR.env.ie&&r&&(a+=", "+r),i.setAttribute("title",a)),r){a=CKEDITOR.tools.getNextId();var s=CKEDITOR.dom.element.createFromHtml('<span id="'+a+'" class="cke_voice_label">'+r+"</span>");n.append(s,1),i.setAttribute("aria-describedby",a)}l.on("beforeModeUnload",function(e){e.removeListener(),s&&s.remove()}),i.setAttributes({tabIndex:l.tabIndex,allowTransparency:"true"}),!o&&e(),l.fire("ariaWidget",i)})}}),CKEDITOR.editor.prototype.addContentsCss=function(e){var t=this.config,n=t.contentsCss;CKEDITOR.tools.isArray(n)||(t.contentsCss=n?[n]:[]),t.contentsCss.push(e)},d=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments),this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(e){CKEDITOR.tools.setTimeout(t,0,this,e)},this),this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(e,t){var n=this.editor;if(t)this.setHtml(e),this.fixInitialSelection(),n.fire("dataReady");else{this._.isLoadingData=!0,n._.dataStore={id:1};var i=n.config,o=i.fullPage,a=i.docType,r=CKEDITOR.tools.buildStyleHtml(c()).replace(/<style>/,'<style data-cke-temp="1">');o||(r+=CKEDITOR.tools.buildStyleHtml(n.config.contentsCss));var s=i.baseHref?'<base href="'+i.baseHref+'" data-cke-temp="1" />':"";o&&(e=e.replace(/<!DOCTYPE[^>]*>/i,function(e){return n.docType=a=e,""}).replace(/<\?xml\s[^\?]*\?>/i,function(e){return n.xmlDeclaration=e,""})),e=n.dataProcessor.toHtml(e),o?(/<body[\s|>]/.test(e)||(e="<body>"+e),/<html[\s|>]/.test(e)||(e="<html>"+e+"</html>"),
19/<head[\s|>]/.test(e)?/<title[\s|>]/.test(e)||(e=e.replace(/<head[^>]*>/,"$&<title></title>")):e=e.replace(/<html[^>]*>/,"$&<head><title></title></head>"),s&&(e=e.replace(/<head[^>]*?>/,"$&"+s)),e=e.replace(/<\/head\s*>/,r+"$&"),e=a+e):e=i.docType+'<html dir="'+i.contentsLangDirection+'" lang="'+(i.contentsLanguage||n.langCode)+'"><head><title>'+this._.docTitle+"</title>"+s+r+"</head><body"+(i.bodyId?' id="'+i.bodyId+'"':"")+(i.bodyClass?' class="'+i.bodyClass+'"':"")+">"+e+"</body></html>",CKEDITOR.env.gecko&&(e=e.replace(/<body/,'<body contenteditable="true" '),CKEDITOR.env.version<2e4&&(e=e.replace(/<body[^>]*>/,"$&<!-- cke-content-start -->"))),i='<script id="cke_actscrpt" type="text/javascript"'+(CKEDITOR.env.ie?' defer="defer" ':"")+">var wasLoaded=0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+this._.frameLoadedHandler+",window);wasLoaded=1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"</script>",CKEDITOR.env.ie&&CKEDITOR.env.version<9&&(i+='<script id="cke_shimscrpt">window.parent.CKEDITOR.tools.enableHtml5Elements(document)</script>'),s&&CKEDITOR.env.ie&&CKEDITOR.env.version<10&&(i+='<script id="cke_basetagscrpt">var baseTag = document.querySelector( "base" );baseTag.href = baseTag.href;</script>'),e=e.replace(/(?=\s*<\/(:?head)>)/,i),this.clearCustomData(),this.clearListeners(),n.fire("contentDomUnload");var l=this.getDocument();try{l.write(e)}catch(d){setTimeout(function(){l.write(e)},0)}}},getData:function(e){if(e)return this.getHtml();var t=(e=this.editor).config,n=(a=t.fullPage)&&e.docType,i=a&&e.xmlDeclaration,o=this.getDocument(),a=a?o.getDocumentElement().getOuterHtml():o.getBody().getHtml();return CKEDITOR.env.gecko&&t.enterMode!=CKEDITOR.ENTER_BR&&(a=a.replace(/<br>(?=\s*(:?$|<\/body>))/,"")),a=e.dataProcessor.toDataFormat(a),i&&(a=i+"\n"+a),n&&(a=n+"\n"+a),a},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:d.baseProto.focus.call(this)},detach:function(){var e,t=this.editor,n=t.document;try{e=t.window.getFrame()}catch(i){}d.baseProto.detach.call(this),this.clearCustomData(),n.getDocumentElement().clearCustomData(),CKEDITOR.tools.removeFunction(this._.frameLoadedHandler),e&&e.getParent()?(e.clearCustomData(),(t=e.removeCustomData("onResize"))&&t.removeListener(),e.remove()):CKEDITOR.warn("editor-destroy-iframe")}}})}(),CKEDITOR.config.disableObjectResizing=!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,function(){function o(e,t){if(t||(t=e.getSelection().getSelectedElement()),t&&t.is("img")&&!t.data("cke-realelement")&&!t.isReadOnly())return t}function a(e){var t=e.getStyle("float");return"inherit"!=t&&"none"!=t||(t=0),t||(t=e.getAttribute("align")),t}CKEDITOR.plugins.add("image",{requires:"dialog",init:function(t){if(!t.plugins.detectConflict("image",["easyimage","image2"])){CKEDITOR.dialog.add("image",this.path+"dialogs/image.js");var e="img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}";CKEDITOR.dialog.isTabEnabled(t,"image","advanced")&&(e="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)"),t.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:e,requiredContent:"img[alt,src]",contentTransformations:[["img{width}
19: sizeToStyle","img[width]: sizeToAttribute"],["img{float}: alignmentToStyle","img[align]: alignmentToAttribute"]]})),t.ui.addButton&&t.ui.addButton("Image",{label:t.lang.common.image,command:"image",toolbar:"insert,10"}),t.on("doubleclick",function(e){var t=e.data.element;!t.is("img")||t.data("cke-realelement")||t.isReadOnly()||(e.data.dialog="image")}),t.addMenuItems&&t.addMenuItems({image:{label:t.lang.image.menu,command:"image",group:"image"}}),t.contextMenu&&t.contextMenu.addListener(function(e){if(o(t,e))return{image:CKEDITOR.TRISTATE_OFF}})}},afterInit:function(i){function e(n){var e=i.getCommand("justify"+n);e&&("left"!=n&&"right"!=n||e.on("exec",function(e){var t=o(i);t&&(a(t)==n?(t.removeStyle("float"),n==a(t)&&t.removeAttribute("align")):t.setStyle("float",n),e.cancel())}),e.on("refresh",function(e){var t=o(i);t&&(t=a(t),this.setState(t==n?CKEDITOR.TRISTATE_ON:"right"==n||"left"==n?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),e.cancel())}))}i.plugins.image2||(e("left"),e("right"),e("center"),e("block"))}})}(),CKEDITOR.config.image_removeLinkByEmptyURL=!0,function(){function t(t,e){var n,i;e.on("refresh",function(e){var t,n=[o];for(t in e.data.states)n.push(e.data.states[t]);this.setState(CKEDITOR.tools.search(n,a)?a:o)},e,null,100),e.on("exec",function(e){n=t.getSelection(),i=n.createBookmarks(1),e.data||(e.data={}),e.data.done=!1},e,null,0),e.on("exec",function(){t.forceNextSelectionCheck(),n.selectBookmarks(i)},e,null,100)}var o=CKEDITOR.TRISTATE_DISABLED,a=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(l){var e=CKEDITOR.plugins.indent.genericDefinition;t(l,l.addCommand("indent",new e(!0))),t(l,l.addCommand("outdent",new e)),l.ui.addButton&&(l.ui.addButton("Indent",{label:l.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),l.ui.addButton("Outdent",{label:l.lang.indent.outdent,command:"outdent",directional:!0,toolbar:"indent,10"})),l.on("dirChanged",function(e){var t=l.createRange(),n=e.data.node;t.setStartBefore(n),t.setEndAfter(n);for(var i,o=new CKEDITOR.dom.walker(t);i=o.next();)if(i.type==CKEDITOR.NODE_ELEMENT)if(!i.equals(n)&&i.getDirection())t.setStartAfter(i),o=new CKEDITOR.dom.walker(t);else{var a=l.config.indentClasses;if(a)for(var r="ltr"==e.data.dir?["_rtl",""]:["","_rtl"],s=0;s<a.length;s++)i.hasClass(a[s]+r[0])&&(i.removeClass(a[s]+r[0]),i.addClass(a[s]+r[1])
19);a=i.getStyle("margin-right"),r=i.getStyle("margin-left"),a?i.setStyle("margin-left",a):i.removeStyle("margin-left"),r?i.setStyle("margin-right",r):i.removeStyle("margin-right")}})}}),CKEDITOR.plugins.indent={genericDefinition:function(e){this.isIndent=!!e,this.startDisabled=!this.isIndent},specificDefinition:function(e,t,n){this.name=t,this.editor=e,this.jobs={},this.enterBr=e.config.enterMode==CKEDITOR.ENTER_BR,this.isIndent=!!n,this.relatedGlobal=n?"indent":"outdent",this.indentKey=n?9:CKEDITOR.SHIFT+9,this.database={}},registerCommands:function(e,t){e.on("pluginsLoaded",function(){for(var e in t)!function(t,n){var i,e=t.getCommand(n.relatedGlobal);for(i in n.jobs)e.on("exec",function(e){e.data.done||(t.fire("lockSnapshot"),n.execJob(t,i)&&(e.data.done=!0),t.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(n.database))},this,null,i),e.on("refresh",function(e){e.data.states||(e.data.states={}),e.data.states[n.name+"@"+i]=n.refreshJob(t,i,e.data.path)},this,null,i);t.addFeature(n)}(this,t[e])})}},CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}},CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(e,t){var n=this.jobs[t];if(n.state!=o)return n.exec.call(this,e)},refreshJob:function(e,t,n){return t=this.jobs[t],e.activeFilter.checkFeature(this)?t.state=t.refresh.call(this,e,n):t.state=o,t.state},getContext:function(e){return e.contains(this.context)}}}(),function(){function i(e,t,n){if(!e.getCustomData("indent_processed")){var i=this.editor,o=this.isIndent;if(t){if(n=0,(i=e.$.className.match(this.classNameRegex))&&(i=i[1],n=CKEDITOR.tools.indexOf(t,i)+1),(n+=o?1:-1)<0)return;n=Math.min(n,t.length),n=Math.max(n,0),e.$.className=CKEDITOR.tools.ltrim(e.$.className.replace(this.classNameRegex,"")),0<n&&e.addClass(t[n-1])}else{t=r(e,n),n=parseInt(e.getStyle(t),10);var a=i.config.indentOffset||40;if(isNaN(n)&&(n=0),(n+=(o?1:-1)*a)<0)return;n=Math.max(n,0),n=Math.ceil(n/a)*a,e.setStyle(t,n?n+(i.config.indentUnit||"px"):""),""===e.getAttribute("style")&&e.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,e,"indent_processed",1)}}function r(e,t){return"ltr"==(t||e.getComputedStyle("direction"))?"margin-left":"margin-right"}var s=CKEDITOR.dtd.$listItem,o=CKEDITOR.dtd.$list,l=CKEDITOR.TRISTATE_DISABLED,c=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(e){function t(){n.specificDefinition.apply(this,arguments),this.allowedContent={"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:!0,styles:a?null:"margin-left,margin-right",classes:a||null}},this.contentTransformations=[["div: splitMarginShorthand"],["h1: splitMarginShorthand"],["h2: splitMarginShorthand"],["h3: splitMarginShorthand"],["h4: splitMarginShorthand"],["h5: splitMarginShorthand"],["h6: splitMarginShorthand"],["ol: splitMarginShorthand"],["p: splitMarginShorthand"],["pre: splitMarginShorthand"],["ul: splitMarginShorthand"]],this.enterBr&&(this.allowedContent.div=!0),this.requiredContent=(this.enterBr?"div":"p")+(a?"("+a.join(",")+")":"{margin-left}"),this.jobs={20:{refresh:function(e,t){if(!(n=t.block||t.blockLimit).is(s))var n=(i=n.getAscendant(s))&&t.contains(i)||n;if(n.is(s)&&(n=n.getParent()),this.enterBr||this.getContext(t)){if(a){var i=a,o=(n=n.$.className.match(this.classNameRegex),this.isIndent);return(i=n?!o||n[1]!=i.slice(-1):o)?c:l}return this.isIndent?c:n?CKEDITOR[(parseInt(n.getStyle(r(n)),10)||0)<=0?"TRISTATE_DISABLED":"TRISTATE_OFF"]:l}return l},exec:function(e){var t,n=(n=e.getSelection())&&n.getRanges()[0];if(t=e.elementPath().contains(o))i.call(this,t,a);else for(n=n.createIterator(),e=e.config.enterMode,n.enforceRealBlocks=!0,n.enlargeBr=e!=CKEDITOR.ENTER_BR;t=n.getNextParagraph(e==CKEDITOR.ENTER_P?"p":"div");)t.isReadOnly()||i.call(this,t,a);return!0}}}}var n=CKEDITOR.plugins.indent,a=e.config.indentClasses;n.registerCommands(e,{indentblock:new t(e,"indentblock",!0),outdentblock:new t(e,"outdentblock")}),CKEDITOR.tools.extend(t.prototype,n.specificDefinition.prototype,{context:{div:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,p:1,pre:1,table:1},classNameRegex:a?new RegExp("(?:^|\\s+)("+a.join("|")+")(?=$|\\s)"):null})}})}(),function(){function o(u){function e(e){for(var t=h.startContainer,n=h.endContainer;t&&!t.getParent().equals(e);)t=t.getParent();for(;n&&!n.getParent().equals(e);)n=n.getParent();if(!t||!n)return!1;for(var i=[],o=!1;!o;)t.equals(n)&&(o=!0),i.push(t),t=t.getNext();if(i.length<1)return!1;for(t=e.getParents(!0),n=0;n<t.length;n++)if(t[n].getName&&p[t[n].getName()]){e=t[n];break}t=f.isIndent?1:-1,n=i[0],i=i[i.length-1];var a=(o=CKEDITOR.plugins.list.listToArray(e,m))[i.getCustomData("listarray_index")].indent;for(n=n.getCustomData("listarray_index");n<=i.getCustomData("listarray_index");n++)if(o[n].indent+=t,0<t){for(var r=o[n].parent,s=n-1;0<=s;s--)if(o[s].indent===t){r=o[s].parent;break}o[n].parent=new CKEDITOR.dom.element(r.getName(),r.getDocument())}for(n=i.getCustomData("listarray_index")+1;n<o.length&&o[n].indent>a;n++)o[n].indent+=t;var l;if((t=CKEDITOR.plugins.list.arrayToList(o,m,null,u.config.enterMode,e.getDirection()),!f.isIndent)&&((l=e.getParent())&&l.is("li"))){var c,d=[];for(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<d.length;n++){for(c=e=d[n];(c=c.getNext())&&c.is&&c.getName()in p;)CKEDITOR.env.needsNbspFiller&&!e.getFirst(g)&&e.append(h.document.createText("\xa0")),e.append(c);e.insertAfter(l)}return t&&u.fire("contentDomInvalidated"),!0}for(var h,f=this,m=this.database,p=this.context,t=((t=u.getSelection())&&t.getRanges()).createIterator();h=t.getNextRange();){for(var n=h.getCommonAncestor();n&&(n.type!=CKEDITOR.NODE_ELEMENT||!p[n.getName()]);){if(u.editable().equals(n)){n=!1;break}n=n.getParent()}if(n||(n=h.startPath().contains(p))&&h.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),!n){var i=h.getEnclosedNode();i&&i.type==CKEDITOR.NODE_ELEMENT&&i.getName()in p&&(h.setStartAt(i,CKEDITOR.POSITION_AFTER_START),h.setEndAt(i,CKEDITOR.POSITION_BEFORE_END),n=i)}if(n&&h.startContainer.type==CKEDITOR.NODE_ELEMENT&&h.startContainer.getName()in p&&((i=new CKEDITOR.dom.walker(h)).evaluator=a,h.startContainer=i.next()),n&&h.endContainer.type==CKEDITOR.NODE_ELEMENT&&h.endContainer.getName()in p&&((i=new CKEDITOR.dom.walker(h)).evaluator=a,h.endContainer=i.previous()),n)return e(n)}return 0}function a(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.is("li")}function g(e){return t(e)&&n(e)}
19var t=CKEDITOR.dom.walker.whitespaces(!0),n=CKEDITOR.dom.walker.bookmark(!1,!0),r=CKEDITOR.TRISTATE_DISABLED,s=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(e){function t(i){n.specificDefinition.apply(this,arguments),this.requiredContent=["ul","ol"],i.on("key",function(e){var t=i.elementPath();if("wysiwyg"==i.mode&&e.data.keyCode==this.indentKey&&t){var n=this.getContext(t);!n||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,t,n)||(i.execCommand(this.relatedGlobal),e.cancel())}},this),this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(e,t){var n=this.getContext(t),i=CKEDITOR.plugins.indentList.firstItemInPath(this.context,t,n);return n&&this.isIndent&&!i?s:r}:function(e,t){return!this.getContext(t)||this.isIndent?r:s},exec:CKEDITOR.tools.bind(o,this)}}var n=CKEDITOR.plugins.indent;n.registerCommands(e,{indentlist:new t(e,"indentlist",!0),outdentlist:new t(e,"outdentlist")}),CKEDITOR.tools.extend(t.prototype,n.specificDefinition.prototype,{context:{ol:1,ul:1}})}}),CKEDITOR.plugins.indentList={},CKEDITOR.plugins.indentList.firstItemInPath=function(e,t,n){var i=t.contains(a);return n||(n=t.contains(e)),n&&i&&i.equals(n.getFirst(a))}}(),CKEDITOR.plugins.add("smiley",{requires:"dialog",init:function(e){e.config.smiley_path=e.config.smiley_path||this.path+"images/",e.addCommand("smiley",new CKEDITOR.dialogCommand("smiley",{allowedContent:"img[alt,height,!src,title,width]",requiredContent:"img"})),e.ui.addButton&&e.ui.addButton("Smiley",{label:e.lang.smiley.toolbar,command:"smiley",toolbar:"insert,50"}),CKEDITOR.dialog.add("smiley",this.path+"dialogs/smiley.js")}}),CKEDITOR.config.smiley_images="regular_smile.png sad_smile.png wink_smile.png teeth_smile.png confused_smile.png tongue_smile.png embarrassed_smile.png omg_smile.png whatchutalkingabout_smile.png angry_smile.png angel_smile.png shades_smile.png devil_smile.png cry_smile.png lightbulb.png thumbs_down.png thumbs_up.png heart.png broken_heart.png kiss.png envelope.png".split(" "),CKEDITOR.config.smiley_descriptions="smiley;sad;wink;laugh;frown;cheeky;blush;surprise;indecision;angry;angel;cool;devil;crying;enlightened;no;yes;heart;broken heart;kiss;mail".split(";"),function(){function m(e,t){var n;if(t=void 0===t||t)n=e.getComputedStyle("text-align");else{for(;(!e.hasAttribute||!e.hasAttribute("align")&&!e.getStyle("text-align"))&&(n=e.getParent());)e=n;n=e.getStyle("text-align")||e.getAttribute("align")||""}return n&&(n=n.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,"")),!n&&t&&(n="rtl"==e.getComputedStyle("direction")?"right":"left"),n}function a(e,t,n){this.editor=e,this.name=t,this.value=n,this.context="p",t=e.config.justifyClasses;var i=e.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(t){switch(n){case"left":this.cssClassName=t[0];break;case"center":this.cssClassName=t[1];break;case"right":this.cssClassName=t[2];break;case"justify":this.cssClassName=t[3]}this.cssClassRegex=new RegExp("(?:^|\\s+)(?:"+t.join("|")+")(?=$|\\s)"),this.requiredContent=i+"("+this.cssClassName+")"}else this.requiredContent=i+"{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:!0,styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}},e.config.enterMode==CKEDITOR.ENTER_BR&&(this.allowedContent.div=!0)}function r(e){var t=e.editor,n=t.createRange();n.setStartBefore(e.data.node),n.setEndAfter(e.data.node);for(var i,o=new CKEDITOR.dom.walker(n);i=o.next();)if(i.type==CKEDITOR.NODE_ELEMENT)if(!i.equals(e.data.node)&&i.getDirection())n.setStartAfter(i),o=new CKEDITOR.dom.walker(n);else{var a=t.config.justifyClasses;a&&(i.hasClass(a[0])?(i.removeClass(a[0]),i.addClass(a[2])):i.hasClass(a[2])&&(i.removeClass(a[2]),i.addClass(a[0]))),"left"==(a=i.getStyle("text-align"))?i.setStyle("text-align","right"):"right"==a&&i.setStyle("text-align","left")}}a.prototype={exec:function(e){var t=e.getSelection(),n=e.config.enterMode;if(t){for(var i,o,a=t.createBookmarks(),r=t.getRanges(),s=this.cssClassName,l=void 0===(l=e.config.useComputedState)||l,c=r.length-1;0<=c;c--)for((i=r[c].createIterator()).enlargeBr=n!=CKEDITOR.ENTER_BR;o=i.getNextParagraph(n==CKEDITOR.ENTER_P?"p":"div");)if(!o.isReadOnly()){var d,u=o.getName();if(d=e.activeFilter.check(u+"{text-align}"),(u=e.activeFilter.check(u+"("+s+")"))||d){o.removeAttribute("align"),o.removeStyle("text-align");var h=s&&(o.$.className=CKEDITOR.tools.ltrim(o.$.className.replace(this.cssClassRegex,""))),f=this.state==CKEDITOR.TRISTATE_OFF&&(!l||m(o,!0)!=this.value);s&&u?f?o.addClass(s):h||o.removeAttribute("class"):f&&d&&o.setStyle("text-align",this.value)}}
19e.focus(),e.forceNextSelectionCheck(),t.selectBookmarks(a)}},refresh:function(e,t){var n=t.block||t.blockLimit,i=n.getName(),o=n.equals(e.editable());i=this.cssClassName?e.activeFilter.check(i+"("+this.cssClassName+")"):e.activeFilter.check(i+"{text-align}");o&&1===t.elements.length?this.setState(CKEDITOR.TRISTATE_OFF):!o&&i?this.setState(m(n,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)}},CKEDITOR.plugins.add("justify",{init:function(e){if(!e.blockless){var t=new a(e,"justifyleft","left"),n=new a(e,"justifycenter","center"),i=new a(e,"justifyright","right"),o=new a(e,"justifyblock","justify");e.addCommand("justifyleft",t),e.addCommand("justifycenter",n),e.addCommand("justifyright",i),e.addCommand("justifyblock",o),e.ui.addButton&&(e.ui.addButton("JustifyLeft",{label:e.lang.common.alignLeft,command:"justifyleft",toolbar:"align,10"}),e.ui.addButton("JustifyCenter",{label:e.lang.common.center,command:"justifycenter",toolbar:"align,20"}),e.ui.addButton("JustifyRight",{label:e.lang.common.alignRight,command:"justifyright",toolbar:"align,30"}),e.ui.addButton("JustifyBlock",{label:e.lang.common.justify,command:"justifyblock",toolbar:"align,40"})),e.on("dirChanged",r)}}})}(),CKEDITOR.plugins.add("menubutton",{requires:"button,menu",onLoad:function(){var t=function(t){var n=this._,e=n.menu;n.state!==CKEDITOR.TRISTATE_DISABLED&&(n.on&&e?e.hide():(n.previousState=n.state,e||((e=n.menu=new CKEDITOR.menu(t,{panel:{className:"cke_menu_panel",attributes:{"aria-label":t.lang.common.options}}})).onHide=CKEDITOR.tools.bind(function(){var e=this.command?t.getCommand(this.command).modes:this.modes;this.setState(!e||e[t.mode]?n.previousState:CKEDITOR.TRISTATE_DISABLED),n.on=0},this),this.onMenu&&e.addListener(this.onMenu)),this.setState(CKEDITOR.TRISTATE_ON),n.on=1,setTimeout(function(){e.show(CKEDITOR.document.getById(n.id),4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(e){delete e.panel,this.base(e),this.hasArrow="menu",this.click=t},statics:{handler:{create:function(e){return new CKEDITOR.ui.menuButton(e)}}}})},beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}}),CKEDITOR.UI_MENUBUTTON="menubutton",CKEDITOR.plugins.add("language",{requires:"menubutton",init:function(i){var e,t,n,o,a=i.config.language_list||["ar:Arabic:rtl","fr:French","es:Spanish"],r=this,s=i.lang.language,l={};for(i.addCommand("language",{allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",contextSensitive:!0,exec:function(e,t){var n=l["language_"+t];n&&e[n.style.checkActive(e.elementPath(),e)?"removeStyle":"applyStyle"](n.style)},refresh:function(e){this.setState(r.getCurrentLangElement(e)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}}),o=0;o<a.length;o++)t=(e=a[o].split(":"))[0],l[n="language_"+t]={label:e[1],langId:t,group:"language",order:o,ltr:"rtl"!=(""+e[2]).toLowerCase(),onClick:function(){i.execCommand("language",this.langId)},role:"menuitemcheckbox"},l[n].style=new CKEDITOR.style({element:"span",attributes:{lang:t,dir:l[n].ltr?"ltr":"rtl"}});l.language_remove={label:s.remove,group:"language_remove",state:CKEDITOR.TRISTATE_DISABLED,order:l.length,onClick:function(){var e=r.getCurrentLangElement(i);e&&i.execCommand("language",e.getAttribute("lang"))}},i.addMenuGroup("language",1),i.addMenuGroup("language_remove"),i.addMenuItems(l),i.ui.add("Language",CKEDITOR.UI_MENUBUTTON,{label:s.button,allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",toolbar:"bidi,30",command:"language",onMenu:function(){var e,t={},n=r.getCurrentLangElement(i);for(e in l)t[e]=CKEDITOR.TRISTATE_OFF;return t.language_remove=n?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,n&&(t["language_"+n.getAttribute("lang")]=CKEDITOR.TRISTATE_ON),t}}),i.addRemoveFormatFilter&&i.addRemoveFormatFilter(function(e){return!(e.is("span")&&e.getAttribute("dir")&&e.getAttribute("lang"))})},getCurrentLangElement:function(e){var t,n=e.elementPath();if(e=n&&n.elements,n)for(var i=0;i<e.length;i++)n=e[i],!t&&"span"==n.getName()&&n.hasAttribute("dir")&&n.hasAttribute("lang")&&(t=n);return t}}),function(){function u(e){return e.replace(/'/g,"\\$&")}function h(e){for(var t,n=e.length,i=[],o=0;o<n;o++)t=e.charCodeAt(o),i.push(t);return"String.fromCharCode("+i.join(",")+")"}function f(e,t){var n,i,o=e.plugins.link,a=o.compiledProtectionFunction.params;i=[o.compiledProtectionFunction.name,"("];for(var r=0;r<a.length;r++)n=t[o=a[r].toLowerCase()],0<r&&i.push(","),i.push("'",n?u(encodeURIComponent(t[o])):"","'");return i.push(")"),i.join("")}function t(e){var i;return(e=e.config.emailProtection||"")&&"encode"!=e&&(i={},e.replace(/^([^(]+)\(([^)]+)\)$/,function(e,t,n){i.name=t,i.params=[],n.replace(/[^,\s]+/g,function(e){i.params.push(e)})})),i}CKEDITOR.plugins.add("link",{requires:"dialog,fakeobjects",onLoad:function(){function e(e){return n.replace(/%1/g,"rtl"==e?"right":"left").replace(/%2/g,"cke_contents_"+e)}var t="background:url("+CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/
19hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",n=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+t+"padding-%1:18px;cursor:auto;}.%2 img.cke_anchor{"+t+"width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}";CKEDITOR.addCss(e("ltr")+e("rtl"))},init:function(n){var e="a[!href]";CKEDITOR.dialog.isTabEnabled(n,"link","advanced")&&(e=e.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type,download]{*}(*)")),CKEDITOR.dialog.isTabEnabled(n,"link","target")&&(e=e.replace("]",",target,onclick]")),n.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:e,requiredContent:"a[href]"})),n.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"})),n.addCommand("unlink",new CKEDITOR.unlinkCommand),n.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand),n.setKeystroke(CKEDITOR.CTRL+76,"link"),n.setKeystroke(CKEDITOR.CTRL+75,"link"),n.ui.addButton&&(n.ui.addButton("Link",{label:n.lang.link.toolbar,command:"link",toolbar:"links,10"}),n.ui.addButton("Unlink",{label:n.lang.link.unlink,command:"unlink",toolbar:"links,20"}),n.ui.addButton("Anchor",{label:n.lang.link.anchor.toolbar,command:"anchor",toolbar:"links,30"})),CKEDITOR.dialog.add("link",this.path+"dialogs/link.js"),CKEDITOR.dialog.add("anchor",this.path+"dialogs/anchor.js"),n.on("doubleclick",function(e){var t=e.data.element.getAscendant({a:1,img:1},!0);t&&!t.isReadOnly()&&(t.is("a")?(e.data.dialog=!t.getAttribute("name")||t.getAttribute("href")&&t.getChildCount()?"link":"anchor",e.data.link=t):CKEDITOR.plugins.link.tryRestoreFakeAnchor(n,t)&&(e.data.dialog="anchor"))},null,null,0),n.on("doubleclick",function(e){e.data.dialog in{link:1,anchor:1}&&e.data.link&&n.getSelection().selectElement(e.data.link)},null,null,20),n.addMenuItems&&n.addMenuItems({anchor:{label:n.lang.link.anchor.menu,command:"anchor",group:"anchor",order:1},removeAnchor:{label:n.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:n.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:n.lang.link.unlink,command:"unlink",group:"link",order:5}}),n.contextMenu&&n.contextMenu.addListener(function(e){if(!e||e.isReadOnly())return null;if(!(e=CKEDITOR.plugins.link.tryRestoreFakeAnchor(n,e))&&!(e=CKEDITOR.plugins.link.getSelectedLink(n)))return null;var t={};return e.getAttribute("href")&&e.getChildCount()&&(t={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF}),e&&e.hasAttribute("name")&&(t.anchor=t.removeAnchor=CKEDITOR.TRISTATE_OFF),t}),this.compiledProtectionFunction=t(n)},afterInit:function(n){n.dataProcessor.dataFilter.addRules({elements:{a:function(e){return e.attributes.name?e.children.length?null:n.createFakeParserElement(e,"cke_anchor","anchor"):null}}});var e=n._.elementsPath&&n._.elementsPath.filters;e&&e.push(function(e,t){if("a"==t&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(n,e)||e.getAttribute("name")&&(!e.getAttribute("href")||!e.getChildCount())))return"anchor"})}});var c=/^javascript:/,d=/^mailto:([^?]+)(?:\?(.+))?$/,m=/subject=([^;?:@&=$,\/]*)/i,p=/body=([^;?:@&=$,\/]*)/i,g=/^#(.*)$/,E=/^((?:http|https|ftp|news):\/\/)?(.*)$/,T=/^(_(?:self|top|parent|blank))$/,C=/^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/,I=/^javascript:([^(]+)\(([^)]+)\)$/,O=/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/,D=/(?:^|,)([^=]+)=(\d+|yes|no)/gi,v=/^tel:(.*)$/,b={id:"advId",dir:"advLangDir",accessKey:"advAccessKey",name:"advName",lang:"advLangCode",tabindex:"advTabIndex",title:"advTitle",type:"advContentType","class":"advCSSClasses",charset:"advCharset",style:"advStyles",rel:"advRel"};CKEDITOR.plugins.link={getSelectedLink:function(e,t){var n,i=e.getSelection(),o=i.getSelectedElement(),a=i.getRanges(),r=[];if(!t&&o&&o.is("a"))return o;for(o=0;o<a.length;o++)if((n=i.getRanges()[o]).shrink(CKEDITOR.SHRINK_ELEMENT,!0,{skipBogus:!0}),(n=e.elementPath(n.getCommonAncestor()).contains("a",1))&&t)r.push(n);else if(n)return n;return t?r:null},getEditorAnchors:function(e){for(var t,n=(i=(n=e.editable()).isInline()&&!e.plugins.divarea?e.document:n).getElementsByTag("a"),i=i.getElementsByTag("img"),o=[],a=0;t=n.getItem(a++);)(t.data("cke-saved-name")||t.hasAttribute("name"))&&o.push({name:t.data("cke-saved-name")||t.getAttribute("name"),id:t.getAttribute("id")});for(a=0;t=i.getItem(a++);)(t=this.tryRestoreFakeAnchor(e,t))&&o.push({name:t.getAttribute("name"),id:t.getAttribute("id")});return o},fakeAnchor:!0,tryRestoreFakeAnchor:function(e,t){if(t&&t.data("cke-real-element-type")&&"anchor"==t.data("cke-real-element-type")){var n=e.restoreRealElement(t);if(n.data("cke-saved-name"))return n}},parseLinkAttributes:function(e,t){var n,i=t&&(t.data("cke-saved-href")||t.getAttribute("href"))||"",r=e.plugins.link.compiledProtectionFunction,o=e.config.emailProtection,s={};if(i.match(c)&&("encode"==o?i=i.replace(C,function(e,t,n){return n=n||"","mailto:"+String.fromCharCode.apply(String,t.split(","))+n.replace(/\\'/g,"'")}):o&&i.replace(I,function(e,t,n){if(t==r.name){s.type="email",e=s.email={},t=/(^')|('$)/g;for(var i,o=(n=n.match(/[^,\s]+/g)).length,a=0;a<o;a++)i=decodeURIComponent(i=n[a].replace(t,"").replace(/\\'/g,"'")),e[r.params[a].toLowerCase()]=i;e.address=[e.name,e.domain].join("@")}}
19)),!s.type)if(o=i.match(g))s.type="anchor",s.anchor={},s.anchor.name=s.anchor.id=o[1];else if(o=i.match(v))s.type="tel",s.tel=o[1];else if(o=i.match(d)){n=i.match(m),i=i.match(p),s.type="email";var a=s.email={};a.address=o[1],n&&(a.subject=decodeURIComponent(n[1])),i&&(a.body=decodeURIComponent(i[1]))}else i&&(n=i.match(E))&&(s.type="url",s.url={},s.url.protocol=n[1],s.url.url=n[2]);if(t){if(i=t.getAttribute("target"))s.target={type:i.match(T)?i:"frame",name:i};else if(i=(i=t.data("cke-pa-onclick")||t.getAttribute("onclick"))&&i.match(O))for(s.target={type:"popup",name:i[1]};o=D.exec(i[2]);)"yes"!=o[2]&&"1"!=o[2]||o[1]in{height:1,width:1,top:1,left:1}?isFinite(o[2])&&(s.target[o[1]]=o[2]):s.target[o[1]]=!0;null!==t.getAttribute("download")&&(s.download=!0);var l;i={};for(l in b)(o=t.getAttribute(l))&&(i[b[l]]=o);(l=t.data("cke-saved-name")||i.advName)&&(i.advName=l),CKEDITOR.tools.isEmpty(i)||(s.advanced=i)}return s},getLinkAttributes:function(e,t){var n=e.config.emailProtection||"",i={};switch(t.type){case"url":n=t.url&&void 0!==t.url.protocol?t.url.protocol:"http://";var o=t.url&&CKEDITOR.tools.trim(t.url.url)||"";i["data-cke-saved-href"]=0===o.indexOf("/")?o:n+o;break;case"anchor":n=t.anchor&&t.anchor.id,i["data-cke-saved-href"]="#"+(t.anchor&&t.anchor.name||n||"");break;case"email":o=(s=t.email).address;switch(n){case"":case"encode":var a=encodeURIComponent(s.subject||""),r=encodeURIComponent(s.body||""),s=[];a&&s.push("subject="+a),r&&s.push("body="+r),s=s.length?"?"+s.join("&"):"","encode"==n?(n=["javascript:void(location.href='mailto:'+",h(o)],s&&n.push("+'",u(s),"'"),n.push(")")):n=["mailto:",o,s];break;default:n=o.split("@",2),s.name=n[0],s.domain=n[1],n=["javascript:",f(e,s)]}i["data-cke-saved-href"]=n.join("");break;case"tel":i["data-cke-saved-href"]="tel:"+t.tel}if(t.target)if("popup"==t.target.type){n=["window.open(this.href, '",t.target.name||"","', '"];var l="resizable status location toolbar menubar fullscreen scrollbars dependent".split(" ");for(o=l.length,a=function(e){t.target[e]&&l.push(e+"="+t.target[e])},s=0;s<o;s++)l[s]+=t.target[l[s]]?"=yes":"=no";a("width"),a("left"),a("height"),a("top"),n.push(l.join(","),"'); return false;"),i["data-cke-pa-onclick"]=n.join("")}else"notSet"!=t.target.type&&t.target.name&&(i.target=t.target.name);if(t.download&&(i.download=""),t.advanced){for(var c in b)(n=t.advanced[b[c]])&&(i[c]=n);i.name&&(i["data-cke-saved-name"]=i.name)}for(var d in i["data-cke-saved-href"]&&(i.href=i["data-cke-saved-href"]),c={target:1,onclick:1,"data-cke-pa-onclick":1,"data-cke-saved-name":1,download:1},t.advanced&&CKEDITOR.tools.extend(c,b),i)delete c[d];return{set:i,removed:CKEDITOR.tools.objectKeys(c)}},showDisplayTextForElement:function(e,t){var n={img:1,table:1,tbody:1,thead:1,tfoot:1,input:1,select:1,textarea:1},i=t.getSelection();return!(t.widgets&&t.widgets.focused||i&&1<i.getRanges().length)&&(!e||!e.getName||!e.is(n))}},CKEDITOR.unlinkCommand=function(){},CKEDITOR.unlinkCommand.prototype={exec:function(e){if(CKEDITOR.env.ie){var t,n=e.getSelection().getRanges()[0],i=n.getPreviousEditableNode()&&n.getPreviousEditableNode().getAscendant("a",!0)||n.getNextEditableNode()&&n.getNextEditableNode().getAscendant("a",!0);n.collapsed&&i&&(t=n.createBookmark(),n.selectNodeContents(i),n.select())}i=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1}),e.removeStyle(i),t&&(n.moveToBookmark(t),n.select())},refresh:function(e,t){var n=t.lastElement&&t.lastElement.getAscendant("a",!0);n&&"a"==n.getName()&&n.getAttribute("href")&&n.getChildCount()?this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)},contextSensitive:1,startDisabled:1,requiredContent:"a[href]",editorFocus:1},CKEDITOR.removeAnchorCommand=function(){},CKEDITOR.removeAnchorCommand.prototype={exec:function(e){var t,n=e.getSelection(),i=n.createBookmarks();n&&(t=n.getSelectedElement())&&(t.getChildCount()?t.is("a"):CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,t))?t.remove(1):(t=CKEDITOR.plugins.link.getSelectedLink(e))&&(t.hasAttribute("href")?(t.removeAttributes({name:1,"data-cke-saved-name":1}),t.removeClass("cke_anchor")):t.remove(1)),n.selectBookmarks(i)},requiredContent:"a[name]"},CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0})}(),function(){function E(t,n,e){function i(e){!(l=d[e?"getFirst":"getLast"]())||l.is&&l.isBlockBoundary()||!(c=n.root[e?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||c.is&&c.isBlockBoundary({br:1})||t.document.createElement("br")[e?"insertBefore":"insertAfter"](l)}for(var o=CKEDITOR.plugins.list.listToArray(n.root,e),a=[],r=0;r<n.contents.length;r++){var s=n.contents[r];(s=s.getAscendant("li",!0))&&!s.getCustomData("list_item_processed")&&(a.push(s),CKEDITOR.dom.element.setMarker(e,s,"list_item_processed",!0))}for(s=null,r=0;r<a.length;r++)o[s=a[r].getCustomData("listarray_index")].indent=-1;for(r=s+1;r<o.length;r++)if(o[r].indent>o[r-1].indent+1){for(a=o[r-1].indent+1-o[r].indent,s=o[r].indent;o[r]&&o[r].indent>=s;)o[r].indent+=a,r++;r--}var l,c,d=CKEDITOR.plugins.list.arrayToList(o,e,null,t.config.enterMode,n.root.getAttribute("dir")).listNode;i(!0),i(),d.replace(n.root),t.fire("contentDomInvalidated")}function e(e,t){this.name=e,this.context=this.type=t,this.allowedContent=t+" li",this.requiredContent=t}function c(e,t,n,i){
20for(var o,a;o=e[i?"getLast":"getFirst"](r);)(a=o.getDirection(1))!==t.getDirection(1)&&o.setAttribute("dir",a),o.remove(),n?o[i?"insertBefore":"insertAfter"](n):t.append(o,i)}function T(n){function e(e){var t=n[e?"getPrevious":"getNext"](y);t&&t.type==CKEDITOR.NODE_ELEMENT&&t.is(n.getName())&&(c(n,t,null,!e),n.remove(),n=t)}e(),e(1)}function u(e){return e.type==CKEDITOR.NODE_ELEMENT&&(e.getName()in CKEDITOR.dtd.$block||e.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[e.getName()]["#"]}function h(e,t,n){e.fire("saveSnapshot"),n.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var i=n.extractContents();t.trim(!1,!0);var o=t.createBookmark(),a=(r=new CKEDITOR.dom.elementPath(t.startContainer)).block,r=r.lastElement.getAscendant("li",1)||a,s=(l=new CKEDITOR.dom.elementPath(n.startContainer)).contains(CKEDITOR.dtd.$listItem),l=l.contains(CKEDITOR.dtd.$list);for(a?(a=a.getBogus())&&a.remove():l&&(a=l.getPrevious(y))&&m(a)&&a.remove(),(
20a=i.getLast())&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("br")&&a.remove(),(a=t.startContainer.getChild(t.startOffset))?i.insertBefore(a):t.startContainer.append(i),s&&(i=f(s))&&(r.contains(s)?(c(i,s.getParent(),s),i.remove()):r.append(i));n.checkStartOfBlock()&&n.checkEndOfBlock()&&(i=(l=n.startPath()).block);)i.is("li")&&(r=i.getParent(),i.equals(r.getLast(y))&&i.equals(r.getFirst(y))&&(i=r)),n.moveToPosition(i,CKEDITOR.POSITION_BEFORE_START),i.remove();n=n.clone(),i=e.editable(),n.setEndAt(i,CKEDITOR.POSITION_BEFORE_END),(n=new CKEDITOR.dom.walker(n)).evaluator=function(e){return y(e)&&!m(e)},(n=n.next())&&n.type==CKEDITOR.NODE_ELEMENT&&n.getName()in CKEDITOR.dtd.$list&&T(n),t.moveToBookmark(o),t.select(),e.fire("saveSnapshot")}function f(e){return(e=e.getLast(y))&&e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in b?e:null}var b={ol:1,ul:1},t=CKEDITOR.dom.walker.whitespaces(),R=CKEDITOR.dom.walker.bookmark(),y=function(e){return!(t(e)||R(e))},m=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(e,t,n,i,o){if(!b[e.getName()])return[];i||(i=0),n||(n=[]);for(var a=0,r=e.getChildCount();a<r;a++){var s=e.getChild(a);if(s.type==CKEDITOR.NODE_ELEMENT&&s.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(s,t,n,i+1),"li"==s.$.nodeName.toLowerCase()){var l={parent:e,indent:i,element:s,contents:[]};o?l.grandparent=o:(l.grandparent=e.getParent(),l.grandparent&&"li"==l.grandparent.$.nodeName.toLowerCase()&&(l.grandparent=l.grandparent.getParent())),t&&CKEDITOR.dom.element.setMarker(t,s,"listarray_index",n.length),n.push(l);for(var c,d=0,u=s.getChildCount();d<u;d++)(c=s.getChild(d)).type==CKEDITOR.NODE_ELEMENT&&b[c.getName()]?CKEDITOR.plugins.list.listToArray(c,t,n,i+1,l.grandparent):l.contents.push(c)}}return n},arrayToList:function(e,t,n,i,o){if(n||(n=0),!e||e.length<n+1)return null;for(var a,r,s,l=e[n].parent.getDocument(),c=new CKEDITOR.dom.documentFragment(l),d=null,u=n,h=Math.max(e[n].indent,0),f=null,m=i==CKEDITOR.ENTER_P?"p":"div";;){var p=e[u];if(a=p.grandparent,r=p.element.getDirection(1),p.indent==h){for(d&&e[u].parent.getName()==d.getName()||(d=e[u].parent.clone(!1,1),o&&d.setAttribute("dir",o),c.append(d)),f=d.append(p.element.clone(0,1)),r!=d.getDirection(1)&&f.setAttribute("dir",r),a=0;a<p.contents.length;a++)f.append(p.contents[a].clone(1,1));u++}else if(p.indent==Math.max(h,0)+1)p=e[u-1].element.getDirection(1),u=CKEDITOR.plugins.list.arrayToList(e,null,u,i,p!=r?r:null),!f.getChildCount()&&CKEDITOR.env.needsNbspFiller&&l.$.documentMode<=7&&f.append(l.createText("\xa0")),f.append(u.listNode),u=u.nextIndex;else{if(-1!=p.indent||n||!a)return null;b[a.getName()]?(f=p.element.clone(!1,!0),r!=a.getDirection(1)&&f.setAttribute("dir",r)):f=new CKEDITOR.dom.documentFragment(l);d=a.getDirection(1)!=r;var g,E,T=p.element,C=T.getAttribute("class"),I=T.getAttribute("style"),O=f.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(i!=CKEDITOR.ENTER_BR||d||I||C),D=p.contents.length;for(a=0;a<D;a++)if(g=p.contents[a],R(g)&&1<D)O?E=g.clone(1,1):f.append(g.clone(1,1));else if(g.type==CKEDITOR.NODE_ELEMENT&&g.isBlockBoundary()){d&&!g.getDirection()&&g.setAttribute("dir",r),s=g;var v=T.getAttribute("style");v&&s.setAttribute("style",v.replace(/([^;])$/,"$1;")+(s.getAttribute("style")||"")),C&&g.addClass(C),s=null,E&&(f.append(E),E=null),f.append(g.clone(1,1))}else O?(s||(s=l.createElement(m),f.append(s),d&&s.setAttribute("dir",r)),I&&s.setAttribute("style",I),C&&s.setAttribute("class",C),E&&(s.append(E),E=null),s.append(g.clone(1,1))):f.append(g.clone(1,1));E&&((s||f).append(E),E=null),f.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&u!=e.length-1&&(CKEDITOR.env.needsBrFiller&&(r=f.getLast())&&r.type==CKEDITOR.NODE_ELEMENT&&r.is("br")&&r.remove(),(r=f.getLast(y))&&r.type==CKEDITOR.NODE_ELEMENT&&r.is(CKEDITOR.dtd.$block)||f.append(l.createElement("br"))),"div"!=(r=f.$.nodeName.toLowerCase())&&"p"!=r||f.appendBogus(),c.append(f),d=null,u++}if(s=null,e.length<=u||Math.max(e[u].indent,0)<h)break}if(t)for(e=c.getFirst();e;){if(e.type==CKEDITOR.NODE_ELEMENT&&(CKEDITOR.dom.element.clearMarkers(t,e),e.getName()in CKEDITOR.dtd.$listItem&&(l=o=i=void 0,i=(n=e).getDirection()))){for(o=n.getParent();o&&!(l=o.getDirection());)o=o.getParent();i==l&&n.removeAttribute("dir")}e=e.getNextSourceNode()}return{listNode:c,nextIndex:u}}};
20var C=/^h[1-6]$/,r=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);e.prototype={exec:function(e){this.refresh(e,e.elementPath());var t=e.config,n=e.getSelection(),i=n&&n.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF)if((a=e.editable()).getFirst(y)){var o=1==i.length&&i[0];(t=o&&o.getEnclosedNode())&&t.is&&this.type==t.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else t.enterMode==CKEDITOR.ENTER_BR?a.appendBogus():i[0].fixBlock(1,t.enterMode==CKEDITOR.ENTER_P?"p":"div"),n.selectRanges(i);t=n.createBookmarks(!0);for(var a=[],r={},s=(i=i.createIterator(),0);(o=i.getNextRange())&&++s;){var l=(p=o.getBoundaryNodes()).startNode,c=p.endNode;for(l.type==CKEDITOR.NODE_ELEMENT&&"td"==l.getName()&&o.setStartAt(p.startNode,CKEDITOR.POSITION_AFTER_START),c.type==CKEDITOR.NODE_ELEMENT&&"td"==c.getName()&&o.setEndAt(p.endNode,CKEDITOR.POSITION_BEFORE_END),(o=o.createIterator()).forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;p=o.getNextParagraph();)if(!p.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(r,p,"list_block",1);l=(u=e.elementPath(p)).elements,c=0;for(var d,u=u.blockLimit,h=l.length-1;0<=h&&(d=l[h]);h--)if(b[d.getName()]&&u.contains(d)){u.removeCustomData("list_group_object_"+s),(l=d.getCustomData("list_group_object"))?l.contents.push(p):(l={root:d,contents:[p]},a.push(l),CKEDITOR.dom.element.setMarker(r,d,"list_group_object",l)),c=1;break}c||((c=u).getCustomData("list_group_object_"+s)?c.getCustomData("list_group_object_"+s).contents.push(p):(l={root:c,contents:[p]},CKEDITOR.dom.element.setMarker(r,c,"list_group_object_"+s,l),a.push(l)))}}for(d=[];0<a.length;)if(l=a.shift(),this.state==CKEDITOR.TRISTATE_OFF)if(b[l.root.getName()]){for(i=e,s=l,l=r,o=d,c=CKEDITOR.plugins.list.listToArray(s.root,l),u=[],p=0;p<s.contents.length;p++)(h=(h=s.contents[p]).getAscendant("li",!0))&&!h.getCustomData("list_item_processed")&&(u.push(h),CKEDITOR.dom.element.setMarker(l,h,"list_item_processed",!0));h=s.root.getDocument();for(var f=void 0,m=void 0,p=0;p<u.length;p++){var g=u[p].getCustomData("listarray_index");(f=c[g].parent).is(this.type)||(m=h.createElement(this.type),f.copyAttributes(m,{start:1,type:1}),m.removeStyle("list-style-type"),c[g].parent=m)}for(l=CKEDITOR.plugins.list.arrayToList(c,l,null,i.config.enterMode),c=void 0,u=l.listNode.getChildCount(),p=0;p<u&&(c=l.listNode.getChild(p));p++)c.getName()==this.type&&o.push(c);l.listNode.replace(s.root),i.fire("contentDomInvalidated")}else{for(c=e,p=d,u=(o=l).contents,i=o.root.getDocument(),s=[],1==u.length&&u[0].equals(o.root)&&(l=i.createElement("div"),u[0].moveChildren&&u[0].moveChildren(l),u[0].append(l),u[0]=l),o=o.contents[0].getParent(),h=0;h<u.length;h++)o=o.getCommonAncestor(u[h].getParent());for(f=c.config.useComputedState,c=l=void 0,f=void 0===f||f,h=0;h<u.length;h++)for(m=u[h];g=m.getParent();){if(g.equals(o)){s.push(m),!c&&m.getDirection()&&(c=1),m=m.getDirection(f),null!==l&&(l=l&&l!=m?null:m);break}m=g}if(!(s.length<1)){for(u=s[s.length-1].getNext(),h=i.createElement(this.type),p.push(h),f=p=void 0;s.length;)p=s.shift(),f=i.createElement("li"),(m=p).is("pre")||C.test(m.getName())||"false"==m.getAttribute("contenteditable")?p.appendTo(f):(p.copyAttributes(f),l&&p.getDirection()&&(f.removeStyle("direction"),f.removeAttribute("dir")),p.moveChildren(f),p.remove()),f.appendTo(h);l&&c&&h.setAttribute("dir",l),u?h.insertBefore(u):h.appendTo(o)}}else this.state==CKEDITOR.TRISTATE_ON&&b[l.root.getName()]&&E.call(this,e,l,r);for(h=0;h<d.length;h++)T(d[h]);CKEDITOR.dom.element.clearAllMarkers(r),n.selectBookmarks(t),e.focus()},refresh:function(e,t){var n=t.contains(b,1),i=t.blockLimit||t.root;n&&i.contains(n)?this.setState(n.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(d){d.blockless||(d.addCommand("numberedlist",new e("numberedlist","ol")),d.addCommand("bulletedlist",new e("bulletedlist","ul")),d.ui.addButton&&(d.ui.addButton("NumberedList",{label:d.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),d.ui.addButton("BulletedList",{label:d.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),d.on("key",function(e){var t,n=e.data.domEvent.getKey();if("wysiwyg"==d.mode&&n in{8:1,46:1}){var i=d.getSelection().getRanges()[0],o=i&&i.startPath();if(i&&i.collapsed){var a,r=8==n,s=d.editable(),l=new CKEDITOR.dom.walker(i.clone());if(l.evaluator=function(e){return y(e)&&!m(e)},l.guard=function(e,t){return!(t&&e.type==CKEDITOR.NODE_ELEMENT&&e.is("table"))},n=i.clone(),r)if((a=o.contains(b))&&i.checkBoundaryOfElement(a,CKEDITOR.START)&&(a=a.getParent())&&a.is("li")&&(a=f(a))?(a=(t=a).getPrevious(y),n.moveToPosition(a&&m(a)?a:t,CKEDITOR.POSITION_BEFORE_START)):(l.range.setStartAt(s,CKEDITOR.POSITION_AFTER_START),l.range.setEnd(i.startContainer,i.startOffset),(a=l.previous())&&a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in b||a.is("li"))&&(a.is("li")||(l.range.selectNodeContents(a),l.reset(),l.evaluator=u,a=l.previous()),t=
vendor: 4,239 bytes, line 20
20a,n.moveToElementEditEnd(t),n.moveToPosition(n.endPath().block,CKEDITOR.POSITION_BEFORE_END))),t)h(d,n,i),e.cancel();else{var c=o.contains(b);c&&i.checkBoundaryOfElement(c,CKEDITOR.START)&&(t=c.getFirst(y),i.checkBoundaryOfElement(t,CKEDITOR.START)&&(a=c.getPrevious(y),f(t)?a&&(i.moveToElementEditEnd(a),i.select()):d.execCommand("outdent"),e.cancel()))}else if(t=o.contains("li")){if(l.range.setEndAt(s,CKEDITOR.POSITION_BEFORE_END),r=(s=t.getLast(y))&&u(s)?s:t,o=0,(a=l.next())&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in b&&a.equals(s)?(o=1,a=l.next()):i.checkBoundaryOfElement(r,CKEDITOR.END)&&(o=2),o&&a){if((i=i.clone()).moveToElementEditStart(a),1==o&&(n.optimize(),!n.startContainer.equals(t))){for(t=n.startContainer;t.is(CKEDITOR.dtd.$inline);)t=(c=t).getParent();c&&n.moveToPosition(c,CKEDITOR.POSITION_AFTER_END)}2==o&&(n.moveToPosition(n.endPath().block,CKEDITOR.POSITION_BEFORE_END),i.endPath().block&&i.moveToPosition(i.endPath().block,CKEDITOR.POSITION_AFTER_START)),h(d,n,i),e.cancel()}}else l.range.setEndAt(s,CKEDITOR.POSITION_BEFORE_END),(a=l.next())&&a.type==CKEDITOR.NODE_ELEMENT&&a.is(b)&&(a=a.getFirst(y),o.block&&i.checkStartOfBlock()&&i.checkEndOfBlock()?(o.block.remove(),i.moveToElementEditStart(a),i.select()):f(a)?(i.moveToElementEditStart(a),i.select()):((i=i.clone()).moveToElementEditStart(a),h(d,n,i)),e.cancel());setTimeout(function(){d.selectionChange(1)})}}}))}})}(),CKEDITOR.plugins.liststyle={requires:"dialog,contextmenu",init:function(e){var t;e.blockless||(t=new CKEDITOR.dialogCommand("numberedListStyle",{requiredContent:"ol",allowedContent:"ol{list-style-type}[start]; li{list-style-type}[value]",contentTransformations:[["ol: listTypeToStyle"]]}),t=e.addCommand("numberedListStyle",t),e.addFeature(t),CKEDITOR.dialog.add("numberedListStyle",this.path+"dialogs/liststyle.js"),t=new CKEDITOR.dialogCommand("bulletedListStyle",{requiredContent:"ul",allowedContent:"ul{list-style-type}",contentTransformations:[["ul: listTypeToStyle"]]}),t=e.addCommand("bulletedListStyle",t),e.addFeature(t),CKEDITOR.dialog.add("bulletedListStyle",this.path+"dialogs/liststyle.js"),e.addMenuGroup("list",108),e.addMenuItems({numberedlist:{label:e.lang.liststyle.numberedTitle,group:"list",command:"numberedListStyle"},bulletedlist:{label:e.lang.liststyle.bulletedTitle,group:"list",command:"bulletedListStyle"}}),e.contextMenu.addListener(function(e){if(!e||e.isReadOnly())return null;for(;e;){var t=e.getName();if("ol"==t)return{numberedlist:CKEDITOR.TRISTATE_OFF};if("ul"==t)return{bulletedlist:CKEDITOR.TRISTATE_OFF};e=e.getParent()}return null}))}},CKEDITOR.plugins.add("liststyle",CKEDITOR.plugins.liststyle),function(){function d(e,t,n){return C(t)&&C(n)&&n.equals(t.getNext(function(e){return!(J(e)||Z(e)||I(e))}))}function u(e){this.upper=e[0],this.lower=e[1],this.set.apply(this,e.slice(2))}function c(e){var t=e.element;if(t&&C(t)&&(t=t.getAscendant(e.triggers,!0))&&e.editable.contains(t)){var n=r(t);if("true"==n.getAttribute("contenteditable"))return t;if(n.is(e.triggers))return n}return null}function h(e,t,n){return K(e,t),K(e,n),e=t.size.bottom,n=n.size.top,e&&n?0|(e+n)/2:e||n}function f(t,e,n){return e[n?"getPrevious":"getNext"](function(e){return e&&e.type==CKEDITOR.NODE_TEXT&&!J(e)||C(e)&&!I(e)&&!T(t,e)})}function m(e,t,n){return t<e&&e<n}function r(e,t){if(e.data("cke-editable"))return null;for(t||(e=e.getParent());e&&!e.data("cke-editable");){if(e.hasAttribute("contenteditable"))return e;e=e.getParent()}return null}function p(c){var e=c.doc,t=i('<span contenteditable="false" data-cke-magic-line="1" style="'+V+"position:absolute;border-top:1px dashed "+c.boxColor+'"></span>',e),n=CKEDITOR.getUrl(this.path+"images/"+(N.hidpi?"hidpi/":"")+"icon"+(c.rtl?"-rtl":"")+".png");for(x(t,{attach:function(){return this.wrap.getParent()||this.wrap.appendTo(c.editable,!0),this},lineChildren:[x(i('<span title="'+c.editor.lang.magicline.title+'" contenteditable="false">&#8629;</span>',e),{base:V+"height:17px;width:17px;"+(c.rtl?"left":"right")+":17px;background:url("+n+") center no-repeat "+c.boxColor+";cursor:pointer;"+(N.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(N.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px; border-radius: 2px;
20","top:-17px; border-radius: 2px 2px 0px 0px;","top:-1px; border-radius: 0px 0px 2px 2px;"]}),x(i(X,e),{base:G+"left:0px;border-left-color:"+c.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"]}),x(i(X,e),{base:G+"right:0px;border-right-color:"+c.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(){return this.wrap.getParent()&&this.wrap.remove(),this},mouseNear:function(){K(c,this);var e=c.holdDistance,t=this.size;return!!(t&&m(c.mouse.y,t.top-e,t.bottom+e)&&m(c.mouse.x,t.left-e,t.right+e))},place:function(){var e=c.view,t=c.editable,n=c.trigger,i=n.upper,o=n.lower,a=i||o,r=a.getParent(),s={};for(var l in this.trigger=n,i&&K(c,i,!0),o&&K(c,o,!0),K(c,r,!0),c.inInlineMode&&k(c,!0),r.equals(t)?(s.left=e.scroll.x,s.right=-e.scroll.x,s.width=""):(s.left=a.size.left-a.size.margin.left+e.scroll.x-(c.inInlineMode?e.editable.left+e.editable.border.left:0),s.width=a.size.outerWidth+a.size.margin.left+a.size.margin.right+e.scroll.x,s.right=""),i&&o?s.top=i.size.margin.bottom===o.size.margin.top?0|i.size.bottom+i.size.margin.bottom/2:i.size.margin.bottom<o.size.margin.top?i.size.bottom+i.size.margin.bottom:i.size.bottom+i.size.margin.bottom-o.size.margin.top:i?o||(s.top=i.size.bottom+i.size.margin.bottom):s.top=o.size.top-o.size.margin.top,n.is($)||m(s.top,e.scroll.y-15,e.scroll.y+5)?(s.top=c.inInlineMode?0:e.scroll.y,this.look($)):n.is(H)||m(s.top,e.pane.bottom-5,e.pane.bottom+15)?(s.top=c.inInlineMode?e.editable.height+e.editable.padding.top+e.editable.padding.bottom:e.pane.bottom-1,this.look(H
20)):(c.inInlineMode&&(s.top-=e.editable.top+e.editable.border.top),this.look(q)),c.inInlineMode&&(s.top--,s.top+=e.editable.scroll.top,s.left+=e.editable.scroll.left),s)s[l]=CKEDITOR.tools.cssLength(s[l]);this.setStyles(s)},look:function(e){if(this.oldLook!=e){for(var t,n=this.lineChildren.length;n--;)(t=this.lineChildren[n]).setAttribute("style",t.base+t.looks[0|e/2]);this.oldLook=e}},wrap:new s("span",c.doc)}),e=t.lineChildren.length;e--;)t.lineChildren[e].appendTo(t);t.look(q),t.appendTo(t.wrap),t.unselectable(),t.lineChildren[0].on("mouseup",function(e){t.detach(),g(c,function(e){var t=c.line.trigger;e[t.is(F)?"insertBefore":"insertAfter"](t.is(F)?t.lower:t.upper)},!0),c.editor.focus(),N.ie||c.enterMode==CKEDITOR.ENTER_BR||c.hotNode.scrollIntoView(),e.data.preventDefault(!0)}),t.on("mousedown",function(e){e.data.preventDefault(!0)}),c.line=t}function g(e,t,n){var i,o=new CKEDITOR.dom.range(e.doc),a=e.editor;N.ie&&e.enterMode==CKEDITOR.ENTER_BR?i=e.doc.createText(j):(i=(i=r(e.element,!0))&&i.data("cke-enter-mode")||e.enterMode,(i=new s(l[i],e.doc)).is("br")||e.doc.createText(j).appendTo(i)),n&&a.fire("saveSnapshot"),t(i),o.moveToPosition(i,CKEDITOR.POSITION_AFTER_START),a.getSelection().selectRanges([o]),e.hotNode=i,n&&a.fire("saveSnapshot")}function E(o,a){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function i(t){var e=N.ie&&N.version<9?" ":j,n=o.hotNode&&o.hotNode.getText()==e&&o.element.equals(o.hotNode)&&o.lastCmdDirection===!!a;g(o,function(e){n&&o.hotNode&&o.hotNode.remove(),e[a?"insertAfter":"insertBefore"](t),e.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!a}),o.lastCmdDirection=!!a}),N.ie||o.enterMode==CKEDITOR.ENTER_BR||o.hotNode.scrollIntoView(),o.line.detach()}return function(e){var t,n;(e=(e=e.getSelection().getStartElement()).getAscendant(W,1),v(o,e)||!e||e.equals(o.editable)||e.contains(o.editable))||((t=r(e))&&"false"==t.getAttribute("contenteditable")&&(e=t),o.element=e,C(t=f(o,e,!a))&&t.is(o.triggers)&&t.is(U)&&(!f(o,t,!a)||(n=f(o,t,!a))&&C(n)&&n.is(o.triggers))?i(t):C(n=c(o,e))&&(f(o,n,!a)?(e=f(o,n,!a))&&C(e)&&e.is(o.triggers)&&i(n):i(n)))}}()}}function T(e,t){if(!t||t.type!=CKEDITOR.NODE_ELEMENT||!t.$)return!1;var n=e.line;return n.wrap.equals(t)||n.wrap.contains(t)}function C(e){return e&&e.type==CKEDITOR.NODE_ELEMENT&&e.$}function I(e){return!!C(e)&&((t=O(e))||(C(e)?t=!(!(t={left:1,right:1,center:1})[e.getComputedStyle("float")]&&!t[e.getAttribute("align")]):t=!1),t);var t}function O(e){return!!{absolute:1,fixed:1}[e.getComputedStyle("position")]}function D(e,t){return C(t)?t.is(e.triggers):null}function v(e,t){if(!t)return!1;for(var n=t.getParents(1),i=n.length;i--;)for(var o=e.tabuList.length;o--;)if(n[i].hasAttribute(e.tabuList[o]))return!0;return!1}function b(t,e,n){return!!(e=e[n?"getLast":"getFirst"](function(e){return t.isRelevant(e)&&!e.is(o)}))&&(K(t,e),n?e.size.top>t.mouse.y:e.size.bottom<t.mouse.y)}function R(e){var t=e.editable,n=e.mouse,i=e.view,o=e.triggerOffset;k(e);var a=n.y>(e.inInlineMode?i.editable.top+i.editable.height/2:Math.min(i.editable.height,i.pane.height)/2);return(t=t[a?"getLast":"getFirst"](function(e){return!(J(e)||Z(e))}))?(T(e,t)&&(t=e.line.wrap[a?"getPrevious":"getNext"](function(e){return!(J(e)||Z(e))})),C(t)&&!I(t)&&D(e,t)?(K(e,t),!a&&0<=t.size.top&&m(n.y,0,t.size.top+o)?(e=e.inInlineMode||0===i.scroll.y?$:q,new u([null,t,F,M,e])):a&&t.size.bottom<=i.pane.height&&m(n.y,t.size.bottom-o,i.pane.height)?(e=e.inInlineMode||m(t.size.bottom,i.pane.height-o,i.pane.height)?H:q,new u([t,null,B,M,e])):null):null):null}function y(e){var t=e.mouse,n=e.view,i=e.triggerOffset,o=c(e);if(!o)return null;K(e,o);i=Math.min(i,0|o.size.outerHeight/2);var a,r,s=[];if(m(t.y,o.size.top-1,o.size.top+i))r=!1;else{if(!m(t.y,o.size.bottom-i,o.size.bottom+1))return null;r=!0}if(I(o)||b(e,o,r)||o.getParent().is(z))return null;var l=f(e,o,!r);if(l){if(l&&l.type==CKEDITOR.NODE_TEXT)return null;if(C(l)){if(I(l)||!D(e,l)||l.getParent().is(z))return null;s=[l,o][r?"reverse":"concat"]().concat([P,M])}}else o.equals(e.editable[r?"getLast":"getFirst"](e.isRelevant))?(k(e),r&&m(t.y,o.size.bottom-i,n.pane.height)&&m(o.size.bottom,n.pane.height-i,n.pane.height)?a=H:m(t.y,0,o.size.top+i)&&(a=$)):a=q,s=[null,o][r?"reverse":"concat"]().concat([r?B:F,M,a,o.equals(e.editable[r?"getLast":"getFirst"](e.isRelevant))?r?H:$:q]);return 0 in s?new u(s):null}function _(e,t,n,i){for(var o=t.getDocumentPosition(),a={},r={},s={},l={},c=ee.length;c--;)a[ee[c]]=parseInt(t.getComputedStyle.call(t,"border-"+ee[c]+"-width"),10)||0,s[ee[c]]=parseInt(t.getComputedStyle.call(t,"padding-"+ee[c]),10)||0,r[ee[c]]=parseInt(t.getComputedStyle.call(t,"margin-"+ee[c]),10)||0;return n&&!i||w(e,i),l.top=o.y-(n?0:e.view.scroll.y),l.left=o.x-(n?0:e.view.scroll.x),l.outerWidth=t.$.offsetWidth,l.outerHeight=t.$.offsetHeight,l.height=l.outerHeight-(s.top+s.bottom+a.top+a.bottom),l.width=l.outerWidth-(s.left+s.right+a.left+a.right),l.bottom=l.top+l.outerHeight,l.right=l.left+l.outerWidth,e.inInlineMode&&(l.scroll={top:t.$.scrollTop,left:t.$.scrollLeft}),x({border:a,padding:s,margin:r,ignoreScroll:n},l,!0)}function K(e,t,n){if(!C(t))return t.size=null;if(t.size){if(t.size.ignoreScroll==n&&t.size.date>new Date-a)return null}else t.size={};return x(t.size,_(e,t,n),{date:+new Date},!0)}function k(e,t){e.view.editable=_(e,e.editable,t,!0)}function w(e,t){e.view||(e.view={});var n=e.view;if(!(!t&&n&&n.date>new Date-a)){n=(i=e.win).getScrollPosition();var i=i.getViewPaneSize();x(e.view,{scroll:{x:n.x,y:n.y,width:e.doc.$.documentElement.scrollWidth-i.width,height:e.doc.$.documentElement.scrollHeight-i.height},pane:{width:i.width,height:i.height,bottom:i.height+n.y},date:+new Date},!0)}}function S(e,t,n,i){for(var o=i,a=i,r=0,s=!1,l=!1,c=e.view.pane.height,d=e.mouse;d.y+r<c&&0<d.y-r&&(s||(s=t(o,i)),l||(l=t(a,i)),!s&&0<d.y-r&&(o=n(e,{x:d.x,y:d.y-r})),!l&&d.y+r<c&&(a=n(e,{x:d.x,y:d.y+r})),!s||!l);)r+=2;
vendor: 4,128 bytes, line 20
20return new u([o,a,null,null])}CKEDITOR.plugins.add("magicline",{init:function(o){var i,a,r,s=o.config,e=s.magicline_triggerOffset||30,l={editor:o,enterMode:s.enterMode,triggerOffset:e,holdDistance:0|e*(s.magicline_holdDistance||.5),boxColor:s.magicline_color||"#ff0000",rtl:"rtl"==s.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(s.magicline_tabuList||[]),triggers:s.magicline_everywhere?W:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}};l.isRelevant=function(e){return C(e)&&!T(l,e)&&!I(e)},o.on("contentDom",function(){var e=o.editable(),t=o.document,n=o.window;x(l,{editable:e,inInlineMode:e.isInline(),doc:t,win:n,hotNode:null},!0),l.boundary=l.inInlineMode?l.editable:l.doc.getDocumentElement(),e.is(L.$inline)||(l.inInlineMode&&!O(e)&&e.setStyles({position:"relative",top:null,left:null}),p.call(this,l),w(l),e.attachListener(o,"beforeUndoImage",function(){l.line.detach()}),e.attachListener(o,"beforeGetData",function(){l.line.wrap.getParent()&&(l.line.detach(),o.once("getData",function(){l.line.attach()},null,null,1e3))},null,null,0),e.attachListener(l.inInlineMode?t:t.getWindow().getFrame(),"mouseout",function(e){if("wysiwyg"==o.mode)if(l.inInlineMode){var t=e.data.$.clientX;e=e.data.$.clientY,w(l),k(l,!0);var n=l.view.editable,i=l.view.scroll;t>n.left-i.x&&t<n.right-i.x&&e>n.top-i.y&&e<n.bottom-i.y||(clearTimeout(r),r=null,l.line.detach())}else clearTimeout(r),r=null,l.line.detach()}),e.attachListener(e,"keyup",function(){l.hiddenMode=0}),e.attachListener(e,"keydown",function(e){if("wysiwyg"==o.mode)switch(e.data.getKeystroke()){case 2228240:case 16:l.hiddenMode=1,l.line.detach()}}),e.attachListener(l.inInlineMode?e:t,"mousemove",function(e){if(a=!0,"wysiwyg"==o.mode&&!o.readOnly&&!r){var t={x:e.data.$.clientX,y:e.data.$.clientY};r=setTimeout(function(){l.mouse=t,r=l.trigger=null,w(l),a&&!l.hiddenMode&&o.focusManager.hasFocus&&!l.line.mouseNear()&&(l.element=Y(l,!0))&&((l.trigger=R(l)||y(l)||Q(l))&&!v(l,l.trigger.upper||l.trigger.lower)?l.line.attach().place():(l.trigger=null,l.line.detach()),a=!1)},30)}}),e.attachListener(n,"scroll",function(){"wysiwyg"==o.mode&&(l.line.detach(),N.webkit&&(l.hiddenMode=1,clearTimeout(i),i=setTimeout(function(){l.mouseDown||(l.hiddenMode=0)},50)))}),e.attachListener(A?t:n,"mousedown",function(){"wysiwyg"==o.mode&&(l.line.detach(),l.hiddenMode=1,l.mouseDown=1)}),e.attachListener(A?t:n,"mouseup",function(){l.hiddenMode=0,l.mouseDown=0}),o.addCommand("accessPreviousSpace",E(l)),o.addCommand("accessNextSpace",E(l,!0)),o.setKeystroke([[s.magicline_keystrokePrevious,"accessPreviousSpace"],[s.magicline_keystrokeNext,"accessNextSpace"]]),o.on("loadSnapshot",function(){var e,t,n,i;for(i in{p:1,br:1,div:1})for(n=(e=o.document.getElementsByTag(i)).count();n--;)if((t=e.getItem(n)).data("cke-magicline-hot"))return l.hotNode=t,void(l.lastCmdDirection="true"===t.data("cke-magicline-dir"))}),this.backdoor={accessFocusSpace:g,boxTrigger:u,isLine:T,getAscendantTrigger:c,getNonEmptyNeighbour:f,getSize:_,that:l,triggerEdge:y,triggerEditable:R,triggerExpand:Q})},this)}});var x=CKEDITOR.tools.extend,s=CKEDITOR.dom.element,i=s.createFromHtml,N=CKEDITOR.env,A=CKEDITOR.env.ie&&CKEDITOR.env.version<9,L=CKEDITOR.dtd,l={},F=128,B=64,P=32,M=16,$=4,H=2,q=1,j="\xa0",z=L.$listItem,o=L.$tableContent,U=x({},L.$nonEditable,L.$empty),W=L.$block,a=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;",G=V+"border-color:transparent;display:block;border-style:solid;",X="<span>"+j+"</span>";l[CKEDITOR.ENTER_BR]="br",l[CKEDITOR.ENTER_P]="p",l[CKEDITOR.ENTER_DIV]="div",u.prototype={set:function(e,t,n){return this.properties=e+t+(n||q),this},is:function(e){return(this.properties&e)==e}};var Y=function(){function r(e,t){var n=e.$.elementFromPoint(t.x,t.y);return n&&n.nodeType?new CKEDITOR.dom.element(n):null}return function(e,t,n){if(!e.mouse)return null;var i=e.doc,o=e.line.wrap,a=r(i,n=n||e.mouse);return t&&T(e,a)&&(o.hide(),a=r(i,n),o.show()),!a||a.type!=CKEDITOR.NODE_ELEMENT||!a.$||N.ie&&N.version<9&&!e.boundary.equals(a)&&!e.boundary.contains(a)?null:a}}
20(),J=CKEDITOR.dom.walker.whitespaces(),Z=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),Q=function(){function o(t){var e,n,i;if(!C(l=t.element)||l.contains(t.editable)||l.isReadOnly())return null;if(e=(i=S(t,function(e,t){return!t.equals(e)},function(e,t){return Y(e,!0,t)},l)).upper,n=i.lower,d(t,e,n))return i.set(P,8);if(e&&l.contains(e))for(;!e.getParent().equals(l);)e=e.getParent();else e=l.getFirst(function(e){return c(t,e)});if(n&&l.contains(n))for(;!n.getParent().equals(l);)n=n.getParent();else n=l.getLast(function(e){return c(t,e)});if(!e||!n)return null;if(K(t,e),K(t,n),!m(t.mouse.y,e.size.top,n.size.bottom))return null;for(var o,a,r,s,l=Number.MAX_VALUE;n&&!n.equals(e)&&(a=e.getNext(t.isRelevant));)(o=Math.abs(h(t,e,a)-t.mouse.y))<l&&(l=o,r=e,s=a),K(t,e=a);return r&&s&&m(t.mouse.y,r.size.top,s.size.bottom)?(i.upper=r,i.lower=s,i.set(P,8)):null}function c(e,t){return!(t&&t.type==CKEDITOR.NODE_TEXT||Z(t)||I(t)||T(e,t)||t.type==CKEDITOR.NODE_ELEMENT&&t.$&&t.is("br"))}return function(e){var t,n=o(e);if(t=n){t=n.upper;var i=n.lower;t=!(!t||!i||I(i)||I(t)||i.equals(t)||t.equals(i)||i.contains(t)||t.contains(i))&&!!(D(e,t)&&D(e,i)&&d(e,t,i))}return t?n:null}}(),ee=["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(e){if(!e||e.type!=CKEDITOR.NODE_ELEMENT||"form"!=e.getName())return[];for(var t=[],n=["style","className"],i=0;i<n.length;i++){var o=e.$.elements.namedItem(n[i]);o&&(o=new CKEDITOR.dom.element(o),t.push([o,o.nextSibling]),o.remove())}return t}function r(e,t){if(e&&e.type==CKEDITOR.NODE_ELEMENT&&"form"==e.getName()&&0<t.length)for(var n=t.length-1;0<=n;n--){var i=t[n][0],o=t[n][1];o?i.insertBefore(o):i.appendTo(e)}}function m(e,t){var n=a(e),i={},o=e.$;return t||(i["class"]=o.className||"",o.className=""),i.inline=o.style.cssText||"",t||(o.style.cssText="position: static; overflow: visible"),r(n),i}function p(e,t){var n=a(e),i=e.$;"class"in t&&(i.className=t["class"]),"inline"in t&&(i.style.cssText=t.inline),r(n)}function g(e){if(!e.editable().isInline()){var t,n=CKEDITOR.instances;for(t in n){var i=n[t];"wysiwyg"!=i.mode||i.readOnly||((i=i.document.getBody()).setAttribute("contentEditable",!1),i.setAttribute("contentEditable",!0))}e.editable().hasFocus&&(e.toolbox.focus(),e.focus())}}CKEDITOR.plugins.add("maximize",{init:function(a){function r(){var e=h.getViewPaneSize();a.resize(e.width,e.height,null,!0)}if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var s,l,c,d=a.lang,u=CKEDITOR.document,h=u.getWindow(),f=CKEDITOR.TRISTATE_OFF;a.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var e=a.container.getFirst(function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasClass("cke_inner")}),t=a.ui.space("contents");if("wysiwyg"==a.mode){var n=a.getSelection();s=n&&n.getRanges(),l=h.getScrollPosition()}else{var i=a.editable().$;s=!CKEDITOR.env.ie&&[i.selectionStart,i.selectionEnd],l=[i.scrollLeft,i.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){for(h.on("resize",r),c=h.getScrollPosition(),n=a.container;n=n.getParent();)n.setCustomData("maximize_saved_styles",m(n)),n.setStyle("z-index",a.config.baseFloatZIndex-5);t.setCustomData("maximize_saved_styles",m(t,!0)),e.setCustomData("maximize_saved_styles",m(e,!0)),t={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0},u.getDocumentElement().setStyles(t),!CKEDITOR.env.gecko&&u.getDocumentElement().setStyle("position","fixed"),CKEDITOR.env.gecko&&CKEDITOR.env.quirks||u.getBody().setStyles(t),CKEDITOR.env.ie?setTimeout(function(){h.$.scrollTo(0,0)},0):h.$.scrollTo(0,0),e.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute"),e.$.offsetLeft,e.setStyles({"z-index":a.config.baseFloatZIndex-5,left:"0px",top:"0px"}),e.addClass("cke_maximized"),r(),t=e.getDocumentPosition(),e.setStyles({left:-1*t.x+"px",top:-1*t.y+"px"}),CKEDITOR.env.gecko&&g(a)}else if(this.state==CKEDITOR.TRISTATE_ON){h.removeListener("resize",r);n=[t,e];for(var o=0;o<n.length;o++)p(n[o],n[o].getCustomData("maximize_saved_styles")),n[o].removeCustomData("maximize_saved_styles");for(n=a.container;n=n.getParent();)p(n,n.getCustomData("maximize_saved_styles")),n.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){h.$.scrollTo(c.x,c.y)}
20,0):h.$.scrollTo(c.x,c.y),e.removeClass("cke_maximized"),CKEDITOR.env.webkit&&(e.setStyle("display","inline"),setTimeout(function(){e.setStyle("display","block")},0)),a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:t.$.offsetHeight,outerWidth:a.container.$.offsetWidth})}this.toggleState(),(n=this.uiItems[0])&&(t=this.state==CKEDITOR.TRISTATE_OFF?d.maximize.maximize:d.maximize.minimize,(n=CKEDITOR.document.getById(n._.id)).getChild(1).setHtml(t),n.setAttribute("title",t),n.setAttribute("href",'javascript:void("'+t+'");')),"wysiwyg"==a.mode?s?(CKEDITOR.env.gecko&&g(a),a.getSelection().selectRanges(s),(i=a.getSelection().getStartElement())&&i.scrollIntoView(!0)):h.$.scrollTo(l.x,l.y):(s&&(i.selectionStart=s[0],i.selectionEnd=s[1]),i.scrollLeft=l[0],i.scrollTop=l[1]),s=l=null,f=this.state,a.fire("maximize",this.state)},canUndo:!1}),a.ui.addButton&&a.ui.addButton("Maximize",{label:d.maximize.maximize,command:"maximize",toolbar:"tools,10"}),a.on("mode",function(){var e=a.getCommand("maximize");e.setState(e.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:f)},null,null,100)}}})}(),CKEDITOR.plugins.add("newpage",{init:function(e){e.addCommand("newpage",{modes:{wysiwyg:1,source:1},exec:function(e){var t=this;e.setData(e.config.newpage_html||"",function(){e.focus(),setTimeout(function(){e.fire("afterCommandExec",{name:"newpage",command:t}),e.selectionChange()},200)})},async:!0}),e.ui.addButton&&e.ui.addButton("NewPage",{label:e.lang.newpage.toolbar,command:"newpage",toolbar:"document,20"})}}),function(){function r(e){return{"aria-label":e,"class":"cke_pagebreak",contenteditable:"false","data-cke-display-name":"pagebreak","data-cke-pagebreak":1,style:"page-break-after: always",title:e}}CKEDITOR.plugins.add("pagebreak",{requires:"fakeobjects",onLoad:function(){var e=("background:url("+CKEDITOR.getUrl(this.path+"images/pagebreak.gif")+") no-repeat center center;clear:both;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;padding:0;height:7px;cursor:default;").replace(/;/g," !important;");CKEDITOR.addCss("div.cke_pagebreak{"+e+"}")},init:function(t){
21t.blockless||(t.addCommand("pagebreak",CKEDITOR.plugins.pagebreakCmd),t.ui.addButton&&t.ui.addButton("PageBreak",{label:t.lang.pagebreak.toolbar,command:"pagebreak",toolbar:"insert,70"}),CKEDITOR.env.webkit&&t.on("contentDom",function(){t.document.on("click",function(e){(e=e.data.getTarget()).is("div")&&e.hasClass("cke_pagebreak")&&t.getSelection().selectElement(e)})}))},afterInit:function(t){function n(e){CKEDITOR.tools.extend(e.attributes,r(t.lang.pagebreak.alt),!0),e.children.length=0}var e=(i=t.dataProcessor)&&i.dataFilter,i=i&&i.htmlFilter,o=/page-break-after\s*:\s*always/i,a=/display\s*:\s*none/i;i&&i.addRules({attributes:{"class":function(e,t){var n=e.replace("cke_pagebreak","");if(n!=e){var i=CKEDITOR.htmlParser.fragment.fromHtml('<span style="display: none;">&nbsp;</span>').children[0];t.children.length=0,t.add(i),delete(i=t.attributes)["aria-label"],delete i.contenteditable,delete i.title}return n}}},{applyToAll:!0,priority:5}),e&&e.addRules({elements:{div:function(e){if(e.attributes["data-cke-pagebreak"])n(e);else if(o.test(e.attributes.style)){var t=e.children[0];t&&"span"==t.name&&a.test(t.attributes.style)&&n(e)}}}})}}),CKEDITOR.plugins.pagebreakCmd={exec:function(e){var t=e.document.createElement("div",{attributes:r(e.lang.pagebreak.alt)});e.insertElement(t)},context:"div",allowedContent:{div:{styles:"!page-break-after"},span:{match:function(e){return(e=e.parent)&&"div"==e.name&&e.styles&&e.styles["page-break-after"]},styles:"display"}},requiredContent:"div{page-break-after}"}}(),y={canUndo:!1,async:!0,exec:function(e,t){var n=e.lang,i=CKEDITOR.tools.keystrokeToString(n.common.keyboard,e.getCommandKeystroke(CKEDITOR.env.ie?e.commands.paste:this)),o=t&&"undefined"!=typeof t.notification?t.notification:!t||!t.from||"keystrokeHandler"===t.from&&CKEDITOR.env.ie;n=o&&"string"==typeof o?o:n.pastetext.pasteNotification.replace(/%1/,'<kbd aria-label="'+i.aria+'">'+i.display+"</kbd>");e.execCommand("paste",{type:"text",notification:!!o&&n})}},CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(t){var e=CKEDITOR.env.safari?CKEDITOR.CTRL+CKEDITOR.ALT+CKEDITOR.SH
21IFT+86:CKEDITOR.CTRL+CKEDITOR.SHIFT+86;t.addCommand("pastetext",y),t.setKeystroke(e,"pastetext"),CKEDITOR.plugins.clipboard.addPasteButton(t,"PasteText",{label:t.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"}),t.config.forcePasteAsPlainText&&t.on("beforePaste",function(e){"html"!=e.data.type&&(e.data.type="text")}),t.on("pasteState",function(e){t.getCommand("pastetext").setState(e.data)})}}),function(){function c(e,t,n){var i=CKEDITOR.cleanWord;return i?n():(e=CKEDITOR.getUrl(e.config.pasteFromWordCleanupFile||t+"filter/default.js"),CKEDITOR.scriptLoader.load(e,n,null,!0)),!i}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(r){function e(e){var t,n=CKEDITOR.plugins.pastefromword&&CKEDITOR.plugins.pastefromword.images,i=[];if(n&&e.editor.filter.check("img[src]")&&(0!==(t=n.extractTagsFromHtml(e.data.dataValue)).length&&(0!==(n=n.extractFromRtf(e.data.dataTransfer["text/rtf"])).length&&(CKEDITOR.tools.array.forEach(n,function(e){i.push(e.type?"data:"+e.type+";base64,"+CKEDITOR.tools.convertBytesToBase64(CKEDITOR.tools.convertHexStringToBytes(e.hex)):null)},this),t.length===i.length))))for(n=0;n<t.length;n++)0===t[n].indexOf("file://")&&i[n]&&(e.data.dataValue=e.data.dataValue.replace(t[n],i[n]))}var s=0,l=this.path,t=void 0===r.config.pasteFromWord_inlineImages||r.config.pasteFromWord_inlineImages;r.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(e,t){s=1,e.execCommand("paste",{type:"html",notification:!t||"undefined"==typeof t.notification||t.notification})}}),CKEDITOR.plugins.clipboard.addPasteButton(r,"PasteFromWord",{label:r.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"}),r.on("paste",function(e){var t=e.data,n=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?t.dataTransfer.getData("text/html",!0):null,i=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?t.dataTransfer.getData("text/rtf"):null,o={dataValue:n=n||t.dataValue,dataTransfer:{"text/rtf":i}};i=/(class=\"?Mso|style=(?:\"|\')[^\"]*?\bmso\-|w:WordDocument|<o:\w+>|<\/font>)/,i=/<meta\s*name=(?:\"|\')?generator(?:\"|\')?\s*content=(?:\"|\')?microsoft/gi.test(n)||i.test(n);if(n&&(s||i)&&(!1!==r.fire("pasteFromWord",o)||s)){t.dontFilter=!0;var a=c(r,l,function(){a?r.fire("paste",t):(!r.config.pasteFromWordPromptCleanup||s||confirm(r.lang.pastefromword.confirmCleanup))&&(o.dataValue=CKEDITOR.cleanWord(o.dataValue,r),r.fire("afterPasteFromWord",o),t.dataValue=o.dataValue,!0===r.config.forcePasteAsPlainText?t.type="text":CKEDITOR.plugins.clipboard.isCustomCopyCutSupported||"allow-word"!==r.config.forcePasteAsPlainText||(t.type="html")),s=0});a&&e.cancel()}},null,null,3),CKEDITOR.plugins.clipboard.isCustomDataTypesSupported&&t&&r.on("afterPasteFromWord",e)}})}(),K={modes:{wysiwyg:1,source:1},canUndo:!1,readOnly:1,exec:function(e){var t,n=(i=e.config).baseHref?'<base href="'+i.baseHref+'"/>':"";if(i.fullPage)t=e.getData().replace(/<head>/,"$&"+n).replace(/[^>]*(?=<\/title>)/,"$& &mdash; "+e.lang.preview.preview);else{var i="<body ";(a=e.document&&e.document.getBody())&&(a.getAttribute("id")&&(i+='id="'+a.getAttribute("id")+'" '),a.getAttribute("class")&&(i+='class="'+a.getAttribute("class")+'" ')),i+=">",t=e.config.docType+'<html dir="'+e.config.contentsLangDirection+'"><head>'+n+"<title>"+e.lang.preview.preview+"</title>"+CKEDITOR.tools.buildStyleHtml(e.config.contentsCss)+"</head>"+i+e.getData()+"</body></html>"}n=640,i=420,a=80;try{var o=window.screen,a=(n=Math.round(.8*o.width),i=Math.round(.7*o.height),Math.round(.1*o.width))}catch(K){}if(!1===e.fire("contentPreview",e={dataValue:t}))return!1;var r;o="";return CKEDITOR.env.ie&&(window._cke_htmlToLoad=e.dataValue,r="javascript:void( (function(){document.open();"+("("+CKEDITOR.tools.fixDomain+")();").replace(/\/\/.*?\n/g,"").replace(/parent\./g,"window.opener.")+"document.write( window.opener._cke_htmlToLoad );document.close();window.opener._cke_htmlToLoad = null;})() )",o=""),CKEDITOR.env.gecko&&(window._cke_htmlToLoad=e.dataValue,o=CKEDITOR.getUrl(_+"preview.html")),o=window.open(o,null,"toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+n+",height="+i+",left="+a),CKEDITOR.env.ie&&o&&(o.location=r),CKEDITOR.env.ie||CKEDITOR.env.gecko||((r=o.document).open(),r.write(e.dataValue),r.close()),!0}},CKEDITOR.plugins.add("preview",{init:function(e){e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&(_=this.path,e.addCommand("preview",K),e.ui.addButton&&e.ui.addButton("Preview",{label:e.lang.preview.preview,command:"preview",toolbar:"document,40"}))}}),CKEDITOR.plugins.add("print",{init:function(e){e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&(e.addCommand("print",CKEDITOR.plugins.print),e.ui.addButton&&e.ui.addButton("Print",{label:e.lang.print.toolbar,command:"print",toolbar:"document,50"}))}}),CKEDITOR.plugins.print={exec:function(e){CKEDITOR.env.gecko?e.window.$.print():e.document.$.execCommand("Print")},canUndo:!1,readOnly:1,modes:{wysiwyg:1}},CKEDITOR.plugins.add("removeformat",{init:function(e){e.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat),e.ui.addButton&&e.ui.addButton("RemoveFormat",{label:e.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(a){for(var e,r=a._.removeFormatRegex||(a._.removeFormatRegex=new RegExp("^(?:"+a.config.removeFormatTags.replace(/,/g,"|")+")$","i")),t=a._.removeAttributes||(a._.removeAttributes=a.config.removeFormatAttributes.split(",")),s=CKEDITOR.plugins.removeformat.filter,n=a.getSelection().getRanges(),i=n.createIterator(),o=function(e){return e.type==CKEDITOR.NODE_ELEMENT};e=i.getNextRange();){e.collapsed||e.enlarge(CKEDITOR.ENLARGE_ELEMENT);var l=e.createBookmark(),c=l.startNode,d=l.endNode,u=function(e){for(var t,n=a.elementPath(e),i=n.elements,o=1;(t=i[o])&&!t.equals(n.block)&&!t.equals(n.blockLimit);o++)r.test(t.getName())&&s(a,t)&&e.breakParent(t)};if(u(c),d)for(u(d),c=c.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);c&&!c.equals(d);)if(c.isReadOnly()){if(c.getPosition(d)&CKEDITOR.POSITION_CONTAINS)break;c=c.getNext(o)}else u=c.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==c.getName()&&c.data("cke-realelement")||!s(a,c)||(r.test(c.getName())?c.remove(1):(c.removeAttributes(t),a.fire("removeFormatCleanup",c))),c=u;e.moveToBookmark(l)}a.forceNextSelectionCheck(),a.getSelection().selectRanges(n)}}},filter:function(e,t){for(var n=e._.removeFormatFilters||[],i=0;i<n.length;i++)if(!1===n[i](t))return!1;return!0}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(e){this._.removeFormatFilters||(this._.removeFormatFilters=[]),this._.removeFormatFilters.push(e)},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",k={readOnly:1,modes:{wysiwyg:1,source:1},exec:function(e){if(e.fire("save")&&(e=e.element.$.form))try{e.submit()}catch(k){e.submit.click&&e.submit.click()}}},CKEDITOR.plugins.add("save",{init:function(e){e.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(e.addCommand("save",k).startDisabled=!e.element.$.form,e.ui.addButton&&e.ui.addButton("Save",{label:e.lang.save.toolbar,command:"save",toolbar:"document,10"}))}}),CKEDITOR.plugins.add("selectall",{init:function(e){e.addCommand("selectAll",{modes:{wysiwyg:1,source:1},exec:function(e){var t=e.editable();if(t.is("textarea"))e=t.$,CKEDITOR.env.ie&&e.createTextRange?e.createTextRange().execCommand("SelectAll"):(e.selectionStart=0,e.selectionEnd=e.value.length),e.focus();else{if(t.is("body"))e.document.$.execCommand("SelectAll",!1,null);else{var n=e.createRange();n.selectNodeContents(t),n.select()}e.forceNextSelectionCheck(),e.selectionChange()}},canUndo:!1}),e.ui.addButton&&e.ui.addButton("SelectAll",{label:e.lang.selectall.toolbar,command:"selectAll",toolbar:"selection,10"})}}),w={readOnly:1,preserveState:!0,editorFocus:!1,exec:function(e){this.toggleState(),this.refresh(e)},refresh:function(e){if(e.document){var t=this.state!=CKEDITOR.TRISTATE_ON||e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!e.focusManager.hasFocus?"removeClass":"attachClass";e.editable()[t]("cke_show_blocks")}}},CKEDITOR.plugins.add("showblocks",{onLoad:function(){var e,t,n,i,o,a,r="p div pre address blockquote h1 h2 h3 h4 h5 h6".split(" "),s=CKEDITOR.getUrl(this.path),l=!(CKEDITOR.env.ie&&CKEDITOR.env.version<9),c=l?":not([contenteditable=false]):not(.cke_show_blocks_off)":"";for(e=t=n=i="";o=r.pop();)e+=".cke_show_blocks "+o+c+(a=r.length?",":""),n+=".cke_show_blocks.cke_contents_ltr "+o+c+a,i+=".cke_show_blocks.cke_contents_rtl "+o+c+a,t+=".cke_show_blocks "+o+c+"{background-image:url("+CKEDITOR.getUrl(s+"images/block_"+o+".png")+")}";CKEDITOR.addCss((e+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(t,n+"{background-position:top left;padding-left:8px}",i+"{background-position:top right;padding-right:8px}")),l||CKEDITOR.addCss(".cke_show_blocks [contenteditable=false],.cke_show_blocks .cke_show_blocks_off{border:none;padding-top:0;background-image:none}.cke_show_blocks.cke_contents_rtl [contenteditable=false],.cke_show_blocks.cke_contents_rtl .cke_show_blocks_off{padding-right:0}.cke_show_blocks.cke_contents_ltr [contenteditable=false],.cke_show_blocks.cke_contents_ltr .cke_show_blocks_off{padding-left:0}")},init:function(e){function t(){n.refresh(e)}if(!e.blockless){var n=e.addCommand("showblocks",w);n.canUndo=!1,e.config.startupOutlineBlocks&&n.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(){n.state!=CKEDITOR.TRISTATE_DISABLED&&n.refresh(e)}),e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(e.on("focus",t),e.on("blur",t)),e.on("contentDom",function(){n.state!=CKEDITOR.TRISTATE_DISABLED&&n.refresh(e)})}}}),S={preserveState:!0,editorFocus:!1,readOnly:1,exec:function(e){this.toggleState(),this.refresh(e)},refresh:function(e){if(e.document){var t=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";e.editable()[t]("cke_show_borders")}}},CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var e;e=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:".%1 table.%2,;.%1 table.%2 > tr > td, .%1 table.%2 > tr > th,;.%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,;.%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,;.%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th;{;border : #d3d3d3 1px dotted;}".split(";")).join("").replace(/%2/g,"cke_show_border").replace(/%1/g,"cke_show_borders "),CKEDITOR.addCss(e)},init:function(t){var e=t.addCommand("showborders",S);(e.canUndo=!1)!==t.config.startupShowBorders&&e.setState(CKEDITOR.TRISTATE_ON),t.on("mode",function(){e.state!=CKEDITOR.TRISTATE_DISABLED&&e.refresh(t)},null,null,100),t.on("contentDom",function(){e.state!=CKEDITOR.TRISTATE_DISABLED&&e.refresh(t)}),t.on("removeFormatCleanup",function(e){e=e.data,t.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&e.is("table")&&(!e.hasAttribute("border")||parseInt(e.getAttribute("border"),10)<=0)&&e.addClass("cke_show_border")})},afterInit:function(e){var t=e.dataProcessor;e=t&&t.dataFilter,t=t&&t.htmlFilter,e&&e.addRules({elements:{table:function(e){var t=(e=e.attributes)["class"],n=parseInt(e.border,10);n&&!(n<=0)||t&&-1!=t.indexOf("cke_show_border")||(e["class"]=(t||"")+" cke_show_border")}}}),t&&t.addRules({elements:{table:function(e){var t=(e=e.attributes)["class"];t&&(e["class"]=t.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,""))}}})}}),CKEDITOR.on("dialogDefinition",function(e){var t=e.data.name;"table"!=t&&"tableProperties"!=t||((t=(e=e.data.definition).getContents("info").get("txtBorder")).commit=CKEDITOR.tools.override(t.commit,function(i){return function(e,t){i.apply(this,arguments);var n=parseInt(this.getValue(),10);t[!n||n<=0?"addClass":"removeClass"]("cke_show_border")}}
21),(e=(e=e.getContents("advanced"))&&e.get("advCSSClasses"))&&(e.setup=CKEDITOR.tools.override(e.setup,function(e){return function(){e.apply(this,arguments),this.setValue(this.getValue().replace(/cke_show_border/,""))}}),e.commit=CKEDITOR.tools.override(e.commit,function(n){return function(e,t){n.apply(this,arguments),parseInt(t.getAttribute("border"),10)||t.addClass("cke_show_border")}})))}),function(){CKEDITOR.plugins.add("sourcearea",{init:function(n){function i(){var e=t&&this.equals(CKEDITOR.document.getActive());this.hide(),this.setStyle("height",this.getParent().$.clientHeight+"px"),this.setStyle("width",this.getParent().$.clientWidth+"px"),this.show(),e&&this.focus()}if(n.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var e=CKEDITOR.plugins.sourcearea;n.addMode("source",function(e){var t=n.ui.space("contents").getDocument().createElement("textarea");t.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",n.config.sourceAreaTabSize||4))),t.setAttribute("dir","ltr"),t.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu"),n.ui.space("contents").append(t),(t=n.editable(new o(n,t))).setData(n.getData(1)),CKEDITOR.env.ie&&(t.attachListener(n,"resize",i,t),t.attachListener(CKEDITOR.document.getWindow(),"resize",i,t),CKEDITOR.tools.setTimeout(i,0,t)),n.fire("ariaWidget",this),e()}),n.addCommand("source",e.commands.source),n.ui.addButton&&n.ui.addButton("Source",{label:n.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"}),n.on("mode",function(){n.getCommand("source").setState("source"==n.mode?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var t=CKEDITOR.env.ie&&9==CKEDITOR.env.version}}});var o=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(e){this.setValue(e),this.status="ready",this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(e){this[(e?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){o.baseProto.detach.call(this),this.clearCustomData(),this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(e){"wysiwyg"==e.mode&&e.fire("saveSnapshot"),e.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED),e.setMode("source"==e.mode?"wysiwyg":"source")},canUndo:!1}}},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(t){var n=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js"),t.addCommand("specialchar",{exec:function(){var e=t.langCode;e=n.availableLangs[e]?e:n.availableLangs[e.replace(/-.*/,"")]?e.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(n.path+"dialogs/lang/"+e+".js"),function(){CKEDITOR.tools.extend(t.lang.specialchar,n.langEntries[e]),t.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1}),t.ui.addButton&&t.ui.addButton("SpecialChar",{label:t.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! &quot; # $ % &amp; ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; &lt; = &gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ &euro; &lsquo; &rsquo; &ldquo; &rdquo; &ndash; &mdash; &iexcl; &cent; &pound; &curren; &yen; &brvbar; &sect; &uml; &copy; &ordf; &laquo; &not; &reg; &macr; &deg; &sup2; &sup3; &acute; &micro; &para; &middot; &cedil; &sup1; &ordm; &raquo; &frac14; &frac12; &frac34; &iquest; &Agrave; &Aacute; &Acirc; &Atilde; &Auml; &Aring; &AElig; &Ccedil; &Egrave; &Eacute; &Ecirc; &Euml; &Igrave; &Iacute; &Icirc; &Iuml; &ETH; &Ntilde; &Ograve; &Oacute; &Ocirc; &Otilde; &Ouml; &times; &Oslash; &Ugrave; &Uacute; &Ucirc; &Uuml; &Yacute; &THORN; &szlig; &agrave; &aacute; &acirc; &atilde; &auml; &aring; &aelig; &ccedil; &egrave; &eacute; &ecirc; &euml; &igrave; &iacute; &icirc; &iuml; &eth; &ntilde; &ograve; &oacute; &ocirc; &otilde; &ouml; &divide; &oslash; &ugrave; &uacute; &ucirc; &uuml; &yacute; &thorn; &yuml; &OElig; &oelig; &#372; &#374 &#373 &#375; &sbquo; &#8219; &bdquo; &hellip; &trade; &#9658; &bull; &rarr; &rArr; &hArr; &diams; &asymp;".split(" "),CKEDITOR.plugins.add("scayt",{requires:"menubutton,dialog",tabToOpen:null,dialogName:"scaytDialog",onLoad:function(e){CKEDITOR.plugins.scayt.onLoadTimestamp=(new Date).getTime(),"moono-lisa"==(CKEDITOR.skinName||e.config.skin)&&CKEDITOR.document.appendStyleSheet(this.path+"skins/"+CKEDITOR.skin.name+"/scayt.css"),CKEDITOR.document.appendStyleSheet(this.path+"dialogs/dialog.css")},init:function(i){var o=this,n=CKEDITOR.plugins.scayt;this.bindEvents(i),this.parseConfig(i),this.addRule(i),CKEDITOR.dialog.add(this.dialogName,CKEDITOR.getUrl(this.path+"dialogs/options.js")),this.addMenuItems(i);var e=i.lang.scayt,t=CKEDITOR.env;i.ui.add("Scayt",CKEDITOR.UI_MENUBUTTON,{label:e.text_title,title:i.plugins.wsc?i.lang.wsc.title:e.text_title,modes:{wysiwyg:!(t.ie&&(t.version<8||t.quirks))},toolbar:"spellchecker,20",refresh:function(){var e=i.ui.instances.Scayt.getState();i.scayt&&(e=n.state.scayt[i.name]?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),i.fire("scaytButtonState",e)},onRender:function(){var t=this;i.on("scaytButtonState",function(e){void 0!==typeof e.data&&t.setState(e.data)})},onMenu:function(){var e=i.scayt;i.getMenuItem("scaytToggle").label=i.lang.scayt[e&&n.state.scayt[i.name]?"btn_disable":"btn_enable"];var t={scaytToggle:CKEDITOR.TRISTATE_OFF,scaytOptions:e?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytLangs:e?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytDict:e?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytAbout:e?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,WSC:i.plugins.wsc?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED};return i.config.scayt_uiTabs[0]||delete t.scaytOptions,i.config.scayt_uiTabs[1]||delete t.scaytLangs,i.config.scayt_uiTabs[2]||delete t.scaytDict,e&&!CKEDITOR.plugins.scayt.
21isNewUdSupported(e)&&(delete t.scaytDict,i.config.scayt_uiTabs[2]=0,CKEDITOR.plugins.scayt.alarmCompatibilityMessage()),t}}),i.contextMenu&&i.addMenuItems&&(i.contextMenu.addListener(function(){var e,t,n=i.scayt;return n&&(t=n.getSelectionNode())&&(e=o.menuGenerator(i,t),n.showBanner("."+i.contextMenu._.definition.panel.className.split(" ").join(" ."))),e}),i.contextMenu._.onHide=CKEDITOR.tools.override(i.contextMenu._.onHide,function(t){return function(){var e=i.scayt;return e&&e.hideBanner(),t.apply(this)}}))},addMenuItems:function(i){var t=this,n=CKEDITOR.plugins.scayt;i.addMenuGroup("scaytButton");for(var e=i.config.scayt_contextMenuItemsOrder.split("|"),o=0;o<e.length;o++)e[o]="scayt_"+e[o];if((e=["grayt_description","grayt_suggest","grayt_control"].concat(e))&&e.length)for(o=0;o<e.length;o++)i.addMenuGroup(e[o],o-10);i.addCommand("scaytToggle",{exec:function(e){var t=e.scayt;n.state.scayt[e.name]=!n.state.scayt[e.name],!0===n.state.scayt[e.name]?t||n.createScayt(e):t&&n.destroy(e)}}),i.addCommand("scaytAbout",{exec:function(e){e.scayt.tabToOpen="about",n.openDialog(t.dialogName,e)}}),i.addCommand("scaytOptions",{exec:function(e){e.scayt.tabToOpen="options",n.openDialog(t.dialogName,e)}}),i.addCommand("scaytLangs",{exec:function(e){e.scayt.tabToOpen="langs",n.openDialog(t.dialogName,e)}}),i.addCommand("scaytDict",{exec:function(e){e.scayt.tabToOpen="dictionaries",n.openDialog(t.dialogName,e)}}),e={scaytToggle:{label:i.lang.scayt.btn_enable,group:"scaytButton",command:"scaytToggle"},scaytAbout:{label:i.lang.scayt.btn_about,group:"scaytButton",command:"scaytAbout"},scaytOptions:{label:i.lang.scayt.btn_options,group:"scaytButton",command:"scaytOptions"},scaytLangs:{label:i.lang.scayt.btn_langs,group:"scaytButton",command:"scaytLangs"},scaytDict:{label:i.lang.scayt.btn_dictionaries,group:"scaytButton",command:"scaytDict"}},i.plugins.wsc&&(e.WSC={label:i.lang.wsc.toolbar,group:"scaytButton",onClick:function(){var e=CKEDITOR.plugins.scayt,t=i.scayt,n=i.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?i.container.getText():i.document.getBody().getText();(n=n.replace(/\s/g,""))?(t&&e.state.scayt[i.name]&&t.setMarkupPaused&&t.setMarkupPaused(!0),i.lockSelection(),i.execCommand("checkspell")):alert("Nothing to check!")}}),i.addMenuItems(e)},bindEvents:function(a){var r=CKEDITOR.plugins.scayt,o=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE,t=function(){r.destroy(a)},s=function(){!r.state.scayt[a.name]||a.readOnly||a.scayt||r.createScayt(a)},n=function(){var e=a.editable();e.attachListener(e,"focus",function(e){var t,n;if(CKEDITOR.plugins.scayt&&!a.scayt&&setTimeout(s,0),e=CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[a.name]&&a.scayt,(o||e)&&a._.savedSelection){e=!(e=a._.savedSelection.getSelectedElement())&&a._.savedSelection.getRanges();for(var i=0;i<e.length;i++)"string"==typeof(n=e[i]).startContainer.$.nodeValue&&(((t=n.startContainer.getText().length)<n.startOffset||t<n.endOffset)&&a.unlockSelection(!1))}},this,null,-10)},e=function(){o?a.config.scayt_inlineModeImmediateMarkup?s():(a.on("blur",function(){setTimeout(t,0)}),a.on("focus",s),a.focusManager.hasFocus&&s()):s(),n();var e=a.editable();e.attachListener(e,"mousedown",function(e){e=e.data.getTarget();var t=a.widgets&&a.widgets.getByElement(e);t&&(t.wrapper=e.getAscendant(function(e){return e.hasAttribute("data-cke-widget-wrapper")},!0))},this,null,-10)};a.on("contentDom",e),a.on("beforeCommandExec",function(e){var t=a.scayt,n=!1,i=!1,o=!0;e.data.name in r.options.disablingCommandExec&&"wysiwyg"==a.mode?t&&(r.destroy(a),a.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED)):"bold"!==e.data.name&&"italic"!==e.data.name&&"underline"!==e.data.name&&"strike"!==e.data.name&&"subscript"!==e.data.name&&"superscript"!==e.data.name&&"enter"!==e.data.name&&"cut"!==e.data.name&&"language"!==e.data.name||!t||("cut"===e.data.name&&(o=!1,i=!0),"language"===e.data.name&&(i=n=!0),a.fire("reloadMarkupScayt",{removeOptions:{removeInside:o,forceBookmark:i,language:n},timeout:0}))}),a.on("beforeSetMode",function(e){"source"==e.data&&((e=a.scayt)&&(r.destroy(a),a.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED)),a.document&&a.document.getBody().removeAttribute("_jquid"))}),a.on("afterCommandExec",function(e){"wysiwyg"!=a.mode||"undo"!=e.data.name&&"redo"!=e.data.name||setTimeout(function(){r.reloadMarkup(a.scayt)},250)}),a.on("readOnly",function(e){var t;e&&(t=a.scayt,!0===e.editor.readOnly?t&&t.fire("removeMarkupInDocument",{}
21):t?r.reloadMarkup(t):"wysiwyg"==e.editor.mode&&!0===r.state.scayt[e.editor.name]&&(r.createScayt(a),e.editor.fire("scaytButtonState",CKEDITOR.TRISTATE_ON)))}),a.on("beforeDestroy",t),a.on("setData",function(){t(),(a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE||a.plugins.divarea)&&e()},this,null,50),a.on("reloadMarkupScayt",function(e){var t=e.data&&e.data.removeOptions,n=e.data&&e.data.timeout,i=e.data&&e.data.language,o=a.scayt;o&&setTimeout(function(){i&&(t.selectionNode=a.plugins.language.getCurrentLangElement(a),t.selectionNode=t.selectionNode&&t.selectionNode.$||null),o.removeMarkupInSelectionNode(t),r.reloadMarkup(o)},n||0)}),a.on("insertElement",function(){a.fire("reloadMarkupScayt",{removeOptions:{forceBookmark:!0}})},this,null,50),a.on("insertHtml",function(){a.scayt&&a.scayt.setFocused&&a.scayt.setFocused(!0),a.fire("reloadMarkupScayt")},this,null,50),a.on("insertText",function(){a.scayt&&a.scayt.setFocused&&a.scayt.setFocused(!0),a.fire("reloadMarkupScayt")},this,null,50),a.on("scaytDialogShown",function(e){e.data.selectPage(a.scayt.tabToOpen)})},parseConfig:function(e){if((i=CKEDITOR.plugins.scayt).replaceOldOptionsNames(e.config),"boolean"!=typeof e.config.scayt_autoStartup&&(e.config.scayt_autoStartup=!1),i.state.scayt[e.name]=e.config.scayt_autoStartup,"boolean"!=typeof e.config.grayt_autoStartup&&(e.config.grayt_autoStartup=!1),"boolean"!=typeof e.config.scayt_inlineModeImmediateMarkup&&(e.config.scayt_inlineModeImmediateMarkup=!1),i.state.grayt[e.name]=e.config.grayt_autoStartup,e.config.scayt_contextCommands||(e.config.scayt_contextCommands="ignoreall|add"),e.config.scayt_contextMenuItemsOrder||(e.config.scayt_contextMenuItemsOrder="suggest|moresuggest|control"),e.config.scayt_sLang||(e.config.scayt_sLang="en_US"),(void 0===e.config.scayt_maxSuggestions||"number"!=typeof e.config.scayt_maxSuggestions||e.config.scayt_maxSuggestions<0)&&(e.config.scayt_maxSuggestions=3),(void 0===e.config.scayt_minWordLength||"number"!=typeof e.config.scayt_minWordLength||e.config.scayt_minWordLength<1)&&(e.config.scayt_minWordLength=3),void 0!==e.config.scayt_customDictionaryIds&&"string"==typeof e.config.scayt_customDictionaryIds||(e.config.scayt_customDictionaryIds=""),void 0!==e.config.scayt_userDictionaryName&&"string"==typeof e.config.scayt_userDictionaryName||(e.config.scayt_userDictionaryName=null),"string"==typeof e.config.scayt_uiTabs&&3===e.config.scayt_uiTabs.split(",").length){var t=[],n=[];e.config.scayt_uiTabs=e.config.scayt_uiTabs.split(","),CKEDITOR.tools.search(e.config.scayt_uiTabs,function(e){1===Number(e)||0===Number(e)?(n.push(!0),t.push(Number(e))):n.push(!1)}),null===CKEDITOR.tools.search(n,!1)?e.config.scayt_uiTabs=t:e.config.scayt_uiTabs=[1,1,1]}else e.config.scayt_uiTabs=[1,1,1];if("string"!=typeof e.config.scayt_serviceProtocol&&(e.config.scayt_serviceProtocol=null),"string"!=typeof e.config.scayt_serviceHost&&(e.config.scayt_serviceHost=null),"string"!=typeof e.config.scayt_servicePort&&(e.config.scayt_servicePort=null),"string"!=typeof e.config.scayt_servicePath&&(e.config.scayt_servicePath=null),e.config.scayt_moreSuggestions||(e.config.scayt_moreSuggestions="on"),"string"!=typeof e.config.scayt_customerId&&(e.config.scayt_customerId="1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2"),"string"!=typeof e.config.scayt_customPunctuation&&(e.config.scayt_customPunctuation="-"),"string"!=typeof e.config.scayt_srcUrl&&(i=-1!=(i=document.location.protocol).search(/https?:/)?i:"http:",e.config.scayt_srcUrl=i+"//svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js"),"boolean"!=typeof CKEDITOR.config.scayt_handleCheckDirty&&(CKEDITOR.config.scayt_handleCheckDirty=!0),"boolean"!=typeof CKEDITOR.config.scayt_handleUndoRedo&&(CKEDITOR.config.scayt_handleUndoRedo=!0),CKEDITOR.config.scayt_handleUndoRedo=!!CKEDITOR.plugins.undo&&CKEDITOR.config.scayt_handleUndoRedo,"boolean"!=typeof e.config.scayt_multiLanguageMode&&(e.config.scayt_multiLanguageMode=!1),"object"!=typeof e.config.scayt_multiLanguageStyles&&(e.config.scayt_multiLanguageStyles={}),e.config.scayt_ignoreAllCapsWords&&"boolean"!=typeof e.config.scayt_ignoreAllCapsWords&&(e.config.scayt_ignoreAllCapsWords=!1),e.config.scayt_ignoreDomainNames&&"boolean"!=typeof e.config.scayt_ignoreDomainNames&&(e.config.scayt_ignoreDomainNames=!1),e.config.scayt_ignoreWordsWithMixedCases&&"boolean"!=typeof e.config.scayt_ignoreWordsWithMixedCases&&
vendor: 10,372 bytes, lines 21-22
21(e.config.scayt_ignoreWordsWithMixedCases=!1),e.config.scayt_ignoreWordsWithNumbers&&"boolean"!=typeof e.config.scayt_ignoreWordsWithNumbers&&(e.config.scayt_ignoreWordsWithNumbers=!1),e.config.scayt_disableOptionsStorage){var i=CKEDITOR.tools.isArray(e.config.scayt_disableOptionsStorage)?e.config.scayt_disableOptionsStorage:"string"==typeof e.config.scayt_disableOptionsStorage?[e.config.scayt_disableOptionsStorage]:void 0,a="all options lang ignore-all-caps-words ignore-domain-names ignore-words-with-mixed-cases ignore-words-with-numbers".split(" "),r=["lang","ignore-all-caps-words","ignore-domain-names","ignore-words-with-mixed-cases","ignore-words-with-numbers"],s=CKEDITOR.tools.search,l=CKEDITOR.tools.indexOf;e.config.scayt_disableOptionsStorage=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n],o=!!s(e,"options");if(!s(a,i)||o&&s(r,function(e){if("lang"===e)return!1}))return;if(s(r,i)&&r.splice(l(r,i),1),"all"===i||o&&s(e,"lang"))return[];"options"===i&&(r=["lang"])}return t.concat(r)}(i)}},addRule:function(n){var i=CKEDITOR.plugins.scayt,e=(o=n.dataProcessor)&&o.htmlFilter,t=n._.elementsPath&&n._.elementsPath.filters,o=o&&o.dataFilter,a=n.addRemoveFormatFilter,r=function(e){if(n.scayt&&(e.hasAttribute(i.options.data_attribute_name)||e.hasAttribute(i.options.problem_grammar_data_attribute)))return!1},s=function(e){var t=!0;return n.scayt&&(e.hasAttribute(i.options.data_attribute_name)||e.hasAttribute(i.options.problem_grammar_data_attribute))&&(t=!1),t};t&&t.push(r),o&&o.addRules({elements:{span:function(e){var t=e.hasClass(i.options.misspelled_word_class)&&e.attributes[i.options.data_attribute_name],n=e.hasClass(i.options.problem_grammar_class)&&e.attributes[i.options.problem_grammar_data_attribute];return i&&(t||n)&&delete e.name,e}}}),e&&e.addRules({elements:{span:function(e){var t=e.hasClass(i.options.misspelled_word_class)&&e.attributes[i.options.data_attribute_name],n=e.hasClass(i.options.problem_grammar_class)&&e.attributes[i.options.problem_grammar_data_attribute];return i&&(t||n)&&delete e.name,e}}}),a&&a.call(n,s)},scaytMenuDefinition:function(e){var t=this,n=CKEDITOR.plugins.scayt;return{scayt:{scayt_ignore:{label:(e=e.scayt).getLocal("btn_ignore"),group:"scayt_control",order:1,exec:function(e){e.scayt.ignoreWord()}},scayt_ignoreall:{label:e.getLocal("btn_ignoreAll"),group:"scayt_control",order:2,exec:function(e){e.scayt.ignoreAllWords()}},scayt_add:{label:e.getLocal("btn_addWord"),group:"scayt_control",order:3,exec:function(e){var t=e.scayt;setTimeout(function(){t.addWordToUserDictionary()},10)}},scayt_option:{label:e.getLocal("btn_options"),group:"scayt_control",order:4,exec:function(e){e.scayt.tabToOpen="options",n.openDialog(t.dialogName,e)},verification:function(e){return 1==e.config.scayt_uiTabs[0]}},scayt_language:{label:e.getLocal("btn_langs"),group:"scayt_control",order:5,exec:function(e){e.scayt.tabToOpen="langs",n.openDialog(t.dialogName,e)},verification:function(e){return 1==e.config.scayt_uiTabs[1]}},scayt_dictionary:{label:e.getLocal("btn_dictionaries"),group:"scayt_control",order:6,exec:function(e){e.scayt.tabToOpen="dictionaries",n.openDialog(t.dialogName,e)},verification:function(e){return 1==e.config.scayt_uiTabs[2]}},scayt_about:{label:e.getLocal("btn_about"),group:"scayt_control",order:7,
22exec:function(e){e.scayt.tabToOpen="about",n.openDialog(t.dialogName,e)}}},grayt:{grayt_problemdescription:{label:"Grammar problem description",group:"grayt_description",order:1,state:CKEDITOR.TRISTATE_DISABLED,exec:function(){}},grayt_ignore:{label:e.getLocal("btn_ignore"),group:"grayt_control",order:2,exec:function(e){e.scayt.ignorePhrase()}},grayt_ignoreall:{label:e.getLocal("btn_ignoreAll"),group:"grayt_control",order:3,exec:function(e){e.scayt.ignoreAllPhrases()}}}}},buildSuggestionMenuItems:function(e,t,n){var i={},o={},a=n?"word":"phrase",r=n?"startGrammarCheck":"startSpellCheck",s=e.scayt;if(0<t.length&&"no_any_suggestions"!==t[0])if(n)for(n=0;n<t.length;n++){var l="scayt_suggest_"+CKEDITOR.plugins.scayt.suggestions[n].replace(" ","_");e.addCommand(l,this.createCommand(CKEDITOR.plugins.scayt.suggestions[n],a,r)),n<e.config.scayt_maxSuggestions?(e.addMenuItem(l,{label:t[n],command:l,group:"scayt_suggest",order:n+1}),i[l]=CKEDITOR.TRISTATE_OFF):(e.addMenuItem(l,{label:t[n],command:l,group:"scayt_moresuggest",order:n+1}),o[l]=CKEDITOR.TRISTATE_OFF,"on"===e.config.scayt_moreSuggestions&&(e.addMenuItem("scayt_moresuggest",{label:s.getLocal("btn_moreSuggestions"),group:"scayt_moresuggest",order:10,getItems:function(){return o}}),i.scayt_moresuggest=CKEDITOR.TRISTATE_OFF))}else for(n=0;n<t.length;n++)l="grayt_suggest_"+CKEDITOR.plugins.scayt.suggestions[n].replace(" ","_"),e.addCommand(l,this.createCommand(CKEDITOR.plugins.scayt.suggestions[n],a,r)),e.addMenuItem(l,{label:t[n],command:l,group:"grayt_suggest",order:n+1}),i[l]=CKEDITOR.TRISTATE_OFF;else i.no_scayt_suggest=CKEDITOR.TRISTATE_DISABLED,e.addCommand("no_scayt_suggest",{exec:function(){}}),e.addMenuItem("no_scayt_suggest",{label:s.getLocal("btn_noSuggestions")||"no_scayt_suggest",command:"no_scayt_suggest",group:"scayt_suggest",order:0});return i},menuGenerator:function(e,t){var n,i,o,a,r=e.scayt,s=this.scaytMenuDefinition(e),l={},c=e.config.scayt_contextCommands.split("|"),d=t.getAttribute(r.getLangAttribute())||r.getLang();if(i=r.isScaytNode(t),o=r.isGraytNode(t),i?(s=s.scayt,n=t.getAttribute(r.getScaytNodeAttributeName()),r.fire("getSuggestionsList",{lang:d,word:n}),l=this.buildSuggestionMenuItems(e,CKEDITOR.plugins.scayt.suggestions,i)):o&&(s=s.grayt,l=t.getAttribute(r.getGraytNodeAttributeName()),r.getGraytNodeRuleAttributeName?(n=t.getAttribute(r.getGraytNodeRuleAttributeName()),r.getProblemDescriptionText(l,n,d)):r.getProblemDescriptionText(l,d),a=r.getProblemDescriptionText(l,n,d),s.grayt_problemdescription&&a&&(a=a.replace(/([.!?])\s/g,"$1<br>"),s.grayt_problemdescription.label=a),r.fire("getGrammarSuggestionsList",{lang:d,phrase:l,rule:n}),l=this.buildSuggestionMenuItems(e,CKEDITOR.plugins.scayt.suggestions,i)),i&&"off"==e.config.scayt_contextCommands)return l;for(var u in s)i&&-1==CKEDITOR.tools.indexOf(c,u.replace("scayt_",""))&&"all"!=e.config.scayt_contextCommands||o&&"grayt_problemdescription"!==u&&-1==CKEDITOR.tools.indexOf(c,u.replace("grayt_",""))&&"all"!=e.config.scayt_contextCommands||(l[u]="undefined"!=typeof s[u].state?s[u].state:CKEDITOR.TRISTATE_OFF,"function"!=typeof s[u].verification||s[u].verification(e)||delete l[u],e.addCommand(u,{exec:s[u].exec}),e.addMenuItem(u,{label:e.lang.scayt[s[u].label]||s[u].label,command:u,group:s[u].group,order:s[u].order}));return l},createCommand:function(n,i,o){return{exec:function(e){e=e.scayt;var t={};t[i]=n,e.replaceSelectionNode(t),"startGrammarCheck"===o&&e.removeMarkupInSelectionNode({grammarOnly:!0}),e.fire(o)}}}}),CKEDITOR.plugins.scayt={charsToObserve:[{charName:"cke-fillingChar",charCode:function(){var e;if(n=(n=CKEDITOR.version.match(/^\d(\.\d*)*/))&&n[0]){e="4.5.7";var t,n=n.replace(/\./g,"");e=e.replace(/\./g,""),t=0<=(t=n.length-e.length)?t:0,e=parseInt(n)>=parseInt(e)*Math.pow(10,t)}return e?Array(7).join(String.fromCharCode(8203)):String.fromCharCode(8203)}()}],onLoadTimestamp:"",state:{scayt:{},grayt:{}},warningCounter:0,suggestions:[],options:{disablingCommandExec:{source:!0,newpage:!0,templates:!0},data_attribute_name:"data-scayt-word",misspelled_word_class:"scayt-misspell-word",problem_grammar_data_attribute:"data-grayt-phrase",problem_grammar_class:"gramm-problem"},backCompatibilityMap:{scayt_service_protocol:"scayt_serviceProtocol",scayt_service_host:"scayt_serviceHost",scayt_service_port:"scayt_servicePort",scayt_service_path:"scayt_servicePath",scayt_customerid:"scayt_customerId"},openDialog:function(e,t){var n=t.scayt;n.isAllModulesReady&&!1===n.isAllModulesReady()||(t.lockSelection(),t.openDialog(e))},alarmCompatibilityMessage:function(){this.warningCounter<5&&(console.warn("You are using the latest version of SCAYT plugin for CKEditor with the old application version. In order to have access to the newest features, it is recommended to upgrade the application version to latest one as well. Contact us for more details at [email protected]."),this.warningCounter+=1)},isNewUdSupported:function(e){return!!e.getUserDictionary},reloadMarkup:function(e){var t;e&&(t=e.getScaytLangList(),e.reloadMarkup?e.reloadMarkup():(this.alarmCompatibilityMessage(),t&&t.ltr&&t.rtl&&e.fire("startSpellCheck, startGrammarCheck")))},replaceOldOptionsNames:function(e){for(var t in e)t in this.backCompatibilityMap&&(e[this.backCompatibilityMap[t]]=e[t],delete e[t])},createScayt:function(e){var a=this,r=CKEDITOR.plugins.scayt;this.loadScaytLibrary(e,function(i){function e(e){return new SCAYT.CKSCAYT(e,function(){},function(){})}var t;if(i.window&&(t="BODY"==i.editable().$.nodeName?i.window.getFrame():i.editable()),t){var n;t={lang:i.config.scayt_sLang,container:t.$,customDictionary:i.config.scayt_customDictionaryIds,userDictionaryName:i.config.scayt_userDictionaryName,localization:i.langCode,customer_id:i.config.scayt_customerId,customPunctuation:i.config.scayt_customPunctuation,debug:i.config.scayt_debug,data_attribute_name:a.options.data_attribute_name,misspelled_word_class:a.options.misspelled_word_class,problem_grammar_data_attribute:a.options.problem_grammar_data_attribute,problem_grammar_class:a.options.problem_grammar_class,"options-to-restore":i.config.scayt_disableOptionsStorage,focused:i.editable().hasFocus,ignoreElementsRegex:i.config.scayt_elementsToIgnore,ignoreGraytElementsRegex:i.config.grayt_elementsToIgnore,minWordLength:i.config.scayt_minWordLength,multiLanguageMode:i.config.scayt_multiLanguageMode,multiLanguageStyles:i.config.scayt_multiLanguageStyles,graytAutoStartup:i.config.grayt_autoStartup,charsToObserve:r.charsToObserve},i.config.scayt_serviceProtocol&&(t.service_protocol=i.config.scayt_serviceProtocol),i.config.scayt_serviceHost&&(t.service_host=i.config.scayt_serviceHost),i.config.scayt_servicePort&&(t.service_port=i.config.scayt_servicePort),i.config.scayt_servicePath&&(t.service_path=i.config.scayt_servicePath),"boolean"==typeof i.config.scayt_ignoreAllCapsWords&&(t["ignore-all-caps-words"]=i.config.scayt_ignoreAllCapsWords),"boolean"==typeof i.config.scayt_ignoreDomainNames&&(t["ignore-domain-names"]=i.config.scayt_ignoreDomainNames),"boolean"==typeof i.config.scayt_ignoreWordsWithMixedCases&&
22(t["ignore-words-with-mixed-cases"]=i.config.scayt_ignoreWordsWithMixedCases),"boolean"==typeof i.config.scayt_ignoreWordsWithNumbers&&(t["ignore-words-with-numbers"]=i.config.scayt_ignoreWordsWithNumbers);try{n=e(t)}catch(o){a.alarmCompatibilityMessage(),delete t.charsToObserve,n=e(t)}n.subscribe("suggestionListSend",function(e){for(var t={},n=[],i=0;i<e.suggestionList.length;i++)t["word_"+e.suggestionList[i]]||(t["word_"+e.suggestionList[i]]=e.suggestionList[i],n.push(e.suggestionList[i]));CKEDITOR.plugins.scayt.suggestions=n}),n.subscribe("selectionIsChanged",function(e){i.getSelection().isLocked&&"restoreSelection"!==e.action&&i.lockSelection(),"restoreSelection"===e.action&&i.selectionChange(!0)}),n.subscribe("graytStateChanged",function(e){r.state.grayt[i.name]=e.state}),n.addMarkupHandler&&n.addMarkupHandler(function(e){var t=i.editable(),n=t.getCustomData(e.charName);n&&(n.$=e.node,t.setCustomData(e.charName,n))}),i.scayt=n,i.fire("scaytButtonState",i.readOnly?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_ON)}else r.state.scayt[i.name]=!1})},destroy:function(e){e.scayt&&e.scayt.destroy(),delete e.scayt,e.fire("scaytButtonState",CKEDITOR.TRISTATE_OFF)},loadScaytLibrary:function(e,t){var n,i=function(){CKEDITOR.fireOnce("scaytReady"),e.scayt||"function"==typeof t&&t(e)};"undefined"==typeof window.SCAYT||"function"!=typeof window.SCAYT.CKSCAYT?(n=e.config.scayt_srcUrl+"?"+this.onLoadTimestamp,CKEDITOR.scriptLoader.load(n,function(e){e&&i()})):window.SCAYT&&"function"==typeof window.SCAYT.CKSCAYT&&i()}},CKEDITOR.on("dialogDefinition",function(e){var t=e.data.name;e=e.data.definition.dialog,"scaytDialog"!==t&&"checkspell"!==t&&(e.on("show",function(e){e=e.sender&&e.sender.getParentEditor();var t=CKEDITOR.plugins.scayt,n=e.scayt;n&&t.state.scayt[e.name]&&n.setMarkupPaused&&n.setMarkupPaused(!0)}),e.on("hide",function(e){e=e.sender&&e.sender.getParentEditor();var t=CKEDITOR.plugins.scayt,n=e.scayt;n&&t.state.scayt[e.name]&&n.setMarkupPaused&&n.setMarkupPaused(!1)})),"scaytDialog"===t&&e.on("cancel",function(){return!1},this,null,-1),"checkspell"===t&&e.on("cancel",function(e){e=e.sender&&e.sender.getParentEditor();var t=CKEDITOR.plugins.scayt,n=e.scayt;n&&t.state.scayt[e.name]&&n.setMarkupPaused&&n.setMarkupPaused(!1),e.unlockSelection()},this,null,-2),"link"===t&&e.on("ok",function(e){var t=e.sender&&e.sender.getParentEditor();t&&setTimeout(function(){t.fire("reloadMarkupScayt",{removeOptions:{removeInside:!0,forceBookmark:!0},timeout:0})},0)}),"replace"===t&&e.on("hide",function(e){e=e.sender&&e.sender.getParentEditor();var t=CKEDITOR.plugins.scayt,n=e.scayt;e&&setTimeout(function(){n&&(n.fire("removeMarkupInDocument",{}),t.reloadMarkup(n))},0)})}),CKEDITOR.on("scaytReady",function(){!0===CKEDITOR.config.scayt_handleCheckDirty&&((e=CKEDITOR.editor.prototype).checkDirty=CKEDITOR.tools.override(e.checkDirty,function(i){return function(){var e=null,t=this.scayt;if(CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[this.name]&&this.scayt){if(e="ready"==this.status){var n=t.removeMarkupFromString(this.getSnapshot());t=t.removeMarkupFromString(this._.previousValue),e=e&&t!==n}}else e=i.call(this);return e}}),e.resetDirty=CKEDITOR.tools.override(e.resetDirty,function(t){return function(){var e=this.scayt;CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[this.name]&&this.scayt?this._.previousValue=e.removeMarkupFromString(this.getSnapshot()):t.call(this)}}));if(!0===CKEDITOR.config.scayt_handleUndoRedo){var e,t="function"==typeof(e=CKEDITOR.plugins.undo.Image.prototype).equalsContent?"equalsContent":"equals";e[t]=CKEDITOR.tools.override(e[t],function(a){return function(e){var t=e.editor.scayt,n=this.contents,i=e.contents,o=null;return CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[e.editor.name]&&e.editor.scayt&&(this.contents=t.removeMarkupFromString(n)||"",e.contents=t.removeMarkupFromString(i)||""),o=a.apply(this,arguments),this.contents=n,e.contents=i,o}})}}),CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(r){var s=r.config,l=r.lang.stylescombo,c={},d=[],u=[];r.on("stylesSet",function(e){if(e=e.data.styles){for(var t,n,i,o=0,a=e.length;o<a;o++)t=e[o],r.blockless&&t.element in CKEDITOR.dtd.$block||"string"==typeof t.type&&!CKEDITOR.style.customHandlers[t.type]||(n=t.name,t=new CKEDITOR.style(t),r.f
22ilter.customConfig&&!r.filter.check(t))||(t._name=n,t._.enterMode=s.enterMode,t._.type=i=t.assignedTo||t.type,t._.weight=o+1e3*(i==CKEDITOR.STYLE_OBJECT?1:i==CKEDITOR.STYLE_BLOCK?2:3),c[n]=t,d.push(t),u.push(t));d.sort(function(e,t){return e._.weight-t._.weight})}}),r.ui.addRichCombo("Styles",{label:l.label,title:l.panelTitle,toolbar:"styles,10",allowedContent:u,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(s.contentsCss),multiSelect:!0,attributes:{"aria-label":l.panelTitle}},init:function(){var e,t,n,i,o,a;for(o=0,a=d.length;o<a;o++)t=(e=d[o])._name,(i=e._.type)!=n&&(this.startGroup(l["panelTitle"+String(i)]),n=i),this.add(t,e.type==CKEDITOR.STYLE_OBJECT?t:e.buildPreview(),t);this.commit()},onClick:function(e){r.focus(),r.fire("saveSnapshot"),e=c[e];var t=r.elementPath();e.group&&e.removeStylesFromSameGroup(r)?r.applyStyle(e):r[e.checkActive(t,r)?"removeStyle":"applyStyle"](e),r.fire("saveSnapshot")},onRender:function(){r.on("selectionChange",function(e){for(var t,n=this.getValue(),i=0,o=(e=e.data.path.elements).length;i<o;i++)for(var a in t=e[i],c)if(c[a].checkElementRemovable(t,!0,r))return void(a!=n&&this.setValue(a));this.setValue("")},this)},onOpen:function(){var e=(e=r.getSelection()).getSelectedElement()||e.getStartElement()||r.editable(),t=(e=r.elementPath(e),[0,0,0,0]);for(var n in this.showAll(),this.unmarkAll(),c){var i=c[n],o=i._.type;i.checkApplicable(e,r,r.activeFilter)?t[o]++:this.hideItem(n),i.checkActive(e,r)&&this.mark(n)}t[CKEDITOR.STYLE_BLOCK]||this.hideGroup(l["panelTitle"+String(CKEDITOR.STYLE_BLOCK)]),t[CKEDITOR.STYLE_INLINE]||this.hideGroup(l["panelTitle"+String(CKEDITOR.STYLE_INLINE)]),t[CKEDITOR.STYLE_OBJECT]||this.hideGroup(l["panelTitle"+String(CKEDITOR.STYLE_OBJECT)])},refresh:function(){var e=r.elementPath();if(e){for(var t in c)if(c[t].checkApplicable(e,r,r.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){c={},d=[]}})}}),function(){function o(s){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(e){if(e.editable().hasFocus){var t,n=e.getSelection();if(t=new CKEDITOR.dom.elementPath(n.getCommonAncestor(),n.root).contains({td:1,th:1},1)){n=e.createRange();if((o=CKEDITOR.tools.tryThese(function(){var e=t.getParent().$.cells[t.$.cellIndex+(s?-1:1)];return e.parentNode.parentNode,e},function(){var e;
22return(e=(e=t.getParent()).getAscendant("table").$.rows[e.$.rowIndex+(s?-1:1)]).cells[s?e.cells.length-1:0]}))||s){if(!o)return!0;o=new CKEDITOR.dom.element(o),n.moveToElementEditStart(o),n.checkStartOfBlock()&&n.checkEndOfBlock()||n.selectNodeContents(o)}else{for(var i=t.getAscendant("table").$,o=t.getParent().$.cells,a=(i=new CKEDITOR.dom.element(i.insertRow(-1),e.document),0),r=o.length;a<r;a++)i.append(new CKEDITOR.dom.element(o[a],e.document).clone(!1,!1)).appendBogus();n.moveToElementEditStart(i)}return n.select(!0),!0}}return!1}}}var a={editorFocus:!1,modes:{wysiwyg:1,source:1}},r={exec:function(e){e.container.focusNext(!0,e.tabIndex)}},s={exec:function(e){e.container.focusPrevious(!0,e.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(t){for(var e=!1!==t.config.enableTabKeyTools,n=t.config.tabSpaces||0,i="";n--;)i+="\xa0";i&&t.on("key",function(e){9==e.data.keyCode&&(t.insertText(i),e.cancel())}),e&&t.on("key",function(e){(9==e.data.keyCode&&t.execCommand("selectNextCell")||e.data.keyCode==CKEDITOR.SHIFT+9&&t.execCommand("selectPreviousCell"))&&e.cancel()}),t.addCommand("blur",CKEDITOR.tools.extend(r,a)),t.addCommand("blurBack",CKEDITOR.tools.extend(s,a)),t.addCommand("selectNextCell",o()),t.addCommand("selectPreviousCell",o(!0))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(e,t){var n,i,o,a,r,s,l=void 0===t?this.getTabIndex():t;if(l<=0)for(r=this.getNextSourceNode(e,CKEDITOR.NODE_ELEMENT);r;){if(r.isVisible()&&0===r.getTabIndex()){o=r;break}r=r.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(r=this.getDocument().getBody().getFirst();r=r.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!n)if(!i&&r.equals(this)){if(i=!0,e){if(!(r=r.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;n=1}}else i&&!this.contains(r)&&(n=1);if(r.isVisible()&&!((s=r.getTabIndex())<0)){if(n&&s==l){o=r;break}l<s&&(!o||!a||s<a)?(o=r,a=s):o||0!==s||(o=r,a=s)}}o&&o.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(e,t){for(var n,i,o,a,r=void 0===t?this.getTabIndex():t,s=0,l=this.getDocument().getBody().getLast();l=l.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!n)if(!i&&l.equals(this)){if(i=!0,e){if(!(l=l.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;n=1}}else i&&!this.contains(l)&&(n=1);if(l.isVisible()&&!((a=l.getTabIndex())<0))if(r<=0){if(n&&0===a){o=l;break}s<a&&(o=l,s=a)}else{if(n&&a==r){o=l;break}a<r&&(!o||s<a)&&(o=l,s=a)}}o&&o.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(e){function t(e){return CKEDITOR.tools.extend(e||{},{contextSensitive:1,refresh:function(e,t){this.setState(t.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!e.blockless){var n=e.lang.table;e.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];"+(e.plugins.dialogadvtab?"table"+e.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"],["td: splitBorderShorthand"],[{element:"table",right:function(e){if(e.styles){var t;if(e.styles.border)t=CKEDITOR.tools.style.parse.border(e.styles.border);else if(CKEDITOR.env.ie&&8===CKEDITOR.env.version){var n=e.styles;n["border-left"]&&n["border-left"]===n["border-right"]&&n["border-right"]===n["border-top"]&&n["border-top"]===n["border-bottom"]&&(t=CKEDITOR.tools.style.parse.border(n["border-top"]))}t&&t.style&&"solid"===t.style&&t.width&&0!==parseFloat(t.width)&&(e.attributes.border=1),"collapse"==e.styles["border-collapse"]&&(e.attributes.cellspacing=0)}}}]]})),e.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",t())),e.addCommand("tableDelete",t({exec:function(e){var t=e.elementPath().contains("table",1);if(t){var n=t.getParent(),i=e.editable();1!=n.getChildCount()||n.is("td","th")||n.equals(i)||(t=n),(e=e.createRange()).moveToPosition(t,CKEDITOR.POSITION_BEFORE_START),t.remove(),e.select()}}})),e.ui.addButton&&e.ui.addButton("Table",{label:n.toolbar,command:"table",toolbar:"insert,30"}),CKEDITOR.dialog.add("table",this.path+"dialogs/table.js"),CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js"),e.addMenuItems&&e.addMenuItems({table:{label:n.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:n.deleteTable,command:"tableDelete",group:"table",order:1}}),e.on("doubleclick",function(e){e.data.element.is("table")&&(e.data.dialog="tableProperties")}),e.contextMenu&&e.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function O(e,t){function n(e){return!t||t.contains(e)&&e.getAscendant("table",!0).equals(t)}function i(e){0<o.length||e.type!=CKEDITOR.NODE_ELEMENT||!g.test(e.getName())||e.getCustomData("selected_cell")||(CKEDITOR.dom.element.setMarker(a,e,"selected_cell",!0),o.push(e))}var o=[],a={};if(!e)return o;for(var r=e.getRanges(),s=0;s<r.length;s++){var l,c;if((l=r[s]).collapsed)(l=l.getCommonAncestor().getAscendant({td:1,th:1},!0))&&n(l)&&o.push(l);else for((l=new CKEDITOR.dom.walker(l)).guard=i;c=l.next();)c.type==CKEDITOR.NODE_ELEMENT&&c.is(CKEDITOR.dtd.table)||(c=c.getAscendant({td:1,th:1},!0))&&!c.getCustomData("selected_cell")&&n(c)&&(CKEDITOR.dom.element.setMarker(a,c,"selected_cell",!0),o.push(c))}return CKEDITOR.dom.element.clearAllMarkers(a),o}function a(e,t){var n=(i=(r=E(e)?e:O(e))[0]).getAscendant("table"),i=i.getDocument(),o=(s=r[0].getParent()).$.rowIndex,a=(r=r[r.length-1]).getParent().$.rowIndex+r.$.rowSpan-1,r=new CKEDITOR.dom.element(n.$.rows[a]),s=(o=t?o:a,t?s:r);for(n=(r=CKEDITOR.tools.buildTableMap(n))[o],o=t?r[o-1]:r[o+1],r=r[0].length,i=i.createElement("tr"),a=0;n[a]&&a<r;a++){var l;1<n[a].rowSpan&&o&&n[a]==o[a]?(l=n[a]).rowSpan+=1:((l=new CKEDITOR.dom.element(n[a]).clone()).removeAttribute("rowSpan"),l.a
22ppendBogus(),i.append(l),l=l.$),a+=l.colSpan-1}return t?i.insertBefore(s):i.insertAfter(s),i}function h(e){if(e instanceof CKEDITOR.dom.selection){var t=e.getRanges(),n=(r=O(e))[0].getAscendant("table"),i=CKEDITOR.tools.buildTableMap(n),o=r[0].getParent().$.rowIndex,a=(r=r[r.length-1]).getParent().$.rowIndex+r.$.rowSpan-1,r=[];for(e.reset(),e=o;e<=a;e++){for(var s=i[e],l=new CKEDITOR.dom.element(n.$.rows[e]),c=0;c<s.length;c++){var d=new CKEDITOR.dom.element(s[c]),u=d.getParent().$.rowIndex;1==d.$.rowSpan?d.remove():(--d.$.rowSpan,u==e&&((u=i[e+1])[c-1]?d.insertAfter(new CKEDITOR.dom.element(u[c-1])):new CKEDITOR.dom.element(n.$.rows[e+1]).append(d,1))),c+=d.$.colSpan-1}r.push(l)}for(i=n.$.rows,t[0].moveToPosition(n,CKEDITOR.POSITION_BEFORE_START),o=new CKEDITOR.dom.element(i[a+1]||(0<o?i[o-1]:null)||n.$.parentNode),e=r.length;0<=e;e--)h(r[e]);return n.$.parentNode?o:(t[0].select(),null)}return e instanceof CKEDITOR.dom.element&&(1==(n=e.getAscendant("table")).$.rows.length?n.remove():e.remove()),null}function r(e){for(var t=e.getParent().$.cells,n=0,i=0;i<t.length;i++){var o=t[i];n=n+o.colSpan;if(o==e.$)break}return n-1}function c(e,t){for(var n=t?Infinity:0,i=0;i<e.length;i++){var o=r(e[i]);(t?o<n:n<o)&&(n=o)}return n}function s(e,t){for(var n=(o=E(e)?e:O(e))[0].getAscendant("table"),i=c(o,1),o=c(o),a=t?i:o,r=CKEDITOR.tools.buildTableMap(n),s=(n=[],i=[],o=[],r.length),l=0;l<s;l++)n.push(r[l][a]),i.push(t?r[l][a-1]:r[l][a+1]);for(l=0;l<s;l++)n[l]&&(1<n[l].colSpan&&i[l]==n[l]?(r=n[l]).colSpan+=1:((r=(a=new CKEDITOR.dom.element(n[l])).clone()).removeAttribute("colSpan"),r.appendBogus(),r[t?"insertBefore":"insertAfter"].call(r,a),o.push(r),r=r.$),l+=r.rowSpan-1);return o}function l(e){function t(e){var t,n,i;if(1!==(t=e.getRanges()).length)return e;if((t=t[0]).collapsed||0!==t.endOffset)return e;if("td"!==(i=(n=t.endContainer).getName().toLowerCase())&&"th"!==i)return e;for((i=n.getPrevious())||(i=n.getParent().getPrevious().getLast());i.type!==CKEDITOR.NODE_TEXT&&"br"!==i.getName().toLowerCase();)if(!(i=i.getLast()))return e;return t.setEndAt(i,CKEDITOR.POSITION_BEFORE_END),t.select()}CKEDITOR.env.webkit&&!e.isFake&&(e=t(e));var n,i,o=e.getRanges(),a=(s=O(e))[0],r=s[s.length-1],s=a.getAscendant("table"),l=CKEDITOR.tools.buildTableMap(s),c=[];e.reset();var d=0;for(e=l.length;d<e;d++)for(var u=0,h=l[d].length;u<h;u++)void 0===n&&l[d][u]==a.$&&(n=u),l[d][u]==r.$&&(i=u);for(d=n;d<=i;d++)for(u=0;u<l.length;u++)r=l[u],a=new CKEDITOR.dom.element(s.$.rows[u]),(r=new CKEDITOR.dom.element(r[d])).$&&(1==r.$.colSpan?r.remove():--r.$.colSpan,u+=r.$.rowSpan-1,a.$.cells.length||c.push(a));return n=l[0].length-1>i?new CKEDITOR.dom.element(l[0][i+1]):n&&-1!==l[0][n-1].cellIndex?new CKEDITOR.dom.element(l[0][n-1]):new CKEDITOR.dom.element(s.$.parentNode),c.length==e&&(o[0].moveToPosition(s,CKEDITOR.POSITION_AFTER_END),o[0].select(),s.remove()),n}function d(e,t){var n=e.getStartElement().getAscendant({td:1,th:1},!0);if(n){var i=n.clone();i.appendBogus(),t?i.insertBefore(n):i.insertAfter(n)}}function u(e){if(e instanceof CKEDITOR.dom.selection){var t,n=e.getRanges(),i=O(e),o=i[0]&&i[0].getAscendant("table");e:{var a=0;t=i.length-1;for(var r,s,l={};r=i[a++];)CKEDITOR.dom.element.setMarker(l,r,"delete_cell",!0);for(a=0;r=i[a++];)if((s=r.getPrevious())&&!s.getCustomData("delete_cell")||(s=r.getNext())&&!s.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(l),t=s;break e}CKEDITOR.dom.element.clearAllMarkers(l),(a=(a=i[0].getParent()).getPrevious())?t=a.getLast():t=(a=(a=i[t].getParent()).getNext())?a.getChild(0):null}for(e.reset(),e=i.length-1;0<=e;e--)u(i[e]);t?f(t,!0):o&&(n[0].moveToPosition(o,CKEDITOR.POSITION_BEFORE_START),n[0].select(),o.remove())}else e instanceof CKEDITOR.dom.element&&(1==(n=e.getParent()).getChildCount()?n.remove():e.remove())}function f(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 D(e,t,n){if(e=e[t],void 0===n)return e;for(t=0;e&&t<e.length;t++){if(n.is&&e[t]==n.$)return t;if(t==n)return new CKEDITOR.dom.element(e[t])}return n.is?-1:null}function v(e,t,n){var i,o,a=O(e);
22if((t?1!=a.length:a.length<2)||(i=e.getCommonAncestor())&&i.type==CKEDITOR.NODE_ELEMENT&&i.is("table"))return!1;i=(e=a[0]).getAscendant("table");var r=CKEDITOR.tools.buildTableMap(i),s=r.length,l=r[0].length,c=e.getParent().$.rowIndex,d=D(r,c,e);if(t){var u;try{var h=parseInt(e.getAttribute("rowspan"),10)||1;o=parseInt(e.getAttribute("colspan"),10)||1,u=r["up"==t?c-h:"down"==t?c+h:c]["left"==t?d-o:"right"==t?d+o:d]}catch(v){return!1}if(!u||e.$==u)return!1;a["up"==t||"left"==t?"unshift":"push"](new CKEDITOR.dom.element(u))}t=e.getDocument();var f=c,m=(h=u=0,!n&&new CKEDITOR.dom.documentFragment(t)),p=0;for(t=0;t<a.length;t++){var g=(o=a[t]).getParent(),E=o.getFirst(),T=o.$.colSpan,C=o.$.rowSpan,I=D(r,g=g.$.rowIndex,o);p=p+T*C,h=Math.max(h,I-d+T);u=Math.max(u,g-c+C),n||((C=(T=o).getBogus())&&C.remove(),T.trim(),o.getChildren().count()&&(g==f||!E||E.isBlockBoundary&&E.isBlockBoundary({br:1})||(!(f=m.getLast(CKEDITOR.dom.walker.whitespaces(!0)))||f.is&&f.is("br")||m.append("br")),o.moveChildren(m)),t?o.remove():o.setHtml("")),f=g}if(n)return u*h==p;for(m.moveChildren(e),e.appendBogus(),l<=h?e.removeAttribute("rowSpan"):e.$.rowSpan=u,s<=u?e.removeAttribute("colSpan"):e.$.colSpan=h,t=(a=(n=new CKEDITOR.dom.nodeList(i.$.rows)).count())-1;0<=t;t--)(i=n.getItem(t)).$.cells.length||(i.remove(),a++);return e}function m(e,t){if(1<(n=O(e)).length)return!1;if(t)return!0;var n,i,o=(l=(n=n[0]).getParent()).getAscendant("table"),a=D(c=CKEDITOR.tools.buildTableMap(o),d=l.$.rowIndex,n);if(1<(s=n.$.rowSpan)){i=Math.ceil(s/2);for(var r,s=Math.floor(s/2),l=d+i,c=(o=new CKEDITOR.dom.element(o.$.rows[l]),D(c,l)),d=(l=n.clone(),0);d<c.length;d++){if((r=c[d]).parentNode==o.$&&a<d){l.insertBefore(new CKEDITOR.dom.element(r));break}r=null}r||o.append(l)}else for(s=i=1,(o=l.clone()).insertAfter(l),o.append(l=n.clone()),r=D(c,d),a=0;a<r.length;a++)r[a].rowSpan++;return l.appendBogus(),n.$.rowSpan=i,l.$.rowSpan=s,1==i&&n.removeAttribute("rowSpan"),1==s&&l.removeAttribute("rowSpan"),l}function p(e,t){if(1<(n=O(e)).length)return!1;if(t)return!0;var n,i=(n=n[0]).getParent(),o=i.getAscendant("table"),a=D(o=CKEDITOR.tools.buildTableMap(o),i.$.rowIndex,n);if(1<(r=n.$.colSpan))i=Math.ceil(r/2),r=Math.floor(r/2);else{for(var r=i=1,s=[],l=0;l<o.length;l++){var c=o[l];s.push(c[a]),1<c[a].rowSpan&&(l+=c[a].rowSpan-1)}for(o=0;o<s.length;o++)s[o].colSpan++}return(o=n.clone()).insertAfter(n),o.appendBogus(),n.$.colSpan=i,o.$.colSpan=r,1==i&&n.removeAttribute("colSpan"),1==r&&o.removeAttribute("colSpan"),o}var g=/^(?:td|th)$/,E=CKEDITOR.tools.isArray;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(i){function e(e){return CKEDITOR.tools.extend(e||{},{contextSensitive:1,refresh:function(e,t){this.setState(t.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function t(e,t){var n=i.addCommand(e,t);i.addFeature(n)}var n=i.lang.table,o=CKEDITOR.tools.style.parse;t("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(e){return e.styles.background&&o.background(e.styles.background).color},right:function(e){e.styles["background-color"]=o.background(e.styles.background).color}},{element:"td",check:"td{vertical-align}",left:function(e){return e.attributes&&e.attributes.valign},right:function(e){e.styles["vertical-align"]=e.attributes.valign,delete e.attributes.valign}}],[{element:"tr",check:"td{height}",left:function(e){return e.styles&&e.styles.height},right:function(t){CKEDITOR.tools.array.forEach(t.children,function(e){e.name in{td:1,th:1}&&(e.attributes["cke-row-height"]=t.styles.height)}),delete t.styles.height}}],[{element:"td",check:"td{height}",left:function(e){return(e=e.attributes)&&e["cke-row-height"]},right:function(e){e.styles.height=e.attributes["cke-row-height"],delete e.attributes["cke-row-height"]}}]]}))),CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js"),t("rowDelete",e({requiredContent:"table",exec:function(e){(e=h(e=e.getSelection()))&&f(e)}})),t("rowInsertBefore",e({requiredContent:"table",exec:function(e){a(e=O(e=e.getSelection()),!0)}})),t("rowInsertAfter",e({requiredContent:"table",exec:function(e){a(e=O(e=e.getSelection()))}})),t("columnDelete",e({requiredContent:"table",exec:function(e){(e=l(e=e.getSelection()))&&f(e,!0)}})),t("columnInsertBefore",e({requiredContent:"table",exec:function(e){s(e=O(e=e.getSelection()),!0)}})),t("columnInsertAfter",e({requiredContent:"table",exec:function(e){s(e=O(e=e.getSelection()))}})),t("cellDelete",e({requiredContent:"table",exec:function(e){u(e=e.getSelection())}})),t("cellMerge",e({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(e,t){t.cell=v(e.getSelection()),f(t.cell,!0)}})),t("cellMergeRight",e({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(e,t){t.cell=v(e.getSelection(),"right"),f(t.cell,!0)}})),t("cellMergeDown",e({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(e,t){t.cell=v(e.getSelection(),"down"),f(t.cell,!0)}})),t("cellVerticalSplit",e({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(e){f(p(e.getSelection()))}})),t("cellHorizontalSplit",e({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(e){f(m(e.getSelection()))}})),t("cellInsertBefore",e({requiredContent:"table",exec:function(e){d(e=e.getSelection(),!0)}})),t("cellInsertAfter",e({requiredContent:"table",exec:function(e){d(e=e.getSelection())}})),i.addMenuItems&&i.addMenuItems({tablecell:{label:n.cell.menu,group:"tablecell",order:1,getItems:function(){var e=i.getSelection(),t=O(e);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:v(e,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:v(e,"right",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:v(e,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:p(e,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:m(e,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:0<t.length?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:n.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:n.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:n.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:n.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:n.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:n.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:n.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:n.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:n.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:n.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:n.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:n.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:n.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:n.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:n.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:n.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:n.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}}),i.contextMenu&&i.contextMenu.addListener(function(e,t,n){return(e=n.contains({td:1,th:1},1))&&!e.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getCellColIndex:r,insertRow:a,insertColumn:s,getSelectedCells:O},CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(e,t,n,i,o){e=e.$.rows,n=n||0,i="number"==typeof i?i:e.length-1,o="number"==typeof o?o:-1;var a=-1,r=[];for(t=t||0;t<=i;t++){
23!r[++a]&&(r[a]=[]);for(var s=-1,l=n;l<=(-1===o?e[t].cells.length-1:o);l++){if(!(d=e[t].cells[l]))break;for(s++;r[a][s];)s++;for(var c=isNaN(d.colSpan)?1:d.colSpan,d=isNaN(d.rowSpan)?1:d.rowSpan,u=0;u<d&&!(i<t+u);u++){r[a+u]||(r[a+u]=[]);for(var h=0;h<c;h++)r[a+u][s+h]=e[t].cells[l]}if(s+=c-1,-1!==o&&o<=s)break}}return r},function(){function d(e){return CKEDITOR.plugins.widget&&CKEDITOR.plugins.widget.isDomWidget(e)}function u(e,t){var n,i,o=e.getAscendant("table"),a=t.getAscendant("table"),r=CKEDITOR.tools.buildTableMap(o),s=T(e),l=T(t),c=[],d={};for(o.contains(a)&&(l=T(t=t.getAscendant({td:1,th:1}))),l<s&&(o=s,s=l,l=o,o=e,e=t,t=o),o=0;o<r[s].length;o++)if(e.$===r[s][o]){n=o;break}for(o=0;o<r[l].length;o++)if(t.$===r[l][o]){i=o;break}for(i<n&&(o=n,n=i,i=o),o=s;o<=l;o++)for(s=n;s<=i;s++)(a=new CKEDITOR.dom.element(r[o][s])).$&&!a.getCustomData("selected_cell")&&(c.push(a),CKEDITOR.dom.element.setMarker(d,a,"selected_cell",!0));return CKEDITOR.dom.element.clearAllMarkers(d),c}function h(e){if(e)return(e=e.clone()).enlarge(CKEDITOR.ENLARGE_ELEMENT),(e=e.getEnclosedNode())&&e.is&&e.is(CKEDITOR.dtd.$tableContent)}function f(e){return(e=e.editable().findOne(".cke_table-faked-selection"))&&e.getAscendant("table")}function m(e,t){var n,i=e.editable().find(".cke_table-faked-selection");for(e.fire("lockSnapshot"),e.editable().removeClass("cke_table-faked-selection-editor"),n=0;n<i.count();n++)i.getItem(n).removeClass("cke_table-faked-selection");0<i.count()&&i.getItem(0).getAscendant("table").data("cke-table-faked-selection-table",!1),e.fire("unlockSnapshot"),t&&(v={active:!1},e.getSelection().isInTable()&&e.getSelection().reset())}function p(e,t){var n,i,o=[];for(i=0;i<t.length;i++)(n=e.createRange()).setStartBefore(t[i]),n.setEndAfter(t[i]),o.push(n);e.getSelection().selectRanges(o)}function g(e){var t=e.editable().find(".cke_table-faked-selection");t.count()<1||p(e,t=u(t.getItem(0),t.getItem(t.count()-1)))}function E(e,t,n){var i,o=O(e.getSelection(!0));if(t=t.is("table")?null:t,(i=v.active&&!v.first)&&!(i=t)&&(i=e.getSelection().getRanges(),i=!!(1<o.length||i[0]&&!i[0].collapsed)),i)v.first=t||o[0],v.dirty=!t&&1!==o.length;else if(v.active&&t&&v.first.getAscendant("table").equals(t.getAscendant("table"))){if(o=u(v.first,t),!v.dirty&&1===o.length&&!d(n.data.getTarget()))return m(e,"mouseup"===n.name);v.dirty=!0,v.last=t,p(e,o)}}function o(e){var t,n=(e=e.editor||e.sender.editor)&&e.getSelection(),i=n&&n.getRanges()||[];if(n&&(m(e),n.isInTable()&&n.isFake)){for(1===i.length&&i[0]._getTableElement()&&i[0]._getTableElement().is("table")&&(t=i[0]._getTableElement()),t=O(n,t),e.fire("lockSnapshot"),n=0;n<t.length;n++)t[n].addClass("cke_table-faked-selection");0<t.length&&(e.editable().addClass("cke_table-faked-selection-editor"),t[0].getAscendant("table").data("cke-table-faked-selection-table","")),e.fire("unlockSnapshot")}}function T(e){return e.getAscendant("tr",!0).$.rowIndex}function C(e){function t(e,t){return!(!e||!t)&&(e.equals(t)||e.contains(t)||t.contains(e)||e.getCommonAncestor(t).is(c))}function o(e){return!e.getAscendant("table",!0)&&e.getDocument().equals(i.document)}function n(e,t,n,i){return!("mousedown"!==e.name||CKEDITOR.tools.getMouseButton(e)!==CKEDITOR.MOUSE_BUTTON_LEFT&&i)||((t=e.name===(CKEDITOR.env.gecko?"mousedown":"mouseup")&&!o(e.data.getTarget()))&&(t=!((e=e.data.getTarget().getAscendant({td:1,th:1},!0))&&e.hasClass("cke_table-faked-selection"))),t)}if(e.data.getTarget().getName&&("mouseup"===e.name||!d(e.data.getTarget()))){var i=e.editor||e.listenerData.editor,a=i.get
23Selection(1),r=f(i),s=(l=e.data.getTarget())&&l.getAscendant({td:1,th:1},!0),l=l&&l.getAscendant("table",!0),c={table:1,thead:1,tbody:1,tfoot:1,tr:1,td:1,th:1};n(e,a,r,l)&&m(i,!0),!v.active&&"mousedown"===e.name&&CKEDITOR.tools.getMouseButton(e)===CKEDITOR.MOUSE_BUTTON_LEFT&&l&&(v={active:!0},CKEDITOR.document.on("mouseup",C,null,{editor:i})),(s||l)&&E(i,s||l,e),"mouseup"===e.name&&(CKEDITOR.tools.getMouseButton(e)===CKEDITOR.MOUSE_BUTTON_LEFT&&(o(e.data.getTarget())||t(r,l))&&g(i),v={active:!1},CKEDITOR.document.removeListener("mouseup",C))}}function a(e){var t=e.data.getTarget().getAscendant({td:1,th:1},!0);t&&!t.hasClass("cke_table-faked-selection")&&(e.cancel(),e.data.preventDefault())}function n(e,t){function n(e){e.cancel()}var i,o,a,r,s=e.getSelection(),l=s.createBookmarks(),c=e.document,d=e.createRange(),u=c.getDocumentElement().$,h=CKEDITOR.env.ie&&CKEDITOR.env.version<9,f=e.blockless||CKEDITOR.env.ie?"span":"div";c.getById("cke_table_copybin")||(i=c.createElement(f),(o=c.createElement(f)).setAttributes({id:"cke_table_copybin","data-cke-temp":"1"}),i.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"}),i.setStyle("ltr"==e.config.contentsLangDirection?"left":"right","-5000px"),i.setHtml(e.getSelectedHtml(!0)),e.fire("lockSnapshot"),o.append(i),e.editable().append(o),r=e.on("selectionChange",n,null,null,0),h&&(a=u.scrollTop),d.selectNodeContents(i),d.select(),h&&(u.scrollTop=a),setTimeout(function(){o.remove(),s.selectBookmarks(l),r.removeListener(),e.fire("unlockSnapshot"),t&&(e.extractSelectedHtml(),e.fire("saveSnapshot"))},100))}function r(e){var t=e.editor||e.sender.editor;t.getSelection().isInTable()&&n(t,"cut"===e.name)}function I(e){this._reset(),e&&this.setSelectedCells(e)}function e(t,n,i){t.on("beforeCommandExec",function(e){-1!==CKEDITOR.tools.array.indexOf(n,e.data.name)&&(e.data.selectedCells=O(t.getSelection()))}),t.on("afterCommandExec",function(e){-1!==CKEDITOR.tools.array.indexOf(n,e.data.name)&&i(t,e.data)})}var t,O,D,l,s,v={active:!1};I.prototype={},I.prototype._reset=function(){this.cells={first:null,last:null,all:[]},this.rows={first:null,last:null}},I.prototype.setSelectedCells=function(e){this._reset(),e=e.slice(0),this._arraySortByDOMOrder(e),this.cells.all=e,this.cells.first=e[0],this.cells.last=e[e.length-1],this.rows.first=e[0].getAscendant("tr"),this.rows.last=this.cells.last.getAscendant("tr")},I.prototype.getTableMap=function(){var e,t=D(this.cells.first);e:{var n,i=(e=this.cells.last).getAscendant("table"),o=T(e);i=CKEDITOR.tools.buildTableMap(i);for(n=0;n<i[o].length;n++)if(new CKEDITOR.dom.element(i[o][n]).equals(e)){e=n;break e}e=void 0}return CKEDITOR.tools.buildTableMap(this._getTable(),T(this.rows.first),t,T(this.rows.last),e)},I.prototype._getTable=function(){return this.rows.first.getAscendant("table")},I.prototype.insertRow=function(e,t,n){if(void 0===e)e=1;else if(e<=0)return;for(var i,o=this.cells.first.$.cellIndex,a=this.cells.last.$.cellIndex,r=n?[]:this.cells.all,s=0;s<e;s++)i=l(n?this.cells.all:r,t),i=CKEDITOR.tools.array.filter(i.find("td, th").toArray(),function(e){return!!n||e.$.cellIndex>=o&&e.$.cellIndex<=a}),r=t?i.concat(r):r.concat(i);this.setSelectedCells(r)},I.prototype.insertColumn=function(e){function t(e){return e=T(e),i<=e&&e<=o}if(void 0===e)e=1;else if(e<=0)return;for(var n=(a=this.cells).all,i=T(a.first),o=T(a.last),a=0;a<e;a++)n=n.concat(CKEDITOR.tools.array.filter(s(n),t));this.setSelectedCells(n)},I.prototype.emptyCells=function(e){e=e||this.cells.all;for(var t=0;t<e.length;t++)e[t].setHtml("")},I.prototype._arraySortByDOMOrder=function(e){e.sort(function(e,t){return e.getPosition(t)&CKEDITOR.POSITION_PRECEDING?-1:1})};var c={onPaste:function(e){function t(e){return Math.max.apply(null,CKEDITOR.tools.array.map(e,function(e){return e.length},0))}function n(e){var t=a.createRange();t.selectNodeContents(e),t.select()}var i,o,a=e.editor,r=a.getSelection(),s=O(r),l=this.findTableInPastedContent(a,e.data.dataValue),c=r.isInTable(!0)&&this.isBoundarySelection(r);!s.length||1===s.length&&!h(r.getRanges()[0])&&!c||c&&!l||(s=s[0].getAscendant("table"),i=new I(O(r,s)),a.once("afterPaste",function(){var e;
23if(o){e=new CKEDITOR.dom.element(o[0][0]);var t=o[o.length-1];e=u(e,new CKEDITOR.dom.element(t[t.length-1]))}else e=i.cells.all;p(a,e)}),l?(e.stop(),c?(i.insertRow(1,1===c,!0),r.selectElement(i.rows.first)):(i.emptyCells(),p(a,i.cells.all)),e=i.getTableMap(),o=CKEDITOR.tools.buildTableMap(l),i.insertRow(o.length-e.length),i.insertColumn(t(o)-t(e)),e=i.getTableMap(),this.pasteTable(i,e,o),a.fire("saveSnapshot"),setTimeout(function(){a.fire("afterPaste")},0)):(n(i.cells.first),a.once("afterPaste",function(){a.fire("lockSnapshot"),i.emptyCells(i.cells.all.slice(1)),p(a,i.cells.all),a.fire("unlockSnapshot")})))},isBoundarySelection:function(e){var t=(e=e.getRanges()[0]).endContainer.getAscendant("tr",!0);if(t&&e.collapsed){if(e.checkBoundaryOfElement(t,CKEDITOR.START))return 1;if(e.checkBoundaryOfElement(t,CKEDITOR.END))return 2}return 0},findTableInPastedContent:function(e,t){var n=e.dataProcessor,i=new CKEDITOR.dom.element("body");return n||(n=new CKEDITOR.htmlDataProcessor(e)),i.setHtml(n.toHtml(t),{fixForBody:!1}),1<i.getChildCount()?null:i.findOne("table")},pasteTable:function(e,t,n){var i,o,a,r,s,l=D(e.cells.first),c=e._getTable(),d={};for(r=0;r<n.length;r++)for(o=new CKEDITOR.dom.element(c.$.rows[e.rows.first.$.rowIndex+r]),s=0;s<n[r].length;s++)a=new CKEDITOR.dom.element(n[r][s]),i=t[r]&&t[r][s]?new CKEDITOR.dom.element(t[r][s]):null,a&&!a.getCustomData("processed")?(i&&i.getParent()?a.replace(i):(0===s||n[r][s-1])&&((i=0!==s?new CKEDITOR.dom.element(n[r][s-1]):null)&&o.equals(i.getParent())?a.insertAfter(i):0<l?o.$.cells[l]?a.insertAfter(new CKEDITOR.dom.element(o.$.cells[l])):o.append(a):o.append(a,!0)),CKEDITOR.dom.element.setMarker(d,a,"processed",!0)):a.getCustomData("processed")&&i&&i.remove();CKEDITOR.dom.element.clearAllMarkers(d)}};CKEDITOR.plugins.tableselection={getCellsBetween:u,keyboardIntegration:function(o){function h(e){var t=e.getEnclosedNode();t&&"function"==typeof t.is&&t.is({td:1,th:1})?t.setText(""):e.deleteContents(),CKEDITOR.tools.array.forEach(e._find("td"),function(e){e.appendBogus()})}var e=o.editable();e.attachListener(e,"keydown",function(d){function l(e,t){if(!t.length)return null;var n=d.createRange(),i=CKEDITOR.dom.range.mergeRanges(t);CKEDITOR.tools.array.forEach(i,function(e){e.enlarge(CKEDITOR.ENLARGE_ELEMENT)});var o=(a=i[0].getBoundaryNodes()).startNode,a=a.endNode;if(o&&o.is&&o.is(u)){for(var r=o.getAscendant("table",!0),s=o.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT,r),l=!1,c=function(e){return!o.contains(e)&&e.is&&e.is("td","th")};s&&!c(s);)s=s.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT,r);return!s&&a&&a.is&&!a.is("table")&&a.getNext()&&(s=a.getNext().findOne("td, th"),l=!0),s?n["moveToElementEdit"+(l?"Start":"End")](s):(n.setStartBefore(o.getAscendant("table",!0)),n.collapse(!0)),i[0].deleteContents(),[n]}return o?(n.moveToElementEditablePosition(o),[n]):void 0}var c={37:1,38:1,39:1,40:1,8:1,46:1,13:1},u=CKEDITOR.tools.extend({table:1},CKEDITOR.dtd.$tableContent);return delete u.td,delete u.th,function(e){var t,n,i,o,a=e.data.getKey(),r=e.data.getKeystroke(),s=37===a||38==a;if(c[a]&&!d.readOnly&&(t=d.getSelection())&&t.isInTable()&&t.isFake)if(i=(n=t.getRanges())[0]._getTableElement(),o=n[n.length-1]._getTableElement(),(13!==a||d.plugins.enterkey)&&(e.data.preventDefault(),e.cancel()),36<a&&a<41)n[0].moveToElementEditablePosition(s?i:o,!s),t.selectRanges([n[0]]);else if(13!==a||13===r||r===CKEDITOR.SHIFT+13){for(e=0;e<n.length;e++)h(n[e]);(e=l(i,n))?n=e:n[0].moveToElementEditablePosition(i),t.selectRanges(n),13===a&&d.plugins.enterkey?(d.fire("lockSnapshot"),13===r?d.execCommand("enter"):d.execCommand("shiftEnter"),d.fire("unlockSnapshot"),d.fire("saveSnapshot")):13!==a&&d.fire("saveSnapshot")}}}(o),null,null,-1),e.attachListener(e,"keypress",function(e){var t,n=o.getSelection(),i=e.data.$.charCode||13===e.data.getKey();if(!o.readOnly&&n&&n.isInTable()&&n.isFake&&i&&!(e.data.getKeystroke()&CKEDITOR.CTRL)){for(i=(e=n.getRanges())[0].getEnclosedNode().getAscendant({td:1,th:1},!0),t=0;t<e.length;t++)h(e[t]);i&&(e[0].moveToElementEditablePosition(i),n.selectRanges([e[0]]))}},null,null,-1)},isSupportedEnvironment:!(CKEDITOR.env.ie&&CKEDITOR.env.version<11)},CKEDITOR.plugins.add("tableselection",{requires:"clipboard,tabletools",onLoad:function(){t=CKEDITOR.plugins.tabletools,O=t.getSelectedCells,D=t.getCellColIndex,l=t.insertRow,s=t.insertColumn,CKEDITOR.document.appendStyleSheet(this.path+"styles/tableselection.css")},init:function(i){CKEDITOR.plugins.tableselection.isSupportedEnvironment&&(i.addContentsCss&&i.addContentsCss(this.path+"styles/tableselection.css"),i.on("contentDom",function(){var e=i.editable(),t=e.isInline()?e:i.document,n={editor:i};e.attachListener(t,"mousedown",C,null,n),e.attachListener(t,"mousemove",C,null,n),e.attachListener(t,"mouseup",C,null,n),e.attachListener(e,"dragstart",a),e.attachListener(i,"selectionCheck",o),CKEDITOR.plugins.tableselection.keyboardIntegration(i),CKEDITOR.plugins.clipboard&&!CKEDITOR.plugins.clipboard.isCustomCopyCutSupported&&(e.attachListener(e,"cut",r),e.attachListener(e,"copy",r))}),i.on("paste",c.onPaste,c),e(i,"rowInsertBefore rowInsertAfter columnInsertBefore columnInsertAfter cellInsertBefore cellInsertAfter".split(" "),function(e,t){p(e,t.selectedCells)}),e(i,["cellMerge","cellMergeRight","cellMergeDown"],function(e,t){p(e,[t.commandData.cell])}),e(i,["cellDelete"],function(e){m(e,!0)}))}})}(),function(){var s=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SH
23IFT+90],n={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(e){function t(e){i.enabled&&!1!==e.data.command.canUndo&&i.save()}function n(){i.enabled=!e.readOnly&&"wysiwyg"==e.mode,i.onChange()}var i=e.undoManager=new l(e),o=i.editingHandler=new c(i),a=e.addCommand("undo",{exec:function(){i.undo()&&(e.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),r=e.addCommand("redo",{exec:function(){i.redo()&&(e.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});e.setKeystroke([[s[0],"undo"],[s[1],"redo"],[s[2],"redo"]]),i.onChange=function(){a.setState(i.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),r.setState(i.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)},e.on("beforeCommandExec",t),e.on("afterCommandExec",t),e.on("saveSnapshot",function(e){i.save(e.data&&e.data.contentOnly)}),e.on("contentDom",o.attachListeners,o),e.on("instanceReady",function(){e.fire("saveSnapshot")}),e.on("beforeModeUnload",function(){"wysiwyg"==e.mode&&i.save(!0)}),e.on("mode",n),e.on("readOnly",n),e.ui.addButton&&(e.ui.addButton("Undo",{label:e.lang.undo.undo,command:"und
23o",toolbar:"undo,10"}),e.ui.addButton("Redo",{label:e.lang.undo.redo,command:"redo",toolbar:"undo,20"})),e.resetUndo=function(){i.reset(),e.fire("saveSnapshot")},e.on("updateSnapshot",function(){i.currentImage&&i.update()}),e.on("lockSnapshot",function(e){e=e.data,i.lock(e&&e.dontUpdate,e&&e.forceUpdate)}),e.on("unlockSnapshot",i.unlock,i)}}),CKEDITOR.plugins.undo={};var l=CKEDITOR.plugins.undo.UndoManager=function(e){this.strokesRecorded=[0,0],this.locked=null,this.previousKeyGroup=-1,this.limit=e.config.undoStackSize||20,this.strokesLimit=25,this.editor=e,this.reset()};l.prototype={type:function(e,t){var n=l.getKeyGroup(e),i=this.strokesRecorded[n]+1;t=t||i>=this.strokesLimit,this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange()),t?(i=0,this.editor.fire("saveSnapshot")):this.editor.fire("change"),this.strokesRecorded[n]=i,this.previousKeyGroup=n},keyGroupChanged:function(e){return l.getKeyGroup(e)!=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(e,t,n){var i=this.editor;if(this.locked||"ready"!=i.status||"wysiwyg"!=i.mode)return!1;var o=i.editable();if(!o||"ready"!=o.status)return!1;if(o=this.snapshots,t||(t=new a(i)),!1===t.contents)return!1;if(this.currentImage)if(t.equalsContent(this.currentImage)){if(e||t.equalsSelection(this.currentImage))return!1}else!1!==n&&i.fire("change");return o.splice(this.index+1,o.length-this.index-1),o.length==this.limit&&o.shift(),this.index=o.push(t)-1,this.currentImage=t,!1!==n&&this.refreshState(),!0},restoreImage:function(e){var t,n=this.editor;e.bookmarks&&(n.focus(),t=n.getSelection()),this.locked={level:999},this.editor.loadSnapshot(e.contents),e.bookmarks?t.selectBookmarks(e.bookmarks):CKEDITOR.env.ie&&((t=this.editor.document.getBody().$.createTextRange()).collapse(!0),t.select()),this.locked=null,this.index=e.index,this.currentImage=this.snapshots[this.index],this.update(),this.refreshState(),n.fire("change")},getNextImage:function(e){var t,n=this.snapshots,i=this.currentImage;if(i)if(e){for(t=this.index-1;0<=t;t--)if(e=n[t],!i.equalsContent(e))return e.index=t,e}else for(t=this.index+1;t<n.length;t++)if(e=n[t],!i.equalsContent(e))return e.index=t,e;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 e=this.getNextImage(!0);if(e)return this.restoreImage(e),!0}return!1},redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var e=this.getNextImage(!1);if(e)return this.restoreImage(e),!0}return!1},update:function(e){if(!this.locked){e||(e=new a(this.editor));for(var t=this.index,n=this.snapshots;0<t&&this.currentImage.equalsContent(n[t-1]);)--t;n.splice(t,this.index-t+1,e),this.index=t,this.currentImage=e}},updateSelection:function(e){if(!this.snapshots.length)return!1;var t=this.snapshots,n=t[t.length-1];return!(!n.equalsContent(e)||n.equalsSelection(e))&&(this.currentImage=t[t.length-1]=e,!0)},lock:function(e,t){if(this.locked)this.locked.level++;else if(e)this.locked={level:1};else{var n=null;if(t)n=!0;else{var i=new a(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(i)&&(n=i)}this.locked={update:n,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var e=this.locked.update;if(this.locked=null,!0===e)this.update();else if(e){var t=new a(this.editor,!0);e.equalsContent(t)||this.update()}}}},l.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1},l.keyGroups={PRINTABLE:0,FUNCTIONAL:1},l.isNavigationKey=function(e){return!!l.navigationKeyCodes[e]},l.getKeyGroup=function(e){var t=l.keyGroups;return n[e]?t.FUNCTIONAL:t.PRINTABLE},l.getOppositeKeyGroup=function(e){var t=l.keyGroups;return e==t.FUNCTIONAL?t.PRINTABLE:t.FUNCTIONAL},l.ieFunctionalKeysBug=function(e){return CKEDITOR.env.ie&&l.getKeyGroup(e)==l.keyGroups.FUNCTIONAL};var a=CKEDITOR.plugins.undo.Image=function(e,t){(this.editor=e).fire("beforeUndoImage");var n=e.getSnapshot();CKEDITOR.env.ie&&n&&(n=n.replace(/\s+data-cke-expando=".*?"/g,"")),this.contents=n,t||(this.bookmarks=(n=n&&e.getSelection())&&n.createBookmarks2(!0)),e.fire("afterUndoImage")},i=/\b(?:href|src|name)="[^"]*?"/gi;a.prototype={equalsContent:function(e){var t=this.contents;return e=e.contents,CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(t=t.replace(i,""),e=e.replace(i,"")),t==e},equalsSelection:function(e){var t=this.bookmarks;if(e=e.bookmarks,t||e){if(!t||!e||t.length!=e.length)return!1;for(var n=0;n<t.length;n++){var i=t[n],o=e[n];if(i.startOffset!=o.startOffset||i.endOffset!=o.endOffset||!CKEDITOR.tools.arrayCompare(i.start,o.start)||!CKEDITOR.tools.arrayCompare(i.end,o.end))return!1}}return!0}};var c=CKEDITOR.plugins.undo.NativeEditingHandler=function(e){this.undoManager=e,this.ignoreInputEvent=!1,this.keyEventsStack=new t,this.lastKeydownImage=null};c.prototype={onKeydown:function(e){var t=e.data.getKey();229!==t&&(-1<CKEDITOR.tools.indexOf(s,e.data.getKeystroke())?e.data.preventDefault():(this.keyEventsStack.cleanUp(e),e=this.undoManager,this.keyEventsStack.getLast(t)||this.keyEventsStack.push(t),this.lastKeydownImage=new a(e.editor),(l.isNavigationKey(t)||this.undoManager.keyGroupChanged(t))&&(e.strokesRecorded[0]||e.strokesRecorded[1])&&(e.save(!1,this.lastKeydownImage,!1),e.resetType())))},onInput:function(){if(this.ignoreInputEvent)this.ignoreInputEvent=!1;else{var e=this.keyEventsStack.getLast();e||(e=this.keyEventsStack.push(0)),this.keyEventsStack.increment(e.keyCode),this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit&&(this.undoManager.type(e.keyCode,!0),this.keyEventsStack.resetInputs())}},onKeyup:function(e){var t=this.undoManager;e=e.data.getKey();var n=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(e),l.ieFunctionalKeysBug(e)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new a(t.editor,!0))||(0<n?t.type(e):l.isNavigationKey(e)&&this.onNavigationKey(!0))},onNavigationKey:function(e){var t=this.undoManager;!e&&t.save(!0,null,!1)||t.updateSelection(new a(t.editor)),t.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},activateInputEventListener:function(){this.ignoreInputEvent=!1},attachListeners:function(){var e=this.undoManager.editor,t=e.editable(),n=this;t.attachListener(t,"keydown",function(e){n.onKeydown(e),l.ieFunctionalKeysBug(e.data.getKey())&&n.onInput()},null,null,999),t.attachListener(t,CKEDITOR.env.ie?"keypress":"input",n.onInput,n,null,999),t.attachListener(t,"keyup",
23n.onKeyup,n,null,999),t.attachListener(t,"paste",n.ignoreInputEventListener,n,null,999),t.attachListener(t,"drop",n.ignoreInputEventListener,n,null,999),e.on("afterPaste",n.activateInputEventListener,n,null,999),t.attachListener(t.isInline()?t:e.document.getDocumentElement(),"click",function(){n.onNavigationKey()},null,null,999),t.attachListener(this.undoManager.editor,"blur",function(){n.keyEventsStack.remove(9)},null,null,999)}};var t=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack=[]};t.prototype={push:function(e){return e=this.stack.push({keyCode:e,inputs:0}),this.stack[e-1]},getLastIndex:function(e){if("number"!=typeof e)return this.stack.length-1;for(var t=this.stack.length;t--;)if(this.stack[t].keyCode==e)return t;return-1},getLast:function(e){return-1!=(e=this.getLastIndex(e))?this.stack[e]:null},increment:function(e){this.getLast(e).inputs++},remove:function(e){-1!=(e=this.getLastIndex(e))&&this.stack.splice(e,1)},resetInputs:function(e){if("number"==typeof e)this.getLast(e).inputs=0;else for(e=this.stack.length;e--;)this.stack[e].inputs=0},getTotalInputs:function(){for(var e=this.stack.length,t=0;e--;)t+=this.stack[e].inputs;return t},cleanUp:function(e){(e=e.data.$).ctrlKey||e.metaKey||this.remove(17),e.shiftKey||this.remove(16),e.altKey||this.remove(18)}}}(),function(){function e(e,t){CKEDITOR.tools.extend(this,{editor:e,editable:e.editable(),doc:e.document,win:e.window},t,!0),this.inline=this.editable.isInline(),this.inline||(this.frame=this.win.getFrame()),this.target=this[this.inline?"editable":"doc"]}function t(e,t){CKEDITOR.tools.extend(this,t,{editor:e},!0)}function n(e,t){var n=e.editable();CKEDITOR.tools.extend(this,{editor:e,editable:n,inline:n.isInline(),doc:e.document,win:e.window,container:CKEDITOR.document.getBody(),winTop:CKEDITOR.document.getWindow()},t,!0),this.hidden={},this.visible={},this.inline||(this.frame=this.win.getFrame()),this.queryViewport();var i=CKEDITOR.tools.bind(this.queryViewport,this),o=CKEDITOR.tools.bind(this.hideVisible,this),a=CKEDITOR.tools.bind(this.removeAll,this);n.attachListener(this.winTop,"resize",i),n.attachListener(this.winTop,"scroll",i),n.attachListener(this.winTop,"resize",o),n.attachListener(this.win,"scroll",o),n.attachListener(this.inline?n:this.frame,"mouseout",function(e){var t=e.data.$.clientX;e=e.data.$.clientY,this.queryViewport(),(t<=this.rect.left||t>=this.rect.right||e<=this.rect.top||e>=this.rect.bottom)&&this.hideVisible(),(t<=0||t>=this.winTopPane.width||e<=0||e>=this.winTopPane.height)&&this.hideVisible()},this),n.attachListener(e,"resize",i),n.attachListener(e,"mode",a),e.on("destroy",a),this.lineTpl=new CKEDITOR.template('<div data-cke-lineutils-line="1" class="cke_reset_all" style="{lineStyle}"><span style="{tipLeftStyle}">&nbsp;</span><span style="{tipRightStyle}">&nbsp;</span></div>').output({lineStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},d,this.lineStyle,!0)),tipLeftStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},c,{left:"0px","border-left-color":"red","border-width":"6px 0 6px 6px"},this.tipCss,this.tipLeftStyle,!0)),tipRightStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},c,{right:"0px","border-right-color":"red","border-width":"6px 6px 6px 0"},this.tipCss,this.tipRightStyle,!0))})}function l(e){var t;return(t=e&&e.type==CKEDITOR.NODE_ELEMENT)&&(t=!(u[e.getComputedStyle("float")]||u[e.getAttribute("align")])),t&&!h[e.getComputedStyle("position")]}var i,o,a,r,s;CKEDITOR.plugins.add("lineutils"),CKEDITOR.LINEUTILS_BEFORE=1,CKEDITOR.LINEUTILS_AFTER=2,CKEDITOR.LINEUTILS_INSIDE=4,e.prototype={start:function(e){var t,n,i,o,a=this,r=this.editor,s=this.doc,l=CKEDITOR.tools.eventsBuffer(50,function(){r.readOnly||"wysiwyg"!=r.mode||(a.relations={},(n=s.$.elementFromPoint(i,o))&&n.nodeType&&(t=new CKEDITOR.dom.element(n),a.traverseSearch(t),isNaN(i+o)||a.pixelSearch(t,i,o),e&&e(a.relations,i,o)))});this.listener=this.editable.attachListener(this.target,"mousemove",function(e){i=e.data.$.clientX,o=e.data.$.clientY,l.input()}),this.editable.attachListener(this.inline?this.editable:this.frame,"mouseout",function(){l.reset()})},stop:function(){this.listener&&this.listener.removeListener()},getRange:(i={},i[CKEDITOR.LINEUTILS_BEFORE]=CKEDITOR.POSITION_BEFORE_START,i[CKEDITOR.LINEUTILS_AFTER]=CKEDITOR.POSITION_AFTER_END,i[CKEDITOR.LINEUTILS_INSIDE]=CKEDITOR.POSITION_AFTER_START,function(e){var t=this.editor.createRange();return t.moveToPosition(this.relations[e.uid].element,i[e.type]),t}),store:function(){function i(e,t,n){var i=e.getUniqueId();i in n?n[i].type|=t:n[i]={element:e,type:t}}return function(e,t){var n;t&CKEDITOR.LINEUTILS_AFTER&&l(n=e.getNext())&&n.isVisible()&&(i(n,CKEDITOR.LINEUTILS_BEFORE,this.relations),t^=CKEDITOR.LINEUTILS_AFTER),t&CKEDITOR.LINEUTILS_INSIDE&&l(n=e.getFirst())&&n.isVisible()&&(i(n,CKEDITOR.LINEUTILS_BEFORE,this.relations),t^=CKEDITOR.LINEUTILS_INSIDE),i(e,t,this.relations)}}(),traverseSearch:function(e){var t,n,i;do{if(!((i=e.$["data-cke-expando"])&&i in this.relations)){if(e.equals(this.editable))break;if(l(e))for(t in this.lookups)(n=this.lookups[t](e))&&this.store(e,n)}}while((!e||e.type!=CKEDITOR.NODE_ELEMENT||"true"!=e.getAttribute("contenteditable"))&&(e=e.getParent()))},pixelSearch:function(){function a(e,t,n,i,o){for(var a,r=0;o(n)&&(n+=i,25!=++r);)if(a=this.doc.$.elementFromPoint(t,n))if(a==e)r=0;else if(s(e,a)&&(r=0,l(a=new CKEDITOR.dom.element(a))))return a}var s=CKEDITOR.env.ie||CKEDITOR.env.webkit?function(e,t){return e.contains(t)}:function(e,t){return!!(16&e.compareDocumentPosition(t))};return function(e,t,n){var i=this.win.getViewPaneSize().height,o=a.call(this,e.$,t,n,-1,function(e){return 0<e});if(t=a.call(this,e.$,t,n,1,function(e){return e<i}),o)for(this.traverseSearch(o);!o.getParent().equals(e);)o=o.getParent();if(t)for(this.traverseSearch(t);!t.getParent().equals(e);)t=t.getParent();for(;(o||t)&&(o&&(o=o.getNext(l)),o&&!o.equals(t))&&(this.traverseSearch(o),t&&(t=t.getPrevious(l)),t&&!t.equals(o));)this.traverseSearch(t)}}(),greedySearch:function(){this.relations={};for(var e,t,n,i=this.editable.getElementsByTag("*"),o=0;e=i.getItem(o++);)if(!e.equals(this.editable)&&e.type==CKEDITOR.NODE_ELEMENT&&(e.hasAttribute("contenteditable")||!e.isReadOnly())&&l(e)&&e.isVisible())for(n in this.lookups)(t=this.lookups[n](e))&&this.store(e,t);return this.relations}},t.prototype={locate:function(){function i(e,t){var n=e.element[t===CKEDITOR.LINEUTILS_BEFORE?"getPrevious":"getNext"]();return n&&l(n)?(e.siblingRect=n.getClientRect(),t==CKEDITOR.LINEUTILS_BEFORE?(e.siblingRect.bottom+e.elementRect.top)/2:(e.elementRect.bottom+e.siblingRect.top)/2):t==CKEDITOR.LINEUTILS_BEFORE?e.elementRect.top:e.elementRect.bottom}return function(e){var t;for(var n in this.locations={},e)(t=e[n]).elementRect=t.element.getClientRect(),t.type&CKEDITOR.LINEUTILS_BEFORE&&this.store(n,CKEDITOR.LINEUTILS_BEFORE,i(t,CKEDITOR.LINEUTILS_BEFORE)),t.type&CKEDITOR.LINEUTILS_AFTER&&this.store(n,CKEDITOR.LINEUTILS_AFTER,i(t,CKEDITOR.LINEUTILS_AFTER)),t.type&CKEDITOR.LINEUTILS_INSIDE&&this.store(n,CKEDITOR.LINEUTILS_INSIDE,(t.elementRect.top+t.elementRect.bottom)/2);return this.locations}}(),sort:function(e,t){for(var n in o=this.locations,a=[],o)for(var i in o[n])if(r=Math.abs(e-o[n][i]),a.length){for(s=0;s<a.length;s++)if(r<a[s].dist){a.splice(s,0,{uid:+n,type:i,dist:r});break}s==a.length&&a.push({uid:+n,type:i,dist:r})}else a.push({uid:+n,type:i,dist:r});return void 0!==t?a.slice(0,t):a},store:function(e,t,n){this.locations[e]||(this.locations[e]={}),this.locations[e][t]=n}};
23var c={display:"block",width:"0px",height:"0px","border-color":"transparent","border-style":"solid",position:"absolute",top:"-6px"},d={height:"0px","border-top":"1px dashed red",position:"absolute","z-index":9999};n.prototype={removeAll:function(){for(var e in this.hidden)this.hidden[e].remove(),delete this.hidden[e];for(e in this.visible)this.visible[e].remove(),delete this.visible[e]},hideLine:function(e){var t=e.getUniqueId();e.hide(),this.hidden[t]=e,delete this.visible[t]},showLine:function(e){var t=e.getUniqueId();e.show(),this.visible[t]=e,delete this.hidden[t]},hideVisible:function(){for(var e in this.visible)this.hideLine(this.visible[e])},placeLine:function(e,t){var n,i,o;if(n=this.getStyle(e.uid,e.type)){for(o in this.visible)if(this.visible[o].getCustomData("hash")!==this.hash){i=this.visible[o];break}if(!i)for(o in this.hidden)if(this.hidden[o].getCustomData("hash")!==this.hash){this.showLine(i=this.hidden[o]);break}i||this.showLine(i=this.addLine()),i.setCustomData("hash",this.hash),(this.visible[i.getUniqueId()]=i).setStyles(n),t&&t(i)}},getStyle:function(e,t){var n=this.relations[e],i=this.locations[e][t],o={};if(o.width=n.siblingRect?Math.max(n.siblingRect.width,n.elementRect.width):n.elementRect.width,o.top=this.inline?i+this.winTopScroll.y-this.rect.relativeY:this.rect.top+this.winTopScroll.y+i,o.top-this.winTo
23pScroll.y<this.rect.top||o.top-this.winTopScroll.y>this.rect.bottom)return!1;for(var a in this.inline?o.left=n.elementRect.left-this.rect.relativeX:(0<n.elementRect.left?o.left=this.rect.left+n.elementRect.left:(o.width+=n.elementRect.left,o.left=this.rect.left),0<(n=o.left+o.width-(this.rect.left+this.winPane.width))&&(o.width-=n)),o.left+=this.winTopScroll.x,o)o[a]=CKEDITOR.tools.cssLength(o[a]);return o},addLine:function(){var e=CKEDITOR.dom.element.createFromHtml(this.lineTpl);return e.appendTo(this.container),e},prepare:function(e,t){this.relations=e,this.locations=t,this.hash=Math.random()},cleanup:function(){var e,t;for(t in this.visible)(e=this.visible[t]).getCustomData("hash")!==this.hash&&this.hideLine(e)},queryViewport:function(){this.winPane=this.win.getViewPaneSize(),this.winTopScroll=this.winTop.getScrollPosition(),this.winTopPane=this.winTop.getViewPaneSize(),this.rect=this.getClientRect(this.inline?this.editable:this.frame)},getClientRect:function(e){e=e.getClientRect();var t=this.container.getDocumentPosition(),n=this.container.getComputedStyle("position");return e.relativeX=e.relativeY=0,"static"!=n&&(e.relativeY=t.y,e.relativeX=t.x,e.top-=e.relativeY,e.bottom-=e.relativeY,e.left-=e.relativeX,e.right-=e.relativeX),e}};var u={left:1,right:1,center:1},h={absolute:1,fixed:1};CKEDITOR.plugins.lineutils={finder:e,locator:t,liner:n}}(),function(){function o(e){return e.getName&&!e.hasAttribute("data-cke-temp")}CKEDITOR.plugins.add("widgetselection",{init:function(e){if(CKEDITOR.env.webkit){var n=CKEDITOR.plugins.widgetselection;e.on("contentDom",function(e){var t=(e=e.editor).editable();t.attachListener(t,"keydown",function(e){e.data.getKeystroke()==CKEDITOR.CTRL+65&&CKEDITOR.tools.setTimeout(function(){n.addFillers(t)||n.removeFillers(t)},0)},null,null,-1),e.on("selectionCheck",function(e){n.removeFillers(e.editor.editable())}),e.on("paste",function(e){e.data.dataValue=n.cleanPasteData(e.data.dataValue)}),"selectall"in e.plugins&&n.addSelectAllIntegration(e)})}}}),CKEDITOR.plugins.widgetselection={startFiller:null,endFiller:null,fillerAttribute:"data-cke-filler-webkit",fillerContent:"&nbsp;",fillerTagName:"div",addFillers:function(e){var t=e.editor;if(!this.isWholeContentSelected(e)&&0<e.getChildCount()){var n=e.getFirst(o),i=e.getLast(o);if(n&&n.type==CKEDITOR.NODE_ELEMENT&&!n.isEditable()&&(this.startFiller=this.createFiller(),e.append(this.startFiller,1)),i&&i.type==CKEDITOR.NODE_ELEMENT&&!i.isEditable()&&(this.endFiller=this.createFiller(!0),e.append(this.endFiller,0)),this.hasFiller(e))return(t=t.createRange()).selectNodeContents(e),t.select(),!0}return!1},removeFillers:function(e){if(this.hasFiller(e)&&!this.isWholeContentSelected(e)){
24var t=e.findOne(this.fillerTagName+"["+this.fillerAttribute+"=start]"),n=e.findOne(this.fillerTagName+"["+this.fillerAttribute+"=end]");this.startFiller&&t&&this.startFiller.equals(t)?this.removeFiller(this.startFiller,e):this.startFiller=t,this.endFiller&&n&&this.endFiller.equals(n)?this.removeFiller(this.endFiller,e):this.endFiller=n}},cleanPasteData:function(e){return e&&e.length&&(e=e.replace(this.createFillerRegex(),"").replace(this.createFillerRegex(!0),"")),e},isWholeContentSelected:function(e){var t=e.editor.getSelection().getRanges()[0];return!(!t||t&&t.collapsed)&&((t=t.clone()).enlarge(CKEDITOR.ENLARGE_ELEMENT),!!(t&&e&&t.startContainer&&t.endContainer&&0===t.startOffset&&t.endOffset===e.getChildCount()&&t.startContainer.equals(e)&&t.endContainer.equals(e)))},hasFiller:function(e){return 0<e.find(this.fillerTagName+"["+this.fillerAttribute+"]").count()},createFiller:function(e){var t=new CKEDITOR.dom.element(this.fillerTagName);return t.setHtml(this.fillerContent),t.setAttribute(this.fillerAttribute,e?"end":"start"),t.setAttribute("data-cke-temp",1),t.setStyles({display:"block",width:0,height:0,padding:0,border:0,margin:0,position:"absolute",top:0,left:"-9999px",opacity:0,overflow:"hidden"}),t},removeFiller:function(e,t){if(e){var n,i,o=t.editor,a=t.editor.getSelection().getRanges()[0].startPath(),r=o.createRange();a.contains(e)&&(n=e.getHtml(),i=!0),a="start"==e.getAttribute(this.fillerAttribute),e.remove(),n&&0<n.length&&n!=this.fillerContent?(t.insertHtmlIntoRange(n,o.getSelection().getRanges()[0]),r.setStartAt(t.getChild(t.getChildCount()-1),CKEDITOR.POSITION_BEFORE_END),o.getSelection().selectRanges([r])):i&&(a?r.setStartAt(t.getFirst().getNext(),CKEDITOR.POSITION_AFTER_START):r.setEndAt(t.getLast().getPrevious(),CKEDITOR.POSITION_BEFORE_END),t.editor.getSelection().selectRanges([r]))}},createFillerRegex:function(e){var t=this.createFiller(e).getOuterHtml().replace(/style="[^"]*"/gi,'style="[^"]*"').replace(/>[^<]*</gi,">[^<]*<");return new RegExp((e?"":"^")+t+(e?"$":""))},addSelectAllIntegration:function(n){var i=this;n.editable().attachListener(n,"beforeCommandExec",function(e){var t=n.editable();"selectAll"==e.data.name&&t&&i.addFillers(t)},null,null,9999)}}}(),function(){function t(e){this.editor=e,this.registered={},this.instances={},this.selected=[],this.widgetHoldingFocusedEditable=this.focused=null,this._={nextId:0,upcasts:[],upcastCallbacks:[],filters:{}},y(this),R(this),this.on("checkWidgets",a),this.editor.on("contentDomInvalidated",this.checkWidgets,this),b(this),O(this),D(this),I(this),v(this)}function c(e,t,n,i,o){var a=e.editor;CKEDITOR.tools.extend(this,i,{editor:a,id:t,inline:"span"==n.getParent().getName(),element:n,data:CKEDITOR.tools.extend({},"function"==typeof i.defaults?i.defaults():i.defaults),dataReady:!1,inited:!1,ready:!1,edit:c.prototype.edit,focusedEditable:null,definition:i,repository:e,draggable:!1!==i.draggable,_:{downcastFn:i.downcast&&"string"==typeof i.downcast?i.downcasts[i.downcast]:i.downcast}},!0),e.fire("instanceCreated",this),H(this,i),this.init&&this.init(),this.inited=!0,(e=this.element.data("cke-widget-data"))&&this.setData(JSON.parse(decodeURIComponent(e))),o&&this.setData(o),this.data.classes||this.setData("classes",this.getClasses()),this.dataReady=!0,j(this),this.fire("data",this.data),this.isInited()&&a.editable().contains(this.wrapper)&&(this.ready=!0,this.fire("ready"))}function i(e,t,n){CKEDITOR.dom.element.call(this,t.$),this.editor=e,this._={},t=this.filter=n.filter,CKEDITOR.dtd[this.getName()].p?(this.enterMode=t?t.getAllowedEnterMode(e.enterMode):e.enterMode,this.shiftEnterMode=t?t.getAllowedEnterMode(e.shiftEnterMode,!0):e.shiftEnterMode):this.enterMode=this.shiftEnterMode=CKEDITOR.ENTER_BR}
24function n(e,s){e.addCommand(s.name,{exec:function(i,e){function o(){i.widgets.finalizeCreation(r)}if((t=i.widgets.focused)&&t.name==s.name)t.edit();else if(s.insert)s.insert({editor:i,commandData:e});else if(s.template){var a,t="function"==typeof s.defaults?s.defaults():s.defaults,n=(t=CKEDITOR.dom.element.createFromHtml(s.template.output(t)),i.widgets.wrapElement(t,s.name)),r=new CKEDITOR.dom.documentFragment(n.getDocument());r.append(n),(a=i.widgets.initOn(t,s,e&&e.startupData))?(t=a.once("edit",function(e){e.data.dialog?a.once("dialog",function(e){var t,n;e=e.data,t=e.once("ok",o,null,null,20),n=e.once("cancel",function(e){e.data&&!1===e.data.hide||i.widgets.destroy(a,!0)}),e.once("hide",function(){t.removeListener(),n.removeListener()})}):o()},null,null,999),a.edit(),t.removeListener()):o()}},allowedContent:s.allowedContent,requiredContent:s.requiredContent,contentForms:s.contentForms,contentTransformations:s.contentTransformations})}function o(o,a){function e(e,t){var n,i,o=a.upcast.split(",");for(i=0;i<o.length;i++)if((n=o[i])===e.name)return a.upcasts[n].call(this,e,t);return!1}function t(e,t,n){var i=CKEDITOR.tools.getIndex(o._.upcasts,function(e){return e[2]>n});i<0&&(i=o._.upcasts.length),o._.upcasts.splice(i,0,[CKEDITOR.tools.bind(e,t),t.name,n])}var n=a.upcast,i=a.upcastPriority||10;n&&t("string"==typeof n?e:n,a,i)}function l(e,t){if(e.focused=null,t.isInited()){var n=t.editor.checkDirty();e.fire("widgetBlurred",{widget:t}),t.setFocused(!1),!n&&t.editor.resetDirty()}}function a(e){if(e=e.data,"wysiwyg"==this.editor.mode){var t,n,i,o,a=this.editor.editable(),r=this.instances;if(a){for(t in r)r[t].isReady()&&!a.contains(r[t].wrapper)&&this.destroy(r[t],!0);if(e&&e.initOnlyNew)r=this.initOnAll();else{var s=a.find(".cke_widget_wrapper");r=[];for(t=0,n=s.count();t<n;t++){if(i=s.getItem(t),o=!this.getByElement(i,!0)){e:{o=g;for(var l=i;l=l.getParent();)if(o(l)){o=!0;break e}o=!1}o=!o}o&&a.contains(i)&&(i.addClass("cke_widget_new"),r.push(this.initOn(i.getFirst(c.isDomWidgetElement))))}}e&&e.focusInited&&1==r.length&&r[0].focus()}}}function r(e){if("undefined"!=typeof e.attributes&&e.attributes["data-widget"]){var t=d(e),n=u(e),i=!1;t&&t.value&&t.value.match(/^\s/g)&&(t.parent.attributes["data-cke-white-space-first"]=1,t.value=t.value.replace(/^\s/g,"&nbsp;"),i=!0),n&&n.value&&n.value.match(/\s$/g)&&(n.parent.attributes["data-cke-white-space-last"]=1,n.value=n.value.replace(/\s$/g,"&nbsp;"),i=!0),i&&(e.attributes["data-cke-widget-white-space"]=1)}}function d(e){return e.find(function(e){return 3===e.type},!0).shift()}function u(e){return e.find(function(e){return 3===e.type},!0).pop()}function s(e,t,n){if(!n.allowedContent&&!n.disallowedContent)return null;var i=this._.filters[e];return i||(this._.filters[e]=i={}),(e=i[t])||(e=n.allowedContent?new CKEDITOR.filter(n.allowedContent):this.editor.filter.clone(),i[t]=e,n.disallowedContent&&e.disallow(n.disallowedContent)),e}function h(e){var r=[],s=e._.upcasts,l=e._.upcastCallbacks;return{toBeWrapped:r,iterator:function(e){var t,n,i,o,a;if("data-cke-widget-wrapper"in e.attributes)return(e=e.getFirst(c.isParserWidgetElement))&&r.push([e]),!1;if("data-widget"in e.attributes)return r.push([e]),!1;if(a=s.length){if(e.attributes["data-cke-widget-upcasted"])return!1;for(o=0,t=l.length;o<t;++o)if(!1===l[o](e))return;for(o=0;o<a;++o)if(i={},n=(t=s[o])[0](e,i))return n instanceof CKEDITOR.htmlParser.element&&(e=n),e.attributes["data-cke-widget-data"]=encodeURIComponent(JSON.stringify(i)),e.attributes["data-cke-widget-upcasted"]=1,r.push([e,t[1]]),!1}}}}function f(e,t){return{tabindex:-1,contenteditable:"false","data-cke-widget-wrapper":1,"data-cke-filter":"off","class":"cke_widget_wrapper cke_widget_new cke_widget_"+(e?"inline":"block")+(t?" cke_widget_"+t:"")}}function m(e,t,n){if(e.type==CKEDITOR.NODE_ELEMENT&&((i=CKEDITOR.dtd[e.name])&&!i[n.name])){var i=e.split(t),o=e.parent;return t=i.getIndex(),e.children.length||(--t,e.remove()),i.children.length||i.remove(),m(o,t,n)}e.add(n,t)}function p(e,t){return"boolean"==typeof e.inline?e.inline:!!CKEDITOR.dtd.$inline[t]}function g(e){return e.hasAttribute("data-cke-temp")}function E(e,t,n,i){var o=e.editor;o.fire("lockSnapshot"),n?(i=n.data("cke-widget-editable"),i=t.editables[i],(e.widgetHoldingFocusedEditable=t).focusedEditable=i,n.addClass("cke_widget_editable_focused"),i.filter&&o.setActiveFilter(i.filter),o.setActiveEnterMode(i.enterMode,i.shiftEnterMode)):(i||t.focu
vendor: 5,517 bytes, line 24
24sedEditable.removeClass("cke_widget_editable_focused"),t.focusedEditable=null,e.widgetHoldingFocusedEditable=null,o.setActiveFilter(null),o.setActiveEnterMode(null,null)),o.fire("unlockSnapshot")}function T(t){t.contextMenu&&t.contextMenu.addListener(function(e){if(e=t.widgets.getByElement(e,!0))return e.fire("contextMenu",{})})}function C(e,t){return CKEDITOR.tools.trim(t)}function I(o){var a=o.editor,e=CKEDITOR.plugins.lineutils;a.on("dragstart",function(e){var t=e.data.target;c.isDomDragHandler(t)&&(t=o.getByElement(t),e.data.dataTransfer.setData("cke/widget-id",t.id),a.focus(),t.focus())}),a.on("drop",function(e){var t=(i=e.data.dataTransfer).getData("cke/widget-id"),n=i.getTransferType(a),i=a.createRange();""!==t&&n===CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?e.cancel():""!==t&&n==CKEDITOR.DATA_TRANSFER_INTERNAL&&(t=o.instances[t])&&(i.setStartBefore(t.wrapper),i.setEndAfter(t.wrapper),e.data.dragRange=i,delete CKEDITOR.plugins.clipboard.dragStartContainerChildCount,delete CKEDITOR.plugins.clipboard.dragEndContainerChildCount,e.data.dataTransfer.setData("text/html",a.editable().getHtmlFromRange(i).getHtml()),a.widgets.destroy(t,!0))}),a.on("contentDom",function(){var n=a.editable();CKEDITOR.tools.extend(o,{finder:new e.finder(a,{lookups:{"default":function(e){if(!e.is(CKEDITOR.dtd.$listItem)&&e.is(CKEDITOR.dtd.$block)&&!c.isDomNestedEditable(e)&&!o._.draggedWidget.wrapper.contains(e)){var t=c.getNestedEditable(n,e);if(t){if(e=o._.draggedWidget,o.getByElement(t)==e)return;if(t=CKEDITOR.filter.instances[t.data("cke-filter")],e=e.requiredContent,t&&e&&!t.check(e))return}return CKEDITOR.LINEUTILS_BEFORE|CKEDITOR.LINEUTILS_AFTER}}}}),locator:new e.locator(a),liner:new e.liner(a,{lineStyle:{cursor:"move !important","border-top-color":"#666"},tipLeftStyle:{"border-left-color":"#666"},tipRightStyle:{"border-right-color":"#666"}})},!0)})}function O(o){var a=o.editor;a.on("contentDom",function(){var n,i,e=a.editable(),t=e.isInline()?e:a.document;e.attachListener(t,"mousedown",function(e){var t=e.data.getTarget();n=t instanceof CKEDITOR.dom.element?o.getByElement(t):null,i=0,n&&(n.inline&&t.type==CKEDITOR.NODE_ELEMENT&&t.hasAttribute("data-cke-widget-drag-handler")?(i=1,o.focused!=n&&a.getSelection().removeAllRanges()):c.getNestedEditable(n.wrapper,t)?n=null:(e.data.preventDefault(),CKEDITOR.env.ie||n.focus()))}),e.attachListener(t,"mouseup",function(){i&&n&&n.wrapper&&(i=0,n.focus())}),CKEDITOR.env.ie&&e.attachListener(t,"mouseup",function(){setTimeout(function(){n&&n.wrapper&&e.contains(n.wrapper)&&(n.focus(),n=null)})})}),a.on("doubleclick",function(e){var t=o.getByElement(e.data.element);if(t&&!c.getNestedEditable(t.wrapper,e.data.element))return t.fire("doubleclick",{element:e.data.element})},null,null,1)}function D(o){o.editor.on("key",function(e){var t,n=o.focused,i=o.widgetHoldingFocusedEditable;return n?t=n.fire("key",{keyCode:e.data.keyCode}):i&&(n=e.data.keyCode,e=i.focusedEditable,n==CKEDITOR.CTRL+65?(n=e.getBogus(),(i=i.editor.createRange()).selectNodeContents(e),n&&i.setEndAt(n,CKEDITOR.POSITION_BEFORE_START),i.select(),t=!1):8==n||46==n?(i=(t=i.editor.getSelection().getRanges())[0],t=!(1==t.length&&i.collapsed&&i.checkBoundaryOfElement(e,CKEDITOR[8==n?"START":"END"]))):t=void 0),t},null,null,1)}function v(t){function n(e){t.focused&&w(t.focused,"cut"==e.name)}var i=t.editor;i.on("contentDom",function(){var e=i.editable();e.attachListener(e,"copy",n),e.attachListener(e,"cut",n)})}function b(i){var o=i.editor;o.on("selectionCheck",function(){i.fire("checkSelection")}),i.on("checkSelection",i.checkSelection,i),o.on("selectionChange",function(e){var t=(e=c.getNestedEditable(o.editable(),e.data.selection.getStartElement()))&&i.getByElement(e),n=i.widgetHoldingFocusedEditable;n?n===t&&n.focusedEditable.equals(e)||(E(i,n,null),t&&e&&E(i,t,e)):t&&e&&E(i,t,e)}),o.on("dataReady",function(){_(i).commit()}),o.on("blur",function(){var e;(e=i.focused)&&l(i,e),(e=i.widgetHoldingFocusedEditable)&&E(i,e,null)})}function R(a){var e=a.editor,s={};e.on("toDataFormat",function(e){var t=CKEDITOR.tools.getNextNumber(),o=[];e.data.downcastingSessionId=t,s[t]=o,e.data.dataValue.forEach(function(e){var t,n=e.attributes;if("data-cke-widget-white-space"in n){t=d(e);var i=u(e);t.parent.attributes["data-cke-white-space-first"]&&(t.value=t.value.replace(/^&nbsp;/g," ")),i.parent.attributes["data-cke-white-space-last"]&&(i.value=i.value.replace(/&nbsp;$/g," "))}if("data-cke-widget-id"in n)(n=a.instances[n["data-cke-widget-id"]])&&(t=e.getFirst(c.isParserWidgetElement),o.push({wrapper:e,element:t,widget:n,editables:{}}),"1"!=t.attributes["data-cke-widget-keep-attr"]&&delete t.attributes["data-widget"]);else if("data-cke-widget-editable"in n)return o[o.length-1].editables[n["data-cke-widget-editable"]]=e,!1},CKEDITOR.NODE_ELEMENT,!0)},null,null,8),e.on("toDataFormat",function(e){if(e.data.downcastingSessionId){e=s[e.data.downcastingSessionId];for(var t,n,i,o,a,r;t=e.shift();){for(r in n=t.widget,i=t.element,o=n._.downcastFn&&n._.downcastFn.call(n,i),t.editables)delete(a=t.editables[r]).attributes.contenteditable,a.setHtml(n.editables[r].getData());o||(o=i),t.wrapper.replaceWith(o)}}},null,null,13),e.on("contentDomUnload",function(){a.destroyAll(!0)})}function y(a){var r,s,l=a.editor;l.on("toHtml",function(e){var t,n=h(a);for(e.data.dataValue.forEach(n.iterator,CKEDITOR.NODE_ELEMENT,!0);t=n.toBeWrapped.pop();){var i=t[0],o=i.parent;o.type==CKEDITOR.NODE_ELEMENT&&o.attributes["data-cke-widget-wrapper"]&&o.replaceWith(i),a.wrapElement(t[0],t[1])}
24r=e.data.protectedWhitespaces?3==e.data.dataValue.children.length&&c.isParserWidgetWrapper(e.data.dataValue.children[1]):1==e.data.dataValue.children.length&&c.isParserWidgetWrapper(e.data.dataValue.children[0])},null,null,8),l.on("dataReady",function(){if(s)for(var e,t,n=l.editable().find(".cke_widget_wrapper"),i=0,o=n.count();i<o;++i)(t=(e=n.getItem(i)).getFirst(c.isDomWidgetElement)).type==CKEDITOR.NODE_ELEMENT&&t.data("widget")?(t.replace(e),a.wrapElement(t)):e.remove();s=0,a.destroyAll(!0),a.initOnAll()}),l.on("loadSnapshot",function(e){/data-cke-widget/.test(e.data)&&(s=1),a.destroyAll(!0)},null,null,9),l.on("paste",function(e){(e=e.data).dataValue=e.dataValue.replace(z,C),e.range&&(e=c.getNestedEditable(l.editable(),e.range.startContainer))&&(e=CKEDITOR.filter.instances[e.data("cke-filter")])&&l.setActiveFilter(e)}),l.on("afterInsertHtml",function(e){e.data.intoRange?a.checkWidgets({initOnlyNew:!0}):(l.fire("lockSnapshot"),a.checkWidgets({initOnlyNew:!0,focusInited:r}),l.fire("unlockSnapshot"))})}function _(i){var o=i.selected,a=[],r=o.slice(0),s=null;return{select:function(e){return CKEDITOR.tools.indexOf(o,e)<0&&a.push(e),0<=(e=CKEDITOR.tools.indexOf(r,e))&&r.splice(e,1),this},focus:function(e){return s=e,this},commit:function(){var e,t,n=i.focused!==s;for(i.editor.fire("lockSnapshot"),n&&(e=i.focused)&&l(i,e);e=r.pop();)o.splice(CKEDITOR.tools.indexOf(o,e),1),e.isInited()&&(t=e.editor.checkDirty(),e.setSelected(!1),!t&&e.editor.resetDirty());for(n&&s&&(t=i.editor.checkDirty(),i.focused=s,i.fire("widgetFocused",{widget:s}),s.setFocused(!0),!t&&i.editor.resetDirty());e=a.pop();)o.push(e),e.setSelected(!0);i.editor.fire("unlockSnapshot")}}}function K(e,t,n){var i=0;t=S(t);var o,a=e.data.classes||{};if(t){for(a=CKEDITOR.tools.clone(a);o=t.pop();)n?a[o]||(i=a[o]=1):a[o]&&(delete a[o],i=1);i&&e.setData("classes",a)}}function k(e){e.cancel()}function w(e,t){var n=e.editor,i=n.document,o=CKEDITOR.env.edge&&16<=CKEDITOR.env.version;if(!i.getById("cke_copybin")){var a=!n.blockless&&!CKEDITOR.env.ie||o?"div":"span",r=(o=i.createElement(a),i.createElement(a));a=CKEDITOR.env.ie&&CKEDITOR.env.version<9;r.setAttributes({id:"cke_copybin","data-cke-temp":"1"}),o.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"}),o.setStyle("ltr"==n.config.contentsLangDirection?"left":"right","-5000px");var s=n.createRange();s.setStartBefore(e.wrapper),s.setEndAfter(e.wrapper),o.setHtml('<span data-cke-copybin-start="1">\u200b</span>'+n.editable().getHtmlFromRange(s).getHtml()+'<span data-cke-copybin-end="1">\u200b</span>'),n.fire("saveSnapshot"),n.fire("lockSnapshot"),r.append(o),n.editable().append(r);var l=n.on("selectionChange",k,null,null,0),c=e.repository.on("checkSelection",k,null,null,0);if(a)var d=i.getDocumentElement().$,u=d.scrollTop;(s=n.createRange()).selectNodeContents(o),s.select(),a&&(d.scrollTop=u),setTimeout(function(){t||e.focus(),r.remove(),l.removeListener(),c.removeListener(),n.fire("unlockSnapshot"),t&&!n.readOnly&&(e.repository.del(e),n.fire("saveSnapshot"))},100)}}function S(e){return(e=(e=e.getDefinition().attributes)&&e["class"])?e.split(/\s+/):null}function x(){var e=CKEDITOR.document.getActive(),t=this.editor,n=t.editable();(n.isInline()?n:t.document.getWindow().getFrame()).equals(e)&&t.focusManager.focus(n)}function N(){CKEDITOR.env.gecko&&this.editor.unlockSelection(),CKEDITOR.env.webkit||(this.editor.forceNextSelectionCheck(),this.editor.selectionChange(1))}function A(e){var n=null;e.on("data",function(){var e,t=this.data.classes;if(n!=t){for(e in n)t&&t[e]||this.removeClass(e);for(e in t)this.addClass(e);n=t}})}function L(t){t.on("data",function(){if(t.wrapper){var e=this.getLabel?this.getLabel():this.editor.lang.widget.label.replace(/%1/,this.pathName||this.element.getName());t.wrapper.setAttribute("role","region"),t.wrapper.setAttribute("aria-label",e)}},null,null,9999)}function F(e){if(e.draggable){var t,n=e.editor,i=e.wrapper.getLast(c.isDomDragHandlerContainer);i?t=i.findOne("img"):((i=new CKEDITOR.dom.element("span",n.document)).setAttributes({"class":"cke_reset cke_widget_drag_handler_container",style:"background:rgba(220,220,220,0.5);background-image:url("+n.plugins.widget.path+"images/handle.png)"}),(t=new CKEDITOR.dom.element("img",n.document)).setAttributes({"class":"cke_reset cke_widget_drag_handler","data-cke-widget-drag-handler":"1",src:CKEDITOR.tools.transparentImageData,width:15,title:n.lang.widget.move,height:15,role:"presentation"}),e.inline&&t.setAttribute("draggable","true"),i.append(t),e.wrapper.append(i)),e.wrapper.on("dragover",function(e){e.data.preventDefault()}),e.wrapper.on("mouseenter",e.updateDragHandlerPosition,e),setTimeout(function(){e.on("data",e.updateDragHandlerPosition,e)},50),!e.inline&&(t.on("mousedown",B,e),CKEDITOR.env.ie&&CKEDITOR.env.version<9)&&t.on("dragstart",function(e){e.data.preventDefault(!0)}),e.dragHandlerContainer=i}}function B(r){function e(){var e;
24for(h.reset();e=c.pop();)e.removeListener();var t=d;e=r.sender;var n=this.repository.finder,i=this.repository.liner,o=this.editor,a=this.editor.editable();CKEDITOR.tools.isEmpty(i.visible)||(t=n.getRange(t[0]),this.focus(),o.fire("drop",{dropRange:t,target:t.startContainer})),a.removeClass("cke_widget_dragging"),i.hideVisible(),o.fire("dragend",{target:e})}if(CKEDITOR.tools.getMouseButton(r)===CKEDITOR.MOUSE_BUTTON_LEFT){var t,n,i=this.repository.finder,o=this.repository.locator,a=this.repository.liner,s=this.editor,l=s.editable(),c=[],d=[];this.repository._.draggedWidget=this;var u=i.greedySearch(),h=CKEDITOR.tools.eventsBuffer(50,function(){t=o.locate(u),(d=o.sort(n,1)).length&&(a.prepare(u,t),a.placeLine(d[0]),a.cleanup())});l.addClass("cke_widget_dragging"),c.push(l.on("mousemove",function(e){n=e.data.$.clientY,h.input()})),s.fire("dragstart",{target:r.sender}),c.push(s.document.once("mouseup",e,this)),l.isInline()||c.push(CKEDITOR.document.once("mouseup",e,this))}}function P(e){var t,n,i=e.editables;if(e.editables={},e.editables)for(t in i)n=i[t],e.initEditable(t,"string"==typeof n?{selector:n}:n)}function M(e){if(e.mask){var t=e.wrapper.findOne(".cke_widget_mask");t||((t=new CKEDITOR.dom.element("img",e.editor.document)).setAttributes({src:CKEDITOR.tools.transparentImageData,"class":"cke_reset cke_widget_mask"}),e.wrapper.append(t)),e.mask=t}}function $(e){if(e.parts){var t,n,i={};for(n in e.parts)t=e.wrapper.findOne(e.parts[n]),i[n]=t;e.parts=i}}function H(n,e){q(n),$(n),P(n),M(n),F(n),A(n),L(n),CKEDITOR.env.ie&&CKEDITOR.env.version<9&&n.wrapper.on("dragstart",function(e){var t=e.data.getTarget();c.getNestedEditable(n,t)||n.inline&&c.isDomDragHandler(t)||e.data.preventDefault()}),n.wrapper.removeClass("cke_widget_new"),n.element.addClass("cke_widget_element"),n.on("key",function(e){if(13==(e=e.data.keyCode))n.edit();else{if(e==CKEDITOR.CTRL+67||e==CKEDITOR.CTRL+88)return void w(n,e==CKEDITOR.CTRL+88);if(e in U||CKEDITOR.CTRL&e||CKEDITOR.ALT&e)return}return!1},null,null,999),n.on("doubleclick",function(e){n.edit()&&e.cancel()}),e.data&&n.on("data",e.data),e.edit&&n.on("edit",e.edit)}function q(e){(e.wrapper=e.element.getParent()).setAttribute("data-cke-widget-id",e.id)}function j(e){e.element.data("cke-widget-data",encodeURIComponent(JSON.stringify(e.data)))}function e(){function e(){}function t(e,t,n){return!(!n||!this.checkElement(e))&&((e=n.widgets.getByElement(e,!0))&&e.checkStyleActive(this))}var s={};CKEDITOR.style.addCustomHandler({type:"widget",setup:function(e){if(this.widget=e.widget,this.group="string"==typeof e.group?[e.group]:e.group){var t;e=this.widget,s[e]||(s[e]={});for(var n=0,i=this.group.length;n<i;n++)t=this.group[n],s[e][t]||(s[e][t]=[]),s[e][t].push(this)}},apply:function(e){var t;e instanceof CKEDITOR.editor&&this.checkApplicable(e.elementPath(),e)&&(t=e.widgets.focused,this.group&&this.removeStylesFromSameGroup(e),t.applyStyle(this))},remove:function(e){e instanceof CKEDITOR.editor&&this.checkApplicable(e.elementPath(),e)&&e.widgets.focused.removeStyle(this)},removeStylesFromSameGroup:function(e){var t,n,i=!1;if(!(e instanceof CKEDITOR.editor))return!1;if(n=e.elementPath(),this.checkApplicable(n,e))for(var o=0,a=this.group.length;o<a;o++){t=s[this.widget][this.group[o]];for(var r=0;r<t.length;r++)t[r]!==this&&t[r].checkActive(n,e)&&(e.widgets.focused.removeStyle(t[r]),i=!0)}return i},checkActive:function(e,t){return this.checkElementMatch(e.lastElement,0,t)},checkApplicable:function(e,t){return t instanceof CKEDITOR.editor&&this.checkElement(e.lastElement)},checkElementMatch:t,checkElementRemovable:t,checkElement:function(e){return!!c.isDomWidgetWrapper(e)&&((e=e.getFirst(c.isDomWidgetElement))&&e.data("widget")==this.widget)},buildPreview:function(e){return e||this._.definition.name},toAllowedContentRules:function(e){if(!e)return null;var t,n={};return(e=e.widgets.registered[this.widget])?e.styleableElements?(t=this.getClassesArray())?(n[e.styleableElements]={classes:t,propertiesOnly:!0},n):null:e.styleToAllowedContentRules?e.styleToAllowedContentRules(this):null:null},getClassesArray:function(){var e=this._.definition.attributes&&this._.definition.attributes["class"];return e?CKEDITOR.tools.trim(e).split(/\s+/):null},applyToRange:e,removeFromRange:e,applyToObject:e})}CKEDITOR.plugins.add("widget",{requires:"lineutils,clipboard,widgetselection",onLoad:function(){void 0!==CKEDITOR.document.$.querySelectorAll&&(CKEDITOR.addCss(".cke_widget_wrapper{position:relative;outline:none}.cke_widget_inline{display:inline-block}.cke_widget_wrapper:hover>.cke_widget_element{outline:2px solid #ffd25c;cursor:default}.cke_widget_wrapper:hover .cke_widget_editable{outline:2px solid #ffd25c}.cke_widget_wrapper.cke_widget_focused>.cke_widget_element,.cke_widget_wrapper .cke_widget_editable.cke_widget_editable_focused{outline:2px solid #47a4f5}
24.cke_widget_editable{cursor:text}.cke_widget_drag_handler_container{position:absolute;width:15px;height:0;display:none;opacity:0.75;transition:height 0s 0.2s;line-height:0}.cke_widget_wrapper:hover>.cke_widget_drag_handler_container{height:15px;transition:none}.cke_widget_drag_handler_container:hover{opacity:1}img.cke_widget_drag_handler{cursor:move;width:15px;height:15px;display:inline-block}.cke_widget_mask{position:absolute;top:0;left:0;width:100%;height:100%;display:block}.cke_editable.cke_widget_dragging, .cke_editable.cke_widget_dragging *{cursor:move !important}"),e())},beforeInit:function(e){void 0!==CKEDITOR.document.$.querySelectorAll&&(e.widgets=new t(e))},afterInit:function(e){if(void 0!==CKEDITOR.document.$.querySelectorAll){var t,n,i,o=e.widgets.registered;for(n in o)(i=(t=o[n]).button)&&e.ui.addButton&&e.ui.addButton(CKEDITOR.tools.capitalize(t.name,!0),{label:i,command:t.name,toolbar:"insert,10"});T(e)}}}),t.prototype={MIN_SELECTION_CHECK_INTERVAL:500,add:function(e,t){return(t=CKEDITOR.tools.prototypedCopy(t)).name=e,t._=t._||{},this.editor.fire("widgetDefinition",t),t.template&&(t.template=new CKEDITOR.template(t.template)),n(this.editor,t),o(this,t),this.registered[e]=t},addUpcastCallback:function(e){this._.upcastCallbacks.push(e)},checkSelection:function(){var e,t=this.editor.getSelection(),n=t.getSelectedElement(),i=_(this);if(n&&(e=this.getByElement(n,!0)))return i.focus(e).select(e).commit();if(!(t=t.getRanges()[0])||t.collapsed)return i.commit();for((t=new CKEDITOR.dom.walker(t)).evaluator=c.isDomWidgetWrapper;n=t.next();)i.select(this.getByElement(n));i.commit()},checkWidgets:function(e){this.fire("checkWidgets",CKEDITOR.tools.copy(e||{}))},del:function(e){if(this.focused===e){var t,n=e.editor,i=n.createRange();(t=i.moveToClosestEditablePosition(e.wrapper,!0))||(t=i.moveToClosestEditablePosition(e.wrapper,!1)),t&&n.getSelection().selectRanges([i])}e.wrapper.remove(),this.destroy(e,!0)},destroy:function(e,t){this.widgetHoldingFocusedEditable===e&&E(this,e,null,t),e.destroy(t),delete this.instances[e.id],this.fire("instanceDestroyed",e)},destroyAll:function(e,t){var n,i,o=this.instances;if(t&&!e){o=(i=t.find(".cke_widget_wrapper")).count();for(var a=0;a<o;++a)(n=this.getByElement(i.getItem(a),!0))&&this.destroy(n)}else for(i in o)n=o[i],this.destroy(n,e)},finalizeCreation:function(e){(e=e.getFirst())&&c.isDomWidgetWrapper(e)&&(this.editor.insertElement(e),(e=this.getByElement(e)).ready=!0,e.fire("ready"),e.focus())},getByElement:function(){function o(e){return e.is(t)&&e.data("cke-widget-id")}var t={div:1,span:1};return function(e,t){if(!e)return null;var n=o(e);if(!t&&!n)for(var i=this.editor.editable();(e=e.getParent())&&!e.equals(i)&&!(n=o(e)););return this.instances[n]||null}}(),initOn:function(e,t,n){if(t?"string"==typeof t&&(t=this.registered[t]):t=this.registered[e.data("widget")],!t)return null;var i=this.wrapElement(e,t.name);return i?i.hasClass("cke_widget_new")?(e=new c(this,this._.nextId++,e,t,n)).isInited()?this.instances[e.id]=e:null:this.getByElement(e):null},initOnAll:function(e){for(var t,n=[],i=(e=(e||this.editor.editable()).find(".cke_widget_new")).count();i--;)(t=this.initOn(e.getItem(i).getFirst(c.isDomWidgetElement)))&&n.push(t);return n},onWidget:function(t){var n=Array.prototype.slice.call(arguments);for(var e in n.shift(),this.instances){var i=this.instances[e];i.name==t&&i.on.apply(i,n)}this.on("instanceCreated",function(e){(e=e.data).name==t&&e.on.apply(e,n)})},parseElementClasses:function(e){if(!e)return null;e=CKEDITOR.tools.trim(e).split(/\s+/);for(var t,n={},i=0;t=e.pop();)-1==t.indexOf("cke_")&&(n[t]=i=1);return i?n:null},wrapElement:function(e,t){var n,i,o=null;if(e instanceof CKEDITOR.dom.element){if(t=t||e.data("widget"),!(n=this.registered[t]))return null;if((o=e.getParent())&&o.type==CKEDITOR.NODE_ELEMENT&&o.data("cke-widget-wrapper"))return o;e.hasAttribute("data-cke-widget-keep-attr")||e.data("cke-widget-keep-attr",e.data("widget")?1:0),e.data("widget",t),(i=p(n,e.getName()))&&r(e),(o=new CKEDITOR.dom.element(i?"span":"div")).setAttributes(f(i,t)),o.data("cke-display-name",n.pathName?n.pathName:e.getName()),e.getParent(!0)&&o.replace(e),e.appendTo(o)}else if(e instanceof CKEDITOR.htmlParser.element){if(t=t||e.attributes["data-widget"],!(n=this.registered[t]))return null;if((o=e.parent)&&o.type==CKEDITOR.NODE_ELEMENT&&o.attributes["data-cke-widget-wrapper"])return o;var a;"data-cke-widget-keep-attr"in e.attributes||(e.attributes["data-cke-widget-keep-attr"]=e.attributes["data-widget"]?1:0),t&&(e.attributes["data-widget"]=t),(i=p(n,e.name))&&r(e),
24(o=new CKEDITOR.htmlParser.element(i?"span":"div",f(i,t))).attributes["data-cke-display-name"]=n.pathName?n.pathName:e.name,(n=e.parent)&&(a=e.getIndex(),e.remove()),o.add(e),n&&m(n,a,o)}return o},_tests_createEditableFilter:s},CKEDITOR.event.implementOn(t.prototype),c.prototype={addClass:function(e){this.element.addClass(e),this.wrapper.addClass(c.WRAPPER_CLASS_PREFIX+e)},applyStyle:function(e){K(this,e,1)},checkStyleActive:function(e){var t;if(!(e=S(e)))return!1;for(;t=e.pop();)if(!this.hasClass(t))return!1;return!0},destroy:function(e){if(this.fire("destroy"),this.editables)for(var t in this.editables)this.destroyEditable(t,e);e||("0"==this.element.data("cke-widget-keep-attr")&&this.element.removeAttribute("data-widget"),this.element.removeAttributes(["data-cke-widget-data","data-cke-widget-keep-attr"]),this.element.removeClass("cke_widget_element"),this.element.replace(this.wrapper)),this.wrapper=null},destroyEditable:function(e,t){var n=this.editables[e],i=!0;if(n.removeListener("focus",N),n.removeListener("blur",x),this.editor.focusManager.remove(n),n.filter){for(var o in this.repository.instances){var a=this.repository.instances[o];a.editables&&(a=a.editables[e])&&a!==n&&n.filter===a.filter&&(i=!1)}i&&(n.filter.destroy(),(i=this.repository._.filters[this.name])&&delete i[e])}t||(this.repository.destroyAll(!1,n),n.removeClass("cke_widget_editable"),n.removeClass("cke_widget_editable_focused"),n.removeAttributes(["contenteditable","data-cke-widget-editable","data-cke-enter-mode"])),delete this.editables[e]},edit:function(){var e={dialog:this.dialog},i=this;return!(!1===this.fire("edit",e)||!e.dialog)&&(this.editor.openDialog(e.dialog,function(n){var e,t;!1!==i.fire("dialog",n)&&(e=n.on("show",function(){n.setupContent(i)}),t=n.on("ok",function(){var t,e=i.on("data",function(e){t=1,e.cancel()},null,null,0);i.editor.fire("saveSnapshot"),n.commitContent(i),e.removeListener(),t&&(i.fire("data",i.data),i.editor.fire("saveSnapshot"))}),n.once("hide",function(){e.removeListener(),t.removeListener()}))}),!0)},getClasses:function(){return this.repository.parseElementClasses(this.element.getAttribute("class"))},hasClass:function(e){return this.element.hasClass(e)},initEditable:function(e,t){var n=this._findOneNotNested(t.selector);return!(!n||!n.is(CKEDITOR.dtd.$editable))&&(n=new i(this.editor,n,{filter:s.call(this.repository,this.name,e,t)}),(this.editables[e]=n).setAttributes({contenteditable:"true","data-cke-widget-editable":e,"data-cke-enter-mode":n.enterMode}),n.filter&&n.data("cke-filter",n.filter.id),n.addClass("cke_widget_editable"),n.removeClass("cke_widget_editable_focused"),t.pathName&&n.data("cke-display-name",t.pathName),this.editor.focusManager.add(n),n.on("focus",N,this),CKEDITOR.env.ie&&n.on("blur",x,this),n._.initialSetData=!0,n.setData(n.getHtml()),!0)},_findOneNotNested:function(e){e=this.wrapper.find(e);for(var t,n,i=0;i<e.count();i++)if(n=(t=e.getItem(i)).getAscendant(c.isDomWidgetWrapper),this.wrapper.equals(n))return t;return null},isInited:function(){return!(!this.wrapper||!this.inited)},isReady:function(){return this.isInited()&&this.ready},focus:function(){var e=this.editor.getSelection();if(e){var t=this.editor.checkDirty();e.fake(this.wrapper),!t&&this.editor.resetDirty()}this.editor.focus()},removeClass:function(e){this.element.removeClass(e),this.wrapper.removeClass(c.WRAPPER_CLASS_PREFIX+e)},removeStyle:function(e){K(this,e,0)},setData:function(e,t){var n=this.data,i=0;if("string"==typeof e)n[e]!==t&&(n[e]=t,i=1);else{var o=e;for(e in o)n[e]!==o[e]&&(i=1,n[e]=o[e])}return i&&this.dataReady&&(j(this),this.fire("data",n)),this},setFocused:function(e){return this.wrapper[e?"addClass":"removeClass"]("cke_widget_focused"),this.fire(e?"focus":"blur"),this},setSelected:function(e){return this.wrapper[e?"addClass":"removeClass"]("cke_widget_selected"),this.fire(e?"select":"deselect"),this},updateDragHandlerPosition:function(){var e=this.editor,t=this.element.$,n=this._.dragHandlerOffset;t={x:t.offsetLeft,y:t.offsetTop-15};n&&t.x==n.x&&t.y==n.y||(n=e.checkDirty(),e.fire("lockSnapshot"),this.dragHandlerContainer.setStyles({top:t.y+"px",left:t.x+"px",display:"block"}),e.fire("unlockSnapshot"),!n&&e.resetDirty(),this._.dragHandlerOffset=t)}},CKEDITOR.event.implementOn(c.prototype),c.getNestedEditable=function(e,t){return!t||t.equals(e)?null:c.isDomNestedEditable(t)?t:c.getNestedEditable(e,t.getParent())},c.isDomDragHandler=function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("data-cke-widget-drag-handler")},c.isDomDragHandlerContainer=function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasClass("cke_widget_drag_handler_container")},c.isDomNestedEditable=function(e){
25return e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("data-cke-widget-editable")},c.isDomWidgetElement=function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("data-widget")},c.isDomWidgetWrapper=function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("data-cke-widget-wrapper")},c.isDomWidget=function(e){return!!e&&(this.isDomWidgetWrapper(e)||this.isDomWidgetElement(e))},c.isParserWidgetElement=function(e){return e.type==CKEDITOR.NODE_ELEMENT&&!!e.attributes["data-widget"]},c.isParserWidgetWrapper=function(e){return e.type==CKEDITOR.NODE_ELEMENT&&!!e.attributes["data-cke-widget-wrapper"]},c.WRAPPER_CLASS_PREFIX="cke_widget_wrapper_",i.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.dom.element.prototype),{setData:function(e){this._.initialSetData||this.editor.widgets.destroyAll(!1,this),this._.initialSetData=!1,e=this.editor.dataProcessor.toHtml(e,{context:this.getName(),filter:this.filter,enterMode:this.enterMode}),this.setHtml(e),this.editor.widgets.initOnAll(this)},getData:function(){return this.editor.dataProcessor.toDataFormat(this.getHtml(),{context:this.getName(),filter:this.filter,enterMode:this.enterMode})}});var z=/^(?:<(?:div|span)(?: data-cke-temp="1")?(?: id="cke_copybin")?(?: data-cke-temp="1")?>)?(?:<(?:div|span)(?: style="[^"]+")?>)?<span [^>]*data-cke-copybin-start="1"[^>]*>.?<\/span>([\s\S]+)<span [^>]*data-cke-copybin-end="1"[^>]*>.?<\/span>(?:<\/(?:div|span)>)?(?:<\/(?:div|span)>)?$/i,U={37:1,38:1,39:1,40:1,8:1,46:1};(CKEDITOR.plugins.widget=c).repository=t,c.nestedEditable=i}(),function(){function e(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 t(e){this._weight=e||1,this._doneWeight=0,this._isCanceled=!1}CKEDITOR.plugins.add("notificationaggregator",{requires:"notification"}),e.prototype={createTask:function(e){e=e||{};var t,n=!this.notification;return n&&(this.notification=this._createNotification()),(t=this._addTask(e)).on("updated",this._onTaskUpdate,this),t.on("done",this._onTaskDone,this),t.on("canceled",function(){this._removeTask(t)},this),this.update(),n&&this.notification.show(),t},update:function(){this._updateNotification(),this.isFinished()&&this.fire("finished")},getPercentage:function(){return 0===this.getTaskCount()?1:this._doneWeights/this._totalWeights},isFinished:function(){return this.getDoneTaskCount()===this.getTaskCount()},getTaskCount:function(){return this._tasks.length},getDoneTaskCount:function(){return this._doneTasks},_updateNotification:function(){this.notification.update({message:this._getNotificationMessage(),progress:this.getPercentage()})},_getNotificationMessage:function(){var e=this.getTaskCount(),t={current:this.getDoneTaskCount(),max:e,percentage:Math.round(100*this.getPercentage())};return(1==e&&this._singularMessage?this._singularMessage:this._message).output(t)},_createNotification:function(){return new CKEDITOR.plugins.notification(this.editor,{type:"progress"})},_addTask:function(e){return e=new t(e.weight),this._tasks.push(e),this._totalWeights+=e._weight,e},_removeTask:function(e){var t=CKEDITOR.tools.indexOf(this._tasks,e);-1!==t&&(e._doneWeight&&(this._doneWeights-=e._doneWeight),this._totalWeights-=e._weight,this._tasks.splice(t,1),this.update())},_onTaskUpdate:function(e){this._doneWeights+=e.data,this.update()},_onTaskDone:function(){this._doneTasks+=1,this.update()}},CKEDITOR.event.implementOn(e.prototype),t.prototype={done:function(){this.update(this._weight)},update:function(e){if(!this.isDone()&&!this.isCanceled()){var t=(e=Math.min(this._weight,e))-this._doneWeight;this._doneWeight=e,this.fire("updated",t),this.isDone()&&this.fire("done")}},cancel:function(){this.isDone()||this.isCanceled()||(this._isCanceled=!0,this.fire("canceled"))},isDone:function(){return this._weight===this._doneWeight},isCanceled:function(){return this._isCanceled}},CKEDITOR.event.implementOn(t.prototype),CKEDITOR.plugins.notificationAggregator=e,CKEDITOR.plugins.notificationAggregator.task=t}(),CKEDITOR.plugins.add("uploadwidget",{requires:"widget,clipboard,filetools,notificationaggregator",init:function(e){e.filter.allow("*[!data-widget,!data-cke-upload-id]")}}),CKEDITOR.fileTools||(CKEDITOR.fileTools={}),CKEDITOR.tools.extend(CKEDITOR.fileTools,{addUploadWidget:function(l,c,e){var d=CKEDITOR.fileTools,u=l.uploadRepository,t=e.supportedTypes?10:20;e.fileToElement&&l.on("paste",function(e){e=e.data;var t,n,i=l.widgets.registered[c],o=e.dataTransfer,a=o.getFilesCount(),r=i.loadMethod||"loadAndUpload";if(!e.dataValue&&a)for(n=0;n<a;
25n++)if(t=o.getFile(n),!i.supportedTypes||d.isTypeSupported(t,i.supportedTypes)){var s=i.fileToElement(t);t=u.create(t,void 0,i.loaderType),s&&(t[r](i.uploadUrl,i.additionalRequestParameters),CKEDITOR.fileTools.markElement(s,c,t.id),"loadAndUpload"!=r&&"upload"!=r||i.skipNotifications||CKEDITOR.fileTools.bindNotifications(l,t),e.dataValue+=s.getOuterHtml())}},null,null,t),CKEDITOR.tools.extend(e,{downcast:function(){return new CKEDITOR.htmlParser.text("")},init:function(){var t,n,i=this,o=this.wrapper.findOne("[data-cke-upload-id]").data("cke-upload-id"),a=u.loaders[o],r=CKEDITOR.tools.capitalize;a.on("update",function(e){"abort"===a.status&&"function"==typeof i.onAbort&&i.onAbort(a),i.wrapper&&i.wrapper.getParent()?(l.fire("lockSnapshot"),e="on"+r(a.status),"abort"!==a.status&&"function"==typeof i[e]&&!1===i[e](a)||(n="cke_upload_"+a.status,i.wrapper&&n!=t&&(t&&i.wrapper.removeClass(t),i.wrapper.addClass(n),t=n),"error"!=a.status&&"abort"!=a.status||l.widgets.del(i)),l.fire("unlockSnapshot")):(CKEDITOR.instances[l.name]&&l.editable().find('[data-cke-upload-id="'+o+'"]').count()||a.abort(),e.removeListener())}),a.update()},replaceWith:function(e,t){if(""===e.trim())l.widgets.del(this);else{var n,i,o=this==l.widgets.focused,a=l.editable(),r=l.createRange();o||(i=l.getSelection().createBookmarks()),r.setStartBefore(this.wrapper),r.setEndAfter(this.wrapper),o&&(n=r.createBookmark()),a.insertHtmlIntoRange(e,r,t),l.widgets.checkWidgets({initOnlyNew:!0}),l.widgets.destroy(this,!0),o?(r.moveToBookmark(n),r.select()):l.getSelection().selectBookmarks(i)}},_getLoader:function(){var e=this.wrapper.findOne("[data-cke-upload-id]");return e?this.editor.uploadRepository.loaders[e.data("cke-upload-id")]:null}}),l.widgets.add(c,e)},markElement:function(e,t,n){e.setAttributes({"data-cke-upload-id":n,"data-widget":t})},bindNotifications:function(t,e){function n(){(i=t._.uploadWidgetNotificaionAggregator)&&!i.isFinished()||(i=t._.uploadWidgetNotificaionAggregator=new CKEDITOR.plugins.notificationAggregator(t,t.lang.uploadwidget.uploadMany,t.lang.uploadwidget.uploadOne)).once("finished",function(){var e=i.getTaskCount();0===e?i.notification.hide():i.notification.update({message:1==e?t.lang.uploadwidget.doneOne:t.lang.uploadwidget.doneMany.replace("%1",e),type:"success",important:1})})}var i,o=null;e.on("update",function(){!o&&e.uploadTotal&&(n(),o=i.createTask({weight:e.uploadTotal})),o&&"uploading"==e.status&&o.update(e.uploaded)}),e.on("uploaded",function(){o&&o.done()}),e.on("error",function(){o&&o.cancel(),t.showNotification(e.message,"warning")}),e.on("abort",function(){o&&o.cancel(),CKEDITOR.instances[t.name]&&t.showNotification(t.lang.uploadwidget.abort,"info")})}}),function(){function n(e){return e<=9&&(e="0"+e),String(e)}function u(e){var t=[(t=new Date).getFullYear(),t.getMonth()+1,t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()];return i+=1,"image-"+CKEDITOR.tools.array.map(t,n).join("")+"-"+i+"."+e}var i=0;CKEDITOR.plugins.add("uploadimage",{requires:"uploadwidget",onLoad:function(){CKEDITOR.addCss(".cke_upload_uploading img{opacity: 0.3}")},init:function(l){if(CKEDITOR.plugins.clipboard.isFileApiSupported){var c=CKEDITOR.fileTools,d=c.getUploadUrl(l.config,"image");d&&(c.addUploadWidget(l,"uploadimage",{supportedTypes:/image\/(jpeg|png|gif|bmp)/,uploadUrl:d,fileToElement:function(){var e=new CKEDITOR.dom.element("img");return e.setAttribute("src","data:image/gif;base64,R0lGODlhDgAOAIAAAAAAAP///yH5BAAAAAAALAAAAAAOAA4AAAIMhI+py+0Po5y02qsKADs="),e},parts:{img:"img"},onUploading:function(e){this.parts.img.setAttribute("src",e.data)},onUploaded:function(e){var t=this.parts.img.$;this.replaceWith('<img src="'+e.url+'" width="'+(e.responseData.width||t.naturalWidth)+'" height="'+(e.responseData.height||t.naturalHeight)+'">')}}),l.on("paste",function(e){if(e.data.dataValue.match(/<img[\s\S]+data:/i)){e=e.data;var t,n,i,o=document.implementation.createHTMLDocument("");for((o=new CKEDITOR.dom.element(o.body)).data("cke-editable",1),o.appendHtml(e.dataValue),t=o.find("img"),i=0;i<t.count();i++){var a=(n=t.getItem(i)).getAttribute("src"),r=a&&"data:"==a.substring(0,5),s=null===n.data("cke-realelement");r&&s&&!n.data("cke-upload-id")&&!n.isReadOnly(1)&&(r=(r=a.match(/image\/([a-z]+?);/i))&&r[1]||"jpg",(a=l.uploadRepository.create(a,u(r))).upload(d),c.markElement(n,"uploadimage",a.id),c.bindNotifications(l,a))}e.dataValue=o.getHtml()}}))}}})}(),CKEDITOR.plugins.add("wsc",{requires:"dialog",parseApi:function(e){e.config.wsc_onFinish="function"==typeof e.config.wsc_onFinish?e.config.wsc_onFinish:function(){},e.config.wsc_onClose="function"==typeof e.config.wsc_onClose?e.config.wsc_onClose:function(){}},parseConfig:function(e){e.config.wsc_customerId=e.config.wsc_customerId||CKEDITOR.config.wsc_customerId||"1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk",e.config.wsc_customDictionaryIds=e.config.wsc_customDictionaryIds||CKEDITOR.config.wsc_customDictionaryIds||"",e.config.wsc_userDictionaryName=e.config.wsc_userDictionaryName||CKEDITOR.config.wsc_userDictionaryName||"",e.config.wsc_customLoaderScript=e.config.wsc_customLoaderScript||CKEDITOR.config.wsc_customLoaderScript,e.config.wsc_interfaceLang=e.config.wsc_interfaceLang,CKEDITOR.config.wsc_cmd=e.config.wsc_cmd||CKEDITOR.config.wsc_cmd||"spell",CKEDITOR.config.wsc_version="v4.3.0-master-d769233",CKEDITOR.config.wsc_removeGlobalVariable=!0},onLoad:function(e){"moono-lisa"==(CKEDITOR.skinName||e.config.skin)&&CKEDITOR.document.appendStyleSheet(this.path+"skins/"+CKEDITOR.skin.name+"/wsc.css")},init:function(e){var t=CKEDITOR.env;this.parseConfig(e),this.parseApi(e),e.addCommand("checkspell",new CKEDITOR.dialogCommand("checkspell")).modes={wysiwyg:!(CKEDITOR.env.opera||CKEDITOR.env.air||document.domain!=window.location.hostname||t.ie&&(t.version<8||t.quirks))},"undefined"==typeof e.plugins.scayt&&e.ui.addButton&&e.ui.addButton("SpellChecker",{label:e.lang.wsc.toolbar,click:function(e){var t=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.container.getText():e.document.getBody().getText();(t=t.replace(/\s/g,""))?e.execCommand("checkspell"):alert("Nothing to check!")},toolbar:"spellchecker,10"}),CKEDITOR.dialog.add("checkspell",this.path+(CKEDITOR.env.ie&&CKEDITOR.env.version<=7?"dialogs/wsc_ie.js":window.postMessage?"dialogs/wsc.js":"dialogs/wsc_ie.js"))}}),x=!1,CKEDITOR.plugins.add("balloonpanel",{init:function(){x||(CKEDITOR.document.appendStyleSheet(this.path+"skins/"+CKEDITOR.skin.name+"/balloonpanel.css"),x=!0)}}),CKEDITOR.ui.balloonPanel=function(e,t){for(var n in this.editor=e,CKEDITOR.tools.extend(this,{width:360,height:"auto",triangleWidth:20,triangleHeight:20,triangleMinDistance:40},t,!0),this.templates={},this.templateDefinitions)this.templates[n]=new CKEDITOR.template(this.templateDefinitions[n]);this.parts={},this.focusables={},this.showListeners={},this.activeShowListeners={},this.rect={visible:!1},this.build(),e.on("destroy",function(){this.destroy()},this)},CKEDITOR.ui.balloonPanel.prototype={templateDefinitions:{panel:'<div class="cke {id} cke_reset_all cke_chrome cke_balloon cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="dialog" style="{style}" tabindex="-1" aria-labelledby="cke_{name}_arialbl"></div>',content:'<div class="cke_balloon_content">{content}</div>',title:'<div class="cke_balloon_title" role="presentation">{title}</div>',close:'<a class="cke_balloon_close_button" href="javascript:void(0)" title="Close" role="button" tabindex="-1"><span class="cke_label">X</span></a>',triangleOuter:'<span class="cke_balloon_triangle cke_balloon_triangle_outer"></span>',triangleInner:'<span class="cke_balloon_triangle cke_balloon_triangle_inner">&#8203;</span>'},build:function(){var e=this.editor;this.parts={title:CKEDITOR.dom.element.createFromHtml(this.templates.title.output({title:this.title})),close:CKEDITOR.dom.element.createFromHtml(this.templates.close.output()),panel:CKEDITOR.dom.element.createFromHtml(this.templates.panel.output({id:e.id,langDir:e.lang.dir,langCode:e.langCode,name:e.name,style:"display:none;",voiceLabel:e.lang.editorPanel+", "+e.name})),content:CKEDITOR.dom.element.createFromHtml(this.templates.content.output({content:this.content||""})),triangleOuter:CKEDITOR.dom.element.createFromHtml(this.templates.triangleOuter.output()),triangleInner:CKEDITOR.dom.element.createFromHtml(this.templates.triangleInner.output())},this.parts.panel.append(this.parts.title,1),this.parts.panel.append(this.parts.close,1),this.parts.panel.append(this.parts.triangleOuter),this.parts.panel.append(this.parts.content),this.parts.triangleOuter.append(this.parts.triangleInner),this.registerFocusable(this.parts.panel),this.registerFocusable(this.parts.close),this.parts.title.unselectable(),this.parts.close.unselectable(),CKEDITOR.document.getBody().append(this.parts.panel),this.resize(this.width,this.height),this.on("show",this.activateShowListeners,this),this.on("hide",this.deactivateShowListeners,this),this.parts.close.on("click",function(e){this.hide(),e.data.preventDefault()},this)},show:function(){this.rect.visible||(this.rect.visible=!0,this.parts.panel.show(),this.fire("show"))},hide:function(){this.rect.visible&&(this.rect.visible=!1,this.parts.panel.hide(),this.blur(),this.fire("hide"))},blur:function(){this.editor.focus()},move:function(e,t){this.rect.left=t,this.rect.top=e,this.parts.panel.setStyles({left:CKEDITOR.tools.cssLength(t),top:CKEDITOR.tools.cssLength(e)})},attach:function(){function m(e,t){return Math.max(0,Math.min(e.right,t.right)-Math.max(e.left,t.left))*Math.max(0,Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top))}function p(e,t,n,i){return(e={top:e,left:t}).right=e.left+n,e.bottom=e.top+i,e}function g(e,t){return e.right=t.right,e.width=e.right-e.left,t.y&&(e.y=t.y),e}function E(e){var t=n(e,!0);return e=n(e),t=g(t[0],t.pop()),e=g(e[0],e.pop()),t.bottom=e.bottom,t.height=t.bottom-t.top,e.y&&(t.y=e.y),e.top=t.top,e.height=t.height,[t,e]}function n(e,t){var n=t?e[0]:e[e.length-1],i=t?"top":"bottom";return CKEDITOR.tools.array.filter(e,function(e){if(e[i]===n[i])return e})}var T,C,I,O,D={right:"left",top:"bottom",topLeft:"bottomLeft",topRight:"bottomRight",bottom:"top",bottomLeft:"topLeft",bottomRight:"topRight",left:"r
25ight"};return function(e,t){if(e instanceof CKEDITOR.dom.selection){var n,i=e.getRanges();n=(o=(i=e.isFake&&e.isInTable()?CKEDITOR.tools.array.map(i,function(e){return e.getClientRects(!0)[0]}):i[i.length-1].getClientRects(!0))[0])===(l=i[i.length-1])?[o]:o.top===l.top?[g(o,l)]:E(i)}(t instanceof CKEDITOR.dom.element||!t)&&(t={focusElement:t}),!0===(t=CKEDITOR.tools.extend(t,{show:!0})).show&&this.show(),this.fire("attach"),T=CKEDITOR.document.getWindow(),C=this.editor.window.getFrame(),I=this.editor.editable(),O=I.isInline();var o,a,r,s,l=(i=this.getWidth())*(o=this.getHeight());a=e.getClientRect&&e.getClientRect(!0);var c=O?I.getClientRect(!0):C.getClientRect(!0),d=T.getViewPaneSize(),u=T.getScrollPosition(),h={top:Math.max(c.top,u.y),left:Math.max(c.left,u.x),right:Math.min(c.right,d.width+u.x),bottom:Math.min(c.bottom,d.height+u.y)};for(var f in O&&this.editor.elementMode===CKEDITOR.ELEMENT_MODE_INLINE&&((h=this._getViewPaneRect(T)).right+=this.triangleWidth,h.bottom+=this.triangleHeight),n?(CKEDITOR.tools.array.forEach(n,function(e){this._adjustElementRect(e,O?h:c)},this),a=this._getAlignments(n[0],i,o),1<n.length&&(a["bottom hcenter"]=this._getAlignments(n[1],i,o)["bottom hcenter"]),s={"top hcenter":!0,"bottom hcenter":!0}):(this._adjustElementRect(a,O?h:c),a=this._getAlignments(a,i,o)),s||a){if(s=p(a[f].top,a[f].left,i,o),0==(s=a[f].areaDifference=l-m(s,h))){r=f;break}r||(r=f),s<a[r].areaDifference&&(r=f)}f=(s=this.parts.panel.getAscendant(function(e){return!(e instanceof CKEDITOR.dom.document)&&"static"!==e.getComputedStyle("position")}))?parseInt(s.getComputedStyle("margin-left"),10):0,s=s?parseInt(s.getComputedStyle("margin-top"),10):0,this.move(a[r].top-s,a[r].left-f),r=r.split(" "),this.setTriangle(D[r[0]],r[1]),!1!==t.focusElement&&(t.focusElement||this.parts.panel).focus()}}(),resize:function(e,t){this.rect.width=e,this.rect.height=t,this.parts.panel.setStyles({width:CKEDITOR.tools.cssLength(e),height:CKEDITOR.tools.cssLength(t)})},getWidth:function(){return"auto"===this.rect.width?this.parts.panel.getClientRect().width:this.rect.width},getHeight:function(){return"auto"===this.rect.height?this.parts.panel.getClientRect().height:this.rect.height},setTriangle:function(e,t){var n=this.parts.triangleOuter,i=this.parts.triangleInner;this.triangleSide&&(n.removeClass("cke_balloon_triangle_"+this.triangleSide),n.removeClass("cke_balloon_triangle_align_"+this.triangleAlign),i.removeClass("cke_balloon_triangle_"+this.triangleSide)),this.triangleSide=e,this.triangleAlign=t,n.addClass("cke_balloon_triangle_"+e),n.addClass("cke_balloon_triangle_align_"+t),i.addClass("cke_balloon_triangle_"+e)},registerFocusable:function(e){this.editor.focusManager.add(e),this.focusables[e.getUniqueId()]=e},deregisterFocusable:function(e){this.editor.focusManager.remove(e),delete this.focusables[e.getUniqueId()]},addShowListener:function(e){var t=CKEDITOR.tools.getNextNumber();this.showListeners[t]=e,this.rect.visible&&this.activateShowListener(t);var n=this;return{removeListener:function(){n.removeShowListener(t)}}},removeShowListener:function(e){this.deactivateShowListener(e),delete this.showListeners[e]},activateShowListener:function(e){this.activeShowListeners[e]=this.showListeners[e].call(this)},deactivateShowListener:function(e){this.activeShowListeners[e]&&this.activeShowListeners[e].removeListener(),delete this.activeShowListeners[e]},activateShowListeners:function(){for(var e in this.showListeners)this.activateShowListener(e)},deactivateShowListeners:function(){for(var e in this.activeShowListeners)this.deactivateShowListener(e)},destroy:function(){this.deactivateShowListeners(),this.parts.panel.remove()},setTitle:function(e){this.parts.title.setHtml(e)},_getAlignments:function(e,t,n){return{"right vcenter":{top:e.top+e.height/2-n/2,left:e.right+this.triangleWidth},"left vcenter":{top:e.top+e.height/2-n/2,left:e.left-t-this.triangleWidth},"top hcenter":{top:e.top-n-this.triangleHeight,left:e.left+e.width/2-t/2},"top left":{top:e.top-n-this.triangleHeight,left:e.left+e.width/2-this.triangleMinDistance},"top right":{top:e.top-n-this.triangleHeight,left:e.right-e.width/2-t+this.triangleMinDistance},"bottom hcenter":{top:e.bottom+this.triangleHeight,left:e.left+e.width/2-t/2},"bottom left":{top:e.bottom+this.triangleHeight,left:e.left+e.width/2-this.triangleMinDistance},"bottom right":{top:e.bottom+this.triangleHeight,left:e.right-e.width/2-t+this.triangleMinDistance}}},_adjustElementRect:function(e,t){e.left=Math.max(t.left,Math.min(t.right-1,e.left)),e.right=Math.max(t.left,Math.min(t.right,e.right)),e.top=Math.max(t.top,Math.min(t.bottom-1,e.top)),e.bottom=Math.max(t.top,Math.min(t.bottom,e.bottom))},_getViewPaneRect:function(e){var t=e.getScrollPosition();return e=e.getViewPaneSize(),{top:t.y,bottom:t.y+e.height,left:t.x,right:t.x+e.width}}},CKEDITOR.event.implementOn(CKEDITOR.ui.balloonPanel.prototype),function(){function e(e,t){this.editor=e,this.options=t,this.toolbar=ne
25w CKEDITOR.ui.balloonToolbar(e),this.options&&"undefined"==typeof this.options.priority&&(this.options.priority=CKEDITOR.plugins.balloontoolbar.PRIORITY.MEDIUM),this._loadButtons()}function t(e){this.editor=e,this._contexts=[],this._listeners=[],this._attachListeners()}var n=CKEDITOR.tools.array.filter(["matches","msMatchesSelector","webkitMatchesSelector","mozMatchesSelector","oMatchesSelector"],function(e){return!!window.HTMLElement&&e in HTMLElement.prototype})[0];CKEDITOR.ui.balloonToolbarView=function(e,t){t=CKEDITOR.tools.extend(t||{},{width:"auto",triangleWidth:7,triangleHeight:7}),CKEDITOR.ui.balloonPanel.call(this,e,t),this._listeners=[]},CKEDITOR.ui.balloonToolbar=function(e,t){this._view=new CKEDITOR.ui.balloonToolbarView(e,t),this._items={}},CKEDITOR.ui.balloonToolbar.prototype.attach=function(e,t){this._view.renderItems(this._items),this._view.attach(e,{focusElement:!1,show:!t})},CKEDITOR.ui.balloonToolbar.prototype.show=function(){this._view.show()},CKEDITOR.ui.balloonToolbar.prototype.hide=function(){this._view.hide()},CKEDITOR.ui.balloonToolbar.prototype.addItem=function(e,t){this._items[e]=t},CKEDITOR.ui.balloonToolbar.prototype.addItems=function(e){for(var t in e)this.addItem(t,e[t])},CKEDITOR.ui.balloonToolbar.prototype.getItem=function(e){return this._items[e]},CKEDITOR.ui.balloonToolbar.prototype.deleteItem=function(e){this._items[e]&&(delete this._items[e],this._view.renderItems(this._items))},CKEDITOR.ui.balloonToolbar.prototype.destroy=function(){for(var e in this._items)this._items[e].destroy&&this._items[e].destroy(),this.deleteItem(e);this._pointedElement=null,this._view.destroy()},CKEDITOR.ui.balloonToolbar.prototype.refresh=function(){for(var e in this._items){var t=this._view.editor.getCommand(this._items[e].command);t&&t.refresh(this._view.editor,this._view.editor.elementPath())}},e.prototype={destroy:function(){this.toolbar&&this.toolbar.destroy()},show:function(e){e&&this.toolbar.attach(e),this.toolbar.show()},hide:function(){this.toolbar.hide()},refresh:function(){this.toolbar.refresh()},_matchRefresh:function(e,t){var n=null;return this.options.refresh&&(n=this.options.refresh(this.editor,e,t)||null)&&!1==n instanceof CKEDITOR.dom.element&&(n=e&&e.lastElement||this.editor.editable()),n},_matchWidget:function(){var e=this.options.widgets,t=null;if(e){var n=this.editor.widgets&&this.editor.widgets.focused&&this.editor.widgets.focused.name;"string"==typeof e&&(e=e.split(",")),-1!==CKEDITOR.tools.array.indexOf(e,n)&&(t=this.editor.widgets.focused.element)}return t},_matchElement:function(e){return this.options.cssSelector&&n&&e.$[n](this.options.cssSelector)?e:null},_loadButtons:function(){var e=this.options.buttons;e&&(e=e.split(","),CKEDITOR.tools.array.forEach(e,function(e){var t=this.editor.ui.create(e);t&&this.toolbar.addItem(e,t)},this))}},t.prototype={create:function(e){return e=new CKEDITOR.plugins.balloontoolbar.context(this.editor,e),this.add(e),e},add:function(e){this._contexts.push(e)},check:function(t){function e(e,n,i){r(e,function(e){if(!a||a.options.priority>e.options.priority){var t=n(e,i);t instanceof CKEDITOR.dom.element&&(o=t,a=e)}})}function n(e,t){return e._matchElement(t)}if(t||(t=this.editor.getSelection(),CKEDITOR.tools.array.forEach(t.getRanges(),function(e){e.shrink(CKEDITOR.SHRINK_ELEMENT,!0)})),t){var o,a,r=CKEDITOR.tools.array.forEach,i=t.getRanges()[0],s=i&&i.startPath();if(e(this._contexts,function(e){return e._matchRefresh(s,t)}),e(this._contexts,function(e){return e._matchWidget()}),s)for((i=t.getSelectedElement())&&!i.isReadOnly()&&e(this._contexts,n,i),i=0;i<s.elements.length;i++){var l=s.elements[i];l.isReadOnly()||e(this._contexts,n,l)}this.hide(),a&&a.show(o)}},hide:function(){CKEDITOR.tools.array.forEach(this._contexts,function(e){e.hide()})},destroy:function(){CKEDITOR.tools.array.forEach(this._listeners,function(e){e.removeListener()}),this._listeners.splice(0,this._listeners.length),this._clear()},_clear:function(){CKEDITOR.tools.array.forEach(this._contexts,function(e){e.destroy()}),this._contexts.splice(0,this._contexts.length)},_refresh:function(){CKEDITOR.tools.array.forEach(this._contexts,function(e){e.refresh()})},_attachListeners:function(){this._listeners.push(this.editor.on("destroy",function(){this.destroy()},this),this.editor.on("selectionChange",function(){this.check()},this),this.editor.on("mode",function(){this.hide()},this,null,9999),this.editor.on("blur",function(){this.hide()},this,null,9999),this.editor.on("afterInsertHtml",function(){this.check(),this._refresh()},this,null,9999))}};var i=!1,o=!1;CKEDITOR.plugins.add("balloontoolbar",{requires:"balloonpanel",beforeInit:function(e){o||(CKEDITOR.document.appendStyleSheet(this.path+"skins/default.css"),CKEDITOR.document.appendStyleSheet(this.path+"skins/"+CKEDITOR.skin.name+"/balloontoolbar.css"),o=!0),e.balloonToolbars=new CKEDITOR.plugins.balloontoolbar.contextManager(e)},init:function(e){e.balloonToolbars=new CKEDITOR.plugins.balloontoolbar.contextManager(e),i||(i=!0,CKEDITOR.ui.balloonToolbarView.prototype=CKEDITOR.tools.extend({},CKEDITOR.ui.balloonPanel.prototype),CKEDITOR.ui.balloonToolbarView.prototype.build=function(){CKEDITOR.ui.balloonPanel.prototype.build.call(this),this.parts.panel.addClass("cke_balloontoolbar"),this.parts.title.remove(),this.deregisterFocusable(this.parts.close),this.parts.close.remove()},CKEDITOR.ui.balloonToolbarView.prototype.show=function(){function e(){this.attach(this._pointedElement,{focusElement:!1})}if(!this.rect.visible){var t=this.editor.editable();this._detachListeners(),this._listeners.push(this.editor.on("change",e,this)),this._listeners.push(this.editor.on("resize",e,this)),this._listeners.push(CKEDITOR.document.getWindow().on("resize",e,this)),this._listeners.push(t.attachListener(t.getDocument(),"scroll",e,this)),CKEDITOR.ui.balloonPanel.prototype.show.call(this)}},CKEDITOR.ui.balloonToolbarView.prototype.hide=function(){this._detachListeners(),CKEDITOR.ui.balloonPanel.prototype.hide.call(this)},CKEDITOR.ui.balloonToolbarView.prototype.blur=function(e){e&&this.editor.focus()},CKEDITOR.ui.balloonToolbarView.prototype._getAlignments=function(e,t,n){return{"bottom hcenter":(e
25=CKEDITOR.ui.balloonPanel.prototype._getAlignments.call(this,e,t,n))["bottom hcenter"],"top hcenter":e["top hcenter"]}},CKEDITOR.ui.balloonToolbarView.prototype._detachListeners=function(){this._listeners.length&&(CKEDITOR.tools.array.forEach(this._listeners,function(e){e.removeListener()}),this._listeners=[])},CKEDITOR.ui.balloonToolbarView.prototype.destroy=function(){this._deregisterItemFocusables(),CKEDITOR.ui.balloonPanel.prototype.destroy.call(this),this._detachListeners()},CKEDITOR.ui.balloonToolbarView.prototype.renderItems=function(t){var n=[],e=CKEDITOR.tools.objectKeys(t),i=!1;this._deregisterItemFocusables(),CKEDITOR.tools.array.forEach(e,function(e){CKEDITOR.ui.richCombo&&t[e]instanceof CKEDITOR.ui.richCombo&&i?(i=!1,n.push("</span>")):CKEDITOR.ui.richCombo&&t[e]instanceof CKEDITOR.ui.richCombo||i||(i=!0,n.push('<span class="cke_toolgroup">')),t[e].render(this.editor,n)},this),i&&n.push("</span>"),this.parts.content.setHtml(n.join("")),this.parts.content.unselectable(),CKEDITOR.tools.array.forEach(this.parts.content.find("a").toArray(),function(e){e.setAttribute("draggable","false"),this.registerFocusable(e)},this)},CKEDITOR.ui.balloonToolbarView.prototype.attach=function(e,t){this._pointedElement=e,CKEDITOR.ui.balloonPanel.prototype.attach.call(this,e,t)},CKEDITOR.ui.balloonToolbarView.prototype._deregisterItemFocusables=function(){var e,t=this.focusables;for(e in t)this.parts.content.contains(t[e])&&this.deregisterFocusable(t[e])})}}),CKEDITOR.plugins.balloontoolbar={context:e,contextManager:t,PRIORITY:{LOW:999,MEDIUM:500,HIGH:10}}}(),CKEDITOR.config.plugins="dialogui,dialog,about,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,notification,button,toolbar,clipboard,panelbutton,panel,floatpanel,colorbutton,colordialog,templates,menu,contextmenu,copyformatting,div,resize,elementspath,enterkey,entities,popup,filetools,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,forms,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,smiley,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastetext,pastefromword,preview,print,removeformat,save,selectall,showblocks,showborders,sourcearea,specialchar,scayt,stylescombo,tab,table,tabletools,tableselection,undo,lineutils,widgetselection,widget,notificationaggregator,uploadwidget,uploadimage,wsc,balloonpanel,balloontoolbar",CKEDITOR.config.skin="moono-lisa",N=function(e,t){var n=CKEDITOR.getUrl("plugins/"+t);e=e.split(",");for(var i=0;i<e.length;i++)CKEDITOR.skin.icons[e[i]]={path:n,offset:-e[++i],bgsize:e[++i]}},CKEDITOR.env.hidpi?N("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,bidiltr,168,,bidirtl,192,,blockquote,216,,copy-rtl,240,,copy,264,,cut-rtl,288,,cut,312,,paste-rtl,336,,paste,360,,bgcolor,384,,textcolor,408,,templates-rtl,432,,templates,456,,copyformatting,480,,creatediv,504,,find-rtl,528,,find,552,,replace,576,,flash,600,,button,624,,checkbox,648,,form,672,,hiddenfield,696,,imagebutton,720,,radio,744,,select-rtl,768,,select,792,,textarea-rtl,816,,textarea,840,,textfield-rtl,864,,textfield,888,,horizontalrule,912,,iframe,936,,image,960,,indent-rtl,984,,indent,1008,,outdent-rtl,1032,,outdent,1056,,smiley,1080,,justifyblock,1104,,justifycenter,1128,,justifyleft,1152,,justifyright,1176,,language,1200,,anchor-rtl,1224,,anchor,1248,,link,1272,,unlink,1296,,bulletedlist-rtl,1320,,bulletedlist,1344,,numberedlist-rtl,1368,,numberedlist,1392,,maximize,1416,,newpage-rtl,1440,,newpage,1464,,pagebreak-rtl,1488,,pagebreak,1512,,pastetext-rtl,1536,,pastetext,1560,,pastefromword-rtl,1584,,pastefromword,1608,,preview-rtl,1632,,preview,1656,,print,1680,,removeformat,1704,,save,1728,,selectall,1752,,showblocks-rtl,1776,,showblocks,1800,,source-rtl,1824,,source,1848,,specialchar,1872,,scayt,1896,,table,1920,,redo-rtl,1944,,redo,1968,,undo-rtl,1992,,undo,2016,,spellchecker,2040,","icons_hidpi.png"):N("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,bidiltr,168,auto,bidirtl,192,auto,blockquote,216,auto,copy-rtl,240,auto,copy,264,auto,cut-rtl,288,auto,cut,312,auto,paste-rtl,336,auto,paste,360,auto,bgcolor,384,auto,textcolor,408,auto,templates-rtl,432,auto,templates,456,auto,copyformatting,480,auto,creatediv,504,auto,find-rtl,528,auto,find,552,auto,replace,576,auto,flash,600,auto,button,624,auto,checkbox,648,auto,form,672,auto,hiddenfield,696,auto,imagebutton,720,auto,radio,744,auto,select-rtl,768,auto,select,792,auto,textarea-rtl,816,auto,textarea,840,auto,textfield-rtl,864,auto,textfield,888,auto,horizontalrule,912,auto,iframe,936,auto,image,960,auto,indent-rtl,984,auto,indent,1008,auto,outdent-rtl,1032,auto,outdent,1056,auto,smiley,1080,auto,justifyblock,1104,auto,justifycenter,1128,auto,justifyleft,1152,auto,justifyright,1176,auto,language,1200,auto,anch
25or-rtl,1224,auto,anchor,1248,auto,link,1272,auto,unlink,1296,auto,bulletedlist-rtl,1320,auto,bulletedlist,1344,auto,numberedlist-rtl,1368,auto,numberedlist,1392,auto,maximize,1416,auto,newpage-rtl,1440,auto,newpage,1464,auto,pagebreak-rtl,1488,auto,pagebreak,1512,auto,pastetext-rtl,1536,auto,pastetext,1560,auto,pastefromword-rtl,1584,auto,pastefromword,1608,auto,preview-rtl,1632,auto,preview,1656,auto,print,1680,auto,removeformat,1704,auto,save,1728,auto,selectall,1752,auto,showblocks-rtl,1776,auto,showblocks,1800,auto,source-rtl,1824,auto,source,1848,auto,specialchar,1872,auto,scayt,1896,auto,table,1920,auto,redo-rtl,1944,auto,redo,1968,auto,undo-rtl,1992,auto,undo,2016,auto,spellchecker,2040,auto","icons.png"),CKEDITOR.lang.languages={af:1,sq:1,ar:1,az:1,eu:1,bn:1,bs:1,bg:1,ca:1,"zh-cn":1,zh:1,hr:1,cs:1,da:1,nl:1,en:1,"en-au":1,"en-ca":1,"en-gb":1,eo:1,et:1,fo:1,fi:1,fr:1,"fr-ca":1,gl:1,ka:1,de:1,"de-ch":1,el:1,gu:1,he:1,hi:1,hu:1,is:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lv:1,lt:1,mk:1,ms:1,mn:1,no:1,nb:1,oc:1,fa:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,sr:1,"sr-latn":1,si:1,sk:1,sl:1,es:1,"es-mx":1,sv:1,tt:1,th:1,tr:1,ug:1,uk:1,vi:1,cy:1})}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.