text: !function(V){"use strict";var o=function(){},H=function(n,r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n(r.apply(null,e))}},q=function(e){return function(){return e}},$=function(e){return e};function d(r){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.concat(e);return r.apply(null,n)}}var e,t,n,r,i,a,u,s,l,c,f,m,p,g,h,v,y,b=function(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return!n.apply(null,e)}},C=q(!1),w=q(!0),k=C,x=w,E=function(){return N},N=(r={fold:function(e,t){return e()},is:k,isSome:k,isNone:x,getOr:n=function(e){return e},getOrThunk:t=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){},or:n,orThunk:t,map:E,ap:E,each:function(){},bind:E,flatten:E,exists:k,forall:x,filter:E,equals:e=function(e){return e.isNone()},equals_:e,toArray:function(){return[]},toString:q("none()")},Object.freeze&&Object.freeze(r),r),S=function(n){var e=function(){return n},t=function(){return o},r=function(e){return e(n)},o={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:x,isNone:k,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){return S(e(n))},ap:function(e){return e.fold(E,function(e){return S(e(n))})},each:function(e){e(n)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){return e(n)?o:N},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(k,function(e){return t(n,e)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};return o},_={some:S,none:E,from:function(e){return null==e?N:S(e)}},T=function(t){return function(e){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}(e)===t}},R=T("string"),A=T("object"),D=T("array"),B=T("null"),O=T("boolean"),P=T("function"),I=T("number"),L=Array.prototype.slice,M=void 0===(i=Array.prototype.indexOf)?function(e,t){return J(e,t)}:function(e,t){return i.call(e,t)},F=function(e,t){return-1<M(e,t)},z=function(e,t){return G(e,t).isSome()},W=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o,e)}return r},U=function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n,e)},K=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o];(t(a,o,e)?n:r).push(a)}return{pass:n,fail:r}},j=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r,e)&&n.push(i)}return n},X=function(e,t,n){return U(e,function(e){n=t(n,e)}),n},Y=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n,e))return _.some(o)}return _.none()},G=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n,e))return _.some(n);return _.none()},J=function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return n;return-1},Q=Array.prototype.push,Z=function(e,t){return function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!D(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);Q.apply(t,e[n])}return t}(W(e,t))},ee=function(e,t){for(var n=0,r=e.length;n<r;++n)if(!0!==t(e[n],n,e))return!1;return!0},te=function(e,t){return j(e,function(e){return!F(t,e)})},ne=function(e){return 0===e.length?_.none():_.some(e[0])},re=function(e){return 0===e.length?_.none():_.some(e[e.length-1])},oe=P(Array.from)?Array.from:function(e){return L.call(e)},ie=void 0!==V.window?V.window:Function("return this;")(),ae=function(e,t){return function(e,t){for(var n=null!=t?t:ie,r=0;r<e.length&&null!=n;++r)n=n[e[r]];return n}(e.split("."),t)},ue={getOrDie:function(e,t){var n=ae(e,t);if(null==n)throw new Error(e+" not available on this browser");return n}},se=function(){return ue.getOrDie("URL")},le={createObjectURL:function(e){return se().createObjectURL(e)},revokeObjectURL:function(e){se().revokeObjectURL(e)}},ce=V.navigator,fe=ce.userAgent,de=function(e){return"matchMedia"in V.window&&V.matchMedia(e).matches};p=/Android/.test(fe),u=(u=!(a=/WebKit/.test(fe))&&/MSIE/gi.test(fe)&&/Explorer/gi.test(ce.appName))&&/MSIE (\w+)\./.exec(fe)[1],s=-1!==fe.indexOf("Trident/")&&(-1!==fe.indexOf("rv:")||-1!==ce.appName.indexOf("Netscape"))&&11,l=-1!==fe.indexOf("Edge/")&&!u&&!s&&12,u=u||s||l,c=!a&&!s&&/Gecko/.test(fe),f=-1!==fe.indexOf("Mac"),m=/(iPad|iPhone)/.test(fe),g="FormData"in V.window&&"FileReader"in V.window&&"URL"in V.window&&!!le.createObjectURL,h=de("only screen and (max-device-width: 480px)")&&(p||m),v=de("only screen and (min-width: 800px)")&&(p||m),y=-1!==fe.indexOf("Windows Phone"),l&&(a=!1);var me,pe={opera:!1,webkit:a,ie:u,gecko:c,mac:f,iOS:m,android:p,contentEditable:!m||g||534<=parseInt(fe.match(/AppleWebKit\/(\d*)/)[1],10),transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:8!==u,range:V.window.getSelection&&"Range"in V.window,documentMode:u&&!l?V.document.documentMode||7:10,fileApi:g,ceFalse:!1===u||8<u,cacheSuffix:null,container:null,overrideViewPort:null,experimentalShadowDom:!1,canHaveCSP:!1===u||11<u,desktop:!h&&!v,windowsPhone:y},ge=window.Promise?window.Promise:function(){function n(e,t){return function(){e.apply(t,arguments)}}var e=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=function(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],l(e,n(r,this),n(o,this))},t=i.immediateFn||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,1)};function a(n){var r=this;null!==this._state?t(function(){var e=r._state?n.onFulfilled:n.onRejected;if(null!==e){var t;try{t=e(r._value)}catch(e){return void n.reject(e)}n.resolve(t)}else(r._state?n.resolve:n.reject)(r._value)}):this._deferreds.push(n)}function r(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void l(n(t,e),n(r,this),n(o,this))}this._state=!0,this._value=e,u.call(this)}catch(e){o.call(this,e)}}function o(e){this._state=!1,this._value=e,u.call(this)}function u(){for(var e=0,t=this._deferreds.length;e<t;e++)a.call(this,this._deferreds[e]);this._deferreds=null}function s(e,t,n,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r}function l(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(e){if(r)return;r=!0,n(e)}}return i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(n,r){var o=this;return new i(function(e,t){a.call(o,new s(n,r,e,t))})},i.all=function(){var u=Array.prototype.slice.call(1===arguments.length&&e(arguments[0])?arguments[0]:arguments);return new i(function(r,o){if(0===u.length)return r([]);var i=u.length;function a(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},o)}u[t]=e,0==--i&&r(u)}catch(e){o(e)}}for(var e=0;e<u.length;e++)a(e,u[e])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(n){return new i(function(e,t){t(n)})},i.race=function(o){return new i(function(e,t){for(var n=0,r=o.length;n<r;n++)o[n].then(e,t)})},i}(),he=function(e,t){return"number"!=typeof t&&(t=0),setTimeout(e,t)},ve=function(e,t){return"number"!=typeof t&&(t=1),setInterval(e,t)},ye=function(t,n){var r,e;return(e=function(){var e=arguments;clearTimeout(r),r=he(function(){t.apply(this,e)},n)}).stop=function(){clearTimeout(r)},e},be={requestAnimationFrame:function(e,t){me?me.then(e):me=new ge(function(e){t||(t=V.document.body),function(e,t){var n,r=V.window.requestAnimationFrame,o=["ms","moz","webkit"];for(n=0;n<o.length&&!r;n++)r=V.window[o[n]+"RequestAnimationFrame"];r||(r=function(e){V.window.setTimeout(e,0)}),r(e,t)}(e,t)}).then(e)},setTimeout:he,setInterval:ve,setEditorTimeout:function(e,t,n){return he(function(){e.removed||t()},n)},setEditorInterval:function(e,t,n){var r;return r=ve(function(){e.removed?clearInterval(r):t()},n)},debounce:ye,throttle:ye,clearInterval:function(e){return clearInterval(e)},clearTimeout:function(e){return clearTimeout(e)}},Ce=/^(?:mouse|contextmenu)|click/,we={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1},ke=function(){return!1},xe=function(){return!0},Ee=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Ne=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},Se=function(e,t){var n,r,o=t||{};for(n in e)we[n]||(o[n]=e[n]);if(o.target||(o.target=o.srcElement||V.document),pe.experimentalShadowDom&&(o.target=function(e,t){if(e.composedPath){var n=e.composedPath();if(n&&0<n.length)return n[0]}return t}(e,o.target)),e&&Ce.test(e.type)&&void 0===e.pageX&&void 0!==e.clientX){var i=o.target.ownerDocument||V.document,a=i.documentElement,u=i.body;o.pageX=e.clientX+(a&&a.scrollLeft||u&&u.scrollLeft||0)-(a&&a.clientLeft||u&&u.clientLeft||0),o.pageY=e.clientY+(a&&a.scrollTop||u&&u.scrollTop||0)-(a&&a.clientTop||u&&u.clientTop||0)}return o.preventDefault=function(){o.isDefaultPrevented=xe,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},o.stopPropagation=function(){o.isPropagationStopped=xe,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},!(o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=xe,o.stopPropagation()})==((r=o).isDefaultPrevented===xe||r.isDefaultPrevented===ke)&&(o.isDefaultPrevented=ke,o.isPropagationStopped=ke,o.isImmediatePropagationStopped=ke),void 0===o.metaKey&&(o.metaKey=!1),o},Te=function(e,t,n){var r=e.document,o={type:"ready"};if(n.domLoaded)t(o);else{var i=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){n.domLoaded||(n.domLoaded=!0,t(o))},u=function(){i()&&(Ne(r,"readystatechange",u),a())},s=function(){try{r.documentElement.doScroll("left")}catch(e){return void be.setTimeout(s)}a()};!r.addEventListener||pe.ie&&pe.ie<11?(Ee(r,"readystatechange",u),r.documentElement.doScroll&&e.self===e.top&&s()):i()?a():Ee(e,"DOMContentLoaded",a),Ee(e,"load",a)}},_e=function(){var m,p,g,h,v,y=this,b={};p="mce-data-"+(+new Date).toString(32),h="onmouseenter"in V.document.documentElement,g="onfocusin"in V.document.documentElement,v={mouseenter:"mouseover",mouseleave:"mouseout"},m=1,y.domLoaded=!1,y.events=b;var C=function(e,t){var n,r,o,i,a=b[t];if(n=a&&a[e.type])for(r=0,o=n.length;r<o;r++)if((i=n[r])&&!1===i.func.call(i.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return};y.bind=function(e,t,n,r){var o,i,a,u,s,l,c,f=V.window,d=function(e){C(Se(e||f.event),o)};if(e&&3!==e.nodeType&&8!==e.nodeType){for(e[p]?o=e[p]:(o=m++,e[p]=o,b[o]={}),r=r||e,a=(t=t.split(" ")).length;a--;)l=d,s=c=!1,"DOMContentLoaded"===(u=t[a])&&(u="ready"),y.domLoaded&&"ready"===u&&"complete"===e.readyState?n.call(r,Se({type:u})):(h||(s=v[u])&&(l=function(e){var t,n;if(t=e.currentTarget,(n=e.relatedTarget)&&t.contains)n=t.contains(n);else for(;n&&n!==t;)n=n.parentNode;n||((e=Se(e||f.event)).type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,C(e,o))}),g||"focusin"!==u&&"focusout"!==u||(c=!0,s="focusin"===u?"focus":"blur",l=function(e){(e=Se(e||f.event)).type="focus"===e.type?"focusin":"focusout",C(e,o)}),(i=b[o][u])?"ready"===u&&y.domLoaded?n({type:u}):i.push({func:n,scope:r}):(b[o][u]=i=[{func:n,scope:r}],i.fakeName=s,i.capture=c,i.nativeHandler=l,"ready"===u?Te(e,l,y):Ee(e,s||u,l,c)));return e=i=0,n}},y.unbind=function(t,e,n){var r,o,i,a,u,s;if(!t||3===t.nodeType||8===t.nodeType)return y;if(r=t[p]){if(s=b[r],e){for(i=(e=e.split(" ")).length;i--;)if(o=s[u=e[i]]){if(n)for(a=o.length;a--;)if(o[a].func===n){var l=o.nativeHandler,c=o.fakeName,f=o.capture;(o=o.slice(0,a).concat(o.slice(a+1))).nativeHandler=l,o.fakeName=c,o.capture=f,s[u]=o}n&&0!==o.length||(delete s[u],Ne(t,o.fakeName||u,o.nativeHandler,o.capture))}}else{for(u in s)o=s[u],Ne(t,o.fakeName||u,o.nativeHandler,o.capture);s={}}for(u in s)return y;delete b[r];try{delete t[p]}catch(e){t[p]=null}}return y},y.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return y;for((n=Se(null,n)).type=t,n.target=e;(r=e[p])&&C(n,r),(e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow)&&!n.isPropagationStopped(););return y},y.clean=function(e){var t,n,r=y.unbind;if(!e||3===e.nodeType||8===e.nodeType)return y;if(e[p]&&r(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName)for(r(e),t=(n=e.getElementsByTagName("*")).length;t--;)(e=n[t])[p]&&r(e);return y},y.destroy=function(){b={}},y.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1}};_e.Event=new _e,_e.Event.bind(V.window,"ready",function(){});var Re,Ae,De,Be,Oe,Pe,Ie,Le,Me,Fe,ze,Ue,je,Ve,He,qe,$e,We,Ke="sizzle"+-new Date,Xe=V.window.document,Ye=0,Ge=0,Je=Rt(),Qe=Rt(),Ze=Rt(),et=function(e,t){return e===t&&(ze=!0),0},tt="undefined",nt={}.hasOwnProperty,rt=[],ot=rt.pop,it=rt.push,at=rt.push,ut=rt.slice,st=rt.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},lt="[\\x20\\t\\r\\n\\f]",ct="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ft="\\["+lt+"*("+ct+")(?:"+lt+"*([*^$|!~]?=)"+lt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ct+"))|)"+lt+"*\\]",dt=":("+ct+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ft+")*)|.*)\\)|)",mt=new RegExp("^"+lt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+lt+"+$","g"),pt=new RegExp("^"+lt+"*,"+lt+"*"),gt=new RegExp("^"+lt+"*([>+~]|"+lt+")"+lt+"*"),ht=new RegExp("="+lt+"*([^\\]'\"]*?)"+lt+"*\\]","g"),vt=new RegExp(dt),yt=new RegExp("^"+ct+"$"),bt={ID:new RegExp("^#("+ct+")"),CLASS:new RegExp("^\\.("+ct+")"),TAG:new RegExp("^("+ct+"|[*])"),ATTR:new RegExp("^"+ft),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+lt+"*(even|odd|(([+-]|)(\\d*)n|)"+lt+"*(?:([+-]|)"+lt+"*(\\d+)|))"+lt+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+lt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+lt+"*((?:-\\d)?\\d*)"+lt+"*\\)|)(?=[^-]|$)","i")},Ct=/^(?:input|select|textarea|button)$/i,wt=/^h\d$/i,kt=/^[^{]+\{\s*\[native \w/,xt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Et=/[+~]/,Nt=/'|\\/g,St=new RegExp("\\\\([\\da-f]{1,6}"+lt+"?|("+lt+")|.)","ig"),Tt=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{at.apply(rt=ut.call(Xe.childNodes),Xe.childNodes),rt[Xe.childNodes.length].nodeType}catch(e){at={apply:rt.length?function(e,t){it.apply(e,ut.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}var _t=function(e,t,n,r){var o,i,a,u,s,l,c,f,d,m;if((t?t.ownerDocument||t:Xe)!==je&&Ue(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(u=(t=t||je).nodeType)&&9!==u)return[];if(He&&!r){if(o=xt.exec(e))if(a=o[1]){if(9===u){if(!(i=t.getElementById(a))||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&We(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return at.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&Ae.getElementsByClassName)return at.apply(n,t.getElementsByClassName(a)),n}if(Ae.qsa&&(!qe||!qe.test(e))){if(f=c=Ke,d=t,m=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(l=Pe(e),(c=t.getAttribute("id"))?f=c.replace(Nt,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",s=l.length;s--;)l[s]=f+Mt(l[s]);d=Et.test(e)&&It(t.parentNode)||t,m=l.join(",")}if(m)try{return at.apply(n,d.querySelectorAll(m)),n}catch(e){}finally{c||t.removeAttribute("id")}}}return Le(e.replace(mt,"$1"),t,n,r)};function Rt(){var r=[];return function e(t,n){return r.push(t+" ")>De.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function At(e){return e[Ke]=!0,e}function Dt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function Bt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function Ot(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function Pt(a){return At(function(i){return i=+i,At(function(e,t){for(var n,r=a([],e.length,i),o=r.length;o--;)e[n=r[o]]&&(e[n]=!(t[n]=e[n]))})})}function It(e){return e&&typeof e.getElementsByTagName!==tt&&e}for(Re in Ae=_t.support={},Oe=_t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},Ue=_t.setDocument=function(e){var t,s=e?e.ownerDocument||e:Xe,n=s.defaultView;return s!==je&&9===s.nodeType&&s.documentElement?(Ve=(je=s).documentElement,He=!Oe(s),n&&n!==function(e){try{return e.top}catch(e){}return null}(n)&&(n.addEventListener?n.addEventListener("unload",function(){Ue()},!1):n.attachEvent&&n.attachEvent("onunload",function(){Ue()})),Ae.attributes=!0,Ae.getElementsByTagName=!0,Ae.getElementsByClassName=kt.test(s.getElementsByClassName),Ae.getById=!0,De.find.ID=function(e,t){if(typeof t.getElementById!==tt&&He){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},De.filter.ID=function(e){var t=e.replace(St,Tt);return function(e){return e.getAttribute("id")===t}},De.find.TAG=Ae.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==tt)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[o++];)1===n.nodeType&&r.push(n);return r},De.find.CLASS=Ae.getElementsByClassName&&function(e,t){if(He)return t.getElementsByClassName(e)},$e=[],qe=[],Ae.disconnectedMatch=!0,qe=qe.length&&new RegExp(qe.join("|")),$e=$e.length&&new RegExp($e.join("|")),t=kt.test(Ve.compareDocumentPosition),We=t||kt.test(Ve.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},et=t?function(e,t){if(e===t)return ze=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!Ae.sortDetached&&t.compareDocumentPosition(e)===n?e===s||e.ownerDocument===Xe&&We(Xe,e)?-1:t===s||t.ownerDocument===Xe&&We(Xe,t)?1:Fe?st.call(Fe,e)-st.call(Fe,t):0:4&n?-1:1)}:function(e,t){if(e===t)return ze=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],u=[t];if(!o||!i)return e===s?-1:t===s?1:o?-1:i?1:Fe?st.call(Fe,e)-st.call(Fe,t):0;if(o===i)return Dt(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?Dt(a[r],u[r]):a[r]===Xe?-1:u[r]===Xe?1:0},s):je},_t.matches=function(e,t){return _t(e,null,null,t)},_t.matchesSelector=function(e,t){if((e.ownerDocument||e)!==je&&Ue(e),t=t.replace(ht,"='$1']"),Ae.matchesSelector&&He&&(!$e||!$e.test(t))&&(!qe||!qe.test(t)))try{var n=(void 0).call(e,t);if(n||Ae.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<_t(t,je,null,[e]).length},_t.contains=function(e,t){return(e.ownerDocument||e)!==je&&Ue(e),We(e,t)},_t.attr=function(e,t){(e.ownerDocument||e)!==je&&Ue(e);var n=De.attrHandle[t.toLowerCase()],r=n&&nt.call(De.attrHandle,t.toLowerCase())?n(e,t,!He):void 0;return void 0!==r?r:Ae.attributes||!He?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},_t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},_t.uniqueSort=function(e){var t,n=[],r=0,o=0;if(ze=!Ae.detectDuplicates,Fe=!Ae.sortStable&&e.slice(0),e.sort(et),ze){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return Fe=null,e},Be=_t.getText=function(e){var t,n="",r=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+=Be(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=Be(t);return n},(De=_t.selectors={cacheLength:50,createPseudo:At,match:bt,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(St,Tt),e[3]=(e[3]||e[4]||e[5]||"").replace(St,Tt),"~="===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]||_t.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]&&_t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return bt.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&vt.test(n)&&(t=Pe(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(St,Tt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Je[e+" "];return t||(t=new RegExp("(^|"+lt+")"+e+"("+lt+"|$)"))&&Je(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==tt&&e.getAttribute("class")||"")})},ATTR:function(n,r,o){return function(e){var t=_t.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===o:"!="===r?t!==o:"^="===r?o&&0===t.indexOf(o):"*="===r?o&&-1<t.indexOf(o):"$="===r?o&&t.slice(-o.length)===o:"~="===r?-1<(" "+t+" ").indexOf(o):"|="===r&&(t===o||t.slice(0,o.length+1)===o+"-"))}},CHILD:function(m,e,t,p,g){var h="nth"!==m.slice(0,3),v="last"!==m.slice(-4),y="of-type"===e;return 1===p&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,o,i,a,u,s,l=h!==v?"nextSibling":"previousSibling",c=e.parentNode,f=y&&e.nodeName.toLowerCase(),d=!n&&!y;if(c){if(h){for(;l;){for(i=e;i=i[l];)if(y?i.nodeName.toLowerCase()===f:1===i.nodeType)return!1;s=l="only"===m&&!s&&"nextSibling"}return!0}if(s=[v?c.firstChild:c.lastChild],v&&d){for(u=(r=(o=c[Ke]||(c[Ke]={}))[m]||[])[0]===Ye&&r[1],a=r[0]===Ye&&r[2],i=u&&c.childNodes[u];i=++u&&i&&i[l]||(a=u=0)||s.pop();)if(1===i.nodeType&&++a&&i===e){o[m]=[Ye,u,a];break}}else if(d&&(r=(e[Ke]||(e[Ke]={}))[m])&&r[0]===Ye)a=r[1];else for(;(i=++u&&i&&i[l]||(a=u=0)||s.pop())&&((y?i.nodeName.toLowerCase()!==f:1!==i.nodeType)||!++a||(d&&((i[Ke]||(i[Ke]={}))[m]=[Ye,a]),i!==e)););return(a-=g)===p||a%p==0&&0<=a/p}}},PSEUDO:function(e,i){var t,a=De.pseudos[e]||De.setFilters[e.toLowerCase()]||_t.error("unsupported pseudo: "+e);return a[Ke]?a(i):1<a.length?(t=[e,e,"",i],De.setFilters.hasOwnProperty(e.toLowerCase())?At(function(e,t){for(var n,r=a(e,i),o=r.length;o--;)e[n=st.call(e,r[o])]=!(t[n]=r[o])}):function(e){return a(e,0,t)}):a}},pseudos:{not:At(function(e){var r=[],o=[],u=Ie(e.replace(mt,"$1"));return u[Ke]?At(function(e,t,n,r){for(var o,i=u(e,null,r,[]),a=e.length;a--;)(o=i[a])&&(e[a]=!(t[a]=o))}):function(e,t,n){return r[0]=e,u(r,null,n,o),!o.pop()}}),has:At(function(t){return function(e){return 0<_t(t,e).length}}),contains:At(function(t){return t=t.replace(St,Tt),function(e){return-1<(e.textContent||e.innerText||Be(e)).indexOf(t)}}),lang:At(function(n){return yt.test(n||"")||_t.error("unsupported lang: "+n),n=n.replace(St,Tt).toLowerCase(),function(e){var t;do{if(t=He?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=V.window.location&&V.window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Ve},focus:function(e){return e===je.activeElement&&(!je.hasFocus||je.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!De.pseudos.empty(e)},header:function(e){return wt.test(e.nodeName)},input:function(e){return Ct.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:Pt(function(){return[0]}),last:Pt(function(e,t){return[t-1]}),eq:Pt(function(e,t,n){return[n<0?n+t:n]}),even:Pt(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:Pt(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:Pt(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:Pt(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=De.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})De.pseudos[Re]=Bt(Re);for(Re in{submit:!0,reset:!0})De.pseudos[Re]=Ot(Re);function Lt(){}function Mt(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Ft(a,e,t){var u=e.dir,s=t&&"parentNode"===u,l=Ge++;return e.first?function(e,t,n){for(;e=e[u];)if(1===e.nodeType||s)return a(e,t,n)}:function(e,t,n){var r,o,i=[Ye,l];if(n){for(;e=e[u];)if((1===e.nodeType||s)&&a(e,t,n))return!0}else for(;e=e[u];)if(1===e.nodeType||s){if((r=(o=e[Ke]||(e[Ke]={}))[u])&&r[0]===Ye&&r[1]===l)return i[2]=r[2];if((o[u]=i)[2]=a(e,t,n))return!0}}}function zt(o){return 1<o.length?function(e,t,n){for(var r=o.length;r--;)if(!o[r](e,t,n))return!1;return!0}:o[0]}function Ut(e,t,n,r,o){for(var i,a=[],u=0,s=e.length,l=null!=t;u<s;u++)(i=e[u])&&(n&&!n(i,r,o)||(a.push(i),l&&t.push(u)));return a}function jt(m,p,g,h,v,e){return h&&!h[Ke]&&(h=jt(h)),v&&!v[Ke]&&(v=jt(v,e)),At(function(e,t,n,r){var o,i,a,u=[],s=[],l=t.length,c=e||function(e,t,n){for(var r=0,o=t.length;r<o;r++)_t(e,t[r],n);return n}(p||"*",n.nodeType?[n]:n,[]),f=!m||!e&&p?c:Ut(c,u,m,n,r),d=g?v||(e?m:l||h)?[]:t:f;if(g&&g(f,d,n,r),h)for(o=Ut(d,s),h(o,[],n,r),i=o.length;i--;)(a=o[i])&&(d[s[i]]=!(f[s[i]]=a));if(e){if(v||m){if(v){for(o=[],i=d.length;i--;)(a=d[i])&&o.push(f[i]=a);v(null,d=[],o,r)}for(i=d.length;i--;)(a=d[i])&&-1<(o=v?st.call(e,a):u[i])&&(e[o]=!(t[o]=a))}}else d=Ut(d===t?d.splice(l,d.length):d),v?v(null,t,d,r):at.apply(t,d)})}function Vt(e){for(var r,t,n,o=e.length,i=De.relative[e[0].type],a=i||De.relative[" "],u=i?1:0,s=Ft(function(e){return e===r},a,!0),l=Ft(function(e){return-1<st.call(r,e)},a,!0),c=[function(e,t,n){return!i&&(n||t!==Me)||((r=t).nodeType?s(e,t,n):l(e,t,n))}];u<o;u++)if(t=De.relative[e[u].type])c=[Ft(zt(c),t)];else{if((t=De.filter[e[u].type].apply(null,e[u].matches))[Ke]){for(n=++u;n<o&&!De.relative[e[n].type];n++);return jt(1<u&&zt(c),1<u&&Mt(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(mt,"$1"),t,u<n&&Vt(e.slice(u,n)),n<o&&Vt(e=e.slice(n)),n<o&&Mt(e))}c.push(t)}return zt(c)}Lt.prototype=De.filters=De.pseudos,De.setFilters=new Lt,Pe=_t.tokenize=function(e,t){var n,r,o,i,a,u,s,l=Qe[e+" "];if(l)return t?0:l.slice(0);for(a=e,u=[],s=De.preFilter;a;){for(i in n&&!(r=pt.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=gt.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(mt," ")}),a=a.slice(n.length)),De.filter)!(r=bt[i].exec(a))||s[i]&&!(r=s[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?_t.error(e):Qe(e,u).slice(0)},Ie=_t.compile=function(e,t){var n,h,v,y,b,r,o=[],i=[],a=Ze[e+" "];if(!a){for(t||(t=Pe(e)),n=t.length;n--;)(a=Vt(t[n]))[Ke]?o.push(a):i.push(a);(a=Ze(e,(h=i,y=0<(v=o).length,b=0<h.length,r=function(e,t,n,r,o){var i,a,u,s=0,l="0",c=e&&[],f=[],d=Me,m=e||b&&De.find.TAG("*",o),p=Ye+=null==d?1:Math.random()||.1,g=m.length;for(o&&(Me=t!==je&&t);l!==g&&null!=(i=m[l]);l++){if(b&&i){for(a=0;u=h[a++];)if(u(i,t,n)){r.push(i);break}o&&(Ye=p)}y&&((i=!u&&i)&&s--,e&&c.push(i))}if(s+=l,y&&l!==s){for(a=0;u=v[a++];)u(c,f,t,n);if(e){if(0<s)for(;l--;)c[l]||f[l]||(f[l]=ot.call(r));f=Ut(f)}at.apply(r,f),o&&!e&&0<f.length&&1<s+v.length&&_t.uniqueSort(r)}return o&&(Ye=p,Me=d),c},y?At(r):r))).selector=e}return a},Le=_t.select=function(e,t,n,r){var o,i,a,u,s,l="function"==typeof e&&e,c=!r&&Pe(e=l.selector||e);if(n=n||[],1===c.length){if(2<(i=c[0]=c[0].slice(0)).length&&"ID"===(a=i[0]).type&&Ae.getById&&9===t.nodeType&&He&&De.relative[i[1].type]){if(!(t=(De.find.ID(a.matches[0].replace(St,Tt),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=bt.needsContext.test(e)?0:i.length;o--&&(a=i[o],!De.relative[u=a.type]);)if((s=De.find[u])&&(r=s(a.matches[0].replace(St,Tt),Et.test(i[0].type)&&It(t.parentNode)||t))){if(i.splice(o,1),!(e=r.length&&Mt(i)))return at.apply(n,r),n;break}}return(l||Ie(e,c))(r,t,!He,n,Et.test(e)&&It(t.parentNode)||t),n},Ae.sortStable=Ke.split("").sort(et).join("")===Ke,Ae.detectDuplicates=!!ze,Ue(),Ae.sortDetached=!0;var Ht=Array.isArray,qt=function(e,t,n){var r,o;if(!e)return 0;if(n=n||e,void 0!==e.length){for(r=0,o=e.length;r<o;r++)if(!1===t.call(n,e[r],r,e))return 0}else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))return 0;return 1},$t=function(e,t,n){var r,o;for(r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return r;return-1},Wt={isArray:Ht,toArray:function(e){var t,n,r=e;if(!Ht(e))for(r=[],t=0,n=e.length;t<n;t++)r[t]=e[t];return r},each:qt,map:function(n,r){var o=[];return qt(n,function(e,t){o.push(r(e,t,n))}),o},filter:function(n,r){var o=[];return qt(n,function(e,t){r&&!r(e,t,n)||o.push(e)}),o},indexOf:function(e,t){var n,r;if(e)for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},reduce:function(e,t,n,r){var o=0;for(arguments.length<3&&(n=e[0]);o<e.length;o++)n=t.call(r,n,e[o],o);return n},findIndex:$t,find:function(e,t,n){var r=$t(e,t,n);if(-1!==r)return e[r]},last:function(e){return e[e.length-1]}},Kt=/^\s*|\s*$/g,Xt=function(e){return null==e?"":(""+e).replace(Kt,"")},Yt=function(e,t){return t?!("array"!==t||!Wt.isArray(e))||typeof e===t:void 0!==e},Gt=function(e,n,r,o){o=o||this,e&&(r&&(e=e[r]),Wt.each(e,function(e,t){if(!1===n.call(o,e,t,r))return!1;Gt(e,n,r,o)}))},Jt={trim:Xt,isArray:Wt.isArray,is:Yt,toArray:Wt.toArray,makeMap:function(e,t,n){var r;for(t=t||",","string"==typeof(e=e||[])&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},each:Wt.each,map:Wt.map,grep:Wt.filter,inArray:Wt.indexOf,hasOwn:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},extend:function(e,t){for(var n,r,o,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u,s=arguments;for(n=1,r=s.length;n<r;n++)for(o in t=s[n])t.hasOwnProperty(o)&&void 0!==(u=t[o])&&(e[o]=u);return e},create:function(e,t,n){var r,o,i,a,u,s=this,l=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),i=e[3].match(/(^|\.)(\w+)$/i)[2],!(o=s.createNS(e[3].replace(/\.\w+$/,""),n))[i]){if("static"===e[2])return o[i]=t,void(this.onCreate&&this.onCreate(e[2],e[3],o[i]));t[i]||(t[i]=function(){},l=1),o[i]=t[i],s.extend(o[i].prototype,t),e[5]&&(r=s.resolve(e[5]).prototype,a=e[5].match(/\.(\w+)$/i)[1],u=o[i],o[i]=l?function(){return r[a].apply(this,arguments)}:function(){return this.parent=r[a],u.apply(this,arguments)},o[i].prototype[i]=o[i],s.each(r,function(e,t){o[i].prototype[t]=r[t]}),s.each(t,function(e,t){r[t]?o[i].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==i&&(o[i].prototype[t]=e)})),s.each(t.static,function(e,t){o[i][t]=e})}},walk:Gt,createNS:function(e,t){var n,r;for(t=t||V.window,e=e.split("."),n=0;n<e.length;n++)t[r=e[n]]||(t[r]={}),t=t[r];return t},resolve:function(e,t){var n,r;for(t=t||V.window,n=0,r=(e=e.split(".")).length;n<r&&(t=t[e[n]]);n++);return t},explode:function(e,t){return!e||Yt(e,"array")?e:Wt.map(e.split(t||","),Xt)},_addCacheSuffix:function(e){var t=pe.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}},Qt=V.document,Zt=Array.prototype.push,en=Array.prototype.slice,tn=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,nn=_e.Event,rn=Jt.makeMap("children,contents,next,prev"),on=function(e){return void 0!==e},an=function(e){return"string"==typeof e},un=function(e,t){var n,r,o;for(o=(t=t||Qt).createElement("div"),n=t.createDocumentFragment(),o.innerHTML=e;r=o.firstChild;)n.appendChild(r);return n},sn=function(e,t,n,r){var o;if(an(t))t=un(t,kn(e[0]));else if(t.length&&!t.nodeType){if(t=vn.makeArray(t),r)for(o=t.length-1;0<=o;o--)sn(e,t[o],n,r);else for(o=0;o<t.length;o++)sn(e,t[o],n,r);return e}if(t.nodeType)for(o=e.length;o--;)n.call(e[o],t);return e},ln=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},cn=function(e,t,n){var r,o;return t=vn(t)[0],e.each(function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,o=t.cloneNode(!1),e.parentNode.insertBefore(o,e)),o.appendChild(e)}),e},fn=Jt.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),dn=Jt.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),mn={for:"htmlFor",class:"className",readonly:"readOnly"},pn={float:"cssFloat"},gn={},hn={},vn=function(e,t){return new vn.fn.init(e,t)},yn=/^\s*|\s*$/g,bn=function(e){return null==e?"":(""+e).replace(yn,"")},Cn=function(e,t){var n,r,o,i;if(e)if(void 0===(n=e.length)){for(r in e)if(e.hasOwnProperty(r)&&(i=e[r],!1===t.call(i,r,i)))break}else for(o=0;o<n&&(i=e[o],!1!==t.call(i,o,i));o++);return e},wn=function(e,n){var r=[];return Cn(e,function(e,t){n(t,e)&&r.push(t)}),r},kn=function(e){return e?9===e.nodeType?e:e.ownerDocument:Qt};vn.fn=vn.prototype={constructor:vn,selector:"",context:null,length:0,init:function(e,t){var n,r,o=this;if(!e)return o;if(e.nodeType)return o.context=o[0]=e,o.length=1,o;if(t&&t.nodeType)o.context=t;else{if(t)return vn(e).attr(t);o.context=t=V.document}if(an(e)){if(!(n="<"===(o.selector=e).charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:tn.exec(e)))return vn(t).find(e);if(n[1])for(r=un(e,kn(t)).firstChild;r;)Zt.call(o,r),r=r.nextSibling;else{if(!(r=kn(t).getElementById(n[2])))return o;if(r.id!==n[2])return o.find(e);o.length=1,o[0]=r}}else this.add(e,!1);return o},toArray:function(){return Jt.toArray(this)},add:function(e,t){var n,r,o=this;if(an(e))return o.add(vn(e));if(!1!==t)for(n=vn.unique(o.toArray().concat(vn.makeArray(e))),o.length=n.length,r=0;r<n.length;r++)o[r]=n[r];else Zt.apply(o,vn.makeArray(e));return o},attr:function(t,n){var e,r=this;if("object"==typeof t)Cn(t,function(e,t){r.attr(e,t)});else{if(!on(n)){if(r[0]&&1===r[0].nodeType){if((e=gn[t])&&e.get)return e.get(r[0],t);if(dn[t])return r.prop(t)?t:void 0;null===(n=r[0].getAttribute(t,2))&&(n=void 0)}return n}this.each(function(){var e;if(1===this.nodeType){if((e=gn[t])&&e.set)return void e.set(this,n);null===n?this.removeAttribute(t,2):this.setAttribute(t,n,2)}})}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if("object"==typeof(e=mn[e]||e))Cn(e,function(e,t){n.prop(e,t)});else{if(!on(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each(function(){1===this.nodeType&&(this[e]=t)})}return n},css:function(t,n){var e,r,o=this,i=function(e){return e.replace(/-(\D)/g,function(e,t){return t.toUpperCase()})},a=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e})};if("object"==typeof t)Cn(t,function(e,t){o.css(e,t)});else if(on(n))t=i(t),"number"!=typeof n||fn[t]||(n=n.toString()+"px"),o.each(function(){var e=this.style;if((r=hn[t])&&r.set)r.set(this,n);else{try{this.style[pn[t]||t]=n}catch(e){}null!==n&&""!==n||(e.removeProperty?e.removeProperty(a(t)):e.removeAttribute(t))}});else{if(e=o[0],(r=hn[t])&&r.get)return r.get(e);if(!e.ownerDocument.defaultView)return e.currentStyle?e.currentStyle[i(t)]:"";try{return e.ownerDocument.defaultView.getComputedStyle(e,null).getPropertyValue(a(t))}catch(e){return}}return o},remove:function(){for(var e,t=this.length;t--;)e=this[t],nn.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var e,t=this.length;t--;)for(e=this[t];e.firstChild;)e.removeChild(e.firstChild);return this},html:function(t){var n,r=this;if(on(t)){n=r.length;try{for(;n--;)r[n].innerHTML=t}catch(e){vn(r[n]).empty().append(t)}return r}return r[0]?r[0].innerHTML:""},text:function(e){var t,n=this;if(on(e)){for(t=n.length;t--;)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return sn(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)})},prepend:function(){return sn(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)},!0)},before:function(){return this[0]&&this[0].parentNode?sn(this,arguments,function(e){this.parentNode.insertBefore(e,this)}):this},after:function(){return this[0]&&this[0].parentNode?sn(this,arguments,function(e){this.parentNode.insertBefore(e,this.nextSibling)},!0):this},appendTo:function(e){return vn(e).append(this),this},prependTo:function(e){return vn(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return cn(this,e)},wrapAll:function(e){return cn(this,e,!0)},wrapInner:function(e){return this.each(function(){vn(this).contents().wrapAll(e)}),this},unwrap:function(){return this.parent().each(function(){vn(this).replaceWith(this.childNodes)})},clone:function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),vn(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(o,i){var e=this;return"string"!=typeof o||(-1!==o.indexOf(" ")?Cn(o.split(" "),function(){e.toggleClass(this,i)}):e.each(function(e,t){var n,r;(r=ln(t,o))!==i&&(n=t.className,r?t.className=bn((" "+n+" ").replace(" "+o+" "," ")):t.className+=n?" "+o:o)})),e},hasClass:function(e){return ln(this[0],e)},each:function(e){return Cn(this,e)},on:function(e,t){return this.each(function(){nn.bind(this,e,t)})},off:function(e,t){return this.each(function(){nn.unbind(this,e,t)})},trigger:function(e){return this.each(function(){"object"==typeof e?nn.fire(this,e.type,e):nn.fire(this,e)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new vn(en.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)vn.find(e,this[t],r);return vn(r)},filter:function(n){return vn("function"==typeof n?wn(this.toArray(),function(e,t){return n(t,e)}):vn.filter(n,this.toArray()))},closest:function(n){var r=[];return n instanceof vn&&(n=n[0]),this.each(function(e,t){for(;t;){if("string"==typeof n&&vn(t).is(n)){r.push(t);break}if(t===n){r.push(t);break}t=t.parentNode}}),vn(r)},offset:function(e){var t,n,r,o,i=0,a=0;return e?this.css(e):((t=this[0])&&(r=(n=t.ownerDocument).documentElement,t.getBoundingClientRect&&(i=(o=t.getBoundingClientRect()).left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=o.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:a})},push:Zt,sort:[].sort,splice:[].splice},Jt.extend(vn,{extend:Jt.extend,makeArray:function(e){return(t=e)&&t===t.window||e.nodeType?[e]:Jt.toArray(e);var t},inArray:function(e,t){var n;if(t.indexOf)return t.indexOf(e);for(n=t.length;n--;)if(t[n]===e)return n;return-1},isArray:Jt.isArray,each:Cn,trim:bn,grep:wn,find:_t,expr:_t.selectors,unique:_t.uniqueSort,text:_t.getText,contains:_t.contains,filter:function(e,t,n){var r=t.length;for(n&&(e=":not("+e+")");r--;)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?vn.find.matchesSelector(t[0],e)?[t[0]]:[]:vn.find.matches(e,t)}});var xn=function(e,t,n){var r=[],o=e[t];for("string"!=typeof n&&n instanceof vn&&(n=n[0]);o&&9!==o.nodeType;){if(void 0!==n){if(o===n)break;if("string"==typeof n&&vn(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r},En=function(e,t,n,r){var o=[];for(r instanceof vn&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"==typeof r&&vn(e).is(r))break}o.push(e)}return o},Nn=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};Cn({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return xn(e,"parentNode")},next:function(e){return Nn(e,"nextSibling",1)},prev:function(e){return Nn(e,"previousSibling",1)},children:function(e){return En(e.firstChild,"nextSibling",1)},contents:function(e){return Jt.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},function(e,r){vn.fn[e]=function(t){var n=[];return this.each(function(){var e=r.call(n,this,t,n);e&&(vn.isArray(e)?n.push.apply(n,e):n.push(e))}),1<this.length&&(rn[e]||(n=vn.unique(n)),0===e.indexOf("parents")&&(n=n.reverse())),n=vn(n),t?n.filter(t):n}}),Cn({parentsUntil:function(e,t){return xn(e,"parentNode",t)},nextUntil:function(e,t){return En(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return En(e,"previousSibling",1,t).slice(1)}},function(r,o){vn.fn[r]=function(t,e){var n=[];return this.each(function(){var e=o.call(n,this,t,n);e&&(vn.isArray(e)?n.push.apply(n,e):n.push(e))}),1<this.length&&(n=vn.unique(n),0!==r.indexOf("parents")&&"prevUntil"!==r||(n=n.reverse())),n=vn(n),e?n.filter(e):n}}),vn.fn.is=function(e){return!!e&&0<this.filter(e).length},vn.fn.init.prototype=vn.fn,vn.overrideDefaults=function(n){var r,o=function(e,t){return r=r||n(),0===arguments.length&&(e=r.element),t||(t=r.context),new o.fn.init(e,t)};return vn.extend(o,this),o};var Sn=function(n,r,e){Cn(e,function(e,t){n[e]=n[e]||{},n[e][r]=t})};pe.ie&&pe.ie<8&&(Sn(gn,"get",{maxlength:function(e){var t=e.maxLength;if(2147483647!==t)return t},size:function(e){var t=e.size;if(20!==t)return t},class:function(e){return e.className},style:function(e){var t=e.style.cssText;if(0!==t.length)return t}}),Sn(gn,"set",{class:function(e,t){e.className=t},style:function(e,t){e.style.cssText=t}})),pe.ie&&pe.ie<9&&(pn.float="styleFloat",Sn(hn,"set",{opacity:function(e,t){var n=e.style;null===t||""===t?n.removeAttribute("filter"):(n.zoom=1,n.filter="alpha(opacity="+100*t+")")}})),vn.attrHooks=gn,vn.cssHooks=hn;var Tn,_n,Rn,An,Dn,Bn,On=function(){return Pn(0,0)},Pn=function(e,t){return{major:e,minor:t}},In={nu:Pn,detect:function(e,t){var n=String(t).toLowerCase();return 0===e.length?On():function(e,t){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}}(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Pn(r(1),r(2))}(e,n)},unknown:On},Ln="Firefox",Mn=function(e,t){return function(){return t===e}},Fn=function(e){var t=e.current;return{current:t,version:e.version,isEdge:Mn("Edge",t),isChrome:Mn("Chrome",t),isIE:Mn("IE",t),isOpera:Mn("Opera",t),isFirefox:Mn(Ln,t),isSafari:Mn("Safari",t)}},zn={unknown:function(){return Fn({current:void 0,version:In.unknown()})},nu:Fn,edge:q("Edge"),chrome:q("Chrome"),ie:q("IE"),opera:q("Opera"),firefox:q(Ln),safari:q("Safari")},Un="Windows",jn="Android",Vn="Solaris",Hn="FreeBSD",qn=function(e,t){return function(){return t===e}},$n=function(e){var t=e.current;return{current:t,version:e.version,isWindows:qn(Un,t),isiOS:qn("iOS",t),isAndroid:qn(jn,t),isOSX:qn("OSX",t),isLinux:qn("Linux",t),isSolaris:qn(Vn,t),isFreeBSD:qn(Hn,t)}},Wn={unknown:function(){return $n({current:void 0,version:In.unknown()})},nu:$n,windows:q(Un),ios:q("iOS"),android:q(jn),linux:q("Linux"),osx:q("OSX"),solaris:q(Vn),freebsd:q(Hn)},Kn=function(e,t){var n=String(t).toLowerCase();return Y(e,function(e){return e.search(n)})},Xn=function(e,n){return Kn(e,n).map(function(e){var t=In.detect(e.versionRegexes,n);return{current:e.name,version:t}})},Yn=function(e,n){return Kn(e,n).map(function(e){var t=In.detect(e.versionRegexes,n);return{current:e.name,version:t}})},Gn=function(e,t){return-1!==e.indexOf(t)},Jn=function(e){return e.replace(/^\s+|\s+$/g,"")},Qn=function(e){return e.replace(/\s+$/g,"")},Zn=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,er=function(t){return function(e){return Gn(e,t)}},tr=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Gn(e,"edge/")&&Gn(e,"chrome")&&Gn(e,"safari")&&Gn(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Zn],search:function(e){return Gn(e,"chrome")&&!Gn(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Gn(e,"msie")||Gn(e,"trident")}},{name:"Opera",versionRegexes:[Zn,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:er("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:er("firefox")},{name:"Safari",versionRegexes:[Zn,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Gn(e,"safari")||Gn(e,"mobile/"))&&Gn(e,"applewebkit")}}],nr=[{name:"Windows",search:er("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Gn(e,"iphone")||Gn(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:er("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:er("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:er("linux"),versionRegexes:[]},{name:"Solaris",search:er("sunos"),versionRegexes:[]},{name:"FreeBSD",search:er("freebsd"),versionRegexes:[]}],rr={browsers:q(tr),oses:q(nr)},or=function(e){var t,n,r,o,i,a,u,s,l,c,f,d=rr.browsers(),m=rr.oses(),p=Xn(d,e).fold(zn.unknown,zn.nu),g=Yn(m,e).fold(Wn.unknown,Wn.nu);return{browser:p,os:g,deviceType:(n=p,r=e,o=(t=g).isiOS()&&!0===/ipad/i.test(r),i=t.isiOS()&&!o,a=t.isAndroid()&&3===t.version.major,u=t.isAndroid()&&4===t.version.major,s=o||a||u&&!0===/mobile/i.test(r),l=t.isiOS()||t.isAndroid(),c=l&&!s,f=n.isSafari()&&t.isiOS()&&!1===/safari/i.test(r),{isiPad:q(o),isiPhone:q(i),isTablet:q(s),isPhone:q(c),isTouch:q(l),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:q(f)})}},ir={detect:(Tn=function(){var e=V.navigator.userAgent;return or(e)},Rn=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Rn||(Rn=!0,_n=Tn.apply(null,e)),_n})},ar=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:q(e)}},ur={fromHtml:function(e,t){var n=(t||V.document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||1<n.childNodes.length)throw V.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return ar(n.childNodes[0])},fromTag:function(e,t){var n=(t||V.document).createElement(e);return ar(n)},fromText:function(e,t){var n=(t||V.document).createTextNode(e);return ar(n)},fromDom:ar,fromPoint:function(e,t,n){var r=e.dom();return _.from(r.elementFromPoint(t,n)).map(ar)}},sr=(V.Node.ATTRIBUTE_NODE,V.Node.CDATA_SECTION_NODE,V.Node.COMMENT_NODE,V.Node.DOCUMENT_NODE),lr=(V.Node.DOCUMENT_TYPE_NODE,V.Node.DOCUMENT_FRAGMENT_NODE,V.Node.ELEMENT_NODE),cr=V.Node.TEXT_NODE,fr=(V.Node.PROCESSING_INSTRUCTION_NODE,V.Node.ENTITY_REFERENCE_NODE,V.Node.ENTITY_NODE,V.Node.NOTATION_NODE,function(e){return e.dom().nodeName.toLowerCase()}),dr=function(t){return function(e){return e.dom().nodeType===t}},mr=dr(lr),pr=dr(cr),gr=Object.keys,hr=Object.hasOwnProperty,vr=function(e,t){for(var n=gr(e),r=0,o=n.length;r<o;r++){var i=n[r];t(e[i],i,e)}},yr=function(r,o){var i={};return vr(r,function(e,t){var n=o(e,t,r);i[n.k]=n.v}),i},br=function(e){return void 0!==e.style&&P(e.style.getPropertyValue)},Cr=function(e,t,n){if(!(R(n)||O(n)||I(n)))throw V.console.error("Invalid call to Attr.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},wr=function(e,t,n){Cr(e.dom(),t,n)},kr=function(e,t){var n=e.dom();vr(t,function(e,t){Cr(n,t,e)})},xr=function(e,t){var n=e.dom().getAttribute(t);return null===n?void 0:n},Er=function(e,t){e.dom().removeAttribute(t)},Nr=function(e,t){var n=e.dom();vr(t,function(e,t){!function(e,t,n){if(!R(n))throw V.console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);br(e)&&e.style.setProperty(t,n)}(n,t,e)})},Sr=function(e,t){var n,r,o=e.dom(),i=V.window.getComputedStyle(o).getPropertyValue(t),a=""!==i||null!=(r=pr(n=e)?n.dom().parentNode:n.dom())&&r.ownerDocument.body.contains(r)?i:Tr(o,t);return null===a?void 0:a},Tr=function(e,t){return br(e)?e.style.getPropertyValue(t):""},_r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(t.length!==n.length)throw new Error('Wrong number of arguments to struct. Expected "['+t.length+']", got '+n.length+" arguments");var r={};return U(t,function(e,t){r[e]=q(n[t])}),r}},Rr=function(e,t){for(var n=[],r=function(e){return n.push(e),t(e)},o=t(e);(o=o.bind(r)).isSome(););return n},Ar=function(){return ue.getOrDie("Node")},Dr=function(e,t,n){return 0!=(e.compareDocumentPosition(t)&n)},Br=function(e,t){return Dr(e,t,Ar().DOCUMENT_POSITION_CONTAINED_BY)},Or=lr,Pr=sr,Ir=function(e,t){var n=e.dom();if(n.nodeType!==Or)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Lr=function(e){return e.nodeType!==Or&&e.nodeType!==Pr||0===e.childElementCount},Mr=function(e,t){return e.dom()===t.dom()},Fr=ir.detect().browser.isIE()?function(e,t){return Br(e.dom(),t.dom())}:function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},zr=function(e){return ur.fromDom(e.dom().ownerDocument)},Ur=function(e){return ur.fromDom(e.dom().ownerDocument.defaultView)},jr=function(e){return _.from(e.dom().parentNode).map(ur.fromDom)},Vr=function(e){return _.from(e.dom().previousSibling).map(ur.fromDom)},Hr=function(e){return _.from(e.dom().nextSibling).map(ur.fromDom)},qr=function(e){return t=Rr(e,Vr),(n=L.call(t,0)).reverse(),n;var t,n},$r=function(e){return Rr(e,Hr)},Wr=function(e){return W(e.dom().childNodes,ur.fromDom)},Kr=function(e,t){var n=e.dom().childNodes;return _.from(n[t]).map(ur.fromDom)},Xr=function(e){return Kr(e,0)},Yr=function(e){return Kr(e,e.dom().childNodes.length-1)},Gr=(_r("element","offset"),ir.detect().browser),Jr=function(e){return Y(e,mr)},Qr={getPos:function(e,t,n){var r,o,i,a=0,u=0,s=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===Sr(ur.fromDom(e),"position"))return{x:a=(o=t.getBoundingClientRect()).left+(s.documentElement.scrollLeft||e.scrollLeft)-s.documentElement.clientLeft,y:u=o.top+(s.documentElement.scrollTop||e.scrollTop)-s.documentElement.clientTop};for(r=t;r&&r!==n&&r.nodeType;)a+=r.offsetLeft||0,u+=r.offsetTop||0,r=r.offsetParent;for(r=t.parentNode;r&&r!==n&&r.nodeType;)a-=r.scrollLeft||0,u-=r.scrollTop||0,r=r.parentNode;u+=(i=ur.fromDom(t),Gr.isFirefox()&&"table"===fr(i)?Jr(Wr(i)).filter(function(e){return"caption"===fr(e)}).bind(function(o){return Jr($r(o)).map(function(e){var t=e.dom().offsetTop,n=o.dom().offsetTop,r=o.dom().offsetHeight;return t<=n?-r:0})}).getOr(0):0)}return{x:a,y:u}}},Zr={},eo={exports:Zr};Dn=Zr,Bn=eo,An=void 0,function(e){"object"==typeof Dn&&void 0!==Bn?Bn.exports=e():"function"==typeof An&&An.amd?An([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=e()}(function(){return function i(a,u,s){function l(t,e){if(!u[t]){if(!a[t]){var n=!1;if(!e&&n)return n(t,!0);if(c)return c(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=u[t]={exports:{}};a[t][0].call(o.exports,function(e){return l(a[t][1][e]||e)},o,o.exports,i,a,u,s)}return u[t].exports}for(var c=!1,e=0;e<s.length;e++)l(s[e]);return l}({1:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{o="function"==typeof clearTimeout?clearTimeout:u}catch(e){o=u}}();var l,c=[],f=!1,d=-1;function m(){f&&l&&(f=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!f){var e=s(m);f=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,f=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new g(e,t)),1!==c.length||f||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(e,f,t){(function(n){!function(e){var t=setTimeout;function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function o(n,r){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,i._immediateFn(function(){var e=1===n._state?r.onFulfilled:r.onRejected;if(null!==e){var t;try{t=e(n._value)}catch(e){return void u(r.promise,e)}a(r.promise,t)}else(1===n._state?a:u)(r.promise,n._value)})):n._deferreds.push(r)}function a(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void s(t);if("function"==typeof n)return void c((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,s(t)}catch(e){u(t,e)}var r,o}function u(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function c(e,t){var n=!1;try{e(function(e){n||(n=!0,a(t,e))},function(e){n||(n=!0,u(t,e))})}catch(e){if(n)return;n=!0,u(t,e)}}i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return o(this,new l(e,t,n)),n},i.all=function(e){var u=Array.prototype.slice.call(e);return new i(function(r,o){if(0===u.length)return r([]);var i=u.length;function a(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},o)}u[t]=e,0==--i&&r(u)}catch(e){o(e)}}for(var e=0;e<u.length;e++)a(e,u[e])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(n){return new i(function(e,t){t(n)})},i.race=function(o){return new i(function(e,t){for(var n=0,r=o.length;n<r;n++)o[n].then(e,t)})},i._immediateFn="function"==typeof n?function(e){n(e)}:function(e){t(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==f&&f.exports?f.exports=i:e.Promise||(e.Promise=i)}(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(s,e,l){(function(e,t){var r=s("process/browser.js").nextTick,n=Function.prototype.apply,o=Array.prototype.slice,i={},a=0;function u(e,t){this._id=e,this._clearFn=t}l.setTimeout=function(){return new u(n.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new u(n.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},l.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},l._unrefActive=l.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},l.setImmediate="function"==typeof e?e:function(e){var t=a++,n=!(arguments.length<2)&&o.call(arguments,1);return i[t]=!0,r(function(){i[t]&&(n?e.apply(null,n):e.call(null),l.clearImmediate(t))}),t},l.clearImmediate="function"==typeof t?t:function(e){delete i[e]}}).call(this,s("timers").setImmediate,s("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),o="undefined"!=typeof window?window:Function("return this;")();t.exports={boltExport:o.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)});var to=eo.exports.boltExport,no=function(e){var n=_.none(),t=[],r=function(e){o()?a(e):t.push(e)},o=function(){return n.isSome()},i=function(e){U(e,a)},a=function(t){n.each(function(e){V.setTimeout(function(){t(e)},0)})};return e(function(e){n=_.some(e),i(t),t=[]}),{get:r,map:function(n){return no(function(t){r(function(e){t(n(e))})})},isReady:o}},ro={nu:no,pure:function(t){return no(function(e){e(t)})}},oo=function(e){V.setTimeout(function(){throw e},0)},io=function(n){var e=function(e){n().then(e,oo)};return{map:function(e){return io(function(){return n().then(e)})},bind:function(t){return io(function(){return n().then(function(e){return t(e).toPromise()})})},anonBind:function(e){return io(function(){return n().then(function(){return e.toPromise()})})},toLazy:function(){return ro.nu(e)},toCached:function(){var e=null;return io(function(){return null===e&&(e=n()),e})},toPromise:n,get:e}},ao={nu:function(e){return io(function(){return new to(e)})},pure:function(e){return io(function(){return to.resolve(e)})}},uo=function(a,e){return e(function(r){var o=[],i=0;0===a.length?r([]):U(a,function(e,t){var n;e.get((n=t,function(e){o[n]=e,++i>=a.length&&r(o)}))})})},so=function(e){return uo(e,ao.nu)},lo=function(n){return{is:function(e){return n===e},isValue:w,isError:C,getOr:q(n),getOrThunk:q(n),getOrDie:q(n),or:function(e){return lo(n)},orThunk:function(e){return lo(n)},fold:function(e,t){return t(n)},map:function(e){return lo(e(n))},mapError:function(e){return lo(n)},each:function(e){e(n)},bind:function(e){return e(n)},exists:function(e){return e(n)},forall:function(e){return e(n)},toOption:function(){return _.some(n)}}},co=function(n){return{is:C,isValue:C,isError:w,getOr:$,getOrThunk:function(e){return e()},getOrDie:function(){return e=String(n),function(){throw new Error(e)}();var e},or:function(e){return e},orThunk:function(e){return e()},fold:function(e,t){return e(n)},map:function(e){return co(n)},mapError:function(e){return co(e(n))},each:o,bind:function(e){return co(n)},exists:C,forall:w,toOption:_.none}},fo={value:lo,error:co,fromOption:function(e,t){return e.fold(function(){return co(t)},lo)}};function mo(e,u){var t=e,n=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==u){if(o=e[n])return o;for(i=e.parentNode;i&&i!==u;i=i.parentNode)if(o=i[n])return o}}};this.current=function(){return t},this.next=function(e){return t=n(t,"firstChild","nextSibling",e)},this.prev=function(e){return t=n(t,"lastChild","previousSibling",e)},this.prev2=function(e){return t=function(e,t,n,r){var o,i,a;if(e){if(o=e[n],u&&o===u)return;if(o){if(!r)for(a=o[t];a;a=a[t])if(!a[t])return a;return o}if((i=e.parentNode)&&i!==u)return i}}(t,"lastChild","previousSibling",e)}}var po,go,ho,vo=function(t){var n;return function(e){return(n=n||function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n}(t,q(!0))).hasOwnProperty(fr(e))}},yo=vo(["h1","h2","h3","h4","h5","h6"]),bo=vo(["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"]),Co=function(e){return mr(e)&&!bo(e)},wo=function(e){return mr(e)&&"br"===fr(e)},ko=vo(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),xo=vo(["ul","ol","dl"]),Eo=vo(["li","dd","dt"]),No=vo(["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param","embed","source","wbr","track"]),So=vo(["thead","tbody","tfoot"]),To=vo(["td","th"]),_o=vo(["pre","script","textarea","style"]),Ro=function(t){return function(e){return!!e&&e.nodeType===t}},Ao=Ro(1),Do=function(e){var r=e.toLowerCase().split(" ");return function(e){var t,n;if(e&&e.nodeType)for(n=e.nodeName.toLowerCase(),t=0;t<r.length;t++)if(n===r[t])return!0;return!1}},Bo=function(t){return function(e){if(Ao(e)){if(e.contentEditable===t)return!0;if(e.getAttribute("data-mce-contenteditable")===t)return!0}return!1}},Oo=Ro(3),Po=Ro(8),Io=Ro(9),Lo=Ro(11),Mo=Do("br"),Fo=Bo("true"),zo=Bo("false"),Uo={isText:Oo,isElement:Ao,isComment:Po,isDocument:Io,isDocumentFragment:Lo,isBr:Mo,isContentEditableTrue:Fo,isContentEditableFalse:zo,isRestrictedNode:function(e){return!!e&&!Object.getPrototypeOf(e)},matchNodeNames:Do,hasPropValue:function(t,n){return function(e){return Ao(e)&&e[t]===n}},hasAttribute:function(t,e){return function(e){return Ao(e)&&e.hasAttribute(t)}},hasAttributeValue:function(t,n){return function(e){return Ao(e)&&e.getAttribute(t)===n}},matchStyleValues:function(r,e){var o=e.toLowerCase().split(" ");return function(e){var t;if(Ao(e))for(t=0;t<o.length;t++){var n=e.ownerDocument.defaultView.getComputedStyle(e,null);if((n?n.getPropertyValue(r):null)===o[t])return!0}return!1}},isBogus:function(e){return Ao(e)&&e.hasAttribute("data-mce-bogus")},isBogusAll:function(e){return Ao(e)&&"all"===e.getAttribute("data-mce-bogus")},isTable:function(e){return Ao(e)&&"TABLE"===e.tagName}},jo=function(e){return e&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Vo=function(e,t){var n,r=t.childNodes;if(!Uo.isElement(t)||!jo(t)){for(n=r.length-1;0<=n;n--)Vo(e,r[n]);if(!1===Uo.isDocument(t)){if(Uo.isText(t)&&0<t.nodeValue.length){var o=Jt.trim(t.nodeValue).length;if(e.isBlock(t.parentNode)||0<o)return;if(0===o&&(a=(i=t).previousSibling&&"SPAN"===i.previousSibling.nodeName,u=i.nextSibling&&"SPAN"===i.nextSibling.nodeName,a&&u))return}else if(Uo.isElement(t)&&(1===(r=t.childNodes).length&&jo(r[0])&&t.parentNode.insertBefore(r[0],t),r.length||No(ur.fromDom(t))))return;e.remove(t)}var i,a,u;return t}},Ho={trimNode:Vo},qo=Jt.makeMap,$o=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wo=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ko=/[<>&\"\']/g,Xo=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Yo={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};go={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},ho={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"};var Go=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),go[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}};po=Go("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var Jo=function(e,t){return e.replace(t?$o:Wo,function(e){return go[e]||e})},Qo=function(e,t){return e.replace(t?$o:Wo,function(e){return 1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":go[e]||"&#"+e.charCodeAt(0)+";"})},Zo=function(e,t,n){return n=n||po,e.replace(t?$o:Wo,function(e){return go[e]||n[e]||e})},ei={encodeRaw:Jo,encodeAllRaw:function(e){return(""+e).replace(Ko,function(e){return go[e]||e})},encodeNumeric:Qo,encodeNamed:Zo,getEncodeFunc:function(e,t){var n=Go(t)||po,r=qo(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?$o:Wo,function(e){return void 0!==go[e]?go[e]:void 0!==n[e]?n[e]:1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"})}:r.named?t?function(e,t){return Zo(e,t,n)}:Zo:r.numeric?Qo:Jo},decode:function(e){return e.replace(Xo,function(e,t){return t?65535<(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):Yo[t]||String.fromCharCode(t):ho[e]||po[e]||(n=e,(r=ur.fromTag("div").dom()).innerHTML=n,r.textContent||r.innerText||n);var n,r})}},ti={},ni={},ri=Jt.makeMap,oi=Jt.each,ii=Jt.extend,ai=Jt.explode,ui=Jt.inArray,si=function(e,t){return(e=Jt.trim(e))?e.split(t||" "):[]},li=function(e){var u,t,n,r,o,i,s={},a=function(e,t,n){var r,o,i,a=function(e,t){var n,r,o={};for(n=0,r=e.length;n<r;n++)o[e[n]]=t||{};return o};for(t=t||"","string"==typeof(n=n||[])&&(n=si(n)),r=(e=si(e)).length;r--;)i={attributes:a(o=si([u,t].join(" "))),attributesOrder:o,children:a(n,ni)},s[e[r]]=i},l=function(e,t){var n,r,o,i;for(n=(e=si(e)).length,t=si(t);n--;)for(r=s[e[n]],o=0,i=t.length;o<i;o++)r.attributes[t[o]]={},r.attributesOrder.push(t[o])};return ti[e]?ti[e]:(u="id accesskey class dir lang style tabindex title role",t="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",n="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(u+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",t+=" article aside details dialog figure main header footer hgroup section nav",n+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(u+=" xml:lang",n=[n,i="acronym applet basefont big font strike tt"].join(" "),oi(si(i),function(e){a(e,"",n)}),t=[t,o="center dir isindex noframes"].join(" "),r=[t,n].join(" "),oi(si(o),function(e){a(e,"",r)})),r=r||[t,n].join(" "),a("html","manifest","head body"),a("head","","base command link meta noscript script style title"),a("title hr noscript br"),a("base","href target"),a("link","href rel media hreflang type sizes hreflang"),a("meta","name http-equiv content charset"),a("style","media type scoped"),a("script","src async defer type charset"),a("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",r),a("address dt dd div caption","",r),a("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",n),a("blockquote","cite",r),a("ol","reversed start type","li"),a("ul","","li"),a("li","value",r),a("dl","","dt dd"),a("a","href target rel media hreflang type",n),a("q","cite",n),a("ins del","cite datetime",r),a("img","src sizes srcset alt usemap ismap width height"),a("iframe","src name width height",r),a("embed","src type width height"),a("object","data type typemustmatch name usemap form width height",[r,"param"].join(" ")),a("param","name value"),a("map","name",[r,"area"].join(" ")),a("area","alt coords shape href target rel media hreflang type"),a("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),a("colgroup","span","col"),a("col","span"),a("tbody thead tfoot","","tr"),a("tr","","td th"),a("td","colspan rowspan headers",r),a("th","colspan rowspan headers scope abbr",r),a("form","accept-charset action autocomplete enctype method name novalidate target",r),a("fieldset","disabled form name",[r,"legend"].join(" ")),a("label","form for",n),a("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),a("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?r:n),a("select","disabled form multiple name required size","option optgroup"),a("optgroup","disabled label","option"),a("option","disabled label selected value"),a("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),a("menu","type label",[r,"li"].join(" ")),a("noscript","",r),"html4"!==e&&(a("wbr"),a("ruby","",[n,"rt rp"].join(" ")),a("figcaption","",r),a("mark rt rp summary bdi","",n),a("canvas","width height",r),a("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[r,"track source"].join(" ")),a("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[r,"track source"].join(" ")),a("picture","","img source"),a("source","src srcset type media sizes"),a("track","kind src srclang label default"),a("datalist","",[n,"option"].join(" ")),a("article section nav aside main header footer","",r),a("hgroup","","h1 h2 h3 h4 h5 h6"),a("figure","",[r,"figcaption"].join(" ")),a("time","datetime",n),a("dialog","open",r),a("command","type label icon disabled checked radiogroup command"),a("output","for form name",n),a("progress","value max",n),a("meter","value min max low high optimum",n),a("details","open",[r,"summary"].join(" ")),a("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(l("script","language xml:space"),l("style","xml:space"),l("object","declare classid code codebase codetype archive standby align border hspace vspace"),l("embed","align name hspace vspace"),l("param","valuetype type"),l("a","charset name rev shape coords"),l("br","clear"),l("applet","codebase archive code object alt name width height align hspace vspace"),l("img","name longdesc align border hspace vspace"),l("iframe","longdesc frameborder marginwidth marginheight scrolling align"),l("font basefont","size color face"),l("input","usemap align"),l("select","onchange"),l("textarea"),l("h1 h2 h3 h4 h5 h6 div p legend caption","align"),l("ul","type compact"),l("li","type"),l("ol dl menu dir","compact"),l("pre","width xml:space"),l("hr","align noshade size width"),l("isindex","prompt"),l("table","summary width frame rules cellspacing cellpadding align bgcolor"),l("col","width align char charoff valign"),l("colgroup","width align char charoff valign"),l("thead","align char charoff valign"),l("tr","align char charoff valign bgcolor"),l("th","axis align char charoff valign nowrap bgcolor width height"),l("form","accept"),l("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),l("tfoot","align char charoff valign"),l("tbody","align char charoff valign"),l("area","nohref"),l("body","background bgcolor text link vlink alink")),"html4"!==e&&(l("input button select textarea","autofocus"),l("input textarea","placeholder"),l("a","download"),l("link script img","crossorigin"),l("iframe","sandbox seamless allowfullscreen")),oi(si("a form meter progress dfn"),function(e){s[e]&&delete s[e].children[e]}),delete s.caption.children.table,delete s.script,ti[e]=s)},ci=function(e,n){var r;return e&&(r={},"string"==typeof e&&(e={"*":e}),oi(e,function(e,t){r[t]=r[t.toUpperCase()]="map"===n?ri(e,/[, ]/):ai(e,/[, ]/)})),r};function fi(i){var e,t,n,r,o,a,u,s,l,c,f,d,m,x={},p={},E=[],g={},h={},v=function(e,t,n){var r=i[e];return r?r=ri(r,/[, ]/,ri(r.toUpperCase(),/[, ]/)):(r=ti[e])||(r=ri(t," ",ri(t.toUpperCase()," ")),r=ii(r,n),ti[e]=r),r};n=li((i=i||{}).schema),!1===i.verify_html&&(i.valid_elements="*[*]"),e=ci(i.valid_styles),t=ci(i.invalid_styles,"map"),s=ci(i.valid_classes,"map"),r=v("whitespace_elements","pre script noscript style textarea video audio iframe object code"),o=v("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),a=v("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),u=v("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),c=v("non_empty_elements","td th iframe video audio object script pre code",a),f=v("move_caret_before_on_enter_elements","table",c),d=v("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),l=v("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",d),m=v("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp"),oi((i.special||"script noscript noframes noembed title style textarea xmp").split(" "),function(e){h[e]=new RegExp("</"+e+"[^>]*>","gi")});var N=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},y=function(e){var t,n,r,o,i,a,u,s,l,c,f,d,m,p,g,h,v,y,b,C=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,w=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,k=/[*?+]/;if(e)for(e=si(e,","),x["@"]&&(h=x["@"].attributes,v=x["@"].attributesOrder),t=0,n=e.length;t<n;t++)if(i=C.exec(e[t])){if(p=i[1],l=i[2],g=i[3],s=i[5],a={attributes:d={},attributesOrder:m=[]},"#"===p&&(a.paddEmpty=!0),"-"===p&&(a.removeEmpty=!0),"!"===i[4]&&(a.removeEmptyAttrs=!0),h){for(y in h)d[y]=h[y];m.push.apply(m,v)}if(s)for(r=0,o=(s=si(s,"|")).length;r<o;r++)if(i=w.exec(s[r])){if(u={},f=i[1],c=i[2].replace(/[\\:]:/g,":"),p=i[3],b=i[4],"!"===f&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(c),u.required=!0),"-"===f){delete d[c],m.splice(ui(m,c),1);continue}p&&("="===p&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:c,value:b}),u.defaultValue=b),":"===p&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:c,value:b}),u.forcedValue=b),"<"===p&&(u.validValues=ri(b,"?"))),k.test(c)?(a.attributePatterns=a.attributePatterns||[],u.pattern=N(c),a.attributePatterns.push(u)):(d[c]||m.push(c),d[c]=u)}h||"@"!==l||(h=d,v=m),g&&(a.outputName=l,x[g]=a),k.test(l)?(a.pattern=N(l),E.push(a)):x[l]=a}},b=function(e){x={},E=[],y(e),oi(n,function(e,t){p[t]=e.children})},C=function(e){var a=/^(~)?(.+)$/;e&&(ti.text_block_elements=ti.block_elements=null,oi(si(e,","),function(e){var t=a.exec(e),n="~"===t[1],r=n?"span":"div",o=t[2];if(p[o]=p[r],g[o]=r,n||(l[o.toUpperCase()]={},l[o]={}),!x[o]){var i=x[r];delete(i=ii({},i)).removeEmptyAttrs,delete i.removeEmpty,x[o]=i}oi(p,function(e,t){e[r]&&(p[t]=e=ii({},p[t]),e[o]=e[r])})}))},w=function(e){var o=/^([+\-]?)(\w+)\[([^\]]+)\]$/;ti[i.schema]=null,e&&oi(si(e,","),function(e){var t,n,r=o.exec(e);r&&(n=r[1],t=n?p[r[2]]:p[r[2]]={"#comment":{}},t=p[r[2]],oi(si(r[3],"|"),function(e){"-"===n?delete t[e]:t[e]={}}))})},k=function(e){var t,n=x[e];if(n)return n;for(t=E.length;t--;)if((n=E[t]).pattern.test(e))return n};return i.valid_elements?b(i.valid_elements):(oi(n,function(e,t){x[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},p[t]=e.children}),"html5"!==i.schema&&oi(si("strong/b em/i"),function(e){e=si(e,"/"),x[e[1]].outputName=e[0]}),oi(si("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(e){x[e]&&(x[e].removeEmpty=!0)}),oi(si("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(e){x[e].paddEmpty=!0}),oi(si("span"),function(e){x[e].removeEmptyAttrs=!0})),C(i.custom_elements),w(i.valid_children),y(i.extended_valid_elements),w("+ol[ul|ol],+ul[ul|ol]"),oi({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},function(e,t){x[t]&&(x[t].parentsRequired=si(e))}),i.invalid_elements&&oi(ai(i.invalid_elements),function(e){x[e]&&delete x[e]}),k("span")||y("span[!data-mce-type|*]"),{children:p,elements:x,getValidStyles:function(){return e},getValidClasses:function(){return s},getBlockElements:function(){return l},getInvalidStyles:function(){return t},getShortEndedElements:function(){return a},getTextBlockElements:function(){return d},getTextInlineElements:function(){return m},getBoolAttrs:function(){return u},getElementRule:k,getSelfClosingElements:function(){return o},getNonEmptyElements:function(){return c},getMoveCaretBeforeOnEnterElements:function(){return f},getWhiteSpaceElements:function(){return r},getSpecialElements:function(){return h},isValidChild:function(e,t){var n=p[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},isValid:function(e,t){var n,r,o=k(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(e))return!0}return!1},getCustomElements:function(){return g},addValidElements:y,setValidElements:b,addCustomElements:C,addValidChildren:w}}var di=function(e,t,n,r){var o=function(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e};return"#"+o(t)+o(n)+o(r)};function mi(b,e){var C,t,l,c,w=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,k=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,x=/\s*([^:]+):\s*([^;]+);?/g,E=/\s+$/,N={},S="\ufeff";for(b=b||{},e&&(l=e.getValidStyles(),c=e.getInvalidStyles()),t=("\\\" \\' \\; \\: ; : "+S).split(" "),C=0;C<t.length;C++)N[t[C]]=S+C,N[S+C]=t[C];return{toHex:function(e){return e.replace(w,di)},parse:function(e){var t,n,r,o,i,a,u,s,l={},c=b.url_converter,f=b.url_converter_scope||this,d=function(e,t,n){var r,o,i,a;if((r=l[e+"-top"+t])&&(o=l[e+"-right"+t])&&(i=l[e+"-bottom"+t])&&(a=l[e+"-left"+t])){var u=[r,o,i,a];for(C=u.length-1;C--&&u[C]===u[C+1];);-1<C&&n||(l[e+t]=-1===C?u[0]:u.join(" "),delete l[e+"-top"+t],delete l[e+"-right"+t],delete l[e+"-bottom"+t],delete l[e+"-left"+t])}},m=function(e){var t,n=l[e];if(n){for(t=(n=n.split(" ")).length;t--;)if(n[t]!==n[0])return!1;return l[e]=n[0],!0}},p=function(e){return o=!0,N[e]},g=function(e,t){return o&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return N[e]})),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},h=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},v=function(e){return e.replace(/\\[0-9a-f]+/gi,h)},y=function(e,t,n,r,o,i){if(o=o||i)return"'"+(o=g(o)).replace(/\'/g,"\\'")+"'";if(t=g(t||n||r),!b.allow_script_urls){var a=t.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(a))return"";if(!b.allow_svg_data_urls&&/^data:image\/svg/i.test(a))return""}return c&&(t=c.call(f,t,"style")),"url('"+t.replace(/\'/g,"\\'")+"')"};if(e){for(e=(e=e.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,p).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,p)});t=x.exec(e);)if(x.lastIndex=t.index+t[0].length,n=t[1].replace(E,"").toLowerCase(),r=t[2].replace(E,""),n&&r){if(n=v(n),r=v(r),-1!==n.indexOf(S)||-1!==n.indexOf('"'))continue;if(!b.allow_script_urls&&("behavior"===n||/expression\s*\(|\/\*|\*\//.test(r)))continue;"font-weight"===n&&"700"===r?r="bold":"color"!==n&&"background-color"!==n||(r=r.toLowerCase()),r=(r=r.replace(w,di)).replace(k,y),l[n]=o?g(r,!0):r}d("border","",!0),d("border","-width"),d("border","-color"),d("border","-style"),d("padding",""),d("margin",""),i="border",u="border-style",s="border-color",m(a="border-width")&&m(u)&&m(s)&&(l[i]=l[a]+" "+l[u]+" "+l[s],delete l[a],delete l[u],delete l[s]),"medium none"===l.border&&delete l.border,"none"===l["border-image"]&&delete l["border-image"]}return l},serialize:function(i,e){var t,n,r,o,a,u="",s=function(e){var t,n,r,o;if(t=l[e])for(n=0,r=t.length;n<r;n++)e=t[n],(o=i[e])&&(u+=(0<u.length?" ":"")+e+": "+o+";")};if(e&&l)s("*"),s(e);else for(t in i)!(n=i[t])||c&&(r=t,o=e,a=void 0,(a=c["*"])&&a[r]||(a=c[o])&&a[r])||(u+=(0<u.length?" ":"")+t+": "+n+";");return u}}}var pi,gi=Jt.each,hi=Jt.grep,vi=pe.ie,yi=/^([a-z0-9],?)+$/i,bi=/^[ \t\r\n]*$/,Ci=function(n,r,o){var e={},i=r.keep_values,t={set:function(e,t,n){r.url_converter&&(t=r.url_converter.call(r.url_converter_scope||o(),t,n,e[0])),e.attr("data-mce-"+n,t).attr(n,t)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}};return e={style:{set:function(e,t){null===t||"object"!=typeof t?(i&&e.attr("data-mce-style",t),e.attr("style",t)):e.css(t)},get:function(e){var t=e.attr("data-mce-style")||e.attr("style");return t=n.serialize(n.parse(t),e[0].nodeName)}}},i&&(e.href=e.src=t),e},wi=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},ki=function(e,t){var n,r,o=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(o++,n=r);return o};function xi(a,u){var s,l=this;void 0===u&&(u={});var r={},i=V.window,o={},t=0,e=function(m,p){void 0===p&&(p={});var g,h=0,v={};g=p.maxLoadTime||5e3;var y=function(e){m.getElementsByTagName("head")[0].appendChild(e)},n=function(e,t,n){var o,r,i,a,u=function(){for(var e=a.passed,t=e.length;t--;)e[t]();a.status=2,a.passed=[],a.failed=[]},s=function(){for(var e=a.failed,t=e.length;t--;)e[t]();a.status=3,a.passed=[],a.failed=[]},l=function(e,t){e()||((new Date).getTime()-i<g?be.setTimeout(t):s())},c=function(){l(function(){for(var e,t,n=m.styleSheets,r=n.length;r--;)if((t=(e=n[r]).ownerNode?e.ownerNode:e.owningElement)&&t.id===o.id)return u(),!0},c)},f=function(){l(function(){try{var e=r.sheet.cssRules;return u(),!!e}catch(e){}},f)};if(e=Jt._addCacheSuffix(e),v[e]?a=v[e]:(a={passed:[],failed:[]},v[e]=a),t&&a.passed.push(t),n&&a.failed.push(n),1!==a.status)if(2!==a.status)if(3!==a.status){if(a.status=1,(o=m.createElement("link")).rel="stylesheet",o.type="text/css",o.id="u"+h++,o.async=!1,o.defer=!1,i=(new Date).getTime(),p.contentCssCors&&(o.crossOrigin="anonymous"),"onload"in o&&!((d=V.navigator.userAgent.match(/WebKit\/(\d*)/))&&parseInt(d[1],10)<536))o.onload=c,o.onerror=s;else{if(0<V.navigator.userAgent.indexOf("Firefox"))return(r=m.createElement("style")).textContent='@import "'+e+'"',f(),void y(r);c()}var d;y(o),o.href=e}else s();else u()},t=function(t){return ao.nu(function(e){n(t,H(e,q(fo.value(t))),H(e,q(fo.error(t))))})},o=function(e){return e.fold($,$)};return{load:n,loadAll:function(e,n,r){so(W(e,t)).get(function(e){var t=K(e,function(e){return e.isValue()});0<t.fail.length?r(t.fail.map(o)):n(t.pass.map(o))})}}}(a,{contentCssCors:u.contentCssCors}),c=[],f=u.schema?u.schema:fi({}),d=mi({url_converter:u.url_converter,url_converter_scope:u.url_converter_scope},u.schema),m=u.ownEvents?new _e(u.proxy):_e.Event,n=f.getBlockElements(),p=vn.overrideDefaults(function(){return{context:a,element:j.getRoot()}}),g=function(e){if(e&&a&&"string"==typeof e){var t=a.getElementById(e);return t&&t.id!==e?a.getElementsByName(e)[1]:t}return e},h=function(e){return"string"==typeof e&&(e=g(e)),p(e)},v=function(e,t,n){var r,o,i=h(e);return i.length&&(o=(r=s[t])&&r.get?r.get(i,t):i.attr(t)),void 0===o&&(o=n||""),o},y=function(e){var t=g(e);return t?t.attributes:[]},b=function(e,t,n){var r,o;""===n&&(n=null);var i=h(e);r=i.attr(t),i.length&&((o=s[t])&&o.set?o.set(i,n,t):i.attr(t,n),r!==n&&u.onSetAttrib&&u.onSetAttrib({attrElm:i,attrName:t,attrValue:n}))},C=function(){return u.root_element||a.body},w=function(e,t){return Qr.getPos(a.body,g(e),t)},k=function(e,t,n){var r=h(e);return n?r.css(t):("float"===(t=t.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}))&&(t=pe.ie&&pe.ie<12?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},x=function(e){var t,n;return e=g(e),t=k(e,"width"),n=k(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},E=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(yi.test(t)){var r=t.toLowerCase().split(/,/),o=e.nodeName.toLowerCase();for(n=r.length-1;0<=n;n--)if(r[n]===o)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var i=Array.isArray(e)?e:[e];return 0<_t(t,i[0].ownerDocument||i[0],null,i).length},N=function(e,t,n,r){var o,i=[],a=g(e);for(r=void 0===r,n=n||("BODY"!==C().nodeName?C().parentNode:null),Jt.is(t,"string")&&(t="*"===(o=t)?function(e){return 1===e.nodeType}:function(e){return E(e,o)});a&&a!==n&&a.nodeType&&9!==a.nodeType;){if(!t||"function"==typeof t&&t(a)){if(!r)return[a];i.push(a)}a=a.parentNode}return r?i:null},S=function(e,t,n){var r=t;if(e)for("string"==typeof t&&(r=function(e){return E(e,t)}),e=e[n];e;e=e[n])if("function"==typeof r&&r(e))return e;return null},T=function(e,n,r){var o,t="string"==typeof e?g(e):e;if(!t)return!1;if(Jt.isArray(t)&&(t.length||0===t.length))return o=[],gi(t,function(e,t){e&&("string"==typeof e&&(e=g(e)),o.push(n.call(r,e,t)))}),o;var i=r||l;return n.call(i,t)},_=function(e,t){h(e).each(function(e,n){gi(t,function(e,t){b(n,t,e)})})},R=function(e,n){var t=h(e);vi?t.each(function(e,t){if(!1!==t.canHaveHTML){for(;t.firstChild;)t.removeChild(t.firstChild);try{t.innerHTML="<br>"+n,t.removeChild(t.firstChild)}catch(e){vn("<div></div>").html("<br>"+n).contents().slice(1).appendTo(t)}return n}}):t.html(n)},A=function(e,n,r,o,i){return T(e,function(e){var t="string"==typeof n?a.createElement(n):n;return _(t,r),o&&("string"!=typeof o&&o.nodeType?t.appendChild(o):"string"==typeof o&&R(t,o)),i?t:e.appendChild(t)})},D=function(e,t,n){return A(a.createElement(e),e,t,n,!0)},B=ei.decode,O=ei.encodeAllRaw,P=function(e,t){var n=h(e);return t?n.each(function(){for(var e;e=this.firstChild;)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)}).remove():n.remove(),1<n.length?n.toArray():n[0]},I=function(e,t,n){h(e).toggleClass(t,n).each(function(){""===this.className&&vn(this).attr("class",null)})},L=function(t,e,n){return T(e,function(e){return Jt.is(e,"array")&&(t=t.cloneNode(!0)),n&&gi(hi(e.childNodes),function(e){t.appendChild(e)}),e.parentNode.replaceChild(t,e)})},M=function(){return a.createRange()},F=function(e,t,n,r){if(Jt.isArray(e)){for(var o=e.length;o--;)e[o]=F(e[o],t,n,r);return e}return!u.collect||e!==a&&e!==i||c.push([e,t,n,r]),m.bind(e,t,n,r||j)},z=function(e,t,n){var r;if(Jt.isArray(e)){for(r=e.length;r--;)e[r]=z(e[r],t,n);return e}if(c&&(e===a||e===i))for(r=c.length;r--;){var o=c[r];e!==o[0]||t&&t!==o[1]||n&&n!==o[2]||m.unbind(o[0],o[1],o[2])}return m.unbind(e,t,n)},U=function(e){if(e&&Uo.isElement(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},j={doc:a,settings:u,win:i,files:o,stdMode:!0,boxModel:!0,styleSheetLoader:e,boundEvents:c,styles:d,schema:f,events:m,isBlock:function(e){if("string"==typeof e)return!!n[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!n[e.nodeName])}return!1},$:p,$$:h,root:null,clone:function(t,e){if(!vi||1!==t.nodeType||e)return t.cloneNode(e);if(e)return null;var n=a.createElement(t.nodeName);return gi(y(t),function(e){b(n,e.nodeName,v(t,e.nodeName))}),n},getRoot:C,getViewPort:function(e){var t=e||i,n=t.document.documentElement;return{x:t.pageXOffset||n.scrollLeft,y:t.pageYOffset||n.scrollTop,w:t.innerWidth||n.clientWidth,h:t.innerHeight||n.clientHeight}},getRect:function(e){var t,n;return e=g(e),t=w(e),n=x(e),{x:t.x,y:t.y,w:n.w,h:n.h}},getSize:x,getParent:function(e,t,n){var r=N(e,t,n,!1);return r&&0<r.length?r[0]:null},getParents:N,get:g,getNext:function(e,t){return S(e,t,"nextSibling")},getPrev:function(e,t){return S(e,t,"previousSibling")},select:function(e,t){return _t(e,g(t)||u.root_element||a,[])},is:E,add:A,create:D,createHTML:function(e,t,n){var r,o="";for(r in o+="<"+e,t)t.hasOwnProperty(r)&&null!==t[r]&&void 0!==t[r]&&(o+=" "+r+'="'+O(t[r])+'"');return void 0!==n?o+">"+n+"</"+e+">":o+" />"},createFragment:function(e){var t,n=a.createElement("div"),r=a.createDocumentFragment();for(e&&(n.innerHTML=e);t=n.firstChild;)r.appendChild(t);return r},remove:P,setStyle:function(e,t,n){var r=h(e).css(t,n);u.update_styles&&wi(d,r)},getStyle:k,setStyles:function(e,t){var n=h(e).css(t);u.update_styles&&wi(d,n)},removeAllAttribs:function(e){return T(e,function(e){var t,n=e.attributes;for(t=n.length-1;0<=t;t--)e.removeAttributeNode(n.item(t))})},setAttrib:b,setAttribs:_,getAttrib:v,getPos:w,parseStyle:function(e){return d.parse(e)},serializeStyle:function(e,t){return d.serialize(e,t)},addStyle:function(e){var t,n;if(j!==xi.DOM&&a===V.document){if(r[e])return;r[e]=!0}(n=a.getElementById("mceDefaultStyles"))||((n=a.createElement("style")).id="mceDefaultStyles",n.type="text/css",(t=a.getElementsByTagName("head")[0]).firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(a.createTextNode(e))},loadCSS:function(e){var n;j===xi.DOM||a!==V.document?(e||(e=""),n=a.getElementsByTagName("head")[0],gi(e.split(","),function(e){var t;e=Jt._addCacheSuffix(e),o[e]||(o[e]=!0,t=D("link",{rel:"stylesheet",href:e}),n.appendChild(t))})):xi.DOM.loadCSS(e)},addClass:function(e,t){h(e).addClass(t)},removeClass:function(e,t){I(e,t,!1)},hasClass:function(e,t){return h(e).hasClass(t)},toggleClass:I,show:function(e){h(e).show()},hide:function(e){h(e).hide()},isHidden:function(e){return"none"===h(e).css("display")},uniqueId:function(e){return(e||"mce_")+t++},setHTML:R,getOuterHTML:function(e){var t="string"==typeof e?g(e):e;return Uo.isElement(t)?t.outerHTML:vn("<div></div>").append(vn(t).clone()).html()},setOuterHTML:function(e,t){h(e).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}P(vn(this).html(t),!0)})},decode:B,encode:O,insertAfter:function(e,t){var r=g(t);return T(e,function(e){var t,n;return t=r.parentNode,(n=r.nextSibling)?t.insertBefore(e,n):t.appendChild(e),e})},replace:L,rename:function(t,e){var n;return t.nodeName!==e.toUpperCase()&&(n=D(e),gi(y(t),function(e){b(n,e.nodeName,v(t,e.nodeName))}),L(n,t,!0)),n||t},findCommonAncestor:function(e,t){for(var n,r=e;r;){for(n=t;n&&r!==n;)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},toHex:function(e){return d.toHex(Jt.trim(e))},run:T,getAttribs:y,isEmpty:function(e,t){var n,r,o,i,a,u,s=0;if(e=e.firstChild){a=new mo(e,e.parentNode),t=t||(f?f.getNonEmptyElements():null),i=f?f.getWhiteSpaceElements():{};do{if(o=e.nodeType,Uo.isElement(e)){var l=e.getAttribute("data-mce-bogus");if(l){e=a.next("all"===l);continue}if(u=e.nodeName.toLowerCase(),t&&t[u]){if("br"!==u)return!1;s++,e=a.next();continue}for(n=(r=y(e)).length;n--;)if("name"===(u=r[n].nodeName)||"data-mce-bookmark"===u)return!1}if(8===o)return!1;if(3===o&&!bi.test(e.nodeValue))return!1;if(3===o&&e.parentNode&&i[e.parentNode.nodeName]&&bi.test(e.nodeValue))return!1;e=a.next()}while(e)}return s<=1},createRng:M,nodeIndex:ki,split:function(e,t,n){var r,o,i,a=M();if(e&&t)return a.setStart(e.parentNode,ki(e)),a.setEnd(t.parentNode,ki(t)),r=a.extractContents(),(a=M()).setStart(t.parentNode,ki(t)+1),a.setEnd(e.parentNode,ki(e)+1),o=a.extractContents(),(i=e.parentNode).insertBefore(Ho.trimNode(j,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(Ho.trimNode(j,o),e),P(e),n||t},bind:F,unbind:z,fire:function(e,t,n){return m.fire(e,t,n)},getContentEditable:U,getContentEditableParent:function(e){for(var t=C(),n=null;e&&e!==t&&null===(n=U(e));e=e.parentNode);return n},destroy:function(){if(c)for(var e=c.length;e--;){var t=c[e];m.unbind(t[0],t[1],t[2])}_t.setDocument&&_t.setDocument()},isChildOf:function(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},dumpRng:function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset}};return s=Ci(d,u,function(){return j}),j}(pi=xi||(xi={})).DOM=pi(V.document),pi.nodeIndex=ki;var Ei=xi,Ni=Ei.DOM,Si=Jt.each,Ti=Jt.grep,_i=function(e){return"function"==typeof e},Ri=function(){var c={},o=[],i={},a=[],f=0;this.isDone=function(e){return 2===c[e]},this.markDone=function(e){c[e]=2},this.add=this.load=function(e,t,n,r){void 0===c[e]&&(o.push(e),c[e]=0),t&&(i[e]||(i[e]=[]),i[e].push({success:t,failure:r,scope:n||this}))},this.remove=function(e){delete c[e],delete i[e]},this.loadQueue=function(e,t,n){this.loadScripts(o,e,t,n)},this.loadScripts=function(n,e,t,r){var u,s=[],l=function(t,e){Si(i[e],function(e){_i(e[t])&&e[t].call(e.scope)}),i[e]=void 0};a.push({success:e,failure:r,scope:t||this}),(u=function(){var e=Ti(n);if(n.length=0,Si(e,function(e){var t,n,r,o,i,a;2!==c[e]?3!==c[e]?1!==c[e]&&(c[e]=1,f++,t=e,n=function(){c[e]=2,f--,l("success",e),u()},r=function(){c[e]=3,f--,s.push(e),l("failure",e),u()},i=(a=Ni).uniqueId(),(o=V.document.createElement("script")).id=i,o.type="text/javascript",o.src=Jt._addCacheSuffix(t),o.onload=function(){a.remove(i),o&&(o.onreadystatechange=o.onload=o=null),n()},o.onerror=function(){_i(r)?r():"undefined"!=typeof console&&console.log&&console.log("Failed to load script: "+t)},(V.document.getElementsByTagName("head")[0]||V.document.body).appendChild(o)):l("failure",e):l("success",e)}),!f){var t=a.slice(0);a.length=0,Si(t,function(e){0===s.length?_i(e.success)&&e.success.call(e.scope):_i(e.failure)&&e.failure.call(e.scope,s)})}})()}};Ri.ScriptLoader=new Ri;var Ai,Di=Jt.each;function Bi(){var r=this,o=[],a={},u={},i=[],s=function(e){var t;return u[e]&&(t=u[e].dependencies),t||[]},l=function(e,t){return"object"==typeof t?t:"string"==typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},c=function(e,n,t,r){var o=s(e);Di(o,function(e){var t=l(n,e);f(t.resource,t,void 0,void 0)}),t&&(r?t.call(r):t.call(Ri))},f=function(e,t,n,r,o){if(!a[e]){var i="string"==typeof t?t:t.prefix+t.resource+t.suffix;0!==i.indexOf("/")&&-1===i.indexOf("://")&&(i=Bi.baseURL+"/"+i),a[e]=i.substring(0,i.lastIndexOf("/")),u[e]?c(e,t,n,r):Ri.ScriptLoader.add(i,function(){return c(e,t,n,r)},r,o)}};return{items:o,urls:a,lookup:u,_listeners:i,get:function(e){if(u[e])return u[e].instance},dependencies:s,requireLangPack:function(e,t){var n=Bi.language;if(n&&!1!==Bi.languageLoad){if(t)if(-1!==(t=","+t+",").indexOf(","+n.substr(0,2)+","))n=n.substr(0,2);else if(-1===t.indexOf(","+n+","))return;Ri.ScriptLoader.add(a[e]+"/langs/"+n+".js")}},add:function(t,e,n){o.push(e),u[t]={instance:e,dependencies:n};var r=K(i,function(e){return e.name===t});return i=r.fail,Di(r.pass,function(e){e.callback()}),e},remove:function(e){delete a[e],delete u[e]},createUrl:l,addComponents:function(e,t){var n=r.urls[e];Di(t,function(e){Ri.ScriptLoader.add(n+"/"+e)})},load:f,waitFor:function(e,t){u.hasOwnProperty(e)?t():i.push({name:e,callback:t})}}}(Ai=Bi||(Bi={})).PluginManager=Ai(),Ai.ThemeManager=Ai();var Oi=function(t,n){jr(t).each(function(e){e.dom().insertBefore(n.dom(),t.dom())})},Pi=function(e,t){Hr(e).fold(function(){jr(e).each(function(e){Li(e,t)})},function(e){Oi(e,t)})},Ii=function(t,n){Xr(t).fold(function(){Li(t,n)},function(e){t.dom().insertBefore(n.dom(),e.dom())})},Li=function(e,t){e.dom().appendChild(t.dom())},Mi=function(t,e){U(e,function(e){Li(t,e)})},Fi=function(e){e.dom().textContent="",U(Wr(e),function(e){zi(e)})},zi=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},Ui=function(e){var t,n=Wr(e);0<n.length&&(t=e,U(n,function(e){Oi(t,e)})),zi(e)},ji=function(n,r){var o=null;return{cancel:function(){null!==o&&(V.clearTimeout(o),o=null)},throttle:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null===o&&(o=V.setTimeout(function(){n.apply(null,e),o=null},r))}}},Vi=function(e){var t=e,n=function(){return t};return{get:n,set:function(e){t=e},clone:function(){return Vi(n())}}},Hi=function(e,t){var n=xr(e,t);return void 0===n||""===n?[]:n.split(" ")},qi=function(e){return void 0!==e.dom().classList},$i=function(e,t){return o=t,i=Hi(n=e,r="class").concat([o]),wr(n,r,i.join(" ")),!0;var n,r,o,i},Wi=function(e,t){return o=t,0<(i=j(Hi(n=e,r="class"),function(e){return e!==o})).length?wr(n,r,i.join(" ")):Er(n,r),!1;var n,r,o,i},Ki=function(e,t){qi(e)?e.dom().classList.add(t):$i(e,t)},Xi=function(e){0===(qi(e)?e.dom().classList:Hi(e,"class")).length&&Er(e,"class")},Yi=function(e,t){return qi(e)&&e.dom().classList.contains(t)},Gi=function(e,t){var n=[];return U(Wr(e),function(e){t(e)&&(n=n.concat([e])),n=n.concat(Gi(e,t))}),n},Ji=function(e,t){return n=t,o=void 0===(r=e)?V.document:r.dom(),Lr(o)?[]:W(o.querySelectorAll(n),ur.fromDom);var n,r,o};function Qi(e,t,n,r,o){return e(n,r)?_.some(n):P(o)&&o(n)?_.none():t(n,r,o)}var Zi,ea=function(e,t,n){for(var r=e.dom(),o=P(n)?n:q(!1);r.parentNode;){r=r.parentNode;var i=ur.fromDom(r);if(t(i))return _.some(i);if(o(i))break}return _.none()},ta=function(e,t,n){return Qi(function(e,t){return t(e)},ea,e,t,n)},na=function(e,t,n){return ea(e,function(e){return Ir(e,t)},n)},ra=function(e,t){return n=t,o=void 0===(r=e)?V.document:r.dom(),Lr(o)?_.none():_.from(o.querySelector(n)).map(ur.fromDom);var n,r,o},oa=function(e,t,n){return Qi(Ir,na,e,t,n)},ia=q("mce-annotation"),aa=q("data-mce-annotation"),ua=q("data-mce-annotation-uid"),sa=function(r,e){var t=r.selection.getRng(),n=ur.fromDom(t.startContainer),o=ur.fromDom(r.getBody()),i=e.fold(function(){return"."+ia()},function(e){return"["+aa()+'="'+e+'"]'}),a=Kr(n,t.startOffset).getOr(n),u=oa(a,i,function(e){return Mr(e,o)}),s=function(e,t){return n=t,(r=e.dom())&&r.hasAttribute&&r.hasAttribute(n)?_.some(xr(e,t)):_.none();var n,r};return u.bind(function(e){return s(e,""+ua()).bind(function(n){return s(e,""+aa()).map(function(e){var t=la(r,n);return{uid:n,name:e,elements:t}})})})},la=function(e,t){var n=ur.fromDom(e.getBody());return Ji(n,"["+ua()+'="'+t+'"]')},ca=function(i,e){var n,r,o,a=Vi({}),l=function(e,t){u(e,function(e){return t(e),e})},u=function(e,t){var n=a.get(),r=t(n.hasOwnProperty(e)?n[e]:{listeners:[],previous:Vi(_.none())});n[e]=r,a.set(n)},t=(n=function(){var e,t,n,r=a.get(),o=(e=gr(r),(n=L.call(e,0)).sort(t),n);U(o,function(e){u(e,function(u){var s=u.previous.get();return sa(i,_.some(e)).fold(function(){var t;s.isSome()&&(l(t=e,function(e){U(e.listeners,function(e){return e(!1,t)})}),u.previous.set(_.none()))},function(e){var t,n,r,o=e.uid,i=e.name,a=e.elements;s.is(o)||(n=o,r=a,l(t=i,function(e){U(e.listeners,function(e){return e(!0,t,{uid:n,nodes:W(r,function(e){return e.dom()})})})}),u.previous.set(_.some(o)))}),{previous:u.previous,listeners:u.listeners}})})},r=30,o=null,{cancel:function(){null!==o&&(V.clearTimeout(o),o=null)},throttle:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null!==o&&V.clearTimeout(o),o=V.setTimeout(function(){n.apply(null,e),o=null},r)}});return i.on("remove",function(){t.cancel()}),i.on("nodeChange",function(){t.throttle()}),{addListener:function(e,t){u(e,function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}})}}},fa=function(e,n){e.on("init",function(){e.serializer.addNodeFilter("span",function(e){U(e,function(t){var e;(e=t,_.from(e.attributes.map[aa()]).bind(n.lookup)).each(function(e){!1===e.persistent&&t.unwrap()})})})})},da=0,ma=function(e,t){return ur.fromDom(e.dom().cloneNode(t))},pa=function(e){return ma(e,!1)},ga=function(e){return ma(e,!0)},ha=function(e,t){var n,r,o=zr(e).dom(),i=ur.fromDom(o.createDocumentFragment()),a=(n=t,(r=(o||V.document).createElement("div")).innerHTML=n,Wr(ur.fromDom(r)));Mi(i,a),Fi(e),Li(e,i)},va="\ufeff",ya=function(e){return e===va},ba=va,Ca=function(e){return e.replace(new RegExp(va,"g"),"")},wa=Uo.isElement,ka=Uo.isText,xa=function(e){return ka(e)&&(e=e.parentNode),wa(e)&&e.hasAttribute("data-mce-caret")},Ea=function(e){return ka(e)&&ya(e.data)},Na=function(e){return xa(e)||Ea(e)},Sa=function(e){return e.firstChild!==e.lastChild||!Uo.isBr(e.firstChild)},Ta=function(e){var t=e.container();return!(!e||!Uo.isText(t))&&(t.data.charAt(e.offset())===ba||e.isAtStart()&&Ea(t.previousSibling))},_a=function(e){var t=e.container();return!(!e||!Uo.isText(t))&&(t.data.charAt(e.offset()-1)===ba||e.isAtEnd()&&Ea(t.nextSibling))},Ra=function(e,t,n){var r,o,i;return(r=t.ownerDocument.createElement(e)).setAttribute("data-mce-caret",n?"before":"after"),r.setAttribute("data-mce-bogus","all"),r.appendChild(((i=V.document.createElement("br")).setAttribute("data-mce-bogus","1"),i)),o=t.parentNode,n?o.insertBefore(r,t):t.nextSibling?o.insertBefore(r,t.nextSibling):o.appendChild(r),r},Aa=function(e){return ka(e)&&e.data[0]===ba},Da=function(e){return ka(e)&&e.data[e.data.length-1]===ba},Ba=function(e){return e&&e.hasAttribute("data-mce-caret")?(t=e.getElementsByTagName("br"),n=t[t.length-1],Uo.isBogus(n)&&n.parentNode.removeChild(n),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null;var t,n},Oa=Uo.isContentEditableTrue,Pa=Uo.isContentEditableFalse,Ia=Uo.isBr,La=Uo.isText,Ma=Uo.matchNodeNames("script style textarea"),Fa=Uo.matchNodeNames("img input textarea hr iframe video audio object"),za=Uo.matchNodeNames("table"),Ua=Na,ja=function(e){return!Ua(e)&&(La(e)?!Ma(e.parentNode):Fa(e)||Ia(e)||za(e)||Va(e))},Va=function(e){return!1===(t=e,Uo.isElement(t)&&"true"===t.getAttribute("unselectable"))&&Pa(e);var t},Ha=function(e,t){return ja(e)&&function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(Va(e))return!1;if(Oa(e))return!0}return!0}(e,t)},qa=Math.round,$a=function(e){return e?{left:qa(e.left),top:qa(e.top),bottom:qa(e.bottom),right:qa(e.right),width:qa(e.width),height:qa(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Wa=function(e,t){return e=$a(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},Ka=function(e,t,n){return 0<=e&&e<=Math.min(t.height,n.height)/2},Xa=function(e,t){return e.bottom-e.height/2<t.top||!(e.top>t.bottom)&&Ka(t.top-e.bottom,e,t)},Ya=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&Ka(t.bottom-e.top,e,t)},Ga=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},Ja=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},Qa=function(e,t){return 1===e.nodeType&&e.hasChildNodes()&&(t>=e.childNodes.length&&(t=e.childNodes.length-1),e=e.childNodes[t]),e},Za=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︯ﾞ-ﾟ]"),eu=function(e){return"string"==typeof e&&768<=e.charCodeAt(0)&&Za.test(e)},tu=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];if(!o.isSome())return _.none();n.push(o.getOrDie())}return _.some(t.apply(null,n))},nu=[].slice,ru=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nu.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(!n[t](e))return!1;return!0}},ou=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nu.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(n[t](e))return!0;return!1}},iu=Uo.isElement,au=ja,uu=Uo.matchStyleValues("display","block table"),su=Uo.matchStyleValues("float","left right"),lu=ru(iu,au,b(su)),cu=b(Uo.matchStyleValues("white-space","pre pre-line pre-wrap")),fu=Uo.isText,du=Uo.isBr,mu=Ei.nodeIndex,pu=Qa,gu=function(e){return"createRange"in e?e.createRange():Ei.DOM.createRng()},hu=function(e){return e&&/[\r\n\t ]/.test(e)},vu=function(e){return!!e.setStart&&!!e.setEnd},yu=function(e){var t,n=e.startContainer,r=e.startOffset;return!!(hu(e.toString())&&cu(n.parentNode)&&Uo.isText(n)&&(t=n.data,hu(t[r-1])||hu(t[r+1])))},bu=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Cu=function(e){var t,n,r,o,i,a,u,s;return t=0<(n=e.getClientRects()).length?$a(n[0]):$a(e.getBoundingClientRect()),!vu(e)&&du(e)&&bu(t)?(i=(r=e).ownerDocument,a=gu(i),u=i.createTextNode(" "),(s=r.parentNode).insertBefore(u,r),a.setStart(u,0),a.setEnd(u,1),o=$a(a.getBoundingClientRect()),s.removeChild(u),o):bu(t)&&vu(e)?function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,o=e.endOffset;if(t===n&&Uo.isText(n)&&0===r&&1===o){var i=e.cloneRange();return i.setEndAfter(n),Cu(i)}return null}(e):t},wu=function(e,t){var n=Wa(e,t);return n.width=1,n.right=n.left+1,n},ku=function(e){var t,n,r=[],o=function(e){var t,n;0!==e.height&&(0<r.length&&(t=e,n=r[r.length-1],t.left===n.left&&t.top===n.top&&t.bottom===n.bottom&&t.right===n.right)||r.push(e))},i=function(e,t){var n=gu(e.ownerDocument);if(t<e.data.length){if(eu(e.data[t]))return r;if(eu(e.data[t-1])&&(n.setStart(e,t),n.setEnd(e,t+1),!yu(n)))return o(wu(Cu(n),!1)),r}0<t&&(n.setStart(e,t-1),n.setEnd(e,t),yu(n)||o(wu(Cu(n),!1))),t<e.data.length&&(n.setStart(e,t),n.setEnd(e,t+1),yu(n)||o(wu(Cu(n),!0)))};if(fu(e.container()))return i(e.container(),e.offset()),r;if(iu(e.container()))if(e.isAtEnd())n=pu(e.container(),e.offset()),fu(n)&&i(n,n.data.length),lu(n)&&!du(n)&&o(wu(Cu(n),!1));else{if(n=pu(e.container(),e.offset()),fu(n)&&i(n,0),lu(n)&&e.isAtEnd())return o(wu(Cu(n),!1)),r;t=pu(e.container(),e.offset()-1),lu(t)&&!du(t)&&(uu(t)||uu(n)||!lu(n))&&o(wu(Cu(t),!1)),lu(n)&&o(wu(Cu(n),!0))}return r};function xu(t,n,e){var r=function(){return e||(e=ku(xu(t,n))),e};return{container:q(t),offset:q(n),toRange:function(){var e;return(e=gu(t.ownerDocument)).setStart(t,n),e.setEnd(t,n),e},getClientRects:r,isVisible:function(){return 0<r().length},isAtStart:function(){return fu(t),0===n},isAtEnd:function(){return fu(t)?n>=t.data.length:n>=t.childNodes.length},isEqual:function(e){return e&&t===e.container()&&n===e.offset()},getNode:function(e){return pu(t,e?n-1:n)}}}(Zi=xu||(xu={})).fromRangeStart=function(e){return Zi(e.startContainer,e.startOffset)},Zi.fromRangeEnd=function(e){return Zi(e.endContainer,e.endOffset)},Zi.after=function(e){return Zi(e.parentNode,mu(e)+1)},Zi.before=function(e){return Zi(e.parentNode,mu(e))},Zi.isAbove=function(e,t){return tu([ne(t.getClientRects()),re(e.getClientRects())],Xa).getOr(!1)},Zi.isBelow=function(e,t){return tu([re(t.getClientRects()),ne(e.getClientRects())],Ya).getOr(!1)},Zi.isAtStart=function(e){return!!e&&e.isAtStart()},Zi.isAtEnd=function(e){return!!e&&e.isAtEnd()},Zi.isTextPosition=function(e){return!!e&&Uo.isText(e.container())},Zi.isElementPosition=function(e){return!1===Zi.isTextPosition(e)};var Eu,Nu,Su=xu,Tu=Uo.isText,_u=Uo.isBogus,Ru=Ei.nodeIndex,Au=function(e){var t=e.parentNode;return _u(t)?Au(t):t},Du=function(e){return e?Wt.reduce(e.childNodes,function(e,t){return _u(t)&&"BR"!==t.nodeName?e=e.concat(Du(t)):e.push(t),e},[]):[]},Bu=function(t){return function(e){return t===e}},Ou=function(e){var t,r,n,o;return(Tu(e)?"text()":e.nodeName.toLowerCase())+"["+(r=Du(Au(t=e)),n=Wt.findIndex(r,Bu(t),t),r=r.slice(0,n+1),o=Wt.reduce(r,function(e,t,n){return Tu(t)&&Tu(r[n-1])&&e++,e},0),r=Wt.filter(r,Uo.matchNodeNames(t.nodeName)),(n=Wt.findIndex(r,Bu(t),t))-o)+"]"},Pu=function(e,t){var n,r,o,i,a,u=[];return n=t.container(),r=t.offset(),Tu(n)?o=function(e,t){for(;(e=e.previousSibling)&&Tu(e);)t+=e.data.length;return t}(n,r):(r>=(i=n.childNodes).length?(o="after",r=i.length-1):o="before",n=i[r]),u.push(Ou(n)),a=function(e,t,n){var r=[];for(t=t.parentNode;!(t===e||n&&n(t));t=t.parentNode)r.push(t);return r}(e,n),a=Wt.filter(a,b(Uo.isBogus)),(u=u.concat(Wt.map(a,function(e){return Ou(e)}))).reverse().join("/")+","+o},Iu=function(e,t){var n,r,o;return t?(t=(n=t.split(","))[0].split("/"),o=1<n.length?n[1]:"before",(r=Wt.reduce(t,function(e,t){return(t=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t))?("text()"===t[1]&&(t[1]="#text"),n=e,r=t[1],o=parseInt(t[2],10),i=Du(n),i=Wt.filter(i,function(e,t){return!Tu(e)||!Tu(i[t-1])}),(i=Wt.filter(i,Uo.matchNodeNames(r)))[o]):null;var n,r,o,i},e))?Tu(r)?function(e,t){for(var n,r=e,o=0;Tu(r);){if(n=r.data.length,o<=t&&t<=o+n){e=r,t-=o;break}if(!Tu(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return Tu(e)&&t>e.data.length&&(t=e.data.length),Su(e,t)}(r,parseInt(o,10)):(o="after"===o?Ru(r)+1:Ru(r),Su(r.parentNode,o)):null):null},Lu=function(e,t){Uo.isText(t)&&0===t.data.length&&e.remove(t)},Mu=function(e,t,n){var r,o,i,a,u,s,l;Uo.isDocumentFragment(n)?(i=e,a=t,u=n,s=_.from(u.firstChild),l=_.from(u.lastChild),a.insertNode(u),s.each(function(e){return Lu(i,e.previousSibling)}),l.each(function(e){return Lu(i,e.nextSibling)})):(r=e,o=n,t.insertNode(o),Lu(r,o.previousSibling),Lu(r,o.nextSibling))},Fu=Uo.isContentEditableFalse,zu=function(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],u=r[o?"startOffset":"endOffset"],s=[],l=0,c=e.getRoot();for(Uo.isText(a)?s.push(n?function(e,t,n){var r,o;for(o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Uo.isText(r);r=r.previousSibling)o+=e(r.data).length;return o}(t,a,u):u):(u>=(i=a.childNodes).length&&i.length&&(l=1,u=Math.max(0,i.length-1)),s.push(e.nodeIndex(i[u],n)+l));a&&a!==c;a=a.parentNode)s.push(e.nodeIndex(a,n));return s},Uu=function(e,t,n){var r=0;return Jt.each(e.select(t),function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++}),r},ju=function(e,t){var n,r,o,i=t?"start":"end";n=e[i+"Container"],r=e[i+"Offset"],Uo.isElement(n)&&"TR"===n.nodeName&&(n=(o=n.childNodes)[Math.min(t?r:r-1,o.length-1)])&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r))},Vu=function(e){return ju(e,!0),ju(e,!1),e},Hu=function(e,t){var n;if(Uo.isElement(e)&&(e=Qa(e,t),Fu(e)))return e;if(Na(e)){if(Uo.isText(e)&&xa(e)&&(e=e.parentNode),n=e.previousSibling,Fu(n))return n;if(n=e.nextSibling,Fu(n))return n}},qu=function(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(Fu(r)||"IMG"===o)return{name:o,index:Uu(n.dom,o,r)};var a,u,s,l,c,f,d,m=Hu((a=i).startContainer,a.startOffset)||Hu(a.endContainer,a.endOffset);return m?{name:o=m.tagName,index:Uu(n.dom,o,m)}:(u=e,l=t,c=i,f=(s=n).dom,(d={}).start=zu(f,u,l,c,!0),s.isCollapsed()||(d.end=zu(f,u,l,c,!1)),d)},$u=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)},Wu=function(e,t){var n=e.dom,r=e.getRng(),o=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),u=a.nodeName;if("IMG"===u)return{name:u,index:Uu(n,u,a)};var s=Vu(r.cloneRange());if(!i){s.collapse(!1);var l=$u(n,o+"_end",t);Mu(n,s,l)}(r=Vu(r)).collapse(!0);var c=$u(n,o+"_start",t);return Mu(n,r,c),e.moveToBookmark({id:o,keep:1}),{id:o}},Ku={getBookmark:function(e,t,n){return 2===t?qu(Ca,n,e):3===t?(o=(r=e).getRng(),{start:Pu(r.dom.getRoot(),Su.fromRangeStart(o)),end:Pu(r.dom.getRoot(),Su.fromRangeEnd(o))}):t?{rng:e.getRng()}:Wu(e,!1);var r,o},getUndoBookmark:d(qu,$,!0),getPersistentBookmark:Wu},Xu="_mce_caret",Yu=function(e){return Uo.isElement(e)&&e.id===Xu},Gu=function(e,t){for(;t&&t!==e;){if(t.id===Xu)return t;t=t.parentNode}return null},Ju=Uo.isElement,Qu=Uo.isText,Zu=function(e){var t=e.parentNode;t&&t.removeChild(e)},es=function(e,t){0===t.length?Zu(e):e.nodeValue=t},ts=function(e){var t=Ca(e);return{count:e.length-t.length,text:t}},ns=function(e,t){return is(e),t},rs=function(e,t){var n,r,o,i=t.container(),a=(n=oe(i.childNodes),r=e,o=M(n,r),-1===o?_.none():_.some(o)).map(function(e){return e<t.offset()?Su(i,t.offset()-1):t}).getOr(t);return is(e),a},os=function(e,t){return Qu(e)&&t.container()===e?(r=t,o=ts((n=e).data.substr(0,r.offset())),i=ts(n.data.substr(r.offset())),0<(a=o.text+i.text).length?(es(n,a),Su(n,r.offset()-o.count)):r):ns(e,t);var n,r,o,i,a},is=function(e){if(Ju(e)&&Na(e)&&(Sa(e)?e.removeAttribute("data-mce-caret"):Zu(e)),Qu(e)){var t=Ca(function(e){try{return e.nodeValue}catch(e){return""}}(e));es(e,t)}},as={removeAndReposition:function(e,t){return Su.isTextPosition(t)?os(e,t):(n=e,(r=t).container()===n.parentNode?rs(n,r):ns(n,r));var n,r},remove:is},us=ir.detect().browser,ss=Uo.isContentEditableFalse,ls=function(e,t,n){var r,o,i,a,u,s=Wa(t.getBoundingClientRect(),n);return i="BODY"===e.tagName?(r=e.ownerDocument.documentElement,o=e.scrollLeft||r.scrollLeft,e.scrollTop||r.scrollTop):(u=e.getBoundingClientRect(),o=e.scrollLeft-u.left,e.scrollTop-u.top),s.left+=o,s.right+=o,s.top+=i,s.bottom+=i,s.width=1,0<(a=t.offsetWidth-t.clientWidth)&&(n&&(a*=-1),s.left+=a,s.right+=a),s},cs=function(a,u,e){var t,s,l=Vi(_.none()),c=function(){!function(e){var t,n,r,o,i;for(t=vn("*[contentEditable=false]",e),o=0;o<t.length;o++)r=(n=t[o]).previousSibling,Da(r)&&(1===(i=r.data).length?r.parentNode.removeChild(r):r.deleteData(i.length-1,1)),r=n.nextSibling,Aa(r)&&(1===(i=r.data).length?r.parentNode.removeChild(r):r.deleteData(0,1))}(a),s&&(as.remove(s),s=null),l.get().each(function(e){vn(e.caret).remove(),l.set(_.none())}),clearInterval(t)},f=function(){t=be.setInterval(function(){e()?vn("div.mce-visual-caret",a).toggleClass("mce-visual-caret-hidden"):vn("div.mce-visual-caret",a).addClass("mce-visual-caret-hidden")},500)};return{show:function(t,e){var n,r,o;if(c(),o=e,Uo.isElement(o)&&/^(TD|TH)$/i.test(o.tagName))return null;if(!u(e))return s=function(e,t){var n,r,o;if(r=e.ownerDocument.createTextNode(ba),o=e.parentNode,t){if(n=e.previousSibling,ka(n)){if(Na(n))return n;if(Da(n))return n.splitText(n.data.length-1)}o.insertBefore(r,e)}else{if(n=e.nextSibling,ka(n)){if(Na(n))return n;if(Aa(n))return n.splitText(1),n}e.nextSibling?o.insertBefore(r,e.nextSibling):o.appendChild(r)}return r}(e,t),r=e.ownerDocument.createRange(),ss(s.nextSibling)?(r.setStart(s,0),r.setEnd(s,0)):(r.setStart(s,1),r.setEnd(s,1)),r;s=Ra("p",e,t),n=ls(a,e,t),vn(s).css("top",n.top);var i=vn('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(n).appendTo(a)[0];return l.set(_.some({caret:i,element:e,before:t})),l.get().each(function(e){t&&vn(e.caret).addClass("mce-visual-caret-before")}),f(),(r=e.ownerDocument.createRange()).setStart(s,0),r.setEnd(s,0),r},hide:c,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){l.get().each(function(e){var t=ls(a,e.element,e.before);vn(e.caret).css(t)})},destroy:function(){return be.clearInterval(t)}}},fs=function(){return us.isIE()||us.isEdge()||us.isFirefox()},ds=function(e){return ss(e)||Uo.isTable(e)&&fs()},ms=Uo.isContentEditableFalse,ps=Uo.matchStyleValues("display","block table table-cell table-caption list-item"),gs=Na,hs=xa,vs=Uo.isElement,ys=ja,bs=function(e){return 0<e},Cs=function(e){return e<0},ws=function(e,t){for(var n;n=e(t);)if(!hs(n))return n;return null},ks=function(e,t,n,r,o){var i=new mo(e,r);if(Cs(t)){if((ms(e)||hs(e))&&n(e=ws(i.prev,!0)))return e;for(;e=ws(i.prev,o);)if(n(e))return e}if(bs(t)){if((ms(e)||hs(e))&&n(e=ws(i.next,!0)))return e;for(;e=ws(i.next,o);)if(n(e))return e}return null},xs=function(e,t){for(;e&&e!==t;){if(ps(e))return e;e=e.parentNode}return null},Es=function(e,t,n){return xs(e.container(),n)===xs(t.container(),n)},Ns=function(e,t){var n,r;return t?(n=t.container(),r=t.offset(),vs(n)?n.childNodes[r+e]:null):null},Ss=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},Ts=function(e,t,n){var r,o,i,a;for(o=e?"previousSibling":"nextSibling";n&&n!==t;){if(r=n[o],gs(r)&&(r=r[o]),ms(r)){if(a=n,xs(r,i=t)===xs(a,i))return r;break}if(ys(r))break;n=n.parentNode}return null},_s=d(Ss,!0),Rs=d(Ss,!1),As=function(e,t,n){var r,o,i,a,u=d(Ts,!0,t),s=d(Ts,!1,t);if(o=n.startContainer,i=n.startOffset,xa(o)){if(vs(o)||(o=o.parentNode),"before"===(a=o.getAttribute("data-mce-caret"))&&(r=o.nextSibling,ds(r)))return _s(r);if("after"===a&&(r=o.previousSibling,ds(r)))return Rs(r)}if(!n.collapsed)return n;if(Uo.isText(o)){if(gs(o)){if(1===e){if(r=s(o))return _s(r);if(r=u(o))return Rs(r)}if(-1===e){if(r=u(o))return Rs(r);if(r=s(o))return _s(r)}return n}if(Da(o)&&i>=o.data.length-1)return 1===e&&(r=s(o))?_s(r):n;if(Aa(o)&&i<=1)return-1===e&&(r=u(o))?Rs(r):n;if(i===o.data.length)return(r=s(o))?_s(r):n;if(0===i)return(r=u(o))?Rs(r):n}return n},Ds=function(e,t){return _.from(Ns(e?0:-1,t)).filter(ms)},Bs=function(e,t,n){var r=As(e,t,n);return-1===e?xu.fromRangeStart(r):xu.fromRangeEnd(r)},Os=function(e){return _.from(e.getNode()).map(ur.fromDom)},Ps=function(e,t){for(;t=e(t);)if(t.isVisible())return t;return t},Is=function(e,t){var n=Es(e,t);return!(n||!Uo.isBr(e.getNode()))||n};(Nu=Eu||(Eu={}))[Nu.Backwards=-1]="Backwards",Nu[Nu.Forwards=1]="Forwards";var Ls,Ms,Fs,zs=Uo.isContentEditableFalse,Us=Uo.isText,js=Uo.isElement,Vs=Uo.isBr,Hs=ja,qs=function(e){return Fa(e)||!!Va(t=e)&&!0!==X(oe(t.getElementsByTagName("*")),function(e,t){return e||Oa(t)},!1);var t},$s=Ha,Ws=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Ks=function(e,t){if(bs(e)){if(Hs(t.previousSibling)&&!Us(t.previousSibling))return Su.before(t);if(Us(t))return Su(t,0)}if(Cs(e)){if(Hs(t.nextSibling)&&!Us(t.nextSibling))return Su.after(t);if(Us(t))return Su(t,t.data.length)}return Cs(e)?Vs(t)?Su.before(t):Su.after(t):Su.before(t)},Xs=function(e,t,n){var r,o,i,a,u;if(!js(n)||!t)return null;if(t.isEqual(Su.after(n))&&n.lastChild){if(u=Su.after(n.lastChild),Cs(e)&&Hs(n.lastChild)&&js(n.lastChild))return Vs(n.lastChild)?Su.before(n.lastChild):u}else u=t;var s,l,c,f=u.container(),d=u.offset();if(Us(f)){if(Cs(e)&&0<d)return Su(f,--d);if(bs(e)&&d<f.length)return Su(f,++d);r=f}else{if(Cs(e)&&0<d&&(o=Ws(f,d-1),Hs(o)))return!qs(o)&&(i=ks(o,e,$s,o))?Us(i)?Su(i,i.data.length):Su.after(i):Us(o)?Su(o,o.data.length):Su.before(o);if(bs(e)&&d<f.childNodes.length&&(o=Ws(f,d),Hs(o)))return Vs(o)?(s=n,(c=(l=o).nextSibling)&&Hs(c)?Us(c)?Su(c,0):Su.before(c):Xs(Eu.Forwards,Su.after(l),s)):!qs(o)&&(i=ks(o,e,$s,o))?Us(i)?Su(i,0):Su.before(i):Us(o)?Su(o,0):Su.after(o);r=o||u.getNode()}return(bs(e)&&u.isAtEnd()||Cs(e)&&u.isAtStart())&&(r=ks(r,e,q(!0),n,!0),$s(r,n))?Ks(e,r):(o=ks(r,e,$s,n),!(a=Wt.last(j(function(e,t){for(var n=[];e&&e!==t;)n.push(e),e=e.parentNode;return n}(f,n),zs)))||o&&a.contains(o)?o?Ks(e,o):null:u=bs(e)?Su.after(a):Su.before(a))},Ys=function(t){return{next:function(e){return Xs(Eu.Forwards,e,t)},prev:function(e){return Xs(Eu.Backwards,e,t)}}},Gs=function(e){return Su.isTextPosition(e)?0===e.offset():ja(e.getNode())},Js=function(e){if(Su.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return ja(e.getNode(!0))},Qs=function(e,t){return!Su.isTextPosition(e)&&!Su.isTextPosition(t)&&e.getNode()===t.getNode(!0)},Zs=function(e,t,n){return e?!Qs(t,n)&&(r=t,!(!Su.isTextPosition(r)&&Uo.isBr(r.getNode())))&&Js(t)&&Gs(n):!Qs(n,t)&&Gs(t)&&Js(n);var r},el=function(e,t,n){var r=Ys(t);return _.from(e?r.next(n):r.prev(n))},tl=function(t,n,r){return el(t,n,r).bind(function(e){return Es(r,e,n)&&Zs(t,r,e)?el(t,n,e):_.some(e)})},nl=function(t,n,e,r){return tl(t,n,e).bind(function(e){return r(e)?nl(t,n,e,r):_.some(e)})},rl=function(e,t){var n,r,o,i,a,u=e?t.firstChild:t.lastChild;return Uo.isText(u)?_.some(Su(u,e?0:u.data.length)):u?ja(u)?_.some(e?Su.before(u):(a=u,Uo.isBr(a)?Su.before(a):Su.after(a))):(r=t,o=u,i=(n=e)?Su.before(o):Su.after(o),el(n,r,i)):_.none()},ol=d(el,!0),il=d(el,!1),al={fromPosition:el,nextPosition:ol,prevPosition:il,navigate:tl,navigateIgnore:nl,positionIn:rl,firstPositionIn:d(rl,!0),lastPositionIn:d(rl,!1)},ul=function(e,t){return!e.isBlock(t)||t.innerHTML||pe.ie||(t.innerHTML='<br data-mce-bogus="1" />'),t},sl=function(e,t){return al.lastPositionIn(e).fold(function(){return!1},function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0})},ll=function(e,t,n){return!(!1!==t.hasChildNodes()||!Gu(e,t)||(o=n,i=(r=t).ownerDocument.createTextNode(ba),r.appendChild(i),o.setStart(i,0),o.setEnd(i,0),0));var r,o,i},cl=function(e,t,n,r){var o,i,a,u,s=n[t?"start":"end"],l=e.getRoot();if(s){for(a=s[0],i=l,o=s.length-1;1<=o;o--){if(u=i.childNodes,ll(l,i,r))return!0;if(s[o]>u.length-1)return!!ll(l,i,r)||sl(i,r);i=u[s[o]]}3===i.nodeType&&(a=Math.min(s[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(s[0],i.childNodes.length)),t?r.setStart(i,a):r.setEnd(i,a)}return!0},fl=function(e){return Uo.isText(e)&&0<e.data.length},dl=function(e,t,n){var r,o,i,a,u,s,l=e.get(n.id+"_"+t),c=n.keep;if(l){if(r=l.parentNode,o="start"===t?c?l.hasChildNodes()?(r=l.firstChild,1):fl(l.nextSibling)?(r=l.nextSibling,0):fl(l.previousSibling)?(r=l.previousSibling,l.previousSibling.data.length):(r=l.parentNode,e.nodeIndex(l)+1):e.nodeIndex(l):c?l.hasChildNodes()?(r=l.firstChild,1):fl(l.previousSibling)?(r=l.previousSibling,l.previousSibling.data.length):(r=l.parentNode,e.nodeIndex(l)):e.nodeIndex(l),u=r,s=o,!c){for(a=l.previousSibling,i=l.nextSibling,Jt.each(Jt.grep(l.childNodes),function(e){Uo.isText(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))});l=e.get(n.id+"_"+t);)e.remove(l,!0);a&&i&&a.nodeType===i.nodeType&&Uo.isText(a)&&!pe.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),u=a,s=o)}return _.some(Su(u,s))}return _.none()},ml=function(e,t){var n,r,o,i,a,u,s,l,c,f,d,m,p,g,h,v,y=e.dom;if(t){if(v=t,Jt.isArray(v.start))return g=t,h=(p=y).createRng(),cl(p,!0,g,h)&&cl(p,!1,g,h)?_.some(h):_.none();if("string"==typeof t.start)return _.some((f=t,d=(c=y).createRng(),m=Iu(c.getRoot(),f.start),d.setStart(m.container(),m.offset()),m=Iu(c.getRoot(),f.end),d.setEnd(m.container(),m.offset()),d));if(t.hasOwnProperty("id"))return s=dl(o=y,"start",i=t),l=dl(o,"end",i),tu([s,(a=l,u=s,a.isSome()?a:u)],function(e,t){var n=o.createRng();return n.setStart(ul(o,e.container()),e.offset()),n.setEnd(ul(o,t.container()),t.offset()),n});if(t.hasOwnProperty("name"))return n=y,r=t,_.from(n.select(r.name)[r.index]).map(function(e){var t=n.createRng();return t.selectNode(e),t});if(t.hasOwnProperty("rng"))return _.some(t.rng)}return _.none()},pl=function(e,t,n){return Ku.getBookmark(e,t,n)},gl=function(t,e){ml(t,e).each(function(e){t.setRng(e)})},hl=function(e){return Uo.isElement(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},vl=function(e){return e&&/^(IMG)$/.test(e.nodeName)},yl=function(e){return e&&3===e.nodeType&&/^([\t \r\n]+|)$/.test(e.nodeValue)},bl=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},Cl={isInlineBlock:vl,moveStart:function(e,t,n){var r,o,i,a=n.startOffset,u=n.startContainer;if((n.startContainer!==n.endContainer||!vl(n.startContainer.childNodes[n.startOffset]))&&1===u.nodeType)for(a<(i=u.childNodes).length?r=new mo(u=i[a],e.getParent(u,e.isBlock)):(r=new mo(u=i[i.length-1],e.getParent(u,e.isBlock))).next(!0),o=r.current();o;o=r.next())if(3===o.nodeType&&!yl(o))return n.setStart(o,0),void t.setRng(n)},getNonWhiteSpaceSibling:function(e,t,n){if(e)for(t=t?"nextSibling":"previousSibling",e=n?e:e[t];e;e=e[t])if(1===e.nodeType||!yl(e))return e},isTextBlock:function(e,t){return t.nodeType&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},isValid:function(e,t,n){return e.schema.isValidChild(t,n)},isWhiteSpaceNode:yl,replaceVars:function(e,n){return"string"!=typeof e?e=e(n):n&&(e=e.replace(/%(\w+)/g,function(e,t){return n[t]||e})),e},isEq:function(e,t){return t=t||"",e=""+((e=e||"").nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},normalizeStyleValue:bl,getStyle:function(e,t,n){return bl(e,e.getStyle(t,n),n)},getTextDecoration:function(t,e){var n;return t.getParent(e,function(e){return(n=t.getStyle(e,"text-decoration"))&&"none"!==n}),n},getParents:function(e,t,n){return e.getParents(t,n,e.getRoot())}},wl=hl,kl=Cl.getParents,xl=Cl.isWhiteSpaceNode,El=Cl.isTextBlock,Nl=function(e,t){for(void 0===t&&(t=3===e.nodeType?e.length:e.childNodes.length);e&&e.hasChildNodes();)(e=e.childNodes[t])&&(t=3===e.nodeType?e.length:e.childNodes.length);return{node:e,offset:t}},Sl=function(e,t){for(var n=t;n;){if(1===n.nodeType&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},Tl=function(e,t,n,r){var o,i,a=n.nodeValue;return void 0===r&&(r=e?a.length:0),e?(o=a.lastIndexOf(" ",r),-1!==(o=(i=a.lastIndexOf(" ",r))<o?o:i)&&!t&&(o<r||!e)&&o<=a.length&&o++):(o=a.indexOf(" ",r),i=a.indexOf(" ",r),o=-1!==o&&(-1===i||o<i)?o:i),o},_l=function(e,t,n,r,o,i){var a,u,s,l;if(3===n.nodeType){if(-1!==(s=Tl(o,i,n,r)))return{container:n,offset:s};l=n}for(a=new mo(n,e.getParent(n,e.isBlock)||t);u=a[o?"prev":"next"]();)if(3!==u.nodeType||wl(u.parentNode)){if(e.isBlock(u)||Cl.isEq(u,"BR"))break}else if(-1!==(s=Tl(o,i,l=u)))return{container:u,offset:s};if(l)return{container:l,offset:r=o?0:l.length}},Rl=function(e,t,n,r,o){var i,a,u,s;for(3===r.nodeType&&0===r.nodeValue.length&&r[o]&&(r=r[o]),i=kl(e,r),a=0;a<i.length;a++)for(u=0;u<t.length;u++)if(!("collapsed"in(s=t[u])&&s.collapsed!==n.collapsed)&&e.is(i[a],s.selector))return i[a];return r},Al=function(t,e,n,r){var o,i=t.dom,a=i.getRoot();if(e[0].wrapper||(o=i.getParent(n,e[0].block,a)),!o){var u=i.getParent(n,"LI,TD,TH");o=i.getParent(3===n.nodeType?n.parentNode:n,function(e){return e!==a&&El(t,e)},u)}if(o&&e[0].wrapper&&(o=kl(i,o,"ul,ol").reverse()[0]||o),!o)for(o=n;o[r]&&!i.isBlock(o[r])&&(o=o[r],!Cl.isEq(o,"br")););return o||n},Dl=function(e,t,n,r,o,i,a){var u,s,l,c,f,d;if(u=s=a?n:o,c=a?"previousSibling":"nextSibling",f=e.getRoot(),3===u.nodeType&&!xl(u)&&(a?0<r:i<u.nodeValue.length))return u;for(;;){if(!t[0].block_expand&&e.isBlock(s))return s;for(l=s[c];l;l=l[c])if(!wl(l)&&!xl(l)&&("BR"!==(d=l).nodeName||!d.getAttribute("data-mce-bogus")||d.nextSibling))return s;if(s===f||s.parentNode===f){u=s;break}s=s.parentNode}return u},Bl=function(e,t,n,r){var o,i=t.startContainer,a=t.startOffset,u=t.endContainer,s=t.endOffset,l=e.dom;return 1===i.nodeType&&i.hasChildNodes()&&3===(i=Qa(i,a)).nodeType&&(a=0),1===u.nodeType&&u.hasChildNodes()&&3===(u=Qa(u,t.collapsed?s:s-1)).nodeType&&(s=u.nodeValue.length),i=Sl(l,i),u=Sl(l,u),(wl(i.parentNode)||wl(i))&&(i=wl(i)?i:i.parentNode,3===(i=t.collapsed?i.previousSibling||i:i.nextSibling||i).nodeType&&(a=t.collapsed?i.length:0)),(wl(u.parentNode)||wl(u))&&(u=wl(u)?u:u.parentNode,3===(u=t.collapsed?u.nextSibling||u:u.previousSibling||u).nodeType&&(s=t.collapsed?0:u.length)),t.collapsed&&((o=_l(l,e.getBody(),i,a,!0,r))&&(i=o.container,a=o.offset),(o=_l(l,e.getBody(),u,s,!1,r))&&(u=o.container,s=o.offset)),n[0].inline&&(u=r?u:function(e,t){var n=Nl(e,t);if(n.node){for(;n.node&&0===n.offset&&n.node.previousSibling;)n=Nl(n.node.previousSibling);n.node&&0<n.offset&&3===n.node.nodeType&&" "===n.node.nodeValue.charAt(n.offset-1)&&1<n.offset&&(e=n.node).splitText(n.offset-1)}return e}(u,s)),(n[0].inline||n[0].block_expand)&&(n[0].inline&&3===i.nodeType&&0!==a||(i=Dl(l,n,i,a,u,s,!0)),n[0].inline&&3===u.nodeType&&s!==u.nodeValue.length||(u=Dl(l,n,i,a,u,s,!1))),n[0].selector&&!1!==n[0].expand&&!n[0].inline&&(i=Rl(l,n,t,i,"previousSibling"),u=Rl(l,n,t,u,"nextSibling")),(n[0].block||n[0].selector)&&(i=Al(e,n,i,"previousSibling"),u=Al(e,n,u,"nextSibling"),n[0].block&&(l.isBlock(i)||(i=Dl(l,n,i,a,u,s,!0)),l.isBlock(u)||(u=Dl(l,n,i,a,u,s,!1)))),1===i.nodeType&&(a=l.nodeIndex(i),i=i.parentNode),1===u.nodeType&&(s=l.nodeIndex(u)+1,u=u.parentNode),{startContainer:i,startOffset:a,endContainer:u,endOffset:s}},Ol=Jt.each,Pl=function(e,t,o){var n,r,i,a,u,s,l,c=t.startContainer,f=t.startOffset,d=t.endContainer,m=t.endOffset;if(0<(l=e.select("td[data-mce-selected],th[data-mce-selected]")).length)Ol(l,function(e){o([e])});else{var p,g,h,v=function(e){var t;return 3===(t=e[0]).nodeType&&t===c&&f>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===m&&0<e.length&&t===d&&3===t.nodeType&&e.splice(e.length-1,1),e},y=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},b=function(e,t){do{if(e.parentNode===t)return e;e=e.parentNode}while(e)},C=function(e,t,n){var r=n?"nextSibling":"previousSibling";for(u=(a=e).parentNode;a&&a!==t;a=u)u=a.parentNode,(s=y(a===e?a:a[r],r)).length&&(n||s.reverse(),o(v(s)))};if(1===c.nodeType&&c.hasChildNodes()&&(c=c.childNodes[f]),1===d.nodeType&&d.hasChildNodes()&&(g=m,h=(p=d).childNodes,--g>h.length-1?g=h.length-1:g<0&&(g=0),d=h[g]||p),c===d)return o(v([c]));for(n=e.findCommonAncestor(c,d),a=c;a;a=a.parentNode){if(a===d)return C(c,n,!0);if(a===n)break}for(a=d;a;a=a.parentNode){if(a===c)return C(d,n);if(a===n)break}r=b(c,n)||c,i=b(d,n)||d,C(c,r,!0),(s=y(r===c?r:r.nextSibling,"nextSibling",i===d?i.nextSibling:i)).length&&o(v(s)),C(d,i)}},Il=(Ls=pr,Ms="text",{get:function(e){if(!Ls(e))throw new Error("Can only get "+Ms+" value of a "+Ms+" node");return Fs(e).getOr("")},getOption:Fs=function(e){return Ls(e)?_.from(e.dom().nodeValue):_.none()},set:function(e,t){if(!Ls(e))throw new Error("Can only set raw "+Ms+" value of a "+Ms+" node");e.dom().nodeValue=t}}),Ll=function(e){return Il.get(e)},Ml=function(r,o,i,a){return jr(o).fold(function(){return"skipping"},function(e){return"br"===a||pr(n=o)&&"\ufeff"===Ll(n)?"valid":mr(t=o)&&Yi(t,ia())?"existing":Yu(o)?"caret":Cl.isValid(r,i,a)&&Cl.isValid(r,fr(e),i)?"valid":"invalid-child";var t,n})},Fl=function(e,t,n,r){var o,i,a=t.uid,u=void 0===a?(o="mce-annotation",i=(new Date).getTime(),o+"_"+Math.floor(1e9*Math.random())+ ++da+String(i)):a,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["uid"]),l=ur.fromTag("span",e);Ki(l,ia()),wr(l,""+ua(),u),wr(l,""+aa(),n);var c,f=r(u,s),d=f.attributes,m=void 0===d?{}:d,p=f.classes,g=void 0===p?[]:p;return kr(l,m),c=l,U(g,function(e){Ki(c,e)}),l},zl=function(i,e,t,n,r){var a=[],u=Fl(i.getDoc(),r,t,n),s=Vi(_.none()),l=function(){s.set(_.none())},c=function(e){U(e,o)},o=function(e){var t,n;switch(Ml(i,e,"span",fr(e))){case"invalid-child":l();var r=Wr(e);c(r),l();break;case"valid":var o=s.get().getOrThunk(function(){var e=pa(u);return a.push(e),s.set(_.some(e)),e});Oi(t=e,n=o),Li(n,t)}};return Pl(i.dom,e,function(e){var t;l(),t=W(e,ur.fromDom),c(t)}),a},Ul=function(s,l,c,f){s.undoManager.transact(function(){var e,t,n,r,o=s.selection.getRng();if(o.collapsed&&(r=Bl(e=s,t=o,[{inline:!0}],3===(n=t).startContainer.nodeType&&n.startContainer.nodeValue.length>=n.startOffset&&" "===n.startContainer.nodeValue[n.startOffset]),t.setStart(r.startContainer,r.startOffset),t.setEnd(r.endContainer,r.endOffset),e.selection.setRng(t)),s.selection.getRng().collapsed){var i=Fl(s.getDoc(),f,l,c.decorate);ha(i," "),s.selection.getRng().insertNode(i.dom()),s.selection.select(i.dom())}else{var a=Ku.getPersistentBookmark(s.selection,!1),u=s.selection.getRng();zl(s,u,l,c.decorate,f),s.selection.moveToBookmark(a)}})};function jl(s){var n,r=(n={},{register:function(e,t){n[e]={name:e,settings:t}},lookup:function(e){return n.hasOwnProperty(e)?_.from(n[e]).map(function(e){return e.settings}):_.none()}});fa(s,r);var o=ca(s);return{register:function(e,t){r.register(e,t)},annotate:function(t,n){r.lookup(t).each(function(e){Ul(s,t,e,n)})},annotationChanged:function(e,t){o.addListener(e,t)},remove:function(e){sa(s,_.some(e)).each(function(e){var t=e.elements;U(t,Ui)})},getAll:function(e){var t,n,r,o,i,a,u=(t=s,n=e,r=ur.fromDom(t.getBody()),o=Ji(r,"["+aa()+'="'+n+'"]'),i={},U(o,function(e){var t=xr(e,ua()),n=i.hasOwnProperty(t)?i[t]:[];i[t]=n.concat([e])}),i);return a=function(e){return W(e,function(e){return e.dom()})},yr(u,function(e,t,n){return{k:t,v:a(e,t,n)}})}}}var Vl=function(e){return Jt.grep(e.childNodes,function(e){return"LI"===e.nodeName})},Hl=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&(" "===(t=e.firstChild).data||Uo.isBr(t));var t},ql=function(e){return 0<e.length&&(!(t=e[e.length-1]).firstChild||Hl(t))?e.slice(0,-1):e;var t},$l=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},Wl=function(e,t){var n=Su.after(e),r=Ys(t).prev(n);return r?r.toRange():null},Kl=function(t,e,n){var r,o,i,a,u=t.parentNode;return Jt.each(e,function(e){u.insertBefore(e,t)}),r=t,o=n,i=Su.before(r),(a=Ys(o).next(i))?a.toRange():null},Xl=function(e,t){var n,r,o,i,a,u,s=t.firstChild,l=t.lastChild;return s&&"meta"===s.name&&(s=s.next),l&&"mce_marker"===l.attr("id")&&(l=l.prev),r=l,u=(n=e).getNonEmptyElements(),r&&(r.isEmpty(u)||(o=r,n.getBlockElements()[o.name]&&(a=o).firstChild&&a.firstChild===a.lastChild&&("br"===(i=o.firstChild).name||" "===i.value)))&&(l=l.prev),!(!s||s!==l||"ul"!==s.name&&"ol"!==s.name)},Yl=function(e,o,i,t){var n,r,a,u,s,l,c,f,d,m,p,g,h,v,y,b,C,w,k,x=(n=o,r=t,l=e.serialize(r),c=n.createFragment(l),u=(a=c).firstChild,s=a.lastChild,u&&"META"===u.nodeName&&u.parentNode.removeChild(u),s&&"mce_marker"===s.id&&s.parentNode.removeChild(s),a),E=$l(o,i.startContainer),N=ql(Vl(x.firstChild)),S=o.getRoot(),T=function(e){var t=Su.fromRangeStart(i),n=Ys(o.getRoot()),r=1===e?n.prev(t):n.next(t);return!r||$l(o,r.getNode())!==E};return T(1)?Kl(E,N,S):T(2)?(f=E,d=N,m=S,o.insertAfter(d.reverse(),f),Wl(d[0],m)):(g=N,h=S,v=p=E,b=(y=i).cloneRange(),C=y.cloneRange(),b.setStartBefore(v),C.setEndAfter(v),w=[b.cloneContents(),C.cloneContents()],(k=p.parentNode).insertBefore(w[0],p),Jt.each(g,function(e){k.insertBefore(e,p)}),k.insertBefore(w[1],p),k.removeChild(p),Wl(g[g.length-1],h))},Gl=function(e,t){return!!$l(e,t)},Jl=Jt.each,Ql=function(o){this.compare=function(e,t){if(e.nodeName!==t.nodeName)return!1;var n=function(n){var r={};return Jl(o.getAttribs(n),function(e){var t=e.nodeName.toLowerCase();0!==t.indexOf("_")&&"style"!==t&&0!==t.indexOf("data-")&&(r[t]=o.getAttrib(n,t))}),r},r=function(e,t){var n,r;for(r in e)if(e.hasOwnProperty(r)){if(void 0===(n=t[r]))return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(t.hasOwnProperty(r))return!1;return!0};return!(!r(n(e),n(t))||!r(o.parseStyle(o.getAttrib(e,"style")),o.parseStyle(o.getAttrib(t,"style")))||hl(e)||hl(t))}},Zl=function(e){var t=Ji(e,"br"),n=j(function(e){for(var t=[],n=e.dom();n;)t.push(ur.fromDom(n)),n=n.lastChild;return t}(e).slice(-1),wo);t.length===n.length&&U(n,zi)},ec=function(e){Fi(e),Li(e,ur.fromHtml('<br data-mce-bogus="1">'))},tc=function(n){Yr(n).each(function(t){Vr(t).each(function(e){bo(n)&&wo(t)&&bo(e)&&zi(t)})})},nc=Jt.makeMap;function rc(e){var u,s,l,c,f,d=[];return u=(e=e||{}).indent,s=nc(e.indent_before||""),l=nc(e.indent_after||""),c=ei.getEncodeFunc(e.entity_encoding||"raw",e.entities),f="html"===e.element_format,{start:function(e,t,n){var r,o,i,a;if(u&&s[e]&&0<d.length&&0<(a=d[d.length-1]).length&&"\n"!==a&&d.push("\n"),d.push("<",e),t)for(r=0,o=t.length;r<o;r++)i=t[r],d.push(" ",i.name,'="',c(i.value,!0),'"');d[d.length]=!n||f?">":" />",n&&u&&l[e]&&0<d.length&&0<(a=d[d.length-1]).length&&"\n"!==a&&d.push("\n")},end:function(e){var t;d.push("</",e,">"),u&&l[e]&&0<d.length&&0<(t=d[d.length-1]).length&&"\n"!==t&&d.push("\n")},text:function(e,t){0<e.length&&(d[d.length]=t?e:c(e))},cdata:function(e){d.push("<![CDATA[",e,"]]>")},comment:function(e){d.push("\x3c!--",e,"--\x3e")},pi:function(e,t){t?d.push("<?",e," ",c(t),"?>"):d.push("<?",e,"?>"),u&&d.push("\n")},doctype:function(e){d.push("<!DOCTYPE",e,">",u?"\n":"")},reset:function(){d.length=0},getContent:function(){return d.join("").replace(/\n$/,"")}}}function oc(t,p){void 0===p&&(p=fi());var g=rc(t);return(t=t||{}).validate=!("validate"in t)||t.validate,{serialize:function(e){var f,d;d=t.validate,f={3:function(e){g.text(e.value,e.raw)},8:function(e){g.comment(e.value)},7:function(e){g.pi(e.name,e.value)},10:function(e){g.doctype(e.value)},4:function(e){g.cdata(e.value)},11:function(e){if(e=e.firstChild)for(;m(e),e=e.next;);}},g.reset();var m=function(e){var t,n,r,o,i,a,u,s,l,c=f[e.type];if(c)c(e);else{if(t=e.name,n=e.shortEnded,r=e.attributes,d&&r&&1<r.length&&((a=[]).map={},l=p.getElementRule(e.name))){for(u=0,s=l.attributesOrder.length;u<s;u++)(o=l.attributesOrder[u])in r.map&&(i=r.map[o],a.map[o]=i,a.push({name:o,value:i}));for(u=0,s=r.length;u<s;u++)(o=r[u].name)in a.map||(i=r.map[o],a.map[o]=i,a.push({name:o,value:i}));r=a}if(g.start(e.name,r,n),!n){if(e=e.firstChild)for(;m(e),e=e.next;);g.end(t)}}};return 1!==e.type||t.inner?f[11](e):m(e),g.getContent()}}}var ic,ac=function(a){var u=Su.fromRangeStart(a),s=Su.fromRangeEnd(a),l=a.commonAncestorContainer;return al.fromPosition(!1,l,s).map(function(e){return!Es(u,s,l)&&Es(u,e,l)?(t=u.container(),n=u.offset(),r=e.container(),o=e.offset(),(i=V.document.createRange()).setStart(t,n),i.setEnd(r,o),i):a;var t,n,r,o,i}).getOr(a)},uc=function(e){return e.collapsed?e:ac(e)},sc=Uo.matchNodeNames("td th"),lc=function(e,t){var n,r,o=e.selection.getRng(),i=o.startContainer,a=o.startOffset;o.collapsed&&(n=i,r=a,Uo.isText(n)&&" "===n.nodeValue[r-1])&&Uo.isText(i)&&(i.insertData(a-1," "),i.deleteData(a,1),o.setStart(i,a),o.setEnd(i,a),e.selection.setRng(o)),e.selection.setContent(t)},cc=function(e,t,n){var r,o,i,a,u,s,l,c,f,d,m,p=e.selection,g=e.dom;if(/^ | $/.test(t)&&(t=function(e,t){var n,r;n=e.startContainer,r=e.startOffset;var o=function(e){return n[e]&&3===n[e].nodeType};return 3===n.nodeType&&(0<r?t=t.replace(/^&nbsp;/," "):o("previousSibling")||(t=t.replace(/^ /,"&nbsp;")),r<n.length?t=t.replace(/&nbsp;(<br>|)$/," "):o("nextSibling")||(t=t.replace(/(&nbsp;| )(<br>|)$/,"&nbsp;"))),t}(p.getRng(),t)),r=e.parser,m=n.merge,o=oc({validate:e.settings.validate},e.schema),d='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;&#x200B;</span>',s={content:t,format:"html",selection:!0,paste:n.paste},(s=e.fire("BeforeSetContent",s)).isDefaultPrevented())e.fire("SetContent",{content:s.content,format:"html",selection:!0,paste:n.paste});else{-1===(t=s.content).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,d);var h,v,y,b,C,w,k=(c=p.getRng()).startContainer||(c.parentElement?c.parentElement():null),x=e.getBody();k===x&&p.isCollapsed()&&g.isBlock(x.firstChild)&&(h=e,(v=x.firstChild)&&!h.schema.getShortEndedElements()[v.nodeName])&&g.isEmpty(x.firstChild)&&((c=g.createRng()).setStart(x.firstChild,0),c.setEnd(x.firstChild,0),p.setRng(c)),p.isCollapsed()||(e.selection.setRng(uc(e.selection.getRng())),e.getDoc().execCommand("Delete",!1,null),y=e.selection.getRng(),b=t,C=y.startContainer,w=y.startOffset,3===C.nodeType&&y.collapsed&&(" "===C.data[w]?(C.deleteData(w,1),/[\u00a0| ]$/.test(b)||(b+=" ")):" "===C.data[w-1]&&(C.deleteData(w-1,1),/[\u00a0| ]$/.test(b)||(b=" "+b))),t=b);var E,N,S,T={context:(i=p.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0};if(u=r.parse(t,T),!0===n.paste&&Xl(e.schema,u)&&Gl(g,i))return c=Yl(o,g,e.selection.getRng(),u),e.selection.setRng(c),void e.fire("SetContent",s);if(function(e){for(var t=e;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")}(u),"mce_marker"===(f=u.lastChild).attr("id"))for(f=(l=f).prev;f;f=f.walk(!0))if(3===f.type||!g.isBlock(f.name)){e.schema.isValidChild(f.parent.name,"span")&&f.parent.insert(l,f,"br"===f.name);break}if(e._selectionOverrides.showBlockCaretContainer(i),T.invalid){for(lc(e,d),i=p.getNode(),a=e.getBody(),9===i.nodeType?i=f=a:f=i;f!==a;)f=(i=f).parentNode;t=i===a?a.innerHTML:g.getOuterHTML(i),t=o.serialize(r.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return o.serialize(u)}))),i===a?g.setHTML(a,t):g.setOuterHTML(i,t)}else!function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):lc(e,t)}}(e,t=o.serialize(u),i);!function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=new Ql(r);Jt.each(r.select("*[data-mce-fragment]"),function(e){for(var t=e.parentNode;t&&t!==o;t=t.parentNode)n[e.nodeName.toLowerCase()]&&i.compare(t,e)&&r.remove(e,!0)})}}(e,m),function(n,e){var t,r,o,i,a,u=n.dom,s=n.selection;if(e){if(n.selection.scrollIntoView(e),t=function(e){for(var t=n.getBody();e&&e!==t;e=e.parentNode)if("false"===n.dom.getContentEditable(e))return e;return null}(e))return u.remove(e),s.select(t);var l=u.createRng();(i=e.previousSibling)&&3===i.nodeType?(l.setStart(i,i.nodeValue.length),pe.ie||(a=e.nextSibling)&&3===a.nodeType&&(i.appendData(a.data),a.parentNode.removeChild(a))):(l.setStartBefore(e),l.setEndBefore(e)),r=u.getParent(e,u.isBlock),u.remove(e),r&&u.isEmpty(r)&&(n.$(r).empty(),l.setStart(r,0),l.setEnd(r,0),sc(r)||r.getAttribute("data-mce-fragment")||!(o=function(e){var t=Su.fromRangeStart(e);if(t=Ys(n.getBody()).next(t))return t.toRange()}(l))?u.add(r,u.create("br",{"data-mce-bogus":"1"})):(l=o,u.remove(r))),s.setRng(l)}}(e,g.get("mce_marker")),E=e.getBody(),Jt.each(E.getElementsByTagName("*"),function(e){e.removeAttribute("data-mce-fragment")}),N=e.dom,S=e.selection.getStart(),_.from(N.getParent(S,"td,th")).map(ur.fromDom).each(tc),e.fire("SetContent",s),e.addVisual()}},fc=function(e,t){var n,r,o="string"!=typeof(n=t)?(r=Jt.extend({paste:n.paste,data:{paste:n.paste}},n),{content:n.content,details:r}):{content:n,details:{}};cc(e,o.content,o.details)},dc=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,mc=function(e,t,n){var r=e.getParam(t,n);if(-1===r.indexOf("="))return r;var o=e.getParam(t,"","hash");return o.hasOwnProperty(e.id)?o[e.id]:n},pc=function(e){return e.getParam("iframe_attrs",{})},gc=function(e){return e.getParam("doctype","<!DOCTYPE html>")},hc=function(e){return e.getParam("document_base_url","")},vc=function(e){return mc(e,"body_id","tinymce")},yc=function(e){return mc(e,"body_class","")},bc=function(e){return e.getParam("content_security_policy","")},Cc=function(e){return e.getParam("br_in_pre",!0)},wc=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":t},kc=function(e){return e.getParam("forced_root_block_attrs",{})},xc=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},Ec=function(e){return e.getParam("no_newline_selector","")},Nc=function(e){return e.getParam("keep_styles",!0)},Sc=function(e){return e.getParam("end_container_on_empty_block",!1)},Tc=function(e){return Jt.explode(e.getParam("font_size_style_values",""))},_c=function(e){return Jt.explode(e.getParam("font_size_classes",""))},Rc=function(e){return e.getParam("images_dataimg_filter",q(!0),"function")},Ac=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Dc=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Bc=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Oc=function(e){return e.getParam("images_upload_url","","string")},Pc=function(e){return e.getParam("images_upload_base_path","","string")},Ic=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Lc=function(e){return e.getParam("images_upload_handler",null,"function")},Mc=function(e){return e.getParam("content_css_cors",!1,"boolean")},Fc=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},zc=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?Ea(n)?Uo.isText(n.nextSibling)?Su(n.nextSibling,0):Su.after(n):Ta(t)?Su(n,r+1):t:Ea(n)?Uo.isText(n.previousSibling)?Su(n.previousSibling,n.previousSibling.data.length):Su.before(n):_a(t)?Su(n,r-1):t},Uc={isInlineTarget:function(e,t){return Ir(ur.fromDom(t),Fc(e))},findRootInline:function(e,t,n){var r,o,i,a=(r=e,o=t,i=n,j(Ei.DOM.getParents(i.container(),"*",o),r));return _.from(a[a.length-1])},isRtl:function(e){return"rtl"===Ei.DOM.getStyle(e,"direction",!0)||(t=e.textContent,dc.test(t));var t},isAtZwsp:function(e){return Ta(e)||_a(e)},normalizePosition:zc,normalizeForwards:d(zc,!0),normalizeBackwards:d(zc,!1),hasSameParentBlock:function(e,t,n){var r=xs(t,e),o=xs(n,e);return r&&r===o}},jc=function(e,t){return Fr(e,t)?ta(t,function(e){return ko(e)||Eo(e)},(n=e,function(e){return Mr(n,ur.fromDom(e.dom().parentNode))})):_.none();var n},Vc=function(e){var t,n,r;e.dom.isEmpty(e.getBody())&&(e.setContent(""),n=(t=e).getBody(),r=n.firstChild&&t.dom.isBlock(n.firstChild)?n.firstChild:n,t.selection.setCursorLocation(r,0))},Hc=function(i,a,u){return tu([al.firstPositionIn(u),al.lastPositionIn(u)],function(e,t){var n=Uc.normalizePosition(!0,e),r=Uc.normalizePosition(!1,t),o=Uc.normalizePosition(!1,a);return i?al.nextPosition(u,o).map(function(e){return e.isEqual(r)&&a.isEqual(n)}).getOr(!1):al.prevPosition(u,o).map(function(e){return e.isEqual(n)&&a.isEqual(r)}).getOr(!1)}).getOr(!0)},qc=function(e,t){var n,r,o,i=ur.fromDom(e),a=ur.fromDom(t);return n=a,r="pre,code",o=d(Mr,i),na(n,r,o).isSome()},$c=function(e,t){return ja(t)&&!1===(r=e,o=t,Uo.isText(o)&&/^[ \t\r\n]*$/.test(o.data)&&!1===qc(r,o))||(n=t,Uo.isElement(n)&&"A"===n.nodeName&&n.hasAttribute("name"))||Wc(t);var n,r,o},Wc=Uo.hasAttribute("data-mce-bookmark"),Kc=Uo.hasAttribute("data-mce-bogus"),Xc=Uo.hasAttributeValue("data-mce-bogus","all"),Yc=function(e){return function(e){var t,n,r=0;if($c(e,e))return!1;if(!(n=e.firstChild))return!0;t=new mo(n,e);do{if(Xc(n))n=t.next(!0);else if(Kc(n))n=t.next();else if(Uo.isBr(n))r++,n=t.next();else{if($c(e,n))return!1;n=t.next()}}while(n);return r<=1}(e.dom())},Gc=_r("block","position"),Jc=_r("from","to"),Qc=function(e,t){var n=ur.fromDom(e),r=ur.fromDom(t.container());return jc(n,r).map(function(e){return Gc(e,t)})},Zc=function(o,i,e){var t=Qc(o,Su.fromRangeStart(e)),n=t.bind(function(e){return al.fromPosition(i,o,e.position()).bind(function(e){return Qc(o,e).map(function(e){return t=o,n=i,r=e,Uo.isBr(r.position().getNode())&&!1===Yc(r.block())?al.positionIn(!1,r.block().dom()).bind(function(e){return e.isEqual(r.position())?al.fromPosition(n,t,e).bind(function(e){return Qc(t,e)}):_.some(r)}).getOr(r):r;var t,n,r})})});return tu([t,n],Jc).filter(function(e){return!1===Mr((r=e).from().block(),r.to().block())&&jr((n=e).from().block()).bind(function(t){return jr(n.to().block()).filter(function(e){return Mr(t,e)})}).isSome()&&(t=e,!1===Uo.isContentEditableFalse(t.from().block())&&!1===Uo.isContentEditableFalse(t.to().block()));var t,n,r})},ef=function(e,t,n){return n.collapsed?Zc(e,t,n):_.none()},tf=function(e,t,n){return Fr(t,e)?function(e,t){for(var n=P(t)?t:C,r=e.dom(),o=[];null!==r.parentNode&&void 0!==r.parentNode;){var i=r.parentNode,a=ur.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o}(e,function(e){return n(e)||Mr(e,t)}).slice(0,-1):[]},nf=function(e,t){return tf(e,t,q(!1))},rf=nf,of=function(e,t){return[e].concat(nf(e,t))},af=function(e){var t,n=(t=Wr(e),G(t,bo).fold(function(){return t},function(e){return t.slice(0,e)}));return U(n,zi),n},uf=function(e,t){var n=of(t,e);return Y(n.reverse(),Yc).each(zi)},sf=function(e,t,n,r){if(Yc(n))return ec(n),al.firstPositionIn(n.dom());0===j(qr(r),function(e){return!Yc(e)}).length&&Yc(t)&&Oi(r,ur.fromTag("br"));var o=al.prevPosition(n.dom(),Su.before(r.dom()));return U(af(t),function(e){Oi(r,e)}),uf(e,t),o},lf=function(e,t,n){if(Yc(n))return zi(n),Yc(t)&&ec(t),al.firstPositionIn(t.dom());var r=al.lastPositionIn(n.dom());return U(af(t),function(e){Li(n,e)}),uf(e,t),r},cf=function(e,t){return Fr(t,e)?(n=of(e,t),_.from(n[n.length-1])):_.none();var n},ff=function(e,t){al.positionIn(e,t.dom()).map(function(e){return e.getNode()}).map(ur.fromDom).filter(wo).each(zi)},df=function(e,t,n){return ff(!0,t),ff(!1,n),cf(t,n).fold(d(lf,e,t,n),d(sf,e,t,n))},mf=function(e,t,n,r){return t?df(e,r,n):df(e,n,r)},pf=function(t,n){var e,r=ur.fromDom(t.getBody());return(e=ef(r.dom(),n,t.selection.getRng()).bind(function(e){return mf(r,n,e.from().block(),e.to().block())})).each(function(e){t.selection.setRng(e.toRange())}),e.isSome()},gf=function(e,t){var n=ur.fromDom(t),r=d(Mr,e);return ea(n,To,r).isSome()},hf=function(e,t){var n,r,o=al.prevPosition(e.dom(),Su.fromRangeStart(t)).isNone(),i=al.nextPosition(e.dom(),Su.fromRangeEnd(t)).isNone();return!(gf(n=e,(r=t).startContainer)||gf(n,r.endContainer))&&o&&i},vf=function(e){var n,r,o,t,i=ur.fromDom(e.getBody()),a=e.selection.getRng();return hf(i,a)?((t=e).setContent(""),t.selection.setCursorLocation(),!0):(n=i,r=e.selection,o=r.getRng(),tu([jc(n,ur.fromDom(o.startContainer)),jc(n,ur.fromDom(o.endContainer))],function(e,t){return!1===Mr(e,t)&&(o.deleteContents(),mf(n,!0,e,t).each(function(e){r.setRng(e.toRange())}),!0)}).getOr(!1))},yf=function(e,t){return!e.selection.isCollapsed()&&vf(e)},bf=function(a){if(!D(a))throw new Error("cases must be an array");if(0===a.length)throw new Error("there must be at least one case");var u=[],n={};return U(a,function(e,r){var t=gr(e);if(1!==t.length)throw new Error("one and only one name per case");var o=t[0],i=e[o];if(void 0!==n[o])throw new Error("duplicate key detected:"+o);if("cata"===o)throw new Error("cannot have a case named cata (sorry)");if(!D(i))throw new Error("case arguments must be an array");u.push(o),n[o]=function(){var e=arguments.length;if(e!==i.length)throw new Error("Wrong number of arguments to case "+o+". Expected "+i.length+" ("+i+"), got "+e);for(var n=new Array(e),t=0;t<n.length;t++)n[t]=arguments[t];return{fold:function(){if(arguments.length!==a.length)throw new Error("Wrong number of arguments to fold. Expected "+a.length+", got "+arguments.length);return arguments[r].apply(null,n)},match:function(e){var t=gr(e);if(u.length!==t.length)throw new Error("Wrong number of arguments to match. Expected: "+u.join(",")+"\nActual: "+t.join(","));if(!ee(u,function(e){return F(t,e)}))throw new Error("Not all branches were specified when using match. Specified: "+t.join(", ")+"\nRequired: "+u.join(", "));return e[o].apply(null,n)},log:function(e){V.console.log(e,{constructors:u,constructor:o,params:n})}}}}),n},Cf=function(e){return Os(e).exists(wo)},wf=function(e,t,n){var r=j(of(ur.fromDom(n.container()),t),bo),o=ne(r).getOr(t);return al.fromPosition(e,o.dom(),n).filter(Cf)},kf=function(e,t){return Os(t).exists(wo)||wf(!0,e,t).isSome()},xf=function(e,t){return(n=t,_.from(n.getNode(!0)).map(ur.fromDom)).exists(wo)||wf(!1,e,t).isSome();var n},Ef=d(wf,!1),Nf=d(wf,!0),Sf=(ic=" ",function(e){return ic===e}),Tf=function(e){return/^[\r\n\t ]$/.test(e)},_f=function(e){return!Tf(e)&&!Sf(e)},Rf=function(n,r,o){return _.from(o.container()).filter(Uo.isText).exists(function(e){var t=n?0:-1;return r(e.data.charAt(o.offset()+t))})},Af=d(Rf,!0,Tf),Df=d(Rf,!1,Tf),Bf=function(e){var t=e.container();return Uo.isText(t)&&0===t.data.length},Of=function(e,t){var n=Ns(e,t);return Uo.isContentEditableFalse(n)&&!Uo.isBogusAll(n)},Pf=d(Of,0),If=d(Of,-1),Lf=function(e,t){return Uo.isTable(Ns(e,t))},Mf=d(Lf,0),Ff=d(Lf,-1),zf=bf([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),Uf=function(e,t,n,r){var o=r.getNode(!1===t);return jc(ur.fromDom(e),ur.fromDom(n.getNode())).map(function(e){return Yc(e)?zf.remove(e.dom()):zf.moveToElement(o)}).orThunk(function(){return _.some(zf.moveToElement(o))})},jf=function(u,s,l){return al.fromPosition(s,u,l).bind(function(e){return a=e.getNode(),To(ur.fromDom(a))||Eo(ur.fromDom(a))?_.none():(t=u,o=e,i=function(e){return Co(ur.fromDom(e))&&!Es(r,o,t)},Ds(!(n=s),r=l).fold(function(){return Ds(n,o).fold(q(!1),i)},i)?_.none():s&&Uo.isContentEditableFalse(e.getNode())?Uf(u,s,l,e):!1===s&&Uo.isContentEditableFalse(e.getNode(!0))?Uf(u,s,l,e):s&&If(l)?_.some(zf.moveToPosition(e)):!1===s&&Pf(l)?_.some(zf.moveToPosition(e)):_.none());var t,n,r,o,i,a})},Vf=function(r,e,o){return i=e,a=o.getNode(!1===i),u=i?"after":"before",Uo.isElement(a)&&a.getAttribute("data-mce-caret")===u?(t=e,n=o.getNode(!1===e),t&&Uo.isContentEditableFalse(n.nextSibling)?_.some(zf.moveToElement(n.nextSibling)):!1===t&&Uo.isContentEditableFalse(n.previousSibling)?_.some(zf.moveToElement(n.previousSibling)):_.none()).fold(function(){return jf(r,e,o)},_.some):jf(r,e,o).bind(function(e){return t=r,n=o,e.fold(function(e){return _.some(zf.remove(e))},function(e){return _.some(zf.moveToElement(e))},function(e){return Es(n,e,t)?_.none():_.some(zf.moveToPosition(e))});var t,n});var t,n,i,a,u},Hf=function(e,t,n){if(0!==n){var r,o,i,a=e.data.slice(t,t+n),u=t+n>=e.data.length,s=0===t;e.replaceData(t,n,(o=s,i=u,X((r=a).split(""),function(e,t){return-1!==" \f\n\r\t\v".indexOf(t)||" "===t?e.previousCharIsSpace||""===e.str&&o||e.str.length===r.length-1&&i?{previousCharIsSpace:!1,str:e.str+" "}:{previousCharIsSpace:!0,str:e.str+" "}:{previousCharIsSpace:!1,str:e.str+t}},{previousCharIsSpace:!1,str:""}).str))}},qf=function(e,t){var n,r=e.data.slice(t),o=r.length-(n=r,n.replace(/^\s+/g,"")).length;return Hf(e,t,o)},$f=function(e,t){return r=e,o=(n=t).container(),i=n.offset(),!1===Su.isTextPosition(n)&&o===r.parentNode&&i>Su.before(r).offset()?Su(t.container(),t.offset()-1):t;var n,r,o,i},Wf=function(e){return ja(e.previousSibling)?_.some((t=e.previousSibling,Uo.isText(t)?Su(t,t.data.length):Su.after(t))):e.previousSibling?al.lastPositionIn(e.previousSibling):_.none();var t},Kf=function(e){return ja(e.nextSibling)?_.some((t=e.nextSibling,Uo.isText(t)?Su(t,0):Su.before(t))):e.nextSibling?al.firstPositionIn(e.nextSibling):_.none();var t},Xf=function(r,o){return Wf(o).orThunk(function(){return Kf(o)}).orThunk(function(){return e=r,t=o,n=Su.before(t.previousSibling?t.previousSibling:t.parentNode),al.prevPosition(e,n).fold(function(){return al.nextPosition(e,Su.after(t))},_.some);var e,t,n})},Yf=function(n,r){return Kf(r).orThunk(function(){return Wf(r)}).orThunk(function(){return e=n,t=r,al.nextPosition(e,Su.after(t)).fold(function(){return al.prevPosition(e,Su.before(t))},_.some);var e,t})},Gf=function(e,t,n){return(r=e,o=t,i=n,r?Yf(o,i):Xf(o,i)).map(d($f,n));var r,o,i},Jf=function(t,n,e){e.fold(function(){t.focus()},function(e){t.selection.setRng(e.toRange(),n)})},Qf=function(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(fr(t))},Zf=function(e){if(Yc(e)){var t=ur.fromHtml('<br data-mce-bogus="1">');return Fi(e),Li(e,t),_.some(Su.before(t.dom()))}return _.none()},ed=function(e,t,c){var n=Vr(e).filter(pr),r=Hr(e).filter(pr);return zi(e),tu([n,r,t],function(e,t,n){var r,o,i,a,u=e.dom(),s=t.dom(),l=u.data.length;return o=s,i=c,a=Qn((r=u).data).length,r.appendData(o.data),zi(ur.fromDom(o)),i&&qf(r,a),n.container()===s?Su(u,l):n}).orThunk(function(){return c&&(n.each(function(e){return t=e.dom(),n=e.dom().length,r=t.data.slice(0,n),o=r.length-Qn(r).length,Hf(t,n-o,o);var t,n,r,o}),r.each(function(e){return qf(e.dom(),0)})),t})},td=function(e,t){return n=e.schema.getTextInlineElements(),r=fr(t),hr.call(n,r);var n,r},nd=function(t,n,e,r){void 0===r&&(r=!0);var o,i=Gf(n,t.getBody(),e.dom()),a=ea(e,d(Qf,t),(o=t.getBody(),function(e){return e.dom()===o})),u=ed(e,i,td(t,e));t.dom.isEmpty(t.getBody())?(t.setContent(""),t.selection.setCursorLocation()):a.bind(Zf).fold(function(){r&&Jf(t,n,u)},function(e){r&&Jf(t,n,_.some(e))})},rd=function(a,u){var e,t,n,r,o,i;return(e=a.getBody(),t=u,n=a.selection.getRng(),r=As(t?1:-1,e,n),o=Su.fromRangeStart(r),i=ur.fromDom(e),!1===t&&If(o)?_.some(zf.remove(o.getNode(!0))):t&&Pf(o)?_.some(zf.remove(o.getNode())):!1===t&&Pf(o)&&xf(i,o)?Ef(i,o).map(function(e){return zf.remove(e.getNode())}):t&&If(o)&&kf(i,o)?Nf(i,o).map(function(e){return zf.remove(e.getNode())}):Vf(e,t,o)).map(function(e){return e.fold((o=a,i=u,function(e){return o._selectionOverrides.hideFakeCaret(),nd(o,i,ur.fromDom(e)),!0}),(n=a,r=u,function(e){var t=r?Su.before(e):Su.after(e);return n.selection.setRng(t.toRange()),!0}),(t=a,function(e){return t.selection.setRng(e.toRange()),!0}));var t,n,r,o,i}).getOr(!1)},od=function(e,t){var n,r=e.selection.getNode();return!!Uo.isContentEditableFalse(r)&&(n=ur.fromDom(e.getBody()),U(Ji(n,".mce-offscreen-selection"),zi),nd(e,t,ur.fromDom(e.selection.getNode())),Vc(e),!0)},id=function(e,t){return e.selection.isCollapsed()?rd(e,t):od(e,t)},ad=function(e){var t,n=function(e,t){for(;t&&t!==e;){if(Uo.isContentEditableTrue(t)||Uo.isContentEditableFalse(t))return t;t=t.parentNode}return null}(e.getBody(),e.selection.getNode());return Uo.isContentEditableTrue(n)&&e.dom.isBlock(n)&&e.dom.isEmpty(n)&&(t=e.dom.create("br",{"data-mce-bogus":"1"}),e.dom.setHTML(n,""),n.appendChild(t),e.selection.setRng(Su.before(t).toRange())),!0},ud=Uo.isText,sd=function(e){return ud(e)&&e.data[0]===ba},ld=function(e){return ud(e)&&e.data[e.data.length-1]===ba},cd=function(e){return e.ownerDocument.createTextNode(ba)},fd=function(e,t){return e?function(e){if(ud(e.previousSibling))return ld(e.previousSibling)||e.previousSibling.appendData(ba),e.previousSibling;if(ud(e))return sd(e)||e.insertData(0,ba),e;var t=cd(e);return e.parentNode.insertBefore(t,e),t}(t):function(e){if(ud(e.nextSibling))return sd(e.nextSibling)||e.nextSibling.insertData(0,ba),e.nextSibling;if(ud(e))return ld(e)||e.appendData(ba),e;var t=cd(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t}(t)},dd=d(fd,!0),md=d(fd,!1),pd=function(e,t){return Uo.isText(e.container())?fd(t,e.container()):fd(t,e.getNode())},gd=function(e,t){var n=t.get();return n&&e.container()===n&&Ea(n)},hd=function(n,e){return e.fold(function(e){as.remove(n.get());var t=dd(e);return n.set(t),_.some(Su(t,t.length-1))},function(e){return al.firstPositionIn(e).map(function(e){if(gd(e,n))return Su(n.get(),1);as.remove(n.get());var t=pd(e,!0);return n.set(t),Su(t,1)})},function(e){return al.lastPositionIn(e).map(function(e){if(gd(e,n))return Su(n.get(),n.get().length-1);as.remove(n.get());var t=pd(e,!1);return n.set(t),Su(t,t.length-1)})},function(e){as.remove(n.get());var t=md(e);return n.set(t),_.some(Su(t,1))})},vd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return _.none()},yd=bf([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),bd=function(e,t){var n=xs(t,e);return n||e},Cd=function(e,t,n){var r=Uc.normalizeForwards(n),o=bd(t,r.container());return Uc.findRootInline(e,o,r).fold(function(){return al.nextPosition(o,r).bind(d(Uc.findRootInline,e,o)).map(function(e){return yd.before(e)})},_.none)},wd=function(e,t){return null===Gu(e,t)},kd=function(e,t,n){return Uc.findRootInline(e,t,n).filter(d(wd,t))},xd=function(e,t,n){var r=Uc.normalizeBackwards(n);return kd(e,t,r).bind(function(e){return al.prevPosition(e,r).isNone()?_.some(yd.start(e)):_.none()})},Ed=function(e,t,n){var r=Uc.normalizeForwards(n);return kd(e,t,r).bind(function(e){return al.nextPosition(e,r).isNone()?_.some(yd.end(e)):_.none()})},Nd=function(e,t,n){var r=Uc.normalizeBackwards(n),o=bd(t,r.container());return Uc.findRootInline(e,o,r).fold(function(){return al.prevPosition(o,r).bind(d(Uc.findRootInline,e,o)).map(function(e){return yd.after(e)})},_.none)},Sd=function(e){return!1===Uc.isRtl(_d(e))},Td=function(e,t,n){return vd([Cd,xd,Ed,Nd],[e,t,n]).filter(Sd)},_d=function(e){return e.fold($,$,$,$)},Rd=function(e){return e.fold(q("before"),q("start"),q("end"),q("after"))},Ad=function(e){return e.fold(yd.before,yd.before,yd.after,yd.after)},Dd=function(n,e,r,t,o,i){return tu([Uc.findRootInline(e,r,t),Uc.findRootInline(e,r,o)],function(e,t){return e!==t&&Uc.hasSameParentBlock(r,e,t)?yd.after(n?e:t):i}).getOr(i)},Bd=function(e,r){return e.fold(q(!0),function(e){return n=r,!(Rd(t=e)===Rd(n)&&_d(t)===_d(n));var t,n})},Od=function(e,t){return e?t.fold(H(_.some,yd.start),_.none,H(_.some,yd.after),_.none):t.fold(_.none,H(_.some,yd.before),_.none,H(_.some,yd.end))},Pd=function(a,u,s,l){var e=Uc.normalizePosition(a,l),c=Td(u,s,e);return Td(u,s,e).bind(d(Od,a)).orThunk(function(){return t=a,n=u,r=s,o=c,e=l,i=Uc.normalizePosition(t,e),al.fromPosition(t,r,i).map(d(Uc.normalizePosition,t)).fold(function(){return o.map(Ad)},function(e){return Td(n,r,e).map(d(Dd,t,n,r,i,e)).filter(d(Bd,o))}).filter(Sd);var t,n,r,o,e,i})},Id=Td,Ld=Pd,Md=(d(Pd,!1),d(Pd,!0),Ad),Fd=function(e){return e.fold(yd.start,yd.start,yd.end,yd.end)},zd=function(e){return P(e.selection.getSel().modify)},Ud=function(e,t,n){var r=e?1:-1;return t.setRng(Su(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},jd=function(e,t){var n=t.selection.getRng(),r=e?Su.fromRangeEnd(n):Su.fromRangeStart(n);return!!zd(t)&&(e&&Ta(r)?Ud(!0,t.selection,r):!(e||!_a(r))&&Ud(!1,t.selection,r))},Vd=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},Hd=function(e){return!1!==e.settings.inline_boundaries},qd=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},$d=function(t,e,n){return hd(e,n).map(function(e){return Vd(t,e),n})},Wd=function(e,t,n){return function(){return!!Hd(t)&&jd(e,t)}},Kd={move:function(a,u,s){return function(){return!!Hd(a)&&(t=a,n=u,e=s,r=t.getBody(),o=Su.fromRangeStart(t.selection.getRng()),i=d(Uc.isInlineTarget,t),Ld(e,i,r,o).bind(function(e){return $d(t,n,e)})).isSome();var t,n,e,r,o,i}},moveNextWord:d(Wd,!0),movePrevWord:d(Wd,!1),setupSelectedState:function(a){var u=Vi(null),s=d(Uc.isInlineTarget,a);return a.on("NodeChange",function(e){var t,n,r,o,i;Hd(a)&&(t=s,n=a.dom,r=e.parents,o=j(n.select('*[data-mce-selected="inline-boundary"]'),t),i=j(r,t),U(te(o,i),d(qd,!1)),U(te(i,o),d(qd,!0)),function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=Su.fromRangeStart(e.selection.getRng());Su.isTextPosition(n)&&!1===Uc.isAtZwsp(n)&&(Vd(e,as.removeAndReposition(t.get(),n)),t.set(null))}}(a,u),function(n,r,o,e){if(r.selection.isCollapsed()){var t=j(e,n);U(t,function(e){var t=Su.fromRangeStart(r.selection.getRng());Id(n,r.getBody(),t).bind(function(e){return $d(r,o,e)})})}}(s,a,u,e.parents))}),u},setCaretPosition:Vd},Xd=function(t,n){return function(e){return hd(n,e).map(function(e){return Kd.setCaretPosition(t,e),!0}).getOr(!1)}},Yd=function(r,o,i,a){var u=r.getBody(),s=d(Uc.isInlineTarget,r);r.undoManager.ignore(function(){var e,t,n;r.selection.setRng((e=i,t=a,(n=V.document.createRange()).setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n)),r.execCommand("Delete"),Id(s,u,Su.fromRangeStart(r.selection.getRng())).map(Fd).map(Xd(r,o))}),r.nodeChanged()},Gd=function(n,r,i,o){var e,t,a=(e=n.getBody(),t=o.container(),xs(t,e)||e),u=d(Uc.isInlineTarget,n),s=Id(u,a,o);return s.bind(function(e){return i?e.fold(q(_.some(Fd(e))),_.none,q(_.some(Md(e))),_.none):e.fold(_.none,q(_.some(Md(e))),_.none,q(_.some(Fd(e))))}).map(Xd(n,r)).getOrThunk(function(){var t=al.navigate(i,a,o),e=t.bind(function(e){return Id(u,a,e)});return s.isSome()&&e.isSome()?Uc.findRootInline(u,a,o).map(function(e){return o=e,!!tu([al.firstPositionIn(o),al.lastPositionIn(o)],function(e,t){var n=Uc.normalizePosition(!0,e),r=Uc.normalizePosition(!1,t);return al.nextPosition(o,n).map(function(e){return e.isEqual(r)}).getOr(!0)}).getOr(!0)&&(nd(n,i,ur.fromDom(e)),!0);var o}).getOr(!1):e.bind(function(e){return t.map(function(e){return i?Yd(n,r,o,e):Yd(n,r,e,o),!0})}).getOr(!1)})},Jd=function(e,t,n){if(e.selection.isCollapsed()&&!1!==e.settings.inline_boundaries){var r=Su.fromRangeStart(e.selection.getRng());return Gd(e,t,n,r)}return!1},Qd=_r("start","end"),Zd=_r("rng","table","cells"),em=bf([{removeTable:["element"]},{emptyCells:["cells"]}]),tm=function(e,t){return oa(ur.fromDom(e),"td,th",t)},nm=function(e,t){return na(e,"table",t)},rm=function(e){return!1===Mr(e.start(),e.end())},om=function(e,n){return nm(e.start(),n).bind(function(t){return nm(e.end(),n).bind(function(e){return Mr(t,e)?_.some(t):_.none()})})},im=function(e){return Ji(e,"td,th")},am=function(r,e){var t=tm(e.startContainer,r),n=tm(e.endContainer,r);return e.collapsed?_.none():tu([t,n],Qd).fold(function(){return t.fold(function(){return n.bind(function(t){return nm(t,r).bind(function(e){return ne(im(e)).map(function(e){return Qd(e,t)})})})},function(t){return nm(t,r).bind(function(e){return re(im(e)).map(function(e){return Qd(t,e)})})})},function(e){return um(r,e)?_.none():(n=r,nm((t=e).start(),n).bind(function(e){return re(im(e)).map(function(e){return Qd(t.start(),e)})}));var t,n})},um=function(e,t){return om(t,e).isSome()},sm=function(e,t){var n,r,o,i,a=d(Mr,e);return(n=t,r=a,o=tm(n.startContainer,r),i=tm(n.endContainer,r),tu([o,i],Qd).filter(rm).filter(function(e){return um(r,e)}).orThunk(function(){return am(r,n)})).bind(function(e){return om(t=e,a).map(function(e){return Zd(t,e,im(e))});var t})},lm=function(e,t){return G(e,function(e){return Mr(e,t)})},cm=function(n){return(r=n,tu([lm(r.cells(),r.rng().start()),lm(r.cells(),r.rng().end())],function(e,t){return r.cells().slice(e,t+1)})).map(function(e){var t=n.cells();return e.length===t.length?em.removeTable(n.table()):em.emptyCells(e)});var r},fm=function(e,t){return sm(e,t).bind(cm)},dm=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},mm=dm,pm=function(e){return Z(e,function(e){var t=Ja(e);return t?[ur.fromDom(t)]:[]})},gm=function(e){return 1<dm(e).length},hm=function(e){return j(pm(e),To)},vm=function(e){return Ji(e,"td[data-mce-selected],th[data-mce-selected]")},ym=function(e,t){var n=vm(t),r=hm(e);return 0<n.length?n:r},bm=ym,Cm=function(e){return ym(mm(e.selection.getSel()),ur.fromDom(e.getBody()))},wm=function(e,t){return U(t,ec),e.selection.setCursorLocation(t[0].dom(),0),!0},km=function(e,t){return nd(e,!1,t),!0},xm=function(n,e,r,t){return Nm(e,t).fold(function(){return t=n,fm(e,r).map(function(e){return e.fold(d(km,t),d(wm,t))});var t},function(e){return Sm(n,e)}).getOr(!1)},Em=function(e,t){return Y(of(t,e),To)},Nm=function(e,t){return Y(of(t,e),function(e){return"caption"===fr(e)})},Sm=function(e,t){return ec(t),e.selection.setCursorLocation(t.dom(),0),_.some(!0)},Tm=function(u,s,l,c,f){return al.navigate(l,u.getBody(),f).bind(function(e){return r=c,o=l,i=f,a=e,al.firstPositionIn(r.dom()).bind(function(t){return al.lastPositionIn(r.dom()).map(function(e){return o?i.isEqual(t)&&a.isEqual(e):i.isEqual(e)&&a.isEqual(t)})}).getOr(!0)?Sm(u,c):(t=c,n=e,Nm(s,ur.fromDom(n.getNode())).map(function(e){return!1===Mr(e,t)}));var t,n,r,o,i,a}).or(_.some(!0))},_m=function(a,u,s,e){var l=Su.fromRangeStart(a.selection.getRng());return Em(s,e).bind(function(e){return Yc(e)?Sm(a,e):(t=a,n=s,r=u,o=e,i=l,al.navigate(r,t.getBody(),i).bind(function(e){return Em(n,ur.fromDom(e.getNode())).map(function(e){return!1===Mr(e,o)})}));var t,n,r,o,i})},Rm=function(a,u,e){var s=ur.fromDom(a.getBody());return Nm(s,e).fold(function(){return _m(a,u,s,e)},function(e){return t=a,n=u,r=s,o=e,i=Su.fromRangeStart(t.selection.getRng()),Yc(o)?Sm(t,o):Tm(t,r,n,o,i);var t,n,r,o,i}).getOr(!1)},Am=function(e,t){var n,r,o,i,a,u=ur.fromDom(e.selection.getStart(!0)),s=Cm(e);return e.selection.isCollapsed()&&0===s.length?Rm(e,t,u):(n=e,r=u,o=ur.fromDom(n.getBody()),i=n.selection.getRng(),0!==(a=Cm(n)).length?wm(n,a):xm(n,o,i,r))},Dm=Cl.isEq,Bm=function(e,t,n){var r=e.formatter.get(n);if(r)for(var o=0;o<r.length;o++)if(!1===r[o].inherit&&e.dom.is(t,r[o].selector))return!0;return!1},Om=function(t,e,n,r){var o=t.dom.getRoot();return e!==o&&(e=t.dom.getParent(e,function(e){return!!Bm(t,e,n)||e.parentNode===o||!!Lm(t,e,n,r,!0)}),Lm(t,e,n,r))},Pm=function(e,t,n){return!!Dm(t,n.inline)||!!Dm(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0)},Im=function(e,t,n,r,o,i){var a,u,s,l=n[r];if(n.onmatch)return n.onmatch(t,n,r);if(l)if(void 0===l.length){for(a in l)if(l.hasOwnProperty(a)){if(u="attributes"===r?e.getAttrib(t,a):Cl.getStyle(e,t,a),o&&!u&&!n.exact)return;if((!o||n.exact)&&!Dm(u,Cl.normalizeStyleValue(e,Cl.replaceVars(l[a],i),a)))return}}else for(s=0;s<l.length;s++)if("attributes"===r?e.getAttrib(t,l[s]):Cl.getStyle(e,t,l[s]))return n;return n},Lm=function(e,t,n,r,o){var i,a,u,s,l=e.formatter.get(n),c=e.dom;if(l&&t)for(a=0;a<l.length;a++)if(i=l[a],Pm(e.dom,t,i)&&Im(c,t,i,"attributes",o,r)&&Im(c,t,i,"styles",o,r)){if(s=i.classes)for(u=0;u<s.length;u++)if(!e.dom.hasClass(t,s[u]))return;return i}},Mm={matchNode:Lm,matchName:Pm,match:function(e,t,n,r){var o;return r?Om(e,r,t,n):(r=e.selection.getNode(),!!Om(e,r,t,n)||!((o=e.selection.getStart())===r||!Om(e,o,t,n)))},matchAll:function(r,o,i){var e,a=[],u={};return e=r.selection.getStart(),r.dom.getParent(e,function(e){var t,n;for(t=0;t<o.length;t++)n=o[t],!u[n]&&Lm(r,e,n,i)&&(u[n]=!0,a.push(n))},r.dom.getRoot()),a},canApply:function(e,t){var n,r,o,i,a,u=e.formatter.get(t),s=e.dom;if(u)for(n=e.selection.getStart(),r=Cl.getParents(s,n),i=u.length-1;0<=i;i--){if(!(a=u[i].selector)||u[i].defaultBlock)return!0;for(o=r.length-1;0<=o;o--)if(s.is(r[o],a))return!0}return!1},matchesUnInheritedFormatSelector:Bm},Fm=function(e,t){return e.splitText(t)},zm=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&Uo.isText(t)?0<n&&n<t.nodeValue.length&&(t=(r=Fm(t,n)).previousSibling,n<o?(t=r=Fm(r,o-=n).previousSibling,o=r.nodeValue.length,n=0):o=0):(Uo.isText(t)&&0<n&&n<t.nodeValue.length&&(t=Fm(t,n),n=0),Uo.isText(r)&&0<o&&o<r.nodeValue.length&&(o=(r=Fm(r,o).previousSibling).nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:o}},Um=ba,jm="_mce_caret",Vm=function(e){return 0<function(e){for(var t=[];e;){if(3===e.nodeType&&e.nodeValue!==Um||1<e.childNodes.length)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t}(e).length},Hm=function(e){var t;if(e)for(e=(t=new mo(e,e)).current();e;e=t.next())if(3===e.nodeType)return e;return null},qm=function(e){var t=ur.fromTag("span");return kr(t,{id:jm,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&Li(t,ur.fromText(Um)),t},$m=function(e,t,n){void 0===n&&(n=!0);var r,o=e.dom,i=e.selection;if(Vm(t))nd(e,!1,ur.fromDom(t),n);else{var a=i.getRng(),u=o.getParent(t,o.isBlock),s=((r=Hm(t))&&r.nodeValue.charAt(0)===Um&&r.deleteData(0,1),r);a.startContainer===s&&0<a.startOffset&&a.setStart(s,a.startOffset-1),a.endContainer===s&&0<a.endOffset&&a.setEnd(s,a.endOffset-1),o.remove(t,!0),u&&o.isEmpty(u)&&ec(ur.fromDom(u)),i.setRng(a)}},Wm=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)$m(e,t,n);else if(!(t=Gu(e.getBody(),o.getStart())))for(;t=r.get(jm);)$m(e,t,!1)},Km=function(e,t,n){var r=e.dom,o=r.getParent(n,d(Cl.isTextBlock,e));o&&r.isEmpty(o)?n.parentNode.replaceChild(t,n):(Zl(ur.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},Xm=function(e,t){return e.appendChild(t),t},Ym=function(e,t){var n,r,o=(n=function(e,t){return Xm(e,t.cloneNode(!1))},r=t,function(e,t){for(var n=e.length-1;0<=n;n--)t(e[n],n,e)}(e,function(e){r=n(r,e)}),r);return Xm(o,o.ownerDocument.createTextNode(Um))},Gm=function(i){i.on("mouseup keydown",function(e){var t,n,r,o;t=i,n=e.keyCode,r=t.selection,o=t.getBody(),Wm(t,null,!1),8!==n&&46!==n||!r.isCollapsed()||r.getStart().innerHTML!==Um||Wm(t,Gu(o,r.getStart())),37!==n&&39!==n||Wm(t,Gu(o,r.getStart()))})},Jm=function(e,t){return e.schema.getTextInlineElements().hasOwnProperty(fr(t))&&!Yu(t.dom())&&!Uo.isBogus(t.dom())},Qm=function(e){return 1===Wr(e).length},Zm=function(e,t,n,r){var o,i,a,u,s=d(Jm,t),l=W(j(r,s),function(e){return e.dom()});if(0===l.length)nd(t,e,n);else{var c=(o=n.dom(),i=l,a=qm(!1),u=Ym(i,a.dom()),Oi(ur.fromDom(o),a),zi(ur.fromDom(o)),Su(u,0));t.selection.setRng(c.toRange())}},ep=function(r,o){var t,e=ur.fromDom(r.getBody()),n=ur.fromDom(r.selection.getStart()),i=j((t=of(n,e),G(t,bo).fold(q(t),function(e){return t.slice(0,e)})),Qm);return re(i).map(function(e){var t,n=Su.fromRangeStart(r.selection.getRng());return!(!Hc(o,n,e.dom())||Yu((t=e).dom())&&Vm(t.dom())||(Zm(o,r,e,i),0))}).getOr(!1)},tp=function(e,t){return!!e.selection.isCollapsed()&&ep(e,t)},np=Uo.isContentEditableTrue,rp=Uo.isContentEditableFalse,op=function(e,t,n,r,o){return t._selectionOverrides.showCaret(e,n,r,o)},ip=function(e,t){var n,r;return e.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?null:((r=(n=t).ownerDocument.createRange()).selectNode(n),r)},ap=function(e,t,n){var r=As(1,e.getBody(),t),o=Su.fromRangeStart(r),i=o.getNode();if(rp(i))return op(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(rp(a))return op(1,e,a,!1,!1);var u=e.dom.getParent(o.getNode(),function(e){return rp(e)||np(e)});return rp(u)?op(1,e,u,!1,n):null},up=function(e,t,n){if(!t||!t.collapsed)return t;var r=ap(e,t,n);return r||t},sp=function(e,t,n,r,o,i){var a,u,s=op(r,e,i.getNode(!o),o,!0);if(t.collapsed){var l=t.cloneRange();o?l.setEnd(s.startContainer,s.startOffset):l.setStart(s.endContainer,s.endOffset),l.deleteContents()}else t.deleteContents();return e.selection.setRng(s),a=e.dom,u=n,Uo.isText(u)&&0===u.data.length&&a.remove(u),!0},lp=function(e,t){return function(e,t){var n=e.selection.getRng();if(!Uo.isText(n.commonAncestorContainer))return!1;var r=t?Eu.Forwards:Eu.Backwards,o=Ys(e.getBody()),i=d(Ps,o.next),a=d(Ps,o.prev),u=t?i:a,s=t?Pf:If,l=Bs(r,e.getBody(),n),c=Uc.normalizePosition(t,u(l));if(!c)return!1;if(s(c))return sp(e,n,l.getNode(),r,t,c);var f=u(c);return!!(f&&s(f)&&Is(c,f))&&sp(e,n,l.getNode(),r,t,f)}(e,t)},cp=function(e,t){e.getDoc().execCommand(t,!1,null)},fp=function(e){id(e,!1)||lp(e,!1)||Jd(e,!1)||pf(e,!1)||Am(e)||yf(e,!1)||tp(e,!1)||(cp(e,"Delete"),Vc(e))},dp=function(e){id(e,!0)||lp(e,!0)||Jd(e,!0)||pf(e,!0)||Am(e)||yf(e,!0)||tp(e,!0)||cp(e,"ForwardDelete")},mp=function(o,t,e){var n=function(e){return t=o,n=e.dom(),r=Tr(n,t),_.from(r).filter(function(e){return 0<e.length});var t,n,r};return ta(ur.fromDom(e),function(e){return n(e).isSome()},function(e){return Mr(ur.fromDom(t),e)}).bind(n)},pp=function(o){return function(r,e){return _.from(e).map(ur.fromDom).filter(mr).bind(function(e){return mp(o,r,e.dom()).or((t=o,n=e.dom(),_.from(Ei.DOM.getStyle(n,t,!0))));var t,n}).getOr("")}},gp={getFontSize:pp("font-size"),getFontFamily:H(function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},pp("font-family")),toPt:function(e,t){return/[0-9.]+px$/.test(e)?(n=72*parseInt(e,10)/96,r=t||0,o=Math.pow(10,r),Math.round(n*o)/o+"pt"):e;var n,r,o}},hp=function(e){return al.firstPositionIn(e.getBody()).map(function(e){var t=e.container();return Uo.isText(t)?t.parentNode:t})},vp=function(o){return _.from(o.selection.getRng()).bind(function(e){var t,n,r=o.getBody();return n=r,(t=e).startContainer===n&&0===t.startOffset?_.none():_.from(o.selection.getStart(!0))})},yp=function(e,t){if(/^[0-9\.]+$/.test(t)){var n=parseInt(t,10);if(1<=n&&n<=7){var r=Tc(e),o=_c(e);return o?o[n-1]||t:r[n-1]||t}return t}return t},bp=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},Cp=function(e,t,n){return null!==function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(e,t,n)},wp=function(e,t,n){return Cp(e,t,function(e){return e.nodeName===n})},kp=function(e){return e&&"TABLE"===e.nodeName},xp=function(e,t,n){for(var r=new mo(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());t=r[n?"prev":"next"]();)if(Uo.isBr(t))return!0},Ep=function(e,t,n,r,o){var i,a,u,s,l,c,f=e.getRoot(),d=e.schema.getNonEmptyElements();if(u=e.getParent(o.parentNode,e.isBlock)||f,r&&Uo.isBr(o)&&t&&e.isEmpty(u))return _.some(xu(o.parentNode,e.nodeIndex(o)));for(i=new mo(o,u);s=i[r?"prev":"next"]();){if("false"===e.getContentEditableParent(s)||(c=f,Na(l=s)&&!1===Cp(l,c,Yu)))return _.none();if(Uo.isText(s)&&0<s.nodeValue.length)return!1===wp(s,f,"A")?_.some(xu(s,r?s.nodeValue.length:0)):_.none();if(e.isBlock(s)||d[s.nodeName.toLowerCase()])return _.none();a=s}return n&&a?_.some(xu(a,0)):_.none()},Np=function(e,t,n,r){var o,i,a,u,s,l,c,f,d,m,p=e.getRoot(),g=!1;if(o=r[(n?"start":"end")+"Container"],i=r[(n?"start":"end")+"Offset"],c=Uo.isElement(o)&&i===o.childNodes.length,s=e.schema.getNonEmptyElements(),l=n,Na(o))return _.none();if(Uo.isElement(o)&&i>o.childNodes.length-1&&(l=!1),Uo.isDocument(o)&&(o=p,i=0),o===p){if(l&&(u=o.childNodes[0<i?i-1:0])){if(Na(u))return _.none();if(s[u.nodeName]||kp(u))return _.none()}if(o.hasChildNodes()){if(i=Math.min(!l&&0<i?i-1:i,o.childNodes.length-1),o=o.childNodes[i],i=Uo.isText(o)&&c?o.data.length:0,!t&&o===p.lastChild&&kp(o))return _.none();if(function(e,t){for(;t&&t!==e;){if(Uo.isContentEditableFalse(t))return!0;t=t.parentNode}return!1}(p,o)||Na(o))return _.none();if(o.hasChildNodes()&&!1===kp(o)){a=new mo(u=o,p);do{if(Uo.isContentEditableFalse(u)||Na(u)){g=!1;break}if(Uo.isText(u)&&0<u.nodeValue.length){i=l?0:u.nodeValue.length,o=u,g=!0;break}if(s[u.nodeName.toLowerCase()]&&(!(f=u)||!/^(TD|TH|CAPTION)$/.test(f.nodeName))){i=e.nodeIndex(u),o=u.parentNode,l||i++,g=!0;break}}while(u=l?a.next():a.prev())}}}return t&&(Uo.isText(o)&&0===i&&Ep(e,c,t,!0,o).each(function(e){o=e.container(),i=e.offset(),g=!0}),Uo.isElement(o)&&((u=o.childNodes[i])||(u=o.childNodes[i-1]),!u||!Uo.isBr(u)||(m="A",(d=u).previousSibling&&d.previousSibling.nodeName===m)||xp(e,u,!1)||xp(e,u,!0)||Ep(e,c,t,!0,u).each(function(e){o=e.container(),i=e.offset(),g=!0}))),l&&!t&&Uo.isText(o)&&i===o.nodeValue.length&&Ep(e,c,t,!1,o).each(function(e){o=e.container(),i=e.offset(),g=!0}),g?_.some(xu(o,i)):_.none()},Sp=function(e,t){var n=t.collapsed,r=t.cloneRange(),o=xu.fromRangeStart(t);return Np(e,n,!0,r).each(function(e){n&&xu.isAbove(o,e)||r.setStart(e.container(),e.offset())}),n||Np(e,n,!1,r).each(function(e){r.setEnd(e.container(),e.offset())}),n&&r.collapse(!0),bp(t,r)?_.none():_.some(r)},Tp=function(e,t,n){var r=e.create("span",{},"&nbsp;");n.parentNode.insertBefore(r,n),t.scrollIntoView(r),e.remove(r)},_p=function(e,t,n,r){var o=e.createRng();r?(o.setStartBefore(n),o.setEndBefore(n)):(o.setStartAfter(n),o.setEndAfter(n)),t.setRng(o)},Rp=function(e,t){var n,r,o=e.selection,i=e.dom,a=o.getRng();Sp(i,a).each(function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)});var u=a.startOffset,s=a.startContainer;if(1===s.nodeType&&s.hasChildNodes()){var l=u>s.childNodes.length-1;s=s.childNodes[Math.min(u,s.childNodes.length-1)]||s,u=l&&3===s.nodeType?s.nodeValue.length:0}var c=i.getParent(s,i.isBlock),f=c?i.getParent(c.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",m=t&&t.ctrlKey;"LI"!==d||m||(c=f),s&&3===s.nodeType&&u>=s.nodeValue.length&&(function(e,t,n){for(var r,o=new mo(t,n),i=e.getNonEmptyElements();r=o.next();)if(i[r.nodeName.toLowerCase()]||0<r.length)return!0}(e.schema,s,c)||(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=i.create("br"),Mu(i,a,n),Tp(i,o,n),_p(i,o,n,r),e.undoManager.add()},Ap=function(e,t){var n=ur.fromTag("br");Oi(ur.fromDom(t),n),e.undoManager.add()},Dp=function(e,t){Bp(e.getBody(),t)||Pi(ur.fromDom(t),ur.fromTag("br"));var n=ur.fromTag("br");Pi(ur.fromDom(t),n),Tp(e.dom,e.selection,n.dom()),_p(e.dom,e.selection,n.dom(),!1),e.undoManager.add()},Bp=function(e,t){return n=Su.after(t),!!Uo.isBr(n.getNode())||al.nextPosition(e,Su.after(t)).map(function(e){return Uo.isBr(e.getNode())}).getOr(!1);var n},Op=function(e){return e&&"A"===e.nodeName&&"href"in e},Pp=function(e){return e.fold(q(!1),Op,Op,q(!1))},Ip=function(e,t){t.fold(o,d(Ap,e),d(Dp,e),o)},Lp=function(e,t){var n,r,o,i=(n=e,r=d(Uc.isInlineTarget,n),o=Su.fromRangeStart(n.selection.getRng()),Id(r,n.getBody(),o).filter(Pp));i.isSome()?i.each(d(Ip,e)):Rp(e,t)},Mp={create:_r("start","soffset","finish","foffset")},Fp=bf([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),zp=(Fp.before,Fp.on,Fp.after,function(e){return e.fold($,$,$)}),Up=bf([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),jp={domRange:Up.domRange,relative:Up.relative,exact:Up.exact,exactFromRange:function(e){return Up.exact(e.start(),e.soffset(),e.finish(),e.foffset())},getWin:function(e){var t=e.match({domRange:function(e){return ur.fromDom(e.startContainer)},relative:function(e,t){return zp(e)},exact:function(e,t,n,r){return e}});return Ur(t)},range:Mp.create},Vp=ir.detect().browser,Hp=function(e,t){var n=pr(t)?Ll(t).length:Wr(t).length+1;return n<e?n:e<0?0:e},qp=function(e){return jp.range(e.start(),Hp(e.soffset(),e.start()),e.finish(),Hp(e.foffset(),e.finish()))},$p=function(e,t){return!Uo.isRestrictedNode(t.dom())&&(Fr(e,t)||Mr(e,t))},Wp=function(t){return function(e){return $p(t,e.start())&&$p(t,e.finish())}},Kp=function(e){return!0===e.inline||Vp.isIE()},Xp=function(e){return jp.range(ur.fromDom(e.startContainer),e.startOffset,ur.fromDom(e.endContainer),e.endOffset)},Yp=function(e){var t=e.getSelection();return(t&&0!==t.rangeCount?_.from(t.getRangeAt(0)):_.none()).map(Xp)},Gp=function(e){var t=Ur(e);return Yp(t.dom()).filter(Wp(e))},Jp=function(e,t){return _.from(t).filter(Wp(e)).map(qp)},Qp=function(e){var t=V.document.createRange();try{return t.setStart(e.start().dom(),e.soffset()),t.setEnd(e.finish().dom(),e.foffset()),_.some(t)}catch(e){return _.none()}},Zp=function(e){return(e.bookmark?e.bookmark:_.none()).bind(d(Jp,ur.fromDom(e.getBody()))).bind(Qp)},eg=function(e){var t=Kp(e)?Gp(ur.fromDom(e.getBody())):_.none();e.bookmark=t.isSome()?t:e.bookmark},tg=function(t){Zp(t).each(function(e){t.selection.setRng(e)})},ng=Zp,rg=function(e){return xo(e)||Eo(e)},og=function(e){return j(W(e.selection.getSelectedBlocks(),ur.fromDom),function(e){return!rg(e)&&!jr(e).map(rg).getOr(!1)})},ig=function(e,t){var n=e.settings,r=e.dom,o=e.selection,i=e.formatter,a=/[a-z%]+$/i.exec(n.indentation)[0],u=parseInt(n.indentation,10),s=e.getParam("indent_use_margin",!1);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||n.forced_root_block||r.getParent(o.getNode(),r.isBlock)||i.apply("div"),U(og(e),function(e){!function(e,t,n,r,o,i){if("false"!==e.getContentEditable(i)){var a=n?"margin":"padding";if(a="TABLE"===i.nodeName?"margin":a,a+="rtl"===e.getStyle(i,"direction",!0)?"Right":"Left","outdent"===t){var u=Math.max(0,parseInt(i.style[a]||0,10)-r);e.setStyle(i,a,u?u+o:"")}else u=parseInt(i.style[a]||0,10)+r+o,e.setStyle(i,a,u)}}(r,t,s,u,a,e.dom())})},ag=Jt.each,ug=Jt.extend,sg=Jt.map,lg=Jt.inArray;function cg(u){var o,i,a,t,s={state:{},exec:{},value:{}},n=u.settings;u.on("PreInit",function(){o=u.dom,i=u.selection,n=u.settings,a=u.formatter});var r=function(e){var t;if(!u.quirks.isHidden()&&!u.removed){if(e=e.toLowerCase(),t=s.state[e])return t(e);try{return u.getDoc().queryCommandState(e)}catch(e){}return!1}},e=function(e,n){n=n||"exec",ag(e,function(t,e){ag(e.toLowerCase().split(","),function(e){s[n][e]=t})})},l=function(e,t,n){e=e.toLowerCase(),s.value[e]=function(){return t.call(n||u)}};ug(this,{execCommand:function(t,n,r,e){var o,i,a=!1;if(!u.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(t)||e&&e.skip_focus?tg(u):u.focus(),(e=u.fire("BeforeExecCommand",{command:t,ui:n,value:r})).isDefaultPrevented())return!1;if(i=t.toLowerCase(),o=s.exec[i])return o(i,n,r),u.fire("ExecCommand",{command:t,ui:n,value:r}),!0;if(ag(u.plugins,function(e){if(e.execCommand&&e.execCommand(t,n,r))return u.fire("ExecCommand",{command:t,ui:n,value:r}),!(a=!0)}),a)return a;if(u.theme&&u.theme.execCommand&&u.theme.execCommand(t,n,r))return u.fire("ExecCommand",{command:t,ui:n,value:r}),!0;try{a=u.getDoc().execCommand(t,n,r)}catch(e){}return!!a&&(u.fire("ExecCommand",{command:t,ui:n,value:r}),!0)}},queryCommandState:r,queryCommandValue:function(e){var t;if(!u.quirks.isHidden()&&!u.removed){if(e=e.toLowerCase(),t=s.value[e])return t(e);try{return u.getDoc().queryCommandValue(e)}catch(e){}}},queryCommandSupported:function(e){if(e=e.toLowerCase(),s.exec[e])return!0;try{return u.getDoc().queryCommandSupported(e)}catch(e){}return!1},addCommands:e,addCommand:function(e,o,i){e=e.toLowerCase(),s.exec[e]=function(e,t,n,r){return o.call(i||u,t,n,r)}},addQueryStateHandler:function(e,t,n){e=e.toLowerCase(),s.state[e]=function(){return t.call(n||u)}},addQueryValueHandler:l,hasCustomCommand:function(e){return e=e.toLowerCase(),!!s.exec[e]}});var c=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),u.getDoc().execCommand(e,t,n)},f=function(e){return a.match(e)},d=function(e,t){a.toggle(e,t?{value:t}:void 0),u.nodeChanged()},m=function(e){t=i.getBookmark(e)},p=function(){i.moveToBookmark(t)};e({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){u.undoManager.add()},"Cut,Copy,Paste":function(e){var t,n=u.getDoc();try{c(e)}catch(e){t=!0}if("paste"!==e||n.queryCommandEnabled(e)||(t=!0),t||!n.queryCommandSupported(e)){var r=u.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");pe.mac&&(r=r.replace(/Ctrl\+/g,"⌘+")),u.notificationManager.open({text:r,type:"error"})}},unlink:function(){if(i.isCollapsed()){var e=u.dom.getParent(u.selection.getStart(),"a");e&&u.dom.remove(e,!0)}else a.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(e){var t=e.substring(7);"full"===t&&(t="justify"),ag("left,center,right,justify".split(","),function(e){t!==e&&a.remove("align"+e)}),"none"!==t&&d("align"+t)},"InsertUnorderedList,InsertOrderedList":function(e){var t,n;c(e),(t=o.getParent(i.getNode(),"ol,ul"))&&(n=t.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(n.nodeName)&&(m(),o.split(n,t),p()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){d(e)},"ForeColor,HiliteColor":function(e,t,n){d(e,n)},FontName:function(e,t,n){var r,o;o=n,(r=u).formatter.toggle("fontname",{value:yp(r,o)}),r.nodeChanged()},FontSize:function(e,t,n){var r,o;o=n,(r=u).formatter.toggle("fontsize",{value:yp(r,o)}),r.nodeChanged()},RemoveFormat:function(e){a.remove(e)},mceBlockQuote:function(){d("blockquote")},FormatBlock:function(e,t,n){return d(n||"p")},mceCleanup:function(){var e=i.getBookmark();u.setContent(u.getContent()),i.moveToBookmark(e)},mceRemoveNode:function(e,t,n){var r=n||i.getNode();r!==u.getBody()&&(m(),u.dom.remove(r,!0),p())},mceSelectNodeDepth:function(e,t,n){var r=0;o.getParent(i.getNode(),function(e){if(1===e.nodeType&&r++===n)return i.select(e),!1},u.getBody())},mceSelectNode:function(e,t,n){i.select(n)},mceInsertContent:function(e,t,n){fc(u,n)},mceInsertRawHTML:function(e,t,n){i.setContent("tiny_mce_marker");var r=u.getContent();u.setContent(r.replace(/tiny_mce_marker/g,function(){return n}))},mceToggleFormat:function(e,t,n){d(n)},mceSetContent:function(e,t,n){u.setContent(n)},"Indent,Outdent":function(e){ig(u,e)},mceRepaint:function(){},InsertHorizontalRule:function(){u.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){u.hasVisual=!u.hasVisual,u.addVisual()},mceReplaceContent:function(e,t,n){u.execCommand("mceInsertContent",!1,n.replace(/\{\$selection\}/g,i.getContent({format:"text"})))},mceInsertLink:function(e,t,n){var r;"string"==typeof n&&(n={href:n}),r=o.getParent(i.getNode(),"a"),n.href=n.href.replace(" ","%20"),r&&n.href||a.remove("link"),n.href&&a.apply("link",n,r)},selectAll:function(){var e=o.getParent(i.getStart(),Uo.isContentEditableTrue);if(e){var t=o.createRng();t.selectNodeContents(e),i.setRng(t)}},delete:function(){fp(u)},forwardDelete:function(){dp(u)},mceNewDocument:function(){u.setContent("")},InsertLineBreak:function(e,t,n){return Lp(u,n),!0}});var g=function(n){return function(){var e=i.isCollapsed()?[o.getParent(i.getNode(),o.isBlock)]:i.getSelectedBlocks(),t=sg(e,function(e){return!!a.matchNode(e,n)});return-1!==lg(t,!0)}};e({JustifyLeft:g("alignleft"),JustifyCenter:g("aligncenter"),JustifyRight:g("alignright"),JustifyFull:g("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return f(e)},mceBlockQuote:function(){return f("blockquote")},Outdent:function(){var e;if(n.inline_styles){if((e=o.getParent(i.getStart(),o.isBlock))&&0<parseInt(e.style.paddingLeft,10))return!0;if((e=o.getParent(i.getEnd(),o.isBlock))&&0<parseInt(e.style.paddingLeft,10))return!0}return r("InsertUnorderedList")||r("InsertOrderedList")||!n.inline_styles&&!!o.getParent(i.getNode(),"BLOCKQUOTE")},"InsertUnorderedList,InsertOrderedList":function(e){var t=o.getParent(i.getNode(),"ul,ol");return t&&("insertunorderedlist"===e&&"UL"===t.tagName||"insertorderedlist"===e&&"OL"===t.tagName)}},"state"),e({Undo:function(){u.undoManager.undo()},Redo:function(){u.undoManager.redo()}}),l("FontName",function(){return vp(t=u).fold(function(){return hp(t).map(function(e){return gp.getFontFamily(t.getBody(),e)}).getOr("")},function(e){return gp.getFontFamily(t.getBody(),e)});var t},this),l("FontSize",function(){return vp(t=u).fold(function(){return hp(t).map(function(e){return gp.getFontSize(t.getBody(),e)}).getOr("")},function(e){return gp.getFontSize(t.getBody(),e)});var t},this)}var fg=Jt.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend"," "),dg=function(a){var u,s,l=this,c={},f=function(){return!1},d=function(){return!0};u=(a=a||{}).scope||l,s=a.toggleEvent||f;var r=function(e,t,n,r){var o,i,a;if(!1===t&&(t=f),t)for(t={func:t},r&&Jt.extend(t,r),a=(i=e.toLowerCase().split(" ")).length;a--;)e=i[a],(o=c[e])||(o=c[e]=[],s(e,!0)),n?o.unshift(t):o.push(t);return l},m=function(e,t){var n,r,o,i,a;if(e)for(n=(i=e.toLowerCase().split(" ")).length;n--;){if(e=i[n],r=c[e],!e){for(o in c)s(o,!1),delete c[o];return l}if(r){if(t)for(a=r.length;a--;)r[a].func===t&&(r=r.slice(0,a).concat(r.slice(a+1)),c[e]=r);else r.length=0;r.length||(s(e,!1),delete c[e])}}else{for(e in c)s(e,!1);c={}}return l};l.fire=function(e,t){var n,r,o,i;if(e=e.toLowerCase(),(t=t||{}).type=e,t.target||(t.target=u),t.preventDefault||(t.preventDefault=function(){t.isDefaultPrevented=d},t.stopPropagation=function(){t.isPropagationStopped=d},t.stopImmediatePropagation=function(){t.isImmediatePropagationStopped=d},t.isDefaultPrevented=f,t.isPropagationStopped=f,t.isImmediatePropagationStopped=f),a.beforeFire&&a.beforeFire(t),n=c[e])for(r=0,o=n.length;r<o;r++){if((i=n[r]).once&&m(e,i.func),t.isImmediatePropagationStopped())return t.stopPropagation(),t;if(!1===i.func.call(u,t))return t.preventDefault(),t}return t},l.on=r,l.off=m,l.once=function(e,t,n){return r(e,t,n,{once:!0})},l.has=function(e){return e=e.toLowerCase(),!(!c[e]||0===c[e].length)}};dg.isNative=function(e){return!!fg[e.toLowerCase()]};var mg,pg=function(n){return n._eventDispatcher||(n._eventDispatcher=new dg({scope:n,toggleEvent:function(e,t){dg.isNative(e)&&n.toggleNativeEvent&&n.toggleNativeEvent(e,t)}})),n._eventDispatcher},gg={fire:function(e,t,n){if(this.removed&&"remove"!==e&&"detach"!==e)return t;if(t=pg(this).fire(e,t,n),!1!==n&&this.parent)for(var r=this.parent();r&&!t.isPropagationStopped();)r.fire(e,t,!1),r=r.parent();return t},on:function(e,t,n){return pg(this).on(e,t,n)},off:function(e,t){return pg(this).off(e,t)},once:function(e,t){return pg(this).once(e,t)},hasEventListeners:function(e){return pg(this).has(e)}},hg=function(e,t){return e.fire("PreProcess",t)},vg=function(e,t){return e.fire("PostProcess",t)},yg=function(e){return e.fire("remove")},bg=function(e){return e.fire("detach")},Cg=function(e,t){return e.fire("SwitchMode",{mode:t})},wg=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},kg=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},xg=function(e,t,n){try{e.getDoc().execCommand(t,!1,n)}catch(e){}},Eg=function(e,t,n){var r,o;Yi(e,t)&&!1===n?(o=t,qi(r=e)?r.dom().classList.remove(o):Wi(r,o),Xi(r)):n&&Ki(e,t)},Ng=function(e,t){Eg(ur.fromDom(e.getBody()),"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e.readonly=!0,e.getBody().contentEditable="false"):(e.readonly=!1,e.getBody().contentEditable="true",xg(e,"StyleWithCSS",!1),xg(e,"enableInlineTableEditing",!1),xg(e,"enableObjectResizing",!1),e.focus(),e.nodeChanged())},Sg=function(e){return e.readonly?"readonly":"design"},Tg=Ei.DOM,_g=function(e,t){return"selectionchange"===t?e.getDoc():!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t)?e.getDoc().documentElement:e.settings.event_root?(e.eventRoot||(e.eventRoot=Tg.select(e.settings.event_root)[0]),e.eventRoot):e.getBody()},Rg=function(e,t,n){var r;(r=e).hidden||r.readonly?!0===e.readonly&&n.preventDefault():e.fire(t,n)},Ag=function(i,a){var e,t;if(i.delegates||(i.delegates={}),!i.delegates[a]&&!i.removed)if(e=_g(i,a),i.settings.event_root){if(mg||(mg={},i.editorManager.on("removeEditor",function(){var e;if(!i.editorManager.activeEditor&&mg){for(e in mg)i.dom.unbind(_g(i,e));mg=null}})),mg[a])return;t=function(e){for(var t=e.target,n=i.editorManager.get(),r=n.length;r--;){var o=n[r].getBody();(o===t||Tg.isChildOf(t,o))&&Rg(n[r],a,e)}},mg[a]=t,Tg.bind(e,a,t)}else t=function(e){Rg(i,a,e)},Tg.bind(e,a,t),i.delegates[a]=t},Dg={bindPendingEventDelegates:function(){var t=this;Jt.each(t._pendingNativeEvents,function(e){Ag(t,e)})},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(t?n.initialized?Ag(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(_g(n,e),e,n.delegates[e]),delete n.delegates[e]))},unbindAllNativeEvents:function(){var e,t=this,n=t.getBody(),r=t.dom;if(t.delegates){for(e in t.delegates)t.dom.unbind(_g(t,e),e,t.delegates[e]);delete t.delegates}!t.inline&&n&&r&&(n.onload=null,r.unbind(t.getWin()),r.unbind(t.getDoc())),r&&(r.unbind(n),r.unbind(t.getContainer()))}},Bg=Dg=Jt.extend({},gg,Dg),Og=_r("sections","settings"),Pg=ir.detect().deviceType.isTouch(),Ig=["lists","autolink","autosave"],Lg={theme:"mobile"},Mg=function(e){var t=D(e)?e.join(" "):e,n=W(R(t)?t.split(" "):[],Jn);return j(n,function(e){return 0<e.length})},Fg=function(n,e){var r,o,i,t=(r=function(e,t){return F(n,t)},o={},i={},vr(e,function(e,t){(r(e,t)?o:i)[t]=e}),{t:o,f:i});return Og(t.t,t.f)},zg=function(e,t){return e.sections().hasOwnProperty(t)},Ug=function(e,t,n,r){var o,i=Mg(n.forced_plugins),a=Mg(r.plugins),u=e&&zg(t,"mobile")?j(a,d(F,Ig)):a,s=(o=u,[].concat(Mg(i)).concat(Mg(o)));return Jt.extend(r,{plugins:s.join(" ")})},jg=function(e,t,n,r){var o,i,a,u,s,l,c,f,d,m,p=Fg(["mobile"],r),g=Jt.extend(t,n,p.settings(),(f=e,m=(d=p).settings().inline,f&&zg(d,"mobile")&&!m?(u="mobile",s=Lg,l=p.sections(),c=l.hasOwnProperty(u)?l[u]:{},Jt.extend({},s,c)):{}),{validate:!0,content_editable:p.settings().inline,external_plugins:(o=n,i=p.settings(),a=i.external_plugins?i.external_plugins:{},o&&o.external_plugins?Jt.extend({},o.external_plugins,a):a)});return Ug(e,p,n,g)},Vg=function(e,t,n){return _.from(t.settings[n]).filter(e)},Hg=function(e,t,n,r){var o,i,a,u=t in e.settings?e.settings[t]:n;return"hash"===r?(a={},"string"==typeof(i=u)?U(0<i.indexOf("=")?i.split(/[;,](?![^=;,]*(?:[;,]|$))/):i.split(","),function(e){var t=e.split("=");1<t.length?a[Jt.trim(t[0])]=Jt.trim(t[1]):a[Jt.trim(t[0])]=Jt.trim(t)}):a=i,a):"string"===r?Vg(R,e,t).getOr(n):"number"===r?Vg(I,e,t).getOr(n):"boolean"===r?Vg(O,e,t).getOr(n):"object"===r?Vg(A,e,t).getOr(n):"array"===r?Vg(D,e,t).getOr(n):"string[]"===r?Vg((o=R,function(e){return D(e)&&ee(e,o)}),e,t).getOr(n):"function"===r?Vg(P,e,t).getOr(n):u},qg=Jt.each,$g=Jt.explode,Wg={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Kg=Jt.makeMap("alt,ctrl,shift,meta,access");function Xg(i){var a={},r=[],u=function(e){var t,n,r={};for(n in qg($g(e,"+"),function(e){e in Kg?r[e]=!0:/^[0-9]{2,}$/.test(e)?r.keyCode=parseInt(e,10):(r.charCode=e.charCodeAt(0),r.keyCode=Wg[e]||e.toUpperCase().charCodeAt(0))}),t=[r.keyCode],Kg)r[n]?t.push(n):r[n]=!1;return r.id=t.join(","),r.access&&(r.alt=!0,pe.mac?r.ctrl=!0:r.shift=!0),r.meta&&(pe.mac?r.meta=!0:(r.ctrl=!0,r.meta=!1)),r},s=function(e,t,n,r){var o;return(o=Jt.map($g(e,">"),u))[o.length-1]=Jt.extend(o[o.length-1],{func:n,scope:r||i}),Jt.extend(o[0],{desc:i.translate(t),subpatterns:o.slice(1)})},o=function(e,t){return!!t&&t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0)},l=function(e){return e.func?e.func.call(e.scope):null};i.on("keyup keypress keydown",function(t){var e,n;((n=t).altKey||n.ctrlKey||n.metaKey||"keydown"===(e=t).type&&112<=e.keyCode&&e.keyCode<=123)&&!t.isDefaultPrevented()&&(qg(a,function(e){if(o(t,e))return r=e.subpatterns.slice(0),"keydown"===t.type&&l(e),!0}),o(t,r[0])&&(1===r.length&&"keydown"===t.type&&l(r[0]),r.shift()))}),this.add=function(e,n,r,o){var t;return"string"==typeof(t=r)?r=function(){i.execCommand(t,!1,null)}:Jt.isArray(t)&&(r=function(){i.execCommand(t[0],t[1],t[2])}),qg($g(Jt.trim(e.toLowerCase())),function(e){var t=s(e,n,r,o);a[t.id]=t}),!0},this.remove=function(e){var t=s(e);return!!a[t.id]&&(delete a[t.id],!0)}}var Yg=function(e){var t=zr(e).dom();return e.dom()===t.activeElement},Gg=function(t){return(e=zr(t),n=void 0!==e?e.dom():V.document,_.from(n.activeElement).map(ur.fromDom)).filter(function(e){return t.dom().contains(e.dom())});var e,n},Jg=function(t,e){return(n=e,n.collapsed?_.from(Qa(n.startContainer,n.startOffset)).map(ur.fromDom):_.none()).bind(function(e){return So(e)?_.some(e):!1===Fr(t,e)?_.some(t):_.none()});var n},Qg=function(t,e){Jg(ur.fromDom(t.getBody()),e).bind(function(e){return al.firstPositionIn(e.dom())}).fold(function(){t.selection.normalize()},function(e){return t.selection.setRng(e.toRange())})},Zg=function(t){if(t.setActive)try{t.setActive()}catch(e){t.focus()}else t.focus()},eh=function(e){var t,n=e.getBody();return n&&(t=ur.fromDom(n),Yg(t)||Gg(t).isSome())},th=function(e){return e.inline?eh(e):(t=e).iframeElement&&Yg(ur.fromDom(t.iframeElement));var t},nh=function(e){return e.editorManager.setActive(e)},rh=function(e,t){e.removed||(t?nh(e):function(t){var e=t.selection,n=t.settings.content_editable,r=t.getBody(),o=e.getRng();t.quirks.refreshContentEditable();var i,a,u=(i=t,a=e.getNode(),i.dom.getParent(a,function(e){return"true"===i.dom.getContentEditable(e)}));if(t.$.contains(r,u))return Zg(u),Qg(t,o),nh(t);void 0!==t.bookmark&&!1===th(t)&&ng(t).each(function(e){t.selection.setRng(e),o=e}),n||(pe.opera||Zg(r),t.getWin().focus()),(pe.gecko||n)&&(Zg(r),Qg(t,o)),nh(t)}(e))},oh=th,ih=function(e,t){return t.dom()[e]},ah=function(e,t){return parseInt(Sr(t,e),10)},uh=d(ih,"clientWidth"),sh=d(ih,"clientHeight"),lh=d(ah,"margin-top"),ch=d(ah,"margin-left"),fh=function(e,t,n){var r,o,i,a,u,s,l,c,f,d,m,p=ur.fromDom(e.getBody()),g=e.inline?p:(r=p,ur.fromDom(r.dom().ownerDocument.documentElement)),h=(o=e.inline,a=t,u=n,s=(i=g).dom().getBoundingClientRect(),{x:a-(o?s.left+i.dom().clientLeft+ch(i):0),y:u-(o?s.top+i.dom().clientTop+lh(i):0)});return c=h.x,f=h.y,d=uh(l=g),m=sh(l),0<=c&&0<=f&&c<=d&&f<=m},dh=function(e){var t,n=e.inline?e.getBody():e.getContentAreaContainer();return(t=n,_.from(t).map(ur.fromDom)).map(function(e){return Fr(zr(e),e)}).getOr(!1)};function mh(n){var t,o=[],i=function(){var e,t=n.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():{open:e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")},close:e,reposition:e,getArgs:e}},a=function(){0<o.length&&i().reposition(o)},u=function(t){G(o,function(e){return e===t}).each(function(e){o.splice(e,1)})},r=function(r){if(!n.removed&&dh(n))return Y(o,function(e){return t=i().getArgs(e),n=r,!(t.type!==n.type||t.text!==n.text||t.progressBar||t.timeout||n.progressBar||n.timeout);var t,n}).getOrThunk(function(){n.editorManager.setActive(n);var e,t=i().open(r,function(){u(t),a()});return e=t,o.push(e),a(),t})};return(t=n).on("SkinLoaded",function(){var e=t.settings.service_message;e&&r({text:e,type:"warning",timeout:0,icon:""})}),t.on("ResizeEditor ResizeWindow",function(){be.requestAnimationFrame(a)}),t.on("remove",function(){U(o.slice(),function(e){i().close(e)})}),{open:r,close:function(){_.from(o[0]).each(function(e){i().close(e),u(e),a()})},getNotifications:function(){return o}}}function ph(r){var o=[],i=function(){var e,t=r.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():{open:e=function(){throw new Error("Theme did not provide a WindowManager implementation.")},alert:e,confirm:e,close:e,getParams:e,setParams:e}},a=function(e,t){return function(){return t?t.apply(e,arguments):void 0}},u=function(e){var t;o.push(e),t=e,r.fire("OpenWindow",{win:t})},s=function(n){G(o,function(e){return e===n}).each(function(e){var t;o.splice(e,1),t=n,r.fire("CloseWindow",{win:t}),0===o.length&&r.focus()})},e=function(){return _.from(o[o.length-1])};return r.on("remove",function(){U(o.slice(0),function(e){i().close(e)})}),{windows:o,open:function(e,t){r.editorManager.setActive(r),eg(r);var n=i().open(e,t,s);return u(n),n},alert:function(e,t,n){var r=i().alert(e,a(n||this,t),s);u(r)},confirm:function(e,t,n){var r=i().confirm(e,a(n||this,t),s);u(r)},close:function(){e().each(function(e){i().close(e),s(e)})},getParams:function(){return e().map(i().getParams).getOr(null)},setParams:function(t){e().each(function(e){i().setParams(e,t)})},getWindows:function(){return o}}}var gh={},hh="en",vh={setCode:function(e){e&&(hh=e,this.rtl=!!this.data[e]&&"rtl"===this.data[e]._dir)},getCode:function(){return hh},rtl:!1,add:function(e,t){var n=gh[e];for(var r in n||(gh[e]=n={}),t)n[r]=t[r];this.setCode(e)},translate:function(e){var t=gh[hh]||{},n=function(e){return Jt.is(e,"function")?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||Jt.is(e,"undefined")},o=function(e){return e=n(e),Jt.hasOwn(t,e)?n(t[e]):e};if(r(e))return"";if(Jt.is(e,"object")&&Jt.hasOwn(e,"raw"))return n(e.raw);if(Jt.is(e,"array")){var i=e.slice(1);e=o(e[0]).replace(/\{([0-9]+)\}/g,function(e,t){return Jt.hasOwn(i,t)?n(i[t]):e})}return o(e).replace(/{context:\w+}$/,"")},data:gh},yh=Bi.PluginManager,bh=function(e,t){var n=function(e,t){for(var n in yh.urls)if(yh.urls[n]+"/plugin"+t+".js"===e)return n;return null}(t,e.suffix);return n?vh.translate(["Failed to load plugin: {0} from url {1}",n,t]):vh.translate(["Failed to load plugin url: {0}",t])},Ch=function(e,t){e.notificationManager.open({type:"error",text:t})},wh=function(e,t){e._skinLoaded?Ch(e,t):e.on("SkinLoaded",function(){Ch(e,t)})},kh=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=V.window.console;r&&(r.error?r.error.apply(r,arguments):r.log.apply(r,arguments))},xh={pluginLoadError:function(e,t){wh(e,bh(e,t))},pluginInitError:function(e,t,n){var r=vh.translate(["Failed to initialize plugin: {0}",t]);kh(r,n),wh(e,r)},uploadError:function(e,t){wh(e,vh.translate(["Failed to upload image: {0}",t]))},displayError:wh,initError:kh},Eh=Bi.PluginManager,Nh=Bi.ThemeManager;function Sh(){return new(ue.getOrDie("XMLHttpRequest"))}function Th(u,s){var r={},n=function(e,r,o,t){var i,n;(i=Sh()).open("POST",s.url),i.withCredentials=s.credentials,i.upload.onprogress=function(e){t(e.loaded/e.total*100)},i.onerror=function(){o("Image upload failed due to a XHR Transport error. Code: "+i.status)},i.onload=function(){var e,t,n;i.status<200||300<=i.status?o("HTTP Error: "+i.status):(e=JSON.parse(i.responseText))&&"string"==typeof e.location?r((t=s.basePath,n=e.location,t?t.replace(/\/$/,"")+"/"+n.replace(/^\//,""):n)):o("Invalid JSON: "+i.responseText)},(n=new V.FormData).append("file",e.blob(),e.filename()),i.send(n)},l=function(e,t){return{url:t,blobInfo:e,status:!0}},c=function(e,t){return{url:"",blobInfo:e,status:!1,error:t}},f=function(e,t){Jt.each(r[e],function(e){e(t)}),delete r[e]},o=function(e,n){return e=Jt.grep(e,function(e){return!u.isUploaded(e.blobUri())}),ge.all(Jt.map(e,function(e){return u.isPending(e.blobUri())?(t=e.blobUri(),new ge(function(e){r[t]=r[t]||[],r[t].push(e)})):(o=e,i=s.handler,a=n,u.markPending(o.blobUri()),new ge(function(t){var n;try{var r=function(){n&&n.close()};i(o,function(e){r(),u.markUploaded(o.blobUri(),e),f(o.blobUri(),l(o,e)),t(l(o,e))},function(e){r(),u.removeFailed(o.blobUri()),f(o.blobUri(),c(o,e)),t(c(o,e))},function(e){e<0||100<e||(n||(n=a()),n.progressBar.value(e))})}catch(e){t(c(o,e.message))}}));var o,i,a,t}))};return!1===P(s.handler)&&(s.handler=n),{upload:function(e,t){return s.url||s.handler!==n?o(e,t):new ge(function(e){e([])})}}}var _h=function(e){return ue.getOrDie("atob")(e)},Rh=function(e){var t,n,r=decodeURIComponent(e).split(",");return(n=/data:([^;]+)/.exec(r[0]))&&(t=n[1]),{type:t,data:r[1]}},Ah=function(a){return new ge(function(t){var e,n,r,o,i=Rh(a);try{e=_h(i.data)}catch(e){return void t(new V.Blob([]))}for(o=e.length,n=new(ue.getOrDie("Uint8Array"))(o),r=0;r<n.length;r++)n[r]=e.charCodeAt(r);t(new V.Blob([n],{type:i.type}))})},Dh=function(e){return 0===e.indexOf("blob:")?(o=e,new ge(function(e,t){var n=function(){t("Cannot convert "+o+" to Blob. Resource might not exist or is inaccessible.")};try{var r=Sh();r.open("GET",o,!0),r.responseType="blob",r.onload=function(){200===this.status?e(this.response):n()},r.onerror=n,r.send()}catch(e){n()}})):0===e.indexOf("data:")?Ah(e):null;var o},Bh=function(n){return new ge(function(e){var t=new(ue.getOrDie("FileReader"));t.onloadend=function(){e(t.result)},t.readAsDataURL(n)})},Oh=Rh,Ph=0,Ih=function(e){return(e||"blobid")+Ph++},Lh=function(n,r,o,t){var i,a;0!==r.src.indexOf("blob:")?(i=Oh(r.src).data,(a=n.findFirst(function(e){return e.base64()===i}))?o({image:r,blobInfo:a}):Dh(r.src).then(function(e){a=n.create(Ih(),e,i),n.add(a),o({image:r,blobInfo:a})},function(e){t(e)})):(a=n.getByUri(r.src))?o({image:r,blobInfo:a}):Dh(r.src).then(function(t){Bh(t).then(function(e){i=Oh(e).data,a=n.create(Ih(),t,i),n.add(a),o({image:r,blobInfo:a})})},function(e){t(e)})},Mh=function(e){return e?oe(e.getElementsByTagName("img")):[]},Fh=0,zh={uuid:function(e){return e+Fh+++(t=function(){return Math.round(4294967295*Math.random()).toString(36)},"s"+(new Date).getTime().toString(36)+t()+t()+t());var t}};function Uh(u){var n,o,t,e,i,r,a,s,l,c=(n=[],o=function(e){var t,n,r;if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");return t=e.id||zh.uuid("blobid"),n=e.name||t,{id:q(t),name:q(n),filename:q(n+"."+(r=e.blob.type,{"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png"}[r.toLowerCase()]||"dat")),blob:q(e.blob),base64:q(e.base64),blobUri:q(e.blobUri||le.createObjectURL(e.blob)),uri:q(e.uri)}},{create:function(e,t,n,r){if(R(e))return o({id:e,name:r,blob:t,base64:n});if(A(e))return o(e);throw new Error("Unknown input type")},add:function(e){t(e.id())||n.push(e)},get:t=function(t){return e(function(e){return e.id()===t})},getByUri:function(t){return e(function(e){return e.blobUri()===t})},findFirst:e=function(e){return j(n,e)[0]},removeByUri:function(t){n=j(n,function(e){return e.blobUri()!==t||(le.revokeObjectURL(e.blobUri()),!1)})},destroy:function(){U(n,function(e){le.revokeObjectURL(e.blobUri())}),n=[]}}),f=(a={},s=function(e,t){return{status:e,resultUri:t}},{hasBlobUri:l=function(e){return e in a},getResultUri:function(e){var t=a[e];return t?t.resultUri:null},isPending:function(e){return!!l(e)&&1===a[e].status},isUploaded:function(e){return!!l(e)&&2===a[e].status},markPending:function(e){a[e]=s(1,null)},markUploaded:function(e,t){a[e]=s(2,t)},removeFailed:function(e){delete a[e]},destroy:function(){a={}}}),d=[],m=function(t){return function(e){return u.selection?t(e):[]}},p=function(e,t,n){for(var r=0;-1!==(r=e.indexOf(t,r))&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1),-1!==r;);return e},g=function(e,t,n){return e=p(e,'src="'+t+'"','src="'+n+'"'),e=p(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"')},h=function(t,n){U(u.undoManager.data,function(e){"fragmented"===e.type?e.fragments=W(e.fragments,function(e){return g(e,t,n)}):e.content=g(e.content,t,n)})},v=function(){return u.notificationManager.open({text:u.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})},y=function(e,t){c.removeByUri(e.src),h(e.src,t),u.$(e).attr({src:Dc(u)?t+"?"+(new Date).getTime():t,"data-mce-src":u.convertURL(t,"src")})},b=function(n){return i||(i=Th(f,{url:Oc(u),basePath:Pc(u),credentials:Ic(u),handler:Lc(u)})),k().then(m(function(r){var e;return e=W(r,function(e){return e.blobInfo}),i.upload(e,v).then(m(function(e){var t=W(e,function(e,t){var n=r[t].image;return e.status&&Bc(u)?y(n,e.url):e.error&&xh.uploadError(u,e.error),{element:n,status:e.status}});return n&&n(t),t}))}))},C=function(e){if(Ac(u))return b(e)},w=function(t){return!1!==ee(d,function(e){return e(t)})&&(0!==t.getAttribute("src").indexOf("data:")||Rc(u)(t))},k=function(){var o,i,a;return r||(o=f,i=c,a={},r={findAll:function(e,n){var t;n||(n=q(!0)),t=j(Mh(e),function(e){var t=e.src;return!!pe.fileApi&&!e.hasAttribute("data-mce-bogus")&&!e.hasAttribute("data-mce-placeholder")&&!(!t||t===pe.transparentSrc)&&(0===t.indexOf("blob:")?!o.isUploaded(t)&&n(e):0===t.indexOf("data:")&&n(e))});var r=W(t,function(n){if(a[n.src])return new ge(function(t){a[n.src].then(function(e){if("string"==typeof e)return e;t({image:n,blobInfo:e.blobInfo})})});var e=new ge(function(e,t){Lh(i,n,e,t)}).then(function(e){return delete a[e.image.src],e}).catch(function(e){return delete a[n.src],e});return a[n.src]=e});return ge.all(r)}}),r.findAll(u.getBody(),w).then(m(function(e){return e=j(e,function(e){return"string"!=typeof e||(xh.displayError(u,e),!1)}),U(e,function(e){h(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")}),e}))},x=function(e){return e.replace(/src="(blob:[^"]+)"/g,function(e,n){var t=f.getResultUri(n);if(t)return'src="'+t+'"';var r=c.getByUri(n);return r||(r=X(u.editorManager.get(),function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)},null)),r?'src="data:'+r.blob().type+";base64,"+r.base64()+'"':e})};return u.on("setContent",function(){Ac(u)?C():k()}),u.on("RawSaveContent",function(e){e.content=x(e.content)}),u.on("getContent",function(e){e.source_view||"raw"===e.format||(e.content=x(e.content))}),u.on("PostRender",function(){u.parser.addNodeFilter("img",function(e){U(e,function(e){var t=e.attr("src");if(!c.getByUri(t)){var n=f.getResultUri(t);n&&e.attr("src",n)}})})}),{blobCache:c,addFilter:function(e){d.push(e)},uploadImages:b,uploadImagesAuto:C,scanForImages:k,destroy:function(){c.destroy(),f.destroy(),r=i=null}}}var jh=function(e,t){return e.hasOwnProperty(t.nodeName)},Vh=function(e,t){if(Uo.isText(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||jh(e,t.nextSibling)))return!0}return!1},Hh=function(e){var t,n,r,o,i,a,u,s,l,c,f,d=e.settings,m=e.dom,p=e.selection,g=e.schema,h=g.getBlockElements(),v=p.getStart(),y=e.getBody();if(f=d.forced_root_block,v&&Uo.isElement(v)&&f&&(c=y.nodeName.toLowerCase(),g.isValidChild(c,f.toLowerCase())&&(b=h,C=y,w=v,!z(rf(ur.fromDom(w),ur.fromDom(C)),function(e){return jh(b,e.dom())})))){var b,C,w,k,x;for(n=(t=p.getRng()).startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,l=oh(e),v=y.firstChild;v;)if(k=h,x=v,Uo.isText(x)||Uo.isElement(x)&&!jh(k,x)&&!hl(x)){if(Vh(h,v)){v=(u=v).nextSibling,m.remove(u);continue}a||(a=m.create(f,e.settings.forced_root_block_attrs),v.parentNode.insertBefore(a,v),s=!0),v=(u=v).nextSibling,a.appendChild(u)}else a=null,v=v.nextSibling;s&&l&&(t.setStart(n,r),t.setEnd(o,i),p.setRng(t),e.nodeChanged())}},qh=function(e){e.settings.forced_root_block&&e.on("NodeChange",d(Hh,e))},$h=function(t){return Xr(t).fold(q([t]),function(e){return[t].concat($h(e))})},Wh=function(t){return Yr(t).fold(q([t]),function(e){return"br"===fr(e)?Vr(e).map(function(e){return[t].concat(Wh(e))}).getOr([]):[t].concat(Wh(e))})},Kh=function(o,e){return tu([(i=e,a=i.startContainer,u=i.startOffset,Uo.isText(a)?0===u?_.some(ur.fromDom(a)):_.none():_.from(a.childNodes[u]).map(ur.fromDom)),(t=e,n=t.endContainer,r=t.endOffset,Uo.isText(n)?r===n.data.length?_.some(ur.fromDom(n)):_.none():_.from(n.childNodes[r-1]).map(ur.fromDom))],function(e,t){var n=Y($h(o),d(Mr,e)),r=Y(Wh(o),d(Mr,t));return n.isSome()&&r.isSome()}).getOr(!1);var t,n,r,i,a,u},Xh=function(e,t,n,r){var o=n,i=new mo(n,o),a=e.schema.getNonEmptyElements();do{if(3===n.nodeType&&0!==Jt.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName]&&!/^(TD|TH)$/.test(n.nodeName))return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n));if(pe.ie&&pe.ie<11&&e.isBlock(n)&&e.isEmpty(n))return void(r?t.setStart(n,0):t.setEnd(n,0))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))},Yh=function(e){var t=e.selection.getSel();return t&&0<t.rangeCount};function Gh(i){var r,o=[];"onselectionchange"in i.getDoc()||i.on("NodeChange Click MouseUp KeyUp Focus",function(e){var t,n;n={startContainer:(t=i.selection.getRng()).startContainer,startOffset:t.startOffset,endContainer:t.endContainer,endOffset:t.endOffset},"nodechange"!==e.type&&bp(n,r)||i.fire("SelectionChange"),r=n}),i.on("contextmenu",function(){i.fire("SelectionChange")}),i.on("SelectionChange",function(){var e=i.selection.getStart(!0);!e||!pe.range&&i.selection.isCollapsed()||Yh(i)&&!function(e){var t,n;if((n=i.$(e).parentsUntil(i.getBody()).add(e)).length===o.length){for(t=n.length;0<=t&&n[t]===o[t];t--);if(-1===t)return o=n,!0}return o=n,!1}(e)&&i.dom.isChildOf(e,i.getBody())&&i.nodeChanged({selectionChange:!0})}),i.on("MouseUp",function(e){!e.isDefaultPrevented()&&Yh(i)&&("IMG"===i.selection.getNode().nodeName?be.setEditorTimeout(i,function(){i.nodeChanged()}):i.nodeChanged())}),this.nodeChanged=function(e){var t,n,r,o=i.selection;i.initialized&&o&&!i.settings.disable_nodechange&&!i.readonly&&(r=i.getBody(),(t=o.getStart(!0)||r).ownerDocument===i.getDoc()&&i.dom.isChildOf(t,r)||(t=r),n=[],i.dom.getParent(t,function(e){if(e===r)return!0;n.push(e)}),(e=e||{}).element=t,e.parents=n,i.fire("NodeChange",e))}}var Jh,Qh,Zh=function(e){var t,n,r,o;return o=e.getBoundingClientRect(),n=(t=e.ownerDocument).documentElement,r=t.defaultView,{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}},ev=function(e,t){return n=(u=e).inline?Zh(u.getBody()):{left:0,top:0},a=(i=e).getBody(),r=i.inline?{left:a.scrollLeft,top:a.scrollTop}:{left:0,top:0},{pageX:(o=function(e,t){if(t.target.ownerDocument===e.getDoc())return{left:t.pageX,top:t.pageY};var n,r,o,i,a,u=Zh(e.getContentAreaContainer()),s=(r=(n=e).getBody(),o=n.getDoc().documentElement,i={left:r.scrollLeft,top:r.scrollTop},a={left:r.scrollLeft||o.scrollLeft,top:r.scrollTop||o.scrollTop},n.inline?i:a);return{left:t.pageX-u.left+s.left,top:t.pageY-u.top+s.top}}(e,t)).left-n.left+r.left,pageY:o.top-n.top+r.top};var n,r,o,i,a,u},tv=Uo.isContentEditableFalse,nv=Uo.isContentEditableTrue,rv=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},ov=function(u,s){return function(e){if(0===e.button){var t=Y(s.dom.getParents(e.target),ou(tv,nv)).getOr(null);if(i=s.getBody(),tv(a=t)&&a!==i){var n=s.dom.getPos(t),r=s.getBody(),o=s.getDoc().documentElement;u.element=t,u.screenX=e.screenX,u.screenY=e.screenY,u.maxX=(s.inline?r.scrollWidth:o.offsetWidth)-2,u.maxY=(s.inline?r.scrollHeight:o.offsetHeight)-2,u.relX=e.pageX-n.x,u.relY=e.pageY-n.y,u.width=t.offsetWidth,u.height=t.offsetHeight,u.ghost=function(e,t,n,r){var o=t.cloneNode(!0);e.dom.setStyles(o,{width:n,height:r}),e.dom.setAttrib(o,"data-mce-selected",null);var i=e.dom.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return e.dom.setStyles(i,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),e.dom.setStyles(o,{margin:0,boxSizing:"border-box"}),i.appendChild(o),i}(s,t,u.width,u.height)}}var i,a}},iv=function(c,f){return function(e){if(c.dragging&&(s=(i=f).selection,l=s.getSel().getRangeAt(0).startContainer,a=3===l.nodeType?l.parentNode:l,u=c.element,a!==u&&!i.dom.isChildOf(a,u)&&!tv(a))){var t=(r=c.element,(o=r.cloneNode(!0)).removeAttribute("data-mce-selected"),o),n=f.fire("drop",{targetClone:t,clientX:e.clientX,clientY:e.clientY});n.isDefaultPrevented()||(t=n.targetClone,f.undoManager.transact(function(){rv(c.element),f.insertContent(f.dom.getOuterHTML(t)),f._selectionOverrides.hideFakeCaret()}))}var r,o,i,a,u,s,l;av(c)}},av=function(e){e.dragging=!1,e.element=null,rv(e.ghost)},uv=function(e){var t,n,r,o,i,a,g,h,v,u,s,l={};t=Ei.DOM,a=V.document,n=ov(l,e),g=l,h=e,v=be.throttle(function(e,t){h._selectionOverrides.hideFakeCaret(),h.selection.placeCaretAt(e,t)},0),r=function(e){var t,n,r,o,i,a,u,s,l,c,f,d,m=Math.max(Math.abs(e.screenX-g.screenX),Math.abs(e.screenY-g.screenY));if(g.element&&!g.dragging&&10<m){if(h.fire("dragstart",{target:g.element}).isDefaultPrevented())return;g.dragging=!0,h.focus()}if(g.dragging){var p=(f=g,{pageX:(d=ev(h,e)).pageX-f.relX,pageY:d.pageY+5});l=g.ghost,c=h.getBody(),l.parentNode!==c&&c.appendChild(l),t=g.ghost,n=p,r=g.width,o=g.height,i=g.maxX,a=g.maxY,s=u=0,t.style.left=n.pageX+"px",t.style.top=n.pageY+"px",n.pageX+r>i&&(u=n.pageX+r-i),n.pageY+o>a&&(s=n.pageY+o-a),t.style.width=r-u+"px",t.style.height=o-s+"px",v(e.clientX,e.clientY)}},o=iv(l,e),u=l,i=function(){u.dragging&&s.fire("dragend"),av(u)},(s=e).on("mousedown",n),e.on("mousemove",r),e.on("mouseup",o),t.bind(a,"mousemove",r),t.bind(a,"mouseup",i),e.on("remove",function(){t.unbind(a,"mousemove",r),t.unbind(a,"mouseup",i)})},sv=function(e){var n;uv(e),(n=e).on("drop",function(e){var t=void 0!==e.clientX?n.getDoc().elementFromPoint(e.clientX,e.clientY):null;(tv(t)||tv(n.dom.getContentEditableParent(t)))&&e.preventDefault()})},lv=function(e){return X(e,function(e,t){return e.concat(function(t){var e=function(e){return W(e,function(e){return(e=$a(e)).node=t,e})};if(Uo.isElement(t))return e(t.getClientRects());if(Uo.isText(t)){var n=t.ownerDocument.createRange();return n.setStart(t,0),n.setEnd(t,t.data.length),e(n.getClientRects())}}(t))},[])};(Qh=Jh||(Jh={}))[Qh.Up=-1]="Up",Qh[Qh.Down=1]="Down";var cv=function(o,i,a,e,u,t){var n,s,l=0,c=[],r=function(e){var t,n,r;for(r=lv([e]),-1===o&&(r=r.reverse()),t=0;t<r.length;t++)if(n=r[t],!a(n,s)){if(0<c.length&&i(n,Wt.last(c))&&l++,n.line=l,u(n))return!0;c.push(n)}};return(s=Wt.last(t.getClientRects()))&&(r(n=t.getNode()),function(e,t,n,r){for(;r=ks(r,e,Ha,t);)if(n(r))return}(o,e,r,n)),c},fv=d(cv,Jh.Up,Xa,Ya),dv=d(cv,Jh.Down,Ya,Xa),mv=function(n){return function(e){return t=n,e.line>t;var t}},pv=function(n){return function(e){return t=n,e.line===t;var t}},gv=Uo.isContentEditableFalse,hv=ks,vv=function(e,t){return Math.abs(e.left-t)},yv=function(e,t){return Math.abs(e.right-t)},bv=function(e,t){return e>=t.left&&e<=t.right},Cv=function(e,o){return Wt.reduce(e,function(e,t){var n,r;return n=Math.min(vv(e,o),yv(e,o)),r=Math.min(vv(t,o),yv(t,o)),bv(o,t)?t:bv(o,e)?e:r===n&&gv(t.node)?t:r<n?t:e})},wv=function(e,t,n,r){for(;r=hv(r,e,Ha,t);)if(n(r))return},kv=function(e,t,n){var r,o,i,a,u,s,l,c=lv(j(oe(e.getElementsByTagName("*")),ds)),f=j(c,function(e){return n>=e.top&&n<=e.bottom});return(r=Cv(f,t))&&(r=Cv((a=e,l=function(t,e){var n;return n=j(lv([e]),function(e){return!t(e,u)}),s=s.concat(n),0===n.length},(s=[]).push(u=r),wv(Jh.Up,a,d(l,Xa),u.node),wv(Jh.Down,a,d(l,Ya),u.node),s),t))&&ds(r.node)?(i=t,{node:(o=r).node,before:vv(o,i)<yv(o,i)}):null},xv=function(t,n,e){if(e.collapsed)return!1;if(pe.ie&&pe.ie<=11&&e.startOffset===e.endOffset-1&&e.startContainer===e.endContainer){var r=e.startContainer.childNodes[e.startOffset];if(Uo.isElement(r))return z(r.getClientRects(),function(e){return Ga(e,t,n)})}return z(e.getClientRects(),function(e){return Ga(e,t,n)})},Ev=function(t){var e=ji(function(){if(!t.removed&&t.selection.getRng().collapsed){var e=up(t,t.selection.getRng(),!1);t.selection.setRng(e)}},0);t.on("focus",function(){e.throttle()}),t.on("blur",function(){e.cancel()})},Nv={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(e){return pe.mac?e.metaKey:e.ctrlKey&&!e.altKey}},Sv=Uo.isContentEditableTrue,Tv=Uo.isContentEditableFalse,_v=function(e,t){for(var n=e.getBody();t&&t!==n;){if(Sv(t)||Tv(t))return t;t=t.parentNode}return null},Rv=function(p){var g,e,t,a=p.getBody(),o=cs(p.getBody(),function(e){return p.dom.isBlock(e)},function(){return oh(p)}),h="sel-"+p.dom.uniqueId(),u=function(e){e&&p.selection.setRng(e)},s=function(){return p.selection.getRng()},v=function(e,t,n,r){return void 0===r&&(r=!0),p.fire("ShowCaret",{target:t,direction:e,before:n}).isDefaultPrevented()?null:(r&&p.selection.scrollIntoView(t,-1===e),o.show(n,t))},y=function(e,t){return t=As(e,a,t),-1===e?Su.fromRangeStart(t):Su.fromRangeEnd(t)},n=function(e){return Na(e)||Aa(e)||Da(e)},b=function(e){return n(e.startContainer)||n(e.endContainer)},l=function(e,t){var n,r,o,i,a,u,s,l,c,f,d=p.$,m=p.dom;if(!e)return null;if(e.collapsed){if(!b(e))if(!1===t){if(l=y(-1,e),ds(l.getNode(!0)))return v(-1,l.getNode(!0),!1,!1);if(ds(l.getNode()))return v(-1,l.getNode(),!l.isAtEnd(),!1)}else{if(l=y(1,e),ds(l.getNode()))return v(1,l.getNode(),!l.isAtEnd(),!1);if(ds(l.getNode(!0)))return v(1,l.getNode(!0),!1,!1)}return null}return i=e.startContainer,a=e.startOffset,u=e.endOffset,3===i.nodeType&&0===a&&Tv(i.parentNode)&&(i=i.parentNode,a=m.nodeIndex(i),i=i.parentNode),1!==i.nodeType?null:(u===a+1&&i===e.endContainer&&(n=i.childNodes[a]),Tv(n)?(c=f=n.cloneNode(!0),(s=p.fire("ObjectSelected",{target:n,targetClone:c})).isDefaultPrevented()?null:(r=ra(ur.fromDom(p.getBody()),"#"+h).fold(function(){return d([])},function(e){return d([e.dom()])}),c=s.targetClone,0===r.length&&(r=d('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",h)).appendTo(p.getBody()),e=p.dom.createRng(),c===f&&pe.ie?(r.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(c),e.setStartAfter(r[0].firstChild.firstChild),e.setEndAfter(c)):(r.empty().append(" ").append(c).append(" "),e.setStart(r[0].firstChild,1),e.setEnd(r[0].lastChild,0)),r.css({top:m.getPos(n,p.getBody()).y}),r[0].focus(),(o=p.selection.getSel()).removeAllRanges(),o.addRange(e),U(Ji(ur.fromDom(p.getBody()),"*[data-mce-selected]"),function(e){Er(e,"data-mce-selected")}),n.setAttribute("data-mce-selected","1"),g=n,C(),e)):null)},c=function(){g&&(g.removeAttribute("data-mce-selected"),ra(ur.fromDom(p.getBody()),"#"+h).each(zi),g=null),ra(ur.fromDom(p.getBody()),"#"+h).each(zi),g=null},C=function(){o.hide()};return pe.ceFalse&&(function(){p.on("mouseup",function(e){var t=s();t.collapsed&&fh(p,e.clientX,e.clientY)&&u(ap(p,t,!1))}),p.on("click",function(e){var t;(t=_v(p,e.target))&&(Tv(t)&&(e.preventDefault(),p.focus()),Sv(t)&&p.dom.isChildOf(t,p.selection.getNode())&&c())}),p.on("blur NewBlock",function(){c()}),p.on("ResizeWindow FullscreenStateChanged",function(){return o.reposition()});var n,r,i=function(e,t){var n,r,o=p.dom.getParent(e,p.dom.isBlock),i=p.dom.getParent(t,p.dom.isBlock);return!(!o||!p.dom.isChildOf(o,i)||!1!==Tv(_v(p,o)))||o&&(n=o,r=i,!(p.dom.getParent(n,p.dom.isBlock)===p.dom.getParent(r,p.dom.isBlock)))&&function(e){var t=Ys(e);if(!e.firstChild)return!1;var n=Su.before(e.firstChild),r=t.next(n);return r&&!Pf(r)&&!If(r)}(o)};r=!1,(n=p).on("touchstart",function(){r=!1}),n.on("touchmove",function(){r=!0}),n.on("touchend",function(e){var t=_v(n,e.target);Tv(t)&&(r||(e.preventDefault(),l(ip(n,t))))}),p.on("mousedown",function(e){var t,n=e.target;if((n===a||"HTML"===n.nodeName||p.dom.isChildOf(n,a))&&!1!==fh(p,e.clientX,e.clientY))if(t=_v(p,n))Tv(t)?(e.preventDefault(),l(ip(p,t))):(c(),Sv(t)&&e.shiftKey||xv(e.clientX,e.clientY,p.selection.getRng())||(C(),p.selection.placeCaretAt(e.clientX,e.clientY)));else if(!1===ds(n)){c(),C();var r=kv(a,e.clientX,e.clientY);if(r&&!i(e.target,r.node)){e.preventDefault();var o=v(1,r.node,r.before,!1);p.getBody().focus(),u(o)}}}),p.on("keypress",function(e){Nv.modifierPressed(e)||(e.keyCode,Tv(p.selection.getNode())&&e.preventDefault())}),p.on("getSelectionRange",function(e){var t=e.range;if(g){if(!g.parentNode)return void(g=null);(t=t.cloneRange()).selectNode(g),e.range=t}}),p.on("setSelectionRange",function(e){var t;(t=l(e.range,e.forward))&&(e.range=t)}),p.on("AfterSetSelectionRange",function(e){var t,n=e.range;b(n)||"mcepastebin"===n.startContainer.parentNode.id||C(),t=n.startContainer.parentNode,p.dom.hasClass(t,"mce-offscreen-selection")||c()}),p.on("copy",function(e){var t,n=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!pe.ie){var r=(t=p.dom.get(h))?t.getElementsByTagName("*")[0]:t;r&&(e.preventDefault(),n.clearData(),n.setData("text/html",r.outerHTML),n.setData("text/plain",r.outerText))}}),sv(p),Ev(p)}(),e=p.contentStyles,t=".mce-content-body",e.push(o.getCss()),e.push(t+" .mce-offscreen-selection {position: absolute;left: -9999999999px;max-width: 1000000px;}"+t+" *[contentEditable=false] {cursor: default;}"+t+" *[contentEditable=true] {cursor: text;}")),{showCaret:v,showBlockCaretContainer:function(e){e.hasAttribute("data-mce-caret")&&(Ba(e),u(s()),p.selection.scrollIntoView(e[0]))},hideFakeCaret:C,destroy:function(){o.destroy(),g=null}}},Av=function(e,t,n){var r,o,i,a,u=1;for(a=e.getShortEndedElements(),(i=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g).lastIndex=r=n;o=i.exec(t);){if(r=i.lastIndex,"/"===o[1])u--;else if(!o[1]){if(o[2]in a)continue;u++}if(0===u)break}return r},Dv=function(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null};function Bv(z,U){void 0===U&&(U=fi());var e=function(){};!1!==(z=z||{}).fix_self_closing&&(z.fix_self_closing=!0);var j=z.comment?z.comment:e,V=z.cdata?z.cdata:e,H=z.text?z.text:e,q=z.start?z.start:e,$=z.end?z.end:e,W=z.pi?z.pi:e,K=z.doctype?z.doctype:e;return{parse:function(e){var t,n,r,f,o,i,a,d,u,s,m,l,p,c,g,h,v,y,b,C,w,k,x,E,N,S,T,_,R,A=0,D=[],B=0,O=ei.decode,P=Jt.makeMap("src,href,data,background,formaction,poster,xlink:href"),I=/((java|vb)script|mhtml):/i,L=function(e){var t,n;for(t=D.length;t--&&D[t].name!==e;);if(0<=t){for(n=D.length-1;t<=n;n--)(e=D[n]).valid&&$(e.name);D.length=t}},M=function(e,t,n,r,o){var i,a,u,s,l;if(n=(t=t.toLowerCase())in m?t:O(n||r||o||""),p&&!d&&0==(0===(u=t).indexOf("data-")||0===u.indexOf("aria-"))){if(!(i=y[t])&&b){for(a=b.length;a--&&!(i=b[a]).pattern.test(t););-1===a&&(i=null)}if(!i)return;if(i.validValues&&!(n in i.validValues))return}if(P[t]&&!z.allow_script_urls){var c=n.replace(/[\s\u0000-\u001F]+/g,"");try{c=decodeURIComponent(c)}catch(e){c=unescape(c)}if(I.test(c))return;if(l=c,!(s=z).allow_html_data_urls&&(/^data:image\//i.test(l)?!1===s.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(l):/^data:/i.test(l)))return}d&&(t in P||0===t.indexOf("on"))||(f.map[t]=n,f.push({name:t,value:n}))};for(N=new RegExp("<(?:(?:!--([\\w\\W]*?)--\x3e)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),S=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,s=U.getShortEndedElements(),E=z.self_closing_elements||U.getSelfClosingElements(),m=U.getBoolAttrs(),p=z.validate,u=z.remove_internals,R=z.fix_self_closing,T=U.getSpecialElements(),x=e+">";t=N.exec(x);){if(A<t.index&&H(O(e.substr(A,t.index-A))),n=t[6])":"===(n=n.toLowerCase()).charAt(0)&&(n=n.substr(1)),L(n);else if(n=t[7]){if(t.index+t[0].length>e.length){H(O(e.substr(t.index))),A=t.index+t[0].length;continue}":"===(n=n.toLowerCase()).charAt(0)&&(n=n.substr(1)),l=n in s,R&&E[n]&&0<D.length&&D[D.length-1].name===n&&L(n);var F=Dv(S,t[8]);if(null!==F){if("all"===F){A=Av(U,e,N.lastIndex),N.lastIndex=A;continue}g=!1}if(!p||(c=U.getElementRule(n))){if(g=!0,p&&(y=c.attributes,b=c.attributePatterns),(v=t[8])?((d=-1!==v.indexOf("data-mce-type"))&&u&&(g=!1),(f=[]).map={},v.replace(S,M)):(f=[]).map={},p&&!d){if(C=c.attributesRequired,w=c.attributesDefault,k=c.attributesForced,c.removeEmptyAttrs&&!f.length&&(g=!1),k)for(o=k.length;o--;)a=(h=k[o]).name,"{$uid}"===(_=h.value)&&(_="mce_"+B++),f.map[a]=_,f.push({name:a,value:_});if(w)for(o=w.length;o--;)(a=(h=w[o]).name)in f.map||("{$uid}"===(_=h.value)&&(_="mce_"+B++),f.map[a]=_,f.push({name:a,value:_}));if(C){for(o=C.length;o--&&!(C[o]in f.map););-1===o&&(g=!1)}if(h=f.map["data-mce-bogus"]){if("all"===h){A=Av(U,e,N.lastIndex),N.lastIndex=A;continue}g=!1}}g&&q(n,f,l)}else g=!1;if(r=T[n]){r.lastIndex=A=t.index+t[0].length,A=(t=r.exec(e))?(g&&(i=e.substr(A,t.index-A)),t.index+t[0].length):(i=e.substr(A),e.length),g&&(0<i.length&&H(i,!0),$(n)),N.lastIndex=A;continue}l||(v&&v.indexOf("/")===v.length-1?g&&$(n):D.push({name:n,valid:g}))}else(n=t[1])?(">"===n.charAt(0)&&(n=" "+n),z.allow_conditional_comments||"[if"!==n.substr(0,3).toLowerCase()||(n=" "+n),j(n)):(n=t[2])?V(n.replace(/<!--|-->/g,"")):(n=t[3])?K(n):(n=t[4])&&W(n,t[5]);A=t.index+t[0].length}for(A<e.length&&H(O(e.substr(A))),o=D.length-1;0<=o;o--)(n=D[o]).valid&&$(n.name)}}}(Bv||(Bv={})).findEndTag=Av;var Ov=Bv,Pv=function(e,t){var n,r,o,i,a,u,s,l,c=t,f=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,d=e.schema;for(u=e.getTempAttrs(),s=c,l=new RegExp(["\\s?("+u.join("|")+')="[^"]+"'].join("|"),"gi"),c=s.replace(l,""),a=d.getShortEndedElements();i=f.exec(c);)r=f.lastIndex,o=i[0].length,n=a[i[1]]?r:Ov.findEndTag(d,c,r),c=c.substring(0,r-o)+c.substring(n),f.lastIndex=r-o;return Ca(c)},Iv={trimExternal:Pv,trimInternal:Pv},Lv=0,Mv=2,Fv=1,zv=function(p,g){var e=p.length+g.length+2,h=new Array(e),v=new Array(e),l=function(e,t,n,r,o){var i=c(e,t,n,r);if(null===i||i.start===t&&i.diag===t-r||i.end===e&&i.diag===e-n)for(var a=e,u=n;a<t||u<r;)a<t&&u<r&&p[a]===g[u]?(o.push([0,p[a]]),++a,++u):r-n<t-e?(o.push([2,p[a]]),++a):(o.push([1,g[u]]),++u);else{l(e,i.start,n,i.start-i.diag,o);for(var s=i.start;s<i.end;++s)o.push([0,p[s]]);l(i.end,t,i.end-i.diag,r,o)}},y=function(e,t,n,r){for(var o=e;o-t<r&&o<n&&p[o]===g[o-t];)++o;return{start:e,end:o,diag:t}},c=function(e,t,n,r){var o=t-e,i=r-n;if(0===o||0===i)return null;var a,u,s,l,c,f=o-i,d=i+o,m=(d%2==0?d:d+1)/2;for(h[1+m]=e,v[1+m]=t+1,a=0;a<=m;++a){for(u=-a;u<=a;u+=2){for(s=u+m,u===-a||u!==a&&h[s-1]<h[s+1]?h[s]=h[s+1]:h[s]=h[s-1]+1,c=(l=h[s])-e+n-u;l<t&&c<r&&p[l]===g[c];)h[s]=++l,++c;if(f%2!=0&&f-a<=u&&u<=f+a&&v[s-f]<=h[s])return y(v[s-f],u+e-n,t,r)}for(u=f-a;u<=f+a;u+=2){for(s=u+m-f,u===f-a||u!==f+a&&v[s+1]<=v[s-1]?v[s]=v[s+1]-1:v[s]=v[s-1],c=(l=v[s]-1)-e+n-u;e<=l&&n<=c&&p[l]===g[c];)v[s]=l--,c--;if(f%2==0&&-a<=u&&u<=a&&v[s]<=h[s+f])return y(v[s],u+e-n,t,r)}}},t=[];return l(0,p.length,0,g.length,t),t},Uv=function(e){return Uo.isElement(e)?e.outerHTML:Uo.isText(e)?ei.encodeRaw(e.data,!1):Uo.isComment(e)?"\x3c!--"+e.data+"--\x3e":""},jv=function(e,t,n){var r=function(e){var t,n,r;for(r=V.document.createElement("div"),t=V.document.createDocumentFragment(),e&&(r.innerHTML=e);n=r.firstChild;)t.appendChild(n);return t}(t);if(e.hasChildNodes()&&n<e.childNodes.length){var o=e.childNodes[n];o.parentNode.insertBefore(r,o)}else e.appendChild(r)},Vv=function(e){return j(W(oe(e.childNodes),Uv),function(e){return 0<e.length})},Hv=function(e,t){var n,r,o,i=W(oe(t.childNodes),Uv);return n=zv(i,e),r=t,o=0,U(n,function(e){e[0]===Lv?o++:e[0]===Fv?(jv(r,e[1],o),o++):e[0]===Mv&&function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}}(r,o)}),t},qv=Vi(_.none()),$v=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},Wv=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},Kv=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},Xv=function(e){var t=ur.fromTag("body",qv.get().getOrThunk(function(){var e=V.document.implementation.createHTMLDocument("undo");return qv.set(_.some(e)),e}));return ha(t,Kv(e)),U(Ji(t,"*[data-mce-bogus]"),Ui),t.dom().innerHTML},Yv=function(n){var e,t,r;return e=Vv(n.getBody()),-1!==(t=(r=Z(e,function(e){var t=Iv.trimInternal(n.serializer,e);return 0<t.length?[t]:[]})).join("")).indexOf("</iframe>")?$v(r):Wv(t)},Gv=function(e,t,n){"fragmented"===t.type?Hv(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(n?t.beforeBookmark:t.bookmark)},Jv=function(e,t){return!(!e||!t)&&(r=t,Kv(e)===Kv(r)||(n=t,Xv(e)===Xv(n)));var n,r};function Qv(u){var s,r,o=this,l=0,c=[],t=0,f=function(){return 0===t},i=function(e){f()&&(o.typing=e)},d=function(e){u.setDirty(e)},a=function(e){i(!1),o.add({},e)},n=function(){o.typing&&(i(!1),o.add())};return u.on("init",function(){o.add()}),u.on("BeforeExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&(n(),o.beforeChange())}),u.on("ExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&a(e)}),u.on("ObjectResizeStart Cut",function(){o.beforeChange()}),u.on("SaveContent ObjectResized blur",a),u.on("DragEnd",a),u.on("KeyUp",function(e){var t=e.keyCode;e.isDefaultPrevented()||((33<=t&&t<=36||37<=t&&t<=40||45===t||e.ctrlKey)&&(a(),u.nodeChanged()),46!==t&&8!==t||u.nodeChanged(),r&&o.typing&&!1===Jv(Yv(u),c[0])&&(!1===u.isDirty()&&(d(!0),u.fire("change",{level:c[0],lastLevel:null})),u.fire("TypingUndo"),r=!1,u.nodeChanged()))}),u.on("KeyDown",function(e){var t=e.keyCode;if(!e.isDefaultPrevented())if(33<=t&&t<=36||37<=t&&t<=40||45===t)o.typing&&a(e);else{var n=e.ctrlKey&&!e.altKey||e.metaKey;!(t<16||20<t)||224===t||91===t||o.typing||n||(o.beforeChange(),i(!0),o.add({},e),r=!0)}}),u.on("MouseDown",function(e){o.typing&&a(e)}),u.on("input",function(e){var t;e.inputType&&("insertReplacementText"===e.inputType||"insertText"===(t=e).inputType&&null===t.data)&&a(e)}),u.addShortcut("meta+z","","Undo"),u.addShortcut("meta+y,meta+shift+z","","Redo"),u.on("AddUndo Undo Redo ClearUndos",function(e){e.isDefaultPrevented()||u.nodeChanged()}),o={data:c,typing:!1,beforeChange:function(){f()&&(s=Ku.getUndoBookmark(u.selection))},add:function(e,t){var n,r,o,i=u.settings;if(o=Yv(u),e=e||{},e=Jt.extend(e,o),!1===f()||u.removed)return null;if(r=c[l],u.fire("BeforeAddUndo",{level:e,lastLevel:r,originalEvent:t}).isDefaultPrevented())return null;if(r&&Jv(r,e))return null;if(c[l]&&(c[l].beforeBookmark=s),i.custom_undo_redo_levels&&c.length>i.custom_undo_redo_levels){for(n=0;n<c.length-1;n++)c[n]=c[n+1];c.length--,l=c.length}e.bookmark=Ku.getUndoBookmark(u.selection),l<c.length-1&&(c.length=l+1),c.push(e),l=c.length-1;var a={level:e,lastLevel:r,originalEvent:t};return u.fire("AddUndo",a),0<l&&(d(!0),u.fire("change",a)),e},undo:function(){var e;return o.typing&&(o.add(),o.typing=!1,i(!1)),0<l&&(e=c[--l],Gv(u,e,!0),d(!0),u.fire("undo",{level:e})),e},redo:function(){var e;return l<c.length-1&&(e=c[++l],Gv(u,e,!1),d(!0),u.fire("redo",{level:e})),e},clear:function(){c=[],l=0,o.typing=!1,o.data=c,u.fire("ClearUndos")},hasUndo:function(){return 0<l||o.typing&&c[0]&&!Jv(Yv(u),c[0])},hasRedo:function(){return l<c.length-1&&!o.typing},transact:function(e){return n(),o.beforeChange(),o.ignore(e),o.add()},ignore:function(e){try{t++,e()}finally{t--}},extra:function(e,t){var n,r;o.transact(e)&&(r=c[l].bookmark,n=c[l-1],Gv(u,n,!0),o.transact(t)&&(c[l-1].beforeBookmark=r))}}}var Zv,ey,ty={},ny=Wt.filter,ry=Wt.each;ey=function(e){var t,n,r=e.selection.getRng();t=Uo.matchNodeNames("pre"),r.collapsed||(n=e.selection.getSelectedBlocks(),ry(ny(ny(n,t),function(e){return t(e.previousSibling)&&-1!==Wt.indexOf(n,e.previousSibling)}),function(e){var t,n;t=e.previousSibling,vn(n=e).remove(),vn(t).append("<br><br>").append(n.childNodes)}))},ty[Zv="pre"]||(ty[Zv]=[]),ty[Zv].push(ey);var oy=function(e,t){ry(ty[e],function(e){e(t)})},iy=/^(src|href|style)$/,ay=Jt.each,uy=Cl.isEq,sy=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},ly=function(e,t,n){var r,o,i;return r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"],Uo.isElement(r)&&(i=r.childNodes.length-1,!n&&o&&o--,r=r.childNodes[i<o?i:o]),Uo.isText(r)&&n&&o>=r.nodeValue.length&&(r=new mo(r,e.getBody()).next()||r),Uo.isText(r)&&!n&&0===o&&(r=new mo(r,e.getBody()).prev()||r),r},cy=function(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o},fy=function(e,t,n,r,o){var i=ur.fromDom(t),a=ur.fromDom(e.create(r,o)),u=n?$r(i):qr(i);return Mi(a,u),n?(Oi(i,a),Ii(a,i)):(Pi(i,a),Li(a,i)),a.dom()},dy=function(e,t,n,r){return!(t=Cl.getNonWhiteSpaceSibling(t,n,r))||"BR"===t.nodeName||e.isBlock(t)},my=function(e,n,r,o,i){var t,a,u,s,l,c,f,d,m,p,g,h,v,y,b=e.dom;if(l=b,!(uy(c=o,(f=n).inline)||uy(c,f.block)||(f.selector?Uo.isElement(c)&&l.is(c,f.selector):void 0)||(s=o,n.links&&"A"===s.tagName)))return!1;if("all"!==n.remove)for(ay(n.styles,function(e,t){e=Cl.normalizeStyleValue(b,Cl.replaceVars(e,r),t),"number"==typeof t&&(t=e,i=0),(n.remove_similar||!i||uy(Cl.getStyle(b,i,t),e))&&b.setStyle(o,t,""),u=1}),u&&""===b.getAttrib(o,"style")&&(o.removeAttribute("style"),o.removeAttribute("data-mce-style")),ay(n.attributes,function(e,t){var n;if(e=Cl.replaceVars(e,r),"number"==typeof t&&(t=e,i=0),!i||uy(b.getAttrib(i,t),e)){if("class"===t&&(e=b.getAttrib(o,t))&&(n="",ay(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(n+=(n?" ":"")+e)}),n))return void b.setAttrib(o,t,n);"class"===t&&o.removeAttribute("className"),iy.test(t)&&o.removeAttribute("data-mce-"+t),o.removeAttribute(t)}}),ay(n.classes,function(e){e=Cl.replaceVars(e,r),i&&!b.hasClass(i,e)||b.removeClass(o,e)}),a=b.getAttribs(o),t=0;t<a.length;t++){var C=a[t].nodeName;if(0!==C.indexOf("_")&&0!==C.indexOf("data-"))return!1}return"none"!==n.remove?(d=e,p=n,h=(m=o).parentNode,v=d.dom,y=d.settings.forced_root_block,p.block&&(y?h===v.getRoot()&&(p.list_block&&uy(m,p.list_block)||ay(Jt.grep(m.childNodes),function(e){Cl.isValid(d,y,e.nodeName.toLowerCase())?g?g.appendChild(e):(g=cy(v,e,y),v.setAttribs(g,d.settings.forced_root_block_attrs)):g=0})):v.isBlock(m)&&!v.isBlock(h)&&(dy(v,m,!1)||dy(v,m.firstChild,!0,1)||m.insertBefore(v.create("br"),m.firstChild),dy(v,m,!0)||dy(v,m.lastChild,!1,1)||m.appendChild(v.create("br")))),p.selector&&p.inline&&!uy(p.inline,m)||v.remove(m,1),!0):void 0},py=my,gy=function(s,l,c,e,f){var t,n,d=s.formatter.get(l),m=d[0],a=!0,u=s.dom,r=s.selection,i=function(e){var n,t,r,o,i,a,u=(n=s,t=e,r=l,o=c,i=f,ay(Cl.getParents(n.dom,t.parentNode).reverse(),function(e){var t;a||"_start"===e.id||"_end"===e.id||(t=Mm.matchNode(n,e,r,o,i))&&!1!==t.split&&(a=e)}),a);return function(e,t,n,r,o,i,a,u){var s,l,c,f,d,m,p=e.dom;if(n){for(m=n.parentNode,s=r.parentNode;s&&s!==m;s=s.parentNode){for(l=p.clone(s,!1),d=0;d<t.length;d++)if(my(e,t[d],u,l,l)){l=0;break}l&&(c&&l.appendChild(c),f||(f=l),c=l)}!i||a.mixed&&p.isBlock(n)||(r=p.split(n,r)),c&&(o.parentNode.insertBefore(c,o),f.appendChild(o))}return r}(s,d,u,e,e,!0,m,c)},p=function(e){var t,n,r,o,i;if(Uo.isElement(e)&&u.getContentEditable(e)&&(o=a,a="true"===u.getContentEditable(e),i=!0),t=Jt.grep(e.childNodes),a&&!i)for(n=0,r=d.length;n<r&&!my(s,d[n],c,e,e);n++);if(m.deep&&t.length){for(n=0,r=t.length;n<r;n++)p(t[n]);i&&(a=o)}},g=function(e){var t,n=u.get(e?"_start":"_end"),r=n[e?"firstChild":"lastChild"];return hl(t=r)&&Uo.isElement(t)&&("_start"===t.id||"_end"===t.id)&&(r=r[e?"firstChild":"lastChild"]),Uo.isText(r)&&0===r.data.length&&(r=e?n.previousSibling||n.nextSibling:n.nextSibling||n.previousSibling),u.remove(n,!0),r},o=function(e){var t,n,r=e.commonAncestorContainer;if(e=Bl(s,e,d,!0),m.split){if(e=zm(e),(t=ly(s,e,!0))!==(n=ly(s,e))){if(/^(TR|TH|TD)$/.test(t.nodeName)&&t.firstChild&&(t="TR"===t.nodeName?t.firstChild.firstChild||t:t.firstChild||t),r&&/^T(HEAD|BODY|FOOT|R)$/.test(r.nodeName)&&/^(TH|TD)$/.test(n.nodeName)&&n.firstChild&&(n=n.firstChild||n),sy(u,t,n)){var o=_.from(t.firstChild).getOr(t);return i(fy(u,o,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void g(!0)}if(sy(u,n,t))return o=_.from(n.lastChild).getOr(n),i(fy(u,o,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void g(!1);t=cy(u,t,"span",{id:"_start","data-mce-type":"bookmark"}),n=cy(u,n,"span",{id:"_end","data-mce-type":"bookmark"}),i(t),i(n),t=g(!0),n=g()}else t=n=i(t);e.startContainer=t.parentNode?t.parentNode:t,e.startOffset=u.nodeIndex(t),e.endContainer=n.parentNode?n.parentNode:n,e.endOffset=u.nodeIndex(n)+1}Pl(u,e,function(e){ay(e,function(e){p(e),Uo.isElement(e)&&"underline"===s.dom.getStyle(e,"text-decoration")&&e.parentNode&&"underline"===Cl.getTextDecoration(u,e.parentNode)&&my(s,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,e)})})};if(e)e.nodeType?((n=u.createRng()).setStartBefore(e),n.setEndAfter(e),o(n)):o(e);else if("false"!==u.getContentEditable(r.getNode()))r.isCollapsed()&&m.inline&&!u.select("td[data-mce-selected],th[data-mce-selected]").length?function(e,t,n,r){var o,i,a,u,s,l,c,f=e.dom,d=e.selection,m=[],p=d.getRng();for(o=p.startContainer,i=p.startOffset,3===(s=o).nodeType&&(i!==o.nodeValue.length&&(u=!0),s=s.parentNode);s;){if(Mm.matchNode(e,s,t,n,r)){l=s;break}s.nextSibling&&(u=!0),m.push(s),s=s.parentNode}if(l)if(u){a=d.getBookmark(),p.collapse(!0);var g=Bl(e,p,e.formatter.get(t),!0);g=zm(g),e.formatter.remove(t,n,g),d.moveToBookmark(a)}else{c=Gu(e.getBody(),l);var h=qm(!1).dom(),v=Ym(m,h);Km(e,h,c||l),$m(e,c,!1),d.setCursorLocation(v,1),f.isEmpty(l)&&f.remove(l)}}(s,l,c,f):(t=Ku.getPersistentBookmark(s.selection,!0),o(r.getRng()),r.moveToBookmark(t),m.inline&&Mm.match(s,l,c,r.getStart())&&Cl.moveStart(u,r,r.getRng()),s.nodeChanged());else{e=r.getNode();for(var h=0,v=d.length;h<v&&(!d[h].ceFalseOverride||!my(s,d[h],c,e,e));h++);}},hy=Jt.each,vy=function(e){return e&&1===e.nodeType&&!hl(e)&&!Yu(e)&&!Uo.isBogus(e)},yy=function(e,t){var n;for(n=e;n;n=n[t]){if(3===n.nodeType&&0!==n.nodeValue.length)return e;if(1===n.nodeType&&!hl(n))return n}return e},by=function(e,t,n){var r,o,i=new Ql(e);if(t&&n&&(t=yy(t,"previousSibling"),n=yy(n,"nextSibling"),i.compare(t,n))){for(r=t.nextSibling;r&&r!==n;)r=(o=r).nextSibling,t.appendChild(o);return e.remove(n),Jt.each(Jt.grep(n.childNodes),function(e){t.appendChild(e)}),t}return n},Cy=function(e,t,n){hy(e.childNodes,function(e){vy(e)&&(t(e)&&n(e),e.hasChildNodes()&&Cy(e,t,n))})},wy=function(n,e){return d(function(e,t){return!(!t||!Cl.getStyle(n,t,e))},e)},ky=function(r,e,t){return d(function(e,t,n){r.setStyle(n,e,t),""===n.getAttribute("style")&&n.removeAttribute("style"),xy(r,n)},e,t)},xy=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},Ey=function(e,t){var n;1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType&&(n=Cl.getTextDecoration(e,t.parentNode),e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null))},Ny=function(n,e,r,o){hy(e,function(t){hy(n.dom.select(t.inline,o),function(e){vy(e)&&py(n,t,r,e,t.exact?e:null)}),function(r,e,t){if(e.clear_child_styles){var n=e.links?"*:not(a)":"*";hy(r.select(n,t),function(n){vy(n)&&hy(e.styles,function(e,t){r.setStyle(n,t,"")})})}}(n.dom,t,o)})},Sy=function(e,t,n,r){(t.styles.color||t.styles.textDecoration)&&(Jt.walk(r,d(Ey,e),"childNodes"),Ey(e,r))},Ty=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&Cy(r,wy(e,"fontSize"),ky(e,"backgroundColor",Cl.replaceVars(t.styles.backgroundColor,n)))},_y=function(e,t,n,r){"sub"!==t.inline&&"sup"!==t.inline||(Cy(r,wy(e,"fontSize"),ky(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},Ry=function(e,t,n,r){r&&!1!==t.merge_siblings&&(r=by(e,Cl.getNonWhiteSpaceSibling(r),r),r=by(e,r,Cl.getNonWhiteSpaceSibling(r,!0)))},Ay=function(t,n,r,o,i){Mm.matchNode(t,i.parentNode,r,o)&&py(t,n,o,i)||n.merge_with_parents&&t.dom.getParent(i.parentNode,function(e){if(Mm.matchNode(t,e,r,o))return py(t,n,o,i),!0})},Dy=Jt.each,By=function(p,g,h,r){var e,t,v=p.formatter.get(g),y=v[0],o=!r&&p.selection.isCollapsed(),i=p.dom,n=p.selection,b=function(n,e){if(e=e||y,n){if(e.onformat&&e.onformat(n,e,h,r),Dy(e.styles,function(e,t){i.setStyle(n,t,Cl.replaceVars(e,h))}),e.styles){var t=i.getAttrib(n,"style");t&&n.setAttribute("data-mce-style",t)}Dy(e.attributes,function(e,t){i.setAttrib(n,t,Cl.replaceVars(e,h))}),Dy(e.classes,function(e){e=Cl.replaceVars(e,h),i.hasClass(n,e)||i.addClass(n,e)})}},C=function(e,t){var n=!1;return!!y.selector&&(Dy(e,function(e){if(!("collapsed"in e&&e.collapsed!==o))return i.is(t,e.selector)&&!Yu(t)?(b(t,e),!(n=!0)):void 0}),n)},a=function(s,e,t,l){var c,f,d=[],m=!0;c=y.inline||y.block,f=s.create(c),b(f),Pl(s,e,function(e){var a,u=function(e){var t,n,r,o;if(o=m,t=e.nodeName.toLowerCase(),n=e.parentNode.nodeName.toLowerCase(),1===e.nodeType&&s.getContentEditable(e)&&(o=m,m="true"===s.getContentEditable(e),r=!0),Cl.isEq(t,"br"))return a=0,void(y.block&&s.remove(e));if(y.wrapper&&Mm.matchNode(p,e,g,h))a=0;else{if(m&&!r&&y.block&&!y.wrapper&&Cl.isTextBlock(p,t)&&Cl.isValid(p,n,c))return e=s.rename(e,c),b(e),d.push(e),void(a=0);if(y.selector){var i=C(v,e);if(!y.inline||i)return void(a=0)}!m||r||!Cl.isValid(p,c,t)||!Cl.isValid(p,n,c)||!l&&3===e.nodeType&&1===e.nodeValue.length&&65279===e.nodeValue.charCodeAt(0)||Yu(e)||y.inline&&s.isBlock(e)?(a=0,Dy(Jt.grep(e.childNodes),u),r&&(m=o),a=0):(a||(a=s.clone(f,!1),e.parentNode.insertBefore(a,e),d.push(a)),a.appendChild(e))}};Dy(e,u)}),!0===y.links&&Dy(d,function(e){var t=function(e){"A"===e.nodeName&&b(e,y),Dy(Jt.grep(e.childNodes),t)};t(e)}),Dy(d,function(e){var t,n,r,o,i,a=function(e){var n=!1;return Dy(e.childNodes,function(e){if((t=e)&&1===t.nodeType&&!hl(t)&&!Yu(t)&&!Uo.isBogus(t))return n=e,!1;var t}),n};n=0,Dy(e.childNodes,function(e){Cl.isWhiteSpaceNode(e)||hl(e)||n++}),t=n,!(1<d.length)&&s.isBlock(e)||0!==t?(y.inline||y.wrapper)&&(y.exact||1!==t||((o=a(r=e))&&!hl(o)&&Mm.matchName(s,o,y)&&(i=s.clone(o,!1),b(i),s.replace(i,r,!0),s.remove(o,1)),e=i||r),Ny(p,v,h,e),Ay(p,y,g,h,e),Ty(s,y,h,e),_y(s,y,h,e),Ry(s,y,h,e)):s.remove(e,1)})};if("false"!==i.getContentEditable(n.getNode())){if(y){if(r)r.nodeType?C(v,r)||((t=i.createRng()).setStartBefore(r),t.setEndAfter(r),a(i,Bl(p,t,v),0,!0)):a(i,r,0,!0);else if(o&&y.inline&&!i.select("td[data-mce-selected],th[data-mce-selected]").length)!function(e,t,n){var r,o,i,a,u,s,l=e.selection;a=(r=l.getRng(!0)).startOffset,s=r.startContainer.nodeValue,(o=Gu(e.getBody(),l.getStart()))&&(i=Hm(o));var c,f,d=/[^\s\u00a0\u00ad\u200b\ufeff]/;s&&0<a&&a<s.length&&d.test(s.charAt(a))&&d.test(s.charAt(a-1))?(u=l.getBookmark(),r.collapse(!0),r=Bl(e,r,e.formatter.get(t)),r=zm(r),e.formatter.apply(t,n,r),l.moveToBookmark(u)):(o&&i.nodeValue===Um||(c=e.getDoc(),f=qm(!0).dom(),i=(o=c.importNode(f,!0)).firstChild,r.insertNode(o),a=1),e.formatter.apply(t,n,o),l.setCursorLocation(i,a))}(p,g,h);else{var u=p.selection.getNode();p.settings.forced_root_block||!v[0].defaultBlock||i.getParent(u,i.isBlock)||By(p,v[0].defaultBlock),p.selection.setRng(uc(p.selection.getRng())),e=Ku.getPersistentBookmark(p.selection,!0),a(i,Bl(p,n.getRng(),v)),y.styles&&Sy(i,y,h,u),n.moveToBookmark(e),Cl.moveStart(i,n,n.getRng()),p.nodeChanged()}oy(g,p)}}else{r=n.getNode();for(var s=0,l=v.length;s<l;s++)if(v[s].ceFalseOverride&&i.is(r,v[s].selector))return void b(r,v[s])}},Oy={applyFormat:By},Py=Jt.each,Iy=function(e,t,n,r,o){var i,a,u,s,l,c,f,d;null===t.get()&&(a=e,u={},(i=t).set({}),a.on("NodeChange",function(n){var r=Cl.getParents(a.dom,n.element),o={};r=Jt.grep(r,function(e){return 1===e.nodeType&&!e.getAttribute("data-mce-bogus")}),Py(i.get(),function(e,n){Py(r,function(t){return a.formatter.matchNode(t,n,{},e.similar)?(u[n]||(Py(e,function(e){e(!0,{node:t,format:n,parents:r})}),u[n]=e),o[n]=e,!1):!Mm.matchesUnInheritedFormatSelector(a,t,n)&&void 0})}),Py(u,function(e,t){o[t]||(delete u[t],Py(e,function(e){e(!1,{node:n.element,format:t,parents:r})}))})})),l=n,c=r,f=o,d=(s=t).get(),Py(l.split(","),function(e){d[e]||(d[e]=[],d[e].similar=f),d[e].push(c)}),s.set(d)},Ly={get:function(r){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(n,e,t){Jt.each(t,function(e,t){r.setAttrib(n,t,e)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return Jt.each("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),function(e){t[e]={block:e,remove:"all"}}),t}},My=Jt.each,Fy=Ei.DOM,zy=function(e,t){var n,o,r,m=t&&t.schema||fi({}),p=function(e){var t,n,r;return o="string"==typeof e?{name:e,classes:[],attrs:{}}:e,t=Fy.create(o.name),n=t,(r=o).classes.length&&Fy.addClass(n,r.classes.join(" ")),Fy.setAttribs(n,r.attrs),t},g=function(n,e,t){var r,o,i,a,u,s,l,c,f=0<e.length&&e[0],d=f&&f.name;if(u=d,s="string"!=typeof(a=n)?a.nodeName.toLowerCase():a,l=m.getElementRule(s),i=!(!(c=l&&l.parentsRequired)||!c.length)&&(u&&-1!==Jt.inArray(c,u)?u:c[0]))d===i?(o=e[0],e=e.slice(1)):o=i;else if(f)o=e[0],e=e.slice(1);else if(!t)return n;return o&&(r=p(o)).appendChild(n),t&&(r||(r=Fy.create("div")).appendChild(n),Jt.each(t,function(e){var t=p(e);r.insertBefore(t,n)})),g(r,e,o&&o.siblings)};return e&&e.length?(o=e[0],n=p(o),(r=Fy.create("div")).appendChild(g(n,e.slice(1),o.siblings)),r):""},Uy=function(e){var t,a={classes:[],attrs:{}};return"*"!==(e=a.selector=Jt.trim(e))&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,function(e,t,n,r,o){switch(t){case"#":a.attrs.id=n;break;case".":a.classes.push(n);break;case":":-1!==Jt.inArray("checked disabled enabled read-only required".split(" "),n)&&(a.attrs[n]=n)}if("["===r){var i=o.match(/([\w\-]+)(?:\=\"([^\"]+))?/);i&&(a.attrs[i[1]]=i[2])}return""})),a.name=t||"div",a},jy=function(e){return e&&"string"==typeof e?(e=(e=e.split(/\s*,\s*/)[0]).replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),Jt.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),function(e){var t=Jt.map(e.split(/(?:~\+|~|\+)/),Uy),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[]},Vy=function(n,e){var t,r,o,i,a,u,s="";if(!1===(u=n.settings.preview_styles))return"";"string"!=typeof u&&(u="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow");var l=function(e){return e.replace(/%(\w+)/g,"")};if("string"==typeof e){if(!(e=n.formatter.get(e)))return;e=e[0]}return"preview"in e&&!1===(u=e.preview)?"":(t=e.block||e.inline||"span",r=(i=jy(e.selector)).length?(i[0].name||(i[0].name=t),t=e.selector,zy(i,n)):zy([t],n),o=Fy.select(t,r)[0]||r.firstChild,My(e.styles,function(e,t){(e=l(e))&&Fy.setStyle(o,t,e)}),My(e.attributes,function(e,t){(e=l(e))&&Fy.setAttrib(o,t,e)}),My(e.classes,function(e){e=l(e),Fy.hasClass(o,e)||Fy.addClass(o,e)}),n.fire("PreviewFormats"),Fy.setStyles(r,{position:"absolute",left:-65535}),n.getBody().appendChild(r),a=Fy.getStyle(n.getBody(),"fontSize",!0),a=/px$/.test(a)?parseInt(a,10):0,My(u.split(" "),function(e){var t=Fy.getStyle(o,e,!0);if(!("background-color"===e&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(t)&&(t=Fy.getStyle(n.getBody(),e,!0),"#ffffff"===Fy.toHex(t).toLowerCase())||"color"===e&&"#000000"===Fy.toHex(t).toLowerCase())){if("font-size"===e&&/em|%$/.test(t)){if(0===a)return;t=parseFloat(t)/(/%$/.test(t)?100:1)*a+"px"}"border"===e&&t&&(s+="padding:0 2px;"),s+=e+":"+t+";"}}),n.fire("AfterPreviewFormats"),Fy.remove(r),s)},Hy=function(e,t,n,r,o){var i=t.get(n);!Mm.match(e,n,r,o)||"toggle"in i[0]&&!i[0].toggle?Oy.applyFormat(e,n,r,o):gy(e,n,r,o)},qy=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])};function $y(e){var t,n,r,o=(t=e,n={},(r=function(e,t){e&&("string"!=typeof e?Jt.each(e,function(e,t){r(t,e)}):(t=t.length?t:[t],Jt.each(t,function(e){void 0===e.deep&&(e.deep=!e.selector),void 0===e.split&&(e.split=!e.selector||e.inline),void 0===e.remove&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"==typeof e.classes&&(e.classes=e.classes.split(/\s+/))}),n[e]=t))})(Ly.get(t.dom)),r(t.settings.formats),{get:function(e){return e?n[e]:n},register:r,unregister:function(e){return e&&n[e]&&delete n[e],n}}),i=Vi(null);return qy(e),Gm(e),{get:o.get,register:o.register,unregister:o.unregister,apply:d(Oy.applyFormat,e),remove:d(gy,e),toggle:d(Hy,e,o),match:d(Mm.match,e),matchAll:d(Mm.matchAll,e),matchNode:d(Mm.matchNode,e),canApply:d(Mm.canApply,e),formatChanged:d(Iy,e,i),getCssText:d(Vy,e)}}var Wy,Ky=Object.prototype.hasOwnProperty,Xy=(Wy=function(e,t){return t},function(){for(var e=new Array(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];if(0===e.length)throw new Error("Can't merge zero objects");for(var n={},r=0;r<e.length;r++){var o=e[r];for(var i in o)Ky.call(o,i)&&(n[i]=Wy(n[i],o[i]))}return n}),Yy={register:function(t,s,l){t.addAttributeFilter("data-mce-tabindex",function(e,t){for(var n,r=e.length;r--;)(n=e[r]).attr("tabindex",n.attributes.map["data-mce-tabindex"]),n.attr(t,null)}),t.addAttributeFilter("src,href,style",function(e,t){for(var n,r,o=e.length,i="data-mce-"+t,a=s.url_converter,u=s.url_converter_scope;o--;)void 0!==(r=(n=e[o]).attributes.map[i])?(n.attr(t,0<r.length?r:null),n.attr(i,null)):(r=n.attributes.map[t],"style"===t?r=l.serializeStyle(l.parseStyle(r),n.name):a&&(r=a.call(u,r,t,n.name)),n.attr(t,0<r.length?r:null))}),t.addAttributeFilter("class",function(e){for(var t,n,r=e.length;r--;)(n=(t=e[r]).attr("class"))&&(n=t.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),t.attr("class",0<n.length?n:null))}),t.addAttributeFilter("data-mce-type",function(e,t,n){for(var r,o=e.length;o--;)"bookmark"!==(r=e[o]).attributes.map["data-mce-type"]||n.cleanup||(_.from(r.firstChild).exists(function(e){return!ya(e.value)})?r.unwrap():r.remove())}),t.addNodeFilter("noscript",function(e){for(var t,n=e.length;n--;)(t=e[n].firstChild)&&(t.value=ei.decode(t.value))}),t.addNodeFilter("script,style",function(e,t){for(var n,r,o,i=e.length,a=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};i--;)r=(n=e[i]).firstChild?n.firstChild.value:"","script"===t?((o=n.attr("type"))&&n.attr("type","mce-no/type"===o?null:o.replace(/^mce\-/,"")),"xhtml"===s.element_format&&0<r.length&&(n.firstChild.value="// <![CDATA[\n"+a(r)+"\n// ]]>")):"xhtml"===s.element_format&&0<r.length&&(n.firstChild.value="\x3c!--\n"+a(r)+"\n--\x3e")}),t.addNodeFilter("#comment",function(e){for(var t,n=e.length;n--;)0===(t=e[n]).value.indexOf("[CDATA[")?(t.name="#cdata",t.type=4,t.value=t.value.replace(/^\[CDATA\[|\]\]$/g,"")):0===t.value.indexOf("mce:protected ")&&(t.name="#text",t.type=3,t.raw=!0,t.value=unescape(t.value).substr(14))}),t.addNodeFilter("xml:namespace,input",function(e,t){for(var n,r=e.length;r--;)7===(n=e[r]).type?n.remove():1===n.type&&("input"!==t||"type"in n.attributes.map||n.attr("type","text"))}),t.addAttributeFilter("data-mce-type",function(e){U(e,function(e){"format-caret"===e.attr("data-mce-type")&&(e.isEmpty(t.schema.getNonEmptyElements())?e.remove():e.unwrap())})}),t.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize",function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)})},trimTrailingBr:function(e){var t,n,r=function(e){return e&&"br"===e.name};r(t=e.lastChild)&&r(n=t.prev)&&(t.remove(),n.remove())}},Gy={process:function(e,t,n){return f=n,(c=e)&&c.hasEventListeners("PreProcess")&&!f.no_events?(o=t,i=n,l=(r=e).dom,o=o.cloneNode(!0),(a=V.document.implementation).createHTMLDocument&&(u=a.createHTMLDocument(""),Jt.each("BODY"===o.nodeName?o.childNodes:[o],function(e){u.body.appendChild(u.importNode(e,!0))}),o="BODY"!==o.nodeName?u.body.firstChild:u.body,s=l.doc,l.doc=u),hg(r,Xy(i,{node:o})),s&&(l.doc=s),o):t;var r,o,i,a,u,s,l,c,f}},Jy=function(e,a,u){e.addNodeFilter("font",function(e){U(e,function(e){var t,n=a.parse(e.attr("style")),r=e.attr("color"),o=e.attr("face"),i=e.attr("size");r&&(n.color=r),o&&(n["font-family"]=o),i&&(n["font-size"]=u[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",a.serialize(n)),t=e,U(["color","face","size"],function(e){t.attr(e,null)})})})},Qy=function(e,t){var n,r=mi();t.convert_fonts_to_spans&&Jy(e,r,Jt.explode(t.font_size_legacy_values)),n=r,e.addNodeFilter("strike",function(e){U(e,function(e){var t=n.parse(e.attr("style"));t["text-decoration"]="line-through",e.name="span",e.attr("style",n.serialize(t))})})},Zy={register:function(e,t){t.inline_styles&&Qy(e,t)}},eb=/^[ \t\r\n]*$/,tb={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},nb=function(e,t,n){var r,o,i=n?"lastChild":"firstChild",a=n?"prev":"next";if(e[i])return e[i];if(e!==t){if(r=e[a])return r;for(o=e.parent;o&&o!==t;o=o.parent)if(r=o[a])return r}},rb=function(){function a(e,t){this.name=e,1===(this.type=t)&&(this.attributes=[],this.attributes.map={})}return a.create=function(e,t){var n,r;if(n=new a(e,tb[e]||1),t)for(r in t)n.attr(r,t[r]);return n},a.prototype.replace=function(e){return e.parent&&e.remove(),this.insert(e,this),this.remove(),this},a.prototype.attr=function(e,t){var n,r;if("string"!=typeof e){for(r in e)this.attr(r,e[r]);return this}if(n=this.attributes){if(void 0===t)return n.map[e];if(null===t){if(e in n.map)for(delete n.map[e],r=n.length;r--;)if(n[r].name===e)return n=n.splice(r,1),this;return this}if(e in n.map){for(r=n.length;r--;)if(n[r].name===e){n[r].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,this}},a.prototype.clone=function(){var e,t,n,r,o,i=new a(this.name,this.type);if(n=this.attributes){for((o=[]).map={},e=0,t=n.length;e<t;e++)"id"!==(r=n[e]).name&&(o[o.length]={name:r.name,value:r.value},o.map[r.name]=r.value);i.attributes=o}return i.value=this.value,i.shortEnded=this.shortEnded,i},a.prototype.wrap=function(e){return this.parent.insert(e,this),e.append(this),this},a.prototype.unwrap=function(){var e,t;for(e=this.firstChild;e;)t=e.next,this.insert(e,this,!0),e=t;this.remove()},a.prototype.remove=function(){var e=this.parent,t=this.next,n=this.prev;return e&&(e.firstChild===this?(e.firstChild=t)&&(t.prev=null):n.next=t,e.lastChild===this?(e.lastChild=n)&&(n.next=null):t.prev=n,this.parent=this.next=this.prev=null),this},a.prototype.append=function(e){var t;return e.parent&&e.remove(),(t=this.lastChild)?((t.next=e).prev=t,this.lastChild=e):this.lastChild=this.firstChild=e,e.parent=this,e},a.prototype.insert=function(e,t,n){var r;return e.parent&&e.remove(),r=t.parent||this,n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,(e.next=t).prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,(e.prev=t).next=e),e.parent=r,e},a.prototype.getAll=function(e){var t,n=[];for(t=this.firstChild;t;t=nb(t,this))t.name===e&&n.push(t);return n},a.prototype.empty=function(){var e,t,n;if(this.firstChild){for(e=[],n=this.firstChild;n;n=nb(n,this))e.push(n);for(t=e.length;t--;)(n=e[t]).parent=n.firstChild=n.lastChild=n.next=n.prev=null}return this.firstChild=this.lastChild=null,this},a.prototype.isEmpty=function(e,t,n){var r,o,i=this.firstChild;if(t=t||{},i)do{if(1===i.type){if(i.attributes.map["data-mce-bogus"])continue;if(e[i.name])return!1;for(r=i.attributes.length;r--;)if("name"===(o=i.attributes[r].name)||0===o.indexOf("data-mce-bookmark"))return!1}if(8===i.type)return!1;if(3===i.type&&!eb.test(i.value))return!1;if(3===i.type&&i.parent&&t[i.parent.name]&&eb.test(i.value))return!1;if(n&&n(i))return!1}while(i=nb(i,this));return!0},a.prototype.walk=function(e){return nb(this,null,e)},a}(),ob=function(e,t,n,r){(e.padd_empty_with_br||t.insert)&&n[r.name]?r.empty().append(new rb("br",1)).shortEnded=!0:r.empty().append(new rb("#text",3)).value=" "},ib=function(e){return ab(e,"#text")&&" "===e.firstChild.value},ab=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},ub=function(r,e,t,n){return n.isEmpty(e,t,function(e){return t=e,(n=r.getElementRule(t.name))&&n.paddEmpty;var t,n})},sb=function(e,t){return e&&(t[e.name]||"br"===e.name)},lb=function(e,g){var h=e.schema;g.remove_trailing_brs&&e.addNodeFilter("br",function(e,t,n){var r,o,i,a,u,s,l,c,f=e.length,d=Jt.extend({},h.getBlockElements()),m=h.getNonEmptyElements(),p=h.getNonEmptyElements();for(d.body=1,r=0;r<f;r++)if(i=(o=e[r]).parent,d[o.parent.name]&&o===i.lastChild){for(u=o.prev;u;){if("span"!==(s=u.name)||"bookmark"!==u.attr("data-mce-type")){if("br"!==s)break;if("br"===s){o=null;break}}u=u.prev}o&&(o.remove(),ub(h,m,p,i)&&(l=h.getElementRule(i.name))&&(l.removeEmpty?i.remove():l.paddEmpty&&ob(g,n,d,i)))}else{for(a=o;i&&i.firstChild===a&&i.lastChild===a&&!d[(a=i).name];)i=i.parent;a===i&&!0!==g.padd_empty_with_br&&((c=new rb("#text",3)).value=" ",o.replace(c))}}),e.addAttributeFilter("href",function(e){var t,n,r,o=e.length;if(!g.allow_unsafe_link_target)for(;o--;)"a"===(t=e[o]).name&&"_blank"===t.attr("target")&&t.attr("rel",(n=t.attr("rel"),r=n?Jt.trim(n):"",/\b(noopener)\b/g.test(r)?r:r.split(" ").filter(function(e){return 0<e.length}).concat(["noopener"]).sort().join(" ")))}),g.allow_html_in_named_anchor||e.addAttributeFilter("id,name",function(e){for(var t,n,r,o,i=e.length;i--;)if("a"===(o=e[i]).name&&o.firstChild&&!o.attr("href"))for(r=o.parent,t=o.lastChild;n=t.prev,r.insert(t,o),t=n;);}),g.fix_list_elements&&e.addNodeFilter("ul,ol",function(e){for(var t,n,r=e.length;r--;)if("ul"===(n=(t=e[r]).parent).name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var o=new rb("li",1);o.attr("style","list-style-type: none"),t.wrap(o)}}),g.validate&&h.getValidClasses()&&e.addAttributeFilter("class",function(e){for(var t,n,r,o,i,a,u,s=e.length,l=h.getValidClasses();s--;){for(n=(t=e[s]).attr("class").split(" "),i="",r=0;r<n.length;r++)o=n[r],u=!1,(a=l["*"])&&a[o]&&(u=!0),a=l[t.name],!u&&a&&a[o]&&(u=!0),u&&(i&&(i+=" "),i+=o);i.length||(i=null),t.attr("class",i)}})},cb=Jt.makeMap,fb=Jt.each,db=Jt.explode,mb=Jt.extend;function pb(S,T){void 0===T&&(T=fi());var _={},R=[],A={},D={};(S=S||{}).validate=!("validate"in S)||S.validate,S.root_name=S.root_name||"body";var B=function(e){var t,n,r;(n=e.name)in _&&((r=A[n])?r.push(e):A[n]=[e]),t=R.length;for(;t--;)(n=R[t].name)in e.attributes.map&&((r=D[n])?r.push(e):D[n]=[e]);return e},e={schema:T,addAttributeFilter:function(e,n){fb(db(e),function(e){var t;for(t=0;t<R.length;t++)if(R[t].name===e)return void R[t].callbacks.push(n);R.push({name:e,callbacks:[n]})})},getAttributeFilters:function(){return[].concat(R)},addNodeFilter:function(e,n){fb(db(e),function(e){var t=_[e];t||(_[e]=t=[]),t.push(n)})},getNodeFilters:function(){var e=[];for(var t in _)_.hasOwnProperty(t)&&e.push({name:t,callbacks:_[t]});return e},filterNode:B,parse:function(e,a){var t,n,r,o,i,u,s,l,c,f,d,m=[];a=a||{},A={},D={},c=mb(cb("script,style,head,html,body,title,meta,param"),T.getBlockElements());var p=T.getNonEmptyElements(),g=T.children,h=S.validate,v="forced_root_block"in a?a.forced_root_block:S.forced_root_block,y=T.getWhiteSpaceElements(),b=/^[ \t\r\n]+/,C=/[ \t\r\n]+$/,w=/[ \t\r\n]+/g,k=/^[ \t\r\n]+$/;f=y.hasOwnProperty(a.context)||y.hasOwnProperty(S.root_name);var x=function(e,t){var n,r=new rb(e,t);return e in _&&((n=A[e])?n.push(r):A[e]=[r]),r},E=function(e){var t,n,r,o,i=T.getBlockElements();for(t=e.prev;t&&3===t.type;){if(0<(r=t.value.replace(C,"")).length)return void(t.value=r);if(n=t.next){if(3===n.type&&n.value.length){t=t.prev;continue}if(!i[n.name]&&"script"!==n.name&&"style"!==n.name){t=t.prev;continue}}o=t.prev,t.remove(),t=o}};t=Ov({validate:h,allow_script_urls:S.allow_script_urls,allow_conditional_comments:S.allow_conditional_comments,self_closing_elements:function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n}(T.getSelfClosingElements()),cdata:function(e){d.append(x("#cdata",4)).value=e},text:function(e,t){var n;f||(e=e.replace(w," "),sb(d.lastChild,c)&&(e=e.replace(b,""))),0!==e.length&&((n=x("#text",3)).raw=!!t,d.append(n).value=e)},comment:function(e){d.append(x("#comment",8)).value=e},pi:function(e,t){d.append(x(e,7)).value=t,E(d)},doctype:function(e){d.append(x("#doctype",10)).value=e,E(d)},start:function(e,t,n){var r,o,i,a,u;if(i=h?T.getElementRule(e):{}){for((r=x(i.outputName||e,1)).attributes=t,r.shortEnded=n,d.append(r),(u=g[d.name])&&g[r.name]&&!u[r.name]&&m.push(r),o=R.length;o--;)(a=R[o].name)in t.map&&((s=D[a])?s.push(r):D[a]=[r]);c[e]&&E(r),n||(d=r),!f&&y[e]&&(f=!0)}},end:function(e){var t,n,r,o,i;if(n=h?T.getElementRule(e):{}){if(c[e]&&!f){if((t=d.firstChild)&&3===t.type)if(0<(r=t.value.replace(b,"")).length)t.value=r,t=t.next;else for(o=t.next,t.remove(),t=o;t&&3===t.type;)r=t.value,o=t.next,(0===r.length||k.test(r))&&(t.remove(),t=o),t=o;if((t=d.lastChild)&&3===t.type)if(0<(r=t.value.replace(C,"")).length)t.value=r,t=t.prev;else for(o=t.prev,t.remove(),t=o;t&&3===t.type;)r=t.value,o=t.prev,(0===r.length||k.test(r))&&(t.remove(),t=o),t=o}if(f&&y[e]&&(f=!1),n.removeEmpty&&ub(T,p,y,d)&&!d.attributes.map.name&&!d.attr("id"))return i=d.parent,c[d.name]?d.empty().remove():d.unwrap(),void(d=i);n.paddEmpty&&(ib(d)||ub(T,p,y,d))&&ob(S,a,c,d),d=d.parent}}},T);var N=d=new rb(a.context||S.root_name,11);if(t.parse(e),h&&m.length&&(a.context?a.invalid=!0:function(e){var t,n,r,o,i,a,u,s,l,c,f,d,m,p,g,h;for(d=cb("tr,td,th,tbody,thead,tfoot,table"),c=T.getNonEmptyElements(),f=T.getWhiteSpaceElements(),m=T.getTextBlockElements(),p=T.getSpecialElements(),t=0;t<e.length;t++)if((n=e[t]).parent&&!n.fixed)if(m[n.name]&&"li"===n.parent.name){for(g=n.next;g&&m[g.name];)g.name="li",g.fixed=!0,n.parent.insert(g,n.parent),g=g.next;n.unwrap(n)}else{for(o=[n],r=n.parent;r&&!T.isValidChild(r.name,n.name)&&!d[r.name];r=r.parent)o.push(r);if(r&&1<o.length){for(o.reverse(),i=a=B(o[0].clone()),l=0;l<o.length-1;l++){for(T.isValidChild(a.name,o[l].name)?(u=B(o[l].clone()),a.append(u)):u=a,s=o[l].firstChild;s&&s!==o[l+1];)h=s.next,u.append(s),s=h;a=u}ub(T,c,f,i)?r.insert(n,o[0],!0):(r.insert(i,o[0],!0),r.insert(n,i)),r=o[0],(ub(T,c,f,r)||ab(r,"br"))&&r.empty().remove()}else if(n.parent){if("li"===n.name){if((g=n.prev)&&("ul"===g.name||"ul"===g.name)){g.append(n);continue}if((g=n.next)&&("ul"===g.name||"ul"===g.name)){g.insert(n,g.firstChild,!0);continue}n.wrap(B(new rb("ul",1)));continue}T.isValidChild(n.parent.name,"div")&&T.isValidChild("div",n.name)?n.wrap(B(new rb("div",1))):p[n.name]?n.empty().remove():n.unwrap()}}}(m)),v&&("body"===N.name||a.isRootContent)&&function(){var e,t,n=N.firstChild,r=function(e){e&&((n=e.firstChild)&&3===n.type&&(n.value=n.value.replace(b,"")),(n=e.lastChild)&&3===n.type&&(n.value=n.value.replace(C,"")))};if(T.isValidChild(N.name,v.toLowerCase())){for(;n;)e=n.next,3===n.type||1===n.type&&"p"!==n.name&&!c[n.name]&&!n.attr("data-mce-type")?(t||((t=x(v,1)).attr(S.forced_root_block_attrs),N.insert(t,n)),t.append(n)):(r(t),t=null),n=e;r(t)}}(),!a.invalid){for(l in A){for(s=_[l],i=(n=A[l]).length;i--;)n[i].parent||n.splice(i,1);for(r=0,o=s.length;r<o;r++)s[r](n,l,a)}for(r=0,o=R.length;r<o;r++)if((s=R[r]).name in D){for(i=(n=D[s.name]).length;i--;)n[i].parent||n.splice(i,1);for(i=0,u=s.callbacks.length;i<u;i++)s.callbacks[i](n,s.name,a)}}return N}};return lb(e,S),Zy.register(e,S),e}var gb=function(e,t,n){-1===Jt.inArray(t,n)&&(e.addAttributeFilter(n,function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)}),t.push(n))},hb=function(e,t,n){var r=Ca(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||_o(ur.fromDom(t))?r:Jt.trim(r)},vb=function(e,t,n){var r=n.selection?Xy({forced_root_block:!1},n):n,o=e.parse(t,r);return Yy.trimTrailingBr(o),o},yb=function(e,t,n,r,o){var i,a,u,s,l=(i=r,oc(t,n).serialize(i));return a=e,s=l,(u=o).no_events||!a?s:vg(a,Xy(u,{content:s})).content};function bb(e,t){var a,u,s,l,c,n,r=(a=e,n=["data-mce-selected"],s=(u=t)&&u.dom?u.dom:Ei.DOM,l=u&&u.schema?u.schema:fi(a),a.entity_encoding=a.entity_encoding||"named",a.remove_trailing_brs=!("remove_trailing_brs"in a)||a.remove_trailing_brs,c=pb(a,l),Yy.register(c,a,s),{schema:l,addNodeFilter:c.addNodeFilter,addAttributeFilter:c.addAttributeFilter,serialize:function(e,t){var n=Xy({format:"html"},t||{}),r=Gy.process(u,e,n),o=hb(s,r,n),i=vb(c,o,n);return"tree"===n.format?i:yb(u,a,l,i,n)},addRules:function(e){l.addValidElements(e)},setRules:function(e){l.setValidElements(e)},addTempAttr:d(gb,c,n),getTempAttrs:function(){return n}});return{schema:r.schema,addNodeFilter:r.addNodeFilter,addAttributeFilter:r.addAttributeFilter,serialize:r.serialize,addRules:r.addRules,setRules:r.setRules,addTempAttr:r.addTempAttr,getTempAttrs:r.getTempAttrs}}function Cb(e){return{getBookmark:d(pl,e),moveToBookmark:d(gl,e)}}(Cb||(Cb={})).isBookmarkNode=hl;var wb,kb,xb=Cb,Eb=Uo.isContentEditableFalse,Nb=Uo.isContentEditableTrue,Sb=function(r,a){var u,s,l,c,f,d,m,p,g,h,v,y,i,b,C,w,k,x=a.dom,E=Jt.each,N=a.getDoc(),S=V.document,T=Math.abs,_=Math.round,R=a.getBody();c={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var e=".mce-content-body";a.contentStyles.push(e+" div.mce-resizehandle {position: absolute;border: 1px solid black;box-sizing: content-box;background: #FFF;width: 7px;height: 7px;z-index: 10000}"+e+" .mce-resizehandle:hover {background: #000}"+e+" img[data-mce-selected],"+e+" hr[data-mce-selected] {outline: 1px solid black;resize: none}"+e+" .mce-clonedresizable {position: absolute;"+(pe.gecko?"":"outline: 1px dashed black;")+"opacity: .5;filter: alpha(opacity=50);z-index: 10000}"+e+" .mce-resize-helper {background: #555;background: rgba(0,0,0,0.75);border-radius: 3px;border: 1px;color: white;display: none;font-family: sans-serif;font-size: 12px;white-space: nowrap;line-height: 14px;margin: 5px 10px;padding: 5px;position: absolute;z-index: 10001}");var A=function(e){return e&&("IMG"===e.nodeName||a.dom.is(e,"figure.image"))},n=function(e){var t,n,r=e.target;t=e,n=a.selection.getRng(),!A(t.target)||xv(t.clientX,t.clientY,n)||e.isDefaultPrevented()||a.selection.select(r)},D=function(e){return a.dom.is(e,"figure.image")?e.querySelector("img"):e},B=function(e){var t=a.settings.object_resizing;return!1!==t&&!pe.iOS&&("string"!=typeof t&&(t="table,img,figure.image,div"),"false"!==e.getAttribute("data-mce-resize")&&e!==a.getBody()&&Ir(ur.fromDom(e),t))},O=function(e){var t,n,r,o;t=e.screenX-d,n=e.screenY-m,b=t*f[2]+h,C=n*f[3]+v,b=b<5?5:b,C=C<5?5:C,(A(u)&&!1!==a.settings.resize_img_proportional?!Nv.modifierPressed(e):Nv.modifierPressed(e)||A(u)&&f[2]*f[3]!=0)&&(T(t)>T(n)?(C=_(b*y),b=_(C/y)):(b=_(C/y),C=_(b*y))),x.setStyles(D(s),{width:b,height:C}),r=0<(r=f.startPos.x+t)?r:0,o=0<(o=f.startPos.y+n)?o:0,x.setStyles(l,{left:r,top:o,display:"block"}),l.innerHTML=b+" &times; "+C,f[2]<0&&s.clientWidth<=b&&x.setStyle(s,"left",p+(h-b)),f[3]<0&&s.clientHeight<=C&&x.setStyle(s,"top",g+(v-C)),(t=R.scrollWidth-w)+(n=R.scrollHeight-k)!=0&&x.setStyles(l,{left:r-t,top:o-n}),i||(wg(a,u,h,v),i=!0)},P=function(){i=!1;var e=function(e,t){t&&(u.style[e]||!a.schema.isValid(u.nodeName.toLowerCase(),e)?x.setStyle(D(u),e,t):x.setAttrib(D(u),e,t))};e("width",b),e("height",C),x.unbind(N,"mousemove",O),x.unbind(N,"mouseup",P),S!==N&&(x.unbind(S,"mousemove",O),x.unbind(S,"mouseup",P)),x.remove(s),x.remove(l),o(u),kg(a,u,b,C),x.setAttrib(u,"style",x.getAttrib(u,"style")),a.nodeChanged()},o=function(e){var t,r,o,n,i;I(),F(),t=x.getPos(e,R),p=t.x,g=t.y,i=e.getBoundingClientRect(),r=i.width||i.right-i.left,o=i.height||i.bottom-i.top,u!==e&&(u=e,b=C=0),n=a.fire("ObjectSelected",{target:e}),B(e)&&!n.isDefaultPrevented()?E(c,function(n,e){var t;(t=x.get("mceResizeHandle"+e))&&x.remove(t),t=x.add(R,"div",{id:"mceResizeHandle"+e,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+e+"-resize; margin:0; padding:0"}),11===pe.ie&&(t.contentEditable=!1),x.bind(t,"mousedown",function(e){var t;e.stopImmediatePropagation(),e.preventDefault(),d=(t=e).screenX,m=t.screenY,h=D(u).clientWidth,v=D(u).clientHeight,y=v/h,(f=n).startPos={x:r*n[0]+p,y:o*n[1]+g},w=R.scrollWidth,k=R.scrollHeight,s=u.cloneNode(!0),x.addClass(s,"mce-clonedresizable"),x.setAttrib(s,"data-mce-bogus","all"),s.contentEditable=!1,s.unSelectabe=!0,x.setStyles(s,{left:p,top:g,margin:0}),s.removeAttribute("data-mce-selected"),R.appendChild(s),x.bind(N,"mousemove",O),x.bind(N,"mouseup",P),S!==N&&(x.bind(S,"mousemove",O),x.bind(S,"mouseup",P)),l=x.add(R,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},h+" &times; "+v)}),n.elm=t,x.setStyles(t,{left:r*n[0]+p-t.offsetWidth/2,top:o*n[1]+g-t.offsetHeight/2})}):I(),u.setAttribute("data-mce-selected","1")},I=function(){var e,t;for(e in F(),u&&u.removeAttribute("data-mce-selected"),c)(t=x.get("mceResizeHandle"+e))&&(x.unbind(t),x.remove(t))},L=function(e){var t,n=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};i||a.removed||(E(x.select("img[data-mce-selected],hr[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),t="mousedown"===e.type?e.target:r.getNode(),n(t=x.$(t).closest("table,img,figure.image,hr")[0],R)&&(z(),n(r.getStart(!0),t)&&n(r.getEnd(!0),t))?o(t):I())},M=function(e){return Eb(function(e,t){for(;t&&t!==e;){if(Nb(t)||Eb(t))return t;t=t.parentNode}return null}(a.getBody(),e))},F=function(){for(var e in c){var t=c[e];t.elm&&(x.unbind(t.elm),delete t.elm)}},z=function(){try{a.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}};return a.on("init",function(){z(),pe.ie&&11<=pe.ie&&(a.on("mousedown click",function(e){var t=e.target,n=t.nodeName;i||!/^(TABLE|IMG|HR)$/.test(n)||M(t)||(2!==e.button&&a.selection.select(t,"TABLE"===n),"mousedown"===e.type&&a.nodeChanged())}),a.dom.bind(R,"mscontrolselect",function(e){var t=function(e){be.setEditorTimeout(a,function(){a.selection.select(e)})};if(M(e.target))return e.preventDefault(),void t(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&t(e.target))}));var t=be.throttle(function(e){a.composing||L(e)});a.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",t),a.on("keyup compositionend",function(e){u&&"TABLE"===u.nodeName&&t(e)}),a.on("hide blur",I),a.on("contextmenu",n)}),a.on("remove",F),{isResizable:B,showResizeRect:o,hideResizeRect:I,updateResizeRect:L,destroy:function(){u=s=null}}},Tb=function(e){for(var t=0,n=0,r=e;r&&r.nodeType;)t+=r.offsetLeft||0,n+=r.offsetTop||0,r=r.offsetParent;return{x:t,y:n}},_b=function(e,t,n){var r,o,i,a,u,s=e.dom,l=s.getRoot(),c=0;if(u={elm:t,alignToTop:n},e.fire("scrollIntoView",u),!u.isDefaultPrevented()&&Uo.isElement(t)){if(!1===n&&(c=t.offsetHeight),"BODY"!==l.nodeName){var f=e.selection.getScrollContainer();if(f)return r=Tb(t).y-Tb(f).y+c,a=f.clientHeight,void((r<(i=f.scrollTop)||i+a<r+25)&&(f.scrollTop=r<i?r:r-a+25))}o=s.getViewPort(e.getWin()),r=s.getPos(t).y+c,i=o.y,a=o.h,(r<o.y||i+a<r+25)&&e.getWin().scrollTo(0,r<i?r:r-a+25)}},Rb=function(d,e){ne(xu.fromRangeStart(e).getClientRects()).each(function(e){var t,n,r,o,i,a,u,s,l,c=function(e){if(e.inline)return e.getBody().getBoundingClientRect();var t=e.getWin();return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight}}(d),f={x:(i=t=c,a=n=e,a.left>i.left&&a.right<i.right?0:a.left<i.left?a.left-i.left:a.right-i.right),y:(r=t,o=n,o.top>r.top&&o.bottom<r.bottom?0:o.top<r.top?o.top-r.top:o.bottom-r.bottom)};s=0!==f.x?0<f.x?f.x+4:f.x-4:0,l=0!==f.y?0<f.y?f.y+4:f.y-4:0,(u=d).inline?(u.getBody().scrollLeft+=s,u.getBody().scrollTop+=l):u.getWin().scrollBy(s,l)})},Ab=function(e){return Uo.isContentEditableTrue(e)||Uo.isContentEditableFalse(e)},Db=function(t,n,r){var o,e,i,a,u,s=r;if(s.caretPositionFromPoint)(e=s.caretPositionFromPoint(t,n))&&((o=r.createRange()).setStart(e.offsetNode,e.offset),o.collapse(!0));else if(r.caretRangeFromPoint)o=r.caretRangeFromPoint(t,n);else if(s.body.createTextRange){o=s.body.createTextRange();try{o.moveToPoint(t,n),o.collapse(!0)}catch(e){o=function(e,n,t){var r,o,i;if(r=t.elementFromPoint(e,n),o=t.body.createTextRange(),r&&"HTML"!==r.tagName||(r=t.body),o.moveToElementText(r),0<(i=(i=Jt.toArray(o.getClientRects())).sort(function(e,t){return(e=Math.abs(Math.max(e.top-n,e.bottom-n)))-(t=Math.abs(Math.max(t.top-n,t.bottom-n)))})).length){n=(i[0].bottom+i[0].top)/2;try{return o.moveToPoint(e,n),o.collapse(!0),o}catch(e){}}return null}(t,n,r)}return i=o,a=r.body,u=i&&i.parentElement?i.parentElement():null,Uo.isContentEditableFalse(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(u,a,Ab))?null:i}return o},Bb=function(n,e){return W(e,function(e){var t=n.fire("GetSelectionRange",{range:e});return t.range!==e?t.range:e})},Ob=function(e,t){var n=(t||V.document).createDocumentFragment();return U(e,function(e){n.appendChild(e.dom())}),ur.fromDom(n)},Pb=_r("element","width","rows"),Ib=_r("element","cells"),Lb=_r("x","y"),Mb=function(e,t){var n=parseInt(xr(e,t),10);return isNaN(n)?1:n},Fb=function(e){return X(e,function(e,t){return t.cells().length>e?t.cells().length:e},0)},zb=function(e,t){for(var n=e.rows(),r=0;r<n.length;r++)for(var o=n[r].cells(),i=0;i<o.length;i++)if(Mr(o[i],t))return _.some(Lb(i,r));return _.none()},Ub=function(e,t,n,r,o){for(var i=[],a=e.rows(),u=n;u<=o;u++){var s=a[u].cells(),l=t<r?s.slice(t,r+1):s.slice(r,t+1);i.push(Ib(a[u].element(),l))}return i},jb=function(e){var o=Pb(pa(e),0,[]);return U(Ji(e,"tr"),function(n,r){U(Ji(n,"td,th"),function(e,t){!function(e,t,n,r,o){for(var i=Mb(o,"rowspan"),a=Mb(o,"colspan"),u=e.rows(),s=n;s<n+i;s++){u[s]||(u[s]=Ib(ga(r),[]));for(var l=t;l<t+a;l++)u[s].cells()[l]=s===n&&l===t?o:pa(o)}}(o,function(e,t,n){for(;r=t,o=n,i=void 0,((i=e.rows())[o]?i[o].cells():[])[r];)t++;var r,o,i;return t}(o,t,r),r,n,e)})}),Pb(o.element(),Fb(o.rows()),o.rows())},Vb=function(e){return n=W((t=e).rows(),function(e){var t=W(e.cells(),function(e){var t=ga(e);return Er(t,"colspan"),Er(t,"rowspan"),t}),n=pa(e.element());return Mi(n,t),n}),r=pa(t.element()),o=ur.fromTag("tbody"),Mi(o,n),Li(r,o),r;var t,n,r,o},Hb=function(c,e,t){return zb(c,e).bind(function(l){return zb(c,t).map(function(e){return t=c,r=e,o=(n=l).x(),i=n.y(),a=r.x(),u=r.y(),s=i<u?Ub(t,o,i,a,u):Ub(t,o,u,a,i),Pb(t.element(),Fb(s),s);var t,n,r,o,i,a,u,s})})},qb=function(n,t){return Y(n,function(e){return"li"===fr(e)&&Kh(e,t)}).fold(q([]),function(e){return(t=n,Y(t,function(e){return"ul"===fr(e)||"ol"===fr(e)})).map(function(e){return[ur.fromTag("li"),ur.fromTag(fr(e))]}).getOr([]);var t})},$b=function(e,t){var n,r=ur.fromDom(t.commonAncestorContainer),o=of(r,e),i=j(o,function(e){return Co(e)||yo(e)}),a=qb(o,t),u=i.concat(a.length?a:Eo(n=r)?jr(n).filter(xo).fold(q([]),function(e){return[n,e]}):xo(n)?[n]:[]);return W(u,pa)},Wb=function(){return Ob([])},Kb=function(e,t){return n=ur.fromDom(t.cloneContents()),r=$b(e,t),o=X(r,function(e,t){return Li(t,e),t},n),0<r.length?Ob([o]):o;var n,r,o},Xb=function(e,o){return(t=e,n=o[0],na(n,"table",d(Mr,t))).bind(function(e){var t=o[0],n=o[o.length-1],r=jb(e);return Hb(r,t,n).map(function(e){return Ob([Vb(e)])})}).getOrThunk(Wb);var t,n},Yb=function(e,t){var n,r,o=bm(t,e);return 0<o.length?Xb(e,o):(n=e,0<(r=t).length&&r[0].collapsed?Wb():Kb(n,r[0]))},Gb=function(e,t){if(void 0===t&&(t={}),t.get=!0,t.format=t.format||"html",t.selection=!0,(t=e.fire("BeforeGetContent",t)).isDefaultPrevented())return e.fire("GetContent",t),t.content;if("text"===t.format)return l=e,_.from(l.selection.getRng()).map(function(e){var t=l.dom.add(l.getBody(),"div",{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},e.cloneContents()),n=Ca(t.innerText);return l.dom.remove(t),n}).getOr("");t.getInner=!0;var n,r,o,i,a,u,s,l,c=(r=t,i=(n=e).selection.getRng(),a=n.dom.create("body"),u=n.selection.getSel(),s=Bb(n,mm(u)),(o=r.contextual?Yb(ur.fromDom(n.getBody()),s).dom():i.cloneContents())&&a.appendChild(o),n.selection.serializer.serialize(a,r));return"tree"===t.format?c:(t.content=e.selection.isCollapsed()?"":c,e.fire("GetContent",t),t.content)},Jb=function(e,t,n){var r,o,i,a=e.selection.getRng(),u=e.getDoc();if((n=n||{format:"html"}).set=!0,n.selection=!0,n.content=t,n.no_events||!(n=e.fire("BeforeSetContent",n)).isDefaultPrevented()){if(t=n.content,a.insertNode){t+='<span id="__caret">_</span>',a.startContainer===u&&a.endContainer===u?u.body.innerHTML=t:(a.deleteContents(),0===u.body.childNodes.length?u.body.innerHTML=t:a.createContextualFragment?a.insertNode(a.createContextualFragment(t)):(o=u.createDocumentFragment(),i=u.createElement("div"),o.appendChild(i),i.outerHTML=t,a.insertNode(o))),r=e.dom.get("__caret"),(a=u.createRange()).setStartBefore(r),a.setEndBefore(r),e.selection.setRng(a),e.dom.remove("__caret");try{e.selection.setRng(a)}catch(e){}}else a.item&&(u.execCommand("Delete",!1,null),a=e.getRng()),/^\s+/.test(t)?(a.pasteHTML('<span id="__mce_tmp">_</span>'+t),e.dom.remove("__mce_tmp")):a.pasteHTML(t);n.no_events||e.fire("SetContent",n)}else e.fire("SetContent",n)},Qb=function(e,t,n,r,o){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return _.from(i).map(ur.fromDom).map(function(e){return r&&t.collapsed?e:Kr(e,o(e,a)).getOr(e)}).bind(function(e){return mr(e)?_.some(e):jr(e)}).map(function(e){return e.dom()}).getOr(e)},Zb=function(e,t,n){return Qb(e,t,!0,n,function(e,t){return Math.min(e.dom().childNodes.length,t)})},eC=function(e,t,n){return Qb(e,t,!1,n,function(e,t){return 0<t?t-1:t})},tC=function(e,t){for(var n=e;e&&Uo.isText(e)&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n},nC=Jt.each,rC=function(e){return!!e.select},oC=function(e){return!(!e||!e.ownerDocument)&&Fr(ur.fromDom(e.ownerDocument),ur.fromDom(e))},iC=function(a,u,e,s){var n,t,l,c,f,r=function(e,t){return Jb(s,e,t)},o=function(e){var t=m();t.collapse(!!e),i(t)},d=function(){return u.getSelection?u.getSelection():u.document.selection},m=function(){var e,t,n,r,o=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(e){return-1}};if(!u)return null;if(null==(r=u.document))return null;if(void 0!==s.bookmark&&!1===oh(s)){var i=ng(s);if(i.isSome())return i.map(function(e){return Bb(s,[e])[0]}).getOr(r.createRange())}try{(e=d())&&!Uo.isRestrictedNode(e.anchorNode)&&(t=0<e.rangeCount?e.getRangeAt(0):e.createRange?e.createRange():r.createRange())}catch(e){}return(t=Bb(s,[t])[0])||(t=r.createRange?r.createRange():r.body.createTextRange()),t.setStart&&9===t.startContainer.nodeType&&t.collapsed&&(n=a.getRoot(),t.setStart(n,0),t.setEnd(n,0)),l&&c&&(0===o(t.START_TO_START,t,l)&&0===o(t.END_TO_END,t,l)?t=c:c=l=null),t},i=function(e,t){var n,r;if((o=e)&&(rC(o)||oC(o.startContainer)&&oC(o.endContainer))){var o,i=rC(e)?e:null;if(i){c=null;try{i.select()}catch(e){}}else{if(n=d(),e=s.fire("SetSelectionRange",{range:e,forward:t}).range,n){c=e;try{n.removeAllRanges(),n.addRange(e)}catch(e){}!1===t&&n.extend&&(n.collapse(e.endContainer,e.endOffset),n.extend(e.startContainer,e.startOffset)),l=0<n.rangeCount?n.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!n.setBaseAndExtent||pe.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(r=e.startContainer.childNodes[e.startOffset])&&"IMG"===r.tagName&&(n.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),n.anchorNode===e.startContainer&&n.focusNode===e.endContainer||n.setBaseAndExtent(r,0,r,1)),s.fire("AfterSetSelectionRange",{range:e,forward:t})}}},p=function(){var e,t,n=d();return!(n&&n.anchorNode&&n.focusNode)||((e=a.createRng()).setStart(n.anchorNode,n.anchorOffset),e.collapse(!0),(t=a.createRng()).setStart(n.focusNode,n.focusOffset),t.collapse(!0),e.compareBoundaryPoints(e.START_TO_START,t)<=0)},g={bookmarkManager:null,controlSelection:null,dom:a,win:u,serializer:e,editor:s,collapse:o,setCursorLocation:function(e,t){var n=a.createRng();e?(n.setStart(e,t),n.setEnd(e,t),i(n),o(!1)):(Xh(a,n,s.getBody(),!0),i(n))},getContent:function(e){return Gb(s,e)},setContent:r,getBookmark:function(e,t){return n.getBookmark(e,t)},moveToBookmark:function(e){return n.moveToBookmark(e)},select:function(e,t){var r,n,o;return(r=a,n=e,o=t,_.from(n).map(function(e){var t=r.nodeIndex(e),n=r.createRng();return n.setStart(e.parentNode,t),n.setEnd(e.parentNode,t+1),o&&(Xh(r,n,e,!0),Xh(r,n,e,!1)),n})).each(i),e},isCollapsed:function(){var e=m(),t=d();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},isForward:p,setNode:function(e){return r(a.getOuterHTML(e)),e},getNode:function(){return e=s.getBody(),(t=m())?(r=t.startContainer,o=t.endContainer,i=t.startOffset,a=t.endOffset,n=t.commonAncestorContainer,!t.collapsed&&(r===o&&a-i<2&&r.hasChildNodes()&&(n=r.childNodes[i]),3===r.nodeType&&3===o.nodeType&&(r=r.length===i?tC(r.nextSibling,!0):r.parentNode,o=0===a?tC(o.previousSibling,!1):o.parentNode,r&&r===o))?r:n&&3===n.nodeType?n.parentNode:n):e;var e,t,n,r,o,i,a},getSel:d,setRng:i,getRng:m,getStart:function(e){return Zb(s.getBody(),m(),e)},getEnd:function(e){return eC(s.getBody(),m(),e)},getSelectedBlocks:function(e,t){return function(e,t,n,r){var o,i,a=[];if(i=e.getRoot(),n=e.getParent(n||Zb(i,t,t.collapsed),e.isBlock),r=e.getParent(r||eC(i,t,t.collapsed),e.isBlock),n&&n!==i&&a.push(n),n&&r&&n!==r)for(var u=new mo(o=n,i);(o=u.next())&&o!==r;)e.isBlock(o)&&a.push(o);return r&&n!==r&&r!==i&&a.push(r),a}(a,m(),e,t)},normalize:function(){var e=m(),t=d();if(gm(t)||!Yh(s))return e;var n=Sp(a,e);return n.each(function(e){i(e,p())}),n.getOr(e)},selectorChanged:function(e,t){var i;return f||(f={},i={},s.on("NodeChange",function(e){var n=e.element,r=a.getParents(n,null,a.getRoot()),o={};nC(f,function(e,n){nC(r,function(t){if(a.is(t,n))return i[n]||(nC(e,function(e){e(!0,{node:t,selector:n,parents:r})}),i[n]=e),o[n]=e,!1})}),nC(i,function(e,t){o[t]||(delete i[t],nC(e,function(e){e(!1,{node:n,selector:t,parents:r})}))})})),f[e]||(f[e]=[]),f[e].push(t),g},getScrollContainer:function(){for(var e,t=a.getRoot();t&&"BODY"!==t.nodeName;){if(t.scrollHeight>t.clientHeight){e=t;break}t=t.parentNode}return e},scrollIntoView:function(e,t){return _b(s,e,t)},placeCaretAt:function(e,t){return i(Db(e,t,s.getDoc()))},getBoundingClientRect:function(){var e=m();return e.collapsed?Su.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){u=l=c=null,t.destroy()}};return n=xb(g),t=Sb(g,s),g.bookmarkManager=n,g.controlSelection=t,g};(kb=wb||(wb={}))[kb.Br=0]="Br",kb[kb.Block=1]="Block",kb[kb.Wrap=2]="Wrap",kb[kb.Eol=3]="Eol";var aC=function(e,t){return e===Eu.Backwards?t.reverse():t},uC=function(e,t,n,r){for(var o,i,a,u,s,l,c=Ys(n),f=r,d=[];f&&(s=c,l=f,o=t===Eu.Forwards?s.next(l):s.prev(l));){if(Uo.isBr(o.getNode(!1)))return t===Eu.Forwards?{positions:aC(t,d).concat([o]),breakType:wb.Br,breakAt:_.some(o)}:{positions:aC(t,d),breakType:wb.Br,breakAt:_.some(o)};if(o.isVisible()){if(e(f,o)){var m=(i=t,a=f,u=o,Uo.isBr(u.getNode(i===Eu.Forwards))?wb.Br:!1===Es(a,u)?wb.Block:wb.Wrap);return{positions:aC(t,d),breakType:m,breakAt:_.some(o)}}d.push(o),f=o}else f=o}return{positions:aC(t,d),breakType:wb.Eol,breakAt:_.none()}},sC=function(n,r,o,e){return r(o,e).breakAt.map(function(e){var t=r(o,e).positions;return n===Eu.Backwards?t.concat(e):[e].concat(t)}).getOr([])},lC=function(e,i){return X(e,function(e,o){return e.fold(function(){return _.some(o)},function(r){return tu([ne(r.getClientRects()),ne(o.getClientRects())],function(e,t){var n=Math.abs(i-e.left);return Math.abs(i-t.left)<=n?o:r}).or(e)})},_.none())},cC=function(t,e){return ne(e.getClientRects()).bind(function(e){return lC(t,e.left)})},fC=d(uC,xu.isAbove,-1),dC=d(uC,xu.isBelow,1),mC=d(sC,-1,fC),pC=d(sC,1,dC),gC=Uo.isContentEditableFalse,hC=Ja,vC=function(e,t,n,r){var o=e===Eu.Forwards,i=o?Pf:If;if(!r.collapsed){var a=hC(r);if(gC(a))return op(e,t,a,e===Eu.Backwards,!0)}var u=xa(r.startContainer),s=Bs(e,t.getBody(),r);if(i(s))return ip(t,s.getNode(!o));var l=Uc.normalizePosition(o,n(s));if(!l)return u?r:null;if(i(l))return op(e,t,l.getNode(!o),o,!0);var c=n(l);return c&&i(c)&&Is(l,c)?op(e,t,c.getNode(!o),o,!0):u?up(t,l.toRange(),!0):null},yC=function(e,t,n,r){var o,i,a,u,s,l,c,f,d;if(d=hC(r),o=Bs(e,t.getBody(),r),i=n(t.getBody(),mv(1),o),a=j(i,pv(1)),s=Wt.last(o.getClientRects()),(Pf(o)||Mf(o))&&(d=o.getNode()),(If(o)||Ff(o))&&(d=o.getNode(!0)),!s)return null;if(l=s.left,(u=Cv(a,l))&&gC(u.node))return c=Math.abs(l-u.left),f=Math.abs(l-u.right),op(e,t,u.node,c<f,!0);if(d){var m=function(e,t,n,r){var o,i,a,u,s,l,c=Ys(t),f=[],d=0,m=function(e){return Wt.last(e.getClientRects())};l=m(u=1===e?(o=c.next,i=Ya,a=Xa,Su.after(r)):(o=c.prev,i=Xa,a=Ya,Su.before(r)));do{if(u.isVisible()&&!a(s=m(u),l)){if(0<f.length&&i(s,Wt.last(f))&&d++,(s=$a(s)).position=u,s.line=d,n(s))return f;f.push(s)}}while(u=o(u));return f}(e,t.getBody(),mv(1),d);if(u=Cv(j(m,pv(1)),l))return up(t,u.position.toRange(),!0);if(u=Wt.last(j(m,pv(0))))return up(t,u.position.toRange(),!0)}},bC=function(e,t,n){var r,o,i,a,u=Ys(e.getBody()),s=d(Ps,u.next),l=d(Ps,u.prev);if(n.collapsed&&e.settings.forced_root_block){if(!(r=e.dom.getParent(n.startContainer,"PRE")))return;(1===t?s(Su.fromRangeStart(n)):l(Su.fromRangeStart(n)))||(a=(i=e).dom.create(wc(i)),(!pe.ie||11<=pe.ie)&&(a.innerHTML='<br data-mce-bogus="1">'),o=a,1===t?e.$(r).after(o):e.$(r).before(o),e.selection.select(o,!0),e.selection.collapse())}},CC=function(c,f){return function(){var e,t,n,r,o,i,a,u,s,l=(t=f,r=Ys((e=c).getBody()),o=d(Ps,r.next),i=d(Ps,r.prev),a=t?Eu.Forwards:Eu.Backwards,u=t?o:i,s=e.selection.getRng(),(n=vC(a,e,u,s))?n:(n=bC(e,a,s))||null);return!!l&&(c.selection.setRng(l),!0)}},wC=function(u,s){return function(){var e,t,n,r,o,i,a=(r=(t=s)?1:-1,o=t?dv:fv,i=(e=u).selection.getRng(),(n=yC(r,e,o,i))?n:(n=bC(e,r,i))||null);return!!a&&(u.selection.setRng(a),!0)}},kC=function(r,o){return function(){var t,e=o?Su.fromRangeEnd(r.selection.getRng()):Su.fromRangeStart(r.selection.getRng()),n=o?dC(r.getBody(),e):fC(r.getBody(),e);return(o?re(n.positions):ne(n.positions)).filter((t=o,function(e){return t?If(e):Pf(e)})).fold(q(!1),function(e){return r.selection.setRng(e.toRange()),!0})}},xC=function(e,t,n,r,o){var i,a,u,s,l=Ji(ur.fromDom(n),"td,th,caption").map(function(e){return e.dom()}),c=j((i=e,Z(l,function(e){var t,n,r=(t=$a(e.getBoundingClientRect()),n=-1,{left:t.left-n,top:t.top-n,right:t.right+2*n,bottom:t.bottom+2*n,width:t.width+n,height:t.height+n});return[{x:r.left,y:i(r),cell:e},{x:r.right,y:i(r),cell:e}]})),function(e){return t(e,o)});return(a=c,u=r,s=o,X(a,function(e,r){return e.fold(function(){return _.some(r)},function(e){var t=Math.sqrt(Math.abs(e.x-u)+Math.abs(e.y-s)),n=Math.sqrt(Math.abs(r.x-u)+Math.abs(r.y-s));return _.some(n<t?r:e)})},_.none())).map(function(e){return e.cell})},EC=d(xC,function(e){return e.bottom},function(e,t){return e.y<t}),NC=d(xC,function(e){return e.top},function(e,t){return e.y>t}),SC=function(t,n){return ne(n.getClientRects()).bind(function(e){return EC(t,e.left,e.top)}).bind(function(e){return cC((t=e,al.lastPositionIn(t).map(function(e){return fC(t,e).positions.concat(e)}).getOr([])),n);var t})},TC=function(t,n){return re(n.getClientRects()).bind(function(e){return NC(t,e.left,e.top)}).bind(function(e){return cC((t=e,al.firstPositionIn(t).map(function(e){return[e].concat(dC(t,e).positions)}).getOr([])),n);var t})},_C=function(e,t){e.selection.setRng(t),Rb(e,t)},RC=function(e,t,n){var r,o,i,a,u=e(t,n);return(a=u).breakType===wb.Wrap&&0===a.positions.length||!Uo.isBr(n.getNode())&&(i=u).breakType===wb.Br&&1===i.positions.length?(r=e,o=t,!u.breakAt.map(function(e){return r(o,e).breakAt.isSome()}).getOr(!1)):u.breakAt.isNone()},AC=d(RC,fC),DC=d(RC,dC),BC=function(e,t,n,r){var o,i,a,u,s=e.selection.getRng(),l=t?1:-1;if(fs()&&(o=t,i=s,a=n,u=Su.fromRangeStart(i),al.positionIn(!o,a).map(function(e){return e.isEqual(u)}).getOr(!1))){var c=op(l,e,n,!t,!0);return _C(e,c),!0}return!1},OC=function(e,t){var n=t.getNode(e);return Uo.isElement(n)&&"TABLE"===n.nodeName?_.some(n):_.none()},PC=function(u,s,l){var e=OC(!!s,l),t=!1===s;e.fold(function(){return _C(u,l.toRange())},function(a){return al.positionIn(t,u.getBody()).filter(function(e){return e.isEqual(l)}).fold(function(){return _C(u,l.toRange())},function(e){return n=s,o=a,t=l,void((i=wc(r=u))?r.undoManager.transact(function(){var e=ur.fromTag(i);kr(e,kc(r)),Li(e,ur.fromTag("br")),n?Pi(ur.fromDom(o),e):Oi(ur.fromDom(o),e);var t=r.dom.createRng();t.setStart(e.dom(),0),t.setEnd(e.dom(),0),_C(r,t)}):_C(r,t.toRange()));var n,r,o,t,i})})},IC=function(e,t,n,r){var o,i,a,u,s,l,c=e.selection.getRng(),f=Su.fromRangeStart(c),d=e.getBody();if(t||!AC(r,f))return!(!t||!DC(r,f))&&(o=d,m=TC(i=n,a=f).orThunk(function(){return ne(a.getClientRects()).bind(function(e){return lC(pC(o,Su.after(i)),e.left)})}).getOr(Su.after(i)),PC(e,t,m),!0);var m=(u=d,SC(s=n,l=f).orThunk(function(){return ne(l.getClientRects()).bind(function(e){return lC(mC(u,Su.before(s)),e.left)})}).getOr(Su.before(s)));return PC(e,t,m),!0},LC=function(t,n){return function(){return _.from(t.dom.getParent(t.selection.getNode(),"td,th")).bind(function(e){return _.from(t.dom.getParent(e,"table")).map(function(e){return BC(t,n,e)})}).getOr(!1)}},MC=function(n,r){return function(){return _.from(n.dom.getParent(n.selection.getNode(),"td,th")).bind(function(t){return _.from(n.dom.getParent(t,"table")).map(function(e){return IC(n,r,e,t)})}).getOr(!1)}},FC=function(e){return F(["figcaption"],fr(e))},zC=function(e){var t=V.document.createRange();return t.setStartBefore(e.dom()),t.setEndBefore(e.dom()),t},UC=function(e,t,n){n?Li(e,t):Ii(e,t)},jC=function(e,t,n,r){return""===t?(c=e,f=r,d=ur.fromTag("br"),UC(c,d,f),zC(d)):(o=e,i=r,a=t,u=n,s=ur.fromTag(a),l=ur.fromTag("br"),kr(s,u),Li(s,l),UC(o,s,i),zC(l));var o,i,a,u,s,l,c,f,d},VC=function(e,t,n){return t?(o=e.dom(),dC(o,n).breakAt.isNone()):(r=e.dom(),fC(r,n).breakAt.isNone());var r,o},HC=function(t,n){var e,r,o,i=ur.fromDom(t.getBody()),a=Su.fromRangeStart(t.selection.getRng()),u=wc(t),s=kc(t);return(e=a,r=i,o=d(Mr,r),ta(ur.fromDom(e.container()),bo,o).filter(FC)).exists(function(){if(VC(i,n,a)){var e=jC(i,u,s,n);return t.selection.setRng(e),!0}return!1})},qC=function(e,t){return function(){return!!e.selection.isCollapsed()&&HC(e,t)}},$C=function(e,r){return Z(W(e,function(e){return Xy({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:o},e)}),function(e){return t=e,(n=r).keyCode===t.keyCode&&n.shiftKey===t.shiftKey&&n.altKey===t.altKey&&n.ctrlKey===t.ctrlKey&&n.metaKey===t.metaKey?[e]:[];var t,n})},WC=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}},KC=function(e,t){return Y($C(e,t),function(e){return e.action()})},XC=function(i,a){i.on("keydown",function(e){var t,n,r,o;!1===e.isDefaultPrevented()&&(t=i,n=a,r=e,o=ir.detect().os,KC([{keyCode:Nv.RIGHT,action:CC(t,!0)},{keyCode:Nv.LEFT,action:CC(t,!1)},{keyCode:Nv.UP,action:wC(t,!1)},{keyCode:Nv.DOWN,action:wC(t,!0)},{keyCode:Nv.RIGHT,action:LC(t,!0)},{keyCode:Nv.LEFT,action:LC(t,!1)},{keyCode:Nv.UP,action:MC(t,!1)},{keyCode:Nv.DOWN,action:MC(t,!0)},{keyCode:Nv.RIGHT,action:Kd.move(t,n,!0)},{keyCode:Nv.LEFT,action:Kd.move(t,n,!1)},{keyCode:Nv.RIGHT,ctrlKey:!o.isOSX(),altKey:o.isOSX(),action:Kd.moveNextWord(t,n)},{keyCode:Nv.LEFT,ctrlKey:!o.isOSX(),altKey:o.isOSX(),action:Kd.movePrevWord(t,n)},{keyCode:Nv.UP,action:qC(t,!1)},{keyCode:Nv.DOWN,action:qC(t,!0)}],r).each(function(e){r.preventDefault()}))})},YC=function(o,i){o.on("keydown",function(e){var t,n,r;!1===e.isDefaultPrevented()&&(t=o,n=i,r=e,KC([{keyCode:Nv.BACKSPACE,action:WC(id,t,!1)},{keyCode:Nv.DELETE,action:WC(id,t,!0)},{keyCode:Nv.BACKSPACE,action:WC(lp,t,!1)},{keyCode:Nv.DELETE,action:WC(lp,t,!0)},{keyCode:Nv.BACKSPACE,action:WC(Jd,t,n,!1)},{keyCode:Nv.DELETE,action:WC(Jd,t,n,!0)},{keyCode:Nv.BACKSPACE,action:WC(Am,t,!1)},{keyCode:Nv.DELETE,action:WC(Am,t,!0)},{keyCode:Nv.BACKSPACE,action:WC(yf,t,!1)},{keyCode:Nv.DELETE,action:WC(yf,t,!0)},{keyCode:Nv.BACKSPACE,action:WC(pf,t,!1)},{keyCode:Nv.DELETE,action:WC(pf,t,!0)},{keyCode:Nv.BACKSPACE,action:WC(tp,t,!1)},{keyCode:Nv.DELETE,action:WC(tp,t,!0)}],r).each(function(e){r.preventDefault()}))}),o.on("keyup",function(e){var t,n;!1===e.isDefaultPrevented()&&(t=o,n=e,KC([{keyCode:Nv.BACKSPACE,action:WC(ad,t)},{keyCode:Nv.DELETE,action:WC(ad,t)}],n))})},GC=function(e){return _.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},JC=function(e,t){var n,r,o,i=t,a=e.dom,u=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var s=function(e){for(;e;){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}}(t.firstChild);s&&/^(UL|OL|DL)$/.test(s.nodeName)&&t.insertBefore(a.doc.createTextNode(" "),t.firstChild)}if(o=a.createRng(),t.normalize(),t.hasChildNodes()){for(n=new mo(t,t);r=n.current();){if(Uo.isText(r)){o.setStart(r,0),o.setEnd(r,0);break}if(u[r.nodeName.toLowerCase()]){o.setStartBefore(r),o.setEndBefore(r);break}i=r,r=n.next()}r||(o.setStart(i,0),o.setEnd(i,0))}else Uo.isBr(t)?t.nextSibling&&a.isBlock(t.nextSibling)?(o.setStartBefore(t),o.setEndBefore(t)):(o.setStartAfter(t),o.setEndAfter(t)):(o.setStart(t,0),o.setEnd(t,0));e.selection.setRng(o),a.remove(void 0),e.selection.scrollIntoView(t)}},QC=function(e,t){var n,r,o=e.getRoot();for(n=t;n!==o&&"false"!==e.getContentEditable(n);)"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},ZC=GC,ew=function(e){return GC(e).fold(q(""),function(e){return e.nodeName.toUpperCase()})},tw=function(e){return GC(e).filter(function(e){return Eo(ur.fromDom(e))}).isSome()},nw=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},rw=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},ow=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},iw=function(e,t,n){for(var r=e[n?"firstChild":"lastChild"];r&&!Uo.isElement(r);)r=r[n?"nextSibling":"previousSibling"];return r===t},aw=function(e,t,n,r,o){var i=e.dom,a=e.selection.getRng();if(n!==e.getBody()){var u;rw(u=n)&&rw(u.parentNode)&&(o="LI");var s,l,c=o?t(o):i.create("BR");if(iw(n,r,!0)&&iw(n,r,!1))nw(n,"LI")?i.insertAfter(c,ow(n)):i.replace(c,n);else if(iw(n,r,!0))nw(n,"LI")?(i.insertAfter(c,ow(n)),c.appendChild(i.doc.createTextNode(" ")),c.appendChild(n)):n.parentNode.insertBefore(c,n);else if(iw(n,r,!1))i.insertAfter(c,ow(n));else{n=ow(n);var f=a.cloneRange();f.setStartAfter(r),f.setEndAfter(n);var d=f.extractContents();"LI"===o&&(l="LI",(s=d).firstChild&&s.firstChild.nodeName===l)?(c=d.firstChild,i.insertAfter(d,n)):(i.insertAfter(d,n),i.insertAfter(c,n))}i.remove(r),JC(e,c)}},uw=function(e){e.innerHTML='<br data-mce-bogus="1">'},sw=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},lw=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},cw=function(e,t,n){return!1===Uo.isText(t)?n:e?1===n&&t.data.charAt(n-1)===ba?0:n:n===t.data.length-1&&t.data.charAt(n)===ba?t.data.length:n},fw=function(e,t){var n,r,o=e.getRoot();for(n=t;n!==o&&"false"!==e.getContentEditable(n);)"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},dw=function(e,t){var n=wc(e);n&&n.toLowerCase()===t.tagName.toLowerCase()&&e.dom.setAttribs(t,kc(e))},mw=function(a,e){var t,u,s,i,l,n,r,o,c,f,d,m,p,g,h,v,y,b,C,w=a.dom,k=a.schema,x=k.getNonEmptyElements(),E=a.selection.getRng(),N=function(e){var t,n,r,o=s,i=k.getTextInlineElements();if(e||"TABLE"===f||"HR"===f?(t=w.create(e||m),dw(a,t)):t=l.cloneNode(!1),r=t,!1===Nc(a))w.setAttrib(t,"style",null),w.setAttrib(t,"class",null);else do{if(i[o.nodeName]){if(Yu(o)||hl(o))continue;n=o.cloneNode(!1),w.setAttrib(n,"id",""),t.hasChildNodes()?n.appendChild(t.firstChild):r=n,t.appendChild(n)}}while((o=o.parentNode)&&o!==u);return uw(r),t},S=function(e){var t,n,r,o;if(o=cw(e,s,i),Uo.isText(s)&&(e?0<o:o<s.nodeValue.length))return!1;if(s.parentNode===l&&p&&!e)return!0;if(e&&Uo.isElement(s)&&s===l.firstChild)return!0;if(sw(s,"TABLE")||sw(s,"HR"))return p&&!e||!p&&e;for(t=new mo(s,l),Uo.isText(s)&&(e&&0===o?t.prev():e||o!==s.nodeValue.length||t.next());n=t.current();){if(Uo.isElement(n)){if(!n.getAttribute("data-mce-bogus")&&(r=n.nodeName.toLowerCase(),x[r]&&"br"!==r))return!1}else if(Uo.isText(n)&&!/^[ \t\r\n]*$/.test(n.nodeValue))return!1;e?t.prev():t.next()}return!0},T=function(){r=/^(H[1-6]|PRE|FIGURE)$/.test(f)&&"HGROUP"!==d?N(m):N(),Sc(a)&&lw(w,c)&&w.isEmpty(l)?r=w.split(c,l):w.insertAfter(r,l),JC(a,r)};Sp(w,E).each(function(e){E.setStart(e.startContainer,e.startOffset),E.setEnd(e.endContainer,e.endOffset)}),s=E.startContainer,i=E.startOffset,m=wc(a),n=e.shiftKey,Uo.isElement(s)&&s.hasChildNodes()&&(p=i>s.childNodes.length-1,s=s.childNodes[Math.min(i,s.childNodes.length-1)]||s,i=p&&Uo.isText(s)?s.nodeValue.length:0),(u=fw(w,s))&&((m&&!n||!m&&n)&&(s=function(e,t,n,r,o){var i,a,u,s,l,c,f,d=t||"P",m=e.dom,p=fw(m,r);if(!(a=m.getParent(r,m.isBlock))||!lw(m,a)){if(c=(a=a||p)===e.getBody()||(f=a)&&/^(TD|TH|CAPTION)$/.test(f.nodeName)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return i=m.create(d),dw(e,i),a.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;for(s=r;s.parentNode!==a;)s=s.parentNode;for(;s&&!m.isBlock(s);)s=(u=s).previousSibling;if(u&&e.schema.isValidChild(c,d.toLowerCase())){for(i=m.create(d),dw(e,i),u.parentNode.insertBefore(i,u),s=u;s&&!m.isBlock(s);)l=s.nextSibling,i.appendChild(s),s=l;n.setStart(r,o),n.setEnd(r,o)}}return r}(a,m,E,s,i)),l=w.getParent(s,w.isBlock),c=l?w.getParent(l.parentNode,w.isBlock):null,f=l?l.nodeName.toUpperCase():"","LI"!==(d=c?c.nodeName.toUpperCase():"")||e.ctrlKey||(c=(l=c).parentNode,f=d),/^(LI|DT|DD)$/.test(f)&&w.isEmpty(l)?aw(a,N,c,l,m):m&&l===a.getBody()||(m=m||"P",xa(l)?(r=Ba(l),w.isEmpty(l)&&uw(l),JC(a,r)):S()?T():S(!0)?(r=l.parentNode.insertBefore(N(),l),JC(a,sw(l,"HR")?r:l)):((t=(b=E,C=b.cloneRange(),C.setStart(b.startContainer,cw(!0,b.startContainer,b.startOffset)),C.setEnd(b.endContainer,cw(!1,b.endContainer,b.endOffset)),C).cloneRange()).setEndAfter(l),o=t.extractContents(),y=o,U(Gi(ur.fromDom(y),pr),function(e){var t=e.dom();t.nodeValue=Ca(t.nodeValue)}),function(e){for(;Uo.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;);}(o),r=o.firstChild,w.insertAfter(o,l),function(e,t,n){var r,o=n,i=[];if(o){for(;o=o.firstChild;){if(e.isBlock(o))return;Uo.isElement(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}for(r=i.length;r--;)!(o=i[r]).hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue?e.remove(o):(a=e,(u=o)&&"A"===u.nodeName&&a.isEmpty(u)&&e.remove(o));var a,u}}(w,x,r),g=w,(h=l).normalize(),(v=h.lastChild)&&!/^(left|right)$/gi.test(g.getStyle(v,"float",!0))||g.add(h,"br"),w.isEmpty(l)&&uw(l),r.normalize(),w.isEmpty(r)?(w.remove(r),T()):JC(a,r)),w.setAttrib(r,"id",""),a.fire("NewBlock",{newBlock:r})))},pw=function(e,t){return ZC(e).filter(function(e){return 0<t.length&&Ir(ur.fromDom(e),t)}).isSome()},gw=function(e){return pw(e,xc(e))},hw=function(e){return pw(e,Ec(e))},vw=bf([{br:[]},{block:[]},{none:[]}]),yw=function(e,t){return hw(e)},bw=function(n){return function(e,t){return""===wc(e)===n}},Cw=function(n){return function(e,t){return tw(e)===n}},ww=function(n,r){return function(e,t){return ew(e)===n.toUpperCase()===r}},kw=function(e){return ww("pre",e)},xw=function(n){return function(e,t){return Cc(e)===n}},Ew=function(e,t){return gw(e)},Nw=function(e,t){return t},Sw=function(e){var t=wc(e),n=QC(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},Tw=function(e,t){return function(n,r){return X(e,function(e,t){return e&&t(n,r)},!0)?_.some(t):_.none()}},_w=function(e,t){return vd([Tw([yw],vw.none()),Tw([ww("summary",!0)],vw.br()),Tw([kw(!0),xw(!1),Nw],vw.br()),Tw([kw(!0),xw(!1)],vw.block()),Tw([kw(!0),xw(!0),Nw],vw.block()),Tw([kw(!0),xw(!0)],vw.br()),Tw([Cw(!0),Nw],vw.br()),Tw([Cw(!0)],vw.block()),Tw([bw(!0),Nw,Sw],vw.block()),Tw([bw(!0)],vw.br()),Tw([Ew],vw.br()),Tw([bw(!1),Nw],vw.br()),Tw([Sw],vw.block())],[e,t.shiftKey]).getOr(vw.none())},Rw=function(e,t){_w(e,t).fold(function(){Lp(e,t)},function(){mw(e,t)},o)},Aw=function(o){o.on("keydown",function(e){var t,n,r;e.keyCode===Nv.ENTER&&(t=o,(n=e).isDefaultPrevented()||(n.preventDefault(),(r=t.undoManager).typing&&(r.typing=!1,r.add()),t.undoManager.transact(function(){!1===t.selection.isCollapsed()&&t.execCommand("Delete"),Rw(t,n)})))})},Dw=function(n,r){var e=r.container(),t=r.offset();return Uo.isText(e)?(e.insertData(t,n),_.some(xu(e,t+n.length))):Os(r).map(function(e){var t=ur.fromText(n);return r.isAtEnd()?Pi(e,t):Oi(e,t),xu(t.dom(),n.length)})},Bw=d(Dw," "),Ow=d(Dw," "),Pw=function(e,t,n){return al.navigateIgnore(e,t,n,Bf)},Iw=function(e,t){return Y(of(ur.fromDom(t.container()),e),bo)},Lw=function(e,n,r){return Pw(e,n.dom(),r).forall(function(t){return Iw(n,r).fold(function(){return!1===Es(t,r,n.dom())},function(e){return!1===Es(t,r,n.dom())&&Fr(e,ur.fromDom(t.container()))})})},Mw=function(t,n,r){return Iw(n,r).fold(function(){return Pw(t,n.dom(),r).forall(function(e){return!1===Es(e,r,n.dom())})},function(e){return Pw(t,e.dom(),r).isNone()})},Fw=d(Mw,!1),zw=d(Mw,!0),Uw=d(Lw,!1),jw=d(Lw,!0),Vw=function(e){return xu.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},Hw=function(e,t){var n=j(of(ur.fromDom(t.container()),e),bo);return ne(n).getOr(e)},qw=function(e,t){return Vw(t)?Df(t):Df(t)||al.prevPosition(Hw(e,t).dom(),t).exists(Df)},$w=function(e,t){return Vw(t)?Af(t):Af(t)||al.nextPosition(Hw(e,t).dom(),t).exists(Af)},Ww=function(e){return Os(e).bind(function(e){return ta(e,mr)}).exists(function(e){return t=Sr(e,"white-space"),F(["pre","pre-wrap"],t);var t})},Kw=function(e,t){return o=e,i=t,al.prevPosition(o.dom(),i).isNone()||(n=e,r=t,al.nextPosition(n.dom(),r).isNone())||Fw(e,t)||zw(e,t)||xf(e,t)||kf(e,t);var n,r,o,i},Xw=function(e,t){var n,r,o,i=(r=(n=t).container(),o=n.offset(),Uo.isText(r)&&o<r.data.length?xu(r,o+1):n);return!Ww(i)&&(zw(e,i)||jw(e,i)||kf(e,i)||$w(e,i))},Yw=function(e,t){return n=e,!Ww(r=t)&&(Fw(n,r)||Uw(n,r)||xf(n,r)||qw(n,r))||Xw(e,t);var n,r},Gw=function(e,t){return Sf(e.charAt(t))},Jw=function(e){var t=e.container();return Uo.isText(t)&&Gn(t.data," ")},Qw=function(e){var t=e.data,n=W(t.split(""),function(e,t,n){return Sf(e)&&0<t&&t<n.length-1&&_f(n[t-1])&&_f(n[t+1])?" ":e}).join("");return n!==t&&(e.data=n,!0)},Zw=function(c,e){return _.some(e).filter(Jw).bind(function(e){var t,n,r,o,i,a,u,s,l=e.container();return i=c,u=(a=l).data,s=xu(a,0),Gw(u,0)&&!Yw(i,s)&&(a.data=" "+u.slice(1),1)||Qw(l)||(t=c,r=(n=l).data,o=xu(n,r.length-1),Gw(r,r.length-1)&&!Yw(t,o)&&(n.data=r.slice(0,-1)+" ",1))?_.some(e):_.none()})},ek=function(t){var e=ur.fromDom(t.getBody());t.selection.isCollapsed()&&Zw(e,xu.fromRangeStart(t.selection.getRng())).each(function(e){t.selection.setRng(e.toRange())})},tk=function(r,o){return function(e){return t=r,!Ww(n=e)&&(Kw(t,n)||qw(t,n)||$w(t,n))?Bw(o):Ow(o);var t,n}},nk=function(e){var t,n,r=Su.fromRangeStart(e.selection.getRng()),o=ur.fromDom(e.getBody());if(e.selection.isCollapsed()){var i=d(Uc.isInlineTarget,e),a=Su.fromRangeStart(e.selection.getRng());return Id(i,e.getBody(),a).bind((n=o,function(e){return e.fold(function(e){return al.prevPosition(n.dom(),Su.before(e))},function(e){return al.firstPositionIn(e)},function(e){return al.lastPositionIn(e)},function(e){return al.nextPosition(n.dom(),Su.after(e))})})).bind(tk(o,r)).exists((t=e,function(e){return t.selection.setRng(e.toRange()),t.nodeChanged(),!0}))}return!1},rk=function(r){r.on("keydown",function(e){var t,n;!1===e.isDefaultPrevented()&&(t=r,n=e,KC([{keyCode:Nv.SPACEBAR,action:WC(nk,t)}],n).each(function(e){n.preventDefault()}))})},ok=function(e,t){var n;t.hasAttribute("data-mce-caret")&&(Ba(t),(n=e).selection.setRng(n.selection.getRng()),e.selection.scrollIntoView(t))},ik=function(e,t){var n,r=(n=e,ra(ur.fromDom(n.getBody()),"*[data-mce-caret]").fold(q(null),function(e){return e.dom()}));if(r)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void ok(e,r)):void(Sa(r)&&(ok(e,r),e.undoManager.add()))},ak=function(e){e.on("keyup compositionstart",d(ik,e))},uk=ir.detect().browser,sk=function(t){var e,n;e=t,n=ji(function(){e.composing||ek(e)},0),uk.isIE()&&(e.on("keypress",function(e){n.throttle()}),e.on("remove",function(e){n.cancel()})),t.on("input",function(e){!1===e.isComposing&&ek(t)})},lk=function(r){r.on("keydown",function(e){var t,n;!1===e.isDefaultPrevented()&&(t=r,n=e,KC([{keyCode:Nv.END,action:kC(t,!0)},{keyCode:Nv.HOME,action:kC(t,!1)}],n).each(function(e){n.preventDefault()}))})},ck=function(e){var t=Kd.setupSelectedState(e);ak(e),XC(e,t),YC(e,t),Aw(e),rk(e),sk(e),lk(e)};function fk(u){var s,n,r,o=Jt.each,l=Nv.BACKSPACE,c=Nv.DELETE,f=u.dom,d=u.selection,e=u.settings,t=u.parser,i=pe.gecko,a=pe.ie,m=pe.webkit,p="data:text/mce-internal,",g=a?"Text":"URL",h=function(e,t){try{u.getDoc().execCommand(e,!1,t)}catch(e){}},v=function(e){return e.isDefaultPrevented()},y=function(){u.shortcuts.add("meta+a",null,"SelectAll")},b=function(){u.on("keydown",function(e){if(!v(e)&&e.keyCode===l&&d.isCollapsed()&&0===d.getRng().startOffset){var t=d.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}})},C=function(){u.inline||(u.contentStyles.push("body {min-height: 150px}"),u.on("click",function(e){var t;if("HTML"===e.target.nodeName){if(11<pe.ie)return void u.getBody().focus();t=u.selection.getRng(),u.getBody().focus(),u.selection.setRng(t),u.selection.normalize(),u.nodeChanged()}}))};return u.on("keydown",function(e){var t,n,r,o,i;if(!v(e)&&e.keyCode===Nv.BACKSPACE&&(n=(t=d.getRng()).startContainer,r=t.startOffset,o=f.getRoot(),i=n,t.collapsed&&0===r)){for(;i&&i.parentNode&&i.parentNode.firstChild===i&&i.parentNode!==o;)i=i.parentNode;"BLOCKQUOTE"===i.tagName&&(u.formatter.toggle("blockquote",null,i),(t=f.createRng()).setStart(n,0),t.setEnd(n,0),d.setRng(t))}}),s=function(e){var t=f.create("body"),n=e.cloneContents();return t.appendChild(n),d.serializer.serialize(t,{format:"html"})},u.on("keydown",function(e){var t,n,r,o,i,a=e.keyCode;if(!v(e)&&(a===c||a===l)){if(t=u.selection.isCollapsed(),n=u.getBody(),t&&!f.isEmpty(n))return;if(!t&&(r=u.selection.getRng(),o=s(r),(i=f.createRng()).selectNode(u.getBody()),o!==s(i)))return;e.preventDefault(),u.setContent(""),n.firstChild&&f.isBlock(n.firstChild)?u.selection.setCursorLocation(n.firstChild,0):u.selection.setCursorLocation(n,0),u.nodeChanged()}}),pe.windowsPhone||u.on("keyup focusin mouseup",function(e){Nv.modifierPressed(e)||d.normalize()},!0),m&&(u.settings.content_editable||f.bind(u.getDoc(),"mousedown mouseup",function(e){var t;if(e.target===u.getDoc().documentElement)if(t=d.getRng(),u.getBody().focus(),"mousedown"===e.type){if(Na(t.startContainer))return;d.placeCaretAt(e.clientX,e.clientY)}else d.setRng(t)}),u.on("click",function(e){var t=e.target;/^(IMG|HR)$/.test(t.nodeName)&&"false"!==f.getContentEditableParent(t)&&(e.preventDefault(),u.selection.select(t),u.nodeChanged()),"A"===t.nodeName&&f.hasClass(t,"mce-item-anchor")&&(e.preventDefault(),d.select(t))}),e.forced_root_block&&u.on("init",function(){h("DefaultParagraphSeparator",e.forced_root_block)}),u.on("init",function(){u.dom.bind(u.getBody(),"submit",function(e){e.preventDefault()})}),b(),t.addNodeFilter("br",function(e){for(var t=e.length;t--;)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}),pe.iOS?(u.inline||u.on("keydown",function(){V.document.activeElement===V.document.body&&u.getWin().focus()}),C(),u.on("click",function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)}),u.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")):y()),11<=pe.ie&&(C(),b()),pe.ie&&(y(),h("AutoUrlDetect",!1),u.on("dragstart",function(e){var t,n,r;(t=e).dataTransfer&&(u.selection.isCollapsed()&&"IMG"===t.target.tagName&&d.select(t.target),0<(n=u.selection.getContent()).length&&(r=p+escape(u.id)+","+escape(n),t.dataTransfer.setData(g,r)))}),u.on("drop",function(e){if(!v(e)){var t=(i=e).dataTransfer&&(a=i.dataTransfer.getData(g))&&0<=a.indexOf(p)?(a=a.substr(p.length).split(","),{id:unescape(a[0]),html:unescape(a[1])}):null;if(t&&t.id!==u.id){e.preventDefault();var n=Db(e.x,e.y,u.getDoc());d.setRng(n),r=t.html,o=!0,u.queryCommandSupported("mceInsertClipboardContent")?u.execCommand("mceInsertClipboardContent",!1,{content:r,internal:o}):u.execCommand("mceInsertContent",!1,r)}}var r,o,i,a})),i&&(u.on("keydown",function(e){if(!v(e)&&e.keyCode===l){if(!u.getBody().getElementsByTagName("hr").length)return;if(d.isCollapsed()&&0===d.getRng().startOffset){var t=d.getNode(),n=t.previousSibling;if("HR"===t.nodeName)return f.remove(t),void e.preventDefault();n&&n.nodeName&&"hr"===n.nodeName.toLowerCase()&&(f.remove(n),e.preventDefault())}}}),V.Range.prototype.getClientRects||u.on("mousedown",function(e){if(!v(e)&&"HTML"===e.target.nodeName){var t=u.getBody();t.blur(),be.setEditorTimeout(u,function(){t.focus()})}}),n=function(){var e=f.getAttribs(d.getStart().cloneNode(!1));return function(){var t=d.getStart();t!==u.getBody()&&(f.setAttrib(t,"style",null),o(e,function(e){t.setAttributeNode(e.cloneNode(!0))}))}},r=function(){return!d.isCollapsed()&&f.getParent(d.getStart(),f.isBlock)!==f.getParent(d.getEnd(),f.isBlock)},u.on("keypress",function(e){var t;if(!v(e)&&(8===e.keyCode||46===e.keyCode)&&r())return t=n(),u.getDoc().execCommand("delete",!1,null),t(),e.preventDefault(),!1}),f.bind(u.getDoc(),"cut",function(e){var t;!v(e)&&r()&&(t=n(),be.setEditorTimeout(u,function(){t()}))}),e.readonly||u.on("BeforeExecCommand MouseDown",function(){h("StyleWithCSS",!1),h("enableInlineTableEditing",!1),e.object_resizing||h("enableObjectResizing",!1)}),u.on("SetContent ExecCommand",function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||o(f.select("a"),function(e){var t=e.parentNode,n=f.getRoot();if(t.lastChild===e){for(;t&&!f.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}f.add(t,"br",{"data-mce-bogus":1})}})}),u.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"),pe.mac&&u.on("keydown",function(e){!Nv.metaKeyPressed(e)||e.shiftKey||37!==e.keyCode&&39!==e.keyCode||(e.preventDefault(),u.selection.getSel().modify("move",37===e.keyCode?"backward":"forward","lineboundary"))}),b()),{refreshContentEditable:function(){},isHidden:function(){var e;return!i||u.removed?0:!(e=u.selection.getSel())||!e.rangeCount||0===e.rangeCount}}}var dk=function(e){return Uo.isElement(e)&&ko(ur.fromDom(e))},mk=function(t){t.on("click",function(e){3<=e.detail&&function(e){var t=e.selection.getRng(),n=xu.fromRangeStart(t),r=xu.fromRangeEnd(t);if(xu.isElementPosition(n)){var o=n.container();dk(o)&&al.firstPositionIn(o).each(function(e){return t.setStart(e.container(),e.offset())})}xu.isElementPosition(r)&&(o=n.container(),dk(o)&&al.lastPositionIn(o).each(function(e){return t.setEnd(e.container(),e.offset())})),e.selection.setRng(uc(t))}(t)})},pk=function(e){var t,n;(t=e).on("click",function(e){t.dom.getParent(e.target,"details")&&e.preventDefault()}),(n=e).parser.addNodeFilter("details",function(e){U(e,function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")})}),n.serializer.addNodeFilter("details",function(e){U(e,function(e){var t=e.attr("data-mce-open");e.attr("open",R(t)?t:null),e.attr("data-mce-open",null)})})},gk=Ei.DOM,hk=function(e){var t;e.bindPendingEventDelegates(),e.initialized=!0,e.fire("init"),e.focus(!0),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),(t=e).settings.auto_focus&&be.setEditorTimeout(t,function(){var e;(e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus)).destroyed||e.focus()},100)},vk=function(t,e){var n,r,u,o,i,a,s,l,c,f=t.settings,d=t.getElement(),m=t.getDoc();f.inline||(t.getElement().style.visibility=t.orgVisibility),e||f.content_editable||(m.open(),m.write(t.iframeHTML),m.close()),f.content_editable&&(t.on("remove",function(){var e=this.getBody();gk.removeClass(e,"mce-content-body"),gk.removeClass(e,"mce-edit-focus"),gk.setAttrib(e,"contentEditable",null)}),gk.addClass(d,"mce-content-body"),t.contentDocument=m=f.content_document||V.document,t.contentWindow=f.content_window||V.window,t.bodyElement=d,f.content_document=f.content_window=null,f.root_name=d.nodeName.toLowerCase()),(n=t.getBody()).disabled=!0,t.readonly=f.readonly,t.readonly||(t.inline&&"static"===gk.getStyle(n,"position",!0)&&(n.style.position="relative"),n.contentEditable=t.getParam("content_editable_state",!0)),n.disabled=!1,t.editorUpload=Uh(t),t.schema=fi(f),t.dom=Ei(m,{keep_values:!0,url_converter:t.convertURL,url_converter_scope:t,hex_colors:f.force_hex_style_colors,class_filter:f.class_filter,update_styles:!0,root_element:t.inline?t.getBody():null,collect:f.content_editable,schema:t.schema,contentCssCors:Mc(t),onSetAttrib:function(e){t.fire("SetAttrib",e)}}),t.parser=((o=pb((u=t).settings,u.schema)).addAttributeFilter("src,href,style,tabindex",function(e,t){for(var n,r,o,i=e.length,a=u.dom;i--;)if(r=(n=e[i]).attr(t),o="data-mce-"+t,!n.attributes.map[o]){if(0===r.indexOf("data:")||0===r.indexOf("blob:"))continue;"style"===t?((r=a.serializeStyle(a.parseStyle(r),n.name)).length||(r=null),n.attr(o,r),n.attr(t,r)):"tabindex"===t?(n.attr(o,r),n.attr(t,null)):n.attr(o,u.convertURL(r,t,n.name))}}),o.addNodeFilter("script",function(e){for(var t,n,r=e.length;r--;)0!==(n=(t=e[r]).attr("type")||"no/type").indexOf("mce-")&&t.attr("type","mce-"+n)}),o.addNodeFilter("#cdata",function(e){for(var t,n=e.length;n--;)(t=e[n]).type=8,t.name="#comment",t.value="[CDATA["+t.value+"]]"}),o.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(e){for(var t,n=e.length,r=u.schema.getNonEmptyElements();n--;)(t=e[n]).isEmpty(r)&&0===t.getAll("br").length&&(t.append(new rb("br",1)).shortEnded=!0)}),o),t.serializer=bb(f,t),t.selection=iC(t.dom,t.getWin(),t.serializer,t),t.annotator=jl(t),t.formatter=$y(t),t.undoManager=Qv(t),t._nodeChangeDispatcher=new Gh(t),t._selectionOverrides=Rv(t),pk(t),mk(t),ck(t),qh(t),t.fire("PreInit"),f.browser_spellcheck||f.gecko_spellcheck||(m.body.spellcheck=!1,gk.setAttrib(n,"spellcheck","false")),t.quirks=fk(t),t.fire("PostRender"),f.directionality&&(n.dir=f.directionality),f.nowrap&&(n.style.whiteSpace="nowrap"),f.protect&&t.on("BeforeSetContent",function(t){Jt.each(f.protect,function(e){t.content=t.content.replace(e,function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"})})}),t.on("SetContent",function(){t.addVisual(t.getBody())}),t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"}),t.on("compositionstart compositionend",function(e){t.composing="compositionstart"===e.type}),0<t.contentStyles.length&&(r="",Jt.each(t.contentStyles,function(e){r+=e+"\r\n"}),t.dom.addStyle(r)),(i=t,i.inline?gk.styleSheetLoader:i.dom.styleSheetLoader).loadAll(t.contentCSS,function(e){hk(t)},function(e){hk(t)}),f.content_style&&(a=t,s=f.content_style,l=ur.fromDom(a.getDoc().head),c=ur.fromTag("style"),wr(c,"type","text/css"),Li(c,ur.fromText(s)),Li(l,c))},yk=Ei.DOM,bk=function(e,t){var n,r,o,i,a,u,s,l=e.editorManager.translate("Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help"),c=(n=e.id,r=l,o=t.height,i=pc(e),s=ur.fromTag("iframe"),kr(s,i),kr(s,{id:n+"_ifr",frameBorder:"0",allowTransparency:"true",title:r}),Nr(s,{width:"100%",height:(a=o,u="number"==typeof a?a+"px":a,u||""),display:"block"}),s).dom();c.onload=function(){c.onload=null,e.fire("load")};var f,d,m,p,g=function(e,t){if(V.document.domain!==V.window.location.hostname&&pe.ie&&pe.ie<12){var n=zh.uuid("mce");e[n]=function(){vk(e)};var r='javascript:(function(){document.open();document.domain="'+V.document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return yk.setAttrib(t,"src",r),!0}return!1}(e,c);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=c,e.iframeHTML=(p=gc(f=e)+"<html><head>",hc(f)!==f.documentBaseUrl&&(p+='<base href="'+f.documentBaseURI.getURI()+'" />'),p+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',d=vc(f),m=yc(f),bc(f)&&(p+='<meta http-equiv="Content-Security-Policy" content="'+bc(f)+'" />'),p+='</head><body id="'+d+'" class="mce-content-body '+m+'" data-id="'+f.id+'"><br></body></html>'),yk.add(t.iframeContainer,c),g},Ck=function(e,t){var n=bk(e,t);t.editorContainer&&(yk.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=yk.isHidden(t.editorContainer)),e.getElement().style.display="none",yk.setAttrib(e.id,"aria-hidden","true"),n||vk(e)},wk=Ei.DOM,kk=function(t,n,r){var e=Eh.get(r),o=Eh.urls[r]||t.documentBaseUrl.replace(/\/$/,"");if(r=Jt.trim(r),e&&-1===Jt.inArray(n,r)){if(Jt.each(Eh.dependencies(r),function(e){kk(t,n,e)}),t.plugins[r])return;try{var i=new e(t,o,t.$);(t.plugins[r]=i).init&&(i.init(t,o),n.push(r))}catch(e){xh.pluginInitError(t,r,e)}}},xk=function(e){return e.replace(/^\-/,"")},Ek=function(e){return{editorContainer:e,iframeContainer:e}},Nk=function(e){var t,n,r=e.getElement();return e.inline?Ek(null):(t=r,n=wk.create("div"),wk.insertAfter(n,t),Ek(n))},Sk=function(e){var t,n,r,o,i,a,u,s,l,c,f,d=e.settings,m=e.getElement();return e.orgDisplay=m.style.display,R(d.theme)?(c=(o=e).settings,f=o.getElement(),i=c.width||wk.getStyle(f,"width")||"100%",a=c.height||wk.getStyle(f,"height")||f.offsetHeight,u=c.min_height||100,(s=/^[0-9\.]+(|px)$/i).test(""+i)&&(i=Math.max(parseInt(i,10),100)),s.test(""+a)&&(a=Math.max(parseInt(a,10),u)),l=o.theme.renderUI({targetNode:f,width:i,height:a,deltaWidth:c.delta_width,deltaHeight:c.delta_height}),c.content_editable||(a=(l.iframeHeight||a)+("number"==typeof a?l.deltaHeight||0:""))<u&&(a=u),l.height=a,l):P(d.theme)?(r=(t=e).getElement(),(n=t.settings.theme(t,r)).editorContainer.nodeType&&(n.editorContainer.id=n.editorContainer.id||t.id+"_parent"),n.iframeContainer&&n.iframeContainer.nodeType&&(n.iframeContainer.id=n.iframeContainer.id||t.id+"_iframecontainer"),n.height=n.iframeHeight?n.iframeHeight:r.offsetHeight,n):Nk(e)},Tk=function(t){var e,n,r,o,i,a,u=t.settings,s=t.getElement();return t.rtl=u.rtl_ui||t.editorManager.i18n.rtl,t.editorManager.i18n.setCode(u.language),u.aria_label=u.aria_label||wk.getAttrib(s,"aria-label",t.getLang("aria.rich_text_area")),t.fire("ScriptsLoaded"),o=(n=t).settings.theme,R(o)?(n.settings.theme=xk(o),r=Nh.get(o),n.theme=new r(n,Nh.urls[o]),n.theme.init&&n.theme.init(n,Nh.urls[o]||n.documentBaseUrl.replace(/\/$/,""),n.$)):n.theme={},i=t,a=[],Jt.each(i.settings.plugins.split(/[ ,]/),function(e){kk(i,a,xk(e))}),e=Sk(t),t.editorContainer=e.editorContainer?e.editorContainer:null,u.content_css&&Jt.each(Jt.explode(u.content_css),function(e){t.contentCSS.push(t.documentBaseURI.toAbsolute(e))}),u.content_editable?vk(t):Ck(t,e)},_k=Ei.DOM,Rk=function(e){return"-"===e.charAt(0)},Ak=function(i,a){var u=Ri.ScriptLoader;!function(e,t,n,r){var o=t.settings,i=o.theme;if(R(i)){if(!Rk(i)&&!Nh.urls.hasOwnProperty(i)){var a=o.theme_url;a?Nh.load(i,t.documentBaseURI.toAbsolute(a)):Nh.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue(function(){Nh.waitFor(i,r)})}else r()}(u,i,a,function(){var e,t,n,r,o;e=u,(n=(t=i).settings).language&&"en"!==n.language&&!n.language_url&&(n.language_url=t.editorManager.baseURL+"/langs/"+n.language+".js"),n.language_url&&!t.editorManager.i18n.data[n.language]&&e.add(n.language_url),r=i.settings,o=a,Jt.isArray(r.plugins)&&(r.plugins=r.plugins.join(" ")),Jt.each(r.external_plugins,function(e,t){Eh.load(t,e),r.plugins+=" "+t}),Jt.each(r.plugins.split(/[ ,]/),function(e){if((e=Jt.trim(e))&&!Eh.urls[e])if(Rk(e)){e=e.substr(1,e.length);var t=Eh.dependencies(e);Jt.each(t,function(e){var t={prefix:"plugins/",resource:e,suffix:"/plugin"+o+".js"};e=Eh.createUrl(t,e),Eh.load(e.resource,e)})}else Eh.load(e,{prefix:"plugins/",resource:e,suffix:"/plugin"+o+".js"})}),u.loadQueue(function(){i.removed||Tk(i)},i,function(e){xh.pluginLoadError(i,e[0]),i.removed||Tk(i)})})},Dk=function(t){var e=t.settings,n=t.id,r=function(){_k.unbind(V.window,"ready",r),t.render()};if(_e.Event.domLoaded){if(t.getElement()&&pe.contentEditable){e.inline?t.inline=!0:(t.orgVisibility=t.getElement().style.visibility,t.getElement().style.visibility="hidden");var o=t.getElement().form||_k.getParent(n,"form");o&&(t.formElement=o,e.hidden_input&&!/TEXTAREA|INPUT/i.test(t.getElement().nodeName)&&(_k.insertAfter(_k.create("input",{type:"hidden",name:n}),n),t.hasHiddenInput=!0),t.formEventDelegate=function(e){t.fire(e.type,e)},_k.bind(o,"submit reset",t.formEventDelegate),t.on("reset",function(){t.setContent(t.startContent,{format:"raw"})}),!e.submit_patch||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return t.editorManager.triggerSave(),t.setDirty(!1),o._mceOldSubmit(o)})),t.windowManager=ph(t),t.notificationManager=mh(t),"xml"===e.encoding&&t.on("GetContent",function(e){e.save&&(e.content=_k.encode(e.content))}),e.add_form_submit_trigger&&t.on("submit",function(){t.initialized&&t.save()}),e.add_unload_trigger&&(t._beforeUnload=function(){!t.initialized||t.destroyed||t.isHidden()||t.save({format:"raw",no_events:!0,set_dirty:!1})},t.editorManager.on("BeforeUnload",t._beforeUnload)),t.editorManager.add(t),Ak(t,t.suffix)}}else _k.bind(V.window,"ready",r)},Bk=function(e,t,n){var r=e.sidebars?e.sidebars:[];r.push({name:t,settings:n}),e.sidebars=r},Ok=Jt.each,Pk=Jt.trim,Ik="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),Lk={ftp:21,http:80,https:443,mailto:25},Mk=function(r,e){var t,n,o=this;if(r=Pk(r),t=(e=o.settings=e||{}).base_uri,/^([\w\-]+):([^\/]{2})/i.test(r)||/^\s*#/.test(r))o.source=r;else{var i=0===r.indexOf("//");0!==r.indexOf("/")||i||(r=(t&&t.protocol||"http")+"://mce_host"+r),/^[\w\-]*:?\/\//.test(r)||(n=e.base_uri?e.base_uri.path:new Mk(V.document.location.href).directory,r=""==e.base_uri.protocol?"//mce_host"+o.toAbsPath(n,r):(r=/([^#?]*)([#?]?.*)/.exec(r),(t&&t.protocol||"http")+"://mce_host"+o.toAbsPath(n,r[1])+r[2])),r=r.replace(/@@/g,"(mce_at)"),r=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(r),Ok(Ik,function(e,t){var n=r[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),o[e]=n}),t&&(o.protocol||(o.protocol=t.protocol),o.userInfo||(o.userInfo=t.userInfo),o.port||"mce_host"!==o.host||(o.port=t.port),o.host&&"mce_host"!==o.host||(o.host=t.host),o.source=""),i&&(o.protocol="")}};Mk.prototype={setPath:function(e){e=/^(.*?)\/?(\w+)?$/.exec(e),this.path=e[0],this.directory=e[1],this.file=e[2],this.source="",this.getURI()},toRelative:function(e){var t;if("./"===e)return e;if("mce_host"!==(e=new Mk(e,{base_uri:this})).host&&this.host!==e.host&&e.host||this.port!==e.port||this.protocol!==e.protocol&&""!==e.protocol)return e.getURI();var n=this.getURI(),r=e.getURI();return n===r||"/"===n.charAt(n.length-1)&&n.substr(0,n.length-1)===r?n:(t=this.toRelPath(this.path,e.path),e.query&&(t+="?"+e.query),e.anchor&&(t+="#"+e.anchor),t)},toAbsolute:function(e,t){return(e=new Mk(e,{base_uri:this})).getURI(t&&this.isSameOrigin(e))},isSameOrigin:function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=Lk[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},toRelPath:function(e,t){var n,r,o,i=0,a="";if(e=(e=e.substring(0,e.lastIndexOf("/"))).split("/"),n=t.split("/"),e.length>=n.length)for(r=0,o=e.length;r<o;r++)if(r>=n.length||e[r]!==n[r]){i=r+1;break}if(e.length<n.length)for(r=0,o=n.length;r<o;r++)if(r>=e.length||e[r]!==n[r]){i=r+1;break}if(1===i)return t;for(r=0,o=e.length-(i-1);r<o;r++)a+="../";for(r=i-1,o=n.length;r<o;r++)a+=r!==i-1?"/"+n[r]:n[r];return a},toAbsPath:function(e,t){var n,r,o,i=0,a=[];for(r=/\/$/.test(t)?"/":"",e=e.split("/"),t=t.split("/"),Ok(e,function(e){e&&a.push(e)}),e=a,n=t.length-1,a=[];0<=n;n--)0!==t[n].length&&"."!==t[n]&&(".."!==t[n]?0<i?i--:a.push(t[n]):i++);return 0!==(o=(n=e.length-i)<=0?a.reverse().join("/"):e.slice(0,n).join("/")+"/"+a.reverse().join("/")).indexOf("/")&&(o="/"+o),r&&o.lastIndexOf("/")!==o.length-1&&(o+=r),o},getURI:function(e){var t,n=this;return n.source&&!e||(t="",e||(n.protocol?t+=n.protocol+"://":t+="//",n.userInfo&&(t+=n.userInfo+"@"),n.host&&(t+=n.host),n.port&&(t+=":"+n.port)),n.path&&(t+=n.path),n.query&&(t+="?"+n.query),n.anchor&&(t+="#"+n.anchor),n.source=t),n.source}},Mk.parseDataUri=function(e){var t,n;return e=decodeURIComponent(e).split(","),(n=/data:([^;]+)/.exec(e[0]))&&(t=n[1]),{type:t,data:e[1]}},Mk.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t};var Fk=function(e,t,n){var r,o,i,a,u;if(t.format=t.format?t.format:"html",t.get=!0,t.getInner=!0,t.no_events||e.fire("BeforeGetContent",t),"raw"===t.format)r=Jt.trim(Iv.trimExternal(e.serializer,n.innerHTML));else if("text"===t.format)r=Ca(n.innerText||n.textContent);else{if("tree"===t.format)return e.serializer.serialize(n,t);i=(o=e).serializer.serialize(n,t),a=wc(o),u=new RegExp("^(<"+a+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+a+">[\r\n]*|<br \\/>[\r\n]*)$"),r=i.replace(u,"")}return"text"===t.format||_o(ur.fromDom(n))?t.content=r:t.content=Jt.trim(r),t.no_events||e.fire("GetContent",t),t.content},zk=function(e,t){t(e),e.firstChild&&zk(e.firstChild,t),e.next&&zk(e.next,t)},Uk=function(e,t,n){var r=function(e,n,t){var r={},o={},i=[];for(var a in t.firstChild&&zk(t.firstChild,function(t){U(e,function(e){e.name===t.name&&(r[e.name]?r[e.name].nodes.push(t):r[e.name]={filter:e,nodes:[t]})}),U(n,function(e){"string"==typeof t.attr(e.name)&&(o[e.name]?o[e.name].nodes.push(t):o[e.name]={filter:e,nodes:[t]})})}),r)r.hasOwnProperty(a)&&i.push(r[a]);for(var a in o)o.hasOwnProperty(a)&&i.push(o[a]);return i}(e,t,n);U(r,function(t){U(t.filter.callbacks,function(e){e(t.nodes,t.filter.name,{})})})},jk=function(e){return e instanceof rb},Vk=function(e,t){var r;e.dom.setHTML(e.getBody(),t),oh(r=e)&&al.firstPositionIn(r.getBody()).each(function(e){var t=e.getNode(),n=Uo.isTable(t)?al.firstPositionIn(t).getOr(e):e;r.selection.setRng(n.toRange())})},Hk=function(u,s,l){return void 0===l&&(l={}),l.format=l.format?l.format:"html",l.set=!0,l.content=jk(s)?"":s,jk(s)||l.no_events||(u.fire("BeforeSetContent",l),s=l.content),_.from(u.getBody()).fold(q(s),function(e){return jk(s)?function(e,t,n,r){Uk(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var o=oc({validate:e.validate},e.schema).serialize(n);return r.content=_o(ur.fromDom(t))?o:Jt.trim(o),Vk(e,r.content),r.no_events||e.fire("SetContent",r),n}(u,e,s,l):(t=u,n=e,o=l,0===(r=s).length||/^\s+$/.test(r)?(a='<br data-mce-bogus="1">',"TABLE"===n.nodeName?r="<tr><td>"+a+"</td></tr>":/^(UL|OL)$/.test(n.nodeName)&&(r="<li>"+a+"</li>"),(i=wc(t))&&t.schema.isValidChild(n.nodeName.toLowerCase(),i.toLowerCase())?(r=a,r=t.dom.createHTML(i,t.settings.forced_root_block_attrs,r)):r||(r='<br data-mce-bogus="1">'),Vk(t,r),t.fire("SetContent",o)):("raw"!==o.format&&(r=oc({validate:t.validate},t.schema).serialize(t.parser.parse(r,{isRootContent:!0,insert:!0}))),o.content=_o(ur.fromDom(n))?r:Jt.trim(r),Vk(t,o.content),o.no_events||t.fire("SetContent",o)),o.content);var t,n,r,o,i,a})},qk=Ei.DOM,$k=function(e){return _.from(e).each(function(e){return e.destroy()})},Wk=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&qk.remove(o.nextSibling),yg(e),e.editorManager.remove(e),!e.inline&&r&&(i=e,qk.setStyle(i.id,"display",i.orgDisplay)),bg(e),qk.remove(e.getContainer()),$k(t),$k(n),e.destroy()}var i},Kk=function(e,t){var n,r,o,i=e.selection,a=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),$k(i),$k(a)),(r=(n=e).formElement)&&(r._mceOldSubmit&&(r.submit=r._mceOldSubmit,r._mceOldSubmit=null),qk.unbind(r,"submit reset",n.formEventDelegate)),(o=e).contentAreaContainer=o.formElement=o.container=o.editorContainer=null,o.bodyElement=o.contentDocument=o.contentWindow=null,o.iframeElement=o.targetElm=null,o.selection&&(o.selection=o.selection.win=o.selection.dom=o.selection.dom.doc=null),e.destroyed=!0):e.remove())},Xk=Ei.DOM,Yk=Jt.extend,Gk=Jt.each,Jk=Jt.resolve,Qk=pe.ie,Zk=function(e,t,n){var r,o,i,a,u,s,l,c=this,f=c.documentBaseUrl=n.documentBaseURL,d=n.baseURI;r=c,o=e,i=f,a=n.defaultSettings,u=t,l={id:o,theme:"modern",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:i,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,render_ui:!0,indentation:"40px",inline_styles:!0,convert_fonts_to_spans:!0,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:(s=r).convertURL,url_converter_scope:s,ie7_compat:!0},t=jg(Pg,l,a,u),c.settings=t,Bi.language=t.language||"en",Bi.languageLoad=t.language_load,Bi.baseURL=n.baseURL,c.id=e,c.setDirty(!1),c.plugins={},c.documentBaseURI=new Mk(t.document_base_url,{base_uri:d}),c.baseURI=d,c.contentCSS=[],c.contentStyles=[],c.shortcuts=new Xg(c),c.loadedCSS={},c.editorCommands=new cg(c),c.suffix=n.suffix,c.editorManager=n,c.inline=t.inline,c.buttons={},c.menuItems={},t.cache_suffix&&(pe.cacheSuffix=t.cache_suffix.replace(/^[\?\&]+/,"")),!1===t.override_viewport&&(pe.overrideViewPort=!1),n.fire("SetupEditor",{editor:c}),c.execCallback("setup",c),c.$=vn.overrideDefaults(function(){return{context:c.inline?c.getBody():c.getDoc(),element:c.getBody()}})};Yk(Zk.prototype={render:function(){Dk(this)},focus:function(e){rh(this,e)},hasFocus:function(){return oh(this)},execCallback:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,o=this.settings[e];if(o)return this.callbackLookup&&(r=this.callbackLookup[e])&&(o=r.func,r=r.scope),"string"==typeof o&&(r=(r=o.replace(/\.\w+$/,""))?Jk(r):0,o=Jk(o),this.callbackLookup=this.callbackLookup||{},this.callbackLookup[e]={func:o,scope:r}),o.apply(r||this,Array.prototype.slice.call(arguments,1))},translate:function(e){if(e&&Jt.is(e,"string")){var n=this.settings.language||"en",r=this.editorManager.i18n;e=r.data[n+"."+e]||e.replace(/\{\#([^\}]+)\}/g,function(e,t){return r.data[n+"."+t]||"{#"+t+"}"})}return this.editorManager.translate(e)},getLang:function(e,t){return this.editorManager.i18n.data[(this.settings.language||"en")+"."+e]||(void 0!==t?t:"{#"+e+"}")},getParam:function(e,t,n){return Hg(this,e,t,n)},nodeChanged:function(e){this._nodeChangeDispatcher.nodeChanged(e)},addButton:function(e,t){var n=this;t.cmd&&(t.onclick=function(){n.execCommand(t.cmd)}),t.stateSelector&&void 0===t.active&&(t.active=!1),t.text||t.icon||(t.icon=e),t.tooltip=t.tooltip||t.title,n.buttons[e]=t},addSidebar:function(e,t){return Bk(this,e,t)},addMenuItem:function(e,t){var n=this;t.cmd&&(t.onclick=function(){n.execCommand(t.cmd)}),n.menuItems[e]=t},addContextToolbar:function(e,t){var n,r=this;r.contextToolbars=r.contextToolbars||[],"string"==typeof e&&(n=e,e=function(e){return r.dom.is(e,n)}),r.contextToolbars.push({id:zh.uuid("mcet"),predicate:e,items:t})},addCommand:function(e,t,n){this.editorCommands.addCommand(e,t,n)},addQueryStateHandler:function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},addQueryValueHandler:function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},addShortcut:function(e,t,n,r){this.shortcuts.add(e,t,n,r)},execCommand:function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},queryCommandState:function(e){return this.editorCommands.queryCommandState(e)},queryCommandValue:function(e){return this.editorCommands.queryCommandValue(e)},queryCommandSupported:function(e){return this.editorCommands.queryCommandSupported(e)},show:function(){this.hidden&&(this.hidden=!1,this.inline?this.getBody().contentEditable=!0:(Xk.show(this.getContainer()),Xk.hide(this.id)),this.load(),this.fire("show"))},hide:function(){var e=this,t=e.getDoc();e.hidden||(Qk&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable=!1,e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(Xk.hide(e.getContainer()),Xk.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},isHidden:function(){return!!this.hidden},setProgressState:function(e,t){this.fire("ProgressState",{state:e,time:t})},load:function(e){var t,n=this.getElement();return this.removed?"":n?((e=e||{}).load=!0,t=this.setContent(void 0!==n.value?n.value:n.innerHTML,e),e.element=n,e.no_events||this.fire("LoadContent",e),e.element=n=null,t):void 0},save:function(e){var t,n,r=this,o=r.getElement();if(o&&r.initialized&&!r.removed)return(e=e||{}).save=!0,e.element=o,e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,/TEXTAREA|INPUT/i.test(o.nodeName)?o.value=t:(!e.is_removing&&r.inline||(o.innerHTML=t),(n=Xk.getParent(r.id,"form"))&&Gk(n.elements,function(e){if(e.name===r.id)return e.value=t,!1})),e.element=o=null,!1!==e.set_dirty&&r.setDirty(!1),t},setContent:function(e,t){return Hk(this,e,t)},getContent:function(e){return t=this,void 0===(n=e)&&(n={}),_.from(t.getBody()).fold(q("tree"===n.format?new rb("body",11):""),function(e){return Fk(t,n,e)});var t,n},insertContent:function(e,t){t&&(e=Yk({content:e},t)),this.execCommand("mceInsertContent",!1,e)},isDirty:function(){return!this.isNotDirty},setDirty:function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},setMode:function(e){var t,n;(n=e)!==Sg(t=this)&&(t.initialized?Ng(t,"readonly"===n):t.on("init",function(){Ng(t,"readonly"===n)}),Cg(t,n))},getContainer:function(){return this.container||(this.container=Xk.get(this.editorContainer||this.id+"_parent")),this.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return this.targetElm||(this.targetElm=Xk.get(this.id)),this.targetElm},getWin:function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},getDoc:function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},getBody:function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},convertURL:function(e,t,n){var r=this.settings;return r.urlconverter_callback?this.execCallback("urlconverter_callback",e,n,!0,t):!r.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:r.relative_urls?this.documentBaseURI.toRelative(e):e=this.documentBaseURI.toAbsolute(e,r.remove_script_host)},addVisual:function(e){var n,r=this,o=r.settings,i=r.dom;e=e||r.getBody(),void 0===r.hasVisual&&(r.hasVisual=o.visual),Gk(i.select("table,a",e),function(e){var t;switch(e.nodeName){case"TABLE":return n=o.visual_table_class||"mce-item-table",void((t=i.getAttrib(e,"border"))&&"0"!==t||!r.hasVisual?i.removeClass(e,n):i.addClass(e,n));case"A":return void(i.getAttrib(e,"href")||(t=i.getAttrib(e,"name")||e.id,n=o.visual_anchor_class||"mce-item-anchor",t&&r.hasVisual?i.addClass(e,n):i.removeClass(e,n)))}}),r.fire("VisualAid",{element:e,hasVisual:r.hasVisual})},remove:function(){Wk(this)},destroy:function(e){Kk(this,e)},uploadImages:function(e){return this.editorUpload.uploadImages(e)},_scanForImages:function(){return this.editorUpload.scanForImages()}},Bg);var ex,tx,nx,rx={isEditorUIElement:function(e){return-1!==e.className.toString().indexOf("mce-")}},ox=function(n,e){var t,r;ir.detect().browser.isIE()?(r=n).on("focusout",function(){eg(r)}):(t=e,n.on("mouseup touchend",function(e){t.throttle()})),n.on("keyup nodechange",function(e){var t;"nodechange"===(t=e).type&&t.selectionChange||eg(n)})},ix=function(e){var t,n,r,o=ji(function(){eg(e)},0);e.inline&&(t=e,n=o,r=function(){n.throttle()},Ei.DOM.bind(V.document,"mouseup",r),t.on("remove",function(){Ei.DOM.unbind(V.document,"mouseup",r)})),e.on("init",function(){ox(e,o)}),e.on("remove",function(){o.cancel()})},ax=Ei.DOM,ux=function(e){return rx.isEditorUIElement(e)},sx=function(t,e){var n=t?t.settings.custom_ui_selector:"";return null!==ax.getParent(e,function(e){return ux(e)||!!n&&t.dom.is(e,n)})},lx=function(r,e){var t=e.editor;ix(t),t.on("focusin",function(){var e=r.focusedEditor;e!==this&&(e&&e.fire("blur",{focusedEditor:this}),r.setActive(this),(r.focusedEditor=this).fire("focus",{blurredEditor:e}),this.focus(!0))}),t.on("focusout",function(){var t=this;be.setEditorTimeout(t,function(){var e=r.focusedEditor;sx(t,function(){try{return V.document.activeElement}catch(e){return V.document.body}}())||e!==t||(t.fire("blur",{focusedEditor:null}),r.focusedEditor=null)})}),ex||(ex=function(e){var t,n=r.activeEditor;t=e.target,n&&t.ownerDocument===V.document&&(t===V.document.body||sx(n,t)||r.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),r.focusedEditor=null))},ax.bind(V.document,"focusin",ex))},cx=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(ax.unbind(V.document,"focusin",ex),ex=null)},fx=function(e){e.on("AddEditor",d(lx,e)),e.on("RemoveEditor",d(cx,e))},dx=Ei.DOM,mx=Jt.explode,px=Jt.each,gx=Jt.extend,hx=0,vx=!1,yx=[],bx=[],Cx=function(t){var n=t.type;px(nx.get(),function(e){switch(n){case"scroll":e.fire("ScrollWindow",t);break;case"resize":e.fire("ResizeWindow",t)}})},wx=function(e){e!==vx&&(e?vn(window).on("resize scroll",Cx):vn(window).off("resize scroll",Cx),vx=e)},kx=function(t){var e=bx;delete yx[t.id];for(var n=0;n<yx.length;n++)if(yx[n]===t){yx.splice(n,1);break}return bx=j(bx,function(e){return t!==e}),nx.activeEditor===t&&(nx.activeEditor=0<bx.length?bx[0]:null),nx.focusedEditor===t&&(nx.focusedEditor=null),e.length!==bx.length};gx(nx={defaultSettings:{},$:vn,majorVersion:"4",minorVersion:"9.6",releaseDate:"2019-09-02",editors:yx,i18n:vh,activeEditor:null,settings:{},setup:function(){var e,t,n,r,o="";if(t=Mk.getDocumentBaseUrl(V.document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),n=window.tinymce||window.tinyMCEPreInit)e=n.base||n.baseURL,o=n.suffix;else{for(var i=V.document.getElementsByTagName("script"),a=0;a<i.length;a++){var u=(r=i[a].src).substring(r.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(r)){-1!==u.indexOf(".min")&&(o=".min"),e=r.substring(0,r.lastIndexOf("/"));break}}!e&&V.document.currentScript&&(-1!==(r=V.document.currentScript.src).indexOf(".min")&&(o=".min"),e=r.substring(0,r.lastIndexOf("/")))}this.baseURL=new Mk(t).toAbsolute(e),this.documentBaseURL=t,this.baseURI=new Mk(this.baseURL),this.suffix=o,fx(this)},overrideDefaults:function(e){var t,n;(t=e.base_url)&&(this.baseURL=new Mk(this.documentBaseURL).toAbsolute(t.replace(/\/+$/,"")),this.baseURI=new Mk(this.baseURL)),n=e.suffix,e.suffix&&(this.suffix=n);var r=(this.defaultSettings=e).plugin_base_urls;for(var o in r)Bi.PluginManager.urls[o]=r[o]},init:function(r){var n,u,s=this;u=Jt.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option tbody tfoot thead tr script noscript style textarea video audio iframe object menu"," ");var l=function(e){var t=e.id;return t||(t=(t=e.name)&&!dx.get(t)?e.name:dx.uniqueId(),e.setAttribute("id",t)),t},c=function(e,t){return t.constructor===RegExp?t.test(e.className):dx.hasClass(e,t)},f=function(e){n=e},e=function(){var o,i=0,a=[],n=function(e,t,n){var r=new Zk(e,t,s);a.push(r),r.on("init",function(){++i===o.length&&f(a)}),r.targetElm=r.targetElm||n,r.render()};dx.unbind(window,"ready",e),function(e){var t=r[e];t&&t.apply(s,Array.prototype.slice.call(arguments,2))}("onpageload"),o=vn.unique(function(t){var e,n=[];if(pe.ie&&pe.ie<11)return xh.initError("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(t.types)return px(t.types,function(e){n=n.concat(dx.select(e.selector))}),n;if(t.selector)return dx.select(t.selector);if(t.target)return[t.target];switch(t.mode){case"exact":0<(e=t.elements||"").length&&px(mx(e),function(t){var e;(e=dx.get(t))?n.push(e):px(V.document.forms,function(e){px(e.elements,function(e){e.name===t&&(t="mce_editor_"+hx++,dx.setAttrib(e,"id",t),n.push(e))})})});break;case"textareas":case"specific_textareas":px(dx.select("textarea"),function(e){t.editor_deselector&&c(e,t.editor_deselector)||t.editor_selector&&!c(e,t.editor_selector)||n.push(e)})}return n}(r)),r.types?px(r.types,function(t){Jt.each(o,function(e){return!dx.is(e,t.selector)||(n(l(e),gx({},r,t),e),!1)})}):(Jt.each(o,function(e){var t;(t=s.get(e.id))&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(kx(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0,t=null)}),0===(o=Jt.grep(o,function(e){return!s.get(e.id)})).length?f([]):px(o,function(e){var t;t=e,r.inline&&t.tagName.toLowerCase()in u?xh.initError("Could not initialize inline editor on invalid inline target element",e):n(l(e),r,e)}))};return s.settings=r,dx.bind(window,"ready",e),new ge(function(t){n?t(n):f=function(e){t(e)}})},get:function(t){return 0===arguments.length?bx.slice(0):R(t)?Y(bx,function(e){return e.id===t}).getOr(null):I(t)&&bx[t]?bx[t]:null},add:function(e){var t=this;return yx[e.id]===e||(null===t.get(e.id)&&("length"!==e.id&&(yx[e.id]=e),yx.push(e),bx.push(e)),wx(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),tx||(tx=function(){t.fire("BeforeUnload")},dx.bind(window,"beforeunload",tx))),e},createEditor:function(e,t){return this.add(new Zk(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!R(e))return n=e,B(r.get(n.id))?null:(kx(n)&&r.fire("RemoveEditor",{editor:n}),0===bx.length&&dx.unbind(window,"beforeunload",tx),n.remove(),wx(0<bx.length),n);px(dx.select(e),function(e){(n=r.get(e.id))&&r.remove(n)})}else for(t=bx.length-1;0<=t;t--)r.remove(bx[t])},execCommand:function(e,t,n){var r=this.get(n);switch(e){case"mceAddEditor":return this.get(n)||new Zk(n,this.settings,this).render(),!0;case"mceRemoveEditor":return r&&r.remove(),!0;case"mceToggleEditor":return r?r.isHidden()?r.show():r.hide():this.execCommand("mceAddEditor",0,n),!0}return!!this.activeEditor&&this.activeEditor.execCommand(e,t,n)},triggerSave:function(){px(bx,function(e){e.save()})},addI18n:function(e,t){vh.add(e,t)},translate:function(e){return vh.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e}},gg),nx.setup();var xx,Ex=nx;function Nx(n){return{walk:function(e,t){return Pl(n,e,t)},split:zm,normalize:function(t){return Sp(n,t).fold(q(!1),function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0})}}}(xx=Nx||(Nx={})).compareRanges=bp,xx.getCaretRangeFromPoint=Db,xx.getSelectedNode=Ja,xx.getNode=Qa;var Sx,Tx,_x=Nx,Rx=Math.min,Ax=Math.max,Dx=Math.round,Bx=function(e,t,n){var r,o,i,a,u,s;return r=t.x,o=t.y,i=e.w,a=e.h,u=t.w,s=t.h,"b"===(n=(n||"").split(""))[0]&&(o+=s),"r"===n[1]&&(r+=u),"c"===n[0]&&(o+=Dx(s/2)),"c"===n[1]&&(r+=Dx(u/2)),"b"===n[3]&&(o-=a),"r"===n[4]&&(r-=i),"c"===n[3]&&(o-=Dx(a/2)),"c"===n[4]&&(r-=Dx(i/2)),Ox(r,o,i,a)},Ox=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},Px={inflate:function(e,t,n){return Ox(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},relativePosition:Bx,findBestRelativePosition:function(e,t,n,r){var o,i;for(i=0;i<r.length;i++)if((o=Bx(e,t,r[i])).x>=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},intersect:function(e,t){var n,r,o,i;return n=Ax(e.x,t.x),r=Ax(e.y,t.y),o=Rx(e.x+e.w,t.x+t.w),i=Rx(e.y+e.h,t.y+t.h),o-n<0||i-r<0?null:Ox(n,r,o-n,i-r)},clamp:function(e,t,n){var r,o,i,a,u,s,l,c,f,d;return u=e.x,s=e.y,l=e.x+e.w,c=e.y+e.h,f=t.x+t.w,d=t.y+t.h,r=Ax(0,t.x-u),o=Ax(0,t.y-s),i=Ax(0,l-f),a=Ax(0,c-d),u+=r,s+=o,n&&(l+=r,c+=o,u-=i,s-=a),Ox(u,s,(l-=i)-u,(c-=a)-s)},create:Ox,fromClientRect:function(e){return Ox(e.left,e.top,e.width,e.height)}},Ix={},Lx={add:function(e,t){Ix[e.toLowerCase()]=t},has:function(e){return!!Ix[e.toLowerCase()]},get:function(e){var t=e.toLowerCase(),n=Ix.hasOwnProperty(t)?Ix[t]:null;if(null===n)throw new Error("Could not find module for type: "+e);return n},create:function(e,t){var n;if("string"==typeof e?(t=t||{}).type=e:e=(t=e).type,e=e.toLowerCase(),!(n=Ix[e]))throw new Error("Could not find control by type: "+e);return(n=new n(t)).type=e,n}},Mx=Jt.each,Fx=Jt.extend,zx=function(){};zx.extend=Sx=function(n){var e,t,r,o=this.prototype,i=function(){var e,t,n;if(!Tx&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(this,arguments)},a=function(){return this},u=function(n,r){return function(){var e,t=this._super;return this._super=o[n],e=r.apply(this,arguments),this._super=t,e}};for(t in Tx=!0,e=new this,Tx=!1,n.Mixins&&(Mx(n.Mixins,function(e){for(var t in e)"init"!==t&&(n[t]=e[t])}),o.Mixins&&(n.Mixins=o.Mixins.concat(n.Mixins))),n.Methods&&Mx(n.Methods.split(","),function(e){n[e]=a}),n.Properties&&Mx(n.Properties.split(","),function(e){var t="_"+e;n[e]=function(e){return void 0!==e?(this[t]=e,this):this[t]}}),n.Statics&&Mx(n.Statics,function(e,t){i[t]=e}),n.Defaults&&o.Defaults&&(n.Defaults=Fx({},o.Defaults,n.Defaults)),n)"function"==typeof(r=n[t])&&o[t]?e[t]=u(t,r):e[t]=r;return i.prototype=e,(i.constructor=i).extend=Sx,i};var Ux=Math.min,jx=Math.max,Vx=Math.round,Hx=function(e,n){var r,o,t,i;if(n=n||'"',null===e)return"null";if("string"==(t=typeof e))return o="\bb\tt\nn\ff\rr\"\"''\\\\",n+e.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g,function(e,t){return'"'===n&&"'"===e?e:(r=o.indexOf(t))+1?"\\"+o.charAt(r+1):(e=t.charCodeAt().toString(16),"\\u"+"0000".substring(e.length)+e)})+n;if("object"!==t)return""+e;if(e.hasOwnProperty&&"[object Array]"===Object.prototype.toString.call(e)){for(r=0,o="[";r<e.length;r++)o+=(0<r?",":"")+Hx(e[r],n);return o+"]"}for(i in o="{",e)e.hasOwnProperty(i)&&(o+="function"!=typeof e[i]?(1<o.length?","+n:n)+i+n+":"+Hx(e[i],n):"");return o+"}"},qx={serialize:Hx,parse:function(e){try{return JSON.parse(e)}catch(e){}}},$x={callbacks:{},count:0,send:function(t){var n=this,r=Ei.DOM,o=void 0!==t.count?t.count:n.count,i="tinymce_jsonp_"+o;n.callbacks[o]=function(e){r.remove(i),delete n.callbacks[o],t.callback(e)},r.add(r.doc.body,"script",{id:i,src:t.url,type:"text/javascript"}),n.count++}},Wx={send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||1e4<n++?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,1e4<n?"TIMED_OUT":"GENERAL",t,e),t=null):setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",Wx.fire("beforeInitialize",{settings:e}),t=Sh()){if(t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&Jt.each(e.requestheaders,function(e){t.setRequestHeader(e.key,e.value)}),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),(t=Wx.fire("beforeSend",{xhr:t,settings:e}).xhr).send(e.data),!e.async)return r();setTimeout(r,10)}}};Jt.extend(Wx,gg);var Kx,Xx,Yx,Gx,Jx=Jt.extend,Qx=function(e){this.settings=Jx({},e),this.count=0};Qx.sendRPC=function(e){return(new Qx).send(e)},Qx.prototype={send:function(n){var r=n.error,o=n.success;(n=Jx(this.settings,n)).success=function(e,t){void 0===(e=qx.parse(e))&&(e={error:"JSON Parse error."}),e.error?r.call(n.error_scope||n.scope,e.error,t):o.call(n.success_scope||n.scope,e.result)},n.error=function(e,t){r&&r.call(n.error_scope||n.scope,e,t)},n.data=qx.serialize({id:n.id||"c"+this.count++,method:n.method,params:n.params}),n.content_type="application/json",Wx.send(n)}};try{Kx=V.window.localStorage}catch(e){Xx={},Yx=[],Gx={getItem:function(e){var t=Xx[e];return t||null},setItem:function(e,t){Yx.push(e),Xx[e]=String(t)},key:function(e){return Yx[e]},removeItem:function(t){Yx=Yx.filter(function(e){return e===t}),delete Xx[t]},clear:function(){Yx=[],Xx={}},length:0},Object.defineProperty(Gx,"length",{get:function(){return Yx.length},configurable:!1,enumerable:!1}),Kx=Gx}var Zx,eE=Ex,tE={geom:{Rect:Px},util:{Promise:ge,Delay:be,Tools:Jt,VK:Nv,URI:Mk,Class:zx,EventDispatcher:dg,Observable:gg,I18n:vh,XHR:Wx,JSON:qx,JSONRequest:Qx,JSONP:$x,LocalStorage:Kx,Color:function(e){var n={},u=0,s=0,l=0,t=function(e){var t;return"object"==typeof e?"r"in e?(u=e.r,s=e.g,l=e.b):"v"in e&&function(e,t,n){var r,o,i,a;if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,n=parseInt(n,10)/100,t=jx(0,Ux(t,1)),n=jx(0,Ux(n,1)),0!==t){switch(r=e/60,i=(o=n*t)*(1-Math.abs(r%2-1)),a=n-o,Math.floor(r)){case 0:u=o,s=i,l=0;break;case 1:u=i,s=o,l=0;break;case 2:u=0,s=o,l=i;break;case 3:u=0,s=i,l=o;break;case 4:u=i,s=0,l=o;break;case 5:u=o,s=0,l=i;break;default:u=s=l=0}u=Vx(255*(u+a)),s=Vx(255*(s+a)),l=Vx(255*(l+a))}else u=s=l=Vx(255*n)}(e.h,e.s,e.v):(t=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(u=parseInt(t[1],10),s=parseInt(t[2],10),l=parseInt(t[3],10)):(t=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(u=parseInt(t[1],16),s=parseInt(t[2],16),l=parseInt(t[3],16)):(t=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(u=parseInt(t[1]+t[1],16),s=parseInt(t[2]+t[2],16),l=parseInt(t[3]+t[3],16)),u=u<0?0:255<u?255:u,s=s<0?0:255<s?255:s,l=l<0?0:255<l?255:l,n};return e&&t(e),n.toRgb=function(){return{r:u,g:s,b:l}},n.toHsv=function(){return e=u,t=s,n=l,o=0,(i=Ux(e/=255,Ux(t/=255,n/=255)))===(a=jx(e,jx(t,n)))?{h:0,s:0,v:100*(o=i)}:(r=(a-i)/a,{h:Vx(60*((e===i?3:n===i?1:5)-(e===i?t-n:n===i?e-t:n-e)/((o=a)-i))),s:Vx(100*r),v:Vx(100*o)});var e,t,n,r,o,i,a},n.toHex=function(){var e=function(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e};return"#"+e(u)+e(s)+e(l)},n.parse=t,n}},dom:{EventUtils:_e,Sizzle:_t,DomQuery:vn,TreeWalker:mo,DOMUtils:Ei,ScriptLoader:Ri,RangeUtils:_x,Serializer:bb,ControlSelection:Sb,BookmarkManager:xb,Selection:iC,Event:_e.Event},html:{Styles:mi,Entities:ei,Node:rb,Schema:fi,SaxParser:Ov,DomParser:pb,Writer:rc,Serializer:oc},ui:{Factory:Lx},Env:pe,AddOnManager:Bi,Annotator:jl,Formatter:$y,UndoManager:Qv,EditorCommands:cg,WindowManager:ph,NotificationManager:mh,EditorObservable:Bg,Shortcuts:Xg,Editor:Zk,FocusManager:rx,EditorManager:Ex,DOM:Ei.DOM,ScriptLoader:Ri.ScriptLoader,PluginManager:Bi.PluginManager,ThemeManager:Bi.ThemeManager,trim:Jt.trim,isArray:Jt.isArray,is:Jt.is,toArray:Jt.toArray,makeMap:Jt.makeMap,each:Jt.each,map:Jt.map,grep:Jt.grep,inArray:Jt.inArray,extend:Jt.extend,create:Jt.create,walk:Jt.walk,createNS:Jt.createNS,resolve:Jt.resolve,explode:Jt.explode,_addCacheSuffix:Jt._addCacheSuffix,isOpera:pe.opera,isWebKit:pe.webkit,isIE:pe.ie,isGecko:pe.gecko,isMac:pe.mac},nE=eE=Jt.extend(eE,tE);Zx=nE,window.tinymce=Zx,window.tinyMCE=Zx,function(e){if("object"==typeof module)try{module.exports=e}catch(e){}}(nE)}(window),tinymce.baseURL="/lib/tinymce/";var init_obj_textareas={mode:"specific_textareas",editor_selector:"mceEditor",plugins:["advlist autolink lists link image imagetools charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code codesample wordcount autoresize"],codesample_languages:[{text:"HTML/XML",value:"markup"},{text:"JavaScript",value:"javascript"},{text:"CSS",value:"css"},{text:"PHP",value:"php"},{text:"Ruby",value:"ruby"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C",value:"c"},{text:"C#",value:"csharp"},{text:"C++",value:"cpp"}],valid_elements:"a[accesskey|charset|class|coords|dir<ltr?rtl|href|hreflang|id|lang|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev|shape<circle?default?poly?rect|style|tabindex|title|target|type],abbr[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],acronym[class|dir<ltr?rtl|id|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],address[class|align|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],applet[align<bottom?left?middle?right?top|alt|archive|class|code|codebase|height|hspace|id|name|object|style|title|vspace|width],area[accesskey|alt|class|coords|dir<ltr?rtl|href|id|lang|nohref<nohref|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|shape<circle?default?poly?rect|style|tabindex|title|target],base[href|target],basefont[color|face|id|size],bdo[class|dir<ltr?rtl|id|lang|style|title],big[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],blockquote[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],body[alink|background|bgcolor|class|dir<ltr?rtl|id|lang|link|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onload|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onunload|style|title|text|vlink],br[class|clear<all?left?none?right|id|style|title],button[accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|tabindex|title|type|value],caption[align<bottom?left?right?top|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],center[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],cite[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],code[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],col[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title|valign<baseline?bottom?middle?top|width],colgroup[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title|valign<baseline?bottom?middle?top|width],dd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],del[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],dfn[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],dir[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],div[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],dl[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],dt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],em/i[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],fieldset[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],font[class|color|dir<ltr?rtl|face|id|lang|size|style|title],form[accept|accept-charset|action|class|dir<ltr?rtl|enctype|id|lang|method<get?post|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onreset|onsubmit|style|title|target],frame[class|frameborder|id|longdesc|marginheight|marginwidth|name|noresize<noresize|scrolling<auto?no?yes|src|style|title],frameset[class|cols|id|onload|onunload|rows|style|title],h1[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],h2[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],h3[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],h4[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],h5[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],h6[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],head[dir<ltr?rtl|lang|profile],hr[align<center?left?right|class|dir<ltr?rtl|id|lang|noshade<noshade|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style|title|width],html[dir<ltr?rtl|lang|version],iframe[align<bottom?left?middle?right?top|class|frameborder|height|id|longdesc|marginheight|marginwidth|name|scrolling<auto?no?yes|src|style|title|width],img[align<bottom?left?middle?right?top|alt|border|class|dir<ltr?rtl|height|hspace|id|ismap<ismap|lang|longdesc|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|src|style|title|usemap|vspace|width],input[accept|accesskey|align<bottom?left?middle?right?top|alt|checked<checked|class|dir<ltr?rtl|disabled<disabled|id|ismap<ismap|lang|maxlength|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect|readonly<readonly|size|src|style|tabindex|title|type<button?checkbox?file?hidden?image?password?radio?reset?submit?text|usemap|value],ins[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],isindex[class|dir<ltr?rtl|id|lang|prompt|style|title],kbd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],label[accesskey|class|dir<ltr?rtl|for|id|lang|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],legend[align<bottom?left?right?top|accesskey|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],li[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type|value],link[charset|class|dir<ltr?rtl|href|hreflang|id|lang|media|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev|style|title|target|type],map[class|dir<ltr?rtl|id|lang|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],menu[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],meta[content|dir<ltr?rtl|http-equiv|lang|name|scheme],noframes[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],noscript[class|dir<ltr?rtl|id|lang|style|title],object[align<bottom?left?middle?right?top|archive|border|class|classid|codebase|codetype|data|declare|dir<ltr?rtl|height|hspace|id|lang|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|standby|style|tabindex|title|type|usemap|vspace|width],ol[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|start|style|title|type],optgroup[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],option[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|selected<selected|style|title|value],p[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],param[id|name|type|value|valuetype<DATA?OBJECT?REF],pre/listing/plaintext/xmp[align|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|width],q[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],s[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],samp[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],script[charset|defer|async<async|language|src|type],select[class|dir<ltr?rtl|disabled<disabled|id|lang|multiple<multiple|name|onblur|onchange|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style|tabindex|title],small[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],span[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],strike[class|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],strong/b[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],style[dir<ltr?rtl|lang|media|title|type],sub[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],sup[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],table[align<center?left?right|bgcolor|border|cellpadding|cellspacing|class|dir<ltr?rtl|frame|height|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rules|style|summary|title|width],tbody[align<center?char?justify?left?right|char|class|charoff|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|valign<baseline?bottom?middle?top],td[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup|style|title|valign<baseline?bottom?middle?top|width],textarea[accesskey|class|cols|dir<ltr?rtl|disabled<disabled|id|lang|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect|readonly<readonly|rows|style|tabindex|title],tfoot[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|valign<baseline?bottom?middle?top],th[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup|style|title|valign<baseline?bottom?middle?top|width],thead[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|valign<baseline?bottom?middle?top],title[dir<ltr?rtl|lang],tr[abbr|align<center?char?justify?left?right|bgcolor|char|charoff|class|rowspan|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|valign<baseline?bottom?middle?top],tt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],u[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],ul[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type],var[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],video[preload<none?metadata?auto|src|crossorigin|poster|autoplay<autoplay|mediagroup|loop<loop|muted<muted|controls<controls|width|height]",image_advtab:!0,autoresize_bottom_margin:20,content_css:cssUrl,codesample_content_css:cssUrl,toolbar:"preview fullscreen | undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image media | codesample ",file_browser_callback:OpenFileManager};function OpenFileManager(e,t,n,r){var o="/FileManager/index.html?integration=tinymce4";return o.indexOf("?")<0?o+="?type="+n:o+="&type="+n,o+="&input="+e+"&value="+r.document.getElementById(e).value,tinyMCE.activeEditor.settings.language&&(o+="&langCode="+tinyMCE.activeEditor.settings.language),tinyMCE.activeEditor.windowManager.open({file:o,title:"File Manager",width:850,height:650,resizable:"yes",plugins:"media",inline:"yes",close_previous:"no"},{window:r,input:e}),!1}tinyMCE.init(init_obj_textareas);