����JFIF��x�x����'403WebShell
403Webshell
Server IP : 78.140.185.180  /  Your IP : 3.129.216.70
Web Server : LiteSpeed
System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : builderbox ( 1072)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/builderbox/www/public/client/assets/js/tinymce/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/builderbox/www/public/client/assets/js/tinymce/tinymce.min.js
/**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 *
 * Version: 5.0.4 (2019-04-23)
 */
!function(j){"use strict";var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},q=function(n,r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n(r.apply(null,e))}},$=function(e){return function(){return e}},W=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,o,i,a,s,l,c,f,h,m,g,p,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=function(e){return function(){throw new Error(e)}},w=$(!1),x=$(!0),N=w,E=x,S=function(){return z},z=(r={fold:function(e,t){return e()},is:N,isSome:N,isNone:E,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(){return undefined},or:n,orThunk:t,map:S,ap:S,each:function(){},bind:S,flatten:S,exists:N,forall:E,filter:S,equals:e=function(e){return e.isNone()},equals_:e,toArray:function(){return[]},toString:$("none()")},Object.freeze&&Object.freeze(r),r),k=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:E,isNone:N,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){return k(e(n))},ap:function(e){return e.fold(S,function(e){return k(e(n))})},each:function(e){e(n)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){return e(n)?o:z},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(N,function(e){return t(n,e)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};return o},T={some:k,none:S,from:function(e){return null===e||e===undefined?z:k(e)}},A=function(t){return function(e){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&Array.prototype.isPrototypeOf(e)?"array":"object"===t&&String.prototype.isPrototypeOf(e)?"string":t}(e)===t}},K=A("string"),R=A("object"),M=A("array"),D=A("null"),B=A("boolean"),O=A("function"),_=A("number"),P=(o=Array.prototype.indexOf)===undefined?function(e,t){return ee(e,t)}:function(e,t){return o.call(e,t)},H=function(e,t){var n=P(e,t);return-1===n?T.none():T.some(n)},L=function(e,t){return-1<P(e,t)},V=function(e,t){return Z(e,t).isSome()},X=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},I=function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n,e)},F=function(e,t){for(var n=e.length-1;0<=n;n--)t(e[n],n,e)},Y=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}},U=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},G=function(e,t,n){return F(e,function(e){n=t(n,e)}),n},J=function(e,t,n){return I(e,function(e){n=t(n,e)}),n},Q=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n,e))return T.some(o)}return T.none()},Z=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n,e))return T.some(n);return T.none()},ee=function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return n;return-1},te=Array.prototype.push,ne=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!Array.prototype.isPrototypeOf(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);te.apply(t,e[n])}return t},re=function(e,t){var n=X(e,t);return ne(n)},oe=function(e,t){for(var n=0,r=e.length;n<r;++n)if(!0!==t(e[n],n,e))return!1;return!0},ie=Array.prototype.slice,ae=function(e){var t=ie.call(e,0);return t.reverse(),t},se=function(e,t){return U(e,function(e){return!L(t,e)})},ue=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},le=function(e,t){var n=ie.call(e,0);return n.sort(t),n},ce=function(e){return 0===e.length?T.none():T.some(e[0])},fe=function(e){return 0===e.length?T.none():T.some(e[e.length-1])},de=O(Array.from)?Array.from:function(e){return ie.call(e)},he="undefined"!=typeof j.window?j.window:Function("return this;")(),me=function(e,t){return function(e,t){for(var n=t!==undefined&&null!==t?t:he,r=0;r<e.length&&n!==undefined&&null!==n;++r)n=n[e[r]];return n}(e.split("."),t)},ge={getOrDie:function(e,t){var n=me(e,t);if(n===undefined||null===n)throw e+" not available on this browser";return n}},pe=function(){return ge.getOrDie("URL")},ve=function(e){return pe().createObjectURL(e)},ye=function(e){pe().revokeObjectURL(e)},be=j.navigator,Ce=be.userAgent,we=function(e){return"matchMedia"in j.window&&j.matchMedia(e).matches};m=/Android/.test(Ce),a=(a=!(i=/WebKit/.test(Ce))&&/MSIE/gi.test(Ce)&&/Explorer/gi.test(be.appName))&&/MSIE (\w+)\./.exec(Ce)[1],s=-1!==Ce.indexOf("Trident/")&&(-1!==Ce.indexOf("rv:")||-1!==be.appName.indexOf("Netscape"))&&11,l=-1!==Ce.indexOf("Edge/")&&!a&&!s&&12,a=a||s||l,c=!i&&!s&&/Gecko/.test(Ce),f=-1!==Ce.indexOf("Mac"),h=/(iPad|iPhone)/.test(Ce),g="FormData"in j.window&&"FileReader"in j.window&&"URL"in j.window&&!!ve,p=we("only screen and (max-device-width: 480px)")&&(m||h),v=we("only screen and (min-width: 800px)")&&(m||h),y=-1!==Ce.indexOf("Windows Phone"),l&&(i=!1);var xe,Ne,Ee,Se,ze,ke,Te,Ae,Re,Me,De,Be,Oe,_e,Pe,He,Le,Ve,Ie,Fe={opera:!1,webkit:i,ie:a,gecko:c,mac:f,iOS:h,android:m,contentEditable:!h||g||534<=parseInt(Ce.match(/AppleWebKit\/(\d*)/)[1],10),transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:8!==a,range:j.window.getSelection&&"Range"in j.window,documentMode:a&&!l?j.document.documentMode||7:10,fileApi:g,ceFalse:!1===a||8<a,cacheSuffix:null,container:null,overrideViewPort:null,experimentalShadowDom:!1,canHaveCSP:!1===a||11<a,desktop:!p&&!v,windowsPhone:y},Ue=window.Promise?window.Promise:function(){function r(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=[],c(e,r(o,this),r(s,this))},t=i.immediateFn||"function"==typeof j.setImmediate&&j.setImmediate||function(e){j.setTimeout(e,1)};function a(r){var o=this;null!==this._state?t(function(){var e=o._state?r.onFulfilled:r.onRejected;if(null!==e){var t;try{t=e(o._value)}catch(n){return void r.reject(n)}r.resolve(t)}else(o._state?r.resolve:r.reject)(o._value)}):this._deferreds.push(r)}function o(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 c(r(t,e),r(o,this),r(s,this))}this._state=!0,this._value=e,u.call(this)}catch(n){s.call(this,n)}}function s(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 l(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 c(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(o){if(r)return;r=!0,n(o)}}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 l(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(o,i){if(0===u.length)return o([]);var a=u.length;function s(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){s(t,e)},i)}u[t]=e,0==--a&&o(u)}catch(r){i(r)}}for(var e=0;e<u.length;e++)s(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}(),je=function(e,t){return"number"!=typeof t&&(t=0),j.setTimeout(e,t)},qe=function(e,t){return"number"!=typeof t&&(t=1),j.setInterval(e,t)},$e=function(n,r){var o,e;return(e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];j.clearTimeout(o),o=je(function(){n.apply(this,e)},r)}).stop=function(){j.clearTimeout(o)},e},We={requestAnimationFrame:function(e,t){xe?xe.then(e):xe=new Ue(function(e){t||(t=j.document.body),function(e,t){var n,r=j.window.requestAnimationFrame,o=["ms","moz","webkit"];for(n=0;n<o.length&&!r;n++)r=j.window[o[n]+"RequestAnimationFrame"];r||(r=function(e){j.window.setTimeout(e,0)}),r(e,t)}(e,t)}).then(e)},setTimeout:je,setInterval:qe,setEditorTimeout:function(e,t,n){return je(function(){e.removed||t()},n)},setEditorInterval:function(e,t,n){var r;return r=qe(function(){e.removed?j.clearInterval(r):t()},n)},debounce:$e,throttle:$e,clearInterval:function(e){return j.clearInterval(e)},clearTimeout:function(e){return j.clearTimeout(e)}},Ke=/^(?:mouse|contextmenu)|click/,Xe={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1},Ye=function(){return!1},Ge=function(){return!0},Je=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Qe=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},Ze=function(e,t){var n,r,o=t||{};for(n in e)Xe[n]||(o[n]=e[n]);if(o.target||(o.target=o.srcElement||j.document),Fe.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&&Ke.test(e.type)&&e.pageX===undefined&&e.clientX!==undefined){var i=o.target.ownerDocument||j.document,a=i.documentElement,s=i.body;o.pageX=e.clientX+(a&&a.scrollLeft||s&&s.scrollLeft||0)-(a&&a.clientLeft||s&&s.clientLeft||0),o.pageY=e.clientY+(a&&a.scrollTop||s&&s.scrollTop||0)-(a&&a.clientTop||s&&s.clientTop||0)}return o.preventDefault=function(){o.isDefaultPrevented=Ge,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},o.stopPropagation=function(){o.isPropagationStopped=Ge,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},!(o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=Ge,o.stopPropagation()})==((r=o).isDefaultPrevented===Ge||r.isDefaultPrevented===Ye)&&(o.isDefaultPrevented=Ye,o.isPropagationStopped=Ye,o.isImmediatePropagationStopped=Ye),"undefined"==typeof o.metaKey&&(o.metaKey=!1),o},et=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(){Qe(e,"DOMContentLoaded",a),Qe(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(o))},s=function(){i()&&(Qe(r,"readystatechange",s),a())},u=function(){try{r.documentElement.doScroll("left")}catch(e){return void We.setTimeout(u)}a()};!r.addEventListener||Fe.ie&&Fe.ie<11?(Je(r,"readystatechange",s),r.documentElement.doScroll&&e.self===e.top&&u()):i()?a():Je(e,"DOMContentLoaded",a),Je(e,"load",a)}},tt=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando="mce-data-"+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in j.document.documentElement,this.hasFocusIn="onfocusin"in j.document.documentElement,this.count=1}return e.prototype.bind=function(e,t,n,r){var o,i,a,s,u,l,c,f=this,d=j.window,h=function(e){f.executeHandlers(Ze(e||d.event),o)};if(e&&3!==e.nodeType&&8!==e.nodeType){e[f.expando]?o=e[f.expando]:(o=f.count++,e[f.expando]=o,f.events[o]={}),r=r||e;var m=t.split(" ");for(a=m.length;a--;)l=h,u=c=!1,"DOMContentLoaded"===(s=m[a])&&(s="ready"),f.domLoaded&&"ready"===s&&"complete"===e.readyState?n.call(r,Ze({type:s})):(f.hasMouseEnterLeave||(u=f.mouseEnterLeave[s])&&(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=Ze(e||d.event)).type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,f.executeHandlers(e,o))}),f.hasFocusIn||"focusin"!==s&&"focusout"!==s||(c=!0,u="focusin"===s?"focus":"blur",l=function(e){(e=Ze(e||d.event)).type="focus"===e.type?"focusin":"focusout",f.executeHandlers(e,o)}),(i=f.events[o][s])?"ready"===s&&f.domLoaded?n(Ze({type:s})):i.push({func:n,scope:r}):(f.events[o][s]=i=[{func:n,scope:r}],i.fakeName=u,i.capture=c,i.nativeHandler=l,"ready"===s?et(e,l,f):Je(e,u||s,l,c)));return e=i=0,n}},e.prototype.unbind=function(e,t,n){var r,o,i,a,s,u;if(!e||3===e.nodeType||8===e.nodeType)return this;if(r=e[this.expando]){if(u=this.events[r],t){var l=t.split(" ");for(i=l.length;i--;)if(o=u[s=l[i]]){if(n)for(a=o.length;a--;)if(o[a].func===n){var c=o.nativeHandler,f=o.fakeName,d=o.capture;(o=o.slice(0,a).concat(o.slice(a+1))).nativeHandler=c,o.fakeName=f,o.capture=d,u[s]=o}n&&0!==o.length||(delete u[s],Qe(e,o.fakeName||s,o.nativeHandler,o.capture))}}else{for(s in u)o=u[s],Qe(e,o.fakeName||s,o.nativeHandler,o.capture);u={}}for(s in u)return this;delete this.events[r];try{delete e[this.expando]}catch(h){e[this.expando]=null}}return this},e.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var o=Ze(null,n);for(o.type=t,o.target=e;(r=e[this.expando])&&this.executeHandlers(o,r),(e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow)&&!o.isPropagationStopped(););return this},e.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName)for(this.unbind(e),t=(n=e.getElementsByTagName("*")).length;t--;)(e=n[t])[this.expando]&&this.unbind(e);return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(e,t){var n,r,o,i,a=this.events[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},e.Event=new e,e}(),nt="sizzle"+-new Date,rt=j.window.document,ot=0,it=0,at=Lt(),st=Lt(),ut=Lt(),lt=function(e,t){return e===t&&(Be=!0),0},ct=typeof undefined,ft={}.hasOwnProperty,dt=[],ht=dt.pop,mt=dt.push,gt=dt.push,pt=dt.slice,vt=dt.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},yt="[\\x20\\t\\r\\n\\f]",bt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Ct="\\["+yt+"*("+bt+")(?:"+yt+"*([*^$|!~]?=)"+yt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+bt+"))|)"+yt+"*\\]",wt=":("+bt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Ct+")*)|.*)\\)|)",xt=new RegExp("^"+yt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+yt+"+$","g"),Nt=new RegExp("^"+yt+"*,"+yt+"*"),Et=new RegExp("^"+yt+"*([>+~]|"+yt+")"+yt+"*"),St=new RegExp("="+yt+"*([^\\]'\"]*?)"+yt+"*\\]","g"),zt=new RegExp(wt),kt=new RegExp("^"+bt+"$"),Tt={ID:new RegExp("^#("+bt+")"),CLASS:new RegExp("^\\.("+bt+")"),TAG:new RegExp("^("+bt+"|[*])"),ATTR:new RegExp("^"+Ct),PSEUDO:new RegExp("^"+wt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+yt+"*(even|odd|(([+-]|)(\\d*)n|)"+yt+"*(?:([+-]|)"+yt+"*(\\d+)|))"+yt+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+yt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+yt+"*((?:-\\d)?\\d*)"+yt+"*\\)|)(?=[^-]|$)","i")},At=/^(?:input|select|textarea|button)$/i,Rt=/^h\d$/i,Mt=/^[^{]+\{\s*\[native \w/,Dt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Bt=/[+~]/,Ot=/'|\\/g,_t=new RegExp("\\\\([\\da-f]{1,6}"+yt+"?|("+yt+")|.)","ig"),Pt=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{gt.apply(dt=pt.call(rt.childNodes),rt.childNodes),dt[rt.childNodes.length].nodeType}catch(fE){gt={apply:dt.length?function(e,t){mt.apply(e,pt.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}var Ht=function(e,t,n,r){var o,i,a,s,u,l,c,f,d,h;if((t?t.ownerDocument||t:rt)!==_e&&Oe(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=(t=t||_e).nodeType)&&9!==s)return[];if(He&&!r){if(o=Dt.exec(e))if(a=o[1]){if(9===s){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))&&Ie(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return gt.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&Ee.getElementsByClassName)return gt.apply(n,t.getElementsByClassName(a)),n}if(Ee.qsa&&(!Le||!Le.test(e))){if(f=c=nt,d=t,h=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(l=Te(e),(c=t.getAttribute("id"))?f=c.replace(Ot,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",u=l.length;u--;)l[u]=f+Wt(l[u]);d=Bt.test(e)&&qt(t.parentNode)||t,h=l.join(",")}if(h)try{return gt.apply(n,d.querySelectorAll(h)),n}catch(m){}finally{c||t.removeAttribute("id")}}}return Re(e.replace(xt,"$1"),t,n,r)};function Lt(){var n=[];return function r(e,t){return n.push(e+" ")>Se.cacheLength&&delete r[n.shift()],r[e+" "]=t}}function Vt(e){return e[nt]=!0,e}function It(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 Ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function Ut(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function jt(a){return Vt(function(i){return i=+i,Vt(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 qt(e){return e&&typeof e.getElementsByTagName!==ct&&e}for(Ne in Ee=Ht.support={},ke=Ht.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},Oe=Ht.setDocument=function(e){var t,u=e?e.ownerDocument||e:rt,n=u.defaultView;return u!==_e&&9===u.nodeType&&u.documentElement?(Pe=(_e=u).documentElement,He=!ke(u),n&&n!==function r(e){try{return e.top}catch(t){}return null}(n)&&(n.addEventListener?n.addEventListener("unload",function(){Oe()},!1):n.attachEvent&&n.attachEvent("onunload",function(){Oe()})),Ee.attributes=!0,Ee.getElementsByTagName=!0,Ee.getElementsByClassName=Mt.test(u.getElementsByClassName),Ee.getById=!0,Se.find.ID=function(e,t){if(typeof t.getElementById!==ct&&He){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},Se.filter.ID=function(e){var t=e.replace(_t,Pt);return function(e){return e.getAttribute("id")===t}},Se.find.TAG=Ee.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==ct)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},Se.find.CLASS=Ee.getElementsByClassName&&function(e,t){if(He)return t.getElementsByClassName(e)},Ve=[],Le=[],Ee.disconnectedMatch=!0,Le=Le.length&&new RegExp(Le.join("|")),Ve=Ve.length&&new RegExp(Ve.join("|")),t=Mt.test(Pe.compareDocumentPosition),Ie=t||Mt.test(Pe.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},lt=t?function(e,t){if(e===t)return Be=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!Ee.sortDetached&&t.compareDocumentPosition(e)===n?e===u||e.ownerDocument===rt&&Ie(rt,e)?-1:t===u||t.ownerDocument===rt&&Ie(rt,t)?1:De?vt.call(De,e)-vt.call(De,t):0:4&n?-1:1)}:function(e,t){if(e===t)return Be=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e===u?-1:t===u?1:o?-1:i?1:De?vt.call(De,e)-vt.call(De,t):0;if(o===i)return It(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?It(a[r],s[r]):a[r]===rt?-1:s[r]===rt?1:0},u):_e},Ht.matches=function(e,t){return Ht(e,null,null,t)},Ht.matchesSelector=function(e,t){if((e.ownerDocument||e)!==_e&&Oe(e),t=t.replace(St,"='$1']"),Ee.matchesSelector&&He&&(!Ve||!Ve.test(t))&&(!Le||!Le.test(t)))try{var n=(void 0).call(e,t);if(n||Ee.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(fE){}return 0<Ht(t,_e,null,[e]).length},Ht.contains=function(e,t){return(e.ownerDocument||e)!==_e&&Oe(e),Ie(e,t)},Ht.attr=function(e,t){(e.ownerDocument||e)!==_e&&Oe(e);var n=Se.attrHandle[t.toLowerCase()],r=n&&ft.call(Se.attrHandle,t.toLowerCase())?n(e,t,!He):undefined;return r!==undefined?r:Ee.attributes||!He?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},Ht.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Ht.uniqueSort=function(e){var t,n=[],r=0,o=0;if(Be=!Ee.detectDuplicates,De=!Ee.sortStable&&e.slice(0),e.sort(lt),Be){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return De=null,e},ze=Ht.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+=ze(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=ze(t);return n},(Se=Ht.selectors={cacheLength:50,createPseudo:Vt,match:Tt,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(_t,Pt),e[3]=(e[3]||e[4]||e[5]||"").replace(_t,Pt),"~="===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]||Ht.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]&&Ht.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Tt.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&zt.test(n)&&(t=Te(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(_t,Pt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=at[e+" "];return t||(t=new RegExp("(^|"+yt+")"+e+"("+yt+"|$)"))&&at(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==ct&&e.getAttribute("class")||"")})},ATTR:function(n,r,o){return function(e){var t=Ht.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(h,e,t,m,g){var p="nth"!==h.slice(0,3),v="last"!==h.slice(-4),y="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,o,i,a,s,u,l=p!==v?"nextSibling":"previousSibling",c=e.parentNode,f=y&&e.nodeName.toLowerCase(),d=!n&&!y;if(c){if(p){for(;l;){for(i=e;i=i[l];)if(y?i.nodeName.toLowerCase()===f:1===i.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[v?c.firstChild:c.lastChild],v&&d){for(s=(r=(o=c[nt]||(c[nt]={}))[h]||[])[0]===ot&&r[1],a=r[0]===ot&&r[2],i=s&&c.childNodes[s];i=++s&&i&&i[l]||(a=s=0)||u.pop();)if(1===i.nodeType&&++a&&i===e){o[h]=[ot,s,a];break}}else if(d&&(r=(e[nt]||(e[nt]={}))[h])&&r[0]===ot)a=r[1];else for(;(i=++s&&i&&i[l]||(a=s=0)||u.pop())&&((y?i.nodeName.toLowerCase()!==f:1!==i.nodeType)||!++a||(d&&((i[nt]||(i[nt]={}))[h]=[ot,a]),i!==e)););return(a-=g)===m||a%m==0&&0<=a/m}}},PSEUDO:function(e,i){var t,a=Se.pseudos[e]||Se.setFilters[e.toLowerCase()]||Ht.error("unsupported pseudo: "+e);return a[nt]?a(i):1<a.length?(t=[e,e,"",i],Se.setFilters.hasOwnProperty(e.toLowerCase())?Vt(function(e,t){for(var n,r=a(e,i),o=r.length;o--;)e[n=vt.call(e,r[o])]=!(t[n]=r[o])}):function(e){return a(e,0,t)}):a}},pseudos:{not:Vt(function(e){var r=[],o=[],s=Ae(e.replace(xt,"$1"));return s[nt]?Vt(function(e,t,n,r){for(var o,i=s(e,null,r,[]),a=e.length;a--;)(o=i[a])&&(e[a]=!(t[a]=o))}):function(e,t,n){return r[0]=e,s(r,null,n,o),!o.pop()}}),has:Vt(function(t){return function(e){return 0<Ht(t,e).length}}),contains:Vt(function(t){return t=t.replace(_t,Pt),function(e){return-1<(e.textContent||e.innerText||ze(e)).indexOf(t)}}),lang:Vt(function(n){return kt.test(n||"")||Ht.error("unsupported lang: "+n),n=n.replace(_t,Pt).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=j.window.location&&j.window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Pe},focus:function(e){return e===_e.activeElement&&(!_e.hasFocus||_e.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!Se.pseudos.empty(e)},header:function(e){return Rt.test(e.nodeName)},input:function(e){return At.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:jt(function(){return[0]}),last:jt(function(e,t){return[t-1]}),eq:jt(function(e,t,n){return[n<0?n+t:n]}),even:jt(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:jt(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:jt(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:jt(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=Se.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Se.pseudos[Ne]=Ft(Ne);for(Ne in{submit:!0,reset:!0})Se.pseudos[Ne]=Ut(Ne);function $t(){}function Wt(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Kt(a,e,t){var s=e.dir,u=t&&"parentNode"===s,l=it++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||u)return a(e,t,n)}:function(e,t,n){var r,o,i=[ot,l];if(n){for(;e=e[s];)if((1===e.nodeType||u)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||u){if((r=(o=e[nt]||(e[nt]={}))[s])&&r[0]===ot&&r[1]===l)return i[2]=r[2];if((o[s]=i)[2]=a(e,t,n))return!0}}}function Xt(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 Yt(e,t,n,r,o){for(var i,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),l&&t.push(s)));return a}function Gt(m,g,p,v,y,e){return v&&!v[nt]&&(v=Gt(v)),y&&!y[nt]&&(y=Gt(y,e)),Vt(function(e,t,n,r){var o,i,a,s=[],u=[],l=t.length,c=e||function h(e,t,n){for(var r=0,o=t.length;r<o;r++)Ht(e,t[r],n);return n}(g||"*",n.nodeType?[n]:n,[]),f=!m||!e&&g?c:Yt(c,s,m,n,r),d=p?y||(e?m:l||v)?[]:t:f;if(p&&p(f,d,n,r),v)for(o=Yt(d,u),v(o,[],n,r),i=o.length;i--;)(a=o[i])&&(d[u[i]]=!(f[u[i]]=a));if(e){if(y||m){if(y){for(o=[],i=d.length;i--;)(a=d[i])&&o.push(f[i]=a);y(null,d=[],o,r)}for(i=d.length;i--;)(a=d[i])&&-1<(o=y?vt.call(e,a):s[i])&&(e[o]=!(t[o]=a))}}else d=Yt(d===t?d.splice(l,d.length):d),y?y(null,t,d,r):gt.apply(t,d)})}function Jt(e){for(var r,t,n,o=e.length,i=Se.relative[e[0].type],a=i||Se.relative[" "],s=i?1:0,u=Kt(function(e){return e===r},a,!0),l=Kt(function(e){return-1<vt.call(r,e)},a,!0),c=[function(e,t,n){return!i&&(n||t!==Me)||((r=t).nodeType?u(e,t,n):l(e,t,n))}];s<o;s++)if(t=Se.relative[e[s].type])c=[Kt(Xt(c),t)];else{if((t=Se.filter[e[s].type].apply(null,e[s].matches))[nt]){for(n=++s;n<o&&!Se.relative[e[n].type];n++);return Gt(1<s&&Xt(c),1<s&&Wt(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(xt,"$1"),t,s<n&&Jt(e.slice(s,n)),n<o&&Jt(e=e.slice(n)),n<o&&Wt(e))}c.push(t)}return Xt(c)}$t.prototype=Se.filters=Se.pseudos,Se.setFilters=new $t,Te=Ht.tokenize=function(e,t){var n,r,o,i,a,s,u,l=st[e+" "];if(l)return t?0:l.slice(0);for(a=e,s=[],u=Se.preFilter;a;){for(i in n&&!(r=Nt.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(o=[])),n=!1,(r=Et.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(xt," ")}),a=a.slice(n.length)),Se.filter)Se.filter.hasOwnProperty(i)&&(!(r=Tt[i].exec(a))||u[i]&&!(r=u[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?Ht.error(e):st(e,s).slice(0)},Ae=Ht.compile=function(e,t){var n,r=[],o=[],i=ut[e+" "];if(!i){for(t||(t=Te(e)),n=t.length;n--;)(i=Jt(t[n]))[nt]?r.push(i):o.push(i);(i=ut(e,function a(p,v){var y=0<v.length,b=0<p.length,e=function(e,t,n,r,o){var i,a,s,u=0,l="0",c=e&&[],f=[],d=Me,h=e||b&&Se.find.TAG("*",o),m=ot+=null==d?1:Math.random()||.1,g=h.length;for(o&&(Me=t!==_e&&t);l!==g&&null!=(i=h[l]);l++){if(b&&i){for(a=0;s=p[a++];)if(s(i,t,n)){r.push(i);break}o&&(ot=m)}y&&((i=!s&&i)&&u--,e&&c.push(i))}if(u+=l,y&&l!==u){for(a=0;s=v[a++];)s(c,f,t,n);if(e){if(0<u)for(;l--;)c[l]||f[l]||(f[l]=ht.call(r));f=Yt(f)}gt.apply(r,f),o&&!e&&0<f.length&&1<u+v.length&&Ht.uniqueSort(r)}return o&&(ot=m,Me=d),c};return y?Vt(e):e}(o,r))).selector=e}return i},Re=Ht.select=function(e,t,n,r){var o,i,a,s,u,l="function"==typeof e&&e,c=!r&&Te(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&&Ee.getById&&9===t.nodeType&&He&&Se.relative[i[1].type]){if(!(t=(Se.find.ID(a.matches[0].replace(_t,Pt),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=Tt.needsContext.test(e)?0:i.length;o--&&(a=i[o],!Se.relative[s=a.type]);)if((u=Se.find[s])&&(r=u(a.matches[0].replace(_t,Pt),Bt.test(i[0].type)&&qt(t.parentNode)||t))){if(i.splice(o,1),!(e=r.length&&Wt(i)))return gt.apply(n,r),n;break}}return(l||Ae(e,c))(r,t,!He,n,Bt.test(e)&&qt(t.parentNode)||t),n},Ee.sortStable=nt.split("").sort(lt).join("")===nt,Ee.detectDuplicates=!!Be,Oe(),Ee.sortDetached=!0;var Qt=Array.isArray,Zt=function(e,t,n){var r,o;if(!e)return 0;if(n=n||e,e.length!==undefined){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},en=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},tn={isArray:Qt,toArray:function(e){var t,n,r=e;if(!Qt(e))for(r=[],t=0,n=e.length;t<n;t++)r[t]=e[t];return r},each:Zt,map:function(n,r){var o=[];return Zt(n,function(e,t){o.push(r(e,t,n))}),o},filter:function(n,r){var o=[];return Zt(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:en,find:function(e,t,n){var r=en(e,t,n);return-1!==r?e[r]:undefined},last:function(e){return e[e.length-1]}},nn=/^\s*|\s*$/g,rn=function(e){return null===e||e===undefined?"":(""+e).replace(nn,"")},on=function(e,t){return t?!("array"!==t||!tn.isArray(e))||typeof e===t:e!==undefined},an=function(e,n,r,o){o=o||this,e&&(r&&(e=e[r]),tn.each(e,function(e,t){if(!1===n.call(o,e,t,r))return!1;an(e,n,r,o)}))},sn={trim:rn,isArray:tn.isArray,is:on,toArray:tn.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:tn.each,map:tn.map,grep:tn.filter,inArray:tn.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 s,u=arguments;for(n=1,r=u.length;n<r;n++)for(o in t=u[n])t.hasOwnProperty(o)&&(s=t[o])!==undefined&&(e[o]=s);return e},create:function(e,t,n){var r,o,i,a,s,u=this,l=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),i=e[3].match(/(^|\.)(\w+)$/i)[2],!(o=u.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],u.extend(o[i].prototype,t),e[5]&&(r=u.resolve(e[5]).prototype,a=e[5].match(/\.(\w+)$/i)[1],s=o[i],o[i]=l?function(){return r[a].apply(this,arguments)}:function(){return this.parent=r[a],s.apply(this,arguments)},o[i].prototype[i]=o[i],u.each(r,function(e,t){o[i].prototype[t]=r[t]}),u.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)})),u.each(t["static"],function(e,t){o[i][t]=e})}},walk:an,createNS:function(e,t){var n,r;for(t=t||j.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||j.window,n=0,r=(e=e.split(".")).length;n<r&&(t=t[e[n]]);n++);return t},explode:function(e,t){return!e||on(e,"array")?e:tn.map(e.split(t||","),rn)},_addCacheSuffix:function(e){var t=Fe.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}},un=j.document,ln=Array.prototype.push,cn=Array.prototype.slice,fn=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,dn=tt.Event,hn=sn.makeMap("children,contents,next,prev"),mn=function(e){return void 0!==e},gn=function(e){return"string"==typeof e},pn=function(e,t){var n,r,o;for(o=(t=t||un).createElement("div"),n=t.createDocumentFragment(),o.innerHTML=e;r=o.firstChild;)n.appendChild(r);return n},vn=function(e,t,n,r){var o;if(gn(t))t=pn(t,Mn(e[0]));else if(t.length&&!t.nodeType){if(t=Un.makeArray(t),r)for(o=t.length-1;0<=o;o--)vn(e,t[o],n,r);else for(o=0;o<t.length;o++)vn(e,t[o],n,r);return e}if(t.nodeType)for(o=e.length;o--;)n.call(e[o],t);return e},yn=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},bn=function(e,t,n){var r,o;return t=Un(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},Cn=sn.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),wn=sn.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),xn={"for":"htmlFor","class":"className",readonly:"readOnly"},Nn={"float":"cssFloat"},En={},Sn={},zn=function(e,t){return new Un.fn.init(e,t)},kn=/^\s*|\s*$/g,Tn=function(e){return null===e||e===undefined?"":(""+e).replace(kn,"")},An=function(e,t){var n,r,o,i;if(e)if((n=e.length)===undefined){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},Rn=function(e,n){var r=[];return An(e,function(e,t){n(t,e)&&r.push(t)}),r},Mn=function(e){return e?9===e.nodeType?e:e.ownerDocument:un};zn.fn=zn.prototype={constructor:zn,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 Un(e).attr(t);o.context=t=j.document}if(gn(e)){if(!(n="<"===(o.selector=e).charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:fn.exec(e)))return Un(t).find(e);if(n[1])for(r=pn(e,Mn(t)).firstChild;r;)ln.call(o,r),r=r.nextSibling;else{if(!(r=Mn(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 sn.toArray(this)},add:function(e,t){var n,r,o=this;if(gn(e))return o.add(Un(e));if(!1!==t)for(n=Un.unique(o.toArray().concat(Un.makeArray(e))),o.length=n.length,r=0;r<n.length;r++)o[r]=n[r];else ln.apply(o,Un.makeArray(e));return o},attr:function(t,n){var e,r=this;if("object"==typeof t)An(t,function(e,t){r.attr(e,t)});else{if(!mn(n)){if(r[0]&&1===r[0].nodeType){if((e=En[t])&&e.get)return e.get(r[0],t);if(wn[t])return r.prop(t)?t:undefined;null===(n=r[0].getAttribute(t,2))&&(n=undefined)}return n}this.each(function(){var e;if(1===this.nodeType){if((e=En[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=xn[e]||e))An(e,function(e,t){n.prop(e,t)});else{if(!mn(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(n,r){var e,o,i=this,t=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 n)An(n,function(e,t){i.css(e,t)});else if(mn(r))n=t(n),"number"!=typeof r||Cn[n]||(r=r.toString()+"px"),i.each(function(){var e=this.style;if((o=Sn[n])&&o.set)o.set(this,r);else{try{this.style[Nn[n]||n]=r}catch(t){}null!==r&&""!==r||(e.removeProperty?e.removeProperty(a(n)):e.removeAttribute(n))}});else{if(e=i[0],(o=Sn[n])&&o.get)return o.get(e);if(!e.ownerDocument.defaultView)return e.currentStyle?e.currentStyle[t(n)]:"";try{return e.ownerDocument.defaultView.getComputedStyle(e,null).getPropertyValue(a(n))}catch(s){return undefined}}return i},remove:function(){for(var e,t=this.length;t--;)e=this[t],dn.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(e){var t,n=this;if(mn(e)){t=n.length;try{for(;t--;)n[t].innerHTML=e}catch(r){Un(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(mn(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 vn(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)})},prepend:function(){return vn(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?vn(this,arguments,function(e){this.parentNode.insertBefore(e,this)}):this},after:function(){return this[0]&&this[0].parentNode?vn(this,arguments,function(e){this.parentNode.insertBefore(e,this.nextSibling)},!0):this},appendTo:function(e){return Un(e).append(this),this},prependTo:function(e){return Un(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return bn(this,e)},wrapAll:function(e){return bn(this,e,!0)},wrapInner:function(e){return this.each(function(){Un(this).contents().wrapAll(e)}),this},unwrap:function(){return this.parent().each(function(){Un(this).replaceWith(this.childNodes)})},clone:function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),Un(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(" ")?An(o.split(" "),function(){e.toggleClass(this,i)}):e.each(function(e,t){var n,r;(r=yn(t,o))!==i&&(n=t.className,r?t.className=Tn((" "+n+" ").replace(" "+o+" "," ")):t.className+=n?" "+o:o)})),e},hasClass:function(e){return yn(this[0],e)},each:function(e){return An(this,e)},on:function(e,t){return this.each(function(){dn.bind(this,e,t)})},off:function(e,t){return this.each(function(){dn.unbind(this,e,t)})},trigger:function(e){return this.each(function(){"object"==typeof e?dn.fire(this,e.type,e):dn.fire(this,e)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new Un(cn.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++)Un.find(e,this[t],r);return Un(r)},filter:function(n){return Un("function"==typeof n?Rn(this.toArray(),function(e,t){return n(t,e)}):Un.filter(n,this.toArray()))},closest:function(n){var r=[];return n instanceof Un&&(n=n[0]),this.each(function(e,t){for(;t;){if("string"==typeof n&&Un(t).is(n)){r.push(t);break}if(t===n){r.push(t);break}t=t.parentNode}}),Un(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:ln,sort:Array.prototype.sort,splice:Array.prototype.splice},sn.extend(zn,{extend:sn.extend,makeArray:function(e){return(t=e)&&t===t.window||e.nodeType?[e]:sn.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:sn.isArray,each:An,trim:Tn,grep:Rn,find:Ht,expr:Ht.selectors,unique:Ht.uniqueSort,text:Ht.getText,contains:Ht.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?Un.find.matchesSelector(t[0],e)?[t[0]]:[]:Un.find.matches(e,t)}});var Dn=function(e,t,n){var r=[],o=e[t];for("string"!=typeof n&&n instanceof Un&&(n=n[0]);o&&9!==o.nodeType;){if(n!==undefined){if(o===n)break;if("string"==typeof n&&Un(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r},Bn=function(e,t,n,r){var o=[];for(r instanceof Un&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(r!==undefined){if(e===r)break;if("string"==typeof r&&Un(e).is(r))break}o.push(e)}return o},On=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};An({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Dn(e,"parentNode")},next:function(e){return On(e,"nextSibling",1)},prev:function(e){return On(e,"previousSibling",1)},children:function(e){return Bn(e.firstChild,"nextSibling",1)},contents:function(e){return sn.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},function(r,o){zn.fn[r]=function(t){var n=[];this.each(function(){var e=o.call(n,this,t,n);e&&(Un.isArray(e)?n.push.apply(n,e):n.push(e))}),1<this.length&&(hn[r]||(n=Un.unique(n)),0===r.indexOf("parents")&&(n=n.reverse()));var e=Un(n);return t?e.filter(t):e}}),An({parentsUntil:function(e,t){return Dn(e,"parentNode",t)},nextUntil:function(e,t){return Bn(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Bn(e,"previousSibling",1,t).slice(1)}},function(o,i){zn.fn[o]=function(t,e){var n=[];this.each(function(){var e=i.call(n,this,t,n);e&&(Un.isArray(e)?n.push.apply(n,e):n.push(e))}),1<this.length&&(n=Un.unique(n),0!==o.indexOf("parents")&&"prevUntil"!==o||(n=n.reverse()));var r=Un(n);return e?r.filter(e):r}}),zn.fn.is=function(e){return!!e&&0<this.filter(e).length},zn.fn.init.prototype=zn.fn,zn.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 Un.extend(o,this),o};var _n=function(n,r,e){An(e,function(e,t){n[e]=n[e]||{},n[e][r]=t})};Fe.ie&&Fe.ie<8&&(_n(En,"get",{maxlength:function(e){var t=e.maxLength;return 2147483647===t?undefined:t},size:function(e){var t=e.size;return 20===t?undefined:t},"class":function(e){return e.className},style:function(e){var t=e.style.cssText;return 0===t.length?undefined:t}}),_n(En,"set",{"class":function(e,t){e.className=t},style:function(e,t){e.style.cssText=t}})),Fe.ie&&Fe.ie<9&&(Nn["float"]="styleFloat",_n(Sn,"set",{opacity:function(e,t){var n=e.style;null===t||""===t?n.removeAttribute("filter"):(n.zoom=1,n.filter="alpha(opacity="+100*t+")")}})),zn.attrHooks=En,zn.cssHooks=Sn;var Pn,Hn,Ln,Vn,In,Fn,Un=zn,jn=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}return undefined}(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return $n(r(1),r(2))},qn=function(){return $n(0,0)},$n=function(e,t){return{major:e,minor:t}},Wn={nu:$n,detect:function(e,t){var n=String(t).toLowerCase();return 0===e.length?qn():jn(e,n)},unknown:qn},Kn="Firefox",Xn=function(e,t){return function(){return t===e}},Yn=function(e){var t=e.current;return{current:t,version:e.version,isEdge:Xn("Edge",t),isChrome:Xn("Chrome",t),isIE:Xn("IE",t),isOpera:Xn("Opera",t),isFirefox:Xn(Kn,t),isSafari:Xn("Safari",t)}},Gn={unknown:function(){return Yn({current:undefined,version:Wn.unknown()})},nu:Yn,edge:$("Edge"),chrome:$("Chrome"),ie:$("IE"),opera:$("Opera"),firefox:$(Kn),safari:$("Safari")},Jn="Windows",Qn="Android",Zn="Solaris",er="FreeBSD",tr=function(e,t){return function(){return t===e}},nr=function(e){var t=e.current;return{current:t,version:e.version,isWindows:tr(Jn,t),isiOS:tr("iOS",t),isAndroid:tr(Qn,t),isOSX:tr("OSX",t),isLinux:tr("Linux",t),isSolaris:tr(Zn,t),isFreeBSD:tr(er,t)}},rr={unknown:function(){return nr({current:undefined,version:Wn.unknown()})},nu:nr,windows:$(Jn),ios:$("iOS"),android:$(Qn),linux:$("Linux"),osx:$("OSX"),solaris:$(Zn),freebsd:$(er)},or=function(e,t){var n=String(t).toLowerCase();return Q(e,function(e){return e.search(n)})},ir=function(e,n){return or(e,n).map(function(e){var t=Wn.detect(e.versionRegexes,n);return{current:e.name,version:t}})},ar=function(e,n){return or(e,n).map(function(e){var t=Wn.detect(e.versionRegexes,n);return{current:e.name,version:t}})},sr=function(e,t){return-1!==e.indexOf(t)},ur=function(e){return e.replace(/^\s+|\s+$/g,"")},lr=function(e){return e.replace(/\s+$/g,"")},cr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,fr=function(t){return function(e){return sr(e,t)}},dr=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return sr(e,"edge/")&&sr(e,"chrome")&&sr(e,"safari")&&sr(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,cr],search:function(e){return sr(e,"chrome")&&!sr(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return sr(e,"msie")||sr(e,"trident")}},{name:"Opera",versionRegexes:[cr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:fr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:fr("firefox")},{name:"Safari",versionRegexes:[cr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(sr(e,"safari")||sr(e,"mobile/"))&&sr(e,"applewebkit")}}],hr=[{name:"Windows",search:fr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return sr(e,"iphone")||sr(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:fr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:fr("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:fr("linux"),versionRegexes:[]},{name:"Solaris",search:fr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:fr("freebsd"),versionRegexes:[]}],mr={browsers:$(dr),oses:$(hr)},gr=function(e){var t,n,r,o,i,a,s,u,l,c,f,d=mr.browsers(),h=mr.oses(),m=ir(d,e).fold(Gn.unknown,Gn.nu),g=ar(h,e).fold(rr.unknown,rr.nu);return{browser:m,os:g,deviceType:(n=m,r=e,o=(t=g).isiOS()&&!0===/ipad/i.test(r),i=t.isiOS()&&!o,a=t.isAndroid()&&3===t.version.major,s=t.isAndroid()&&4===t.version.major,u=o||a||s&&!0===/mobile/i.test(r),l=t.isiOS()||t.isAndroid(),c=l&&!u,f=n.isSafari()&&t.isiOS()&&!1===/safari/i.test(r),{isiPad:$(o),isiPhone:$(i),isTablet:$(u),isPhone:$(c),isTouch:$(l),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:$(f)})}},pr={detect:(Pn=function(){var e=j.navigator.userAgent;return gr(e)},Ln=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ln||(Ln=!0,Hn=Pn.apply(null,e)),Hn})},vr=function(e){if(null===e||e===undefined)throw new Error("Node cannot be null or undefined");return{dom:$(e)}},yr={fromHtml:function(e,t){var n=(t||j.document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||1<n.childNodes.length)throw j.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return vr(n.childNodes[0])},fromTag:function(e,t){var n=(t||j.document).createElement(e);return vr(n)},fromText:function(e,t){var n=(t||j.document).createTextNode(e);return vr(n)},fromDom:vr,fromPoint:function(e,t,n){var r=e.dom();return T.from(r.elementFromPoint(t,n)).map(vr)}},br=(j.Node.ATTRIBUTE_NODE,j.Node.CDATA_SECTION_NODE,j.Node.COMMENT_NODE,j.Node.DOCUMENT_NODE),Cr=(j.Node.DOCUMENT_TYPE_NODE,j.Node.DOCUMENT_FRAGMENT_NODE,j.Node.ELEMENT_NODE),wr=j.Node.TEXT_NODE,xr=(j.Node.PROCESSING_INSTRUCTION_NODE,j.Node.ENTITY_REFERENCE_NODE,j.Node.ENTITY_NODE,j.Node.NOTATION_NODE,function(e){return e.dom().nodeName.toLowerCase()}),Nr=function(t){return function(e){return e.dom().nodeType===t}},Er=Nr(Cr),Sr=Nr(wr),zr=Object.keys,kr=Object.hasOwnProperty,Tr=function(e,t){for(var n=zr(e),r=0,o=n.length;r<o;r++){var i=n[r];t(e[i],i,e)}},Ar=function(e,r){return Rr(e,function(e,t,n){return{k:t,v:r(e,t,n)}})},Rr=function(r,o){var i={};return Tr(r,function(e,t){var n=o(e,t,r);i[n.k]=n.v}),i},Mr=function(e,n){var r={},o={};return Tr(e,function(e,t){(n(e,t)?r:o)[t]=e}),{t:r,f:o}},Dr=function(e,t){return Br(e,t)?T.from(e[t]):T.none()},Br=function(e,t){return kr.call(e,t)},Or=function(e,t,n){if(!(K(n)||B(n)||_(n)))throw j.console.error("Invalid call to Attr.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},_r=function(e,t,n){Or(e.dom(),t,n)},Pr=function(e,t){var n=e.dom();Tr(t,function(e,t){Or(n,t,e)})},Hr=function(e,t){var n=e.dom().getAttribute(t);return null===n?undefined:n},Lr=function(e,t){e.dom().removeAttribute(t)},Vr=function(e,t){var n,r,o=e.dom(),i=j.window.getComputedStyle(o).getPropertyValue(t),a=""!==i||(r=Sr(n=e)?n.dom().parentNode:n.dom())!==undefined&&null!==r&&r.ownerDocument.body.contains(r)?i:Ir(o,t);return null===a?undefined:a},Ir=function(e,t){return e.style!==undefined?e.style.getPropertyValue(t):""},Fr=function(e,t){var n=e.dom(),r=Ir(n,t);return T.from(r).filter(function(e){return 0<e.length})},Ur=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 I(t,function(e,t){r[e]=$(n[t])}),r}},jr=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},qr=function(){return ge.getOrDie("Node")},$r=function(e,t,n){return 0!=(e.compareDocumentPosition(t)&n)},Wr=function(e,t){return $r(e,t,qr().DOCUMENT_POSITION_CONTAINED_BY)},Kr=Cr,Xr=br,Yr=function(e,t){var n=e.dom();if(n.nodeType!==Kr)return!1;if(n.matches!==undefined)return n.matches(t);if(n.msMatchesSelector!==undefined)return n.msMatchesSelector(t);if(n.webkitMatchesSelector!==undefined)return n.webkitMatchesSelector(t);if(n.mozMatchesSelector!==undefined)return n.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Gr=function(e){return e.nodeType!==Kr&&e.nodeType!==Xr||0===e.childElementCount},Jr=function(e,t){var n=t===undefined?j.document:t.dom();return Gr(n)?[]:X(n.querySelectorAll(e),yr.fromDom)},Qr=function(e,t){return e.dom()===t.dom()},Zr=pr.detect().browser.isIE()?function(e,t){return Wr(e.dom(),t.dom())}:function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},eo=function(e){return yr.fromDom(e.dom().ownerDocument)},to=function(e){var t=e.dom();return T.from(t.parentNode).map(yr.fromDom)},no=function(e,t){for(var n=O(t)?t:$(!1),r=e.dom(),o=[];null!==r.parentNode&&r.parentNode!==undefined;){var i=r.parentNode,a=yr.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},ro=function(e){var t=e.dom();return T.from(t.previousSibling).map(yr.fromDom)},oo=function(e){var t=e.dom();return T.from(t.nextSibling).map(yr.fromDom)},io=function(e){return ae(jr(e,ro))},ao=function(e){return jr(e,oo)},so=function(e){var t=e.dom();return X(t.childNodes,yr.fromDom)},uo=function(e,t){var n=e.dom().childNodes;return T.from(n[t]).map(yr.fromDom)},lo=function(e){return uo(e,0)},co=function(e){return uo(e,e.dom().childNodes.length-1)},fo=(Ur("element","offset"),pr.detect().browser),ho=function(e){return Q(e,Er)},mo={getPos:function(e,t,n){var r,o,i,a=0,s=0,u=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===Vr(yr.fromDom(e),"position"))return{x:a=(o=t.getBoundingClientRect()).left+(u.documentElement.scrollLeft||e.scrollLeft)-u.documentElement.clientLeft,y:s=o.top+(u.documentElement.scrollTop||e.scrollTop)-u.documentElement.clientTop};for(r=t;r&&r!==n&&r.nodeType;)a+=r.offsetLeft||0,s+=r.offsetTop||0,r=r.offsetParent;for(r=t.parentNode;r&&r!==n&&r.nodeType;)a-=r.scrollLeft||0,s-=r.scrollTop||0,r=r.parentNode;s+=(i=yr.fromDom(t),fo.isFirefox()&&"table"===xr(i)?ho(so(i)).filter(function(e){return"caption"===xr(e)}).bind(function(o){return ho(ao(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:s}}},go=function(e){var n=T.none(),t=[],r=function(e){o()?a(e):t.push(e)},o=function(){return n.isSome()},i=function(e){I(e,a)},a=function(t){n.each(function(e){j.setTimeout(function(){t(e)},0)})};return e(function(e){n=T.some(e),i(t),t=[]}),{get:r,map:function(n){return go(function(t){r(function(e){t(n(e))})})},isReady:o}},po={nu:go,pure:function(t){return go(function(e){e(t)})}},vo=function(t){var e=function(e){var r;t((r=e,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this;j.setTimeout(function(){r.apply(n,e)},0)}))},n=function(){return po.nu(e)};return{map:function(r){return vo(function(n){e(function(e){var t=r(e);n(t)})})},bind:function(n){return vo(function(t){e(function(e){n(e).get(t)})})},anonBind:function(n){return vo(function(t){e(function(e){n.get(t)})})},toLazy:n,toCached:function(){var t=null;return vo(function(e){null===t&&(t=n()),t.get(e)})},get:e}},yo={nu:vo,pure:function(t){return vo(function(e){e(t)})}},bo=function(a,e){return e(function(r){var o=[],i=0;0===a.length?r([]):I(a,function(e,t){var n;e.get((n=t,function(e){o[n]=e,++i>=a.length&&r(o)}))})})},Co=function(e){return bo(e,yo.nu)},wo=function(n){return{is:function(e){return n===e},isValue:x,isError:w,getOr:$(n),getOrThunk:$(n),getOrDie:$(n),or:function(e){return wo(n)},orThunk:function(e){return wo(n)},fold:function(e,t){return t(n)},map:function(e){return wo(e(n))},mapError:function(e){return wo(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 T.some(n)}}},xo=function(n){return{is:w,isValue:w,isError:x,getOr:W,getOrThunk:function(e){return e()},getOrDie:function(){return C(String(n))()},or:function(e){return e},orThunk:function(e){return e()},fold:function(e,t){return e(n)},map:function(e){return xo(n)},mapError:function(e){return xo(e(n))},each:u,bind:function(e){return xo(n)},exists:w,forall:x,toOption:T.none}},No={value:wo,error:xo},Eo=function(t){return function(e){return!!e&&e.nodeType===t}},So=Eo(1),zo=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}},ko=function(t){return function(e){if(So(e)){if(e.contentEditable===t)return!0;if(e.getAttribute("data-mce-contenteditable")===t)return!0}return!1}},To=Eo(3),Ao=Eo(8),Ro=Eo(9),Mo=Eo(11),Do=zo("br"),Bo=ko("true"),Oo=ko("false"),_o={isText:To,isElement:So,isComment:Ao,isDocument:Ro,isDocumentFragment:Mo,isBr:Do,isContentEditableTrue:Bo,isContentEditableFalse:Oo,matchNodeNames:zo,hasPropValue:function(t,n){return function(e){return So(e)&&e[t]===n}},hasAttribute:function(t,e){return function(e){return So(e)&&e.hasAttribute(t)}},hasAttributeValue:function(t,n){return function(e){return So(e)&&e.getAttribute(t)===n}},matchStyleValues:function(r,e){var o=e.toLowerCase().split(" ");return function(e){var t;if(So(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 So(e)&&e.hasAttribute("data-mce-bogus")},isBogusAll:function(e){return So(e)&&"all"===e.getAttribute("data-mce-bogus")},isTable:function(e){return So(e)&&"TABLE"===e.tagName}},Po=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(o=e[n])return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n])return o}}},e.prototype.findPreviousNode=function(e,t,n,r){var o,i,a;if(e){if(o=e[n],this.rootNode&&o===this.rootNode)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!==this.rootNode)return i}},e}(),Ho=function(t){var n;return function(e){return(n=n||ue(t,$(!0))).hasOwnProperty(xr(e))}},Lo=Ho(["h1","h2","h3","h4","h5","h6"]),Vo=Ho(["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"]),Io=function(e){return Er(e)&&!Vo(e)},Fo=function(e){return Er(e)&&"br"===xr(e)},Uo=Ho(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),jo=Ho(["ul","ol","dl"]),qo=Ho(["li","dd","dt"]),$o=Ho(["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param","embed","source","wbr","track"]),Wo=Ho(["thead","tbody","tfoot"]),Ko=Ho(["td","th"]),Xo=Ho(["pre","script","textarea","style"]),Yo=function(e){return e&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Go=function(e,t){var n,r=t.childNodes;if(!_o.isElement(t)||!Yo(t)){for(n=r.length-1;0<=n;n--)Go(e,r[n]);if(!1===_o.isDocument(t)){if(_o.isText(t)&&0<t.nodeValue.length){var o=sn.trim(t.nodeValue).length;if(e.isBlock(t.parentNode)||0<o)return;if(0===o&&(a=(i=t).previousSibling&&"SPAN"===i.previousSibling.nodeName,s=i.nextSibling&&"SPAN"===i.nextSibling.nodeName,a&&s))return}else if(_o.isElement(t)&&(1===(r=t.childNodes).length&&Yo(r[0])&&t.parentNode.insertBefore(r[0],t),r.length||$o(yr.fromDom(t))))return;e.remove(t)}var i,a,s;return t}},Jo={trimNode:Go},Qo=sn.makeMap,Zo=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ei=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ti=/[<>&\"\']/g,ni=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,ri={128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"};In={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},Fn={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"};var oi=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)),In[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}};Vn=oi("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 ii=function(e,t){return e.replace(t?Zo:ei,function(e){return In[e]||e})},ai=function(e,t){return e.replace(t?Zo:ei,function(e){return 1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":In[e]||"&#"+e.charCodeAt(0)+";"})},si=function(e,t,n){return n=n||Vn,e.replace(t?Zo:ei,function(e){return In[e]||n[e]||e})},ui={encodeRaw:ii,encodeAllRaw:function(e){return(""+e).replace(ti,function(e){return In[e]||e})},encodeNumeric:ai,encodeNamed:si,getEncodeFunc:function(e,t){var n=oi(t)||Vn,r=Qo(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?Zo:ei,function(e){return In[e]!==undefined?In[e]:n[e]!==undefined?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 si(e,t,n)}:si:r.numeric?ai:ii},decode:function(e){return e.replace(ni,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))):ri[t]||String.fromCharCode(t):Fn[e]||Vn[e]||(n=e,(r=yr.fromTag("div").dom()).innerHTML=n,r.textContent||r.innerText||n);var n,r})}},li={},hi={},mi=sn.makeMap,gi=sn.each,pi=sn.extend,vi=sn.explode,yi=sn.inArray,bi=function(e,t){return(e=sn.trim(e))?e.split(t||" "):[]},Ci=function(e){var s,t,n,r,o,i,u={},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=bi(n)),r=(e=bi(e)).length;r--;)i={attributes:a(o=bi([s,t].join(" "))),attributesOrder:o,children:a(n,hi)},u[e[r]]=i},l=function(e,t){var n,r,o,i;for(n=(e=bi(e)).length,t=bi(t);n--;)for(r=u[e[n]],o=0,i=t.length;o<i;o++)r.attributes[t[o]]={},r.attributesOrder.push(t[o])};return li[e]?li[e]:(s="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&&(s+=" 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&&(s+=" xml:lang",n=[n,i="acronym applet basefont big font strike tt"].join(" "),gi(bi(i),function(e){a(e,"",n)}),t=[t,o="center dir isindex noframes"].join(" "),r=[t,n].join(" "),gi(bi(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")),gi(bi("a form meter progress dfn"),function(e){u[e]&&delete u[e].children[e]}),delete u.caption.children.table,delete u.script,li[e]=u)},wi=function(e,n){var r;return e&&(r={},"string"==typeof e&&(e={"*":e}),gi(e,function(e,t){r[t]=r[t.toUpperCase()]="map"===n?mi(e,/[, ]/):vi(e,/[, ]/)})),r};function xi(i){var e,t,n,r,o,a,s,u,l,c,f,d,h,N={},m={},E=[],g={},p={},v=function(e,t,n){var r=i[e];return r?r=mi(r,/[, ]/,mi(r.toUpperCase(),/[, ]/)):(r=li[e])||(r=mi(t," ",mi(t.toUpperCase()," ")),r=pi(r,n),li[e]=r),r};n=Ci((i=i||{}).schema),!1===i.verify_html&&(i.valid_elements="*[*]"),e=wi(i.valid_styles),t=wi(i.invalid_styles,"map"),u=wi(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"),s=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),h=v("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp"),gi((i.special||"script noscript noframes noembed title style textarea xmp").split(" "),function(e){p[e]=new RegExp("</"+e+"[^>]*>","gi")});var S=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},y=function(e){var t,n,r,o,i,a,s,u,l,c,f,d,h,m,g,p,v,y,b,C=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,w=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,x=/[*?+]/;if(e)for(e=bi(e,","),N["@"]&&(p=N["@"].attributes,v=N["@"].attributesOrder),t=0,n=e.length;t<n;t++)if(i=C.exec(e[t])){if(m=i[1],l=i[2],g=i[3],u=i[5],a={attributes:d={},attributesOrder:h=[]},"#"===m&&(a.paddEmpty=!0),"-"===m&&(a.removeEmpty=!0),"!"===i[4]&&(a.removeEmptyAttrs=!0),p){for(y in p)d[y]=p[y];h.push.apply(h,v)}if(u)for(r=0,o=(u=bi(u,"|")).length;r<o;r++)if(i=w.exec(u[r])){if(s={},f=i[1],c=i[2].replace(/[\\:]:/g,":"),m=i[3],b=i[4],"!"===f&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(c),s.required=!0),"-"===f){delete d[c],h.splice(yi(h,c),1);continue}m&&("="===m&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:c,value:b}),s.defaultValue=b),":"===m&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:c,value:b}),s.forcedValue=b),"<"===m&&(s.validValues=mi(b,"?"))),x.test(c)?(a.attributePatterns=a.attributePatterns||[],s.pattern=S(c),a.attributePatterns.push(s)):(d[c]||h.push(c),d[c]=s)}p||"@"!==l||(p=d,v=h),g&&(a.outputName=l,N[g]=a),x.test(l)?(a.pattern=S(l),E.push(a)):N[l]=a}},b=function(e){N={},E=[],y(e),gi(n,function(e,t){m[t]=e.children})},C=function(e){var a=/^(~)?(.+)$/;e&&(li.text_block_elements=li.block_elements=null,gi(bi(e,","),function(e){var t=a.exec(e),n="~"===t[1],r=n?"span":"div",o=t[2];if(m[o]=m[r],g[o]=r,n||(l[o.toUpperCase()]={},l[o]={}),!N[o]){var i=N[r];delete(i=pi({},i)).removeEmptyAttrs,delete i.removeEmpty,N[o]=i}gi(m,function(e,t){e[r]&&(m[t]=e=pi({},m[t]),e[o]=e[r])})}))},w=function(e){var o=/^([+\-]?)(\w+)\[([^\]]+)\]$/;li[i.schema]=null,e&&gi(bi(e,","),function(e){var t,n,r=o.exec(e);r&&(n=r[1],t=n?m[r[2]]:m[r[2]]={"#comment":{}},t=m[r[2]],gi(bi(r[3],"|"),function(e){"-"===n?delete t[e]:t[e]={}}))})},x=function(e){var t,n=N[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):(gi(n,function(e,t){N[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},m[t]=e.children}),"html5"!==i.schema&&gi(bi("strong/b em/i"),function(e){e=bi(e,"/"),N[e[1]].outputName=e[0]}),gi(bi("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(e){N[e]&&(N[e].removeEmpty=!0)}),gi(bi("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(e){N[e].paddEmpty=!0}),gi(bi("span"),function(e){N[e].removeEmptyAttrs=!0})),C(i.custom_elements),w(i.valid_children),y(i.extended_valid_elements),w("+ol[ul|ol],+ul[ul|ol]"),gi({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){N[t]&&(N[t].parentsRequired=bi(e))}),i.invalid_elements&&gi(vi(i.invalid_elements),function(e){N[e]&&delete N[e]}),x("span")||y("span[!data-mce-type|*]"),{children:m,elements:N,getValidStyles:function(){return e},getValidClasses:function(){return u},getBlockElements:function(){return l},getInvalidStyles:function(){return t},getShortEndedElements:function(){return a},getTextBlockElements:function(){return d},getTextInlineElements:function(){return h},getBoolAttrs:function(){return s},getElementRule:x,getSelfClosingElements:function(){return o},getNonEmptyElements:function(){return c},getMoveCaretBeforeOnEnterElements:function(){return f},getWhiteSpaceElements:function(){return r},getSpecialElements:function(){return p},isValidChild:function(e,t){var n=m[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},isValid:function(e,t){var n,r,o=x(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 Ni,Ei=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)},Si=function(b,e){var C,t,l,c,w=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,x=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,N=/\s*([^:]+):\s*([^;]+);?/g,E=/\s+$/,S={},z="\ufeff";for(b=b||{},e&&(l=e.getValidStyles(),c=e.getInvalidStyles()),t=("\\\" \\' \\; \\: ; : "+z).split(" "),C=0;C<t.length;C++)S[t[C]]=z+C,S[z+C]=t[C];return{toHex:function(e){return e.replace(w,Ei)},parse:function(e){var t,n,r,o,i,a,s,u,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 s=[r,o,i,a];for(C=s.length-1;C--&&s[C]===s[C+1];);-1<C&&n||(l[e+t]=-1===C?s[0]:s.join(" "),delete l[e+"-top"+t],delete l[e+"-right"+t],delete l[e+"-bottom"+t],delete l[e+"-left"+t])}},h=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}},m=function(e){return o=!0,S[e]},g=function(e,t){return o&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return S[e]})),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},p=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},v=function(e){return e.replace(/\\[0-9a-f]+/gi,p)},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,m).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,m)});t=N.exec(e);)if(N.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(z)||-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,Ei)).replace(x,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",s="border-style",u="border-color",h(a="border-width")&&h(s)&&h(u)&&(l[i]=l[a]+" "+l[s]+" "+l[u],delete l[a],delete l[s],delete l[u]),"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,s="",u=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])&&(s+=(0<s.length?" ":"")+e+": "+o+";")};if(e&&l)u("*"),u(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])||(s+=(0<s.length?" ":"")+t+": "+n+";");return s}}},zi=sn.each,ki=sn.grep,Ti=Fe.ie,Ai=/^([a-z0-9],?)+$/i,Ri=/^[ \t\r\n]*$/,Mi=function(n,r,o){var i=r.keep_values,e={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)}},t={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)}}};return i&&(t.href=t.src=e),t},Di=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)},Bi=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 Oi(a,s){var u,l=this;void 0===s&&(s={});var r={},c=j.window,o={},t=0,e=function U(m,g){void 0===g&&(g={});var p,v=0,y={};p=g.maxLoadTime||5e3;var b=function(e){m.getElementsByTagName("head")[0].appendChild(e)},n=function(e,t,n){var o,r,i,a,s=function(e){a.status=e,a.passed=[],a.failed=[],o&&(o.onload=null,o.onerror=null,o=null)},u=function(){for(var e=a.passed,t=e.length;t--;)e[t]();s(2)},l=function(){for(var e=a.failed,t=e.length;t--;)e[t]();s(3)},c=function(e,t){e()||((new Date).getTime()-i<p?We.setTimeout(t):l())},f=function(){c(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},f)},d=function(){c(function(){try{var e=r.sheet.cssRules;return u(),!!e}catch(t){}},d)};if(e=sn._addCacheSuffix(e),y[e]?a=y[e]:(a={passed:[],failed:[]},y[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"+v++,o.async=!1,o.defer=!1,i=(new Date).getTime(),g.contentCssCors&&(o.crossOrigin="anonymous"),"onload"in o&&!((h=j.navigator.userAgent.match(/WebKit\/(\d*)/))&&parseInt(h[1],10)<536))o.onload=f,o.onerror=l;else{if(0<j.navigator.userAgent.indexOf("Firefox"))return(r=m.createElement("style")).textContent='@import "'+e+'"',d(),void b(r);f()}var h;b(o),o.href=e}else l();else u()},t=function(t){return yo.nu(function(e){n(t,q(e,$(No.value(t))),q(e,$(No.error(t))))})},o=function(e){return e.fold(W,W)};return{load:n,loadAll:function(e,n,r){Co(X(e,t)).get(function(e){var t=Y(e,function(e){return e.isValue()});0<t.fail.length?r(t.fail.map(o)):n(t.pass.map(o))})}}}(a,{contentCssCors:s.contentCssCors}),f=[],d=s.schema?s.schema:xi({}),i=Si({url_converter:s.url_converter,url_converter_scope:s.url_converter_scope},s.schema),h=s.ownEvents?new tt:tt.Event,n=d.getBlockElements(),m=Un.overrideDefaults(function(){return{context:a,element:F.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},p=function(e){return"string"==typeof e&&(e=g(e)),m(e)},v=function(e,t,n){var r,o,i=p(e);return i.length&&(o=(r=u[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=p(e);r=i.attr(t),i.length&&((o=u[t])&&o.set?o.set(i,n,t):i.attr(t,n),r!==n&&s.onSetAttrib&&s.onSetAttrib({attrElm:i,attrName:t,attrValue:n}))},C=function(){return s.root_element||a.body},w=function(e,t){return mo.getPos(a.body,g(e),t)},x=function(e,t,n){var r=p(e);return n?r.css(t):("float"===(t=t.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}))&&(t=Fe.ie&&Fe.ie<12?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:undefined)},N=function(e){var t,n;return e=g(e),t=x(e,"width"),n=x(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(Ai.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<Ht(t,i[0].ownerDocument||i[0],null,i).length},S=function(e,t,n,r){var o,i=[],a=g(e);for(r=r===undefined,n=n||("BODY"!==C().nodeName?C().parentNode:null),sn.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},z=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},k=function(e,n,r){var o,t="string"==typeof e?g(e):e;if(!t)return!1;if(sn.isArray(t)&&(t.length||0===t.length))return o=[],zi(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)},T=function(e,t){p(e).each(function(e,n){zi(t,function(e,t){b(n,t,e)})})},A=function(e,r){var t=p(e);Ti?t.each(function(e,t){if(!1!==t.canHaveHTML){for(;t.firstChild;)t.removeChild(t.firstChild);try{t.innerHTML="<br>"+r,t.removeChild(t.firstChild)}catch(n){Un("<div></div>").html("<br>"+r).contents().slice(1).appendTo(t)}return r}}):t.html(r)},R=function(e,n,r,o,i){return k(e,function(e){var t="string"==typeof n?a.createElement(n):n;return T(t,r),o&&("string"!=typeof o&&o.nodeType?t.appendChild(o):"string"==typeof o&&A(t,o)),i?t:e.appendChild(t)})},M=function(e,t,n){return R(a.createElement(e),e,t,n,!0)},D=ui.decode,B=ui.encodeAllRaw,O=function(e,t){var n=p(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]},_=function(e,t,n){p(e).toggleClass(t,n).each(function(){""===this.className&&Un(this).attr("class",null)})},P=function(t,e,n){return k(e,function(e){return sn.is(e,"array")&&(t=t.cloneNode(!0)),n&&zi(ki(e.childNodes),function(e){t.appendChild(e)}),e.parentNode.replaceChild(t,e)})},H=function(){return a.createRange()},L=function(e,t,n,r){if(sn.isArray(e)){for(var o=e.length,i=[];o--;)i[o]=L(e[o],t,n,r);return i}return!s.collect||e!==a&&e!==c||f.push([e,t,n,r]),h.bind(e,t,n,r||F)},V=function(e,t,n){var r;if(sn.isArray(e)){r=e.length;for(var o=[];r--;)o[r]=V(e[r],t,n);return o}if(f&&(e===a||e===c))for(r=f.length;r--;){var i=f[r];e!==i[0]||t&&t!==i[1]||n&&n!==i[2]||h.unbind(i[0],i[1],i[2])}return h.unbind(e,t,n)},I=function(e){if(e&&_o.isElement(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},F={doc:a,settings:s,win:c,files:o,stdMode:!0,boxModel:!0,styleSheetLoader:e,boundEvents:f,styles:i,schema:d,events:h,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},$:m,$$:p,root:null,clone:function(t,e){if(!Ti||1!==t.nodeType||e)return t.cloneNode(e);if(e)return null;var n=a.createElement(t.nodeName);return zi(y(t),function(e){b(n,e.nodeName,v(t,e.nodeName))}),n},getRoot:C,getViewPort:function(e){var t=e||c,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=N(e),{x:t.x,y:t.y,w:n.w,h:n.h}},getSize:N,getParent:function(e,t,n){var r=S(e,t,n,!1);return r&&0<r.length?r[0]:null},getParents:S,get:g,getNext:function(e,t){return z(e,t,"nextSibling")},getPrev:function(e,t){return z(e,t,"previousSibling")},select:function(e,t){return Ht(e,g(t)||s.root_element||a,[])},is:E,add:R,create:M,createHTML:function(e,t,n){var r,o="";for(r in o+="<"+e,t)t.hasOwnProperty(r)&&null!==t[r]&&"undefined"!=typeof t[r]&&(o+=" "+r+'="'+B(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:O,setStyle:function(e,t,n){var r=K(t)?p(e).css(t,n):p(e).css(t);s.update_styles&&Di(i,r)},getStyle:x,setStyles:function(e,t){var n=p(e).css(t);s.update_styles&&Di(i,n)},removeAllAttribs:function(e){return k(e,function(e){var t,n=e.attributes;for(t=n.length-1;0<=t;t--)e.removeAttributeNode(n.item(t))})},setAttrib:b,setAttribs:T,getAttrib:v,getPos:w,parseStyle:function(e){return i.parse(e)},serializeStyle:function(e,t){return i.serialize(e,t)},addStyle:function(e){var t,n;if(F!==Oi.DOM&&a===j.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;F===Oi.DOM||a!==j.document?(e||(e=""),n=a.getElementsByTagName("head")[0],zi(e.split(","),function(e){var t;e=sn._addCacheSuffix(e),o[e]||(o[e]=!0,t=M("link",{rel:"stylesheet",href:e}),n.appendChild(t))})):Oi.DOM.loadCSS(e)},addClass:function(e,t){p(e).addClass(t)},removeClass:function(e,t){_(e,t,!1)},hasClass:function(e,t){return p(e).hasClass(t)},toggleClass:_,show:function(e){p(e).show()},hide:function(e){p(e).hide()},isHidden:function(e){return"none"===p(e).css("display")},uniqueId:function(e){return(e||"mce_")+t++},setHTML:A,getOuterHTML:function(e){var t="string"==typeof e?g(e):e;return _o.isElement(t)?t.outerHTML:Un("<div></div>").append(Un(t).clone()).html()},setOuterHTML:function(e,t){p(e).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}O(Un(this).html(t),!0)})},decode:D,encode:B,insertAfter:function(e,t){var r=g(t);return k(e,function(e){var t,n;return t=r.parentNode,(n=r.nextSibling)?t.insertBefore(e,n):t.appendChild(e),e})},replace:P,rename:function(t,e){var n;return t.nodeName!==e.toUpperCase()&&(n=M(e),zi(y(t),function(e){b(n,e.nodeName,v(t,e.nodeName))}),P(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 i.toHex(sn.trim(e))},run:k,getAttribs:y,isEmpty:function(e,t){var n,r,o,i,a=0;if(e=e.firstChild){var s=new Po(e,e.parentNode),u=d?d.getWhiteSpaceElements():{};t=t||(d?d.getNonEmptyElements():null);do{if(o=e.nodeType,_o.isElement(e)){var l=e.getAttribute("data-mce-bogus");if(l){e=s.next("all"===l);continue}if(i=e.nodeName.toLowerCase(),t&&t[i]){if("br"!==i)return!1;a++,e=s.next();continue}for(n=(r=y(e)).length;n--;)if("name"===(i=r[n].nodeName)||"data-mce-bookmark"===i)return!1}if(8===o)return!1;if(3===o&&!Ri.test(e.nodeValue))return!1;if(3===o&&e.parentNode&&u[e.parentNode.nodeName]&&Ri.test(e.nodeValue))return!1;e=s.next()}while(e)}return a<=1},createRng:H,nodeIndex:Bi,split:function(e,t,n){var r,o,i,a=H();if(e&&t)return a.setStart(e.parentNode,Bi(e)),a.setEnd(t.parentNode,Bi(t)),r=a.extractContents(),(a=H()).setStart(t.parentNode,Bi(t)+1),a.setEnd(e.parentNode,Bi(e)+1),o=a.extractContents(),(i=e.parentNode).insertBefore(Jo.trimNode(F,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(Jo.trimNode(F,o),e),O(e),n||t},bind:L,unbind:V,fire:function(e,t,n){return h.fire(e,t,n)},getContentEditable:I,getContentEditableParent:function(e){for(var t=C(),n=null;e&&e!==t&&null===(n=I(e));e=e.parentNode);return n},destroy:function(){if(f)for(var e=f.length;e--;){var t=f[e];h.unbind(t[0],t[1],t[2])}Ht.setDocument&&Ht.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 u=Mi(i,s,function(){return F}),F}(Ni=Oi||(Oi={})).DOM=Ni(j.document),Ni.nodeIndex=Bi;var _i=Oi,Pi=_i.DOM,Hi=sn.each,Li=sn.grep,Vi=function(){function e(){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0}return e.prototype.loadScript=function(e,t,n){var r,o,i=Pi;o=i.uniqueId(),(r=j.document.createElement("script")).id=o,r.type="text/javascript",r.src=sn._addCacheSuffix(e),r.onload=function(){i.remove(o),r&&(r.onreadystatechange=r.onload=r=null),t()},r.onerror=function(){O(n)?n():"undefined"!=typeof j.console&&j.console.log&&j.console.log("Failed to load script: "+e)},(j.document.getElementsByTagName("head")[0]||j.document.body).appendChild(r)},e.prototype.isDone=function(e){return 2===this.states[e]},e.prototype.markDone=function(e){this.states[e]=2},e.prototype.add=function(e,t,n,r){this.states[e]===undefined&&(this.queue.push(e),this.states[e]=0),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},e.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},e.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},e.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},e.prototype.loadScripts=function(n,e,t,r){var o,i=this,a=[],s=function(t,e){Hi(i.scriptLoadedCallbacks[e],function(e){O(e[t])&&e[t].call(e.scope)}),i.scriptLoadedCallbacks[e]=undefined};i.queueLoadedCallbacks.push({success:e,failure:r,scope:t||this}),(o=function(){var e=Li(n);if(n.length=0,Hi(e,function(e){2!==i.states[e]?3!==i.states[e]?1!==i.states[e]&&(i.states[e]=1,i.loading++,i.loadScript(e,function(){i.states[e]=2,i.loading--,s("success",e),o()},function(){i.states[e]=3,i.loading--,a.push(e),s("failure",e),o()})):s("failure",e):s("success",e)}),!i.loading){var t=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,Hi(t,function(e){0===a.length?O(e.success)&&e.success.call(e.scope):O(e.failure)&&e.failure.call(e.scope,a)})}})()},e.ScriptLoader=new e,e}(),Ii=function(){return(Ii=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Fi(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&&(n[r[o]]=e[r[o]])}return n}(function dE(e,t){function n(){this.constructor=e}Uh(e,t),e.prototype=null===t?Object.create(t):(t.prototype,new n)}),function hE(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Reflect.decorate(e,t,n,r);else for(var s=e.length-1;0<=s;s--)e[s]&&(i<3?o(a):3<i?o(t,n,a):o(t,n));return 3<i&&a&&Object.defineProperty(t,n,a),a},function mE(n,r){return function(e,t){r(e,t,n)}},function gE(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},function pE(i,a,s,u){return new(s||Promise)(function(e,t){function n(e){try{o(u.next(e))}catch(fE){t(fE)}}function r(e){try{o(u["throw"](e))}catch(fE){t(fE)}}function o(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,r)}o(u.apply(i,a||[]).next())})},function vE(r,o){var i,a,s,e,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t(0),t(1),t(2),"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){return function t(e){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(a&&(2&e[0]?a["return"]:e[0]?a["throw"]||(a["return"]&&s.call(a),0):a.next)&&!s.call(a,e[1]).done)return s;switch(s&&(e[0],s.value),e[0]){case 0:case 1:break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,e[1];continue;case 7:u.ops.pop(),u.trys.pop();continue;default:if(!(0<u.trys.length&&s[s.length-1]||6!==e[0]&&2!==e[0]))continue;if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){u.label=e[1];break}if(6===e[0]&&u.label<s[1]){u.label=s[1];break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(e);break}s[2]&&u.ops.pop(),u.trys.pop();continue}o.call(r,u)}catch(fE){}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([n,e])}}},function yE(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])},function bE(){for(var e=[],t=0;t<arguments.length;t++)e.concat(di(arguments[t]));return e},function CE(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),a=[];return r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o;function r(r){i[r]&&(o[r]=function(n){return new Promise(function(e,t){1<a.push([r,n,e,t])||s(r,n)})})}function s(e,t){try{!function n(e){e.value instanceof fi?Promise.resolve(e.value.v).then(u,l):c(a[0][2],e)}(i[e](t))}catch(fE){c(a[0][3],fE)}}function u(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}},function wE(r){var e,o;return t("next"),t("throw",function(e){throw e}),t("return"),e[Symbol.iterator]=function(){return this},e;function t(t,n){e[t]=r[t]?function(e){return o?n?n(e):e:{value:fi(r[t](e)),done:"return"===t}}:n}},function xE(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=i[Symbol.asyncIterator];return t?t.call(i):(ci(),n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=i[r]&&function(n){return new Promise(function(e,t){!function o(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}(e,t,i[r](n).done,n.value)})}}},function NE(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},function EE(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t},function SE(e){return e&&e.__esModule?e:{"default":e}};var Ui,ji=function(e){var t=e,n=function(){return t};return{get:n,set:function(e){t=e},clone:function(){return ji(n())}}},qi={},$i=ji("en"),Wi={getData:function(){return Ar(qi,function(e){return Ii({},e)})},setCode:function(e){e&&$i.set(e)},getCode:function(){return $i.get()},add:function(e,t){var n=qi[e];for(var r in n||(qi[e]=n={}),t)n[r.toLowerCase()]=t[r]},translate:function(e){var t,n,r=qi[$i.get()]||{},o=function(e){return O(e)?Object.prototype.toString.call(e):i(e)?"":""+e},i=function(e){return""===e||null===e||e===undefined},a=function(e){var t=o(e),n=t.toLowerCase();return Br(r,n)?o(r[n]):t},s=function(e){return e.replace(/{context:\w+}$/,"")},u=function(e){return e};if(i(e))return u("");if(R(t=e)&&Br(t,"raw"))return u(o(e.raw));if(M(n=e)&&1<n.length){var l=e.slice(1);return u(s(a(e[0]).replace(/\{([0-9]+)\}/g,function(e,t){return Br(l,t)?o(l[t]):e})))}return u(s(a(e)))},isRtl:function(){return Dr(qi,$i.get()).bind(function(e){return Dr(e,"_dir")}).exists(function(e){return"rtl"===e})},hasCode:function(e){return Br(qi,e)}},Ki=sn.each;function Xi(){var r=this,o=[],a={},s={},i=[],u=function(e){var t;return s[e]&&(t=s[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=u(e);Ki(o,function(e){var t=l(n,e);f(t.resource,t,undefined,undefined)}),t&&(r?t.call(r):t.call(Vi))},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=Xi.baseURL+"/"+i),a[e]=i.substring(0,i.lastIndexOf("/")),s[e]?c(e,t,n,r):Vi.ScriptLoader.add(i,function(){return c(e,t,n,r)},r,o)}};return{items:o,urls:a,lookup:s,_listeners:i,get:function(e){return s[e]?s[e].instance:undefined},dependencies:u,requireLangPack:function(e,t){var n=Wi.getCode();if(n&&!1!==Xi.languageLoad){if(t)if(-1!==(t=","+t+",").indexOf(","+n.substr(0,2)+","))n=n.substr(0,2);else if(-1===t.indexOf(","+n+","))return;Vi.ScriptLoader.add(a[e]+"/langs/"+n+".js")}},add:function(t,e,n){o.push(e),s[t]={instance:e,dependencies:n};var r=Y(i,function(e){return e.name===t});return i=r.fail,Ki(r.pass,function(e){e.callback()}),e},remove:function(e){delete a[e],delete s[e]},createUrl:l,addComponents:function(e,t){var n=r.urls[e];Ki(t,function(e){Vi.ScriptLoader.add(n+"/"+e)})},load:f,waitFor:function(e,t){s.hasOwnProperty(e)?t():i.push({name:e,callback:t})}}}(Ui=Xi||(Xi={})).PluginManager=Ui(),Ui.ThemeManager=Ui();var Yi=Xi,Gi=function(t,n){to(t).each(function(e){e.dom().insertBefore(n.dom(),t.dom())})},Ji=function(e,t){oo(e).fold(function(){to(e).each(function(e){Zi(e,t)})},function(e){Gi(e,t)})},Qi=function(t,n){lo(t).fold(function(){Zi(t,n)},function(e){t.dom().insertBefore(n.dom(),e.dom())})},Zi=function(e,t){e.dom().appendChild(t.dom())},ea=function(t,e){I(e,function(e){Zi(t,e)})},ta=function(e){e.dom().textContent="",I(so(e),function(e){na(e)})},na=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},ra=function(e){var t,n=so(e);0<n.length&&(t=e,I(n,function(e){Gi(t,e)})),na(e)},oa=function(n,r){var o=null;return{cancel:function(){null!==o&&(j.clearTimeout(o),o=null)},throttle:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null===o&&(o=j.setTimeout(function(){n.apply(null,e),o=null},r))}}},ia=function(e,t){var n=Hr(e,t);return n===undefined||""===n?[]:n.split(" ")},aa=function(e){return e.dom().classList!==undefined},sa=function(e){return ia(e,"class")},ua=function(e,t){return o=t,i=ia(n=e,r="class").concat([o]),_r(n,r,i.join(" ")),!0;var n,r,o,i},la=function(e,t){return o=t,0<(i=U(ia(n=e,r="class"),function(e){return e!==o})).length?_r(n,r,i.join(" ")):Lr(n,r),!1;var n,r,o,i},ca=function(e,t){aa(e)?e.dom().classList.add(t):ua(e,t)},fa=function(e,t){var n;aa(e)?e.dom().classList.remove(t):la(e,t),0===(aa(n=e)?n.dom().classList:sa(n)).length&&Lr(n,"class")},da=function(e,t){return aa(e)&&e.dom().classList.contains(t)},ha=function(e,t){var n=[];return I(so(e),function(e){t(e)&&(n=n.concat([e])),n=n.concat(ha(e,t))}),n},ma=function(e,t){return Jr(t,e)};function ga(e,t,n,r,o){return e(n,r)?T.some(n):O(o)&&o(n)?T.none():t(n,r,o)}var pa,va=function(e,t,n){for(var r=e.dom(),o=O(n)?n:$(!1);r.parentNode;){r=r.parentNode;var i=yr.fromDom(r);if(t(i))return T.some(i);if(o(i))break}return T.none()},ya=function(e,t,n){return ga(function(e){return t(e)},va,e,t,n)},ba=function(e,t,n){return va(e,function(e){return Yr(e,t)},n)},Ca=function(e,t){return n=t,o=(r=e)===undefined?j.document:r.dom(),Gr(o)?T.none():T.from(o.querySelector(n)).map(yr.fromDom);var n,r,o},wa=function(e,t,n){return ga(Yr,ba,e,t,n)},xa=$("mce-annotation"),Na=$("data-mce-annotation"),Ea=$("data-mce-annotation-uid"),Sa=function(r,e){var t=r.selection.getRng(),n=yr.fromDom(t.startContainer),o=yr.fromDom(r.getBody()),i=e.fold(function(){return"."+xa()},function(e){return"["+Na()+'="'+e+'"]'}),a=uo(n,t.startOffset).getOr(n),s=wa(a,i,function(e){return Qr(e,o)}),u=function(e,t){return n=t,(r=e.dom())&&r.hasAttribute&&r.hasAttribute(n)?T.some(Hr(e,t)):T.none();var n,r};return s.bind(function(e){return u(e,""+Ea()).bind(function(n){return u(e,""+Na()).map(function(e){var t=za(r,n);return{uid:n,name:e,elements:t}})})})},za=function(e,t){var n=yr.fromDom(e.getBody());return ma(n,"["+Ea()+'="'+t+'"]')},ka=function(n,e){var r,o,i,a=ji({}),l=function(e,t){s(e,function(e){return t(e),e})},s=function(e,t){var n=a.get(),r=t(n.hasOwnProperty(e)?n[e]:{listeners:[],previous:ji(T.none())});n[e]=r,a.set(n)},t=(r=function(){var e=a.get(),t=le(zr(e));I(t,function(e){s(e,function(s){var u=s.previous.get();return Sa(n,T.some(e)).fold(function(){var t;u.isSome()&&(l(t=e,function(e){I(e.listeners,function(e){return e(!1,t)})}),s.previous.set(T.none()))},function(e){var t,n,r,o=e.uid,i=e.name,a=e.elements;u.is(o)||(n=o,r=a,l(t=i,function(e){I(e.listeners,function(e){return e(!0,t,{uid:n,nodes:X(r,function(e){return e.dom()})})})}),s.previous.set(T.some(o)))}),{previous:s.previous,listeners:s.listeners}})})},o=30,i=null,{cancel:function(){null!==i&&(j.clearTimeout(i),i=null)},throttle:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null!==i&&j.clearTimeout(i),i=j.setTimeout(function(){r.apply(null,e),i=null},o)}});return n.on("remove",function(){t.cancel()}),n.on("NodeChange",function(){t.throttle()}),{addListener:function(e,t){s(e,function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}})}}},Ta=function(e,n){e.on("init",function(){e.serializer.addNodeFilter("span",function(e){I(e,function(t){var e;(e=t,T.from(e.attr(Na())).bind(n.lookup)).each(function(e){!1===e.persistent&&t.unwrap()})})})})},Aa=0,Ra=function(e,t){return yr.fromDom(e.dom().cloneNode(t))},Ma=function(e){return Ra(e,!1)},Da=function(e){return Ra(e,!0)},Ba=function(e,t){var n,r,o=eo(e).dom(),i=yr.fromDom(o.createDocumentFragment()),a=(n=t,(r=(o||j.document).createElement("div")).innerHTML=n,so(yr.fromDom(r)));ea(i,a),ta(e),Zi(e,i)},Oa="\ufeff",_a=function(e){return e===Oa},Pa=Oa,Ha=function(e){return e.replace(new RegExp(Oa,"g"),"")},La=_o.isElement,Va=_o.isText,Ia=function(e){return Va(e)&&(e=e.parentNode),La(e)&&e.hasAttribute("data-mce-caret")},Fa=function(e){return Va(e)&&_a(e.data)},Ua=function(e){return Ia(e)||Fa(e)},ja=function(e){return e.firstChild!==e.lastChild||!_o.isBr(e.firstChild)},qa=function(e,t){var n,r,o;if(r=e.ownerDocument.createTextNode(Pa),o=e.parentNode,t){if(n=e.previousSibling,Va(n)){if(Ua(n))return n;if(Ya(n))return n.splitText(n.data.length-1)}o.insertBefore(r,e)}else{if(n=e.nextSibling,Va(n)){if(Ua(n))return n;if(Xa(n))return n.splitText(1),n}e.nextSibling?o.insertBefore(r,e.nextSibling):o.appendChild(r)}return r},$a=function(e){var t=e.container();return!(!e||!_o.isText(t))&&(t.data.charAt(e.offset())===Pa||e.isAtStart()&&Fa(t.previousSibling))},Wa=function(e){var t=e.container();return!(!e||!_o.isText(t))&&(t.data.charAt(e.offset()-1)===Pa||e.isAtEnd()&&Fa(t.nextSibling))},Ka=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=j.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},Xa=function(e){return Va(e)&&e.data[0]===Pa},Ya=function(e){return Va(e)&&e.data[e.data.length-1]===Pa},Ga=function(e){return e&&e.hasAttribute("data-mce-caret")?(t=e.getElementsByTagName("br"),n=t[t.length-1],_o.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},Ja=function(e){return Ia(e.startContainer)},Qa=_o.isContentEditableTrue,Za=_o.isContentEditableFalse,es=_o.isBr,ts=_o.isText,ns=_o.matchNodeNames("script style textarea"),rs=_o.matchNodeNames("img input textarea hr iframe video audio object"),os=_o.matchNodeNames("table"),is=Ua,as=function(e){return!is(e)&&(ts(e)?!ns(e.parentNode):rs(e)||es(e)||os(e)||ss(e))},ss=function(e){return!1===(t=e,_o.isElement(t)&&"true"===t.getAttribute("unselectable"))&&Za(e);var t},us=function(e,t){return as(e)&&function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(ss(e))return!1;if(Qa(e))return!0}return!0}(e,t)},ls=Math.round,cs=function(e){return e?{left:ls(e.left),top:ls(e.top),bottom:ls(e.bottom),right:ls(e.right),width:ls(e.width),height:ls(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},fs=function(e,t){return e=cs(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},ds=function(e,t,n){return 0<=e&&e<=Math.min(t.height,n.height)/2},hs=function(e,t){return e.bottom-e.height/2<t.top||!(e.top>t.bottom)&&ds(t.top-e.bottom,e,t)},ms=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&ds(t.bottom-e.top,e,t)},gs=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},ps=function(e,t){return 1===e.nodeType&&e.hasChildNodes()&&(t>=e.childNodes.length&&(t=e.childNodes.length-1),e=e.childNodes[t]),e},vs=new RegExp("[\u0300-\u036f\u0483-\u0487\u0488-\u0489\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7-\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962-\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2-\u09e3\u0a01-\u0a02\u0a3c\u0a41-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a70-\u0a71\u0a75\u0a81-\u0a82\u0abc\u0ac1-\u0ac5\u0ac7-\u0ac8\u0acd\u0ae2-\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62-\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c00\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c62-\u0c63\u0c81\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc-\u0ccd\u0cd5-\u0cd6\u0ce2-\u0ce3\u0d01\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62-\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb-\u0ebc\u0ec8-\u0ecd\u0f18-\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86-\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039-\u103a\u103d-\u103e\u1058-\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17b4-\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193b\u1a17-\u1a18\u1a1b\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1ab0-\u1abd\u1abe\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80-\u1b81\u1ba2-\u1ba5\u1ba8-\u1ba9\u1bab-\u1bad\u1be6\u1be8-\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8-\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u200c-\u200d\u20d0-\u20dc\u20dd-\u20e0\u20e1\u20e2-\u20e4\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u302e-\u302f\u3099-\u309a\ua66f\ua670-\ua672\ua674-\ua67d\ua69e-\ua69f\ua6f0-\ua6f1\ua802\ua806\ua80b\ua825-\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\ua9e5\uaa29-\uaa2e\uaa31-\uaa32\uaa35-\uaa36\uaa43\uaa4c\uaa7c\uaab0\uaab2-\uaab4\uaab7-\uaab8\uaabe-\uaabf\uaac1\uaaec-\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\uff9e-\uff9f]"),ys=function(e){return"string"==typeof e&&768<=e.charCodeAt(0)&&vs.test(e)},bs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];if(!o.isSome())return T.none();n.push(o.getOrDie())}return T.some(t.apply(null,n))},Cs=[].slice,ws=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Cs.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(!n[t](e))return!1;return!0}},xs=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Cs.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(n[t](e))return!0;return!1}},Ns=_o.isElement,Es=as,Ss=_o.matchStyleValues("display","block table"),zs=_o.matchStyleValues("float","left right"),ks=ws(Ns,Es,b(zs)),Ts=b(_o.matchStyleValues("white-space","pre pre-line pre-wrap")),As=_o.isText,Rs=_o.isBr,Ms=_i.nodeIndex,Ds=ps,Bs=function(e){return"createRange"in e?e.createRange():_i.DOM.createRng()},Os=function(e){return e&&/[\r\n\t ]/.test(e)},_s=function(e){return!!e.setStart&&!!e.setEnd},Ps=function(e){var t,n=e.startContainer,r=e.startOffset;return!!(Os(e.toString())&&Ts(n.parentNode)&&_o.isText(n)&&(t=n.data,Os(t[r-1])||Os(t[r+1])))},Hs=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Ls=function(e){var t,n,r,o,i,a,s,u;return t=0<(n=e.getClientRects()).length?cs(n[0]):cs(e.getBoundingClientRect()),!_s(e)&&Rs(e)&&Hs(t)?(i=(r=e).ownerDocument,a=Bs(i),s=i.createTextNode("\xa0"),(u=r.parentNode).insertBefore(s,r),a.setStart(s,0),a.setEnd(s,1),o=cs(a.getBoundingClientRect()),u.removeChild(s),o):Hs(t)&&_s(e)?function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,o=e.endOffset;if(t===n&&_o.isText(n)&&0===r&&1===o){var i=e.cloneRange();return i.setEndAfter(n),Ls(i)}return null}(e):t},Vs=function(e,t){var n=fs(e,t);return n.width=1,n.right=n.left+1,n},Is=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=Bs(e.ownerDocument);if(t<e.data.length){if(ys(e.data[t]))return r;if(ys(e.data[t-1])&&(n.setStart(e,t),n.setEnd(e,t+1),!Ps(n)))return o(Vs(Ls(n),!1)),r}0<t&&(n.setStart(e,t-1),n.setEnd(e,t),Ps(n)||o(Vs(Ls(n),!1))),t<e.data.length&&(n.setStart(e,t),n.setEnd(e,t+1),Ps(n)||o(Vs(Ls(n),!0)))};if(As(e.container()))return i(e.container(),e.offset()),r;if(Ns(e.container()))if(e.isAtEnd())n=Ds(e.container(),e.offset()),As(n)&&i(n,n.data.length),ks(n)&&!Rs(n)&&o(Vs(Ls(n),!1));else{if(n=Ds(e.container(),e.offset()),As(n)&&i(n,0),ks(n)&&e.isAtEnd())return o(Vs(Ls(n),!1)),r;t=Ds(e.container(),e.offset()-1),ks(t)&&!Rs(t)&&(Ss(t)||Ss(n)||!ks(n))&&o(Vs(Ls(t),!1)),ks(n)&&o(Vs(Ls(n),!0))}return r};function Fs(t,n,e){var r=function(){return e||(e=Is(Fs(t,n))),e};return{container:$(t),offset:$(n),toRange:function(){var e;return(e=Bs(t.ownerDocument)).setStart(t,n),e.setEnd(t,n),e},getClientRects:r,isVisible:function(){return 0<r().length},isAtStart:function(){return As(t),0===n},isAtEnd:function(){return As(t)?n>=t.data.length:n>=t.childNodes.length},isEqual:function(e){return e&&t===e.container()&&n===e.offset()},getNode:function(e){return Ds(t,e?n-1:n)}}}(pa=Fs||(Fs={})).fromRangeStart=function(e){return pa(e.startContainer,e.startOffset)},pa.fromRangeEnd=function(e){return pa(e.endContainer,e.endOffset)},pa.after=function(e){return pa(e.parentNode,Ms(e)+1)},pa.before=function(e){return pa(e.parentNode,Ms(e))},pa.isAbove=function(e,t){return bs([ce(t.getClientRects()),fe(e.getClientRects())],hs).getOr(!1)},pa.isBelow=function(e,t){return bs([fe(t.getClientRects()),ce(e.getClientRects())],ms).getOr(!1)},pa.isAtStart=function(e){return!!e&&e.isAtStart()},pa.isAtEnd=function(e){return!!e&&e.isAtEnd()},pa.isTextPosition=function(e){return!!e&&_o.isText(e.container())},pa.isElementPosition=function(e){return!1===pa.isTextPosition(e)};var Us,js,qs=Fs,$s=_o.isText,Ws=_o.isBogus,Ks=_i.nodeIndex,Xs=function(e){var t=e.parentNode;return Ws(t)?Xs(t):t},Ys=function(e){return e?tn.reduce(e.childNodes,function(e,t){return Ws(t)&&"BR"!==t.nodeName?e=e.concat(Ys(t)):e.push(t),e},[]):[]},Gs=function(t){return function(e){return t===e}},Js=function(e){var t,r,n,o;return($s(e)?"text()":e.nodeName.toLowerCase())+"["+(r=Ys(Xs(t=e)),n=tn.findIndex(r,Gs(t),t),r=r.slice(0,n+1),o=tn.reduce(r,function(e,t,n){return $s(t)&&$s(r[n-1])&&e++,e},0),r=tn.filter(r,_o.matchNodeNames(t.nodeName)),(n=tn.findIndex(r,Gs(t),t))-o)+"]"},Qs=function(e,t){var n,r,o,i,a,s=[];return n=t.container(),r=t.offset(),$s(n)?o=function(e,t){for(;(e=e.previousSibling)&&$s(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]),s.push(Js(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=tn.filter(a,b(_o.isBogus)),(s=s.concat(tn.map(a,function(e){return Js(e)}))).reverse().join("/")+","+o},Zs=function(e,t){var n,r,o;return t?(t=(n=t.split(","))[0].split("/"),o=1<n.length?n[1]:"before",(r=tn.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=Ys(n),i=tn.filter(i,function(e,t){return!$s(e)||!$s(i[t-1])}),(i=tn.filter(i,_o.matchNodeNames(r)))[o]):null;var n,r,o,i},e))?$s(r)?function(e,t){for(var n,r=e,o=0;$s(r);){if(n=r.data.length,o<=t&&t<=o+n){e=r,t-=o;break}if(!$s(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return $s(e)&&t>e.data.length&&(t=e.data.length),qs(e,t)}(r,parseInt(o,10)):(o="after"===o?Ks(r)+1:Ks(r),qs(r.parentNode,o)):null):null},eu=function(e,t){_o.isText(t)&&0===t.data.length&&e.remove(t)},tu=function(e,t,n){var r,o,i,a,s,u,l;_o.isDocumentFragment(n)?(i=e,a=t,s=n,u=T.from(s.firstChild),l=T.from(s.lastChild),a.insertNode(s),u.each(function(e){return eu(i,e.previousSibling)}),l.each(function(e){return eu(i,e.nextSibling)})):(r=e,o=n,t.insertNode(o),eu(r,o.previousSibling),eu(r,o.nextSibling))},nu=_o.isContentEditableFalse,ru=function(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],s=r[o?"startOffset":"endOffset"],u=[],l=0,c=e.getRoot();for(_o.isText(a)?u.push(n?function(e,t,n){var r,o;for(o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&_o.isText(r);r=r.previousSibling)o+=e(r.data).length;return o}(t,a,s):s):(s>=(i=a.childNodes).length&&i.length&&(l=1,s=Math.max(0,i.length-1)),u.push(e.nodeIndex(i[s],n)+l));a&&a!==c;a=a.parentNode)u.push(e.nodeIndex(a,n));return u},ou=function(e,t,n){var r=0;return sn.each(e.select(t),function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++}),r},iu=function(e,t){var n,r,o,i=t?"start":"end";n=e[i+"Container"],r=e[i+"Offset"],_o.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))},au=function(e){return iu(e,!0),iu(e,!1),e},su=function(e,t){var n;if(_o.isElement(e)&&(e=ps(e,t),nu(e)))return e;if(Ua(e)){if(_o.isText(e)&&Ia(e)&&(e=e.parentNode),n=e.previousSibling,nu(n))return n;if(n=e.nextSibling,nu(n))return n}},uu=function(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(nu(r)||"IMG"===o)return{name:o,index:ou(n.dom,o,r)};var a,s,u,l,c,f,d,h=su((a=i).startContainer,a.startOffset)||su(a.endContainer,a.endOffset);return h?{name:o=h.tagName,index:ou(n.dom,o,h)}:(s=e,l=t,c=i,f=(u=n).dom,(d={}).start=ru(f,s,l,c,!0),u.isCollapsed()||(d.end=ru(f,s,l,c,!1)),d)},lu=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)},cu=function(e,t){var n=e.dom,r=e.getRng(),o=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),s=a.nodeName;if("IMG"===s)return{name:s,index:ou(n,s,a)};var u=au(r.cloneRange());if(!i){u.collapse(!1);var l=lu(n,o+"_end",t);tu(n,u,l)}(r=au(r)).collapse(!0);var c=lu(n,o+"_start",t);return tu(n,r,c),e.moveToBookmark({id:o,keep:1}),{id:o}},fu={getBookmark:function(e,t,n){return 2===t?uu(Ha,n,e):3===t?(o=(r=e).getRng(),{start:Qs(r.dom.getRoot(),qs.fromRangeStart(o)),end:Qs(r.dom.getRoot(),qs.fromRangeEnd(o))}):t?{rng:e.getRng()}:cu(e,!1);var r,o},getUndoBookmark:d(uu,W,!0),getPersistentBookmark:cu},du="_mce_caret",hu=function(e){return _o.isElement(e)&&e.id===du},mu=function(e,t){for(;t&&t!==e;){if(t.id===du)return t;t=t.parentNode}return null},gu=_o.isElement,pu=_o.isText,vu=function(e){var t=e.parentNode;t&&t.removeChild(e)},yu=function(e,t){0===t.length?vu(e):e.nodeValue=t},bu=function(e){var t=Ha(e);return{count:e.length-t.length,text:t}},Cu=function(e,t){return Nu(e),t},wu=function(e,t){return pu(e)&&t.container()===e?(r=t,o=bu((n=e).data.substr(0,r.offset())),i=bu(n.data.substr(r.offset())),0<(a=o.text+i.text).length?(yu(n,a),qs(n,r.offset()-o.count)):r):Cu(e,t);var n,r,o,i,a},xu=function(e,t){return t.container()===e.parentNode?(n=e,o=(r=t).container(),i=H(de(o.childNodes),n).map(function(e){return e<r.offset()?qs(o,r.offset()-1):r}).getOr(r),Nu(n),i):Cu(e,t);var n,r,o,i},Nu=function(e){if(gu(e)&&Ua(e)&&(ja(e)?e.removeAttribute("data-mce-caret"):vu(e)),pu(e)){var t=Ha(function(e){try{return e.nodeValue}catch(t){return""}}(e));yu(e,t)}},Eu={removeAndReposition:function(e,t){return qs.isTextPosition(t)?wu(e,t):xu(e,t)},remove:Nu},Su=pr.detect().browser,zu=_o.isContentEditableFalse,ku=function(e,t,n){var r,o,i,a,s,u=fs(t.getBoundingClientRect(),n);return i="BODY"===e.tagName?(r=e.ownerDocument.documentElement,o=e.scrollLeft||r.scrollLeft,e.scrollTop||r.scrollTop):(s=e.getBoundingClientRect(),o=e.scrollLeft-s.left,e.scrollTop-s.top),u.left+=o,u.right+=o,u.top+=i,u.bottom+=i,u.width=1,0<(a=t.offsetWidth-t.clientWidth)&&(n&&(a*=-1),u.left+=a,u.right+=a),u},Tu=function(a,s,e){var t,u,l=ji(T.none()),c=function(){!function(e){var t,n,r,o,i;for(t=Un("*[contentEditable=false]",e),o=0;o<t.length;o++)r=(n=t[o]).previousSibling,Ya(r)&&(1===(i=r.data).length?r.parentNode.removeChild(r):r.deleteData(i.length-1,1)),r=n.nextSibling,Xa(r)&&(1===(i=r.data).length?r.parentNode.removeChild(r):r.deleteData(0,1))}(a),u&&(Eu.remove(u),u=null),l.get().each(function(e){Un(e.caret).remove(),l.set(T.none())}),We.clearInterval(t)},f=function(){t=We.setInterval(function(){e()?Un("div.mce-visual-caret",a).toggleClass("mce-visual-caret-hidden"):Un("div.mce-visual-caret",a).addClass("mce-visual-caret-hidden")},500)};return{show:function(t,e){var n,r,o;if(c(),o=e,_o.isElement(o)&&/^(TD|TH)$/i.test(o.tagName))return null;if(!s(e))return u=qa(e,t),r=e.ownerDocument.createRange(),zu(u.nextSibling)?(r.setStart(u,0),r.setEnd(u,0)):(r.setStart(u,1),r.setEnd(u,1)),r;u=Ka("p",e,t),n=ku(a,e,t),Un(u).css("top",n.top);var i=Un('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(n).appendTo(a)[0];return l.set(T.some({caret:i,element:e,before:t})),l.get().each(function(e){t&&Un(e.caret).addClass("mce-visual-caret-before")}),f(),(r=e.ownerDocument.createRange()).setStart(u,0),r.setEnd(u,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=ku(a,e.element,e.before);Un(e.caret).css(Ii({},t))})},destroy:function(){return We.clearInterval(t)}}},Au=function(){return Su.isIE()||Su.isEdge()||Su.isFirefox()},Ru=function(e){return zu(e)||_o.isTable(e)&&Au()},Mu=_o.isContentEditableFalse,Du=_o.matchStyleValues("display","block table table-cell table-caption list-item"),Bu=Ua,Ou=Ia,_u=_o.isElement,Pu=as,Hu=function(e){return 0<e},Lu=function(e){return e<0},Vu=function(e,t){for(var n;n=e(t);)if(!Ou(n))return n;return null},Iu=function(e,t,n,r,o){var i=new Po(e,r);if(Lu(t)){if((Mu(e)||Ou(e))&&n(e=Vu(i.prev,!0)))return e;for(;e=Vu(i.prev,o);)if(n(e))return e}if(Hu(t)){if((Mu(e)||Ou(e))&&n(e=Vu(i.next,!0)))return e;for(;e=Vu(i.next,o);)if(n(e))return e}return null},Fu=function(e,t){for(;e&&e!==t;){if(Du(e))return e;e=e.parentNode}return null},Uu=function(e,t,n){return Fu(e.container(),n)===Fu(t.container(),n)},ju=function(e,t){var n,r;return t?(n=t.container(),r=t.offset(),_u(n)?n.childNodes[r+e]:null):null},qu=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},$u=function(e,t,n){var r,o,i,a;for(o=e?"previousSibling":"nextSibling";n&&n!==t;){if(r=n[o],Bu(r)&&(r=r[o]),Mu(r)){if(a=n,Fu(r,i=t)===Fu(a,i))return r;break}if(Pu(r))break;n=n.parentNode}return null},Wu=d(qu,!0),Ku=d(qu,!1),Xu=function(e,t,n){var r,o,i,a,s=d($u,!0,t),u=d($u,!1,t);if(o=n.startContainer,i=n.startOffset,Ia(o)){if(_u(o)||(o=o.parentNode),"before"===(a=o.getAttribute("data-mce-caret"))&&(r=o.nextSibling,Ru(r)))return Wu(r);if("after"===a&&(r=o.previousSibling,Ru(r)))return Ku(r)}if(!n.collapsed)return n;if(_o.isText(o)){if(Bu(o)){if(1===e){if(r=u(o))return Wu(r);if(r=s(o))return Ku(r)}if(-1===e){if(r=s(o))return Ku(r);if(r=u(o))return Wu(r)}return n}if(Ya(o)&&i>=o.data.length-1)return 1===e&&(r=u(o))?Wu(r):n;if(Xa(o)&&i<=1)return-1===e&&(r=s(o))?Ku(r):n;if(i===o.data.length)return(r=u(o))?Wu(r):n;if(0===i)return(r=s(o))?Ku(r):n}return n},Yu=function(e,t){return T.from(ju(e?0:-1,t)).filter(Mu)},Gu=function(e,t,n){var r=Xu(e,t,n);return-1===e?Fs.fromRangeStart(r):Fs.fromRangeEnd(r)},Ju=function(e){return T.from(e.getNode()).map(yr.fromDom)},Qu=function(e,t){for(;t=e(t);)if(t.isVisible())return t;return t},Zu=function(e,t){var n=Uu(e,t);return!(n||!_o.isBr(e.getNode()))||n};(js=Us||(Us={}))[js.Backwards=-1]="Backwards",js[js.Forwards=1]="Forwards";var el=_o.isContentEditableFalse,tl=_o.isText,nl=_o.isElement,rl=_o.isBr,ol=as,il=function(e){return rs(e)||!!ss(t=e)&&!0!==J(de(t.getElementsByTagName("*")),function(e,t){return e||Qa(t)},!1);var t},al=us,sl=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},ul=function(e,t){if(Hu(e)){if(ol(t.previousSibling)&&!tl(t.previousSibling))return qs.before(t);if(tl(t))return qs(t,0)}if(Lu(e)){if(ol(t.nextSibling)&&!tl(t.nextSibling))return qs.after(t);if(tl(t))return qs(t,t.data.length)}return Lu(e)?rl(t)?qs.before(t):qs.after(t):qs.before(t)},ll=function(e,t,n){var r,o,i,a,s;if(!nl(n)||!t)return null;if(t.isEqual(qs.after(n))&&n.lastChild){if(s=qs.after(n.lastChild),Lu(e)&&ol(n.lastChild)&&nl(n.lastChild))return rl(n.lastChild)?qs.before(n.lastChild):s}else s=t;var u,l,c,f=s.container(),d=s.offset();if(tl(f)){if(Lu(e)&&0<d)return qs(f,--d);if(Hu(e)&&d<f.length)return qs(f,++d);r=f}else{if(Lu(e)&&0<d&&(o=sl(f,d-1),ol(o)))return!il(o)&&(i=Iu(o,e,al,o))?tl(i)?qs(i,i.data.length):qs.after(i):tl(o)?qs(o,o.data.length):qs.before(o);if(Hu(e)&&d<f.childNodes.length&&(o=sl(f,d),ol(o)))return rl(o)?(u=n,(c=(l=o).nextSibling)&&ol(c)?tl(c)?qs(c,0):qs.before(c):ll(Us.Forwards,qs.after(l),u)):!il(o)&&(i=Iu(o,e,al,o))?tl(i)?qs(i,0):qs.before(i):tl(o)?qs(o,0):qs.after(o);r=o||s.getNode()}return(Hu(e)&&s.isAtEnd()||Lu(e)&&s.isAtStart())&&(r=Iu(r,e,$(!0),n,!0),al(r,n))?ul(e,r):(o=Iu(r,e,al,n),!(a=tn.last(U(function(e,t){for(var n=[];e&&e!==t;)n.push(e),e=e.parentNode;return n}(f,n),el)))||o&&a.contains(o)?o?ul(e,o):null:s=Hu(e)?qs.after(a):qs.before(a))},cl=function(t){return{next:function(e){return ll(Us.Forwards,e,t)},prev:function(e){return ll(Us.Backwards,e,t)}}},fl=function(e){return qs.isTextPosition(e)?0===e.offset():as(e.getNode())},dl=function(e){if(qs.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return as(e.getNode(!0))},hl=function(e,t){return!qs.isTextPosition(e)&&!qs.isTextPosition(t)&&e.getNode()===t.getNode(!0)},ml=function(e,t,n){return e?!hl(t,n)&&(r=t,!(!qs.isTextPosition(r)&&_o.isBr(r.getNode())))&&dl(t)&&fl(n):!hl(n,t)&&fl(t)&&dl(n);var r},gl=function(e,t,n){var r=cl(t);return T.from(e?r.next(n):r.prev(n))},pl=function(t,n,r){return gl(t,n,r).bind(function(e){return Uu(r,e,n)&&ml(t,r,e)?gl(t,n,e):T.some(e)})},vl=function(t,n,e,r){return pl(t,n,e).bind(function(e){return r(e)?vl(t,n,e,r):T.some(e)})},yl=function(e,t){var n,r,o,i,a,s=e?t.firstChild:t.lastChild;return _o.isText(s)?T.some(qs(s,e?0:s.data.length)):s?as(s)?T.some(e?qs.before(s):(a=s,_o.isBr(a)?qs.before(a):qs.after(a))):(r=t,o=s,i=(n=e)?qs.before(o):qs.after(o),gl(n,r,i)):T.none()},bl=d(gl,!0),Cl=d(gl,!1),wl={fromPosition:gl,nextPosition:bl,prevPosition:Cl,navigate:pl,navigateIgnore:vl,positionIn:yl,firstPositionIn:d(yl,!0),lastPositionIn:d(yl,!1)},xl=function(e,t){return!e.isBlock(t)||t.innerHTML||Fe.ie||(t.innerHTML='<br data-mce-bogus="1" />'),t},Nl=function(e,t){return wl.lastPositionIn(e).fold(function(){return!1},function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0})},El=function(e,t,n){return!(!1!==t.hasChildNodes()||!mu(e,t)||(o=n,i=(r=t).ownerDocument.createTextNode(Pa),r.appendChild(i),o.setStart(i,0),o.setEnd(i,0),0));var r,o,i},Sl=function(e,t,n,r){var o,i,a,s,u=n[t?"start":"end"],l=e.getRoot();if(u){for(a=u[0],i=l,o=u.length-1;1<=o;o--){if(s=i.childNodes,El(l,i,r))return!0;if(u[o]>s.length-1)return!!El(l,i,r)||Nl(i,r);i=s[u[o]]}3===i.nodeType&&(a=Math.min(u[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(u[0],i.childNodes.length)),t?r.setStart(i,a):r.setEnd(i,a)}return!0},zl=function(e){return _o.isText(e)&&0<e.data.length},kl=function(e,t,n){var r,o,i,a,s,u,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):zl(l.nextSibling)?(r=l.nextSibling,0):zl(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):zl(l.previousSibling)?(r=l.previousSibling,l.previousSibling.data.length):(r=l.parentNode,e.nodeIndex(l)):e.nodeIndex(l),s=r,u=o,!c){for(a=l.previousSibling,i=l.nextSibling,sn.each(sn.grep(l.childNodes),function(e){_o.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&&_o.isText(a)&&!Fe.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),s=a,u=o)}return T.some(qs(s,u))}return T.none()},Tl=function(e,t){var n,r,o,i,a,s,u,l,c,f,d,h,m,g,p,v,y=e.dom;if(t){if(v=t,sn.isArray(v.start))return g=t,p=(m=y).createRng(),Sl(m,!0,g,p)&&Sl(m,!1,g,p)?T.some(p):T.none();if("string"==typeof t.start)return T.some((f=t,d=(c=y).createRng(),h=Zs(c.getRoot(),f.start),d.setStart(h.container(),h.offset()),h=Zs(c.getRoot(),f.end),d.setEnd(h.container(),h.offset()),d));if(t.hasOwnProperty("id"))return u=kl(o=y,"start",i=t),l=kl(o,"end",i),bs([u,(a=l,s=u,a.isSome()?a:s)],function(e,t){var n=o.createRng();return n.setStart(xl(o,e.container()),e.offset()),n.setEnd(xl(o,t.container()),t.offset()),n});if(t.hasOwnProperty("name"))return n=y,r=t,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 T.some(t.rng)}return T.none()},Al=function(e,t,n){return fu.getBookmark(e,t,n)},Rl=function(t,e){Tl(t,e).each(function(e){t.setRng(e)})},Ml=function(e){return _o.isElement(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Dl=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Bl=function(e){return e&&3===e.nodeType&&/^([\t \r\n]+|)$/.test(e.nodeValue)},Ol=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},_l={isInlineBlock:Dl,moveStart:function(e,t,n){var r,o,i,a=n.startOffset,s=n.startContainer;if((n.startContainer!==n.endContainer||!Dl(n.startContainer.childNodes[n.startOffset]))&&1===s.nodeType)for(a<(i=s.childNodes).length?(s=i[a],r=new Po(s,e.getParent(s,e.isBlock))):(s=i[i.length-1],(r=new Po(s,e.getParent(s,e.isBlock))).next(!0)),o=r.current();o;o=r.next())if(3===o.nodeType&&!Bl(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||!Bl(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:Bl,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:Ol,getStyle:function(e,t,n){return Ol(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())}},Pl=Ml,Hl=_l.getParents,Ll=_l.isWhiteSpaceNode,Vl=_l.isTextBlock,Il=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}},Fl=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},Ul=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("\xa0",r))<o?o:i)&&!t&&(o<r||!e)&&o<=a.length&&o++):(o=a.indexOf(" ",r),i=a.indexOf("\xa0",r),o=-1!==o&&(-1===i||o<i)?o:i),o},jl=function(e,t,n,r,o,i){var a,s,u;if(3===n.nodeType){if(-1!==(s=Ul(o,i,n,r)))return{container:n,offset:s};u=n}for(var l=new Po(n,e.getParent(n,e.isBlock)||t);a=l[o?"prev":"next"]();)if(3!==a.nodeType||Pl(a.parentNode)){if(e.isBlock(a)||_l.isEq(a,"BR"))break}else if(-1!==(s=Ul(o,i,u=a)))return{container:a,offset:s};if(u)return{container:u,offset:r=o?0:u.length}},ql=function(e,t,n,r,o){var i,a,s,u;for(3===r.nodeType&&0===r.nodeValue.length&&r[o]&&(r=r[o]),i=Hl(e,r),a=0;a<i.length;a++)for(s=0;s<t.length;s++)if(!("collapsed"in(u=t[s])&&u.collapsed!==n.collapsed)&&e.is(i[a],u.selector))return i[a];return r},$l=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 s=i.getParent(n,"LI,TD,TH");o=i.getParent(3===n.nodeType?n.parentNode:n,function(e){return e!==a&&Vl(t,e)},s)}if(o&&e[0].wrapper&&(o=Hl(i,o,"ul,ol").reverse()[0]||o),!o)for(o=n;o[r]&&!i.isBlock(o[r])&&(o=o[r],!_l.isEq(o,"br")););return o||n},Wl=function(e,t,n,r,o,i,a){var s,u,l,c,f,d;if(s=u=a?n:o,c=a?"previousSibling":"nextSibling",f=e.getRoot(),3===s.nodeType&&!Ll(s)&&(a?0<r:i<s.nodeValue.length))return s;for(;;){if(!t[0].block_expand&&e.isBlock(u))return u;for(l=u[c];l;l=l[c])if(!Pl(l)&&!Ll(l)&&("BR"!==(d=l).nodeName||!d.getAttribute("data-mce-bogus")||d.nextSibling))return u;if(u===f||u.parentNode===f){s=u;break}u=u.parentNode}return s},Kl=function(e,t,n,r){var o,i=t.startContainer,a=t.startOffset,s=t.endContainer,u=t.endOffset,l=e.dom;return 1===i.nodeType&&i.hasChildNodes()&&3===(i=ps(i,a)).nodeType&&(a=0),1===s.nodeType&&s.hasChildNodes()&&3===(s=ps(s,t.collapsed?u:u-1)).nodeType&&(u=s.nodeValue.length),i=Fl(l,i),s=Fl(l,s),(Pl(i.parentNode)||Pl(i))&&(i=Pl(i)?i:i.parentNode,3===(i=t.collapsed?i.previousSibling||i:i.nextSibling||i).nodeType&&(a=t.collapsed?i.length:0)),(Pl(s.parentNode)||Pl(s))&&(s=Pl(s)?s:s.parentNode,3===(s=t.collapsed?s.nextSibling||s:s.previousSibling||s).nodeType&&(u=t.collapsed?0:s.length)),t.collapsed&&((o=jl(l,e.getBody(),i,a,!0,r))&&(i=o.container,a=o.offset),(o=jl(l,e.getBody(),s,u,!1,r))&&(s=o.container,u=o.offset)),n[0].inline&&(s=r?s:function(e,t){var n=Il(e,t);if(n.node){for(;n.node&&0===n.offset&&n.node.previousSibling;)n=Il(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}(s,u)),(n[0].inline||n[0].block_expand)&&(n[0].inline&&3===i.nodeType&&0!==a||(i=Wl(l,n,i,a,s,u,!0)),n[0].inline&&3===s.nodeType&&u!==s.nodeValue.length||(s=Wl(l,n,i,a,s,u,!1))),n[0].selector&&!1!==n[0].expand&&!n[0].inline&&(i=ql(l,n,t,i,"previousSibling"),s=ql(l,n,t,s,"nextSibling")),(n[0].block||n[0].selector)&&(i=$l(e,n,i,"previousSibling"),s=$l(e,n,s,"nextSibling"),n[0].block&&(l.isBlock(i)||(i=Wl(l,n,i,a,s,u,!0)),l.isBlock(s)||(s=Wl(l,n,i,a,s,u,!1)))),1===i.nodeType&&(a=l.nodeIndex(i),i=i.parentNode),1===s.nodeType&&(u=l.nodeIndex(s)+1,s=s.parentNode),{startContainer:i,startOffset:a,endContainer:s,endOffset:u}},Xl=sn.each,Yl=function(e,t,o){var n,r,i,a,s,u,l,c=t.startContainer,f=t.startOffset,d=t.endContainer,h=t.endOffset;if(0<(l=e.select("td[data-mce-selected],th[data-mce-selected]")).length)Xl(l,function(e){o([e])});else{var m,g,p,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===h&&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(s=(a=e).parentNode;a&&a!==t;a=s)s=a.parentNode,(u=y(a===e?a:a[r],r)).length&&(n||u.reverse(),o(v(u)))};if(1===c.nodeType&&c.hasChildNodes()&&(c=c.childNodes[f]),1===d.nodeType&&d.hasChildNodes()&&(g=h,p=(m=d).childNodes,--g>p.length-1?g=p.length-1:g<0&&(g=0),d=p[g]||m),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),(u=y(r===c?r:r.nextSibling,"nextSibling",i===d?i.nextSibling:i)).length&&o(v(u)),C(d,i)}},Gl=function zE(n,r){var t=function(e){return n(e)?T.from(e.dom().nodeValue):T.none()},e=pr.detect().browser,o=e.isIE()&&10===e.version.major?function(e){try{return t(e)}catch(fE){return T.none()}}:t;return{get:function(e){if(!n(e))throw new Error("Can only get "+r+" value of a "+r+" node");return o(e).getOr("")},getOption:o,set:function(e,t){if(!n(e))throw new Error("Can only set raw "+r+" value of a "+r+" node");e.dom().nodeValue=t}}}(Sr,"text"),Jl=function(e){return Gl.get(e)},Ql=function(r,o,i,a){return to(o).fold(function(){return"skipping"},function(e){return"br"===a||Sr(n=o)&&"\ufeff"===Jl(n)?"valid":Er(t=o)&&da(t,xa())?"existing":hu(o)?"caret":_l.isValid(r,i,a)&&_l.isValid(r,xr(e),i)?"valid":"invalid-child";var t,n})},Zl=function(e,t,n,r){var o,i,a=t.uid,s=void 0===a?(o="mce-annotation",i=(new Date).getTime(),o+"_"+Math.floor(1e9*Math.random())+ ++Aa+String(i)):a,u=Fi(t,["uid"]),l=yr.fromTag("span",e);ca(l,xa()),_r(l,""+Ea(),s),_r(l,""+Na(),n);var c,f=r(s,u),d=f.attributes,h=void 0===d?{}:d,m=f.classes,g=void 0===m?[]:m;return Pr(l,h),c=l,I(g,function(e){ca(c,e)}),l},ec=function(i,e,t,n,r){var a=[],s=Zl(i.getDoc(),r,t,n),u=ji(T.none()),l=function(){u.set(T.none())},c=function(e){I(e,o)},o=function(e){var t,n;switch(Ql(i,e,"span",xr(e))){case"invalid-child":l();var r=so(e);c(r),l();break;case"valid":var o=u.get().getOrThunk(function(){var e=Ma(s);return a.push(e),u.set(T.some(e)),e});Gi(t=e,n=o),Zi(n,t)}};return Yl(i.dom,e,function(e){var t;l(),t=X(e,yr.fromDom),c(t)}),a},tc=function(u,l,c,f){u.undoManager.transact(function(){var e,t,n,r,o=u.selection.getRng();if(o.collapsed&&(r=Kl(e=u,t=o,[{inline:!0}],3===(n=t).startContainer.nodeType&&n.startContainer.nodeValue.length>=n.startOffset&&"\xa0"===n.startContainer.nodeValue[n.startOffset]),t.setStart(r.startContainer,r.startOffset),t.setEnd(r.endContainer,r.endOffset),e.selection.setRng(t)),u.selection.getRng().collapsed){var i=Zl(u.getDoc(),f,l,c.decorate);Ba(i,"\xa0"),u.selection.getRng().insertNode(i.dom()),u.selection.select(i.dom())}else{var a=fu.getPersistentBookmark(u.selection,!1),s=u.selection.getRng();ec(u,s,l,c.decorate,f),u.selection.moveToBookmark(a)}})},nc=function(s){var n,r=(n={},{register:function(e,t){n[e]={name:e,settings:t}},lookup:function(e){return n.hasOwnProperty(e)?T.from(n[e]).map(function(e){return e.settings}):T.none()}});Ta(s,r);var o=ka(s);return{register:function(e,t){r.register(e,t)},annotate:function(t,n){r.lookup(t).each(function(e){tc(s,t,e,n)})},annotationChanged:function(e,t){o.addListener(e,t)},remove:function(e){Sa(s,T.some(e)).each(function(e){var t=e.elements;I(t,ra)})},getAll:function(e){var t,n,r,o,i,a=(t=s,n=e,r=yr.fromDom(t.getBody()),o=ma(r,"["+Na()+'="'+n+'"]'),i={},I(o,function(e){var t=Hr(e,Ea()),n=i.hasOwnProperty(t)?i[t]:[];i[t]=n.concat([e])}),i);return Ar(a,function(e){return X(e,function(e){return e.dom()})})}}},rc=/^[ \t\r\n]*$/,oc={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},ic=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}},ac=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,oc[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(t===undefined)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=ic(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=ic(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.attr("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&&!rc.test(i.value))return!1;if(3===i.type&&i.parent&&t[i.parent.name]&&rc.test(i.value))return!1;if(n&&n(i))return!1}while(i=ic(i,this));return!0},a.prototype.walk=function(e){return ic(this,null,e)},a}(),sc=function(e,t,n){var r,o,i,a,s=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])s--;else if(!o[1]){if(o[2]in a)continue;s++}if(0===s)break}return r},uc=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 lc(V,I){void 0===I&&(I=xi());var e=function(){};!1!==(V=V||{}).fix_self_closing&&(V.fix_self_closing=!0);var F=V.comment?V.comment:e,U=V.cdata?V.cdata:e,j=V.text?V.text:e,q=V.start?V.start:e,$=V.end?V.end:e,W=V.pi?V.pi:e,K=V.doctype?V.doctype:e;return{parse:function(e){var t,n,r,d,o,i,a,h,s,u,m,l,g,c,f,p,v,y,b,C,w,x,N,E,S,z,k,T,A,R=0,M=[],D=0,B=ui.decode,O=sn.makeMap("src,href,data,background,formaction,poster,xlink:href"),_=/((java|vb)script|mhtml):/i,P=function(e){var t,n;for(t=M.length;t--&&M[t].name!==e;);if(0<=t){for(n=M.length-1;t<=n;n--)(e=M[n]).valid&&$(e.name);M.length=t}},H=function(e,t,n,r,o){var i,a,s,u,l;if(n=(t=t.toLowerCase())in m?t:B(n||r||o||""),g&&!h&&0==(0===(s=t).indexOf("data-")||0===s.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(O[t]&&!V.allow_script_urls){var c=n.replace(/[\s\u0000-\u001F]+/g,"");try{c=decodeURIComponent(c)}catch(f){c=unescape(c)}if(_.test(c))return;if(l=c,!(u=V).allow_html_data_urls&&(/^data:image\//i.test(l)?!1===u.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(l):/^data:/i.test(l)))return}h&&(t in O||0===t.indexOf("on"))||(d.map[t]=n,d.push({name:t,value:n}))};for(S=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"),z=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,u=I.getShortEndedElements(),E=V.self_closing_elements||I.getSelfClosingElements(),m=I.getBoolAttrs(),g=V.validate,s=V.remove_internals,A=V.fix_self_closing,k=I.getSpecialElements(),N=e+">";t=S.exec(N);){if(R<t.index&&j(B(e.substr(R,t.index-R))),n=t[6])":"===(n=n.toLowerCase()).charAt(0)&&(n=n.substr(1)),P(n);else if(n=t[7]){if(t.index+t[0].length>e.length){j(B(e.substr(t.index))),R=t.index+t[0].length;continue}":"===(n=n.toLowerCase()).charAt(0)&&(n=n.substr(1)),l=n in u,A&&E[n]&&0<M.length&&M[M.length-1].name===n&&P(n);var L=uc(z,t[8]);if(null!==L){if("all"===L){R=sc(I,e,S.lastIndex),S.lastIndex=R;continue}f=!1}if(!g||(c=I.getElementRule(n))){if(f=!0,g&&(y=c.attributes,b=c.attributePatterns),(v=t[8])?((h=-1!==v.indexOf("data-mce-type"))&&s&&(f=!1),(d=[]).map={},v.replace(z,H)):(d=[]).map={},g&&!h){if(C=c.attributesRequired,w=c.attributesDefault,x=c.attributesForced,c.removeEmptyAttrs&&!d.length&&(f=!1),x)for(o=x.length;o--;)a=(p=x[o]).name,"{$uid}"===(T=p.value)&&(T="mce_"+D++),d.map[a]=T,d.push({name:a,value:T});if(w)for(o=w.length;o--;)(a=(p=w[o]).name)in d.map||("{$uid}"===(T=p.value)&&(T="mce_"+D++),d.map[a]=T,d.push({name:a,value:T}));if(C){for(o=C.length;o--&&!(C[o]in d.map););-1===o&&(f=!1)}if(p=d.map["data-mce-bogus"]){if("all"===p){R=sc(I,e,S.lastIndex),S.lastIndex=R;continue}f=!1}}f&&q(n,d,l)}else f=!1;if(r=k[n]){r.lastIndex=R=t.index+t[0].length,R=(t=r.exec(e))?(f&&(i=e.substr(R,t.index-R)),t.index+t[0].length):(i=e.substr(R),e.length),f&&(0<i.length&&j(i,!0),$(n)),S.lastIndex=R;continue}l||(v&&v.indexOf("/")===v.length-1?f&&$(n):M.push({name:n,valid:f}))}else(n=t[1])?(">"===n.charAt(0)&&(n=" "+n),V.allow_conditional_comments||"[if"!==n.substr(0,3).toLowerCase()||(n=" "+n),F(n)):(n=t[2])?U(n.replace(/<!--|-->/g,"")):(n=t[3])?K(n):(n=t[4])&&W(n,t[5]);R=t.index+t[0].length}for(R<e.length&&j(B(e.substr(R))),o=M.length-1;0<=o;o--)(n=M[o]).valid&&$(n.name)}}}(lc||(lc={})).findEndTag=sc;var cc=lc,fc=function(e,t){var n,r,o,i,a,s,u,l,c=t,f=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,d=e.schema;for(s=e.getTempAttrs(),u=c,l=new RegExp(["\\s?("+s.join("|")+')="[^"]+"'].join("|"),"gi"),c=u.replace(l,""),a=d.getShortEndedElements();i=f.exec(c);)r=f.lastIndex,o=i[0].length,n=a[i[1]]?r:cc.findEndTag(d,c,r),c=c.substring(0,r-o)+c.substring(n),f.lastIndex=r-o;return Ha(c)},dc={trimExternal:fc,trimInternal:fc},hc=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},mc=function(e){return e.getParam("iframe_attrs",{})},gc=function(e){return e.getParam("doctype","<!DOCTYPE html>")},pc=function(e){return e.getParam("document_base_url","")},vc=function(e){return hc(e,"body_id","tinymce")},yc=function(e){return hc(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?"":!0===t?"p":t},xc=function(e){return e.getParam("forced_root_block_attrs",{})},Nc=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},Ec=function(e){return e.getParam("no_newline_selector","")},Sc=function(e){return e.getParam("keep_styles",!0)},zc=function(e){return e.getParam("end_container_on_empty_block",!1)},kc=function(e){return sn.explode(e.getParam("font_size_style_values",""))},Tc=function(e){return sn.explode(e.getParam("font_size_classes",""))},Ac=function(e){return e.getParam("images_dataimg_filter",$(!0),"function")},Rc=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Mc=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Dc=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Bc=function(e){return e.getParam("images_upload_url","","string")},Oc=function(e){return e.getParam("images_upload_base_path","","string")},_c=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Pc=function(e){return e.getParam("images_upload_handler",null,"function")},Hc=function(e){return e.getParam("content_css_cors",!1,"boolean")},Lc=function(e){return e.getParam("language","en","string")},Vc=function(e){return e.getParam("language_url","","string")},Ic=function(e){return e.getParam("indent_use_margin",!1)},Fc=function(e){return e.getParam("indentation","40px","string")},Uc=function(e){var t=e.settings.content_css;return K(t)?X(t.split(","),ur):M(t)?t:!1===t||e.inline?[]:["default"]},jc=function(e,t,n){var r,o,i,a,s;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=sn.trim(dc.trimExternal(e.serializer,n.innerHTML));else if("text"===t.format)r=Ha(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),s=new RegExp("^(<"+a+"[^>]*>(&nbsp;|&#160;|\\s|\xa0|<br \\/>|)<\\/"+a+">[\r\n]*|<br \\/>[\r\n]*)$"),r=i.replace(s,"")}return"text"===t.format||Xo(yr.fromDom(n))?t.content=r:t.content=sn.trim(r),t.no_events||e.fire("GetContent",t),t.content},qc=sn.makeMap,$c=function(e){var s,u,l,c,f,d=[];return s=(e=e||{}).indent,u=qc(e.indent_before||""),l=qc(e.indent_after||""),c=ui.getEncodeFunc(e.entity_encoding||"raw",e.entities),f="html"===e.element_format,{start:function(e,t,n){var r,o,i,a;if(s&&u[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&&s&&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,">"),s&&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,"?>"),s&&d.push("\n")},doctype:function(e){d.push("<!DOCTYPE",e,">",s?"\n":"")},reset:function(){d.length=0},getContent:function(){return d.join("").replace(/\n$/,"")}}},Wc=function(t,m){void 0===m&&(m=xi());var g=$c(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(;h(e),e=e.next;);}},g.reset();var h=function(e){var t,n,r,o,i,a,s,u,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=m.getElementRule(e.name))){for(s=0,u=l.attributesOrder.length;s<u;s++)(o=l.attributesOrder[s])in r.map&&(i=r.map[o],a.map[o]=i,a.push({name:o,value:i}));for(s=0,u=r.length;s<u;s++)(o=r[s].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(;h(e),e=e.next;);g.end(t)}}};return 1!==e.type||t.inner?f[11](e):h(e),g.getContent()}}},Kc=function(e,t){t(e),e.firstChild&&Kc(e.firstChild,t),e.next&&Kc(e.next,t)},Xc=function(e,t,n){var r=function(e,n,t){var r={},o={},i=[];for(var a in t.firstChild&&Kc(t.firstChild,function(t){I(e,function(e){e.name===t.name&&(r[e.name]?r[e.name].nodes.push(t):r[e.name]={filter:e,nodes:[t]})}),I(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);I(r,function(t){I(t.filter.callbacks,function(e){e(t.nodes,t.filter.name,{})})})},Yc=function(e){var t=eo(e).dom();return e.dom()===t.activeElement},Gc=function(t){return(e=eo(t),n=e!==undefined?e.dom():j.document,T.from(n.activeElement).map(yr.fromDom)).filter(function(e){return t.dom().contains(e.dom())});var e,n},Jc=function(a){if(!M(a))throw new Error("cases must be an array");if(0===a.length)throw new Error("there must be at least one case");var s=[],n={};return I(a,function(e,r){var t=zr(e);if(1!==t.length)throw new Error("one and only one name per case");var o=t[0],i=e[o];if(n[o]!==undefined)throw new Error("duplicate key detected:"+o);if("cata"===o)throw new Error("cannot have a case named cata (sorry)");if(!M(i))throw new Error("case arguments must be an array");s.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=zr(e);if(s.length!==t.length)throw new Error("Wrong number of arguments to match. Expected: "+s.join(",")+"\nActual: "+t.join(","));if(!oe(s,function(e){return L(t,e)}))throw new Error("Not all branches were specified when using match. Specified: "+t.join(", ")+"\nRequired: "+s.join(", "));return e[o].apply(null,n)},log:function(e){j.console.log(e,{constructors:s,constructor:o,params:n})}}}}),n},Qc=(Jc([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Jc([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Ur("start","soffset","finish","foffset")),Zc=pr.detect().browser,ef=function(e,t){var n=Sr(t)?Jl(t).length:so(t).length+1;return n<e?n:e<0?0:e},tf=function(e){return Qc(e.start(),ef(e.soffset(),e.start()),e.finish(),ef(e.foffset(),e.finish()))},nf=function(e,t){return Zr(e,t)||Qr(e,t)},rf=function(t){return function(e){return nf(t,e.start())&&nf(t,e.finish())}},of=function(e){return!0===e.inline||Zc.isIE()},af=function(e){return Qc(yr.fromDom(e.startContainer),e.startOffset,yr.fromDom(e.endContainer),e.endOffset)},sf=function(e){var t=e.getSelection();return(t&&0!==t.rangeCount?T.from(t.getRangeAt(0)):T.none()).map(af)},uf=function(e){var t,n=(t=e.dom().ownerDocument.defaultView,yr.fromDom(t));return sf(n.dom()).filter(rf(e))},lf=function(e,t){return T.from(t).filter(rf(e)).map(tf)},cf=function(e){var t=j.document.createRange();try{return t.setStart(e.start().dom(),e.soffset()),t.setEnd(e.finish().dom(),e.foffset()),T.some(t)}catch(n){return T.none()}},ff=function(e){return(e.bookmark?e.bookmark:T.none()).bind(d(lf,yr.fromDom(e.getBody()))).bind(cf)},df=function(e){var t=of(e)?uf(yr.fromDom(e.getBody())):T.none();e.bookmark=t.isSome()?t:e.bookmark},hf=function(t){ff(t).each(function(e){t.selection.setRng(e)})},mf=ff,gf=function(t,e){return(n=e,n.collapsed?T.from(ps(n.startContainer,n.startOffset)).map(yr.fromDom):T.none()).bind(function(e){return Wo(e)?T.some(e):!1===Zr(t,e)?T.some(t):T.none()});var n},pf=function(t,e){gf(yr.fromDom(t.getBody()),e).bind(function(e){return wl.firstPositionIn(e.dom())}).fold(function(){t.selection.normalize()},function(e){return t.selection.setRng(e.toRange())})},vf=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},yf=function(e){var t,n=e.getBody();return n&&(t=yr.fromDom(n),Yc(t)||Gc(t).isSome())},bf=function(e){return e.inline?yf(e):(t=e).iframeElement&&Yc(yr.fromDom(t.iframeElement));var t},Cf=function(e){return e.editorManager.setActive(e)},wf=function(e,t){e.removed||(t?Cf(e):function(t){var e=t.selection,n=t.getBody(),r=e.getRng();t.quirks.refreshContentEditable();var o,i,a=(o=t,i=e.getNode(),o.dom.getParent(i,function(e){return"true"===o.dom.getContentEditable(e)}));if(t.$.contains(n,a))return vf(a),pf(t,r),Cf(t);t.bookmark!==undefined&&!1===bf(t)&&mf(t).each(function(e){t.selection.setRng(e),r=e}),t.inline||(Fe.opera||vf(n),t.getWin().focus()),(Fe.gecko||t.inline)&&(vf(n),pf(t,r)),Cf(t)}(e))},xf=bf,Nf=function(e){return e instanceof ac},Ef=function(e,t){var r;e.dom.setHTML(e.getBody(),t),xf(r=e)&&wl.firstPositionIn(r.getBody()).each(function(e){var t=e.getNode(),n=_o.isTable(t)?wl.firstPositionIn(t).getOr(e):e;r.selection.setRng(n.toRange())})},Sf=function(s,u,l){return void 0===l&&(l={}),l.format=l.format?l.format:"html",l.set=!0,l.content=Nf(u)?"":u,Nf(u)||l.no_events||(s.fire("BeforeSetContent",l),u=l.content),T.from(s.getBody()).fold($(u),function(e){return Nf(u)?function(e,t,n,r){Xc(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var o=Wc({validate:e.validate},e.schema).serialize(n);return r.content=Xo(yr.fromDom(t))?o:sn.trim(o),Ef(e,r.content),r.no_events||e.fire("SetContent",r),n}(s,e,u,l):(t=s,n=e,o=l,0===(r=u).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">'),Ef(t,r),t.fire("SetContent",o)):("raw"!==o.format&&(r=Wc({validate:t.validate},t.schema).serialize(t.parser.parse(r,{isRootContent:!0,insert:!0}))),o.content=Xo(yr.fromDom(n))?r:sn.trim(r),Ef(t,o.content),o.no_events||t.fire("SetContent",o)),o.content);var t,n,r,o,i,a})},zf=function(e,t){return e.fire("PreProcess",t)},kf=function(e,t){return e.fire("PostProcess",t)},Tf=function(e){return e.fire("remove")},Af=function(e){return e.fire("detach")},Rf=function(e,t){return e.fire("SwitchMode",{mode:t})},Mf=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},Df=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},Bf=_i.DOM,Of=function(e){return T.from(e).each(function(e){return e.destroy()})},_f=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&&Bf.remove(o.nextSibling),Tf(e),e.editorManager.remove(e),!e.inline&&r&&(i=e,Bf.setStyle(i.id,"display",i.orgDisplay)),Af(e),Bf.remove(e.getContainer()),Of(t),Of(n),e.destroy()}var i},Pf=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(),Of(i),Of(a)),(r=(n=e).formElement)&&(r._mceOldSubmit&&(r.submit=r._mceOldSubmit,r._mceOldSubmit=null),Bf.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())},Hf=Ur("sections","settings"),Lf=pr.detect(),Vf=Lf.deviceType.isTouch(),If=Lf.deviceType.isPhone(),Ff=["lists","autolink","autosave"],Uf=If?{theme:"mobile"}:{},jf=function(e){var t=M(e)?e.join(" "):e,n=X(K(t)?t.split(" "):[],ur);return U(n,function(e){return 0<e.length})},qf=function(e,t,n,r){var o,i,a=jf(n.forced_plugins),s=jf(r.plugins),u=e&&(o="mobile",t.sections().hasOwnProperty(o))?U(s,d(L,Ff)):s,l=(i=u,[].concat(jf(a)).concat(jf(i)));return sn.extend(r,{plugins:l.join(" ")})},$f=function(e,t,n,r){var o,i,a,s,u,l,c,f,d,h,m,g=(o=["mobile"],i=Mr(r,function(e,t){return L(o,t)}),Hf(i.t,i.f)),p=sn.extend(t,n,g.settings(),(h=e,m=g.settings().inline,h&&!m?(l="mobile",c=Uf,f=g.sections(),d=f.hasOwnProperty(l)?f[l]:{},sn.extend({},c,d)):{}),{validate:!0,external_plugins:(a=n,s=g.settings(),u=s.external_plugins?s.external_plugins:{},a&&a.external_plugins?sn.extend({},a.external_plugins,u):u)});return qf(e,g,n,p)},Wf=function(e,t,n){return T.from(t.settings[n]).filter(e)},Kf=d(Wf,K),Xf=function(e,t,n,r){var o,i,a,s=t in e.settings?e.settings[t]:n;return"hash"===r?(a={},"string"==typeof(i=s)?I(0<i.indexOf("=")?i.split(/[;,](?![^=;,]*(?:[;,]|$))/):i.split(","),function(e){var t=e.split("=");1<t.length?a[sn.trim(t[0])]=sn.trim(t[1]):a[sn.trim(t[0])]=sn.trim(t[0])}):a=i,a):"string"===r?Wf(K,e,t).getOr(n):"number"===r?Wf(_,e,t).getOr(n):"boolean"===r?Wf(B,e,t).getOr(n):"object"===r?Wf(R,e,t).getOr(n):"array"===r?Wf(M,e,t).getOr(n):"string[]"===r?Wf((o=K,function(e){return M(e)&&oe(e,o)}),e,t).getOr(n):"function"===r?Wf(O,e,t).getOr(n):s},Yf=function(e,t){return t.dom()[e]},Gf=function(e,t){return parseInt(Vr(t,e),10)},Jf=d(Yf,"clientWidth"),Qf=d(Yf,"clientHeight"),Zf=d(Gf,"margin-top"),ed=d(Gf,"margin-left"),td=function(e,t,n){var r,o,i,a,s,u,l,c,f,d,h,m=yr.fromDom(e.getBody()),g=e.inline?m:(r=m,yr.fromDom(r.dom().ownerDocument.documentElement)),p=(o=e.inline,a=t,s=n,u=(i=g).dom().getBoundingClientRect(),{x:a-(o?u.left+i.dom().clientLeft+ed(i):0),y:s-(o?u.top+i.dom().clientTop+Zf(i):0)});return c=p.x,f=p.y,d=Jf(l=g),h=Qf(l),0<=c&&0<=f&&c<=d&&f<=h},nd=function(e){var t,n=e.inline?e.getBody():e.getContentAreaContainer();return(t=n,T.from(t).map(yr.fromDom)).map(function(e){return Zr(eo(e),e)}).getOr(!1)};function rd(n){var t,o=[],i=function(){var e=n.theme;return e&&e.getNotificationManagerImpl?e.getNotificationManagerImpl():function t(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}}()},a=function(){0<o.length&&i().reposition(o)},s=function(t){Z(o,function(e){return e===t}).each(function(e){o.splice(e,1)})},r=function(r){if(!n.removed&&nd(n))return Q(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(){s(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:"warn",timeout:0})}),t.on("ResizeEditor ResizeWindow NodeChange",function(){We.requestAnimationFrame(a)}),t.on("remove",function(){I(o.slice(),function(e){i().close(e)})}),{open:r,close:function(){T.from(o[0]).each(function(e){i().close(e),s(e),a()})},getNotifications:function(){return o}}}var od,id=function(n){var r=[],o=function(){var e=n.theme;return e&&e.getWindowManagerImpl?e.getWindowManagerImpl():function t(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}()},i=function(e,t){return function(){return t?t.apply(e,arguments):undefined}},a=function(e){var t;r.push(e),t=e,n.fire("OpenWindow",{dialog:t})},s=function(t){var e;e=t,n.fire("CloseWindow",{dialog:e}),0===(r=U(r,function(e){return e!==t})).length&&n.focus()},u=function(e){n.editorManager.setActive(n),df(n);var t=e();return a(t),t};return n.on("remove",function(){I(r,function(e){o().close(e)})}),{open:function(e,t){return u(function(){return o().open(e,t,s)})},openUrl:function(e){return u(function(){return o().openUrl(e,s)})},alert:function(e,t,n){o().alert(e,i(n||this,t))},confirm:function(e,t,n){o().confirm(e,i(n||this,t))},close:function(){T.from(r[r.length-1]).each(function(e){o().close(e),s(e)})}}},ad=Yi.PluginManager,sd=function(e,t){var n=function(e,t){for(var n in ad.urls)if(ad.urls[n]+"/plugin"+t+".js"===e)return n;return null}(t,e.suffix);return n?Wi.translate(["Failed to load plugin: {0} from url {1}",n,t]):Wi.translate(["Failed to load plugin url: {0}",t])},ud=function(e,t){e.notificationManager.open({type:"error",text:t})},ld=function(e,t){e._skinLoaded?ud(e,t):e.on("SkinLoaded",function(){ud(e,t)})},cd=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=j.window.console;r&&(r.error?r.error.apply(r,arguments):r.log.apply(r,arguments))},fd={pluginLoadError:function(e,t){ld(e,sd(e,t))},pluginInitError:function(e,t,n){var r=Wi.translate(["Failed to initialize plugin: {0}",t]);cd(r,n),ld(e,r)},uploadError:function(e,t){ld(e,Wi.translate(["Failed to upload image: {0}",t]))},displayError:ld,initError:cd},dd=(od={},{add:function(e,t){od[e]=t},get:function(e){return od[e]?od[e]:{icons:{}}},has:function(e){return Br(od,e)}}),hd=Yi.PluginManager,md=Yi.ThemeManager;function gd(){return new(ge.getOrDie("XMLHttpRequest"))}function pd(s,u){var r={},n=function(e,r,o,t){var i,n;(i=gd()).open("POST",u.url),i.withCredentials=u.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=u.basePath,n=e.location,t?t.replace(/\/$/,"")+"/"+n.replace(/^\//,""):n)):o("Invalid JSON: "+i.responseText)},(n=new j.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){sn.each(r[e],function(e){e(t)}),delete r[e]},o=function(e,n){return e=sn.grep(e,function(e){return!s.isUploaded(e.blobUri())}),Ue.all(sn.map(e,function(e){return s.isPending(e.blobUri())?(t=e.blobUri(),new Ue(function(e){r[t]=r[t]||[],r[t].push(e)})):(o=e,i=u.handler,a=n,s.markPending(o.blobUri()),new Ue(function(t){var n;try{var r=function(){n&&n.close()};i(o,function(e){r(),s.markUploaded(o.blobUri(),e),f(o.blobUri(),l(o,e)),t(l(o,e))},function(e){r(),s.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===O(u.handler)&&(u.handler=n),{upload:function(e,t){return u.url||u.handler!==n?o(e,t):new Ue(function(e){e([])})}}}var vd=function(e){return ge.getOrDie("atob")(e)},yd=function(e){var t,n,r=decodeURIComponent(e).split(",");return(n=/data:([^;]+)/.exec(r[0]))&&(t=n[1]),{type:t,data:r[1]}},bd=function(a){return new Ue(function(e){var t,n,r,o=yd(a);try{t=vd(o.data)}catch(fE){return void e(new j.Blob([]))}for(n=function i(e){return new(ge.getOrDie("Uint8Array"))(e)}(t.length),r=0;r<n.length;r++)n[r]=t.charCodeAt(r);e(new j.Blob([n],{type:o.type}))})},Cd=function(e){return 0===e.indexOf("blob:")?(i=e,new Ue(function(e,t){var n=function(){t("Cannot convert "+i+" to Blob. Resource might not exist or is inaccessible.")};try{var r=gd();r.open("GET",i,!0),r.responseType="blob",r.onload=function(){200===this.status?e(this.response):n()},r.onerror=n,r.send()}catch(o){n()}})):0===e.indexOf("data:")?bd(e):null;var i},wd=function(r){return new Ue(function(e){var t=function n(){return new(ge.getOrDie("FileReader"))}();t.onloadend=function(){e(t.result)},t.readAsDataURL(r)})},xd=yd,Nd=0,Ed=function(e){return(e||"blobid")+Nd++};function Sd(i,l){var a={};return{findAll:function(e,n){var t,r;n||(n=$(!0)),t=U((r=e)?de(r.getElementsByTagName("img")):[],function(e){var t=e.src;return!!Fe.fileApi&&!e.hasAttribute("data-mce-bogus")&&!e.hasAttribute("data-mce-placeholder")&&!(!t||t===Fe.transparentSrc)&&(0===t.indexOf("blob:")?!i.isUploaded(t)&&n(e):0===t.indexOf("data:")&&n(e))});var o=X(t,function(u){if(a[u.src])return new Ue(function(t){a[u.src].then(function(e){if("string"==typeof e)return e;t({image:u,blobInfo:e.blobInfo})})});var e=new Ue(function(e,t){var n,r,o,i,a,s;n=l,o=e,i=t,0!==(r=u).src.indexOf("blob:")?(a=xd(r.src).data,(s=n.findFirst(function(e){return e.base64()===a}))?o({image:r,blobInfo:s}):Cd(r.src).then(function(e){s=n.create(Ed(),e,a),n.add(s),o({image:r,blobInfo:s})},function(e){i(e)})):(s=n.getByUri(r.src))?o({image:r,blobInfo:s}):Cd(r.src).then(function(t){wd(t).then(function(e){a=xd(e).data,s=n.create(Ed(),t,a),n.add(s),o({image:r,blobInfo:s})})},function(e){i(e)})}).then(function(e){return delete a[e.image.src],e})["catch"](function(e){return delete a[u.src],e});return a[u.src]=e});return Ue.all(o)}}}var zd,kd,Td=0,Ad=function(e){return e+Td+++(t=function(){return Math.round(4294967295*Math.random()).toString(36)},"s"+(new Date).getTime().toString(36)+t()+t()+t());var t},Rd=function(o){var n,i,t,e,a,r,s=(n=[],i=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||Ad("blobid"),n=e.name||t,{id:$(t),name:$(n),filename:$(n+"."+(r=e.blob.type,{"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png"}[r.toLowerCase()]||"dat")),blob:$(e.blob),base64:$(e.base64),blobUri:$(e.blobUri||ve(e.blob)),uri:$(e.uri)}},{create:function(e,t,n,r){if(K(e))return i({id:e,name:r,blob:t,base64:n});if(R(e))return i(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 U(n,e)[0]},removeByUri:function(t){n=U(n,function(e){return e.blobUri()!==t||(ye(e.blobUri()),!1)})},destroy:function(){I(n,function(e){ye(e.blobUri())}),n=[]}}),u=function w(){var n={},r=function(e,t){return{status:e,resultUri:t}},t=function(e){return e in n};return{hasBlobUri:t,getResultUri:function(e){var t=n[e];return t?t.resultUri:null},isPending:function(e){return!!t(e)&&1===n[e].status},isUploaded:function(e){return!!t(e)&&2===n[e].status},markPending:function(e){n[e]=r(1,null)},markUploaded:function(e,t){n[e]=r(2,t)},removeFailed:function(e){delete n[e]},destroy:function(){n={}}}}(),l=[],c=function(t){return function(e){return o.selection?t(e):[]}},f=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},d=function(e,t,n){return e=f(e,'src="'+t+'"','src="'+n+'"'),e=f(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"')},h=function(t,n){I(o.undoManager.data,function(e){"fragmented"===e.type?e.fragments=X(e.fragments,function(e){return d(e,t,n)}):e.content=d(e.content,t,n)})},m=function(){return o.notificationManager.open({text:o.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})},g=function(e,t){s.removeByUri(e.src),h(e.src,t),o.$(e).attr({src:Mc(o)?t+"?"+(new Date).getTime():t,"data-mce-src":o.convertURL(t,"src")})},p=function(n){return a||(a=pd(u,{url:Bc(o),basePath:Oc(o),credentials:_c(o),handler:Pc(o)})),b().then(c(function(r){var e;return e=X(r,function(e){return e.blobInfo}),a.upload(e,m).then(c(function(e){var t=X(e,function(e,t){var n=r[t].image;return e.status&&Dc(o)?g(n,e.url):e.error&&fd.uploadError(o,e.error),{element:n,status:e.status}});return n&&n(t),t}))}))},v=function(e){if(Rc(o))return p(e)},y=function(t){return!1!==oe(l,function(e){return e(t)})&&(0!==t.getAttribute("src").indexOf("data:")||Ac(o)(t))},b=function(){return r||(r=Sd(u,s)),r.findAll(o.getBody(),y).then(c(function(e){return e=U(e,function(e){return"string"!=typeof e||(fd.displayError(o,e),!1)}),I(e,function(e){h(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")}),e}))},C=function(e){return e.replace(/src="(blob:[^"]+)"/g,function(e,n){var t=u.getResultUri(n);if(t)return'src="'+t+'"';var r=s.getByUri(n);return r||(r=J(o.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 o.on("SetContent",function(){Rc(o)?v():b()}),o.on("RawSaveContent",function(e){e.content=C(e.content)}),o.on("GetContent",function(e){e.source_view||"raw"===e.format||(e.content=C(e.content))}),o.on("PostRender",function(){o.parser.addNodeFilter("img",function(e){I(e,function(e){var t=e.attr("src");if(!s.getByUri(t)){var n=u.getResultUri(t);n&&e.attr("src",n)}})})}),{blobCache:s,addFilter:function(e){l.push(e)},uploadImages:p,uploadImagesAuto:v,scanForImages:b,destroy:function(){s.destroy(),u.destroy(),r=a=null}}},Md=function(e,t,n){return Zr(t,e)?no(e,function(e){return n(e)||Qr(e,t)}).slice(0,-1):[]},Dd=function(e,t){return Md(e,t,$(!1))},Bd=Dd,Od=function(e,t){return[e].concat(Dd(e,t))},_d=function(e,t){return e.hasOwnProperty(t.nodeName)},Pd=function(e,t){if(_o.isText(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||_d(e,t.nextSibling)))return!0}return!1},Hd=function(e){var t,n,r,o,i,a,s,u,l,c,f=e.dom,d=e.selection,h=e.schema,m=h.getBlockElements(),g=d.getStart(),p=e.getBody(),v=wc(e);if(g&&_o.isElement(g)&&v&&(c=p.nodeName.toLowerCase(),h.isValidChild(c,v.toLowerCase())&&(y=m,b=p,C=g,!V(Bd(yr.fromDom(C),yr.fromDom(b)),function(e){return _d(y,e.dom())})))){var y,b,C,w,x;for(n=(t=d.getRng()).startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,l=xf(e),g=p.firstChild;g;)if(w=m,x=g,_o.isText(x)||_o.isElement(x)&&!_d(w,x)&&!Ml(x)){if(Pd(m,g)){g=(s=g).nextSibling,f.remove(s);continue}a||(a=f.create(v,xc(e)),g.parentNode.insertBefore(a,g),u=!0),g=(s=g).nextSibling,a.appendChild(s)}else a=null,g=g.nextSibling;u&&l&&(t.setStart(n,r),t.setEnd(o,i),d.setRng(t),e.nodeChanged())}},Ld=function(e){wc(e)&&e.on("NodeChange",d(Hd,e))},Vd=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},Id=function(t){return lo(t).fold($([t]),function(e){return[t].concat(Id(e))})},Fd=function(t){return co(t).fold($([t]),function(e){return"br"===xr(e)?ro(e).map(function(e){return[t].concat(Fd(e))}).getOr([]):[t].concat(Fd(e))})},Ud=function(o,e){return bs([(i=e,a=i.startContainer,s=i.startOffset,_o.isText(a)?0===s?T.some(yr.fromDom(a)):T.none():T.from(a.childNodes[s]).map(yr.fromDom)),(t=e,n=t.endContainer,r=t.endOffset,_o.isText(n)?r===n.data.length?T.some(yr.fromDom(n)):T.none():T.from(n.childNodes[r-1]).map(yr.fromDom))],function(e,t){var n=Q(Id(o),d(Qr,e)),r=Q(Fd(o),d(Qr,t));return n.isSome()&&r.isSome()}).getOr(!1);var t,n,r,i,a,s},jd=function(e,t,n,r){var o=n,i=new Po(n,o),a=e.schema.getNonEmptyElements();do{if(3===n.nodeType&&0!==sn.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(Fe.ie&&Fe.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))},qd=function(e){var t=e.selection.getSel();return t&&0<t.rangeCount},$d=function(){function e(r){var o;this.lastPath=[],this.editor=r;var t=this;"onselectionchange"in r.getDoc()||r.on("NodeChange click mouseup keyup focus",function(e){var t,n;n={startContainer:(t=r.selection.getRng()).startContainer,startOffset:t.startOffset,endContainer:t.endContainer,endOffset:t.endOffset},"nodechange"!==e.type&&Vd(n,o)||r.fire("SelectionChange"),o=n}),r.on("contextmenu",function(){r.fire("SelectionChange")}),r.on("SelectionChange",function(){var e=r.selection.getStart(!0);!e||!Fe.range&&r.selection.isCollapsed()||qd(r)&&!t.isSameElementPath(e)&&r.dom.isChildOf(e,r.getBody())&&r.nodeChanged({selectionChange:!0})}),r.on("mouseup",function(e){!e.isDefaultPrevented()&&qd(r)&&("IMG"===r.selection.getNode().nodeName?We.setEditorTimeout(r,function(){r.nodeChanged()}):r.nodeChanged())})}return e.prototype.nodeChanged=function(e){var t,n,r,o=this.editor.selection;this.editor.initialized&&o&&!this.editor.settings.disable_nodechange&&!this.editor.readonly&&(r=this.editor.getBody(),(t=o.getStart(!0)||r).ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,function(e){if(e===r)return!0;n.push(e)}),(e=e||{}).element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n;if((n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e)).length===this.lastPath.length){for(t=n.length;0<=t&&n[t]===this.lastPath[t];t--);if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),Wd=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}},Kd=function(e,t){return n=(s=e).inline?Wd(s.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,s=Wd(e.getContentAreaContainer()),u=(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-s.left+u.left,top:t.pageY-s.top+u.top}}(e,t)).left-n.left+r.left,pageY:o.top-n.top+r.top};var n,r,o,i,a,s},Xd=_o.isContentEditableFalse,Yd=_o.isContentEditableTrue,Gd=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Jd=function(s,u){return function(e){if(0===e.button){var t=Q(u.dom.getParents(e.target),xs(Xd,Yd)).getOr(null);if(i=u.getBody(),Xd(a=t)&&a!==i){var n=u.dom.getPos(t),r=u.getBody(),o=u.getDoc().documentElement;s.element=t,s.screenX=e.screenX,s.screenY=e.screenY,s.maxX=(u.inline?r.scrollWidth:o.offsetWidth)-2,s.maxY=(u.inline?r.scrollHeight:o.offsetHeight)-2,s.relX=e.pageX-n.x,s.relY=e.pageY-n.y,s.width=t.offsetWidth,s.height=t.offsetHeight,s.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}(u,t,s.width,s.height)}}var i,a}},Qd=function(c,f){return function(e){if(c.dragging&&(u=(i=f).selection,l=u.getSel().getRangeAt(0).startContainer,a=3===l.nodeType?l.parentNode:l,s=c.element,a!==s&&!i.dom.isChildOf(a,s)&&!Xd(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(){Gd(c.element),f.insertContent(f.dom.getOuterHTML(t)),f._selectionOverrides.hideFakeCaret()}))}var r,o,i,a,s,u,l;Zd(c)}},Zd=function(e){e.dragging=!1,e.element=null,Gd(e.ghost)},eh=function(e){var t,n,r,o,i,a,g,p,v,s,u,l={};t=_i.DOM,a=j.document,n=Jd(l,e),g=l,p=e,v=We.throttle(function(e,t){p._selectionOverrides.hideFakeCaret(),p.selection.placeCaretAt(e,t)},0),r=function(e){var t,n,r,o,i,a,s,u,l,c,f,d,h=Math.max(Math.abs(e.screenX-g.screenX),Math.abs(e.screenY-g.screenY));if(g.element&&!g.dragging&&10<h){if(p.fire("dragstart",{target:g.element}).isDefaultPrevented())return;g.dragging=!0,p.focus()}if(g.dragging){var m=(f=g,{pageX:(d=Kd(p,e)).pageX-f.relX,pageY:d.pageY+5});l=g.ghost,c=p.getBody(),l.parentNode!==c&&c.appendChild(l),t=g.ghost,n=m,r=g.width,o=g.height,i=g.maxX,a=g.maxY,u=s=0,t.style.left=n.pageX+"px",t.style.top=n.pageY+"px",n.pageX+r>i&&(s=n.pageX+r-i),n.pageY+o>a&&(u=n.pageY+o-a),t.style.width=r-s+"px",t.style.height=o-u+"px",v(e.clientX,e.clientY)}},o=Qd(l,e),s=l,i=function(){s.dragging&&u.fire("dragend"),Zd(s)},(u=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)})},th=function(e){var n;eh(e),(n=e).on("drop",function(e){var t="undefined"!=typeof e.clientX?n.getDoc().elementFromPoint(e.clientX,e.clientY):null;(Xd(t)||Xd(n.dom.getContentEditableParent(t)))&&e.preventDefault()})},nh=function(e){return J(e,function(e,t){return e.concat(function(t){var e=function(e){return X(e,function(e){return(e=cs(e)).node=t,e})};if(_o.isElement(t))return e(t.getClientRects());if(_o.isText(t)){var n=t.ownerDocument.createRange();return n.setStart(t,0),n.setEnd(t,t.data.length),e(n.getClientRects())}}(t))},[])};(kd=zd||(zd={}))[kd.Up=-1]="Up",kd[kd.Down=1]="Down";var rh,oh,ih,ah=function(o,i,a,e,s,t){var n,u,l=0,c=[],r=function(e){var t,n,r;for(r=nh([e]),-1===o&&(r=r.reverse()),t=0;t<r.length;t++)if(n=r[t],!a(n,u)){if(0<c.length&&i(n,tn.last(c))&&l++,n.line=l,s(n))return!0;c.push(n)}};return(u=tn.last(t.getClientRects()))&&(r(n=t.getNode()),function(e,t,n,r){for(;r=Iu(r,e,us,t);)if(n(r))return}(o,e,r,n)),c},sh=d(ah,zd.Up,hs,ms),uh=d(ah,zd.Down,ms,hs),lh=function(n){return function(e){return t=n,e.line>t;var t}},ch=function(n){return function(e){return t=n,e.line===t;var t}},fh=_o.isContentEditableFalse,dh=Iu,hh=function(e,t){return Math.abs(e.left-t)},mh=function(e,t){return Math.abs(e.right-t)},gh=function(e,t){return e>=t.left&&e<=t.right},ph=function(e,o){return tn.reduce(e,function(e,t){var n,r;return n=Math.min(hh(e,o),mh(e,o)),r=Math.min(hh(t,o),mh(t,o)),gh(o,t)?t:gh(o,e)?e:r===n&&fh(t.node)?t:r<n?t:e})},vh=function(e,t,n,r){for(;r=dh(r,e,us,t);)if(n(r))return},yh=function(e,t,n){var r,o,i,a,s,u,l,c=nh(U(de(e.getElementsByTagName("*")),Ru)),f=U(c,function(e){return n>=e.top&&n<=e.bottom});return(r=ph(f,t))&&(r=ph((a=e,l=function(t,e){var n;return n=U(nh([e]),function(e){return!t(e,s)}),u=u.concat(n),0===n.length},(u=[]).push(s=r),vh(zd.Up,a,d(l,hs),s.node),vh(zd.Down,a,d(l,ms),s.node),u),t))&&Ru(r.node)?(i=t,{node:(o=r).node,before:hh(o,i)<mh(o,i)}):null},bh=function(i,a,e){return!e.collapsed&&J(e.getClientRects(),function(e,t){return e||(o=a,(r=i)>=(n=t).left&&r<=n.right&&o>=n.top&&o<=n.bottom);var n,r,o},!1)},Ch=_o.isContentEditableTrue,wh=_o.isContentEditableFalse,xh=function(e,t,n,r,o){return t._selectionOverrides.showCaret(e,n,r,o)},Nh=function(e,t){var n,r;return e.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?null:((r=(n=t).ownerDocument.createRange()).selectNode(n),r)},Eh=function(e,t,n){var r=Xu(1,e.getBody(),t),o=qs.fromRangeStart(r),i=o.getNode();if(wh(i))return xh(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(wh(a))return xh(1,e,a,!1,!1);var s=e.dom.getParent(o.getNode(),function(e){return wh(e)||Ch(e)});return wh(s)?xh(1,e,s,!1,n):null},Sh=function(e,t,n){if(!t||!t.collapsed)return t;var r=Eh(e,t,n);return r||t},zh=function(t){var e=oa(function(){if(!t.removed&&t.getBody().contains(j.document.activeElement)&&t.selection.getRng().collapsed){var e=Sh(t,t.selection.getRng(),!1);t.selection.setRng(e)}},0);t.on("focus",function(){e.throttle()}),t.on("blur",function(){e.cancel()})},kh={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 Fe.mac?e.metaKey:e.ctrlKey&&!e.altKey}},Th=(rh="\xa0",function(e){return rh===e}),Ah=function(e){return/^[\r\n\t ]$/.test(e)},Rh=function(e){return!Ah(e)&&!Th(e)},Mh=function(n,r,o){return T.from(o.container()).filter(_o.isText).exists(function(e){var t=n?0:-1;return r(e.data.charAt(o.offset()+t))})},Dh=d(Mh,!0,Ah),Bh=d(Mh,!1,Ah),Oh=function(e){var t=e.container();return _o.isText(t)&&0===t.data.length},_h=function(t,n){return function(e){return T.from(ju(t?0:-1,e)).filter(n).isSome()}},Ph=function(e){return"IMG"===e.nodeName&&"block"===Vr(yr.fromDom(e),"display")},Hh=function(e){return _o.isContentEditableFalse(e)&&!_o.isBogusAll(e)},Lh=_h(!0,Ph),Vh=_h(!1,Ph),Ih=_h(!0,_o.isTable),Fh=_h(!1,_o.isTable),jh=_h(!0,Hh),qh=_h(!1,Hh),$h=_o.isContentEditableTrue,Wh=_o.isContentEditableFalse,Kh=function(e,t){for(var n=e.getBody();t&&t!==n;){if($h(t)||Wh(t))return t;t=t.parentNode}return null},Xh=function(m){var g,a=m.getBody(),o=Tu(m.getBody(),function(e){return m.dom.isBlock(e)},function(){return xf(m)}),p="sel-"+m.dom.uniqueId(),s=function(e){e&&m.selection.setRng(e)},u=function(){return m.selection.getRng()},v=function(e,t,n,r){return void 0===r&&(r=!0),m.fire("ShowCaret",{target:t,direction:e,before:n}).isDefaultPrevented()?null:(r&&m.selection.scrollIntoView(t,-1===e),o.show(n,t))},y=function(e,t){return t=Xu(e,a,t),-1===e?qs.fromRangeStart(t):qs.fromRangeEnd(t)},t=function(e){return Ua(e)||Xa(e)||Ya(e)},b=function(e){return t(e.startContainer)||t(e.endContainer)},l=function(e,t){var n,r,o,i,a,s,u,l,c,f,d=m.$,h=m.dom;if(!e)return null;if(e.collapsed){if(!b(e))if(!1===t){if(l=y(-1,e),Ru(l.getNode(!0)))return v(-1,l.getNode(!0),!1,!1);if(Ru(l.getNode()))return v(-1,l.getNode(),!l.isAtEnd(),!1)}else{if(l=y(1,e),Ru(l.getNode()))return v(1,l.getNode(),!l.isAtEnd(),!1);if(Ru(l.getNode(!0)))return v(1,l.getNode(!0),!1,!1)}return null}return i=e.startContainer,a=e.startOffset,s=e.endOffset,3===i.nodeType&&0===a&&Wh(i.parentNode)&&(i=i.parentNode,a=h.nodeIndex(i),i=i.parentNode),1!==i.nodeType?null:(s===a+1&&(n=i.childNodes[a]),Wh(n)?(c=f=n.cloneNode(!0),(u=m.fire("ObjectSelected",{target:n,targetClone:c})).isDefaultPrevented()?null:(r=Ca(yr.fromDom(m.getBody()),"#"+p).fold(function(){return d([])},function(e){return d([e.dom()])}),c=u.targetClone,0===r.length&&(r=d('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",p)).appendTo(m.getBody()),e=m.dom.createRng(),c===f&&Fe.ie?(r.empty().append('<p style="font-size: 0" data-mce-bogus="all">\xa0</p>').append(c),e.setStartAfter(r[0].firstChild.firstChild),e.setEndAfter(c)):(r.empty().append("\xa0").append(c).append("\xa0"),e.setStart(r[0].firstChild,1),e.setEnd(r[0].lastChild,0)),r.css({top:h.getPos(n,m.getBody()).y}),r[0].focus(),(o=m.selection.getSel()).removeAllRanges(),o.addRange(e),I(ma(yr.fromDom(m.getBody()),"*[data-mce-selected]"),function(e){Lr(e,"data-mce-selected")}),n.setAttribute("data-mce-selected","1"),g=n,C(),e)):null)},c=function(){g&&(g.removeAttribute("data-mce-selected"),Ca(yr.fromDom(m.getBody()),"#"+p).each(na),g=null),Ca(yr.fromDom(m.getBody()),"#"+p).each(na),g=null},C=function(){o.hide()};return Fe.ceFalse&&function(){m.on("mouseup",function(e){var t=u();t.collapsed&&td(m,e.clientX,e.clientY)&&s(Eh(m,t,!1))}),m.on("click",function(e){var t;(t=Kh(m,e.target))&&(Wh(t)&&(e.preventDefault(),m.focus()),$h(t)&&m.dom.isChildOf(t,m.selection.getNode())&&c())}),m.on("blur NewBlock",function(){c()}),m.on("ResizeWindow FullscreenStateChanged",function(){return o.reposition()});var n,r,i=function(e,t){var n,r,o=m.dom.getParent(e,m.dom.isBlock),i=m.dom.getParent(t,m.dom.isBlock);return!(!o||!m.dom.isChildOf(o,i)||!1!==Wh(Kh(m,o)))||o&&(n=o,r=i,!(m.dom.getParent(n,m.dom.isBlock)===m.dom.getParent(r,m.dom.isBlock)))&&function(e){var t=cl(e);if(!e.firstChild)return!1;var n=qs.before(e.firstChild),r=t.next(n);return r&&!jh(r)&&!qh(r)}(o)};r=!1,(n=m).on("touchstart",function(){r=!1}),n.on("touchmove",function(){r=!0}),n.on("touchend",function(e){var t=Kh(n,e.target);Wh(t)&&(r||(e.preventDefault(),l(Nh(n,t))))}),m.on("mousedown",function(e){var t,n=e.target;if((n===a||"HTML"===n.nodeName||m.dom.isChildOf(n,a))&&!1!==td(m,e.clientX,e.clientY))if(t=Kh(m,n))Wh(t)?(e.preventDefault(),l(Nh(m,t))):(c(),$h(t)&&e.shiftKey||bh(e.clientX,e.clientY,m.selection.getRng())||(C(),m.selection.placeCaretAt(e.clientX,e.clientY)));else if(!1===Ru(n)){c(),C();var r=yh(a,e.clientX,e.clientY);if(r&&!i(e.target,r.node)){e.preventDefault();var o=v(1,r.node,r.before,!1);m.getBody().focus(),s(o)}}}),m.on("keypress",function(e){kh.modifierPressed(e)||(e.keyCode,Wh(m.selection.getNode())&&e.preventDefault())}),m.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}}),m.on("SetSelectionRange",function(e){var t;(t=l(e.range,e.forward))&&(e.range=t)}),m.on("AfterSetSelectionRange",function(e){var t,n=e.range;b(n)||"mcepastebin"===n.startContainer.parentNode.id||C(),t=n.startContainer.parentNode,m.dom.hasClass(t,"mce-offscreen-selection")||c()}),m.on("copy",function(e){var t,n=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!Fe.ie){var r=(t=m.dom.get(p))?t.getElementsByTagName("*")[0]:t;r&&(e.preventDefault(),n.clearData(),n.setData("text/html",r.outerHTML),n.setData("text/plain",r.outerText))}}),th(m),zh(m)}(),{showCaret:v,showBlockCaretContainer:function(e){e.hasAttribute("data-mce-caret")&&(Ga(e),s(u()),m.selection.scrollIntoView(e[0]))},hideFakeCaret:C,destroy:function(){o.destroy(),g=null}}},Yh=0,Gh=2,Jh=1,Qh=function(m,g){var e=m.length+g.length+2,p=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,s=n;a<t||s<r;)a<t&&s<r&&m[a]===g[s]?(o.push([0,m[a]]),++a,++s):r-n<t-e?(o.push([2,m[a]]),++a):(o.push([1,g[s]]),++s);else{l(e,i.start,n,i.start-i.diag,o);for(var u=i.start;u<i.end;++u)o.push([0,m[u]]);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&&m[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,s,u,l,c,f=o-i,d=i+o,h=(d%2==0?d:d+1)/2;for(p[1+h]=e,v[1+h]=t+1,a=0;a<=h;++a){for(s=-a;s<=a;s+=2){for(u=s+h,s===-a||s!==a&&p[u-1]<p[u+1]?p[u]=p[u+1]:p[u]=p[u-1]+1,c=(l=p[u])-e+n-s;l<t&&c<r&&m[l]===g[c];)p[u]=++l,++c;if(f%2!=0&&f-a<=s&&s<=f+a&&v[u-f]<=p[u])return y(v[u-f],s+e-n,t,r)}for(s=f-a;s<=f+a;s+=2){for(u=s+h-f,s===f-a||s!==f+a&&v[u+1]<=v[u-1]?v[u]=v[u+1]-1:v[u]=v[u-1],c=(l=v[u]-1)-e+n-s;e<=l&&n<=c&&m[l]===g[c];)v[u]=l--,c--;if(f%2==0&&-a<=s&&s<=a&&v[u]<=p[u+f])return y(v[u],s+e-n,t,r)}}},t=[];return l(0,m.length,0,g.length,t),t},Zh=function(e){return _o.isElement(e)?e.outerHTML:_o.isText(e)?ui.encodeRaw(e.data,!1):_o.isComment(e)?"\x3c!--"+e.data+"--\x3e":""},em=function(e,t,n){var r=function(e){var t,n,r;for(r=j.document.createElement("div"),t=j.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)},tm=function(e){return U(X(de(e.childNodes),Zh),function(e){return 0<e.length})},nm=function(e,t){var n,r,o,i=X(de(t.childNodes),Zh);return n=Qh(i,e),r=t,o=0,I(n,function(e){e[0]===Yh?o++:e[0]===Jh?(em(r,e[1],o),o++):e[0]===Gh&&function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}}(r,o)}),t},rm=ji(T.none()),om=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},im=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},am=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},sm=function(e){var t=yr.fromTag("body",rm.get().getOrThunk(function(){var e=j.document.implementation.createHTMLDocument("undo");return rm.set(T.some(e)),e}));return Ba(t,am(e)),I(ma(t,"*[data-mce-bogus]"),ra),t.dom().innerHTML},um=function(n){var e,t,r;return e=tm(n.getBody()),-1!==(t=(r=re(e,function(e){var t=dc.trimInternal(n.serializer,e);return 0<t.length?[t]:[]})).join("")).indexOf("</iframe>")?om(r):im(t)},lm=function(e,t,n){"fragmented"===t.type?nm(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(n?t.beforeBookmark:t.bookmark)},cm=function(e,t){return!(!e||!t)&&(r=t,am(e)===am(r)||(n=t,sm(e)===sm(n)));var n,r},fm=function(s){var u,r,o=this,l=0,c=[],t=0,f=function(){return 0===t},i=function(e){f()&&(o.typing=e)},d=function(e){s.setDirty(e)},a=function(e){i(!1),o.add({},e)},n=function(){o.typing&&(i(!1),o.add())};return s.on("init",function(){o.add()}),s.on("BeforeExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&(n(),o.beforeChange())}),s.on("ExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&a(e)}),s.on("ObjectResizeStart cut",function(){o.beforeChange()}),s.on("SaveContent ObjectResized blur",a),s.on("dragend",a),s.on("keyup",function(e){var t=e.keyCode;e.isDefaultPrevented()||((33<=t&&t<=36||37<=t&&t<=40||45===t||e.ctrlKey)&&(a(),s.nodeChanged()),46!==t&&8!==t||s.nodeChanged(),r&&o.typing&&!1===cm(um(s),c[0])&&(!1===s.isDirty()&&(d(!0),s.fire("change",{level:c[0],lastLevel:null})),s.fire("TypingUndo"),r=!1,s.nodeChanged()))}),s.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)}}),s.on("mousedown",function(e){o.typing&&a(e)}),s.on("input",function(e){var t;e.inputType&&("insertReplacementText"===e.inputType||"insertText"===(t=e).inputType&&null===t.data)&&a(e)}),s.addShortcut("meta+z","","Undo"),s.addShortcut("meta+y,meta+shift+z","","Redo"),s.on("AddUndo Undo Redo ClearUndos",function(e){e.isDefaultPrevented()||s.nodeChanged()}),o={data:c,typing:!1,beforeChange:function(){f()&&(u=fu.getUndoBookmark(s.selection))},add:function(e,t){var n,r,o,i=s.settings;if(o=um(s),e=e||{},e=sn.extend(e,o),!1===f()||s.removed)return null;if(r=c[l],s.fire("BeforeAddUndo",{level:e,lastLevel:r,originalEvent:t}).isDefaultPrevented())return null;if(r&&cm(r,e))return null;if(c[l]&&(c[l].beforeBookmark=u),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=fu.getUndoBookmark(s.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 s.fire("AddUndo",a),0<l&&(d(!0),s.fire("change",a)),e},undo:function(){var e;return o.typing&&(o.add(),o.typing=!1,i(!1)),0<l&&(e=c[--l],lm(s,e,!0),d(!0),s.fire("Undo",{level:e})),e},redo:function(){var e;return l<c.length-1&&(e=c[++l],lm(s,e,!1),d(!0),s.fire("Redo",{level:e})),e},clear:function(){c=[],l=0,o.typing=!1,o.data=c,s.fire("ClearUndos")},reset:function(){o.clear(),o.add()},hasUndo:function(){return 0<l||o.typing&&c[0]&&!cm(um(s),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],lm(s,n,!0),o.transact(t)&&(c[l-1].beforeBookmark=r))}}},dm=function(e){var t=ma(e,"br"),n=U(function(e){for(var t=[],n=e.dom();n;)t.push(yr.fromDom(n)),n=n.lastChild;return t}(e).slice(-1),Fo);t.length===n.length&&I(n,na)},hm=function(e){ta(e),Zi(e,yr.fromHtml('<br data-mce-bogus="1">'))},mm=function(n){co(n).each(function(t){ro(t).each(function(e){Vo(n)&&Fo(t)&&Vo(e)&&na(t)})})},gm=_l.isEq,pm=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},vm=function(t,e,n,r){var o=t.dom.getRoot();return e!==o&&(e=t.dom.getParent(e,function(e){return!!pm(t,e,n)||e.parentNode===o||!!Cm(t,e,n,r,!0)}),Cm(t,e,n,r))},ym=function(e,t,n){return!!gm(t,n.inline)||!!gm(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0)},bm=function(e,t,n,r,o,i){var a,s,u,l=n[r];if(n.onmatch)return n.onmatch(t,n,r);if(l)if("undefined"==typeof l.length){for(a in l)if(l.hasOwnProperty(a)){if(s="attributes"===r?e.getAttrib(t,a):_l.getStyle(e,t,a),o&&!s&&!n.exact)return;if((!o||n.exact)&&!gm(s,_l.normalizeStyleValue(e,_l.replaceVars(l[a],i),a)))return}}else for(u=0;u<l.length;u++)if("attributes"===r?e.getAttrib(t,l[u]):_l.getStyle(e,t,l[u]))return n;return n},Cm=function(e,t,n,r,o){var i,a,s,u,l=e.formatter.get(n),c=e.dom;if(l&&t)for(a=0;a<l.length;a++)if(i=l[a],ym(e.dom,t,i)&&bm(c,t,i,"attributes",o,r)&&bm(c,t,i,"styles",o,r)){if(u=i.classes)for(s=0;s<u.length;s++)if(!e.dom.hasClass(t,u[s]))return;return i}},wm={matchNode:Cm,matchName:ym,match:function(e,t,n,r){var o;return r?vm(e,r,t,n):(r=e.selection.getNode(),!!vm(e,r,t,n)||!((o=e.selection.getStart())===r||!vm(e,o,t,n)))},matchAll:function(r,o,i){var e,a=[],s={};return e=r.selection.getStart(),r.dom.getParent(e,function(e){var t,n;for(t=0;t<o.length;t++)n=o[t],!s[n]&&Cm(r,e,n,i)&&(s[n]=!0,a.push(n))},r.dom.getRoot()),a},canApply:function(e,t){var n,r,o,i,a,s=e.formatter.get(t),u=e.dom;if(s)for(n=e.selection.getStart(),r=_l.getParents(u,n),i=s.length-1;0<=i;i--){if(!(a=s[i].selector)||s[i].defaultBlock)return!0;for(o=r.length-1;0<=o;o--)if(u.is(r[o],a))return!0}return!1},matchesUnInheritedFormatSelector:pm},xm=function(e,t){return e.splitText(t)},Nm=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&_o.isText(t)?0<n&&n<t.nodeValue.length&&(t=(r=xm(t,n)).previousSibling,n<o?(t=r=xm(r,o-=n).previousSibling,o=r.nodeValue.length,n=0):o=0):(_o.isText(t)&&0<n&&n<t.nodeValue.length&&(t=xm(t,n),n=0),_o.isText(r)&&0<o&&o<r.nodeValue.length&&(o=(r=xm(r,o).previousSibling).nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:o}},Em=function(e,t,n){if(0!==n){var r,o,i,a=e.data.slice(t,t+n),s=t+n>=e.data.length,u=0===t;e.replaceData(t,n,(o=u,i=s,J((r=a).split(""),function(e,t){return-1!==" \f\n\r\t\x0B".indexOf(t)||"\xa0"===t?e.previousCharIsSpace||""===e.str&&o||e.str.length===r.length-1&&i?{previousCharIsSpace:!1,str:e.str+"\xa0"}:{previousCharIsSpace:!0,str:e.str+" "}:{previousCharIsSpace:!1,str:e.str+t}},{previousCharIsSpace:!1,str:""}).str))}},Sm=function(e,t){var n,r=e.data.slice(t),o=r.length-(n=r,n.replace(/^\s+/g,"")).length;return Em(e,t,o)},zm=function(e,t){var n,r,o,i=yr.fromDom(e),a=yr.fromDom(t);return n=a,r="pre,code",o=d(Qr,i),ba(n,r,o).isSome()},km=function(e,t){return as(t)&&!1===(r=e,o=t,_o.isText(o)&&/^[ \t\r\n]*$/.test(o.data)&&!1===zm(r,o))||(n=t,_o.isElement(n)&&"A"===n.nodeName&&n.hasAttribute("name"))||Tm(t);var n,r,o},Tm=_o.hasAttribute("data-mce-bookmark"),Am=_o.hasAttribute("data-mce-bogus"),Rm=_o.hasAttributeValue("data-mce-bogus","all"),Mm=function(e){return function(e){var t,n=0;if(km(e,e))return!1;if(!(t=e.firstChild))return!0;var r=new Po(t,e);do{if(Rm(t))t=r.next(!0);else if(Am(t))t=r.next();else if(_o.isBr(t))n++,t=r.next();else{if(km(e,t))return!1;t=r.next()}}while(t);return n<=1}(e.dom())},Dm=function(e,t){return r=e,o=(n=t).container(),i=n.offset(),!1===qs.isTextPosition(n)&&o===r.parentNode&&i>qs.before(r).offset()?qs(t.container(),t.offset()-1):t;var n,r,o,i},Bm=function(e){return as(e.previousSibling)?T.some((t=e.previousSibling,_o.isText(t)?qs(t,t.data.length):qs.after(t))):e.previousSibling?wl.lastPositionIn(e.previousSibling):T.none();var t},Om=function(e){return as(e.nextSibling)?T.some((t=e.nextSibling,_o.isText(t)?qs(t,0):qs.before(t))):e.nextSibling?wl.firstPositionIn(e.nextSibling):T.none();var t},_m=function(r,o){return Bm(o).orThunk(function(){return Om(o)}).orThunk(function(){return e=r,t=o,n=qs.before(t.previousSibling?t.previousSibling:t.parentNode),wl.prevPosition(e,n).fold(function(){return wl.nextPosition(e,qs.after(t))},T.some);var e,t,n})},Pm=function(n,r){return Om(r).orThunk(function(){return Bm(r)}).orThunk(function(){return e=n,t=r,wl.nextPosition(e,qs.after(t)).fold(function(){return wl.prevPosition(e,qs.before(t))},T.some);var e,t})},Hm=function(e,t,n){return(r=e,o=t,i=n,r?Pm(o,i):_m(o,i)).map(d(Dm,n));var r,o,i},Lm=function(t,n,e){e.fold(function(){t.focus()},function(e){t.selection.setRng(e.toRange(),n)})},Vm=function(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(xr(t))},Im=function(e){if(Mm(e)){var t=yr.fromHtml('<br data-mce-bogus="1">');return ta(e),Zi(e,t),T.some(qs.before(t.dom()))}return T.none()},Fm=function(e,t,c){var n=ro(e).filter(function(e){return _o.isText(e.dom())}),r=oo(e).filter(function(e){return _o.isText(e.dom())});return na(e),bs([n,r,t],function(e,t,n){var r,o,i,a,s=e.dom(),u=t.dom(),l=s.data.length;return o=u,i=c,a=lr((r=s).data).length,r.appendData(o.data),na(yr.fromDom(o)),i&&Sm(r,a),n.container()===u?qs(s,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-lr(r).length,Em(t,n-o,o);var t,n,r,o}),r.each(function(e){return Sm(e.dom(),0)})),t})},Um=function(t,n,e,r){void 0===r&&(r=!0);var o,i,a=Hm(n,t.getBody(),e.dom()),s=va(e,d(Vm,t),(o=t.getBody(),function(e){return e.dom()===o})),u=Fm(e,a,(i=e,Br(t.schema.getTextInlineElements(),xr(i))));t.dom.isEmpty(t.getBody())?(t.setContent(""),t.selection.setCursorLocation()):s.bind(Im).fold(function(){r&&Lm(t,n,u)},function(e){r&&Lm(t,n,T.some(e))})},jm=Pa,qm="_mce_caret",$m=function(e){return 0<function(e){for(var t=[];e;){if(3===e.nodeType&&e.nodeValue!==jm||1<e.childNodes.length)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t}(e).length},Wm=function(e){if(e){var t=new Po(e,e);for(e=t.current();e;e=t.next())if(3===e.nodeType)return e}return null},Km=function(e){var t=yr.fromTag("span");return Pr(t,{id:qm,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&Zi(t,yr.fromText(jm)),t},Xm=function(e,t,n){void 0===n&&(n=!0);var r,o=e.dom,i=e.selection;if($m(t))Um(e,!1,yr.fromDom(t),n);else{var a=i.getRng(),s=o.getParent(t,o.isBlock),u=((r=Wm(t))&&r.nodeValue.charAt(0)===jm&&r.deleteData(0,1),r);a.startContainer===u&&0<a.startOffset&&a.setStart(u,a.startOffset-1),a.endContainer===u&&0<a.endOffset&&a.setEnd(u,a.endOffset-1),o.remove(t,!0),s&&o.isEmpty(s)&&hm(yr.fromDom(s)),i.setRng(a)}},Ym=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)Xm(e,t,n);else if(!(t=mu(e.getBody(),o.getStart())))for(;t=r.get(qm);)Xm(e,t,!1)},Gm=function(e,t,n){var r=e.dom,o=r.getParent(n,d(_l.isTextBlock,e));o&&r.isEmpty(o)?n.parentNode.replaceChild(t,n):(dm(yr.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},Jm=function(e,t){return e.appendChild(t),t},Qm=function(e,t){var n=G(e,function(e,t){return Jm(e,t.cloneNode(!1))},t);return Jm(n,n.ownerDocument.createTextNode(jm))},Zm=function(i){i.on("mouseup keydown",function(e){var t,n,r,o;t=i,n=e.keyCode,r=t.selection,o=t.getBody(),Ym(t,null,!1),8!==n&&46!==n||!r.isCollapsed()||r.getStart().innerHTML!==jm||Ym(t,mu(o,r.getStart())),37!==n&&39!==n||Ym(t,mu(o,r.getStart()))})},eg=function(e,t){return e.schema.getTextInlineElements().hasOwnProperty(xr(t))&&!hu(t.dom())&&!_o.isBogus(t.dom())},tg={},ng=tn.filter,rg=tn.each;ih=function(e){var t,n,r=e.selection.getRng();t=_o.matchNodeNames("pre"),r.collapsed||(n=e.selection.getSelectedBlocks(),rg(ng(ng(n,t),function(e){return t(e.previousSibling)&&-1!==tn.indexOf(n,e.previousSibling)}),function(e){var t,n;t=e.previousSibling,Un(n=e).remove(),Un(t).append("<br><br>").append(n.childNodes)}))},tg[oh="pre"]||(tg[oh]=[]),tg[oh].push(ih);var og,ig=function(e,t){rg(tg[e],function(e){e(t)})},ag=sn.each,sg=function(o){this.compare=function(e,t){if(e.nodeName!==t.nodeName)return!1;var n=function(n){var r={};return ag(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")))||Ml(e)||Ml(t))}},ug=/^(src|href|style)$/,lg=sn.each,cg=_l.isEq,fg=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},dg=function(e,t,n){var r,o,i;return r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"],_o.isElement(r)&&(i=r.childNodes.length-1,!n&&o&&o--,r=r.childNodes[i<o?i:o]),_o.isText(r)&&n&&o>=r.nodeValue.length&&(r=new Po(r,e.getBody()).next()||r),_o.isText(r)&&!n&&0===o&&(r=new Po(r,e.getBody()).prev()||r),r},hg=function(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o},mg=function(e,t,n,r,o){var i=yr.fromDom(t),a=yr.fromDom(e.create(r,o)),s=n?ao(i):io(i);return ea(a,s),n?(Gi(i,a),Qi(a,i)):(Ji(i,a),Zi(a,i)),a.dom()},gg=function(e,t,n,r){return!(t=_l.getNonWhiteSpaceSibling(t,n,r))||"BR"===t.nodeName||e.isBlock(t)},pg=function(e,n,r,o,i){var t,a,s,u,l,c,f,d,h,m,g,p,v,y,b=e.dom;if(l=b,!(cg(c=o,(f=n).inline)||cg(c,f.block)||(f.selector?_o.isElement(c)&&l.is(c,f.selector):void 0)||(u=o,n.links&&"A"===u.tagName)))return!1;if("all"!==n.remove)for(lg(n.styles,function(e,t){e=_l.normalizeStyleValue(b,_l.replaceVars(e,r),t),"number"==typeof t&&(t=e,i=0),(n.remove_similar||!i||cg(_l.getStyle(b,i,t),e))&&b.setStyle(o,t,""),s=1}),s&&""===b.getAttrib(o,"style")&&(o.removeAttribute("style"),o.removeAttribute("data-mce-style")),lg(n.attributes,function(e,t){var n;if(e=_l.replaceVars(e,r),"number"==typeof t&&(t=e,i=0),!i||cg(b.getAttrib(i,t),e)){if("class"===t&&(e=b.getAttrib(o,t))&&(n="",lg(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"),ug.test(t)&&o.removeAttribute("data-mce-"+t),o.removeAttribute(t)}}),lg(n.classes,function(e){e=_l.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,m=n,p=(h=o).parentNode,v=d.dom,y=wc(d),m.block&&(y?p===v.getRoot()&&(m.list_block&&cg(h,m.list_block)||lg(sn.grep(h.childNodes),function(e){_l.isValid(d,y,e.nodeName.toLowerCase())?g?g.appendChild(e):(g=hg(v,e,y),v.setAttribs(g,d.settings.forced_root_block_attrs)):g=0})):v.isBlock(h)&&!v.isBlock(p)&&(gg(v,h,!1)||gg(v,h.firstChild,!0,1)||h.insertBefore(v.create("br"),h.firstChild),gg(v,h,!0)||gg(v,h.lastChild,!1,1)||h.appendChild(v.create("br")))),m.selector&&m.inline&&!cg(m.inline,h)||v.remove(h,1),!0):void 0},vg=pg,yg=function(u,l,c,e,f){var t,n,d=u.formatter.get(l),h=d[0],a=!0,s=u.dom,r=u.selection,i=function(e){var n,t,r,o,i,a,s=(n=u,t=e,r=l,o=c,i=f,lg(_l.getParents(n.dom,t.parentNode).reverse(),function(e){var t;a||"_start"===e.id||"_end"===e.id||(t=wm.matchNode(n,e,r,o,i))&&!1!==t.split&&(a=e)}),a);return function(e,t,n,r,o,i,a,s){var u,l,c,f,d,h,m=e.dom;if(n){for(h=n.parentNode,u=r.parentNode;u&&u!==h;u=u.parentNode){for(l=m.clone(u,!1),d=0;d<t.length;d++)if(pg(e,t[d],s,l,l)){l=0;break}l&&(c&&l.appendChild(c),f||(f=l),c=l)}!i||a.mixed&&m.isBlock(n)||(r=m.split(n,r)),c&&(o.parentNode.insertBefore(c,o),f.appendChild(o))}return r}(u,d,s,e,e,!0,h,c)},m=function(e){var t,n,r,o,i;if(_o.isElement(e)&&s.getContentEditable(e)&&(o=a,a="true"===s.getContentEditable(e),i=!0),t=sn.grep(e.childNodes),a&&!i)for(n=0,r=d.length;n<r&&!pg(u,d[n],c,e,e);n++);if(h.deep&&t.length){for(n=0,r=t.length;n<r;n++)m(t[n]);i&&(a=o)}},g=function(e){var t,n=s.get(e?"_start":"_end"),r=n[e?"firstChild":"lastChild"];return Ml(t=r)&&_o.isElement(t)&&("_start"===t.id||"_end"===t.id)&&(r=r[e?"firstChild":"lastChild"]),_o.isText(r)&&0===r.data.length&&(r=e?n.previousSibling||n.nextSibling:n.nextSibling||n.previousSibling),s.remove(n,!0),r},o=function(e){var t,n,r=e.commonAncestorContainer;if(e=Kl(u,e,d,!0),h.split){if(e=Nm(e),(t=dg(u,e,!0))!==(n=dg(u,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),fg(s,t,n)){var o=T.from(t.firstChild).getOr(t);return i(mg(s,o,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void g(!0)}if(fg(s,n,t))return o=T.from(n.lastChild).getOr(n),i(mg(s,o,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void g(!1);t=hg(s,t,"span",{id:"_start","data-mce-type":"bookmark"}),n=hg(s,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=s.nodeIndex(t),e.endContainer=n.parentNode?n.parentNode:n,e.endOffset=s.nodeIndex(n)+1}Yl(s,e,function(e){lg(e,function(e){m(e),_o.isElement(e)&&"underline"===u.dom.getStyle(e,"text-decoration")&&e.parentNode&&"underline"===_l.getTextDecoration(s,e.parentNode)&&pg(u,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,e)})})};if(e)e.nodeType?((n=s.createRng()).setStartBefore(e),n.setEndAfter(e),o(n)):o(e);else if("false"!==s.getContentEditable(r.getNode()))r.isCollapsed()&&h.inline&&!s.select("td[data-mce-selected],th[data-mce-selected]").length?function(e,t,n,r){var o,i,a,s,u,l,c,f=e.dom,d=e.selection,h=[],m=d.getRng();for(o=m.startContainer,i=m.startOffset,3===(u=o).nodeType&&(i!==o.nodeValue.length&&(s=!0),u=u.parentNode);u;){if(wm.matchNode(e,u,t,n,r)){l=u;break}u.nextSibling&&(s=!0),h.push(u),u=u.parentNode}if(l)if(s){a=d.getBookmark(),m.collapse(!0);var g=Kl(e,m,e.formatter.get(t),!0);g=Nm(g),e.formatter.remove(t,n,g),d.moveToBookmark(a)}else{c=mu(e.getBody(),l);var p=Km(!1).dom(),v=Qm(h,p);Gm(e,p,c||l),Xm(e,c,!1),d.setCursorLocation(v,1),f.isEmpty(l)&&f.remove(l)}}(u,l,c,f):(t=fu.getPersistentBookmark(u.selection,!0),o(r.getRng()),r.moveToBookmark(t),h.inline&&wm.match(u,l,c,r.getStart())&&_l.moveStart(s,r,r.getRng()),u.nodeChanged());else{e=r.getNode();for(var p=0,v=d.length;p<v&&(!d[p].ceFalseOverride||!pg(u,d[p],c,e,e));p++);}},bg=sn.each,Cg=function(e){return e&&1===e.nodeType&&!Ml(e)&&!hu(e)&&!_o.isBogus(e)},wg=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&&!Ml(n))return n}return e},xg=function(e,t,n){var r,o,i=new sg(e);if(t&&n&&(t=wg(t,"previousSibling"),n=wg(n,"nextSibling"),i.compare(t,n))){for(r=t.nextSibling;r&&r!==n;)r=(o=r).nextSibling,t.appendChild(o);return e.remove(n),sn.each(sn.grep(n.childNodes),function(e){t.appendChild(e)}),t}return n},Ng=function(e,t,n){bg(e.childNodes,function(e){Cg(e)&&(t(e)&&n(e),e.hasChildNodes()&&Ng(e,t,n))})},Eg=function(n,e){return d(function(e,t){return!(!t||!_l.getStyle(n,t,e))},e)},Sg=function(r,e,t){return d(function(e,t,n){r.setStyle(n,e,t),""===n.getAttribute("style")&&n.removeAttribute("style"),zg(r,n)},e,t)},zg=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},kg=function(e,t){var n;1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType&&(n=_l.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))},Tg=function(n,e,r,o){bg(e,function(t){bg(n.dom.select(t.inline,o),function(e){Cg(e)&&vg(n,t,r,e,t.exact?e:null)}),function(r,e,t){if(e.clear_child_styles){var n=e.links?"*:not(a)":"*";bg(r.select(n,t),function(n){Cg(n)&&bg(e.styles,function(e,t){r.setStyle(n,t,"")})})}}(n.dom,t,o)})},Ag=function(e,t,n,r){(t.styles.color||t.styles.textDecoration)&&(sn.walk(r,d(kg,e),"childNodes"),kg(e,r))},Rg=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&Ng(r,Eg(e,"fontSize"),Sg(e,"backgroundColor",_l.replaceVars(t.styles.backgroundColor,n)))},Mg=function(e,t,n,r){"sub"!==t.inline&&"sup"!==t.inline||(Ng(r,Eg(e,"fontSize"),Sg(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},Dg=function(e,t,n,r){r&&!1!==t.merge_siblings&&(r=xg(e,_l.getNonWhiteSpaceSibling(r),r),r=xg(e,r,_l.getNonWhiteSpaceSibling(r,!0)))},Bg=function(t,n,r,o,i){wm.matchNode(t,i.parentNode,r,o)&&vg(t,n,o,i)||n.merge_with_parents&&t.dom.getParent(i.parentNode,function(e){if(wm.matchNode(t,e,r,o))return vg(t,n,o,i),!0})},Og=function(a){var s=qs.fromRangeStart(a),u=qs.fromRangeEnd(a),l=a.commonAncestorContainer;return wl.fromPosition(!1,l,u).map(function(e){return!Uu(s,u,l)&&Uu(s,e,l)?(t=s.container(),n=s.offset(),r=e.container(),o=e.offset(),(i=j.document.createRange()).setStart(t,n),i.setEnd(r,o),i):a;var t,n,r,o,i}).getOr(a)},_g=function(e){return e.collapsed?e:Og(e)},Pg=sn.each,Hg=function(m,g,p,r){var e,t,v=m.formatter.get(g),y=v[0],o=!r&&m.selection.isCollapsed(),i=m.dom,n=m.selection,b=function(n,e){if(e=e||y,n){if(e.onformat&&e.onformat(n,e,p,r),Pg(e.styles,function(e,t){i.setStyle(n,t,_l.replaceVars(e,p))}),e.styles){var t=i.getAttrib(n,"style");t&&n.setAttribute("data-mce-style",t)}Pg(e.attributes,function(e,t){i.setAttrib(n,t,_l.replaceVars(e,p))}),Pg(e.classes,function(e){e=_l.replaceVars(e,p),i.hasClass(n,e)||i.addClass(n,e)})}},C=function(e,t){var n=!1;return!!y.selector&&(Pg(e,function(e){if(!("collapsed"in e&&e.collapsed!==o))return i.is(t,e.selector)&&!hu(t)?(b(t,e),!(n=!0)):void 0}),n)},a=function(u,e,t,l){var c,f,d=[],h=!0;c=y.inline||y.block,f=u.create(c),b(f),Yl(u,e,function(e){var a,s=function(e){var t,n,r,o;if(o=h,t=e.nodeName.toLowerCase(),n=e.parentNode.nodeName.toLowerCase(),1===e.nodeType&&u.getContentEditable(e)&&(o=h,h="true"===u.getContentEditable(e),r=!0),_l.isEq(t,"br"))return a=0,void(y.block&&u.remove(e));if(y.wrapper&&wm.matchNode(m,e,g,p))a=0;else{if(h&&!r&&y.block&&!y.wrapper&&_l.isTextBlock(m,t)&&_l.isValid(m,n,c))return e=u.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)}!h||r||!_l.isValid(m,c,t)||!_l.isValid(m,n,c)||!l&&3===e.nodeType&&1===e.nodeValue.length&&65279===e.nodeValue.charCodeAt(0)||hu(e)||y.inline&&u.isBlock(e)?(a=0,Pg(sn.grep(e.childNodes),s),r&&(h=o),a=0):(a||(a=u.clone(f,!1),e.parentNode.insertBefore(a,e),d.push(a)),a.appendChild(e))}};Pg(e,s)}),!0===y.links&&Pg(d,function(e){var t=function(e){"A"===e.nodeName&&b(e,y),Pg(sn.grep(e.childNodes),t)};t(e)}),Pg(d,function(e){var t,n,r,o,i,a=function(e){var n=!1;return Pg(e.childNodes,function(e){if((t=e)&&1===t.nodeType&&!Ml(t)&&!hu(t)&&!_o.isBogus(t))return n=e,!1;var t}),n};n=0,Pg(e.childNodes,function(e){_l.isWhiteSpaceNode(e)||Ml(e)||n++}),t=n,!(1<d.length)&&u.isBlock(e)||0!==t?(y.inline||y.wrapper)&&(y.exact||1!==t||((o=a(r=e))&&!Ml(o)&&wm.matchName(u,o,y)&&(i=u.clone(o,!1),b(i),u.replace(i,r,!0),u.remove(o,1)),e=i||r),Tg(m,v,p,e),Bg(m,y,g,p,e),Rg(u,y,p,e),Mg(u,y,p,e),Dg(u,y,p,e)):u.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,Kl(m,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,s,u,l=e.selection;a=(r=l.getRng()).startOffset,u=r.startContainer.nodeValue,(o=mu(e.getBody(),l.getStart()))&&(i=Wm(o));var c,f,d=/[^\s\u00a0\u00ad\u200b\ufeff]/;u&&0<a&&a<u.length&&d.test(u.charAt(a))&&d.test(u.charAt(a-1))?(s=l.getBookmark(),r.collapse(!0),r=Kl(e,r,e.formatter.get(t)),r=Nm(r),e.formatter.apply(t,n,r),l.moveToBookmark(s)):(o&&i.nodeValue===jm||(c=e.getDoc(),f=Km(!0).dom(),i=(o=c.importNode(f,!0)).firstChild,r.insertNode(o),a=1),e.formatter.apply(t,n,o),l.setCursorLocation(i,a))}(m,g,p);else{var s=m.selection.getNode();m.settings.forced_root_block||!v[0].defaultBlock||i.getParent(s,i.isBlock)||Hg(m,v[0].defaultBlock),m.selection.setRng(_g(m.selection.getRng())),e=fu.getPersistentBookmark(m.selection,!0),a(i,Kl(m,n.getRng(),v)),y.styles&&Ag(i,y,p,s),n.moveToBookmark(e),_l.moveStart(i,n,n.getRng()),m.nodeChanged()}ig(g,m)}}else{r=n.getNode();for(var u=0,l=v.length;u<l;u++)if(v[u].ceFalseOverride&&i.is(r,v[u].selector))return void b(r,v[u])}},Lg={applyFormat:Hg},Vg=function(r,e,t,n){var o=zr(t.get()),i={},a={},s=U(_l.getParents(r.dom,e),function(e){return 1===e.nodeType&&!e.getAttribute("data-mce-bogus")});Tr(n,function(e,n){sn.each(s,function(t){return r.formatter.matchNode(t,n,{},e.similar)?(-1===o.indexOf(n)&&(I(e.callbacks,function(e){e(!0,{node:t,format:n,parents:s})}),i[n]=e.callbacks),a[n]=e.callbacks,!1):!wm.matchesUnInheritedFormatSelector(r,t,n)&&void 0})});var u=Ig(t.get(),a,e,s);t.set(Ii({},i,u))},Ig=function(e,n,r,o){return Mr(e,function(e,t){return!!Br(n,t)||(I(e,function(e){e(!1,{node:r,format:t,parents:o})}),!1)}).t},Fg=function(e,o,i,a,t){var n,r,s,u,l,c,f,d;return null===o.get()&&(n=o,r=e,s=ji({}),n.set({}),r.on("NodeChange",function(e){Vg(r,e.element,s,n.get())})),l=i,c=a,f=t,d=(u=o).get(),I(l.split(","),function(e){d[e]||(d[e]={similar:f,callbacks:[]}),d[e].callbacks.push(c)}),u.set(d),{unbind:function(){return t=i,n=a,r=(e=o).get(),I(t.split(","),function(e){r[e].callbacks=U(r[e].callbacks,function(e){return e!==n}),0===r[e].callbacks.length&&delete r[e]}),void e.set(r);var e,t,n,r}}},Ug=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:!0,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){sn.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 sn.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},jg=sn.each,qg=_i.DOM,$g=function(e,t){var n,o,r,h=t&&t.schema||xi({}),m=function(e){var t,n,r;return o="string"==typeof e?{name:e,classes:[],attrs:{}}:e,t=qg.create(o.name),n=t,(r=o).classes.length&&qg.addClass(n,r.classes.join(" ")),qg.setAttribs(n,r.attrs),t},g=function(n,e,t){var r,o,i,a,s,u,l,c,f=0<e.length&&e[0],d=f&&f.name;if(s=d,u="string"!=typeof(a=n)?a.nodeName.toLowerCase():a,l=h.getElementRule(u),i=!(!(c=l&&l.parentsRequired)||!c.length)&&(s&&-1!==sn.inArray(c,s)?s: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=m(o)).appendChild(n),t&&(r||(r=qg.create("div")).appendChild(n),sn.each(t,function(e){var t=m(e);r.insertBefore(t,n)})),g(r,e,o&&o.siblings)};return e&&e.length?(o=e[0],n=m(o),(r=qg.create("div")).appendChild(g(n,e.slice(1),o.siblings)),r):""},Wg=function(e){var t,a={classes:[],attrs:{}};return"*"!==(e=a.selector=sn.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!==sn.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},Kg=function(e){return e&&"string"==typeof e?(e=(e=e.split(/\s*,\s*/)[0]).replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),sn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),function(e){var t=sn.map(e.split(/(?:~\+|~|\+)/),Wg),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[]},Xg=function(n,e){var t,r,o,i,a,s,u="";if(!1===(s=n.settings.preview_styles))return"";"string"!=typeof s&&(s="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===(s=e.preview)?"":(t=e.block||e.inline||"span",r=(i=Kg(e.selector)).length?(i[0].name||(i[0].name=t),t=e.selector,$g(i,n)):$g([t],n),o=qg.select(t,r)[0]||r.firstChild,jg(e.styles,function(e,t){(e=l(e))&&qg.setStyle(o,t,e)}),jg(e.attributes,function(e,t){(e=l(e))&&qg.setAttrib(o,t,e)}),jg(e.classes,function(e){e=l(e),qg.hasClass(o,e)||qg.addClass(o,e)}),n.fire("PreviewFormats"),qg.setStyles(r,{position:"absolute",left:-65535}),n.getBody().appendChild(r),a=qg.getStyle(n.getBody(),"fontSize",!0),a=/px$/.test(a)?parseInt(a,10):0,jg(s.split(" "),function(e){var t=qg.getStyle(o,e,!0);if(!("background-color"===e&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(t)&&(t=qg.getStyle(n.getBody(),e,!0),"#ffffff"===qg.toHex(t).toLowerCase())||"color"===e&&"#000000"===qg.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&&(u+="padding:0 2px;"),u+=e+":"+t+";"}}),n.fire("AfterPreviewFormats"),qg.remove(r),u)},Yg=function(e,t,n,r,o){var i=t.get(n);!wm.match(e,n,r,o)||"toggle"in i[0]&&!i[0].toggle?Lg.applyFormat(e,n,r,o):yg(e,n,r,o)},Gg=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"])},Jg=function(e){var t=function o(e){var n={},r=function(e,t){e&&("string"!=typeof e?sn.each(e,function(e,t){r(t,e)}):(M(t)||(t=[t]),sn.each(t,function(e){"undefined"==typeof e.deep&&(e.deep=!e.selector),"undefined"==typeof e.split&&(e.split=!e.selector||e.inline),"undefined"==typeof 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))};return r(Ug(e.dom)),r(e.settings.formats),{get:function(e){return e?n[e]:n},has:function(e){return Br(n,e)},register:r,unregister:function(e){return e&&n[e]&&delete n[e],n}}}(e),n=ji(null);return Gg(e),Zm(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:d(Lg.applyFormat,e),remove:d(yg,e),toggle:d(Yg,e,t),match:d(wm.match,e),matchAll:d(wm.matchAll,e),matchNode:d(wm.matchNode,e),canApply:d(wm.canApply,e),formatChanged:d(Fg,e,n),getCssText:d(Xg,e)}},Qg=Object.prototype.hasOwnProperty,Zg=(og=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)Qg.call(o,i)&&(n[i]=og(n[i],o[i]))}return n}),ep=function(t,u,l){t.addAttributeFilter("data-mce-tabindex",function(e,t){for(var n,r=e.length;r--;)(n=e[r]).attr("tabindex",n.attr("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=u.url_converter,s=u.url_converter_scope;o--;)(r=(n=e[o]).attr(i))!==undefined?(n.attr(t,0<r.length?r:null),n.attr(i,null)):(r=n.attr(t),"style"===t?r=l.serializeStyle(l.parseStyle(r),n.name):a&&(r=a.call(s,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]).attr("data-mce-type")||n.cleanup||(T.from(r.firstChild).exists(function(e){return!_a(e.value)})?r.unwrap():r.remove())}),t.addNodeFilter("noscript",function(e){for(var t,n=e.length;n--;)(t=e[n].firstChild)&&(t.value=ui.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"===u.element_format&&0<r.length&&(n.firstChild.value="// <![CDATA[\n"+a(r)+"\n// ]]>")):"xhtml"===u.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||n.attr("type")||n.attr("type","text"))}),t.addAttributeFilter("data-mce-type",function(e){I(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)})},tp=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())},np=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=j.document.implementation).createHTMLDocument&&(s=a.createHTMLDocument(""),sn.each("BODY"===o.nodeName?o.childNodes:[o],function(e){s.body.appendChild(s.importNode(e,!0))}),o="BODY"!==o.nodeName?s.body.firstChild:s.body,u=l.doc,l.doc=s),zf(r,Zg(i,{node:o})),u&&(l.doc=u),o):t;var r,o,i,a,s,u,l,c,f},rp=function(e,a,s){e.addNodeFilter("font",function(e){I(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"]=s[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",a.serialize(n)),t=e,I(["color","face","size"],function(e){t.attr(e,null)})})})},op=function(e,t){var n,r=Si();t.convert_fonts_to_spans&&rp(e,r,sn.explode(t.font_size_legacy_values)),n=r,e.addNodeFilter("strike",function(e){I(e,function(e){var t=n.parse(e.attr("style"));t["text-decoration"]="line-through",e.name="span",e.attr("style",n.serialize(t))})})},ip=function(e,t){t.inline_styles&&op(e,t)},ap=function(e,t,n,r){(e.padd_empty_with_br||t.insert)&&n[r.name]?r.empty().append(new ac("br",1)).shortEnded=!0:r.empty().append(new ac("#text",3)).value="\xa0"},sp=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},up=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})},lp=sn.makeMap,cp=sn.each,fp=sn.explode,dp=sn.extend,hp=function(T,A){void 0===A&&(A=xi());var R={},M=[],D={},B={};(T=T||{}).validate=!("validate"in T)||T.validate,T.root_name=T.root_name||"body";var e,g,p,O=function(e){var t,n,r;(n=e.name)in R&&((r=D[n])?r.push(e):D[n]=[e]),t=M.length;for(;t--;)(n=M[t].name)in e.attributes.map&&((r=B[n])?r.push(e):B[n]=[e]);return e},t={schema:A,addAttributeFilter:function(e,n){cp(fp(e),function(e){var t;for(t=0;t<M.length;t++)if(M[t].name===e)return void M[t].callbacks.push(n);M.push({name:e,callbacks:[n]})})},getAttributeFilters:function(){return[].concat(M)},addNodeFilter:function(e,n){cp(fp(e),function(e){var t=R[e];t||(R[e]=t=[]),t.push(n)})},getNodeFilters:function(){var e=[];for(var t in R)R.hasOwnProperty(t)&&e.push({name:t,callbacks:R[t]});return e},filterNode:O,parse:function(e,s){var t,n,r,o,i,a,u,l,c,f,d,h=[];s=s||{},D={},B={},c=dp(lp("script,style,head,html,body,title,meta,param"),A.getBlockElements());var m,g=A.getNonEmptyElements(),p=A.children,v=T.validate,y="forced_root_block"in s?s.forced_root_block:T.forced_root_block,b=!1===(m=y)?"":!0===m?"p":m,C=A.getWhiteSpaceElements(),w=/^[ \t\r\n]+/,x=/[ \t\r\n]+$/,N=/[ \t\r\n]+/g,E=/^[ \t\r\n]+$/;f=C.hasOwnProperty(s.context)||C.hasOwnProperty(T.root_name);var S=function(e,t){var n,r=new ac(e,t);return e in R&&((n=D[e])?n.push(r):D[e]=[r]),r},z=function(e){var t,n,r,o,i=A.getBlockElements();for(t=e.prev;t&&3===t.type;){if(0<(r=t.value.replace(x,"")).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=cc({validate:v,allow_script_urls:T.allow_script_urls,allow_conditional_comments:T.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}(A.getSelfClosingElements()),cdata:function(e){d.append(S("#cdata",4)).value=e},text:function(e,t){var n,r,o;f||(e=e.replace(N," "),r=d.lastChild,o=c,r&&(o[r.name]||"br"===r.name)&&(e=e.replace(w,""))),0!==e.length&&((n=S("#text",3)).raw=!!t,d.append(n).value=e)},comment:function(e){d.append(S("#comment",8)).value=e},pi:function(e,t){d.append(S(e,7)).value=t,z(d)},doctype:function(e){d.append(S("#doctype",10)).value=e,z(d)},start:function(e,t,n){var r,o,i,a,s;if(i=v?A.getElementRule(e):{}){for((r=S(i.outputName||e,1)).attributes=t,r.shortEnded=n,d.append(r),(s=p[d.name])&&p[r.name]&&!s[r.name]&&h.push(r),o=M.length;o--;)(a=M[o].name)in t.map&&((u=B[a])?u.push(r):B[a]=[r]);c[e]&&z(r),n||(d=r),!f&&C[e]&&(f=!0)}},end:function(e){var t,n,r,o,i,a;if(n=v?A.getElementRule(e):{}){if(c[e]&&!f){if((t=d.firstChild)&&3===t.type)if(0<(r=t.value.replace(w,"")).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||E.test(r))&&(t.remove(),t=o),t=o;if((t=d.lastChild)&&3===t.type)if(0<(r=t.value.replace(x,"")).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||E.test(r))&&(t.remove(),t=o),t=o}if(f&&C[e]&&(f=!1),n.removeEmpty&&up(A,g,C,d)&&!d.attr("name")&&!d.attr("id"))return i=d.parent,c[d.name]?d.empty().remove():d.unwrap(),void(d=i);n.paddEmpty&&(sp(a=d,"#text")&&"\xa0"===a.firstChild.value||up(A,g,C,d))&&ap(T,s,c,d),d=d.parent}}},A);var k=d=new ac(s.context||T.root_name,11);if(t.parse(e),v&&h.length&&(s.context?s.invalid=!0:function(e){var t,n,r,o,i,a,s,u,l,c,f,d,h,m,g,p;for(d=lp("tr,td,th,tbody,thead,tfoot,table"),c=A.getNonEmptyElements(),f=A.getWhiteSpaceElements(),h=A.getTextBlockElements(),m=A.getSpecialElements(),t=0;t<e.length;t++)if((n=e[t]).parent&&!n.fixed)if(h[n.name]&&"li"===n.parent.name){for(g=n.next;g&&h[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&&!A.isValidChild(r.name,n.name)&&!d[r.name];r=r.parent)o.push(r);if(r&&1<o.length){for(o.reverse(),i=a=O(o[0].clone()),l=0;l<o.length-1;l++){for(A.isValidChild(a.name,o[l].name)?(s=O(o[l].clone()),a.append(s)):s=a,u=o[l].firstChild;u&&u!==o[l+1];)p=u.next,s.append(u),u=p;a=s}up(A,c,f,i)?r.insert(n,o[0],!0):(r.insert(i,o[0],!0),r.insert(n,i)),r=o[0],(up(A,c,f,r)||sp(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(O(new ac("ul",1)));continue}A.isValidChild(n.parent.name,"div")&&A.isValidChild("div",n.name)?n.wrap(O(new ac("div",1))):m[n.name]?n.empty().remove():n.unwrap()}}}(h)),b&&("body"===k.name||s.isRootContent)&&function(){var e,t,n=k.firstChild,r=function(e){e&&((n=e.firstChild)&&3===n.type&&(n.value=n.value.replace(w,"")),(n=e.lastChild)&&3===n.type&&(n.value=n.value.replace(x,"")))};if(A.isValidChild(k.name,b.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=S(b,1)).attr(T.forced_root_block_attrs),k.insert(t,n)),t.append(n)):(r(t),t=null),n=e;r(t)}}(),!s.invalid){for(l in D)if(D.hasOwnProperty(l)){for(u=R[l],i=(n=D[l]).length;i--;)n[i].parent||n.splice(i,1);for(r=0,o=u.length;r<o;r++)u[r](n,l,s)}for(r=0,o=M.length;r<o;r++)if((u=M[r]).name in B){for(i=(n=B[u.name]).length;i--;)n[i].parent||n.splice(i,1);for(i=0,a=u.callbacks.length;i<a;i++)u.callbacks[i](n,u.name,s)}}return k}};return p=(e=t).schema,(g=T).remove_trailing_brs&&e.addNodeFilter("br",function(e,t,n){var r,o,i,a,s,u,l,c,f=e.length,d=sn.extend({},p.getBlockElements()),h=p.getNonEmptyElements(),m=p.getNonEmptyElements();for(d.body=1,r=0;r<f;r++)if(i=(o=e[r]).parent,d[o.parent.name]&&o===i.lastChild){for(s=o.prev;s;){if("span"!==(u=s.name)||"bookmark"!==s.attr("data-mce-type")){if("br"!==u)break;if("br"===u){o=null;break}}s=s.prev}o&&(o.remove(),up(p,h,m,i)&&(l=p.getElementRule(i.name))&&(l.removeEmpty?i.remove():l.paddEmpty&&ap(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 ac("#text",3)).value="\xa0",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?sn.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 ac("li",1);o.attr("style","list-style-type: none"),t.wrap(o)}}),g.validate&&p.getValidClasses()&&e.addAttributeFilter("class",function(e){for(var t,n,r,o,i,a,s,u=e.length,l=p.getValidClasses();u--;){for(n=(t=e[u]).attr("class").split(" "),i="",r=0;r<n.length;r++)o=n[r],s=!1,(a=l["*"])&&a[o]&&(s=!0),a=l[t.name],!s&&a&&a[o]&&(s=!0),s&&(i&&(i+=" "),i+=o);i.length||(i=null),t.attr("class",i)}}),ip(t,T),t},mp=function(e,t,n){-1===sn.inArray(t,n)&&(e.addAttributeFilter(n,function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)}),t.push(n))},gp=function(e,t,n,r,o){var i,a,s,u,l=(i=r,Wc(t,n).serialize(i));return a=e,u=l,(s=o).no_events||!a?u:kf(a,Zg(s,{content:u})).content},pp=function(g,p){var v,y,b,e=["data-mce-selected"];return v=p&&p.dom?p.dom:_i.DOM,y=p&&p.schema?p.schema:xi(g),g.entity_encoding=g.entity_encoding||"named",g.remove_trailing_brs=!("remove_trailing_brs"in g)||g.remove_trailing_brs,b=hp(g,y),ep(b,g,v),{schema:y,addNodeFilter:b.addNodeFilter,addAttributeFilter:b.addAttributeFilter,serialize:function(e,t){var n,r,o,i,a,s,u,l,c,f=Zg({format:"html"},t||{}),d=np(p,e,f),h=(n=v,r=d,i=Ha((o=f).getInner?r.innerHTML:n.getOuterHTML(r)),o.selection||Xo(yr.fromDom(r))?i:sn.trim(i)),m=(a=b,s=h,l=(u=f).selection?Zg({forced_root_block:!1},u):u,c=a.parse(s,l),tp(c),c);return"tree"===f.format?m:gp(p,g,y,m,f)},addRules:function(e){y.addValidElements(e)},setRules:function(e){y.setValidElements(e)},addTempAttr:d(mp,b,e),getTempAttrs:function(){return e}}},vp=function(e,t){var n=pp(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs}};function yp(e){return{getBookmark:d(Al,e),moveToBookmark:d(Rl,e)}}(yp||(yp={})).isBookmarkNode=Ml;var bp,Cp,wp=yp,xp=_o.isContentEditableFalse,Np=_o.isContentEditableTrue,Ep=function(r,a){var s,u,l,c,f,d,h,m,g,p,v,y,i,b,C,w,x,N=a.dom,E=sn.each,S=a.getDoc(),z=j.document,k=Math.abs,T=Math.round,A=a.getBody();c={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var R=function(e){return e&&("IMG"===e.nodeName||a.dom.is(e,"figure.image"))},e=function(e){var t,n,r=e.target;t=e,n=a.selection.getRng(),!R(t.target)||bh(t.clientX,t.clientY,n)||e.isDefaultPrevented()||(e.preventDefault(),a.selection.select(r))},M=function(e){return a.dom.is(e,"figure.image")?e.querySelector("img"):e},D=function(e){var t=a.settings.object_resizing;return!1!==t&&!Fe.iOS&&("string"!=typeof t&&(t="table,img,figure.image,div"),"false"!==e.getAttribute("data-mce-resize")&&e!==a.getBody()&&Yr(yr.fromDom(e),t))},B=function(e){var t,n,r,o;t=e.screenX-d,n=e.screenY-h,b=t*f[2]+p,C=n*f[3]+v,b=b<5?5:b,C=C<5?5:C,(R(s)&&!1!==a.settings.resize_img_proportional?!kh.modifierPressed(e):kh.modifierPressed(e)||R(s)&&f[2]*f[3]!=0)&&(k(t)>k(n)?(C=T(b*y),b=T(C/y)):(b=T(C/y),C=T(b*y))),N.setStyles(M(u),{width:b,height:C}),r=0<(r=f.startPos.x+t)?r:0,o=0<(o=f.startPos.y+n)?o:0,N.setStyles(l,{left:r,top:o,display:"block"}),l.innerHTML=b+" &times; "+C,f[2]<0&&u.clientWidth<=b&&N.setStyle(u,"left",m+(p-b)),f[3]<0&&u.clientHeight<=C&&N.setStyle(u,"top",g+(v-C)),(t=A.scrollWidth-w)+(n=A.scrollHeight-x)!=0&&N.setStyles(l,{left:r-t,top:o-n}),i||(Mf(a,s,p,v),i=!0)},O=function(){i=!1;var e=function(e,t){t&&(s.style[e]||!a.schema.isValid(s.nodeName.toLowerCase(),e)?N.setStyle(M(s),e,t):N.setAttrib(M(s),e,t))};e("width",b),e("height",C),N.unbind(S,"mousemove",B),N.unbind(S,"mouseup",O),z!==S&&(N.unbind(z,"mousemove",B),N.unbind(z,"mouseup",O)),N.remove(u),N.remove(l),o(s),Df(a,s,b,C),N.setAttrib(s,"style",N.getAttrib(s,"style")),a.nodeChanged()},o=function(e){var t,r,o,n,i;_(),H(),t=N.getPos(e,A),m=t.x,g=t.y,i=e.getBoundingClientRect(),r=i.width||i.right-i.left,o=i.height||i.bottom-i.top,s!==e&&(s=e,b=C=0),n=a.fire("ObjectSelected",{target:e}),D(e)&&!n.isDefaultPrevented()?E(c,function(n,e){var t;(t=N.get("mceResizeHandle"+e))&&N.remove(t),t=N.add(A,"div",{id:"mceResizeHandle"+e,"data-mce-bogus":"all","class":"mce-resizehandle",unselectable:!0,style:"cursor:"+e+"-resize; margin:0; padding:0"}),11===Fe.ie&&(t.contentEditable=!1),N.bind(t,"mousedown",function(e){var t;e.stopImmediatePropagation(),e.preventDefault(),d=(t=e).screenX,h=t.screenY,p=M(s).clientWidth,v=M(s).clientHeight,y=v/p,(f=n).startPos={x:r*n[0]+m,y:o*n[1]+g},w=A.scrollWidth,x=A.scrollHeight,u=s.cloneNode(!0),N.addClass(u,"mce-clonedresizable"),N.setAttrib(u,"data-mce-bogus","all"),u.contentEditable=!1,u.unSelectabe=!0,N.setStyles(u,{left:m,top:g,margin:0}),u.removeAttribute("data-mce-selected"),A.appendChild(u),N.bind(S,"mousemove",B),N.bind(S,"mouseup",O),z!==S&&(N.bind(z,"mousemove",B),N.bind(z,"mouseup",O)),l=N.add(A,"div",{"class":"mce-resize-helper","data-mce-bogus":"all"},p+" &times; "+v)}),n.elm=t,N.setStyles(t,{left:r*n[0]+m-t.offsetWidth/2,top:o*n[1]+g-t.offsetHeight/2})}):_(),s.setAttribute("data-mce-selected","1")},_=function(){var e,t;for(e in H(),s&&s.removeAttribute("data-mce-selected"),c)(t=N.get("mceResizeHandle"+e))&&(N.unbind(t),N.remove(t))},n=function(e){var t,n=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};i||a.removed||(E(N.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=N.$(t).closest("table,img,figure.image,hr")[0],A)&&(L(),n(r.getStart(!0),t)&&n(r.getEnd(!0),t))?o(t):_())},P=function(e){return xp(function(e,t){for(;t&&t!==e;){if(Np(t)||xp(t))return t;t=t.parentNode}return null}(a.getBody(),e))},H=function(){for(var e in c){var t=c[e];t.elm&&(N.unbind(t.elm),delete t.elm)}},L=function(){try{a.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}};return a.on("init",function(){L(),Fe.ie&&11<=Fe.ie&&(a.on("mousedown click",function(e){var t=e.target,n=t.nodeName;i||!/^(TABLE|IMG|HR)$/.test(n)||P(t)||(2!==e.button&&a.selection.select(t,"TABLE"===n),"mousedown"===e.type&&a.nodeChanged())}),a.dom.bind(A,"mscontrolselect",function(e){var t=function(e){We.setEditorTimeout(a,function(){a.selection.select(e)})};if(P(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=We.throttle(function(e){a.composing||n(e)});a.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",t),a.on("keyup compositionend",function(e){s&&"TABLE"===s.nodeName&&t(e)}),a.on("hide blur",_),a.on("contextmenu",e)}),a.on("remove",H),{isResizable:D,showResizeRect:o,hideResizeRect:_,updateResizeRect:n,destroy:function(){s=u=null}}},Sp=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}},zp=function(e,t,n){var r,o,i,a,s,u=e.dom,l=u.getRoot(),c=0;if(s={elm:t,alignToTop:n},e.fire("ScrollIntoView",s),!s.isDefaultPrevented()&&_o.isElement(t)){if(!1===n&&(c=t.offsetHeight),"BODY"!==l.nodeName){var f=e.selection.getScrollContainer();if(f)return r=Sp(t).y-Sp(f).y+c,a=f.clientHeight,void((r<(i=f.scrollTop)||i+a<r+25)&&(f.scrollTop=r<i?r:r-a+25))}o=u.getViewPort(e.getWin()),r=u.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)}},kp=function(d,e){ce(Fs.fromRangeStart(e).getClientRects()).each(function(e){var t,n,r,o,i,a,s,u,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)};u=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,(s=d).inline?(s.getBody().scrollLeft+=u,s.getBody().scrollTop+=l):s.getWin().scrollBy(u,l)})},Tp=function(e){return _o.isContentEditableTrue(e)||_o.isContentEditableFalse(e)},Ap=function(e,t,n){var r,o,i,a,s,u=n;if(u.caretPositionFromPoint)(o=u.caretPositionFromPoint(e,t))&&((r=n.createRange()).setStart(o.offsetNode,o.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(u.body.createTextRange){r=u.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(l){r=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=sn.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(a){}}return null}(e,t,n)}return i=r,a=n.body,s=i&&i.parentElement?i.parentElement():null,_o.isContentEditableFalse(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(s,a,Tp))?null:i}return r},Rp=function(n,e){return X(e,function(e){var t=n.fire("GetSelectionRange",{range:e});return t.range!==e?t.range:e})},Mp=function(e,t){var n=(t||j.document).createDocumentFragment();return I(e,function(e){n.appendChild(e.dom())}),yr.fromDom(n)},Dp=Ur("element","width","rows"),Bp=Ur("element","cells"),Op=Ur("x","y"),_p=function(e,t){var n=parseInt(Hr(e,t),10);return isNaN(n)?1:n},Pp=function(e){return J(e,function(e,t){return t.cells().length>e?t.cells().length:e},0)},Hp=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(Qr(o[i],t))return T.some(Op(i,r));return T.none()},Lp=function(e,t,n,r,o){for(var i=[],a=e.rows(),s=n;s<=o;s++){var u=a[s].cells(),l=t<r?u.slice(t,r+1):u.slice(r,t+1);i.push(Bp(a[s].element(),l))}return i},Vp=function(e){var o=Dp(Ma(e),0,[]);return I(ma(e,"tr"),function(n,r){I(ma(n,"td,th"),function(e,t){!function(e,t,n,r,o){for(var i=_p(o,"rowspan"),a=_p(o,"colspan"),s=e.rows(),u=n;u<n+i;u++){s[u]||(s[u]=Bp(Da(r),[]));for(var l=t;l<t+a;l++)s[u].cells()[l]=u===n&&l===t?o:Ma(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)})}),Dp(o.element(),Pp(o.rows()),o.rows())},Ip=function(e){return n=X((t=e).rows(),function(e){var t=X(e.cells(),function(e){var t=Da(e);return Lr(t,"colspan"),Lr(t,"rowspan"),t}),n=Ma(e.element());return ea(n,t),n}),r=Ma(t.element()),o=yr.fromTag("tbody"),ea(o,n),Zi(r,o),r;var t,n,r,o},Fp=function(c,e,t){return Hp(c,e).bind(function(l){return Hp(c,t).map(function(e){return t=c,r=e,o=(n=l).x(),i=n.y(),a=r.x(),s=r.y(),u=i<s?Lp(t,o,i,a,s):Lp(t,o,s,a,i),Dp(t.element(),Pp(u),u);var t,n,r,o,i,a,s,u})})},Up=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},jp=Up,qp=function(e){return re(e,function(e){var t=gs(e);return t?[yr.fromDom(t)]:[]})},$p=function(e){return 1<Up(e).length},Wp=function(e){return U(qp(e),Ko)},Kp=function(e){return ma(e,"td[data-mce-selected],th[data-mce-selected]")},Xp=function(e,t){var n=Kp(t),r=Wp(e);return 0<n.length?n:r},Yp=Xp,Gp=function(e){return Xp(jp(e.selection.getSel()),yr.fromDom(e.getBody()))},Jp=function(n,t){return Q(n,function(e){return"li"===xr(e)&&Ud(e,t)}).fold($([]),function(e){return(t=n,Q(t,function(e){return"ul"===xr(e)||"ol"===xr(e)})).map(function(e){return[yr.fromTag("li"),yr.fromTag(xr(e))]}).getOr([]);var t})},Qp=function(e,t){var n,r=yr.fromDom(t.commonAncestorContainer),o=Od(r,e),i=U(o,function(e){return Io(e)||Lo(e)}),a=Jp(o,t),s=i.concat(a.length?a:qo(n=r)?to(n).filter(jo).fold($([]),function(e){return[n,e]}):jo(n)?[n]:[]);return X(s,Ma)},Zp=function(){return Mp([])},ev=function(e,t){return n=yr.fromDom(t.cloneContents()),r=Qp(e,t),o=J(r,function(e,t){return Zi(t,e),t},n),0<r.length?Mp([o]):o;var n,r,o},tv=function(e,o){return(t=e,n=o[0],ba(n,"table",d(Qr,t))).bind(function(e){var t=o[0],n=o[o.length-1],r=Vp(e);return Fp(r,t,n).map(function(e){return Mp([Ip(e)])})}).getOrThunk(Zp);var t,n},nv=function(e,t){var n,r,o=Yp(t,e);return 0<o.length?tv(e,o):(n=e,0<(r=t).length&&r[0].collapsed?Zp():ev(n,r[0]))},rv=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,T.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=Ha(t.innerText);return l.dom.remove(t),n}).getOr("");t.getInner=!0;var n,r,o,i,a,s,u,l,c=(r=t,i=(n=e).selection.getRng(),a=n.dom.create("body"),s=n.selection.getSel(),u=Rp(n,jp(s)),(o=r.contextual?nv(yr.fromDom(n.getBody()),u).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)},ov=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)},iv=function(e,t,n){return ov(e,t,function(e){return e.nodeName===n})},av=function(e){return e&&"TABLE"===e.nodeName},sv=function(e,t,n){for(var r=new Po(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());t=r[n?"prev":"next"]();)if(_o.isBr(t))return!0},uv=function(e,t,n,r,o){var i,a,s=e.getRoot(),u=e.schema.getNonEmptyElements(),l=e.getParent(o.parentNode,e.isBlock)||s;if(r&&_o.isBr(o)&&t&&e.isEmpty(l))return T.some(Fs(o.parentNode,e.nodeIndex(o)));for(var c,f,d=new Po(o,l);a=d[r?"prev":"next"]();){if("false"===e.getContentEditableParent(a)||(f=s,Ua(c=a)&&!1===ov(c,f,hu)))return T.none();if(_o.isText(a)&&0<a.nodeValue.length)return!1===iv(a,s,"A")?T.some(Fs(a,r?a.nodeValue.length:0)):T.none();if(e.isBlock(a)||u[a.nodeName.toLowerCase()])return T.none();i=a}return n&&i?T.some(Fs(i,0)):T.none()},lv=function(e,t,n,r){var o,i,a,s,u,l,c,f,d,h=e.getRoot(),m=!1;if(o=r[(n?"start":"end")+"Container"],i=r[(n?"start":"end")+"Offset"],l=_o.isElement(o)&&i===o.childNodes.length,s=e.schema.getNonEmptyElements(),u=n,Ua(o))return T.none();if(_o.isElement(o)&&i>o.childNodes.length-1&&(u=!1),_o.isDocument(o)&&(o=h,i=0),o===h){if(u&&(a=o.childNodes[0<i?i-1:0])){if(Ua(a))return T.none();if(s[a.nodeName]||av(a))return T.none()}if(o.hasChildNodes()){if(i=Math.min(!u&&0<i?i-1:i,o.childNodes.length-1),o=o.childNodes[i],i=_o.isText(o)&&l?o.data.length:0,!t&&o===h.lastChild&&av(o))return T.none();if(function(e,t){for(;t&&t!==e;){if(_o.isContentEditableFalse(t))return!0;t=t.parentNode}return!1}(h,o)||Ua(o))return T.none();if(o.hasChildNodes()&&!1===av(o)){var g=new Po(a=o,h);do{if(_o.isContentEditableFalse(a)||Ua(a)){m=!1;break}if(_o.isText(a)&&0<a.nodeValue.length){i=u?0:a.nodeValue.length,o=a,m=!0;break}if(s[a.nodeName.toLowerCase()]&&(!(c=a)||!/^(TD|TH|CAPTION)$/.test(c.nodeName))){i=e.nodeIndex(a),o=a.parentNode,u||i++,m=!0;break}}while(a=u?g.next():g.prev())}}}return t&&(_o.isText(o)&&0===i&&uv(e,l,t,!0,o).each(function(e){o=e.container(),i=e.offset(),m=!0}),_o.isElement(o)&&((a=o.childNodes[i])||(a=o.childNodes[i-1]),!a||!_o.isBr(a)||(d="A",(f=a).previousSibling&&f.previousSibling.nodeName===d)||sv(e,a,!1)||sv(e,a,!0)||uv(e,l,t,!0,a).each(function(e){o=e.container(),i=e.offset(),m=!0}))),u&&!t&&_o.isText(o)&&i===o.nodeValue.length&&uv(e,l,t,!1,o).each(function(e){o=e.container(),i=e.offset(),m=!0}),m?T.some(Fs(o,i)):T.none()},cv=function(e,t){var n=t.collapsed,r=t.cloneRange(),o=Fs.fromRangeStart(t);return lv(e,n,!0,r).each(function(e){n&&Fs.isAbove(o,e)||r.setStart(e.container(),e.offset())}),n||lv(e,n,!1,r).each(function(e){r.setEnd(e.container(),e.offset())}),n&&r.collapse(!0),Vd(t,r)?T.none():T.some(r)},fv=function(e){return 0===e.dom().length?(na(e),T.none()):T.some(e)},dv=function(e,t,n){var r,o;if(o=t,(r=(r=n)||{format:"html"}).set=!0,r.selection=!0,r.content=o,(n=r).no_events||!(n=e.fire("BeforeSetContent",n)).isDefaultPrevented()){var i=e.selection.getRng();!function(r,e){var t=T.from(e.firstChild).map(yr.fromDom),n=T.from(e.lastChild).map(yr.fromDom);r.deleteContents(),r.insertNode(e);var o=t.bind(ro).filter(Sr).bind(fv),i=n.bind(oo).filter(Sr).bind(fv);bs([o,t.filter(Sr)],function(e,t){var n,r;n=t.dom(),r=e.dom().data,n.insertData(0,r),na(e)}),bs([i,n.filter(Sr)],function(e,t){var n=t.dom().length;t.dom().appendData(e.dom().data),r.setEnd(t.dom(),n),na(e)}),r.collapse(!1)}(i,i.createContextualFragment(n.content)),e.selection.setRng(i),kp(e,i),n.no_events||e.fire("SetContent",n)}else e.fire("SetContent",n)},hv=function(e,t,n,r,o){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return T.from(i).map(yr.fromDom).map(function(e){return r&&t.collapsed?e:uo(e,o(e,a)).getOr(e)}).bind(function(e){return Er(e)?T.some(e):to(e)}).map(function(e){return e.dom()}).getOr(e)},mv=function(e,t,n){return hv(e,t,!0,n,function(e,t){return Math.min(e.dom().childNodes.length,t)})},gv=function(e,t,n){return hv(e,t,!1,n,function(e,t){return 0<t?t-1:t})},pv=function(e,t){for(var n=e;e&&_o.isText(e)&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n},vv=function(e,t,n){if(e&&e.hasOwnProperty(t)){var r=U(e[t],function(e){return e!==n});0===r.length?delete e[t]:e[t]=r}},yv=function(e){return!!e.select},bv=function(e){return!(!e||!e.ownerDocument)&&Zr(yr.fromDom(e.ownerDocument),yr.fromDom(e))},Cv=function(s,u,e,l){var n,t,c,f,r=function p(i,n){var a,s;return{selectorChangedWithUnbind:function(e,t){return a||(a={},s={},n.on("NodeChange",function(e){var n=e.element,r=i.getParents(n,null,i.getRoot()),o={};sn.each(a,function(e,n){sn.each(r,function(t){if(i.is(t,n))return s[n]||(sn.each(e,function(e){e(!0,{node:t,selector:n,parents:r})}),s[n]=e),o[n]=e,!1})}),sn.each(s,function(e,t){o[t]||(delete s[t],sn.each(e,function(e){e(!1,{node:n,selector:t,parents:r})}))})})),a[e]||(a[e]=[]),a[e].push(t),{unbind:function(){vv(a,e,t),vv(s,e,t)}}}}}(s,l).selectorChangedWithUnbind,o=function(e,t){return dv(l,e,t)},i=function(e){var t=h();t.collapse(!!e),a(t)},d=function(){return u.getSelection?u.getSelection():u.document.selection},h=function(){var e,t,n,r,o=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}};if(!u)return null;if(null==(r=u.document))return null;if(l.bookmark!==undefined&&!1===xf(l)){var i=mf(l);if(i.isSome())return i.map(function(e){return Rp(l,[e])[0]}).getOr(r.createRange())}try{(e=d())&&(t=0<e.rangeCount?e.getRangeAt(0):e.createRange?e.createRange():r.createRange())}catch(a){}return(t=Rp(l,[t])[0])||(t=r.createRange?r.createRange():r.body.createTextRange()),t.setStart&&9===t.startContainer.nodeType&&t.collapsed&&(n=s.getRoot(),t.setStart(n,0),t.setEnd(n,0)),c&&f&&(0===o(t.START_TO_START,t,c)&&0===o(t.END_TO_END,t,c)?t=f:f=c=null),t},a=function(e,t){var n,r;if((o=e)&&(yv(o)||bv(o.startContainer)&&bv(o.endContainer))){var o,i=yv(e)?e:null;if(i){f=null;try{i.select()}catch(a){}}else{if(n=d(),e=l.fire("SetSelectionRange",{range:e,forward:t}).range,n){f=e;try{n.removeAllRanges(),n.addRange(e)}catch(a){}!1===t&&n.extend&&(n.collapse(e.endContainer,e.endOffset),n.extend(e.startContainer,e.startOffset)),c=0<n.rangeCount?n.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!n.setBaseAndExtent||Fe.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)),l.fire("AfterSetSelectionRange",{range:e,forward:t})}}},m=function(){var e,t,n=d();return!(n&&n.anchorNode&&n.focusNode)||((e=s.createRng()).setStart(n.anchorNode,n.anchorOffset),e.collapse(!0),(t=s.createRng()).setStart(n.focusNode,n.focusOffset),t.collapse(!0),e.compareBoundaryPoints(e.START_TO_START,t)<=0)},g={bookmarkManager:null,controlSelection:null,dom:s,win:u,serializer:e,editor:l,collapse:i,setCursorLocation:function(e,t){var n=s.createRng();e?(n.setStart(e,t),n.setEnd(e,t),a(n),i(!1)):(jd(s,n,l.getBody(),!0),a(n))},getContent:function(e){return rv(l,e)},setContent:o,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=s,n=e,o=t,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&&(jd(r,n,e,!0),jd(r,n,e,!1)),n})).each(a),e},isCollapsed:function(){var e=h(),t=d();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},isForward:m,setNode:function(e){return o(s.getOuterHTML(e)),e},getNode:function(){return e=l.getBody(),(t=h())?(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?pv(r.nextSibling,!0):r.parentNode,o=0===a?pv(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:a,getRng:h,getStart:function(e){return mv(l.getBody(),h(),e)},getEnd:function(e){return gv(l.getBody(),h(),e)},getSelectedBlocks:function(e,t){return function(e,t,n,r){var o,i,a=[];if(i=e.getRoot(),n=e.getParent(n||mv(i,t,t.collapsed),e.isBlock),r=e.getParent(r||gv(i,t,t.collapsed),e.isBlock),n&&n!==i&&a.push(n),n&&r&&n!==r)for(var s=new Po(o=n,i);(o=s.next())&&o!==r;)e.isBlock(o)&&a.push(o);return r&&n!==r&&r!==i&&a.push(r),a}(s,h(),e,t)},normalize:function(){var e=h(),t=d();if($p(t)||!qd(l))return e;var n=cv(s,e);return n.each(function(e){a(e,m())}),n.getOr(e)},selectorChanged:function(e,t){return r(e,t),g},selectorChangedWithUnbind:r,getScrollContainer:function(){for(var e,t=s.getRoot();t&&"BODY"!==t.nodeName;){if(t.scrollHeight>t.clientHeight){e=t;break}t=t.parentNode}return e},scrollIntoView:function(e,t){return zp(l,e,t)},placeCaretAt:function(e,t){return a(Ap(e,t,l.getDoc()))},getBoundingClientRect:function(){var e=h();return e.collapsed?qs.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){u=c=f=null,t.destroy()}};return n=wp(g),t=Ep(g,l),g.bookmarkManager=n,g.controlSelection=t,g},wv=_o.isText,xv=function(e){return wv(e)&&e.data[0]===Pa},Nv=function(e){return wv(e)&&e.data[e.data.length-1]===Pa},Ev=function(e){return e.ownerDocument.createTextNode(Pa)},Sv=function(e,t){return e?function(e){if(wv(e.previousSibling))return Nv(e.previousSibling)||e.previousSibling.appendData(Pa),e.previousSibling;if(wv(e))return xv(e)||e.insertData(0,Pa),e;var t=Ev(e);return e.parentNode.insertBefore(t,e),t}(t):function(e){if(wv(e.nextSibling))return xv(e.nextSibling)||e.nextSibling.insertData(0,Pa),e.nextSibling;if(wv(e))return Nv(e)||e.appendData(Pa),e;var t=Ev(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t}(t)},zv=d(Sv,!0),kv=d(Sv,!1),Tv=function(e,t){return _o.isText(e.container())?Sv(t,e.container()):Sv(t,e.getNode())},Av=function(e,t){var n=t.get();return n&&e.container()===n&&Fa(n)},Rv=function(n,e){return e.fold(function(e){Eu.remove(n.get());var t=zv(e);return n.set(t),T.some(qs(t,t.length-1))},function(e){return wl.firstPositionIn(e).map(function(e){if(Av(e,n))return qs(n.get(),1);Eu.remove(n.get());var t=Tv(e,!0);return n.set(t),qs(t,1)})},function(e){return wl.lastPositionIn(e).map(function(e){if(Av(e,n))return qs(n.get(),n.get().length-1);Eu.remove(n.get());var t=Tv(e,!1);return n.set(t),qs(t,t.length-1)})},function(e){Eu.remove(n.get());var t=kv(e);return n.set(t),T.some(qs(t,1))})},Mv=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,Dv=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?Fa(n)?_o.isText(n.nextSibling)?qs(n.nextSibling,0):qs.after(n):$a(t)?qs(n,r+1):t:Fa(n)?_o.isText(n.previousSibling)?qs(n.previousSibling,n.previousSibling.data.length):qs.before(n):Wa(t)?qs(n,r-1):t},Bv={isInlineTarget:function(e,t){var n=Kf(e,"inline_boundaries_selector").getOr("a[href],code");return Yr(yr.fromDom(t),n)},findRootInline:function(e,t,n){var r,o,i,a=(r=e,o=t,i=n,U(_i.DOM.getParents(i.container(),"*",o),r));return T.from(a[a.length-1])},isRtl:function(e){return"rtl"===_i.DOM.getStyle(e,"direction",!0)||(t=e.textContent,Mv.test(t));var t},isAtZwsp:function(e){return $a(e)||Wa(e)},normalizePosition:Dv,normalizeForwards:d(Dv,!0),normalizeBackwards:d(Dv,!1),hasSameParentBlock:function(e,t,n){var r=Fu(t,e),o=Fu(n,e);return r&&r===o}},Ov=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return T.none()},_v=Jc([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),Pv=function(e,t){var n=Fu(t,e);return n||e},Hv=function(e,t,n){var r=Bv.normalizeForwards(n),o=Pv(t,r.container());return Bv.findRootInline(e,o,r).fold(function(){return wl.nextPosition(o,r).bind(d(Bv.findRootInline,e,o)).map(function(e){return _v.before(e)})},T.none)},Lv=function(e,t){return null===mu(e,t)},Vv=function(e,t,n){return Bv.findRootInline(e,t,n).filter(d(Lv,t))},Iv=function(e,t,n){var r=Bv.normalizeBackwards(n);return Vv(e,t,r).bind(function(e){return wl.prevPosition(e,r).isNone()?T.some(_v.start(e)):T.none()})},Fv=function(e,t,n){var r=Bv.normalizeForwards(n);return Vv(e,t,r).bind(function(e){return wl.nextPosition(e,r).isNone()?T.some(_v.end(e)):T.none()})},Uv=function(e,t,n){var r=Bv.normalizeBackwards(n),o=Pv(t,r.container());return Bv.findRootInline(e,o,r).fold(function(){return wl.prevPosition(o,r).bind(d(Bv.findRootInline,e,o)).map(function(e){return _v.after(e)})},T.none)},jv=function(e){return!1===Bv.isRtl($v(e))},qv=function(e,t,n){return Ov([Hv,Iv,Fv,Uv],[e,t,n]).filter(jv)},$v=function(e){return e.fold(W,W,W,W)},Wv=function(e){return e.fold($("before"),$("start"),$("end"),$("after"))},Kv=function(e){return e.fold(_v.before,_v.before,_v.after,_v.after)},Xv=function(n,e,r,t,o,i){return bs([Bv.findRootInline(e,r,t),Bv.findRootInline(e,r,o)],function(e,t){return e!==t&&Bv.hasSameParentBlock(r,e,t)?_v.after(n?e:t):i}).getOr(i)},Yv=function(e,r){return e.fold($(!0),function(e){return n=r,!(Wv(t=e)===Wv(n)&&$v(t)===$v(n));var t,n})},Gv=function(e,t){return e?t.fold(q(T.some,_v.start),T.none,q(T.some,_v.after),T.none):t.fold(T.none,q(T.some,_v.before),T.none,q(T.some,_v.end))},Jv=function(a,s,u,l){var e=Bv.normalizePosition(a,l),c=qv(s,u,e);return qv(s,u,e).bind(d(Gv,a)).orThunk(function(){return t=a,n=s,r=u,o=c,e=l,i=Bv.normalizePosition(t,e),wl.fromPosition(t,r,i).map(d(Bv.normalizePosition,t)).fold(function(){return o.map(Kv)},function(e){return qv(n,r,e).map(d(Xv,t,n,r,i,e)).filter(d(Yv,o))}).filter(jv);var t,n,r,o,e,i})},Qv=qv,Zv=Jv,ey=(d(Jv,!1),d(Jv,!0),Kv),ty=function(e){return e.fold(_v.start,_v.start,_v.end,_v.end)},ny=function(e){return O(e.selection.getSel().modify)},ry=function(e,t,n){var r=e?1:-1;return t.setRng(qs(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},oy=function(e,t){var n=t.selection.getRng(),r=e?qs.fromRangeEnd(n):qs.fromRangeStart(n);return!!ny(t)&&(e&&$a(r)?ry(!0,t.selection,r):!(e||!Wa(r))&&ry(!1,t.selection,r))},iy=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},ay=function(e){return!1!==e.settings.inline_boundaries},sy=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},uy=function(t,e,n){return Rv(e,n).map(function(e){return iy(t,e),n})},ly=function(e,t,n){return function(){return!!ay(t)&&oy(e,t)}},cy={move:function(a,s,u){return function(){return!!ay(a)&&(t=a,n=s,e=u,r=t.getBody(),o=qs.fromRangeStart(t.selection.getRng()),i=d(Bv.isInlineTarget,t),Zv(e,i,r,o).bind(function(e){return uy(t,n,e)})).isSome();var t,n,e,r,o,i}},moveNextWord:d(ly,!0),movePrevWord:d(ly,!1),setupSelectedState:function(a){var s=ji(null),u=d(Bv.isInlineTarget,a);return a.on("NodeChange",function(e){var t,n,r,o,i;ay(a)&&(t=u,n=a.dom,r=e.parents,o=U(n.select('*[data-mce-selected="inline-boundary"]'),t),i=U(r,t),I(se(o,i),d(sy,!1)),I(se(i,o),d(sy,!0)),function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=qs.fromRangeStart(e.selection.getRng());qs.isTextPosition(n)&&!1===Bv.isAtZwsp(n)&&(iy(e,Eu.removeAndReposition(t.get(),n)),t.set(null))}}(a,s),function(n,r,o,e){if(r.selection.isCollapsed()){var t=U(e,n);I(t,function(e){var t=qs.fromRangeStart(r.selection.getRng());Qv(n,r.getBody(),t).bind(function(e){return uy(r,o,e)})})}}(u,a,s,e.parents))}),s},setCaretPosition:iy};(Cp=bp||(bp={}))[Cp.Br=0]="Br",Cp[Cp.Block=1]="Block",Cp[Cp.Wrap=2]="Wrap",Cp[Cp.Eol=3]="Eol";var fy,dy,hy,my,gy=function(e,t){return e===Us.Backwards?t.reverse():t},py=function(e,t,n,r){for(var o,i,a,s,u,l,c=cl(n),f=r,d=[];f&&(u=c,l=f,o=t===Us.Forwards?u.next(l):u.prev(l));){if(_o.isBr(o.getNode(!1)))return t===Us.Forwards?{positions:gy(t,d).concat([o]),breakType:bp.Br,breakAt:T.some(o)}:{positions:gy(t,d),breakType:bp.Br,breakAt:T.some(o)};if(o.isVisible()){if(e(f,o)){var h=(i=t,a=f,s=o,_o.isBr(s.getNode(i===Us.Forwards))?bp.Br:!1===Uu(a,s)?bp.Block:bp.Wrap);return{positions:gy(t,d),breakType:h,breakAt:T.some(o)}}d.push(o),f=o}else f=o}return{positions:gy(t,d),breakType:bp.Eol,breakAt:T.none()}},vy=function(n,r,o,e){return r(o,e).breakAt.map(function(e){var t=r(o,e).positions;return n===Us.Backwards?t.concat(e):[e].concat(t)}).getOr([])},yy=function(e,i){return J(e,function(e,o){return e.fold(function(){return T.some(o)},function(r){return bs([ce(r.getClientRects()),ce(o.getClientRects())],function(e,t){var n=Math.abs(i-e.left);return Math.abs(i-t.left)<=n?o:r}).or(e)})},T.none())},by=function(t,e){return ce(e.getClientRects()).bind(function(e){return yy(t,e.left)})},Cy=d(py,Fs.isAbove,-1),wy=d(py,Fs.isBelow,1),xy=d(vy,-1,Cy),Ny=d(vy,1,wy),Ey=_o.isContentEditableFalse,Sy=gs,zy=function(e,t,n,r){var o,i,a,s,u,l,c,f,d;if(d=Sy(r),o=Gu(e,t.getBody(),r),i=n(t.getBody(),lh(1),o),a=U(i,ch(1)),u=tn.last(o.getClientRects()),(jh(o)||Ih(o))&&(d=o.getNode()),(qh(o)||Fh(o))&&(d=o.getNode(!0)),!u)return null;if(l=u.left,(s=ph(a,l))&&Ey(s.node))return c=Math.abs(l-s.left),f=Math.abs(l-s.right),xh(e,t,s.node,c<f,!0);if(d){var h=function(e,t,n,r){var o,i,a,s,u,l,c=cl(t),f=[],d=0,h=function(e){return tn.last(e.getClientRects())};l=h(s=1===e?(o=c.next,i=ms,a=hs,qs.after(r)):(o=c.prev,i=hs,a=ms,qs.before(r)));do{if(s.isVisible()&&!a(u=h(s),l)){if(0<f.length&&i(u,tn.last(f))&&d++,(u=cs(u)).position=s,u.line=d,n(u))return f;f.push(u)}}while(s=o(s));return f}(e,t.getBody(),lh(1),d);if(s=ph(U(h,ch(1)),l))return Sh(t,s.position.toRange(),!0);if(s=tn.last(U(h,ch(0))))return Sh(t,s.position.toRange(),!0)}},ky=function(e,t,n){var r,o,i,a,s=cl(e.getBody()),u=d(Qu,s.next),l=d(Qu,s.prev);if(n.collapsed&&e.settings.forced_root_block){if(!(r=e.dom.getParent(n.startContainer,"PRE")))return;(1===t?u(qs.fromRangeStart(n)):l(qs.fromRangeStart(n)))||(a=(i=e).dom.create(wc(i)),(!Fe.ie||11<=Fe.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())}},Ty=function(e,t){var n,r=cl(e.getBody()),o=d(Qu,r.next),i=d(Qu,r.prev),a=t?Us.Forwards:Us.Backwards,s=t?o:i,u=e.selection.getRng();return(n=function(e,t,n,r){var o=e===Us.Forwards,i=o?jh:qh;if(!r.collapsed){var a=Sy(r);if(Ey(a))return xh(e,t,a,e===Us.Backwards,!0)}var s=Ja(r),u=Gu(e,t.getBody(),r);if(i(u))return Nh(t,u.getNode(!o));var l=Bv.normalizePosition(o,n(u));if(!l)return s?r:null;if(i(l))return xh(e,t,l.getNode(!o),o,!0);var c=n(l);return c&&i(c)&&Zu(l,c)?xh(e,t,c.getNode(!o),o,!0):s?Sh(t,l.toRange(),!0):null}(a,e,s,u))?n:(n=ky(e,a,u))||null},Ay=function(t,n){return function(){var e=Ty(t,n);return!!e&&(t.selection.setRng(e),!0)}},Ry=function(s,u){return function(){var e,t,n,r,o,i,a=(r=(t=u)?1:-1,o=t?uh:sh,i=(e=s).selection.getRng(),(n=zy(r,e,o,i))?n:(n=ky(e,r,i))||null);return!!a&&(s.selection.setRng(a),!0)}},My=function(r,o){return function(){var t,e=o?qs.fromRangeEnd(r.selection.getRng()):qs.fromRangeStart(r.selection.getRng()),n=o?wy(r.getBody(),e):Cy(r.getBody(),e);return(o?fe(n.positions):ce(n.positions)).filter((t=o,function(e){return t?qh(e):jh(e)})).fold($(!1),function(e){return r.selection.setRng(e.toRange()),!0})}},Dy=function(e,t,n,r,o){var i,a,s,u,l=ma(yr.fromDom(n),"td,th,caption").map(function(e){return e.dom()}),c=U((i=e,re(l,function(e){var t,n,r=(t=cs(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,s=r,u=o,J(a,function(e,r){return e.fold(function(){return T.some(r)},function(e){var t=Math.sqrt(Math.abs(e.x-s)+Math.abs(e.y-u)),n=Math.sqrt(Math.abs(r.x-s)+Math.abs(r.y-u));return T.some(n<t?r:e)})},T.none())).map(function(e){return e.cell})},By=d(Dy,function(e){return e.bottom},function(e,t){return e.y<t}),Oy=d(Dy,function(e){return e.top},function(e,t){return e.y>t}),_y=function(t,n){return ce(n.getClientRects()).bind(function(e){return By(t,e.left,e.top)}).bind(function(e){return by((t=e,wl.lastPositionIn(t).map(function(e){return Cy(t,e).positions.concat(e)}).getOr([])),n);var t})},Py=function(t,n){return fe(n.getClientRects()).bind(function(e){return Oy(t,e.left,e.top)}).bind(function(e){return by((t=e,wl.firstPositionIn(t).map(function(e){return[e].concat(wy(t,e).positions)}).getOr([])),n);var t})},Hy=function(e,t){e.selection.setRng(t),kp(e,t)},Ly=function(e,t,n){var r,o,i,a,s=e(t,n);return(a=s).breakType===bp.Wrap&&0===a.positions.length||!_o.isBr(n.getNode())&&(i=s).breakType===bp.Br&&1===i.positions.length?(r=e,o=t,!s.breakAt.map(function(e){return r(o,e).breakAt.isSome()}).getOr(!1)):s.breakAt.isNone()},Vy=d(Ly,Cy),Iy=d(Ly,wy),Fy=function(e,t,n,r){var o,i,a,s,u=e.selection.getRng(),l=t?1:-1;if(Au()&&(o=t,i=u,a=n,s=qs.fromRangeStart(i),wl.positionIn(!o,a).map(function(e){return e.isEqual(s)}).getOr(!1))){var c=xh(l,e,n,!t,!0);return Hy(e,c),!0}return!1},Uy=function(e,t){var n=t.getNode(e);return _o.isElement(n)&&"TABLE"===n.nodeName?T.some(n):T.none()},jy=function(s,u,l){var e=Uy(!!u,l),t=!1===u;e.fold(function(){return Hy(s,l.toRange())},function(a){return wl.positionIn(t,s.getBody()).filter(function(e){return e.isEqual(l)}).fold(function(){return Hy(s,l.toRange())},function(e){return n=u,o=a,t=l,void((i=wc(r=s))?r.undoManager.transact(function(){var e=yr.fromTag(i);Pr(e,xc(r)),Zi(e,yr.fromTag("br")),n?Ji(yr.fromDom(o),e):Gi(yr.fromDom(o),e);var t=r.dom.createRng();t.setStart(e.dom(),0),t.setEnd(e.dom(),0),Hy(r,t)}):Hy(r,t.toRange()));var n,r,o,t,i})})},qy=function(e,t,n,r){var o,i,a,s,u,l,c=e.selection.getRng(),f=qs.fromRangeStart(c),d=e.getBody();if(t||!Vy(r,f))return!(!t||!Iy(r,f))&&(o=d,h=Py(i=n,a=f).orThunk(function(){return ce(a.getClientRects()).bind(function(e){return yy(Ny(o,qs.after(i)),e.left)})}).getOr(qs.after(i)),jy(e,t,h),!0);var h=(s=d,_y(u=n,l=f).orThunk(function(){return ce(l.getClientRects()).bind(function(e){return yy(xy(s,qs.before(u)),e.left)})}).getOr(qs.before(u)));return jy(e,t,h),!0},$y=function(t,n){return function(){return T.from(t.dom.getParent(t.selection.getNode(),"td,th")).bind(function(e){return T.from(t.dom.getParent(e,"table")).map(function(e){return Fy(t,n,e)})}).getOr(!1)}},Wy=function(n,r){return function(){return T.from(n.dom.getParent(n.selection.getNode(),"td,th")).bind(function(t){return T.from(n.dom.getParent(t,"table")).map(function(e){return qy(n,r,e,t)})}).getOr(!1)}},Ky=function(e){return L(["figcaption"],xr(e))},Xy=function(e){var t=j.document.createRange();return t.setStartBefore(e.dom()),t.setEndBefore(e.dom()),t},Yy=function(e,t,n){n?Zi(e,t):Qi(e,t)},Gy=function(e,t,n,r){return""===t?(c=e,f=r,d=yr.fromTag("br"),Yy(c,d,f),Xy(d)):(o=e,i=r,a=t,s=n,u=yr.fromTag(a),l=yr.fromTag("br"),Pr(u,s),Zi(u,l),Yy(o,u,i),Xy(l));var o,i,a,s,u,l,c,f,d},Jy=function(e,t,n){return t?(o=e.dom(),wy(o,n).breakAt.isNone()):(r=e.dom(),Cy(r,n).breakAt.isNone());var r,o},Qy=function(t,n){var e,r,o,i=yr.fromDom(t.getBody()),a=qs.fromRangeStart(t.selection.getRng()),s=wc(t),u=xc(t);return(e=a,r=i,o=d(Qr,r),ya(yr.fromDom(e.container()),Vo,o).filter(Ky)).exists(function(){if(Jy(i,n,a)){var e=Gy(i,s,u,n);return t.selection.setRng(e),!0}return!1})},Zy=function(e,t){return function(){return!!e.selection.isCollapsed()&&Qy(e,t)}},eb=function(e,r){return re(X(e,function(e){return Zg({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:u},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})},tb=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)}},nb=function(e,t){return Q(eb(e,t),function(e){return e.action()})},rb=function(i,a){i.on("keydown",function(e){var t,n,r,o;!1===e.isDefaultPrevented()&&(t=i,n=a,r=e,o=pr.detect().os,nb([{keyCode:kh.RIGHT,action:Ay(t,!0)},{keyCode:kh.LEFT,action:Ay(t,!1)},{keyCode:kh.UP,action:Ry(t,!1)},{keyCode:kh.DOWN,action:Ry(t,!0)},{keyCode:kh.RIGHT,action:$y(t,!0)},{keyCode:kh.LEFT,action:$y(t,!1)},{keyCode:kh.UP,action:Wy(t,!1)},{keyCode:kh.DOWN,action:Wy(t,!0)},{keyCode:kh.RIGHT,action:cy.move(t,n,!0)},{keyCode:kh.LEFT,action:cy.move(t,n,!1)},{keyCode:kh.RIGHT,ctrlKey:!o.isOSX(),altKey:o.isOSX(),action:cy.moveNextWord(t,n)},{keyCode:kh.LEFT,ctrlKey:!o.isOSX(),altKey:o.isOSX(),action:cy.movePrevWord(t,n)},{keyCode:kh.UP,action:Zy(t,!1)},{keyCode:kh.DOWN,action:Zy(t,!0)}],r).each(function(e){r.preventDefault()}))})},ob=function(e,t){return Zr(e,t)?ya(t,function(e){return Uo(e)||qo(e)},(n=e,function(e){return Qr(n,yr.fromDom(e.dom().parentNode))})):T.none();var n},ib=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))},ab=function(i,a,s){return bs([wl.firstPositionIn(s),wl.lastPositionIn(s)],function(e,t){var n=Bv.normalizePosition(!0,e),r=Bv.normalizePosition(!1,t),o=Bv.normalizePosition(!1,a);return i?wl.nextPosition(s,o).map(function(e){return e.isEqual(r)&&a.isEqual(n)}).getOr(!1):wl.prevPosition(s,o).map(function(e){return e.isEqual(n)&&a.isEqual(r)}).getOr(!1)}).getOr(!0)},sb=Ur("block","position"),ub=Ur("from","to"),lb=function(e,t){var n=yr.fromDom(e),r=yr.fromDom(t.container());return ob(n,r).map(function(e){return sb(e,t)})},cb=function(o,i,e){var t=lb(o,qs.fromRangeStart(e)),n=t.bind(function(e){return wl.fromPosition(i,o,e.position()).bind(function(e){return lb(o,e).map(function(e){return t=o,n=i,r=e,_o.isBr(r.position().getNode())&&!1===Mm(r.block())?wl.positionIn(!1,r.block().dom()).bind(function(e){return e.isEqual(r.position())?wl.fromPosition(n,t,e).bind(function(e){return lb(t,e)}):T.some(r)}).getOr(r):r;var t,n,r})})});return bs([t,n],ub).filter(function(e){return!1===Qr((r=e).from().block(),r.to().block())&&to((n=e).from().block()).bind(function(t){return to(n.to().block()).filter(function(e){return Qr(t,e)})}).isSome()&&(t=e,!1===_o.isContentEditableFalse(t.from().block())&&!1===_o.isContentEditableFalse(t.to().block()));var t,n,r})},fb=function(e,t,n){return n.collapsed?cb(e,t,n):T.none()},db=function(e){var t,n=(t=so(e),Z(t,Vo).fold(function(){return t},function(e){return t.slice(0,e)}));return I(n,na),n},hb=function(e,t){var n=Od(t,e);return Q(n.reverse(),Mm).each(na)},mb=function(e,t,n,r){if(Mm(n))return hm(n),wl.firstPositionIn(n.dom());0===U(io(r),function(e){return!Mm(e)}).length&&Mm(t)&&Gi(r,yr.fromTag("br"));var o=wl.prevPosition(n.dom(),qs.before(r.dom()));return I(db(t),function(e){Gi(r,e)}),hb(e,t),o},gb=function(e,t,n){if(Mm(n))return na(n),Mm(t)&&hm(t),wl.firstPositionIn(t.dom());var r=wl.lastPositionIn(n.dom());return I(db(t),function(e){Zi(n,e)}),hb(e,t),r},pb=function(e,t){return Zr(t,e)?(n=Od(e,t),T.from(n[n.length-1])):T.none();var n},vb=function(e,t){wl.positionIn(e,t.dom()).map(function(e){return e.getNode()}).map(yr.fromDom).filter(Fo).each(na)},yb=function(e,t,n){return vb(!0,t),vb(!1,n),pb(t,n).fold(d(gb,e,t,n),d(mb,e,t,n))},bb=function(e,t,n,r){return t?yb(e,r,n):yb(e,n,r)},Cb=function(t,n){var e,r=yr.fromDom(t.getBody());return(e=fb(r.dom(),n,t.selection.getRng()).bind(function(e){return bb(r,n,e.from().block(),e.to().block())})).each(function(e){t.selection.setRng(e.toRange())}),e.isSome()},wb=function(e,t){var n=yr.fromDom(t),r=d(Qr,e);return va(n,Ko,r).isSome()},xb=function(e,t){var n,r,o=wl.prevPosition(e.dom(),qs.fromRangeStart(t)).isNone(),i=wl.nextPosition(e.dom(),qs.fromRangeEnd(t)).isNone();return!(wb(n=e,(r=t).startContainer)||wb(n,r.endContainer))&&o&&i},Nb=function(e){var n,r,o,t,i=yr.fromDom(e.getBody()),a=e.selection.getRng();return xb(i,a)?((t=e).setContent(""),t.selection.setCursorLocation(),!0):(n=i,r=e.selection,o=r.getRng(),bs([ob(n,yr.fromDom(o.startContainer)),ob(n,yr.fromDom(o.endContainer))],function(e,t){return!1===Qr(e,t)&&(o.deleteContents(),bb(n,!0,e,t).each(function(e){r.setRng(e.toRange())}),!0)}).getOr(!1))},Eb=function(e,t){return!e.selection.isCollapsed()&&Nb(e)},Sb=function(e){return Ju(e).exists(Fo)},zb=function(e,t,n){var r=U(Od(yr.fromDom(n.container()),t),Vo),o=ce(r).getOr(t);return wl.fromPosition(e,o.dom(),n).filter(Sb)},kb=function(e,t){return Ju(t).exists(Fo)||zb(!0,e,t).isSome()},Tb=function(e,t){return(n=t,T.from(n.getNode(!0)).map(yr.fromDom)).exists(Fo)||zb(!1,e,t).isSome();var n},Ab=d(zb,!1),Rb=d(zb,!0),Mb=Jc([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),Db=function(e,t,n,r){var o=r.getNode(!1===t);return ob(yr.fromDom(e),yr.fromDom(n.getNode())).map(function(e){return Mm(e)?Mb.remove(e.dom()):Mb.moveToElement(o)}).orThunk(function(){return T.some(Mb.moveToElement(o))})},Bb=function(s,u,l){return wl.fromPosition(u,s,l).bind(function(e){return a=e.getNode(),Ko(yr.fromDom(a))||qo(yr.fromDom(a))?T.none():(t=s,o=e,i=function(e){return Io(yr.fromDom(e))&&!Uu(r,o,t)},Yu(!(n=u),r=l).fold(function(){return Yu(n,o).fold($(!1),i)},i)?T.none():u&&_o.isContentEditableFalse(e.getNode())?Db(s,u,l,e):!1===u&&_o.isContentEditableFalse(e.getNode(!0))?Db(s,u,l,e):u&&qh(l)?T.some(Mb.moveToPosition(e)):!1===u&&jh(l)?T.some(Mb.moveToPosition(e)):T.none());var t,n,r,o,i,a})},Ob=function(r,e,o){return i=e,a=o.getNode(!1===i),s=i?"after":"before",_o.isElement(a)&&a.getAttribute("data-mce-caret")===s?(t=e,n=o.getNode(!1===e),t&&_o.isContentEditableFalse(n.nextSibling)?T.some(Mb.moveToElement(n.nextSibling)):!1===t&&_o.isContentEditableFalse(n.previousSibling)?T.some(Mb.moveToElement(n.previousSibling)):T.none()).fold(function(){return Bb(r,e,o)},T.some):Bb(r,e,o).bind(function(e){return t=r,n=o,e.fold(function(e){return T.some(Mb.remove(e))},function(e){return T.some(Mb.moveToElement(e))},function(e){return Uu(n,e,t)?T.none():T.some(Mb.moveToPosition(e))});var t,n});var t,n,i,a,s},_b=function(a,s){var e,t,n,r,o,i;return(e=a.getBody(),t=s,n=a.selection.getRng(),r=Xu(t?1:-1,e,n),o=qs.fromRangeStart(r),i=yr.fromDom(e),!1===t&&qh(o)?T.some(Mb.remove(o.getNode(!0))):t&&jh(o)?T.some(Mb.remove(o.getNode())):!1===t&&jh(o)&&Tb(i,o)?Ab(i,o).map(function(e){return Mb.remove(e.getNode())}):t&&qh(o)&&kb(i,o)?Rb(i,o).map(function(e){return Mb.remove(e.getNode())}):Ob(e,t,o)).map(function(e){return e.fold((o=a,i=s,function(e){return o._selectionOverrides.hideFakeCaret(),Um(o,i,yr.fromDom(e)),!0}),(n=a,r=s,function(e){var t=r?qs.before(e):qs.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)},Pb=function(e,t){var n,r=e.selection.getNode();return!!_o.isContentEditableFalse(r)&&(n=yr.fromDom(e.getBody()),I(ma(n,".mce-offscreen-selection"),na),Um(e,t,yr.fromDom(e.selection.getNode())),ib(e),!0)},Hb=function(e,t){return e.selection.isCollapsed()?_b(e,t):Pb(e,t)},Lb=function(e){var t,n=function(e,t){for(;t&&t!==e;){if(_o.isContentEditableTrue(t)||_o.isContentEditableFalse(t))return t;t=t.parentNode}return null}(e.getBody(),e.selection.getNode());return _o.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(qs.before(t).toRange())),!0},Vb=function(e,t,n,r,o,i){var a,s,u=xh(r,e,i.getNode(!o),o,!0);if(t.collapsed){var l=t.cloneRange();o?l.setEnd(u.startContainer,u.startOffset):l.setStart(u.endContainer,u.endOffset),l.deleteContents()}else t.deleteContents();return e.selection.setRng(u),a=e.dom,s=n,_o.isText(s)&&0===s.data.length&&a.remove(s),!0},Ib=function(e,t){return function(e,t){var n=e.selection.getRng();if(!_o.isText(n.commonAncestorContainer))return!1;var r=t?Us.Forwards:Us.Backwards,o=cl(e.getBody()),i=d(Qu,o.next),a=d(Qu,o.prev),s=t?i:a,u=t?jh:qh,l=Gu(r,e.getBody(),n),c=Bv.normalizePosition(t,s(l));if(!c)return!1;if(u(c))return Vb(e,n,l.getNode(),r,t,c);var f=s(c);return!!(f&&u(f)&&Zu(c,f))&&Vb(e,n,l.getNode(),r,t,f)}(e,t)},Fb=function(t,n){return function(e){return Rv(n,e).map(function(e){return cy.setCaretPosition(t,e),!0}).getOr(!1)}},Ub=function(r,o,i,a){var s=r.getBody(),u=d(Bv.isInlineTarget,r);r.undoManager.ignore(function(){var e,t,n;r.selection.setRng((e=i,t=a,(n=j.document.createRange()).setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n)),r.execCommand("Delete"),Qv(u,s,qs.fromRangeStart(r.selection.getRng())).map(ty).map(Fb(r,o))}),r.nodeChanged()},jb=function(n,r,i,o){var e,t,a=(e=n.getBody(),t=o.container(),Fu(t,e)||e),s=d(Bv.isInlineTarget,n),u=Qv(s,a,o);return u.bind(function(e){return i?e.fold($(T.some(ty(e))),T.none,$(T.some(ey(e))),T.none):e.fold(T.none,$(T.some(ey(e))),T.none,$(T.some(ty(e))))}).map(Fb(n,r)).getOrThunk(function(){var t=wl.navigate(i,a,o),e=t.bind(function(e){return Qv(s,a,e)});return u.isSome()&&e.isSome()?Bv.findRootInline(s,a,o).map(function(e){return o=e,!!bs([wl.firstPositionIn(o),wl.lastPositionIn(o)],function(e,t){var n=Bv.normalizePosition(!0,e),r=Bv.normalizePosition(!1,t);return wl.nextPosition(o,n).map(function(e){return e.isEqual(r)}).getOr(!0)}).getOr(!0)&&(Um(n,i,yr.fromDom(e)),!0);var o}).getOr(!1):e.bind(function(e){return t.map(function(e){return i?Ub(n,r,o,e):Ub(n,r,e,o),!0})}).getOr(!1)})},qb=function(e,t,n){if(e.selection.isCollapsed()&&!1!==e.settings.inline_boundaries){var r=qs.fromRangeStart(e.selection.getRng());return jb(e,t,n,r)}return!1},$b=function(e){return 1===so(e).length},Wb=function(e,t,n,r){var o,i,a,s,u=d(eg,t),l=X(U(r,u),function(e){return e.dom()});if(0===l.length)Um(t,e,n);else{var c=(o=n.dom(),i=l,a=Km(!1),s=Qm(i,a.dom()),Gi(yr.fromDom(o),a),na(yr.fromDom(o)),qs(s,0));t.selection.setRng(c.toRange())}},Kb=function(r,o){var t,e=yr.fromDom(r.getBody()),n=yr.fromDom(r.selection.getStart()),i=U((t=Od(n,e),Z(t,Vo).fold($(t),function(e){return t.slice(0,e)})),$b);return fe(i).map(function(e){var t,n=qs.fromRangeStart(r.selection.getRng());return!(!ab(o,n,e.dom())||hu((t=e).dom())&&$m(t.dom())||(Wb(o,r,e,i),0))}).getOr(!1)},Xb=function(e,t){return!!e.selection.isCollapsed()&&Kb(e,t)},Yb=Ur("start","end"),Gb=Ur("rng","table","cells"),Jb=Jc([{removeTable:["element"]},{emptyCells:["cells"]}]),Qb=function(e,t){return wa(yr.fromDom(e),"td,th",t)},Zb=function(e,t){return ba(e,"table",t)},eC=function(e){return!1===Qr(e.start(),e.end())},tC=function(e,n){return Zb(e.start(),n).bind(function(t){return Zb(e.end(),n).bind(function(e){return Qr(t,e)?T.some(t):T.none()})})},nC=function(e){return ma(e,"td,th")},rC=function(r,e){var t=Qb(e.startContainer,r),n=Qb(e.endContainer,r);return e.collapsed?T.none():bs([t,n],Yb).fold(function(){return t.fold(function(){return n.bind(function(t){return Zb(t,r).bind(function(e){return ce(nC(e)).map(function(e){return Yb(e,t)})})})},function(t){return Zb(t,r).bind(function(e){return fe(nC(e)).map(function(e){return Yb(t,e)})})})},function(e){return oC(r,e)?T.none():(n=r,Zb((t=e).start(),n).bind(function(e){return fe(nC(e)).map(function(e){return Yb(t.start(),e)})}));var t,n})},oC=function(e,t){return tC(t,e).isSome()},iC=function(e,t){var n,r,o,i,a=d(Qr,e);return(n=t,r=a,o=Qb(n.startContainer,r),i=Qb(n.endContainer,r),bs([o,i],Yb).filter(eC).filter(function(e){return oC(r,e)}).orThunk(function(){return rC(r,n)})).bind(function(e){return tC(t=e,a).map(function(e){return Gb(t,e,nC(e))});var t})},aC=function(e,t){return Z(e,function(e){return Qr(e,t)})},sC=function(n){return(r=n,bs([aC(r.cells(),r.rng().start()),aC(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?Jb.removeTable(n.table()):Jb.emptyCells(e)});var r},uC=function(e,t){return iC(e,t).bind(sC)},lC=function(e,t){return I(t,hm),e.selection.setCursorLocation(t[0].dom(),0),!0},cC=function(e,t){return Um(e,!1,t),!0},fC=function(n,e,r,t){return hC(e,t).fold(function(){return t=n,uC(e,r).map(function(e){return e.fold(d(cC,t),d(lC,t))});var t},function(e){return mC(n,e)}).getOr(!1)},dC=function(e,t){return Q(Od(t,e),Ko)},hC=function(e,t){return Q(Od(t,e),function(e){return"caption"===xr(e)})},mC=function(e,t){return hm(t),e.selection.setCursorLocation(t.dom(),0),T.some(!0)},gC=function(s,u,l,c,f){return wl.navigate(l,s.getBody(),f).bind(function(e){return r=c,o=l,i=f,a=e,wl.firstPositionIn(r.dom()).bind(function(t){return wl.lastPositionIn(r.dom()).map(function(e){return o?i.isEqual(t)&&a.isEqual(e):i.isEqual(e)&&a.isEqual(t)})}).getOr(!0)?mC(s,c):(t=c,n=e,hC(u,yr.fromDom(n.getNode())).map(function(e){return!1===Qr(e,t)}));var t,n,r,o,i,a}).or(T.some(!0))},pC=function(a,s,u,e){var l=qs.fromRangeStart(a.selection.getRng());return dC(u,e).bind(function(e){return Mm(e)?mC(a,e):(t=a,n=u,r=s,o=e,i=l,wl.navigate(r,t.getBody(),i).bind(function(e){return dC(n,yr.fromDom(e.getNode())).map(function(e){return!1===Qr(e,o)})}));var t,n,r,o,i}).getOr(!1)},vC=function(e,t){return e?Ih(t):Fh(t)},yC=function(a,s,r){var u=yr.fromDom(a.getBody());return hC(u,r).fold(function(){return pC(a,s,u,r)||(e=a,t=s,n=qs.fromRangeStart(e.selection.getRng()),vC(t,n)||wl.fromPosition(t,e.getBody(),n).map(function(e){return vC(t,e)}).getOr(!1));var e,t,n},function(e){return(t=a,n=s,r=u,o=e,i=qs.fromRangeStart(t.selection.getRng()),Mm(o)?mC(t,o):gC(t,r,n,o,i)).getOr(!1);var t,n,r,o,i})},bC=function(e,t){var n,r,o,i,a,s=yr.fromDom(e.selection.getStart(!0)),u=Gp(e);return e.selection.isCollapsed()&&0===u.length?yC(e,t,s):(n=e,r=s,o=yr.fromDom(n.getBody()),i=n.selection.getRng(),0!==(a=Gp(n)).length?lC(n,a):fC(n,o,i,r))},CC=function(e,t){return!!e.selection.isCollapsed()&&(n=e,r=t,o=qs.fromRangeStart(n.selection.getRng()),wl.fromPosition(r,n.getBody(),o).filter(function(e){return r?Lh(e):Vh(e)}).bind(function(e){return T.from(ju(r?0:-1,e))}).map(function(e){return n.selection.select(e),!0}).getOr(!1));var n,r,o},wC=function(o,i){o.on("keydown",function(e){var t,n,r;!1===e.isDefaultPrevented()&&(t=o,n=i,r=e,nb([{keyCode:kh.BACKSPACE,action:tb(Hb,t,!1)},{keyCode:kh.DELETE,action:tb(Hb,t,!0)},{keyCode:kh.BACKSPACE,action:tb(Ib,t,!1)},{keyCode:kh.DELETE,action:tb(Ib,t,!0)},{keyCode:kh.BACKSPACE,action:tb(qb,t,n,!1)},{keyCode:kh.DELETE,action:tb(qb,t,n,!0)},{keyCode:kh.BACKSPACE,action:tb(bC,t,!1)},{keyCode:kh.DELETE,action:tb(bC,t,!0)},{keyCode:kh.BACKSPACE,action:tb(CC,t,!1)},{keyCode:kh.DELETE,action:tb(CC,t,!0)},{keyCode:kh.BACKSPACE,action:tb(Eb,t,!1)},{keyCode:kh.DELETE,action:tb(Eb,t,!0)},{keyCode:kh.BACKSPACE,action:tb(Cb,t,!1)},{keyCode:kh.DELETE,action:tb(Cb,t,!0)},{keyCode:kh.BACKSPACE,action:tb(Xb,t,!1)},{keyCode:kh.DELETE,action:tb(Xb,t,!0)}],r).each(function(e){r.preventDefault()}))}),o.on("keyup",function(e){var t,n;!1===e.isDefaultPrevented()&&(t=o,n=e,nb([{keyCode:kh.BACKSPACE,action:tb(Lb,t)},{keyCode:kh.DELETE,action:tb(Lb,t)}],n))})},xC=function(e){return T.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},NC=function(e,t){var n,r,o=t,i=e.dom,a=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(i.doc.createTextNode("\xa0"),t.firstChild)}if(r=i.createRng(),t.normalize(),t.hasChildNodes()){for(var u=new Po(t,t);n=u.current();){if(_o.isText(n)){r.setStart(n,0),r.setEnd(n,0);break}if(a[n.nodeName.toLowerCase()]){r.setStartBefore(n),r.setEndBefore(n);break}o=n,n=u.next()}n||(r.setStart(o,0),r.setEnd(o,0))}else _o.isBr(t)?t.nextSibling&&i.isBlock(t.nextSibling)?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)):(r.setStart(t,0),r.setEnd(t,0));e.selection.setRng(r),e.selection.scrollIntoView(t)}},EC=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},SC=xC,zC=function(e){return xC(e).fold($(""),function(e){return e.nodeName.toUpperCase()})},kC=function(e){return xC(e).filter(function(e){return qo(yr.fromDom(e))}).isSome()},TC=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},AC=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},RC=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},MC=function(e,t,n){for(var r=e[n?"firstChild":"lastChild"];r&&!_o.isElement(r);)r=r[n?"nextSibling":"previousSibling"];return r===t},DC=function(e,t,n,r,o){var i=e.dom,a=e.selection.getRng();if(n!==e.getBody()){var s;AC(s=n)&&AC(s.parentNode)&&(o="LI");var u,l,c=o?t(o):i.create("BR");if(MC(n,r,!0)&&MC(n,r,!1))TC(n,"LI")?i.insertAfter(c,RC(n)):i.replace(c,n);else if(MC(n,r,!0))TC(n,"LI")?(i.insertAfter(c,RC(n)),c.appendChild(i.doc.createTextNode(" ")),c.appendChild(n)):n.parentNode.insertBefore(c,n);else if(MC(n,r,!1))i.insertAfter(c,RC(n));else{n=RC(n);var f=a.cloneRange();f.setStartAfter(r),f.setEndAfter(n);var d=f.extractContents();"LI"===o&&(l="LI",(u=d).firstChild&&u.firstChild.nodeName===l)?(c=d.firstChild,i.insertAfter(d,n)):(i.insertAfter(d,n),i.insertAfter(c,n))}i.remove(r),NC(e,c)}},BC=function(e){e.innerHTML='<br data-mce-bogus="1">'},OC=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},_C=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)},PC=function(e,t,n){return!1===_o.isText(t)?n:e?1===n&&t.data.charAt(n-1)===Pa?0:n:n===t.data.length-1&&t.data.charAt(n)===Pa?t.data.length:n},HC=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},LC=function(e,t){var n=wc(e);n&&n.toLowerCase()===t.tagName.toLowerCase()&&e.dom.setAttribs(t,xc(e))},VC=function(a,e){var t,s,u,i,l,n,r,o,c,f,d,h,m,g=a.dom,p=a.schema,v=p.getNonEmptyElements(),y=a.selection.getRng(),b=function(e){var t,n,r,o=u,i=p.getTextInlineElements();if(e||"TABLE"===f||"HR"===f?(t=g.create(e||h),LC(a,t)):t=l.cloneNode(!1),r=t,!1===Sc(a))g.setAttrib(t,"style",null),g.setAttrib(t,"class",null);else do{if(i[o.nodeName]){if(hu(o)||Ml(o))continue;n=o.cloneNode(!1),g.setAttrib(n,"id",""),t.hasChildNodes()?n.appendChild(t.firstChild):r=n,t.appendChild(n)}}while((o=o.parentNode)&&o!==s);return BC(r),t},C=function(e){var t,n,r=PC(e,u,i);if(_o.isText(u)&&(e?0<r:r<u.nodeValue.length))return!1;if(u.parentNode===l&&m&&!e)return!0;if(e&&_o.isElement(u)&&u===l.firstChild)return!0;if(OC(u,"TABLE")||OC(u,"HR"))return m&&!e||!m&&e;var o=new Po(u,l);for(_o.isText(u)&&(e&&0===r?o.prev():e||r!==u.nodeValue.length||o.next());t=o.current();){if(_o.isElement(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),v[n]&&"br"!==n))return!1}else if(_o.isText(t)&&!/^[ \t\r\n]*$/.test(t.nodeValue))return!1;e?o.prev():o.next()}return!0},w=function(){r=/^(H[1-6]|PRE|FIGURE)$/.test(f)&&"HGROUP"!==d?b(h):b(),zc(a)&&_C(g,c)&&g.isEmpty(l)?r=g.split(c,l):g.insertAfter(r,l),NC(a,r)};cv(g,y).each(function(e){y.setStart(e.startContainer,e.startOffset),y.setEnd(e.endContainer,e.endOffset)}),u=y.startContainer,i=y.startOffset,h=wc(a),n=!(!e||!e.shiftKey);var x,N,E,S,z,k,T=!(!e||!e.ctrlKey);_o.isElement(u)&&u.hasChildNodes()&&(m=i>u.childNodes.length-1,u=u.childNodes[Math.min(i,u.childNodes.length-1)]||u,i=m&&_o.isText(u)?u.nodeValue.length:0),(s=HC(g,u))&&((h&&!n||!h&&n)&&(u=function(e,t,n,r,o){var i,a,s,u,l,c,f,d=t||"P",h=e.dom,m=HC(h,r);if(!(a=h.getParent(r,h.isBlock))||!_C(h,a)){if(c=(a=a||m)===e.getBody()||(f=a)&&/^(TD|TH|CAPTION)$/.test(f.nodeName)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return i=h.create(d),LC(e,i),a.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;for(u=r;u.parentNode!==a;)u=u.parentNode;for(;u&&!h.isBlock(u);)u=(s=u).previousSibling;if(s&&e.schema.isValidChild(c,d.toLowerCase())){for(i=h.create(d),LC(e,i),s.parentNode.insertBefore(i,s),u=s;u&&!h.isBlock(u);)l=u.nextSibling,i.appendChild(u),u=l;n.setStart(r,o),n.setEnd(r,o)}}return r}(a,h,y,u,i)),l=g.getParent(u,g.isBlock),c=l?g.getParent(l.parentNode,g.isBlock):null,f=l?l.nodeName.toUpperCase():"","LI"!==(d=c?c.nodeName.toUpperCase():"")||T||(c=(l=c).parentNode,f=d),/^(LI|DT|DD)$/.test(f)&&g.isEmpty(l)?DC(a,b,c,l,h):h&&l===a.getBody()||(h=h||"P",Ia(l)?(r=Ga(l),g.isEmpty(l)&&BC(l),NC(a,r)):C()?w():C(!0)?(r=l.parentNode.insertBefore(b(),l),NC(a,OC(l,"HR")?r:l)):((t=(z=y,k=z.cloneRange(),k.setStart(z.startContainer,PC(!0,z.startContainer,z.startOffset)),k.setEnd(z.endContainer,PC(!1,z.endContainer,z.endOffset)),k).cloneRange()).setEndAfter(l),o=t.extractContents(),S=o,I(ha(yr.fromDom(S),Sr),function(e){var t=e.dom();t.nodeValue=Ha(t.nodeValue)}),function(e){for(;_o.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;);}(o),r=o.firstChild,g.insertAfter(o,l),function(e,t,n){var r,o=n,i=[];if(o){for(;o=o.firstChild;){if(e.isBlock(o))return;_o.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,(s=o)&&"A"===s.nodeName&&a.isEmpty(s)&&e.remove(o));var a,s}}(g,v,r),x=g,(N=l).normalize(),(E=N.lastChild)&&!/^(left|right)$/gi.test(x.getStyle(E,"float",!0))||x.add(N,"br"),g.isEmpty(l)&&BC(l),r.normalize(),g.isEmpty(r)?(g.remove(r),w()):NC(a,r)),g.setAttrib(r,"id",""),a.fire("NewBlock",{newBlock:r})))},IC=function(e,t,n){var r=e.create("span",{},"&nbsp;");n.parentNode.insertBefore(r,n),t.scrollIntoView(r),e.remove(r)},FC=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)},UC=function(e,t){var n,r,o=e.selection,i=e.dom,a=o.getRng();cv(i,a).each(function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)});var s=a.startOffset,u=a.startContainer;if(1===u.nodeType&&u.hasChildNodes()){var l=s>u.childNodes.length-1;u=u.childNodes[Math.min(s,u.childNodes.length-1)]||u,s=l&&3===u.nodeType?u.nodeValue.length:0}var c=i.getParent(u,i.isBlock),f=c?i.getParent(c.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==d||h||(c=f),u&&3===u.nodeType&&s>=u.nodeValue.length&&(function(e,t,n){for(var r,o=new Po(t,n),i=e.getNonEmptyElements();r=o.next();)if(i[r.nodeName.toLowerCase()]||0<r.length)return!0}(e.schema,u,c)||(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=i.create("br"),tu(i,a,n),IC(i,o,n),FC(i,o,n,r),e.undoManager.add()},jC=function(e,t){var n=yr.fromTag("br");Gi(yr.fromDom(t),n),e.undoManager.add()},qC=function(e,t){$C(e.getBody(),t)||Ji(yr.fromDom(t),yr.fromTag("br"));var n=yr.fromTag("br");Ji(yr.fromDom(t),n),IC(e.dom,e.selection,n.dom()),FC(e.dom,e.selection,n.dom(),!1),e.undoManager.add()},$C=function(e,t){return n=qs.after(t),!!_o.isBr(n.getNode())||wl.nextPosition(e,qs.after(t)).map(function(e){return _o.isBr(e.getNode())}).getOr(!1);var n},WC=function(e){return e&&"A"===e.nodeName&&"href"in e},KC=function(e){return e.fold($(!1),WC,WC,$(!1))},XC=function(e,t){t.fold(u,d(jC,e),d(qC,e),u)},YC=function(e,t){var n,r,o,i=(n=e,r=d(Bv.isInlineTarget,n),o=qs.fromRangeStart(n.selection.getRng()),Qv(r,n.getBody(),o).filter(KC));i.isSome()?i.each(d(XC,e)):UC(e,t)},GC=function(e,t){return SC(e).filter(function(e){return 0<t.length&&Yr(yr.fromDom(e),t)}).isSome()},JC=function(e){return GC(e,Nc(e))},QC=function(e){return GC(e,Ec(e))},ZC=Jc([{br:[]},{block:[]},{none:[]}]),ew=function(e,t){return QC(e)},tw=function(n){return function(e,t){return""===wc(e)===n}},nw=function(n){return function(e,t){return kC(e)===n}},rw=function(n,r){return function(e,t){return zC(e)===n.toUpperCase()===r}},ow=function(e){return rw("pre",e)},iw=function(n){return function(e,t){return Cc(e)===n}},aw=function(e,t){return JC(e)},sw=function(e,t){return t},uw=function(e){var t=wc(e),n=EC(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},lw=function(e,t){return function(n,r){return J(e,function(e,t){return e&&t(n,r)},!0)?T.some(t):T.none()}},cw=function(e,t){return Ov([lw([ew],ZC.none()),lw([rw("summary",!0)],ZC.br()),lw([ow(!0),iw(!1),sw],ZC.br()),lw([ow(!0),iw(!1)],ZC.block()),lw([ow(!0),iw(!0),sw],ZC.block()),lw([ow(!0),iw(!0)],ZC.br()),lw([nw(!0),sw],ZC.br()),lw([nw(!0)],ZC.block()),lw([tw(!0),sw,uw],ZC.block()),lw([tw(!0)],ZC.br()),lw([aw],ZC.br()),lw([tw(!1),sw],ZC.br()),lw([uw],ZC.block())],[e,!(!t||!t.shiftKey)]).getOr(ZC.none())},fw=function(e,t){cw(e,t).fold(function(){YC(e,t)},function(){VC(e,t)},u)},dw=function(o){o.on("keydown",function(e){var t,n,r;e.keyCode===kh.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"),fw(t,n)})))})},hw=function(n,r){var e=r.container(),t=r.offset();return _o.isText(e)?(e.insertData(t,n),T.some(Fs(e,t+n.length))):Ju(r).map(function(e){var t=yr.fromText(n);return r.isAtEnd()?Ji(e,t):Gi(e,t),Fs(t.dom(),n.length)})},mw=d(hw,"\xa0"),gw=d(hw," "),pw=function(e,t,n){return wl.navigateIgnore(e,t,n,Oh)},vw=function(t,n,r){var e=U(Od(yr.fromDom(r.container()),n),Vo);return ce(e).fold(function(){return pw(t,n.dom(),r).forall(function(e){return!1===Uu(e,r,n.dom())})},function(e){return pw(t,e.dom(),r).isNone()})},yw=d(vw,!1),bw=d(vw,!0),Cw=function(e){return Fs.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},ww=function(e,t){var n=U(Od(yr.fromDom(t.container()),e),Vo);return ce(n).getOr(e)},xw=function(e,t){return Cw(t)?Bh(t):Bh(t)||wl.prevPosition(ww(e,t).dom(),t).exists(Bh)},Nw=function(e,t){return Cw(t)?Dh(t):Dh(t)||wl.nextPosition(ww(e,t).dom(),t).exists(Dh)},Ew=function(e){return Ju(e).bind(function(e){return ya(e,Er)}).exists(function(e){return t=Vr(e,"white-space"),L(["pre","pre-line","pre-wrap"],t);var t})},Sw=function(e,t){return o=e,i=t,wl.prevPosition(o.dom(),i).isNone()||(n=e,r=t,wl.nextPosition(n.dom(),r).isNone())||yw(e,t)||bw(e,t)||Tb(e,t)||kb(e,t);var n,r,o,i},zw=function(e,t){var n,r,o,i=(r=(n=t).container(),o=n.offset(),_o.isText(r)&&o<r.data.length?Fs(r,o+1):n);return!Ew(i)&&(bw(e,i)||kb(e,i)||Nw(e,i))},kw=function(e,t){return n=e,!Ew(r=t)&&(yw(n,r)||Tb(n,r)||xw(n,r))||zw(e,t);var n,r},Tw=function(e,t){return Th(e.charAt(t))},Aw=function(e){var t=e.container();return _o.isText(t)&&sr(t.data,"\xa0")},Rw=function(e){var t=e.data,n=X(t.split(""),function(e,t,n){return Th(e)&&0<t&&t<n.length-1&&Rh(n[t-1])&&Rh(n[t+1])?" ":e}).join("");return n!==t&&(e.data=n,!0)},Mw=function(c,e){return T.some(e).filter(Aw).bind(function(e){var t,n,r,o,i,a,s,u,l=e.container();return i=c,s=(a=l).data,u=Fs(a,0),Tw(s,0)&&!kw(i,u)&&(a.data=" "+s.slice(1),1)||Rw(l)||(t=c,r=(n=l).data,o=Fs(n,r.length-1),Tw(r,r.length-1)&&!kw(t,o)&&(n.data=r.slice(0,-1)+" ",1))?T.some(e):T.none()})},Dw=function(t){var e=yr.fromDom(t.getBody());t.selection.isCollapsed()&&Mw(e,Fs.fromRangeStart(t.selection.getRng())).each(function(e){t.selection.setRng(e.toRange())})},Bw=function(r,o){return function(e){return t=r,!Ew(n=e)&&(Sw(t,n)||xw(t,n)||Nw(t,n))?mw(o):gw(o);var t,n}},Ow=function(e){var t,n,r=qs.fromRangeStart(e.selection.getRng()),o=yr.fromDom(e.getBody());if(e.selection.isCollapsed()){var i=d(Bv.isInlineTarget,e),a=qs.fromRangeStart(e.selection.getRng());return Qv(i,e.getBody(),a).bind((n=o,function(e){return e.fold(function(e){return wl.prevPosition(n.dom(),qs.before(e))},function(e){return wl.firstPositionIn(e)},function(e){return wl.lastPositionIn(e)},function(e){return wl.nextPosition(n.dom(),qs.after(e))})})).bind(Bw(o,r)).exists((t=e,function(e){return t.selection.setRng(e.toRange()),t.nodeChanged(),!0}))}return!1},_w=function(r){r.on("keydown",function(e){var t,n;!1===e.isDefaultPrevented()&&(t=r,n=e,nb([{keyCode:kh.SPACEBAR,action:tb(Ow,t)}],n).each(function(e){n.preventDefault()}))})},Pw=function(e,t){var n;t.hasAttribute("data-mce-caret")&&(Ga(t),(n=e).selection.setRng(n.selection.getRng()),e.selection.scrollIntoView(t))},Hw=function(e,t){var n,r=(n=e,Ca(yr.fromDom(n.getBody()),"*[data-mce-caret]").fold($(null),function(e){return e.dom()}));if(r)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void Pw(e,r)):void(ja(r)&&(Pw(e,r),e.undoManager.add()))},Lw=function(e){e.on("keyup compositionstart",d(Hw,e))},Vw=pr.detect().browser,Iw=function(t){var e,n;e=t,n=oa(function(){e.composing||Dw(e)},0),Vw.isIE()&&(e.on("keypress",function(e){n.throttle()}),e.on("remove",function(e){n.cancel()})),t.on("input",function(e){!1===e.isComposing&&Dw(t)})},Fw=function(r){r.on("keydown",function(e){var t,n;!1===e.isDefaultPrevented()&&(t=r,n=e,nb([{keyCode:kh.END,action:My(t,!0)},{keyCode:kh.HOME,action:My(t,!1)}],n).each(function(e){n.preventDefault()}))})},Uw=function(e){var t=cy.setupSelectedState(e);Lw(e),rb(e,t),wC(e,t),dw(e),_w(e),Iw(e),Fw(e)},jw=function(s){var u,n,r,o=sn.each,l=kh.BACKSPACE,c=kh.DELETE,f=s.dom,d=s.selection,e=s.settings,t=s.parser,i=Fe.gecko,a=Fe.ie,h=Fe.webkit,m="data:text/mce-internal,",g=a?"Text":"URL",p=function(e,t){try{s.getDoc().execCommand(e,!1,t)}catch(n){}},v=function(e){return e.isDefaultPrevented()},y=function(){s.shortcuts.add("meta+a",null,"SelectAll")},b=function(){s.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(){s.inline||(s.contentStyles.push("body {min-height: 150px}"),s.on("click",function(e){var t;if("HTML"===e.target.nodeName){if(11<Fe.ie)return void s.getBody().focus();t=s.selection.getRng(),s.getBody().focus(),s.selection.setRng(t),s.selection.normalize(),s.nodeChanged()}}))};return s.on("keydown",function(e){var t,n,r,o,i;if(!v(e)&&e.keyCode===kh.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&&(s.formatter.toggle("blockquote",null,i),(t=f.createRng()).setStart(n,0),t.setEnd(n,0),d.setRng(t))}}),u=function(e){var t=f.create("body"),n=e.cloneContents();return t.appendChild(n),d.serializer.serialize(t,{format:"html"})},s.on("keydown",function(e){var t,n,r,o,i,a=e.keyCode;if(!v(e)&&(a===c||a===l)){if(t=s.selection.isCollapsed(),n=s.getBody(),t&&!f.isEmpty(n))return;if(!t&&(r=s.selection.getRng(),o=u(r),(i=f.createRng()).selectNode(s.getBody()),o!==u(i)))return;e.preventDefault(),s.setContent(""),n.firstChild&&f.isBlock(n.firstChild)?s.selection.setCursorLocation(n.firstChild,0):s.selection.setCursorLocation(n,0),s.nodeChanged()}}),Fe.windowsPhone||s.on("keyup focusin mouseup",function(e){kh.modifierPressed(e)||d.normalize()},!0),h&&(s.inline||f.bind(s.getDoc(),"mousedown mouseup",function(e){var t;if(e.target===s.getDoc().documentElement)if(t=d.getRng(),s.getBody().focus(),"mousedown"===e.type){if(Ua(t.startContainer))return;d.placeCaretAt(e.clientX,e.clientY)}else d.setRng(t)}),s.on("click",function(e){var t=e.target;/^(IMG|HR)$/.test(t.nodeName)&&"false"!==f.getContentEditableParent(t)&&(e.preventDefault(),s.selection.select(t),s.nodeChanged()),"A"===t.nodeName&&f.hasClass(t,"mce-item-anchor")&&(e.preventDefault(),d.select(t))}),e.forced_root_block&&s.on("init",function(){p("DefaultParagraphSeparator",wc(s))}),s.on("init",function(){s.dom.bind(s.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()}),Fe.iOS?(s.inline||s.on("keydown",function(){j.document.activeElement===j.document.body&&s.getWin().focus()}),C(),s.on("click",function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)}),s.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")):y()),11<=Fe.ie&&(C(),b()),Fe.ie&&(y(),p("AutoUrlDetect",!1),s.on("dragstart",function(e){var t,n,r;(t=e).dataTransfer&&(s.selection.isCollapsed()&&"IMG"===t.target.tagName&&d.select(t.target),0<(n=s.selection.getContent()).length&&(r=m+escape(s.id)+","+escape(n),t.dataTransfer.setData(g,r)))}),s.on("drop",function(e){if(!v(e)){var t=(i=e).dataTransfer&&(a=i.dataTransfer.getData(g))&&0<=a.indexOf(m)?(a=a.substr(m.length).split(","),{id:unescape(a[0]),html:unescape(a[1])}):null;if(t&&t.id!==s.id){e.preventDefault();var n=Ap(e.x,e.y,s.getDoc());d.setRng(n),r=t.html,o=!0,s.queryCommandSupported("mceInsertClipboardContent")?s.execCommand("mceInsertClipboardContent",!1,{content:r,internal:o}):s.execCommand("mceInsertContent",!1,r)}}var r,o,i,a})),i&&(s.on("keydown",function(e){if(!v(e)&&e.keyCode===l){if(!s.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())}}}),j.Range.prototype.getClientRects||s.on("mousedown",function(e){if(!v(e)&&"HTML"===e.target.nodeName){var t=s.getBody();t.blur(),We.setEditorTimeout(s,function(){t.focus()})}}),n=function(){var e=f.getAttribs(d.getStart().cloneNode(!1));return function(){var t=d.getStart();t!==s.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)},s.on("keypress",function(e){var t;if(!v(e)&&(8===e.keyCode||46===e.keyCode)&&r())return t=n(),s.getDoc().execCommand("delete",!1,null),t(),e.preventDefault(),!1}),f.bind(s.getDoc(),"cut",function(e){var t;!v(e)&&r()&&(t=n(),We.setEditorTimeout(s,function(){t()}))}),e.readonly||s.on("BeforeExecCommand mousedown",function(){p("StyleWithCSS",!1),p("enableInlineTableEditing",!1),e.object_resizing||p("enableObjectResizing",!1)}),s.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})}})}),s.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"),Fe.mac&&s.on("keydown",function(e){!kh.metaKeyPressed(e)||e.shiftKey||37!==e.keyCode&&39!==e.keyCode||(e.preventDefault(),s.selection.getSel().modify("move",37===e.keyCode?"backward":"forward","lineboundary"))}),b()),{refreshContentEditable:function(){},isHidden:function(){var e;return!(!i||s.removed||(e=s.selection.getSel())&&e.rangeCount&&0!==e.rangeCount)}}},qw=function(e){return _o.isElement(e)&&Uo(yr.fromDom(e))},$w=function(t){t.on("click",function(e){3<=e.detail&&function(e){var t=e.selection.getRng(),n=Fs.fromRangeStart(t),r=Fs.fromRangeEnd(t);if(Fs.isElementPosition(n)){var o=n.container();qw(o)&&wl.firstPositionIn(o).each(function(e){return t.setStart(e.container(),e.offset())})}Fs.isElementPosition(r)&&(o=n.container(),qw(o)&&wl.lastPositionIn(o).each(function(e){return t.setEnd(e.container(),e.offset())})),e.selection.setRng(_g(t))}(t)})},Ww=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){I(e,function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")})}),n.serializer.addNodeFilter("details",function(e){I(e,function(e){var t=e.attr("data-mce-open");e.attr("open",K(t)?t:null),e.attr("data-mce-open",null)})})},Kw=_i.DOM,Xw=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&&We.setEditorTimeout(t,function(){var e;(e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus)).destroyed||e.focus()},100)},Yw=function(t,e){var n,r,s,o,i,a,u,l,c,f=t.settings,d=t.getElement(),h=t.getDoc();f.inline||(t.getElement().style.visibility=t.orgVisibility),e||t.inline||(h.open(),h.write(t.iframeHTML),h.close()),t.inline&&(t.on("remove",function(){var e=this.getBody();Kw.removeClass(e,"mce-content-body"),Kw.removeClass(e,"mce-edit-focus"),Kw.setAttrib(e,"contentEditable",null)}),Kw.addClass(d,"mce-content-body"),t.contentDocument=h=f.content_document||j.document,t.contentWindow=f.content_window||j.window,t.bodyElement=d,t.contentAreaContainer=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"===Kw.getStyle(n,"position",!0)&&(n.style.position="relative"),n.contentEditable=t.getParam("content_editable_state",!0)),n.disabled=!1,t.editorUpload=Rd(t),t.schema=xi(f),t.dom=_i(h,{keep_values:!0,url_converter:t.convertURL,url_converter_scope:t,hex_colors:f.force_hex_style_colors,update_styles:!0,root_element:t.inline?t.getBody():null,collect:function(){return t.inline},schema:t.schema,contentCssCors:Hc(t),onSetAttrib:function(e){t.fire("SetAttrib",e)}}),t.parser=((o=hp((s=t).settings,s.schema)).addAttributeFilter("src,href,style,tabindex",function(e,t){for(var n,r,o,i=e.length,a=s.dom;i--;)if(r=(n=e[i]).attr(t),o="data-mce-"+t,!n.attr(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,s.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=s.schema.getNonEmptyElements();n--;)(t=e[n]).isEmpty(r)&&0===t.getAll("br").length&&(t.append(new ac("br",1)).shortEnded=!0)}),o),t.serializer=vp(f,t),t.selection=Cv(t.dom,t.getWin(),t.serializer,t),t.annotator=nc(t),t.formatter=Jg(t),t.undoManager=fm(t),t._nodeChangeDispatcher=new $d(t),t._selectionOverrides=Xh(t),Ww(t),$w(t),Uw(t),Ld(t),t.fire("PreInit"),f.browser_spellcheck||f.gecko_spellcheck||(h.body.spellcheck=!1,Kw.setAttrib(n,"spellcheck","false")),t.quirks=jw(t),t.fire("PostRender"),f.directionality&&(n.dir=f.directionality),f.protect&&t.on("BeforeSetContent",function(t){sn.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="",sn.each(t.contentStyles,function(e){r+=e+"\r\n"}),t.dom.addStyle(r)),(i=t,i.inline?Kw.styleSheetLoader:i.dom.styleSheetLoader).loadAll(t.contentCSS,function(e){Xw(t)},function(e){Xw(t)}),f.content_style&&(a=t,u=f.content_style,l=yr.fromDom(a.getDoc().head),c=yr.fromTag("style"),_r(c,"type","text/css"),Zi(c,yr.fromText(u)),Zi(l,c))},Gw=_i.DOM,Jw=function(e,t){var n,r,o,i,a=e.editorManager.translate("Rich Text Area. Press ALT-0 for help."),s=(n=e.id,r=a,t.height,o=mc(e),i=yr.fromTag("iframe"),Pr(i,o),Pr(i,{id:n+"_ifr",frameBorder:"0",allowTransparency:"true",title:r}),ca(i,"tox-edit-area__iframe"),i).dom();s.onload=function(){s.onload=null,e.fire("load")};var u,l,c,f,d=function(e,t){if(j.document.domain!==j.window.location.hostname&&Fe.ie&&Fe.ie<12){var n=Ad("mce");e[n]=function(){Yw(e)};var r='javascript:(function(){document.open();document.domain="'+j.document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return Gw.setAttrib(t,"src",r),!0}return!1}(e,s);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=s,e.iframeHTML=(f=gc(u=e)+"<html><head>",pc(u)!==u.documentBaseUrl&&(f+='<base href="'+u.documentBaseURI.getURI()+'" />'),f+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',l=vc(u),c=yc(u),bc(u)&&(f+='<meta http-equiv="Content-Security-Policy" content="'+bc(u)+'" />'),f+='</head><body id="'+l+'" class="mce-content-body '+c+'" data-id="'+u.id+'"><br></body></html>'),Gw.add(t.iframeContainer,s),d},Qw=function(e,t){var n=Jw(e,t);t.editorContainer&&(Gw.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=Gw.isHidden(t.editorContainer)),e.getElement().style.display="none",Gw.setAttrib(e.id,"aria-hidden","true"),n||Yw(e)},Zw=function(e){var t,n,r,o,i;e.contentCSS=e.contentCSS.concat((n=Uc(t=e),r=t.editorManager.baseURL+"/skins/content",o="content"+t.editorManager.suffix+".css",i=!0===t.inline,X(n,function(e){return/^[a-z0-9\-]+$/i.test(e)&&!i?r+"/"+e+"/"+o:t.documentBaseURI.toAbsolute(e)})))},ex=_i.DOM,tx=function(t,n,e){var r=hd.get(e),o=hd.urls[e]||t.documentBaseUrl.replace(/\/$/,"");if(e=sn.trim(e),r&&-1===sn.inArray(n,e)){if(sn.each(hd.dependencies(e),function(e){tx(t,n,e)}),t.plugins[e])return;try{var i=new r(t,o,t.$);(t.plugins[e]=i).init&&(i.init(t,o),n.push(e))}catch(fE){fd.pluginInitError(t,e,fE)}}},nx=function(e){return e.replace(/^\-/,"")},rx=function(e){return{editorContainer:e,iframeContainer:e}},ox=function(e){var t,n,r=e.getElement();return e.inline?rx(null):(t=r,n=ex.create("div"),ex.insertAfter(n,t),rx(n))},ix=function(e){var n,t,r,o,i,a;e.fire("ScriptsLoaded"),n=e,t=sn.trim(n.settings.icons),r=n.ui.registry.getAll().icons,o=Ii({},{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5c0-.6-.4-1-1-1a1 1 0 0 0-1 1v5c0 .6-.4 1-1 1a1 1 0 0 1-1-1V9H4a1 1 0 1 1 0-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 1 1 0-2h9.2zm4 0h.8a1 1 0 0 1 0 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 0 1 0-2h6.8zm4 0H19a1 1 0 0 1 0 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 0 1 0-2h4.4zm4 0H19a1 1 0 0 1 0 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 0 1 0-2h2zm4 0h8a1 1 0 0 1 0 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 0 0 1.4-1V6a1 1 0 0 0-1.4-.9l-12 6a1 1 0 0 0 0 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 0 1 5 18V6a1 1 0 0 1 1.4-.9l12 6a1 1 0 0 1 0 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 0 1-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 0 0-1 1z" fill-rule="nonzero"/></svg>',"border-width":'<svg width="24" height="24"><path d="M5 14.8h14a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2zm-.5 3.7h15c.3 0 .5.2.5.5s-.2.5-.5.5h-15a.5.5 0 1 1 0-1zm.5-8.3h14c.6 0 1 .4 1 1v1c0 .5-.4 1-1 1H5a1 1 0 0 1-1-1v-1c0-.6.4-1 1-1zm0-5.7h14c.6 0 1 .4 1 1v2c0 .6-.4 1-1 1H5a1 1 0 0 1-1-1v-2c0-.6.4-1 1-1z" fill-rule="evenodd"/></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 0 1-.7-.3A1 1 0 0 1 11 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-1a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3H5a1 1 0 0 1-.7-.3A1 1 0 0 1 4 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 0 1-.8.3 1 1 0 0 1-.6-.3l-.8-.7a1 1 0 0 1-.3-.8c0-.2.1-.5.3-.7a1 1 0 0 1 1.4 0zm-10-7l-.7-.8a1 1 0 0 1-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.8-.3zm10 0a1 1 0 0 1-.8.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 0 1 0 1.4l-.8.8a1 1 0 0 1-.6.3 1 1 0 0 1-.8-.3 1 1 0 0 1-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 0 1 3.7 2.4 4 4 0 0 1 0 3.2A4 4 0 0 1 12 16a4 4 0 0 1-3.7-2.4 4 4 0 0 1 0-3.2A4 4 0 0 1 12 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 1 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1-1.4 1.4L13 13.4V20a1 1 0 0 1-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 1 1 0 14.8 7.4 7.4 0 0 1 0-14.8zM12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 0 1-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 0 1-1 .7h-.2a.7.7 0 0 1-.7-1l4-12a1 1 0 1 1 2 0l4 12a.7.7 0 0 1-.8 1h-.2a1 1 0 0 1-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 0 1-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 0 0-.5-.1 1 1 0 0 0-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 0 0-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 0 0 1.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 0 0-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 0 0-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 0 1-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 0 1-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2h-8a1 1 0 0 1 0-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 0 1 0-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 0 1 0-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 0 1 0-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 0 1 0-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 0 1 0-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 0 1-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 0 1-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 0 1 1.5-1.5l3.8 3.9 3.8-3.9a1 1 0 0 1 1.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 0 1-.8 2 2.8 2.8 0 0 1 .8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 0 1-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 0 1-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 0 1-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 0 1 .8-2 2.8 2.8 0 0 1-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 0 1-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 0 1-.5-.5V17a3 3 0 0 0 1-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0 1 18 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 0 1-3.7 3 5.7 5.7 0 0 1-3.2 0A5.9 5.9 0 0 1 7.6 18a6.2 6.2 0 0 1-1.4-2.6 6.7 6.7 0 0 1 0-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 0 1 2.3-4A20 20 0 0 1 12 4a26.4 26.4 0 0 1 3.2 3.4 18.2 18.2 0 0 1 2.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 0 0-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 0 1-1.3 3 5.3 5.3 0 0 1-2.3 1.5 4.9 4.9 0 0 1-2 .1 4.3 4.3 0 0 0 2.4.8 4 4 0 0 0 2-.6 4 4 0 0 0 1.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 0 0 0 18 1.5 1.5 0 0 0 1.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3-4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',comment:'<svg width="24" height="24"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 0 0-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23z" fill-rule="nonzero"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4zm-6 8a6 6 0 0 0 6 6V6a6 6 0 0 0-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 0 0-2 2v11h2V5h10V3zm1 4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-2H7V9H5a1 1 0 1 1 0-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 0 1-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 0 1 8.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 0 1 0-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 0 1 0 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 0 0-.2-.5 1 1 0 0 0-.4-.2 1.6 1.6 0 0 0-.8 0 2.6 2.6 0 0 0-.8.3 2.5 2.5 0 0 0-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 0 0 .8-.3 2.8 2.8 0 0 0 1-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 0 0-.3-.8 2.4 2.4 0 0 0-.7-.7 2.5 2.5 0 0 0-.8-.3 1.5 1.5 0 0 0-.8 0 1 1 0 0 0-.4.2 1 1 0 0 0-.2.5 1.5 1.5 0 0 0 0 .7v.4l.3.4.3.4a2.8 2.8 0 0 0 .8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7a2 2 0 0 1 2 2v2z"/><path d="M17 14h1a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1h-1a1 1 0 0 1 0-2h1v-1a1 1 0 0 1 2 0v1z"/></g></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 0 0-2-2H7v2h11v9zM6 17h15a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1H6a2 2 0 0 1-2-2V7H3a1 1 0 1 1 0-2h1V4a1 1 0 1 1 2 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0 1 19 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 0 0 8 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 0 0-4 4.5h2.2zm-3.4 0a12 12 0 0 1 2.8-4 12 12 0 0 0-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 0 1 0 .8l-5.6 4A.5.5 0 0 1 9 16V8a.5.5 0 0 1 .8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13z" fill-rule="nonzero"/></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 0 0 2.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 0 0-2 2zm14-2v2h2a2 2 0 0 0-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 0 0 2-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 0 0-2 2v3h2V6h10v3h2V6a2 2 0 0 0-2-2zm2 14h-2v2a2 2 0 0 0 2-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 0 0-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 1 1 0-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 1 1-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 1 1 1.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 1 1 0-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 1 1 0 1.7H5a.9.9 0 0 1-.9-.9v-4.4a.9.9 0 1 1 1.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 0 1-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 0 1 0 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 0 0-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 0 1 .6.5l.1.3a8.5 8.5 0 0 1 .3.6l1.9 4.6 2-5.2a1 1 0 0 1 1-.6.5.5 0 0 1 .5.6L13 14v2.8a.7.7 0 0 1-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 0 0-6 9 6.3 6.3 0 0 0 1.4 2l1 1a6.3 6.3 0 0 0 3.6 1 6.5 6.5 0 0 0 6-9 6.3 6.3 0 0 0-1.4-2l-1-1a6.3 6.3 0 0 0-3.6-1zM12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4z"/><path d="M9.6 9.7a.7.7 0 0 1-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 0 0-.8.8.8.8 0 0 1-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 0 1 2.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 1 1 0-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 0 0 1.8-2.9 6.3 6.3 0 0 0-.1-4.1 5.8 5.8 0 0 0-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 0 0-3.9 1.8 6.3 6.3 0 0 0-1.3 6 6.2 6.2 0 0 0 1.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 0 1 4 11c0-1 .2-1.9.6-2.7A7 7 0 0 1 6.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 0 1 5.7 2 7 7 0 0 1 1.7 2.3 6 6 0 0 1 .2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 0 1-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm0 2a9 9 0 1 1 0-18 9 9 0 0 1 0 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 0 0-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 0 1-3.1 1.9 6.1 6.1 0 0 1-5.5-1.6A5.8 5.8 0 0 1 6 14v-.3l.1-1.2A13.9 13.9 0 0 1 7.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 0 0 .2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 0 0-3-4.2L12 6a26.1 26.1 0 0 0-2.2 2.5l-1-1a20.9 20.9 0 0 1 2.9-3.3L12 4l1 .8a22.2 22.2 0 0 1 4 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2.1 2a2 2 0 1 0 2.7 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2zm11.6-.6a1 1 0 0 1-1.4-1.4l2-2a2 2 0 1 0-2.6-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM11 26a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM11 36a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 0 0-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 0 0-.3-.7A1 1 0 0 0 13 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 7.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 1 1 0-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 1 1 0-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 0 1-.5-.5V5h-.5a.5.5 0 0 1 0-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2H4.5a.5.5 0 0 1-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 0 1 0-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 1 1 0-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 1 1 0-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 0 1 0-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 1 1-4.3 16.9l1.5-1.5A7 7 0 1 0 13 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 1 1 0-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm1.6-3.8a1 1 0 0 1-1.2 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 0 1 1.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 0 1 0-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 0 1-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 6.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L10 5z" fill-rule="evenodd"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 0 0-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 0 0-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 0 1 0-3L14 3l1 1-7.3 7.3a1 1 0 0 0 0 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 0 1-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><g fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round" stroke="#000" stroke-width="2"><path d="M12 5v14M5 12h14"/></g></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 0 1-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 0 1-1.4 0l-1.5-1.2a6.2 6.2 0 0 1-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 0 1-1-.9l-.2-1.9a5.8 5.8 0 0 1-1.5-.6l-1.5 1.2a1 1 0 0 1-1.4 0l-.7-.7a1 1 0 0 1 0-1.4l1.2-1.5a6.2 6.2 0 0 1-.6-1.5l-1.9-.2a1 1 0 0 1-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 0 1 .6-1.5L5.2 7.3a1 1 0 0 1 0-1.4l.7-.7a1 1 0 0 1 1.4 0l1.5 1.2a6.2 6.2 0 0 1 1.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 0 1 1.5.6l1.5-1.2a1 1 0 0 1 1.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 0 1 .6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 0 0 2.1-2.8 15.7 15.7 0 0 0-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 0 0-6.7 3.2A16.2 16.2 0 0 0 3.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 0 1 2.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 0 1-2.8-3.7 1 1 0 0 1 0-1zm12-3.3a2 2 0 1 0 2.7 2.6 4 4 0 1 1-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 0 0-3 3v6h2v3h14v-3h2v-6a3 3 0 0 0-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 1 1-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 1 1 1.4-1.4l5 5a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 0 1 1-1l5 .4a1 1 0 1 1-.2 2l-2.2-.2a7.8 7.8 0 0 0 8.4.2 7.5 7.5 0 0 0 3.5-6.4 1 1 0 1 1 2 0 9.5 9.5 0 0 1-4.5 8 9.9 9.9 0 0 1-10.2 0l.4 1.4a1 1 0 1 1-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 0 0-9.5-1 7.5 7.5 0 0 0-3.6 7 1 1 0 0 1-2 0 9.5 9.5 0 0 1 4.5-8.6 10 10 0 0 1 10.9.3l-.3-1a1 1 0 0 1 2-.5l1.1 4.8a1 1 0 0 1-1 1.2l-5-.4a1 1 0 0 1-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 0 1 0 .2l-2.6 10a1 1 0 0 1-1 .8h-.2a.8.8 0 0 1-.8-1l2.6-10H8a1 1 0 1 1 0-2h9a1 1 0 0 1 0 2h-3.8zM5 18h7a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2zm13 1.5L16.5 18 15 19.5a.7.7 0 0 1-1-1l1.5-1.5-1.5-1.5a.7.7 0 0 1 1-1l1.5 1.5 1.5-1.5a.7.7 0 0 1 1 1L17.5 17l1.5 1.5a.7.7 0 0 1-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 0 1 0 2h-1v9a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V9H5a1 1 0 1 1 0-2h3V6a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 0 0-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4zm4 0a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 1 1 9 2l-7 7A.5.5 0 1 1 1 8l7-7zM8.1 5.1A.5.5 0 1 1 9 6l-3 3A.5.5 0 1 1 5 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-6a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3A1 1 0 0 1 4 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 0 1 2 0v6c0 .6-.4 1-1 1h-6a1 1 0 0 1 0-2h4.3L16 7A7.2 7.2 0 0 0 7.7 6a7 7 0 0 0 3 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 0 1 1.4 1.5A9.2 9.2 0 0 1 2.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 4.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L8 5zm12 11.2a1 1 0 1 1-1 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 1 1 1 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 1 0-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 1 0-1.4-1.4L13 11.6V4a1 1 0 0 0-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 0 0-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 0 0-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 0 0 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 0 0-1 1L9.6 17 18 8.6a.7.7 0 0 0 0-1 .7.7 0 0 0-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V8H5a1 1 0 1 1 0-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V13H5a1 1 0 0 1 0-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V18H5a1 1 0 0 1 0-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 0 1 0-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 0 0-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 0 1 7 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 0 0-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 0 1-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-cell-properties":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm10 10h-4v3h4v-3zm0-8h-4v3h4V7zM9 7H5v3h4V7zm-4 4v3h4v-3H5zm10 0v3h4v-3h-4zm0-1h4V7h-4v3zM5 15v3h4v-3H5zm10 3h4v-3h-4v3z" fill-rule="evenodd"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><path d="M12.5 5.5v6h6v-6h-6zm-1 0h-6v6h6v-6zm1 13h6v-6h-6v6zm-1 0v-6h-6v6h6zm-7-14h15v15h-15v-15z" fill-rule="nonzero"/></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5.5 5.5v13h13v-13h-13zm-1-1h15v15h-15v-15z" opacity=".2"/><path d="M11.5 11.5v-7h1v7h7v1h-7v7h-1v-7h-7v-1h7z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path d="M9 11.2l1 1v.2l-1 1v-2.2zm5 1l1-1v2.2l-1-1v-.2zM20 5v14H4V5h16zm-1 2h-4v.8l-.2-.2-.8.8V7h-4v1.4l-.8-.8-.2.2V7H5v11h4v-1.8l.5.5.5-.4V18h4v-1.8l.8.8.2-.3V18h4V7zm-3.9 3.4l-1.8 1.9 1.8 1.9c.4.3.4.9 0 1.2-.3.3-.8.3-1.2 0L12 13.5l-1.8 1.9a.8.8 0 0 1-1.2 0 .9.9 0 0 1 0-1.2l1.8-1.9-1.9-2a.9.9 0 0 1 1.2-1.2l2 2 1.8-1.8c.3-.4.9-.4 1.2 0a.8.8 0 0 1 0 1.1z" fill-rule="evenodd"/></svg>',"table-delete-row":'<svg width="24" height="24"><path d="M16.7 8.8l1.1 1.2-2.4 2.5L18 15l-1.2 1.2-2.5-2.5-2.4 2.5-1.3-1.2 2.5-2.5-2.5-2.5 1.2-1.3 2.6 2.6 2.4-2.5zM4 5h16v14H4V5zm15 5V7H5v3h4.8l1 1H5v3h5.8l-1 1H5v3h14v-3h-.4l-1-1H19v-3h-1.3l1-1h.3z" fill-rule="evenodd"/></svg>',"table-delete-table":'<svg width="24" height="26"><path d="M4 6h16v14H4V6zm1 2v11h14V8H5zm11.7 8.7l-1.5 1.5L12 15l-3.3 3.2-1.4-1.5 3.2-3.2-3.3-3.2 1.5-1.5L12 12l3.2-3.2 1.5 1.5-3.2 3.2 3.2 3.2z" fill-rule="evenodd"/></svg>',"table-insert-column-after":'<svg width="24" height="24"><path d="M14.3 9c.4 0 .7.3.7.6v2.2h2.1c.4 0 .7.3.7.7 0 .4-.3.7-.7.7H15v2.2c0 .3-.3.6-.7.6a.7.7 0 0 1-.6-.6v-2.2h-2.2a.7.7 0 0 1 0-1.4h2.2V9.6c0-.3.3-.6.6-.6zM4 5h16v14H4V5zm5 13v-3H5v3h4zm0-4v-3H5v3h4zm0-4V7H5v3h4zm10 8V7h-9v11h9z" fill-rule="evenodd"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path d="M9.7 16a.7.7 0 0 1-.7-.6v-2.2H6.9a.7.7 0 0 1 0-1.4H9V9.6c0-.3.3-.6.7-.6.3 0 .6.3.6.6v2.2h2.2c.4 0 .8.3.8.7 0 .4-.4.7-.8.7h-2.2v2.2c0 .3-.3.6-.6.6zM4 5h16v14H4V5zm10 13V7H5v11h9zm5 0v-3h-4v3h4zm0-4v-3h-4v3h4zm0-4V7h-4v3h4z" fill-rule="evenodd"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path d="M14.8 10.5c0 .3-.2.5-.5.5h-1.8v1.8c0 .3-.2.5-.5.5a.5.5 0 0 1-.5-.6V11H9.7a.5.5 0 0 1 0-1h1.8V8.3c0-.3.2-.6.5-.6s.5.3.5.6V10h1.8c.3 0 .5.2.5.5zM4 5h16v14H4V5zm5 13v-3H5v3h4zm5 0v-3h-4v3h4zm5 0v-3h-4v3h4zm0-4V7H5v7h14z" fill-rule="evenodd"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path d="M9.2 14.5c0-.3.2-.5.5-.5h1.8v-1.8c0-.3.2-.5.5-.5s.5.2.5.6V14h1.8c.3 0 .5.2.5.5s-.2.5-.5.5h-1.8v1.7c0 .3-.2.6-.5.6a.5.5 0 0 1-.5-.6V15H9.7a.5.5 0 0 1-.5-.5zM4 5h16v14H4V5zm6 2v3h4V7h-4zM5 7v3h4V7H5zm14 11v-7H5v7h14zm0-8V7h-4v3h4z" fill-rule="evenodd"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M4 5h16v13H4V5zm10 12v-3h-4v3h4zm0-4v-3h-4v3h4zm0-4V6h-4v3h4zm5 8v-3h-4v3h4zm0-4v-3h-4v3h4zm0-4V6h-4v3h4z" fill-rule="evenodd"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm6 13h9v-7h-9v7zm4-11h-4v3h4V7zM9 7H5v3h4V7zm-4 4v3h4v-3H5zm10-1h4V7h-4v3zM5 15v3h4v-3H5z" fill-rule="evenodd"/></svg>',"table-row-properties":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm10 10h-4v3h4v-3zm0-8h-4v3h4V7zM9 7H5v3h4V7zm6 3h4V7h-4v3zM5 15v3h4v-3H5zm10 3h4v-3h-4v3z" fill-rule="evenodd"/></svg>',"table-split-cells":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm6 2v3h4V7h-4zM9 18v-3H5v3h4zm0-4v-3H5v3h4zm0-4V7H5v3h4zm10 8v-7h-9v7h9zm0-8V7h-4v3h4zm-3.5 4.5l1.5 1.6c.3.2.3.7 0 1-.2.2-.7.2-1 0l-1.5-1.6-1.6 1.5c-.2.3-.7.3-1 0a.7.7 0 0 1 0-1l1.6-1.5-1.5-1.6a.7.7 0 0 1 1-1l1.5 1.6 1.6-1.5c.2-.3.7-.3 1 0 .2.2.2.7 0 1l-1.6 1.5z" fill-rule="evenodd"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M4 5h16v13H4V5zm5 12v-3H5v3h4zm0-4v-3H5v3h4zm5 4v-3h-4v3h4zm0-4v-3h-4v3h4zm5 4v-3h-4v3h4zm0-4v-3h-4v3h4z" fill-rule="evenodd"/></svg>',table:'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm6 9h4v-3h-4v3zm4 1h-4v3h4v-3zm0-8h-4v3h4V7zM9 7H5v3h4V7zm-4 4v3h4v-3H5zm10 0v3h4v-3h-4zm0-1h4V7h-4v3zM5 15v3h4v-3H5zm10 3h4v-3h-4v3z" fill-rule="evenodd"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 1 1 6 0v4h4a2 2 0 0 1 2 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 1 0-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 1 1 1 0V6H15v1.6a8 8 0 1 1-6 0zm-2.6 5.3a.5.5 0 0 0 .3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 0 1 3.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 0 0-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 0 1-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 0 1-.5.6h-.8a.5.5 0 0 1-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 0 0 .5.6h1.6a.5.5 0 0 0 .5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 0 1 0-1l3.1-3A12.4 12.4 0 0 1 6.7 9H8a10.1 10.1 0 0 0 1.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 1 1 0-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 0 1-1 2.4 13.5 13.5 0 0 1-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 0 1-.4.7 1 1 0 0 1-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 0 1-1 .7.5.5 0 0 1-.4-.7l2.7-7.4a1 1 0 1 1 2 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 0 1-.4 1.8l-1 1.4a5.3 5.3 0 0 1-5.5 1 5 5 0 0 1-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 0 1-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 0 0 2.2.8 3.4 3.4 0 0 0 2.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 0 1-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 1 1-1.4 1.4l-5-5a1 1 0 0 1 0-1.4l5-5a1 1 0 0 1 1.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2 2a2 2 0 1 0 2.6 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2zm11.6-.6a1 1 0 0 1-1.4-1.4l2.1-2a2 2 0 1 0-2.7-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2zM7.6 6.3a.8.8 0 0 1-1 1.1L3.3 4.2a.7.7 0 1 1 1-1l3.2 3.1zM5.1 8.6a.8.8 0 0 1 0 1.5H3a.8.8 0 0 1 0-1.5H5zm5-3.5a.8.8 0 0 1-1.5 0V3a.8.8 0 0 1 1.5 0V5zm6 11.8a.8.8 0 0 1 1-1l3.2 3.2a.8.8 0 0 1-1 1L16 17zm-2.2 2a.8.8 0 0 1 1.5 0V21a.8.8 0 0 1-1.5 0V19zm5-3.5a.7.7 0 1 1 0-1.5H21a.8.8 0 0 1 0 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 0 0-.3-.7A1 1 0 0 0 16 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 0 0-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 0 1 2 0v3c0 .6-.4 1-1 1H5a1 1 0 0 1-1-1v-3a1 1 0 0 1 2 0v2h12zM11 6.4L8.7 8.7a1 1 0 0 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 1 1-1.4 1.4L13 6.4V16a1 1 0 0 1-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 1 1 0-24 12 12 0 0 1 0 24zm-8.7-5.3a11 11 0 0 0 17.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-1-9a1 1 0 0 1 2 0v6a1 1 0 0 1-2 0V8zm-2 4a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-3-5a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8z" fill-rule="nonzero"/></svg>'},dd.get(t).icons),Tr(o,function(e,t){Br(r,t)||n.ui.registry.addIcon(t,e)}),function(e){var t=e.settings.theme;if(K(t)){e.settings.theme=nx(t);var n=md.get(t);e.theme=new n(e,md.urls[t]),e.theme.init&&e.theme.init(e,md.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}}(e),i=e,a=[],sn.each(i.settings.plugins.split(/[ ,]/),function(e){tx(i,a,nx(e))});var s,u,l,c,f,d=(f=(s=e).getElement(),s.orgDisplay=f.style.display,K(s.settings.theme)?s.theme.renderUI():O(s.settings.theme)?(l=(u=s).getElement(),(c=(0,u.settings.theme)(u,l)).editorContainer.nodeType&&(c.editorContainer.id=c.editorContainer.id||u.id+"_parent"),c.iframeContainer&&c.iframeContainer.nodeType&&(c.iframeContainer.id=c.iframeContainer.id||u.id+"_iframecontainer"),c.height=c.iframeHeight?c.iframeHeight:l.offsetHeight,c):ox(s));return e.editorContainer=d.editorContainer?d.editorContainer:null,Zw(e),e.inline?Yw(e):Qw(e,d)},ax=_i.DOM,sx=function(e){return"-"===e.charAt(0)},ux=function(a,s){var u=Vi.ScriptLoader;!function(e,t,n,r){var o=t.settings,i=o.theme;if(K(i)){if(!sx(i)&&!md.urls.hasOwnProperty(i)){var a=o.theme_url;a?md.load(i,t.documentBaseURI.toAbsolute(a)):md.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue(function(){md.waitFor(i,r)})}else r()}(u,a,s,function(){var e,t,n,r,o,i;e=u,n=Lc(t=a),r=Vc(t),!1===Wi.hasCode(n)&&"en"!==n&&(""!==r?e.add(r):e.add(t.editorManager.baseURL+"/langs/"+n+".js")),function(e){var t=sn.trim(e.getParam("icons","","string"));if(0<t.length&&!dd.has(t)){var n=e.editorManager.baseURL+"/icons/"+t+"/icons.js";Vi.ScriptLoader.add(n)}}(a),o=a.settings,i=s,sn.isArray(o.plugins)&&(o.plugins=o.plugins.join(" ")),sn.each(o.external_plugins,function(e,t){hd.load(t,e),o.plugins+=" "+t}),sn.each(o.plugins.split(/[ ,]/),function(e){if((e=sn.trim(e))&&!hd.urls[e])if(sx(e)){e=e.substr(1,e.length);var t=hd.dependencies(e);sn.each(t,function(e){var t={prefix:"plugins/",resource:e,suffix:"/plugin"+i+".js"};e=hd.createUrl(t,e),hd.load(e.resource,e)})}else hd.load(e,{prefix:"plugins/",resource:e,suffix:"/plugin"+i+".js"})}),u.loadQueue(function(){a.removed||ix(a)},a,function(e){fd.pluginLoadError(a,e[0]),a.removed||ix(a)})})},lx=function(t){var e=t.settings,n=t.id;Wi.setCode(Lc(t));var r=function(){ax.unbind(j.window,"ready",r),t.render()};if(tt.Event.domLoaded){if(t.getElement()&&Fe.contentEditable){e.inline?t.inline=!0:(t.orgVisibility=t.getElement().style.visibility,t.getElement().style.visibility="hidden");var o=t.getElement().form||ax.getParent(n,"form");o&&(t.formElement=o,e.hidden_input&&!/TEXTAREA|INPUT/i.test(t.getElement().nodeName)&&(ax.insertAfter(ax.create("input",{type:"hidden",name:n}),n),t.hasHiddenInput=!0),t.formEventDelegate=function(e){t.fire(e.type,e)},ax.bind(o,"submit reset",t.formEventDelegate),t.on("reset",function(){t.resetContent()}),!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=id(t),t.notificationManager=rd(t),"xml"===e.encoding&&t.on("GetContent",function(e){e.save&&(e.content=ax.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),ux(t,t.suffix)}}else ax.bind(j.window,"ready",r)},cx=function(o){var r="design",n=["design","readonly"],i={design:{activate:u,deactivate:u,editorReadOnly:!1},readonly:{activate:u,deactivate:u,editorReadOnly:!0}},a=function(e,t){try{o.getDoc().execCommand(e,!1,t)}catch(n){}},s=function(e){var t,n,r;t=yr.fromDom(o.getBody()),r=e,da(t,n="mce-content-readonly")&&!1===r?fa(t,n):r&&ca(t,n),e?(o.selection.controlSelection.hideResizeRect(),o.readonly=!0,o.getBody().contentEditable="false"):(o.readonly=!1,o.getBody().contentEditable="true",a("StyleWithCSS",!1),a("enableInlineTableEditing",!1),a("enableObjectResizing",!1),o.focus(),o.nodeChanged())},t=function(e){var t=i[r],n=i[e];try{n.activate()}catch(fE){return void j.console.error("problem while activating editor mode "+e+":",fE)}t.deactivate(),t.editorReadOnly!==n.editorReadOnly&&s(n.editorReadOnly),Rf(o,r=e)};return{isReadOnly:function(){return!0===o.readonly},set:function(e){if(e!==r){if(!Br(i,e))throw new Error("Editor mode '"+e+"' is invalid");o.initialized?t(e):o.on("init",function(){return t(e)})}},get:function(){return r},register:function(e,t){if(L(n,e))throw new Error("Cannot override default mode "+e);i[e]=Ii({},t,{deactivate:function(){try{t.deactivate()}catch(fE){j.console.error("problem while deactivating editor mode "+e+":"),j.console.error(fE)}}})}}},fx=function(e){return sn.grep(e.childNodes,function(e){return"LI"===e.nodeName})},dx=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&("\xa0"===(t=e.firstChild).data||_o.isBr(t));var t},hx=function(e){return 0<e.length&&(!(t=e[e.length-1]).firstChild||dx(t))?e.slice(0,-1):e;var t},mx=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},gx=function(e,t){var n=qs.after(e),r=cl(t).prev(n);return r?r.toRange():null},px=function(t,e,n){var r,o,i,a,s=t.parentNode;return sn.each(e,function(e){s.insertBefore(e,t)}),r=t,o=n,i=qs.before(r),(a=cl(o).next(i))?a.toRange():null},vx=function(e,t){var n,r,o,i,a,s,u=t.firstChild,l=t.lastChild;return u&&"meta"===u.name&&(u=u.next),l&&"mce_marker"===l.attr("id")&&(l=l.prev),r=l,s=(n=e).getNonEmptyElements(),r&&(r.isEmpty(s)||(o=r,n.getBlockElements()[o.name]&&(a=o).firstChild&&a.firstChild===a.lastChild&&("br"===(i=o.firstChild).name||"\xa0"===i.value)))&&(l=l.prev),!(!u||u!==l||"ul"!==u.name&&"ol"!==u.name)},yx=function(e,o,i,t){var n,r,a,s,u,l,c,f,d,h,m,g,p,v,y,b,C,w,x,N=(n=o,r=t,l=e.serialize(r),c=n.createFragment(l),s=(a=c).firstChild,u=a.lastChild,s&&"META"===s.nodeName&&s.parentNode.removeChild(s),u&&"mce_marker"===u.id&&u.parentNode.removeChild(u),a),E=mx(o,i.startContainer),S=hx(fx(N.firstChild)),z=o.getRoot(),k=function(e){var t=qs.fromRangeStart(i),n=cl(o.getRoot()),r=1===e?n.prev(t):n.next(t);return!r||mx(o,r.getNode())!==E};return k(1)?px(E,S,z):k(2)?(f=E,d=S,h=z,o.insertAfter(d.reverse(),f),gx(d[0],h)):(g=S,p=z,v=m=E,b=(y=i).cloneRange(),C=y.cloneRange(),b.setStartBefore(v),C.setEndAfter(v),w=[b.cloneContents(),C.cloneContents()],(x=m.parentNode).insertBefore(w[0],m),sn.each(g,function(e){x.insertBefore(e,m)}),x.insertBefore(w[1],m),x.removeChild(m),gx(g[g.length-1],p))},bx=function(e,t){return!!mx(e,t)},Cx=_o.matchNodeNames("td th"),wx=function(e,t){var n,r,o=e.selection.getRng(),i=o.startContainer,a=o.startOffset;o.collapsed&&(n=i,r=a,_o.isText(n)&&"\xa0"===n.nodeValue[r-1])&&_o.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)},xx=function(e,t,n){var r,o,i,a,s,u,l,c,f,d,h,m=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}(m.getRng(),t)),r=e.parser,h=n.merge,o=Wc({validate:e.settings.validate},e.schema),d='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;&#x200B;</span>',u={content:t,format:"html",selection:!0,paste:n.paste},(u=e.fire("BeforeSetContent",u)).isDefaultPrevented())e.fire("SetContent",{content:u.content,format:"html",selection:!0,paste:n.paste});else{-1===(t=u.content).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,d);var p,v,y,b,C,w,x=(c=m.getRng()).startContainer||(c.parentElement?c.parentElement():null),N=e.getBody();x===N&&m.isCollapsed()&&g.isBlock(N.firstChild)&&(p=e,(v=N.firstChild)&&!p.schema.getShortEndedElements()[v.nodeName])&&g.isEmpty(N.firstChild)&&((c=g.createRng()).setStart(N.firstChild,0),c.setEnd(N.firstChild,0),m.setRng(c)),m.isCollapsed()||(e.selection.setRng(_g(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&&("\xa0"===C.data[w]?(C.deleteData(w,1),/[\u00a0| ]$/.test(b)||(b+=" ")):"\xa0"===C.data[w-1]&&(C.deleteData(w-1,1),/[\u00a0| ]$/.test(b)||(b=" "+b))),t=b);var E,S,z,k={context:(i=m.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0};if(s=r.parse(t,k),!0===n.paste&&vx(e.schema,s)&&bx(g,i))return c=yx(o,g,e.selection.getRng(),s),e.selection.setRng(c),void e.fire("SetContent",u);if(function(e){for(var t=e;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")}(s),"mce_marker"===(f=s.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),k.invalid){for(wx(e,d),i=m.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(s)}))),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):wx(e,t)}}(e,t=o.serialize(s),i);!function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=new sg(r);sn.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,h),function(n,e){var t,r,o,i,a,s=n.dom,u=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 s.remove(e),u.select(t);var l=s.createRng();(i=e.previousSibling)&&3===i.nodeType?(l.setStart(i,i.nodeValue.length),Fe.ie||(a=e.nextSibling)&&3===a.nodeType&&(i.appendData(a.data),a.parentNode.removeChild(a))):(l.setStartBefore(e),l.setEndBefore(e)),r=s.getParent(e,s.isBlock),s.remove(e),r&&s.isEmpty(r)&&(n.$(r).empty(),l.setStart(r,0),l.setEnd(r,0),Cx(r)||r.getAttribute("data-mce-fragment")||!(o=function(e){var t=qs.fromRangeStart(e);if(t=cl(n.getBody()).next(t))return t.toRange()}(l))?s.add(r,s.create("br",{"data-mce-bogus":"1"})):(l=o,s.remove(r))),u.setRng(l)}}(e,g.get("mce_marker")),E=e.getBody(),sn.each(E.getElementsByTagName("*"),function(e){e.removeAttribute("data-mce-fragment")}),S=e.dom,z=e.selection.getStart(),T.from(S.getParent(z,"td,th")).map(yr.fromDom).each(mm),e.fire("SetContent",u),e.addVisual()}},Nx=function(e,t){var n,r,o="string"!=typeof(n=t)?(r=sn.extend({paste:n.paste,data:{paste:n.paste}},n),{content:n.content,details:r}):{content:n,details:{}};xx(e,o.content,o.details)},Ex=function(e,t){e.getDoc().execCommand(t,!1,null)},Sx=function(e){Hb(e,!1)||Ib(e,!1)||qb(e,!1)||Cb(e,!1)||bC(e)||Eb(e,!1)||Xb(e,!1)||(Ex(e,"Delete"),ib(e))},zx=function(e){Hb(e,!0)||Ib(e,!0)||qb(e,!0)||Cb(e,!0)||bC(e)||Eb(e,!0)||Xb(e,!0)||Ex(e,"ForwardDelete")},kx=function(u){return function(s,e){return T.from(e).map(yr.fromDom).filter(Er).bind(function(e){return(r=u,o=s,i=e.dom(),a=function(e){return Fr(e,r)},ya(yr.fromDom(i),function(e){return a(e).isSome()},function(e){return Qr(yr.fromDom(o),e)}).bind(a)).or((t=u,n=e.dom(),T.from(_i.DOM.getStyle(n,t,!0))));var t,n,r,o,i,a}).getOr("")}},Tx={getFontSize:kx("font-size"),getFontFamily:q(function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},kx("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}},Ax=function(e){return wl.firstPositionIn(e.getBody()).map(function(e){var t=e.container();return _o.isText(t)?t.parentNode:t})},Rx=function(o){return T.from(o.selection.getRng()).bind(function(e){var t,n,r=o.getBody();return n=r,(t=e).startContainer===n&&0===t.startOffset?T.none():T.from(o.selection.getStart(!0))})},Mx=function(e,t){if(/^[0-9\.]+$/.test(t)){var n=parseInt(t,10);if(1<=n&&n<=7){var r=kc(e),o=Tc(e);return o?o[n-1]||t:r[n-1]||t}return t}return t},Dx=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},Bx=function(e,t){return(e||"table"===xr(t)?"margin":"padding")+("rtl"===Vr(t,"direction")?"-right":"-left")},Ox=function(e){var r,t=Px(e);return!0!==e.readonly&&(1<t.length||(r=e,oe(t,function(e){var t=Bx(Ic(r),e),n=Fr(e,t).map(Dx).getOr(0);return"false"!==r.dom.getContentEditable(e.dom())&&0<n})))},_x=function(e){return jo(e)||qo(e)},Px=function(e){return U(X(e.selection.getSelectedBlocks(),yr.fromDom),function(e){return!_x(e)&&!to(e).map(_x).getOr(!1)&&ya(e,function(e){return _o.isContentEditableTrue(e.dom())||_o.isContentEditableFalse(e.dom())}).exists(function(e){return _o.isContentEditableTrue(e.dom())})})},Hx=function(e,t){var n=e.dom,r=e.selection,o=e.formatter,i=Fc(e),a=/[a-z%]+$/i.exec(i)[0],s=parseInt(i,10),u=Ic(e),l=wc(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==l||n.getParent(r.getNode(),n.isBlock)||o.apply("div"),I(Px(e),function(e){!function(e,t,n,r,o,i){var a=Bx(n,yr.fromDom(i));if("outdent"===t){var s=Math.max(0,Dx(i.style[a])-r);e.setStyle(i,a,s?s+o:"")}else s=Dx(i.style[a])+r+o,e.setStyle(i,a,s)}(n,t,u,s,a,e.dom())})},Lx=sn.each,Vx=sn.map,Ix=sn.inArray,Fx=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(t,n,r,e){var o,i,a=!1,s=this;if(!s.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(t)||e&&e.skip_focus?hf(s.editor):s.editor.focus(),(e=s.editor.fire("BeforeExecCommand",{command:t,ui:n,value:r})).isDefaultPrevented())return!1;if(i=t.toLowerCase(),o=s.commands.exec[i])return o(i,n,r),s.editor.fire("ExecCommand",{command:t,ui:n,value:r}),!0;if(Lx(this.editor.plugins,function(e){if(e.execCommand&&e.execCommand(t,n,r))return s.editor.fire("ExecCommand",{command:t,ui:n,value:r}),!(a=!0)}),a)return a;if(s.editor.theme&&s.editor.theme.execCommand&&s.editor.theme.execCommand(t,n,r))return s.editor.fire("ExecCommand",{command:t,ui:n,value:r}),!0;try{a=s.editor.getDoc().execCommand(t,n,r)}catch(u){}return!!a&&(s.editor.fire("ExecCommand",{command:t,ui:n,value:r}),!0)}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(n){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(n){}}},e.prototype.addCommands=function(e,n){var r=this;n=n||"exec",Lx(e,function(t,e){Lx(e.toLowerCase().split(","),function(e){r.commands[n][e]=t})})},e.prototype.addCommand=function(e,o,i){var a=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,t,n,r){return o.call(i||a.editor,t,n,r)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return t===undefined&&(t=!1),n===undefined&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t?{value:t}:undefined),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(i){var a=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){i.undoManager.add()},"Cut,Copy,Paste":function(e){var t,n=i.getDoc();try{a.execNativeCommand(e)}catch(o){t=!0}if("paste"!==e||n.queryCommandEnabled(e)||(t=!0),t||!n.queryCommandSupported(e)){var r=i.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");Fe.mac&&(r=r.replace(/Ctrl\+/g,"\u2318+")),i.notificationManager.open({text:r,type:"error"})}},unlink:function(){if(i.selection.isCollapsed()){var e=i.dom.getParent(i.selection.getStart(),"a");e&&i.dom.remove(e,!0)}else i.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(e){var t=e.substring(7);"full"===t&&(t="justify"),Lx("left,center,right,justify".split(","),function(e){t!==e&&i.formatter.remove("align"+e)}),"none"!==t&&a.toggleFormat("align"+t)},"InsertUnorderedList,InsertOrderedList":function(e){var t,n;a.execNativeCommand(e),(t=i.dom.getParent(i.selection.getNode(),"ol,ul"))&&(n=t.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(n.nodeName)&&(a.storeSelection(),i.dom.split(n,t),a.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){a.toggleFormat(e)},"ForeColor,HiliteColor":function(e,t,n){a.toggleFormat(e,n)},FontName:function(e,t,n){var r,o;o=n,(r=i).formatter.toggle("fontname",{value:Mx(r,o)}),r.nodeChanged()},FontSize:function(e,t,n){var r,o;o=n,(r=i).formatter.toggle("fontsize",{value:Mx(r,o)}),r.nodeChanged()},RemoveFormat:function(e){i.formatter.remove(e)},mceBlockQuote:function(){a.toggleFormat("blockquote")},FormatBlock:function(e,t,n){return a.toggleFormat(n||"p")},mceCleanup:function(){var e=i.selection.getBookmark();i.setContent(i.getContent()),i.selection.moveToBookmark(e)},mceRemoveNode:function(e,t,n){var r=n||i.selection.getNode();r!==i.getBody()&&(a.storeSelection(),i.dom.remove(r,!0),a.restoreSelection())},mceSelectNodeDepth:function(e,t,n){var r=0;i.dom.getParent(i.selection.getNode(),function(e){if(1===e.nodeType&&r++===n)return i.selection.select(e),!1},i.getBody())},mceSelectNode:function(e,t,n){i.selection.select(n)},mceInsertContent:function(e,t,n){Nx(i,n)},mceInsertRawHTML:function(e,t,n){i.selection.setContent("tiny_mce_marker");var r=i.getContent();i.setContent(r.replace(/tiny_mce_marker/g,function(){return n}))},mceInsertNewLine:function(e,t,n){fw(i,n)},mceToggleFormat:function(e,t,n){a.toggleFormat(n)},mceSetContent:function(e,t,n){i.setContent(n)},"Indent,Outdent":function(e){Hx(i,e)},mceRepaint:function(){},InsertHorizontalRule:function(){i.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){i.hasVisual=!i.hasVisual,i.addVisual()},mceReplaceContent:function(e,t,n){i.execCommand("mceInsertContent",!1,n.replace(/\{\$selection\}/g,i.selection.getContent({format:"text"})))},mceInsertLink:function(e,t,n){var r;"string"==typeof n&&(n={href:n}),r=i.dom.getParent(i.selection.getNode(),"a"),n.href=n.href.replace(" ","%20"),r&&n.href||i.formatter.remove("link"),n.href&&i.formatter.apply("link",n,r)},selectAll:function(){var e=i.dom.getParent(i.selection.getStart(),_o.isContentEditableTrue);if(e){var t=i.dom.createRng();t.selectNodeContents(e),i.selection.setRng(t)}},"delete":function(){Sx(i)},forwardDelete:function(){zx(i)},mceNewDocument:function(){i.setContent("")},InsertLineBreak:function(e,t,n){return YC(i,n),!0}});var e=function(n){return function(){var e=i.selection.isCollapsed()?[i.dom.getParent(i.selection.getNode(),i.dom.isBlock)]:i.selection.getSelectedBlocks(),t=Vx(e,function(e){return!!i.formatter.matchNode(e,n)});return-1!==Ix(t,!0)}};a.addCommands({JustifyLeft:e("alignleft"),JustifyCenter:e("aligncenter"),JustifyRight:e("alignright"),JustifyFull:e("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return a.isFormatMatch(e)},mceBlockQuote:function(){return a.isFormatMatch("blockquote")},Outdent:function(){return Ox(i)},"InsertUnorderedList,InsertOrderedList":function(e){var t=i.dom.getParent(i.selection.getNode(),"ul,ol");return t&&("insertunorderedlist"===e&&"UL"===t.tagName||"insertorderedlist"===e&&"OL"===t.tagName)}},"state"),a.addCommands({Undo:function(){i.undoManager.undo()},Redo:function(){i.undoManager.redo()}}),a.addQueryValueHandler("FontName",function(){return Rx(t=i).fold(function(){return Ax(t).map(function(e){return Tx.getFontFamily(t.getBody(),e)}).getOr("")},function(e){return Tx.getFontFamily(t.getBody(),e)});var t},this),a.addQueryValueHandler("FontSize",function(){return Rx(t=i).fold(function(){return Ax(t).map(function(e){return Tx.getFontSize(t.getBody(),e)}).getOr("")},function(e){return Tx.getFontSize(t.getBody(),e)});var t},this)},e}(),Ux=sn.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"," "),jx=function(){return!1},qx=function(){return!0},$x=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||jx}return e.isNative=function(e){return!!Ux[e.toLowerCase()]},e.prototype.fire=function(e,t){var n,r,o,i;if(e=e.toLowerCase(),(t=t||{}).type=e,t.target||(t.target=this.scope),t.preventDefault||(t.preventDefault=function(){t.isDefaultPrevented=qx},t.stopPropagation=function(){t.isPropagationStopped=qx},t.stopImmediatePropagation=function(){t.isImmediatePropagationStopped=qx},t.isDefaultPrevented=jx,t.isPropagationStopped=jx,t.isImmediatePropagationStopped=jx),this.settings.beforeFire&&this.settings.beforeFire(t),n=this.bindings[e])for(r=0,o=n.length;r<o;r++){if((i=n[r]).once&&this.off(e,i.func),t.isImmediatePropagationStopped())return t.stopPropagation(),t;if(!1===i.func.call(this.scope,t))return t.preventDefault(),t}return t},e.prototype.on=function(e,t,n,r){var o,i,a;if(!1===t&&(t=jx),t){var s={func:t};for(r&&sn.extend(s,r),a=(i=e.toLowerCase().split(" ")).length;a--;)e=i[a],(o=this.bindings[e])||(o=this.bindings[e]=[],this.toggleEvent(e,!0)),n?o.unshift(s):o.push(s)}return this},e.prototype.off=function(e,t){var n,r,o,i,a;if(e)for(n=(i=e.toLowerCase().split(" ")).length;n--;){if(e=i[n],r=this.bindings[e],!e){for(o in this.bindings)this.toggleEvent(o,!1),delete this.bindings[o];return this}if(r){if(t)for(a=r.length;a--;)r[a].func===t&&(r=r.slice(0,a).concat(r.slice(a+1)),this.bindings[e]=r);else r.length=0;r.length||(this.toggleEvent(e,!1),delete this.bindings[e])}}else{for(e in this.bindings)this.toggleEvent(e,!1);this.bindings={}}return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),Wx=function(n){return n._eventDispatcher||(n._eventDispatcher=new $x({scope:n,toggleEvent:function(e,t){$x.isNative(e)&&n.toggleNativeEvent&&n.toggleNativeEvent(e,t)}})),n._eventDispatcher},Kx={fire:function(e,t,n){if(this.removed&&"remove"!==e&&"detach"!==e)return t;var r=Wx(this).fire(e,t);if(!1!==n&&this.parent)for(var o=this.parent();o&&!r.isPropagationStopped();)o.fire(e,r,!1),o=o.parent();return r},on:function(e,t,n){return Wx(this).on(e,t,n)},off:function(e,t){return Wx(this).off(e,t)},once:function(e,t){return Wx(this).once(e,t)},hasEventListeners:function(e){return Wx(this).has(e)}},Xx=_i.DOM,Yx=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=Xx.select(e.settings.event_root)[0]),e.eventRoot):e.getBody()},Gx=function(e,t,n){var r;(r=e).hidden||r.readonly?e.readonly&&n.preventDefault():e.fire(t,n)},Jx=function(i,a){var e,t;if(i.delegates||(i.delegates={}),!i.delegates[a]&&!i.removed)if(e=Yx(i,a),i.settings.event_root){if(fy||(fy={},i.editorManager.on("removeEditor",function(){var e;if(!i.editorManager.activeEditor&&fy){for(e in fy)i.dom.unbind(Yx(i,e));fy=null}})),fy[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||Xx.isChildOf(t,o))&&Gx(n[r],a,e)}},fy[a]=t,Xx.bind(e,a,t)}else t=function(e){Gx(i,a,e)},Xx.bind(e,a,t),i.delegates[a]=t},Qx=Ii({},Kx,{bindPendingEventDelegates:function(){var t=this;sn.each(t._pendingNativeEvents,function(e){Jx(t,e)})},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(t?n.initialized?Jx(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(Yx(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(Yx(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()))}}),Zx=sn.each,eN=sn.explode,tN={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},nN=sn.makeMap("alt,ctrl,shift,meta,access"),rN=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var n=this;e.on("keyup keypress keydown",function(t){!n.hasModifier(t)&&!n.isFunctionKey(t)||t.isDefaultPrevented()||(Zx(n.shortcuts,function(e){if(n.matchShortcut(t,e))return n.pendingPatterns=e.subpatterns.slice(0),"keydown"===t.type&&n.executeShortcutAction(e),!0}),n.matchShortcut(t,n.pendingPatterns[0])&&(1===n.pendingPatterns.length&&"keydown"===t.type&&n.executeShortcutAction(n.pendingPatterns[0]),n.pendingPatterns.shift()))})}return e.prototype.add=function(e,n,r,o){var t,i=this;return"string"==typeof(t=r)?r=function(){i.editor.execCommand(t,!1,null)}:sn.isArray(t)&&(r=function(){i.editor.execCommand(t[0],t[1],t[2])}),Zx(eN(sn.trim(e.toLowerCase())),function(e){var t=i.createShortcut(e,n,r,o);i.shortcuts[t.id]=t}),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.parseShortcut=function(e){var t,n,r={};for(n in Zx(eN(e,"+"),function(e){e in nN?r[e]=!0:/^[0-9]{2,}$/.test(e)?r.keyCode=parseInt(e,10):(r.charCode=e.charCodeAt(0),r.keyCode=tN[e]||e.toUpperCase().charCodeAt(0))}),t=[r.keyCode],nN)r[n]?t.push(n):r[n]=!1;return r.id=t.join(","),r.access&&(r.alt=!0,Fe.mac?r.ctrl=!0:r.shift=!0),r.meta&&(Fe.mac?r.meta=!0:(r.ctrl=!0,r.meta=!1)),r},e.prototype.createShortcut=function(e,t,n,r){var o;return(o=sn.map(eN(e,">"),this.parseShortcut))[o.length-1]=sn.extend(o[o.length-1],{func:n,scope:r||this.editor}),sn.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&112<=e.keyCode&&e.keyCode<=123},e.prototype.matchShortcut=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)},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),oN=sn.each,iN=sn.trim,aN="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),sN={ftp:21,http:80,https:443,mailto:25},uN=function(){function u(e,t){e=iN(e),this.settings=t||{};var n=this.settings.base_uri,r=this;if(/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e))r.source=e;else{var o=0===e.indexOf("//");if(0!==e.indexOf("/")||o||(e=(n&&n.protocol||"http")+"://mce_host"+e),!/^[\w\-]*:?\/\//.test(e)){var i=this.settings.base_uri?this.settings.base_uri.path:new u(j.document.location.href).directory;if(""==this.settings.base_uri.protocol)e="//mce_host"+r.toAbsPath(i,e);else{var a=/([^#?]*)([#?]?.*)/.exec(e);e=(n&&n.protocol||"http")+"://mce_host"+r.toAbsPath(i,a[1])+a[2]}}e=e.replace(/@@/g,"(mce_at)");var s=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e);oN(aN,function(e,t){var n=s[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),r[e]=n}),n&&(r.protocol||(r.protocol=n.protocol),r.userInfo||(r.userInfo=n.userInfo),r.port||"mce_host"!==r.host||(r.port=n.port),r.host&&"mce_host"!==r.host||(r.host=n.host),r.source=""),o&&(r.protocol="")}}return u.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},u.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},u.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},u.prototype.toRelative=function(e){var t;if("./"===e)return e;var n=new u(e,{base_uri:this});if("mce_host"!==n.host&&this.host!==n.host&&n.host||this.port!==n.port||this.protocol!==n.protocol&&""!==n.protocol)return n.getURI();var r=this.getURI(),o=n.getURI();return r===o||"/"===r.charAt(r.length-1)&&r.substr(0,r.length-1)===o?r:(t=this.toRelPath(this.path,n.path),n.query&&(t+="?"+n.query),n.anchor&&(t+="#"+n.anchor),t)},u.prototype.toAbsolute=function(e,t){var n=new u(e,{base_uri:this});return n.getURI(t&&this.isSameOrigin(n))},u.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=sN[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},u.prototype.toRelPath=function(e,t){var n,r,o,i=0,a="",s=e.substring(0,e.lastIndexOf("/")).split("/");if(n=t.split("/"),s.length>=n.length)for(r=0,o=s.length;r<o;r++)if(r>=n.length||s[r]!==n[r]){i=r+1;break}if(s.length<n.length)for(r=0,o=n.length;r<o;r++)if(r>=s.length||s[r]!==n[r]){i=r+1;break}if(1===i)return t;for(r=0,o=s.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},u.prototype.toAbsPath=function(e,t){var n,r,o,i=0,a=[];r=/\/$/.test(t)?"/":"";var s=e.split("/"),u=t.split("/");for(oN(s,function(e){e&&a.push(e)}),s=a,n=u.length-1,a=[];0<=n;n--)0!==u[n].length&&"."!==u[n]&&(".."!==u[n]?0<i?i--:a.push(u[n]):i++);return 0!==(o=(n=s.length-i)<=0?a.reverse().join("/"):s.slice(0,n).join("/")+"/"+a.reverse().join("/")).indexOf("/")&&(o="/"+o),r&&o.lastIndexOf("/")!==o.length-1&&(o+=r),o},u.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},u}(),lN=function(){var e,t,n,r,o,i,a,s,u=(t={},n={},r={},o={},i={},a={},{addButton:(s=function(n,r){return function(e,t){return n[e.toLowerCase()]=Zg({type:r},t)}})(e={},"button"),addToggleButton:s(e,"togglebutton"),addMenuButton:s(e,"menubutton"),addSplitButton:s(e,"splitbutton"),addMenuItem:s(t,"menuitem"),addNestedMenuItem:s(t,"nestedmenuitem"),addToggleMenuItem:s(t,"togglemenuitem"),addAutocompleter:s(n,"autocompleter"),addContextMenu:s(o,"contextmenu"),addContextToolbar:s(i,"contexttoolbar"),addContextForm:s(i,"contextform"),addSidebar:s(a,"sidebar"),addIcon:function(e,t){return r[e.toLowerCase()]=t},getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:o,contextToolbars:i,sidebars:a}}});return{addAutocompleter:u.addAutocompleter,addButton:u.addButton,addContextForm:u.addContextForm,addContextMenu:u.addContextMenu,addContextToolbar:u.addContextToolbar,addIcon:u.addIcon,addMenuButton:u.addMenuButton,addMenuItem:u.addMenuItem,addNestedMenuItem:u.addNestedMenuItem,addSidebar:u.addSidebar,addSplitButton:u.addSplitButton,addToggleButton:u.addToggleButton,addToggleMenuItem:u.addToggleMenuItem,getAll:u.getAll}},cN=_i.DOM,fN=sn.extend,dN=sn.each,hN=sn.resolve,mN=Fe.ie,gN=function(){function e(e,t,n){var r,o,i,a,s,u,l,c=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,this.baseUri=n.baseURI,fN(this,Qx),this.settings=(o=e,i=(r=this).documentBaseUrl,a=n.defaultSettings,s=t,l={id:o,theme:"silver",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,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,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:(u=r).convertURL,url_converter_scope:u,ie7_compat:!0},$f(Vf,l,a,s)),Yi.languageLoad=this.settings.language_load,Yi.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new uN(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=this.settings.inline,this.suffix=n.suffix,this.shortcuts=new rN(this),this.editorCommands=new Fx(this),this.settings.cache_suffix&&(Fe.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),!1===this.settings.override_viewport&&(Fe.overrideViewPort=!1),this.ui={registry:lN()};var f=cx(this);this.mode=f,this.setMode=f.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Un.overrideDefaults(function(){return{context:c.inline?c.getBody():c.getDoc(),element:c.getBody()}})}return e.prototype.render=function(){lx(this)},e.prototype.focus=function(e){wf(this,e)},e.prototype.hasFocus=function(){return xf(this)},e.prototype.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+$/,""))?hN(r):0,o=hN(o),this.callbackLookup=this.callbackLookup||{},this.callbackLookup[e]={func:o,scope:r}),o.apply(r||this,Array.prototype.slice.call(arguments,1))},e.prototype.translate=function(e){return Wi.translate(e)},e.prototype.getParam=function(e,t,n){return Xf(this,e,t,n)},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){this.hidden&&(this.hidden=!1,this.inline?this.getBody().contentEditable="true":(cN.show(this.getContainer()),cN.hide(this.id)),this.load(),this.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(mN&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(cN.hide(e.getContainer()),cN.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this.getElement();if(this.removed)return"";if(n){(e=e||{}).load=!0;var r=n.value;return t=this.setContent(r!==undefined?r:n.innerHTML,e),e.element=n,e.no_events||this.fire("LoadContent",e),e.element=n=null,t}},e.prototype.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=cN.getParent(r.id,"form"))&&dN(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},e.prototype.setContent=function(e,t){return Sf(this,e,t)},e.prototype.getContent=function(e){return t=this,void 0===(n=e)&&(n={}),T.from(t.getBody()).fold($("tree"===n.format?new ac("body",11):""),function(e){return jc(t,n,e)});var t,n},e.prototype.insertContent=function(e,t){t&&(e=fN({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){e===undefined?Sf(this,this.startContent,{format:"raw"}):Sf(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){return this.container||(this.container=cN.get(this.editorContainer||this.id+"_parent")),this.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=cN.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},e.prototype.getDoc=function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.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)},e.prototype.addVisual=function(e){var n,r=this,o=r.settings,i=r.dom;e=e||r.getBody(),r.hasVisual===undefined&&(r.hasVisual=o.visual),dN(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})},e.prototype.remove=function(){_f(this)},e.prototype.destroy=function(e){Pf(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),pN={isEditorUIElement:function(e){return-1!==e.className.toString().indexOf("tox-")||-1!==e.className.toString().indexOf("mce-")}},vN=function(n,e){var t,r;pr.detect().browser.isIE()?(r=n).on("focusout",function(){df(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||df(n)})},yN=function(e){var t,n,r,o=oa(function(){df(e)},0);e.inline&&(t=e,n=o,r=function(){n.throttle()},_i.DOM.bind(j.document,"mouseup",r),t.on("remove",function(){_i.DOM.unbind(j.document,"mouseup",r)})),e.on("init",function(){vN(e,o)}),e.on("remove",function(){o.cancel()})},bN=_i.DOM,CN=function(e){return pN.isEditorUIElement(e)},wN=function(t,e){var n=t?t.settings.custom_ui_selector:"";return null!==bN.getParent(e,function(e){return CN(e)||!!n&&t.dom.is(e,n)})},xN=function(r,e){var t=e.editor;yN(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;We.setEditorTimeout(t,function(){var e=r.focusedEditor;wN(t,function(){try{return j.document.activeElement}catch(e){return j.document.body}}())||e!==t||(t.fire("blur",{focusedEditor:null}),r.focusedEditor=null)})}),dy||(dy=function(e){var t,n=r.activeEditor;t=e.target,n&&t.ownerDocument===j.document&&(t===j.document.body||wN(n,t)||r.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),r.focusedEditor=null))},bN.bind(j.document,"focusin",dy))},NN=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(bN.unbind(j.document,"focusin",dy),dy=null)},EN=function(e){e.on("AddEditor",d(xN,e)),e.on("RemoveEditor",d(NN,e))},SN=_i.DOM,zN=sn.explode,kN=sn.each,TN=sn.extend,AN=0,RN=!1,MN=[],DN=[],BN=function(t){var n=t.type;kN(PN.get(),function(e){switch(n){case"scroll":e.fire("ScrollWindow",t);break;case"resize":e.fire("ResizeWindow",t)}})},ON=function(e){e!==RN&&(e?Un(window).on("resize scroll",BN):Un(window).off("resize scroll",BN),RN=e)},_N=function(t){var e=DN;delete MN[t.id];for(var n=0;n<MN.length;n++)if(MN[n]===t){MN.splice(n,1);break}return DN=U(DN,function(e){return t!==e}),PN.activeEditor===t&&(PN.activeEditor=0<DN.length?DN[0]:null),PN.focusedEditor===t&&(PN.focusedEditor=null),e.length!==DN.length},PN=Ii({},Kx,{_beforeUnloadHandler:null,baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Un,majorVersion:"5",minorVersion:"0.4",releaseDate:"2019-04-23",editors:MN,i18n:Wi,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t,n,r,o="";if(t=uN.getDocumentBaseUrl(j.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=j.document.getElementsByTagName("script"),a=0;a<i.length;a++){var s=(r=i[a].src).substring(r.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(r)){-1!==s.indexOf(".min")&&(o=".min"),e=r.substring(0,r.lastIndexOf("/"));break}}!e&&j.document.currentScript&&(-1!==(r=j.document.currentScript.src).indexOf(".min")&&(o=".min"),e=r.substring(0,r.lastIndexOf("/")))}this.baseURL=new uN(t).toAbsolute(e),this.documentBaseURL=t,this.baseURI=new uN(this.baseURL),this.suffix=o,EN(this)},overrideDefaults:function(e){var t,n;(t=e.base_url)&&(this.baseURL=new uN(this.documentBaseURL).toAbsolute(t.replace(/\/+$/,"")),this.baseURI=new uN(this.baseURL)),n=e.suffix,e.suffix&&(this.suffix=n);var r=(this.defaultSettings=e).plugin_base_urls;for(var o in r)Yi.PluginManager.urls[o]=r[o]},init:function(r){var n,s,u=this;s=sn.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," ");var l=function(e){var t=e.id;return t||(t=(t=e.name)&&!SN.get(t)?e.name:SN.uniqueId(),e.setAttribute("id",t)),t},c=function(e,t){return t.constructor===RegExp?t.test(e.className):SN.hasClass(e,t)},f=function(e){n=e},e=function(){var o,i=0,a=[],n=function(e,t,n){var r=new gN(e,t,u);a.push(r),r.on("init",function(){++i===o.length&&f(a)}),r.targetElm=r.targetElm||n,r.render()};SN.unbind(window,"ready",e),function(e){var t=r[e];t&&t.apply(u,Array.prototype.slice.call(arguments,2))}("onpageload"),o=Un.unique(function(t){var e,n=[];if(Fe.ie&&Fe.ie<11)return fd.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 kN(t.types,function(e){n=n.concat(SN.select(e.selector))}),n;if(t.selector)return SN.select(t.selector);if(t.target)return[t.target];switch(t.mode){case"exact":0<(e=t.elements||"").length&&kN(zN(e),function(t){var e;(e=SN.get(t))?n.push(e):kN(j.document.forms,function(e){kN(e.elements,function(e){e.name===t&&(t="mce_editor_"+AN++,SN.setAttrib(e,"id",t),n.push(e))})})});break;case"textareas":case"specific_textareas":kN(SN.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?kN(r.types,function(t){sn.each(o,function(e){return!SN.is(e,t.selector)||(n(l(e),TN({},r,t),e),!1)})}):(sn.each(o,function(e){var t;(t=u.get(e.id))&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(_N(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0,t=null)}),0===(o=sn.grep(o,function(e){return!u.get(e.id)})).length?f([]):kN(o,function(e){var t;t=e,r.inline&&t.tagName.toLowerCase()in s?fd.initError("Could not initialize inline editor on invalid inline target element",e):n(l(e),r,e)}))};return u.settings=r,SN.bind(window,"ready",e),new Ue(function(t){n?t(n):f=function(e){t(e)}})},get:function(t){return 0===arguments.length?DN.slice(0):K(t)?Q(DN,function(e){return e.id===t}).getOr(null):_(t)&&DN[t]?DN[t]:null},add:function(e){var t=this;return MN[e.id]===e||(null===t.get(e.id)&&("length"!==e.id&&(MN[e.id]=e),MN.push(e),DN.push(e)),ON(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),hy||(hy=function(){t.fire("BeforeUnload")},SN.bind(window,"beforeunload",hy))),e},createEditor:function(e,t){return this.add(new gN(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!K(e))return n=e,D(r.get(n.id))?null:(_N(n)&&r.fire("RemoveEditor",{editor:n}),0===DN.length&&SN.unbind(window,"beforeunload",hy),n.remove(),ON(0<DN.length),n);kN(SN.select(e),function(e){(n=r.get(e.id))&&r.remove(n)})}else for(t=DN.length-1;0<=t;t--)r.remove(DN[t])},execCommand:function(e,t,n){var r=this.get(n);switch(e){case"mceAddEditor":return this.get(n)||new gN(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(){kN(DN,function(e){e.save()})},addI18n:function(e,t){Wi.add(e,t)},translate:function(e){return Wi.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}});function HN(n){return{walk:function(e,t){return Yl(n,e,t)},split:Nm,normalize:function(t){return cv(n,t).fold($(!1),function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0})}}}PN.setup(),(my=HN||(HN={})).compareRanges=Vd,my.getCaretRangeFromPoint=Ap,my.getSelectedNode=gs,my.getNode=ps;var LN,VN,IN=HN,FN=Math.min,UN=Math.max,jN=Math.round,qN=function(e,t,n){var r,o,i,a,s,u;return r=t.x,o=t.y,i=e.w,a=e.h,s=t.w,u=t.h,"b"===(n=(n||"").split(""))[0]&&(o+=u),"r"===n[1]&&(r+=s),"c"===n[0]&&(o+=jN(u/2)),"c"===n[1]&&(r+=jN(s/2)),"b"===n[3]&&(o-=a),"r"===n[4]&&(r-=i),"c"===n[3]&&(o-=jN(a/2)),"c"===n[4]&&(r-=jN(i/2)),$N(r,o,i,a)},$N=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},WN={inflate:function(e,t,n){return $N(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},relativePosition:qN,findBestRelativePosition:function(e,t,n,r){var o,i;for(i=0;i<r.length;i++)if((o=qN(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=UN(e.x,t.x),r=UN(e.y,t.y),o=FN(e.x+e.w,t.x+t.w),i=FN(e.y+e.h,t.y+t.h),o-n<0||i-r<0?null:$N(n,r,o-n,i-r)},clamp:function(e,t,n){var r,o,i,a,s,u,l,c,f,d;return s=e.x,u=e.y,l=e.x+e.w,c=e.y+e.h,f=t.x+t.w,d=t.y+t.h,r=UN(0,t.x-s),o=UN(0,t.y-u),i=UN(0,l-f),a=UN(0,c-d),s+=r,u+=o,n&&(l+=r,c+=o,s-=i,u-=a),$N(s,u,(l-=i)-s,(c-=a)-u)},create:$N,fromClientRect:function(e){return $N(e.left,e.top,e.width,e.height)}},KN=sn.each,XN=sn.extend,YN=function(){};YN.extend=LN=function(n){var e,t,r,o=this.prototype,i=function(){var e,t,n;if(!VN&&(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},s=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 VN=!0,e=new this,VN=!1,n.Mixins&&(KN(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&&KN(n.Methods.split(","),function(e){n[e]=a}),n.Properties&&KN(n.Properties.split(","),function(e){var t="_"+e;n[e]=function(e){return e!==undefined?(this[t]=e,this):this[t]}}),n.Statics&&KN(n.Statics,function(e,t){i[t]=e}),n.Defaults&&o.Defaults&&(n.Defaults=XN({},o.Defaults,n.Defaults)),n)"function"==typeof(r=n[t])&&o[t]?e[t]=s(t,r):e[t]=r;return i.prototype=e,(i.constructor=i).extend=LN,i};var GN,JN,QN,ZN,eE=Math.min,tE=Math.max,nE=Math.round,rE={serialize:function(e){var t=JSON.stringify(e);return K(t)?t.replace(/[\u0080-\uFFFF]/g,function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t}):t},parse:function(e){try{return JSON.parse(e)}catch(t){}}},oE={callbacks:{},count:0,send:function(t){var n=this,r=_i.DOM,o=t.count!==undefined?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++}},iE=Ii({},Kx,{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):We.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||"",iE.fire("beforeInitialize",{settings:e}),t=gd()){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&&sn.each(e.requestheaders,function(e){t.setRequestHeader(e.key,e.value)}),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),(t=iE.fire("beforeSend",{xhr:t,settings:e}).xhr).send(e.data),!e.async)return r();We.setTimeout(r,10)}}}),aE=sn.extend,sE=function(){function t(e){this.settings=aE({},e),this.count=0}return t.sendRPC=function(e){return(new t).send(e)},t.prototype.send=function(e){var n=e.error,r=e.success,o=aE(this.settings,e);o.success=function(e,t){void 0===(e=rE.parse(e))&&(e={error:"JSON Parse error."}),e.error?n.call(o.error_scope||o.scope,e.error,t):r.call(o.success_scope||o.scope,e.result)},o.error=function(e,t){n&&n.call(o.error_scope||o.scope,e,t)},o.data=rE.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),o.content_type="application/json",iE.send(o)},t}();try{GN=j.window.localStorage}catch(fE){JN={},QN=[],ZN={getItem:function(e){var t=JN[e];return t||null},setItem:function(e,t){QN.push(e),JN[e]=String(t)},key:function(e){return QN[e]},removeItem:function(t){QN=QN.filter(function(e){return e===t}),delete JN[t]},clear:function(){QN=[],JN={}},length:0},Object.defineProperty(ZN,"length",{get:function(){return QN.length},configurable:!1,enumerable:!1}),GN=ZN}var uE,lE={geom:{Rect:WN},util:{Promise:Ue,Delay:We,Tools:sn,VK:kh,URI:uN,Class:YN,EventDispatcher:$x,Observable:Kx,I18n:Wi,XHR:iE,JSON:rE,JSONRequest:sE,JSONP:oE,LocalStorage:GN,Color:function(e){var n={},s=0,u=0,l=0,t=function(e){var t;return"object"==typeof e?"r"in e?(s=e.r,u=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=tE(0,eE(t,1)),n=tE(0,eE(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:s=o,u=i,l=0;break;case 1:s=i,u=o,l=0;break;case 2:s=0,u=o,l=i;break;case 3:s=0,u=i,l=o;break;case 4:s=i,u=0,l=o;break;case 5:s=o,u=0,l=i;break;default:s=u=l=0}s=nE(255*(s+a)),u=nE(255*(u+a)),l=nE(255*(l+a))}else s=u=l=nE(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))?(s=parseInt(t[1],10),u=parseInt(t[2],10),l=parseInt(t[3],10)):(t=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(s=parseInt(t[1],16),u=parseInt(t[2],16),l=parseInt(t[3],16)):(t=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(s=parseInt(t[1]+t[1],16),u=parseInt(t[2]+t[2],16),l=parseInt(t[3]+t[3],16)),s=s<0?0:255<s?255:s,u=u<0?0:255<u?255:u,l=l<0?0:255<l?255:l,n};return e&&t(e),n.toRgb=function(){return{r:s,g:u,b:l}},n.toHsv=function(){return e=s,t=u,n=l,o=0,(i=eE(e/=255,eE(t/=255,n/=255)))===(a=tE(e,tE(t,n)))?{h:0,s:0,v:100*(o=i)}:(r=(a-i)/a,{h:nE(60*((e===i?3:n===i?1:5)-(e===i?t-n:n===i?e-t:n-e)/((o=a)-i))),s:nE(100*r),v:nE(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(s)+e(u)+e(l)},n.parse=t,n}},dom:{EventUtils:tt,Sizzle:Ht,DomQuery:Un,TreeWalker:Po,DOMUtils:_i,ScriptLoader:Vi,RangeUtils:IN,Serializer:vp,ControlSelection:Ep,BookmarkManager:wp,Selection:Cv,Event:tt.Event},html:{Styles:Si,Entities:ui,Node:ac,Schema:xi,SaxParser:cc,DomParser:hp,Writer:$c,Serializer:Wc},Env:Fe,AddOnManager:Yi,Annotator:nc,Formatter:Jg,UndoManager:fm,EditorCommands:Fx,WindowManager:id,NotificationManager:rd,EditorObservable:Qx,Shortcuts:rN,Editor:gN,FocusManager:pN,EditorManager:PN,DOM:_i.DOM,ScriptLoader:Vi.ScriptLoader,PluginManager:Yi.PluginManager,ThemeManager:Yi.ThemeManager,IconManager:dd,trim:sn.trim,isArray:sn.isArray,is:sn.is,toArray:sn.toArray,makeMap:sn.makeMap,each:sn.each,map:sn.map,grep:sn.grep,inArray:sn.inArray,extend:sn.extend,create:sn.create,walk:sn.walk,createNS:sn.createNS,resolve:sn.resolve,explode:sn.explode,_addCacheSuffix:sn._addCacheSuffix,isOpera:Fe.opera,isWebKit:Fe.webkit,isIE:Fe.ie,isGecko:Fe.gecko,isMac:Fe.mac},cE=sn.extend(PN,lE);uE=cE,window.tinymce=uE,window.tinyMCE=uE,function(e){if("object"==typeof module)try{module.exports=e}catch(t){}}(cE)}(window);

/**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 *
 * Version: 5.0.4 (2019-04-23)
 */
 !function(c){"use strict";var n,t,e,r,o,i=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=tinymce.util.Tools.resolve("tinymce.util.VK"),a=function(n){return n.target_list},l=function(n){return n.rel_list},f=function(n){return n.link_class_list},v=function(n){return"boolean"==typeof n.link_assume_external_targets&&n.link_assume_external_targets},s=function(n){return"boolean"==typeof n.link_context_toolbar&&n.link_context_toolbar},g=function(n){return n.link_list},y=function(n){return"string"==typeof n.default_link_target},k=function(n){return n.default_link_target},m=a,d=function(n){return!1!==a(n)},h=l,p=function(n){return l(n)!==undefined},x=f,b=function(n){return f(n)!==undefined},O=function(n){return!1!==n.link_title},w=function(n){return"boolean"==typeof n.allow_unsafe_link_target&&n.allow_unsafe_link_target},_=function(n){return!0===n.link_quicklink},A=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),C=tinymce.util.Tools.resolve("tinymce.Env"),T=function(n){if(!C.ie||10<C.ie){var t=c.document.createElement("a");t.target="_blank",t.href=n,t.rel="noreferrer noopener";var e=c.document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,c.window,0,0,0,0,0,!1,!1,!1,!1,0,null),i=t,u=e,c.document.body.appendChild(i),i.dispatchEvent(u),c.document.body.removeChild(i)}else{var r=c.window.open("","_blank");if(r){r.opener=null;var o=r.document;o.open(),o.write('<meta http-equiv="refresh" content="0; url='+A.DOM.encode(n)+'">'),o.close()}}var i,u},N=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t]},S=function(n){return function(){return n}},D=S(!1),M=S(!0),L=D,E=M,U=function(){return P},P=(r={fold:function(n,t){return n()},is:L,isSome:L,isNone:E,getOr:e=function(n){return n},getOrThunk:t=function(n){return n()},getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:e,orThunk:t,map:U,ap:U,each:function(){},bind:U,flatten:U,exists:L,forall:E,filter:U,equals:n=function(n){return n.isNone()},equals_:n,toArray:function(){return[]},toString:S("none()")},Object.freeze&&Object.freeze(r),r),R=function(e){var n=function(){return e},t=function(){return o},r=function(n){return n(e)},o={fold:function(n,t){return t(e)},is:function(n){return e===n},isSome:E,isNone:L,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:t,orThunk:t,map:function(n){return R(n(e))},ap:function(n){return n.fold(U,function(n){return R(n(e))})},each:function(n){n(e)},bind:r,flatten:n,exists:r,forall:r,filter:function(n){return n(e)?o:P},equals:function(n){return n.is(e)},equals_:function(n,t){return n.fold(L,function(n){return t(e,n)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},z={some:R,none:U,from:function(n){return null===n||n===undefined?P:R(n)}},q=function(t){return function(n){return function(n){if(null===n)return"null";var t=typeof n;return"object"===t&&Array.prototype.isPrototypeOf(n)?"array":"object"===t&&String.prototype.isPrototypeOf(n)?"string":t}(n)===t}},K=q("string"),I=q("function"),j=(o=Array.prototype.indexOf)===undefined?function(n,t){return V(n,t)}:function(n,t){return o.call(n,t)},B=function(n,t){for(var e=0,r=n.length;e<r;e++)t(n[e],e,n)},V=function(n,t){for(var e=0,r=n.length;e<r;++e)if(n[e]===t)return e;return-1},F=Array.prototype.push,W=function(n){for(var t=[],e=0,r=n.length;e<r;++e){if(!Array.prototype.isPrototypeOf(n[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+n);F.apply(t,n[e])}return t},H=function(n,t){var e=function(n,t){for(var e=n.length,r=new Array(e),o=0;o<e;o++){var i=n[o];r[o]=t(i,o,n)}return r}(n,t);return W(e)},$=(Array.prototype.slice,I(Array.from)&&Array.from,tinymce.util.Tools.resolve("tinymce.util.Tools")),G=function(n,t){var e,r,o=["noopener"],i=n?n.split(/\s+/):[],u=function(n){return n.filter(function(n){return-1===$.inArray(o,n)})},a=t?0<(e=u(e=i)).length?e.concat(o):o:u(i);return 0<a.length?(r=a,$.trim(r.sort().join(" "))):""},J=function(n,t){return t=t||n.selection.getNode(),Q(t)?n.dom.select("a[href]",t)[0]:n.dom.getParent(t,"a[href]")},X=function(n){return n&&"A"===n.nodeName&&!!n.href},Q=function(n){return n&&"FIGURE"===n.nodeName&&/\bimage\b/i.test(n.className)},Y=function(n){return t=["title","rel","class","target"],e=function(t,e){return n[e].each(function(n){t[e]=0<n.length?n:null}),t},r={href:n.href},B(t,function(n){r=e(r,n)}),r;var t,e,r},Z=function(n,t){var e=n.dom.select("img",t)[0];if(e){var r=n.dom.getParents(e,"a[href]",t)[0];r&&(r.parentNode.insertBefore(e,r),n.dom.remove(r))}},nn=function(n,t,e){var r=n.dom.select("img",t)[0];if(r){var o=n.dom.create("a",e);r.parentNode.insertBefore(o,r),o.appendChild(r)}},tn=function(g,m,d){g.undoManager.transact(function(){var t,n,e,r,o,i,u,a,c=g.selection.getNode(),l=J(g,c),f=Y(d);if(!p(g.settings)&&!1===w(g.settings)){var s=G(f.rel,"_blank"===f.target);f.rel=s||null}d.href===m.href&&m.attach(),l?(g.focus(),o=g,i=l,u=d.text,a=f,u.each(function(n){i.hasOwnProperty("innerText")?i.innerText=n:i.textContent=n}),o.dom.setAttribs(i,a),o.selection.select(i)):(t=g,n=c,e=d.text,r=f,Q(n)?nn(t,n,r):e.fold(function(){t.execCommand("mceInsertLink",!1,r)},function(n){t.insertContent(t.dom.createHTML("a",r,t.dom.encode(n)))}))})},en=function(e){e.undoManager.transact(function(){var n=e.selection.getNode();if(Q(n))Z(e,n);else{var t=e.dom.getParent(n,"a[href]",e.getBody());t&&e.dom.remove(t,!0)}e.focus()})},rn=function(n){return 0<$.grep(n,X).length},on=function(n){var t=n.getAttribute("data-mce-href");return t||n.getAttribute("href")},un=function(n){return!(/</.test(n)&&(!/^<a [^>]+>[^<]+<\/a>$/.test(n)||-1===n.indexOf("href=")))},an=J,cn=function(n,t){var e=t?t.innerText||t.textContent:n.getContent({format:"text"});return e.replace(/\uFEFF/g,"")},ln=G,fn=function(n,t){for(var e=0;e<n.length;e++){var r=t(n[e],e);if(r.isSome())return r}return z.none()},sn=function(n){return K(n.value)?n.value:""},gn=function(e){return void 0===e&&(e=sn),function(n){return z.from(n).map(function(n){return t=n,r=e,o=[],$.each(t,function(n){var t=K(n.text)?n.text:K(n.title)?n.title:"";if(n.menu!==undefined);else{var e=r(n);o.push({text:t,value:e})}}),o;var t,r,o})}},mn={sanitize:function(n){return gn(sn)(n)},sanitizeWith:gn,createUi:function(t,e){return function(n){return{name:t,type:"selectbox",label:e,items:n}}},getValue:sn},dn=function(n){var t=n,e=function(){return t};return{get:e,set:function(n){t=n},clone:function(){return dn(e())}}},hn=function(t,n,e,r){var o,i,u=r[n],a=0<t.length;return u!==undefined?(o=u,i=e,fn(i,function(n){return z.some(n).filter(function(n){return n.value===o})})).map(function(n){return{url:{value:n.value,meta:{text:a?t:n.text,attach:N}},text:a?t:n.text}}):z.none()},pn=function(n,i){var u=dn(n.text),o=function(n,t){var e,r,o=(e=i,r=t.name,"link"===r?e.catalogs.link:"anchor"===r?e.catalogs.anchor:z.none()).getOr([]);return hn(u.get(),t.name,o,n)};return{onChange:function(n,t){return"url"===t.name?function(n){if(u.get().length<=0){var t=n.url.meta.text!==undefined?n.url.meta.text:n.url.value;return z.some({text:t})}return z.none()}(n()):(e=["anchor","link"],r=t.name,-1<j(e,r)?o(n(),t):("text"===t.name&&u.set(n().text),z.none()));var e,r}}},vn=function(){return(vn=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)},yn=function(n){var e=z.none(),t=[],r=function(n){o()?u(n):t.push(n)},o=function(){return e.isSome()},i=function(n){B(n,u)},u=function(t){e.each(function(n){c.setTimeout(function(){t(n)},0)})};return n(function(n){e=z.some(n),i(t),t=[]}),{get:r,map:function(e){return yn(function(t){r(function(n){t(e(n))})})},isReady:o}},kn={nu:yn,pure:function(t){return yn(function(n){n(t)})}},xn=function(t){var n=function(n){var r;t((r=n,function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=this;c.setTimeout(function(){r.apply(e,n)},0)}))},e=function(){return kn.nu(n)};return{map:function(r){return xn(function(e){n(function(n){var t=r(n);e(t)})})},bind:function(e){return xn(function(t){n(function(n){e(n).get(t)})})},anonBind:function(e){return xn(function(t){n(function(n){e.get(t)})})},toLazy:e,toCached:function(){var t=null;return xn(function(n){null===t&&(t=e()),t.get(n)})},get:n}},bn={nu:xn,pure:function(t){return xn(function(n){n(t)})}},On=tinymce.util.Tools.resolve("tinymce.util.Delay"),wn=function(n){var t=n.href;return 0<t.indexOf("@")&&-1===t.indexOf("//")&&-1===t.indexOf("mailto:")?z.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(n){return vn({},n,{href:"mailto:"+t})}}):z.none()},_n=function(u,n,a){return fn([wn,(e=n,function(n){var t=n.href;return!0===e&&!/^\w+:/i.test(t)||!1===e&&/^\s*www[\.|\d\.]/i.test(t)?z.some({message:"The URL you entered seems to be an external link. Do you want to add the required http:// prefix?",preprocess:function(n){return vn({},n,{href:"http://"+t})}}):z.none()})],function(n){return n(a)}).fold(function(){return bn.pure(a)},function(i){return bn.nu(function(t){var e,n,r,o;e=u,n=i.message,r=function(n){c.console.log("state",n),t(n?i.preprocess(a):a)},o=e.selection.getRng(),On.setEditorTimeout(e,function(){e.windowManager.confirm(n,function(n){e.selection.setRng(o),r(n)})})})});var e},An=function(n){var t=n.dom.select("a:not([href])"),e=H(t,function(n){var t=n.name||n.id;return t?[{text:t,value:"#"+t}]:[]});return 0<e.length?z.some([{text:"None",value:""}].concat(e)):z.none()},Cn=function(n){if(b(n.settings)){var t=x(n.settings);return mn.sanitize(t)}return z.none()},Tn=tinymce.util.Tools.resolve("tinymce.util.XHR"),Nn=function(t){var e=function(n){return t.convertURL(n.value||n.url,"href")},n=g(t.settings);return bn.nu(function(t){"string"==typeof n?Tn.send({url:n,success:function(n){return t(function(n){try{return z.some(JSON.parse(n))}catch(t){return z.none()}}(n))},error:function(n){return t(z.none())}}):"function"==typeof n?n(function(n){return t(z.some(n))}):t(z.from(n))}).map(function(n){return n.bind(mn.sanitizeWith(e))})},Sn=function(n,t){if(p(n.settings)){var e=h(n.settings),r=t.is("_blank");return(!1===w(n.settings)?mn.sanitizeWith(function(n){return ln(mn.getValue(n),r)}):mn.sanitize)(e)}return z.none()},Dn=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],Mn=function(n){if(d(n.settings)){var t=m(n.settings);return mn.sanitize(t).orThunk(function(){return z.some(Dn)})}return z.none()},Ln=function(n,t,e){var r=n.getAttrib(t,e);return null!==r&&0<r.length?z.some(r):z.none()},En=function(s,g,m){return Nn(s).map(function(n){var t,e,r,o,i,u,a,c,l,f=(e=m,r=(t=s).selection,o=t.dom,i=un(r.getContent())?z.some(cn(r,e)):z.none(),u=e?z.some(o.getAttrib(e,"href")):z.none(),a=e?z.from(o.getAttrib(e,"target")):z.none(),c=Ln(o,e,"rel"),l=Ln(o,e,"class"),{url:u,text:i,title:Ln(o,e,"title"),target:a,rel:c,linkClass:l});return{anchor:f,catalogs:{targets:Mn(s),rels:Sn(s,f.target),classes:Cn(s),anchor:An(s),link:n},optNode:z.from(m),flags:{titleEnabled:O(g)}}})},Un=function(p){var n,t,e;(t=(n=p).settings,e=an(n),En(n,t,e)).map(function(n){var i,u,a,t,e,r,o,c,l,f,s,g,m,d,h=(u=n,a=v((i=p).settings),function(n){var e=n.getData();if(!e.url.value)return en(i),void n.close();var t=function(t){return z.from(e[t]).filter(function(n){return!u.anchor[t].is(n)})},r={href:e.url.value,text:t("text"),target:t("target"),rel:t("rel"),"class":t("linkClass"),title:t("title")},o={href:e.url.value,attach:e.url.meta!==undefined&&e.url.meta.attach?e.url.meta.attach:function(){}};_n(i,a,r).get(function(n){tn(i,o,n)}),n.close()});return t=n,e=h,r=p.settings,l=t.anchor.text.map(function(){return{name:"text",type:"input",label:"Text to display"}}).toArray(),f=t.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],s=y(r)?z.some(k(r)):z.none(),c=s,g={url:{value:(o=t).anchor.url.getOr(""),meta:{attach:function(){},text:o.anchor.url.fold(function(){return""},function(){return o.anchor.text.getOr("")}),original:{value:o.anchor.url.getOr("")}}},text:o.anchor.text.getOr(""),title:o.anchor.title.getOr(""),anchor:o.anchor.url.getOr(""),link:o.anchor.url.getOr(""),rel:o.anchor.rel.getOr(""),target:o.anchor.target.or(c).getOr(""),linkClass:o.anchor.linkClass.getOr("")},m=pn(g,t),d=t.catalogs,{title:"Insert/Edit Link",size:"normal",body:{type:"panel",items:W([[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],l,f,function(n){for(var t=[],e=function(n){t.push(n)},r=0;r<n.length;r++)n[r].each(e);return t}([d.anchor.map(mn.createUi("anchor","Anchors")),d.rels.map(mn.createUi("rel","Rel")),d.targets.map(mn.createUi("target","Open link in...")),d.link.map(mn.createUi("link","Link list")),d.classes.map(mn.createUi("linkClass","Class"))])])},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:g,onChange:function(t,n){var e=n.name;m.onChange(t.getData,{name:e}).each(function(n){t.setData(n)})},onSubmit:e}}).get(function(n){p.windowManager.open(n)})},Pn=function(n,t){return n.dom.getParent(t,"a[href]")},Rn=function(n){return Pn(n,n.selection.getStart())},zn=function(n,t){if(t){var e=on(t);if(/^#/.test(e)){var r=n.$(e);r.length&&n.selection.scrollIntoView(r[0],!0)}else T(t.href)}},qn=function(n){return function(){Un(n)}},Kn=function(n){return function(){zn(n,Rn(n))}},In=function(r){r.on("click",function(n){var t=Pn(r,n.target);t&&u.metaKeyPressed(n)&&(n.preventDefault(),zn(r,t))}),r.on("keydown",function(n){var t,e=Rn(r);e&&13===n.keyCode&&!0===(t=n).altKey&&!1===t.shiftKey&&!1===t.ctrlKey&&!1===t.metaKey&&(n.preventDefault(),zn(r,e))})},jn=function(e){return function(t){var n=function(n){return t.setActive(!e.readonly&&!!an(e,n.element))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}}},Bn=function(e){return function(t){t.setDisabled(!rn(e.dom.getParents(e.selection.getStart())));var n=function(n){return t.setDisabled(!rn(n.parents))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}}},Vn=function(n){n.addCommand("mceLink",function(){_(n.settings)?n.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):qn(n)()})},Fn=function(n){n.addShortcut("Meta+K","",function(){n.execCommand("mceLink")})},Wn=function(n){n.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:qn(n),onSetup:jn(n)}),n.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return en(n)},onSetup:Bn(n)})},Hn=function(n){n.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Kn(n),onSetup:Bn(n)}),n.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:qn(n)}),n.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return en(n)},onSetup:Bn(n)})},$n=function(t){t.ui.registry.addContextMenu("link",{update:function(n){return rn(t.dom.getParents(n,"a"))?"link unlink openlink":"link"}})},Gn=function(i){var n=function(n){var t=i.selection.getNode();return n.setDisabled(!an(i,t)),function(){}};i.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:jn(i)},label:"Link",predicate:function(n){return!!an(i,n)&&s(i.settings)},initValue:function(){var n=an(i);return n?on(n):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(n){var t=i.selection.getNode();return n.setActive(!!an(i,t)),jn(i)(n)},onAction:function(n){var t=an(i),e=n.getValue();if(t)i.dom.setAttrib(t,"href",e),i.selection.collapse(!1),n.hide();else{var r={href:e,attach:function(){}},o=un(i.selection.getContent())?z.some(cn(i.selection,t)).filter(function(n){return 0<n.length}).or(z.from(e)):z.none();tn(i,r,{href:e,text:o,title:z.none(),rel:z.none(),target:z.none(),"class":z.none()}),n.hide()}}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(n){en(i),n.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(n){Kn(i)(),n.hide()}}]})};i.add("link",function(n){Wn(n),Hn(n),$n(n),Gn(n),In(n),Vn(n),Fn(n)}),function Jn(){}}(window);

 /**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 *
 * Version: 5.0.4 (2019-04-23)
 */
 !function(c){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),t={},n=t,g=void 0!==t?t:"undefined"!=typeof WorkerGlobalScope&&c.self instanceof WorkerGlobalScope?c.self:{},i=function(){var u=/\blang(?:uage)?-(?!\*)(\w+)\b/i,S=g.Prism={util:{encode:function(e){return e instanceof s?new s(e.type,S.util.encode(e.content),e.alias):"Array"===S.util.type(e)?e.map(S.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},clone:function(e){switch(S.util.type(e)){case"Object":var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=S.util.clone(e[n]));return t;case"Array":return e.map&&e.map(function(e){return S.util.clone(e)})}return e}},languages:{extend:function(e,t){var n=S.util.clone(S.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(n,e,t,a){var r=(a=a||S.languages)[n];if(2===arguments.length){for(var i in t=e)t.hasOwnProperty(i)&&(r[i]=t[i]);return r}var o={};for(var s in r)if(r.hasOwnProperty(s)){if(s===e)for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);o[s]=r[s]}return S.languages.DFS(S.languages,function(e,t){t===a[n]&&e!==n&&(this[e]=o)}),a[n]=o},DFS:function(e,t,n){for(var a in e)e.hasOwnProperty(a)&&(t.call(e,a,e[a],n||a),"Object"===S.util.type(e[a])?S.languages.DFS(e[a],t):"Array"===S.util.type(e[a])&&S.languages.DFS(e[a],t,a))}},plugins:{},highlightAll:function(e,t){for(var n=c.document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'),a=0,r=void 0;r=n[a++];)S.highlightElement(r,!0===e,t)},highlightElement:function(e,t,n){for(var a,r,i=e;i&&!u.test(i.className);)i=i.parentNode;i&&(a=(i.className.match(u)||[,""])[1],r=S.languages[a]),e.className=e.className.replace(u,"").replace(/\s+/g," ")+" language-"+a,i=e.parentNode,/pre/i.test(i.nodeName)&&(i.className=i.className.replace(u,"").replace(/\s+/g," ")+" language-"+a);var o=e.textContent,s={element:e,language:a,grammar:r,code:o};if(o&&r)if(S.hooks.run("before-highlight",s),t&&g.Worker){var l=new c.Worker(S.filename);l.onmessage=function(e){s.highlightedCode=e.data,S.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,n&&n.call(s.element),S.hooks.run("after-highlight",s),S.hooks.run("complete",s)},l.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else s.highlightedCode=S.highlight(s.code,s.grammar,s.language),S.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,n&&n.call(e),S.hooks.run("after-highlight",s),S.hooks.run("complete",s);else S.hooks.run("complete",s)},highlight:function(e,t,n){var a=S.tokenize(e,t);return s.stringify(S.util.encode(a),n)},tokenize:function(e,t,n){var a=S.Token,r=[e],i=t.rest;if(i){for(var o in i)t[o]=i[o];delete t.rest}e:for(var o in t)if(t.hasOwnProperty(o)&&t[o]){var s=t[o];s="Array"===S.util.type(s)?s:[s];for(var l=0;l<s.length;++l){var u=s[l],c=u.inside,g=!!u.lookbehind,d=0,p=u.alias;u=u.pattern||u;for(var f=0;f<r.length;f++){var h=r[f];if(r.length>e.length)break e;if(!(h instanceof a)){u.lastIndex=0;var m=u.exec(h);if(m){g&&(d=m[1].length);var b=m.index-1+d,y=b+(m=m[0].slice(d)).length,v=h.slice(0,b+1),k=h.slice(y+1),w=[f,1];v&&w.push(v);var x=new a(o,c?S.tokenize(m,c):m,p);w.push(x),k&&w.push(k),Array.prototype.splice.apply(r,w)}}}}}return r},hooks:{all:{},add:function(e,t){var n=S.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=S.hooks.all[e];if(n&&n.length)for(var a=0,r=void 0;r=n[a++];)r(t)}}},s=S.Token=function(e,t,n){this.type=e,this.content=t,this.alias=n};if(s.stringify=function(t,n,e){if("string"==typeof t)return t;if("Array"===S.util.type(t))return t.map(function(e){return s.stringify(e,n,t)}).join("");var a={type:t.type,content:s.stringify(t.content,n,e),tag:"span",classes:["token",t.type],attributes:{},language:n,parent:e};if("comment"===a.type&&(a.attributes.spellcheck="true"),t.alias){var r="Array"===S.util.type(t.alias)?t.alias:[t.alias];Array.prototype.push.apply(a.classes,r)}S.hooks.run("wrap",a);var i="";for(var o in a.attributes)i+=(i?" ":"")+o+'="'+(a.attributes[o]||"")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'" '+i+">"+a.content+"</"+a.tag+">"},!g.document)return g.addEventListener&&g.addEventListener("message",function(e){var t=JSON.parse(e.data),n=t.language,a=t.code,r=t.immediateClose;g.postMessage(S.highlight(a,S.languages[n],n)),r&&g.close()},!1),g.Prism}();void 0!==n&&(n.Prism=i),i.languages.markup={comment:/<!--[\w\W]*?-->/,prolog:/<\?[\w\W]+?\?>/,doctype:/<!DOCTYPE[\w\W]+?>/,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?[^\s>\/=.]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},i.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),i.languages.xml=i.languages.markup,i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},i.languages.css.atrule.inside.rest=i.util.clone(i.languages.css),i.languages.markup&&(i.languages.insertBefore("markup","tag",{style:{pattern:/<style[\w\W]*?>[\w\W]*?<\/style>/i,inside:{tag:{pattern:/<style[\w\W]*?>|<\/style>/i,inside:i.languages.markup.tag.inside},rest:i.languages.css},alias:"language-css"}}),i.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:i.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:i.languages.css}},alias:"language-css"}},i.languages.markup.tag)),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(true|false)\b/,"function":/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,"function":/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i}),i.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0}}),i.languages.insertBefore("javascript","class-name",{"template-string":{pattern:/`(?:\\`|\\?[^`])*`/,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}}}),i.languages.markup&&i.languages.insertBefore("markup","tag",{script:{pattern:/<script[\w\W]*?>[\w\W]*?<\/script>/i,inside:{tag:{pattern:/<script[\w\W]*?>|<\/script>/i,inside:i.languages.markup.tag.inside},rest:i.languages.javascript},alias:"language-javascript"}}),i.languages.js=i.languages.javascript,i.languages.c=i.languages.extend("clike",{keyword:/\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,operator:/\-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*\/]/,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)[ful]*\b/i}),i.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z]+([^\r\n\\]|\\.|\\(?:\r\n?|\n))*/im,lookbehind:!0,alias:"property",inside:{string:{pattern:/(#\s*include\s*)(<.+?>|("|')(\\?.)+?\3)/,lookbehind:!0}}}}),delete i.languages.c["class-name"],delete i.languages.c["boolean"],i.languages.csharp=i.languages.extend("clike",{keyword:/\b(abstract|as|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|do|double|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|goto|if|implicit|in|int|interface|internal|is|lock|long|namespace|new|null|object|operator|out|override|params|private|protected|public|readonly|ref|return|sbyte|sealed|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|virtual|void|volatile|while|add|alias|ascending|async|await|descending|dynamic|from|get|global|group|into|join|let|orderby|partial|remove|select|set|value|var|where|yield)\b/,string:[/@("|')(\1\1|\\\1|\\?(?!\1)[\s\S])*\1/,/("|')(\\?.)*?\1/],number:/\b-?(0x[\da-f]+|\d*\.?\d+)\b/i}),i.languages.insertBefore("csharp","keyword",{preprocessor:{pattern:/(^\s*)#.*/m,lookbehind:!0}}),i.languages.cpp=i.languages.extend("c",{keyword:/\b(alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,"boolean":/\b(true|false)\b/,operator:/[-+]{1,2}|!=?|<{1,2}=?|>{1,2}=?|\->|:{1,2}|={1,2}|\^|~|%|&{1,2}|\|?\||\?|\*|\/|\b(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/}),i.languages.insertBefore("cpp","keyword",{"class-name":{pattern:/(class\s+)[a-z0-9_]+/i,lookbehind:!0}}),i.languages.java=i.languages.extend("clike",{keyword:/\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/,number:/\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp\-]+\b|\b\d*\.?\d+(?:e[+-]?\d+)?[df]?\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,lookbehind:!0}}),i.languages.php=i.languages.extend("clike",{keyword:/\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/i,constant:/\b[A-Z0-9_]{2,}\b/,comment:{pattern:/(^|[^\\])(?:\/\*[\w\W]*?\*\/|\/\/.*)/,lookbehind:!0}}),i.languages.insertBefore("php","class-name",{"shell-comment":{pattern:/(^|[^\\])#.*/,lookbehind:!0,alias:"comment"}}),i.languages.insertBefore("php","keyword",{delimiter:/\?>|<\?(?:php)?/i,variable:/\$\w+\b/i,"package":{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/,lookbehind:!0,inside:{punctuation:/\\/}}}),i.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/,lookbehind:!0}}),i.languages.markup&&(i.hooks.add("before-highlight",function(t){"php"===t.language&&(t.tokenStack=[],t.backupCode=t.code,t.code=t.code.replace(/(?:<\?php|<\?)[\w\W]*?(?:\?>)/gi,function(e){return t.tokenStack.push(e),"{{{PHP"+t.tokenStack.length+"}}}"}))}),i.hooks.add("before-insert",function(e){"php"===e.language&&(e.code=e.backupCode,delete e.backupCode)}),i.hooks.add("after-highlight",function(e){if("php"===e.language){for(var t=0,n=void 0;n=e.tokenStack[t];t++)e.highlightedCode=e.highlightedCode.replace("{{{PHP"+(t+1)+"}}}",i.highlight(n,e.grammar,"php").replace(/\$/g,"$$$$"));e.element.innerHTML=e.highlightedCode}}),i.hooks.add("wrap",function(e){"php"===e.language&&"markup"===e.type&&(e.content=e.content.replace(/(\{\{\{PHP[0-9]+\}\}\})/g,'<span class="token php">$1</span>'))}),i.languages.insertBefore("php","comment",{markup:{pattern:/<[^?]\/?(.*?)>/,inside:i.languages.markup},php:/\{\{\{PHP[0-9]+\}\}\}/})),i.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:/"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(?:\\?.)*?\1/,"function":{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_][a-zA-Z0-9_]*(?=\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)[a-z0-9_]+/i,lookbehind:!0},keyword:/\b(?:as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b/,"boolean":/\b(?:True|False)\b/,number:/\b-?(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:or|and|not)\b/,punctuation:/[{}[\];(),.:]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:/#(?!\{[^\r\n]*?\}).*/,keyword:/\b(alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|false|for|if|in|module|new|next|nil|not|or|raise|redo|require|rescue|retry|return|self|super|then|throw|true|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.util.clone(e.languages.ruby)}};e.languages.insertBefore("ruby","keyword",{regex:[{pattern:/%r([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1[gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r\((?:[^()\\]|\\[\s\S])*\)[gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}[gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r\[(?:[^\[\]\\]|\\[\s\S])*\][gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r<(?:[^<>\\]|\\[\s\S])*>[gim]{0,3}/,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0}],variable:/[@$]+[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/,symbol:/:[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/}),e.languages.insertBefore("ruby","number",{builtin:/\b(Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|File|Fixnum|Fload|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z][a-zA-Z_0-9]*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:/%[qQiIwWxs]?([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?\((?:[^()\\]|\\[\s\S])*\)/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?\[(?:[^\[\]\\]|\\[\s\S])*\]/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?<(?:[^<>\\]|\\[\s\S])*>/,inside:{interpolation:t}},{pattern:/("|')(#\{[^}]+\}|\\(?:\r?\n|\r)|\\?.)*?\1/,inside:{interpolation:t}}]}(i);var a,o,s,l,u,d={isCodeSample:function B(e){return e&&"PRE"===e.nodeName&&-1!==e.className.indexOf("language-")},trimArg:function M(n){return function(e,t){return n(t)}}},p=function(e){return function(){return e}},f=p(!1),h=p(!0),m=f,b=h,y=function(){return v},v=(l={fold:function(e,t){return e()},is:m,isSome:m,isNone:b,getOr:s=function(e){return e},getOrThunk:o=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:s,orThunk:o,map:y,ap:y,each:function(){},bind:y,flatten:y,exists:m,forall:b,filter:y,equals:a=function(e){return e.isNone()},equals_:a,toArray:function(){return[]},toString:p("none()")},Object.freeze&&Object.freeze(l),l),k=function(n){var e=function(){return n},t=function(){return r},a=function(e){return e(n)},r={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:b,isNone:m,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){return k(e(n))},ap:function(e){return e.fold(y,function(e){return k(e(n))})},each:function(e){e(n)},bind:a,flatten:e,exists:a,forall:a,filter:function(e){return e(n)?r:v},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(m,function(e){return t(n,e)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};return r},w={some:k,none:y,from:function(e){return null===e||e===undefined?v:k(e)}},x=function(e){var t=e.selection?e.selection.getNode():null;return d.isCodeSample(t)?w.some(t):w.none()},S=x,C=function(t,n,a){t.undoManager.transact(function(){var e=x(t);return a=r.DOM.encode(a),e.fold(function(){t.insertContent('<pre id="__new" class="language-'+n+'">'+a+"</pre>"),t.selection.select(t.$("#__new").removeAttr("id")[0])},function(e){t.dom.setAttrib(e,"class","language-"+n),e.innerHTML=a,i.highlightElement(e),t.selection.select(e)})})},A=function(e){return x(e).fold(function(){return""},function(e){return e.textContent})},_=function(e){return e.settings.codesample_languages},N=function(e){var t=_(e);return t||[{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"}]},O=function(e,n){return S(e).fold(function(){return n},function(e){var t=e.className.match(/language-(\w+)/);return t?t[1]:n})},z=(u="function",function(e){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&Array.prototype.isPrototypeOf(e)?"array":"object"===t&&String.prototype.isPrototypeOf(e)?"string":t}(e)===u}),P=(Array.prototype.slice,z(Array.from)&&Array.from,function(n){var e,t=N(n),a=(e=t,0===e.length?w.none():w.some(e[0])).fold(function(){return""},function(e){return e.value}),r=O(n,a),i=A(n);n.windowManager.open({title:"Insert/Edit Code Sample",size:"large",body:{type:"panel",items:[{type:"selectbox",name:"language",label:"Language",items:t},{type:"textarea",name:"code",label:"Code view"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{language:r,code:i},onSubmit:function(e){var t=e.getData();C(n,t.language,t.code),e.close()}})}),W=function(t){t.addCommand("codesample",function(){var e=t.selection.getNode();t.selection.isCollapsed()||d.isCodeSample(e)?P(t):t.formatter.toggle("code")})},j=function(n){var r=n.$;n.on("PreProcess",function(e){r("pre[contenteditable=false]",e.node).filter(d.trimArg(d.isCodeSample)).each(function(e,t){var n=r(t),a=t.textContent;n.attr("class",r.trim(n.attr("class"))),n.removeAttr("contentEditable"),n.empty().append(r("<code></code>").each(function(){this.textContent=a}))})}),n.on("SetContent",function(){var e=r("pre").filter(d.trimArg(d.isCodeSample)).filter(function(e,t){return"false"!==t.contentEditable});e.length&&n.undoManager.transact(function(){e.each(function(e,t){r(t).find("br").each(function(e,t){t.parentNode.replaceChild(n.getDoc().createTextNode("\n"),t)}),t.contentEditable="false",t.innerHTML=n.dom.encode(t.textContent),i.highlightElement(t),t.className=r.trim(t.className)})})})},T=function(a){a.ui.registry.addToggleButton("codesample",{icon:"code-sample",tooltip:"Insert/edit code sample",onAction:function(){return P(a)},onSetup:function(n){var e=function(){var e,t;n.setActive((t=(e=a).selection.getStart(),e.dom.is(t,"pre.language-markup")))};return a.on("NodeChange",e),function(){return a.off("NodeChange",e)}}}),a.ui.registry.addMenuItem("codesample",{text:"Code sample...",icon:"code-sample",onAction:function(){return P(a)}})};e.add("codesample",function(t,e){j(t),T(t),W(t),t.on("dblclick",function(e){d.isCodeSample(e.target)&&P(t)})}),function F(){}}(window);

 	/**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 *
 * Version: 5.0.4 (2019-04-23)
 */
 !function(){"use strict";var i=function(e){var t=e,n=function(){return t};return{get:n,set:function(e){t=e},clone:function(){return i(n())}}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),m=tinymce.util.Tools.resolve("tinymce.Env"),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),d=function(e){return e.getParam("min_height",e.getElement().offsetHeight,"number")},h=function(e){return e.getParam("max_height",0,"number")},o=function(e){return e.getParam("autoresize_overflow_padding",1,"number")},u=function(e){return e.getParam("autoresize_bottom_margin",50,"number")},a=function(e){return e.getParam("autoresize_on_init",!0,"boolean")},s=function(e,t,n,i,o){r.setEditorTimeout(e,function(){p(e,t),n--?s(e,t,n,i,o):o&&o()},i)},v=function(e,t){var n=e.getBody();n&&(n.style.overflowY=t?"":"hidden",t||(n.scrollTop=0))},y=function(e,t,n,i){var o=parseInt(e.getStyle(t,n,i),10);return isNaN(o)?0:o},p=function(e,t){var n,i,o,r=e.dom,u=e.getDoc();if(u)if((a=e).plugins.fullscreen&&a.plugins.fullscreen.isFullscreen())v(e,!0);else{var a,s=u.body;i=d(e);var f=y(r,s,"margin-top",!0),g=y(r,s,"margin-bottom",!0);(o=s.offsetHeight+f+g)<0&&(o=0);var c=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight;o+c>d(e)&&(i=o+c);var l=h(e);l&&l<i?(i=l,v(e,!0)):v(e,!1),i!==t.get()&&(n=i-t.get(),r.setStyle(e.getContainer(),"height",i+"px"),t.set(i),m.webkit&&n<0&&p(e,t))}},n={setup:function(n,t){n.on("init",function(){var e=o(n),t=u(n);n.dom.setStyles(n.getBody(),{paddingLeft:e,paddingRight:e,paddingBottom:t,"min-height":0})}),n.on("NodeChange SetContent keyup FullscreenStateChanged",function(e){p(n,t)}),a(n)&&n.on("init",function(){s(n,t,20,100,function(){s(n,t,5,1e3)})})},resize:p},f=function(e,t){e.addCommand("mceAutoResize",function(){n.resize(e,t)})};e.add("autoresize",function(e){if(e.settings.hasOwnProperty("resize")||(e.settings.resize=!1),!e.inline){var t=i(0);f(e,t),n.setup(e,t)}}),function t(){}}();

 /**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 *
 * Version: 5.0.4 (2019-04-23)
 */
 !function(v){"use strict";var i=function(t){var e=t,n=function(){return e};return{get:n,set:function(t){e=t},clone:function(){return i(n())}}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(t){return!(!/(^|[ ,])powerpaste([, ]|$)/.test(t.settings.plugins)||!e.get("powerpaste")||("undefined"!=typeof v.window.console&&v.window.console.log&&v.window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),0))},u=function(t,e){return{clipboard:t,quirks:e}},f=function(t,e,n,r){return t.fire("PastePreProcess",{content:e,internal:n,wordContent:r})},d=function(t,e,n,r){return t.fire("PastePostProcess",{node:e,internal:n,wordContent:r})},n=function(t,e){return t.fire("PastePlainTextToggle",{state:e})},r=function(t,e){return t.fire("paste",{ieFake:e})},o=function(t,e){"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),n(t,!1)):(e.pasteFormat.set("text"),n(t,!0)),t.focus()},s=function(t,n){t.addCommand("mceTogglePlainTextPaste",function(){o(t,n)}),t.addCommand("mceInsertClipboardContent",function(t,e){e.content&&n.pasteHtml(e.content,e.internal),e.text&&n.pasteText(e.text)})},h=tinymce.util.Tools.resolve("tinymce.Env"),y=tinymce.util.Tools.resolve("tinymce.util.Delay"),b=tinymce.util.Tools.resolve("tinymce.util.Tools"),l=tinymce.util.Tools.resolve("tinymce.util.VK"),t="x-tinymce/html",c="\x3c!-- "+t+" --\x3e",m=function(t){return c+t},g=function(t){return t.replace(c,"")},x=function(t){return-1!==t.indexOf(c)},P=function(){return t},p=tinymce.util.Tools.resolve("tinymce.html.Entities"),w=function(t){return t.replace(/\r?\n/g,"<br>")},T=function(t,e,n){var r=t.split(/\n\n/),o=function(t,e){var n,r=[],o="<"+t;if("object"==typeof e){for(n in e)e.hasOwnProperty(n)&&r.push(n+'="'+p.encodeAllRaw(e[n])+'"');r.length&&(o+=" "+r.join(" "))}return o+">"}(e,n),i="</"+e+">",a=b.map(r,function(t){return t.split(/\n/).join("<br />")});return 1===a.length?a[0]:b.map(a,function(t){return o+t+i}).join("")},D=function(t){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(t)},_=function(t,e,n){return e?T(t,e,n):w(t)},C=tinymce.util.Tools.resolve("tinymce.html.DomParser"),k=tinymce.util.Tools.resolve("tinymce.html.Node"),S=tinymce.util.Tools.resolve("tinymce.html.Schema"),O=tinymce.util.Tools.resolve("tinymce.html.Serializer"),R={shouldBlockDrop:function(t){return t.getParam("paste_block_drop",!1)},shouldPasteDataImages:function(t){return t.getParam("paste_data_images",!1)},shouldFilterDrop:function(t){return t.getParam("paste_filter_drop",!0)},getPreProcess:function(t){return t.getParam("paste_preprocess")},getPostProcess:function(t){return t.getParam("paste_postprocess")},getWebkitStyles:function(t){return t.getParam("paste_webkit_styles")},shouldRemoveWebKitStyles:function(t){return t.getParam("paste_remove_styles_if_webkit",!0)},shouldMergeFormats:function(t){return t.getParam("paste_merge_formats",!0)},isSmartPasteEnabled:function(t){return t.getParam("smart_paste",!0)},isPasteAsTextEnabled:function(t){return t.getParam("paste_as_text",!1)},getRetainStyleProps:function(t){return t.getParam("paste_retain_style_properties")},getWordValidElements:function(t){return t.getParam("paste_word_valid_elements","-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody")},shouldConvertWordFakeLists:function(t){return t.getParam("paste_convert_word_fake_lists",!0)},shouldUseDefaultFilters:function(t){return t.getParam("paste_enable_default_filters",!0)}};function A(e,t){return b.each(t,function(t){e=t.constructor===RegExp?e.replace(t,""):e.replace(t[0],t[1])}),e}var E={filter:A,innerText:function Jt(t){var e=S(),n=C({},e),r="",o=e.getShortEndedElements(),i=b.makeMap("script noscript style textarea video audio iframe object"," "),a=e.getBlockElements();return t=A(t,[/<!\[[^\]]+\]>/g]),function u(t){var e=t.name,n=t;if("br"!==e){if("wbr"!==e)if(o[e]&&(r+=" "),i[e])r+=" ";else{if(3===t.type&&(r+=t.value),!t.shortEnded&&(t=t.firstChild))for(;u(t),t=t.next;);a[e]&&n.next&&(r+="\n","p"===e&&(r+="\n"))}}else r+="\n"}(n.parse(t)),r},trimHtml:function Qt(t){return t=A(t,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,function r(t,e,n){return e||n?"\xa0":" "}],/<br class="Apple-interchange-newline">/g,/<br>$/i])},createIdGenerator:function te(t){var e=0;return function(){return t+e++}},isMsEdge:function(){return-1!==v.navigator.userAgent.indexOf(" Edge/")}};function F(e){var n,t;return t=[/^[IVXLMCD]{1,2}\.[ \u00a0]/,/^[ivxlmcd]{1,2}\.[ \u00a0]/,/^[a-z]{1,2}[\.\)][ \u00a0]/,/^[A-Z]{1,2}[\.\)][ \u00a0]/,/^[0-9]+\.[ \u00a0]/,/^[\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]+\.[ \u00a0]/,/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/],e=e.replace(/^[\u00a0 ]+/,""),b.each(t,function(t){if(t.test(e))return!(n=!0)}),n}function I(t){var i,a,u=1;function n(t){var e="";if(3===t.type)return t.value;if(t=t.firstChild)for(;e+=n(t),t=t.next;);return e}function s(t,e){if(3===t.type&&e.test(t.value))return t.value=t.value.replace(e,""),!1;if(t=t.firstChild)do{if(!s(t,e))return!1}while(t=t.next);return!0}function e(t,e,n){var r=t._listLevel||u;r!==u&&(r<u?i&&(i=i.parent.parent):(a=i,i=null)),i&&i.name===e?i.append(t):(a=a||i,i=new k(e,1),1<n&&i.attr("start",""+n),t.wrap(i)),t.name="li",u<r&&a&&a.lastChild.append(i),u=r,function o(t){if(t._listIgnore)t.remove();else if(t=t.firstChild)for(;o(t),t=t.next;);}(t),s(t,/^\u00a0+/),s(t,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),s(t,/^\u00a0+/)}for(var r=[],o=t.firstChild;null!=o;)if(r.push(o),null!==(o=o.walk()))for(;void 0!==o&&o.parent!==t;)o=o.walk();for(var l=0;l<r.length;l++)if("p"===(t=r[l]).name&&t.firstChild){var c=n(t);if(/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(c)){e(t,"ul");continue}if(F(c)){var f=/([0-9]+)\./.exec(c),d=1;f&&(d=parseInt(f[1],10)),e(t,"ol",d);continue}if(t._listLevel){e(t,"ul",1);continue}i=null}else a=i,i=null}function M(n,r,o,i){var a,u={},t=n.dom.parseStyle(i);return b.each(t,function(t,e){switch(e){case"mso-list":(a=/\w+ \w+([0-9]+)/i.exec(i))&&(o._listLevel=parseInt(a[1],10)),/Ignore/i.test(t)&&o.firstChild&&(o._listIgnore=!0,o.firstChild._listIgnore=!0);break;case"horiz-align":e="text-align";break;case"vert-align":e="vertical-align";break;case"font-color":case"mso-foreground":e="color";break;case"mso-background":case"mso-highlight":e="background";break;case"font-weight":case"font-style":return void("normal"!==t&&(u[e]=t));case"mso-element":if(/^(comment|comment-list)$/i.test(t))return void o.remove()}0!==e.indexOf("mso-comment")?0!==e.indexOf("mso-")&&("all"===R.getRetainStyleProps(n)||r&&r[e])&&(u[e]=t):o.remove()}),/(bold)/i.test(u["font-weight"])&&(delete u["font-weight"],o.wrap(new k("b",1))),/(italic)/i.test(u["font-style"])&&(delete u["font-style"],o.wrap(new k("i",1))),(u=n.dom.serializeStyle(u,o.name))||null}var B,H,j,L,N,$={preProcess:function(t,e){return R.shouldUseDefaultFilters(t)?function(r,t){var e,o;(e=R.getRetainStyleProps(r))&&(o=b.makeMap(e.split(/[, ]/))),t=E.filter(t,[/<br class="?Apple-interchange-newline"?>/gi,/<b[^>]+id="?docs-internal-[^>]*>/gi,/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/&nbsp;/gi,"\xa0"],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(t,e){return 0<e.length?e.replace(/./," ").slice(Math.floor(e.length/2)).split("").join("\xa0"):""}]]);var n=R.getWordValidElements(r),i=S({valid_elements:n,valid_children:"-li[p]"});b.each(i.elements,function(t){t.attributes["class"]||(t.attributes["class"]={},t.attributesOrder.push("class")),t.attributes.style||(t.attributes.style={},t.attributesOrder.push("style"))});var a=C({},i);a.addAttributeFilter("style",function(t){for(var e,n=t.length;n--;)(e=t[n]).attr("style",M(r,o,e,e.attr("style"))),"span"===e.name&&e.parent&&!e.attributes.length&&e.unwrap()}),a.addAttributeFilter("class",function(t){for(var e,n,r=t.length;r--;)n=(e=t[r]).attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&e.remove(),e.attr("class",null)}),a.addNodeFilter("del",function(t){for(var e=t.length;e--;)t[e].remove()}),a.addNodeFilter("a",function(t){for(var e,n,r,o=t.length;o--;)if(n=(e=t[o]).attr("href"),r=e.attr("name"),n&&-1!==n.indexOf("#_msocom_"))e.remove();else if(n&&0===n.indexOf("file://")&&(n=n.split("#")[1])&&(n="#"+n),n||r){if(r&&!/^_?(?:toc|edn|ftn)/i.test(r)){e.unwrap();continue}e.attr({href:n,name:r})}else e.unwrap()});var u=a.parse(t);return R.shouldConvertWordFakeLists(r)&&I(u),t=O({validate:r.settings.validate},i).serialize(u)}(t,e):e},isWordContent:function ee(t){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^'']*\bmso-|w:WordDocument/i.test(t)||/class="OutlineElement/.test(t)||/id="?docs\-internal\-guid\-/.test(t)}},W=function(t,e){return{content:t,cancelled:e}},z=function(t,e,n,r){var o,i,a,u,s,l,c=f(t,e,n,r);return t.hasEventListeners("PastePostProcess")&&!c.isDefaultPrevented()?(o=t,i=c.content,a=n,u=r,s=o.dom.create("div",{style:"display:none"},i),l=d(o,s,a,u),W(l.node.innerHTML,l.isDefaultPrevented())):W(c.content,c.isDefaultPrevented())},U=function(t,e,n){var r=$.isWordContent(e),o=r?$.preProcess(t,e):e;return z(t,o,n,r)},V=function(t,e){var n,r;return t.insertContent((n=e,r=t.dom.create("body",{},n),b.each(r.querySelectorAll("meta"),function(t){return t.parentNode.removeChild(t)}),r.innerHTML),{merge:R.shouldMergeFormats(t),paste:!0}),!0},q=function(t){return/^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(t)},K=function(t){return q(t)&&/.(gif|jpe?g|png)$/.test(t)},G=function(t,e,n){return!(!1!==t.selection.isCollapsed()||!q(e)||(o=e,i=n,(r=t).undoManager.extra(function(){i(r,o)},function(){r.execCommand("mceInsertLink",!1,o)}),0));var r,o,i},X=function(t,e,n){return!!K(e)&&(o=e,i=n,(r=t).undoManager.extra(function(){i(r,o)},function(){r.insertContent('<img src="'+o+'">')}),!0);var r,o,i},Y=function(t,e){var n,r;!1===R.isSmartPasteEnabled(t)?V(t,e):(n=t,r=e,b.each([G,X,V],function(t){return!0!==t(n,r,V)}))},Z=function(t){return function(){return t}},J=Z(!1),Q=Z(!0),tt=J,et=Q,nt=function(){return rt},rt=(L={fold:function(t,e){return t()},is:tt,isSome:tt,isNone:et,getOr:j=function(t){return t},getOrThunk:H=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:j,orThunk:H,map:nt,ap:nt,each:function(){},bind:nt,flatten:nt,exists:tt,forall:et,filter:nt,equals:B=function(t){return t.isNone()},equals_:B,toArray:function(){return[]},toString:Z("none()")},Object.freeze&&Object.freeze(L),L),ot=function(n){var t=function(){return n},e=function(){return o},r=function(t){return t(n)},o={fold:function(t,e){return e(n)},is:function(t){return n===t},isSome:et,isNone:tt,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:e,orThunk:e,map:function(t){return ot(t(n))},ap:function(t){return t.fold(nt,function(t){return ot(t(n))})},each:function(t){t(n)},bind:r,flatten:t,exists:r,forall:r,filter:function(t){return t(n)?o:rt},equals:function(t){return t.is(n)},equals_:function(t,e){return t.fold(tt,function(t){return e(n,t)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};return o},it={some:ot,none:nt,from:function(t){return null===t||t===undefined?rt:ot(t)}},at=(N="function",function(t){return function(t){if(null===t)return"null";var e=typeof t;return"object"===e&&Array.prototype.isPrototypeOf(t)?"array":"object"===e&&String.prototype.isPrototypeOf(t)?"string":e}(t)===N}),ut=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o,t)}return r},st=function(t,e){for(var n=0,r=t.length;n<r;n++)e(t[n],n,t)},lt=Array.prototype.slice,ct=at(Array.from)?Array.from:function(t){return lt.call(t)},ft=function(t){var n=it.none(),e=[],r=function(t){o()?a(t):e.push(t)},o=function(){return n.isSome()},i=function(t){st(t,a)},a=function(e){n.each(function(t){v.setTimeout(function(){e(t)},0)})};return t(function(t){n=it.some(t),i(e),e=[]}),{get:r,map:function(n){return ft(function(e){r(function(t){e(n(t))})})},isReady:o}},dt={nu:ft,pure:function(e){return ft(function(t){t(e)})}},mt=function(e){var t=function(t){var r;e((r=t,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this;v.setTimeout(function(){r.apply(n,t)},0)}))},n=function(){return dt.nu(t)};return{map:function(r){return mt(function(n){t(function(t){var e=r(t);n(e)})})},bind:function(n){return mt(function(e){t(function(t){n(t).get(e)})})},anonBind:function(n){return mt(function(e){t(function(t){n.get(e)})})},toLazy:n,toCached:function(){var e=null;return mt(function(t){null===e&&(e=n()),e.get(t)})},get:t}},gt={nu:mt,pure:function(e){return mt(function(t){t(e)})}},pt=function(a,t){return t(function(r){var o=[],i=0;0===a.length?r([]):st(a,function(t,e){var n;t.get((n=e,function(t){o[n]=t,++i>=a.length&&r(o)}))})})},vt=function(t,e){var n=ut(t,e);return pt(n,gt.nu)},ht=function(t,e,n){var r=n||x(e),o=U(t,g(e),r);!1===o.cancelled&&Y(t,o.content)},yt=function(t,e){e=t.dom.encode(e).replace(/\r\n/g,"\n"),e=_(e,t.settings.forced_root_block,t.settings.forced_root_block_attrs),ht(t,e,!1)},bt=function(t){var e={};if(t){if(t.getData){var n=t.getData("Text");n&&0<n.length&&-1===n.indexOf("data:text/mce-internal,")&&(e["text/plain"]=n)}if(t.types)for(var r=0;r<t.types.length;r++){var o=t.types[r];try{e[o]=t.getData(o)}catch(i){e[o]=""}}}return e},xt=function(t,e){return e in t&&0<t[e].length},Pt=function(t){return xt(t,"text/html")||xt(t,"text/plain")},wt=E.createIdGenerator("mceclip"),Tt=function(e,t,n){var r,o,i,a,u="paste"===t.type?t.clipboardData:t.dataTransfer;if(e.settings.paste_data_images&&u){var s=(i=(o=u).items?ut(ct(o.items),function(t){return t.getAsFile()}):[],a=o.files?ct(o.files):[],function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r,t)&&n.push(i)}return n}(0<i.length?i:a,function(t){return/^image\/(jpeg|png|gif|bmp)$/.test(t.type)}));if(0<s.length)return t.preventDefault(),(r=s,vt(r,function(r){return gt.nu(function(t){var e=r.getAsFile?r.getAsFile():r,n=new window.FileReader;n.onload=function(){t({blob:e,uri:n.result})},n.readAsDataURL(e)})})).get(function(t){n&&e.selection.setRng(n),st(t,function(t){!function(t,e){var n,r,o,i,a,u,s,l=(n=e.uri,-1!==(r=n.indexOf(","))?n.substr(r+1):null),c=wt(),f=t.settings.images_reuse_filename&&e.blob.name?(o=t,i=e.blob.name,(a=i.match(/([\s\S]+?)\.(?:jpeg|jpg|png|gif)$/i))?o.dom.encode(a[1]):null):c,d=new v.Image;if(d.src=e.uri,u=t.settings,s=d,!u.images_dataimg_filter||u.images_dataimg_filter(s)){var m,g=t.editorUpload.blobCache,p=void 0;(m=g.findFirst(function(t){return t.base64()===l}))?p=m:(p=g.create(c,e.blob,l,f),g.add(p)),ht(t,'<img src="'+p.blobUri()+'">',!1)}else ht(t,'<img src="'+e.uri+'">',!1)}(e,t)})}),!0}return!1},Dt=function(t){return l.metaKeyPressed(t)&&86===t.keyCode||t.shiftKey&&45===t.keyCode},_t=function(c,f,d){var m,g=0;function p(t,e,n,r){var o,i;xt(t,"text/html")?o=t["text/html"]:(o=f.getHtml(),r=r||x(o),f.isDefaultContent(o)&&(n=!0)),o=E.trimHtml(o),f.remove(),i=!1===r&&D(o),o.length&&!i||(n=!0),n&&(o=xt(t,"text/plain")&&i?t["text/plain"]:E.innerText(o)),f.isDefaultContent(o)?e||c.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."):n?yt(c,o):ht(c,o,r)}c.on("keydown",function(t){function e(t){Dt(t)&&!t.isDefaultPrevented()&&f.remove()}if(Dt(t)&&!t.isDefaultPrevented()){if((m=t.shiftKey&&86===t.keyCode)&&h.webkit&&-1!==v.navigator.userAgent.indexOf("Version/"))return;if(t.stopImmediatePropagation(),g=(new Date).getTime(),h.ie&&m)return t.preventDefault(),void r(c,!0);f.remove(),f.create(),c.once("keyup",e),c.once("paste",function(){c.off("keyup",e)})}}),c.on("paste",function(t){var e,n,r,o=(new Date).getTime(),i=(e=c,n=bt(t.clipboardData||e.getDoc().dataTransfer),E.isMsEdge()?b.extend(n,{"text/html":""}):n),a=(new Date).getTime()-o,u=(new Date).getTime()-g-a<1e3,s="text"===d.get()||m,l=xt(i,P());m=!1,t.isDefaultPrevented()||(r=t.clipboardData,-1!==v.navigator.userAgent.indexOf("Android")&&r&&r.items&&0===r.items.length)?f.remove():Pt(i)||!Tt(c,t,f.getLastRng()||c.selection.getRng())?(u||t.preventDefault(),!h.ie||u&&!t.ieFake||xt(i,"text/html")||(f.create(),c.dom.bind(f.getEl(),"paste",function(t){t.stopPropagation()}),c.getDoc().execCommand("Paste",!1,null),i["text/html"]=f.getHtml()),xt(i,"text/html")?(t.preventDefault(),l||(l=x(i["text/html"])),p(i,u,s,l)):y.setEditorTimeout(c,function(){p(i,u,s,l)},0)):f.remove()})},Ct=function(t){return h.ie&&t.inline?v.document.body:t.getBody()},kt=function(e,t,n){var r;Ct(r=e)!==r.getBody()&&e.dom.bind(t,"paste keyup",function(t){Rt(e,n)||e.fire("paste")})},St=function(t){return t.dom.get("mcepastebin")},Ot=function(t,e){return e===t},Rt=function(t,e){var n,r=St(t);return(n=r)&&"mcepastebin"===n.id&&Ot(e,r.innerHTML)},At=function(a){var u=i(null),s="%MCEPASTEBIN%";return{create:function(){return e=u,n=s,o=(t=a).dom,i=t.getBody(),e.set(t.selection.getRng()),r=t.dom.add(Ct(t),"div",{id:"mcepastebin","class":"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},n),(h.ie||h.gecko)&&o.setStyle(r,"left","rtl"===o.getStyle(i,"direction",!0)?65535:-65535),o.bind(r,"beforedeactivate focusin focusout",function(t){t.stopPropagation()}),kt(t,r,n),r.focus(),void t.selection.select(r,!0);var t,e,n,r,o,i},remove:function(){return function(t,e){if(St(t)){for(var n=void 0,r=e.get();n=t.dom.get("mcepastebin");)t.dom.remove(n),t.dom.unbind(n);r&&t.selection.setRng(r)}e.set(null)}(a,u)},getEl:function(){return St(a)},getHtml:function(){return function(n){var e,t,r,o,i,a=function(t,e){t.appendChild(e),n.dom.remove(e,!0)};for(t=b.grep(Ct(n).childNodes,function(t){return"mcepastebin"===t.id}),e=t.shift(),b.each(t,function(t){a(e,t)}),r=(o=n.dom.select("div[id=mcepastebin]",e)).length-1;0<=r;r--)i=n.dom.create("div"),e.insertBefore(i,o[r]),a(i,o[r]);return e?e.innerHTML:""}(a)},getLastRng:function(){return u.get()},isDefault:function(){return Rt(a,s)},isDefaultContent:function(t){return Ot(s,t)}}},Et=function(n,t){var e=At(n);return n.on("PreInit",function(){return _t(a=n,e,t),void a.parser.addNodeFilter("img",function(t,e,n){var r,o=function(t){t.attr("data-mce-object")||u===h.transparentSrc||t.remove()};if(!a.settings.paste_data_images&&(r=n).data&&!0===r.data.paste)for(var i=t.length;i--;)(u=t[i].attr("src"))&&(0===u.indexOf("webkit-fake-url")?o(t[i]):a.settings.allow_html_data_urls||0!==u.indexOf("data:")||o(t[i]))});var a,u}),{pasteFormat:t,pasteHtml:function(t,e){return ht(n,t,e)},pasteText:function(t){return yt(n,t)},pasteImageData:function(t,e){return Tt(n,t,e)},getDataTransferItems:bt,hasHtmlOrText:Pt,hasContentType:xt}},Ft=function(){},It=function(t,e,n){if(r=t,!1!==h.iOS||r===undefined||"function"!=typeof r.setData||!0===E.isMsEdge())return!1;try{return t.clearData(),t.setData("text/html",e),t.setData("text/plain",n),t.setData(P(),e),!0}catch(o){return!1}var r},Mt=function(t,e,n,r){It(t.clipboardData,e.html,e.text)?(t.preventDefault(),r()):n(e.html,r)},Bt=function(u){return function(t,e){var n=m(t),r=u.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),o=u.dom.create("div",{contenteditable:"true"},n);u.dom.setStyles(r,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),r.appendChild(o),u.dom.add(u.getBody(),r);var i=u.selection.getRng();o.focus();var a=u.dom.createRng();a.selectNodeContents(o),u.selection.setRng(a),y.setTimeout(function(){u.selection.setRng(i),r.parentNode.removeChild(r),e()},0)}},Ht=function(t){return{html:t.selection.getContent({contextual:!0}),text:t.selection.getContent({format:"text"})}},jt=function(t){return!t.selection.isCollapsed()||!!(e=t).dom.getParent(e.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",e.getBody());var e},Lt=function(t){var e,n;t.on("cut",(e=t,function(t){jt(e)&&Mt(t,Ht(e),Bt(e),function(){y.setTimeout(function(){e.execCommand("Delete")},0)})})),t.on("copy",(n=t,function(t){jt(n)&&Mt(t,Ht(n),Bt(n),Ft)}))},Nt=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),$t=function(t,e){return Nt.getCaretRangeFromPoint(e.clientX,e.clientY,t.getDoc())},Wt=function(t,e){t.focus(),t.selection.setRng(e)},zt=function(a,u,s){R.shouldBlockDrop(a)&&a.on("dragend dragover draggesture dragdrop drop drag",function(t){t.preventDefault(),t.stopPropagation()}),R.shouldPasteDataImages(a)||a.on("drop",function(t){var e=t.dataTransfer;e&&e.files&&0<e.files.length&&t.preventDefault()}),a.on("drop",function(t){var e,n;if(n=$t(a,t),!t.isDefaultPrevented()&&!s.get()){e=u.getDataTransferItems(t.dataTransfer);var r,o=u.hasContentType(e,P());if((u.hasHtmlOrText(e)&&(!(r=e["text/plain"])||0!==r.indexOf("file://"))||!u.pasteImageData(t,n))&&n&&R.shouldFilterDrop(a)){var i=e["mce-internal"]||e["text/html"]||e["text/plain"];i&&(t.preventDefault(),y.setEditorTimeout(a,function(){a.undoManager.transact(function(){e["mce-internal"]&&a.execCommand("Delete"),Wt(a,n),i=E.trimHtml(i),e["text/html"]?u.pasteHtml(i,o):u.pasteText(i)})}))}}}),a.on("dragstart",function(t){s.set(!0)}),a.on("dragover dragend",function(t){R.shouldPasteDataImages(a)&&!1===s.get()&&(t.preventDefault(),Wt(a,$t(a,t))),"dragend"===t.type&&s.set(!1)})},Ut=function(t){var e=t.plugins.paste,n=R.getPreProcess(t);n&&t.on("PastePreProcess",function(t){n.call(e,e,t)});var r=R.getPostProcess(t);r&&t.on("PastePostProcess",function(t){r.call(e,e,t)})};function Vt(e,n){e.on("PastePreProcess",function(t){t.content=n(e,t.content,t.internal,t.wordContent)})}function qt(t,e){if(!$.isWordContent(e))return e;var n=[];b.each(t.schema.getBlockElements(),function(t,e){n.push(e)});var r=new RegExp("(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*(<\\/?("+n.join("|")+")[^>]*>)(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*","g");return e=E.filter(e,[[r,"$1"]]),e=E.filter(e,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]])}function Kt(t,e,n,r){if(r||n)return e;var l,o=R.getWebkitStyles(t);if(!1===R.shouldRemoveWebKitStyles(t)||"all"===o)return e;if(o&&(l=o.split(/[, ]/)),l){var c=t.dom,f=t.selection.getNode();e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,function(t,e,n,r){var o=c.parseStyle(c.decode(n)),i={};if("none"===l)return e+r;for(var a=0;a<l.length;a++){var u=o[l[a]],s=c.getStyle(f,l[a],!0);/color/.test(l[a])&&(u=c.toHex(u),s=c.toHex(s)),s!==u&&(i[l[a]]=u)}return(i=c.serializeStyle(i,"span"))?e+' style="'+i+'"'+r:e+r})}else e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return e=e.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,function(t,e,n,r){return e+' style="'+n+'"'+r})}function Gt(n,t){n.$("a",t).find("font,u").each(function(t,e){n.dom.remove(e,!0)})}var Xt=function(t){h.webkit&&Vt(t,Kt),h.ie&&(Vt(t,qt),function r(e,n){e.on("PastePostProcess",function(t){n(e,t.node)})}(t,Gt))},Yt=function(n,r){return function(e){e.setActive("text"===r.pasteFormat.get());var t=function(t){return e.setActive(t.state)};return n.on("PastePlainTextToggle",t),function(){return n.off("PastePlainTextToggle",t)}}},Zt=function(t,e){t.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:function(){return t.execCommand("mceTogglePlainTextPaste")},onSetup:Yt(t,e)}),t.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",onAction:function(){return t.execCommand("mceTogglePlainTextPaste")},onSetup:Yt(t,e)})};e.add("paste",function(t){if(!1===a(t)){var e=i(!1),n=i(R.isPasteAsTextEnabled(t)?"text":"html"),r=Et(t,n),o=Xt(t);return Zt(t,r),s(t,r),Ut(t),Lt(t),zt(t,r,e),u(r,o)}}),function ne(){}}(window);

/**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 *
 * Version: 5.0.4 (2019-04-23)
 */
 !function(){"use strict";var a,e,t,r,n,i=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(t){return function(e){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&Array.prototype.isPrototypeOf(e)?"array":"object"===t&&String.prototype.isPrototypeOf(e)?"string":t}(e)===t}},v=o("string"),c=o("function"),u=Object.prototype.hasOwnProperty,b=(a=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 r={},n=0;n<e.length;n++){var i=e[n];for(var o in i)u.call(i,o)&&(r[o]=a(r[o],i[o]))}return r}),s=function(e){return function(){return e}},l=s(!1),m=s(!0),d=l,h=m,f=function(){return p},p=(n={fold:function(e,t){return e()},is:d,isSome:d,isNone:h,getOr:r=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(){return undefined},or:r,orThunk:t,map:f,ap:f,each:function(){},bind:f,flatten:f,exists:d,forall:h,filter:f,equals:e=function(e){return e.isNone()},equals_:e,toArray:function(){return[]},toString:s("none()")},Object.freeze&&Object.freeze(n),n),g=function(r){var e=function(){return r},t=function(){return i},n=function(e){return e(r)},i={fold:function(e,t){return t(r)},is:function(e){return r===e},isSome:h,isNone:d,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){return g(e(r))},ap:function(e){return e.fold(f,function(e){return g(e(r))})},each:function(e){e(r)},bind:n,flatten:e,exists:n,forall:n,filter:function(e){return e(r)?i:p},equals:function(e){return e.is(r)},equals_:function(e,t){return e.fold(d,function(e){return t(r,e)})},toArray:function(){return[r]},toString:function(){return"some("+r+")"}};return i},w=f,y=function(e){return null===e||e===undefined?p:g(e)},x=Object.hasOwnProperty,j=function(e,t){return O(e,t)?y(e[t]):w()},O=function(e,t){return x.call(e,t)},A=Array.prototype.push,_=(Array.prototype.slice,c(Array.from)&&Array.from,tinymce.util.Tools.resolve("tinymce.util.Tools")),C=function(e){return e.getParam("media_scripts")},M=function(e){return e.getParam("audio_template_callback")},F=function(e){return e.getParam("video_template_callback")},P=function(e){return e.getParam("media_live_embeds",!0)},S=function(e){return e.getParam("media_filter_html",!0)},k=function(e){return e.getParam("media_url_resolver")},T=function(e){return e.getParam("media_alt_source",!0)},$=function(e){return e.getParam("media_poster",!0)},z=function(e){return e.getParam("media_dimensions",!0)},D=tinymce.util.Tools.resolve("tinymce.html.SaxParser"),N=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),E=function(e,t){if(e)for(var r=0;r<e.length;r++)if(-1!==t.indexOf(e[r].filter))return e[r]},U=function(t){return function(e){return e?e.style[t].replace(/px$/,""):""}},R=function(n){return function(e,t){var r;e&&(e.style[n]=/^[0-9.]+$/.test(r=t)?r+"px":r)}},W={getMaxWidth:U("maxWidth"),getMaxHeight:U("maxHeight"),setMaxWidth:R("maxWidth"),setMaxHeight:R("maxHeight")},H=N.DOM,L=function(e){return H.getAttrib(e,"data-ephox-embed-iri")},I=function(e,t){return c=t,u=H.createFragment(c),""!==L(u.firstChild)?(o=t,a=H.createFragment(o).firstChild,{type:"ephox-embed-iri",source1:L(a),source2:"",poster:"",width:W.getMaxWidth(a),height:W.getMaxHeight(a)}):(n=e,r=t,D({validate:(i={},!1),allow_conditional_comments:!0,start:function(e,t){if(i.source1||"param"!==e||(i.source1=t.map.movie),"iframe"!==e&&"object"!==e&&"embed"!==e&&"video"!==e&&"audio"!==e||(i.type||(i.type=e),i=_.extend(t.map,i)),"script"===e){var r=E(n,t.map.src);if(!r)return;i={type:"script",source1:t.map.src,width:r.width,height:r.height}}"source"===e&&(i.source1?i.source2||(i.source2=t.map.src):i.source1=t.map.src),"img"!==e||i.poster||(i.poster=t.map.src)}}).parse(r),i.source1=i.source1||i.src||i.data,i.source2=i.source2||"",i.poster=i.poster||"",i);var n,r,i,o,a,c,u},q=tinymce.util.Tools.resolve("tinymce.util.Promise"),B=function(e){var t={mp3:"audio/mpeg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg",swf:"application/x-shockwave-flash"}[e.toLowerCase().split(".").pop()];return t||""},G=tinymce.util.Tools.resolve("tinymce.html.Writer"),J=tinymce.util.Tools.resolve("tinymce.html.Schema"),K=N.DOM,Q=function(e,t){var r,n,i,o;for(r in t)if(i=""+t[r],e.map[r])for(n=e.length;n--;)(o=e[n]).name===r&&(i?(e.map[r]=i,o.value=i):(delete e.map[r],e.splice(n,1)));else i&&(e.push({name:r,value:i}),e.map[r]=i)},V=function(e,t){var r,n,i=K.createFragment(e).firstChild;return W.setMaxWidth(i,t.width),W.setMaxHeight(i,t.height),r=i.outerHTML,n=G(),D(n).parse(r),n.getContent()},X=function(e,t,r){return s=e,l=K.createFragment(s),""!==K.getAttrib(l.firstChild,"data-ephox-embed-iri")?V(e,t):(n=e,i=t,o=r,c=G(),D({validate:!1,allow_conditional_comments:!(u=0),comment:function(e){c.comment(e)},cdata:function(e){c.cdata(e)},text:function(e,t){c.text(e,t)},start:function(e,t,r){switch(e){case"video":case"object":case"embed":case"img":case"iframe":i.height!==undefined&&i.width!==undefined&&Q(t,{width:i.width,height:i.height})}if(o)switch(e){case"video":Q(t,{poster:i.poster,src:""}),i.source2&&Q(t,{src:""});break;case"iframe":Q(t,{src:i.source1});break;case"source":if(++u<=2&&(Q(t,{src:i["source"+u],type:i["source"+u+"mime"]}),!i["source"+u]))return;break;case"img":if(!i.poster)return;a=!0}c.start(e,t,r)},end:function(e){if("video"===e&&o)for(var t=1;t<=2;t++)if(i["source"+t]){var r=[];r.map={},u<t&&(Q(r,{src:i["source"+t],type:i["source"+t+"mime"]}),c.start("source",r,!0))}if(i.poster&&"object"===e&&o&&!a){var n=[];n.map={},Q(n,{src:i.poster,width:i.width,height:i.height}),c.start("img",n,!0)}c.end(e)}},J({})).parse(n),c.getContent());var n,i,o,a,c,u,s,l},Y=[{regex:/youtu\.be\/([\w\-_\?&=.]+)/i,type:"iframe",w:560,h:314,url:"//www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/youtube\.com(.+)v=([^&]+)(&([a-z0-9&=\-_]+))?/i,type:"iframe",w:560,h:314,url:"//www.youtube.com/embed/$2?$4",allowFullscreen:!0},{regex:/youtube.com\/embed\/([a-z0-9\?&=\-_]+)/i,type:"iframe",w:560,h:314,url:"//www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/vimeo\.com\/([0-9]+)/,type:"iframe",w:425,h:350,url:"//player.vimeo.com/video/$1?title=0&byline=0&portrait=0&color=8dc7dc",allowFullscreen:!0},{regex:/vimeo\.com\/(.*)\/([0-9]+)/,type:"iframe",w:425,h:350,url:"//player.vimeo.com/video/$2?title=0&amp;byline=0",allowFullscreen:!0},{regex:/maps\.google\.([a-z]{2,3})\/maps\/(.+)msid=(.+)/,type:"iframe",w:425,h:350,url:'//maps.google.com/maps/ms?msid=$2&output=embed"',allowFullscreen:!1},{regex:/dailymotion\.com\/video\/([^_]+)/,type:"iframe",w:480,h:270,url:"//www.dailymotion.com/embed/video/$1",allowFullscreen:!0},{regex:/dai\.ly\/([^_]+)/,type:"iframe",w:480,h:270,url:"//www.dailymotion.com/embed/video/$1",allowFullscreen:!0}],Z=function(r,e){var n=_.extend({},e);if(!n.source1&&(_.extend(n,I(C(r),n.embed)),!n.source1))return"";n.source2||(n.source2=""),n.poster||(n.poster=""),n.source1=r.convertURL(n.source1,"source"),n.source2=r.convertURL(n.source2,"source"),n.source1mime=B(n.source1),n.source2mime=B(n.source2),n.poster=r.convertURL(n.poster,"poster");var t,i,o=(t=n.source1,0<(i=Y.filter(function(e){return e.regex.test(t)})).length?_.extend({},i[0],{url:function(e,t){for(var r=e.regex.exec(t),n=e.url,i=function(e){n=n.replace("$"+e,function(){return r[e]?r[e]:""})},o=0;o<r.length;o++)i(o);return n.replace(/\?$/,"")}(i[0],t)}):null);if(o&&(n.source1=o.url,n.type=o.type,n.allowFullscreen=o.allowFullscreen,n.width=n.width||o.w,n.height=n.height||o.h),n.embed)return X(n.embed,n,!0);var a=E(C(r),n.source1);a&&(n.type="script",n.width=a.width,n.height=a.height);var c,u,s,l,m,d,h,f,p=M(r),g=F(r);return n.width=n.width||300,n.height=n.height||150,_.each(n,function(e,t){n[t]=r.dom.encode(""+e)}),"iframe"===n.type?(f=(h=n).allowFullscreen?' allowFullscreen="1"':"",'<iframe src="'+h.source1+'" width="'+h.width+'" height="'+h.height+'"'+f+"></iframe>"):"application/x-shockwave-flash"===n.source1mime?(d='<object data="'+(m=n).source1+'" width="'+m.width+'" height="'+m.height+'" type="application/x-shockwave-flash">',m.poster&&(d+='<img src="'+m.poster+'" width="'+m.width+'" height="'+m.height+'" />'),d+="</object>"):-1!==n.source1mime.indexOf("audio")?(s=n,(l=p)?l(s):'<audio controls="controls" src="'+s.source1+'">'+(s.source2?'\n<source src="'+s.source2+'"'+(s.source2mime?' type="'+s.source2mime+'"':"")+" />\n":"")+"</audio>"):"script"===n.type?'<script src="'+n.source1+'"><\/script>':(c=n,(u=g)?u(c):'<video width="'+c.width+'" height="'+c.height+'"'+(c.poster?' poster="'+c.poster+'"':"")+' controls="controls">\n<source src="'+c.source1+'"'+(c.source1mime?' type="'+c.source1mime+'"':"")+" />\n"+(c.source2?'<source src="'+c.source2+'"'+(c.source2mime?' type="'+c.source2mime+'"':"")+" />\n":"")+"</video>")},ee={},te=function(t){return function(e){return Z(t,e)}},re=function(e,t){var r,n,i,o,a,c=k(e);return c?(i=t,o=te(e),a=c,new q(function(t,e){var r=function(e){return e.html&&(ee[i.source1]=e),t({url:i.source1,html:e.html?e.html:o(i)})};ee[i.source1]?r(ee[i.source1]):a({url:i.source1},r,e)})):(r=t,n=te(e),new q(function(e){e({html:n(r),url:r.source1})}))},ne=function(e){return ee.hasOwnProperty(e)},ie=function(e){return b(e,{source1:e.source1.value,source2:j(e,"source2").bind(function(e){return j(e,"value")}).getOr(""),poster:j(e,"poster").bind(function(e){return j(e,"value")}).getOr("")})},oe=function(e){return b(e,{source1:{value:j(e,"source1").getOr("")},source2:{value:j(e,"source2").getOr("")},poster:{value:j(e,"poster").getOr("")}})},ae=function(r){return function(e){var t=e&&e.msg?"Media embed handler error: "+e.msg:"Media embed handler threw unknown error.";r.notificationManager.open({type:"error",text:t})}},ce=function(e,t){return _.extend({},I(C(e),t))},ue=function(e,t){var r=e.dom.select("img[data-mce-object]");e.insertContent(t),function(e,t){var r,n,i=e.dom.select("img[data-mce-object]");for(r=0;r<t.length;r++)for(n=i.length-1;0<=n;n--)t[r]===i[n]&&i.splice(n,1);e.selection.select(i[0])}(e,r),e.nodeChanged()},se=function(a){var e,t,r,n,i,o=(t=(e=a).selection.getNode(),(r=t.getAttribute("data-ephox-embed-iri"))?{source1:r,width:W.getMaxWidth(t),height:W.getMaxHeight(t)}:t.getAttribute("data-mce-object")?I(C(e),e.serializer.serialize(t,{selection:!0})):{}),c={source1:"",source2:"",embed:(n=a,i=n.selection.getNode(),i.getAttribute("data-mce-object")||i.getAttribute("data-ephox-embed-iri")?n.selection.getContent():""),poster:"",dimensions:{height:o.height?o.height:"",width:o.width?o.width:""}},u=oe(b(c,o)),s=function(e){var t=ie(e.getData());return z(a)?b(t,{width:t.dimensions.width,height:t.dimensions.height}):t},l=function(e){var r,o,t=s(e);re(a,t).then((r=w,o=a,function(e){if(v(e.url)&&0<e.url.trim().length){var t=e.html,n=ce(o,t),i={source1:e.url,embed:t};!function(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r,e)}(["width","height"],function(r){j(n,r).each(function(e){var t=i.dimensions||{};t[r]=e,i.dimensions=t})}),r.setData(oe(i))}}))["catch"](ae(a))},m={title:"General",items:function(e){for(var t=[],r=0,n=e.length;r<n;++r){if(!Array.prototype.isPrototypeOf(e[r]))throw new Error("Arr.flatten item "+r+" was not an array, input: "+e);A.apply(t,e[r])}return t}([[{name:"source1",type:"urlinput",filetype:"media",label:"Source"}],z(a)?[{type:"sizeinput",name:"dimensions",label:"Constrain proportions",constrain:!0}]:[]])},d={title:"Embed",items:[{type:"textarea",name:"embed",label:"Paste your embed code below:"}]},h=[];T(a)&&h.push({name:"source2",type:"urlinput",filetype:"media",label:"Alternative source URL"}),$(a)&&h.push({name:"poster",type:"urlinput",filetype:"image",label:"Media poster (Image URL)"});var f={title:"Advanced",items:h},p=[m,d];0<h.length&&p.push(f);var g={type:"tabpanel",tabs:p},w=a.windowManager.open({title:"Insert/Edit Media",size:"normal",body:g,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(e){var t,r,n=s(e);r=a,(t=n).embed=X(t.embed,t),t.embed&&ne(t.source1)?ue(r,t.embed):re(r,t).then(function(e){ue(r,e.html)})["catch"](ae(r)),e.close()},onChange:function(e,t){switch(t.name){case"source1":l(e);break;case"embed":n=ie((r=e).getData()),(i=ce(a,n.embed)).dimensions={width:i.width?i.width:n.dimensions.width,height:i.height?i.height:n.dimensions.height},r.setData(oe(i))}var r,n,i},initialData:u})},le=function(e){return{showDialog:function(){se(e)}}},me=function(e){e.addCommand("mceMedia",function(){se(e)})},de=tinymce.util.Tools.resolve("tinymce.html.Node"),he=tinymce.util.Tools.resolve("tinymce.Env"),fe=function(i,e){if(!1===S(i))return e;var o,a=G();return D({validate:!1,allow_conditional_comments:!1,comment:function(e){a.comment(e)},cdata:function(e){a.cdata(e)},text:function(e,t){a.text(e,t)},start:function(e,t,r){if(o=!0,"script"!==e&&"noscript"!==e){for(var n=0;n<t.length;n++){if(0===t[n].name.indexOf("on"))return;"style"===t[n].name&&(t[n].value=i.dom.serializeStyle(i.dom.parseStyle(t[n].value),e))}a.start(e,t,r),o=!1}},end:function(e){o||a.end(e)}},J({})).parse(e),a.getContent()},pe=function(e,t){var r,n=t.name;return(r=new de("img",1)).shortEnded=!0,we(e,t,r),r.attr({width:t.attr("width")||"300",height:t.attr("height")||("audio"===n?"30":"150"),style:t.attr("style"),src:he.transparentSrc,"data-mce-object":n,"class":"mce-object mce-object-"+n}),r},ge=function(e,t){var r,n,i,o=t.name;return(r=new de("span",1)).attr({contentEditable:"false",style:t.attr("style"),"data-mce-object":o,"class":"mce-preview-object mce-object-"+o}),we(e,t,r),(n=new de(o,1)).attr({src:t.attr("src"),allowfullscreen:t.attr("allowfullscreen"),style:t.attr("style"),"class":t.attr("class"),width:t.attr("width"),height:t.attr("height"),frameborder:"0"}),(i=new de("span",1)).attr("class","mce-shim"),r.append(n),r.append(i),r},we=function(e,t,r){var n,i,o,a,c;for(a=(o=t.attributes).length;a--;)n=o[a].name,i=o[a].value,"width"!==n&&"height"!==n&&"style"!==n&&("data"!==n&&"src"!==n||(i=e.convertURL(i,n)),r.attr("data-mce-p-"+n,i));(c=t.firstChild&&t.firstChild.value)&&(r.attr("data-mce-html",escape(fe(e,c))),r.firstChild=null)},ve=function(e){for(;e=e.parent;)if(e.attr("data-ephox-embed-iri")||(t=e.attr("class"))&&/\btiny-pageembed\b/.test(t))return!0;var t;return!1},be=function(i){return function(e){for(var t,r,n=e.length;n--;)(t=e[n]).parent&&(t.parent.attr("data-mce-object")||("script"!==t.name||(r=E(C(i),t.attr("src"))))&&(r&&(r.width&&t.attr("width",r.width.toString()),r.height&&t.attr("height",r.height.toString())),"iframe"===t.name&&P(i)&&he.ceFalse?ve(t)||t.replace(ge(i,t)):ve(t)||t.replace(pe(i,t))))}},ye=function(d){d.on("preInit",function(){var t=d.schema.getSpecialElements();_.each("video audio iframe object".split(" "),function(e){t[e]=new RegExp("</"+e+"[^>]*>","gi")});var r=d.schema.getBoolAttrs();_.each("webkitallowfullscreen mozallowfullscreen allowfullscreen".split(" "),function(e){r[e]={}}),d.parser.addNodeFilter("iframe,video,audio,object,embed,script",be(d)),d.serializer.addAttributeFilter("data-mce-object",function(e,t){for(var r,n,i,o,a,c,u,s,l=e.length;l--;)if((r=e[l]).parent){for(u=r.attr(t),n=new de(u,1),"audio"!==u&&"script"!==u&&((s=r.attr("class"))&&-1!==s.indexOf("mce-preview-object")?n.attr({width:r.firstChild.attr("width"),height:r.firstChild.attr("height")}):n.attr({width:r.attr("width"),height:r.attr("height")})),n.attr({style:r.attr("style")}),i=(o=r.attributes).length;i--;){var m=o[i].name;0===m.indexOf("data-mce-p-")&&n.attr(m.substr(11),o[i].value)}"script"===u&&n.attr("type","text/javascript"),(a=r.attr("data-mce-html"))&&((c=new de("#text",3)).raw=!0,c.value=fe(d,unescape(a)),n.append(c)),r.replace(n)}})}),d.on("SetContent",function(){d.$("span.mce-preview-object").each(function(e,t){var r=d.$(t);0===r.find("span.mce-shim",t).length&&r.append('<span class="mce-shim"></span>')})})},xe=function(e){e.on("ResolveName",function(e){var t;1===e.target.nodeType&&(t=e.target.getAttribute("data-mce-object"))&&(e.name=t)})},je=function(t){t.on("click keyup",function(){var e=t.selection.getNode();e&&t.dom.hasClass(e,"mce-preview-object")&&t.dom.getAttrib(e,"data-mce-selected")&&e.setAttribute("data-mce-selected","2")}),t.on("ObjectSelected",function(e){var t=e.target.getAttribute("data-mce-object");"audio"!==t&&"script"!==t||e.preventDefault()}),t.on("ObjectResized",function(e){var t,r=e.target;r.getAttribute("data-mce-object")&&(t=r.getAttribute("data-mce-html"))&&(t=unescape(t),r.setAttribute("data-mce-html",escape(X(t,{width:e.width,height:e.height}))))})},Oe=function(e){var t,r;e.ui.registry.addToggleButton("media",{tooltip:"Insert/edit media",icon:"embed",onAction:function(){e.execCommand("mceMedia")},onSetup:(t=e,r=["img[data-mce-object]","span[data-mce-object]","div[data-ephox-embed-iri]"],function(e){return t.selection.selectorChangedWithUnbind(r.join(","),e.setActive).unbind})}),e.ui.registry.addMenuItem("media",{icon:"embed",text:"Media...",onAction:function(){e.execCommand("mceMedia")}})};i.add("media",function(e){return me(e),Oe(e),xe(e),ye(e),je(e),le(e)}),function Ae(){}}();

 /**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 *
 * Version: 5.0.4 (2019-04-23)
 */
 !function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(n){n.addCommand("InsertHorizontalRule",function(){n.execCommand("mceInsertContent",!1,"<hr />")})},t=function(n){n.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}}),n.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}})};n.add("hr",function(n){o(n),t(n)}),function e(){}}();

 /**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 *
 * Version: 5.0.4 (2019-04-23)
 */
 !function(){"use strict";var e=function(t){var n=t,o=function(){return n};return{get:o,set:function(t){n=t},clone:function(){return e(o())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(t,n){t.fire("VisualBlocks",{state:n})},u=function(t,n,o){t.dom.toggleClass(t.getBody(),"mce-visualblocks"),o.set(!o.get()),i(t,o.get())},c=function(t,n,o){t.addCommand("mceVisualBlocks",function(){u(t,n,o)})},s=function(t){return t.getParam("visualblocks_default_state",!1,"boolean")},r=function(n,t,o){n.on("PreviewFormats AfterPreviewFormats",function(t){o.get()&&n.dom.toggleClass(n.getBody(),"mce-visualblocks","afterpreviewformats"===t.type)}),n.on("init",function(){s(n)&&u(n,t,o)}),n.on("remove",function(){n.dom.removeClass(n.getBody(),"mce-visualblocks")})},o=function(o,e){return function(n){n.setActive(e.get());var t=function(t){return n.setActive(t.state)};return o.on("VisualBlocks",t),function(){return o.off("VisualBlocks",t)}}},a=function(t,n){t.ui.registry.addToggleButton("visualblocks",{icon:"paragraph",tooltip:"Show blocks",onAction:function(){return t.execCommand("mceVisualBlocks")},onSetup:o(t,n)}),t.ui.registry.addToggleMenuItem("visualblocks",{text:"Show blocks",onAction:function(){return t.execCommand("mceVisualBlocks")},onSetup:o(t,n)})};t.add("visualblocks",function(t,n){var o=e(!1);c(t,n,o),a(t,o),r(t,n,o)}),function n(){}}();

/**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 *
 * Version: 5.0.4 (2019-04-23)
 */
 !function(r){"use strict";var n,e,t,o,u,i,c=function(n){var e=n,t=function(){return e};return{get:t,set:function(n){e=n},clone:function(){return c(t())}}},a=tinymce.util.Tools.resolve("tinymce.PluginManager"),f=function(n){return{isEnabled:function(){return n.get()}}},l=function(n,e){return n.fire("VisualChars",{state:e})},s={"\xa0":"nbsp","\xad":"shy"},d=function(n,e){var t,r="";for(t in n)r+=t;return new RegExp("["+r+"]",e?"g":"")},m=function(n){var e,t="";for(e in n)t&&(t+=","),t+="span.mce-"+n[e];return t},N={charMap:s,regExp:d(s),regExpGlobal:d(s,!0),selector:m(s),charMapToRegExp:d,charMapToSelector:m},g=function(n){return function(){return n}},E=g(!1),h=g(!0),p=E,v=h,T=function(){return O},O=(o={fold:function(n,e){return n()},is:p,isSome:p,isNone:v,getOr:t=function(n){return n},getOrThunk:e=function(n){return n()},getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:t,orThunk:e,map:T,ap:T,each:function(){},bind:T,flatten:T,exists:p,forall:v,filter:T,equals:n=function(n){return n.isNone()},equals_:n,toArray:function(){return[]},toString:g("none()")},Object.freeze&&Object.freeze(o),o),y=function(t){var n=function(){return t},e=function(){return o},r=function(n){return n(t)},o={fold:function(n,e){return e(t)},is:function(n){return t===n},isSome:v,isNone:p,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:e,orThunk:e,map:function(n){return y(n(t))},ap:function(n){return n.fold(T,function(n){return y(n(t))})},each:function(n){n(t)},bind:r,flatten:n,exists:r,forall:r,filter:function(n){return n(t)?o:O},equals:function(n){return n.is(t)},equals_:function(n,e){return n.fold(p,function(n){return e(t,n)})},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},D=function(n){return null===n||n===undefined?O:y(n)},_=(u="function",function(n){return function(n){if(null===n)return"null";var e=typeof n;return"object"===e&&Array.prototype.isPrototypeOf(n)?"array":"object"===e&&String.prototype.isPrototypeOf(n)?"string":e}(n)===u}),C=function(n,e){for(var t=0,r=n.length;t<r;t++)e(n[t],t,n)},M=(Array.prototype.slice,_(Array.from)&&Array.from,function(n){if(null===n||n===undefined)throw new Error("Node cannot be null or undefined");return{dom:g(n)}}),A={fromHtml:function(n,e){var t=(e||r.document).createElement("div");if(t.innerHTML=n,!t.hasChildNodes()||1<t.childNodes.length)throw r.console.error("HTML does not have a single root node",n),new Error("HTML must have a single root node");return M(t.childNodes[0])},fromTag:function(n,e){var t=(e||r.document).createElement(n);return M(t)},fromText:function(n,e){var t=(e||r.document).createTextNode(n);return M(t)},fromDom:M,fromPoint:function(n,e,t){var r=n.dom();return D(r.elementFromPoint(e,t)).map(M)}},b=(r.Node.ATTRIBUTE_NODE,r.Node.CDATA_SECTION_NODE,r.Node.COMMENT_NODE,r.Node.DOCUMENT_NODE,r.Node.DOCUMENT_TYPE_NODE,r.Node.DOCUMENT_FRAGMENT_NODE,r.Node.ELEMENT_NODE,r.Node.TEXT_NODE),S=(r.Node.PROCESSING_INSTRUCTION_NODE,r.Node.ENTITY_REFERENCE_NODE,r.Node.ENTITY_NODE,r.Node.NOTATION_NODE,function(n){return n.dom().nodeValue}),k=(i=b,function(n){return n.dom().nodeType===i}),w=function(n){return'<span data-mce-bogus="1" class="mce-'+N.charMap[n]+'">'+n+"</span>"},x=function(n,e){var t=[],r=function(n,e){for(var t=n.length,r=new Array(t),o=0;o<t;o++){var u=n[o];r[o]=e(u,o,n)}return r}(n.dom().childNodes,A.fromDom);return C(r,function(n){e(n)&&(t=t.concat([n])),t=t.concat(x(n,e))}),t},P={isMatch:function(n){return k(n)&&S(n)!==undefined&&N.regExp.test(S(n))},filterDescendants:x,findParentElm:function(n,e){for(;n.parentNode;){if(n.parentNode===e)return n;n=n.parentNode}},replaceWithSpans:function(n){return n.replace(N.regExpGlobal,w)}},I=function(t,n){var r,o,e=P.filterDescendants(A.fromDom(n),P.isMatch);C(e,function(n){var e=P.replaceWithSpans(S(n));for(o=t.dom.create("div",null,e);r=o.lastChild;)t.dom.insertAfter(r,n.dom());t.dom.remove(n.dom())})},B=function(e,n){var t=e.dom.select(N.selector,n);C(t,function(n){e.dom.remove(n,1)})},R=I,U=B,V=function(n){var e=n.getBody(),t=n.selection.getBookmark(),r=P.findParentElm(n.selection.getNode(),e);r=r!==undefined?r:e,B(n,r),I(n,r),n.selection.moveToBookmark(t)},j=function(n,e){var t,r=n.getBody(),o=n.selection;e.set(!e.get()),l(n,e.get()),t=o.getBookmark(),!0===e.get()?R(n,r):U(n,r),o.moveToBookmark(t)},q=function(n,e){n.addCommand("mceVisualChars",function(){j(n,e)})},G=tinymce.util.Tools.resolve("tinymce.util.Delay"),H=function(e,t){var r=G.debounce(function(){V(e)},300);!1!==e.settings.forced_root_block&&e.on("keydown",function(n){!0===t.get()&&(13===n.keyCode?V(e):r())})},L=function(n){return n.getParam("visualchars_default_state",!1)},F=function(e,t){e.on("init",function(){var n=!L(e);t.set(n),j(e,t)})},Y=function(t,r){return function(e){e.setActive(r.get());var n=function(n){return e.setActive(n.state)};return t.on("VisualChars",n),function(){return t.off("VisualChars",n)}}};a.add("visualchars",function(n){var e,t,r=c(!1);return q(n,r),t=r,(e=n).ui.registry.addToggleButton("visualchars",{tooltip:"Show invisible characters",icon:"paragraph",onAction:function(){return e.execCommand("mceVisualChars")},onSetup:Y(e,t)}),e.ui.registry.addToggleMenuItem("visualchars",{text:"Show invisible characters",onAction:function(){return e.execCommand("mceVisualChars")},onSetup:Y(e,t)}),H(n,r),F(n,r),f(r)}),function z(){}}(window);

 /**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 *
 * Version: 5.0.4 (2019-04-23)
 */
 !function(){"use strict";var e,n,t,r,o,u=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=function(){return(c=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)},i="[-'\\.\u2018\u2019\u2024\ufe52\uff07\uff0e]",a="[:\xb7\xb7\u05f4\u2027\ufe13\ufe55\uff1a]",s="[\xb1+*/,;;\u0589\u060c\u060d\u066c\u07f8\u2044\ufe10\ufe14\ufe50\ufe54\uff0c\uff1b]",f="[0-9\u0660-\u0669\u066b\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\uaa50-\uaa59\uabf0-\uabf9]",l="\\r",p="\\n",g="[\x0B\f\x85\u2028\u2029]",d="[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c01-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d02\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b6-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u19b0-\u19c0\u19c8\u19c9\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1baa\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2\u1dc0-\u1de6\u1dfc-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]",h="[\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200e\u200f\u202a-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb]",y="[\u3031-\u3035\u309b\u309c\u30a0-\u30fa\u30fc-\u30ff\u31f0-\u31ff\u32d0-\u32fe\u3300-\u3357\uff66-\uff9d]",w="[=_\u203f\u2040\u2054\ufe33\ufe34\ufe4d-\ufe4f\uff3f\u2200-\u22ff<>]",v="[!-#%-*,-\\/:;?@\\[-\\]_{}\xa1\xab\xb7\xbb\xbf;\xb7\u055a-\u055f\u0589\u058a\u05be\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f3a-\u0f3d\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1361-\u1368\u1400\u166d\u166e\u169b\u169c\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cd3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205e\u207d\u207e\u208d\u208e\u3008\u3009\u2768-\u2775\u27c5\u27c6\u27e6-\u27ef\u2983-\u2998\u29d8-\u29db\u29fc\u29fd\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00-\u2e2e\u2e30\u2e31\u3001-\u3003\u3008-\u3011\u3014-\u301f\u3030\u303d\u30a0\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uabeb\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe61\ufe63\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff0a\uff0c-\uff0f\uff1a\uff1b\uff1f\uff20\uff3b-\uff3d\uff3f\uff5b\uff5d\uff5f-\uff65]",E=0,x=1,R=2,S=3,b=4,O=5,A=6,C=7,N=8,j=9,T=10,W=11,k=12,m=13,P=[new RegExp("[A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f3\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u10a0-\u10c5\u10d0-\u10fa\u10fc\u1100-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1a00-\u1a16\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bc0-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u24b6-\u24e9\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2d00-\u2d25\u2d30-\u2d65\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u303b\u303c\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790\ua791\ua7a0-\ua7a9\ua7fa-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]"),new RegExp(i),new RegExp(a),new RegExp(s),new RegExp(f),new RegExp(l),new RegExp(p),new RegExp(g),new RegExp(d),new RegExp(h),new RegExp(y),new RegExp(w),new RegExp("@")],B=new RegExp("^"+v+"$"),D=function(e){return function(){return e}},U=function(e){return e},z=D(!1),M=D(!0),_=function(){return q},q=(r={fold:function(e,n){return e()},is:z,isSome:z,isNone:M,getOr:t=function(e){return e},getOrThunk:n=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:t,orThunk:n,map:_,ap:_,each:function(){},bind:_,flatten:_,exists:z,forall:M,filter:_,equals:e=function(e){return e.isNone()},equals_:e,toArray:function(){return[]},toString:D("none()")},Object.freeze&&Object.freeze(r),r),$=(o="function",function(e){return function(e){if(null===e)return"null";var n=typeof e;return"object"===n&&Array.prototype.isPrototypeOf(e)?"array":"object"===n&&String.prototype.isPrototypeOf(e)?"string":n}(e)===o}),I=(Array.prototype.slice,$(Array.from)&&Array.from,P),Z=m,F=function(e){for(var n=Z,t=I.length,r=0;r<t;++r){var o=I[r];if(o&&o.test(e)){n=r;break}}return n},G=function(e){var t,r;return function(e,n){for(var t=e.length,r=new Array(t),o=0;o<t;o++){var u=e[o];r[o]=n(u,o,e)}return r}(e,(t=F,r={},function(e){if(r[e])return r[e];var n=t(e);return r[e]=n}))},H=/^\s+$/,J=B,K=function(e,n){var t=function(e,n){var t;for(t=n;t<e.length&&!H.test(e[t]);t++);return t}(e,n+1);return"://"===e.slice(n+1,t).join("").substr(0,3)?t:n},L=function(e,n,t){t=c({},{includeWhitespace:!1,includePunctuation:!1},t);for(var r=[],o=[],u=0;u<e.length;u++){var i=n(e[u]);"\ufeff"!==i&&(r.push(e[u]),o.push(i))}return function(e,n,t,r){for(var o,u,i,c,a,s,f,l=[],p=[],g=0;g<t.length;++g)if(p.push(e[g]),a=c=void 0,s=(u=t)[i=g],f=u[i+1],!(i<0||i>u.length-1&&0!==i||s===E&&f===E||(a=u[i+2],s===E&&(f===R||f===x||f===k)&&a===E||(c=u[i-1],(s===R||s===x||f===k)&&f===E&&c===E||!(s!==b&&s!==E||f!==b&&f!==E)||(s===S||s===x)&&f===b&&c===b||s===b&&(f===S||f===x)&&a===b||s===N||s===j||c===N||c===j||f===N||f===j||s===O&&f===A||s!==C&&s!==O&&s!==A&&f!==C&&f!==O&&f!==A&&(s===T&&f===T||f===W&&(s===E||s===b||s===T||s===W)||s===W&&(f===E||f===b||f===T)||s===k))))){var d=n[g];if((r.includeWhitespace||!H.test(d))&&(r.includePunctuation||!J.test(d))){var h=g-p.length+1,y=g+1,w=n.slice(h,y).join("");if("http"===(o=w)||"https"===o){var v=K(n,g),m=e.slice(y,v);Array.prototype.push.apply(p,m),g=v}l.push(p)}p=[]}return l}(r,o,G(o),t)},Q=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),V=function(e,n){for(var t,r=n.getBlockElements(),o=n.getShortEndedElements(),u=n.getWhiteSpaceElements(),i="",c=new Q(e,e);e=c.next();)3===e.nodeType?i+=e.data:0!==i.length&&(r[(t=e).nodeName]||o[t.nodeName]||u[t.nodeName])&&(i+=" ");return i},X=function(e){return{words:L(e.split(""),U).length,characters:e.length,charactersNoSpace:e.replace(/\s/g,"").length}},Y=function(e){return X((n=e).removed?"":V(n.getBody(),n.schema));var n},ee=tinymce.util.Tools.resolve("tinymce.util.Delay"),ne=function(e){var n,t=Y(e);n=t,e.fire("wordCountUpdate",{wordCount:n})},te=function(e){var n,t,r=Y(e),o=(t=V((n=e).selection.getRng().cloneContents(),n.schema),n.selection.isCollapsed()?X(""):X(t));e.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(r.words),String(o.words)],["Characters (no spaces)",String(r.charactersNoSpace),String(o.charactersNoSpace)],["Characters",String(r.characters),String(o.characters)]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})};u.add("wordcount",function(e){var n,t,r,o;return(n=e).ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:function(){return te(n)}}),n.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:function(){return te(n)}}),t=e,r=ee.debounce(function(){return ne(t)},300),t.on("init",function(){ne(t),ee.setEditorTimeout(t,function(){t.on("SetContent BeforeAddUndo Undo Redo keyup",r)},0)}),o=e,{getCount:function(){return Y(o).words}}}),function re(){}}();

Youez - 2016 - github.com/yon3zu
LinuXploit